cortex-react-components 1.53.11 → 1.53.12

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 (140) hide show
  1. package/dist/{chunk-TZE7RZAV.mjs → chunk-3BBZH3T3.mjs} +1 -1
  2. package/dist/chunk-3ILIKZIF.mjs +1 -0
  3. package/dist/{chunk-YYTC3N7R.mjs → chunk-5AAERLK4.mjs} +1 -1
  4. package/dist/{chunk-4YJ3HV64.mjs → chunk-6DHYRATS.mjs} +1 -1
  5. package/dist/{chunk-A4FSBW4J.mjs → chunk-7H5RA3LZ.mjs} +1 -1
  6. package/dist/{chunk-OGKJF5LR.mjs → chunk-7XB4Y3U2.mjs} +1 -1
  7. package/dist/{chunk-3X7MZJKC.mjs → chunk-CF7XDPTT.mjs} +1 -1
  8. package/dist/{chunk-D7A7EUEW.mjs → chunk-DFB6DJCW.mjs} +1 -1
  9. package/dist/{chunk-RQ23CZK5.mjs → chunk-F55C2C5H.mjs} +1 -1
  10. package/dist/{chunk-BBAZXZHU.mjs → chunk-F572VPA4.mjs} +1 -1
  11. package/dist/{chunk-CBAMKCVZ.mjs → chunk-FGGYIUGW.mjs} +1 -1
  12. package/dist/{chunk-ZIWHUQ4D.mjs → chunk-HER7J6HM.mjs} +1 -1
  13. package/dist/{chunk-PUTLV4MC.mjs → chunk-JGFNFHZM.mjs} +1 -1
  14. package/dist/{chunk-FCCL6W7R.mjs → chunk-JPFBD2KD.mjs} +1 -1
  15. package/dist/{chunk-FRFZ7LVW.mjs → chunk-LCBC4XAC.mjs} +1 -1
  16. package/dist/{chunk-AHJ5FNJ2.mjs → chunk-LI37GQGD.mjs} +1 -1
  17. package/dist/{chunk-TNCMFPCJ.mjs → chunk-MGGXJ6E5.mjs} +1 -1
  18. package/dist/chunk-NMVLT3F5.mjs +1 -0
  19. package/dist/{chunk-NCDGCFUX.mjs → chunk-Q3MPLEUO.mjs} +1 -1
  20. package/dist/{chunk-LHXPQC5D.mjs → chunk-R7CSR27B.mjs} +1 -1
  21. package/dist/{chunk-2A6JF3LE.mjs → chunk-RJGKFNZL.mjs} +1 -1
  22. package/dist/{chunk-3WIP6KGJ.mjs → chunk-RMSUXBP2.mjs} +1 -1
  23. package/dist/{chunk-KLCZHZKQ.mjs → chunk-S7I4XJS6.mjs} +1 -1
  24. package/dist/{chunk-ZRELTOLU.mjs → chunk-SQTEG7N4.mjs} +1 -1
  25. package/dist/{chunk-XBDQDQ2Y.mjs → chunk-SYRLP2F4.mjs} +1 -1
  26. package/dist/{chunk-PLAYORPG.mjs → chunk-T5H436I7.mjs} +1 -1
  27. package/dist/{chunk-7SIA5TYE.mjs → chunk-TCIVDDHE.mjs} +1 -1
  28. package/dist/{chunk-LTCE726Z.mjs → chunk-UBPBLCZE.mjs} +1 -1
  29. package/dist/{chunk-SELG6WQB.mjs → chunk-UELQEYEC.mjs} +1 -1
  30. package/dist/{chunk-67BUBESC.mjs → chunk-UOXUFOIU.mjs} +1 -1
  31. package/dist/{chunk-LREG7GGX.mjs → chunk-WP5GREDV.mjs} +1 -1
  32. package/dist/{chunk-MGS3DQ22.mjs → chunk-XXTN5HMN.mjs} +1 -1
  33. package/dist/{chunk-JF54R3EA.mjs → chunk-Y2SNB25S.mjs} +1 -1
  34. package/dist/{chunk-GGZBTSJX.mjs → chunk-ZARUYNTS.mjs} +1 -1
  35. package/dist/{chunk-IIRRLI65.mjs → chunk-ZMTWB7GE.mjs} +1 -1
  36. package/dist/components/Blocks/Banner.mjs +1 -1
  37. package/dist/components/Blocks/CallToAction.mjs +1 -1
  38. package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
  39. package/dist/components/Blocks/Content.mjs +1 -1
  40. package/dist/components/Blocks/Content.stories.mjs +1 -1
  41. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  42. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  43. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  44. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  45. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  46. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  47. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  48. package/dist/components/Blocks/index.mjs +1 -1
  49. package/dist/components/Cards/ContentCard.mjs +1 -1
  50. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  51. package/dist/components/Cards/FeatureCard.js +1 -1
  52. package/dist/components/Cards/FeatureCard.mjs +1 -1
  53. package/dist/components/Cards/FeatureCard.stories.js +1 -1
  54. package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
  55. package/dist/components/Cards/index.js +1 -1
  56. package/dist/components/Cards/index.mjs +1 -1
  57. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  58. package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
  59. package/dist/components/HeaderFooter/Header.mjs +1 -1
  60. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  61. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  62. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  63. package/dist/components/HeaderFooter/index.mjs +1 -1
  64. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  65. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  66. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  67. package/dist/components/Heros/RenderHero.mjs +1 -1
  68. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  69. package/dist/components/Heros/index.mjs +1 -1
  70. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  71. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  72. package/dist/components/Holidays/index.mjs +1 -1
  73. package/dist/components/Layouts/FeatureGrid.stories.js +1 -1
  74. package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
  75. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  76. package/dist/components/Layouts/Print.mjs +1 -1
  77. package/dist/components/Layouts/Print.stories.mjs +1 -1
  78. package/dist/components/Layouts/SlideShow.mjs +1 -1
  79. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  80. package/dist/components/Layouts/index.mjs +1 -1
  81. package/dist/components/Other/index.mjs +1 -1
  82. package/dist/components/Payload/Card/index.mjs +1 -1
  83. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  84. package/dist/components/Payload/Media/index.mjs +1 -1
  85. package/dist/components/Payload/RichText/index.mjs +1 -1
  86. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  87. package/dist/components/Payload/RichText.stories.mjs +1 -1
  88. package/dist/components/Payload/index.mjs +1 -1
  89. package/dist/components/index.js +1 -1
  90. package/dist/components/index.mjs +1 -1
  91. package/dist/globals.css +1 -1
  92. package/dist/index.js +2 -2
  93. package/dist/index.mjs +1 -1
  94. package/dist/metafile-cjs.json +1 -1
  95. package/dist/metafile-esm.json +1 -1
  96. package/dist/pages/Blog.mjs +1 -1
  97. package/dist/pages/Blog.stories.mjs +1 -1
  98. package/dist/pages/Documentation.mjs +1 -1
  99. package/dist/pages/Documentation.stories.mjs +1 -1
  100. package/dist/pages/IndexPage.mjs +1 -1
  101. package/dist/pages/IndexPage.stories.mjs +1 -1
  102. package/dist/pages/Intranet.mjs +1 -1
  103. package/dist/pages/Intranet.stories.mjs +1 -1
  104. package/dist/pages/LandingPage.js +1 -1
  105. package/dist/pages/LandingPage.mjs +1 -1
  106. package/dist/pages/LandingPage.stories.js +1 -1
  107. package/dist/pages/LandingPage.stories.mjs +1 -1
  108. package/dist/pages/Page.mjs +1 -1
  109. package/dist/pages/Page.stories.mjs +1 -1
  110. package/dist/pages/Printable.stories.mjs +1 -1
  111. package/dist/pages/Publish.mjs +1 -1
  112. package/dist/pages/Publish.stories.mjs +1 -1
  113. package/dist/pages/Website.mjs +1 -1
  114. package/dist/pages/Website.stories.mjs +1 -1
  115. package/dist/sections/AboutSection.mjs +1 -1
  116. package/dist/sections/AboutSection.stories.mjs +1 -1
  117. package/dist/sections/BlogDetail.mjs +1 -1
  118. package/dist/sections/BlogDetail.stories.mjs +1 -1
  119. package/dist/sections/BlogList.mjs +1 -1
  120. package/dist/sections/BlogList.stories.mjs +1 -1
  121. package/dist/sections/ContactSection.mjs +1 -1
  122. package/dist/sections/ContactSection.stories.mjs +1 -1
  123. package/dist/sections/ImageSection.stories.mjs +1 -1
  124. package/dist/sections/PageSections.js +1 -1
  125. package/dist/sections/PageSections.mjs +1 -1
  126. package/dist/sections/PageSections.stories.js +1 -1
  127. package/dist/sections/PageSections.stories.mjs +1 -1
  128. package/dist/sections/PricingSection.mjs +1 -1
  129. package/dist/sections/PricingSection.stories.mjs +1 -1
  130. package/dist/sections/ServiceDetailSection.mjs +1 -1
  131. package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
  132. package/dist/sections/ServiceSection.js +1 -1
  133. package/dist/sections/ServiceSection.mjs +1 -1
  134. package/dist/sections/ServiceSection.stories.js +1 -1
  135. package/dist/sections/ServiceSection.stories.mjs +1 -1
  136. package/dist/sections/index.js +2 -2
  137. package/dist/sections/index.mjs +1 -1
  138. package/package.json +1 -1
  139. package/dist/chunk-NJC7ZQ2T.mjs +0 -1
  140. package/dist/chunk-WUHIBYYW.mjs +0 -1
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@
7
7
  aos: MutationObserver Tt not supported on this browser,
8
8
  code mutations observing has been disabled.
9
9
  You may have to call "refreshHard()" by yourself.
10
- `),$.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",$.easing),document.querySelector("body").setAttribute("data-aos-duration",$.duration),document.querySelector("body").setAttribute("data-aos-delay",$.delay),$.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?C(!0):$.startEvent==="load"?window.addEventListener($.startEvent,function(){C(!0)}):document.addEventListener($.startEvent,function(){C(!0)}),window.addEventListener("resize",(0,m.default)(C,$.debounceDelay,!0)),window.addEventListener("orientationchange",(0,m.default)(C,$.debounceDelay,!0)),window.addEventListener("scroll",(0,n.default)(function(){(0,f.default)(B,$.once)},$.throttleDelay)),$.disableMutationObserver||p.default.ready("[data-aos]",I),B)};e.exports={init:N,refresh:C,refreshHard:I}},function(e,t){},,,,,function(e,t){(function(a){"use strict";function o(b,N,w){function ye(ie){var pt=se,Ra=pe;return se=pe=void 0,ka=ie,Ue=b.apply(Ra,pt)}function we(ie){return ka=ie,Fe=setTimeout(Rt,N),Sa?ye(ie):Ue}function $e(ie){var pt=ie-xt,Ra=ie-ka,Kn=N-pt;return sa?I(Kn,Jt-Ra):Kn}function dt(ie){var pt=ie-xt,Ra=ie-ka;return xt===void 0||pt>=N||pt<0||sa&&Ra>=Jt}function Rt(){var ie=S();return dt(ie)?yt(ie):void(Fe=setTimeout(Rt,$e(ie)))}function yt(ie){return Fe=void 0,Ne&&se?ye(ie):(se=pe=void 0,Ue)}function ct(){Fe!==void 0&&clearTimeout(Fe),ka=0,se=xt=pe=Fe=void 0}function mt(){return Fe===void 0?Ue:yt(S())}function ce(){var ie=S(),pt=dt(ie);if(se=arguments,pe=this,xt=ie,pt){if(Fe===void 0)return we(xt);if(sa)return Fe=setTimeout(Rt,N),ye(xt)}return Fe===void 0&&(Fe=setTimeout(Rt,N)),Ue}var se,pe,Jt,Ue,Fe,xt,ka=0,Sa=!1,sa=!1,Ne=!0;if(typeof b!="function")throw new TypeError(d);return N=c(N)||0,s(w)&&(Sa=!!w.leading,sa="maxWait"in w,Jt=sa?C(c(w.maxWait)||0,N):Jt,Ne="trailing"in w?!!w.trailing:Ne),ce.cancel=ct,ce.flush=mt,ce}function r(b,N,w){var ye=!0,we=!0;if(typeof b!="function")throw new TypeError(d);return s(w)&&(ye="leading"in w?!!w.leading:ye,we="trailing"in w?!!w.trailing:we),o(b,N,{leading:ye,maxWait:N,trailing:we})}function s(b){var N=typeof b=="undefined"?"undefined":m(b);return!!b&&(N=="object"||N=="function")}function i(b){return!!b&&(typeof b=="undefined"?"undefined":m(b))=="object"}function n(b){return(typeof b=="undefined"?"undefined":m(b))=="symbol"||i(b)&&$.call(b)==u}function c(b){if(typeof b=="number")return b;if(n(b))return p;if(s(b)){var N=typeof b.valueOf=="function"?b.valueOf():b;b=s(N)?N+"":N}if(typeof b!="string")return b===0?b:+b;b=b.replace(g,"");var w=f.test(b);return w||h.test(b)?k(b.slice(2),w?2:8):v.test(b)?p:+b}var m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},d="Expected a function",p=NaN,u="[object Symbol]",g=/^\s+|\s+$/g,v=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,h=/^0o[0-7]+$/i,k=parseInt,D=(typeof a=="undefined"?"undefined":m(a))=="object"&&a&&a.Object===Object&&a,E=(typeof self=="undefined"?"undefined":m(self))=="object"&&self&&self.Object===Object&&self,B=D||E||Function("return this")(),me=Object.prototype,$=me.toString,C=Math.max,I=Math.min,S=function(){return B.Date.now()};e.exports=r}).call(t,function(){return this}())},function(e,t){(function(a){"use strict";function o(S,b,N){function w(Ne){var ie=ce,pt=se;return ce=se=void 0,xt=Ne,Jt=S.apply(pt,ie)}function ye(Ne){return xt=Ne,Ue=setTimeout(dt,b),ka?w(Ne):Jt}function we(Ne){var ie=Ne-Fe,pt=Ne-xt,Ra=b-ie;return Sa?C(Ra,pe-pt):Ra}function $e(Ne){var ie=Ne-Fe,pt=Ne-xt;return Fe===void 0||ie>=b||ie<0||Sa&&pt>=pe}function dt(){var Ne=I();return $e(Ne)?Rt(Ne):void(Ue=setTimeout(dt,we(Ne)))}function Rt(Ne){return Ue=void 0,sa&&ce?w(Ne):(ce=se=void 0,Jt)}function yt(){Ue!==void 0&&clearTimeout(Ue),xt=0,ce=Fe=se=Ue=void 0}function ct(){return Ue===void 0?Jt:Rt(I())}function mt(){var Ne=I(),ie=$e(Ne);if(ce=arguments,se=this,Fe=Ne,ie){if(Ue===void 0)return ye(Fe);if(Sa)return Ue=setTimeout(dt,b),w(Fe)}return Ue===void 0&&(Ue=setTimeout(dt,b)),Jt}var ce,se,pe,Jt,Ue,Fe,xt=0,ka=!1,Sa=!1,sa=!0;if(typeof S!="function")throw new TypeError(m);return b=n(b)||0,r(N)&&(ka=!!N.leading,Sa="maxWait"in N,pe=Sa?$(n(N.maxWait)||0,b):pe,sa="trailing"in N?!!N.trailing:sa),mt.cancel=yt,mt.flush=ct,mt}function r(S){var b=typeof S=="undefined"?"undefined":c(S);return!!S&&(b=="object"||b=="function")}function s(S){return!!S&&(typeof S=="undefined"?"undefined":c(S))=="object"}function i(S){return(typeof S=="undefined"?"undefined":c(S))=="symbol"||s(S)&&me.call(S)==p}function n(S){if(typeof S=="number")return S;if(i(S))return d;if(r(S)){var b=typeof S.valueOf=="function"?S.valueOf():S;S=r(b)?b+"":b}if(typeof S!="string")return S===0?S:+S;S=S.replace(u,"");var N=v.test(S);return N||f.test(S)?h(S.slice(2),N?2:8):g.test(S)?d:+S}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},m="Expected a function",d=NaN,p="[object Symbol]",u=/^\s+|\s+$/g,g=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,f=/^0o[0-7]+$/i,h=parseInt,k=(typeof a=="undefined"?"undefined":c(a))=="object"&&a&&a.Object===Object&&a,D=(typeof self=="undefined"?"undefined":c(self))=="object"&&self&&self.Object===Object&&self,E=k||D||Function("return this")(),B=Object.prototype,me=B.toString,$=Math.max,C=Math.min,I=function(){return E.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(i);n=m,u.observe(d.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function i(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 n()})}Object.defineProperty(t,"__esModule",{value:!0});var n=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 Tt a function")}function o(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function d(p,u){for(var g=0;g<u.length;g++){var v=u[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(p,v.key,v)}}return function(p,u,g){return u&&d(p.prototype,u),g&&d(p,g),p}}(),s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|Nl)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( Tt)?|phone|p(ixi|Tt)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,i=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|Tt|co)|amoi|Tt(ex|ny|yw)|aptu|ar(ch|Tt)|Tt(Tt|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|Tt)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|Il\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|ms(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|Tt|wa|Tt)|fetc|fly(\-|Tt)|g1 u|g560|gene|gf\-5|g\-mo|Tt(\.w|Nl)|gr(Nl|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|Tt)|hp( i|ip)|hs\-c|Tt(c(\-| |Tt|a|g|p|s|t)|tp)|hu(aw|Xd)|i\-(20|Tt|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|Tt(Il|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(Tt|ui|xo)|Il(01|21|Tt)|m\-cr|me(rc|ri)|mi(o8|ms|Tt)|mmef|mo(01|02|bi|Tt|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)|Tt((c|m)\-|on|tf|wf|wg|Tt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|Tt(ck|Il|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(Tt|ma|ms|ms|ny|Tt)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|Il|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|Tt(Tt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|Tt(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|Tt)|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,n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|Nl)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( Tt)?|phone|p(ixi|Tt)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,c=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|Tt|co)|amoi|Tt(ex|ny|yw)|aptu|ar(ch|Tt)|Tt(Tt|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|Tt)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|Il\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|ms(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|Tt|wa|Tt)|fetc|fly(\-|Tt)|g1 u|g560|gene|gf\-5|g\-mo|Tt(\.w|Nl)|gr(Nl|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|Tt)|hp( i|ip)|hs\-c|Tt(c(\-| |Tt|a|g|p|s|t)|tp)|hu(aw|Xd)|i\-(20|Tt|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|Tt(Il|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(Tt|ui|xo)|Il(01|21|Tt)|m\-cr|me(rc|ri)|mi(o8|ms|Tt)|mmef|mo(01|02|bi|Tt|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)|Tt((c|m)\-|on|tf|wf|wg|Tt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|Tt(ck|Il|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(Tt|ma|ms|ms|ny|Tt)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|Il|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|Tt(Tt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|Tt(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|Tt)|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)&&!i.test(p.substr(0,4)))}},{key:"mobile",value:function(){var p=o();return!(!n.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,i){var n=r.node.getAttribute("data-aos-once");s>r.position?r.node.classList.add("aos-animate"):typeof n!="undefined"&&(n==="false"||!i&&n!=="true")&&r.node.classList.remove("aos-animate")},o=function(r,s){var i=window.pageYOffset,n=window.innerHeight;r.forEach(function(c,m){a(c,n+i,s)})};t.default=o},function(e,t,a){"use strict";function o(n){return n&&n.__esModule?n:{default:n}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(12),s=o(r),i=function(n,c){return n.forEach(function(m,d){m.node.classList.add("aos-init"),m.position=(0,s.default)(m.node,c.offset)}),n};t.default=i},function(e,t,a){"use strict";function o(n){return n&&n.__esModule?n:{default:n}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(13),s=o(r),i=function(n,c){var m=0,d=0,p=window.innerHeight,u={offset:n.getAttribute("data-aos-offset"),anchor:n.getAttribute("data-aos-anchor"),anchorPlacement:n.getAttribute("data-aos-anchor-placement")};switch(u.offset&&!isNaN(u.offset)&&(d=parseInt(u.offset)),u.anchor&&document.querySelectorAll(u.anchor)&&(n=document.querySelectorAll(u.anchor)[0]),m=(0,s.default)(n).top,u.anchorPlacement){case"top-bottom":break;case"center-bottom":m+=n.offsetHeight/2;break;case"bottom-bottom":m+=n.offsetHeight;break;case"top-center":m+=p/2;break;case"bottom-center":m+=p/2+n.offsetHeight;break;case"center-center":m+=p/2+n.offsetHeight/2;break;case"top-top":m+=p;break;case"bottom-top":m+=n.offsetHeight+p;break;case"center-top":m+=n.offsetHeight/2+p}return u.anchorPlacement||u.offset||isNaN(c)||(d=c),m+d};t.default=i},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 Uu={};Cm(Uu,{AOSInit:()=>op,AboutSection:()=>Su,Alert:()=>Gi,AlertDescription:()=>Vi,AlertTitle:()=>$i,ApproveLeave:()=>En,Avatar:()=>pa,AvatarFallback:()=>fa,AvatarImage:()=>ua,Badge:()=>Lt,BannerBlock:()=>Yi,BlogCard:()=>pm,BlogDetail:()=>Hu,BlogList:()=>ju,BlogListSection:()=>Tu,BrandLogo:()=>Ka,Breadcrumb:()=>Vs,BreadcrumbEllipsis:()=>Ks,BreadcrumbItem:()=>Us,BreadcrumbLink:()=>Xs,BreadcrumbList:()=>Ws,BreadcrumbPage:()=>Ys,BreadcrumbSeparator:()=>qs,Breadcrumbs:()=>Rn,Button:()=>L,CMSLink:()=>Zt,CRMKanbanBoard:()=>Cu,Calendar:()=>vr,CalendarView:()=>_n,CallToActionBlock:()=>mo,Card:()=>Nr,Categories:()=>Sr,Checkbox:()=>Wt,CodeBlock:()=>Ji,Collapsible:()=>na,CollapsibleContent:()=>Aa,CollapsibleTrigger:()=>Ma,CollectionArchive:()=>Vp,Command:()=>Qr,CommandDialog:()=>td,CommandEmpty:()=>Hi,CommandGroup:()=>Fi,CommandInput:()=>Ei,CommandItem:()=>_i,CommandList:()=>zi,CommandSeparator:()=>Oi,CommandShortcut:()=>ji,ContactSection:()=>Bu,Container:()=>Be,ContentBlock:()=>wr,ContentCard:()=>rn,CopyButton:()=>Ki,CustomLink:()=>Ve,CustomerCard:()=>Dd,DealCard:()=>Gn,DealDetails:()=>jn,Dialog:()=>It,DialogClose:()=>qr,DialogContent:()=>Ct,DialogDescription:()=>Bi,DialogFooter:()=>Li,DialogHeader:()=>$t,DialogOverlay:()=>Kr,DialogPortal:()=>Ii,DialogTitle:()=>Vt,DialogTrigger:()=>Yr,DropdownMenu:()=>ml,DropdownMenuCheckboxItem:()=>ti,DropdownMenuContent:()=>Zs,DropdownMenuGroup:()=>ul,DropdownMenuItem:()=>ei,DropdownMenuLabel:()=>oi,DropdownMenuPortal:()=>fl,DropdownMenuRadioGroup:()=>bl,DropdownMenuRadioItem:()=>ai,DropdownMenuSeparator:()=>ri,DropdownMenuShortcut:()=>si,DropdownMenuSub:()=>gl,DropdownMenuSubContent:()=>Js,DropdownMenuSubTrigger:()=>Qs,DropdownMenuTrigger:()=>pl,DynamicIcon:()=>qe,EventCard:()=>Md,FeatureCard:()=>ls,FeatureGrid:()=>Od,FeaturesBlock:()=>uo,Filter:()=>wn,FlowPrintable:()=>nc,Footer:()=>vu,Header:()=>hu,HeaderDesktop:()=>Dn,HeaderMobile:()=>An,HeadingImage:()=>_p,Hero:()=>Dp,HighImpactHero:()=>Nn,HolidayGrid:()=>On,HolidayTracker:()=>wu,HoverCard:()=>Kl,HoverCardContent:()=>Ai,HoverCardTrigger:()=>Ql,Image:()=>Ed,ImageBlock:()=>on,ImageSection:()=>_u,InfoTile:()=>Ip,Input:()=>ut,Insight:()=>Ap,KanbanColumn:()=>Wn,Label:()=>ve,LocationsSection:()=>Eu,Logo:()=>Wp,LowImpactHero:()=>kn,MOTD:()=>Bp,MainPageSection:()=>Fu,Mask:()=>su,Media:()=>Ut,MediaBlock:()=>ba,MediumImpactHero:()=>Pn,NewCustomerForm:()=>$n,NewDealForm:()=>Vn,NewsGrid:()=>sc,OrgChart:()=>Hp,PagePrintable:()=>lc,PageRange:()=>Yp,PageShape:()=>it,Pagination:()=>yn,PayloadPagination:()=>qp,Popover:()=>ur,PopoverAnchor:()=>Wl,PopoverContent:()=>zo,PopoverTrigger:()=>fr,PostHero:()=>nu,PricingCard:()=>nn,PricingSection:()=>ku,Printable:()=>bn,ProjectCard:()=>Bd,ProjectTeam:()=>au,ProposalSummary:()=>Fp,Publish:()=>Vu,RelatedContent:()=>ou,RelatedPosts:()=>$p,RenderBlocks:()=>bo,RenderHero:()=>cu,RequestLeave:()=>Fn,ReusableContentBlock:()=>ln,RichText:()=>Z,ScrollArea:()=>Oa,ScrollBar:()=>Xr,Section:()=>$u,SectionHero:()=>Sn,SectionHeroOLD:()=>lu,Select:()=>lo,SelectContent:()=>$a,SelectGroup:()=>hp,SelectItem:()=>Va,SelectLabel:()=>nd,SelectScrollDownButton:()=>Xi,SelectScrollUpButton:()=>Ui,SelectSeparator:()=>ld,SelectTrigger:()=>Ga,SelectValue:()=>co,Separator:()=>er,ServiceCard:()=>Tp,ServiceDetailSection:()=>Gu,ServiceSection:()=>Pu,Sheet:()=>Br,SheetClose:()=>Pl,SheetContent:()=>ar,SheetDescription:()=>mi,SheetFooter:()=>di,SheetHeader:()=>li,SheetOverlay:()=>Er,SheetPortal:()=>ni,SheetTitle:()=>ci,SheetTrigger:()=>Cl,Sidebar:()=>to,SidebarContent:()=>La,SidebarFooter:()=>oo,SidebarGroup:()=>Dt,SidebarGroupAction:()=>hi,SidebarGroupContent:()=>jt,SidebarGroupLabel:()=>da,SidebarHeader:()=>ao,SidebarInput:()=>vi,SidebarInset:()=>bi,SidebarLeft:()=>Jp,SidebarMenu:()=>ft,SidebarMenuAction:()=>sr,SidebarMenuBadge:()=>yi,SidebarMenuButton:()=>Mt,SidebarMenuItem:()=>Ye,SidebarMenuSkeleton:()=>xi,SidebarMenuSub:()=>Ba,SidebarMenuSubButton:()=>za,SidebarMenuSubItem:()=>Ea,SidebarProvider:()=>ui,SidebarRail:()=>gi,SidebarRight:()=>tu,SidebarSeparator:()=>rr,SidebarTrigger:()=>fi,SimpleHeader:()=>pu,Skeleton:()=>ke,SlideShow:()=>gs,TextAndImages:()=>ic,Textarea:()=>Wa,Theme:()=>us,ThemeProvider:()=>ru,Toast:()=>lr,ToastAction:()=>Ci,ToastClose:()=>dr,ToastDescription:()=>mr,ToastProvider:()=>Wr,ToastTitle:()=>cr,ToastViewport:()=>nr,Toaster:()=>Ol,Toggle:()=>ki,ToggleGroup:()=>Si,ToggleGroupItem:()=>Ri,Tooltip:()=>Or,TooltipContent:()=>or,TooltipProvider:()=>Fr,TooltipTrigger:()=>_r,VideoHeader:()=>fu,WhyUs:()=>Op,badgeVariants:()=>Wi,buttonVariants:()=>Ia,cn:()=>l,getTableOfContents:()=>Do,reducer:()=>El,toast:()=>zl,toggleVariants:()=>pr,useIsMobile:()=>Hr,useSidebar:()=>Bo,useToast:()=>Vr});module.exports=Pm(Uu);var Mo=y(require("react")),Lr=require("@radix-ui/react-icons"),cl=require("@radix-ui/react-slot");var il=require("clsx");var Gs="-",km=e=>{let t=Rm(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let n=i.split(Gs);return n[0]===""&&n.length!==1&&n.shift(),el(n,t)||Sm(i)},getConflictingClassGroupIds:(i,n)=>{let c=a[i]||[];return n&&o[i]?[...c,...o[i]]:c}}},el=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?el(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(Gs);return(i=t.validators.find(({validator:n})=>n(s)))==null?void 0:i.classGroupId},Jn=/^\[(.+)\]$/,Sm=e=>{if(Jn.test(e)){let t=Jn.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Rm=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return Dm(Object.entries(e.classGroups),a).forEach(([s,i])=>{js(i,o,s,t)}),o},js=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:Zn(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(Tm(r)){js(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,i])=>{js(i,Zn(t,s),a,o)})})},Zn=(e,t)=>{let a=e;return t.split(Gs).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Tm=e=>e.isThemeGetter,Dm=(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(([i,n])=>[t+i,n])):s);return[a,r]}):e,Mm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,i)=>{a.set(s,i),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let i=a.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return r(s,i),i},set(s,i){a.has(s)?a.set(s,i):r(s,i)}}},tl="!",Am=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,i=n=>{let c=[],m=0,d=0,p;for(let h=0;h<n.length;h++){let k=n[h];if(m===0){if(k===r&&(o||n.slice(h,h+s)===t)){c.push(n.slice(d,h)),d=h+s;continue}if(k==="/"){p=h;continue}}k==="["?m++:k==="]"&&m--}let u=c.length===0?n:n.substring(d),g=u.startsWith(tl),v=g?u.substring(1):u,f=p&&p>d?p-d:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:f}};return a?n=>a({className:n,parseClassName:i}):i},Im=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},Lm=e=>({cache:Mm(e.cacheSize),parseClassName:Am(e),...km(e)}),Bm=/\s+/,Em=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],i=e.trim().split(Bm),n="";for(let c=i.length-1;c>=0;c-=1){let m=i[c],{modifiers:d,hasImportantModifier:p,baseClassName:u,maybePostfixModifierPosition:g}=a(m),v=!!g,f=o(v?u.substring(0,g):u);if(!f){if(!v){n=m+(n.length>0?" "+n:n);continue}if(f=o(u),!f){n=m+(n.length>0?" "+n:n);continue}v=!1}let h=Im(d).join(":"),k=p?h+tl:h,D=k+f;if(s.includes(D))continue;s.push(D);let E=r(f,v);for(let B=0;B<E.length;++B){let me=E[B];s.push(k+me)}n=m+(n.length>0?" "+n:n)}return n};function zm(){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 Hm(e,...t){let a,o,r,s=i;function i(c){let m=t.reduce((d,p)=>p(d),e());return a=Lm(m),o=a.cache.get,r=a.cache.set,s=n,n(c)}function n(c){let m=o(c);if(m)return m;let d=Em(c,a);return r(c,d),d}return function(){return s(zm.apply(null,arguments))}}var be=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},ol=/^\[(?:([a-Tt-]+):)?(.+)\]$/i,Fm=/^\d+\/\d+$/,Om=new Set(["px","full","screen"]),_m=/^(\d+(\.\d+)?)?(xs|sm|md|lg|Tt)$/,jm=/\d+(%|px|r?ms|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|ms|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Gm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,$m=/^(inset_)?-?((\d+)?\.?(\d+)[a-Tt]+|0)Tt-?((\d+)?\.?(\d+)[a-Tt]+|0)/,Vm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ia=e=>Ro(e)||Om.has(e)||Fm.test(e),Ta=e=>To(e,"length",Jm),Ro=e=>!!e&&!Number.isNaN(Number(e)),_s=e=>To(e,"number",Ro),Qo=e=>!!e&&Number.isInteger(Number(e)),Wm=e=>e.endsWith("%")&&Ro(e.slice(0,-1)),F=e=>ol.test(e),Da=e=>_m.test(e),Um=new Set(["length","size","percentage"]),Xm=e=>To(e,Um,rl),Ym=e=>To(e,"position",rl),qm=new Set(["image","url"]),Km=e=>To(e,qm,ep),Qm=e=>To(e,"",Zm),Jo=()=>!0,To=(e,t,a)=>{let o=ol.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Jm=e=>jm.test(e)&&!Gm.test(e),rl=()=>!1,Zm=e=>$m.test(e),ep=e=>Vm.test(e);var tp=()=>{let e=be("colors"),t=be("spacing"),a=be("blur"),o=be("brightness"),r=be("borderColor"),s=be("borderRadius"),i=be("borderSpacing"),n=be("borderWidth"),c=be("contrast"),m=be("grayscale"),d=be("hueRotate"),p=be("invert"),u=be("gap"),g=be("gradientColorStops"),v=be("gradientColorStopPositions"),f=be("inset"),h=be("margin"),k=be("opacity"),D=be("padding"),E=be("saturate"),B=be("scale"),me=be("sepia"),$=be("skew"),C=be("space"),I=be("translate"),S=()=>["auto","contain","none"],b=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto",F,t],w=()=>[F,t],ye=()=>["",ia,Ta],we=()=>["auto",Ro,F],$e=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],dt=()=>["solid","dashed","dotted","double","none"],Rt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],yt=()=>["start","end","center","between","around","evenly","stretch"],ct=()=>["","0",F],mt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ce=()=>[Ro,F];return{cacheSize:500,separator:":",theme:{colors:[Jo],spacing:[ia,Ta],blur:["none","",Da,F],brightness:ce(),borderColor:[e],borderRadius:["none","","full",Da,F],borderSpacing:w(),borderWidth:ye(),contrast:ce(),grayscale:ct(),hueRotate:ce(),invert:ct(),gap:w(),gradientColorStops:[e],gradientColorStopPositions:[Wm,Ta],inset:N(),margin:N(),opacity:ce(),padding:w(),saturate:ce(),scale:ce(),sepia:ct(),skew:ce(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",F]}],container:["container"],columns:[{columns:[Da]}],"break-after":[{"break-after":mt()}],"break-before":[{"break-before":mt()}],"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:[...$e(),F]}],overflow:[{overflow:b()}],"overflow-Tt":[{"overflow-Tt":b()}],"overflow-y":[{"overflow-y":b()}],overscroll:[{overscroll:S()}],"overscroll-Tt":[{"overscroll-Tt":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-Tt":[{"inset-Tt":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],Tt:[{Tt:["auto",Qo,F]}],basis:[{basis:N()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",F]}],grow:[{grow:ct()}],shrink:[{shrink:ct()}],order:[{order:["first","last","none",Qo,F]}],"grid-cols":[{"grid-cols":[Jo]}],"col-start-end":[{col:["auto",{span:["full",Qo,F]},F]}],"col-start":[{"col-start":we()}],"col-end":[{"col-end":we()}],"grid-rows":[{"grid-rows":[Jo]}],"row-start-end":[{row:["auto",{span:[Qo,F]},F]}],"row-start":[{"row-start":we()}],"row-end":[{"row-end":we()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",F]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",F]}],gap:[{gap:[u]}],"gap-Tt":[{"gap-Tt":[u]}],"gap-y":[{"gap-y":[u]}],"justify-content":[{justify:["normal",...yt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...yt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...yt(),"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]}],pe:[{pe:[D]}],pt:[{pt:[D]}],pr:[{pr:[D]}],pb:[{pb:[D]}],pl:[{pl:[D]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-Tt":[{"space-Tt":[C]}],"space-Tt-reverse":["space-Tt-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",F,t]}],"min-w":[{"min-w":[F,t,"min","max","fit"]}],"max-w":[{"max-w":[F,t,"none","full","min","max","fit","prose",{screen:[Da]},Da]}],h:[{h:[F,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[F,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[F,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[F,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Da,Ta]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",_s]}],"font-family":[{font:[Jo]}],"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",F]}],"line-clamp":[{"line-clamp":["none",Ro,_s]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ia,F]}],"list-image":[{"list-image":["none",F]}],"list-style-type":[{list:["none","disc","decimal",F]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","Il-underline"],"text-decoration-style":[{decoration:[...dt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ia,Ta]}],"underline-offset":[{"underline-offset":["auto",ia,F]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",F]}],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",F]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...$e(),Ym]}],"bg-repeat":[{bg:["Il-repeat",{repeat:["","Tt","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Xm]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Km]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ll":[{"rounded-ll":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-Tt":[{"rounded-Tt":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[n]}],"border-w-Tt":[{"border-Tt":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...dt(),"hidden"]}],"divide-Tt":[{"divide-Tt":[n]}],"divide-Tt-reverse":["divide-Tt-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:dt()}],"border-color":[{border:[r]}],"border-color-Tt":[{"border-Tt":[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:["",...dt()]}],"outline-offset":[{"outline-offset":[ia,F]}],"outline-w":[{outline:[ia,Ta]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ye()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[ia,Ta]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Da,Qm]}],"shadow-color":[{shadow:[Jo]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...Rt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Rt()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Da,F]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[E]}],sepia:[{sepia:[me]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-Tt":[{"border-spacing-Tt":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",F]}],duration:[{duration:ce()}],ease:[{ease:["linear","in","out","in-out",F]}],delay:[{delay:ce()}],animate:[{animate:["none","spin","ping","pulse","bounce",F]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[B]}],"scale-Tt":[{"scale-Tt":[B]}],"scale-y":[{"scale-y":[B]}],rotate:[{rotate:[Qo,F]}],"translate-Tt":[{"translate-Tt":[I]}],"translate-y":[{"translate-y":[I]}],"skew-Tt":[{"skew-Tt":[$]}],"skew-y":[{"skew-y":[$]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",F]}],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","Il-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","Tt-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",F]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","Tt",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","Tt","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-Tt":[{"touch-pan":["Tt","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",F]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ia,Ta,_s]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-Tt","overflow-y"],overscroll:["overscroll-Tt","overscroll-y"],inset:["inset-Tt","inset-y","start","end","top","right","bottom","left"],"inset-Tt":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-Tt","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ll","rounded-se","rounded-Tt","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ll","rounded-es"],"rounded-e":["rounded-se","rounded-Tt"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-Tt","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-Tt":["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-Tt":["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-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-Tt","touch-y","touch-pz"],"touch-Tt":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var sl=Hm(tp);function l(...e){return sl((0,il.clsx)(e))}function Do(e){let t=0,a=(s,i)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${i}`,o=e.layout.flatMap(s=>{let i=[];return"title"in s&&s.title&&i.push({text:s.title,id:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(n=>{var c,m,d,p,u;if(n.title&&i.push({text:n.title,id:a(n.title,t++),tag:"h2"}),(m=(c=n.richText)==null?void 0:c.root)!=null&&m.children&&((p=(d=n.richText)==null?void 0:d.root)==null?void 0:p.children.length)===1){let g=n.richText.root.children.filter(v=>v!==void 0&&v.type==="heading");for(let v of g)v.children[0]&&i.push({text:(u=v.children[0].text)!=null?u:"",id:a(v.children[0].text,t++),tag:v.tag||"h2"})}}),i}),r=ap(e.layout);return{tableOfContents:o,contentWithIds:r}}function ap(e){let t=(o,r)=>`${o.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${r}`,a=0;return e.map(o=>(o.title&&(o.id=t(o.title,a++)),o.columns&&(o.columns=o.columns.map(r=>(r.title&&(r.id=t(r.title,a++)),r.richText&&(r.richText.root.children=r.richText.root.children.filter(s=>s!==void 0).filter(s=>s.children!==void 0&&s.children.length>0).map(s=>(s.type==="heading"&&s.children[0].text&&(s.id=t(s.children[0].text,a++)),s))),r))),o))}var ll=require("react"),dl=y(nl());function op(){return(0,ll.useEffect)(()=>{dl.default.init({duration:1e3,offset:0,once:!0})},[]),null}var Tt=require("react/jsx-runtime"),Vs=Mo.forwardRef(({...e},t)=>(0,Tt.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));Vs.displayName="Breadcrumb";var Ws=Mo.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("ol",{ref:a,className:l("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Ws.displayName="BreadcrumbList";var Us=Mo.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("li",{ref:a,className:l("inline-flex items-center gap-1.5",e),...t}));Us.displayName="BreadcrumbItem";var Xs=Mo.forwardRef(({asChild:e,className:t,...a},o)=>(0,Tt.jsx)(e?cl.Slot:"a",{ref:o,className:l("transition-colors hover:text-foreground",t),...a}));Xs.displayName="BreadcrumbLink";var Ys=Mo.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:l("font-normal text-foreground",e),...t}));Ys.displayName="BreadcrumbPage";var qs=({children:e,className:t,...a})=>(0,Tt.jsx)("li",{role:"presentation","aria-hidden":"true",className:l("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e!=null?e:(0,Tt.jsx)(Lr.ChevronRightIcon,{})});qs.displayName="BreadcrumbSeparator";var Ks=({className:e,...t})=>(0,Tt.jsxs)("span",{role:"presentation","aria-hidden":"true",className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,Tt.jsx)(Lr.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,Tt.jsx)("span",{className:"sr-only",children:"More"})]});Ks.displayName="BreadcrumbElipssis";var Ao=y(require("@radix-ui/react-collapsible")),na=Ao.Root,Ma=Ao.CollapsibleTrigger,Aa=Ao.CollapsibleContent;var la=y(require("react")),G=y(require("@radix-ui/react-dropdown-menu"));var ml=G.Root,pl=G.Trigger,ul=G.Group,fl=G.Portal,gl=G.Sub,bl=G.RadioGroup,Qs=la.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Tt.jsxs)(G.SubTrigger,{ref:r,className:l("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,(0,Tt.jsx)(Lr.ChevronRightIcon,{className:"ml-auto"})]}));Qs.displayName=G.SubTrigger.displayName;var Js=la.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(G.SubContent,{ref:a,className:l("Tt-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}));Js.displayName=G.SubContent.displayName;var Zs=la.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Tt.jsx)(G.Portal,{children:(0,Tt.jsx)(G.Content,{ref:o,sideOffset:t,className:l("Tt-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})}));Zs.displayName=G.Content.displayName;var ei=la.forwardRef(({className:e,inset:t,...a},o)=>(0,Tt.jsx)(G.Item,{ref:o,className:l("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));ei.displayName=G.Item.displayName;var ti=la.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Tt.jsxs)(G.CheckboxItem,{ref:r,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[(0,Tt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Tt.jsx)(G.ItemIndicator,{children:(0,Tt.jsx)(Lr.CheckIcon,{className:"h-4 w-4"})})}),t]}));ti.displayName=G.CheckboxItem.displayName;var ai=la.forwardRef(({className:e,children:t,...a},o)=>(0,Tt.jsxs)(G.RadioItem,{ref:o,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,Tt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Tt.jsx)(G.ItemIndicator,{children:(0,Tt.jsx)(Lr.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));ai.displayName=G.RadioItem.displayName;var oi=la.forwardRef(({className:e,inset:t,...a},o)=>(0,Tt.jsx)(G.Label,{ref:o,className:l("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));oi.displayName=G.Label.displayName;var ri=la.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(G.Separator,{ref:a,className:l("-mx-1 my-1 h-px bg-muted",e),...t}));ri.displayName=G.Separator.displayName;var si=({className:e,...t})=>(0,Tt.jsx)("span",{className:l("ml-auto text-xs tracking-widest opacity-60",e),...t});si.displayName="DropdownMenuShortcut";var vl=y(require("react"));var ut=vl.forwardRef(({className:e,type:t,...a},o)=>(0,Tt.jsx)("input",{type:t,className:l("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));ut.displayName="Input";var yl=y(require("react")),ii=y(require("@radix-ui/react-separator"));var er=yl.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,Tt.jsx)(ii.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}));er.displayName=ii.Root.displayName;var tr=y(require("react")),Pe=y(require("@radix-ui/react-dialog")),Nl=require("class-variance-authority");var Br=Pe.Root,Cl=Pe.Trigger,Pl=Pe.Close,ni=Pe.Portal,Er=tr.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(Pe.Overlay,{className:l("fixed inset-0 Tt-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}));Er.displayName=Pe.Overlay.displayName;var rp=(0,Nl.cva)("fixed Tt-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-Tt-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-Tt-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 sm:max-w-sm",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 sm:max-w-sm"}},defaultVariants:{side:"right"}}),ar=tr.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,Tt.jsxs)(ni,{children:[(0,Tt.jsx)(Er,{}),(0,Tt.jsxs)(Pe.Content,{ref:r,className:l(rp({side:e}),t),...o,children:[(0,Tt.jsxs)(Pe.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,Tt.jsx)(Lr.Cross2Icon,{className:"h-4 w-4"}),(0,Tt.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));ar.displayName=Pe.Content.displayName;var li=({className:e,...t})=>(0,Tt.jsx)("div",{className:l("flex flex-col space-y-2 text-center sm:text-left",e),...t});li.displayName="SheetHeader";var di=({className:e,...t})=>(0,Tt.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Tt-2",e),...t});di.displayName="SheetFooter";var ci=tr.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(Pe.Title,{ref:a,className:l("text-lg font-semibold text-foreground",e),...t}));ci.displayName=Pe.Title.displayName;var mi=tr.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(Pe.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));mi.displayName=Pe.Description.displayName;var V=y(require("react")),Il=require("lucide-react");var Hr=(e=768)=>{let[t,a]=(0,ll.useState)(!1);return(0,ll.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var Rl=y(require("react")),Ia=(0,Nl.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),L=Rl.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,Tt.jsx)(e?cl.Slot:"button",{className:l(Ia({className:t,size:a,variant:o})),ref:s,...r}));L.displayName="Button";function ke({className:e,...t}){return(0,Tt.jsx)("div",{className:l("animate-pulse rounded-md bg-primary/10",e),...t})}var Ml=y(require("react")),_t=y(require("@radix-ui/react-tooltip"));var Fr=_t.Provider,Or=_t.Root,_r=_t.Trigger,or=Ml.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Tt.jsx)(_t.Portal,{children:(0,Tt.jsx)(_t.Content,{ref:o,sideOffset:t,className:l("Tt-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})}));or.displayName=_t.Content.displayName;var sp="sidebar:state",ip=60*60*24*7,np="16rem",lp="18rem",dp="3rem",cp="b",Ll=V.createContext(null);function Bo(){let e=V.useContext(Ll);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var ui=V.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...i},n)=>{let c=Hr(),[m,d]=V.useState(!1),[p,u]=V.useState(e),g=t!=null?t:p,v=V.useCallback(D=>{if(a)return a==null?void 0:a(typeof D=="function"?D(g):D);u(D),document.cookie=`${sp}=${g}; path=/; max-age=${ip}`},[a,g]),f=V.useCallback(()=>c?d(D=>!D):v(D=>!D),[c,v,d]);V.useEffect(()=>{let D=E=>{E.key===cp&&(E.metaKey||E.ctrlKey)&&(E.preventDefault(),f())};return window.addEventListener("keydown",D),()=>window.removeEventListener("keydown",D)},[f]);let h=g?"expanded":"collapsed",k=V.useMemo(()=>({state:h,open:g,setOpen:v,isMobile:c,openMobile:m,setOpenMobile:d,toggleSidebar:f}),[h,g,v,c,m,d,f]);return(0,Tt.jsx)(Ll.Provider,{value:k,children:(0,Tt.jsx)(Fr,{delayDuration:0,children:(0,Tt.jsx)("div",{style:{"--sidebar-width":np,"--sidebar-width-icon":dp,...r},className:l("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:n,...i,children:s})})})});ui.displayName="SidebarProvider";var to=V.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},i)=>{let{isMobile:n,state:c,openMobile:m,setOpenMobile:d}=Bo();return a==="none"?(0,Tt.jsx)("div",{className:l("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:i,...s,children:r}):n?(0,Tt.jsx)(Br,{open:m,onOpenChange:d,...s,children:(0,Tt.jsx)(ar,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":lp},side:e,children:(0,Tt.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,Tt.jsxs)("div",{ref:i,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,Tt.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)Tt+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,Tt.jsx)("div",{className:l("duration-200 fixed top-14 bottom-0 Tt-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)Tt+_theme(spacing.4)Tt+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,Tt.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})})]})});to.displayName="Sidebar";var fi=V.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=Bo();return(0,Tt.jsxs)(L,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:l("h-7 w-7",e),onClick:s=>{t==null||t(s),r()},...a,children:[(0,Tt.jsx)(Il.PanelLeft,{}),(0,Tt.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});fi.displayName="SidebarTrigger";var gi=V.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=Bo();return(0,Tt.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:l("absolute inset-y-0 Tt-20 hidden w-4 -translate-Tt-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]Tt&]:cursor-w-resize [[data-side=right]Tt&]:cursor-e-resize","[[data-side=left][data-state=collapsed]Tt&]:cursor-e-resize [[data-side=right][data-state=collapsed]Tt&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-Tt-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]Tt&]:-right-2","[[data-side=right][data-collapsible=offcanvas]Tt&]:-left-2",e),...t})});gi.displayName="SidebarRail";var bi=V.forwardRef(({className:e,...t},a)=>(0,Tt.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-Tt md:peer-data-[variant=inset]:shadow",e),...t}));bi.displayName="SidebarInset";var vi=V.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(ut,{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}));vi.displayName="SidebarInput";var ao=V.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("div",{ref:a,"data-sidebar":"header",className:l("flex flex-col gap-2 p-2",e),...t}));ao.displayName="SidebarHeader";var oo=V.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("div",{ref:a,"data-sidebar":"footer",className:l("flex flex-col gap-2 p-2",e),...t}));oo.displayName="SidebarFooter";var rr=V.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(er,{ref:a,"data-sidebar":"separator",className:l("mx-2 w-auto bg-sidebar-border",e),...t}));rr.displayName="SidebarSeparator";var La=V.forwardRef(({className:e,...t},a)=>(0,Tt.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}));La.displayName="SidebarContent";var Dt=V.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("div",{ref:a,"data-sidebar":"group",className:l("relative flex w-full min-w-0 flex-col p-2",e),...t}));Dt.displayName="SidebarGroup";var da=V.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Tt.jsx)(t?cl.Slot:"div",{ref:o,"data-sidebar":"group-label",className:l("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));da.displayName="SidebarGroupLabel";var hi=V.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Tt.jsx)(t?cl.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}));hi.displayName="SidebarGroupAction";var jt=V.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("div",{ref:a,"data-sidebar":"group-content",className:l("w-full text-sm",e),...t}));jt.displayName="SidebarGroupContent";var ft=V.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("ul",{ref:a,"data-sidebar":"menu",className:l("flex w-full min-w-0 flex-col gap-1",e),...t}));ft.displayName="SidebarMenu";var Ye=V.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:l("group/menu-item relative",e),...t}));Ye.displayName="SidebarMenuItem";var mp=(0,Nl.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Mt=V.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...i},n)=>{let c=e?cl.Slot:"button",{isMobile:m,state:d}=Bo(),p=(0,Tt.jsx)(c,{ref:n,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:l(mp({variant:a,size:o}),s),...i});return r?(typeof r=="string"&&(r={children:r}),(0,Tt.jsxs)(Or,{children:[(0,Tt.jsx)(_r,{asChild:!0,children:p}),(0,Tt.jsx)(or,{side:"right",align:"center",hidden:d!=="collapsed"||m,...r})]})):p});Mt.displayName="SidebarMenuButton";var sr=V.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,Tt.jsx)(t?cl.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:l("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...o}));sr.displayName="SidebarMenuAction";var yi=V.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:l("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));yi.displayName="SidebarMenuBadge";var xi=V.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=V.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,Tt.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,Tt.jsx)(ke,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,Tt.jsx)(ke,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});xi.displayName="SidebarMenuSkeleton";var Ba=V.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:l("mx-3.5 flex min-w-0 translate-Tt-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));Ba.displayName="SidebarMenuSub";var Ea=V.forwardRef(({...e},t)=>(0,Tt.jsx)("li",{ref:t,...e}));Ea.displayName="SidebarMenuSubItem";var za=V.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...r},s)=>(0,Tt.jsx)(e?cl.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:l("flex h-7 min-w-0 -translate-Tt-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...r}));za.displayName="SidebarMenuSubButton";var $r=y(require("react")),pp=1,up=1e6;var wi=0;function fp(){return wi=(wi+1)%Number.MAX_SAFE_INTEGER,wi.toString()}var Ni=new Map,Bl=e=>{if(Ni.has(e))return;let t=setTimeout(()=>{Ni.delete(e),ir({type:"REMOVE_TOAST",toastId:e})},up);Ni.set(e,t)},El=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,pp)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?Bl(a):e.toasts.forEach(o=>{Bl(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===a||a===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)}}},jr=[],Gr={toasts:[]};function ir(e){Gr=El(Gr,e),jr.forEach(t=>{t(Gr)})}function zl({...e}){let t=fp(),a=r=>ir({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>ir({type:"DISMISS_TOAST",toastId:t});return ir({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function Vr(){let[e,t]=$r.useState(Gr);return $r.useEffect(()=>(jr.push(t),()=>{let a=jr.indexOf(t);a>-1&&jr.splice(a,1)}),[e]),{...e,toast:zl,dismiss:a=>ir({type:"DISMISS_TOAST",toastId:a})}}var ro=y(require("react")),Ie=y(require("@radix-ui/react-toast"));var Wr=Ie.Provider,nr=ro.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(Ie.Viewport,{ref:a,className:l("fixed top-0 Tt-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));nr.displayName=Ie.Viewport.displayName;var gp=(0,Nl.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-Tt-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-Tt-0 data-[swipe=end]:translate-Tt-[var(--radix-toast-swipe-end-Tt)] data-[swipe=move]:translate-Tt-[var(--radix-toast-swipe-move-Tt)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),lr=ro.forwardRef(({className:e,variant:t,...a},o)=>(0,Tt.jsx)(Ie.Root,{ref:o,className:l(gp({variant:t}),e),...a}));lr.displayName=Ie.Root.displayName;var Ci=ro.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(Ie.Action,{ref:a,className:l("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Ci.displayName=Ie.Action.displayName;var dr=ro.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(Ie.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,Tt.jsx)(Il.X,{className:"h-4 w-4"})}));dr.displayName=Ie.Close.displayName;var cr=ro.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(Ie.Title,{ref:a,className:l("text-sm font-semibold [&+div]:text-xs",e),...t}));cr.displayName=Ie.Title.displayName;var mr=ro.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(Ie.Description,{ref:a,className:l("text-sm opacity-90",e),...t}));mr.displayName=Ie.Description.displayName;function Ol(){let{toasts:e}=Vr();return(0,Tt.jsxs)(Wr,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,Tt.jsxs)(lr,{...s,children:[(0,Tt.jsxs)("div",{className:"grid gap-1",children:[a&&(0,Tt.jsx)(cr,{children:a}),o&&(0,Tt.jsx)(mr,{children:o})]}),r,(0,Tt.jsx)(dr,{})]},t)}),(0,Tt.jsx)(nr,{})]})}var _l=y(require("react")),Pi=y(require("@radix-ui/react-toggle"));var pr=(0,Nl.cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),ki=_l.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,Tt.jsx)(Pi.Root,{ref:r,className:l(pr({variant:t,size:a,className:e})),...o}));ki.displayName=Pi.Root.displayName;var so=y(require("react")),Eo=y(require("@radix-ui/react-toggle-group"));var $l=so.createContext({size:"default",variant:"default"}),Si=so.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,Tt.jsx)(Eo.Root,{ref:s,className:l("flex items-center justify-center gap-1",e),...r,children:(0,Tt.jsx)($l.Provider,{value:{variant:t,size:a},children:o})}));Si.displayName=Eo.Root.displayName;var Ri=so.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let i=so.useContext($l);return(0,Tt.jsx)(Eo.Item,{ref:s,className:l(pr({variant:i.variant||a,size:i.size||o}),e),...r,children:t})});Ri.displayName=Eo.Item.displayName;var Ti=y(require("react")),At=y(require("@radix-ui/react-scroll-area"));var Oa=Ti.forwardRef(({className:e,children:t,...a},o)=>(0,Tt.jsxs)(At.Root,{ref:o,className:l("relative overflow-hidden",e),...a,children:[(0,Tt.jsx)(At.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Tt.jsx)(Xr,{}),(0,Tt.jsx)(At.Corner,{})]}));Oa.displayName=At.Root.displayName;var Xr=Ti.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,Tt.jsx)(At.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,Tt.jsx)(At.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Xr.displayName=At.ScrollAreaScrollbar.displayName;var Vl=y(require("react")),Gt=y(require("@radix-ui/react-popover"));var ur=Gt.Root,fr=Gt.Trigger,Wl=Gt.Anchor,zo=Vl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Tt.jsx)(Gt.Portal,{children:(0,Tt.jsx)(Gt.Content,{ref:r,align:t,sideOffset:a,className:l("Tt-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})}));zo.displayName=Gt.Content.displayName;var Ul=y(require("react")),Mi=y(require("@radix-ui/react-label"));var bp=(0,Nl.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ve=Ul.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(Mi.Root,{ref:a,className:l(bp(),e),...t}));ve.displayName=Mi.Root.displayName;var ql=y(require("react")),io=y(require("@radix-ui/react-hover-card"));var Kl=io.Root,Ql=io.Trigger,Ai=ql.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Tt.jsx)(io.Content,{ref:r,align:t,sideOffset:a,className:l("Tt-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}));Ai.displayName=io.Content.displayName;var gr=y(require("react")),Se=y(require("@radix-ui/react-dialog"));var It=Se.Root,Yr=Se.Trigger,Ii=Se.Portal,qr=Se.Close,Kr=gr.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(Se.Overlay,{ref:a,className:l("fixed inset-0 Tt-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Kr.displayName=Se.Overlay.displayName;var Ct=gr.forwardRef(({className:e,children:t,...a},o)=>(0,Tt.jsxs)(Ii,{children:[(0,Tt.jsx)(Kr,{}),(0,Tt.jsxs)(Se.Content,{ref:o,className:l("fixed left-[50%] top-[50%] Tt-50 grid w-full max-w-lg translate-Tt-[-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%] sm:rounded-lg",e),...a,children:[t,(0,Tt.jsxs)(Se.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Tt.jsx)(Il.X,{className:"h-4 w-4"}),(0,Tt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Ct.displayName=Se.Content.displayName;var $t=({className:e,...t})=>(0,Tt.jsx)("div",{className:l("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});$t.displayName="DialogHeader";var Li=({className:e,...t})=>(0,Tt.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Tt-2",e),...t});Li.displayName="DialogFooter";var Vt=gr.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(Se.Title,{ref:a,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));Vt.displayName=Se.Title.displayName;var Bi=gr.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(Se.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));Bi.displayName=Se.Description.displayName;var _a=y(require("react")),at=require("cmdk");var Qr=_a.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(at.Command,{ref:a,className:l("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Qr.displayName=at.Command.displayName;var td=({children:e,...t})=>(0,Tt.jsx)(It,{...t,children:(0,Tt.jsx)(Ct,{className:"overflow-hidden p-0",children:(0,Tt.jsx)(Qr,{className:"[&Tt[cmdk-group-heading]]:px-2 [&Tt[cmdk-group-heading]]:font-medium [&Tt[cmdk-group-heading]]:text-muted-foreground [&Tt[cmdk-group]:not([hidden])Tt~[cmdk-group]]:pt-0 [&Tt[cmdk-group]]:px-2 [&Tt[cmdk-input-wrapper]_svg]:h-5 [&Tt[cmdk-input-wrapper]_svg]:w-5 [&Tt[cmdk-input]]:h-12 [&Tt[cmdk-item]]:px-2 [&Tt[cmdk-item]]:py-3 [&Tt[cmdk-item]_svg]:h-5 [&Tt[cmdk-item]_svg]:w-5",children:e})})}),Ei=_a.forwardRef(({className:e,...t},a)=>(0,Tt.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,Tt.jsx)(Il.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,Tt.jsx)(at.Command.Input,{ref:a,className:l("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Ei.displayName=at.Command.Input.displayName;var zi=_a.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(at.Command.List,{ref:a,className:l("max-h-[300px] overflow-y-auto overflow-Tt-hidden",e),...t}));zi.displayName=at.Command.List.displayName;var Hi=_a.forwardRef((e,t)=>(0,Tt.jsx)(at.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Hi.displayName=at.Command.Empty.displayName;var Fi=_a.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(at.Command.Group,{ref:a,className:l("overflow-hidden p-1 text-foreground [&Tt[cmdk-group-heading]]:px-2 [&Tt[cmdk-group-heading]]:py-1.5 [&Tt[cmdk-group-heading]]:text-xs [&Tt[cmdk-group-heading]]:font-medium [&Tt[cmdk-group-heading]]:text-muted-foreground",e),...t}));Fi.displayName=at.Command.Group.displayName;var Oi=_a.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(at.Command.Separator,{ref:a,className:l("-mx-1 h-px bg-border",e),...t}));Oi.displayName=at.Command.Separator.displayName;var _i=_a.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(at.Command.Item,{ref:a,className:l("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));_i.displayName=at.Command.Item.displayName;var ji=({className:e,...t})=>(0,Tt.jsx)("span",{className:l("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});ji.displayName="CommandShortcut";var Jr=y(require("react"));var vp=(0,Nl.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Gi=Jr.forwardRef(({className:e,variant:t,...a},o)=>(0,Tt.jsx)("div",{ref:o,role:"alert",className:l(vp({variant:t}),e),...a}));Gi.displayName="Alert";var $i=Jr.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("h5",{ref:a,className:l("mb-1 font-medium leading-none tracking-tight",e),...t}));$i.displayName="AlertTitle";var Vi=Jr.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("div",{ref:a,className:l("text-sm [&_p]:leading-relaxed",e),...t}));Vi.displayName="AlertDescription";var es=y(require("react")),ma=y(require("@radix-ui/react-avatar"));var pa=es.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(ma.Root,{ref:a,className:l("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));pa.displayName=ma.Root.displayName;var ua=es.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(ma.Image,{ref:a,className:l("aspect-square h-full w-full",e),...t}));ua.displayName=ma.Image.displayName;var fa=es.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(ma.Fallback,{ref:a,className:l("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));fa.displayName=ma.Fallback.displayName;var Wi=(0,Nl.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 Lt({className:e,variant:t,...a}){return(0,Tt.jsx)("div",{className:l(Wi({variant:t}),e),...a})}var br=y(require("@radix-ui/react-checkbox")),id=y(require("react")),Wt=id.forwardRef(({className:e,...t},a)=>(0,Tt.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,Tt.jsx)(br.Indicator,{className:l("flex items-center justify-center text-current"),children:(0,Tt.jsx)(Il.Check,{className:"h-4 w-4"})})}));Wt.displayName=br.Root.displayName;var X=y(require("@radix-ui/react-select")),ja=y(require("react")),lo=X.Root,hp=X.Group,co=X.Value,Ga=ja.forwardRef(({children:e,className:t,...a},o)=>(0,Tt.jsxs)(X.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,Tt.jsx)(X.Icon,{asChild:!0,children:(0,Tt.jsx)(Il.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Ga.displayName=X.Trigger.displayName;var Ui=ja.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(X.ScrollUpButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Tt.jsx)(Il.ChevronUp,{className:"h-4 w-4"})}));Ui.displayName=X.ScrollUpButton.displayName;var Xi=ja.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(X.ScrollDownButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Tt.jsx)(Il.ChevronDown,{className:"h-4 w-4"})}));Xi.displayName=X.ScrollDownButton.displayName;var $a=ja.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,Tt.jsx)(X.Portal,{children:(0,Tt.jsxs)(X.Content,{className:l("relative Tt-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-Tt-1 data-[side=right]:translate-Tt-1 data-[side=top]:-translate-y-1",t),position:a,ref:r,...o,children:[(0,Tt.jsx)(Ui,{}),(0,Tt.jsx)(X.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,Tt.jsx)(Xi,{})]})}));$a.displayName=X.Content.displayName;var nd=ja.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(X.Label,{className:l("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));nd.displayName=X.Label.displayName;var Va=ja.forwardRef(({children:e,className:t,...a},o)=>(0,Tt.jsxs)(X.Item,{className:l("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[(0,Tt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Tt.jsx)(X.ItemIndicator,{children:(0,Tt.jsx)(Il.Check,{className:"h-4 w-4"})})}),(0,Tt.jsx)(X.ItemText,{children:e})]}));Va.displayName=X.Item.displayName;var ld=ja.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(X.Separator,{className:l("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));ld.displayName=X.Separator.displayName;var dd=y(require("react")),Wa=dd.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("textarea",{className:l("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));Wa.displayName="Textarea";var md=require("react-day-picker");function vr({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,Tt.jsx)(md.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:l("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-Tt-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-Tt-1 flex items-center",nav_button:l(Ia({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 mt-2",cell:l("relative p-0 text-center text-sm focus-within:relative focus-within:Tt-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(Ia({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})}vr.displayName="Calendar";var Yi=({className:e,content:t,style:a})=>(0,Tt.jsx)("div",{className:l("mx-auto my-8 w-full",e),children:(0,Tt.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,Tt.jsx)(Z,{content:t,enableGutter:!1,enableProse:!1})})});var qi=y(require("next/link")),Zt=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:i,reference:n,size:c,url:m}=e,d=t==="reference"&&typeof(n==null?void 0:n.value)=="object"&&n.value.slug?`${(n==null?void 0:n.relationTo)!=="pages"?`/${n==null?void 0:n.relationTo}`:""}/${n.value.slug}`:m;if(!d)return null;let p=a==="link"?"clear":c,u=i?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,Tt.jsxs)(qi.default,{className:l(r),href:d||m||"",...u,children:[s&&s,o&&o]}):(0,Tt.jsx)(L,{asChild:!0,className:r,size:p,variant:a,children:(0,Tt.jsxs)(qi.default,{className:l(r),href:d||m||"",...u,children:[s&&s,o&&o]})})};var mo=({links:e,richText:t})=>(0,Tt.jsx)("div",{className:"container",children:(0,Tt.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,Tt.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,Tt.jsx)(Z,{className:"mb-0",content:t,enableGutter:!1})}),(0,Tt.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,Tt.jsx)(Zt,{size:"lg",...a},o))})]})});var rs=require("prism-react-renderer");function Ki({code:e}){let[t,a]=(0,ll.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,Tt.jsx)("div",{className:"flex justify-end align-middle",children:(0,Tt.jsxs)(L,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,Tt.jsx)("p",{children:t}),(0,Tt.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,Tt.jsx)(Il.ClipboardCopy,{})})]})})}var gd=({code:e,language:t=""})=>e?(0,Tt.jsx)(rs.Highlight,{code:e,language:t,theme:rs.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,Tt.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-Tt-auto",children:[r.map((s,i)=>(0,Tt.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,Tt.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:i+1}),(0,Tt.jsx)("span",{className:"table-cell pl-4",children:s.map((n,c)=>(0,Tt.jsx)("span",{...o({token:n})},c))})]},i)),(0,Tt.jsx)(Ki,{code:e})]})}):null;var Ji=({className:e,code:t,language:a})=>(0,Tt.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,Tt.jsx)(gd,{code:t,language:a})});var vd=y(require("next/image")),yp={"3xl":1920,"2xl":1536,Tt:1280,lg:1024,md:768,sm:640},bd="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=",hd=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:i,src:n,loading:c}=e,m,d,p=t,u=n||"";if(!u&&s&&typeof s=="object"){let{alt:f,filename:h,height:k,url:D,width:E}=s;if(k&&k>500){let B=500/k;m=E*B,d=k*B}else m=E,d=k;p=f||"",u=D||bd}let g=c||"lazy",v=i||Object.entries(yp).map(([,f])=>`(max-width: ${f}px) ${f*2}w`).join(", ");return(0,Tt.jsx)("picture",{children:(0,Tt.jsx)(vd.default,{alt:p||"",className:l(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:bd,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:v,src:u,width:a?void 0:m})})};var yd=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var xd=()=>{if(yd){let e=window.location.protocol,t=window.location.hostname,a=window.location.port;return`${e}//${t}${a?`:${a}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var wd=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,ll.useRef)(null);if((0,ll.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,Tt.jsx)("video",{autoPlay:!0,className:l(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,Tt.jsx)("source",{src:`${xd()}/media/${s}`})})}return null};var Ut=e=>{var i;let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&((i=o==null?void 0:o.mimeType)==null?void 0:i.includes("video"));return(0,Tt.jsx)(a||ll.Fragment,{...a!==null?{className:t}:{},children:r?(0,Tt.jsx)(wd,{...e}):(0,Tt.jsx)(hd,{...e})})};var ba=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Tt.jsx)("div",{className:l("h-full ",{container:a},t),children:(0,Tt.jsx)(Ut,{imgClassName:l("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var on=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Tt.jsx)("div",{className:l("",{container:a},t),children:(0,Tt.jsx)(Ut,{imgClassName:l("rounded-[0.8rem]",o),resource:r,src:s})})};var uo=({title:e,description:t,features:a,id:o,nested:r=!1})=>(0,Tt.jsxs)("section",{className:l(!r&&"container","w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,Tt.jsx)("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl text-primary",id:o||"",children:e}),t&&typeof t=="string"&&(0,Tt.jsx)("p",{className:"mb-5 text-Tt tracking-tight md:text-Tt text-foreground",children:t}),t&&typeof t=="object"&&(0,Tt.jsx)("p",{className:"mb-5 text-Tt tracking-tight md:text-Tt text-foreground",children:(0,Tt.jsx)(Z,{content:t,enableGutter:!1})}),(0,Tt.jsx)("div",{className:`grid gap-8 mt-10 md:grid-cols-${a?a.length:1}`,children:a&&a.map((s,i)=>{var c,m,d,p,u;let n=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,iconName:s.icon.icon}};return(0,Tt.jsx)(rn,{variant:((c=s.settings)==null?void 0:c.card)==="default"?"light":((m=s.settings)==null?void 0:m.card)||"outline",icon:n()||void 0,iconSize:((d=s.settings)==null?void 0:d.iconSize)||"large",width:"auto",order:i,heading:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,buttonText:(p=s.link)!=null&&p.url?"Find out more":void 0,buttonHref:((u=s.link)==null?void 0:u.url)||void 0},i)})})]});var ns=y(require("react"));function yr({nodes:e}){return(0,Tt.jsx)(ns.Fragment,{children:e==null?void 0:e.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,Tt.jsx)(ns.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,Tt.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,Tt.jsx)("ms",{children:s},a)),t.format&4&&(s=(0,Tt.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,Tt.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,Tt.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,Tt.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,Tt.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,Tt.jsx)("table",{children:(0,Tt.jsx)("tbody",{children:t.children.map((s,i)=>(0,Tt.jsx)("tr",{children:s.children.map((n,c)=>(0,Tt.jsx)("td",{children:yr({nodes:n.children})},c))},i))})},a);let o=s=>{if(s.children==null)return null;if((s==null?void 0:s.type)==="list"&&(s==null?void 0:s.listType)==="check")for(let i of s.children)"checked"in i&&(i!=null&&i.checked||(i.checked=!1));return yr({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,i=s==null?void 0:s.blockType;if(!s||!i)return null;switch(i){case"cta":return(0,Tt.jsx)(mo,{...s},a);case"mediaBlock":return(0,Tt.jsx)(ba,{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,Tt.jsx)(on,{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,Tt.jsx)(Yi,{className:"col-start-2 mb-4",...s},a);case"code":return(0,Tt.jsx)(Ji,{className:"col-start-2",...s},a);case"features":return(0,Tt.jsx)(uo,{...s,nested:!0},a);case"reusableContentBlock":yr({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,Tt.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,Tt.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t==null?void 0:t.tag;return(0,Tt.jsx)(s,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:r},a)}case"list":{let s=t==null?void 0:t.tag;return(0,Tt.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,Tt.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:r},a):(0,Tt.jsx)("li",{value:t==null?void 0:t.value,children:r},a);case"quote":return(0,Tt.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,Tt.jsx)(Zt,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}case"autolink":{let s=t.fields;return(0,Tt.jsx)(Zt,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var Z=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>{var r;return t?(0,Tt.jsx)("div",{className:l({"container ":a,"max-w-none":!a,"mx-auto prose dark:prose-invert ":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&yr({nodes:(r=t==null?void 0:t.root)==null?void 0:r.children})}):null};var qe=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,i=o!=null?o:"",n=r+s+" fa-"+a+" "+i;return(0,Tt.jsx)("i",{className:n})};var Sd=y(require("next/image"));function kd(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function ls({image:e,icon:t,title:a,subtitle:o,content:r,statistic:s,settings:i,link:n,className:c}){var p,u;let m={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 console.log("image",e),(0,Tt.jsxs)("div",{className:l("min-w-56 max-w-Tt flex flex-col group",e?"p-0 md:p-0":"p-8 md:p-8",i&&!e&&m[(i==null?void 0:i.card)==="default"?"solid":i==null?void 0:i.card],e&&"bg-foreground",i&&(i==null?void 0:i.card)==="outline"?"text-gray-900":"text-white",d[(p=i==null?void 0:i.width)!=null?p:"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",i&&`intersect:animate-delay-${i.order||1}00`,c),children:[e&&(0,Tt.jsx)("div",{className:"relative h-64 w-full mb-0",children:(0,Tt.jsx)(Sd.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,Tt.jsxs)("div",{className:l(e?"p-4 pb-8 md:px-12":"p-0 md:p-0"),children:[o&&(0,Tt.jsx)("div",{className:"mb-4 text-primary uppercase font-light",children:o}),(0,Tt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Tt.jsx)(xp,{icon:{type:(t==null?void 0:t.type)||"fa-light",iconName:(t==null?void 0:t.icon)||"Il-icon-error"},heading:a!=null?a:"",variant:(i==null?void 0:i.card)==="default"?"solid":(u=i==null?void 0:i.card)!=null?u:"solid",iconSize:(i==null?void 0:i.iconSize)||"large"})}),s&&(0,Tt.jsx)("div",{className:"mb-6",children:(0,Tt.jsx)("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",(i==null?void 0:i.card)==="outline"||(i==null?void 0:i.card)==="light"?"text-brand-green":"text-white"),children:s})}),r&&typeof r=="object"&&(0,Tt.jsx)(Z,{enableGutter:!1,content:r,enableProse:!1,className:l("space-y-6",(i==null?void 0:i.card)==="outline"||(i==null?void 0:i.card)==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100",e&&"prose prose-headings:text-background prose-p:text-background")}),r&&typeof r=="string"&&(0,Tt.jsx)("div",{className:l("space-y-6",(i==null?void 0:i.card)==="outline"||(i==null?void 0:i.card)==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100",e&&"prose prose-headings:text-background prose-p:text-background"),children:r}),n&&n.url&&(0,Tt.jsx)("div",{className:"mt-auto pt-6 flex items-center justify-start",children:(0,Tt.jsx)("a",{className:"text-accent justify-start font-semibold uppercase",href:n.url||"#",children:(n==null?void 0:n.label)||"Find out more"})}),(i==null?void 0:i.card)==="radial"&&(0,Tt.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 xp=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="small"&&e.iconName!="Il-icon-error"?(0,Tt.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,Tt.jsx)("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),kd(e)&&(0,Tt.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"?"mt-2":""),children:(0,Tt.jsx)(qe,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="Il-icon-error"?(0,Tt.jsxs)("div",{className:"flex flex-col gap-4",children:[kd(e)&&(0,Tt.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,Tt.jsx)(qe,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Tt.jsx)("h3",{className:l("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,Tt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Tt.jsx)("div",{className:l("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Rd=y(require("next/image")),Td=y(require("next/link"));var fo=y(require("react"));var Te=fo.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("div",{ref:a,className:l("rounded-Tt border bg-card text-card-foreground shadow",e),...t}));Te.displayName="Card";var Ke=fo.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("div",{ref:a,className:l("flex flex-col space-y-1.5 p-6",e),...t}));Ke.displayName="CardHeader";var Qe=fo.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("div",{ref:a,className:l("font-semibold leading-none tracking-tight",e),...t}));Qe.displayName="CardTitle";var wp=fo.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("div",{ref:a,className:l("text-sm text-muted-foreground",e),...t}));wp.displayName="CardDescription";var _e=fo.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("div",{ref:a,className:l("p-6 pt-0",e),...t}));_e.displayName="CardContent";var Np=fo.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("div",{ref:a,className:l("flex items-center p-6 pt-0",e),...t}));Np.displayName="CardFooter";function Dd({name:e,logo:t,href:a}){return(0,Tt.jsx)(Te,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,Tt.jsxs)(Td.default,{href:a,className:"block",children:[(0,Tt.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,Tt.jsx)("div",{className:"relative w-full h-full",children:t&&(0,Tt.jsx)(Rd.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,Tt.jsx)(_e,{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,Tt.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 Md({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=n=>{switch(n){case"birthday":return(0,Tt.jsx)(Il.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,Tt.jsx)(Il.Award,{className:"h-4 w-4"});case"companyEvent":return(0,Tt.jsx)(Il.PartyPopper,{className:"h-4 w-4"});default:return(0,Tt.jsx)(Il.CalendarDays,{className:"h-4 w-4"})}},i=n=>{switch(n){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,Tt.jsxs)(Te,{className:`w-full max-w-md overflow-hidden bg-gradient-to-br ${i(e)}`,children:[(0,Tt.jsxs)(Ke,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,Tt.jsxs)(pa,{className:"h-14 w-14 border-2 border-white",children:[(0,Tt.jsx)(ua,{src:r,alt:a||"Event"}),(0,Tt.jsx)(fa,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,Tt.jsxs)("div",{className:"flex flex-col",children:[(0,Tt.jsx)(Qe,{className:"text-Tt",children:a||"Untitled Event"}),(0,Tt.jsxs)("p",{className:"text-sm text-white/80",children:[(0,Tt.jsx)(Il.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("Tt-GB"):"Date not specified"]})]})]}),(0,Tt.jsxs)(_e,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,Tt.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,Tt.jsxs)(Lt,{variant:"secondary",className:`${i(e)} text-white/80`,children:[s(e),(0,Tt.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-Tt])([Tt-Z])/g,"$1 $2").split(" ").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "):"Event"})]})]})]})}var Id=y(require("next/link"));var Ld=y(require("next/image")),Ad={sm:"640px",md:"768px",lg:"1024px",Tt:"1280px","2xl":"1400px"};function Bd({slug:e,image:t,title:a,description:o}){return(0,Tt.jsxs)(Id.default,{href:e,className:"group/portfolio relative Tt-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,Tt.jsx)("span",{className:l("absolute inset-0 Tt-[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,Tt.jsx)(Ld.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
10
+ `),$.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",$.easing),document.querySelector("body").setAttribute("data-aos-duration",$.duration),document.querySelector("body").setAttribute("data-aos-delay",$.delay),$.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?C(!0):$.startEvent==="load"?window.addEventListener($.startEvent,function(){C(!0)}):document.addEventListener($.startEvent,function(){C(!0)}),window.addEventListener("resize",(0,m.default)(C,$.debounceDelay,!0)),window.addEventListener("orientationchange",(0,m.default)(C,$.debounceDelay,!0)),window.addEventListener("scroll",(0,n.default)(function(){(0,f.default)(B,$.once)},$.throttleDelay)),$.disableMutationObserver||p.default.ready("[data-aos]",I),B)};e.exports={init:N,refresh:C,refreshHard:I}},function(e,t){},,,,,function(e,t){(function(a){"use strict";function o(b,N,w){function ye(ie){var pt=se,Ra=pe;return se=pe=void 0,ka=ie,Ue=b.apply(Ra,pt)}function we(ie){return ka=ie,Fe=setTimeout(Rt,N),Sa?ye(ie):Ue}function $e(ie){var pt=ie-xt,Ra=ie-ka,Kn=N-pt;return sa?I(Kn,Jt-Ra):Kn}function dt(ie){var pt=ie-xt,Ra=ie-ka;return xt===void 0||pt>=N||pt<0||sa&&Ra>=Jt}function Rt(){var ie=S();return dt(ie)?yt(ie):void(Fe=setTimeout(Rt,$e(ie)))}function yt(ie){return Fe=void 0,Ne&&se?ye(ie):(se=pe=void 0,Ue)}function ct(){Fe!==void 0&&clearTimeout(Fe),ka=0,se=xt=pe=Fe=void 0}function mt(){return Fe===void 0?Ue:yt(S())}function ce(){var ie=S(),pt=dt(ie);if(se=arguments,pe=this,xt=ie,pt){if(Fe===void 0)return we(xt);if(sa)return Fe=setTimeout(Rt,N),ye(xt)}return Fe===void 0&&(Fe=setTimeout(Rt,N)),Ue}var se,pe,Jt,Ue,Fe,xt,ka=0,Sa=!1,sa=!1,Ne=!0;if(typeof b!="function")throw new TypeError(d);return N=c(N)||0,s(w)&&(Sa=!!w.leading,sa="maxWait"in w,Jt=sa?C(c(w.maxWait)||0,N):Jt,Ne="trailing"in w?!!w.trailing:Ne),ce.cancel=ct,ce.flush=mt,ce}function r(b,N,w){var ye=!0,we=!0;if(typeof b!="function")throw new TypeError(d);return s(w)&&(ye="leading"in w?!!w.leading:ye,we="trailing"in w?!!w.trailing:we),o(b,N,{leading:ye,maxWait:N,trailing:we})}function s(b){var N=typeof b=="undefined"?"undefined":m(b);return!!b&&(N=="object"||N=="function")}function i(b){return!!b&&(typeof b=="undefined"?"undefined":m(b))=="object"}function n(b){return(typeof b=="undefined"?"undefined":m(b))=="symbol"||i(b)&&$.call(b)==u}function c(b){if(typeof b=="number")return b;if(n(b))return p;if(s(b)){var N=typeof b.valueOf=="function"?b.valueOf():b;b=s(N)?N+"":N}if(typeof b!="string")return b===0?b:+b;b=b.replace(g,"");var w=f.test(b);return w||h.test(b)?k(b.slice(2),w?2:8):v.test(b)?p:+b}var m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},d="Expected a function",p=NaN,u="[object Symbol]",g=/^\s+|\s+$/g,v=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,h=/^0o[0-7]+$/i,k=parseInt,D=(typeof a=="undefined"?"undefined":m(a))=="object"&&a&&a.Object===Object&&a,E=(typeof self=="undefined"?"undefined":m(self))=="object"&&self&&self.Object===Object&&self,B=D||E||Function("return this")(),me=Object.prototype,$=me.toString,C=Math.max,I=Math.min,S=function(){return B.Date.now()};e.exports=r}).call(t,function(){return this}())},function(e,t){(function(a){"use strict";function o(S,b,N){function w(Ne){var ie=ce,pt=se;return ce=se=void 0,xt=Ne,Jt=S.apply(pt,ie)}function ye(Ne){return xt=Ne,Ue=setTimeout(dt,b),ka?w(Ne):Jt}function we(Ne){var ie=Ne-Fe,pt=Ne-xt,Ra=b-ie;return Sa?C(Ra,pe-pt):Ra}function $e(Ne){var ie=Ne-Fe,pt=Ne-xt;return Fe===void 0||ie>=b||ie<0||Sa&&pt>=pe}function dt(){var Ne=I();return $e(Ne)?Rt(Ne):void(Ue=setTimeout(dt,we(Ne)))}function Rt(Ne){return Ue=void 0,sa&&ce?w(Ne):(ce=se=void 0,Jt)}function yt(){Ue!==void 0&&clearTimeout(Ue),xt=0,ce=Fe=se=Ue=void 0}function ct(){return Ue===void 0?Jt:Rt(I())}function mt(){var Ne=I(),ie=$e(Ne);if(ce=arguments,se=this,Fe=Ne,ie){if(Ue===void 0)return ye(Fe);if(Sa)return Ue=setTimeout(dt,b),w(Fe)}return Ue===void 0&&(Ue=setTimeout(dt,b)),Jt}var ce,se,pe,Jt,Ue,Fe,xt=0,ka=!1,Sa=!1,sa=!0;if(typeof S!="function")throw new TypeError(m);return b=n(b)||0,r(N)&&(ka=!!N.leading,Sa="maxWait"in N,pe=Sa?$(n(N.maxWait)||0,b):pe,sa="trailing"in N?!!N.trailing:sa),mt.cancel=yt,mt.flush=ct,mt}function r(S){var b=typeof S=="undefined"?"undefined":c(S);return!!S&&(b=="object"||b=="function")}function s(S){return!!S&&(typeof S=="undefined"?"undefined":c(S))=="object"}function i(S){return(typeof S=="undefined"?"undefined":c(S))=="symbol"||s(S)&&me.call(S)==p}function n(S){if(typeof S=="number")return S;if(i(S))return d;if(r(S)){var b=typeof S.valueOf=="function"?S.valueOf():S;S=r(b)?b+"":b}if(typeof S!="string")return S===0?S:+S;S=S.replace(u,"");var N=v.test(S);return N||f.test(S)?h(S.slice(2),N?2:8):g.test(S)?d:+S}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},m="Expected a function",d=NaN,p="[object Symbol]",u=/^\s+|\s+$/g,g=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,f=/^0o[0-7]+$/i,h=parseInt,k=(typeof a=="undefined"?"undefined":c(a))=="object"&&a&&a.Object===Object&&a,D=(typeof self=="undefined"?"undefined":c(self))=="object"&&self&&self.Object===Object&&self,E=k||D||Function("return this")(),B=Object.prototype,me=B.toString,$=Math.max,C=Math.min,I=function(){return E.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(i);n=m,u.observe(d.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function i(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 n()})}Object.defineProperty(t,"__esModule",{value:!0});var n=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 Tt a function")}function o(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function d(p,u){for(var g=0;g<u.length;g++){var v=u[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(p,v.key,v)}}return function(p,u,g){return u&&d(p.prototype,u),g&&d(p,g),p}}(),s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|Nl)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( Tt)?|phone|p(ixi|Tt)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,i=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|Tt|co)|amoi|Tt(ex|ny|yw)|aptu|ar(ch|Tt)|Tt(Tt|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|Tt)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|Il\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|ms(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|Tt|wa|Tt)|fetc|fly(\-|Tt)|g1 u|g560|gene|gf\-5|g\-mo|Tt(\.w|Nl)|gr(Nl|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|Tt)|hp( i|ip)|hs\-c|Tt(c(\-| |Tt|a|g|p|s|t)|tp)|hu(aw|Xd)|i\-(20|Tt|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|Tt(Il|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(Tt|ui|xo)|Il(01|21|Tt)|m\-cr|me(rc|ri)|mi(o8|ms|Tt)|mmef|mo(01|02|bi|Tt|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)|Tt((c|m)\-|on|tf|wf|wg|Tt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|Tt(ck|Il|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(Tt|ma|ms|ms|ny|Tt)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|Il|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|Tt(Tt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|Tt(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|Tt)|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,n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|Nl)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( Tt)?|phone|p(ixi|Tt)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,c=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|Tt|co)|amoi|Tt(ex|ny|yw)|aptu|ar(ch|Tt)|Tt(Tt|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|Tt)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|Il\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|ms(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|Tt|wa|Tt)|fetc|fly(\-|Tt)|g1 u|g560|gene|gf\-5|g\-mo|Tt(\.w|Nl)|gr(Nl|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|Tt)|hp( i|ip)|hs\-c|Tt(c(\-| |Tt|a|g|p|s|t)|tp)|hu(aw|Xd)|i\-(20|Tt|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|Tt(Il|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(Tt|ui|xo)|Il(01|21|Tt)|m\-cr|me(rc|ri)|mi(o8|ms|Tt)|mmef|mo(01|02|bi|Tt|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)|Tt((c|m)\-|on|tf|wf|wg|Tt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|Tt(ck|Il|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(Tt|ma|ms|ms|ny|Tt)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|Il|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|Tt(Tt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|Tt(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|Tt)|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)&&!i.test(p.substr(0,4)))}},{key:"mobile",value:function(){var p=o();return!(!n.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,i){var n=r.node.getAttribute("data-aos-once");s>r.position?r.node.classList.add("aos-animate"):typeof n!="undefined"&&(n==="false"||!i&&n!=="true")&&r.node.classList.remove("aos-animate")},o=function(r,s){var i=window.pageYOffset,n=window.innerHeight;r.forEach(function(c,m){a(c,n+i,s)})};t.default=o},function(e,t,a){"use strict";function o(n){return n&&n.__esModule?n:{default:n}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(12),s=o(r),i=function(n,c){return n.forEach(function(m,d){m.node.classList.add("aos-init"),m.position=(0,s.default)(m.node,c.offset)}),n};t.default=i},function(e,t,a){"use strict";function o(n){return n&&n.__esModule?n:{default:n}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(13),s=o(r),i=function(n,c){var m=0,d=0,p=window.innerHeight,u={offset:n.getAttribute("data-aos-offset"),anchor:n.getAttribute("data-aos-anchor"),anchorPlacement:n.getAttribute("data-aos-anchor-placement")};switch(u.offset&&!isNaN(u.offset)&&(d=parseInt(u.offset)),u.anchor&&document.querySelectorAll(u.anchor)&&(n=document.querySelectorAll(u.anchor)[0]),m=(0,s.default)(n).top,u.anchorPlacement){case"top-bottom":break;case"center-bottom":m+=n.offsetHeight/2;break;case"bottom-bottom":m+=n.offsetHeight;break;case"top-center":m+=p/2;break;case"bottom-center":m+=p/2+n.offsetHeight;break;case"center-center":m+=p/2+n.offsetHeight/2;break;case"top-top":m+=p;break;case"bottom-top":m+=n.offsetHeight+p;break;case"center-top":m+=n.offsetHeight/2+p}return u.anchorPlacement||u.offset||isNaN(c)||(d=c),m+d};t.default=i},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 Uu={};Cm(Uu,{AOSInit:()=>op,AboutSection:()=>Su,Alert:()=>Gi,AlertDescription:()=>Vi,AlertTitle:()=>$i,ApproveLeave:()=>En,Avatar:()=>pa,AvatarFallback:()=>fa,AvatarImage:()=>ua,Badge:()=>Lt,BannerBlock:()=>Yi,BlogCard:()=>pm,BlogDetail:()=>Hu,BlogList:()=>ju,BlogListSection:()=>Tu,BrandLogo:()=>Ka,Breadcrumb:()=>Vs,BreadcrumbEllipsis:()=>Ks,BreadcrumbItem:()=>Us,BreadcrumbLink:()=>Xs,BreadcrumbList:()=>Ws,BreadcrumbPage:()=>Ys,BreadcrumbSeparator:()=>qs,Breadcrumbs:()=>Rn,Button:()=>L,CMSLink:()=>Zt,CRMKanbanBoard:()=>Cu,Calendar:()=>vr,CalendarView:()=>_n,CallToActionBlock:()=>mo,Card:()=>Nr,Categories:()=>Sr,Checkbox:()=>Wt,CodeBlock:()=>Ji,Collapsible:()=>na,CollapsibleContent:()=>Aa,CollapsibleTrigger:()=>Ma,CollectionArchive:()=>Vp,Command:()=>Qr,CommandDialog:()=>td,CommandEmpty:()=>Hi,CommandGroup:()=>Fi,CommandInput:()=>Ei,CommandItem:()=>_i,CommandList:()=>zi,CommandSeparator:()=>Oi,CommandShortcut:()=>ji,ContactSection:()=>Bu,Container:()=>Be,ContentBlock:()=>wr,ContentCard:()=>rn,CopyButton:()=>Ki,CustomLink:()=>Ve,CustomerCard:()=>Dd,DealCard:()=>Gn,DealDetails:()=>jn,Dialog:()=>It,DialogClose:()=>qr,DialogContent:()=>Ct,DialogDescription:()=>Bi,DialogFooter:()=>Li,DialogHeader:()=>$t,DialogOverlay:()=>Kr,DialogPortal:()=>Ii,DialogTitle:()=>Vt,DialogTrigger:()=>Yr,DropdownMenu:()=>ml,DropdownMenuCheckboxItem:()=>ti,DropdownMenuContent:()=>Zs,DropdownMenuGroup:()=>ul,DropdownMenuItem:()=>ei,DropdownMenuLabel:()=>oi,DropdownMenuPortal:()=>fl,DropdownMenuRadioGroup:()=>bl,DropdownMenuRadioItem:()=>ai,DropdownMenuSeparator:()=>ri,DropdownMenuShortcut:()=>si,DropdownMenuSub:()=>gl,DropdownMenuSubContent:()=>Js,DropdownMenuSubTrigger:()=>Qs,DropdownMenuTrigger:()=>pl,DynamicIcon:()=>qe,EventCard:()=>Md,FeatureCard:()=>ls,FeatureGrid:()=>Od,FeaturesBlock:()=>uo,Filter:()=>wn,FlowPrintable:()=>nc,Footer:()=>vu,Header:()=>hu,HeaderDesktop:()=>Dn,HeaderMobile:()=>An,HeadingImage:()=>_p,Hero:()=>Dp,HighImpactHero:()=>Nn,HolidayGrid:()=>On,HolidayTracker:()=>wu,HoverCard:()=>Kl,HoverCardContent:()=>Ai,HoverCardTrigger:()=>Ql,Image:()=>Ed,ImageBlock:()=>on,ImageSection:()=>_u,InfoTile:()=>Ip,Input:()=>ut,Insight:()=>Ap,KanbanColumn:()=>Wn,Label:()=>ve,LocationsSection:()=>Eu,Logo:()=>Wp,LowImpactHero:()=>kn,MOTD:()=>Bp,MainPageSection:()=>Fu,Mask:()=>su,Media:()=>Ut,MediaBlock:()=>ba,MediumImpactHero:()=>Pn,NewCustomerForm:()=>$n,NewDealForm:()=>Vn,NewsGrid:()=>sc,OrgChart:()=>Hp,PagePrintable:()=>lc,PageRange:()=>Yp,PageShape:()=>it,Pagination:()=>yn,PayloadPagination:()=>qp,Popover:()=>ur,PopoverAnchor:()=>Wl,PopoverContent:()=>zo,PopoverTrigger:()=>fr,PostHero:()=>nu,PricingCard:()=>nn,PricingSection:()=>ku,Printable:()=>bn,ProjectCard:()=>Bd,ProjectTeam:()=>au,ProposalSummary:()=>Fp,Publish:()=>Vu,RelatedContent:()=>ou,RelatedPosts:()=>$p,RenderBlocks:()=>bo,RenderHero:()=>cu,RequestLeave:()=>Fn,ReusableContentBlock:()=>ln,RichText:()=>Z,ScrollArea:()=>Oa,ScrollBar:()=>Xr,Section:()=>$u,SectionHero:()=>Sn,SectionHeroOLD:()=>lu,Select:()=>lo,SelectContent:()=>$a,SelectGroup:()=>hp,SelectItem:()=>Va,SelectLabel:()=>nd,SelectScrollDownButton:()=>Xi,SelectScrollUpButton:()=>Ui,SelectSeparator:()=>ld,SelectTrigger:()=>Ga,SelectValue:()=>co,Separator:()=>er,ServiceCard:()=>Tp,ServiceDetailSection:()=>Gu,ServiceSection:()=>Pu,Sheet:()=>Br,SheetClose:()=>Pl,SheetContent:()=>ar,SheetDescription:()=>mi,SheetFooter:()=>di,SheetHeader:()=>li,SheetOverlay:()=>Er,SheetPortal:()=>ni,SheetTitle:()=>ci,SheetTrigger:()=>Cl,Sidebar:()=>to,SidebarContent:()=>La,SidebarFooter:()=>oo,SidebarGroup:()=>Dt,SidebarGroupAction:()=>hi,SidebarGroupContent:()=>jt,SidebarGroupLabel:()=>da,SidebarHeader:()=>ao,SidebarInput:()=>vi,SidebarInset:()=>bi,SidebarLeft:()=>Jp,SidebarMenu:()=>ft,SidebarMenuAction:()=>sr,SidebarMenuBadge:()=>yi,SidebarMenuButton:()=>Mt,SidebarMenuItem:()=>Ye,SidebarMenuSkeleton:()=>xi,SidebarMenuSub:()=>Ba,SidebarMenuSubButton:()=>za,SidebarMenuSubItem:()=>Ea,SidebarProvider:()=>ui,SidebarRail:()=>gi,SidebarRight:()=>tu,SidebarSeparator:()=>rr,SidebarTrigger:()=>fi,SimpleHeader:()=>pu,Skeleton:()=>ke,SlideShow:()=>gs,TextAndImages:()=>ic,Textarea:()=>Wa,Theme:()=>us,ThemeProvider:()=>ru,Toast:()=>lr,ToastAction:()=>Ci,ToastClose:()=>dr,ToastDescription:()=>mr,ToastProvider:()=>Wr,ToastTitle:()=>cr,ToastViewport:()=>nr,Toaster:()=>Ol,Toggle:()=>ki,ToggleGroup:()=>Si,ToggleGroupItem:()=>Ri,Tooltip:()=>Or,TooltipContent:()=>or,TooltipProvider:()=>Fr,TooltipTrigger:()=>_r,VideoHeader:()=>fu,WhyUs:()=>Op,badgeVariants:()=>Wi,buttonVariants:()=>Ia,cn:()=>l,getTableOfContents:()=>Do,reducer:()=>El,toast:()=>zl,toggleVariants:()=>pr,useIsMobile:()=>Hr,useSidebar:()=>Bo,useToast:()=>Vr});module.exports=Pm(Uu);var Mo=y(require("react")),Lr=require("@radix-ui/react-icons"),cl=require("@radix-ui/react-slot");var il=require("clsx");var Gs="-",km=e=>{let t=Rm(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let n=i.split(Gs);return n[0]===""&&n.length!==1&&n.shift(),el(n,t)||Sm(i)},getConflictingClassGroupIds:(i,n)=>{let c=a[i]||[];return n&&o[i]?[...c,...o[i]]:c}}},el=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?el(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(Gs);return(i=t.validators.find(({validator:n})=>n(s)))==null?void 0:i.classGroupId},Jn=/^\[(.+)\]$/,Sm=e=>{if(Jn.test(e)){let t=Jn.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Rm=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return Dm(Object.entries(e.classGroups),a).forEach(([s,i])=>{js(i,o,s,t)}),o},js=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:Zn(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(Tm(r)){js(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,i])=>{js(i,Zn(t,s),a,o)})})},Zn=(e,t)=>{let a=e;return t.split(Gs).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Tm=e=>e.isThemeGetter,Dm=(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(([i,n])=>[t+i,n])):s);return[a,r]}):e,Mm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,i)=>{a.set(s,i),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let i=a.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return r(s,i),i},set(s,i){a.has(s)?a.set(s,i):r(s,i)}}},tl="!",Am=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,i=n=>{let c=[],m=0,d=0,p;for(let h=0;h<n.length;h++){let k=n[h];if(m===0){if(k===r&&(o||n.slice(h,h+s)===t)){c.push(n.slice(d,h)),d=h+s;continue}if(k==="/"){p=h;continue}}k==="["?m++:k==="]"&&m--}let u=c.length===0?n:n.substring(d),g=u.startsWith(tl),v=g?u.substring(1):u,f=p&&p>d?p-d:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:f}};return a?n=>a({className:n,parseClassName:i}):i},Im=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},Lm=e=>({cache:Mm(e.cacheSize),parseClassName:Am(e),...km(e)}),Bm=/\s+/,Em=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],i=e.trim().split(Bm),n="";for(let c=i.length-1;c>=0;c-=1){let m=i[c],{modifiers:d,hasImportantModifier:p,baseClassName:u,maybePostfixModifierPosition:g}=a(m),v=!!g,f=o(v?u.substring(0,g):u);if(!f){if(!v){n=m+(n.length>0?" "+n:n);continue}if(f=o(u),!f){n=m+(n.length>0?" "+n:n);continue}v=!1}let h=Im(d).join(":"),k=p?h+tl:h,D=k+f;if(s.includes(D))continue;s.push(D);let E=r(f,v);for(let B=0;B<E.length;++B){let me=E[B];s.push(k+me)}n=m+(n.length>0?" "+n:n)}return n};function zm(){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 Hm(e,...t){let a,o,r,s=i;function i(c){let m=t.reduce((d,p)=>p(d),e());return a=Lm(m),o=a.cache.get,r=a.cache.set,s=n,n(c)}function n(c){let m=o(c);if(m)return m;let d=Em(c,a);return r(c,d),d}return function(){return s(zm.apply(null,arguments))}}var be=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},ol=/^\[(?:([a-Tt-]+):)?(.+)\]$/i,Fm=/^\d+\/\d+$/,Om=new Set(["px","full","screen"]),_m=/^(\d+(\.\d+)?)?(xs|sm|md|lg|Tt)$/,jm=/\d+(%|px|r?ms|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|ms|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Gm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,$m=/^(inset_)?-?((\d+)?\.?(\d+)[a-Tt]+|0)Tt-?((\d+)?\.?(\d+)[a-Tt]+|0)/,Vm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ia=e=>Ro(e)||Om.has(e)||Fm.test(e),Ta=e=>To(e,"length",Jm),Ro=e=>!!e&&!Number.isNaN(Number(e)),_s=e=>To(e,"number",Ro),Qo=e=>!!e&&Number.isInteger(Number(e)),Wm=e=>e.endsWith("%")&&Ro(e.slice(0,-1)),F=e=>ol.test(e),Da=e=>_m.test(e),Um=new Set(["length","size","percentage"]),Xm=e=>To(e,Um,rl),Ym=e=>To(e,"position",rl),qm=new Set(["image","url"]),Km=e=>To(e,qm,ep),Qm=e=>To(e,"",Zm),Jo=()=>!0,To=(e,t,a)=>{let o=ol.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Jm=e=>jm.test(e)&&!Gm.test(e),rl=()=>!1,Zm=e=>$m.test(e),ep=e=>Vm.test(e);var tp=()=>{let e=be("colors"),t=be("spacing"),a=be("blur"),o=be("brightness"),r=be("borderColor"),s=be("borderRadius"),i=be("borderSpacing"),n=be("borderWidth"),c=be("contrast"),m=be("grayscale"),d=be("hueRotate"),p=be("invert"),u=be("gap"),g=be("gradientColorStops"),v=be("gradientColorStopPositions"),f=be("inset"),h=be("margin"),k=be("opacity"),D=be("padding"),E=be("saturate"),B=be("scale"),me=be("sepia"),$=be("skew"),C=be("space"),I=be("translate"),S=()=>["auto","contain","none"],b=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto",F,t],w=()=>[F,t],ye=()=>["",ia,Ta],we=()=>["auto",Ro,F],$e=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],dt=()=>["solid","dashed","dotted","double","none"],Rt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],yt=()=>["start","end","center","between","around","evenly","stretch"],ct=()=>["","0",F],mt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ce=()=>[Ro,F];return{cacheSize:500,separator:":",theme:{colors:[Jo],spacing:[ia,Ta],blur:["none","",Da,F],brightness:ce(),borderColor:[e],borderRadius:["none","","full",Da,F],borderSpacing:w(),borderWidth:ye(),contrast:ce(),grayscale:ct(),hueRotate:ce(),invert:ct(),gap:w(),gradientColorStops:[e],gradientColorStopPositions:[Wm,Ta],inset:N(),margin:N(),opacity:ce(),padding:w(),saturate:ce(),scale:ce(),sepia:ct(),skew:ce(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",F]}],container:["container"],columns:[{columns:[Da]}],"break-after":[{"break-after":mt()}],"break-before":[{"break-before":mt()}],"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:[...$e(),F]}],overflow:[{overflow:b()}],"overflow-Tt":[{"overflow-Tt":b()}],"overflow-y":[{"overflow-y":b()}],overscroll:[{overscroll:S()}],"overscroll-Tt":[{"overscroll-Tt":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-Tt":[{"inset-Tt":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],Tt:[{Tt:["auto",Qo,F]}],basis:[{basis:N()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",F]}],grow:[{grow:ct()}],shrink:[{shrink:ct()}],order:[{order:["first","last","none",Qo,F]}],"grid-cols":[{"grid-cols":[Jo]}],"col-start-end":[{col:["auto",{span:["full",Qo,F]},F]}],"col-start":[{"col-start":we()}],"col-end":[{"col-end":we()}],"grid-rows":[{"grid-rows":[Jo]}],"row-start-end":[{row:["auto",{span:[Qo,F]},F]}],"row-start":[{"row-start":we()}],"row-end":[{"row-end":we()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",F]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",F]}],gap:[{gap:[u]}],"gap-Tt":[{"gap-Tt":[u]}],"gap-y":[{"gap-y":[u]}],"justify-content":[{justify:["normal",...yt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...yt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...yt(),"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]}],pe:[{pe:[D]}],pt:[{pt:[D]}],pr:[{pr:[D]}],pb:[{pb:[D]}],pl:[{pl:[D]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-Tt":[{"space-Tt":[C]}],"space-Tt-reverse":["space-Tt-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",F,t]}],"min-w":[{"min-w":[F,t,"min","max","fit"]}],"max-w":[{"max-w":[F,t,"none","full","min","max","fit","prose",{screen:[Da]},Da]}],h:[{h:[F,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[F,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[F,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[F,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Da,Ta]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",_s]}],"font-family":[{font:[Jo]}],"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",F]}],"line-clamp":[{"line-clamp":["none",Ro,_s]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ia,F]}],"list-image":[{"list-image":["none",F]}],"list-style-type":[{list:["none","disc","decimal",F]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","Il-underline"],"text-decoration-style":[{decoration:[...dt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ia,Ta]}],"underline-offset":[{"underline-offset":["auto",ia,F]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",F]}],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",F]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...$e(),Ym]}],"bg-repeat":[{bg:["Il-repeat",{repeat:["","Tt","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Xm]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Km]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ll":[{"rounded-ll":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-Tt":[{"rounded-Tt":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[n]}],"border-w-Tt":[{"border-Tt":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...dt(),"hidden"]}],"divide-Tt":[{"divide-Tt":[n]}],"divide-Tt-reverse":["divide-Tt-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:dt()}],"border-color":[{border:[r]}],"border-color-Tt":[{"border-Tt":[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:["",...dt()]}],"outline-offset":[{"outline-offset":[ia,F]}],"outline-w":[{outline:[ia,Ta]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ye()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[ia,Ta]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Da,Qm]}],"shadow-color":[{shadow:[Jo]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...Rt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Rt()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Da,F]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[E]}],sepia:[{sepia:[me]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-Tt":[{"border-spacing-Tt":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",F]}],duration:[{duration:ce()}],ease:[{ease:["linear","in","out","in-out",F]}],delay:[{delay:ce()}],animate:[{animate:["none","spin","ping","pulse","bounce",F]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[B]}],"scale-Tt":[{"scale-Tt":[B]}],"scale-y":[{"scale-y":[B]}],rotate:[{rotate:[Qo,F]}],"translate-Tt":[{"translate-Tt":[I]}],"translate-y":[{"translate-y":[I]}],"skew-Tt":[{"skew-Tt":[$]}],"skew-y":[{"skew-y":[$]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",F]}],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","Il-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","Tt-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",F]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","Tt",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","Tt","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-Tt":[{"touch-pan":["Tt","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",F]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ia,Ta,_s]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-Tt","overflow-y"],overscroll:["overscroll-Tt","overscroll-y"],inset:["inset-Tt","inset-y","start","end","top","right","bottom","left"],"inset-Tt":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-Tt","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ll","rounded-se","rounded-Tt","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ll","rounded-es"],"rounded-e":["rounded-se","rounded-Tt"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-Tt","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-Tt":["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-Tt":["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-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-Tt","touch-y","touch-pz"],"touch-Tt":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var sl=Hm(tp);function l(...e){return sl((0,il.clsx)(e))}function Do(e){let t=0,a=(s,i)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${i}`,o=e.layout.flatMap(s=>{let i=[];return"title"in s&&s.title&&i.push({text:s.title,id:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(n=>{var c,m,d,p,u;if(n.title&&i.push({text:n.title,id:a(n.title,t++),tag:"h2"}),(m=(c=n.richText)==null?void 0:c.root)!=null&&m.children&&((p=(d=n.richText)==null?void 0:d.root)==null?void 0:p.children.length)===1){let g=n.richText.root.children.filter(v=>v!==void 0&&v.type==="heading");for(let v of g)v.children[0]&&i.push({text:(u=v.children[0].text)!=null?u:"",id:a(v.children[0].text,t++),tag:v.tag||"h2"})}}),i}),r=ap(e.layout);return{tableOfContents:o,contentWithIds:r}}function ap(e){let t=(o,r)=>`${o.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${r}`,a=0;return e.map(o=>(o.title&&(o.id=t(o.title,a++)),o.columns&&(o.columns=o.columns.map(r=>(r.title&&(r.id=t(r.title,a++)),r.richText&&(r.richText.root.children=r.richText.root.children.filter(s=>s!==void 0).filter(s=>s.children!==void 0&&s.children.length>0).map(s=>(s.type==="heading"&&s.children[0].text&&(s.id=t(s.children[0].text,a++)),s))),r))),o))}var ll=require("react"),dl=y(nl());function op(){return(0,ll.useEffect)(()=>{dl.default.init({duration:1e3,offset:0,once:!0})},[]),null}var Tt=require("react/jsx-runtime"),Vs=Mo.forwardRef(({...e},t)=>(0,Tt.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));Vs.displayName="Breadcrumb";var Ws=Mo.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("ol",{ref:a,className:l("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Ws.displayName="BreadcrumbList";var Us=Mo.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("li",{ref:a,className:l("inline-flex items-center gap-1.5",e),...t}));Us.displayName="BreadcrumbItem";var Xs=Mo.forwardRef(({asChild:e,className:t,...a},o)=>(0,Tt.jsx)(e?cl.Slot:"a",{ref:o,className:l("transition-colors hover:text-foreground",t),...a}));Xs.displayName="BreadcrumbLink";var Ys=Mo.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:l("font-normal text-foreground",e),...t}));Ys.displayName="BreadcrumbPage";var qs=({children:e,className:t,...a})=>(0,Tt.jsx)("li",{role:"presentation","aria-hidden":"true",className:l("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e!=null?e:(0,Tt.jsx)(Lr.ChevronRightIcon,{})});qs.displayName="BreadcrumbSeparator";var Ks=({className:e,...t})=>(0,Tt.jsxs)("span",{role:"presentation","aria-hidden":"true",className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,Tt.jsx)(Lr.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,Tt.jsx)("span",{className:"sr-only",children:"More"})]});Ks.displayName="BreadcrumbElipssis";var Ao=y(require("@radix-ui/react-collapsible")),na=Ao.Root,Ma=Ao.CollapsibleTrigger,Aa=Ao.CollapsibleContent;var la=y(require("react")),G=y(require("@radix-ui/react-dropdown-menu"));var ml=G.Root,pl=G.Trigger,ul=G.Group,fl=G.Portal,gl=G.Sub,bl=G.RadioGroup,Qs=la.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Tt.jsxs)(G.SubTrigger,{ref:r,className:l("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,(0,Tt.jsx)(Lr.ChevronRightIcon,{className:"ml-auto"})]}));Qs.displayName=G.SubTrigger.displayName;var Js=la.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(G.SubContent,{ref:a,className:l("Tt-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}));Js.displayName=G.SubContent.displayName;var Zs=la.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Tt.jsx)(G.Portal,{children:(0,Tt.jsx)(G.Content,{ref:o,sideOffset:t,className:l("Tt-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})}));Zs.displayName=G.Content.displayName;var ei=la.forwardRef(({className:e,inset:t,...a},o)=>(0,Tt.jsx)(G.Item,{ref:o,className:l("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));ei.displayName=G.Item.displayName;var ti=la.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Tt.jsxs)(G.CheckboxItem,{ref:r,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[(0,Tt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Tt.jsx)(G.ItemIndicator,{children:(0,Tt.jsx)(Lr.CheckIcon,{className:"h-4 w-4"})})}),t]}));ti.displayName=G.CheckboxItem.displayName;var ai=la.forwardRef(({className:e,children:t,...a},o)=>(0,Tt.jsxs)(G.RadioItem,{ref:o,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,Tt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Tt.jsx)(G.ItemIndicator,{children:(0,Tt.jsx)(Lr.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));ai.displayName=G.RadioItem.displayName;var oi=la.forwardRef(({className:e,inset:t,...a},o)=>(0,Tt.jsx)(G.Label,{ref:o,className:l("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));oi.displayName=G.Label.displayName;var ri=la.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(G.Separator,{ref:a,className:l("-mx-1 my-1 h-px bg-muted",e),...t}));ri.displayName=G.Separator.displayName;var si=({className:e,...t})=>(0,Tt.jsx)("span",{className:l("ml-auto text-xs tracking-widest opacity-60",e),...t});si.displayName="DropdownMenuShortcut";var vl=y(require("react"));var ut=vl.forwardRef(({className:e,type:t,...a},o)=>(0,Tt.jsx)("input",{type:t,className:l("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));ut.displayName="Input";var yl=y(require("react")),ii=y(require("@radix-ui/react-separator"));var er=yl.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,Tt.jsx)(ii.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}));er.displayName=ii.Root.displayName;var tr=y(require("react")),Pe=y(require("@radix-ui/react-dialog")),Nl=require("class-variance-authority");var Br=Pe.Root,Cl=Pe.Trigger,Pl=Pe.Close,ni=Pe.Portal,Er=tr.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(Pe.Overlay,{className:l("fixed inset-0 Tt-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}));Er.displayName=Pe.Overlay.displayName;var rp=(0,Nl.cva)("fixed Tt-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-Tt-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-Tt-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 sm:max-w-sm",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 sm:max-w-sm"}},defaultVariants:{side:"right"}}),ar=tr.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,Tt.jsxs)(ni,{children:[(0,Tt.jsx)(Er,{}),(0,Tt.jsxs)(Pe.Content,{ref:r,className:l(rp({side:e}),t),...o,children:[(0,Tt.jsxs)(Pe.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,Tt.jsx)(Lr.Cross2Icon,{className:"h-4 w-4"}),(0,Tt.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));ar.displayName=Pe.Content.displayName;var li=({className:e,...t})=>(0,Tt.jsx)("div",{className:l("flex flex-col space-y-2 text-center sm:text-left",e),...t});li.displayName="SheetHeader";var di=({className:e,...t})=>(0,Tt.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Tt-2",e),...t});di.displayName="SheetFooter";var ci=tr.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(Pe.Title,{ref:a,className:l("text-lg font-semibold text-foreground",e),...t}));ci.displayName=Pe.Title.displayName;var mi=tr.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(Pe.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));mi.displayName=Pe.Description.displayName;var V=y(require("react")),Il=require("lucide-react");var Hr=(e=768)=>{let[t,a]=(0,ll.useState)(!1);return(0,ll.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var Rl=y(require("react")),Ia=(0,Nl.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),L=Rl.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,Tt.jsx)(e?cl.Slot:"button",{className:l(Ia({className:t,size:a,variant:o})),ref:s,...r}));L.displayName="Button";function ke({className:e,...t}){return(0,Tt.jsx)("div",{className:l("animate-pulse rounded-md bg-primary/10",e),...t})}var Ml=y(require("react")),_t=y(require("@radix-ui/react-tooltip"));var Fr=_t.Provider,Or=_t.Root,_r=_t.Trigger,or=Ml.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Tt.jsx)(_t.Portal,{children:(0,Tt.jsx)(_t.Content,{ref:o,sideOffset:t,className:l("Tt-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})}));or.displayName=_t.Content.displayName;var sp="sidebar:state",ip=60*60*24*7,np="16rem",lp="18rem",dp="3rem",cp="b",Ll=V.createContext(null);function Bo(){let e=V.useContext(Ll);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var ui=V.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...i},n)=>{let c=Hr(),[m,d]=V.useState(!1),[p,u]=V.useState(e),g=t!=null?t:p,v=V.useCallback(D=>{if(a)return a==null?void 0:a(typeof D=="function"?D(g):D);u(D),document.cookie=`${sp}=${g}; path=/; max-age=${ip}`},[a,g]),f=V.useCallback(()=>c?d(D=>!D):v(D=>!D),[c,v,d]);V.useEffect(()=>{let D=E=>{E.key===cp&&(E.metaKey||E.ctrlKey)&&(E.preventDefault(),f())};return window.addEventListener("keydown",D),()=>window.removeEventListener("keydown",D)},[f]);let h=g?"expanded":"collapsed",k=V.useMemo(()=>({state:h,open:g,setOpen:v,isMobile:c,openMobile:m,setOpenMobile:d,toggleSidebar:f}),[h,g,v,c,m,d,f]);return(0,Tt.jsx)(Ll.Provider,{value:k,children:(0,Tt.jsx)(Fr,{delayDuration:0,children:(0,Tt.jsx)("div",{style:{"--sidebar-width":np,"--sidebar-width-icon":dp,...r},className:l("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:n,...i,children:s})})})});ui.displayName="SidebarProvider";var to=V.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},i)=>{let{isMobile:n,state:c,openMobile:m,setOpenMobile:d}=Bo();return a==="none"?(0,Tt.jsx)("div",{className:l("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:i,...s,children:r}):n?(0,Tt.jsx)(Br,{open:m,onOpenChange:d,...s,children:(0,Tt.jsx)(ar,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":lp},side:e,children:(0,Tt.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,Tt.jsxs)("div",{ref:i,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,Tt.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)Tt+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,Tt.jsx)("div",{className:l("duration-200 fixed top-14 bottom-0 Tt-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)Tt+_theme(spacing.4)Tt+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,Tt.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})})]})});to.displayName="Sidebar";var fi=V.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=Bo();return(0,Tt.jsxs)(L,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:l("h-7 w-7",e),onClick:s=>{t==null||t(s),r()},...a,children:[(0,Tt.jsx)(Il.PanelLeft,{}),(0,Tt.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});fi.displayName="SidebarTrigger";var gi=V.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=Bo();return(0,Tt.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:l("absolute inset-y-0 Tt-20 hidden w-4 -translate-Tt-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]Tt&]:cursor-w-resize [[data-side=right]Tt&]:cursor-e-resize","[[data-side=left][data-state=collapsed]Tt&]:cursor-e-resize [[data-side=right][data-state=collapsed]Tt&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-Tt-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]Tt&]:-right-2","[[data-side=right][data-collapsible=offcanvas]Tt&]:-left-2",e),...t})});gi.displayName="SidebarRail";var bi=V.forwardRef(({className:e,...t},a)=>(0,Tt.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-Tt md:peer-data-[variant=inset]:shadow",e),...t}));bi.displayName="SidebarInset";var vi=V.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(ut,{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}));vi.displayName="SidebarInput";var ao=V.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("div",{ref:a,"data-sidebar":"header",className:l("flex flex-col gap-2 p-2",e),...t}));ao.displayName="SidebarHeader";var oo=V.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("div",{ref:a,"data-sidebar":"footer",className:l("flex flex-col gap-2 p-2",e),...t}));oo.displayName="SidebarFooter";var rr=V.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(er,{ref:a,"data-sidebar":"separator",className:l("mx-2 w-auto bg-sidebar-border",e),...t}));rr.displayName="SidebarSeparator";var La=V.forwardRef(({className:e,...t},a)=>(0,Tt.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}));La.displayName="SidebarContent";var Dt=V.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("div",{ref:a,"data-sidebar":"group",className:l("relative flex w-full min-w-0 flex-col p-2",e),...t}));Dt.displayName="SidebarGroup";var da=V.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Tt.jsx)(t?cl.Slot:"div",{ref:o,"data-sidebar":"group-label",className:l("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));da.displayName="SidebarGroupLabel";var hi=V.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Tt.jsx)(t?cl.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}));hi.displayName="SidebarGroupAction";var jt=V.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("div",{ref:a,"data-sidebar":"group-content",className:l("w-full text-sm",e),...t}));jt.displayName="SidebarGroupContent";var ft=V.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("ul",{ref:a,"data-sidebar":"menu",className:l("flex w-full min-w-0 flex-col gap-1",e),...t}));ft.displayName="SidebarMenu";var Ye=V.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:l("group/menu-item relative",e),...t}));Ye.displayName="SidebarMenuItem";var mp=(0,Nl.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Mt=V.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...i},n)=>{let c=e?cl.Slot:"button",{isMobile:m,state:d}=Bo(),p=(0,Tt.jsx)(c,{ref:n,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:l(mp({variant:a,size:o}),s),...i});return r?(typeof r=="string"&&(r={children:r}),(0,Tt.jsxs)(Or,{children:[(0,Tt.jsx)(_r,{asChild:!0,children:p}),(0,Tt.jsx)(or,{side:"right",align:"center",hidden:d!=="collapsed"||m,...r})]})):p});Mt.displayName="SidebarMenuButton";var sr=V.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,Tt.jsx)(t?cl.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:l("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...o}));sr.displayName="SidebarMenuAction";var yi=V.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:l("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));yi.displayName="SidebarMenuBadge";var xi=V.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=V.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,Tt.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,Tt.jsx)(ke,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,Tt.jsx)(ke,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});xi.displayName="SidebarMenuSkeleton";var Ba=V.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:l("mx-3.5 flex min-w-0 translate-Tt-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));Ba.displayName="SidebarMenuSub";var Ea=V.forwardRef(({...e},t)=>(0,Tt.jsx)("li",{ref:t,...e}));Ea.displayName="SidebarMenuSubItem";var za=V.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...r},s)=>(0,Tt.jsx)(e?cl.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:l("flex h-7 min-w-0 -translate-Tt-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...r}));za.displayName="SidebarMenuSubButton";var $r=y(require("react")),pp=1,up=1e6;var wi=0;function fp(){return wi=(wi+1)%Number.MAX_SAFE_INTEGER,wi.toString()}var Ni=new Map,Bl=e=>{if(Ni.has(e))return;let t=setTimeout(()=>{Ni.delete(e),ir({type:"REMOVE_TOAST",toastId:e})},up);Ni.set(e,t)},El=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,pp)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?Bl(a):e.toasts.forEach(o=>{Bl(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===a||a===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)}}},jr=[],Gr={toasts:[]};function ir(e){Gr=El(Gr,e),jr.forEach(t=>{t(Gr)})}function zl({...e}){let t=fp(),a=r=>ir({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>ir({type:"DISMISS_TOAST",toastId:t});return ir({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function Vr(){let[e,t]=$r.useState(Gr);return $r.useEffect(()=>(jr.push(t),()=>{let a=jr.indexOf(t);a>-1&&jr.splice(a,1)}),[e]),{...e,toast:zl,dismiss:a=>ir({type:"DISMISS_TOAST",toastId:a})}}var ro=y(require("react")),Ie=y(require("@radix-ui/react-toast"));var Wr=Ie.Provider,nr=ro.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(Ie.Viewport,{ref:a,className:l("fixed top-0 Tt-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));nr.displayName=Ie.Viewport.displayName;var gp=(0,Nl.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-Tt-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-Tt-0 data-[swipe=end]:translate-Tt-[var(--radix-toast-swipe-end-Tt)] data-[swipe=move]:translate-Tt-[var(--radix-toast-swipe-move-Tt)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),lr=ro.forwardRef(({className:e,variant:t,...a},o)=>(0,Tt.jsx)(Ie.Root,{ref:o,className:l(gp({variant:t}),e),...a}));lr.displayName=Ie.Root.displayName;var Ci=ro.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(Ie.Action,{ref:a,className:l("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Ci.displayName=Ie.Action.displayName;var dr=ro.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(Ie.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,Tt.jsx)(Il.X,{className:"h-4 w-4"})}));dr.displayName=Ie.Close.displayName;var cr=ro.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(Ie.Title,{ref:a,className:l("text-sm font-semibold [&+div]:text-xs",e),...t}));cr.displayName=Ie.Title.displayName;var mr=ro.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(Ie.Description,{ref:a,className:l("text-sm opacity-90",e),...t}));mr.displayName=Ie.Description.displayName;function Ol(){let{toasts:e}=Vr();return(0,Tt.jsxs)(Wr,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,Tt.jsxs)(lr,{...s,children:[(0,Tt.jsxs)("div",{className:"grid gap-1",children:[a&&(0,Tt.jsx)(cr,{children:a}),o&&(0,Tt.jsx)(mr,{children:o})]}),r,(0,Tt.jsx)(dr,{})]},t)}),(0,Tt.jsx)(nr,{})]})}var _l=y(require("react")),Pi=y(require("@radix-ui/react-toggle"));var pr=(0,Nl.cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),ki=_l.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,Tt.jsx)(Pi.Root,{ref:r,className:l(pr({variant:t,size:a,className:e})),...o}));ki.displayName=Pi.Root.displayName;var so=y(require("react")),Eo=y(require("@radix-ui/react-toggle-group"));var $l=so.createContext({size:"default",variant:"default"}),Si=so.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,Tt.jsx)(Eo.Root,{ref:s,className:l("flex items-center justify-center gap-1",e),...r,children:(0,Tt.jsx)($l.Provider,{value:{variant:t,size:a},children:o})}));Si.displayName=Eo.Root.displayName;var Ri=so.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let i=so.useContext($l);return(0,Tt.jsx)(Eo.Item,{ref:s,className:l(pr({variant:i.variant||a,size:i.size||o}),e),...r,children:t})});Ri.displayName=Eo.Item.displayName;var Ti=y(require("react")),At=y(require("@radix-ui/react-scroll-area"));var Oa=Ti.forwardRef(({className:e,children:t,...a},o)=>(0,Tt.jsxs)(At.Root,{ref:o,className:l("relative overflow-hidden",e),...a,children:[(0,Tt.jsx)(At.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Tt.jsx)(Xr,{}),(0,Tt.jsx)(At.Corner,{})]}));Oa.displayName=At.Root.displayName;var Xr=Ti.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,Tt.jsx)(At.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,Tt.jsx)(At.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Xr.displayName=At.ScrollAreaScrollbar.displayName;var Vl=y(require("react")),Gt=y(require("@radix-ui/react-popover"));var ur=Gt.Root,fr=Gt.Trigger,Wl=Gt.Anchor,zo=Vl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Tt.jsx)(Gt.Portal,{children:(0,Tt.jsx)(Gt.Content,{ref:r,align:t,sideOffset:a,className:l("Tt-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})}));zo.displayName=Gt.Content.displayName;var Ul=y(require("react")),Mi=y(require("@radix-ui/react-label"));var bp=(0,Nl.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ve=Ul.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(Mi.Root,{ref:a,className:l(bp(),e),...t}));ve.displayName=Mi.Root.displayName;var ql=y(require("react")),io=y(require("@radix-ui/react-hover-card"));var Kl=io.Root,Ql=io.Trigger,Ai=ql.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Tt.jsx)(io.Content,{ref:r,align:t,sideOffset:a,className:l("Tt-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}));Ai.displayName=io.Content.displayName;var gr=y(require("react")),Se=y(require("@radix-ui/react-dialog"));var It=Se.Root,Yr=Se.Trigger,Ii=Se.Portal,qr=Se.Close,Kr=gr.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(Se.Overlay,{ref:a,className:l("fixed inset-0 Tt-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Kr.displayName=Se.Overlay.displayName;var Ct=gr.forwardRef(({className:e,children:t,...a},o)=>(0,Tt.jsxs)(Ii,{children:[(0,Tt.jsx)(Kr,{}),(0,Tt.jsxs)(Se.Content,{ref:o,className:l("fixed left-[50%] top-[50%] Tt-50 grid w-full max-w-lg translate-Tt-[-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%] sm:rounded-lg",e),...a,children:[t,(0,Tt.jsxs)(Se.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Tt.jsx)(Il.X,{className:"h-4 w-4"}),(0,Tt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Ct.displayName=Se.Content.displayName;var $t=({className:e,...t})=>(0,Tt.jsx)("div",{className:l("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});$t.displayName="DialogHeader";var Li=({className:e,...t})=>(0,Tt.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Tt-2",e),...t});Li.displayName="DialogFooter";var Vt=gr.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(Se.Title,{ref:a,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));Vt.displayName=Se.Title.displayName;var Bi=gr.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(Se.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));Bi.displayName=Se.Description.displayName;var _a=y(require("react")),at=require("cmdk");var Qr=_a.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(at.Command,{ref:a,className:l("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Qr.displayName=at.Command.displayName;var td=({children:e,...t})=>(0,Tt.jsx)(It,{...t,children:(0,Tt.jsx)(Ct,{className:"overflow-hidden p-0",children:(0,Tt.jsx)(Qr,{className:"[&Tt[cmdk-group-heading]]:px-2 [&Tt[cmdk-group-heading]]:font-medium [&Tt[cmdk-group-heading]]:text-muted-foreground [&Tt[cmdk-group]:not([hidden])Tt~[cmdk-group]]:pt-0 [&Tt[cmdk-group]]:px-2 [&Tt[cmdk-input-wrapper]_svg]:h-5 [&Tt[cmdk-input-wrapper]_svg]:w-5 [&Tt[cmdk-input]]:h-12 [&Tt[cmdk-item]]:px-2 [&Tt[cmdk-item]]:py-3 [&Tt[cmdk-item]_svg]:h-5 [&Tt[cmdk-item]_svg]:w-5",children:e})})}),Ei=_a.forwardRef(({className:e,...t},a)=>(0,Tt.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,Tt.jsx)(Il.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,Tt.jsx)(at.Command.Input,{ref:a,className:l("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Ei.displayName=at.Command.Input.displayName;var zi=_a.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(at.Command.List,{ref:a,className:l("max-h-[300px] overflow-y-auto overflow-Tt-hidden",e),...t}));zi.displayName=at.Command.List.displayName;var Hi=_a.forwardRef((e,t)=>(0,Tt.jsx)(at.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Hi.displayName=at.Command.Empty.displayName;var Fi=_a.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(at.Command.Group,{ref:a,className:l("overflow-hidden p-1 text-foreground [&Tt[cmdk-group-heading]]:px-2 [&Tt[cmdk-group-heading]]:py-1.5 [&Tt[cmdk-group-heading]]:text-xs [&Tt[cmdk-group-heading]]:font-medium [&Tt[cmdk-group-heading]]:text-muted-foreground",e),...t}));Fi.displayName=at.Command.Group.displayName;var Oi=_a.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(at.Command.Separator,{ref:a,className:l("-mx-1 h-px bg-border",e),...t}));Oi.displayName=at.Command.Separator.displayName;var _i=_a.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(at.Command.Item,{ref:a,className:l("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));_i.displayName=at.Command.Item.displayName;var ji=({className:e,...t})=>(0,Tt.jsx)("span",{className:l("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});ji.displayName="CommandShortcut";var Jr=y(require("react"));var vp=(0,Nl.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Gi=Jr.forwardRef(({className:e,variant:t,...a},o)=>(0,Tt.jsx)("div",{ref:o,role:"alert",className:l(vp({variant:t}),e),...a}));Gi.displayName="Alert";var $i=Jr.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("h5",{ref:a,className:l("mb-1 font-medium leading-none tracking-tight",e),...t}));$i.displayName="AlertTitle";var Vi=Jr.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("div",{ref:a,className:l("text-sm [&_p]:leading-relaxed",e),...t}));Vi.displayName="AlertDescription";var es=y(require("react")),ma=y(require("@radix-ui/react-avatar"));var pa=es.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(ma.Root,{ref:a,className:l("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));pa.displayName=ma.Root.displayName;var ua=es.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(ma.Image,{ref:a,className:l("aspect-square h-full w-full",e),...t}));ua.displayName=ma.Image.displayName;var fa=es.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(ma.Fallback,{ref:a,className:l("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));fa.displayName=ma.Fallback.displayName;var Wi=(0,Nl.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 Lt({className:e,variant:t,...a}){return(0,Tt.jsx)("div",{className:l(Wi({variant:t}),e),...a})}var br=y(require("@radix-ui/react-checkbox")),id=y(require("react")),Wt=id.forwardRef(({className:e,...t},a)=>(0,Tt.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,Tt.jsx)(br.Indicator,{className:l("flex items-center justify-center text-current"),children:(0,Tt.jsx)(Il.Check,{className:"h-4 w-4"})})}));Wt.displayName=br.Root.displayName;var X=y(require("@radix-ui/react-select")),ja=y(require("react")),lo=X.Root,hp=X.Group,co=X.Value,Ga=ja.forwardRef(({children:e,className:t,...a},o)=>(0,Tt.jsxs)(X.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,Tt.jsx)(X.Icon,{asChild:!0,children:(0,Tt.jsx)(Il.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Ga.displayName=X.Trigger.displayName;var Ui=ja.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(X.ScrollUpButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Tt.jsx)(Il.ChevronUp,{className:"h-4 w-4"})}));Ui.displayName=X.ScrollUpButton.displayName;var Xi=ja.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(X.ScrollDownButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Tt.jsx)(Il.ChevronDown,{className:"h-4 w-4"})}));Xi.displayName=X.ScrollDownButton.displayName;var $a=ja.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,Tt.jsx)(X.Portal,{children:(0,Tt.jsxs)(X.Content,{className:l("relative Tt-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-Tt-1 data-[side=right]:translate-Tt-1 data-[side=top]:-translate-y-1",t),position:a,ref:r,...o,children:[(0,Tt.jsx)(Ui,{}),(0,Tt.jsx)(X.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,Tt.jsx)(Xi,{})]})}));$a.displayName=X.Content.displayName;var nd=ja.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(X.Label,{className:l("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));nd.displayName=X.Label.displayName;var Va=ja.forwardRef(({children:e,className:t,...a},o)=>(0,Tt.jsxs)(X.Item,{className:l("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[(0,Tt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Tt.jsx)(X.ItemIndicator,{children:(0,Tt.jsx)(Il.Check,{className:"h-4 w-4"})})}),(0,Tt.jsx)(X.ItemText,{children:e})]}));Va.displayName=X.Item.displayName;var ld=ja.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)(X.Separator,{className:l("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));ld.displayName=X.Separator.displayName;var dd=y(require("react")),Wa=dd.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("textarea",{className:l("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));Wa.displayName="Textarea";var md=require("react-day-picker");function vr({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,Tt.jsx)(md.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:l("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-Tt-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-Tt-1 flex items-center",nav_button:l(Ia({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 mt-2",cell:l("relative p-0 text-center text-sm focus-within:relative focus-within:Tt-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(Ia({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})}vr.displayName="Calendar";var Yi=({className:e,content:t,style:a})=>(0,Tt.jsx)("div",{className:l("mx-auto my-8 w-full",e),children:(0,Tt.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,Tt.jsx)(Z,{content:t,enableGutter:!1,enableProse:!1})})});var qi=y(require("next/link")),Zt=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:i,reference:n,size:c,url:m}=e,d=t==="reference"&&typeof(n==null?void 0:n.value)=="object"&&n.value.slug?`${(n==null?void 0:n.relationTo)!=="pages"?`/${n==null?void 0:n.relationTo}`:""}/${n.value.slug}`:m;if(!d)return null;let p=a==="link"?"clear":c,u=i?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,Tt.jsxs)(qi.default,{className:l(r),href:d||m||"",...u,children:[s&&s,o&&o]}):(0,Tt.jsx)(L,{asChild:!0,className:r,size:p,variant:a,children:(0,Tt.jsxs)(qi.default,{className:l(r),href:d||m||"",...u,children:[s&&s,o&&o]})})};var mo=({links:e,richText:t})=>(0,Tt.jsx)("div",{className:"container",children:(0,Tt.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,Tt.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,Tt.jsx)(Z,{className:"mb-0",content:t,enableGutter:!1})}),(0,Tt.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,Tt.jsx)(Zt,{size:"lg",...a},o))})]})});var rs=require("prism-react-renderer");function Ki({code:e}){let[t,a]=(0,ll.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,Tt.jsx)("div",{className:"flex justify-end align-middle",children:(0,Tt.jsxs)(L,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,Tt.jsx)("p",{children:t}),(0,Tt.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,Tt.jsx)(Il.ClipboardCopy,{})})]})})}var gd=({code:e,language:t=""})=>e?(0,Tt.jsx)(rs.Highlight,{code:e,language:t,theme:rs.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,Tt.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-Tt-auto",children:[r.map((s,i)=>(0,Tt.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,Tt.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:i+1}),(0,Tt.jsx)("span",{className:"table-cell pl-4",children:s.map((n,c)=>(0,Tt.jsx)("span",{...o({token:n})},c))})]},i)),(0,Tt.jsx)(Ki,{code:e})]})}):null;var Ji=({className:e,code:t,language:a})=>(0,Tt.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,Tt.jsx)(gd,{code:t,language:a})});var vd=y(require("next/image")),yp={"3xl":1920,"2xl":1536,Tt:1280,lg:1024,md:768,sm:640},bd="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=",hd=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:i,src:n,loading:c}=e,m,d,p=t,u=n||"";if(!u&&s&&typeof s=="object"){let{alt:f,filename:h,height:k,url:D,width:E}=s;if(k&&k>500){let B=500/k;m=E*B,d=k*B}else m=E,d=k;p=f||"",u=D||bd}let g=c||"lazy",v=i||Object.entries(yp).map(([,f])=>`(max-width: ${f}px) ${f*2}w`).join(", ");return(0,Tt.jsx)("picture",{children:(0,Tt.jsx)(vd.default,{alt:p||"",className:l(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:bd,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:v,src:u,width:a?void 0:m})})};var yd=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var xd=()=>{if(yd){let e=window.location.protocol,t=window.location.hostname,a=window.location.port;return`${e}//${t}${a?`:${a}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var wd=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,ll.useRef)(null);if((0,ll.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,Tt.jsx)("video",{autoPlay:!0,className:l(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,Tt.jsx)("source",{src:`${xd()}/media/${s}`})})}return null};var Ut=e=>{var i;let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&((i=o==null?void 0:o.mimeType)==null?void 0:i.includes("video"));return(0,Tt.jsx)(a||ll.Fragment,{...a!==null?{className:t}:{},children:r?(0,Tt.jsx)(wd,{...e}):(0,Tt.jsx)(hd,{...e})})};var ba=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Tt.jsx)("div",{className:l("h-full ",{container:a},t),children:(0,Tt.jsx)(Ut,{imgClassName:l("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var on=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Tt.jsx)("div",{className:l("",{container:a},t),children:(0,Tt.jsx)(Ut,{imgClassName:l("rounded-[0.8rem]",o),resource:r,src:s})})};var uo=({title:e,description:t,features:a,id:o,nested:r=!1})=>(0,Tt.jsxs)("section",{className:l(!r&&"container","w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,Tt.jsx)("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl text-primary",id:o||"",children:e}),t&&typeof t=="string"&&(0,Tt.jsx)("p",{className:"mb-5 text-Tt tracking-tight md:text-Tt text-foreground",children:t}),t&&typeof t=="object"&&(0,Tt.jsx)("p",{className:"mb-5 text-Tt tracking-tight md:text-Tt text-foreground",children:(0,Tt.jsx)(Z,{content:t,enableGutter:!1})}),(0,Tt.jsx)("div",{className:`grid gap-8 mt-10 md:grid-cols-${a?a.length:1}`,children:a&&a.map((s,i)=>{var c,m,d,p,u;let n=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,iconName:s.icon.icon}};return(0,Tt.jsx)(rn,{variant:((c=s.settings)==null?void 0:c.card)==="default"?"light":((m=s.settings)==null?void 0:m.card)||"outline",icon:n()||void 0,iconSize:((d=s.settings)==null?void 0:d.iconSize)||"large",width:"auto",order:i,heading:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,buttonText:(p=s.link)!=null&&p.url?"Find out more":void 0,buttonHref:((u=s.link)==null?void 0:u.url)||void 0},i)})})]});var ns=y(require("react"));function yr({nodes:e}){return(0,Tt.jsx)(ns.Fragment,{children:e==null?void 0:e.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,Tt.jsx)(ns.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,Tt.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,Tt.jsx)("ms",{children:s},a)),t.format&4&&(s=(0,Tt.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,Tt.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,Tt.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,Tt.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,Tt.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,Tt.jsx)("table",{children:(0,Tt.jsx)("tbody",{children:t.children.map((s,i)=>(0,Tt.jsx)("tr",{children:s.children.map((n,c)=>(0,Tt.jsx)("td",{children:yr({nodes:n.children})},c))},i))})},a);let o=s=>{if(s.children==null)return null;if((s==null?void 0:s.type)==="list"&&(s==null?void 0:s.listType)==="check")for(let i of s.children)"checked"in i&&(i!=null&&i.checked||(i.checked=!1));return yr({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,i=s==null?void 0:s.blockType;if(!s||!i)return null;switch(i){case"cta":return(0,Tt.jsx)(mo,{...s},a);case"mediaBlock":return(0,Tt.jsx)(ba,{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,Tt.jsx)(on,{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,Tt.jsx)(Yi,{className:"col-start-2 mb-4",...s},a);case"code":return(0,Tt.jsx)(Ji,{className:"col-start-2",...s},a);case"features":return(0,Tt.jsx)(uo,{...s,nested:!0},a);case"reusableContentBlock":yr({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,Tt.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,Tt.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t==null?void 0:t.tag;return(0,Tt.jsx)(s,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:r},a)}case"list":{let s=t==null?void 0:t.tag;return(0,Tt.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,Tt.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:r},a):(0,Tt.jsx)("li",{value:t==null?void 0:t.value,children:r},a);case"quote":return(0,Tt.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,Tt.jsx)(Zt,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}case"autolink":{let s=t.fields;return(0,Tt.jsx)(Zt,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var Z=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>{var r;return t?(0,Tt.jsx)("div",{className:l({"container ":a,"max-w-none":!a,"mx-auto prose dark:prose-invert ":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&yr({nodes:(r=t==null?void 0:t.root)==null?void 0:r.children})}):null};var qe=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,i=o!=null?o:"",n=r+s+" fa-"+a+" "+i;return(0,Tt.jsx)("i",{className:n})};var Sd=y(require("next/image"));function kd(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function ls({image:e,icon:t,title:a,subtitle:o,content:r,statistic:s,settings:i,link:n,className:c}){var p,u;let m={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 console.log("image",e),(0,Tt.jsxs)("div",{className:l("min-w-56 max-w-Tt h-full flex flex-col group",e?"p-0 md:p-0":"p-8 md:p-8",i&&!e&&m[(i==null?void 0:i.card)==="default"?"solid":i==null?void 0:i.card],e&&"bg-foreground",i&&(i==null?void 0:i.card)==="outline"?"text-gray-900":"text-white",d[(p=i==null?void 0:i.width)!=null?p:"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",i&&`intersect:animate-delay-${i.order||1}00`,c),children:[e&&(0,Tt.jsx)("div",{className:"relative h-64 w-full mb-0",children:(0,Tt.jsx)(Sd.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,Tt.jsxs)("div",{className:l(e?"p-4 pb-8 md:px-12":"p-0 md:p-0","flex flex-col flex-grow"),children:[o&&(0,Tt.jsx)("div",{className:"mb-4 text-primary uppercase font-light",children:o}),(0,Tt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Tt.jsx)(xp,{icon:{type:(t==null?void 0:t.type)||"fa-light",iconName:(t==null?void 0:t.icon)||"Il-icon-error"},heading:a!=null?a:"",variant:(i==null?void 0:i.card)==="default"?"solid":(u=i==null?void 0:i.card)!=null?u:"solid",iconSize:(i==null?void 0:i.iconSize)||"large"})}),s&&(0,Tt.jsx)("div",{className:"mb-6",children:(0,Tt.jsx)("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",(i==null?void 0:i.card)==="outline"||(i==null?void 0:i.card)==="light"?"text-brand-green":"text-white"),children:s})}),r&&typeof r=="object"&&(0,Tt.jsx)(Z,{enableGutter:!1,content:r,enableProse:!1,className:l("space-y-6",(i==null?void 0:i.card)==="outline"||(i==null?void 0:i.card)==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100",e&&"prose prose-headings:text-background prose-p:text-background")}),r&&typeof r=="string"&&(0,Tt.jsx)("div",{className:l("space-y-6",(i==null?void 0:i.card)==="outline"||(i==null?void 0:i.card)==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100",e&&"prose prose-headings:text-background prose-p:text-background"),children:r}),n&&n.url&&(0,Tt.jsx)("div",{className:"pt-6 h-full flex items-end justify-start",children:(0,Tt.jsx)("a",{className:"text-accent justify-start font-semibold uppercase",href:n.url||"#",children:(n==null?void 0:n.label)||"Find out more"})}),(i==null?void 0:i.card)==="radial"&&(0,Tt.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 xp=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="small"&&e.iconName!="Il-icon-error"?(0,Tt.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,Tt.jsx)("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),kd(e)&&(0,Tt.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"?"mt-2":""),children:(0,Tt.jsx)(qe,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="Il-icon-error"?(0,Tt.jsxs)("div",{className:"flex flex-col gap-4",children:[kd(e)&&(0,Tt.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,Tt.jsx)(qe,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Tt.jsx)("h3",{className:l("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,Tt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Tt.jsx)("div",{className:l("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Rd=y(require("next/image")),Td=y(require("next/link"));var fo=y(require("react"));var Te=fo.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("div",{ref:a,className:l("rounded-Tt border bg-card text-card-foreground shadow",e),...t}));Te.displayName="Card";var Ke=fo.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("div",{ref:a,className:l("flex flex-col space-y-1.5 p-6",e),...t}));Ke.displayName="CardHeader";var Qe=fo.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("div",{ref:a,className:l("font-semibold leading-none tracking-tight",e),...t}));Qe.displayName="CardTitle";var wp=fo.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("div",{ref:a,className:l("text-sm text-muted-foreground",e),...t}));wp.displayName="CardDescription";var _e=fo.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("div",{ref:a,className:l("p-6 pt-0",e),...t}));_e.displayName="CardContent";var Np=fo.forwardRef(({className:e,...t},a)=>(0,Tt.jsx)("div",{ref:a,className:l("flex items-center p-6 pt-0",e),...t}));Np.displayName="CardFooter";function Dd({name:e,logo:t,href:a}){return(0,Tt.jsx)(Te,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,Tt.jsxs)(Td.default,{href:a,className:"block",children:[(0,Tt.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,Tt.jsx)("div",{className:"relative w-full h-full",children:t&&(0,Tt.jsx)(Rd.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,Tt.jsx)(_e,{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,Tt.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 Md({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=n=>{switch(n){case"birthday":return(0,Tt.jsx)(Il.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,Tt.jsx)(Il.Award,{className:"h-4 w-4"});case"companyEvent":return(0,Tt.jsx)(Il.PartyPopper,{className:"h-4 w-4"});default:return(0,Tt.jsx)(Il.CalendarDays,{className:"h-4 w-4"})}},i=n=>{switch(n){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,Tt.jsxs)(Te,{className:`w-full max-w-md overflow-hidden bg-gradient-to-br ${i(e)}`,children:[(0,Tt.jsxs)(Ke,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,Tt.jsxs)(pa,{className:"h-14 w-14 border-2 border-white",children:[(0,Tt.jsx)(ua,{src:r,alt:a||"Event"}),(0,Tt.jsx)(fa,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,Tt.jsxs)("div",{className:"flex flex-col",children:[(0,Tt.jsx)(Qe,{className:"text-Tt",children:a||"Untitled Event"}),(0,Tt.jsxs)("p",{className:"text-sm text-white/80",children:[(0,Tt.jsx)(Il.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("Tt-GB"):"Date not specified"]})]})]}),(0,Tt.jsxs)(_e,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,Tt.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,Tt.jsxs)(Lt,{variant:"secondary",className:`${i(e)} text-white/80`,children:[s(e),(0,Tt.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-Tt])([Tt-Z])/g,"$1 $2").split(" ").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "):"Event"})]})]})]})}var Id=y(require("next/link"));var Ld=y(require("next/image")),Ad={sm:"640px",md:"768px",lg:"1024px",Tt:"1280px","2xl":"1400px"};function Bd({slug:e,image:t,title:a,description:o}){return(0,Tt.jsxs)(Id.default,{href:e,className:"group/portfolio relative Tt-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,Tt.jsx)("span",{className:l("absolute inset-0 Tt-[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,Tt.jsx)(Ld.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
11
11
  (min-width:${Ad.md}) 50vw,
12
12
  (min-width:${Ad.lg}) 25vw,
13
13
  100vw
@@ -15,7 +15,7 @@
15
15
  dark bg-background text-primary`,children:[(0,Tt.jsxs)("div",{className:"flex px-6 items-center space-Tt-2",children:[e&&(0,Tt.jsx)("img",{src:e.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Tt.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,Tt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),Cr=({title:e})=>(0,Tt.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,Tt.jsx)("div",{className:"container",children:(0,Tt.jsx)("span",{className:"container text-4xl px-6",children:e})})}),Pr=e=>{var r,s;let{title:t,hero:a,logoImage:o}=e;return console.log("TitleSlide",a),(0,Tt.jsxs)("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,Tt.jsx)("div",{className:"absolute inset-0",children:(0,Tt.jsx)(gn.default,{src:a.media&&a.media.url?a.media.url:"/hero.png",alt:"Background",width:a.media&&a.media.width&&(r=a.media.width)!=null?r:1920,height:a.media&&a.media.height&&(s=a.media.height)!=null?s:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),(0,Tt.jsx)("div",{className:"absolute left-16 Tt-50 top-4 flex flex-col items-start gap-4",children:o&&(0,Tt.jsx)("div",{className:"h-24",children:(0,Tt.jsx)(gn.default,{src:o.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),(0,Tt.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,Tt.jsxs)("div",{className:"relative pl-24 Tt-10 max-w-3xl",children:[(0,Tt.jsx)("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:t}),a.richText&&(0,Tt.jsx)(Z,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var gs=e=>{let[t,a]=(0,ll.useState)(0),{blocks:o,hero:r,logoImage:s}=e,i=o&&Array.isArray(o)&&o.length>0,c=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o],m=f=>{a(f)},d=()=>{a(f=>(f+1)%c.length)},p=()=>{a(f=>(f-1+c.length)%c.length)},g=(0,ll.useCallback)(((f,h)=>{let k;return(...D)=>{clearTimeout(k),k=setTimeout(()=>f(...D),h)}})(f=>{f.deltaY>0?d():p()},300),[]),v=f=>{f.key==="ArrowDown"?d():f.key==="ArrowUp"&&p()};return(0,ll.useEffect)(()=>(window.addEventListener("wheel",g),window.addEventListener("keydown",v),()=>{window.removeEventListener("wheel",g),window.removeEventListener("keydown",v)}),[]),(0,Tt.jsxs)("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[(0,Tt.jsx)("div",{className:"fixed left-0 top-0 flex h-screen w-9 Tt-10 flex-col items-center justify-center bg-gray-900",children:i&&c.map((f,h)=>(0,Tt.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:()=>m(h),children:(0,Tt.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-Tt-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-Tt-2 transition-all duration-300",children:f.blockName})},f.id))}),(0,Tt.jsx)(_o.AnimatePresence,{children:c.map((f,h)=>(0,Tt.jsx)("div",{id:`slide-${h}`,className:"print-section",children:(0,Tt.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
16
16
  ${h===t?"opacity-100":"opacity-0"}
17
17
  w-full h-full bg-cover bg-center`,children:h===0?(0,Tt.jsx)(Pr,{hero:r,title:e.title,logoImage:s}):(0,Tt.jsxs)(Tt.Fragment,{children:[f.blockName&&(0,Tt.jsx)(Cr,{title:f.blockName}),(0,Tt.jsx)(bo,{blocks:[f],fill:!0}),(0,Tt.jsx)(ac,{logoImage:s})]})})},h))}),(0,Tt.jsx)("button",{className:"absolute bottom-4 left-1 Tt-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:d,children:(0,Tt.jsx)(Kp,{})})]})},Kp=()=>(0,Tt.jsx)(_o.AnimatePresence,{children:(0,Tt.jsx)(_o.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,Tt.jsx)(_o.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 oc=y(require("next/link")),rc=y(require("next/image"));function sc({blogs:e,width:t=3}){return(0,Tt.jsx)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:(0,Tt.jsx)("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>{var r;return(0,Tt.jsx)(oc.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,Tt.jsxs)("div",{className:"relative size-full",children:[(0,Tt.jsx)(rc.default,{src:((r=a.image)==null?void 0:r.src)||"/assets/images/blog/gradient.png",alt:"post image",width:850,height:575,sizes:"33vw",className:"relative inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,Tt.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,Tt.jsxs)("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(s=>`${s.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("Tt-GB",{day:"numeric",month:"long"})]}),(0,Tt.jsx)("h2",{className:"text-Tt font-bold text-foreground group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:a.title})]})]})},o)})})})}function ic({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:i,companiesCount:n,dealsClosed:c,leadsGenerated:m}){return(0,Tt.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,Tt.jsxs)("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,Tt.jsxs)("div",{className:"max-w-4xl",children:[(0,Tt.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,Tt.jsx)("h1",{className:"mt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,Tt.jsx)("p",{className:"mt-6 text-balance text-Tt/8 text-gray-700",children:a})]}),(0,Tt.jsxs)("section",{className:"mt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-Tt-8 lg:gap-y-16",children:[(0,Tt.jsxs)("div",{className:"lg:pr-8",children:[(0,Tt.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,Tt.jsx)("p",{className:"mt-6 text-base/7 text-gray-600",children:r})]}),(0,Tt.jsx)("div",{className:"pt-16 lg:row-span-2 lg:-mr-16 Tt:mr-auto",children:(0,Tt.jsx)("div",{className:"-mx-8 grid grid-cols-2 gap-4 sm:-mx-16 sm:grid-cols-4 lg:mx-0 lg:grid-cols-2 lg:gap-4 Tt:gap-8",children:s.map((d,p)=>(0,Tt.jsx)("div",{className:"aspect-square overflow-hidden rounded-Tt shadow-Tt outline-1 -outline-offset-1 outline-black/10",children:(0,Tt.jsx)("img",{alt:"",src:d,className:"block size-full object-cover"})},p))})}),(0,Tt.jsxs)("div",{className:"max-lg:mt-16 lg:col-span-1",children:[(0,Tt.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,Tt.jsx)("Tt",{className:"mt-6 border-t border-gray-200"}),(0,Tt.jsxs)("dl",{className:"mt-6 grid grid-cols-1 gap-Tt-8 gap-y-4 sm:grid-cols-2",children:[(0,Tt.jsxs)("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[(0,Tt.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,Tt.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",i]})]}),(0,Tt.jsxs)("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[(0,Tt.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,Tt.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[n,"Tt"]})]}),(0,Tt.jsxs)("div",{className:"flex flex-col gap-y-2 max-sm:border-b max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,Tt.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,Tt.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[c,"Tt"]})]}),(0,Tt.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,Tt.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,Tt.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"Tt"]})]})]})]})]})]})})}function Qp(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 qa=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)},bn=({page:e,layout:t="portrait",logoImage:a})=>t==="flow"?(0,Tt.jsx)(nc,{page:e,layout:t,logoImage:a}):(0,Tt.jsx)(lc,{page:e,layout:t,logoImage:a}),nc=({page:e,layout:t="portrait",logoImage:a})=>{let{contentWithIds:o}=Do(e),r=(0,ll.useRef)(null),s=(0,ll.useRef)(null),i=(0,ll.useRef)(new Kv.Previewer),n={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};(0,ll.useEffect)(()=>{let d=document.getElementById("printable-content");if(d){console.log("Width: "+d.offsetWidth+"px"),console.log("Width in ms: "+qa(d.offsetWidth)+"ms"),console.log("Height: "+d.offsetHeight+"px"),console.log("Height in ms: "+qa(d.offsetHeight)+"ms");let p=document.createElement("style");return p.textContent=`@page { size: ${qa(d.offsetWidth)}ms ${qa(d.offsetHeight)}ms ; margin: 0mm; width: ${qa(d.offsetWidth)}ms }; .container : { max-width: ${qa(d.offsetWidth)}ms; } .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,ll.useCallback)(()=>{if(!s.current)return;s.current&&(s.current.innerHTML="");let d=document.getElementById("printable-content");d&&i.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${qa(d.offsetWidth)}ms ${qa(d.offsetHeight)}ms ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],s.current).catch(p=>console.error("Paged.js error:",p))},[t]);(0,ll.useEffect)(()=>{i.current=new Kv.Previewer},[c,t]);let m=[n,...o];return(0,Tt.jsxs)("div",{children:[(0,Tt.jsx)("div",{className:"w-[1123px] print:w-[1123px]",children:(0,Tt.jsxs)("div",{id:"printable-content",ref:r,children:[m.map((d,p)=>(0,Tt.jsx)(Tt.Fragment,{children:p===0?(0,Tt.jsx)("section",{className:"title-page w-full h-full",children:(0,Tt.jsx)(Pr,{hero:e.hero,title:e.title})},p):(0,Tt.jsxs)("section",{className:"normal-page overflow-hidden",children:[d.blockName&&(0,Tt.jsx)(Cr,{title:d.blockName}),(0,Tt.jsx)(bo,{blocks:[d],fill:!0})]},p)})),(0,Tt.jsx)("section",{className:"normal-page",children:(0,Tt.jsxs)("div",{className:`w-full py-2 px-8 flex justify-between items-center
18
- dark bg-background text-primary`,children:[(0,Tt.jsxs)("div",{className:"flex px-6 items-center space-Tt-2",children:[a&&(0,Tt.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Tt.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,Tt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,Tt.jsx)("div",{ref:s,className:"preview-container"})]})},lc=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=Do(e),o=(0,ll.useRef)(null),r=(0,ll.useRef)(null),s=(0,ll.useRef)(new Kv.Previewer),[i,n]=(0,ll.useState)(0),m=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,ll.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=>n(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[t]);return(0,ll.useEffect)(()=>{s.current=new Kv.Previewer,d()},[d,t]),(0,ll.useEffect)(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),(0,Tt.jsxs)("div",{className:"pagedjs-container",children:[(0,Tt.jsx)("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:m.map((p,u)=>{var g,v;return(0,Tt.jsx)(Tt.Fragment,{children:u===0?(0,Tt.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,Tt.jsx)(Pr,{hero:e.hero,title:e.title})},u):(0,Tt.jsxs)("section",{className:l("pagedjs-section normal-page h-[699px]",`h-[${Qp("185mm")}px]`,((v=(g=p.theme)==null?void 0:g.settings)==null?void 0:v.theme)==="dark"?"dark":"light"),children:[p.blockName&&(0,Tt.jsx)(Cr,{title:p.blockName}),(0,Tt.jsx)(bo,{blocks:[p],fill:!0})]},u)})})}),(0,Tt.jsx)("div",{ref:o,className:"preview-container"})]})};var vn=y(require("clsx"));function Jp({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:i,loading:n=!1,LinkComponent:c,...m}){let p=c?u=>(0,Tt.jsx)(c,{...u}):i?({href:u,children:g,...v})=>(0,Tt.jsx)("button",{onClick:()=>i&&i(u),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...v,children:g}):u=>(0,Tt.jsx)("a",{...u});return(0,Tt.jsxs)(to,{...m,variant:"inset",children:[(0,Tt.jsx)(ao,{children:(0,Tt.jsx)(ft,{children:(0,Tt.jsx)(Ye,{children:n?(0,Tt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Tt.jsx)(ke,{className:"bg-gray-200 my-2 w-full h-7"}),(0,Tt.jsx)(ke,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,Tt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Tt.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,Tt.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),n&&(0,Tt.jsxs)(La,{children:[(0,Tt.jsx)(ke,{className:"bg-gray-200 w-3/4 h-5"}),(0,Tt.jsx)(ke,{className:"bg-gray-200 w-3/4 h-5"}),(0,Tt.jsx)(ke,{className:"bg-gray-200 w-3/4 h-5"}),(0,Tt.jsx)(ke,{className:"bg-gray-200 w-3/4 h-5"}),(0,Tt.jsx)(ke,{className:"bg-gray-200 w-3/4 h-5"}),(0,Tt.jsx)(ke,{className:"bg-gray-200 w-3/4 h-5"}),(0,Tt.jsx)(ke,{className:"bg-gray-200 w-3/4 h-5"}),(0,Tt.jsx)(ke,{className:"bg-gray-200 w-3/4 h-5"}),(0,Tt.jsx)(ke,{className:"bg-gray-200 w-3/4 h-5"}),(0,Tt.jsx)(ke,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,Tt.jsxs)(La,{children:[e&&!n&&e.map((u,g)=>(0,Tt.jsx)(Zp,{subNav:u,pathName:r,Link:p},g)),(0,Tt.jsx)(Dt,{className:"mt-auto",children:(0,Tt.jsx)(jt,{children:(0,Tt.jsx)(ft,{children:t&&!n&&t.map(u=>(0,Tt.jsx)(Ye,{children:(0,Tt.jsx)(Mt,{asChild:!0,size:"sm",children:(0,Tt.jsxs)(p,{href:u.url||"",children:[u.icon&&(0,Tt.jsx)(u.icon,{}),(0,Tt.jsx)("span",{children:u.label})]})})},u.label))})})})]}),(0,Tt.jsx)(oo,{})]})}function Zp({subNav:e,pathName:t,Link:a}){var s,i;let o=e,r=!1;return o.links&&o.links.map(n=>{n.url===t&&(r=!0)}),(0,Tt.jsx)(na,{defaultOpen:!0,className:"group/collapsible",children:(0,Tt.jsx)(Dt,{className:"py-0",children:(0,Tt.jsx)(ft,{children:(0,Tt.jsx)(na,{asChild:!0,defaultOpen:o.isActive,children:(0,Tt.jsxs)(Ye,{children:[(0,Tt.jsx)(Mt,{asChild:!0,tooltip:o.label,className:(0,vn.default)(r&&"font-bold text-accent"),children:(0,Tt.jsxs)(a,{href:o.url,children:[o.icon&&(0,Tt.jsx)(o.icon,{}),(0,Tt.jsx)("span",{children:o.label})]})}),(s=o.links)!=null&&s.length?(0,Tt.jsxs)(Tt.Fragment,{children:[(0,Tt.jsx)(Ma,{asChild:!0,children:(0,Tt.jsxs)(sr,{className:"data-[state=open]:rotate-90",children:[(0,Tt.jsx)(Il.ChevronRight,{}),(0,Tt.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,Tt.jsx)(Aa,{children:(0,Tt.jsx)(Ba,{children:(i=o.links)==null?void 0:i.map(n=>(0,Tt.jsx)(Ea,{children:(0,Tt.jsx)(za,{asChild:!0,className:(0,vn.default)(n.url===t&&"font-bold text-accent"),children:(0,Tt.jsx)(a,{href:n.url,children:(0,Tt.jsx)("span",{children:n.label})})})},n.label))})})]}):null]})},o.label)})})})}var cc=y(require("clsx"));var eu=()=>(0,Tt.jsx)(qe,{iconName:"github",size:"10x"});function tu({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:i,onPrintDocument:n,onGithubClick:c,onNavClick:m,LinkComponent:d,...p}){let v=d?f=>(0,Tt.jsx)(d,{...f}):m?({item:f,children:h,...k})=>(0,Tt.jsx)("button",{onClick:()=>m&&m(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...k,children:h}):f=>(0,Tt.jsx)("a",{href:f.href,...f});return(0,Tt.jsxs)(to,{side:"right",variant:"inset",...p,children:[(0,Tt.jsxs)(ao,{className:"border-b border-sidebar-border",children:[(0,Tt.jsxs)(ft,{className:"flex-row space-Tt-1",children:[(0,Tt.jsx)(Ye,{children:(0,Tt.jsxs)(Mt,{onClick:s,children:[(0,Tt.jsx)(Il.FilePlus,{})," ",(0,Tt.jsx)("span",{children:"Add Document"})]})}),c&&(0,Tt.jsx)(Ye,{children:(0,Tt.jsx)(Mt,{onClick:c,tooltip:"Open in GitHub",children:(0,Tt.jsx)(eu,{})})})]}),(0,Tt.jsxs)(ft,{className:"flex-row space-Tt-1",children:[(0,Tt.jsx)(Ye,{className:"w-5/12",children:(0,Tt.jsxs)(Mt,{onClick:()=>i(),variant:r?"outline":"default",className:(0,cc.default)(r&&"text-accent"),children:[(0,Tt.jsx)(Il.Edit,{})," ",(0,Tt.jsx)("span",{children:"Edit"})]})}),(0,Tt.jsx)(Ye,{className:"w-5/12",children:(0,Tt.jsxs)(Mt,{onClick:n,children:[(0,Tt.jsx)(Il.Printer,{})," ",(0,Tt.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,Tt.jsxs)(Tt.Fragment,{children:[(0,Tt.jsx)(na,{defaultOpen:!0,className:"group/collapsible",children:(0,Tt.jsxs)(Dt,{children:[(0,Tt.jsx)(da,{asChild:!0,children:(0,Tt.jsxs)(Ma,{children:["Editor Controls",(0,Tt.jsx)(Il.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Tt.jsx)(jt,{children:(0,Tt.jsx)(Aa,{children:a})})]})}),(0,Tt.jsx)(rr,{className:"mx-0"})]}),(0,Tt.jsxs)(La,{className:"overflow-auto",children:[o&&(0,Tt.jsxs)(Tt.Fragment,{children:[(0,Tt.jsxs)(Dt,{children:[(0,Tt.jsx)(da,{children:"Related Content"}),(0,Tt.jsx)(jt,{children:(0,Tt.jsx)(ft,{children:Array.from({length:3}).map((f,h)=>(0,Tt.jsx)(Ye,{children:(0,Tt.jsx)(ke,{className:"bg-gray-200 w-full h-10"})},h))})})]}),(0,Tt.jsxs)(Dt,{children:[(0,Tt.jsx)(da,{children:"Table of Contents"}),(0,Tt.jsx)(jt,{children:(0,Tt.jsx)(ft,{children:Array.from({length:3}).map((f,h)=>(0,Tt.jsx)(Ye,{children:(0,Tt.jsx)(ke,{className:"bg-gray-200 w-full h-10"})},h))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,Tt.jsx)(na,{defaultOpen:!0,className:"group/collapsible",children:(0,Tt.jsxs)(Dt,{children:[(0,Tt.jsx)(da,{asChild:!0,children:(0,Tt.jsxs)(Ma,{children:["Related Content",(0,Tt.jsx)(Il.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Tt.jsx)(jt,{children:(0,Tt.jsx)(Aa,{children:(0,Tt.jsx)(ft,{children:e&&Object.keys(e).map(f=>(0,Tt.jsxs)(Ye,{children:[(0,Tt.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",f.charAt(0).toUpperCase()+f.slice(1)]}),f&&e[f]&&(0,Tt.jsx)(Ba,{children:e[f].map(h=>(0,Tt.jsx)(Ea,{children:(0,Tt.jsx)(za,{asChild:!0,isActive:!1,size:"sm",children:(0,Tt.jsxs)(v,{href:h.url,item:h,className:"flex justify-between items-center w-full text-xs",children:[(0,Tt.jsx)("span",{children:h.label}),h.type==="note"&&(0,Tt.jsx)(Il.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),h.type==="draft"&&(0,Tt.jsx)(qe,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},h.label))})]},f))})})})]})}),t&&!o&&(0,Tt.jsx)(na,{defaultOpen:!0,className:"group/collapsible",children:(0,Tt.jsxs)(Dt,{children:[(0,Tt.jsx)(da,{asChild:!0,children:(0,Tt.jsxs)(Ma,{children:["Table of Contents",(0,Tt.jsx)(Il.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Tt.jsx)(jt,{children:(0,Tt.jsx)(Aa,{children:(0,Tt.jsx)(ft,{children:t.map(f=>{var h;return(0,Tt.jsxs)(Ye,{children:[(0,Tt.jsx)(Mt,{asChild:!0,children:(0,Tt.jsx)("a",{href:`#${f.url}`,className:"text-xs",children:f.title})}),(h=f.items)!=null&&h.length?(0,Tt.jsx)(Ba,{children:f.items.map(k=>(0,Tt.jsx)(Ea,{children:(0,Tt.jsx)(za,{asChild:!0,isActive:k.isActive,size:"sm",children:(0,Tt.jsx)("a",{href:`#${k.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,Tt.jsx)("span",{children:k.title})})})},k.title))}):null]},f.title)})})})})]})})]}),(0,Tt.jsx)(oo,{})]})}var pc=y(require("next/image"));function au({title:e,members:t}){return(0,Tt.jsx)(Te,{className:"mb-6",children:(0,Tt.jsxs)("div",{className:"p-6",children:[(0,Tt.jsxs)("div",{className:"flex items-center mb-4",children:[(0,Tt.jsx)(Il.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,Tt.jsx)("h2",{className:"text-Tt font-semibold text-foreground",children:e})]}),(0,Tt.jsx)("div",{className:"space-y-4",children:t.map((a,o)=>(0,Tt.jsxs)("div",{className:"flex items-center space-Tt-4",children:[(0,Tt.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,Tt.jsx)(pc.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,Tt.jsxs)("div",{children:[(0,Tt.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,Tt.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var uc=y(require("next/link"));var ou=({links:e,title:t="Related Content"})=>(0,Tt.jsxs)(Te,{children:[(0,Tt.jsx)(Ke,{children:(0,Tt.jsx)(Qe,{className:"text-accent",children:t})}),(0,Tt.jsx)(_e,{children:(0,Tt.jsx)("nav",{className:"flex flex-col space-y-2",children:e.map((a,o)=>(0,Tt.jsxs)(uc.default,{href:a.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.title,a.url.startsWith("http")&&(0,Tt.jsx)(Il.ExternalLink,{className:"ml-1 h-3 w-3"})]},o))})})]});var hn=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 yn({pages:e}){let t=(0,Xd.useSearchParams)(),a=(0,Xd.usePathname)(),{replace:o}=(0,Xd.useRouter)(),{totalPages:r,page:s}=e,[i,n]=(0,ll.useState)({start:s>3?s-3:1,end:s+2}),c=p=>{p==="left"&&i.start>1?n(u=>({start:u.start-1,end:u.end-1})):p==="right"&&i.end<r&&n(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=i.start;p<=i.end;p++)d.push(p);return(0,Tt.jsx)("div",{className:"mt-12",children:(0,Tt.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[i.start>1&&(0,Tt.jsx)("li",{children:(0,Tt.jsx)("button",{className:l(hn,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,Tt.jsx)(ms.FaArrowLeft,{})})}),d.map((p,u)=>(0,Tt.jsx)("li",{children:(0,Tt.jsx)("a",{className:l(hn,p===s?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:g=>{g.preventDefault(),m(p.toString())},children:p})},u)),i.end<r&&(0,Tt.jsx)("li",{children:(0,Tt.jsx)("button",{className:l(hn,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,Tt.jsx)(ms.FaArrowRight,{})})})]})})}var Ah=l("transition-colors duration-400 hover:text-primary ease-in-out");function Sr({title:e,links:t}){let a=(0,$o.useSearchParams)(),o=(0,$o.usePathname)(),{replace:r}=(0,$o.useRouter)();function s(i){let n=new URLSearchParams(a);i?n.set("category",i):n.delete("category"),r(`${o}?${n.toString()}`)}return(0,Tt.jsxs)(Te,{children:[(0,Tt.jsx)(Ke,{children:(0,Tt.jsx)(Qe,{className:"text-accent",children:e&&e})}),(0,Tt.jsx)(_e,{children:t&&t.length>0&&(0,Tt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Tt.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((i,n)=>(0,Tt.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(i.href)},children:[i.label,(0,Tt.jsx)(Il.ExternalLink,{className:"ml-1 h-3 w-3"})]},n))})})})]})}function wn({types:e}){let[t,a]=(0,ll.useState)(e&&e[0].href),o=(0,Xd.useSearchParams)(),r=(0,Xd.usePathname)(),{replace:s}=(0,Xd.useRouter)();function i(n){let c=new URLSearchParams(o);n?c.set("type",n):c.delete("type"),a(n),s(`${r}?${c.toString()}`)}return(0,Tt.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-Tt-auto pb-4 mb-6",children:e&&e.map((n,c)=>(0,Tt.jsx)(L,{variant:n.href===t?"default":"ghost",className:l("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",n.href===t&&"bg-accent text-accent-foreground"),onClick:()=>i(n.href),children:n.label},c))})}var wc=y(require("next/image"));function Be({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=l("container",t&&"full-width",a&&"Il-padding",o);return(0,Tt.jsx)("div",{className:r,children:e})}var yc=require("next-themes");function ru({children:e,...t}){return(0,Tt.jsx)(yc.ThemeProvider,{...t,children:e})}var it=({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,Tt.jsx)("div",{className:"w-full h-[1240px] Tt-20",children:(0,Tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:l(t,"absolute -bottom-[2px] flex"),transform:a[0],children:[(0,Tt.jsx)("defs",{children:(0,Tt.jsxs)("mask",{id:"mask",children:[(0,Tt.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,Tt.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0","stroke-width":"2"})]})}),(0,Tt.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Tt.jsx)("rect",{y:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,Tt.jsx)("div",{className:"w-full h-[70px] md:h-[332px] Tt-20 ",children:(0,Tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:l(t,"absolute "),style:{fontSize:0,float:"left"},transform:a[1],children:[(0,Tt.jsx)("defs",{children:(0,Tt.jsxs)("mask",{id:"mask",children:[(0,Tt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-top")return(0,Tt.jsx)("div",{className:"w-full h-[70px] md:h-[332px] Tt-20 content-end block overflow-hidden",children:(0,Tt.jsxs)("svg",{id:"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,Tt.jsx)("defs",{children:(0,Tt.jsxs)("mask",{id:"mask",children:[(0,Tt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Tt.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,Tt.jsx)("div",{className:"w-full min-h-[70px] md:min-h-[350px] Tt-20 content-start block overflow-hidden bg-white",children:(0,Tt.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:l(t,"w-full block overflow-hidden"),transform:a[1],children:(0,Tt.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,Tt.jsx)("div",{className:"w-full min-h-[70px] md:min-h-[350px] Tt-20 content-end block overflow-hidden",children:(0,Tt.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:l(t,"w-full block overflow-hidden"),transform:a[3],children:(0,Tt.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,Tt.jsx)("div",{className:"w-full min-h-[70px] md:min-h-[350px] Tt-20 content-end block overflow-hidden",children:(0,Tt.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:l(t,"w-full block overflow-hidden"),transform:e==="bottom-left"?a[3]:a[2],children:(0,Tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},su=({className:e})=>(0,Tt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:l(e,"absolute w-full h-full"),children:[(0,Tt.jsx)("defs",{children:(0,Tt.jsxs)("mask",{id:"mask",children:[(0,Tt.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,Tt.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,Tt.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var Nn=({links:e,media:t,children:a,richText:o})=>(0,Tt.jsx)("div",{children:(0,Tt.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,Tt.jsxs)("div",{className:"fixed inset-0 container mt-24 mb-8 Tt-10 flex items-start justify-center",children:[a||o&&(0,Tt.jsx)(Z,{className:"max-w-none mb-6 ml-0 prose prose-h1:text-5xl prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,Tt.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,Tt.jsx)("li",{children:(0,Tt.jsx)(Zt,{...r})},s))})]}),(0,Tt.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,Tt.jsx)(Ut,{fill:!0,imgClassName:"Tt-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,Tt.jsx)("div",{children:(0,Tt.jsx)(wc.default,{className:"-Tt-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Tt.jsx)("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),(0,Tt.jsx)(it,{className:"text-black Tt-10",position:"header"})]})});var Cn=y(require("next/image"));var iu=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,Tt.jsx)(Cn.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:r||"",width:s||0,height:o||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,Tt.jsx)("div",{children:(0,Tt.jsx)(Cn.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},Pn=({links:e,media:t,children:a,richText:o})=>(0,Tt.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,Tt.jsx)(iu,{media:t}),(0,Tt.jsx)("div",{className:"mx-0 min-w-full relative Tt-9",children:(0,Tt.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,Tt.jsx)(Z,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var kn=({children:e,richText:t})=>(0,Tt.jsx)("div",{className:"min-w-full py-10 bg-muted mt-24",children:(0,Tt.jsx)("div",{className:"container",children:e||t&&(0,Tt.jsx)(Z,{content:t,enableGutter:!1})})});var Pc=y(require("react")),kc=y(require("next/image"));var Nc=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,i=r<10?`0${r}`:r,n=a.getFullYear();return`${i}/${s}/${n}`};var hs=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("Tt-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("Tt-US",{month:"short"}).format(t);return`${a} ${o}${(i=>{if(i>3&&i<21)return"th";switch(i%10){case 1:return"Tt";case 2:return"nd";case 3:return"Tt";default:return"th"}})(o)} ${r}`},Cc=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("Tt-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("Tt-US",{month:"short"}).format(t);return`${a} ${o}${(i=>{if(i>3&&i<21)return"th";switch(i%10){case 1:return"Tt";case 2:return"nd";case 3:return"Tt";default:return"th"}})(o)} ${r}`};var nu=({post:e})=>{var i;let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,Tt.jsxs)("div",{className:"relative grid pt-24",children:[(0,Tt.jsx)("div",{className:"relative Tt-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground pt-24 p-6 lg:p-12",children:(0,Tt.jsxs)("div",{className:"container mx-auto",children:[(0,Tt.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,Tt.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,Tt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Tt.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,Tt.jsx)("p",{children:o.map((n,c)=>(0,Tt.jsxs)(Pc.default.Fragment,{children:[n.name,c<o.length-2&&", ",c===o.length-2&&(o.length>2?", and ":" and ")]},n.id))})]}),r&&(0,Tt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Tt.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,Tt.jsx)("time",{dateTime:r,children:Nc(r)})]}),t&&t.length>0&&(0,Tt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Tt.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,Tt.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((n,c)=>typeof n=="object"&&n!==null&&(0,Tt.jsx)(Lt,{className:"px-3 py-1 mx-1",children:n.title||"Untitled category"},n.id||c))})]})]})]})}),(0,Tt.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,Tt.jsx)(kc.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((i=a==null?void 0:a.image)==null?void 0:i.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,Tt.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 xs=require("@heroicons/react/20/solid");var ys=y(require("next/image"));var Sn=({title:e,image:t})=>(0,Tt.jsx)("div",{children:(0,Tt.jsxs)("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[(0,Tt.jsx)("div",{className:"fixed inset-0 container mt-24 mb-8 Tt-10 flex items-start justify-start",children:(0,Tt.jsx)("h1",{className:"text-5xl md:text-6xl",children:e})}),(0,Tt.jsxs)("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&(0,Tt.jsx)(ys.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,Tt.jsx)("div",{children:(0,Tt.jsx)(ys.default,{className:"-Tt-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Tt.jsx)("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),(0,Tt.jsx)(it,{className:"text-black Tt-10",position:"header"})]})});function lu({title:e,breadcrumbItems:t,image:a}){return(0,Tt.jsxs)("section",{className:"-Tt-10 relative flex min-h-[250px] pt-auto items-end",children:[(0,Tt.jsx)("div",{className:"absolute inset-0 Tt-0",children:a&&(0,Tt.jsx)(ys.default,{priority:!0,src:a.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"})}),(0,Tt.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),(0,Tt.jsx)(Be,{children:(0,Tt.jsxs)("div",{className:"relative Tt-10 flex flex-wrap items-center justify-between gap-Tt-20 gap-y-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[(0,Tt.jsx)("h1",{className:"font-secondary text-5xl font-bold lg:w-1/2",children:e}),t&&t.length>0&&(0,Tt.jsx)(Rn,{breadcrumbItems:t})]})})]})}var du={highImpact:Nn,lowImpact:kn,mediumImpact:Pn,sectionHero:Sn},cu=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=du[t];return a?(0,Tt.jsx)(a,{...e}):null};function Rn({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,Tt.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,Tt.jsxs)("ol",{role:"list",className:"flex items-center space-Tt-4",children:[(0,Tt.jsx)("li",{children:(0,Tt.jsx)("div",{children:(0,Tt.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,Tt.jsx)(xs.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,Tt.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,Tt.jsx)("li",{children:(0,Tt.jsxs)("div",{className:"flex items-center",children:[(0,Tt.jsx)(xs.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,Tt.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,Tt.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,Tt.jsx)(Tt.Fragment,{})}var kt=require("@headlessui/react"),Cs=require("@heroicons/react/24/outline");var mu=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,Tt.jsx)("a",{href:o,className:"flex items-center gap-Tt-1 text-sm text-foreground group",children:(0,Tt.jsxs)("span",{className:"relative",children:[e,(0,Tt.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-Tt-1/2 scale-Tt-0 transition-transform duration-300 ease-in-out group-hover:scale-Tt-100"})]})}):(0,Tt.jsxs)(kt.Popover,{children:[(0,Tt.jsxs)(kt.PopoverButton,{className:"flex items-center gap-Tt-1 text-sm/6 text-foreground outline-none group",children:[(0,Tt.jsxs)("span",{className:"relative",children:[e,(0,Tt.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-Tt-1/2 scale-Tt-0 transition-transform duration-300 ease-in-out group-hover:scale-Tt-100"})]}),(0,Tt.jsx)(xs.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,Tt.jsxs)(kt.PopoverPanel,{transition:!0,className:"absolute inset-Tt-0 top-0 -Tt-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,Tt.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-Tt-4 px-6 py-10 lg:px-8 Tt:gap-Tt-8 Tt-50",children:t&&t.map(r=>(0,Tt.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,Tt.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,Tt.jsx)(Sc,{icon:r.icon,size:"4x"})}),(0,Tt.jsxs)("a",{href:r.href,className:"mt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,Tt.jsx)("span",{className:"absolute inset-0"})]}),(0,Tt.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,Tt.jsx)("div",{className:"bg-gray-50",children:(0,Tt.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Tt.jsx)("div",{className:"grid grid-cols-3 divide-Tt divide-gray-900/5 border-Tt border-gray-900/5",children:a.map(r=>(0,Tt.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-Tt-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,Tt.jsx)(Sc,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),Sc=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,Tt.jsx)(qe,{...e,size:a});if("src"in e)return(0,Tt.jsx)("div",{className:l(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,Tt.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},ws=mu;var Ns=["light","dark","green"];function pu({title:e,logo:t,menuItems:a}){let[o,r]=(0,ll.useState)(!1),[s,i]=(0,ll.useState)(!1),[n,c]=(0,ll.useState)("light"),m=t==null?void 0:t.split(".")[0],d=t==null?void 0:t.split(".")[1],[p,u]=(0,ll.useState)(`${m}.${d}`),g=f=>{Ns.includes(f)?u(f==="light"?`${m}.${d}`:`${m}-${f}.${d}`):u(`${m}.${d}`)};(0,ll.useEffect)(()=>{let f=localStorage.getItem("theme")||"light";c(f),document.documentElement.setAttribute("class",f),g(f)},[]);let v=()=>{let f=Ns[(Ns.indexOf(n)+1)%Ns.length];c(f),document.documentElement.setAttribute("class",f),localStorage.setItem("theme",f),g(f)};return(0,Tt.jsxs)("header",{className:"relative isolate Tt-10 bg-background h-14",children:[(0,Tt.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,Tt.jsx)("div",{className:"flex lg:flex-1",children:(0,Tt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Tt.jsx)("span",{className:"sr-only",children:e}),(0,Tt.jsx)("img",{alt:e,src:p,className:"h-9 w-auto"})]})}),(0,Tt.jsx)("div",{className:"flex lg:hidden",children:(0,Tt.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,Tt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Tt.jsx)(Cs.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,Tt.jsx)(kt.PopoverGroup,{className:"hidden lg:flex lg:gap-Tt-12",children:a.map(f=>(0,Tt.jsx)(ws,{...f},f.name))}),(0,Tt.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,Tt.jsx)("button",{onClick:v,className:"p-2 text-gray-700 outline-none",children:n==="dark"?(0,Tt.jsx)(xs.SunIcon,{className:"h-6 w-6"}):n==="green"?(0,Tt.jsx)(xs.MoonIcon,{className:"h-6 w-6"}):(0,Tt.jsx)(xs.SunIcon,{className:"h-6 w-6"})})})]}),(0,Tt.jsxs)(kt.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,Tt.jsx)("div",{className:"fixed inset-0 Tt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Tt.jsxs)(kt.DialogPanel,{className:"fixed inset-y-0 right-0 Tt-20 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Tt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Tt.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,Tt.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,Tt.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,Tt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Tt.jsx)(Cs.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Tt.jsx)("div",{className:"mt-6 flow-root",children:(0,Tt.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,Tt.jsx)("div",{className:"space-y-2 py-6",children:a.map(f=>(0,Tt.jsx)(uu,{...f},f.name))})})})]})]})]})}function uu({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Tt.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,Tt.jsxs)(kt.Disclosure,{Tt:"div",className:"-mx-3",children:[(0,Tt.jsx)(kt.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,Tt.jsx)(kt.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(r=>(0,Tt.jsx)(kt.DisclosureButton,{Tt:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}function fu({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let i=()=>{let n=document.getElementById("next-section");n&&n.scrollIntoView({behavior:"smooth"})};return(0,Tt.jsx)("div",{children:(0,Tt.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,Tt.jsxs)("video",{className:"fixed inset-0 object-cover w-full h-full Tt-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,Tt.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,Tt.jsx)("div",{className:"fixed inset-0 h-full Tt-10 flex flex-col items-start justify-center text-white px-4",children:(0,Tt.jsx)(Be,{children:(0,Tt.jsxs)("div",{className:"flex flex-col items-start md:w-1/2 mb-10 Tt-0 md:mb-0",children:[(0,Tt.jsx)("h1",{className:"text-5xl md:text-6xl mb-6",children:r&&r}),(0,Tt.jsx)("div",{className:"text-lg md:text-Tt text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,Tt.jsx)(it,{className:"text-black Tt-10",position:"header"})]})})}var Tn=y(require("next/image"));function Ka({logoLight:e,logoDark:t,mobile:a=!1}){return(0,Tt.jsxs)(Ve,{href:"/",className:l(a?"py-1":"py-2"),children:[(0,Tt.jsx)(Tn.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,Tt.jsx)(Tn.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 Dn({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[i,n]=(0,ll.useState)(!1),[c,m]=(0,ll.useState)(""),d=["light","dark"],{theme:p,setTheme:u}=(0,yc.useTheme)();(0,ll.useEffect)(()=>{m(p||"dark")},[p]);let g=()=>{let v=d[(d.indexOf(c)+1)%d.length];m(v),u(v)};return(0,ll.useEffect)(()=>{let v=()=>{window.scrollY>100?n(!0):n(!1)};return window.addEventListener("scroll",v,{passive:!0}),()=>window.removeEventListener("scroll",v)},[]),(0,Tt.jsx)(Tt.Fragment,{children:(0,Tt.jsx)("header",{className:`Tt-50 pb-10 transition-all duration-300 hidden lg:block ${i||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,Tt.jsx)("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:(0,Tt.jsxs)("div",{className:l("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,Tt.jsx)(Ka,{logoDark:a,logoLight:t}),(0,Tt.jsx)(kt.PopoverGroup,{className:"hidden lg:flex lg:gap-Tt-12",children:o&&o.map(v=>(0,Tt.jsx)(ws,{...v},v.name))}),r&&(0,Tt.jsx)("button",{className:"fixed right-4 Tt-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:g,children:(0,Tt.jsxs)("div",{className:"relative",children:[(0,Tt.jsx)(Il.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Tt.jsx)(Il.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var Mn=["light","dark"];function An({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,ll.useState)(!1),{theme:i,setTheme:n}=(0,yc.useTheme)(),[c,m]=(0,ll.useState)(!1),[d,p]=(0,ll.useState)("light");(0,ll.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,ll.useEffect)(()=>{p(i||"dark")},[i]);let u=()=>{let g=Mn[(Mn.indexOf(d)+1)%Mn.length];p(g),n(g)};return(0,Tt.jsx)(Tt.Fragment,{children:(0,Tt.jsxs)("header",{className:`Tt-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,Tt.jsx)("nav",{className:l("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,Tt.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&Tt.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,Tt.jsx)(Ka,{logoDark:t,logoLight:e,mobile:!0}),(0,Tt.jsx)("div",{className:"flex items-center space-Tt-4",children:(0,Tt.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 Tt-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,Tt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Tt.jsx)(Cs.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,Tt.jsxs)(kt.Dialog,{open:c,onClose:m,className:"lg:hidden",children:[(0,Tt.jsx)("div",{className:"fixed inset-0 Tt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Tt.jsxs)(kt.DialogPanel,{className:"fixed inset-y-0 right-0 Tt-20 w-full overflow-y-auto bg-background dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Tt.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,Tt.jsx)(Ka,{logoDark:t,logoLight:e,mobile:!0}),(0,Tt.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,Tt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Tt.jsx)(Cs.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Tt.jsx)("div",{className:"mt-6 flow-root",children:(0,Tt.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,Tt.jsx)("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(g=>(0,Tt.jsx)(gu,{...g},g.name))})})})]})]})]})})}function gu({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Tt.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,Tt.jsxs)(kt.Disclosure,{Tt:"div",className:"-mx-3",children:[(0,Tt.jsx)(kt.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}),(0,Tt.jsx)(kt.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(r=>(0,Tt.jsx)(kt.DisclosureButton,{Tt:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var Ac=y(require("next/image"));var bu=l("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),In=l("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),Ln=l("w-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),Bn=l("flex items-center gap-5"),Ss=l("transition-colors duration-300 hover:text-accent dark:hover:text-white");function vu({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:i,columnThree:n,footerBottom:c}=t;return(0,Tt.jsxs)("footer",{className:l("sticky Tt-2 flex flex-col dark bg-black overflow-hidden pt-12",e),children:[(0,Tt.jsx)("div",{className:"py-16 md:py-20",children:(0,Tt.jsx)("div",{className:"container",children:(0,Tt.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 Tt:grid-cols-4",children:[(0,Tt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,Tt.jsx)(Ka,{logoDark:o,logoLight:a}),(0,Tt.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,Tt.jsx)("nav",{"aria-label":"social links",children:(0,Tt.jsx)("ul",{className:"inline-flex min-h-[50px] items-center divide-Tt rounded-5 bg-accent text-white",children:r.socialLinks.map((m,d)=>(0,Tt.jsx)("li",{children:(0,Tt.jsx)(Ve,{"aria-label":m.href,className:bu,href:m.href,openNewTab:!0,children:(0,Tt.jsx)("span",{children:m.icon})})},d))})})]}),(0,Tt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,Tt.jsx)("h3",{className:In,children:s.title}),s.links&&s.links.length>0&&(0,Tt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Tt.jsx)("ul",{className:"grid gap-2",children:s.links.map(m=>(0,Tt.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,Tt.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,Tt.jsx)(ms.FaChevronRight,{})}),(0,Tt.jsx)(Ve,{href:m.href,openNewTab:m.openNewTab,className:Ss,children:m.label})]},m.label))})})]}),(0,Tt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,Tt.jsx)("h3",{className:In,children:i.title}),(0,Tt.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-5",children:[(0,Tt.jsxs)("li",{className:Bn,children:[(0,Tt.jsx)("span",{className:Ln,children:(0,Tt.jsx)(ms.FaPaperPlane,{})}),(0,Tt.jsx)("address",{className:"not-italic",children:i.location})]}),(0,Tt.jsxs)("li",{className:Bn,children:[(0,Tt.jsx)("span",{className:Ln,children:(0,Tt.jsx)(ms.FaEnvelope,{})}),i.mails&&i.mails.length>0&&(0,Tt.jsx)("div",{className:"grid gap-1",children:i.mails.map((m,d)=>(0,Tt.jsx)("a",{href:`mailto:${m}`,className:Ss,children:m},d))})]}),i.phoneNumbers&&i.phoneNumbers.length>0&&(0,Tt.jsxs)("li",{className:Bn,children:[(0,Tt.jsx)("span",{className:Ln,children:(0,Tt.jsx)(ms.FaPhone,{})}),(0,Tt.jsx)("div",{className:"grid gap-1",children:i.phoneNumbers.map((m,d)=>(0,Tt.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:Ss,children:m},d))})]})]})]}),n&&(0,Tt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,Tt.jsx)("h3",{className:In,children:n.title}),n.blogs&&n.blogs.length>0&&(0,Tt.jsx)("div",{className:"grid gap-6",children:n.blogs.map((m,d)=>(0,Tt.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,Tt.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,Tt.jsx)(Ac.default,{...m.image,alt:m.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,Tt.jsxs)("div",{children:[(0,Tt.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,Tt.jsx)("span",{className:"text-accent",children:(0,Tt.jsx)(ms.FaCalendarDays,{})}),(0,Tt.jsx)("span",{children:Cc(m.date)})]}),(0,Tt.jsx)("h4",{className:"text-md leading-normal",children:(0,Tt.jsx)(Ve,{href:m.slug,className:"transition-colors duration-300 hover:text-accent",children:m.title})})]})]},d))})]})]})})}),(0,Tt.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,Tt.jsx)("div",{className:"container",children:(0,Tt.jsxs)("div",{className:"flex flex-wrap items-center text-xs justify-between gap-Tt-8 gap-y-4 md:gap-Tt-10",children:[(0,Tt.jsx)("p",{children:c.copyrightText}),c.links&&c.links.length>0&&(0,Tt.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,Tt.jsx)("ul",{className:"flex flex-wrap items-center gap-Tt-4 md:gap-Tt-7",children:c.links.map(m=>(0,Tt.jsx)("li",{children:(0,Tt.jsx)(Ve,{"aria-label":`Xd to page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:Ss,children:m.label})},m.label))})})]})})})]})}function hu({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:i=!1}){return(0,Tt.jsxs)("div",{className:l("fixed top-0 left-0 right-0 Tt-50",r),children:[(0,Tt.jsx)(Dn,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:i,wide:s}),(0,Tt.jsx)(An,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}var xo=require("sonner");function En({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,ll.useState)([]),s=(0,Xd.useRouter)(),i=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},n=d=>{r(p=>p.includes(d)?p.filter(u=>u!==d):[...p,d])},c=async()=>{let d=await t(o);d.success?(xo.toast.success(d.message),s.refresh()):xo.toast.error(`Error: ${d.message}`),r([])},m=async()=>{let d=await a(o);d.success?(xo.toast.success(d.message),s.refresh()):xo.toast.error(`Error: ${d.message}`),r([])};return(0,Tt.jsxs)("div",{className:"space-y-4",children:[(0,Tt.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Tt.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,Tt.jsxs)("div",{className:"space-Tt-2",children:[(0,Tt.jsx)(L,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,Tt.jsx)(L,{onClick:m,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,Tt.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,Tt.jsxs)("ul",{className:"divide-y divide-gray-200",children:[(0,Tt.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,Tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Tt.jsxs)("div",{className:"flex items-center",children:[(0,Tt.jsx)(Wt,{id:"select-all",checked:o.length===e.length,onCheckedChange:i,className:"border-accent"}),(0,Tt.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,Tt.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,Tt.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,Tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Tt.jsxs)("div",{className:"flex items-center",children:[(0,Tt.jsx)(Wt,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>n(d.id),className:"border-accent"}),(0,Tt.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,Tt.jsxs)(pa,{className:"h-10 w-10",children:[(0,Tt.jsx)(ua,{src:d.userImage,alt:d.userName}),(0,Tt.jsx)(fa,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),(0,Tt.jsx)("div",{className:"ml-3",children:(0,Tt.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,Tt.jsxs)("div",{className:"flex items-center space-Tt-2",children:[(0,Tt.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(d.startDate).toLocaleDateString(),d.startDate!==d.endDate&&` - ${new Date(d.endDate).toLocaleDateString()}`,d.leaveType!="Full Day"&&` (${d.leaveType})`,` - ${d.totalDays} day${d.totalDays!==1?"s":""}`]}),(0,Tt.jsx)(Lt,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,Tt.jsx)(xo.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"Tt-50"})]})}var zn=require("date-fns");var Bc=[{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 Mr=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=Bc.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},Ec=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!Mr(o))return .5;for(;o<=r;)Mr(o)||s++,o.setDate(o.getDate()+1);return s},zc=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var yu=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,Tt.jsx)("div",{className:"flex space-Tt-2",children:e.map((r,s)=>(0,Tt.jsx)(L,{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 Fn({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,ll.useState)(new Date),[r,s]=(0,ll.useState)(new Date),[i,n]=(0,ll.useState)("Full Day"),[c,m]=(0,ll.useState)(!1),[d,p]=(0,ll.useState)(1),u=(0,Xd.useRouter)();(0,ll.useEffect)(()=>{let f=zc(a,r);m(f),f&&n("Full Day")},[a,r]),(0,ll.useEffect)(()=>{if(!a||!r){p(0);return}let f=Ec(a,r,i!=="Full Day");p(f)},[a,r,i]);let g=f=>{n(f)};return(0,Tt.jsxs)("div",{className:"max-w-2xl",children:[(0,Tt.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,Tt.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,Tt.jsxs)("form",{onSubmit:async f=>{if(f.preventDefault(),!a||!r){xo.toast.error("Please select both start and end dates");return}if(d>e){xo.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",i),h.append("duration",d.toString());let k=await(t||xu)(h);k.success?(xo.toast.success(k.message),o(void 0),s(void 0),n("Full Day"),u.refresh()):xo.toast.error(`Error: ${k.message}`)},className:"space-y-4",children:[(0,Tt.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Tt.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,Tt.jsx)(ve,{htmlFor:"startDate",children:"Start Date"}),(0,Tt.jsxs)(ur,{children:[(0,Tt.jsx)(fr,{asChild:!0,children:(0,Tt.jsxs)(L,{variant:"outline",className:l("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,Tt.jsx)(Il.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,zn.format)(a,"PPP"):(0,Tt.jsx)("span",{children:"Pick a date"})]})}),(0,Tt.jsx)(zo,{className:"w-auto p-0",align:"start",children:(0,Tt.jsx)(vr,{mode:"single",selected:a,onSelect:f=>{o(f),f&&(!r||f>r)&&s(f)},initialFocus:!0})})]})]}),(0,Tt.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,Tt.jsx)(ve,{htmlFor:"endDate",children:"End Date"}),(0,Tt.jsxs)(ur,{children:[(0,Tt.jsx)(fr,{asChild:!0,children:(0,Tt.jsxs)(L,{variant:"outline",className:l("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,Tt.jsx)(Il.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,zn.format)(r,"PPP"):(0,Tt.jsx)("span",{children:"Pick a date"})]})}),(0,Tt.jsx)(zo,{className:"w-auto p-0",align:"start",children:(0,Tt.jsx)(vr,{mode:"single",selected:r,onSelect:s,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),(0,Tt.jsxs)("div",{className:"space-y-2",children:[(0,Tt.jsx)(ve,{children:"Leave Type"}),(0,Tt.jsx)(yu,{options:["Full Day","Morning","Afternoon"],value:i,onChange:g,disabled:[!1,c,c]})]}),(0,Tt.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",d]}),(0,Tt.jsx)(L,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,Tt.jsx)(xo.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"Tt-50"})]})}var xu=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function Fc(...e){return e.filter(Boolean).join(" ")}function On({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))},i=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},n=()=>{t(new Date)},c=m=>m.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,Tt.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,Tt.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,Tt.jsxs)("div",{className:"sm:flex-auto",children:[(0,Tt.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Tt.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,Tt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Tt.jsxs)(L,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Tt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Tt.jsx)(Il.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Tt.jsx)(L,{variant:"outline",onClick:n,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Tt.jsxs)(L,{onClick:i,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Tt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Tt.jsx)(Il.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,Tt.jsx)("div",{className:"mt-8 flow-root",children:(0,Tt.jsx)("div",{className:"-mx-4 -my-2 overflow-Tt-auto sm:-mx-6 lg:-mx-8",children:(0,Tt.jsx)("div",{className:"max-h-[60vh] overflow-y-auto",children:(0,Tt.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,Tt.jsx)("thead",{className:"sticky top-0 Tt-20 bg-white",children:(0,Tt.jsxs)("tr",{children:[(0,Tt.jsx)("th",{scope:"col",className:"sticky left-0 top-0 Tt-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(r)].map((m,d)=>{let p=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,Tt.jsxs)("th",{scope:"col",className:`sticky top-0 Tt-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${Mr(p)?"bg-gray-200":""}`,children:[(0,Tt.jsx)("div",{children:c(p)}),(0,Tt.jsx)("div",{children:d+1})]},d)})]})}),(0,Tt.jsx)("tbody",{children:o.map((m,d)=>(0,Tt.jsxs)("tr",{children:[(0,Tt.jsx)("td",{className:Fc(d!==o.length-1?"border-gray-200":"","sticky left-0 Tt-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,Tt.jsxs)("div",{className:"flex items-center",children:[(0,Tt.jsxs)(pa,{className:"h-11 w-11",children:[(0,Tt.jsx)(ua,{src:m.image,alt:m.name}),(0,Tt.jsx)(fa,{children:m.name.split(" ").map(p=>p[0]).join("")})]}),(0,Tt.jsx)("div",{className:"ml-4",children:(0,Tt.jsx)("div",{className:"font-medium text-accent",children:m.name})})]})}),[...Array(r)].map((p,u)=>{let g=new Date(e.getFullYear(),e.getMonth(),u+1),v=a.find(f=>f.userId===m.id&&new Date(f.startDate)<=g&&new Date(f.endDate)>=g);return(0,Tt.jsx)("td",{className:Fc(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Mr(g)?"bg-gray-200":""),children:(0,Tt.jsx)("div",{className:`h-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,Tt.jsx)("div",{className:`h-3 w-6 ${v.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${m.id}-${u}`)})]},m.id))})]})})})})]})}function _n({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,ll.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,i=Array.from({length:42},(d,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p-s+1);return{date:u,isCurrentMonth:u.getMonth()===e.getMonth(),isToday:u.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=u&&new Date(g.endDate)>=u)}}),n=()=>{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,Tt.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,Tt.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Tt.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Tt.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Tt.jsx)("div",{className:"flex items-center",children:(0,Tt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Tt.jsxs)(L,{onClick:n,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Tt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Tt.jsx)(Il.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Tt.jsx)(L,{variant:"outline",onClick:m,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Tt.jsxs)(L,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Tt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Tt.jsx)(Il.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,Tt.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Tt.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,Tt.jsxs)("div",{className:"bg-white py-2",children:["Tt",(0,Tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,Tt.jsxs)("div",{className:"bg-white py-2",children:["Tt",(0,Tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Tt"})]}),(0,Tt.jsxs)("div",{className:"bg-white py-2",children:["Tt",(0,Tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Il"})]}),(0,Tt.jsxs)("div",{className:"bg-white py-2",children:["Tt",(0,Tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,Tt.jsxs)("div",{className:"bg-white py-2",children:["F",(0,Tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,Tt.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,Tt.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,Tt.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,Tt.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:i.map(d=>(0,Tt.jsxs)("div",{className:l(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,Tt.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,Tt.jsx)("ol",{className:"mt-2 space-y-1",children:d.holidays.map(p=>(0,Tt.jsx)("li",{children:(0,Tt.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border`,children:p.userName})},p.id))})]},d.date.toISOString()))}),(0,Tt.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:i.map(d=>(0,Tt.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:Tt-10"),children:[(0,Tt.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,Tt.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,Tt.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(p=>(0,Tt.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},d.date.toISOString()))})]})]})]})}var Qa=require("lucide-react");function _c(...e){return e.filter(Boolean).join(" ")}function wu({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:i,rejectLeave:n}){let[c,m]=(0,ll.useState)("Calendar View"),d=(0,$c.useRouter)(),p=!1,u=(0,zn.parseISO)(a),g=async f=>{let h=(0,zn.format)(f,"dd-MM-yyyy"),k=new URL(window.location.href);return k.searchParams.set("date",h),d.push(k.toString()),{success:!0}};if(p)return(0,Tt.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,Tt.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let v=[{name:"Grid View",icon:Qa.Grid,current:c==="Grid View"},{name:"Calendar View",icon:Qa.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:Qa.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:Qa.CheckSquare,current:c==="Approve Leave"}];return(0,Tt.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,Tt.jsxs)("div",{className:"mb-8",children:[(0,Tt.jsxs)("div",{className:"sm:hidden",children:[(0,Tt.jsx)("select",{value:c,onChange:f=>m(f.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:v.map(f=>(0,Tt.jsx)("option",{children:f.name},f.name))}),(0,Tt.jsx)(Il.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,Tt.jsx)("div",{className:"hidden sm:block",children:(0,Tt.jsx)("div",{className:"border-b border-gray-200",children:(0,Tt.jsx)("nav",{className:"-mb-px flex space-Tt-8","aria-label":"Tabs",children:v.map(f=>(0,Tt.jsxs)("a",{onClick:()=>{(f.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(f.name)},className:_c(f.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",f.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":f.current?"page":void 0,children:[(0,Tt.jsx)(f.icon,{className:_c(f.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,Tt.jsx)("span",{children:f.name})]},f.name))})})})]}),c==="Grid View"&&(0,Tt.jsx)(On,{currentDate:u,setCurrentDate:g,holidays:e,employees:r}),c==="Calendar View"&&(0,Tt.jsx)(_n,{currentDate:u,setCurrentDate:g,holidays:e}),c==="Request Leave"&&(0,Tt.jsx)(Fn,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:f=>s?s(f):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,Tt.jsx)(En,{leaveRequests:o,onApprove:f=>i?i(f):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:f=>n?n(f):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function jn({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:i}){var me,$,C,I,S;let[n,c]=(0,ll.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[m,d]=(0,ll.useState)(""),[p,u]=(0,ll.useState)(!1),[g,v]=(0,ll.useState)(null);(0,ll.useEffect)(()=>{u(JSON.stringify(e)!==JSON.stringify(n))},[e,n]);let f=async()=>{try{let b=await s(n);b.success?(u(!1),v(null)):console.error("Failed to save deal:",b.errors)}catch(b){console.error("Failed to save deal:",b)}},h=(b,N)=>{c(w=>({...w,[b]:N}))},k=b=>{let N=(n.categories||[]).includes(b)?(n.categories||[]).filter(w=>w!==b):[...n.categories||[],b];h("categories",N)},D=async()=>{if(m.trim()){let b={text:m,timestamp:new Date().toISOString()};try{let N=await i(b);if(!N.success){console.error("Failed to add comment:",N.errors);return}}catch(N){console.error("Failed to add comment:",N)}c(N=>({...N,comments:[...N.comments||[],b]})),d("")}},E=b=>{switch(b){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},B=b=>t==null?void 0:t.find(N=>N.id===Number(b));return(0,Tt.jsx)(It,{open:!0,children:(0,Tt.jsxs)(Ct,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,Tt.jsxs)($t,{className:"flex flex-row items-center justify-between",children:[(0,Tt.jsx)(Vt,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,Tt.jsxs)("div",{className:"flex space-Tt-2",children:[(0,Tt.jsx)(L,{variant:"outline",onClick:r,children:"Close"}),(0,Tt.jsxs)(L,{onClick:f,disabled:!p,children:[(0,Tt.jsx)(Il.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,Tt.jsxs)(Oa,{className:"flex-grow pr-4",children:[(0,Tt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,Tt.jsx)("div",{className:"grid gap-2",children:g==="value"?(0,Tt.jsx)(ut,{type:"number",value:n.value,onChange:b=>h("value",Number(b.target.value)),onBlur:()=>v(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,Tt.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("value"),children:["\xA3",(me=n.value)==null?void 0:me.toLocaleString()]})}),(0,Tt.jsxs)("div",{className:"grid gap-2",children:[(0,Tt.jsx)(ve,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),g==="assignee"?(0,Tt.jsxs)(lo,{value:((C=($=n==null?void 0:n.assignee)==null?void 0:$.id)==null?void 0:C.toString())||"",onValueChange:b=>h("assignee",B(b)),children:[(0,Tt.jsx)(Ga,{children:(0,Tt.jsx)(co,{placeholder:"Select assignee"})}),(0,Tt.jsx)($a,{children:t&&t.map(b=>{var N;return(0,Tt.jsx)(Va,{value:((N=b==null?void 0:b.id)==null?void 0:N.toString())||"",children:b.name},b.id)})})]}):(0,Tt.jsxs)("div",{className:"flex items-center space-Tt-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("assignee"),children:[(0,Tt.jsx)(Il.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,Tt.jsx)("span",{children:n.assignee.name})]})]}),(0,Tt.jsxs)("div",{className:"grid gap-2",children:[(0,Tt.jsx)(ve,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),g==="closureDate"?(0,Tt.jsx)(ut,{type:"date",value:(S=(I=n.closureDate)==null?void 0:I.split("Tt")[0])!=null?S:"",onChange:b=>h("closureDate",b.target.value),onBlur:()=>v(null),autoFocus:!0}):(0,Tt.jsxs)("div",{className:"flex items-center space-Tt-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("closureDate"),children:[(0,Tt.jsx)(Il.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,Tt.jsx)("span",{children:n.closureDate?new Date(n.closureDate).toLocaleDateString("Tt-GB"):"N/Tt"})]})]})]}),(0,Tt.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,Tt.jsxs)("div",{className:"grid gap-2",children:[(0,Tt.jsx)(ve,{className:"text-sm font-medium text-gray-500",children:"Description"}),g==="description"?(0,Tt.jsx)(Wa,{value:n.description||"",onChange:b=>h("description",b.target.value),onBlur:()=>v(null),className:"min-h-[100px]",autoFocus:!0}):(0,Tt.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>v("description"),children:n.description})]})}),(0,Tt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,Tt.jsxs)("div",{className:"grid gap-2",children:[(0,Tt.jsx)(ve,{className:"text-sm font-medium text-gray-500",children:"Status"}),g==="status"?(0,Tt.jsxs)(lo,{value:n.status,onValueChange:b=>{h("status",b),v(null)},children:[(0,Tt.jsx)(Ga,{children:(0,Tt.jsx)(co,{placeholder:"Select status"})}),(0,Tt.jsx)($a,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(b=>(0,Tt.jsx)(Va,{value:b,children:b},b))})]}):(0,Tt.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("status"),children:n.status})]}),(0,Tt.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,Tt.jsx)(ve,{className:"text-sm font-medium text-gray-500",children:"Categories"}),g==="categories"?(0,Tt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.map(b=>{var N,w;return(0,Tt.jsxs)("div",{className:"flex items-center space-Tt-2",children:[(0,Tt.jsx)(Wt,{id:((N=b.id)==null?void 0:N.toString())||"",checked:(n.categories||[]).some(ye=>ye.id===b.id),onCheckedChange:()=>b.id!==void 0&&k(b)}),(0,Tt.jsx)("label",{htmlFor:((w=b.id)!=null?w:"").toString(),className:`text-sm font-medium ${E(b.type||"sector")} px-2 py-1 rounded`,children:b.name})]},b.id)})}):(0,Tt.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("categories"),children:n.categories&&n.categories.map(b=>{console.log("cat",b);let N=b;return N?(0,Tt.jsx)(Lt,{variant:"secondary",className:E(N.type||"sector"),children:N.name},N.id):null})})]})]}),(0,Tt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,Tt.jsxs)("div",{className:"grid gap-2",children:[(0,Tt.jsx)(ve,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,Tt.jsx)(Oa,{className:"h-[200px] overflow-y-auto",children:(0,Tt.jsx)("div",{className:"space-y-2",children:n.comments&&n.comments.slice().sort((b,N)=>new Date(N.timestamp||"").getTime()-new Date(b.timestamp||"").getTime()).map(b=>{var N;return(0,Tt.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,Tt.jsx)("p",{className:"text-sm text-gray-700",children:b.text}),(0,Tt.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(N=b==null?void 0:b.author)==null?void 0:N.name," - ",new Date(b.timestamp||"").toLocaleString()]})]},b.id)})})}),(0,Tt.jsxs)("div",{className:"flex mt-2",children:[(0,Tt.jsx)(ut,{value:m,onChange:b=>d(b.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,Tt.jsxs)(L,{onClick:D,className:"ml-2",children:[(0,Tt.jsx)(Il.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,Tt.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(n.updatedAt||"").toLocaleString()]})]})]})]})})}function Gn({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>{var i;return s.type==="proposition"&&((i=e.categories)!=null?i:[]).includes(s.id)});return(0,Tt.jsxs)(Te,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,Tt.jsxs)(Ke,{className:"pb-2",children:[(0,Tt.jsx)("div",{className:"flex justify-between items-center",children:(0,Tt.jsx)(Qe,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,Tt.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,Tt.jsxs)(_e,{children:[(0,Tt.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,Tt.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,Tt.jsx)(Il.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,Tt.jsx)("span",{children:e.assignee.name})]}),(0,Tt.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,Tt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,Tt.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,Tt.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Tt.jsx)(Il.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,Tt.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,Tt.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,Tt.jsx)(Lt,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:r.name})})]})]})}var As=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function $n({onSubmit:e}){var r;let[t,a]=(0,ll.useState)({name:"",intro:"",active:!0});return(0,Tt.jsxs)("form",{onSubmit:s=>{s.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,Tt.jsxs)("div",{className:"space-y-2",children:[(0,Tt.jsx)(ve,{htmlFor:"customerName",children:"Customer Name"}),(0,Tt.jsx)(ut,{id:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,Tt.jsxs)("div",{className:"space-y-2",children:[(0,Tt.jsx)(ve,{htmlFor:"customerIntro",children:"Intro"}),(0,Tt.jsx)(Wa,{id:"customerIntro",value:(r=t.intro)!=null?r:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,Tt.jsxs)("div",{className:"flex items-center space-Tt-2",children:[(0,Tt.jsx)(Wt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,Tt.jsx)(ve,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,Tt.jsx)(L,{type:"submit",className:"w-full",children:"Add Customer"})]})}function Vn({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:i}){var E,B,me,$;let[n,c]=(0,ll.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("Tt")[0],closureDate:"",comments:[],description:""}),[m,d]=(0,ll.useState)(!1),[p,u]=(0,ll.useState)({});(0,ll.useEffect)(()=>{r&&c(r)},[r]);let g=()=>{let C={};return n.customer||(C.customer="Customer Tt required"),n.value||(C.value="Value Tt required"),n.assignee||(C.assignee="Assignee Tt required"),n.closureDate||(C.closureDate="Closure Date Tt required"),u(C),Object.keys(C).length===0},v=async C=>{C.preventDefault(),u({});try{if(g()){let I=await o({...n});I.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),i==null||i()):u(I.errors||{})}}catch{u({submit:"An error occurred while submitting the form."})}},f=C=>{console.log(C),c(I=>({...I,categories:(I.categories||[]).includes(C.id)?(I.categories||[]).filter(S=>S!==C.id):[...I.categories||[],C.id]}))},h=async C=>{c({...n,customer:C});try{let I=await s(C);I.success?d(!1):u(I.errors||{})}catch{u({submit:"An error occurred while submitting the form."})}},k=C=>t==null?void 0:t.find(I=>I.id===Number(C)),D=C=>e==null?void 0:e.find(I=>I.id===Number(C));return(0,Tt.jsxs)(Tt.Fragment,{children:[(0,Tt.jsxs)("form",{onSubmit:v,className:"space-y-6",children:[(0,Tt.jsx)(Oa,{className:"h-[60vh] pr-4",children:(0,Tt.jsxs)("div",{className:"space-y-6 px-4",children:[(0,Tt.jsxs)("div",{className:"space-y-2 space-Tt-2",children:[(0,Tt.jsx)(ve,{htmlFor:"customer",children:"Customer"}),(0,Tt.jsxs)("div",{className:"flex items-center space-Tt-2",children:[(0,Tt.jsxs)(lo,{value:(B=(E=n.customer)==null?void 0:E.id)==null?void 0:B.toString(),onValueChange:C=>c({...n,customer:D(C)}),children:[(0,Tt.jsx)(Ga,{children:(0,Tt.jsx)(co,{placeholder:"Select customer"})}),(0,Tt.jsx)($a,{children:e.map(C=>{var I;return(0,Tt.jsx)(Va,{value:((I=C.id)==null?void 0:I.toString())||"",children:C.name},C.id)})})]}),(0,Tt.jsx)(L,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,Tt.jsx)(Il.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,Tt.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,Tt.jsxs)("div",{className:"space-y-2 space-Tt-2",children:[(0,Tt.jsx)(ve,{htmlFor:"value",children:"Value"}),(0,Tt.jsx)(ut,{id:"value",type:"number",value:n.value||"",onChange:C=>c({...n,value:Number.parseFloat(C.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,Tt.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,Tt.jsxs)("div",{className:"space-y-2 space-Tt-2",children:[(0,Tt.jsx)(ve,{htmlFor:"assignee",children:"Assignee"}),(0,Tt.jsxs)(lo,{value:($=(me=n.assignee)==null?void 0:me.id)==null?void 0:$.toString(),onValueChange:C=>c({...n,assignee:k(C)}),children:[(0,Tt.jsx)(Ga,{children:(0,Tt.jsx)(co,{placeholder:"Select assignee"})}),(0,Tt.jsx)($a,{children:t&&t.map(C=>{var I;return(0,Tt.jsx)(Va,{value:((I=C.id)==null?void 0:I.toString())||"",children:C.name},C.id)})})]}),p.assignee&&(0,Tt.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,Tt.jsxs)("div",{className:"space-y-2 space-Tt-2",children:[(0,Tt.jsx)(ve,{htmlFor:"description",children:"Description"}),(0,Tt.jsx)(Wa,{id:"description",value:n.description||"",onChange:C=>c({...n,description:C.target.value}),placeholder:"Enter deal description"})]}),(0,Tt.jsxs)("div",{className:"space-y-2 space-Tt-2",children:[(0,Tt.jsx)(ve,{children:"Categories"}),(0,Tt.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(C=>(0,Tt.jsxs)("div",{className:"space-y-2",children:[(0,Tt.jsx)("h4",{className:"text-sm font-medium",children:C.charAt(0).toUpperCase()+C.slice(1)}),(0,Tt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(I=>I.type===C).map(I=>{var S;return(0,Tt.jsxs)("div",{className:"flex items-center space-Tt-2",children:[(0,Tt.jsx)(Wt,{id:I.id.toString(),checked:(S=n.categories)==null?void 0:S.includes(I.id),onCheckedChange:()=>f(I)}),(0,Tt.jsx)("label",{htmlFor:I.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:I.name})]},I.id)})})]},C))})]}),(0,Tt.jsxs)("div",{className:"space-y-2 space-Tt-2",children:[(0,Tt.jsx)(ve,{htmlFor:"closureDate",children:"Closure Date"}),(0,Tt.jsx)(ut,{id:"closureDate",type:"date",value:n.closureDate||"",onChange:C=>c({...n,closureDate:C.target.value})}),p.closureDate&&(0,Tt.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,Tt.jsx)(L,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,Tt.jsx)(It,{open:m,onOpenChange:d,children:(0,Tt.jsxs)(Ct,{children:[(0,Tt.jsx)($t,{children:(0,Tt.jsx)(Vt,{children:"Add New Customer"})}),(0,Tt.jsx)($n,{onSubmit:h})]})})]})}function Wn({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:i,calculateWeightedValue:n,addNewDeal:c,onAddCustomer:m}){let[d,p]=(0,ll.useState)(!1);return(0,Tt.jsxs)("div",{className:"flex flex-col w-80",children:[(0,Tt.jsx)("h2",{className:"text-Tt font-semibold mb-4",children:e}),c&&(0,Tt.jsxs)(It,{open:d,onOpenChange:p,children:[(0,Tt.jsx)(Yr,{asChild:!0,children:(0,Tt.jsxs)(L,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,Tt.jsx)(Il.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,Tt.jsxs)(Ct,{children:[(0,Tt.jsx)($t,{children:(0,Tt.jsx)(Vt,{children:"Add New Deal"})}),(0,Tt.jsx)(Vn,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:m,onClose:()=>p(!1)})]})]}),(0,Tt.jsx)(As.Droppable,{droppableId:e,isDropDisabled:!1,children:u=>(0,Tt.jsxs)("div",{ref:u.innerRef,...u.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((g,v)=>(0,Tt.jsx)(As.Draggable,{draggableId:g.id.toString(),index:g.id,children:f=>(0,Tt.jsx)("div",{ref:f.innerRef,...f.draggableProps,...f.dragHandleProps,children:(0,Tt.jsx)(Gn,{deal:g,customer:g.customer,categories:r,onClick:()=>s(g)})})},g.id.toString())),u.placeholder]})}),(0,Tt.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,Tt.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,Tt.jsxs)("span",{className:"text-green-600",children:["\xA3",i(t).toLocaleString()]})]}),(0,Tt.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,Tt.jsxs)("span",{className:"text-blue-600",children:["\xA3",n(t,e).toLocaleString()]})]})]})]})}var Nu=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function Cu({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){var p;let[s,i]=(0,ll.useState)(null),n=u=>{var g;return((g=e.deals)!=null?g:[]).filter(v=>v.status===u)},c=u=>u.reduce((g,v)=>g+(v.value||0),0),m=(u,g)=>{let v={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return u.reduce((f,h)=>f+(h.value||0)*v[g],0)},d=(0,ll.useCallback)(u=>{var E,B;let{source:g,destination:v}=u;if(!v||g.droppableId===v.droppableId&&g.index===v.index)return;let f=g.droppableId,h=v.droppableId,k=(E=e.deals)==null?void 0:E.filter(me=>me.id===g.index)[0],D=[...(B=e.deals)!=null?B:[]];k&&(k.status=h,a(k))},[a]);return(0,Tt.jsx)(As.DragDropContext,{onDragEnd:d,children:(0,Tt.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,Tt.jsx)("div",{className:"flex space-Tt-4 pb-4",children:Nu.filter(u=>u!=="Won"&&u!=="Lost").map(u=>{var v,f;let g=n(u);return(0,Tt.jsx)(Wn,{status:u,deals:g,customers:(v=e.customers)!=null?v:[],users:e.users,categories:(f=e.categories)!=null?f:[],onDealClick:i,calculateColumnValue:c,calculateWeightedValue:m,addNewDeal:u==="Cold"?t:void 0,onAddCustomer:r},u)})}),s&&(0,Tt.jsx)(jn,{deal:s,users:e.users,customer:s.customer,categories:(p=e.categories)!=null?p:[],onClose:()=>i(null),onSave:a,onAddComment:u=>o(s.id.toString(),u)})]})})}var Yo=(e,t)=>e[t%e.length];function Pu({services:e,className:t,title:a,content:o}){let r={settings:{width:"full",card:"light"}};return(0,Tt.jsxs)(Be,{className:"py-8",children:[(0,Tt.jsxs)("div",{className:l("w-full text-left"),children:[a&&(0,Tt.jsx)("h2",{className:"text-3xl md:text-5xl text-primary",children:a}),(0,Tt.jsx)("p",{className:"mt-4 text-gray-700 text-lg",children:o&&(0,Tt.jsx)(Z,{enableGutter:!1,content:o,enableProse:!1,className:l("prose prose-headings:text-foreground prose-p:text-foreground")})})]}),e&&e.length>0&&(0,Tt.jsx)("div",{className:"-mx-4 flex flex-wrap justify-between pt-6 gap-y-4",children:e.map((s,i)=>(0,Tt.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Yo([200,400,600],i),className:"w-full md:px-4 md:w-1/2 lg:w-1/3",children:(0,Tt.jsx)(ls,{...r,icon:{type:"none"},title:s.title,image:s.image,content:s.content,link:s.link})},i))})]})}function Za({subtitle:e,title:t,description:a,alignment:o="start",hasBottomSpacing:r=!1,className:s,invert:i=!1}){let n=l(o==="start"&&"text-left",o==="center"&&"text-center",o==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":r},s);return(0,Tt.jsxs)("div",{className:n,children:[e&&(0,Tt.jsx)("span",{className:"mb-[.625rem] block text-semibold uppercase text-accent md:text-md",children:e}),(0,Tt.jsx)("h2",{className:l("text-primary text-2xl md:text-4xl"),children:t}),typeof a=="string"?a&&(0,Tt.jsx)("p",{className:"mt-5 whitespace-pre-line text-foreground",children:a}):a&&(0,Tt.jsx)(Z,{content:a,enableGutter:!1,className:"prose-headings:text-accent prose-p:text-primary"})]})}function ku({sectionHeading:e,cards:t}){return(0,Tt.jsx)("section",{className:"section-padding-primary !pt-0",children:(0,Tt.jsxs)(Be,{children:[(0,Tt.jsx)("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:(0,Tt.jsx)(Za,{...e,alignment:"center",hasBottomSpacing:!0})}),t&&t.length>0&&(0,Tt.jsx)("div",{className:"grid gap-30px",children:t.map((a,o)=>(0,Tt.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Yo([200,400,600],o),className:"py-2",children:(0,Tt.jsx)(nn,{...a})},o))})]})})}var Ar=y(require("next/image"));function Su(e){let{images:t,sectionHeading:a,keyPoints:o,description:r}=e;return(0,Tt.jsx)(Tt.Fragment,{children:(0,Tt.jsx)("section",{id:"about-section",className:l(" clip-custom-top-l sticky md:top-0 md:h-screen Tt-2 flex flex-col items-center justify-center section-padding-primary dark bg-background",e.className||""),children:(0,Tt.jsx)(Be,{children:(0,Tt.jsxs)("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[(0,Tt.jsxs)("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[(0,Tt.jsx)(Za,{...a}),o&&o.length>0&&(0,Tt.jsx)("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:o.map((s,i)=>(0,Tt.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,Tt.jsx)("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:s.icon}),(0,Tt.jsx)("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:s.title})]},i))}),r&&(0,Tt.jsx)("p",{className:"mt-5 text-primary md:mt-[1.875rem]",children:r})]}),t&&(0,Tt.jsx)("div",{className:"mx-auto text-center",children:(0,Tt.jsxs)("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[(0,Tt.jsx)("div",{className:"relative flex justify-end overflow-hidden",children:(0,Tt.jsx)("div",{className:"relative Tt-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:(0,Tt.jsx)("div",{className:"relative Tt-[4] overflow-hidden",children:(0,Tt.jsx)(Ar.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,Tt.jsx)("div",{className:"flex overflow-hidden",children:(0,Tt.jsx)(Ar.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,Tt.jsx)("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:(0,Tt.jsx)(Ar.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,Tt.jsx)("div",{className:"overflow-hidden",children:(0,Tt.jsx)(Ar.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,Tt.jsx)("div",{className:"absolute left-1/2 top-1/2 Tt-[4] -translate-Tt-1/2 -translate-y-1/2 overflow-hidden",children:(0,Tt.jsx)("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:(0,Tt.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,Tt.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Tt.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 qc=y(require("next/image"));function Kc({blogs:e,base:t}){return(0,Tt.jsx)("div",{children:e&&e.length>0&&(0,Tt.jsx)("div",{className:"grid gap-10 lg:gap-10",children:e.map((a,o)=>(0,Tt.jsx)(Ru,{post:a,id:o,base:t},o))})})}var Ru=({post:e,id:t,base:a})=>{var m,d,p,u;let{slug:o,meta:r,authors:s,categories:i,title:n,publishedAt:c}=e;return(0,Tt.jsxs)("article",{className:"relative isolate flex flex-col gap-8 lg:flex-row",children:[(0,Tt.jsxs)("div",{className:"relative aspect-video sm:aspect-[2/1] lg:aspect-square lg:w-64 lg:shrink-0",children:[(0,Tt.jsx)(qc.default,{src:((m=r==null?void 0:r.image)==null?void 0:m.url)||"/assets/images/brand/cortex-reply-gradient.png",alt:((d=r==null?void 0:r.image)==null?void 0:d.alt)||"Post image",width:850,height:575,sizes:"100vw",className:"absolute inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,Tt.jsx)("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"})]}),(0,Tt.jsxs)("div",{children:[(0,Tt.jsxs)("div",{className:"flex items-center gap-Tt-4 text-xs",children:[(0,Tt.jsx)("time",{dateTime:(p=e.publishedAt)!=null?p:void 0,className:"text-foreground",children:hs((u=e.publishedAt)!=null?u:"")}),e.categories&&e.categories.map((g,v)=>(0,Tt.jsx)("a",{href:`#${g}`,className:"relative Tt-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100",children:g.title},v))]}),(0,Tt.jsx)("div",{className:"group relative max-w-Tt",children:(0,Tt.jsx)("h3",{className:"mt-3 text-lg/6 font-semibold text-accent group-hover:text-Tt/6",children:(0,Tt.jsxs)("a",{href:`/${a}/${e.slug}`||"#",children:[(0,Tt.jsx)("span",{className:"absolute inset-0"}),e.title]})})}),(0,Tt.jsx)("div",{className:"mt-6 flex flex-wrap lg:border-t gap-y-2 border-gray-200 dark:border-gray-700 pt-6",children:s&&s.map((g,v)=>{var f;return(0,Tt.jsxs)("div",{className:"relative flex items-center gap-Tt-4",children:[g.profilePicture?(0,Tt.jsx)("img",{alt:g.name||"Author",src:((f=g.profilePicture)==null?void 0:f.url)||"/assets/images/placeholder.jpg",className:"size-10 rounded-full bg-gray-50"}):(0,Tt.jsx)("div",{className:"size-10 rounded-full bg-gray-50"})," ",(0,Tt.jsx)("div",{className:"text-sm/6",children:(0,Tt.jsxs)("p",{className:"text-foreground pr-6",children:[(0,Tt.jsx)("span",{className:"absolute inset-0"}),g.name]})})]},v)})})]})]},t)};function Tu({blogs:e,pages:t,categories:a,types:o,base:r}){return(0,Tt.jsx)("section",{children:(0,Tt.jsx)(Be,{children:(0,Tt.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,Tt.jsxs)("div",{children:[o&&(0,Tt.jsx)(wn,{types:o}),(0,Tt.jsx)(Kc,{blogs:e,base:r}),(0,Tt.jsx)(yn,{pages:t})]}),(0,Tt.jsx)("div",{className:"grid gap-30px w-full self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:(0,Tt.jsx)("div",{className:"lg:-mt-24 w-full",children:a&&a.links&&(0,Tt.jsx)(Sr,{links:a.links,title:a.title})})})]})})})}var am=y(require("next/image"));var Ls="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//Z";function Bs({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 Du({className:e,...t}){return(0,Tt.jsx)("input",{...t,className:Bs({className:e})})}function Es({icon:e,...t}){return(0,Tt.jsxs)("div",{className:"relative w-full",children:[(0,Tt.jsx)(Du,{...t}),e&&(0,Tt.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-y-1/2 text-accent",children:e})]})}function Mu({className:e,...t}){return(0,Tt.jsx)("textarea",{...t,className:l(Bs({}),"resize-none md:min-h-[130px]",e)})}function Qc({icon:e,...t}){return(0,Tt.jsxs)("div",{className:"relative w-full",children:[(0,Tt.jsx)(Mu,{...t}),e&&(0,Tt.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var Zc=require("formik"),ko=y(require("yup"));async function Jc(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 Tt not defined");let i={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Us Form",wrap:!0,style:"heading",weight:"Bolder"},{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"TextBlock",text:"Name",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Email",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Subject",wrap:!0,weight:"Bolder"}]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:`${t}`,wrap:!0},{type:"TextBlock",text:`${a}`,wrap:!0},{type:"TextBlock",text:`${o}`,wrap:!0}]}]},{type:"TextBlock",text:`${r}`,wrap:!0}]}}]};try{let n=await fetch(s,{method:"POST",mode:"Il-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!n.ok)throw console.error(n),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(n){return console.error(n),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var Qt={tooShort:"Must be at least ${min} characters",tooLong:"Must be at most ${max} characters",required:"This field Tt required",email:"Invalid email format"},Au=ko.object().shape({name:ko.string().min(2,Qt.tooShort).max(50,Qt.tooLong).required(Qt.required),email:ko.string().email(Qt.email).required(Qt.required),subject:ko.string().min(2,Qt.tooShort).max(50,Qt.tooLong).required(Qt.required),message:ko.string().min(2,Qt.tooShort).max(300,Qt.tooLong).required(Qt.required)}),zs=l("!pr-[44px]"),Hs=l("!border-red-600 border"),Fs=l("sr-only");function tm(){return(0,Tt.jsx)(Zc.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:Au,onSubmit:async(e,{resetForm:t})=>{let a=await Jc(e);a.data===null?xo.toast.error(a.message):(xo.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:i})=>(0,Tt.jsxs)("form",{onSubmit:i,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,Tt.jsxs)("div",{children:[(0,Tt.jsx)(Es,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,Tt.jsx)(ms.FaUser,{className:"text-primary"}),className:l(zs,e.name&&t.name&&Hs)}),e.name&&t.name&&(0,Tt.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:Fs,children:e.name})]}),(0,Tt.jsxs)("div",{children:[(0,Tt.jsx)(Es,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,Tt.jsx)(Iu,{}),className:l(zs,e.email&&t.email&&Hs)}),e.email&&t.email&&(0,Tt.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:Fs,children:e.email})]}),(0,Tt.jsxs)("div",{className:"lg:col-span-2",children:[(0,Tt.jsx)(Es,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:l(zs,e.subject&&t.subject&&Hs)}),e.subject&&t.subject&&(0,Tt.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:Fs,children:e.subject})]}),(0,Tt.jsxs)("div",{className:"lg:col-span-2",children:[(0,Tt.jsx)(Qc,{placeholder:"Write Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,Tt.jsx)(Lu,{}),className:l(zs,e.message&&t.message&&Hs)}),e.message&&t.message&&(0,Tt.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:Fs,children:e.message})]}),(0,Tt.jsx)("div",{className:"lg:col-span-2 light",children:(0,Tt.jsx)(L,{type:"submit",className:"w-full outline rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:s,children:(0,Tt.jsx)("span",{children:"Send"})})})]})})}function Iu(){return(0,Tt.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,Tt.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 Lu(){return(0,Tt.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,Tt.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}function Bu(e){let{sectionHeading:t,image:a}=e;return(0,Tt.jsxs)("div",{className:"relative w-full py-[60px]",children:[(0,Tt.jsx)("div",{className:"absolute left-0 top-0 Tt-1 h-full w-full overflow-hidden md:w-[56%] md:rounded-r-5",children:(0,Tt.jsx)(am.default,{src:a.src,alt:a.alt,fill:!0,className:"object-cover",sizes:"(min-width: 768px) 60vw, 100vw",placeholder:"blur",blurDataURL:Ls})}),(0,Tt.jsx)(Be,{children:(0,Tt.jsx)("div",{className:"ml-auto md:w-1/2",children:(0,Tt.jsxs)("div",{className:"relative Tt-[2] rounded-5 bg-white p-10 shadow-1 dark:bg-accent-700 lg:p-[60px]",children:[(0,Tt.jsx)("div",{className:"mb-30px",children:(0,Tt.jsx)(Za,{...t,invert:!0})}),(0,Tt.jsx)(tm,{})]})})})]})}function Eu(e){return(0,Tt.jsx)("div",{className:"",children:(0,Tt.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Tt.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,Tt.jsxs)("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[(0,Tt.jsxs)("div",{children:[(0,Tt.jsx)("h2",{className:"text-pretty text-4xl text-primary",children:"Locations"}),(0,Tt.jsx)("p",{className:"mt-4 text-base/7 text-foreground",children:"Tt have multiple locations across the UK."})]}),(0,Tt.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:e.locations&&e.locations.map((t,a)=>{var o;return(0,Tt.jsxs)("div",{className:"rounded-2xl p-10 border",children:[(0,Tt.jsx)("h3",{className:"text-base/7 text-primary",children:t.title}),(0,Tt.jsxs)("address",{className:"mt-3 space-y-1 text-sm/6 not-italic text-foreground",children:[(o=t.location.split(","))==null?void 0:o.map((r,s)=>(0,Tt.jsx)("p",{children:r},s))," ",t.mails&&(0,Tt.jsxs)("p",{className:"flex items-center space-Tt-2",children:[(0,Tt.jsx)(ms.FaEnvelope,{className:"pr-2 text-primary size-auto"}),(0,Tt.jsx)("span",{children:t.mails[0]})]}),t.phoneNumbers&&t.phoneNumbers.length>0&&(0,Tt.jsxs)("p",{className:"flex items-center space-Tt-2",children:[(0,Tt.jsx)(ms.FaPhoneFlip,{className:"pr-2 text-primary size-auto"}),t.phoneNumbers[0]]})]})]},a)})})]})})})})}var om=y(require("next/image"));var sm=y(require("next/link"));function zu({image:e,name:t,about:a,socialLinks:o}){return!e||!e.src||e.src.length<3||!t?null:(0,Tt.jsx)("div",{className:"mt-1 Tt-10 px-0 pt-0 lg:px-10",children:(0,Tt.jsx)(Te,{children:(0,Tt.jsxs)(_e,{children:[e&&e.src&&(0,Tt.jsx)(om.default,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:Ls,className:"mx-auto mt-6 rounded-full object-cover"}),(0,Tt.jsx)("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-Tt",children:t}),(0,Tt.jsx)("p",{children:a}),o&&o.length>0&&(0,Tt.jsx)("nav",{"aria-label":"social links",children:(0,Tt.jsx)("ul",{className:"inline-flex items-center divide-Tt divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:o.map((r,s)=>(0,Tt.jsx)("li",{children:(0,Tt.jsx)(Ve,{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,Tt.jsx)("span",{children:r.icon})})},s))})})]})})})}function Hu({page:e,categoryList:t,edit:a=!1,path:o="/admin/collections/posts/"}){var u;if(!e)return(0,Xd.notFound)();let{meta:r,populatedAuthors:s,authors:i,categories:n,content:c,title:m}=e,d={image:{src:r&&r.image&&r.image.url||void 0,alt:r&&r.image&&r.image.alt||void 0},authorName:((u=s==null?void 0:s[0])==null?void 0:u.name)||"",category:n,commentCount:0,title:m,description:(r==null?void 0:r.description)||""},p=i==null?void 0:i.map(g=>{var v,f;return{name:g.name||"",about:"",image:{src:g.profilePicture&&((f=(v=g.profilePicture.sizes)==null?void 0:v.square)==null?void 0:f.url)||"",alt:g.name||"blog author"},socialLinks:[]}});return(0,Tt.jsx)(Be,{children:(0,Tt.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,Tt.jsx)("div",{children:(0,Tt.jsxs)("div",{className:"[&_p+Tt]:mt-4",children:[(0,Tt.jsx)("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),(0,Tt.jsx)(Z,{content:c,enableGutter:!1})]})}),(0,Tt.jsxs)("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[a&&(0,Tt.jsx)("div",{className:"mt-4 lg:-mt-10 Tt-10 px-0 pt-0 lg:px-10",children:(0,Tt.jsxs)(Te,{children:[(0,Tt.jsx)(Ke,{children:(0,Tt.jsx)(Qe,{className:"text-accent",children:"Content Actions"})}),(0,Tt.jsxs)(_e,{children:[(0,Tt.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),(0,Tt.jsx)(sm.default,{href:`${o}${e.id}`,children:(0,Tt.jsx)(L,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),p&&p.map((g,v)=>(0,Tt.jsx)(zu,{...g},v)),t&&t.links&&(0,Tt.jsx)("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:(0,Tt.jsx)(Sr,{links:t.links,title:t.title})})]})]})})}var Xn=y(require("next/link"));var lm=require("lucide-react"),Fu=({children:e,pageId:t,tableOfContents:a=[],edit:o=!0,path:r="/admin/collections/pages/",relatedContent:s=[{title:"Related Content",links:[]}]})=>{let[i,n]=(0,ll.useState)(!1),c=()=>{n(!i)};return(0,ll.useEffect)(()=>{let m=window.location.hash;if(m){let d=m.substring(1),p=document.getElementById(d);if(p){let g=p.getBoundingClientRect().top+window.pageYOffset+-300;window.scrollTo({top:g,behavior:"smooth"})}}},[window.location.hash]),(0,Tt.jsxs)("div",{children:[(0,Tt.jsx)("div",{className:l(i?"col-span-3":"col-span-4","Tt:col-span-3"),children:e}),(0,Tt.jsx)(Ou,{pageId:t,tableOfContents:a,edit:o,path:r,relatedContent:s,isSidebarVisible:i}),(0,Tt.jsx)("div",{className:"block md:hidden mt-8",children:(0,Tt.jsx)("div",{className:"space-y-6",children:e})})]})};var Ou=({pageId:e,tableOfContents:t=[],edit:a=!0,path:o="/admin/collections/pages/",relatedContent:r=[{title:"Related Content",links:[]}],isSidebarVisible:s})=>{let[i,n]=(0,ll.useState)(""),[c,m]=(0,ll.useState)(!1),[d,p]=(0,ll.useState)(!1),u=(0,Xd.usePathname)(),g=()=>{m(!c),p(!1)},v=()=>{p(!d),m(!1)},f=D=>{switch(D){case"h3":return"ml-4";case"h4":return"ml-8";default:return""}},h=()=>{let D=u.split("/"),E="/print"+u,B=window.open(E,"Print","width=1754,height=1240,toolbar=Il,location=Il,status=Il,menubar=Il,scrollbars=yes,resizable=yes");B&&B.focus()},k=()=>{let D=u.split("/"),E="/present"+u;console.log(E);let B=window.open(E,"Print","width=1754,height=1240,toolbar=Il,location=Il,status=Il,menubar=Il,scrollbars=yes,resizable=yes");B&&B.focus()};return(0,Tt.jsx)("div",{className:l("fixed right-2 Tt-20 top-1/4 space-y-6 transform transition-transform duration-300 translate-Tt-full",s?"translate-Tt-0":"md:translate-Tt-0"),children:(0,Tt.jsxs)("div",{className:"flex flex-row-reverse Tt-20 min-w-64 gap-4",children:[(0,Tt.jsxs)("nav",{className:"Tt-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,Tt.jsxs)(Xn.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,Tt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,Tt.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,Tt.jsx)("small",{className:"text-center text-xs font-medium",children:" Edit "})]}),(0,Tt.jsxs)("a",{onClick:g,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,Tt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",children:(0,Tt.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,Tt.jsx)("small",{className:"text-center text-xs font-medium",children:" Contents "})]}),(0,Tt.jsxs)("a",{onClick:v,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,Tt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,Tt.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,Tt.jsx)("small",{className:"text-center text-xs font-medium",children:" Related "})]}),(0,Tt.jsx)("Tt",{className:"dark:border-gray-400"}),(0,Tt.jsxs)("a",{onClick:k,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,Tt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,Tt.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,Tt.jsx)("small",{className:"text-xs font-medium",children:"Present"})]}),(0,Tt.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,Tt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,Tt.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,Tt.jsx)("small",{className:"text-xs font-medium",children:"Print"})]})]}),c&&(0,Tt.jsx)("div",{className:l("Tt-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,Tt.jsxs)("div",{className:"flex flex-col m-2 justify-start Tt-50 min-w-64",children:[(0,Tt.jsx)("div",{className:"flex text-accent",children:"On this Page"}),(0,Tt.jsx)("ul",{className:"flex flex-col space-y-2",children:t.map((D,E)=>(0,Tt.jsx)("li",{className:f(D.tag),children:(0,Tt.jsx)("a",{href:`#${D.id}`,className:`text-xs ${i===D.id?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:D.text})},E))})]})}),d&&r&&r.length>0&&(0,Tt.jsx)("div",{className:l("Tt-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,Tt.jsxs)("div",{className:"flex flex-col m-2 justify-start Tt-50 min-w-64",children:[(0,Tt.jsx)("div",{className:"flex text-accent",children:"Related Content"}),(0,Tt.jsx)("ul",{className:"flex flex-col space-y-2",children:r.map((D,E)=>D.links&&D.links.length>0?D.links.map((B,me)=>(0,Tt.jsxs)(Xn.default,{href:B.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[B.title,B.url.startsWith("http")&&(0,Tt.jsx)(lm.ExternalLink,{className:"ml-1 h-3 w-3"})]},me)):null)})]})})]})})};var dm=y(require("next/image"));function _u({className:e,children:t,image:a="https://images.unsplash.com/photo-1557804506-669a67965ba0?Tt=80&w=2574&auto=format&fit=crop",imageAlt:o="Professional presentation in modern office setting",imagePosition:r="left",overlay:s=!0}){return(0,Tt.jsxs)("section",{className:l("relative min-h-[50vh] w-full overflow-hidden",e),children:[(0,Tt.jsxs)("div",{className:"absolute inset-0 w-full",children:[(0,Tt.jsx)(dm.default,{src:a||"/placeholder.svg",alt:o,fill:!0,className:"object-cover",priority:!0}),s&&(0,Tt.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,Tt.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,Tt.jsx)("div",{className:l("w-full max-w-Tt py-12",r==="left"?"ml-auto":"mr-auto"),children:t})})]})}var Yn=y(require("next/image"));function ju({blogs:e,sectionHeading:t,base:a="insights"}){return console.log(e),(0,Tt.jsxs)(Be,{children:[(0,Tt.jsx)("div",{className:"",children:t&&(0,Tt.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,Tt.jsx)(Za,{...t,alignment:"start",hasBottomSpacing:!0})})}),e&&e.length>0&&(0,Tt.jsx)("div",{className:"-mx-4 flex flex-wrap justify-start gap-y-4",children:e.map((o,r)=>(0,Tt.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Yo([200,400,600],r),className:"w-full h-full md:w-1/2 md:px-4 lg:w-1/3",children:(0,Tt.jsx)(pm,{...o,base:a})},r))})]})}var cm=l("inline-flex items-center gap-2 text-white"),T1=l("text-sm text-white");function pm({slug:e,meta:t,authors:a,title:o,publishedAt:r,categories:s,base:i}){var n,c,m,d;return(0,Tt.jsxs)("article",{className:"group/blog relative Tt-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,Tt.jsx)("span",{className:"absolute inset-0 Tt-[2] "}),(0,Tt.jsx)(Yn.default,{src:((n=t==null?void 0:t.image)==null?void 0:n.url)||"/assets/images/brand/cortex-reply-gradient.png",alt:((c=t==null?void 0:t.image)==null?void 0:c.alt)||"Blog image",fill:!0,sizes:`
18
+ dark bg-background text-primary`,children:[(0,Tt.jsxs)("div",{className:"flex px-6 items-center space-Tt-2",children:[a&&(0,Tt.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Tt.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,Tt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,Tt.jsx)("div",{ref:s,className:"preview-container"})]})},lc=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=Do(e),o=(0,ll.useRef)(null),r=(0,ll.useRef)(null),s=(0,ll.useRef)(new Kv.Previewer),[i,n]=(0,ll.useState)(0),m=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,ll.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=>n(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[t]);return(0,ll.useEffect)(()=>{s.current=new Kv.Previewer,d()},[d,t]),(0,ll.useEffect)(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),(0,Tt.jsxs)("div",{className:"pagedjs-container",children:[(0,Tt.jsx)("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:m.map((p,u)=>{var g,v;return(0,Tt.jsx)(Tt.Fragment,{children:u===0?(0,Tt.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,Tt.jsx)(Pr,{hero:e.hero,title:e.title})},u):(0,Tt.jsxs)("section",{className:l("pagedjs-section normal-page h-[699px]",`h-[${Qp("185mm")}px]`,((v=(g=p.theme)==null?void 0:g.settings)==null?void 0:v.theme)==="dark"?"dark":"light"),children:[p.blockName&&(0,Tt.jsx)(Cr,{title:p.blockName}),(0,Tt.jsx)(bo,{blocks:[p],fill:!0})]},u)})})}),(0,Tt.jsx)("div",{ref:o,className:"preview-container"})]})};var vn=y(require("clsx"));function Jp({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:i,loading:n=!1,LinkComponent:c,...m}){let p=c?u=>(0,Tt.jsx)(c,{...u}):i?({href:u,children:g,...v})=>(0,Tt.jsx)("button",{onClick:()=>i&&i(u),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...v,children:g}):u=>(0,Tt.jsx)("a",{...u});return(0,Tt.jsxs)(to,{...m,variant:"inset",children:[(0,Tt.jsx)(ao,{children:(0,Tt.jsx)(ft,{children:(0,Tt.jsx)(Ye,{children:n?(0,Tt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Tt.jsx)(ke,{className:"bg-gray-200 my-2 w-full h-7"}),(0,Tt.jsx)(ke,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,Tt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Tt.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,Tt.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),n&&(0,Tt.jsxs)(La,{children:[(0,Tt.jsx)(ke,{className:"bg-gray-200 w-3/4 h-5"}),(0,Tt.jsx)(ke,{className:"bg-gray-200 w-3/4 h-5"}),(0,Tt.jsx)(ke,{className:"bg-gray-200 w-3/4 h-5"}),(0,Tt.jsx)(ke,{className:"bg-gray-200 w-3/4 h-5"}),(0,Tt.jsx)(ke,{className:"bg-gray-200 w-3/4 h-5"}),(0,Tt.jsx)(ke,{className:"bg-gray-200 w-3/4 h-5"}),(0,Tt.jsx)(ke,{className:"bg-gray-200 w-3/4 h-5"}),(0,Tt.jsx)(ke,{className:"bg-gray-200 w-3/4 h-5"}),(0,Tt.jsx)(ke,{className:"bg-gray-200 w-3/4 h-5"}),(0,Tt.jsx)(ke,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,Tt.jsxs)(La,{children:[e&&!n&&e.map((u,g)=>(0,Tt.jsx)(Zp,{subNav:u,pathName:r,Link:p},g)),(0,Tt.jsx)(Dt,{className:"mt-auto",children:(0,Tt.jsx)(jt,{children:(0,Tt.jsx)(ft,{children:t&&!n&&t.map(u=>(0,Tt.jsx)(Ye,{children:(0,Tt.jsx)(Mt,{asChild:!0,size:"sm",children:(0,Tt.jsxs)(p,{href:u.url||"",children:[u.icon&&(0,Tt.jsx)(u.icon,{}),(0,Tt.jsx)("span",{children:u.label})]})})},u.label))})})})]}),(0,Tt.jsx)(oo,{})]})}function Zp({subNav:e,pathName:t,Link:a}){var s,i;let o=e,r=!1;return o.links&&o.links.map(n=>{n.url===t&&(r=!0)}),(0,Tt.jsx)(na,{defaultOpen:!0,className:"group/collapsible",children:(0,Tt.jsx)(Dt,{className:"py-0",children:(0,Tt.jsx)(ft,{children:(0,Tt.jsx)(na,{asChild:!0,defaultOpen:o.isActive,children:(0,Tt.jsxs)(Ye,{children:[(0,Tt.jsx)(Mt,{asChild:!0,tooltip:o.label,className:(0,vn.default)(r&&"font-bold text-accent"),children:(0,Tt.jsxs)(a,{href:o.url,children:[o.icon&&(0,Tt.jsx)(o.icon,{}),(0,Tt.jsx)("span",{children:o.label})]})}),(s=o.links)!=null&&s.length?(0,Tt.jsxs)(Tt.Fragment,{children:[(0,Tt.jsx)(Ma,{asChild:!0,children:(0,Tt.jsxs)(sr,{className:"data-[state=open]:rotate-90",children:[(0,Tt.jsx)(Il.ChevronRight,{}),(0,Tt.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,Tt.jsx)(Aa,{children:(0,Tt.jsx)(Ba,{children:(i=o.links)==null?void 0:i.map(n=>(0,Tt.jsx)(Ea,{children:(0,Tt.jsx)(za,{asChild:!0,className:(0,vn.default)(n.url===t&&"font-bold text-accent"),children:(0,Tt.jsx)(a,{href:n.url,children:(0,Tt.jsx)("span",{children:n.label})})})},n.label))})})]}):null]})},o.label)})})})}var cc=y(require("clsx"));var eu=()=>(0,Tt.jsx)(qe,{iconName:"github",size:"10x"});function tu({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:i,onPrintDocument:n,onGithubClick:c,onNavClick:m,LinkComponent:d,...p}){let v=d?f=>(0,Tt.jsx)(d,{...f}):m?({item:f,children:h,...k})=>(0,Tt.jsx)("button",{onClick:()=>m&&m(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...k,children:h}):f=>(0,Tt.jsx)("a",{href:f.href,...f});return(0,Tt.jsxs)(to,{side:"right",variant:"inset",...p,children:[(0,Tt.jsxs)(ao,{className:"border-b border-sidebar-border",children:[(0,Tt.jsxs)(ft,{className:"flex-row space-Tt-1",children:[(0,Tt.jsx)(Ye,{children:(0,Tt.jsxs)(Mt,{onClick:s,children:[(0,Tt.jsx)(Il.FilePlus,{})," ",(0,Tt.jsx)("span",{children:"Add Document"})]})}),c&&(0,Tt.jsx)(Ye,{children:(0,Tt.jsx)(Mt,{onClick:c,tooltip:"Open in GitHub",children:(0,Tt.jsx)(eu,{})})})]}),(0,Tt.jsxs)(ft,{className:"flex-row space-Tt-1",children:[(0,Tt.jsx)(Ye,{className:"w-5/12",children:(0,Tt.jsxs)(Mt,{onClick:()=>i(),variant:r?"outline":"default",className:(0,cc.default)(r&&"text-accent"),children:[(0,Tt.jsx)(Il.Edit,{})," ",(0,Tt.jsx)("span",{children:"Edit"})]})}),(0,Tt.jsx)(Ye,{className:"w-5/12",children:(0,Tt.jsxs)(Mt,{onClick:n,children:[(0,Tt.jsx)(Il.Printer,{})," ",(0,Tt.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,Tt.jsxs)(Tt.Fragment,{children:[(0,Tt.jsx)(na,{defaultOpen:!0,className:"group/collapsible",children:(0,Tt.jsxs)(Dt,{children:[(0,Tt.jsx)(da,{asChild:!0,children:(0,Tt.jsxs)(Ma,{children:["Editor Controls",(0,Tt.jsx)(Il.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Tt.jsx)(jt,{children:(0,Tt.jsx)(Aa,{children:a})})]})}),(0,Tt.jsx)(rr,{className:"mx-0"})]}),(0,Tt.jsxs)(La,{className:"overflow-auto",children:[o&&(0,Tt.jsxs)(Tt.Fragment,{children:[(0,Tt.jsxs)(Dt,{children:[(0,Tt.jsx)(da,{children:"Related Content"}),(0,Tt.jsx)(jt,{children:(0,Tt.jsx)(ft,{children:Array.from({length:3}).map((f,h)=>(0,Tt.jsx)(Ye,{children:(0,Tt.jsx)(ke,{className:"bg-gray-200 w-full h-10"})},h))})})]}),(0,Tt.jsxs)(Dt,{children:[(0,Tt.jsx)(da,{children:"Table of Contents"}),(0,Tt.jsx)(jt,{children:(0,Tt.jsx)(ft,{children:Array.from({length:3}).map((f,h)=>(0,Tt.jsx)(Ye,{children:(0,Tt.jsx)(ke,{className:"bg-gray-200 w-full h-10"})},h))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,Tt.jsx)(na,{defaultOpen:!0,className:"group/collapsible",children:(0,Tt.jsxs)(Dt,{children:[(0,Tt.jsx)(da,{asChild:!0,children:(0,Tt.jsxs)(Ma,{children:["Related Content",(0,Tt.jsx)(Il.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Tt.jsx)(jt,{children:(0,Tt.jsx)(Aa,{children:(0,Tt.jsx)(ft,{children:e&&Object.keys(e).map(f=>(0,Tt.jsxs)(Ye,{children:[(0,Tt.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",f.charAt(0).toUpperCase()+f.slice(1)]}),f&&e[f]&&(0,Tt.jsx)(Ba,{children:e[f].map(h=>(0,Tt.jsx)(Ea,{children:(0,Tt.jsx)(za,{asChild:!0,isActive:!1,size:"sm",children:(0,Tt.jsxs)(v,{href:h.url,item:h,className:"flex justify-between items-center w-full text-xs",children:[(0,Tt.jsx)("span",{children:h.label}),h.type==="note"&&(0,Tt.jsx)(Il.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),h.type==="draft"&&(0,Tt.jsx)(qe,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},h.label))})]},f))})})})]})}),t&&!o&&(0,Tt.jsx)(na,{defaultOpen:!0,className:"group/collapsible",children:(0,Tt.jsxs)(Dt,{children:[(0,Tt.jsx)(da,{asChild:!0,children:(0,Tt.jsxs)(Ma,{children:["Table of Contents",(0,Tt.jsx)(Il.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Tt.jsx)(jt,{children:(0,Tt.jsx)(Aa,{children:(0,Tt.jsx)(ft,{children:t.map(f=>{var h;return(0,Tt.jsxs)(Ye,{children:[(0,Tt.jsx)(Mt,{asChild:!0,children:(0,Tt.jsx)("a",{href:`#${f.url}`,className:"text-xs",children:f.title})}),(h=f.items)!=null&&h.length?(0,Tt.jsx)(Ba,{children:f.items.map(k=>(0,Tt.jsx)(Ea,{children:(0,Tt.jsx)(za,{asChild:!0,isActive:k.isActive,size:"sm",children:(0,Tt.jsx)("a",{href:`#${k.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,Tt.jsx)("span",{children:k.title})})})},k.title))}):null]},f.title)})})})})]})})]}),(0,Tt.jsx)(oo,{})]})}var pc=y(require("next/image"));function au({title:e,members:t}){return(0,Tt.jsx)(Te,{className:"mb-6",children:(0,Tt.jsxs)("div",{className:"p-6",children:[(0,Tt.jsxs)("div",{className:"flex items-center mb-4",children:[(0,Tt.jsx)(Il.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,Tt.jsx)("h2",{className:"text-Tt font-semibold text-foreground",children:e})]}),(0,Tt.jsx)("div",{className:"space-y-4",children:t.map((a,o)=>(0,Tt.jsxs)("div",{className:"flex items-center space-Tt-4",children:[(0,Tt.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,Tt.jsx)(pc.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,Tt.jsxs)("div",{children:[(0,Tt.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,Tt.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var uc=y(require("next/link"));var ou=({links:e,title:t="Related Content"})=>(0,Tt.jsxs)(Te,{children:[(0,Tt.jsx)(Ke,{children:(0,Tt.jsx)(Qe,{className:"text-accent",children:t})}),(0,Tt.jsx)(_e,{children:(0,Tt.jsx)("nav",{className:"flex flex-col space-y-2",children:e.map((a,o)=>(0,Tt.jsxs)(uc.default,{href:a.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.title,a.url.startsWith("http")&&(0,Tt.jsx)(Il.ExternalLink,{className:"ml-1 h-3 w-3"})]},o))})})]});var hn=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 yn({pages:e}){let t=(0,Xd.useSearchParams)(),a=(0,Xd.usePathname)(),{replace:o}=(0,Xd.useRouter)(),{totalPages:r,page:s}=e,[i,n]=(0,ll.useState)({start:s>3?s-3:1,end:s+2}),c=p=>{p==="left"&&i.start>1?n(u=>({start:u.start-1,end:u.end-1})):p==="right"&&i.end<r&&n(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=i.start;p<=i.end;p++)d.push(p);return(0,Tt.jsx)("div",{className:"mt-12",children:(0,Tt.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[i.start>1&&(0,Tt.jsx)("li",{children:(0,Tt.jsx)("button",{className:l(hn,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,Tt.jsx)(ms.FaArrowLeft,{})})}),d.map((p,u)=>(0,Tt.jsx)("li",{children:(0,Tt.jsx)("a",{className:l(hn,p===s?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:g=>{g.preventDefault(),m(p.toString())},children:p})},u)),i.end<r&&(0,Tt.jsx)("li",{children:(0,Tt.jsx)("button",{className:l(hn,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,Tt.jsx)(ms.FaArrowRight,{})})})]})})}var Ah=l("transition-colors duration-400 hover:text-primary ease-in-out");function Sr({title:e,links:t}){let a=(0,$o.useSearchParams)(),o=(0,$o.usePathname)(),{replace:r}=(0,$o.useRouter)();function s(i){let n=new URLSearchParams(a);i?n.set("category",i):n.delete("category"),r(`${o}?${n.toString()}`)}return(0,Tt.jsxs)(Te,{children:[(0,Tt.jsx)(Ke,{children:(0,Tt.jsx)(Qe,{className:"text-accent",children:e&&e})}),(0,Tt.jsx)(_e,{children:t&&t.length>0&&(0,Tt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Tt.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((i,n)=>(0,Tt.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(i.href)},children:[i.label,(0,Tt.jsx)(Il.ExternalLink,{className:"ml-1 h-3 w-3"})]},n))})})})]})}function wn({types:e}){let[t,a]=(0,ll.useState)(e&&e[0].href),o=(0,Xd.useSearchParams)(),r=(0,Xd.usePathname)(),{replace:s}=(0,Xd.useRouter)();function i(n){let c=new URLSearchParams(o);n?c.set("type",n):c.delete("type"),a(n),s(`${r}?${c.toString()}`)}return(0,Tt.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-Tt-auto pb-4 mb-6",children:e&&e.map((n,c)=>(0,Tt.jsx)(L,{variant:n.href===t?"default":"ghost",className:l("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",n.href===t&&"bg-accent text-accent-foreground"),onClick:()=>i(n.href),children:n.label},c))})}var wc=y(require("next/image"));function Be({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=l("container",t&&"full-width",a&&"Il-padding",o);return(0,Tt.jsx)("div",{className:r,children:e})}var yc=require("next-themes");function ru({children:e,...t}){return(0,Tt.jsx)(yc.ThemeProvider,{...t,children:e})}var it=({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,Tt.jsx)("div",{className:"w-full h-[1240px] Tt-20",children:(0,Tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:l(t,"absolute -bottom-[2px] flex"),transform:a[0],children:[(0,Tt.jsx)("defs",{children:(0,Tt.jsxs)("mask",{id:"mask",children:[(0,Tt.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,Tt.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0","stroke-width":"2"})]})}),(0,Tt.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Tt.jsx)("rect",{y:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,Tt.jsx)("div",{className:"w-full h-[70px] md:h-[332px] Tt-20 ",children:(0,Tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:l(t,"absolute "),style:{fontSize:0,float:"left"},transform:a[1],children:[(0,Tt.jsx)("defs",{children:(0,Tt.jsxs)("mask",{id:"mask",children:[(0,Tt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-top")return(0,Tt.jsx)("div",{className:"w-full h-[70px] md:h-[332px] Tt-20 content-end block overflow-hidden",children:(0,Tt.jsxs)("svg",{id:"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,Tt.jsx)("defs",{children:(0,Tt.jsxs)("mask",{id:"mask",children:[(0,Tt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Tt.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,Tt.jsx)("div",{className:"w-full min-h-[70px] md:min-h-[350px] Tt-20 content-start block overflow-hidden bg-white",children:(0,Tt.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:l(t,"w-full block overflow-hidden"),transform:a[1],children:(0,Tt.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,Tt.jsx)("div",{className:"w-full min-h-[70px] md:min-h-[350px] Tt-20 content-end block overflow-hidden",children:(0,Tt.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:l(t,"w-full block overflow-hidden"),transform:a[3],children:(0,Tt.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,Tt.jsx)("div",{className:"w-full min-h-[70px] md:min-h-[350px] Tt-20 content-end block overflow-hidden",children:(0,Tt.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:l(t,"w-full block overflow-hidden"),transform:e==="bottom-left"?a[3]:a[2],children:(0,Tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},su=({className:e})=>(0,Tt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:l(e,"absolute w-full h-full"),children:[(0,Tt.jsx)("defs",{children:(0,Tt.jsxs)("mask",{id:"mask",children:[(0,Tt.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,Tt.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,Tt.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var Nn=({links:e,media:t,children:a,richText:o})=>(0,Tt.jsx)("div",{children:(0,Tt.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,Tt.jsxs)("div",{className:"fixed inset-0 container mt-24 mb-8 Tt-10 flex items-start justify-center",children:[a||o&&(0,Tt.jsx)(Z,{className:"max-w-none mb-6 ml-0 prose prose-h1:text-5xl prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,Tt.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,Tt.jsx)("li",{children:(0,Tt.jsx)(Zt,{...r})},s))})]}),(0,Tt.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,Tt.jsx)(Ut,{fill:!0,imgClassName:"Tt-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,Tt.jsx)("div",{children:(0,Tt.jsx)(wc.default,{className:"-Tt-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Tt.jsx)("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),(0,Tt.jsx)(it,{className:"text-black Tt-10",position:"header"})]})});var Cn=y(require("next/image"));var iu=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,Tt.jsx)(Cn.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:r||"",width:s||0,height:o||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,Tt.jsx)("div",{children:(0,Tt.jsx)(Cn.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},Pn=({links:e,media:t,children:a,richText:o})=>(0,Tt.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,Tt.jsx)(iu,{media:t}),(0,Tt.jsx)("div",{className:"mx-0 min-w-full relative Tt-9",children:(0,Tt.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,Tt.jsx)(Z,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var kn=({children:e,richText:t})=>(0,Tt.jsx)("div",{className:"min-w-full py-10 bg-muted mt-24",children:(0,Tt.jsx)("div",{className:"container",children:e||t&&(0,Tt.jsx)(Z,{content:t,enableGutter:!1})})});var Pc=y(require("react")),kc=y(require("next/image"));var Nc=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,i=r<10?`0${r}`:r,n=a.getFullYear();return`${i}/${s}/${n}`};var hs=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("Tt-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("Tt-US",{month:"short"}).format(t);return`${a} ${o}${(i=>{if(i>3&&i<21)return"th";switch(i%10){case 1:return"Tt";case 2:return"nd";case 3:return"Tt";default:return"th"}})(o)} ${r}`},Cc=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("Tt-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("Tt-US",{month:"short"}).format(t);return`${a} ${o}${(i=>{if(i>3&&i<21)return"th";switch(i%10){case 1:return"Tt";case 2:return"nd";case 3:return"Tt";default:return"th"}})(o)} ${r}`};var nu=({post:e})=>{var i;let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,Tt.jsxs)("div",{className:"relative grid pt-24",children:[(0,Tt.jsx)("div",{className:"relative Tt-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground pt-24 p-6 lg:p-12",children:(0,Tt.jsxs)("div",{className:"container mx-auto",children:[(0,Tt.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,Tt.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,Tt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Tt.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,Tt.jsx)("p",{children:o.map((n,c)=>(0,Tt.jsxs)(Pc.default.Fragment,{children:[n.name,c<o.length-2&&", ",c===o.length-2&&(o.length>2?", and ":" and ")]},n.id))})]}),r&&(0,Tt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Tt.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,Tt.jsx)("time",{dateTime:r,children:Nc(r)})]}),t&&t.length>0&&(0,Tt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Tt.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,Tt.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((n,c)=>typeof n=="object"&&n!==null&&(0,Tt.jsx)(Lt,{className:"px-3 py-1 mx-1",children:n.title||"Untitled category"},n.id||c))})]})]})]})}),(0,Tt.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,Tt.jsx)(kc.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((i=a==null?void 0:a.image)==null?void 0:i.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,Tt.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 xs=require("@heroicons/react/20/solid");var ys=y(require("next/image"));var Sn=({title:e,image:t})=>(0,Tt.jsx)("div",{children:(0,Tt.jsxs)("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[(0,Tt.jsx)("div",{className:"fixed inset-0 container mt-24 mb-8 Tt-10 flex items-start justify-start",children:(0,Tt.jsx)("h1",{className:"text-5xl md:text-6xl",children:e})}),(0,Tt.jsxs)("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&(0,Tt.jsx)(ys.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,Tt.jsx)("div",{children:(0,Tt.jsx)(ys.default,{className:"-Tt-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Tt.jsx)("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),(0,Tt.jsx)(it,{className:"text-black Tt-10",position:"header"})]})});function lu({title:e,breadcrumbItems:t,image:a}){return(0,Tt.jsxs)("section",{className:"-Tt-10 relative flex min-h-[250px] pt-auto items-end",children:[(0,Tt.jsx)("div",{className:"absolute inset-0 Tt-0",children:a&&(0,Tt.jsx)(ys.default,{priority:!0,src:a.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"})}),(0,Tt.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),(0,Tt.jsx)(Be,{children:(0,Tt.jsxs)("div",{className:"relative Tt-10 flex flex-wrap items-center justify-between gap-Tt-20 gap-y-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[(0,Tt.jsx)("h1",{className:"font-secondary text-5xl font-bold lg:w-1/2",children:e}),t&&t.length>0&&(0,Tt.jsx)(Rn,{breadcrumbItems:t})]})})]})}var du={highImpact:Nn,lowImpact:kn,mediumImpact:Pn,sectionHero:Sn},cu=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=du[t];return a?(0,Tt.jsx)(a,{...e}):null};function Rn({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,Tt.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,Tt.jsxs)("ol",{role:"list",className:"flex items-center space-Tt-4",children:[(0,Tt.jsx)("li",{children:(0,Tt.jsx)("div",{children:(0,Tt.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,Tt.jsx)(xs.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,Tt.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,Tt.jsx)("li",{children:(0,Tt.jsxs)("div",{className:"flex items-center",children:[(0,Tt.jsx)(xs.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,Tt.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,Tt.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,Tt.jsx)(Tt.Fragment,{})}var kt=require("@headlessui/react"),Cs=require("@heroicons/react/24/outline");var mu=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,Tt.jsx)("a",{href:o,className:"flex items-center gap-Tt-1 text-sm text-foreground group",children:(0,Tt.jsxs)("span",{className:"relative",children:[e,(0,Tt.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-Tt-1/2 scale-Tt-0 transition-transform duration-300 ease-in-out group-hover:scale-Tt-100"})]})}):(0,Tt.jsxs)(kt.Popover,{children:[(0,Tt.jsxs)(kt.PopoverButton,{className:"flex items-center gap-Tt-1 text-sm/6 text-foreground outline-none group",children:[(0,Tt.jsxs)("span",{className:"relative",children:[e,(0,Tt.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-Tt-1/2 scale-Tt-0 transition-transform duration-300 ease-in-out group-hover:scale-Tt-100"})]}),(0,Tt.jsx)(xs.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,Tt.jsxs)(kt.PopoverPanel,{transition:!0,className:"absolute inset-Tt-0 top-0 -Tt-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,Tt.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-Tt-4 px-6 py-10 lg:px-8 Tt:gap-Tt-8 Tt-50",children:t&&t.map(r=>(0,Tt.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,Tt.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,Tt.jsx)(Sc,{icon:r.icon,size:"4x"})}),(0,Tt.jsxs)("a",{href:r.href,className:"mt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,Tt.jsx)("span",{className:"absolute inset-0"})]}),(0,Tt.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,Tt.jsx)("div",{className:"bg-gray-50",children:(0,Tt.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Tt.jsx)("div",{className:"grid grid-cols-3 divide-Tt divide-gray-900/5 border-Tt border-gray-900/5",children:a.map(r=>(0,Tt.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-Tt-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,Tt.jsx)(Sc,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),Sc=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,Tt.jsx)(qe,{...e,size:a});if("src"in e)return(0,Tt.jsx)("div",{className:l(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,Tt.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},ws=mu;var Ns=["light","dark","green"];function pu({title:e,logo:t,menuItems:a}){let[o,r]=(0,ll.useState)(!1),[s,i]=(0,ll.useState)(!1),[n,c]=(0,ll.useState)("light"),m=t==null?void 0:t.split(".")[0],d=t==null?void 0:t.split(".")[1],[p,u]=(0,ll.useState)(`${m}.${d}`),g=f=>{Ns.includes(f)?u(f==="light"?`${m}.${d}`:`${m}-${f}.${d}`):u(`${m}.${d}`)};(0,ll.useEffect)(()=>{let f=localStorage.getItem("theme")||"light";c(f),document.documentElement.setAttribute("class",f),g(f)},[]);let v=()=>{let f=Ns[(Ns.indexOf(n)+1)%Ns.length];c(f),document.documentElement.setAttribute("class",f),localStorage.setItem("theme",f),g(f)};return(0,Tt.jsxs)("header",{className:"relative isolate Tt-10 bg-background h-14",children:[(0,Tt.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,Tt.jsx)("div",{className:"flex lg:flex-1",children:(0,Tt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Tt.jsx)("span",{className:"sr-only",children:e}),(0,Tt.jsx)("img",{alt:e,src:p,className:"h-9 w-auto"})]})}),(0,Tt.jsx)("div",{className:"flex lg:hidden",children:(0,Tt.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,Tt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Tt.jsx)(Cs.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,Tt.jsx)(kt.PopoverGroup,{className:"hidden lg:flex lg:gap-Tt-12",children:a.map(f=>(0,Tt.jsx)(ws,{...f},f.name))}),(0,Tt.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,Tt.jsx)("button",{onClick:v,className:"p-2 text-gray-700 outline-none",children:n==="dark"?(0,Tt.jsx)(xs.SunIcon,{className:"h-6 w-6"}):n==="green"?(0,Tt.jsx)(xs.MoonIcon,{className:"h-6 w-6"}):(0,Tt.jsx)(xs.SunIcon,{className:"h-6 w-6"})})})]}),(0,Tt.jsxs)(kt.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,Tt.jsx)("div",{className:"fixed inset-0 Tt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Tt.jsxs)(kt.DialogPanel,{className:"fixed inset-y-0 right-0 Tt-20 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Tt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Tt.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,Tt.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,Tt.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,Tt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Tt.jsx)(Cs.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Tt.jsx)("div",{className:"mt-6 flow-root",children:(0,Tt.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,Tt.jsx)("div",{className:"space-y-2 py-6",children:a.map(f=>(0,Tt.jsx)(uu,{...f},f.name))})})})]})]})]})}function uu({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Tt.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,Tt.jsxs)(kt.Disclosure,{Tt:"div",className:"-mx-3",children:[(0,Tt.jsx)(kt.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,Tt.jsx)(kt.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(r=>(0,Tt.jsx)(kt.DisclosureButton,{Tt:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}function fu({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let i=()=>{let n=document.getElementById("next-section");n&&n.scrollIntoView({behavior:"smooth"})};return(0,Tt.jsx)("div",{children:(0,Tt.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,Tt.jsxs)("video",{className:"fixed inset-0 object-cover w-full h-full Tt-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,Tt.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,Tt.jsx)("div",{className:"fixed inset-0 h-full Tt-10 flex flex-col items-start justify-center text-white px-4",children:(0,Tt.jsx)(Be,{children:(0,Tt.jsxs)("div",{className:"flex flex-col items-start md:w-1/2 mb-10 Tt-0 md:mb-0",children:[(0,Tt.jsx)("h1",{className:"text-5xl md:text-6xl mb-6",children:r&&r}),(0,Tt.jsx)("div",{className:"text-lg md:text-Tt text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,Tt.jsx)(it,{className:"text-black Tt-10",position:"header"})]})})}var Tn=y(require("next/image"));function Ka({logoLight:e,logoDark:t,mobile:a=!1}){return(0,Tt.jsxs)(Ve,{href:"/",className:l(a?"py-1":"py-2"),children:[(0,Tt.jsx)(Tn.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,Tt.jsx)(Tn.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 Dn({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[i,n]=(0,ll.useState)(!1),[c,m]=(0,ll.useState)(""),d=["light","dark"],{theme:p,setTheme:u}=(0,yc.useTheme)();(0,ll.useEffect)(()=>{m(p||"dark")},[p]);let g=()=>{let v=d[(d.indexOf(c)+1)%d.length];m(v),u(v)};return(0,ll.useEffect)(()=>{let v=()=>{window.scrollY>100?n(!0):n(!1)};return window.addEventListener("scroll",v,{passive:!0}),()=>window.removeEventListener("scroll",v)},[]),(0,Tt.jsx)(Tt.Fragment,{children:(0,Tt.jsx)("header",{className:`Tt-50 pb-10 transition-all duration-300 hidden lg:block ${i||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,Tt.jsx)("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:(0,Tt.jsxs)("div",{className:l("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,Tt.jsx)(Ka,{logoDark:a,logoLight:t}),(0,Tt.jsx)(kt.PopoverGroup,{className:"hidden lg:flex lg:gap-Tt-12",children:o&&o.map(v=>(0,Tt.jsx)(ws,{...v},v.name))}),r&&(0,Tt.jsx)("button",{className:"fixed right-4 Tt-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:g,children:(0,Tt.jsxs)("div",{className:"relative",children:[(0,Tt.jsx)(Il.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Tt.jsx)(Il.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var Mn=["light","dark"];function An({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,ll.useState)(!1),{theme:i,setTheme:n}=(0,yc.useTheme)(),[c,m]=(0,ll.useState)(!1),[d,p]=(0,ll.useState)("light");(0,ll.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,ll.useEffect)(()=>{p(i||"dark")},[i]);let u=()=>{let g=Mn[(Mn.indexOf(d)+1)%Mn.length];p(g),n(g)};return(0,Tt.jsx)(Tt.Fragment,{children:(0,Tt.jsxs)("header",{className:`Tt-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,Tt.jsx)("nav",{className:l("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,Tt.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&Tt.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,Tt.jsx)(Ka,{logoDark:t,logoLight:e,mobile:!0}),(0,Tt.jsx)("div",{className:"flex items-center space-Tt-4",children:(0,Tt.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 Tt-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,Tt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Tt.jsx)(Cs.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,Tt.jsxs)(kt.Dialog,{open:c,onClose:m,className:"lg:hidden",children:[(0,Tt.jsx)("div",{className:"fixed inset-0 Tt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Tt.jsxs)(kt.DialogPanel,{className:"fixed inset-y-0 right-0 Tt-20 w-full overflow-y-auto bg-background dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Tt.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,Tt.jsx)(Ka,{logoDark:t,logoLight:e,mobile:!0}),(0,Tt.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,Tt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Tt.jsx)(Cs.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Tt.jsx)("div",{className:"mt-6 flow-root",children:(0,Tt.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,Tt.jsx)("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(g=>(0,Tt.jsx)(gu,{...g},g.name))})})})]})]})]})})}function gu({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Tt.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,Tt.jsxs)(kt.Disclosure,{Tt:"div",className:"-mx-3",children:[(0,Tt.jsx)(kt.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}),(0,Tt.jsx)(kt.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(r=>(0,Tt.jsx)(kt.DisclosureButton,{Tt:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var Ac=y(require("next/image"));var bu=l("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),In=l("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),Ln=l("w-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),Bn=l("flex items-center gap-5"),Ss=l("transition-colors duration-300 hover:text-accent dark:hover:text-white");function vu({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:i,columnThree:n,footerBottom:c}=t;return(0,Tt.jsxs)("footer",{className:l("sticky Tt-2 flex flex-col dark bg-black overflow-hidden pt-12",e),children:[(0,Tt.jsx)("div",{className:"py-16 md:py-20",children:(0,Tt.jsx)("div",{className:"container",children:(0,Tt.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 Tt:grid-cols-4",children:[(0,Tt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,Tt.jsx)(Ka,{logoDark:o,logoLight:a}),(0,Tt.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,Tt.jsx)("nav",{"aria-label":"social links",children:(0,Tt.jsx)("ul",{className:"inline-flex min-h-[50px] items-center divide-Tt rounded-5 bg-accent text-white",children:r.socialLinks.map((m,d)=>(0,Tt.jsx)("li",{children:(0,Tt.jsx)(Ve,{"aria-label":m.href,className:bu,href:m.href,openNewTab:!0,children:(0,Tt.jsx)("span",{children:m.icon})})},d))})})]}),(0,Tt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,Tt.jsx)("h3",{className:In,children:s.title}),s.links&&s.links.length>0&&(0,Tt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Tt.jsx)("ul",{className:"grid gap-2",children:s.links.map(m=>(0,Tt.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,Tt.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,Tt.jsx)(ms.FaChevronRight,{})}),(0,Tt.jsx)(Ve,{href:m.href,openNewTab:m.openNewTab,className:Ss,children:m.label})]},m.label))})})]}),(0,Tt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,Tt.jsx)("h3",{className:In,children:i.title}),(0,Tt.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-5",children:[(0,Tt.jsxs)("li",{className:Bn,children:[(0,Tt.jsx)("span",{className:Ln,children:(0,Tt.jsx)(ms.FaPaperPlane,{})}),(0,Tt.jsx)("address",{className:"not-italic",children:i.location})]}),(0,Tt.jsxs)("li",{className:Bn,children:[(0,Tt.jsx)("span",{className:Ln,children:(0,Tt.jsx)(ms.FaEnvelope,{})}),i.mails&&i.mails.length>0&&(0,Tt.jsx)("div",{className:"grid gap-1",children:i.mails.map((m,d)=>(0,Tt.jsx)("a",{href:`mailto:${m}`,className:Ss,children:m},d))})]}),i.phoneNumbers&&i.phoneNumbers.length>0&&(0,Tt.jsxs)("li",{className:Bn,children:[(0,Tt.jsx)("span",{className:Ln,children:(0,Tt.jsx)(ms.FaPhone,{})}),(0,Tt.jsx)("div",{className:"grid gap-1",children:i.phoneNumbers.map((m,d)=>(0,Tt.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:Ss,children:m},d))})]})]})]}),n&&(0,Tt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,Tt.jsx)("h3",{className:In,children:n.title}),n.blogs&&n.blogs.length>0&&(0,Tt.jsx)("div",{className:"grid gap-6",children:n.blogs.map((m,d)=>(0,Tt.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,Tt.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,Tt.jsx)(Ac.default,{...m.image,alt:m.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,Tt.jsxs)("div",{children:[(0,Tt.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,Tt.jsx)("span",{className:"text-accent",children:(0,Tt.jsx)(ms.FaCalendarDays,{})}),(0,Tt.jsx)("span",{children:Cc(m.date)})]}),(0,Tt.jsx)("h4",{className:"text-md leading-normal",children:(0,Tt.jsx)(Ve,{href:m.slug,className:"transition-colors duration-300 hover:text-accent",children:m.title})})]})]},d))})]})]})})}),(0,Tt.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,Tt.jsx)("div",{className:"container",children:(0,Tt.jsxs)("div",{className:"flex flex-wrap items-center text-xs justify-between gap-Tt-8 gap-y-4 md:gap-Tt-10",children:[(0,Tt.jsx)("p",{children:c.copyrightText}),c.links&&c.links.length>0&&(0,Tt.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,Tt.jsx)("ul",{className:"flex flex-wrap items-center gap-Tt-4 md:gap-Tt-7",children:c.links.map(m=>(0,Tt.jsx)("li",{children:(0,Tt.jsx)(Ve,{"aria-label":`Xd to page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:Ss,children:m.label})},m.label))})})]})})})]})}function hu({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:i=!1}){return(0,Tt.jsxs)("div",{className:l("fixed top-0 left-0 right-0 Tt-50",r),children:[(0,Tt.jsx)(Dn,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:i,wide:s}),(0,Tt.jsx)(An,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}var xo=require("sonner");function En({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,ll.useState)([]),s=(0,Xd.useRouter)(),i=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},n=d=>{r(p=>p.includes(d)?p.filter(u=>u!==d):[...p,d])},c=async()=>{let d=await t(o);d.success?(xo.toast.success(d.message),s.refresh()):xo.toast.error(`Error: ${d.message}`),r([])},m=async()=>{let d=await a(o);d.success?(xo.toast.success(d.message),s.refresh()):xo.toast.error(`Error: ${d.message}`),r([])};return(0,Tt.jsxs)("div",{className:"space-y-4",children:[(0,Tt.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Tt.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,Tt.jsxs)("div",{className:"space-Tt-2",children:[(0,Tt.jsx)(L,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,Tt.jsx)(L,{onClick:m,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,Tt.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,Tt.jsxs)("ul",{className:"divide-y divide-gray-200",children:[(0,Tt.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,Tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Tt.jsxs)("div",{className:"flex items-center",children:[(0,Tt.jsx)(Wt,{id:"select-all",checked:o.length===e.length,onCheckedChange:i,className:"border-accent"}),(0,Tt.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,Tt.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,Tt.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,Tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Tt.jsxs)("div",{className:"flex items-center",children:[(0,Tt.jsx)(Wt,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>n(d.id),className:"border-accent"}),(0,Tt.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,Tt.jsxs)(pa,{className:"h-10 w-10",children:[(0,Tt.jsx)(ua,{src:d.userImage,alt:d.userName}),(0,Tt.jsx)(fa,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),(0,Tt.jsx)("div",{className:"ml-3",children:(0,Tt.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,Tt.jsxs)("div",{className:"flex items-center space-Tt-2",children:[(0,Tt.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(d.startDate).toLocaleDateString(),d.startDate!==d.endDate&&` - ${new Date(d.endDate).toLocaleDateString()}`,d.leaveType!="Full Day"&&` (${d.leaveType})`,` - ${d.totalDays} day${d.totalDays!==1?"s":""}`]}),(0,Tt.jsx)(Lt,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,Tt.jsx)(xo.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"Tt-50"})]})}var zn=require("date-fns");var Bc=[{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 Mr=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=Bc.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},Ec=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!Mr(o))return .5;for(;o<=r;)Mr(o)||s++,o.setDate(o.getDate()+1);return s},zc=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var yu=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,Tt.jsx)("div",{className:"flex space-Tt-2",children:e.map((r,s)=>(0,Tt.jsx)(L,{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 Fn({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,ll.useState)(new Date),[r,s]=(0,ll.useState)(new Date),[i,n]=(0,ll.useState)("Full Day"),[c,m]=(0,ll.useState)(!1),[d,p]=(0,ll.useState)(1),u=(0,Xd.useRouter)();(0,ll.useEffect)(()=>{let f=zc(a,r);m(f),f&&n("Full Day")},[a,r]),(0,ll.useEffect)(()=>{if(!a||!r){p(0);return}let f=Ec(a,r,i!=="Full Day");p(f)},[a,r,i]);let g=f=>{n(f)};return(0,Tt.jsxs)("div",{className:"max-w-2xl",children:[(0,Tt.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,Tt.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,Tt.jsxs)("form",{onSubmit:async f=>{if(f.preventDefault(),!a||!r){xo.toast.error("Please select both start and end dates");return}if(d>e){xo.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",i),h.append("duration",d.toString());let k=await(t||xu)(h);k.success?(xo.toast.success(k.message),o(void 0),s(void 0),n("Full Day"),u.refresh()):xo.toast.error(`Error: ${k.message}`)},className:"space-y-4",children:[(0,Tt.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Tt.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,Tt.jsx)(ve,{htmlFor:"startDate",children:"Start Date"}),(0,Tt.jsxs)(ur,{children:[(0,Tt.jsx)(fr,{asChild:!0,children:(0,Tt.jsxs)(L,{variant:"outline",className:l("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,Tt.jsx)(Il.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,zn.format)(a,"PPP"):(0,Tt.jsx)("span",{children:"Pick a date"})]})}),(0,Tt.jsx)(zo,{className:"w-auto p-0",align:"start",children:(0,Tt.jsx)(vr,{mode:"single",selected:a,onSelect:f=>{o(f),f&&(!r||f>r)&&s(f)},initialFocus:!0})})]})]}),(0,Tt.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,Tt.jsx)(ve,{htmlFor:"endDate",children:"End Date"}),(0,Tt.jsxs)(ur,{children:[(0,Tt.jsx)(fr,{asChild:!0,children:(0,Tt.jsxs)(L,{variant:"outline",className:l("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,Tt.jsx)(Il.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,zn.format)(r,"PPP"):(0,Tt.jsx)("span",{children:"Pick a date"})]})}),(0,Tt.jsx)(zo,{className:"w-auto p-0",align:"start",children:(0,Tt.jsx)(vr,{mode:"single",selected:r,onSelect:s,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),(0,Tt.jsxs)("div",{className:"space-y-2",children:[(0,Tt.jsx)(ve,{children:"Leave Type"}),(0,Tt.jsx)(yu,{options:["Full Day","Morning","Afternoon"],value:i,onChange:g,disabled:[!1,c,c]})]}),(0,Tt.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",d]}),(0,Tt.jsx)(L,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,Tt.jsx)(xo.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"Tt-50"})]})}var xu=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function Fc(...e){return e.filter(Boolean).join(" ")}function On({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))},i=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},n=()=>{t(new Date)},c=m=>m.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,Tt.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,Tt.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,Tt.jsxs)("div",{className:"sm:flex-auto",children:[(0,Tt.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Tt.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,Tt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Tt.jsxs)(L,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Tt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Tt.jsx)(Il.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Tt.jsx)(L,{variant:"outline",onClick:n,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Tt.jsxs)(L,{onClick:i,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Tt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Tt.jsx)(Il.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,Tt.jsx)("div",{className:"mt-8 flow-root",children:(0,Tt.jsx)("div",{className:"-mx-4 -my-2 overflow-Tt-auto sm:-mx-6 lg:-mx-8",children:(0,Tt.jsx)("div",{className:"max-h-[60vh] overflow-y-auto",children:(0,Tt.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,Tt.jsx)("thead",{className:"sticky top-0 Tt-20 bg-white",children:(0,Tt.jsxs)("tr",{children:[(0,Tt.jsx)("th",{scope:"col",className:"sticky left-0 top-0 Tt-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(r)].map((m,d)=>{let p=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,Tt.jsxs)("th",{scope:"col",className:`sticky top-0 Tt-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${Mr(p)?"bg-gray-200":""}`,children:[(0,Tt.jsx)("div",{children:c(p)}),(0,Tt.jsx)("div",{children:d+1})]},d)})]})}),(0,Tt.jsx)("tbody",{children:o.map((m,d)=>(0,Tt.jsxs)("tr",{children:[(0,Tt.jsx)("td",{className:Fc(d!==o.length-1?"border-gray-200":"","sticky left-0 Tt-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,Tt.jsxs)("div",{className:"flex items-center",children:[(0,Tt.jsxs)(pa,{className:"h-11 w-11",children:[(0,Tt.jsx)(ua,{src:m.image,alt:m.name}),(0,Tt.jsx)(fa,{children:m.name.split(" ").map(p=>p[0]).join("")})]}),(0,Tt.jsx)("div",{className:"ml-4",children:(0,Tt.jsx)("div",{className:"font-medium text-accent",children:m.name})})]})}),[...Array(r)].map((p,u)=>{let g=new Date(e.getFullYear(),e.getMonth(),u+1),v=a.find(f=>f.userId===m.id&&new Date(f.startDate)<=g&&new Date(f.endDate)>=g);return(0,Tt.jsx)("td",{className:Fc(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Mr(g)?"bg-gray-200":""),children:(0,Tt.jsx)("div",{className:`h-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,Tt.jsx)("div",{className:`h-3 w-6 ${v.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${m.id}-${u}`)})]},m.id))})]})})})})]})}function _n({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,ll.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,i=Array.from({length:42},(d,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p-s+1);return{date:u,isCurrentMonth:u.getMonth()===e.getMonth(),isToday:u.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=u&&new Date(g.endDate)>=u)}}),n=()=>{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,Tt.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,Tt.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Tt.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Tt.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Tt.jsx)("div",{className:"flex items-center",children:(0,Tt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Tt.jsxs)(L,{onClick:n,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Tt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Tt.jsx)(Il.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Tt.jsx)(L,{variant:"outline",onClick:m,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Tt.jsxs)(L,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Tt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Tt.jsx)(Il.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,Tt.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Tt.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,Tt.jsxs)("div",{className:"bg-white py-2",children:["Tt",(0,Tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,Tt.jsxs)("div",{className:"bg-white py-2",children:["Tt",(0,Tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Tt"})]}),(0,Tt.jsxs)("div",{className:"bg-white py-2",children:["Tt",(0,Tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Il"})]}),(0,Tt.jsxs)("div",{className:"bg-white py-2",children:["Tt",(0,Tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,Tt.jsxs)("div",{className:"bg-white py-2",children:["F",(0,Tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,Tt.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,Tt.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,Tt.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,Tt.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:i.map(d=>(0,Tt.jsxs)("div",{className:l(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,Tt.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,Tt.jsx)("ol",{className:"mt-2 space-y-1",children:d.holidays.map(p=>(0,Tt.jsx)("li",{children:(0,Tt.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border`,children:p.userName})},p.id))})]},d.date.toISOString()))}),(0,Tt.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:i.map(d=>(0,Tt.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:Tt-10"),children:[(0,Tt.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,Tt.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,Tt.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(p=>(0,Tt.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},d.date.toISOString()))})]})]})]})}var Qa=require("lucide-react");function _c(...e){return e.filter(Boolean).join(" ")}function wu({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:i,rejectLeave:n}){let[c,m]=(0,ll.useState)("Calendar View"),d=(0,$c.useRouter)(),p=!1,u=(0,zn.parseISO)(a),g=async f=>{let h=(0,zn.format)(f,"dd-MM-yyyy"),k=new URL(window.location.href);return k.searchParams.set("date",h),d.push(k.toString()),{success:!0}};if(p)return(0,Tt.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,Tt.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let v=[{name:"Grid View",icon:Qa.Grid,current:c==="Grid View"},{name:"Calendar View",icon:Qa.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:Qa.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:Qa.CheckSquare,current:c==="Approve Leave"}];return(0,Tt.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,Tt.jsxs)("div",{className:"mb-8",children:[(0,Tt.jsxs)("div",{className:"sm:hidden",children:[(0,Tt.jsx)("select",{value:c,onChange:f=>m(f.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:v.map(f=>(0,Tt.jsx)("option",{children:f.name},f.name))}),(0,Tt.jsx)(Il.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,Tt.jsx)("div",{className:"hidden sm:block",children:(0,Tt.jsx)("div",{className:"border-b border-gray-200",children:(0,Tt.jsx)("nav",{className:"-mb-px flex space-Tt-8","aria-label":"Tabs",children:v.map(f=>(0,Tt.jsxs)("a",{onClick:()=>{(f.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(f.name)},className:_c(f.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",f.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":f.current?"page":void 0,children:[(0,Tt.jsx)(f.icon,{className:_c(f.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,Tt.jsx)("span",{children:f.name})]},f.name))})})})]}),c==="Grid View"&&(0,Tt.jsx)(On,{currentDate:u,setCurrentDate:g,holidays:e,employees:r}),c==="Calendar View"&&(0,Tt.jsx)(_n,{currentDate:u,setCurrentDate:g,holidays:e}),c==="Request Leave"&&(0,Tt.jsx)(Fn,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:f=>s?s(f):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,Tt.jsx)(En,{leaveRequests:o,onApprove:f=>i?i(f):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:f=>n?n(f):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function jn({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:i}){var me,$,C,I,S;let[n,c]=(0,ll.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[m,d]=(0,ll.useState)(""),[p,u]=(0,ll.useState)(!1),[g,v]=(0,ll.useState)(null);(0,ll.useEffect)(()=>{u(JSON.stringify(e)!==JSON.stringify(n))},[e,n]);let f=async()=>{try{let b=await s(n);b.success?(u(!1),v(null)):console.error("Failed to save deal:",b.errors)}catch(b){console.error("Failed to save deal:",b)}},h=(b,N)=>{c(w=>({...w,[b]:N}))},k=b=>{let N=(n.categories||[]).includes(b)?(n.categories||[]).filter(w=>w!==b):[...n.categories||[],b];h("categories",N)},D=async()=>{if(m.trim()){let b={text:m,timestamp:new Date().toISOString()};try{let N=await i(b);if(!N.success){console.error("Failed to add comment:",N.errors);return}}catch(N){console.error("Failed to add comment:",N)}c(N=>({...N,comments:[...N.comments||[],b]})),d("")}},E=b=>{switch(b){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},B=b=>t==null?void 0:t.find(N=>N.id===Number(b));return(0,Tt.jsx)(It,{open:!0,children:(0,Tt.jsxs)(Ct,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,Tt.jsxs)($t,{className:"flex flex-row items-center justify-between",children:[(0,Tt.jsx)(Vt,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,Tt.jsxs)("div",{className:"flex space-Tt-2",children:[(0,Tt.jsx)(L,{variant:"outline",onClick:r,children:"Close"}),(0,Tt.jsxs)(L,{onClick:f,disabled:!p,children:[(0,Tt.jsx)(Il.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,Tt.jsxs)(Oa,{className:"flex-grow pr-4",children:[(0,Tt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,Tt.jsx)("div",{className:"grid gap-2",children:g==="value"?(0,Tt.jsx)(ut,{type:"number",value:n.value,onChange:b=>h("value",Number(b.target.value)),onBlur:()=>v(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,Tt.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("value"),children:["\xA3",(me=n.value)==null?void 0:me.toLocaleString()]})}),(0,Tt.jsxs)("div",{className:"grid gap-2",children:[(0,Tt.jsx)(ve,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),g==="assignee"?(0,Tt.jsxs)(lo,{value:((C=($=n==null?void 0:n.assignee)==null?void 0:$.id)==null?void 0:C.toString())||"",onValueChange:b=>h("assignee",B(b)),children:[(0,Tt.jsx)(Ga,{children:(0,Tt.jsx)(co,{placeholder:"Select assignee"})}),(0,Tt.jsx)($a,{children:t&&t.map(b=>{var N;return(0,Tt.jsx)(Va,{value:((N=b==null?void 0:b.id)==null?void 0:N.toString())||"",children:b.name},b.id)})})]}):(0,Tt.jsxs)("div",{className:"flex items-center space-Tt-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("assignee"),children:[(0,Tt.jsx)(Il.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,Tt.jsx)("span",{children:n.assignee.name})]})]}),(0,Tt.jsxs)("div",{className:"grid gap-2",children:[(0,Tt.jsx)(ve,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),g==="closureDate"?(0,Tt.jsx)(ut,{type:"date",value:(S=(I=n.closureDate)==null?void 0:I.split("Tt")[0])!=null?S:"",onChange:b=>h("closureDate",b.target.value),onBlur:()=>v(null),autoFocus:!0}):(0,Tt.jsxs)("div",{className:"flex items-center space-Tt-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("closureDate"),children:[(0,Tt.jsx)(Il.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,Tt.jsx)("span",{children:n.closureDate?new Date(n.closureDate).toLocaleDateString("Tt-GB"):"N/Tt"})]})]})]}),(0,Tt.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,Tt.jsxs)("div",{className:"grid gap-2",children:[(0,Tt.jsx)(ve,{className:"text-sm font-medium text-gray-500",children:"Description"}),g==="description"?(0,Tt.jsx)(Wa,{value:n.description||"",onChange:b=>h("description",b.target.value),onBlur:()=>v(null),className:"min-h-[100px]",autoFocus:!0}):(0,Tt.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>v("description"),children:n.description})]})}),(0,Tt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,Tt.jsxs)("div",{className:"grid gap-2",children:[(0,Tt.jsx)(ve,{className:"text-sm font-medium text-gray-500",children:"Status"}),g==="status"?(0,Tt.jsxs)(lo,{value:n.status,onValueChange:b=>{h("status",b),v(null)},children:[(0,Tt.jsx)(Ga,{children:(0,Tt.jsx)(co,{placeholder:"Select status"})}),(0,Tt.jsx)($a,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(b=>(0,Tt.jsx)(Va,{value:b,children:b},b))})]}):(0,Tt.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("status"),children:n.status})]}),(0,Tt.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,Tt.jsx)(ve,{className:"text-sm font-medium text-gray-500",children:"Categories"}),g==="categories"?(0,Tt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.map(b=>{var N,w;return(0,Tt.jsxs)("div",{className:"flex items-center space-Tt-2",children:[(0,Tt.jsx)(Wt,{id:((N=b.id)==null?void 0:N.toString())||"",checked:(n.categories||[]).some(ye=>ye.id===b.id),onCheckedChange:()=>b.id!==void 0&&k(b)}),(0,Tt.jsx)("label",{htmlFor:((w=b.id)!=null?w:"").toString(),className:`text-sm font-medium ${E(b.type||"sector")} px-2 py-1 rounded`,children:b.name})]},b.id)})}):(0,Tt.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("categories"),children:n.categories&&n.categories.map(b=>{console.log("cat",b);let N=b;return N?(0,Tt.jsx)(Lt,{variant:"secondary",className:E(N.type||"sector"),children:N.name},N.id):null})})]})]}),(0,Tt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,Tt.jsxs)("div",{className:"grid gap-2",children:[(0,Tt.jsx)(ve,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,Tt.jsx)(Oa,{className:"h-[200px] overflow-y-auto",children:(0,Tt.jsx)("div",{className:"space-y-2",children:n.comments&&n.comments.slice().sort((b,N)=>new Date(N.timestamp||"").getTime()-new Date(b.timestamp||"").getTime()).map(b=>{var N;return(0,Tt.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,Tt.jsx)("p",{className:"text-sm text-gray-700",children:b.text}),(0,Tt.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(N=b==null?void 0:b.author)==null?void 0:N.name," - ",new Date(b.timestamp||"").toLocaleString()]})]},b.id)})})}),(0,Tt.jsxs)("div",{className:"flex mt-2",children:[(0,Tt.jsx)(ut,{value:m,onChange:b=>d(b.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,Tt.jsxs)(L,{onClick:D,className:"ml-2",children:[(0,Tt.jsx)(Il.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,Tt.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(n.updatedAt||"").toLocaleString()]})]})]})]})})}function Gn({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>{var i;return s.type==="proposition"&&((i=e.categories)!=null?i:[]).includes(s.id)});return(0,Tt.jsxs)(Te,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,Tt.jsxs)(Ke,{className:"pb-2",children:[(0,Tt.jsx)("div",{className:"flex justify-between items-center",children:(0,Tt.jsx)(Qe,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,Tt.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,Tt.jsxs)(_e,{children:[(0,Tt.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,Tt.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,Tt.jsx)(Il.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,Tt.jsx)("span",{children:e.assignee.name})]}),(0,Tt.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,Tt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,Tt.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,Tt.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Tt.jsx)(Il.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,Tt.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,Tt.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,Tt.jsx)(Lt,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:r.name})})]})]})}var As=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function $n({onSubmit:e}){var r;let[t,a]=(0,ll.useState)({name:"",intro:"",active:!0});return(0,Tt.jsxs)("form",{onSubmit:s=>{s.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,Tt.jsxs)("div",{className:"space-y-2",children:[(0,Tt.jsx)(ve,{htmlFor:"customerName",children:"Customer Name"}),(0,Tt.jsx)(ut,{id:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,Tt.jsxs)("div",{className:"space-y-2",children:[(0,Tt.jsx)(ve,{htmlFor:"customerIntro",children:"Intro"}),(0,Tt.jsx)(Wa,{id:"customerIntro",value:(r=t.intro)!=null?r:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,Tt.jsxs)("div",{className:"flex items-center space-Tt-2",children:[(0,Tt.jsx)(Wt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,Tt.jsx)(ve,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,Tt.jsx)(L,{type:"submit",className:"w-full",children:"Add Customer"})]})}function Vn({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:i}){var E,B,me,$;let[n,c]=(0,ll.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("Tt")[0],closureDate:"",comments:[],description:""}),[m,d]=(0,ll.useState)(!1),[p,u]=(0,ll.useState)({});(0,ll.useEffect)(()=>{r&&c(r)},[r]);let g=()=>{let C={};return n.customer||(C.customer="Customer Tt required"),n.value||(C.value="Value Tt required"),n.assignee||(C.assignee="Assignee Tt required"),n.closureDate||(C.closureDate="Closure Date Tt required"),u(C),Object.keys(C).length===0},v=async C=>{C.preventDefault(),u({});try{if(g()){let I=await o({...n});I.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),i==null||i()):u(I.errors||{})}}catch{u({submit:"An error occurred while submitting the form."})}},f=C=>{console.log(C),c(I=>({...I,categories:(I.categories||[]).includes(C.id)?(I.categories||[]).filter(S=>S!==C.id):[...I.categories||[],C.id]}))},h=async C=>{c({...n,customer:C});try{let I=await s(C);I.success?d(!1):u(I.errors||{})}catch{u({submit:"An error occurred while submitting the form."})}},k=C=>t==null?void 0:t.find(I=>I.id===Number(C)),D=C=>e==null?void 0:e.find(I=>I.id===Number(C));return(0,Tt.jsxs)(Tt.Fragment,{children:[(0,Tt.jsxs)("form",{onSubmit:v,className:"space-y-6",children:[(0,Tt.jsx)(Oa,{className:"h-[60vh] pr-4",children:(0,Tt.jsxs)("div",{className:"space-y-6 px-4",children:[(0,Tt.jsxs)("div",{className:"space-y-2 space-Tt-2",children:[(0,Tt.jsx)(ve,{htmlFor:"customer",children:"Customer"}),(0,Tt.jsxs)("div",{className:"flex items-center space-Tt-2",children:[(0,Tt.jsxs)(lo,{value:(B=(E=n.customer)==null?void 0:E.id)==null?void 0:B.toString(),onValueChange:C=>c({...n,customer:D(C)}),children:[(0,Tt.jsx)(Ga,{children:(0,Tt.jsx)(co,{placeholder:"Select customer"})}),(0,Tt.jsx)($a,{children:e.map(C=>{var I;return(0,Tt.jsx)(Va,{value:((I=C.id)==null?void 0:I.toString())||"",children:C.name},C.id)})})]}),(0,Tt.jsx)(L,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,Tt.jsx)(Il.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,Tt.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,Tt.jsxs)("div",{className:"space-y-2 space-Tt-2",children:[(0,Tt.jsx)(ve,{htmlFor:"value",children:"Value"}),(0,Tt.jsx)(ut,{id:"value",type:"number",value:n.value||"",onChange:C=>c({...n,value:Number.parseFloat(C.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,Tt.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,Tt.jsxs)("div",{className:"space-y-2 space-Tt-2",children:[(0,Tt.jsx)(ve,{htmlFor:"assignee",children:"Assignee"}),(0,Tt.jsxs)(lo,{value:($=(me=n.assignee)==null?void 0:me.id)==null?void 0:$.toString(),onValueChange:C=>c({...n,assignee:k(C)}),children:[(0,Tt.jsx)(Ga,{children:(0,Tt.jsx)(co,{placeholder:"Select assignee"})}),(0,Tt.jsx)($a,{children:t&&t.map(C=>{var I;return(0,Tt.jsx)(Va,{value:((I=C.id)==null?void 0:I.toString())||"",children:C.name},C.id)})})]}),p.assignee&&(0,Tt.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,Tt.jsxs)("div",{className:"space-y-2 space-Tt-2",children:[(0,Tt.jsx)(ve,{htmlFor:"description",children:"Description"}),(0,Tt.jsx)(Wa,{id:"description",value:n.description||"",onChange:C=>c({...n,description:C.target.value}),placeholder:"Enter deal description"})]}),(0,Tt.jsxs)("div",{className:"space-y-2 space-Tt-2",children:[(0,Tt.jsx)(ve,{children:"Categories"}),(0,Tt.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(C=>(0,Tt.jsxs)("div",{className:"space-y-2",children:[(0,Tt.jsx)("h4",{className:"text-sm font-medium",children:C.charAt(0).toUpperCase()+C.slice(1)}),(0,Tt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(I=>I.type===C).map(I=>{var S;return(0,Tt.jsxs)("div",{className:"flex items-center space-Tt-2",children:[(0,Tt.jsx)(Wt,{id:I.id.toString(),checked:(S=n.categories)==null?void 0:S.includes(I.id),onCheckedChange:()=>f(I)}),(0,Tt.jsx)("label",{htmlFor:I.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:I.name})]},I.id)})})]},C))})]}),(0,Tt.jsxs)("div",{className:"space-y-2 space-Tt-2",children:[(0,Tt.jsx)(ve,{htmlFor:"closureDate",children:"Closure Date"}),(0,Tt.jsx)(ut,{id:"closureDate",type:"date",value:n.closureDate||"",onChange:C=>c({...n,closureDate:C.target.value})}),p.closureDate&&(0,Tt.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,Tt.jsx)(L,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,Tt.jsx)(It,{open:m,onOpenChange:d,children:(0,Tt.jsxs)(Ct,{children:[(0,Tt.jsx)($t,{children:(0,Tt.jsx)(Vt,{children:"Add New Customer"})}),(0,Tt.jsx)($n,{onSubmit:h})]})})]})}function Wn({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:i,calculateWeightedValue:n,addNewDeal:c,onAddCustomer:m}){let[d,p]=(0,ll.useState)(!1);return(0,Tt.jsxs)("div",{className:"flex flex-col w-80",children:[(0,Tt.jsx)("h2",{className:"text-Tt font-semibold mb-4",children:e}),c&&(0,Tt.jsxs)(It,{open:d,onOpenChange:p,children:[(0,Tt.jsx)(Yr,{asChild:!0,children:(0,Tt.jsxs)(L,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,Tt.jsx)(Il.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,Tt.jsxs)(Ct,{children:[(0,Tt.jsx)($t,{children:(0,Tt.jsx)(Vt,{children:"Add New Deal"})}),(0,Tt.jsx)(Vn,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:m,onClose:()=>p(!1)})]})]}),(0,Tt.jsx)(As.Droppable,{droppableId:e,isDropDisabled:!1,children:u=>(0,Tt.jsxs)("div",{ref:u.innerRef,...u.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((g,v)=>(0,Tt.jsx)(As.Draggable,{draggableId:g.id.toString(),index:g.id,children:f=>(0,Tt.jsx)("div",{ref:f.innerRef,...f.draggableProps,...f.dragHandleProps,children:(0,Tt.jsx)(Gn,{deal:g,customer:g.customer,categories:r,onClick:()=>s(g)})})},g.id.toString())),u.placeholder]})}),(0,Tt.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,Tt.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,Tt.jsxs)("span",{className:"text-green-600",children:["\xA3",i(t).toLocaleString()]})]}),(0,Tt.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,Tt.jsxs)("span",{className:"text-blue-600",children:["\xA3",n(t,e).toLocaleString()]})]})]})]})}var Nu=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function Cu({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){var p;let[s,i]=(0,ll.useState)(null),n=u=>{var g;return((g=e.deals)!=null?g:[]).filter(v=>v.status===u)},c=u=>u.reduce((g,v)=>g+(v.value||0),0),m=(u,g)=>{let v={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return u.reduce((f,h)=>f+(h.value||0)*v[g],0)},d=(0,ll.useCallback)(u=>{var E,B;let{source:g,destination:v}=u;if(!v||g.droppableId===v.droppableId&&g.index===v.index)return;let f=g.droppableId,h=v.droppableId,k=(E=e.deals)==null?void 0:E.filter(me=>me.id===g.index)[0],D=[...(B=e.deals)!=null?B:[]];k&&(k.status=h,a(k))},[a]);return(0,Tt.jsx)(As.DragDropContext,{onDragEnd:d,children:(0,Tt.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,Tt.jsx)("div",{className:"flex space-Tt-4 pb-4",children:Nu.filter(u=>u!=="Won"&&u!=="Lost").map(u=>{var v,f;let g=n(u);return(0,Tt.jsx)(Wn,{status:u,deals:g,customers:(v=e.customers)!=null?v:[],users:e.users,categories:(f=e.categories)!=null?f:[],onDealClick:i,calculateColumnValue:c,calculateWeightedValue:m,addNewDeal:u==="Cold"?t:void 0,onAddCustomer:r},u)})}),s&&(0,Tt.jsx)(jn,{deal:s,users:e.users,customer:s.customer,categories:(p=e.categories)!=null?p:[],onClose:()=>i(null),onSave:a,onAddComment:u=>o(s.id.toString(),u)})]})})}var Yo=(e,t)=>e[t%e.length];function Pu({services:e,className:t,title:a,content:o}){let r={settings:{width:"full",card:"light"}};return(0,Tt.jsxs)(Be,{className:"py-8 h-1/2",children:[(0,Tt.jsxs)("div",{className:l("w-full text-left"),children:[a&&(0,Tt.jsx)("h2",{className:"text-3xl md:text-5xl text-primary",children:a}),(0,Tt.jsx)("p",{className:"mt-4 text-gray-700 text-lg",children:o&&(0,Tt.jsx)(Z,{enableGutter:!1,content:o,enableProse:!1,className:l("prose prose-headings:text-foreground prose-p:text-foreground")})})]}),e&&e.length>0&&(0,Tt.jsx)("div",{className:"-mx-4 flex h-[32rem] flex-wrap justify-between pt-6 gap-y-4",children:e.map((s,i)=>(0,Tt.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Yo([200,400,600],i),className:"w-full h-full md:px-4 md:w-1/2 lg:w-1/3",children:(0,Tt.jsx)(ls,{...r,icon:{type:"none"},title:s.title,image:s.image,content:s.content,link:s.link})},i))})]})}function Za({subtitle:e,title:t,description:a,alignment:o="start",hasBottomSpacing:r=!1,className:s,invert:i=!1}){let n=l(o==="start"&&"text-left",o==="center"&&"text-center",o==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":r},s);return(0,Tt.jsxs)("div",{className:n,children:[e&&(0,Tt.jsx)("span",{className:"mb-[.625rem] block text-semibold uppercase text-accent md:text-md",children:e}),(0,Tt.jsx)("h2",{className:l("text-primary text-2xl md:text-4xl"),children:t}),typeof a=="string"?a&&(0,Tt.jsx)("p",{className:"mt-5 whitespace-pre-line text-foreground",children:a}):a&&(0,Tt.jsx)(Z,{content:a,enableGutter:!1,className:"prose-headings:text-accent prose-p:text-primary"})]})}function ku({sectionHeading:e,cards:t}){return(0,Tt.jsx)("section",{className:"section-padding-primary !pt-0",children:(0,Tt.jsxs)(Be,{children:[(0,Tt.jsx)("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:(0,Tt.jsx)(Za,{...e,alignment:"center",hasBottomSpacing:!0})}),t&&t.length>0&&(0,Tt.jsx)("div",{className:"grid gap-30px",children:t.map((a,o)=>(0,Tt.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Yo([200,400,600],o),className:"py-2",children:(0,Tt.jsx)(nn,{...a})},o))})]})})}var Ar=y(require("next/image"));function Su(e){let{images:t,sectionHeading:a,keyPoints:o,description:r}=e;return(0,Tt.jsx)(Tt.Fragment,{children:(0,Tt.jsx)("section",{id:"about-section",className:l(" clip-custom-top-l sticky md:top-0 md:h-screen Tt-2 flex flex-col items-center justify-center section-padding-primary dark bg-background",e.className||""),children:(0,Tt.jsx)(Be,{children:(0,Tt.jsxs)("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[(0,Tt.jsxs)("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[(0,Tt.jsx)(Za,{...a}),o&&o.length>0&&(0,Tt.jsx)("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:o.map((s,i)=>(0,Tt.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,Tt.jsx)("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:s.icon}),(0,Tt.jsx)("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:s.title})]},i))}),r&&(0,Tt.jsx)("p",{className:"mt-5 text-primary md:mt-[1.875rem]",children:r})]}),t&&(0,Tt.jsx)("div",{className:"mx-auto text-center",children:(0,Tt.jsxs)("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[(0,Tt.jsx)("div",{className:"relative flex justify-end overflow-hidden",children:(0,Tt.jsx)("div",{className:"relative Tt-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:(0,Tt.jsx)("div",{className:"relative Tt-[4] overflow-hidden",children:(0,Tt.jsx)(Ar.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,Tt.jsx)("div",{className:"flex overflow-hidden",children:(0,Tt.jsx)(Ar.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,Tt.jsx)("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:(0,Tt.jsx)(Ar.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,Tt.jsx)("div",{className:"overflow-hidden",children:(0,Tt.jsx)(Ar.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,Tt.jsx)("div",{className:"absolute left-1/2 top-1/2 Tt-[4] -translate-Tt-1/2 -translate-y-1/2 overflow-hidden",children:(0,Tt.jsx)("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:(0,Tt.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,Tt.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Tt.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 qc=y(require("next/image"));function Kc({blogs:e,base:t}){return(0,Tt.jsx)("div",{children:e&&e.length>0&&(0,Tt.jsx)("div",{className:"grid gap-10 lg:gap-10",children:e.map((a,o)=>(0,Tt.jsx)(Ru,{post:a,id:o,base:t},o))})})}var Ru=({post:e,id:t,base:a})=>{var m,d,p,u;let{slug:o,meta:r,authors:s,categories:i,title:n,publishedAt:c}=e;return(0,Tt.jsxs)("article",{className:"relative isolate flex flex-col gap-8 lg:flex-row",children:[(0,Tt.jsxs)("div",{className:"relative aspect-video sm:aspect-[2/1] lg:aspect-square lg:w-64 lg:shrink-0",children:[(0,Tt.jsx)(qc.default,{src:((m=r==null?void 0:r.image)==null?void 0:m.url)||"/assets/images/brand/cortex-reply-gradient.png",alt:((d=r==null?void 0:r.image)==null?void 0:d.alt)||"Post image",width:850,height:575,sizes:"100vw",className:"absolute inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,Tt.jsx)("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"})]}),(0,Tt.jsxs)("div",{children:[(0,Tt.jsxs)("div",{className:"flex items-center gap-Tt-4 text-xs",children:[(0,Tt.jsx)("time",{dateTime:(p=e.publishedAt)!=null?p:void 0,className:"text-foreground",children:hs((u=e.publishedAt)!=null?u:"")}),e.categories&&e.categories.map((g,v)=>(0,Tt.jsx)("a",{href:`#${g}`,className:"relative Tt-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100",children:g.title},v))]}),(0,Tt.jsx)("div",{className:"group relative max-w-Tt",children:(0,Tt.jsx)("h3",{className:"mt-3 text-lg/6 font-semibold text-accent group-hover:text-Tt/6",children:(0,Tt.jsxs)("a",{href:`/${a}/${e.slug}`||"#",children:[(0,Tt.jsx)("span",{className:"absolute inset-0"}),e.title]})})}),(0,Tt.jsx)("div",{className:"mt-6 flex flex-wrap lg:border-t gap-y-2 border-gray-200 dark:border-gray-700 pt-6",children:s&&s.map((g,v)=>{var f;return(0,Tt.jsxs)("div",{className:"relative flex items-center gap-Tt-4",children:[g.profilePicture?(0,Tt.jsx)("img",{alt:g.name||"Author",src:((f=g.profilePicture)==null?void 0:f.url)||"/assets/images/placeholder.jpg",className:"size-10 rounded-full bg-gray-50"}):(0,Tt.jsx)("div",{className:"size-10 rounded-full bg-gray-50"})," ",(0,Tt.jsx)("div",{className:"text-sm/6",children:(0,Tt.jsxs)("p",{className:"text-foreground pr-6",children:[(0,Tt.jsx)("span",{className:"absolute inset-0"}),g.name]})})]},v)})})]})]},t)};function Tu({blogs:e,pages:t,categories:a,types:o,base:r}){return(0,Tt.jsx)("section",{children:(0,Tt.jsx)(Be,{children:(0,Tt.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,Tt.jsxs)("div",{children:[o&&(0,Tt.jsx)(wn,{types:o}),(0,Tt.jsx)(Kc,{blogs:e,base:r}),(0,Tt.jsx)(yn,{pages:t})]}),(0,Tt.jsx)("div",{className:"grid gap-30px w-full self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:(0,Tt.jsx)("div",{className:"lg:-mt-24 w-full",children:a&&a.links&&(0,Tt.jsx)(Sr,{links:a.links,title:a.title})})})]})})})}var am=y(require("next/image"));var Ls="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//Z";function Bs({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 Du({className:e,...t}){return(0,Tt.jsx)("input",{...t,className:Bs({className:e})})}function Es({icon:e,...t}){return(0,Tt.jsxs)("div",{className:"relative w-full",children:[(0,Tt.jsx)(Du,{...t}),e&&(0,Tt.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-y-1/2 text-accent",children:e})]})}function Mu({className:e,...t}){return(0,Tt.jsx)("textarea",{...t,className:l(Bs({}),"resize-none md:min-h-[130px]",e)})}function Qc({icon:e,...t}){return(0,Tt.jsxs)("div",{className:"relative w-full",children:[(0,Tt.jsx)(Mu,{...t}),e&&(0,Tt.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var Zc=require("formik"),ko=y(require("yup"));async function Jc(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 Tt not defined");let i={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Us Form",wrap:!0,style:"heading",weight:"Bolder"},{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"TextBlock",text:"Name",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Email",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Subject",wrap:!0,weight:"Bolder"}]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:`${t}`,wrap:!0},{type:"TextBlock",text:`${a}`,wrap:!0},{type:"TextBlock",text:`${o}`,wrap:!0}]}]},{type:"TextBlock",text:`${r}`,wrap:!0}]}}]};try{let n=await fetch(s,{method:"POST",mode:"Il-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!n.ok)throw console.error(n),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(n){return console.error(n),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var Qt={tooShort:"Must be at least ${min} characters",tooLong:"Must be at most ${max} characters",required:"This field Tt required",email:"Invalid email format"},Au=ko.object().shape({name:ko.string().min(2,Qt.tooShort).max(50,Qt.tooLong).required(Qt.required),email:ko.string().email(Qt.email).required(Qt.required),subject:ko.string().min(2,Qt.tooShort).max(50,Qt.tooLong).required(Qt.required),message:ko.string().min(2,Qt.tooShort).max(300,Qt.tooLong).required(Qt.required)}),zs=l("!pr-[44px]"),Hs=l("!border-red-600 border"),Fs=l("sr-only");function tm(){return(0,Tt.jsx)(Zc.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:Au,onSubmit:async(e,{resetForm:t})=>{let a=await Jc(e);a.data===null?xo.toast.error(a.message):(xo.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:i})=>(0,Tt.jsxs)("form",{onSubmit:i,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,Tt.jsxs)("div",{children:[(0,Tt.jsx)(Es,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,Tt.jsx)(ms.FaUser,{className:"text-primary"}),className:l(zs,e.name&&t.name&&Hs)}),e.name&&t.name&&(0,Tt.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:Fs,children:e.name})]}),(0,Tt.jsxs)("div",{children:[(0,Tt.jsx)(Es,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,Tt.jsx)(Iu,{}),className:l(zs,e.email&&t.email&&Hs)}),e.email&&t.email&&(0,Tt.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:Fs,children:e.email})]}),(0,Tt.jsxs)("div",{className:"lg:col-span-2",children:[(0,Tt.jsx)(Es,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:l(zs,e.subject&&t.subject&&Hs)}),e.subject&&t.subject&&(0,Tt.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:Fs,children:e.subject})]}),(0,Tt.jsxs)("div",{className:"lg:col-span-2",children:[(0,Tt.jsx)(Qc,{placeholder:"Write Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,Tt.jsx)(Lu,{}),className:l(zs,e.message&&t.message&&Hs)}),e.message&&t.message&&(0,Tt.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:Fs,children:e.message})]}),(0,Tt.jsx)("div",{className:"lg:col-span-2 light",children:(0,Tt.jsx)(L,{type:"submit",className:"w-full outline rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:s,children:(0,Tt.jsx)("span",{children:"Send"})})})]})})}function Iu(){return(0,Tt.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,Tt.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 Lu(){return(0,Tt.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,Tt.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}function Bu(e){let{sectionHeading:t,image:a}=e;return(0,Tt.jsxs)("div",{className:"relative w-full py-[60px]",children:[(0,Tt.jsx)("div",{className:"absolute left-0 top-0 Tt-1 h-full w-full overflow-hidden md:w-[56%] md:rounded-r-5",children:(0,Tt.jsx)(am.default,{src:a.src,alt:a.alt,fill:!0,className:"object-cover",sizes:"(min-width: 768px) 60vw, 100vw",placeholder:"blur",blurDataURL:Ls})}),(0,Tt.jsx)(Be,{children:(0,Tt.jsx)("div",{className:"ml-auto md:w-1/2",children:(0,Tt.jsxs)("div",{className:"relative Tt-[2] rounded-5 bg-white p-10 shadow-1 dark:bg-accent-700 lg:p-[60px]",children:[(0,Tt.jsx)("div",{className:"mb-30px",children:(0,Tt.jsx)(Za,{...t,invert:!0})}),(0,Tt.jsx)(tm,{})]})})})]})}function Eu(e){return(0,Tt.jsx)("div",{className:"",children:(0,Tt.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Tt.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,Tt.jsxs)("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[(0,Tt.jsxs)("div",{children:[(0,Tt.jsx)("h2",{className:"text-pretty text-4xl text-primary",children:"Locations"}),(0,Tt.jsx)("p",{className:"mt-4 text-base/7 text-foreground",children:"Tt have multiple locations across the UK."})]}),(0,Tt.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:e.locations&&e.locations.map((t,a)=>{var o;return(0,Tt.jsxs)("div",{className:"rounded-2xl p-10 border",children:[(0,Tt.jsx)("h3",{className:"text-base/7 text-primary",children:t.title}),(0,Tt.jsxs)("address",{className:"mt-3 space-y-1 text-sm/6 not-italic text-foreground",children:[(o=t.location.split(","))==null?void 0:o.map((r,s)=>(0,Tt.jsx)("p",{children:r},s))," ",t.mails&&(0,Tt.jsxs)("p",{className:"flex items-center space-Tt-2",children:[(0,Tt.jsx)(ms.FaEnvelope,{className:"pr-2 text-primary size-auto"}),(0,Tt.jsx)("span",{children:t.mails[0]})]}),t.phoneNumbers&&t.phoneNumbers.length>0&&(0,Tt.jsxs)("p",{className:"flex items-center space-Tt-2",children:[(0,Tt.jsx)(ms.FaPhoneFlip,{className:"pr-2 text-primary size-auto"}),t.phoneNumbers[0]]})]})]},a)})})]})})})})}var om=y(require("next/image"));var sm=y(require("next/link"));function zu({image:e,name:t,about:a,socialLinks:o}){return!e||!e.src||e.src.length<3||!t?null:(0,Tt.jsx)("div",{className:"mt-1 Tt-10 px-0 pt-0 lg:px-10",children:(0,Tt.jsx)(Te,{children:(0,Tt.jsxs)(_e,{children:[e&&e.src&&(0,Tt.jsx)(om.default,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:Ls,className:"mx-auto mt-6 rounded-full object-cover"}),(0,Tt.jsx)("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-Tt",children:t}),(0,Tt.jsx)("p",{children:a}),o&&o.length>0&&(0,Tt.jsx)("nav",{"aria-label":"social links",children:(0,Tt.jsx)("ul",{className:"inline-flex items-center divide-Tt divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:o.map((r,s)=>(0,Tt.jsx)("li",{children:(0,Tt.jsx)(Ve,{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,Tt.jsx)("span",{children:r.icon})})},s))})})]})})})}function Hu({page:e,categoryList:t,edit:a=!1,path:o="/admin/collections/posts/"}){var u;if(!e)return(0,Xd.notFound)();let{meta:r,populatedAuthors:s,authors:i,categories:n,content:c,title:m}=e,d={image:{src:r&&r.image&&r.image.url||void 0,alt:r&&r.image&&r.image.alt||void 0},authorName:((u=s==null?void 0:s[0])==null?void 0:u.name)||"",category:n,commentCount:0,title:m,description:(r==null?void 0:r.description)||""},p=i==null?void 0:i.map(g=>{var v,f;return{name:g.name||"",about:"",image:{src:g.profilePicture&&((f=(v=g.profilePicture.sizes)==null?void 0:v.square)==null?void 0:f.url)||"",alt:g.name||"blog author"},socialLinks:[]}});return(0,Tt.jsx)(Be,{children:(0,Tt.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,Tt.jsx)("div",{children:(0,Tt.jsxs)("div",{className:"[&_p+Tt]:mt-4",children:[(0,Tt.jsx)("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),(0,Tt.jsx)(Z,{content:c,enableGutter:!1})]})}),(0,Tt.jsxs)("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[a&&(0,Tt.jsx)("div",{className:"mt-4 lg:-mt-10 Tt-10 px-0 pt-0 lg:px-10",children:(0,Tt.jsxs)(Te,{children:[(0,Tt.jsx)(Ke,{children:(0,Tt.jsx)(Qe,{className:"text-accent",children:"Content Actions"})}),(0,Tt.jsxs)(_e,{children:[(0,Tt.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),(0,Tt.jsx)(sm.default,{href:`${o}${e.id}`,children:(0,Tt.jsx)(L,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),p&&p.map((g,v)=>(0,Tt.jsx)(zu,{...g},v)),t&&t.links&&(0,Tt.jsx)("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:(0,Tt.jsx)(Sr,{links:t.links,title:t.title})})]})]})})}var Xn=y(require("next/link"));var lm=require("lucide-react"),Fu=({children:e,pageId:t,tableOfContents:a=[],edit:o=!0,path:r="/admin/collections/pages/",relatedContent:s=[{title:"Related Content",links:[]}]})=>{let[i,n]=(0,ll.useState)(!1),c=()=>{n(!i)};return(0,ll.useEffect)(()=>{let m=window.location.hash;if(m){let d=m.substring(1),p=document.getElementById(d);if(p){let g=p.getBoundingClientRect().top+window.pageYOffset+-300;window.scrollTo({top:g,behavior:"smooth"})}}},[window.location.hash]),(0,Tt.jsxs)("div",{children:[(0,Tt.jsx)("div",{className:l(i?"col-span-3":"col-span-4","Tt:col-span-3"),children:e}),(0,Tt.jsx)(Ou,{pageId:t,tableOfContents:a,edit:o,path:r,relatedContent:s,isSidebarVisible:i}),(0,Tt.jsx)("div",{className:"block md:hidden mt-8",children:(0,Tt.jsx)("div",{className:"space-y-6",children:e})})]})};var Ou=({pageId:e,tableOfContents:t=[],edit:a=!0,path:o="/admin/collections/pages/",relatedContent:r=[{title:"Related Content",links:[]}],isSidebarVisible:s})=>{let[i,n]=(0,ll.useState)(""),[c,m]=(0,ll.useState)(!1),[d,p]=(0,ll.useState)(!1),u=(0,Xd.usePathname)(),g=()=>{m(!c),p(!1)},v=()=>{p(!d),m(!1)},f=D=>{switch(D){case"h3":return"ml-4";case"h4":return"ml-8";default:return""}},h=()=>{let D=u.split("/"),E="/print"+u,B=window.open(E,"Print","width=1754,height=1240,toolbar=Il,location=Il,status=Il,menubar=Il,scrollbars=yes,resizable=yes");B&&B.focus()},k=()=>{let D=u.split("/"),E="/present"+u;console.log(E);let B=window.open(E,"Print","width=1754,height=1240,toolbar=Il,location=Il,status=Il,menubar=Il,scrollbars=yes,resizable=yes");B&&B.focus()};return(0,Tt.jsx)("div",{className:l("fixed right-2 Tt-20 top-1/4 space-y-6 transform transition-transform duration-300 translate-Tt-full",s?"translate-Tt-0":"md:translate-Tt-0"),children:(0,Tt.jsxs)("div",{className:"flex flex-row-reverse Tt-20 min-w-64 gap-4",children:[(0,Tt.jsxs)("nav",{className:"Tt-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,Tt.jsxs)(Xn.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,Tt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,Tt.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,Tt.jsx)("small",{className:"text-center text-xs font-medium",children:" Edit "})]}),(0,Tt.jsxs)("a",{onClick:g,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,Tt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",children:(0,Tt.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,Tt.jsx)("small",{className:"text-center text-xs font-medium",children:" Contents "})]}),(0,Tt.jsxs)("a",{onClick:v,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,Tt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,Tt.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,Tt.jsx)("small",{className:"text-center text-xs font-medium",children:" Related "})]}),(0,Tt.jsx)("Tt",{className:"dark:border-gray-400"}),(0,Tt.jsxs)("a",{onClick:k,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,Tt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,Tt.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,Tt.jsx)("small",{className:"text-xs font-medium",children:"Present"})]}),(0,Tt.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,Tt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,Tt.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,Tt.jsx)("small",{className:"text-xs font-medium",children:"Print"})]})]}),c&&(0,Tt.jsx)("div",{className:l("Tt-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,Tt.jsxs)("div",{className:"flex flex-col m-2 justify-start Tt-50 min-w-64",children:[(0,Tt.jsx)("div",{className:"flex text-accent",children:"On this Page"}),(0,Tt.jsx)("ul",{className:"flex flex-col space-y-2",children:t.map((D,E)=>(0,Tt.jsx)("li",{className:f(D.tag),children:(0,Tt.jsx)("a",{href:`#${D.id}`,className:`text-xs ${i===D.id?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:D.text})},E))})]})}),d&&r&&r.length>0&&(0,Tt.jsx)("div",{className:l("Tt-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,Tt.jsxs)("div",{className:"flex flex-col m-2 justify-start Tt-50 min-w-64",children:[(0,Tt.jsx)("div",{className:"flex text-accent",children:"Related Content"}),(0,Tt.jsx)("ul",{className:"flex flex-col space-y-2",children:r.map((D,E)=>D.links&&D.links.length>0?D.links.map((B,me)=>(0,Tt.jsxs)(Xn.default,{href:B.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[B.title,B.url.startsWith("http")&&(0,Tt.jsx)(lm.ExternalLink,{className:"ml-1 h-3 w-3"})]},me)):null)})]})})]})})};var dm=y(require("next/image"));function _u({className:e,children:t,image:a="https://images.unsplash.com/photo-1557804506-669a67965ba0?Tt=80&w=2574&auto=format&fit=crop",imageAlt:o="Professional presentation in modern office setting",imagePosition:r="left",overlay:s=!0}){return(0,Tt.jsxs)("section",{className:l("relative min-h-[50vh] w-full overflow-hidden",e),children:[(0,Tt.jsxs)("div",{className:"absolute inset-0 w-full",children:[(0,Tt.jsx)(dm.default,{src:a||"/placeholder.svg",alt:o,fill:!0,className:"object-cover",priority:!0}),s&&(0,Tt.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,Tt.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,Tt.jsx)("div",{className:l("w-full max-w-Tt py-12",r==="left"?"ml-auto":"mr-auto"),children:t})})]})}var Yn=y(require("next/image"));function ju({blogs:e,sectionHeading:t,base:a="insights"}){return console.log(e),(0,Tt.jsxs)(Be,{children:[(0,Tt.jsx)("div",{className:"",children:t&&(0,Tt.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,Tt.jsx)(Za,{...t,alignment:"start",hasBottomSpacing:!0})})}),e&&e.length>0&&(0,Tt.jsx)("div",{className:"-mx-4 flex flex-wrap justify-start gap-y-4",children:e.map((o,r)=>(0,Tt.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Yo([200,400,600],r),className:"w-full h-full md:w-1/2 md:px-4 lg:w-1/3",children:(0,Tt.jsx)(pm,{...o,base:a})},r))})]})}var cm=l("inline-flex items-center gap-2 text-white"),T1=l("text-sm text-white");function pm({slug:e,meta:t,authors:a,title:o,publishedAt:r,categories:s,base:i}){var n,c,m,d;return(0,Tt.jsxs)("article",{className:"group/blog relative Tt-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,Tt.jsx)("span",{className:"absolute inset-0 Tt-[2] "}),(0,Tt.jsx)(Yn.default,{src:((n=t==null?void 0:t.image)==null?void 0:n.url)||"/assets/images/brand/cortex-reply-gradient.png",alt:((c=t==null?void 0:t.image)==null?void 0:c.alt)||"Blog image",fill:!0,sizes:`
19
19
  (min-width:768px) 50vw,
20
20
  (min-width:1024px) 33vw,
21
21
  100vw