cortex-react-components 1.48.3 → 1.48.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/dist/{chunk-423OEU3K.mjs → chunk-23EQTK7B.mjs} +1 -1
  2. package/dist/{chunk-EQDX6HFN.mjs → chunk-5EFOKBKA.mjs} +1 -1
  3. package/dist/{chunk-E2LKSCDR.mjs → chunk-5SEB2VCD.mjs} +1 -1
  4. package/dist/{chunk-MSR2P3T7.mjs → chunk-6FRJZXX4.mjs} +1 -1
  5. package/dist/{chunk-I5EBXVLE.mjs → chunk-72Z4T7BT.mjs} +1 -1
  6. package/dist/{chunk-4BRGCHXG.mjs → chunk-74KJ5V34.mjs} +1 -1
  7. package/dist/{chunk-MTGSUV2N.mjs → chunk-7FR5BXX2.mjs} +1 -1
  8. package/dist/{chunk-GI2QDPCR.mjs → chunk-A2CXTTX4.mjs} +1 -1
  9. package/dist/{chunk-6DBC2R63.mjs → chunk-ABQMNGD4.mjs} +1 -1
  10. package/dist/{chunk-CYECAKIW.mjs → chunk-BOZT7Z5K.mjs} +1 -1
  11. package/dist/{chunk-A64VAX4R.mjs → chunk-BWT2MAIT.mjs} +1 -1
  12. package/dist/chunk-D2VK2HQD.mjs +1 -0
  13. package/dist/{chunk-GHBJK554.mjs → chunk-DESYC5BB.mjs} +1 -1
  14. package/dist/{chunk-I3JB7SE2.mjs → chunk-ECOVEIOV.mjs} +1 -1
  15. package/dist/{chunk-BD5WERSE.mjs → chunk-EQFBRT7L.mjs} +1 -1
  16. package/dist/{chunk-TDFKZCPU.mjs → chunk-FR65RGJD.mjs} +1 -1
  17. package/dist/{chunk-RZTXT4UD.mjs → chunk-GOMLTG5W.mjs} +1 -1
  18. package/dist/{chunk-5SZ2AE3S.mjs → chunk-JBRBY7EX.mjs} +1 -1
  19. package/dist/{chunk-XAIWWMQS.mjs → chunk-JGAQ62DH.mjs} +1 -1
  20. package/dist/{chunk-5YTDIEDJ.mjs → chunk-KB6PO4K4.mjs} +1 -1
  21. package/dist/{chunk-GSEPIRRJ.mjs → chunk-KTVHPTON.mjs} +1 -1
  22. package/dist/{chunk-CKUUXMUT.mjs → chunk-LIAT3JG5.mjs} +1 -1
  23. package/dist/{chunk-IQ7LAP7P.mjs → chunk-MY3PX5GI.mjs} +1 -1
  24. package/dist/{chunk-QZA2ZGA2.mjs → chunk-N25OHVNY.mjs} +1 -1
  25. package/dist/{chunk-ICTOXY7D.mjs → chunk-NGK3IDFP.mjs} +1 -1
  26. package/dist/{chunk-S4KPY3YT.mjs → chunk-NRE4HHK7.mjs} +1 -1
  27. package/dist/{chunk-UK4IPFAO.mjs → chunk-PVRWMAHW.mjs} +1 -1
  28. package/dist/{chunk-KEUZSK3N.mjs → chunk-PY53YVFX.mjs} +1 -1
  29. package/dist/{chunk-ORIYZGWU.mjs → chunk-RRL4ZH6T.mjs} +1 -1
  30. package/dist/{chunk-GJXOXTLZ.mjs → chunk-RY75YBKF.mjs} +1 -1
  31. package/dist/{chunk-AAI2VZST.mjs → chunk-SBAFXZVU.mjs} +1 -1
  32. package/dist/{chunk-G5HD4IFA.mjs → chunk-SEG6IDDX.mjs} +1 -1
  33. package/dist/{chunk-MZD4JZXX.mjs → chunk-TUQRCNY6.mjs} +1 -1
  34. package/dist/{chunk-MANZDSTF.mjs → chunk-UD7JYMRU.mjs} +1 -1
  35. package/dist/{chunk-QO2Z7WXW.mjs → chunk-UMILL4LR.mjs} +1 -1
  36. package/dist/{chunk-VLUAFB54.mjs → chunk-V6QZFOJH.mjs} +1 -1
  37. package/dist/{chunk-SE5XAXK5.mjs → chunk-VQXQZ5TQ.mjs} +1 -1
  38. package/dist/{chunk-5MFDXJ4L.mjs → chunk-WKHESSJP.mjs} +1 -1
  39. package/dist/{chunk-HUN2X4VH.mjs → chunk-Y6CZVVJF.mjs} +1 -1
  40. package/dist/components/Blocks/Banner.mjs +1 -1
  41. package/dist/components/Blocks/CallToAction.mjs +1 -1
  42. package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
  43. package/dist/components/Blocks/Content.mjs +1 -1
  44. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  45. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  46. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  47. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  48. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  49. package/dist/components/Blocks/RenderBlocks.js +1 -1
  50. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  51. package/dist/components/Blocks/{ReusableContent.js → ReusableContentBlock.js} +1 -1
  52. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -0
  53. package/dist/components/Blocks/index.d.ts +1 -0
  54. package/dist/components/Blocks/index.js +1 -1
  55. package/dist/components/Blocks/index.mjs +1 -1
  56. package/dist/components/CRM/DealDetails.mjs +1 -1
  57. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  58. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  59. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  60. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  61. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  62. package/dist/components/CRM/NewDealForm.mjs +1 -1
  63. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  64. package/dist/components/CRM/index.mjs +1 -1
  65. package/dist/components/Cards/ContentCard.mjs +1 -1
  66. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  67. package/dist/components/Cards/index.mjs +1 -1
  68. package/dist/components/HeaderFooter/Header.mjs +1 -1
  69. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  70. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  71. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  72. package/dist/components/HeaderFooter/index.mjs +1 -1
  73. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  74. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  75. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  76. package/dist/components/Heros/PostHero/index.mjs +1 -1
  77. package/dist/components/Heros/RenderHero.mjs +1 -1
  78. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  79. package/dist/components/Heros/index.mjs +1 -1
  80. package/dist/components/Layouts/BlogList.mjs +1 -1
  81. package/dist/components/Layouts/BlogList.stories.mjs +1 -1
  82. package/dist/components/Layouts/SlideShow.js +1 -1
  83. package/dist/components/Layouts/SlideShow.mjs +1 -1
  84. package/dist/components/Layouts/SlideShow.stories.js +1 -1
  85. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  86. package/dist/components/Layouts/index.js +3 -3
  87. package/dist/components/Layouts/index.mjs +1 -1
  88. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  89. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  90. package/dist/components/Menus/SidebarRight.mjs +1 -1
  91. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  92. package/dist/components/Menus/index.mjs +1 -1
  93. package/dist/components/Payload/Card/index.mjs +1 -1
  94. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  95. package/dist/components/Payload/Media/index.mjs +1 -1
  96. package/dist/components/Payload/RichText/index.mjs +1 -1
  97. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  98. package/dist/components/Payload/RichText.stories.mjs +1 -1
  99. package/dist/components/Payload/index.mjs +1 -1
  100. package/dist/components/index.js +6 -6
  101. package/dist/components/index.mjs +1 -1
  102. package/dist/components/ui/index.mjs +1 -1
  103. package/dist/components/ui/sidebar.mjs +1 -1
  104. package/dist/index.js +7 -7
  105. package/dist/index.mjs +1 -1
  106. package/dist/metafile-cjs.json +1 -1
  107. package/dist/metafile-esm.json +1 -1
  108. package/dist/pages/Blog.mjs +1 -1
  109. package/dist/pages/Blog.stories.mjs +1 -1
  110. package/dist/pages/Documentation.mjs +1 -1
  111. package/dist/pages/Documentation.stories.mjs +1 -1
  112. package/dist/pages/IndexPage.mjs +1 -1
  113. package/dist/pages/IndexPage.stories.mjs +1 -1
  114. package/dist/pages/Intranet.mjs +1 -1
  115. package/dist/pages/Intranet.stories.mjs +1 -1
  116. package/dist/pages/LandingPage.mjs +1 -1
  117. package/dist/pages/LandingPage.stories.mjs +1 -1
  118. package/dist/pages/Page.mjs +1 -1
  119. package/dist/pages/Page.stories.mjs +1 -1
  120. package/dist/pages/Publish.js +1 -1
  121. package/dist/pages/Publish.mjs +1 -1
  122. package/dist/pages/Publish.stories.js +1 -1
  123. package/dist/pages/Publish.stories.mjs +1 -1
  124. package/dist/pages/Website.js +1 -1
  125. package/dist/pages/Website.mjs +1 -1
  126. package/dist/pages/Website.stories.js +2 -2
  127. package/dist/pages/Website.stories.mjs +1 -1
  128. package/dist/sections/AboutSection.mjs +1 -1
  129. package/dist/sections/AboutSection.stories.mjs +1 -1
  130. package/dist/sections/BlogDetail.mjs +1 -1
  131. package/dist/sections/BlogDetail.stories.mjs +1 -1
  132. package/dist/sections/BlogListSection.mjs +1 -1
  133. package/dist/sections/BlogListSection.stories.mjs +1 -1
  134. package/dist/sections/ContactSection.mjs +1 -1
  135. package/dist/sections/ContactSection.stories.mjs +1 -1
  136. package/dist/sections/ImageSection.stories.mjs +1 -1
  137. package/dist/sections/PricingSection.mjs +1 -1
  138. package/dist/sections/PricingSection.stories.mjs +1 -1
  139. package/dist/sections/form/index.mjs +1 -1
  140. package/dist/sections/index.mjs +1 -1
  141. package/package.json +1 -1
  142. package/dist/chunk-B775ZVKF.mjs +0 -1
  143. package/dist/components/Blocks/ReusableContent.mjs +0 -1
  144. /package/dist/components/Blocks/{ReusableContent.css → ReusableContentBlock.css} +0 -0
  145. /package/dist/components/Blocks/{ReusableContent.d.ts → ReusableContentBlock.d.ts} +0 -0
package/dist/index.js CHANGED
@@ -4,20 +4,20 @@
4
4
  'use strict'
5
5
  'use server'
6
6
 
7
- "use strict";var $c=Object.create;var xr=Object.defineProperty;var Vc=Object.getOwnPropertyDescriptor;var Uc=Object.getOwnPropertyNames;var Wc=Object.getPrototypeOf,Xc=Object.prototype.hasOwnProperty;var Yc=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qc=(e,t)=>{for(var a in t)xr(e,a,{get:t[a],enumerable:!0})},Ln=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Uc(t))!Xc.call(e,r)&&r!==a&&xr(e,r,{get:()=>t[r],enumerable:!(o=Vc(t,r))||o.enumerable});return e};var h=(e,t,a)=>(a=e!=null?$c(Wc(e)):{},Ln(t||!e||!e.__esModule?xr(a,"default",{value:e,enumerable:!0}):a,e)),Kc=e=>Ln(xr({},"__esModule",{value:!0}),e);var $n=Yc((Fo,Ds)=>{"use strict";(function(e,t){typeof Fo=="object"&&typeof Ds=="object"?Ds.exports=t():typeof define=="function"&&define.amd?define([],t):typeof Fo=="object"?Fo.AOS=t():e.AOS=t()})(Fo,function(){return function(e){function t(o){if(a[o])return a[o].exports;var r=a[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var a={};return t.m=e,t.c=a,t.p="dist/",t(0)}([function(e,t,a){"use strict";function o(x){return x&&x.__esModule?x:{default:x}}var r=Object.assign||function(x){for(var ue=1;ue<arguments.length;ue++){var Fe=arguments[ue];for(var Ct in Fe)Object.prototype.hasOwnProperty.call(Fe,Ct)&&(x[Ct]=Fe[Ct])}return x},s=a(1),n=(o(s),a(6)),i=o(n),c=a(7),m=o(c),d=a(8),p=o(d),u=a(9),g=o(u),v=a(10),f=o(v),w=a(11),I=o(w),D=a(14),j=o(D),z=[],ce=!1,W={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},P=function(){var x=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(x&&(ce=!0),ce)return z=(0,I.default)(z,W),(0,f.default)(z,W.once),z},L=function(){z=(0,j.default)(),P()},S=function(){z.forEach(function(x,ue){x.node.removeAttribute("data-aos"),x.node.removeAttribute("data-aos-easing"),x.node.removeAttribute("data-aos-duration"),x.node.removeAttribute("data-aos-delay")})},b=function(x){return x===!0||x==="mobile"&&g.default.mobile()||x==="phone"&&g.default.phone()||x==="tablet"&&g.default.tablet()||typeof x=="function"&&x()===!0},C=function(x){W=r(W,x),z=(0,j.default)();var ue=document.all&&!window.atob;return b(W.disable)||ue?S():(W.disableMutationObserver||p.default.isSupported()||(console.info(`
7
+ "use strict";var Uc=Object.create;var xr=Object.defineProperty;var Wc=Object.getOwnPropertyDescriptor;var Xc=Object.getOwnPropertyNames;var Yc=Object.getPrototypeOf,qc=Object.prototype.hasOwnProperty;var Kc=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),zn=(e,t)=>{for(var a in t)xr(e,a,{get:t[a],enumerable:!0})},Hn=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Xc(t))!qc.call(e,r)&&r!==a&&xr(e,r,{get:()=>t[r],enumerable:!(o=Wc(t,r))||o.enumerable});return e};var h=(e,t,a)=>(a=e!=null?Uc(Yc(e)):{},Hn(t||!e||!e.__esModule?xr(a,"default",{value:e,enumerable:!0}):a,e)),Qc=e=>Hn(xr({},"__esModule",{value:!0}),e);var Xn=Kc((Fo,As)=>{"use strict";(function(e,t){typeof Fo=="object"&&typeof As=="object"?As.exports=t():typeof define=="function"&&define.amd?define([],t):typeof Fo=="object"?Fo.AOS=t():e.AOS=t()})(Fo,function(){return function(e){function t(o){if(a[o])return a[o].exports;var r=a[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var a={};return t.m=e,t.c=a,t.p="dist/",t(0)}([function(e,t,a){"use strict";function o(x){return x&&x.__esModule?x:{default:x}}var r=Object.assign||function(x){for(var ue=1;ue<arguments.length;ue++){var Fe=arguments[ue];for(var Ct in Fe)Object.prototype.hasOwnProperty.call(Fe,Ct)&&(x[Ct]=Fe[Ct])}return x},s=a(1),n=(o(s),a(6)),i=o(n),c=a(7),m=o(c),d=a(8),p=o(d),u=a(9),g=o(u),v=a(10),f=o(v),w=a(11),I=o(w),D=a(14),j=o(D),z=[],ce=!1,W={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},P=function(){var x=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(x&&(ce=!0),ce)return z=(0,I.default)(z,W),(0,f.default)(z,W.once),z},L=function(){z=(0,j.default)(),P()},S=function(){z.forEach(function(x,ue){x.node.removeAttribute("data-aos"),x.node.removeAttribute("data-aos-easing"),x.node.removeAttribute("data-aos-duration"),x.node.removeAttribute("data-aos-delay")})},b=function(x){return x===!0||x==="mobile"&&g.default.mobile()||x==="phone"&&g.default.phone()||x==="tablet"&&g.default.tablet()||typeof x=="function"&&x()===!0},C=function(x){W=r(W,x),z=(0,j.default)();var ue=document.all&&!window.atob;return b(W.disable)||ue?S():(W.disableMutationObserver||p.default.isSupported()||(console.info(`
8
8
  aos: MutationObserver is not supported on this browser,
9
9
  code mutations observing has been disabled.
10
10
  You may have to call "refreshHard()" by yourself.
11
- `),W.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",W.easing),document.querySelector("body").setAttribute("data-aos-duration",W.duration),document.querySelector("body").setAttribute("data-aos-delay",W.delay),W.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?P(!0):W.startEvent==="load"?window.addEventListener(W.startEvent,function(){P(!0)}):document.addEventListener(W.startEvent,function(){P(!0)}),window.addEventListener("resize",(0,m.default)(P,W.debounceDelay,!0)),window.addEventListener("orientationchange",(0,m.default)(P,W.debounceDelay,!0)),window.addEventListener("scroll",(0,i.default)(function(){(0,f.default)(z,W.once)},W.throttleDelay)),W.disableMutationObserver||p.default.ready("[data-aos]",L),z)};e.exports={init:C,refresh:P,refreshHard:L}},function(e,t){},,,,,function(e,t){(function(a){"use strict";function o(b,C,x){function ue(ae){var Ke=pt,ga=Ht;return pt=Ht=void 0,pa=ae,ze=b.apply(ga,Ke)}function Fe(ae){return pa=ae,ke=setTimeout(zt,C),ua?ue(ae):ze}function Ct(ae){var Ke=ae-ot,ga=ae-pa,In=C-Ke;return Wt?L(In,Ft-ga):In}function mt(ae){var Ke=ae-ot,ga=ae-pa;return ot===void 0||Ke>=C||Ke<0||Wt&&ga>=Ft}function zt(){var ae=S();return mt(ae)?ca(ae):void(ke=setTimeout(zt,Ct(ae)))}function ca(ae){return ke=void 0,me&&pt?ue(ae):(pt=Ht=void 0,ze)}function Ut(){ke!==void 0&&clearTimeout(ke),pa=0,pt=ot=Ht=ke=void 0}function ma(){return ke===void 0?ze:ca(S())}function we(){var ae=S(),Ke=mt(ae);if(pt=arguments,Ht=this,ot=ae,Ke){if(ke===void 0)return Fe(ot);if(Wt)return ke=setTimeout(zt,C),ue(ot)}return ke===void 0&&(ke=setTimeout(zt,C)),ze}var pt,Ht,Ft,ze,ke,ot,pa=0,ua=!1,Wt=!1,me=!0;if(typeof b!="function")throw new TypeError(d);return C=c(C)||0,s(x)&&(ua=!!x.leading,Wt="maxWait"in x,Ft=Wt?P(c(x.maxWait)||0,C):Ft,me="trailing"in x?!!x.trailing:me),we.cancel=Ut,we.flush=ma,we}function r(b,C,x){var ue=!0,Fe=!0;if(typeof b!="function")throw new TypeError(d);return s(x)&&(ue="leading"in x?!!x.leading:ue,Fe="trailing"in x?!!x.trailing:Fe),o(b,C,{leading:ue,maxWait:C,trailing:Fe})}function s(b){var C=typeof b=="undefined"?"undefined":m(b);return!!b&&(C=="object"||C=="function")}function n(b){return!!b&&(typeof b=="undefined"?"undefined":m(b))=="object"}function i(b){return(typeof b=="undefined"?"undefined":m(b))=="symbol"||n(b)&&W.call(b)==u}function c(b){if(typeof b=="number")return b;if(i(b))return p;if(s(b)){var C=typeof b.valueOf=="function"?b.valueOf():b;b=s(C)?C+"":C}if(typeof b!="string")return b===0?b:+b;b=b.replace(g,"");var x=f.test(b);return x||w.test(b)?I(b.slice(2),x?2:8):v.test(b)?p:+b}var m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},d="Expected a function",p=NaN,u="[object Symbol]",g=/^\s+|\s+$/g,v=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,w=/^0o[0-7]+$/i,I=parseInt,D=(typeof a=="undefined"?"undefined":m(a))=="object"&&a&&a.Object===Object&&a,j=(typeof self=="undefined"?"undefined":m(self))=="object"&&self&&self.Object===Object&&self,z=D||j||Function("return this")(),ce=Object.prototype,W=ce.toString,P=Math.max,L=Math.min,S=function(){return z.Date.now()};e.exports=r}).call(t,function(){return this}())},function(e,t){(function(a){"use strict";function o(S,b,C){function x(me){var ae=we,Ke=pt;return we=pt=void 0,ot=me,Ft=S.apply(Ke,ae)}function ue(me){return ot=me,ze=setTimeout(mt,b),pa?x(me):Ft}function Fe(me){var ae=me-ke,Ke=me-ot,ga=b-ae;return ua?P(ga,Ht-Ke):ga}function Ct(me){var ae=me-ke,Ke=me-ot;return ke===void 0||ae>=b||ae<0||ua&&Ke>=Ht}function mt(){var me=L();return Ct(me)?zt(me):void(ze=setTimeout(mt,Fe(me)))}function zt(me){return ze=void 0,Wt&&we?x(me):(we=pt=void 0,Ft)}function ca(){ze!==void 0&&clearTimeout(ze),ot=0,we=ke=pt=ze=void 0}function Ut(){return ze===void 0?Ft:zt(L())}function ma(){var me=L(),ae=Ct(me);if(we=arguments,pt=this,ke=me,ae){if(ze===void 0)return ue(ke);if(ua)return ze=setTimeout(mt,b),x(ke)}return ze===void 0&&(ze=setTimeout(mt,b)),Ft}var we,pt,Ht,Ft,ze,ke,ot=0,pa=!1,ua=!1,Wt=!0;if(typeof S!="function")throw new TypeError(m);return b=i(b)||0,r(C)&&(pa=!!C.leading,ua="maxWait"in C,Ht=ua?W(i(C.maxWait)||0,b):Ht,Wt="trailing"in C?!!C.trailing:Wt),ma.cancel=ca,ma.flush=Ut,ma}function r(S){var b=typeof S=="undefined"?"undefined":c(S);return!!S&&(b=="object"||b=="function")}function s(S){return!!S&&(typeof S=="undefined"?"undefined":c(S))=="object"}function n(S){return(typeof S=="undefined"?"undefined":c(S))=="symbol"||s(S)&&ce.call(S)==p}function i(S){if(typeof S=="number")return S;if(n(S))return d;if(r(S)){var b=typeof S.valueOf=="function"?S.valueOf():S;S=r(b)?b+"":b}if(typeof S!="string")return S===0?S:+S;S=S.replace(u,"");var C=v.test(S);return C||f.test(S)?w(S.slice(2),C?2:8):g.test(S)?d:+S}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},m="Expected a function",d=NaN,p="[object Symbol]",u=/^\s+|\s+$/g,g=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,f=/^0o[0-7]+$/i,w=parseInt,I=(typeof a=="undefined"?"undefined":c(a))=="object"&&a&&a.Object===Object&&a,D=(typeof self=="undefined"?"undefined":c(self))=="object"&&self&&self.Object===Object&&self,j=I||D||Function("return this")(),z=Object.prototype,ce=z.toString,W=Math.max,P=Math.min,L=function(){return j.Date.now()};e.exports=o}).call(t,function(){return this}())},function(e,t){"use strict";function a(c){var m=void 0,d=void 0,p=void 0;for(m=0;m<c.length;m+=1)if(d=c[m],d.dataset&&d.dataset.aos||(p=d.children&&a(d.children)))return!0;return!1}function o(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function r(){return!!o()}function s(c,m){var d=window.document,p=o(),u=new p(n);i=m,u.observe(d.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function n(c){c&&c.forEach(function(m){var d=Array.prototype.slice.call(m.addedNodes),p=Array.prototype.slice.call(m.removedNodes),u=d.concat(p);if(a(u))return i()})}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.default={isSupported:r,ready:s}},function(e,t){"use strict";function a(d,p){if(!(d instanceof p))throw new TypeError("Cannot call a class Xr a function")}function o(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function d(p,u){for(var g=0;g<u.length;g++){var v=u[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(p,v.key,v)}}return function(p,u,g){return u&&d(p.prototype,u),g&&d(p,g),p}}(),s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( ut)?|phone|p(ixi|ut)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,n=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|Vn|s\-)|ai(gl|rn)|ut(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|Xr(ut|gl)|attw|au(di|\-m|r |s )|avan|be(ck|rl|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|ut)|craw|ut(it|rl|ng)|dbte|nc\-s|devi|dica|dmob|do(c|p)o|ns(12|\-d)|ut(49|ai)|em(l2|rl)|er(rs|k0)|esl8|ez([4-7]0|ut|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-Vn|go(\.w|od)|ut(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ut(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|ut)|ut(Vn|xi)|lg( g|\/(ut|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(ut|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|gl|ts)|mmef|Vn(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|ut)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|ut)|pn\-2|po(ck|ut|ut)|prox|psio|pt\-g|ut\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ut|zo)|s55\/|sa(ge|ma|mm|gl|ny|va)|sc(01|h\-|Vn|p\-)|sdk\/|ut(c(\-|0|1)|47|mc|ut|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(ut|ar|b3|it|t5)|Vn(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\-Vn|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|ut)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( ut)?|phone|p(ixi|ut)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,c=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|Vn|s\-)|ai(gl|rn)|ut(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|Xr(ut|gl)|attw|au(di|\-m|r |s )|avan|be(ck|rl|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|ut)|craw|ut(it|rl|ng)|dbte|nc\-s|devi|dica|dmob|do(c|p)o|ns(12|\-d)|ut(49|ai)|em(l2|rl)|er(rs|k0)|esl8|ez([4-7]0|ut|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-Vn|go(\.w|od)|ut(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ut(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|ut)|ut(Vn|xi)|lg( g|\/(ut|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(ut|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|gl|ts)|mmef|Vn(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|ut)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|ut)|pn\-2|po(ck|ut|ut)|prox|psio|pt\-g|ut\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ut|zo)|s55\/|sa(ge|ma|mm|gl|ny|va)|sc(01|h\-|Vn|p\-)|sdk\/|ut(c(\-|0|1)|47|mc|ut|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(ut|ar|b3|it|t5)|Vn(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\-Vn|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|ut)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,m=function(){function d(){a(this,d)}return r(d,[{key:"phone",value:function(){var p=o();return!(!s.test(p)&&!n.test(p.substr(0,4)))}},{key:"mobile",value:function(){var p=o();return!(!i.test(p)&&!c.test(p.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),d}();t.default=new m},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(r,s,n){var i=r.node.getAttribute("data-aos-once");s>r.position?r.node.classList.add("aos-animate"):typeof i!="undefined"&&(i==="false"||!n&&i!=="true")&&r.node.classList.remove("aos-animate")},o=function(r,s){var n=window.pageYOffset,i=window.innerHeight;r.forEach(function(c,m){a(c,i+n,s)})};t.default=o},function(e,t,a){"use strict";function o(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(12),s=o(r),n=function(i,c){return i.forEach(function(m,d){m.node.classList.add("aos-init"),m.position=(0,s.default)(m.node,c.offset)}),i};t.default=n},function(e,t,a){"use strict";function o(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(13),s=o(r),n=function(i,c){var m=0,d=0,p=window.innerHeight,u={offset:i.getAttribute("data-aos-offset"),anchor:i.getAttribute("data-aos-anchor"),anchorPlacement:i.getAttribute("data-aos-anchor-placement")};switch(u.offset&&!isNaN(u.offset)&&(d=parseInt(u.offset)),u.anchor&&document.querySelectorAll(u.anchor)&&(i=document.querySelectorAll(u.anchor)[0]),m=(0,s.default)(i).top,u.anchorPlacement){case"top-bottom":break;case"center-bottom":m+=i.offsetHeight/2;break;case"bottom-bottom":m+=i.offsetHeight;break;case"top-center":m+=p/2;break;case"bottom-center":m+=p/2+i.offsetHeight;break;case"center-center":m+=p/2+i.offsetHeight/2;break;case"top-top":m+=p;break;case"bottom-top":m+=i.offsetHeight+p;break;case"center-top":m+=i.offsetHeight/2+p}return u.anchorPlacement||u.offset||isNaN(c)||(d=c),m+d};t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(o){for(var r=0,s=0;o&&!isNaN(o.offsetLeft)&&!isNaN(o.offsetTop);)r+=o.offsetLeft-(o.tagName!="BODY"?o.scrollLeft:0),s+=o.offsetTop-(o.tagName!="BODY"?o.scrollTop:0),o=o.offsetParent;return{top:s,left:r}};t.default=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(o){return o=o||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(o,function(r){return{node:r}})};t.default=a}])})});var cu={};qc(cu,{AOSInit:()=>Am,AboutSection:()=>Kp,Alert:()=>Ti,AlertDescription:()=>Ai,AlertTitle:()=>Di,ApproveLeave:()=>hn,Avatar:()=>Zt,AvatarFallback:()=>ta,AvatarImage:()=>ea,Badge:()=>yt,BannerBlock:()=>Hi,BlogCard:()=>_d,BlogDetail:()=>iu,BlogList:()=>vp,BlogListSection:()=>Jp,BrandLogo:()=>za,Breadcrumb:()=>As,BreadcrumbEllipsis:()=>zs,BreadcrumbItem:()=>Is,BreadcrumbLink:()=>Ls,BreadcrumbList:()=>Ms,BreadcrumbPage:()=>Bs,BreadcrumbSeparator:()=>Es,Breadcrumbs:()=>un,Button:()=>M,CMSLink:()=>Ot,CRMKanbanBoard:()=>Xp,Calendar:()=>ar,CalendarView:()=>Pn,CallToActionBlock:()=>rr,Card:()=>cr,Categories:()=>pr,Checkbox:()=>Dt,CodeBlock:()=>Gi,Collapsible:()=>Yt,CollapsibleContent:()=>ya,CollapsibleTrigger:()=>va,CollectionArchive:()=>yp,Command:()=>Or,CommandDialog:()=>Hl,CommandEmpty:()=>Ci,CommandGroup:()=>Pi,CommandInput:()=>wi,CommandItem:()=>ki,CommandList:()=>Ni,CommandSeparator:()=>Si,CommandShortcut:()=>Ri,ContactSection:()=>ru,Container:()=>Ae,ContentBlock:()=>Yi,ContentCard:()=>Xi,CopyButton:()=>Oi,CustomLink:()=>Ie,CustomerCard:()=>Zl,DealCard:()=>kn,DealDetails:()=>Sn,Dialog:()=>vt,DialogClose:()=>Hr,DialogContent:()=>it,DialogDescription:()=>xi,DialogFooter:()=>hi,DialogHeader:()=>Rt,DialogOverlay:()=>Fr,DialogPortal:()=>yi,DialogTitle:()=>Tt,DialogTrigger:()=>zr,DropdownMenu:()=>Xn,DropdownMenuCheckboxItem:()=>Gs,DropdownMenuContent:()=>Os,DropdownMenuGroup:()=>qn,DropdownMenuItem:()=>_s,DropdownMenuLabel:()=>$s,DropdownMenuPortal:()=>Kn,DropdownMenuRadioGroup:()=>Jn,DropdownMenuRadioItem:()=>js,DropdownMenuSeparator:()=>Vs,DropdownMenuShortcut:()=>Us,DropdownMenuSub:()=>Qn,DropdownMenuSubContent:()=>Fs,DropdownMenuSubTrigger:()=>Hs,DropdownMenuTrigger:()=>Yn,DynamicIcon:()=>Ze,EventCard:()=>ed,FeatureCard:()=>Kl,FeatureGrid:()=>hd,FeaturesBlock:()=>sr,Filter:()=>nn,Footer:()=>_p,Header:()=>Gp,HeaderDesktop:()=>fr,HeaderMobile:()=>br,HeadingImage:()=>pp,Hero:()=>Zm,HighImpactHero:()=>ln,HolidayGrid:()=>Cn,HolidayTracker:()=>Up,HoverCard:()=>Il,HoverCardContent:()=>vi,HoverCardTrigger:()=>Ll,Image:()=>sd,ImageBlock:()=>Wi,ImageSection:()=>du,InfoTile:()=>rp,Input:()=>Qe,Insight:()=>op,KanbanColumn:()=>Dn,Label:()=>ne,Logo:()=>hp,LowImpactHero:()=>mn,MOTD:()=>ip,MainPageSection:()=>nu,Media:()=>sa,MediaBlock:()=>wo,MediumImpactHero:()=>cn,NewCustomerForm:()=>Rn,NewDealForm:()=>Tn,NewsGrid:()=>Ld,OrgChart:()=>dp,PageRange:()=>Np,Pagination:()=>rn,PayloadPagination:()=>Cp,Popover:()=>Jo,PopoverAnchor:()=>Rl,PopoverContent:()=>xo,PopoverTrigger:()=>Zo,PostHero:()=>Mp,PricingCard:()=>zi,PricingSection:()=>qp,ProjectCard:()=>rd,ProjectTeam:()=>Tp,ProposalSummary:()=>cp,RelatedContent:()=>Dp,RelatedPosts:()=>fp,RenderBlocks:()=>dr,RenderHero:()=>Lp,RequestLeave:()=>Nn,RichText:()=>de,ScrollArea:()=>ka,ScrollBar:()=>Er,SectionHero:()=>pn,Select:()=>Xa,SelectContent:()=>Aa,SelectGroup:()=>Um,SelectItem:()=>Ma,SelectLabel:()=>$l,SelectScrollDownButton:()=>Li,SelectScrollUpButton:()=>Ii,SelectSeparator:()=>Vl,SelectTrigger:()=>Da,SelectValue:()=>Ya,Separator:()=>Oo,ServiceCard:()=>Ei,ServiceSection:()=>Yp,Sheet:()=>Nr,SheetClose:()=>il,SheetContent:()=>Go,SheetDescription:()=>Qs,SheetFooter:()=>qs,SheetHeader:()=>Ys,SheetOverlay:()=>Cr,SheetPortal:()=>Xs,SheetTitle:()=>Ks,SheetTrigger:()=>sl,Sidebar:()=>_a,SidebarContent:()=>xa,SidebarFooter:()=>ja,SidebarGroup:()=>gt,SidebarGroupAction:()=>ri,SidebarGroupContent:()=>St,SidebarGroupLabel:()=>Kt,SidebarHeader:()=>Ga,SidebarInput:()=>oi,SidebarInset:()=>ai,SidebarLeft:()=>Pp,SidebarMenu:()=>Je,SidebarMenuAction:()=>Vo,SidebarMenuBadge:()=>si,SidebarMenuButton:()=>ft,SidebarMenuItem:()=>Oe,SidebarMenuSkeleton:()=>ii,SidebarMenuSub:()=>wa,SidebarMenuSubButton:()=>Ca,SidebarMenuSubItem:()=>Na,SidebarProvider:()=>Zs,SidebarRail:()=>ti,SidebarRight:()=>Rp,SidebarSeparator:()=>$o,SidebarTrigger:()=>ei,SimpleHeader:()=>Ep,Skeleton:()=>fe,SlideShow:()=>Ad,TextAndImages:()=>Bd,Textarea:()=>Ia,ThemeProvider:()=>jp,Toast:()=>Xo,ToastAction:()=>di,ToastClose:()=>Yo,ToastDescription:()=>Ko,ToastProvider:()=>Lr,ToastTitle:()=>qo,ToastViewport:()=>Wo,Toaster:()=>wl,Toggle:()=>mi,ToggleGroup:()=>pi,ToggleGroupItem:()=>ui,Tooltip:()=>Rr,TooltipContent:()=>jo,TooltipProvider:()=>kr,TooltipTrigger:()=>Tr,VideoHeader:()=>Fp,WhyUs:()=>mp,badgeVariants:()=>Mi,buttonVariants:()=>ha,cn:()=>l,getTableOfContents:()=>Tm,reducer:()=>vl,toast:()=>yl,toggleVariants:()=>Qo,useIsMobile:()=>Sr,useSidebar:()=>yo,useToast:()=>Ir});module.exports=Kc(cu);var go=h(require("react")),wr=require("@radix-ui/react-icons"),Wn=require("@radix-ui/react-slot");var jn=require("clsx");var Ts="-",Qc=e=>{let t=Zc(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:n=>{let i=n.split(Ts);return i[0]===""&&i.length!==1&&i.shift(),zn(i,t)||Jc(n)},getConflictingClassGroupIds:(n,i)=>{let c=a[n]||[];return i&&o[n]?[...c,...o[n]]:c}}},zn=(e,t)=>{var n;if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?zn(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(Ts);return(n=t.validators.find(({validator:i})=>i(s)))==null?void 0:n.classGroupId},Bn=/^\[(.+)\]$/,Jc=e=>{if(Bn.test(e)){let t=Bn.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Zc=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return tm(Object.entries(e.classGroups),a).forEach(([s,n])=>{Rs(n,o,s,t)}),o},Rs=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:En(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(em(r)){Rs(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,n])=>{Rs(n,En(t,s),a,o)})})},En=(e,t)=>{let a=e;return t.split(Ts).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},em=e=>e.isThemeGetter,tm=(e,t)=>t?e.map(([a,o])=>{let r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([n,i])=>[t+n,i])):s);return[a,r]}):e,am=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,n)=>{a.set(s,n),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let n=a.get(s);if(n!==void 0)return n;if((n=o.get(s))!==void 0)return r(s,n),n},set(s,n){a.has(s)?a.set(s,n):r(s,n)}}},Hn="!",om=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,n=i=>{let c=[],m=0,d=0,p;for(let w=0;w<i.length;w++){let I=i[w];if(m===0){if(I===r&&(o||i.slice(w,w+s)===t)){c.push(i.slice(d,w)),d=w+s;continue}if(I==="/"){p=w;continue}}I==="["?m++:I==="]"&&m--}let u=c.length===0?i:i.substring(d),g=u.startsWith(Hn),v=g?u.substring(1):u,f=p&&p>d?p-d:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:f}};return a?i=>a({className:i,parseClassName:n}):n},rm=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},sm=e=>({cache:am(e.cacheSize),parseClassName:om(e),...Qc(e)}),im=/\s+/,nm=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],n=e.trim().split(im),i="";for(let c=n.length-1;c>=0;c-=1){let m=n[c],{modifiers:d,hasImportantModifier:p,baseClassName:u,maybePostfixModifierPosition:g}=a(m),v=!!g,f=o(v?u.substring(0,g):u);if(!f){if(!v){i=m+(i.length>0?" "+i:i);continue}if(f=o(u),!f){i=m+(i.length>0?" "+i:i);continue}v=!1}let w=rm(d).join(":"),I=p?w+Hn:w,D=I+f;if(s.includes(D))continue;s.push(D);let j=r(f,v);for(let z=0;z<j.length;++z){let ce=j[z];s.push(I+ce)}i=m+(i.length>0?" "+i:i)}return i};function lm(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Fn(t))&&(o&&(o+=" "),o+=a);return o}var Fn=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Fn(e[o]))&&(a&&(a+=" "),a+=t);return a};function dm(e,...t){let a,o,r,s=n;function n(c){let m=t.reduce((d,p)=>p(d),e());return a=sm(m),o=a.cache.get,r=a.cache.set,s=i,i(c)}function i(c){let m=o(c);if(m)return m;let d=nm(c,a);return r(c,d),d}return function(){return s(lm.apply(null,arguments))}}var ie=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},On=/^\[(?:([a-z-]+):)?(.+)\]$/i,cm=/^\d+\/\d+$/,mm=new Set(["px","full","screen"]),pm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|gl)$/,um=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|nc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,gm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,fm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xt=e=>po(e)||mm.has(e)||cm.test(e),fa=e=>uo(e,"length",Pm),po=e=>!!e&&!Number.isNaN(Number(e)),ks=e=>uo(e,"number",po),zo=e=>!!e&&Number.isInteger(Number(e)),vm=e=>e.endsWith("%")&&po(e.slice(0,-1)),H=e=>On.test(e),ba=e=>pm.test(e),ym=new Set(["length","size","percentage"]),hm=e=>uo(e,ym,_n),xm=e=>uo(e,"position",_n),wm=new Set(["image","url"]),Nm=e=>uo(e,wm,km),Cm=e=>uo(e,"",Sm),Ho=()=>!0,uo=(e,t,a)=>{let o=On.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Pm=e=>um.test(e)&&!gm.test(e),_n=()=>!1,Sm=e=>fm.test(e),km=e=>bm.test(e);var Rm=()=>{let e=ie("colors"),t=ie("spacing"),a=ie("blur"),o=ie("brightness"),r=ie("borderColor"),s=ie("borderRadius"),n=ie("borderSpacing"),i=ie("borderWidth"),c=ie("contrast"),m=ie("grayscale"),d=ie("hueRotate"),p=ie("invert"),u=ie("gap"),g=ie("gradientColorStops"),v=ie("gradientColorStopPositions"),f=ie("inset"),w=ie("margin"),I=ie("opacity"),D=ie("padding"),j=ie("saturate"),z=ie("scale"),ce=ie("sepia"),W=ie("skew"),P=ie("space"),L=ie("translate"),S=()=>["auto","contain","none"],b=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",H,t],x=()=>[H,t],ue=()=>["",Xt,fa],Fe=()=>["auto",po,H],Ct=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],mt=()=>["solid","dashed","dotted","double","none"],zt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ca=()=>["start","end","center","between","around","evenly","stretch"],Ut=()=>["","0",H],ma=()=>["auto","avoid","all","avoid-page","page","left","right","column"],we=()=>[po,H];return{cacheSize:500,separator:":",theme:{colors:[Ho],spacing:[Xt,fa],blur:["none","",ba,H],brightness:we(),borderColor:[e],borderRadius:["none","","full",ba,H],borderSpacing:x(),borderWidth:ue(),contrast:we(),grayscale:Ut(),hueRotate:we(),invert:Ut(),gap:x(),gradientColorStops:[e],gradientColorStopPositions:[vm,fa],inset:C(),margin:C(),opacity:we(),padding:x(),saturate:we(),scale:we(),sepia:Ut(),skew:we(),space:x(),translate:x()},classGroups:{aspect:[{aspect:["auto","square","video",H]}],container:["container"],columns:[{columns:[ba]}],"break-after":[{"break-after":ma()}],"break-before":[{"break-before":ma()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ct(),H]}],overflow:[{overflow:b()}],"overflow-x":[{"overflow-x":b()}],"overflow-ut":[{"overflow-ut":b()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-ut":[{"overscroll-ut":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-ut":[{"inset-ut":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",zo,H]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",H]}],grow:[{grow:Ut()}],shrink:[{shrink:Ut()}],order:[{order:["first","last","none",zo,H]}],"grid-cols":[{"grid-cols":[Ho]}],"col-start-end":[{col:["auto",{span:["full",zo,H]},H]}],"col-start":[{"col-start":Fe()}],"col-end":[{"col-end":Fe()}],"grid-rows":[{"grid-rows":[Ho]}],"row-start-end":[{row:["auto",{span:[zo,H]},H]}],"row-start":[{"row-start":Fe()}],"row-end":[{"row-end":Fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",H]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",H]}],gap:[{gap:[u]}],"gap-x":[{"gap-x":[u]}],"gap-ut":[{"gap-ut":[u]}],"justify-content":[{justify:["normal",...ca()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ca(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ca(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[D]}],px:[{px:[D]}],py:[{py:[D]}],ps:[{ps:[D]}],ut:[{ut:[D]}],pt:[{pt:[D]}],pr:[{pr:[D]}],pb:[{pb:[D]}],pl:[{pl:[D]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],gl:[{gl:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ut:[{ut:[w]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-ut":[{"space-ut":[P]}],"space-ut-reverse":["space-ut-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",H,t]}],"min-w":[{"min-w":[H,t,"min","max","fit"]}],"max-w":[{"max-w":[H,t,"none","full","min","max","fit","prose",{screen:[ba]},ba]}],h:[{h:[H,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[H,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ba,fa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ks]}],"font-family":[{font:[Ho]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",H]}],"line-clamp":[{"line-clamp":["none",po,ks]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Xt,H]}],"list-image":[{"list-image":["none",H]}],"list-style-type":[{list:["none","disc","decimal",H]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[I]}],"text-decoration":["underline","overline","line-through","Vn-underline"],"text-decoration-style":[{decoration:[...mt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Xt,fa]}],"underline-offset":[{"underline-offset":["auto",Xt,H]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",H]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[I]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ct(),xm]}],"bg-repeat":[{bg:["Vn-repeat",{repeat:["","x","ut","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",hm]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Nm]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-ut":[{"rounded-ut":[s]}],"rounded-ut":[{"rounded-ut":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-ut":[{"border-ut":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[I]}],"border-style":[{border:[...mt(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-ut":[{"divide-ut":[i]}],"divide-ut-reverse":["divide-ut-reverse"],"divide-opacity":[{"divide-opacity":[I]}],"divide-style":[{divide:mt()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-ut":[{"border-ut":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...mt()]}],"outline-offset":[{"outline-offset":[Xt,H]}],"outline-w":[{outline:[Xt,fa]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[I]}],"ring-offset-w":[{"ring-offset":[Xt,fa]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ba,Cm]}],"shadow-color":[{shadow:[Ho]}],opacity:[{opacity:[I]}],"mix-blend":[{"mix-blend":[...zt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":zt()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",ba,H]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[j]}],sepia:[{sepia:[ce]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[I]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-ut":[{"border-spacing-ut":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",H]}],duration:[{duration:we()}],ease:[{ease:["linear","in","out","in-out",H]}],delay:[{delay:we()}],animate:[{animate:["none","spin","ping","pulse","bounce",H]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-ut":[{"scale-ut":[z]}],rotate:[{rotate:[zo,H]}],"translate-x":[{"translate-x":[L]}],"translate-ut":[{"translate-ut":[L]}],"skew-x":[{"skew-x":[W]}],"skew-ut":[{"skew-ut":[W]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",H]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","Vn-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","ut-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",H]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","ut","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-gl":[{"scroll-gl":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ut":[{"scroll-ut":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-ut":[{"scroll-ut":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","ut","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-ut":[{"touch-pan":["ut","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",H]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Xt,fa,ks]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-ut"],overscroll:["overscroll-x","overscroll-ut"],inset:["inset-x","inset-ut","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-ut":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-ut"],p:["px","py","ps","ut","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","gl","me","mt","mr","mb","ut"],mx:["mr","ut"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-ut","rounded-ut","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-ut","rounded-ut"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-ut"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-ut":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-ut":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-gl","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ut"],"scroll-mx":["scroll-mr","scroll-ut"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-ut","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-ut","touch-pz"],"touch-x":["touch"],"touch-ut":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Gn=dm(Rm);function l(...e){return Gn((0,jn.clsx)(e))}function Tm(e){let t=0,a=(s,n)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${n}`,o=e.layout.flatMap(s=>{let n=[];return"title"in s&&s.title&&n.push({text:s.title,id:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(i=>{var c,m,d,p,u;if(i.title&&n.push({text:i.title,id:a(i.title,t++),tag:"h2"}),(m=(c=i.richText)==null?void 0:c.root)!=null&&m.children&&((p=(d=i.richText)==null?void 0:d.root)==null?void 0:p.children.length)===1){let g=i.richText.root.children.filter(v=>v!==void 0&&v.type==="heading");for(let v of g)v.children[0]&&n.push({text:(u=v.children[0].text)!=null?u:"",id:a(v.children[0].text,t++),tag:v.tag||"h2"})}}),n}),r=Dm(e.layout);return{tableOfContents:o,contentWithIds:r}}function Dm(e){let t=(o,r)=>`${o.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${r}`,a=0;return e.map(o=>(o.title&&(o.id=t(o.title,a++)),o.columns&&(o.columns=o.columns.map(r=>(r.title&&(r.id=t(r.title,a++)),r.richText&&(r.richText.root.children=r.richText.root.children.filter(s=>s!==void 0).filter(s=>s.children!==void 0&&s.children.length>0).map(s=>(s.type==="heading"&&s.children[0].text&&(s.id=t(s.children[0].text,a++)),s))),r))),o))}var Vn=require("react"),Un=h($n());function Am(){return(0,Vn.useEffect)(()=>{Un.default.init({duration:1e3,offset:0,once:!0})},[]),null}var ut=require("react/jsx-runtime"),As=go.forwardRef(({...e},t)=>(0,ut.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));As.displayName="Breadcrumb";var Ms=go.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("wr",{ref:a,className:l("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Ms.displayName="BreadcrumbList";var Is=go.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("li",{ref:a,className:l("inline-flex items-center gap-1.5",e),...t}));Is.displayName="BreadcrumbItem";var Ls=go.forwardRef(({asChild:e,className:t,...a},o)=>(0,ut.jsx)(e?Wn.Slot:"a",{ref:o,className:l("transition-colors hover:text-foreground",t),...a}));Ls.displayName="BreadcrumbLink";var Bs=go.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:l("font-normal text-foreground",e),...t}));Bs.displayName="BreadcrumbPage";var Es=({children:e,className:t,...a})=>(0,ut.jsx)("li",{role:"presentation","aria-hidden":"true",className:l("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e!=null?e:(0,ut.jsx)(wr.ChevronRightIcon,{})});Es.displayName="BreadcrumbSeparator";var zs=({className:e,...t})=>(0,ut.jsxs)("span",{role:"presentation","aria-hidden":"true",className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,ut.jsx)(wr.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,ut.jsx)("span",{className:"sr-only",children:"More"})]});zs.displayName="BreadcrumbElipssis";var fo=h(require("@radix-ui/react-collapsible")),Yt=fo.Root,va=fo.CollapsibleTrigger,ya=fo.CollapsibleContent;var qt=h(require("react")),_=h(require("@radix-ui/react-dropdown-menu"));var Xn=_.Root,Yn=_.Trigger,qn=_.Group,Kn=_.Portal,Qn=_.Sub,Jn=_.RadioGroup,Hs=qt.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,ut.jsxs)(_.SubTrigger,{ref:r,className:l("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,(0,ut.jsx)(wr.ChevronRightIcon,{className:"ut-auto"})]}));Hs.displayName=_.SubTrigger.displayName;var Fs=qt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(_.SubContent,{ref:a,className:l("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Fs.displayName=_.SubContent.displayName;var Os=qt.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,ut.jsx)(_.Portal,{children:(0,ut.jsx)(_.Content,{ref:o,sideOffset:t,className:l("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Os.displayName=_.Content.displayName;var _s=qt.forwardRef(({className:e,inset:t,...a},o)=>(0,ut.jsx)(_.Item,{ref:o,className:l("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));_s.displayName=_.Item.displayName;var Gs=qt.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,ut.jsxs)(_.CheckboxItem,{ref:r,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[(0,ut.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,ut.jsx)(_.ItemIndicator,{children:(0,ut.jsx)(wr.CheckIcon,{className:"h-4 w-4"})})}),t]}));Gs.displayName=_.CheckboxItem.displayName;var js=qt.forwardRef(({className:e,children:t,...a},o)=>(0,ut.jsxs)(_.RadioItem,{ref:o,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,ut.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,ut.jsx)(_.ItemIndicator,{children:(0,ut.jsx)(wr.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));js.displayName=_.RadioItem.displayName;var $s=qt.forwardRef(({className:e,inset:t,...a},o)=>(0,ut.jsx)(_.Label,{ref:o,className:l("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));$s.displayName=_.Label.displayName;var Vs=qt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(_.Separator,{ref:a,className:l("-mx-1 my-1 h-px bg-muted",e),...t}));Vs.displayName=_.Separator.displayName;var Us=({className:e,...t})=>(0,ut.jsx)("span",{className:l("ut-auto text-xs tracking-widest opacity-60",e),...t});Us.displayName="DropdownMenuShortcut";var Zn=h(require("react"));var Qe=Zn.forwardRef(({className:e,type:t,...a},o)=>(0,ut.jsx)("input",{type:t,className:l("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));Qe.displayName="Input";var tl=h(require("react")),Ws=h(require("@radix-ui/react-separator"));var Oo=tl.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,ut.jsx)(Ws.Root,{ref:r,decorative:a,orientation:t,className:l("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));Oo.displayName=Ws.Root.displayName;var _o=h(require("react")),ge=h(require("@radix-ui/react-dialog")),rl=require("class-variance-authority");var Nr=ge.Root,sl=ge.Trigger,il=ge.Close,Xs=ge.Portal,Cr=_o.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(ge.Overlay,{className:l("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));Cr.displayName=ge.Overlay.displayName;var Mm=(0,rl.cva)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-ut-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-ut-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Go=_o.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,ut.jsxs)(Xs,{children:[(0,ut.jsx)(Cr,{}),(0,ut.jsxs)(ge.Content,{ref:r,className:l(Mm({side:e}),t),...o,children:[(0,ut.jsxs)(ge.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,ut.jsx)(wr.Cross2Icon,{className:"h-4 w-4"}),(0,ut.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));Go.displayName=ge.Content.displayName;var Ys=({className:e,...t})=>(0,ut.jsx)("div",{className:l("flex flex-col space-ut-2 text-center sm:text-left",e),...t});Ys.displayName="SheetHeader";var qs=({className:e,...t})=>(0,ut.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});qs.displayName="SheetFooter";var Ks=_o.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(ge.Title,{ref:a,className:l("text-lg font-semibold text-foreground",e),...t}));Ks.displayName=ge.Title.displayName;var Qs=_o.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(ge.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));Qs.displayName=ge.Description.displayName;var G=h(require("react")),gl=require("lucide-react");var Sr=(e=768)=>{let[t,a]=(0,Vn.useState)(!1);return(0,Vn.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var dl=h(require("react")),ha=(0,rl.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"}}}),M=dl.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,ut.jsx)(e?Wn.Slot:"button",{className:l(ha({className:t,size:a,variant:o})),ref:s,...r}));M.displayName="Button";function fe({className:e,...t}){return(0,ut.jsx)("div",{className:l("animate-pulse rounded-md bg-primary/10",e),...t})}var pl=h(require("react")),Pt=h(require("@radix-ui/react-tooltip"));var kr=Pt.Provider,Rr=Pt.Root,Tr=Pt.Trigger,jo=pl.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,ut.jsx)(Pt.Portal,{children:(0,ut.jsx)(Pt.Content,{ref:o,sideOffset:t,className:l("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));jo.displayName=Pt.Content.displayName;var Im="sidebar:state",Lm=60*60*24*7,Bm="16rem",Em="18rem",zm="3rem",Hm="b",fl=G.createContext(null);function yo(){let e=G.useContext(fl);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var Zs=G.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...n},i)=>{let c=Sr(),[m,d]=G.useState(!1),[p,u]=G.useState(e),g=t!=null?t:p,v=G.useCallback(D=>{if(a)return a==null?void 0:a(typeof D=="function"?D(g):D);u(D),document.cookie=`${Im}=${g}; path=/; max-age=${Lm}`},[a,g]),f=G.useCallback(()=>c?d(D=>!D):v(D=>!D),[c,v,d]);G.useEffect(()=>{let D=j=>{j.key===Hm&&(j.metaKey||j.ctrlKey)&&(j.preventDefault(),f())};return window.addEventListener("keydown",D),()=>window.removeEventListener("keydown",D)},[f]);let w=g?"expanded":"collapsed",I=G.useMemo(()=>({state:w,open:g,setOpen:v,isMobile:c,openMobile:m,setOpenMobile:d,toggleSidebar:f}),[w,g,v,c,m,d,f]);return(0,ut.jsx)(fl.Provider,{value:I,children:(0,ut.jsx)(kr,{delayDuration:0,children:(0,ut.jsx)("div",{style:{"--sidebar-width":Bm,"--sidebar-width-icon":zm,...r},className:l("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:i,...n,children:s})})})});Zs.displayName="SidebarProvider";var _a=G.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},n)=>{let{isMobile:i,state:c,openMobile:m,setOpenMobile:d}=yo();return a==="none"?(0,ut.jsx)("div",{className:l("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:n,...s,children:r}):i?(0,ut.jsx)(Nr,{open:m,onOpenChange:d,...s,children:(0,ut.jsx)(Go,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Em},side:e,children:(0,ut.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,ut.jsxs)("div",{ref:n,className:"group peer hidden md:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,ut.jsx)("div",{className:l("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,ut.jsx)("div",{className:l("duration-200 fixed top-14 bottom-0 z-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...s,children:(0,ut.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:r})})]})});_a.displayName="Sidebar";var ei=G.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=yo();return(0,ut.jsxs)(M,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:l("h-7 w-7",e),onClick:s=>{t==null||t(s),r()},...a,children:[(0,ut.jsx)(gl.PanelLeft,{}),(0,ut.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});ei.displayName="SidebarTrigger";var ti=G.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=yo();return(0,ut.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:l("absolute inset-ut-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-ut-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});ti.displayName="SidebarRail";var ai=G.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("main",{ref:a,className:l("flex flex-1 flex-col bg-background overflow-ut-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ut-2 md:peer-data-[variant=inset]:ut-0 md:peer-data-[variant=inset]:rounded-gl md:peer-data-[variant=inset]:shadow",e),...t}));ai.displayName="SidebarInset";var oi=G.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Qe,{ref:a,"data-sidebar":"input",className:l("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));oi.displayName="SidebarInput";var Ga=G.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"header",className:l("flex flex-col gap-2 p-2",e),...t}));Ga.displayName="SidebarHeader";var ja=G.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"footer",className:l("flex flex-col gap-2 p-2",e),...t}));ja.displayName="SidebarFooter";var $o=G.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Oo,{ref:a,"data-sidebar":"separator",className:l("mx-2 w-auto bg-sidebar-border",e),...t}));$o.displayName="SidebarSeparator";var xa=G.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"content",className:l("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));xa.displayName="SidebarContent";var gt=G.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"group",className:l("relative flex w-full min-w-0 flex-col p-2",e),...t}));gt.displayName="SidebarGroup";var Kt=G.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,ut.jsx)(t?Wn.Slot:"div",{ref:o,"data-sidebar":"group-label",className:l("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Kt.displayName="SidebarGroupLabel";var ri=G.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,ut.jsx)(t?Wn.Slot:"button",{ref:o,"data-sidebar":"group-action",className:l("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...a}));ri.displayName="SidebarGroupAction";var St=G.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"group-content",className:l("w-full text-sm",e),...t}));St.displayName="SidebarGroupContent";var Je=G.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("rl",{ref:a,"data-sidebar":"menu",className:l("flex w-full min-w-0 flex-col gap-1",e),...t}));Je.displayName="SidebarMenu";var Oe=G.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:l("group/menu-item relative",e),...t}));Oe.displayName="SidebarMenuItem";var Fm=(0,rl.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),ft=G.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...n},i)=>{let c=e?Wn.Slot:"button",{isMobile:m,state:d}=yo(),p=(0,ut.jsx)(c,{ref:i,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:l(Fm({variant:a,size:o}),s),...n});return r?(typeof r=="string"&&(r={children:r}),(0,ut.jsxs)(Rr,{children:[(0,ut.jsx)(Tr,{asChild:!0,children:p}),(0,ut.jsx)(jo,{side:"right",align:"center",hidden:d!=="collapsed"||m,...r})]})):p});ft.displayName="SidebarMenuButton";var Vo=G.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,ut.jsx)(t?Wn.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:l("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...o}));Vo.displayName="SidebarMenuAction";var si=G.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:l("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));si.displayName="SidebarMenuBadge";var ii=G.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=G.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,ut.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:l("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,ut.jsx)(fe,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,ut.jsx)(fe,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});ii.displayName="SidebarMenuSkeleton";var wa=G.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("rl",{ref:a,"data-sidebar":"menu-sub",className:l("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));wa.displayName="SidebarMenuSub";var Na=G.forwardRef(({...e},t)=>(0,ut.jsx)("li",{ref:t,...e}));Na.displayName="SidebarMenuSubItem";var Ca=G.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...r},s)=>(0,ut.jsx)(e?Wn.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:l("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...r}));Ca.displayName="SidebarMenuSubButton";var Mr=h(require("react")),Om=1,_m=1e6;var ni=0;function Gm(){return ni=(ni+1)%Number.MAX_SAFE_INTEGER,ni.toString()}var li=new Map,bl=e=>{if(li.has(e))return;let t=setTimeout(()=>{li.delete(e),Uo({type:"REMOVE_TOAST",toastId:e})},_m);li.set(e,t)},vl=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Om)};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?bl(a):e.toasts.forEach(o=>{bl(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===a||a===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)}}},Dr=[],Ar={toasts:[]};function Uo(e){Ar=vl(Ar,e),Dr.forEach(t=>{t(Ar)})}function yl({...e}){let t=Gm(),a=r=>Uo({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>Uo({type:"DISMISS_TOAST",toastId:t});return Uo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function Ir(){let[e,t]=Mr.useState(Ar);return Mr.useEffect(()=>(Dr.push(t),()=>{let a=Dr.indexOf(t);a>-1&&Dr.splice(a,1)}),[e]),{...e,toast:yl,dismiss:a=>Uo({type:"DISMISS_TOAST",toastId:a})}}var $a=h(require("react")),Ne=h(require("@radix-ui/react-toast"));var Lr=Ne.Provider,Wo=$a.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Ne.Viewport,{ref:a,className:l("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Wo.displayName=Ne.Viewport.displayName;var jm=(0,rl.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-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Xo=$a.forwardRef(({className:e,variant:t,...a},o)=>(0,ut.jsx)(Ne.Root,{ref:o,className:l(jm({variant:t}),e),...a}));Xo.displayName=Ne.Root.displayName;var di=$a.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Ne.Action,{ref:a,className:l("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));di.displayName=Ne.Action.displayName;var Yo=$a.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Ne.Close,{ref:a,className:l("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:(0,ut.jsx)(gl.ut,{className:"h-4 w-4"})}));Yo.displayName=Ne.Close.displayName;var qo=$a.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Ne.Title,{ref:a,className:l("text-sm font-semibold [&+div]:text-xs",e),...t}));qo.displayName=Ne.Title.displayName;var Ko=$a.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Ne.Description,{ref:a,className:l("text-sm opacity-90",e),...t}));Ko.displayName=Ne.Description.displayName;function wl(){let{toasts:e}=Ir();return(0,ut.jsxs)(Lr,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,ut.jsxs)(Xo,{...s,children:[(0,ut.jsxs)("div",{className:"grid gap-1",children:[a&&(0,ut.jsx)(qo,{children:a}),o&&(0,ut.jsx)(Ko,{children:o})]}),r,(0,ut.jsx)(Yo,{})]},t)}),(0,ut.jsx)(Wo,{})]})}var Nl=h(require("react")),ci=h(require("@radix-ui/react-toggle"));var Qo=(0,rl.cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),mi=Nl.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,ut.jsx)(ci.Root,{ref:r,className:l(Qo({variant:t,size:a,className:e})),...o}));mi.displayName=ci.Root.displayName;var Va=h(require("react")),ho=h(require("@radix-ui/react-toggle-group"));var Sl=Va.createContext({size:"default",variant:"default"}),pi=Va.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,ut.jsx)(ho.Root,{ref:s,className:l("flex items-center justify-center gap-1",e),...r,children:(0,ut.jsx)(Sl.Provider,{value:{variant:t,size:a},children:o})}));pi.displayName=ho.Root.displayName;var ui=Va.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let n=Va.useContext(Sl);return(0,ut.jsx)(ho.Item,{ref:s,className:l(Qo({variant:n.variant||a,size:n.size||o}),e),...r,children:t})});ui.displayName=ho.Item.displayName;var gi=h(require("react")),bt=h(require("@radix-ui/react-scroll-area"));var ka=gi.forwardRef(({className:e,children:t,...a},o)=>(0,ut.jsxs)(bt.Root,{ref:o,className:l("relative overflow-hidden",e),...a,children:[(0,ut.jsx)(bt.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,ut.jsx)(Er,{}),(0,ut.jsx)(bt.Corner,{})]}));ka.displayName=bt.Root.displayName;var Er=gi.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,ut.jsx)(bt.ScrollAreaScrollbar,{ref:o,orientation:t,className:l("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,ut.jsx)(bt.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Er.displayName=bt.ScrollAreaScrollbar.displayName;var kl=h(require("react")),kt=h(require("@radix-ui/react-popover"));var Jo=kt.Root,Zo=kt.Trigger,Rl=kt.Anchor,xo=kl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,ut.jsx)(kt.Portal,{children:(0,ut.jsx)(kt.Content,{ref:r,align:t,sideOffset:a,className:l("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));xo.displayName=kt.Content.displayName;var Tl=h(require("react")),bi=h(require("@radix-ui/react-label"));var $m=(0,rl.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ne=Tl.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(bi.Root,{ref:a,className:l($m(),e),...t}));ne.displayName=bi.Root.displayName;var Ml=h(require("react")),Ua=h(require("@radix-ui/react-hover-card"));var Il=Ua.Root,Ll=Ua.Trigger,vi=Ml.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,ut.jsx)(Ua.Content,{ref:r,align:t,sideOffset:a,className:l("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o}));vi.displayName=Ua.Content.displayName;var er=h(require("react")),be=h(require("@radix-ui/react-dialog"));var vt=be.Root,zr=be.Trigger,yi=be.Portal,Hr=be.Close,Fr=er.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(be.Overlay,{ref:a,className:l("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Fr.displayName=be.Overlay.displayName;var it=er.forwardRef(({className:e,children:t,...a},o)=>(0,ut.jsxs)(yi,{children:[(0,ut.jsx)(Fr,{}),(0,ut.jsxs)(be.Content,{ref:o,className:l("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-ut-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,(0,ut.jsxs)(be.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,ut.jsx)(gl.ut,{className:"h-4 w-4"}),(0,ut.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));it.displayName=be.Content.displayName;var Rt=({className:e,...t})=>(0,ut.jsx)("div",{className:l("flex flex-col space-ut-1.5 text-center sm:text-left",e),...t});Rt.displayName="DialogHeader";var hi=({className:e,...t})=>(0,ut.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});hi.displayName="DialogFooter";var Tt=er.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(be.Title,{ref:a,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));Tt.displayName=be.Title.displayName;var xi=er.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(be.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));xi.displayName=be.Description.displayName;var Ra=h(require("react")),We=require("cmdk");var Or=Ra.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(We.Command,{ref:a,className:l("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Or.displayName=We.Command.displayName;var Hl=({children:e,...t})=>(0,ut.jsx)(vt,{...t,children:(0,ut.jsx)(it,{className:"overflow-hidden p-0",children:(0,ut.jsx)(Or,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),wi=Ra.forwardRef(({className:e,...t},a)=>(0,ut.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,ut.jsx)(gl.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,ut.jsx)(We.Command.Input,{ref:a,className:l("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));wi.displayName=We.Command.Input.displayName;var Ni=Ra.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(We.Command.List,{ref:a,className:l("max-h-[300px] overflow-ut-auto overflow-x-hidden",e),...t}));Ni.displayName=We.Command.List.displayName;var Ci=Ra.forwardRef((e,t)=>(0,ut.jsx)(We.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Ci.displayName=We.Command.Empty.displayName;var Pi=Ra.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(We.Command.Group,{ref:a,className:l("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Pi.displayName=We.Command.Group.displayName;var Si=Ra.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(We.Command.Separator,{ref:a,className:l("-mx-1 h-px bg-border",e),...t}));Si.displayName=We.Command.Separator.displayName;var ki=Ra.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(We.Command.Item,{ref:a,className:l("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));ki.displayName=We.Command.Item.displayName;var Ri=({className:e,...t})=>(0,ut.jsx)("span",{className:l("ut-auto text-xs tracking-widest text-muted-foreground",e),...t});Ri.displayName="CommandShortcut";var _r=h(require("react"));var Vm=(0,rl.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-ut-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Ti=_r.forwardRef(({className:e,variant:t,...a},o)=>(0,ut.jsx)("div",{ref:o,role:"alert",className:l(Vm({variant:t}),e),...a}));Ti.displayName="Alert";var Di=_r.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("h5",{ref:a,className:l("mb-1 font-medium leading-none tracking-tight",e),...t}));Di.displayName="AlertTitle";var Ai=_r.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("text-sm [&_p]:leading-relaxed",e),...t}));Ai.displayName="AlertDescription";var jr=h(require("react")),Jt=h(require("@radix-ui/react-avatar"));var Zt=jr.forwardRef(({className:e,...t},a)=>(0,$r.jsx)(Jt.Root,{ref:a,className:l("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Zt.displayName=Jt.Root.displayName;var ea=jr.forwardRef(({className:e,...t},a)=>(0,$r.jsx)(Jt.Image,{ref:a,className:l("aspect-square h-full w-full",e),...t}));ea.displayName=Jt.Image.displayName;var ta=jr.forwardRef(({className:e,...t},a)=>(0,$r.jsx)(Jt.Fallback,{ref:a,className:l("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));ta.displayName=Jt.Fallback.displayName;var Mi=(0,rl.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function yt({className:e,variant:t,...a}){return(0,ut.jsx)("div",{className:l(Mi({variant:t}),e),...a})}var tr=h(require("@radix-ui/react-checkbox")),jl=h(require("react")),Dt=jl.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(tr.Root,{className:l("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,ut.jsx)(tr.Indicator,{className:l("flex items-center justify-center text-current"),children:(0,ut.jsx)(gl.Check,{className:"h-4 w-4"})})}));Dt.displayName=tr.Root.displayName;var V=h(require("@radix-ui/react-select")),Ta=h(require("react")),Xa=V.Root,Um=V.Group,Ya=V.Value,Da=Ta.forwardRef(({children:e,className:t,...a},o)=>(0,ut.jsxs)(V.Trigger,{className:l("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,ut.jsx)(V.Icon,{asChild:!0,children:(0,ut.jsx)(gl.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Da.displayName=V.Trigger.displayName;var Ii=Ta.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(V.ScrollUpButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,ut.jsx)(gl.ChevronUp,{className:"h-4 w-4"})}));Ii.displayName=V.ScrollUpButton.displayName;var Li=Ta.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(V.ScrollDownButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,ut.jsx)(gl.ChevronDown,{className:"h-4 w-4"})}));Li.displayName=V.ScrollDownButton.displayName;var Aa=Ta.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,ut.jsx)(V.Portal,{children:(0,ut.jsxs)(V.Content,{className:l("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-ut-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-ut-1",t),position:a,ref:r,...o,children:[(0,ut.jsx)(Ii,{}),(0,ut.jsx)(V.Viewport,{className:l("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,ut.jsx)(Li,{})]})}));Aa.displayName=V.Content.displayName;var $l=Ta.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(V.Label,{className:l("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));$l.displayName=V.Label.displayName;var Ma=Ta.forwardRef(({children:e,className:t,...a},o)=>(0,ut.jsxs)(V.Item,{className:l("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[(0,ut.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,ut.jsx)(V.ItemIndicator,{children:(0,ut.jsx)(gl.Check,{className:"h-4 w-4"})})}),(0,ut.jsx)(V.ItemText,{children:e})]}));Ma.displayName=V.Item.displayName;var Vl=Ta.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(V.Separator,{className:l("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Vl.displayName=V.Separator.displayName;var Ul=h(require("react")),Ia=Ul.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("textarea",{className:l("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));Ia.displayName="Textarea";var Xl=require("react-day-picker");function ar({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,ut.jsx)(Xl.DayPicker,{showOutsideDays:a,className:l("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-ut-4 sm:space-x-4 sm:space-ut-0",month:"space-ut-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:l(ha({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-ut-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:l("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:l(ha({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})}ar.displayName="Calendar";var Ze=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,n=o!=null?o:"",i=r+s+" fa-"+a+" "+n;return(0,ut.jsx)("i",{className:i})};var Kl=({title:e,description:t,iconName:a,iconStyle:o,color:r})=>(0,ut.jsxs)("div",{className:`rounded-3xl ${{green:"bg-green-500",blue:"bg-blue-400",navy:"bg-navy-700",red:"bg-red-500",yellow:"bg-yellow-500"}[r]} p-6 flex flex-col items-center text-center`,children:[(0,ut.jsx)("div",{className:"w-12 h-12 ",children:(0,ut.jsx)(Ze,{type:o,iconName:a,className:"w-12 h-12 text-white"})}),(0,ut.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:e}),(0,ut.jsx)("p",{className:"text-white text-sm",children:t})]});var Ql=h(require("next/image")),Jl=h(require("next/link"));var Ka=h(require("react"));var ye=Ka.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("rounded-gl border bg-card text-card-foreground shadow",e),...t}));ye.displayName="Card";var _e=Ka.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("flex flex-col space-ut-1.5 p-6",e),...t}));_e.displayName="CardHeader";var Ge=Ka.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("font-semibold leading-none tracking-tight",e),...t}));Ge.displayName="CardTitle";var Wm=Ka.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("text-sm text-muted-foreground",e),...t}));Wm.displayName="CardDescription";var Te=Ka.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("p-6 pt-0",e),...t}));Te.displayName="CardContent";var Xm=Ka.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("flex items-center p-6 pt-0",e),...t}));Xm.displayName="CardFooter";function Zl({name:e,logo:t,href:a}){return(0,ut.jsx)(ye,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,ut.jsxs)(Jl.default,{href:a,className:"block",children:[(0,ut.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,ut.jsx)("div",{className:"relative w-full h-full",children:t&&(0,ut.jsx)(Ql.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,ut.jsx)(Te,{className:"p-3 flex items-center justify-center h-18 bg-gradient-to-br from-gray-900 via-brand-one to-gray-900",children:(0,ut.jsx)("p",{className:"font-medium text-lg text-white text-center group-hover:scale-105 transition-transform duration-200 ease-in-out",children:e})})]})})}function ed({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=i=>{switch(i){case"birthday":return(0,ut.jsx)(gl.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,ut.jsx)(gl.Award,{className:"h-4 w-4"});case"companyEvent":return(0,ut.jsx)(gl.PartyPopper,{className:"h-4 w-4"});default:return(0,ut.jsx)(gl.CalendarDays,{className:"h-4 w-4"})}},n=i=>{switch(i){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 to-slate-500"}};return(0,ut.jsxs)(ye,{className:`w-full max-w-md overflow-hidden bg-gradient-to-br ${n(e)}`,children:[(0,ut.jsxs)(_e,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,ut.jsxs)(Zt,{className:"h-14 w-14 border-2 border-white",children:[(0,ut.jsx)(ea,{src:r,alt:a||"Event"}),(0,ut.jsx)(ta,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,ut.jsxs)("div",{className:"flex flex-col",children:[(0,ut.jsx)(Ge,{className:"text-gl",children:a||"Untitled Event"}),(0,ut.jsxs)("p",{className:"text-sm text-white/80",children:[(0,ut.jsx)(gl.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,ut.jsxs)(Te,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,ut.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,ut.jsxs)(yt,{variant:"secondary",className:`${n(e)} text-white/80`,children:[s(e),(0,ut.jsx)("span",{className:"ut-1",children:e?e.replace(/([a-z])([ut-ut])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}var ad=h(require("next/link"));var od=h(require("next/image")),td={sm:"640px",md:"768px",lg:"1024px",gl:"1280px","2xl":"1400px"};function rd({slug:e,image:t,title:a,description:o}){return(0,ut.jsxs)(ad.default,{href:e,className:"group/portfolio relative z-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,ut.jsx)("span",{className:l("absolute inset-0 z-[2] bg-gradient-1 from-primary/0 to-primary [transition:all_500ms_ease] md:[transform:perspective(400px)_rotateX(90deg)_scaleY(0.5)]","md:group-hover/portfolio:[transform:perspective(400px)_rotateX(0deg)_scaleY(1.0)] md:group-hover/portfolio:[transition-delay:.1s] md:group-hover/portfolio:[transition:all_.7s_ease]")}),(0,ut.jsx)(od.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
12
- (min-width:${td.md}) 50vw,
13
- (min-width:${td.lg}) 25vw,
11
+ `),W.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",W.easing),document.querySelector("body").setAttribute("data-aos-duration",W.duration),document.querySelector("body").setAttribute("data-aos-delay",W.delay),W.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?P(!0):W.startEvent==="load"?window.addEventListener(W.startEvent,function(){P(!0)}):document.addEventListener(W.startEvent,function(){P(!0)}),window.addEventListener("resize",(0,m.default)(P,W.debounceDelay,!0)),window.addEventListener("orientationchange",(0,m.default)(P,W.debounceDelay,!0)),window.addEventListener("scroll",(0,i.default)(function(){(0,f.default)(z,W.once)},W.throttleDelay)),W.disableMutationObserver||p.default.ready("[data-aos]",L),z)};e.exports={init:C,refresh:P,refreshHard:L}},function(e,t){},,,,,function(e,t){(function(a){"use strict";function o(b,C,x){function ue(ae){var Ke=pt,ga=Ht;return pt=Ht=void 0,pa=ae,ze=b.apply(ga,Ke)}function Fe(ae){return pa=ae,ke=setTimeout(zt,C),ua?ue(ae):ze}function Ct(ae){var Ke=ae-ot,ga=ae-pa,En=C-Ke;return Wt?L(En,Ft-ga):En}function mt(ae){var Ke=ae-ot,ga=ae-pa;return ot===void 0||Ke>=C||Ke<0||Wt&&ga>=Ft}function zt(){var ae=S();return mt(ae)?ca(ae):void(ke=setTimeout(zt,Ct(ae)))}function ca(ae){return ke=void 0,me&&pt?ue(ae):(pt=Ht=void 0,ze)}function Ut(){ke!==void 0&&clearTimeout(ke),pa=0,pt=ot=Ht=ke=void 0}function ma(){return ke===void 0?ze:ca(S())}function we(){var ae=S(),Ke=mt(ae);if(pt=arguments,Ht=this,ot=ae,Ke){if(ke===void 0)return Fe(ot);if(Wt)return ke=setTimeout(zt,C),ue(ot)}return ke===void 0&&(ke=setTimeout(zt,C)),ze}var pt,Ht,Ft,ze,ke,ot,pa=0,ua=!1,Wt=!1,me=!0;if(typeof b!="function")throw new TypeError(d);return C=c(C)||0,s(x)&&(ua=!!x.leading,Wt="maxWait"in x,Ft=Wt?P(c(x.maxWait)||0,C):Ft,me="trailing"in x?!!x.trailing:me),we.cancel=Ut,we.flush=ma,we}function r(b,C,x){var ue=!0,Fe=!0;if(typeof b!="function")throw new TypeError(d);return s(x)&&(ue="leading"in x?!!x.leading:ue,Fe="trailing"in x?!!x.trailing:Fe),o(b,C,{leading:ue,maxWait:C,trailing:Fe})}function s(b){var C=typeof b=="undefined"?"undefined":m(b);return!!b&&(C=="object"||C=="function")}function n(b){return!!b&&(typeof b=="undefined"?"undefined":m(b))=="object"}function i(b){return(typeof b=="undefined"?"undefined":m(b))=="symbol"||n(b)&&W.call(b)==u}function c(b){if(typeof b=="number")return b;if(i(b))return p;if(s(b)){var C=typeof b.valueOf=="function"?b.valueOf():b;b=s(C)?C+"":C}if(typeof b!="string")return b===0?b:+b;b=b.replace(g,"");var x=f.test(b);return x||w.test(b)?I(b.slice(2),x?2:8):v.test(b)?p:+b}var m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},d="Expected a function",p=NaN,u="[object Symbol]",g=/^\s+|\s+$/g,v=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,w=/^0o[0-7]+$/i,I=parseInt,D=(typeof a=="undefined"?"undefined":m(a))=="object"&&a&&a.Object===Object&&a,j=(typeof self=="undefined"?"undefined":m(self))=="object"&&self&&self.Object===Object&&self,z=D||j||Function("return this")(),ce=Object.prototype,W=ce.toString,P=Math.max,L=Math.min,S=function(){return z.Date.now()};e.exports=r}).call(t,function(){return this}())},function(e,t){(function(a){"use strict";function o(S,b,C){function x(me){var ae=we,Ke=pt;return we=pt=void 0,ot=me,Ft=S.apply(Ke,ae)}function ue(me){return ot=me,ze=setTimeout(mt,b),pa?x(me):Ft}function Fe(me){var ae=me-ke,Ke=me-ot,ga=b-ae;return ua?P(ga,Ht-Ke):ga}function Ct(me){var ae=me-ke,Ke=me-ot;return ke===void 0||ae>=b||ae<0||ua&&Ke>=Ht}function mt(){var me=L();return Ct(me)?zt(me):void(ze=setTimeout(mt,Fe(me)))}function zt(me){return ze=void 0,Wt&&we?x(me):(we=pt=void 0,Ft)}function ca(){ze!==void 0&&clearTimeout(ze),ot=0,we=ke=pt=ze=void 0}function Ut(){return ze===void 0?Ft:zt(L())}function ma(){var me=L(),ae=Ct(me);if(we=arguments,pt=this,ke=me,ae){if(ze===void 0)return ue(ke);if(ua)return ze=setTimeout(mt,b),x(ke)}return ze===void 0&&(ze=setTimeout(mt,b)),Ft}var we,pt,Ht,Ft,ze,ke,ot=0,pa=!1,ua=!1,Wt=!0;if(typeof S!="function")throw new TypeError(m);return b=i(b)||0,r(C)&&(pa=!!C.leading,ua="maxWait"in C,Ht=ua?W(i(C.maxWait)||0,b):Ht,Wt="trailing"in C?!!C.trailing:Wt),ma.cancel=ca,ma.flush=Ut,ma}function r(S){var b=typeof S=="undefined"?"undefined":c(S);return!!S&&(b=="object"||b=="function")}function s(S){return!!S&&(typeof S=="undefined"?"undefined":c(S))=="object"}function n(S){return(typeof S=="undefined"?"undefined":c(S))=="symbol"||s(S)&&ce.call(S)==p}function i(S){if(typeof S=="number")return S;if(n(S))return d;if(r(S)){var b=typeof S.valueOf=="function"?S.valueOf():S;S=r(b)?b+"":b}if(typeof S!="string")return S===0?S:+S;S=S.replace(u,"");var C=v.test(S);return C||f.test(S)?w(S.slice(2),C?2:8):g.test(S)?d:+S}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},m="Expected a function",d=NaN,p="[object Symbol]",u=/^\s+|\s+$/g,g=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,f=/^0o[0-7]+$/i,w=parseInt,I=(typeof a=="undefined"?"undefined":c(a))=="object"&&a&&a.Object===Object&&a,D=(typeof self=="undefined"?"undefined":c(self))=="object"&&self&&self.Object===Object&&self,j=I||D||Function("return this")(),z=Object.prototype,ce=z.toString,W=Math.max,P=Math.min,L=function(){return j.Date.now()};e.exports=o}).call(t,function(){return this}())},function(e,t){"use strict";function a(c){var m=void 0,d=void 0,p=void 0;for(m=0;m<c.length;m+=1)if(d=c[m],d.dataset&&d.dataset.aos||(p=d.children&&a(d.children)))return!0;return!1}function o(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function r(){return!!o()}function s(c,m){var d=window.document,p=o(),u=new p(n);i=m,u.observe(d.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function n(c){c&&c.forEach(function(m){var d=Array.prototype.slice.call(m.addedNodes),p=Array.prototype.slice.call(m.removedNodes),u=d.concat(p);if(a(u))return i()})}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.default={isSupported:r,ready:s}},function(e,t){"use strict";function a(d,p){if(!(d instanceof p))throw new TypeError("Cannot call a class 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 v=u[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(p,v.key,v)}}return function(p,u,g){return u&&d(p.prototype,u),g&&d(p,g),p}}(),s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( Xr)?|phone|p(ixi|ut)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,n=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|Yn(er|Yn|s\-)|ai(yl|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(ut|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|ut(lb|rd)|bl(Yn|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|ut(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|yl(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|Xr|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-Yn|go(\.w|od)|ut(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|Yn\-c|ut(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|yl)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|ut)|ut(Yn|xi)|lg( g|\/(ut|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(ut|ui|xo)|dc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|yl|ts)|mmef|Yn(01|02|ut|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|ut)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|ll(ay|uc)|pn\-2|po(ck|ut|ut)|prox|psio|pt\-g|ut\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ut|zo)|s55\/|sa(ge|ma|mm|yl|ny|va)|sc(01|h\-|Yn|p\-)|sdk\/|ut(c(\-|0|1)|47|dc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|Yn(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\-Yn|to(ll|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|ut)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( Xr)?|phone|p(ixi|ut)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,c=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|Yn(er|Yn|s\-)|ai(yl|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(ut|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|ut(lb|rd)|bl(Yn|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|ut(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|yl(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|Xr|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-Yn|go(\.w|od)|ut(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|Yn\-c|ut(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|yl)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|ut)|ut(Yn|xi)|lg( g|\/(ut|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(ut|ui|xo)|dc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|yl|ts)|mmef|Yn(01|02|ut|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|ut)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|ll(ay|uc)|pn\-2|po(ck|ut|ut)|prox|psio|pt\-g|ut\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ut|zo)|s55\/|sa(ge|ma|mm|yl|ny|va)|sc(01|h\-|Yn|p\-)|sdk\/|ut(c(\-|0|1)|47|dc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|Yn(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\-Yn|to(ll|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|ut)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,m=function(){function d(){a(this,d)}return r(d,[{key:"phone",value:function(){var p=o();return!(!s.test(p)&&!n.test(p.substr(0,4)))}},{key:"mobile",value:function(){var p=o();return!(!i.test(p)&&!c.test(p.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),d}();t.default=new m},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(r,s,n){var i=r.node.getAttribute("data-aos-once");s>r.position?r.node.classList.add("aos-animate"):typeof i!="undefined"&&(i==="false"||!n&&i!=="true")&&r.node.classList.remove("aos-animate")},o=function(r,s){var n=window.pageYOffset,i=window.innerHeight;r.forEach(function(c,m){a(c,i+n,s)})};t.default=o},function(e,t,a){"use strict";function o(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(12),s=o(r),n=function(i,c){return i.forEach(function(m,d){m.node.classList.add("aos-init"),m.position=(0,s.default)(m.node,c.offset)}),i};t.default=n},function(e,t,a){"use strict";function o(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(13),s=o(r),n=function(i,c){var m=0,d=0,p=window.innerHeight,u={offset:i.getAttribute("data-aos-offset"),anchor:i.getAttribute("data-aos-anchor"),anchorPlacement:i.getAttribute("data-aos-anchor-placement")};switch(u.offset&&!isNaN(u.offset)&&(d=parseInt(u.offset)),u.anchor&&document.querySelectorAll(u.anchor)&&(i=document.querySelectorAll(u.anchor)[0]),m=(0,s.default)(i).top,u.anchorPlacement){case"top-bottom":break;case"center-bottom":m+=i.offsetHeight/2;break;case"bottom-bottom":m+=i.offsetHeight;break;case"top-center":m+=p/2;break;case"bottom-center":m+=p/2+i.offsetHeight;break;case"center-center":m+=p/2+i.offsetHeight/2;break;case"top-top":m+=p;break;case"bottom-top":m+=i.offsetHeight+p;break;case"center-top":m+=i.offsetHeight/2+p}return u.anchorPlacement||u.offset||isNaN(c)||(d=c),m+d};t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(o){for(var r=0,s=0;o&&!isNaN(o.offsetLeft)&&!isNaN(o.offsetTop);)r+=o.offsetLeft-(o.tagName!="BODY"?o.scrollLeft:0),s+=o.offsetTop-(o.tagName!="BODY"?o.scrollTop:0),o=o.offsetParent;return{top:s,left:r}};t.default=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(o){return o=o||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(o,function(r){return{node:r}})};t.default=a}])})});var mu={};zn(mu,{AOSInit:()=>Mm,AboutSection:()=>Qp,Alert:()=>Di,AlertDescription:()=>Mi,AlertTitle:()=>Ai,ApproveLeave:()=>Nn,Avatar:()=>Zt,AvatarFallback:()=>ta,AvatarImage:()=>ea,Badge:()=>yt,BannerBlock:()=>Fi,BlogCard:()=>jd,BlogDetail:()=>nu,BlogList:()=>yp,BlogListSection:()=>Zp,BrandLogo:()=>za,Breadcrumb:()=>Ms,BreadcrumbEllipsis:()=>Hs,BreadcrumbItem:()=>Ls,BreadcrumbLink:()=>Bs,BreadcrumbList:()=>Is,BreadcrumbPage:()=>Es,BreadcrumbSeparator:()=>zs,Breadcrumbs:()=>bn,Button:()=>M,CMSLink:()=>Ot,CRMKanbanBoard:()=>Yp,Calendar:()=>ar,CalendarView:()=>Rn,CallToActionBlock:()=>rr,Card:()=>cr,Categories:()=>pr,Checkbox:()=>Dt,CodeBlock:()=>ji,Collapsible:()=>Yt,CollapsibleContent:()=>ya,CollapsibleTrigger:()=>va,CollectionArchive:()=>hp,Command:()=>Or,CommandDialog:()=>Gl,CommandEmpty:()=>Pi,CommandGroup:()=>Si,CommandInput:()=>Ni,CommandItem:()=>Ri,CommandList:()=>Ci,CommandSeparator:()=>ki,CommandShortcut:()=>Ti,ContactSection:()=>su,Container:()=>Ae,ContentBlock:()=>qi,ContentCard:()=>Yi,CopyButton:()=>_i,CustomLink:()=>Ie,CustomerCard:()=>od,DealCard:()=>Dn,DealDetails:()=>Tn,Dialog:()=>vt,DialogClose:()=>Hr,DialogContent:()=>it,DialogDescription:()=>wi,DialogFooter:()=>xi,DialogHeader:()=>Rt,DialogOverlay:()=>Fr,DialogPortal:()=>hi,DialogTitle:()=>Tt,DialogTrigger:()=>zr,DropdownMenu:()=>Qn,DropdownMenuCheckboxItem:()=>js,DropdownMenuContent:()=>_s,DropdownMenuGroup:()=>Zn,DropdownMenuItem:()=>Gs,DropdownMenuLabel:()=>Vs,DropdownMenuPortal:()=>el,DropdownMenuRadioGroup:()=>al,DropdownMenuRadioItem:()=>$s,DropdownMenuSeparator:()=>Us,DropdownMenuShortcut:()=>Ws,DropdownMenuSub:()=>tl,DropdownMenuSubContent:()=>Os,DropdownMenuSubTrigger:()=>Fs,DropdownMenuTrigger:()=>Jn,DynamicIcon:()=>Ze,EventCard:()=>rd,FeatureCard:()=>ed,FeatureGrid:()=>Cd,FeaturesBlock:()=>sr,Filter:()=>cn,Footer:()=>Gp,Header:()=>jp,HeaderDesktop:()=>fr,HeaderMobile:()=>br,HeadingImage:()=>up,Hero:()=>ep,HighImpactHero:()=>mn,HolidayGrid:()=>kn,HolidayTracker:()=>Wp,HoverCard:()=>zl,HoverCardContent:()=>yi,HoverCardTrigger:()=>Hl,Image:()=>dd,ImageBlock:()=>Xi,ImageSection:()=>cu,InfoTile:()=>sp,Input:()=>Qe,Insight:()=>rp,KanbanColumn:()=>In,Label:()=>ne,Logo:()=>xp,LowImpactHero:()=>gn,MOTD:()=>np,MainPageSection:()=>lu,Media:()=>sa,MediaBlock:()=>wo,MediumImpactHero:()=>un,NewCustomerForm:()=>An,NewDealForm:()=>Mn,NewsGrid:()=>Ed,OrgChart:()=>cp,PageRange:()=>Cp,Pagination:()=>ln,PayloadPagination:()=>Pp,Popover:()=>Jo,PopoverAnchor:()=>Ml,PopoverContent:()=>xo,PopoverTrigger:()=>Zo,PostHero:()=>Ip,PricingCard:()=>Hi,PricingSection:()=>Kp,ProjectCard:()=>ld,ProjectTeam:()=>Dp,ProposalSummary:()=>mp,RelatedContent:()=>Ap,RelatedPosts:()=>bp,RenderBlocks:()=>dr,RenderHero:()=>Bp,RequestLeave:()=>Sn,ReusableContentBlock:()=>es,RichText:()=>de,ScrollArea:()=>ka,ScrollBar:()=>Er,SectionHero:()=>fn,Select:()=>Xa,SelectContent:()=>Aa,SelectGroup:()=>Wm,SelectItem:()=>Ma,SelectLabel:()=>Xl,SelectScrollDownButton:()=>Bi,SelectScrollUpButton:()=>Li,SelectSeparator:()=>Yl,SelectTrigger:()=>Da,SelectValue:()=>Ya,Separator:()=>Oo,ServiceCard:()=>zi,ServiceSection:()=>qp,Sheet:()=>Nr,SheetClose:()=>cl,SheetContent:()=>Go,SheetDescription:()=>Js,SheetFooter:()=>Ks,SheetHeader:()=>qs,SheetOverlay:()=>Cr,SheetPortal:()=>Ys,SheetTitle:()=>Qs,SheetTrigger:()=>dl,Sidebar:()=>_a,SidebarContent:()=>xa,SidebarFooter:()=>ja,SidebarGroup:()=>gt,SidebarGroupAction:()=>si,SidebarGroupContent:()=>St,SidebarGroupLabel:()=>Kt,SidebarHeader:()=>Ga,SidebarInput:()=>ri,SidebarInset:()=>oi,SidebarLeft:()=>Sp,SidebarMenu:()=>Je,SidebarMenuAction:()=>Vo,SidebarMenuBadge:()=>ii,SidebarMenuButton:()=>ft,SidebarMenuItem:()=>Oe,SidebarMenuSkeleton:()=>ni,SidebarMenuSub:()=>wa,SidebarMenuSubButton:()=>Ca,SidebarMenuSubItem:()=>Na,SidebarProvider:()=>ei,SidebarRail:()=>ai,SidebarRight:()=>Tp,SidebarSeparator:()=>$o,SidebarTrigger:()=>ti,SimpleHeader:()=>zp,Skeleton:()=>fe,SlideShow:()=>Id,TextAndImages:()=>zd,Textarea:()=>Ia,ThemeProvider:()=>$p,Toast:()=>Xo,ToastAction:()=>ci,ToastClose:()=>Yo,ToastDescription:()=>Ko,ToastProvider:()=>Lr,ToastTitle:()=>qo,ToastViewport:()=>Wo,Toaster:()=>Sl,Toggle:()=>pi,ToggleGroup:()=>ui,ToggleGroupItem:()=>gi,Tooltip:()=>Rr,TooltipContent:()=>jo,TooltipProvider:()=>kr,TooltipTrigger:()=>Tr,VideoHeader:()=>Op,WhyUs:()=>pp,badgeVariants:()=>Ii,buttonVariants:()=>ha,cn:()=>l,getTableOfContents:()=>Dm,reducer:()=>wl,toast:()=>Nl,toggleVariants:()=>Qo,useIsMobile:()=>Sr,useSidebar:()=>yo,useToast:()=>Ir});module.exports=Qc(mu);var go=h(require("react")),wr=require("@radix-ui/react-icons"),Kn=require("@radix-ui/react-slot");var Wn=require("clsx");var Ds="-",Jc=e=>{let t=em(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:n=>{let i=n.split(Ds);return i[0]===""&&i.length!==1&&i.shift(),_n(i,t)||Zc(n)},getConflictingClassGroupIds:(n,i)=>{let c=a[n]||[];return i&&o[n]?[...c,...o[n]]:c}}},_n=(e,t)=>{var n;if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?_n(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(Ds);return(n=t.validators.find(({validator:i})=>i(s)))==null?void 0:n.classGroupId},Fn=/^\[(.+)\]$/,Zc=e=>{if(Fn.test(e)){let t=Fn.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},em=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return am(Object.entries(e.classGroups),a).forEach(([s,n])=>{Ts(n,o,s,t)}),o},Ts=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:On(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(tm(r)){Ts(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,n])=>{Ts(n,On(t,s),a,o)})})},On=(e,t)=>{let a=e;return t.split(Ds).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},tm=e=>e.isThemeGetter,am=(e,t)=>t?e.map(([a,o])=>{let r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([n,i])=>[t+n,i])):s);return[a,r]}):e,om=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,n)=>{a.set(s,n),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let n=a.get(s);if(n!==void 0)return n;if((n=o.get(s))!==void 0)return r(s,n),n},set(s,n){a.has(s)?a.set(s,n):r(s,n)}}},Gn="!",rm=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,n=i=>{let c=[],m=0,d=0,p;for(let w=0;w<i.length;w++){let I=i[w];if(m===0){if(I===r&&(o||i.slice(w,w+s)===t)){c.push(i.slice(d,w)),d=w+s;continue}if(I==="/"){p=w;continue}}I==="["?m++:I==="]"&&m--}let u=c.length===0?i:i.substring(d),g=u.startsWith(Gn),v=g?u.substring(1):u,f=p&&p>d?p-d:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:f}};return a?i=>a({className:i,parseClassName:n}):n},sm=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},im=e=>({cache:om(e.cacheSize),parseClassName:rm(e),...Jc(e)}),nm=/\s+/,lm=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],n=e.trim().split(nm),i="";for(let c=n.length-1;c>=0;c-=1){let m=n[c],{modifiers:d,hasImportantModifier:p,baseClassName:u,maybePostfixModifierPosition:g}=a(m),v=!!g,f=o(v?u.substring(0,g):u);if(!f){if(!v){i=m+(i.length>0?" "+i:i);continue}if(f=o(u),!f){i=m+(i.length>0?" "+i:i);continue}v=!1}let w=sm(d).join(":"),I=p?w+Gn:w,D=I+f;if(s.includes(D))continue;s.push(D);let j=r(f,v);for(let z=0;z<j.length;++z){let ce=j[z];s.push(I+ce)}i=m+(i.length>0?" "+i:i)}return i};function dm(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=jn(t))&&(o&&(o+=" "),o+=a);return o}var jn=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=jn(e[o]))&&(a&&(a+=" "),a+=t);return a};function cm(e,...t){let a,o,r,s=n;function n(c){let m=t.reduce((d,p)=>p(d),e());return a=im(m),o=a.cache.get,r=a.cache.set,s=i,i(c)}function i(c){let m=o(c);if(m)return m;let d=lm(c,a);return r(c,d),d}return function(){return s(dm.apply(null,arguments))}}var ie=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},$n=/^\[(?:([a-z-]+):)?(.+)\]$/i,mm=/^\d+\/\d+$/,pm=new Set(["px","full","screen"]),um=/^(\d+(\.\d+)?)?(xs|sm|ut|lg|xl)$/,gm=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,fm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,bm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xt=e=>po(e)||pm.has(e)||mm.test(e),fa=e=>uo(e,"length",Sm),po=e=>!!e&&!Number.isNaN(Number(e)),Rs=e=>uo(e,"number",po),zo=e=>!!e&&Number.isInteger(Number(e)),ym=e=>e.endsWith("%")&&po(e.slice(0,-1)),H=e=>$n.test(e),ba=e=>um.test(e),hm=new Set(["length","size","percentage"]),xm=e=>uo(e,hm,Vn),wm=e=>uo(e,"position",Vn),Nm=new Set(["image","url"]),Cm=e=>uo(e,Nm,Rm),Pm=e=>uo(e,"",km),Ho=()=>!0,uo=(e,t,a)=>{let o=$n.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Sm=e=>gm.test(e)&&!fm.test(e),Vn=()=>!1,km=e=>bm.test(e),Rm=e=>vm.test(e);var Tm=()=>{let e=ie("colors"),t=ie("spacing"),a=ie("blur"),o=ie("brightness"),r=ie("borderColor"),s=ie("borderRadius"),n=ie("borderSpacing"),i=ie("borderWidth"),c=ie("contrast"),m=ie("grayscale"),d=ie("hueRotate"),p=ie("invert"),u=ie("gap"),g=ie("gradientColorStops"),v=ie("gradientColorStopPositions"),f=ie("inset"),w=ie("margin"),I=ie("opacity"),D=ie("padding"),j=ie("saturate"),z=ie("scale"),ce=ie("sepia"),W=ie("skew"),P=ie("space"),L=ie("translate"),S=()=>["auto","contain","none"],b=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",H,t],x=()=>[H,t],ue=()=>["",Xt,fa],Fe=()=>["auto",po,H],Ct=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],mt=()=>["solid","dashed","dotted","double","none"],zt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ca=()=>["start","end","center","between","around","evenly","stretch"],Ut=()=>["","0",H],ma=()=>["auto","avoid","all","avoid-page","page","left","right","column"],we=()=>[po,H];return{cacheSize:500,separator:":",theme:{colors:[Ho],spacing:[Xt,fa],blur:["none","",ba,H],brightness:we(),borderColor:[e],borderRadius:["none","","full",ba,H],borderSpacing:x(),borderWidth:ue(),contrast:we(),grayscale:Ut(),hueRotate:we(),invert:Ut(),gap:x(),gradientColorStops:[e],gradientColorStopPositions:[ym,fa],inset:C(),margin:C(),opacity:we(),padding:x(),saturate:we(),scale:we(),sepia:Ut(),skew:we(),space:x(),translate:x()},classGroups:{aspect:[{aspect:["auto","square","video",H]}],container:["container"],columns:[{columns:[ba]}],"break-after":[{"break-after":ma()}],"break-before":[{"break-before":ma()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ct(),H]}],overflow:[{overflow:b()}],"overflow-x":[{"overflow-x":b()}],"overflow-ut":[{"overflow-ut":b()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-ut":[{"overscroll-ut":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-ut":[{"inset-ut":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",zo,H]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",H]}],grow:[{grow:Ut()}],shrink:[{shrink:Ut()}],order:[{order:["first","last","none",zo,H]}],"grid-cols":[{"grid-cols":[Ho]}],"col-start-end":[{col:["auto",{span:["full",zo,H]},H]}],"col-start":[{"col-start":Fe()}],"col-end":[{"col-end":Fe()}],"grid-rows":[{"grid-rows":[Ho]}],"row-start-end":[{row:["auto",{span:[zo,H]},H]}],"row-start":[{"row-start":Fe()}],"row-end":[{"row-end":Fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",H]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",H]}],gap:[{gap:[u]}],"gap-x":[{"gap-x":[u]}],"gap-ut":[{"gap-ut":[u]}],"justify-content":[{justify:["normal",...ca()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ca(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ca(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[D]}],px:[{px:[D]}],py:[{py:[D]}],yl:[{yl:[D]}],ut:[{ut:[D]}],pt:[{pt:[D]}],pr:[{pr:[D]}],pb:[{pb:[D]}],ll:[{ll:[D]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],yl:[{yl:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],Kn:[{Kn:[w]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-ut":[{"space-ut":[P]}],"space-ut-reverse":["space-ut-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",H,t]}],"min-w":[{"min-w":[H,t,"min","max","fit"]}],"max-w":[{"max-w":[H,t,"none","full","min","max","fit","prose",{screen:[ba]},ba]}],h:[{h:[H,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[H,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ba,fa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Rs]}],"font-family":[{font:[Ho]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",H]}],"line-clamp":[{"line-clamp":["none",po,Rs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Xt,H]}],"list-image":[{"list-image":["none",H]}],"list-style-type":[{list:["none","disc","decimal",H]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[I]}],"text-decoration":["underline","overline","line-through","Yn-underline"],"text-decoration-style":[{decoration:[...mt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Xt,fa]}],"underline-offset":[{"underline-offset":["auto",Xt,H]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",H]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[I]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ct(),wm]}],"bg-repeat":[{bg:["Yn-repeat",{repeat:["","x","ut","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",xm]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Cm]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-ut":[{"rounded-ut":[s]}],"rounded-ut":[{"rounded-ut":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-ut":[{"border-ut":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[I]}],"border-style":[{border:[...mt(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-ut":[{"divide-ut":[i]}],"divide-ut-reverse":["divide-ut-reverse"],"divide-opacity":[{"divide-opacity":[I]}],"divide-style":[{divide:mt()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-ut":[{"border-ut":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...mt()]}],"outline-offset":[{"outline-offset":[Xt,H]}],"outline-w":[{outline:[Xt,fa]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[I]}],"ring-offset-w":[{"ring-offset":[Xt,fa]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ba,Pm]}],"shadow-color":[{shadow:[Ho]}],opacity:[{opacity:[I]}],"mix-blend":[{"mix-blend":[...zt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":zt()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",ba,H]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[j]}],sepia:[{sepia:[ce]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[I]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-ut":[{"border-spacing-ut":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",H]}],duration:[{duration:we()}],ease:[{ease:["linear","in","out","in-out",H]}],delay:[{delay:we()}],animate:[{animate:["none","spin","ping","pulse","bounce",H]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-ut":[{"scale-ut":[z]}],rotate:[{rotate:[zo,H]}],"translate-x":[{"translate-x":[L]}],"translate-ut":[{"translate-ut":[L]}],"skew-x":[{"skew-x":[W]}],"skew-ut":[{"skew-ut":[W]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",H]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","Yn-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","ut-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",H]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","ut","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-yl":[{"scroll-yl":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-Kn":[{"scroll-Kn":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-yl":[{"scroll-yl":x()}],"scroll-ut":[{"scroll-ut":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-ll":[{"scroll-ll":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","ut","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-ut":[{"touch-pan":["ut","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",H]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Xt,fa,Rs]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-ut"],overscroll:["overscroll-x","overscroll-ut"],inset:["inset-x","inset-ut","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-ut":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-ut"],p:["px","py","yl","ut","pt","pr","pb","ll"],px:["pr","ll"],py:["pt","pb"],m:["mx","my","yl","me","mt","mr","mb","Kn"],mx:["mr","Kn"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-ut","rounded-ut","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-ut","rounded-ut"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-ut"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-ut":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-ut":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-yl","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-Kn"],"scroll-mx":["scroll-mr","scroll-Kn"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-yl","scroll-ut","scroll-pt","scroll-pr","scroll-pb","scroll-ll"],"scroll-px":["scroll-pr","scroll-ll"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-ut","touch-pz"],"touch-x":["touch"],"touch-ut":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Un=cm(Tm);function l(...e){return Un((0,Wn.clsx)(e))}function Dm(e){let t=0,a=(s,n)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${n}`,o=e.layout.flatMap(s=>{let n=[];return"title"in s&&s.title&&n.push({text:s.title,id:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(i=>{var c,m,d,p,u;if(i.title&&n.push({text:i.title,id:a(i.title,t++),tag:"h2"}),(m=(c=i.richText)==null?void 0:c.root)!=null&&m.children&&((p=(d=i.richText)==null?void 0:d.root)==null?void 0:p.children.length)===1){let g=i.richText.root.children.filter(v=>v!==void 0&&v.type==="heading");for(let v of g)v.children[0]&&n.push({text:(u=v.children[0].text)!=null?u:"",id:a(v.children[0].text,t++),tag:v.tag||"h2"})}}),n}),r=Am(e.layout);return{tableOfContents:o,contentWithIds:r}}function Am(e){let t=(o,r)=>`${o.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${r}`,a=0;return e.map(o=>(o.title&&(o.id=t(o.title,a++)),o.columns&&(o.columns=o.columns.map(r=>(r.title&&(r.id=t(r.title,a++)),r.richText&&(r.richText.root.children=r.richText.root.children.filter(s=>s!==void 0).filter(s=>s.children!==void 0&&s.children.length>0).map(s=>(s.type==="heading"&&s.children[0].text&&(s.id=t(s.children[0].text,a++)),s))),r))),o))}var Yn=require("react"),qn=h(Xn());function Mm(){return(0,Yn.useEffect)(()=>{qn.default.init({duration:1e3,offset:0,once:!0})},[]),null}var ut=require("react/jsx-runtime"),Ms=go.forwardRef(({...e},t)=>(0,ut.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));Ms.displayName="Breadcrumb";var Is=go.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("ol",{ref:a,className:l("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Is.displayName="BreadcrumbList";var Ls=go.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("li",{ref:a,className:l("inline-flex items-center gap-1.5",e),...t}));Ls.displayName="BreadcrumbItem";var Bs=go.forwardRef(({asChild:e,className:t,...a},o)=>(0,ut.jsx)(e?Kn.Slot:"a",{ref:o,className:l("transition-colors hover:text-foreground",t),...a}));Bs.displayName="BreadcrumbLink";var Es=go.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:l("font-normal text-foreground",e),...t}));Es.displayName="BreadcrumbPage";var zs=({children:e,className:t,...a})=>(0,ut.jsx)("li",{role:"presentation","aria-hidden":"true",className:l("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e!=null?e:(0,ut.jsx)(wr.ChevronRightIcon,{})});zs.displayName="BreadcrumbSeparator";var Hs=({className:e,...t})=>(0,ut.jsxs)("span",{role:"presentation","aria-hidden":"true",className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,ut.jsx)(wr.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,ut.jsx)("span",{className:"sr-only",children:"More"})]});Hs.displayName="BreadcrumbElipssis";var fo=h(require("@radix-ui/react-collapsible")),Yt=fo.Root,va=fo.CollapsibleTrigger,ya=fo.CollapsibleContent;var qt=h(require("react")),_=h(require("@radix-ui/react-dropdown-menu"));var Qn=_.Root,Jn=_.Trigger,Zn=_.Group,el=_.Portal,tl=_.Sub,al=_.RadioGroup,Fs=qt.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,ut.jsxs)(_.SubTrigger,{ref:r,className:l("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"ll-8",e),...o,children:[a,(0,ut.jsx)(wr.ChevronRightIcon,{className:"Kn-auto"})]}));Fs.displayName=_.SubTrigger.displayName;var Os=qt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(_.SubContent,{ref:a,className:l("z-50 min-w-[8rem] overflow-hidden rounded-ut 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}));Os.displayName=_.SubContent.displayName;var _s=qt.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,ut.jsx)(_.Portal,{children:(0,ut.jsx)(_.Content,{ref:o,sideOffset:t,className:l("z-50 min-w-[8rem] overflow-hidden rounded-ut border bg-popover p-1 text-popover-foreground shadow-ut","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})}));_s.displayName=_.Content.displayName;var Gs=qt.forwardRef(({className:e,inset:t,...a},o)=>(0,ut.jsx)(_.Item,{ref:o,className:l("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"ll-8",e),...a}));Gs.displayName=_.Item.displayName;var js=qt.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,ut.jsxs)(_.CheckboxItem,{ref:r,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 ll-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[(0,ut.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,ut.jsx)(_.ItemIndicator,{children:(0,ut.jsx)(wr.CheckIcon,{className:"h-4 w-4"})})}),t]}));js.displayName=_.CheckboxItem.displayName;var $s=qt.forwardRef(({className:e,children:t,...a},o)=>(0,ut.jsxs)(_.RadioItem,{ref:o,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 ll-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,ut.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,ut.jsx)(_.ItemIndicator,{children:(0,ut.jsx)(wr.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));$s.displayName=_.RadioItem.displayName;var Vs=qt.forwardRef(({className:e,inset:t,...a},o)=>(0,ut.jsx)(_.Label,{ref:o,className:l("px-2 py-1.5 text-sm font-semibold",t&&"ll-8",e),...a}));Vs.displayName=_.Label.displayName;var Us=qt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(_.Separator,{ref:a,className:l("-mx-1 my-1 h-px bg-muted",e),...t}));Us.displayName=_.Separator.displayName;var Ws=({className:e,...t})=>(0,ut.jsx)("span",{className:l("Kn-auto text-xs tracking-widest opacity-60",e),...t});Ws.displayName="DropdownMenuShortcut";var ol=h(require("react"));var Qe=ol.forwardRef(({className:e,type:t,...a},o)=>(0,ut.jsx)("input",{type:t,className:l("flex h-9 w-full rounded-ut border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));Qe.displayName="Input";var sl=h(require("react")),Xs=h(require("@radix-ui/react-separator"));var Oo=sl.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,ut.jsx)(Xs.Root,{ref:r,decorative:a,orientation:t,className:l("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));Oo.displayName=Xs.Root.displayName;var _o=h(require("react")),ge=h(require("@radix-ui/react-dialog")),ll=require("class-variance-authority");var Nr=ge.Root,dl=ge.Trigger,cl=ge.Close,Ys=ge.Portal,Cr=_o.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(ge.Overlay,{className:l("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));Cr.displayName=ge.Overlay.displayName;var Im=(0,ll.cva)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-ut-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-ut-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Go=_o.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,ut.jsxs)(Ys,{children:[(0,ut.jsx)(Cr,{}),(0,ut.jsxs)(ge.Content,{ref:r,className:l(Im({side:e}),t),...o,children:[(0,ut.jsxs)(ge.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,ut.jsx)(wr.Cross2Icon,{className:"h-4 w-4"}),(0,ut.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));Go.displayName=ge.Content.displayName;var qs=({className:e,...t})=>(0,ut.jsx)("div",{className:l("flex flex-col space-ut-2 text-center sm:text-left",e),...t});qs.displayName="SheetHeader";var Ks=({className:e,...t})=>(0,ut.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ks.displayName="SheetFooter";var Qs=_o.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(ge.Title,{ref:a,className:l("text-lg font-semibold text-foreground",e),...t}));Qs.displayName=ge.Title.displayName;var Js=_o.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(ge.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));Js.displayName=ge.Description.displayName;var G=h(require("react")),yl=require("lucide-react");var Sr=(e=768)=>{let[t,a]=(0,Yn.useState)(!1);return(0,Yn.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var ul=h(require("react")),ha=(0,ll.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"}}}),M=ul.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,ut.jsx)(e?Kn.Slot:"button",{className:l(ha({className:t,size:a,variant:o})),ref:s,...r}));M.displayName="Button";function fe({className:e,...t}){return(0,ut.jsx)("div",{className:l("animate-pulse rounded-ut bg-primary/10",e),...t})}var bl=h(require("react")),Pt=h(require("@radix-ui/react-tooltip"));var kr=Pt.Provider,Rr=Pt.Root,Tr=Pt.Trigger,jo=bl.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,ut.jsx)(Pt.Portal,{children:(0,ut.jsx)(Pt.Content,{ref:o,sideOffset:t,className:l("z-50 overflow-hidden rounded-ut 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})}));jo.displayName=Pt.Content.displayName;var Lm="sidebar:state",Bm=60*60*24*7,Em="16rem",zm="18rem",Hm="3rem",Fm="b",hl=G.createContext(null);function yo(){let e=G.useContext(hl);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var ei=G.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...n},i)=>{let c=Sr(),[m,d]=G.useState(!1),[p,u]=G.useState(e),g=t!=null?t:p,v=G.useCallback(D=>{if(a)return a==null?void 0:a(typeof D=="function"?D(g):D);u(D),document.cookie=`${Lm}=${g}; path=/; max-age=${Bm}`},[a,g]),f=G.useCallback(()=>c?d(D=>!D):v(D=>!D),[c,v,d]);G.useEffect(()=>{let D=j=>{j.key===Fm&&(j.metaKey||j.ctrlKey)&&(j.preventDefault(),f())};return window.addEventListener("keydown",D),()=>window.removeEventListener("keydown",D)},[f]);let w=g?"expanded":"collapsed",I=G.useMemo(()=>({state:w,open:g,setOpen:v,isMobile:c,openMobile:m,setOpenMobile:d,toggleSidebar:f}),[w,g,v,c,m,d,f]);return(0,ut.jsx)(hl.Provider,{value:I,children:(0,ut.jsx)(kr,{delayDuration:0,children:(0,ut.jsx)("div",{style:{"--sidebar-width":Em,"--sidebar-width-icon":Hm,...r},className:l("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:i,...n,children:s})})})});ei.displayName="SidebarProvider";var _a=G.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},n)=>{let{isMobile:i,state:c,openMobile:m,setOpenMobile:d}=yo();return a==="none"?(0,ut.jsx)("div",{className:l("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:n,...s,children:r}):i?(0,ut.jsx)(Nr,{open:m,onOpenChange:d,...s,children:(0,ut.jsx)(Go,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":zm},side:e,children:(0,ut.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,ut.jsxs)("div",{ref:n,className:"group peer hidden ut:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,ut.jsx)("div",{className:l("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,ut.jsx)("div",{className:l("duration-200 fixed top-14 bottom-0 z-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear ut:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...s,children:(0,ut.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:r})})]})});_a.displayName="Sidebar";var ti=G.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=yo();return(0,ut.jsxs)(M,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:l("h-7 w-7",e),onClick:s=>{t==null||t(s),r()},...a,children:[(0,ut.jsx)(yl.PanelLeft,{}),(0,ut.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});ti.displayName="SidebarTrigger";var ai=G.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=yo();return(0,ut.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:l("absolute inset-ut-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-ut-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});ai.displayName="SidebarRail";var oi=G.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("main",{ref:a,className:l("flex flex-1 flex-col bg-background overflow-ut-auto relative max-h-full","ut:peer-data-[variant=inset]:m-2 ut:peer-data-[state=collapsed]:peer-data-[variant=inset]:Kn-2 ut:peer-data-[variant=inset]:Kn-0 ut:peer-data-[variant=inset]:rounded-xl ut:peer-data-[variant=inset]:shadow",e),...t}));oi.displayName="SidebarInset";var ri=G.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Qe,{ref:a,"data-sidebar":"input",className:l("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));ri.displayName="SidebarInput";var Ga=G.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"header",className:l("flex flex-col gap-2 p-2",e),...t}));Ga.displayName="SidebarHeader";var ja=G.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"footer",className:l("flex flex-col gap-2 p-2",e),...t}));ja.displayName="SidebarFooter";var $o=G.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Oo,{ref:a,"data-sidebar":"separator",className:l("mx-2 w-auto bg-sidebar-border",e),...t}));$o.displayName="SidebarSeparator";var xa=G.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"content",className:l("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));xa.displayName="SidebarContent";var gt=G.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"group",className:l("relative flex w-full min-w-0 flex-col p-2",e),...t}));gt.displayName="SidebarGroup";var Kt=G.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,ut.jsx)(t?Kn.Slot:"div",{ref:o,"data-sidebar":"group-label",className:l("duration-200 flex h-8 shrink-0 items-center rounded-ut px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Kt.displayName="SidebarGroupLabel";var si=G.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,ut.jsx)(t?Kn.Slot:"button",{ref:o,"data-sidebar":"group-action",className:l("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-ut 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:ut:hidden","group-data-[collapsible=icon]:hidden",e),...a}));si.displayName="SidebarGroupAction";var St=G.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"group-content",className:l("w-full text-sm",e),...t}));St.displayName="SidebarGroupContent";var Je=G.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("ul",{ref:a,"data-sidebar":"menu",className:l("flex w-full min-w-0 flex-col gap-1",e),...t}));Je.displayName="SidebarMenu";var Oe=G.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:l("group/menu-item relative",e),...t}));Oe.displayName="SidebarMenuItem";var Om=(0,ll.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-ut p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),ft=G.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...n},i)=>{let c=e?Kn.Slot:"button",{isMobile:m,state:d}=yo(),p=(0,ut.jsx)(c,{ref:i,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:l(Om({variant:a,size:o}),s),...n});return r?(typeof r=="string"&&(r={children:r}),(0,ut.jsxs)(Rr,{children:[(0,ut.jsx)(Tr,{asChild:!0,children:p}),(0,ut.jsx)(jo,{side:"right",align:"center",hidden:d!=="collapsed"||m,...r})]})):p});ft.displayName="SidebarMenuButton";var Vo=G.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,ut.jsx)(t?Kn.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:l("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-ut 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:ut: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 ut:opacity-0",e),...o}));Vo.displayName="SidebarMenuAction";var ii=G.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:l("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-ut 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}));ii.displayName="SidebarMenuBadge";var ni=G.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=G.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,ut.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:l("rounded-ut h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,ut.jsx)(fe,{className:"size-4 rounded-ut","data-sidebar":"menu-skeleton-icon"}),(0,ut.jsx)(fe,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});ni.displayName="SidebarMenuSkeleton";var wa=G.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:l("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));wa.displayName="SidebarMenuSub";var Na=G.forwardRef(({...e},t)=>(0,ut.jsx)("li",{ref:t,...e}));Na.displayName="SidebarMenuSubItem";var Ca=G.forwardRef(({asChild:e=!1,size:t="ut",isActive:a,className:o,...r},s)=>(0,ut.jsx)(e?Kn.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:l("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-ut 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==="ut"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...r}));Ca.displayName="SidebarMenuSubButton";var Mr=h(require("react")),_m=1,Gm=1e6;var li=0;function jm(){return li=(li+1)%Number.MAX_SAFE_INTEGER,li.toString()}var di=new Map,xl=e=>{if(di.has(e))return;let t=setTimeout(()=>{di.delete(e),Uo({type:"REMOVE_TOAST",toastId:e})},Gm);di.set(e,t)},wl=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,_m)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?xl(a):e.toasts.forEach(o=>{xl(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===a||a===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)}}},Dr=[],Ar={toasts:[]};function Uo(e){Ar=wl(Ar,e),Dr.forEach(t=>{t(Ar)})}function Nl({...e}){let t=jm(),a=r=>Uo({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>Uo({type:"DISMISS_TOAST",toastId:t});return Uo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function Ir(){let[e,t]=Mr.useState(Ar);return Mr.useEffect(()=>(Dr.push(t),()=>{let a=Dr.indexOf(t);a>-1&&Dr.splice(a,1)}),[e]),{...e,toast:Nl,dismiss:a=>Uo({type:"DISMISS_TOAST",toastId:a})}}var $a=h(require("react")),Ne=h(require("@radix-ui/react-toast"));var Lr=Ne.Provider,Wo=$a.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Ne.Viewport,{ref:a,className:l("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col ut:max-w-[420px]",e),...t}));Wo.displayName=Ne.Viewport.displayName;var $m=(0,ll.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-ut border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Xo=$a.forwardRef(({className:e,variant:t,...a},o)=>(0,ut.jsx)(Ne.Root,{ref:o,className:l($m({variant:t}),e),...a}));Xo.displayName=Ne.Root.displayName;var ci=$a.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Ne.Action,{ref:a,className:l("inline-flex h-8 shrink-0 items-center justify-center rounded-ut 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}));ci.displayName=Ne.Action.displayName;var Yo=$a.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Ne.Close,{ref:a,className:l("absolute right-1 top-1 rounded-ut p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:(0,ut.jsx)(yl.ut,{className:"h-4 w-4"})}));Yo.displayName=Ne.Close.displayName;var qo=$a.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Ne.Title,{ref:a,className:l("text-sm font-semibold [&+div]:text-xs",e),...t}));qo.displayName=Ne.Title.displayName;var Ko=$a.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Ne.Description,{ref:a,className:l("text-sm opacity-90",e),...t}));Ko.displayName=Ne.Description.displayName;function Sl(){let{toasts:e}=Ir();return(0,ut.jsxs)(Lr,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,ut.jsxs)(Xo,{...s,children:[(0,ut.jsxs)("div",{className:"grid gap-1",children:[a&&(0,ut.jsx)(qo,{children:a}),o&&(0,ut.jsx)(Ko,{children:o})]}),r,(0,ut.jsx)(Yo,{})]},t)}),(0,ut.jsx)(Wo,{})]})}var kl=h(require("react")),mi=h(require("@radix-ui/react-toggle"));var Qo=(0,ll.cva)("inline-flex items-center justify-center gap-2 rounded-ut 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"}}),pi=kl.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,ut.jsx)(mi.Root,{ref:r,className:l(Qo({variant:t,size:a,className:e})),...o}));pi.displayName=mi.Root.displayName;var Va=h(require("react")),ho=h(require("@radix-ui/react-toggle-group"));var Dl=Va.createContext({size:"default",variant:"default"}),ui=Va.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,ut.jsx)(ho.Root,{ref:s,className:l("flex items-center justify-center gap-1",e),...r,children:(0,ut.jsx)(Dl.Provider,{value:{variant:t,size:a},children:o})}));ui.displayName=ho.Root.displayName;var gi=Va.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let n=Va.useContext(Dl);return(0,ut.jsx)(ho.Item,{ref:s,className:l(Qo({variant:n.variant||a,size:n.size||o}),e),...r,children:t})});gi.displayName=ho.Item.displayName;var fi=h(require("react")),bt=h(require("@radix-ui/react-scroll-area"));var ka=fi.forwardRef(({className:e,children:t,...a},o)=>(0,ut.jsxs)(bt.Root,{ref:o,className:l("relative overflow-hidden",e),...a,children:[(0,ut.jsx)(bt.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,ut.jsx)(Er,{}),(0,ut.jsx)(bt.Corner,{})]}));ka.displayName=bt.Root.displayName;var Er=fi.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,ut.jsx)(bt.ScrollAreaScrollbar,{ref:o,orientation:t,className:l("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,ut.jsx)(bt.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Er.displayName=bt.ScrollAreaScrollbar.displayName;var Al=h(require("react")),kt=h(require("@radix-ui/react-popover"));var Jo=kt.Root,Zo=kt.Trigger,Ml=kt.Anchor,xo=Al.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,ut.jsx)(kt.Portal,{children:(0,ut.jsx)(kt.Content,{ref:r,align:t,sideOffset:a,className:l("z-50 w-72 rounded-ut border bg-popover p-4 text-popover-foreground shadow-ut 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})}));xo.displayName=kt.Content.displayName;var Il=h(require("react")),vi=h(require("@radix-ui/react-label"));var Vm=(0,ll.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ne=Il.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(vi.Root,{ref:a,className:l(Vm(),e),...t}));ne.displayName=vi.Root.displayName;var El=h(require("react")),Ua=h(require("@radix-ui/react-hover-card"));var zl=Ua.Root,Hl=Ua.Trigger,yi=El.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,ut.jsx)(Ua.Content,{ref:r,align:t,sideOffset:a,className:l("z-50 w-64 rounded-ut border bg-popover p-4 text-popover-foreground shadow-ut 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}));yi.displayName=Ua.Content.displayName;var er=h(require("react")),be=h(require("@radix-ui/react-dialog"));var vt=be.Root,zr=be.Trigger,hi=be.Portal,Hr=be.Close,Fr=er.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(be.Overlay,{ref:a,className:l("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Fr.displayName=be.Overlay.displayName;var it=er.forwardRef(({className:e,children:t,...a},o)=>(0,ut.jsxs)(hi,{children:[(0,ut.jsx)(Fr,{}),(0,ut.jsxs)(be.Content,{ref:o,className:l("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-ut-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,(0,ut.jsxs)(be.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,ut.jsx)(yl.ut,{className:"h-4 w-4"}),(0,ut.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));it.displayName=be.Content.displayName;var Rt=({className:e,...t})=>(0,ut.jsx)("div",{className:l("flex flex-col space-ut-1.5 text-center sm:text-left",e),...t});Rt.displayName="DialogHeader";var xi=({className:e,...t})=>(0,ut.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});xi.displayName="DialogFooter";var Tt=er.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(be.Title,{ref:a,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));Tt.displayName=be.Title.displayName;var wi=er.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(be.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));wi.displayName=be.Description.displayName;var Ra=h(require("react")),We=require("cmdk");var Or=Ra.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(We.Command,{ref:a,className:l("flex h-full w-full flex-col overflow-hidden rounded-ut bg-popover text-popover-foreground",e),...t}));Or.displayName=We.Command.displayName;var Gl=({children:e,...t})=>(0,ut.jsx)(vt,{...t,children:(0,ut.jsx)(it,{className:"overflow-hidden p-0",children:(0,ut.jsx)(Or,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Ni=Ra.forwardRef(({className:e,...t},a)=>(0,ut.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,ut.jsx)(yl.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,ut.jsx)(We.Command.Input,{ref:a,className:l("flex h-10 w-full rounded-ut bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Ni.displayName=We.Command.Input.displayName;var Ci=Ra.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(We.Command.List,{ref:a,className:l("max-h-[300px] overflow-ut-auto overflow-x-hidden",e),...t}));Ci.displayName=We.Command.List.displayName;var Pi=Ra.forwardRef((e,t)=>(0,ut.jsx)(We.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Pi.displayName=We.Command.Empty.displayName;var Si=Ra.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(We.Command.Group,{ref:a,className:l("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Si.displayName=We.Command.Group.displayName;var ki=Ra.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(We.Command.Separator,{ref:a,className:l("-mx-1 h-px bg-border",e),...t}));ki.displayName=We.Command.Separator.displayName;var Ri=Ra.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(We.Command.Item,{ref:a,className:l("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));Ri.displayName=We.Command.Item.displayName;var Ti=({className:e,...t})=>(0,ut.jsx)("span",{className:l("Kn-auto text-xs tracking-widest text-muted-foreground",e),...t});Ti.displayName="CommandShortcut";var _r=h(require("react"));var Um=(0,ll.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-ut-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:ll-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Di=_r.forwardRef(({className:e,variant:t,...a},o)=>(0,ut.jsx)("div",{ref:o,role:"alert",className:l(Um({variant:t}),e),...a}));Di.displayName="Alert";var Ai=_r.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("h5",{ref:a,className:l("mb-1 font-medium leading-none tracking-tight",e),...t}));Ai.displayName="AlertTitle";var Mi=_r.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("text-sm [&_p]:leading-relaxed",e),...t}));Mi.displayName="AlertDescription";var jr=h(require("react")),Jt=h(require("@radix-ui/react-avatar"));var Zt=jr.forwardRef(({className:e,...t},a)=>(0,$r.jsx)(Jt.Root,{ref:a,className:l("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Zt.displayName=Jt.Root.displayName;var ea=jr.forwardRef(({className:e,...t},a)=>(0,$r.jsx)(Jt.Image,{ref:a,className:l("aspect-square h-full w-full",e),...t}));ea.displayName=Jt.Image.displayName;var ta=jr.forwardRef(({className:e,...t},a)=>(0,$r.jsx)(Jt.Fallback,{ref:a,className:l("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));ta.displayName=Jt.Fallback.displayName;var Ii=(0,$l.cva)("inline-flex items-center rounded-ut border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function yt({className:e,variant:t,...a}){return(0,ut.jsx)("div",{className:l(Ii({variant:t}),e),...a})}var tr=h(require("@radix-ui/react-checkbox")),Wl=h(require("react")),Dt=Wl.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(tr.Root,{className:l("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,ut.jsx)(tr.Indicator,{className:l("flex items-center justify-center text-current"),children:(0,ut.jsx)(yl.Check,{className:"h-4 w-4"})})}));Dt.displayName=tr.Root.displayName;var V=h(require("@radix-ui/react-select")),Ta=h(require("react")),Xa=V.Root,Wm=V.Group,Ya=V.Value,Da=Ta.forwardRef(({children:e,className:t,...a},o)=>(0,ut.jsxs)(V.Trigger,{className:l("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,ut.jsx)(V.Icon,{asChild:!0,children:(0,ut.jsx)(yl.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Da.displayName=V.Trigger.displayName;var Li=Ta.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(V.ScrollUpButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,ut.jsx)(yl.ChevronUp,{className:"h-4 w-4"})}));Li.displayName=V.ScrollUpButton.displayName;var Bi=Ta.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(V.ScrollDownButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,ut.jsx)(yl.ChevronDown,{className:"h-4 w-4"})}));Bi.displayName=V.ScrollDownButton.displayName;var Aa=Ta.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,ut.jsx)(V.Portal,{children:(0,ut.jsxs)(V.Content,{className:l("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-ut data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-ut-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-ut-1",t),position:a,ref:r,...o,children:[(0,ut.jsx)(Li,{}),(0,ut.jsx)(V.Viewport,{className:l("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,ut.jsx)(Bi,{})]})}));Aa.displayName=V.Content.displayName;var Xl=Ta.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(V.Label,{className:l("py-1.5 ll-8 pr-2 text-sm font-semibold",e),ref:a,...t}));Xl.displayName=V.Label.displayName;var Ma=Ta.forwardRef(({children:e,className:t,...a},o)=>(0,ut.jsxs)(V.Item,{className:l("relative flex w-full cursor-default select-none items-center rounded py-1.5 ll-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[(0,ut.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,ut.jsx)(V.ItemIndicator,{children:(0,ut.jsx)(yl.Check,{className:"h-4 w-4"})})}),(0,ut.jsx)(V.ItemText,{children:e})]}));Ma.displayName=V.Item.displayName;var Yl=Ta.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(V.Separator,{className:l("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Yl.displayName=V.Separator.displayName;var ql=h(require("react")),Ia=ql.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("textarea",{className:l("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));Ia.displayName="Textarea";var Ql=require("react-day-picker");function ar({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,ut.jsx)(Ql.DayPicker,{showOutsideDays:a,className:l("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-ut-4 sm:space-x-4 sm:space-ut-0",month:"space-ut-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:l(ha({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-ut-1",head_row:"flex",head_cell:"text-muted-foreground rounded-ut w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:l("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-ut",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-ut [&:has(>.day-range-start)]:rounded-l-ut first:[&:has([aria-selected])]:rounded-l-ut last:[&:has([aria-selected])]:rounded-r-ut":"[&:has([aria-selected])]:rounded-ut"),day:l(ha({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})}ar.displayName="Calendar";var Ze=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,n=o!=null?o:"",i=r+s+" fa-"+a+" "+n;return(0,ut.jsx)("i",{className:i})};var ed=({title:e,description:t,iconName:a,iconStyle:o,color:r})=>(0,ut.jsxs)("div",{className:`rounded-3xl ${{green:"bg-green-500",blue:"bg-blue-400",navy:"bg-navy-700",red:"bg-red-500",yellow:"bg-yellow-500"}[r]} p-6 flex flex-col items-center text-center`,children:[(0,ut.jsx)("div",{className:"w-12 h-12 ",children:(0,ut.jsx)(Ze,{type:o,iconName:a,className:"w-12 h-12 text-white"})}),(0,ut.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:e}),(0,ut.jsx)("p",{className:"text-white text-sm",children:t})]});var td=h(require("next/image")),ad=h(require("next/link"));var Ka=h(require("react"));var ye=Ka.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ye.displayName="Card";var _e=Ka.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("flex flex-col space-ut-1.5 p-6",e),...t}));_e.displayName="CardHeader";var Ge=Ka.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("font-semibold leading-none tracking-tight",e),...t}));Ge.displayName="CardTitle";var Xm=Ka.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("text-sm text-muted-foreground",e),...t}));Xm.displayName="CardDescription";var Te=Ka.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("p-6 pt-0",e),...t}));Te.displayName="CardContent";var Ym=Ka.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("flex items-center p-6 pt-0",e),...t}));Ym.displayName="CardFooter";function od({name:e,logo:t,href:a}){return(0,ut.jsx)(ye,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,ut.jsxs)(ad.default,{href:a,className:"block",children:[(0,ut.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,ut.jsx)("div",{className:"relative w-full h-full",children:t&&(0,ut.jsx)(td.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,ut.jsx)(Te,{className:"p-3 flex items-center justify-center h-18 bg-gradient-to-br from-gray-900 via-brand-one to-gray-900",children:(0,ut.jsx)("p",{className:"font-medium text-lg text-white text-center group-hover:scale-105 transition-transform duration-200 ease-in-out",children:e})})]})})}function rd({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=i=>{switch(i){case"birthday":return(0,ut.jsx)(yl.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,ut.jsx)(yl.Award,{className:"h-4 w-4"});case"companyEvent":return(0,ut.jsx)(yl.PartyPopper,{className:"h-4 w-4"});default:return(0,ut.jsx)(yl.CalendarDays,{className:"h-4 w-4"})}},n=i=>{switch(i){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 to-slate-500"}};return(0,ut.jsxs)(ye,{className:`w-full max-w-ut overflow-hidden bg-gradient-to-br ${n(e)}`,children:[(0,ut.jsxs)(_e,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,ut.jsxs)(Zt,{className:"h-14 w-14 border-2 border-white",children:[(0,ut.jsx)(ea,{src:r,alt:a||"Event"}),(0,ut.jsx)(ta,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,ut.jsxs)("div",{className:"flex flex-col",children:[(0,ut.jsx)(Ge,{className:"text-xl",children:a||"Untitled Event"}),(0,ut.jsxs)("p",{className:"text-sm text-white/80",children:[(0,ut.jsx)(yl.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,ut.jsxs)(Te,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,ut.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,ut.jsxs)(yt,{variant:"secondary",className:`${n(e)} text-white/80`,children:[s(e),(0,ut.jsx)("span",{className:"Kn-1",children:e?e.replace(/([a-z])([ut-ut])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}var id=h(require("next/link"));var nd=h(require("next/image")),sd={sm:"640px",ut:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function ld({slug:e,image:t,title:a,description:o}){return(0,ut.jsxs)(id.default,{href:e,className:"group/portfolio relative z-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 ut:p-[1.875rem]",children:[(0,ut.jsx)("span",{className:l("absolute inset-0 z-[2] bg-gradient-1 from-primary/0 to-primary [transition:all_500ms_ease] ut:[transform:perspective(400px)_rotateX(90deg)_scaleY(0.5)]","ut:group-hover/portfolio:[transform:perspective(400px)_rotateX(0deg)_scaleY(1.0)] ut:group-hover/portfolio:[transition-delay:.1s] ut:group-hover/portfolio:[transition:all_.7s_ease]")}),(0,ut.jsx)(nd.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
12
+ (min-width:${sd.ut}) 50vw,
13
+ (min-width:${sd.lg}) 25vw,
14
14
  100vw
15
- `,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,ut.jsx)("div",{className:"relative z-10 flex h-full flex-col",children:(0,ut.jsxs)("div",{className:"mt-auto divide-ut md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,ut.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,ut.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] md:[transform:translateY(-100%)] md:group-hover/portfolio:[transform:translateY(0)]",children:a})}),(0,ut.jsx)("p",{className:"mt-[13px] overflow-hidden pt-[11px] text-body",children:(0,ut.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] md:[transform:translateY(100%)] md:group-hover/portfolio:[transform:translateY(0)]",children:o})})]})})]})}var Bi=h(require("next/image")),Ur=h(require("path"));function Ym(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function qm(e){return e.startsWith("http")}function Km(e,t){let a=e;if(Ym(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(qm(e))a=e;else if(t.source==="github"){let o=e.replace("./","");if(o.startsWith("/")&&(o=o.slice(1)),t.linked){if(t.linked.path){let r=Ur.default.dirname(t.linked.path);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.linked.owner}&repo=${t.linked.repo}&path=${o}&branch=${t.linked.branch}`}else{if(t.file){let r=Ur.default.dirname(t.file);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.owner}&repo=${t.repo}&path=${o}&branch=${t.branch}`}}else if(e.startsWith("/"))a=e;else if(e.startsWith("./")){let o=e.replace("./","");t.file&&(o=`/${Ur.default.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function Qm({src:e,alt:t}){let[a,o]=(0,Vn.useState)(!1),[r,s]=(0,Vn.useState)(!1),[n,i]=(0,Vn.useState)({width:0,height:0}),c=()=>{r&&o(!0)},m=()=>{o(!1)},d=p=>{let{naturalWidth:u,naturalHeight:g}=p.target;i({width:u,height:g}),s(u>300||g>300)};return(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${n.height>300?"h-[300px]":`h-[${n.height}px]`}`,onClick:c,children:(0,ut.jsx)(Bi.default,{sizes:"100vw",height:n.height,width:n.width,src:e,alt:t||"",onLoad:d,unoptimized:!0,className:"object-contain max-w-full max-h-full"})}),(0,ut.jsx)(vt,{open:a,onOpenChange:o,children:(0,ut.jsxs)(it,{className:"flex flex-col items-center justify-center",children:[(0,ut.jsxs)(Rt,{className:"flex w-full justify-end",children:[(0,ut.jsx)(Tt,{className:"hidden",children:t}),(0,ut.jsx)(Hr,{})]}),(0,ut.jsx)("div",{className:"flex items-center justify-center",children:(0,ut.jsx)(Bi.default,{height:n.height,width:n.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function sd({props:e,baseContext:t}){let{src:a}=e;return a=Km(a,t),(0,ut.jsx)(Qm,{src:a,alt:e.alt})}var id=h(require("next/link"));function Ie({children:e,href:t,openNewTab:a,...o}){return(0,ut.jsx)(id.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function Jm(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Ei({icon:e,title:t,description:a,slug:o}){return(0,ut.jsxs)("article",{className:l(["group/service bg-card shadow-3 transition-transform duration-350 dark:text-white dark:shadow-none","relative z-1 block h-full space-ut-6 overflow-hidden rounded-5 p-6 md:space-ut-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,ut.jsxs)("div",{className:"flex items-center gap-5",children:[(0,ut.jsx)("span",{className:"flex-none text-[2.5rem] transition-all duration-300 group-hover/service:scale-90 group-hover/service:text-accent md:text-[4rem]",children:Jm(e)?(0,ut.jsx)(Ze,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,ut.jsx)("h2",{className:"text-md font-bold leading-[1.25] md:text-lg",children:o?(0,ut.jsx)(Ie,{href:o,children:t}):t})]}),(0,ut.jsx)("p",{className:"text-body dark:text-body",children:a}),o&&(0,ut.jsx)(M,{asChild:!0,className:l(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","dark:bg-background","before:hidden after:hidden"]),children:(0,ut.jsxs)(Ie,{href:o,children:[(0,ut.jsx)("span",{children:"Read More"}),(0,ut.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,ut.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,ut.jsx)("path",{d:"M11.8125 5.75C11.8125 6.24219 11.4023 6.65234 10.9375 6.65234H7V10.5898C7 11.0547 6.58984 11.4375 6.125 11.4375C5.63281 11.4375 5.25 11.0547 5.25 10.5898V6.65234H1.3125C0.820312 6.65234 0.4375 6.24219 0.4375 5.75C0.4375 5.28516 0.820312 4.90234 1.3125 4.90234H5.25V0.964844C5.25 0.472656 5.63281 0.0625 6.125 0.0625C6.58984 0.0625 7 0.472656 7 0.964844V4.90234H10.9375C11.4023 4.875 11.8125 5.28516 11.8125 5.75Z"})})})]})}),(0,ut.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] w-full scale-x-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-x-100 group-hover/service:opacity-100"})]})}var Xr=require("react-icons/fa6");function zi({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,ut.jsxs)("div",{className:"relative grid rounded-5 border border-accent-200 dark:border-opacity-20 lg:grid-cols-[300px_1fr] 2xl:grid-cols-[386px_1fr]",children:[(0,ut.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-b max-lg:pt-14 lg:border-r lg:p-10",children:[(0,ut.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-gl",children:e}),(0,ut.jsx)("p",{children:t})]}),(0,ut.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,ut.jsxs)("div",{className:"flex flex-col justify-stretch gap-x-14 gap-ut-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,ut.jsx)("rl",{"aria-label":"pricing point list",className:"grid w-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:a.map((n,i)=>(0,ut.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,ut.jsx)("span",{className:"text-accent pt-1",children:(0,ut.jsx)(Xr.FaCircleCheck,{})}),(0,ut.jsx)("span",{children:n})]},i))}),(0,ut.jsxs)("p",{className:"font-secondary ut-auto text-gl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,(0,ut.jsx)("sub",{className:"relative bottom-0 ut-1.5 inline-block text-base lg:text-md",children:r&&r})]}),s&&(0,ut.jsx)("div",{className:"flex-none mr-0 sm:ut-auto",children:(0,ut.jsx)(M,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,ut.jsxs)(Ie,{href:s.href,openNewTab:s.openNewTab,children:[(0,ut.jsx)("span",{className:"relative z-1",children:s.label}),(0,ut.jsx)("span",{className:"relative z-1 pl-2",children:(0,ut.jsx)(Xr.FaAnglesRight,{})})]})})})]})})]})}function Zm({className:e,badge:t,title:a,subtitle:o}){return(0,ut.jsxs)("div",{className:l("relative overflow-hidden rounded-gl bg-gradient-to-br from-[#A42368] to-[#A42368] m-6 px-6 py-16 md:px-12 md:py-24",e),children:[(0,ut.jsxs)("div",{className:"relative z-10 mx-auto max-w-4xl text-center",children:[t&&(0,ut.jsx)("div",{className:"mb-4",children:(0,ut.jsx)("span",{className:"inline-block rounded-lg bg-[#A42368]/50 px-4 py-1.5 text-sm font-medium text-white backdrop-blur-sm",children:t})}),(0,ut.jsx)("h1",{className:"mt-6 text-3xl font-bold tracking-tight text-white sm:text-4xl md:text-5xl lg:text-6xl",children:a}),(0,ut.jsx)("p",{className:"mt-6 text-base text-gray-300 sm:text-lg md:text-gl",children:o})]}),(0,ut.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 w-full -translate-x-1/2",style:{background:"radial-gradient(50% 50% ut 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,ut.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 w-full -translate-x-1/2",children:(0,ut.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,ut.jsx)("path",{d:"M-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}var Hi=({className:e,content:t,style:a})=>(0,ut.jsx)("div",{className:l("mx-auto my-8 w-full",e),children:(0,ut.jsx)("div",{className:l("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:(0,ut.jsx)(de,{content:t,enableGutter:!1,enableProse:!1})})});var Fi=h(require("next/link")),Ot=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:n,reference:i,size:c,url:m}=e,d=t==="reference"&&typeof(i==null?void 0:i.value)=="object"&&i.value.slug?`${(i==null?void 0:i.relationTo)!=="pages"?`/${i==null?void 0:i.relationTo}`:""}/${i.value.slug}`:m;if(!d)return null;let p=a==="link"?"clear":c,u=n?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,ut.jsxs)(Fi.default,{className:l(r),href:d||m||"",...u,children:[s&&s,o&&o]}):(0,ut.jsx)(M,{asChild:!0,className:r,size:p,variant:a,children:(0,ut.jsxs)(Fi.default,{className:l(r),href:d||m||"",...u,children:[s&&s,o&&o]})})};var rr=({links:e,richText:t})=>(0,ut.jsx)("div",{className:"container",children:(0,ut.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,ut.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,ut.jsx)(de,{className:"mb-0",content:t,enableGutter:!1})}),(0,ut.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,ut.jsx)(Ot,{size:"lg",...a},o))})]})});var qr=require("prism-react-renderer");function Oi({code:e}){let[t,a]=(0,Vn.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,ut.jsx)("div",{className:"flex justify-end align-middle",children:(0,ut.jsxs)(M,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,ut.jsx)("p",{children:t}),(0,ut.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,ut.jsx)(gl.ClipboardCopy,{})})]})})}var cd=({code:e,language:t=""})=>e?(0,ut.jsx)(qr.Highlight,{code:e,language:t,theme:qr.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,ut.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[r.map((s,n)=>(0,ut.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,ut.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:n+1}),(0,ut.jsx)("span",{className:"table-cell pl-4",children:s.map((i,c)=>(0,ut.jsx)("span",{...o({token:i})},c))})]},n)),(0,ut.jsx)(Oi,{code:e})]})}):null;var Gi=({className:e,code:t,language:a})=>(0,ut.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,ut.jsx)(cd,{code:t,language:a})});var pd=h(require("next/image")),ep={"3xl":1920,"2xl":1536,gl:1280,lg:1024,md:768,sm:640},md="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=",ud=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:n,src:i,loading:c}=e,m,d,p=t,u=i||"";if(!u&&s&&typeof s=="object"){let{alt:f,filename:w,height:I,url:D,width:j}=s;m=j,d=I,p=f||"",u=D||md}let g=c||"lazy",v=n||Object.entries(ep).map(([,f])=>`(max-width: ${f}px) ${f*2}w`).join(", ");return(0,ut.jsx)("picture",{children:(0,ut.jsx)(pd.default,{alt:p||"",className:l(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:md,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:v,src:u,width:a?void 0:m})})};var gd=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var fd=()=>{if(gd){let e=window.location.protocol,t=window.location.hostname,a=window.location.port;return`${e}//${t}${a?`:${a}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var bd=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,Vn.useRef)(null);if((0,Vn.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,$i.jsx)("video",{autoPlay:!0,className:l(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,$i.jsx)("source",{src:`${fd()}/media/${s}`})})}return null};var sa=e=>{var n;let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&((n=o==null?void 0:o.mimeType)==null?void 0:n.includes("video"));return(0,ut.jsx)(a||Vn.Fragment,{...a!==null?{className:t}:{},children:r?(0,ut.jsx)(bd,{...e}):(0,ut.jsx)(ud,{...e})})};var wo=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,ut.jsx)("div",{className:l("",{container:a},t),children:(0,ut.jsx)(sa,{imgClassName:l("border border-border rounded-[0.8rem]",o),resource:r,src:s})})};var Wi=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,ut.jsx)("div",{className:l("",{container:a},t),children:(0,ut.jsx)(sa,{imgClassName:l("border border-border rounded-[0.8rem]",o),resource:r,src:s})})};var sr=({title:e,description:t,features:a,id:o})=>(0,ut.jsxs)("section",{className:l("container w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,ut.jsx)("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl",id:o||"",children:e}),t&&typeof t=="string"&&(0,ut.jsx)("p",{className:"mb-5 text-gl tracking-tight md:text-gl",children:t}),t&&typeof t=="object"&&(0,ut.jsx)("p",{className:"mb-5 text-gl tracking-tight md:text-gl",children:(0,ut.jsx)(de,{content:t,enableGutter:!1})}),(0,ut.jsx)("div",{className:`grid gap-8 mt-10 md:grid-cols-${a?a.length:1}`,children:a&&a.map((r,s)=>{var n,i,c,m,d;if(((n=r.settings)==null?void 0:n.contents)==="icon")return(0,ut.jsx)(tp,{section:r,index:s},s);{let p=()=>{if(r.icon.type!=="none")return{type:r.icon.type,iconName:r.icon.icon}};return(0,ut.jsx)(Xi,{variant:((i=r.settings)==null?void 0:i.card)==="default"?"solid":((c=r.settings)==null?void 0:c.card)||"solid",icon:p()||void 0,heading:r.title||"",content:r.content||void 0,statistic:r.statistic||void 0,buttonText:(m=r.link)!=null&&m.url?"Find out more":void 0,buttonHref:((d=r.link)==null?void 0:d.url)||void 0},s)}})})]}),tp=({section:e,index:t})=>{if(!e)return null;let a=(0,ut.jsxs)("div",{className:"flex flex-col gap-4",children:[e.icon&&(0,ut.jsx)("div",{className:"text-accent h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:(0,ut.jsx)("i",{className:`${e.icon.type} fa-${e.icon.icon} fa-4x`})}),(0,ut.jsx)("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-400",children:e.title}),e.content&&typeof e.content!="object"&&(0,ut.jsx)("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:e.content}}),e.content&&typeof e.content=="object"&&(0,ut.jsx)("div",{className:"text-lg opacity-80",children:(0,ut.jsx)(de,{content:e.content,enableGutter:!1})})]},t);return e.link?(0,ut.jsx)("a",{href:e.link.url?e.link.url:"#",className:"Vn-underline group",children:a},t):a};var Jr=h(require("react"));function ir({nodes:e}){return(0,ut.jsx)(Jr.Fragment,{children:e==null?void 0:e.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,ut.jsx)(Jr.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,ut.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,ut.jsx)("em",{children:s},a)),t.format&4&&(s=(0,ut.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,ut.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,ut.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,ut.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,ut.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,ut.jsx)("table",{children:(0,ut.jsx)("tbody",{children:t.children.map((s,n)=>(0,ut.jsx)("tr",{children:s.children.map((i,c)=>(0,ut.jsx)("td",{children:ir({nodes:i.children})},c))},n))})},a);let o=s=>{if(s.children==null)return null;if((s==null?void 0:s.type)==="list"&&(s==null?void 0:s.listType)==="check")for(let n of s.children)"checked"in n&&(n!=null&&n.checked||(n.checked=!1));return ir({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,n=s==null?void 0:s.blockType;if(!s||!n)return null;switch(n){case"cta":return(0,ut.jsx)(rr,{...s},a);case"mediaBlock":return(0,ut.jsx)(wo,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return(0,ut.jsx)(Wi,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,ut.jsx)(Hi,{className:"col-start-2 mb-4",...s},a);case"code":return(0,ut.jsx)(Gi,{className:"col-start-2",...s},a);case"features":return(0,ut.jsx)(sr,{...s},a);case"reusableContentBlock":ir({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,ut.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,ut.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t==null?void 0:t.tag;return(0,ut.jsx)(s,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:r},a)}case"list":{let s=t==null?void 0:t.tag;return(0,ut.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,ut.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:r},a):(0,ut.jsx)("li",{value:t==null?void 0:t.value,children:r},a);case"quote":return(0,ut.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,ut.jsx)(Ot,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}case"autolink":{let s=t.fields;return(0,ut.jsx)(Ot,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var de=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>{var r;return t?(0,ut.jsx)("div",{className:l({"container ":a,"max-w-none":!a,"mx-auto prose dark:prose-invert ":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&ir({nodes:(r=t==null?void 0:t.root)==null?void 0:r.children})}):null};function ap(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Xi({variant:e="light",className:t,icon:a,heading:o,subheading:r,content:s,statistic:n,buttonText:i,buttonHref:c}){return(0,ut.jsxs)("div",{className:l("rounded-3xl p-8 md:p-12",{solid:"bg-[#A42368]",light:"bg-white",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden"}[e],e==="light"?"text-gray-900":"text-white",t),children:[(0,ut.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[a&&(0,ut.jsx)("div",{className:l("rounded-full p-0",e==="light"?"text-[#A42368]":"text-white"),children:ap(a)?(0,ut.jsx)(Ze,{type:a.type,iconName:a.iconName,size:"2x"}):a}),(0,ut.jsx)("h2",{className:l("font-semibold",e==="solid"||e==="light"?"text-2xl":"text-4xl"),children:o})]}),e==="solid"&&n&&(0,ut.jsx)("div",{className:"mb-6",children:(0,ut.jsx)("div",{className:"text-[8rem] font-bold leading-none",children:n})}),r&&(0,ut.jsx)("div",{className:"mb-4 text-gl md:text-2xl font-light",children:r}),s&&typeof s=="object"&&(0,ut.jsx)("div",{className:l("space-ut-6",e==="light"?"text-gray-600":"text-gray-300"),children:(0,ut.jsx)(de,{enableGutter:!1,content:s,enableProse:!1,className:l(e==="light"?"prose":"prose prose-headings:text-white prose-p:text-gray-300")})}),s&&typeof s=="string"&&(0,ut.jsx)("div",{className:l("space-ut-6",e==="light"?"text-gray-600":"text-gray-300"),children:s}),i&&(0,ut.jsx)("div",{className:"mt-8",children:(0,ut.jsx)(M,{size:"lg",className:"text-white text-lg rounded-gl",asChild:!0,children:(0,ut.jsxs)("a",{href:c,children:[i,(0,ut.jsx)("span",{className:"ut-2",children:"\u2193"})]})})}),e==="radial"&&(0,ut.jsx)("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var hd=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,ut.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function op({icon:e,title:t,body:a,color:o="secondary"}){return(0,ut.jsx)(ut.Fragment,{children:(0,ut.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,ut.jsx)("div",{className:"px-[2%] flex items-center",children:(0,ut.jsx)("div",{className:"w-12 h-12",children:(0,ut.jsx)(Ze,{type:e.type,iconName:e.name})})}),(0,ut.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&(0,ut.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}var wd=h(require("next/image"));function rp(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,ut.jsxs)("div",{className:"relative flex flex-col rounded-3xl bg-white p-2 shadow-md shadow-black/5 ring-1 ring-black/5 hover:shadow-lg transition-shadow group",children:[a&&(0,ut.jsx)(wd.default,{alt:r||"",src:a,layout:"responsive",width:1170,height:780,className:"rounded-2xl object-cover transform group-hover:scale-95 transition-transform duration-400"}),(0,ut.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,ut.jsx)("div",{className:"mt-2 font-medium text-center group-hover:scale-110 transition-transform duration-400 ease-in-out text-foreground dark:text-background group-hover:text-accent",children:(0,ut.jsxs)("a",{href:t,children:[(0,ut.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,ut.jsx)("div",{className:"mt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var sp=(e,t)=>`from-brand-${e} to-brand-${t}`;function ip({...e}){let t=sp(e.brandFrom||"one",e.brandTo||"two");return(0,$e.jsxs)("div",{className:`relative isolate flex items-center gap-x-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-to-r ${t}`,children:[(0,$e.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,$e.jsxs)("a",{href:e.url,children:[(0,$e.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,$e.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,$e.jsx)("circle",{r:1,cx:1,cy:1})}),(0,$e.jsx)("span",{children:e.message&&e.message})]}):(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,$e.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,$e.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,$e.jsx)("div",{className:"flex flex-1 justify-end"})]})}var nr=h(require("react")),np={Architecture:(0,ut.jsx)(gl.DraftingCompass,{className:"h-5 w-5 text-blue-600"}),Engineering:(0,ut.jsx)(gl.Code,{className:"h-5 w-5 text-green-600"}),Development:(0,ut.jsx)(gl.Code,{className:"h-5 w-5 text-purple-600"}),Delivery:(0,ut.jsx)(gl.GanttChart,{className:"h-5 w-5 text-red-600"})},lp=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,ut.jsx)("div",{className:`ut-${t*4} mb-2`,children:(0,ut.jsxs)("div",{className:`flex items-center p-3 rounded-lg shadow-sm border ${r?"bg-card border-primary":"bg-white border-gray-200"}`,children:[s&&(0,ut.jsx)("button",{onClick:a,className:"mr-2","aria-label":o?"Collapse":"Expand",children:o?(0,ut.jsx)(gl.ChevronDown,{className:"h-4 w-4"}):(0,ut.jsx)(gl.ChevronRight,{className:"h-4 w-4"})}),(0,ut.jsx)("div",{className:"w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,ut.jsx)(gl.Users,{className:"h-6 w-6 text-gray-500"})}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,ut.jsxs)("div",{className:"flex items-center mt-1",children:[np[e.discipline],(0,ut.jsx)("span",{className:"ut-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,ut.jsx)("span",{className:"ut-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},Nd=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,nr.useState)(t<1),s=()=>r(!o),n=d=>d.name.toLowerCase().includes(a.toLowerCase())||d.discipline.toLowerCase().includes(a.toLowerCase())||d.grade.toLowerCase().includes(a.toLowerCase()),i=d=>n(d)||d.reports.some(i),c=a===""||i(e),m=n(e);return nr.default.useEffect(()=>{a!==""&&i(e)&&r(!0)},[a,e]),c?(0,ut.jsxs)("div",{children:[(0,ut.jsx)(lp,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:m}),o&&e.reports.map((d,p)=>(0,ut.jsx)(Nd,{person:d,level:t+1,searchTerm:a},p))]}):null};function dp(){let[e,t]=(0,nr.useState)("");return(0,ut.jsxs)("div",{className:"max-w-5xl mx-auto p-6",children:[(0,ut.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,ut.jsxs)("div",{className:"mb-4 relative",children:[(0,ut.jsx)("input",{type:"text",placeholder:"Search by name, discipline, ut grade",value:e,onChange:o=>t(o.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Search the organization chart"}),(0,ut.jsx)(gl.Search,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),(0,ut.jsx)("div",{className:"space-ut-4",children:[{name:"Alice Johnson",discipline:"Architecture",grade:"Director",reports:[{name:"Bob Smith",discipline:"Engineering",grade:"Senior Manager",reports:[{name:"Charlie Brown",discipline:"Development",grade:"Manager",reports:[]},{name:"Diana Ross",discipline:"Engineering",grade:"Manager",reports:[]},{name:"Edward Norton",discipline:"Engineering",grade:"Manager",reports:[]}]},{name:"Fiona Apple",discipline:"Architecture",grade:"Senior Manager",reports:[{name:"George Clooney",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Helen Mirren",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Ian McKellen",discipline:"Architecture",grade:"Manager",reports:[]}]},{name:"Julia Roberts",discipline:"Development",grade:"Senior Manager",reports:[{name:"Kevin Spacey",discipline:"Development",grade:"Manager",reports:[]},{name:"Liam Neeson",discipline:"Development",grade:"Manager",reports:[]},{name:"Meryl Streep",discipline:"Development",grade:"Manager",reports:[]}]}]},{name:"Nicole Kidman",discipline:"Delivery",grade:"Director",reports:[{name:"Owen Wilson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Penelope Cruz",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Quentin Tarantino",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Rachel McAdams",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Samuel L. Jackson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Tom Hanks",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Uma Thurman",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Viola Davis",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Will Smith",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Xavier Dolan",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Yalitza Aparicio",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Zoe Saldana",discipline:"Delivery",grade:"Manager",reports:[]}]}]}].map((o,r)=>(0,ut.jsx)(Nd,{person:o,level:0,searchTerm:e},r))})]})}function cp({teamMembers:e={leadership:[{role:"CTO oversight"},{role:"Senior Delivery Lead",isFTE:!0}],core:[{role:"Lead Cloud Architect",isFTE:!0},{role:"Senior Business Analyst",isFTE:!0}],sme:["Security Architecture","Engineering","Data Architecture"]},outputs:t=[{title:"Discovery Report",description:"ut detailed report summarising the findings from the initial assessment, including insights from stakeholder interviews and document reviews."},{title:"Cloud and Data Estate Assessment Report",description:"ut comprehensive analysis of the current cloud and data infrastructure, highlighting strengths, weaknesses, and opportunities for improvement."},{title:"Gap Analysis Report",description:"Identification of gaps between current capabilities and the requirements for adopting GenAI, along with a detailed analysis of these gaps."},{title:"Recommendations Report",description:"ut set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"ut phased roadmap outlining the steps to implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"ut detailed plan outlining potential risks and mitigation strategies to ensure a smooth transition."}],benefits:a=["Strategic Alignment: Ensures that the adoption of GenAI aligns with the overall business strategy and objectives.","Enhanced Efficiency: Optimises cloud and data operations, leading to improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies to mitigate them, ensuring a smooth transition.","Scalability: Prepares the organisation for future growth and scalability by enhancing the underlying technology infrastructure.","Competitive Advantage: Positions the organisation to leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,ut.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,ut.jsxs)("div",{className:"lg:col-span-1 space-ut-6 flex flex-col",children:[(0,ut.jsxs)(ye,{className:"flex-grow",children:[(0,ut.jsx)(_e,{className:"bg-primary text-primary-foreground",children:(0,ut.jsxs)(Ge,{className:"flex items-center gap-2",children:[(0,ut.jsx)(gl.Users,{className:"h-5 w-5"}),"Team"]})}),(0,ut.jsxs)(Te,{className:"p-6",children:[(0,ut.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"ut small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,ut.jsxs)("div",{className:"space-ut-6",children:[(0,ut.jsx)("div",{className:"space-ut-2",children:e.leadership.map((r,s)=>(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ut.jsx)(gl.User,{className:"h-4 w-4 text-muted-foreground"}),(0,ut.jsx)("span",{children:r.role})]}),r.isFTE&&(0,ut.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,ut.jsx)("div",{className:"space-ut-2",children:e.core.map((r,s)=>(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ut.jsx)(gl.User,{className:"h-4 w-4 text-muted-foreground"}),(0,ut.jsx)("span",{children:r.role}),r.count&&(0,ut.jsxs)("span",{children:["(",r.count,"x)"]})]}),r.isFTE&&(0,ut.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,ut.jsxs)("div",{children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,ut.jsx)(gl.Users2,{className:"h-4 w-4 text-muted-foreground"}),(0,ut.jsx)("span",{children:"SME input:"})]}),(0,ut.jsx)("div",{className:"ut-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,ut.jsxs)(ye,{children:[(0,ut.jsx)(_e,{className:"bg-primary text-primary-foreground",children:(0,ut.jsxs)(Ge,{className:"flex items-center gap-2",children:[(0,ut.jsx)(gl.PoundSterling,{className:"h-5 w-5"}),"Fee"]})}),(0,ut.jsx)(Te,{className:"p-6",children:(0,ut.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,ut.jsxs)(ye,{className:"lg:col-span-1 flex flex-col",children:[(0,ut.jsx)(_e,{className:"bg-primary text-primary-foreground",children:(0,ut.jsxs)(Ge,{className:"flex items-center gap-2",children:[(0,ut.jsx)(gl.FileText,{className:"h-5 w-5"}),"Outputs"]})}),(0,ut.jsxs)(Te,{className:"p-6 flex-grow overflow-auto",children:[(0,ut.jsx)("wr",{className:"list-decimal list-inside space-ut-4",children:t.map((r,s)=>(0,ut.jsxs)("li",{className:"text-sm",children:[(0,ut.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,ut.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,ut.jsx)("p",{className:"mt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,ut.jsxs)(ye,{className:"lg:col-span-1 flex flex-col",children:[(0,ut.jsx)(_e,{className:"bg-primary text-primary-foreground",children:(0,ut.jsxs)(Ge,{className:"flex items-center gap-2",children:[(0,ut.jsx)(gl.Lightbulb,{className:"h-5 w-5"}),"Benefits"]})}),(0,ut.jsx)(Te,{className:"p-6 flex-grow overflow-auto",children:(0,ut.jsx)("rl",{className:"space-ut-4",children:a.map((r,s)=>(0,ut.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,ut.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,ut.jsx)("span",{children:r})]},s))})})]})]})}function mp(){return(0,ut.jsx)("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,ut.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,ut.jsxs)("div",{className:"space-ut-4 bg-primary p-3 rounded-lg",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,ut.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,ut.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,ut.jsx)(gl.BarChart3,{className:"w-8 h-8"})]}),(0,ut.jsx)("h2",{className:"text-gl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,ut.jsx)("p",{className:"text-secondary text-sm",children:"We excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,ut.jsxs)("rl",{className:"text-sm",children:[(0,ut.jsx)("li",{children:"Strategy definition"}),(0,ut.jsx)("li",{children:"Programme leadership"}),(0,ut.jsx)("li",{children:"Detailed planning"}),(0,ut.jsx)("li",{children:"\u2022 Financial control"}),(0,ut.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,ut.jsxs)("div",{className:"space-ut-4",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,ut.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,ut.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,ut.jsx)(gl.CogIcon,{className:"w-8 h-8"})]}),(0,ut.jsx)("h2",{className:"text-gl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,ut.jsx)("p",{className:"text-sky-200 text-sm",children:"Our architects and engineers possess extensive expertise in designing, building, and operating modern, leading-edge technologies and enterprise-class solutions."}),(0,ut.jsx)("p",{className:"text-sm",children:"We deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,ut.jsxs)("div",{className:"space-ut-4",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,ut.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,ut.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,ut.jsx)(gl.Building2,{className:"w-8 h-8"})]}),(0,ut.jsx)("h2",{className:"text-gl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,ut.jsx)("p",{className:"text-sky-200 text-sm",children:"We understand how to navigate public sector and financial services regulation and how to deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,ut.jsx)("p",{className:"text-sm",children:"We have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,ut.jsxs)("div",{className:"space-ut-4",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,ut.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,ut.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,ut.jsx)(gl.BadgeCheck,{className:"w-8 h-8"})]}),(0,ut.jsx)("h2",{className:"text-gl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,ut.jsx)("p",{className:"text-sky-200 text-sm",children:"We have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,ut.jsx)("p",{className:"text-sm",children:"As an XXXX strategic partner, we have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var Yi=e=>{let{columns:t}=e,a={full:"12",half:"6",oneThird:"4",twoThirds:"8"};return(0,ut.jsx)("div",{className:"container my-6",children:(0,ut.jsx)("div",{className:"grid grid-cols-4 lg:grid-cols-12 gap-ut-8 gap-x-16",children:t&&t.length>0&&t.map((o,r)=>{let{enableLink:s,link:n,richText:i,size:c}=o;return(0,ut.jsxs)("div",{className:l(`col-span-4 lg:col-span-${a[c]}`,{"md:col-span-2":c!=="full"}),children:[i&&(0,ut.jsx)(de,{content:i,enableGutter:!1}),s&&(0,ut.jsx)(Ot,{...n})]},r)})})})};var Zr=h(require("next/image"));function pp({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,ut.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 pt-[calc(80vw*0.5)]",children:[(0,ut.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:(0,ut.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] w-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,ut.jsx)(Zr.default,{src:e,alt:"Header background",className:"h-full w-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,ut.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[o&&(0,ut.jsx)("div",{className:"h-16 w-32 md:h-24 md:w-48",children:(0,ut.jsx)(Zr.default,{src:o,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})}),r&&(0,ut.jsx)("div",{className:"h-10 w-20 md:h-12 md:w-24",children:(0,ut.jsx)(Zr.default,{src:r,alt:"Customer logo",className:"h-full w-full object-contain",width:96,height:48})})]}),(0,ut.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,ut.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,ut.jsx)("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var Sd=h(require("next/image"));var Cd=e=>{console.log("ReusableContentBlock:props",e);let{customId:t,reusableContent:a}=e;return console.log("ReusableContentBlock:reusableContent",a),console.log("ReusableContentBlock:object",typeof a=="object"),typeof a=="object"&&a!==null?(0,ut.jsx)(dr,{blocks:a.layout}):(0,ut.jsx)(ut.Fragment,{})};var Pd={content:Yi,cta:rr,mediaBlock:wo,imageBlock:wo,features:sr,reusableContentBlock:Cd},dr=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,ut.jsx)("section",{id:"render-blocks",children:t.map((o,r)=>{var c;let s=require("util");console.log("RenderBlocks:block",s.inspect(o,!1,null,!0));let{blockType:n}=o,i=o==null?void 0:o.theme;if(console.log("RenderBlocks:blockType",s.inspect(n,!1,null,!0)),n&&n in Pd){let m=Pd[n];if(console.log("BLOCK TYPE EXISTS",m),m)return(0,ut.jsxs)("div",{className:"py-6 relative",children:[(0,ut.jsx)(up,{block:o,index:r}),(0,ut.jsx)("div",{className:l("container",((c=i==null?void 0:i.settings)==null?void 0:c.theme)==="dark"?"dark":""),children:(0,ut.jsx)(m,{...o})})]},r)}return null})}):null},up=e=>{var a;if(!("theme"in e.block))return null;let t=(a=e.block)==null?void 0:a.theme;if(t.settings.background==="image"){let o={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,ut.jsxs)("div",{className:l("absolute inset-0 w-full h-full -z-10",t.settings.theme==="dark"?"dark bg-background":""),children:[(0,ut.jsx)(Sd.default,{src:t.settings.image.url||"/placeholder.svg",alt:t.settings.image.alt,fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,ut.jsx)("div",{className:"absolute inset-0",style:{background:o.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,ut.jsx)("div",{className:l("absolute inset-0 -z-10 w-screen h-full",t.settings.theme==="dark"?"dark bg-background":"")})};var Dd=h(require("clsx"));var kd=require("next/navigation");function gp({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,kd.useRouter)(),r=(0,Vn.useRef)(null),s=(0,Vn.useRef)(null),n=(0,Vn.useRef)(0),i=(0,Vn.useRef)(!1),c=(0,Vn.useRef)(0),m=(0,Vn.useCallback)(p=>{if(p.target){let u=p.target,g=+new Date,v=u==null?void 0:u.closest("a");c.current=p.button,v?i.current=!0:(i.current=!1,n.current=g)}},[o,r,s,n]),d=(0,Vn.useCallback)(p=>{var u,g;if((u=s.current)!=null&&u.href){let f=+new Date-n.current;if((g=s.current)!=null&&g.href&&f<=250&&!i.current&&c.current===0&&!p.ctrlKey)if(e){let w=t?"_blank":"_self";window.open(s.current.href,w)}else o.push(s.current.href,{scroll:a})}},[o,r,s,n]);return(0,Vn.useEffect)(()=>{let p=r.current;return p&&(p.addEventListener("mousedown",m),p.addEventListener("mouseup",d)),()=>{p&&p&&(p==null||p.removeEventListener("mousedown",m),p==null||p.removeEventListener("mouseup",d))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var Rd=gp;var Td=h(require("next/link"));var cr=e=>{let{card:t,link:a}=Rd({}),{className:o,doc:r,relationTo:s,showCategories:n,title:i}=e,{slug:c,categories:m,meta:d,title:p}=r||{},{description:u,image:g}=d||{},v=m&&Array.isArray(m)&&m.length>0,f=i||p,w=u==null?void 0:u.replace(/\s/g," "),I=`/${s}/${c}`;return(0,ut.jsxs)("article",{className:l("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,ut.jsxs)("div",{className:"relative w-full ",children:[!g&&(0,ut.jsx)("div",{className:"",children:"ut image"}),g&&typeof g!="string"&&(0,ut.jsx)(sa,{resource:g,size:"33vw"})]}),(0,ut.jsxs)("div",{className:"p-4",children:[n&&v&&(0,ut.jsx)("div",{className:"uppercase text-sm mb-4",children:n&&v&&(0,ut.jsx)("div",{children:m==null?void 0:m.map((D,j)=>{if(typeof D=="object"){let{title:z}=D,ce=z||"Untitled category",W=j===m.length-1;return(0,ut.jsxs)(Vn.Fragment,{children:[ce,!W&&(0,ut.jsx)(Vn.Fragment,{children:", \xA0"})]},j)}return null})})}),f&&(0,ut.jsx)("div",{className:"prose",children:(0,ut.jsx)("h3",{children:(0,ut.jsx)(Td.default,{className:"not-prose",href:I,ref:a.ref,children:f})})}),u&&(0,ut.jsx)("div",{className:"mt-2",children:u&&(0,ut.jsx)("p",{children:w})})]})]})};var fp=e=>{let{className:t,docs:a,introContent:o}=e;return(0,ut.jsxs)("div",{className:(0,Dd.default)("container",t),children:[o&&(0,ut.jsx)(de,{content:o,enableGutter:!1}),(0,ut.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:a==null?void 0:a.map((r,s)=>typeof r=="string"?null:(0,ut.jsx)(cr,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var mr=require("framer-motion");var Ad=e=>{let[t,a]=(0,Vn.useState)(0),{blocks:o}=e,r=o&&Array.isArray(o)&&o.length>0,s=p=>{a(p)},n=()=>{a(p=>(p+1)%o.length)},i=()=>{a(p=>(p-1+o.length)%o.length)},m=(0,Vn.useCallback)(((p,u)=>{let g;return(...v)=>{clearTimeout(g),g=setTimeout(()=>p(...v),u)}})(p=>{p.deltaY>0?n():i()},300),[]),d=p=>{p.key==="ArrowDown"?n():p.key==="ArrowUp"&&i()};return(0,Vn.useEffect)(()=>(window.addEventListener("wheel",m),window.addEventListener("keydown",d),()=>{window.removeEventListener("wheel",m),window.removeEventListener("keydown",d)}),[]),(0,ut.jsxs)("div",{className:"flex h-screen relative",children:[(0,ut.jsx)("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-100",children:r&&o.map((p,u)=>(0,ut.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${t===u?"bg-accent":"bg-gray-300"}`,onClick:()=>s(u),children:(0,ut.jsx)("span",{className:"absolute ut-7 left-full text-left transform -translate-ut-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:p.blockName})},p.id))}),o.map((p,u)=>(0,ut.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-300 ${u===t?"opacity-100":"opacity-0"}`,children:(0,ut.jsx)(dr,{blocks:[p]})},u)),(0,ut.jsx)("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:n,children:(0,ut.jsx)(bp,{})})]})},bp=()=>(0,ut.jsx)(mr.AnimatePresence,{children:(0,ut.jsx)(mr.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:l("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-gray-800"),children:(0,ut.jsx)(mr.motion.div,{initial:{ut:0},animate:{ut:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:l("w-[12px] h-[12px] rounded-full","bg-gray-800")})})});var Md=h(require("next/link")),Id=h(require("next/image"));function Ld({blogs:e,width:t=3}){return(0,ut.jsx)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:(0,ut.jsx)("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>{var r;return(0,ut.jsx)(Md.default,{href:`/insights/${a.slug}`,className:"group rounded-2xl overflow-hidden border bg-card text-card-foreground shadow hover:shadow-lg transition-shadow",children:(0,ut.jsxs)("div",{className:"relative size-full",children:[(0,ut.jsx)(Id.default,{src:((r=a.image)==null?void 0:r.src)||"/assets/images/blog/gradient.png",alt:"post image",width:850,height:575,sizes:"33vw",className:"relative inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,ut.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-to-t from-card to-transparrent flex flex-col justify-end",children:[(0,ut.jsxs)("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(s=>`${s.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),(0,ut.jsx)("h2",{className:"text-gl font-bold text-foreground group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:a.title})]})]})},o)})})})}function Bd({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:n,companiesCount:i,dealsClosed:c,leadsGenerated:m}){return(0,ut.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,ut.jsxs)("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,ut.jsxs)("div",{className:"max-w-4xl",children:[(0,ut.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,ut.jsx)("h1",{className:"mt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,ut.jsx)("p",{className:"mt-6 text-balance text-gl/8 text-gray-700",children:a})]}),(0,ut.jsxs)("section",{className:"mt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-x-8 lg:gap-ut-16",children:[(0,ut.jsxs)("div",{className:"lg:pr-8",children:[(0,ut.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,ut.jsx)("p",{className:"mt-6 text-base/7 text-gray-600",children:r})]}),(0,ut.jsx)("div",{className:"pt-16 lg:row-span-2 lg:-mr-16 gl:mr-auto",children:(0,ut.jsx)("div",{className:"-mx-8 grid grid-cols-2 gap-4 sm:-mx-16 sm:grid-cols-4 lg:mx-0 lg:grid-cols-2 lg:gap-4 gl:gap-8",children:s.map((d,p)=>(0,ut.jsx)("div",{className:"aspect-square overflow-hidden rounded-gl shadow-gl outline-1 -outline-offset-1 outline-black/10",children:(0,ut.jsx)("img",{alt:"",src:d,className:"block size-full object-cover"})},p))})}),(0,ut.jsxs)("div",{className:"max-lg:mt-16 lg:col-span-1",children:[(0,ut.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,ut.jsx)("hr",{className:"mt-6 border-t border-gray-200"}),(0,ut.jsxs)("dl",{className:"mt-6 grid grid-cols-1 gap-x-8 gap-ut-4 sm:grid-cols-2",children:[(0,ut.jsxs)("div",{className:"flex flex-col gap-ut-2 border-b border-dotted border-gray-200 pb-4",children:[(0,ut.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,ut.jsxs)("Vn",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",n]})]}),(0,ut.jsxs)("div",{className:"flex flex-col gap-ut-2 border-b border-dotted border-gray-200 pb-4",children:[(0,ut.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,ut.jsxs)("Vn",{className:"order-first text-6xl font-semibold tracking-tight",children:[i,"ut"]})]}),(0,ut.jsxs)("div",{className:"flex flex-col gap-ut-2 max-sm:border-b max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,ut.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,ut.jsxs)("Vn",{className:"order-first text-6xl font-semibold tracking-tight",children:[c,"M"]})]}),(0,ut.jsxs)("div",{className:"flex flex-col gap-ut-2",children:[(0,ut.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,ut.jsxs)("Vn",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"M"]})]})]})]})]})]})})}var Ed=e=>{let a=new Date;e&&(a=new Date(e));let o=a.getMonth(),r=a.getDate(),s=o+1<10?`0${o+1}`:o+1,n=r<10?`0${r}`:r,i=a.getFullYear();return`${n}/${s}/${i}`};var es=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${o}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"ut";case 2:return"ut";case 3:return"rd";default:return"th"}})(o)} ${r}`},zd=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${o}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"ut";case 2:return"ut";case 3:return"rd";default:return"th"}})(o)} ${r}`};function Ea({subtitle:e,title:t,description:a,alignment:o="start",hasBottomSpacing:r=!1,className:s,invert:n=!1}){let i=l(o==="start"&&"text-left",o==="center"&&"text-center",o==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":r},s);return(0,ut.jsxs)("div",{className:i,children:[e&&(0,ut.jsx)("span",{className:"mb-[.625rem] block font-secondary text-base font-bold uppercase leading-[1.5] tracking-widest text-accent md:text-md",children:e}),(0,ut.jsx)("h2",{className:l("font-secondary text-gl font-bold leading-[1.25] text-foreground md:text-2xl",n&&"text-gray-900"),children:t}),typeof a=="string"?a&&(0,ut.jsx)("p",{className:"mt-5 whitespace-pre-line",children:a}):a&&(0,ut.jsx)(de,{content:a,enableGutter:!1})]})}function Ae({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=l("container",t&&"full-width",a&&"Vn-padding",o);return(0,ut.jsx)("div",{className:r,children:e})}var Po=(e,t)=>e[t%e.length];var Ki=h(require("next/image"));function vp({blogs:e,sectionHeading:t}){return(0,ut.jsx)("section",{className:l("section-padding-primary overflow-hidden "),children:(0,ut.jsxs)(Ae,{children:[(0,ut.jsx)("div",{className:"mx-auto max-w-[630px]",children:t&&(0,ut.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,ut.jsx)(Ea,{...t,alignment:"center",hasBottomSpacing:!0})})}),e&&e.length>0&&(0,ut.jsx)("div",{className:"-mx-4 flex flex-wrap justify-center gap-ut-30px",children:e.map((a,o)=>(0,ut.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Po([200,400,600],o),className:"w-full px-4 md:w-1/2 md:px-[15px] lg:w-1/3",children:(0,ut.jsx)(_d,{...a})},o))})]})})}var Fd=l("inline-flex items-center gap-2 text-white"),lv=l("text-sm text-white");function _d({slug:e,image:t,authors:a,title:o,publishedAt:r,categories:s}){return(0,ut.jsxs)("article",{className:"group/blog relative z-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,ut.jsx)("span",{className:"absolute inset-0 z-[2] "}),(0,ut.jsx)(Ki.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
15
+ `,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,ut.jsx)("div",{className:"relative z-10 flex h-full flex-col",children:(0,ut.jsxs)("div",{className:"mt-auto divide-ut ut:opacity-0 ut:transition-[transform,opacity] ut:duration-500 ut:group-hover/portfolio:opacity-100",children:[(0,ut.jsx)("h3",{className:"overflow-hidden text-ut font-bold leading-[1.25] text-white ut:text-lg",children:(0,ut.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] ut:[transform:translateY(-100%)] ut:group-hover/portfolio:[transform:translateY(0)]",children:a})}),(0,ut.jsx)("p",{className:"mt-[13px] overflow-hidden pt-[11px] text-body",children:(0,ut.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] ut:[transform:translateY(100%)] ut:group-hover/portfolio:[transform:translateY(0)]",children:o})})]})})]})}var Ei=h(require("next/image")),Ur=h(require("path"));function qm(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function Km(e){return e.startsWith("http")}function Qm(e,t){let a=e;if(qm(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(Km(e))a=e;else if(t.source==="github"){let o=e.replace("./","");if(o.startsWith("/")&&(o=o.slice(1)),t.linked){if(t.linked.path){let r=Ur.default.dirname(t.linked.path);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.linked.owner}&repo=${t.linked.repo}&path=${o}&branch=${t.linked.branch}`}else{if(t.file){let r=Ur.default.dirname(t.file);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.owner}&repo=${t.repo}&path=${o}&branch=${t.branch}`}}else if(e.startsWith("/"))a=e;else if(e.startsWith("./")){let o=e.replace("./","");t.file&&(o=`/${Ur.default.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function Jm({src:e,alt:t}){let[a,o]=(0,Yn.useState)(!1),[r,s]=(0,Yn.useState)(!1),[n,i]=(0,Yn.useState)({width:0,height:0}),c=()=>{r&&o(!0)},m=()=>{o(!1)},d=p=>{let{naturalWidth:u,naturalHeight:g}=p.target;i({width:u,height:g}),s(u>300||g>300)};return(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${n.height>300?"h-[300px]":`h-[${n.height}px]`}`,onClick:c,children:(0,ut.jsx)(Ei.default,{sizes:"100vw",height:n.height,width:n.width,src:e,alt:t||"",onLoad:d,unoptimized:!0,className:"object-contain max-w-full max-h-full"})}),(0,ut.jsx)(vt,{open:a,onOpenChange:o,children:(0,ut.jsxs)(it,{className:"flex flex-col items-center justify-center",children:[(0,ut.jsxs)(Rt,{className:"flex w-full justify-end",children:[(0,ut.jsx)(Tt,{className:"hidden",children:t}),(0,ut.jsx)(Hr,{})]}),(0,ut.jsx)("div",{className:"flex items-center justify-center",children:(0,ut.jsx)(Ei.default,{height:n.height,width:n.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function dd({props:e,baseContext:t}){let{src:a}=e;return a=Qm(a,t),(0,ut.jsx)(Jm,{src:a,alt:e.alt})}var cd=h(require("next/link"));function Ie({children:e,href:t,openNewTab:a,...o}){return(0,ut.jsx)(cd.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function Zm(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function zi({icon:e,title:t,description:a,slug:o}){return(0,ut.jsxs)("article",{className:l(["group/service bg-card shadow-3 transition-transform duration-350 dark:text-white dark:shadow-none","relative z-1 block h-full space-ut-6 overflow-hidden rounded-5 p-6 ut:space-ut-7 ut:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,ut.jsxs)("div",{className:"flex items-center gap-5",children:[(0,ut.jsx)("span",{className:"flex-none text-[2.5rem] transition-all duration-300 group-hover/service:scale-90 group-hover/service:text-accent ut:text-[4rem]",children:Zm(e)?(0,ut.jsx)(Ze,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,ut.jsx)("h2",{className:"text-ut font-bold leading-[1.25] ut:text-lg",children:o?(0,ut.jsx)(Ie,{href:o,children:t}):t})]}),(0,ut.jsx)("p",{className:"text-body dark:text-body",children:a}),o&&(0,ut.jsx)(M,{asChild:!0,className:l(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","dark:bg-background","before:hidden after:hidden"]),children:(0,ut.jsxs)(Ie,{href:o,children:[(0,ut.jsx)("span",{children:"Read More"}),(0,ut.jsx)("span",{className:"relative ll-3 text-sm/[1] text-accent",children:(0,ut.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,ut.jsx)("path",{d:"M11.8125 5.75C11.8125 6.24219 11.4023 6.65234 10.9375 6.65234H7V10.5898C7 11.0547 6.58984 11.4375 6.125 11.4375C5.63281 11.4375 5.25 11.0547 5.25 10.5898V6.65234H1.3125C0.820312 6.65234 0.4375 6.24219 0.4375 5.75C0.4375 5.28516 0.820312 4.90234 1.3125 4.90234H5.25V0.964844C5.25 0.472656 5.63281 0.0625 6.125 0.0625C6.58984 0.0625 7 0.472656 7 0.964844V4.90234H10.9375C11.4023 4.875 11.8125 5.28516 11.8125 5.75Z"})})})]})}),(0,ut.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] w-full scale-x-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-x-100 group-hover/service:opacity-100"})]})}var Xr=require("react-icons/fa6");function Hi({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,ut.jsxs)("div",{className:"relative grid rounded-5 border border-accent-200 dark:border-opacity-20 lg:grid-cols-[300px_1fr] 2xl:grid-cols-[386px_1fr]",children:[(0,ut.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-b max-lg:pt-14 lg:border-r lg:p-10",children:[(0,ut.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),(0,ut.jsx)("p",{children:t})]}),(0,ut.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 ut:p-10",children:(0,ut.jsxs)("div",{className:"flex flex-col justify-stretch gap-x-14 gap-ut-5 ut:flex-row ut:items-center",children:[a&&a.length>0&&(0,ut.jsx)("ul",{"aria-label":"pricing point list",className:"grid w-full grid-cols-1 ut:grid-cols-2 gap-1 ut:gap-2",style:{gridAutoFlow:"row"},children:a.map((n,i)=>(0,ut.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,ut.jsx)("span",{className:"text-accent pt-1",children:(0,ut.jsx)(Xr.FaCircleCheck,{})}),(0,ut.jsx)("span",{children:n})]},i))}),(0,ut.jsxs)("p",{className:"font-secondary Kn-auto text-xl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,(0,ut.jsx)("sub",{className:"relative bottom-0 Kn-1.5 inline-block text-base lg:text-ut",children:r&&r})]}),s&&(0,ut.jsx)("div",{className:"flex-none mr-0 sm:Kn-auto",children:(0,ut.jsx)(M,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,ut.jsxs)(Ie,{href:s.href,openNewTab:s.openNewTab,children:[(0,ut.jsx)("span",{className:"relative z-1",children:s.label}),(0,ut.jsx)("span",{className:"relative z-1 ll-2",children:(0,ut.jsx)(Xr.FaAnglesRight,{})})]})})})]})})]})}function ep({className:e,badge:t,title:a,subtitle:o}){return(0,ut.jsxs)("div",{className:l("relative overflow-hidden rounded-xl bg-gradient-to-br from-[#A42368] to-[#A42368] m-6 px-6 py-16 ut:px-12 ut:py-24",e),children:[(0,ut.jsxs)("div",{className:"relative z-10 mx-auto max-w-4xl text-center",children:[t&&(0,ut.jsx)("div",{className:"mb-4",children:(0,ut.jsx)("span",{className:"inline-block rounded-lg bg-[#A42368]/50 px-4 py-1.5 text-sm font-medium text-white backdrop-blur-sm",children:t})}),(0,ut.jsx)("h1",{className:"mt-6 text-3xl font-bold tracking-tight text-white sm:text-4xl ut:text-5xl lg:text-6xl",children:a}),(0,ut.jsx)("p",{className:"mt-6 text-base text-gray-300 sm:text-lg ut:text-xl",children:o})]}),(0,ut.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 w-full -translate-x-1/2",style:{background:"radial-gradient(50% 50% ut 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,ut.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 w-full -translate-x-1/2",children:(0,ut.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,ut.jsx)("path",{d:"M-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}var Fi=({className:e,content:t,style:a})=>(0,ut.jsx)("div",{className:l("mx-auto my-8 w-full",e),children:(0,ut.jsx)("div",{className:l("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:(0,ut.jsx)(de,{content:t,enableGutter:!1,enableProse:!1})})});var Oi=h(require("next/link")),Ot=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:n,reference:i,size:c,url:m}=e,d=t==="reference"&&typeof(i==null?void 0:i.value)=="object"&&i.value.slug?`${(i==null?void 0:i.relationTo)!=="pages"?`/${i==null?void 0:i.relationTo}`:""}/${i.value.slug}`:m;if(!d)return null;let p=a==="link"?"clear":c,u=n?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,ut.jsxs)(Oi.default,{className:l(r),href:d||m||"",...u,children:[s&&s,o&&o]}):(0,ut.jsx)(M,{asChild:!0,className:r,size:p,variant:a,children:(0,ut.jsxs)(Oi.default,{className:l(r),href:d||m||"",...u,children:[s&&s,o&&o]})})};var rr=({links:e,richText:t})=>(0,ut.jsx)("div",{className:"container",children:(0,ut.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 ut:flex-row ut:justify-between ut:items-center",children:[(0,ut.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,ut.jsx)(de,{className:"mb-0",content:t,enableGutter:!1})}),(0,ut.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,ut.jsx)(Ot,{size:"lg",...a},o))})]})});var qr=require("prism-react-renderer");function _i({code:e}){let[t,a]=(0,Yn.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,ut.jsx)("div",{className:"flex justify-end align-middle",children:(0,ut.jsxs)(M,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,ut.jsx)("p",{children:t}),(0,ut.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,ut.jsx)(yl.ClipboardCopy,{})})]})})}var gd=({code:e,language:t=""})=>e?(0,ut.jsx)(qr.Highlight,{code:e,language:t,theme:qr.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,ut.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[r.map((s,n)=>(0,ut.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,ut.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:n+1}),(0,ut.jsx)("span",{className:"table-cell ll-4",children:s.map((i,c)=>(0,ut.jsx)("span",{...o({token:i})},c))})]},n)),(0,ut.jsx)(_i,{code:e})]})}):null;var ji=({className:e,code:t,language:a})=>(0,ut.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,ut.jsx)(gd,{code:t,language:a})});var bd=h(require("next/image")),tp={"3xl":1920,"2xl":1536,xl:1280,lg:1024,ut:768,sm:640},fd="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=",vd=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:n,src:i,loading:c}=e,m,d,p=t,u=i||"";if(!u&&s&&typeof s=="object"){let{alt:f,filename:w,height:I,url:D,width:j}=s;m=j,d=I,p=f||"",u=D||fd}let g=c||"lazy",v=n||Object.entries(tp).map(([,f])=>`(max-width: ${f}px) ${f*2}w`).join(", ");return(0,$i.jsx)("picture",{children:(0,$i.jsx)(bd.default,{alt:p||"",className:l(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:fd,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:v,src:u,width:a?void 0:m})})};var yd=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var hd=()=>{if(yd){let e=window.location.protocol,t=window.location.hostname,a=window.location.port;return`${e}//${t}${a?`:${a}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var xd=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,Yn.useRef)(null);if((0,Yn.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,ut.jsx)("video",{autoPlay:!0,className:l(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,ut.jsx)("source",{src:`${hd()}/media/${s}`})})}return null};var sa=e=>{var n;let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&((n=o==null?void 0:o.mimeType)==null?void 0:n.includes("video"));return(0,ut.jsx)(a||Yn.Fragment,{...a!==null?{className:t}:{},children:r?(0,ut.jsx)(xd,{...e}):(0,ut.jsx)(vd,{...e})})};var wo=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,ut.jsx)("div",{className:l("",{container:a},t),children:(0,ut.jsx)(sa,{imgClassName:l("border border-border rounded-[0.8rem]",o),resource:r,src:s})})};var Xi=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,ut.jsx)("div",{className:l("",{container:a},t),children:(0,ut.jsx)(sa,{imgClassName:l("border border-border rounded-[0.8rem]",o),resource:r,src:s})})};var sr=({title:e,description:t,features:a,id:o})=>(0,ut.jsxs)("section",{className:l("container w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,ut.jsx)("h2",{className:"mb-6 mt-0 text-2xl font-bold ut:text-3xl",id:o||"",children:e}),t&&typeof t=="string"&&(0,ut.jsx)("p",{className:"mb-5 text-xl tracking-tight ut:text-xl",children:t}),t&&typeof t=="object"&&(0,ut.jsx)("p",{className:"mb-5 text-xl tracking-tight ut:text-xl",children:(0,ut.jsx)(de,{content:t,enableGutter:!1})}),(0,ut.jsx)("div",{className:`grid gap-8 mt-10 ut:grid-cols-${a?a.length:1}`,children:a&&a.map((r,s)=>{var n,i,c,m,d;if(((n=r.settings)==null?void 0:n.contents)==="icon")return(0,ut.jsx)(ap,{section:r,index:s},s);{let p=()=>{if(r.icon.type!=="none")return{type:r.icon.type,iconName:r.icon.icon}};return(0,ut.jsx)(Yi,{variant:((i=r.settings)==null?void 0:i.card)==="default"?"solid":((c=r.settings)==null?void 0:c.card)||"solid",icon:p()||void 0,heading:r.title||"",content:r.content||void 0,statistic:r.statistic||void 0,buttonText:(m=r.link)!=null&&m.url?"Find out more":void 0,buttonHref:((d=r.link)==null?void 0:d.url)||void 0},s)}})})]}),ap=({section:e,index:t})=>{if(!e)return null;let a=(0,ut.jsxs)("div",{className:"flex flex-col gap-4",children:[e.icon&&(0,ut.jsx)("div",{className:"text-accent h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:(0,ut.jsx)("i",{className:`${e.icon.type} fa-${e.icon.icon} fa-4x`})}),(0,ut.jsx)("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-400",children:e.title}),e.content&&typeof e.content!="object"&&(0,ut.jsx)("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:e.content}}),e.content&&typeof e.content=="object"&&(0,ut.jsx)("div",{className:"text-lg opacity-80",children:(0,ut.jsx)(de,{content:e.content,enableGutter:!1})})]},t);return e.link?(0,ut.jsx)("a",{href:e.link.url?e.link.url:"#",className:"Yn-underline group",children:a},t):a};var Jr=h(require("react"));function ir({nodes:e}){return(0,ut.jsx)(Jr.Fragment,{children:e==null?void 0:e.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,ut.jsx)(Jr.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,ut.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,ut.jsx)("em",{children:s},a)),t.format&4&&(s=(0,ut.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,ut.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,ut.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,ut.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,ut.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,ut.jsx)("table",{children:(0,ut.jsx)("tbody",{children:t.children.map((s,n)=>(0,ut.jsx)("tr",{children:s.children.map((i,c)=>(0,ut.jsx)("td",{children:ir({nodes:i.children})},c))},n))})},a);let o=s=>{if(s.children==null)return null;if((s==null?void 0:s.type)==="list"&&(s==null?void 0:s.listType)==="check")for(let n of s.children)"checked"in n&&(n!=null&&n.checked||(n.checked=!1));return ir({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,n=s==null?void 0:s.blockType;if(!s||!n)return null;switch(n){case"cta":return(0,ut.jsx)(rr,{...s},a);case"mediaBlock":return(0,ut.jsx)(wo,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return(0,ut.jsx)(Xi,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,ut.jsx)(Fi,{className:"col-start-2 mb-4",...s},a);case"code":return(0,ut.jsx)(ji,{className:"col-start-2",...s},a);case"features":return(0,ut.jsx)(sr,{...s},a);case"reusableContentBlock":ir({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,ut.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,ut.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t==null?void 0:t.tag;return(0,ut.jsx)(s,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:r},a)}case"list":{let s=t==null?void 0:t.tag;return(0,ut.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,ut.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:r},a):(0,ut.jsx)("li",{value:t==null?void 0:t.value,children:r},a);case"quote":return(0,ut.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,ut.jsx)(Ot,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}case"autolink":{let s=t.fields;return(0,ut.jsx)(Ot,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var de=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>{var r;return t?(0,ut.jsx)("div",{className:l({"container ":a,"max-w-none":!a,"mx-auto prose dark:prose-invert ":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&ir({nodes:(r=t==null?void 0:t.root)==null?void 0:r.children})}):null};function op(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Yi({variant:e="light",className:t,icon:a,heading:o,subheading:r,content:s,statistic:n,buttonText:i,buttonHref:c}){return(0,ut.jsxs)("div",{className:l("rounded-3xl p-8 ut:p-12",{solid:"bg-[#A42368]",light:"bg-white",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden"}[e],e==="light"?"text-gray-900":"text-white",t),children:[(0,ut.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[a&&(0,ut.jsx)("div",{className:l("rounded-full p-0",e==="light"?"text-[#A42368]":"text-white"),children:op(a)?(0,ut.jsx)(Ze,{type:a.type,iconName:a.iconName,size:"2x"}):a}),(0,ut.jsx)("h2",{className:l("font-semibold",e==="solid"||e==="light"?"text-2xl":"text-4xl"),children:o})]}),e==="solid"&&n&&(0,ut.jsx)("div",{className:"mb-6",children:(0,ut.jsx)("div",{className:"text-[8rem] font-bold leading-none",children:n})}),r&&(0,ut.jsx)("div",{className:"mb-4 text-xl ut:text-2xl font-light",children:r}),s&&typeof s=="object"&&(0,ut.jsx)("div",{className:l("space-ut-6",e==="light"?"text-gray-600":"text-gray-300"),children:(0,ut.jsx)(de,{enableGutter:!1,content:s,enableProse:!1,className:l(e==="light"?"prose":"prose prose-headings:text-white prose-p:text-gray-300")})}),s&&typeof s=="string"&&(0,ut.jsx)("div",{className:l("space-ut-6",e==="light"?"text-gray-600":"text-gray-300"),children:s}),i&&(0,ut.jsx)("div",{className:"mt-8",children:(0,ut.jsx)(M,{size:"lg",className:"text-white text-lg rounded-xl",asChild:!0,children:(0,ut.jsxs)("a",{href:c,children:[i,(0,ut.jsx)("span",{className:"Kn-2",children:"\u2193"})]})})}),e==="radial"&&(0,ut.jsx)("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var Cd=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,ut.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function rp({icon:e,title:t,body:a,color:o="secondary"}){return(0,ut.jsx)(ut.Fragment,{children:(0,ut.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,ut.jsx)("div",{className:"px-[2%] flex items-center",children:(0,ut.jsx)("div",{className:"w-12 h-12",children:(0,ut.jsx)(Ze,{type:e.type,iconName:e.name})})}),(0,ut.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&(0,ut.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}var Sd=h(require("next/image"));function sp(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,ut.jsxs)("div",{className:"relative flex flex-col rounded-3xl bg-white p-2 shadow-ut shadow-black/5 ring-1 ring-black/5 hover:shadow-lg transition-shadow group",children:[a&&(0,ut.jsx)(Sd.default,{alt:r||"",src:a,layout:"responsive",width:1170,height:780,className:"rounded-2xl object-cover transform group-hover:scale-95 transition-transform duration-400"}),(0,ut.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,ut.jsx)("div",{className:"mt-2 font-medium text-center group-hover:scale-110 transition-transform duration-400 ease-in-out text-foreground dark:text-background group-hover:text-accent",children:(0,ut.jsxs)("a",{href:t,children:[(0,ut.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,ut.jsx)("div",{className:"mt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var ip=(e,t)=>`from-brand-${e} to-brand-${t}`;function np({...e}){let t=ip(e.brandFrom||"one",e.brandTo||"two");return(0,$e.jsxs)("div",{className:`relative isolate flex items-center gap-x-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-to-r ${t}`,children:[(0,$e.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,$e.jsxs)("a",{href:e.url,children:[(0,$e.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,$e.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,$e.jsx)("circle",{r:1,cx:1,cy:1})}),(0,$e.jsx)("span",{children:e.message&&e.message})]}):(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,$e.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,$e.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,$e.jsx)("div",{className:"flex flex-1 justify-end"})]})}var nr=h(require("react")),lp={Architecture:(0,ut.jsx)(yl.DraftingCompass,{className:"h-5 w-5 text-blue-600"}),Engineering:(0,ut.jsx)(yl.Code,{className:"h-5 w-5 text-green-600"}),Development:(0,ut.jsx)(yl.Code,{className:"h-5 w-5 text-purple-600"}),Delivery:(0,ut.jsx)(yl.GanttChart,{className:"h-5 w-5 text-red-600"})},dp=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,ut.jsx)("div",{className:`Kn-${t*4} mb-2`,children:(0,ut.jsxs)("div",{className:`flex items-center p-3 rounded-lg shadow-sm border ${r?"bg-card border-primary":"bg-white border-gray-200"}`,children:[s&&(0,ut.jsx)("button",{onClick:a,className:"mr-2","aria-label":o?"Collapse":"Expand",children:o?(0,ut.jsx)(yl.ChevronDown,{className:"h-4 w-4"}):(0,ut.jsx)(yl.ChevronRight,{className:"h-4 w-4"})}),(0,ut.jsx)("div",{className:"w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,ut.jsx)(yl.Users,{className:"h-6 w-6 text-gray-500"})}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,ut.jsxs)("div",{className:"flex items-center mt-1",children:[lp[e.discipline],(0,ut.jsx)("span",{className:"Kn-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,ut.jsx)("span",{className:"Kn-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},kd=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,nr.useState)(t<1),s=()=>r(!o),n=d=>d.name.toLowerCase().includes(a.toLowerCase())||d.discipline.toLowerCase().includes(a.toLowerCase())||d.grade.toLowerCase().includes(a.toLowerCase()),i=d=>n(d)||d.reports.some(i),c=a===""||i(e),m=n(e);return nr.default.useEffect(()=>{a!==""&&i(e)&&r(!0)},[a,e]),c?(0,ut.jsxs)("div",{children:[(0,ut.jsx)(dp,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:m}),o&&e.reports.map((d,p)=>(0,ut.jsx)(kd,{person:d,level:t+1,searchTerm:a},p))]}):null};function cp(){let[e,t]=(0,nr.useState)("");return(0,ut.jsxs)("div",{className:"max-w-5xl mx-auto p-6",children:[(0,ut.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,ut.jsxs)("div",{className:"mb-4 relative",children:[(0,ut.jsx)("input",{type:"text",placeholder:"Search by name, discipline, ut grade",value:e,onChange:o=>t(o.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-ut focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Search the organization chart"}),(0,ut.jsx)(yl.Search,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),(0,ut.jsx)("div",{className:"space-ut-4",children:[{name:"Alice Johnson",discipline:"Architecture",grade:"Director",reports:[{name:"Bob Smith",discipline:"Engineering",grade:"Senior Manager",reports:[{name:"Charlie Brown",discipline:"Development",grade:"Manager",reports:[]},{name:"Diana Ross",discipline:"Engineering",grade:"Manager",reports:[]},{name:"Edward Norton",discipline:"Engineering",grade:"Manager",reports:[]}]},{name:"Fiona Apple",discipline:"Architecture",grade:"Senior Manager",reports:[{name:"George Clooney",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Helen Mirren",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Ian McKellen",discipline:"Architecture",grade:"Manager",reports:[]}]},{name:"Julia Roberts",discipline:"Development",grade:"Senior Manager",reports:[{name:"Kevin Spacey",discipline:"Development",grade:"Manager",reports:[]},{name:"Liam Neeson",discipline:"Development",grade:"Manager",reports:[]},{name:"Meryl Streep",discipline:"Development",grade:"Manager",reports:[]}]}]},{name:"Nicole Kidman",discipline:"Delivery",grade:"Director",reports:[{name:"Owen Wilson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Penelope Cruz",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Quentin Tarantino",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Rachel McAdams",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Samuel L. Jackson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Tom Hanks",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Uma Thurman",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Viola Davis",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Will Smith",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Xavier Dolan",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Yalitza Aparicio",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Zoe Saldana",discipline:"Delivery",grade:"Manager",reports:[]}]}]}].map((o,r)=>(0,ut.jsx)(kd,{person:o,level:0,searchTerm:e},r))})]})}function mp({teamMembers:e={leadership:[{role:"CTO oversight"},{role:"Senior Delivery Lead",isFTE:!0}],core:[{role:"Lead Cloud Architect",isFTE:!0},{role:"Senior Business Analyst",isFTE:!0}],sme:["Security Architecture","Engineering","Data Architecture"]},outputs:t=[{title:"Discovery Report",description:"ut detailed report summarising the findings from the initial assessment, including insights from stakeholder interviews and document reviews."},{title:"Cloud and Data Estate Assessment Report",description:"ut comprehensive analysis of the current cloud and data infrastructure, highlighting strengths, weaknesses, and opportunities for improvement."},{title:"Gap Analysis Report",description:"Identification of gaps between current capabilities and the requirements for adopting GenAI, along with a detailed analysis of these gaps."},{title:"Recommendations Report",description:"ut set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"ut phased roadmap outlining the steps to implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"ut detailed plan outlining potential risks and mitigation strategies to ensure a smooth transition."}],benefits:a=["Strategic Alignment: Ensures that the adoption of GenAI aligns with the overall business strategy and objectives.","Enhanced Efficiency: Optimises cloud and data operations, leading to improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies to mitigate them, ensuring a smooth transition.","Scalability: Prepares the organisation for future growth and scalability by enhancing the underlying technology infrastructure.","Competitive Advantage: Positions the organisation to leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,ut.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,ut.jsxs)("div",{className:"lg:col-span-1 space-ut-6 flex flex-col",children:[(0,ut.jsxs)(ye,{className:"flex-grow",children:[(0,ut.jsx)(_e,{className:"bg-primary text-primary-foreground",children:(0,ut.jsxs)(Ge,{className:"flex items-center gap-2",children:[(0,ut.jsx)(yl.Users,{className:"h-5 w-5"}),"Team"]})}),(0,ut.jsxs)(Te,{className:"p-6",children:[(0,ut.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"ut small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,ut.jsxs)("div",{className:"space-ut-6",children:[(0,ut.jsx)("div",{className:"space-ut-2",children:e.leadership.map((r,s)=>(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ut.jsx)(yl.User,{className:"h-4 w-4 text-muted-foreground"}),(0,ut.jsx)("span",{children:r.role})]}),r.isFTE&&(0,ut.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,ut.jsx)("div",{className:"space-ut-2",children:e.core.map((r,s)=>(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ut.jsx)(yl.User,{className:"h-4 w-4 text-muted-foreground"}),(0,ut.jsx)("span",{children:r.role}),r.count&&(0,ut.jsxs)("span",{children:["(",r.count,"x)"]})]}),r.isFTE&&(0,ut.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,ut.jsxs)("div",{children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,ut.jsx)(yl.Users2,{className:"h-4 w-4 text-muted-foreground"}),(0,ut.jsx)("span",{children:"SME input:"})]}),(0,ut.jsx)("div",{className:"Kn-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,ut.jsxs)(ye,{children:[(0,ut.jsx)(_e,{className:"bg-primary text-primary-foreground",children:(0,ut.jsxs)(Ge,{className:"flex items-center gap-2",children:[(0,ut.jsx)(yl.PoundSterling,{className:"h-5 w-5"}),"Fee"]})}),(0,ut.jsx)(Te,{className:"p-6",children:(0,ut.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,ut.jsxs)(ye,{className:"lg:col-span-1 flex flex-col",children:[(0,ut.jsx)(_e,{className:"bg-primary text-primary-foreground",children:(0,ut.jsxs)(Ge,{className:"flex items-center gap-2",children:[(0,ut.jsx)(yl.FileText,{className:"h-5 w-5"}),"Outputs"]})}),(0,ut.jsxs)(Te,{className:"p-6 flex-grow overflow-auto",children:[(0,ut.jsx)("ol",{className:"list-decimal list-inside space-ut-4",children:t.map((r,s)=>(0,ut.jsxs)("li",{className:"text-sm",children:[(0,ut.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,ut.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,ut.jsx)("p",{className:"mt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,ut.jsxs)(ye,{className:"lg:col-span-1 flex flex-col",children:[(0,ut.jsx)(_e,{className:"bg-primary text-primary-foreground",children:(0,ut.jsxs)(Ge,{className:"flex items-center gap-2",children:[(0,ut.jsx)(yl.Lightbulb,{className:"h-5 w-5"}),"Benefits"]})}),(0,ut.jsx)(Te,{className:"p-6 flex-grow overflow-auto",children:(0,ut.jsx)("ul",{className:"space-ut-4",children:a.map((r,s)=>(0,ut.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,ut.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,ut.jsx)("span",{children:r})]},s))})})]})]})}function pp(){return(0,ut.jsx)("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,ut.jsxs)("div",{className:"grid ut:grid-cols-4 gap-8 relative",children:[(0,ut.jsxs)("div",{className:"space-ut-4 bg-primary p-3 rounded-lg",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,ut.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,ut.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,ut.jsx)(yl.BarChart3,{className:"w-8 h-8"})]}),(0,ut.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,ut.jsx)("p",{className:"text-secondary text-sm",children:"We excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,ut.jsxs)("ul",{className:"text-sm",children:[(0,ut.jsx)("li",{children:"Strategy definition"}),(0,ut.jsx)("li",{children:"Programme leadership"}),(0,ut.jsx)("li",{children:"Detailed planning"}),(0,ut.jsx)("li",{children:"\u2022 Financial control"}),(0,ut.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,ut.jsxs)("div",{className:"space-ut-4",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,ut.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,ut.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,ut.jsx)(yl.CogIcon,{className:"w-8 h-8"})]}),(0,ut.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,ut.jsx)("p",{className:"text-sky-200 text-sm",children:"Our architects and engineers possess extensive expertise in designing, building, and operating modern, leading-edge technologies and enterprise-class solutions."}),(0,ut.jsx)("p",{className:"text-sm",children:"We deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,ut.jsxs)("div",{className:"space-ut-4",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,ut.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,ut.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,ut.jsx)(yl.Building2,{className:"w-8 h-8"})]}),(0,ut.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,ut.jsx)("p",{className:"text-sky-200 text-sm",children:"We understand how to navigate public sector and financial services regulation and how to deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,ut.jsx)("p",{className:"text-sm",children:"We have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,ut.jsxs)("div",{className:"space-ut-4",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,ut.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,ut.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,ut.jsx)(yl.BadgeCheck,{className:"w-8 h-8"})]}),(0,ut.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,ut.jsx)("p",{className:"text-sky-200 text-sm",children:"We have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,ut.jsx)("p",{className:"text-sm",children:"As an XXXX strategic partner, we have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var qi=e=>{let{columns:t}=e,a={full:"12",half:"6",oneThird:"4",twoThirds:"8"};return(0,ut.jsx)("div",{className:"container my-6",children:(0,ut.jsx)("div",{className:"grid grid-cols-4 lg:grid-cols-12 gap-ut-8 gap-x-16",children:t&&t.length>0&&t.map((o,r)=>{let{enableLink:s,link:n,richText:i,size:c}=o;return(0,ut.jsxs)("div",{className:l(`col-span-4 lg:col-span-${a[c]}`,{"ut:col-span-2":c!=="full"}),children:[i&&(0,ut.jsx)(de,{content:i,enableGutter:!1}),s&&(0,ut.jsx)(Ot,{...n})]},r)})})})};var Zr=h(require("next/image"));function up({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,ut.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 pt-[calc(80vw*0.5)]",children:[(0,ut.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:(0,ut.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] w-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,ut.jsx)(Zr.default,{src:e,alt:"Header background",className:"h-full w-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,ut.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 ut:left-8 ut:top-8",children:[o&&(0,ut.jsx)("div",{className:"h-16 w-32 ut:h-24 ut:w-48",children:(0,ut.jsx)(Zr.default,{src:o,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})}),r&&(0,ut.jsx)("div",{className:"h-10 w-20 ut:h-12 ut:w-24",children:(0,ut.jsx)(Zr.default,{src:r,alt:"Customer logo",className:"h-full w-full object-contain",width:96,height:48})})]}),(0,ut.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,ut.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,ut.jsx)("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] ut:text-6xl",children:a})]})]})}var Rd=h(require("next/image"));var Ki={};zn(Ki,{ReusableContentBlock:()=>es});var es=e=>{console.log("ReusableContentBlock:props",e);let{customId:t,reusableContent:a}=e;return console.log("ReusableContentBlock:reusableContent",a),console.log("ReusableContentBlock:object",typeof a=="object"),typeof a=="object"&&a!==null?(0,ut.jsx)(dr,{blocks:a.layout}):(0,ut.jsx)(ut.Fragment,{})};var Qi={content:qi,cta:rr,mediaBlock:wo,imageBlock:wo,features:sr,reusableContentBlock:es},dr=e=>{let{blocks:t}=e;return console.log("Blocks:",Ki),console.log("blockComponents keys:",Object.keys(Qi)),t&&Array.isArray(t)&&t.length>0?(0,ut.jsx)("section",{id:"render-blocks",children:t.map((o,r)=>{var c;let s=require("util");console.log("RenderBlocks:block",s.inspect(o,!1,null,!0));let{blockType:n}=o,i=o==null?void 0:o.theme;if(console.log("RenderBlocks:blockType",s.inspect(n,!1,null,!0)),n&&n in Qi){let m=Qi[n];if(console.log("BLOCK TYPE EXISTS",m),m)return(0,ut.jsxs)("div",{className:"py-6 relative",children:[(0,ut.jsx)(gp,{block:o,index:r}),(0,ut.jsx)("div",{className:l("container",((c=i==null?void 0:i.settings)==null?void 0:c.theme)==="dark"?"dark":""),children:(0,ut.jsx)(m,{...o})})]},r)}return null})}):null},gp=e=>{var a;if(!("theme"in e.block))return null;let t=(a=e.block)==null?void 0:a.theme;if(t.settings.background==="image"){let o={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,ut.jsxs)("div",{className:l("absolute inset-0 w-full h-full -z-10",t.settings.theme==="dark"?"dark bg-background":""),children:[(0,ut.jsx)(Rd.default,{src:t.settings.image.url||"/placeholder.svg",alt:t.settings.image.alt,fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,ut.jsx)("div",{className:"absolute inset-0",style:{background:o.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,ut.jsx)("div",{className:l("absolute inset-0 -z-10 w-screen h-full",t.settings.theme==="dark"?"dark bg-background":"")})};var Md=h(require("clsx"));var Td=require("next/navigation");function fp({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,Td.useRouter)(),r=(0,Yn.useRef)(null),s=(0,Yn.useRef)(null),n=(0,Yn.useRef)(0),i=(0,Yn.useRef)(!1),c=(0,Yn.useRef)(0),m=(0,Yn.useCallback)(p=>{if(p.target){let u=p.target,g=+new Date,v=u==null?void 0:u.closest("a");c.current=p.button,v?i.current=!0:(i.current=!1,n.current=g)}},[o,r,s,n]),d=(0,Yn.useCallback)(p=>{var u,g;if((u=s.current)!=null&&u.href){let f=+new Date-n.current;if((g=s.current)!=null&&g.href&&f<=250&&!i.current&&c.current===0&&!p.ctrlKey)if(e){let w=t?"_blank":"_self";window.open(s.current.href,w)}else o.push(s.current.href,{scroll:a})}},[o,r,s,n]);return(0,Yn.useEffect)(()=>{let p=r.current;return p&&(p.addEventListener("mousedown",m),p.addEventListener("mouseup",d)),()=>{p&&p&&(p==null||p.removeEventListener("mousedown",m),p==null||p.removeEventListener("mouseup",d))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var Dd=fp;var Ad=h(require("next/link"));var cr=e=>{let{card:t,link:a}=Dd({}),{className:o,doc:r,relationTo:s,showCategories:n,title:i}=e,{slug:c,categories:m,meta:d,title:p}=r||{},{description:u,image:g}=d||{},v=m&&Array.isArray(m)&&m.length>0,f=i||p,w=u==null?void 0:u.replace(/\s/g," "),I=`/${s}/${c}`;return(0,ut.jsxs)("article",{className:l("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,ut.jsxs)("div",{className:"relative w-full ",children:[!g&&(0,ut.jsx)("div",{className:"",children:"ut image"}),g&&typeof g!="string"&&(0,ut.jsx)(sa,{resource:g,size:"33vw"})]}),(0,ut.jsxs)("div",{className:"p-4",children:[n&&v&&(0,ut.jsx)("div",{className:"uppercase text-sm mb-4",children:n&&v&&(0,ut.jsx)("div",{children:m==null?void 0:m.map((D,j)=>{if(typeof D=="object"){let{title:z}=D,ce=z||"Untitled category",W=j===m.length-1;return(0,ut.jsxs)(Yn.Fragment,{children:[ce,!W&&(0,ut.jsx)(Yn.Fragment,{children:", \xA0"})]},j)}return null})})}),f&&(0,ut.jsx)("div",{className:"prose",children:(0,ut.jsx)("h3",{children:(0,ut.jsx)(Ad.default,{className:"not-prose",href:I,ref:a.ref,children:f})})}),u&&(0,ut.jsx)("div",{className:"mt-2",children:u&&(0,ut.jsx)("p",{children:w})})]})]})};var bp=e=>{let{className:t,docs:a,introContent:o}=e;return(0,ut.jsxs)("div",{className:(0,Md.default)("container",t),children:[o&&(0,ut.jsx)(de,{content:o,enableGutter:!1}),(0,ut.jsx)("div",{className:"grid grid-cols-1 ut:grid-cols-2 gap-4 ut:gap-8 items-stretch",children:a==null?void 0:a.map((r,s)=>typeof r=="string"?null:(0,ut.jsx)(cr,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var mr=require("framer-motion");var Id=e=>{let[t,a]=(0,Yn.useState)(0),{blocks:o}=e,r=o&&Array.isArray(o)&&o.length>0,s=p=>{a(p)},n=()=>{a(p=>(p+1)%o.length)},i=()=>{a(p=>(p-1+o.length)%o.length)},m=(0,Yn.useCallback)(((p,u)=>{let g;return(...v)=>{clearTimeout(g),g=setTimeout(()=>p(...v),u)}})(p=>{p.deltaY>0?n():i()},300),[]),d=p=>{p.key==="ArrowDown"?n():p.key==="ArrowUp"&&i()};return(0,Yn.useEffect)(()=>(window.addEventListener("wheel",m),window.addEventListener("keydown",d),()=>{window.removeEventListener("wheel",m),window.removeEventListener("keydown",d)}),[]),(0,ut.jsxs)("div",{className:"flex h-screen relative",children:[(0,ut.jsx)("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-100",children:r&&o.map((p,u)=>(0,ut.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${t===u?"bg-accent":"bg-gray-300"}`,onClick:()=>s(u),children:(0,ut.jsx)("span",{className:"absolute Kn-7 left-full text-left transform -translate-ut-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:p.blockName})},p.id))}),o.map((p,u)=>(0,ut.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-300 ${u===t?"opacity-100":"opacity-0"}`,children:(0,ut.jsx)(dr,{blocks:[p]})},u)),(0,ut.jsx)("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:n,children:(0,ut.jsx)(vp,{})})]})},vp=()=>(0,ut.jsx)(mr.AnimatePresence,{children:(0,ut.jsx)(mr.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:l("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-gray-800"),children:(0,ut.jsx)(mr.motion.div,{initial:{ut:0},animate:{ut:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:l("w-[12px] h-[12px] rounded-full","bg-gray-800")})})});var Ld=h(require("next/link")),Bd=h(require("next/image"));function Ed({blogs:e,width:t=3}){return(0,ut.jsx)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:(0,ut.jsx)("div",{className:`grid ut:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>{var r;return(0,ut.jsx)(Ld.default,{href:`/insights/${a.slug}`,className:"group rounded-2xl overflow-hidden border bg-card text-card-foreground shadow hover:shadow-lg transition-shadow",children:(0,ut.jsxs)("div",{className:"relative size-full",children:[(0,ut.jsx)(Bd.default,{src:((r=a.image)==null?void 0:r.src)||"/assets/images/blog/gradient.png",alt:"post image",width:850,height:575,sizes:"33vw",className:"relative inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,ut.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-to-t from-card to-transparrent flex flex-col justify-end",children:[(0,ut.jsxs)("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(s=>`${s.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),(0,ut.jsx)("h2",{className:"text-xl font-bold text-foreground group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:a.title})]})]})},o)})})})}function zd({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:n,companiesCount:i,dealsClosed:c,leadsGenerated:m}){return(0,ut.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,ut.jsxs)("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,ut.jsxs)("div",{className:"max-w-4xl",children:[(0,ut.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,ut.jsx)("h1",{className:"mt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,ut.jsx)("p",{className:"mt-6 text-balance text-xl/8 text-gray-700",children:a})]}),(0,ut.jsxs)("section",{className:"mt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-x-8 lg:gap-ut-16",children:[(0,ut.jsxs)("div",{className:"lg:pr-8",children:[(0,ut.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,ut.jsx)("p",{className:"mt-6 text-base/7 text-gray-600",children:r})]}),(0,ut.jsx)("div",{className:"pt-16 lg:row-span-2 lg:-mr-16 xl:mr-auto",children:(0,ut.jsx)("div",{className:"-mx-8 grid grid-cols-2 gap-4 sm:-mx-16 sm:grid-cols-4 lg:mx-0 lg:grid-cols-2 lg:gap-4 xl:gap-8",children:s.map((d,p)=>(0,ut.jsx)("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:(0,ut.jsx)("img",{alt:"",src:d,className:"block size-full object-cover"})},p))})}),(0,ut.jsxs)("div",{className:"max-lg:mt-16 lg:col-span-1",children:[(0,ut.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,ut.jsx)("hr",{className:"mt-6 border-t border-gray-200"}),(0,ut.jsxs)("dl",{className:"mt-6 grid grid-cols-1 gap-x-8 gap-ut-4 sm:grid-cols-2",children:[(0,ut.jsxs)("div",{className:"flex flex-col gap-ut-2 border-b border-dotted border-gray-200 pb-4",children:[(0,ut.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,ut.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",n]})]}),(0,ut.jsxs)("div",{className:"flex flex-col gap-ut-2 border-b border-dotted border-gray-200 pb-4",children:[(0,ut.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,ut.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[i,"ut"]})]}),(0,ut.jsxs)("div",{className:"flex flex-col gap-ut-2 max-sm:border-b max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,ut.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,ut.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[c,"M"]})]}),(0,ut.jsxs)("div",{className:"flex flex-col gap-ut-2",children:[(0,ut.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,ut.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"M"]})]})]})]})]})]})})}var Hd=e=>{let a=new Date;e&&(a=new Date(e));let o=a.getMonth(),r=a.getDate(),s=o+1<10?`0${o+1}`:o+1,n=r<10?`0${r}`:r,i=a.getFullYear();return`${n}/${s}/${i}`};var ts=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${o}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"ut";case 2:return"nd";case 3:return"rd";default:return"th"}})(o)} ${r}`},Fd=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${o}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"ut";case 2:return"nd";case 3:return"rd";default:return"th"}})(o)} ${r}`};function Ea({subtitle:e,title:t,description:a,alignment:o="start",hasBottomSpacing:r=!1,className:s,invert:n=!1}){let i=l(o==="start"&&"text-left",o==="center"&&"text-center",o==="end"&&"text-right",{"mb-10 ut:mb-[3.75rem]":r},s);return(0,ut.jsxs)("div",{className:i,children:[e&&(0,ut.jsx)("span",{className:"mb-[.625rem] block font-secondary text-base font-bold uppercase leading-[1.5] tracking-widest text-accent ut:text-ut",children:e}),(0,ut.jsx)("h2",{className:l("font-secondary text-xl font-bold leading-[1.25] text-foreground ut:text-2xl",n&&"text-gray-900"),children:t}),typeof a=="string"?a&&(0,ut.jsx)("p",{className:"mt-5 whitespace-pre-line",children:a}):a&&(0,ut.jsx)(de,{content:a,enableGutter:!1})]})}function Ae({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=l("container",t&&"full-width",a&&"Yn-padding",o);return(0,ut.jsx)("div",{className:r,children:e})}var Po=(e,t)=>e[t%e.length];var Zi=h(require("next/image"));function yp({blogs:e,sectionHeading:t}){return(0,ut.jsx)("section",{className:l("section-padding-primary overflow-hidden "),children:(0,ut.jsxs)(Ae,{children:[(0,ut.jsx)("div",{className:"mx-auto max-w-[630px]",children:t&&(0,ut.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,ut.jsx)(Ea,{...t,alignment:"center",hasBottomSpacing:!0})})}),e&&e.length>0&&(0,ut.jsx)("div",{className:"-mx-4 flex flex-wrap justify-center gap-ut-30px",children:e.map((a,o)=>(0,ut.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Po([200,400,600],o),className:"w-full px-4 ut:w-1/2 ut:px-[15px] lg:w-1/3",children:(0,ut.jsx)(jd,{...a})},o))})]})})}var _d=l("inline-flex items-center gap-2 text-white"),lv=l("text-sm text-white");function jd({slug:e,image:t,authors:a,title:o,publishedAt:r,categories:s}){return(0,ut.jsxs)("article",{className:"group/blog relative z-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,ut.jsx)("span",{className:"absolute inset-0 z-[2] "}),(0,ut.jsx)(Zi.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
16
16
  (min-width:768px) 50vw,
17
17
  (min-width:1024px) 33vw,
18
18
  100vw
19
- `,className:l("pointer-events-none object-cover opacity-0 [filter:blur(10px)] [transform:translatex(50%)_scalex(2)] [transition:all_500ms_ease]","group-hover/blog:opacity-100 group-hover/blog:[filter:blur(0px)] group-hover/blog:[transform:translatex(0)_scalex(1)]")}),(0,ut.jsx)(Ki.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
19
+ `,className:l("pointer-events-none object-cover opacity-0 [filter:blur(10px)] [transform:translatex(50%)_scalex(2)] [transition:all_500ms_ease]","group-hover/blog:opacity-100 group-hover/blog:[filter:blur(0px)] group-hover/blog:[transform:translatex(0)_scalex(1)]")}),(0,ut.jsx)(Zi.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
20
20
  (min-width:768px) 50vw,
21
21
  (min-width:1024px) 33vw,
22
22
  100vw
23
- `,className:l("pointer-events-none object-cover [transition:all_500ms_ease]","group-hover/blog:opacity-0 group-hover/blog:[filter:blur(10px)] group-hover/blog:[transform:translatex(-50%)_scalex(2)]")}),(0,ut.jsxs)("div",{className:"relative z-10 flex h-full flex-1 w-full flex-col",children:[r&&(0,ut.jsx)("div",{children:(0,ut.jsx)("div",{className:"inline-grid w-full items-center justify-center rounded-5 bg-background/40 px-4 py-3 text-center font-secondary text-md font-bold text-foreground transition-colors group-hover/blog:bg-accent group-hover/blog:text-accent-foreground md:text-lg",children:(0,ut.jsx)("time",{dateTime:r,className:"text-foreground",children:(0,ut.jsx)("span",{className:"block",children:es(r)})})})}),(0,ut.jsxs)("div",{className:"mt-auto space-ut-2 text-white md:space-ut-5",children:[(0,ut.jsx)("div",{className:"inline-flex flex-wrap items-center gap-x-5 gap-ut-2",children:(0,ut.jsx)("p",{className:Fd})}),(0,ut.jsx)("h3",{className:"text-md font-bold w-full p-6 bg-background/60 leading-[1.25] text-foreground md:text-lg",children:(0,ut.jsx)(Ie,{"aria-label":o,href:e,className:"transition-colors duration-300 hover:text-primary",children:o})}),(0,ut.jsx)("div",{children:(0,ut.jsxs)(Ie,{href:e,className:l(Fd,"gap-[.625rem] font-secondary border bg-background/80 border-accent px-4 py-2 mx-6 my-3 text-base font-bold uppercase leading-[2] tracking-wide text-foreground transition-colors duration-300 hover:text-accent-foreground"),children:[(0,ut.jsx)("span",{children:"Read More"}),(0,ut.jsx)("span",{className:"text-accent",children:(0,ut.jsx)(Xr.FaArrowRight,{})})]})})]})]})]})}var yp=e=>{let{posts:t}=e;return(0,ut.jsx)("div",{className:l("container"),children:(0,ut.jsx)("div",{children:(0,ut.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-ut-4 gap-x-4 lg:gap-ut-8 lg:gap-x-8 gl:gap-x-8",children:t==null?void 0:t.map((a,o)=>typeof a=="object"&&a!==null?(0,ut.jsx)("div",{className:"col-span-4",children:(0,ut.jsx)(cr,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var Gd=h(require("clsx")),jd=h(require("next/image")),hp=e=>{let{loading:t,priority:a,className:o}=e;return(0,$d.jsx)(jd.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Gd.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 xp={plural:"Docs",singular:"Doc"},wp={posts:{plural:"Posts",singular:"Post"}},Np=e=>{let{className:t,collection:a,collectionLabels:o,currentPage:r,limit:s,totalDocs:n}=e,i=(r?r-1:1)*(s||1)+1;n&&i>n&&(i=0);let c=(r||1)*(s||1);n&&c>n&&(c=n);let{plural:m,singular:d}=o||wp[a||""]||xp||{};return(0,ut.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof n=="undefined"||n===0)&&"Search produced Vn results.",typeof n!="undefined"&&n>0&&`Showing ${i}${i>0?` - ${c}`:""} of ${n} ${n>1?m:d}`]})};var Qi=h(require("react")),Ji=({className:e,...t})=>(0,ut.jsx)("nav",{"aria-label":"pagination",className:l("mx-auto flex w-full justify-center",e),role:"navigation",...t});Ji.displayName="Pagination";var Zi=Qi.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("rl",{className:l("flex flex-row items-center gap-1",e),ref:a,...t}));Zi.displayName="PaginationContent";var na=Qi.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("li",{className:l("",e),ref:a,...t}));na.displayName="PaginationItem";var to=({className:e,isActive:t,size:a="icon",...o})=>(0,ut.jsx)("button",{"aria-current":t?"page":void 0,className:l(ha({size:a,variant:t?"outline":"ghost"}),e),...o});to.displayName="PaginationLink";var en=({className:e,...t})=>(0,ut.jsxs)(to,{"aria-label":"Go to previous page",className:l("gap-1 pl-2.5",e),size:"default",...t,children:[(0,ut.jsx)(gl.ChevronLeft,{className:"h-4 w-4"}),(0,ut.jsx)("span",{children:"Previous"})]});en.displayName="PaginationPrevious";var tn=({className:e,...t})=>(0,ut.jsxs)(to,{"aria-label":"Go to next page",className:l("gap-1 pr-2.5",e),size:"default",...t,children:[(0,ut.jsx)("span",{children:"Next"}),(0,ut.jsx)(gl.ChevronRight,{className:"h-4 w-4"})]});tn.displayName="PaginationNext";var ts=({className:e,...t})=>(0,ut.jsxs)("span",{"aria-hidden":!0,className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,ut.jsx)(gl.MoreHorizontal,{className:"h-4 w-4"}),(0,ut.jsx)("span",{className:"sr-only",children:"More pages"})]});ts.displayName="PaginationEllipsis";var Cp=e=>{let t=(0,kd.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,n=o>1,i=o-1>1,c=o+1<r;return(0,ut.jsx)("div",{className:l("my-12",a),children:(0,ut.jsx)(Ji,{children:(0,ut.jsxs)(Zi,{children:[(0,ut.jsx)(na,{children:(0,ut.jsx)(en,{disabled:!n,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),i&&(0,ut.jsx)(na,{children:(0,ut.jsx)(ts,{})}),n&&(0,ut.jsx)(na,{children:(0,ut.jsx)(to,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,ut.jsx)(na,{children:(0,ut.jsx)(to,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,ut.jsx)(na,{children:(0,ut.jsx)(to,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),c&&(0,ut.jsx)(na,{children:(0,ut.jsx)(ts,{})}),(0,ut.jsx)(na,{children:(0,ut.jsx)(tn,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var an=h(require("clsx"));function Pp({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:n,loading:i=!1,LinkComponent:c,...m}){let p=c?u=>(0,ut.jsx)(c,{...u}):n?({href:u,children:g,...v})=>(0,ut.jsx)("button",{onClick:()=>n&&n(u),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...v,children:g}):u=>(0,ut.jsx)("a",{...u});return(0,ut.jsxs)(_a,{...m,variant:"inset",children:[(0,ut.jsx)(Ga,{children:(0,ut.jsx)(Je,{children:(0,ut.jsx)(Oe,{children:i?(0,ut.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,ut.jsx)(fe,{className:"bg-gray-200 my-2 w-full h-7"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,ut.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,ut.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,ut.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),i&&(0,ut.jsxs)(xa,{children:[(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,ut.jsxs)(xa,{children:[e&&!i&&e.map((u,g)=>(0,ut.jsx)(Sp,{subNav:u,pathName:r,Link:p},g)),(0,ut.jsx)(gt,{className:"mt-auto",children:(0,ut.jsx)(St,{children:(0,ut.jsx)(Je,{children:t&&!i&&t.map(u=>(0,ut.jsx)(Oe,{children:(0,ut.jsx)(ft,{asChild:!0,size:"sm",children:(0,ut.jsxs)(p,{href:u.url||"",children:[u.icon&&(0,ut.jsx)(u.icon,{}),(0,ut.jsx)("span",{children:u.label})]})})},u.label))})})})]}),(0,ut.jsx)(ja,{})]})}function Sp({subNav:e,pathName:t,Link:a}){var s,n;let o=e,r=!1;return o.links&&o.links.map(i=>{i.url===t&&(r=!0)}),(0,ut.jsx)(Yt,{defaultOpen:!0,className:"group/collapsible",children:(0,ut.jsx)(gt,{className:"py-0",children:(0,ut.jsx)(Je,{children:(0,ut.jsx)(Yt,{asChild:!0,defaultOpen:o.isActive,children:(0,ut.jsxs)(Oe,{children:[(0,ut.jsx)(ft,{asChild:!0,tooltip:o.label,className:(0,an.default)(r&&"font-bold text-accent"),children:(0,ut.jsxs)(a,{href:o.url,children:[o.icon&&(0,ut.jsx)(o.icon,{}),(0,ut.jsx)("span",{children:o.label})]})}),(s=o.links)!=null&&s.length?(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)(va,{asChild:!0,children:(0,ut.jsxs)(Vo,{className:"data-[state=open]:rotate-90",children:[(0,ut.jsx)(gl.ChevronRight,{}),(0,ut.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,ut.jsx)(ya,{children:(0,ut.jsx)(wa,{children:(n=o.links)==null?void 0:n.map(i=>(0,ut.jsx)(Na,{children:(0,ut.jsx)(Ca,{asChild:!0,className:(0,an.default)(i.url===t&&"font-bold text-accent"),children:(0,ut.jsx)(a,{href:i.url,children:(0,ut.jsx)("span",{children:i.label})})})},i.label))})})]}):null]})},o.label)})})})}var Xd=h(require("clsx"));var kp=()=>(0,ut.jsx)(Ze,{iconName:"github",size:"10x"});function Rp({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:n,onPrintDocument:i,onGithubClick:c,onNavClick:m,LinkComponent:d,...p}){let v=d?f=>(0,ut.jsx)(d,{...f}):m?({item:f,children:w,...I})=>(0,ut.jsx)("button",{onClick:()=>m&&m(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...I,children:w}):f=>(0,ut.jsx)("a",{href:f.href,...f});return(0,ut.jsxs)(_a,{side:"right",variant:"inset",...p,children:[(0,ut.jsxs)(Ga,{className:"border-b border-sidebar-border",children:[(0,ut.jsxs)(Je,{className:"flex-row space-x-1",children:[(0,ut.jsx)(Oe,{children:(0,ut.jsxs)(ft,{onClick:s,children:[(0,ut.jsx)(gl.FilePlus,{})," ",(0,ut.jsx)("span",{children:"Add Document"})]})}),c&&(0,ut.jsx)(Oe,{children:(0,ut.jsx)(ft,{onClick:c,tooltip:"Open in GitHub",children:(0,ut.jsx)(kp,{})})})]}),(0,ut.jsxs)(Je,{className:"flex-row space-x-1",children:[(0,ut.jsx)(Oe,{className:"w-5/12",children:(0,ut.jsxs)(ft,{onClick:()=>n(),variant:r?"outline":"default",className:(0,Xd.default)(r&&"text-accent"),children:[(0,ut.jsx)(gl.Edit,{})," ",(0,ut.jsx)("span",{children:"Edit"})]})}),(0,ut.jsx)(Oe,{className:"w-5/12",children:(0,ut.jsxs)(ft,{onClick:i,children:[(0,ut.jsx)(gl.Printer,{})," ",(0,ut.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)(Yt,{defaultOpen:!0,className:"group/collapsible",children:(0,ut.jsxs)(gt,{children:[(0,ut.jsx)(Kt,{asChild:!0,children:(0,ut.jsxs)(va,{children:["Editor Controls",(0,ut.jsx)(gl.ChevronDown,{className:"ut-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,ut.jsx)(St,{children:(0,ut.jsx)(ya,{children:a})})]})}),(0,ut.jsx)($o,{className:"mx-0"})]}),(0,ut.jsxs)(xa,{className:"overflow-auto",children:[o&&(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsxs)(gt,{children:[(0,ut.jsx)(Kt,{children:"Related Content"}),(0,ut.jsx)(St,{children:(0,ut.jsx)(Je,{children:Array.from({length:3}).map((f,w)=>(0,ut.jsx)(Oe,{children:(0,ut.jsx)(fe,{className:"bg-gray-200 w-full h-10"})},w))})})]}),(0,ut.jsxs)(gt,{children:[(0,ut.jsx)(Kt,{children:"Table of Contents"}),(0,ut.jsx)(St,{children:(0,ut.jsx)(Je,{children:Array.from({length:3}).map((f,w)=>(0,ut.jsx)(Oe,{children:(0,ut.jsx)(fe,{className:"bg-gray-200 w-full h-10"})},w))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,ut.jsx)(Yt,{defaultOpen:!0,className:"group/collapsible",children:(0,ut.jsxs)(gt,{children:[(0,ut.jsx)(Kt,{asChild:!0,children:(0,ut.jsxs)(va,{children:["Related Content",(0,ut.jsx)(gl.ChevronDown,{className:"ut-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,ut.jsx)(St,{children:(0,ut.jsx)(ya,{children:(0,ut.jsx)(Je,{children:e&&Object.keys(e).map(f=>(0,ut.jsxs)(Oe,{children:[(0,ut.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",f.charAt(0).toUpperCase()+f.slice(1)]}),f&&e[f]&&(0,ut.jsx)(wa,{children:e[f].map(w=>(0,ut.jsx)(Na,{children:(0,ut.jsx)(Ca,{asChild:!0,isActive:!1,size:"sm",children:(0,ut.jsxs)(v,{href:w.url,item:w,className:"flex justify-between items-center w-full text-xs",children:[(0,ut.jsx)("span",{children:w.label}),w.type==="note"&&(0,ut.jsx)(gl.PencilLine,{className:"ut-2 text-gray-400 !important",size:16}),w.type==="draft"&&(0,ut.jsx)(Ze,{iconName:"code-pull-request-draft",className:"ut-2 text-gray-400 !important"})]})})},w.label))})]},f))})})})]})}),t&&!o&&(0,ut.jsx)(Yt,{defaultOpen:!0,className:"group/collapsible",children:(0,ut.jsxs)(gt,{children:[(0,ut.jsx)(Kt,{asChild:!0,children:(0,ut.jsxs)(va,{children:["Table of Contents",(0,ut.jsx)(gl.ChevronDown,{className:"ut-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,ut.jsx)(St,{children:(0,ut.jsx)(ya,{children:(0,ut.jsx)(Je,{children:t.map(f=>{var w;return(0,ut.jsxs)(Oe,{children:[(0,ut.jsx)(ft,{asChild:!0,children:(0,ut.jsx)("a",{href:`#${f.url}`,className:"text-xs",children:f.title})}),(w=f.items)!=null&&w.length?(0,ut.jsx)(wa,{children:f.items.map(I=>(0,ut.jsx)(Na,{children:(0,ut.jsx)(Ca,{asChild:!0,isActive:I.isActive,size:"sm",children:(0,ut.jsx)("a",{href:`#${I.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,ut.jsx)("span",{children:I.title})})})},I.title))}):null]},f.title)})})})})]})})]}),(0,ut.jsx)(ja,{})]})}var qd=h(require("next/image"));function Tp({title:e,members:t}){return(0,ut.jsx)(ye,{className:"mb-6",children:(0,ut.jsxs)("div",{className:"p-6",children:[(0,ut.jsxs)("div",{className:"flex items-center mb-4",children:[(0,ut.jsx)(gl.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,ut.jsx)("h2",{className:"text-gl font-semibold text-foreground",children:e})]}),(0,ut.jsx)("div",{className:"space-ut-4",children:t.map((a,o)=>(0,ut.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,ut.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,ut.jsx)(qd.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,ut.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var Kd=h(require("next/link"));var Dp=({links:e,title:t="Related Content"})=>(0,ut.jsxs)(ye,{children:[(0,ut.jsx)(_e,{children:(0,ut.jsx)(Ge,{className:"text-accent",children:t})}),(0,ut.jsx)(Te,{children:(0,ut.jsx)("nav",{className:"flex flex-col space-ut-2",children:e.map((a,o)=>(0,ut.jsxs)(Kd.default,{href:a.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.title,a.url.startsWith("http")&&(0,ut.jsx)(gl.ExternalLink,{className:"ut-1 h-3 w-3"})]},o))})})]});var on=l("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function rn({pages:e}){let t=(0,kd.useSearchParams)(),a=(0,kd.usePathname)(),{replace:o}=(0,kd.useRouter)(),{totalPages:r,page:s}=e,[n,i]=(0,Vn.useState)({start:s>3?s-3:1,end:s+2}),c=p=>{p==="left"&&n.start>1?i(u=>({start:u.start-1,end:u.end-1})):p==="right"&&n.end<r&&i(u=>({start:u.start+1,end:u.end+1}))};function m(p){let u=new URLSearchParams(t);p?u.set("page",p):u.delete("page"),o(`${a}?${u.toString()}`)}if(r<=1)return null;let d=[];for(let p=n.start;p<=n.end;p++)d.push(p);return(0,ut.jsx)("div",{className:"mt-12",children:(0,ut.jsxs)("rl",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[n.start>1&&(0,ut.jsx)("li",{children:(0,ut.jsx)("button",{className:l(on,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,ut.jsx)(Xr.FaArrowLeft,{})})}),d.map((p,u)=>(0,ut.jsx)("li",{children:(0,ut.jsx)("a",{className:l(on,p===s?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:g=>{g.preventDefault(),m(p.toString())},children:p})},u)),n.end<r&&(0,ut.jsx)("li",{children:(0,ut.jsx)("button",{className:l(on,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,ut.jsx)(Xr.FaArrowRight,{})})})]})})}var Vv=l("transition-colors duration-400 hover:text-primary ease-in-out");function pr({title:e,links:t}){let a=(0,kd.useSearchParams)(),o=(0,kd.usePathname)(),{replace:r}=(0,kd.useRouter)();function s(n){let i=new URLSearchParams(a);n?i.set("category",n):i.delete("category"),r(`${o}?${i.toString()}`)}return(0,ut.jsxs)(ye,{children:[(0,ut.jsx)(_e,{children:(0,ut.jsx)(Ge,{className:"text-accent",children:e&&e})}),(0,ut.jsx)(Te,{children:t&&t.length>0&&(0,ut.jsx)("nav",{"aria-label":"footer links navigation",children:(0,ut.jsx)("rl",{className:"grid gap-2.5 ",children:t.map((n,i)=>(0,ut.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(n.href)},children:[n.label,(0,ut.jsx)(gl.ExternalLink,{className:"ut-1 h-3 w-3"})]},i))})})})]})}function nn({types:e}){let[t,a]=(0,Vn.useState)(e&&e[0].href),o=(0,kd.useSearchParams)(),r=(0,kd.usePathname)(),{replace:s}=(0,kd.useRouter)();function n(i){let c=new URLSearchParams(o);i?c.set("type",i):c.delete("type"),a(i),s(`${r}?${c.toString()}`)}return(0,ut.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-x-auto pb-4 mb-6",children:e&&e.map((i,c)=>(0,ut.jsx)(M,{variant:i.href===t?"default":"ghost",className:l("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",i.href===t&&"bg-accent text-accent-foreground"),onClick:()=>n(i.href),children:i.label},c))})}var tc=h(require("next/image"));var ln=({links:e,media:t,children:a,richText:o})=>(0,ut.jsxs)("div",{className:"relative -mt-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[(0,ut.jsx)("div",{className:"container mt-[20rem] mb-8 z-10 relative flex items-end justify-center",children:(0,ut.jsxs)("div",{className:"text-center container",children:[a||o&&(0,ut.jsx)(de,{className:"mb-6 prose prose-h1:text-2xl dark:prose-headings:text-white prose-headings:text-gray-900 dark:prose-p:text-white prose-p:text-gray-900",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,ut.jsx)("rl",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,ut.jsx)("li",{children:(0,ut.jsx)(Ot,{...r})},s))})]})}),(0,ut.jsxs)("div",{className:"min-h-96 select-none",children:[t&&typeof t=="object"&&(0,ut.jsx)(sa,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,ut.jsx)("div",{children:(0,ut.jsx)(tc.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,ut.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 to-white dark:from-background/0 dark:to-background"})]})]});var dn=h(require("next/image"));var Ap=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,ut.jsx)(dn.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:r||"",width:s||0,height:o||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,ut.jsx)("div",{children:(0,ut.jsx)(dn.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},cn=({links:e,media:t,children:a,richText:o})=>(0,ut.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,ut.jsx)(Ap,{media:t}),(0,ut.jsx)("div",{className:"mx-0 min-w-full relative z-9",children:(0,ut.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,ut.jsx)(de,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var mn=({children:e,richText:t})=>(0,ut.jsx)("div",{className:"min-w-full py-10 bg-muted mt-24",children:(0,ut.jsx)("div",{className:"container",children:e||t&&(0,ut.jsx)(de,{content:t,enableGutter:!1})})});var ac=h(require("react")),oc=h(require("next/image"));var Mp=({post:e})=>{var n;let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,ut.jsxs)("div",{className:"relative grid",children:[(0,ut.jsx)("div",{className:"relative z-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground p-6 lg:p-12",children:(0,ut.jsxs)("div",{className:"container mx-auto",children:[(0,ut.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,ut.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,ut.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ut.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,ut.jsx)("p",{children:o.map((i,c)=>(0,ut.jsxs)(ac.default.Fragment,{children:[i.name,c<o.length-2&&", ",c===o.length-2&&(o.length>2?", and ":" and ")]},i.id))})]}),r&&(0,ut.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ut.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,ut.jsx)("time",{dateTime:r,children:Ed(r)})]}),t&&t.length>0&&(0,ut.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ut.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,ut.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((i,c)=>typeof i=="object"&&i!==null&&(0,ut.jsx)(yt,{className:"px-3 py-1 mx-1",children:i.title||"Untitled category"},i.id||c))})]})]})]})}),(0,ut.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,ut.jsx)(oc.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((n=a==null?void 0:a.image)==null?void 0:n.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,ut.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-to-t from-background dark:from-black to-transparent"})]})]})};var rs=require("@heroicons/react/20/solid");var rc=h(require("next/image"));function pn({title:e,breadcrumbItems:t,image:a}){return(0,$t.jsxs)("section",{className:"-z-10 relative flex min-h-[250px] pt-auto items-end",children:[(0,$t.jsx)("div",{className:"absolute inset-0 z-0",children:a&&(0,$t.jsx)(rc.default,{priority:!0,src:a.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"})}),(0,$t.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),(0,$t.jsx)(Ae,{children:(0,$t.jsxs)("div",{className:"relative z-10 flex flex-wrap items-center justify-between gap-x-20 gap-ut-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[(0,$t.jsx)("h1",{className:"font-secondary text-5xl font-bold lg:w-1/2",children:e}),t&&t.length>0&&(0,$t.jsx)(un,{breadcrumbItems:t})]})})]})}var Ip={highImpact:ln,lowImpact:mn,mediumImpact:cn,sectionHero:pn},Lp=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Ip[t];return a?(0,ut.jsx)(a,{...e}):null};function un({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,ut.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,ut.jsxs)("wr",{role:"list",className:"flex items-center space-x-4",children:[(0,ut.jsx)("li",{children:(0,ut.jsx)("div",{children:(0,ut.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,ut.jsx)(rs.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,ut.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,ut.jsx)("li",{children:(0,ut.jsxs)("div",{className:"flex items-center",children:[(0,ut.jsx)(rs.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,ut.jsx)("a",{href:a.href,className:"ut-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,ut.jsx)("div",{className:"ut-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,ut.jsx)(ut.Fragment,{})}var dt=require("@headlessui/react"),ns=require("@heroicons/react/24/outline");var Bp=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,ut.jsx)("a",{href:o,className:"flex items-center gap-x-1 text-sm font-semibold text-foreground group",children:(0,ut.jsxs)("span",{className:"relative",children:[e,(0,ut.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]})}):(0,ut.jsxs)(dt.Popover,{children:[(0,ut.jsxs)(dt.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,ut.jsxs)("span",{className:"relative",children:[e,(0,ut.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,ut.jsx)(rs.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,ut.jsxs)(dt.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-ut-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,ut.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 gl:gap-x-8 z-50",children:t&&t.map(r=>(0,ut.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,ut.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:r.icon&&(0,ut.jsx)(sc,{icon:r.icon,size:"4x"})}),(0,ut.jsxs)("a",{href:r.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[r.name,(0,ut.jsx)("span",{className:"absolute inset-0"})]}),(0,ut.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,ut.jsx)("div",{className:"bg-gray-50",children:(0,ut.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,ut.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:a.map(r=>(0,ut.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,ut.jsx)(sc,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),sc=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,ut.jsx)(Ze,{...e,size:a});if("src"in e)return(0,ut.jsx)("div",{className:l(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,ut.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},ss=Bp;var is=["light","dark","green"];function Ep({title:e,logo:t,menuItems:a}){let[o,r]=(0,Vn.useState)(!1),[s,n]=(0,Vn.useState)(!1),[i,c]=(0,Vn.useState)("light"),m=t==null?void 0:t.split(".")[0],d=t==null?void 0:t.split(".")[1],[p,u]=(0,Vn.useState)(`${m}.${d}`),g=f=>{is.includes(f)?u(f==="light"?`${m}.${d}`:`${m}-${f}.${d}`):u(`${m}.${d}`)};(0,Vn.useEffect)(()=>{let f=localStorage.getItem("theme")||"light";c(f),document.documentElement.setAttribute("class",f),g(f)},[]);let v=()=>{let f=is[(is.indexOf(i)+1)%is.length];c(f),document.documentElement.setAttribute("class",f),localStorage.setItem("theme",f),g(f)};return(0,$.jsxs)("header",{className:"relative isolate z-10 bg-background h-14",children:[(0,$.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,$.jsx)("div",{className:"flex lg:flex-1",children:(0,$.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,$.jsx)("span",{className:"sr-only",children:e}),(0,$.jsx)("img",{alt:e,src:p,className:"h-9 w-auto"})]})}),(0,$.jsx)("div",{className:"flex lg:hidden",children:(0,$.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 outline-none",children:[(0,$.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,$.jsx)(ns.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,$.jsx)(dt.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:a.map(f=>(0,$.jsx)(ss,{...f},f.name))}),(0,$.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,$.jsx)("button",{onClick:v,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,$.jsx)(rs.SunIcon,{className:"h-6 w-6"}):i==="green"?(0,$.jsx)(rs.MoonIcon,{className:"h-6 w-6"}):(0,$.jsx)(rs.SunIcon,{className:"h-6 w-6"})})})]}),(0,$.jsxs)(dt.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,$.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,$.jsxs)(dt.DialogPanel,{className:"fixed inset-ut-0 right-0 z-20 w-full overflow-ut-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,$.jsxs)("div",{className:"flex items-center justify-between",children:[(0,$.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,$.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,$.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,$.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,$.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,$.jsx)(ns.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,$.jsx)("div",{className:"mt-6 flow-root",children:(0,$.jsx)("div",{className:"-my-6 divide-ut divide-gray-500/10",children:(0,$.jsx)("div",{className:"space-ut-2 py-6",children:a.map(f=>(0,$.jsx)(zp,{...f},f.name))})})})]})]})]})}function zp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,$.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,$.jsxs)(dt.Disclosure,{Xr:"div",className:"-mx-3",children:[(0,$.jsx)(dt.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,$.jsx)(dt.DisclosurePanel,{className:"mt-2 space-ut-2",children:t&&t.map(r=>(0,$.jsx)(dt.DisclosureButton,{Xr:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}var cc=h(require("next/image"));var gn=h(require("next/image"));function za({logoLight:e,logoDark:t,mobile:a=!1}){return(0,ut.jsxs)(Ie,{href:"/",className:l(a?"py-1":"py-2"),children:[(0,ut.jsx)(gn.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}}),(0,ut.jsx)(gn.default,{className:"logo-dark hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}})]})}var nc=require("next-themes");function fr({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o}){let[r,s]=(0,Vn.useState)(!1),[n,i]=(0,Vn.useState)(""),c=["light","dark"],{theme:m,setTheme:d}=(0,nc.useTheme)();(0,Vn.useEffect)(()=>{i(m||"dark")},[m]);let p=()=>{let u=c[(c.indexOf(n)+1)%c.length];i(u),d(u)};return(0,Vn.useEffect)(()=>{let u=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,ut.jsx)(ut.Fragment,{children:(0,ut.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${r||e?"translate-ut-0":"-translate-ut-full bg-transparent"}`,children:(0,ut.jsx)(Ae,{className:"px-0",children:(0,ut.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-b-gl",children:(0,ut.jsxs)("div",{className:"flex items-center justify-between bg-background px-9 py-0 dark:bg-[#212124] rounded-b-gl border border-t-0 border-accent",children:[(0,ut.jsx)(za,{logoDark:a,logoLight:t}),(0,ut.jsx)(dt.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:o&&o.map(u=>(0,ut.jsx)(ss,{...u},u.name))}),(0,ut.jsx)("div",{className:"flex items-center space-x-4",children:(0,ut.jsx)("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:p,children:(0,ut.jsxs)("div",{className:"relative",children:[(0,ut.jsx)(gl.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,ut.jsx)(gl.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var fn=["light","dark"];function br({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,Vn.useState)(!1),{theme:n,setTheme:i}=(0,nc.useTheme)(),[c,m]=(0,Vn.useState)(!1),[d,p]=(0,Vn.useState)("light");(0,Vn.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,Vn.useEffect)(()=>{p(n||"dark")},[n]);let u=()=>{let g=fn[(fn.indexOf(d)+1)%fn.length];p(g),i(g)};return(0,ut.jsx)(ut.Fragment,{children:(0,ut.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-ut-0":"-translate-ut-full bg-transparent"}`,children:[(0,ut.jsx)("nav",{className:l("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,ut.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,ut.jsx)(za,{logoDark:t,logoLight:e,mobile:!0}),(0,ut.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,ut.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,ut.jsx)(ns.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]}),(0,ut.jsx)("button",{className:"fixed right-16 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",onClick:u,children:(0,ut.jsxs)("div",{className:"relative",children:[(0,ut.jsx)(gl.Sun,{className:"absolute h-4 w-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,ut.jsx)(gl.Moon,{className:"absoulte h-4 w-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,ut.jsxs)(dt.Dialog,{open:c,onClose:m,className:"lg:hidden",children:[(0,ut.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,ut.jsxs)(dt.DialogPanel,{className:"fixed inset-ut-0 right-0 z-20 w-full overflow-ut-auto bg-white dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,ut.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,ut.jsx)(za,{logoDark:t,logoLight:e,mobile:!0}),(0,ut.jsxs)("button",{type:"button",onClick:()=>m(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,ut.jsx)(ns.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,ut.jsx)("div",{className:"mt-6 flow-root",children:(0,ut.jsx)("div",{className:"-my-6 divide-ut divide-gray-500/10",children:(0,ut.jsx)("div",{className:"space-ut-2 px-2 py-6",children:a&&a.map(g=>(0,ut.jsx)(Hp,{...g},g.name))})})})]})]})]})})}function Hp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,ut.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}):(0,ut.jsxs)(dt.Disclosure,{Xr:"div",className:"-mx-3",children:[(0,ut.jsx)(dt.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}),(0,ut.jsx)(dt.DisclosurePanel,{className:"mt-2 space-ut-2",children:t&&t.map(r=>(0,ut.jsx)(dt.DisclosureButton,{Xr:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}function Fp({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let[n,i]=(0,Vn.useState)(!1),[c,m]=(0,Vn.useState)(!1),d=()=>{let u=document.getElementById("next-section");u&&u.scrollIntoView({behavior:"smooth"})};return(0,Vn.useEffect)(()=>{let u=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,ut.jsxs)("div",{className:"relative h-screen",children:[(0,ut.jsxs)("div",{className:"absolute inset-0 w-full h-screen overflow-hidden",children:[(0,ut.jsxs)("video",{className:"object-cover w-full h-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,ut.jsx)("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,ut.jsx)("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!n&&!c&&(0,ut.jsx)("button",{className:"fixed hidden lg:block top-4 right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{m(!c)},children:(0,ut.jsx)(gl.Menu,{className:"w-6 h-6 text-white"})}),(0,ut.jsxs)("div",{className:"fixed top-0 left-0 right-0 z-50",children:[(0,ut.jsx)(fr,{isMenuOpen:n||c,logoLight:t,logoDark:a,menuItems:o}),(0,ut.jsx)(br,{isMenuOpen:!0,logoLight:t,logoDark:a,menuItems:o})]}),(0,ut.jsxs)("div",{className:"absolute inset-0 h-full z-10 flex flex-col items-center justify-between text-white text-center px-4",children:[(0,ut.jsx)(cc.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:l("absolute top-2.5 h-auto w-auto mt-8 hidden lg:block",c&&"lg:hidden")}),(0,ut.jsxs)("div",{className:"absolute top-1/2vv h-full flex flex-col px-4 items-center justify-center",children:[(0,ut.jsx)("h1",{className:"text-6xl font-bold pt-auto mb-12",children:r&&r}),(0,ut.jsx)("div",{className:"text-3xl mb-8 max-w-2xl",children:s&&s})]}),(0,ut.jsx)("div",{className:"absolute bottom-10 flex justify-center items-center w-full mb-8",children:(0,ut.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:d,children:(0,ut.jsx)(gl.ChevronDown,{size:64})})})]})]})}var mc=h(require("next/image"));var Op=l("text-base/[1.75] transition-transform duration-350 hover:-translate-ut-1 block px-4"),bn=l("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),vn=l("w-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),yn=l("flex items-center gap-5"),ps=l("transition-colors duration-300 hover:text-accent dark:hover:text-white");function _p({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:n,columnThree:i,footerBottom:c}=t;return(0,ut.jsxs)("footer",{className:l("overflow-hidden bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-body",e),children:[(0,ut.jsx)("div",{className:"py-16 md:py-20",children:(0,ut.jsx)("div",{className:"container",children:(0,ut.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 gl:grid-cols-4",children:[(0,ut.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,ut.jsx)(za,{logoLight:a,logoDark:o}),(0,ut.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,ut.jsx)("nav",{"aria-label":"social links",children:(0,ut.jsx)("rl",{className:"inline-flex min-h-[50px] items-center divide-x rounded-5 bg-accent text-white",children:r.socialLinks.map((m,d)=>(0,ut.jsx)("li",{children:(0,ut.jsx)(Ie,{"aria-label":m.href,className:Op,href:m.href,openNewTab:!0,children:(0,ut.jsx)("span",{children:m.icon})})},d))})})]}),(0,ut.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,ut.jsx)("h3",{className:bn,children:s.title}),s.links&&s.links.length>0&&(0,ut.jsx)("nav",{"aria-label":"footer links navigation",children:(0,ut.jsx)("rl",{className:"grid gap-2",children:s.links.map(m=>(0,ut.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,ut.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,ut.jsx)(Xr.FaChevronRight,{})}),(0,ut.jsx)(Ie,{href:m.href,openNewTab:m.openNewTab,className:ps,children:m.label})]},m.label))})})]}),(0,ut.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,ut.jsx)("h3",{className:bn,children:n.title}),(0,ut.jsxs)("rl",{"aria-label":"addresses",className:"grid gap-5",children:[(0,ut.jsxs)("li",{className:yn,children:[(0,ut.jsx)("span",{className:vn,children:(0,ut.jsx)(Xr.FaPaperPlane,{})}),(0,ut.jsx)("address",{className:"not-italic",children:n.location})]}),(0,ut.jsxs)("li",{className:yn,children:[(0,ut.jsx)("span",{className:vn,children:(0,ut.jsx)(Xr.FaEnvelope,{})}),n.mails&&n.mails.length>0&&(0,ut.jsx)("div",{className:"grid gap-1",children:n.mails.map((m,d)=>(0,ut.jsx)("a",{href:`mailto:${m}`,className:ps,children:m},d))})]}),n.phoneNumbers&&n.phoneNumbers.length>0&&(0,ut.jsxs)("li",{className:yn,children:[(0,ut.jsx)("span",{className:vn,children:(0,ut.jsx)(Xr.FaPhone,{})}),(0,ut.jsx)("div",{className:"grid gap-1",children:n.phoneNumbers.map((m,d)=>(0,ut.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:ps,children:m},d))})]})]})]}),i&&(0,ut.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,ut.jsx)("h3",{className:bn,children:i.title}),i.blogs&&i.blogs.length>0&&(0,ut.jsx)("div",{className:"grid gap-6",children:i.blogs.map((m,d)=>(0,ut.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,ut.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,ut.jsx)(mc.default,{...m.image,alt:m.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,ut.jsxs)("div",{children:[(0,ut.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,ut.jsx)("span",{className:"text-accent",children:(0,ut.jsx)(Xr.FaCalendarDays,{})}),(0,ut.jsx)("span",{children:zd(m.date)})]}),(0,ut.jsx)("h4",{className:"text-md font-bold leading-normal",children:(0,ut.jsx)(Ie,{href:m.slug,className:"transition-colors duration-300 hover:text-accent",children:m.title})})]})]},d))})]})]})})}),(0,ut.jsx)("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,ut.jsx)("div",{className:"container",children:(0,ut.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-x-8 gap-ut-4 md:gap-x-10",children:[(0,ut.jsx)("p",{children:c.copyrightText}),c.links&&c.links.length>0&&(0,ut.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,ut.jsx)("rl",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:c.links.map(m=>(0,ut.jsx)("li",{children:(0,ut.jsx)(Ie,{"aria-label":`Go to page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:ps,children:m.label})},m.label))})})]})})})]})}function Gp({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r}){return(0,ut.jsxs)("div",{className:l("fixed top-0 left-0 right-0 z-50",r),children:[(0,ut.jsx)(fr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o}),(0,ut.jsx)(br,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function jp({children:e,...t}){return(0,ut.jsx)(nc.ThemeProvider,{...t,children:e})}var ro=require("sonner");function hn({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,Vn.useState)([]),s=(0,kd.useRouter)(),n=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},i=d=>{r(p=>p.includes(d)?p.filter(u=>u!==d):[...p,d])},c=async()=>{let d=await t(o);d.success?(ro.toast.success(d.message),s.refresh()):ro.toast.error(`Error: ${d.message}`),r([])},m=async()=>{let d=await a(o);d.success?(ro.toast.success(d.message),s.refresh()):ro.toast.error(`Error: ${d.message}`),r([])};return(0,ut.jsxs)("div",{className:"space-ut-4",children:[(0,ut.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ut.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,ut.jsxs)("div",{className:"space-x-2",children:[(0,ut.jsx)(M,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,ut.jsx)(M,{onClick:m,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,ut.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,ut.jsxs)("rl",{className:"divide-ut divide-gray-200",children:[(0,ut.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsxs)("div",{className:"flex items-center",children:[(0,ut.jsx)(Dt,{id:"select-all",checked:o.length===e.length,onCheckedChange:n,className:"border-accent"}),(0,ut.jsx)("label",{htmlFor:"select-all",className:"ut-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,ut.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,ut.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsxs)("div",{className:"flex items-center",children:[(0,ut.jsx)(Dt,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>i(d.id),className:"border-accent"}),(0,ut.jsxs)("div",{className:"ut-3 flex items-center",children:[(0,ut.jsxs)(Zt,{className:"h-10 w-10",children:[(0,ut.jsx)(ea,{src:d.userImage,alt:d.userName}),(0,ut.jsx)(ta,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),(0,ut.jsx)("div",{className:"ut-3",children:(0,ut.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(d.startDate).toLocaleDateString(),d.startDate!==d.endDate&&` - ${new Date(d.endDate).toLocaleDateString()}`,d.leaveType!="Full Day"&&` (${d.leaveType})`,` - ${d.totalDays} day${d.totalDays!==1?"s":""}`]}),(0,ut.jsx)(yt,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,ut.jsx)(ro.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var xn=require("date-fns"),$p=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,ut.jsx)("div",{className:"flex space-x-2",children:e.map((r,s)=>(0,ut.jsx)(M,{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 Nn({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,Vn.useState)(new Date),[r,s]=(0,Vn.useState)(new Date),[n,i]=(0,Vn.useState)("Full Day"),[c,m]=(0,Vn.useState)(!1),d=(0,kd.useRouter)();(0,Vn.useEffect)(()=>{m(a!==r||!a||!r),c&&i("Full Day")},[a,r]);let p=g=>{i(g)};return(0,ut.jsxs)("div",{className:"max-w-2xl",children:[(0,ut.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,ut.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,ut.jsxs)("form",{onSubmit:async g=>{if(g.preventDefault(),!a||!r){ro.toast.error("Please select both start and end dates");return}let v=Math.ceil((r.getTime()-a.getTime())/(1e3*60*60*24))+1;if((n==="Morning"||n==="Afternoon")&&(v=.5),v>e){ro.toast.error("You do not have enough leave days remaining");return}let f=new FormData;f.append("startDate",a.toISOString()),f.append("endDate",r.toISOString()),f.append("leaveType",n),f.append("duration",v.toString());let w=await(t||Vp)(f);w.success?(ro.toast.success(w.message),o(void 0),s(void 0),i("Full Day"),d.refresh()):ro.toast.error(`Error: ${w.message}`)},className:"space-ut-4",children:[(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,ut.jsxs)("div",{className:"flex flex-col space-ut-2",children:[(0,ut.jsx)(ne,{htmlFor:"startDate",children:"Start Date"}),(0,ut.jsxs)(Jo,{children:[(0,ut.jsx)(Zo,{asChild:!0,children:(0,ut.jsxs)(M,{variant:"outline",className:l("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,ut.jsx)(gl.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,xn.format)(a,"PPP"):(0,ut.jsx)("span",{children:"Pick a date"})]})}),(0,ut.jsx)(xo,{className:"w-auto p-0",align:"start",children:(0,ut.jsx)(ar,{mode:"single",selected:a,onSelect:g=>{o(g),g&&(!r||g>r)&&s(g)},initialFocus:!0})})]})]}),(0,ut.jsxs)("div",{className:"flex flex-col space-ut-2",children:[(0,ut.jsx)(ne,{htmlFor:"endDate",children:"End Date"}),(0,ut.jsxs)(Jo,{children:[(0,ut.jsx)(Zo,{asChild:!0,children:(0,ut.jsxs)(M,{variant:"outline",className:l("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,ut.jsx)(gl.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,xn.format)(r,"PPP"):(0,ut.jsx)("span",{children:"Pick a date"})]})}),(0,ut.jsx)(xo,{className:"w-auto p-0",align:"start",children:(0,ut.jsx)(ar,{mode:"single",selected:r,onSelect:s,disabled:g=>a?g<a:!1,initialFocus:!0})})]})]})]}),(0,ut.jsxs)("div",{className:"space-ut-2",children:[(0,ut.jsx)(ne,{children:"Leave Type"}),(0,ut.jsx)($p,{options:["Full Day","Morning","Afternoon"],value:n,onChange:p,disabled:[!1,c,c]})]}),(0,ut.jsx)(M,{type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,ut.jsx)(ro.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var Vp=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function vc(...e){return e.filter(Boolean).join(" ")}function Cn({currentDate:e,setCurrentDate:t,holidays:a,employees:o}){let r=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},n=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},i=()=>{t(new Date)};return(0,ut.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,ut.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,ut.jsxs)("div",{className:"sm:flex-auto",children:[(0,ut.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,ut.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,ut.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,ut.jsxs)(M,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,ut.jsx)(gl.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,ut.jsx)(M,{variant:"outline",onClick:i,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,ut.jsxs)(M,{onClick:n,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Next month"}),(0,ut.jsx)(gl.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,ut.jsx)("div",{className:"mt-8 flow-root",children:(0,ut.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,ut.jsx)("div",{className:"max-h-[60vh] overflow-ut-auto",children:(0,ut.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,ut.jsx)("thead",{className:"sticky top-0 z-20 bg-white",children:(0,ut.jsxs)("tr",{children:[(0,ut.jsx)("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(r)].map((c,m)=>(0,ut.jsx)("th",{scope:"col",className:"sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter",children:m+1},m))]})}),(0,ut.jsx)("tbody",{children:o.map((c,m)=>(0,ut.jsxs)("tr",{children:[(0,ut.jsx)("td",{className:vc(m!==o.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,ut.jsxs)("div",{className:"flex items-center",children:[(0,ut.jsxs)(Zt,{className:"h-11 w-11",children:[(0,ut.jsx)(ea,{src:c.image,alt:c.name}),(0,ut.jsx)(ta,{children:c.name.split(" ").map(d=>d[0]).join("")})]}),(0,ut.jsx)("div",{className:"ut-4",children:(0,ut.jsx)("div",{className:"font-medium text-accent",children:c.name})})]})}),[...Array(r)].map((d,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p+1),g=a.find(v=>v.userId===c.id&&new Date(v.startDate)<=u&&new Date(v.endDate)>=u);return(0,ut.jsx)("td",{className:vc(m!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:(0,ut.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${g?g.status==="approved"?"bg-green-500":g.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:g?`${c.name}: ${g.status} (${g.startDate} - ${g.endDate}) - ${g.leaveType}`:"",children:g&&g.leaveType!=="Full Day"&&(0,ut.jsx)("div",{className:`h-3 w-6 ${g.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${c.id}-${p}`)})]},c.id))})]})})})})]})}function Pn({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,Vn.useState)(null),s=new Date(e.getFullYear(),e.getMonth(),1).getDay(),n=Array.from({length:42},(d,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p-s+1);return{date:u,isCurrentMonth:u.getMonth()===e.getMonth(),isToday:u.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=u&&new Date(g.endDate)>=u)}}),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},c=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},m=()=>{t(new Date)};return(0,ut.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,ut.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,ut.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,ut.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,ut.jsx)("div",{className:"flex items-center",children:(0,ut.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,ut.jsxs)(M,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,ut.jsx)(gl.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,ut.jsx)(M,{variant:"outline",onClick:m,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,ut.jsxs)(M,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Next month"}),(0,ut.jsx)(gl.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,ut.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,ut.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,ut.jsxs)("div",{className:"bg-white py-2",children:["M",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,ut.jsxs)("div",{className:"bg-white py-2",children:["ut",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ue"})]}),(0,ut.jsxs)("div",{className:"bg-white py-2",children:["W",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,ut.jsxs)("div",{className:"bg-white py-2",children:["ut",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,ut.jsxs)("div",{className:"bg-white py-2",children:["ut",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,ut.jsxs)("div",{className:"bg-white py-2",children:["S",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ut"})]}),(0,ut.jsxs)("div",{className:"bg-white py-2",children:["S",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,ut.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,ut.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:n.map(d=>(0,ut.jsxs)("div",{className:l(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,ut.jsx)("time",{dateTime:d.date.toISOString(),className:l("flex h-6 w-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,ut.jsx)("wr",{className:"mt-2 space-ut-1",children:d.holidays.map(p=>(0,ut.jsx)("li",{children:(0,ut.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border`,children:p.userName})},p.id))})]},d.date.toISOString()))}),(0,ut.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:n.map(d=>(0,ut.jsxs)("button",{type:"button",className:l(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,ut.jsx)("time",{dateTime:d.date.toISOString(),className:l("ut-auto",d.date===o&&d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,ut.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,ut.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(p=>(0,ut.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},d.date.toISOString()))})]})]})]})}var Ha=require("lucide-react");function hc(...e){return e.filter(Boolean).join(" ")}function Up({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:n,rejectLeave:i}){let[c,m]=(0,Vn.useState)("Calendar View"),d=(0,kd.useRouter)(),p=!1,u=(0,xn.parseISO)(a),g=async f=>{let w=(0,xn.format)(f,"Vn-MM-yyyy"),I=new URL(window.location.href);return I.searchParams.set("date",w),d.push(I.toString()),{success:!0}};if(p)return(0,ut.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,ut.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let v=[{name:"Grid View",icon:Ha.Grid,current:c==="Grid View"},{name:"Calendar View",icon:Ha.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:Ha.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:Ha.CheckSquare,current:c==="Approve Leave"}];return(0,ut.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,ut.jsxs)("div",{className:"mb-8",children:[(0,ut.jsxs)("div",{className:"sm:hidden",children:[(0,ut.jsx)("select",{value:c,onChange:f=>m(f.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:v.map(f=>(0,ut.jsx)("option",{children:f.name},f.name))}),(0,ut.jsx)(gl.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,ut.jsx)("div",{className:"hidden sm:block",children:(0,ut.jsx)("div",{className:"border-b border-gray-200",children:(0,ut.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:v.map(f=>(0,ut.jsxs)("a",{onClick:()=>{(f.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(f.name)},className:hc(f.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",f.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":f.current?"page":void 0,children:[(0,ut.jsx)(f.icon,{className:hc(f.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ut-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,ut.jsx)("span",{children:f.name})]},f.name))})})})]}),c==="Grid View"&&(0,ut.jsx)(Cn,{currentDate:u,setCurrentDate:g,holidays:e,employees:r}),c==="Calendar View"&&(0,ut.jsx)(Pn,{currentDate:u,setCurrentDate:g,holidays:e}),c==="Request Leave"&&(0,ut.jsx)(Nn,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:f=>s?s(f):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,ut.jsx)(hn,{leaveRequests:o,onApprove:f=>n?n(f):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:f=>i?i(f):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Sn({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:n}){var ce,W,P,L,S;let[i,c]=(0,Vn.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[m,d]=(0,Vn.useState)(""),[p,u]=(0,Vn.useState)(!1),[g,v]=(0,Vn.useState)(null);(0,Vn.useEffect)(()=>{u(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let f=async()=>{try{let b=await s(i);b.success?(u(!1),v(null)):console.error("Failed to save deal:",b.errors)}catch(b){console.error("Failed to save deal:",b)}},w=(b,C)=>{c(x=>({...x,[b]:C}))},I=b=>{let C=(i.categories||[]).includes(b)?(i.categories||[]).filter(x=>x!==b):[...i.categories||[],b];w("categories",C)},D=async()=>{if(m.trim()){let b={text:m,timestamp:new Date().toISOString()};try{let C=await n(b);if(!C.success){console.error("Failed to add comment:",C.errors);return}}catch(C){console.error("Failed to add comment:",C)}c(C=>({...C,comments:[...C.comments||[],b]})),d("")}},j=b=>{switch(b){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},z=b=>t==null?void 0:t.find(C=>C.id===Number(b));return(0,ut.jsx)(vt,{open:!0,children:(0,ut.jsxs)(it,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,ut.jsxs)(Rt,{className:"flex flex-row items-center justify-between",children:[(0,ut.jsx)(Tt,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,ut.jsxs)("div",{className:"flex space-x-2",children:[(0,ut.jsx)(M,{variant:"outline",onClick:r,children:"Close"}),(0,ut.jsxs)(M,{onClick:f,disabled:!p,children:[(0,ut.jsx)(gl.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,ut.jsxs)(ka,{className:"flex-grow pr-4",children:[(0,ut.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,ut.jsx)("div",{className:"grid gap-2",children:g==="value"?(0,ut.jsx)(Qe,{type:"number",value:i.value,onChange:b=>w("value",Number(b.target.value)),onBlur:()=>v(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,ut.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("value"),children:["\xA3",(ce=i.value)==null?void 0:ce.toLocaleString()]})}),(0,ut.jsxs)("div",{className:"grid gap-2",children:[(0,ut.jsx)(ne,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),g==="assignee"?(0,ut.jsxs)(Xa,{value:((P=(W=i==null?void 0:i.assignee)==null?void 0:W.id)==null?void 0:P.toString())||"",onValueChange:b=>w("assignee",z(b)),children:[(0,ut.jsx)(Da,{children:(0,ut.jsx)(Ya,{placeholder:"Select assignee"})}),(0,ut.jsx)(Aa,{children:t&&t.map(b=>{var C;return(0,ut.jsx)(Ma,{value:((C=b==null?void 0:b.id)==null?void 0:C.toString())||"",children:b.name},b.id)})})]}):(0,ut.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("assignee"),children:[(0,ut.jsx)(gl.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,ut.jsx)("span",{children:i.assignee.name})]})]}),(0,ut.jsxs)("div",{className:"grid gap-2",children:[(0,ut.jsx)(ne,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),g==="closureDate"?(0,ut.jsx)(Qe,{type:"date",value:(S=(L=i.closureDate)==null?void 0:L.split("ut")[0])!=null?S:"",onChange:b=>w("closureDate",b.target.value),onBlur:()=>v(null),autoFocus:!0}):(0,ut.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("closureDate"),children:[(0,ut.jsx)(gl.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,ut.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("en-GB"):"ut/ut"})]})]})]}),(0,ut.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,ut.jsxs)("div",{className:"grid gap-2",children:[(0,ut.jsx)(ne,{className:"text-sm font-medium text-gray-500",children:"Description"}),g==="description"?(0,ut.jsx)(Ia,{value:i.description||"",onChange:b=>w("description",b.target.value),onBlur:()=>v(null),className:"min-h-[100px]",autoFocus:!0}):(0,ut.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>v("description"),children:i.description})]})}),(0,ut.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,ut.jsxs)("div",{className:"grid gap-2",children:[(0,ut.jsx)(ne,{className:"text-sm font-medium text-gray-500",children:"Status"}),g==="status"?(0,ut.jsxs)(Xa,{value:i.status,onValueChange:b=>{w("status",b),v(null)},children:[(0,ut.jsx)(Da,{children:(0,ut.jsx)(Ya,{placeholder:"Select status"})}),(0,ut.jsx)(Aa,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(b=>(0,ut.jsx)(Ma,{value:b,children:b},b))})]}):(0,ut.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("status"),children:i.status})]}),(0,ut.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,ut.jsx)(ne,{className:"text-sm font-medium text-gray-500",children:"Categories"}),g==="categories"?(0,ut.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.map(b=>{var C,x;return(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsx)(Dt,{id:((C=b.id)==null?void 0:C.toString())||"",checked:(i.categories||[]).some(ue=>ue.id===b.id),onCheckedChange:()=>b.id!==void 0&&I(b)}),(0,ut.jsx)("label",{htmlFor:((x=b.id)!=null?x:"").toString(),className:`text-sm font-medium ${j(b.type||"sector")} px-2 py-1 rounded`,children:b.name})]},b.id)})}):(0,ut.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("categories"),children:i.categories&&i.categories.map(b=>{console.log("cat",b);let C=b;return C?(0,ut.jsx)(yt,{variant:"secondary",className:j(C.type||"sector"),children:C.name},C.id):null})})]})]}),(0,ut.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,ut.jsxs)("div",{className:"grid gap-2",children:[(0,ut.jsx)(ne,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,ut.jsx)(ka,{className:"h-[200px] overflow-ut-auto",children:(0,ut.jsx)("div",{className:"space-ut-2",children:i.comments&&i.comments.slice().sort((b,C)=>new Date(C.timestamp||"").getTime()-new Date(b.timestamp||"").getTime()).map(b=>{var C;return(0,ut.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,ut.jsx)("p",{className:"text-sm text-gray-700",children:b.text}),(0,ut.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(C=b==null?void 0:b.author)==null?void 0:C.name," - ",new Date(b.timestamp||"").toLocaleString()]})]},b.id)})})}),(0,ut.jsxs)("div",{className:"flex mt-2",children:[(0,ut.jsx)(Qe,{value:m,onChange:b=>d(b.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,ut.jsxs)(M,{onClick:D,className:"ut-2",children:[(0,ut.jsx)(gl.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,ut.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}function kn({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>{var n;return s.type==="proposition"&&((n=e.categories)!=null?n:[]).includes(s.id)});return(0,ut.jsxs)(ye,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,ut.jsxs)(_e,{className:"pb-2",children:[(0,ut.jsx)("div",{className:"flex justify-between items-center",children:(0,ut.jsx)(Ge,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,ut.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,ut.jsxs)(Te,{children:[(0,ut.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,ut.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,ut.jsx)(gl.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,ut.jsx)("span",{children:e.assignee.name})]}),(0,ut.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,ut.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,ut.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,ut.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,ut.jsx)(gl.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,ut.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,ut.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,ut.jsx)(yt,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:r.name})})]})]})}var vs=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Rn({onSubmit:e}){var r;let[t,a]=(0,Vn.useState)({name:"",intro:"",active:!0});return(0,ut.jsxs)("form",{onSubmit:s=>{s.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-ut-4",children:[(0,ut.jsxs)("div",{className:"space-ut-2",children:[(0,ut.jsx)(ne,{htmlFor:"customerName",children:"Customer Name"}),(0,ut.jsx)(Qe,{id:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,ut.jsxs)("div",{className:"space-ut-2",children:[(0,ut.jsx)(ne,{htmlFor:"customerIntro",children:"Intro"}),(0,ut.jsx)(Ia,{id:"customerIntro",value:(r=t.intro)!=null?r:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsx)(Dt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,ut.jsx)(ne,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,ut.jsx)(M,{type:"submit",className:"w-full",children:"Add Customer"})]})}function Tn({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:n}){var j,z,ce,W;let[i,c]=(0,Vn.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("ut")[0],closureDate:"",comments:[],description:""}),[m,d]=(0,Vn.useState)(!1),[p,u]=(0,Vn.useState)({});(0,Vn.useEffect)(()=>{r&&c(r)},[r]);let g=()=>{let P={};return i.customer||(P.customer="Customer is required"),i.value||(P.value="Value is required"),i.assignee||(P.assignee="Assignee is required"),i.closureDate||(P.closureDate="Closure Date is required"),u(P),Object.keys(P).length===0},v=async P=>{P.preventDefault(),u({});try{if(g()){let L=await o({...i});L.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),n==null||n()):u(L.errors||{})}}catch{u({submit:"ro error occurred while submitting the form."})}},f=P=>{console.log(P),c(L=>({...L,categories:(L.categories||[]).includes(P.id)?(L.categories||[]).filter(S=>S!==P.id):[...L.categories||[],P.id]}))},w=async P=>{c({...i,customer:P});try{let L=await s(P);L.success?d(!1):u(L.errors||{})}catch{u({submit:"ro error occurred while submitting the form."})}},I=P=>t==null?void 0:t.find(L=>L.id===Number(P)),D=P=>e==null?void 0:e.find(L=>L.id===Number(P));return(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsxs)("form",{onSubmit:v,className:"space-ut-6",children:[(0,ut.jsx)(ka,{className:"h-[60vh] pr-4",children:(0,ut.jsxs)("div",{className:"space-ut-6 px-4",children:[(0,ut.jsxs)("div",{className:"space-ut-2 space-x-2",children:[(0,ut.jsx)(ne,{htmlFor:"customer",children:"Customer"}),(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsxs)(Xa,{value:(z=(j=i.customer)==null?void 0:j.id)==null?void 0:z.toString(),onValueChange:P=>c({...i,customer:D(P)}),children:[(0,ut.jsx)(Da,{children:(0,ut.jsx)(Ya,{placeholder:"Select customer"})}),(0,ut.jsx)(Aa,{children:e.map(P=>{var L;return(0,ut.jsx)(Ma,{value:((L=P.id)==null?void 0:L.toString())||"",children:P.name},P.id)})})]}),(0,ut.jsx)(M,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,ut.jsx)(gl.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,ut.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,ut.jsxs)("div",{className:"space-ut-2 space-x-2",children:[(0,ut.jsx)(ne,{htmlFor:"value",children:"Value"}),(0,ut.jsx)(Qe,{id:"value",type:"number",value:i.value||"",onChange:P=>c({...i,value:Number.parseFloat(P.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,ut.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,ut.jsxs)("div",{className:"space-ut-2 space-x-2",children:[(0,ut.jsx)(ne,{htmlFor:"assignee",children:"Assignee"}),(0,ut.jsxs)(Xa,{value:(W=(ce=i.assignee)==null?void 0:ce.id)==null?void 0:W.toString(),onValueChange:P=>c({...i,assignee:I(P)}),children:[(0,ut.jsx)(Da,{children:(0,ut.jsx)(Ya,{placeholder:"Select assignee"})}),(0,ut.jsx)(Aa,{children:t&&t.map(P=>{var L;return(0,ut.jsx)(Ma,{value:((L=P.id)==null?void 0:L.toString())||"",children:P.name},P.id)})})]}),p.assignee&&(0,ut.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,ut.jsxs)("div",{className:"space-ut-2 space-x-2",children:[(0,ut.jsx)(ne,{htmlFor:"description",children:"Description"}),(0,ut.jsx)(Ia,{id:"description",value:i.description||"",onChange:P=>c({...i,description:P.target.value}),placeholder:"Enter deal description"})]}),(0,ut.jsxs)("div",{className:"space-ut-2 space-x-2",children:[(0,ut.jsx)(ne,{children:"Categories"}),(0,ut.jsx)("div",{className:"space-ut-4",children:["proposition","source","sector"].map(P=>(0,ut.jsxs)("div",{className:"space-ut-2",children:[(0,ut.jsx)("h4",{className:"text-sm font-medium",children:P.charAt(0).toUpperCase()+P.slice(1)}),(0,ut.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(L=>L.type===P).map(L=>{var S;return(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsx)(Dt,{id:L.id.toString(),checked:(S=i.categories)==null?void 0:S.includes(L.id),onCheckedChange:()=>f(L)}),(0,ut.jsx)("label",{htmlFor:L.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:L.name})]},L.id)})})]},P))})]}),(0,ut.jsxs)("div",{className:"space-ut-2 space-x-2",children:[(0,ut.jsx)(ne,{htmlFor:"closureDate",children:"Closure Date"}),(0,ut.jsx)(Qe,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:P=>c({...i,closureDate:P.target.value})}),p.closureDate&&(0,ut.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,ut.jsx)(M,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,ut.jsx)(vt,{open:m,onOpenChange:d,children:(0,ut.jsxs)(it,{children:[(0,ut.jsx)(Rt,{children:(0,ut.jsx)(Tt,{children:"Add New Customer"})}),(0,ut.jsx)(Rn,{onSubmit:w})]})})]})}function Dn({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:n,calculateWeightedValue:i,addNewDeal:c,onAddCustomer:m}){let[d,p]=(0,Vn.useState)(!1);return(0,ut.jsxs)("div",{className:"flex flex-col w-80",children:[(0,ut.jsx)("h2",{className:"text-gl font-semibold mb-4",children:e}),c&&(0,ut.jsxs)(vt,{open:d,onOpenChange:p,children:[(0,ut.jsx)(zr,{asChild:!0,children:(0,ut.jsxs)(M,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,ut.jsx)(gl.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,ut.jsxs)(it,{children:[(0,ut.jsx)(Rt,{children:(0,ut.jsx)(Tt,{children:"Add New Deal"})}),(0,ut.jsx)(Tn,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:m,onClose:()=>p(!1)})]})]}),(0,ut.jsx)(vs.Droppable,{droppableId:e,isDropDisabled:!1,children:u=>(0,ut.jsxs)("div",{ref:u.innerRef,...u.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((g,v)=>(0,ut.jsx)(vs.Draggable,{draggableId:g.id.toString(),index:g.id,children:f=>(0,ut.jsx)("div",{ref:f.innerRef,...f.draggableProps,...f.dragHandleProps,children:(0,ut.jsx)(kn,{deal:g,customer:g.customer,categories:r,onClick:()=>s(g)})})},g.id.toString())),u.placeholder]})}),(0,ut.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,ut.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,ut.jsxs)("span",{className:"text-green-600",children:["\xA3",n(t).toLocaleString()]})]}),(0,ut.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,ut.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var Wp=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function Xp({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){var p;let[s,n]=(0,Vn.useState)(null),i=u=>{var g;return((g=e.deals)!=null?g:[]).filter(v=>v.status===u)},c=u=>u.reduce((g,v)=>g+(v.value||0),0),m=(u,g)=>{let v={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return u.reduce((f,w)=>f+(w.value||0)*v[g],0)},d=(0,Vn.useCallback)(u=>{var j,z;let{source:g,destination:v}=u;if(!v||g.droppableId===v.droppableId&&g.index===v.index)return;let f=g.droppableId,w=v.droppableId,I=(j=e.deals)==null?void 0:j.filter(ce=>ce.id===g.index)[0],D=[...(z=e.deals)!=null?z:[]];I&&(I.status=w,a(I))},[a]);return(0,ut.jsx)(vs.DragDropContext,{onDragEnd:d,children:(0,ut.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,ut.jsx)("div",{className:"flex space-x-4 pb-4",children:Wp.filter(u=>u!=="Won"&&u!=="Lost").map(u=>{var v,f;let g=i(u);return(0,ut.jsx)(Dn,{status:u,deals:g,customers:(v=e.customers)!=null?v:[],users:e.users,categories:(f=e.categories)!=null?f:[],onDealClick:n,calculateColumnValue:c,calculateWeightedValue:m,addNewDeal:u==="Cold"?t:void 0,onAddCustomer:r},u)})}),s&&(0,ut.jsx)(Sn,{deal:s,users:e.users,customer:s.customer,categories:(p=e.categories)!=null?p:[],onClose:()=>n(null),onSave:a,onAddComment:u=>o(s.id.toString(),u)})]})})}function Yp({services:e,className:t}){return(0,ut.jsx)("section",{id:"next-section",className:l("section-padding-primary",t),children:(0,ut.jsx)(Ae,{className:"py-8",children:e&&e.length>0&&(0,ut.jsx)("div",{className:"flex flex-wrap justify-center gap-ut-8",children:e.map((a,o)=>(0,ut.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Po([200,400,600],o),className:"w-full px-4 md:w-1/2 lg:w-1/3",children:(0,ut.jsx)(Ei,{...a})},o))})})})}function qp({sectionHeading:e,cards:t}){return(0,ut.jsx)("section",{className:"section-padding-primary !pt-0",children:(0,ut.jsxs)(Ae,{children:[(0,ut.jsx)("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:(0,ut.jsx)(Ea,{...e,alignment:"center",hasBottomSpacing:!0})}),t&&t.length>0&&(0,ut.jsx)("div",{className:"grid gap-30px",children:t.map((a,o)=>(0,ut.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Po([200,400,600],o),className:"py-2",children:(0,ut.jsx)(zi,{...a})},o))})]})})}var hr=h(require("next/image"));function Kp(e){let{images:t,sectionHeading:a,keyPoints:o,description:r}=e;return(0,ut.jsx)("section",{id:"about-section",className:l("section-padding-primary",e.className||""),children:(0,ut.jsx)(Ae,{children:(0,ut.jsxs)("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[(0,ut.jsxs)("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[(0,ut.jsx)(Ea,{...a}),o&&o.length>0&&(0,ut.jsx)("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:o.map((s,n)=>(0,ut.jsxs)("div",{className:"group flex min-h-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 md:min-h-[85px] md:px-[1.875rem] md:py-3",children:[(0,ut.jsx)("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:s.icon}),(0,ut.jsx)("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:s.title})]},n))}),r&&(0,ut.jsx)("p",{className:"mt-5 md:mt-[1.875rem]",children:r})]}),t&&(0,ut.jsx)("div",{className:"mx-auto text-center",children:(0,ut.jsxs)("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[(0,ut.jsx)("div",{className:"relative flex justify-end overflow-hidden",children:(0,ut.jsx)("div",{className:"relative z-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:(0,ut.jsx)("div",{className:"relative z-[4] overflow-hidden",children:(0,ut.jsx)(hr.default,{src:t.image1.src,alt:t.image1.alt,width:t.image1.width,height:t.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})})}),(0,ut.jsx)("div",{className:"flex overflow-hidden",children:(0,ut.jsx)(hr.default,{src:t.image2.src,alt:t.image2.alt,width:t.image2.width,height:t.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),(0,ut.jsx)("div",{className:"ut-auto flex max-w-[250px] justify-end overflow-hidden",children:(0,ut.jsx)(hr.default,{src:t.image3.src,alt:t.image4.alt,width:t.image3.width,height:t.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),(0,ut.jsx)("div",{className:"overflow-hidden",children:(0,ut.jsx)(hr.default,{src:t.image4.src,alt:t.image4.alt,width:t.image4.width,height:t.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),(0,ut.jsx)("div",{className:"absolute left-1/2 top-1/2 z-[4] -translate-x-1/2 -translate-ut-1/2 overflow-hidden",children:(0,ut.jsx)("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:(0,ut.jsx)("span",{className:"grid h-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:(0,ut.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,ut.jsx)("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})}var Tc=h(require("next/image"));function Dc({blogs:e}){return(0,ut.jsx)("div",{children:e&&e.length>0&&(0,ut.jsx)("div",{className:"grid gap-10 lg:gap-10",children:e.map((t,a)=>(0,ut.jsx)(Qp,{post:t,id:a},a))})})}var Qp=({post:e,id:t})=>{let{slug:a,image:o,authors:r,categories:s,title:n,description:i,publishedAt:c}=e;return(0,ut.jsxs)("article",{className:"relative isolate flex flex-col gap-8 lg:flex-row",children:[(0,ut.jsxs)("div",{className:"relative aspect-video sm:aspect-[2/1] lg:aspect-square lg:w-64 lg:shrink-0",children:[o&&(0,ut.jsx)(Tc.default,{src:o.src,alt:o.alt,width:850,height:575,sizes:"100vw",className:"absolute inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,ut.jsx)("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsxs)("div",{className:"flex items-center gap-x-4 text-xs",children:[(0,ut.jsx)("time",{dateTime:e.publishedAt,className:"text-foreground",children:es(e.publishedAt)}),e.categories&&e.categories.map((m,d)=>(0,ut.jsx)("a",{href:`#${m}`,className:"relative z-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100",children:m},d))]}),(0,ut.jsxs)("div",{className:"group relative max-w-gl",children:[(0,ut.jsx)("h3",{className:"mt-3 text-lg/6 font-semibold text-accent group-hover:text-gl/6",children:(0,ut.jsxs)("a",{href:e.slug,children:[(0,ut.jsx)("span",{className:"absolute inset-0"}),e.title]})}),(0,ut.jsx)("p",{className:"mt-5 text-sm/6 text-foreground",children:e.description})]}),(0,ut.jsx)("div",{className:"mt-6 flex flex-wrap lg:border-t gap-ut-2 border-gray-200 dark:border-gray-700 pt-6",children:r&&r.map((m,d)=>(0,ut.jsxs)("div",{className:"relative flex items-center gap-x-4",children:[m.image?(0,ut.jsx)("img",{alt:m.image.alt,src:m.image.src,className:"size-10 rounded-full bg-gray-50"}):(0,ut.jsx)("div",{className:"size-10 rounded-full bg-gray-50"})," ",(0,ut.jsx)("div",{className:"text-sm/6",children:(0,ut.jsxs)("p",{className:"text-foreground pr-6",children:[(0,ut.jsx)("span",{className:"absolute inset-0"}),m.name]})})]},d))})]})]},t)};function Jp({blogs:e,pages:t,categories:a,types:o}){return(0,ut.jsx)("section",{children:(0,ut.jsx)(Ae,{children:(0,ut.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,ut.jsxs)("div",{children:[o&&(0,ut.jsx)(nn,{types:o}),(0,ut.jsx)(Dc,{blogs:e}),(0,ut.jsx)(rn,{pages:t})]}),(0,ut.jsx)("div",{className:"grid gap-30px w-full self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:(0,ut.jsx)("div",{className:"lg:-mt-24 w-full",children:a&&a.links&&(0,ut.jsx)(pr,{links:a.links,title:a.title})})})]})})})}var Ec=h(require("next/image"));var hs="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//ut";function xs({className:e}){return l("flex items-center min-h-[3.5rem] md:min-h-[3.75rem] w-full rounded-5 px-4 md:px-5 py-2"," bg-transparent text-accent-800 placeholder:text-accent-800 dark:text-body dark:placeholder:text-body"," border border-solid border-accent-900 border-opacity-20 dark:border-opacity-20 dark:border-accent-200"," focus:border-accent-900 focus:ring-0 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0","transition-all duration-300",e)}function Zp({className:e,...t}){return(0,ut.jsx)("input",{...t,className:xs({className:e})})}function ws({icon:e,...t}){return(0,ut.jsxs)("div",{className:"relative w-full",children:[(0,ut.jsx)(Zp,{...t}),e&&(0,ut.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-ut-1/2 text-accent",children:e})]})}function eu({className:e,...t}){return(0,ut.jsx)("textarea",{...t,className:l(xs({}),"resize-none md:min-h-[130px]",e)})}function Ac({icon:e,...t}){return(0,ut.jsxs)("div",{className:"relative w-full",children:[(0,ut.jsx)(eu,{...t}),e&&(0,ut.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var Ic=require("formik"),co=h(require("yup"));async function Mc(e){let{name:t,email:a,subject:o,message:r}=e,s=process.env.TEAMS_WEBHOOK_URL;if(!s)throw new Error("TEAMS_WEBHOOK_URL is not defined");let n={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.ro/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:"Vn-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!i.ok)throw console.error(i),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(i){return console.error(i),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var Et={tooShort:"Must be ut least ${min} characters",tooLong:"Must be ut most ${max} characters",required:"This field is required",email:"Invalid email format"},tu=co.object().shape({name:co.string().min(2,Et.tooShort).max(50,Et.tooLong).required(Et.required),email:co.string().email(Et.email).required(Et.required),subject:co.string().min(2,Et.tooShort).max(50,Et.tooLong).required(Et.required),message:co.string().min(2,Et.tooShort).max(300,Et.tooLong).required(Et.required)}),Ns=l("!pr-[44px]"),Cs=l("!border-red-600 border"),Ps=l("sr-only");function Bc(){return(0,ut.jsx)(Ic.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:tu,onSubmit:async(e,{resetForm:t})=>{let a=await Mc(e);a.data===null?ro.toast.error(a.message):(ro.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:n})=>(0,ut.jsxs)("form",{onSubmit:n,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)(ws,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,ut.jsx)(Xr.FaUser,{}),className:l(Ns,e.name&&t.name&&Cs)}),e.name&&t.name&&(0,ut.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:Ps,children:e.name})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(ws,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,ut.jsx)(au,{}),className:l(Ns,e.email&&t.email&&Cs)}),e.email&&t.email&&(0,ut.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:Ps,children:e.email})]}),(0,ut.jsxs)("div",{className:"lg:col-span-2",children:[(0,ut.jsx)(ws,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:l(Ns,e.subject&&t.subject&&Cs)}),e.subject&&t.subject&&(0,ut.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:Ps,children:e.subject})]}),(0,ut.jsxs)("div",{className:"lg:col-span-2",children:[(0,ut.jsx)(Ac,{placeholder:"Write Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,ut.jsx)(ou,{}),className:l(Ns,e.message&&t.message&&Cs)}),e.message&&t.message&&(0,ut.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:Ps,children:e.message})]}),(0,ut.jsx)("div",{className:"lg:col-span-2",children:(0,ut.jsx)(M,{type:"submit",className:"w-full outline outline-accent bg-accent text-accent-foreground hover:bg-white hover:text-accent",disabled:s,children:(0,ut.jsx)("span",{children:"SEND"})})})]})})}function au(){return(0,ut.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,ut.jsx)("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function ou(){return(0,ut.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,ut.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}function ru(e){let{sectionHeading:t,image:a}=e;return(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)("section",{className:"section-padding-primary",children:(0,ut.jsx)("div",{className:"",children:(0,ut.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,ut.jsx)("div",{className:"mx-auto max-w-2xl space-ut-16 divide-ut divide-gray-100 lg:mx-0 lg:max-w-none",children:(0,ut.jsxs)("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)("h2",{className:"text-pretty text-4xl font-semibold tracking-tight text-accent",children:"Locations"}),(0,ut.jsx)("p",{className:"mt-4 text-base/7 text-foreground",children:"We have multiple locations across the UK where we are based. These are our key locations."})]}),(0,ut.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:e.locations&&e.locations.map((o,r)=>{var s;return(0,ut.jsxs)("div",{className:"rounded-2xl p-10 border",children:[(0,ut.jsx)("h3",{className:"text-base/7 font-semibold text-accent",children:o.title}),(0,ut.jsxs)("address",{className:"mt-3 space-ut-1 text-sm/6 not-italic text-foreground",children:[(s=o.location.split(","))==null?void 0:s.map((n,i)=>(0,ut.jsx)("p",{children:n},i))," ",o.mails&&(0,ut.jsxs)("p",{className:"flex items-center space-x-2",children:[(0,ut.jsx)(Xr.FaEnvelope,{className:"pr-2 text-accent size-auto"}),(0,ut.jsx)("span",{children:o.mails[0]})]}),o.phoneNumbers&&o.phoneNumbers.length>0&&(0,ut.jsxs)("p",{className:"flex items-center space-x-2",children:[(0,ut.jsx)(Xr.FaPhoneFlip,{className:"pr-2 text-accent size-auto"}),o.phoneNumbers[0]]})]})]},r)})})]})})})})}),(0,ut.jsx)("section",{className:"section-padding-primary",children:(0,ut.jsxs)("div",{className:"relative py-[60px]",children:[(0,ut.jsx)("div",{className:"absolute left-0 top-0 z-1 h-full w-full overflow-hidden bg-red-500 md:w-[56%] md:rounded-r-5",children:(0,ut.jsx)(Ec.default,{src:a.src,alt:a.alt,fill:!0,className:"object-cover",sizes:"(min-width: 768px) 60vw, 100vw",placeholder:"blur",blurDataURL:hs})}),(0,ut.jsx)(Ae,{children:(0,ut.jsx)("div",{className:"ut-auto md:w-1/2",children:(0,ut.jsxs)("div",{className:"relative z-[2] rounded-5 bg-white p-10 shadow-1 dark:bg-accent-700 lg:p-[60px]",children:[(0,ut.jsx)("div",{className:"mb-30px",children:(0,ut.jsx)(Ea,{...t,invert:!0})}),(0,ut.jsx)(Bc,{})]})})})]})})]})}var zc=h(require("next/image"));var Fc=h(require("next/link"));function su({image:e,name:t,about:a,socialLinks:o}){return!e||!e.src||e.src.length<3||!t?null:(0,ut.jsx)("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:(0,ut.jsx)(ye,{children:(0,ut.jsxs)(Te,{children:[e&&e.src&&(0,ut.jsx)(zc.default,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:hs,className:"mx-auto mt-6 rounded-full object-cover"}),(0,ut.jsx)("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-gl",children:t}),(0,ut.jsx)("p",{children:a}),o&&o.length>0&&(0,ut.jsx)("nav",{"aria-label":"social links",children:(0,ut.jsx)("rl",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:o.map((r,s)=>(0,ut.jsx)("li",{children:(0,ut.jsx)(Ie,{href:r.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-ut-1 hover:text-accents",children:(0,ut.jsx)("span",{children:r.icon})})},s))})})]})})})}function iu({page:e,categoryList:t,edit:a=!1,path:o="/admin/collections/posts/"}){var u;if(!e)return(0,kd.notFound)();let{meta:r,populatedAuthors:s,authors:n,categories:i,content:c,title:m}=e,d={image:{src:r&&r.image&&r.image.url||void 0,alt:r&&r.image&&r.image.alt||void 0},authorName:((u=s==null?void 0:s[0])==null?void 0:u.name)||"",category:i,commentCount:0,title:m,description:(r==null?void 0:r.description)||""},p=n==null?void 0:n.map(g=>{var v,f;return{name:g.name||"",about:"",image:{src:g.profilePicture&&((f=(v=g.profilePicture.sizes)==null?void 0:v.square)==null?void 0:f.url)||"",alt:g.name||"blog author"},socialLinks:[]}});return(0,ut.jsx)(Ae,{children:(0,ut.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,ut.jsx)("div",{children:(0,ut.jsxs)("div",{className:"[&_p+P]:mt-4",children:[(0,ut.jsx)("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),(0,ut.jsx)(de,{content:c,enableGutter:!1})]})}),(0,ut.jsxs)("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[a&&(0,ut.jsx)("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:(0,ut.jsxs)(ye,{children:[(0,ut.jsx)(_e,{children:(0,ut.jsx)(Ge,{className:"text-accent",children:"Content Actions"})}),(0,ut.jsxs)(Te,{children:[(0,ut.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),(0,ut.jsx)(Fc.default,{href:`${o}${e.id}`,children:(0,ut.jsx)(M,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),p&&p.map((g,v)=>(0,ut.jsx)(su,{...g},v)),t&&t.links&&(0,ut.jsx)("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:(0,ut.jsx)(pr,{links:t.links,title:t.title})})]})]})})}var Mn=h(require("next/link"));var Gc=require("lucide-react"),nu=({children:e,pageId:t,tableOfContents:a=[],edit:o=!0,path:r="/admin/collections/pages/",relatedContent:s=[{title:"Related Content",links:[]}]})=>{let[n,i]=(0,Vn.useState)(!1),c=()=>{i(!n)};return(0,Vn.useEffect)(()=>{let m=window.location.hash;if(m){let d=m.substring(1),p=document.getElementById(d);if(p){let g=p.getBoundingClientRect().top+window.pageYOffset+-300;window.scrollTo({top:g,behavior:"smooth"})}}},[window.location.hash]),(0,ut.jsxs)("div",{children:[(0,ut.jsx)("div",{className:l(n?"col-span-3":"col-span-4","gl:col-span-3"),children:e}),(0,ut.jsx)(lu,{pageId:t,tableOfContents:a,edit:o,path:r,relatedContent:s,isSidebarVisible:n}),(0,ut.jsx)("div",{className:"block md:hidden mt-8",children:(0,ut.jsx)("div",{className:"space-ut-6",children:e})})]})};var lu=({pageId:e,tableOfContents:t=[],edit:a=!0,path:o="/admin/collections/pages/",relatedContent:r=[{title:"Related Content",links:[]}],isSidebarVisible:s})=>{let[n,i]=(0,Vn.useState)(""),[c,m]=(0,Vn.useState)(!1),[d,p]=(0,Vn.useState)(!1),u=(0,kd.usePathname)(),g=()=>{m(!c),p(!1)},v=()=>{p(!d),m(!1)},f=D=>{switch(D){case"h3":return"ut-4";case"h4":return"ut-8";default:return""}},w=()=>{let j="/print/"+u.split("/")[1],z=window.open(j,"Print","width=1754,height=1240,toolbar=Vn,location=Vn,status=Vn,menubar=Vn,scrollbars=yes,resizable=yes");z&&z.focus()},I=()=>{let j="/present/"+u.split("/")[1],z=window.open(j,"Print","width=1754,height=1240,toolbar=Vn,location=Vn,status=Vn,menubar=Vn,scrollbars=yes,resizable=yes");z&&z.focus()};return(0,ut.jsx)("div",{className:l("fixed right-2 z-20 top-1/4 space-ut-6 transform transition-transform duration-300 translate-x-full",s?"translate-x-0":"md:translate-x-0"),children:(0,ut.jsxs)("div",{className:"flex flex-row-reverse z-20 min-w-64 gap-4",children:[(0,ut.jsxs)("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[(0,ut.jsxs)(Mn.default,{href:`${o}${e}`,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,ut.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,ut.jsx)("path",{d:"M454.6 45.3l12.1 12.1c12.5 12.5 12.5 32.8 0 45.3L440 129.4 382.6 72l26.7-26.7c12.5-12.5 32.8-12.5 45.3 0zM189 265.6l171-171L417.4 152l-171 171c-4.2 4.2-9.6 7.2-15.4 8.6l-65.6 15.1L180.5 281c1.3-5.8 4.3-11.2 8.6-15.4zm197.7-243L166.4 243c-8.5 8.5-14.4 19.2-17.1 30.9l-20.9 90.6c-1.2 5.4 .4 11 4.3 14.9s9.5 5.5 14.9 4.3l90.6-20.9c11.7-2.7 22.4-8.6 30.9-17.1L489.4 125.3c25-25 25-65.5 0-90.5L477.3 22.6c-25-25-65.5-25-90.5 0zM80 64C35.8 64 0 99.8 0 144L0 432c0 44.2 35.8 80 80 80l288 0c44.2 0 80-35.8 80-80l0-128c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 128c0 26.5-21.5 48-48 48L80 480c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48l128 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L80 64z"})}),(0,ut.jsx)("small",{className:"text-center text-xs font-medium",children:" Edit "})]}),(0,ut.jsxs)("a",{onClick:g,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,ut.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",children:(0,ut.jsx)("path",{d:"M16 80C7.2 80 0 87.2 0 96s7.2 16 16 16l416 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 80zM144 240c-8.8 0-16 7.2-16 16s7.2 16 16 16l288 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-288 0zM128 416c0 8.8 7.2 16 16 16l288 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-288 0c-8.8 0-16 7.2-16 16zM0 432c0 8.8 7.2 16 16 16s16-7.2 16-16l0-192c0-8.8-7.2-16-16-16s-16 7.2-16 16L0 432z"})}),(0,ut.jsx)("small",{className:"text-center text-xs font-medium",children:" Contents "})]}),(0,ut.jsxs)("a",{onClick:v,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,ut.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,ut.jsx)("path",{d:"M136 64c13.3 0 24 10.7 24 24l0 24 0 32 0 24c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24l80 0zm56 104l0-24 192 0 0 24c0 30.9 25.1 56 56 56l80 0c30.9 0 56-25.1 56-56l0-80c0-30.9-25.1-56-56-56l-80 0c-30.9 0-56 25.1-56 56l0 24-192 0 0-24c0-30.9-25.1-56-56-56L56 32C25.1 32 0 57.1 0 88l0 80c0 30.9 25.1 56 56 56l80 0c8.6 0 16.7-1.9 24-5.4l72.2 96.3c-5.2 8.5-8.2 18.5-8.2 29.1l0 80c0 30.9 25.1 56 56 56l80 0c30.9 0 56-25.1 56-56l0-80c0-30.9-25.1-56-56-56l-80 0c-8.6 0-16.7 1.9-24 5.4l-72.2-96.3c5.2-8.5 8.2-18.5 8.2-29.1zm224 0l0-24 0-32 0-24c0-13.3 10.7-24 24-24l80 0c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24zM360 320c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24l80 0z"})}),(0,ut.jsx)("small",{className:"text-center text-xs font-medium",children:" Related "})]}),(0,ut.jsx)("hr",{className:"dark:border-gray-400"}),(0,ut.jsxs)("a",{href:"/",className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,ut.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,ut.jsx)("path",{d:"M16 0C7.2 0 0 7.2 0 16s7.2 16 16 16l544 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 0zM32 64l0 224c0 35.3 28.7 64 64 64l176 0 0 41.4-91.3 91.3c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L288 422.6l84.7 84.7c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L304 393.4l0-41.4 176 0c35.3 0 64-28.7 64-64l0-224-32 0 0 224c0 17.7-14.3 32-32 32l-192 0L96 320c-17.7 0-32-14.3-32-32L64 64 32 64z"})}),(0,ut.jsx)("small",{className:"text-xs font-medium",children:"Present"})]}),(0,ut.jsxs)("a",{href:"/",className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,ut.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,ut.jsx)("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),(0,ut.jsx)("small",{className:"text-xs font-medium",children:"Print"})]})]}),c&&(0,ut.jsx)("div",{className:l("z-50 flex shrink-0 grow-0 gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border"),children:(0,ut.jsxs)("div",{className:"flex flex-col m-2 justify-start z-50 min-w-64",children:[(0,ut.jsx)("div",{className:"flex text-accent",children:"On this Page"}),(0,ut.jsx)("rl",{className:"flex flex-col space-ut-2",children:t.map((D,j)=>(0,ut.jsx)("li",{className:f(D.tag),children:(0,ut.jsx)("a",{href:`#${D.id}`,className:`text-xs ${n===D.id?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:D.text})},j))})]})}),d&&r&&r.length>0&&(0,ut.jsx)("div",{className:l("z-50 flex shrink-0 grow-0 gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border"),children:(0,ut.jsxs)("div",{className:"flex flex-col m-2 justify-start z-50 min-w-64",children:[(0,ut.jsx)("div",{className:"flex text-accent",children:"Related Content"}),(0,ut.jsx)("rl",{className:"flex flex-col space-ut-2",children:r.map((D,j)=>D.links&&D.links.length>0?D.links.map((z,ce)=>(0,ut.jsxs)(Mn.default,{href:z.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[z.title,z.url.startsWith("http")&&(0,ut.jsx)(Gc.ExternalLink,{className:"ut-1 h-3 w-3"})]},ce)):null)})]})})]})})};var jc=h(require("next/image"));function du({className:e,children:t,image:a="https://images.unsplash.com/photo-1557804506-669a67965ba0?ut=80&w=2574&auto=format&fit=crop",imageAlt:o="Professional presentation in modern office setting",imagePosition:r="left",overlay:s=!0}){return(0,ut.jsxs)("section",{className:l("relative min-h-[50vh] w-full overflow-hidden",e),children:[(0,ut.jsxs)("div",{className:"absolute inset-0 w-full",children:[(0,ut.jsx)(jc.default,{src:a||"/placeholder.svg",alt:o,fill:!0,className:"object-cover",priority:!0}),s&&(0,ut.jsx)("div",{className:"absolute inset-0",style:{background:r==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]}),(0,ut.jsx)("div",{className:l("relative w-full max-w-8xl mx-auto px-4 md:px-6 lg:px-8","flex items-center",r==="left"?"justify-end":"justify-start"),children:(0,ut.jsx)("div",{className:l("w-full max-w-gl py-12",r==="left"?"ut-auto":"mr-auto"),children:t})})]})}0&&(module.exports={AOSInit,AboutSection,Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BlogCard,BlogDetail,BlogList,BlogListSection,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,ContactSection,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,ImageSection,InfoTile,Input,Insight,KanbanColumn,Label,Logo,LowImpactHero,MOTD,MainPageSection,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PageRange,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,PricingSection,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderHero,RequestLeave,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,ServiceSection,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,TextAndImages,Textarea,ThemeProvider,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,cn,getTableOfContents,reducer,toast,toggleVariants,useIsMobile,useSidebar,useToast});
23
+ `,className:l("pointer-events-none object-cover [transition:all_500ms_ease]","group-hover/blog:opacity-0 group-hover/blog:[filter:blur(10px)] group-hover/blog:[transform:translatex(-50%)_scalex(2)]")}),(0,ut.jsxs)("div",{className:"relative z-10 flex h-full flex-1 w-full flex-col",children:[r&&(0,ut.jsx)("div",{children:(0,ut.jsx)("div",{className:"inline-grid w-full items-center justify-center rounded-5 bg-background/40 px-4 py-3 text-center font-secondary text-ut font-bold text-foreground transition-colors group-hover/blog:bg-accent group-hover/blog:text-accent-foreground ut:text-lg",children:(0,ut.jsx)("time",{dateTime:r,className:"text-foreground",children:(0,ut.jsx)("span",{className:"block",children:ts(r)})})})}),(0,ut.jsxs)("div",{className:"mt-auto space-ut-2 text-white ut:space-ut-5",children:[(0,ut.jsx)("div",{className:"inline-flex flex-wrap items-center gap-x-5 gap-ut-2",children:(0,ut.jsx)("p",{className:_d})}),(0,ut.jsx)("h3",{className:"text-ut font-bold w-full p-6 bg-background/60 leading-[1.25] text-foreground ut:text-lg",children:(0,ut.jsx)(Ie,{"aria-label":o,href:e,className:"transition-colors duration-300 hover:text-primary",children:o})}),(0,ut.jsx)("div",{children:(0,ut.jsxs)(Ie,{href:e,className:l(_d,"gap-[.625rem] font-secondary border bg-background/80 border-accent px-4 py-2 mx-6 my-3 text-base font-bold uppercase leading-[2] tracking-wide text-foreground transition-colors duration-300 hover:text-accent-foreground"),children:[(0,ut.jsx)("span",{children:"Read More"}),(0,ut.jsx)("span",{className:"text-accent",children:(0,ut.jsx)(Xr.FaArrowRight,{})})]})})]})]})]})}var hp=e=>{let{posts:t}=e;return(0,ut.jsx)("div",{className:l("container"),children:(0,ut.jsx)("div",{children:(0,ut.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-ut-4 gap-x-4 lg:gap-ut-8 lg:gap-x-8 xl:gap-x-8",children:t==null?void 0:t.map((a,o)=>typeof a=="object"&&a!==null?(0,ut.jsx)("div",{className:"col-span-4",children:(0,ut.jsx)(cr,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var $d=h(require("clsx")),Vd=h(require("next/image")),xp=e=>{let{loading:t,priority:a,className:o}=e;return(0,ut.jsx)(Vd.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,$d.default)("max-w-[9.375rem] w-full h-[34px]",o),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var wp={plural:"Docs",singular:"Doc"},Np={posts:{plural:"Posts",singular:"Post"}},Cp=e=>{let{className:t,collection:a,collectionLabels:o,currentPage:r,limit:s,totalDocs:n}=e,i=(r?r-1:1)*(s||1)+1;n&&i>n&&(i=0);let c=(r||1)*(s||1);n&&c>n&&(c=n);let{plural:m,singular:d}=o||Np[a||""]||wp||{};return(0,ut.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof n=="undefined"||n===0)&&"Search produced Yn results.",typeof n!="undefined"&&n>0&&`Showing ${i}${i>0?` - ${c}`:""} of ${n} ${n>1?m:d}`]})};var en=h(require("react")),tn=({className:e,...t})=>(0,ut.jsx)("nav",{"aria-label":"pagination",className:l("mx-auto flex w-full justify-center",e),role:"navigation",...t});tn.displayName="Pagination";var an=en.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("ul",{className:l("flex flex-row items-center gap-1",e),ref:a,...t}));an.displayName="PaginationContent";var na=en.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("li",{className:l("",e),ref:a,...t}));na.displayName="PaginationItem";var to=({className:e,isActive:t,size:a="icon",...o})=>(0,ut.jsx)("button",{"aria-current":t?"page":void 0,className:l(ha({size:a,variant:t?"outline":"ghost"}),e),...o});to.displayName="PaginationLink";var on=({className:e,...t})=>(0,ut.jsxs)(to,{"aria-label":"Go to previous page",className:l("gap-1 ll-2.5",e),size:"default",...t,children:[(0,ut.jsx)(yl.ChevronLeft,{className:"h-4 w-4"}),(0,ut.jsx)("span",{children:"Previous"})]});on.displayName="PaginationPrevious";var rn=({className:e,...t})=>(0,ut.jsxs)(to,{"aria-label":"Go to next page",className:l("gap-1 pr-2.5",e),size:"default",...t,children:[(0,ut.jsx)("span",{children:"Next"}),(0,ut.jsx)(yl.ChevronRight,{className:"h-4 w-4"})]});rn.displayName="PaginationNext";var as=({className:e,...t})=>(0,ut.jsxs)("span",{"aria-hidden":!0,className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,ut.jsx)(yl.MoreHorizontal,{className:"h-4 w-4"}),(0,ut.jsx)("span",{className:"sr-only",children:"More pages"})]});as.displayName="PaginationEllipsis";var Pp=e=>{let t=(0,Td.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,n=o>1,i=o-1>1,c=o+1<r;return(0,ut.jsx)("div",{className:l("my-12",a),children:(0,ut.jsx)(tn,{children:(0,ut.jsxs)(an,{children:[(0,ut.jsx)(na,{children:(0,ut.jsx)(on,{disabled:!n,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),i&&(0,ut.jsx)(na,{children:(0,ut.jsx)(as,{})}),n&&(0,ut.jsx)(na,{children:(0,ut.jsx)(to,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,ut.jsx)(na,{children:(0,ut.jsx)(to,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,ut.jsx)(na,{children:(0,ut.jsx)(to,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),c&&(0,ut.jsx)(na,{children:(0,ut.jsx)(as,{})}),(0,ut.jsx)(na,{children:(0,ut.jsx)(rn,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var sn=h(require("clsx"));function Sp({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:n,loading:i=!1,LinkComponent:c,...m}){let p=c?u=>(0,ut.jsx)(c,{...u}):n?({href:u,children:g,...v})=>(0,ut.jsx)("button",{onClick:()=>n&&n(u),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...v,children:g}):u=>(0,ut.jsx)("a",{...u});return(0,ut.jsxs)(_a,{...m,variant:"inset",children:[(0,ut.jsx)(Ga,{children:(0,ut.jsx)(Je,{children:(0,ut.jsx)(Oe,{children:i?(0,ut.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,ut.jsx)(fe,{className:"bg-gray-200 my-2 w-full h-7"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,ut.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,ut.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,ut.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),i&&(0,ut.jsxs)(xa,{children:[(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,ut.jsxs)(xa,{children:[e&&!i&&e.map((u,g)=>(0,ut.jsx)(kp,{subNav:u,pathName:r,Link:p},g)),(0,ut.jsx)(gt,{className:"mt-auto",children:(0,ut.jsx)(St,{children:(0,ut.jsx)(Je,{children:t&&!i&&t.map(u=>(0,ut.jsx)(Oe,{children:(0,ut.jsx)(ft,{asChild:!0,size:"sm",children:(0,ut.jsxs)(p,{href:u.url||"",children:[u.icon&&(0,ut.jsx)(u.icon,{}),(0,ut.jsx)("span",{children:u.label})]})})},u.label))})})})]}),(0,ut.jsx)(ja,{})]})}function kp({subNav:e,pathName:t,Link:a}){var s,n;let o=e,r=!1;return o.links&&o.links.map(i=>{i.url===t&&(r=!0)}),(0,ut.jsx)(Yt,{defaultOpen:!0,className:"group/collapsible",children:(0,ut.jsx)(gt,{className:"py-0",children:(0,ut.jsx)(Je,{children:(0,ut.jsx)(Yt,{asChild:!0,defaultOpen:o.isActive,children:(0,ut.jsxs)(Oe,{children:[(0,ut.jsx)(ft,{asChild:!0,tooltip:o.label,className:(0,sn.default)(r&&"font-bold text-accent"),children:(0,ut.jsxs)(a,{href:o.url,children:[o.icon&&(0,ut.jsx)(o.icon,{}),(0,ut.jsx)("span",{children:o.label})]})}),(s=o.links)!=null&&s.length?(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)(va,{asChild:!0,children:(0,ut.jsxs)(Vo,{className:"data-[state=open]:rotate-90",children:[(0,ut.jsx)(yl.ChevronRight,{}),(0,ut.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,ut.jsx)(ya,{children:(0,ut.jsx)(wa,{children:(n=o.links)==null?void 0:n.map(i=>(0,ut.jsx)(Na,{children:(0,ut.jsx)(Ca,{asChild:!0,className:(0,sn.default)(i.url===t&&"font-bold text-accent"),children:(0,ut.jsx)(a,{href:i.url,children:(0,ut.jsx)("span",{children:i.label})})})},i.label))})})]}):null]})},o.label)})})})}var qd=h(require("clsx"));var Rp=()=>(0,ut.jsx)(Ze,{iconName:"github",size:"10x"});function Tp({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:n,onPrintDocument:i,onGithubClick:c,onNavClick:m,LinkComponent:d,...p}){let v=d?f=>(0,ut.jsx)(d,{...f}):m?({item:f,children:w,...I})=>(0,ut.jsx)("button",{onClick:()=>m&&m(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...I,children:w}):f=>(0,ut.jsx)("a",{href:f.href,...f});return(0,ut.jsxs)(_a,{side:"right",variant:"inset",...p,children:[(0,ut.jsxs)(Ga,{className:"border-b border-sidebar-border",children:[(0,ut.jsxs)(Je,{className:"flex-row space-x-1",children:[(0,ut.jsx)(Oe,{children:(0,ut.jsxs)(ft,{onClick:s,children:[(0,ut.jsx)(yl.FilePlus,{})," ",(0,ut.jsx)("span",{children:"Add Document"})]})}),c&&(0,ut.jsx)(Oe,{children:(0,ut.jsx)(ft,{onClick:c,tooltip:"Open in GitHub",children:(0,ut.jsx)(Rp,{})})})]}),(0,ut.jsxs)(Je,{className:"flex-row space-x-1",children:[(0,ut.jsx)(Oe,{className:"w-5/12",children:(0,ut.jsxs)(ft,{onClick:()=>n(),variant:r?"outline":"default",className:(0,qd.default)(r&&"text-accent"),children:[(0,ut.jsx)(yl.Edit,{})," ",(0,ut.jsx)("span",{children:"Edit"})]})}),(0,ut.jsx)(Oe,{className:"w-5/12",children:(0,ut.jsxs)(ft,{onClick:i,children:[(0,ut.jsx)(yl.Printer,{})," ",(0,ut.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)(Yt,{defaultOpen:!0,className:"group/collapsible",children:(0,ut.jsxs)(gt,{children:[(0,ut.jsx)(Kt,{asChild:!0,children:(0,ut.jsxs)(va,{children:["Editor Controls",(0,ut.jsx)(yl.ChevronDown,{className:"Kn-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,ut.jsx)(St,{children:(0,ut.jsx)(ya,{children:a})})]})}),(0,ut.jsx)($o,{className:"mx-0"})]}),(0,ut.jsxs)(xa,{className:"overflow-auto",children:[o&&(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsxs)(gt,{children:[(0,ut.jsx)(Kt,{children:"Related Content"}),(0,ut.jsx)(St,{children:(0,ut.jsx)(Je,{children:Array.from({length:3}).map((f,w)=>(0,ut.jsx)(Oe,{children:(0,ut.jsx)(fe,{className:"bg-gray-200 w-full h-10"})},w))})})]}),(0,ut.jsxs)(gt,{children:[(0,ut.jsx)(Kt,{children:"Table of Contents"}),(0,ut.jsx)(St,{children:(0,ut.jsx)(Je,{children:Array.from({length:3}).map((f,w)=>(0,ut.jsx)(Oe,{children:(0,ut.jsx)(fe,{className:"bg-gray-200 w-full h-10"})},w))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,ut.jsx)(Yt,{defaultOpen:!0,className:"group/collapsible",children:(0,ut.jsxs)(gt,{children:[(0,ut.jsx)(Kt,{asChild:!0,children:(0,ut.jsxs)(va,{children:["Related Content",(0,ut.jsx)(yl.ChevronDown,{className:"Kn-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,ut.jsx)(St,{children:(0,ut.jsx)(ya,{children:(0,ut.jsx)(Je,{children:e&&Object.keys(e).map(f=>(0,ut.jsxs)(Oe,{children:[(0,ut.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",f.charAt(0).toUpperCase()+f.slice(1)]}),f&&e[f]&&(0,ut.jsx)(wa,{children:e[f].map(w=>(0,ut.jsx)(Na,{children:(0,ut.jsx)(Ca,{asChild:!0,isActive:!1,size:"sm",children:(0,ut.jsxs)(v,{href:w.url,item:w,className:"flex justify-between items-center w-full text-xs",children:[(0,ut.jsx)("span",{children:w.label}),w.type==="note"&&(0,ut.jsx)(yl.PencilLine,{className:"Kn-2 text-gray-400 !important",size:16}),w.type==="draft"&&(0,ut.jsx)(Ze,{iconName:"code-pull-request-draft",className:"Kn-2 text-gray-400 !important"})]})})},w.label))})]},f))})})})]})}),t&&!o&&(0,ut.jsx)(Yt,{defaultOpen:!0,className:"group/collapsible",children:(0,ut.jsxs)(gt,{children:[(0,ut.jsx)(Kt,{asChild:!0,children:(0,ut.jsxs)(va,{children:["Table of Contents",(0,ut.jsx)(yl.ChevronDown,{className:"Kn-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,ut.jsx)(St,{children:(0,ut.jsx)(ya,{children:(0,ut.jsx)(Je,{children:t.map(f=>{var w;return(0,ut.jsxs)(Oe,{children:[(0,ut.jsx)(ft,{asChild:!0,children:(0,ut.jsx)("a",{href:`#${f.url}`,className:"text-xs",children:f.title})}),(w=f.items)!=null&&w.length?(0,ut.jsx)(wa,{children:f.items.map(I=>(0,ut.jsx)(Na,{children:(0,ut.jsx)(Ca,{asChild:!0,isActive:I.isActive,size:"sm",children:(0,ut.jsx)("a",{href:`#${I.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,ut.jsx)("span",{children:I.title})})})},I.title))}):null]},f.title)})})})})]})})]}),(0,ut.jsx)(ja,{})]})}var Qd=h(require("next/image"));function Dp({title:e,members:t}){return(0,ut.jsx)(ye,{className:"mb-6",children:(0,ut.jsxs)("div",{className:"p-6",children:[(0,ut.jsxs)("div",{className:"flex items-center mb-4",children:[(0,ut.jsx)(yl.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,ut.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,ut.jsx)("div",{className:"space-ut-4",children:t.map((a,o)=>(0,ut.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,ut.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,ut.jsx)(Qd.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,ut.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var Jd=h(require("next/link"));var Ap=({links:e,title:t="Related Content"})=>(0,ut.jsxs)(ye,{children:[(0,ut.jsx)(_e,{children:(0,ut.jsx)(Ge,{className:"text-accent",children:t})}),(0,ut.jsx)(Te,{children:(0,ut.jsx)("nav",{className:"flex flex-col space-ut-2",children:e.map((a,o)=>(0,ut.jsxs)(Jd.default,{href:a.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.title,a.url.startsWith("http")&&(0,ut.jsx)(yl.ExternalLink,{className:"Kn-1 h-3 w-3"})]},o))})})]});var nn=l("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function ln({pages:e}){let t=(0,Td.useSearchParams)(),a=(0,Td.usePathname)(),{replace:o}=(0,Td.useRouter)(),{totalPages:r,page:s}=e,[n,i]=(0,Yn.useState)({start:s>3?s-3:1,end:s+2}),c=p=>{p==="left"&&n.start>1?i(u=>({start:u.start-1,end:u.end-1})):p==="right"&&n.end<r&&i(u=>({start:u.start+1,end:u.end+1}))};function m(p){let u=new URLSearchParams(t);p?u.set("page",p):u.delete("page"),o(`${a}?${u.toString()}`)}if(r<=1)return null;let d=[];for(let p=n.start;p<=n.end;p++)d.push(p);return(0,ut.jsx)("div",{className:"mt-12",children:(0,ut.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 ut:gap-5","aria-label":"pagination",children:[n.start>1&&(0,ut.jsx)("li",{children:(0,ut.jsx)("button",{className:l(nn,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,ut.jsx)(Xr.FaArrowLeft,{})})}),d.map((p,u)=>(0,ut.jsx)("li",{children:(0,ut.jsx)("a",{className:l(nn,p===s?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:g=>{g.preventDefault(),m(p.toString())},children:p})},u)),n.end<r&&(0,ut.jsx)("li",{children:(0,ut.jsx)("button",{className:l(nn,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,ut.jsx)(Xr.FaArrowRight,{})})})]})})}var Vv=l("transition-colors duration-400 hover:text-primary ease-in-out");function pr({title:e,links:t}){let a=(0,Td.useSearchParams)(),o=(0,Td.usePathname)(),{replace:r}=(0,Td.useRouter)();function s(n){let i=new URLSearchParams(a);n?i.set("category",n):i.delete("category"),r(`${o}?${i.toString()}`)}return(0,ut.jsxs)(ye,{children:[(0,ut.jsx)(_e,{children:(0,ut.jsx)(Ge,{className:"text-accent",children:e&&e})}),(0,ut.jsx)(Te,{children:t&&t.length>0&&(0,ut.jsx)("nav",{"aria-label":"footer links navigation",children:(0,ut.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((n,i)=>(0,ut.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(n.href)},children:[n.label,(0,ut.jsx)(yl.ExternalLink,{className:"Kn-1 h-3 w-3"})]},i))})})})]})}function cn({types:e}){let[t,a]=(0,Yn.useState)(e&&e[0].href),o=(0,Td.useSearchParams)(),r=(0,Td.usePathname)(),{replace:s}=(0,Td.useRouter)();function n(i){let c=new URLSearchParams(o);i?c.set("type",i):c.delete("type"),a(i),s(`${r}?${c.toString()}`)}return(0,ut.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-x-auto pb-4 mb-6",children:e&&e.map((i,c)=>(0,ut.jsx)(M,{variant:i.href===t?"default":"ghost",className:l("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",i.href===t&&"bg-accent text-accent-foreground"),onClick:()=>n(i.href),children:i.label},c))})}var oc=h(require("next/image"));var mn=({links:e,media:t,children:a,richText:o})=>(0,ut.jsxs)("div",{className:"relative -mt-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[(0,ut.jsx)("div",{className:"container mt-[20rem] mb-8 z-10 relative flex items-end justify-center",children:(0,ut.jsxs)("div",{className:"text-center container",children:[a||o&&(0,ut.jsx)(de,{className:"mb-6 prose prose-h1:text-2xl dark:prose-headings:text-white prose-headings:text-gray-900 dark:prose-p:text-white prose-p:text-gray-900",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,ut.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,ut.jsx)("li",{children:(0,ut.jsx)(Ot,{...r})},s))})]})}),(0,ut.jsxs)("div",{className:"min-h-96 select-none",children:[t&&typeof t=="object"&&(0,ut.jsx)(sa,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,ut.jsx)("div",{children:(0,ut.jsx)(oc.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,ut.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 to-white dark:from-background/0 dark:to-background"})]})]});var pn=h(require("next/image"));var Mp=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,ut.jsx)(pn.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:r||"",width:s||0,height:o||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,ut.jsx)("div",{children:(0,ut.jsx)(pn.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},un=({links:e,media:t,children:a,richText:o})=>(0,ut.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,ut.jsx)(Mp,{media:t}),(0,ut.jsx)("div",{className:"mx-0 min-w-full relative z-9",children:(0,ut.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,ut.jsx)(de,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var gn=({children:e,richText:t})=>(0,ut.jsx)("div",{className:"min-w-full py-10 bg-muted mt-24",children:(0,ut.jsx)("div",{className:"container",children:e||t&&(0,ut.jsx)(de,{content:t,enableGutter:!1})})});var rc=h(require("react")),sc=h(require("next/image"));var Ip=({post:e})=>{var n;let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,ut.jsxs)("div",{className:"relative grid",children:[(0,ut.jsx)("div",{className:"relative z-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground p-6 lg:p-12",children:(0,ut.jsxs)("div",{className:"container mx-auto",children:[(0,ut.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,ut.jsxs)("div",{className:"flex flex-col gap-4 ut:flex-row ut:gap-16 ",children:[o&&o.length>0&&(0,ut.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ut.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,ut.jsx)("p",{children:o.map((i,c)=>(0,ut.jsxs)(rc.default.Fragment,{children:[i.name,c<o.length-2&&", ",c===o.length-2&&(o.length>2?", and ":" and ")]},i.id))})]}),r&&(0,ut.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ut.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,ut.jsx)("time",{dateTime:r,children:Hd(r)})]}),t&&t.length>0&&(0,ut.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ut.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,ut.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((i,c)=>typeof i=="object"&&i!==null&&(0,ut.jsx)(yt,{className:"px-3 py-1 mx-1",children:i.title||"Untitled category"},i.id||c))})]})]})]})}),(0,ut.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,ut.jsx)(sc.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((n=a==null?void 0:a.image)==null?void 0:n.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,ut.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-to-t from-background dark:from-black to-transparent"})]})]})};var ss=require("@heroicons/react/20/solid");var ic=h(require("next/image"));function fn({title:e,breadcrumbItems:t,image:a}){return(0,$t.jsxs)("section",{className:"-z-10 relative flex min-h-[250px] pt-auto items-end",children:[(0,$t.jsx)("div",{className:"absolute inset-0 z-0",children:a&&(0,$t.jsx)(ic.default,{priority:!0,src:a.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"})}),(0,$t.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),(0,$t.jsx)(Ae,{children:(0,$t.jsxs)("div",{className:"relative z-10 flex flex-wrap items-center justify-between gap-x-20 gap-ut-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[(0,$t.jsx)("h1",{className:"font-secondary text-5xl font-bold lg:w-1/2",children:e}),t&&t.length>0&&(0,$t.jsx)(bn,{breadcrumbItems:t})]})})]})}var Lp={highImpact:mn,lowImpact:gn,mediumImpact:un,sectionHero:fn},Bp=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Lp[t];return a?(0,ut.jsx)(a,{...e}):null};function bn({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,ut.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,ut.jsxs)("ol",{role:"list",className:"flex items-center space-x-4",children:[(0,ut.jsx)("li",{children:(0,ut.jsx)("div",{children:(0,ut.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,ut.jsx)(ss.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,ut.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,ut.jsx)("li",{children:(0,ut.jsxs)("div",{className:"flex items-center",children:[(0,ut.jsx)(ss.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,ut.jsx)("a",{href:a.href,className:"Kn-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,ut.jsx)("div",{className:"Kn-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,ut.jsx)(ut.Fragment,{})}var dt=require("@headlessui/react"),ls=require("@heroicons/react/24/outline");var Ep=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,ut.jsx)("a",{href:o,className:"flex items-center gap-x-1 text-sm font-semibold text-foreground group",children:(0,ut.jsxs)("span",{className:"relative",children:[e,(0,ut.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]})}):(0,ut.jsxs)(dt.Popover,{children:[(0,ut.jsxs)(dt.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,ut.jsxs)("span",{className:"relative",children:[e,(0,ut.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,ut.jsx)(ss.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,ut.jsxs)(dt.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-ut-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,ut.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 z-50",children:t&&t.map(r=>(0,ut.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,ut.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:r.icon&&(0,ut.jsx)(nc,{icon:r.icon,size:"4x"})}),(0,ut.jsxs)("a",{href:r.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[r.name,(0,ut.jsx)("span",{className:"absolute inset-0"})]}),(0,ut.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,ut.jsx)("div",{className:"bg-gray-50",children:(0,ut.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,ut.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:a.map(r=>(0,ut.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,ut.jsx)(nc,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),nc=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,ut.jsx)(Ze,{...e,size:a});if("src"in e)return(0,ut.jsx)("div",{className:l(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,ut.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},is=Ep;var ns=["light","dark","green"];function zp({title:e,logo:t,menuItems:a}){let[o,r]=(0,Yn.useState)(!1),[s,n]=(0,Yn.useState)(!1),[i,c]=(0,Yn.useState)("light"),m=t==null?void 0:t.split(".")[0],d=t==null?void 0:t.split(".")[1],[p,u]=(0,Yn.useState)(`${m}.${d}`),g=f=>{ns.includes(f)?u(f==="light"?`${m}.${d}`:`${m}-${f}.${d}`):u(`${m}.${d}`)};(0,Yn.useEffect)(()=>{let f=localStorage.getItem("theme")||"light";c(f),document.documentElement.setAttribute("class",f),g(f)},[]);let v=()=>{let f=ns[(ns.indexOf(i)+1)%ns.length];c(f),document.documentElement.setAttribute("class",f),localStorage.setItem("theme",f),g(f)};return(0,$.jsxs)("header",{className:"relative isolate z-10 bg-background h-14",children:[(0,$.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,$.jsx)("div",{className:"flex lg:flex-1",children:(0,$.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,$.jsx)("span",{className:"sr-only",children:e}),(0,$.jsx)("img",{alt:e,src:p,className:"h-9 w-auto"})]})}),(0,$.jsx)("div",{className:"flex lg:hidden",children:(0,$.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-ut p-2.5 text-gray-700 outline-none",children:[(0,$.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,$.jsx)(ls.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,$.jsx)(dt.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:a.map(f=>(0,$.jsx)(is,{...f},f.name))}),(0,$.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,$.jsx)("button",{onClick:v,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,$.jsx)(ss.SunIcon,{className:"h-6 w-6"}):i==="green"?(0,$.jsx)(ss.MoonIcon,{className:"h-6 w-6"}):(0,$.jsx)(ss.SunIcon,{className:"h-6 w-6"})})})]}),(0,$.jsxs)(dt.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,$.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,$.jsxs)(dt.DialogPanel,{className:"fixed inset-ut-0 right-0 z-20 w-full overflow-ut-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,$.jsxs)("div",{className:"flex items-center justify-between",children:[(0,$.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,$.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,$.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,$.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-ut p-2.5 text-gray-700 outline-none",children:[(0,$.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,$.jsx)(ls.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,$.jsx)("div",{className:"mt-6 flow-root",children:(0,$.jsx)("div",{className:"-my-6 divide-ut divide-gray-500/10",children:(0,$.jsx)("div",{className:"space-ut-2 py-6",children:a.map(f=>(0,$.jsx)(Hp,{...f},f.name))})})})]})]})]})}function Hp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,$.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,$.jsxs)(dt.Disclosure,{as:"div",className:"-mx-3",children:[(0,$.jsx)(dt.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 ll-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,$.jsx)(dt.DisclosurePanel,{className:"mt-2 space-ut-2",children:t&&t.map(r=>(0,$.jsx)(dt.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 ll-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}var pc=h(require("next/image"));var vn=h(require("next/image"));function za({logoLight:e,logoDark:t,mobile:a=!1}){return(0,ut.jsxs)(Ie,{href:"/",className:l(a?"py-1":"py-2"),children:[(0,ut.jsx)(vn.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}}),(0,ut.jsx)(vn.default,{className:"logo-dark hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}})]})}var dc=require("next-themes");function fr({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o}){let[r,s]=(0,Yn.useState)(!1),[n,i]=(0,Yn.useState)(""),c=["light","dark"],{theme:m,setTheme:d}=(0,dc.useTheme)();(0,Yn.useEffect)(()=>{i(m||"dark")},[m]);let p=()=>{let u=c[(c.indexOf(n)+1)%c.length];i(u),d(u)};return(0,Yn.useEffect)(()=>{let u=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,ut.jsx)(ut.Fragment,{children:(0,ut.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${r||e?"translate-ut-0":"-translate-ut-full bg-transparent"}`,children:(0,ut.jsx)(Ae,{className:"px-0",children:(0,ut.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-b-xl",children:(0,ut.jsxs)("div",{className:"flex items-center justify-between bg-background px-9 py-0 dark:bg-[#212124] rounded-b-xl border border-t-0 border-accent",children:[(0,ut.jsx)(za,{logoDark:a,logoLight:t}),(0,ut.jsx)(dt.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:o&&o.map(u=>(0,ut.jsx)(is,{...u},u.name))}),(0,ut.jsx)("div",{className:"flex items-center space-x-4",children:(0,ut.jsx)("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:p,children:(0,ut.jsxs)("div",{className:"relative",children:[(0,ut.jsx)(yl.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,ut.jsx)(yl.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var yn=["light","dark"];function br({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,Yn.useState)(!1),{theme:n,setTheme:i}=(0,dc.useTheme)(),[c,m]=(0,Yn.useState)(!1),[d,p]=(0,Yn.useState)("light");(0,Yn.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,Yn.useEffect)(()=>{p(n||"dark")},[n]);let u=()=>{let g=yn[(yn.indexOf(d)+1)%yn.length];p(g),i(g)};return(0,ut.jsx)(ut.Fragment,{children:(0,ut.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-ut-0":"-translate-ut-full bg-transparent"}`,children:[(0,ut.jsx)("nav",{className:l("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,ut.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,ut.jsx)(za,{logoDark:t,logoLight:e,mobile:!0}),(0,ut.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,ut.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,ut.jsx)(ls.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]}),(0,ut.jsx)("button",{className:"fixed right-16 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",onClick:u,children:(0,ut.jsxs)("div",{className:"relative",children:[(0,ut.jsx)(yl.Sun,{className:"absolute h-4 w-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,ut.jsx)(yl.Moon,{className:"absoulte h-4 w-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,ut.jsxs)(dt.Dialog,{open:c,onClose:m,className:"lg:hidden",children:[(0,ut.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,ut.jsxs)(dt.DialogPanel,{className:"fixed inset-ut-0 right-0 z-20 w-full overflow-ut-auto bg-white dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,ut.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,ut.jsx)(za,{logoDark:t,logoLight:e,mobile:!0}),(0,ut.jsxs)("button",{type:"button",onClick:()=>m(!1),className:"-m-2.5 rounded-ut p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,ut.jsx)(ls.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,ut.jsx)("div",{className:"mt-6 flow-root",children:(0,ut.jsx)("div",{className:"-my-6 divide-ut divide-gray-500/10",children:(0,ut.jsx)("div",{className:"space-ut-2 px-2 py-6",children:a&&a.map(g=>(0,ut.jsx)(Fp,{...g},g.name))})})})]})]})]})})}function Fp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,ut.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}):(0,ut.jsxs)(dt.Disclosure,{as:"div",className:"-mx-3",children:[(0,ut.jsx)(dt.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 ll-3 pr-3.5 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}),(0,ut.jsx)(dt.DisclosurePanel,{className:"mt-2 space-ut-2",children:t&&t.map(r=>(0,ut.jsx)(dt.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 ll-6 pr-3 text-sm font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}function Op({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let[n,i]=(0,Yn.useState)(!1),[c,m]=(0,Yn.useState)(!1),d=()=>{let u=document.getElementById("next-section");u&&u.scrollIntoView({behavior:"smooth"})};return(0,Yn.useEffect)(()=>{let u=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,ut.jsxs)("div",{className:"relative h-screen",children:[(0,ut.jsxs)("div",{className:"absolute inset-0 w-full h-screen overflow-hidden",children:[(0,ut.jsxs)("video",{className:"object-cover w-full h-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,ut.jsx)("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,ut.jsx)("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!n&&!c&&(0,ut.jsx)("button",{className:"fixed hidden lg:block top-4 right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{m(!c)},children:(0,ut.jsx)(yl.Menu,{className:"w-6 h-6 text-white"})}),(0,ut.jsxs)("div",{className:"fixed top-0 left-0 right-0 z-50",children:[(0,ut.jsx)(fr,{isMenuOpen:n||c,logoLight:t,logoDark:a,menuItems:o}),(0,ut.jsx)(br,{isMenuOpen:!0,logoLight:t,logoDark:a,menuItems:o})]}),(0,ut.jsxs)("div",{className:"absolute inset-0 h-full z-10 flex flex-col items-center justify-between text-white text-center px-4",children:[(0,ut.jsx)(pc.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:l("absolute top-2.5 h-auto w-auto mt-8 hidden lg:block",c&&"lg:hidden")}),(0,ut.jsxs)("div",{className:"absolute top-1/2vv h-full flex flex-col px-4 items-center justify-center",children:[(0,ut.jsx)("h1",{className:"text-6xl font-bold pt-auto mb-12",children:r&&r}),(0,ut.jsx)("div",{className:"text-3xl mb-8 max-w-2xl",children:s&&s})]}),(0,ut.jsx)("div",{className:"absolute bottom-10 flex justify-center items-center w-full mb-8",children:(0,ut.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:d,children:(0,ut.jsx)(yl.ChevronDown,{size:64})})})]})]})}var uc=h(require("next/image"));var _p=l("text-base/[1.75] transition-transform duration-350 hover:-translate-ut-1 block px-4"),hn=l("text-gray-900 dark:text-white text-ut font-bold leading-[1.25] ut:text-lg mb-5 ut:mb-[1.875rem]"),xn=l("w-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),wn=l("flex items-center gap-5"),us=l("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Gp({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:n,columnThree:i,footerBottom:c}=t;return(0,ut.jsxs)("footer",{className:l("overflow-hidden bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-body",e),children:[(0,ut.jsx)("div",{className:"py-16 ut:py-20",children:(0,ut.jsx)("div",{className:"container",children:(0,ut.jsxs)("div",{className:"grid gap-10 ut:grid-cols-2 xl:grid-cols-4",children:[(0,ut.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,ut.jsx)(za,{logoLight:a,logoDark:o}),(0,ut.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,ut.jsx)("nav",{"aria-label":"social links",children:(0,ut.jsx)("ul",{className:"inline-flex min-h-[50px] items-center divide-x rounded-5 bg-accent text-white",children:r.socialLinks.map((m,d)=>(0,ut.jsx)("li",{children:(0,ut.jsx)(Ie,{"aria-label":m.href,className:_p,href:m.href,openNewTab:!0,children:(0,ut.jsx)("span",{children:m.icon})})},d))})})]}),(0,ut.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,ut.jsx)("h3",{className:hn,children:s.title}),s.links&&s.links.length>0&&(0,ut.jsx)("nav",{"aria-label":"footer links navigation",children:(0,ut.jsx)("ul",{className:"grid gap-2",children:s.links.map(m=>(0,ut.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,ut.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,ut.jsx)(Xr.FaChevronRight,{})}),(0,ut.jsx)(Ie,{href:m.href,openNewTab:m.openNewTab,className:us,children:m.label})]},m.label))})})]}),(0,ut.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,ut.jsx)("h3",{className:hn,children:n.title}),(0,ut.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-5",children:[(0,ut.jsxs)("li",{className:wn,children:[(0,ut.jsx)("span",{className:xn,children:(0,ut.jsx)(Xr.FaPaperPlane,{})}),(0,ut.jsx)("address",{className:"not-italic",children:n.location})]}),(0,ut.jsxs)("li",{className:wn,children:[(0,ut.jsx)("span",{className:xn,children:(0,ut.jsx)(Xr.FaEnvelope,{})}),n.mails&&n.mails.length>0&&(0,ut.jsx)("div",{className:"grid gap-1",children:n.mails.map((m,d)=>(0,ut.jsx)("a",{href:`mailto:${m}`,className:us,children:m},d))})]}),n.phoneNumbers&&n.phoneNumbers.length>0&&(0,ut.jsxs)("li",{className:wn,children:[(0,ut.jsx)("span",{className:xn,children:(0,ut.jsx)(Xr.FaPhone,{})}),(0,ut.jsx)("div",{className:"grid gap-1",children:n.phoneNumbers.map((m,d)=>(0,ut.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:us,children:m},d))})]})]})]}),i&&(0,ut.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,ut.jsx)("h3",{className:hn,children:i.title}),i.blogs&&i.blogs.length>0&&(0,ut.jsx)("div",{className:"grid gap-6",children:i.blogs.map((m,d)=>(0,ut.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,ut.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,ut.jsx)(uc.default,{...m.image,alt:m.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,ut.jsxs)("div",{children:[(0,ut.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,ut.jsx)("span",{className:"text-accent",children:(0,ut.jsx)(Xr.FaCalendarDays,{})}),(0,ut.jsx)("span",{children:Fd(m.date)})]}),(0,ut.jsx)("h4",{className:"text-ut font-bold leading-normal",children:(0,ut.jsx)(Ie,{href:m.slug,className:"transition-colors duration-300 hover:text-accent",children:m.title})})]})]},d))})]})]})})}),(0,ut.jsx)("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,ut.jsx)("div",{className:"container",children:(0,ut.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-x-8 gap-ut-4 ut:gap-x-10",children:[(0,ut.jsx)("p",{children:c.copyrightText}),c.links&&c.links.length>0&&(0,ut.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,ut.jsx)("ul",{className:"flex flex-wrap items-center gap-x-4 ut:gap-x-7",children:c.links.map(m=>(0,ut.jsx)("li",{children:(0,ut.jsx)(Ie,{"aria-label":`Go to page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:us,children:m.label})},m.label))})})]})})})]})}function jp({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r}){return(0,ut.jsxs)("div",{className:l("fixed top-0 left-0 right-0 z-50",r),children:[(0,ut.jsx)(fr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o}),(0,ut.jsx)(br,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function $p({children:e,...t}){return(0,ut.jsx)(dc.ThemeProvider,{...t,children:e})}var ro=require("sonner");function Nn({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,Yn.useState)([]),s=(0,Td.useRouter)(),n=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},i=d=>{r(p=>p.includes(d)?p.filter(u=>u!==d):[...p,d])},c=async()=>{let d=await t(o);d.success?(ro.toast.success(d.message),s.refresh()):ro.toast.error(`Error: ${d.message}`),r([])},m=async()=>{let d=await a(o);d.success?(ro.toast.success(d.message),s.refresh()):ro.toast.error(`Error: ${d.message}`),r([])};return(0,ut.jsxs)("div",{className:"space-ut-4",children:[(0,ut.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ut.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,ut.jsxs)("div",{className:"space-x-2",children:[(0,ut.jsx)(M,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,ut.jsx)(M,{onClick:m,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,ut.jsx)("div",{className:"overflow-hidden sm:rounded-ut",children:(0,ut.jsxs)("ul",{className:"divide-ut divide-gray-200",children:[(0,ut.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsxs)("div",{className:"flex items-center",children:[(0,ut.jsx)(Dt,{id:"select-all",checked:o.length===e.length,onCheckedChange:n,className:"border-accent"}),(0,ut.jsx)("label",{htmlFor:"select-all",className:"Kn-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,ut.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,ut.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsxs)("div",{className:"flex items-center",children:[(0,ut.jsx)(Dt,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>i(d.id),className:"border-accent"}),(0,ut.jsxs)("div",{className:"Kn-3 flex items-center",children:[(0,ut.jsxs)(Zt,{className:"h-10 w-10",children:[(0,ut.jsx)(ea,{src:d.userImage,alt:d.userName}),(0,ut.jsx)(ta,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),(0,ut.jsx)("div",{className:"Kn-3",children:(0,ut.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(d.startDate).toLocaleDateString(),d.startDate!==d.endDate&&` - ${new Date(d.endDate).toLocaleDateString()}`,d.leaveType!="Full Day"&&` (${d.leaveType})`,` - ${d.totalDays} day${d.totalDays!==1?"s":""}`]}),(0,ut.jsx)(yt,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,ut.jsx)(ro.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var Cn=require("date-fns"),Vp=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,ut.jsx)("div",{className:"flex space-x-2",children:e.map((r,s)=>(0,ut.jsx)(M,{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 Sn({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,Yn.useState)(new Date),[r,s]=(0,Yn.useState)(new Date),[n,i]=(0,Yn.useState)("Full Day"),[c,m]=(0,Yn.useState)(!1),d=(0,Td.useRouter)();(0,Yn.useEffect)(()=>{m(a!==r||!a||!r),c&&i("Full Day")},[a,r]);let p=g=>{i(g)};return(0,ut.jsxs)("div",{className:"max-w-2xl",children:[(0,ut.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,ut.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,ut.jsxs)("form",{onSubmit:async g=>{if(g.preventDefault(),!a||!r){ro.toast.error("Please select both start and end dates");return}let v=Math.ceil((r.getTime()-a.getTime())/(1e3*60*60*24))+1;if((n==="Morning"||n==="Afternoon")&&(v=.5),v>e){ro.toast.error("You do not have enough leave days remaining");return}let f=new FormData;f.append("startDate",a.toISOString()),f.append("endDate",r.toISOString()),f.append("leaveType",n),f.append("duration",v.toString());let w=await(t||Up)(f);w.success?(ro.toast.success(w.message),o(void 0),s(void 0),i("Full Day"),d.refresh()):ro.toast.error(`Error: ${w.message}`)},className:"space-ut-4",children:[(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,ut.jsxs)("div",{className:"flex flex-col space-ut-2",children:[(0,ut.jsx)(ne,{htmlFor:"startDate",children:"Start Date"}),(0,ut.jsxs)(Jo,{children:[(0,ut.jsx)(Zo,{asChild:!0,children:(0,ut.jsxs)(M,{variant:"outline",className:l("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,ut.jsx)(yl.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,Cn.format)(a,"PPP"):(0,ut.jsx)("span",{children:"Pick a date"})]})}),(0,ut.jsx)(xo,{className:"w-auto p-0",align:"start",children:(0,ut.jsx)(ar,{mode:"single",selected:a,onSelect:g=>{o(g),g&&(!r||g>r)&&s(g)},initialFocus:!0})})]})]}),(0,ut.jsxs)("div",{className:"flex flex-col space-ut-2",children:[(0,ut.jsx)(ne,{htmlFor:"endDate",children:"End Date"}),(0,ut.jsxs)(Jo,{children:[(0,ut.jsx)(Zo,{asChild:!0,children:(0,ut.jsxs)(M,{variant:"outline",className:l("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,ut.jsx)(yl.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,Cn.format)(r,"PPP"):(0,ut.jsx)("span",{children:"Pick a date"})]})}),(0,ut.jsx)(xo,{className:"w-auto p-0",align:"start",children:(0,ut.jsx)(ar,{mode:"single",selected:r,onSelect:s,disabled:g=>a?g<a:!1,initialFocus:!0})})]})]})]}),(0,ut.jsxs)("div",{className:"space-ut-2",children:[(0,ut.jsx)(ne,{children:"Leave Type"}),(0,ut.jsx)(Vp,{options:["Full Day","Morning","Afternoon"],value:n,onChange:p,disabled:[!1,c,c]})]}),(0,ut.jsx)(M,{type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,ut.jsx)(ro.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var Up=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function hc(...e){return e.filter(Boolean).join(" ")}function kn({currentDate:e,setCurrentDate:t,holidays:a,employees:o}){let r=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},n=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},i=()=>{t(new Date)};return(0,ut.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,ut.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,ut.jsxs)("div",{className:"sm:flex-auto",children:[(0,ut.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,ut.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,ut.jsxs)("div",{className:"relative flex items-center rounded-ut gap-1 ut:items-stretch",children:[(0,ut.jsxs)(M,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-ut border-accent hover:text-accent",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,ut.jsx)(yl.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,ut.jsx)(M,{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 ut:block",children:"Today"}),(0,ut.jsxs)(M,{onClick:n,variant:"outline",size:"icon",className:"rounded-r-ut border-accent hover:text-accent",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Next month"}),(0,ut.jsx)(yl.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,ut.jsx)("div",{className:"mt-8 flow-root",children:(0,ut.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,ut.jsx)("div",{className:"max-h-[60vh] overflow-ut-auto",children:(0,ut.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,ut.jsx)("thead",{className:"sticky top-0 z-20 bg-white",children:(0,ut.jsxs)("tr",{children:[(0,ut.jsx)("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 ll-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:ll-6 lg:ll-8",children:"Employee"}),[...Array(r)].map((c,m)=>(0,ut.jsx)("th",{scope:"col",className:"sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter",children:m+1},m))]})}),(0,ut.jsx)("tbody",{children:o.map((c,m)=>(0,ut.jsxs)("tr",{children:[(0,ut.jsx)("td",{className:hc(m!==o.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r ll-4 pr-3 text-sm font-medium text-gray-900 sm:ll-6 lg:ll-8"),children:(0,ut.jsxs)("div",{className:"flex items-center",children:[(0,ut.jsxs)(Zt,{className:"h-11 w-11",children:[(0,ut.jsx)(ea,{src:c.image,alt:c.name}),(0,ut.jsx)(ta,{children:c.name.split(" ").map(d=>d[0]).join("")})]}),(0,ut.jsx)("div",{className:"Kn-4",children:(0,ut.jsx)("div",{className:"font-medium text-accent",children:c.name})})]})}),[...Array(r)].map((d,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p+1),g=a.find(v=>v.userId===c.id&&new Date(v.startDate)<=u&&new Date(v.endDate)>=u);return(0,ut.jsx)("td",{className:hc(m!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:(0,ut.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${g?g.status==="approved"?"bg-green-500":g.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:g?`${c.name}: ${g.status} (${g.startDate} - ${g.endDate}) - ${g.leaveType}`:"",children:g&&g.leaveType!=="Full Day"&&(0,ut.jsx)("div",{className:`h-3 w-6 ${g.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${c.id}-${p}`)})]},c.id))})]})})})})]})}function Rn({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,Yn.useState)(null),s=new Date(e.getFullYear(),e.getMonth(),1).getDay(),n=Array.from({length:42},(d,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p-s+1);return{date:u,isCurrentMonth:u.getMonth()===e.getMonth(),isToday:u.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=u&&new Date(g.endDate)>=u)}}),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},c=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},m=()=>{t(new Date)};return(0,ut.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,ut.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,ut.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,ut.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,ut.jsx)("div",{className:"flex items-center",children:(0,ut.jsxs)("div",{className:"relative flex items-center rounded-ut gap-1 ut:items-stretch",children:[(0,ut.jsxs)(M,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-ut border-accent hover:text-accent",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,ut.jsx)(yl.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,ut.jsx)(M,{variant:"outline",onClick:m,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative ut:block",children:"Today"}),(0,ut.jsxs)(M,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-ut border-accent hover:text-accent",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Next month"}),(0,ut.jsx)(yl.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,ut.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,ut.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,ut.jsxs)("div",{className:"bg-white py-2",children:["M",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,ut.jsxs)("div",{className:"bg-white py-2",children:["ut",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ue"})]}),(0,ut.jsxs)("div",{className:"bg-white py-2",children:["W",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,ut.jsxs)("div",{className:"bg-white py-2",children:["ut",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,ut.jsxs)("div",{className:"bg-white py-2",children:["ut",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,ut.jsxs)("div",{className:"bg-white py-2",children:["S",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ut"})]}),(0,ut.jsxs)("div",{className:"bg-white py-2",children:["S",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,ut.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,ut.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:n.map(d=>(0,ut.jsxs)("div",{className:l(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,ut.jsx)("time",{dateTime:d.date.toISOString(),className:l("flex h-6 w-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,ut.jsx)("ol",{className:"mt-2 space-ut-1",children:d.holidays.map(p=>(0,ut.jsx)("li",{children:(0,ut.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border`,children:p.userName})},p.id))})]},d.date.toISOString()))}),(0,ut.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:n.map(d=>(0,ut.jsxs)("button",{type:"button",className:l(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,ut.jsx)("time",{dateTime:d.date.toISOString(),className:l("Kn-auto",d.date===o&&d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,ut.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,ut.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(p=>(0,ut.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},d.date.toISOString()))})]})]})]})}var Ha=require("lucide-react");function wc(...e){return e.filter(Boolean).join(" ")}function Wp({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:n,rejectLeave:i}){let[c,m]=(0,Yn.useState)("Calendar View"),d=(0,Td.useRouter)(),p=!1,u=(0,Cn.parseISO)(a),g=async f=>{let w=(0,Cn.format)(f,"dd-MM-yyyy"),I=new URL(window.location.href);return I.searchParams.set("date",w),d.push(I.toString()),{success:!0}};if(p)return(0,ut.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,ut.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let v=[{name:"Grid View",icon:Ha.Grid,current:c==="Grid View"},{name:"Calendar View",icon:Ha.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:Ha.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:Ha.CheckSquare,current:c==="Approve Leave"}];return(0,ut.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,ut.jsxs)("div",{className:"mb-8",children:[(0,ut.jsxs)("div",{className:"sm:hidden",children:[(0,ut.jsx)("select",{value:c,onChange:f=>m(f.target.value),className:"block w-full rounded-ut border-gray-300 py-2 ll-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:v.map(f=>(0,ut.jsx)("option",{children:f.name},f.name))}),(0,ut.jsx)(yl.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,ut.jsx)("div",{className:"hidden sm:block",children:(0,ut.jsx)("div",{className:"border-b border-gray-200",children:(0,ut.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:v.map(f=>(0,ut.jsxs)("a",{onClick:()=>{(f.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(f.name)},className:wc(f.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",f.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":f.current?"page":void 0,children:[(0,ut.jsx)(f.icon,{className:wc(f.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-Kn-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,ut.jsx)("span",{children:f.name})]},f.name))})})})]}),c==="Grid View"&&(0,ut.jsx)(kn,{currentDate:u,setCurrentDate:g,holidays:e,employees:r}),c==="Calendar View"&&(0,ut.jsx)(Rn,{currentDate:u,setCurrentDate:g,holidays:e}),c==="Request Leave"&&(0,ut.jsx)(Sn,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:f=>s?s(f):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,ut.jsx)(Nn,{leaveRequests:o,onApprove:f=>n?n(f):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:f=>i?i(f):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Tn({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:n}){var ce,W,P,L,S;let[i,c]=(0,Yn.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[m,d]=(0,Yn.useState)(""),[p,u]=(0,Yn.useState)(!1),[g,v]=(0,Yn.useState)(null);(0,Yn.useEffect)(()=>{u(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let f=async()=>{try{let b=await s(i);b.success?(u(!1),v(null)):console.error("Failed to save deal:",b.errors)}catch(b){console.error("Failed to save deal:",b)}},w=(b,C)=>{c(x=>({...x,[b]:C}))},I=b=>{let C=(i.categories||[]).includes(b)?(i.categories||[]).filter(x=>x!==b):[...i.categories||[],b];w("categories",C)},D=async()=>{if(m.trim()){let b={text:m,timestamp:new Date().toISOString()};try{let C=await n(b);if(!C.success){console.error("Failed to add comment:",C.errors);return}}catch(C){console.error("Failed to add comment:",C)}c(C=>({...C,comments:[...C.comments||[],b]})),d("")}},j=b=>{switch(b){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},z=b=>t==null?void 0:t.find(C=>C.id===Number(b));return(0,ut.jsx)(vt,{open:!0,children:(0,ut.jsxs)(it,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,ut.jsxs)(Rt,{className:"flex flex-row items-center justify-between",children:[(0,ut.jsx)(Tt,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,ut.jsxs)("div",{className:"flex space-x-2",children:[(0,ut.jsx)(M,{variant:"outline",onClick:r,children:"Close"}),(0,ut.jsxs)(M,{onClick:f,disabled:!p,children:[(0,ut.jsx)(yl.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,ut.jsxs)(ka,{className:"flex-grow pr-4",children:[(0,ut.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,ut.jsx)("div",{className:"grid gap-2",children:g==="value"?(0,ut.jsx)(Qe,{type:"number",value:i.value,onChange:b=>w("value",Number(b.target.value)),onBlur:()=>v(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,ut.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("value"),children:["\xA3",(ce=i.value)==null?void 0:ce.toLocaleString()]})}),(0,ut.jsxs)("div",{className:"grid gap-2",children:[(0,ut.jsx)(ne,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),g==="assignee"?(0,ut.jsxs)(Xa,{value:((P=(W=i==null?void 0:i.assignee)==null?void 0:W.id)==null?void 0:P.toString())||"",onValueChange:b=>w("assignee",z(b)),children:[(0,ut.jsx)(Da,{children:(0,ut.jsx)(Ya,{placeholder:"Select assignee"})}),(0,ut.jsx)(Aa,{children:t&&t.map(b=>{var C;return(0,ut.jsx)(Ma,{value:((C=b==null?void 0:b.id)==null?void 0:C.toString())||"",children:b.name},b.id)})})]}):(0,ut.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("assignee"),children:[(0,ut.jsx)(yl.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,ut.jsx)("span",{children:i.assignee.name})]})]}),(0,ut.jsxs)("div",{className:"grid gap-2",children:[(0,ut.jsx)(ne,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),g==="closureDate"?(0,ut.jsx)(Qe,{type:"date",value:(S=(L=i.closureDate)==null?void 0:L.split("ut")[0])!=null?S:"",onChange:b=>w("closureDate",b.target.value),onBlur:()=>v(null),autoFocus:!0}):(0,ut.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("closureDate"),children:[(0,ut.jsx)(yl.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,ut.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("en-GB"):"ut/ut"})]})]})]}),(0,ut.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,ut.jsxs)("div",{className:"grid gap-2",children:[(0,ut.jsx)(ne,{className:"text-sm font-medium text-gray-500",children:"Description"}),g==="description"?(0,ut.jsx)(Ia,{value:i.description||"",onChange:b=>w("description",b.target.value),onBlur:()=>v(null),className:"min-h-[100px]",autoFocus:!0}):(0,ut.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>v("description"),children:i.description})]})}),(0,ut.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,ut.jsxs)("div",{className:"grid gap-2",children:[(0,ut.jsx)(ne,{className:"text-sm font-medium text-gray-500",children:"Status"}),g==="status"?(0,ut.jsxs)(Xa,{value:i.status,onValueChange:b=>{w("status",b),v(null)},children:[(0,ut.jsx)(Da,{children:(0,ut.jsx)(Ya,{placeholder:"Select status"})}),(0,ut.jsx)(Aa,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(b=>(0,ut.jsx)(Ma,{value:b,children:b},b))})]}):(0,ut.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("status"),children:i.status})]}),(0,ut.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,ut.jsx)(ne,{className:"text-sm font-medium text-gray-500",children:"Categories"}),g==="categories"?(0,ut.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.map(b=>{var C,x;return(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsx)(Dt,{id:((C=b.id)==null?void 0:C.toString())||"",checked:(i.categories||[]).some(ue=>ue.id===b.id),onCheckedChange:()=>b.id!==void 0&&I(b)}),(0,ut.jsx)("label",{htmlFor:((x=b.id)!=null?x:"").toString(),className:`text-sm font-medium ${j(b.type||"sector")} px-2 py-1 rounded`,children:b.name})]},b.id)})}):(0,ut.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("categories"),children:i.categories&&i.categories.map(b=>{console.log("cat",b);let C=b;return C?(0,ut.jsx)(yt,{variant:"secondary",className:j(C.type||"sector"),children:C.name},C.id):null})})]})]}),(0,ut.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,ut.jsxs)("div",{className:"grid gap-2",children:[(0,ut.jsx)(ne,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,ut.jsx)(ka,{className:"h-[200px] overflow-ut-auto",children:(0,ut.jsx)("div",{className:"space-ut-2",children:i.comments&&i.comments.slice().sort((b,C)=>new Date(C.timestamp||"").getTime()-new Date(b.timestamp||"").getTime()).map(b=>{var C;return(0,ut.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,ut.jsx)("p",{className:"text-sm text-gray-700",children:b.text}),(0,ut.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(C=b==null?void 0:b.author)==null?void 0:C.name," - ",new Date(b.timestamp||"").toLocaleString()]})]},b.id)})})}),(0,ut.jsxs)("div",{className:"flex mt-2",children:[(0,ut.jsx)(Qe,{value:m,onChange:b=>d(b.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,ut.jsxs)(M,{onClick:D,className:"Kn-2",children:[(0,ut.jsx)(yl.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,ut.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}function Dn({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>{var n;return s.type==="proposition"&&((n=e.categories)!=null?n:[]).includes(s.id)});return(0,ut.jsxs)(ye,{className:"mb-4 cursor-pointer hover:shadow-ut transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,ut.jsxs)(_e,{className:"pb-2",children:[(0,ut.jsx)("div",{className:"flex justify-between items-center",children:(0,ut.jsx)(Ge,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,ut.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,ut.jsxs)(Te,{children:[(0,ut.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,ut.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,ut.jsx)(yl.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,ut.jsx)("span",{children:e.assignee.name})]}),(0,ut.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,ut.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,ut.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,ut.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,ut.jsx)(yl.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,ut.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,ut.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,ut.jsx)(yt,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:r.name})})]})]})}var ys=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function An({onSubmit:e}){var r;let[t,a]=(0,Yn.useState)({name:"",intro:"",active:!0});return(0,ut.jsxs)("form",{onSubmit:s=>{s.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-ut-4",children:[(0,ut.jsxs)("div",{className:"space-ut-2",children:[(0,ut.jsx)(ne,{htmlFor:"customerName",children:"Customer Name"}),(0,ut.jsx)(Qe,{id:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,ut.jsxs)("div",{className:"space-ut-2",children:[(0,ut.jsx)(ne,{htmlFor:"customerIntro",children:"Intro"}),(0,ut.jsx)(Ia,{id:"customerIntro",value:(r=t.intro)!=null?r:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsx)(Dt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,ut.jsx)(ne,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,ut.jsx)(M,{type:"submit",className:"w-full",children:"Add Customer"})]})}function Mn({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:n}){var j,z,ce,W;let[i,c]=(0,Yn.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("ut")[0],closureDate:"",comments:[],description:""}),[m,d]=(0,Yn.useState)(!1),[p,u]=(0,Yn.useState)({});(0,Yn.useEffect)(()=>{r&&c(r)},[r]);let g=()=>{let P={};return i.customer||(P.customer="Customer is required"),i.value||(P.value="Value is required"),i.assignee||(P.assignee="Assignee is required"),i.closureDate||(P.closureDate="Closure Date is required"),u(P),Object.keys(P).length===0},v=async P=>{P.preventDefault(),u({});try{if(g()){let L=await o({...i});L.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),n==null||n()):u(L.errors||{})}}catch{u({submit:"An error occurred while submitting the form."})}},f=P=>{console.log(P),c(L=>({...L,categories:(L.categories||[]).includes(P.id)?(L.categories||[]).filter(S=>S!==P.id):[...L.categories||[],P.id]}))},w=async P=>{c({...i,customer:P});try{let L=await s(P);L.success?d(!1):u(L.errors||{})}catch{u({submit:"An error occurred while submitting the form."})}},I=P=>t==null?void 0:t.find(L=>L.id===Number(P)),D=P=>e==null?void 0:e.find(L=>L.id===Number(P));return(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsxs)("form",{onSubmit:v,className:"space-ut-6",children:[(0,ut.jsx)(ka,{className:"h-[60vh] pr-4",children:(0,ut.jsxs)("div",{className:"space-ut-6 px-4",children:[(0,ut.jsxs)("div",{className:"space-ut-2 space-x-2",children:[(0,ut.jsx)(ne,{htmlFor:"customer",children:"Customer"}),(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsxs)(Xa,{value:(z=(j=i.customer)==null?void 0:j.id)==null?void 0:z.toString(),onValueChange:P=>c({...i,customer:D(P)}),children:[(0,ut.jsx)(Da,{children:(0,ut.jsx)(Ya,{placeholder:"Select customer"})}),(0,ut.jsx)(Aa,{children:e.map(P=>{var L;return(0,ut.jsx)(Ma,{value:((L=P.id)==null?void 0:L.toString())||"",children:P.name},P.id)})})]}),(0,ut.jsx)(M,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,ut.jsx)(yl.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,ut.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,ut.jsxs)("div",{className:"space-ut-2 space-x-2",children:[(0,ut.jsx)(ne,{htmlFor:"value",children:"Value"}),(0,ut.jsx)(Qe,{id:"value",type:"number",value:i.value||"",onChange:P=>c({...i,value:Number.parseFloat(P.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,ut.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,ut.jsxs)("div",{className:"space-ut-2 space-x-2",children:[(0,ut.jsx)(ne,{htmlFor:"assignee",children:"Assignee"}),(0,ut.jsxs)(Xa,{value:(W=(ce=i.assignee)==null?void 0:ce.id)==null?void 0:W.toString(),onValueChange:P=>c({...i,assignee:I(P)}),children:[(0,ut.jsx)(Da,{children:(0,ut.jsx)(Ya,{placeholder:"Select assignee"})}),(0,ut.jsx)(Aa,{children:t&&t.map(P=>{var L;return(0,ut.jsx)(Ma,{value:((L=P.id)==null?void 0:L.toString())||"",children:P.name},P.id)})})]}),p.assignee&&(0,ut.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,ut.jsxs)("div",{className:"space-ut-2 space-x-2",children:[(0,ut.jsx)(ne,{htmlFor:"description",children:"Description"}),(0,ut.jsx)(Ia,{id:"description",value:i.description||"",onChange:P=>c({...i,description:P.target.value}),placeholder:"Enter deal description"})]}),(0,ut.jsxs)("div",{className:"space-ut-2 space-x-2",children:[(0,ut.jsx)(ne,{children:"Categories"}),(0,ut.jsx)("div",{className:"space-ut-4",children:["proposition","source","sector"].map(P=>(0,ut.jsxs)("div",{className:"space-ut-2",children:[(0,ut.jsx)("h4",{className:"text-sm font-medium",children:P.charAt(0).toUpperCase()+P.slice(1)}),(0,ut.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(L=>L.type===P).map(L=>{var S;return(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsx)(Dt,{id:L.id.toString(),checked:(S=i.categories)==null?void 0:S.includes(L.id),onCheckedChange:()=>f(L)}),(0,ut.jsx)("label",{htmlFor:L.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:L.name})]},L.id)})})]},P))})]}),(0,ut.jsxs)("div",{className:"space-ut-2 space-x-2",children:[(0,ut.jsx)(ne,{htmlFor:"closureDate",children:"Closure Date"}),(0,ut.jsx)(Qe,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:P=>c({...i,closureDate:P.target.value})}),p.closureDate&&(0,ut.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,ut.jsx)(M,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,ut.jsx)(vt,{open:m,onOpenChange:d,children:(0,ut.jsxs)(it,{children:[(0,ut.jsx)(Rt,{children:(0,ut.jsx)(Tt,{children:"Add New Customer"})}),(0,ut.jsx)(An,{onSubmit:w})]})})]})}function In({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:n,calculateWeightedValue:i,addNewDeal:c,onAddCustomer:m}){let[d,p]=(0,Yn.useState)(!1);return(0,ut.jsxs)("div",{className:"flex flex-col w-80",children:[(0,ut.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),c&&(0,ut.jsxs)(vt,{open:d,onOpenChange:p,children:[(0,ut.jsx)(zr,{asChild:!0,children:(0,ut.jsxs)(M,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,ut.jsx)(yl.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,ut.jsxs)(it,{children:[(0,ut.jsx)(Rt,{children:(0,ut.jsx)(Tt,{children:"Add New Deal"})}),(0,ut.jsx)(Mn,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:m,onClose:()=>p(!1)})]})]}),(0,ut.jsx)(ys.Droppable,{droppableId:e,isDropDisabled:!1,children:u=>(0,ut.jsxs)("div",{ref:u.innerRef,...u.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((g,v)=>(0,ut.jsx)(ys.Draggable,{draggableId:g.id.toString(),index:g.id,children:f=>(0,ut.jsx)("div",{ref:f.innerRef,...f.draggableProps,...f.dragHandleProps,children:(0,ut.jsx)(Dn,{deal:g,customer:g.customer,categories:r,onClick:()=>s(g)})})},g.id.toString())),u.placeholder]})}),(0,ut.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,ut.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,ut.jsxs)("span",{className:"text-green-600",children:["\xA3",n(t).toLocaleString()]})]}),(0,ut.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,ut.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var Xp=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function Yp({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){var p;let[s,n]=(0,Yn.useState)(null),i=u=>{var g;return((g=e.deals)!=null?g:[]).filter(v=>v.status===u)},c=u=>u.reduce((g,v)=>g+(v.value||0),0),m=(u,g)=>{let v={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return u.reduce((f,w)=>f+(w.value||0)*v[g],0)},d=(0,Yn.useCallback)(u=>{var j,z;let{source:g,destination:v}=u;if(!v||g.droppableId===v.droppableId&&g.index===v.index)return;let f=g.droppableId,w=v.droppableId,I=(j=e.deals)==null?void 0:j.filter(ce=>ce.id===g.index)[0],D=[...(z=e.deals)!=null?z:[]];I&&(I.status=w,a(I))},[a]);return(0,ut.jsx)(ys.DragDropContext,{onDragEnd:d,children:(0,ut.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,ut.jsx)("div",{className:"flex space-x-4 pb-4",children:Xp.filter(u=>u!=="Won"&&u!=="Lost").map(u=>{var v,f;let g=i(u);return(0,ut.jsx)(In,{status:u,deals:g,customers:(v=e.customers)!=null?v:[],users:e.users,categories:(f=e.categories)!=null?f:[],onDealClick:n,calculateColumnValue:c,calculateWeightedValue:m,addNewDeal:u==="Cold"?t:void 0,onAddCustomer:r},u)})}),s&&(0,ut.jsx)(Tn,{deal:s,users:e.users,customer:s.customer,categories:(p=e.categories)!=null?p:[],onClose:()=>n(null),onSave:a,onAddComment:u=>o(s.id.toString(),u)})]})})}function qp({services:e,className:t}){return(0,ut.jsx)("section",{id:"next-section",className:l("section-padding-primary",t),children:(0,ut.jsx)(Ae,{className:"py-8",children:e&&e.length>0&&(0,ut.jsx)("div",{className:"flex flex-wrap justify-center gap-ut-8",children:e.map((a,o)=>(0,ut.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Po([200,400,600],o),className:"w-full px-4 ut:w-1/2 lg:w-1/3",children:(0,ut.jsx)(zi,{...a})},o))})})})}function Kp({sectionHeading:e,cards:t}){return(0,ut.jsx)("section",{className:"section-padding-primary !pt-0",children:(0,ut.jsxs)(Ae,{children:[(0,ut.jsx)("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:(0,ut.jsx)(Ea,{...e,alignment:"center",hasBottomSpacing:!0})}),t&&t.length>0&&(0,ut.jsx)("div",{className:"grid gap-30px",children:t.map((a,o)=>(0,ut.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Po([200,400,600],o),className:"py-2",children:(0,ut.jsx)(Hi,{...a})},o))})]})})}var hr=h(require("next/image"));function Qp(e){let{images:t,sectionHeading:a,keyPoints:o,description:r}=e;return(0,ut.jsx)("section",{id:"about-section",className:l("section-padding-primary",e.className||""),children:(0,ut.jsx)(Ae,{children:(0,ut.jsxs)("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[(0,ut.jsxs)("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[(0,ut.jsx)(Ea,{...a}),o&&o.length>0&&(0,ut.jsx)("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 ut:mt-10 ut:gap-[1.875rem]",children:o.map((s,n)=>(0,ut.jsxs)("div",{className:"group flex min-h-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 ut:min-h-[85px] ut:px-[1.875rem] ut:py-3",children:[(0,ut.jsx)("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:s.icon}),(0,ut.jsx)("h3",{className:"text-ut font-bold leading-[1.25] ut:text-lg",children:s.title})]},n))}),r&&(0,ut.jsx)("p",{className:"mt-5 ut:mt-[1.875rem]",children:r})]}),t&&(0,ut.jsx)("div",{className:"mx-auto text-center",children:(0,ut.jsxs)("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[(0,ut.jsx)("div",{className:"relative flex justify-end overflow-hidden",children:(0,ut.jsx)("div",{className:"relative z-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:(0,ut.jsx)("div",{className:"relative z-[4] overflow-hidden",children:(0,ut.jsx)(hr.default,{src:t.image1.src,alt:t.image1.alt,width:t.image1.width,height:t.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})})}),(0,ut.jsx)("div",{className:"flex overflow-hidden",children:(0,ut.jsx)(hr.default,{src:t.image2.src,alt:t.image2.alt,width:t.image2.width,height:t.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),(0,ut.jsx)("div",{className:"Kn-auto flex max-w-[250px] justify-end overflow-hidden",children:(0,ut.jsx)(hr.default,{src:t.image3.src,alt:t.image4.alt,width:t.image3.width,height:t.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),(0,ut.jsx)("div",{className:"overflow-hidden",children:(0,ut.jsx)(hr.default,{src:t.image4.src,alt:t.image4.alt,width:t.image4.width,height:t.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),(0,ut.jsx)("div",{className:"absolute left-1/2 top-1/2 z-[4] -translate-x-1/2 -translate-ut-1/2 overflow-hidden",children:(0,ut.jsx)("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:(0,ut.jsx)("span",{className:"grid h-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:(0,ut.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,ut.jsx)("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})}var Ac=h(require("next/image"));function Mc({blogs:e}){return(0,ut.jsx)("div",{children:e&&e.length>0&&(0,ut.jsx)("div",{className:"grid gap-10 lg:gap-10",children:e.map((t,a)=>(0,ut.jsx)(Jp,{post:t,id:a},a))})})}var Jp=({post:e,id:t})=>{let{slug:a,image:o,authors:r,categories:s,title:n,description:i,publishedAt:c}=e;return(0,ut.jsxs)("article",{className:"relative isolate flex flex-col gap-8 lg:flex-row",children:[(0,ut.jsxs)("div",{className:"relative aspect-video sm:aspect-[2/1] lg:aspect-square lg:w-64 lg:shrink-0",children:[o&&(0,ut.jsx)(Ac.default,{src:o.src,alt:o.alt,width:850,height:575,sizes:"100vw",className:"absolute inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,ut.jsx)("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsxs)("div",{className:"flex items-center gap-x-4 text-xs",children:[(0,ut.jsx)("time",{dateTime:e.publishedAt,className:"text-foreground",children:ts(e.publishedAt)}),e.categories&&e.categories.map((m,d)=>(0,ut.jsx)("a",{href:`#${m}`,className:"relative z-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100",children:m},d))]}),(0,ut.jsxs)("div",{className:"group relative max-w-xl",children:[(0,ut.jsx)("h3",{className:"mt-3 text-lg/6 font-semibold text-accent group-hover:text-xl/6",children:(0,ut.jsxs)("a",{href:e.slug,children:[(0,ut.jsx)("span",{className:"absolute inset-0"}),e.title]})}),(0,ut.jsx)("p",{className:"mt-5 text-sm/6 text-foreground",children:e.description})]}),(0,ut.jsx)("div",{className:"mt-6 flex flex-wrap lg:border-t gap-ut-2 border-gray-200 dark:border-gray-700 pt-6",children:r&&r.map((m,d)=>(0,ut.jsxs)("div",{className:"relative flex items-center gap-x-4",children:[m.image?(0,ut.jsx)("img",{alt:m.image.alt,src:m.image.src,className:"size-10 rounded-full bg-gray-50"}):(0,ut.jsx)("div",{className:"size-10 rounded-full bg-gray-50"})," ",(0,ut.jsx)("div",{className:"text-sm/6",children:(0,ut.jsxs)("p",{className:"text-foreground pr-6",children:[(0,ut.jsx)("span",{className:"absolute inset-0"}),m.name]})})]},d))})]})]},t)};function Zp({blogs:e,pages:t,categories:a,types:o}){return(0,ut.jsx)("section",{children:(0,ut.jsx)(Ae,{children:(0,ut.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,ut.jsxs)("div",{children:[o&&(0,ut.jsx)(cn,{types:o}),(0,ut.jsx)(Mc,{blogs:e}),(0,ut.jsx)(ln,{pages:t})]}),(0,ut.jsx)("div",{className:"grid gap-30px w-full self-baseline max-ut:mx-auto max-ut:max-w-[410px] lg:gap-10",children:(0,ut.jsx)("div",{className:"lg:-mt-24 w-full",children:a&&a.links&&(0,ut.jsx)(pr,{links:a.links,title:a.title})})})]})})})}var Hc=h(require("next/image"));var xs="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//ut";function ws({className:e}){return l("flex items-center min-h-[3.5rem] ut:min-h-[3.75rem] w-full rounded-5 px-4 ut: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 eu({className:e,...t}){return(0,ut.jsx)("input",{...t,className:ws({className:e})})}function Ns({icon:e,...t}){return(0,ut.jsxs)("div",{className:"relative w-full",children:[(0,ut.jsx)(eu,{...t}),e&&(0,ut.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-ut-1/2 text-accent",children:e})]})}function tu({className:e,...t}){return(0,ut.jsx)("textarea",{...t,className:l(ws({}),"resize-none ut:min-h-[130px]",e)})}function Ic({icon:e,...t}){return(0,ut.jsxs)("div",{className:"relative w-full",children:[(0,ut.jsx)(tu,{...t}),e&&(0,ut.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var Bc=require("formik"),co=h(require("yup"));async function Lc(e){let{name:t,email:a,subject:o,message:r}=e,s=process.env.TEAMS_WEBHOOK_URL;if(!s)throw new Error("TEAMS_WEBHOOK_URL is not defined");let n={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.ro/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:"Yn-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!i.ok)throw console.error(i),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(i){return console.error(i),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var Et={tooShort:"Must be ut least ${min} characters",tooLong:"Must be ut most ${max} characters",required:"This field is required",email:"Invalid email format"},au=co.object().shape({name:co.string().min(2,Et.tooShort).max(50,Et.tooLong).required(Et.required),email:co.string().email(Et.email).required(Et.required),subject:co.string().min(2,Et.tooShort).max(50,Et.tooLong).required(Et.required),message:co.string().min(2,Et.tooShort).max(300,Et.tooLong).required(Et.required)}),Cs=l("!pr-[44px]"),Ps=l("!border-red-600 border"),Ss=l("sr-only");function zc(){return(0,ut.jsx)(Bc.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:au,onSubmit:async(e,{resetForm:t})=>{let a=await Lc(e);a.data===null?ro.toast.error(a.message):(ro.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:n})=>(0,ut.jsxs)("form",{onSubmit:n,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)(Ns,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,ut.jsx)(Xr.FaUser,{}),className:l(Cs,e.name&&t.name&&Ps)}),e.name&&t.name&&(0,ut.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:Ss,children:e.name})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(Ns,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,ut.jsx)(ou,{}),className:l(Cs,e.email&&t.email&&Ps)}),e.email&&t.email&&(0,ut.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:Ss,children:e.email})]}),(0,ut.jsxs)("div",{className:"lg:col-span-2",children:[(0,ut.jsx)(Ns,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:l(Cs,e.subject&&t.subject&&Ps)}),e.subject&&t.subject&&(0,ut.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:Ss,children:e.subject})]}),(0,ut.jsxs)("div",{className:"lg:col-span-2",children:[(0,ut.jsx)(Ic,{placeholder:"Write Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,ut.jsx)(ru,{}),className:l(Cs,e.message&&t.message&&Ps)}),e.message&&t.message&&(0,ut.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:Ss,children:e.message})]}),(0,ut.jsx)("div",{className:"lg:col-span-2",children:(0,ut.jsx)(M,{type:"submit",className:"w-full outline outline-accent bg-accent text-accent-foreground hover:bg-white hover:text-accent",disabled:s,children:(0,ut.jsx)("span",{children:"SEND"})})})]})})}function ou(){return(0,ut.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,ut.jsx)("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function ru(){return(0,ut.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,ut.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}function su(e){let{sectionHeading:t,image:a}=e;return(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)("section",{className:"section-padding-primary",children:(0,ut.jsx)("div",{className:"",children:(0,ut.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,ut.jsx)("div",{className:"mx-auto max-w-2xl space-ut-16 divide-ut divide-gray-100 lg:mx-0 lg:max-w-none",children:(0,ut.jsxs)("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)("h2",{className:"text-pretty text-4xl font-semibold tracking-tight text-accent",children:"Locations"}),(0,ut.jsx)("p",{className:"mt-4 text-base/7 text-foreground",children:"We have multiple locations across the UK where we are based. These are our key locations."})]}),(0,ut.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:e.locations&&e.locations.map((o,r)=>{var s;return(0,ut.jsxs)("div",{className:"rounded-2xl p-10 border",children:[(0,ut.jsx)("h3",{className:"text-base/7 font-semibold text-accent",children:o.title}),(0,ut.jsxs)("address",{className:"mt-3 space-ut-1 text-sm/6 not-italic text-foreground",children:[(s=o.location.split(","))==null?void 0:s.map((n,i)=>(0,ut.jsx)("p",{children:n},i))," ",o.mails&&(0,ut.jsxs)("p",{className:"flex items-center space-x-2",children:[(0,ut.jsx)(Xr.FaEnvelope,{className:"pr-2 text-accent size-auto"}),(0,ut.jsx)("span",{children:o.mails[0]})]}),o.phoneNumbers&&o.phoneNumbers.length>0&&(0,ut.jsxs)("p",{className:"flex items-center space-x-2",children:[(0,ut.jsx)(Xr.FaPhoneFlip,{className:"pr-2 text-accent size-auto"}),o.phoneNumbers[0]]})]})]},r)})})]})})})})}),(0,ut.jsx)("section",{className:"section-padding-primary",children:(0,ut.jsxs)("div",{className:"relative py-[60px]",children:[(0,ut.jsx)("div",{className:"absolute left-0 top-0 z-1 h-full w-full overflow-hidden bg-red-500 ut:w-[56%] ut:rounded-r-5",children:(0,ut.jsx)(Hc.default,{src:a.src,alt:a.alt,fill:!0,className:"object-cover",sizes:"(min-width: 768px) 60vw, 100vw",placeholder:"blur",blurDataURL:xs})}),(0,ut.jsx)(Ae,{children:(0,ut.jsx)("div",{className:"Kn-auto ut:w-1/2",children:(0,ut.jsxs)("div",{className:"relative z-[2] rounded-5 bg-white p-10 shadow-1 dark:bg-accent-700 lg:p-[60px]",children:[(0,ut.jsx)("div",{className:"mb-30px",children:(0,ut.jsx)(Ea,{...t,invert:!0})}),(0,ut.jsx)(zc,{})]})})})]})})]})}var Fc=h(require("next/image"));var _c=h(require("next/link"));function iu({image:e,name:t,about:a,socialLinks:o}){return!e||!e.src||e.src.length<3||!t?null:(0,ut.jsx)("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:(0,ut.jsx)(ye,{children:(0,ut.jsxs)(Te,{children:[e&&e.src&&(0,ut.jsx)(Fc.default,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:xs,className:"mx-auto mt-6 rounded-full object-cover"}),(0,ut.jsx)("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent ut:text-xl",children:t}),(0,ut.jsx)("p",{children:a}),o&&o.length>0&&(0,ut.jsx)("nav",{"aria-label":"social links",children:(0,ut.jsx)("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:o.map((r,s)=>(0,ut.jsx)("li",{children:(0,ut.jsx)(Ie,{href:r.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-ut-1 hover:text-accents",children:(0,ut.jsx)("span",{children:r.icon})})},s))})})]})})})}function nu({page:e,categoryList:t,edit:a=!1,path:o="/admin/collections/posts/"}){var u;if(!e)return(0,Td.notFound)();let{meta:r,populatedAuthors:s,authors:n,categories:i,content:c,title:m}=e,d={image:{src:r&&r.image&&r.image.url||void 0,alt:r&&r.image&&r.image.alt||void 0},authorName:((u=s==null?void 0:s[0])==null?void 0:u.name)||"",category:i,commentCount:0,title:m,description:(r==null?void 0:r.description)||""},p=n==null?void 0:n.map(g=>{var v,f;return{name:g.name||"",about:"",image:{src:g.profilePicture&&((f=(v=g.profilePicture.sizes)==null?void 0:v.square)==null?void 0:f.url)||"",alt:g.name||"blog author"},socialLinks:[]}});return(0,ut.jsx)(Ae,{children:(0,ut.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,ut.jsx)("div",{children:(0,ut.jsxs)("div",{className:"[&_p+P]:mt-4",children:[(0,ut.jsx)("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),(0,ut.jsx)(de,{content:c,enableGutter:!1})]})}),(0,ut.jsxs)("div",{className:"grid gap-30px self-baseline max-ut:mx-auto max-ut:max-w-[410px] lg:gap-10",children:[a&&(0,ut.jsx)("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:(0,ut.jsxs)(ye,{children:[(0,ut.jsx)(_e,{children:(0,ut.jsx)(Ge,{className:"text-accent",children:"Content Actions"})}),(0,ut.jsxs)(Te,{children:[(0,ut.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),(0,ut.jsx)(_c.default,{href:`${o}${e.id}`,children:(0,ut.jsx)(M,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),p&&p.map((g,v)=>(0,ut.jsx)(iu,{...g},v)),t&&t.links&&(0,ut.jsx)("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:(0,ut.jsx)(pr,{links:t.links,title:t.title})})]})]})})}var Bn=h(require("next/link"));var $c=require("lucide-react"),lu=({children:e,pageId:t,tableOfContents:a=[],edit:o=!0,path:r="/admin/collections/pages/",relatedContent:s=[{title:"Related Content",links:[]}]})=>{let[n,i]=(0,Yn.useState)(!1),c=()=>{i(!n)};return(0,Yn.useEffect)(()=>{let m=window.location.hash;if(m){let d=m.substring(1),p=document.getElementById(d);if(p){let g=p.getBoundingClientRect().top+window.pageYOffset+-300;window.scrollTo({top:g,behavior:"smooth"})}}},[window.location.hash]),(0,ut.jsxs)("div",{children:[(0,ut.jsx)("div",{className:l(n?"col-span-3":"col-span-4","xl:col-span-3"),children:e}),(0,ut.jsx)(du,{pageId:t,tableOfContents:a,edit:o,path:r,relatedContent:s,isSidebarVisible:n}),(0,ut.jsx)("div",{className:"block ut:hidden mt-8",children:(0,ut.jsx)("div",{className:"space-ut-6",children:e})})]})};var du=({pageId:e,tableOfContents:t=[],edit:a=!0,path:o="/admin/collections/pages/",relatedContent:r=[{title:"Related Content",links:[]}],isSidebarVisible:s})=>{let[n,i]=(0,Yn.useState)(""),[c,m]=(0,Yn.useState)(!1),[d,p]=(0,Yn.useState)(!1),u=(0,Td.usePathname)(),g=()=>{m(!c),p(!1)},v=()=>{p(!d),m(!1)},f=D=>{switch(D){case"h3":return"Kn-4";case"h4":return"Kn-8";default:return""}},w=()=>{let j="/print/"+u.split("/")[1],z=window.open(j,"Print","width=1754,height=1240,toolbar=Yn,location=Yn,status=Yn,menubar=Yn,scrollbars=yes,resizable=yes");z&&z.focus()},I=()=>{let j="/present/"+u.split("/")[1],z=window.open(j,"Print","width=1754,height=1240,toolbar=Yn,location=Yn,status=Yn,menubar=Yn,scrollbars=yes,resizable=yes");z&&z.focus()};return(0,ut.jsx)("div",{className:l("fixed right-2 z-20 top-1/4 space-ut-6 transform transition-transform duration-300 translate-x-full",s?"translate-x-0":"ut:translate-x-0"),children:(0,ut.jsxs)("div",{className:"flex flex-row-reverse z-20 min-w-64 gap-4",children:[(0,ut.jsxs)("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[(0,ut.jsxs)(Bn.default,{href:`${o}${e}`,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-ut p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,ut.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,ut.jsx)("path",{d:"M454.6 45.3l12.1 12.1c12.5 12.5 12.5 32.8 0 45.3L440 129.4 382.6 72l26.7-26.7c12.5-12.5 32.8-12.5 45.3 0zM189 265.6l171-171L417.4 152l-171 171c-4.2 4.2-9.6 7.2-15.4 8.6l-65.6 15.1L180.5 281c1.3-5.8 4.3-11.2 8.6-15.4zm197.7-243L166.4 243c-8.5 8.5-14.4 19.2-17.1 30.9l-20.9 90.6c-1.2 5.4 .4 11 4.3 14.9s9.5 5.5 14.9 4.3l90.6-20.9c11.7-2.7 22.4-8.6 30.9-17.1L489.4 125.3c25-25 25-65.5 0-90.5L477.3 22.6c-25-25-65.5-25-90.5 0zM80 64C35.8 64 0 99.8 0 144L0 432c0 44.2 35.8 80 80 80l288 0c44.2 0 80-35.8 80-80l0-128c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 128c0 26.5-21.5 48-48 48L80 480c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48l128 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L80 64z"})}),(0,ut.jsx)("small",{className:"text-center text-xs font-medium",children:" Edit "})]}),(0,ut.jsxs)("a",{onClick:g,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-ut p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,ut.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",children:(0,ut.jsx)("path",{d:"M16 80C7.2 80 0 87.2 0 96s7.2 16 16 16l416 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 80zM144 240c-8.8 0-16 7.2-16 16s7.2 16 16 16l288 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-288 0zM128 416c0 8.8 7.2 16 16 16l288 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-288 0c-8.8 0-16 7.2-16 16zM0 432c0 8.8 7.2 16 16 16s16-7.2 16-16l0-192c0-8.8-7.2-16-16-16s-16 7.2-16 16L0 432z"})}),(0,ut.jsx)("small",{className:"text-center text-xs font-medium",children:" Contents "})]}),(0,ut.jsxs)("a",{onClick:v,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-ut p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,ut.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,ut.jsx)("path",{d:"M136 64c13.3 0 24 10.7 24 24l0 24 0 32 0 24c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24l80 0zm56 104l0-24 192 0 0 24c0 30.9 25.1 56 56 56l80 0c30.9 0 56-25.1 56-56l0-80c0-30.9-25.1-56-56-56l-80 0c-30.9 0-56 25.1-56 56l0 24-192 0 0-24c0-30.9-25.1-56-56-56L56 32C25.1 32 0 57.1 0 88l0 80c0 30.9 25.1 56 56 56l80 0c8.6 0 16.7-1.9 24-5.4l72.2 96.3c-5.2 8.5-8.2 18.5-8.2 29.1l0 80c0 30.9 25.1 56 56 56l80 0c30.9 0 56-25.1 56-56l0-80c0-30.9-25.1-56-56-56l-80 0c-8.6 0-16.7 1.9-24 5.4l-72.2-96.3c5.2-8.5 8.2-18.5 8.2-29.1zm224 0l0-24 0-32 0-24c0-13.3 10.7-24 24-24l80 0c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24zM360 320c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24l80 0z"})}),(0,ut.jsx)("small",{className:"text-center text-xs font-medium",children:" Related "})]}),(0,ut.jsx)("hr",{className:"dark:border-gray-400"}),(0,ut.jsxs)("a",{href:"/",className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-ut p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,ut.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,ut.jsx)("path",{d:"M16 0C7.2 0 0 7.2 0 16s7.2 16 16 16l544 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 0zM32 64l0 224c0 35.3 28.7 64 64 64l176 0 0 41.4-91.3 91.3c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L288 422.6l84.7 84.7c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L304 393.4l0-41.4 176 0c35.3 0 64-28.7 64-64l0-224-32 0 0 224c0 17.7-14.3 32-32 32l-192 0L96 320c-17.7 0-32-14.3-32-32L64 64 32 64z"})}),(0,ut.jsx)("small",{className:"text-xs font-medium",children:"Present"})]}),(0,ut.jsxs)("a",{href:"/",className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-ut p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,ut.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,ut.jsx)("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),(0,ut.jsx)("small",{className:"text-xs font-medium",children:"Print"})]})]}),c&&(0,ut.jsx)("div",{className:l("z-50 flex shrink-0 grow-0 gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border"),children:(0,ut.jsxs)("div",{className:"flex flex-col m-2 justify-start z-50 min-w-64",children:[(0,ut.jsx)("div",{className:"flex text-accent",children:"On this Page"}),(0,ut.jsx)("ul",{className:"flex flex-col space-ut-2",children:t.map((D,j)=>(0,ut.jsx)("li",{className:f(D.tag),children:(0,ut.jsx)("a",{href:`#${D.id}`,className:`text-xs ${n===D.id?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:D.text})},j))})]})}),d&&r&&r.length>0&&(0,ut.jsx)("div",{className:l("z-50 flex shrink-0 grow-0 gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border"),children:(0,ut.jsxs)("div",{className:"flex flex-col m-2 justify-start z-50 min-w-64",children:[(0,ut.jsx)("div",{className:"flex text-accent",children:"Related Content"}),(0,ut.jsx)("ul",{className:"flex flex-col space-ut-2",children:r.map((D,j)=>D.links&&D.links.length>0?D.links.map((z,ce)=>(0,ut.jsxs)(Bn.default,{href:z.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[z.title,z.url.startsWith("http")&&(0,ut.jsx)($c.ExternalLink,{className:"Kn-1 h-3 w-3"})]},ce)):null)})]})})]})})};var Vc=h(require("next/image"));function cu({className:e,children:t,image:a="https://images.unsplash.com/photo-1557804506-669a67965ba0?ut=80&w=2574&auto=format&fit=crop",imageAlt:o="Professional presentation in modern office setting",imagePosition:r="left",overlay:s=!0}){return(0,ut.jsxs)("section",{className:l("relative min-h-[50vh] w-full overflow-hidden",e),children:[(0,ut.jsxs)("div",{className:"absolute inset-0 w-full",children:[(0,ut.jsx)(Vc.default,{src:a||"/placeholder.svg",alt:o,fill:!0,className:"object-cover",priority:!0}),s&&(0,ut.jsx)("div",{className:"absolute inset-0",style:{background:r==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]}),(0,ut.jsx)("div",{className:l("relative w-full max-w-8xl mx-auto px-4 ut:px-6 lg:px-8","flex items-center",r==="left"?"justify-end":"justify-start"),children:(0,ut.jsx)("div",{className:l("w-full max-w-xl py-12",r==="left"?"Kn-auto":"mr-auto"),children:t})})]})}0&&(module.exports={AOSInit,AboutSection,Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BlogCard,BlogDetail,BlogList,BlogListSection,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,ContactSection,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,ImageSection,InfoTile,Input,Insight,KanbanColumn,Label,Logo,LowImpactHero,MOTD,MainPageSection,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PageRange,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,PricingSection,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,ServiceSection,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,TextAndImages,Textarea,ThemeProvider,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,cn,getTableOfContents,reducer,toast,toggleVariants,useIsMobile,useSidebar,useToast});