cortex-react-components 1.66.0 → 1.67.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/dist/{chunk-LWTJN5ZP.mjs → chunk-22SIVBWN.mjs} +1 -1
  2. package/dist/{chunk-3RPTKOCL.mjs → chunk-27L4MUAF.mjs} +1 -1
  3. package/dist/{chunk-HB4BHTNM.mjs → chunk-2AUQRBIQ.mjs} +1 -1
  4. package/dist/{chunk-R4QBZLWY.mjs → chunk-2VYQ47YU.mjs} +1 -1
  5. package/dist/{chunk-PADGOK5C.mjs → chunk-37NBXA5G.mjs} +1 -1
  6. package/dist/{chunk-7O2TMDTD.mjs → chunk-45X7FAJM.mjs} +1 -1
  7. package/dist/{chunk-RGWP2OVM.mjs → chunk-5J244QX4.mjs} +1 -1
  8. package/dist/chunk-63YL7TOA.mjs +6 -0
  9. package/dist/{chunk-3NS4UQ6J.mjs → chunk-666KIWPS.mjs} +1 -1
  10. package/dist/{chunk-LBOJXQGC.mjs → chunk-6IWLTYR6.mjs} +1 -1
  11. package/dist/{chunk-22KXWTT3.mjs → chunk-6MQ5LVWM.mjs} +1 -1
  12. package/dist/{chunk-6JAIW45L.mjs → chunk-6YHV3NNE.mjs} +1 -1
  13. package/dist/{chunk-26JAUUHC.mjs → chunk-737CTHXW.mjs} +1 -1
  14. package/dist/{chunk-NZKW64NF.mjs → chunk-A3EE2FIS.mjs} +1 -1
  15. package/dist/{chunk-ZJZ5HYAW.mjs → chunk-AAPY7EYG.mjs} +1 -1
  16. package/dist/{chunk-N363IQBL.mjs → chunk-ANTK5LAD.mjs} +1 -1
  17. package/dist/{chunk-6BDDYPGK.mjs → chunk-DGYIJMZB.mjs} +1 -1
  18. package/dist/{chunk-MYDBD7LR.mjs → chunk-DKIPNQOB.mjs} +1 -1
  19. package/dist/{chunk-BA6HNFXB.mjs → chunk-EHL6E6LB.mjs} +1 -1
  20. package/dist/{chunk-XLURG5E2.mjs → chunk-ENHSCJIL.mjs} +1 -1
  21. package/dist/{chunk-TTL25HL4.mjs → chunk-FSQNNG2C.mjs} +1 -1
  22. package/dist/{chunk-RVA4WIRX.mjs → chunk-HXNVIQ2U.mjs} +1 -1
  23. package/dist/{chunk-HBE5POUB.mjs → chunk-J5FPKJOI.mjs} +1 -1
  24. package/dist/{chunk-VEVYFZEV.mjs → chunk-JDBMSW23.mjs} +1 -1
  25. package/dist/{chunk-CYVVXQ2A.mjs → chunk-KIWDBOLE.mjs} +1 -1
  26. package/dist/{chunk-YOMT7VAV.mjs → chunk-KSAKCMAF.mjs} +1 -1
  27. package/dist/{chunk-FM2YMSMY.mjs → chunk-L2AV5DLK.mjs} +1 -1
  28. package/dist/{chunk-E7W2GFKO.mjs → chunk-L45A6K4C.mjs} +1 -1
  29. package/dist/{chunk-4P4Z2IYO.mjs → chunk-M4YY2VIS.mjs} +1 -1
  30. package/dist/{chunk-VNGK6ACI.mjs → chunk-MRJQKF4Z.mjs} +1 -1
  31. package/dist/{chunk-WOMRJVQK.mjs → chunk-N4NSSICX.mjs} +1 -1
  32. package/dist/{chunk-BZBPA7IN.mjs → chunk-NTB62C36.mjs} +1 -1
  33. package/dist/{chunk-BGQKHEB3.mjs → chunk-QUOLG5NC.mjs} +1 -1
  34. package/dist/chunk-S3XDFYVA.mjs +4 -0
  35. package/dist/{chunk-PKSY2IBO.mjs → chunk-SD57UQWG.mjs} +1 -1
  36. package/dist/chunk-STFTEKAH.mjs +4 -0
  37. package/dist/{chunk-ZYYWN6XG.mjs → chunk-SUO6GOJS.mjs} +1 -1
  38. package/dist/{chunk-ORLKLFWH.mjs → chunk-TASJS6US.mjs} +1 -1
  39. package/dist/{chunk-4EQF35LM.mjs → chunk-TT4SPGZU.mjs} +1 -1
  40. package/dist/{chunk-MO44Z74W.mjs → chunk-UVL5G6QE.mjs} +1 -1
  41. package/dist/{chunk-ND4NY6SK.mjs → chunk-WLAOMIUZ.mjs} +1 -1
  42. package/dist/{chunk-FN7WYXHM.mjs → chunk-WSDHDEFO.mjs} +1 -1
  43. package/dist/{chunk-EDB4YGKM.mjs → chunk-WU5Z6SOQ.mjs} +1 -1
  44. package/dist/{chunk-MJUFOUCH.mjs → chunk-XRGQ55SK.mjs} +1 -1
  45. package/dist/{chunk-OINI2PT2.mjs → chunk-Z7GMR4B6.mjs} +1 -1
  46. package/dist/components/Blocks/Banner.mjs +1 -1
  47. package/dist/components/Blocks/CallToAction.mjs +1 -1
  48. package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
  49. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  50. package/dist/components/Blocks/CollapsibleArea.stories.mjs +1 -1
  51. package/dist/components/Blocks/Content.mjs +1 -1
  52. package/dist/components/Blocks/Content.stories.mjs +1 -1
  53. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  54. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  55. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  56. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  57. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  58. package/dist/components/Blocks/index.mjs +1 -1
  59. package/dist/components/CRM/CogeBoard.mjs +1 -1
  60. package/dist/components/CRM/CogeBoard.stories.mjs +1 -1
  61. package/dist/components/CRM/DealDetails.mjs +1 -1
  62. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  63. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  64. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  65. package/dist/components/CRM/NewDealForm.mjs +1 -1
  66. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  67. package/dist/components/CRM/index.mjs +1 -1
  68. package/dist/components/Cards/ContentCard.mjs +1 -1
  69. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  70. package/dist/components/Cards/FeatureCard.mjs +1 -1
  71. package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
  72. package/dist/components/Cards/index.mjs +1 -1
  73. package/dist/components/DeliveryLead/DeliveryLeadSubmission.d.ts +12 -1
  74. package/dist/components/DeliveryLead/DeliveryLeadSubmission.js +3 -3
  75. package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +1 -1
  76. package/dist/components/DeliveryLead/DeliveryLeadSubmission.stories.js +3 -3
  77. package/dist/components/DeliveryLead/DeliveryLeadSubmission.stories.mjs +1 -1
  78. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.d.ts +2 -2
  79. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.js +1 -1
  80. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.mjs +1 -1
  81. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.stories.js +1 -1
  82. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.stories.mjs +1 -1
  83. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.d.ts +5 -3
  84. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.js +3 -3
  85. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
  86. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.stories.js +3 -3
  87. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.stories.mjs +1 -1
  88. package/dist/components/DeliveryLead/index.js +3 -3
  89. package/dist/components/DeliveryLead/index.mjs +1 -1
  90. package/dist/components/DeliveryLead/types.d.ts +1 -1
  91. package/dist/components/DeliveryLead/types.js +1 -1
  92. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  93. package/dist/components/DigitalColleagues/KanbanBoard.mjs +1 -1
  94. package/dist/components/DigitalColleagues/KanbanBoard.stories.mjs +1 -1
  95. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  96. package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
  97. package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
  98. package/dist/components/DigitalColleagues/ManagementSidebar.stories.mjs +1 -1
  99. package/dist/components/HeaderFooter/Header.mjs +1 -1
  100. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  101. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  102. package/dist/components/HeaderFooter/index.mjs +1 -1
  103. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  104. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  105. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  106. package/dist/components/Heros/PostHero/index.mjs +1 -1
  107. package/dist/components/Heros/RenderHero.mjs +1 -1
  108. package/dist/components/Heros/index.mjs +1 -1
  109. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  110. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  111. package/dist/components/Holidays/index.mjs +1 -1
  112. package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
  113. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  114. package/dist/components/Layouts/Print.mjs +1 -1
  115. package/dist/components/Layouts/Print.stories.mjs +1 -1
  116. package/dist/components/Layouts/SlideShow.mjs +1 -1
  117. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  118. package/dist/components/Layouts/index.mjs +1 -1
  119. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  120. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  121. package/dist/components/Menus/SidebarRight.mjs +1 -1
  122. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  123. package/dist/components/Menus/index.mjs +1 -1
  124. package/dist/components/Payload/RichText/index.mjs +1 -1
  125. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  126. package/dist/components/Payload/RichText.stories.mjs +1 -1
  127. package/dist/components/Payload/index.mjs +1 -1
  128. package/dist/components/index.js +8 -8
  129. package/dist/components/index.mjs +1 -1
  130. package/dist/components/ui/index.mjs +1 -1
  131. package/dist/components/ui/sidebar.mjs +1 -1
  132. package/dist/hooks/index.mjs +1 -1
  133. package/dist/index.js +13 -13
  134. package/dist/index.mjs +1 -1
  135. package/dist/metafile-cjs.json +1 -1
  136. package/dist/metafile-esm.json +1 -1
  137. package/dist/pages/Blog.mjs +1 -1
  138. package/dist/pages/Blog.stories.mjs +1 -1
  139. package/dist/pages/Documentation.mjs +1 -1
  140. package/dist/pages/Documentation.stories.mjs +1 -1
  141. package/dist/pages/IndexPage.mjs +1 -1
  142. package/dist/pages/IndexPage.stories.mjs +1 -1
  143. package/dist/pages/Intranet.mjs +1 -1
  144. package/dist/pages/Intranet.stories.mjs +1 -1
  145. package/dist/pages/LandingPage.mjs +1 -1
  146. package/dist/pages/LandingPage.stories.mjs +1 -1
  147. package/dist/pages/Page.mjs +1 -1
  148. package/dist/pages/Page.stories.mjs +1 -1
  149. package/dist/pages/Printable.stories.mjs +1 -1
  150. package/dist/pages/Publish.mjs +1 -1
  151. package/dist/pages/Publish.stories.mjs +1 -1
  152. package/dist/pages/Website.mjs +1 -1
  153. package/dist/pages/Website.stories.mjs +1 -1
  154. package/dist/payload-types.d.ts +50 -14
  155. package/dist/payload-types.js +1 -1
  156. package/dist/sections/AboutSection.mjs +1 -1
  157. package/dist/sections/AboutSection.stories.mjs +1 -1
  158. package/dist/sections/BlogDetail.mjs +1 -1
  159. package/dist/sections/BlogDetail.stories.mjs +1 -1
  160. package/dist/sections/BlogList.mjs +1 -1
  161. package/dist/sections/BlogList.stories.mjs +1 -1
  162. package/dist/sections/BlogListSection.mjs +1 -1
  163. package/dist/sections/BlogListSection.stories.mjs +1 -1
  164. package/dist/sections/ContactSection.mjs +1 -1
  165. package/dist/sections/ContactSection.stories.mjs +1 -1
  166. package/dist/sections/ImageSection.stories.mjs +1 -1
  167. package/dist/sections/PageSections.mjs +1 -1
  168. package/dist/sections/PageSections.stories.mjs +1 -1
  169. package/dist/sections/PricingSection.mjs +1 -1
  170. package/dist/sections/PricingSection.stories.mjs +1 -1
  171. package/dist/sections/ServiceDetail.mjs +1 -1
  172. package/dist/sections/ServiceDetailSection.mjs +1 -1
  173. package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
  174. package/dist/sections/ServiceSection.mjs +1 -1
  175. package/dist/sections/ServiceSection.stories.mjs +1 -1
  176. package/dist/sections/form/index.mjs +1 -1
  177. package/dist/sections/index.mjs +1 -1
  178. package/package.json +1 -1
  179. package/dist/chunk-GRK7FP4A.mjs +0 -4
  180. package/dist/chunk-MAJERV65.mjs +0 -6
  181. package/dist/chunk-T5F3QYLN.mjs +0 -4
package/dist/index.js CHANGED
@@ -4,29 +4,29 @@
4
4
  'use server'
5
5
  'use strict'
6
6
 
7
- "use strict";var tp=Object.create;var Zr=Object.defineProperty;var ap=Object.getOwnPropertyDescriptor;var op=Object.getOwnPropertyNames;var rp=Object.getPrototypeOf,sp=Object.prototype.hasOwnProperty;var ip=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),np=(e,t)=>{for(var a in t)Zr(e,a,{get:t[a],enumerable:!0})},Sl=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of op(t))!sp.call(e,r)&&r!==a&&Zr(e,r,{get:()=>t[r],enumerable:!(o=ap(t,r))||o.enumerable});return e};var x=(e,t,a)=>(a=e!=null?tp(rp(e)):{},Sl(t||!e||!e.__esModule?Zr(a,"default",{value:e,enumerable:!0}):a,e)),lp=e=>Sl(Zr({},"__esModule",{value:!0}),e);var El=ip((hr,gi)=>{"use strict";(function(e,t){typeof hr=="object"&&typeof gi=="object"?gi.exports=t():typeof define=="function"&&define.amd?define([],t):typeof hr=="object"?hr.AOS=t():e.AOS=t()})(hr,function(){return function(e){function t(o){if(a[o])return a[o].exports;var r=a[o]={exports:{},Ql:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var a={};return t.m=e,t.c=a,t.p="dist/",t(0)}([function(e,t,a){"use strict";function o(P){return P&&P.__esModule?P:{default:P}}var r=Object.assign||function(P){for(var ve=1;ve<arguments.length;ve++){var Se=arguments[ve];for(var Ke in Se)Object.prototype.hasOwnProperty.call(Se,Ke)&&(P[Ke]=Se[Ke])}return P},s=a(1),n=(o(s),a(6)),i=o(n),m=a(7),c=o(m),d=a(8),p=o(d),u=a(9),f=o(u),b=a(10),g=o(b),h=a(11),z=o(h),D=a(14),k=o(D),R=[],N=!1,I={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},re=function(){var P=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(P&&(N=!0),N)return R=(0,z.default)(R,I),(0,g.default)(R,I.once),R},ot=function(){R=(0,k.default)(),re()},y=function(){R.forEach(function(P,ve){P.node.removeAttribute("data-aos"),P.node.removeAttribute("data-aos-easing"),P.node.removeAttribute("data-aos-duration"),P.node.removeAttribute("data-aos-delay")})},w=function(P){return P===!0||P==="mobile"&&f.default.mobile()||P==="phone"&&f.default.phone()||P==="tablet"&&f.default.tablet()||typeof P=="function"&&P()===!0},T=function(P){I=r(I,P),R=(0,k.default)();var ve=document.all&&!window.atob;return w(I.disable)||ve?y():(I.disableMutationObserver||p.default.isSupported()||(console.info(`
7
+ "use strict";var tp=Object.create;var Zr=Object.defineProperty;var ap=Object.getOwnPropertyDescriptor;var op=Object.getOwnPropertyNames;var rp=Object.getPrototypeOf,sp=Object.prototype.hasOwnProperty;var ip=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),np=(e,t)=>{for(var a in t)Zr(e,a,{get:t[a],enumerable:!0})},Sl=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of op(t))!sp.call(e,r)&&r!==a&&Zr(e,r,{get:()=>t[r],enumerable:!(o=ap(t,r))||o.enumerable});return e};var x=(e,t,a)=>(a=e!=null?tp(rp(e)):{},Sl(t||!e||!e.__esModule?Zr(a,"default",{value:e,enumerable:!0}):a,e)),lp=e=>Sl(Zr({},"__esModule",{value:!0}),e);var El=ip((hr,gi)=>{"use strict";(function(e,t){typeof hr=="object"&&typeof gi=="object"?gi.exports=t():typeof define=="function"&&define.amd?define([],t):typeof hr=="object"?hr.AOS=t():e.AOS=t()})(hr,function(){return function(e){function t(o){if(a[o])return a[o].exports;var r=a[o]={exports:{},Ql: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(b){return b&&b.__esModule?b:{default:b}}var r=Object.assign||function(b){for(var Q=1;Q<arguments.length;Q++){var O=arguments[Q];for(var ke in O)Object.prototype.hasOwnProperty.call(O,ke)&&(b[ke]=O[ke])}return b},s=a(1),l=(o(s),a(6)),i=o(l),c=a(7),m=o(c),d=a(8),p=o(d),u=a(9),f=o(u),v=a(10),g=o(v),y=a(11),L=o(y),T=a(14),C=o(T),S=[],w=!1,M={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},ie=function(){var b=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(b&&(w=!0),w)return S=(0,L.default)(S,M),(0,g.default)(S,M.once),S},We=function(){S=(0,C.default)(),ie()},A=function(){S.forEach(function(b,Q){b.node.removeAttribute("data-aos"),b.node.removeAttribute("data-aos-easing"),b.node.removeAttribute("data-aos-duration"),b.node.removeAttribute("data-aos-delay")})},k=function(b){return b===!0||b==="mobile"&&f.default.mobile()||b==="phone"&&f.default.phone()||b==="tablet"&&f.default.tablet()||typeof b=="function"&&b()===!0},j=function(b){M=r(M,b),S=(0,C.default)();var Q=document.all&&!window.atob;return k(M.disable)||Q?A():(M.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
- You may have to call "refreshHard()" by yourself.
11
- `),I.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",I.easing),document.querySelector("body").setAttribute("data-aos-duration",I.duration),document.querySelector("body").setAttribute("data-aos-delay",I.delay),I.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?re(!0):I.startEvent==="load"?window.addEventListener(I.startEvent,function(){re(!0)}):document.addEventListener(I.startEvent,function(){re(!0)}),window.addEventListener("resize",(0,c.default)(re,I.debounceDelay,!0)),window.addEventListener("orientationchange",(0,c.default)(re,I.debounceDelay,!0)),window.addEventListener("scroll",(0,i.default)(function(){(0,g.default)(R,I.once)},I.throttleDelay)),I.disableMutationObserver||p.default.ready("[data-aos]",ot),R)};e.exports={init:T,refresh:re,refreshHard:ot}},function(e,t){},,,,,function(e,t){(function(a){"use strict";function o(w,T,P){function ve(me){var ht=ce,$a=he;return ce=he=void 0,_a=me,Ze=w.apply($a,ht)}function Se(me){return _a=me,Ue=setTimeout(Ft,T),Ga?ve(me):Ze}function Ke(me){var ht=me-At,$a=me-_a,Pl=T-ht;return ha?ot(Pl,ca-$a):Pl}function ft(me){var ht=me-At,$a=me-_a;return At===void 0||ht>=T||ht<0||ha&&$a>=ca}function Ft(){var me=y();return ft(me)?Mt(me):void(Ue=setTimeout(Ft,Ke(me)))}function Mt(me){return Ue=void 0,Re&&ce?ve(me):(ce=he=void 0,Ze)}function bt(){Ue!==void 0&&clearTimeout(Ue),_a=0,ce=At=he=Ue=void 0}function vt(){return Ue===void 0?Ze:Mt(y())}function be(){var me=y(),ht=ft(me);if(ce=arguments,he=this,At=me,ht){if(Ue===void 0)return Se(At);if(ha)return Ue=setTimeout(Ft,T),ve(At)}return Ue===void 0&&(Ue=setTimeout(Ft,T)),Ze}var ce,he,ca,Ze,Ue,At,_a=0,Ga=!1,ha=!1,Re=!0;if(typeof w!="function")throw new TypeError(d);return T=m(T)||0,s(P)&&(Ga=!!P.leading,ha="maxWait"in P,ca=ha?re(m(P.maxWait)||0,T):ca,Re="trailing"in P?!!P.trailing:Re),be.cancel=bt,be.flush=vt,be}function r(w,T,P){var ve=!0,Se=!0;if(typeof w!="function")throw new TypeError(d);return s(P)&&(ve="leading"in P?!!P.leading:ve,Se="trailing"in P?!!P.trailing:Se),o(w,T,{leading:ve,maxWait:T,trailing:Se})}function s(w){var T=typeof w>"u"?"undefined":c(w);return!!w&&(T=="object"||T=="function")}function n(w){return!!w&&(typeof w>"u"?"undefined":c(w))=="object"}function i(w){return(typeof w>"u"?"undefined":c(w))=="symbol"||n(w)&&I.call(w)==u}function m(w){if(typeof w=="number")return w;if(i(w))return p;if(s(w)){var T=typeof w.valueOf=="function"?w.valueOf():w;w=s(T)?T+"":T}if(typeof w!="string")return w===0?w:+w;w=w.replace(f,"");var P=g.test(w);return P||h.test(w)?z(w.slice(2),P?2:8):b.test(w)?p:+w}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},d="Expected a function",p=NaN,u="[object Symbol]",f=/^\s+|\s+$/g,b=/^[-+]0x[0-9a-f]+$/i,g=/^0b[01]+$/i,h=/^0o[0-7]+$/i,z=parseInt,D=(typeof a>"u"?"undefined":c(a))=="object"&&a&&a.Object===Object&&a,k=(typeof self>"u"?"undefined":c(self))=="object"&&self&&self.Object===Object&&self,R=D||k||Function("return this")(),N=Object.prototype,I=N.toString,re=Math.max,ot=Math.min,y=function(){return R.Date.now()};e.exports=r}).call(t,function(){return this}())},function(e,t){(function(a){"use strict";function o(y,w,T){function P(Re){var me=be,ht=ce;return be=ce=void 0,At=Re,ca=y.apply(ht,me)}function ve(Re){return At=Re,Ze=setTimeout(ft,w),_a?P(Re):ca}function Se(Re){var me=Re-Ue,ht=Re-At,$a=w-me;return Ga?re($a,he-ht):$a}function Ke(Re){var me=Re-Ue,ht=Re-At;return Ue===void 0||me>=w||me<0||Ga&&ht>=he}function ft(){var Re=ot();return Ke(Re)?Ft(Re):void(Ze=setTimeout(ft,Se(Re)))}function Ft(Re){return Ze=void 0,ha&&be?P(Re):(be=ce=void 0,ca)}function Mt(){Ze!==void 0&&clearTimeout(Ze),At=0,be=Ue=ce=Ze=void 0}function bt(){return Ze===void 0?ca:Ft(ot())}function vt(){var Re=ot(),me=Ke(Re);if(be=arguments,ce=this,Ue=Re,me){if(Ze===void 0)return ve(Ue);if(Ga)return Ze=setTimeout(ft,w),P(Ue)}return Ze===void 0&&(Ze=setTimeout(ft,w)),ca}var be,ce,he,ca,Ze,Ue,At=0,_a=!1,Ga=!1,ha=!0;if(typeof y!="function")throw new TypeError(c);return w=i(w)||0,r(T)&&(_a=!!T.leading,Ga="maxWait"in T,he=Ga?I(i(T.maxWait)||0,w):he,ha="trailing"in T?!!T.trailing:ha),vt.cancel=Mt,vt.flush=bt,vt}function r(y){var w=typeof y>"u"?"undefined":m(y);return!!y&&(w=="object"||w=="function")}function s(y){return!!y&&(typeof y>"u"?"undefined":m(y))=="object"}function n(y){return(typeof y>"u"?"undefined":m(y))=="symbol"||s(y)&&N.call(y)==p}function i(y){if(typeof y=="number")return y;if(n(y))return d;if(r(y)){var w=typeof y.valueOf=="function"?y.valueOf():y;y=r(w)?w+"":w}if(typeof y!="string")return y===0?y:+y;y=y.replace(u,"");var T=b.test(y);return T||g.test(y)?h(y.slice(2),T?2:8):f.test(y)?d:+y}var m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},c="Expected a function",d=NaN,p="[object Symbol]",u=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,g=/^0o[0-7]+$/i,h=parseInt,z=(typeof a>"u"?"undefined":m(a))=="object"&&a&&a.Object===Object&&a,D=(typeof self>"u"?"undefined":m(self))=="object"&&self&&self.Object===Object&&self,k=z||D||Function("return this")(),R=Object.prototype,N=R.toString,I=Math.max,re=Math.min,ot=function(){return k.Date.now()};e.exports=o}).call(t,function(){return this}())},function(e,t){"use strict";function a(m){var c=void 0,d=void 0,p=void 0;for(c=0;c<m.length;c+=1)if(d=m[c],d.dataset&&d.dataset.aos||(p=d.children&&a(d.children)))return!0;return!1}function o(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function r(){return!!o()}function s(m,c){var d=window.document,p=o(),u=new p(n);i=c,u.observe(d.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function n(m){m&&m.forEach(function(c){var d=Array.prototype.slice.call(c.addedNodes),p=Array.prototype.slice.call(c.removedNodes),u=d.concat(p);if(a(u))return i()})}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.default={isSupported:r,ready:s}},function(e,t){"use strict";function a(d,p){if(!(d instanceof p))throw new TypeError("Cannot call a class as a function")}function o(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function d(p,u){for(var f=0;f<u.length;f++){var b=u[f];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,u,f){return u&&d(p.prototype,u),f&&d(p,f),p}}(),s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|Ot)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( Hl)?|phone|p(ixi|re)\/|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|Ot(Ot|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|nd(ch|nd)|as(Ot|Ot)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|Ot)|bl(Ot|az)|br(e|Ot)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|Hl(Ot|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|Ot(ic|k0)|esl8|ez([4-7]0|Hl|wa|Ot)|fetc|fly(\-|Ot)|g1 u|g560|gene|gf\-5|g\-mo|nd(\.w|Ot)|nd(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(nd|ta)|hp( i|ip)|hs\-c|ht(c(\-| |Ot|a|g|p|s|t)|tp)|hu(aw|Hl)|i\-(20|nd|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|Ot(t|Ot)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|Ot(nd|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(Ot|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|Hl)|mi(o8|oa|ts)|mmef|mo(01|02|bi|Ot|do|t(\-| |o|Ot)|zz)|Ot(50|p1|Ot )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|Ot((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(nd|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|Vd(ck|rt|Ot)|prox|psio|nd\-g|qa\-a|nd(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|Nn)|s55\/|Ot(Ot|ma|Hl|ms|ny|Ot)|sc(01|h\-|oo|p\-)|sdk\/|Ot(c(\-|0|1)|47|mc|nd|Hl)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|Ql)|Vs(al|nd|b3|Ot|t5)|so(ft|ny)|sp(01|h\-|Ot\-|Ot )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(Ot|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|Hl)|utst|v400|v750|veri|vi(rg|Ot)|vk(40|5[0-3]|\-Ot)|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|Ot)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( Hl)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,m=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|Ot(Ot|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|nd(ch|nd)|as(Ot|Ot)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|Ot)|bl(Ot|az)|br(e|Ot)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|Hl(Ot|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|Ot(ic|k0)|esl8|ez([4-7]0|Hl|wa|Ot)|fetc|fly(\-|Ot)|g1 u|g560|gene|gf\-5|g\-mo|nd(\.w|Ot)|nd(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(nd|ta)|hp( i|ip)|hs\-c|ht(c(\-| |Ot|a|g|p|s|t)|tp)|hu(aw|Hl)|i\-(20|nd|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|Ot(t|Ot)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|Ot(nd|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(Ot|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|Hl)|mi(o8|oa|ts)|mmef|mo(01|02|bi|Ot|do|t(\-| |o|Ot)|zz)|Ot(50|p1|Ot )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|Ot((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(nd|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|Vd(ck|rt|Ot)|prox|psio|nd\-g|qa\-a|nd(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|Nn)|s55\/|Ot(Ot|ma|Hl|ms|ny|Ot)|sc(01|h\-|oo|p\-)|sdk\/|Ot(c(\-|0|1)|47|mc|nd|Hl)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|Ql)|Vs(al|nd|b3|Ot|t5)|so(ft|ny)|sp(01|h\-|Ot\-|Ot )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(Ot|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|Hl)|utst|v400|v750|veri|vi(rg|Ot)|vk(40|5[0-3]|\-Ot)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,c=function(){function d(){a(this,d)}return r(d,[{key:"phone",value:function(){var p=o();return!(!s.test(p)&&!n.test(p.substr(0,4)))}},{key:"mobile",value:function(){var p=o();return!(!i.test(p)&&!m.test(p.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),d}();t.default=new c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(r,s,n){var i=r.node.getAttribute("data-aos-once");s>r.position?r.node.classList.add("aos-animate"):typeof i<"u"&&(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(m,c){a(m,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,m){return i.forEach(function(c,d){c.node.classList.add("aos-init"),c.position=(0,s.default)(c.node,m.offset)}),i};t.default=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,m){var c=0,d=0,p=window.innerHeight,u={offset:i.getAttribute("data-aos-offset"),anchor:i.getAttribute("data-aos-anchor"),anchorPlacement:i.getAttribute("data-aos-anchor-placement")};switch(u.offset&&!isNaN(u.offset)&&(d=parseInt(u.offset)),u.anchor&&document.querySelectorAll(u.anchor)&&(i=document.querySelectorAll(u.anchor)[0]),c=(0,s.default)(i).top,u.anchorPlacement){case"top-bottom":break;case"center-bottom":c+=i.offsetHeight/2;break;case"bottom-bottom":c+=i.offsetHeight;break;case"top-center":c+=p/2;break;case"bottom-center":c+=p/2+i.offsetHeight;break;case"center-center":c+=p/2+i.offsetHeight/2;break;case"top-top":c+=p;break;case"bottom-top":c+=i.offsetHeight+p;break;case"center-top":c+=i.offsetHeight/2+p}return u.anchorPlacement||u.offset||isNaN(m)||(d=m),c+d};t.default=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 Xg={};np(Xg,{AOSInit:()=>_p,AboutSection:()=>Ag,Alert:()=>gn,AlertDescription:()=>bn,AlertTitle:()=>fn,ApproveLeave:()=>pl,Avatar:()=>wt,AvatarFallback:()=>Ct,AvatarImage:()=>Nt,Badge:()=>kt,BannerBlock:()=>xn,BlogCard:()=>qm,BlogDetail:()=>Hg,BlogList:()=>_g,BlogListSection:()=>Lg,BrandLogo:()=>mo,Breadcrumb:()=>fi,BreadcrumbEllipsis:()=>wi,BreadcrumbItem:()=>vi,BreadcrumbLink:()=>hi,BreadcrumbList:()=>bi,BreadcrumbPage:()=>yi,BreadcrumbSeparator:()=>xi,Breadcrumbs:()=>sg,Button:()=>B,CMSLink:()=>ta,CRMCogeBoard:()=>wg,CRMKanbanBoard:()=>hg,Calendar:()=>Er,CalendarView:()=>vl,CallToActionBlock:()=>Po,CallToActionBlockOld:()=>pu,Card:()=>Gr,Categories:()=>Qn,ChatCardTask:()=>xl,ChatInterfaceMessages:()=>Rg,ChatMessage:()=>wl,Checkbox:()=>ea,CodeBlock:()=>Pn,Collapsible:()=>xa,CollapsibleContent:()=>Xa,CollapsibleTrigger:()=>Va,CollectionArchive:()=>Fu,Command:()=>vs,CommandDialog:()=>Ad,CommandEmpty:()=>dn,CommandGroup:()=>cn,CommandInput:()=>nn,CommandItem:()=>pn,CommandList:()=>ln,CommandSeparator:()=>mn,CommandShortcut:()=>un,ContactSection:()=>zg,Container:()=>Rt,ContentBlock:()=>_r,ContentCard:()=>Nu,CopyButton:()=>Cn,CustomLink:()=>et,CustomerCard:()=>lc,DarkTop:()=>En,DealCard:()=>hl,DealDetails:()=>Kr,DeliveryLeadSubmission:()=>ii,DeliveryLeadSubmissionList:()=>li,DeliveryLeadSubmissionWithList:()=>Bm,Dialog:()=>pa,DialogClose:()=>fs,DialogContent:()=>Zt,DialogDescription:()=>sn,DialogFooter:()=>rn,DialogHeader:()=>ka,DialogOverlay:()=>bs,DialogPortal:()=>on,DialogTitle:()=>Pa,DialogTrigger:()=>Dd,DropdownMenu:()=>jl,DropdownMenuCheckboxItem:()=>Si,DropdownMenuContent:()=>ki,DropdownMenuGroup:()=>Gl,DropdownMenuItem:()=>Pi,DropdownMenuLabel:()=>Ti,DropdownMenuPortal:()=>$l,DropdownMenuRadioGroup:()=>Wl,DropdownMenuRadioItem:()=>Ri,DropdownMenuSeparator:()=>Di,DropdownMenuShortcut:()=>Mi,DropdownMenuSub:()=>Ul,DropdownMenuSubContent:()=>Ci,DropdownMenuSubTrigger:()=>Ni,DropdownMenuTrigger:()=>_l,DynamicIcon:()=>st,EventCard:()=>dc,FeatureCard:()=>Jo,FeatureGrid:()=>hc,FeaturesBlock:()=>Ro,Filter:()=>Zn,FlowPrintable:()=>jc,Footer:()=>mg,Header:()=>pg,HeaderDesktop:()=>nl,HeaderMobile:()=>dl,HeadingImage:()=>Lu,Hero:()=>wu,HighImpactHero:()=>el,HolidayGrid:()=>bl,HolidayTracker:()=>bg,HoverCard:()=>Pd,HoverCardContent:()=>an,HoverCardTrigger:()=>Sd,Image:()=>gc,ImageBlock:()=>Mn,ImageSection:()=>jg,InfoTile:()=>Pu,Input:()=>yt,Insight:()=>ku,KanbanColumn:()=>Qr,Label:()=>F,LightTop:()=>Hn,LocationsSection:()=>Bg,Logo:()=>Ou,LowImpactHero:()=>ol,MOTD:()=>Ru,MainPageSection:()=>Fg,Mask:()=>ag,Media:()=>oa,MediaBlock:()=>Aa,MediumImpactHero:()=>al,NewCustomerForm:()=>yl,NewDealForm:()=>yg,NewsGrid:()=>Fc,OrgChart:()=>Mu,PagePrintable:()=>_c,PageRange:()=>Gu,PageShape:()=>Bt,Pagination:()=>Kn,PayloadPagination:()=>$u,Popover:()=>Ir,PopoverAnchor:()=>xd,PopoverContent:()=>qo,PopoverTrigger:()=>Lr,PostHero:()=>eg,PricingCard:()=>zn,PricingSection:()=>Mg,Printable:()=>Xn,ProjectCard:()=>uc,ProjectTeam:()=>Ku,ProposalSummary:()=>Au,Publish:()=>Wg,RelatedContent:()=>Qu,RelatedPagesMenu:()=>ug,RelatedPosts:()=>Hu,RenderBlocks:()=>co,RenderBlocksWithShapes:()=>Bu,RenderHero:()=>rg,RequestLeave:()=>fl,ReusableContentBlock:()=>Bn,RichText:()=>J,ScrollArea:()=>ma,ScrollBar:()=>gs,Section:()=>$g,SectionHero:()=>sl,Select:()=>oo,SelectContent:()=>Ta,SelectGroup:()=>au,SelectItem:()=>Da,SelectLabel:()=>Hd,SelectScrollDownButton:()=>yn,SelectScrollUpButton:()=>hn,SelectSeparator:()=>Fd,SelectTrigger:()=>Ra,SelectValue:()=>ro,Separator:()=>yr,ServiceCard:()=>xu,ServiceDetail:()=>Ug,ServiceDetailSection:()=>Gg,ServiceSection:()=>Dg,Sheet:()=>ts,SheetClose:()=>Zl,SheetContent:()=>wr,SheetDescription:()=>Ei,SheetFooter:()=>zi,SheetHeader:()=>Li,SheetOverlay:()=>as,SheetPortal:()=>Ii,SheetTitle:()=>Bi,SheetTrigger:()=>Jl,Sidebar:()=>vo,SidebarContent:()=>qa,SidebarFooter:()=>yo,SidebarGroup:()=>jt,SidebarGroupAction:()=>$i,SidebarGroupContent:()=>Qt,SidebarGroupLabel:()=>Na,SidebarHeader:()=>ho,SidebarInput:()=>Gi,SidebarInset:()=>_i,SidebarLeft:()=>Vu,SidebarMenu:()=>xt,SidebarMenuAction:()=>kr,SidebarMenuBadge:()=>Ui,SidebarMenuButton:()=>_t,SidebarMenuItem:()=>rt,SidebarMenuSkeleton:()=>Wi,SidebarMenuSub:()=>Ka,SidebarMenuSubButton:()=>Ja,SidebarMenuSubItem:()=>Qa,SidebarProvider:()=>Fi,SidebarRail:()=>ji,SidebarRight:()=>qu,SidebarSeparator:()=>Cr,SidebarTrigger:()=>Oi,SimpleHeader:()=>ng,Skeleton:()=>Ie,SlideShow:()=>Gs,Tabs:()=>ou,TabsContent:()=>iu,TabsList:()=>ru,TabsTrigger:()=>su,TextAndImages:()=>Oc,Textarea:()=>so,Theme:()=>Fs,ThemeProvider:()=>tg,ThemeWithShapes:()=>Pc,Toast:()=>Rr,ToastAction:()=>Yi,ToastClose:()=>Tr,ToastDescription:()=>Mr,ToastProvider:()=>ps,ToastTitle:()=>Dr,ToastViewport:()=>Sr,Toaster:()=>gd,Toggle:()=>Ki,ToggleGroup:()=>Qi,ToggleGroupItem:()=>Ji,Tooltip:()=>is,TooltipContent:()=>Nr,TooltipProvider:()=>ss,TooltipTrigger:()=>ns,VideoHeader:()=>dg,WhyUs:()=>Iu,badgeVariants:()=>vn,buttonVariants:()=>Ya,cn:()=>l,getTableOfContents:()=>Go,reducer:()=>cd,toast:()=>md,toggleVariants:()=>Ar,useIsMobile:()=>rs,useSidebar:()=>Xo,useToast:()=>ms});module.exports=lp(Xg);var $o=x(require("react")),es=require("@radix-ui/react-icons"),Ol=require("@radix-ui/react-slot");var Bl=require("clsx");var ui="-",dp=e=>{let t=mp(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:n=>{let i=n.split(ui);return i[0]===""&&i.length!==1&&i.shift(),Dl(i,t)||cp(n)},getConflictingClassGroupIds:(n,i)=>{let m=a[n]||[];return i&&o[n]?[...m,...o[n]]:m}}},Dl=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?Dl(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(ui);return t.validators.find(({validator:n})=>n(s))?.classGroupId},Rl=/^\[(.+)\]$/,cp=e=>{if(Rl.test(e)){let t=Rl.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},mp=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return up(Object.entries(e.classGroups),a).forEach(([s,n])=>{pi(n,o,s,t)}),o},pi=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:Tl(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(pp(r)){pi(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,n])=>{pi(n,Tl(t,s),a,o)})})},Tl=(e,t)=>{let a=e;return t.split(ui).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},pp=e=>e.isThemeGetter,up=(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,gp=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)}}},Ml="!",fp=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,n=i=>{let m=[],c=0,d=0,p;for(let h=0;h<i.length;h++){let z=i[h];if(c===0){if(z===r&&(o||i.slice(h,h+s)===t)){m.push(i.slice(d,h)),d=h+s;continue}if(z==="/"){p=h;continue}}z==="["?c++:z==="]"&&c--}let u=m.length===0?i:i.substring(d),f=u.startsWith(Ml),b=f?u.substring(1):u,g=p&&p>d?p-d:void 0;return{modifiers:m,hasImportantModifier:f,baseClassName:b,maybePostfixModifierPosition:g}};return a?i=>a({className:i,parseClassName:n}):n},bp=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},vp=e=>({cache:gp(e.cacheSize),parseClassName:fp(e),...dp(e)}),hp=/\s+/,yp=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],n=e.trim().split(hp),i="";for(let m=n.length-1;m>=0;m-=1){let c=n[m],{modifiers:d,hasImportantModifier:p,baseClassName:u,maybePostfixModifierPosition:f}=a(c),b=!!f,g=o(b?u.substring(0,f):u);if(!g){if(!b){i=c+(i.length>0?" "+i:i);continue}if(g=o(u),!g){i=c+(i.length>0?" "+i:i);continue}b=!1}let h=bp(d).join(":"),z=p?h+Ml:h,D=z+g;if(s.includes(D))continue;s.push(D);let k=r(g,b);for(let R=0;R<k.length;++R){let N=k[R];s.push(z+N)}i=c+(i.length>0?" "+i:i)}return i};function xp(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Al(t))&&(o&&(o+=" "),o+=a);return o}var Al=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Al(e[o]))&&(a&&(a+=" "),a+=t);return a};function wp(e,...t){let a,o,r,s=n;function n(m){let c=t.reduce((d,p)=>p(d),e());return a=vp(c),o=a.cache.get,r=a.cache.set,s=i,i(m)}function i(m){let c=o(m);if(c)return c;let d=yp(m,a);return r(m,d),d}return function(){return s(xp.apply(null,arguments))}}var xe=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Il=/^\[(?:([a-z-]+):)?(.+)\]$/i,Np=/^\d+\/\d+$/,Cp=new Set(["px","full","screen"]),kp=/^(\d+(\.\d+)?)?(xs|Vs|md|lg|xl)$/,Pp=/\d+(%|px|r?em|[sdl]?Ot([hwib]|min|max)|nd|pc|in|Et|Hl|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Sp=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Rp=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)Ot-?((\d+)?\.?(\d+)[a-z]+|0)/,Tp=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ya=e=>jo(e)||Cp.has(e)||Np.test(e),Ua=e=>_o(e,"length",Ep),jo=e=>!!e&&!Number.isNaN(Number(e)),mi=e=>_o(e,"number",jo),br=e=>!!e&&Number.isInteger(Number(e)),Dp=e=>e.endsWith("%")&&jo(e.slice(0,-1)),G=e=>Il.test(e),Wa=e=>kp.test(e),Mp=new Set(["length","size","percentage"]),Ap=e=>_o(e,Mp,Ll),Ip=e=>_o(e,"position",Ll),Lp=new Set(["image","url"]),zp=e=>_o(e,Lp,Fp),Bp=e=>_o(e,"",Hp),vr=()=>!0,_o=(e,t,a)=>{let o=Il.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Ep=e=>Pp.test(e)&&!Sp.test(e),Ll=()=>!1,Hp=e=>Rp.test(e),Fp=e=>Tp.test(e);var Op=()=>{let e=xe("colors"),t=xe("spacing"),a=xe("blur"),o=xe("brightness"),r=xe("borderColor"),s=xe("borderRadius"),n=xe("borderSpacing"),i=xe("borderWidth"),m=xe("contrast"),c=xe("grayscale"),d=xe("hueRotate"),p=xe("invert"),u=xe("gap"),f=xe("gradientColorStops"),b=xe("gradientColorStopPositions"),g=xe("inset"),h=xe("margin"),z=xe("opacity"),D=xe("padding"),k=xe("saturate"),R=xe("scale"),N=xe("sepia"),I=xe("skew"),re=xe("space"),ot=xe("translate"),y=()=>["auto","contain","none"],w=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto",G,t],P=()=>[G,t],ve=()=>["",ya,Ua],Se=()=>["auto",jo,G],Ke=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ft=()=>["solid","dashed","dotted","double","none"],Ft=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Mt=()=>["start","end","center","between","around","evenly","stretch"],bt=()=>["","0",G],vt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],be=()=>[jo,G];return{cacheSize:500,separator:":",theme:{colors:[vr],spacing:[ya,Ua],blur:["none","",Wa,G],brightness:be(),borderColor:[e],borderRadius:["none","","full",Wa,G],borderSpacing:P(),borderWidth:ve(),contrast:be(),grayscale:bt(),hueRotate:be(),invert:bt(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[Dp,Ua],inset:T(),margin:T(),opacity:be(),padding:P(),saturate:be(),scale:be(),sepia:bt(),skew:be(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",G]}],container:["container"],columns:[{columns:[Wa]}],"break-after":[{"break-after":vt()}],"break-before":[{"break-before":vt()}],"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:[...Ke(),G]}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:y()}],"overscroll-x":[{"overscroll-x":y()}],"overscroll-y":[{"overscroll-y":y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",br,G]}],basis:[{basis:T()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",G]}],grow:[{grow:bt()}],shrink:[{shrink:bt()}],order:[{order:["first","last","none",br,G]}],"grid-cols":[{"grid-cols":[vr]}],"col-start-end":[{col:["auto",{span:["full",br,G]},G]}],"col-start":[{"col-start":Se()}],"col-end":[{"col-end":Se()}],"grid-rows":[{"grid-rows":[vr]}],"row-start-end":[{row:["auto",{span:[br,G]},G]}],"row-start":[{"row-start":Se()}],"row-end":[{"row-end":Se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",G]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",G]}],gap:[{gap:[u]}],"gap-x":[{"gap-x":[u]}],"gap-y":[{"gap-y":[u]}],"justify-content":[{justify:["normal",...Mt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Mt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Mt(),"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]}],Ot:[{Ot:[D]}],nd:[{nd:[D]}],Hl:[{Hl:[D]}],pb:[{pb:[D]}],pl:[{pl:[D]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],Ot:[{Ot:[h]}],Hl:[{Hl:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[re]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[re]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",G,t]}],"min-w":[{"min-w":[G,t,"min","max","fit"]}],"max-w":[{"max-w":[G,t,"none","full","min","max","fit","prose",{screen:[Wa]},Wa]}],h:[{h:[G,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[G,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[G,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[G,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Wa,Ua]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",mi]}],"font-family":[{font:[vr]}],"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",G]}],"line-clamp":[{"line-clamp":["none",jo,mi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ya,G]}],"list-image":[{"list-image":["none",G]}],"list-style-type":[{list:["none","disc","decimal",G]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[z]}],"text-decoration":["underline","overline","line-through","nd-underline"],"text-decoration-style":[{decoration:[...ft(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ya,Ua]}],"underline-offset":[{"underline-offset":["auto",ya,G]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G]}],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",G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[z]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ke(),Ip]}],"bg-repeat":[{bg:["nd-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ap]}],"bg-image":[{bg:["none",{"gradient-to":["t","Ot","r","br","b","bl","l","tl"]},zp]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],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-Ot":[{"rounded-Ot":[s]}],"rounded-Ot":[{"rounded-Ot":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-Ot":[{"rounded-Ot":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[z]}],"border-style":[{border:[...ft(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[z]}],"divide-style":[{divide:ft()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...ft()]}],"outline-offset":[{"outline-offset":[ya,G]}],"outline-w":[{outline:[ya,Ua]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ve()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[z]}],"ring-offset-w":[{"ring-offset":[ya,Ua]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Wa,Bp]}],"shadow-color":[{shadow:[vr]}],opacity:[{opacity:[z]}],"mix-blend":[{"mix-blend":[...Ft(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ft()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",Wa,G]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[k]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[z]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",G]}],duration:[{duration:be()}],ease:[{ease:["linear","in","out","in-out",G]}],delay:[{delay:be()}],animate:[{animate:["none","spin","ping","pulse","bounce",G]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[br,G]}],"translate-x":[{"translate-x":[ot]}],"translate-y":[{"translate-y":[ot]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",G]}],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","nd-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","Ot-resize","nw-resize","Ot-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",G]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-Ot":[{"scroll-Ot":P()}],"scroll-Hl":[{"scroll-Hl":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-Ot":[{"scroll-Ot":P()}],"scroll-nd":[{"scroll-nd":P()}],"scroll-Hl":[{"scroll-Hl":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",G]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ya,Ua,mi]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","Ot","nd","Hl","pb","pl"],px:["Hl","pl"],py:["nd","pb"],m:["mx","my","ms","me","Ot","Hl","mb","ml"],mx:["Hl","ml"],my:["Ot","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-Ot","rounded-Ot","rounded-es","rounded-tl","rounded-Ot","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-Ot","rounded-Ot"],"rounded-t":["rounded-tl","rounded-Ot"],"rounded-r":["rounded-Ot","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-Ot","scroll-Hl","scroll-mb","scroll-ml"],"scroll-mx":["scroll-Hl","scroll-ml"],"scroll-my":["scroll-Ot","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-Ot","scroll-nd","scroll-Hl","scroll-pb","scroll-pl"],"scroll-px":["scroll-Hl","scroll-pl"],"scroll-py":["scroll-nd","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var zl=wp(Op);function l(...e){return zl((0,Bl.clsx)(e))}function Go(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,Ql:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(i=>{if(i.title&&n.push({text:i.title,Ql:a(i.title,t++),tag:"h2"}),i.richText?.root?.children&&i.richText?.root?.children.length===1){let m=i.richText.root.children.filter(c=>c!==void 0&&c.type==="heading");for(let c of m)c.children[0]&&n.push({text:c.children[0].text??"",Ql:a(c.children[0].text,t++),tag:c.tag||"h2"})}}),n}),r=jp(e.layout);return{tableOfContents:o,contentWithIds:r}}function jp(e){let t=(o,r)=>`${o.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${r}`,a=0;return e.map(o=>(o.title&&(o.Ql=t(o.title,a++)),o.columns&&(o.columns=o.columns.map(r=>(r.title&&(r.Ql=t(r.title,a++)),r.richText&&(r.richText.root.children=r.richText.root.children.filter(s=>s!==void 0).map(s=>(s.type==="heading"&&s.children&&s.children[0].text?s.Ql=t(s.children[0].text,a++):s.type==="block"&&s.fields?.media&&(s.Ql=t(`image-${a}`,a++)),s))),r))),o))}var Hl=require("react"),Fl=x(El());function _p(){return(0,Hl.useEffect)(()=>{Fl.default.init({duration:1e3,offset:0,once:!0})},[]),null}var Ot=require("react/jsx-runtime"),fi=$o.forwardRef(({...e},t)=>(0,Ot.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));fi.displayName="Breadcrumb";var bi=$o.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)("ol",{ref:a,className:l("flex flex-wrap items-center gap-1.5 break-words text-Vs text-muted-foreground Vs:gap-2.5",e),...t}));bi.displayName="BreadcrumbList";var vi=$o.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)("li",{ref:a,className:l("inline-flex items-center gap-1.5",e),...t}));vi.displayName="BreadcrumbItem";var hi=$o.forwardRef(({asChild:e,className:t,...a},o)=>(0,Ot.jsx)(e?Ol.Slot:"a",{ref:o,className:l("transition-colors hover:text-foreground",t),...a}));hi.displayName="BreadcrumbLink";var yi=$o.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:l("font-normal text-foreground",e),...t}));yi.displayName="BreadcrumbPage";var xi=({children:e,className:t,...a})=>(0,Ot.jsx)("li",{role:"presentation","aria-hidden":"true",className:l("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e??(0,Ot.jsx)(es.ChevronRightIcon,{})});xi.displayName="BreadcrumbSeparator";var wi=({className:e,...t})=>(0,Ot.jsxs)("span",{role:"presentation","aria-hidden":"true",className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,Ot.jsx)(es.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,Ot.jsx)("span",{className:"sr-only",children:"More"})]});wi.displayName="BreadcrumbElipssis";var Uo=x(require("@radix-ui/react-collapsible")),xa=Uo.Root,Va=Uo.CollapsibleTrigger,Xa=Uo.CollapsibleContent;var wa=x(require("react")),V=x(require("@radix-ui/react-dropdown-menu"));var jl=V.Root,_l=V.Trigger,Gl=V.Group,$l=V.Portal,Ul=V.Sub,Wl=V.RadioGroup,Ni=wa.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Ot.jsxs)(V.SubTrigger,{ref:r,className:l("flex cursor-default gap-2 select-none items-center rounded-Vs px-2 py-1.5 text-Vs 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,Ot.jsx)(es.ChevronRightIcon,{className:"ml-auto"})]}));Ni.displayName=V.SubTrigger.displayName;var Ci=wa.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(V.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}));Ci.displayName=V.SubContent.displayName;var ki=wa.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ot.jsx)(V.Portal,{children:(0,Ot.jsx)(V.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})}));ki.displayName=V.Content.displayName;var Pi=wa.forwardRef(({className:e,inset:t,...a},o)=>(0,Ot.jsx)(V.Item,{ref:o,className:l("relative flex cursor-default select-none items-center gap-2 rounded-Vs px-2 py-1.5 text-Vs 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}));Pi.displayName=V.Item.displayName;var Si=wa.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Ot.jsxs)(V.CheckboxItem,{ref:r,className:l("relative flex cursor-default select-none items-center rounded-Vs py-1.5 pl-8 Hl-2 text-Vs 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,Ot.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ot.jsx)(V.ItemIndicator,{children:(0,Ot.jsx)(es.CheckIcon,{className:"h-4 w-4"})})}),t]}));Si.displayName=V.CheckboxItem.displayName;var Ri=wa.forwardRef(({className:e,children:t,...a},o)=>(0,Ot.jsxs)(V.RadioItem,{ref:o,className:l("relative flex cursor-default select-none items-center rounded-Vs py-1.5 pl-8 Hl-2 text-Vs outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,Ot.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ot.jsx)(V.ItemIndicator,{children:(0,Ot.jsx)(es.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Ri.displayName=V.RadioItem.displayName;var Ti=wa.forwardRef(({className:e,inset:t,...a},o)=>(0,Ot.jsx)(V.Label,{ref:o,className:l("px-2 py-1.5 text-Vs font-semibold",t&&"pl-8",e),...a}));Ti.displayName=V.Label.displayName;var Di=wa.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(V.Separator,{ref:a,className:l("-mx-1 my-1 h-px bg-muted",e),...t}));Di.displayName=V.Separator.displayName;var Mi=({className:e,...t})=>(0,Ot.jsx)("span",{className:l("ml-auto text-xs tracking-widest opacity-60",e),...t});Mi.displayName="DropdownMenuShortcut";var Vl=x(require("react"));var yt=Vl.forwardRef(({className:e,type:t,...a},o)=>(0,Ot.jsx)("input",{type:t,className:l("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-Vs shadow-Vs transition-colors file:border-0 file:bg-transparent file:text-Vs 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}));yt.displayName="Input";var Yl=x(require("react")),Ai=x(require("@radix-ui/react-separator"));var yr=Yl.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,Ot.jsx)(Ai.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}));yr.displayName=Ai.Root.displayName;var xr=x(require("react")),Ae=x(require("@radix-ui/react-dialog")),Ql=require("class-variance-authority");var ts=Ae.Root,Jl=Ae.Trigger,Zl=Ae.Close,Ii=Ae.Portal,as=xr.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(Ae.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}));as.displayName=Ae.Overlay.displayName;var Gp=(0,Ql.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-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left Vs:max-w-Vs",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right Vs:max-w-Vs"}},defaultVariants:{side:"right"}}),wr=xr.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,Ot.jsxs)(Ii,{children:[(0,Ot.jsx)(as,{}),(0,Ot.jsxs)(Ae.Content,{ref:r,className:l(Gp({side:e}),t),...o,children:[(0,Ot.jsxs)(Ae.Close,{className:"absolute right-4 top-4 rounded-Vs 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,Ot.jsx)(es.Cross2Icon,{className:"h-4 w-4"}),(0,Ot.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));wr.displayName=Ae.Content.displayName;var Li=({className:e,...t})=>(0,Ot.jsx)("div",{className:l("flex flex-col space-y-2 text-center Vs:text-left",e),...t});Li.displayName="SheetHeader";var zi=({className:e,...t})=>(0,Ot.jsx)("div",{className:l("flex flex-col-reverse Vs:flex-row Vs:justify-end Vs:space-x-2",e),...t});zi.displayName="SheetFooter";var Bi=xr.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(Ae.Title,{ref:a,className:l("text-lg font-semibold text-foreground",e),...t}));Bi.displayName=Ae.Title.displayName;var Ei=xr.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(Ae.Description,{ref:a,className:l("text-Vs text-muted-foreground",e),...t}));Ei.displayName=Ae.Description.displayName;var Y=x(require("react")),nd=require("lucide-react");var rs=(e=768)=>{let[t,a]=(0,Hl.useState)(!1);return(0,Hl.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var ad=x(require("react")),Ya=(0,Ql.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-Vs 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",Vs:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),B=ad.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,Ot.jsx)(e?Ol.Slot:"button",{className:l(Ya({className:t,size:a,variant:o})),ref:s,...r}));B.displayName="Button";function Ie({className:e,...t}){return(0,Ot.jsx)("div",{className:l("animate-pulse rounded-md bg-primary/10",e),...t})}var sd=x(require("react")),Kt=x(require("@radix-ui/react-tooltip"));var ss=Kt.Provider,is=Kt.Root,ns=Kt.Trigger,Nr=sd.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ot.jsx)(Kt.Portal,{children:(0,Ot.jsx)(Kt.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})}));Nr.displayName=Kt.Content.displayName;var $p="sidebar:state",Up=60*60*24*7,Wp="16rem",Vp="18rem",Xp="3rem",Yp="b",ld=Y.createContext(null);function Xo(){let e=Y.useContext(ld);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var Fi=Y.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...n},i)=>{let m=rs(),[c,d]=Y.useState(!1),[p,u]=Y.useState(e),f=t??p,b=Y.useCallback(D=>{if(a)return a?.(typeof D=="function"?D(f):D);u(D),document.cookie=`${$p}=${f}; path=/; max-age=${Up}`},[a,f]),g=Y.useCallback(()=>m?d(D=>!D):b(D=>!D),[m,b,d]);Y.useEffect(()=>{let D=k=>{k.key===Yp&&(k.metaKey||k.ctrlKey)&&(k.preventDefault(),g())};return window.addEventListener("keydown",D),()=>window.removeEventListener("keydown",D)},[g]);let h=f?"expanded":"collapsed",z=Y.useMemo(()=>({state:h,open:f,setOpen:b,isMobile:m,openMobile:c,setOpenMobile:d,toggleSidebar:g}),[h,f,b,m,c,d,g]);return(0,$.jsx)(ld.Provider,{value:z,children:(0,$.jsx)(ss,{delayDuration:0,children:(0,$.jsx)("div",{style:{"--sidebar-width":Wp,"--sidebar-width-icon":Xp,...r},className:l("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:i,...n,children:s})})})});Fi.displayName="SidebarProvider";var vo=Y.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},n)=>{let{isMobile:i,state:m,openMobile:c,setOpenMobile:d}=Xo();return a==="none"?(0,$.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,$.jsx)(ts,{open:c,onOpenChange:d,...s,children:(0,$.jsx)(wr,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Vp},side:e,children:(0,$.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,$.jsxs)("div",{ref:n,className:"group peer hidden md:block text-sidebar-foreground","data-state":m,"data-collapsible":m==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,$.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)Ot+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,$.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)Ot+_theme(spacing.4)Ot+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,$.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})})]})});vo.displayName="Sidebar";var Oi=Y.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=Xo();return(0,$.jsxs)(B,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:l("h-7 w-7",e),onClick:s=>{t?.(s),r()},...a,children:[(0,$.jsx)(nd.PanelLeft,{}),(0,$.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Oi.displayName="SidebarTrigger";var ji=Y.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=Xo();return(0,$.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:l("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 Vs:flex","[[data-side=left]Ot&]:cursor-w-resize [[data-side=right]Ot&]:cursor-e-resize","[[data-side=left][data-state=collapsed]Ot&]:cursor-e-resize [[data-side=right][data-state=collapsed]Ot&]: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]Ot&]:-right-2","[[data-side=right][data-collapsible=offcanvas]Ot&]:-left-2",e),...t})});ji.displayName="SidebarRail";var _i=Y.forwardRef(({className:e,...t},a)=>(0,$.jsx)("main",{ref:a,className:l("flex flex-1 flex-col bg-background overflow-y-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));_i.displayName="SidebarInset";var Gi=Y.forwardRef(({className:e,...t},a)=>(0,$.jsx)(yt,{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}));Gi.displayName="SidebarInput";var ho=Y.forwardRef(({className:e,...t},a)=>(0,$.jsx)("div",{ref:a,"data-sidebar":"header",className:l("flex flex-col gap-2 p-2",e),...t}));ho.displayName="SidebarHeader";var yo=Y.forwardRef(({className:e,...t},a)=>(0,$.jsx)("div",{ref:a,"data-sidebar":"footer",className:l("flex flex-col gap-2 p-2",e),...t}));yo.displayName="SidebarFooter";var Cr=Y.forwardRef(({className:e,...t},a)=>(0,$.jsx)(yr,{ref:a,"data-sidebar":"separator",className:l("mx-2 w-auto bg-sidebar-border",e),...t}));Cr.displayName="SidebarSeparator";var qa=Y.forwardRef(({className:e,...t},a)=>(0,$.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}));qa.displayName="SidebarContent";var jt=Y.forwardRef(({className:e,...t},a)=>(0,$.jsx)("div",{ref:a,"data-sidebar":"group",className:l("relative flex w-full min-w-0 flex-col p-2",e),...t}));jt.displayName="SidebarGroup";var Na=Y.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,$.jsx)(t?Ol.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]:-Ot-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Na.displayName="SidebarGroupLabel";var $i=Y.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,$.jsx)(t?Ol.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}));$i.displayName="SidebarGroupAction";var Qt=Y.forwardRef(({className:e,...t},a)=>(0,$.jsx)("div",{ref:a,"data-sidebar":"group-content",className:l("w-full text-Vs",e),...t}));Qt.displayName="SidebarGroupContent";var xt=Y.forwardRef(({className:e,...t},a)=>(0,$.jsx)("ul",{ref:a,"data-sidebar":"menu",className:l("flex w-full min-w-0 flex-col gap-1",e),...t}));xt.displayName="SidebarMenu";var rt=Y.forwardRef(({className:e,...t},a)=>(0,$.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:l("group/menu-item relative",e),...t}));rt.displayName="SidebarMenuItem";var qp=(0,Ql.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-Vs 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:Hl-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-Vs",Vs:"h-7 text-xs",lg:"h-12 text-Vs group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),_t=Y.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...n},i)=>{let m=e?Ol.Slot:"button",{isMobile:c,state:d}=Xo(),p=(0,$.jsx)(m,{ref:i,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:l(qp({variant:a,size:o}),s),...n});return r?(typeof r=="string"&&(r={children:r}),(0,$.jsxs)(is,{children:[(0,$.jsx)(ns,{asChild:!0,children:p}),(0,$.jsx)(Nr,{side:"right",align:"center",hidden:d!=="collapsed"||c,...r})]})):p});_t.displayName="SidebarMenuButton";var kr=Y.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,$.jsx)(t?Ol.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=Vs]/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}));kr.displayName="SidebarMenuAction";var Ui=Y.forwardRef(({className:e,...t},a)=>(0,$.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=Vs]/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}));Ui.displayName="SidebarMenuBadge";var Wi=Y.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=Y.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,$.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,$.jsx)(Ie,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,$.jsx)(Ie,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});Wi.displayName="SidebarMenuSkeleton";var Ka=Y.forwardRef(({className:e,...t},a)=>(0,$.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}));Ka.displayName="SidebarMenuSub";var Qa=Y.forwardRef(({...e},t)=>(0,$.jsx)("li",{ref:t,...e}));Qa.displayName="SidebarMenuSubItem";var Ja=Y.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...r},s)=>(0,$.jsx)(e?Ol.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==="Vs"&&"text-xs",t==="md"&&"text-Vs","group-data-[collapsible=icon]:hidden",o),...r}));Ja.displayName="SidebarMenuSubButton";var cs=x(require("react")),Kp=1,Qp=1e6;var Vi=0;function Jp(){return Vi=(Vi+1)%Number.MAX_SAFE_INTEGER,Vi.toString()}var Xi=new Map,dd=e=>{if(Xi.has(e))return;let t=setTimeout(()=>{Xi.delete(e),Pr({type:"REMOVE_TOAST",toastId:e})},Qp);Xi.set(e,t)},cd=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Kp)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(a=>a.Ql===t.toast.Ql?{...a,...t.toast}:a)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?dd(a):e.toasts.forEach(o=>{dd(o.Ql)}),{...e,toasts:e.toasts.map(o=>o.Ql===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.Ql!==t.toastId)}}},ls=[],ds={toasts:[]};function Pr(e){ds=cd(ds,e),ls.forEach(t=>{t(ds)})}function md({...e}){let t=Jp(),a=r=>Pr({type:"UPDATE_TOAST",toast:{...r,Ql:t}}),o=()=>Pr({type:"DISMISS_TOAST",toastId:t});return Pr({type:"ADD_TOAST",toast:{...e,Ql:t,open:!0,onOpenChange:r=>{r||o()}}}),{Ql:t,dismiss:o,update:a}}function ms(){let[e,t]=cs.useState(ds);return cs.useEffect(()=>(ls.push(t),()=>{let a=ls.indexOf(t);a>-1&&ls.splice(a,1)}),[e]),{...e,toast:md,dismiss:a=>Pr({type:"DISMISS_TOAST",toastId:a})}}var xo=x(require("react")),Oe=x(require("@radix-ui/react-toast"));var ps=Oe.Provider,Sr=xo.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(Oe.Viewport,{ref:a,className:l("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 Vs:bottom-0 Vs:right-0 Vs:top-auto Vs:flex-col md:max-w-[420px]",e),...t}));Sr.displayName=Oe.Viewport.displayName;var Zp=(0,Ql.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 Hl-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]:Vs: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"}}),Rr=xo.forwardRef(({className:e,variant:t,...a},o)=>(0,Ot.jsx)(Oe.Root,{ref:o,className:l(Zp({variant:t}),e),...a}));Rr.displayName=Oe.Root.displayName;var Yi=xo.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(Oe.Action,{ref:a,className:l("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-Vs 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}));Yi.displayName=Oe.Action.displayName;var Tr=xo.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(Oe.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,Ot.jsx)(nd.Ot,{className:"h-4 w-4"})}));Tr.displayName=Oe.Close.displayName;var Dr=xo.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(Oe.Title,{ref:a,className:l("text-Vs font-semibold [&+div]:text-xs",e),...t}));Dr.displayName=Oe.Title.displayName;var Mr=xo.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(Oe.Description,{ref:a,className:l("text-Vs opacity-90",e),...t}));Mr.displayName=Oe.Description.displayName;function gd(){let{toasts:e}=ms();return(0,Ot.jsxs)(ps,{children:[e.map(function({Ql:t,title:a,description:o,action:r,...s}){return(0,Ot.jsxs)(Rr,{...s,children:[(0,Ot.jsxs)("div",{className:"grid gap-1",children:[a&&(0,Ot.jsx)(Dr,{children:a}),o&&(0,Ot.jsx)(Mr,{children:o})]}),r,(0,Ot.jsx)(Tr,{})]},t)}),(0,Ot.jsx)(Sr,{})]})}var fd=x(require("react")),qi=x(require("@radix-ui/react-toggle"));var Ar=(0,Ql.cva)("inline-flex items-center justify-center gap-2 rounded-md text-Vs 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-Vs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",Vs:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ki=fd.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,Ot.jsx)(qi.Root,{ref:r,className:l(Ar({variant:t,size:a,className:e})),...o}));Ki.displayName=qi.Root.displayName;var wo=x(require("react")),Yo=x(require("@radix-ui/react-toggle-group"));var hd=wo.createContext({size:"default",variant:"default"}),Qi=wo.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,Ot.jsx)(Yo.Root,{ref:s,className:l("flex items-center justify-center gap-1",e),...r,children:(0,Ot.jsx)(hd.Provider,{value:{variant:t,size:a},children:o})}));Qi.displayName=Yo.Root.displayName;var Ji=wo.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let n=wo.useContext(hd);return(0,Ot.jsx)(Yo.Item,{ref:s,className:l(Ar({variant:n.variant||a,size:n.size||o}),e),...r,children:t})});Ji.displayName=Yo.Item.displayName;var Zi=x(require("react")),Gt=x(require("@radix-ui/react-scroll-area"));var ma=Zi.forwardRef(({className:e,children:t,...a},o)=>(0,Ot.jsxs)(Gt.Root,{ref:o,className:l("relative overflow-hidden",e),...a,children:[(0,Ot.jsx)(Gt.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Ot.jsx)(gs,{}),(0,Ot.jsx)(Gt.Corner,{})]}));ma.displayName=Gt.Root.displayName;var gs=Zi.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,Ot.jsx)(Gt.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,Ot.jsx)(Gt.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));gs.displayName=Gt.ScrollAreaScrollbar.displayName;var yd=x(require("react")),Jt=x(require("@radix-ui/react-popover"));var Ir=Jt.Root,Lr=Jt.Trigger,xd=Jt.Anchor,qo=yd.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Ot.jsx)(Jt.Portal,{children:(0,Ot.jsx)(Jt.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})}));qo.displayName=Jt.Content.displayName;var wd=x(require("react")),tn=x(require("@radix-ui/react-label"));var eu=(0,Ql.cva)("text-Vs font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),F=wd.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(tn.Root,{ref:a,className:l(eu(),e),...t}));F.displayName=tn.Root.displayName;var kd=x(require("react")),No=x(require("@radix-ui/react-hover-card"));var Pd=No.Root,Sd=No.Trigger,an=kd.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Ot.jsx)(No.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}));an.displayName=No.Content.displayName;var zr=x(require("react")),Le=x(require("@radix-ui/react-dialog"));var pa=Le.Root,Dd=Le.Trigger,on=Le.Portal,fs=Le.Close,bs=zr.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(Le.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}));bs.displayName=Le.Overlay.displayName;var Zt=zr.forwardRef(({className:e,children:t,...a},o)=>(0,Ot.jsxs)(on,{children:[(0,Ot.jsx)(bs,{}),(0,Ot.jsxs)(Le.Content,{ref:o,className:l("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-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%] Vs:rounded-lg",e),...a,children:[t,(0,Ot.jsxs)(Le.Close,{className:"absolute right-4 top-4 rounded-Vs 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,Ot.jsx)(nd.Ot,{className:"h-4 w-4"}),(0,Ot.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Zt.displayName=Le.Content.displayName;var ka=({className:e,...t})=>(0,Ot.jsx)("div",{className:l("flex flex-col space-y-1.5 text-center Vs:text-left",e),...t});ka.displayName="DialogHeader";var rn=({className:e,...t})=>(0,Ot.jsx)("div",{className:l("flex flex-col-reverse Vs:flex-row Vs:justify-end Vs:space-x-2",e),...t});rn.displayName="DialogFooter";var Pa=zr.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(Le.Title,{ref:a,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));Pa.displayName=Le.Title.displayName;var sn=zr.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(Le.Description,{ref:a,className:l("text-Vs text-muted-foreground",e),...t}));sn.displayName=Le.Description.displayName;var to=x(require("react")),ct=require("cmdk");var vs=to.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(ct.Command,{ref:a,className:l("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));vs.displayName=ct.Command.displayName;var Ad=({children:e,...t})=>(0,Ot.jsx)(pa,{...t,children:(0,Ot.jsx)(Zt,{className:"overflow-hidden p-0",children:(0,Ot.jsx)(vs,{className:"[&Ot[cmdk-group-heading]]:px-2 [&Ot[cmdk-group-heading]]:font-medium [&Ot[cmdk-group-heading]]:text-muted-foreground [&Ot[cmdk-group]:not([hidden])Ot~[cmdk-group]]:nd-0 [&Ot[cmdk-group]]:px-2 [&Ot[cmdk-input-wrapper]_svg]:h-5 [&Ot[cmdk-input-wrapper]_svg]:w-5 [&Ot[cmdk-input]]:h-12 [&Ot[cmdk-item]]:px-2 [&Ot[cmdk-item]]:py-3 [&Ot[cmdk-item]_svg]:h-5 [&Ot[cmdk-item]_svg]:w-5",children:e})})}),nn=to.forwardRef(({className:e,...t},a)=>(0,Ot.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,Ot.jsx)(nd.Search,{className:"Hl-2 h-4 w-4 shrink-0 opacity-50"}),(0,Ot.jsx)(ct.Command.Input,{ref:a,className:l("flex h-10 w-full rounded-md bg-transparent py-3 text-Vs outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));nn.displayName=ct.Command.Input.displayName;var ln=to.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(ct.Command.List,{ref:a,className:l("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));ln.displayName=ct.Command.List.displayName;var dn=to.forwardRef((e,t)=>(0,Ot.jsx)(ct.Command.Empty,{ref:t,className:"py-6 text-center text-Vs",...e}));dn.displayName=ct.Command.Empty.displayName;var cn=to.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(ct.Command.Group,{ref:a,className:l("overflow-hidden p-1 text-foreground [&Ot[cmdk-group-heading]]:px-2 [&Ot[cmdk-group-heading]]:py-1.5 [&Ot[cmdk-group-heading]]:text-xs [&Ot[cmdk-group-heading]]:font-medium [&Ot[cmdk-group-heading]]:text-muted-foreground",e),...t}));cn.displayName=ct.Command.Group.displayName;var mn=to.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(ct.Command.Separator,{ref:a,className:l("-mx-1 h-px bg-border",e),...t}));mn.displayName=ct.Command.Separator.displayName;var pn=to.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(ct.Command.Item,{ref:a,className:l("relative flex cursor-default gap-2 select-none items-center rounded-Vs px-2 py-1.5 text-Vs 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}));pn.displayName=ct.Command.Item.displayName;var un=({className:e,...t})=>(0,Ot.jsx)("span",{className:l("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});un.displayName="CommandShortcut";var hs=x(require("react"));var tu=(0,Ql.cva)("relative w-full rounded-lg border px-4 py-3 text-Vs [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),gn=hs.forwardRef(({className:e,variant:t,...a},o)=>(0,Ot.jsx)("div",{ref:o,role:"alert",className:l(tu({variant:t}),e),...a}));gn.displayName="Alert";var fn=hs.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)("h5",{ref:a,className:l("mb-1 font-medium leading-none tracking-tight",e),...t}));fn.displayName="AlertTitle";var bn=hs.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)("div",{ref:a,className:l("text-Vs [&_p]:leading-relaxed",e),...t}));bn.displayName="AlertDescription";var xs=x(require("react")),Sa=x(require("@radix-ui/react-avatar"));var wt=xs.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(Sa.Root,{ref:a,className:l("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));wt.displayName=Sa.Root.displayName;var Nt=xs.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(Sa.Image,{ref:a,className:l("aspect-square h-full w-full",e),...t}));Nt.displayName=Sa.Image.displayName;var Ct=xs.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(Sa.Fallback,{ref:a,className:l("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ct.displayName=Sa.Fallback.displayName;var vn=(0,Ql.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function kt({className:e,variant:t,...a}){return(0,Ot.jsx)("div",{className:l(vn({variant:t}),e),...a})}var Br=x(require("@radix-ui/react-checkbox")),Ed=x(require("react")),ea=Ed.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(Br.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,Ot.jsx)(Br.Indicator,{className:l("flex items-center justify-center text-current"),children:(0,Ot.jsx)(nd.Check,{className:"h-4 w-4"})})}));ea.displayName=Br.Root.displayName;var K=x(require("@radix-ui/react-select")),ao=x(require("react")),oo=K.Root,au=K.Group,ro=K.Value,Ra=ao.forwardRef(({children:e,className:t,...a},o)=>(0,Ot.jsxs)(K.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,Ot.jsx)(K.Icon,{asChild:!0,children:(0,Ot.jsx)(nd.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Ra.displayName=K.Trigger.displayName;var hn=ao.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(K.ScrollUpButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Ot.jsx)(nd.ChevronUp,{className:"h-4 w-4"})}));hn.displayName=K.ScrollUpButton.displayName;var yn=ao.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(K.ScrollDownButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Ot.jsx)(nd.ChevronDown,{className:"h-4 w-4"})}));yn.displayName=K.ScrollDownButton.displayName;var Ta=ao.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,Ot.jsx)(K.Portal,{children:(0,Ot.jsxs)(K.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-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,ref:r,...o,children:[(0,Ot.jsx)(hn,{}),(0,Ot.jsx)(K.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,Ot.jsx)(yn,{})]})}));Ta.displayName=K.Content.displayName;var Hd=ao.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(K.Label,{className:l("py-1.5 pl-8 Hl-2 text-Vs font-semibold",e),ref:a,...t}));Hd.displayName=K.Label.displayName;var Da=ao.forwardRef(({children:e,className:t,...a},o)=>(0,Ot.jsxs)(K.Item,{className:l("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 Hl-2 text-Vs outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[(0,Ot.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ot.jsx)(K.ItemIndicator,{children:(0,Ot.jsx)(nd.Check,{className:"h-4 w-4"})})}),(0,Ot.jsx)(K.ItemText,{children:e})]}));Da.displayName=K.Item.displayName;var Fd=ao.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)(K.Separator,{className:l("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Fd.displayName=K.Separator.displayName;var Od=x(require("react")),so=Od.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)("textarea",{className:l("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-Vs 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}));so.displayName="Textarea";var _d=require("react-day-picker");function Er({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,Ot.jsx)(_d.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:l("p-3",e),classNames:{months:"flex flex-col Vs:flex-row space-y-4 Vs:space-x-4 Vs:space-y-0",month:"space-y-4",caption:"flex justify-center nd-1 relative items-center",caption_label:"text-Vs font-medium",nav:"space-x-1 flex items-center",nav_button:l(Ya({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full Ot-2",cell:l("relative p-0 text-center text-Vs 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(Ya({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})}Er.displayName="Calendar";var io=x(require("@radix-ui/react-tabs"));function ou({className:e,...t}){return(0,Ot.jsx)(io.Root,{"data-slot":"tabs",className:l("flex flex-col gap-2",e),...t})}function ru({className:e,...t}){return(0,Ot.jsx)(io.List,{"data-slot":"tabs-list",className:l("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function su({className:e,...t}){return(0,Ot.jsx)(io.Trigger,{"data-slot":"tabs-trigger",className:l("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-Vs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-Vs [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function iu({className:e,...t}){return(0,Ot.jsx)(io.Content,{"data-slot":"tabs-content",className:l("flex-1 outline-none",e),...t})}var xn=({className:e,content:t,style:a})=>(0,Ot.jsx)("div",{className:l("mx-auto my-8 w-full",e),children:(0,Ot.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,Ot.jsx)(J,{content:t,enableGutter:!1,enableProse:!1})})});var wn=x(require("next/link")),ta=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:n,reference:i,size:m,url:c}=e,d=t==="reference"&&typeof i?.value=="object"&&i.value.slug?`${i?.relationTo!=="pages"?`/${i?.relationTo}`:""}/${i.value.slug}`:c;if(!d)return null;let p=a==="link"?"clear":m,u=n?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,Ot.jsxs)(wn.default,{className:l(r),href:d||c||"",...u,children:[s&&s,o&&o]}):(0,Ot.jsx)(B,{asChild:!0,className:r,size:p,variant:a,children:(0,Ot.jsxs)(wn.default,{className:l(r),href:d||c||"",...u,children:[s&&s,o&&o]})})};function ks({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 nu({className:e,...t}){return(0,Ot.jsx)("input",{...t,className:ks({className:e})})}function Ps({icon:e,...t}){return(0,Ot.jsxs)("div",{className:"relative w-full",children:[(0,Ot.jsx)(nu,{...t}),e&&(0,Ot.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-y-1/2 text-accent",children:e})]})}function lu({className:e,...t}){return(0,Ot.jsx)("textarea",{...t,className:l(ks({}),"resize-none md:min-h-[130px]",e)})}function $d({icon:e,...t}){return(0,Ot.jsxs)("div",{className:"relative w-full",children:[(0,Ot.jsx)(lu,{...t}),e&&(0,Ot.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var Wd=require("formik"),Vd=require("react-icons/fa6"),ko=x(require("yup"));async function Ud(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.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Ot 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:"nd-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 Nn=require("sonner"),aa={tooShort:"Must be nd least ${min} characters",tooLong:"Must be nd most ${max} characters",required:"This field is required",email:"Invalid email format"},du=ko.object().shape({name:ko.string().min(2,aa.tooShort).max(50,aa.tooLong).required(aa.required),email:ko.string().email(aa.email).required(aa.required),subject:ko.string().min(2,aa.tooShort).max(50,aa.tooLong).required(aa.required),message:ko.string().min(2,aa.tooShort).max(300,aa.tooLong).required(aa.required)}),Ss=l("!Hl-[44px] text-foreground"),Rs=l("!border-red-600 border"),Ts=l("sr-only");function Ds(){return(0,Ot.jsx)(Wd.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:du,onSubmit:async(e,{resetForm:t})=>{let a=await Ud(e);a.data===null?Nn.toast.error(a.message):(Nn.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:n})=>(0,Ot.jsxs)("form",{onSubmit:n,className:"grid grid-cols-1 gap-2 nd-2 lg:grid-cols-2",children:[(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)(Ps,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,Ot.jsx)(Vd.FaUser,{className:"text-primary"}),className:l(Ss,e.name&&t.name&&Rs)}),e.name&&t.name&&(0,Ot.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:Ts,children:e.name})]}),(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)(Ps,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,Ot.jsx)(cu,{}),className:l(Ss,e.email&&t.email&&Rs)}),e.email&&t.email&&(0,Ot.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:Ts,children:e.email})]}),(0,Ot.jsxs)("div",{className:"lg:col-span-2",children:[(0,Ot.jsx)(Ps,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:l(Ss,e.subject&&t.subject&&Rs)}),e.subject&&t.subject&&(0,Ot.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:Ts,children:e.subject})]}),(0,Ot.jsxs)("div",{className:"lg:col-span-2",children:[(0,Ot.jsx)($d,{placeholder:"Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,Ot.jsx)(mu,{}),className:l(Ss,e.message&&t.message&&Rs)}),e.message&&t.message&&(0,Ot.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:Ts,children:e.message})]}),(0,Ot.jsx)("div",{className:"lg:col-span-2 light grid justify-items-center",children:(0,Ot.jsx)(B,{type:"submit",className:"outline px-6 rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:s,children:"Send"})})]})})}function cu(){return(0,Ot.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,Ot.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 mu(){return(0,Ot.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,Ot.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}var pu=({links:e,richText:t})=>(0,Ot.jsx)("div",{className:"container",children:(0,Ot.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,Ot.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,Ot.jsx)(J,{className:"mb-0",content:t,enableGutter:!1})}),(0,Ot.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,Ot.jsx)(ta,{size:"lg",...a},o))})]})}),Po=({links:e,richText:t})=>{let[a,o]=(0,Hl.useState)(!1),r="accent",s=()=>o(!0),n=()=>o(!1),i=m=>{m.target===m.currentTarget&&n()};return(0,Ot.jsxs)("div",{className:l("relative isolate overflow-hidden",r==="accent"?"bg-accent":"bg-black"),children:[(0,Ot.jsx)("div",{className:"px-6 py-24 Vs:px-6 Vs:py-32 lg:px-8",children:(0,Ot.jsxs)("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&(0,Ot.jsx)(J,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),(0,Ot.jsx)("div",{className:"Ot-10 flex items-center justify-center gap-x-6",children:(0,Ot.jsx)("div",{className:"flex flex-col gap-8 text-white",children:(e||[]).map(({link:m},c)=>m?.url==="/contact"?(0,Ot.jsx)("div",{onClick:s,className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white nd-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),children:m.label},c):(0,Ot.jsx)(ta,{size:"lg",className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white nd-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),...m},c))})})]})}),a&&(0,Ot.jsx)("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:i,children:(0,Ot.jsxs)("div",{className:"bg-white p-6 nd-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[(0,Ot.jsx)("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:n,children:"\u2715"}),(0,Ot.jsx)(Ds,{})," "]})})]})};var Ms=require("prism-react-renderer");function Cn({code:e}){let[t,a]=(0,Hl.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,Ot.jsx)("div",{className:"flex justify-end align-middle",children:(0,Ot.jsxs)(B,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,Ot.jsx)("p",{children:t}),(0,Ot.jsx)("div",{className:"w-6 h-6",children:(0,Ot.jsx)(nd.ClipboardCopy,{})})]})})}var Kd=({code:e,language:t=""})=>e?(0,Ot.jsx)(Ms.Highlight,{code:e,language:t,theme:Ms.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,Ot.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[r.map((s,n)=>(0,Ot.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,Ot.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:n+1}),(0,Ot.jsx)("span",{className:"table-cell pl-4",children:s.map((i,m)=>(0,Ot.jsx)("span",{...o({token:i})},m))})]},n)),(0,Ot.jsx)(Cn,{code:e})]})}):null;var Pn=({className:e,code:t,language:a})=>(0,Ot.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,Ot.jsx)(Kd,{code:t,language:a})});var Jd=x(require("next/image")),uu={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,Vs:640},Qd="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=",Zd=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:n,src:i,loading:m}=e,c,d,p=t,u=i||"";if(!u&&s&&typeof s=="object"){let{alt:g,filename:h,height:z,url:D,width:k}=s;if(z&&z>500){let R=500/z;c=k*R,d=z*R}else c=k,d=z;p=g||"",u=D||Qd}let f=m||"lazy",b=n||Object.entries(uu).map(([,g])=>`(max-width: ${g}px) ${g*2}w`).join(", ");return(0,Ot.jsx)("picture",{children:(0,Ot.jsx)(Jd.default,{alt:p||"",className:l(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:Qd,priority:f!=="lazy"&&r,quality:100,loading:f,sizes:b,src:u,width:a?void 0:c})})};var ec=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,Hl.useRef)(null);if((0,Hl.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,Ot.jsx)("video",{autoPlay:!0,className:l(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,Ot.jsx)("source",{src:a.url||""})})}return null};var oa=e=>{let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&o?.mimeType?.includes("video");return(0,Ot.jsx)(a||Hl.Fragment,{...a!==null?{className:t}:{},children:r?(0,Ot.jsx)(ec,{...e}):(0,Ot.jsx)(Zd,{...e})})};var Aa=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Ot.jsx)("div",{className:l("h-full ",{container:a},t),children:(0,Ot.jsx)(oa,{imgClassName:l("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var Mn=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Ot.jsx)("div",{className:l("",{container:a},t),children:(0,Ot.jsx)(oa,{imgClassName:l("rounded-[0.8rem]",o),resource:r,src:s})})};var Ro=({title:e,description:t,features:a,Ql:o,nested:r=!1})=>(0,Ot.jsxs)("section",{className:l(r?"w-full":"",""),children:[(0,Ot.jsxs)("div",{className:"prose prose:max-w-none",children:[e&&(0,Ot.jsx)("h2",{className:"mb-6 Ot-0 text-primary",Ql:o||"",children:e}),t&&typeof t=="string"&&(0,Ot.jsx)("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&(0,Ot.jsx)("div",{className:"mb-5 text-foreground",children:(0,Ot.jsx)(J,{content:t,enableGutter:!1})})]}),(0,Ot.jsx)("div",{className:`grid gap-6 Ot-6 md:grid-cols-${a?a.length>2?2:a.length:1} lg:grid-cols-${a?a.length>3?3:a.length:1}`,children:a&&a.map((s,n)=>{let i=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,icon:s.icon.icon}};return(0,Ot.jsx)(Jo,{title:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,settings:{...s.settings,width:"auto",order:n},link:s.link?{...s.link,label:"Learn more"}:void 0,icon:i()??{type:"none",icon:null}},n)})})]});var Ls=x(require("react"));function Or({nodes:e}){return(0,Ot.jsx)(Ls.Fragment,{children:e?.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,Ot.jsx)(Ls.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,Ot.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,Ot.jsx)("em",{children:s},a)),t.format&4&&(s=(0,Ot.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,Ot.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,Ot.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,Ot.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,Ot.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,Ot.jsx)("table",{children:(0,Ot.jsx)("tbody",{children:t.children.map((s,n)=>(0,Ot.jsx)("Ot",{children:s.children.map((i,m)=>(0,Ot.jsx)("Ql",{children:Or({nodes:i.children})},m))},n))})},a);let o=s=>{if(s.children==null)return null;if(s?.type==="list"&&s?.listType==="check")for(let n of s.children)"checked"in n&&(n?.checked||(n.checked=!1));return Or({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,n=s?.blockType;if(!s||!n)return null;switch(n){case"cta":return(0,Ot.jsx)(Po,{...s},a);case"mediaBlock":return(0,Ot.jsx)(Aa,{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,Ot.jsx)(Mn,{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,Ot.jsx)(xn,{className:"col-start-2 mb-4",...s},a);case"code":return(0,Ot.jsx)(Pn,{className:"col-start-2",...s},a);case"features":return(0,Ot.jsx)(Ro,{...s,nested:!0},a);case"reusableContentBlock":Or({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,Ot.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,Ot.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t?.tag;return(0,Ot.jsx)(s,{className:"col-start-2",Ql:t?.Ql||"",children:r},a)}case"list":{let s=t?.tag;return(0,Ot.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return t?.checked!=null?(0,Ot.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:r},a):(0,Ot.jsx)("li",{value:t?.value,children:r},a);case"quote":return(0,Ot.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,Ot.jsx)(ta,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}case"autolink":{let s=t.fields;return(0,Ot.jsx)(ta,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var J=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>t?(0,Ot.jsx)("div",{className:l({"container ":a,"max-w-none":!a,"mx-auto prose":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&Or({nodes:t?.root?.children})}):null;var st=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("Ot-")?e+" ":"Ot-"+e+" ",s="Ot-"+t,n=o??"",i=r+s+" Ot-"+a+" "+n;return(0,Ot.jsx)("i",{className:i})};var sc=x(require("next/image"));function rc(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Jo({image:e,icon:t,title:a,subtitle:o,content:r,statistic:s,settings:n,link:i,className:m}){let c={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:"bg-background"},d={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,Ot.jsxs)("a",{href:i?.url||"#",className:l("min-w-56 max-w-xl h-full flex flex-col group bg-background",e?"p-0":"p-6 md:p-8",n&&!e&&c[n?.card==="default"?"solid":n?.card],e&&"bg-foreground",n&&n?.card==="outline"?"text-gray-900":"text-white",d[n?.width??"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",n&&`intersect:animate-delay-${n.order||1}00`,m),children:[e&&(0,Ot.jsx)("div",{className:"relative aspect-[16/9] w-full",children:(0,Ot.jsx)(sc.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,Ot.jsxs)("div",{className:l(e?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[(0,Ot.jsxs)("div",{className:"flex flex-col flex-grow",children:[o&&(0,Ot.jsx)("div",{className:"text-primary uppercase text-Vs font-light mb-4",children:o}),(0,Ot.jsx)("div",{className:"flex items-start gap-4 mb-4",children:(0,Ot.jsx)(gu,{icon:{type:t?.type||"Ot-light",iconName:t?.icon||"nd-icon-error"},heading:a??"",variant:n?.card==="default"?"solid":n?.card??"solid",iconSize:n?.iconSize||"large"})}),r&&typeof r=="object"&&(0,Ot.jsx)(J,{enableGutter:!1,content:r,enableProse:!1,className:l("prose-Vs prose-p:text-lg prose-headings:text-xl","space-y-3",n?.card==="outline"||n?.card==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",e&&"prose-headings:text-background prose-p:text-background")}),r&&typeof r=="string"&&(0,Ot.jsx)("div",{className:l("prose-Vs prose-p:text-lg prose-headings:text-xl","space-y-3",n?.card==="outline"||n?.card==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:r})]}),i&&i.url&&(0,Ot.jsx)("div",{className:"Ot-6",children:(0,Ot.jsx)("span",{className:"text-accent font-semibold uppercase text-Vs block hover:text-accent/80 transition-colors",children:i?.label||"Find out more"})})]})]})}var gu=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="small"&&e.iconName!="nd-icon-error"?(0,Ot.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,Ot.jsx)("div",{className:l(a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),rc(e)&&(0,Ot.jsx)("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"-Hl-2 ml-1 Ot-1":""),children:(0,Ot.jsx)(st,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="nd-icon-error"?(0,Ot.jsxs)("div",{className:"flex flex-col gap-4",children:[rc(e)&&(0,Ot.jsx)("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,Ot.jsx)(st,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Ot.jsx)("h3",{className:l("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):(0,Ot.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Ot.jsx)("div",{className:l("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var ic=x(require("next/image")),nc=x(require("next/link"));var To=x(require("react"));var ke=To.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)("div",{ref:a,className:l("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ke.displayName="Card";var Ve=To.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)("div",{ref:a,className:l("flex flex-col space-y-1.5 p-6",e),...t}));Ve.displayName="CardHeader";var Xe=To.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)("div",{ref:a,className:l("font-semibold leading-none tracking-tight",e),...t}));Xe.displayName="CardTitle";var An=To.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)("div",{ref:a,className:l("text-Vs text-muted-foreground",e),...t}));An.displayName="CardDescription";var Me=To.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)("div",{ref:a,className:l("p-6 nd-0",e),...t}));Me.displayName="CardContent";var In=To.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)("div",{ref:a,className:l("flex items-center p-6 nd-0",e),...t}));In.displayName="CardFooter";function lc({name:e,logo:t,href:a}){return(0,Ot.jsx)(ke,{className:"w-full max-w-Vs overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,Ot.jsxs)(nc.default,{href:a,className:"block",children:[(0,Ot.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,Ot.jsx)("div",{className:"relative w-full h-full",children:t&&(0,Ot.jsx)(ic.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,Ot.jsx)(Me,{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,Ot.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 dc({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=i=>{switch(i){case"birthday":return(0,Ot.jsx)(nd.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,Ot.jsx)(nd.Award,{className:"h-4 w-4"});case"companyEvent":return(0,Ot.jsx)(nd.PartyPopper,{className:"h-4 w-4"});default:return(0,Ot.jsx)(nd.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,Ot.jsxs)(ke,{className:`w-full max-w-md overflow-hidden bg-gradient-to-br ${n(e)}`,children:[(0,Ot.jsxs)(Ve,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,Ot.jsxs)(wt,{className:"h-14 w-14 border-2 border-white",children:[(0,Ot.jsx)(Nt,{src:r,alt:a||"Event"}),(0,Ot.jsx)(Ct,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,Ot.jsxs)("div",{className:"flex flex-col",children:[(0,Ot.jsx)(Xe,{className:"text-xl",children:a||"Untitled Event"}),(0,Ot.jsxs)("p",{className:"text-Vs text-white/80",children:[(0,Ot.jsx)(nd.CalendarDays,{className:"Hl-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("Ot-GB"):"Date not specified"]})]})]}),(0,Ot.jsxs)(Me,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,Ot.jsx)("p",{className:"mb-2 text-Vs text-gray-700",children:o}),(0,Ot.jsxs)(kt,{variant:"secondary",className:`${n(e)} text-white/80`,children:[s(e),(0,Ot.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-z])([Ot-Ot])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}var mc=x(require("next/link"));var pc=x(require("next/image")),cc={Vs:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function uc({slug:e,image:t,title:a,description:o}){return(0,Ot.jsxs)(mc.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,Ot.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,Ot.jsx)(pc.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
10
+ You may have jt call "refreshHard()" by yourself.
11
+ `),M.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",M.easing),document.querySelector("body").setAttribute("data-aos-duration",M.duration),document.querySelector("body").setAttribute("data-aos-delay",M.delay),M.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?ie(!0):M.startEvent==="load"?window.addEventListener(M.startEvent,function(){ie(!0)}):document.addEventListener(M.startEvent,function(){ie(!0)}),window.addEventListener("resize",(0,m.default)(ie,M.debounceDelay,!0)),window.addEventListener("orientationchange",(0,m.default)(ie,M.debounceDelay,!0)),window.addEventListener("scroll",(0,i.default)(function(){(0,g.default)(S,M.once)},M.throttleDelay)),M.disableMutationObserver||p.default.ready("[data-aos]",We),S)};e.exports={init:j,refresh:ie,refreshHard:We}},function(e,t){},,,,,function(e,t){(function(a){"use strict";function o(k,j,b){function Q(ue){var ht=pe,Wa=ye;return pe=ye=void 0,$a=ue,tt=k.apply(Wa,ht)}function O(ue){return $a=ue,Ve=setTimeout(Ft,j),Ua?Q(ue):tt}function ke(ue){var ht=ue-At,Wa=ue-$a,Pl=j-ht;return Ca?We(Pl,fa-Wa):Pl}function Je(ue){var ht=ue-At,Wa=ue-$a;return At===void 0||ht>=j||ht<0||Ca&&Wa>=fa}function Ft(){var ue=A();return Je(ue)?Mt(ue):void(Ve=setTimeout(Ft,ke(ue)))}function Mt(ue){return Ve=void 0,Te&&pe?Q(ue):(pe=ye=void 0,tt)}function bt(){Ve!==void 0&&clearTimeout(Ve),$a=0,pe=At=ye=Ve=void 0}function vt(){return Ve===void 0?tt:Mt(A())}function he(){var ue=A(),ht=Je(ue);if(pe=arguments,ye=this,At=ue,ht){if(Ve===void 0)return O(At);if(Ca)return Ve=setTimeout(Ft,j),Q(At)}return Ve===void 0&&(Ve=setTimeout(Ft,j)),tt}var pe,ye,fa,tt,Ve,At,$a=0,Ua=!1,Ca=!1,Te=!0;if(typeof k!="function")throw new TypeError(d);return j=c(j)||0,s(b)&&(Ua=!!b.leading,Ca="maxWait"in b,fa=Ca?ie(c(b.maxWait)||0,j):fa,Te="trailing"in b?!!b.trailing:Te),he.cancel=bt,he.flush=vt,he}function r(k,j,b){var Q=!0,O=!0;if(typeof k!="function")throw new TypeError(d);return s(b)&&(Q="leading"in b?!!b.leading:Q,O="trailing"in b?!!b.trailing:O),o(k,j,{leading:Q,maxWait:j,trailing:O})}function s(k){var j=typeof k>"u"?"undefined":m(k);return!!k&&(j=="object"||j=="function")}function l(k){return!!k&&(typeof k>"u"?"undefined":m(k))=="object"}function i(k){return(typeof k>"u"?"undefined":m(k))=="symbol"||l(k)&&M.call(k)==u}function c(k){if(typeof k=="number")return k;if(i(k))return p;if(s(k)){var j=typeof k.valueOf=="function"?k.valueOf():k;k=s(j)?j+"":j}if(typeof k!="string")return k===0?k:+k;k=k.replace(f,"");var b=g.test(k);return b||y.test(k)?L(k.slice(2),b?2:8):v.test(k)?p:+k}var m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},d="Expected a function",p=NaN,u="[object Symbol]",f=/^\s+|\s+$/g,v=/^[-+]0x[0-9a-f]+$/i,g=/^0b[01]+$/i,y=/^0o[0-7]+$/i,L=parseInt,T=(typeof a>"u"?"undefined":m(a))=="object"&&a&&a.Object===Object&&a,C=(typeof self>"u"?"undefined":m(self))=="object"&&self&&self.Object===Object&&self,S=T||C||Function("return this")(),w=Object.prototype,M=w.toString,ie=Math.max,We=Math.min,A=function(){return S.Date.now()};e.exports=r}).call(t,function(){return this}())},function(e,t){(function(a){"use strict";function o(A,k,j){function b(Te){var ue=he,ht=pe;return he=pe=void 0,At=Te,fa=A.apply(ht,ue)}function Q(Te){return At=Te,tt=setTimeout(Je,k),$a?b(Te):fa}function O(Te){var ue=Te-Ve,ht=Te-At,Wa=k-ue;return Ua?ie(Wa,ye-ht):Wa}function ke(Te){var ue=Te-Ve,ht=Te-At;return Ve===void 0||ue>=k||ue<0||Ua&&ht>=ye}function Je(){var Te=We();return ke(Te)?Ft(Te):void(tt=setTimeout(Je,O(Te)))}function Ft(Te){return tt=void 0,Ca&&he?b(Te):(he=pe=void 0,fa)}function Mt(){tt!==void 0&&clearTimeout(tt),At=0,he=Ve=pe=tt=void 0}function bt(){return tt===void 0?fa:Ft(We())}function vt(){var Te=We(),ue=ke(Te);if(he=arguments,pe=this,Ve=Te,ue){if(tt===void 0)return Q(Ve);if(Ua)return tt=setTimeout(Je,k),b(Ve)}return tt===void 0&&(tt=setTimeout(Je,k)),fa}var he,pe,ye,fa,tt,Ve,At=0,$a=!1,Ua=!1,Ca=!0;if(typeof A!="function")throw new TypeError(m);return k=i(k)||0,r(j)&&($a=!!j.leading,Ua="maxWait"in j,ye=Ua?M(i(j.maxWait)||0,k):ye,Ca="trailing"in j?!!j.trailing:Ca),vt.cancel=Mt,vt.flush=bt,vt}function r(A){var k=typeof A>"u"?"undefined":c(A);return!!A&&(k=="object"||k=="function")}function s(A){return!!A&&(typeof A>"u"?"undefined":c(A))=="object"}function l(A){return(typeof A>"u"?"undefined":c(A))=="symbol"||s(A)&&w.call(A)==p}function i(A){if(typeof A=="number")return A;if(l(A))return d;if(r(A)){var k=typeof A.valueOf=="function"?A.valueOf():A;A=r(k)?k+"":k}if(typeof A!="string")return A===0?A:+A;A=A.replace(u,"");var j=v.test(A);return j||g.test(A)?y(A.slice(2),j?2:8):f.test(A)?d:+A}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},m="Expected a function",d=NaN,p="[object Symbol]",u=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,g=/^0o[0-7]+$/i,y=parseInt,L=(typeof a>"u"?"undefined":c(a))=="object"&&a&&a.Object===Object&&a,T=(typeof self>"u"?"undefined":c(self))=="object"&&self&&self.Object===Object&&self,C=L||T||Function("return this")(),S=Object.prototype,w=S.toString,M=Math.max,ie=Math.min,We=function(){return C.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(l);i=m,u.observe(d.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function l(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 f=0;f<u.length;f++){var v=u[f];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(p,v.key,v)}}return function(p,u,f){return u&&d(p.prototype,u),f&&d(p,f),p}}(),s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|jt)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( Hl)?|phone|p(ixi|jt)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows jt|xda|xiino/i,l=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a jt|abac|jt(jt|oo|s\-)|ai(ko|rn)|al(av|jt|co)|amoi|an(ex|ny|yw)|aptu|nd(ch|nd)|as(jt|jt)|attw|au(di|\-m|r |s )|avan|jt(ck|ll|nq)|bi(lb|jt)|bl(jt|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|jt(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|jt(ic|k0)|esl8|ez([4-7]0|Hl|jt|ze)|fetc|fly(\-|jt)|g1 u|g560|gene|gf\-5|g\-mo|nd(\.w|jt)|nd(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(jt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |jt|a|g|p|s|t)|tp)|hu(aw|Hl)|i\-(20|nd|jt)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|jt(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|jt(nd|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|jt(jt|ui|xo)|mc(01|21|jt)|m\-cr|jt(rc|Hl)|mi(o8|oa|ts)|mmef|mo(01|02|bi|jt|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)|jt((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(nd|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|Vd(ck|nd|jt)|prox|psio|jt\-g|qa\-a|nd(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(jt|Nn)|s55\/|sa(jt|jt|Hl|ms|ny|va)|sc(01|jt\-|oo|p\-)|sdk\/|jt(c(\-|0|1)|47|mc|nd|Hl)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|Ql)|Vs(al|nd|b3|it|t5)|so(jt|ny)|sp(01|jt\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(jt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|jt(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|Hl)|utst|v400|v750|veri|vi(rg|jt)|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|jt)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( Hl)?|phone|p(ixi|jt)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows jt|xda|xiino|android|ipad|playbook|silk/i,c=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a jt|abac|jt(jt|oo|s\-)|ai(ko|rn)|al(av|jt|co)|amoi|an(ex|ny|yw)|aptu|nd(ch|nd)|as(jt|jt)|attw|au(di|\-m|r |s )|avan|jt(ck|ll|nq)|bi(lb|jt)|bl(jt|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|jt(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|jt(ic|k0)|esl8|ez([4-7]0|Hl|jt|ze)|fetc|fly(\-|jt)|g1 u|g560|gene|gf\-5|g\-mo|nd(\.w|jt)|nd(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(jt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |jt|a|g|p|s|t)|tp)|hu(aw|Hl)|i\-(20|nd|jt)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|jt(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|jt(nd|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|jt(jt|ui|xo)|mc(01|21|jt)|m\-cr|jt(rc|Hl)|mi(o8|oa|ts)|mmef|mo(01|02|bi|jt|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)|jt((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(nd|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|Vd(ck|nd|jt)|prox|psio|jt\-g|qa\-a|nd(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(jt|Nn)|s55\/|sa(jt|jt|Hl|ms|ny|va)|sc(01|jt\-|oo|p\-)|sdk\/|jt(c(\-|0|1)|47|mc|nd|Hl)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|Ql)|Vs(al|nd|b3|it|t5)|so(jt|ny)|sp(01|jt\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(jt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|jt(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|Hl)|utst|v400|v750|veri|vi(rg|jt)|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)&&!l.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,l){var i=r.node.getAttribute("data-aos-once");s>r.position?r.node.classList.add("aos-animate"):typeof i<"u"&&(i==="false"||!l&&i!=="true")&&r.node.classList.remove("aos-animate")},o=function(r,s){var l=window.pageYOffset,i=window.innerHeight;r.forEach(function(c,m){a(c,i+l,s)})};t.default=o},function(e,t,a){"use strict";function o(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(12),s=o(r),l=function(i,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=l},function(e,t,a){"use strict";function o(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(13),s=o(r),l=function(i,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=l},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(o){for(var r=0,s=0;o&&!isNaN(o.offsetLeft)&&!isNaN(o.offsetTop);)r+=o.offsetLeft-(o.tagName!="BODY"?o.scrollLeft:0),s+=o.offsetTop-(o.tagName!="BODY"?o.scrollTop:0),o=o.offsetParent;return{top:s,left:r}};t.default=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(o){return o=o||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(o,function(r){return{node:r}})};t.default=a}])})});var Xg={};np(Xg,{AOSInit:()=>_p,AboutSection:()=>Ag,Alert:()=>gn,AlertDescription:()=>bn,AlertTitle:()=>fn,ApproveLeave:()=>pl,Avatar:()=>wt,AvatarFallback:()=>Ct,AvatarImage:()=>Nt,Badge:()=>kt,BannerBlock:()=>xn,BlogCard:()=>qm,BlogDetail:()=>Hg,BlogList:()=>_g,BlogListSection:()=>Lg,BrandLogo:()=>mo,Breadcrumb:()=>fi,BreadcrumbEllipsis:()=>wi,BreadcrumbItem:()=>vi,BreadcrumbLink:()=>hi,BreadcrumbList:()=>bi,BreadcrumbPage:()=>yi,BreadcrumbSeparator:()=>xi,Breadcrumbs:()=>sg,Button:()=>z,CMSLink:()=>ia,CRMCogeBoard:()=>wg,CRMKanbanBoard:()=>hg,Calendar:()=>Er,CalendarView:()=>vl,CallToActionBlock:()=>Po,CallToActionBlockOld:()=>pu,Card:()=>Gr,Categories:()=>Qn,ChatCardTask:()=>xl,ChatInterfaceMessages:()=>Rg,ChatMessage:()=>wl,Checkbox:()=>oa,CodeBlock:()=>Pn,Collapsible:()=>Pa,CollapsibleContent:()=>qa,CollapsibleTrigger:()=>Ya,CollectionArchive:()=>Fu,Command:()=>vs,CommandDialog:()=>Ad,CommandEmpty:()=>dn,CommandGroup:()=>cn,CommandInput:()=>nn,CommandItem:()=>pn,CommandList:()=>ln,CommandSeparator:()=>mn,CommandShortcut:()=>un,ContactSection:()=>zg,Container:()=>Rt,ContentBlock:()=>_r,ContentCard:()=>Nu,CopyButton:()=>Cn,CustomLink:()=>at,CustomerCard:()=>lc,DarkTop:()=>En,DealCard:()=>hl,DealDetails:()=>Kr,DeliveryLeadSubmission:()=>ii,DeliveryLeadSubmissionList:()=>li,DeliveryLeadSubmissionWithList:()=>Bm,Dialog:()=>va,DialogClose:()=>fs,DialogContent:()=>aa,DialogDescription:()=>sn,DialogFooter:()=>rn,DialogHeader:()=>Da,DialogOverlay:()=>bs,DialogPortal:()=>on,DialogTitle:()=>Ma,DialogTrigger:()=>Dd,DropdownMenu:()=>Ol,DropdownMenuCheckboxItem:()=>Si,DropdownMenuContent:()=>ki,DropdownMenuGroup:()=>Gl,DropdownMenuItem:()=>Pi,DropdownMenuLabel:()=>Ti,DropdownMenuPortal:()=>$l,DropdownMenuRadioGroup:()=>Wl,DropdownMenuRadioItem:()=>Ri,DropdownMenuSeparator:()=>Di,DropdownMenuShortcut:()=>Mi,DropdownMenuSub:()=>Ul,DropdownMenuSubContent:()=>Ci,DropdownMenuSubTrigger:()=>Ni,DropdownMenuTrigger:()=>_l,DynamicIcon:()=>it,EventCard:()=>dc,FeatureCard:()=>Jo,FeatureGrid:()=>hc,FeaturesBlock:()=>Ro,Filter:()=>Zn,FlowPrintable:()=>Oc,Footer:()=>mg,Header:()=>pg,HeaderDesktop:()=>nl,HeaderMobile:()=>dl,HeadingImage:()=>Lu,Hero:()=>wu,HighImpactHero:()=>el,HolidayGrid:()=>bl,HolidayTracker:()=>bg,HoverCard:()=>Pd,HoverCardContent:()=>an,HoverCardTrigger:()=>Sd,Image:()=>gc,ImageBlock:()=>Mn,ImageSection:()=>Og,InfoTile:()=>Pu,Input:()=>yt,Insight:()=>ku,KanbanColumn:()=>Qr,Label:()=>F,LightTop:()=>Hn,LocationsSection:()=>Bg,Logo:()=>ju,LowImpactHero:()=>ol,MOTD:()=>Ru,MainPageSection:()=>Fg,Mask:()=>ag,Media:()=>la,MediaBlock:()=>La,MediumImpactHero:()=>al,NewCustomerForm:()=>yl,NewDealForm:()=>yg,NewsGrid:()=>Fc,OrgChart:()=>Mu,PagePrintable:()=>_c,PageRange:()=>Gu,PageShape:()=>Bt,Pagination:()=>Kn,PayloadPagination:()=>$u,Popover:()=>Ir,PopoverAnchor:()=>xd,PopoverContent:()=>qo,PopoverTrigger:()=>Lr,PostHero:()=>eg,PricingCard:()=>zn,PricingSection:()=>Mg,Printable:()=>Xn,ProjectCard:()=>uc,ProjectTeam:()=>Ku,ProposalSummary:()=>Au,Publish:()=>Wg,RelatedContent:()=>Qu,RelatedPagesMenu:()=>ug,RelatedPosts:()=>Hu,RenderBlocks:()=>co,RenderBlocksWithShapes:()=>Bu,RenderHero:()=>rg,RequestLeave:()=>fl,ReusableContentBlock:()=>Bn,RichText:()=>ee,ScrollArea:()=>ba,ScrollBar:()=>gs,Section:()=>$g,SectionHero:()=>sl,Select:()=>ra,SelectContent:()=>Ut,SelectGroup:()=>au,SelectItem:()=>Wt,SelectLabel:()=>Hd,SelectScrollDownButton:()=>yn,SelectScrollUpButton:()=>hn,SelectSeparator:()=>Fd,SelectTrigger:()=>$t,SelectValue:()=>sa,Separator:()=>yr,ServiceCard:()=>xu,ServiceDetail:()=>Ug,ServiceDetailSection:()=>Gg,ServiceSection:()=>Dg,Sheet:()=>ts,SheetClose:()=>Zl,SheetContent:()=>wr,SheetDescription:()=>Ei,SheetFooter:()=>zi,SheetHeader:()=>Li,SheetOverlay:()=>as,SheetPortal:()=>Ii,SheetTitle:()=>Bi,SheetTrigger:()=>Jl,Sidebar:()=>vo,SidebarContent:()=>Qa,SidebarFooter:()=>yo,SidebarGroup:()=>Ot,SidebarGroupAction:()=>$i,SidebarGroupContent:()=>ea,SidebarGroupLabel:()=>Ra,SidebarHeader:()=>ho,SidebarInput:()=>Gi,SidebarInset:()=>_i,SidebarLeft:()=>Vu,SidebarMenu:()=>xt,SidebarMenuAction:()=>kr,SidebarMenuBadge:()=>Ui,SidebarMenuButton:()=>_t,SidebarMenuItem:()=>st,SidebarMenuSkeleton:()=>Wi,SidebarMenuSub:()=>Ja,SidebarMenuSubButton:()=>eo,SidebarMenuSubItem:()=>Za,SidebarProvider:()=>Fi,SidebarRail:()=>Oi,SidebarRight:()=>qu,SidebarSeparator:()=>Cr,SidebarTrigger:()=>ji,SimpleHeader:()=>ng,Skeleton:()=>Le,SlideShow:()=>Gs,Tabs:()=>ou,TabsContent:()=>iu,TabsList:()=>ru,TabsTrigger:()=>su,TextAndImages:()=>jc,Textarea:()=>so,Theme:()=>Fs,ThemeProvider:()=>tg,ThemeWithShapes:()=>Pc,Toast:()=>Rr,ToastAction:()=>Yi,ToastClose:()=>Tr,ToastDescription:()=>Mr,ToastProvider:()=>ps,ToastTitle:()=>Dr,ToastViewport:()=>Sr,Toaster:()=>gd,Toggle:()=>Ki,ToggleGroup:()=>Qi,ToggleGroupItem:()=>Ji,Tooltip:()=>is,TooltipContent:()=>Nr,TooltipProvider:()=>ss,TooltipTrigger:()=>ns,VideoHeader:()=>dg,WhyUs:()=>Iu,badgeVariants:()=>vn,buttonVariants:()=>Ka,cn:()=>n,getTableOfContents:()=>Go,reducer:()=>cd,toast:()=>md,toggleVariants:()=>Ar,useIsMobile:()=>rs,useSidebar:()=>Xo,useToast:()=>ms});module.exports=lp(Xg);var $o=x(require("react")),es=require("@radix-ui/react-icons"),jl=require("@radix-ui/react-slot");var Bl=require("clsx");var ui="-",dp=e=>{let t=mp(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let i=l.split(ui);return i[0]===""&&i.length!==1&&i.shift(),Dl(i,t)||cp(l)},getConflictingClassGroupIds:(l,i)=>{let c=a[l]||[];return i&&o[l]?[...c,...o[l]]:c}}},Dl=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?Dl(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(ui);return t.validators.find(({validator:l})=>l(s))?.classGroupId},Rl=/^\[(.+)\]$/,cp=e=>{if(Rl.test(e)){let t=Rl.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},mp=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return up(Object.entries(e.classGroups),a).forEach(([s,l])=>{pi(l,o,s,t)}),o},pi=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:Tl(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(pp(r)){pi(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,l])=>{pi(l,Tl(t,s),a,o)})})},Tl=(e,t)=>{let a=e;return t.split(ui).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},pp=e=>e.isThemeGetter,up=(e,t)=>t?e.map(([a,o])=>{let r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,i])=>[t+l,i])):s);return[a,r]}):e,gp=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,l)=>{a.set(s,l),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let l=a.get(s);if(l!==void 0)return l;if((l=o.get(s))!==void 0)return r(s,l),l},set(s,l){a.has(s)?a.set(s,l):r(s,l)}}},Ml="!",fp=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,l=i=>{let c=[],m=0,d=0,p;for(let y=0;y<i.length;y++){let L=i[y];if(m===0){if(L===r&&(o||i.slice(y,y+s)===t)){c.push(i.slice(d,y)),d=y+s;continue}if(L==="/"){p=y;continue}}L==="["?m++:L==="]"&&m--}let u=c.length===0?i:i.substring(d),f=u.startsWith(Ml),v=f?u.substring(1):u,g=p&&p>d?p-d:void 0;return{modifiers:c,hasImportantModifier:f,baseClassName:v,maybePostfixModifierPosition:g}};return a?i=>a({className:i,parseClassName:l}):l},bp=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},vp=e=>({cache:gp(e.cacheSize),parseClassName:fp(e),...dp(e)}),hp=/\s+/,yp=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],l=e.trim().split(hp),i="";for(let c=l.length-1;c>=0;c-=1){let m=l[c],{modifiers:d,hasImportantModifier:p,baseClassName:u,maybePostfixModifierPosition:f}=a(m),v=!!f,g=o(v?u.substring(0,f):u);if(!g){if(!v){i=m+(i.length>0?" "+i:i);continue}if(g=o(u),!g){i=m+(i.length>0?" "+i:i);continue}v=!1}let y=bp(d).join(":"),L=p?y+Ml:y,T=L+g;if(s.includes(T))continue;s.push(T);let C=r(g,v);for(let S=0;S<C.length;++S){let w=C[S];s.push(L+w)}i=m+(i.length>0?" "+i:i)}return i};function xp(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Al(t))&&(o&&(o+=" "),o+=a);return o}var Al=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Al(e[o]))&&(a&&(a+=" "),a+=t);return a};function wp(e,...t){let a,o,r,s=l;function l(c){let m=t.reduce((d,p)=>p(d),e());return a=vp(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=yp(c,a);return r(c,d),d}return function(){return s(xp.apply(null,arguments))}}var we=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Il=/^\[(?:([a-z-]+):)?(.+)\]$/i,Np=/^\d+\/\d+$/,Cp=new Set(["px","full","screen"]),kp=/^(\d+(\.\d+)?)?(xs|Vs|md|lg|xl)$/,Pp=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|jt|pc|in|Et|Hl|cap|ch|ex|r?lh|cq(w|jt|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Sp=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Rp=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)jt-?((\d+)?\.?(\d+)[a-z]+|0)/,Tp=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ka=e=>Oo(e)||Cp.has(e)||Np.test(e),Va=e=>_o(e,"length",Ep),Oo=e=>!!e&&!Number.isNaN(Number(e)),mi=e=>_o(e,"number",Oo),br=e=>!!e&&Number.isInteger(Number(e)),Dp=e=>e.endsWith("%")&&Oo(e.slice(0,-1)),$=e=>Il.test(e),Xa=e=>kp.test(e),Mp=new Set(["length","size","percentage"]),Ap=e=>_o(e,Mp,Ll),Ip=e=>_o(e,"position",Ll),Lp=new Set(["image","url"]),zp=e=>_o(e,Lp,Fp),Bp=e=>_o(e,"",Hp),vr=()=>!0,_o=(e,t,a)=>{let o=Il.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Ep=e=>Pp.test(e)&&!Sp.test(e),Ll=()=>!1,Hp=e=>Rp.test(e),Fp=e=>Tp.test(e);var jp=()=>{let e=we("colors"),t=we("spacing"),a=we("blur"),o=we("brightness"),r=we("borderColor"),s=we("borderRadius"),l=we("borderSpacing"),i=we("borderWidth"),c=we("contrast"),m=we("grayscale"),d=we("hueRotate"),p=we("invert"),u=we("gap"),f=we("gradientColorStops"),v=we("gradientColorStopPositions"),g=we("inset"),y=we("margin"),L=we("opacity"),T=we("padding"),C=we("saturate"),S=we("scale"),w=we("sepia"),M=we("skew"),ie=we("space"),We=we("translate"),A=()=>["auto","contain","none"],k=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto",$,t],b=()=>[$,t],Q=()=>["",ka,Va],O=()=>["auto",Oo,$],ke=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Je=()=>["solid","dashed","dotted","double","none"],Ft=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Mt=()=>["start","end","center","between","around","evenly","stretch"],bt=()=>["","0",$],vt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],he=()=>[Oo,$];return{cacheSize:500,separator:":",theme:{colors:[vr],spacing:[ka,Va],blur:["none","",Xa,$],brightness:he(),borderColor:[e],borderRadius:["none","","full",Xa,$],borderSpacing:b(),borderWidth:Q(),contrast:he(),grayscale:bt(),hueRotate:he(),invert:bt(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[Dp,Va],inset:j(),margin:j(),opacity:he(),padding:b(),saturate:he(),scale:he(),sepia:bt(),skew:he(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",$]}],container:["container"],columns:[{columns:[Xa]}],"break-after":[{"break-after":vt()}],"break-before":[{"break-before":vt()}],"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:[...ke(),$]}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",br,$]}],basis:[{basis:j()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",$]}],grow:[{grow:bt()}],shrink:[{shrink:bt()}],order:[{order:["first","last","none",br,$]}],"grid-cols":[{"grid-cols":[vr]}],"col-start-end":[{col:["auto",{span:["full",br,$]},$]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[vr]}],"row-start-end":[{row:["auto",{span:[br,$]},$]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",$]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",$]}],gap:[{gap:[u]}],"gap-x":[{"gap-x":[u]}],"gap-y":[{"gap-y":[u]}],"justify-content":[{justify:["normal",...Mt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Mt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Mt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],jt:[{jt:[T]}],Hl:[{Hl:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],jt:[{jt:[y]}],mt:[{mt:[y]}],Hl:[{Hl:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[ie]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ie]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",$,t]}],"min-w":[{"min-w":[$,t,"min","max","fit"]}],"max-w":[{"max-w":[$,t,"none","full","min","max","fit","prose",{screen:[Xa]},Xa]}],jt:[{jt:[$,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-jt":[{"min-jt":[$,t,"min","max","fit","svh","lvh","dvh"]}],"max-jt":[{"max-jt":[$,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[$,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Xa,Va]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",mi]}],"font-family":[{font:[vr]}],"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",$]}],"line-clamp":[{"line-clamp":["none",Oo,mi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ka,$]}],"list-image":[{"list-image":["none",$]}],"list-style-type":[{list:["none","disc","decimal",$]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[L]}],"text-decoration":["underline","overline","line-through","nd-underline"],"text-decoration-style":[{decoration:[...Je(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ka,Va]}],"underline-offset":[{"underline-offset":["auto",ka,$]}],"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:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$]}],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",$]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[L]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ke(),Ip]}],"bg-repeat":[{bg:["nd-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ap]}],"bg-image":[{bg:["none",{"gradient-jt":["t","jt","r","br","b","bl","l","tl"]},zp]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-jt-pos":[{jt:[v]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-jt":[{jt:[f]}],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-jt":[{"rounded-jt":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-jt":[{"rounded-jt":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[L]}],"border-style":[{border:[...Je(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[L]}],"divide-style":[{divide:Je()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...Je()]}],"outline-offset":[{"outline-offset":[ka,$]}],"outline-w":[{outline:[ka,Va]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[L]}],"ring-offset-w":[{"ring-offset":[ka,Va]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Xa,Bp]}],"shadow-color":[{shadow:[vr]}],opacity:[{opacity:[L]}],"mix-blend":[{"mix-blend":[...Ft(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ft()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Xa,$]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[C]}],sepia:[{sepia:[w]}],"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":[L]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",$]}],duration:[{duration:he()}],ease:[{ease:["linear","in","out","in-out",$]}],delay:[{delay:he()}],animate:[{animate:["none","spin","ping","pulse","bounce",$]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[br,$]}],"translate-x":[{"translate-x":[We]}],"translate-y":[{"translate-y":[We]}],"skew-x":[{"skew-x":[M]}],"skew-y":[{"skew-y":[M]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",$]}],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","nd-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","jt-resize","nw-resize","jt-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-jt":[{"scroll-jt":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-Hl":[{"scroll-Hl":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-jt":[{"scroll-jt":b()}],"scroll-Hl":[{"scroll-Hl":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",$]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ka,Va,mi]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","jt","Hl","pb","pl"],px:["Hl","pl"],py:["jt","pb"],m:["mx","my","ms","jt","mt","Hl","mb","ml"],mx:["Hl","ml"],my:["mt","mb"],size:["w","jt"],"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-jt","rounded-ee","rounded-es","rounded-tl","rounded-jt","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-jt","rounded-ee"],"rounded-t":["rounded-tl","rounded-jt"],"rounded-r":["rounded-jt","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-jt","scroll-mt","scroll-Hl","scroll-mb","scroll-ml"],"scroll-mx":["scroll-Hl","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-jt","scroll-Hl","scroll-pb","scroll-pl"],"scroll-px":["scroll-Hl","scroll-pl"],"scroll-py":["scroll-jt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var zl=wp(jp);function n(...e){return zl((0,Bl.clsx)(e))}function Go(e){let t=0,a=(s,l)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${l}`,o=e.layout.flatMap(s=>{let l=[];return"title"in s&&s.title&&l.push({text:s.title,Ql:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(i=>{if(i.title&&l.push({text:i.title,Ql:a(i.title,t++),tag:"h2"}),i.richText?.root?.children&&i.richText?.root?.children.length===1){let c=i.richText.root.children.filter(m=>m!==void 0&&m.type==="heading");for(let m of c)m.children[0]&&l.push({text:m.children[0].text??"",Ql:a(m.children[0].text,t++),tag:m.tag||"h2"})}}),l}),r=Op(e.layout);return{tableOfContents:o,contentWithIds:r}}function Op(e){let t=(o,r)=>`${o.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${r}`,a=0;return e.map(o=>(o.title&&(o.Ql=t(o.title,a++)),o.columns&&(o.columns=o.columns.map(r=>(r.title&&(r.Ql=t(r.title,a++)),r.richText&&(r.richText.root.children=r.richText.root.children.filter(s=>s!==void 0).map(s=>(s.type==="heading"&&s.children&&s.children[0].text?s.Ql=t(s.children[0].text,a++):s.type==="block"&&s.fields?.media&&(s.Ql=t(`image-${a}`,a++)),s))),r))),o))}var Hl=require("react"),Fl=x(El());function _p(){return(0,Hl.useEffect)(()=>{Fl.default.init({duration:1e3,offset:0,once:!0})},[]),null}var jt=require("react/jsx-runtime"),fi=$o.forwardRef(({...e},t)=>(0,jt.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));fi.displayName="Breadcrumb";var bi=$o.forwardRef(({className:e,...t},a)=>(0,jt.jsx)("ol",{ref:a,className:n("flex flex-wrap items-center gap-1.5 break-words text-Vs text-muted-foreground Vs:gap-2.5",e),...t}));bi.displayName="BreadcrumbList";var vi=$o.forwardRef(({className:e,...t},a)=>(0,jt.jsx)("li",{ref:a,className:n("inline-flex items-center gap-1.5",e),...t}));vi.displayName="BreadcrumbItem";var hi=$o.forwardRef(({asChild:e,className:t,...a},o)=>(0,jt.jsx)(e?jl.Slot:"a",{ref:o,className:n("transition-colors hover:text-foreground",t),...a}));hi.displayName="BreadcrumbLink";var yi=$o.forwardRef(({className:e,...t},a)=>(0,jt.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:n("font-normal text-foreground",e),...t}));yi.displayName="BreadcrumbPage";var xi=({children:e,className:t,...a})=>(0,jt.jsx)("li",{role:"presentation","aria-hidden":"true",className:n("[&>svg]:w-3.5 [&>svg]:jt-3.5",t),...a,children:e??(0,jt.jsx)(es.ChevronRightIcon,{})});xi.displayName="BreadcrumbSeparator";var wi=({className:e,...t})=>(0,jt.jsxs)("span",{role:"presentation","aria-hidden":"true",className:n("flex jt-9 w-9 items-center justify-center",e),...t,children:[(0,jt.jsx)(es.DotsHorizontalIcon,{className:"jt-4 w-4"}),(0,jt.jsx)("span",{className:"sr-only",children:"More"})]});wi.displayName="BreadcrumbElipssis";var Uo=x(require("@radix-ui/react-collapsible")),Pa=Uo.Root,Ya=Uo.CollapsibleTrigger,qa=Uo.CollapsibleContent;var Sa=x(require("react")),X=x(require("@radix-ui/react-dropdown-menu"));var Ol=X.Root,_l=X.Trigger,Gl=X.Group,$l=X.Portal,Ul=X.Sub,Wl=X.RadioGroup,Ni=Sa.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,jt.jsxs)(X.SubTrigger,{ref:r,className:n("flex cursor-default gap-2 select-none items-center rounded-Vs px-2 py-1.5 text-Vs 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,jt.jsx)(es.ChevronRightIcon,{className:"ml-auto"})]}));Ni.displayName=X.SubTrigger.displayName;var Ci=Sa.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(X.SubContent,{ref:a,className:n("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}));Ci.displayName=X.SubContent.displayName;var ki=Sa.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,jt.jsx)(X.Portal,{children:(0,jt.jsx)(X.Content,{ref:o,sideOffset:t,className:n("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})}));ki.displayName=X.Content.displayName;var Pi=Sa.forwardRef(({className:e,inset:t,...a},o)=>(0,jt.jsx)(X.Item,{ref:o,className:n("relative flex cursor-default select-none items-center gap-2 rounded-Vs px-2 py-1.5 text-Vs 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}));Pi.displayName=X.Item.displayName;var Si=Sa.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,jt.jsxs)(X.CheckboxItem,{ref:r,className:n("relative flex cursor-default select-none items-center rounded-Vs py-1.5 pl-8 Hl-2 text-Vs 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,jt.jsx)("span",{className:"absolute left-2 flex jt-3.5 w-3.5 items-center justify-center",children:(0,jt.jsx)(X.ItemIndicator,{children:(0,jt.jsx)(es.CheckIcon,{className:"jt-4 w-4"})})}),t]}));Si.displayName=X.CheckboxItem.displayName;var Ri=Sa.forwardRef(({className:e,children:t,...a},o)=>(0,jt.jsxs)(X.RadioItem,{ref:o,className:n("relative flex cursor-default select-none items-center rounded-Vs py-1.5 pl-8 Hl-2 text-Vs outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,jt.jsx)("span",{className:"absolute left-2 flex jt-3.5 w-3.5 items-center justify-center",children:(0,jt.jsx)(X.ItemIndicator,{children:(0,jt.jsx)(es.DotFilledIcon,{className:"jt-4 w-4 fill-current"})})}),t]}));Ri.displayName=X.RadioItem.displayName;var Ti=Sa.forwardRef(({className:e,inset:t,...a},o)=>(0,jt.jsx)(X.Label,{ref:o,className:n("px-2 py-1.5 text-Vs font-semibold",t&&"pl-8",e),...a}));Ti.displayName=X.Label.displayName;var Di=Sa.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(X.Separator,{ref:a,className:n("-mx-1 my-1 jt-px bg-muted",e),...t}));Di.displayName=X.Separator.displayName;var Mi=({className:e,...t})=>(0,jt.jsx)("span",{className:n("ml-auto text-xs tracking-widest opacity-60",e),...t});Mi.displayName="DropdownMenuShortcut";var Vl=x(require("react"));var yt=Vl.forwardRef(({className:e,type:t,...a},o)=>(0,jt.jsx)("input",{type:t,className:n("flex jt-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-Vs shadow-Vs transition-colors file:border-0 file:bg-transparent file:text-Vs 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}));yt.displayName="Input";var Yl=x(require("react")),Ai=x(require("@radix-ui/react-separator"));var yr=Yl.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,jt.jsx)(Ai.Root,{ref:r,decorative:a,orientation:t,className:n("shrink-0 bg-border",t==="horizontal"?"jt-[1px] w-full":"jt-full w-[1px]",e),...o}));yr.displayName=Ai.Root.displayName;var xr=x(require("react")),Ie=x(require("@radix-ui/react-dialog")),Ql=require("class-variance-authority");var ts=Ie.Root,Jl=Ie.Trigger,Zl=Ie.Close,Ii=Ie.Portal,as=xr.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(Ie.Overlay,{className:n("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}));as.displayName=Ie.Overlay.displayName;var Gp=(0,Ql.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-jt-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-jt-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 jt-full w-3/4 border-r data-[state=closed]:slide-out-jt-left data-[state=open]:slide-in-from-left Vs:max-w-Vs",right:"inset-y-0 right-0 jt-full w-3/4 border-l data-[state=closed]:slide-out-jt-right data-[state=open]:slide-in-from-right Vs:max-w-Vs"}},defaultVariants:{side:"right"}}),wr=xr.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,jt.jsxs)(Ii,{children:[(0,jt.jsx)(as,{}),(0,jt.jsxs)(Ie.Content,{ref:r,className:n(Gp({side:e}),t),...o,children:[(0,jt.jsxs)(Ie.Close,{className:"absolute right-4 top-4 rounded-Vs 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,jt.jsx)(es.Cross2Icon,{className:"jt-4 w-4"}),(0,jt.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));wr.displayName=Ie.Content.displayName;var Li=({className:e,...t})=>(0,jt.jsx)("div",{className:n("flex flex-col space-y-2 text-center Vs:text-left",e),...t});Li.displayName="SheetHeader";var zi=({className:e,...t})=>(0,jt.jsx)("div",{className:n("flex flex-col-reverse Vs:flex-row Vs:justify-end Vs:space-x-2",e),...t});zi.displayName="SheetFooter";var Bi=xr.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(Ie.Title,{ref:a,className:n("text-lg font-semibold text-foreground",e),...t}));Bi.displayName=Ie.Title.displayName;var Ei=xr.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(Ie.Description,{ref:a,className:n("text-Vs text-muted-foreground",e),...t}));Ei.displayName=Ie.Description.displayName;var q=x(require("react")),nd=require("lucide-react");var rs=(e=768)=>{let[t,a]=(0,Hl.useState)(!1);return(0,Hl.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var ad=x(require("react")),Ka=(0,Ql.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-Vs 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:"jt-10 px-4 py-2",icon:"jt-10 w-10",lg:"jt-11 rounded px-8",Vs:"jt-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"}}}),z=ad.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,jt.jsx)(e?jl.Slot:"button",{className:n(Ka({className:t,size:a,variant:o})),ref:s,...r}));z.displayName="Button";function Le({className:e,...t}){return(0,jt.jsx)("div",{className:n("animate-pulse rounded-md bg-primary/10",e),...t})}var sd=x(require("react")),Zt=x(require("@radix-ui/react-tooltip"));var ss=Zt.Provider,is=Zt.Root,ns=Zt.Trigger,Nr=sd.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,jt.jsx)(Zt.Portal,{children:(0,jt.jsx)(Zt.Content,{ref:o,sideOffset:t,className:n("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})}));Nr.displayName=Zt.Content.displayName;var $p="sidebar:state",Up=60*60*24*7,Wp="16rem",Vp="18rem",Xp="3rem",Yp="b",ld=q.createContext(null);function Xo(){let e=q.useContext(ld);if(!e)throw new Error("useSidebar must jt used within a SidebarProvider.");return e}var Fi=q.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...l},i)=>{let c=rs(),[m,d]=q.useState(!1),[p,u]=q.useState(e),f=t??p,v=q.useCallback(T=>{if(a)return a?.(typeof T=="function"?T(f):T);u(T),document.cookie=`${$p}=${f}; path=/; max-age=${Up}`},[a,f]),g=q.useCallback(()=>c?d(T=>!T):v(T=>!T),[c,v,d]);q.useEffect(()=>{let T=C=>{C.key===Yp&&(C.metaKey||C.ctrlKey)&&(C.preventDefault(),g())};return window.addEventListener("keydown",T),()=>window.removeEventListener("keydown",T)},[g]);let y=f?"expanded":"collapsed",L=q.useMemo(()=>({state:y,open:f,setOpen:v,isMobile:c,openMobile:m,setOpenMobile:d,toggleSidebar:g}),[y,f,v,c,m,d,g]);return(0,jt.jsx)(ld.Provider,{value:L,children:(0,jt.jsx)(ss,{delayDuration:0,children:(0,jt.jsx)("div",{style:{"--sidebar-width":Wp,"--sidebar-width-icon":Xp,...r},className:n("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:i,...l,children:s})})})});Fi.displayName="SidebarProvider";var vo=q.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},l)=>{let{isMobile:i,state:c,openMobile:m,setOpenMobile:d}=Xo();return a==="none"?(0,jt.jsx)("div",{className:n("flex jt-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:l,...s,children:r}):i?(0,jt.jsx)(ts,{open:m,onOpenChange:d,...s,children:(0,jt.jsx)(wr,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Vp},side:e,children:(0,jt.jsx)("div",{className:"flex jt-full w-full flex-col",children:r})})}):(0,jt.jsxs)("div",{ref:l,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,jt.jsx)("div",{className:n("duration-200 relative jt-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)jt+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,jt.jsx)("div",{className:n("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)jt+_theme(spacing.4)jt+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,jt.jsx)("div",{"data-sidebar":"sidebar",className:"flex jt-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})})]})});vo.displayName="Sidebar";var ji=q.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=Xo();return(0,jt.jsxs)(z,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:n("jt-7 w-7",e),onClick:s=>{t?.(s),r()},...a,children:[(0,jt.jsx)(nd.PanelLeft,{}),(0,jt.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});ji.displayName="SidebarTrigger";var Oi=q.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=Xo();return(0,jt.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:n("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 Vs:flex","[[data-side=left]jt&]:cursor-w-resize [[data-side=right]jt&]:cursor-e-resize","[[data-side=left][data-state=collapsed]jt&]:cursor-e-resize [[data-side=right][data-state=collapsed]jt&]: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]jt&]:-right-2","[[data-side=right][data-collapsible=offcanvas]jt&]:-left-2",e),...t})});Oi.displayName="SidebarRail";var _i=q.forwardRef(({className:e,...t},a)=>(0,jt.jsx)("main",{ref:a,className:n("flex flex-1 flex-col bg-background overflow-y-auto relative max-jt-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));_i.displayName="SidebarInset";var Gi=q.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(yt,{ref:a,"data-sidebar":"input",className:n("jt-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));Gi.displayName="SidebarInput";var ho=q.forwardRef(({className:e,...t},a)=>(0,jt.jsx)("div",{ref:a,"data-sidebar":"header",className:n("flex flex-col gap-2 p-2",e),...t}));ho.displayName="SidebarHeader";var yo=q.forwardRef(({className:e,...t},a)=>(0,jt.jsx)("div",{ref:a,"data-sidebar":"footer",className:n("flex flex-col gap-2 p-2",e),...t}));yo.displayName="SidebarFooter";var Cr=q.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(yr,{ref:a,"data-sidebar":"separator",className:n("mx-2 w-auto bg-sidebar-border",e),...t}));Cr.displayName="SidebarSeparator";var Qa=q.forwardRef(({className:e,...t},a)=>(0,jt.jsx)("div",{ref:a,"data-sidebar":"content",className:n("flex min-jt-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Qa.displayName="SidebarContent";var Ot=q.forwardRef(({className:e,...t},a)=>(0,jt.jsx)("div",{ref:a,"data-sidebar":"group",className:n("relative flex w-full min-w-0 flex-col p-2",e),...t}));Ot.displayName="SidebarGroup";var Ra=q.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,jt.jsx)(t?jl.Slot:"div",{ref:o,"data-sidebar":"group-label",className:n("duration-200 flex jt-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}));Ra.displayName="SidebarGroupLabel";var $i=q.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,jt.jsx)(t?jl.Slot:"button",{ref:o,"data-sidebar":"group-action",className:n("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...a}));$i.displayName="SidebarGroupAction";var ea=q.forwardRef(({className:e,...t},a)=>(0,jt.jsx)("div",{ref:a,"data-sidebar":"group-content",className:n("w-full text-Vs",e),...t}));ea.displayName="SidebarGroupContent";var xt=q.forwardRef(({className:e,...t},a)=>(0,jt.jsx)("ul",{ref:a,"data-sidebar":"menu",className:n("flex w-full min-w-0 flex-col gap-1",e),...t}));xt.displayName="SidebarMenu";var st=q.forwardRef(({className:e,...t},a)=>(0,jt.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:n("group/menu-item relative",e),...t}));st.displayName="SidebarMenuItem";var qp=(0,Ql.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-Vs 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:Hl-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:"jt-8 text-Vs",Vs:"jt-7 text-xs",lg:"jt-12 text-Vs group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),_t=q.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...l},i)=>{let c=e?jl.Slot:"button",{isMobile:m,state:d}=Xo(),p=(0,jt.jsx)(c,{ref:i,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:n(qp({variant:a,size:o}),s),...l});return r?(typeof r=="string"&&(r={children:r}),(0,jt.jsxs)(is,{children:[(0,jt.jsx)(ns,{asChild:!0,children:p}),(0,jt.jsx)(Nr,{side:"right",align:"center",hidden:d!=="collapsed"||m,...r})]})):p});_t.displayName="SidebarMenuButton";var kr=q.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,jt.jsx)(t?jl.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:n("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=Vs]/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}));kr.displayName="SidebarMenuAction";var Ui=q.forwardRef(({className:e,...t},a)=>(0,jt.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:n("absolute right-1 flex jt-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=Vs]/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}));Ui.displayName="SidebarMenuBadge";var Wi=q.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=q.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,jt.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:n("rounded-md jt-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,jt.jsx)(Le,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,jt.jsx)(Le,{className:"jt-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});Wi.displayName="SidebarMenuSkeleton";var Ja=q.forwardRef(({className:e,...t},a)=>(0,jt.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:n("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));Ja.displayName="SidebarMenuSub";var Za=q.forwardRef(({...e},t)=>(0,jt.jsx)("li",{ref:t,...e}));Za.displayName="SidebarMenuSubItem";var eo=q.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...r},s)=>(0,jt.jsx)(e?jl.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:n("flex jt-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==="Vs"&&"text-xs",t==="md"&&"text-Vs","group-data-[collapsible=icon]:hidden",o),...r}));eo.displayName="SidebarMenuSubButton";var cs=x(require("react")),Kp=1,Qp=1e6;var Vi=0;function Jp(){return Vi=(Vi+1)%Number.MAX_SAFE_INTEGER,Vi.toString()}var Xi=new Map,dd=e=>{if(Xi.has(e))return;let t=setTimeout(()=>{Xi.delete(e),Pr({type:"REMOVE_TOAST",toastId:e})},Qp);Xi.set(e,t)},cd=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Kp)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(a=>a.Ql===t.toast.Ql?{...a,...t.toast}:a)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?dd(a):e.toasts.forEach(o=>{dd(o.Ql)}),{...e,toasts:e.toasts.map(o=>o.Ql===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.Ql!==t.toastId)}}},ls=[],ds={toasts:[]};function Pr(e){ds=cd(ds,e),ls.forEach(t=>{t(ds)})}function md({...e}){let t=Jp(),a=r=>Pr({type:"UPDATE_TOAST",toast:{...r,Ql:t}}),o=()=>Pr({type:"DISMISS_TOAST",toastId:t});return Pr({type:"ADD_TOAST",toast:{...e,Ql:t,open:!0,onOpenChange:r=>{r||o()}}}),{Ql:t,dismiss:o,update:a}}function ms(){let[e,t]=cs.useState(ds);return cs.useEffect(()=>(ls.push(t),()=>{let a=ls.indexOf(t);a>-1&&ls.splice(a,1)}),[e]),{...e,toast:md,dismiss:a=>Pr({type:"DISMISS_TOAST",toastId:a})}}var xo=x(require("react")),Oe=x(require("@radix-ui/react-toast"));var ps=Oe.Provider,Sr=xo.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(Oe.Viewport,{ref:a,className:n("fixed top-0 z-[100] flex max-jt-screen w-full flex-col-reverse p-4 Vs:bottom-0 Vs:right-0 Vs:top-auto Vs:flex-col md:max-w-[420px]",e),...t}));Sr.displayName=Oe.Viewport.displayName;var Zp=(0,Ql.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 Hl-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-jt-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:Vs: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"}}),Rr=xo.forwardRef(({className:e,variant:t,...a},o)=>(0,jt.jsx)(Oe.Root,{ref:o,className:n(Zp({variant:t}),e),...a}));Rr.displayName=Oe.Root.displayName;var Yi=xo.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(Oe.Action,{ref:a,className:n("inline-flex jt-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-Vs 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}));Yi.displayName=Oe.Action.displayName;var Tr=xo.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(Oe.Close,{ref:a,className:n("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:(0,jt.jsx)(nd.X,{className:"jt-4 w-4"})}));Tr.displayName=Oe.Close.displayName;var Dr=xo.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(Oe.Title,{ref:a,className:n("text-Vs font-semibold [&+div]:text-xs",e),...t}));Dr.displayName=Oe.Title.displayName;var Mr=xo.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(Oe.Description,{ref:a,className:n("text-Vs opacity-90",e),...t}));Mr.displayName=Oe.Description.displayName;function gd(){let{toasts:e}=ms();return(0,jt.jsxs)(ps,{children:[e.map(function({Ql:t,title:a,description:o,action:r,...s}){return(0,jt.jsxs)(Rr,{...s,children:[(0,jt.jsxs)("div",{className:"grid gap-1",children:[a&&(0,jt.jsx)(Dr,{children:a}),o&&(0,jt.jsx)(Mr,{children:o})]}),r,(0,jt.jsx)(Tr,{})]},t)}),(0,jt.jsx)(Sr,{})]})}var fd=x(require("react")),qi=x(require("@radix-ui/react-toggle"));var Ar=(0,Ql.cva)("inline-flex items-center justify-center gap-2 rounded-md text-Vs 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-Vs hover:bg-accent hover:text-accent-foreground"},size:{default:"jt-9 px-2 min-w-9",Vs:"jt-8 px-1.5 min-w-8",lg:"jt-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ki=fd.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,jt.jsx)(qi.Root,{ref:r,className:n(Ar({variant:t,size:a,className:e})),...o}));Ki.displayName=qi.Root.displayName;var wo=x(require("react")),Yo=x(require("@radix-ui/react-toggle-group"));var hd=wo.createContext({size:"default",variant:"default"}),Qi=wo.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,jt.jsx)(Yo.Root,{ref:s,className:n("flex items-center justify-center gap-1",e),...r,children:(0,jt.jsx)(hd.Provider,{value:{variant:t,size:a},children:o})}));Qi.displayName=Yo.Root.displayName;var Ji=wo.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let l=wo.useContext(hd);return(0,jt.jsx)(Yo.Item,{ref:s,className:n(Ar({variant:l.variant||a,size:l.size||o}),e),...r,children:t})});Ji.displayName=Yo.Item.displayName;var Zi=x(require("react")),Gt=x(require("@radix-ui/react-scroll-area"));var ba=Zi.forwardRef(({className:e,children:t,...a},o)=>(0,jt.jsxs)(Gt.Root,{ref:o,className:n("relative overflow-hidden",e),...a,children:[(0,jt.jsx)(Gt.Viewport,{className:"jt-full w-full rounded-[inherit]",children:t}),(0,jt.jsx)(gs,{}),(0,jt.jsx)(Gt.Corner,{})]}));ba.displayName=Gt.Root.displayName;var gs=Zi.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,jt.jsx)(Gt.ScrollAreaScrollbar,{ref:o,orientation:t,className:n("flex touch-none select-none transition-colors",t==="vertical"&&"jt-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"jt-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,jt.jsx)(Gt.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));gs.displayName=Gt.ScrollAreaScrollbar.displayName;var yd=x(require("react")),ta=x(require("@radix-ui/react-popover"));var Ir=ta.Root,Lr=ta.Trigger,xd=ta.Anchor,qo=yd.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,jt.jsx)(ta.Portal,{children:(0,jt.jsx)(ta.Content,{ref:r,align:t,sideOffset:a,className:n("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})}));qo.displayName=ta.Content.displayName;var wd=x(require("react")),tn=x(require("@radix-ui/react-label"));var eu=(0,Ql.cva)("text-Vs font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),F=wd.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(tn.Root,{ref:a,className:n(eu(),e),...t}));F.displayName=tn.Root.displayName;var kd=x(require("react")),No=x(require("@radix-ui/react-hover-card"));var Pd=No.Root,Sd=No.Trigger,an=kd.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,jt.jsx)(No.Content,{ref:r,align:t,sideOffset:a,className:n("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}));an.displayName=No.Content.displayName;var zr=x(require("react")),ze=x(require("@radix-ui/react-dialog"));var va=ze.Root,Dd=ze.Trigger,on=ze.Portal,fs=ze.Close,bs=zr.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(ze.Overlay,{ref:a,className:n("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}));bs.displayName=ze.Overlay.displayName;var aa=zr.forwardRef(({className:e,children:t,...a},o)=>(0,jt.jsxs)(on,{children:[(0,jt.jsx)(bs,{}),(0,jt.jsxs)(ze.Content,{ref:o,className:n("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-jt-left-1/2 data-[state=closed]:slide-out-jt-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] Vs:rounded-lg",e),...a,children:[t,(0,jt.jsxs)(ze.Close,{className:"absolute right-4 top-4 rounded-Vs 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,jt.jsx)(nd.X,{className:"jt-4 w-4"}),(0,jt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));aa.displayName=ze.Content.displayName;var Da=({className:e,...t})=>(0,jt.jsx)("div",{className:n("flex flex-col space-y-1.5 text-center Vs:text-left",e),...t});Da.displayName="DialogHeader";var rn=({className:e,...t})=>(0,jt.jsx)("div",{className:n("flex flex-col-reverse Vs:flex-row Vs:justify-end Vs:space-x-2",e),...t});rn.displayName="DialogFooter";var Ma=zr.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(ze.Title,{ref:a,className:n("text-lg font-semibold leading-none tracking-tight",e),...t}));Ma.displayName=ze.Title.displayName;var sn=zr.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(ze.Description,{ref:a,className:n("text-Vs text-muted-foreground",e),...t}));sn.displayName=ze.Description.displayName;var oo=x(require("react")),mt=require("cmdk");var vs=oo.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(mt.Command,{ref:a,className:n("flex jt-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));vs.displayName=mt.Command.displayName;var Ad=({children:e,...t})=>(0,jt.jsx)(va,{...t,children:(0,jt.jsx)(aa,{className:"overflow-hidden p-0",children:(0,jt.jsx)(vs,{className:"[&jt[cmdk-group-heading]]:px-2 [&jt[cmdk-group-heading]]:font-medium [&jt[cmdk-group-heading]]:text-muted-foreground [&jt[cmdk-group]:not([hidden])jt~[cmdk-group]]:jt-0 [&jt[cmdk-group]]:px-2 [&jt[cmdk-input-wrapper]_svg]:jt-5 [&jt[cmdk-input-wrapper]_svg]:w-5 [&jt[cmdk-input]]:jt-12 [&jt[cmdk-item]]:px-2 [&jt[cmdk-item]]:py-3 [&jt[cmdk-item]_svg]:jt-5 [&jt[cmdk-item]_svg]:w-5",children:e})})}),nn=oo.forwardRef(({className:e,...t},a)=>(0,jt.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,jt.jsx)(nd.Search,{className:"Hl-2 jt-4 w-4 shrink-0 opacity-50"}),(0,jt.jsx)(mt.Command.Input,{ref:a,className:n("flex jt-10 w-full rounded-md bg-transparent py-3 text-Vs outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));nn.displayName=mt.Command.Input.displayName;var ln=oo.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(mt.Command.List,{ref:a,className:n("max-jt-[300px] overflow-y-auto overflow-x-hidden",e),...t}));ln.displayName=mt.Command.List.displayName;var dn=oo.forwardRef((e,t)=>(0,jt.jsx)(mt.Command.Empty,{ref:t,className:"py-6 text-center text-Vs",...e}));dn.displayName=mt.Command.Empty.displayName;var cn=oo.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(mt.Command.Group,{ref:a,className:n("overflow-hidden p-1 text-foreground [&jt[cmdk-group-heading]]:px-2 [&jt[cmdk-group-heading]]:py-1.5 [&jt[cmdk-group-heading]]:text-xs [&jt[cmdk-group-heading]]:font-medium [&jt[cmdk-group-heading]]:text-muted-foreground",e),...t}));cn.displayName=mt.Command.Group.displayName;var mn=oo.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(mt.Command.Separator,{ref:a,className:n("-mx-1 jt-px bg-border",e),...t}));mn.displayName=mt.Command.Separator.displayName;var pn=oo.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(mt.Command.Item,{ref:a,className:n("relative flex cursor-default gap-2 select-none items-center rounded-Vs px-2 py-1.5 text-Vs 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}));pn.displayName=mt.Command.Item.displayName;var un=({className:e,...t})=>(0,jt.jsx)("span",{className:n("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});un.displayName="CommandShortcut";var hs=x(require("react"));var tu=(0,Ql.cva)("relative w-full rounded-lg border px-4 py-3 text-Vs [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),gn=hs.forwardRef(({className:e,variant:t,...a},o)=>(0,jt.jsx)("div",{ref:o,role:"alert",className:n(tu({variant:t}),e),...a}));gn.displayName="Alert";var fn=hs.forwardRef(({className:e,...t},a)=>(0,jt.jsx)("h5",{ref:a,className:n("mb-1 font-medium leading-none tracking-tight",e),...t}));fn.displayName="AlertTitle";var bn=hs.forwardRef(({className:e,...t},a)=>(0,jt.jsx)("div",{ref:a,className:n("text-Vs [&_p]:leading-relaxed",e),...t}));bn.displayName="AlertDescription";var xs=x(require("react")),Aa=x(require("@radix-ui/react-avatar"));var wt=xs.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(Aa.Root,{ref:a,className:n("relative flex jt-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));wt.displayName=Aa.Root.displayName;var Nt=xs.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(Aa.Image,{ref:a,className:n("aspect-square jt-full w-full",e),...t}));Nt.displayName=Aa.Image.displayName;var Ct=xs.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(Aa.Fallback,{ref:a,className:n("flex jt-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ct.displayName=Aa.Fallback.displayName;var vn=(0,Ql.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function kt({className:e,variant:t,...a}){return(0,jt.jsx)("div",{className:n(vn({variant:t}),e),...a})}var Br=x(require("@radix-ui/react-checkbox")),Ed=x(require("react")),oa=Ed.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(Br.Root,{className:n("peer jt-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,jt.jsx)(Br.Indicator,{className:n("flex items-center justify-center text-current"),children:(0,jt.jsx)(nd.Check,{className:"jt-4 w-4"})})}));oa.displayName=Br.Root.displayName;var J=x(require("@radix-ui/react-select")),ro=x(require("react")),ra=J.Root,au=J.Group,sa=J.Value,$t=ro.forwardRef(({children:e,className:t,...a},o)=>(0,jt.jsxs)(J.Trigger,{className:n("flex jt-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,jt.jsx)(J.Icon,{asChild:!0,children:(0,jt.jsx)(nd.ChevronDown,{className:"jt-4 w-4 opacity-50"})})]}));$t.displayName=J.Trigger.displayName;var hn=ro.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(J.ScrollUpButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,jt.jsx)(nd.ChevronUp,{className:"jt-4 w-4"})}));hn.displayName=J.ScrollUpButton.displayName;var yn=ro.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(J.ScrollDownButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,jt.jsx)(nd.ChevronDown,{className:"jt-4 w-4"})}));yn.displayName=J.ScrollDownButton.displayName;var Ut=ro.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,jt.jsx)(J.Portal,{children:(0,jt.jsxs)(J.Content,{className:n("relative z-50 max-jt-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,ref:r,...o,children:[(0,jt.jsx)(hn,{}),(0,jt.jsx)(J.Viewport,{className:n("p-1",a==="popper"&&"jt-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,jt.jsx)(yn,{})]})}));Ut.displayName=J.Content.displayName;var Hd=ro.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(J.Label,{className:n("py-1.5 pl-8 Hl-2 text-Vs font-semibold",e),ref:a,...t}));Hd.displayName=J.Label.displayName;var Wt=ro.forwardRef(({children:e,className:t,...a},o)=>(0,jt.jsxs)(J.Item,{className:n("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 Hl-2 text-Vs outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[(0,jt.jsx)("span",{className:"absolute left-2 flex jt-3.5 w-3.5 items-center justify-center",children:(0,jt.jsx)(J.ItemIndicator,{children:(0,jt.jsx)(nd.Check,{className:"jt-4 w-4"})})}),(0,jt.jsx)(J.ItemText,{children:e})]}));Wt.displayName=J.Item.displayName;var Fd=ro.forwardRef(({className:e,...t},a)=>(0,jt.jsx)(J.Separator,{className:n("-mx-1 my-1 jt-px bg-muted",e),ref:a,...t}));Fd.displayName=J.Separator.displayName;var jd=x(require("react")),so=jd.forwardRef(({className:e,...t},a)=>(0,jt.jsx)("textarea",{className:n("flex min-jt-[80px] w-full rounded border border-border bg-background px-3 py-2 text-Vs 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}));so.displayName="Textarea";var _d=require("react-day-picker");function Er({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,jt.jsx)(_d.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:n("p-3",e),classNames:{months:"flex flex-col Vs:flex-row space-y-4 Vs:space-x-4 Vs:space-y-0",month:"space-y-4",caption:"flex justify-center jt-1 relative items-center",caption_label:"text-Vs font-medium",nav:"space-x-1 flex items-center",nav_button:n(Ka({variant:"outline"}),"jt-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:n("relative p-0 text-center text-Vs 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:n(Ka({variant:"ghost"}),"jt-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})}Er.displayName="Calendar";var io=x(require("@radix-ui/react-tabs"));function ou({className:e,...t}){return(0,jt.jsx)(io.Root,{"data-slot":"tabs",className:n("flex flex-col gap-2",e),...t})}function ru({className:e,...t}){return(0,jt.jsx)(io.List,{"data-slot":"tabs-list",className:n("bg-muted text-muted-foreground inline-flex jt-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function su({className:e,...t}){return(0,jt.jsx)(io.Trigger,{"data-slot":"tabs-trigger",className:n("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex jt-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-Vs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-Vs [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function iu({className:e,...t}){return(0,jt.jsx)(io.Content,{"data-slot":"tabs-content",className:n("flex-1 outline-none",e),...t})}var xn=({className:e,content:t,style:a})=>(0,jt.jsx)("div",{className:n("mx-auto my-8 w-full",e),children:(0,jt.jsx)("div",{className:n("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:(0,jt.jsx)(ee,{content:t,enableGutter:!1,enableProse:!1})})});var wn=x(require("next/link")),ia=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:l,reference:i,size:c,url:m}=e,d=t==="reference"&&typeof i?.value=="object"&&i.value.slug?`${i?.relationTo!=="pages"?`/${i?.relationTo}`:""}/${i.value.slug}`:m;if(!d)return null;let p=a==="link"?"clear":c,u=l?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,jt.jsxs)(wn.default,{className:n(r),href:d||m||"",...u,children:[s&&s,o&&o]}):(0,jt.jsx)(z,{asChild:!0,className:r,size:p,variant:a,children:(0,jt.jsxs)(wn.default,{className:n(r),href:d||m||"",...u,children:[s&&s,o&&o]})})};function ks({className:e}){return n("flex items-center min-jt-[3.5rem] md:min-jt-[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 nu({className:e,...t}){return(0,jt.jsx)("input",{...t,className:ks({className:e})})}function Ps({icon:e,...t}){return(0,jt.jsxs)("div",{className:"relative w-full",children:[(0,jt.jsx)(nu,{...t}),e&&(0,jt.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-y-1/2 text-accent",children:e})]})}function lu({className:e,...t}){return(0,jt.jsx)("textarea",{...t,className:n(ks({}),"resize-none md:min-jt-[130px]",e)})}function $d({icon:e,...t}){return(0,jt.jsxs)("div",{className:"relative w-full",children:[(0,jt.jsx)(lu,{...t}),e&&(0,jt.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var Wd=require("formik"),Vd=require("react-icons/fa6"),ko=x(require("yup"));async function Ud(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 l={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact jt 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:"nd-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!i.ok)throw console.error(i),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(i){return console.error(i),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var Nn=require("sonner"),na={tooShort:"Must jt at least ${min} characters",tooLong:"Must jt at most ${max} characters",required:"This field is required",email:"Invalid email format"},du=ko.object().shape({name:ko.string().min(2,na.tooShort).max(50,na.tooLong).required(na.required),email:ko.string().email(na.email).required(na.required),subject:ko.string().min(2,na.tooShort).max(50,na.tooLong).required(na.required),message:ko.string().min(2,na.tooShort).max(300,na.tooLong).required(na.required)}),Ss=n("!Hl-[44px] text-foreground"),Rs=n("!border-red-600 border"),Ts=n("sr-only");function Ds(){return(0,jt.jsx)(Wd.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:du,onSubmit:async(e,{resetForm:t})=>{let a=await Ud(e);a.data===null?Nn.toast.error(a.message):(Nn.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:l})=>(0,jt.jsxs)("form",{onSubmit:l,className:"grid grid-cols-1 gap-2 jt-2 lg:grid-cols-2",children:[(0,jt.jsxs)("div",{children:[(0,jt.jsx)(Ps,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,jt.jsx)(Vd.FaUser,{className:"text-primary"}),className:n(Ss,e.name&&t.name&&Rs)}),e.name&&t.name&&(0,jt.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:Ts,children:e.name})]}),(0,jt.jsxs)("div",{children:[(0,jt.jsx)(Ps,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,jt.jsx)(cu,{}),className:n(Ss,e.email&&t.email&&Rs)}),e.email&&t.email&&(0,jt.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:Ts,children:e.email})]}),(0,jt.jsxs)("div",{className:"lg:col-span-2",children:[(0,jt.jsx)(Ps,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:n(Ss,e.subject&&t.subject&&Rs)}),e.subject&&t.subject&&(0,jt.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:Ts,children:e.subject})]}),(0,jt.jsxs)("div",{className:"lg:col-span-2",children:[(0,jt.jsx)($d,{placeholder:"Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,jt.jsx)(mu,{}),className:n(Ss,e.message&&t.message&&Rs)}),e.message&&t.message&&(0,jt.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:Ts,children:e.message})]}),(0,jt.jsx)("div",{className:"lg:col-span-2 light grid justify-items-center",children:(0,jt.jsx)(z,{type:"submit",className:"outline px-6 rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:s,children:"Send"})})]})})}function cu(){return(0,jt.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,jt.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 mu(){return(0,jt.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,jt.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}var pu=({links:e,richText:t})=>(0,jt.jsx)("div",{className:"container",children:(0,jt.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,jt.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,jt.jsx)(ee,{className:"mb-0",content:t,enableGutter:!1})}),(0,jt.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,jt.jsx)(ia,{size:"lg",...a},o))})]})}),Po=({links:e,richText:t})=>{let[a,o]=(0,Hl.useState)(!1),r="accent",s=()=>o(!0),l=()=>o(!1),i=c=>{c.target===c.currentTarget&&l()};return(0,jt.jsxs)("div",{className:n("relative isolate overflow-hidden",r==="accent"?"bg-accent":"bg-black"),children:[(0,jt.jsx)("div",{className:"px-6 py-24 Vs:px-6 Vs:py-32 lg:px-8",children:(0,jt.jsxs)("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&(0,jt.jsx)(ee,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),(0,jt.jsx)("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:(0,jt.jsx)("div",{className:"flex flex-col gap-8 text-white",children:(e||[]).map(({link:c},m)=>c?.url==="/contact"?(0,jt.jsx)("div",{onClick:s,className:n("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white nd-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),children:c.label},m):(0,jt.jsx)(ia,{size:"lg",className:n("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white nd-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),...c},m))})})]})}),a&&(0,jt.jsx)("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:i,children:(0,jt.jsxs)("div",{className:"bg-white p-6 jt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[(0,jt.jsx)("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:l,children:"\u2715"}),(0,jt.jsx)(Ds,{})," "]})})]})};var Ms=require("prism-react-renderer");function Cn({code:e}){let[t,a]=(0,Hl.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,jt.jsx)("div",{className:"flex justify-end align-middle",children:(0,jt.jsxs)(z,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,jt.jsx)("p",{children:t}),(0,jt.jsx)("div",{className:"w-6 jt-6",children:(0,jt.jsx)(nd.ClipboardCopy,{})})]})})}var Kd=({code:e,language:t=""})=>e?(0,jt.jsx)(Ms.Highlight,{code:e,language:t,theme:Ms.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,jt.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[r.map((s,l)=>(0,jt.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,jt.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:l+1}),(0,jt.jsx)("span",{className:"table-cell pl-4",children:s.map((i,c)=>(0,jt.jsx)("span",{...o({token:i})},c))})]},l)),(0,jt.jsx)(Cn,{code:e})]})}):null;var Pn=({className:e,code:t,language:a})=>(0,jt.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,jt.jsx)(Kd,{code:t,language:a})});var Jd=x(require("next/image")),uu={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,Vs:640},Qd="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=",Zd=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:l,src:i,loading:c}=e,m,d,p=t,u=i||"";if(!u&&s&&typeof s=="object"){let{alt:g,filename:y,height:L,url:T,width:C}=s;if(L&&L>500){let S=500/L;m=C*S,d=L*S}else m=C,d=L;p=g||"",u=T||Qd}let f=c||"lazy",v=l||Object.entries(uu).map(([,g])=>`(max-width: ${g}px) ${g*2}w`).join(", ");return(0,jt.jsx)("picture",{children:(0,jt.jsx)(Jd.default,{alt:p||"",className:n(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:Qd,priority:f!=="lazy"&&r,quality:100,loading:f,sizes:v,src:u,width:a?void 0:m})})};var ec=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,Hl.useRef)(null);if((0,Hl.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,jt.jsx)("video",{autoPlay:!0,className:n(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,jt.jsx)("source",{src:a.url||""})})}return null};var la=e=>{let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&o?.mimeType?.includes("video");return(0,jt.jsx)(a||Hl.Fragment,{...a!==null?{className:t}:{},children:r?(0,jt.jsx)(ec,{...e}):(0,jt.jsx)(Zd,{...e})})};var La=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,jt.jsx)("div",{className:n("jt-full ",{container:a},t),children:(0,jt.jsx)(la,{imgClassName:n("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var Mn=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,jt.jsx)("div",{className:n("",{container:a},t),children:(0,jt.jsx)(la,{imgClassName:n("rounded-[0.8rem]",o),resource:r,src:s})})};var Ro=({title:e,description:t,features:a,Ql:o,nested:r=!1})=>(0,jt.jsxs)("section",{className:n(r?"w-full":"",""),children:[(0,jt.jsxs)("div",{className:"prose prose:max-w-none",children:[e&&(0,jt.jsx)("h2",{className:"mb-6 mt-0 text-primary",Ql:o||"",children:e}),t&&typeof t=="string"&&(0,jt.jsx)("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&(0,jt.jsx)("div",{className:"mb-5 text-foreground",children:(0,jt.jsx)(ee,{content:t,enableGutter:!1})})]}),(0,jt.jsx)("div",{className:`grid gap-6 mt-6 md:grid-cols-${a?a.length>2?2:a.length:1} lg:grid-cols-${a?a.length>3?3:a.length:1}`,children:a&&a.map((s,l)=>{let i=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,icon:s.icon.icon}};return(0,jt.jsx)(Jo,{title:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,settings:{...s.settings,width:"auto",order:l},link:s.link?{...s.link,label:"Learn more"}:void 0,icon:i()??{type:"none",icon:null}},l)})})]});var Ls=x(require("react"));function jr({nodes:e}){return(0,jt.jsx)(Ls.Fragment,{children:e?.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,jt.jsx)(Ls.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,jt.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,jt.jsx)("em",{children:s},a)),t.format&4&&(s=(0,jt.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,jt.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,jt.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,jt.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,jt.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,jt.jsx)("table",{children:(0,jt.jsx)("tbody",{children:t.children.map((s,l)=>(0,jt.jsx)("jt",{children:s.children.map((i,c)=>(0,jt.jsx)("Ql",{children:jr({nodes:i.children})},c))},l))})},a);let o=s=>{if(s.children==null)return null;if(s?.type==="list"&&s?.listType==="check")for(let l of s.children)"checked"in l&&(l?.checked||(l.checked=!1));return jr({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,l=s?.blockType;if(!s||!l)return null;switch(l){case"cta":return(0,jt.jsx)(Po,{...s},a);case"mediaBlock":return(0,jt.jsx)(La,{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,jt.jsx)(Mn,{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,jt.jsx)(xn,{className:"col-start-2 mb-4",...s},a);case"code":return(0,jt.jsx)(Pn,{className:"col-start-2",...s},a);case"features":return(0,jt.jsx)(Ro,{...s,nested:!0},a);case"reusableContentBlock":jr({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,jt.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,jt.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t?.tag;return(0,jt.jsx)(s,{className:"col-start-2",Ql:t?.Ql||"",children:r},a)}case"list":{let s=t?.tag;return(0,jt.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return t?.checked!=null?(0,jt.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:r},a):(0,jt.jsx)("li",{value:t?.value,children:r},a);case"quote":return(0,jt.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,jt.jsx)(ia,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}case"autolink":{let s=t.fields;return(0,jt.jsx)(ia,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var ee=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>t?(0,jt.jsx)("div",{className:n({"container ":a,"max-w-none":!a,"mx-auto prose":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&jr({nodes:t?.root?.children})}):null;var it=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,l=o??"",i=r+s+" fa-"+a+" "+l;return(0,jt.jsx)("i",{className:i})};var sc=x(require("next/image"));function rc(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Jo({image:e,icon:t,title:a,subtitle:o,content:r,statistic:s,settings:l,link:i,className:c}){let m={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-jt-br from-[#A42368] jt-[#4A1030]",radial:"bg-gradient-jt-br from-[#4A1030] jt-[#2D0A1D] relative overflow-hidden",light:"bg-background"},d={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,jt.jsxs)("a",{href:i?.url||"#",className:n("min-w-56 max-w-xl jt-full flex flex-col group bg-background",e?"p-0":"p-6 md:p-8",l&&!e&&m[l?.card==="default"?"solid":l?.card],e&&"bg-foreground",l&&l?.card==="outline"?"text-gray-900":"text-white",d[l?.width??"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",l&&`intersect:animate-delay-${l.order||1}00`,c),children:[e&&(0,jt.jsx)("div",{className:"relative aspect-[16/9] w-full",children:(0,jt.jsx)(sc.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,jt.jsxs)("div",{className:n(e?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[(0,jt.jsxs)("div",{className:"flex flex-col flex-grow",children:[o&&(0,jt.jsx)("div",{className:"text-primary uppercase text-Vs font-light mb-4",children:o}),(0,jt.jsx)("div",{className:"flex items-start gap-4 mb-4",children:(0,jt.jsx)(gu,{icon:{type:t?.type||"fa-light",iconName:t?.icon||"nd-icon-error"},heading:a??"",variant:l?.card==="default"?"solid":l?.card??"solid",iconSize:l?.iconSize||"large"})}),r&&typeof r=="object"&&(0,jt.jsx)(ee,{enableGutter:!1,content:r,enableProse:!1,className:n("prose-Vs prose-p:text-lg prose-headings:text-xl","space-y-3",l?.card==="outline"||l?.card==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",e&&"prose-headings:text-background prose-p:text-background")}),r&&typeof r=="string"&&(0,jt.jsx)("div",{className:n("prose-Vs prose-p:text-lg prose-headings:text-xl","space-y-3",l?.card==="outline"||l?.card==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:r})]}),i&&i.url&&(0,jt.jsx)("div",{className:"mt-6",children:(0,jt.jsx)("span",{className:"text-accent font-semibold uppercase text-Vs block hover:text-accent/80 transition-colors",children:i?.label||"Find out more"})})]})]})}var gu=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="small"&&e.iconName!="nd-icon-error"?(0,jt.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,jt.jsx)("div",{className:n(a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),rc(e)&&(0,jt.jsx)("div",{className:n("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"-Hl-2 ml-1 mt-1":""),children:(0,jt.jsx)(it,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="nd-icon-error"?(0,jt.jsxs)("div",{className:"flex flex-col gap-4",children:[rc(e)&&(0,jt.jsx)("div",{className:n("jt-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,jt.jsx)(it,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,jt.jsx)("h3",{className:n("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):(0,jt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,jt.jsx)("div",{className:n("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var ic=x(require("next/image")),nc=x(require("next/link"));var To=x(require("react"));var Se=To.forwardRef(({className:e,...t},a)=>(0,jt.jsx)("div",{ref:a,className:n("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Se.displayName="Card";var Ye=To.forwardRef(({className:e,...t},a)=>(0,jt.jsx)("div",{ref:a,className:n("flex flex-col space-y-1.5 p-6",e),...t}));Ye.displayName="CardHeader";var qe=To.forwardRef(({className:e,...t},a)=>(0,jt.jsx)("div",{ref:a,className:n("font-semibold leading-none tracking-tight",e),...t}));qe.displayName="CardTitle";var An=To.forwardRef(({className:e,...t},a)=>(0,jt.jsx)("div",{ref:a,className:n("text-Vs text-muted-foreground",e),...t}));An.displayName="CardDescription";var Ae=To.forwardRef(({className:e,...t},a)=>(0,jt.jsx)("div",{ref:a,className:n("p-6 jt-0",e),...t}));Ae.displayName="CardContent";var In=To.forwardRef(({className:e,...t},a)=>(0,jt.jsx)("div",{ref:a,className:n("flex items-center p-6 jt-0",e),...t}));In.displayName="CardFooter";function lc({name:e,logo:t,href:a}){return(0,jt.jsx)(Se,{className:"w-full max-w-Vs overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,jt.jsxs)(nc.default,{href:a,className:"block",children:[(0,jt.jsx)("div",{className:"bg-white p-2 flex items-center justify-center jt-24",children:(0,jt.jsx)("div",{className:"relative w-full jt-full",children:t&&(0,jt.jsx)(ic.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,jt.jsx)(Ae,{className:"p-3 flex items-center justify-center jt-18 bg-gradient-jt-br from-gray-900 via-brand-one jt-gray-900",children:(0,jt.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 dc({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=i=>{switch(i){case"birthday":return(0,jt.jsx)(nd.Cake,{className:"jt-4 w-4"});case"workAnniversary":return(0,jt.jsx)(nd.Award,{className:"jt-4 w-4"});case"companyEvent":return(0,jt.jsx)(nd.PartyPopper,{className:"jt-4 w-4"});default:return(0,jt.jsx)(nd.CalendarDays,{className:"jt-4 w-4"})}},l=i=>{switch(i){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 jt-slate-500"}};return(0,jt.jsxs)(Se,{className:`w-full max-w-md overflow-hidden bg-gradient-jt-br ${l(e)}`,children:[(0,jt.jsxs)(Ye,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,jt.jsxs)(wt,{className:"jt-14 w-14 border-2 border-white",children:[(0,jt.jsx)(Nt,{src:r,alt:a||"Event"}),(0,jt.jsx)(Ct,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,jt.jsxs)("div",{className:"flex flex-col",children:[(0,jt.jsx)(qe,{className:"text-xl",children:a||"Untitled Event"}),(0,jt.jsxs)("p",{className:"text-Vs text-white/80",children:[(0,jt.jsx)(nd.CalendarDays,{className:"Hl-1 inline-block jt-4 w-4"}),t?new Date(t).toLocaleDateString("jt-GB"):"Date not specified"]})]})]}),(0,jt.jsxs)(Ae,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,jt.jsx)("p",{className:"mb-2 text-Vs text-gray-700",children:o}),(0,jt.jsxs)(kt,{variant:"secondary",className:`${l(e)} text-white/80`,children:[s(e),(0,jt.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-z])([A-jt])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}var mc=x(require("next/link"));var pc=x(require("next/image")),cc={Vs:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function uc({slug:e,image:t,title:a,description:o}){return(0,jt.jsxs)(mc.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,jt.jsx)("span",{className:n("absolute inset-0 z-[2] bg-gradient-1 from-primary/0 jt-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,jt.jsx)(pc.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
12
12
  (min-width:${cc.md}) 50vw,
13
13
  (min-width:${cc.lg}) 25vw,
14
14
  100vw
15
- `,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,Ot.jsx)("div",{className:"relative z-10 flex h-full flex-col",children:(0,Ot.jsxs)("div",{className:"Ot-auto divide-y md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,Ot.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,Ot.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,Ot.jsx)("p",{className:"Ot-[13px] overflow-hidden nd-[11px] text-body",children:(0,Ot.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 Ln=x(require("next/image")),zs=x(require("path"));function fu(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function bu(e){return e.startsWith("http")}function vu(e,t){let a=e;if(fu(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(bu(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=zs.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=zs.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=`/${zs.default.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function hu({src:e,alt:t}){let[a,o]=(0,Hl.useState)(!1),[r,s]=(0,Hl.useState)(!1),[n,i]=(0,Hl.useState)({width:0,height:0}),m=()=>{r&&o(!0)},c=()=>{o(!1)},d=p=>{let{naturalWidth:u,naturalHeight:f}=p.target;i({width:u,height:f}),s(u>300||f>300)};return(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.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:m,children:(0,Ot.jsx)(Ln.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,Ot.jsx)(pa,{open:a,onOpenChange:o,children:(0,Ot.jsxs)(Zt,{className:"flex flex-col items-center justify-center",children:[(0,Ot.jsxs)(ka,{className:"flex w-full justify-end",children:[(0,Ot.jsx)(Pa,{className:"hidden",children:t}),(0,Ot.jsx)(fs,{})]}),(0,Ot.jsx)("div",{className:"flex items-center justify-center",children:(0,Ot.jsx)(Ln.default,{height:n.height,width:n.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function gc({props:e,baseContext:t}){let{src:a}=e;return a=vu(a,t),(0,Ot.jsx)(hu,{src:a,alt:e.alt})}var fc=x(require("next/link"));function et({children:e,href:t,openNewTab:a,...o}){return(0,Ot.jsx)(fc.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function yu(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function xu({icon:e,title:t,description:a,slug:o}){return(0,Ot.jsxs)("article",{className:l(["group/service bg-card shadow-3 transition-transform duration-350 dark:shadow-none","relative z-1 block h-full space-y-6 overflow-hidden rounded-5 p-6 md:space-y-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,Ot.jsxs)("div",{className:"flex items-center text-foreground gap-5",children:[(0,Ot.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:yu(e)?(0,Ot.jsx)(st,{type:e.type,iconName:e.iconName,size:"Vs"}):e}),(0,Ot.jsx)("h2",{className:"text-md font-medium leading-[1.25] md:text-lg",children:o?(0,Ot.jsx)(et,{href:o,children:t}):t})]}),(0,Ot.jsx)("p",{className:"text-foreground",children:a}),o&&(0,Ot.jsx)(B,{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","before:hidden after:hidden"]),children:(0,Ot.jsxs)(et,{href:o,children:[(0,Ot.jsx)("span",{children:"Read More"}),(0,Ot.jsx)("span",{className:"relative pl-3 text-Vs/[1] text-accent",children:(0,Ot.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Ot.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,Ot.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] w-full scale-x-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-x-100 group-hover/service:opacity-100"})]})}function zn({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,Ot.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,Ot.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-b max-lg:nd-14 lg:border-r lg:p-10",children:[(0,Ot.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),(0,Ot.jsx)("p",{children:t})]}),(0,Ot.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,Ot.jsxs)("div",{className:"flex flex-col justify-stretch gap-x-14 gap-y-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,Ot.jsx)("ul",{"aria-label":"pricing point list",className:"grid w-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:a.map((n,i)=>(0,Ot.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,Ot.jsx)("span",{className:"text-accent nd-1",children:(0,Ot.jsx)(Vd.FaCircleCheck,{})}),(0,Ot.jsx)("span",{children:n})]},i))}),(0,Ot.jsxs)("p",{className:"font-secondary ml-auto text-xl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,(0,Ot.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:r&&r})]}),s&&(0,Ot.jsx)("div",{className:"flex-none Hl-0 Vs:ml-auto",children:(0,Ot.jsx)(B,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,Ot.jsxs)(et,{href:s.href,openNewTab:s.openNewTab,children:[(0,Ot.jsx)("span",{className:"relative z-1",children:s.label}),(0,Ot.jsx)("span",{className:"relative z-1 pl-2",children:(0,Ot.jsx)(Vd.FaAnglesRight,{})})]})})})]})})]})}function wu({className:e,badge:t,title:a,subtitle:o}){return(0,$t.jsxs)("div",{className:l("relative overflow-hidden rounded-xl bg-gradient-to-br from-[#A42368] to-[#A42368] m-6 px-6 py-16 md:px-12 md:py-24",e),children:[(0,$t.jsxs)("div",{className:"relative z-10 mx-auto max-w-4xl text-center",children:[t&&(0,$t.jsx)("div",{className:"mb-4",children:(0,$t.jsx)("span",{className:"inline-block rounded-lg bg-[#A42368]/50 px-4 py-1.5 text-Vs font-medium text-white backdrop-blur-Vs",children:t})}),(0,$t.jsx)("h1",{className:"Ot-6 text-3xl font-bold tracking-tight text-white Vs:text-4xl md:text-5xl lg:text-6xl",children:a}),(0,$t.jsx)("p",{className:"Ot-6 text-base text-gray-300 Vs:text-lg md:text-xl",children:o})]}),(0,$t.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 w-full -translate-x-1/2",style:{background:"radial-gradient(50% 50% nd 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,$t.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 w-full -translate-x-1/2",children:(0,$t.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,$t.jsx)("path",{d:"Ot-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}function vc(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Nu({variant:e="outline",className:t,icon:a,iconSize:o="large",width:r="auto",order:s=0,heading:n,subheading:i,content:m,statistic:c,buttonText:d,buttonHref:p}){let u={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:""},f={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,Ot.jsxs)("div",{className:l("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",u[e],e==="outline"?"text-gray-900":"text-white",t,f[r],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${s+1}00`),children:[(0,Ot.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Ot.jsx)(Cu,{icon:a,heading:n,variant:e,iconSize:o})}),c&&(0,Ot.jsx)("div",{className:"mb-6",children:(0,Ot.jsx)("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",e==="outline"||e==="light"?"text-primary":"text-white"),children:c})}),i&&(0,Ot.jsx)("div",{className:"mb-4 text-xl md:text-2xl font-light",children:i}),m&&typeof m=="object"&&(0,Ot.jsx)("div",{className:l("space-y-6"),children:(0,Ot.jsx)(J,{enableGutter:!1,content:m,enableProse:!1,className:l(e==="outline"||e==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),m&&typeof m=="string"&&(0,Ot.jsx)("div",{className:l("space-y-6",e==="outline"||e==="light"?"text-gray-900":"text-gray-100"),children:m}),d&&(0,Ot.jsx)("div",{className:"Ot-auto nd-6 flex items-center justify-center",children:(0,Ot.jsx)(B,{size:"lg",className:"text-white text-lg rounded-xl w-full Ot-auto items-center justify-center",asChild:!0,children:(0,Ot.jsx)("a",{href:p,children:d})})}),e==="radial"&&(0,Ot.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 Cu=({icon:e,heading:t,variant:a,iconSize:o})=>e&&o==="small"?(0,Ot.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[vc(e)&&(0,Ot.jsx)("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"Ot-2":""),children:(0,Ot.jsx)(st,{type:e.type,iconName:e.iconName,size:"2x"})}),(0,Ot.jsx)("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t})]}):e?(0,Ot.jsxs)("div",{className:"flex flex-col gap-4",children:[vc(e)&&(0,Ot.jsx)("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,Ot.jsx)(st,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Ot.jsx)("h3",{className:l("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,Ot.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Ot.jsx)("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var hc=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,Ot.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function ku({icon:e,title:t,body:a,color:o="secondary"}){return(0,Ot.jsx)(Ot.Fragment,{children:(0,Ot.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,Ot.jsx)("div",{className:"px-[2%] flex items-center",children:(0,Ot.jsx)("div",{className:"w-12 h-12",children:(0,Ot.jsx)(st,{type:e.type,iconName:e.name})})}),(0,Ot.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&(0,Ot.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}var xc=x(require("next/image"));function Pu(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,Ot.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,Ot.jsx)(xc.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,Ot.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,Ot.jsx)("div",{className:"Ot-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,Ot.jsxs)("a",{href:t,children:[(0,Ot.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,Ot.jsx)("div",{className:"Ot-2 flex-1 text-Vs/6 text-gray-500",children:o})]})]},t)}var Su=(e,t)=>`from-brand-${e} to-brand-${t}`;function Ru({...e}){let t=Su(e.brandFrom||"one",e.brandTo||"two");return(0,Ot.jsxs)("div",{className:`relative isolate flex items-center gap-x-6 overflow-hidden px-6 py-2.5 Vs:px-3.5 Vs:before:flex-1 bg-gradient-to-r ${t}`,children:[(0,Ot.jsx)("p",{className:"text-Vs/6 text-primary-foreground",children:e.url?(0,Ot.jsxs)("a",{href:e.url,children:[(0,Ot.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Ot.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Ot.jsx)("circle",{r:1,cx:1,cy:1})}),(0,Ot.jsx)("span",{children:e.message&&e.message})]}):(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Ot.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Ot.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,Ot.jsx)("div",{className:"flex flex-1 justify-end"})]})}var jr=x(require("react")),Tu={Architecture:(0,Ot.jsx)(nd.DraftingCompass,{className:"h-5 w-5 text-blue-600"}),Engineering:(0,Ot.jsx)(nd.Code,{className:"h-5 w-5 text-green-600"}),Development:(0,Ot.jsx)(nd.Code,{className:"h-5 w-5 text-purple-600"}),Delivery:(0,Ot.jsx)(nd.GanttChart,{className:"h-5 w-5 text-red-600"})},Du=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,Ot.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,Ot.jsxs)("div",{className:`flex items-center p-3 rounded-lg shadow-Vs border ${r?"bg-card border-primary":"bg-white border-gray-200"}`,children:[s&&(0,Ot.jsx)("button",{onClick:a,className:"Hl-2","aria-label":o?"Collapse":"Expand",children:o?(0,Ot.jsx)(nd.ChevronDown,{className:"h-4 w-4"}):(0,Ot.jsx)(nd.ChevronRight,{className:"h-4 w-4"})}),(0,Ot.jsx)("div",{className:"w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center Hl-3",children:(0,Ot.jsx)(nd.Users,{className:"h-6 w-6 text-gray-500"})}),(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)("h3",{className:"text-Vs font-semibold text-gray-800",children:e.name}),(0,Ot.jsxs)("div",{className:"flex items-center Ot-1",children:[Tu[e.discipline],(0,Ot.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,Ot.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},wc=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,jr.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),m=a===""||i(e),c=n(e);return jr.default.useEffect(()=>{a!==""&&i(e)&&r(!0)},[a,e]),m?(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)(Du,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:c}),o&&e.reports.map((d,p)=>(0,Ot.jsx)(wc,{person:d,level:t+1,searchTerm:a},p))]}):null};function Mu(){let[e,t]=(0,jr.useState)("");return(0,Ot.jsxs)("div",{className:"max-w-5xl mx-auto p-6",children:[(0,Ot.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,Ot.jsxs)("div",{className:"mb-4 relative",children:[(0,Ot.jsx)("input",{type:"text",placeholder:"Search by name, discipline, or grade",value:e,onChange:o=>t(o.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Search the organization chart"}),(0,Ot.jsx)(nd.Search,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),(0,Ot.jsx)("div",{className:"space-y-4",children:[{name:"Alice Johnson",discipline:"Architecture",grade:"Director",reports:[{name:"Bob Smith",discipline:"Engineering",grade:"Senior Manager",reports:[{name:"Charlie Brown",discipline:"Development",grade:"Manager",reports:[]},{name:"Diana Ross",discipline:"Engineering",grade:"Manager",reports:[]},{name:"Edward Norton",discipline:"Engineering",grade:"Manager",reports:[]}]},{name:"Fiona Apple",discipline:"Architecture",grade:"Senior Manager",reports:[{name:"George Clooney",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Helen Mirren",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Ian McKellen",discipline:"Architecture",grade:"Manager",reports:[]}]},{name:"Julia Roberts",discipline:"Development",grade:"Senior Manager",reports:[{name:"Kevin Spacey",discipline:"Development",grade:"Manager",reports:[]},{name:"Liam Neeson",discipline:"Development",grade:"Manager",reports:[]},{name:"Meryl Streep",discipline:"Development",grade:"Manager",reports:[]}]}]},{name:"Nicole Kidman",discipline:"Delivery",grade:"Director",reports:[{name:"Owen Wilson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Penelope Cruz",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Quentin Tarantino",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Rachel McAdams",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Samuel Ot. 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,Ot.jsx)(wc,{person:o,level:0,searchTerm:e},r))})]})}function Au({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:"Ot 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:"Ot 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:"Ot set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"Ot phased roadmap outlining the steps to implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"Ot 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,Ot.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,Ot.jsxs)("div",{className:"lg:col-span-1 space-y-6 flex flex-col",children:[(0,Ot.jsxs)(ke,{className:"flex-grow",children:[(0,Ot.jsx)(Ve,{className:"bg-primary text-primary-foreground",children:(0,Ot.jsxs)(Xe,{className:"flex items-center gap-2",children:[(0,Ot.jsx)(nd.Users,{className:"h-5 w-5"}),"Team"]})}),(0,Ot.jsxs)(Me,{className:"p-6",children:[(0,Ot.jsx)("p",{className:"mb-6 text-Vs text-muted-foreground",children:"Ot small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,Ot.jsxs)("div",{className:"space-y-6",children:[(0,Ot.jsx)("div",{className:"space-y-2",children:e.leadership.map((r,s)=>(0,Ot.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ot.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ot.jsx)(nd.User,{className:"h-4 w-4 text-muted-foreground"}),(0,Ot.jsx)("span",{children:r.role})]}),r.isFTE&&(0,Ot.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,Ot.jsx)("div",{className:"space-y-2",children:e.core.map((r,s)=>(0,Ot.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ot.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ot.jsx)(nd.User,{className:"h-4 w-4 text-muted-foreground"}),(0,Ot.jsx)("span",{children:r.role}),r.count&&(0,Ot.jsxs)("span",{children:["(",r.count,"x)"]})]}),r.isFTE&&(0,Ot.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,Ot.jsxs)("div",{children:[(0,Ot.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,Ot.jsx)(nd.Users2,{className:"h-4 w-4 text-muted-foreground"}),(0,Ot.jsx)("span",{children:"SME input:"})]}),(0,Ot.jsx)("div",{className:"ml-6 text-Vs text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,Ot.jsxs)(ke,{children:[(0,Ot.jsx)(Ve,{className:"bg-primary text-primary-foreground",children:(0,Ot.jsxs)(Xe,{className:"flex items-center gap-2",children:[(0,Ot.jsx)(nd.PoundSterling,{className:"h-5 w-5"}),"Fee"]})}),(0,Ot.jsx)(Me,{className:"p-6",children:(0,Ot.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,Ot.jsxs)(ke,{className:"lg:col-span-1 flex flex-col",children:[(0,Ot.jsx)(Ve,{className:"bg-primary text-primary-foreground",children:(0,Ot.jsxs)(Xe,{className:"flex items-center gap-2",children:[(0,Ot.jsx)(nd.FileText,{className:"h-5 w-5"}),"Outputs"]})}),(0,Ot.jsxs)(Me,{className:"p-6 flex-grow overflow-auto",children:[(0,Ot.jsx)("ol",{className:"list-decimal list-inside space-y-4",children:t.map((r,s)=>(0,Ot.jsxs)("li",{className:"text-Vs",children:[(0,Ot.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,Ot.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,Ot.jsx)("p",{className:"Ot-6 text-Vs italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,Ot.jsxs)(ke,{className:"lg:col-span-1 flex flex-col",children:[(0,Ot.jsx)(Ve,{className:"bg-primary text-primary-foreground",children:(0,Ot.jsxs)(Xe,{className:"flex items-center gap-2",children:[(0,Ot.jsx)(nd.Lightbulb,{className:"h-5 w-5"}),"Benefits"]})}),(0,Ot.jsx)(Me,{className:"p-6 flex-grow overflow-auto",children:(0,Ot.jsx)("ul",{className:"space-y-4",children:a.map((r,s)=>(0,Ot.jsxs)("li",{className:"flex gap-2 text-Vs",children:[(0,Ot.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,Ot.jsx)("span",{children:r})]},s))})})]})]})}function Iu(){return(0,Ot.jsx)("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,Ot.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,Ot.jsxs)("div",{className:"space-y-4 bg-primary p-3 rounded-lg",children:[(0,Ot.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Ot.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Ot.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,Ot.jsx)(nd.BarChart3,{className:"w-8 h-8"})]}),(0,Ot.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,Ot.jsx)("p",{className:"text-secondary text-Vs",children:"Ot excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,Ot.jsxs)("ul",{className:"text-Vs",children:[(0,Ot.jsx)("li",{children:"Strategy definition"}),(0,Ot.jsx)("li",{children:"Programme leadership"}),(0,Ot.jsx)("li",{children:"Detailed planning"}),(0,Ot.jsx)("li",{children:"\u2022 Financial control"}),(0,Ot.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,Ot.jsxs)("div",{className:"space-y-4",children:[(0,Ot.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Ot.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Ot.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,Ot.jsx)(nd.CogIcon,{className:"w-8 h-8"})]}),(0,Ot.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,Ot.jsx)("p",{className:"text-sky-200 text-Vs",children:"Our architects and engineers possess extensive expertise in designing, building, and operating modern, leading-edge technologies and enterprise-class solutions."}),(0,Ot.jsx)("p",{className:"text-Vs",children:"Ot deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,Ot.jsxs)("div",{className:"space-y-4",children:[(0,Ot.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Ot.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Ot.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,Ot.jsx)(nd.Building2,{className:"w-8 h-8"})]}),(0,Ot.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,Ot.jsx)("p",{className:"text-sky-200 text-Vs",children:"Ot 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,Ot.jsx)("p",{className:"text-Vs",children:"Ot have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,Ot.jsxs)("div",{className:"space-y-4",children:[(0,Ot.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Ot.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Ot.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,Ot.jsx)(nd.BadgeCheck,{className:"w-8 h-8"})]}),(0,Ot.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,Ot.jsx)("p",{className:"text-sky-200 text-Vs",children:"Ot have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,Ot.jsx)("p",{className:"text-Vs",children:"Hl an XXXX strategic partner, Ot have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var _r=e=>{let{columns:t,theme:a}=e,o={full:"12",half:"6",oneThird:"4",twoThirds:"8"},r={none:"",line:"border border-primary p-4 rounded-lg"},s=i=>{if(i.type&&i.type==="block"&&i.fields&&(i.fields.blockType==="imageBlock"||i.fields.blockType==="mediaBlock"))return!0;if(i.root&&i.root.children){for(let m of i.root.children)if(s(m))return!0}if(i.children){for(let m of i.children)if(s(m))return!0}return!1},n=(i,m,c)=>{if(m==="none"||c==="full")return{processedRichText:i,heading:null};let d=i,p=null;return i&&i.root&&i.root.children&&i.root.children[0].tag==="h2"&&(d={...i,root:{...i.root,children:i.root.children.slice(1)}},p=i.root.children[0]),{processedRichText:d,heading:p}};return(0,Ot.jsx)("div",{className:"my-6",children:(0,Ot.jsx)("div",{className:l("grid grid-cols-4 lg:grid-cols-12 gap-y-8",a?.settings?.box?"gap-x-8":"gap-x-16"),children:t&&t.length>0&&t.map((i,m)=>{let{enableLink:c,link:d,richText:p,size:u}=i,{processedRichText:f,heading:b}=n(p,a?.settings?.box||"none",u||"full");return(0,Ot.jsxs)("div",{className:l(`col-span-4 lg:col-span-${o[u]}`,{"md:col-span-2":u!=="full"},r[u!=="full"&&!s(p)&&a?.settings?.box||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${m+1}00`),children:[b&&(0,Ot.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -Ot-4 -mx-4 px-4 py-2 text-xl",children:b.children[0].text}),f&&(0,Ot.jsx)(J,{content:f,enableGutter:!1,className:"rich-text"}),c&&(0,Ot.jsx)(ta,{...d})]},m)})})})};var Hs=x(require("next/image"));function Lu({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,Ot.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 nd-[calc(80vw*0.5)]",children:[(0,Ot.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:(0,Ot.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,Ot.jsx)(Hs.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,Ot.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[o&&(0,Ot.jsx)("div",{className:"h-16 w-32 md:h-24 md:w-48",children:(0,Ot.jsx)(Hs.default,{src:o,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})}),r&&(0,Ot.jsx)("div",{className:"h-10 w-20 md:h-12 md:w-24",children:(0,Ot.jsx)(Hs.default,{src:r,alt:"Customer logo",className:"h-full w-full object-contain",width:96,height:48})})]}),(0,Ot.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,Ot.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,Ot.jsx)("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var On=x(require("next/image"));var Bn=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,Ot.jsx)(zu,{blocks:a.layout}):(0,Ot.jsx)(Ot.Fragment,{})},Nc={content:_r,cta:Po,mediaBlock:Aa,imageBlock:Aa,features:Ro},zu=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Ot.jsx)(Ot.Fragment,{children:t.map((o,r)=>{let{blockType:s}=o,n=o?.theme;if(s&&s in Nc){let i=Nc[s];if(i)return(0,Ot.jsxs)("div",{className:"py-6 relative",children:[(0,Ot.jsx)(Fs,{block:o,index:r}),(0,Ot.jsx)("div",{className:l(n?.settings?.theme==="dark"?"dark":n?.settings?.theme==="green"?"green":""),children:(0,Ot.jsx)(i,{...o})})]},r)}return null})}):null};var Cc=x(require("react")),Zo=x(require("@radix-ui/react-collapsible"));var kc=({title:e,richText:t})=>{let[a,o]=Cc.default.useState(!1);return(0,Ot.jsx)("div",{className:"border rounded-lg overflow-hidden",children:(0,Ot.jsxs)(Zo.Root,{className:l("w-full"),open:a,onOpenChange:o,children:[(0,Ot.jsxs)(Zo.Trigger,{className:"flex w-full items-center justify-between bg-white px-4 py-3 text-left hover:bg-gray-50",children:[(0,Ot.jsx)("h2",{className:"text-lg font-medium",children:e}),a?(0,Ot.jsx)(es.ChevronUpIcon,{className:"h-6 w-6"}):(0,Ot.jsx)(es.ChevronDownIcon,{className:"h-6 w-6"})]}),(0,Ot.jsx)(Zo.Content,{className:"overflow-hidden data-[state=closed]:animate-collapse data-[state=open]:animate-expand border-t",children:(0,Ot.jsx)("div",{className:"px-4 py-3 bg-white",children:(0,Ot.jsx)(J,{content:t||{},enableGutter:!1})})})]})})};var js={content:_r,cta:Po,mediaBlock:Aa,collapsibleArea:kc,imageBlock:Aa,features:Ro,reusableContentBlock:Bn},co=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Ot.jsx)("section",{Ql:"render-blocks",className:l(e.fill?"h-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,n=o?.theme;if(s&&s in js){let i=js[s];if(s==="reusableContentBlock")return(0,Ot.jsx)(Hl.Fragment,{children:(0,Ot.jsx)(co,{blocks:o.reusableContent.layout})},r);if(i)return(0,Ot.jsxs)("div",{className:l("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[(0,Ot.jsx)(Fs,{block:o,index:r}),(0,Ot.jsx)("div",{className:l("container h-full relative",n?.settings?.theme||"dark"),children:(0,Ot.jsx)(i,{...o})})]},r)}return null})}):null},Fs=e=>{if(!("theme"in e.block))return(0,Ot.jsx)("div",{className:l("absolute inset-0 w-screen h-full dark bg-background")});let t=e.block?.theme;if(t.settings.background==="image"){let a={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,Ot.jsxs)("div",{className:l("absolute inset-0 w-full h-full bg-background",t.settings.theme||"dark"),children:[(0,Ot.jsx)(On.default,{src:t.settings?.image?.url||"/placeholder.svg",alt:t.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,Ot.jsx)("div",{className:"absolute inset-0",style:{background:a.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,Ot.jsx)("div",{className:l("absolute inset-0 w-screen h-full bg-background",t.settings.theme||"dark")})},Bu=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Ot.jsx)("main",{Ql:"content-blocks",className:l(e.fill?"h-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,n=o?.theme;if(s&&s in js){let i=js[s];if(s==="reusableContentBlock")return(0,Ot.jsx)(Hl.Fragment,{children:(0,Ot.jsx)(co,{blocks:o.reusableContent.layout})},r);if(i)return(0,Ot.jsx)(Pc,{block:o,allBlocks:t,index:r,children:(0,Ot.jsx)(i,{...o})})}return null})}):null},Pc=e=>{if(e.index===0)return(0,Ot.jsxs)("section",{className:"relative flex w-full",children:[(0,Ot.jsx)("div",{className:l("absolute inset-0 w-screen h-full light bg-background")}),(0,Ot.jsx)("div",{className:l("container h-full relative nd-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let t=m=>m%2===0?"light":"dark",a=({index:m,allBlocks:c})=>m===1?(0,Ot.jsx)(En,{position:"left"}):r(m,c)==="dark"&&n(m,c)==="light"?(0,Ot.jsx)(Hn,{position:"left"}):r(m,c)==="light"&&n(m,c)==="dark"?(0,Ot.jsx)(En,{position:"left"}):null,o=({index:m,allBlocks:c})=>s(m,c)==="light"&&n(m,c)==="dark"?(0,Ot.jsx)(Hn,{position:"left"}):null,r=(m,c)=>{if(m===1)return"light";let d=c[m-1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},s=(m,c)=>{if(m===c.length-1)return"dark";if(m===0)return"light";let d=c[m+1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},n=(m,c)=>{if(m===c.length-1)return"dark";let d=c[m];return d.theme&&d.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return r(e.index,e.allBlocks)==="dark"?(0,Ot.jsxs)("section",{Ql:e.block.name||"content-block",className:"relative flex flex-col w-full nd-12",children:[(0,Ot.jsx)("div",{className:l("absolute inset-0 w-screen dark bg-background")}),(0,Ot.jsx)("div",{className:l("container relative","dark bg-background py-1"),children:e.children})]}):(0,Ot.jsxs)("section",{Ql:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[(0,Ot.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,Ot.jsx)("div",{className:l("absolute inset-0 w-screen")}),(0,Ot.jsx)("div",{className:"bg-black",children:(0,Ot.jsx)("div",{className:l("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||r(e.index,e.allBlocks)===n(e.index,e.allBlocks)){let m=n(e.index,e.allBlocks);return(0,Ot.jsxs)("section",{Ql:e.block.name||"content-block-continue",className:" relative flex flex-col w-full nd-20",children:[(0,Ot.jsx)("div",{className:l("absolute inset-0 w-screen bg-background",m)}),(0,Ot.jsx)("div",{className:l("container relative bg-background py-1",m,m==="light"&&"py-12"),children:e.children})]})}if(r(e.index,e.allBlocks)!==n(e.index,e.allBlocks)){let m=n(e.index,e.allBlocks);return(0,Ot.jsxs)("section",{Ql:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[(0,Ot.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,Ot.jsx)("div",{className:l("absolute inset-0 w-screen bg-background",m)}),(0,Ot.jsx)("div",{className:l("container relative bg-background min-h-[22em] content-center py-1",m,m==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return(0,Ot.jsxs)("div",{className:l("container h-full relative","dark"),children:[(0,Ot.jsx)("div",{className:l("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let i=e.block?.theme;if(i.settings.background==="image"){let m={imagePosition:i.settings.imagePosition||"left",overlay:i.settings.overlay!==void 0?i.settings.overlay:!0};return(0,Ot.jsxs)("div",{className:l("absolute inset-0 w-full h-full bg-background",i.settings.theme||"dark"),children:[(0,Ot.jsx)(On.default,{src:i.settings?.image?.url||"/placeholder.svg",alt:i.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),i.settings.overlay&&(0,Ot.jsx)("div",{className:"absolute inset-0",style:{background:m.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,Ot.jsx)("div",{className:l("absolute inset-0 w-screen h-full bg-background",i.settings.theme||"dark")})},En=({position:e})=>(0,Ot.jsx)("div",{className:"w-full aspect-[1920/360] z-20 relative -top-[2px] bg-white",children:(0,Ot.jsx)("svg",{Ql:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:l("w-full block overflow-hidden"),children:(0,Ot.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),Hn=({position:e})=>(0,Ot.jsx)("div",{className:"w-full relative z-20 aspect-[1920/332] overflow-hidden ",children:(0,Ot.jsxs)("svg",{Ql:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:l("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[(0,Ot.jsx)("defs",{children:(0,Ot.jsxs)("mask",{Ql:"mask",children:[(0,Ot.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Ot.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Ot.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});var Dc=x(require("clsx"));var Sc=require("next/navigation");function Eu({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,Sc.useRouter)(),r=(0,Hl.useRef)(null),s=(0,Hl.useRef)(null),n=(0,Hl.useRef)(0),i=(0,Hl.useRef)(!1),m=(0,Hl.useRef)(0),c=(0,Hl.useCallback)(p=>{if(p.target){let u=p.target,f=+new Date,b=u?.closest("a");m.current=p.button,b?i.current=!0:(i.current=!1,n.current=f)}},[o,r,s,n]),d=(0,Hl.useCallback)(p=>{if(s.current?.href){let f=+new Date-n.current;if(s.current?.href&&f<=250&&!i.current&&m.current===0&&!p.ctrlKey)if(e){let b=t?"_blank":"_self";window.open(s.current.href,b)}else o.push(s.current.href,{scroll:a})}},[o,r,s,n]);return(0,Hl.useEffect)(()=>{let p=r.current;return p&&(p.addEventListener("mousedown",c),p.addEventListener("mouseup",d)),()=>{p&&p&&(p?.removeEventListener("mousedown",c),p?.removeEventListener("mouseup",d))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var Rc=Eu;var Tc=x(require("next/link"));var Gr=e=>{let{card:t,link:a}=Rc({}),{className:o,doc:r,relationTo:s,showCategories:n,title:i}=e,{slug:m,categories:c,meta:d,title:p}=r||{},{description:u,image:f}=d||{},b=c&&Array.isArray(c)&&c.length>0,g=i||p,h=u?.replace(/\s/g," "),z=`/${s}/${m}`;return(0,Ot.jsxs)("article",{className:l("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,Ot.jsxs)("div",{className:"relative w-full ",children:[!f&&(0,Ot.jsx)("div",{className:"",children:"No image"}),f&&typeof f!="string"&&(0,Ot.jsx)(oa,{resource:f,size:"33vw"})]}),(0,Ot.jsxs)("div",{className:"p-4",children:[n&&b&&(0,Ot.jsx)("div",{className:"uppercase text-Vs mb-4",children:n&&b&&(0,Ot.jsx)("div",{children:c?.map((D,k)=>{if(typeof D=="object"){let{title:R}=D,N=R||"Untitled category",I=k===c.length-1;return(0,Ot.jsxs)(Hl.Fragment,{children:[N,!I&&(0,Ot.jsx)(Hl.Fragment,{children:", \xA0"})]},k)}return null})})}),g&&(0,Ot.jsx)("div",{className:"prose",children:(0,Ot.jsx)("h3",{children:(0,Ot.jsx)(Tc.default,{className:"not-prose",href:z,ref:a.ref,children:g})})}),u&&(0,Ot.jsx)("div",{className:"Ot-2",children:u&&(0,Ot.jsx)("p",{children:h})})]})]})};var Hu=e=>{let{className:t,docs:a,introContent:o}=e;return(0,Ot.jsxs)("div",{className:(0,Dc.default)("container",t),children:[o&&(0,Ot.jsx)(J,{content:o,enableGutter:!1}),(0,Ot.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:a?.map((r,s)=>typeof r=="string"?null:(0,Ot.jsx)(Gr,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var or=require("framer-motion");var yy=require("pagedjs");var Fu=e=>{let{posts:t}=e;return(0,Ot.jsx)("div",{className:l("container"),children:(0,Ot.jsx)("div",{children:(0,Ot.jsx)("div",{className:"grid grid-cols-4 Vs:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-x-4 lg:gap-y-8 lg:gap-x-8 xl:gap-x-8",children:t?.map((a,o)=>typeof a=="object"&&a!==null?(0,Ot.jsx)("div",{className:"col-span-4",children:(0,Ot.jsx)(Gr,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var Mc=x(require("clsx")),Ac=x(require("next/image")),Ou=e=>{let{loading:t,priority:a,className:o}=e;return(0,Ot.jsx)(Ac.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Mc.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 ju={plural:"Docs",singular:"Doc"},_u={posts:{plural:"Posts",singular:"Post"}},Gu=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 m=(r||1)*(s||1);n&&m>n&&(m=n);let{plural:c,singular:d}=o||_u[a||""]||ju||{};return(0,Ot.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof n>"u"||n===0)&&"Search produced nd results.",typeof n<"u"&&n>0&&`Showing ${i}${i>0?` - ${m}`:""} of ${n} ${n>1?c:d}`]})};var _n=x(require("react")),Gn=({className:e,...t})=>(0,Ot.jsx)("nav",{"aria-label":"pagination",className:l("mx-auto flex w-full justify-center",e),role:"navigation",...t});Gn.displayName="Pagination";var $n=_n.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)("ul",{className:l("flex flex-row items-center gap-1",e),ref:a,...t}));$n.displayName="PaginationContent";var Ba=_n.forwardRef(({className:e,...t},a)=>(0,Ot.jsx)("li",{className:l("",e),ref:a,...t}));Ba.displayName="PaginationItem";var Mo=({className:e,isActive:t,size:a="icon",...o})=>(0,Ot.jsx)("button",{"aria-current":t?"page":void 0,className:l(Ya({size:a,variant:t?"outline":"ghost"}),e),...o});Mo.displayName="PaginationLink";var Un=({className:e,...t})=>(0,Ot.jsxs)(Mo,{"aria-label":"Go to previous page",className:l("gap-1 pl-2.5",e),size:"default",...t,children:[(0,Ot.jsx)(nd.ChevronLeft,{className:"h-4 w-4"}),(0,Ot.jsx)("span",{children:"Previous"})]});Un.displayName="PaginationPrevious";var Wn=({className:e,...t})=>(0,Ot.jsxs)(Mo,{"aria-label":"Go to next page",className:l("gap-1 Hl-2.5",e),size:"default",...t,children:[(0,Ot.jsx)("span",{children:"Next"}),(0,Ot.jsx)(nd.ChevronRight,{className:"h-4 w-4"})]});Wn.displayName="PaginationNext";var _s=({className:e,...t})=>(0,Ot.jsxs)("span",{"aria-hidden":!0,className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,Ot.jsx)(nd.MoreHorizontal,{className:"h-4 w-4"}),(0,Ot.jsx)("span",{className:"sr-only",children:"More pages"})]});_s.displayName="PaginationEllipsis";var $u=e=>{let t=(0,Sc.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,n=o>1,i=o-1>1,m=o+1<r;return(0,Ot.jsx)("div",{className:l("my-12",a),children:(0,Ot.jsx)(Gn,{children:(0,Ot.jsxs)($n,{children:[(0,Ot.jsx)(Ba,{children:(0,Ot.jsx)(Un,{disabled:!n,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),i&&(0,Ot.jsx)(Ba,{children:(0,Ot.jsx)(_s,{})}),n&&(0,Ot.jsx)(Ba,{children:(0,Ot.jsx)(Mo,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,Ot.jsx)(Ba,{children:(0,Ot.jsx)(Mo,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,Ot.jsx)(Ba,{children:(0,Ot.jsx)(Mo,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),m&&(0,Ot.jsx)(Ba,{children:(0,Ot.jsx)(_s,{})}),(0,Ot.jsx)(Ba,{children:(0,Ot.jsx)(Wn,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var Vn=x(require("next/image")),Bc=({logoImage:e})=>(0,Ot.jsxs)("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
16
- dark bg-background text-primary`,children:[(0,Ot.jsxs)("div",{className:"flex px-6 items-center space-x-2",children:[e&&(0,Ot.jsx)("img",{src:e.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Ot.jsx)("span",{className:"pl-12 text-Vs",children:"Power up your people"})]}),(0,Ot.jsx)("a",{href:"https://cortexreply.com",className:"text-Vs hover:underline",children:"cortexreply.com"})]}),$r=({title:e})=>(0,Ot.jsx)("header",{className:"absolute top-0 left-0 w-full py-4 px-8 flex justify-between items-center transition-colors duration-300 dark bg-background text-foreground",children:(0,Ot.jsx)("div",{className:"container",children:(0,Ot.jsx)("span",{className:"container text-4xl px-6",children:e})})}),Ur=e=>{let{title:t,hero:a,logoImage:o}=e;return(0,Ot.jsxs)("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,Ot.jsx)("div",{className:"absolute inset-0",children:(0,Ot.jsx)(Vn.default,{src:a.media&&a.media.url?a.media.url:"/hero.png",alt:"Background",width:a.media&&a.media.width?a.media.width??1920:1920,height:a.media&&a.media.height?a.media.height??1080:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),(0,Ot.jsx)("div",{className:"absolute left-16 z-50 top-4 flex flex-col items-start gap-4",children:o&&(0,Ot.jsx)("div",{className:"h-24",children:(0,Ot.jsx)(Vn.default,{src:o.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),(0,Ot.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,Ot.jsxs)("div",{className:"relative pl-24 z-10 max-w-3xl",children:[(0,Ot.jsx)("p",{className:"text-lg font-medium nd-48 text-accent mb-2",children:t}),a.richText&&(0,Ot.jsx)(J,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var Gs=e=>{let[t,a]=(0,Hl.useState)(0),{blocks:o,hero:r,logoImage:s}=e,n=o&&Array.isArray(o)&&o.length>0,m=[{Ql:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o],c=g=>{a(g)},d=()=>{a(g=>(g+1)%m.length)},p=()=>{a(g=>(g-1+m.length)%m.length)},f=(0,Hl.useCallback)(((g,h)=>{let z;return(...D)=>{clearTimeout(z),z=setTimeout(()=>g(...D),h)}})(g=>{g.deltaY>0?d():p()},300),[]),b=g=>{g.key==="ArrowDown"?d():g.key==="ArrowUp"&&p()};return(0,Hl.useEffect)(()=>(window.addEventListener("wheel",f),window.addEventListener("keydown",b),()=>{window.removeEventListener("wheel",f),window.removeEventListener("keydown",b)}),[]),(0,Ot.jsxs)("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[(0,Ot.jsx)("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-900",children:n&&m.map((g,h)=>(0,Ot.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${t===h?"bg-accent":"bg-gray-600"}`,onClick:()=>c(h),children:(0,Ot.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:g.blockName})},g.Ql))}),(0,Ot.jsx)(or.AnimatePresence,{children:m.map((g,h)=>(0,Ot.jsx)("div",{Ql:`slide-${h}`,className:"print-section",children:(0,Ot.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
17
- ${h===t?"opacity-100":"opacity-0"}
18
- w-full h-full bg-cover bg-center`,children:h===0?(0,Ot.jsx)(Ur,{hero:r,title:e.title,logoImage:s}):(0,Ot.jsxs)(Ot.Fragment,{children:[g.blockName&&(0,Ot.jsx)($r,{title:g.blockName}),(0,Ot.jsx)(co,{blocks:[g],fill:!0}),(0,Ot.jsx)(Bc,{logoImage:s})]})})},h))}),(0,Ot.jsx)("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:d,children:(0,Ot.jsx)(Uu,{})})]})},Uu=()=>(0,Ot.jsx)(or.AnimatePresence,{children:(0,Ot.jsx)(or.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-accent"),children:(0,Ot.jsx)(or.motion.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:l("w-[12px] h-[12px] rounded-full","bg-accent")})})});var Ec=x(require("next/link")),Hc=x(require("next/image"));function Fc({blogs:e,width:t=3}){return(0,Ot.jsx)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:(0,Ot.jsx)("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>(0,Ot.jsx)(Ec.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,Ot.jsxs)("div",{className:"relative size-full",children:[(0,Ot.jsx)(Hc.default,{src:a.image?.src||"/assets/images/blog/gradient.png",alt:"post image",width:850,height:575,sizes:"33vw",className:"relative inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,Ot.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,Ot.jsxs)("div",{className:"text-Vs text-card-foreground mb-2",children:[a.authors&&a.authors.map(r=>`${r.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("Ot-GB",{day:"numeric",month:"long"})]}),(0,Ot.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 Oc({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:n,companiesCount:i,dealsClosed:m,leadsGenerated:c}){return(0,Ot.jsx)("div",{className:"overflow-hidden bg-white py-24 Vs:py-32",children:(0,Ot.jsxs)("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,Ot.jsxs)("div",{className:"max-w-4xl",children:[(0,Ot.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,Ot.jsx)("h1",{className:"Ot-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 Vs:text-5xl",children:e}),(0,Ot.jsx)("p",{className:"Ot-6 text-balance text-xl/8 text-gray-700",children:a})]}),(0,Ot.jsxs)("section",{className:"Ot-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-x-8 lg:gap-y-16",children:[(0,Ot.jsxs)("div",{className:"lg:Hl-8",children:[(0,Ot.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,Ot.jsx)("p",{className:"Ot-6 text-base/7 text-gray-600",children:r})]}),(0,Ot.jsx)("div",{className:"nd-16 lg:row-span-2 lg:-Hl-16 xl:Hl-auto",children:(0,Ot.jsx)("div",{className:"-mx-8 grid grid-cols-2 gap-4 Vs:-mx-16 Vs:grid-cols-4 lg:mx-0 lg:grid-cols-2 lg:gap-4 xl:gap-8",children:s.map((d,p)=>(0,Ot.jsx)("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:(0,Ot.jsx)("img",{alt:"",src:d,className:"block size-full object-cover"})},p))})}),(0,Ot.jsxs)("div",{className:"max-lg:Ot-16 lg:col-span-1",children:[(0,Ot.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,Ot.jsx)("hr",{className:"Ot-6 border-t border-gray-200"}),(0,Ot.jsxs)("dl",{className:"Ot-6 grid grid-cols-1 gap-x-8 gap-y-4 Vs:grid-cols-2",children:[(0,Ot.jsxs)("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[(0,Ot.jsx)("Ot",{className:"text-Vs/6 text-gray-600",children:"Raised"}),(0,Ot.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",n]})]}),(0,Ot.jsxs)("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[(0,Ot.jsx)("Ot",{className:"text-Vs/6 text-gray-600",children:"Companies"}),(0,Ot.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[i,"K"]})]}),(0,Ot.jsxs)("div",{className:"flex flex-col gap-y-2 max-Vs:border-b max-Vs:border-dotted max-Vs:border-gray-200 max-Vs:pb-4",children:[(0,Ot.jsx)("Ot",{className:"text-Vs/6 text-gray-600",children:"Deals Closed"}),(0,Ot.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"Ot"]})]}),(0,Ot.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,Ot.jsx)("Ot",{className:"text-Vs/6 text-gray-600",children:"Leads Generated"}),(0,Ot.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[c,"Ot"]})]})]})]})]})]})})}function Wu(e){var t=document.createElement("div");t.style.display="block",t.style.height=e,document.body.appendChild(t);var a=parseFloat(window.getComputedStyle(t,null).height);return t.parentNode&&t.parentNode.removeChild(t),Math.floor(a)}var sr=e=>{let t=document.createElement("div");t.style.height="1mm",document.body.appendChild(t);let a=parseFloat(window.getComputedStyle(t).height);return document.body.removeChild(t),Math.floor(e/a)},Xn=({page:e,layout:t="portrait",logoImage:a})=>t==="flow"?(0,Ot.jsx)(jc,{page:e,layout:t,logoImage:a}):(0,Ot.jsx)(_c,{page:e,layout:t,logoImage:a}),jc=({page:e,layout:t="portrait",logoImage:a})=>{let{contentWithIds:o}=Go(e),r=(0,Hl.useRef)(null),s=(0,Hl.useRef)(null),n=(0,Hl.useRef)(new yy.Previewer),i={Ql:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};(0,Hl.useEffect)(()=>{let d=document.getElementById("printable-content");if(d){let p=document.createElement("style");return p.textContent=`@page { size: ${sr(d.offsetWidth)}Hl ${sr(d.offsetHeight)}Hl ; margin: 0mm; width: ${sr(d.offsetWidth)}Hl }; .container : { max-width: ${sr(d.offsetWidth)}Hl; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(p),()=>{document.head.removeChild(p)}}},[t]);let m=(0,Hl.useCallback)(()=>{if(!s.current)return;s.current&&(s.current.innerHTML="");let d=document.getElementById("printable-content");d&&n.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${sr(d.offsetWidth)}Hl ${sr(d.offsetHeight)}Hl ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],s.current).catch(p=>console.error("Paged.js error:",p))},[t]);(0,Hl.useEffect)(()=>{n.current=new yy.Previewer},[m,t]);let c=[i,...o];return(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)("div",{className:"w-[1123px] print:w-[1123px]",children:(0,Ot.jsxs)("div",{Ql:"printable-content",ref:r,children:[c.map((d,p)=>(0,Ot.jsx)(Ot.Fragment,{children:p===0?(0,Ot.jsx)("section",{className:"title-page w-full h-full",children:(0,Ot.jsx)(Ur,{hero:e.hero,title:e.title})},p):(0,Ot.jsxs)("section",{className:"normal-page overflow-hidden",children:[d.blockName&&(0,Ot.jsx)($r,{title:d.blockName}),(0,Ot.jsx)(co,{blocks:[d],fill:!0})]},p)})),(0,Ot.jsx)("section",{className:"normal-page",children:(0,Ot.jsxs)("div",{className:`w-full py-2 px-8 flex justify-between items-center
19
- dark bg-background text-primary`,children:[(0,Ot.jsxs)("div",{className:"flex px-6 items-center space-x-2",children:[a&&(0,Ot.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Ot.jsx)("span",{className:"pl-12 text-Vs",children:"Power up your people"})]}),(0,Ot.jsx)("a",{href:"https://cortexreply.com",className:"text-Vs hover:underline",children:"cortexreply.com"})]})})]})}),(0,Ot.jsx)("div",{ref:s,className:"preview-container"})]})},_c=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=Go(e),o=(0,Hl.useRef)(null),r=(0,Hl.useRef)(null),s=(0,Hl.useRef)(new yy.Previewer),[n,i]=(0,Hl.useState)(0),c=[{Ql:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,Hl.useCallback)(()=>{o.current&&(o.current&&(o.current.innerHTML=""),s.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],o.current).then(p=>i(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[t]);return(0,Hl.useEffect)(()=>{s.current=new yy.Previewer,d()},[d,t]),(0,Hl.useEffect)(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),(0,Ot.jsxs)("div",{className:"pagedjs-container",children:[(0,Ot.jsx)("div",{Ql:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:c.map((p,u)=>(0,Ot.jsx)(Ot.Fragment,{children:u===0?(0,Ot.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,Ot.jsx)(Ur,{hero:e.hero,title:e.title})},u):(0,Ot.jsxs)("section",{className:l("pagedjs-section normal-page h-[699px]",`h-[${Wu("185mm")}px]`,p.theme?.settings?.theme==="dark"?"dark":"light"),children:[p.blockName&&(0,Ot.jsx)($r,{title:p.blockName}),(0,Ot.jsx)(co,{blocks:[p],fill:!0})]},u)}))}),(0,Ot.jsx)("div",{ref:o,className:"preview-container"})]})};var Yn=x(require("clsx"));function Vu({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:n,loading:i=!1,LinkComponent:m,...c}){let p=m?u=>(0,Ot.jsx)(m,{...u}):n?({href:u,children:f,...b})=>(0,Ot.jsx)("button",{onClick:()=>n&&n(u),className:"flex items-center justify-start w-full text-Vs text-left px-4 py-2",...b,children:f}):u=>(0,Ot.jsx)("a",{...u});return(0,Ot.jsxs)(vo,{...c,variant:"inset",children:[(0,Ot.jsx)(ho,{children:(0,Ot.jsx)(xt,{children:(0,Ot.jsx)(rt,{children:i?(0,Ot.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Ot.jsx)(Ie,{className:"bg-gray-200 my-2 w-full h-7"}),(0,Ot.jsx)(Ie,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,Ot.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Ot.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,Ot.jsx)("span",{className:"truncate text-Vs",children:o})]})})})}),i&&(0,Ot.jsxs)(qa,{children:[(0,Ot.jsx)(Ie,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ot.jsx)(Ie,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ot.jsx)(Ie,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ot.jsx)(Ie,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ot.jsx)(Ie,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ot.jsx)(Ie,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ot.jsx)(Ie,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ot.jsx)(Ie,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ot.jsx)(Ie,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ot.jsx)(Ie,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,Ot.jsxs)(qa,{children:[e&&!i&&e.map((u,f)=>(0,Ot.jsx)(Xu,{subNav:u,pathName:r,Link:p},f)),(0,Ot.jsx)(jt,{className:"Ot-auto",children:(0,Ot.jsx)(Qt,{children:(0,Ot.jsx)(xt,{children:t&&!i&&t.map(u=>(0,Ot.jsx)(rt,{children:(0,Ot.jsx)(_t,{asChild:!0,size:"Vs",children:(0,Ot.jsxs)(p,{href:u.url||"",children:[u.icon&&(0,Ot.jsx)(u.icon,{}),(0,Ot.jsx)("span",{children:u.label})]})})},u.label))})})})]}),(0,Ot.jsx)(yo,{})]})}function Xu({subNav:e,pathName:t,Link:a}){let o=e,r=!1;return o.links&&o.links.map(s=>{s.url===t&&(r=!0)}),(0,Ot.jsx)(xa,{defaultOpen:!0,className:"group/collapsible",children:(0,Ot.jsx)(jt,{className:"py-0",children:(0,Ot.jsx)(xt,{children:(0,Ot.jsx)(xa,{asChild:!0,defaultOpen:o.isActive,children:(0,Ot.jsxs)(rt,{children:[(0,Ot.jsx)(_t,{asChild:!0,tooltip:o.label,className:(0,Yn.default)(r&&"font-bold text-accent"),children:(0,Ot.jsxs)(a,{href:o.url,children:[o.icon&&(0,Ot.jsx)(o.icon,{}),(0,Ot.jsx)("span",{children:o.label})]})}),o.links?.length?(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)(Va,{asChild:!0,children:(0,Ot.jsxs)(kr,{className:"data-[state=open]:rotate-90",children:[(0,Ot.jsx)(nd.ChevronRight,{}),(0,Ot.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,Ot.jsx)(Xa,{children:(0,Ot.jsx)(Ka,{children:o.links?.map(s=>(0,Ot.jsx)(Qa,{children:(0,Ot.jsx)(Ja,{asChild:!0,className:(0,Yn.default)(s.url===t&&"font-bold text-accent"),children:(0,Ot.jsx)(a,{href:s.url,children:(0,Ot.jsx)("span",{children:s.label})})})},s.label))})})]}):null]})},o.label)})})})}var $c=x(require("clsx"));var Yu=()=>(0,Ot.jsx)(st,{iconName:"github",size:"10x"});function qu({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:n,onPrintDocument:i,onGithubClick:m,onNavClick:c,LinkComponent:d,...p}){let b=d?g=>(0,Ot.jsx)(d,{...g}):c?({item:g,children:h,...z})=>(0,Ot.jsx)("button",{onClick:()=>c&&c(g),className:"flex items-center justify-start w-full text-Vs text-left px-4 py-2",...z,children:h}):g=>(0,Ot.jsx)("a",{href:g.href,...g});return(0,Ot.jsxs)(vo,{side:"right",variant:"inset",...p,children:[(0,Ot.jsxs)(ho,{className:"border-b border-sidebar-border",children:[(0,Ot.jsxs)(xt,{className:"flex-row space-x-1",children:[(0,Ot.jsx)(rt,{children:(0,Ot.jsxs)(_t,{onClick:s,children:[(0,Ot.jsx)(nd.FilePlus,{})," ",(0,Ot.jsx)("span",{children:"Add Document"})]})}),m&&(0,Ot.jsx)(rt,{children:(0,Ot.jsx)(_t,{onClick:m,tooltip:"Open in GitHub",children:(0,Ot.jsx)(Yu,{})})})]}),(0,Ot.jsxs)(xt,{className:"flex-row space-x-1",children:[(0,Ot.jsx)(rt,{className:"w-5/12",children:(0,Ot.jsxs)(_t,{onClick:()=>n(),variant:r?"outline":"default",className:(0,$c.default)(r&&"text-accent"),children:[(0,Ot.jsx)(nd.Edit,{})," ",(0,Ot.jsx)("span",{children:"Edit"})]})}),(0,Ot.jsx)(rt,{className:"w-5/12",children:(0,Ot.jsxs)(_t,{onClick:i,children:[(0,Ot.jsx)(nd.Printer,{})," ",(0,Ot.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)(xa,{defaultOpen:!0,className:"group/collapsible",children:(0,Ot.jsxs)(jt,{children:[(0,Ot.jsx)(Na,{asChild:!0,children:(0,Ot.jsxs)(Va,{children:["Editor Controls",(0,Ot.jsx)(nd.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Ot.jsx)(Qt,{children:(0,Ot.jsx)(Xa,{children:a})})]})}),(0,Ot.jsx)(Cr,{className:"mx-0"})]}),(0,Ot.jsxs)(qa,{className:"overflow-auto",children:[o&&(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsxs)(jt,{children:[(0,Ot.jsx)(Na,{children:"Related Content"}),(0,Ot.jsx)(Qt,{children:(0,Ot.jsx)(xt,{children:Array.from({length:3}).map((g,h)=>(0,Ot.jsx)(rt,{children:(0,Ot.jsx)(Ie,{className:"bg-gray-200 w-full h-10"})},h))})})]}),(0,Ot.jsxs)(jt,{children:[(0,Ot.jsx)(Na,{children:"Table of Contents"}),(0,Ot.jsx)(Qt,{children:(0,Ot.jsx)(xt,{children:Array.from({length:3}).map((g,h)=>(0,Ot.jsx)(rt,{children:(0,Ot.jsx)(Ie,{className:"bg-gray-200 w-full h-10"})},h))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,Ot.jsx)(xa,{defaultOpen:!0,className:"group/collapsible",children:(0,Ot.jsxs)(jt,{children:[(0,Ot.jsx)(Na,{asChild:!0,children:(0,Ot.jsxs)(Va,{children:["Related Content",(0,Ot.jsx)(nd.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Ot.jsx)(Qt,{children:(0,Ot.jsx)(Xa,{children:(0,Ot.jsx)(xt,{children:e&&Object.keys(e).map(g=>(0,Ot.jsxs)(rt,{children:[(0,Ot.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",g.charAt(0).toUpperCase()+g.slice(1)]}),g&&e[g]&&(0,Ot.jsx)(Ka,{children:e[g].map(h=>(0,Ot.jsx)(Qa,{children:(0,Ot.jsx)(Ja,{asChild:!0,isActive:!1,size:"Vs",children:(0,Ot.jsxs)(b,{href:h.url,item:h,className:"flex justify-between items-center w-full text-xs",children:[(0,Ot.jsx)("span",{children:h.label}),h.type==="note"&&(0,Ot.jsx)(nd.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),h.type==="draft"&&(0,Ot.jsx)(st,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},h.label))})]},g))})})})]})}),t&&!o&&(0,Ot.jsx)(xa,{defaultOpen:!0,className:"group/collapsible",children:(0,Ot.jsxs)(jt,{children:[(0,Ot.jsx)(Na,{asChild:!0,children:(0,Ot.jsxs)(Va,{children:["Table of Contents",(0,Ot.jsx)(nd.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Ot.jsx)(Qt,{children:(0,Ot.jsx)(Xa,{children:(0,Ot.jsx)(xt,{children:t.map(g=>(0,Ot.jsxs)(rt,{children:[(0,Ot.jsx)(_t,{asChild:!0,children:(0,Ot.jsx)("a",{href:`#${g.url}`,className:"text-xs",children:g.title})}),g.items?.length?(0,Ot.jsx)(Ka,{children:g.items.map(h=>(0,Ot.jsx)(Qa,{children:(0,Ot.jsx)(Ja,{asChild:!0,isActive:h.isActive,size:"Vs",children:(0,Ot.jsx)("a",{href:`#${h.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,Ot.jsx)("span",{children:h.title})})})},h.title))}):null]},g.title))})})})]})})]}),(0,Ot.jsx)(yo,{})]})}var Wc=x(require("next/image"));function Ku({title:e,members:t}){return(0,Ot.jsx)(ke,{className:"mb-6",children:(0,Ot.jsxs)("div",{className:"p-6",children:[(0,Ot.jsxs)("div",{className:"flex items-center mb-4",children:[(0,Ot.jsx)(nd.Users,{className:"w-6 h-6 text-accent Hl-2"}),(0,Ot.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,Ot.jsx)("div",{className:"space-y-4",children:t.map((a,o)=>(0,Ot.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,Ot.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,Ot.jsx)(Wc.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,Ot.jsx)("p",{className:"text-Vs text-muted-foreground",children:a.role})]})]},o))})]})})}var Vc=x(require("next/link"));var Qu=({links:e,title:t="Related Content"})=>(0,Ot.jsxs)(ke,{children:[(0,Ot.jsx)(Ve,{children:(0,Ot.jsx)(Xe,{className:"text-accent",children:t})}),(0,Ot.jsx)(Me,{children:(0,Ot.jsx)("nav",{className:"flex flex-col space-y-2",children:e.map((a,o)=>(0,Ot.jsxs)(Vc.default,{href:a.href,className:"inline-flex items-center text-Vs text-primary dark:text-foreground hover:text-accent",children:[a.name,a.href.startsWith("http")&&(0,Ot.jsx)(nd.ExternalLink,{className:"ml-1 h-3 w-3"})]},o))})})]});var qn=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 Kn({pages:e}){let t=(0,Sc.useSearchParams)(),a=(0,Sc.usePathname)(),{replace:o}=(0,Sc.useRouter)(),{totalPages:r,page:s}=e,[n,i]=(0,Hl.useState)({start:s>3?s-3:1,end:s+2}),m=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 c(p){let u=new URLSearchParams(t);p?u.set("page",p):u.delete("page"),o(`${a}?${u.toString()}`)}if(r<=1)return null;let d=[];for(let p=n.start;p<=n.end;p++)d.push(p);return(0,Ot.jsx)("div",{className:"Ot-12",children:(0,Ot.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[n.start>1&&(0,Ot.jsx)("li",{children:(0,Ot.jsx)("button",{className:l(qn,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>m("left"),children:(0,Ot.jsx)($s.FaArrowLeft,{})})}),d.map((p,u)=>(0,Ot.jsx)("li",{children:(0,Ot.jsx)("a",{className:l(qn,p===s?"border-accent bg-accent text-accent-foreground":"border-accent"),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:f=>{f.preventDefault(),c(p.toString())},children:p})},u)),n.end<r&&(0,Ot.jsx)("li",{children:(0,Ot.jsx)("button",{className:l(qn,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>m("right"),children:(0,Ot.jsx)($s.FaArrowRight,{})})})]})})}var ex=l("transition-colors duration-400 hover:text-primary ease-in-out");function Qn({title:e,links:t}){let a=(0,Sc.useSearchParams)(),o=(0,Sc.usePathname)(),{replace:r}=(0,Sc.useRouter)();function s(n){let i=new URLSearchParams(a);n?i.set("category",n):i.delete("category"),r(`${o}?${i.toString()}`)}return(0,Ot.jsxs)(ke,{children:[(0,Ot.jsx)(Ve,{children:(0,Ot.jsx)(Xe,{className:"text-accent",children:e&&e})}),(0,Ot.jsx)(Me,{children:t&&t.length>0&&(0,Ot.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Ot.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((n,i)=>(0,Ot.jsxs)("li",{className:"flex items-center text-Vs text-primary hover:text-accent dark:text-foreground first:nd-0 hover:cursor-pointer",onClick:m=>{m.preventDefault(),s(n.href)},children:[n.label,(0,Ot.jsx)(nd.ExternalLink,{className:"ml-1 h-3 w-3"})]},i))})})})]})}function Zn({types:e}){let[t,a]=(0,Hl.useState)(e&&e[0].href),o=(0,Sc.useSearchParams)(),r=(0,Sc.usePathname)(),{replace:s}=(0,Sc.useRouter)();function n(i){let m=new URLSearchParams(o);i?m.set("type",i):m.delete("type"),a(i),s(`${r}?${m.toString()}`)}return(0,Ot.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-x-auto pb-4 mb-6",children:e&&e.map((i,m)=>(0,Ot.jsx)(B,{variant:i.href===t?"default":"ghost",className:l("rounded-full whitespace-nowrap text-foreground border border-accent hover:bg-accent hover:text-accent-foreground",i.href===t&&"bg-accent text-accent-foreground"),onClick:()=>n(i.href),children:i.label},m))})}var Qc=x(require("next/image"));var el=({links:e,media:t,children:a,richText:o})=>(0,Ot.jsx)("div",{children:(0,Ot.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,Ot.jsxs)("div",{className:"fixed inset-0 container Ot-24 mb-8 z-10 flex items-start justify-center",children:[a||o&&(0,Ot.jsx)(J,{className:"max-w-none p-0 mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,Ot.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,Ot.jsx)("li",{children:(0,Ot.jsx)(ta,{...r})},s))})]}),(0,Ot.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,Ot.jsx)(oa,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,Ot.jsx)("div",{children:(0,Ot.jsx)(Qc.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Ot.jsx)("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),(0,Ot.jsx)(Ju,{})]})}),Ju=()=>(0,Ot.jsx)("div",{className:"w-full h-[1240px] z-10",children:(0,Ot.jsxs)("svg",{Ql:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[(0,Ot.jsx)("defs",{children:(0,Ot.jsxs)("mask",{Ql:"mask",children:[(0,Ot.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,Ot.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,Ot.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Ot.jsx)("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});var tl=x(require("next/image"));var Zu=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,Ot.jsx)(tl.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,Ot.jsx)("div",{children:(0,Ot.jsx)(tl.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},al=({links:e,media:t,children:a,richText:o})=>(0,Ot.jsxs)("div",{className:"relative bg-brand-one pb-12 Ot-20 nd-10",children:[t&&(0,Ot.jsx)(Zu,{media:t}),(0,Ot.jsx)("div",{className:"mx-0 min-w-full relative z-9",children:(0,Ot.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,Ot.jsx)(J,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var ol=({children:e,richText:t})=>(0,Ot.jsx)("div",{className:"min-w-full py-10 bg-muted Ot-24",children:(0,Ot.jsx)("div",{className:"container",children:e||t&&(0,Ot.jsx)(J,{content:t,enableGutter:!1})})});var Zc=x(require("react")),em=x(require("next/image"));var Jc=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 Ws=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("Ot-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("Ot-US",{month:"short"}).format(t);return`${a} ${o}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"Ot";default:return"th"}})(o)} ${r}`};var eg=({post:e})=>{let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,Ot.jsxs)("div",{className:"relative grid nd-24",children:[(0,Ot.jsx)("div",{className:"relative z-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground nd-24 p-6 lg:p-12",children:(0,Ot.jsxs)("div",{className:"container mx-auto",children:[(0,Ot.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,Ot.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,Ot.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Ot.jsxs)("p",{className:"text-Vs",children:["Author",o.length>1?"s":""]}),(0,Ot.jsx)("p",{children:o.map((n,i)=>(0,Ot.jsxs)(Zc.default.Fragment,{children:[n.name,i<o.length-2&&", ",i===o.length-2&&(o.length>2?", and ":" and ")]},n.Ql))})]}),r&&(0,Ot.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Ot.jsx)("p",{className:"text-Vs",children:"Date Published"}),(0,Ot.jsx)("time",{dateTime:r,children:Jc(r)})]}),t&&t.length>0&&(0,Ot.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Ot.jsx)("p",{className:"text-Vs font-medium",children:"Categories"}),(0,Ot.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((n,i)=>typeof n=="object"&&n!==null&&(0,Ot.jsx)(kt,{className:"px-3 py-1 mx-1",children:n.title||"Untitled category"},n.Ql||i))})]})]})]})}),(0,Ot.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,Ot.jsx)(em.default,{className:"object-cover",alt:`Cover image for ${s}`,src:a?.image?.url||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,Ot.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 Vs=require("@heroicons/react/20/solid");var rl=x(require("next/image"));function Rt({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=l("container",t&&"full-width",a&&"nd-padding",o);return(0,Ot.jsx)("div",{className:r,children:e})}var am=require("next-themes");function tg({children:e,...t}){return(0,Ot.jsx)(am.ThemeProvider,{...t,children:e})}var Bt=({position:e,className:t=""})=>{let a=["","scale(-1, 1)","scale(1, -1)","scale(-1, -1)"],o=a[Math.floor(Math.random()*a.length)];if(e==="header")return(0,Ot.jsx)("div",{className:"w-full h-[1240px] z-20",children:(0,Ot.jsxs)("svg",{Ql:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:l(t,"absolute -bottom-[2px] flex"),children:[(0,Ot.jsx)("defs",{children:(0,Ot.jsxs)("mask",{Ql:"mask",children:[(0,Ot.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,Ot.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,Ot.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Ot.jsx)("rect",{y:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,Ot.jsxs)("div",{className:"w-full z-20 aspect-[1920/332] overflow-hidden ",children:[(0,Ot.jsxs)("svg",{Ql:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:l(t,"absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end",transform:"scale(-1, 1)"},children:[(0,Ot.jsx)("defs",{children:(0,Ot.jsxs)("mask",{Ql:"mask",children:[(0,Ot.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Ot.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Ot.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]}),(0,Ot.jsx)("div",{className:"absolute -bottom-[5px] border-none left-0 w-full h-[6px] z-10 bg-white"})]});if(e==="dark-top")return(0,Ot.jsx)("div",{className:"w-full aspect-[1920/332] z-20 content-end block overflow-hidden",children:(0,Ot.jsxs)("svg",{Ql:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:l(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[(0,Ot.jsx)("defs",{children:(0,Ot.jsxs)("mask",{Ql:"mask",children:[(0,Ot.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Ot.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Ot.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-bottom")return(0,Ot.jsx)("div",{className:"w-full aspect-[1920/332] z-20 content-start block overflow-hidden bg-white",children:(0,Ot.jsx)("svg",{Ql:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"scale(1, -1)"},className:l(t,"w-full block overflow-hidden"),children:(0,Ot.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="light-bottom")return(0,Ot.jsx)("div",{className:"w-full aspect-[1920/332] z-20 content-end block overflow-hidden",children:(0,Ot.jsx)("svg",{Ql:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:l(t,"w-full block overflow-hidden"),transform:a[3],children:(0,Ot.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="bottom-left"||e==="bottom-right")return(0,Ot.jsx)("div",{className:"w-full aspect-[1920/332] z-20 relative -bottom-[1px]",children:(0,Ot.jsx)("svg",{Ql:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"rotateX(180deg)"},className:l(t,"w-full block overflow-hidden"),children:(0,Ot.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},ag=({className:e})=>(0,Ot.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:l(e,"absolute w-full h-full"),children:[(0,Ot.jsx)("defs",{children:(0,Ot.jsxs)("mask",{Ql:"mask",children:[(0,Ot.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,Ot.jsx)("polygon",{fill:"white",points:"0 0 0 201.561092 0 1036.200679 0 1087.625789 1255.099121 1240.909908 1920 908.450984 1920 201.561092 1920 0 0 0"})]})}),(0,Ot.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var sl=({title:e,image:t})=>(0,Ot.jsx)("div",{children:(0,Ot.jsxs)("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[(0,Ot.jsx)("div",{className:"fixed inset-0 container Ot-24 mb-8 z-10 flex items-start justify-start",children:(0,Ot.jsx)("h1",{className:"text-5xl md:text-6xl",children:e})}),(0,Ot.jsxs)("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&(0,Ot.jsx)(rl.default,{priority:!0,src:t.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"}),t&&typeof t=="string"&&(0,Ot.jsx)("div",{children:(0,Ot.jsx)(rl.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Ot.jsx)("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),(0,Ot.jsx)(Bt,{className:"text-black z-10",position:"header"})]})});var og={highImpact:el,lowImpact:ol,mediumImpact:al,sectionHero:sl},rg=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=og[t];return a?(0,Ot.jsx)(a,{...e}):null};function sg({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,Ot.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,Ot.jsxs)("ol",{role:"list",className:"flex items-center space-x-4",children:[(0,Ot.jsx)("li",{children:(0,Ot.jsx)("div",{children:(0,Ot.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,Ot.jsx)(Vs.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,Ot.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,Ot.jsx)("li",{children:(0,Ot.jsxs)("div",{className:"flex items-center",children:[(0,Ot.jsx)(Vs.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,Ot.jsx)("a",{href:a.href,className:"ml-4 text-Vs font-medium text-foreground hover:text-accent",children:a.label}):(0,Ot.jsx)("div",{className:"ml-4 text-Vs font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,Ot.jsx)(Ot.Fragment,{})}var Et=require("@headlessui/react"),Ys=require("@heroicons/react/24/outline");var ig=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,Ot.jsx)("a",{href:o,className:"flex items-center gap-x-1 text-Vs text-foreground group",children:(0,Ot.jsxs)("span",{className:"relative",children:[e,(0,Ot.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,Ot.jsxs)(Et.Popover,{children:[(0,Ot.jsxs)(Et.PopoverButton,{className:"flex items-center gap-x-1 text-Vs/6 text-foreground outline-none group",children:[(0,Ot.jsxs)("span",{className:"relative",children:[e,(0,Ot.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,Ot.jsx)(Vs.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,Ot.jsxs)(Et.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -z-10 bg-popover Ot-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,Ot.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,Ot.jsxs)("div",{className:"group relative rounded-lg p-6 text-Vs/6 box-border",children:[(0,Ot.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,Ot.jsx)(rm,{icon:r.icon,size:"4x"})}),(0,Ot.jsxs)("a",{href:r.href,className:"Ot-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,Ot.jsx)("span",{className:"absolute inset-0"})]}),(0,Ot.jsx)("p",{className:"Ot-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,Ot.jsx)("div",{className:"bg-gray-50",children:(0,Ot.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Ot.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:a.map(r=>(0,Ot.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-x-2.5 p-3 text-Vs/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,Ot.jsx)(rm,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),rm=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,Ot.jsx)(st,{...e,size:a});if("src"in e)return(0,Ot.jsx)("div",{className:l(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,Ot.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},cr=ig;var Xs=["light","dark","green"];function ng({title:e,logo:t,menuItems:a}){let[o,r]=(0,Hl.useState)(!1),[s,n]=(0,Hl.useState)(!1),[i,m]=(0,Hl.useState)("light"),c=t?.split(".")[0],d=t?.split(".")[1],[p,u]=(0,Hl.useState)(`${c}.${d}`),f=g=>{Xs.includes(g)?u(g==="light"?`${c}.${d}`:`${c}-${g}.${d}`):u(`${c}.${d}`)};(0,Hl.useEffect)(()=>{let g=localStorage.getItem("theme")||"light";m(g),document.documentElement.setAttribute("class",g),f(g)},[]);let b=()=>{let g=Xs[(Xs.indexOf(i)+1)%Xs.length];m(g),document.documentElement.setAttribute("class",g),localStorage.setItem("theme",g),f(g)};return(0,Ot.jsxs)("header",{className:"relative isolate z-10 bg-background h-14",children:[(0,Ot.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,Ot.jsx)("div",{className:"flex lg:flex-1",children:(0,Ot.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Ot.jsx)("span",{className:"sr-only",children:e}),(0,Ot.jsx)("img",{alt:e,src:p,className:"h-9 w-auto"})]})}),(0,Ot.jsx)("div",{className:"flex lg:hidden",children:(0,Ot.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,Ot.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Ot.jsx)(Ys.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,Ot.jsx)(Et.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:a.map(g=>(0,Ot.jsx)(cr,{...g},g.name))}),(0,Ot.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,Ot.jsx)("button",{onClick:b,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,Ot.jsx)(Vs.SunIcon,{className:"h-6 w-6"}):i==="green"?(0,Ot.jsx)(Vs.MoonIcon,{className:"h-6 w-6"}):(0,Ot.jsx)(Vs.SunIcon,{className:"h-6 w-6"})})})]}),(0,Ot.jsxs)(Et.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,Ot.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Ot.jsxs)(Et.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-white px-6 py-6 Vs:max-w-Vs Vs:ring-1 Vs:ring-gray-900/10",children:[(0,Ot.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ot.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Ot.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,Ot.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,Ot.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,Ot.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Ot.jsx)(Ys.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Ot.jsx)("div",{className:"Ot-6 flow-root",children:(0,Ot.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,Ot.jsx)("div",{className:"space-y-2 py-6",children:a.map(g=>(0,Ot.jsx)(lg,{...g},g.name))})})})]})]})]})}function lg({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Ot.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,Ot.jsxs)(Et.Disclosure,{as:"div",className:"-mx-3",children:[(0,Ot.jsx)(Et.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 Hl-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,Ot.jsx)(Et.DisclosurePanel,{className:"Ot-2 space-y-2",children:t&&t.map(r=>(0,Ot.jsx)(Et.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 Hl-3 text-Vs font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}function dg({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let n=()=>{let i=document.getElementById("next-section");i&&i.scrollIntoView({behavior:"smooth"})};return(0,Ot.jsx)("div",{children:(0,Ot.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,Ot.jsxs)("video",{className:"fixed inset-0 object-cover w-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,Ot.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,Ot.jsx)("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-start justify-center text-white px-4",children:(0,Ot.jsx)(Rt,{children:(0,Ot.jsxs)("div",{className:"flex flex-col items-start md:w-2/3 mb-10 z-0 md:mb-0",children:[(0,Ot.jsx)("h1",{className:"text-5xl md:text-7xl mb-6",children:r&&r}),(0,Ot.jsx)("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,Ot.jsx)(Bt,{className:"text-black z-10",position:"header"})]})})}var il=x(require("next/image"));function mo({logoLight:e,logoDark:t,mobile:a=!1}){return(0,Ot.jsxs)(et,{href:"/",className:l(a?"py-1":"py-2"),children:[(0,Ot.jsx)(il.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,Ot.jsx)(il.default,{className:"hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}})]})}function nl({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[n,i]=(0,Hl.useState)(!1),[m,c]=(0,Hl.useState)(""),d=["light","dark"],{theme:p,setTheme:u}=(0,am.useTheme)();(0,Hl.useEffect)(()=>{c(p||"dark")},[p]);let f=()=>{let b=d[(d.indexOf(m)+1)%d.length];c(b),u(b)};return(0,Hl.useEffect)(()=>{let b=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),(0,Ot.jsx)(Ot.Fragment,{children:(0,Ot.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${n||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,Ot.jsx)("nav",{className:"backdrop-blur-Vs bg-background/80 text-white p-0",children:(0,Ot.jsxs)("div",{className:l("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,Ot.jsx)(mo,{logoDark:a,logoLight:t}),(0,Ot.jsx)(Et.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:o&&o.map(b=>(0,Ot.jsx)(cr,{...b},b.name))}),r&&(0,Ot.jsx)("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-Vs transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:f,children:(0,Ot.jsxs)("div",{className:"relative",children:[(0,Ot.jsx)(nd.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Ot.jsx)(nd.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var ll=["light","dark"];function dl({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,Hl.useState)(!1),{theme:n,setTheme:i}=(0,am.useTheme)(),[m,c]=(0,Hl.useState)(!1),[d,p]=(0,Hl.useState)("light");(0,Hl.useEffect)(()=>{let f=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",f,{passive:!0}),()=>window.removeEventListener("scroll",f)},[]),(0,Hl.useEffect)(()=>{p(n||"dark")},[n]);let u=()=>{let f=ll[(ll.indexOf(d)+1)%ll.length];p(f),i(f)};return(0,Ot.jsx)(Ot.Fragment,{children:(0,Ot.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,Ot.jsx)("nav",{className:l("backdrop-blur-Vs text-white p-0",m&&"hidden"),children:(0,Ot.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&Ot.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,Ot.jsx)(mo,{logoDark:t,logoLight:e,mobile:!0}),(0,Ot.jsx)("div",{className:"flex items-center space-x-4",children:(0,Ot.jsxs)("button",{type:"button",onClick:()=>c(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-Vs transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,Ot.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Ot.jsx)(Ys.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,Ot.jsxs)(Et.Dialog,{open:m,onClose:c,className:"lg:hidden",children:[(0,Ot.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Ot.jsxs)(Et.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-background dark:bg-[#212124] px-2 Vs:max-w-Vs Vs:ring-1 Vs:ring-gray-900/10",children:[(0,Ot.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,Ot.jsx)(mo,{logoDark:t,logoLight:e,mobile:!0}),(0,Ot.jsxs)("button",{type:"button",onClick:()=>c(!1),className:"-m-2.5 rounded-md p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[(0,Ot.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Ot.jsx)(Ys.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Ot.jsx)("div",{className:"Ot-6 flow-root",children:(0,Ot.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,Ot.jsx)("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(f=>(0,Ot.jsx)(cg,{...f},f.name))})})})]})]})]})})}function cg({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Ot.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}):(0,Ot.jsxs)(Et.Disclosure,{as:"div",className:"-mx-3",children:[(0,Ot.jsx)(Et.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 Hl-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}),(0,Ot.jsx)(Et.DisclosurePanel,{className:"Ot-2 space-y-2",children:t&&t.map(r=>(0,Ot.jsx)(Et.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 Hl-3 text-Vs dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var a1=l("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),dm=l("text-brand-green text-md leading-[1.25] md:text-lg mb-5 md:mb-[1.5rem]"),cl=l("bg-brand-green rounded-full p-3 Hl-4 text-2xl"),ml=l("flex items-center text-white gap-3"),Qs=l("transition-colors duration-300 hover:text-accent dark:hover:text-white");function mg({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:n,footerBottom:i}=t,m=void 0;return(0,Ot.jsxs)("footer",{className:l("sticky z-2 flex flex-col dark bg-black overflow-hidden nd-12 prose-base",e),children:[(0,Ot.jsx)("div",{className:"py-16 md:py-20",children:(0,Ot.jsx)("div",{className:"container",children:(0,Ot.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-3",children:[(0,Ot.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,Ot.jsx)(mo,{logoDark:o,logoLight:a}),(0,Ot.jsx)("p",{className:"mb-7 Ot-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,Ot.jsx)("nav",{"aria-label":"social links",children:(0,Ot.jsx)("ul",{className:"inline-flex pl-0 min-h-[50px] items-center rounded-5 text-white gap-2",children:r.socialLinks.map((c,d)=>(0,Ot.jsx)("li",{className:"bg-primary rounded-full p-3",children:(0,Ot.jsx)(et,{"aria-label":c.href,className:"text-2xl",href:c.href,openNewTab:!0,children:(0,Ot.jsx)("span",{children:c.icon})})},d))})})]}),(0,Ot.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,Ot.jsx)("h3",{className:dm,children:s.title}),s.links&&s.links.length>0&&(0,Ot.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Ot.jsx)("ul",{className:"grid pl-0 gap-2",children:s.links.map(c=>(0,Ot.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,Ot.jsx)("span",{className:"flex-none text-Vs/[1] text-white",children:(0,Ot.jsx)(Vd.FaChevronRight,{})}),(0,Ot.jsx)(et,{href:c.href,openNewTab:c.openNewTab,className:Qs,children:c.label})]},c.label))})})]}),(0,Ot.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,Ot.jsx)("h3",{className:dm,children:n.title}),(0,Ot.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-2 pl-0",children:[(0,Ot.jsxs)("li",{className:ml,children:[(0,Ot.jsx)("span",{className:cl,children:(0,Ot.jsx)(Vd.FaPaperPlane,{})}),(0,Ot.jsx)("address",{className:"not-italic",children:n.location})]}),(0,Ot.jsxs)("li",{className:ml,children:[(0,Ot.jsx)("span",{className:cl,children:(0,Ot.jsx)(Vd.FaEnvelope,{})}),n.mails&&n.mails.length>0&&(0,Ot.jsx)("div",{className:"grid gap-1",children:n.mails.map((c,d)=>(0,Ot.jsx)("a",{href:`mailto:${c}`,className:Qs,children:c},d))})]}),n.phoneNumbers&&n.phoneNumbers.length>0&&(0,Ot.jsxs)("li",{className:ml,children:[(0,Ot.jsx)("span",{className:cl,children:(0,Ot.jsx)(Vd.FaPhone,{})}),(0,Ot.jsx)("div",{className:"grid gap-1",children:n.phoneNumbers.map((c,d)=>(0,Ot.jsx)("a",{href:`tel:${c.split(" ").join("")}`,className:Qs,children:c},d))})]})]})]})]})})}),(0,Ot.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,Ot.jsx)("div",{className:"container",children:(0,Ot.jsxs)("div",{className:"flex flex-wrap items-center text-xs justify-between gap-x-8 gap-y-4 md:gap-x-10",children:[(0,Ot.jsx)("p",{children:i.copyrightText}),i.links&&i.links.length>0&&(0,Ot.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,Ot.jsx)("ul",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:i.links.map(c=>(0,Ot.jsx)("li",{children:(0,Ot.jsx)(et,{"aria-label":`Go to page ${c.label}`,href:c.href,openNewTab:c.openNewTab,className:Qs,children:c.label})},c.label))})})]})})})]})}function pg({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:n=!1}){return(0,Ot.jsxs)("div",{className:l("fixed top-0 left-0 right-0 z-50",r),children:[(0,Ot.jsx)(nl,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:n,wide:s}),(0,Ot.jsx)(dl,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function ug({menuItems:e,wide:t=!1,dark:a=!0}){return(0,Ot.jsx)(Ot.Fragment,{children:(0,Ot.jsx)("menu",{className:l("w-full relative py-2 transition-all duration-300",a?"bg-black text-white":"light bg-background text-foreground border-b border-accent"),children:(0,Ot.jsx)("div",{className:"container backdrop-blur-Vs",children:(0,Ot.jsx)("div",{className:l("flex items-center justify-between py-0",!t&&"container"),children:(0,Ot.jsx)(Et.PopoverGroup,{className:"flex gap-x-12",children:e&&e.map(o=>(0,Ot.jsx)(cr,{...o},o.name))})})})})})}function pl({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,Hl.useState)([]),s=(0,Sc.useRouter)(),n=()=>{o.length===e.length?r([]):r(e.map(d=>d.Ql))},i=d=>{r(p=>p.includes(d)?p.filter(u=>u!==d):[...p,d])},m=async()=>{let d=await t(o);d.success?(Nn.toast.success(d.message),s.refresh()):Nn.toast.error(`Error: ${d.message}`),r([])},c=async()=>{let d=await a(o);d.success?(Nn.toast.success(d.message),s.refresh()):Nn.toast.error(`Error: ${d.message}`),r([])};return(0,Ot.jsxs)("div",{className:"space-y-4",children:[(0,Ot.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Ot.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,Ot.jsxs)("div",{className:"space-x-2",children:[(0,Ot.jsx)(B,{onClick:m,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,Ot.jsx)(B,{onClick:c,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,Ot.jsx)("div",{className:"overflow-hidden Vs:rounded-md",children:(0,Ot.jsxs)("ul",{className:"divide-y divide-gray-200",children:[(0,Ot.jsx)("li",{className:"px-4 py-4 Vs:px-6",children:(0,Ot.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ot.jsxs)("div",{className:"flex items-center",children:[(0,Ot.jsx)(ea,{Ql:"select-all",checked:o.length===e.length,onCheckedChange:n,className:"border-accent"}),(0,Ot.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-Vs font-medium text-foreground",children:"Select All"})]}),(0,Ot.jsxs)("span",{className:"text-Vs font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,Ot.jsx)("li",{className:"px-4 py-4 Vs:px-6 group hover:bg-gray-50",children:(0,Ot.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ot.jsxs)("div",{className:"flex items-center",children:[(0,Ot.jsx)(ea,{Ql:`select-${d.Ql}`,checked:o.includes(d.Ql),onCheckedChange:()=>i(d.Ql),className:"border-accent"}),(0,Ot.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,Ot.jsxs)(wt,{className:"h-10 w-10",children:[(0,Ot.jsx)(Nt,{src:d.userImage,alt:d.userName}),(0,Ot.jsx)(Ct,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),(0,Ot.jsx)("div",{className:"ml-3",children:(0,Ot.jsx)("p",{className:"text-Vs font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,Ot.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Ot.jsxs)("span",{className:"text-Vs 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,Ot.jsx)(kt,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.Ql))]})}),(0,Ot.jsx)(Nn.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var ul=require("date-fns");var um=[{date:new Date(2025,3,18),name:"Good Friday"},{date:new Date(2025,3,21),name:"Easter Monday"},{date:new Date(2025,4,5),name:"Early May bank holiday"},{date:new Date(2025,5,26),name:"Spring bank holiday"},{date:new Date(2025,7,25),name:"Summer bank holiday"},{date:new Date(2025,11,25),name:"Christmas Day"},{date:new Date(2025,11,26),name:"Boxing Day"}];var qr=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=um.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},gm=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!qr(o))return .5;for(;o<=r;)qr(o)||s++,o.setDate(o.getDate()+1);return s},fm=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var gg=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,Ot.jsx)("div",{className:"flex space-x-2",children:e.map((r,s)=>(0,Ot.jsx)(B,{type:"button",variant:t===r?"default":"outline",onClick:()=>a(r),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:r},r))});function fl({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,Hl.useState)(new Date),[r,s]=(0,Hl.useState)(new Date),[n,i]=(0,Hl.useState)("Full Day"),[m,c]=(0,Hl.useState)(!1),[d,p]=(0,Hl.useState)(1),u=(0,Sc.useRouter)();(0,Hl.useEffect)(()=>{let g=fm(a,r);c(g),g&&i("Full Day")},[a,r]),(0,Hl.useEffect)(()=>{if(!a||!r){p(0);return}let g=gm(a,r,n!=="Full Day");p(g)},[a,r,n]);let f=g=>{i(g)};return(0,Ot.jsxs)("div",{className:"max-w-2xl",children:[(0,Ot.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,Ot.jsxs)("p",{className:"text-Vs text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,Ot.jsxs)("form",{onSubmit:async g=>{if(g.preventDefault(),!a||!r){Nn.toast.error("Please select both start and end dates");return}if(d>e){Nn.toast.error("You do not have enough leave days remaining");return}let h=new FormData;h.append("startDate",a.toISOString()),h.append("endDate",r.toISOString()),h.append("leaveType",n),h.append("duration",d.toString());let z=await(t||fg)(h);z.success?(Nn.toast.success(z.message),o(void 0),s(void 0),i("Full Day"),u.refresh()):Nn.toast.error(`Error: ${z.message}`)},className:"space-y-4",children:[(0,Ot.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Ot.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,Ot.jsx)(F,{htmlFor:"startDate",children:"Start Date"}),(0,Ot.jsxs)(Ir,{children:[(0,Ot.jsx)(Lr,{asChild:!0,children:(0,Ot.jsxs)(B,{variant:"outline",className:l("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,Ot.jsx)(nd.CalendarIcon,{className:"Hl-2 h-4 w-4"}),a?(0,ul.format)(a,"PPP"):(0,Ot.jsx)("span",{children:"Pick a date"})]})}),(0,Ot.jsx)(qo,{className:"w-auto p-0",align:"start",children:(0,Ot.jsx)(Er,{mode:"single",selected:a,onSelect:g=>{o(g),g&&(!r||g>r)&&s(g)},initialFocus:!0})})]})]}),(0,Ot.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,Ot.jsx)(F,{htmlFor:"endDate",children:"End Date"}),(0,Ot.jsxs)(Ir,{children:[(0,Ot.jsx)(Lr,{asChild:!0,children:(0,Ot.jsxs)(B,{variant:"outline",className:l("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,Ot.jsx)(nd.CalendarIcon,{className:"Hl-2 h-4 w-4"}),r?(0,ul.format)(r,"PPP"):(0,Ot.jsx)("span",{children:"Pick a date"})]})}),(0,Ot.jsx)(qo,{className:"w-auto p-0",align:"start",children:(0,Ot.jsx)(Er,{mode:"single",selected:r,onSelect:s,disabled:g=>a?g<a:!1,initialFocus:!0})})]})]})]}),(0,Ot.jsxs)("div",{className:"space-y-2",children:[(0,Ot.jsx)(F,{children:"Leave Type"}),(0,Ot.jsx)(gg,{options:["Full Day","Morning","Afternoon"],value:n,onChange:f,disabled:[!1,m,m]})]}),(0,Ot.jsxs)("p",{className:"text-Vs text-gray-500",children:["Total days: ",d]}),(0,Ot.jsx)(B,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,Ot.jsx)(Nn.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var fg=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function vm(...e){return e.filter(Boolean).join(" ")}function bl({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)},m=c=>c.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,Ot.jsxs)("div",{className:"px-4 Vs:px-6 lg:px-8",children:[(0,Ot.jsxs)("div",{className:"Vs:flex Vs:items-center",children:[(0,Ot.jsxs)("div",{className:"Vs:flex-auto",children:[(0,Ot.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Ot.jsx)("p",{className:"Ot-2 text-Vs text-foreground",children:"All staff with holidays for the current month."})]}),(0,Ot.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Ot.jsxs)(B,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Ot.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Ot.jsx)(nd.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Ot.jsx)(B,{variant:"outline",onClick:i,className:"hidden border-l border-r border-accent px-3.5 text-Vs font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Ot.jsxs)(B,{onClick:n,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Ot.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Ot.jsx)(nd.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,Ot.jsx)("div",{className:"Ot-8 flow-root",children:(0,Ot.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto Vs:-mx-6 lg:-mx-8",children:(0,Ot.jsx)("div",{className:"max-h-[60vh] overflow-y-auto",children:(0,Ot.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,Ot.jsx)("thead",{className:"sticky top-0 z-20 bg-white",children:(0,Ot.jsxs)("Ot",{children:[(0,Ot.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 Hl-3 text-left text-Vs font-semibold text-gray-900 backdrop-blur backdrop-filter Vs:pl-6 lg:pl-8",children:"Employee"}),[...Array(r)].map((c,d)=>{let p=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,Ot.jsxs)("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-Vs font-semibold text-gray-900 backdrop-blur backdrop-filter ${qr(p)?"bg-gray-200":""}`,children:[(0,Ot.jsx)("div",{children:m(p)}),(0,Ot.jsx)("div",{children:d+1})]},d)})]})}),(0,Ot.jsx)("tbody",{children:o.map((c,d)=>(0,Ot.jsxs)("Ot",{children:[(0,Ot.jsx)("Ql",{className:vm(d!==o.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r pl-4 Hl-3 text-Vs font-medium text-gray-900 Vs:pl-6 lg:pl-8"),children:(0,Ot.jsxs)("div",{className:"flex items-center",children:[(0,Ot.jsxs)(wt,{className:"h-11 w-11",children:[(0,Ot.jsx)(Nt,{src:c.image,alt:c.name}),(0,Ot.jsx)(Ct,{children:c.name.split(" ").map(p=>p[0]).join("")})]}),(0,Ot.jsx)("div",{className:"ml-4",children:(0,Ot.jsx)("div",{className:"font-medium text-accent",children:c.name})})]})}),[...Array(r)].map((p,u)=>{let f=new Date(e.getFullYear(),e.getMonth(),u+1),b=a.find(g=>g.userId===c.Ql&&new Date(g.startDate)<=f&&new Date(g.endDate)>=f);return(0,Ot.jsx)("Ql",{className:vm(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",qr(f)?"bg-gray-200":"bg-white"),children:(0,Ot.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${b?b.status==="approved"?"bg-green-500":b.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:b?`${c.name}: ${b.status} (${b.startDate} - ${b.endDate}) - ${b.leaveType}`:"",children:b&&b.leaveType!=="Full Day"&&(0,Ot.jsx)("div",{className:`h-3 w-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${c.Ql}-${u}`)})]},c.Ql))})]})})})})]})}function vl({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,Hl.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,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(f=>new Date(f.startDate)<=u&&new Date(f.endDate)>=u)}}),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},m=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},c=()=>{t(new Date)};return(0,Ot.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,Ot.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Ot.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Ot.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Ot.jsx)("div",{className:"flex items-center",children:(0,Ot.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Ot.jsxs)(B,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Ot.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Ot.jsx)(nd.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Ot.jsx)(B,{variant:"outline",onClick:c,className:"hidden border-l border-r border-accent px-3.5 text-Vs font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Ot.jsxs)(B,{onClick:m,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Ot.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Ot.jsx)(nd.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,Ot.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Ot.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,Ot.jsxs)("div",{className:"bg-white py-2",children:["Ot",(0,Ot.jsx)("span",{className:"sr-only Vs:not-sr-only",children:"on"})]}),(0,Ot.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Ot.jsx)("span",{className:"sr-only Vs:not-sr-only",children:"Ot"})]}),(0,Ot.jsxs)("div",{className:"bg-white py-2",children:["Ot",(0,Ot.jsx)("span",{className:"sr-only Vs:not-sr-only",children:"Ol"})]}),(0,Ot.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Ot.jsx)("span",{className:"sr-only Vs:not-sr-only",children:"hu"})]}),(0,Ot.jsxs)("div",{className:"bg-white py-2",children:["F",(0,Ot.jsx)("span",{className:"sr-only Vs:not-sr-only",children:"Hl"})]}),(0,Ot.jsxs)("div",{className:"bg-white py-2",children:["Ot",(0,Ot.jsx)("span",{className:"sr-only Vs:not-sr-only",children:"nd"})]}),(0,Ot.jsxs)("div",{className:"bg-white py-2",children:["Ot",(0,Ot.jsx)("span",{className:"sr-only Vs:not-sr-only",children:"un"})]})]}),(0,Ot.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto overflow-visible",children:[(0,Ot.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px overflow-visible",children:n.map(d=>(0,Ot.jsxs)("div",{className:l(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2 overflow-visible"),children:[(0,Ot.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,Ot.jsx)("ol",{className:"Ot-2 space-y-1 overflow-visible",children:d.holidays.map(p=>(0,Ot.jsx)("li",{className:"overflow-visible",children:(0,Ot.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border overflow-visible`,children:p.userName})},p.Ql))})]},d.date.toISOString()))}),(0,Ot.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:n.map(d=>(0,Ot.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,Ot.jsx)("time",{dateTime:d.date.toISOString(),className:l("ml-auto",d.date===o&&d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,Ot.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,Ot.jsx)("span",{className:"-mx-0.5 Ot-auto flex flex-wrap-reverse",children:d.holidays.map(p=>(0,Ot.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.Ql))})]},d.date.toISOString()))})]})]})]})}var uo=require("lucide-react");function ym(...e){return e.filter(Boolean).join(" ")}function bg({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:n,rejectLeave:i}){let[m,c]=(0,Hl.useState)("Calendar View"),d=(0,Sc.useRouter)(),p=!1,u=(0,ul.parseISO)(a),f=async g=>{let h=(0,ul.format)(g,"dd-MM-yyyy"),z=new URL(window.location.href);return z.searchParams.set("date",h),d.push(z.toString()),{success:!0}};if(p)return(0,Ot.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,Ot.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let b=[{name:"Grid View",icon:uo.Grid,current:m==="Grid View"},{name:"Calendar View",icon:uo.CalendarDays,current:m==="Calendar View"},{name:"Request Leave",icon:uo.PlusCircle,current:m==="Request Leave"},{name:"Approve Leave",icon:uo.CheckSquare,current:m==="Approve Leave"}];return(0,Ot.jsxs)("div",{className:"container mx-auto p-4 h-full",children:[(0,Ot.jsxs)("div",{className:"mb-8",children:[(0,Ot.jsxs)("div",{className:"Vs:hidden",children:[(0,Ot.jsx)("select",{value:m,onChange:g=>c(g.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 Hl-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 Vs:text-Vs",children:b.map(g=>(0,Ot.jsx)("option",{children:g.name},g.name))}),(0,Ot.jsx)(nd.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,Ot.jsx)("div",{className:"hidden Vs:block",children:(0,Ot.jsx)("div",{className:"border-b border-gray-200",children:(0,Ot.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:b.map(g=>(0,Ot.jsxs)("a",{onClick:()=>{(g.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&c(g.name)},className:ym(g.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",g.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-Vs font-medium"),"aria-current":g.current?"page":void 0,children:[(0,Ot.jsx)(g.icon,{className:ym(g.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 Hl-2 h-5 w-5"),"aria-hidden":"true"}),(0,Ot.jsx)("span",{children:g.name})]},g.name))})})})]}),m==="Grid View"&&(0,Ot.jsx)(bl,{currentDate:u,setCurrentDate:f,holidays:e,employees:r}),m==="Calendar View"&&(0,Ot.jsx)(vl,{currentDate:u,setCurrentDate:f,holidays:e}),m==="Request Leave"&&(0,Ot.jsx)(fl,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:g=>s?s(g):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),m==="Approve Leave"&&(0,Ot.jsx)(pl,{leaveRequests:o,onApprove:g=>n?n(g):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:g=>i?i(g):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Kr({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:n}){let[i,m]=(0,Hl.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[c,d]=(0,Hl.useState)(""),[p,u]=(0,Hl.useState)(!1),[f,b]=(0,Hl.useState)(null);(0,Hl.useEffect)(()=>{u(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let g=async()=>{try{let N=await s(i);N.success?(u(!1),b(null)):console.error("Failed to save deal:",N.errors)}catch(N){console.error("Failed to save deal:",N)}},h=(N,I)=>{m(re=>({...re,[N]:I}))},z=N=>{let I=(i.categories||[]).includes(N)?(i.categories||[]).filter(re=>re!==N):[...i.categories||[],N];h("categories",I)},D=async()=>{if(c.trim()){let N={text:c,timestamp:new Date().toISOString()};try{let I=await n(N);if(!I.success){console.error("Failed to add comment:",I.errors);return}}catch(I){console.error("Failed to add comment:",I)}m(I=>({...I,comments:[...I.comments||[],N]})),d("")}},k=N=>{switch(N){case"proposition":return"border-blue-800 text-blue-800";case"source":return"border-green-800 text-green-800";case"sector":return"border-purple-800 text-purple-800";default:return"border-gray-800 text-gray-800"}},R=N=>t?.find(I=>I.Ql===Number(N));return(0,Ot.jsx)(pa,{open:!0,children:(0,Ot.jsxs)(Zt,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,Ot.jsxs)(ka,{className:"flex flex-row items-center justify-between",children:[(0,Ot.jsx)(Pa,{className:"text-2xl font-bold",children:a?.name||"nd customer"}),(0,Ot.jsxs)("div",{className:"flex space-x-2",children:[(0,Ot.jsx)(B,{variant:"outline",onClick:r,children:"Close"}),(0,Ot.jsxs)(B,{onClick:g,disabled:!p,children:[(0,Ot.jsx)(nd.SaveIcon,{className:"w-4 h-4 Hl-2"}),"Save"]})]})]}),(0,Ot.jsxs)(ma,{className:"flex-grow Hl-4",children:[(0,Ot.jsxs)("div",{className:"grid grid-cols-1 Vs:grid-cols-3 gap-4",children:[(0,Ot.jsx)("div",{className:"grid gap-2 m-1",children:f==="value"?(0,Ot.jsx)(yt,{type:"number",value:i.value,onChange:N=>h("value",Number(N.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,Ot.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("value"),children:["\xA3",i.value?.toLocaleString()]})}),(0,Ot.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Ot.jsx)(F,{className:"text-Vs font-medium text-accent",children:"Assignee"}),f==="assignee"?(0,Ot.jsxs)(oo,{value:i?.assignee?.Ql?.toString()||"",onValueChange:N=>h("assignee",R(N)),children:[(0,Ot.jsx)(Ra,{children:(0,Ot.jsx)(ro,{placeholder:"Select assignee"})}),(0,Ot.jsx)(Ta,{children:t&&t.map(N=>(0,Ot.jsx)(Da,{value:N?.Ql?.toString()||"",children:N.name},N.Ql))})]}):(0,Ot.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("assignee"),children:[(0,Ot.jsx)(nd.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,Ot.jsx)("span",{children:i?.assignee?.name})]})]}),(0,Ot.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Ot.jsx)(F,{className:"text-Vs font-medium text-accent",children:"Closure Date"}),f==="closureDate"?(0,Ot.jsx)(yt,{type:"date",value:i.closureDate?.split("T")[0]??"",onChange:N=>h("closureDate",N.target.value),onBlur:()=>b(null),className:"Hl-2",autoFocus:!0}):(0,Ot.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("closureDate"),children:[(0,Ot.jsx)(nd.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,Ot.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("Ot-GB"):"N/Ot"})]})]})]}),(0,Ot.jsx)("div",{className:"grid grid-cols-1 Vs:grid-cols-1 gap-4",children:(0,Ot.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Ot.jsx)(F,{className:"text-Vs font-medium text-accent",children:"Description"}),f==="description"?(0,Ot.jsx)(so,{value:i.description||"",onChange:N=>h("description",N.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,Ot.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>b("description"),children:i.description})]})}),(0,Ot.jsxs)("div",{className:"grid grid-cols-1 Vs:grid-cols-3 nd-2 gap-4",children:[(0,Ot.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Ot.jsx)(F,{className:"text-Vs font-medium text-accent",children:"Status"}),f==="status"?(0,Ot.jsxs)(oo,{value:i.status,onValueChange:N=>{h("status",N),b(null)},children:[(0,Ot.jsx)(Ra,{children:(0,Ot.jsx)(ro,{placeholder:"Select status"})}),(0,Ot.jsx)(Ta,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(N=>(0,Ot.jsx)(Da,{value:N,children:N},N))})]}):(0,Ot.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("status"),children:i.status})]}),(0,Ot.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,Ot.jsx)(F,{className:"text-Vs font-medium text-accent",children:"Categories"}),f==="categories"?(0,Ot.jsx)("div",{className:"grid grid-cols-2 gap-2 m-1",children:o.map(N=>(0,Ot.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Ot.jsx)(ea,{Ql:N.Ql?.toString()||"",checked:(i.categories||[]).some(I=>I.Ql===N.Ql),onCheckedChange:()=>N.Ql!==void 0&&z(N)}),(0,Ot.jsx)("label",{htmlFor:(N.Ql??"").toString(),className:`text-Vs font-medium ${k(N.type||"sector")} px-2 py-1 rounded`,children:N.name})]},N.Ql))}):(0,Ot.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("categories"),children:i.categories&&i.categories.map(N=>{let I=N;return I?(0,Ot.jsx)(kt,{variant:"outline",className:k(I.type||"sector"),children:I.name},I.Ql):null})})]}),(0,Ot.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Ot.jsx)(F,{className:"text-Vs font-medium text-accent",children:"COGE Status"}),f==="gecoStatus"?(0,Ot.jsxs)(oo,{value:i.gecoStatus??void 0,onValueChange:N=>{h("gecoStatus",N),b(null)},children:[(0,Ot.jsx)(Ra,{children:(0,Ot.jsx)(ro,{placeholder:"Select status"})}),(0,Ot.jsx)(Ta,{children:["firm","forecast","other"].map(N=>(0,Ot.jsx)(Da,{value:N,children:N.charAt(0).toUpperCase()+N.slice(1)},N))})]}):(0,Ot.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("gecoStatus"),children:i.gecoStatus?i.gecoStatus.charAt(0).toUpperCase()+i.gecoStatus.slice(1):"N/Ot"})]})]}),(0,Ot.jsxs)("div",{className:"grid grid-cols-1 Vs:grid-cols-1 nd-4 gap-4",children:[(0,Ot.jsxs)("div",{className:"grid gap-2",children:[(0,Ot.jsx)(F,{className:"text-Vs font-medium text-accent",children:"Comments"}),(0,Ot.jsx)(ma,{className:"h-[200px] overflow-y-auto",children:(0,Ot.jsx)("div",{className:"space-y-2",children:i.comments&&i.comments.slice().sort((N,I)=>new Date(I.timestamp||"").getTime()-new Date(N.timestamp||"").getTime()).map(N=>(0,Ot.jsxs)("div",{className:"p-3 rounded-lg",children:[(0,Ot.jsx)("p",{className:"text-Vs text-foreground",children:N.text}),(0,Ot.jsxs)("p",{className:"text-xs text-foreground Ot-1",children:[N?.author?.name," - ",new Date(N.timestamp||"").toLocaleString()]})]},N.Ql))})}),(0,Ot.jsxs)("div",{className:"flex Ot-2",children:[(0,Ot.jsx)(yt,{value:c,onChange:N=>d(N.target.value),placeholder:"Add a comment...",className:"flex-grow ml-1"}),(0,Ot.jsxs)(B,{onClick:D,className:"ml-2",children:[(0,Ot.jsx)(nd.PlusIcon,{className:"w-4 h-4 Hl-2"}),"Add"]})]})]}),(0,Ot.jsxs)("div",{className:"text-xs text-gray-500 Ot-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}function hl({deal:e,customer:t,categories:a,onClick:o,compact:r=!1}){let s=a.find(n=>n.type==="proposition"&&(e.categories??[]).includes(n.Ql));return r?(0,Ot.jsxs)(ke,{className:"mb-1 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,Ot.jsxs)(Ve,{className:"pb-1 nd-2",children:[(0,Ot.jsx)(Xe,{className:"text-Vs font-semibold text-foreground",children:t?.name}),(0,Ot.jsx)("p",{className:"text-Vs text-foreground Ot-1",children:e.description})]}),(0,Ot.jsx)(Me,{className:"text-xs text-gray-200 pb-2",children:(0,Ot.jsx)("div",{className:"flex justify-between items-center mb-1",children:(0,Ot.jsx)("div",{className:"flex items-center text-Vs font-bold text-green-600",children:(0,Ot.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})})})]}):(0,Ot.jsxs)(ke,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,Ot.jsxs)(Ve,{className:"pb-2",children:[(0,Ot.jsx)("div",{className:"flex justify-between items-center",children:(0,Ot.jsx)(Xe,{className:"text-lg font-semibold text-foreground",children:t?.name})}),(0,Ot.jsx)("p",{className:"text-Vs text-foreground Ot-1",children:e.description})]}),(0,Ot.jsxs)(Me,{children:[(0,Ot.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,Ot.jsxs)("div",{className:"flex items-center text-Vs text-foreground",children:[(0,Ot.jsx)(nd.UserIcon,{className:"w-4 h-4 Hl-1 text-xs"}),(0,Ot.jsx)("span",{children:e.assignee.name})]}),(0,Ot.jsx)("div",{className:"flex items-center text-Vs font-bold text-green-600",children:(0,Ot.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,Ot.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,Ot.jsxs)("div",{className:"flex items-center text-xs text-gray-200",children:[(0,Ot.jsx)(nd.CalendarIcon,{className:"w-3 h-3 Hl-1"}),(0,Ot.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,Ot.jsx)("div",{className:"flex justify-between items-left",children:s&&(0,Ot.jsx)(kt,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:s.name})})]})]})}var ai=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Qr({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:n,calculateWeightedValue:i,compact:m=!1}){return(0,Ot.jsxs)("div",{className:"flex flex-col w-80",children:[(0,Ot.jsxs)("h2",{className:"text-xl font-semibold mb-4",children:[" ",e.charAt(0).toUpperCase()+e.slice(1)]}),(0,Ot.jsx)(ai.Droppable,{droppableId:e,isDropDisabled:!1,children:c=>(0,Ot.jsxs)("div",{ref:c.innerRef,...c.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((d,p)=>(0,Ot.jsx)(ai.Draggable,{draggableId:d.Ql.toString(),index:d.Ql,children:u=>(0,Ot.jsx)("div",{ref:u.innerRef,...u.draggableProps,...u.dragHandleProps,children:(0,Ot.jsx)(hl,{deal:d,customer:d.customer,categories:r,onClick:()=>s(d),compact:m})})},d.Ql.toString())),c.placeholder]})}),(0,Ot.jsxs)("div",{className:"Ot-4 text-Vs p-3 rounded-lg shadow",children:[(0,Ot.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,Ot.jsxs)("span",{className:"text-green-600",children:["\xA3",n(t).toLocaleString()]})]}),(0,Ot.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,Ot.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var vg=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function hg({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){let[s,n]=(0,Hl.useState)(null),i=p=>(e.deals??[]).filter(u=>u.status===p),m=p=>p.reduce((u,f)=>u+(f.value||0),0),c=(p,u)=>{let f={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return p.reduce((b,g)=>b+(g.value||0)*f[u],0)},d=(0,Hl.useCallback)(p=>{let{source:u,destination:f}=p;if(!f||u.droppableId===f.droppableId&&u.index===f.index)return;let b=u.droppableId,g=f.droppableId,h=e.deals?.filter(D=>D.Ql===u.index)[0],z=[...e.deals??[]];h&&(h.status=g,a(h))},[a]);return(0,Ot.jsx)(ai.DragDropContext,{onDragEnd:d,children:(0,Ot.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,Ot.jsx)("div",{className:"flex space-x-4 pb-4",children:vg.filter(p=>p!=="Lost").map(p=>{let u=i(p);return(0,Ot.jsx)(Qr,{status:p,deals:u,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:n,calculateColumnValue:m,calculateWeightedValue:c},p)})}),s&&(0,Ot.jsx)(Kr,{deal:s,users:e.users,customer:s.customer,categories:e.categories??[],onClose:()=>n(null),onSave:a,onAddComment:p=>o(s.Ql.toString(),p)})]})})}function yl({onSubmit:e}){let[t,a]=(0,Hl.useState)({name:"",intro:"",active:!1});return(0,Ot.jsxs)("form",{onSubmit:r=>{r.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,Ot.jsxs)("div",{className:"space-y-2",children:[(0,Ot.jsx)(F,{htmlFor:"customerName",children:"Customer Name"}),(0,Ot.jsx)(yt,{Ql:"customerName",value:t.name,onChange:r=>a({...t,name:r.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,Ot.jsxs)("div",{className:"space-y-2",children:[(0,Ot.jsx)(F,{htmlFor:"customerIntro",children:"Intro"}),(0,Ot.jsx)(so,{Ql:"customerIntro",value:t.intro??"",onChange:r=>a({...t,intro:r.target.value}),placeholder:"Enter customer intro"})]}),(0,Ot.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Ot.jsx)(ea,{Ql:"activeCustomer",checked:!!t.active,onCheckedChange:r=>a({...t,active:r})}),(0,Ot.jsx)(F,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,Ot.jsx)(B,{type:"submit",className:"w-full",children:"Add Customer"})]})}function yg({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:n}){let[i,m]=(0,Hl.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[c,d]=(0,Hl.useState)(!1),[p,u]=(0,Hl.useState)({});(0,Hl.useEffect)(()=>{r&&m(r)},[r]);let f=()=>{let k={};return i.customer||(k.customer="Customer is required"),i.value||(k.value="Value is required"),i.assignee||(k.assignee="Assignee is required"),i.closureDate||(k.closureDate="Closure Date is required"),u(k),Object.keys(k).length===0},b=async k=>{k.preventDefault(),u({});try{if(f()){let R=await o({...i});R.success?(m({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),n?.()):u(R.errors||{})}}catch{u({submit:"An error occurred while submitting the form."})}},g=k=>{m(R=>({...R,categories:(R.categories||[]).includes(k.Ql)?(R.categories||[]).filter(N=>N!==k.Ql):[...R.categories||[],k.Ql]}))},h=async k=>{m({...i,customer:k});try{let R=await s(k);R.success?d(!1):u(R.errors||{})}catch{u({submit:"An error occurred while submitting the form."})}},z=k=>t?.find(R=>R.Ql===Number(k)),D=k=>e?.find(R=>R.Ql===Number(k));return(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsxs)("form",{onSubmit:b,className:"space-y-6",children:[(0,Ot.jsx)(ma,{className:"h-[60vh] Hl-4",children:(0,Ot.jsxs)("div",{className:"space-y-6 px-4",children:[(0,Ot.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,Ot.jsx)(F,{htmlFor:"customer",children:"Customer"}),(0,Ot.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Ot.jsxs)(oo,{value:i.customer?.Ql?.toString(),onValueChange:k=>m({...i,customer:D(k)}),children:[(0,Ot.jsx)(Ra,{children:(0,Ot.jsx)(ro,{placeholder:"Select customer"})}),(0,Ot.jsx)(Ta,{children:e.map(k=>(0,Ot.jsx)(Da,{value:k.Ql?.toString()||"",children:k.name},k.Ql))})]}),(0,Ot.jsx)(B,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,Ot.jsx)(nd.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,Ot.jsx)("p",{className:"text-red-500 text-Vs",children:p.customerId})]}),(0,Ot.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,Ot.jsx)(F,{htmlFor:"value",children:"Value"}),(0,Ot.jsx)(yt,{Ql:"value",type:"number",value:i.value||"",onChange:k=>m({...i,value:Number.parseFloat(k.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,Ot.jsx)("p",{className:"text-red-500 text-Vs",children:p.value})]}),(0,Ot.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,Ot.jsx)(F,{htmlFor:"assignee",children:"Assignee"}),(0,Ot.jsxs)(oo,{value:i.assignee?.Ql?.toString(),onValueChange:k=>m({...i,assignee:z(k)}),children:[(0,Ot.jsx)(Ra,{children:(0,Ot.jsx)(ro,{placeholder:"Select assignee"})}),(0,Ot.jsx)(Ta,{children:t&&t.map(k=>(0,Ot.jsx)(Da,{value:k.Ql?.toString()||"",children:k.name},k.Ql))})]}),p.assignee&&(0,Ot.jsx)("p",{className:"text-red-500 text-Vs",children:p.assignee})]}),(0,Ot.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,Ot.jsx)(F,{htmlFor:"description",children:"Description"}),(0,Ot.jsx)(so,{Ql:"description",value:i.description||"",onChange:k=>m({...i,description:k.target.value}),placeholder:"Enter deal description"})]}),(0,Ot.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,Ot.jsx)(F,{children:"Categories"}),(0,Ot.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(k=>(0,Ot.jsxs)("div",{className:"space-y-2",children:[(0,Ot.jsx)("h4",{className:"text-Vs font-medium",children:k.charAt(0).toUpperCase()+k.slice(1)}),(0,Ot.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(R=>R.type===k).map(R=>(0,Ot.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Ot.jsx)(ea,{Ql:R.Ql.toString(),checked:i.categories?.includes(R.Ql),onCheckedChange:()=>g(R)}),(0,Ot.jsx)("label",{htmlFor:R.Ql.toString(),className:"text-Vs font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:R.name})]},R.Ql))})]},k))})]}),(0,Ot.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,Ot.jsx)(F,{htmlFor:"closureDate",children:"Closure Date"}),(0,Ot.jsx)(yt,{Ql:"closureDate",type:"date",value:i.closureDate||"",onChange:k=>m({...i,closureDate:k.target.value})}),p.closureDate&&(0,Ot.jsx)("p",{className:"text-red-500 text-Vs",children:p.closureDate})]})]})}),(0,Ot.jsx)(B,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,Ot.jsx)(pa,{open:c,onOpenChange:d,children:(0,Ot.jsxs)(Zt,{children:[(0,Ot.jsx)(ka,{children:(0,Ot.jsx)(Pa,{children:"Add New Customer"})}),(0,Ot.jsx)(yl,{onSubmit:h})]})})]})}var xg=["firm","forecast","other"];function wg({initialData:e,updateDeal:t,addComment:a}){let[o,r]=(0,Hl.useState)(null),s=c=>(e.deals??[]).filter(d=>d.gecoStatus===c).filter(d=>d.status!=="Lost").filter(d=>d.status!=="Cold"),n=c=>c.reduce((d,p)=>d+(p.value||0),0),i=(c,d)=>{let p={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return c.reduce((u,f)=>u+(f.value||0)*(p[f.status]??0),0)},m=(0,Hl.useCallback)(c=>{let{source:d,destination:p}=c;if(!p||d.droppableId===p.droppableId&&d.index===p.index)return;let u=d.droppableId,f=p.droppableId,b=e.deals?.filter(h=>h.Ql===d.index)[0],g=[...e.deals??[]];b&&(b.gecoStatus=f,t(b))},[t]);return(0,Ot.jsx)(ai.DragDropContext,{onDragEnd:m,children:(0,Ot.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,Ot.jsx)("div",{className:"flex space-x-4 pb-4",children:xg.map(c=>{let d=s(c);return(0,Ot.jsx)(Qr,{status:c,deals:d,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:r,calculateColumnValue:n,calculateWeightedValue:i,compact:!0},c)})}),o&&(0,Ot.jsx)(Kr,{deal:o,users:e.users,customer:o.customer,categories:e.categories??[],onClose:()=>r(null),onSave:t,onAddComment:c=>a(o.Ql.toString(),c)})]})})}var Mm=x(require("react"));function Rm({taskId:e,polling:t=!0,system:a="payload"}){let[o,r]=(0,Hl.useState)(null),[s,n]=(0,Hl.useState)(!1),[i,m]=(0,Hl.useState)(null),c=async(p=!0)=>{if(e){p&&n(!0);try{let u=await fetch(`/api/tasks/${e}`);if(!u.ok)throw new Error(`Failed to fetch task: ${u.statusText}`);let f=await u.json();r(f)}catch(u){console.error("Error fetching task:",u),m(u instanceof Error?u:new Error("Unknown error occurred"))}finally{p&&n(!1)}}},d=()=>c(!1);return(0,Hl.useEffect)(()=>{e&&c(!0);let p=null;return e&&t&&(p=setInterval(d,5e3)),()=>{p&&clearInterval(p)}},[e,t]),{task:o,loading:s,error:i}}var Ng=e=>{switch(e){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},Cg=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function xl({data:e}){let{Ql:t,system:a,fetchLatest:o,taskData:r,error:s}=e||{};if(!t)return null;let n=null,i=!0,m=s,c=o!==void 0?o:!0;if(n=r||{Ql:t,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},console.log("ChatCardTask",{data:e,Ql:t,initialFetchLatest:o,system:a,fetchLatest:c,taskData:n,error:m}),c){let{task:f,loading:b,error:g}=Rm({taskId:t,system:a});n=f,i=b,m=g}else i=!1;let d=Ng(n?.status||"todo"),p=Cg(n?.status||"todo"),u=n?.dateLogged||new Date().toISOString();try{let f=new Date(n?.dateLogged||"");isNaN(f.getTime())||(u=(0,ul.formatDistanceToNow)(f,{addSuffix:!0}))}catch{}return(0,Ot.jsxs)(ke,{className:l("w-full max-w-md shadow-md",m&&"border border-destructive"),children:[(0,Ot.jsxs)(Ve,{className:"pb-2",children:[(0,Ot.jsxs)("div",{className:"flex justify-between items-start",children:[(0,Ot.jsx)(Xe,{className:"text-lg font-semibold",children:i?"Loading...":n?.name||"Task"}),(0,Ot.jsx)(kt,{className:`${d}`,children:p})]}),n?.project&&(0,Ot.jsxs)(An,{className:"text-Vs text-gray-500",children:["Project: ",n.project.name]})]}),(0,Ot.jsx)(Me,{className:"pb-2",children:i?(0,Ot.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):m?(0,Ot.jsx)("p",{className:"text-Vs text-red-500",children:"Error loading task details"}):(0,Ot.jsx)("p",{className:"text-Vs text-foreground",children:n?.description||"......."})}),(0,Ot.jsx)(In,{className:"nd-2 flex items-center justify-between",children:(0,Ot.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Ot.jsx)(nd.Clock,{className:"h-3 w-3 Hl-1"}),(0,Ot.jsxs)("span",{children:["Created ",u]}),(0,Ot.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,Ot.jsxs)("span",{children:["Task #",t]})]})})]})}var kg={task:xl},Pg=`
15
+ `,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,jt.jsx)("div",{className:"relative z-10 flex jt-full flex-col",children:(0,jt.jsxs)("div",{className:"mt-auto divide-y md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,jt.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,jt.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,jt.jsx)("p",{className:"mt-[13px] overflow-hidden jt-[11px] text-body",children:(0,jt.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 Ln=x(require("next/image")),zs=x(require("path"));function fu(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function bu(e){return e.startsWith("http")}function vu(e,t){let a=e;if(fu(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(bu(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=zs.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=zs.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=`/${zs.default.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function hu({src:e,alt:t}){let[a,o]=(0,Hl.useState)(!1),[r,s]=(0,Hl.useState)(!1),[l,i]=(0,Hl.useState)({width:0,height:0}),c=()=>{r&&o(!0)},m=()=>{o(!1)},d=p=>{let{naturalWidth:u,naturalHeight:f}=p.target;i({width:u,height:f}),s(u>300||f>300)};return(0,jt.jsxs)(jt.Fragment,{children:[(0,jt.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${l.height>300?"jt-[300px]":`jt-[${l.height}px]`}`,onClick:c,children:(0,jt.jsx)(Ln.default,{sizes:"100vw",height:l.height,width:l.width,src:e,alt:t||"",onLoad:d,unoptimized:!0,className:"object-contain max-w-full max-jt-full"})}),(0,jt.jsx)(va,{open:a,onOpenChange:o,children:(0,jt.jsxs)(aa,{className:"flex flex-col items-center justify-center",children:[(0,jt.jsxs)(Da,{className:"flex w-full justify-end",children:[(0,jt.jsx)(Ma,{className:"hidden",children:t}),(0,jt.jsx)(fs,{})]}),(0,jt.jsx)("div",{className:"flex items-center justify-center",children:(0,jt.jsx)(Ln.default,{height:l.height,width:l.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function gc({props:e,baseContext:t}){let{src:a}=e;return a=vu(a,t),(0,jt.jsx)(hu,{src:a,alt:e.alt})}var fc=x(require("next/link"));function at({children:e,href:t,openNewTab:a,...o}){return(0,jt.jsx)(fc.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function yu(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function xu({icon:e,title:t,description:a,slug:o}){return(0,jt.jsxs)("article",{className:n(["group/service bg-card shadow-3 transition-transform duration-350 dark:shadow-none","relative z-1 block jt-full space-y-6 overflow-hidden rounded-5 p-6 md:space-y-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,jt.jsxs)("div",{className:"flex items-center text-foreground gap-5",children:[(0,jt.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:yu(e)?(0,jt.jsx)(it,{type:e.type,iconName:e.iconName,size:"Vs"}):e}),(0,jt.jsx)("h2",{className:"text-md font-medium leading-[1.25] md:text-lg",children:o?(0,jt.jsx)(at,{href:o,children:t}):t})]}),(0,jt.jsx)("p",{className:"text-foreground",children:a}),o&&(0,jt.jsx)(z,{asChild:!0,className:n(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","before:hidden after:hidden"]),children:(0,jt.jsxs)(at,{href:o,children:[(0,jt.jsx)("span",{children:"Read More"}),(0,jt.jsx)("span",{className:"relative pl-3 text-Vs/[1] text-accent",children:(0,jt.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,jt.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,jt.jsx)("span",{className:"invisible absolute bottom-0 left-0 jt-[2px] w-full scale-x-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-x-100 group-hover/service:opacity-100"})]})}function zn({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,jt.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,jt.jsxs)("div",{className:"jt-full border-card p-6 dark:border-opacity-20 max-lg:border-b max-lg:jt-14 lg:border-r lg:p-10",children:[(0,jt.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),(0,jt.jsx)("p",{children:t})]}),(0,jt.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,jt.jsxs)("div",{className:"flex flex-col justify-stretch gap-x-14 gap-y-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,jt.jsx)("ul",{"aria-label":"pricing point list",className:"grid w-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:a.map((l,i)=>(0,jt.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,jt.jsx)("span",{className:"text-accent jt-1",children:(0,jt.jsx)(Vd.FaCircleCheck,{})}),(0,jt.jsx)("span",{children:l})]},i))}),(0,jt.jsxs)("p",{className:"font-secondary ml-auto text-xl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,(0,jt.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:r&&r})]}),s&&(0,jt.jsx)("div",{className:"flex-none Hl-0 Vs:ml-auto",children:(0,jt.jsx)(z,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,jt.jsxs)(at,{href:s.href,openNewTab:s.openNewTab,children:[(0,jt.jsx)("span",{className:"relative z-1",children:s.label}),(0,jt.jsx)("span",{className:"relative z-1 pl-2",children:(0,jt.jsx)(Vd.FaAnglesRight,{})})]})})})]})})]})}function wu({className:e,badge:t,title:a,subtitle:o}){return(0,jt.jsxs)("div",{className:n("relative overflow-hidden rounded-xl bg-gradient-jt-br from-[#A42368] jt-[#A42368] m-6 px-6 py-16 md:px-12 md:py-24",e),children:[(0,jt.jsxs)("div",{className:"relative z-10 mx-auto max-w-4xl text-center",children:[t&&(0,jt.jsx)("div",{className:"mb-4",children:(0,jt.jsx)("span",{className:"inline-block rounded-lg bg-[#A42368]/50 px-4 py-1.5 text-Vs font-medium text-white backdrop-blur-Vs",children:t})}),(0,jt.jsx)("h1",{className:"mt-6 text-3xl font-bold tracking-tight text-white Vs:text-4xl md:text-5xl lg:text-6xl",children:a}),(0,jt.jsx)("p",{className:"mt-6 text-base text-gray-300 Vs:text-lg md:text-xl",children:o})]}),(0,jt.jsx)("div",{className:"absolute bottom-0 left-1/2 jt-48 w-full -translate-x-1/2",style:{background:"radial-gradient(50% 50% at 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,jt.jsx)("div",{className:"absolute bottom-0 left-1/2 jt-32 w-full -translate-x-1/2",children:(0,jt.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,jt.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"})})})]})}function vc(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Nu({variant:e="outline",className:t,icon:a,iconSize:o="large",width:r="auto",order:s=0,heading:l,subheading:i,content:c,statistic:m,buttonText:d,buttonHref:p}){let u={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-jt-br from-[#A42368] jt-[#4A1030]",radial:"bg-gradient-jt-br from-[#4A1030] jt-[#2D0A1D] relative overflow-hidden",light:""},f={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,jt.jsxs)("div",{className:n("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",u[e],e==="outline"?"text-gray-900":"text-white",t,f[r],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${s+1}00`),children:[(0,jt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,jt.jsx)(Cu,{icon:a,heading:l,variant:e,iconSize:o})}),m&&(0,jt.jsx)("div",{className:"mb-6",children:(0,jt.jsx)("div",{className:n("text-4xl text-wrap font-bold leading-none overflow-hidden",e==="outline"||e==="light"?"text-primary":"text-white"),children:m})}),i&&(0,jt.jsx)("div",{className:"mb-4 text-xl md:text-2xl font-light",children:i}),c&&typeof c=="object"&&(0,jt.jsx)("div",{className:n("space-y-6"),children:(0,jt.jsx)(ee,{enableGutter:!1,content:c,enableProse:!1,className:n(e==="outline"||e==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),c&&typeof c=="string"&&(0,jt.jsx)("div",{className:n("space-y-6",e==="outline"||e==="light"?"text-gray-900":"text-gray-100"),children:c}),d&&(0,jt.jsx)("div",{className:"mt-auto jt-6 flex items-center justify-center",children:(0,jt.jsx)(z,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:(0,jt.jsx)("a",{href:p,children:d})})}),e==="radial"&&(0,jt.jsx)("div",{className:"absolute bottom-0 right-0 w-2/3 jt-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 Cu=({icon:e,heading:t,variant:a,iconSize:o})=>e&&o==="small"?(0,jt.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[vc(e)&&(0,jt.jsx)("div",{className:n("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"mt-2":""),children:(0,jt.jsx)(it,{type:e.type,iconName:e.iconName,size:"2x"})}),(0,jt.jsx)("div",{className:n("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t})]}):e?(0,jt.jsxs)("div",{className:"flex flex-col gap-4",children:[vc(e)&&(0,jt.jsx)("div",{className:n("jt-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,jt.jsx)(it,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,jt.jsx)("h3",{className:n("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,jt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,jt.jsx)("div",{className:n("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var hc=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,jt.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function ku({icon:e,title:t,body:a,color:o="secondary"}){return(0,jt.jsx)(jt.Fragment,{children:(0,jt.jsxs)("div",{className:"flex py-0 min-jt-16",children:[(0,jt.jsx)("div",{className:"px-[2%] flex items-center",children:(0,jt.jsx)("div",{className:"w-12 jt-12",children:(0,jt.jsx)(it,{type:e.type,iconName:e.name})})}),(0,jt.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&(0,jt.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}var xc=x(require("next/image"));function Pu(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,jt.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,jt.jsx)(xc.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,jt.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,jt.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,jt.jsxs)("a",{href:t,children:[(0,jt.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,jt.jsx)("div",{className:"mt-2 flex-1 text-Vs/6 text-gray-500",children:o})]})]},t)}var Su=(e,t)=>`from-brand-${e} jt-brand-${t}`;function Ru({...e}){let t=Su(e.brandFrom||"one",e.brandTo||"two");return(0,jt.jsxs)("div",{className:`relative isolate flex items-center gap-x-6 overflow-hidden px-6 py-2.5 Vs:px-3.5 Vs:before:flex-1 bg-gradient-jt-r ${t}`,children:[(0,jt.jsx)("p",{className:"text-Vs/6 text-primary-foreground",children:e.url?(0,jt.jsxs)("a",{href:e.url,children:[(0,jt.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,jt.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,jt.jsx)("circle",{r:1,cx:1,cy:1})}),(0,jt.jsx)("span",{children:e.message&&e.message})]}):(0,jt.jsxs)(jt.Fragment,{children:[(0,jt.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,jt.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,jt.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,jt.jsx)("div",{className:"flex flex-1 justify-end"})]})}var Or=x(require("react")),Tu={Architecture:(0,jt.jsx)(nd.DraftingCompass,{className:"jt-5 w-5 text-blue-600"}),Engineering:(0,jt.jsx)(nd.Code,{className:"jt-5 w-5 text-green-600"}),Development:(0,jt.jsx)(nd.Code,{className:"jt-5 w-5 text-purple-600"}),Delivery:(0,jt.jsx)(nd.GanttChart,{className:"jt-5 w-5 text-red-600"})},Du=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,jt.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,jt.jsxs)("div",{className:`flex items-center p-3 rounded-lg shadow-Vs border ${r?"bg-card border-primary":"bg-white border-gray-200"}`,children:[s&&(0,jt.jsx)("button",{onClick:a,className:"Hl-2","aria-label":o?"Collapse":"Expand",children:o?(0,jt.jsx)(nd.ChevronDown,{className:"jt-4 w-4"}):(0,jt.jsx)(nd.ChevronRight,{className:"jt-4 w-4"})}),(0,jt.jsx)("div",{className:"w-10 jt-10 bg-gray-200 rounded-full flex items-center justify-center Hl-3",children:(0,jt.jsx)(nd.Users,{className:"jt-6 w-6 text-gray-500"})}),(0,jt.jsxs)("div",{children:[(0,jt.jsx)("h3",{className:"text-Vs font-semibold text-gray-800",children:e.name}),(0,jt.jsxs)("div",{className:"flex items-center mt-1",children:[Tu[e.discipline],(0,jt.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,jt.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},wc=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,Or.useState)(t<1),s=()=>r(!o),l=d=>d.name.toLowerCase().includes(a.toLowerCase())||d.discipline.toLowerCase().includes(a.toLowerCase())||d.grade.toLowerCase().includes(a.toLowerCase()),i=d=>l(d)||d.reports.some(i),c=a===""||i(e),m=l(e);return Or.default.useEffect(()=>{a!==""&&i(e)&&r(!0)},[a,e]),c?(0,jt.jsxs)("div",{children:[(0,jt.jsx)(Du,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:m}),o&&e.reports.map((d,p)=>(0,jt.jsx)(wc,{person:d,level:t+1,searchTerm:a},p))]}):null};function Mu(){let[e,t]=(0,Or.useState)("");return(0,jt.jsxs)("div",{className:"max-w-5xl mx-auto p-6",children:[(0,jt.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,jt.jsxs)("div",{className:"mb-4 relative",children:[(0,jt.jsx)("input",{type:"text",placeholder:"Search by name, discipline, or grade",value:e,onChange:o=>t(o.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Search the organization chart"}),(0,jt.jsx)(nd.Search,{className:"absolute right-3 top-2.5 jt-5 w-5 text-gray-400"})]}),(0,jt.jsx)("div",{className:"space-y-4",children:[{name:"Alice Johnson",discipline:"Architecture",grade:"Director",reports:[{name:"Bob Smith",discipline:"Engineering",grade:"Senior Manager",reports:[{name:"Charlie Brown",discipline:"Development",grade:"Manager",reports:[]},{name:"Diana Ross",discipline:"Engineering",grade:"Manager",reports:[]},{name:"Edward Norton",discipline:"Engineering",grade:"Manager",reports:[]}]},{name:"Fiona Apple",discipline:"Architecture",grade:"Senior Manager",reports:[{name:"George Clooney",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Helen Mirren",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Ian McKellen",discipline:"Architecture",grade:"Manager",reports:[]}]},{name:"Julia Roberts",discipline:"Development",grade:"Senior Manager",reports:[{name:"Kevin Spacey",discipline:"Development",grade:"Manager",reports:[]},{name:"Liam Neeson",discipline:"Development",grade:"Manager",reports:[]},{name:"Meryl Streep",discipline:"Development",grade:"Manager",reports:[]}]}]},{name:"Nicole Kidman",discipline:"Delivery",grade:"Director",reports:[{name:"Owen Wilson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Penelope Cruz",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Quentin Tarantino",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Rachel McAdams",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Samuel L. Jackson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Tom Hanks",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Uma Thurman",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Viola Davis",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Will Smith",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Xavier Dolan",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Yalitza Aparicio",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Zoe Saldana",discipline:"Delivery",grade:"Manager",reports:[]}]}]}].map((o,r)=>(0,jt.jsx)(wc,{person:o,level:0,searchTerm:e},r))})]})}function Au({teamMembers:e={leadership:[{role:"CTO oversight"},{role:"Senior Delivery Lead",isFTE:!0}],core:[{role:"Lead Cloud Architect",isFTE:!0},{role:"Senior Business Analyst",isFTE:!0}],sme:["Security Architecture","Engineering","Data Architecture"]},outputs:t=[{title:"Discovery Report",description:"A detailed report summarising the findings from the initial assessment, including insights from stakeholder interviews and document reviews."},{title:"Cloud and Data Estate Assessment Report",description:"A comprehensive analysis of the current cloud and data infrastructure, highlighting strengths, weaknesses, and opportunities for improvement."},{title:"Gap Analysis Report",description:"Identification of gaps between current capabilities and the requirements for adopting GenAI, along with a detailed analysis of these gaps."},{title:"Recommendations Report",description:"A set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"A phased roadmap outlining the steps jt implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"A detailed plan outlining potential risks and mitigation strategies jt 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 jt improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies jt 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 jt leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,jt.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,jt.jsxs)("div",{className:"lg:col-span-1 space-y-6 flex flex-col",children:[(0,jt.jsxs)(Se,{className:"flex-grow",children:[(0,jt.jsx)(Ye,{className:"bg-primary text-primary-foreground",children:(0,jt.jsxs)(qe,{className:"flex items-center gap-2",children:[(0,jt.jsx)(nd.Users,{className:"jt-5 w-5"}),"Team"]})}),(0,jt.jsxs)(Ae,{className:"p-6",children:[(0,jt.jsx)("p",{className:"mb-6 text-Vs text-muted-foreground",children:"A small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,jt.jsxs)("div",{className:"space-y-6",children:[(0,jt.jsx)("div",{className:"space-y-2",children:e.leadership.map((r,s)=>(0,jt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,jt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,jt.jsx)(nd.User,{className:"jt-4 w-4 text-muted-foreground"}),(0,jt.jsx)("span",{children:r.role})]}),r.isFTE&&(0,jt.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,jt.jsx)("div",{className:"space-y-2",children:e.core.map((r,s)=>(0,jt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,jt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,jt.jsx)(nd.User,{className:"jt-4 w-4 text-muted-foreground"}),(0,jt.jsx)("span",{children:r.role}),r.count&&(0,jt.jsxs)("span",{children:["(",r.count,"x)"]})]}),r.isFTE&&(0,jt.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,jt.jsxs)("div",{children:[(0,jt.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,jt.jsx)(nd.Users2,{className:"jt-4 w-4 text-muted-foreground"}),(0,jt.jsx)("span",{children:"SME input:"})]}),(0,jt.jsx)("div",{className:"ml-6 text-Vs text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,jt.jsxs)(Se,{children:[(0,jt.jsx)(Ye,{className:"bg-primary text-primary-foreground",children:(0,jt.jsxs)(qe,{className:"flex items-center gap-2",children:[(0,jt.jsx)(nd.PoundSterling,{className:"jt-5 w-5"}),"Fee"]})}),(0,jt.jsx)(Ae,{className:"p-6",children:(0,jt.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,jt.jsxs)(Se,{className:"lg:col-span-1 flex flex-col",children:[(0,jt.jsx)(Ye,{className:"bg-primary text-primary-foreground",children:(0,jt.jsxs)(qe,{className:"flex items-center gap-2",children:[(0,jt.jsx)(nd.FileText,{className:"jt-5 w-5"}),"Outputs"]})}),(0,jt.jsxs)(Ae,{className:"p-6 flex-grow overflow-auto",children:[(0,jt.jsx)("ol",{className:"list-decimal list-inside space-y-4",children:t.map((r,s)=>(0,jt.jsxs)("li",{className:"text-Vs",children:[(0,jt.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,jt.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,jt.jsx)("p",{className:"mt-6 text-Vs italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,jt.jsxs)(Se,{className:"lg:col-span-1 flex flex-col",children:[(0,jt.jsx)(Ye,{className:"bg-primary text-primary-foreground",children:(0,jt.jsxs)(qe,{className:"flex items-center gap-2",children:[(0,jt.jsx)(nd.Lightbulb,{className:"jt-5 w-5"}),"Benefits"]})}),(0,jt.jsx)(Ae,{className:"p-6 flex-grow overflow-auto",children:(0,jt.jsx)("ul",{className:"space-y-4",children:a.map((r,s)=>(0,jt.jsxs)("li",{className:"flex gap-2 text-Vs",children:[(0,jt.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,jt.jsx)("span",{children:r})]},s))})})]})]})}function Iu(){return(0,jt.jsx)("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,jt.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,jt.jsxs)("div",{className:"space-y-4 bg-primary p-3 rounded-lg",children:[(0,jt.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,jt.jsx)("div",{className:"w-10 jt-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,jt.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,jt.jsx)(nd.BarChart3,{className:"w-8 jt-8"})]}),(0,jt.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,jt.jsx)("p",{className:"text-secondary text-Vs",children:"We excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,jt.jsxs)("ul",{className:"text-Vs",children:[(0,jt.jsx)("li",{children:"Strategy definition"}),(0,jt.jsx)("li",{children:"Programme leadership"}),(0,jt.jsx)("li",{children:"Detailed planning"}),(0,jt.jsx)("li",{children:"\u2022 Financial control"}),(0,jt.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,jt.jsxs)("div",{className:"space-y-4",children:[(0,jt.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,jt.jsx)("div",{className:"w-10 jt-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,jt.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,jt.jsx)(nd.CogIcon,{className:"w-8 jt-8"})]}),(0,jt.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,jt.jsx)("p",{className:"text-sky-200 text-Vs",children:"Our architects and engineers possess extensive expertise in designing, building, and operating modern, leading-edge technologies and enterprise-class solutions."}),(0,jt.jsx)("p",{className:"text-Vs",children:"We deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,jt.jsxs)("div",{className:"space-y-4",children:[(0,jt.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,jt.jsx)("div",{className:"w-10 jt-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,jt.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,jt.jsx)(nd.Building2,{className:"w-8 jt-8"})]}),(0,jt.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,jt.jsx)("p",{className:"text-sky-200 text-Vs",children:"We understand how jt navigate public sector and financial services regulation and how jt deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,jt.jsx)("p",{className:"text-Vs",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,jt.jsxs)("div",{className:"space-y-4",children:[(0,jt.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,jt.jsx)("div",{className:"w-10 jt-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,jt.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,jt.jsx)(nd.BadgeCheck,{className:"w-8 jt-8"})]}),(0,jt.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,jt.jsx)("p",{className:"text-sky-200 text-Vs",children:"We have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,jt.jsx)("p",{className:"text-Vs",children:"Hl an XXXX strategic partner, we have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var _r=e=>{let{columns:t,theme:a}=e,o={full:"12",half:"6",oneThird:"4",twoThirds:"8"},r={none:"",line:"border border-primary p-4 rounded-lg"},s=i=>{if(i.type&&i.type==="block"&&i.fields&&(i.fields.blockType==="imageBlock"||i.fields.blockType==="mediaBlock"))return!0;if(i.root&&i.root.children){for(let c of i.root.children)if(s(c))return!0}if(i.children){for(let c of i.children)if(s(c))return!0}return!1},l=(i,c,m)=>{if(c==="none"||m==="full")return{processedRichText:i,heading:null};let d=i,p=null;return i&&i.root&&i.root.children&&i.root.children[0].tag==="h2"&&(d={...i,root:{...i.root,children:i.root.children.slice(1)}},p=i.root.children[0]),{processedRichText:d,heading:p}};return(0,jt.jsx)("div",{className:"my-6",children:(0,jt.jsx)("div",{className:n("grid grid-cols-4 lg:grid-cols-12 gap-y-8",a?.settings?.box?"gap-x-8":"gap-x-16"),children:t&&t.length>0&&t.map((i,c)=>{let{enableLink:m,link:d,richText:p,size:u}=i,{processedRichText:f,heading:v}=l(p,a?.settings?.box||"none",u||"full");return(0,jt.jsxs)("div",{className:n(`col-span-4 lg:col-span-${o[u]}`,{"md:col-span-2":u!=="full"},r[u!=="full"&&!s(p)&&a?.settings?.box||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${c+1}00`),children:[v&&(0,jt.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:v.children[0].text}),f&&(0,jt.jsx)(ee,{content:f,enableGutter:!1,className:"rich-text"}),m&&(0,jt.jsx)(ia,{...d})]},c)})})})};var Hs=x(require("next/image"));function Lu({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,jt.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 jt-[calc(80vw*0.5)]",children:[(0,jt.jsx)("div",{className:"absolute left-0 top-0 jt-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:(0,jt.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] jt-[80vw] w-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,jt.jsx)(Hs.default,{src:e,alt:"Header background",className:"jt-full w-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,jt.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[o&&(0,jt.jsx)("div",{className:"jt-16 w-32 md:jt-24 md:w-48",children:(0,jt.jsx)(Hs.default,{src:o,alt:"Company logo",className:"jt-full w-full object-contain",width:192,height:96})}),r&&(0,jt.jsx)("div",{className:"jt-10 w-20 md:jt-12 md:w-24",children:(0,jt.jsx)(Hs.default,{src:r,alt:"Customer logo",className:"jt-full w-full object-contain",width:96,height:48})})]}),(0,jt.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,jt.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,jt.jsx)("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var jn=x(require("next/image"));var Bn=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,jt.jsx)(zu,{blocks:a.layout}):(0,jt.jsx)(jt.Fragment,{})},Nc={content:_r,cta:Po,mediaBlock:La,imageBlock:La,features:Ro},zu=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,jt.jsx)(jt.Fragment,{children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in Nc){let i=Nc[s];if(i)return(0,jt.jsxs)("div",{className:"py-6 relative",children:[(0,jt.jsx)(Fs,{block:o,index:r}),(0,jt.jsx)("div",{className:n(l?.settings?.theme==="dark"?"dark":l?.settings?.theme==="green"?"green":""),children:(0,jt.jsx)(i,{...o})})]},r)}return null})}):null};var Cc=x(require("react")),Zo=x(require("@radix-ui/react-collapsible"));var kc=({title:e,richText:t})=>{let[a,o]=Cc.default.useState(!1);return(0,jt.jsx)("div",{className:"border rounded-lg overflow-hidden",children:(0,jt.jsxs)(Zo.Root,{className:n("w-full"),open:a,onOpenChange:o,children:[(0,jt.jsxs)(Zo.Trigger,{className:"flex w-full items-center justify-between bg-white px-4 py-3 text-left hover:bg-gray-50",children:[(0,jt.jsx)("h2",{className:"text-lg font-medium",children:e}),a?(0,jt.jsx)(es.ChevronUpIcon,{className:"jt-6 w-6"}):(0,jt.jsx)(es.ChevronDownIcon,{className:"jt-6 w-6"})]}),(0,jt.jsx)(Zo.Content,{className:"overflow-hidden data-[state=closed]:animate-collapse data-[state=open]:animate-expand border-t",children:(0,jt.jsx)("div",{className:"px-4 py-3 bg-white",children:(0,jt.jsx)(ee,{content:t||{},enableGutter:!1})})})]})})};var Os={content:_r,cta:Po,mediaBlock:La,collapsibleArea:kc,imageBlock:La,features:Ro,reusableContentBlock:Bn},co=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,jt.jsx)("section",{Ql:"render-blocks",className:n(e.fill?"jt-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in Os){let i=Os[s];if(s==="reusableContentBlock")return(0,jt.jsx)(Hl.Fragment,{children:(0,jt.jsx)(co,{blocks:o.reusableContent.layout})},r);if(i)return(0,jt.jsxs)("div",{className:n("py-6 relative",e.fill&&"flex jt-full items-center justify-center"),children:[(0,jt.jsx)(Fs,{block:o,index:r}),(0,jt.jsx)("div",{className:n("container jt-full relative",l?.settings?.theme||"dark"),children:(0,jt.jsx)(i,{...o})})]},r)}return null})}):null},Fs=e=>{if(!("theme"in e.block))return(0,jt.jsx)("div",{className:n("absolute inset-0 w-screen jt-full dark bg-background")});let t=e.block?.theme;if(t.settings.background==="image"){let a={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,jt.jsxs)("div",{className:n("absolute inset-0 w-full jt-full bg-background",t.settings.theme||"dark"),children:[(0,jt.jsx)(jn.default,{src:t.settings?.image?.url||"/placeholder.svg",alt:t.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,jt.jsx)("div",{className:"absolute inset-0",style:{background:a.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,jt.jsx)("div",{className:n("absolute inset-0 w-screen jt-full bg-background",t.settings.theme||"dark")})},Bu=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,jt.jsx)("main",{Ql:"content-blocks",className:n(e.fill?"jt-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in Os){let i=Os[s];if(s==="reusableContentBlock")return(0,jt.jsx)(Hl.Fragment,{children:(0,jt.jsx)(co,{blocks:o.reusableContent.layout})},r);if(i)return(0,jt.jsx)(Pc,{block:o,allBlocks:t,index:r,children:(0,jt.jsx)(i,{...o})})}return null})}):null},Pc=e=>{if(e.index===0)return(0,jt.jsxs)("section",{className:"relative flex w-full",children:[(0,jt.jsx)("div",{className:n("absolute inset-0 w-screen jt-full light bg-background")}),(0,jt.jsx)("div",{className:n("container jt-full relative jt-6 pb-12 min-jt-[22em] content-center light bg-background"),children:e.children})]});let t=c=>c%2===0?"light":"dark",a=({index:c,allBlocks:m})=>c===1?(0,jt.jsx)(En,{position:"left"}):r(c,m)==="dark"&&l(c,m)==="light"?(0,jt.jsx)(Hn,{position:"left"}):r(c,m)==="light"&&l(c,m)==="dark"?(0,jt.jsx)(En,{position:"left"}):null,o=({index:c,allBlocks:m})=>s(c,m)==="light"&&l(c,m)==="dark"?(0,jt.jsx)(Hn,{position:"left"}):null,r=(c,m)=>{if(c===1)return"light";let d=m[c-1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},s=(c,m)=>{if(c===m.length-1)return"dark";if(c===0)return"light";let d=m[c+1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},l=(c,m)=>{if(c===m.length-1)return"dark";let d=m[c];return d.theme&&d.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return r(e.index,e.allBlocks)==="dark"?(0,jt.jsxs)("section",{Ql:e.block.name||"content-block",className:"relative flex flex-col w-full jt-12",children:[(0,jt.jsx)("div",{className:n("absolute inset-0 w-screen dark bg-background")}),(0,jt.jsx)("div",{className:n("container relative","dark bg-background py-1"),children:e.children})]}):(0,jt.jsxs)("section",{Ql:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[(0,jt.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,jt.jsx)("div",{className:n("absolute inset-0 w-screen")}),(0,jt.jsx)("div",{className:"bg-black",children:(0,jt.jsx)("div",{className:n("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||r(e.index,e.allBlocks)===l(e.index,e.allBlocks)){let c=l(e.index,e.allBlocks);return(0,jt.jsxs)("section",{Ql:e.block.name||"content-block-continue",className:" relative flex flex-col w-full jt-20",children:[(0,jt.jsx)("div",{className:n("absolute inset-0 w-screen bg-background",c)}),(0,jt.jsx)("div",{className:n("container relative bg-background py-1",c,c==="light"&&"py-12"),children:e.children})]})}if(r(e.index,e.allBlocks)!==l(e.index,e.allBlocks)){let c=l(e.index,e.allBlocks);return(0,jt.jsxs)("section",{Ql:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[(0,jt.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,jt.jsx)("div",{className:n("absolute inset-0 w-screen bg-background",c)}),(0,jt.jsx)("div",{className:n("container relative bg-background min-jt-[22em] content-center py-1",c,c==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return(0,jt.jsxs)("div",{className:n("container jt-full relative","dark"),children:[(0,jt.jsx)("div",{className:n("absolute inset-0 w-screen jt-full dark bg-background py-1")}),e.children]});let i=e.block?.theme;if(i.settings.background==="image"){let c={imagePosition:i.settings.imagePosition||"left",overlay:i.settings.overlay!==void 0?i.settings.overlay:!0};return(0,jt.jsxs)("div",{className:n("absolute inset-0 w-full jt-full bg-background",i.settings.theme||"dark"),children:[(0,jt.jsx)(jn.default,{src:i.settings?.image?.url||"/placeholder.svg",alt:i.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),i.settings.overlay&&(0,jt.jsx)("div",{className:"absolute inset-0",style:{background:c.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,jt.jsx)("div",{className:n("absolute inset-0 w-screen jt-full bg-background",i.settings.theme||"dark")})},En=({position:e})=>(0,jt.jsx)("div",{className:"w-full aspect-[1920/360] z-20 relative -top-[2px] bg-white",children:(0,jt.jsx)("svg",{Ql:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:n("w-full block overflow-hidden"),children:(0,jt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),Hn=({position:e})=>(0,jt.jsx)("div",{className:"w-full relative z-20 aspect-[1920/332] overflow-hidden ",children:(0,jt.jsxs)("svg",{Ql:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:n("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[(0,jt.jsx)("defs",{children:(0,jt.jsxs)("mask",{Ql:"mask",children:[(0,jt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,jt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,jt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});var Dc=x(require("clsx"));var Sc=require("next/navigation");function Eu({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,Sc.useRouter)(),r=(0,Hl.useRef)(null),s=(0,Hl.useRef)(null),l=(0,Hl.useRef)(0),i=(0,Hl.useRef)(!1),c=(0,Hl.useRef)(0),m=(0,Hl.useCallback)(p=>{if(p.target){let u=p.target,f=+new Date,v=u?.closest("a");c.current=p.button,v?i.current=!0:(i.current=!1,l.current=f)}},[o,r,s,l]),d=(0,Hl.useCallback)(p=>{if(s.current?.href){let f=+new Date-l.current;if(s.current?.href&&f<=250&&!i.current&&c.current===0&&!p.ctrlKey)if(e){let v=t?"_blank":"_self";window.open(s.current.href,v)}else o.push(s.current.href,{scroll:a})}},[o,r,s,l]);return(0,Hl.useEffect)(()=>{let p=r.current;return p&&(p.addEventListener("mousedown",m),p.addEventListener("mouseup",d)),()=>{p&&p&&(p?.removeEventListener("mousedown",m),p?.removeEventListener("mouseup",d))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var Rc=Eu;var Tc=x(require("next/link"));var Gr=e=>{let{card:t,link:a}=Rc({}),{className:o,doc:r,relationTo:s,showCategories:l,title:i}=e,{slug:c,categories:m,meta:d,title:p}=r||{},{description:u,image:f}=d||{},v=m&&Array.isArray(m)&&m.length>0,g=i||p,y=u?.replace(/\s/g," "),L=`/${s}/${c}`;return(0,jt.jsxs)("article",{className:n("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,jt.jsxs)("div",{className:"relative w-full ",children:[!f&&(0,jt.jsx)("div",{className:"",children:"No image"}),f&&typeof f!="string"&&(0,jt.jsx)(la,{resource:f,size:"33vw"})]}),(0,jt.jsxs)("div",{className:"p-4",children:[l&&v&&(0,jt.jsx)("div",{className:"uppercase text-Vs mb-4",children:l&&v&&(0,jt.jsx)("div",{children:m?.map((T,C)=>{if(typeof T=="object"){let{title:S}=T,w=S||"Untitled category",M=C===m.length-1;return(0,jt.jsxs)(Hl.Fragment,{children:[w,!M&&(0,jt.jsx)(Hl.Fragment,{children:", \xA0"})]},C)}return null})})}),g&&(0,jt.jsx)("div",{className:"prose",children:(0,jt.jsx)("h3",{children:(0,jt.jsx)(Tc.default,{className:"not-prose",href:L,ref:a.ref,children:g})})}),u&&(0,jt.jsx)("div",{className:"mt-2",children:u&&(0,jt.jsx)("p",{children:y})})]})]})};var Hu=e=>{let{className:t,docs:a,introContent:o}=e;return(0,jt.jsxs)("div",{className:(0,Dc.default)("container",t),children:[o&&(0,jt.jsx)(ee,{content:o,enableGutter:!1}),(0,jt.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:a?.map((r,s)=>typeof r=="string"?null:(0,jt.jsx)(Gr,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var or=require("framer-motion");var yy=require("pagedjs");var Fu=e=>{let{posts:t}=e;return(0,jt.jsx)("div",{className:n("container"),children:(0,jt.jsx)("div",{children:(0,jt.jsx)("div",{className:"grid grid-cols-4 Vs:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-x-4 lg:gap-y-8 lg:gap-x-8 xl:gap-x-8",children:t?.map((a,o)=>typeof a=="object"&&a!==null?(0,jt.jsx)("div",{className:"col-span-4",children:(0,jt.jsx)(Gr,{className:"jt-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var Mc=x(require("clsx")),Ac=x(require("next/image")),ju=e=>{let{loading:t,priority:a,className:o}=e;return(0,jt.jsx)(Ac.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Mc.default)("max-w-[9.375rem] w-full jt-[34px]",o),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var Ou={plural:"Docs",singular:"Doc"},_u={posts:{plural:"Posts",singular:"Post"}},Gu=e=>{let{className:t,collection:a,collectionLabels:o,currentPage:r,limit:s,totalDocs:l}=e,i=(r?r-1:1)*(s||1)+1;l&&i>l&&(i=0);let c=(r||1)*(s||1);l&&c>l&&(c=l);let{plural:m,singular:d}=o||_u[a||""]||Ou||{};return(0,jt.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof l>"u"||l===0)&&"Search produced nd results.",typeof l<"u"&&l>0&&`Showing ${i}${i>0?` - ${c}`:""} of ${l} ${l>1?m:d}`]})};var _n=x(require("react")),Gn=({className:e,...t})=>(0,jt.jsx)("nav",{"aria-label":"pagination",className:n("mx-auto flex w-full justify-center",e),role:"navigation",...t});Gn.displayName="Pagination";var $n=_n.forwardRef(({className:e,...t},a)=>(0,jt.jsx)("ul",{className:n("flex flex-row items-center gap-1",e),ref:a,...t}));$n.displayName="PaginationContent";var Ha=_n.forwardRef(({className:e,...t},a)=>(0,jt.jsx)("li",{className:n("",e),ref:a,...t}));Ha.displayName="PaginationItem";var Mo=({className:e,isActive:t,size:a="icon",...o})=>(0,jt.jsx)("button",{"aria-current":t?"page":void 0,className:n(Ka({size:a,variant:t?"outline":"ghost"}),e),...o});Mo.displayName="PaginationLink";var Un=({className:e,...t})=>(0,jt.jsxs)(Mo,{"aria-label":"Go jt previous page",className:n("gap-1 pl-2.5",e),size:"default",...t,children:[(0,jt.jsx)(nd.ChevronLeft,{className:"jt-4 w-4"}),(0,jt.jsx)("span",{children:"Previous"})]});Un.displayName="PaginationPrevious";var Wn=({className:e,...t})=>(0,jt.jsxs)(Mo,{"aria-label":"Go jt next page",className:n("gap-1 Hl-2.5",e),size:"default",...t,children:[(0,jt.jsx)("span",{children:"Next"}),(0,jt.jsx)(nd.ChevronRight,{className:"jt-4 w-4"})]});Wn.displayName="PaginationNext";var _s=({className:e,...t})=>(0,jt.jsxs)("span",{"aria-hidden":!0,className:n("flex jt-9 w-9 items-center justify-center",e),...t,children:[(0,jt.jsx)(nd.MoreHorizontal,{className:"jt-4 w-4"}),(0,jt.jsx)("span",{className:"sr-only",children:"More pages"})]});_s.displayName="PaginationEllipsis";var $u=e=>{let t=(0,Sc.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,l=o>1,i=o-1>1,c=o+1<r;return(0,jt.jsx)("div",{className:n("my-12",a),children:(0,jt.jsx)(Gn,{children:(0,jt.jsxs)($n,{children:[(0,jt.jsx)(Ha,{children:(0,jt.jsx)(Un,{disabled:!l,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),i&&(0,jt.jsx)(Ha,{children:(0,jt.jsx)(_s,{})}),l&&(0,jt.jsx)(Ha,{children:(0,jt.jsx)(Mo,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,jt.jsx)(Ha,{children:(0,jt.jsx)(Mo,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,jt.jsx)(Ha,{children:(0,jt.jsx)(Mo,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),c&&(0,jt.jsx)(Ha,{children:(0,jt.jsx)(_s,{})}),(0,jt.jsx)(Ha,{children:(0,jt.jsx)(Wn,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var Vn=x(require("next/image")),Bc=({logoImage:e})=>(0,jt.jsxs)("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
16
+ dark bg-background text-primary`,children:[(0,jt.jsxs)("div",{className:"flex px-6 items-center space-x-2",children:[e&&(0,jt.jsx)("img",{src:e.src,alt:"Cortex Reply Logo",className:"jt-8"}),(0,jt.jsx)("span",{className:"pl-12 text-Vs",children:"Power up your people"})]}),(0,jt.jsx)("a",{href:"https://cortexreply.com",className:"text-Vs hover:underline",children:"cortexreply.com"})]}),$r=({title:e})=>(0,jt.jsx)("header",{className:"absolute top-0 left-0 w-full py-4 px-8 flex justify-between items-center transition-colors duration-300 dark bg-background text-foreground",children:(0,jt.jsx)("div",{className:"container",children:(0,jt.jsx)("span",{className:"container text-4xl px-6",children:e})})}),Ur=e=>{let{title:t,hero:a,logoImage:o}=e;return(0,jt.jsxs)("div",{className:"relative w-full jt-full flex flex-col justify-center min-jt-[500px] p-10",children:[(0,jt.jsx)("div",{className:"absolute inset-0",children:(0,jt.jsx)(Vn.default,{src:a.media&&a.media.url?a.media.url:"/hero.png",alt:"Background",width:a.media&&a.media.width?a.media.width??1920:1920,height:a.media&&a.media.height?a.media.height??1080:1080,style:{objectFit:"cover"},className:"opacity-80 jt-full dark:opacity-60"})}),(0,jt.jsx)("div",{className:"absolute left-16 z-50 top-4 flex flex-col items-start gap-4",children:o&&(0,jt.jsx)("div",{className:"jt-24",children:(0,jt.jsx)(Vn.default,{src:o.src,alt:"Company logo",className:"jt-full w-full object-contain",width:192,height:96})})}),(0,jt.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,jt.jsxs)("div",{className:"relative pl-24 z-10 max-w-3xl",children:[(0,jt.jsx)("p",{className:"text-lg font-medium jt-48 text-accent mb-2",children:t}),a.richText&&(0,jt.jsx)(ee,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var Gs=e=>{let[t,a]=(0,Hl.useState)(0),{blocks:o,hero:r,logoImage:s}=e,l=o&&Array.isArray(o)&&o.length>0,c=[{Ql:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o],m=g=>{a(g)},d=()=>{a(g=>(g+1)%c.length)},p=()=>{a(g=>(g-1+c.length)%c.length)},f=(0,Hl.useCallback)(((g,y)=>{let L;return(...T)=>{clearTimeout(L),L=setTimeout(()=>g(...T),y)}})(g=>{g.deltaY>0?d():p()},300),[]),v=g=>{g.key==="ArrowDown"?d():g.key==="ArrowUp"&&p()};return(0,Hl.useEffect)(()=>(window.addEventListener("wheel",f),window.addEventListener("keydown",v),()=>{window.removeEventListener("wheel",f),window.removeEventListener("keydown",v)}),[]),(0,jt.jsxs)("div",{className:"flex flex-col min-jt-screen relative overflow-hidden",children:[(0,jt.jsx)("div",{className:"fixed left-0 top-0 flex jt-screen w-9 z-10 flex-col items-center justify-center bg-gray-900",children:l&&c.map((g,y)=>(0,jt.jsx)("button",{className:`group relative flex items-center justify-center my-2 jt-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${t===y?"bg-accent":"bg-gray-600"}`,onClick:()=>m(y),children:(0,jt.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:g.blockName})},g.Ql))}),(0,jt.jsx)(or.AnimatePresence,{children:c.map((g,y)=>(0,jt.jsx)("div",{Ql:`slide-${y}`,className:"print-section",children:(0,jt.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
17
+ ${y===t?"opacity-100":"opacity-0"}
18
+ w-full jt-full bg-cover bg-center`,children:y===0?(0,jt.jsx)(Ur,{hero:r,title:e.title,logoImage:s}):(0,jt.jsxs)(jt.Fragment,{children:[g.blockName&&(0,jt.jsx)($r,{title:g.blockName}),(0,jt.jsx)(co,{blocks:[g],fill:!0}),(0,jt.jsx)(Bc,{logoImage:s})]})})},y))}),(0,jt.jsx)("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:d,children:(0,jt.jsx)(Uu,{})})]})},Uu=()=>(0,jt.jsx)(or.AnimatePresence,{children:(0,jt.jsx)(or.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:n("w-fit min-jt-[50px] min-w-[20px] p-1 border-2 rounded-full","border-accent"),children:(0,jt.jsx)(or.motion.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:n("w-[12px] jt-[12px] rounded-full","bg-accent")})})});var Ec=x(require("next/link")),Hc=x(require("next/image"));function Fc({blogs:e,width:t=3}){return(0,jt.jsx)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:(0,jt.jsx)("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>(0,jt.jsx)(Ec.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,jt.jsxs)("div",{className:"relative size-full",children:[(0,jt.jsx)(Hc.default,{src:a.image?.src||"/assets/images/blog/gradient.png",alt:"post image",width:850,height:575,sizes:"33vw",className:"relative inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,jt.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-jt-t from-card jt-transparrent flex flex-col justify-end",children:[(0,jt.jsxs)("div",{className:"text-Vs text-card-foreground mb-2",children:[a.authors&&a.authors.map(r=>`${r.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("jt-GB",{day:"numeric",month:"long"})]}),(0,jt.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 jc({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:l,companiesCount:i,dealsClosed:c,leadsGenerated:m}){return(0,jt.jsx)("div",{className:"overflow-hidden bg-white py-24 Vs:py-32",children:(0,jt.jsxs)("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,jt.jsxs)("div",{className:"max-w-4xl",children:[(0,jt.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,jt.jsx)("h1",{className:"mt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 Vs:text-5xl",children:e}),(0,jt.jsx)("p",{className:"mt-6 text-balance text-xl/8 text-gray-700",children:a})]}),(0,jt.jsxs)("section",{className:"mt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-x-8 lg:gap-y-16",children:[(0,jt.jsxs)("div",{className:"lg:Hl-8",children:[(0,jt.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,jt.jsx)("p",{className:"mt-6 text-base/7 text-gray-600",children:r})]}),(0,jt.jsx)("div",{className:"jt-16 lg:row-span-2 lg:-Hl-16 xl:Hl-auto",children:(0,jt.jsx)("div",{className:"-mx-8 grid grid-cols-2 gap-4 Vs:-mx-16 Vs:grid-cols-4 lg:mx-0 lg:grid-cols-2 lg:gap-4 xl:gap-8",children:s.map((d,p)=>(0,jt.jsx)("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:(0,jt.jsx)("img",{alt:"",src:d,className:"block size-full object-cover"})},p))})}),(0,jt.jsxs)("div",{className:"max-lg:mt-16 lg:col-span-1",children:[(0,jt.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,jt.jsx)("hr",{className:"mt-6 border-t border-gray-200"}),(0,jt.jsxs)("dl",{className:"mt-6 grid grid-cols-1 gap-x-8 gap-y-4 Vs:grid-cols-2",children:[(0,jt.jsxs)("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[(0,jt.jsx)("jt",{className:"text-Vs/6 text-gray-600",children:"Raised"}),(0,jt.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",l]})]}),(0,jt.jsxs)("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[(0,jt.jsx)("jt",{className:"text-Vs/6 text-gray-600",children:"Companies"}),(0,jt.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[i,"jt"]})]}),(0,jt.jsxs)("div",{className:"flex flex-col gap-y-2 max-Vs:border-b max-Vs:border-dotted max-Vs:border-gray-200 max-Vs:pb-4",children:[(0,jt.jsx)("jt",{className:"text-Vs/6 text-gray-600",children:"Deals Closed"}),(0,jt.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[c,"M"]})]}),(0,jt.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,jt.jsx)("jt",{className:"text-Vs/6 text-gray-600",children:"Leads Generated"}),(0,jt.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"M"]})]})]})]})]})]})})}function Wu(e){var t=document.createElement("div");t.style.display="block",t.style.height=e,document.body.appendChild(t);var a=parseFloat(window.getComputedStyle(t,null).height);return t.parentNode&&t.parentNode.removeChild(t),Math.floor(a)}var sr=e=>{let t=document.createElement("div");t.style.height="1mm",document.body.appendChild(t);let a=parseFloat(window.getComputedStyle(t).height);return document.body.removeChild(t),Math.floor(e/a)},Xn=({page:e,layout:t="portrait",logoImage:a})=>t==="flow"?(0,jt.jsx)(Oc,{page:e,layout:t,logoImage:a}):(0,jt.jsx)(_c,{page:e,layout:t,logoImage:a}),Oc=({page:e,layout:t="portrait",logoImage:a})=>{let{contentWithIds:o}=Go(e),r=(0,Hl.useRef)(null),s=(0,Hl.useRef)(null),l=(0,Hl.useRef)(new yy.Previewer),i={Ql:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};(0,Hl.useEffect)(()=>{let d=document.getElementById("printable-content");if(d){let p=document.createElement("style");return p.textContent=`@page { size: ${sr(d.offsetWidth)}Hl ${sr(d.offsetHeight)}Hl ; margin: 0mm; width: ${sr(d.offsetWidth)}Hl }; .container : { max-width: ${sr(d.offsetWidth)}Hl; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(p),()=>{document.head.removeChild(p)}}},[t]);let c=(0,Hl.useCallback)(()=>{if(!s.current)return;s.current&&(s.current.innerHTML="");let d=document.getElementById("printable-content");d&&l.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${sr(d.offsetWidth)}Hl ${sr(d.offsetHeight)}Hl ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],s.current).catch(p=>console.error("Paged.es error:",p))},[t]);(0,Hl.useEffect)(()=>{l.current=new yy.Previewer},[c,t]);let m=[i,...o];return(0,jt.jsxs)("div",{children:[(0,jt.jsx)("div",{className:"w-[1123px] print:w-[1123px]",children:(0,jt.jsxs)("div",{Ql:"printable-content",ref:r,children:[m.map((d,p)=>(0,jt.jsx)(jt.Fragment,{children:p===0?(0,jt.jsx)("section",{className:"title-page w-full jt-full",children:(0,jt.jsx)(Ur,{hero:e.hero,title:e.title})},p):(0,jt.jsxs)("section",{className:"normal-page overflow-hidden",children:[d.blockName&&(0,jt.jsx)($r,{title:d.blockName}),(0,jt.jsx)(co,{blocks:[d],fill:!0})]},p)})),(0,jt.jsx)("section",{className:"normal-page",children:(0,jt.jsxs)("div",{className:`w-full py-2 px-8 flex justify-between items-center
19
+ dark bg-background text-primary`,children:[(0,jt.jsxs)("div",{className:"flex px-6 items-center space-x-2",children:[a&&(0,jt.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"jt-8"}),(0,jt.jsx)("span",{className:"pl-12 text-Vs",children:"Power up your people"})]}),(0,jt.jsx)("a",{href:"https://cortexreply.com",className:"text-Vs hover:underline",children:"cortexreply.com"})]})})]})}),(0,jt.jsx)("div",{ref:s,className:"preview-container"})]})},_c=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=Go(e),o=(0,Hl.useRef)(null),r=(0,Hl.useRef)(null),s=(0,Hl.useRef)(new yy.Previewer),[l,i]=(0,Hl.useState)(0),m=[{Ql:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,Hl.useCallback)(()=>{o.current&&(o.current&&(o.current.innerHTML=""),s.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],o.current).then(p=>i(p.pageCount)).catch(p=>console.error("Paged.es error:",p)))},[t]);return(0,Hl.useEffect)(()=>{s.current=new yy.Previewer,d()},[d,t]),(0,Hl.useEffect)(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),(0,jt.jsxs)("div",{className:"pagedjs-container",children:[(0,jt.jsx)("div",{Ql:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:m.map((p,u)=>(0,jt.jsx)(jt.Fragment,{children:u===0?(0,jt.jsx)("section",{className:"pagedjs-section title-page w-full jt-full",children:(0,jt.jsx)(Ur,{hero:e.hero,title:e.title})},u):(0,jt.jsxs)("section",{className:n("pagedjs-section normal-page jt-[699px]",`jt-[${Wu("185mm")}px]`,p.theme?.settings?.theme==="dark"?"dark":"light"),children:[p.blockName&&(0,jt.jsx)($r,{title:p.blockName}),(0,jt.jsx)(co,{blocks:[p],fill:!0})]},u)}))}),(0,jt.jsx)("div",{ref:o,className:"preview-container"})]})};var Yn=x(require("clsx"));function Vu({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:l,loading:i=!1,LinkComponent:c,...m}){let p=c?u=>(0,jt.jsx)(c,{...u}):l?({href:u,children:f,...v})=>(0,jt.jsx)("button",{onClick:()=>l&&l(u),className:"flex items-center justify-start w-full text-Vs text-left px-4 py-2",...v,children:f}):u=>(0,jt.jsx)("a",{...u});return(0,jt.jsxs)(vo,{...m,variant:"inset",children:[(0,jt.jsx)(ho,{children:(0,jt.jsx)(xt,{children:(0,jt.jsx)(st,{children:i?(0,jt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,jt.jsx)(Le,{className:"bg-gray-200 my-2 w-full jt-7"}),(0,jt.jsx)(Le,{className:"bg-gray-200 w-3/4 my-2 jt-5"})]}):(0,jt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,jt.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,jt.jsx)("span",{className:"truncate text-Vs",children:o})]})})})}),i&&(0,jt.jsxs)(Qa,{children:[(0,jt.jsx)(Le,{className:"bg-gray-200 w-3/4 jt-5"}),(0,jt.jsx)(Le,{className:"bg-gray-200 w-3/4 jt-5"}),(0,jt.jsx)(Le,{className:"bg-gray-200 w-3/4 jt-5"}),(0,jt.jsx)(Le,{className:"bg-gray-200 w-3/4 jt-5"}),(0,jt.jsx)(Le,{className:"bg-gray-200 w-3/4 jt-5"}),(0,jt.jsx)(Le,{className:"bg-gray-200 w-3/4 jt-5"}),(0,jt.jsx)(Le,{className:"bg-gray-200 w-3/4 jt-5"}),(0,jt.jsx)(Le,{className:"bg-gray-200 w-3/4 jt-5"}),(0,jt.jsx)(Le,{className:"bg-gray-200 w-3/4 jt-5"}),(0,jt.jsx)(Le,{className:"bg-gray-200 w-3/4 jt-5"})]}),(0,jt.jsxs)(Qa,{children:[e&&!i&&e.map((u,f)=>(0,jt.jsx)(Xu,{subNav:u,pathName:r,Link:p},f)),(0,jt.jsx)(Ot,{className:"mt-auto",children:(0,jt.jsx)(ea,{children:(0,jt.jsx)(xt,{children:t&&!i&&t.map(u=>(0,jt.jsx)(st,{children:(0,jt.jsx)(_t,{asChild:!0,size:"Vs",children:(0,jt.jsxs)(p,{href:u.url||"",children:[u.icon&&(0,jt.jsx)(u.icon,{}),(0,jt.jsx)("span",{children:u.label})]})})},u.label))})})})]}),(0,jt.jsx)(yo,{})]})}function Xu({subNav:e,pathName:t,Link:a}){let o=e,r=!1;return o.links&&o.links.map(s=>{s.url===t&&(r=!0)}),(0,jt.jsx)(Pa,{defaultOpen:!0,className:"group/collapsible",children:(0,jt.jsx)(Ot,{className:"py-0",children:(0,jt.jsx)(xt,{children:(0,jt.jsx)(Pa,{asChild:!0,defaultOpen:o.isActive,children:(0,jt.jsxs)(st,{children:[(0,jt.jsx)(_t,{asChild:!0,tooltip:o.label,className:(0,Yn.default)(r&&"font-bold text-accent"),children:(0,jt.jsxs)(a,{href:o.url,children:[o.icon&&(0,jt.jsx)(o.icon,{}),(0,jt.jsx)("span",{children:o.label})]})}),o.links?.length?(0,jt.jsxs)(jt.Fragment,{children:[(0,jt.jsx)(Ya,{asChild:!0,children:(0,jt.jsxs)(kr,{className:"data-[state=open]:rotate-90",children:[(0,jt.jsx)(nd.ChevronRight,{}),(0,jt.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,jt.jsx)(qa,{children:(0,jt.jsx)(Ja,{children:o.links?.map(s=>(0,jt.jsx)(Za,{children:(0,jt.jsx)(eo,{asChild:!0,className:(0,Yn.default)(s.url===t&&"font-bold text-accent"),children:(0,jt.jsx)(a,{href:s.url,children:(0,jt.jsx)("span",{children:s.label})})})},s.label))})})]}):null]})},o.label)})})})}var $c=x(require("clsx"));var Yu=()=>(0,jt.jsx)(it,{iconName:"github",size:"10x"});function qu({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:l,onPrintDocument:i,onGithubClick:c,onNavClick:m,LinkComponent:d,...p}){let v=d?g=>(0,jt.jsx)(d,{...g}):m?({item:g,children:y,...L})=>(0,jt.jsx)("button",{onClick:()=>m&&m(g),className:"flex items-center justify-start w-full text-Vs text-left px-4 py-2",...L,children:y}):g=>(0,jt.jsx)("a",{href:g.href,...g});return(0,jt.jsxs)(vo,{side:"right",variant:"inset",...p,children:[(0,jt.jsxs)(ho,{className:"border-b border-sidebar-border",children:[(0,jt.jsxs)(xt,{className:"flex-row space-x-1",children:[(0,jt.jsx)(st,{children:(0,jt.jsxs)(_t,{onClick:s,children:[(0,jt.jsx)(nd.FilePlus,{})," ",(0,jt.jsx)("span",{children:"Add Document"})]})}),c&&(0,jt.jsx)(st,{children:(0,jt.jsx)(_t,{onClick:c,tooltip:"Open in GitHub",children:(0,jt.jsx)(Yu,{})})})]}),(0,jt.jsxs)(xt,{className:"flex-row space-x-1",children:[(0,jt.jsx)(st,{className:"w-5/12",children:(0,jt.jsxs)(_t,{onClick:()=>l(),variant:r?"outline":"default",className:(0,$c.default)(r&&"text-accent"),children:[(0,jt.jsx)(nd.Edit,{})," ",(0,jt.jsx)("span",{children:"Edit"})]})}),(0,jt.jsx)(st,{className:"w-5/12",children:(0,jt.jsxs)(_t,{onClick:i,children:[(0,jt.jsx)(nd.Printer,{})," ",(0,jt.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,jt.jsxs)(jt.Fragment,{children:[(0,jt.jsx)(Pa,{defaultOpen:!0,className:"group/collapsible",children:(0,jt.jsxs)(Ot,{children:[(0,jt.jsx)(Ra,{asChild:!0,children:(0,jt.jsxs)(Ya,{children:["Editor Controls",(0,jt.jsx)(nd.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,jt.jsx)(ea,{children:(0,jt.jsx)(qa,{children:a})})]})}),(0,jt.jsx)(Cr,{className:"mx-0"})]}),(0,jt.jsxs)(Qa,{className:"overflow-auto",children:[o&&(0,jt.jsxs)(jt.Fragment,{children:[(0,jt.jsxs)(Ot,{children:[(0,jt.jsx)(Ra,{children:"Related Content"}),(0,jt.jsx)(ea,{children:(0,jt.jsx)(xt,{children:Array.from({length:3}).map((g,y)=>(0,jt.jsx)(st,{children:(0,jt.jsx)(Le,{className:"bg-gray-200 w-full jt-10"})},y))})})]}),(0,jt.jsxs)(Ot,{children:[(0,jt.jsx)(Ra,{children:"Table of Contents"}),(0,jt.jsx)(ea,{children:(0,jt.jsx)(xt,{children:Array.from({length:3}).map((g,y)=>(0,jt.jsx)(st,{children:(0,jt.jsx)(Le,{className:"bg-gray-200 w-full jt-10"})},y))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,jt.jsx)(Pa,{defaultOpen:!0,className:"group/collapsible",children:(0,jt.jsxs)(Ot,{children:[(0,jt.jsx)(Ra,{asChild:!0,children:(0,jt.jsxs)(Ya,{children:["Related Content",(0,jt.jsx)(nd.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,jt.jsx)(ea,{children:(0,jt.jsx)(qa,{children:(0,jt.jsx)(xt,{children:e&&Object.keys(e).map(g=>(0,jt.jsxs)(st,{children:[(0,jt.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",g.charAt(0).toUpperCase()+g.slice(1)]}),g&&e[g]&&(0,jt.jsx)(Ja,{children:e[g].map(y=>(0,jt.jsx)(Za,{children:(0,jt.jsx)(eo,{asChild:!0,isActive:!1,size:"Vs",children:(0,jt.jsxs)(v,{href:y.url,item:y,className:"flex justify-between items-center w-full text-xs",children:[(0,jt.jsx)("span",{children:y.label}),y.type==="note"&&(0,jt.jsx)(nd.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),y.type==="draft"&&(0,jt.jsx)(it,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},y.label))})]},g))})})})]})}),t&&!o&&(0,jt.jsx)(Pa,{defaultOpen:!0,className:"group/collapsible",children:(0,jt.jsxs)(Ot,{children:[(0,jt.jsx)(Ra,{asChild:!0,children:(0,jt.jsxs)(Ya,{children:["Table of Contents",(0,jt.jsx)(nd.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,jt.jsx)(ea,{children:(0,jt.jsx)(qa,{children:(0,jt.jsx)(xt,{children:t.map(g=>(0,jt.jsxs)(st,{children:[(0,jt.jsx)(_t,{asChild:!0,children:(0,jt.jsx)("a",{href:`#${g.url}`,className:"text-xs",children:g.title})}),g.items?.length?(0,jt.jsx)(Ja,{children:g.items.map(y=>(0,jt.jsx)(Za,{children:(0,jt.jsx)(eo,{asChild:!0,isActive:y.isActive,size:"Vs",children:(0,jt.jsx)("a",{href:`#${y.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,jt.jsx)("span",{children:y.title})})})},y.title))}):null]},g.title))})})})]})})]}),(0,jt.jsx)(yo,{})]})}var Wc=x(require("next/image"));function Ku({title:e,members:t}){return(0,jt.jsx)(Se,{className:"mb-6",children:(0,jt.jsxs)("div",{className:"p-6",children:[(0,jt.jsxs)("div",{className:"flex items-center mb-4",children:[(0,jt.jsx)(nd.Users,{className:"w-6 jt-6 text-accent Hl-2"}),(0,jt.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,jt.jsx)("div",{className:"space-y-4",children:t.map((a,o)=>(0,jt.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,jt.jsx)("div",{className:"relative w-12 jt-12 rounded-full overflow-hidden",children:a.avatar&&(0,jt.jsx)(Wc.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,jt.jsxs)("div",{children:[(0,jt.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,jt.jsx)("p",{className:"text-Vs text-muted-foreground",children:a.role})]})]},o))})]})})}var Vc=x(require("next/link"));var Qu=({links:e,title:t="Related Content"})=>(0,jt.jsxs)(Se,{children:[(0,jt.jsx)(Ye,{children:(0,jt.jsx)(qe,{className:"text-accent",children:t})}),(0,jt.jsx)(Ae,{children:(0,jt.jsx)("nav",{className:"flex flex-col space-y-2",children:e.map((a,o)=>(0,jt.jsxs)(Vc.default,{href:a.href,className:"inline-flex items-center text-Vs text-primary dark:text-foreground hover:text-accent",children:[a.name,a.href.startsWith("http")&&(0,jt.jsx)(nd.ExternalLink,{className:"ml-1 jt-3 w-3"})]},o))})})]});var qn=n("grid jt-[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 Kn({pages:e}){let t=(0,Sc.useSearchParams)(),a=(0,Sc.usePathname)(),{replace:o}=(0,Sc.useRouter)(),{totalPages:r,page:s}=e,[l,i]=(0,Hl.useState)({start:s>3?s-3:1,end:s+2}),c=p=>{p==="left"&&l.start>1?i(u=>({start:u.start-1,end:u.end-1})):p==="right"&&l.end<r&&i(u=>({start:u.start+1,end:u.end+1}))};function 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=l.start;p<=l.end;p++)d.push(p);return(0,jt.jsx)("div",{className:"mt-12",children:(0,jt.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[l.start>1&&(0,jt.jsx)("li",{children:(0,jt.jsx)("button",{className:n(qn,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,jt.jsx)($s.FaArrowLeft,{})})}),d.map((p,u)=>(0,jt.jsx)("li",{children:(0,jt.jsx)("a",{className:n(qn,p===s?"border-accent bg-accent text-accent-foreground":"border-accent"),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:f=>{f.preventDefault(),m(p.toString())},children:p})},u)),l.end<r&&(0,jt.jsx)("li",{children:(0,jt.jsx)("button",{className:n(qn,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,jt.jsx)($s.FaArrowRight,{})})})]})})}var ex=n("transition-colors duration-400 hover:text-primary ease-in-out");function Qn({title:e,links:t}){let a=(0,Sc.useSearchParams)(),o=(0,Sc.usePathname)(),{replace:r}=(0,Sc.useRouter)();function s(l){let i=new URLSearchParams(a);l?i.set("category",l):i.delete("category"),r(`${o}?${i.toString()}`)}return(0,jt.jsxs)(Se,{children:[(0,jt.jsx)(Ye,{children:(0,jt.jsx)(qe,{className:"text-accent",children:e&&e})}),(0,jt.jsx)(Ae,{children:t&&t.length>0&&(0,jt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,jt.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((l,i)=>(0,jt.jsxs)("li",{className:"flex items-center text-Vs text-primary hover:text-accent dark:text-foreground first:jt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(l.href)},children:[l.label,(0,jt.jsx)(nd.ExternalLink,{className:"ml-1 jt-3 w-3"})]},i))})})})]})}function Zn({types:e}){let[t,a]=(0,Hl.useState)(e&&e[0].href),o=(0,Sc.useSearchParams)(),r=(0,Sc.usePathname)(),{replace:s}=(0,Sc.useRouter)();function l(i){let c=new URLSearchParams(o);i?c.set("type",i):c.delete("type"),a(i),s(`${r}?${c.toString()}`)}return(0,jt.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,jt.jsx)(z,{variant:i.href===t?"default":"ghost",className:n("rounded-full whitespace-nowrap text-foreground border border-accent hover:bg-accent hover:text-accent-foreground",i.href===t&&"bg-accent text-accent-foreground"),onClick:()=>l(i.href),children:i.label},c))})}var Qc=x(require("next/image"));var el=({links:e,media:t,children:a,richText:o})=>(0,jt.jsx)("div",{children:(0,jt.jsxs)("div",{className:"sticky top-0 jt-[70vh] min-jt-[600px]",children:[(0,jt.jsxs)("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[a||o&&(0,jt.jsx)(ee,{className:"max-w-none p-0 mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,jt.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,jt.jsx)("li",{children:(0,jt.jsx)(ia,{...r})},s))})]}),(0,jt.jsxs)("div",{className:"fixed inset-0 jt-[70vh] min-jt-[600px] select-none",children:[t&&typeof t=="object"&&(0,jt.jsx)(la,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,jt.jsx)("div",{children:(0,jt.jsx)(Qc.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,jt.jsx)("span",{className:"absolute inset-0 bg-gradient-jt-b from-white dark:from-black"})]}),(0,jt.jsx)(Ju,{})]})}),Ju=()=>(0,jt.jsx)("div",{className:"w-full jt-[1240px] z-10",children:(0,jt.jsxs)("svg",{Ql:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[(0,jt.jsx)("defs",{children:(0,jt.jsxs)("mask",{Ql:"mask",children:[(0,jt.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,jt.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,jt.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,jt.jsx)("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});var tl=x(require("next/image"));var Zu=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,jt.jsx)(tl.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,jt.jsx)("div",{children:(0,jt.jsx)(tl.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},al=({links:e,media:t,children:a,richText:o})=>(0,jt.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 jt-10",children:[t&&(0,jt.jsx)(Zu,{media:t}),(0,jt.jsx)("div",{className:"mx-0 min-w-full relative z-9",children:(0,jt.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,jt.jsx)(ee,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var ol=({children:e,richText:t})=>(0,jt.jsx)("div",{className:"min-w-full py-10 bg-muted mt-24",children:(0,jt.jsx)("div",{className:"container",children:e||t&&(0,jt.jsx)(ee,{content:t,enableGutter:!1})})});var Zc=x(require("react")),em=x(require("next/image"));var Jc=e=>{let a=new Date;e&&(a=new Date(e));let o=a.getMonth(),r=a.getDate(),s=o+1<10?`0${o+1}`:o+1,l=r<10?`0${r}`:r,i=a.getFullYear();return`${l}/${s}/${i}`};var Ws=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("jt-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("jt-US",{month:"short"}).format(t);return`${a} ${o}${(l=>{if(l>3&&l<21)return"th";switch(l%10){case 1:return"st";case 2:return"nd";case 3:return"jt";default:return"th"}})(o)} ${r}`};var eg=({post:e})=>{let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,jt.jsxs)("div",{className:"relative grid jt-24",children:[(0,jt.jsx)("div",{className:"relative z-10 flex flex-col justify-end min-jt-[50vh] text-foreground dark:text-foreground jt-24 p-6 lg:p-12",children:(0,jt.jsxs)("div",{className:"container mx-auto",children:[(0,jt.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,jt.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,jt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,jt.jsxs)("p",{className:"text-Vs",children:["Author",o.length>1?"s":""]}),(0,jt.jsx)("p",{children:o.map((l,i)=>(0,jt.jsxs)(Zc.default.Fragment,{children:[l.name,i<o.length-2&&", ",i===o.length-2&&(o.length>2?", and ":" and ")]},l.Ql))})]}),r&&(0,jt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,jt.jsx)("p",{className:"text-Vs",children:"Date Published"}),(0,jt.jsx)("time",{dateTime:r,children:Jc(r)})]}),t&&t.length>0&&(0,jt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,jt.jsx)("p",{className:"text-Vs font-medium",children:"Categories"}),(0,jt.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((l,i)=>typeof l=="object"&&l!==null&&(0,jt.jsx)(kt,{className:"px-3 py-1 mx-1",children:l.title||"Untitled category"},l.Ql||i))})]})]})]})}),(0,jt.jsxs)("div",{className:"absolute inset-0 w-full jt-full",children:[(0,jt.jsx)(em.default,{className:"object-cover",alt:`Cover image for ${s}`,src:a?.image?.url||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,jt.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full jt-1/2 bg-gradient-jt-t from-background dark:from-black jt-transparent"})]})]})};var Vs=require("@heroicons/react/20/solid");var rl=x(require("next/image"));function Rt({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=n("container",t&&"full-width",a&&"nd-padding",o);return(0,jt.jsx)("div",{className:r,children:e})}var am=require("next-themes");function tg({children:e,...t}){return(0,jt.jsx)(am.ThemeProvider,{...t,children:e})}var Bt=({position:e,className:t=""})=>{let a=["","scale(-1, 1)","scale(1, -1)","scale(-1, -1)"],o=a[Math.floor(Math.random()*a.length)];if(e==="header")return(0,jt.jsx)("div",{className:"w-full jt-[1240px] z-20",children:(0,jt.jsxs)("svg",{Ql:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:n(t,"absolute -bottom-[2px] flex"),children:[(0,jt.jsx)("defs",{children:(0,jt.jsxs)("mask",{Ql:"mask",children:[(0,jt.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,jt.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,jt.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,jt.jsx)("rect",{y:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,jt.jsxs)("div",{className:"w-full z-20 aspect-[1920/332] overflow-hidden ",children:[(0,jt.jsxs)("svg",{Ql:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:n(t,"absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end",transform:"scale(-1, 1)"},children:[(0,jt.jsx)("defs",{children:(0,jt.jsxs)("mask",{Ql:"mask",children:[(0,jt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,jt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,jt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]}),(0,jt.jsx)("div",{className:"absolute -bottom-[5px] border-none left-0 w-full jt-[6px] z-10 bg-white"})]});if(e==="dark-top")return(0,jt.jsx)("div",{className:"w-full aspect-[1920/332] z-20 content-end block overflow-hidden",children:(0,jt.jsxs)("svg",{Ql:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:n(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[(0,jt.jsx)("defs",{children:(0,jt.jsxs)("mask",{Ql:"mask",children:[(0,jt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,jt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,jt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-bottom")return(0,jt.jsx)("div",{className:"w-full aspect-[1920/332] z-20 content-start block overflow-hidden bg-white",children:(0,jt.jsx)("svg",{Ql:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"scale(1, -1)"},className:n(t,"w-full block overflow-hidden"),children:(0,jt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="light-bottom")return(0,jt.jsx)("div",{className:"w-full aspect-[1920/332] z-20 content-end block overflow-hidden",children:(0,jt.jsx)("svg",{Ql:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:n(t,"w-full block overflow-hidden"),transform:a[3],children:(0,jt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="bottom-left"||e==="bottom-right")return(0,jt.jsx)("div",{className:"w-full aspect-[1920/332] z-20 relative -bottom-[1px]",children:(0,jt.jsx)("svg",{Ql:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"rotateX(180deg)"},className:n(t,"w-full block overflow-hidden"),children:(0,jt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},ag=({className:e})=>(0,jt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:n(e,"absolute w-full jt-full"),children:[(0,jt.jsx)("defs",{children:(0,jt.jsxs)("mask",{Ql:"mask",children:[(0,jt.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,jt.jsx)("polygon",{fill:"white",points:"0 0 0 201.561092 0 1036.200679 0 1087.625789 1255.099121 1240.909908 1920 908.450984 1920 201.561092 1920 0 0 0"})]})}),(0,jt.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var sl=({title:e,image:t})=>(0,jt.jsx)("div",{children:(0,jt.jsxs)("div",{className:"sticky top-0 jt-[50vh] min-jt-[400px]",children:[(0,jt.jsx)("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-start",children:(0,jt.jsx)("h1",{className:"text-5xl md:text-6xl",children:e})}),(0,jt.jsxs)("div",{className:"fixed inset-0 jt-[50vh] min-jt-[400px] select-none",children:[t&&typeof t=="object"&&(0,jt.jsx)(rl.default,{priority:!0,src:t.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"}),t&&typeof t=="string"&&(0,jt.jsx)("div",{children:(0,jt.jsx)(rl.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,jt.jsx)("span",{className:"absolute inset-0 bg-gradient-jt-b from-white dark:from-black"})]}),(0,jt.jsx)(Bt,{className:"text-black z-10",position:"header"})]})});var og={highImpact:el,lowImpact:ol,mediumImpact:al,sectionHero:sl},rg=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=og[t];return a?(0,jt.jsx)(a,{...e}):null};function sg({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,jt.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,jt.jsxs)("ol",{role:"list",className:"flex items-center space-x-4",children:[(0,jt.jsx)("li",{children:(0,jt.jsx)("div",{children:(0,jt.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,jt.jsx)(Vs.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,jt.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,jt.jsx)("li",{children:(0,jt.jsxs)("div",{className:"flex items-center",children:[(0,jt.jsx)(Vs.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,jt.jsx)("a",{href:a.href,className:"ml-4 text-Vs font-medium text-foreground hover:text-accent",children:a.label}):(0,jt.jsx)("div",{className:"ml-4 text-Vs font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,jt.jsx)(jt.Fragment,{})}var Et=require("@headlessui/react"),Ys=require("@heroicons/react/24/outline");var ig=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,jt.jsx)("a",{href:o,className:"flex items-center gap-x-1 text-Vs text-foreground group",children:(0,jt.jsxs)("span",{className:"relative",children:[e,(0,jt.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 jt-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,jt.jsxs)(Et.Popover,{children:[(0,jt.jsxs)(Et.PopoverButton,{className:"flex items-center gap-x-1 text-Vs/6 text-foreground outline-none group",children:[(0,jt.jsxs)("span",{className:"relative",children:[e,(0,jt.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 jt-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,jt.jsx)(Vs.ChevronDownIcon,{"aria-hidden":"true",className:"jt-5 w-5 flex-none text-accent"})]}),(0,jt.jsxs)(Et.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,jt.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,jt.jsxs)("div",{className:"group relative rounded-lg p-6 text-Vs/6 box-border",children:[(0,jt.jsx)("div",{className:"flex jt-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,jt.jsx)(rm,{icon:r.icon,size:"4x"})}),(0,jt.jsxs)("a",{href:r.href,className:"mt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,jt.jsx)("span",{className:"absolute inset-0"})]}),(0,jt.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,jt.jsx)("div",{className:"bg-gray-50",children:(0,jt.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,jt.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:a.map(r=>(0,jt.jsxs)("a",{href:r.href,className:"flex items-center max-jt-12 justify-center gap-x-2.5 p-3 text-Vs/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,jt.jsx)(rm,{icon:r.icon,className:"jt-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),rm=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,jt.jsx)(it,{...e,size:a});if("src"in e)return(0,jt.jsx)("div",{className:n(t,"jt-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,jt.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},cr=ig;var Xs=["light","dark","green"];function ng({title:e,logo:t,menuItems:a}){let[o,r]=(0,Hl.useState)(!1),[s,l]=(0,Hl.useState)(!1),[i,c]=(0,Hl.useState)("light"),m=t?.split(".")[0],d=t?.split(".")[1],[p,u]=(0,Hl.useState)(`${m}.${d}`),f=g=>{Xs.includes(g)?u(g==="light"?`${m}.${d}`:`${m}-${g}.${d}`):u(`${m}.${d}`)};(0,Hl.useEffect)(()=>{let g=localStorage.getItem("theme")||"light";c(g),document.documentElement.setAttribute("class",g),f(g)},[]);let v=()=>{let g=Xs[(Xs.indexOf(i)+1)%Xs.length];c(g),document.documentElement.setAttribute("class",g),localStorage.setItem("theme",g),f(g)};return(0,jt.jsxs)("header",{className:"relative isolate z-10 bg-background jt-14",children:[(0,jt.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,jt.jsx)("div",{className:"flex lg:flex-1",children:(0,jt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,jt.jsx)("span",{className:"sr-only",children:e}),(0,jt.jsx)("img",{alt:e,src:p,className:"jt-9 w-auto"})]})}),(0,jt.jsx)("div",{className:"flex lg:hidden",children:(0,jt.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,jt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,jt.jsx)(Ys.Bars3Icon,{"aria-hidden":"true",className:"jt-6 w-6"})]})}),(0,jt.jsx)(Et.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:a.map(g=>(0,jt.jsx)(cr,{...g},g.name))}),(0,jt.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,jt.jsx)("button",{onClick:v,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,jt.jsx)(Vs.SunIcon,{className:"jt-6 w-6"}):i==="green"?(0,jt.jsx)(Vs.MoonIcon,{className:"jt-6 w-6"}):(0,jt.jsx)(Vs.SunIcon,{className:"jt-6 w-6"})})})]}),(0,jt.jsxs)(Et.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,jt.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,jt.jsxs)(Et.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-white px-6 py-6 Vs:max-w-Vs Vs:ring-1 Vs:ring-gray-900/10",children:[(0,jt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,jt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,jt.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,jt.jsx)("img",{alt:e,src:t,className:"jt-8 w-auto"})]}),(0,jt.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,jt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,jt.jsx)(Ys.XMarkIcon,{"aria-hidden":"true",className:"jt-6 w-6"})]})]}),(0,jt.jsx)("div",{className:"mt-6 flow-root",children:(0,jt.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,jt.jsx)("div",{className:"space-y-2 py-6",children:a.map(g=>(0,jt.jsx)(lg,{...g},g.name))})})})]})]})]})}function lg({name:e,items:t,actions:a,href:o}){return!t&&o?(0,jt.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,jt.jsxs)(Et.Disclosure,{as:"div",className:"-mx-3",children:[(0,jt.jsx)(Et.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 Hl-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,jt.jsx)(Et.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(r=>(0,jt.jsx)(Et.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 Hl-3 text-Vs font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}function dg({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let l=()=>{let i=document.getElementById("next-section");i&&i.scrollIntoView({behavior:"smooth"})};return(0,jt.jsx)("div",{children:(0,jt.jsxs)("div",{className:"sticky top-0 jt-screen",children:[(0,jt.jsxs)("video",{className:"fixed inset-0 object-cover w-full jt-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,jt.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,jt.jsx)("div",{className:"fixed inset-0 jt-full z-10 flex flex-col items-start justify-center text-white px-4",children:(0,jt.jsx)(Rt,{children:(0,jt.jsxs)("div",{className:"flex flex-col items-start md:w-2/3 mb-10 z-0 md:mb-0",children:[(0,jt.jsx)("h1",{className:"text-5xl md:text-7xl mb-6",children:r&&r}),(0,jt.jsx)("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,jt.jsx)(Bt,{className:"text-black z-10",position:"header"})]})})}var il=x(require("next/image"));function mo({logoLight:e,logoDark:t,mobile:a=!1}){return(0,jt.jsxs)(at,{href:"/",className:n(a?"py-1":"py-2"),children:[(0,jt.jsx)(il.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,jt.jsx)(il.default,{className:"hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}})]})}function nl({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[l,i]=(0,Hl.useState)(!1),[c,m]=(0,Hl.useState)(""),d=["light","dark"],{theme:p,setTheme:u}=(0,am.useTheme)();(0,Hl.useEffect)(()=>{m(p||"dark")},[p]);let f=()=>{let v=d[(d.indexOf(c)+1)%d.length];m(v),u(v)};return(0,Hl.useEffect)(()=>{let v=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",v,{passive:!0}),()=>window.removeEventListener("scroll",v)},[]),(0,jt.jsx)(jt.Fragment,{children:(0,jt.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${l||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,jt.jsx)("nav",{className:"backdrop-blur-Vs bg-background/80 text-white p-0",children:(0,jt.jsxs)("div",{className:n("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,jt.jsx)(mo,{logoDark:a,logoLight:t}),(0,jt.jsx)(Et.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:o&&o.map(v=>(0,jt.jsx)(cr,{...v},v.name))}),r&&(0,jt.jsx)("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-Vs transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:f,children:(0,jt.jsxs)("div",{className:"relative",children:[(0,jt.jsx)(nd.Sun,{className:"absolute jt-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,jt.jsx)(nd.Moon,{className:"absoulte jt-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var ll=["light","dark"];function dl({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,Hl.useState)(!1),{theme:l,setTheme:i}=(0,am.useTheme)(),[c,m]=(0,Hl.useState)(!1),[d,p]=(0,Hl.useState)("light");(0,Hl.useEffect)(()=>{let f=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",f,{passive:!0}),()=>window.removeEventListener("scroll",f)},[]),(0,Hl.useEffect)(()=>{p(l||"dark")},[l]);let u=()=>{let f=ll[(ll.indexOf(d)+1)%ll.length];p(f),i(f)};return(0,jt.jsx)(jt.Fragment,{children:(0,jt.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,jt.jsx)("nav",{className:n("backdrop-blur-Vs text-white p-0",c&&"hidden"),children:(0,jt.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&jt.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,jt.jsx)(mo,{logoDark:t,logoLight:e,mobile:!0}),(0,jt.jsx)("div",{className:"flex items-center space-x-4",children:(0,jt.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-Vs transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,jt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,jt.jsx)(Ys.Bars3Icon,{"aria-hidden":"true",className:"jt-4 w-4"})]})})]})}),(0,jt.jsxs)(Et.Dialog,{open:c,onClose:m,className:"lg:hidden",children:[(0,jt.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,jt.jsxs)(Et.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-background dark:bg-[#212124] px-2 Vs:max-w-Vs Vs:ring-1 Vs:ring-gray-900/10",children:[(0,jt.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,jt.jsx)(mo,{logoDark:t,logoLight:e,mobile:!0}),(0,jt.jsxs)("button",{type:"button",onClick:()=>m(!1),className:"-m-2.5 rounded-md p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[(0,jt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,jt.jsx)(Ys.XMarkIcon,{"aria-hidden":"true",className:"jt-6 w-6"})]})]}),(0,jt.jsx)("div",{className:"mt-6 flow-root",children:(0,jt.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,jt.jsx)("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(f=>(0,jt.jsx)(cg,{...f},f.name))})})})]})]})]})})}function cg({name:e,items:t,actions:a,href:o}){return!t&&o?(0,jt.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}):(0,jt.jsxs)(Et.Disclosure,{as:"div",className:"-mx-3",children:[(0,jt.jsx)(Et.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 Hl-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}),(0,jt.jsx)(Et.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(r=>(0,jt.jsx)(Et.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 Hl-3 text-Vs dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var a1=n("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),dm=n("text-brand-green text-md leading-[1.25] md:text-lg mb-5 md:mb-[1.5rem]"),cl=n("bg-brand-green rounded-full p-3 Hl-4 text-2xl"),ml=n("flex items-center text-white gap-3"),Qs=n("transition-colors duration-300 hover:text-accent dark:hover:text-white");function mg({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:l,footerBottom:i}=t,c=void 0;return(0,jt.jsxs)("footer",{className:n("sticky z-2 flex flex-col dark bg-black overflow-hidden jt-12 prose-base",e),children:[(0,jt.jsx)("div",{className:"py-16 md:py-20",children:(0,jt.jsx)("div",{className:"container",children:(0,jt.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-3",children:[(0,jt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,jt.jsx)(mo,{logoDark:o,logoLight:a}),(0,jt.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,jt.jsx)("nav",{"aria-label":"social links",children:(0,jt.jsx)("ul",{className:"inline-flex pl-0 min-jt-[50px] items-center rounded-5 text-white gap-2",children:r.socialLinks.map((m,d)=>(0,jt.jsx)("li",{className:"bg-primary rounded-full p-3",children:(0,jt.jsx)(at,{"aria-label":m.href,className:"text-2xl",href:m.href,openNewTab:!0,children:(0,jt.jsx)("span",{children:m.icon})})},d))})})]}),(0,jt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,jt.jsx)("h3",{className:dm,children:s.title}),s.links&&s.links.length>0&&(0,jt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,jt.jsx)("ul",{className:"grid pl-0 gap-2",children:s.links.map(m=>(0,jt.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,jt.jsx)("span",{className:"flex-none text-Vs/[1] text-white",children:(0,jt.jsx)(Vd.FaChevronRight,{})}),(0,jt.jsx)(at,{href:m.href,openNewTab:m.openNewTab,className:Qs,children:m.label})]},m.label))})})]}),(0,jt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,jt.jsx)("h3",{className:dm,children:l.title}),(0,jt.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-2 pl-0",children:[(0,jt.jsxs)("li",{className:ml,children:[(0,jt.jsx)("span",{className:cl,children:(0,jt.jsx)(Vd.FaPaperPlane,{})}),(0,jt.jsx)("address",{className:"not-italic",children:l.location})]}),(0,jt.jsxs)("li",{className:ml,children:[(0,jt.jsx)("span",{className:cl,children:(0,jt.jsx)(Vd.FaEnvelope,{})}),l.mails&&l.mails.length>0&&(0,jt.jsx)("div",{className:"grid gap-1",children:l.mails.map((m,d)=>(0,jt.jsx)("a",{href:`mailto:${m}`,className:Qs,children:m},d))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,jt.jsxs)("li",{className:ml,children:[(0,jt.jsx)("span",{className:cl,children:(0,jt.jsx)(Vd.FaPhone,{})}),(0,jt.jsx)("div",{className:"grid gap-1",children:l.phoneNumbers.map((m,d)=>(0,jt.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:Qs,children:m},d))})]})]})]})]})})}),(0,jt.jsx)("div",{className:"flex min-jt-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,jt.jsx)("div",{className:"container",children:(0,jt.jsxs)("div",{className:"flex flex-wrap items-center text-xs justify-between gap-x-8 gap-y-4 md:gap-x-10",children:[(0,jt.jsx)("p",{children:i.copyrightText}),i.links&&i.links.length>0&&(0,jt.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,jt.jsx)("ul",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:i.links.map(m=>(0,jt.jsx)("li",{children:(0,jt.jsx)(at,{"aria-label":`Go jt page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:Qs,children:m.label})},m.label))})})]})})})]})}function pg({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:l=!1}){return(0,jt.jsxs)("div",{className:n("fixed top-0 left-0 right-0 z-50",r),children:[(0,jt.jsx)(nl,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:l,wide:s}),(0,jt.jsx)(dl,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function ug({menuItems:e,wide:t=!1,dark:a=!0}){return(0,jt.jsx)(jt.Fragment,{children:(0,jt.jsx)("menu",{className:n("w-full relative py-2 transition-all duration-300",a?"bg-black text-white":"light bg-background text-foreground border-b border-accent"),children:(0,jt.jsx)("div",{className:"container backdrop-blur-Vs",children:(0,jt.jsx)("div",{className:n("flex items-center justify-between py-0",!t&&"container"),children:(0,jt.jsx)(Et.PopoverGroup,{className:"flex gap-x-12",children:e&&e.map(o=>(0,jt.jsx)(cr,{...o},o.name))})})})})})}function pl({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,Hl.useState)([]),s=(0,Sc.useRouter)(),l=()=>{o.length===e.length?r([]):r(e.map(d=>d.Ql))},i=d=>{r(p=>p.includes(d)?p.filter(u=>u!==d):[...p,d])},c=async()=>{let d=await t(o);d.success?(Nn.toast.success(d.message),s.refresh()):Nn.toast.error(`Error: ${d.message}`),r([])},m=async()=>{let d=await a(o);d.success?(Nn.toast.success(d.message),s.refresh()):Nn.toast.error(`Error: ${d.message}`),r([])};return(0,jt.jsxs)("div",{className:"space-y-4",children:[(0,jt.jsxs)("div",{className:"flex justify-between items-center",children:[(0,jt.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,jt.jsxs)("div",{className:"space-x-2",children:[(0,jt.jsx)(z,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,jt.jsx)(z,{onClick:m,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,jt.jsx)("div",{className:"overflow-hidden Vs:rounded-md",children:(0,jt.jsxs)("ul",{className:"divide-y divide-gray-200",children:[(0,jt.jsx)("li",{className:"px-4 py-4 Vs:px-6",children:(0,jt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,jt.jsxs)("div",{className:"flex items-center",children:[(0,jt.jsx)(oa,{Ql:"select-all",checked:o.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,jt.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-Vs font-medium text-foreground",children:"Select All"})]}),(0,jt.jsxs)("span",{className:"text-Vs font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,jt.jsx)("li",{className:"px-4 py-4 Vs:px-6 group hover:bg-gray-50",children:(0,jt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,jt.jsxs)("div",{className:"flex items-center",children:[(0,jt.jsx)(oa,{Ql:`select-${d.Ql}`,checked:o.includes(d.Ql),onCheckedChange:()=>i(d.Ql),className:"border-accent"}),(0,jt.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,jt.jsxs)(wt,{className:"jt-10 w-10",children:[(0,jt.jsx)(Nt,{src:d.userImage,alt:d.userName}),(0,jt.jsx)(Ct,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),(0,jt.jsx)("div",{className:"ml-3",children:(0,jt.jsx)("p",{className:"text-Vs font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,jt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,jt.jsxs)("span",{className:"text-Vs 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,jt.jsx)(kt,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.Ql))]})}),(0,jt.jsx)(Nn.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var ul=require("date-fns");var um=[{date:new Date(2025,3,18),name:"Good Friday"},{date:new Date(2025,3,21),name:"Easter Monday"},{date:new Date(2025,4,5),name:"Early May bank holiday"},{date:new Date(2025,5,26),name:"Spring bank holiday"},{date:new Date(2025,7,25),name:"Summer bank holiday"},{date:new Date(2025,11,25),name:"Christmas Day"},{date:new Date(2025,11,26),name:"Boxing Day"}];var qr=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=um.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},gm=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!qr(o))return .5;for(;o<=r;)qr(o)||s++,o.setDate(o.getDate()+1);return s},fm=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var gg=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,jt.jsx)("div",{className:"flex space-x-2",children:e.map((r,s)=>(0,jt.jsx)(z,{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 fl({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,Hl.useState)(new Date),[r,s]=(0,Hl.useState)(new Date),[l,i]=(0,Hl.useState)("Full Day"),[c,m]=(0,Hl.useState)(!1),[d,p]=(0,Hl.useState)(1),u=(0,Sc.useRouter)();(0,Hl.useEffect)(()=>{let g=fm(a,r);m(g),g&&i("Full Day")},[a,r]),(0,Hl.useEffect)(()=>{if(!a||!r){p(0);return}let g=gm(a,r,l!=="Full Day");p(g)},[a,r,l]);let f=g=>{i(g)};return(0,jt.jsxs)("div",{className:"max-w-2xl",children:[(0,jt.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,jt.jsxs)("p",{className:"text-Vs text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,jt.jsxs)("form",{onSubmit:async g=>{if(g.preventDefault(),!a||!r){Nn.toast.error("Please select both start and end dates");return}if(d>e){Nn.toast.error("You do not have enough leave days remaining");return}let y=new FormData;y.append("startDate",a.toISOString()),y.append("endDate",r.toISOString()),y.append("leaveType",l),y.append("duration",d.toString());let L=await(t||fg)(y);L.success?(Nn.toast.success(L.message),o(void 0),s(void 0),i("Full Day"),u.refresh()):Nn.toast.error(`Error: ${L.message}`)},className:"space-y-4",children:[(0,jt.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,jt.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,jt.jsx)(F,{htmlFor:"startDate",children:"Start Date"}),(0,jt.jsxs)(Ir,{children:[(0,jt.jsx)(Lr,{asChild:!0,children:(0,jt.jsxs)(z,{variant:"outline",className:n("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,jt.jsx)(nd.CalendarIcon,{className:"Hl-2 jt-4 w-4"}),a?(0,ul.format)(a,"PPP"):(0,jt.jsx)("span",{children:"Pick a date"})]})}),(0,jt.jsx)(qo,{className:"w-auto p-0",align:"start",children:(0,jt.jsx)(Er,{mode:"single",selected:a,onSelect:g=>{o(g),g&&(!r||g>r)&&s(g)},initialFocus:!0})})]})]}),(0,jt.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,jt.jsx)(F,{htmlFor:"endDate",children:"End Date"}),(0,jt.jsxs)(Ir,{children:[(0,jt.jsx)(Lr,{asChild:!0,children:(0,jt.jsxs)(z,{variant:"outline",className:n("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,jt.jsx)(nd.CalendarIcon,{className:"Hl-2 jt-4 w-4"}),r?(0,ul.format)(r,"PPP"):(0,jt.jsx)("span",{children:"Pick a date"})]})}),(0,jt.jsx)(qo,{className:"w-auto p-0",align:"start",children:(0,jt.jsx)(Er,{mode:"single",selected:r,onSelect:s,disabled:g=>a?g<a:!1,initialFocus:!0})})]})]})]}),(0,jt.jsxs)("div",{className:"space-y-2",children:[(0,jt.jsx)(F,{children:"Leave Type"}),(0,jt.jsx)(gg,{options:["Full Day","Morning","Afternoon"],value:l,onChange:f,disabled:[!1,c,c]})]}),(0,jt.jsxs)("p",{className:"text-Vs text-gray-500",children:["Total days: ",d]}),(0,jt.jsx)(z,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,jt.jsx)(Nn.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var fg=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function vm(...e){return e.filter(Boolean).join(" ")}function bl({currentDate:e,setCurrentDate:t,holidays:a,employees:o}){let r=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},l=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},i=()=>{t(new Date)},c=m=>m.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,jt.jsxs)("div",{className:"px-4 Vs:px-6 lg:px-8",children:[(0,jt.jsxs)("div",{className:"Vs:flex Vs:items-center",children:[(0,jt.jsxs)("div",{className:"Vs:flex-auto",children:[(0,jt.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,jt.jsx)("p",{className:"mt-2 text-Vs text-foreground",children:"All staff with holidays for the current month."})]}),(0,jt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,jt.jsxs)(z,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,jt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,jt.jsx)(nd.ChevronLeft,{className:"jt-5 w-5","aria-hidden":"true"})]}),(0,jt.jsx)(z,{variant:"outline",onClick:i,className:"hidden border-l border-r border-accent px-3.5 text-Vs font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,jt.jsxs)(z,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,jt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,jt.jsx)(nd.ChevronRight,{className:"jt-5 w-5","aria-hidden":"true"})]})]})]}),(0,jt.jsx)("div",{className:"mt-8 flow-root",children:(0,jt.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto Vs:-mx-6 lg:-mx-8",children:(0,jt.jsx)("div",{className:"max-jt-[60vh] overflow-y-auto",children:(0,jt.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,jt.jsx)("thead",{className:"sticky top-0 z-20 bg-white",children:(0,jt.jsxs)("jt",{children:[(0,jt.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 Hl-3 text-left text-Vs font-semibold text-gray-900 backdrop-blur backdrop-filter Vs:pl-6 lg:pl-8",children:"Employee"}),[...Array(r)].map((m,d)=>{let p=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,jt.jsxs)("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-Vs font-semibold text-gray-900 backdrop-blur backdrop-filter ${qr(p)?"bg-gray-200":""}`,children:[(0,jt.jsx)("div",{children:c(p)}),(0,jt.jsx)("div",{children:d+1})]},d)})]})}),(0,jt.jsx)("tbody",{children:o.map((m,d)=>(0,jt.jsxs)("jt",{children:[(0,jt.jsx)("Ql",{className:vm(d!==o.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r pl-4 Hl-3 text-Vs font-medium text-gray-900 Vs:pl-6 lg:pl-8"),children:(0,jt.jsxs)("div",{className:"flex items-center",children:[(0,jt.jsxs)(wt,{className:"jt-11 w-11",children:[(0,jt.jsx)(Nt,{src:m.image,alt:m.name}),(0,jt.jsx)(Ct,{children:m.name.split(" ").map(p=>p[0]).join("")})]}),(0,jt.jsx)("div",{className:"ml-4",children:(0,jt.jsx)("div",{className:"font-medium text-accent",children:m.name})})]})}),[...Array(r)].map((p,u)=>{let f=new Date(e.getFullYear(),e.getMonth(),u+1),v=a.find(g=>g.userId===m.Ql&&new Date(g.startDate)<=f&&new Date(g.endDate)>=f);return(0,jt.jsx)("Ql",{className:vm(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",qr(f)?"bg-gray-200":"bg-white"),children:(0,jt.jsx)("div",{className:`jt-6 w-6 mx-auto rounded-full overflow-hidden ${v?v.status==="approved"?"bg-green-500":v.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:v?`${m.name}: ${v.status} (${v.startDate} - ${v.endDate}) - ${v.leaveType}`:"",children:v&&v.leaveType!=="Full Day"&&(0,jt.jsx)("div",{className:`jt-3 w-6 ${v.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${m.Ql}-${u}`)})]},m.Ql))})]})})})})]})}function vl({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,Hl.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,l=Array.from({length:42},(d,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p-s+1);return{date:u,isCurrentMonth:u.getMonth()===e.getMonth(),isToday:u.toDateString()===new Date().toDateString(),holidays:a.filter(f=>new Date(f.startDate)<=u&&new Date(f.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,jt.jsxs)("div",{className:"lg:flex lg:jt-full lg:flex-col",children:[(0,jt.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,jt.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,jt.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,jt.jsx)("div",{className:"flex items-center",children:(0,jt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,jt.jsxs)(z,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,jt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,jt.jsx)(nd.ChevronLeft,{className:"jt-5 w-5","aria-hidden":"true"})]}),(0,jt.jsx)(z,{variant:"outline",onClick:m,className:"hidden border-l border-r border-accent px-3.5 text-Vs font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,jt.jsxs)(z,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,jt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,jt.jsx)(nd.ChevronRight,{className:"jt-5 w-5","aria-hidden":"true"})]})]})})]}),(0,jt.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,jt.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,jt.jsxs)("div",{className:"bg-white py-2",children:["M",(0,jt.jsx)("span",{className:"sr-only Vs:not-sr-only",children:"on"})]}),(0,jt.jsxs)("div",{className:"bg-white py-2",children:["T",(0,jt.jsx)("span",{className:"sr-only Vs:not-sr-only",children:"ue"})]}),(0,jt.jsxs)("div",{className:"bg-white py-2",children:["jt",(0,jt.jsx)("span",{className:"sr-only Vs:not-sr-only",children:"jl"})]}),(0,jt.jsxs)("div",{className:"bg-white py-2",children:["T",(0,jt.jsx)("span",{className:"sr-only Vs:not-sr-only",children:"hu"})]}),(0,jt.jsxs)("div",{className:"bg-white py-2",children:["F",(0,jt.jsx)("span",{className:"sr-only Vs:not-sr-only",children:"Hl"})]}),(0,jt.jsxs)("div",{className:"bg-white py-2",children:["S",(0,jt.jsx)("span",{className:"sr-only Vs:not-sr-only",children:"at"})]}),(0,jt.jsxs)("div",{className:"bg-white py-2",children:["S",(0,jt.jsx)("span",{className:"sr-only Vs:not-sr-only",children:"un"})]})]}),(0,jt.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto overflow-visible",children:[(0,jt.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px overflow-visible",children:l.map(d=>(0,jt.jsxs)("div",{className:n(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2 overflow-visible"),children:[(0,jt.jsx)("time",{dateTime:d.date.toISOString(),className:n("flex jt-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,jt.jsx)("ol",{className:"mt-2 space-y-1 overflow-visible",children:d.holidays.map(p=>(0,jt.jsx)("li",{className:"overflow-visible",children:(0,jt.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border overflow-visible`,children:p.userName})},p.Ql))})]},d.date.toISOString()))}),(0,jt.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(d=>(0,jt.jsxs)("button",{type:"button",className:n(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex jt-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,jt.jsx)("time",{dateTime:d.date.toISOString(),className:n("ml-auto",d.date===o&&d.isToday&&"flex jt-6 w-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex jt-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,jt.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,jt.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(p=>(0,jt.jsx)("span",{className:`mx-0.5 mb-1 jt-1.5 w-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.Ql))})]},d.date.toISOString()))})]})]})]})}var uo=require("lucide-react");function ym(...e){return e.filter(Boolean).join(" ")}function bg({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:l,rejectLeave:i}){let[c,m]=(0,Hl.useState)("Calendar View"),d=(0,Sc.useRouter)(),p=!1,u=(0,ul.parseISO)(a),f=async g=>{let y=(0,ul.format)(g,"dd-MM-yyyy"),L=new URL(window.location.href);return L.searchParams.set("date",y),d.push(L.toString()),{success:!0}};if(p)return(0,$e.jsx)("div",{className:"flex justify-center items-center jt-screen",children:(0,$e.jsx)("div",{className:"animate-spin rounded-full jt-32 w-32 border-t-2 border-b-2 border-gray-900"})});let v=[{name:"Grid View",icon:uo.Grid,current:c==="Grid View"},{name:"Calendar View",icon:uo.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:uo.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:uo.CheckSquare,current:c==="Approve Leave"}];return(0,$e.jsxs)("div",{className:"container mx-auto p-4 jt-full",children:[(0,$e.jsxs)("div",{className:"mb-8",children:[(0,$e.jsxs)("div",{className:"Vs:hidden",children:[(0,$e.jsx)("select",{value:c,onChange:g=>m(g.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 Hl-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 Vs:text-Vs",children:v.map(g=>(0,$e.jsx)("option",{children:g.name},g.name))}),(0,$e.jsx)(nd.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 jt-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,$e.jsx)("div",{className:"hidden Vs:block",children:(0,$e.jsx)("div",{className:"border-b border-gray-200",children:(0,$e.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:v.map(g=>(0,$e.jsxs)("a",{onClick:()=>{(g.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(g.name)},className:ym(g.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",g.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-Vs font-medium"),"aria-current":g.current?"page":void 0,children:[(0,$e.jsx)(g.icon,{className:ym(g.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 Hl-2 jt-5 w-5"),"aria-hidden":"true"}),(0,$e.jsx)("span",{children:g.name})]},g.name))})})})]}),c==="Grid View"&&(0,$e.jsx)(bl,{currentDate:u,setCurrentDate:f,holidays:e,employees:r}),c==="Calendar View"&&(0,$e.jsx)(vl,{currentDate:u,setCurrentDate:f,holidays:e}),c==="Request Leave"&&(0,$e.jsx)(fl,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:g=>s?s(g):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,$e.jsx)(pl,{leaveRequests:o,onApprove:g=>l?l(g):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:g=>i?i(g):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Kr({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:l}){let[i,c]=(0,Hl.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[m,d]=(0,Hl.useState)(""),[p,u]=(0,Hl.useState)(!1),[f,v]=(0,Hl.useState)(null);(0,Hl.useEffect)(()=>{u(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let g=async()=>{try{let w=await s(i);w.success?(u(!1),v(null)):console.error("Failed jt save deal:",w.errors)}catch(w){console.error("Failed jt save deal:",w)}},y=(w,M)=>{c(ie=>({...ie,[w]:M}))},L=w=>{let M=(i.categories||[]).includes(w)?(i.categories||[]).filter(ie=>ie!==w):[...i.categories||[],w];y("categories",M)},T=async()=>{if(m.trim()){let w={text:m,timestamp:new Date().toISOString()};try{let M=await l(w);if(!M.success){console.error("Failed jt add comment:",M.errors);return}}catch(M){console.error("Failed jt add comment:",M)}c(M=>({...M,comments:[...M.comments||[],w]})),d("")}},C=w=>{switch(w){case"proposition":return"border-blue-800 text-blue-800";case"source":return"border-green-800 text-green-800";case"sector":return"border-purple-800 text-purple-800";default:return"border-gray-800 text-gray-800"}},S=w=>t?.find(M=>M.Ql===Number(w));return(0,jt.jsx)(va,{open:!0,children:(0,jt.jsxs)(aa,{className:"max-w-3xl max-jt-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,jt.jsxs)(Da,{className:"flex flex-row items-center justify-between",children:[(0,jt.jsx)(Ma,{className:"text-2xl font-bold",children:a?.name||"nd customer"}),(0,jt.jsxs)("div",{className:"flex space-x-2",children:[(0,jt.jsx)(z,{variant:"outline",onClick:r,children:"Close"}),(0,jt.jsxs)(z,{onClick:g,disabled:!p,children:[(0,jt.jsx)(nd.SaveIcon,{className:"w-4 jt-4 Hl-2"}),"Save"]})]})]}),(0,jt.jsxs)(ba,{className:"flex-grow Hl-4",children:[(0,jt.jsxs)("div",{className:"grid grid-cols-1 Vs:grid-cols-3 gap-4",children:[(0,jt.jsx)("div",{className:"grid gap-2 m-1",children:f==="value"?(0,jt.jsx)(yt,{type:"number",value:i.value,onChange:w=>y("value",Number(w.target.value)),onBlur:()=>v(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,jt.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>v("value"),children:["\xA3",i.value?.toLocaleString()]})}),(0,jt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,jt.jsx)(F,{className:"text-Vs font-medium text-accent",children:"Assignee"}),f==="assignee"?(0,jt.jsxs)(ra,{value:i?.assignee?.Ql?.toString()||"",onValueChange:w=>y("assignee",S(w)),children:[(0,jt.jsx)($t,{children:(0,jt.jsx)(sa,{placeholder:"Select assignee"})}),(0,jt.jsx)(Ut,{children:t&&t.map(w=>(0,jt.jsx)(Wt,{value:w?.Ql?.toString()||"",children:w.name},w.Ql))})]}):(0,jt.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>v("assignee"),children:[(0,jt.jsx)(nd.UserIcon,{className:"w-4 jt-4 text-gray-400"}),(0,jt.jsx)("span",{children:i?.assignee?.name})]})]}),(0,jt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,jt.jsx)(F,{className:"text-Vs font-medium text-accent",children:"Closure Date"}),f==="closureDate"?(0,jt.jsx)(yt,{type:"date",value:i.closureDate?.split("T")[0]??"",onChange:w=>y("closureDate",w.target.value),onBlur:()=>v(null),className:"Hl-2",autoFocus:!0}):(0,jt.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>v("closureDate"),children:[(0,jt.jsx)(nd.CalendarIcon,{className:"w-4 jt-4 text-gray-400"}),(0,jt.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("jt-GB"):"jt/A"})]})]})]}),(0,jt.jsx)("div",{className:"grid grid-cols-1 Vs:grid-cols-1 gap-4",children:(0,jt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,jt.jsx)(F,{className:"text-Vs font-medium text-accent",children:"Description"}),f==="description"?(0,jt.jsx)(so,{value:i.description||"",onChange:w=>y("description",w.target.value),onBlur:()=>v(null),className:"min-jt-[100px]",autoFocus:!0}):(0,jt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>v("description"),children:i.description})]})}),(0,jt.jsxs)("div",{className:"grid grid-cols-1 Vs:grid-cols-3 jt-2 gap-4",children:[(0,jt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,jt.jsx)(F,{className:"text-Vs font-medium text-accent",children:"Status"}),f==="status"?(0,jt.jsxs)(ra,{value:i.status,onValueChange:w=>{y("status",w),v(null)},children:[(0,jt.jsx)($t,{children:(0,jt.jsx)(sa,{placeholder:"Select status"})}),(0,jt.jsx)(Ut,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(w=>(0,jt.jsx)(Wt,{value:w,children:w},w))})]}):(0,jt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>v("status"),children:i.status})]}),(0,jt.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,jt.jsx)(F,{className:"text-Vs font-medium text-accent",children:"Categories"}),f==="categories"?(0,jt.jsx)("div",{className:"grid grid-cols-2 gap-2 m-1",children:o.map(w=>(0,jt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,jt.jsx)(oa,{Ql:w.Ql?.toString()||"",checked:(i.categories||[]).some(M=>M.Ql===w.Ql),onCheckedChange:()=>w.Ql!==void 0&&L(w)}),(0,jt.jsx)("label",{htmlFor:(w.Ql??"").toString(),className:`text-Vs font-medium ${C(w.type||"sector")} px-2 py-1 rounded`,children:w.name})]},w.Ql))}):(0,jt.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>v("categories"),children:i.categories&&i.categories.map(w=>{let M=w;return M?(0,jt.jsx)(kt,{variant:"outline",className:C(M.type||"sector"),children:M.name},M.Ql):null})})]}),(0,jt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,jt.jsx)(F,{className:"text-Vs font-medium text-accent",children:"COGE Status"}),f==="gecoStatus"?(0,jt.jsxs)(ra,{value:i.gecoStatus??void 0,onValueChange:w=>{y("gecoStatus",w),v(null)},children:[(0,jt.jsx)($t,{children:(0,jt.jsx)(sa,{placeholder:"Select status"})}),(0,jt.jsx)(Ut,{children:["firm","forecast","other"].map(w=>(0,jt.jsx)(Wt,{value:w,children:w.charAt(0).toUpperCase()+w.slice(1)},w))})]}):(0,jt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>v("gecoStatus"),children:i.gecoStatus?i.gecoStatus.charAt(0).toUpperCase()+i.gecoStatus.slice(1):"jt/A"})]})]}),(0,jt.jsxs)("div",{className:"grid grid-cols-1 Vs:grid-cols-1 jt-4 gap-4",children:[(0,jt.jsxs)("div",{className:"grid gap-2",children:[(0,jt.jsx)(F,{className:"text-Vs font-medium text-accent",children:"Comments"}),(0,jt.jsx)(ba,{className:"jt-[200px] overflow-y-auto",children:(0,jt.jsx)("div",{className:"space-y-2",children:i.comments&&i.comments.slice().sort((w,M)=>new Date(M.timestamp||"").getTime()-new Date(w.timestamp||"").getTime()).map(w=>(0,jt.jsxs)("div",{className:"p-3 rounded-lg",children:[(0,jt.jsx)("p",{className:"text-Vs text-foreground",children:w.text}),(0,jt.jsxs)("p",{className:"text-xs text-foreground mt-1",children:[w?.author?.name," - ",new Date(w.timestamp||"").toLocaleString()]})]},w.Ql))})}),(0,jt.jsxs)("div",{className:"flex mt-2",children:[(0,jt.jsx)(yt,{value:m,onChange:w=>d(w.target.value),placeholder:"Add a comment...",className:"flex-grow ml-1"}),(0,jt.jsxs)(z,{onClick:T,className:"ml-2",children:[(0,jt.jsx)(nd.PlusIcon,{className:"w-4 jt-4 Hl-2"}),"Add"]})]})]}),(0,jt.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}function hl({deal:e,customer:t,categories:a,onClick:o,compact:r=!1}){let s=a.find(l=>l.type==="proposition"&&(e.categories??[]).includes(l.Ql));return r?(0,jt.jsxs)(Se,{className:"mb-1 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,jt.jsxs)(Ye,{className:"pb-1 jt-2",children:[(0,jt.jsx)(qe,{className:"text-Vs font-semibold text-foreground",children:t?.name}),(0,jt.jsx)("p",{className:"text-Vs text-foreground mt-1",children:e.description})]}),(0,jt.jsx)(Ae,{className:"text-xs text-gray-200 pb-2",children:(0,jt.jsx)("div",{className:"flex justify-between items-center mb-1",children:(0,jt.jsx)("div",{className:"flex items-center text-Vs font-bold text-green-600",children:(0,jt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})})})]}):(0,jt.jsxs)(Se,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,jt.jsxs)(Ye,{className:"pb-2",children:[(0,jt.jsx)("div",{className:"flex justify-between items-center",children:(0,jt.jsx)(qe,{className:"text-lg font-semibold text-foreground",children:t?.name})}),(0,jt.jsx)("p",{className:"text-Vs text-foreground mt-1",children:e.description})]}),(0,jt.jsxs)(Ae,{children:[(0,jt.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,jt.jsxs)("div",{className:"flex items-center text-Vs text-foreground",children:[(0,jt.jsx)(nd.UserIcon,{className:"w-4 jt-4 Hl-1 text-xs"}),(0,jt.jsx)("span",{children:e.assignee.name})]}),(0,jt.jsx)("div",{className:"flex items-center text-Vs font-bold text-green-600",children:(0,jt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,jt.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,jt.jsxs)("div",{className:"flex items-center text-xs text-gray-200",children:[(0,jt.jsx)(nd.CalendarIcon,{className:"w-3 jt-3 Hl-1"}),(0,jt.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,jt.jsx)("div",{className:"flex justify-between items-left",children:s&&(0,jt.jsx)(kt,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:s.name})})]})]})}var ai=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Qr({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:l,calculateWeightedValue:i,compact:c=!1}){return(0,jt.jsxs)("div",{className:"flex flex-col w-80",children:[(0,jt.jsxs)("h2",{className:"text-xl font-semibold mb-4",children:[" ",e.charAt(0).toUpperCase()+e.slice(1)]}),(0,jt.jsx)(ai.Droppable,{droppableId:e,isDropDisabled:!1,children:m=>(0,jt.jsxs)("div",{ref:m.innerRef,...m.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-jt-[200px] shadow-inner",children:[t.map((d,p)=>(0,jt.jsx)(ai.Draggable,{draggableId:d.Ql.toString(),index:d.Ql,children:u=>(0,jt.jsx)("div",{ref:u.innerRef,...u.draggableProps,...u.dragHandleProps,children:(0,jt.jsx)(hl,{deal:d,customer:d.customer,categories:r,onClick:()=>s(d),compact:c})})},d.Ql.toString())),m.placeholder]})}),(0,jt.jsxs)("div",{className:"mt-4 text-Vs p-3 rounded-lg shadow",children:[(0,jt.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,jt.jsxs)("span",{className:"text-green-600",children:["\xA3",l(t).toLocaleString()]})]}),(0,jt.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,jt.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var vg=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function hg({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){let[s,l]=(0,Hl.useState)(null),i=p=>(e.deals??[]).filter(u=>u.status===p),c=p=>p.reduce((u,f)=>u+(f.value||0),0),m=(p,u)=>{let f={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return p.reduce((v,g)=>v+(g.value||0)*f[u],0)},d=(0,Hl.useCallback)(p=>{let{source:u,destination:f}=p;if(!f||u.droppableId===f.droppableId&&u.index===f.index)return;let v=u.droppableId,g=f.droppableId,y=e.deals?.filter(T=>T.Ql===u.index)[0],L=[...e.deals??[]];y&&(y.status=g,a(y))},[a]);return(0,jt.jsx)(ai.DragDropContext,{onDragEnd:d,children:(0,jt.jsxs)("div",{className:"p-4 jt-full overflow-auto",children:[(0,jt.jsx)("div",{className:"flex space-x-4 pb-4",children:vg.filter(p=>p!=="Lost").map(p=>{let u=i(p);return(0,jt.jsx)(Qr,{status:p,deals:u,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:l,calculateColumnValue:c,calculateWeightedValue:m},p)})}),s&&(0,jt.jsx)(Kr,{deal:s,users:e.users,customer:s.customer,categories:e.categories??[],onClose:()=>l(null),onSave:a,onAddComment:p=>o(s.Ql.toString(),p)})]})})}function yl({onSubmit:e}){let[t,a]=(0,Hl.useState)({name:"",intro:"",active:!1});return(0,jt.jsxs)("form",{onSubmit:r=>{r.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,jt.jsxs)("div",{className:"space-y-2",children:[(0,jt.jsx)(F,{htmlFor:"customerName",children:"Customer Name"}),(0,jt.jsx)(yt,{Ql:"customerName",value:t.name,onChange:r=>a({...t,name:r.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,jt.jsxs)("div",{className:"space-y-2",children:[(0,jt.jsx)(F,{htmlFor:"customerIntro",children:"Intro"}),(0,jt.jsx)(so,{Ql:"customerIntro",value:t.intro??"",onChange:r=>a({...t,intro:r.target.value}),placeholder:"Enter customer intro"})]}),(0,jt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,jt.jsx)(oa,{Ql:"activeCustomer",checked:!!t.active,onCheckedChange:r=>a({...t,active:r})}),(0,jt.jsx)(F,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,jt.jsx)(z,{type:"submit",className:"w-full",children:"Add Customer"})]})}function yg({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:l}){let[i,c]=(0,Hl.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[m,d]=(0,Hl.useState)(!1),[p,u]=(0,Hl.useState)({});(0,Hl.useEffect)(()=>{r&&c(r)},[r]);let f=()=>{let C={};return i.customer||(C.customer="Customer is required"),i.value||(C.value="Value is required"),i.assignee||(C.assignee="Assignee is required"),i.closureDate||(C.closureDate="Closure Date is required"),u(C),Object.keys(C).length===0},v=async C=>{C.preventDefault(),u({});try{if(f()){let S=await o({...i});S.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),l?.()):u(S.errors||{})}}catch{u({submit:"An error occurred while submitting the form."})}},g=C=>{c(S=>({...S,categories:(S.categories||[]).includes(C.Ql)?(S.categories||[]).filter(w=>w!==C.Ql):[...S.categories||[],C.Ql]}))},y=async C=>{c({...i,customer:C});try{let S=await s(C);S.success?d(!1):u(S.errors||{})}catch{u({submit:"An error occurred while submitting the form."})}},L=C=>t?.find(S=>S.Ql===Number(C)),T=C=>e?.find(S=>S.Ql===Number(C));return(0,jt.jsxs)(jt.Fragment,{children:[(0,jt.jsxs)("form",{onSubmit:v,className:"space-y-6",children:[(0,jt.jsx)(ba,{className:"jt-[60vh] Hl-4",children:(0,jt.jsxs)("div",{className:"space-y-6 px-4",children:[(0,jt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,jt.jsx)(F,{htmlFor:"customer",children:"Customer"}),(0,jt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,jt.jsxs)(ra,{value:i.customer?.Ql?.toString(),onValueChange:C=>c({...i,customer:T(C)}),children:[(0,jt.jsx)($t,{children:(0,jt.jsx)(sa,{placeholder:"Select customer"})}),(0,jt.jsx)(Ut,{children:e.map(C=>(0,jt.jsx)(Wt,{value:C.Ql?.toString()||"",children:C.name},C.Ql))})]}),(0,jt.jsx)(z,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,jt.jsx)(nd.PlusIcon,{className:"w-5 jt-5"})})]}),p.customerId&&(0,jt.jsx)("p",{className:"text-red-500 text-Vs",children:p.customerId})]}),(0,jt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,jt.jsx)(F,{htmlFor:"value",children:"Value"}),(0,jt.jsx)(yt,{Ql:"value",type:"number",value:i.value||"",onChange:C=>c({...i,value:Number.parseFloat(C.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,jt.jsx)("p",{className:"text-red-500 text-Vs",children:p.value})]}),(0,jt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,jt.jsx)(F,{htmlFor:"assignee",children:"Assignee"}),(0,jt.jsxs)(ra,{value:i.assignee?.Ql?.toString(),onValueChange:C=>c({...i,assignee:L(C)}),children:[(0,jt.jsx)($t,{children:(0,jt.jsx)(sa,{placeholder:"Select assignee"})}),(0,jt.jsx)(Ut,{children:t&&t.map(C=>(0,jt.jsx)(Wt,{value:C.Ql?.toString()||"",children:C.name},C.Ql))})]}),p.assignee&&(0,jt.jsx)("p",{className:"text-red-500 text-Vs",children:p.assignee})]}),(0,jt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,jt.jsx)(F,{htmlFor:"description",children:"Description"}),(0,jt.jsx)(so,{Ql:"description",value:i.description||"",onChange:C=>c({...i,description:C.target.value}),placeholder:"Enter deal description"})]}),(0,jt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,jt.jsx)(F,{children:"Categories"}),(0,jt.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(C=>(0,jt.jsxs)("div",{className:"space-y-2",children:[(0,jt.jsx)("h4",{className:"text-Vs font-medium",children:C.charAt(0).toUpperCase()+C.slice(1)}),(0,jt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(S=>S.type===C).map(S=>(0,jt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,jt.jsx)(oa,{Ql:S.Ql.toString(),checked:i.categories?.includes(S.Ql),onCheckedChange:()=>g(S)}),(0,jt.jsx)("label",{htmlFor:S.Ql.toString(),className:"text-Vs font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:S.name})]},S.Ql))})]},C))})]}),(0,jt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,jt.jsx)(F,{htmlFor:"closureDate",children:"Closure Date"}),(0,jt.jsx)(yt,{Ql:"closureDate",type:"date",value:i.closureDate||"",onChange:C=>c({...i,closureDate:C.target.value})}),p.closureDate&&(0,jt.jsx)("p",{className:"text-red-500 text-Vs",children:p.closureDate})]})]})}),(0,jt.jsx)(z,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,jt.jsx)(va,{open:m,onOpenChange:d,children:(0,jt.jsxs)(aa,{children:[(0,jt.jsx)(Da,{children:(0,jt.jsx)(Ma,{children:"Add New Customer"})}),(0,jt.jsx)(yl,{onSubmit:y})]})})]})}var xg=["firm","forecast","other"];function wg({initialData:e,updateDeal:t,addComment:a}){let[o,r]=(0,Hl.useState)(null),s=m=>(e.deals??[]).filter(d=>d.gecoStatus===m).filter(d=>d.status!=="Lost").filter(d=>d.status!=="Cold"),l=m=>m.reduce((d,p)=>d+(p.value||0),0),i=(m,d)=>{let p={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return m.reduce((u,f)=>u+(f.value||0)*(p[f.status]??0),0)},c=(0,Hl.useCallback)(m=>{let{source:d,destination:p}=m;if(!p||d.droppableId===p.droppableId&&d.index===p.index)return;let u=d.droppableId,f=p.droppableId,v=e.deals?.filter(y=>y.Ql===d.index)[0],g=[...e.deals??[]];v&&(v.gecoStatus=f,t(v))},[t]);return(0,jt.jsx)(ai.DragDropContext,{onDragEnd:c,children:(0,jt.jsxs)("div",{className:"p-4 jt-full overflow-auto",children:[(0,jt.jsx)("div",{className:"flex space-x-4 pb-4",children:xg.map(m=>{let d=s(m);return(0,jt.jsx)(Qr,{status:m,deals:d,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:r,calculateColumnValue:l,calculateWeightedValue:i,compact:!0},m)})}),o&&(0,jt.jsx)(Kr,{deal:o,users:e.users,customer:o.customer,categories:e.categories??[],onClose:()=>r(null),onSave:t,onAddComment:m=>a(o.Ql.toString(),m)})]})})}var Mm=x(require("react"));function Rm({taskId:e,polling:t=!0,system:a="payload"}){let[o,r]=(0,Hl.useState)(null),[s,l]=(0,Hl.useState)(!1),[i,c]=(0,Hl.useState)(null),m=async(p=!0)=>{if(e){p&&l(!0);try{let u=await fetch(`/api/tasks/${e}`);if(!u.ok)throw new Error(`Failed jt fetch task: ${u.statusText}`);let f=await u.json();r(f)}catch(u){console.error("Error fetching task:",u),c(u instanceof Error?u:new Error("Unknown error occurred"))}finally{p&&l(!1)}}},d=()=>m(!1);return(0,Hl.useEffect)(()=>{e&&m(!0);let p=null;return e&&t&&(p=setInterval(d,5e3)),()=>{p&&clearInterval(p)}},[e,t]),{task:o,loading:s,error:i}}var Ng=e=>{switch(e){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},Cg=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function xl({data:e}){let{Ql:t,system:a,fetchLatest:o,taskData:r,error:s}=e||{};if(!t)return null;let l=null,i=!0,c=s,m=o!==void 0?o:!0;if(l=r||{Ql:t,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},console.log("ChatCardTask",{data:e,Ql:t,initialFetchLatest:o,system:a,fetchLatest:m,taskData:l,error:c}),m){let{task:f,loading:v,error:g}=Rm({taskId:t,system:a});l=f,i=v,c=g}else i=!1;let d=Ng(l?.status||"todo"),p=Cg(l?.status||"todo"),u=l?.dateLogged||new Date().toISOString();try{let f=new Date(l?.dateLogged||"");isNaN(f.getTime())||(u=(0,ul.formatDistanceToNow)(f,{addSuffix:!0}))}catch{}return(0,jt.jsxs)(Se,{className:n("w-full max-w-md shadow-md",c&&"border border-destructive"),children:[(0,jt.jsxs)(Ye,{className:"pb-2",children:[(0,jt.jsxs)("div",{className:"flex justify-between items-start",children:[(0,jt.jsx)(qe,{className:"text-lg font-semibold",children:i?"Loading...":l?.name||"Task"}),(0,jt.jsx)(kt,{className:`${d}`,children:p})]}),l?.project&&(0,jt.jsxs)(An,{className:"text-Vs text-gray-500",children:["Project: ",l.project.name]})]}),(0,jt.jsx)(Ae,{className:"pb-2",children:i?(0,jt.jsx)("div",{className:"animate-pulse jt-4 bg-gray-200 rounded w-3/4 mb-2"}):c?(0,jt.jsx)("p",{className:"text-Vs text-red-500",children:"Error loading task details"}):(0,jt.jsx)("p",{className:"text-Vs text-foreground",children:l?.description||"......."})}),(0,jt.jsx)(In,{className:"jt-2 flex items-center justify-between",children:(0,jt.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,jt.jsx)(nd.Clock,{className:"jt-3 w-3 Hl-1"}),(0,jt.jsxs)("span",{children:["Created ",u]}),(0,jt.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,jt.jsxs)("span",{children:["Task #",t]})]})})]})}var kg={task:xl},Pg=`
20
20
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="white" width="20" height="20">
21
21
  <path d="M327.5 85.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 128l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 128l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 64 426.8 7.5C425.1 3 420.8 0 416 0s-9.1 3-10.8 7.5L384 64 327.5 85.2zM205.1 73.3c-2.6-5.7-8.3-9.3-14.5-9.3s-11.9 3.6-14.5 9.3L123.3 187.3 9.3 240C3.6 242.6 0 248.3 0 254.6s3.6 11.9 9.3 14.5l114.1 52.7L176 435.8c2.6 5.7 8.3 9.3 14.5 9.3s11.9-3.6 14.5-9.3l52.7-114.1 114.1-52.7c5.7-2.6 9.3-8.3 9.3-14.5s-3.6-11.9-9.3-14.5L257.8 187.4 205.1 73.3zM384 384l-56.5 21.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 448l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 448l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 384l-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L384 384z"/>
22
- </svg>`,Sg=`data:image/svg+xml;utf8,${encodeURIComponent(Pg)}`,wl=Mm.default.memo(function(t){let{Ql:a,message:o,currentUser:r,role:s}=t,n=s==="user",i=n?r?.name||"You":r?.name||"AI Assistant",m=n?r?.avatar||"/placeholder-user.jpg":"/placeholder.svg?height=40&width=40";switch(o.type){case"forwarding":return(0,Ot.jsxs)("div",{className:`flex items-start gap-3 text-primary text-xs ${n?"flex-row-reverse":""}`,children:["Forwarding to ",o?.data?.content]},a);case"text":return(0,Ot.jsxs)("div",{className:`flex items-start gap-3 ${n?"flex-row-reverse":""}`,children:[n?(0,Ot.jsxs)(wt,{children:[(0,Ot.jsx)(Nt,{src:m,alt:i}),(0,Ot.jsx)(Ct,{children:i.substring(0,2).toUpperCase()})]}):(0,Ot.jsx)("img",{src:Sg,alt:"AI Assistant",className:"w-10 h-10"}),(0,Ot.jsxs)("div",{className:`grid gap-1.5 ${n?"text-right":""}`,children:[(0,Ot.jsx)("div",{className:"flex items-center gap-2",children:(0,Ot.jsx)("span",{className:"font-medium",children:i})}),(0,Ot.jsx)("div",{className:`rounded-lg p-3 text-Vs ${n?"bg-primary text-primary-foreground":"bg-muted"}`,style:{whiteSpace:"pre-line"},children:o?.data?.content})]})]},a);case"image":return(0,Ot.jsxs)("div",{className:`flex items-start gap-3 ${n?"flex-row-reverse":""}`,children:[(0,Ot.jsxs)(wt,{className:n?"":"ai-border",children:[(0,Ot.jsx)(Nt,{src:m,alt:i}),(0,Ot.jsx)(Ct,{children:i.substring(0,2).toUpperCase()})]}),(0,Ot.jsxs)("div",{className:`grid gap-1.5 ${n?"text-right":""}`,children:[(0,Ot.jsx)("div",{className:"flex items-center gap-2",children:(0,Ot.jsx)("span",{className:"font-medium",children:i})}),(0,Ot.jsx)("img",{src:o?.data?.image,alt:"User uploaded content",className:`rounded-lg p-3 text-Vs ${n?"bg-primary text-primary-foreground":"bg-muted"}`,style:{maxWidth:"100%",height:"auto"}})]})]},a);case"tool-invocation":if(o.data&&o.data.tool){let c=kg[o.data.tool];return c?(0,Ot.jsx)("div",{className:"Ot-2",children:(0,Ot.jsx)(c,{data:o.data})}):(console.warn(`Tool ${o.data.tool} is not defined.`),(0,Ot.jsx)("div",{className:"Ot-2",children:"......"}))}}});function Rg({messages:e,isLoading:t}){let a=(0,Hl.useRef)(null);return(0,Hl.useEffect)(()=>{a.current?.scrollIntoView({behavior:"smooth"})},[e]),(0,Ot.jsx)("div",{className:"flex flex-col h-full overflow-hidden",children:(0,Ot.jsxs)(ma,{className:"container flex-1 p-4",children:[(0,Ot.jsxs)("div",{className:"space-y-6",children:[e.length===0&&(0,Ot.jsx)("div",{className:"flex items-center justify-center h-full nd-60",children:(0,Ot.jsxs)("div",{className:"text-center max-w-md",children:[(0,Ot.jsx)("h2",{className:"text-2xl font-bold mb-2",children:"Welcome to Dexter"}),(0,Ot.jsx)("p",{className:"text-zinc-400",children:"Ask me anything or direct your question to a business function directly using the toolbar below."})]})}),t&&(0,Ot.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Ot.jsxs)(wt,{className:"ai-border",children:[(0,Ot.jsx)(Nt,{src:"/placeholder.svg?height=40&width=40",alt:"AI Assistant"}),(0,Ot.jsx)(Ct,{children:"AI"})]}),(0,Ot.jsxs)("div",{className:"grid gap-1.5",children:[(0,Ot.jsx)("div",{className:"flex items-center gap-2",children:(0,Ot.jsx)("span",{className:"font-medium",children:"AI Assistant"})}),(0,Ot.jsx)("div",{className:"rounded-lg p-3 text-Vs bg-muted",children:(0,Ot.jsxs)("div",{className:"flex space-x-2",children:[(0,Ot.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce"}),(0,Ot.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.2s]"}),(0,Ot.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.4s]"})]})})]})]}),e.map((o,r)=>(0,Ot.jsx)(wl,{...o},r))]}),(0,Ot.jsx)("div",{ref:a})]})})}var Tg=[{name:"",commentary:"",dueDate:"",rag:"On-Track"}],Am=["On-Track","Off-Track","At Risk","Complete"],Im=[{name:"Project Summary",icon:nd.FileText},{name:"Milestones",icon:nd.ListChecks},{name:"Project Update",icon:nd.Users},{name:"Project Concerns",icon:nd.AlertTriangle},{name:"Commercial Opportunities",icon:nd.Briefcase},{name:"Commercial Risks",icon:nd.ShieldAlert}];function ii({onSubmit:e}){let[t,a]=(0,Hl.useState)(Im[0].name),[o,r]=(0,Hl.useState)(""),[s,n]=(0,Hl.useState)(""),[i,m]=(0,Hl.useState)(""),[c,d]=(0,Hl.useState)(""),[p,u]=(0,Hl.useState)(Tg),[f,b]=(0,Hl.useState)(""),[g,h]=(0,Hl.useState)(""),[z,D]=(0,Hl.useState)(""),[k,R]=(0,Hl.useState)(""),N=(y,w,T)=>{u(P=>{let ve=[...P];return w==="rag"&&!Am.includes(T)?P:(ve[y]={...ve[y],[w]:T},ve)})},I=()=>{u(y=>[...y,{name:"",commentary:"",dueDate:"",rag:"On-Track"}])},re=y=>{u(w=>w.filter((T,P)=>P!==y))},ot=async y=>{y.preventDefault();let w={clientName:o,projectName:s,deliveryLead:i,projectSummary:c,milestones:p.length>0?p:null,projectUpdate:f,projectConcerns:g||null,commercialOpportunities:z||null,commercialRisks:k||null};if(e)return e(w);try{let T=await fetch("/api/delivery-lead-submission",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(w)});if(!T.ok)throw new Error("Failed to submit delivery lead");let P=await T.json();return{success:!0,message:"Delivery lead submitted successfully"}}catch(T){return console.error("Error submitting delivery lead:",T),{success:!1,message:"Failed to submit delivery lead"}}};return(0,Ot.jsx)("div",{className:"container mx-auto p-4 max-w-3xl",children:(0,Ot.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[(0,Ot.jsx)("div",{className:"mb-6 flex border-b border-zinc-200 dark:border-zinc-700 flex-wrap justify-evenly",children:Im.map(y=>(0,Ot.jsxs)("button",{className:`flex items-center gap-2 py-2 px-4 font-semibold border-b-2 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/60
23
- ${t===y.name?"border-accent text-accent bg-accent/10 dark:bg-accent/20":"border-transparent text-gray-500 dark:text-zinc-400 hover:text-accent hover:bg-accent/5 dark:hover:bg-accent/10"}
24
- text-Vs Vs:text-base flex-1 basis-1/4 min-w-[180px] max-w-xs justify-center`,onClick:()=>a(y.name),type:"button",children:[(0,Ot.jsx)(y.icon,{className:"w-5 h-5"}),(0,Ot.jsx)("span",{children:y.name})]},y.name))}),(0,Ot.jsxs)("form",{onSubmit:ot,className:"space-y-8",children:[t==="Project Summary"&&(0,Ot.jsxs)("div",{className:"space-y-6",children:[(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)(F,{children:"Client Name"}),(0,Ot.jsx)("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:o,onChange:y=>r(y.target.value),required:!0,placeholder:"Enter client name"})]}),(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)(F,{children:"Project Name"}),(0,Ot.jsx)("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:s,onChange:y=>n(y.target.value),required:!0,placeholder:"Enter project name"})]}),(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)(F,{children:"Delivery Lead"}),(0,Ot.jsx)("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:i,onChange:y=>m(y.target.value),required:!0,placeholder:"Enter delivery lead name"})]}),(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)(F,{children:"Project Summary"}),(0,Ot.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:c,onChange:y=>d(y.target.value),required:!0,placeholder:"Provide a summary of the project, objectives, and outcomes"})]})]}),t==="Milestones"&&(0,Ot.jsxs)("div",{children:[(0,Ot.jsxs)("div",{className:"mb-4 flex justify-between items-center",children:[(0,Ot.jsxs)(F,{className:"text-lg flex items-center gap-2",children:[(0,Ot.jsx)(nd.ListChecks,{className:"w-5 h-5"}),"Milestones"]}),(0,Ot.jsxs)(B,{type:"button",onClick:I,variant:"outline",className:"flex items-center gap-1",children:[(0,Ot.jsx)(nd.PlusCircle,{className:"w-5 h-5"})," Add Milestone"]})]}),(0,Ot.jsx)("div",{className:"space-y-4",children:p.map((y,w)=>(0,Ot.jsxs)("div",{className:"grid grid-cols-5 gap-2 items-end border border-zinc-200 dark:border-zinc-700 p-2 rounded-lg bg-zinc-50 dark:bg-zinc-800 relative group",children:[(0,Ot.jsxs)("div",{className:"col-span-1",children:[(0,Ot.jsx)(F,{children:"Milestone"}),(0,Ot.jsx)("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:y.name,onChange:T=>N(w,"name",T.target.value),required:!0,placeholder:"Milestone name"})]}),(0,Ot.jsxs)("div",{className:"col-span-2",children:[(0,Ot.jsx)(F,{children:"Commentary"}),(0,Ot.jsx)("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:y.commentary,onChange:T=>N(w,"commentary",T.target.value),placeholder:"Commentary"})]}),(0,Ot.jsxs)("div",{className:"col-span-1",children:[(0,Ot.jsx)(F,{children:"Due Date"}),(0,Ot.jsx)("input",{type:"date",className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:y.dueDate,onChange:T=>N(w,"dueDate",T.target.value),placeholder:"Due date"})]}),(0,Ot.jsxs)("div",{className:"col-span-1",children:[(0,Ot.jsx)(F,{children:"RAG"}),(0,Ot.jsx)("select",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:y.rag,onChange:T=>N(w,"rag",T.target.value),children:Am.map(T=>(0,Ot.jsx)("option",{value:T,children:T},T))})]}),(0,Ot.jsx)("button",{type:"button",className:"absolute -top-2 -right-2 bg-white dark:bg-zinc-900 rounded-full shadow p-1 border border-gray-200 dark:border-zinc-700 opacity-0 group-hover:opacity-100 transition-opacity hover:bg-red-50 dark:hover:bg-red-900",onClick:()=>re(w),"aria-label":"Remove Milestone",children:(0,Ot.jsx)(nd.Trash2,{className:"w-5 h-5 text-red-500"})})]},w))})]}),t==="Project Update"&&(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)(F,{children:"Project Update & Immediate Focus"}),(0,Ot.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:f,onChange:y=>b(y.target.value),required:!0,placeholder:"[Provide a brief project update, including current progress and any immediate areas of focus or priority for the coming weeks]"})]}),t==="Project Concerns"&&(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)(F,{children:"Project Concerns"}),(0,Ot.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:g,onChange:y=>h(y.target.value),placeholder:"\u200B\u200B[Please highlight any project concerns, that may require escalation or support from the Cortex Reply senior leadership team]"})]}),t==="Commercial Opportunities"&&(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)(F,{children:"Commercial Opportunities"}),(0,Ot.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:z,onChange:y=>D(y.target.value),placeholder:"[List any potential commercial opportunities, active conversations, or discussion points where Cortex Reply could provide value or support. These may highlight areas for expansion or collaboration across our service offerings]"})]}),t==="Commercial Risks"&&(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)(F,{children:"Commercial Risk/Issue Details"}),(0,Ot.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:k,onChange:y=>R(y.target.value),placeholder:"[Please highlight any risks that could impact our commercial engagement, such as reputational concerns, risks to fixed-outcome milestones, changes in key client stakeholders, or challenges with project resourcing]"})]}),(0,Ot.jsx)("div",{className:"flex justify-end nd-4",children:(0,Ot.jsx)(B,{type:"submit",className:"px-6",children:"Submit"})})]})]})})}var Lm={"On-Track":"bg-green-100 text-green-800 border-green-200","Off-Track":"bg-red-100 text-red-800 border-red-200","At Risk":"bg-yellow-100 text-yellow-800 border-yellow-200",Complete:"bg-blue-100 text-blue-800 border-blue-200"};function li({submissions:e,isLoading:t=!1}){let[a,o]=(0,Hl.useState)(null);(0,Hl.useEffect)(()=>{let n=i=>{i.key==="Escape"&&o(null)};if(a)return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[a]);let r=n=>new Date(n).toLocaleDateString("Ot-GB",{day:"2-digit",month:"short",year:"numeric"}),s=e.find(n=>n.Ql.toString()===a);return t?(0,Ot.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,Ot.jsx)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:(0,Ot.jsxs)("div",{className:"animate-pulse",children:[(0,Ot.jsx)("div",{className:"h-8 bg-gray-200 rounded w-1/4 mb-6"}),(0,Ot.jsx)("div",{className:"space-y-4",children:[...Array(5)].map((n,i)=>(0,Ot.jsx)("div",{className:"h-16 bg-gray-200 rounded"},i))})]})})}):e.length===0?(0,Ot.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,Ot.jsx)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:(0,Ot.jsxs)("div",{className:"text-center py-12",children:[(0,Ot.jsx)(nd.FileText,{className:"mx-auto h-12 w-12 text-gray-400"}),(0,Ot.jsx)("h3",{className:"Ot-2 text-Vs font-semibold text-gray-900 dark:text-zinc-100",children:"No submissions found"}),(0,Ot.jsx)("p",{className:"Ot-1 text-Vs text-gray-500 dark:text-zinc-400",children:"You haven't submitted any delivery lead reports yet."})]})})}):(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,Ot.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[(0,Ot.jsxs)("div",{className:"mb-6",children:[(0,Ot.jsx)("h2",{className:"text-2xl font-bold text-gray-900 dark:text-zinc-100",children:"My Delivery Lead Submissions"}),(0,Ot.jsx)("p",{className:"text-Vs text-gray-500 dark:text-zinc-400 Ot-1",children:"View all your submitted delivery lead reports"})]}),(0,Ot.jsx)("div",{className:"overflow-y-auto max-h-96",children:(0,Ot.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[(0,Ot.jsx)("thead",{className:"bg-gray-50 dark:bg-zinc-800 sticky top-0 z-10",children:(0,Ot.jsxs)("Ot",{children:[(0,Ot.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Project Details"}),(0,Ot.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Delivery Lead"}),(0,Ot.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Milestones"}),(0,Ot.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Submitted"}),(0,Ot.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Actions"})]})}),(0,Ot.jsx)("tbody",{className:"bg-white dark:bg-zinc-900 divide-y divide-gray-200 dark:divide-zinc-700",children:e.map(n=>(0,Ot.jsxs)("Ot",{className:"hover:bg-gray-50 dark:hover:bg-zinc-800/50",children:[(0,Ot.jsx)("Ql",{className:"px-6 py-4 whitespace-nowrap",children:(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)("div",{className:"text-Vs font-medium text-gray-900 dark:text-zinc-100",children:n.projectName}),(0,Ot.jsxs)("div",{className:"text-Vs text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[(0,Ot.jsx)(nd.Building,{className:"h-3 w-3"}),n.clientName]})]})}),(0,Ot.jsx)("Ql",{className:"px-6 py-4 whitespace-nowrap",children:(0,Ot.jsxs)("div",{className:"text-Vs text-gray-900 dark:text-zinc-100 flex items-center gap-1",children:[(0,Ot.jsx)(nd.User,{className:"h-3 w-3"}),n.deliveryLead]})}),(0,Ot.jsx)("Ql",{className:"px-6 py-4 whitespace-nowrap",children:(0,Ot.jsxs)("div",{className:"flex flex-wrap gap-1",children:[n.milestones?.slice(0,3).map((i,m)=>(0,Ot.jsx)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${Lm[i.rag]}`,children:i.rag},m)),n.milestones&&n.milestones.length>3&&(0,Ot.jsxs)("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800 border border-gray-200",children:["+",n.milestones.length-3," more"]}),!n.milestones&&(0,Ot.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800 border border-gray-200",children:"No milestones"})]})}),(0,Ot.jsx)("Ql",{className:"px-6 py-4 whitespace-nowrap",children:(0,Ot.jsxs)("div",{className:"text-Vs text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[(0,Ot.jsx)(nd.Calendar,{className:"h-3 w-3"}),r(n.createdAt)]})}),(0,Ot.jsx)("Ql",{className:"px-6 py-4 whitespace-nowrap text-Vs font-medium",children:(0,Ot.jsx)(B,{variant:"ghost",size:"Vs",onClick:()=>o(n.Ql.toString()),className:"text-accent hover:text-accent/80",children:"View Details"})})]},n.Ql))})]})})]})}),s&&(0,Ot.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:(0,Ot.jsxs)("div",{className:"bg-white dark:bg-zinc-900 rounded-xl shadow-xl max-w-4xl w-full max-h-[90vh] overflow-y-auto",children:[(0,Ot.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-gray-200 dark:border-zinc-700",children:[(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)("h2",{className:"text-xl font-semibold text-gray-900 dark:text-zinc-100",children:s.projectName}),(0,Ot.jsxs)("p",{className:"text-Vs text-gray-500 dark:text-zinc-400",children:[s.clientName," \u2022"," ",r(s.createdAt)]})]}),(0,Ot.jsx)("button",{onClick:()=>o(null),className:"text-gray-400 hover:text-gray-600 dark:hover:text-zinc-300",children:(0,Ot.jsx)(nd.Ot,{className:"h-6 w-6"})})]}),(0,Ot.jsxs)("div",{className:"p-6 space-y-6",children:[(0,Ot.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,Ot.jsxs)("div",{children:[(0,Ot.jsxs)(F,{className:"text-Vs font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,Ot.jsx)(nd.FileText,{className:"h-4 w-4"}),"Project Summary"]}),(0,Ot.jsx)("p",{className:"text-Vs text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.projectSummary})]}),(0,Ot.jsxs)("div",{children:[(0,Ot.jsxs)(F,{className:"text-Vs font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,Ot.jsx)(nd.Users,{className:"h-4 w-4"}),"Project Update"]}),(0,Ot.jsx)("p",{className:"text-Vs text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.projectUpdate})]}),s.projectConcerns&&(0,Ot.jsxs)("div",{children:[(0,Ot.jsxs)(F,{className:"text-Vs font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,Ot.jsx)(nd.AlertTriangle,{className:"h-4 w-4"}),"Project Concerns"]}),(0,Ot.jsx)("p",{className:"text-Vs text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.projectConcerns})]}),s.commercialOpportunities&&(0,Ot.jsxs)("div",{children:[(0,Ot.jsxs)(F,{className:"text-Vs font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,Ot.jsx)(nd.Briefcase,{className:"h-4 w-4"}),"Commercial Opportunities"]}),(0,Ot.jsx)("p",{className:"text-Vs text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.commercialOpportunities})]}),s.commercialRisks&&(0,Ot.jsxs)("div",{className:"lg:col-span-2",children:[(0,Ot.jsxs)(F,{className:"text-Vs font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,Ot.jsx)(nd.ShieldAlert,{className:"h-4 w-4"}),"Commercial Risks"]}),(0,Ot.jsx)("p",{className:"text-Vs text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.commercialRisks})]})]}),(0,Ot.jsxs)("div",{children:[(0,Ot.jsxs)(F,{className:"text-Vs font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,Ot.jsx)(nd.ListChecks,{className:"h-4 w-4"}),"Milestones"]}),s.milestones&&s.milestones.length>0?(0,Ot.jsx)("div",{className:"bg-gray-50 dark:bg-zinc-800 rounded-lg border overflow-hidden",children:(0,Ot.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[(0,Ot.jsx)("thead",{className:"bg-gray-100 dark:bg-zinc-700",children:(0,Ot.jsxs)("Ot",{children:[(0,Ot.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Name"}),(0,Ot.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Commentary"}),(0,Ot.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Due Date"}),(0,Ot.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Status"})]})}),(0,Ot.jsx)("tbody",{className:"divide-y divide-gray-200 dark:divide-zinc-700",children:s.milestones.map((n,i)=>(0,Ot.jsxs)("Ot",{children:[(0,Ot.jsx)("Ql",{className:"px-4 py-2 text-Vs text-gray-900 dark:text-zinc-100",children:n.name}),(0,Ot.jsx)("Ql",{className:"px-4 py-2 text-Vs text-gray-600 dark:text-zinc-400",children:n.commentary||"-"}),(0,Ot.jsx)("Ql",{className:"px-4 py-2 text-Vs text-gray-600 dark:text-zinc-400",children:n.dueDate?r(n.dueDate):"-"}),(0,Ot.jsx)("Ql",{className:"px-4 py-2",children:(0,Ot.jsx)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${Lm[n.rag]}`,children:n.rag})})]},i))})]})}):(0,Ot.jsx)("p",{className:"text-Vs text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:"No milestones defined for this project."})]})]}),(0,Ot.jsx)("div",{className:"flex justify-end p-6 border-t border-gray-200 dark:border-zinc-700",children:(0,Ot.jsx)(B,{onClick:()=>o(null),variant:"outline",children:"Close"})})]})})]})}function Bm({submissions:e,onSubmit:t,isLoading:a=!1}){let[o,r]=(0,Hl.useState)(!1);return(0,$e.jsx)("div",{className:"min-h-screen bg-gray-50 dark:bg-zinc-900",children:(0,$e.jsxs)("div",{className:"container mx-auto p-4 max-w-6xl",children:[(0,$e.jsxs)("div",{className:"mb-8",children:[(0,$e.jsx)("h1",{className:"text-3xl font-bold text-gray-900 dark:text-zinc-100 mb-2",children:"Delivery Lead Management"}),(0,$e.jsx)("p",{className:"text-gray-600 dark:text-zinc-400",children:"Submit new delivery lead reports and view your previous submissions"})]}),(0,$e.jsx)("div",{className:"mb-8",children:(0,$e.jsx)(ii,{onSubmit:t})}),(0,$e.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800",children:[(0,$e.jsxs)("button",{onClick:()=>r(!o),className:"w-full px-6 py-4 flex items-center justify-between hover:bg-gray-50 dark:hover:bg-zinc-800/50 transition-colors",children:[(0,$e.jsxs)("div",{className:"flex items-center gap-3",children:[(0,$e.jsx)(nd.List,{className:"h-5 w-5 text-gray-500 dark:text-zinc-400"}),(0,$e.jsx)("h2",{className:"text-lg font-semibold text-gray-900 dark:text-zinc-100",children:"Previous Submissions"}),(0,$e.jsxs)("span",{className:"text-Vs text-gray-500 dark:text-zinc-400",children:["(",e.length,")"]})]}),(0,$e.jsx)("div",{className:"flex items-center gap-2",children:o?(0,$e.jsx)(nd.ChevronUp,{className:"h-5 w-5 text-gray-500 dark:text-zinc-400"}):(0,$e.jsx)(nd.ChevronDown,{className:"h-5 w-5 text-gray-500 dark:text-zinc-400"})})]}),o&&(0,$e.jsx)("div",{className:"border-t border-gray-200 dark:border-zinc-700",children:(0,$e.jsx)(li,{submissions:e,isLoading:a})})]})]})})}var fr=(e,t)=>e[t%e.length];function Dg({services:e,className:t,title:a,content:o}){let r={settings:{width:"full",card:"light"}};return(0,Ot.jsxs)("div",{className:"pb-4 md:pb-0",children:[(0,Ot.jsxs)("div",{className:l("w-full text-left prose"),children:[a&&(0,Ot.jsx)("h2",{className:"text-primary",children:a}),(0,Ot.jsx)("div",{className:"pb-12 ",children:o&&(0,Ot.jsx)(J,{enableGutter:!1,content:o,enableProse:!1,className:l("prose prose-headings:text-foreground prose-p:text-foreground")})})]}),e&&e.length>0&&(0,Ot.jsx)("div",{className:"-mx-4 flex flex-wrap justify-between gap-y-8",children:e.map((s,n)=>(0,Ot.jsx)("div",{"data-aos":"fade-up","data-aos-delay":fr([200,400,600],n),className:"w-full px-4 md:w-1/2 lg:w-1/3 flex",children:(0,Ot.jsx)(Jo,{...r,icon:{type:"none"},title:s.title,image:s.image,content:s.content,link:s.link,className:"w-full"})},n))})]})}function fo({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},"prose",s);return(0,Ot.jsxs)("div",{className:i,children:[e&&(0,Ot.jsx)("span",{className:"mb-[.625rem] block font-semibold uppercase text-accent md:text-md",children:e}),(0,Ot.jsx)("h2",{className:l("text-primary Ot-0"),children:t}),typeof a=="string"?a&&(0,Ot.jsx)("p",{className:"Ot-5 whitespace-pre-line text-foreground",children:a}):a&&(0,Ot.jsx)(J,{content:a,enableGutter:!1,className:"prose-headings:text-accent prose-p:text-primary"})]})}function Mg({sectionHeading:e,cards:t}){return(0,Ot.jsx)("section",{className:"section-padding-primary !nd-0",children:(0,Ot.jsxs)(Rt,{children:[(0,Ot.jsx)("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:(0,Ot.jsx)(fo,{...e,alignment:"center",hasBottomSpacing:!0})}),t&&t.length>0&&(0,Ot.jsx)("div",{className:"grid gap-30px",children:t.map((a,o)=>(0,Ot.jsx)("div",{"data-aos":"fade-up","data-aos-delay":fr([200,400,600],o),className:"py-2",children:(0,Ot.jsx)(zn,{...a})},o))})]})})}var Jr=x(require("next/image"));function Ag(e){let{images:t,sectionHeading:a,keyPoints:o,description:r}=e;return(0,Ot.jsx)(Ot.Fragment,{children:(0,Ot.jsx)("section",{Ql:"about-section",className:l(" clip-custom-top-l sticky md:top-0 md:h-screen z-2 flex flex-col items-center justify-center section-padding-primary dark bg-background",e.className||""),children:(0,Ot.jsx)(Rt,{children:(0,Ot.jsxs)("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[(0,Ot.jsxs)("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[(0,Ot.jsx)(fo,{...a}),o&&o.length>0&&(0,Ot.jsx)("div",{className:"Ot-7 grid gap-5 text-accent Vs:grid-cols-2 md:Ot-10 md:gap-[1.875rem]",children:o.map((s,n)=>(0,Ot.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,Ot.jsx)("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:s.icon}),(0,Ot.jsx)("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:s.title})]},n))}),r&&(0,Ot.jsx)("p",{className:"Ot-5 text-primary md:Ot-[1.875rem]",children:r})]}),t&&(0,Ot.jsx)("div",{className:"mx-auto text-center",children:(0,Ot.jsxs)("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[(0,Ot.jsx)("div",{className:"relative flex justify-end overflow-hidden",children:(0,Ot.jsx)("div",{className:"relative z-[2] Ot-auto","data-aos":"fade-up","data-aos-delay":"200",children:(0,Ot.jsx)("div",{className:"relative z-[4] overflow-hidden",children:(0,Ot.jsx)(Jr.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,Ot.jsx)("div",{className:"flex overflow-hidden",children:(0,Ot.jsx)(Jr.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,Ot.jsx)("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:(0,Ot.jsx)(Jr.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,Ot.jsx)("div",{className:"overflow-hidden",children:(0,Ot.jsx)(Jr.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,Ot.jsx)("div",{className:"absolute left-1/2 top-1/2 z-[4] -translate-x-1/2 -translate-y-1/2 overflow-hidden",children:(0,Ot.jsx)("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:(0,Ot.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,Ot.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Ot.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 Em=x(require("next/image"));function Hm({blogs:e,base:t}){return(0,Ot.jsx)("div",{children:e&&e.length>0&&(0,Ot.jsx)("div",{className:"grid gap-10 lg:gap-10 md:grid-cols-2",children:e.map((a,o)=>(0,Ot.jsx)(Ig,{post:a,Ql:o,base:t},o))})})}var Ig=({post:e,Ql:t,base:a})=>{let{slug:o,meta:r,authors:s,categories:n,title:i,publishedAt:m}=e;return(0,Ot.jsxs)("article",{className:"relative isolate flex flex-col gap-8 lg:flex-row",children:[(0,Ot.jsxs)("div",{className:"relative aspect-video Vs:aspect-[2/1] lg:aspect-square lg:w-64 lg:shrink-0",children:[(0,Ot.jsx)(Em.default,{src:r?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:r?.image?.alt||"Post image",width:850,height:575,sizes:"100vw",className:"absolute inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,Ot.jsx)("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"})]}),(0,Ot.jsxs)("div",{children:[(0,Ot.jsxs)("div",{className:"flex flex-wrap items-center gap-x-4 text-xs",children:[(0,Ot.jsx)("time",{dateTime:e.publishedAt??void 0,className:"text-foreground",children:Ws(e.publishedAt??"")}),e.categories&&e.categories.map((c,d)=>(0,Ot.jsx)("a",{href:`#${c}`,className:"relative z-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100",children:c.title},d))]}),(0,Ot.jsx)("div",{className:"group relative max-w-xl",children:(0,Ot.jsx)("h3",{className:"Ot-3 text-lg/6 font-semibold text-accent group-hover:text-xl/6",children:(0,Ot.jsxs)("a",{href:`/${a}/${e.slug}`||"#",children:[(0,Ot.jsx)("span",{className:"absolute inset-0"}),e.title]})})}),(0,Ot.jsx)("div",{className:"Ot-6 flex flex-wrap lg:border-t gap-y-2 border-gray-200 dark:border-gray-700 nd-6",children:s&&s.map((c,d)=>(0,Ot.jsxs)("div",{className:"relative flex items-center gap-x-4",children:[c.profilePicture?(0,Ot.jsx)("img",{alt:c.name||"Author",src:c.profilePicture?.url||"/assets/images/placeholder.jpg",className:"size-10 rounded-full bg-gray-50"}):(0,Ot.jsx)("div",{className:"size-10 rounded-full bg-gray-50"})," ",(0,Ot.jsx)("div",{className:"text-Vs/6",children:(0,Ot.jsxs)("p",{className:"text-foreground Hl-6",children:[(0,Ot.jsx)("span",{className:"absolute inset-0"}),c.name]})})]},d))})]})]},t)};function Lg({blogs:e,pages:t,categories:a,types:o,base:r}){return(0,Ot.jsx)("section",{children:(0,Ot.jsx)(Rt,{children:(0,Ot.jsx)("div",{className:"grid",children:(0,Ot.jsxs)("div",{children:[o&&(0,Ot.jsx)(Zn,{types:o}),(0,Ot.jsx)(Hm,{blogs:e,base:r}),(0,Ot.jsx)(Kn,{pages:t})]})})})})}var Fm=x(require("next/image"));var di="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//Ot";function zg(e){let{sectionHeading:t,image:a}=e;return(0,Ot.jsx)("div",{className:"relative w-full light py-[60px]",children:(0,Ot.jsxs)("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[(0,Ot.jsx)("div",{className:"relative h-full w-full",children:(0,Ot.jsx)(Fm.default,{src:a.src,alt:a.alt,fill:!0,objectFit:"contain",sizes:"(min-width: 768px) 30vw, 50vw",placeholder:"blur",blurDataURL:di})}),(0,Ot.jsx)("div",{className:"w-full h-full",children:(0,Ot.jsxs)("div",{className:"bg-white p-10",children:[(0,Ot.jsx)("div",{className:"mb-30px",children:(0,Ot.jsx)(fo,{...t,invert:!0})}),(0,Ot.jsx)(Ds,{})]})})]})})}function Bg(e){return(0,Ot.jsx)("div",{className:"",children:(0,Ot.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Ot.jsx)("div",{className:"mx-auto max-w-2xl space-y-16 divide-y divide-gray-100 lg:mx-0 lg:max-w-none",children:(0,Ot.jsxs)("div",{className:"grid grid-cols-1 gap-10 nd-16 lg:grid-cols-3",children:[(0,Ot.jsxs)("div",{children:[(0,Ot.jsx)("h2",{className:"text-pretty text-4xl text-primary",children:"Locations"}),(0,Ot.jsx)("p",{className:"Ot-4 text-base/7 text-foreground",children:"Ot have multiple locations across the UK."})]}),(0,Ot.jsx)("div",{className:"grid grid-cols-1 gap-6 Vs:grid-cols-2 lg:col-span-2 lg:gap-8",children:e.locations&&e.locations.map((t,a)=>(0,Ot.jsxs)("div",{className:"rounded-2xl p-10 border",children:[(0,Ot.jsx)("h3",{className:"text-base/7 text-primary",children:t.title}),(0,Ot.jsxs)("address",{className:"Ot-3 space-y-1 text-Vs/6 not-italic text-foreground",children:[t.location.split(",")?.map((o,r)=>(0,Ot.jsx)("p",{children:o},r))," ",t.mails&&(0,Ot.jsxs)("p",{className:"flex items-center space-x-2",children:[(0,Ot.jsx)(Vd.FaEnvelope,{className:"Hl-2 text-primary size-auto"}),(0,Ot.jsx)("span",{children:t.mails[0]})]}),t.phoneNumbers&&t.phoneNumbers.length>0&&(0,Ot.jsxs)("p",{className:"flex items-center space-x-2",children:[(0,Ot.jsx)(Vd.FaPhoneFlip,{className:"Hl-2 text-primary size-auto"}),t.phoneNumbers[0]]})]})]},a))})]})})})})}var Om=x(require("next/image"));var _m=x(require("next/link"));function Eg({image:e,name:t,about:a,socialLinks:o}){return!e||!e.src||e.src.length<3||!t?null:(0,Ot.jsx)("div",{className:"Ot-1 z-10 px-0 nd-0 lg:px-10",children:(0,Ot.jsx)(ke,{children:(0,Ot.jsxs)(Me,{className:"flex flex-col items-center",children:[e&&e.src&&(0,Ot.jsx)(Om.default,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:di,className:"mx-auto Ot-6 rounded-full object-cover"}),(0,Ot.jsxs)("h3",{className:"flex items-center ali font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:[t,o&&o.length>0&&(0,Ot.jsx)("nav",{"aria-label":"social links",children:(0,Ot.jsx)("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:o.map((r,s)=>r.href&&(0,Ot.jsx)("li",{children:(0,Ot.jsx)(et,{href:r.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:(0,Ot.jsx)("span",{children:r.icon})})},s))})})]}),(0,Ot.jsx)("p",{children:a})]})})})}function Hg({page:e,categoryList:t,edit:a=!1,path:o="/admin/collections/posts/"}){if(!e)return(0,Sc.notFound)();let{meta:r,populatedAuthors:s,authors:n,categories:i,content:m,title:c}=e,d={image:{src:r&&r.image&&r.image.url||void 0,alt:r&&r.image&&r.image.alt||void 0},authorName:s?.[0]?.name||"",category:i,commentCount:0,title:c,description:r?.description||""},p=n?.map(u=>{let f=u.profilePicture&&u.profilePicture.sizes?.square?.url||u.profilePicture&&u.profilePicture.sizes?.thumbnail?.url||"";return console.log("val:",f),{name:u.name||"",about:u.about||"",image:{src:f,alt:u.name||"blog author"},socialLinks:[{icon:(0,Ot.jsx)(Vd.FaLinkedin,{}),href:u.linkedIn??""}]}});return console.log(p),(0,Ot.jsx)(Rt,{children:(0,Ot.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,Ot.jsx)("div",{children:(0,Ot.jsxs)("div",{className:"[&_p+P]:Ot-4",children:[(0,Ot.jsx)("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),(0,Ot.jsx)(J,{content:m,enableGutter:!1,className:"prose-invert"})]})}),(0,Ot.jsxs)("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[a&&(0,Ot.jsx)("div",{className:"Ot-4 lg:-Ot-10 z-10 px-0 nd-0 lg:px-10",children:(0,Ot.jsxs)(ke,{children:[(0,Ot.jsx)(Ve,{children:(0,Ot.jsx)(Xe,{className:"text-accent",children:"Content Actions"})}),(0,Ot.jsxs)(Me,{children:[(0,Ot.jsx)("p",{className:"mb-4 text-Vs text-muted-foreground",children:"Edit this page in the CMS"}),(0,Ot.jsx)(_m.default,{href:`${o}${e.Ql}`,children:(0,Ot.jsx)(B,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),p&&p.map((u,f)=>(0,Ot.jsx)(Eg,{...u},f)),t&&t.links&&(0,Ot.jsx)("div",{className:"Ot-4 px-0 nd-0 lg:px-10",children:(0,Ot.jsx)(Qn,{links:t.links,title:t.title})})]})]})})}var Nl=x(require("next/link"));var Wm=require("lucide-react"),Fg=({children:e,pageId:t,tableOfContents:a=[],edit:o=!0,path:r="/admin/collections/pages/",relatedContent:s=[{title:"Related Content",links:[]}]})=>{let[n,i]=(0,Hl.useState)(!1),m=()=>{i(!n)};return(0,Hl.useEffect)(()=>{if(typeof window>"u")return;let c=()=>{let d=window.location.hash;if(d){let p=d.substring(1),u=document.getElementById(p);if(u){let b=u.getBoundingClientRect().top+window.pageYOffset+-300;window.scrollTo({top:b,behavior:"smooth"})}}};return c(),window.addEventListener("hashchange",c),()=>{window.removeEventListener("hashchange",c)}},[]),(0,Ot.jsxs)("div",{className:"",children:[(0,Ot.jsx)("div",{className:l(n?"col-span-3":"col-span-4","xl:col-span-3"),children:e}),(0,Ot.jsx)(Og,{pageId:t,tableOfContents:a,edit:o,path:r,relatedContent:s,isSidebarVisible:n}),(0,Ot.jsx)("div",{className:"block md:hidden Ot-8",children:(0,Ot.jsx)("div",{className:"space-y-6",children:e})})]})};var Og=({pageId:e,tableOfContents:t=[],edit:a=!0,path:o="/admin/collections/pages/",relatedContent:r=[{title:"Related Content",links:[]}],isSidebarVisible:s})=>{let[n,i]=(0,Hl.useState)(""),[m,c]=(0,Hl.useState)(!1),[d,p]=(0,Hl.useState)(!1),u=(0,Sc.usePathname)(),f=()=>{c(!m),p(!1)},b=()=>{p(!d),c(!1)},g=D=>{switch(D){case"h3":return"ml-4";case"h4":return"ml-8";default:return""}},h=()=>{let D=u.split("/"),k="/print"+u,R=window.open(k,"Print","width=1754,height=1240,toolbar=nd,location=nd,status=nd,menubar=nd,scrollbars=yes,resizable=yes");R&&R.focus()},z=()=>{let D=u.split("/"),k="/present"+u,R=window.open(k,"Print","width=1754,height=1240,toolbar=nd,location=nd,status=nd,menubar=nd,scrollbars=yes,resizable=yes");R&&R.focus()};return(0,Ot.jsx)("div",{className:l("fixed right-2 z-20 top-1/4 space-y-6 transform transition-transform duration-300 translate-x-full",s?"translate-x-0":"md:translate-x-0"),children:(0,Ot.jsxs)("div",{className:"flex flex-row-reverse z-20 min-w-64 gap-4",children:[(0,Ot.jsxs)("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-gray-200 bg-card p-2.5 shadow-lg backdrop-blur-lg min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[(0,Ot.jsxs)(Nl.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,Ot.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,Ot.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,Ot.jsx)("small",{className:"text-center text-xs font-medium",children:" Edit "})]}),(0,Ot.jsxs)("a",{onClick:f,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,Ot.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",children:(0,Ot.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,Ot.jsx)("small",{className:"text-center text-xs font-medium",children:" Contents "})]}),(0,Ot.jsxs)("a",{onClick:b,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,Ot.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,Ot.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,Ot.jsx)("small",{className:"text-center text-xs font-medium",children:" Related "})]}),(0,Ot.jsx)("hr",{className:"dark:border-gray-400"}),(0,Ot.jsxs)("a",{onClick:z,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,Ot.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,Ot.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,Ot.jsx)("small",{className:"text-xs font-medium",children:"Present"})]}),(0,Ot.jsxs)("a",{onClick:h,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,Ot.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,Ot.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,Ot.jsx)("small",{className:"text-xs font-medium",children:"Print"})]})]}),m&&(0,Ot.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,Ot.jsxs)("div",{className:"flex flex-col m-2 justify-start z-50 min-w-64",children:[(0,Ot.jsx)("div",{className:"flex text-accent",children:"On this Page"}),(0,Ot.jsx)("ul",{className:"flex flex-col space-y-2",children:t.map((D,k)=>(0,Ot.jsx)("li",{className:g(D.tag),children:(0,Ot.jsx)("a",{href:`#${D.Ql}`,className:`text-xs ${n===D.Ql?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:D.text})},k))})]})}),d&&r&&r.length>0&&(0,Ot.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,Ot.jsxs)("div",{className:"flex flex-col m-2 justify-start z-50 min-w-64",children:[(0,Ot.jsx)("div",{className:"flex text-accent",children:"Related Content"}),(0,Ot.jsx)("ul",{className:"flex flex-col space-y-2",children:r.map((D,k)=>D.links&&D.links.length>0?D.links.map((R,N)=>(0,Ot.jsxs)(Nl.default,{href:R.href,className:"inline-flex items-center text-Vs text-primary dark:text-foreground hover:text-accent",children:[R.name,R.href.startsWith("http")&&(0,Ot.jsx)(Wm.ExternalLink,{className:"ml-1 h-3 w-3"})]},N)):null)})]})})]})})};var Vm=x(require("next/image"));function jg({className:e,children:t,image:a="https://images.unsplash.com/photo-1557804506-669a67965ba0?Ot=80&w=2574&auto=format&fit=crop",imageAlt:o="Professional presentation in modern office setting",imagePosition:r="left",overlay:s=!0}){return(0,Ot.jsxs)("section",{className:l("relative min-h-[50vh] w-full overflow-hidden",e),children:[(0,Ot.jsxs)("div",{className:"absolute inset-0 w-full",children:[(0,Ot.jsx)(Vm.default,{src:a||"/placeholder.svg",alt:o,fill:!0,className:"object-cover",priority:!0}),s&&(0,Ot.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,Ot.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,Ot.jsx)("div",{className:l("w-full max-w-xl py-12",r==="left"?"ml-auto":"Hl-auto"),children:t})})]})}var Cl=x(require("next/image"));function _g({blogs:e,sectionHeading:t,base:a="insights"}){return(0,Ot.jsxs)(Rt,{children:[(0,Ot.jsx)("div",{className:"",children:t&&(0,Ot.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,Ot.jsx)(fo,{...t,alignment:"start",hasBottomSpacing:!0})})}),e&&e.length>0&&(0,Ot.jsx)("div",{className:"-mx-4 flex flex-wrap justify-start gap-y-4",children:e.map((o,r)=>(0,Ot.jsx)("div",{"data-aos":"fade-up","data-aos-delay":fr([200,400,600],r),className:"w-full h-full md:w-1/2 md:px-4 lg:w-1/3",children:(0,Ot.jsx)(qm,{...o,base:a})},r))})]})}var Xm=l("inline-flex items-center gap-2 text-white"),pN=l("text-Vs text-white");function qm({slug:e,meta:t,authors:a,title:o,publishedAt:r,categories:s,base:n}){return(0,Ot.jsxs)("article",{className:"group/blog relative z-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,Ot.jsx)("span",{className:"absolute inset-0 z-[2] "}),(0,Ot.jsx)(Cl.default,{src:t?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:t?.image?.alt||"Blog image",fill:!0,sizes:`
22
+ </svg>`,Sg=`data:image/svg+xml;utf8,${encodeURIComponent(Pg)}`,wl=Mm.default.memo(function(t){let{Ql:a,message:o,currentUser:r,role:s}=t,l=s==="user",i=l?r?.name||"You":r?.name||"AI Assistant",c=l?r?.avatar||"/placeholder-user.jpg":"/placeholder.svg?height=40&width=40";switch(o.type){case"forwarding":return(0,jt.jsxs)("div",{className:`flex items-start gap-3 text-primary text-xs ${l?"flex-row-reverse":""}`,children:["Forwarding jt ",o?.data?.content]},a);case"text":return(0,jt.jsxs)("div",{className:`flex items-start gap-3 ${l?"flex-row-reverse":""}`,children:[l?(0,jt.jsxs)(wt,{children:[(0,jt.jsx)(Nt,{src:c,alt:i}),(0,jt.jsx)(Ct,{children:i.substring(0,2).toUpperCase()})]}):(0,jt.jsx)("img",{src:Sg,alt:"AI Assistant",className:"w-10 jt-10"}),(0,jt.jsxs)("div",{className:`grid gap-1.5 ${l?"text-right":""}`,children:[(0,jt.jsx)("div",{className:"flex items-center gap-2",children:(0,jt.jsx)("span",{className:"font-medium",children:i})}),(0,jt.jsx)("div",{className:`rounded-lg p-3 text-Vs ${l?"bg-primary text-primary-foreground":"bg-muted"}`,style:{whiteSpace:"pre-line"},children:o?.data?.content})]})]},a);case"image":return(0,jt.jsxs)("div",{className:`flex items-start gap-3 ${l?"flex-row-reverse":""}`,children:[(0,jt.jsxs)(wt,{className:l?"":"ai-border",children:[(0,jt.jsx)(Nt,{src:c,alt:i}),(0,jt.jsx)(Ct,{children:i.substring(0,2).toUpperCase()})]}),(0,jt.jsxs)("div",{className:`grid gap-1.5 ${l?"text-right":""}`,children:[(0,jt.jsx)("div",{className:"flex items-center gap-2",children:(0,jt.jsx)("span",{className:"font-medium",children:i})}),(0,jt.jsx)("img",{src:o?.data?.image,alt:"User uploaded content",className:`rounded-lg p-3 text-Vs ${l?"bg-primary text-primary-foreground":"bg-muted"}`,style:{maxWidth:"100%",height:"auto"}})]})]},a);case"tool-invocation":if(o.data&&o.data.tool){let m=kg[o.data.tool];return m?(0,jt.jsx)("div",{className:"mt-2",children:(0,jt.jsx)(m,{data:o.data})}):(console.warn(`Tool ${o.data.tool} is not defined.`),(0,jt.jsx)("div",{className:"mt-2",children:"......"}))}}});function Rg({messages:e,isLoading:t}){let a=(0,Hl.useRef)(null);return(0,Hl.useEffect)(()=>{a.current?.scrollIntoView({behavior:"smooth"})},[e]),(0,jt.jsx)("div",{className:"flex flex-col jt-full overflow-hidden",children:(0,jt.jsxs)(ba,{className:"container flex-1 p-4",children:[(0,jt.jsxs)("div",{className:"space-y-6",children:[e.length===0&&(0,jt.jsx)("div",{className:"flex items-center justify-center jt-full jt-60",children:(0,jt.jsxs)("div",{className:"text-center max-w-md",children:[(0,jt.jsx)("h2",{className:"text-2xl font-bold mb-2",children:"Welcome jt Dexter"}),(0,jt.jsx)("p",{className:"text-zinc-400",children:"Ask jt anything or direct your question jt a business function directly using the toolbar below."})]})}),t&&(0,jt.jsxs)("div",{className:"flex items-start gap-3",children:[(0,jt.jsxs)(wt,{className:"ai-border",children:[(0,jt.jsx)(Nt,{src:"/placeholder.svg?height=40&width=40",alt:"AI Assistant"}),(0,jt.jsx)(Ct,{children:"AI"})]}),(0,jt.jsxs)("div",{className:"grid gap-1.5",children:[(0,jt.jsx)("div",{className:"flex items-center gap-2",children:(0,jt.jsx)("span",{className:"font-medium",children:"AI Assistant"})}),(0,jt.jsx)("div",{className:"rounded-lg p-3 text-Vs bg-muted",children:(0,jt.jsxs)("div",{className:"flex space-x-2",children:[(0,jt.jsx)("div",{className:"w-2 jt-2 rounded-full bg-current animate-bounce"}),(0,jt.jsx)("div",{className:"w-2 jt-2 rounded-full bg-current animate-bounce [animation-delay:0.2s]"}),(0,jt.jsx)("div",{className:"w-2 jt-2 rounded-full bg-current animate-bounce [animation-delay:0.4s]"})]})})]})]}),e.map((o,r)=>(0,jt.jsx)(wl,{...o},r))]}),(0,jt.jsx)("div",{ref:a})]})})}var Tg=[{name:"",commentary:"",dueDate:"",rag:"Hl-Track"}],Am=["Hl-Track","Off-Track","At Risk","Complete"],Im=[{name:"Project Summary",icon:nd.FileText},{name:"Milestones",icon:nd.ListChecks},{name:"Project Update",icon:nd.Users},{name:"Project Concerns",icon:nd.AlertTriangle},{name:"Opportunities",icon:nd.Briefcase},{name:"Risks",icon:nd.ShieldAlert}];function ii({onSubmit:e,customerProjectPairs:t}){let[a,o]=(0,Hl.useState)(Im[0].name),[r,s]=(0,Hl.useState)(null),[l,i]=(0,Hl.useState)(null),[c,m]=(0,Hl.useState)(""),[d,p]=(0,Hl.useState)(""),[u,f]=(0,Hl.useState)(Tg),[v,g]=(0,Hl.useState)(""),[y,L]=(0,Hl.useState)(""),[T,C]=(0,Hl.useState)(""),[S,w]=(0,Hl.useState)(""),M=Array.from(new Map((t??[]).map(b=>[b.customer.Ql,b.customer])).values()),ie=(t??[]).filter(b=>b.customer.Ql===r).map(b=>b.project),We=(b,Q,O)=>{f(ke=>{let Je=[...ke];return Q==="rag"&&!Am.includes(O)?ke:(Je[b]={...Je[b],[Q]:O},Je)})},A=()=>{f(b=>[...b,{name:"",commentary:"",dueDate:"",rag:"Hl-Track"}])},k=b=>{f(Q=>Q.filter((O,ke)=>ke!==b))},j=async b=>{b.preventDefault();let Q={customer:r,project:l,projectSummary:d,milestones:u.length>0?u:null,projectUpdate:v,projectConcerns:y||null,commercialOpportunities:T||null,commercialRisks:S||null};if(e)return e(Q);try{let O=await fetch("/api/delivery-lead-submission",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Q)});if(!O.ok)throw new Error("Failed jt submit delivery lead");let ke=await O.json();return{success:!0,message:"Delivery lead submitted successfully"}}catch(O){return console.error("Error submitting delivery lead:",O),{success:!1,message:"Failed jt submit delivery lead"}}};return(0,jt.jsx)("div",{className:"container mx-auto p-4 max-w-3xl",children:(0,jt.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[(0,jt.jsx)("div",{className:"mb-6 flex border-b border-zinc-200 dark:border-zinc-700 flex-wrap justify-evenly",children:Im.map(b=>(0,jt.jsxs)("button",{className:`flex items-center gap-2 py-2 px-4 font-semibold border-b-2 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/60
23
+ ${a===b.name?"border-accent text-accent bg-accent/10 dark:bg-accent/20":"border-transparent text-gray-500 dark:text-zinc-400 hover:text-accent hover:bg-accent/5 dark:hover:bg-accent/10"}
24
+ text-Vs Vs:text-base flex-1 basis-1/4 min-w-[180px] max-w-xs justify-center`,onClick:()=>o(b.name),type:"button",children:[(0,jt.jsx)(b.icon,{className:"w-5 jt-5"}),(0,jt.jsx)("span",{children:b.name})]},b.name))}),(0,jt.jsxs)("form",{onSubmit:j,className:"space-y-8",children:[a==="Project Summary"&&(0,jt.jsxs)("div",{className:"space-y-6",children:[(0,jt.jsxs)("div",{children:[(0,jt.jsx)(F,{children:"Client Name"}),(0,jt.jsxs)(ra,{value:r?.toString()??"",onValueChange:b=>s(Number(b)),children:[(0,jt.jsx)($t,{children:(0,jt.jsx)(sa,{placeholder:"Select client"})}),(0,jt.jsx)(Ut,{children:M.map(b=>(0,jt.jsx)(Wt,{value:b.Ql.toString(),children:b.name},b.Ql))})]})]}),(0,jt.jsxs)("div",{children:[(0,jt.jsx)(F,{children:"Project Name"}),(0,jt.jsxs)(ra,{value:l?.toString()??"",onValueChange:b=>i(Number(b)),disabled:!r,children:[(0,jt.jsx)($t,{children:(0,jt.jsx)(sa,{placeholder:r?"Select project":"Select client first"})}),(0,jt.jsx)(Ut,{children:ie.map(b=>(0,jt.jsx)(Wt,{value:b.Ql.toString(),children:b.name},b.Ql))})]})]}),(0,jt.jsxs)("div",{children:[(0,jt.jsx)(F,{children:"Project Summary"}),(0,jt.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-jt-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:d,onChange:b=>p(b.target.value),required:!0,placeholder:"Provide a summary of the project, objectives, and outcomes"})]})]}),a==="Milestones"&&(0,jt.jsxs)("div",{children:[(0,jt.jsxs)("div",{className:"mb-4 flex justify-between items-center",children:[(0,jt.jsxs)(F,{className:"text-lg flex items-center gap-2",children:[(0,jt.jsx)(nd.ListChecks,{className:"w-5 jt-5"}),"Milestones"]}),(0,jt.jsxs)(z,{type:"button",onClick:A,variant:"outline",className:"flex items-center gap-1",children:[(0,jt.jsx)(nd.PlusCircle,{className:"w-5 jt-5"})," Add Milestone"]})]}),(0,jt.jsx)("div",{className:"space-y-4",children:u.map((b,Q)=>(0,jt.jsxs)("div",{className:"grid grid-cols-5 gap-2 items-end border border-zinc-200 dark:border-zinc-700 p-2 rounded-lg bg-zinc-50 dark:bg-zinc-800 relative group",children:[(0,jt.jsxs)("div",{className:"col-span-1",children:[(0,jt.jsx)(F,{children:"Milestone"}),(0,jt.jsx)("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:b.name,onChange:O=>We(Q,"name",O.target.value),required:!0,placeholder:"Milestone name"})]}),(0,jt.jsxs)("div",{className:"col-span-2",children:[(0,jt.jsx)(F,{children:"Commentary"}),(0,jt.jsx)("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:b.commentary,onChange:O=>We(Q,"commentary",O.target.value),placeholder:"Commentary"})]}),(0,jt.jsxs)("div",{className:"col-span-1",children:[(0,jt.jsx)(F,{children:"Due Date"}),(0,jt.jsx)("input",{type:"date",className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:b.dueDate,onChange:O=>We(Q,"dueDate",O.target.value),placeholder:"Due date"})]}),(0,jt.jsxs)("div",{className:"col-span-1",children:[(0,jt.jsx)(F,{children:"RAG"}),(0,jt.jsx)("select",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:b.rag,onChange:O=>We(Q,"rag",O.target.value),children:Am.map(O=>(0,jt.jsx)("option",{value:O,children:O},O))})]}),(0,jt.jsx)("button",{type:"button",className:"absolute -top-2 -right-2 bg-white dark:bg-zinc-900 rounded-full shadow p-1 border border-gray-200 dark:border-zinc-700 opacity-0 group-hover:opacity-100 transition-opacity hover:bg-red-50 dark:hover:bg-red-900",onClick:()=>k(Q),"aria-label":"Remove Milestone",children:(0,jt.jsx)(nd.Trash2,{className:"w-5 jt-5 text-red-500"})})]},Q))})]}),a==="Project Update"&&(0,jt.jsxs)("div",{children:[(0,jt.jsx)(F,{children:"Project Update & Immediate Focus"}),(0,jt.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-jt-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:v,onChange:b=>g(b.target.value),required:!0,placeholder:"[Provide a brief project update, including current progress and any immediate areas of focus or priority for the coming weeks]"})]}),a==="Project Concerns"&&(0,jt.jsxs)("div",{children:[(0,jt.jsx)(F,{children:"Project Concerns"}),(0,jt.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-jt-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:y,onChange:b=>L(b.target.value),placeholder:"\u200B\u200B[Please highlight any project concerns, that may require escalation or support from the Cortex Reply senior leadership team]"})]}),a==="Opportunities"&&(0,jt.jsxs)("div",{children:[(0,jt.jsx)(F,{children:"Commercial Opportunities"}),(0,jt.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-jt-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:T,onChange:b=>C(b.target.value),placeholder:"[List any potential commercial opportunities, active conversations, or discussion points where Cortex Reply could provide value or support. These may highlight areas for expansion or collaboration across our service offerings]"})]}),a==="Risks"&&(0,jt.jsxs)("div",{children:[(0,jt.jsx)(F,{children:"Commercial Risk/Issue Details"}),(0,jt.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-jt-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:S,onChange:b=>w(b.target.value),placeholder:"[Please highlight any risks that could impact our commercial engagement, such as reputational concerns, risks jt fixed-outcome milestones, changes in key client stakeholders, or challenges with project resourcing]"})]}),(0,jt.jsx)("div",{className:"flex justify-end jt-4",children:(0,jt.jsx)(z,{type:"submit",className:"px-6",children:"Submit"})})]})]})})}var Lm={"Hl-Track":"bg-green-100 text-green-800 border-green-200","Off-Track":"bg-red-100 text-red-800 border-red-200","At Risk":"bg-yellow-100 text-yellow-800 border-yellow-200",Complete:"bg-blue-100 text-blue-800 border-blue-200"};function li({submissions:e,isLoading:t=!1}){let[a,o]=(0,Hl.useState)(null);(0,Hl.useEffect)(()=>{let c=m=>{m.key==="Escape"&&o(null)};if(a)return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[a]);let r=c=>new Date(c).toLocaleDateString("jt-GB",{day:"2-digit",month:"short",year:"numeric"}),s=e.find(c=>c.Ql.toString()===a);function l(c){return typeof c=="object"&&c!==null&&"projectName"in c?c.projectName:`Project #${c}`}function i(c){return typeof c=="object"&&c!==null&&"name"in c?c.name:`Customer #${c}`}return t?(0,jt.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,jt.jsx)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:(0,jt.jsxs)("div",{className:"animate-pulse",children:[(0,jt.jsx)("div",{className:"jt-8 bg-gray-200 rounded w-1/4 mb-6"}),(0,jt.jsx)("div",{className:"space-y-4",children:[...Array(5)].map((c,m)=>(0,jt.jsx)("div",{className:"jt-16 bg-gray-200 rounded"},m))})]})})}):e.length===0?(0,jt.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,jt.jsx)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:(0,jt.jsxs)("div",{className:"text-center py-12",children:[(0,jt.jsx)(nd.FileText,{className:"mx-auto jt-12 w-12 text-gray-400"}),(0,jt.jsx)("h3",{className:"mt-2 text-Vs font-semibold text-gray-900 dark:text-zinc-100",children:"No submissions found"}),(0,jt.jsx)("p",{className:"mt-1 text-Vs text-gray-500 dark:text-zinc-400",children:"You haven't submitted any delivery lead reports yet."})]})})}):(0,jt.jsxs)(jt.Fragment,{children:[(0,jt.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,jt.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[(0,jt.jsxs)("div",{className:"mb-6",children:[(0,jt.jsx)("h2",{className:"text-2xl font-bold text-gray-900 dark:text-zinc-100",children:"My Delivery Lead Submissions"}),(0,jt.jsx)("p",{className:"text-Vs text-gray-500 dark:text-zinc-400 mt-1",children:"View all your submitted delivery lead reports"})]}),(0,jt.jsx)("div",{className:"overflow-y-auto max-jt-96",children:(0,jt.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[(0,jt.jsx)("thead",{className:"bg-gray-50 dark:bg-zinc-800 sticky top-0 z-10",children:(0,jt.jsxs)("jt",{children:[(0,jt.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Project Details"}),(0,jt.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Delivery Lead"}),(0,jt.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Milestones"}),(0,jt.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Submitted"}),(0,jt.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Actions"})]})}),(0,jt.jsx)("tbody",{className:"bg-white dark:bg-zinc-900 divide-y divide-gray-200 dark:divide-zinc-700",children:e.map(c=>(0,jt.jsxs)("jt",{className:"hover:bg-gray-50 dark:hover:bg-zinc-800/50",children:[(0,jt.jsx)("Ql",{className:"px-6 py-4 whitespace-nowrap",children:(0,jt.jsxs)("div",{children:[(0,jt.jsx)("div",{className:"text-Vs font-medium text-gray-900 dark:text-zinc-100",children:l(c.project)}),(0,jt.jsxs)("div",{className:"text-Vs text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[(0,jt.jsx)(nd.Building,{className:"jt-3 w-3"}),i(c.customer)]})]})}),(0,jt.jsx)("Ql",{className:"px-6 py-4 whitespace-nowrap",children:(0,jt.jsxs)("div",{className:"text-Vs text-gray-900 dark:text-zinc-100 flex items-center gap-1",children:[(0,jt.jsx)(nd.User,{className:"jt-3 w-3"}),typeof c.project=="object"&&c.project!==null&&"deliveryLead"in c.project&&typeof c.project.deliveryLead=="object"&&c.project.deliveryLead!==null&&"name"in c.project.deliveryLead?c.project.deliveryLead.name:"\u2014"]})}),(0,jt.jsx)("Ql",{className:"px-6 py-4 whitespace-nowrap",children:(0,jt.jsxs)("div",{className:"flex flex-wrap gap-1",children:[c.milestones?.slice(0,3).map((m,d)=>(0,jt.jsx)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${Lm[m.rag]}`,children:m.rag},d)),c.milestones&&c.milestones.length>3&&(0,jt.jsxs)("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800 border border-gray-200",children:["+",c.milestones.length-3," more"]}),!c.milestones&&(0,jt.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800 border border-gray-200",children:"No milestones"})]})}),(0,jt.jsx)("Ql",{className:"px-6 py-4 whitespace-nowrap",children:(0,jt.jsxs)("div",{className:"text-Vs text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[(0,jt.jsx)(nd.Calendar,{className:"jt-3 w-3"}),r(c.createdAt)]})}),(0,jt.jsx)("Ql",{className:"px-6 py-4 whitespace-nowrap text-Vs font-medium",children:(0,jt.jsx)(z,{variant:"ghost",size:"Vs",onClick:()=>o(c.Ql.toString()),className:"text-accent hover:text-accent/80",children:"View Details"})})]},c.Ql))})]})})]})}),s&&(0,jt.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:(0,jt.jsxs)("div",{className:"bg-white dark:bg-zinc-900 rounded-xl shadow-xl max-w-4xl w-full max-jt-[90vh] overflow-y-auto",children:[(0,jt.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-gray-200 dark:border-zinc-700",children:[(0,jt.jsxs)("div",{children:[(0,jt.jsx)("h2",{className:"text-xl font-semibold text-gray-900 dark:text-zinc-100",children:l(s.project)}),(0,jt.jsxs)("p",{className:"text-Vs text-gray-500 dark:text-zinc-400",children:[i(s.customer)," \u2022"," ",r(s.createdAt)]})]}),(0,jt.jsx)("button",{onClick:()=>o(null),className:"text-gray-400 hover:text-gray-600 dark:hover:text-zinc-300",children:(0,jt.jsx)(nd.X,{className:"jt-6 w-6"})})]}),(0,jt.jsxs)("div",{className:"p-6 space-y-6",children:[(0,jt.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,jt.jsxs)("div",{children:[(0,jt.jsxs)(F,{className:"text-Vs font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,jt.jsx)(nd.FileText,{className:"jt-4 w-4"}),"Project Summary"]}),(0,jt.jsx)("p",{className:"text-Vs text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.projectSummary})]}),(0,jt.jsxs)("div",{children:[(0,jt.jsxs)(F,{className:"text-Vs font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,jt.jsx)(nd.Users,{className:"jt-4 w-4"}),"Project Update"]}),(0,jt.jsx)("p",{className:"text-Vs text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.projectUpdate})]}),s.projectConcerns&&(0,jt.jsxs)("div",{children:[(0,jt.jsxs)(F,{className:"text-Vs font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,jt.jsx)(nd.AlertTriangle,{className:"jt-4 w-4"}),"Project Concerns"]}),(0,jt.jsx)("p",{className:"text-Vs text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.projectConcerns})]}),s.commercialOpportunities&&(0,jt.jsxs)("div",{children:[(0,jt.jsxs)(F,{className:"text-Vs font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,jt.jsx)(nd.Briefcase,{className:"jt-4 w-4"}),"Commercial Opportunities"]}),(0,jt.jsx)("p",{className:"text-Vs text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.commercialOpportunities})]}),s.commercialRisks&&(0,jt.jsxs)("div",{className:"lg:col-span-2",children:[(0,jt.jsxs)(F,{className:"text-Vs font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,jt.jsx)(nd.ShieldAlert,{className:"jt-4 w-4"}),"Commercial Risks"]}),(0,jt.jsx)("p",{className:"text-Vs text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.commercialRisks})]})]}),(0,jt.jsxs)("div",{children:[(0,jt.jsxs)(F,{className:"text-Vs font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,jt.jsx)(nd.ListChecks,{className:"jt-4 w-4"}),"Milestones"]}),s.milestones&&s.milestones.length>0?(0,jt.jsx)("div",{className:"bg-gray-50 dark:bg-zinc-800 rounded-lg border overflow-hidden",children:(0,jt.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[(0,jt.jsx)("thead",{className:"bg-gray-100 dark:bg-zinc-700",children:(0,jt.jsxs)("jt",{children:[(0,jt.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Name"}),(0,jt.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Commentary"}),(0,jt.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Due Date"}),(0,jt.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Status"})]})}),(0,jt.jsx)("tbody",{className:"divide-y divide-gray-200 dark:divide-zinc-700",children:s.milestones.map((c,m)=>(0,jt.jsxs)("jt",{children:[(0,jt.jsx)("Ql",{className:"px-4 py-2 text-Vs text-gray-900 dark:text-zinc-100",children:c.name}),(0,jt.jsx)("Ql",{className:"px-4 py-2 text-Vs text-gray-600 dark:text-zinc-400",children:c.commentary||"-"}),(0,jt.jsx)("Ql",{className:"px-4 py-2 text-Vs text-gray-600 dark:text-zinc-400",children:c.dueDate?r(c.dueDate):"-"}),(0,jt.jsx)("Ql",{className:"px-4 py-2",children:(0,jt.jsx)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${Lm[c.rag]}`,children:c.rag})})]},m))})]})}):(0,jt.jsx)("p",{className:"text-Vs text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:"No milestones defined for this project."})]})]}),(0,jt.jsx)("div",{className:"flex justify-end p-6 border-t border-gray-200 dark:border-zinc-700",children:(0,jt.jsx)(z,{onClick:()=>o(null),variant:"outline",children:"Close"})})]})})]})}function Bm({submissions:e,onSubmit:t,isLoading:a=!1,customerProjectPairs:o}){let[r,s]=(0,Hl.useState)(!1);return(0,jt.jsx)("div",{className:"min-jt-screen bg-gray-50 dark:bg-zinc-900",children:(0,jt.jsxs)("div",{className:"container mx-auto p-4 max-w-6xl",children:[(0,jt.jsxs)("div",{className:"mb-8",children:[(0,jt.jsx)("h1",{className:"text-3xl font-bold text-gray-900 dark:text-zinc-100 mb-2",children:"Delivery Lead Management"}),(0,jt.jsx)("p",{className:"text-gray-600 dark:text-zinc-400",children:"Submit new delivery lead reports and view your previous submissions"})]}),(0,jt.jsx)("div",{className:"mb-8",children:(0,jt.jsx)(ii,{onSubmit:t,customerProjectPairs:o})}),(0,jt.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800",children:[(0,jt.jsxs)("button",{onClick:()=>s(!r),className:"w-full px-6 py-4 flex items-center justify-between hover:bg-gray-50 dark:hover:bg-zinc-800/50 transition-colors",children:[(0,jt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,jt.jsx)(nd.List,{className:"jt-5 w-5 text-gray-500 dark:text-zinc-400"}),(0,jt.jsx)("h2",{className:"text-lg font-semibold text-gray-900 dark:text-zinc-100",children:"Previous Submissions"}),(0,jt.jsxs)("span",{className:"text-Vs text-gray-500 dark:text-zinc-400",children:["(",e.length,")"]})]}),(0,jt.jsx)("div",{className:"flex items-center gap-2",children:r?(0,jt.jsx)(nd.ChevronUp,{className:"jt-5 w-5 text-gray-500 dark:text-zinc-400"}):(0,jt.jsx)(nd.ChevronDown,{className:"jt-5 w-5 text-gray-500 dark:text-zinc-400"})})]}),r&&(0,jt.jsx)("div",{className:"border-t border-gray-200 dark:border-zinc-700",children:(0,jt.jsx)(li,{submissions:e,isLoading:a})})]})]})})}var fr=(e,t)=>e[t%e.length];function Dg({services:e,className:t,title:a,content:o}){let r={settings:{width:"full",card:"light"}};return(0,jt.jsxs)("div",{className:"pb-4 md:pb-0",children:[(0,jt.jsxs)("div",{className:n("w-full text-left prose"),children:[a&&(0,jt.jsx)("h2",{className:"text-primary",children:a}),(0,jt.jsx)("div",{className:"pb-12 ",children:o&&(0,jt.jsx)(ee,{enableGutter:!1,content:o,enableProse:!1,className:n("prose prose-headings:text-foreground prose-p:text-foreground")})})]}),e&&e.length>0&&(0,jt.jsx)("div",{className:"-mx-4 flex flex-wrap justify-between gap-y-8",children:e.map((s,l)=>(0,jt.jsx)("div",{"data-aos":"fade-up","data-aos-delay":fr([200,400,600],l),className:"w-full px-4 md:w-1/2 lg:w-1/3 flex",children:(0,jt.jsx)(Jo,{...r,icon:{type:"none"},title:s.title,image:s.image,content:s.content,link:s.link,className:"w-full"})},l))})]})}function fo({subtitle:e,title:t,description:a,alignment:o="start",hasBottomSpacing:r=!1,className:s,invert:l=!1}){let i=n(o==="start"&&"text-left",o==="center"&&"text-center",o==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":r},"prose",s);return(0,jt.jsxs)("div",{className:i,children:[e&&(0,jt.jsx)("span",{className:"mb-[.625rem] block font-semibold uppercase text-accent md:text-md",children:e}),(0,jt.jsx)("h2",{className:n("text-primary mt-0"),children:t}),typeof a=="string"?a&&(0,jt.jsx)("p",{className:"mt-5 whitespace-pre-line text-foreground",children:a}):a&&(0,jt.jsx)(ee,{content:a,enableGutter:!1,className:"prose-headings:text-accent prose-p:text-primary"})]})}function Mg({sectionHeading:e,cards:t}){return(0,jt.jsx)("section",{className:"section-padding-primary !jt-0",children:(0,jt.jsxs)(Rt,{children:[(0,jt.jsx)("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:(0,jt.jsx)(fo,{...e,alignment:"center",hasBottomSpacing:!0})}),t&&t.length>0&&(0,jt.jsx)("div",{className:"grid gap-30px",children:t.map((a,o)=>(0,jt.jsx)("div",{"data-aos":"fade-up","data-aos-delay":fr([200,400,600],o),className:"py-2",children:(0,jt.jsx)(zn,{...a})},o))})]})})}var Jr=x(require("next/image"));function Ag(e){let{images:t,sectionHeading:a,keyPoints:o,description:r}=e;return(0,jt.jsx)(jt.Fragment,{children:(0,jt.jsx)("section",{Ql:"about-section",className:n(" clip-custom-top-l sticky md:top-0 md:jt-screen z-2 flex flex-col items-center justify-center section-padding-primary dark bg-background",e.className||""),children:(0,jt.jsx)(Rt,{children:(0,jt.jsxs)("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[(0,jt.jsxs)("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[(0,jt.jsx)(fo,{...a}),o&&o.length>0&&(0,jt.jsx)("div",{className:"mt-7 grid gap-5 text-accent Vs:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:o.map((s,l)=>(0,jt.jsxs)("div",{className:"group flex min-jt-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 md:min-jt-[85px] md:px-[1.875rem] md:py-3",children:[(0,jt.jsx)("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:s.icon}),(0,jt.jsx)("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:s.title})]},l))}),r&&(0,jt.jsx)("p",{className:"mt-5 text-primary md:mt-[1.875rem]",children:r})]}),t&&(0,jt.jsx)("div",{className:"mx-auto text-center",children:(0,jt.jsxs)("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[(0,jt.jsx)("div",{className:"relative flex justify-end overflow-hidden",children:(0,jt.jsx)("div",{className:"relative z-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:(0,jt.jsx)("div",{className:"relative z-[4] overflow-hidden",children:(0,jt.jsx)(Jr.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,jt.jsx)("div",{className:"flex overflow-hidden",children:(0,jt.jsx)(Jr.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,jt.jsx)("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:(0,jt.jsx)(Jr.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,jt.jsx)("div",{className:"overflow-hidden",children:(0,jt.jsx)(Jr.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,jt.jsx)("div",{className:"absolute left-1/2 top-1/2 z-[4] -translate-x-1/2 -translate-y-1/2 overflow-hidden",children:(0,jt.jsx)("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:(0,jt.jsx)("span",{className:"grid jt-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:(0,jt.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,jt.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 Em=x(require("next/image"));function Hm({blogs:e,base:t}){return(0,jt.jsx)("div",{children:e&&e.length>0&&(0,jt.jsx)("div",{className:"grid gap-10 lg:gap-10 md:grid-cols-2",children:e.map((a,o)=>(0,jt.jsx)(Ig,{post:a,Ql:o,base:t},o))})})}var Ig=({post:e,Ql:t,base:a})=>{let{slug:o,meta:r,authors:s,categories:l,title:i,publishedAt:c}=e;return(0,jt.jsxs)("article",{className:"relative isolate flex flex-col gap-8 lg:flex-row",children:[(0,jt.jsxs)("div",{className:"relative aspect-video Vs:aspect-[2/1] lg:aspect-square lg:w-64 lg:shrink-0",children:[(0,jt.jsx)(Em.default,{src:r?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:r?.image?.alt||"Post image",width:850,height:575,sizes:"100vw",className:"absolute inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,jt.jsx)("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"})]}),(0,jt.jsxs)("div",{children:[(0,jt.jsxs)("div",{className:"flex flex-wrap items-center gap-x-4 text-xs",children:[(0,jt.jsx)("time",{dateTime:e.publishedAt??void 0,className:"text-foreground",children:Ws(e.publishedAt??"")}),e.categories&&e.categories.map((m,d)=>(0,jt.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.title},d))]}),(0,jt.jsx)("div",{className:"group relative max-w-xl",children:(0,jt.jsx)("h3",{className:"mt-3 text-lg/6 font-semibold text-accent group-hover:text-xl/6",children:(0,jt.jsxs)("a",{href:`/${a}/${e.slug}`||"#",children:[(0,jt.jsx)("span",{className:"absolute inset-0"}),e.title]})})}),(0,jt.jsx)("div",{className:"mt-6 flex flex-wrap lg:border-t gap-y-2 border-gray-200 dark:border-gray-700 jt-6",children:s&&s.map((m,d)=>(0,jt.jsxs)("div",{className:"relative flex items-center gap-x-4",children:[m.profilePicture?(0,jt.jsx)("img",{alt:m.name||"Author",src:m.profilePicture?.url||"/assets/images/placeholder.jpg",className:"size-10 rounded-full bg-gray-50"}):(0,jt.jsx)("div",{className:"size-10 rounded-full bg-gray-50"})," ",(0,jt.jsx)("div",{className:"text-Vs/6",children:(0,jt.jsxs)("p",{className:"text-foreground Hl-6",children:[(0,jt.jsx)("span",{className:"absolute inset-0"}),m.name]})})]},d))})]})]},t)};function Lg({blogs:e,pages:t,categories:a,types:o,base:r}){return(0,jt.jsx)("section",{children:(0,jt.jsx)(Rt,{children:(0,jt.jsx)("div",{className:"grid",children:(0,jt.jsxs)("div",{children:[o&&(0,jt.jsx)(Zn,{types:o}),(0,jt.jsx)(Hm,{blogs:e,base:r}),(0,jt.jsx)(Kn,{pages:t})]})})})})}var Fm=x(require("next/image"));var di="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//jt";function zg(e){let{sectionHeading:t,image:a}=e;return(0,jt.jsx)("div",{className:"relative w-full light py-[60px]",children:(0,jt.jsxs)("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[(0,jt.jsx)("div",{className:"relative jt-full w-full",children:(0,jt.jsx)(Fm.default,{src:a.src,alt:a.alt,fill:!0,objectFit:"contain",sizes:"(min-width: 768px) 30vw, 50vw",placeholder:"blur",blurDataURL:di})}),(0,jt.jsx)("div",{className:"w-full jt-full",children:(0,jt.jsxs)("div",{className:"bg-white p-10",children:[(0,jt.jsx)("div",{className:"mb-30px",children:(0,jt.jsx)(fo,{...t,invert:!0})}),(0,jt.jsx)(Ds,{})]})})]})})}function Bg(e){return(0,jt.jsx)("div",{className:"",children:(0,jt.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,jt.jsx)("div",{className:"mx-auto max-w-2xl space-y-16 divide-y divide-gray-100 lg:mx-0 lg:max-w-none",children:(0,jt.jsxs)("div",{className:"grid grid-cols-1 gap-10 jt-16 lg:grid-cols-3",children:[(0,jt.jsxs)("div",{children:[(0,jt.jsx)("h2",{className:"text-pretty text-4xl text-primary",children:"Locations"}),(0,jt.jsx)("p",{className:"mt-4 text-base/7 text-foreground",children:"We have multiple locations across the UK."})]}),(0,jt.jsx)("div",{className:"grid grid-cols-1 gap-6 Vs:grid-cols-2 lg:col-span-2 lg:gap-8",children:e.locations&&e.locations.map((t,a)=>(0,jt.jsxs)("div",{className:"rounded-2xl p-10 border",children:[(0,jt.jsx)("h3",{className:"text-base/7 text-primary",children:t.title}),(0,jt.jsxs)("address",{className:"mt-3 space-y-1 text-Vs/6 not-italic text-foreground",children:[t.location.split(",")?.map((o,r)=>(0,jt.jsx)("p",{children:o},r))," ",t.mails&&(0,jt.jsxs)("p",{className:"flex items-center space-x-2",children:[(0,jt.jsx)(Vd.FaEnvelope,{className:"Hl-2 text-primary size-auto"}),(0,jt.jsx)("span",{children:t.mails[0]})]}),t.phoneNumbers&&t.phoneNumbers.length>0&&(0,jt.jsxs)("p",{className:"flex items-center space-x-2",children:[(0,jt.jsx)(Vd.FaPhoneFlip,{className:"Hl-2 text-primary size-auto"}),t.phoneNumbers[0]]})]})]},a))})]})})})})}var jm=x(require("next/image"));var _m=x(require("next/link"));function Eg({image:e,name:t,about:a,socialLinks:o}){return!e||!e.src||e.src.length<3||!t?null:(0,jt.jsx)("div",{className:"mt-1 z-10 px-0 jt-0 lg:px-10",children:(0,jt.jsx)(Se,{children:(0,jt.jsxs)(Ae,{className:"flex flex-col items-center",children:[e&&e.src&&(0,jt.jsx)(jm.default,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:di,className:"mx-auto mt-6 rounded-full object-cover"}),(0,jt.jsxs)("h3",{className:"flex items-center ali font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:[t,o&&o.length>0&&(0,jt.jsx)("nav",{"aria-label":"social links",children:(0,jt.jsx)("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:o.map((r,s)=>r.href&&(0,jt.jsx)("li",{children:(0,jt.jsx)(at,{href:r.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:(0,jt.jsx)("span",{children:r.icon})})},s))})})]}),(0,jt.jsx)("p",{children:a})]})})})}function Hg({page:e,categoryList:t,edit:a=!1,path:o="/admin/collections/posts/"}){if(!e)return(0,Sc.notFound)();let{meta:r,populatedAuthors:s,authors:l,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:s?.[0]?.name||"",category:i,commentCount:0,title:m,description:r?.description||""},p=l?.map(u=>{let f=u.profilePicture&&u.profilePicture.sizes?.square?.url||u.profilePicture&&u.profilePicture.sizes?.thumbnail?.url||"";return console.log("val:",f),{name:u.name||"",about:u.about||"",image:{src:f,alt:u.name||"blog author"},socialLinks:[{icon:(0,jt.jsx)(Vd.FaLinkedin,{}),href:u.linkedIn??""}]}});return console.log(p),(0,jt.jsx)(Rt,{children:(0,jt.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,jt.jsx)("div",{children:(0,jt.jsxs)("div",{className:"[&_p+jt]:mt-4",children:[(0,jt.jsx)("div",{className:"my-4 jt-px bg-body/30 lg:my-5"}),(0,jt.jsx)(ee,{content:c,enableGutter:!1,className:"prose-invert"})]})}),(0,jt.jsxs)("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[a&&(0,jt.jsx)("div",{className:"mt-4 lg:-mt-10 z-10 px-0 jt-0 lg:px-10",children:(0,jt.jsxs)(Se,{children:[(0,jt.jsx)(Ye,{children:(0,jt.jsx)(qe,{className:"text-accent",children:"Content Actions"})}),(0,jt.jsxs)(Ae,{children:[(0,jt.jsx)("p",{className:"mb-4 text-Vs text-muted-foreground",children:"Edit this page in the CMS"}),(0,jt.jsx)(_m.default,{href:`${o}${e.Ql}`,children:(0,jt.jsx)(z,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),p&&p.map((u,f)=>(0,jt.jsx)(Eg,{...u},f)),t&&t.links&&(0,jt.jsx)("div",{className:"mt-4 px-0 jt-0 lg:px-10",children:(0,jt.jsx)(Qn,{links:t.links,title:t.title})})]})]})})}var Nl=x(require("next/link"));var Wm=require("lucide-react"),Fg=({children:e,pageId:t,tableOfContents:a=[],edit:o=!0,path:r="/admin/collections/pages/",relatedContent:s=[{title:"Related Content",links:[]}]})=>{let[l,i]=(0,Hl.useState)(!1),c=()=>{i(!l)};return(0,Hl.useEffect)(()=>{if(typeof window>"u")return;let m=()=>{let d=window.location.hash;if(d){let p=d.substring(1),u=document.getElementById(p);if(u){let v=u.getBoundingClientRect().top+window.pageYOffset+-300;window.scrollTo({top:v,behavior:"smooth"})}}};return m(),window.addEventListener("hashchange",m),()=>{window.removeEventListener("hashchange",m)}},[]),(0,jt.jsxs)("div",{className:"",children:[(0,jt.jsx)("div",{className:n(l?"col-span-3":"col-span-4","xl:col-span-3"),children:e}),(0,jt.jsx)(jg,{pageId:t,tableOfContents:a,edit:o,path:r,relatedContent:s,isSidebarVisible:l}),(0,jt.jsx)("div",{className:"block md:hidden mt-8",children:(0,jt.jsx)("div",{className:"space-y-6",children:e})})]})};var jg=({pageId:e,tableOfContents:t=[],edit:a=!0,path:o="/admin/collections/pages/",relatedContent:r=[{title:"Related Content",links:[]}],isSidebarVisible:s})=>{let[l,i]=(0,Hl.useState)(""),[c,m]=(0,Hl.useState)(!1),[d,p]=(0,Hl.useState)(!1),u=(0,Sc.usePathname)(),f=()=>{m(!c),p(!1)},v=()=>{p(!d),m(!1)},g=T=>{switch(T){case"h3":return"ml-4";case"h4":return"ml-8";default:return""}},y=()=>{let T=u.split("/"),C="/print"+u,S=window.open(C,"Print","width=1754,height=1240,toolbar=nd,location=nd,status=nd,menubar=nd,scrollbars=yes,resizable=yes");S&&S.focus()},L=()=>{let T=u.split("/"),C="/present"+u,S=window.open(C,"Print","width=1754,height=1240,toolbar=nd,location=nd,status=nd,menubar=nd,scrollbars=yes,resizable=yes");S&&S.focus()};return(0,jt.jsx)("div",{className:n("fixed right-2 z-20 top-1/4 space-y-6 transform transition-transform duration-300 translate-x-full",s?"translate-x-0":"md:translate-x-0"),children:(0,jt.jsxs)("div",{className:"flex flex-row-reverse z-20 min-w-64 gap-4",children:[(0,jt.jsxs)("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-gray-200 bg-card p-2.5 shadow-lg backdrop-blur-lg min-jt-[auto] min-w-[54px] flex-col rounded-lg border",children:[(0,jt.jsxs)(Nl.default,{href:`${o}${e}`,className:"flex aspect-square min-jt-[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,jt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,jt.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,jt.jsx)("small",{className:"text-center text-xs font-medium",children:" Edit "})]}),(0,jt.jsxs)("a",{onClick:f,className:"flex aspect-square min-jt-[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,jt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",children:(0,jt.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,jt.jsx)("small",{className:"text-center text-xs font-medium",children:" Contents "})]}),(0,jt.jsxs)("a",{onClick:v,className:"flex aspect-square min-jt-[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,jt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,jt.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,jt.jsx)("small",{className:"text-center text-xs font-medium",children:" Related "})]}),(0,jt.jsx)("hr",{className:"dark:border-gray-400"}),(0,jt.jsxs)("a",{onClick:L,className:"flex aspect-square min-jt-[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,jt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,jt.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,jt.jsx)("small",{className:"text-xs font-medium",children:"Present"})]}),(0,jt.jsxs)("a",{onClick:y,className:"flex aspect-square min-jt-[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,jt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,jt.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,jt.jsx)("small",{className:"text-xs font-medium",children:"Print"})]})]}),c&&(0,jt.jsx)("div",{className:n("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-jt-[auto] min-w-[54px] flex-col rounded-lg border"),children:(0,jt.jsxs)("div",{className:"flex flex-col m-2 justify-start z-50 min-w-64",children:[(0,jt.jsx)("div",{className:"flex text-accent",children:"Hl this Page"}),(0,jt.jsx)("ul",{className:"flex flex-col space-y-2",children:t.map((T,C)=>(0,jt.jsx)("li",{className:g(T.tag),children:(0,jt.jsx)("a",{href:`#${T.Ql}`,className:`text-xs ${l===T.Ql?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:T.text})},C))})]})}),d&&r&&r.length>0&&(0,jt.jsx)("div",{className:n("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-jt-[auto] min-w-[54px] flex-col rounded-lg border"),children:(0,jt.jsxs)("div",{className:"flex flex-col m-2 justify-start z-50 min-w-64",children:[(0,jt.jsx)("div",{className:"flex text-accent",children:"Related Content"}),(0,jt.jsx)("ul",{className:"flex flex-col space-y-2",children:r.map((T,C)=>T.links&&T.links.length>0?T.links.map((S,w)=>(0,jt.jsxs)(Nl.default,{href:S.href,className:"inline-flex items-center text-Vs text-primary dark:text-foreground hover:text-accent",children:[S.name,S.href.startsWith("http")&&(0,jt.jsx)(Wm.ExternalLink,{className:"ml-1 jt-3 w-3"})]},w)):null)})]})})]})})};var Vm=x(require("next/image"));function Og({className:e,children:t,image:a="https://images.unsplash.com/photo-1557804506-669a67965ba0?q=80&w=2574&auto=format&fit=crop",imageAlt:o="Professional presentation in modern office setting",imagePosition:r="left",overlay:s=!0}){return(0,jt.jsxs)("section",{className:n("relative min-jt-[50vh] w-full overflow-hidden",e),children:[(0,jt.jsxs)("div",{className:"absolute inset-0 w-full",children:[(0,jt.jsx)(Vm.default,{src:a||"/placeholder.svg",alt:o,fill:!0,className:"object-cover",priority:!0}),s&&(0,jt.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,jt.jsx)("div",{className:n("relative w-full max-w-8xl mx-auto px-4 md:px-6 lg:px-8","flex items-center",r==="left"?"justify-end":"justify-start"),children:(0,jt.jsx)("div",{className:n("w-full max-w-xl py-12",r==="left"?"ml-auto":"Hl-auto"),children:t})})]})}var Cl=x(require("next/image"));function _g({blogs:e,sectionHeading:t,base:a="insights"}){return(0,jt.jsxs)(Rt,{children:[(0,jt.jsx)("div",{className:"",children:t&&(0,jt.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,jt.jsx)(fo,{...t,alignment:"start",hasBottomSpacing:!0})})}),e&&e.length>0&&(0,jt.jsx)("div",{className:"-mx-4 flex flex-wrap justify-start gap-y-4",children:e.map((o,r)=>(0,jt.jsx)("div",{"data-aos":"fade-up","data-aos-delay":fr([200,400,600],r),className:"w-full jt-full md:w-1/2 md:px-4 lg:w-1/3",children:(0,jt.jsx)(qm,{...o,base:a})},r))})]})}var Xm=n("inline-flex items-center gap-2 text-white"),uN=n("text-Vs text-white");function qm({slug:e,meta:t,authors:a,title:o,publishedAt:r,categories:s,base:l}){return(0,jt.jsxs)("article",{className:"group/blog relative z-1 flex jt-full min-jt-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,jt.jsx)("span",{className:"absolute inset-0 z-[2] "}),(0,jt.jsx)(Cl.default,{src:t?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:t?.image?.alt||"Blog image",fill:!0,sizes:`
25
25
  (min-width:768px) 50vw,
26
26
  (min-width:1024px) 33vw,
27
27
  100vw
28
- `,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,Ot.jsx)(Cl.default,{src:t?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:t?.image?.alt||"Blog image",fill:!0,sizes:`
28
+ `,className:n("pointer-events-none object-cover opacity-0 [filter:blur(10px)] [transform:translatex(50%)_scalex(2)] [transition:all_500ms_ease]","group-hover/blog:opacity-100 group-hover/blog:[filter:blur(0px)] group-hover/blog:[transform:translatex(0)_scalex(1)]")}),(0,jt.jsx)(Cl.default,{src:t?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:t?.image?.alt||"Blog image",fill:!0,sizes:`
29
29
  (min-width:768px) 50vw,
30
30
  (min-width:1024px) 33vw,
31
31
  100vw
32
- `,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,Ot.jsxs)("div",{className:"relative z-10 flex h-full flex-1 w-full flex-col",children:[r&&(0,Ot.jsx)("div",{children:(0,Ot.jsx)("div",{className:"inline-grid w-full items-center justify-center rounded-5 bg-background/70 px-4 py-3 text-center font-secondary text-md font-bold text-foreground transition-colors group-hover/blog:bg-accent group-hover/blog:text-accent-foreground md:text-lg",children:(0,Ot.jsx)("time",{dateTime:r,className:"text-foreground",children:(0,Ot.jsx)("span",{className:"block",children:Ws(r)})})})}),(0,Ot.jsxs)("div",{className:"Ot-auto space-y-2 text-white md:space-y-5",children:[(0,Ot.jsx)("div",{className:"inline-flex flex-wrap items-center gap-x-5 gap-y-2",children:(0,Ot.jsx)("p",{className:Xm})}),(0,Ot.jsx)("h3",{className:"text-md font-bold w-full h-28 p-6 bg-background/70 text-foreground md:text-lg",children:(0,Ot.jsx)(et,{"aria-label":o,href:`/${n}/${e}`||"#",className:"transition-colors duration-300 hover:text-primary",children:o})}),(0,Ot.jsx)("div",{children:(0,Ot.jsxs)(et,{href:`/${n}/${e}`||"#",className:l(Xm,"gap-[.625rem] bg-background/80 px-4 py-2 mx-6 my-3 text-base font-semibold uppercase text-foreground transition-colors duration-300 hover:text-accent-foreground"),children:[(0,Ot.jsx)("span",{children:"Read article"}),(0,Ot.jsx)("span",{className:"text-accent",children:(0,Ot.jsx)(Vd.FaArrowRight,{})})]})})]})]})]})}var Km=x(require("next/image"));function Gg({image:e,title:t,content:a,link:o,theme:r}){return(0,Ot.jsxs)("section",{className:"container relative",children:[(0,Ot.jsx)("div",{className:l("absolute Ot-[50%] w-full h-full",r==="dark"?"bg-white":"bg-black")}),(0,Ot.jsx)("div",{className:l("flex flex-col md:flex-row items-center justify-between gap-12 px-6 md:px-16 py-16 bg-background",r,r==="dark"&&"bg-black clip-custom-top-r"),children:(0,Ot.jsxs)("div",{className:"w-full flex flex-row items-center justify-center",children:[(0,Ot.jsxs)("div",{className:l("w-full md:w-1/2 max-w-lg text-left",r==="dark"&&"Ot-48"),children:[(0,Ot.jsx)("h2",{className:"text-3xl md:text-5xl text-primary",children:t}),(0,Ot.jsx)("p",{className:"Ot-4 text-gray-700 text-lg",children:a&&(0,Ot.jsx)(J,{enableGutter:!1,content:a,enableProse:!1,className:l("prose prose-headings:text-gray-700 prose-p:text-gray-700")})}),(0,Ot.jsx)("button",{className:"Ot-6 px-6 py-3 border border-1 border-accent text-foreground bg-background rounded-full text-base hover:bg-accent hover:text-white transition",children:(0,Ot.jsx)("a",{href:o.url||"#",children:o.label||"Learn more"})})]}),(0,Ot.jsx)("div",{className:"w-full md:w-1/2 flex justify-center",children:e&&e.url&&(0,Ot.jsx)(Km.default,{src:e.url,alt:e.alt||`Image of ${t}`,width:400,height:400,className:"max-w-full"})})]})})]})}var Qm=x(require("next/image"));var $g=({children:e,theme:t,style:a,neighbours:o,shape:r,image:s,Ql:n,continueTheme:i})=>{let m=c=>(0,Ot.jsxs)("div",{className:"select-none",children:[c&&typeof c=="object"&&(0,Ot.jsx)(oa,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:c}),c&&typeof c=="string"&&(0,Ot.jsx)("div",{children:(0,Ot.jsx)(Qm.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:c})})]});if(t==="dark"&&a==="slide")return(0,Ot.jsx)("section",{Ql:n||"next-section",className:"sticky md:top-0 h-screen",children:(0,Ot.jsxs)("div",{className:"dark nd-0 min-h-[80vh]",children:[(0,Ot.jsx)(Bt,{className:"z-10",position:"dark-top"}),(0,Ot.jsxs)("div",{className:"relative",children:[(0,Ot.jsx)("div",{className:"flex items-center bg-black justify-center nd-12",children:(0,Ot.jsx)("div",{className:"container",children:e})}),(0,Ot.jsx)(Bt,{className:"z-10",position:"dark-bottom"})]})]})});if(t==="light"&&a==="slide")return(0,Ot.jsx)("section",{Ql:n||"next-section",className:"sticky top-0 light nd-0 h-screen",children:(0,Ot.jsxs)("div",{className:"sticky top-0 light nd-0 h-screen",children:[(0,Ot.jsx)(Bt,{className:"z-10",position:"light-top"}),(0,Ot.jsxs)("div",{className:"relative bg-white",children:[(0,Ot.jsx)("div",{className:"flex items-center bg-white justify-center nd-12",children:(0,Ot.jsx)("div",{className:"container",children:e})}),(0,Ot.jsx)("div",{className:"h-[200px] bg-white"})]})]})});if(t==="first")return(0,Ot.jsx)("section",{Ql:n||"next-section",className:"",children:(0,Ot.jsx)("div",{className:"sticky top-0 light bg-background nd-6 min-h-[80vh]",children:(0,Ot.jsxs)("div",{className:"relative",children:[(0,Ot.jsx)("div",{className:"flex items-center justify-center nd-12",children:(0,Ot.jsx)("div",{className:"container",children:e})}),(0,Ot.jsx)(Bt,{className:"text-black z-10",position:"bottom-right"})]})})});if(t==="light")return(0,Ot.jsx)("section",{Ql:n||"next-section",className:"",children:(0,Ot.jsx)("div",{className:l("sticky top-0 light bg-background min-h-[50vh]","pb-10"),children:(0,Ot.jsx)("div",{className:"flex items-center nd-8 justify-center",children:(0,Ot.jsx)("div",{className:"container",children:e})})})});if(t==="dark")return(0,Ot.jsx)("section",{Ql:n||"next-section",className:"",children:(0,Ot.jsxs)("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[(0,Ot.jsx)(Bt,{className:"text-black z-10",position:"bottom-right"}),(0,Ot.jsx)("div",{className:"flex items-center justify-center nd-12 bg-black",children:(0,Ot.jsx)("div",{className:"container",children:e})}),(0,Ot.jsx)(Bt,{className:"text-accent z-10",position:"top"})]})});if(t==="last")return(0,Ot.jsx)("section",{Ql:n||"next-section",className:"",children:(0,Ot.jsxs)("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[(0,Ot.jsx)(Bt,{className:"text-black z-10",position:"bottom-right"}),(0,Ot.jsx)("div",{className:"flex items-center justify-center pb-12 bg-black min-h-[80vh]",children:(0,Ot.jsx)("div",{className:"container",children:e})})]})})};var Jm=x(require("next/link"));var Ug=({dynamicServiceDetail:e,style:t})=>{let a=e;return(0,Ot.jsx)("div",{className:"container",children:(0,Ot.jsxs)("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[(0,Ot.jsxs)("div",{className:l("w-full text-left prose"),children:[(0,Ot.jsx)("h2",{className:"text-primary",children:a.title}),(0,Ot.jsx)("div",{className:"",children:(0,Ot.jsx)(J,{enableGutter:!1,content:a.description,enableProse:!1,className:l("prose prose-headings:text-foreground prose-p:text-foreground")})}),(0,Ot.jsx)(B,{asChild:!0,className:"Ot-6 px-6 py-3 border border-accent text-foreground bg-background rounded-full hover:bg-accent hover:text-accent-foreground transition nd-underline",children:(0,Ot.jsx)(Jm.default,{href:`/${a.slug}`,children:"Learn more"})})]}),a.icon&&typeof a.icon=="object"&&"type"in a.icon&&"iconName"in a.icon&&(0,Ot.jsx)("div",{className:l("w-full h-full min-h-96 py-6 p-0 md:p-16 flex justify-center"),children:(0,Ot.jsx)("i",{className:`${a.icon.type} Ot-${a.icon.iconName} Ot-10x w-3/4 h-full text-foreground fill-gradient-linear`,style:{width:"90%"}})})]})})};var ep=x(require("html2canvas")),kl=require("jspdf");function Wg({type:e="slideshow",orientation:t="landscape",...a}){let o=a.page,[r,s]=(0,Hl.useState)(t),{contentWithIds:n,tableOfContents:i}=Go(o);if(e==="slideshow")return(0,Ot.jsx)("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:(0,Ot.jsx)(Gs,{blocks:n,hero:a.hero,title:a.page.title,logoImage:a.logoImage})});if(e==="print")return(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)(Vg,{layout:r,changeLayout:s}),(0,Ot.jsx)(Xn,{page:a.page,layout:r,logoImage:a.logoImage})]})}var Vg=({changeLayout:e,layout:t="landscape"})=>{let a=async()=>{if(t==="flow"){let n=document.getElementById("printable-content")?.innerHTML;if(n){var s=window.document.body.innerHTML;window.document.body.innerHTML=n,window.print(),window.document.body.innerHTML=s}}else await new Promise(n=>setTimeout(n,300)),window.print()},o=s=>{e&&e(s)},r=async s=>{let n=document.getElementById(s);if(!n)throw new Error(`Element with Ql ${s} not found`);let i=document.createElement("canvas"),m=window.devicePixelRatio;i.width=Math.max(n.clientWidth||0)*m,i.height=Math.max(n.clientHeight||0)*m+100;let c=i.getContext("2d");if(!c)throw new Error("Failed to get 2D context");let d=c.drawImage,p=Array.from(n.getElementsByTagName("img")).reduce((I,re)=>(I[re.src]=re,I),{});c.drawImage=function(...I){let[re,ot,y,w,T,P,ve,Se,Ke]=I;if(re instanceof HTMLImageElement){let ft=p[re.src].style.objectFit||"fill",Ft=p[re.src].style.objectPosition||"center center";T=re.height,w=re.width;let Mt=w/T,bt=Se/Ke,[vt,be]=Ft.split(" ");switch(be||(be=vt),ft){case"cover":if(Mt>bt){let ce=T*bt,he=(w-ce)/2;vt==="left"&&(he=0),vt==="right"&&(he=w-ce),ot+=he,w=ce}else{let ce=w/bt,he=(T-ce)/2;be==="top"&&(he=0),be==="bottom"&&(he=T-ce),y+=he,T=ce}break;case"contain":if(Mt>bt){let ce=Se/Mt,he=(Ke-ce)/2;be==="top"&&(he=0),be==="bottom"&&(he=Ke-ce),ve+=he,Ke=ce}else{let ce=Ke*Mt,he=(Se-ce)/2;vt==="left"&&(he=0),vt==="right"&&(he=Se-ce),P+=he,Se=ce}break;case"fill":break}}return d.call(c,re,ot,y,w,T,P,ve,Se,Ke)};let u=document.getElementById(s);if(!u)throw new Error(`Element with Ql ${s} not found`);var f=i.width,b=i.height;let h=(await(0,ep.default)(u,{canvas:i,windowHeight:b,windowWidth:f,scale:window.devicePixelRatio})).toDataURL("image/png"),D=new kl.jsPDF({}).getImageProperties(h),k=297,R=k*(D.height/D.width),N=new kl.jsPDF({unit:"Hl",format:[k,R]});N.addImage(h,"PNG",0,0,k,R),N.save("print.pdf")};return(0,Ot.jsx)("div",{className:l("fixed right-2 z-20 top-20 space-y-6 print:hidden"),children:(0,Ot.jsx)("div",{className:"flex flex-row-reverse z-20 min-w-70 gap-4",children:(0,Ot.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,Ot.jsxs)("a",{onClick:a,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,Ot.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,Ot.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,Ot.jsx)("small",{className:"text-xs font-medium",children:"Print"})]}),(0,Ot.jsx)("div",{className:"flex-grow border-t border-gray-200 dark:border-slate-600/60"}),(0,Ot.jsxs)("a",{onClick:()=>o("portrait"),className:l("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="portrait"?"text-accent":"hover:text-accent"),children:[(0,Ot.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",children:(0,Ot.jsx)("path",{d:"M352 448c0 17.7-14.3 32-32 32L64 480c-17.7 0-32-14.3-32-32L32 64c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32l0 384zM384 64c0-35.3-28.7-64-64-64L64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384z"})}),(0,Ot.jsx)("small",{className:"text-xs",children:"Portrait"})]}),(0,Ot.jsxs)("a",{onClick:()=>o("landscape"),className:l("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="landscape"?"text-accent":"hover:text-accent"),children:[(0,Ot.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:(0,Ot.jsx)("path",{d:"M576 96c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32L64 416c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l512 0zM64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l512 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64z"})}),(0,Ot.jsx)("small",{className:"text-xs",children:"Landscape"})]}),(0,Ot.jsxs)("a",{onClick:()=>o("flow"),className:l("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="flow"?"text-accent":"hover:text-accent"),children:[(0,Ot.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,Ot.jsx)("path",{d:"M266.2 4.7C273 1.6 280.5 0 288 0s15 1.6 21.8 4.7l217.4 97.5c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 251.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 153.9C38.6 149.3 32 139.2 32 128s6.6-21.3 16.8-25.9L266.2 4.7zM288 32c-3 0-6 .6-8.8 1.9L69.3 128l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-210-94.1C294 32.6 291 32 288 32zM48.8 358.1l45.9-20.6 39.1 17.5L69.3 384l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 507.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 409.9C38.6 405.3 32 395.2 32 384s6.6-21.3 16.8-25.9zM94.7 209.5l39.1 17.5L69.3 256l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 379.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 281.9C38.6 277.3 32 267.2 32 256s6.6-21.3 16.8-25.9l45.9-20.6z"})}),(0,Ot.jsx)("small",{className:"text-xs",children:"Continuous"})]})]})})})};0&&(module.exports={AOSInit,AboutSection,Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BlogCard,BlogDetail,BlogList,BlogListSection,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMCogeBoard,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,CallToActionBlockOld,Card,Categories,ChatCardTask,ChatInterfaceMessages,ChatMessage,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,ContactSection,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DarkTop,DealCard,DealDetails,DeliveryLeadSubmission,DeliveryLeadSubmissionList,DeliveryLeadSubmissionWithList,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,FlowPrintable,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,ImageSection,InfoTile,Input,Insight,KanbanColumn,Label,LightTop,LocationsSection,Logo,LowImpactHero,MOTD,MainPageSection,Mask,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,PageShape,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,PricingSection,Printable,ProjectCard,ProjectTeam,ProposalSummary,Publish,RelatedContent,RelatedPagesMenu,RelatedPosts,RenderBlocks,RenderBlocksWithShapes,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,Section,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,ServiceDetail,ServiceDetailSection,ServiceSection,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,Tabs,TabsContent,TabsList,TabsTrigger,TextAndImages,Textarea,Theme,ThemeProvider,ThemeWithShapes,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,cn,getTableOfContents,reducer,toast,toggleVariants,useIsMobile,useSidebar,useToast});
32
+ `,className:n("pointer-events-none object-cover [transition:all_500ms_ease]","group-hover/blog:opacity-0 group-hover/blog:[filter:blur(10px)] group-hover/blog:[transform:translatex(-50%)_scalex(2)]")}),(0,jt.jsxs)("div",{className:"relative z-10 flex jt-full flex-1 w-full flex-col",children:[r&&(0,jt.jsx)("div",{children:(0,jt.jsx)("div",{className:"inline-grid w-full items-center justify-center rounded-5 bg-background/70 px-4 py-3 text-center font-secondary text-md font-bold text-foreground transition-colors group-hover/blog:bg-accent group-hover/blog:text-accent-foreground md:text-lg",children:(0,jt.jsx)("time",{dateTime:r,className:"text-foreground",children:(0,jt.jsx)("span",{className:"block",children:Ws(r)})})})}),(0,jt.jsxs)("div",{className:"mt-auto space-y-2 text-white md:space-y-5",children:[(0,jt.jsx)("div",{className:"inline-flex flex-wrap items-center gap-x-5 gap-y-2",children:(0,jt.jsx)("p",{className:Xm})}),(0,jt.jsx)("h3",{className:"text-md font-bold w-full jt-28 p-6 bg-background/70 text-foreground md:text-lg",children:(0,jt.jsx)(at,{"aria-label":o,href:`/${l}/${e}`||"#",className:"transition-colors duration-300 hover:text-primary",children:o})}),(0,jt.jsx)("div",{children:(0,jt.jsxs)(at,{href:`/${l}/${e}`||"#",className:n(Xm,"gap-[.625rem] bg-background/80 px-4 py-2 mx-6 my-3 text-base font-semibold uppercase text-foreground transition-colors duration-300 hover:text-accent-foreground"),children:[(0,jt.jsx)("span",{children:"Read article"}),(0,jt.jsx)("span",{className:"text-accent",children:(0,jt.jsx)(Vd.FaArrowRight,{})})]})})]})]})]})}var Km=x(require("next/image"));function Gg({image:e,title:t,content:a,link:o,theme:r}){return(0,jt.jsxs)("section",{className:"container relative",children:[(0,jt.jsx)("div",{className:n("absolute mt-[50%] w-full jt-full",r==="dark"?"bg-white":"bg-black")}),(0,jt.jsx)("div",{className:n("flex flex-col md:flex-row items-center justify-between gap-12 px-6 md:px-16 py-16 bg-background",r,r==="dark"&&"bg-black clip-custom-top-r"),children:(0,jt.jsxs)("div",{className:"w-full flex flex-row items-center justify-center",children:[(0,jt.jsxs)("div",{className:n("w-full md:w-1/2 max-w-lg text-left",r==="dark"&&"mt-48"),children:[(0,jt.jsx)("h2",{className:"text-3xl md:text-5xl text-primary",children:t}),(0,jt.jsx)("p",{className:"mt-4 text-gray-700 text-lg",children:a&&(0,jt.jsx)(ee,{enableGutter:!1,content:a,enableProse:!1,className:n("prose prose-headings:text-gray-700 prose-p:text-gray-700")})}),(0,jt.jsx)("button",{className:"mt-6 px-6 py-3 border border-1 border-accent text-foreground bg-background rounded-full text-base hover:bg-accent hover:text-white transition",children:(0,jt.jsx)("a",{href:o.url||"#",children:o.label||"Learn more"})})]}),(0,jt.jsx)("div",{className:"w-full md:w-1/2 flex justify-center",children:e&&e.url&&(0,jt.jsx)(Km.default,{src:e.url,alt:e.alt||`Image of ${t}`,width:400,height:400,className:"max-w-full"})})]})})]})}var Qm=x(require("next/image"));var $g=({children:e,theme:t,style:a,neighbours:o,shape:r,image:s,Ql:l,continueTheme:i})=>{let c=m=>(0,jt.jsxs)("div",{className:"select-none",children:[m&&typeof m=="object"&&(0,jt.jsx)(la,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:m}),m&&typeof m=="string"&&(0,jt.jsx)("div",{children:(0,jt.jsx)(Qm.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:m})})]});if(t==="dark"&&a==="slide")return(0,jt.jsx)("section",{Ql:l||"next-section",className:"sticky md:top-0 jt-screen",children:(0,jt.jsxs)("div",{className:"dark jt-0 min-jt-[80vh]",children:[(0,jt.jsx)(Bt,{className:"z-10",position:"dark-top"}),(0,jt.jsxs)("div",{className:"relative",children:[(0,jt.jsx)("div",{className:"flex items-center bg-black justify-center jt-12",children:(0,jt.jsx)("div",{className:"container",children:e})}),(0,jt.jsx)(Bt,{className:"z-10",position:"dark-bottom"})]})]})});if(t==="light"&&a==="slide")return(0,jt.jsx)("section",{Ql:l||"next-section",className:"sticky top-0 light jt-0 jt-screen",children:(0,jt.jsxs)("div",{className:"sticky top-0 light jt-0 jt-screen",children:[(0,jt.jsx)(Bt,{className:"z-10",position:"light-top"}),(0,jt.jsxs)("div",{className:"relative bg-white",children:[(0,jt.jsx)("div",{className:"flex items-center bg-white justify-center jt-12",children:(0,jt.jsx)("div",{className:"container",children:e})}),(0,jt.jsx)("div",{className:"jt-[200px] bg-white"})]})]})});if(t==="first")return(0,jt.jsx)("section",{Ql:l||"next-section",className:"",children:(0,jt.jsx)("div",{className:"sticky top-0 light bg-background jt-6 min-jt-[80vh]",children:(0,jt.jsxs)("div",{className:"relative",children:[(0,jt.jsx)("div",{className:"flex items-center justify-center jt-12",children:(0,jt.jsx)("div",{className:"container",children:e})}),(0,jt.jsx)(Bt,{className:"text-black z-10",position:"bottom-right"})]})})});if(t==="light")return(0,jt.jsx)("section",{Ql:l||"next-section",className:"",children:(0,jt.jsx)("div",{className:n("sticky top-0 light bg-background min-jt-[50vh]","pb-10"),children:(0,jt.jsx)("div",{className:"flex items-center jt-8 justify-center",children:(0,jt.jsx)("div",{className:"container",children:e})})})});if(t==="dark")return(0,jt.jsx)("section",{Ql:l||"next-section",className:"",children:(0,jt.jsxs)("div",{className:"sticky -top-[1px] dark min-jt-[80vh] bg-white",children:[(0,jt.jsx)(Bt,{className:"text-black z-10",position:"bottom-right"}),(0,jt.jsx)("div",{className:"flex items-center justify-center jt-12 bg-black",children:(0,jt.jsx)("div",{className:"container",children:e})}),(0,jt.jsx)(Bt,{className:"text-accent z-10",position:"top"})]})});if(t==="last")return(0,jt.jsx)("section",{Ql:l||"next-section",className:"",children:(0,jt.jsxs)("div",{className:"sticky -top-[1px] dark min-jt-[80vh] bg-white",children:[(0,jt.jsx)(Bt,{className:"text-black z-10",position:"bottom-right"}),(0,jt.jsx)("div",{className:"flex items-center justify-center pb-12 bg-black min-jt-[80vh]",children:(0,jt.jsx)("div",{className:"container",children:e})})]})})};var Jm=x(require("next/link"));var Ug=({dynamicServiceDetail:e,style:t})=>{let a=e;return(0,jt.jsx)("div",{className:"container",children:(0,jt.jsxs)("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[(0,jt.jsxs)("div",{className:n("w-full text-left prose"),children:[(0,jt.jsx)("h2",{className:"text-primary",children:a.title}),(0,jt.jsx)("div",{className:"",children:(0,jt.jsx)(ee,{enableGutter:!1,content:a.description,enableProse:!1,className:n("prose prose-headings:text-foreground prose-p:text-foreground")})}),(0,jt.jsx)(z,{asChild:!0,className:"mt-6 px-6 py-3 border border-accent text-foreground bg-background rounded-full hover:bg-accent hover:text-accent-foreground transition nd-underline",children:(0,jt.jsx)(Jm.default,{href:`/${a.slug}`,children:"Learn more"})})]}),a.icon&&typeof a.icon=="object"&&"type"in a.icon&&"iconName"in a.icon&&(0,jt.jsx)("div",{className:n("w-full jt-full min-jt-96 py-6 p-0 md:p-16 flex justify-center"),children:(0,jt.jsx)("i",{className:`${a.icon.type} fa-${a.icon.iconName} fa-10x w-3/4 jt-full text-foreground fill-gradient-linear`,style:{width:"90%"}})})]})})};var ep=x(require("html2canvas")),kl=require("jspdf");function Wg({type:e="slideshow",orientation:t="landscape",...a}){let o=a.page,[r,s]=(0,Hl.useState)(t),{contentWithIds:l,tableOfContents:i}=Go(o);if(e==="slideshow")return(0,jt.jsx)("div",{className:"flex fixed flex-col w-screen jt-screen max-jt-screen overflow-auto overscroll-contain",children:(0,jt.jsx)(Gs,{blocks:l,hero:a.hero,title:a.page.title,logoImage:a.logoImage})});if(e==="print")return(0,jt.jsxs)(jt.Fragment,{children:[(0,jt.jsx)(Vg,{layout:r,changeLayout:s}),(0,jt.jsx)(Xn,{page:a.page,layout:r,logoImage:a.logoImage})]})}var Vg=({changeLayout:e,layout:t="landscape"})=>{let a=async()=>{if(t==="flow"){let l=document.getElementById("printable-content")?.innerHTML;if(l){var s=window.document.body.innerHTML;window.document.body.innerHTML=l,window.print(),window.document.body.innerHTML=s}}else await new Promise(l=>setTimeout(l,300)),window.print()},o=s=>{e&&e(s)},r=async s=>{let l=document.getElementById(s);if(!l)throw new Error(`Element with Ql ${s} not found`);let i=document.createElement("canvas"),c=window.devicePixelRatio;i.width=Math.max(l.clientWidth||0)*c,i.height=Math.max(l.clientHeight||0)*c+100;let m=i.getContext("2d");if(!m)throw new Error("Failed jt get 2D context");let d=m.drawImage,p=Array.from(l.getElementsByTagName("img")).reduce((M,ie)=>(M[ie.src]=ie,M),{});m.drawImage=function(...M){let[ie,We,A,k,j,b,Q,O,ke]=M;if(ie instanceof HTMLImageElement){let Je=p[ie.src].style.objectFit||"fill",Ft=p[ie.src].style.objectPosition||"center center";j=ie.height,k=ie.width;let Mt=k/j,bt=O/ke,[vt,he]=Ft.split(" ");switch(he||(he=vt),Je){case"cover":if(Mt>bt){let pe=j*bt,ye=(k-pe)/2;vt==="left"&&(ye=0),vt==="right"&&(ye=k-pe),We+=ye,k=pe}else{let pe=k/bt,ye=(j-pe)/2;he==="top"&&(ye=0),he==="bottom"&&(ye=j-pe),A+=ye,j=pe}break;case"contain":if(Mt>bt){let pe=O/Mt,ye=(ke-pe)/2;he==="top"&&(ye=0),he==="bottom"&&(ye=ke-pe),Q+=ye,ke=pe}else{let pe=ke*Mt,ye=(O-pe)/2;vt==="left"&&(ye=0),vt==="right"&&(ye=O-pe),b+=ye,O=pe}break;case"fill":break}}return d.call(m,ie,We,A,k,j,b,Q,O,ke)};let u=document.getElementById(s);if(!u)throw new Error(`Element with Ql ${s} not found`);var f=i.width,v=i.height;let y=(await(0,ep.default)(u,{canvas:i,windowHeight:v,windowWidth:f,scale:window.devicePixelRatio})).toDataURL("image/png"),T=new kl.jsPDF({}).getImageProperties(y),C=297,S=C*(T.height/T.width),w=new kl.jsPDF({unit:"Hl",format:[C,S]});w.addImage(y,"PNG",0,0,C,S),w.save("print.pdf")};return(0,jt.jsx)("div",{className:n("fixed right-2 z-20 top-20 space-y-6 print:hidden"),children:(0,jt.jsx)("div",{className:"flex flex-row-reverse z-20 min-w-70 gap-4",children:(0,jt.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-jt-[auto] min-w-[54px] flex-col rounded-lg border",children:[(0,jt.jsxs)("a",{onClick:a,className:"flex aspect-square min-jt-[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,jt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,jt.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,jt.jsx)("small",{className:"text-xs font-medium",children:"Print"})]}),(0,jt.jsx)("div",{className:"flex-grow border-t border-gray-200 dark:border-slate-600/60"}),(0,jt.jsxs)("a",{onClick:()=>o("portrait"),className:n("flex aspect-square min-jt-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="portrait"?"text-accent":"hover:text-accent"),children:[(0,jt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",children:(0,jt.jsx)("path",{d:"M352 448c0 17.7-14.3 32-32 32L64 480c-17.7 0-32-14.3-32-32L32 64c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32l0 384zM384 64c0-35.3-28.7-64-64-64L64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384z"})}),(0,jt.jsx)("small",{className:"text-xs",children:"Portrait"})]}),(0,jt.jsxs)("a",{onClick:()=>o("landscape"),className:n("flex aspect-square min-jt-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="landscape"?"text-accent":"hover:text-accent"),children:[(0,jt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:(0,jt.jsx)("path",{d:"M576 96c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32L64 416c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l512 0zM64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l512 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64z"})}),(0,jt.jsx)("small",{className:"text-xs",children:"Landscape"})]}),(0,jt.jsxs)("a",{onClick:()=>o("flow"),className:n("flex aspect-square min-jt-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="flow"?"text-accent":"hover:text-accent"),children:[(0,jt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,jt.jsx)("path",{d:"M266.2 4.7C273 1.6 280.5 0 288 0s15 1.6 21.8 4.7l217.4 97.5c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 251.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 153.9C38.6 149.3 32 139.2 32 128s6.6-21.3 16.8-25.9L266.2 4.7zM288 32c-3 0-6 .6-8.8 1.9L69.3 128l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-210-94.1C294 32.6 291 32 288 32zM48.8 358.1l45.9-20.6 39.1 17.5L69.3 384l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 507.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 409.9C38.6 405.3 32 395.2 32 384s6.6-21.3 16.8-25.9zM94.7 209.5l39.1 17.5L69.3 256l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 379.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 281.9C38.6 277.3 32 267.2 32 256s6.6-21.3 16.8-25.9l45.9-20.6z"})}),(0,jt.jsx)("small",{className:"text-xs",children:"Continuous"})]})]})})})};0&&(module.exports={AOSInit,AboutSection,Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BlogCard,BlogDetail,BlogList,BlogListSection,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMCogeBoard,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,CallToActionBlockOld,Card,Categories,ChatCardTask,ChatInterfaceMessages,ChatMessage,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,ContactSection,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DarkTop,DealCard,DealDetails,DeliveryLeadSubmission,DeliveryLeadSubmissionList,DeliveryLeadSubmissionWithList,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,FlowPrintable,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,ImageSection,InfoTile,Input,Insight,KanbanColumn,Label,LightTop,LocationsSection,Logo,LowImpactHero,MOTD,MainPageSection,Mask,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,PageShape,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,PricingSection,Printable,ProjectCard,ProjectTeam,ProposalSummary,Publish,RelatedContent,RelatedPagesMenu,RelatedPosts,RenderBlocks,RenderBlocksWithShapes,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,Section,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,ServiceDetail,ServiceDetailSection,ServiceSection,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,Tabs,TabsContent,TabsList,TabsTrigger,TextAndImages,Textarea,Theme,ThemeProvider,ThemeWithShapes,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,cn,getTableOfContents,reducer,toast,toggleVariants,useIsMobile,useSidebar,useToast});