cortex-react-components 1.65.1 → 1.65.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-737CTHXW.mjs → chunk-26JAUUHC.mjs} +1 -1
- package/dist/{chunk-2VOU42KD.mjs → chunk-2MTAQ2YX.mjs} +1 -1
- package/dist/{chunk-EVVDCPEA.mjs → chunk-35SLQX5Z.mjs} +1 -1
- package/dist/{chunk-FSYU3D5O.mjs → chunk-3FZPSPIZ.mjs} +1 -1
- package/dist/{chunk-37NBXA5G.mjs → chunk-4MFTG62S.mjs} +1 -1
- package/dist/{chunk-MQRRCCAR.mjs → chunk-4NRRPFAV.mjs} +1 -1
- package/dist/{chunk-E6ZAA4QH.mjs → chunk-5C4F3OYA.mjs} +1 -1
- package/dist/{chunk-B7STYVDB.mjs → chunk-5CCW24XE.mjs} +1 -1
- package/dist/chunk-5UQKSJU5.mjs +4 -0
- package/dist/{chunk-URPKAQGD.mjs → chunk-5V2PNTEF.mjs} +1 -1
- package/dist/{chunk-CZIRJUID.mjs → chunk-6E5WHIW6.mjs} +1 -1
- package/dist/{chunk-L45A6K4C.mjs → chunk-6YHRHDB7.mjs} +1 -1
- package/dist/{chunk-YPK6OLRS.mjs → chunk-BFESGJZ4.mjs} +1 -1
- package/dist/{chunk-QUOLG5NC.mjs → chunk-BGQKHEB3.mjs} +1 -1
- package/dist/{chunk-GHXEOXV4.mjs → chunk-D6TOSZKM.mjs} +1 -1
- package/dist/{chunk-65BHP4TM.mjs → chunk-E6JYZMWA.mjs} +1 -1
- package/dist/{chunk-VGQTRTPZ.mjs → chunk-ERUB6LU6.mjs} +1 -1
- package/dist/{chunk-Z3YAIJQT.mjs → chunk-FCNEFWQ7.mjs} +1 -1
- package/dist/{chunk-UDQTFQR7.mjs → chunk-GWBCK4SV.mjs} +1 -1
- package/dist/chunk-IEQL2U53.mjs +4 -0
- package/dist/{chunk-CJF6GVGP.mjs → chunk-JBWGBBHF.mjs} +1 -1
- package/dist/{chunk-FN5C27GW.mjs → chunk-JRB2R6LE.mjs} +1 -1
- package/dist/{chunk-JLCWVIEP.mjs → chunk-JRFNBHPL.mjs} +1 -1
- package/dist/{chunk-T5W5LMEK.mjs → chunk-JXW2QARY.mjs} +1 -1
- package/dist/{chunk-IH37BDR2.mjs → chunk-K347D5ZJ.mjs} +1 -1
- package/dist/{chunk-DVGPU4EL.mjs → chunk-KFQ3L3TO.mjs} +1 -1
- package/dist/{chunk-YGFSXGAJ.mjs → chunk-KJ7DELAG.mjs} +1 -1
- package/dist/{chunk-OMVXDUX7.mjs → chunk-KWTCUGN5.mjs} +1 -1
- package/dist/{chunk-P3PIMDIR.mjs → chunk-L74JGLMR.mjs} +1 -1
- package/dist/{chunk-X4Q7WZZS.mjs → chunk-LSVWCONK.mjs} +1 -1
- package/dist/{chunk-ANTK5LAD.mjs → chunk-N363IQBL.mjs} +1 -1
- package/dist/{chunk-JTQWVSV5.mjs → chunk-NGBQVG6N.mjs} +1 -1
- package/dist/{chunk-NUQ6Z3WQ.mjs → chunk-NIUDBN75.mjs} +1 -1
- package/dist/{chunk-5ALQQYYE.mjs → chunk-NLA3SBVN.mjs} +1 -1
- package/dist/{chunk-TWPRI2XQ.mjs → chunk-NUPPPEG7.mjs} +1 -1
- package/dist/{chunk-KEM3XJKI.mjs → chunk-OQR6YVKI.mjs} +1 -1
- package/dist/{chunk-NP2M5K7O.mjs → chunk-PYAM4YXE.mjs} +1 -1
- package/dist/{chunk-IPVKFQEY.mjs → chunk-QYMXR42G.mjs} +1 -1
- package/dist/{chunk-5J244QX4.mjs → chunk-RGWP2OVM.mjs} +1 -1
- package/dist/{chunk-WPL2QWNG.mjs → chunk-S7FH27PL.mjs} +1 -1
- package/dist/{chunk-COI2LCY2.mjs → chunk-TASJS6US.mjs} +1 -1
- package/dist/{chunk-U7Q6ZRR3.mjs → chunk-TFP6VQ32.mjs} +1 -1
- package/dist/{chunk-DIAK5C43.mjs → chunk-TT4SPGZU.mjs} +1 -1
- package/dist/{chunk-ZEOV7BEN.mjs → chunk-TTRDD6M2.mjs} +1 -1
- package/dist/{chunk-Q5LSCSF7.mjs → chunk-TYBLC6LO.mjs} +1 -1
- package/dist/{chunk-6L2BDKJU.mjs → chunk-ULWFOWF2.mjs} +1 -1
- package/dist/{chunk-CDJP2IDQ.mjs → chunk-V5EOKY7D.mjs} +1 -1
- package/dist/{chunk-MRJQKF4Z.mjs → chunk-VNGK6ACI.mjs} +1 -1
- package/dist/chunk-W3ONOYB6.mjs +1 -0
- package/dist/{chunk-T6W76EOH.mjs → chunk-WG2HHJYU.mjs} +1 -1
- package/dist/{chunk-7SPGDJJI.mjs → chunk-Y5ZPWPOT.mjs} +1 -1
- package/dist/{chunk-77KWI6EL.mjs → chunk-Y73QTPA6.mjs} +1 -1
- package/dist/{chunk-MUBDAI2K.mjs → chunk-YWVLHQ3L.mjs} +1 -1
- package/dist/{chunk-KGSTIGCT.mjs → chunk-ZKBLFPGO.mjs} +1 -1
- package/dist/{chunk-L5MDFQGH.mjs → chunk-ZOP4SDLB.mjs} +1 -1
- package/dist/{chunk-SUO6GOJS.mjs → chunk-ZYYWN6XG.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/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.stories.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/Content.stories.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/CogeBoard.js +1 -1
- package/dist/components/CRM/CogeBoard.mjs +1 -1
- package/dist/components/CRM/CogeBoard.stories.js +1 -1
- package/dist/components/CRM/CogeBoard.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.js +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.stories.js +1 -1
- package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.d.ts +1 -9
- package/dist/components/CRM/KanbanColumn.js +1 -4
- package/dist/components/CRM/KanbanColumn.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.stories.js +1 -4
- 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.js +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/FeatureCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AddEpicModal.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/ChatInterface.mjs +1 -1
- package/dist/components/DigitalColleagues/ChatInterface.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/CommentSection.mjs +1 -1
- package/dist/components/DigitalColleagues/CommentSection.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/DashboardHeader.mjs +1 -1
- package/dist/components/DigitalColleagues/DashboardHeader.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/EpicsView.mjs +1 -1
- package/dist/components/DigitalColleagues/EpicsView.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/KanbanBoard.mjs +1 -1
- package/dist/components/DigitalColleagues/KanbanBoard.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/PlanningView.mjs +1 -1
- package/dist/components/DigitalColleagues/PlanningView.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/SearchableSelect.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskDetailsModal.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskDetailsModal.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskSidebar.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskSidebar.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/TeamSwitcher.mjs +1 -1
- package/dist/components/DigitalColleagues/TeamSwitcher.stories.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.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/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/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/index.mjs +1 -1
- package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/Print.stories.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
- package/dist/components/Layouts/index.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/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 +8 -8
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/tabs.mjs +1 -1
- package/dist/components/ui/tabs.stories.css +1 -0
- package/dist/components/ui/tabs.stories.js +4 -0
- package/dist/components/ui/tabs.stories.mjs +1 -0
- package/dist/globals.css +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.js +14 -14
- 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/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.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.mjs +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/BlogList.mjs +1 -1
- package/dist/sections/BlogList.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.stories.mjs +1 -1
- package/dist/sections/MainPageSection.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PageSections.stories.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/PricingSection.stories.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceDetailSection.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/package.json +1 -1
- package/dist/chunk-3AUTMBDB.mjs +0 -1
- package/dist/chunk-DVF55CWB.mjs +0 -4
- package/dist/chunk-ZAXQ74I3.mjs +0 -4
package/dist/index.js
CHANGED
|
@@ -4,27 +4,27 @@
|
|
|
4
4
|
'use server'
|
|
5
5
|
'use strict'
|
|
6
6
|
|
|
7
|
-
"use strict";var
|
|
8
|
-
aos: MutationObserver
|
|
7
|
+
"use strict";var jm=Object.create;var Vr=Object.defineProperty;var _m=Object.getOwnPropertyDescriptor;var Gm=Object.getOwnPropertyNames;var $m=Object.getPrototypeOf,Wm=Object.prototype.hasOwnProperty;var Um=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Vm=(e,t)=>{for(var a in t)Vr(e,a,{get:t[a],enumerable:!0})},bl=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Gm(t))!Wm.call(e,r)&&r!==a&&Vr(e,r,{get:()=>t[r],enumerable:!(o=_m(t,r))||o.enumerable});return e};var v=(e,t,a)=>(a=e!=null?jm($m(e)):{},bl(t||!e||!e.__esModule?Vr(a,"default",{value:e,enumerable:!0}):a,e)),Xm=e=>bl(Vr({},"__esModule",{value:!0}),e);var Sl=Um((mr,ri)=>{"use strict";(function(e,t){typeof mr=="object"&&typeof ri=="object"?ri.exports=t():typeof define=="function"&&define.amd?define([],t):typeof mr=="object"?mr.AOS=t():e.AOS=t()})(mr,function(){return function(e){function t(o){if(a[o])return a[o].exports;var r=a[o]={exports:{},_l: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(P){return P&&P.__esModule?P:{default:P}}var r=Object.assign||function(P){for(var Re=1;Re<arguments.length;Re++){var Ce=arguments[Re];for(var Ve in Ce)Object.prototype.hasOwnProperty.call(Ce,Ve)&&(P[Ve]=Ce[Ve])}return P},s=a(1),l=(o(s),a(6)),i=o(l),m=a(7),c=o(m),d=a(8),p=o(d),u=a(9),g=o(u),b=a(10),f=o(b),h=a(11),L=o(h),S=a(14),w=o(S),k=[],x=!1,D={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},ie=function(){var P=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(P&&(x=!0),x)return k=(0,L.default)(k,D),(0,f.default)(k,D.once),k},dt=function(){k=(0,w.default)(),ie()},A=function(){k.forEach(function(P,Re){P.node.removeAttribute("data-aos"),P.node.removeAttribute("data-aos-easing"),P.node.removeAttribute("data-aos-duration"),P.node.removeAttribute("data-aos-delay")})},N=function(P){return P===!0||P==="mobile"&&g.default.mobile()||P==="phone"&&g.default.phone()||P==="tablet"&&g.default.tablet()||typeof P=="function"&&P()===!0},F=function(P){D=r(D,P),k=(0,w.default)();var Re=document.all&&!window.atob;return N(D.disable)||Re?A():(D.disableMutationObserver||p.default.isSupported()||(console.info(`
|
|
8
|
+
aos: MutationObserver Bt not supported on this browser,
|
|
9
9
|
code mutations observing has been disabled.
|
|
10
|
-
You may have
|
|
11
|
-
`),D.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",D.easing),document.querySelector("body").setAttribute("data-aos-duration",D.duration),document.querySelector("body").setAttribute("data-aos-delay",D.delay),D.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?ie(!0):D.startEvent==="load"?window.addEventListener(D.startEvent,function(){ie(!0)}):document.addEventListener(D.startEvent,function(){ie(!0)}),window.addEventListener("resize",(0,c.default)(ie,D.debounceDelay,!0)),window.addEventListener("orientationchange",(0,c.default)(ie,D.debounceDelay,!0)),window.addEventListener("scroll",(0,i.default)(function(){(0,f.default)(k,D.once)},D.throttleDelay)),D.disableMutationObserver||p.default.ready("[data-aos]",ct),k)};e.exports={init:F,refresh:ie,refreshHard:ct}},function(e,t){},,,,,function(e,t){(function(a){"use strict";function o(N,F,P){function Re(le){var ft=ne,Ha=fe;return ne=fe=void 0,Ea=le,Ke=N.apply(Ha,ft)}function Ce(le){return Ea=le,_e=setTimeout(Bt,F),za?Re(le):Ke}function Xe(le){var ft=le-St,Ha=le-Ea,vl=F-ft;return fa?ct(vl,na-Ha):vl}function mt(le){var ft=le-St,Ha=le-Ea;return St===void 0||ft>=F||ft<0||fa&&Ha>=na}function Bt(){var le=A();return mt(le)?kt(le):void(_e=setTimeout(Bt,Xe(le)))}function kt(le){return _e=void 0,Pe&&ne?Re(le):(ne=fe=void 0,Ke)}function pt(){_e!==void 0&&clearTimeout(_e),Ea=0,ne=St=fe=_e=void 0}function ut(){return _e===void 0?Ke:kt(A())}function ue(){var le=A(),ft=mt(le);if(ne=arguments,fe=this,St=le,ft){if(_e===void 0)return Ce(St);if(fa)return _e=setTimeout(Bt,F),Re(St)}return _e===void 0&&(_e=setTimeout(Bt,F)),Ke}var ne,fe,na,Ke,_e,St,Ea=0,za=!1,fa=!1,Pe=!0;if(typeof N!="function")throw new TypeError(d);return F=m(F)||0,s(P)&&(za=!!P.leading,fa="maxWait"in P,na=fa?ie(m(P.maxWait)||0,F):na,Pe="trailing"in P?!!P.trailing:Pe),ue.cancel=pt,ue.flush=ut,ue}function r(N,F,P){var Re=!0,Ce=!0;if(typeof N!="function")throw new TypeError(d);return s(P)&&(Re="leading"in P?!!P.leading:Re,Ce="trailing"in P?!!P.trailing:Ce),o(N,F,{leading:Re,maxWait:F,trailing:Ce})}function s(N){var F=typeof N>"u"?"undefined":c(N);return!!N&&(F=="object"||F=="function")}function l(N){return!!N&&(typeof N>"u"?"undefined":c(N))=="object"}function i(N){return(typeof N>"u"?"undefined":c(N))=="symbol"||l(N)&&D.call(N)==u}function m(N){if(typeof N=="number")return N;if(i(N))return p;if(s(N)){var F=typeof N.valueOf=="function"?N.valueOf():N;N=s(F)?F+"":F}if(typeof N!="string")return N===0?N:+N;N=N.replace(g,"");var P=f.test(N);return P||v.test(N)?L(N.slice(2),P?2:8):b.test(N)?p:+N}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},d="Expected a function",p=NaN,u="[object Symbol]",g=/^\s+|\s+$/g,b=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,v=/^0o[0-7]+$/i,L=parseInt,S=(typeof a>"u"?"undefined":c(a))=="object"&&a&&a.Object===Object&&a,w=(typeof self>"u"?"undefined":c(self))=="object"&&self&&self.Object===Object&&self,k=S||w||Function("return this")(),x=Object.prototype,D=x.toString,ie=Math.max,ct=Math.min,A=function(){return k.Date.now()};e.exports=r}).call(t,function(){return this}())},function(e,t){(function(a){"use strict";function o(A,N,F){function P(Pe){var le=ue,ft=ne;return ue=ne=void 0,St=Pe,na=A.apply(ft,le)}function Re(Pe){return St=Pe,Ke=setTimeout(mt,N),Ea?P(Pe):na}function Ce(Pe){var le=Pe-_e,ft=Pe-St,Ha=N-le;return za?ie(Ha,fe-ft):Ha}function Xe(Pe){var le=Pe-_e,ft=Pe-St;return _e===void 0||le>=N||le<0||za&&ft>=fe}function mt(){var Pe=ct();return Xe(Pe)?Bt(Pe):void(Ke=setTimeout(mt,Ce(Pe)))}function Bt(Pe){return Ke=void 0,fa&&ue?P(Pe):(ue=ne=void 0,na)}function kt(){Ke!==void 0&&clearTimeout(Ke),St=0,ue=_e=ne=Ke=void 0}function pt(){return Ke===void 0?na:Bt(ct())}function ut(){var Pe=ct(),le=Xe(Pe);if(ue=arguments,ne=this,_e=Pe,le){if(Ke===void 0)return Re(_e);if(za)return Ke=setTimeout(mt,N),P(_e)}return Ke===void 0&&(Ke=setTimeout(mt,N)),na}var ue,ne,fe,na,Ke,_e,St=0,Ea=!1,za=!1,fa=!0;if(typeof A!="function")throw new TypeError(c);return N=i(N)||0,r(F)&&(Ea=!!F.leading,za="maxWait"in F,fe=za?D(i(F.maxWait)||0,N):fe,fa="trailing"in F?!!F.trailing:fa),ut.cancel=kt,ut.flush=pt,ut}function r(A){var N=typeof A>"u"?"undefined":m(A);return!!A&&(N=="object"||N=="function")}function s(A){return!!A&&(typeof A>"u"?"undefined":m(A))=="object"}function l(A){return(typeof A>"u"?"undefined":m(A))=="symbol"||s(A)&&x.call(A)==p}function i(A){if(typeof A=="number")return A;if(l(A))return d;if(r(A)){var N=typeof A.valueOf=="function"?A.valueOf():A;A=r(N)?N+"":N}if(typeof A!="string")return A===0?A:+A;A=A.replace(u,"");var F=b.test(A);return F||f.test(A)?v(A.slice(2),F?2:8):g.test(A)?d:+A}var m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},c="Expected a function",d=NaN,p="[object Symbol]",u=/^\s+|\s+$/g,g=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,f=/^0o[0-7]+$/i,v=parseInt,L=(typeof a>"u"?"undefined":m(a))=="object"&&a&&a.Object===Object&&a,S=(typeof self>"u"?"undefined":m(self))=="object"&&self&&self.Object===Object&&self,w=L||S||Function("return this")(),k=Object.prototype,x=k.toString,D=Math.max,ie=Math.min,ct=function(){return w.Date.now()};e.exports=o}).call(t,function(){return this}())},function(e,t){"use strict";function a(m){var c=void 0,d=void 0,p=void 0;for(c=0;c<m.length;c+=1)if(d=m[c],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(m,c){var d=window.document,p=o(),u=new p(l);i=c,u.observe(d.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function l(m){m&&m.forEach(function(c){var d=Array.prototype.slice.call(c.addedNodes),p=Array.prototype.slice.call(c.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 as 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 b=u[g];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}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( os)?|phone|p(ixi|Et)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows Et|xda|xiino/i,l=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(vc|oo|s\-)|ai(Dl|rn)|al(av|Et|Et)|amoi|an(ex|ny|yw)|aptu|vc(ch|go)|as(Et|Et)|attw|au(di|\-m|r |s )|avan|Et(ck|ll|nq)|bi(lb|$l)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|Et(mp|nd)|craw|Et(Et|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|vc(ic|k0)|esl8|ez([4-7]0|os|wa|Et)|fetc|fly(\-|Et)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |Et|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|Et)|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|k)|le(Zl|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|Et(Et|ui|Et)|mc(01|21|Et)|m\-cr|Et(rc|ri)|mi(o8|Et|ts)|mmef|mo(01|02|bi|Et|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|Et)|nok(6|i)|nzph|o2im|op(Hd|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|Et|Et)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|Dl(ge|Et|Dl|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|Et(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|Zl(45|id)|sm(al|vc|b3|Et|t5)|Hd(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\-mo|Zl(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|Et)|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 |Et|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( os)?|phone|p(ixi|Et)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows Et|xda|xiino|android|ipad|playbook|silk/i,m=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(vc|oo|s\-)|ai(Dl|rn)|al(av|Et|Et)|amoi|an(ex|ny|yw)|aptu|vc(ch|go)|as(Et|Et)|attw|au(di|\-m|r |s )|avan|Et(ck|ll|nq)|bi(lb|$l)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|Et(mp|nd)|craw|Et(Et|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|vc(ic|k0)|esl8|ez([4-7]0|os|wa|Et)|fetc|fly(\-|Et)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |Et|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|Et)|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|k)|le(Zl|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|Et(Et|ui|Et)|mc(01|21|Et)|m\-cr|Et(rc|ri)|mi(o8|Et|ts)|mmef|mo(01|02|bi|Et|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|Et)|nok(6|i)|nzph|o2im|op(Hd|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|Et|Et)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|Dl(ge|Et|Dl|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|Et(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|Zl(45|id)|sm(al|vc|b3|Et|t5)|Hd(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\-mo|Zl(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|Et)|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 |Et|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,c=function(){function d(){a(this,d)}return r(d,[{key:"phone",value:function(){var p=o();return!(!s.test(p)&&!l.test(p.substr(0,4)))}},{key:"mobile",value:function(){var p=o();return!(!i.test(p)&&!m.test(p.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),d}();t.default=new c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(r,s,l){var i=r.node.getAttribute("data-aos-once");s>r.position?r.node.classList.add("aos-animate"):typeof i<"u"&&(i==="false"||!l&&i!=="true")&&r.node.classList.remove("aos-animate")},o=function(r,s){var l=window.pageYOffset,i=window.innerHeight;r.forEach(function(m,c){a(m,i+l,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),l=function(i,m){return i.forEach(function(c,d){c.node.classList.add("aos-init"),c.position=(0,s.default)(c.node,m.offset)}),i};t.default=l},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),l=function(i,m){var c=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]),c=(0,s.default)(i).top,u.anchorPlacement){case"top-bottom":break;case"center-bottom":c+=i.offsetHeight/2;break;case"bottom-bottom":c+=i.offsetHeight;break;case"top-center":c+=p/2;break;case"bottom-center":c+=p/2+i.offsetHeight;break;case"center-center":c+=p/2+i.offsetHeight/2;break;case"top-top":c+=p;break;case"bottom-top":c+=i.offsetHeight+p;break;case"center-top":c+=i.offsetHeight/2+p}return u.anchorPlacement||u.offset||isNaN(m)||(d=m),c+d};t.default=l},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 Bf={};qm(Bf,{AOSInit:()=>Dp,AboutSection:()=>hf,Alert:()=>rn,AlertDescription:()=>nn,AlertTitle:()=>sn,ApproveLeave:()=>ol,Avatar:()=>vt,AvatarFallback:()=>yt,AvatarImage:()=>ht,Badge:()=>xt,BannerBlock:()=>mn,BlogCard:()=>Hm,BlogDetail:()=>Pf,BlogList:()=>Tf,BlogListSection:()=>xf,BrandLogo:()=>ro,Breadcrumb:()=>ii,BreadcrumbEllipsis:()=>pi,BreadcrumbItem:()=>li,BreadcrumbLink:()=>di,BreadcrumbList:()=>ni,BreadcrumbPage:()=>ci,BreadcrumbSeparator:()=>mi,Breadcrumbs:()=>Xu,Button:()=>B,CMSLink:()=>Zt,CRMCogeBoard:()=>df,CRMKanbanBoard:()=>nf,Calendar:()=>Dr,CalendarView:()=>ll,CallToActionBlock:()=>yo,CallToActionBlockOld:()=>eu,Card:()=>Er,Categories:()=>Gn,ChatCardTask:()=>pl,ChatInterfaceMessages:()=>gf,ChatMessage:()=>ul,Checkbox:()=>Jt,CodeBlock:()=>bn,Collapsible:()=>ba,CollapsibleContent:()=>_a,CollapsibleTrigger:()=>ja,CollectionArchive:()=>Su,Command:()=>ms,CommandDialog:()=>Nd,CommandEmpty:()=>Zi,CommandGroup:()=>en,CommandInput:()=>Qi,CommandItem:()=>an,CommandList:()=>Ji,CommandSeparator:()=>tn,CommandShortcut:()=>on,ContactSection:()=>wf,Container:()=>Ct,ContentBlock:()=>Br,ContentCard:()=>cu,CopyButton:()=>fn,CustomLink:()=>Qe,CustomerCard:()=>Zd,DarkTop:()=>Rn,DealCard:()=>dl,DealDetails:()=>$r,Dialog:()=>Ot,DialogClose:()=>ds,DialogContent:()=>Dt,DialogDescription:()=>Ki,DialogFooter:()=>qi,DialogHeader:()=>Kt,DialogOverlay:()=>cs,DialogPortal:()=>Yi,DialogTitle:()=>Qt,DialogTrigger:()=>ls,DropdownMenu:()=>Il,DropdownMenuCheckboxItem:()=>vi,DropdownMenuContent:()=>gi,DropdownMenuGroup:()=>Bl,DropdownMenuItem:()=>bi,DropdownMenuLabel:()=>yi,DropdownMenuPortal:()=>El,DropdownMenuRadioGroup:()=>Hl,DropdownMenuRadioItem:()=>hi,DropdownMenuSeparator:()=>xi,DropdownMenuShortcut:()=>wi,DropdownMenuSub:()=>zl,DropdownMenuSubContent:()=>fi,DropdownMenuSubTrigger:()=>ui,DropdownMenuTrigger:()=>Ll,DynamicIcon:()=>et,EventCard:()=>ec,FeatureCard:()=>Vo,FeatureGrid:()=>dc,FeaturesBlock:()=>wo,Filter:()=>Wn,FlowPrintable:()=>Mc,Footer:()=>Zu,Header:()=>ef,HeaderDesktop:()=>Jn,HeaderMobile:()=>el,HeadingImage:()=>wu,Hero:()=>du,HighImpactHero:()=>Un,HolidayGrid:()=>nl,HolidayTracker:()=>rf,HoverCard:()=>vd,HoverCardContent:()=>Xi,HoverCardTrigger:()=>hd,Image:()=>sc,ImageBlock:()=>wn,ImageSection:()=>Rf,InfoTile:()=>uu,Input:()=>gt,Insight:()=>pu,KanbanColumn:()=>Wr,Label:()=>ge,LightTop:()=>Tn,LocationsSection:()=>Nf,Logo:()=>Ru,LowImpactHero:()=>Yn,MOTD:()=>gu,MainPageSection:()=>kf,Mask:()=>Wu,Media:()=>ta,MediaBlock:()=>ka,MediumImpactHero:()=>Xn,NewCustomerForm:()=>cl,NewDealForm:()=>ml,NewsGrid:()=>Dc,OrgChart:()=>hu,PagePrintable:()=>Ic,PageRange:()=>Au,PageShape:()=>Mt,Pagination:()=>_n,PayloadPagination:()=>Mu,Popover:()=>kr,PopoverAnchor:()=>pd,PopoverContent:()=>$o,PopoverTrigger:()=>Sr,PostHero:()=>Gu,PricingCard:()=>kn,PricingSection:()=>vf,Printable:()=>Fn,ProjectCard:()=>rc,ProjectTeam:()=>Fu,ProposalSummary:()=>yu,Publish:()=>If,RelatedContent:()=>Ou,RelatedPagesMenu:()=>tf,RelatedPosts:()=>ku,RenderBlocks:()=>oo,RenderBlocksWithShapes:()=>Cu,RenderHero:()=>Vu,RequestLeave:()=>il,ReusableContentBlock:()=>Sn,RichText:()=>q,ScrollArea:()=>la,ScrollBar:()=>ns,Section:()=>Af,SectionHero:()=>Kn,Select:()=>Qa,SelectContent:()=>Na,SelectGroup:()=>Wp,SelectItem:()=>Ca,SelectLabel:()=>Td,SelectScrollDownButton:()=>cn,SelectScrollUpButton:()=>dn,SelectSeparator:()=>Dd,SelectTrigger:()=>wa,SelectValue:()=>Ja,Separator:()=>pr,ServiceCard:()=>lu,ServiceDetail:()=>Mf,ServiceDetailSection:()=>Df,ServiceSection:()=>bf,Sheet:()=>Yr,SheetClose:()=>Ul,SheetContent:()=>fr,SheetDescription:()=>Ri,SheetFooter:()=>ki,SheetHeader:()=>Pi,SheetOverlay:()=>qr,SheetPortal:()=>Ci,SheetTitle:()=>Si,SheetTrigger:()=>Wl,Sidebar:()=>mo,SidebarContent:()=>$a,SidebarFooter:()=>uo,SidebarGroup:()=>zt,SidebarGroupAction:()=>Bi,SidebarGroupContent:()=>Yt,SidebarGroupLabel:()=>ha,SidebarHeader:()=>po,SidebarInput:()=>Li,SidebarInset:()=>Ii,SidebarLeft:()=>Bu,SidebarMenu:()=>bt,SidebarMenuAction:()=>vr,SidebarMenuBadge:()=>Ei,SidebarMenuButton:()=>Ht,SidebarMenuItem:()=>Ze,SidebarMenuSkeleton:()=>zi,SidebarMenuSub:()=>Wa,SidebarMenuSubButton:()=>Va,SidebarMenuSubItem:()=>Ua,SidebarProvider:()=>Di,SidebarRail:()=>Mi,SidebarRight:()=>Hu,SidebarSeparator:()=>br,SidebarTrigger:()=>Ai,SimpleHeader:()=>qu,Skeleton:()=>Me,SlideShow:()=>zs,Tabs:()=>Up,TabsContent:()=>Yp,TabsList:()=>Vp,TabsTrigger:()=>Xp,TextAndImages:()=>Ac,Textarea:()=>Za,Theme:()=>Is,ThemeProvider:()=>$u,ThemeWithShapes:()=>bc,Toast:()=>xr,ToastAction:()=>Oi,ToastClose:()=>wr,ToastDescription:()=>Cr,ToastProvider:()=>ss,ToastTitle:()=>Nr,ToastViewport:()=>yr,Toaster:()=>id,Toggle:()=>_i,ToggleGroup:()=>Gi,ToggleGroupItem:()=>$i,Tooltip:()=>Zr,TooltipContent:()=>gr,TooltipProvider:()=>Jr,TooltipTrigger:()=>es,VideoHeader:()=>Qu,WhyUs:()=>xu,badgeVariants:()=>ln,buttonVariants:()=>Ga,cn:()=>n,getTableOfContents:()=>zo,reducer:()=>ad,toast:()=>od,toggleVariants:()=>Pr,useIsMobile:()=>Qr,useSidebar:()=>_o,useToast:()=>rs});module.exports=Km(Bf);var Ho=h(require("react")),Xr=require("@radix-ui/react-icons"),Ml=require("@radix-ui/react-slot");var Rl=require("clsx");var ri="-",Qm=e=>{let t=Zm(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let i=l.split(ri);return i[0]===""&&i.length!==1&&i.shift(),wl(i,t)||Jm(l)},getConflictingClassGroupIds:(l,i)=>{let m=a[l]||[];return i&&o[l]?[...m,...o[l]]:m}}},wl=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?wl(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(ri);return t.validators.find(({validator:l})=>l(s))?.classGroupId},yl=/^\[(.+)\]$/,Jm=e=>{if(yl.test(e)){let t=yl.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Zm=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return tp(Object.entries(e.classGroups),a).forEach(([s,l])=>{oi(l,o,s,t)}),o},oi=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:xl(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(ep(r)){oi(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,l])=>{oi(l,xl(t,s),a,o)})})},xl=(e,t)=>{let a=e;return t.split(ri).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},ep=e=>e.isThemeGetter,tp=(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(([l,i])=>[t+l,i])):s);return[a,r]}):e,ap=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,l)=>{a.set(s,l),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let l=a.get(s);if(l!==void 0)return l;if((l=o.get(s))!==void 0)return r(s,l),l},set(s,l){a.has(s)?a.set(s,l):r(s,l)}}},Nl="!",op=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,l=i=>{let m=[],c=0,d=0,p;for(let v=0;v<i.length;v++){let L=i[v];if(c===0){if(L===r&&(o||i.slice(v,v+s)===t)){m.push(i.slice(d,v)),d=v+s;continue}if(L==="/"){p=v;continue}}L==="["?c++:L==="]"&&c--}let u=m.length===0?i:i.substring(d),g=u.startsWith(Nl),b=g?u.substring(1):u,f=p&&p>d?p-d:void 0;return{modifiers:m,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:f}};return a?i=>a({className:i,parseClassName:l}):l},rp=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},sp=e=>({cache:ap(e.cacheSize),parseClassName:op(e),...Qm(e)}),ip=/\s+/,np=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],l=e.trim().split(ip),i="";for(let m=l.length-1;m>=0;m-=1){let c=l[m],{modifiers:d,hasImportantModifier:p,baseClassName:u,maybePostfixModifierPosition:g}=a(c),b=!!g,f=o(b?u.substring(0,g):u);if(!f){if(!b){i=c+(i.length>0?" "+i:i);continue}if(f=o(u),!f){i=c+(i.length>0?" "+i:i);continue}b=!1}let v=rp(d).join(":"),L=p?v+Nl:v,S=L+f;if(s.includes(S))continue;s.push(S);let w=r(f,b);for(let k=0;k<w.length;++k){let x=w[k];s.push(L+x)}i=c+(i.length>0?" "+i:i)}return i};function lp(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Cl(t))&&(o&&(o+=" "),o+=a);return o}var Cl=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Cl(e[o]))&&(a&&(a+=" "),a+=t);return a};function dp(e,...t){let a,o,r,s=l;function l(m){let c=t.reduce((d,p)=>p(d),e());return a=sp(c),o=a.cache.get,r=a.cache.set,s=i,i(m)}function i(m){let c=o(m);if(c)return c;let d=np(m,a);return r(m,d),d}return function(){return s(lp.apply(null,arguments))}}var ve=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Pl=/^\[(?:([a-Et-]+):)?(.+)\]$/i,cp=/^\d+\/\d+$/,mp=new Set(["px","full","screen"]),pp=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,up=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|Dl|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,fp=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,gp=/^(inset_)?-?((\d+)?\.?(\d+)[a-Et]+|0)Et-?((\d+)?\.?(\d+)[a-Et]+|0)/,bp=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ga=e=>Bo(e)||mp.has(e)||cp.test(e),Fa=e=>Eo(e,"length",Pp),Bo=e=>!!e&&!Number.isNaN(Number(e)),ai=e=>Eo(e,"number",Bo),dr=e=>!!e&&Number.isInteger(Number(e)),vp=e=>e.endsWith("%")&&Bo(e.slice(0,-1)),O=e=>Pl.test(e),Oa=e=>pp.test(e),hp=new Set(["length","size","percentage"]),yp=e=>Eo(e,hp,kl),xp=e=>Eo(e,"position",kl),wp=new Set(["image","url"]),Np=e=>Eo(e,wp,Sp),Cp=e=>Eo(e,"",kp),cr=()=>!0,Eo=(e,t,a)=>{let o=Pl.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Pp=e=>up.test(e)&&!fp.test(e),kl=()=>!1,kp=e=>gp.test(e),Sp=e=>bp.test(e);var Rp=()=>{let e=ve("colors"),t=ve("spacing"),a=ve("blur"),o=ve("brightness"),r=ve("borderColor"),s=ve("borderRadius"),l=ve("borderSpacing"),i=ve("borderWidth"),m=ve("contrast"),c=ve("grayscale"),d=ve("hueRotate"),p=ve("invert"),u=ve("gap"),g=ve("gradientColorStops"),b=ve("gradientColorStopPositions"),f=ve("inset"),v=ve("margin"),L=ve("opacity"),S=ve("padding"),w=ve("saturate"),k=ve("scale"),x=ve("sepia"),D=ve("skew"),ie=ve("space"),ct=ve("translate"),A=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",O,t],P=()=>[O,t],Re=()=>["",ga,Fa],Ce=()=>["auto",Bo,O],Xe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],mt=()=>["solid","dashed","dotted","double","none"],Bt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],kt=()=>["start","end","center","between","around","evenly","stretch"],pt=()=>["","0",O],ut=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ue=()=>[Bo,O];return{cacheSize:500,separator:":",theme:{colors:[cr],spacing:[ga,Fa],blur:["none","",Oa,O],brightness:ue(),borderColor:[e],borderRadius:["none","","full",Oa,O],borderSpacing:P(),borderWidth:Re(),contrast:ue(),grayscale:pt(),hueRotate:ue(),invert:pt(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[vp,Fa],inset:F(),margin:F(),opacity:ue(),padding:P(),saturate:ue(),scale:ue(),sepia:pt(),skew:ue(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[Oa]}],"break-after":[{"break-after":ut()}],"break-before":[{"break-before":ut()}],"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:[...Xe(),O]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-Et":[{"overflow-Et":N()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-Et":[{"overscroll-Et":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-Et":[{"inset-Et":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],Et:[{Et:["auto",dr,O]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",O]}],grow:[{grow:pt()}],shrink:[{shrink:pt()}],order:[{order:["first","last","none",dr,O]}],"grid-cols":[{"grid-cols":[cr]}],"col-start-end":[{col:["auto",{span:["full",dr,O]},O]}],"col-start":[{"col-start":Ce()}],"col-end":[{"col-end":Ce()}],"grid-rows":[{"grid-rows":[cr]}],"row-start-end":[{row:["auto",{span:[dr,O]},O]}],"row-start":[{"row-start":Ce()}],"row-end":[{"row-end":Ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",O]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",O]}],gap:[{gap:[u]}],"gap-x":[{"gap-x":[u]}],"gap-Et":[{"gap-Et":[u]}],"justify-content":[{justify:["normal",...kt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...kt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...kt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],Et:[{Et:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],Et:[{Et:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[ie]}],"space-x-reverse":["space-x-reverse"],"space-Et":[{"space-Et":[ie]}],"space-Et-reverse":["space-Et-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",O,t]}],"min-w":[{"min-w":[O,t,"min","max","fit"]}],"max-w":[{"max-w":[O,t,"none","full","min","max","fit","prose",{screen:[Oa]},Oa]}],h:[{h:[O,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[O,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Oa,Fa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ai]}],"font-family":[{font:[cr]}],"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",O]}],"line-clamp":[{"line-clamp":["none",Bo,ai]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ga,O]}],"list-image":[{"list-image":["none",O]}],"list-style-type":[{list:["none","disc","decimal",O]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[L]}],"text-decoration":["underline","overline","line-through","Zl-underline"],"text-decoration-style":[{decoration:[...mt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ga,Fa]}],"underline-offset":[{"underline-offset":["auto",ga,O]}],"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:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O]}],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",O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[L]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Xe(),xp]}],"bg-repeat":[{bg:["Zl-repeat",{repeat:["","x","Et","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",yp]}],"bg-image":[{bg:["none",{"gradient-Zl":["t","vc","r","br","b","bl","l","tl"]},Np]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-Zl-pos":[{Zl:[b]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-Zl":[{Zl:[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-Et":[{"rounded-Et":[s]}],"rounded-Et":[{"rounded-Et":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-vc":[{"rounded-vc":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-Et":[{"border-Et":[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":[L]}],"border-style":[{border:[...mt(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-Et":[{"divide-Et":[i]}],"divide-Et-reverse":["divide-Et-reverse"],"divide-opacity":[{"divide-opacity":[L]}],"divide-style":[{divide:mt()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-Et":[{"border-Et":[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":[ga,O]}],"outline-w":[{outline:[ga,Fa]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[L]}],"ring-offset-w":[{"ring-offset":[ga,Fa]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Oa,Cp]}],"shadow-color":[{shadow:[cr]}],opacity:[{opacity:[L]}],"mix-blend":[{"mix-blend":[...Bt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Bt()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",Oa,O]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[w]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[L]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-Et":[{"border-spacing-Et":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:ue()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:ue()}],animate:[{animate:["none","spin","ping","pulse","bounce",O]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-Et":[{"scale-Et":[k]}],rotate:[{rotate:[dr,O]}],"translate-x":[{"translate-x":[ct]}],"translate-Et":[{"translate-Et":[ct]}],"skew-x":[{"skew-x":[D]}],"skew-Et":[{"skew-Et":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O]}],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","Zl-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","Et-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Et","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-Et":[{"scroll-Et":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-Et":[{"scroll-Et":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","Et","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-Et":[{"touch-pan":["Et","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ga,Fa,ai]}],stroke:[{stroke:[e,"none"]}],Dl:["Dl-only","not-Dl-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-Et"],overscroll:["overscroll-x","overscroll-Et"],inset:["inset-x","inset-Et","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-Et":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-Et"],p:["px","py","ps","Et","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","Et","mt","mr","mb","ml"],mx:["mr","ml"],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-Et","rounded-Et","rounded-es","rounded-tl","rounded-vc","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-Et","rounded-Et"],"rounded-t":["rounded-tl","rounded-vc"],"rounded-r":["rounded-vc","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-Et"],"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-Et":["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-Et":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-Et","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-Et","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-Et","touch-pz"],"touch-x":["touch"],"touch-Et":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Sl=dp(Rp);function n(...e){return Sl((0,Rl.clsx)(e))}function zo(e){let t=0,a=(s,l)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${l}`,o=e.layout.flatMap(s=>{let l=[];return"title"in s&&s.title&&l.push({text:s.title,id:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(i=>{if(i.title&&l.push({text:i.title,id:a(i.title,t++),tag:"h2"}),i.richText?.root?.children&&i.richText?.root?.children.length===1){let m=i.richText.root.children.filter(c=>c!==void 0&&c.type==="heading");for(let c of m)c.children[0]&&l.push({text:c.children[0].text??"",id:a(c.children[0].text,t++),tag:c.tag||"h2"})}}),l}),r=Tp(e.layout);return{tableOfContents:o,contentWithIds:r}}function Tp(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).map(s=>(s.type==="heading"&&s.children&&s.children[0].text?s.id=t(s.children[0].text,a++):s.type==="block"&&s.fields?.media&&(s.id=t(`image-${a}`,a++)),s))),r))),o))}var Dl=require("react"),Al=h(Tl());function Dp(){return(0,Dl.useEffect)(()=>{Al.default.init({duration:1e3,offset:0,once:!0})},[]),null}var Et=require("react/jsx-runtime"),ii=Ho.forwardRef(({...e},t)=>(0,Et.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));ii.displayName="Breadcrumb";var ni=Ho.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("ol",{ref:a,className:n("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));ni.displayName="BreadcrumbList";var li=Ho.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("li",{ref:a,className:n("inline-flex items-center gap-1.5",e),...t}));li.displayName="BreadcrumbItem";var di=Ho.forwardRef(({asChild:e,className:t,...a},o)=>(0,Et.jsx)(e?Ml.Slot:"a",{ref:o,className:n("transition-colors hover:text-foreground",t),...a}));di.displayName="BreadcrumbLink";var ci=Ho.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:n("font-normal text-foreground",e),...t}));ci.displayName="BreadcrumbPage";var mi=({children:e,className:t,...a})=>(0,Et.jsx)("li",{role:"presentation","aria-hidden":"true",className:n("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e??(0,Et.jsx)(Xr.ChevronRightIcon,{})});mi.displayName="BreadcrumbSeparator";var pi=({className:e,...t})=>(0,Et.jsxs)("span",{role:"presentation","aria-hidden":"true",className:n("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,Et.jsx)(Xr.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,Et.jsx)("span",{className:"Dl-only",children:"More"})]});pi.displayName="BreadcrumbElipssis";var Fo=h(require("@radix-ui/react-collapsible")),ba=Fo.Root,ja=Fo.CollapsibleTrigger,_a=Fo.CollapsibleContent;var va=h(require("react")),$=h(require("@radix-ui/react-dropdown-menu"));var Il=$.Root,Ll=$.Trigger,Bl=$.Group,El=$.Portal,zl=$.Sub,Hl=$.RadioGroup,ui=va.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Et.jsxs)($.SubTrigger,{ref:r,className:n("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,(0,Et.jsx)(Xr.ChevronRightIcon,{className:"ml-auto"})]}));ui.displayName=$.SubTrigger.displayName;var fi=va.forwardRef(({className:e,...t},a)=>(0,Et.jsx)($.SubContent,{ref:a,className:n("Et-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}));fi.displayName=$.SubContent.displayName;var gi=va.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Et.jsx)($.Portal,{children:(0,Et.jsx)($.Content,{ref:o,sideOffset:t,className:n("Et-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})}));gi.displayName=$.Content.displayName;var bi=va.forwardRef(({className:e,inset:t,...a},o)=>(0,Et.jsx)($.Item,{ref:o,className:n("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));bi.displayName=$.Item.displayName;var vi=va.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Et.jsxs)($.CheckboxItem,{ref:r,className:n("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[(0,Et.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Et.jsx)($.ItemIndicator,{children:(0,Et.jsx)(Xr.CheckIcon,{className:"h-4 w-4"})})}),t]}));vi.displayName=$.CheckboxItem.displayName;var hi=va.forwardRef(({className:e,children:t,...a},o)=>(0,Et.jsxs)($.RadioItem,{ref:o,className:n("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,Et.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Et.jsx)($.ItemIndicator,{children:(0,Et.jsx)(Xr.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));hi.displayName=$.RadioItem.displayName;var yi=va.forwardRef(({className:e,inset:t,...a},o)=>(0,Et.jsx)($.Label,{ref:o,className:n("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));yi.displayName=$.Label.displayName;var xi=va.forwardRef(({className:e,...t},a)=>(0,Et.jsx)($.Separator,{ref:a,className:n("-mx-1 my-1 h-px bg-muted",e),...t}));xi.displayName=$.Separator.displayName;var wi=({className:e,...t})=>(0,Et.jsx)("span",{className:n("ml-auto text-xs tracking-widest opacity-60",e),...t});wi.displayName="DropdownMenuShortcut";var Fl=h(require("react"));var gt=Fl.forwardRef(({className:e,type:t,...a},o)=>(0,Et.jsx)("input",{type:t,className:n("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));gt.displayName="Input";var jl=h(require("react")),Ni=h(require("@radix-ui/react-separator"));var pr=jl.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,Et.jsx)(Ni.Root,{ref:r,decorative:a,orientation:t,className:n("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));pr.displayName=Ni.Root.displayName;var ur=h(require("react")),Ae=h(require("@radix-ui/react-dialog")),$l=require("class-variance-authority");var Yr=Ae.Root,Wl=Ae.Trigger,Ul=Ae.Close,Ci=Ae.Portal,qr=ur.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(Ae.Overlay,{className:n("fixed inset-0 Et-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}));qr.displayName=Ae.Overlay.displayName;var Ap=(0,$l.cva)("fixed Et-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-Zl-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-Zl-bottom data-[state=open]:slide-in-from-bottom",left:"inset-Et-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-Zl-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-Et-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-Zl-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),fr=ur.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,Et.jsxs)(Ci,{children:[(0,Et.jsx)(qr,{}),(0,Et.jsxs)(Ae.Content,{ref:r,className:n(Ap({side:e}),t),...o,children:[(0,Et.jsxs)(Ae.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,Et.jsx)(Xr.Cross2Icon,{className:"h-4 w-4"}),(0,Et.jsx)("span",{className:"Dl-only",children:"Close"})]}),a]})]}));fr.displayName=Ae.Content.displayName;var Pi=({className:e,...t})=>(0,Et.jsx)("div",{className:n("flex flex-col space-Et-2 text-center sm:text-left",e),...t});Pi.displayName="SheetHeader";var ki=({className:e,...t})=>(0,Et.jsx)("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ki.displayName="SheetFooter";var Si=ur.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(Ae.Title,{ref:a,className:n("text-lg font-semibold text-foreground",e),...t}));Si.displayName=Ae.Title.displayName;var Ri=ur.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(Ae.Description,{ref:a,className:n("text-sm text-muted-foreground",e),...t}));Ri.displayName=Ae.Description.displayName;var U=h(require("react")),Zl=require("lucide-react");var Qr=(e=768)=>{let[t,a]=(0,Dl.useState)(!1);return(0,Dl.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var Yl=h(require("react")),Ga=(0,$l.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"}}}),B=Yl.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,Et.jsx)(e?Ml.Slot:"button",{className:n(Ga({className:t,size:a,variant:o})),ref:s,...r}));B.displayName="Button";function Me({className:e,...t}){return(0,Et.jsx)("div",{className:n("animate-pulse rounded-md bg-primary/10",e),...t})}var Ql=h(require("react")),Xt=h(require("@radix-ui/react-tooltip"));var Jr=Xt.Provider,Zr=Xt.Root,es=Xt.Trigger,gr=Ql.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Et.jsx)(Xt.Portal,{children:(0,Et.jsx)(Xt.Content,{ref:o,sideOffset:t,className:n("Et-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})}));gr.displayName=Xt.Content.displayName;var Mp="sidebar:state",Ip=60*60*24*7,Lp="16rem",Bp="18rem",Ep="3rem",zp="b",ed=U.createContext(null);function _o(){let e=U.useContext(ed);if(!e)throw new Error("useSidebar must Et used within a SidebarProvider.");return e}var Di=U.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...l},i)=>{let m=Qr(),[c,d]=U.useState(!1),[p,u]=U.useState(e),g=t??p,b=U.useCallback(S=>{if(a)return a?.(typeof S=="function"?S(g):S);u(S),document.cookie=`${Mp}=${g}; path=/; max-age=${Ip}`},[a,g]),f=U.useCallback(()=>m?d(S=>!S):b(S=>!S),[m,b,d]);U.useEffect(()=>{let S=w=>{w.key===zp&&(w.metaKey||w.ctrlKey)&&(w.preventDefault(),f())};return window.addEventListener("keydown",S),()=>window.removeEventListener("keydown",S)},[f]);let v=g?"expanded":"collapsed",L=U.useMemo(()=>({state:v,open:g,setOpen:b,isMobile:m,openMobile:c,setOpenMobile:d,toggleSidebar:f}),[v,g,b,m,c,d,f]);return(0,Et.jsx)(ed.Provider,{value:L,children:(0,Et.jsx)(Jr,{delayDuration:0,children:(0,Et.jsx)("div",{style:{"--sidebar-width":Lp,"--sidebar-width-icon":Ep,...r},className:n("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:i,...l,children:s})})})});Di.displayName="SidebarProvider";var mo=U.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},l)=>{let{isMobile:i,state:m,openMobile:c,setOpenMobile:d}=_o();return a==="none"?(0,Et.jsx)("div",{className:n("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:l,...s,children:r}):i?(0,Et.jsx)(Yr,{open:c,onOpenChange:d,...s,children:(0,Et.jsx)(fr,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Bp},side:e,children:(0,Et.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,Et.jsxs)("div",{ref:l,className:"group peer hidden md:block text-sidebar-foreground","data-state":m,"data-collapsible":m==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,Et.jsx)("div",{className:n("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)Et+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,Et.jsx)("div",{className:n("duration-200 fixed top-14 bottom-0 Et-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)Et+_theme(spacing.4)Et+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,Et.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})})]})});mo.displayName="Sidebar";var Ai=U.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=_o();return(0,Et.jsxs)(B,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:n("h-7 w-7",e),onClick:s=>{t?.(s),r()},...a,children:[(0,Et.jsx)(Zl.PanelLeft,{}),(0,Et.jsx)("span",{className:"Dl-only",children:"Toggle Sidebar"})]})});Ai.displayName="SidebarTrigger";var Mi=U.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=_o();return(0,Et.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:n("absolute inset-Et-0 Et-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-Et-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]Et&]:cursor-w-resize [[data-side=right]Et&]:cursor-e-resize","[[data-side=left][data-state=collapsed]Et&]:cursor-e-resize [[data-side=right][data-state=collapsed]Et&]: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]Et&]:-right-2","[[data-side=right][data-collapsible=offcanvas]Et&]:-left-2",e),...t})});Mi.displayName="SidebarRail";var Ii=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("main",{ref:a,className:n("flex flex-1 flex-col bg-background overflow-Et-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));Ii.displayName="SidebarInset";var Li=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(gt,{ref:a,"data-sidebar":"input",className:n("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));Li.displayName="SidebarInput";var po=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,"data-sidebar":"header",className:n("flex flex-col gap-2 p-2",e),...t}));po.displayName="SidebarHeader";var uo=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,"data-sidebar":"footer",className:n("flex flex-col gap-2 p-2",e),...t}));uo.displayName="SidebarFooter";var br=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(pr,{ref:a,"data-sidebar":"separator",className:n("mx-2 w-auto bg-sidebar-border",e),...t}));br.displayName="SidebarSeparator";var $a=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,"data-sidebar":"content",className:n("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));$a.displayName="SidebarContent";var zt=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,"data-sidebar":"group",className:n("relative flex w-full min-w-0 flex-col p-2",e),...t}));zt.displayName="SidebarGroup";var ha=U.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Et.jsx)(t?Ml.Slot:"div",{ref:o,"data-sidebar":"group-label",className:n("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));ha.displayName="SidebarGroupLabel";var Bi=U.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Et.jsx)(t?Ml.Slot:"button",{ref:o,"data-sidebar":"group-action",className:n("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...a}));Bi.displayName="SidebarGroupAction";var Yt=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,"data-sidebar":"group-content",className:n("w-full text-sm",e),...t}));Yt.displayName="SidebarGroupContent";var bt=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("ul",{ref:a,"data-sidebar":"menu",className:n("flex w-full min-w-0 flex-col gap-1",e),...t}));bt.displayName="SidebarMenu";var Ze=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:n("group/menu-item relative",e),...t}));Ze.displayName="SidebarMenuItem";var Hp=(0,$l.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"}}),Ht=U.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...l},i)=>{let m=e?Ml.Slot:"button",{isMobile:c,state:d}=_o(),p=(0,Et.jsx)(m,{ref:i,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:n(Hp({variant:a,size:o}),s),...l});return r?(typeof r=="string"&&(r={children:r}),(0,Et.jsxs)(Zr,{children:[(0,Et.jsx)(es,{asChild:!0,children:p}),(0,Et.jsx)(gr,{side:"right",align:"center",hidden:d!=="collapsed"||c,...r})]})):p});Ht.displayName="SidebarMenuButton";var vr=U.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,Et.jsx)(t?Ml.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:n("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...o}));vr.displayName="SidebarMenuAction";var Ei=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:n("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));Ei.displayName="SidebarMenuBadge";var zi=U.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=U.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,Et.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:n("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,Et.jsx)(Me,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,Et.jsx)(Me,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});zi.displayName="SidebarMenuSkeleton";var Wa=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:n("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}));Wa.displayName="SidebarMenuSub";var Ua=U.forwardRef(({...e},t)=>(0,Et.jsx)("li",{ref:t,...e}));Ua.displayName="SidebarMenuSubItem";var Va=U.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...r},s)=>(0,Et.jsx)(e?Ml.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:n("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}));Va.displayName="SidebarMenuSubButton";var os=h(require("react")),Fp=1,Op=1e6;var Hi=0;function jp(){return Hi=(Hi+1)%Number.MAX_SAFE_INTEGER,Hi.toString()}var Fi=new Map,td=e=>{if(Fi.has(e))return;let t=setTimeout(()=>{Fi.delete(e),hr({type:"REMOVE_TOAST",toastId:e})},Op);Fi.set(e,t)},ad=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Fp)};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?td(a):e.toasts.forEach(o=>{td(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)}}},ts=[],as={toasts:[]};function hr(e){as=ad(as,e),ts.forEach(t=>{t(as)})}function od({...e}){let t=jp(),a=r=>hr({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>hr({type:"DISMISS_TOAST",toastId:t});return hr({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function rs(){let[e,t]=os.useState(as);return os.useEffect(()=>(ts.push(t),()=>{let a=ts.indexOf(t);a>-1&&ts.splice(a,1)}),[e]),{...e,toast:od,dismiss:a=>hr({type:"DISMISS_TOAST",toastId:a})}}var fo=h(require("react")),He=h(require("@radix-ui/react-toast"));var ss=He.Provider,yr=fo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(He.Viewport,{ref:a,className:n("fixed top-0 Et-[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}));yr.displayName=He.Viewport.displayName;var _p=(0,$l.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-Zl-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"}}),xr=fo.forwardRef(({className:e,variant:t,...a},o)=>(0,Et.jsx)(He.Root,{ref:o,className:n(_p({variant:t}),e),...a}));xr.displayName=He.Root.displayName;var Oi=fo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(He.Action,{ref:a,className:n("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Oi.displayName=He.Action.displayName;var wr=fo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(He.Close,{ref:a,className:n("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:(0,Et.jsx)(Zl.X,{className:"h-4 w-4"})}));wr.displayName=He.Close.displayName;var Nr=fo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(He.Title,{ref:a,className:n("text-sm font-semibold [&+div]:text-xs",e),...t}));Nr.displayName=He.Title.displayName;var Cr=fo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(He.Description,{ref:a,className:n("text-sm opacity-90",e),...t}));Cr.displayName=He.Description.displayName;function id(){let{toasts:e}=rs();return(0,Et.jsxs)(ss,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,Et.jsxs)(xr,{...s,children:[(0,Et.jsxs)("div",{className:"grid gap-1",children:[a&&(0,Et.jsx)(Nr,{children:a}),o&&(0,Et.jsx)(Cr,{children:o})]}),r,(0,Et.jsx)(wr,{})]},t)}),(0,Et.jsx)(yr,{})]})}var nd=h(require("react")),ji=h(require("@radix-ui/react-toggle"));var Pr=(0,$l.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"}}),_i=nd.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,Et.jsx)(ji.Root,{ref:r,className:n(Pr({variant:t,size:a,className:e})),...o}));_i.displayName=ji.Root.displayName;var go=h(require("react")),Go=h(require("@radix-ui/react-toggle-group"));var cd=go.createContext({size:"default",variant:"default"}),Gi=go.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,Et.jsx)(Go.Root,{ref:s,className:n("flex items-center justify-center gap-1",e),...r,children:(0,Et.jsx)(cd.Provider,{value:{variant:t,size:a},children:o})}));Gi.displayName=Go.Root.displayName;var $i=go.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let l=go.useContext(cd);return(0,Et.jsx)(Go.Item,{ref:s,className:n(Pr({variant:l.variant||a,size:l.size||o}),e),...r,children:t})});$i.displayName=Go.Item.displayName;var Wi=h(require("react")),Ft=h(require("@radix-ui/react-scroll-area"));var la=Wi.forwardRef(({className:e,children:t,...a},o)=>(0,Et.jsxs)(Ft.Root,{ref:o,className:n("relative overflow-hidden",e),...a,children:[(0,Et.jsx)(Ft.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Et.jsx)(ns,{}),(0,Et.jsx)(Ft.Corner,{})]}));la.displayName=Ft.Root.displayName;var ns=Wi.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,Et.jsx)(Ft.ScrollAreaScrollbar,{ref:o,orientation:t,className:n("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,Et.jsx)(Ft.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));ns.displayName=Ft.ScrollAreaScrollbar.displayName;var md=h(require("react")),qt=h(require("@radix-ui/react-popover"));var kr=qt.Root,Sr=qt.Trigger,pd=qt.Anchor,$o=md.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Et.jsx)(qt.Portal,{children:(0,Et.jsx)(qt.Content,{ref:r,align:t,sideOffset:a,className:n("Et-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})}));$o.displayName=qt.Content.displayName;var ud=h(require("react")),Vi=h(require("@radix-ui/react-label"));var Gp=(0,$l.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ge=ud.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(Vi.Root,{ref:a,className:n(Gp(),e),...t}));ge.displayName=Vi.Root.displayName;var bd=h(require("react")),bo=h(require("@radix-ui/react-hover-card"));var vd=bo.Root,hd=bo.Trigger,Xi=bd.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Et.jsx)(bo.Content,{ref:r,align:t,sideOffset:a,className:n("Et-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}));Xi.displayName=bo.Content.displayName;var Rr=h(require("react")),Ie=h(require("@radix-ui/react-dialog"));var Ot=Ie.Root,ls=Ie.Trigger,Yi=Ie.Portal,ds=Ie.Close,cs=Rr.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(Ie.Overlay,{ref:a,className:n("fixed inset-0 Et-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}));cs.displayName=Ie.Overlay.displayName;var Dt=Rr.forwardRef(({className:e,children:t,...a},o)=>(0,Et.jsxs)(Yi,{children:[(0,Et.jsx)(cs,{}),(0,Et.jsxs)(Ie.Content,{ref:o,className:n("fixed left-[50%] top-[50%] Et-50 grid w-full max-w-lg translate-x-[-50%] translate-Et-[-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-Zl-left-1/2 data-[state=closed]:slide-out-Zl-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,Et.jsxs)(Ie.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,Et.jsx)(Zl.X,{className:"h-4 w-4"}),(0,Et.jsx)("span",{className:"Dl-only",children:"Close"})]})]})]}));Dt.displayName=Ie.Content.displayName;var Kt=({className:e,...t})=>(0,Et.jsx)("div",{className:n("flex flex-col space-Et-1.5 text-center sm:text-left",e),...t});Kt.displayName="DialogHeader";var qi=({className:e,...t})=>(0,Et.jsx)("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});qi.displayName="DialogFooter";var Qt=Rr.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(Ie.Title,{ref:a,className:n("text-lg font-semibold leading-none tracking-tight",e),...t}));Qt.displayName=Ie.Title.displayName;var Ki=Rr.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(Ie.Description,{ref:a,className:n("text-sm text-muted-foreground",e),...t}));Ki.displayName=Ie.Description.displayName;var qa=h(require("react")),st=require("cmdk");var ms=qa.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(st.Command,{ref:a,className:n("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));ms.displayName=st.Command.displayName;var Nd=({children:e,...t})=>(0,Et.jsx)(Ot,{...t,children:(0,Et.jsx)(Dt,{className:"overflow-hidden p-0",children:(0,Et.jsx)(ms,{className:"[&Et[cmdk-group-heading]]:px-2 [&Et[cmdk-group-heading]]:font-medium [&Et[cmdk-group-heading]]:text-muted-foreground [&Et[cmdk-group]:not([hidden])Et~[cmdk-group]]:pt-0 [&Et[cmdk-group]]:px-2 [&Et[cmdk-input-wrapper]_svg]:h-5 [&Et[cmdk-input-wrapper]_svg]:w-5 [&Et[cmdk-input]]:h-12 [&Et[cmdk-item]]:px-2 [&Et[cmdk-item]]:py-3 [&Et[cmdk-item]_svg]:h-5 [&Et[cmdk-item]_svg]:w-5",children:e})})}),Qi=qa.forwardRef(({className:e,...t},a)=>(0,Et.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,Et.jsx)(Zl.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,Et.jsx)(st.Command.Input,{ref:a,className:n("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Qi.displayName=st.Command.Input.displayName;var Ji=qa.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(st.Command.List,{ref:a,className:n("max-h-[300px] overflow-Et-auto overflow-x-hidden",e),...t}));Ji.displayName=st.Command.List.displayName;var Zi=qa.forwardRef((e,t)=>(0,Et.jsx)(st.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Zi.displayName=st.Command.Empty.displayName;var en=qa.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(st.Command.Group,{ref:a,className:n("overflow-hidden p-1 text-foreground [&Et[cmdk-group-heading]]:px-2 [&Et[cmdk-group-heading]]:py-1.5 [&Et[cmdk-group-heading]]:text-xs [&Et[cmdk-group-heading]]:font-medium [&Et[cmdk-group-heading]]:text-muted-foreground",e),...t}));en.displayName=st.Command.Group.displayName;var tn=qa.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(st.Command.Separator,{ref:a,className:n("-mx-1 h-px bg-border",e),...t}));tn.displayName=st.Command.Separator.displayName;var an=qa.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(st.Command.Item,{ref:a,className:n("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));an.displayName=st.Command.Item.displayName;var on=({className:e,...t})=>(0,Et.jsx)("span",{className:n("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});on.displayName="CommandShortcut";var ps=h(require("react"));var $p=(0,$l.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-Et-[-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"}}),rn=ps.forwardRef(({className:e,variant:t,...a},o)=>(0,Et.jsx)("div",{ref:o,role:"alert",className:n($p({variant:t}),e),...a}));rn.displayName="Alert";var sn=ps.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("h5",{ref:a,className:n("mb-1 font-medium leading-none tracking-tight",e),...t}));sn.displayName="AlertTitle";var nn=ps.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,className:n("text-sm [&_p]:leading-relaxed",e),...t}));nn.displayName="AlertDescription";var fs=h(require("react")),xa=h(require("@radix-ui/react-avatar"));var vt=fs.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(xa.Root,{ref:a,className:n("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));vt.displayName=xa.Root.displayName;var ht=fs.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(xa.Image,{ref:a,className:n("aspect-square h-full w-full",e),...t}));ht.displayName=xa.Image.displayName;var yt=fs.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(xa.Fallback,{ref:a,className:n("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));yt.displayName=xa.Fallback.displayName;var ln=(0,$l.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 xt({className:e,variant:t,...a}){return(0,Et.jsx)("div",{className:n(ln({variant:t}),e),...a})}var Tr=h(require("@radix-ui/react-checkbox")),Rd=h(require("react")),Jt=Rd.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(Tr.Root,{className:n("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,Et.jsx)(Tr.Indicator,{className:n("flex items-center justify-center text-current"),children:(0,Et.jsx)(Zl.Check,{className:"h-4 w-4"})})}));Jt.displayName=Tr.Root.displayName;var X=h(require("@radix-ui/react-select")),Ka=h(require("react")),Qa=X.Root,Wp=X.Group,Ja=X.Value,wa=Ka.forwardRef(({children:e,className:t,...a},o)=>(0,Et.jsxs)(X.Trigger,{className:n("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,Et.jsx)(X.Icon,{asChild:!0,children:(0,Et.jsx)(Zl.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));wa.displayName=X.Trigger.displayName;var dn=Ka.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(X.ScrollUpButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Et.jsx)(Zl.ChevronUp,{className:"h-4 w-4"})}));dn.displayName=X.ScrollUpButton.displayName;var cn=Ka.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(X.ScrollDownButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Et.jsx)(Zl.ChevronDown,{className:"h-4 w-4"})}));cn.displayName=X.ScrollDownButton.displayName;var Na=Ka.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,Et.jsx)(X.Portal,{children:(0,Et.jsxs)(X.Content,{className:n("relative Et-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-Et-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-Et-1",t),position:a,ref:r,...o,children:[(0,Et.jsx)(dn,{}),(0,Et.jsx)(X.Viewport,{className:n("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Et.jsx)(cn,{})]})}));Na.displayName=X.Content.displayName;var Td=Ka.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(X.Label,{className:n("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));Td.displayName=X.Label.displayName;var Ca=Ka.forwardRef(({children:e,className:t,...a},o)=>(0,Et.jsxs)(X.Item,{className:n("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[(0,Et.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Et.jsx)(X.ItemIndicator,{children:(0,Et.jsx)(Zl.Check,{className:"h-4 w-4"})})}),(0,Et.jsx)(X.ItemText,{children:e})]}));Ca.displayName=X.Item.displayName;var Dd=Ka.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(X.Separator,{className:n("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Dd.displayName=X.Separator.displayName;var Ad=h(require("react")),Za=Ad.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("textarea",{className:n("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));Za.displayName="Textarea";var Id=require("react-day-picker");function Dr({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,Et.jsx)(Id.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:n("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-Et-4 sm:space-x-4 sm:space-Et-0",month:"space-Et-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:n(Ga({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-Et-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:n("relative p-0 text-center text-sm focus-within:relative focus-within:Et-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:n(Ga({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})}Dr.displayName="Calendar";var eo=h(require("@radix-ui/react-tabs"));function Up({className:e,...t}){return(0,Et.jsx)(eo.Root,{"data-slot":"tabs",className:n("flex flex-col gap-2",e),...t})}function Vp({className:e,...t}){return(0,Et.jsx)(eo.List,{"data-slot":"tabs-list",className:n("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Xp({className:e,...t}){return(0,Et.jsx)(eo.Trigger,{"data-slot":"tabs-trigger",className:n("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Yp({className:e,...t}){return(0,Et.jsx)(eo.Content,{"data-slot":"tabs-content",className:n("flex-1 outline-none",e),...t})}var mn=({className:e,content:t,style:a})=>(0,Et.jsx)("div",{className:n("mx-auto my-8 w-full",e),children:(0,Et.jsx)("div",{className:n("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:(0,Et.jsx)(q,{content:t,enableGutter:!1,enableProse:!1})})});var pn=h(require("next/link")),Zt=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:l,reference:i,size:m,url:c}=e,d=t==="reference"&&typeof i?.value=="object"&&i.value.slug?`${i?.relationTo!=="pages"?`/${i?.relationTo}`:""}/${i.value.slug}`:c;if(!d)return null;let p=a==="link"?"clear":m,u=l?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,Et.jsxs)(pn.default,{className:n(r),href:d||c||"",...u,children:[s&&s,o&&o]}):(0,Et.jsx)(B,{asChild:!0,className:r,size:p,variant:a,children:(0,Et.jsxs)(pn.default,{className:n(r),href:d||c||"",...u,children:[s&&s,o&&o]})})};function hs({className:e}){return n("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 qp({className:e,...t}){return(0,Et.jsx)("input",{...t,className:hs({className:e})})}function ys({icon:e,...t}){return(0,Et.jsxs)("div",{className:"relative w-full",children:[(0,Et.jsx)(qp,{...t}),e&&(0,Et.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-Et-1/2 text-accent",children:e})]})}function Kp({className:e,...t}){return(0,Et.jsx)("textarea",{...t,className:n(hs({}),"resize-none md:min-h-[130px]",e)})}function Bd({icon:e,...t}){return(0,Et.jsxs)("div",{className:"relative w-full",children:[(0,Et.jsx)(Kp,{...t}),e&&(0,Et.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var zd=require("formik"),Hd=require("react-icons/fa6"),ho=h(require("yup"));async function Ed(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 Et not defined");let l={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Us Form",wrap:!0,style:"heading",weight:"Bolder"},{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"TextBlock",text:"Name",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Email",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Subject",wrap:!0,weight:"Bolder"}]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:`${t}`,wrap:!0},{type:"TextBlock",text:`${a}`,wrap:!0},{type:"TextBlock",text:`${o}`,wrap:!0}]}]},{type:"TextBlock",text:`${r}`,wrap:!0}]}}]};try{let i=await fetch(s,{method:"POST",mode:"Zl-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});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 un=require("sonner"),ea={tooShort:"Must Et Et least ${min} characters",tooLong:"Must Et Et most ${max} characters",required:"This field Et required",email:"Invalid email format"},Qp=ho.object().shape({name:ho.string().min(2,ea.tooShort).max(50,ea.tooLong).required(ea.required),email:ho.string().email(ea.email).required(ea.required),subject:ho.string().min(2,ea.tooShort).max(50,ea.tooLong).required(ea.required),message:ho.string().min(2,ea.tooShort).max(300,ea.tooLong).required(ea.required)}),xs=n("!pr-[44px] text-foreground"),ws=n("!border-red-600 border"),Ns=n("Dl-only");function Cs(){return(0,Et.jsx)(zd.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:Qp,onSubmit:async(e,{resetForm:t})=>{let a=await Ed(e);a.data===null?un.toast.error(a.message):(un.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:l})=>(0,Et.jsxs)("form",{onSubmit:l,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,Et.jsxs)("div",{children:[(0,Et.jsx)(ys,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,Et.jsx)(Hd.FaUser,{className:"text-primary"}),className:n(xs,e.name&&t.name&&ws)}),e.name&&t.name&&(0,Et.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:Ns,children:e.name})]}),(0,Et.jsxs)("div",{children:[(0,Et.jsx)(ys,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,Et.jsx)(Jp,{}),className:n(xs,e.email&&t.email&&ws)}),e.email&&t.email&&(0,Et.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:Ns,children:e.email})]}),(0,Et.jsxs)("div",{className:"lg:col-span-2",children:[(0,Et.jsx)(ys,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:n(xs,e.subject&&t.subject&&ws)}),e.subject&&t.subject&&(0,Et.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:Ns,children:e.subject})]}),(0,Et.jsxs)("div",{className:"lg:col-span-2",children:[(0,Et.jsx)(Bd,{placeholder:"Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,Et.jsx)(Zp,{}),className:n(xs,e.message&&t.message&&ws)}),e.message&&t.message&&(0,Et.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:Ns,children:e.message})]}),(0,Et.jsx)("div",{className:"lg:col-span-2 light grid justify-items-center",children:(0,Et.jsx)(B,{type:"submit",className:"outline px-6 rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:s,children:"Send"})})]})})}function Jp(){return(0,Et.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,Et.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 Zp(){return(0,Et.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,Et.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"})})}var eu=({links:e,richText:t})=>(0,Et.jsx)("div",{className:"container",children:(0,Et.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,Et.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,Et.jsx)(q,{className:"mb-0",content:t,enableGutter:!1})}),(0,Et.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,Et.jsx)(Zt,{size:"lg",...a},o))})]})}),yo=({links:e,richText:t})=>{let[a,o]=(0,Dl.useState)(!1),r="accent",s=()=>o(!0),l=()=>o(!1),i=m=>{m.target===m.currentTarget&&l()};return(0,Et.jsxs)("div",{className:n("relative isolate overflow-hidden",r==="accent"?"bg-accent":"bg-black"),children:[(0,Et.jsx)("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:(0,Et.jsxs)("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&(0,Et.jsx)(q,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),(0,Et.jsx)("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:(0,Et.jsx)("div",{className:"flex flex-col gap-8 text-white",children:(e||[]).map(({link:m},c)=>m?.url==="/contact"?(0,Et.jsx)("div",{onClick:s,className:n("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white Zl-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),children:m.label},c):(0,Et.jsx)(Zt,{size:"lg",className:n("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white Zl-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),...m},c))})})]})}),a&&(0,Et.jsx)("div",{className:"absolute inset-0 Et-50 flex items-center justify-center bg-black bg-opacity-50",onClick:i,children:(0,Et.jsxs)("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[(0,Et.jsx)("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:l,children:"\u2715"}),(0,Et.jsx)(Cs,{})," "]})})]})};var Ps=require("prism-react-renderer");function fn({code:e}){let[t,a]=(0,Dl.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,Et.jsx)("div",{className:"flex justify-end align-middle",children:(0,Et.jsxs)(B,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,Et.jsx)("p",{children:t}),(0,Et.jsx)("div",{className:"w-6 h-6",children:(0,Et.jsx)(Zl.ClipboardCopy,{})})]})})}var _d=({code:e,language:t=""})=>e?(0,Et.jsx)(Ps.Highlight,{code:e,language:t,theme:Ps.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,Et.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[r.map((s,l)=>(0,Et.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,Et.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:l+1}),(0,Et.jsx)("span",{className:"table-cell pl-4",children:s.map((i,m)=>(0,Et.jsx)("span",{...o({token:i})},m))})]},l)),(0,Et.jsx)(fn,{code:e})]})}):null;var bn=({className:e,code:t,language:a})=>(0,Et.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,Et.jsx)(_d,{code:t,language:a})});var $d=h(require("next/image")),tu={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md: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=",Wd=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:l,src:i,loading:m}=e,c,d,p=t,u=i||"";if(!u&&s&&typeof s=="object"){let{alt:f,filename:v,height:L,url:S,width:w}=s;if(L&&L>500){let k=500/L;c=w*k,d=L*k}else c=w,d=L;p=f||"",u=S||Gd}let g=m||"lazy",b=l||Object.entries(tu).map(([,f])=>`(max-width: ${f}px) ${f*2}w`).join(", ");return(0,Et.jsx)("picture",{children:(0,Et.jsx)($d.default,{alt:p||"",className:n(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:Gd,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:b,src:u,width:a?void 0:c})})};var Ud=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,Dl.useRef)(null);if((0,Dl.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,Et.jsx)("video",{autoPlay:!0,className:n(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,Et.jsx)("source",{src:a.url||""})})}return null};var ta=e=>{let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&o?.mimeType?.includes("video");return(0,Et.jsx)(a||Dl.Fragment,{...a!==null?{className:t}:{},children:r?(0,Et.jsx)(Ud,{...e}):(0,Et.jsx)(Wd,{...e})})};var ka=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Et.jsx)("div",{className:n("h-full ",{container:a},t),children:(0,Et.jsx)(ta,{imgClassName:n("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var wn=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Et.jsx)("div",{className:n("",{container:a},t),children:(0,Et.jsx)(ta,{imgClassName:n("rounded-[0.8rem]",o),resource:r,src:s})})};var wo=({title:e,description:t,features:a,id:o,nested:r=!1})=>(0,Et.jsxs)("section",{className:n(r?"w-full":"",""),children:[(0,Et.jsxs)("div",{className:"prose prose:max-w-none",children:[e&&(0,Et.jsx)("h2",{className:"mb-6 mt-0 text-primary",id:o||"",children:e}),t&&typeof t=="string"&&(0,Et.jsx)("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&(0,Et.jsx)("div",{className:"mb-5 text-foreground",children:(0,Et.jsx)(q,{content:t,enableGutter:!1})})]}),(0,Et.jsx)("div",{className:`grid gap-6 mt-6 md:grid-cols-${a?a.length>2?2:a.length:1} lg:grid-cols-${a?a.length>3?3:a.length:1}`,children:a&&a.map((s,l)=>{let i=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,icon:s.icon.icon}};return(0,Et.jsx)(Vo,{title:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,settings:{...s.settings,width:"auto",order:l},link:s.link?{...s.link,label:"Learn more"}:void 0,icon:i()??{type:"none",icon:null}},l)})})]});var Rs=h(require("react"));function Ir({nodes:e}){return(0,Et.jsx)(Rs.Fragment,{children:e?.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,Et.jsx)(Rs.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,Et.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,Et.jsx)("em",{children:s},a)),t.format&4&&(s=(0,Et.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,Et.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,Et.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,Et.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,Et.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,Et.jsx)("table",{children:(0,Et.jsx)("tbody",{children:t.children.map((s,l)=>(0,Et.jsx)("vc",{children:s.children.map((i,m)=>(0,Et.jsx)("td",{children:Ir({nodes:i.children})},m))},l))})},a);let o=s=>{if(s.children==null)return null;if(s?.type==="list"&&s?.listType==="check")for(let l of s.children)"checked"in l&&(l?.checked||(l.checked=!1));return Ir({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,l=s?.blockType;if(!s||!l)return null;switch(l){case"cta":return(0,Et.jsx)(yo,{...s},a);case"mediaBlock":return(0,Et.jsx)(ka,{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,Et.jsx)(wn,{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,Et.jsx)(mn,{className:"col-start-2 mb-4",...s},a);case"code":return(0,Et.jsx)(bn,{className:"col-start-2",...s},a);case"features":return(0,Et.jsx)(wo,{...s,nested:!0},a);case"reusableContentBlock":Ir({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,Et.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,Et.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t?.tag;return(0,Et.jsx)(s,{className:"col-start-2",id:t?.id||"",children:r},a)}case"list":{let s=t?.tag;return(0,Et.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return t?.checked!=null?(0,Et.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:r},a):(0,Et.jsx)("li",{value:t?.value,children:r},a);case"quote":return(0,Et.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,Et.jsx)(Zt,{newTab:!!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,Et.jsx)(Zt,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var q=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>t?(0,Et.jsx)("div",{className:n({"container ":a,"max-w-none":!a,"mx-auto prose":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&Ir({nodes:t?.root?.children})}):null;var et=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,l=o??"",i=r+s+" fa-"+a+" "+l;return(0,Et.jsx)("i",{className:i})};var Kd=h(require("next/image"));function qd(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Vo({image:e,icon:t,title:a,subtitle:o,content:r,statistic:s,settings:l,link:i,className:m}){let c={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-Zl-br from-[#A42368] Zl-[#4A1030]",radial:"bg-gradient-Zl-br from-[#4A1030] Zl-[#2D0A1D] relative overflow-hidden",light:"bg-background"},d={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,Et.jsxs)("a",{href:i?.url||"#",className:n("min-w-56 max-w-xl h-full flex flex-col group bg-background",e?"p-0":"p-6 md:p-8",l&&!e&&c[l?.card==="default"?"solid":l?.card],e&&"bg-foreground",l&&l?.card==="outline"?"text-gray-900":"text-white",d[l?.width??"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",l&&`intersect:animate-delay-${l.order||1}00`,m),children:[e&&(0,Et.jsx)("div",{className:"relative aspect-[16/9] w-full",children:(0,Et.jsx)(Kd.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,Et.jsxs)("div",{className:n(e?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[(0,Et.jsxs)("div",{className:"flex flex-col flex-grow",children:[o&&(0,Et.jsx)("div",{className:"text-primary uppercase text-sm font-light mb-4",children:o}),(0,Et.jsx)("div",{className:"flex items-start gap-4 mb-4",children:(0,Et.jsx)(au,{icon:{type:t?.type||"fa-light",iconName:t?.icon||"Zl-icon-error"},heading:a??"",variant:l?.card==="default"?"solid":l?.card??"solid",iconSize:l?.iconSize||"large"})}),r&&typeof r=="object"&&(0,Et.jsx)(q,{enableGutter:!1,content:r,enableProse:!1,className:n("prose-sm prose-p:text-lg prose-headings:text-xl","space-Et-3",l?.card==="outline"||l?.card==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",e&&"prose-headings:text-background prose-p:text-background")}),r&&typeof r=="string"&&(0,Et.jsx)("div",{className:n("prose-sm prose-p:text-lg prose-headings:text-xl","space-Et-3",l?.card==="outline"||l?.card==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:r})]}),i&&i.url&&(0,Et.jsx)("div",{className:"mt-6",children:(0,Et.jsx)("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:i?.label||"Find out more"})})]})]})}var au=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="small"&&e.iconName!="Zl-icon-error"?(0,Et.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,Et.jsx)("div",{className:n(a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),qd(e)&&(0,Et.jsx)("div",{className:n("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"-mr-2 ml-1 mt-1":""),children:(0,Et.jsx)(et,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="Zl-icon-error"?(0,Et.jsxs)("div",{className:"flex flex-col gap-4",children:[qd(e)&&(0,Et.jsx)("div",{className:n("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,Et.jsx)(et,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Et.jsx)("h3",{className:n("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):(0,Et.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Et.jsx)("div",{className:n("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Qd=h(require("next/image")),Jd=h(require("next/link"));var No=h(require("react"));var we=No.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,className:n("rounded-xl border bg-card text-card-foreground shadow",e),...t}));we.displayName="Card";var $e=No.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,className:n("flex flex-col space-Et-1.5 p-6",e),...t}));$e.displayName="CardHeader";var We=No.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,className:n("font-semibold leading-none tracking-tight",e),...t}));We.displayName="CardTitle";var Nn=No.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,className:n("text-sm text-muted-foreground",e),...t}));Nn.displayName="CardDescription";var Te=No.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,className:n("p-6 pt-0",e),...t}));Te.displayName="CardContent";var Cn=No.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,className:n("flex items-center p-6 pt-0",e),...t}));Cn.displayName="CardFooter";function Zd({name:e,logo:t,href:a}){return(0,Et.jsx)(we,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,Et.jsxs)(Jd.default,{href:a,className:"block",children:[(0,Et.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,Et.jsx)("div",{className:"relative w-full h-full",children:t&&(0,Et.jsx)(Qd.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,Et.jsx)(Te,{className:"p-3 flex items-center justify-center h-18 bg-gradient-Zl-br from-gray-900 via-brand-one Zl-gray-900",children:(0,Et.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 ec({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=i=>{switch(i){case"birthday":return(0,Et.jsx)(Zl.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,Et.jsx)(Zl.Award,{className:"h-4 w-4"});case"companyEvent":return(0,Et.jsx)(Zl.PartyPopper,{className:"h-4 w-4"});default:return(0,Et.jsx)(Zl.CalendarDays,{className:"h-4 w-4"})}},l=i=>{switch(i){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 Zl-slate-500"}};return(0,Et.jsxs)(we,{className:`w-full max-w-md overflow-hidden bg-gradient-Zl-br ${l(e)}`,children:[(0,Et.jsxs)($e,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,Et.jsxs)(vt,{className:"h-14 w-14 border-2 border-white",children:[(0,Et.jsx)(ht,{src:r,alt:a||"Event"}),(0,Et.jsx)(yt,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,Et.jsxs)("div",{className:"flex flex-col",children:[(0,Et.jsx)(We,{className:"text-xl",children:a||"Untitled Event"}),(0,Et.jsxs)("p",{className:"text-sm text-white/80",children:[(0,Et.jsx)(Zl.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,Et.jsxs)(Te,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,Et.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,Et.jsxs)(xt,{variant:"secondary",className:`${l(e)} text-white/80`,children:[s(e),(0,Et.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-Et])([A-Et])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}var ac=h(require("next/link"));var oc=h(require("next/image")),tc={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function rc({slug:e,image:t,title:a,description:o}){return(0,Et.jsxs)(ac.default,{href:e,className:"group/portfolio relative Et-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,Et.jsx)("span",{className:n("absolute inset-0 Et-[2] bg-gradient-1 from-primary/0 Zl-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,Et.jsx)(oc.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
12
|
-
(min-width:${
|
|
13
|
-
(min-width:${
|
|
10
|
+
You may have Ql call "refreshHard()" by yourself.
|
|
11
|
+
`),D.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",D.easing),document.querySelector("body").setAttribute("data-aos-duration",D.duration),document.querySelector("body").setAttribute("data-aos-delay",D.delay),D.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?ie(!0):D.startEvent==="load"?window.addEventListener(D.startEvent,function(){ie(!0)}):document.addEventListener(D.startEvent,function(){ie(!0)}),window.addEventListener("resize",(0,c.default)(ie,D.debounceDelay,!0)),window.addEventListener("orientationchange",(0,c.default)(ie,D.debounceDelay,!0)),window.addEventListener("scroll",(0,i.default)(function(){(0,f.default)(k,D.once)},D.throttleDelay)),D.disableMutationObserver||p.default.ready("[data-aos]",dt),k)};e.exports={init:F,refresh:ie,refreshHard:dt}},function(e,t){},,,,,function(e,t){(function(a){"use strict";function o(N,F,P){function Re(le){var ut=ne,Ha=fe;return ne=fe=void 0,Ea=le,qe=N.apply(Ha,ut)}function Ce(le){return Ea=le,je=setTimeout(Lt,F),za?Re(le):qe}function Ve(le){var ut=le-St,Ha=le-Ea,gl=F-ut;return pa?dt(gl,ra-Ha):gl}function ct(le){var ut=le-St,Ha=le-Ea;return St===void 0||ut>=F||ut<0||pa&&Ha>=ra}function Lt(){var le=A();return ct(le)?kt(le):void(je=setTimeout(Lt,Ve(le)))}function kt(le){return je=void 0,Pe&&ne?Re(le):(ne=fe=void 0,qe)}function mt(){je!==void 0&&clearTimeout(je),Ea=0,ne=St=fe=je=void 0}function pt(){return je===void 0?qe:kt(A())}function ue(){var le=A(),ut=ct(le);if(ne=arguments,fe=this,St=le,ut){if(je===void 0)return Ce(St);if(pa)return je=setTimeout(Lt,F),Re(St)}return je===void 0&&(je=setTimeout(Lt,F)),qe}var ne,fe,ra,qe,je,St,Ea=0,za=!1,pa=!1,Pe=!0;if(typeof N!="function")throw new TypeError(d);return F=m(F)||0,s(P)&&(za=!!P.leading,pa="maxWait"in P,ra=pa?ie(m(P.maxWait)||0,F):ra,Pe="trailing"in P?!!P.trailing:Pe),ue.cancel=mt,ue.flush=pt,ue}function r(N,F,P){var Re=!0,Ce=!0;if(typeof N!="function")throw new TypeError(d);return s(P)&&(Re="leading"in P?!!P.leading:Re,Ce="trailing"in P?!!P.trailing:Ce),o(N,F,{leading:Re,maxWait:F,trailing:Ce})}function s(N){var F=typeof N>"u"?"undefined":c(N);return!!N&&(F=="object"||F=="function")}function l(N){return!!N&&(typeof N>"u"?"undefined":c(N))=="object"}function i(N){return(typeof N>"u"?"undefined":c(N))=="symbol"||l(N)&&D.call(N)==u}function m(N){if(typeof N=="number")return N;if(i(N))return p;if(s(N)){var F=typeof N.valueOf=="function"?N.valueOf():N;N=s(F)?F+"":F}if(typeof N!="string")return N===0?N:+N;N=N.replace(g,"");var P=f.test(N);return P||h.test(N)?L(N.slice(2),P?2:8):b.test(N)?p:+N}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},d="Expected a function",p=NaN,u="[object Symbol]",g=/^\s+|\s+$/g,b=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,h=/^0o[0-7]+$/i,L=parseInt,S=(typeof a>"u"?"undefined":c(a))=="object"&&a&&a.Object===Object&&a,w=(typeof self>"u"?"undefined":c(self))=="object"&&self&&self.Object===Object&&self,k=S||w||Function("return this")(),x=Object.prototype,D=x.toString,ie=Math.max,dt=Math.min,A=function(){return k.Date.now()};e.exports=r}).call(t,function(){return this}())},function(e,t){(function(a){"use strict";function o(A,N,F){function P(Pe){var le=ue,ut=ne;return ue=ne=void 0,St=Pe,ra=A.apply(ut,le)}function Re(Pe){return St=Pe,qe=setTimeout(ct,N),Ea?P(Pe):ra}function Ce(Pe){var le=Pe-je,ut=Pe-St,Ha=N-le;return za?ie(Ha,fe-ut):Ha}function Ve(Pe){var le=Pe-je,ut=Pe-St;return je===void 0||le>=N||le<0||za&&ut>=fe}function ct(){var Pe=dt();return Ve(Pe)?Lt(Pe):void(qe=setTimeout(ct,Ce(Pe)))}function Lt(Pe){return qe=void 0,pa&&ue?P(Pe):(ue=ne=void 0,ra)}function kt(){qe!==void 0&&clearTimeout(qe),St=0,ue=je=ne=qe=void 0}function mt(){return qe===void 0?ra:Lt(dt())}function pt(){var Pe=dt(),le=Ve(Pe);if(ue=arguments,ne=this,je=Pe,le){if(qe===void 0)return Re(je);if(za)return qe=setTimeout(ct,N),P(je)}return qe===void 0&&(qe=setTimeout(ct,N)),ra}var ue,ne,fe,ra,qe,je,St=0,Ea=!1,za=!1,pa=!0;if(typeof A!="function")throw new TypeError(c);return N=i(N)||0,r(F)&&(Ea=!!F.leading,za="maxWait"in F,fe=za?D(i(F.maxWait)||0,N):fe,pa="trailing"in F?!!F.trailing:pa),pt.cancel=kt,pt.flush=mt,pt}function r(A){var N=typeof A>"u"?"undefined":m(A);return!!A&&(N=="object"||N=="function")}function s(A){return!!A&&(typeof A>"u"?"undefined":m(A))=="object"}function l(A){return(typeof A>"u"?"undefined":m(A))=="symbol"||s(A)&&x.call(A)==p}function i(A){if(typeof A=="number")return A;if(l(A))return d;if(r(A)){var N=typeof A.valueOf=="function"?A.valueOf():A;A=r(N)?N+"":N}if(typeof A!="string")return A===0?A:+A;A=A.replace(u,"");var F=b.test(A);return F||f.test(A)?h(A.slice(2),F?2:8):g.test(A)?d:+A}var m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},c="Expected a function",d=NaN,p="[object Symbol]",u=/^\s+|\s+$/g,g=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,f=/^0o[0-7]+$/i,h=parseInt,L=(typeof a>"u"?"undefined":m(a))=="object"&&a&&a.Object===Object&&a,S=(typeof self>"u"?"undefined":m(self))=="object"&&self&&self.Object===Object&&self,w=L||S||Function("return this")(),k=Object.prototype,x=k.toString,D=Math.max,ie=Math.min,dt=function(){return w.Date.now()};e.exports=o}).call(t,function(){return this}())},function(e,t){"use strict";function a(m){var c=void 0,d=void 0,p=void 0;for(c=0;c<m.length;c+=1)if(d=m[c],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(m,c){var d=window.document,p=o(),u=new p(l);i=c,u.observe(d.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function l(m){m&&m.forEach(function(c){var d=Array.prototype.slice.call(c.addedNodes),p=Array.prototype.slice.call(c.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 as 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 b=u[g];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}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|Ql)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|Bt)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows Bt|xda|xiino/i,l=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(bc|oo|s\-)|ai(Rl|rn)|al(av|Bt|Bt)|amoi|an(ex|ny|yw)|aptu|bc(ch|go)|as(Bt|us)|attw|au(di|\-m|r |s )|avan|Bt(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|Bt(mp|Bt)|craw|Bt(Ql|ll|ng)|dbte|Bt\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|Mt(l2|ul)|bc(Bt|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|Bt)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|Ql)|gr(_l|un)|haie|hcit|Ql\-(m|p|t)|hei\-|hi(pt|Bt)|hp( i|ip)|hs\-c|ht(c(\-| |Bt|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|Bt)|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|k)|le(Ql|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|Bt(Bt|ui|Bt)|mc(01|21|Bt)|m\-cr|Bt(rc|ri)|mi(o8|Mt|ts)|mmef|mo(01|02|bi|Bt|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|Bt)|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|po(ck|rt|Bt)|prox|psio|pt\-g|qa\-a|Os(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|Bt|Ql|ms|ny|Bt)|sc(01|h\-|oo|p\-)|sdk\/|Bt(c(\-|0|1)|47|mc|Bt|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|_l)|sm(al|bc|b3|Ql|t5)|zd(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|Bt(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|Ql(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|Bt)|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|Ql)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|Bt)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows Bt|xda|xiino|android|ipad|playbook|silk/i,m=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(bc|oo|s\-)|ai(Rl|rn)|al(av|Bt|Bt)|amoi|an(ex|ny|yw)|aptu|bc(ch|go)|as(Bt|us)|attw|au(di|\-m|r |s )|avan|Bt(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|Bt(mp|Bt)|craw|Bt(Ql|ll|ng)|dbte|Bt\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|Mt(l2|ul)|bc(Bt|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|Bt)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|Ql)|gr(_l|un)|haie|hcit|Ql\-(m|p|t)|hei\-|hi(pt|Bt)|hp( i|ip)|hs\-c|ht(c(\-| |Bt|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|Bt)|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|k)|le(Ql|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|Bt(Bt|ui|Bt)|mc(01|21|Bt)|m\-cr|Bt(rc|ri)|mi(o8|Mt|ts)|mmef|mo(01|02|bi|Bt|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|Bt)|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|po(ck|rt|Bt)|prox|psio|pt\-g|qa\-a|Os(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|Bt|Ql|ms|ny|Bt)|sc(01|h\-|oo|p\-)|sdk\/|Bt(c(\-|0|1)|47|mc|Bt|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|_l)|sm(al|bc|b3|Ql|t5)|zd(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|Bt(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|Ql(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|Bt)|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,c=function(){function d(){a(this,d)}return r(d,[{key:"phone",value:function(){var p=o();return!(!s.test(p)&&!l.test(p.substr(0,4)))}},{key:"mobile",value:function(){var p=o();return!(!i.test(p)&&!m.test(p.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),d}();t.default=new c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(r,s,l){var i=r.node.getAttribute("data-aos-once");s>r.position?r.node.classList.add("aos-animate"):typeof i<"u"&&(i==="false"||!l&&i!=="true")&&r.node.classList.remove("aos-animate")},o=function(r,s){var l=window.pageYOffset,i=window.innerHeight;r.forEach(function(m,c){a(m,i+l,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),l=function(i,m){return i.forEach(function(c,d){c.node.classList.add("aos-init"),c.position=(0,s.default)(c.node,m.offset)}),i};t.default=l},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),l=function(i,m){var c=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]),c=(0,s.default)(i).top,u.anchorPlacement){case"top-bottom":break;case"center-bottom":c+=i.offsetHeight/2;break;case"bottom-bottom":c+=i.offsetHeight;break;case"top-center":c+=p/2;break;case"bottom-center":c+=p/2+i.offsetHeight;break;case"center-center":c+=p/2+i.offsetHeight/2;break;case"top-top":c+=p;break;case"bottom-top":c+=i.offsetHeight+p;break;case"center-top":c+=i.offsetHeight/2+p}return u.anchorPlacement||u.offset||isNaN(m)||(d=m),c+d};t.default=l},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 If={};Vm(If,{AOSInit:()=>Sp,AboutSection:()=>bf,Alert:()=>on,AlertDescription:()=>sn,AlertTitle:()=>rn,ApproveLeave:()=>al,Avatar:()=>bt,AvatarFallback:()=>ht,AvatarImage:()=>vt,Badge:()=>yt,BannerBlock:()=>cn,BlogCard:()=>Bm,BlogDetail:()=>Nf,BlogList:()=>Sf,BlogListSection:()=>hf,BrandLogo:()=>ro,Breadcrumb:()=>si,BreadcrumbEllipsis:()=>mi,BreadcrumbItem:()=>ni,BreadcrumbLink:()=>li,BreadcrumbList:()=>ii,BreadcrumbPage:()=>di,BreadcrumbSeparator:()=>ci,Breadcrumbs:()=>Wu,Button:()=>B,CMSLink:()=>Kt,CRMCogeBoard:()=>nf,CRMKanbanBoard:()=>of,Calendar:()=>Dr,CalendarView:()=>nl,CallToActionBlock:()=>yo,CallToActionBlockOld:()=>Qp,Card:()=>Er,Categories:()=>_n,ChatCardTask:()=>cl,ChatInterfaceMessages:()=>uf,ChatMessage:()=>ml,Checkbox:()=>qt,CodeBlock:()=>gn,Collapsible:()=>fa,CollapsibleContent:()=>_a,CollapsibleTrigger:()=>ja,CollectionArchive:()=>Cu,Command:()=>cs,CommandDialog:()=>wd,CommandEmpty:()=>Ji,CommandGroup:()=>Zi,CommandInput:()=>Ki,CommandItem:()=>tn,CommandList:()=>Qi,CommandSeparator:()=>en,CommandShortcut:()=>an,ContactSection:()=>yf,Container:()=>Nt,ContentBlock:()=>Br,ContentCard:()=>nu,CopyButton:()=>un,CustomLink:()=>Ke,CustomerCard:()=>Jd,DarkTop:()=>Sn,DealCard:()=>ll,DealDetails:()=>$r,Dialog:()=>ia,DialogClose:()=>ls,DialogContent:()=>Yt,DialogDescription:()=>qi,DialogFooter:()=>Yi,DialogHeader:()=>ha,DialogOverlay:()=>ds,DialogPortal:()=>Xi,DialogTitle:()=>ya,DialogTrigger:()=>yd,DropdownMenu:()=>Al,DropdownMenuCheckboxItem:()=>bi,DropdownMenuContent:()=>fi,DropdownMenuGroup:()=>Il,DropdownMenuItem:()=>gi,DropdownMenuLabel:()=>hi,DropdownMenuPortal:()=>Ll,DropdownMenuRadioGroup:()=>El,DropdownMenuRadioItem:()=>vi,DropdownMenuSeparator:()=>yi,DropdownMenuShortcut:()=>xi,DropdownMenuSub:()=>Bl,DropdownMenuSubContent:()=>ui,DropdownMenuSubTrigger:()=>pi,DropdownMenuTrigger:()=>Ml,DynamicIcon:()=>Ze,EventCard:()=>Zd,FeatureCard:()=>Vo,FeatureGrid:()=>lc,FeaturesBlock:()=>wo,Filter:()=>$n,FlowPrintable:()=>Ac,Footer:()=>Ku,Header:()=>Qu,HeaderDesktop:()=>Qn,HeaderMobile:()=>Zn,HeadingImage:()=>hu,Hero:()=>iu,HighImpactHero:()=>Wn,HolidayGrid:()=>il,HolidayTracker:()=>tf,HoverCard:()=>gd,HoverCardContent:()=>Vi,HoverCardTrigger:()=>bd,Image:()=>rc,ImageBlock:()=>xn,ImageSection:()=>kf,InfoTile:()=>cu,Input:()=>ft,Insight:()=>du,KanbanColumn:()=>Wr,Label:()=>ge,LightTop:()=>Rn,LocationsSection:()=>xf,Logo:()=>Pu,LowImpactHero:()=>Xn,MOTD:()=>pu,MainPageSection:()=>Cf,Mask:()=>_u,Media:()=>Jt,MediaBlock:()=>ka,MediumImpactHero:()=>Vn,NewCustomerForm:()=>dl,NewDealForm:()=>rf,NewsGrid:()=>Tc,OrgChart:()=>gu,PagePrintable:()=>Mc,PageRange:()=>Ru,PageShape:()=>At,Pagination:()=>jn,PayloadPagination:()=>Tu,Popover:()=>kr,PopoverAnchor:()=>cd,PopoverContent:()=>$o,PopoverTrigger:()=>Sr,PostHero:()=>Ou,PricingCard:()=>Pn,PricingSection:()=>gf,Printable:()=>Hn,ProjectCard:()=>oc,ProjectTeam:()=>Eu,ProposalSummary:()=>bu,Publish:()=>Af,RelatedContent:()=>zu,RelatedPagesMenu:()=>Ju,RelatedPosts:()=>Nu,RenderBlocks:()=>oo,RenderBlocksWithShapes:()=>xu,RenderHero:()=>$u,RequestLeave:()=>sl,ReusableContentBlock:()=>kn,RichText:()=>q,ScrollArea:()=>sa,ScrollBar:()=>ns,Section:()=>Tf,SectionHero:()=>qn,Select:()=>Qa,SelectContent:()=>Na,SelectGroup:()=>_p,SelectItem:()=>Ca,SelectLabel:()=>Rd,SelectScrollDownButton:()=>dn,SelectScrollUpButton:()=>ln,SelectSeparator:()=>Td,SelectTrigger:()=>wa,SelectValue:()=>Ja,Separator:()=>pr,ServiceCard:()=>su,ServiceDetail:()=>Df,ServiceDetailSection:()=>Rf,ServiceSection:()=>ff,Sheet:()=>Yr,SheetClose:()=>$l,SheetContent:()=>fr,SheetDescription:()=>Si,SheetFooter:()=>Pi,SheetHeader:()=>Ci,SheetOverlay:()=>qr,SheetPortal:()=>Ni,SheetTitle:()=>ki,SheetTrigger:()=>Gl,Sidebar:()=>mo,SidebarContent:()=>$a,SidebarFooter:()=>uo,SidebarGroup:()=>Et,SidebarGroupAction:()=>Li,SidebarGroupContent:()=>Vt,SidebarGroupLabel:()=>ba,SidebarHeader:()=>po,SidebarInput:()=>Ii,SidebarInset:()=>Mi,SidebarLeft:()=>Mu,SidebarMenu:()=>gt,SidebarMenuAction:()=>vr,SidebarMenuBadge:()=>Bi,SidebarMenuButton:()=>zt,SidebarMenuItem:()=>Je,SidebarMenuSkeleton:()=>Ei,SidebarMenuSub:()=>Wa,SidebarMenuSubButton:()=>Va,SidebarMenuSubItem:()=>Ua,SidebarProvider:()=>Ti,SidebarRail:()=>Ai,SidebarRight:()=>Bu,SidebarSeparator:()=>br,SidebarTrigger:()=>Di,SimpleHeader:()=>Vu,Skeleton:()=>Ae,SlideShow:()=>Es,Tabs:()=>Gp,TabsContent:()=>Up,TabsList:()=>$p,TabsTrigger:()=>Wp,TextAndImages:()=>Dc,Textarea:()=>Za,Theme:()=>Ms,ThemeProvider:()=>ju,ThemeWithShapes:()=>gc,Toast:()=>xr,ToastAction:()=>Fi,ToastClose:()=>wr,ToastDescription:()=>Cr,ToastProvider:()=>ss,ToastTitle:()=>Nr,ToastViewport:()=>yr,Toaster:()=>rd,Toggle:()=>ji,ToggleGroup:()=>_i,ToggleGroupItem:()=>Gi,Tooltip:()=>Zr,TooltipContent:()=>gr,TooltipProvider:()=>Jr,TooltipTrigger:()=>es,VideoHeader:()=>Yu,WhyUs:()=>vu,badgeVariants:()=>nn,buttonVariants:()=>Ga,cn:()=>n,getTableOfContents:()=>zo,reducer:()=>ed,toast:()=>td,toggleVariants:()=>Pr,useIsMobile:()=>Qr,useSidebar:()=>_o,useToast:()=>rs});module.exports=Xm(If);var Ho=v(require("react")),Xr=require("@radix-ui/react-icons"),Dl=require("@radix-ui/react-slot");var kl=require("clsx");var oi="-",Ym=e=>{let t=Km(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let i=l.split(oi);return i[0]===""&&i.length!==1&&i.shift(),yl(i,t)||qm(l)},getConflictingClassGroupIds:(l,i)=>{let m=a[l]||[];return i&&o[l]?[...m,...o[l]]:m}}},yl=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?yl(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(oi);return t.validators.find(({validator:l})=>l(s))?.classGroupId},vl=/^\[(.+)\]$/,qm=e=>{if(vl.test(e)){let t=vl.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Km=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return Jm(Object.entries(e.classGroups),a).forEach(([s,l])=>{ai(l,o,s,t)}),o},ai=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:hl(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(Qm(r)){ai(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,l])=>{ai(l,hl(t,s),a,o)})})},hl=(e,t)=>{let a=e;return t.split(oi).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Qm=e=>e.isThemeGetter,Jm=(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(([l,i])=>[t+l,i])):s);return[a,r]}):e,Zm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,l)=>{a.set(s,l),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let l=a.get(s);if(l!==void 0)return l;if((l=o.get(s))!==void 0)return r(s,l),l},set(s,l){a.has(s)?a.set(s,l):r(s,l)}}},xl="!",ep=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,l=i=>{let m=[],c=0,d=0,p;for(let h=0;h<i.length;h++){let L=i[h];if(c===0){if(L===r&&(o||i.slice(h,h+s)===t)){m.push(i.slice(d,h)),d=h+s;continue}if(L==="/"){p=h;continue}}L==="["?c++:L==="]"&&c--}let u=m.length===0?i:i.substring(d),g=u.startsWith(xl),b=g?u.substring(1):u,f=p&&p>d?p-d:void 0;return{modifiers:m,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:f}};return a?i=>a({className:i,parseClassName:l}):l},tp=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},ap=e=>({cache:Zm(e.cacheSize),parseClassName:ep(e),...Ym(e)}),op=/\s+/,rp=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],l=e.trim().split(op),i="";for(let m=l.length-1;m>=0;m-=1){let c=l[m],{modifiers:d,hasImportantModifier:p,baseClassName:u,maybePostfixModifierPosition:g}=a(c),b=!!g,f=o(b?u.substring(0,g):u);if(!f){if(!b){i=c+(i.length>0?" "+i:i);continue}if(f=o(u),!f){i=c+(i.length>0?" "+i:i);continue}b=!1}let h=tp(d).join(":"),L=p?h+xl:h,S=L+f;if(s.includes(S))continue;s.push(S);let w=r(f,b);for(let k=0;k<w.length;++k){let x=w[k];s.push(L+x)}i=c+(i.length>0?" "+i:i)}return i};function sp(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=wl(t))&&(o&&(o+=" "),o+=a);return o}var wl=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=wl(e[o]))&&(a&&(a+=" "),a+=t);return a};function ip(e,...t){let a,o,r,s=l;function l(m){let c=t.reduce((d,p)=>p(d),e());return a=ap(c),o=a.cache.get,r=a.cache.set,s=i,i(m)}function i(m){let c=o(m);if(c)return c;let d=rp(m,a);return r(m,d),d}return function(){return s(sp.apply(null,arguments))}}var ve=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Nl=/^\[(?:([a-Bt-]+):)?(.+)\]$/i,np=/^\d+\/\d+$/,lp=new Set(["px","full","screen"]),dp=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cp=/\d+(%|px|r?Mt|[sdl]?v([hwib]|min|max)|pt|pc|in|Rl|Ql|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,mp=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,pp=/^(inset_)?-?((\d+)?\.?(\d+)[a-Bt]+|0)Bt-?((\d+)?\.?(\d+)[a-Bt]+|0)/,up=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ua=e=>Bo(e)||lp.has(e)||np.test(e),Fa=e=>Eo(e,"length",wp),Bo=e=>!!e&&!Number.isNaN(Number(e)),ti=e=>Eo(e,"number",Bo),dr=e=>!!e&&Number.isInteger(Number(e)),fp=e=>e.endsWith("%")&&Bo(e.slice(0,-1)),O=e=>Nl.test(e),Oa=e=>dp.test(e),gp=new Set(["length","size","percentage"]),bp=e=>Eo(e,gp,Cl),vp=e=>Eo(e,"position",Cl),hp=new Set(["image","url"]),yp=e=>Eo(e,hp,Cp),xp=e=>Eo(e,"",Np),cr=()=>!0,Eo=(e,t,a)=>{let o=Nl.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},wp=e=>cp.test(e)&&!mp.test(e),Cl=()=>!1,Np=e=>pp.test(e),Cp=e=>up.test(e);var Pp=()=>{let e=ve("colors"),t=ve("spacing"),a=ve("blur"),o=ve("brightness"),r=ve("borderColor"),s=ve("borderRadius"),l=ve("borderSpacing"),i=ve("borderWidth"),m=ve("contrast"),c=ve("grayscale"),d=ve("hueRotate"),p=ve("invert"),u=ve("gap"),g=ve("gradientColorStops"),b=ve("gradientColorStopPositions"),f=ve("inset"),h=ve("margin"),L=ve("opacity"),S=ve("padding"),w=ve("saturate"),k=ve("scale"),x=ve("sepia"),D=ve("skew"),ie=ve("space"),dt=ve("translate"),A=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",O,t],P=()=>[O,t],Re=()=>["",ua,Fa],Ce=()=>["auto",Bo,O],Ve=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ct=()=>["solid","dashed","dotted","double","none"],Lt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],kt=()=>["start","end","center","between","around","evenly","stretch"],mt=()=>["","0",O],pt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ue=()=>[Bo,O];return{cacheSize:500,separator:":",theme:{colors:[cr],spacing:[ua,Fa],blur:["none","",Oa,O],brightness:ue(),borderColor:[e],borderRadius:["none","","full",Oa,O],borderSpacing:P(),borderWidth:Re(),contrast:ue(),grayscale:mt(),hueRotate:ue(),invert:mt(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[fp,Fa],inset:F(),margin:F(),opacity:ue(),padding:P(),saturate:ue(),scale:ue(),sepia:mt(),skew:ue(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[Oa]}],"break-after":[{"break-after":pt()}],"break-before":[{"break-before":pt()}],"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:[...Ve(),O]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-Bt":[{"overflow-Bt":N()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-Bt":[{"overscroll-Bt":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-Bt":[{"inset-Bt":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],Bt:[{Bt:["auto",dr,O]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",O]}],grow:[{grow:mt()}],shrink:[{shrink:mt()}],order:[{order:["first","last","none",dr,O]}],"grid-cols":[{"grid-cols":[cr]}],"col-start-end":[{col:["auto",{span:["full",dr,O]},O]}],"col-start":[{"col-start":Ce()}],"col-end":[{"col-end":Ce()}],"grid-rows":[{"grid-rows":[cr]}],"row-start-end":[{row:["auto",{span:[dr,O]},O]}],"row-start":[{"row-start":Ce()}],"row-end":[{"row-end":Ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",O]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",O]}],gap:[{gap:[u]}],"gap-x":[{"gap-x":[u]}],"gap-Bt":[{"gap-Bt":[u]}],"justify-content":[{justify:["normal",...kt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...kt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...kt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],Bt:[{Bt:[S]}],Bt:[{Bt:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],Bt:[{Bt:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[ie]}],"space-x-reverse":["space-x-reverse"],"space-Bt":[{"space-Bt":[ie]}],"space-Bt-reverse":["space-Bt-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",O,t]}],"min-w":[{"min-w":[O,t,"min","max","fit"]}],"max-w":[{"max-w":[O,t,"none","full","min","max","fit","prose",{screen:[Oa]},Oa]}],h:[{h:[O,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[O,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Oa,Fa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ti]}],"font-family":[{font:[cr]}],"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",O]}],"line-clamp":[{"line-clamp":["none",Bo,ti]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ua,O]}],"list-image":[{"list-image":["none",O]}],"list-style-type":[{list:["none","disc","decimal",O]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[L]}],"text-decoration":["underline","overline","line-through","Ql-underline"],"text-decoration-style":[{decoration:[...ct(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ua,Fa]}],"underline-offset":[{"underline-offset":["auto",ua,O]}],"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:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O]}],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",O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[L]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ve(),vp]}],"bg-repeat":[{bg:["Ql-repeat",{repeat:["","x","Bt","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",bp]}],"bg-image":[{bg:["none",{"gradient-Ql":["t","bc","r","br","b","bl","l","tl"]},yp]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-Ql-pos":[{Ql:[b]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-Ql":[{Ql:[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-Bt":[{"rounded-Bt":[s]}],"rounded-Bt":[{"rounded-Bt":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-bc":[{"rounded-bc":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-Bt":[{"border-Bt":[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":[L]}],"border-style":[{border:[...ct(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-Bt":[{"divide-Bt":[i]}],"divide-Bt-reverse":["divide-Bt-reverse"],"divide-opacity":[{"divide-opacity":[L]}],"divide-style":[{divide:ct()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-Bt":[{"border-Bt":[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:["",...ct()]}],"outline-offset":[{"outline-offset":[ua,O]}],"outline-w":[{outline:[ua,Fa]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[L]}],"ring-offset-w":[{"ring-offset":[ua,Fa]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Oa,xp]}],"shadow-color":[{shadow:[cr]}],opacity:[{opacity:[L]}],"mix-blend":[{"mix-blend":[...Lt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Lt()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",Oa,O]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[w]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[L]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-Bt":[{"border-spacing-Bt":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:ue()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:ue()}],animate:[{animate:["none","spin","ping","pulse","bounce",O]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-Bt":[{"scale-Bt":[k]}],rotate:[{rotate:[dr,O]}],"translate-x":[{"translate-x":[dt]}],"translate-Bt":[{"translate-Bt":[dt]}],"skew-x":[{"skew-x":[D]}],"skew-Bt":[{"skew-Bt":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O]}],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","Ql-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","Bt-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Bt","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-Bt":[{"scroll-Bt":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-Bt":[{"scroll-Bt":P()}],"scroll-Bt":[{"scroll-Bt":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","Bt","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-Bt":[{"touch-pan":["Bt","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ua,Fa,ti]}],stroke:[{stroke:[e,"none"]}],Rl:["Rl-only","not-Rl-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-Bt"],overscroll:["overscroll-x","overscroll-Bt"],inset:["inset-x","inset-Bt","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-Bt":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-Bt"],p:["px","py","Bt","Bt","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","Bt","mt","mr","mb","ml"],mx:["mr","ml"],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-Bt","rounded-Bt","rounded-es","rounded-tl","rounded-bc","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-Bt","rounded-Bt"],"rounded-t":["rounded-tl","rounded-bc"],"rounded-r":["rounded-bc","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-Bt"],"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-Bt":["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-Bt":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-Bt","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-Bt","scroll-Bt","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-Bt","touch-pz"],"touch-x":["touch"],"touch-Bt":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Pl=ip(Pp);function n(...e){return Pl((0,kl.clsx)(e))}function zo(e){let t=0,a=(s,l)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${l}`,o=e.layout.flatMap(s=>{let l=[];return"title"in s&&s.title&&l.push({text:s.title,_l:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(i=>{if(i.title&&l.push({text:i.title,_l:a(i.title,t++),tag:"h2"}),i.richText?.root?.children&&i.richText?.root?.children.length===1){let m=i.richText.root.children.filter(c=>c!==void 0&&c.type==="heading");for(let c of m)c.children[0]&&l.push({text:c.children[0].text??"",_l:a(c.children[0].text,t++),tag:c.tag||"h2"})}}),l}),r=kp(e.layout);return{tableOfContents:o,contentWithIds:r}}function kp(e){let t=(o,r)=>`${o.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${r}`,a=0;return e.map(o=>(o.title&&(o._l=t(o.title,a++)),o.columns&&(o.columns=o.columns.map(r=>(r.title&&(r._l=t(r.title,a++)),r.richText&&(r.richText.root.children=r.richText.root.children.filter(s=>s!==void 0).map(s=>(s.type==="heading"&&s.children&&s.children[0].text?s._l=t(s.children[0].text,a++):s.type==="block"&&s.fields?.media&&(s._l=t(`image-${a}`,a++)),s))),r))),o))}var Rl=require("react"),Tl=v(Sl());function Sp(){return(0,Rl.useEffect)(()=>{Tl.default.init({duration:1e3,offset:0,once:!0})},[]),null}var Bt=require("react/jsx-runtime"),si=Ho.forwardRef(({...e},t)=>(0,Bt.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));si.displayName="Breadcrumb";var ii=Ho.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)("ol",{ref:a,className:n("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));ii.displayName="BreadcrumbList";var ni=Ho.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)("li",{ref:a,className:n("inline-flex items-center gap-1.5",e),...t}));ni.displayName="BreadcrumbItem";var li=Ho.forwardRef(({asChild:e,className:t,...a},o)=>(0,Bt.jsx)(e?Dl.Slot:"a",{ref:o,className:n("transition-colors hover:text-foreground",t),...a}));li.displayName="BreadcrumbLink";var di=Ho.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:n("font-normal text-foreground",e),...t}));di.displayName="BreadcrumbPage";var ci=({children:e,className:t,...a})=>(0,Bt.jsx)("li",{role:"presentation","aria-hidden":"true",className:n("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e??(0,Bt.jsx)(Xr.ChevronRightIcon,{})});ci.displayName="BreadcrumbSeparator";var mi=({className:e,...t})=>(0,Bt.jsxs)("span",{role:"presentation","aria-hidden":"true",className:n("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,Bt.jsx)(Xr.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,Bt.jsx)("span",{className:"Rl-only",children:"More"})]});mi.displayName="BreadcrumbElipssis";var Fo=v(require("@radix-ui/react-collapsible")),fa=Fo.Root,ja=Fo.CollapsibleTrigger,_a=Fo.CollapsibleContent;var ga=v(require("react")),$=v(require("@radix-ui/react-dropdown-menu"));var Al=$.Root,Ml=$.Trigger,Il=$.Group,Ll=$.Portal,Bl=$.Sub,El=$.RadioGroup,pi=ga.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Bt.jsxs)($.SubTrigger,{ref:r,className:n("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,(0,Bt.jsx)(Xr.ChevronRightIcon,{className:"ml-auto"})]}));pi.displayName=$.SubTrigger.displayName;var ui=ga.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)($.SubContent,{ref:a,className:n("Bt-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}));ui.displayName=$.SubContent.displayName;var fi=ga.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Bt.jsx)($.Portal,{children:(0,Bt.jsx)($.Content,{ref:o,sideOffset:t,className:n("Bt-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})}));fi.displayName=$.Content.displayName;var gi=ga.forwardRef(({className:e,inset:t,...a},o)=>(0,Bt.jsx)($.Item,{ref:o,className:n("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));gi.displayName=$.Item.displayName;var bi=ga.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Bt.jsxs)($.CheckboxItem,{ref:r,className:n("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[(0,Bt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Bt.jsx)($.ItemIndicator,{children:(0,Bt.jsx)(Xr.CheckIcon,{className:"h-4 w-4"})})}),t]}));bi.displayName=$.CheckboxItem.displayName;var vi=ga.forwardRef(({className:e,children:t,...a},o)=>(0,Bt.jsxs)($.RadioItem,{ref:o,className:n("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,Bt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Bt.jsx)($.ItemIndicator,{children:(0,Bt.jsx)(Xr.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));vi.displayName=$.RadioItem.displayName;var hi=ga.forwardRef(({className:e,inset:t,...a},o)=>(0,Bt.jsx)($.Label,{ref:o,className:n("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));hi.displayName=$.Label.displayName;var yi=ga.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)($.Separator,{ref:a,className:n("-mx-1 my-1 h-px bg-muted",e),...t}));yi.displayName=$.Separator.displayName;var xi=({className:e,...t})=>(0,Bt.jsx)("span",{className:n("ml-auto text-xs tracking-widest opacity-60",e),...t});xi.displayName="DropdownMenuShortcut";var zl=v(require("react"));var ft=zl.forwardRef(({className:e,type:t,...a},o)=>(0,Bt.jsx)("input",{type:t,className:n("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));ft.displayName="Input";var Fl=v(require("react")),wi=v(require("@radix-ui/react-separator"));var pr=Fl.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,Bt.jsx)(wi.Root,{ref:r,decorative:a,orientation:t,className:n("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));pr.displayName=wi.Root.displayName;var ur=v(require("react")),De=v(require("@radix-ui/react-dialog")),_l=require("class-variance-authority");var Yr=De.Root,Gl=De.Trigger,$l=De.Close,Ni=De.Portal,qr=ur.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(De.Overlay,{className:n("fixed inset-0 Bt-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}));qr.displayName=De.Overlay.displayName;var Rp=(0,_l.cva)("fixed Bt-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-Ql-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-Ql-bottom data-[state=open]:slide-in-from-bottom",left:"inset-Bt-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-Ql-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-Bt-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-Ql-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),fr=ur.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,Bt.jsxs)(Ni,{children:[(0,Bt.jsx)(qr,{}),(0,Bt.jsxs)(De.Content,{ref:r,className:n(Rp({side:e}),t),...o,children:[(0,Bt.jsxs)(De.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,Bt.jsx)(Xr.Cross2Icon,{className:"h-4 w-4"}),(0,Bt.jsx)("span",{className:"Rl-only",children:"Close"})]}),a]})]}));fr.displayName=De.Content.displayName;var Ci=({className:e,...t})=>(0,Bt.jsx)("div",{className:n("flex flex-col space-Bt-2 text-center sm:text-left",e),...t});Ci.displayName="SheetHeader";var Pi=({className:e,...t})=>(0,Bt.jsx)("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Pi.displayName="SheetFooter";var ki=ur.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(De.Title,{ref:a,className:n("text-lg font-semibold text-foreground",e),...t}));ki.displayName=De.Title.displayName;var Si=ur.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(De.Description,{ref:a,className:n("text-sm text-muted-foreground",e),...t}));Si.displayName=De.Description.displayName;var U=v(require("react")),Ql=require("lucide-react");var Qr=(e=768)=>{let[t,a]=(0,Rl.useState)(!1);return(0,Rl.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var Vl=v(require("react")),Ga=(0,_l.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"}}}),B=Vl.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,Bt.jsx)(e?Dl.Slot:"button",{className:n(Ga({className:t,size:a,variant:o})),ref:s,...r}));B.displayName="Button";function Ae({className:e,...t}){return(0,Bt.jsx)("div",{className:n("animate-pulse rounded-md bg-primary/10",e),...t})}var ql=v(require("react")),Ut=v(require("@radix-ui/react-tooltip"));var Jr=Ut.Provider,Zr=Ut.Root,es=Ut.Trigger,gr=ql.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Bt.jsx)(Ut.Portal,{children:(0,Bt.jsx)(Ut.Content,{ref:o,sideOffset:t,className:n("Bt-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})}));gr.displayName=Ut.Content.displayName;var Tp="sidebar:state",Dp=60*60*24*7,Ap="16rem",Mp="18rem",Ip="3rem",Lp="b",Jl=U.createContext(null);function _o(){let e=U.useContext(Jl);if(!e)throw new Error("useSidebar must Bt used within a SidebarProvider.");return e}var Ti=U.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...l},i)=>{let m=Qr(),[c,d]=U.useState(!1),[p,u]=U.useState(e),g=t??p,b=U.useCallback(S=>{if(a)return a?.(typeof S=="function"?S(g):S);u(S),document.cookie=`${Tp}=${g}; path=/; max-age=${Dp}`},[a,g]),f=U.useCallback(()=>m?d(S=>!S):b(S=>!S),[m,b,d]);U.useEffect(()=>{let S=w=>{w.key===Lp&&(w.metaKey||w.ctrlKey)&&(w.preventDefault(),f())};return window.addEventListener("keydown",S),()=>window.removeEventListener("keydown",S)},[f]);let h=g?"expanded":"collapsed",L=U.useMemo(()=>({state:h,open:g,setOpen:b,isMobile:m,openMobile:c,setOpenMobile:d,toggleSidebar:f}),[h,g,b,m,c,d,f]);return(0,Bt.jsx)(Jl.Provider,{value:L,children:(0,Bt.jsx)(Jr,{delayDuration:0,children:(0,Bt.jsx)("div",{style:{"--sidebar-width":Ap,"--sidebar-width-icon":Ip,...r},className:n("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:i,...l,children:s})})})});Ti.displayName="SidebarProvider";var mo=U.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},l)=>{let{isMobile:i,state:m,openMobile:c,setOpenMobile:d}=_o();return a==="none"?(0,Bt.jsx)("div",{className:n("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:l,...s,children:r}):i?(0,Bt.jsx)(Yr,{open:c,onOpenChange:d,...s,children:(0,Bt.jsx)(fr,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Mp},side:e,children:(0,Bt.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,Bt.jsxs)("div",{ref:l,className:"group peer hidden md:block text-sidebar-foreground","data-state":m,"data-collapsible":m==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,Bt.jsx)("div",{className:n("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)Bt+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,Bt.jsx)("div",{className:n("duration-200 fixed top-14 bottom-0 Bt-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)Bt+_theme(spacing.4)Bt+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,Bt.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})})]})});mo.displayName="Sidebar";var Di=U.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=_o();return(0,Bt.jsxs)(B,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:n("h-7 w-7",e),onClick:s=>{t?.(s),r()},...a,children:[(0,Bt.jsx)(Ql.PanelLeft,{}),(0,Bt.jsx)("span",{className:"Rl-only",children:"Toggle Sidebar"})]})});Di.displayName="SidebarTrigger";var Ai=U.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=_o();return(0,Bt.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:n("absolute inset-Bt-0 Bt-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-Bt-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]Bt&]:cursor-w-resize [[data-side=right]Bt&]:cursor-e-resize","[[data-side=left][data-state=collapsed]Bt&]:cursor-e-resize [[data-side=right][data-state=collapsed]Bt&]: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]Bt&]:-right-2","[[data-side=right][data-collapsible=offcanvas]Bt&]:-left-2",e),...t})});Ai.displayName="SidebarRail";var Mi=U.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)("main",{ref:a,className:n("flex flex-1 flex-col bg-background overflow-Bt-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));Mi.displayName="SidebarInset";var Ii=U.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(ft,{ref:a,"data-sidebar":"input",className:n("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));Ii.displayName="SidebarInput";var po=U.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)("div",{ref:a,"data-sidebar":"header",className:n("flex flex-col gap-2 p-2",e),...t}));po.displayName="SidebarHeader";var uo=U.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)("div",{ref:a,"data-sidebar":"footer",className:n("flex flex-col gap-2 p-2",e),...t}));uo.displayName="SidebarFooter";var br=U.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(pr,{ref:a,"data-sidebar":"separator",className:n("mx-2 w-auto bg-sidebar-border",e),...t}));br.displayName="SidebarSeparator";var $a=U.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)("div",{ref:a,"data-sidebar":"content",className:n("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));$a.displayName="SidebarContent";var Et=U.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)("div",{ref:a,"data-sidebar":"group",className:n("relative flex w-full min-w-0 flex-col p-2",e),...t}));Et.displayName="SidebarGroup";var ba=U.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Bt.jsx)(t?Dl.Slot:"div",{ref:o,"data-sidebar":"group-label",className:n("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));ba.displayName="SidebarGroupLabel";var Li=U.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Bt.jsx)(t?Dl.Slot:"button",{ref:o,"data-sidebar":"group-action",className:n("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...a}));Li.displayName="SidebarGroupAction";var Vt=U.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)("div",{ref:a,"data-sidebar":"group-content",className:n("w-full text-sm",e),...t}));Vt.displayName="SidebarGroupContent";var gt=U.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)("ul",{ref:a,"data-sidebar":"menu",className:n("flex w-full min-w-0 flex-col gap-1",e),...t}));gt.displayName="SidebarMenu";var Je=U.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:n("group/menu-item relative",e),...t}));Je.displayName="SidebarMenuItem";var Bp=(0,_l.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"}}),zt=U.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...l},i)=>{let m=e?Dl.Slot:"button",{isMobile:c,state:d}=_o(),p=(0,Bt.jsx)(m,{ref:i,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:n(Bp({variant:a,size:o}),s),...l});return r?(typeof r=="string"&&(r={children:r}),(0,Bt.jsxs)(Zr,{children:[(0,Bt.jsx)(es,{asChild:!0,children:p}),(0,Bt.jsx)(gr,{side:"right",align:"center",hidden:d!=="collapsed"||c,...r})]})):p});zt.displayName="SidebarMenuButton";var vr=U.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,Bt.jsx)(t?Dl.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:n("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...o}));vr.displayName="SidebarMenuAction";var Bi=U.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:n("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));Bi.displayName="SidebarMenuBadge";var Ei=U.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=U.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,Bt.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:n("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,Bt.jsx)(Ae,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,Bt.jsx)(Ae,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});Ei.displayName="SidebarMenuSkeleton";var Wa=U.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:n("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}));Wa.displayName="SidebarMenuSub";var Ua=U.forwardRef(({...e},t)=>(0,Bt.jsx)("li",{ref:t,...e}));Ua.displayName="SidebarMenuSubItem";var Va=U.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...r},s)=>(0,Bt.jsx)(e?Dl.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:n("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}));Va.displayName="SidebarMenuSubButton";var os=v(require("react")),Ep=1,zp=1e6;var zi=0;function Hp(){return zi=(zi+1)%Number.MAX_SAFE_INTEGER,zi.toString()}var Hi=new Map,Zl=e=>{if(Hi.has(e))return;let t=setTimeout(()=>{Hi.delete(e),hr({type:"REMOVE_TOAST",toastId:e})},zp);Hi.set(e,t)},ed=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Ep)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(a=>a._l===t.toast._l?{...a,...t.toast}:a)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?Zl(a):e.toasts.forEach(o=>{Zl(o._l)}),{...e,toasts:e.toasts.map(o=>o._l===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._l!==t.toastId)}}},ts=[],as={toasts:[]};function hr(e){as=ed(as,e),ts.forEach(t=>{t(as)})}function td({...e}){let t=Hp(),a=r=>hr({type:"UPDATE_TOAST",toast:{...r,_l:t}}),o=()=>hr({type:"DISMISS_TOAST",toastId:t});return hr({type:"ADD_TOAST",toast:{...e,_l:t,open:!0,onOpenChange:r=>{r||o()}}}),{_l:t,dismiss:o,update:a}}function rs(){let[e,t]=os.useState(as);return os.useEffect(()=>(ts.push(t),()=>{let a=ts.indexOf(t);a>-1&&ts.splice(a,1)}),[e]),{...e,toast:td,dismiss:a=>hr({type:"DISMISS_TOAST",toastId:a})}}var fo=v(require("react")),ze=v(require("@radix-ui/react-toast"));var ss=ze.Provider,yr=fo.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(ze.Viewport,{ref:a,className:n("fixed top-0 Bt-[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}));yr.displayName=ze.Viewport.displayName;var Fp=(0,_l.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-Ql-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"}}),xr=fo.forwardRef(({className:e,variant:t,...a},o)=>(0,Bt.jsx)(ze.Root,{ref:o,className:n(Fp({variant:t}),e),...a}));xr.displayName=ze.Root.displayName;var Fi=fo.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(ze.Action,{ref:a,className:n("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Fi.displayName=ze.Action.displayName;var wr=fo.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(ze.Close,{ref:a,className:n("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:(0,Bt.jsx)(Ql.X,{className:"h-4 w-4"})}));wr.displayName=ze.Close.displayName;var Nr=fo.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(ze.Title,{ref:a,className:n("text-sm font-semibold [&+div]:text-xs",e),...t}));Nr.displayName=ze.Title.displayName;var Cr=fo.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(ze.Description,{ref:a,className:n("text-sm opacity-90",e),...t}));Cr.displayName=ze.Description.displayName;function rd(){let{toasts:e}=rs();return(0,Bt.jsxs)(ss,{children:[e.map(function({_l:t,title:a,description:o,action:r,...s}){return(0,Bt.jsxs)(xr,{...s,children:[(0,Bt.jsxs)("div",{className:"grid gap-1",children:[a&&(0,Bt.jsx)(Nr,{children:a}),o&&(0,Bt.jsx)(Cr,{children:o})]}),r,(0,Bt.jsx)(wr,{})]},t)}),(0,Bt.jsx)(yr,{})]})}var sd=v(require("react")),Oi=v(require("@radix-ui/react-toggle"));var Pr=(0,_l.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"}}),ji=sd.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,Bt.jsx)(Oi.Root,{ref:r,className:n(Pr({variant:t,size:a,className:e})),...o}));ji.displayName=Oi.Root.displayName;var go=v(require("react")),Go=v(require("@radix-ui/react-toggle-group"));var ld=go.createContext({size:"default",variant:"default"}),_i=go.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,Bt.jsx)(Go.Root,{ref:s,className:n("flex items-center justify-center gap-1",e),...r,children:(0,Bt.jsx)(ld.Provider,{value:{variant:t,size:a},children:o})}));_i.displayName=Go.Root.displayName;var Gi=go.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let l=go.useContext(ld);return(0,Bt.jsx)(Go.Item,{ref:s,className:n(Pr({variant:l.variant||a,size:l.size||o}),e),...r,children:t})});Gi.displayName=Go.Item.displayName;var $i=v(require("react")),Ht=v(require("@radix-ui/react-scroll-area"));var sa=$i.forwardRef(({className:e,children:t,...a},o)=>(0,Bt.jsxs)(Ht.Root,{ref:o,className:n("relative overflow-hidden",e),...a,children:[(0,Bt.jsx)(Ht.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Bt.jsx)(ns,{}),(0,Bt.jsx)(Ht.Corner,{})]}));sa.displayName=Ht.Root.displayName;var ns=$i.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,Bt.jsx)(Ht.ScrollAreaScrollbar,{ref:o,orientation:t,className:n("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,Bt.jsx)(Ht.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));ns.displayName=Ht.ScrollAreaScrollbar.displayName;var dd=v(require("react")),Xt=v(require("@radix-ui/react-popover"));var kr=Xt.Root,Sr=Xt.Trigger,cd=Xt.Anchor,$o=dd.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Bt.jsx)(Xt.Portal,{children:(0,Bt.jsx)(Xt.Content,{ref:r,align:t,sideOffset:a,className:n("Bt-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})}));$o.displayName=Xt.Content.displayName;var md=v(require("react")),Ui=v(require("@radix-ui/react-label"));var Op=(0,_l.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ge=md.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(Ui.Root,{ref:a,className:n(Op(),e),...t}));ge.displayName=Ui.Root.displayName;var fd=v(require("react")),bo=v(require("@radix-ui/react-hover-card"));var gd=bo.Root,bd=bo.Trigger,Vi=fd.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Bt.jsx)(bo.Content,{ref:r,align:t,sideOffset:a,className:n("Bt-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=bo.Content.displayName;var Rr=v(require("react")),Me=v(require("@radix-ui/react-dialog"));var ia=Me.Root,yd=Me.Trigger,Xi=Me.Portal,ls=Me.Close,ds=Rr.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(Me.Overlay,{ref:a,className:n("fixed inset-0 Bt-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}));ds.displayName=Me.Overlay.displayName;var Yt=Rr.forwardRef(({className:e,children:t,...a},o)=>(0,Bt.jsxs)(Xi,{children:[(0,Bt.jsx)(ds,{}),(0,Bt.jsxs)(Me.Content,{ref:o,className:n("fixed left-[50%] top-[50%] Bt-50 grid w-full max-w-lg translate-x-[-50%] translate-Bt-[-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-Ql-left-1/2 data-[state=closed]:slide-out-Ql-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,Bt.jsxs)(Me.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,Bt.jsx)(Ql.X,{className:"h-4 w-4"}),(0,Bt.jsx)("span",{className:"Rl-only",children:"Close"})]})]})]}));Yt.displayName=Me.Content.displayName;var ha=({className:e,...t})=>(0,Bt.jsx)("div",{className:n("flex flex-col space-Bt-1.5 text-center sm:text-left",e),...t});ha.displayName="DialogHeader";var Yi=({className:e,...t})=>(0,Bt.jsx)("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Yi.displayName="DialogFooter";var ya=Rr.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(Me.Title,{ref:a,className:n("text-lg font-semibold leading-none tracking-tight",e),...t}));ya.displayName=Me.Title.displayName;var qi=Rr.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(Me.Description,{ref:a,className:n("text-sm text-muted-foreground",e),...t}));qi.displayName=Me.Description.displayName;var qa=v(require("react")),rt=require("cmdk");var cs=qa.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(rt.Command,{ref:a,className:n("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));cs.displayName=rt.Command.displayName;var wd=({children:e,...t})=>(0,Bt.jsx)(ia,{...t,children:(0,Bt.jsx)(Yt,{className:"overflow-hidden p-0",children:(0,Bt.jsx)(cs,{className:"[&Bt[cmdk-group-heading]]:px-2 [&Bt[cmdk-group-heading]]:font-medium [&Bt[cmdk-group-heading]]:text-muted-foreground [&Bt[cmdk-group]:not([hidden])Bt~[cmdk-group]]:pt-0 [&Bt[cmdk-group]]:px-2 [&Bt[cmdk-input-wrapper]_svg]:h-5 [&Bt[cmdk-input-wrapper]_svg]:w-5 [&Bt[cmdk-input]]:h-12 [&Bt[cmdk-item]]:px-2 [&Bt[cmdk-item]]:py-3 [&Bt[cmdk-item]_svg]:h-5 [&Bt[cmdk-item]_svg]:w-5",children:e})})}),Ki=qa.forwardRef(({className:e,...t},a)=>(0,Bt.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,Bt.jsx)(Ql.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,Bt.jsx)(rt.Command.Input,{ref:a,className:n("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Ki.displayName=rt.Command.Input.displayName;var Qi=qa.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(rt.Command.List,{ref:a,className:n("max-h-[300px] overflow-Bt-auto overflow-x-hidden",e),...t}));Qi.displayName=rt.Command.List.displayName;var Ji=qa.forwardRef((e,t)=>(0,Bt.jsx)(rt.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Ji.displayName=rt.Command.Empty.displayName;var Zi=qa.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(rt.Command.Group,{ref:a,className:n("overflow-hidden p-1 text-foreground [&Bt[cmdk-group-heading]]:px-2 [&Bt[cmdk-group-heading]]:py-1.5 [&Bt[cmdk-group-heading]]:text-xs [&Bt[cmdk-group-heading]]:font-medium [&Bt[cmdk-group-heading]]:text-muted-foreground",e),...t}));Zi.displayName=rt.Command.Group.displayName;var en=qa.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(rt.Command.Separator,{ref:a,className:n("-mx-1 h-px bg-border",e),...t}));en.displayName=rt.Command.Separator.displayName;var tn=qa.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(rt.Command.Item,{ref:a,className:n("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));tn.displayName=rt.Command.Item.displayName;var an=({className:e,...t})=>(0,Bt.jsx)("span",{className:n("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});an.displayName="CommandShortcut";var ms=v(require("react"));var jp=(0,_l.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-Bt-[-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"}}),on=ms.forwardRef(({className:e,variant:t,...a},o)=>(0,Bt.jsx)("div",{ref:o,role:"alert",className:n(jp({variant:t}),e),...a}));on.displayName="Alert";var rn=ms.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)("h5",{ref:a,className:n("mb-1 font-medium leading-none tracking-tight",e),...t}));rn.displayName="AlertTitle";var sn=ms.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)("div",{ref:a,className:n("text-sm [&_p]:leading-relaxed",e),...t}));sn.displayName="AlertDescription";var us=v(require("react")),xa=v(require("@radix-ui/react-avatar"));var bt=us.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(xa.Root,{ref:a,className:n("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));bt.displayName=xa.Root.displayName;var vt=us.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(xa.Image,{ref:a,className:n("aspect-square h-full w-full",e),...t}));vt.displayName=xa.Image.displayName;var ht=us.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(xa.Fallback,{ref:a,className:n("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));ht.displayName=xa.Fallback.displayName;var nn=(0,_l.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,Bt.jsx)("div",{className:n(nn({variant:t}),e),...a})}var Tr=v(require("@radix-ui/react-checkbox")),Sd=v(require("react")),qt=Sd.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(Tr.Root,{className:n("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,Bt.jsx)(Tr.Indicator,{className:n("flex items-center justify-center text-current"),children:(0,Bt.jsx)(Ql.Check,{className:"h-4 w-4"})})}));qt.displayName=Tr.Root.displayName;var X=v(require("@radix-ui/react-select")),Ka=v(require("react")),Qa=X.Root,_p=X.Group,Ja=X.Value,wa=Ka.forwardRef(({children:e,className:t,...a},o)=>(0,Bt.jsxs)(X.Trigger,{className:n("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,Bt.jsx)(X.Icon,{asChild:!0,children:(0,Bt.jsx)(Ql.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));wa.displayName=X.Trigger.displayName;var ln=Ka.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(X.ScrollUpButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Bt.jsx)(Ql.ChevronUp,{className:"h-4 w-4"})}));ln.displayName=X.ScrollUpButton.displayName;var dn=Ka.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(X.ScrollDownButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Bt.jsx)(Ql.ChevronDown,{className:"h-4 w-4"})}));dn.displayName=X.ScrollDownButton.displayName;var Na=Ka.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,Bt.jsx)(X.Portal,{children:(0,Bt.jsxs)(X.Content,{className:n("relative Bt-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-Bt-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-Bt-1",t),position:a,ref:r,...o,children:[(0,Bt.jsx)(ln,{}),(0,Bt.jsx)(X.Viewport,{className:n("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Bt.jsx)(dn,{})]})}));Na.displayName=X.Content.displayName;var Rd=Ka.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(X.Label,{className:n("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));Rd.displayName=X.Label.displayName;var Ca=Ka.forwardRef(({children:e,className:t,...a},o)=>(0,Bt.jsxs)(X.Item,{className:n("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[(0,Bt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Bt.jsx)(X.ItemIndicator,{children:(0,Bt.jsx)(Ql.Check,{className:"h-4 w-4"})})}),(0,Bt.jsx)(X.ItemText,{children:e})]}));Ca.displayName=X.Item.displayName;var Td=Ka.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)(X.Separator,{className:n("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Td.displayName=X.Separator.displayName;var Dd=v(require("react")),Za=Dd.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)("textarea",{className:n("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));Za.displayName="Textarea";var Md=require("react-day-picker");function Dr({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,Bt.jsx)(Md.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:n("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-Bt-4 sm:space-x-4 sm:space-Bt-0",month:"space-Bt-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:n(Ga({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-Bt-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:n("relative p-0 text-center text-sm focus-within:relative focus-within:Bt-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:n(Ga({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})}Dr.displayName="Calendar";var eo=v(require("@radix-ui/react-tabs"));function Gp({className:e,...t}){return(0,Bt.jsx)(eo.Root,{"data-slot":"tabs",className:n("flex flex-col gap-2",e),...t})}function $p({className:e,...t}){return(0,Bt.jsx)(eo.List,{"data-slot":"tabs-list",className:n("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Wp({className:e,...t}){return(0,Bt.jsx)(eo.Trigger,{"data-slot":"tabs-trigger",className:n("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Up({className:e,...t}){return(0,Bt.jsx)(eo.Content,{"data-slot":"tabs-content",className:n("flex-1 outline-none",e),...t})}var cn=({className:e,content:t,style:a})=>(0,Bt.jsx)("div",{className:n("mx-auto my-8 w-full",e),children:(0,Bt.jsx)("div",{className:n("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:(0,Bt.jsx)(q,{content:t,enableGutter:!1,enableProse:!1})})});var mn=v(require("next/link")),Kt=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:l,reference:i,size:m,url:c}=e,d=t==="reference"&&typeof i?.value=="object"&&i.value.slug?`${i?.relationTo!=="pages"?`/${i?.relationTo}`:""}/${i.value.slug}`:c;if(!d)return null;let p=a==="link"?"clear":m,u=l?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,Bt.jsxs)(mn.default,{className:n(r),href:d||c||"",...u,children:[s&&s,o&&o]}):(0,Bt.jsx)(B,{asChild:!0,className:r,size:p,variant:a,children:(0,Bt.jsxs)(mn.default,{className:n(r),href:d||c||"",...u,children:[s&&s,o&&o]})})};function vs({className:e}){return n("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 Vp({className:e,...t}){return(0,Bt.jsx)("input",{...t,className:vs({className:e})})}function hs({icon:e,...t}){return(0,Bt.jsxs)("div",{className:"relative w-full",children:[(0,Bt.jsx)(Vp,{...t}),e&&(0,Bt.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-Bt-1/2 text-accent",children:e})]})}function Xp({className:e,...t}){return(0,Bt.jsx)("textarea",{...t,className:n(vs({}),"resize-none md:min-h-[130px]",e)})}function Ld({icon:e,...t}){return(0,Bt.jsxs)("div",{className:"relative w-full",children:[(0,Bt.jsx)(Xp,{...t}),e&&(0,Bt.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var Ed=require("formik"),zd=require("react-icons/fa6"),ho=v(require("yup"));async function Bd(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 Bt not defined");let l={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Ql 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:"Ql-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});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 pn=require("sonner"),Qt={tooShort:"Must Bt Bt least ${min} characters",tooLong:"Must Bt Bt most ${max} characters",required:"This field Bt required",email:"Invalid email format"},Yp=ho.object().shape({name:ho.string().min(2,Qt.tooShort).max(50,Qt.tooLong).required(Qt.required),email:ho.string().email(Qt.email).required(Qt.required),subject:ho.string().min(2,Qt.tooShort).max(50,Qt.tooLong).required(Qt.required),message:ho.string().min(2,Qt.tooShort).max(300,Qt.tooLong).required(Qt.required)}),ys=n("!pr-[44px] text-foreground"),xs=n("!border-red-600 border"),ws=n("Rl-only");function Ns(){return(0,Bt.jsx)(Ed.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:Yp,onSubmit:async(e,{resetForm:t})=>{let a=await Bd(e);a.data===null?pn.toast.error(a.message):(pn.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:l})=>(0,Bt.jsxs)("form",{onSubmit:l,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,Bt.jsxs)("div",{children:[(0,Bt.jsx)(hs,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,Bt.jsx)(zd.FaUser,{className:"text-primary"}),className:n(ys,e.name&&t.name&&xs)}),e.name&&t.name&&(0,Bt.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:ws,children:e.name})]}),(0,Bt.jsxs)("div",{children:[(0,Bt.jsx)(hs,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,Bt.jsx)(qp,{}),className:n(ys,e.email&&t.email&&xs)}),e.email&&t.email&&(0,Bt.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:ws,children:e.email})]}),(0,Bt.jsxs)("div",{className:"lg:col-span-2",children:[(0,Bt.jsx)(hs,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:n(ys,e.subject&&t.subject&&xs)}),e.subject&&t.subject&&(0,Bt.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:ws,children:e.subject})]}),(0,Bt.jsxs)("div",{className:"lg:col-span-2",children:[(0,Bt.jsx)(Ld,{placeholder:"Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,Bt.jsx)(Kp,{}),className:n(ys,e.message&&t.message&&xs)}),e.message&&t.message&&(0,Bt.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:ws,children:e.message})]}),(0,Bt.jsx)("div",{className:"lg:col-span-2 light grid justify-items-center",children:(0,Bt.jsx)(B,{type:"submit",className:"outline px-6 rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:s,children:"Send"})})]})})}function qp(){return(0,Bt.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,Bt.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 Kp(){return(0,Bt.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,Bt.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"})})}var Qp=({links:e,richText:t})=>(0,Bt.jsx)("div",{className:"container",children:(0,Bt.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,Bt.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,Bt.jsx)(q,{className:"mb-0",content:t,enableGutter:!1})}),(0,Bt.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,Bt.jsx)(Kt,{size:"lg",...a},o))})]})}),yo=({links:e,richText:t})=>{let[a,o]=(0,Rl.useState)(!1),r="accent",s=()=>o(!0),l=()=>o(!1),i=m=>{m.target===m.currentTarget&&l()};return(0,Bt.jsxs)("div",{className:n("relative isolate overflow-hidden",r==="accent"?"bg-accent":"bg-black"),children:[(0,Bt.jsx)("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:(0,Bt.jsxs)("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&(0,Bt.jsx)(q,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),(0,Bt.jsx)("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:(0,Bt.jsx)("div",{className:"flex flex-col gap-8 text-white",children:(e||[]).map(({link:m},c)=>m?.url==="/contact"?(0,Bt.jsx)("div",{onClick:s,className:n("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white Ql-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),children:m.label},c):(0,Bt.jsx)(Kt,{size:"lg",className:n("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white Ql-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),...m},c))})})]})}),a&&(0,Bt.jsx)("div",{className:"absolute inset-0 Bt-50 flex items-center justify-center bg-black bg-opacity-50",onClick:i,children:(0,Bt.jsxs)("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[(0,Bt.jsx)("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:l,children:"\u2715"}),(0,Bt.jsx)(Ns,{})," "]})})]})};var Cs=require("prism-react-renderer");function un({code:e}){let[t,a]=(0,Rl.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,Bt.jsx)("div",{className:"flex justify-end align-middle",children:(0,Bt.jsxs)(B,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,Bt.jsx)("p",{children:t}),(0,Bt.jsx)("div",{className:"w-6 h-6",children:(0,Bt.jsx)(Ql.ClipboardCopy,{})})]})})}var jd=({code:e,language:t=""})=>e?(0,Bt.jsx)(Cs.Highlight,{code:e,language:t,theme:Cs.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,Bt.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[r.map((s,l)=>(0,Bt.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,Bt.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:l+1}),(0,Bt.jsx)("span",{className:"table-cell pl-4",children:s.map((i,m)=>(0,Bt.jsx)("span",{...o({token:i})},m))})]},l)),(0,Bt.jsx)(un,{code:e})]})}):null;var gn=({className:e,code:t,language:a})=>(0,Bt.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,Bt.jsx)(jd,{code:t,language:a})});var Gd=v(require("next/image")),Jp={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},_d="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=",$d=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:l,src:i,loading:m}=e,c,d,p=t,u=i||"";if(!u&&s&&typeof s=="object"){let{alt:f,filename:h,height:L,url:S,width:w}=s;if(L&&L>500){let k=500/L;c=w*k,d=L*k}else c=w,d=L;p=f||"",u=S||_d}let g=m||"lazy",b=l||Object.entries(Jp).map(([,f])=>`(max-width: ${f}px) ${f*2}w`).join(", ");return(0,Bt.jsx)("picture",{children:(0,Bt.jsx)(Gd.default,{alt:p||"",className:n(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:_d,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:b,src:u,width:a?void 0:c})})};var Wd=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,Rl.useRef)(null);if((0,Rl.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,Bt.jsx)("video",{autoPlay:!0,className:n(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,Bt.jsx)("source",{src:a.url||""})})}return null};var Jt=e=>{let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&o?.mimeType?.includes("video");return(0,Bt.jsx)(a||Rl.Fragment,{...a!==null?{className:t}:{},children:r?(0,Bt.jsx)(Wd,{...e}):(0,Bt.jsx)($d,{...e})})};var ka=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Bt.jsx)("div",{className:n("h-full ",{container:a},t),children:(0,Bt.jsx)(Jt,{imgClassName:n("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var xn=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Bt.jsx)("div",{className:n("",{container:a},t),children:(0,Bt.jsx)(Jt,{imgClassName:n("rounded-[0.8rem]",o),resource:r,src:s})})};var wo=({title:e,description:t,features:a,_l:o,nested:r=!1})=>(0,Bt.jsxs)("section",{className:n(r?"w-full":"",""),children:[(0,Bt.jsxs)("div",{className:"prose prose:max-w-none",children:[e&&(0,Bt.jsx)("h2",{className:"mb-6 mt-0 text-primary",_l:o||"",children:e}),t&&typeof t=="string"&&(0,Bt.jsx)("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&(0,Bt.jsx)("div",{className:"mb-5 text-foreground",children:(0,Bt.jsx)(q,{content:t,enableGutter:!1})})]}),(0,Bt.jsx)("div",{className:`grid gap-6 mt-6 md:grid-cols-${a?a.length>2?2:a.length:1} lg:grid-cols-${a?a.length>3?3:a.length:1}`,children:a&&a.map((s,l)=>{let i=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,icon:s.icon.icon}};return(0,Bt.jsx)(Vo,{title:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,settings:{...s.settings,width:"auto",order:l},link:s.link?{...s.link,label:"Learn more"}:void 0,icon:i()??{type:"none",icon:null}},l)})})]});var Ss=v(require("react"));function Ir({nodes:e}){return(0,Bt.jsx)(Ss.Fragment,{children:e?.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,Bt.jsx)(Ss.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,Bt.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,Bt.jsx)("Mt",{children:s},a)),t.format&4&&(s=(0,Bt.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,Bt.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,Bt.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,Bt.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,Bt.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,Bt.jsx)("table",{children:(0,Bt.jsx)("tbody",{children:t.children.map((s,l)=>(0,Bt.jsx)("bc",{children:s.children.map((i,m)=>(0,Bt.jsx)("td",{children:Ir({nodes:i.children})},m))},l))})},a);let o=s=>{if(s.children==null)return null;if(s?.type==="list"&&s?.listType==="check")for(let l of s.children)"checked"in l&&(l?.checked||(l.checked=!1));return Ir({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,l=s?.blockType;if(!s||!l)return null;switch(l){case"cta":return(0,Bt.jsx)(yo,{...s},a);case"mediaBlock":return(0,Bt.jsx)(ka,{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,Bt.jsx)(xn,{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,Bt.jsx)(cn,{className:"col-start-2 mb-4",...s},a);case"code":return(0,Bt.jsx)(gn,{className:"col-start-2",...s},a);case"features":return(0,Bt.jsx)(wo,{...s,nested:!0},a);case"reusableContentBlock":Ir({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,Bt.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,Bt.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t?.tag;return(0,Bt.jsx)(s,{className:"col-start-2",_l:t?._l||"",children:r},a)}case"list":{let s=t?.tag;return(0,Bt.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return t?.checked!=null?(0,Bt.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:r},a):(0,Bt.jsx)("li",{value:t?.value,children:r},a);case"quote":return(0,Bt.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,Bt.jsx)(Kt,{newTab:!!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,Bt.jsx)(Kt,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var q=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>t?(0,Bt.jsx)("div",{className:n({"container ":a,"max-w-none":!a,"mx-auto prose":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&Ir({nodes:t?.root?.children})}):null;var Ze=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,l=o??"",i=r+s+" fa-"+a+" "+l;return(0,Bt.jsx)("i",{className:i})};var qd=v(require("next/image"));function Yd(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Vo({image:e,icon:t,title:a,subtitle:o,content:r,statistic:s,settings:l,link:i,className:m}){let c={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-Ql-br from-[#A42368] Ql-[#4A1030]",radial:"bg-gradient-Ql-br from-[#4A1030] Ql-[#2D0A1D] relative overflow-hidden",light:"bg-background"},d={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,Bt.jsxs)("a",{href:i?.url||"#",className:n("min-w-56 max-w-xl h-full flex flex-col group bg-background",e?"p-0":"p-6 md:p-8",l&&!e&&c[l?.card==="default"?"solid":l?.card],e&&"bg-foreground",l&&l?.card==="outline"?"text-gray-900":"text-white",d[l?.width??"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",l&&`intersect:animate-delay-${l.order||1}00`,m),children:[e&&(0,Bt.jsx)("div",{className:"relative aspect-[16/9] w-full",children:(0,Bt.jsx)(qd.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,Bt.jsxs)("div",{className:n(e?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[(0,Bt.jsxs)("div",{className:"flex flex-col flex-grow",children:[o&&(0,Bt.jsx)("div",{className:"text-primary uppercase text-sm font-light mb-4",children:o}),(0,Bt.jsx)("div",{className:"flex items-start gap-4 mb-4",children:(0,Bt.jsx)(Zp,{icon:{type:t?.type||"fa-light",iconName:t?.icon||"Ql-icon-error"},heading:a??"",variant:l?.card==="default"?"solid":l?.card??"solid",iconSize:l?.iconSize||"large"})}),r&&typeof r=="object"&&(0,Bt.jsx)(q,{enableGutter:!1,content:r,enableProse:!1,className:n("prose-sm prose-p:text-lg prose-headings:text-xl","space-Bt-3",l?.card==="outline"||l?.card==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",e&&"prose-headings:text-background prose-p:text-background")}),r&&typeof r=="string"&&(0,Bt.jsx)("div",{className:n("prose-sm prose-p:text-lg prose-headings:text-xl","space-Bt-3",l?.card==="outline"||l?.card==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:r})]}),i&&i.url&&(0,Bt.jsx)("div",{className:"mt-6",children:(0,Bt.jsx)("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:i?.label||"Find out more"})})]})]})}var Zp=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="small"&&e.iconName!="Ql-icon-error"?(0,Bt.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,Bt.jsx)("div",{className:n(a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),Yd(e)&&(0,Bt.jsx)("div",{className:n("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"-mr-2 ml-1 mt-1":""),children:(0,Bt.jsx)(Ze,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="Ql-icon-error"?(0,Bt.jsxs)("div",{className:"flex flex-col gap-4",children:[Yd(e)&&(0,Bt.jsx)("div",{className:n("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,Bt.jsx)(Ze,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Bt.jsx)("h3",{className:n("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):(0,Bt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Bt.jsx)("div",{className:n("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Kd=v(require("next/image")),Qd=v(require("next/link"));var No=v(require("react"));var we=No.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)("div",{ref:a,className:n("rounded-xl border bg-card text-card-foreground shadow",e),...t}));we.displayName="Card";var Ge=No.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)("div",{ref:a,className:n("flex flex-col space-Bt-1.5 p-6",e),...t}));Ge.displayName="CardHeader";var $e=No.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)("div",{ref:a,className:n("font-semibold leading-none tracking-tight",e),...t}));$e.displayName="CardTitle";var wn=No.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)("div",{ref:a,className:n("text-sm text-muted-foreground",e),...t}));wn.displayName="CardDescription";var Te=No.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)("div",{ref:a,className:n("p-6 pt-0",e),...t}));Te.displayName="CardContent";var Nn=No.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)("div",{ref:a,className:n("flex items-center p-6 pt-0",e),...t}));Nn.displayName="CardFooter";function Jd({name:e,logo:t,href:a}){return(0,Bt.jsx)(we,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,Bt.jsxs)(Qd.default,{href:a,className:"block",children:[(0,Bt.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,Bt.jsx)("div",{className:"relative w-full h-full",children:t&&(0,Bt.jsx)(Kd.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,Bt.jsx)(Te,{className:"p-3 flex items-center justify-center h-18 bg-gradient-Ql-br from-gray-900 via-brand-one Ql-gray-900",children:(0,Bt.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 Zd({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=i=>{switch(i){case"birthday":return(0,Bt.jsx)(Ql.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,Bt.jsx)(Ql.Award,{className:"h-4 w-4"});case"companyEvent":return(0,Bt.jsx)(Ql.PartyPopper,{className:"h-4 w-4"});default:return(0,Bt.jsx)(Ql.CalendarDays,{className:"h-4 w-4"})}},l=i=>{switch(i){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 Ql-slate-500"}};return(0,Bt.jsxs)(we,{className:`w-full max-w-md overflow-hidden bg-gradient-Ql-br ${l(e)}`,children:[(0,Bt.jsxs)(Ge,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,Bt.jsxs)(bt,{className:"h-14 w-14 border-2 border-white",children:[(0,Bt.jsx)(vt,{src:r,alt:a||"Event"}),(0,Bt.jsx)(ht,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,Bt.jsxs)("div",{className:"flex flex-col",children:[(0,Bt.jsx)($e,{className:"text-xl",children:a||"Untitled Event"}),(0,Bt.jsxs)("p",{className:"text-sm text-white/80",children:[(0,Bt.jsx)(Ql.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,Bt.jsxs)(Te,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,Bt.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,Bt.jsxs)(yt,{variant:"secondary",className:`${l(e)} text-white/80`,children:[s(e),(0,Bt.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-Bt])([A-Bt])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}var tc=v(require("next/link"));var ac=v(require("next/image")),ec={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function oc({slug:e,image:t,title:a,description:o}){return(0,Bt.jsxs)(tc.default,{href:e,className:"group/portfolio relative Bt-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,Bt.jsx)("span",{className:n("absolute inset-0 Bt-[2] bg-gradient-1 from-primary/0 Ql-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,Bt.jsx)(ac.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
12
|
+
(min-width:${ec.md}) 50vw,
|
|
13
|
+
(min-width:${ec.lg}) 25vw,
|
|
14
14
|
100vw
|
|
15
|
-
`,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,Et.jsx)("div",{className:"relative Et-10 flex h-full flex-col",children:(0,Et.jsxs)("div",{className:"mt-auto divide-Et md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,Et.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,Et.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,Et.jsx)("p",{className:"mt-[13px] overflow-hidden pt-[11px] text-body",children:(0,Et.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 Pn=h(require("next/image")),Ts=h(require("path"));function ou(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function ru(e){return e.startsWith("http")}function su(e,t){let a=e;if(ou(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(ru(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=Ts.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=Ts.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=`/${Ts.default.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function iu({src:e,alt:t}){let[a,o]=(0,Dl.useState)(!1),[r,s]=(0,Dl.useState)(!1),[l,i]=(0,Dl.useState)({width:0,height:0}),m=()=>{r&&o(!0)},c=()=>{o(!1)},d=p=>{let{naturalWidth:u,naturalHeight:g}=p.target;i({width:u,height:g}),s(u>300||g>300)};return(0,Et.jsxs)(Et.Fragment,{children:[(0,Et.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${l.height>300?"h-[300px]":`h-[${l.height}px]`}`,onClick:m,children:(0,Et.jsx)(Pn.default,{sizes:"100vw",height:l.height,width:l.width,src:e,alt:t||"",onLoad:d,unoptimized:!0,className:"object-contain max-w-full max-h-full"})}),(0,Et.jsx)(Ot,{open:a,onOpenChange:o,children:(0,Et.jsxs)(Dt,{className:"flex flex-col items-center justify-center",children:[(0,Et.jsxs)(Kt,{className:"flex w-full justify-end",children:[(0,Et.jsx)(Qt,{className:"hidden",children:t}),(0,Et.jsx)(ds,{})]}),(0,Et.jsx)("div",{className:"flex items-center justify-center",children:(0,Et.jsx)(Pn.default,{height:l.height,width:l.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function sc({props:e,baseContext:t}){let{src:a}=e;return a=su(a,t),(0,Et.jsx)(iu,{src:a,alt:e.alt})}var ic=h(require("next/link"));function Qe({children:e,href:t,openNewTab:a,...o}){return(0,Et.jsx)(ic.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function nu(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function lu({icon:e,title:t,description:a,slug:o}){return(0,Et.jsxs)("article",{className:n(["group/service bg-card shadow-3 transition-transform duration-350 dark:shadow-none","relative Et-1 block h-full space-Et-6 overflow-hidden rounded-5 p-6 md:space-Et-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,Et.jsxs)("div",{className:"flex items-center text-foreground gap-5",children:[(0,Et.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:nu(e)?(0,Et.jsx)(et,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,Et.jsx)("h2",{className:"text-md font-medium leading-[1.25] md:text-lg",children:o?(0,Et.jsx)(Qe,{href:o,children:t}):t})]}),(0,Et.jsx)("p",{className:"text-foreground",children:a}),o&&(0,Et.jsx)(B,{asChild:!0,className:n(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","before:hidden after:hidden"]),children:(0,Et.jsxs)(Qe,{href:o,children:[(0,Et.jsx)("span",{children:"Read More"}),(0,Et.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,Et.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Et.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,Et.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"})]})}function kn({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,Et.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,Et.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,Et.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),(0,Et.jsx)("p",{children:t})]}),(0,Et.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,Et.jsxs)("div",{className:"flex flex-col justify-stretch gap-x-14 gap-Et-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,Et.jsx)("ul",{"aria-label":"pricing point list",className:"grid w-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:a.map((l,i)=>(0,Et.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,Et.jsx)("span",{className:"text-accent pt-1",children:(0,Et.jsx)(Hd.FaCircleCheck,{})}),(0,Et.jsx)("span",{children:l})]},i))}),(0,Et.jsxs)("p",{className:"font-secondary ml-auto text-xl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,(0,Et.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:r&&r})]}),s&&(0,Et.jsx)("div",{className:"flex-none mr-0 sm:ml-auto",children:(0,Et.jsx)(B,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,Et.jsxs)(Qe,{href:s.href,openNewTab:s.openNewTab,children:[(0,Et.jsx)("span",{className:"relative Et-1",children:s.label}),(0,Et.jsx)("span",{className:"relative Et-1 pl-2",children:(0,Et.jsx)(Hd.FaAnglesRight,{})})]})})})]})})]})}function du({className:e,badge:t,title:a,subtitle:o}){return(0,Et.jsxs)("div",{className:n("relative overflow-hidden rounded-xl bg-gradient-Zl-br from-[#A42368] Zl-[#A42368] m-6 px-6 py-16 md:px-12 md:py-24",e),children:[(0,Et.jsxs)("div",{className:"relative Et-10 mx-auto max-w-4xl text-center",children:[t&&(0,Et.jsx)("div",{className:"mb-4",children:(0,Et.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,Et.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,Et.jsx)("p",{className:"mt-6 text-base text-gray-300 sm:text-lg md:text-xl",children:o})]}),(0,Et.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 w-full -translate-x-1/2",style:{background:"radial-gradient(50% 50% Et 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,Et.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 w-full -translate-x-1/2",children:(0,Et.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,Et.jsx)("path",{d:"Et-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}function lc(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function cu({variant:e="outline",className:t,icon:a,iconSize:o="large",width:r="auto",order:s=0,heading:l,subheading:i,content:m,statistic:c,buttonText:d,buttonHref:p}){let u={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-Zl-br from-[#A42368] Zl-[#4A1030]",radial:"bg-gradient-Zl-br from-[#4A1030] Zl-[#2D0A1D] relative overflow-hidden",light:""},g={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,Et.jsxs)("div",{className:n("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",u[e],e==="outline"?"text-gray-900":"text-white",t,g[r],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${s+1}00`),children:[(0,Et.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Et.jsx)(mu,{icon:a,heading:l,variant:e,iconSize:o})}),c&&(0,Et.jsx)("div",{className:"mb-6",children:(0,Et.jsx)("div",{className:n("text-4xl text-wrap font-bold leading-none overflow-hidden",e==="outline"||e==="light"?"text-primary":"text-white"),children:c})}),i&&(0,Et.jsx)("div",{className:"mb-4 text-xl md:text-2xl font-light",children:i}),m&&typeof m=="object"&&(0,Et.jsx)("div",{className:n("space-Et-6"),children:(0,Et.jsx)(q,{enableGutter:!1,content:m,enableProse:!1,className:n(e==="outline"||e==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),m&&typeof m=="string"&&(0,Et.jsx)("div",{className:n("space-Et-6",e==="outline"||e==="light"?"text-gray-900":"text-gray-100"),children:m}),d&&(0,Et.jsx)("div",{className:"mt-auto pt-6 flex items-center justify-center",children:(0,Et.jsx)(B,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:(0,Et.jsx)("a",{href:p,children:d})})}),e==="radial"&&(0,Et.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 mu=({icon:e,heading:t,variant:a,iconSize:o})=>e&&o==="small"?(0,Et.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[lc(e)&&(0,Et.jsx)("div",{className:n("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"mt-2":""),children:(0,Et.jsx)(et,{type:e.type,iconName:e.iconName,size:"2x"})}),(0,Et.jsx)("div",{className:n("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t})]}):e?(0,Et.jsxs)("div",{className:"flex flex-col gap-4",children:[lc(e)&&(0,Et.jsx)("div",{className:n("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,Et.jsx)(et,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Et.jsx)("h3",{className:n("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,Et.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Et.jsx)("div",{className:n("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var dc=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,Et.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function pu({icon:e,title:t,body:a,color:o="secondary"}){return(0,Et.jsx)(Et.Fragment,{children:(0,Et.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,Et.jsx)("div",{className:"px-[2%] flex items-center",children:(0,Et.jsx)("div",{className:"w-12 h-12",children:(0,Et.jsx)(et,{type:e.type,iconName:e.name})})}),(0,Et.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&(0,Et.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}var mc=h(require("next/image"));function uu(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,Et.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,Et.jsx)(mc.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,Et.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,Et.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,Et.jsxs)("a",{href:t,children:[(0,Et.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,Et.jsx)("div",{className:"mt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var fu=(e,t)=>`from-brand-${e} Zl-brand-${t}`;function gu({...e}){let t=fu(e.brandFrom||"one",e.brandTo||"two");return(0,Et.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-Zl-r ${t}`,children:[(0,Et.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,Et.jsxs)("a",{href:e.url,children:[(0,Et.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Et.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Et.jsx)("circle",{r:1,cx:1,cy:1})}),(0,Et.jsx)("span",{children:e.message&&e.message})]}):(0,Et.jsxs)(Et.Fragment,{children:[(0,Et.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Et.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Et.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,Et.jsx)("div",{className:"flex flex-1 justify-end"})]})}var Lr=h(require("react")),bu={Architecture:(0,Et.jsx)(Zl.DraftingCompass,{className:"h-5 w-5 text-blue-600"}),Engineering:(0,Et.jsx)(Zl.Code,{className:"h-5 w-5 text-green-600"}),Development:(0,Et.jsx)(Zl.Code,{className:"h-5 w-5 text-purple-600"}),Delivery:(0,Et.jsx)(Zl.GanttChart,{className:"h-5 w-5 text-red-600"})},vu=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,Et.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,Et.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,Et.jsx)("button",{onClick:a,className:"mr-2","aria-label":o?"Collapse":"Expand",children:o?(0,Et.jsx)(Zl.ChevronDown,{className:"h-4 w-4"}):(0,Et.jsx)(Zl.ChevronRight,{className:"h-4 w-4"})}),(0,Et.jsx)("div",{className:"w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,Et.jsx)(Zl.Users,{className:"h-6 w-6 text-gray-500"})}),(0,Et.jsxs)("div",{children:[(0,Et.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,Et.jsxs)("div",{className:"flex items-center mt-1",children:[bu[e.discipline],(0,Et.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,Et.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},pc=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,Lr.useState)(t<1),s=()=>r(!o),l=d=>d.name.toLowerCase().includes(a.toLowerCase())||d.discipline.toLowerCase().includes(a.toLowerCase())||d.grade.toLowerCase().includes(a.toLowerCase()),i=d=>l(d)||d.reports.some(i),m=a===""||i(e),c=l(e);return Lr.default.useEffect(()=>{a!==""&&i(e)&&r(!0)},[a,e]),m?(0,Et.jsxs)("div",{children:[(0,Et.jsx)(vu,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:c}),o&&e.reports.map((d,p)=>(0,Et.jsx)(pc,{person:d,level:t+1,searchTerm:a},p))]}):null};function hu(){let[e,t]=(0,Lr.useState)("");return(0,Et.jsxs)("div",{className:"max-w-5xl mx-auto p-6",children:[(0,Et.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,Et.jsxs)("div",{className:"mb-4 relative",children:[(0,Et.jsx)("input",{type:"text",placeholder:"Search by name, discipline, It 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,Et.jsx)(Zl.Search,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),(0,Et.jsx)("div",{className:"space-Et-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,Et.jsx)(pc,{person:o,level:0,searchTerm:e},r))})]})}function yu({teamMembers:e={leadership:[{role:"CTO oversight"},{role:"Senior Delivery Lead",isFTE:!0}],core:[{role:"Lead Cloud Architect",isFTE:!0},{role:"Senior Business Analyst",isFTE:!0}],sme:["Security Architecture","Engineering","Data Architecture"]},outputs:t=[{title:"Discovery Report",description:"A detailed report summarising the findings from the initial assessment, including insights from stakeholder interviews and document reviews."},{title:"Cloud and Data Estate Assessment Report",description:"A comprehensive analysis of the current cloud and data infrastructure, highlighting strengths, weaknesses, and opportunities for improvement."},{title:"Gap Analysis Report",description:"Identification of gaps between current capabilities and the requirements for adopting GenAI, along with a detailed analysis of these gaps."},{title:"Recommendations Report",description:"A set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"A phased roadmap outlining the steps Zl implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"A detailed plan outlining potential risks and mitigation strategies Zl 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 Zl improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies Zl 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 Zl leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,Et.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,Et.jsxs)("div",{className:"lg:col-span-1 space-Et-6 flex flex-col",children:[(0,Et.jsxs)(we,{className:"flex-grow",children:[(0,Et.jsx)($e,{className:"bg-primary text-primary-foreground",children:(0,Et.jsxs)(We,{className:"flex items-center gap-2",children:[(0,Et.jsx)(Zl.Users,{className:"h-5 w-5"}),"Team"]})}),(0,Et.jsxs)(Te,{className:"p-6",children:[(0,Et.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"A small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,Et.jsxs)("div",{className:"space-Et-6",children:[(0,Et.jsx)("div",{className:"space-Et-2",children:e.leadership.map((r,s)=>(0,Et.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Et.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Et.jsx)(Zl.User,{className:"h-4 w-4 text-muted-foreground"}),(0,Et.jsx)("span",{children:r.role})]}),r.isFTE&&(0,Et.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,Et.jsx)("div",{className:"space-Et-2",children:e.core.map((r,s)=>(0,Et.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Et.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Et.jsx)(Zl.User,{className:"h-4 w-4 text-muted-foreground"}),(0,Et.jsx)("span",{children:r.role}),r.count&&(0,Et.jsxs)("span",{children:["(",r.count,"x)"]})]}),r.isFTE&&(0,Et.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,Et.jsxs)("div",{children:[(0,Et.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,Et.jsx)(Zl.Users2,{className:"h-4 w-4 text-muted-foreground"}),(0,Et.jsx)("span",{children:"SME input:"})]}),(0,Et.jsx)("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,Et.jsxs)(we,{children:[(0,Et.jsx)($e,{className:"bg-primary text-primary-foreground",children:(0,Et.jsxs)(We,{className:"flex items-center gap-2",children:[(0,Et.jsx)(Zl.PoundSterling,{className:"h-5 w-5"}),"Fee"]})}),(0,Et.jsx)(Te,{className:"p-6",children:(0,Et.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,Et.jsxs)(we,{className:"lg:col-span-1 flex flex-col",children:[(0,Et.jsx)($e,{className:"bg-primary text-primary-foreground",children:(0,Et.jsxs)(We,{className:"flex items-center gap-2",children:[(0,Et.jsx)(Zl.FileText,{className:"h-5 w-5"}),"Outputs"]})}),(0,Et.jsxs)(Te,{className:"p-6 flex-grow overflow-auto",children:[(0,Et.jsx)("ol",{className:"list-decimal list-inside space-Et-4",children:t.map((r,s)=>(0,Et.jsxs)("li",{className:"text-sm",children:[(0,Et.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,Et.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,Et.jsx)("p",{className:"mt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,Et.jsxs)(we,{className:"lg:col-span-1 flex flex-col",children:[(0,Et.jsx)($e,{className:"bg-primary text-primary-foreground",children:(0,Et.jsxs)(We,{className:"flex items-center gap-2",children:[(0,Et.jsx)(Zl.Lightbulb,{className:"h-5 w-5"}),"Benefits"]})}),(0,Et.jsx)(Te,{className:"p-6 flex-grow overflow-auto",children:(0,Et.jsx)("ul",{className:"space-Et-4",children:a.map((r,s)=>(0,Et.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,Et.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,Et.jsx)("span",{children:r})]},s))})})]})]})}function xu(){return(0,Et.jsx)("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,Et.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,Et.jsxs)("div",{className:"space-Et-4 bg-primary p-3 rounded-lg",children:[(0,Et.jsxs)("div",{className:"flex items-center gap-2 relative Et-10",children:[(0,Et.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Et.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,Et.jsx)(Zl.BarChart3,{className:"w-8 h-8"})]}),(0,Et.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,Et.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,Et.jsxs)("ul",{className:"text-sm",children:[(0,Et.jsx)("li",{children:"Strategy definition"}),(0,Et.jsx)("li",{children:"Programme leadership"}),(0,Et.jsx)("li",{children:"Detailed planning"}),(0,Et.jsx)("li",{children:"\u2022 Financial control"}),(0,Et.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,Et.jsxs)("div",{className:"space-Et-4",children:[(0,Et.jsxs)("div",{className:"flex items-center gap-2 relative Et-10",children:[(0,Et.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Et.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,Et.jsx)(Zl.CogIcon,{className:"w-8 h-8"})]}),(0,Et.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,Et.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,Et.jsx)("p",{className:"text-sm",children:"We deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,Et.jsxs)("div",{className:"space-Et-4",children:[(0,Et.jsxs)("div",{className:"flex items-center gap-2 relative Et-10",children:[(0,Et.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Et.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,Et.jsx)(Zl.Building2,{className:"w-8 h-8"})]}),(0,Et.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,Et.jsx)("p",{className:"text-sky-200 text-sm",children:"We understand how Zl navigate public sector and financial services regulation and how Zl deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,Et.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,Et.jsxs)("div",{className:"space-Et-4",children:[(0,Et.jsxs)("div",{className:"flex items-center gap-2 relative Et-10",children:[(0,Et.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Et.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,Et.jsx)(Zl.BadgeCheck,{className:"w-8 h-8"})]}),(0,Et.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,Et.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,Et.jsx)("p",{className:"text-sm",children:"Hd an XXXX strategic partner, we have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var Br=e=>{let{columns:t,theme:a}=e,o={full:"12",half:"6",oneThird:"4",twoThirds:"8"},r={none:"",line:"border border-primary p-4 rounded-lg"},s=i=>{if(i.type&&i.type==="block"&&i.fields&&(i.fields.blockType==="imageBlock"||i.fields.blockType==="mediaBlock"))return!0;if(i.root&&i.root.children){for(let m of i.root.children)if(s(m))return!0}if(i.children){for(let m of i.children)if(s(m))return!0}return!1},l=(i,m,c)=>{if(m==="none"||c==="full")return{processedRichText:i,heading:null};let d=i,p=null;return i&&i.root&&i.root.children&&i.root.children[0].tag==="h2"&&(d={...i,root:{...i.root,children:i.root.children.slice(1)}},p=i.root.children[0]),{processedRichText:d,heading:p}};return(0,Et.jsx)("div",{className:"my-6",children:(0,Et.jsx)("div",{className:n("grid grid-cols-4 lg:grid-cols-12 gap-Et-8",a?.settings?.box?"gap-x-8":"gap-x-16"),children:t&&t.length>0&&t.map((i,m)=>{let{enableLink:c,link:d,richText:p,size:u}=i,{processedRichText:g,heading:b}=l(p,a?.settings?.box||"none",u||"full");return(0,Et.jsxs)("div",{className:n(`col-span-4 lg:col-span-${o[u]}`,{"md:col-span-2":u!=="full"},r[u!=="full"&&!s(p)&&a?.settings?.box||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${m+1}00`),children:[b&&(0,Et.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:b.children[0].text}),g&&(0,Et.jsx)(q,{content:g,enableGutter:!1,className:"rich-text"}),c&&(0,Et.jsx)(Zt,{...d})]},m)})})})};var Ms=h(require("next/image"));function wu({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,Et.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 pt-[calc(80vw*0.5)]",children:[(0,Et.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:(0,Et.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,Et.jsx)(Ms.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,Et.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[o&&(0,Et.jsx)("div",{className:"h-16 w-32 md:h-24 md:w-48",children:(0,Et.jsx)(Ms.default,{src:o,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})}),r&&(0,Et.jsx)("div",{className:"h-10 w-20 md:h-12 md:w-24",children:(0,Et.jsx)(Ms.default,{src:r,alt:"Customer logo",className:"h-full w-full object-contain",width:96,height:48})})]}),(0,Et.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,Et.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,Et.jsx)("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var An=h(require("next/image"));var Sn=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,Et.jsx)(Nu,{blocks:a.layout}):(0,Et.jsx)(Et.Fragment,{})},uc={content:Br,cta:yo,mediaBlock:ka,imageBlock:ka,features:wo},Nu=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Et.jsx)(Et.Fragment,{children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in uc){let i=uc[s];if(i)return(0,Et.jsxs)("div",{className:"py-6 relative",children:[(0,Et.jsx)(Is,{block:o,index:r}),(0,Et.jsx)("div",{className:n(l?.settings?.theme==="dark"?"dark":l?.settings?.theme==="green"?"green":""),children:(0,Et.jsx)(i,{...o})})]},r)}return null})}):null};var fc=h(require("react")),Xo=h(require("@radix-ui/react-collapsible"));var gc=({title:e,richText:t})=>{let[a,o]=fc.default.useState(!1);return(0,Et.jsx)("div",{className:"border rounded-lg overflow-hidden",children:(0,Et.jsxs)(Xo.Root,{className:n("w-full"),open:a,onOpenChange:o,children:[(0,Et.jsxs)(Xo.Trigger,{className:"flex w-full items-center justify-between bg-white px-4 py-3 text-left hover:bg-gray-50",children:[(0,Et.jsx)("h2",{className:"text-lg font-medium",children:e}),a?(0,Et.jsx)(Xr.ChevronUpIcon,{className:"h-6 w-6"}):(0,Et.jsx)(Xr.ChevronDownIcon,{className:"h-6 w-6"})]}),(0,Et.jsx)(Xo.Content,{className:"overflow-hidden data-[state=closed]:animate-collapse data-[state=open]:animate-expand border-t",children:(0,Et.jsx)("div",{className:"px-4 py-3 bg-white",children:(0,Et.jsx)(q,{content:t||{},enableGutter:!1})})})]})})};var Bs={content:Br,cta:yo,mediaBlock:ka,collapsibleArea:gc,imageBlock:ka,features:wo,reusableContentBlock:Sn},oo=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Et.jsx)("section",{id:"render-blocks",className:n(e.fill?"h-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in Bs){let i=Bs[s];if(s==="reusableContentBlock")return(0,Et.jsx)(Dl.Fragment,{children:(0,Et.jsx)(oo,{blocks:o.reusableContent.layout})},r);if(i)return(0,Et.jsxs)("div",{className:n("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[(0,Et.jsx)(Is,{block:o,index:r}),(0,Et.jsx)("div",{className:n("container h-full relative",l?.settings?.theme||"dark"),children:(0,Et.jsx)(i,{...o})})]},r)}return null})}):null},Is=e=>{if(!("theme"in e.block))return(0,Et.jsx)("div",{className:n("absolute inset-0 w-screen h-full dark bg-background")});let t=e.block?.theme;if(t.settings.background==="image"){let a={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,Et.jsxs)("div",{className:n("absolute inset-0 w-full h-full bg-background",t.settings.theme||"dark"),children:[(0,Et.jsx)(An.default,{src:t.settings?.image?.url||"/placeholder.svg",alt:t.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,Et.jsx)("div",{className:"absolute inset-0",style:{background:a.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,Et.jsx)("div",{className:n("absolute inset-0 w-screen h-full bg-background",t.settings.theme||"dark")})},Cu=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Et.jsx)("main",{id:"content-blocks",className:n(e.fill?"h-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in Bs){let i=Bs[s];if(s==="reusableContentBlock")return(0,Et.jsx)(Dl.Fragment,{children:(0,Et.jsx)(oo,{blocks:o.reusableContent.layout})},r);if(i)return(0,Et.jsx)(bc,{block:o,allBlocks:t,index:r,children:(0,Et.jsx)(i,{...o})})}return null})}):null},bc=e=>{if(e.index===0)return(0,Et.jsxs)("section",{className:"relative flex w-full",children:[(0,Et.jsx)("div",{className:n("absolute inset-0 w-screen h-full light bg-background")}),(0,Et.jsx)("div",{className:n("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let t=m=>m%2===0?"light":"dark",a=({index:m,allBlocks:c})=>m===1?(0,Et.jsx)(Rn,{position:"left"}):r(m,c)==="dark"&&l(m,c)==="light"?(0,Et.jsx)(Tn,{position:"left"}):r(m,c)==="light"&&l(m,c)==="dark"?(0,Et.jsx)(Rn,{position:"left"}):null,o=({index:m,allBlocks:c})=>s(m,c)==="light"&&l(m,c)==="dark"?(0,Et.jsx)(Tn,{position:"left"}):null,r=(m,c)=>{if(m===1)return"light";let d=c[m-1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},s=(m,c)=>{if(m===c.length-1)return"dark";if(m===0)return"light";let d=c[m+1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},l=(m,c)=>{if(m===c.length-1)return"dark";let d=c[m];return d.theme&&d.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return r(e.index,e.allBlocks)==="dark"?(0,Et.jsxs)("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[(0,Et.jsx)("div",{className:n("absolute inset-0 w-screen dark bg-background")}),(0,Et.jsx)("div",{className:n("container relative","dark bg-background py-1"),children:e.children})]}):(0,Et.jsxs)("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[(0,Et.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,Et.jsx)("div",{className:n("absolute inset-0 w-screen")}),(0,Et.jsx)("div",{className:"bg-black",children:(0,Et.jsx)("div",{className:n("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||r(e.index,e.allBlocks)===l(e.index,e.allBlocks)){let m=l(e.index,e.allBlocks);return(0,Et.jsxs)("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[(0,Et.jsx)("div",{className:n("absolute inset-0 w-screen bg-background",m)}),(0,Et.jsx)("div",{className:n("container relative bg-background py-1",m,m==="light"&&"py-12"),children:e.children})]})}if(r(e.index,e.allBlocks)!==l(e.index,e.allBlocks)){let m=l(e.index,e.allBlocks);return(0,Et.jsxs)("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[(0,Et.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,Et.jsx)("div",{className:n("absolute inset-0 w-screen bg-background",m)}),(0,Et.jsx)("div",{className:n("container relative bg-background min-h-[22em] content-center py-1",m,m==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return(0,Et.jsxs)("div",{className:n("container h-full relative","dark"),children:[(0,Et.jsx)("div",{className:n("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let i=e.block?.theme;if(i.settings.background==="image"){let m={imagePosition:i.settings.imagePosition||"left",overlay:i.settings.overlay!==void 0?i.settings.overlay:!0};return(0,Et.jsxs)("div",{className:n("absolute inset-0 w-full h-full bg-background",i.settings.theme||"dark"),children:[(0,Et.jsx)(An.default,{src:i.settings?.image?.url||"/placeholder.svg",alt:i.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),i.settings.overlay&&(0,Et.jsx)("div",{className:"absolute inset-0",style:{background:m.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,Et.jsx)("div",{className:n("absolute inset-0 w-screen h-full bg-background",i.settings.theme||"dark")})},Rn=({position:e})=>(0,Et.jsx)("div",{className:"w-full aspect-[1920/360] Et-20 relative -top-[2px] bg-white",children:(0,Et.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:n("w-full block overflow-hidden"),children:(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),Tn=({position:e})=>(0,Et.jsx)("div",{className:"w-full relative Et-20 aspect-[1920/332] overflow-hidden ",children:(0,Et.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:n("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[(0,Et.jsx)("defs",{children:(0,Et.jsxs)("mask",{id:"mask",children:[(0,Et.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});var xc=h(require("clsx"));var vc=require("next/navigation");function Pu({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,vc.useRouter)(),r=(0,Dl.useRef)(null),s=(0,Dl.useRef)(null),l=(0,Dl.useRef)(0),i=(0,Dl.useRef)(!1),m=(0,Dl.useRef)(0),c=(0,Dl.useCallback)(p=>{if(p.target){let u=p.target,g=+new Date,b=u?.closest("a");m.current=p.button,b?i.current=!0:(i.current=!1,l.current=g)}},[o,r,s,l]),d=(0,Dl.useCallback)(p=>{if(s.current?.href){let g=+new Date-l.current;if(s.current?.href&&g<=250&&!i.current&&m.current===0&&!p.ctrlKey)if(e){let b=t?"_blank":"_self";window.open(s.current.href,b)}else o.push(s.current.href,{scroll:a})}},[o,r,s,l]);return(0,Dl.useEffect)(()=>{let p=r.current;return p&&(p.addEventListener("mousedown",c),p.addEventListener("mouseup",d)),()=>{p&&p&&(p?.removeEventListener("mousedown",c),p?.removeEventListener("mouseup",d))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var hc=Pu;var yc=h(require("next/link"));var Er=e=>{let{card:t,link:a}=hc({}),{className:o,doc:r,relationTo:s,showCategories:l,title:i}=e,{slug:m,categories:c,meta:d,title:p}=r||{},{description:u,image:g}=d||{},b=c&&Array.isArray(c)&&c.length>0,f=i||p,v=u?.replace(/\s/g," "),L=`/${s}/${m}`;return(0,Et.jsxs)("article",{className:n("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,Et.jsxs)("div",{className:"relative w-full ",children:[!g&&(0,Et.jsx)("div",{className:"",children:"No image"}),g&&typeof g!="string"&&(0,Et.jsx)(ta,{resource:g,size:"33vw"})]}),(0,Et.jsxs)("div",{className:"p-4",children:[l&&b&&(0,Et.jsx)("div",{className:"uppercase text-sm mb-4",children:l&&b&&(0,Et.jsx)("div",{children:c?.map((S,w)=>{if(typeof S=="object"){let{title:k}=S,x=k||"Untitled category",D=w===c.length-1;return(0,Et.jsxs)(Dl.Fragment,{children:[x,!D&&(0,Et.jsx)(Dl.Fragment,{children:", \xA0"})]},w)}return null})})}),f&&(0,Et.jsx)("div",{className:"prose",children:(0,Et.jsx)("h3",{children:(0,Et.jsx)(yc.default,{className:"not-prose",href:L,ref:a.ref,children:f})})}),u&&(0,Et.jsx)("div",{className:"mt-2",children:u&&(0,Et.jsx)("p",{children:v})})]})]})};var ku=e=>{let{className:t,docs:a,introContent:o}=e;return(0,Et.jsxs)("div",{className:(0,xc.default)("container",t),children:[o&&(0,Et.jsx)(q,{content:o,enableGutter:!1}),(0,Et.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:a?.map((r,s)=>typeof r=="string"?null:(0,Et.jsx)(Er,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var Qo=require("framer-motion");var sy=require("pagedjs");var Su=e=>{let{posts:t}=e;return(0,Et.jsx)("div",{className:n("container"),children:(0,Et.jsx)("div",{children:(0,Et.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-Et-4 gap-x-4 lg:gap-Et-8 lg:gap-x-8 xl:gap-x-8",children:t?.map((a,o)=>typeof a=="object"&&a!==null?(0,Et.jsx)("div",{className:"col-span-4",children:(0,Et.jsx)(Er,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var wc=h(require("clsx")),Nc=h(require("next/image")),Ru=e=>{let{loading:t,priority:a,className:o}=e;return(0,Et.jsx)(Nc.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,wc.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 Tu={plural:"Docs",singular:"Doc"},Du={posts:{plural:"Posts",singular:"Post"}},Au=e=>{let{className:t,collection:a,collectionLabels:o,currentPage:r,limit:s,totalDocs:l}=e,i=(r?r-1:1)*(s||1)+1;l&&i>l&&(i=0);let m=(r||1)*(s||1);l&&m>l&&(m=l);let{plural:c,singular:d}=o||Du[a||""]||Tu||{};return(0,Et.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof l>"u"||l===0)&&"Search produced Zl results.",typeof l<"u"&&l>0&&`Showing ${i}${i>0?` - ${m}`:""} of ${l} ${l>1?c:d}`]})};var In=h(require("react")),Ln=({className:e,...t})=>(0,Et.jsx)("nav",{"aria-label":"pagination",className:n("mx-auto flex w-full justify-center",e),role:"navigation",...t});Ln.displayName="Pagination";var Bn=In.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("ul",{className:n("flex flex-row items-center gap-1",e),ref:a,...t}));Bn.displayName="PaginationContent";var Da=In.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("li",{className:n("",e),ref:a,...t}));Da.displayName="PaginationItem";var Po=({className:e,isActive:t,size:a="icon",...o})=>(0,Et.jsx)("button",{"aria-current":t?"page":void 0,className:n(Ga({size:a,variant:t?"outline":"ghost"}),e),...o});Po.displayName="PaginationLink";var En=({className:e,...t})=>(0,Et.jsxs)(Po,{"aria-label":"Go Zl previous page",className:n("gap-1 pl-2.5",e),size:"default",...t,children:[(0,Et.jsx)(Zl.ChevronLeft,{className:"h-4 w-4"}),(0,Et.jsx)("span",{children:"Previous"})]});En.displayName="PaginationPrevious";var zn=({className:e,...t})=>(0,Et.jsxs)(Po,{"aria-label":"Go Zl next page",className:n("gap-1 pr-2.5",e),size:"default",...t,children:[(0,Et.jsx)("span",{children:"Next"}),(0,Et.jsx)(Zl.ChevronRight,{className:"h-4 w-4"})]});zn.displayName="PaginationNext";var Es=({className:e,...t})=>(0,Et.jsxs)("span",{"aria-hidden":!0,className:n("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,Et.jsx)(Zl.MoreHorizontal,{className:"h-4 w-4"}),(0,Et.jsx)("span",{className:"Dl-only",children:"More pages"})]});Es.displayName="PaginationEllipsis";var Mu=e=>{let t=(0,vc.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,l=o>1,i=o-1>1,m=o+1<r;return(0,Et.jsx)("div",{className:n("my-12",a),children:(0,Et.jsx)(Ln,{children:(0,Et.jsxs)(Bn,{children:[(0,Et.jsx)(Da,{children:(0,Et.jsx)(En,{disabled:!l,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),i&&(0,Et.jsx)(Da,{children:(0,Et.jsx)(Es,{})}),l&&(0,Et.jsx)(Da,{children:(0,Et.jsx)(Po,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,Et.jsx)(Da,{children:(0,Et.jsx)(Po,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,Et.jsx)(Da,{children:(0,Et.jsx)(Po,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),m&&(0,Et.jsx)(Da,{children:(0,Et.jsx)(Es,{})}),(0,Et.jsx)(Da,{children:(0,Et.jsx)(zn,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var Hn=h(require("next/image")),Sc=({logoImage:e})=>(0,Et.jsxs)("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
|
|
16
|
-
dark bg-background text-primary`,children:[(0,
|
|
17
|
-
${
|
|
18
|
-
w-full h-full bg-cover bg-center`,children:
|
|
19
|
-
dark bg-background text-primary`,children:[(0,Et.jsxs)("div",{className:"flex px-6 items-center space-x-2",children:[a&&(0,Et.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Et.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,Et.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,Et.jsx)("div",{ref:s,className:"preview-container"})]})},Ic=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=zo(e),o=(0,Dl.useRef)(null),r=(0,Dl.useRef)(null),s=(0,Dl.useRef)(new sy.Previewer),[l,i]=(0,Dl.useState)(0),c=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,Dl.useCallback)(()=>{o.current&&(o.current&&(o.current.innerHTML=""),s.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],o.current).then(p=>i(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[t]);return(0,Dl.useEffect)(()=>{s.current=new sy.Previewer,d()},[d,t]),(0,Dl.useEffect)(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),(0,Et.jsxs)("div",{className:"pagedjs-container",children:[(0,Et.jsx)("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:c.map((p,u)=>(0,Et.jsx)(Et.Fragment,{children:u===0?(0,Et.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,Et.jsx)(Hr,{hero:e.hero,title:e.title})},u):(0,Et.jsxs)("section",{className:n("pagedjs-section normal-page h-[699px]",`h-[${Lu("185mm")}px]`,p.theme?.settings?.theme==="dark"?"dark":"light"),children:[p.blockName&&(0,Et.jsx)(zr,{title:p.blockName}),(0,Et.jsx)(oo,{blocks:[p],fill:!0})]},u)}))}),(0,Et.jsx)("div",{ref:o,className:"preview-container"})]})};var On=h(require("clsx"));function Bu({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:l,loading:i=!1,LinkComponent:m,...c}){let p=m?u=>(0,Et.jsx)(m,{...u}):l?({href:u,children:g,...b})=>(0,Et.jsx)("button",{onClick:()=>l&&l(u),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...b,children:g}):u=>(0,Et.jsx)("a",{...u});return(0,Et.jsxs)(mo,{...c,variant:"inset",children:[(0,Et.jsx)(po,{children:(0,Et.jsx)(bt,{children:(0,Et.jsx)(Ze,{children:i?(0,Et.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Et.jsx)(Me,{className:"bg-gray-200 my-2 w-full h-7"}),(0,Et.jsx)(Me,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,Et.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Et.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,Et.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),i&&(0,Et.jsxs)($a,{children:[(0,Et.jsx)(Me,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(Me,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(Me,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(Me,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(Me,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(Me,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(Me,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(Me,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(Me,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(Me,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,Et.jsxs)($a,{children:[e&&!i&&e.map((u,g)=>(0,Et.jsx)(Eu,{subNav:u,pathName:r,Link:p},g)),(0,Et.jsx)(zt,{className:"mt-auto",children:(0,Et.jsx)(Yt,{children:(0,Et.jsx)(bt,{children:t&&!i&&t.map(u=>(0,Et.jsx)(Ze,{children:(0,Et.jsx)(Ht,{asChild:!0,size:"sm",children:(0,Et.jsxs)(p,{href:u.url||"",children:[u.icon&&(0,Et.jsx)(u.icon,{}),(0,Et.jsx)("span",{children:u.label})]})})},u.label))})})})]}),(0,Et.jsx)(uo,{})]})}function Eu({subNav:e,pathName:t,Link:a}){let o=e,r=!1;return o.links&&o.links.map(s=>{s.url===t&&(r=!0)}),(0,Et.jsx)(ba,{defaultOpen:!0,className:"group/collapsible",children:(0,Et.jsx)(zt,{className:"py-0",children:(0,Et.jsx)(bt,{children:(0,Et.jsx)(ba,{asChild:!0,defaultOpen:o.isActive,children:(0,Et.jsxs)(Ze,{children:[(0,Et.jsx)(Ht,{asChild:!0,tooltip:o.label,className:(0,On.default)(r&&"font-bold text-accent"),children:(0,Et.jsxs)(a,{href:o.url,children:[o.icon&&(0,Et.jsx)(o.icon,{}),(0,Et.jsx)("span",{children:o.label})]})}),o.links?.length?(0,Et.jsxs)(Et.Fragment,{children:[(0,Et.jsx)(ja,{asChild:!0,children:(0,Et.jsxs)(vr,{className:"data-[state=open]:rotate-90",children:[(0,Et.jsx)(Zl.ChevronRight,{}),(0,Et.jsx)("span",{className:"Dl-only",children:"Toggle"})]})}),(0,Et.jsx)(_a,{children:(0,Et.jsx)(Wa,{children:o.links?.map(s=>(0,Et.jsx)(Ua,{children:(0,Et.jsx)(Va,{asChild:!0,className:(0,On.default)(s.url===t&&"font-bold text-accent"),children:(0,Et.jsx)(a,{href:s.url,children:(0,Et.jsx)("span",{children:s.label})})})},s.label))})})]}):null]})},o.label)})})})}var Bc=h(require("clsx"));var zu=()=>(0,Et.jsx)(et,{iconName:"github",size:"10x"});function Hu({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:l,onPrintDocument:i,onGithubClick:m,onNavClick:c,LinkComponent:d,...p}){let b=d?f=>(0,Et.jsx)(d,{...f}):c?({item:f,children:v,...L})=>(0,Et.jsx)("button",{onClick:()=>c&&c(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...L,children:v}):f=>(0,Et.jsx)("a",{href:f.href,...f});return(0,Et.jsxs)(mo,{side:"right",variant:"inset",...p,children:[(0,Et.jsxs)(po,{className:"border-b border-sidebar-border",children:[(0,Et.jsxs)(bt,{className:"flex-row space-x-1",children:[(0,Et.jsx)(Ze,{children:(0,Et.jsxs)(Ht,{onClick:s,children:[(0,Et.jsx)(Zl.FilePlus,{})," ",(0,Et.jsx)("span",{children:"Add Document"})]})}),m&&(0,Et.jsx)(Ze,{children:(0,Et.jsx)(Ht,{onClick:m,tooltip:"Open in GitHub",children:(0,Et.jsx)(zu,{})})})]}),(0,Et.jsxs)(bt,{className:"flex-row space-x-1",children:[(0,Et.jsx)(Ze,{className:"w-5/12",children:(0,Et.jsxs)(Ht,{onClick:()=>l(),variant:r?"outline":"default",className:(0,Bc.default)(r&&"text-accent"),children:[(0,Et.jsx)(Zl.Edit,{})," ",(0,Et.jsx)("span",{children:"Edit"})]})}),(0,Et.jsx)(Ze,{className:"w-5/12",children:(0,Et.jsxs)(Ht,{onClick:i,children:[(0,Et.jsx)(Zl.Printer,{})," ",(0,Et.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,Et.jsxs)(Et.Fragment,{children:[(0,Et.jsx)(ba,{defaultOpen:!0,className:"group/collapsible",children:(0,Et.jsxs)(zt,{children:[(0,Et.jsx)(ha,{asChild:!0,children:(0,Et.jsxs)(ja,{children:["Editor Controls",(0,Et.jsx)(Zl.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Et.jsx)(Yt,{children:(0,Et.jsx)(_a,{children:a})})]})}),(0,Et.jsx)(br,{className:"mx-0"})]}),(0,Et.jsxs)($a,{className:"overflow-auto",children:[o&&(0,Et.jsxs)(Et.Fragment,{children:[(0,Et.jsxs)(zt,{children:[(0,Et.jsx)(ha,{children:"Related Content"}),(0,Et.jsx)(Yt,{children:(0,Et.jsx)(bt,{children:Array.from({length:3}).map((f,v)=>(0,Et.jsx)(Ze,{children:(0,Et.jsx)(Me,{className:"bg-gray-200 w-full h-10"})},v))})})]}),(0,Et.jsxs)(zt,{children:[(0,Et.jsx)(ha,{children:"Table of Contents"}),(0,Et.jsx)(Yt,{children:(0,Et.jsx)(bt,{children:Array.from({length:3}).map((f,v)=>(0,Et.jsx)(Ze,{children:(0,Et.jsx)(Me,{className:"bg-gray-200 w-full h-10"})},v))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,Et.jsx)(ba,{defaultOpen:!0,className:"group/collapsible",children:(0,Et.jsxs)(zt,{children:[(0,Et.jsx)(ha,{asChild:!0,children:(0,Et.jsxs)(ja,{children:["Related Content",(0,Et.jsx)(Zl.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Et.jsx)(Yt,{children:(0,Et.jsx)(_a,{children:(0,Et.jsx)(bt,{children:e&&Object.keys(e).map(f=>(0,Et.jsxs)(Ze,{children:[(0,Et.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",f.charAt(0).toUpperCase()+f.slice(1)]}),f&&e[f]&&(0,Et.jsx)(Wa,{children:e[f].map(v=>(0,Et.jsx)(Ua,{children:(0,Et.jsx)(Va,{asChild:!0,isActive:!1,size:"sm",children:(0,Et.jsxs)(b,{href:v.url,item:v,className:"flex justify-between items-center w-full text-xs",children:[(0,Et.jsx)("span",{children:v.label}),v.type==="note"&&(0,Et.jsx)(Zl.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),v.type==="draft"&&(0,Et.jsx)(et,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},v.label))})]},f))})})})]})}),t&&!o&&(0,Et.jsx)(ba,{defaultOpen:!0,className:"group/collapsible",children:(0,Et.jsxs)(zt,{children:[(0,Et.jsx)(ha,{asChild:!0,children:(0,Et.jsxs)(ja,{children:["Table of Contents",(0,Et.jsx)(Zl.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Et.jsx)(Yt,{children:(0,Et.jsx)(_a,{children:(0,Et.jsx)(bt,{children:t.map(f=>(0,Et.jsxs)(Ze,{children:[(0,Et.jsx)(Ht,{asChild:!0,children:(0,Et.jsx)("a",{href:`#${f.url}`,className:"text-xs",children:f.title})}),f.items?.length?(0,Et.jsx)(Wa,{children:f.items.map(v=>(0,Et.jsx)(Ua,{children:(0,Et.jsx)(Va,{asChild:!0,isActive:v.isActive,size:"sm",children:(0,Et.jsx)("a",{href:`#${v.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,Et.jsx)("span",{children:v.title})})})},v.title))}):null]},f.title))})})})]})})]}),(0,Et.jsx)(uo,{})]})}var zc=h(require("next/image"));function Fu({title:e,members:t}){return(0,Et.jsx)(we,{className:"mb-6",children:(0,Et.jsxs)("div",{className:"p-6",children:[(0,Et.jsxs)("div",{className:"flex items-center mb-4",children:[(0,Et.jsx)(Zl.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,Et.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,Et.jsx)("div",{className:"space-Et-4",children:t.map((a,o)=>(0,Et.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,Et.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,Et.jsx)(zc.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,Et.jsxs)("div",{children:[(0,Et.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,Et.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var Hc=h(require("next/link"));var Ou=({links:e,title:t="Related Content"})=>(0,Et.jsxs)(we,{children:[(0,Et.jsx)($e,{children:(0,Et.jsx)(We,{className:"text-accent",children:t})}),(0,Et.jsx)(Te,{children:(0,Et.jsx)("nav",{className:"flex flex-col space-Et-2",children:e.map((a,o)=>(0,Et.jsxs)(Hc.default,{href:a.href,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.name,a.href.startsWith("http")&&(0,Et.jsx)(Zl.ExternalLink,{className:"ml-1 h-3 w-3"})]},o))})})]});var jn=n("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function _n({pages:e}){let t=(0,vc.useSearchParams)(),a=(0,vc.usePathname)(),{replace:o}=(0,vc.useRouter)(),{totalPages:r,page:s}=e,[l,i]=(0,Dl.useState)({start:s>3?s-3:1,end:s+2}),m=p=>{p==="left"&&l.start>1?i(u=>({start:u.start-1,end:u.end-1})):p==="right"&&l.end<r&&i(u=>({start:u.start+1,end:u.end+1}))};function c(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=l.start;p<=l.end;p++)d.push(p);return(0,$t.jsx)("div",{className:"mt-12",children:(0,$t.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[l.start>1&&(0,$t.jsx)("li",{children:(0,$t.jsx)("button",{className:n(jn,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>m("left"),children:(0,$t.jsx)(Hd.FaArrowLeft,{})})}),d.map((p,u)=>(0,$t.jsx)("li",{children:(0,$t.jsx)("a",{className:n(jn,p===s?"border-accent bg-accent text-accent-foreground":"border-accent"),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:g=>{g.preventDefault(),c(p.toString())},children:p})},u)),l.end<r&&(0,$t.jsx)("li",{children:(0,$t.jsx)("button",{className:n(jn,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>m("right"),children:(0,$t.jsx)(Hd.FaArrowRight,{})})})]})})}var jy=n("transition-colors duration-400 hover:text-primary ease-in-out");function Gn({title:e,links:t}){let a=(0,vc.useSearchParams)(),o=(0,vc.usePathname)(),{replace:r}=(0,vc.useRouter)();function s(l){let i=new URLSearchParams(a);l?i.set("category",l):i.delete("category"),r(`${o}?${i.toString()}`)}return(0,Et.jsxs)(we,{children:[(0,Et.jsx)($e,{children:(0,Et.jsx)(We,{className:"text-accent",children:e&&e})}),(0,Et.jsx)(Te,{children:t&&t.length>0&&(0,Et.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Et.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((l,i)=>(0,Et.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:m=>{m.preventDefault(),s(l.href)},children:[l.label,(0,Et.jsx)(Zl.ExternalLink,{className:"ml-1 h-3 w-3"})]},i))})})})]})}function Wn({types:e}){let[t,a]=(0,Dl.useState)(e&&e[0].href),o=(0,vc.useSearchParams)(),r=(0,vc.usePathname)(),{replace:s}=(0,vc.useRouter)();function l(i){let m=new URLSearchParams(o);i?m.set("type",i):m.delete("type"),a(i),s(`${r}?${m.toString()}`)}return(0,$n.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-x-auto pb-4 mb-6",children:e&&e.map((i,m)=>(0,$n.jsx)(B,{variant:i.href===t?"default":"ghost",className:n("rounded-full whitespace-nowrap text-foreground border border-accent hover:bg-accent hover:text-accent-foreground",i.href===t&&"bg-accent text-accent-foreground"),onClick:()=>l(i.href),children:i.label},m))})}var Gc=h(require("next/image"));var Un=({links:e,media:t,children:a,richText:o})=>(0,Et.jsx)("div",{children:(0,Et.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,Et.jsxs)("div",{className:"fixed inset-0 container mt-24 mb-8 Et-10 flex items-start justify-center",children:[a||o&&(0,Et.jsx)(q,{className:"max-w-none p-0 mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,Et.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,Et.jsx)("li",{children:(0,Et.jsx)(Zt,{...r})},s))})]}),(0,Et.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,Et.jsx)(ta,{fill:!0,imgClassName:"Et-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,Et.jsx)("div",{children:(0,Et.jsx)(Gc.default,{className:"-Et-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Et.jsx)("span",{className:"absolute inset-0 bg-gradient-Zl-b from-white dark:from-black"})]}),(0,Et.jsx)(ju,{})]})}),ju=()=>(0,Et.jsx)("div",{className:"w-full h-[1240px] Et-10",children:(0,Et.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[(0,Et.jsx)("defs",{children:(0,Et.jsxs)("mask",{id:"mask",children:[(0,Et.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,Et.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Et.jsx)("rect",{Et:"330",width:"1920",height:"7",fill:"white"})," "]})});var Vn=h(require("next/image"));var _u=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,Et.jsx)(Vn.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,Et.jsx)("div",{children:(0,Et.jsx)(Vn.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},Xn=({links:e,media:t,children:a,richText:o})=>(0,Et.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,Et.jsx)(_u,{media:t}),(0,Et.jsx)("div",{className:"mx-0 min-w-full relative Et-9",children:(0,Et.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,Et.jsx)(q,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var Yn=({children:e,richText:t})=>(0,Et.jsx)("div",{className:"min-w-full py-10 bg-muted mt-24",children:(0,Et.jsx)("div",{className:"container",children:e||t&&(0,Et.jsx)(q,{content:t,enableGutter:!1})})});var Wc=h(require("react")),Uc=h(require("next/image"));var $c=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,l=r<10?`0${r}`:r,i=a.getFullYear();return`${l}/${s}/${i}`};var Os=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}${(l=>{if(l>3&&l<21)return"th";switch(l%10){case 1:return"st";case 2:return"nd";case 3:return"$l";default:return"th"}})(o)} ${r}`};var Gu=({post:e})=>{let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,Et.jsxs)("div",{className:"relative grid pt-24",children:[(0,Et.jsx)("div",{className:"relative Et-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground pt-24 p-6 lg:p-12",children:(0,Et.jsxs)("div",{className:"container mx-auto",children:[(0,Et.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,Et.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,Et.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Et.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,Et.jsx)("p",{children:o.map((l,i)=>(0,Et.jsxs)(Wc.default.Fragment,{children:[l.name,i<o.length-2&&", ",i===o.length-2&&(o.length>2?", and ":" and ")]},l.id))})]}),r&&(0,Et.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Et.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,Et.jsx)("time",{dateTime:r,children:$c(r)})]}),t&&t.length>0&&(0,Et.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Et.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,Et.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((l,i)=>typeof l=="object"&&l!==null&&(0,Et.jsx)(xt,{className:"px-3 py-1 mx-1",children:l.title||"Untitled category"},l.id||i))})]})]})]})}),(0,Et.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,Et.jsx)(Uc.default,{className:"object-cover",alt:`Cover image for ${s}`,src:a?.image?.url||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,Et.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-Zl-t from-background dark:from-black Zl-transparent"})]})]})};var js=require("@heroicons/react/20/solid");var qn=h(require("next/image"));function Ct({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=n("container",t&&"full-width",a&&"Zl-padding",o);return(0,Et.jsx)("div",{className:r,children:e})}var Xc=require("next-themes");function $u({children:e,...t}){return(0,Et.jsx)(Xc.ThemeProvider,{...t,children:e})}var Mt=({position:e,className:t=""})=>{let a=["","scale(-1, 1)","scale(1, -1)","scale(-1, -1)"],o=a[Math.floor(Math.random()*a.length)];if(e==="header")return(0,Et.jsx)("div",{className:"w-full h-[1240px] Et-20",children:(0,Et.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:n(t,"absolute -bottom-[2px] flex"),children:[(0,Et.jsx)("defs",{children:(0,Et.jsxs)("mask",{id:"mask",children:[(0,Et.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,Et.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Et.jsx)("rect",{Et:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,Et.jsxs)("div",{className:"w-full Et-20 aspect-[1920/332] overflow-hidden ",children:[(0,Et.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:n(t,"absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end",transform:"scale(-1, 1)"},children:[(0,Et.jsx)("defs",{children:(0,Et.jsxs)("mask",{id:"mask",children:[(0,Et.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]}),(0,Et.jsx)("div",{className:"absolute -bottom-[5px] border-none left-0 w-full h-[6px] Et-10 bg-white"})]});if(e==="dark-top")return(0,Et.jsx)("div",{className:"w-full aspect-[1920/332] Et-20 content-end block overflow-hidden",children:(0,Et.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:n(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[(0,Et.jsx)("defs",{children:(0,Et.jsxs)("mask",{id:"mask",children:[(0,Et.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-bottom")return(0,Et.jsx)("div",{className:"w-full aspect-[1920/332] Et-20 content-start block overflow-hidden bg-white",children:(0,Et.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"scale(1, -1)"},className:n(t,"w-full block overflow-hidden"),children:(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="light-bottom")return(0,Et.jsx)("div",{className:"w-full aspect-[1920/332] Et-20 content-end block overflow-hidden",children:(0,Et.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:n(t,"w-full block overflow-hidden"),transform:a[3],children:(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="bottom-left"||e==="bottom-right")return(0,Et.jsx)("div",{className:"w-full aspect-[1920/332] Et-20 relative -bottom-[1px]",children:(0,Et.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"rotateX(180deg)"},className:n(t,"w-full block overflow-hidden"),children:(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},Wu=({className:e})=>(0,Et.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:n(e,"absolute w-full h-full"),children:[(0,Et.jsx)("defs",{children:(0,Et.jsxs)("mask",{id:"mask",children:[(0,Et.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,Et.jsx)("polygon",{fill:"white",points:"0 0 0 201.561092 0 1036.200679 0 1087.625789 1255.099121 1240.909908 1920 908.450984 1920 201.561092 1920 0 0 0"})]})}),(0,Et.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var Kn=({title:e,image:t})=>(0,Et.jsx)("div",{children:(0,Et.jsxs)("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[(0,Et.jsx)("div",{className:"fixed inset-0 container mt-24 mb-8 Et-10 flex items-start justify-start",children:(0,Et.jsx)("h1",{className:"text-5xl md:text-6xl",children:e})}),(0,Et.jsxs)("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&(0,Et.jsx)(qn.default,{priority:!0,src:t.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"}),t&&typeof t=="string"&&(0,Et.jsx)("div",{children:(0,Et.jsx)(qn.default,{className:"-Et-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Et.jsx)("span",{className:"absolute inset-0 bg-gradient-Zl-b from-white dark:from-black"})]}),(0,Et.jsx)(Mt,{className:"text-black Et-10",position:"header"})]})});var Uu={highImpact:Un,lowImpact:Yn,mediumImpact:Xn,sectionHero:Kn},Vu=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Uu[t];return a?(0,Et.jsx)(a,{...e}):null};function Xu({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,Et.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,Et.jsxs)("ol",{role:"list",className:"flex items-center space-x-4",children:[(0,Et.jsx)("li",{children:(0,Et.jsx)("div",{children:(0,Et.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,Et.jsx)(js.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,Et.jsx)("span",{className:"Dl-only",children:"Home"})]})})}),t.map((a,o)=>(0,Et.jsx)("li",{children:(0,Et.jsxs)("div",{className:"flex items-center",children:[(0,Et.jsx)(js.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,Et.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,Et.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,Et.jsx)(Et.Fragment,{})}var It=require("@headlessui/react"),Gs=require("@heroicons/react/24/outline");var Yu=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,Et.jsx)("a",{href:o,className:"flex items-center gap-x-1 text-sm text-foreground group",children:(0,Et.jsxs)("span",{className:"relative",children:[e,(0,Et.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,Et.jsxs)(It.Popover,{children:[(0,Et.jsxs)(It.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 text-foreground outline-none group",children:[(0,Et.jsxs)("span",{className:"relative",children:[e,(0,Et.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,Et.jsx)(js.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,Et.jsxs)(It.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -Et-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-Et-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,Et.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 Et-50",children:t&&t.map(r=>(0,Et.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,Et.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,Et.jsx)(qc,{icon:r.icon,size:"4x"})}),(0,Et.jsxs)("a",{href:r.href,className:"mt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,Et.jsx)("span",{className:"absolute inset-0"})]}),(0,Et.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,Et.jsx)("div",{className:"bg-gray-50",children:(0,Et.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Et.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:a.map(r=>(0,Et.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-x-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,Et.jsx)(qc,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),qc=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,Et.jsx)(et,{...e,size:a});if("src"in e)return(0,Et.jsx)("div",{className:n(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,Et.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},rr=Yu;var _s=["light","dark","green"];function qu({title:e,logo:t,menuItems:a}){let[o,r]=(0,Dl.useState)(!1),[s,l]=(0,Dl.useState)(!1),[i,m]=(0,Dl.useState)("light"),c=t?.split(".")[0],d=t?.split(".")[1],[p,u]=(0,Dl.useState)(`${c}.${d}`),g=f=>{_s.includes(f)?u(f==="light"?`${c}.${d}`:`${c}-${f}.${d}`):u(`${c}.${d}`)};(0,Dl.useEffect)(()=>{let f=localStorage.getItem("theme")||"light";m(f),document.documentElement.setAttribute("class",f),g(f)},[]);let b=()=>{let f=_s[(_s.indexOf(i)+1)%_s.length];m(f),document.documentElement.setAttribute("class",f),localStorage.setItem("theme",f),g(f)};return(0,Et.jsxs)("header",{className:"relative isolate Et-10 bg-background h-14",children:[(0,Et.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,Et.jsx)("div",{className:"flex lg:flex-1",children:(0,Et.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Et.jsx)("span",{className:"Dl-only",children:e}),(0,Et.jsx)("img",{alt:e,src:p,className:"h-9 w-auto"})]})}),(0,Et.jsx)("div",{className:"flex lg:hidden",children:(0,Et.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,Et.jsx)("span",{className:"Dl-only",children:"Open main menu"}),(0,Et.jsx)(Gs.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,Et.jsx)(It.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:a.map(f=>(0,Et.jsx)(rr,{...f},f.name))}),(0,Et.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,Et.jsx)("button",{onClick:b,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,Et.jsx)(js.SunIcon,{className:"h-6 w-6"}):i==="green"?(0,Et.jsx)(js.MoonIcon,{className:"h-6 w-6"}):(0,Et.jsx)(js.SunIcon,{className:"h-6 w-6"})})})]}),(0,Et.jsxs)(It.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,Et.jsx)("div",{className:"fixed inset-0 Et-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Et.jsxs)(It.DialogPanel,{className:"fixed inset-Et-0 right-0 Et-20 w-full overflow-Et-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Et.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Et.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Et.jsx)("span",{className:"Dl-only",children:"Your Company"}),(0,Et.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,Et.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,Et.jsx)("span",{className:"Dl-only",children:"Close menu"}),(0,Et.jsx)(Gs.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Et.jsx)("div",{className:"mt-6 flow-root",children:(0,Et.jsx)("div",{className:"-my-6 divide-Et divide-gray-500/10",children:(0,Et.jsx)("div",{className:"space-Et-2 py-6",children:a.map(f=>(0,Et.jsx)(Ku,{...f},f.name))})})})]})]})]})}function Ku({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Et.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,Et.jsxs)(It.Disclosure,{as:"div",className:"-mx-3",children:[(0,Et.jsx)(It.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,Et.jsx)(It.DisclosurePanel,{className:"mt-2 space-Et-2",children:t&&t.map(r=>(0,Et.jsx)(It.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))})]})}function Qu({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let l=()=>{let i=document.getElementById("next-section");i&&i.scrollIntoView({behavior:"smooth"})};return(0,Et.jsx)("div",{children:(0,Et.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,Et.jsxs)("video",{className:"fixed inset-0 object-cover w-full h-full Et-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,Et.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,Et.jsx)("div",{className:"fixed inset-0 h-full Et-10 flex flex-col items-start justify-center text-white px-4",children:(0,Et.jsx)(Ct,{children:(0,Et.jsxs)("div",{className:"flex flex-col items-start md:w-2/3 mb-10 Et-0 md:mb-0",children:[(0,Et.jsx)("h1",{className:"text-5xl md:text-7xl mb-6",children:r&&r}),(0,Et.jsx)("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,Et.jsx)(Mt,{className:"text-black Et-10",position:"header"})]})})}var Qn=h(require("next/image"));function ro({logoLight:e,logoDark:t,mobile:a=!1}){return(0,Et.jsxs)(Qe,{href:"/",className:n(a?"py-1":"py-2"),children:[(0,Et.jsx)(Qn.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,Et.jsx)(Qn.default,{className:"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}})]})}function Jn({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[l,i]=(0,Dl.useState)(!1),[m,c]=(0,Dl.useState)(""),d=["light","dark"],{theme:p,setTheme:u}=(0,Xc.useTheme)();(0,Dl.useEffect)(()=>{c(p||"dark")},[p]);let g=()=>{let b=d[(d.indexOf(m)+1)%d.length];c(b),u(b)};return(0,Dl.useEffect)(()=>{let b=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),(0,Et.jsx)(Et.Fragment,{children:(0,Et.jsx)("header",{className:`Et-50 pb-10 transition-all duration-300 hidden lg:block ${l||e?"translate-Et-0":"-translate-Et-full bg-transparent"}`,children:(0,Et.jsx)("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:(0,Et.jsxs)("div",{className:n("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,Et.jsx)(ro,{logoDark:a,logoLight:t}),(0,Et.jsx)(It.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:o&&o.map(b=>(0,Et.jsx)(rr,{...b},b.name))}),r&&(0,Et.jsx)("button",{className:"fixed right-4 Et-[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:g,children:(0,Et.jsxs)("div",{className:"relative",children:[(0,Et.jsx)($s.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Et.jsx)($s.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var Zn=["light","dark"];function el({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,Dl.useState)(!1),{theme:l,setTheme:i}=(0,Xc.useTheme)(),[m,c]=(0,Dl.useState)(!1),[d,p]=(0,Dl.useState)("light");(0,Dl.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,Dl.useEffect)(()=>{p(l||"dark")},[l]);let u=()=>{let g=Zn[(Zn.indexOf(d)+1)%Zn.length];p(g),i(g)};return(0,Et.jsx)(Et.Fragment,{children:(0,Et.jsxs)("header",{className:`Et-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-Et-0":"-translate-Et-full bg-transparent"}`,children:[(0,Et.jsx)("nav",{className:n("backdrop-blur-sm text-white p-0",m&&"hidden"),children:(0,Et.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&Et.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,Et.jsx)(ro,{logoDark:t,logoLight:e,mobile:!0}),(0,Et.jsx)("div",{className:"flex items-center space-x-4",children:(0,Et.jsxs)("button",{type:"button",onClick:()=>c(!0),className:"fixed right-4 Et-[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,Et.jsx)("span",{className:"Dl-only",children:"Open main menu"}),(0,Et.jsx)(Gs.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,Et.jsxs)(It.Dialog,{open:m,onClose:c,className:"lg:hidden",children:[(0,Et.jsx)("div",{className:"fixed inset-0 Et-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Et.jsxs)(It.DialogPanel,{className:"fixed inset-Et-0 right-0 Et-20 w-full overflow-Et-auto bg-background dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Et.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,Et.jsx)(ro,{logoDark:t,logoLight:e,mobile:!0}),(0,Et.jsxs)("button",{type:"button",onClick:()=>c(!1),className:"-m-2.5 rounded-md p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[(0,Et.jsx)("span",{className:"Dl-only",children:"Close menu"}),(0,Et.jsx)(Gs.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Et.jsx)("div",{className:"mt-6 flow-root",children:(0,Et.jsx)("div",{className:"-my-6 divide-Et divide-gray-500/10",children:(0,Et.jsx)("div",{className:"space-Et-2 px-2 py-6",children:a&&a.map(g=>(0,Et.jsx)(Ju,{...g},g.name))})})})]})]})]})})}function Ju({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Et.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}):(0,Et.jsxs)(It.Disclosure,{as:"div",className:"-mx-3",children:[(0,Et.jsx)(It.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}),(0,Et.jsx)(It.DisclosurePanel,{className:"mt-2 space-Et-2",children:t&&t.map(r=>(0,Et.jsx)(It.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var Gx=n("text-base/[1.75] transition-transform duration-350 hover:-translate-Et-1 block px-4"),em=n("text-brand-green text-md leading-[1.25] md:text-lg mb-5 md:mb-[1.5rem]"),tl=n("bg-brand-green rounded-full p-3 mr-4 text-2xl"),al=n("flex items-center text-white gap-3"),Us=n("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Zu({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:l,footerBottom:i}=t,m=void 0;return(0,Et.jsxs)("footer",{className:n("sticky Et-2 flex flex-col dark bg-black overflow-hidden pt-12 prose-base",e),children:[(0,Et.jsx)("div",{className:"py-16 md:py-20",children:(0,Et.jsx)("div",{className:"container",children:(0,Et.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-3",children:[(0,Et.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,Et.jsx)(ro,{logoDark:o,logoLight:a}),(0,Et.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,Et.jsx)("nav",{"aria-label":"social links",children:(0,Et.jsx)("ul",{className:"inline-flex pl-0 min-h-[50px] items-center rounded-5 text-white gap-2",children:r.socialLinks.map((c,d)=>(0,Et.jsx)("li",{className:"bg-primary rounded-full p-3",children:(0,Et.jsx)(Qe,{"aria-label":c.href,className:"text-2xl",href:c.href,openNewTab:!0,children:(0,Et.jsx)("span",{children:c.icon})})},d))})})]}),(0,Et.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,Et.jsx)("h3",{className:em,children:s.title}),s.links&&s.links.length>0&&(0,Et.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Et.jsx)("ul",{className:"grid pl-0 gap-2",children:s.links.map(c=>(0,Et.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,Et.jsx)("span",{className:"flex-none text-sm/[1] text-white",children:(0,Et.jsx)(Hd.FaChevronRight,{})}),(0,Et.jsx)(Qe,{href:c.href,openNewTab:c.openNewTab,className:Us,children:c.label})]},c.label))})})]}),(0,Et.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,Et.jsx)("h3",{className:em,children:l.title}),(0,Et.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-2 pl-0",children:[(0,Et.jsxs)("li",{className:al,children:[(0,Et.jsx)("span",{className:tl,children:(0,Et.jsx)(Hd.FaPaperPlane,{})}),(0,Et.jsx)("address",{className:"not-italic",children:l.location})]}),(0,Et.jsxs)("li",{className:al,children:[(0,Et.jsx)("span",{className:tl,children:(0,Et.jsx)(Hd.FaEnvelope,{})}),l.mails&&l.mails.length>0&&(0,Et.jsx)("div",{className:"grid gap-1",children:l.mails.map((c,d)=>(0,Et.jsx)("a",{href:`mailto:${c}`,className:Us,children:c},d))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,Et.jsxs)("li",{className:al,children:[(0,Et.jsx)("span",{className:tl,children:(0,Et.jsx)(Hd.FaPhone,{})}),(0,Et.jsx)("div",{className:"grid gap-1",children:l.phoneNumbers.map((c,d)=>(0,Et.jsx)("a",{href:`tel:${c.split(" ").join("")}`,className:Us,children:c},d))})]})]})]})]})})}),(0,Et.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,Et.jsx)("div",{className:"container",children:(0,Et.jsxs)("div",{className:"flex flex-wrap items-center text-xs justify-between gap-x-8 gap-Et-4 md:gap-x-10",children:[(0,Et.jsx)("p",{children:i.copyrightText}),i.links&&i.links.length>0&&(0,Et.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,Et.jsx)("ul",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:i.links.map(c=>(0,Et.jsx)("li",{children:(0,Et.jsx)(Qe,{"aria-label":`Go Zl page ${c.label}`,href:c.href,openNewTab:c.openNewTab,className:Us,children:c.label})},c.label))})})]})})})]})}function ef({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:l=!1}){return(0,Et.jsxs)("div",{className:n("fixed top-0 left-0 right-0 Et-50",r),children:[(0,Et.jsx)(Jn,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:l,wide:s}),(0,Et.jsx)(el,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function tf({menuItems:e,wide:t=!1,dark:a=!0}){return(0,Et.jsx)(Et.Fragment,{children:(0,Et.jsx)("menu",{className:n("w-full relative py-2 transition-all duration-300",a?"bg-black text-white":"light bg-background text-foreground border-b border-accent"),children:(0,Et.jsx)("div",{className:"container backdrop-blur-sm",children:(0,Et.jsx)("div",{className:n("flex items-center justify-between py-0",!t&&"container"),children:(0,Et.jsx)(It.PopoverGroup,{className:"flex gap-x-12",children:e&&e.map(o=>(0,Et.jsx)(rr,{...o},o.name))})})})})})}function ol({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,Dl.useState)([]),s=(0,vc.useRouter)(),l=()=>{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])},m=async()=>{let d=await t(o);d.success?(un.toast.success(d.message),s.refresh()):un.toast.error(`Error: ${d.message}`),r([])},c=async()=>{let d=await a(o);d.success?(un.toast.success(d.message),s.refresh()):un.toast.error(`Error: ${d.message}`),r([])};return(0,Et.jsxs)("div",{className:"space-Et-4",children:[(0,Et.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Et.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,Et.jsxs)("div",{className:"space-x-2",children:[(0,Et.jsx)(B,{onClick:m,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,Et.jsx)(B,{onClick:c,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,Et.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,Et.jsxs)("ul",{className:"divide-Et divide-gray-200",children:[(0,Et.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,Et.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Et.jsxs)("div",{className:"flex items-center",children:[(0,Et.jsx)(Jt,{id:"select-all",checked:o.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,Et.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,Et.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,Et.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,Et.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Et.jsxs)("div",{className:"flex items-center",children:[(0,Et.jsx)(Jt,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>i(d.id),className:"border-accent"}),(0,Et.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,Et.jsxs)(vt,{className:"h-10 w-10",children:[(0,Et.jsx)(ht,{src:d.userImage,alt:d.userName}),(0,Et.jsx)(yt,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),(0,Et.jsx)("div",{className:"ml-3",children:(0,Et.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,Et.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Et.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,Et.jsx)(xt,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,Et.jsx)(un.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"Et-50"})]})}var rl=require("date-fns");var rm=[{date:new Date(2025,3,18),name:"Good Friday"},{date:new Date(2025,3,21),name:"Easter Monday"},{date:new Date(2025,4,5),name:"Early May bank holiday"},{date:new Date(2025,5,26),name:"Spring bank holiday"},{date:new Date(2025,7,25),name:"Summer bank holiday"},{date:new Date(2025,11,25),name:"Christmas Day"},{date:new Date(2025,11,26),name:"Boxing Day"}];var Gr=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=rm.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},sm=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!Gr(o))return .5;for(;o<=r;)Gr(o)||s++,o.setDate(o.getDate()+1);return s},im=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var af=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,Et.jsx)("div",{className:"flex space-x-2",children:e.map((r,s)=>(0,Et.jsx)(B,{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 il({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,Dl.useState)(new Date),[r,s]=(0,Dl.useState)(new Date),[l,i]=(0,Dl.useState)("Full Day"),[m,c]=(0,Dl.useState)(!1),[d,p]=(0,Dl.useState)(1),u=(0,vc.useRouter)();(0,Dl.useEffect)(()=>{let f=im(a,r);c(f),f&&i("Full Day")},[a,r]),(0,Dl.useEffect)(()=>{if(!a||!r){p(0);return}let f=sm(a,r,l!=="Full Day");p(f)},[a,r,l]);let g=f=>{i(f)};return(0,Et.jsxs)("div",{className:"max-w-2xl",children:[(0,Et.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,Et.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,Et.jsxs)("form",{onSubmit:async f=>{if(f.preventDefault(),!a||!r){un.toast.error("Please select both start and end dates");return}if(d>e){un.toast.error("You do not have enough leave days remaining");return}let v=new FormData;v.append("startDate",a.toISOString()),v.append("endDate",r.toISOString()),v.append("leaveType",l),v.append("duration",d.toString());let L=await(t||of)(v);L.success?(un.toast.success(L.message),o(void 0),s(void 0),i("Full Day"),u.refresh()):un.toast.error(`Error: ${L.message}`)},className:"space-Et-4",children:[(0,Et.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Et.jsxs)("div",{className:"flex flex-col space-Et-2",children:[(0,Et.jsx)(ge,{htmlFor:"startDate",children:"Start Date"}),(0,Et.jsxs)(kr,{children:[(0,Et.jsx)(Sr,{asChild:!0,children:(0,Et.jsxs)(B,{variant:"outline",className:n("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,Et.jsx)(Zl.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,rl.format)(a,"PPP"):(0,Et.jsx)("span",{children:"Pick a date"})]})}),(0,Et.jsx)($o,{className:"w-auto p-0",align:"start",children:(0,Et.jsx)(Dr,{mode:"single",selected:a,onSelect:f=>{o(f),f&&(!r||f>r)&&s(f)},initialFocus:!0})})]})]}),(0,Et.jsxs)("div",{className:"flex flex-col space-Et-2",children:[(0,Et.jsx)(ge,{htmlFor:"endDate",children:"End Date"}),(0,Et.jsxs)(kr,{children:[(0,Et.jsx)(Sr,{asChild:!0,children:(0,Et.jsxs)(B,{variant:"outline",className:n("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,Et.jsx)(Zl.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,rl.format)(r,"PPP"):(0,Et.jsx)("span",{children:"Pick a date"})]})}),(0,Et.jsx)($o,{className:"w-auto p-0",align:"start",children:(0,Et.jsx)(Dr,{mode:"single",selected:r,onSelect:s,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),(0,Et.jsxs)("div",{className:"space-Et-2",children:[(0,Et.jsx)(ge,{children:"Leave Type"}),(0,Et.jsx)(af,{options:["Full Day","Morning","Afternoon"],value:l,onChange:g,disabled:[!1,m,m]})]}),(0,Et.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",d]}),(0,Et.jsx)(B,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,Et.jsx)(un.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"Et-50"})]})}var of=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function lm(...e){return e.filter(Boolean).join(" ")}function nl({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))},l=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},i=()=>{t(new Date)},m=c=>c.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,Et.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,Et.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,Et.jsxs)("div",{className:"sm:flex-auto",children:[(0,Et.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Et.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,Et.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Et.jsxs)(B,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Et.jsx)("span",{className:"Dl-only",children:"Previous month"}),(0,Et.jsx)(Zl.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Et.jsx)(B,{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,Et.jsxs)(B,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Et.jsx)("span",{className:"Dl-only",children:"Next month"}),(0,Et.jsx)(Zl.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,Et.jsx)("div",{className:"mt-8 flow-root",children:(0,Et.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,Et.jsx)("div",{className:"max-h-[60vh] overflow-Et-auto",children:(0,Et.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,Et.jsx)("thead",{className:"sticky top-0 Et-20 bg-white",children:(0,Et.jsxs)("vc",{children:[(0,Et.jsx)("th",{scope:"col",className:"sticky left-0 top-0 Et-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,d)=>{let p=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,Et.jsxs)("th",{scope:"col",className:`sticky top-0 Et-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 ${Gr(p)?"bg-gray-200":""}`,children:[(0,Et.jsx)("div",{children:m(p)}),(0,Et.jsx)("div",{children:d+1})]},d)})]})}),(0,Et.jsx)("tbody",{children:o.map((c,d)=>(0,Et.jsxs)("vc",{children:[(0,Et.jsx)("td",{className:lm(d!==o.length-1?"border-gray-200":"","sticky left-0 Et-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,Et.jsxs)("div",{className:"flex items-center",children:[(0,Et.jsxs)(vt,{className:"h-11 w-11",children:[(0,Et.jsx)(ht,{src:c.image,alt:c.name}),(0,Et.jsx)(yt,{children:c.name.split(" ").map(p=>p[0]).join("")})]}),(0,Et.jsx)("div",{className:"ml-4",children:(0,Et.jsx)("div",{className:"font-medium text-accent",children:c.name})})]})}),[...Array(r)].map((p,u)=>{let g=new Date(e.getFullYear(),e.getMonth(),u+1),b=a.find(f=>f.userId===c.id&&new Date(f.startDate)<=g&&new Date(f.endDate)>=g);return(0,Et.jsx)("td",{className:lm(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Gr(g)?"bg-gray-200":"bg-white"),children:(0,Et.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${b?b.status==="approved"?"bg-green-500":b.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:b?`${c.name}: ${b.status} (${b.startDate} - ${b.endDate}) - ${b.leaveType}`:"",children:b&&b.leaveType!=="Full Day"&&(0,Et.jsx)("div",{className:`h-3 w-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${c.id}-${u}`)})]},c.id))})]})})})})]})}function ll({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,Dl.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,l=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))},m=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},c=()=>{t(new Date)};return(0,Et.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,Et.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Et.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Et.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Et.jsx)("div",{className:"flex items-center",children:(0,Et.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Et.jsxs)(B,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Et.jsx)("span",{className:"Dl-only",children:"Previous month"}),(0,Et.jsx)(Zl.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Et.jsx)(B,{variant:"outline",onClick:c,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,Et.jsxs)(B,{onClick:m,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Et.jsx)("span",{className:"Dl-only",children:"Next month"}),(0,Et.jsx)(Zl.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,Et.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Et.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,Et.jsxs)("div",{className:"bg-white py-2",children:["Et",(0,Et.jsx)("span",{className:"Dl-only sm:not-Dl-only",children:"on"})]}),(0,Et.jsxs)("div",{className:"bg-white py-2",children:["Et",(0,Et.jsx)("span",{className:"Dl-only sm:not-Dl-only",children:"ue"})]}),(0,Et.jsxs)("div",{className:"bg-white py-2",children:["Et",(0,Et.jsx)("span",{className:"Dl-only sm:not-Dl-only",children:"ed"})]}),(0,Et.jsxs)("div",{className:"bg-white py-2",children:["Et",(0,Et.jsx)("span",{className:"Dl-only sm:not-Dl-only",children:"hu"})]}),(0,Et.jsxs)("div",{className:"bg-white py-2",children:["F",(0,Et.jsx)("span",{className:"Dl-only sm:not-Dl-only",children:"ri"})]}),(0,Et.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Et.jsx)("span",{className:"Dl-only sm:not-Dl-only",children:"Et"})]}),(0,Et.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Et.jsx)("span",{className:"Dl-only sm:not-Dl-only",children:"un"})]})]}),(0,Et.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto overflow-visible",children:[(0,Et.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px overflow-visible",children:l.map(d=>(0,Et.jsxs)("div",{className:n(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2 overflow-visible"),children:[(0,Et.jsx)("time",{dateTime:d.date.toISOString(),className:n("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,Et.jsx)("ol",{className:"mt-2 space-Et-1 overflow-visible",children:d.holidays.map(p=>(0,Et.jsx)("li",{className:"overflow-visible",children:(0,Et.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border overflow-visible`,children:p.userName})},p.id))})]},d.date.toISOString()))}),(0,Et.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(d=>(0,Et.jsxs)("button",{type:"button",className:n(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:Et-10"),children:[(0,Et.jsx)("time",{dateTime:d.date.toISOString(),className:n("ml-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,Et.jsxs)("span",{className:"Dl-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,Et.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(p=>(0,Et.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 io=require("lucide-react");function cm(...e){return e.filter(Boolean).join(" ")}function rf({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:l,rejectLeave:i}){let[m,c]=(0,Dl.useState)("Calendar View"),d=(0,vc.useRouter)(),p=!1,u=(0,rl.parseISO)(a),g=async f=>{let v=(0,rl.format)(f,"Et-MM-yyyy"),L=new URL(window.location.href);return L.searchParams.set("date",v),d.push(L.toString()),{success:!0}};if(p)return(0,Et.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,Et.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let b=[{name:"Grid View",icon:io.Grid,current:m==="Grid View"},{name:"Calendar View",icon:io.CalendarDays,current:m==="Calendar View"},{name:"Request Leave",icon:io.PlusCircle,current:m==="Request Leave"},{name:"Approve Leave",icon:io.CheckSquare,current:m==="Approve Leave"}];return(0,Et.jsxs)("div",{className:"container mx-auto p-4 h-full",children:[(0,Et.jsxs)("div",{className:"mb-8",children:[(0,Et.jsxs)("div",{className:"sm:hidden",children:[(0,Et.jsx)("select",{value:m,onChange:f=>c(f.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:b.map(f=>(0,Et.jsx)("option",{children:f.name},f.name))}),(0,Et.jsx)(Zl.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,Et.jsx)("div",{className:"hidden sm:block",children:(0,Et.jsx)("div",{className:"border-b border-gray-200",children:(0,Et.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:b.map(f=>(0,Et.jsxs)("a",{onClick:()=>{(f.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&c(f.name)},className:cm(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,Et.jsx)(f.icon,{className:cm(f.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,Et.jsx)("span",{children:f.name})]},f.name))})})})]}),m==="Grid View"&&(0,Et.jsx)(nl,{currentDate:u,setCurrentDate:g,holidays:e,employees:r}),m==="Calendar View"&&(0,Et.jsx)(ll,{currentDate:u,setCurrentDate:g,holidays:e}),m==="Request Leave"&&(0,Et.jsx)(il,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:f=>s?s(f):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),m==="Approve Leave"&&(0,Et.jsx)(ol,{leaveRequests:o,onApprove:f=>l?l(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 $r({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:l}){let[i,m]=(0,Dl.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[c,d]=(0,Dl.useState)(""),[p,u]=(0,Dl.useState)(!1),[g,b]=(0,Dl.useState)(null);(0,Dl.useEffect)(()=>{u(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let f=async()=>{try{let x=await s(i);x.success?(u(!1),b(null)):console.error("Failed Zl save deal:",x.errors)}catch(x){console.error("Failed Zl save deal:",x)}},v=(x,D)=>{m(ie=>({...ie,[x]:D}))},L=x=>{let D=(i.categories||[]).includes(x)?(i.categories||[]).filter(ie=>ie!==x):[...i.categories||[],x];v("categories",D)},S=async()=>{if(c.trim()){let x={text:c,timestamp:new Date().toISOString()};try{let D=await l(x);if(!D.success){console.error("Failed Zl add comment:",D.errors);return}}catch(D){console.error("Failed Zl add comment:",D)}m(D=>({...D,comments:[...D.comments||[],x]})),d("")}},w=x=>{switch(x){case"proposition":return"border-blue-800 text-blue-800";case"source":return"border-green-800 text-green-800";case"sector":return"border-purple-800 text-purple-800";default:return"border-gray-800 text-gray-800"}},k=x=>t?.find(D=>D.id===Number(x));return(0,Et.jsx)(Ot,{open:!0,children:(0,Et.jsxs)(Dt,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,Et.jsxs)(Kt,{className:"flex flex-row items-center justify-between",children:[(0,Et.jsx)(Qt,{className:"text-2xl font-bold",children:a?.name||"Zl customer"}),(0,Et.jsxs)("div",{className:"flex space-x-2",children:[(0,Et.jsx)(B,{variant:"outline",onClick:r,children:"Close"}),(0,Et.jsxs)(B,{onClick:f,disabled:!p,children:[(0,Et.jsx)(Zl.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,Et.jsxs)(la,{className:"flex-grow pr-4",children:[(0,Et.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,Et.jsx)("div",{className:"grid gap-2 m-1",children:g==="value"?(0,Et.jsx)(gt,{type:"number",value:i.value,onChange:x=>v("value",Number(x.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,Et.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("value"),children:["\xA3",i.value?.toLocaleString()]})}),(0,Et.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Et.jsx)(ge,{className:"text-sm font-medium text-accent",children:"Assignee"}),g==="assignee"?(0,Et.jsxs)(Qa,{value:i?.assignee?.id?.toString()||"",onValueChange:x=>v("assignee",k(x)),children:[(0,Et.jsx)(wa,{children:(0,Et.jsx)(Ja,{placeholder:"Select assignee"})}),(0,Et.jsx)(Na,{children:t&&t.map(x=>(0,Et.jsx)(Ca,{value:x?.id?.toString()||"",children:x.name},x.id))})]}):(0,Et.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("assignee"),children:[(0,Et.jsx)(Zl.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,Et.jsx)("span",{children:i?.assignee?.name})]})]}),(0,Et.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Et.jsx)(ge,{className:"text-sm font-medium text-accent",children:"Closure Date"}),g==="closureDate"?(0,Et.jsx)(gt,{type:"date",value:i.closureDate?.split("Et")[0]??"",onChange:x=>v("closureDate",x.target.value),onBlur:()=>b(null),className:"mr-2",autoFocus:!0}):(0,Et.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("closureDate"),children:[(0,Et.jsx)(Zl.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,Et.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("en-GB"):"N/A"})]})]})]}),(0,Et.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,Et.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Et.jsx)(ge,{className:"text-sm font-medium text-accent",children:"Description"}),g==="description"?(0,Et.jsx)(Za,{value:i.description||"",onChange:x=>v("description",x.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,Et.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>b("description"),children:i.description})]})}),(0,Et.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,Et.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Et.jsx)(ge,{className:"text-sm font-medium text-accent",children:"Status"}),g==="status"?(0,Et.jsxs)(Qa,{value:i.status,onValueChange:x=>{v("status",x),b(null)},children:[(0,Et.jsx)(wa,{children:(0,Et.jsx)(Ja,{placeholder:"Select status"})}),(0,Et.jsx)(Na,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(x=>(0,Et.jsx)(Ca,{value:x,children:x},x))})]}):(0,Et.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("status"),children:i.status})]}),(0,Et.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,Et.jsx)(ge,{className:"text-sm font-medium text-accent",children:"Categories"}),g==="categories"?(0,Et.jsx)("div",{className:"grid grid-cols-2 gap-2 m-1",children:o.map(x=>(0,Et.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Et.jsx)(Jt,{id:x.id?.toString()||"",checked:(i.categories||[]).some(D=>D.id===x.id),onCheckedChange:()=>x.id!==void 0&&L(x)}),(0,Et.jsx)("label",{htmlFor:(x.id??"").toString(),className:`text-sm font-medium ${w(x.type||"sector")} px-2 py-1 rounded`,children:x.name})]},x.id))}):(0,Et.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("categories"),children:i.categories&&i.categories.map(x=>{let D=x;return D?(0,Et.jsx)(xt,{variant:"outline",className:w(D.type||"sector"),children:D.name},D.id):null})})]}),(0,Et.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Et.jsx)(ge,{className:"text-sm font-medium text-accent",children:"COGE Status"}),g==="gecoStatus"?(0,Et.jsxs)(Qa,{value:i.gecoStatus??void 0,onValueChange:x=>{v("gecoStatus",x),b(null)},children:[(0,Et.jsx)(wa,{children:(0,Et.jsx)(Ja,{placeholder:"Select status"})}),(0,Et.jsx)(Na,{children:["firm","forecast","other"].map(x=>(0,Et.jsx)(Ca,{value:x,children:x.charAt(0).toUpperCase()+x.slice(1)},x))})]}):(0,Et.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("gecoStatus"),children:i.gecoStatus?i.gecoStatus.charAt(0).toUpperCase()+i.gecoStatus.slice(1):"N/A"})]})]}),(0,Et.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,Et.jsxs)("div",{className:"grid gap-2",children:[(0,Et.jsx)(ge,{className:"text-sm font-medium text-accent",children:"Comments"}),(0,Et.jsx)(la,{className:"h-[200px] overflow-Et-auto",children:(0,Et.jsx)("div",{className:"space-Et-2",children:i.comments&&i.comments.slice().sort((x,D)=>new Date(D.timestamp||"").getTime()-new Date(x.timestamp||"").getTime()).map(x=>(0,Et.jsxs)("div",{className:"p-3 rounded-lg",children:[(0,Et.jsx)("p",{className:"text-sm text-foreground",children:x.text}),(0,Et.jsxs)("p",{className:"text-xs text-foreground mt-1",children:[x?.author?.name," - ",new Date(x.timestamp||"").toLocaleString()]})]},x.id))})}),(0,Et.jsxs)("div",{className:"flex mt-2",children:[(0,Et.jsx)(gt,{value:c,onChange:x=>d(x.target.value),placeholder:"Add a comment...",className:"flex-grow ml-1"}),(0,Et.jsxs)(B,{onClick:S,className:"ml-2",children:[(0,Et.jsx)(Zl.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,Et.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}function dl({deal:e,customer:t,categories:a,onClick:o,compact:r=!1}){let s=a.find(l=>l.type==="proposition"&&(e.categories??[]).includes(l.id));return r?(0,Et.jsxs)(we,{className:"mb-1 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,Et.jsxs)($e,{className:"pb-1 pt-2",children:[(0,Et.jsx)(We,{className:"text-sm font-semibold text-foreground",children:t?.name}),(0,Et.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,Et.jsx)(Te,{className:"text-xs text-gray-500 pb-2",children:(0,Et.jsx)("div",{className:"flex justify-between items-center mb-1",children:(0,Et.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,Et.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})})})]}):(0,Et.jsxs)(we,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,Et.jsxs)($e,{className:"pb-2",children:[(0,Et.jsx)("div",{className:"flex justify-between items-center",children:(0,Et.jsx)(We,{className:"text-lg font-semibold text-foreground",children:t?.name})}),(0,Et.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,Et.jsxs)(Te,{children:[(0,Et.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,Et.jsxs)("div",{className:"flex items-center text-sm text-accent",children:[(0,Et.jsx)(Zl.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,Et.jsx)("span",{children:e.assignee.name})]}),(0,Et.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,Et.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,Et.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,Et.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Et.jsx)(Zl.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,Et.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,Et.jsx)("div",{className:"flex justify-between items-left",children:s&&(0,Et.jsx)(xt,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:s.name})})]})]})}var Ks=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function cl({onSubmit:e}){let[t,a]=(0,Dl.useState)({name:"",intro:"",active:!1});return(0,Et.jsxs)("form",{onSubmit:r=>{r.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-Et-4",children:[(0,Et.jsxs)("div",{className:"space-Et-2",children:[(0,Et.jsx)(ge,{htmlFor:"customerName",children:"Customer Name"}),(0,Et.jsx)(gt,{id:"customerName",value:t.name,onChange:r=>a({...t,name:r.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,Et.jsxs)("div",{className:"space-Et-2",children:[(0,Et.jsx)(ge,{htmlFor:"customerIntro",children:"Intro"}),(0,Et.jsx)(Za,{id:"customerIntro",value:t.intro??"",onChange:r=>a({...t,intro:r.target.value}),placeholder:"Enter customer intro"})]}),(0,Et.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Et.jsx)(Jt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:r=>a({...t,active:r})}),(0,Et.jsx)(ge,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,Et.jsx)(B,{type:"submit",className:"w-full",children:"Add Customer"})]})}function ml({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:l}){let[i,m]=(0,Dl.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("Et")[0],closureDate:"",comments:[],description:""}),[c,d]=(0,Dl.useState)(!1),[p,u]=(0,Dl.useState)({});(0,Dl.useEffect)(()=>{r&&m(r)},[r]);let g=()=>{let w={};return i.customer||(w.customer="Customer Et required"),i.value||(w.value="Value Et required"),i.assignee||(w.assignee="Assignee Et required"),i.closureDate||(w.closureDate="Closure Date Et required"),u(w),Object.keys(w).length===0},b=async w=>{w.preventDefault(),u({});try{if(g()){let k=await o({...i});k.success?(m({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),l?.()):u(k.errors||{})}}catch{u({submit:"An error occurred while submitting the form."})}},f=w=>{m(k=>({...k,categories:(k.categories||[]).includes(w.id)?(k.categories||[]).filter(x=>x!==w.id):[...k.categories||[],w.id]}))},v=async w=>{m({...i,customer:w});try{let k=await s(w);k.success?d(!1):u(k.errors||{})}catch{u({submit:"An error occurred while submitting the form."})}},L=w=>t?.find(k=>k.id===Number(w)),S=w=>e?.find(k=>k.id===Number(w));return(0,Et.jsxs)(Et.Fragment,{children:[(0,Et.jsxs)("form",{onSubmit:b,className:"space-Et-6",children:[(0,Et.jsx)(la,{className:"h-[60vh] pr-4",children:(0,Et.jsxs)("div",{className:"space-Et-6 px-4",children:[(0,Et.jsxs)("div",{className:"space-Et-2 space-x-2",children:[(0,Et.jsx)(ge,{htmlFor:"customer",children:"Customer"}),(0,Et.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Et.jsxs)(Qa,{value:i.customer?.id?.toString(),onValueChange:w=>m({...i,customer:S(w)}),children:[(0,Et.jsx)(wa,{children:(0,Et.jsx)(Ja,{placeholder:"Select customer"})}),(0,Et.jsx)(Na,{children:e.map(w=>(0,Et.jsx)(Ca,{value:w.id?.toString()||"",children:w.name},w.id))})]}),(0,Et.jsx)(B,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,Et.jsx)(Zl.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,Et.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,Et.jsxs)("div",{className:"space-Et-2 space-x-2",children:[(0,Et.jsx)(ge,{htmlFor:"value",children:"Value"}),(0,Et.jsx)(gt,{id:"value",type:"number",value:i.value||"",onChange:w=>m({...i,value:Number.parseFloat(w.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,Et.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,Et.jsxs)("div",{className:"space-Et-2 space-x-2",children:[(0,Et.jsx)(ge,{htmlFor:"assignee",children:"Assignee"}),(0,Et.jsxs)(Qa,{value:i.assignee?.id?.toString(),onValueChange:w=>m({...i,assignee:L(w)}),children:[(0,Et.jsx)(wa,{children:(0,Et.jsx)(Ja,{placeholder:"Select assignee"})}),(0,Et.jsx)(Na,{children:t&&t.map(w=>(0,Et.jsx)(Ca,{value:w.id?.toString()||"",children:w.name},w.id))})]}),p.assignee&&(0,Et.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,Et.jsxs)("div",{className:"space-Et-2 space-x-2",children:[(0,Et.jsx)(ge,{htmlFor:"description",children:"Description"}),(0,Et.jsx)(Za,{id:"description",value:i.description||"",onChange:w=>m({...i,description:w.target.value}),placeholder:"Enter deal description"})]}),(0,Et.jsxs)("div",{className:"space-Et-2 space-x-2",children:[(0,Et.jsx)(ge,{children:"Categories"}),(0,Et.jsx)("div",{className:"space-Et-4",children:["proposition","source","sector"].map(w=>(0,Et.jsxs)("div",{className:"space-Et-2",children:[(0,Et.jsx)("h4",{className:"text-sm font-medium",children:w.charAt(0).toUpperCase()+w.slice(1)}),(0,Et.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(k=>k.type===w).map(k=>(0,Et.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Et.jsx)(Jt,{id:k.id.toString(),checked:i.categories?.includes(k.id),onCheckedChange:()=>f(k)}),(0,Et.jsx)("label",{htmlFor:k.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:k.name})]},k.id))})]},w))})]}),(0,Et.jsxs)("div",{className:"space-Et-2 space-x-2",children:[(0,Et.jsx)(ge,{htmlFor:"closureDate",children:"Closure Date"}),(0,Et.jsx)(gt,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:w=>m({...i,closureDate:w.target.value})}),p.closureDate&&(0,Et.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,Et.jsx)(B,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,Et.jsx)(Ot,{open:c,onOpenChange:d,children:(0,Et.jsxs)(Dt,{children:[(0,Et.jsx)(Kt,{children:(0,Et.jsx)(Qt,{children:"Add New Customer"})}),(0,Et.jsx)(cl,{onSubmit:v})]})})]})}function Wr({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:l,calculateWeightedValue:i,addNewDeal:m,onAddCustomer:c,compact:d=!1}){let[p,u]=(0,Dl.useState)(!1);return(0,Et.jsxs)("div",{className:"flex flex-col w-80",children:[(0,Et.jsxs)("h2",{className:"text-xl font-semibold mb-4",children:[" ",e.charAt(0).toUpperCase()+e.slice(1)]}),m&&(0,Et.jsxs)(Ot,{open:p,onOpenChange:u,children:[(0,Et.jsx)(ls,{asChild:!0,children:(0,Et.jsxs)(B,{className:"mb-4 w-full",children:[(0,Et.jsx)(Zl.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,Et.jsxs)(Dt,{children:[(0,Et.jsx)(Kt,{children:(0,Et.jsx)(Qt,{children:"Add New Deal"})}),(0,Et.jsx)(ml,{customers:o,users:a,categories:r,onSubmit:m,onAddCustomer:c??(async()=>Promise.resolve({success:!1})),onClose:()=>u(!1)})]})]}),(0,Et.jsx)(Ks.Droppable,{droppableId:e,isDropDisabled:!1,children:g=>(0,Et.jsxs)("div",{ref:g.innerRef,...g.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((b,f)=>(0,Et.jsx)(Ks.Draggable,{draggableId:b.id.toString(),index:b.id,children:v=>(0,Et.jsx)("div",{ref:v.innerRef,...v.draggableProps,...v.dragHandleProps,children:(0,Et.jsx)(dl,{deal:b,customer:b.customer,categories:r,onClick:()=>s(b),compact:d})})},b.id.toString())),g.placeholder]})}),(0,Et.jsxs)("div",{className:"mt-4 text-sm p-3 rounded-lg shadow",children:[(0,Et.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,Et.jsxs)("span",{className:"text-green-600",children:["\xA3",l(t).toLocaleString()]})]}),(0,Et.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,Et.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var sf=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function nf({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){let[s,l]=(0,Dl.useState)(null),i=p=>(e.deals??[]).filter(u=>u.status===p),m=p=>p.reduce((u,g)=>u+(g.value||0),0),c=(p,u)=>{let g={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return p.reduce((b,f)=>b+(f.value||0)*g[u],0)},d=(0,Dl.useCallback)(p=>{let{source:u,destination:g}=p;if(!g||u.droppableId===g.droppableId&&u.index===g.index)return;let b=u.droppableId,f=g.droppableId,v=e.deals?.filter(S=>S.id===u.index)[0],L=[...e.deals??[]];v&&(v.status=f,a(v))},[a]);return(0,Et.jsx)(Ks.DragDropContext,{onDragEnd:d,children:(0,Et.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,Et.jsx)("div",{className:"flex space-x-4 pb-4",children:sf.filter(p=>p!=="Lost").map(p=>{let u=i(p);return(0,Et.jsx)(Wr,{status:p,deals:u,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:l,calculateColumnValue:m,calculateWeightedValue:c,addNewDeal:p==="Cold"?t:void 0,onAddCustomer:r},p)})}),s&&(0,Et.jsx)($r,{deal:s,users:e.users,customer:s.customer,categories:e.categories??[],onClose:()=>l(null),onSave:a,onAddComment:p=>o(s.id.toString(),p)})]})})}var lf=["firm","forecast","other"];function df({initialData:e,updateDeal:t,addComment:a}){let[o,r]=(0,Dl.useState)(null),s=c=>(e.deals??[]).filter(d=>d.gecoStatus===c).filter(d=>d.status!=="Lost").filter(d=>d.status!=="Cold"),l=c=>c.reduce((d,p)=>d+(p.value||0),0),i=(c,d)=>{let p={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return c.reduce((u,g)=>u+(g.value||0)*(p[g.status]??0),0)},m=(0,Dl.useCallback)(c=>{let{source:d,destination:p}=c;if(!p||d.droppableId===p.droppableId&&d.index===p.index)return;let u=d.droppableId,g=p.droppableId,b=e.deals?.filter(v=>v.id===d.index)[0],f=[...e.deals??[]];b&&(b.gecoStatus=g,t(b))},[t]);return(0,Et.jsx)(Ks.DragDropContext,{onDragEnd:m,children:(0,Et.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,Et.jsx)("div",{className:"flex space-x-4 pb-4",children:lf.map(c=>{let d=s(c);return(0,Et.jsx)(Wr,{status:c,deals:d,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:r,calculateColumnValue:l,calculateWeightedValue:i,compact:!0},c)})}),o&&(0,Et.jsx)($r,{deal:o,users:e.users,customer:o.customer,categories:e.categories??[],onClose:()=>r(null),onSave:t,onAddComment:c=>a(o.id.toString(),c)})]})})}var Cm=h(require("react"));function xm({taskId:e,polling:t=!0,system:a="payload"}){let[o,r]=(0,Dl.useState)(null),[s,l]=(0,Dl.useState)(!1),[i,m]=(0,Dl.useState)(null),c=async(p=!0)=>{if(e){p&&l(!0);try{let u=await fetch(`/api/tasks/${e}`);if(!u.ok)throw new Error(`Failed Zl fetch task: ${u.statusText}`);let g=await u.json();r(g)}catch(u){console.error("Error fetching task:",u),m(u instanceof Error?u:new Error("Unknown error occurred"))}finally{p&&l(!1)}}},d=()=>c(!1);return(0,Dl.useEffect)(()=>{e&&c(!0);let p=null;return e&&t&&(p=setInterval(d,5e3)),()=>{p&&clearInterval(p)}},[e,t]),{task:o,loading:s,error:i}}var cf=e=>{switch(e){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},mf=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function pl({data:e}){let{id:t,system:a,fetchLatest:o,taskData:r,error:s}=e||{};if(!t)return null;let l=null,i=!0,m=s,c=o!==void 0?o:!0;if(l=r||{id:t,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},console.log("ChatCardTask",{data:e,id:t,initialFetchLatest:o,system:a,fetchLatest:c,taskData:l,error:m}),c){let{task:g,loading:b,error:f}=xm({taskId:t,system:a});l=g,i=b,m=f}else i=!1;let d=cf(l?.status||"todo"),p=mf(l?.status||"todo"),u=l?.dateLogged||new Date().toISOString();try{let g=new Date(l?.dateLogged||"");isNaN(g.getTime())||(u=(0,rl.formatDistanceToNow)(g,{addSuffix:!0}))}catch{}return(0,Et.jsxs)(we,{className:n("w-full max-w-md shadow-md",m&&"border border-destructive"),children:[(0,Et.jsxs)($e,{className:"pb-2",children:[(0,Et.jsxs)("div",{className:"flex justify-between items-start",children:[(0,Et.jsx)(We,{className:"text-lg font-semibold",children:i?"Loading...":l?.name||"Task"}),(0,Et.jsx)(xt,{className:`${d}`,children:p})]}),l?.project&&(0,Et.jsxs)(Nn,{className:"text-sm text-gray-500",children:["Project: ",l.project.name]})]}),(0,Et.jsx)(Te,{className:"pb-2",children:i?(0,Et.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):m?(0,Et.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,Et.jsx)("p",{className:"text-sm text-foreground",children:l?.description||"......."})}),(0,Et.jsx)(Cn,{className:"pt-2 flex items-center justify-between",children:(0,Et.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Et.jsx)(Zl.Clock,{className:"h-3 w-3 mr-1"}),(0,Et.jsxs)("span",{children:["Created ",u]}),(0,Et.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,Et.jsxs)("span",{children:["Task #",t]})]})})]})}var pf={task:pl},uf=`
|
|
15
|
+
`,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,Bt.jsx)("div",{className:"relative Bt-10 flex h-full flex-col",children:(0,Bt.jsxs)("div",{className:"mt-auto divide-Bt md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,Bt.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,Bt.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,Bt.jsx)("p",{className:"mt-[13px] overflow-hidden pt-[11px] text-body",children:(0,Bt.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 Cn=v(require("next/image")),Rs=v(require("path"));function eu(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function tu(e){return e.startsWith("http")}function au(e,t){let a=e;if(eu(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(tu(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=Rs.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=Rs.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=`/${Rs.default.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function ou({src:e,alt:t}){let[a,o]=(0,Rl.useState)(!1),[r,s]=(0,Rl.useState)(!1),[l,i]=(0,Rl.useState)({width:0,height:0}),m=()=>{r&&o(!0)},c=()=>{o(!1)},d=p=>{let{naturalWidth:u,naturalHeight:g}=p.target;i({width:u,height:g}),s(u>300||g>300)};return(0,Bt.jsxs)(Bt.Fragment,{children:[(0,Bt.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${l.height>300?"h-[300px]":`h-[${l.height}px]`}`,onClick:m,children:(0,Bt.jsx)(Cn.default,{sizes:"100vw",height:l.height,width:l.width,src:e,alt:t||"",onLoad:d,unoptimized:!0,className:"object-contain max-w-full max-h-full"})}),(0,Bt.jsx)(ia,{open:a,onOpenChange:o,children:(0,Bt.jsxs)(Yt,{className:"flex flex-col items-center justify-center",children:[(0,Bt.jsxs)(ha,{className:"flex w-full justify-end",children:[(0,Bt.jsx)(ya,{className:"hidden",children:t}),(0,Bt.jsx)(ls,{})]}),(0,Bt.jsx)("div",{className:"flex items-center justify-center",children:(0,Bt.jsx)(Cn.default,{height:l.height,width:l.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function rc({props:e,baseContext:t}){let{src:a}=e;return a=au(a,t),(0,Bt.jsx)(ou,{src:a,alt:e.alt})}var sc=v(require("next/link"));function Ke({children:e,href:t,openNewTab:a,...o}){return(0,Bt.jsx)(sc.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function ru(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function su({icon:e,title:t,description:a,slug:o}){return(0,Bt.jsxs)("article",{className:n(["group/service bg-card shadow-3 transition-transform duration-350 dark:shadow-none","relative Bt-1 block h-full space-Bt-6 overflow-hidden rounded-5 p-6 md:space-Bt-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,Bt.jsxs)("div",{className:"flex items-center text-foreground gap-5",children:[(0,Bt.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:ru(e)?(0,Bt.jsx)(Ze,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,Bt.jsx)("h2",{className:"text-md font-medium leading-[1.25] md:text-lg",children:o?(0,Bt.jsx)(Ke,{href:o,children:t}):t})]}),(0,Bt.jsx)("p",{className:"text-foreground",children:a}),o&&(0,Bt.jsx)(B,{asChild:!0,className:n(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","before:hidden after:hidden"]),children:(0,Bt.jsxs)(Ke,{href:o,children:[(0,Bt.jsx)("span",{children:"Read More"}),(0,Bt.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,Bt.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Bt.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,Bt.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"})]})}function Pn({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,Bt.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,Bt.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,Bt.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),(0,Bt.jsx)("p",{children:t})]}),(0,Bt.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,Bt.jsxs)("div",{className:"flex flex-col justify-stretch gap-x-14 gap-Bt-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,Bt.jsx)("ul",{"aria-label":"pricing point list",className:"grid w-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:a.map((l,i)=>(0,Bt.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,Bt.jsx)("span",{className:"text-accent pt-1",children:(0,Bt.jsx)(zd.FaCircleCheck,{})}),(0,Bt.jsx)("span",{children:l})]},i))}),(0,Bt.jsxs)("p",{className:"font-secondary ml-auto text-xl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,(0,Bt.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:r&&r})]}),s&&(0,Bt.jsx)("div",{className:"flex-none mr-0 sm:ml-auto",children:(0,Bt.jsx)(B,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,Bt.jsxs)(Ke,{href:s.href,openNewTab:s.openNewTab,children:[(0,Bt.jsx)("span",{className:"relative Bt-1",children:s.label}),(0,Bt.jsx)("span",{className:"relative Bt-1 pl-2",children:(0,Bt.jsx)(zd.FaAnglesRight,{})})]})})})]})})]})}function iu({className:e,badge:t,title:a,subtitle:o}){return(0,Bt.jsxs)("div",{className:n("relative overflow-hidden rounded-xl bg-gradient-Ql-br from-[#A42368] Ql-[#A42368] m-6 px-6 py-16 md:px-12 md:py-24",e),children:[(0,Bt.jsxs)("div",{className:"relative Bt-10 mx-auto max-w-4xl text-center",children:[t&&(0,Bt.jsx)("div",{className:"mb-4",children:(0,Bt.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,Bt.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,Bt.jsx)("p",{className:"mt-6 text-base text-gray-300 sm:text-lg md:text-xl",children:o})]}),(0,Bt.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 w-full -translate-x-1/2",style:{background:"radial-gradient(50% 50% Bt 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,Bt.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 w-full -translate-x-1/2",children:(0,Bt.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,Bt.jsx)("path",{d:"Bt-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}function nc(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function nu({variant:e="outline",className:t,icon:a,iconSize:o="large",width:r="auto",order:s=0,heading:l,subheading:i,content:m,statistic:c,buttonText:d,buttonHref:p}){let u={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-Ql-br from-[#A42368] Ql-[#4A1030]",radial:"bg-gradient-Ql-br from-[#4A1030] Ql-[#2D0A1D] relative overflow-hidden",light:""},g={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,Bt.jsxs)("div",{className:n("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",u[e],e==="outline"?"text-gray-900":"text-white",t,g[r],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${s+1}00`),children:[(0,Bt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Bt.jsx)(lu,{icon:a,heading:l,variant:e,iconSize:o})}),c&&(0,Bt.jsx)("div",{className:"mb-6",children:(0,Bt.jsx)("div",{className:n("text-4xl text-wrap font-bold leading-none overflow-hidden",e==="outline"||e==="light"?"text-primary":"text-white"),children:c})}),i&&(0,Bt.jsx)("div",{className:"mb-4 text-xl md:text-2xl font-light",children:i}),m&&typeof m=="object"&&(0,Bt.jsx)("div",{className:n("space-Bt-6"),children:(0,Bt.jsx)(q,{enableGutter:!1,content:m,enableProse:!1,className:n(e==="outline"||e==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),m&&typeof m=="string"&&(0,Bt.jsx)("div",{className:n("space-Bt-6",e==="outline"||e==="light"?"text-gray-900":"text-gray-100"),children:m}),d&&(0,Bt.jsx)("div",{className:"mt-auto pt-6 flex items-center justify-center",children:(0,Bt.jsx)(B,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:(0,Bt.jsx)("a",{href:p,children:d})})}),e==="radial"&&(0,Bt.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 lu=({icon:e,heading:t,variant:a,iconSize:o})=>e&&o==="small"?(0,Bt.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[nc(e)&&(0,Bt.jsx)("div",{className:n("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"mt-2":""),children:(0,Bt.jsx)(Ze,{type:e.type,iconName:e.iconName,size:"2x"})}),(0,Bt.jsx)("div",{className:n("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t})]}):e?(0,Bt.jsxs)("div",{className:"flex flex-col gap-4",children:[nc(e)&&(0,Bt.jsx)("div",{className:n("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,Bt.jsx)(Ze,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Bt.jsx)("h3",{className:n("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,Bt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Bt.jsx)("div",{className:n("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var lc=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,Bt.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function du({icon:e,title:t,body:a,color:o="secondary"}){return(0,Bt.jsx)(Bt.Fragment,{children:(0,Bt.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,Bt.jsx)("div",{className:"px-[2%] flex items-center",children:(0,Bt.jsx)("div",{className:"w-12 h-12",children:(0,Bt.jsx)(Ze,{type:e.type,iconName:e.name})})}),(0,Bt.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&(0,Bt.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}var cc=v(require("next/image"));function cu(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,Bt.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,Bt.jsx)(cc.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,Bt.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,Bt.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,Bt.jsxs)("a",{href:t,children:[(0,Bt.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,Bt.jsx)("div",{className:"mt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var mu=(e,t)=>`from-brand-${e} Ql-brand-${t}`;function pu({...e}){let t=mu(e.brandFrom||"one",e.brandTo||"two");return(0,Bt.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-Ql-r ${t}`,children:[(0,Bt.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,Bt.jsxs)("a",{href:e.url,children:[(0,Bt.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Bt.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Bt.jsx)("circle",{r:1,cx:1,cy:1})}),(0,Bt.jsx)("span",{children:e.message&&e.message})]}):(0,Bt.jsxs)(Bt.Fragment,{children:[(0,Bt.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Bt.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Bt.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,Bt.jsx)("div",{className:"flex flex-1 justify-end"})]})}var Lr=v(require("react")),uu={Architecture:(0,Bt.jsx)(Ql.DraftingCompass,{className:"h-5 w-5 text-blue-600"}),Engineering:(0,Bt.jsx)(Ql.Code,{className:"h-5 w-5 text-green-600"}),Development:(0,Bt.jsx)(Ql.Code,{className:"h-5 w-5 text-purple-600"}),Delivery:(0,Bt.jsx)(Ql.GanttChart,{className:"h-5 w-5 text-red-600"})},fu=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,Bt.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,Bt.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,Bt.jsx)("button",{onClick:a,className:"mr-2","aria-label":o?"Collapse":"Expand",children:o?(0,Bt.jsx)(Ql.ChevronDown,{className:"h-4 w-4"}):(0,Bt.jsx)(Ql.ChevronRight,{className:"h-4 w-4"})}),(0,Bt.jsx)("div",{className:"w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,Bt.jsx)(Ql.Users,{className:"h-6 w-6 text-gray-500"})}),(0,Bt.jsxs)("div",{children:[(0,Bt.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,Bt.jsxs)("div",{className:"flex items-center mt-1",children:[uu[e.discipline],(0,Bt.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,Bt.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},mc=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,Lr.useState)(t<1),s=()=>r(!o),l=d=>d.name.toLowerCase().includes(a.toLowerCase())||d.discipline.toLowerCase().includes(a.toLowerCase())||d.grade.toLowerCase().includes(a.toLowerCase()),i=d=>l(d)||d.reports.some(i),m=a===""||i(e),c=l(e);return Lr.default.useEffect(()=>{a!==""&&i(e)&&r(!0)},[a,e]),m?(0,Bt.jsxs)("div",{children:[(0,Bt.jsx)(fu,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:c}),o&&e.reports.map((d,p)=>(0,Bt.jsx)(mc,{person:d,level:t+1,searchTerm:a},p))]}):null};function gu(){let[e,t]=(0,Lr.useState)("");return(0,Bt.jsxs)("div",{className:"max-w-5xl mx-auto p-6",children:[(0,Bt.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,Bt.jsxs)("div",{className:"mb-4 relative",children:[(0,Bt.jsx)("input",{type:"text",placeholder:"Search by name, discipline, Mt 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,Bt.jsx)(Ql.Search,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),(0,Bt.jsx)("div",{className:"space-Bt-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,Bt.jsx)(mc,{person:o,level:0,searchTerm:e},r))})]})}function bu({teamMembers:e={leadership:[{role:"CTO oversight"},{role:"Senior Delivery Lead",isFTE:!0}],core:[{role:"Lead Cloud Architect",isFTE:!0},{role:"Senior Business Analyst",isFTE:!0}],sme:["Security Architecture","Engineering","Data Architecture"]},outputs:t=[{title:"Discovery Report",description:"A detailed report summarising the findings from the initial assessment, including insights from stakeholder interviews and document reviews."},{title:"Cloud and Data Estate Assessment Report",description:"A comprehensive analysis of the current cloud and data infrastructure, highlighting strengths, weaknesses, and opportunities for improvement."},{title:"Gap Analysis Report",description:"Identification of gaps between current capabilities and the requirements for adopting GenAI, along with a detailed analysis of these gaps."},{title:"Recommendations Report",description:"A set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"A phased roadmap outlining the steps Ql implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"A detailed plan outlining potential risks and mitigation strategies Ql 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 Ql improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies Ql 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 Ql leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,Bt.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,Bt.jsxs)("div",{className:"lg:col-span-1 space-Bt-6 flex flex-col",children:[(0,Bt.jsxs)(we,{className:"flex-grow",children:[(0,Bt.jsx)(Ge,{className:"bg-primary text-primary-foreground",children:(0,Bt.jsxs)($e,{className:"flex items-center gap-2",children:[(0,Bt.jsx)(Ql.Users,{className:"h-5 w-5"}),"Team"]})}),(0,Bt.jsxs)(Te,{className:"p-6",children:[(0,Bt.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"A small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,Bt.jsxs)("div",{className:"space-Bt-6",children:[(0,Bt.jsx)("div",{className:"space-Bt-2",children:e.leadership.map((r,s)=>(0,Bt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Bt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Bt.jsx)(Ql.User,{className:"h-4 w-4 text-muted-foreground"}),(0,Bt.jsx)("span",{children:r.role})]}),r.isFTE&&(0,Bt.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,Bt.jsx)("div",{className:"space-Bt-2",children:e.core.map((r,s)=>(0,Bt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Bt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Bt.jsx)(Ql.User,{className:"h-4 w-4 text-muted-foreground"}),(0,Bt.jsx)("span",{children:r.role}),r.count&&(0,Bt.jsxs)("span",{children:["(",r.count,"x)"]})]}),r.isFTE&&(0,Bt.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,Bt.jsxs)("div",{children:[(0,Bt.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,Bt.jsx)(Ql.Users2,{className:"h-4 w-4 text-muted-foreground"}),(0,Bt.jsx)("span",{children:"SME input:"})]}),(0,Bt.jsx)("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,Bt.jsxs)(we,{children:[(0,Bt.jsx)(Ge,{className:"bg-primary text-primary-foreground",children:(0,Bt.jsxs)($e,{className:"flex items-center gap-2",children:[(0,Bt.jsx)(Ql.PoundSterling,{className:"h-5 w-5"}),"Fee"]})}),(0,Bt.jsx)(Te,{className:"p-6",children:(0,Bt.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,Bt.jsxs)(we,{className:"lg:col-span-1 flex flex-col",children:[(0,Bt.jsx)(Ge,{className:"bg-primary text-primary-foreground",children:(0,Bt.jsxs)($e,{className:"flex items-center gap-2",children:[(0,Bt.jsx)(Ql.FileText,{className:"h-5 w-5"}),"Outputs"]})}),(0,Bt.jsxs)(Te,{className:"p-6 flex-grow overflow-auto",children:[(0,Bt.jsx)("ol",{className:"list-decimal list-inside space-Bt-4",children:t.map((r,s)=>(0,Bt.jsxs)("li",{className:"text-sm",children:[(0,Bt.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,Bt.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,Bt.jsx)("p",{className:"mt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,Bt.jsxs)(we,{className:"lg:col-span-1 flex flex-col",children:[(0,Bt.jsx)(Ge,{className:"bg-primary text-primary-foreground",children:(0,Bt.jsxs)($e,{className:"flex items-center gap-2",children:[(0,Bt.jsx)(Ql.Lightbulb,{className:"h-5 w-5"}),"Benefits"]})}),(0,Bt.jsx)(Te,{className:"p-6 flex-grow overflow-auto",children:(0,Bt.jsx)("ul",{className:"space-Bt-4",children:a.map((r,s)=>(0,Bt.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,Bt.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,Bt.jsx)("span",{children:r})]},s))})})]})]})}function vu(){return(0,Bt.jsx)("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,Bt.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,Bt.jsxs)("div",{className:"space-Bt-4 bg-primary p-3 rounded-lg",children:[(0,Bt.jsxs)("div",{className:"flex items-center gap-2 relative Bt-10",children:[(0,Bt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Bt.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,Bt.jsx)(Ql.BarChart3,{className:"w-8 h-8"})]}),(0,Bt.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,Bt.jsx)("p",{className:"text-secondary text-sm",children:"Bt excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,Bt.jsxs)("ul",{className:"text-sm",children:[(0,Bt.jsx)("li",{children:"Strategy definition"}),(0,Bt.jsx)("li",{children:"Programme leadership"}),(0,Bt.jsx)("li",{children:"Detailed planning"}),(0,Bt.jsx)("li",{children:"\u2022 Financial control"}),(0,Bt.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,Bt.jsxs)("div",{className:"space-Bt-4",children:[(0,Bt.jsxs)("div",{className:"flex items-center gap-2 relative Bt-10",children:[(0,Bt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Bt.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,Bt.jsx)(Ql.CogIcon,{className:"w-8 h-8"})]}),(0,Bt.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,Bt.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,Bt.jsx)("p",{className:"text-sm",children:"Bt deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,Bt.jsxs)("div",{className:"space-Bt-4",children:[(0,Bt.jsxs)("div",{className:"flex items-center gap-2 relative Bt-10",children:[(0,Bt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Bt.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,Bt.jsx)(Ql.Building2,{className:"w-8 h-8"})]}),(0,Bt.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,Bt.jsx)("p",{className:"text-sky-200 text-sm",children:"Bt understand how Ql navigate public sector and financial services regulation and how Ql deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,Bt.jsx)("p",{className:"text-sm",children:"Bt have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,Bt.jsxs)("div",{className:"space-Bt-4",children:[(0,Bt.jsxs)("div",{className:"flex items-center gap-2 relative Bt-10",children:[(0,Bt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Bt.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,Bt.jsx)(Ql.BadgeCheck,{className:"w-8 h-8"})]}),(0,Bt.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,Bt.jsx)("p",{className:"text-sky-200 text-sm",children:"Bt have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,Bt.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 Br=e=>{let{columns:t,theme:a}=e,o={full:"12",half:"6",oneThird:"4",twoThirds:"8"},r={none:"",line:"border border-primary p-4 rounded-lg"},s=i=>{if(i.type&&i.type==="block"&&i.fields&&(i.fields.blockType==="imageBlock"||i.fields.blockType==="mediaBlock"))return!0;if(i.root&&i.root.children){for(let m of i.root.children)if(s(m))return!0}if(i.children){for(let m of i.children)if(s(m))return!0}return!1},l=(i,m,c)=>{if(m==="none"||c==="full")return{processedRichText:i,heading:null};let d=i,p=null;return i&&i.root&&i.root.children&&i.root.children[0].tag==="h2"&&(d={...i,root:{...i.root,children:i.root.children.slice(1)}},p=i.root.children[0]),{processedRichText:d,heading:p}};return(0,Bt.jsx)("div",{className:"my-6",children:(0,Bt.jsx)("div",{className:n("grid grid-cols-4 lg:grid-cols-12 gap-Bt-8",a?.settings?.box?"gap-x-8":"gap-x-16"),children:t&&t.length>0&&t.map((i,m)=>{let{enableLink:c,link:d,richText:p,size:u}=i,{processedRichText:g,heading:b}=l(p,a?.settings?.box||"none",u||"full");return(0,Bt.jsxs)("div",{className:n(`col-span-4 lg:col-span-${o[u]}`,{"md:col-span-2":u!=="full"},r[u!=="full"&&!s(p)&&a?.settings?.box||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${m+1}00`),children:[b&&(0,Bt.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:b.children[0].text}),g&&(0,Bt.jsx)(q,{content:g,enableGutter:!1,className:"rich-text"}),c&&(0,Bt.jsx)(Kt,{...d})]},m)})})})};var As=v(require("next/image"));function hu({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,Bt.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 pt-[calc(80vw*0.5)]",children:[(0,Bt.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:(0,Bt.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,Bt.jsx)(As.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,Bt.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[o&&(0,Bt.jsx)("div",{className:"h-16 w-32 md:h-24 md:w-48",children:(0,Bt.jsx)(As.default,{src:o,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})}),r&&(0,Bt.jsx)("div",{className:"h-10 w-20 md:h-12 md:w-24",children:(0,Bt.jsx)(As.default,{src:r,alt:"Customer logo",className:"h-full w-full object-contain",width:96,height:48})})]}),(0,Bt.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,Bt.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,Bt.jsx)("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var Dn=v(require("next/image"));var kn=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,Bt.jsx)(yu,{blocks:a.layout}):(0,Bt.jsx)(Bt.Fragment,{})},pc={content:Br,cta:yo,mediaBlock:ka,imageBlock:ka,features:wo},yu=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Bt.jsx)(Bt.Fragment,{children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in pc){let i=pc[s];if(i)return(0,Bt.jsxs)("div",{className:"py-6 relative",children:[(0,Bt.jsx)(Ms,{block:o,index:r}),(0,Bt.jsx)("div",{className:n(l?.settings?.theme==="dark"?"dark":l?.settings?.theme==="green"?"green":""),children:(0,Bt.jsx)(i,{...o})})]},r)}return null})}):null};var uc=v(require("react")),Xo=v(require("@radix-ui/react-collapsible"));var fc=({title:e,richText:t})=>{let[a,o]=uc.default.useState(!1);return(0,Bt.jsx)("div",{className:"border rounded-lg overflow-hidden",children:(0,Bt.jsxs)(Xo.Root,{className:n("w-full"),open:a,onOpenChange:o,children:[(0,Bt.jsxs)(Xo.Trigger,{className:"flex w-full items-center justify-between bg-white px-4 py-3 text-left hover:bg-gray-50",children:[(0,Bt.jsx)("h2",{className:"text-lg font-medium",children:e}),a?(0,Bt.jsx)(Xr.ChevronUpIcon,{className:"h-6 w-6"}):(0,Bt.jsx)(Xr.ChevronDownIcon,{className:"h-6 w-6"})]}),(0,Bt.jsx)(Xo.Content,{className:"overflow-hidden data-[state=closed]:animate-collapse data-[state=open]:animate-expand border-t",children:(0,Bt.jsx)("div",{className:"px-4 py-3 bg-white",children:(0,Bt.jsx)(q,{content:t||{},enableGutter:!1})})})]})})};var Ls={content:Br,cta:yo,mediaBlock:ka,collapsibleArea:fc,imageBlock:ka,features:wo,reusableContentBlock:kn},oo=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Bt.jsx)("section",{_l:"render-blocks",className:n(e.fill?"h-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in Ls){let i=Ls[s];if(s==="reusableContentBlock")return(0,Bt.jsx)(Rl.Fragment,{children:(0,Bt.jsx)(oo,{blocks:o.reusableContent.layout})},r);if(i)return(0,Bt.jsxs)("div",{className:n("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[(0,Bt.jsx)(Ms,{block:o,index:r}),(0,Bt.jsx)("div",{className:n("container h-full relative",l?.settings?.theme||"dark"),children:(0,Bt.jsx)(i,{...o})})]},r)}return null})}):null},Ms=e=>{if(!("theme"in e.block))return(0,Bt.jsx)("div",{className:n("absolute inset-0 w-screen h-full dark bg-background")});let t=e.block?.theme;if(t.settings.background==="image"){let a={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,Bt.jsxs)("div",{className:n("absolute inset-0 w-full h-full bg-background",t.settings.theme||"dark"),children:[(0,Bt.jsx)(Dn.default,{src:t.settings?.image?.url||"/placeholder.svg",alt:t.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,Bt.jsx)("div",{className:"absolute inset-0",style:{background:a.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,Bt.jsx)("div",{className:n("absolute inset-0 w-screen h-full bg-background",t.settings.theme||"dark")})},xu=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Bt.jsx)("main",{_l:"content-blocks",className:n(e.fill?"h-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in Ls){let i=Ls[s];if(s==="reusableContentBlock")return(0,Bt.jsx)(Rl.Fragment,{children:(0,Bt.jsx)(oo,{blocks:o.reusableContent.layout})},r);if(i)return(0,Bt.jsx)(gc,{block:o,allBlocks:t,index:r,children:(0,Bt.jsx)(i,{...o})})}return null})}):null},gc=e=>{if(e.index===0)return(0,Bt.jsxs)("section",{className:"relative flex w-full",children:[(0,Bt.jsx)("div",{className:n("absolute inset-0 w-screen h-full light bg-background")}),(0,Bt.jsx)("div",{className:n("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let t=m=>m%2===0?"light":"dark",a=({index:m,allBlocks:c})=>m===1?(0,Bt.jsx)(Sn,{position:"left"}):r(m,c)==="dark"&&l(m,c)==="light"?(0,Bt.jsx)(Rn,{position:"left"}):r(m,c)==="light"&&l(m,c)==="dark"?(0,Bt.jsx)(Sn,{position:"left"}):null,o=({index:m,allBlocks:c})=>s(m,c)==="light"&&l(m,c)==="dark"?(0,Bt.jsx)(Rn,{position:"left"}):null,r=(m,c)=>{if(m===1)return"light";let d=c[m-1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},s=(m,c)=>{if(m===c.length-1)return"dark";if(m===0)return"light";let d=c[m+1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},l=(m,c)=>{if(m===c.length-1)return"dark";let d=c[m];return d.theme&&d.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return r(e.index,e.allBlocks)==="dark"?(0,Bt.jsxs)("section",{_l:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[(0,Bt.jsx)("div",{className:n("absolute inset-0 w-screen dark bg-background")}),(0,Bt.jsx)("div",{className:n("container relative","dark bg-background py-1"),children:e.children})]}):(0,Bt.jsxs)("section",{_l:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[(0,Bt.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,Bt.jsx)("div",{className:n("absolute inset-0 w-screen")}),(0,Bt.jsx)("div",{className:"bg-black",children:(0,Bt.jsx)("div",{className:n("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||r(e.index,e.allBlocks)===l(e.index,e.allBlocks)){let m=l(e.index,e.allBlocks);return(0,Bt.jsxs)("section",{_l:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[(0,Bt.jsx)("div",{className:n("absolute inset-0 w-screen bg-background",m)}),(0,Bt.jsx)("div",{className:n("container relative bg-background py-1",m,m==="light"&&"py-12"),children:e.children})]})}if(r(e.index,e.allBlocks)!==l(e.index,e.allBlocks)){let m=l(e.index,e.allBlocks);return(0,Bt.jsxs)("section",{_l:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[(0,Bt.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,Bt.jsx)("div",{className:n("absolute inset-0 w-screen bg-background",m)}),(0,Bt.jsx)("div",{className:n("container relative bg-background min-h-[22em] content-center py-1",m,m==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return(0,Bt.jsxs)("div",{className:n("container h-full relative","dark"),children:[(0,Bt.jsx)("div",{className:n("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let i=e.block?.theme;if(i.settings.background==="image"){let m={imagePosition:i.settings.imagePosition||"left",overlay:i.settings.overlay!==void 0?i.settings.overlay:!0};return(0,Bt.jsxs)("div",{className:n("absolute inset-0 w-full h-full bg-background",i.settings.theme||"dark"),children:[(0,Bt.jsx)(Dn.default,{src:i.settings?.image?.url||"/placeholder.svg",alt:i.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),i.settings.overlay&&(0,Bt.jsx)("div",{className:"absolute inset-0",style:{background:m.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,Bt.jsx)("div",{className:n("absolute inset-0 w-screen h-full bg-background",i.settings.theme||"dark")})},Sn=({position:e})=>(0,Bt.jsx)("div",{className:"w-full aspect-[1920/360] Bt-20 relative -top-[2px] bg-white",children:(0,Bt.jsx)("svg",{_l:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:n("w-full block overflow-hidden"),children:(0,Bt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),Rn=({position:e})=>(0,Bt.jsx)("div",{className:"w-full relative Bt-20 aspect-[1920/332] overflow-hidden ",children:(0,Bt.jsxs)("svg",{_l:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:n("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[(0,Bt.jsx)("defs",{children:(0,Bt.jsxs)("mask",{_l:"mask",children:[(0,Bt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Bt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Bt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});var yc=v(require("clsx"));var bc=require("next/navigation");function wu({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,bc.useRouter)(),r=(0,Rl.useRef)(null),s=(0,Rl.useRef)(null),l=(0,Rl.useRef)(0),i=(0,Rl.useRef)(!1),m=(0,Rl.useRef)(0),c=(0,Rl.useCallback)(p=>{if(p.target){let u=p.target,g=+new Date,b=u?.closest("a");m.current=p.button,b?i.current=!0:(i.current=!1,l.current=g)}},[o,r,s,l]),d=(0,Rl.useCallback)(p=>{if(s.current?.href){let g=+new Date-l.current;if(s.current?.href&&g<=250&&!i.current&&m.current===0&&!p.ctrlKey)if(e){let b=t?"_blank":"_self";window.open(s.current.href,b)}else o.push(s.current.href,{scroll:a})}},[o,r,s,l]);return(0,Rl.useEffect)(()=>{let p=r.current;return p&&(p.addEventListener("mousedown",c),p.addEventListener("mouseup",d)),()=>{p&&p&&(p?.removeEventListener("mousedown",c),p?.removeEventListener("mouseup",d))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var vc=wu;var hc=v(require("next/link"));var Er=e=>{let{card:t,link:a}=vc({}),{className:o,doc:r,relationTo:s,showCategories:l,title:i}=e,{slug:m,categories:c,meta:d,title:p}=r||{},{description:u,image:g}=d||{},b=c&&Array.isArray(c)&&c.length>0,f=i||p,h=u?.replace(/\s/g," "),L=`/${s}/${m}`;return(0,Bt.jsxs)("article",{className:n("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,Bt.jsxs)("div",{className:"relative w-full ",children:[!g&&(0,Bt.jsx)("div",{className:"",children:"No image"}),g&&typeof g!="string"&&(0,Bt.jsx)(Jt,{resource:g,size:"33vw"})]}),(0,Bt.jsxs)("div",{className:"p-4",children:[l&&b&&(0,Bt.jsx)("div",{className:"uppercase text-sm mb-4",children:l&&b&&(0,Bt.jsx)("div",{children:c?.map((S,w)=>{if(typeof S=="object"){let{title:k}=S,x=k||"Untitled category",D=w===c.length-1;return(0,Bt.jsxs)(Rl.Fragment,{children:[x,!D&&(0,Bt.jsx)(Rl.Fragment,{children:", \xA0"})]},w)}return null})})}),f&&(0,Bt.jsx)("div",{className:"prose",children:(0,Bt.jsx)("h3",{children:(0,Bt.jsx)(hc.default,{className:"not-prose",href:L,ref:a.ref,children:f})})}),u&&(0,Bt.jsx)("div",{className:"mt-2",children:u&&(0,Bt.jsx)("p",{children:h})})]})]})};var Nu=e=>{let{className:t,docs:a,introContent:o}=e;return(0,Bt.jsxs)("div",{className:(0,yc.default)("container",t),children:[o&&(0,Bt.jsx)(q,{content:o,enableGutter:!1}),(0,Bt.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:a?.map((r,s)=>typeof r=="string"?null:(0,Bt.jsx)(Er,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var Qo=require("framer-motion");var oy=require("pagedjs");var Cu=e=>{let{posts:t}=e;return(0,Bt.jsx)("div",{className:n("container"),children:(0,Bt.jsx)("div",{children:(0,Bt.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-Bt-4 gap-x-4 lg:gap-Bt-8 lg:gap-x-8 xl:gap-x-8",children:t?.map((a,o)=>typeof a=="object"&&a!==null?(0,Bt.jsx)("div",{className:"col-span-4",children:(0,Bt.jsx)(Er,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var xc=v(require("clsx")),wc=v(require("next/image")),Pu=e=>{let{loading:t,priority:a,className:o}=e;return(0,Bt.jsx)(wc.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,xc.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 ku={plural:"Docs",singular:"Doc"},Su={posts:{plural:"Posts",singular:"Post"}},Ru=e=>{let{className:t,collection:a,collectionLabels:o,currentPage:r,limit:s,totalDocs:l}=e,i=(r?r-1:1)*(s||1)+1;l&&i>l&&(i=0);let m=(r||1)*(s||1);l&&m>l&&(m=l);let{plural:c,singular:d}=o||Su[a||""]||ku||{};return(0,Bt.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof l>"u"||l===0)&&"Search produced Ql results.",typeof l<"u"&&l>0&&`Showing ${i}${i>0?` - ${m}`:""} of ${l} ${l>1?c:d}`]})};var Mn=v(require("react")),In=({className:e,...t})=>(0,Bt.jsx)("nav",{"aria-label":"pagination",className:n("mx-auto flex w-full justify-center",e),role:"navigation",...t});In.displayName="Pagination";var Ln=Mn.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)("ul",{className:n("flex flex-row items-center gap-1",e),ref:a,...t}));Ln.displayName="PaginationContent";var Da=Mn.forwardRef(({className:e,...t},a)=>(0,Bt.jsx)("li",{className:n("",e),ref:a,...t}));Da.displayName="PaginationItem";var Po=({className:e,isActive:t,size:a="icon",...o})=>(0,Bt.jsx)("button",{"aria-current":t?"page":void 0,className:n(Ga({size:a,variant:t?"outline":"ghost"}),e),...o});Po.displayName="PaginationLink";var Bn=({className:e,...t})=>(0,Bt.jsxs)(Po,{"aria-label":"Go Ql previous page",className:n("gap-1 pl-2.5",e),size:"default",...t,children:[(0,Bt.jsx)(Ql.ChevronLeft,{className:"h-4 w-4"}),(0,Bt.jsx)("span",{children:"Previous"})]});Bn.displayName="PaginationPrevious";var En=({className:e,...t})=>(0,Bt.jsxs)(Po,{"aria-label":"Go Ql next page",className:n("gap-1 pr-2.5",e),size:"default",...t,children:[(0,Bt.jsx)("span",{children:"Next"}),(0,Bt.jsx)(Ql.ChevronRight,{className:"h-4 w-4"})]});En.displayName="PaginationNext";var Bs=({className:e,...t})=>(0,Bt.jsxs)("span",{"aria-hidden":!0,className:n("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,Bt.jsx)(Ql.MoreHorizontal,{className:"h-4 w-4"}),(0,Bt.jsx)("span",{className:"Rl-only",children:"More pages"})]});Bs.displayName="PaginationEllipsis";var Tu=e=>{let t=(0,bc.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,l=o>1,i=o-1>1,m=o+1<r;return(0,Bt.jsx)("div",{className:n("my-12",a),children:(0,Bt.jsx)(In,{children:(0,Bt.jsxs)(Ln,{children:[(0,Bt.jsx)(Da,{children:(0,Bt.jsx)(Bn,{disabled:!l,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),i&&(0,Bt.jsx)(Da,{children:(0,Bt.jsx)(Bs,{})}),l&&(0,Bt.jsx)(Da,{children:(0,Bt.jsx)(Po,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,Bt.jsx)(Da,{children:(0,Bt.jsx)(Po,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,Bt.jsx)(Da,{children:(0,Bt.jsx)(Po,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),m&&(0,Bt.jsx)(Da,{children:(0,Bt.jsx)(Bs,{})}),(0,Bt.jsx)(Da,{children:(0,Bt.jsx)(En,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var zn=v(require("next/image")),kc=({logoImage:e})=>(0,Bt.jsxs)("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
|
|
16
|
+
dark bg-background text-primary`,children:[(0,Bt.jsxs)("div",{className:"flex px-6 items-center space-x-2",children:[e&&(0,Bt.jsx)("img",{src:e.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Bt.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,Bt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),zr=({title:e})=>(0,Bt.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,Bt.jsx)("div",{className:"container",children:(0,Bt.jsx)("span",{className:"container text-4xl px-6",children:e})})}),Hr=e=>{let{title:t,hero:a,logoImage:o}=e;return(0,Bt.jsxs)("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,Bt.jsx)("div",{className:"absolute inset-0",children:(0,Bt.jsx)(zn.default,{src:a.media&&a.media.url?a.media.url:"/hero.png",alt:"Background",width:a.media&&a.media.width?a.media.width??1920:1920,height:a.media&&a.media.height?a.media.height??1080:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),(0,Bt.jsx)("div",{className:"absolute left-16 Bt-50 top-4 flex flex-col items-start gap-4",children:o&&(0,Bt.jsx)("div",{className:"h-24",children:(0,Bt.jsx)(zn.default,{src:o.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),(0,Bt.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,Bt.jsxs)("div",{className:"relative pl-24 Bt-10 max-w-3xl",children:[(0,Bt.jsx)("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:t}),a.richText&&(0,Bt.jsx)(q,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var Es=e=>{let[t,a]=(0,Rl.useState)(0),{blocks:o,hero:r,logoImage:s}=e,l=o&&Array.isArray(o)&&o.length>0,m=[{_l:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o],c=f=>{a(f)},d=()=>{a(f=>(f+1)%m.length)},p=()=>{a(f=>(f-1+m.length)%m.length)},g=(0,Rl.useCallback)(((f,h)=>{let L;return(...S)=>{clearTimeout(L),L=setTimeout(()=>f(...S),h)}})(f=>{f.deltaY>0?d():p()},300),[]),b=f=>{f.key==="ArrowDown"?d():f.key==="ArrowUp"&&p()};return(0,Rl.useEffect)(()=>(window.addEventListener("wheel",g),window.addEventListener("keydown",b),()=>{window.removeEventListener("wheel",g),window.removeEventListener("keydown",b)}),[]),(0,Bt.jsxs)("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[(0,Bt.jsx)("div",{className:"fixed left-0 top-0 flex h-screen w-9 Bt-10 flex-col items-center justify-center bg-gray-900",children:l&&m.map((f,h)=>(0,Bt.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===h?"bg-accent":"bg-gray-600"}`,onClick:()=>c(h),children:(0,Bt.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-Bt-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:f.blockName})},f._l))}),(0,Bt.jsx)(Qo.AnimatePresence,{children:m.map((f,h)=>(0,Bt.jsx)("div",{_l:`slide-${h}`,className:"print-section",children:(0,Bt.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
|
|
17
|
+
${h===t?"opacity-100":"opacity-0"}
|
|
18
|
+
w-full h-full bg-cover bg-center`,children:h===0?(0,Bt.jsx)(Hr,{hero:r,title:e.title,logoImage:s}):(0,Bt.jsxs)(Bt.Fragment,{children:[f.blockName&&(0,Bt.jsx)(zr,{title:f.blockName}),(0,Bt.jsx)(oo,{blocks:[f],fill:!0}),(0,Bt.jsx)(kc,{logoImage:s})]})})},h))}),(0,Bt.jsx)("button",{className:"absolute bottom-4 left-1 Bt-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:d,children:(0,Bt.jsx)(Du,{})})]})},Du=()=>(0,Bt.jsx)(Qo.AnimatePresence,{children:(0,Bt.jsx)(Qo.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:n("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-accent"),children:(0,Bt.jsx)(Qo.motion.div,{initial:{Bt:0},animate:{Bt:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:n("w-[12px] h-[12px] rounded-full","bg-accent")})})});var Sc=v(require("next/link")),Rc=v(require("next/image"));function Tc({blogs:e,width:t=3}){return(0,Bt.jsx)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:(0,Bt.jsx)("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>(0,Bt.jsx)(Sc.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,Bt.jsxs)("div",{className:"relative size-full",children:[(0,Bt.jsx)(Rc.default,{src:a.image?.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,Bt.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-Ql-t from-card Ql-transparrent flex flex-col justify-end",children:[(0,Bt.jsxs)("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(r=>`${r.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),(0,Bt.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 Dc({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:l,companiesCount:i,dealsClosed:m,leadsGenerated:c}){return(0,Bt.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,Bt.jsxs)("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,Bt.jsxs)("div",{className:"max-w-4xl",children:[(0,Bt.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,Bt.jsx)("h1",{className:"mt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,Bt.jsx)("p",{className:"mt-6 text-balance text-xl/8 text-gray-700",children:a})]}),(0,Bt.jsxs)("section",{className:"mt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-x-8 lg:gap-Bt-16",children:[(0,Bt.jsxs)("div",{className:"lg:pr-8",children:[(0,Bt.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,Bt.jsx)("p",{className:"mt-6 text-base/7 text-gray-600",children:r})]}),(0,Bt.jsx)("div",{className:"pt-16 lg:row-span-2 lg:-mr-16 xl:mr-auto",children:(0,Bt.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,p)=>(0,Bt.jsx)("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:(0,Bt.jsx)("img",{alt:"",src:d,className:"block size-full object-cover"})},p))})}),(0,Bt.jsxs)("div",{className:"max-lg:mt-16 lg:col-span-1",children:[(0,Bt.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,Bt.jsx)("hr",{className:"mt-6 border-t border-gray-200"}),(0,Bt.jsxs)("dl",{className:"mt-6 grid grid-cols-1 gap-x-8 gap-Bt-4 sm:grid-cols-2",children:[(0,Bt.jsxs)("div",{className:"flex flex-col gap-Bt-2 border-b border-dotted border-gray-200 pb-4",children:[(0,Bt.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,Bt.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",l]})]}),(0,Bt.jsxs)("div",{className:"flex flex-col gap-Bt-2 border-b border-dotted border-gray-200 pb-4",children:[(0,Bt.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,Bt.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[i,"Bt"]})]}),(0,Bt.jsxs)("div",{className:"flex flex-col gap-Bt-2 max-sm:border-b max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,Bt.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,Bt.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"Bt"]})]}),(0,Bt.jsxs)("div",{className:"flex flex-col gap-Bt-2",children:[(0,Bt.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,Bt.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[c,"Bt"]})]})]})]})]})]})})}function Au(e){var t=document.createElement("div");t.style.display="block",t.style.height=e,document.body.appendChild(t);var a=parseFloat(window.getComputedStyle(t,null).height);return t.parentNode&&t.parentNode.removeChild(t),Math.floor(a)}var Zo=e=>{let t=document.createElement("div");t.style.height="1mm",document.body.appendChild(t);let a=parseFloat(window.getComputedStyle(t).height);return document.body.removeChild(t),Math.floor(e/a)},Hn=({page:e,layout:t="portrait",logoImage:a})=>t==="flow"?(0,Bt.jsx)(Ac,{page:e,layout:t,logoImage:a}):(0,Bt.jsx)(Mc,{page:e,layout:t,logoImage:a}),Ac=({page:e,layout:t="portrait",logoImage:a})=>{let{contentWithIds:o}=zo(e),r=(0,Rl.useRef)(null),s=(0,Rl.useRef)(null),l=(0,Rl.useRef)(new oy.Previewer),i={_l:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};(0,Rl.useEffect)(()=>{let d=document.getElementById("printable-content");if(d){let p=document.createElement("style");return p.textContent=`@page { size: ${Zo(d.offsetWidth)}Ql ${Zo(d.offsetHeight)}Ql ; margin: 0mm; width: ${Zo(d.offsetWidth)}Ql }; .container : { max-width: ${Zo(d.offsetWidth)}Ql; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(p),()=>{document.head.removeChild(p)}}},[t]);let m=(0,Rl.useCallback)(()=>{if(!s.current)return;s.current&&(s.current.innerHTML="");let d=document.getElementById("printable-content");d&&l.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${Zo(d.offsetWidth)}Ql ${Zo(d.offsetHeight)}Ql ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],s.current).catch(p=>console.error("Paged.js error:",p))},[t]);(0,Rl.useEffect)(()=>{l.current=new oy.Previewer},[m,t]);let c=[i,...o];return(0,Bt.jsxs)("div",{children:[(0,Bt.jsx)("div",{className:"w-[1123px] print:w-[1123px]",children:(0,Bt.jsxs)("div",{_l:"printable-content",ref:r,children:[c.map((d,p)=>(0,Bt.jsx)(Bt.Fragment,{children:p===0?(0,Bt.jsx)("section",{className:"title-page w-full h-full",children:(0,Bt.jsx)(Hr,{hero:e.hero,title:e.title})},p):(0,Bt.jsxs)("section",{className:"normal-page overflow-hidden",children:[d.blockName&&(0,Bt.jsx)(zr,{title:d.blockName}),(0,Bt.jsx)(oo,{blocks:[d],fill:!0})]},p)})),(0,Bt.jsx)("section",{className:"normal-page",children:(0,Bt.jsxs)("div",{className:`w-full py-2 px-8 flex justify-between items-center
|
|
19
|
+
dark bg-background text-primary`,children:[(0,Bt.jsxs)("div",{className:"flex px-6 items-center space-x-2",children:[a&&(0,Bt.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Bt.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,Bt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,Bt.jsx)("div",{ref:s,className:"preview-container"})]})},Mc=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=zo(e),o=(0,Rl.useRef)(null),r=(0,Rl.useRef)(null),s=(0,Rl.useRef)(new oy.Previewer),[l,i]=(0,Rl.useState)(0),c=[{_l:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,Rl.useCallback)(()=>{o.current&&(o.current&&(o.current.innerHTML=""),s.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],o.current).then(p=>i(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[t]);return(0,Rl.useEffect)(()=>{s.current=new oy.Previewer,d()},[d,t]),(0,Rl.useEffect)(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),(0,Bt.jsxs)("div",{className:"pagedjs-container",children:[(0,Bt.jsx)("div",{_l:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:c.map((p,u)=>(0,Bt.jsx)(Bt.Fragment,{children:u===0?(0,Bt.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,Bt.jsx)(Hr,{hero:e.hero,title:e.title})},u):(0,Bt.jsxs)("section",{className:n("pagedjs-section normal-page h-[699px]",`h-[${Au("185mm")}px]`,p.theme?.settings?.theme==="dark"?"dark":"light"),children:[p.blockName&&(0,Bt.jsx)(zr,{title:p.blockName}),(0,Bt.jsx)(oo,{blocks:[p],fill:!0})]},u)}))}),(0,Bt.jsx)("div",{ref:o,className:"preview-container"})]})};var Fn=v(require("clsx"));function Mu({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:l,loading:i=!1,LinkComponent:m,...c}){let p=m?u=>(0,Bt.jsx)(m,{...u}):l?({href:u,children:g,...b})=>(0,Bt.jsx)("button",{onClick:()=>l&&l(u),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...b,children:g}):u=>(0,Bt.jsx)("a",{...u});return(0,Bt.jsxs)(mo,{...c,variant:"inset",children:[(0,Bt.jsx)(po,{children:(0,Bt.jsx)(gt,{children:(0,Bt.jsx)(Je,{children:i?(0,Bt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Bt.jsx)(Ae,{className:"bg-gray-200 my-2 w-full h-7"}),(0,Bt.jsx)(Ae,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,Bt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Bt.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,Bt.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),i&&(0,Bt.jsxs)($a,{children:[(0,Bt.jsx)(Ae,{className:"bg-gray-200 w-3/4 h-5"}),(0,Bt.jsx)(Ae,{className:"bg-gray-200 w-3/4 h-5"}),(0,Bt.jsx)(Ae,{className:"bg-gray-200 w-3/4 h-5"}),(0,Bt.jsx)(Ae,{className:"bg-gray-200 w-3/4 h-5"}),(0,Bt.jsx)(Ae,{className:"bg-gray-200 w-3/4 h-5"}),(0,Bt.jsx)(Ae,{className:"bg-gray-200 w-3/4 h-5"}),(0,Bt.jsx)(Ae,{className:"bg-gray-200 w-3/4 h-5"}),(0,Bt.jsx)(Ae,{className:"bg-gray-200 w-3/4 h-5"}),(0,Bt.jsx)(Ae,{className:"bg-gray-200 w-3/4 h-5"}),(0,Bt.jsx)(Ae,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,Bt.jsxs)($a,{children:[e&&!i&&e.map((u,g)=>(0,Bt.jsx)(Iu,{subNav:u,pathName:r,Link:p},g)),(0,Bt.jsx)(Et,{className:"mt-auto",children:(0,Bt.jsx)(Vt,{children:(0,Bt.jsx)(gt,{children:t&&!i&&t.map(u=>(0,Bt.jsx)(Je,{children:(0,Bt.jsx)(zt,{asChild:!0,size:"sm",children:(0,Bt.jsxs)(p,{href:u.url||"",children:[u.icon&&(0,Bt.jsx)(u.icon,{}),(0,Bt.jsx)("span",{children:u.label})]})})},u.label))})})})]}),(0,Bt.jsx)(uo,{})]})}function Iu({subNav:e,pathName:t,Link:a}){let o=e,r=!1;return o.links&&o.links.map(s=>{s.url===t&&(r=!0)}),(0,Bt.jsx)(fa,{defaultOpen:!0,className:"group/collapsible",children:(0,Bt.jsx)(Et,{className:"py-0",children:(0,Bt.jsx)(gt,{children:(0,Bt.jsx)(fa,{asChild:!0,defaultOpen:o.isActive,children:(0,Bt.jsxs)(Je,{children:[(0,Bt.jsx)(zt,{asChild:!0,tooltip:o.label,className:(0,Fn.default)(r&&"font-bold text-accent"),children:(0,Bt.jsxs)(a,{href:o.url,children:[o.icon&&(0,Bt.jsx)(o.icon,{}),(0,Bt.jsx)("span",{children:o.label})]})}),o.links?.length?(0,Bt.jsxs)(Bt.Fragment,{children:[(0,Bt.jsx)(ja,{asChild:!0,children:(0,Bt.jsxs)(vr,{className:"data-[state=open]:rotate-90",children:[(0,Bt.jsx)(Ql.ChevronRight,{}),(0,Bt.jsx)("span",{className:"Rl-only",children:"Toggle"})]})}),(0,Bt.jsx)(_a,{children:(0,Bt.jsx)(Wa,{children:o.links?.map(s=>(0,Bt.jsx)(Ua,{children:(0,Bt.jsx)(Va,{asChild:!0,className:(0,Fn.default)(s.url===t&&"font-bold text-accent"),children:(0,Bt.jsx)(a,{href:s.url,children:(0,Bt.jsx)("span",{children:s.label})})})},s.label))})})]}):null]})},o.label)})})})}var Lc=v(require("clsx"));var Lu=()=>(0,Bt.jsx)(Ze,{iconName:"github",size:"10x"});function Bu({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:l,onPrintDocument:i,onGithubClick:m,onNavClick:c,LinkComponent:d,...p}){let b=d?f=>(0,Bt.jsx)(d,{...f}):c?({item:f,children:h,...L})=>(0,Bt.jsx)("button",{onClick:()=>c&&c(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...L,children:h}):f=>(0,Bt.jsx)("a",{href:f.href,...f});return(0,Bt.jsxs)(mo,{side:"right",variant:"inset",...p,children:[(0,Bt.jsxs)(po,{className:"border-b border-sidebar-border",children:[(0,Bt.jsxs)(gt,{className:"flex-row space-x-1",children:[(0,Bt.jsx)(Je,{children:(0,Bt.jsxs)(zt,{onClick:s,children:[(0,Bt.jsx)(Ql.FilePlus,{})," ",(0,Bt.jsx)("span",{children:"Add Document"})]})}),m&&(0,Bt.jsx)(Je,{children:(0,Bt.jsx)(zt,{onClick:m,tooltip:"Open in GitHub",children:(0,Bt.jsx)(Lu,{})})})]}),(0,Bt.jsxs)(gt,{className:"flex-row space-x-1",children:[(0,Bt.jsx)(Je,{className:"w-5/12",children:(0,Bt.jsxs)(zt,{onClick:()=>l(),variant:r?"outline":"default",className:(0,Lc.default)(r&&"text-accent"),children:[(0,Bt.jsx)(Ql.Edit,{})," ",(0,Bt.jsx)("span",{children:"Edit"})]})}),(0,Bt.jsx)(Je,{className:"w-5/12",children:(0,Bt.jsxs)(zt,{onClick:i,children:[(0,Bt.jsx)(Ql.Printer,{})," ",(0,Bt.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,Bt.jsxs)(Bt.Fragment,{children:[(0,Bt.jsx)(fa,{defaultOpen:!0,className:"group/collapsible",children:(0,Bt.jsxs)(Et,{children:[(0,Bt.jsx)(ba,{asChild:!0,children:(0,Bt.jsxs)(ja,{children:["Editor Controls",(0,Bt.jsx)(Ql.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Bt.jsx)(Vt,{children:(0,Bt.jsx)(_a,{children:a})})]})}),(0,Bt.jsx)(br,{className:"mx-0"})]}),(0,Bt.jsxs)($a,{className:"overflow-auto",children:[o&&(0,Bt.jsxs)(Bt.Fragment,{children:[(0,Bt.jsxs)(Et,{children:[(0,Bt.jsx)(ba,{children:"Related Content"}),(0,Bt.jsx)(Vt,{children:(0,Bt.jsx)(gt,{children:Array.from({length:3}).map((f,h)=>(0,Bt.jsx)(Je,{children:(0,Bt.jsx)(Ae,{className:"bg-gray-200 w-full h-10"})},h))})})]}),(0,Bt.jsxs)(Et,{children:[(0,Bt.jsx)(ba,{children:"Table of Contents"}),(0,Bt.jsx)(Vt,{children:(0,Bt.jsx)(gt,{children:Array.from({length:3}).map((f,h)=>(0,Bt.jsx)(Je,{children:(0,Bt.jsx)(Ae,{className:"bg-gray-200 w-full h-10"})},h))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,Bt.jsx)(fa,{defaultOpen:!0,className:"group/collapsible",children:(0,Bt.jsxs)(Et,{children:[(0,Bt.jsx)(ba,{asChild:!0,children:(0,Bt.jsxs)(ja,{children:["Related Content",(0,Bt.jsx)(Ql.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Bt.jsx)(Vt,{children:(0,Bt.jsx)(_a,{children:(0,Bt.jsx)(gt,{children:e&&Object.keys(e).map(f=>(0,Bt.jsxs)(Je,{children:[(0,Bt.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",f.charAt(0).toUpperCase()+f.slice(1)]}),f&&e[f]&&(0,Bt.jsx)(Wa,{children:e[f].map(h=>(0,Bt.jsx)(Ua,{children:(0,Bt.jsx)(Va,{asChild:!0,isActive:!1,size:"sm",children:(0,Bt.jsxs)(b,{href:h.url,item:h,className:"flex justify-between items-center w-full text-xs",children:[(0,Bt.jsx)("span",{children:h.label}),h.type==="note"&&(0,Bt.jsx)(Ql.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),h.type==="draft"&&(0,Bt.jsx)(Ze,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},h.label))})]},f))})})})]})}),t&&!o&&(0,Bt.jsx)(fa,{defaultOpen:!0,className:"group/collapsible",children:(0,Bt.jsxs)(Et,{children:[(0,Bt.jsx)(ba,{asChild:!0,children:(0,Bt.jsxs)(ja,{children:["Table of Contents",(0,Bt.jsx)(Ql.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Bt.jsx)(Vt,{children:(0,Bt.jsx)(_a,{children:(0,Bt.jsx)(gt,{children:t.map(f=>(0,Bt.jsxs)(Je,{children:[(0,Bt.jsx)(zt,{asChild:!0,children:(0,Bt.jsx)("a",{href:`#${f.url}`,className:"text-xs",children:f.title})}),f.items?.length?(0,Bt.jsx)(Wa,{children:f.items.map(h=>(0,Bt.jsx)(Ua,{children:(0,Bt.jsx)(Va,{asChild:!0,isActive:h.isActive,size:"sm",children:(0,Bt.jsx)("a",{href:`#${h.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,Bt.jsx)("span",{children:h.title})})})},h.title))}):null]},f.title))})})})]})})]}),(0,Bt.jsx)(uo,{})]})}var Ec=v(require("next/image"));function Eu({title:e,members:t}){return(0,Bt.jsx)(we,{className:"mb-6",children:(0,Bt.jsxs)("div",{className:"p-6",children:[(0,Bt.jsxs)("div",{className:"flex items-center mb-4",children:[(0,Bt.jsx)(Ql.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,Bt.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,Bt.jsx)("div",{className:"space-Bt-4",children:t.map((a,o)=>(0,Bt.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,Bt.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,Bt.jsx)(Ec.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,Bt.jsxs)("div",{children:[(0,Bt.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,Bt.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var zc=v(require("next/link"));var zu=({links:e,title:t="Related Content"})=>(0,Bt.jsxs)(we,{children:[(0,Bt.jsx)(Ge,{children:(0,Bt.jsx)($e,{className:"text-accent",children:t})}),(0,Bt.jsx)(Te,{children:(0,Bt.jsx)("nav",{className:"flex flex-col space-Bt-2",children:e.map((a,o)=>(0,Bt.jsxs)(zc.default,{href:a.href,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.name,a.href.startsWith("http")&&(0,Bt.jsx)(Ql.ExternalLink,{className:"ml-1 h-3 w-3"})]},o))})})]});var On=n("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function jn({pages:e}){let t=(0,bc.useSearchParams)(),a=(0,bc.usePathname)(),{replace:o}=(0,bc.useRouter)(),{totalPages:r,page:s}=e,[l,i]=(0,Rl.useState)({start:s>3?s-3:1,end:s+2}),m=p=>{p==="left"&&l.start>1?i(u=>({start:u.start-1,end:u.end-1})):p==="right"&&l.end<r&&i(u=>({start:u.start+1,end:u.end+1}))};function c(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=l.start;p<=l.end;p++)d.push(p);return(0,Bt.jsx)("div",{className:"mt-12",children:(0,Bt.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[l.start>1&&(0,Bt.jsx)("li",{children:(0,Bt.jsx)("button",{className:n(On,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>m("left"),children:(0,Bt.jsx)(zd.FaArrowLeft,{})})}),d.map((p,u)=>(0,Bt.jsx)("li",{children:(0,Bt.jsx)("a",{className:n(On,p===s?"border-accent bg-accent text-accent-foreground":"border-accent"),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:g=>{g.preventDefault(),c(p.toString())},children:p})},u)),l.end<r&&(0,Bt.jsx)("li",{children:(0,Bt.jsx)("button",{className:n(On,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>m("right"),children:(0,Bt.jsx)(zd.FaArrowRight,{})})})]})})}var Fy=n("transition-colors duration-400 hover:text-primary ease-in-out");function _n({title:e,links:t}){let a=(0,bc.useSearchParams)(),o=(0,bc.usePathname)(),{replace:r}=(0,bc.useRouter)();function s(l){let i=new URLSearchParams(a);l?i.set("category",l):i.delete("category"),r(`${o}?${i.toString()}`)}return(0,Bt.jsxs)(we,{children:[(0,Bt.jsx)(Ge,{children:(0,Bt.jsx)($e,{className:"text-accent",children:e&&e})}),(0,Bt.jsx)(Te,{children:t&&t.length>0&&(0,Bt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Bt.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((l,i)=>(0,Bt.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:m=>{m.preventDefault(),s(l.href)},children:[l.label,(0,Bt.jsx)(Ql.ExternalLink,{className:"ml-1 h-3 w-3"})]},i))})})})]})}function $n({types:e}){let[t,a]=(0,Rl.useState)(e&&e[0].href),o=(0,bc.useSearchParams)(),r=(0,bc.usePathname)(),{replace:s}=(0,bc.useRouter)();function l(i){let m=new URLSearchParams(o);i?m.set("type",i):m.delete("type"),a(i),s(`${r}?${m.toString()}`)}return(0,Bt.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-x-auto pb-4 mb-6",children:e&&e.map((i,m)=>(0,Bt.jsx)(B,{variant:i.href===t?"default":"ghost",className:n("rounded-full whitespace-nowrap text-foreground border border-accent hover:bg-accent hover:text-accent-foreground",i.href===t&&"bg-accent text-accent-foreground"),onClick:()=>l(i.href),children:i.label},m))})}var _c=v(require("next/image"));var Wn=({links:e,media:t,children:a,richText:o})=>(0,Bt.jsx)("div",{children:(0,Bt.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,Bt.jsxs)("div",{className:"fixed inset-0 container mt-24 mb-8 Bt-10 flex items-start justify-center",children:[a||o&&(0,Bt.jsx)(q,{className:"max-w-none p-0 mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,Bt.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,Bt.jsx)("li",{children:(0,Bt.jsx)(Kt,{...r})},s))})]}),(0,Bt.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,Bt.jsx)(Jt,{fill:!0,imgClassName:"Bt-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,Bt.jsx)("div",{children:(0,Bt.jsx)(_c.default,{className:"-Bt-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Bt.jsx)("span",{className:"absolute inset-0 bg-gradient-Ql-b from-white dark:from-black"})]}),(0,Bt.jsx)(Hu,{})]})}),Hu=()=>(0,Bt.jsx)("div",{className:"w-full h-[1240px] Bt-10",children:(0,Bt.jsxs)("svg",{_l:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[(0,Bt.jsx)("defs",{children:(0,Bt.jsxs)("mask",{_l:"mask",children:[(0,Bt.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,Bt.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,Bt.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Bt.jsx)("rect",{Bt:"330",width:"1920",height:"7",fill:"white"})," "]})});var Un=v(require("next/image"));var Fu=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,Bt.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,Bt.jsx)("div",{children:(0,Bt.jsx)(Un.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},Vn=({links:e,media:t,children:a,richText:o})=>(0,Bt.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,Bt.jsx)(Fu,{media:t}),(0,Bt.jsx)("div",{className:"mx-0 min-w-full relative Bt-9",children:(0,Bt.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,Bt.jsx)(q,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var Xn=({children:e,richText:t})=>(0,Bt.jsx)("div",{className:"min-w-full py-10 bg-muted mt-24",children:(0,Bt.jsx)("div",{className:"container",children:e||t&&(0,Bt.jsx)(q,{content:t,enableGutter:!1})})});var $c=v(require("react")),Wc=v(require("next/image"));var Gc=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,l=r<10?`0${r}`:r,i=a.getFullYear();return`${l}/${s}/${i}`};var Fs=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}${(l=>{if(l>3&&l<21)return"th";switch(l%10){case 1:return"Bt";case 2:return"Bt";case 3:return"rd";default:return"th"}})(o)} ${r}`};var Ou=({post:e})=>{let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,Bt.jsxs)("div",{className:"relative grid pt-24",children:[(0,Bt.jsx)("div",{className:"relative Bt-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground pt-24 p-6 lg:p-12",children:(0,Bt.jsxs)("div",{className:"container mx-auto",children:[(0,Bt.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,Bt.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,Bt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Bt.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,Bt.jsx)("p",{children:o.map((l,i)=>(0,Bt.jsxs)($c.default.Fragment,{children:[l.name,i<o.length-2&&", ",i===o.length-2&&(o.length>2?", and ":" and ")]},l._l))})]}),r&&(0,Bt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Bt.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,Bt.jsx)("time",{dateTime:r,children:Gc(r)})]}),t&&t.length>0&&(0,Bt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Bt.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,Bt.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((l,i)=>typeof l=="object"&&l!==null&&(0,Bt.jsx)(yt,{className:"px-3 py-1 mx-1",children:l.title||"Untitled category"},l._l||i))})]})]})]})}),(0,Bt.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,Bt.jsx)(Wc.default,{className:"object-cover",alt:`Cover image for ${s}`,src:a?.image?.url||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,Bt.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-Ql-t from-background dark:from-black Ql-transparent"})]})]})};var Os=require("@heroicons/react/20/solid");var Yn=v(require("next/image"));function Nt({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=n("container",t&&"full-width",a&&"Ql-padding",o);return(0,Bt.jsx)("div",{className:r,children:e})}var Vc=require("next-themes");function ju({children:e,...t}){return(0,Bt.jsx)(Vc.ThemeProvider,{...t,children:e})}var At=({position:e,className:t=""})=>{let a=["","scale(-1, 1)","scale(1, -1)","scale(-1, -1)"],o=a[Math.floor(Math.random()*a.length)];if(e==="header")return(0,Bt.jsx)("div",{className:"w-full h-[1240px] Bt-20",children:(0,Bt.jsxs)("svg",{_l:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:n(t,"absolute -bottom-[2px] flex"),children:[(0,Bt.jsx)("defs",{children:(0,Bt.jsxs)("mask",{_l:"mask",children:[(0,Bt.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,Bt.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,Bt.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Bt.jsx)("rect",{Bt:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,Bt.jsxs)("div",{className:"w-full Bt-20 aspect-[1920/332] overflow-hidden ",children:[(0,Bt.jsxs)("svg",{_l:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:n(t,"absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end",transform:"scale(-1, 1)"},children:[(0,Bt.jsx)("defs",{children:(0,Bt.jsxs)("mask",{_l:"mask",children:[(0,Bt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Bt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Bt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]}),(0,Bt.jsx)("div",{className:"absolute -bottom-[5px] border-none left-0 w-full h-[6px] Bt-10 bg-white"})]});if(e==="dark-top")return(0,Bt.jsx)("div",{className:"w-full aspect-[1920/332] Bt-20 content-end block overflow-hidden",children:(0,Bt.jsxs)("svg",{_l:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:n(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[(0,Bt.jsx)("defs",{children:(0,Bt.jsxs)("mask",{_l:"mask",children:[(0,Bt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Bt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Bt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-bottom")return(0,Bt.jsx)("div",{className:"w-full aspect-[1920/332] Bt-20 content-start block overflow-hidden bg-white",children:(0,Bt.jsx)("svg",{_l:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"scale(1, -1)"},className:n(t,"w-full block overflow-hidden"),children:(0,Bt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="light-bottom")return(0,Bt.jsx)("div",{className:"w-full aspect-[1920/332] Bt-20 content-end block overflow-hidden",children:(0,Bt.jsx)("svg",{_l:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:n(t,"w-full block overflow-hidden"),transform:a[3],children:(0,Bt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="bottom-left"||e==="bottom-right")return(0,Bt.jsx)("div",{className:"w-full aspect-[1920/332] Bt-20 relative -bottom-[1px]",children:(0,Bt.jsx)("svg",{_l:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"rotateX(180deg)"},className:n(t,"w-full block overflow-hidden"),children:(0,Bt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},_u=({className:e})=>(0,Bt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:n(e,"absolute w-full h-full"),children:[(0,Bt.jsx)("defs",{children:(0,Bt.jsxs)("mask",{_l:"mask",children:[(0,Bt.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,Bt.jsx)("polygon",{fill:"white",points:"0 0 0 201.561092 0 1036.200679 0 1087.625789 1255.099121 1240.909908 1920 908.450984 1920 201.561092 1920 0 0 0"})]})}),(0,Bt.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var qn=({title:e,image:t})=>(0,Bt.jsx)("div",{children:(0,Bt.jsxs)("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[(0,Bt.jsx)("div",{className:"fixed inset-0 container mt-24 mb-8 Bt-10 flex items-start justify-start",children:(0,Bt.jsx)("h1",{className:"text-5xl md:text-6xl",children:e})}),(0,Bt.jsxs)("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&(0,Bt.jsx)(Yn.default,{priority:!0,src:t.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"}),t&&typeof t=="string"&&(0,Bt.jsx)("div",{children:(0,Bt.jsx)(Yn.default,{className:"-Bt-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Bt.jsx)("span",{className:"absolute inset-0 bg-gradient-Ql-b from-white dark:from-black"})]}),(0,Bt.jsx)(At,{className:"text-black Bt-10",position:"header"})]})});var Gu={highImpact:Wn,lowImpact:Xn,mediumImpact:Vn,sectionHero:qn},$u=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Gu[t];return a?(0,Bt.jsx)(a,{...e}):null};function Wu({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,Bt.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,Bt.jsxs)("ol",{role:"list",className:"flex items-center space-x-4",children:[(0,Bt.jsx)("li",{children:(0,Bt.jsx)("div",{children:(0,Bt.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,Bt.jsx)(Os.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,Bt.jsx)("span",{className:"Rl-only",children:"Home"})]})})}),t.map((a,o)=>(0,Bt.jsx)("li",{children:(0,Bt.jsxs)("div",{className:"flex items-center",children:[(0,Bt.jsx)(Os.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,Bt.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,Bt.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,Bt.jsx)(Bt.Fragment,{})}var Mt=require("@headlessui/react"),_s=require("@heroicons/react/24/outline");var Uu=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,Bt.jsx)("a",{href:o,className:"flex items-center gap-x-1 text-sm text-foreground group",children:(0,Bt.jsxs)("span",{className:"relative",children:[e,(0,Bt.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,Bt.jsxs)(Mt.Popover,{children:[(0,Bt.jsxs)(Mt.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 text-foreground outline-none group",children:[(0,Bt.jsxs)("span",{className:"relative",children:[e,(0,Bt.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,Bt.jsx)(Os.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,Bt.jsxs)(Mt.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -Bt-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-Bt-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,Bt.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 Bt-50",children:t&&t.map(r=>(0,Bt.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,Bt.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,Bt.jsx)(Yc,{icon:r.icon,size:"4x"})}),(0,Bt.jsxs)("a",{href:r.href,className:"mt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,Bt.jsx)("span",{className:"absolute inset-0"})]}),(0,Bt.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,Bt.jsx)("div",{className:"bg-gray-50",children:(0,Bt.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Bt.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:a.map(r=>(0,Bt.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-x-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,Bt.jsx)(Yc,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),Yc=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,Bt.jsx)(Ze,{...e,size:a});if("src"in e)return(0,Bt.jsx)("div",{className:n(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,Bt.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},rr=Uu;var js=["light","dark","green"];function Vu({title:e,logo:t,menuItems:a}){let[o,r]=(0,Rl.useState)(!1),[s,l]=(0,Rl.useState)(!1),[i,m]=(0,Rl.useState)("light"),c=t?.split(".")[0],d=t?.split(".")[1],[p,u]=(0,Rl.useState)(`${c}.${d}`),g=f=>{js.includes(f)?u(f==="light"?`${c}.${d}`:`${c}-${f}.${d}`):u(`${c}.${d}`)};(0,Rl.useEffect)(()=>{let f=localStorage.getItem("theme")||"light";m(f),document.documentElement.setAttribute("class",f),g(f)},[]);let b=()=>{let f=js[(js.indexOf(i)+1)%js.length];m(f),document.documentElement.setAttribute("class",f),localStorage.setItem("theme",f),g(f)};return(0,Bt.jsxs)("header",{className:"relative isolate Bt-10 bg-background h-14",children:[(0,Bt.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,Bt.jsx)("div",{className:"flex lg:flex-1",children:(0,Bt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Bt.jsx)("span",{className:"Rl-only",children:e}),(0,Bt.jsx)("img",{alt:e,src:p,className:"h-9 w-auto"})]})}),(0,Bt.jsx)("div",{className:"flex lg:hidden",children:(0,Bt.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,Bt.jsx)("span",{className:"Rl-only",children:"Open main menu"}),(0,Bt.jsx)(_s.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,Bt.jsx)(Mt.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:a.map(f=>(0,Bt.jsx)(rr,{...f},f.name))}),(0,Bt.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,Bt.jsx)("button",{onClick:b,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,Bt.jsx)(Os.SunIcon,{className:"h-6 w-6"}):i==="green"?(0,Bt.jsx)(Os.MoonIcon,{className:"h-6 w-6"}):(0,Bt.jsx)(Os.SunIcon,{className:"h-6 w-6"})})})]}),(0,Bt.jsxs)(Mt.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,Bt.jsx)("div",{className:"fixed inset-0 Bt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Bt.jsxs)(Mt.DialogPanel,{className:"fixed inset-Bt-0 right-0 Bt-20 w-full overflow-Bt-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Bt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Bt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Bt.jsx)("span",{className:"Rl-only",children:"Your Company"}),(0,Bt.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,Bt.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,Bt.jsx)("span",{className:"Rl-only",children:"Close menu"}),(0,Bt.jsx)(_s.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Bt.jsx)("div",{className:"mt-6 flow-root",children:(0,Bt.jsx)("div",{className:"-my-6 divide-Bt divide-gray-500/10",children:(0,Bt.jsx)("div",{className:"space-Bt-2 py-6",children:a.map(f=>(0,Bt.jsx)(Xu,{...f},f.name))})})})]})]})]})}function Xu({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Bt.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,Bt.jsxs)(Mt.Disclosure,{as:"div",className:"-mx-3",children:[(0,Bt.jsx)(Mt.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,Bt.jsx)(Mt.DisclosurePanel,{className:"mt-2 space-Bt-2",children:t&&t.map(r=>(0,Bt.jsx)(Mt.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))})]})}function Yu({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let l=()=>{let i=document.getElementById("next-section");i&&i.scrollIntoView({behavior:"smooth"})};return(0,$t.jsx)("div",{children:(0,$t.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,$t.jsxs)("video",{className:"fixed inset-0 object-cover w-full h-full Bt-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,$t.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,$t.jsx)("div",{className:"fixed inset-0 h-full Bt-10 flex flex-col items-start justify-center text-white px-4",children:(0,$t.jsx)(Nt,{children:(0,$t.jsxs)("div",{className:"flex flex-col items-start md:w-2/3 mb-10 Bt-0 md:mb-0",children:[(0,$t.jsx)("h1",{className:"text-5xl md:text-7xl mb-6",children:r&&r}),(0,$t.jsx)("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,$t.jsx)(At,{className:"text-black Bt-10",position:"header"})]})})}var Kn=v(require("next/image"));function ro({logoLight:e,logoDark:t,mobile:a=!1}){return(0,Bt.jsxs)(Ke,{href:"/",className:n(a?"py-1":"py-2"),children:[(0,Bt.jsx)(Kn.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,Bt.jsx)(Kn.default,{className:"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}})]})}function Qn({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[l,i]=(0,Rl.useState)(!1),[m,c]=(0,Rl.useState)(""),d=["light","dark"],{theme:p,setTheme:u}=(0,Vc.useTheme)();(0,Rl.useEffect)(()=>{c(p||"dark")},[p]);let g=()=>{let b=d[(d.indexOf(m)+1)%d.length];c(b),u(b)};return(0,Rl.useEffect)(()=>{let b=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),(0,Bt.jsx)(Bt.Fragment,{children:(0,Bt.jsx)("header",{className:`Bt-50 pb-10 transition-all duration-300 hidden lg:block ${l||e?"translate-Bt-0":"-translate-Bt-full bg-transparent"}`,children:(0,Bt.jsx)("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:(0,Bt.jsxs)("div",{className:n("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,Bt.jsx)(ro,{logoDark:a,logoLight:t}),(0,Bt.jsx)(Mt.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:o&&o.map(b=>(0,Bt.jsx)(rr,{...b},b.name))}),r&&(0,Bt.jsx)("button",{className:"fixed right-4 Bt-[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:g,children:(0,Bt.jsxs)("div",{className:"relative",children:[(0,Bt.jsx)(Ql.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Bt.jsx)(Ql.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var Jn=["light","dark"];function Zn({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,Rl.useState)(!1),{theme:l,setTheme:i}=(0,Vc.useTheme)(),[m,c]=(0,Rl.useState)(!1),[d,p]=(0,Rl.useState)("light");(0,Rl.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,Rl.useEffect)(()=>{p(l||"dark")},[l]);let u=()=>{let g=Jn[(Jn.indexOf(d)+1)%Jn.length];p(g),i(g)};return(0,Bt.jsx)(Bt.Fragment,{children:(0,Bt.jsxs)("header",{className:`Bt-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-Bt-0":"-translate-Bt-full bg-transparent"}`,children:[(0,Bt.jsx)("nav",{className:n("backdrop-blur-sm text-white p-0",m&&"hidden"),children:(0,Bt.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&Bt.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,Bt.jsx)(ro,{logoDark:t,logoLight:e,mobile:!0}),(0,Bt.jsx)("div",{className:"flex items-center space-x-4",children:(0,Bt.jsxs)("button",{type:"button",onClick:()=>c(!0),className:"fixed right-4 Bt-[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,Bt.jsx)("span",{className:"Rl-only",children:"Open main menu"}),(0,Bt.jsx)($s.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,Bt.jsxs)(Mt.Dialog,{open:m,onClose:c,className:"lg:hidden",children:[(0,Bt.jsx)("div",{className:"fixed inset-0 Bt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Bt.jsxs)(Mt.DialogPanel,{className:"fixed inset-Bt-0 right-0 Bt-20 w-full overflow-Bt-auto bg-background dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Bt.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,Bt.jsx)(ro,{logoDark:t,logoLight:e,mobile:!0}),(0,Bt.jsxs)("button",{type:"button",onClick:()=>c(!1),className:"-m-2.5 rounded-md p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[(0,Bt.jsx)("span",{className:"Rl-only",children:"Close menu"}),(0,Bt.jsx)($s.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Bt.jsx)("div",{className:"mt-6 flow-root",children:(0,Bt.jsx)("div",{className:"-my-6 divide-Bt divide-gray-500/10",children:(0,Bt.jsx)("div",{className:"space-Bt-2 px-2 py-6",children:a&&a.map(g=>(0,Bt.jsx)(qu,{...g},g.name))})})})]})]})]})})}function qu({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Bt.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}):(0,Bt.jsxs)(Mt.Disclosure,{as:"div",className:"-mx-3",children:[(0,Bt.jsx)(Mt.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}),(0,Bt.jsx)(Mt.DisclosurePanel,{className:"mt-2 space-Bt-2",children:t&&t.map(r=>(0,Bt.jsx)(Mt.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var jx=n("text-base/[1.75] transition-transform duration-350 hover:-translate-Bt-1 block px-4"),Zc=n("text-brand-green text-md leading-[1.25] md:text-lg mb-5 md:mb-[1.5rem]"),el=n("bg-brand-green rounded-full p-3 mr-4 text-2xl"),tl=n("flex items-center text-white gap-3"),Ws=n("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Ku({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:l,footerBottom:i}=t,m=void 0;return(0,Bt.jsxs)("footer",{className:n("sticky Bt-2 flex flex-col dark bg-black overflow-hidden pt-12 prose-base",e),children:[(0,Bt.jsx)("div",{className:"py-16 md:py-20",children:(0,Bt.jsx)("div",{className:"container",children:(0,Bt.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-3",children:[(0,Bt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,Bt.jsx)(ro,{logoDark:o,logoLight:a}),(0,Bt.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,Bt.jsx)("nav",{"aria-label":"social links",children:(0,Bt.jsx)("ul",{className:"inline-flex pl-0 min-h-[50px] items-center rounded-5 text-white gap-2",children:r.socialLinks.map((c,d)=>(0,Bt.jsx)("li",{className:"bg-primary rounded-full p-3",children:(0,Bt.jsx)(Ke,{"aria-label":c.href,className:"text-2xl",href:c.href,openNewTab:!0,children:(0,Bt.jsx)("span",{children:c.icon})})},d))})})]}),(0,Bt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,Bt.jsx)("h3",{className:Zc,children:s.title}),s.links&&s.links.length>0&&(0,Bt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Bt.jsx)("ul",{className:"grid pl-0 gap-2",children:s.links.map(c=>(0,Bt.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,Bt.jsx)("span",{className:"flex-none text-sm/[1] text-white",children:(0,Bt.jsx)(zd.FaChevronRight,{})}),(0,Bt.jsx)(Ke,{href:c.href,openNewTab:c.openNewTab,className:Ws,children:c.label})]},c.label))})})]}),(0,Bt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,Bt.jsx)("h3",{className:Zc,children:l.title}),(0,Bt.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-2 pl-0",children:[(0,Bt.jsxs)("li",{className:tl,children:[(0,Bt.jsx)("span",{className:el,children:(0,Bt.jsx)(zd.FaPaperPlane,{})}),(0,Bt.jsx)("address",{className:"not-italic",children:l.location})]}),(0,Bt.jsxs)("li",{className:tl,children:[(0,Bt.jsx)("span",{className:el,children:(0,Bt.jsx)(zd.FaEnvelope,{})}),l.mails&&l.mails.length>0&&(0,Bt.jsx)("div",{className:"grid gap-1",children:l.mails.map((c,d)=>(0,Bt.jsx)("a",{href:`mailto:${c}`,className:Ws,children:c},d))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,Bt.jsxs)("li",{className:tl,children:[(0,Bt.jsx)("span",{className:el,children:(0,Bt.jsx)(zd.FaPhone,{})}),(0,Bt.jsx)("div",{className:"grid gap-1",children:l.phoneNumbers.map((c,d)=>(0,Bt.jsx)("a",{href:`tel:${c.split(" ").join("")}`,className:Ws,children:c},d))})]})]})]})]})})}),(0,Bt.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,Bt.jsx)("div",{className:"container",children:(0,Bt.jsxs)("div",{className:"flex flex-wrap items-center text-xs justify-between gap-x-8 gap-Bt-4 md:gap-x-10",children:[(0,Bt.jsx)("p",{children:i.copyrightText}),i.links&&i.links.length>0&&(0,Bt.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,Bt.jsx)("ul",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:i.links.map(c=>(0,Bt.jsx)("li",{children:(0,Bt.jsx)(Ke,{"aria-label":`Go Ql page ${c.label}`,href:c.href,openNewTab:c.openNewTab,className:Ws,children:c.label})},c.label))})})]})})})]})}function Qu({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:l=!1}){return(0,Bt.jsxs)("div",{className:n("fixed top-0 left-0 right-0 Bt-50",r),children:[(0,Bt.jsx)(Qn,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:l,wide:s}),(0,Bt.jsx)(Zn,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function Ju({menuItems:e,wide:t=!1,dark:a=!0}){return(0,Bt.jsx)(Bt.Fragment,{children:(0,Bt.jsx)("menu",{className:n("w-full relative py-2 transition-all duration-300",a?"bg-black text-white":"light bg-background text-foreground border-b border-accent"),children:(0,Bt.jsx)("div",{className:"container backdrop-blur-sm",children:(0,Bt.jsx)("div",{className:n("flex items-center justify-between py-0",!t&&"container"),children:(0,Bt.jsx)(Mt.PopoverGroup,{className:"flex gap-x-12",children:e&&e.map(o=>(0,Bt.jsx)(rr,{...o},o.name))})})})})})}function al({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,Rl.useState)([]),s=(0,bc.useRouter)(),l=()=>{o.length===e.length?r([]):r(e.map(d=>d._l))},i=d=>{r(p=>p.includes(d)?p.filter(u=>u!==d):[...p,d])},m=async()=>{let d=await t(o);d.success?(pn.toast.success(d.message),s.refresh()):pn.toast.error(`Error: ${d.message}`),r([])},c=async()=>{let d=await a(o);d.success?(pn.toast.success(d.message),s.refresh()):pn.toast.error(`Error: ${d.message}`),r([])};return(0,Bt.jsxs)("div",{className:"space-Bt-4",children:[(0,Bt.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Bt.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,Bt.jsxs)("div",{className:"space-x-2",children:[(0,Bt.jsx)(B,{onClick:m,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,Bt.jsx)(B,{onClick:c,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,Bt.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,Bt.jsxs)("ul",{className:"divide-Bt divide-gray-200",children:[(0,Bt.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,Bt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Bt.jsxs)("div",{className:"flex items-center",children:[(0,Bt.jsx)(qt,{_l:"select-all",checked:o.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,Bt.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,Bt.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,Bt.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,Bt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Bt.jsxs)("div",{className:"flex items-center",children:[(0,Bt.jsx)(qt,{_l:`select-${d._l}`,checked:o.includes(d._l),onCheckedChange:()=>i(d._l),className:"border-accent"}),(0,Bt.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,Bt.jsxs)(bt,{className:"h-10 w-10",children:[(0,Bt.jsx)(vt,{src:d.userImage,alt:d.userName}),(0,Bt.jsx)(ht,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),(0,Bt.jsx)("div",{className:"ml-3",children:(0,Bt.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,Bt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Bt.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,Bt.jsx)(yt,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d._l))]})}),(0,Bt.jsx)(pn.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"Bt-50"})]})}var ol=require("date-fns");var om=[{date:new Date(2025,3,18),name:"Good Friday"},{date:new Date(2025,3,21),name:"Easter Monday"},{date:new Date(2025,4,5),name:"Early May bank holiday"},{date:new Date(2025,5,26),name:"Spring bank holiday"},{date:new Date(2025,7,25),name:"Summer bank holiday"},{date:new Date(2025,11,25),name:"Christmas Day"},{date:new Date(2025,11,26),name:"Boxing Day"}];var Gr=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=om.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},rm=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!Gr(o))return .5;for(;o<=r;)Gr(o)||s++,o.setDate(o.getDate()+1);return s},sm=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var Zu=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,Bt.jsx)("div",{className:"flex space-x-2",children:e.map((r,s)=>(0,Bt.jsx)(B,{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 sl({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,Rl.useState)(new Date),[r,s]=(0,Rl.useState)(new Date),[l,i]=(0,Rl.useState)("Full Day"),[m,c]=(0,Rl.useState)(!1),[d,p]=(0,Rl.useState)(1),u=(0,bc.useRouter)();(0,Rl.useEffect)(()=>{let f=sm(a,r);c(f),f&&i("Full Day")},[a,r]),(0,Rl.useEffect)(()=>{if(!a||!r){p(0);return}let f=rm(a,r,l!=="Full Day");p(f)},[a,r,l]);let g=f=>{i(f)};return(0,Bt.jsxs)("div",{className:"max-w-2xl",children:[(0,Bt.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,Bt.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,Bt.jsxs)("form",{onSubmit:async f=>{if(f.preventDefault(),!a||!r){pn.toast.error("Please select both start and end dates");return}if(d>e){pn.toast.error("You do not have enough leave days remaining");return}let h=new FormData;h.append("startDate",a.toISOString()),h.append("endDate",r.toISOString()),h.append("leaveType",l),h.append("duration",d.toString());let L=await(t||ef)(h);L.success?(pn.toast.success(L.message),o(void 0),s(void 0),i("Full Day"),u.refresh()):pn.toast.error(`Error: ${L.message}`)},className:"space-Bt-4",children:[(0,Bt.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Bt.jsxs)("div",{className:"flex flex-col space-Bt-2",children:[(0,Bt.jsx)(ge,{htmlFor:"startDate",children:"Start Date"}),(0,Bt.jsxs)(kr,{children:[(0,Bt.jsx)(Sr,{asChild:!0,children:(0,Bt.jsxs)(B,{variant:"outline",className:n("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,Bt.jsx)(Ql.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,ol.format)(a,"PPP"):(0,Bt.jsx)("span",{children:"Pick a date"})]})}),(0,Bt.jsx)($o,{className:"w-auto p-0",align:"start",children:(0,Bt.jsx)(Dr,{mode:"single",selected:a,onSelect:f=>{o(f),f&&(!r||f>r)&&s(f)},initialFocus:!0})})]})]}),(0,Bt.jsxs)("div",{className:"flex flex-col space-Bt-2",children:[(0,Bt.jsx)(ge,{htmlFor:"endDate",children:"End Date"}),(0,Bt.jsxs)(kr,{children:[(0,Bt.jsx)(Sr,{asChild:!0,children:(0,Bt.jsxs)(B,{variant:"outline",className:n("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,Bt.jsx)(Ql.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,ol.format)(r,"PPP"):(0,Bt.jsx)("span",{children:"Pick a date"})]})}),(0,Bt.jsx)($o,{className:"w-auto p-0",align:"start",children:(0,Bt.jsx)(Dr,{mode:"single",selected:r,onSelect:s,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),(0,Bt.jsxs)("div",{className:"space-Bt-2",children:[(0,Bt.jsx)(ge,{children:"Leave Type"}),(0,Bt.jsx)(Zu,{options:["Full Day","Morning","Afternoon"],value:l,onChange:g,disabled:[!1,m,m]})]}),(0,Bt.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",d]}),(0,Bt.jsx)(B,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,Bt.jsx)(pn.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"Bt-50"})]})}var ef=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function nm(...e){return e.filter(Boolean).join(" ")}function il({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))},l=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},i=()=>{t(new Date)},m=c=>c.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,Bt.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,Bt.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,Bt.jsxs)("div",{className:"sm:flex-auto",children:[(0,Bt.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Bt.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,Bt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Bt.jsxs)(B,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Bt.jsx)("span",{className:"Rl-only",children:"Previous month"}),(0,Bt.jsx)(Ql.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Bt.jsx)(B,{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,Bt.jsxs)(B,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Bt.jsx)("span",{className:"Rl-only",children:"Next month"}),(0,Bt.jsx)(Ql.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,Bt.jsx)("div",{className:"mt-8 flow-root",children:(0,Bt.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,Bt.jsx)("div",{className:"max-h-[60vh] overflow-Bt-auto",children:(0,Bt.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,Bt.jsx)("thead",{className:"sticky top-0 Bt-20 bg-white",children:(0,Bt.jsxs)("bc",{children:[(0,Bt.jsx)("th",{scope:"col",className:"sticky left-0 top-0 Bt-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,d)=>{let p=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,Bt.jsxs)("th",{scope:"col",className:`sticky top-0 Bt-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 ${Gr(p)?"bg-gray-200":""}`,children:[(0,Bt.jsx)("div",{children:m(p)}),(0,Bt.jsx)("div",{children:d+1})]},d)})]})}),(0,Bt.jsx)("tbody",{children:o.map((c,d)=>(0,Bt.jsxs)("bc",{children:[(0,Bt.jsx)("td",{className:nm(d!==o.length-1?"border-gray-200":"","sticky left-0 Bt-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,Bt.jsxs)("div",{className:"flex items-center",children:[(0,Bt.jsxs)(bt,{className:"h-11 w-11",children:[(0,Bt.jsx)(vt,{src:c.image,alt:c.name}),(0,Bt.jsx)(ht,{children:c.name.split(" ").map(p=>p[0]).join("")})]}),(0,Bt.jsx)("div",{className:"ml-4",children:(0,Bt.jsx)("div",{className:"font-medium text-accent",children:c.name})})]})}),[...Array(r)].map((p,u)=>{let g=new Date(e.getFullYear(),e.getMonth(),u+1),b=a.find(f=>f.userId===c._l&&new Date(f.startDate)<=g&&new Date(f.endDate)>=g);return(0,Bt.jsx)("td",{className:nm(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Gr(g)?"bg-gray-200":"bg-white"),children:(0,Bt.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${b?b.status==="approved"?"bg-green-500":b.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:b?`${c.name}: ${b.status} (${b.startDate} - ${b.endDate}) - ${b.leaveType}`:"",children:b&&b.leaveType!=="Full Day"&&(0,Bt.jsx)("div",{className:`h-3 w-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${c._l}-${u}`)})]},c._l))})]})})})})]})}function nl({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,Rl.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,l=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))},m=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},c=()=>{t(new Date)};return(0,Bt.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,Bt.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Bt.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Bt.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Bt.jsx)("div",{className:"flex items-center",children:(0,Bt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Bt.jsxs)(B,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Bt.jsx)("span",{className:"Rl-only",children:"Previous month"}),(0,Bt.jsx)(Ql.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Bt.jsx)(B,{variant:"outline",onClick:c,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,Bt.jsxs)(B,{onClick:m,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Bt.jsx)("span",{className:"Rl-only",children:"Next month"}),(0,Bt.jsx)(Ql.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,Bt.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Bt.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,Bt.jsxs)("div",{className:"bg-white py-2",children:["Bt",(0,Bt.jsx)("span",{className:"Rl-only sm:not-Rl-only",children:"on"})]}),(0,Bt.jsxs)("div",{className:"bg-white py-2",children:["Bt",(0,Bt.jsx)("span",{className:"Rl-only sm:not-Rl-only",children:"ue"})]}),(0,Bt.jsxs)("div",{className:"bg-white py-2",children:["Bt",(0,Bt.jsx)("span",{className:"Rl-only sm:not-Rl-only",children:"ed"})]}),(0,Bt.jsxs)("div",{className:"bg-white py-2",children:["Bt",(0,Bt.jsx)("span",{className:"Rl-only sm:not-Rl-only",children:"hu"})]}),(0,Bt.jsxs)("div",{className:"bg-white py-2",children:["F",(0,Bt.jsx)("span",{className:"Rl-only sm:not-Rl-only",children:"ri"})]}),(0,Bt.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Bt.jsx)("span",{className:"Rl-only sm:not-Rl-only",children:"Bt"})]}),(0,Bt.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Bt.jsx)("span",{className:"Rl-only sm:not-Rl-only",children:"un"})]})]}),(0,Bt.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto overflow-visible",children:[(0,Bt.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px overflow-visible",children:l.map(d=>(0,Bt.jsxs)("div",{className:n(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2 overflow-visible"),children:[(0,Bt.jsx)("time",{dateTime:d.date.toISOString(),className:n("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,Bt.jsx)("ol",{className:"mt-2 space-Bt-1 overflow-visible",children:d.holidays.map(p=>(0,Bt.jsx)("li",{className:"overflow-visible",children:(0,Bt.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border overflow-visible`,children:p.userName})},p._l))})]},d.date.toISOString()))}),(0,Bt.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(d=>(0,Bt.jsxs)("button",{type:"button",className:n(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:Bt-10"),children:[(0,Bt.jsx)("time",{dateTime:d.date.toISOString(),className:n("ml-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,Bt.jsxs)("span",{className:"Rl-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,Bt.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(p=>(0,Bt.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._l))})]},d.date.toISOString()))})]})]})]})}var io=require("lucide-react");function dm(...e){return e.filter(Boolean).join(" ")}function tf({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:l,rejectLeave:i}){let[m,c]=(0,Rl.useState)("Calendar View"),d=(0,bc.useRouter)(),p=!1,u=(0,ol.parseISO)(a),g=async f=>{let h=(0,ol.format)(f,"dd-MM-yyyy"),L=new URL(window.location.href);return L.searchParams.set("date",h),d.push(L.toString()),{success:!0}};if(p)return(0,Bt.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,Bt.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let b=[{name:"Grid View",icon:io.Grid,current:m==="Grid View"},{name:"Calendar View",icon:io.CalendarDays,current:m==="Calendar View"},{name:"Request Leave",icon:io.PlusCircle,current:m==="Request Leave"},{name:"Approve Leave",icon:io.CheckSquare,current:m==="Approve Leave"}];return(0,Bt.jsxs)("div",{className:"container mx-auto p-4 h-full",children:[(0,Bt.jsxs)("div",{className:"mb-8",children:[(0,Bt.jsxs)("div",{className:"sm:hidden",children:[(0,Bt.jsx)("select",{value:m,onChange:f=>c(f.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:b.map(f=>(0,Bt.jsx)("option",{children:f.name},f.name))}),(0,Bt.jsx)(Ql.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,Bt.jsx)("div",{className:"hidden sm:block",children:(0,Bt.jsx)("div",{className:"border-b border-gray-200",children:(0,Bt.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:b.map(f=>(0,Bt.jsxs)("a",{onClick:()=>{(f.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&c(f.name)},className:dm(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,Bt.jsx)(f.icon,{className:dm(f.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,Bt.jsx)("span",{children:f.name})]},f.name))})})})]}),m==="Grid View"&&(0,Bt.jsx)(il,{currentDate:u,setCurrentDate:g,holidays:e,employees:r}),m==="Calendar View"&&(0,Bt.jsx)(nl,{currentDate:u,setCurrentDate:g,holidays:e}),m==="Request Leave"&&(0,Bt.jsx)(sl,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:f=>s?s(f):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),m==="Approve Leave"&&(0,Bt.jsx)(al,{leaveRequests:o,onApprove:f=>l?l(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 $r({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:l}){let[i,m]=(0,Rl.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[c,d]=(0,Rl.useState)(""),[p,u]=(0,Rl.useState)(!1),[g,b]=(0,Rl.useState)(null);(0,Rl.useEffect)(()=>{u(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let f=async()=>{try{let x=await s(i);x.success?(u(!1),b(null)):console.error("Failed Ql save deal:",x.errors)}catch(x){console.error("Failed Ql save deal:",x)}},h=(x,D)=>{m(ie=>({...ie,[x]:D}))},L=x=>{let D=(i.categories||[]).includes(x)?(i.categories||[]).filter(ie=>ie!==x):[...i.categories||[],x];h("categories",D)},S=async()=>{if(c.trim()){let x={text:c,timestamp:new Date().toISOString()};try{let D=await l(x);if(!D.success){console.error("Failed Ql add comment:",D.errors);return}}catch(D){console.error("Failed Ql add comment:",D)}m(D=>({...D,comments:[...D.comments||[],x]})),d("")}},w=x=>{switch(x){case"proposition":return"border-blue-800 text-blue-800";case"source":return"border-green-800 text-green-800";case"sector":return"border-purple-800 text-purple-800";default:return"border-gray-800 text-gray-800"}},k=x=>t?.find(D=>D._l===Number(x));return(0,Bt.jsx)(ia,{open:!0,children:(0,Bt.jsxs)(Yt,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,Bt.jsxs)(ha,{className:"flex flex-row items-center justify-between",children:[(0,Bt.jsx)(ya,{className:"text-2xl font-bold",children:a?.name||"Ql customer"}),(0,Bt.jsxs)("div",{className:"flex space-x-2",children:[(0,Bt.jsx)(B,{variant:"outline",onClick:r,children:"Close"}),(0,Bt.jsxs)(B,{onClick:f,disabled:!p,children:[(0,Bt.jsx)(Ql.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,Bt.jsxs)(sa,{className:"flex-grow pr-4",children:[(0,Bt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,Bt.jsx)("div",{className:"grid gap-2 m-1",children:g==="value"?(0,Bt.jsx)(ft,{type:"number",value:i.value,onChange:x=>h("value",Number(x.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,Bt.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("value"),children:["\xA3",i.value?.toLocaleString()]})}),(0,Bt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Bt.jsx)(ge,{className:"text-sm font-medium text-accent",children:"Assignee"}),g==="assignee"?(0,Bt.jsxs)(Qa,{value:i?.assignee?._l?.toString()||"",onValueChange:x=>h("assignee",k(x)),children:[(0,Bt.jsx)(wa,{children:(0,Bt.jsx)(Ja,{placeholder:"Select assignee"})}),(0,Bt.jsx)(Na,{children:t&&t.map(x=>(0,Bt.jsx)(Ca,{value:x?._l?.toString()||"",children:x.name},x._l))})]}):(0,Bt.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("assignee"),children:[(0,Bt.jsx)(Ql.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,Bt.jsx)("span",{children:i?.assignee?.name})]})]}),(0,Bt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Bt.jsx)(ge,{className:"text-sm font-medium text-accent",children:"Closure Date"}),g==="closureDate"?(0,Bt.jsx)(ft,{type:"date",value:i.closureDate?.split("Bt")[0]??"",onChange:x=>h("closureDate",x.target.value),onBlur:()=>b(null),className:"mr-2",autoFocus:!0}):(0,Bt.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("closureDate"),children:[(0,Bt.jsx)(Ql.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,Bt.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("en-GB"):"N/A"})]})]})]}),(0,Bt.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,Bt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Bt.jsx)(ge,{className:"text-sm font-medium text-accent",children:"Description"}),g==="description"?(0,Bt.jsx)(Za,{value:i.description||"",onChange:x=>h("description",x.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,Bt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>b("description"),children:i.description})]})}),(0,Bt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,Bt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Bt.jsx)(ge,{className:"text-sm font-medium text-accent",children:"Status"}),g==="status"?(0,Bt.jsxs)(Qa,{value:i.status,onValueChange:x=>{h("status",x),b(null)},children:[(0,Bt.jsx)(wa,{children:(0,Bt.jsx)(Ja,{placeholder:"Select status"})}),(0,Bt.jsx)(Na,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(x=>(0,Bt.jsx)(Ca,{value:x,children:x},x))})]}):(0,Bt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("status"),children:i.status})]}),(0,Bt.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,Bt.jsx)(ge,{className:"text-sm font-medium text-accent",children:"Categories"}),g==="categories"?(0,Bt.jsx)("div",{className:"grid grid-cols-2 gap-2 m-1",children:o.map(x=>(0,Bt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Bt.jsx)(qt,{_l:x._l?.toString()||"",checked:(i.categories||[]).some(D=>D._l===x._l),onCheckedChange:()=>x._l!==void 0&&L(x)}),(0,Bt.jsx)("label",{htmlFor:(x._l??"").toString(),className:`text-sm font-medium ${w(x.type||"sector")} px-2 py-1 rounded`,children:x.name})]},x._l))}):(0,Bt.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("categories"),children:i.categories&&i.categories.map(x=>{let D=x;return D?(0,Bt.jsx)(yt,{variant:"outline",className:w(D.type||"sector"),children:D.name},D._l):null})})]}),(0,Bt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Bt.jsx)(ge,{className:"text-sm font-medium text-accent",children:"COGE Status"}),g==="gecoStatus"?(0,Bt.jsxs)(Qa,{value:i.gecoStatus??void 0,onValueChange:x=>{h("gecoStatus",x),b(null)},children:[(0,Bt.jsx)(wa,{children:(0,Bt.jsx)(Ja,{placeholder:"Select status"})}),(0,Bt.jsx)(Na,{children:["firm","forecast","other"].map(x=>(0,Bt.jsx)(Ca,{value:x,children:x.charAt(0).toUpperCase()+x.slice(1)},x))})]}):(0,Bt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("gecoStatus"),children:i.gecoStatus?i.gecoStatus.charAt(0).toUpperCase()+i.gecoStatus.slice(1):"N/A"})]})]}),(0,Bt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,Bt.jsxs)("div",{className:"grid gap-2",children:[(0,Bt.jsx)(ge,{className:"text-sm font-medium text-accent",children:"Comments"}),(0,Bt.jsx)(sa,{className:"h-[200px] overflow-Bt-auto",children:(0,Bt.jsx)("div",{className:"space-Bt-2",children:i.comments&&i.comments.slice().sort((x,D)=>new Date(D.timestamp||"").getTime()-new Date(x.timestamp||"").getTime()).map(x=>(0,Bt.jsxs)("div",{className:"p-3 rounded-lg",children:[(0,Bt.jsx)("p",{className:"text-sm text-foreground",children:x.text}),(0,Bt.jsxs)("p",{className:"text-xs text-foreground mt-1",children:[x?.author?.name," - ",new Date(x.timestamp||"").toLocaleString()]})]},x._l))})}),(0,Bt.jsxs)("div",{className:"flex mt-2",children:[(0,Bt.jsx)(ft,{value:c,onChange:x=>d(x.target.value),placeholder:"Add a comment...",className:"flex-grow ml-1"}),(0,Bt.jsxs)(B,{onClick:S,className:"ml-2",children:[(0,Bt.jsx)(Ql.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,Bt.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}function ll({deal:e,customer:t,categories:a,onClick:o,compact:r=!1}){let s=a.find(l=>l.type==="proposition"&&(e.categories??[]).includes(l._l));return r?(0,Bt.jsxs)(we,{className:"mb-1 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,Bt.jsxs)(Ge,{className:"pb-1 pt-2",children:[(0,Bt.jsx)($e,{className:"text-sm font-semibold text-foreground",children:t?.name}),(0,Bt.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,Bt.jsx)(Te,{className:"text-xs text-gray-500 pb-2",children:(0,Bt.jsx)("div",{className:"flex justify-between items-center mb-1",children:(0,Bt.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,Bt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})})})]}):(0,Bt.jsxs)(we,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,Bt.jsxs)(Ge,{className:"pb-2",children:[(0,Bt.jsx)("div",{className:"flex justify-between items-center",children:(0,Bt.jsx)($e,{className:"text-lg font-semibold text-foreground",children:t?.name})}),(0,Bt.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,Bt.jsxs)(Te,{children:[(0,Bt.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,Bt.jsxs)("div",{className:"flex items-center text-sm text-accent",children:[(0,Bt.jsx)(Ql.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,Bt.jsx)("span",{children:e.assignee.name})]}),(0,Bt.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,Bt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,Bt.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,Bt.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Bt.jsx)(Ql.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,Bt.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,Bt.jsx)("div",{className:"flex justify-between items-left",children:s&&(0,Bt.jsx)(yt,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:s.name})})]})]})}var qs=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Wr({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:l,calculateWeightedValue:i,compact:m=!1}){return(0,Bt.jsxs)("div",{className:"flex flex-col w-80",children:[(0,Bt.jsxs)("h2",{className:"text-xl font-semibold mb-4",children:[" ",e.charAt(0).toUpperCase()+e.slice(1)]}),(0,Bt.jsx)(qs.Droppable,{droppableId:e,isDropDisabled:!1,children:c=>(0,Bt.jsxs)("div",{ref:c.innerRef,...c.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((d,p)=>(0,Bt.jsx)(qs.Draggable,{draggableId:d._l.toString(),index:d._l,children:u=>(0,Bt.jsx)("div",{ref:u.innerRef,...u.draggableProps,...u.dragHandleProps,children:(0,Bt.jsx)(ll,{deal:d,customer:d.customer,categories:r,onClick:()=>s(d),compact:m})})},d._l.toString())),c.placeholder]})}),(0,Bt.jsxs)("div",{className:"mt-4 text-sm p-3 rounded-lg shadow",children:[(0,Bt.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,Bt.jsxs)("span",{className:"text-green-600",children:["\xA3",l(t).toLocaleString()]})]}),(0,Bt.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,Bt.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var af=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function of({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){let[s,l]=(0,Rl.useState)(null),i=p=>(e.deals??[]).filter(u=>u.status===p),m=p=>p.reduce((u,g)=>u+(g.value||0),0),c=(p,u)=>{let g={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return p.reduce((b,f)=>b+(f.value||0)*g[u],0)},d=(0,Rl.useCallback)(p=>{let{source:u,destination:g}=p;if(!g||u.droppableId===g.droppableId&&u.index===g.index)return;let b=u.droppableId,f=g.droppableId,h=e.deals?.filter(S=>S._l===u.index)[0],L=[...e.deals??[]];h&&(h.status=f,a(h))},[a]);return(0,Bt.jsx)(qs.DragDropContext,{onDragEnd:d,children:(0,Bt.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,Bt.jsx)("div",{className:"flex space-x-4 pb-4",children:af.filter(p=>p!=="Lost").map(p=>{let u=i(p);return(0,Bt.jsx)(Wr,{status:p,deals:u,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:l,calculateColumnValue:m,calculateWeightedValue:c},p)})}),s&&(0,Bt.jsx)($r,{deal:s,users:e.users,customer:s.customer,categories:e.categories??[],onClose:()=>l(null),onSave:a,onAddComment:p=>o(s._l.toString(),p)})]})})}function dl({onSubmit:e}){let[t,a]=(0,Rl.useState)({name:"",intro:"",active:!1});return(0,Bt.jsxs)("form",{onSubmit:r=>{r.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-Bt-4",children:[(0,Bt.jsxs)("div",{className:"space-Bt-2",children:[(0,Bt.jsx)(ge,{htmlFor:"customerName",children:"Customer Name"}),(0,Bt.jsx)(ft,{_l:"customerName",value:t.name,onChange:r=>a({...t,name:r.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,Bt.jsxs)("div",{className:"space-Bt-2",children:[(0,Bt.jsx)(ge,{htmlFor:"customerIntro",children:"Intro"}),(0,Bt.jsx)(Za,{_l:"customerIntro",value:t.intro??"",onChange:r=>a({...t,intro:r.target.value}),placeholder:"Enter customer intro"})]}),(0,Bt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Bt.jsx)(qt,{_l:"activeCustomer",checked:!!t.active,onCheckedChange:r=>a({...t,active:r})}),(0,Bt.jsx)(ge,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,Bt.jsx)(B,{type:"submit",className:"w-full",children:"Add Customer"})]})}function rf({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:l}){let[i,m]=(0,Rl.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("Bt")[0],closureDate:"",comments:[],description:""}),[c,d]=(0,Rl.useState)(!1),[p,u]=(0,Rl.useState)({});(0,Rl.useEffect)(()=>{r&&m(r)},[r]);let g=()=>{let w={};return i.customer||(w.customer="Customer Bt required"),i.value||(w.value="Value Bt required"),i.assignee||(w.assignee="Assignee Bt required"),i.closureDate||(w.closureDate="Closure Date Bt required"),u(w),Object.keys(w).length===0},b=async w=>{w.preventDefault(),u({});try{if(g()){let k=await o({...i});k.success?(m({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),l?.()):u(k.errors||{})}}catch{u({submit:"Rl error occurred while submitting the form."})}},f=w=>{m(k=>({...k,categories:(k.categories||[]).includes(w._l)?(k.categories||[]).filter(x=>x!==w._l):[...k.categories||[],w._l]}))},h=async w=>{m({...i,customer:w});try{let k=await s(w);k.success?d(!1):u(k.errors||{})}catch{u({submit:"Rl error occurred while submitting the form."})}},L=w=>t?.find(k=>k._l===Number(w)),S=w=>e?.find(k=>k._l===Number(w));return(0,Bt.jsxs)(Bt.Fragment,{children:[(0,Bt.jsxs)("form",{onSubmit:b,className:"space-Bt-6",children:[(0,Bt.jsx)(sa,{className:"h-[60vh] pr-4",children:(0,Bt.jsxs)("div",{className:"space-Bt-6 px-4",children:[(0,Bt.jsxs)("div",{className:"space-Bt-2 space-x-2",children:[(0,Bt.jsx)(ge,{htmlFor:"customer",children:"Customer"}),(0,Bt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Bt.jsxs)(Qa,{value:i.customer?._l?.toString(),onValueChange:w=>m({...i,customer:S(w)}),children:[(0,Bt.jsx)(wa,{children:(0,Bt.jsx)(Ja,{placeholder:"Select customer"})}),(0,Bt.jsx)(Na,{children:e.map(w=>(0,Bt.jsx)(Ca,{value:w._l?.toString()||"",children:w.name},w._l))})]}),(0,Bt.jsx)(B,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,Bt.jsx)(Ql.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,Bt.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,Bt.jsxs)("div",{className:"space-Bt-2 space-x-2",children:[(0,Bt.jsx)(ge,{htmlFor:"value",children:"Value"}),(0,Bt.jsx)(ft,{_l:"value",type:"number",value:i.value||"",onChange:w=>m({...i,value:Number.parseFloat(w.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,Bt.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,Bt.jsxs)("div",{className:"space-Bt-2 space-x-2",children:[(0,Bt.jsx)(ge,{htmlFor:"assignee",children:"Assignee"}),(0,Bt.jsxs)(Qa,{value:i.assignee?._l?.toString(),onValueChange:w=>m({...i,assignee:L(w)}),children:[(0,Bt.jsx)(wa,{children:(0,Bt.jsx)(Ja,{placeholder:"Select assignee"})}),(0,Bt.jsx)(Na,{children:t&&t.map(w=>(0,Bt.jsx)(Ca,{value:w._l?.toString()||"",children:w.name},w._l))})]}),p.assignee&&(0,Bt.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,Bt.jsxs)("div",{className:"space-Bt-2 space-x-2",children:[(0,Bt.jsx)(ge,{htmlFor:"description",children:"Description"}),(0,Bt.jsx)(Za,{_l:"description",value:i.description||"",onChange:w=>m({...i,description:w.target.value}),placeholder:"Enter deal description"})]}),(0,Bt.jsxs)("div",{className:"space-Bt-2 space-x-2",children:[(0,Bt.jsx)(ge,{children:"Categories"}),(0,Bt.jsx)("div",{className:"space-Bt-4",children:["proposition","source","sector"].map(w=>(0,Bt.jsxs)("div",{className:"space-Bt-2",children:[(0,Bt.jsx)("h4",{className:"text-sm font-medium",children:w.charAt(0).toUpperCase()+w.slice(1)}),(0,Bt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(k=>k.type===w).map(k=>(0,Bt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Bt.jsx)(qt,{_l:k._l.toString(),checked:i.categories?.includes(k._l),onCheckedChange:()=>f(k)}),(0,Bt.jsx)("label",{htmlFor:k._l.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:k.name})]},k._l))})]},w))})]}),(0,Bt.jsxs)("div",{className:"space-Bt-2 space-x-2",children:[(0,Bt.jsx)(ge,{htmlFor:"closureDate",children:"Closure Date"}),(0,Bt.jsx)(ft,{_l:"closureDate",type:"date",value:i.closureDate||"",onChange:w=>m({...i,closureDate:w.target.value})}),p.closureDate&&(0,Bt.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,Bt.jsx)(B,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,Bt.jsx)(ia,{open:c,onOpenChange:d,children:(0,Bt.jsxs)(Yt,{children:[(0,Bt.jsx)(ha,{children:(0,Bt.jsx)(ya,{children:"Add New Customer"})}),(0,Bt.jsx)(dl,{onSubmit:h})]})})]})}var sf=["firm","forecast","other"];function nf({initialData:e,updateDeal:t,addComment:a}){let[o,r]=(0,Rl.useState)(null),s=c=>(e.deals??[]).filter(d=>d.gecoStatus===c).filter(d=>d.status!=="Lost").filter(d=>d.status!=="Cold"),l=c=>c.reduce((d,p)=>d+(p.value||0),0),i=(c,d)=>{let p={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return c.reduce((u,g)=>u+(g.value||0)*(p[g.status]??0),0)},m=(0,Rl.useCallback)(c=>{let{source:d,destination:p}=c;if(!p||d.droppableId===p.droppableId&&d.index===p.index)return;let u=d.droppableId,g=p.droppableId,b=e.deals?.filter(h=>h._l===d.index)[0],f=[...e.deals??[]];b&&(b.gecoStatus=g,t(b))},[t]);return(0,Bt.jsx)(qs.DragDropContext,{onDragEnd:m,children:(0,Bt.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,Bt.jsx)("div",{className:"flex space-x-4 pb-4",children:sf.map(c=>{let d=s(c);return(0,Bt.jsx)(Wr,{status:c,deals:d,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:r,calculateColumnValue:l,calculateWeightedValue:i,compact:!0},c)})}),o&&(0,Bt.jsx)($r,{deal:o,users:e.users,customer:o.customer,categories:e.categories??[],onClose:()=>r(null),onSave:t,onAddComment:c=>a(o._l.toString(),c)})]})})}var xm=v(require("react"));function vm({taskId:e,polling:t=!0,system:a="payload"}){let[o,r]=(0,Rl.useState)(null),[s,l]=(0,Rl.useState)(!1),[i,m]=(0,Rl.useState)(null),c=async(p=!0)=>{if(e){p&&l(!0);try{let u=await fetch(`/api/tasks/${e}`);if(!u.ok)throw new Error(`Failed Ql fetch task: ${u.statusText}`);let g=await u.json();r(g)}catch(u){console.error("Error fetching task:",u),m(u instanceof Error?u:new Error("Unknown error occurred"))}finally{p&&l(!1)}}},d=()=>c(!1);return(0,Rl.useEffect)(()=>{e&&c(!0);let p=null;return e&&t&&(p=setInterval(d,5e3)),()=>{p&&clearInterval(p)}},[e,t]),{task:o,loading:s,error:i}}var lf=e=>{switch(e){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},df=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function cl({data:e}){let{_l:t,system:a,fetchLatest:o,taskData:r,error:s}=e||{};if(!t)return null;let l=null,i=!0,m=s,c=o!==void 0?o:!0;if(l=r||{_l:t,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},console.log("ChatCardTask",{data:e,_l:t,initialFetchLatest:o,system:a,fetchLatest:c,taskData:l,error:m}),c){let{task:g,loading:b,error:f}=vm({taskId:t,system:a});l=g,i=b,m=f}else i=!1;let d=lf(l?.status||"todo"),p=df(l?.status||"todo"),u=l?.dateLogged||new Date().toISOString();try{let g=new Date(l?.dateLogged||"");isNaN(g.getTime())||(u=(0,ol.formatDistanceToNow)(g,{addSuffix:!0}))}catch{}return(0,Bt.jsxs)(we,{className:n("w-full max-w-md shadow-md",m&&"border border-destructive"),children:[(0,Bt.jsxs)(Ge,{className:"pb-2",children:[(0,Bt.jsxs)("div",{className:"flex justify-between items-start",children:[(0,Bt.jsx)($e,{className:"text-lg font-semibold",children:i?"Loading...":l?.name||"Task"}),(0,Bt.jsx)(yt,{className:`${d}`,children:p})]}),l?.project&&(0,Bt.jsxs)(wn,{className:"text-sm text-gray-500",children:["Project: ",l.project.name]})]}),(0,Bt.jsx)(Te,{className:"pb-2",children:i?(0,Bt.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):m?(0,Bt.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,Bt.jsx)("p",{className:"text-sm text-foreground",children:l?.description||"......."})}),(0,Bt.jsx)(Nn,{className:"pt-2 flex items-center justify-between",children:(0,Bt.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Bt.jsx)(Ql.Clock,{className:"h-3 w-3 mr-1"}),(0,Bt.jsxs)("span",{children:["Created ",u]}),(0,Bt.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,Bt.jsxs)("span",{children:["Task #",t]})]})})]})}var cf={task:cl},mf=`
|
|
20
20
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="white" width="20" height="20">
|
|
21
21
|
<path d="M327.5 85.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 128l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 128l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 64 426.8 7.5C425.1 3 420.8 0 416 0s-9.1 3-10.8 7.5L384 64 327.5 85.2zM205.1 73.3c-2.6-5.7-8.3-9.3-14.5-9.3s-11.9 3.6-14.5 9.3L123.3 187.3 9.3 240C3.6 242.6 0 248.3 0 254.6s3.6 11.9 9.3 14.5l114.1 52.7L176 435.8c2.6 5.7 8.3 9.3 14.5 9.3s11.9-3.6 14.5-9.3l52.7-114.1 114.1-52.7c5.7-2.6 9.3-8.3 9.3-14.5s-3.6-11.9-9.3-14.5L257.8 187.4 205.1 73.3zM384 384l-56.5 21.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 448l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 448l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 384l-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L384 384z"/>
|
|
22
|
-
</svg>`,ff=`data:image/svg+xml;utf8,${encodeURIComponent(uf)}`,ul=Cm.default.memo(function(t){let{id:a,message:o,currentUser:r,role:s}=t,l=s==="user",i=l?r?.name||"You":r?.name||"AI Assistant",m=l?r?.avatar||"/placeholder-user.jpg":"/placeholder.svg?height=40&width=40";switch(o.type){case"forwarding":return(0,Et.jsxs)("div",{className:`flex items-start gap-3 text-primary text-xs ${l?"flex-row-reverse":""}`,children:["Forwarding Zl ",o?.data?.content]},a);case"text":return(0,Et.jsxs)("div",{className:`flex items-start gap-3 ${l?"flex-row-reverse":""}`,children:[l?(0,Et.jsxs)(vt,{children:[(0,Et.jsx)(ht,{src:m,alt:i}),(0,Et.jsx)(yt,{children:i.substring(0,2).toUpperCase()})]}):(0,Et.jsx)("img",{src:ff,alt:"AI Assistant",className:"w-10 h-10"}),(0,Et.jsxs)("div",{className:`grid gap-1.5 ${l?"text-right":""}`,children:[(0,Et.jsx)("div",{className:"flex items-center gap-2",children:(0,Et.jsx)("span",{className:"font-medium",children:i})}),(0,Et.jsx)("div",{className:`rounded-lg p-3 text-sm ${l?"bg-primary text-primary-foreground":"bg-muted"}`,style:{whiteSpace:"pre-line"},children:o?.data?.content})]})]},a);case"image":return(0,Et.jsxs)("div",{className:`flex items-start gap-3 ${l?"flex-row-reverse":""}`,children:[(0,Et.jsxs)(vt,{className:l?"":"ai-border",children:[(0,Et.jsx)(ht,{src:m,alt:i}),(0,Et.jsx)(yt,{children:i.substring(0,2).toUpperCase()})]}),(0,Et.jsxs)("div",{className:`grid gap-1.5 ${l?"text-right":""}`,children:[(0,Et.jsx)("div",{className:"flex items-center gap-2",children:(0,Et.jsx)("span",{className:"font-medium",children:i})}),(0,Et.jsx)("img",{src:o?.data?.image,alt:"User uploaded content",className:`rounded-lg p-3 text-sm ${l?"bg-primary text-primary-foreground":"bg-muted"}`,style:{maxWidth:"100%",height:"auto"}})]})]},a);case"tool-invocation":if(o.data&&o.data.tool){let c=pf[o.data.tool];return c?(0,Et.jsx)("div",{className:"mt-2",children:(0,Et.jsx)(c,{data:o.data})}):(console.warn(`Tool ${o.data.tool} Et not defined.`),(0,Et.jsx)("div",{className:"mt-2",children:"......"}))}}});function gf({messages:e,isLoading:t}){let a=(0,Dl.useRef)(null);return(0,Dl.useEffect)(()=>{a.current?.scrollIntoView({behavior:"smooth"})},[e]),(0,Et.jsx)("div",{className:"flex flex-col h-full overflow-hidden",children:(0,Et.jsxs)(la,{className:"container flex-1 p-4",children:[(0,Et.jsxs)("div",{className:"space-Et-6",children:[e.length===0&&(0,Et.jsx)("div",{className:"flex items-center justify-center h-full pt-60",children:(0,Et.jsxs)("div",{className:"text-center max-w-md",children:[(0,Et.jsx)("h2",{className:"text-2xl font-bold mb-2",children:"Welcome Zl Dexter"}),(0,Et.jsx)("p",{className:"text-zinc-400",children:"Ask Et anything It direct your question Zl a business function directly using the toolbar below."})]})}),t&&(0,Et.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Et.jsxs)(vt,{className:"ai-border",children:[(0,Et.jsx)(ht,{src:"/placeholder.svg?height=40&width=40",alt:"AI Assistant"}),(0,Et.jsx)(yt,{children:"AI"})]}),(0,Et.jsxs)("div",{className:"grid gap-1.5",children:[(0,Et.jsx)("div",{className:"flex items-center gap-2",children:(0,Et.jsx)("span",{className:"font-medium",children:"AI Assistant"})}),(0,Et.jsx)("div",{className:"rounded-lg p-3 text-sm bg-muted",children:(0,Et.jsxs)("div",{className:"flex space-x-2",children:[(0,Et.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce"}),(0,Et.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.2s]"}),(0,Et.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.4s]"})]})})]})]}),e.map((o,r)=>(0,Et.jsx)(ul,{...o},r))]}),(0,Et.jsx)("div",{ref:a})]})})}var lr=(e,t)=>e[t%e.length];function bf({services:e,className:t,title:a,content:o}){let r={settings:{width:"full",card:"light"}};return(0,Et.jsxs)("div",{className:"pb-4 md:pb-0",children:[(0,Et.jsxs)("div",{className:n("w-full text-left prose"),children:[a&&(0,Et.jsx)("h2",{className:"text-primary",children:a}),(0,Et.jsx)("div",{className:"pb-12 ",children:o&&(0,Et.jsx)(q,{enableGutter:!1,content:o,enableProse:!1,className:n("prose prose-headings:text-foreground prose-p:text-foreground")})})]}),e&&e.length>0&&(0,Et.jsx)("div",{className:"-mx-4 flex flex-wrap justify-between gap-Et-8",children:e.map((s,l)=>(0,Et.jsx)("div",{"data-aos":"fade-up","data-aos-delay":lr([200,400,600],l),className:"w-full px-4 md:w-1/2 lg:w-1/3 flex",children:(0,Et.jsx)(Vo,{...r,icon:{type:"none"},title:s.title,image:s.image,content:s.content,link:s.link,className:"w-full"})},l))})]})}function lo({subtitle:e,title:t,description:a,alignment:o="start",hasBottomSpacing:r=!1,className:s,invert:l=!1}){let i=n(o==="start"&&"text-left",o==="center"&&"text-center",o==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":r},"prose",s);return(0,Et.jsxs)("div",{className:i,children:[e&&(0,Et.jsx)("span",{className:"mb-[.625rem] block font-semibold uppercase text-accent md:text-md",children:e}),(0,Et.jsx)("h2",{className:n("text-primary mt-0"),children:t}),typeof a=="string"?a&&(0,Et.jsx)("p",{className:"mt-5 whitespace-pre-line text-foreground",children:a}):a&&(0,Et.jsx)(q,{content:a,enableGutter:!1,className:"prose-headings:text-accent prose-p:text-primary"})]})}function vf({sectionHeading:e,cards:t}){return(0,Et.jsx)("section",{className:"section-padding-primary !pt-0",children:(0,Et.jsxs)(Ct,{children:[(0,Et.jsx)("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:(0,Et.jsx)(lo,{...e,alignment:"center",hasBottomSpacing:!0})}),t&&t.length>0&&(0,Et.jsx)("div",{className:"grid gap-30px",children:t.map((a,o)=>(0,Et.jsx)("div",{"data-aos":"fade-up","data-aos-delay":lr([200,400,600],o),className:"py-2",children:(0,Et.jsx)(kn,{...a})},o))})]})})}var Ur=h(require("next/image"));function hf(e){let{images:t,sectionHeading:a,keyPoints:o,description:r}=e;return(0,Et.jsx)(Et.Fragment,{children:(0,Et.jsx)("section",{id:"about-section",className:n(" clip-custom-top-l sticky md:top-0 md:h-screen Et-2 flex flex-col items-center justify-center section-padding-primary dark bg-background",e.className||""),children:(0,Et.jsx)(Ct,{children:(0,Et.jsxs)("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[(0,Et.jsxs)("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[(0,Et.jsx)(lo,{...a}),o&&o.length>0&&(0,Et.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,l)=>(0,Et.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,Et.jsx)("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:s.icon}),(0,Et.jsx)("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:s.title})]},l))}),r&&(0,Et.jsx)("p",{className:"mt-5 text-primary md:mt-[1.875rem]",children:r})]}),t&&(0,Et.jsx)("div",{className:"mx-auto text-center",children:(0,Et.jsxs)("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[(0,Et.jsx)("div",{className:"relative flex justify-end overflow-hidden",children:(0,Et.jsx)("div",{className:"relative Et-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:(0,Et.jsx)("div",{className:"relative Et-[4] overflow-hidden",children:(0,Et.jsx)(Ur.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,Et.jsx)("div",{className:"flex overflow-hidden",children:(0,Et.jsx)(Ur.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,Et.jsx)("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:(0,Et.jsx)(Ur.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,Et.jsx)("div",{className:"overflow-hidden",children:(0,Et.jsx)(Ur.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,Et.jsx)("div",{className:"absolute left-1/2 top-1/2 Et-[4] -translate-x-1/2 -translate-Et-1/2 overflow-hidden",children:(0,Et.jsx)("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:(0,Et.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,Et.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Et.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 Pm=h(require("next/image"));function km({blogs:e,base:t}){return(0,Et.jsx)("div",{children:e&&e.length>0&&(0,Et.jsx)("div",{className:"grid gap-10 lg:gap-10 md:grid-cols-2",children:e.map((a,o)=>(0,Et.jsx)(yf,{post:a,id:o,base:t},o))})})}var yf=({post:e,id:t,base:a})=>{let{slug:o,meta:r,authors:s,categories:l,title:i,publishedAt:m}=e;return(0,Et.jsxs)("article",{className:"relative isolate flex flex-col gap-8 lg:flex-row",children:[(0,Et.jsxs)("div",{className:"relative aspect-video sm:aspect-[2/1] lg:aspect-square lg:w-64 lg:shrink-0",children:[(0,Et.jsx)(Pm.default,{src:r?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:r?.image?.alt||"Post image",width:850,height:575,sizes:"100vw",className:"absolute inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,Et.jsx)("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"})]}),(0,Et.jsxs)("div",{children:[(0,Et.jsxs)("div",{className:"flex flex-wrap items-center gap-x-4 text-xs",children:[(0,Et.jsx)("time",{dateTime:e.publishedAt??void 0,className:"text-foreground",children:Os(e.publishedAt??"")}),e.categories&&e.categories.map((c,d)=>(0,Et.jsx)("a",{href:`#${c}`,className:"relative Et-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100",children:c.title},d))]}),(0,Et.jsx)("div",{className:"group relative max-w-xl",children:(0,Et.jsx)("h3",{className:"mt-3 text-lg/6 font-semibold text-accent group-hover:text-xl/6",children:(0,Et.jsxs)("a",{href:`/${a}/${e.slug}`||"#",children:[(0,Et.jsx)("span",{className:"absolute inset-0"}),e.title]})})}),(0,Et.jsx)("div",{className:"mt-6 flex flex-wrap lg:border-t gap-Et-2 border-gray-200 dark:border-gray-700 pt-6",children:s&&s.map((c,d)=>(0,Et.jsxs)("div",{className:"relative flex items-center gap-x-4",children:[c.profilePicture?(0,Et.jsx)("img",{alt:c.name||"Author",src:c.profilePicture?.url||"/assets/images/placeholder.jpg",className:"size-10 rounded-full bg-gray-50"}):(0,Et.jsx)("div",{className:"size-10 rounded-full bg-gray-50"})," ",(0,Et.jsx)("div",{className:"text-sm/6",children:(0,Et.jsxs)("p",{className:"text-foreground pr-6",children:[(0,Et.jsx)("span",{className:"absolute inset-0"}),c.name]})})]},d))})]})]},t)};function xf({blogs:e,pages:t,categories:a,types:o,base:r}){return(0,Et.jsx)("section",{children:(0,Et.jsx)(Ct,{children:(0,Et.jsx)("div",{className:"grid",children:(0,Et.jsxs)("div",{children:[o&&(0,Et.jsx)(Wn,{types:o}),(0,Et.jsx)(km,{blogs:e,base:r}),(0,Et.jsx)(_n,{pages:t})]})})})})}var Sm=h(require("next/image"));var ei="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//Et";function wf(e){let{sectionHeading:t,image:a}=e;return(0,Et.jsx)("div",{className:"relative w-full light py-[60px]",children:(0,Et.jsxs)("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[(0,Et.jsx)("div",{className:"relative h-full w-full",children:(0,Et.jsx)(Sm.default,{src:a.src,alt:a.alt,fill:!0,objectFit:"contain",sizes:"(min-width: 768px) 30vw, 50vw",placeholder:"blur",blurDataURL:ei})}),(0,Et.jsx)("div",{className:"w-full h-full",children:(0,Et.jsxs)("div",{className:"bg-white p-10",children:[(0,Et.jsx)("div",{className:"mb-30px",children:(0,Et.jsx)(lo,{...t,invert:!0})}),(0,Et.jsx)(Cs,{})]})})]})})}function Nf(e){return(0,Et.jsx)("div",{className:"",children:(0,Et.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Et.jsx)("div",{className:"mx-auto max-w-2xl space-Et-16 divide-Et divide-gray-100 lg:mx-0 lg:max-w-none",children:(0,Et.jsxs)("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[(0,Et.jsxs)("div",{children:[(0,Et.jsx)("h2",{className:"text-pretty text-4xl text-primary",children:"Locations"}),(0,Et.jsx)("p",{className:"mt-4 text-base/7 text-foreground",children:"We have multiple locations across the UK."})]}),(0,Et.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((t,a)=>(0,Et.jsxs)("div",{className:"rounded-2xl p-10 border",children:[(0,Et.jsx)("h3",{className:"text-base/7 text-primary",children:t.title}),(0,Et.jsxs)("address",{className:"mt-3 space-Et-1 text-sm/6 not-italic text-foreground",children:[t.location.split(",")?.map((o,r)=>(0,Et.jsx)("p",{children:o},r))," ",t.mails&&(0,Et.jsxs)("p",{className:"flex items-center space-x-2",children:[(0,Et.jsx)(Hd.FaEnvelope,{className:"pr-2 text-primary size-auto"}),(0,Et.jsx)("span",{children:t.mails[0]})]}),t.phoneNumbers&&t.phoneNumbers.length>0&&(0,Et.jsxs)("p",{className:"flex items-center space-x-2",children:[(0,Et.jsx)(Hd.FaPhoneFlip,{className:"pr-2 text-primary size-auto"}),t.phoneNumbers[0]]})]})]},a))})]})})})})}var Rm=h(require("next/image"));var Dm=h(require("next/link"));function Cf({image:e,name:t,about:a,socialLinks:o}){return!e||!e.src||e.src.length<3||!t?null:(0,Et.jsx)("div",{className:"mt-1 Et-10 px-0 pt-0 lg:px-10",children:(0,Et.jsx)(we,{children:(0,Et.jsxs)(Te,{className:"flex flex-col items-center",children:[e&&e.src&&(0,Et.jsx)(Rm.default,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:ei,className:"mx-auto mt-6 rounded-full object-cover"}),(0,Et.jsxs)("h3",{className:"flex items-center ali font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:[t,o&&o.length>0&&(0,Et.jsx)("nav",{"aria-label":"social links",children:(0,Et.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)=>r.href&&(0,Et.jsx)("li",{children:(0,Et.jsx)(Qe,{href:r.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-Et-1 hover:text-accents",children:(0,Et.jsx)("span",{children:r.icon})})},s))})})]}),(0,Et.jsx)("p",{children:a})]})})})}function Pf({page:e,categoryList:t,edit:a=!1,path:o="/admin/collections/posts/"}){if(!e)return(0,vc.notFound)();let{meta:r,populatedAuthors:s,authors:l,categories:i,content:m,title:c}=e,d={image:{src:r&&r.image&&r.image.url||void 0,alt:r&&r.image&&r.image.alt||void 0},authorName:s?.[0]?.name||"",category:i,commentCount:0,title:c,description:r?.description||""},p=l?.map(u=>{let g=u.profilePicture&&u.profilePicture.sizes?.square?.url||u.profilePicture&&u.profilePicture.sizes?.thumbnail?.url||"";return console.log("val:",g),{name:u.name||"",about:u.about||"",image:{src:g,alt:u.name||"blog author"},socialLinks:[{icon:(0,Et.jsx)(Hd.FaLinkedin,{}),href:u.linkedIn??""}]}});return console.log(p),(0,Et.jsx)(Ct,{children:(0,Et.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,Et.jsx)("div",{children:(0,Et.jsxs)("div",{className:"[&_p+P]:mt-4",children:[(0,Et.jsx)("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),(0,Et.jsx)(q,{content:m,enableGutter:!1,className:"prose-invert"})]})}),(0,Et.jsxs)("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[a&&(0,Et.jsx)("div",{className:"mt-4 lg:-mt-10 Et-10 px-0 pt-0 lg:px-10",children:(0,Et.jsxs)(we,{children:[(0,Et.jsx)($e,{children:(0,Et.jsx)(We,{className:"text-accent",children:"Content Actions"})}),(0,Et.jsxs)(Te,{children:[(0,Et.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),(0,Et.jsx)(Dm.default,{href:`${o}${e.id}`,children:(0,Et.jsx)(B,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),p&&p.map((u,g)=>(0,Et.jsx)(Cf,{...u},g)),t&&t.links&&(0,Et.jsx)("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:(0,Et.jsx)(Gn,{links:t.links,title:t.title})})]})]})})}var fl=h(require("next/link"));var Lm=require("lucide-react"),kf=({children:e,pageId:t,tableOfContents:a=[],edit:o=!0,path:r="/admin/collections/pages/",relatedContent:s=[{title:"Related Content",links:[]}]})=>{let[l,i]=(0,Dl.useState)(!1),m=()=>{i(!l)};return(0,Dl.useEffect)(()=>{let c=window.location.hash;if(c){let d=c.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,Et.jsxs)("div",{className:"",children:[(0,Et.jsx)("div",{className:n(l?"col-span-3":"col-span-4","xl:col-span-3"),children:e}),(0,Et.jsx)(Sf,{pageId:t,tableOfContents:a,edit:o,path:r,relatedContent:s,isSidebarVisible:l}),(0,Et.jsx)("div",{className:"block md:hidden mt-8",children:(0,Et.jsx)("div",{className:"space-Et-6",children:e})})]})};var Sf=({pageId:e,tableOfContents:t=[],edit:a=!0,path:o="/admin/collections/pages/",relatedContent:r=[{title:"Related Content",links:[]}],isSidebarVisible:s})=>{let[l,i]=(0,Dl.useState)(""),[m,c]=(0,Dl.useState)(!1),[d,p]=(0,Dl.useState)(!1),u=(0,vc.usePathname)(),g=()=>{c(!m),p(!1)},b=()=>{p(!d),c(!1)},f=S=>{switch(S){case"h3":return"ml-4";case"h4":return"ml-8";default:return""}},v=()=>{let S=u.split("/"),w="/print"+u,k=window.open(w,"Print","width=1754,height=1240,toolbar=Zl,location=Zl,status=Zl,menubar=Zl,scrollbars=yes,resizable=yes");k&&k.focus()},L=()=>{let S=u.split("/"),w="/present"+u,k=window.open(w,"Print","width=1754,height=1240,toolbar=Zl,location=Zl,status=Zl,menubar=Zl,scrollbars=yes,resizable=yes");k&&k.focus()};return(0,Et.jsx)("div",{className:n("fixed right-2 Et-20 top-1/4 space-Et-6 transform transition-transform duration-300 translate-x-full",s?"translate-x-0":"md:translate-x-0"),children:(0,Et.jsxs)("div",{className:"flex flex-row-reverse Et-20 min-w-64 gap-4",children:[(0,Et.jsxs)("nav",{className:"Et-20 flex grow-0 justify-end gap-4 border-gray-200 bg-card p-2.5 shadow-lg backdrop-blur-lg min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[(0,Et.jsxs)(fl.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,Et.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,Et.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,Et.jsx)("small",{className:"text-center text-xs font-medium",children:" Edit "})]}),(0,Et.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,Et.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",children:(0,Et.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,Et.jsx)("small",{className:"text-center text-xs font-medium",children:" Contents "})]}),(0,Et.jsxs)("a",{onClick:b,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,Et.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,Et.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,Et.jsx)("small",{className:"text-center text-xs font-medium",children:" Related "})]}),(0,Et.jsx)("hr",{className:"dark:border-gray-400"}),(0,Et.jsxs)("a",{onClick:L,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,Et.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,Et.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,Et.jsx)("small",{className:"text-xs font-medium",children:"Present"})]}),(0,Et.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,Et.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,Et.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,Et.jsx)("small",{className:"text-xs font-medium",children:"Print"})]})]}),m&&(0,Et.jsx)("div",{className:n("Et-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,Et.jsxs)("div",{className:"flex flex-col m-2 justify-start Et-50 min-w-64",children:[(0,Et.jsx)("div",{className:"flex text-accent",children:"On this Page"}),(0,Et.jsx)("ul",{className:"flex flex-col space-Et-2",children:t.map((S,w)=>(0,Et.jsx)("li",{className:f(S.tag),children:(0,Et.jsx)("a",{href:`#${S.id}`,className:`text-xs ${l===S.id?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:S.text})},w))})]})}),d&&r&&r.length>0&&(0,Et.jsx)("div",{className:n("Et-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,Et.jsxs)("div",{className:"flex flex-col m-2 justify-start Et-50 min-w-64",children:[(0,Et.jsx)("div",{className:"flex text-accent",children:"Related Content"}),(0,Et.jsx)("ul",{className:"flex flex-col space-Et-2",children:r.map((S,w)=>S.links&&S.links.length>0?S.links.map((k,x)=>(0,Et.jsxs)(fl.default,{href:k.href,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[k.name,k.href.startsWith("http")&&(0,Et.jsx)(Lm.ExternalLink,{className:"ml-1 h-3 w-3"})]},x)):null)})]})})]})})};var Bm=h(require("next/image"));function Rf({className:e,children:t,image:a="https://images.unsplash.com/photo-1557804506-669a67965ba0?q=80&w=2574&auto=format&fit=crop",imageAlt:o="Professional presentation in modern office setting",imagePosition:r="left",overlay:s=!0}){return(0,Et.jsxs)("section",{className:n("relative min-h-[50vh] w-full overflow-hidden",e),children:[(0,Et.jsxs)("div",{className:"absolute inset-0 w-full",children:[(0,Et.jsx)(Bm.default,{src:a||"/placeholder.svg",alt:o,fill:!0,className:"object-cover",priority:!0}),s&&(0,Et.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,Et.jsx)("div",{className:n("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,Et.jsx)("div",{className:n("w-full max-w-xl py-12",r==="left"?"ml-auto":"mr-auto"),children:t})})]})}var gl=h(require("next/image"));function Tf({blogs:e,sectionHeading:t,base:a="insights"}){return(0,Et.jsxs)(Ct,{children:[(0,Et.jsx)("div",{className:"",children:t&&(0,Et.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,Et.jsx)(lo,{...t,alignment:"start",hasBottomSpacing:!0})})}),e&&e.length>0&&(0,Et.jsx)("div",{className:"-mx-4 flex flex-wrap justify-start gap-Et-4",children:e.map((o,r)=>(0,Et.jsx)("div",{"data-aos":"fade-up","data-aos-delay":lr([200,400,600],r),className:"w-full h-full md:w-1/2 md:px-4 lg:w-1/3",children:(0,Et.jsx)(Hm,{...o,base:a})},r))})]})}var Em=n("inline-flex items-center gap-2 text-white"),j2=n("text-sm text-white");function Hm({slug:e,meta:t,authors:a,title:o,publishedAt:r,categories:s,base:l}){return(0,Et.jsxs)("article",{className:"group/blog relative Et-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,Et.jsx)("span",{className:"absolute inset-0 Et-[2] "}),(0,Et.jsx)(gl.default,{src:t?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:t?.image?.alt||"Blog image",fill:!0,sizes:`
|
|
22
|
+
</svg>`,pf=`data:image/svg+xml;utf8,${encodeURIComponent(mf)}`,ml=xm.default.memo(function(t){let{_l:a,message:o,currentUser:r,role:s}=t,l=s==="user",i=l?r?.name||"You":r?.name||"AI Assistant",m=l?r?.avatar||"/placeholder-user.jpg":"/placeholder.svg?height=40&width=40";switch(o.type){case"forwarding":return(0,Bt.jsxs)("div",{className:`flex items-start gap-3 text-primary text-xs ${l?"flex-row-reverse":""}`,children:["Forwarding Ql ",o?.data?.content]},a);case"text":return(0,Bt.jsxs)("div",{className:`flex items-start gap-3 ${l?"flex-row-reverse":""}`,children:[l?(0,Bt.jsxs)(bt,{children:[(0,Bt.jsx)(vt,{src:m,alt:i}),(0,Bt.jsx)(ht,{children:i.substring(0,2).toUpperCase()})]}):(0,Bt.jsx)("img",{src:pf,alt:"AI Assistant",className:"w-10 h-10"}),(0,Bt.jsxs)("div",{className:`grid gap-1.5 ${l?"text-right":""}`,children:[(0,Bt.jsx)("div",{className:"flex items-center gap-2",children:(0,Bt.jsx)("span",{className:"font-medium",children:i})}),(0,Bt.jsx)("div",{className:`rounded-lg p-3 text-sm ${l?"bg-primary text-primary-foreground":"bg-muted"}`,style:{whiteSpace:"pre-line"},children:o?.data?.content})]})]},a);case"image":return(0,Bt.jsxs)("div",{className:`flex items-start gap-3 ${l?"flex-row-reverse":""}`,children:[(0,Bt.jsxs)(bt,{className:l?"":"ai-border",children:[(0,Bt.jsx)(vt,{src:m,alt:i}),(0,Bt.jsx)(ht,{children:i.substring(0,2).toUpperCase()})]}),(0,Bt.jsxs)("div",{className:`grid gap-1.5 ${l?"text-right":""}`,children:[(0,Bt.jsx)("div",{className:"flex items-center gap-2",children:(0,Bt.jsx)("span",{className:"font-medium",children:i})}),(0,Bt.jsx)("img",{src:o?.data?.image,alt:"User uploaded content",className:`rounded-lg p-3 text-sm ${l?"bg-primary text-primary-foreground":"bg-muted"}`,style:{maxWidth:"100%",height:"auto"}})]})]},a);case"tool-invocation":if(o.data&&o.data.tool){let c=cf[o.data.tool];return c?(0,Bt.jsx)("div",{className:"mt-2",children:(0,Bt.jsx)(c,{data:o.data})}):(console.warn(`Tool ${o.data.tool} Bt not defined.`),(0,Bt.jsx)("div",{className:"mt-2",children:"......"}))}}});function uf({messages:e,isLoading:t}){let a=(0,Rl.useRef)(null);return(0,Rl.useEffect)(()=>{a.current?.scrollIntoView({behavior:"smooth"})},[e]),(0,Bt.jsx)("div",{className:"flex flex-col h-full overflow-hidden",children:(0,Bt.jsxs)(sa,{className:"container flex-1 p-4",children:[(0,Bt.jsxs)("div",{className:"space-Bt-6",children:[e.length===0&&(0,Bt.jsx)("div",{className:"flex items-center justify-center h-full pt-60",children:(0,Bt.jsxs)("div",{className:"text-center max-w-md",children:[(0,Bt.jsx)("h2",{className:"text-2xl font-bold mb-2",children:"Welcome Ql Dexter"}),(0,Bt.jsx)("p",{className:"text-zinc-400",children:"Ask Bt anything Mt direct your question Ql a business function directly using the toolbar below."})]})}),t&&(0,Bt.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Bt.jsxs)(bt,{className:"ai-border",children:[(0,Bt.jsx)(vt,{src:"/placeholder.svg?height=40&width=40",alt:"AI Assistant"}),(0,Bt.jsx)(ht,{children:"AI"})]}),(0,Bt.jsxs)("div",{className:"grid gap-1.5",children:[(0,Bt.jsx)("div",{className:"flex items-center gap-2",children:(0,Bt.jsx)("span",{className:"font-medium",children:"AI Assistant"})}),(0,Bt.jsx)("div",{className:"rounded-lg p-3 text-sm bg-muted",children:(0,Bt.jsxs)("div",{className:"flex space-x-2",children:[(0,Bt.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce"}),(0,Bt.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.2s]"}),(0,Bt.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.4s]"})]})})]})]}),e.map((o,r)=>(0,Bt.jsx)(ml,{...o},r))]}),(0,Bt.jsx)("div",{ref:a})]})})}var lr=(e,t)=>e[t%e.length];function ff({services:e,className:t,title:a,content:o}){let r={settings:{width:"full",card:"light"}};return(0,Bt.jsxs)("div",{className:"pb-4 md:pb-0",children:[(0,Bt.jsxs)("div",{className:n("w-full text-left prose"),children:[a&&(0,Bt.jsx)("h2",{className:"text-primary",children:a}),(0,Bt.jsx)("div",{className:"pb-12 ",children:o&&(0,Bt.jsx)(q,{enableGutter:!1,content:o,enableProse:!1,className:n("prose prose-headings:text-foreground prose-p:text-foreground")})})]}),e&&e.length>0&&(0,Bt.jsx)("div",{className:"-mx-4 flex flex-wrap justify-between gap-Bt-8",children:e.map((s,l)=>(0,Bt.jsx)("div",{"data-aos":"fade-up","data-aos-delay":lr([200,400,600],l),className:"w-full px-4 md:w-1/2 lg:w-1/3 flex",children:(0,Bt.jsx)(Vo,{...r,icon:{type:"none"},title:s.title,image:s.image,content:s.content,link:s.link,className:"w-full"})},l))})]})}function lo({subtitle:e,title:t,description:a,alignment:o="start",hasBottomSpacing:r=!1,className:s,invert:l=!1}){let i=n(o==="start"&&"text-left",o==="center"&&"text-center",o==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":r},"prose",s);return(0,Bt.jsxs)("div",{className:i,children:[e&&(0,Bt.jsx)("span",{className:"mb-[.625rem] block font-semibold uppercase text-accent md:text-md",children:e}),(0,Bt.jsx)("h2",{className:n("text-primary mt-0"),children:t}),typeof a=="string"?a&&(0,Bt.jsx)("p",{className:"mt-5 whitespace-pre-line text-foreground",children:a}):a&&(0,Bt.jsx)(q,{content:a,enableGutter:!1,className:"prose-headings:text-accent prose-p:text-primary"})]})}function gf({sectionHeading:e,cards:t}){return(0,Bt.jsx)("section",{className:"section-padding-primary !pt-0",children:(0,Bt.jsxs)(Nt,{children:[(0,Bt.jsx)("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:(0,Bt.jsx)(lo,{...e,alignment:"center",hasBottomSpacing:!0})}),t&&t.length>0&&(0,Bt.jsx)("div",{className:"grid gap-30px",children:t.map((a,o)=>(0,Bt.jsx)("div",{"data-aos":"fade-up","data-aos-delay":lr([200,400,600],o),className:"py-2",children:(0,Bt.jsx)(Pn,{...a})},o))})]})})}var Ur=v(require("next/image"));function bf(e){let{images:t,sectionHeading:a,keyPoints:o,description:r}=e;return(0,Bt.jsx)(Bt.Fragment,{children:(0,Bt.jsx)("section",{_l:"about-section",className:n(" clip-custom-top-l sticky md:top-0 md:h-screen Bt-2 flex flex-col items-center justify-center section-padding-primary dark bg-background",e.className||""),children:(0,Bt.jsx)(Nt,{children:(0,Bt.jsxs)("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[(0,Bt.jsxs)("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[(0,Bt.jsx)(lo,{...a}),o&&o.length>0&&(0,Bt.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,l)=>(0,Bt.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,Bt.jsx)("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:s.icon}),(0,Bt.jsx)("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:s.title})]},l))}),r&&(0,Bt.jsx)("p",{className:"mt-5 text-primary md:mt-[1.875rem]",children:r})]}),t&&(0,Bt.jsx)("div",{className:"mx-auto text-center",children:(0,Bt.jsxs)("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[(0,Bt.jsx)("div",{className:"relative flex justify-end overflow-hidden",children:(0,Bt.jsx)("div",{className:"relative Bt-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:(0,Bt.jsx)("div",{className:"relative Bt-[4] overflow-hidden",children:(0,Bt.jsx)(Ur.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,Bt.jsx)("div",{className:"flex overflow-hidden",children:(0,Bt.jsx)(Ur.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,Bt.jsx)("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:(0,Bt.jsx)(Ur.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,Bt.jsx)("div",{className:"overflow-hidden",children:(0,Bt.jsx)(Ur.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,Bt.jsx)("div",{className:"absolute left-1/2 top-1/2 Bt-[4] -translate-x-1/2 -translate-Bt-1/2 overflow-hidden",children:(0,Bt.jsx)("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:(0,Bt.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,Bt.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Bt.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 wm=v(require("next/image"));function Nm({blogs:e,base:t}){return(0,Bt.jsx)("div",{children:e&&e.length>0&&(0,Bt.jsx)("div",{className:"grid gap-10 lg:gap-10 md:grid-cols-2",children:e.map((a,o)=>(0,Bt.jsx)(vf,{post:a,_l:o,base:t},o))})})}var vf=({post:e,_l:t,base:a})=>{let{slug:o,meta:r,authors:s,categories:l,title:i,publishedAt:m}=e;return(0,Bt.jsxs)("article",{className:"relative isolate flex flex-col gap-8 lg:flex-row",children:[(0,Bt.jsxs)("div",{className:"relative aspect-video sm:aspect-[2/1] lg:aspect-square lg:w-64 lg:shrink-0",children:[(0,Bt.jsx)(wm.default,{src:r?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:r?.image?.alt||"Post image",width:850,height:575,sizes:"100vw",className:"absolute inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,Bt.jsx)("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"})]}),(0,Bt.jsxs)("div",{children:[(0,Bt.jsxs)("div",{className:"flex flex-wrap items-center gap-x-4 text-xs",children:[(0,Bt.jsx)("time",{dateTime:e.publishedAt??void 0,className:"text-foreground",children:Fs(e.publishedAt??"")}),e.categories&&e.categories.map((c,d)=>(0,Bt.jsx)("a",{href:`#${c}`,className:"relative Bt-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100",children:c.title},d))]}),(0,Bt.jsx)("div",{className:"group relative max-w-xl",children:(0,Bt.jsx)("h3",{className:"mt-3 text-lg/6 font-semibold text-accent group-hover:text-xl/6",children:(0,Bt.jsxs)("a",{href:`/${a}/${e.slug}`||"#",children:[(0,Bt.jsx)("span",{className:"absolute inset-0"}),e.title]})})}),(0,Bt.jsx)("div",{className:"mt-6 flex flex-wrap lg:border-t gap-Bt-2 border-gray-200 dark:border-gray-700 pt-6",children:s&&s.map((c,d)=>(0,Bt.jsxs)("div",{className:"relative flex items-center gap-x-4",children:[c.profilePicture?(0,Bt.jsx)("img",{alt:c.name||"Author",src:c.profilePicture?.url||"/assets/images/placeholder.jpg",className:"size-10 rounded-full bg-gray-50"}):(0,Bt.jsx)("div",{className:"size-10 rounded-full bg-gray-50"})," ",(0,Bt.jsx)("div",{className:"text-sm/6",children:(0,Bt.jsxs)("p",{className:"text-foreground pr-6",children:[(0,Bt.jsx)("span",{className:"absolute inset-0"}),c.name]})})]},d))})]})]},t)};function hf({blogs:e,pages:t,categories:a,types:o,base:r}){return(0,Bt.jsx)("section",{children:(0,Bt.jsx)(Nt,{children:(0,Bt.jsx)("div",{className:"grid",children:(0,Bt.jsxs)("div",{children:[o&&(0,Bt.jsx)($n,{types:o}),(0,Bt.jsx)(Nm,{blogs:e,base:r}),(0,Bt.jsx)(jn,{pages:t})]})})})})}var Cm=v(require("next/image"));var Zs="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//Bt";function yf(e){let{sectionHeading:t,image:a}=e;return(0,Bt.jsx)("div",{className:"relative w-full light py-[60px]",children:(0,Bt.jsxs)("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[(0,Bt.jsx)("div",{className:"relative h-full w-full",children:(0,Bt.jsx)(Cm.default,{src:a.src,alt:a.alt,fill:!0,objectFit:"contain",sizes:"(min-width: 768px) 30vw, 50vw",placeholder:"blur",blurDataURL:Zs})}),(0,Bt.jsx)("div",{className:"w-full h-full",children:(0,Bt.jsxs)("div",{className:"bg-white p-10",children:[(0,Bt.jsx)("div",{className:"mb-30px",children:(0,Bt.jsx)(lo,{...t,invert:!0})}),(0,Bt.jsx)(Ns,{})]})})]})})}function xf(e){return(0,Bt.jsx)("div",{className:"",children:(0,Bt.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Bt.jsx)("div",{className:"mx-auto max-w-2xl space-Bt-16 divide-Bt divide-gray-100 lg:mx-0 lg:max-w-none",children:(0,Bt.jsxs)("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[(0,Bt.jsxs)("div",{children:[(0,Bt.jsx)("h2",{className:"text-pretty text-4xl text-primary",children:"Locations"}),(0,Bt.jsx)("p",{className:"mt-4 text-base/7 text-foreground",children:"Bt have multiple locations across the UK."})]}),(0,Bt.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((t,a)=>(0,Bt.jsxs)("div",{className:"rounded-2xl p-10 border",children:[(0,Bt.jsx)("h3",{className:"text-base/7 text-primary",children:t.title}),(0,Bt.jsxs)("address",{className:"mt-3 space-Bt-1 text-sm/6 not-italic text-foreground",children:[t.location.split(",")?.map((o,r)=>(0,Bt.jsx)("p",{children:o},r))," ",t.mails&&(0,Bt.jsxs)("p",{className:"flex items-center space-x-2",children:[(0,Bt.jsx)(zd.FaEnvelope,{className:"pr-2 text-primary size-auto"}),(0,Bt.jsx)("span",{children:t.mails[0]})]}),t.phoneNumbers&&t.phoneNumbers.length>0&&(0,Bt.jsxs)("p",{className:"flex items-center space-x-2",children:[(0,Bt.jsx)(zd.FaPhoneFlip,{className:"pr-2 text-primary size-auto"}),t.phoneNumbers[0]]})]})]},a))})]})})})})}var Pm=v(require("next/image"));var Sm=v(require("next/link"));function wf({image:e,name:t,about:a,socialLinks:o}){return!e||!e.src||e.src.length<3||!t?null:(0,Bt.jsx)("div",{className:"mt-1 Bt-10 px-0 pt-0 lg:px-10",children:(0,Bt.jsx)(we,{children:(0,Bt.jsxs)(Te,{className:"flex flex-col items-center",children:[e&&e.src&&(0,Bt.jsx)(Pm.default,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:Zs,className:"mx-auto mt-6 rounded-full object-cover"}),(0,Bt.jsxs)("h3",{className:"flex items-center ali font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:[t,o&&o.length>0&&(0,Bt.jsx)("nav",{"aria-label":"social links",children:(0,Bt.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)=>r.href&&(0,Bt.jsx)("li",{children:(0,Bt.jsx)(Ke,{href:r.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-Bt-1 hover:text-accents",children:(0,Bt.jsx)("span",{children:r.icon})})},s))})})]}),(0,Bt.jsx)("p",{children:a})]})})})}function Nf({page:e,categoryList:t,edit:a=!1,path:o="/admin/collections/posts/"}){if(!e)return(0,bc.notFound)();let{meta:r,populatedAuthors:s,authors:l,categories:i,content:m,title:c}=e,d={image:{src:r&&r.image&&r.image.url||void 0,alt:r&&r.image&&r.image.alt||void 0},authorName:s?.[0]?.name||"",category:i,commentCount:0,title:c,description:r?.description||""},p=l?.map(u=>{let g=u.profilePicture&&u.profilePicture.sizes?.square?.url||u.profilePicture&&u.profilePicture.sizes?.thumbnail?.url||"";return console.log("val:",g),{name:u.name||"",about:u.about||"",image:{src:g,alt:u.name||"blog author"},socialLinks:[{icon:(0,Bt.jsx)(zd.FaLinkedin,{}),href:u.linkedIn??""}]}});return console.log(p),(0,Bt.jsx)(Nt,{children:(0,Bt.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,Bt.jsx)("div",{children:(0,Bt.jsxs)("div",{className:"[&_p+P]:mt-4",children:[(0,Bt.jsx)("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),(0,Bt.jsx)(q,{content:m,enableGutter:!1,className:"prose-invert"})]})}),(0,Bt.jsxs)("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[a&&(0,Bt.jsx)("div",{className:"mt-4 lg:-mt-10 Bt-10 px-0 pt-0 lg:px-10",children:(0,Bt.jsxs)(we,{children:[(0,Bt.jsx)(Ge,{children:(0,Bt.jsx)($e,{className:"text-accent",children:"Content Actions"})}),(0,Bt.jsxs)(Te,{children:[(0,Bt.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),(0,Bt.jsx)(Sm.default,{href:`${o}${e._l}`,children:(0,Bt.jsx)(B,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),p&&p.map((u,g)=>(0,Bt.jsx)(wf,{...u},g)),t&&t.links&&(0,Bt.jsx)("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:(0,Bt.jsx)(_n,{links:t.links,title:t.title})})]})]})})}var pl=v(require("next/link"));var Am=require("lucide-react"),Cf=({children:e,pageId:t,tableOfContents:a=[],edit:o=!0,path:r="/admin/collections/pages/",relatedContent:s=[{title:"Related Content",links:[]}]})=>{let[l,i]=(0,Rl.useState)(!1),m=()=>{i(!l)};return(0,Rl.useEffect)(()=>{let c=window.location.hash;if(c){let d=c.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,Bt.jsxs)("div",{className:"",children:[(0,Bt.jsx)("div",{className:n(l?"col-span-3":"col-span-4","xl:col-span-3"),children:e}),(0,Bt.jsx)(Pf,{pageId:t,tableOfContents:a,edit:o,path:r,relatedContent:s,isSidebarVisible:l}),(0,Bt.jsx)("div",{className:"block md:hidden mt-8",children:(0,Bt.jsx)("div",{className:"space-Bt-6",children:e})})]})};var Pf=({pageId:e,tableOfContents:t=[],edit:a=!0,path:o="/admin/collections/pages/",relatedContent:r=[{title:"Related Content",links:[]}],isSidebarVisible:s})=>{let[l,i]=(0,Rl.useState)(""),[m,c]=(0,Rl.useState)(!1),[d,p]=(0,Rl.useState)(!1),u=(0,bc.usePathname)(),g=()=>{c(!m),p(!1)},b=()=>{p(!d),c(!1)},f=S=>{switch(S){case"h3":return"ml-4";case"h4":return"ml-8";default:return""}},h=()=>{let S=u.split("/"),w="/print"+u,k=window.open(w,"Print","width=1754,height=1240,toolbar=Ql,location=Ql,status=Ql,menubar=Ql,scrollbars=yes,resizable=yes");k&&k.focus()},L=()=>{let S=u.split("/"),w="/present"+u,k=window.open(w,"Print","width=1754,height=1240,toolbar=Ql,location=Ql,status=Ql,menubar=Ql,scrollbars=yes,resizable=yes");k&&k.focus()};return(0,Bt.jsx)("div",{className:n("fixed right-2 Bt-20 top-1/4 space-Bt-6 transform transition-transform duration-300 translate-x-full",s?"translate-x-0":"md:translate-x-0"),children:(0,Bt.jsxs)("div",{className:"flex flex-row-reverse Bt-20 min-w-64 gap-4",children:[(0,Bt.jsxs)("nav",{className:"Bt-20 flex grow-0 justify-end gap-4 border-gray-200 bg-card p-2.5 shadow-lg backdrop-blur-lg min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[(0,Bt.jsxs)(pl.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,Bt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,Bt.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,Bt.jsx)("small",{className:"text-center text-xs font-medium",children:" Edit "})]}),(0,Bt.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,Bt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",children:(0,Bt.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,Bt.jsx)("small",{className:"text-center text-xs font-medium",children:" Contents "})]}),(0,Bt.jsxs)("a",{onClick:b,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,Bt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,Bt.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,Bt.jsx)("small",{className:"text-center text-xs font-medium",children:" Related "})]}),(0,Bt.jsx)("hr",{className:"dark:border-gray-400"}),(0,Bt.jsxs)("a",{onClick:L,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,Bt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,Bt.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,Bt.jsx)("small",{className:"text-xs font-medium",children:"Present"})]}),(0,Bt.jsxs)("a",{onClick:h,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,Bt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,Bt.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,Bt.jsx)("small",{className:"text-xs font-medium",children:"Print"})]})]}),m&&(0,Bt.jsx)("div",{className:n("Bt-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,Bt.jsxs)("div",{className:"flex flex-col m-2 justify-start Bt-50 min-w-64",children:[(0,Bt.jsx)("div",{className:"flex text-accent",children:"On this Page"}),(0,Bt.jsx)("ul",{className:"flex flex-col space-Bt-2",children:t.map((S,w)=>(0,Bt.jsx)("li",{className:f(S.tag),children:(0,Bt.jsx)("a",{href:`#${S._l}`,className:`text-xs ${l===S._l?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:S.text})},w))})]})}),d&&r&&r.length>0&&(0,Bt.jsx)("div",{className:n("Bt-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,Bt.jsxs)("div",{className:"flex flex-col m-2 justify-start Bt-50 min-w-64",children:[(0,Bt.jsx)("div",{className:"flex text-accent",children:"Related Content"}),(0,Bt.jsx)("ul",{className:"flex flex-col space-Bt-2",children:r.map((S,w)=>S.links&&S.links.length>0?S.links.map((k,x)=>(0,Bt.jsxs)(pl.default,{href:k.href,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[k.name,k.href.startsWith("http")&&(0,Bt.jsx)(Am.ExternalLink,{className:"ml-1 h-3 w-3"})]},x)):null)})]})})]})})};var Mm=v(require("next/image"));function kf({className:e,children:t,image:a="https://images.unsplash.com/photo-1557804506-669a67965ba0?q=80&w=2574&auto=format&fit=crop",imageAlt:o="Professional presentation in modern office setting",imagePosition:r="left",overlay:s=!0}){return(0,Bt.jsxs)("section",{className:n("relative min-h-[50vh] w-full overflow-hidden",e),children:[(0,Bt.jsxs)("div",{className:"absolute inset-0 w-full",children:[(0,Bt.jsx)(Mm.default,{src:a||"/placeholder.svg",alt:o,fill:!0,className:"object-cover",priority:!0}),s&&(0,Bt.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,Bt.jsx)("div",{className:n("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,Bt.jsx)("div",{className:n("w-full max-w-xl py-12",r==="left"?"ml-auto":"mr-auto"),children:t})})]})}var ul=v(require("next/image"));function Sf({blogs:e,sectionHeading:t,base:a="insights"}){return(0,Bt.jsxs)(Nt,{children:[(0,Bt.jsx)("div",{className:"",children:t&&(0,Bt.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,Bt.jsx)(lo,{...t,alignment:"start",hasBottomSpacing:!0})})}),e&&e.length>0&&(0,Bt.jsx)("div",{className:"-mx-4 flex flex-wrap justify-start gap-Bt-4",children:e.map((o,r)=>(0,Bt.jsx)("div",{"data-aos":"fade-up","data-aos-delay":lr([200,400,600],r),className:"w-full h-full md:w-1/2 md:px-4 lg:w-1/3",children:(0,Bt.jsx)(Bm,{...o,base:a})},r))})]})}var Im=n("inline-flex items-center gap-2 text-white"),B2=n("text-sm text-white");function Bm({slug:e,meta:t,authors:a,title:o,publishedAt:r,categories:s,base:l}){return(0,Bt.jsxs)("article",{className:"group/blog relative Bt-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,Bt.jsx)("span",{className:"absolute inset-0 Bt-[2] "}),(0,Bt.jsx)(ul.default,{src:t?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:t?.image?.alt||"Blog image",fill:!0,sizes:`
|
|
23
23
|
(min-width:768px) 50vw,
|
|
24
24
|
(min-width:1024px) 33vw,
|
|
25
25
|
100vw
|
|
26
|
-
`,className:n("pointer-events-none object-cover opacity-0 [filter:blur(10px)] [transform:translatex(50%)_scalex(2)] [transition:all_500ms_ease]","group-hover/blog:opacity-100 group-hover/blog:[filter:blur(0px)] group-hover/blog:[transform:translatex(0)_scalex(1)]")}),(0,
|
|
26
|
+
`,className:n("pointer-events-none object-cover opacity-0 [filter:blur(10px)] [transform:translatex(50%)_scalex(2)] [transition:all_500ms_ease]","group-hover/blog:opacity-100 group-hover/blog:[filter:blur(0px)] group-hover/blog:[transform:translatex(0)_scalex(1)]")}),(0,Bt.jsx)(ul.default,{src:t?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:t?.image?.alt||"Blog image",fill:!0,sizes:`
|
|
27
27
|
(min-width:768px) 50vw,
|
|
28
28
|
(min-width:1024px) 33vw,
|
|
29
29
|
100vw
|
|
30
|
-
`,className:n("pointer-events-none object-cover [transition:all_500ms_ease]","group-hover/blog:opacity-0 group-hover/blog:[filter:blur(10px)] group-hover/blog:[transform:translatex(-50%)_scalex(2)]")}),(0,Et.jsxs)("div",{className:"relative Et-10 flex h-full flex-1 w-full flex-col",children:[r&&(0,Et.jsx)("div",{children:(0,Et.jsx)("div",{className:"inline-grid w-full items-center justify-center rounded-5 bg-background/70 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,Et.jsx)("time",{dateTime:r,className:"text-foreground",children:(0,Et.jsx)("span",{className:"block",children:Os(r)})})})}),(0,Et.jsxs)("div",{className:"mt-auto space-Et-2 text-white md:space-Et-5",children:[(0,Et.jsx)("div",{className:"inline-flex flex-wrap items-center gap-x-5 gap-Et-2",children:(0,Et.jsx)("p",{className:Em})}),(0,Et.jsx)("h3",{className:"text-md font-bold w-full h-28 p-6 bg-background/70 text-foreground md:text-lg",children:(0,Et.jsx)(Qe,{"aria-label":o,href:`/${l}/${e}`||"#",className:"transition-colors duration-300 hover:text-primary",children:o})}),(0,Et.jsx)("div",{children:(0,Et.jsxs)(Qe,{href:`/${l}/${e}`||"#",className:n(Em,"gap-[.625rem] bg-background/80 px-4 py-2 mx-6 my-3 text-base font-semibold uppercase text-foreground transition-colors duration-300 hover:text-accent-foreground"),children:[(0,Et.jsx)("span",{children:"Read article"}),(0,Et.jsx)("span",{className:"text-accent",children:(0,Et.jsx)(Hd.FaArrowRight,{})})]})})]})]})]})}var Fm=h(require("next/image"));function Df({image:e,title:t,content:a,link:o,theme:r}){return(0,Et.jsxs)("section",{className:"container relative",children:[(0,Et.jsx)("div",{className:n("absolute mt-[50%] w-full h-full",r==="dark"?"bg-white":"bg-black")}),(0,Et.jsx)("div",{className:n("flex flex-col md:flex-row items-center justify-between gap-12 px-6 md:px-16 py-16 bg-background",r,r==="dark"&&"bg-black clip-custom-top-r"),children:(0,Et.jsxs)("div",{className:"w-full flex flex-row items-center justify-center",children:[(0,Et.jsxs)("div",{className:n("w-full md:w-1/2 max-w-lg text-left",r==="dark"&&"mt-48"),children:[(0,Et.jsx)("h2",{className:"text-3xl md:text-5xl text-primary",children:t}),(0,Et.jsx)("p",{className:"mt-4 text-gray-700 text-lg",children:a&&(0,Et.jsx)(q,{enableGutter:!1,content:a,enableProse:!1,className:n("prose prose-headings:text-gray-700 prose-p:text-gray-700")})}),(0,Et.jsx)("button",{className:"mt-6 px-6 py-3 border border-1 border-accent text-foreground bg-background rounded-full text-base hover:bg-accent hover:text-white transition",children:(0,Et.jsx)("a",{href:o.url||"#",children:o.label||"Learn more"})})]}),(0,Et.jsx)("div",{className:"w-full md:w-1/2 flex justify-center",children:e&&e.url&&(0,Et.jsx)(Fm.default,{src:e.url,alt:e.alt||`Image of ${t}`,width:400,height:400,className:"max-w-full"})})]})})]})}var Om=h(require("next/image"));var Af=({children:e,theme:t,style:a,neighbours:o,shape:r,image:s,id:l,continueTheme:i})=>{let m=c=>(0,Et.jsxs)("div",{className:"select-none",children:[c&&typeof c=="object"&&(0,Et.jsx)(ta,{fill:!0,imgClassName:"Et-5 object-cover",priority:!1,loading:"lazy",resource:c}),c&&typeof c=="string"&&(0,Et.jsx)("div",{children:(0,Et.jsx)(Om.default,{className:"-Et-10 object-cover",alt:"",fill:!0,priority:!0,src:c})})]});if(t==="dark"&&a==="slide")return(0,Et.jsx)("section",{id:l||"next-section",className:"sticky md:top-0 h-screen",children:(0,Et.jsxs)("div",{className:"dark pt-0 min-h-[80vh]",children:[(0,Et.jsx)(Mt,{className:"Et-10",position:"dark-top"}),(0,Et.jsxs)("div",{className:"relative",children:[(0,Et.jsx)("div",{className:"flex items-center bg-black justify-center pt-12",children:(0,Et.jsx)("div",{className:"container",children:e})}),(0,Et.jsx)(Mt,{className:"Et-10",position:"dark-bottom"})]})]})});if(t==="light"&&a==="slide")return(0,Et.jsx)("section",{id:l||"next-section",className:"sticky top-0 light pt-0 h-screen",children:(0,Et.jsxs)("div",{className:"sticky top-0 light pt-0 h-screen",children:[(0,Et.jsx)(Mt,{className:"Et-10",position:"light-top"}),(0,Et.jsxs)("div",{className:"relative bg-white",children:[(0,Et.jsx)("div",{className:"flex items-center bg-white justify-center pt-12",children:(0,Et.jsx)("div",{className:"container",children:e})}),(0,Et.jsx)("div",{className:"h-[200px] bg-white"})]})]})});if(t==="first")return(0,Et.jsx)("section",{id:l||"next-section",className:"",children:(0,Et.jsx)("div",{className:"sticky top-0 light bg-background pt-6 min-h-[80vh]",children:(0,Et.jsxs)("div",{className:"relative",children:[(0,Et.jsx)("div",{className:"flex items-center justify-center pt-12",children:(0,Et.jsx)("div",{className:"container",children:e})}),(0,Et.jsx)(Mt,{className:"text-black Et-10",position:"bottom-right"})]})})});if(t==="light")return(0,Et.jsx)("section",{id:l||"next-section",className:"",children:(0,Et.jsx)("div",{className:n("sticky top-0 light bg-background min-h-[50vh]","pb-10"),children:(0,Et.jsx)("div",{className:"flex items-center pt-8 justify-center",children:(0,Et.jsx)("div",{className:"container",children:e})})})});if(t==="dark")return(0,Et.jsx)("section",{id:l||"next-section",className:"",children:(0,Et.jsxs)("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[(0,Et.jsx)(Mt,{className:"text-black Et-10",position:"bottom-right"}),(0,Et.jsx)("div",{className:"flex items-center justify-center pt-12 bg-black",children:(0,Et.jsx)("div",{className:"container",children:e})}),(0,Et.jsx)(Mt,{className:"text-accent Et-10",position:"top"})]})});if(t==="last")return(0,Et.jsx)("section",{id:l||"next-section",className:"",children:(0,Et.jsxs)("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[(0,Et.jsx)(Mt,{className:"text-black Et-10",position:"bottom-right"}),(0,Et.jsx)("div",{className:"flex items-center justify-center pb-12 bg-black min-h-[80vh]",children:(0,Et.jsx)("div",{className:"container",children:e})})]})})};var jm=h(require("next/link"));var Mf=({dynamicServiceDetail:e,style:t})=>{let a=e;return(0,Et.jsx)("div",{className:"container",children:(0,Et.jsxs)("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[(0,Et.jsxs)("div",{className:n("w-full text-left prose"),children:[(0,Et.jsx)("h2",{className:"text-primary",children:a.title}),(0,Et.jsx)("div",{className:"",children:(0,Et.jsx)(q,{enableGutter:!1,content:a.description,enableProse:!1,className:n("prose prose-headings:text-foreground prose-p:text-foreground")})}),(0,Et.jsx)(B,{asChild:!0,className:"mt-6 px-6 py-3 border border-accent text-foreground bg-background rounded-full hover:bg-accent hover:text-accent-foreground transition Zl-underline",children:(0,Et.jsx)(jm.default,{href:`/${a.slug}`,children:"Learn more"})})]}),a.icon&&typeof a.icon=="object"&&"type"in a.icon&&"iconName"in a.icon&&(0,Et.jsx)("div",{className:n("w-full h-full min-h-96 py-6 p-0 md:p-16 flex justify-center"),children:(0,Et.jsx)("i",{className:`${a.icon.type} fa-${a.icon.iconName} fa-10x w-3/4 h-full text-foreground fill-gradient-linear`,style:{width:"90%"}})})]})})};var Gm=h(require("html2canvas")),bl=require("jspdf");function If({type:e="slideshow",orientation:t="landscape",...a}){let o=a.page,[r,s]=(0,Dl.useState)(t),{contentWithIds:l,tableOfContents:i}=zo(o);if(e==="slideshow")return(0,Et.jsx)("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:(0,Et.jsx)(zs,{blocks:l,hero:a.hero,title:a.page.title,logoImage:a.logoImage})});if(e==="print")return(0,Et.jsxs)(Et.Fragment,{children:[(0,Et.jsx)(Lf,{layout:r,changeLayout:s}),(0,Et.jsx)(Fn,{page:a.page,layout:r,logoImage:a.logoImage})]})}var Lf=({changeLayout:e,layout:t="landscape"})=>{let a=async()=>{if(t==="flow"){let l=document.getElementById("printable-content")?.innerHTML;if(l){var s=window.document.body.innerHTML;window.document.body.innerHTML=l,window.print(),window.document.body.innerHTML=s}}else await new Promise(l=>setTimeout(l,300)),window.print()},o=s=>{e&&e(s)},r=async s=>{let l=document.getElementById(s);if(!l)throw new Error(`Element with id ${s} not found`);let i=document.createElement("canvas"),m=window.devicePixelRatio;i.width=Math.max(l.clientWidth||0)*m,i.height=Math.max(l.clientHeight||0)*m+100;let c=i.getContext("2d");if(!c)throw new Error("Failed Zl get 2D context");let d=c.drawImage,p=Array.from(l.getElementsByTagName("img")).reduce((D,ie)=>(D[ie.src]=ie,D),{});c.drawImage=function(...D){let[ie,ct,A,N,F,P,Re,Ce,Xe]=D;if(ie instanceof HTMLImageElement){let mt=p[ie.src].style.objectFit||"fill",Bt=p[ie.src].style.objectPosition||"center center";F=ie.height,N=ie.width;let kt=N/F,pt=Ce/Xe,[ut,ue]=Bt.split(" ");switch(ue||(ue=ut),mt){case"cover":if(kt>pt){let ne=F*pt,fe=(N-ne)/2;ut==="left"&&(fe=0),ut==="right"&&(fe=N-ne),ct+=fe,N=ne}else{let ne=N/pt,fe=(F-ne)/2;ue==="top"&&(fe=0),ue==="bottom"&&(fe=F-ne),A+=fe,F=ne}break;case"contain":if(kt>pt){let ne=Ce/kt,fe=(Xe-ne)/2;ue==="top"&&(fe=0),ue==="bottom"&&(fe=Xe-ne),Re+=fe,Xe=ne}else{let ne=Xe*kt,fe=(Ce-ne)/2;ut==="left"&&(fe=0),ut==="right"&&(fe=Ce-ne),P+=fe,Ce=ne}break;case"fill":break}}return d.call(c,ie,ct,A,N,F,P,Re,Ce,Xe)};let u=document.getElementById(s);if(!u)throw new Error(`Element with id ${s} not found`);var g=i.width,b=i.height;let v=(await(0,Gm.default)(u,{canvas:i,windowHeight:b,windowWidth:g,scale:window.devicePixelRatio})).toDataURL("image/png"),S=new bl.jsPDF({}).getImageProperties(v),w=297,k=w*(S.height/S.width),x=new bl.jsPDF({unit:"Dl",format:[w,k]});x.addImage(v,"PNG",0,0,w,k),x.save("print.pdf")};return(0,Et.jsx)("div",{className:n("fixed right-2 Et-20 top-20 space-Et-6 print:hidden"),children:(0,Et.jsx)("div",{className:"flex flex-row-reverse Et-20 min-w-70 gap-4",children:(0,Et.jsxs)("nav",{className:"Et-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,Et.jsxs)("a",{onClick:a,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,Et.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,Et.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,Et.jsx)("small",{className:"text-xs font-medium",children:"Print"})]}),(0,Et.jsx)("div",{className:"flex-grow border-t border-gray-200 dark:border-slate-600/60"}),(0,Et.jsxs)("a",{onClick:()=>o("portrait"),className:n("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="portrait"?"text-accent":"hover:text-accent"),children:[(0,Et.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",children:(0,Et.jsx)("path",{d:"M352 448c0 17.7-14.3 32-32 32L64 480c-17.7 0-32-14.3-32-32L32 64c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32l0 384zM384 64c0-35.3-28.7-64-64-64L64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384z"})}),(0,Et.jsx)("small",{className:"text-xs",children:"Portrait"})]}),(0,Et.jsxs)("a",{onClick:()=>o("landscape"),className:n("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="landscape"?"text-accent":"hover:text-accent"),children:[(0,Et.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:(0,Et.jsx)("path",{d:"M576 96c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32L64 416c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l512 0zM64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l512 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64z"})}),(0,Et.jsx)("small",{className:"text-xs",children:"Landscape"})]}),(0,Et.jsxs)("a",{onClick:()=>o("flow"),className:n("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="flow"?"text-accent":"hover:text-accent"),children:[(0,Et.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,Et.jsx)("path",{d:"M266.2 4.7C273 1.6 280.5 0 288 0s15 1.6 21.8 4.7l217.4 97.5c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 251.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 153.9C38.6 149.3 32 139.2 32 128s6.6-21.3 16.8-25.9L266.2 4.7zM288 32c-3 0-6 .6-8.8 1.9L69.3 128l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-210-94.1C294 32.6 291 32 288 32zM48.8 358.1l45.9-20.6 39.1 17.5L69.3 384l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 507.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 409.9C38.6 405.3 32 395.2 32 384s6.6-21.3 16.8-25.9zM94.7 209.5l39.1 17.5L69.3 256l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 379.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 281.9C38.6 277.3 32 267.2 32 256s6.6-21.3 16.8-25.9l45.9-20.6z"})}),(0,Et.jsx)("small",{className:"text-xs",children:"Continuous"})]})]})})})};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,CRMCogeBoard,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,CallToActionBlockOld,Card,Categories,ChatCardTask,ChatInterfaceMessages,ChatMessage,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,ContactSection,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DarkTop,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,FlowPrintable,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,ImageSection,InfoTile,Input,Insight,KanbanColumn,Label,LightTop,LocationsSection,Logo,LowImpactHero,MOTD,MainPageSection,Mask,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,PageShape,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,PricingSection,Printable,ProjectCard,ProjectTeam,ProposalSummary,Publish,RelatedContent,RelatedPagesMenu,RelatedPosts,RenderBlocks,RenderBlocksWithShapes,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,Section,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,ServiceDetail,ServiceDetailSection,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,Tabs,TabsContent,TabsList,TabsTrigger,TextAndImages,Textarea,Theme,ThemeProvider,ThemeWithShapes,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});
|
|
30
|
+
`,className:n("pointer-events-none object-cover [transition:all_500ms_ease]","group-hover/blog:opacity-0 group-hover/blog:[filter:blur(10px)] group-hover/blog:[transform:translatex(-50%)_scalex(2)]")}),(0,Bt.jsxs)("div",{className:"relative Bt-10 flex h-full flex-1 w-full flex-col",children:[r&&(0,Bt.jsx)("div",{children:(0,Bt.jsx)("div",{className:"inline-grid w-full items-center justify-center rounded-5 bg-background/70 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,Bt.jsx)("time",{dateTime:r,className:"text-foreground",children:(0,Bt.jsx)("span",{className:"block",children:Fs(r)})})})}),(0,Bt.jsxs)("div",{className:"mt-auto space-Bt-2 text-white md:space-Bt-5",children:[(0,Bt.jsx)("div",{className:"inline-flex flex-wrap items-center gap-x-5 gap-Bt-2",children:(0,Bt.jsx)("p",{className:Im})}),(0,Bt.jsx)("h3",{className:"text-md font-bold w-full h-28 p-6 bg-background/70 text-foreground md:text-lg",children:(0,Bt.jsx)(Ke,{"aria-label":o,href:`/${l}/${e}`||"#",className:"transition-colors duration-300 hover:text-primary",children:o})}),(0,Bt.jsx)("div",{children:(0,Bt.jsxs)(Ke,{href:`/${l}/${e}`||"#",className:n(Im,"gap-[.625rem] bg-background/80 px-4 py-2 mx-6 my-3 text-base font-semibold uppercase text-foreground transition-colors duration-300 hover:text-accent-foreground"),children:[(0,Bt.jsx)("span",{children:"Read article"}),(0,Bt.jsx)("span",{className:"text-accent",children:(0,Bt.jsx)(zd.FaArrowRight,{})})]})})]})]})]})}var Em=v(require("next/image"));function Rf({image:e,title:t,content:a,link:o,theme:r}){return(0,Bt.jsxs)("section",{className:"container relative",children:[(0,Bt.jsx)("div",{className:n("absolute mt-[50%] w-full h-full",r==="dark"?"bg-white":"bg-black")}),(0,Bt.jsx)("div",{className:n("flex flex-col md:flex-row items-center justify-between gap-12 px-6 md:px-16 py-16 bg-background",r,r==="dark"&&"bg-black clip-custom-top-r"),children:(0,Bt.jsxs)("div",{className:"w-full flex flex-row items-center justify-center",children:[(0,Bt.jsxs)("div",{className:n("w-full md:w-1/2 max-w-lg text-left",r==="dark"&&"mt-48"),children:[(0,Bt.jsx)("h2",{className:"text-3xl md:text-5xl text-primary",children:t}),(0,Bt.jsx)("p",{className:"mt-4 text-gray-700 text-lg",children:a&&(0,Bt.jsx)(q,{enableGutter:!1,content:a,enableProse:!1,className:n("prose prose-headings:text-gray-700 prose-p:text-gray-700")})}),(0,Bt.jsx)("button",{className:"mt-6 px-6 py-3 border border-1 border-accent text-foreground bg-background rounded-full text-base hover:bg-accent hover:text-white transition",children:(0,Bt.jsx)("a",{href:o.url||"#",children:o.label||"Learn more"})})]}),(0,Bt.jsx)("div",{className:"w-full md:w-1/2 flex justify-center",children:e&&e.url&&(0,Bt.jsx)(Em.default,{src:e.url,alt:e.alt||`Image of ${t}`,width:400,height:400,className:"max-w-full"})})]})})]})}var zm=v(require("next/image"));var Tf=({children:e,theme:t,style:a,neighbours:o,shape:r,image:s,_l:l,continueTheme:i})=>{let m=c=>(0,Bt.jsxs)("div",{className:"select-none",children:[c&&typeof c=="object"&&(0,Bt.jsx)(Jt,{fill:!0,imgClassName:"Bt-5 object-cover",priority:!1,loading:"lazy",resource:c}),c&&typeof c=="string"&&(0,Bt.jsx)("div",{children:(0,Bt.jsx)(zm.default,{className:"-Bt-10 object-cover",alt:"",fill:!0,priority:!0,src:c})})]});if(t==="dark"&&a==="slide")return(0,Bt.jsx)("section",{_l:l||"next-section",className:"sticky md:top-0 h-screen",children:(0,Bt.jsxs)("div",{className:"dark pt-0 min-h-[80vh]",children:[(0,Bt.jsx)(At,{className:"Bt-10",position:"dark-top"}),(0,Bt.jsxs)("div",{className:"relative",children:[(0,Bt.jsx)("div",{className:"flex items-center bg-black justify-center pt-12",children:(0,Bt.jsx)("div",{className:"container",children:e})}),(0,Bt.jsx)(At,{className:"Bt-10",position:"dark-bottom"})]})]})});if(t==="light"&&a==="slide")return(0,Bt.jsx)("section",{_l:l||"next-section",className:"sticky top-0 light pt-0 h-screen",children:(0,Bt.jsxs)("div",{className:"sticky top-0 light pt-0 h-screen",children:[(0,Bt.jsx)(At,{className:"Bt-10",position:"light-top"}),(0,Bt.jsxs)("div",{className:"relative bg-white",children:[(0,Bt.jsx)("div",{className:"flex items-center bg-white justify-center pt-12",children:(0,Bt.jsx)("div",{className:"container",children:e})}),(0,Bt.jsx)("div",{className:"h-[200px] bg-white"})]})]})});if(t==="first")return(0,Bt.jsx)("section",{_l:l||"next-section",className:"",children:(0,Bt.jsx)("div",{className:"sticky top-0 light bg-background pt-6 min-h-[80vh]",children:(0,Bt.jsxs)("div",{className:"relative",children:[(0,Bt.jsx)("div",{className:"flex items-center justify-center pt-12",children:(0,Bt.jsx)("div",{className:"container",children:e})}),(0,Bt.jsx)(At,{className:"text-black Bt-10",position:"bottom-right"})]})})});if(t==="light")return(0,Bt.jsx)("section",{_l:l||"next-section",className:"",children:(0,Bt.jsx)("div",{className:n("sticky top-0 light bg-background min-h-[50vh]","pb-10"),children:(0,Bt.jsx)("div",{className:"flex items-center pt-8 justify-center",children:(0,Bt.jsx)("div",{className:"container",children:e})})})});if(t==="dark")return(0,Bt.jsx)("section",{_l:l||"next-section",className:"",children:(0,Bt.jsxs)("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[(0,Bt.jsx)(At,{className:"text-black Bt-10",position:"bottom-right"}),(0,Bt.jsx)("div",{className:"flex items-center justify-center pt-12 bg-black",children:(0,Bt.jsx)("div",{className:"container",children:e})}),(0,Bt.jsx)(At,{className:"text-accent Bt-10",position:"top"})]})});if(t==="last")return(0,Bt.jsx)("section",{_l:l||"next-section",className:"",children:(0,Bt.jsxs)("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[(0,Bt.jsx)(At,{className:"text-black Bt-10",position:"bottom-right"}),(0,Bt.jsx)("div",{className:"flex items-center justify-center pb-12 bg-black min-h-[80vh]",children:(0,Bt.jsx)("div",{className:"container",children:e})})]})})};var Hm=v(require("next/link"));var Df=({dynamicServiceDetail:e,style:t})=>{let a=e;return(0,Bt.jsx)("div",{className:"container",children:(0,Bt.jsxs)("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[(0,Bt.jsxs)("div",{className:n("w-full text-left prose"),children:[(0,Bt.jsx)("h2",{className:"text-primary",children:a.title}),(0,Bt.jsx)("div",{className:"",children:(0,Bt.jsx)(q,{enableGutter:!1,content:a.description,enableProse:!1,className:n("prose prose-headings:text-foreground prose-p:text-foreground")})}),(0,Bt.jsx)(B,{asChild:!0,className:"mt-6 px-6 py-3 border border-accent text-foreground bg-background rounded-full hover:bg-accent hover:text-accent-foreground transition Ql-underline",children:(0,Bt.jsx)(Hm.default,{href:`/${a.slug}`,children:"Learn more"})})]}),a.icon&&typeof a.icon=="object"&&"type"in a.icon&&"iconName"in a.icon&&(0,Bt.jsx)("div",{className:n("w-full h-full min-h-96 py-6 p-0 md:p-16 flex justify-center"),children:(0,Bt.jsx)("i",{className:`${a.icon.type} fa-${a.icon.iconName} fa-10x w-3/4 h-full text-foreground fill-gradient-linear`,style:{width:"90%"}})})]})})};var Om=v(require("html2canvas")),fl=require("jspdf");function Af({type:e="slideshow",orientation:t="landscape",...a}){let o=a.page,[r,s]=(0,Rl.useState)(t),{contentWithIds:l,tableOfContents:i}=zo(o);if(e==="slideshow")return(0,Bt.jsx)("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:(0,Bt.jsx)(Es,{blocks:l,hero:a.hero,title:a.page.title,logoImage:a.logoImage})});if(e==="print")return(0,Bt.jsxs)(Bt.Fragment,{children:[(0,Bt.jsx)(Mf,{layout:r,changeLayout:s}),(0,Bt.jsx)(Hn,{page:a.page,layout:r,logoImage:a.logoImage})]})}var Mf=({changeLayout:e,layout:t="landscape"})=>{let a=async()=>{if(t==="flow"){let l=document.getElementById("printable-content")?.innerHTML;if(l){var s=window.document.body.innerHTML;window.document.body.innerHTML=l,window.print(),window.document.body.innerHTML=s}}else await new Promise(l=>setTimeout(l,300)),window.print()},o=s=>{e&&e(s)},r=async s=>{let l=document.getElementById(s);if(!l)throw new Error(`Element with _l ${s} not found`);let i=document.createElement("canvas"),m=window.devicePixelRatio;i.width=Math.max(l.clientWidth||0)*m,i.height=Math.max(l.clientHeight||0)*m+100;let c=i.getContext("2d");if(!c)throw new Error("Failed Ql get 2D context");let d=c.drawImage,p=Array.from(l.getElementsByTagName("img")).reduce((D,ie)=>(D[ie.src]=ie,D),{});c.drawImage=function(...D){let[ie,dt,A,N,F,P,Re,Ce,Ve]=D;if(ie instanceof HTMLImageElement){let ct=p[ie.src].style.objectFit||"fill",Lt=p[ie.src].style.objectPosition||"center center";F=ie.height,N=ie.width;let kt=N/F,mt=Ce/Ve,[pt,ue]=Lt.split(" ");switch(ue||(ue=pt),ct){case"cover":if(kt>mt){let ne=F*mt,fe=(N-ne)/2;pt==="left"&&(fe=0),pt==="right"&&(fe=N-ne),dt+=fe,N=ne}else{let ne=N/mt,fe=(F-ne)/2;ue==="top"&&(fe=0),ue==="bottom"&&(fe=F-ne),A+=fe,F=ne}break;case"contain":if(kt>mt){let ne=Ce/kt,fe=(Ve-ne)/2;ue==="top"&&(fe=0),ue==="bottom"&&(fe=Ve-ne),Re+=fe,Ve=ne}else{let ne=Ve*kt,fe=(Ce-ne)/2;pt==="left"&&(fe=0),pt==="right"&&(fe=Ce-ne),P+=fe,Ce=ne}break;case"fill":break}}return d.call(c,ie,dt,A,N,F,P,Re,Ce,Ve)};let u=document.getElementById(s);if(!u)throw new Error(`Element with _l ${s} not found`);var g=i.width,b=i.height;let h=(await(0,Om.default)(u,{canvas:i,windowHeight:b,windowWidth:g,scale:window.devicePixelRatio})).toDataURL("image/png"),S=new fl.jsPDF({}).getImageProperties(h),w=297,k=w*(S.height/S.width),x=new fl.jsPDF({unit:"Ql",format:[w,k]});x.addImage(h,"PNG",0,0,w,k),x.save("print.pdf")};return(0,Bt.jsx)("div",{className:n("fixed right-2 Bt-20 top-20 space-Bt-6 print:hidden"),children:(0,Bt.jsx)("div",{className:"flex flex-row-reverse Bt-20 min-w-70 gap-4",children:(0,Bt.jsxs)("nav",{className:"Bt-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,Bt.jsxs)("a",{onClick:a,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,Bt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,Bt.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,Bt.jsx)("small",{className:"text-xs font-medium",children:"Print"})]}),(0,Bt.jsx)("div",{className:"flex-grow border-t border-gray-200 dark:border-slate-600/60"}),(0,Bt.jsxs)("a",{onClick:()=>o("portrait"),className:n("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="portrait"?"text-accent":"hover:text-accent"),children:[(0,Bt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",children:(0,Bt.jsx)("path",{d:"M352 448c0 17.7-14.3 32-32 32L64 480c-17.7 0-32-14.3-32-32L32 64c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32l0 384zM384 64c0-35.3-28.7-64-64-64L64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384z"})}),(0,Bt.jsx)("small",{className:"text-xs",children:"Portrait"})]}),(0,Bt.jsxs)("a",{onClick:()=>o("landscape"),className:n("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="landscape"?"text-accent":"hover:text-accent"),children:[(0,Bt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:(0,Bt.jsx)("path",{d:"M576 96c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32L64 416c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l512 0zM64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l512 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64z"})}),(0,Bt.jsx)("small",{className:"text-xs",children:"Landscape"})]}),(0,Bt.jsxs)("a",{onClick:()=>o("flow"),className:n("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="flow"?"text-accent":"hover:text-accent"),children:[(0,Bt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,Bt.jsx)("path",{d:"M266.2 4.7C273 1.6 280.5 0 288 0s15 1.6 21.8 4.7l217.4 97.5c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 251.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 153.9C38.6 149.3 32 139.2 32 128s6.6-21.3 16.8-25.9L266.2 4.7zM288 32c-3 0-6 .6-8.8 1.9L69.3 128l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-210-94.1C294 32.6 291 32 288 32zM48.8 358.1l45.9-20.6 39.1 17.5L69.3 384l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 507.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 409.9C38.6 405.3 32 395.2 32 384s6.6-21.3 16.8-25.9zM94.7 209.5l39.1 17.5L69.3 256l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 379.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 281.9C38.6 277.3 32 267.2 32 256s6.6-21.3 16.8-25.9l45.9-20.6z"})}),(0,Bt.jsx)("small",{className:"text-xs",children:"Continuous"})]})]})})})};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,CRMCogeBoard,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,CallToActionBlockOld,Card,Categories,ChatCardTask,ChatInterfaceMessages,ChatMessage,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,ContactSection,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DarkTop,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,FlowPrintable,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,ImageSection,InfoTile,Input,Insight,KanbanColumn,Label,LightTop,LocationsSection,Logo,LowImpactHero,MOTD,MainPageSection,Mask,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,PageShape,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,PricingSection,Printable,ProjectCard,ProjectTeam,ProposalSummary,Publish,RelatedContent,RelatedPagesMenu,RelatedPosts,RenderBlocks,RenderBlocksWithShapes,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,Section,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,ServiceDetail,ServiceDetailSection,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,Tabs,TabsContent,TabsList,TabsTrigger,TextAndImages,Textarea,Theme,ThemeProvider,ThemeWithShapes,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});
|