cortex-react-components 1.60.0 → 1.60.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (268) hide show
  1. package/dist/{chunk-5GF6OD5E.mjs → chunk-3VXQY46G.mjs} +1 -1
  2. package/dist/{chunk-3QIXHVAJ.mjs → chunk-746DCZCS.mjs} +1 -1
  3. package/dist/{chunk-3BATRS4C.mjs → chunk-75HYIK2G.mjs} +1 -1
  4. package/dist/{chunk-XZ4GLJWK.mjs → chunk-A23PEEZV.mjs} +1 -1
  5. package/dist/{chunk-HUKIRDNO.mjs → chunk-A6L3A26V.mjs} +1 -1
  6. package/dist/{chunk-JUX72GHS.mjs → chunk-AR4EIVXI.mjs} +1 -1
  7. package/dist/{chunk-R7IAPAL5.mjs → chunk-I5HRFLAL.mjs} +1 -1
  8. package/dist/{chunk-LYI57B7F.mjs → chunk-NEVV5MS3.mjs} +1 -1
  9. package/dist/{chunk-GYDVBUKO.mjs → chunk-PGSV4TRK.mjs} +1 -1
  10. package/dist/{chunk-4SLLQ7SW.mjs → chunk-PUOASKI6.mjs} +1 -1
  11. package/dist/chunk-Q3G5UAAD.mjs +1 -0
  12. package/dist/{chunk-64DD3N4S.mjs → chunk-QLIAHL5I.mjs} +1 -1
  13. package/dist/{chunk-6JKTDBRP.mjs → chunk-R3UQIZ2D.mjs} +1 -1
  14. package/dist/{chunk-WKFNZUIR.mjs → chunk-T6FBWMZR.mjs} +1 -1
  15. package/dist/{chunk-FMWUWAED.mjs → chunk-UOINH4WF.mjs} +1 -1
  16. package/dist/{chunk-53NPXOEB.mjs → chunk-XFG3UQL4.mjs} +1 -1
  17. package/dist/{chunk-NANZQIAC.mjs → chunk-XZYBAUIS.mjs} +1 -1
  18. package/dist/chunk-YMBNEJBV.mjs +1 -0
  19. package/dist/{chunk-VEWTPB7K.mjs → chunk-ZIPHGLLJ.mjs} +1 -1
  20. package/dist/{chunk-SUO6GOJS.mjs → chunk-ZYYWN6XG.mjs} +1 -1
  21. package/dist/components/Blocks/Banner.mjs +1 -1
  22. package/dist/components/Blocks/CallToAction.mjs +1 -1
  23. package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
  24. package/dist/components/Blocks/CaseStudy.mjs +1 -1
  25. package/dist/components/Blocks/CaseStudy.stories.mjs +1 -1
  26. package/dist/components/Blocks/Code.client.mjs +1 -1
  27. package/dist/components/Blocks/Code.mjs +1 -1
  28. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  29. package/dist/components/Blocks/CollapsibleArea.stories.mjs +1 -1
  30. package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
  31. package/dist/components/Blocks/ConsultantProfile.stories.mjs +1 -1
  32. package/dist/components/Blocks/Content.mjs +1 -1
  33. package/dist/components/Blocks/Content.stories.js +1 -1
  34. package/dist/components/Blocks/Content.stories.mjs +1 -1
  35. package/dist/components/Blocks/CopyButton.mjs +1 -1
  36. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  37. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  38. package/dist/components/Blocks/ProposalSummary.mjs +1 -1
  39. package/dist/components/Blocks/ProposalSummary.stories.mjs +1 -1
  40. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  41. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  42. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  43. package/dist/components/Blocks/index.mjs +1 -1
  44. package/dist/components/CRM/DealCard.mjs +1 -1
  45. package/dist/components/CRM/DealCard.stories.mjs +1 -1
  46. package/dist/components/CRM/DealDetails.mjs +1 -1
  47. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  48. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  49. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  50. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  51. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  52. package/dist/components/CRM/NewCustomerForm.mjs +1 -1
  53. package/dist/components/CRM/NewCustomerForm.stories.mjs +1 -1
  54. package/dist/components/CRM/NewDealForm.mjs +1 -1
  55. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  56. package/dist/components/CRM/index.mjs +1 -1
  57. package/dist/components/Cards/ContentCard.mjs +1 -1
  58. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  59. package/dist/components/Cards/CustomerCard.mjs +1 -1
  60. package/dist/components/Cards/CustomerCard.stories.mjs +1 -1
  61. package/dist/components/Cards/EventCard.mjs +1 -1
  62. package/dist/components/Cards/EventCard.stories.mjs +1 -1
  63. package/dist/components/Cards/FeatureCard.mjs +1 -1
  64. package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
  65. package/dist/components/Cards/HeroCard.mjs +1 -1
  66. package/dist/components/Cards/HeroCard.stories.mjs +1 -1
  67. package/dist/components/Cards/Image.mjs +1 -1
  68. package/dist/components/Cards/Image.stories.mjs +1 -1
  69. package/dist/components/Cards/PricingCard.mjs +1 -1
  70. package/dist/components/Cards/PricingCard.stories.mjs +1 -1
  71. package/dist/components/Cards/ServiceCard.mjs +1 -1
  72. package/dist/components/Cards/ServiceCard.stories.mjs +1 -1
  73. package/dist/components/Cards/index.mjs +1 -1
  74. package/dist/components/Chat/ChatCardArtefact.mjs +1 -1
  75. package/dist/components/Chat/ChatCardArtefact.stories.mjs +1 -1
  76. package/dist/components/Chat/ChatCardTask.js +1 -1
  77. package/dist/components/Chat/ChatCardTask.mjs +1 -1
  78. package/dist/components/Chat/ChatCardTask.stories.js +1 -1
  79. package/dist/components/Chat/ChatCardTask.stories.mjs +1 -1
  80. package/dist/components/Chat/ChatInterfaceMessages.js +2 -2
  81. package/dist/components/Chat/ChatInterfaceMessages.mjs +1 -1
  82. package/dist/components/Chat/ChatInterfaceMessages.stories.js +9 -9
  83. package/dist/components/Chat/ChatInterfaceMessages.stories.mjs +1 -1
  84. package/dist/components/Chat/ChatMessage.js +1 -1
  85. package/dist/components/Chat/ChatMessage.mjs +1 -1
  86. package/dist/components/Chat/ChatMessage.stories.js +1 -1
  87. package/dist/components/Chat/ChatMessage.stories.mjs +1 -1
  88. package/dist/components/Chat/index.js +2 -2
  89. package/dist/components/Chat/index.mjs +1 -1
  90. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  91. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  92. package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
  93. package/dist/components/HeaderFooter/Footer.mjs +1 -1
  94. package/dist/components/HeaderFooter/Footer.stories.mjs +1 -1
  95. package/dist/components/HeaderFooter/Header.mjs +1 -1
  96. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  97. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  98. package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
  99. package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
  100. package/dist/components/HeaderFooter/HeaderMenu.stories.mjs +1 -1
  101. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  102. package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
  103. package/dist/components/HeaderFooter/SimpleHeader.stories.mjs +1 -1
  104. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  105. package/dist/components/HeaderFooter/index.mjs +1 -1
  106. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  107. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  108. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  109. package/dist/components/Heros/PostHero/index.mjs +1 -1
  110. package/dist/components/Heros/RenderHero.mjs +1 -1
  111. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  112. package/dist/components/Heros/index.mjs +1 -1
  113. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  114. package/dist/components/Holidays/ApproveLeave.stories.mjs +1 -1
  115. package/dist/components/Holidays/CalendarView.mjs +1 -1
  116. package/dist/components/Holidays/CalendarView.stories.mjs +1 -1
  117. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  118. package/dist/components/Holidays/HolidayGrid.stories.mjs +1 -1
  119. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  120. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  121. package/dist/components/Holidays/RequestLeave.mjs +1 -1
  122. package/dist/components/Holidays/RequestLeave.stories.mjs +1 -1
  123. package/dist/components/Holidays/index.mjs +1 -1
  124. package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
  125. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  126. package/dist/components/Layouts/Print.js +1 -1
  127. package/dist/components/Layouts/Print.mjs +1 -1
  128. package/dist/components/Layouts/Print.stories.js +1 -1
  129. package/dist/components/Layouts/Print.stories.mjs +1 -1
  130. package/dist/components/Layouts/SlideShow.mjs +1 -1
  131. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  132. package/dist/components/Layouts/index.js +1 -1
  133. package/dist/components/Layouts/index.mjs +1 -1
  134. package/dist/components/Menus/Categories.mjs +1 -1
  135. package/dist/components/Menus/Categories.stories.mjs +1 -1
  136. package/dist/components/Menus/Filter.mjs +1 -1
  137. package/dist/components/Menus/Filter.stories.mjs +1 -1
  138. package/dist/components/Menus/ProjectTeam.mjs +1 -1
  139. package/dist/components/Menus/ProjectTeam.stories.mjs +1 -1
  140. package/dist/components/Menus/RelatedContent.mjs +1 -1
  141. package/dist/components/Menus/RelatedContent.stories.mjs +1 -1
  142. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  143. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  144. package/dist/components/Menus/SidebarRight.mjs +1 -1
  145. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  146. package/dist/components/Menus/index.mjs +1 -1
  147. package/dist/components/Other/Container.mjs +1 -1
  148. package/dist/components/Other/index.mjs +1 -1
  149. package/dist/components/Payload/Link/index.mjs +1 -1
  150. package/dist/components/Payload/Pagination/index.mjs +1 -1
  151. package/dist/components/Payload/RichText/index.mjs +1 -1
  152. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  153. package/dist/components/Payload/RichText.stories.mjs +1 -1
  154. package/dist/components/Payload/index.mjs +1 -1
  155. package/dist/components/index.js +2 -2
  156. package/dist/components/index.mjs +1 -1
  157. package/dist/components/ui/alert.mjs +1 -1
  158. package/dist/components/ui/alert.stories.mjs +1 -1
  159. package/dist/components/ui/avatar.mjs +1 -1
  160. package/dist/components/ui/avatar.stories.mjs +1 -1
  161. package/dist/components/ui/badge.mjs +1 -1
  162. package/dist/components/ui/badge.stories.mjs +1 -1
  163. package/dist/components/ui/breadcrumb.mjs +1 -1
  164. package/dist/components/ui/breadcrumb.stories.mjs +1 -1
  165. package/dist/components/ui/button.mjs +1 -1
  166. package/dist/components/ui/button.stories.mjs +1 -1
  167. package/dist/components/ui/calendar.mjs +1 -1
  168. package/dist/components/ui/card.mjs +1 -1
  169. package/dist/components/ui/card.stories.mjs +1 -1
  170. package/dist/components/ui/checkbox.mjs +1 -1
  171. package/dist/components/ui/command.mjs +1 -1
  172. package/dist/components/ui/command.stories.mjs +1 -1
  173. package/dist/components/ui/dialog.mjs +1 -1
  174. package/dist/components/ui/dialog.stories.mjs +1 -1
  175. package/dist/components/ui/dropdown-menu.mjs +1 -1
  176. package/dist/components/ui/dropdown-menu.stories.mjs +1 -1
  177. package/dist/components/ui/hover-card.mjs +1 -1
  178. package/dist/components/ui/hover-card.stories.mjs +1 -1
  179. package/dist/components/ui/index.mjs +1 -1
  180. package/dist/components/ui/input.mjs +1 -1
  181. package/dist/components/ui/input.stories.mjs +1 -1
  182. package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
  183. package/dist/components/ui/inputs/text-input/index.mjs +1 -1
  184. package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
  185. package/dist/components/ui/label.mjs +1 -1
  186. package/dist/components/ui/label.stories.mjs +1 -1
  187. package/dist/components/ui/pagination.mjs +1 -1
  188. package/dist/components/ui/popover.mjs +1 -1
  189. package/dist/components/ui/popover.stories.mjs +1 -1
  190. package/dist/components/ui/scroll-area.mjs +1 -1
  191. package/dist/components/ui/scroll-area.stories.mjs +1 -1
  192. package/dist/components/ui/select.mjs +1 -1
  193. package/dist/components/ui/separator.mjs +1 -1
  194. package/dist/components/ui/separator.stories.mjs +1 -1
  195. package/dist/components/ui/sheet.mjs +1 -1
  196. package/dist/components/ui/sheet.stories.mjs +1 -1
  197. package/dist/components/ui/sidebar.mjs +1 -1
  198. package/dist/components/ui/skeleton.mjs +1 -1
  199. package/dist/components/ui/skeleton.stories.mjs +1 -1
  200. package/dist/components/ui/textarea.mjs +1 -1
  201. package/dist/components/ui/toast.mjs +1 -1
  202. package/dist/components/ui/toast.stories.mjs +1 -1
  203. package/dist/components/ui/toaster.mjs +1 -1
  204. package/dist/components/ui/toggle-group.mjs +1 -1
  205. package/dist/components/ui/toggle.mjs +1 -1
  206. package/dist/components/ui/toggle.stories.mjs +1 -1
  207. package/dist/components/ui/tooltip.mjs +1 -1
  208. package/dist/components/ui/tooltip.stories.mjs +1 -1
  209. package/dist/hooks/index.mjs +1 -1
  210. package/dist/index.js +2 -2
  211. package/dist/index.mjs +1 -1
  212. package/dist/metafile-cjs.json +1 -1
  213. package/dist/metafile-esm.json +1 -1
  214. package/dist/pages/Blog.mjs +1 -1
  215. package/dist/pages/Blog.stories.mjs +1 -1
  216. package/dist/pages/Documentation.mjs +1 -1
  217. package/dist/pages/Documentation.stories.mjs +1 -1
  218. package/dist/pages/IndexPage.mjs +1 -1
  219. package/dist/pages/IndexPage.stories.mjs +1 -1
  220. package/dist/pages/Intranet.mjs +1 -1
  221. package/dist/pages/Intranet.stories.mjs +1 -1
  222. package/dist/pages/LandingPage.mjs +1 -1
  223. package/dist/pages/LandingPage.stories.mjs +1 -1
  224. package/dist/pages/Page.mjs +1 -1
  225. package/dist/pages/Page.stories.mjs +1 -1
  226. package/dist/pages/Printable.stories.js +1 -1
  227. package/dist/pages/Printable.stories.mjs +1 -1
  228. package/dist/pages/Publish.js +1 -1
  229. package/dist/pages/Publish.mjs +1 -1
  230. package/dist/pages/Publish.stories.js +1 -1
  231. package/dist/pages/Publish.stories.mjs +1 -1
  232. package/dist/pages/Website.js +1 -1
  233. package/dist/pages/Website.mjs +1 -1
  234. package/dist/pages/Website.stories.js +1 -1
  235. package/dist/pages/Website.stories.mjs +1 -1
  236. package/dist/sections/AboutSection.mjs +1 -1
  237. package/dist/sections/AboutSection.stories.mjs +1 -1
  238. package/dist/sections/BlogDetail.mjs +1 -1
  239. package/dist/sections/BlogDetail.stories.mjs +1 -1
  240. package/dist/sections/BlogList.mjs +1 -1
  241. package/dist/sections/BlogList.stories.mjs +1 -1
  242. package/dist/sections/BlogListSection.mjs +1 -1
  243. package/dist/sections/BlogListSection.stories.mjs +1 -1
  244. package/dist/sections/ContactSection.mjs +1 -1
  245. package/dist/sections/ContactSection.stories.mjs +1 -1
  246. package/dist/sections/ImageSection.mjs +1 -1
  247. package/dist/sections/ImageSection.stories.mjs +1 -1
  248. package/dist/sections/MainPageSection.mjs +1 -1
  249. package/dist/sections/PageSections.mjs +1 -1
  250. package/dist/sections/PageSections.stories.mjs +1 -1
  251. package/dist/sections/PricingSection.mjs +1 -1
  252. package/dist/sections/PricingSection.stories.mjs +1 -1
  253. package/dist/sections/ServiceDetail.mjs +1 -1
  254. package/dist/sections/ServiceDetailSection.mjs +1 -1
  255. package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
  256. package/dist/sections/ServiceSection.mjs +1 -1
  257. package/dist/sections/ServiceSection.stories.mjs +1 -1
  258. package/dist/sections/form/index.mjs +1 -1
  259. package/dist/sections/index.mjs +1 -1
  260. package/dist/styles/Colors.mjs +1 -1
  261. package/dist/styles/Colors.stories.mjs +1 -1
  262. package/dist/utils/getTableOfContents.js +1 -1
  263. package/dist/utils/getTableOfContents.mjs +1 -1
  264. package/dist/utils/index.js +2 -2
  265. package/dist/utils/index.mjs +1 -1
  266. package/package.json +1 -1
  267. package/dist/chunk-7LGAYY6V.mjs +0 -1
  268. package/dist/chunk-WCQXVVVF.mjs +0 -1
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@
7
7
  aos: MutationObserver is not supported on this browser,
8
8
  code mutations observing has been disabled.
9
9
  You may have to call "refreshHard()" by yourself.
10
- `),D.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",D.easing),document.querySelector("body").setAttribute("data-aos-duration",D.duration),document.querySelector("body").setAttribute("data-aos-delay",D.delay),D.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?ie(!0):D.startEvent==="load"?window.addEventListener(D.startEvent,function(){ie(!0)}):document.addEventListener(D.startEvent,function(){ie(!0)}),window.addEventListener("resize",(0,c.default)(ie,D.debounceDelay,!0)),window.addEventListener("orientationchange",(0,c.default)(ie,D.debounceDelay,!0)),window.addEventListener("scroll",(0,i.default)(function(){(0,f.default)(P,D.once)},D.throttleDelay)),D.disableMutationObserver||p.default.ready("[data-aos]",ct),P)};e.exports={init:F,refresh:ie,refreshHard:ct}},function(e,t){},,,,,function(e,t){(function(a){"use strict";function o(N,F,C){function ke(le){var ft=ne,Ba=ue;return ne=ue=void 0,Ia=le,Ke=N.apply(Ba,ft)}function we(le){return Ia=le,_e=setTimeout(Bt,F),La?ke(le):Ke}function Ue(le){var ft=le-St,Ba=le-Ia,pl=F-ft;return fa?ct(pl,na-Ba):pl}function mt(le){var ft=le-St,Ba=le-Ia;return St===void 0||ft>=F||ft<0||fa&&Ba>=na}function Bt(){var le=A();return mt(le)?kt(le):void(_e=setTimeout(Bt,Ue(le)))}function kt(le){return _e=void 0,Ne&&ne?ke(le):(ne=ue=void 0,Ke)}function pt(){_e!==void 0&&clearTimeout(_e),Ia=0,ne=St=ue=_e=void 0}function ut(){return _e===void 0?Ke:kt(A())}function pe(){var le=A(),ft=mt(le);if(ne=arguments,ue=this,St=le,ft){if(_e===void 0)return we(St);if(fa)return _e=setTimeout(Bt,F),ke(St)}return _e===void 0&&(_e=setTimeout(Bt,F)),Ke}var ne,ue,na,Ke,_e,St,Ia=0,La=!1,fa=!1,Ne=!0;if(typeof N!="function")throw new TypeError(d);return F=m(F)||0,s(C)&&(La=!!C.leading,fa="maxWait"in C,na=fa?ie(m(C.maxWait)||0,F):na,Ne="trailing"in C?!!C.trailing:Ne),pe.cancel=pt,pe.flush=ut,pe}function r(N,F,C){var ke=!0,we=!0;if(typeof N!="function")throw new TypeError(d);return s(C)&&(ke="leading"in C?!!C.leading:ke,we="trailing"in C?!!C.trailing:we),o(N,F,{leading:ke,maxWait:F,trailing:we})}function s(N){var F=typeof N>"u"?"undefined":c(N);return!!N&&(F=="object"||F=="function")}function l(N){return!!N&&(typeof N>"u"?"undefined":c(N))=="object"}function i(N){return(typeof N>"u"?"undefined":c(N))=="symbol"||l(N)&&D.call(N)==u}function m(N){if(typeof N=="number")return N;if(i(N))return p;if(s(N)){var F=typeof N.valueOf=="function"?N.valueOf():N;N=s(F)?F+"":F}if(typeof N!="string")return N===0?N:+N;N=N.replace(g,"");var C=f.test(N);return C||h.test(N)?L(N.slice(2),C?2:8):b.test(N)?p:+N}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},d="Expected a function",p=NaN,u="[object Symbol]",g=/^\s+|\s+$/g,b=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,h=/^0o[0-7]+$/i,L=parseInt,S=(typeof a>"u"?"undefined":c(a))=="object"&&a&&a.Object===Object&&a,x=(typeof self>"u"?"undefined":c(self))=="object"&&self&&self.Object===Object&&self,P=S||x||Function("return this")(),w=Object.prototype,D=w.toString,ie=Math.max,ct=Math.min,A=function(){return P.Date.now()};e.exports=r}).call(t,function(){return this}())},function(e,t){(function(a){"use strict";function o(A,N,F){function C(Ne){var le=pe,ft=ne;return pe=ne=void 0,St=Ne,na=A.apply(ft,le)}function ke(Ne){return St=Ne,Ke=setTimeout(mt,N),Ia?C(Ne):na}function we(Ne){var le=Ne-_e,ft=Ne-St,Ba=N-le;return La?ie(Ba,ue-ft):Ba}function Ue(Ne){var le=Ne-_e,ft=Ne-St;return _e===void 0||le>=N||le<0||La&&ft>=ue}function mt(){var Ne=ct();return Ue(Ne)?Bt(Ne):void(Ke=setTimeout(mt,we(Ne)))}function Bt(Ne){return Ke=void 0,fa&&pe?C(Ne):(pe=ne=void 0,na)}function kt(){Ke!==void 0&&clearTimeout(Ke),St=0,pe=_e=ne=Ke=void 0}function pt(){return Ke===void 0?na:Bt(ct())}function ut(){var Ne=ct(),le=Ue(Ne);if(pe=arguments,ne=this,_e=Ne,le){if(Ke===void 0)return ke(_e);if(La)return Ke=setTimeout(mt,N),C(_e)}return Ke===void 0&&(Ke=setTimeout(mt,N)),na}var pe,ne,ue,na,Ke,_e,St=0,Ia=!1,La=!1,fa=!0;if(typeof A!="function")throw new TypeError(c);return N=i(N)||0,r(F)&&(Ia=!!F.leading,La="maxWait"in F,ue=La?D(i(F.maxWait)||0,N):ue,fa="trailing"in F?!!F.trailing:fa),ut.cancel=kt,ut.flush=pt,ut}function r(A){var N=typeof A>"u"?"undefined":m(A);return!!A&&(N=="object"||N=="function")}function s(A){return!!A&&(typeof A>"u"?"undefined":m(A))=="object"}function l(A){return(typeof A>"u"?"undefined":m(A))=="symbol"||s(A)&&w.call(A)==p}function i(A){if(typeof A=="number")return A;if(l(A))return d;if(r(A)){var N=typeof A.valueOf=="function"?A.valueOf():A;A=r(N)?N+"":N}if(typeof A!="string")return A===0?A:+A;A=A.replace(u,"");var F=b.test(A);return F||f.test(A)?h(A.slice(2),F?2:8):g.test(A)?d:+A}var m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},c="Expected a function",d=NaN,p="[object Symbol]",u=/^\s+|\s+$/g,g=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,f=/^0o[0-7]+$/i,h=parseInt,L=(typeof a>"u"?"undefined":m(a))=="object"&&a&&a.Object===Object&&a,S=(typeof self>"u"?"undefined":m(self))=="object"&&self&&self.Object===Object&&self,x=L||S||Function("return this")(),P=Object.prototype,w=P.toString,D=Math.max,ie=Math.min,ct=function(){return x.Date.now()};e.exports=o}).call(t,function(){return this}())},function(e,t){"use strict";function a(m){var c=void 0,d=void 0,p=void 0;for(c=0;c<m.length;c+=1)if(d=m[c],d.dataset&&d.dataset.aos||(p=d.children&&a(d.children)))return!0;return!1}function o(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function r(){return!!o()}function s(m,c){var d=window.document,p=o(),u=new p(l);i=c,u.observe(d.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function l(m){m&&m.forEach(function(c){var d=Array.prototype.slice.call(c.addedNodes),p=Array.prototype.slice.call(c.removedNodes),u=d.concat(p);if(a(u))return i()})}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.default={isSupported:r,ready:s}},function(e,t){"use strict";function a(d,p){if(!(d instanceof p))throw new TypeError("Cannot call a class as a function")}function o(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function d(p,u){for(var g=0;g<u.length;g++){var b=u[g];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,u,g){return u&&d(p.prototype,u),g&&d(p,g),p}}(),s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|Fl)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|Et)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows Et|xda|xiino/i,l=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a Et|abac|Et(pc|oo|s\-)|ai(Pl|rn)|al(av|Et|co)|amoi|an(ex|ny|yw)|aptu|Pl(ch|go)|as(Et|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|Et)|bl(Et|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|Et(Et|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|Et(12|\-d)|el(49|ai)|em(l2|ul)|pc(ic|k0)|esl8|ez([4-7]0|os|Et|ze)|fetc|fly(\-|Et)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|Fl)|gr(ad|Et)|haie|hcit|Fl\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |Et|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|Et)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|Et)|le(no|xi)|lg( g|\/(Et|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|Et(Et|ui|xo)|mc(01|21|Et)|m\-cr|Et(rc|ri)|mi(o8|Et|ts)|mmef|mo(01|02|bi|Et|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|Et)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|Et\-2|po(ck|Et|Et)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|Yl(Et|zo)|s55\/|Pl(ge|Et|Yl|Et|ny|va)|Et(01|h\-|oo|p\-)|sdk\/|Et(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|Pl(al|Pl|b3|Et|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|Et)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|Et(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|Fl)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|Et)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows Et|xda|xiino|android|ipad|playbook|silk/i,m=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a Et|abac|Et(pc|oo|s\-)|ai(Pl|rn)|al(av|Et|co)|amoi|an(ex|ny|yw)|aptu|Pl(ch|go)|as(Et|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|Et)|bl(Et|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|Et(Et|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|Et(12|\-d)|el(49|ai)|em(l2|ul)|pc(ic|k0)|esl8|ez([4-7]0|os|Et|ze)|fetc|fly(\-|Et)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|Fl)|gr(ad|Et)|haie|hcit|Fl\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |Et|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|Et)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|Et)|le(no|xi)|lg( g|\/(Et|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|Et(Et|ui|xo)|mc(01|21|Et)|m\-cr|Et(rc|ri)|mi(o8|Et|ts)|mmef|mo(01|02|bi|Et|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|Et)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|Et\-2|po(ck|Et|Et)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|Yl(Et|zo)|s55\/|Pl(ge|Et|Yl|Et|ny|va)|Et(01|h\-|oo|p\-)|sdk\/|Et(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|Pl(al|Pl|b3|Et|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|Et)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|Et(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,c=function(){function d(){a(this,d)}return r(d,[{key:"phone",value:function(){var p=o();return!(!s.test(p)&&!l.test(p.substr(0,4)))}},{key:"mobile",value:function(){var p=o();return!(!i.test(p)&&!m.test(p.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),d}();t.default=new c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(r,s,l){var i=r.node.getAttribute("data-aos-once");s>r.position?r.node.classList.add("aos-animate"):typeof i<"u"&&(i==="false"||!l&&i!=="true")&&r.node.classList.remove("aos-animate")},o=function(r,s){var l=window.pageYOffset,i=window.innerHeight;r.forEach(function(m,c){a(m,i+l,s)})};t.default=o},function(e,t,a){"use strict";function o(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(12),s=o(r),l=function(i,m){return i.forEach(function(c,d){c.node.classList.add("aos-init"),c.position=(0,s.default)(c.node,m.offset)}),i};t.default=l},function(e,t,a){"use strict";function o(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(13),s=o(r),l=function(i,m){var c=0,d=0,p=window.innerHeight,u={offset:i.getAttribute("data-aos-offset"),anchor:i.getAttribute("data-aos-anchor"),anchorPlacement:i.getAttribute("data-aos-anchor-placement")};switch(u.offset&&!isNaN(u.offset)&&(d=parseInt(u.offset)),u.anchor&&document.querySelectorAll(u.anchor)&&(i=document.querySelectorAll(u.anchor)[0]),c=(0,s.default)(i).top,u.anchorPlacement){case"top-bottom":break;case"center-bottom":c+=i.offsetHeight/2;break;case"bottom-bottom":c+=i.offsetHeight;break;case"top-center":c+=p/2;break;case"bottom-center":c+=p/2+i.offsetHeight;break;case"center-center":c+=p/2+i.offsetHeight/2;break;case"top-top":c+=p;break;case"bottom-top":c+=i.offsetHeight+p;break;case"center-top":c+=i.offsetHeight/2+p}return u.anchorPlacement||u.offset||isNaN(m)||(d=m),c+d};t.default=l},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(o){for(var r=0,s=0;o&&!isNaN(o.offsetLeft)&&!isNaN(o.offsetTop);)r+=o.offsetLeft-(o.tagName!="BODY"?o.scrollLeft:0),s+=o.offsetTop-(o.tagName!="BODY"?o.scrollTop:0),o=o.offsetParent;return{top:s,left:r}};t.default=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(o){return o=o||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(o,function(r){return{node:r}})};t.default=a}])})});var yf={};_m(yf,{AOSInit:()=>wp,AboutSection:()=>af,Alert:()=>Qi,AlertDescription:()=>Zi,AlertTitle:()=>Ji,ApproveLeave:()=>Kn,Avatar:()=>vt,AvatarFallback:()=>yt,AvatarImage:()=>ht,Badge:()=>xt,BannerBlock:()=>on,BlogCard:()=>Dm,BlogDetail:()=>df,BlogList:()=>uf,BlogListSection:()=>rf,BrandLogo:()=>to,Breadcrumb:()=>Zs,BreadcrumbEllipsis:()=>si,BreadcrumbItem:()=>ti,BreadcrumbLink:()=>ai,BreadcrumbList:()=>ei,BreadcrumbPage:()=>oi,BreadcrumbSeparator:()=>ri,Breadcrumbs:()=>Eu,Button:()=>B,CMSLink:()=>Zt,CRMKanbanBoard:()=>Xu,Calendar:()=>Sr,CalendarView:()=>tl,CallToActionBlock:()=>ho,CallToActionBlockOld:()=>Gp,Card:()=>Mr,Categories:()=>En,ChatCardTask:()=>nl,ChatInterfaceMessages:()=>Zu,ChatMessage:()=>ll,Checkbox:()=>Jt,CodeBlock:()=>dn,Collapsible:()=>ba,CollapsibleContent:()=>Fa,CollapsibleTrigger:()=>Ha,CollectionArchive:()=>fu,Command:()=>ss,CommandDialog:()=>vd,CommandEmpty:()=>Vi,CommandGroup:()=>Xi,CommandInput:()=>Wi,CommandItem:()=>qi,CommandList:()=>Ui,CommandSeparator:()=>Yi,CommandShortcut:()=>Ki,ContactSection:()=>sf,Container:()=>Ct,ContentBlock:()=>Ar,ContentCard:()=>Jp,CopyButton:()=>nn,CustomLink:()=>Qe,CustomerCard:()=>Yd,DarkTop:()=>xn,DealCard:()=>ol,DealDetails:()=>al,Dialog:()=>Ot,DialogClose:()=>os,DialogContent:()=>Dt,DialogDescription:()=>$i,DialogFooter:()=>Gi,DialogHeader:()=>Kt,DialogOverlay:()=>rs,DialogPortal:()=>_i,DialogTitle:()=>Qt,DialogTrigger:()=>as,DropdownMenu:()=>Rl,DropdownMenuCheckboxItem:()=>ci,DropdownMenuContent:()=>li,DropdownMenuGroup:()=>Dl,DropdownMenuItem:()=>di,DropdownMenuLabel:()=>pi,DropdownMenuPortal:()=>Al,DropdownMenuRadioGroup:()=>Il,DropdownMenuRadioItem:()=>mi,DropdownMenuSeparator:()=>ui,DropdownMenuShortcut:()=>fi,DropdownMenuSub:()=>Ml,DropdownMenuSubContent:()=>ni,DropdownMenuSubTrigger:()=>ii,DropdownMenuTrigger:()=>Tl,DynamicIcon:()=>et,EventCard:()=>qd,FeatureCard:()=>Wo,FeatureGrid:()=>rc,FeaturesBlock:()=>xo,Filter:()=>Hn,FlowPrintable:()=>Sc,Footer:()=>_u,Header:()=>Gu,HeaderDesktop:()=>Un,HeaderMobile:()=>Xn,HeadingImage:()=>du,Hero:()=>Qp,HighImpactHero:()=>Fn,HolidayGrid:()=>el,HolidayTracker:()=>Uu,HoverCard:()=>pd,HoverCardContent:()=>ji,HoverCardTrigger:()=>ud,Image:()=>ec,ImageBlock:()=>fn,ImageSection:()=>pf,InfoTile:()=>tu,Input:()=>gt,Insight:()=>eu,KanbanColumn:()=>il,Label:()=>be,LightTop:()=>wn,LocationsSection:()=>nf,Logo:()=>gu,LowImpactHero:()=>_n,MOTD:()=>ou,MainPageSection:()=>cf,Mask:()=>Iu,Media:()=>ta,MediaBlock:()=>Na,MediumImpactHero:()=>jn,NewCustomerForm:()=>rl,NewDealForm:()=>sl,NewsGrid:()=>Pc,OrgChart:()=>iu,PagePrintable:()=>Rc,PageRange:()=>hu,PageShape:()=>Mt,Pagination:()=>Bn,PayloadPagination:()=>yu,Popover:()=>Nr,PopoverAnchor:()=>nd,PopoverContent:()=>_o,PopoverTrigger:()=>Cr,PostHero:()=>Au,PricingCard:()=>hn,PricingSection:()=>tf,Printable:()=>Mn,ProjectCard:()=>Zd,ProjectTeam:()=>Su,ProposalSummary:()=>nu,Publish:()=>vf,RelatedContent:()=>Ru,RelatedPosts:()=>uu,RenderBlocks:()=>eo,RenderBlocksWithShapes:()=>mu,RenderHero:()=>Bu,RequestLeave:()=>Zn,ReusableContentBlock:()=>yn,RichText:()=>q,ScrollArea:()=>la,ScrollBar:()=>ts,Section:()=>gf,SectionHero:()=>$n,Select:()=>go,SelectContent:()=>qa,SelectGroup:()=>zp,SelectItem:()=>Ka,SelectLabel:()=>Cd,SelectScrollDownButton:()=>an,SelectScrollUpButton:()=>tn,SelectSeparator:()=>Pd,SelectTrigger:()=>Ya,SelectValue:()=>bo,Separator:()=>dr,ServiceCard:()=>Kp,ServiceDetail:()=>bf,ServiceDetailSection:()=>ff,ServiceSection:()=>ef,Sheet:()=>Gr,SheetClose:()=>jl,SheetContent:()=>mr,SheetDescription:()=>xi,SheetFooter:()=>hi,SheetHeader:()=>vi,SheetOverlay:()=>$r,SheetPortal:()=>bi,SheetTitle:()=>yi,SheetTrigger:()=>Ol,Sidebar:()=>no,SidebarContent:()=>ja,SidebarFooter:()=>co,SidebarGroup:()=>zt,SidebarGroupAction:()=>Ri,SidebarGroupContent:()=>Yt,SidebarGroupLabel:()=>ha,SidebarHeader:()=>lo,SidebarInput:()=>Si,SidebarInset:()=>ki,SidebarLeft:()=>Nu,SidebarMenu:()=>bt,SidebarMenuAction:()=>fr,SidebarMenuBadge:()=>Ti,SidebarMenuButton:()=>Ht,SidebarMenuItem:()=>Ze,SidebarMenuSkeleton:()=>Di,SidebarMenuSub:()=>_a,SidebarMenuSubButton:()=>$a,SidebarMenuSubItem:()=>Ga,SidebarProvider:()=>Ni,SidebarRail:()=>Pi,SidebarRight:()=>ku,SidebarSeparator:()=>ur,SidebarTrigger:()=>Ci,SimpleHeader:()=>Hu,Skeleton:()=>De,SlideShow:()=>As,TextAndImages:()=>kc,Textarea:()=>Qa,Theme:()=>Ss,ThemeProvider:()=>Mu,ThemeWithShapes:()=>mc,Toast:()=>vr,ToastAction:()=>Ii,ToastClose:()=>hr,ToastDescription:()=>xr,ToastProvider:()=>Zr,ToastTitle:()=>yr,ToastViewport:()=>br,Toaster:()=>td,Toggle:()=>Bi,ToggleGroup:()=>Ei,ToggleGroupItem:()=>zi,Tooltip:()=>Xr,TooltipContent:()=>pr,TooltipProvider:()=>Vr,TooltipTrigger:()=>Yr,VideoHeader:()=>Ou,WhyUs:()=>lu,badgeVariants:()=>en,buttonVariants:()=>Oa,Et:()=>n,getTableOfContents:()=>Bo,reducer:()=>Ql,toast:()=>Jl,toggleVariants:()=>wr,useIsMobile:()=>Ur,useSidebar:()=>Oo,useToast:()=>Jr});module.exports=Gm(yf);var Eo=v(require("react")),_r=require("@radix-ui/react-icons"),Sl=require("@radix-ui/react-slot");var Nl=require("clsx");var Qs="-",$m=e=>{let t=Um(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let i=l.split(Qs);return i[0]===""&&i.length!==1&&i.shift(),bl(i,t)||Wm(l)},getConflictingClassGroupIds:(l,i)=>{let m=a[l]||[];return i&&o[l]?[...m,...o[l]]:m}}},bl=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?bl(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(Qs);return t.validators.find(({validator:l})=>l(s))?.classGroupId},fl=/^\[(.+)\]$/,Wm=e=>{if(fl.test(e)){let t=fl.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Um=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return Xm(Object.entries(e.classGroups),a).forEach(([s,l])=>{Ks(l,o,s,t)}),o},Ks=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:gl(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(Vm(r)){Ks(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,l])=>{Ks(l,gl(t,s),a,o)})})},gl=(e,t)=>{let a=e;return t.split(Qs).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Vm=e=>e.isThemeGetter,Xm=(e,t)=>t?e.map(([a,o])=>{let r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,i])=>[t+l,i])):s);return[a,r]}):e,Ym=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,l)=>{a.set(s,l),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let l=a.get(s);if(l!==void 0)return l;if((l=o.get(s))!==void 0)return r(s,l),l},set(s,l){a.has(s)?a.set(s,l):r(s,l)}}},vl="!",qm=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,l=i=>{let m=[],c=0,d=0,p;for(let h=0;h<i.length;h++){let L=i[h];if(c===0){if(L===r&&(o||i.slice(h,h+s)===t)){m.push(i.slice(d,h)),d=h+s;continue}if(L==="/"){p=h;continue}}L==="["?c++:L==="]"&&c--}let u=m.length===0?i:i.substring(d),g=u.startsWith(vl),b=g?u.substring(1):u,f=p&&p>d?p-d:void 0;return{modifiers:m,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:f}};return a?i=>a({className:i,parseClassName:l}):l},Km=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},Qm=e=>({cache:Ym(e.cacheSize),parseClassName:qm(e),...$m(e)}),Jm=/\s+/,Zm=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],l=e.trim().split(Jm),i="";for(let m=l.length-1;m>=0;m-=1){let c=l[m],{modifiers:d,hasImportantModifier:p,baseClassName:u,maybePostfixModifierPosition:g}=a(c),b=!!g,f=o(b?u.substring(0,g):u);if(!f){if(!b){i=c+(i.length>0?" "+i:i);continue}if(f=o(u),!f){i=c+(i.length>0?" "+i:i);continue}b=!1}let h=Km(d).join(":"),L=p?h+vl:h,S=L+f;if(s.includes(S))continue;s.push(S);let x=r(f,b);for(let P=0;P<x.length;++P){let w=x[P];s.push(L+w)}i=c+(i.length>0?" "+i:i)}return i};function ep(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=hl(t))&&(o&&(o+=" "),o+=a);return o}var hl=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=hl(e[o]))&&(a&&(a+=" "),a+=t);return a};function tp(e,...t){let a,o,r,s=l;function l(m){let c=t.reduce((d,p)=>p(d),e());return a=Qm(c),o=a.cache.get,r=a.cache.set,s=i,i(m)}function i(m){let c=o(m);if(c)return c;let d=Zm(m,a);return r(m,d),d}return function(){return s(ep.apply(null,arguments))}}var ge=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},yl=/^\[(?:([a-Et-]+):)?(.+)\]$/i,ap=/^\d+\/\d+$/,op=new Set(["px","full","screen"]),rp=/^(\d+(\.\d+)?)?(Et|Pl|md|lg|xl)$/,sp=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|Pl|Yl|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ip=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,np=/^(inset_)?-?((\d+)?\.?(\d+)[a-Et]+|0)Et-?((\d+)?\.?(\d+)[a-Et]+|0)/,lp=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ga=e=>Io(e)||op.has(e)||ap.test(e),Ea=e=>Lo(e,"length",bp),Io=e=>!!e&&!Number.isNaN(Number(e)),qs=e=>Lo(e,"number",Io),ir=e=>!!e&&Number.isInteger(Number(e)),dp=e=>e.endsWith("%")&&Io(e.slice(0,-1)),O=e=>yl.test(e),za=e=>rp.test(e),cp=new Set(["length","size","percentage"]),mp=e=>Lo(e,cp,xl),pp=e=>Lo(e,"position",xl),up=new Set(["image","url"]),fp=e=>Lo(e,up,hp),gp=e=>Lo(e,"",vp),nr=()=>!0,Lo=(e,t,a)=>{let o=yl.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},bp=e=>sp.test(e)&&!ip.test(e),xl=()=>!1,vp=e=>np.test(e),hp=e=>lp.test(e);var yp=()=>{let e=ge("colors"),t=ge("spacing"),a=ge("blur"),o=ge("brightness"),r=ge("borderColor"),s=ge("borderRadius"),l=ge("borderSpacing"),i=ge("borderWidth"),m=ge("contrast"),c=ge("grayscale"),d=ge("hueRotate"),p=ge("invert"),u=ge("gap"),g=ge("gradientColorStops"),b=ge("gradientColorStopPositions"),f=ge("inset"),h=ge("margin"),L=ge("opacity"),S=ge("padding"),x=ge("saturate"),P=ge("scale"),w=ge("sepia"),D=ge("skew"),ie=ge("space"),ct=ge("translate"),A=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",O,t],C=()=>[O,t],ke=()=>["",ga,Ea],we=()=>["auto",Io,O],Ue=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],mt=()=>["solid","dashed","dotted","double","none"],Bt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],kt=()=>["start","end","center","between","around","evenly","stretch"],pt=()=>["","0",O],ut=()=>["auto","avoid","all","avoid-page","page","left","right","column"],pe=()=>[Io,O];return{cacheSize:500,separator:":",theme:{colors:[nr],spacing:[ga,Ea],blur:["none","",za,O],brightness:pe(),borderColor:[e],borderRadius:["none","","full",za,O],borderSpacing:C(),borderWidth:ke(),contrast:pe(),grayscale:pt(),hueRotate:pe(),invert:pt(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[dp,Ea],inset:F(),margin:F(),opacity:pe(),padding:C(),saturate:pe(),scale:pe(),sepia:pt(),skew:pe(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[za]}],"break-after":[{"break-after":ut()}],"break-before":[{"break-before":ut()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ue(),O]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-Et":[{"overflow-Et":N()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-Et":[{"overscroll-Et":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-Et":[{"inset-Et":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],Et:[{Et:["auto",ir,O]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",O]}],grow:[{grow:pt()}],shrink:[{shrink:pt()}],order:[{order:["first","last","none",ir,O]}],"grid-cols":[{"grid-cols":[nr]}],"col-start-end":[{col:["auto",{span:["full",ir,O]},O]}],"col-start":[{"col-start":we()}],"col-end":[{"col-end":we()}],"grid-rows":[{"grid-rows":[nr]}],"row-start-end":[{row:["auto",{span:[ir,O]},O]}],"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",O]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",O]}],gap:[{gap:[u]}],"gap-x":[{"gap-x":[u]}],"gap-Et":[{"gap-Et":[u]}],"justify-content":[{justify:["normal",...kt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...kt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...kt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],Et:[{Et:[h]}],Et:[{Et:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[ie]}],"space-x-reverse":["space-x-reverse"],"space-Et":[{"space-Et":[ie]}],"space-Et-reverse":["space-Et-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",O,t]}],"min-w":[{"min-w":[O,t,"min","max","fit"]}],"max-w":[{"max-w":[O,t,"none","full","min","max","fit","prose",{screen:[za]},za]}],h:[{h:[O,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[O,t,"auto","min","max","fit"]}],"font-size":[{text:["base",za,Ea]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",qs]}],"font-family":[{font:[nr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",O]}],"line-clamp":[{"line-clamp":["none",Io,qs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ga,O]}],"list-image":[{"list-image":["none",O]}],"list-style-type":[{list:["none","disc","decimal",O]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[L]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...mt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ga,Ea]}],"underline-offset":[{"underline-offset":["auto",ga,O]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[L]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ue(),pp]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","Et","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",mp]}],"bg-image":[{bg:["none",{"gradient-to":["t","It","r","br","b","bl","l","tl"]},fp]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-Et":[{"rounded-Et":[s]}],"rounded-Et":[{"rounded-Et":[s]}],"rounded-Et":[{"rounded-Et":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-It":[{"rounded-It":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-Et":[{"border-Et":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[L]}],"border-style":[{border:[...mt(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-Et":[{"divide-Et":[i]}],"divide-Et-reverse":["divide-Et-reverse"],"divide-opacity":[{"divide-opacity":[L]}],"divide-style":[{divide:mt()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-Et":[{"border-Et":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...mt()]}],"outline-offset":[{"outline-offset":[ga,O]}],"outline-w":[{outline:[ga,Ea]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ke()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[L]}],"ring-offset-w":[{"ring-offset":[ga,Ea]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",za,gp]}],"shadow-color":[{shadow:[nr]}],opacity:[{opacity:[L]}],"mix-blend":[{"mix-blend":[...Bt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Bt()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",za,O]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[x]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[L]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-Et":[{"border-spacing-Et":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:pe()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:pe()}],animate:[{animate:["none","spin","ping","pulse","bounce",O]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[P]}],"scale-x":[{"scale-x":[P]}],"scale-Et":[{"scale-Et":[P]}],rotate:[{rotate:[ir,O]}],"translate-x":[{"translate-x":[ct]}],"translate-Et":[{"translate-Et":[ct]}],"skew-x":[{"skew-x":[D]}],"skew-Et":[{"skew-Et":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","Et-resize","sw-resize","ew-resize","Et-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Et","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-Et":[{"scroll-Et":C()}],"scroll-Et":[{"scroll-Et":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","Et","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-Et":[{"touch-pan":["Et","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ga,Ea,qs]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-Et"],overscroll:["overscroll-x","overscroll-Et"],inset:["inset-x","inset-Et","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-Et":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-Et"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","Et","Et","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-Et","rounded-Et","rounded-Et","rounded-tl","rounded-It","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-Et"],"rounded-e":["rounded-Et","rounded-Et"],"rounded-t":["rounded-tl","rounded-It"],"rounded-r":["rounded-It","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-Et"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-Et":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-Et":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-Et","scroll-Et","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-Et","touch-pz"],"touch-x":["touch"],"touch-Et":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var wl=tp(yp);function n(...e){return wl((0,Nl.clsx)(e))}function Bo(e){let t=0,a=(s,l)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${l}`,o=e.layout.flatMap(s=>{let l=[];return"title"in s&&s.title&&l.push({text:s.title,id:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(i=>{if(i.title&&l.push({text:i.title,id:a(i.title,t++),tag:"h2"}),i.richText?.root?.children&&i.richText?.root?.children.length===1){let m=i.richText.root.children.filter(c=>c!==void 0&&c.type==="heading");for(let c of m)c.children[0]&&l.push({text:c.children[0].text??"",id:a(c.children[0].text,t++),tag:c.tag||"h2"})}}),l}),r=xp(e.layout);return{tableOfContents:o,contentWithIds:r}}function xp(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 Pl=require("react"),kl=v(Cl());function wp(){return(0,Pl.useEffect)(()=>{kl.default.init({duration:1e3,offset:0,once:!0})},[]),null}var Et=require("react/jsx-runtime"),Zs=Eo.forwardRef(({...e},t)=>(0,Et.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));Zs.displayName="Breadcrumb";var ei=Eo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("ol",{ref:a,className:n("flex flex-wrap items-center gap-1.5 break-words text-Pl text-muted-foreground Pl:gap-2.5",e),...t}));ei.displayName="BreadcrumbList";var ti=Eo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("li",{ref:a,className:n("inline-flex items-center gap-1.5",e),...t}));ti.displayName="BreadcrumbItem";var ai=Eo.forwardRef(({asChild:e,className:t,...a},o)=>(0,Et.jsx)(e?Sl.Slot:"a",{ref:o,className:n("transition-colors hover:text-foreground",t),...a}));ai.displayName="BreadcrumbLink";var oi=Eo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:n("font-normal text-foreground",e),...t}));oi.displayName="BreadcrumbPage";var ri=({children:e,className:t,...a})=>(0,Et.jsx)("li",{role:"presentation","aria-hidden":"true",className:n("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e??(0,Et.jsx)(_r.ChevronRightIcon,{})});ri.displayName="BreadcrumbSeparator";var si=({className:e,...t})=>(0,Et.jsxs)("span",{role:"presentation","aria-hidden":"true",className:n("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,Et.jsx)(_r.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,Et.jsx)("span",{className:"sr-only",children:"More"})]});si.displayName="BreadcrumbElipssis";var zo=v(require("@radix-ui/react-collapsible")),ba=zo.Root,Ha=zo.CollapsibleTrigger,Fa=zo.CollapsibleContent;var va=v(require("react")),$=v(require("@radix-ui/react-dropdown-menu"));var Rl=$.Root,Tl=$.Trigger,Dl=$.Group,Al=$.Portal,Ml=$.Sub,Il=$.RadioGroup,ii=va.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Et.jsxs)($.SubTrigger,{ref:r,className:n("flex cursor-default gap-2 select-none items-center rounded-Pl px-2 py-1.5 text-Pl outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,(0,Et.jsx)(_r.ChevronRightIcon,{className:"ml-auto"})]}));ii.displayName=$.SubTrigger.displayName;var ni=va.forwardRef(({className:e,...t},a)=>(0,Et.jsx)($.SubContent,{ref:a,className:n("Et-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));ni.displayName=$.SubContent.displayName;var li=va.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Et.jsx)($.Portal,{children:(0,Et.jsx)($.Content,{ref:o,sideOffset:t,className:n("Et-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));li.displayName=$.Content.displayName;var di=va.forwardRef(({className:e,inset:t,...a},o)=>(0,Et.jsx)($.Item,{ref:o,className:n("relative flex cursor-default select-none items-center gap-2 rounded-Pl px-2 py-1.5 text-Pl 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}));di.displayName=$.Item.displayName;var ci=va.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Et.jsxs)($.CheckboxItem,{ref:r,className:n("relative flex cursor-default select-none items-center rounded-Pl py-1.5 pl-8 pr-2 text-Pl outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[(0,Et.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Et.jsx)($.ItemIndicator,{children:(0,Et.jsx)(_r.CheckIcon,{className:"h-4 w-4"})})}),t]}));ci.displayName=$.CheckboxItem.displayName;var mi=va.forwardRef(({className:e,children:t,...a},o)=>(0,Et.jsxs)($.RadioItem,{ref:o,className:n("relative flex cursor-default select-none items-center rounded-Pl py-1.5 pl-8 pr-2 text-Pl outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,Et.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Et.jsx)($.ItemIndicator,{children:(0,Et.jsx)(_r.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));mi.displayName=$.RadioItem.displayName;var pi=va.forwardRef(({className:e,inset:t,...a},o)=>(0,Et.jsx)($.Label,{ref:o,className:n("px-2 py-1.5 text-Pl font-semibold",t&&"pl-8",e),...a}));pi.displayName=$.Label.displayName;var ui=va.forwardRef(({className:e,...t},a)=>(0,Et.jsx)($.Separator,{ref:a,className:n("-mx-1 my-1 h-px bg-muted",e),...t}));ui.displayName=$.Separator.displayName;var fi=({className:e,...t})=>(0,Et.jsx)("span",{className:n("ml-auto text-Et tracking-widest opacity-60",e),...t});fi.displayName="DropdownMenuShortcut";var Ll=v(require("react"));var gt=Ll.forwardRef(({className:e,type:t,...a},o)=>(0,Et.jsx)("input",{type:t,className:n("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-Pl shadow-Pl transition-colors file:border-0 file:bg-transparent file:text-Pl file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));gt.displayName="Input";var El=v(require("react")),gi=v(require("@radix-ui/react-separator"));var dr=El.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,Et.jsx)(gi.Root,{ref:r,decorative:a,orientation:t,className:n("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));dr.displayName=gi.Root.displayName;var cr=v(require("react")),Te=v(require("@radix-ui/react-dialog")),Fl=require("class-variance-authority");var Gr=Te.Root,Ol=Te.Trigger,jl=Te.Close,bi=Te.Portal,$r=cr.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(Te.Overlay,{className:n("fixed inset-0 Et-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));$r.displayName=Te.Overlay.displayName;var Np=(0,Fl.cva)("fixed Et-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-Et-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left Pl:max-w-Pl",right:"inset-Et-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right Pl:max-w-Pl"}},defaultVariants:{side:"right"}}),mr=cr.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,Et.jsxs)(bi,{children:[(0,Et.jsx)($r,{}),(0,Et.jsxs)(Te.Content,{ref:r,className:n(Np({side:e}),t),...o,children:[(0,Et.jsxs)(Te.Close,{className:"absolute right-4 top-4 rounded-Pl opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,Et.jsx)(_r.Cross2Icon,{className:"h-4 w-4"}),(0,Et.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));mr.displayName=Te.Content.displayName;var vi=({className:e,...t})=>(0,Et.jsx)("div",{className:n("flex flex-col space-Et-2 text-center Pl:text-left",e),...t});vi.displayName="SheetHeader";var hi=({className:e,...t})=>(0,Et.jsx)("div",{className:n("flex flex-col-reverse Pl:flex-row Pl:justify-end Pl:space-x-2",e),...t});hi.displayName="SheetFooter";var yi=cr.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(Te.Title,{ref:a,className:n("text-lg font-semibold text-foreground",e),...t}));yi.displayName=Te.Title.displayName;var xi=cr.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(Te.Description,{ref:a,className:n("text-Pl text-muted-foreground",e),...t}));xi.displayName=Te.Description.displayName;var U=v(require("react")),Yl=require("lucide-react");var Ur=(e=768)=>{let[t,a]=(0,Pl.useState)(!1);return(0,Pl.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var $l=v(require("react")),Oa=(0,Fl.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-Pl 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",Pl:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),B=$l.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,Et.jsx)(e?Sl.Slot:"button",{className:n(Oa({className:t,size:a,variant:o})),ref:s,...r}));B.displayName="Button";function De({className:e,...t}){return(0,Et.jsx)("div",{className:n("animate-pulse rounded-md bg-primary/10",e),...t})}var Vl=v(require("react")),Xt=v(require("@radix-ui/react-tooltip"));var Vr=Xt.Provider,Xr=Xt.Root,Yr=Xt.Trigger,pr=Vl.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Et.jsx)(Xt.Portal,{children:(0,Et.jsx)(Xt.Content,{ref:o,sideOffset:t,className:n("Et-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-Et 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})}));pr.displayName=Xt.Content.displayName;var Cp="sidebar:state",Pp=60*60*24*7,kp="16rem",Sp="18rem",Rp="3rem",Tp="b",ql=U.createContext(null);function Oo(){let e=U.useContext(ql);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var Ni=U.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...l},i)=>{let m=Ur(),[c,d]=U.useState(!1),[p,u]=U.useState(e),g=t??p,b=U.useCallback(S=>{if(a)return a?.(typeof S=="function"?S(g):S);u(S),document.cookie=`${Cp}=${g}; path=/; max-age=${Pp}`},[a,g]),f=U.useCallback(()=>m?d(S=>!S):b(S=>!S),[m,b,d]);U.useEffect(()=>{let S=x=>{x.key===Tp&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),f())};return window.addEventListener("keydown",S),()=>window.removeEventListener("keydown",S)},[f]);let h=g?"expanded":"collapsed",L=U.useMemo(()=>({state:h,open:g,setOpen:b,isMobile:m,openMobile:c,setOpenMobile:d,toggleSidebar:f}),[h,g,b,m,c,d,f]);return(0,Et.jsx)(ql.Provider,{value:L,children:(0,Et.jsx)(Vr,{delayDuration:0,children:(0,Et.jsx)("div",{style:{"--sidebar-width":kp,"--sidebar-width-icon":Rp,...r},className:n("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:i,...l,children:s})})})});Ni.displayName="SidebarProvider";var no=U.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},l)=>{let{isMobile:i,state:m,openMobile:c,setOpenMobile:d}=Oo();return a==="none"?(0,Et.jsx)("div",{className:n("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:l,...s,children:r}):i?(0,Et.jsx)(Gr,{open:c,onOpenChange:d,...s,children:(0,Et.jsx)(mr,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Sp},side:e,children:(0,Et.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,Et.jsxs)("div",{ref:l,className:"group peer hidden md:block text-sidebar-foreground","data-state":m,"data-collapsible":m==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,Et.jsx)("div",{className:n("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)Et+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,Et.jsx)("div",{className:n("duration-200 fixed top-14 bottom-0 Et-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)Et+_theme(spacing.4)Et+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...s,children:(0,Et.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:r})})]})});no.displayName="Sidebar";var Ci=U.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=Oo();return(0,Et.jsxs)(B,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:n("h-7 w-7",e),onClick:s=>{t?.(s),r()},...a,children:[(0,Et.jsx)(Yl.PanelLeft,{}),(0,Et.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Ci.displayName="SidebarTrigger";var Pi=U.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=Oo();return(0,Et.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:n("absolute inset-Et-0 Et-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-Et-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 Pl:flex","[[data-side=left]Et&]:cursor-w-resize [[data-side=right]Et&]:cursor-e-resize","[[data-side=left][data-state=collapsed]Et&]:cursor-e-resize [[data-side=right][data-state=collapsed]Et&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]Et&]:-right-2","[[data-side=right][data-collapsible=offcanvas]Et&]:-left-2",e),...t})});Pi.displayName="SidebarRail";var ki=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("main",{ref:a,className:n("flex flex-1 flex-col bg-background overflow-Et-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));ki.displayName="SidebarInset";var Si=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(gt,{ref:a,"data-sidebar":"input",className:n("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));Si.displayName="SidebarInput";var lo=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,"data-sidebar":"header",className:n("flex flex-col gap-2 p-2",e),...t}));lo.displayName="SidebarHeader";var co=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,"data-sidebar":"footer",className:n("flex flex-col gap-2 p-2",e),...t}));co.displayName="SidebarFooter";var ur=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(dr,{ref:a,"data-sidebar":"separator",className:n("mx-2 w-auto bg-sidebar-border",e),...t}));ur.displayName="SidebarSeparator";var ja=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,"data-sidebar":"content",className:n("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));ja.displayName="SidebarContent";var zt=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,"data-sidebar":"group",className:n("relative flex w-full min-w-0 flex-col p-2",e),...t}));zt.displayName="SidebarGroup";var ha=U.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Et.jsx)(t?Sl.Slot:"div",{ref:o,"data-sidebar":"group-label",className:n("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-Et font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));ha.displayName="SidebarGroupLabel";var Ri=U.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Et.jsx)(t?Sl.Slot:"button",{ref:o,"data-sidebar":"group-action",className:n("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...a}));Ri.displayName="SidebarGroupAction";var Yt=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,"data-sidebar":"group-content",className:n("w-full text-Pl",e),...t}));Yt.displayName="SidebarGroupContent";var bt=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("ul",{ref:a,"data-sidebar":"menu",className:n("flex w-full min-w-0 flex-col gap-1",e),...t}));bt.displayName="SidebarMenu";var Ze=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:n("group/menu-item relative",e),...t}));Ze.displayName="SidebarMenuItem";var Dp=(0,Fl.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-Pl 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-Pl",Pl:"h-7 text-Et",lg:"h-12 text-Pl group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Ht=U.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...l},i)=>{let m=e?Sl.Slot:"button",{isMobile:c,state:d}=Oo(),p=(0,Et.jsx)(m,{ref:i,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:n(Dp({variant:a,size:o}),s),...l});return r?(typeof r=="string"&&(r={children:r}),(0,Et.jsxs)(Xr,{children:[(0,Et.jsx)(Yr,{asChild:!0,children:p}),(0,Et.jsx)(pr,{side:"right",align:"center",hidden:d!=="collapsed"||c,...r})]})):p});Ht.displayName="SidebarMenuButton";var fr=U.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,Et.jsx)(t?Sl.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:n("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=Pl]/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}));fr.displayName="SidebarMenuAction";var Ti=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:n("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-Et 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=Pl]/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}));Ti.displayName="SidebarMenuBadge";var Di=U.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=U.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,Et.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:n("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,Et.jsx)(De,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,Et.jsx)(De,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});Di.displayName="SidebarMenuSkeleton";var _a=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:n("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));_a.displayName="SidebarMenuSub";var Ga=U.forwardRef(({...e},t)=>(0,Et.jsx)("li",{ref:t,...e}));Ga.displayName="SidebarMenuSubItem";var $a=U.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...r},s)=>(0,Et.jsx)(e?Sl.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:n("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="Pl"&&"text-Et",t==="md"&&"text-Pl","group-data-[collapsible=icon]:hidden",o),...r}));$a.displayName="SidebarMenuSubButton";var Qr=v(require("react")),Ap=1,Mp=1e6;var Ai=0;function Ip(){return Ai=(Ai+1)%Number.MAX_SAFE_INTEGER,Ai.toString()}var Mi=new Map,Kl=e=>{if(Mi.has(e))return;let t=setTimeout(()=>{Mi.delete(e),gr({type:"REMOVE_TOAST",toastId:e})},Mp);Mi.set(e,t)},Ql=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Ap)};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?Kl(a):e.toasts.forEach(o=>{Kl(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)}}},qr=[],Kr={toasts:[]};function gr(e){Kr=Ql(Kr,e),qr.forEach(t=>{t(Kr)})}function Jl({...e}){let t=Ip(),a=r=>gr({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>gr({type:"DISMISS_TOAST",toastId:t});return gr({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function Jr(){let[e,t]=Qr.useState(Kr);return Qr.useEffect(()=>(qr.push(t),()=>{let a=qr.indexOf(t);a>-1&&qr.splice(a,1)}),[e]),{...e,toast:Jl,dismiss:a=>gr({type:"DISMISS_TOAST",toastId:a})}}var mo=v(require("react")),ze=v(require("@radix-ui/react-toast"));var Zr=ze.Provider,br=mo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(ze.Viewport,{ref:a,className:n("fixed top-0 Et-[100] flex max-h-screen w-full flex-col-reverse p-4 Pl:bottom-0 Pl:right-0 Pl:top-auto Pl:flex-col md:max-w-[420px]",e),...t}));br.displayName=ze.Viewport.displayName;var Lp=(0,Fl.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:Pl: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"}}),vr=mo.forwardRef(({className:e,variant:t,...a},o)=>(0,Et.jsx)(ze.Root,{ref:o,className:n(Lp({variant:t}),e),...a}));vr.displayName=ze.Root.displayName;var Ii=mo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(ze.Action,{ref:a,className:n("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-Pl 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}));Ii.displayName=ze.Action.displayName;var hr=mo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(ze.Close,{ref:a,className:n("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:(0,Et.jsx)(Yl.X,{className:"h-4 w-4"})}));hr.displayName=ze.Close.displayName;var yr=mo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(ze.Title,{ref:a,className:n("text-Pl font-semibold [&+div]:text-Et",e),...t}));yr.displayName=ze.Title.displayName;var xr=mo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(ze.Description,{ref:a,className:n("text-Pl opacity-90",e),...t}));xr.displayName=ze.Description.displayName;function td(){let{toasts:e}=Jr();return(0,Et.jsxs)(Zr,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,Et.jsxs)(vr,{...s,children:[(0,Et.jsxs)("div",{className:"grid gap-1",children:[a&&(0,Et.jsx)(yr,{children:a}),o&&(0,Et.jsx)(xr,{children:o})]}),r,(0,Et.jsx)(hr,{})]},t)}),(0,Et.jsx)(br,{})]})}var ad=v(require("react")),Li=v(require("@radix-ui/react-toggle"));var wr=(0,Fl.cva)("inline-flex items-center justify-center gap-2 rounded-md text-Pl 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-Pl hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",Pl:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),Bi=ad.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,Et.jsx)(Li.Root,{ref:r,className:n(wr({variant:t,size:a,className:e})),...o}));Bi.displayName=Li.Root.displayName;var po=v(require("react")),jo=v(require("@radix-ui/react-toggle-group"));var sd=po.createContext({size:"default",variant:"default"}),Ei=po.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,Et.jsx)(jo.Root,{ref:s,className:n("flex items-center justify-center gap-1",e),...r,children:(0,Et.jsx)(sd.Provider,{value:{variant:t,size:a},children:o})}));Ei.displayName=jo.Root.displayName;var zi=po.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let l=po.useContext(sd);return(0,Et.jsx)(jo.Item,{ref:s,className:n(wr({variant:l.variant||a,size:l.size||o}),e),...r,children:t})});zi.displayName=jo.Item.displayName;var Hi=v(require("react")),Ft=v(require("@radix-ui/react-scroll-area"));var la=Hi.forwardRef(({className:e,children:t,...a},o)=>(0,Et.jsxs)(Ft.Root,{ref:o,className:n("relative overflow-hidden",e),...a,children:[(0,Et.jsx)(Ft.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Et.jsx)(ts,{}),(0,Et.jsx)(Ft.Corner,{})]}));la.displayName=Ft.Root.displayName;var ts=Hi.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,Et.jsx)(Ft.ScrollAreaScrollbar,{ref:o,orientation:t,className:n("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,Et.jsx)(Ft.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));ts.displayName=Ft.ScrollAreaScrollbar.displayName;var id=v(require("react")),qt=v(require("@radix-ui/react-popover"));var Nr=qt.Root,Cr=qt.Trigger,nd=qt.Anchor,_o=id.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Et.jsx)(qt.Portal,{children:(0,Et.jsx)(qt.Content,{ref:r,align:t,sideOffset:a,className:n("Et-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));_o.displayName=qt.Content.displayName;var ld=v(require("react")),Oi=v(require("@radix-ui/react-label"));var Bp=(0,Fl.cva)("text-Pl font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),be=ld.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(Oi.Root,{ref:a,className:n(Bp(),e),...t}));be.displayName=Oi.Root.displayName;var md=v(require("react")),uo=v(require("@radix-ui/react-hover-card"));var pd=uo.Root,ud=uo.Trigger,ji=md.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Et.jsx)(uo.Content,{ref:r,align:t,sideOffset:a,className:n("Et-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o}));ji.displayName=uo.Content.displayName;var Pr=v(require("react")),Ae=v(require("@radix-ui/react-dialog"));var Ot=Ae.Root,as=Ae.Trigger,_i=Ae.Portal,os=Ae.Close,rs=Pr.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(Ae.Overlay,{ref:a,className:n("fixed inset-0 Et-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));rs.displayName=Ae.Overlay.displayName;var Dt=Pr.forwardRef(({className:e,children:t,...a},o)=>(0,Et.jsxs)(_i,{children:[(0,Et.jsx)(rs,{}),(0,Et.jsxs)(Ae.Content,{ref:o,className:n("fixed left-[50%] top-[50%] Et-50 grid w-full max-w-lg translate-x-[-50%] translate-Et-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-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%] Pl:rounded-lg",e),...a,children:[t,(0,Et.jsxs)(Ae.Close,{className:"absolute right-4 top-4 rounded-Pl opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Et.jsx)(Yl.X,{className:"h-4 w-4"}),(0,Et.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Dt.displayName=Ae.Content.displayName;var Kt=({className:e,...t})=>(0,Et.jsx)("div",{className:n("flex flex-col space-Et-1.5 text-center Pl:text-left",e),...t});Kt.displayName="DialogHeader";var Gi=({className:e,...t})=>(0,Et.jsx)("div",{className:n("flex flex-col-reverse Pl:flex-row Pl:justify-end Pl:space-x-2",e),...t});Gi.displayName="DialogFooter";var Qt=Pr.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(Ae.Title,{ref:a,className:n("text-lg font-semibold leading-none tracking-tight",e),...t}));Qt.displayName=Ae.Title.displayName;var $i=Pr.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(Ae.Description,{ref:a,className:n("text-Pl text-muted-foreground",e),...t}));$i.displayName=Ae.Description.displayName;var Va=v(require("react")),st=require("cmdk");var ss=Va.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(st.Command,{ref:a,className:n("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));ss.displayName=st.Command.displayName;var vd=({children:e,...t})=>(0,Et.jsx)(Ot,{...t,children:(0,Et.jsx)(Dt,{className:"overflow-hidden p-0",children:(0,Et.jsx)(ss,{className:"[&Et[cmdk-group-heading]]:px-2 [&Et[cmdk-group-heading]]:font-medium [&Et[cmdk-group-heading]]:text-muted-foreground [&Et[cmdk-group]:not([hidden])Et~[cmdk-group]]:pt-0 [&Et[cmdk-group]]:px-2 [&Et[cmdk-input-wrapper]_svg]:h-5 [&Et[cmdk-input-wrapper]_svg]:w-5 [&Et[cmdk-input]]:h-12 [&Et[cmdk-item]]:px-2 [&Et[cmdk-item]]:py-3 [&Et[cmdk-item]_svg]:h-5 [&Et[cmdk-item]_svg]:w-5",children:e})})}),Wi=Va.forwardRef(({className:e,...t},a)=>(0,Et.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,Et.jsx)(Yl.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,Et.jsx)(st.Command.Input,{ref:a,className:n("flex h-10 w-full rounded-md bg-transparent py-3 text-Pl outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Wi.displayName=st.Command.Input.displayName;var Ui=Va.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(st.Command.List,{ref:a,className:n("max-h-[300px] overflow-Et-auto overflow-x-hidden",e),...t}));Ui.displayName=st.Command.List.displayName;var Vi=Va.forwardRef((e,t)=>(0,Et.jsx)(st.Command.Empty,{ref:t,className:"py-6 text-center text-Pl",...e}));Vi.displayName=st.Command.Empty.displayName;var Xi=Va.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(st.Command.Group,{ref:a,className:n("overflow-hidden p-1 text-foreground [&Et[cmdk-group-heading]]:px-2 [&Et[cmdk-group-heading]]:py-1.5 [&Et[cmdk-group-heading]]:text-Et [&Et[cmdk-group-heading]]:font-medium [&Et[cmdk-group-heading]]:text-muted-foreground",e),...t}));Xi.displayName=st.Command.Group.displayName;var Yi=Va.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(st.Command.Separator,{ref:a,className:n("-mx-1 h-px bg-border",e),...t}));Yi.displayName=st.Command.Separator.displayName;var qi=Va.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(st.Command.Item,{ref:a,className:n("relative flex cursor-default gap-2 select-none items-center rounded-Pl px-2 py-1.5 text-Pl 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}));qi.displayName=st.Command.Item.displayName;var Ki=({className:e,...t})=>(0,Et.jsx)("span",{className:n("ml-auto text-Et tracking-widest text-muted-foreground",e),...t});Ki.displayName="CommandShortcut";var is=v(require("react"));var Ep=(0,Fl.cva)("relative w-full rounded-lg border px-4 py-3 text-Pl [&>svg+div]:translate-Et-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Qi=is.forwardRef(({className:e,variant:t,...a},o)=>(0,Et.jsx)("div",{ref:o,role:"alert",className:n(Ep({variant:t}),e),...a}));Qi.displayName="Alert";var Ji=is.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("h5",{ref:a,className:n("mb-1 font-medium leading-none tracking-tight",e),...t}));Ji.displayName="AlertTitle";var Zi=is.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,className:n("text-Pl [&_p]:leading-relaxed",e),...t}));Zi.displayName="AlertDescription";var ls=v(require("react")),xa=v(require("@radix-ui/react-avatar"));var vt=ls.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(xa.Root,{ref:a,className:n("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));vt.displayName=xa.Root.displayName;var ht=ls.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(xa.Image,{ref:a,className:n("aspect-square h-full w-full",e),...t}));ht.displayName=xa.Image.displayName;var yt=ls.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(xa.Fallback,{ref:a,className:n("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));yt.displayName=xa.Fallback.displayName;var en=(0,Fl.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-Et font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function xt({className:e,variant:t,...a}){return(0,Et.jsx)("div",{className:n(en({variant:t}),e),...a})}var kr=v(require("@radix-ui/react-checkbox")),Nd=v(require("react")),Jt=Nd.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(kr.Root,{className:n("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,Et.jsx)(kr.Indicator,{className:n("flex items-center justify-center text-current"),children:(0,Et.jsx)(Yl.Check,{className:"h-4 w-4"})})}));Jt.displayName=kr.Root.displayName;var X=v(require("@radix-ui/react-select")),Xa=v(require("react")),go=X.Root,zp=X.Group,bo=X.Value,Ya=Xa.forwardRef(({children:e,className:t,...a},o)=>(0,Et.jsxs)(X.Trigger,{className:n("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,Et.jsx)(X.Icon,{asChild:!0,children:(0,Et.jsx)(Yl.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Ya.displayName=X.Trigger.displayName;var tn=Xa.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(X.ScrollUpButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Et.jsx)(Yl.ChevronUp,{className:"h-4 w-4"})}));tn.displayName=X.ScrollUpButton.displayName;var an=Xa.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(X.ScrollDownButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Et.jsx)(Yl.ChevronDown,{className:"h-4 w-4"})}));an.displayName=X.ScrollDownButton.displayName;var qa=Xa.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,Et.jsx)(X.Portal,{children:(0,Et.jsxs)(X.Content,{className:n("relative Et-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-Et-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-Et-1",t),position:a,ref:r,...o,children:[(0,Et.jsx)(tn,{}),(0,Et.jsx)(X.Viewport,{className:n("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Et.jsx)(an,{})]})}));qa.displayName=X.Content.displayName;var Cd=Xa.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(X.Label,{className:n("py-1.5 pl-8 pr-2 text-Pl font-semibold",e),ref:a,...t}));Cd.displayName=X.Label.displayName;var Ka=Xa.forwardRef(({children:e,className:t,...a},o)=>(0,Et.jsxs)(X.Item,{className:n("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-Pl outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[(0,Et.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Et.jsx)(X.ItemIndicator,{children:(0,Et.jsx)(Yl.Check,{className:"h-4 w-4"})})}),(0,Et.jsx)(X.ItemText,{children:e})]}));Ka.displayName=X.Item.displayName;var Pd=Xa.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(X.Separator,{className:n("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Pd.displayName=X.Separator.displayName;var kd=v(require("react")),Qa=kd.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("textarea",{className:n("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-Pl 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}));Qa.displayName="Textarea";var Rd=require("react-day-picker");function Sr({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,Et.jsx)(Rd.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:n("p-3",e),classNames:{months:"flex flex-col Pl:flex-row space-Et-4 Pl:space-x-4 Pl:space-Et-0",month:"space-Et-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-Pl font-medium",nav:"space-x-1 flex items-center",nav_button:n(Oa({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-Et-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:n("relative p-0 text-center text-Pl focus-within:relative focus-within:Et-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:n(Oa({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...o})}Sr.displayName="Calendar";var on=({className:e,content:t,style:a})=>(0,Et.jsx)("div",{className:n("mx-auto my-8 w-full",e),children:(0,Et.jsx)("div",{className:n("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:(0,Et.jsx)(q,{content:t,enableGutter:!1,enableProse:!1})})});var rn=v(require("next/link")),Zt=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:l,reference:i,size:m,url:c}=e,d=t==="reference"&&typeof i?.value=="object"&&i.value.slug?`${i?.relationTo!=="pages"?`/${i?.relationTo}`:""}/${i.value.slug}`:c;if(!d)return null;let p=a==="link"?"clear":m,u=l?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,Et.jsxs)(rn.default,{className:n(r),href:d||c||"",...u,children:[s&&s,o&&o]}):(0,Et.jsx)(B,{asChild:!0,className:r,size:p,variant:a,children:(0,Et.jsxs)(rn.default,{className:n(r),href:d||c||"",...u,children:[s&&s,o&&o]})})};function ps({className:e}){return n("flex items-center min-h-[3.5rem] md:min-h-[3.75rem] w-full rounded-5 px-4 md:px-5 py-2"," bg-transparent text-accent-800 placeholder:text-accent-800 dark:text-body dark:placeholder:text-body"," border border-solid border-accent-900 border-opacity-20 dark:border-opacity-20 dark:border-accent-200"," focus:border-accent-900 focus:ring-0 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0","transition-all duration-300",e)}function Hp({className:e,...t}){return(0,Et.jsx)("input",{...t,className:ps({className:e})})}function us({icon:e,...t}){return(0,Et.jsxs)("div",{className:"relative w-full",children:[(0,Et.jsx)(Hp,{...t}),e&&(0,Et.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-Et-1/2 text-accent",children:e})]})}function Fp({className:e,...t}){return(0,$o.jsx)("textarea",{...t,className:n(ps({}),"resize-none md:min-h-[130px]",e)})}function Dd({icon:e,...t}){return(0,$o.jsxs)("div",{className:"relative w-full",children:[(0,$o.jsx)(Fp,{...t}),e&&(0,$o.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var Md=require("formik"),Id=require("react-icons/fa6"),vo=v(require("yup"));async function Ad(e){let{name:t,email:a,subject:o,message:r}=e,s=process.env.TEAMS_WEBHOOK_URL;if(!s)throw new Error("TEAMS_WEBHOOK_URL is not defined");let l={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.Et/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Us Form",wrap:!0,style:"heading",weight:"Bolder"},{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"TextBlock",text:"Name",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Email",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Subject",wrap:!0,weight:"Bolder"}]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:`${t}`,wrap:!0},{type:"TextBlock",text:`${a}`,wrap:!0},{type:"TextBlock",text:`${o}`,wrap:!0}]}]},{type:"TextBlock",text:`${r}`,wrap:!0}]}}]};try{let i=await fetch(s,{method:"POST",mode:"no-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!i.ok)throw console.error(i),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(i){return console.error(i),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var sn=require("sonner"),ea={tooShort:"Must be Et least ${min} characters",tooLong:"Must be Et most ${max} characters",required:"This field is required",email:"Invalid email format"},Op=vo.object().shape({name:vo.string().min(2,ea.tooShort).max(50,ea.tooLong).required(ea.required),email:vo.string().email(ea.email).required(ea.required),subject:vo.string().min(2,ea.tooShort).max(50,ea.tooLong).required(ea.required),message:vo.string().min(2,ea.tooShort).max(300,ea.tooLong).required(ea.required)}),fs=n("!pr-[44px] text-foreground"),gs=n("!border-red-600 border"),bs=n("sr-only");function vs(){return(0,Et.jsx)(Md.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:Op,onSubmit:async(e,{resetForm:t})=>{let a=await Ad(e);a.data===null?sn.toast.error(a.message):(sn.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:l})=>(0,Et.jsxs)("form",{onSubmit:l,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,Et.jsxs)("div",{children:[(0,Et.jsx)(us,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,Et.jsx)(Id.FaUser,{className:"text-primary"}),className:n(fs,e.name&&t.name&&gs)}),e.name&&t.name&&(0,Et.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:bs,children:e.name})]}),(0,Et.jsxs)("div",{children:[(0,Et.jsx)(us,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,Et.jsx)(jp,{}),className:n(fs,e.email&&t.email&&gs)}),e.email&&t.email&&(0,Et.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:bs,children:e.email})]}),(0,Et.jsxs)("div",{className:"lg:col-span-2",children:[(0,Et.jsx)(us,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:n(fs,e.subject&&t.subject&&gs)}),e.subject&&t.subject&&(0,Et.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:bs,children:e.subject})]}),(0,Et.jsxs)("div",{className:"lg:col-span-2",children:[(0,Et.jsx)(Dd,{placeholder:"Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,Et.jsx)(_p,{}),className:n(fs,e.message&&t.message&&gs)}),e.message&&t.message&&(0,Et.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:bs,children:e.message})]}),(0,Et.jsx)("div",{className:"lg:col-span-2 light grid justify-items-center",children:(0,Et.jsx)(B,{type:"submit",className:"outline px-6 rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:s,children:"Send"})})]})})}function jp(){return(0,Et.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,Et.jsx)("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function _p(){return(0,Et.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,Et.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}var Gp=({links:e,richText:t})=>(0,Et.jsx)("div",{className:"container",children:(0,Et.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,Et.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,Et.jsx)(q,{className:"mb-0",content:t,enableGutter:!1})}),(0,Et.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,Et.jsx)(Zt,{size:"lg",...a},o))})]})}),ho=({links:e,richText:t})=>{let[a,o]=(0,Pl.useState)(!1),r="accent",s=()=>o(!0),l=()=>o(!1),i=m=>{m.target===m.currentTarget&&l()};return(0,Et.jsxs)("div",{className:n("relative isolate overflow-hidden",r==="accent"?"bg-accent":"bg-black"),children:[(0,Et.jsx)("div",{className:"px-6 py-24 Pl:px-6 Pl:py-32 lg:px-8",children:(0,Et.jsxs)("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&(0,Et.jsx)(q,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),(0,Et.jsx)("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:(0,Et.jsx)("div",{className:"flex flex-col gap-8 text-white",children:(e||[]).map(({link:m},c)=>m?.url==="/contact"?(0,Et.jsx)("div",{onClick:s,className:n("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),children:m.label},c):(0,Et.jsx)(Zt,{size:"lg",className:n("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),...m},c))})})]})}),a&&(0,Et.jsx)("div",{className:"absolute inset-0 Et-50 flex items-center justify-center bg-black bg-opacity-50",onClick:i,children:(0,Et.jsxs)("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[(0,Et.jsx)("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:l,children:"\u2715"}),(0,Et.jsx)(vs,{})," "]})})]})};var hs=require("prism-react-renderer");function nn({code:e}){let[t,a]=(0,Pl.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,Et.jsx)("div",{className:"flex justify-end align-middle",children:(0,Et.jsxs)(B,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,Et.jsx)("p",{children:t}),(0,Et.jsx)("div",{className:"w-6 h-6",children:(0,Et.jsx)(Yl.ClipboardCopy,{})})]})})}var zd=({code:e,language:t=""})=>e?(0,Et.jsx)(hs.Highlight,{code:e,language:t,theme:hs.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,Et.jsxs)("pre",{className:"bg-black p-4 border text-Et border-border rounded overflow-x-auto",children:[r.map((s,l)=>(0,Et.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,Et.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:l+1}),(0,Et.jsx)("span",{className:"table-cell pl-4",children:s.map((i,m)=>(0,Et.jsx)("span",{...o({token:i})},m))})]},l)),(0,Et.jsx)(nn,{code:e})]})}):null;var dn=({className:e,code:t,language:a})=>(0,Et.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,Et.jsx)(zd,{code:t,language:a})});var Fd=v(require("next/image")),$p={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,Pl:640},Hd="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=",Od=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:l,src:i,loading:m}=e,c,d,p=t,u=i||"";if(!u&&s&&typeof s=="object"){let{alt:f,filename:h,height:L,url:S,width:x}=s;if(L&&L>500){let P=500/L;c=x*P,d=L*P}else c=x,d=L;p=f||"",u=S||Hd}let g=m||"lazy",b=l||Object.entries($p).map(([,f])=>`(max-width: ${f}px) ${f*2}w`).join(", ");return(0,Et.jsx)("picture",{children:(0,Et.jsx)(Fd.default,{alt:p||"",className:n(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:Hd,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:b,src:u,width:a?void 0:c})})};var jd=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,Pl.useRef)(null);if((0,Pl.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,Et.jsx)("video",{autoPlay:!0,className:n(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,Et.jsx)("source",{src:a.url||""})})}return null};var ta=e=>{let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&o?.mimeType?.includes("video");return(0,Et.jsx)(a||Pl.Fragment,{...a!==null?{className:t}:{},children:r?(0,Et.jsx)(jd,{...e}):(0,Et.jsx)(Od,{...e})})};var Na=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Et.jsx)("div",{className:n("h-full ",{container:a},t),children:(0,Et.jsx)(ta,{imgClassName:n("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var fn=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Et.jsx)("div",{className:n("",{container:a},t),children:(0,Et.jsx)(ta,{imgClassName:n("rounded-[0.8rem]",o),resource:r,src:s})})};var xo=({title:e,description:t,features:a,id:o,nested:r=!1})=>(0,Et.jsxs)("section",{className:n(r?"w-full":"container",""),children:[(0,Et.jsxs)("div",{className:"prose prose:max-w-none",children:[e&&(0,Et.jsx)("h2",{className:"mb-6 mt-0 text-primary",id:o||"",children:e}),t&&typeof t=="string"&&(0,Et.jsx)("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&(0,Et.jsx)("div",{className:"mb-5 text-foreground",children:(0,Et.jsx)(q,{content:t,enableGutter:!1})})]}),(0,Et.jsx)("div",{className:`grid gap-6 mt-6 md:grid-cols-${a?a.length>2?2:a.length:1} lg:grid-cols-${a?a.length>3?3:a.length:1}`,children:a&&a.map((s,l)=>{let i=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,icon:s.icon.icon}};return(0,Et.jsx)(Wo,{title:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,settings:{...s.settings,width:"auto",order:l},link:s.link?{...s.link,label:"Learn more"}:void 0,icon:i()??{type:"none",icon:null}},l)})})]});var ws=v(require("react"));function Tr({nodes:e}){return(0,Et.jsx)(ws.Fragment,{children:e?.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,Et.jsx)(ws.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,Et.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,Et.jsx)("em",{children:s},a)),t.format&4&&(s=(0,Et.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,Et.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,Et.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,Et.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,Et.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,Et.jsx)("table",{children:(0,Et.jsx)("tbody",{children:t.children.map((s,l)=>(0,Et.jsx)("It",{children:s.children.map((i,m)=>(0,Et.jsx)("td",{children:Tr({nodes:i.children})},m))},l))})},a);let o=s=>{if(s.children==null)return null;if(s?.type==="list"&&s?.listType==="check")for(let l of s.children)"checked"in l&&(l?.checked||(l.checked=!1));return Tr({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,l=s?.blockType;if(!s||!l)return null;switch(l){case"cta":return(0,Et.jsx)(ho,{...s},a);case"mediaBlock":return(0,Et.jsx)(Na,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return(0,Et.jsx)(fn,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,Et.jsx)(on,{className:"col-start-2 mb-4",...s},a);case"code":return(0,Et.jsx)(dn,{className:"col-start-2",...s},a);case"features":return(0,Et.jsx)(xo,{...s,nested:!0},a);case"reusableContentBlock":Tr({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,Et.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,Et.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t?.tag;return(0,Et.jsx)(s,{className:"col-start-2",id:t?.id||"",children:r},a)}case"list":{let s=t?.tag;return(0,Et.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return t?.checked!=null?(0,Et.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:r},a):(0,Et.jsx)("li",{value:t?.value,children:r},a);case"quote":return(0,Et.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,Et.jsx)(Zt,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}case"autolink":{let s=t.fields;return(0,Et.jsx)(Zt,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var q=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>t?(0,Et.jsx)("div",{className:n({"container ":a,"max-w-none":!a,"mx-auto prose":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&Tr({nodes:t?.root?.children})}):null;var et=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,l=o??"",i=r+s+" fa-"+a+" "+l;return(0,$d.jsx)("i",{className:i})};var Ud=v(require("next/image"));function Wd(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Wo({image:e,icon:t,title:a,subtitle:o,content:r,statistic:s,settings:l,link:i,className:m}){let c={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:"bg-background"},d={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,Et.jsxs)("a",{href:i?.url||"#",className:n("min-w-56 max-w-xl h-full flex flex-col group bg-background",e?"p-0":"p-6 md:p-8",l&&!e&&c[l?.card==="default"?"solid":l?.card],e&&"bg-foreground",l&&l?.card==="outline"?"text-gray-900":"text-white",d[l?.width??"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",l&&`intersect:animate-delay-${l.order||1}00`,m),children:[e&&(0,Et.jsx)("div",{className:"relative aspect-[16/9] w-full",children:(0,Et.jsx)(Ud.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,Et.jsxs)("div",{className:n(e?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[(0,Et.jsxs)("div",{className:"flex flex-col flex-grow",children:[o&&(0,Et.jsx)("div",{className:"text-primary uppercase text-Pl font-light mb-4",children:o}),(0,Et.jsx)("div",{className:"flex items-start gap-4 mb-4",children:(0,Et.jsx)(Wp,{icon:{type:t?.type||"fa-light",iconName:t?.icon||"no-icon-error"},heading:a??"",variant:l?.card==="default"?"solid":l?.card??"solid",iconSize:l?.iconSize||"large"})}),r&&typeof r=="object"&&(0,Et.jsx)(q,{enableGutter:!1,content:r,enableProse:!1,className:n("prose-Pl prose-p:text-lg prose-headings:text-xl","space-Et-3",l?.card==="outline"||l?.card==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",e&&"prose-headings:text-background prose-p:text-background")}),r&&typeof r=="string"&&(0,Et.jsx)("div",{className:n("prose-Pl prose-p:text-lg prose-headings:text-xl","space-Et-3",l?.card==="outline"||l?.card==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:r})]}),i&&i.url&&(0,Et.jsx)("div",{className:"mt-6",children:(0,Et.jsx)("span",{className:"text-accent font-semibold uppercase text-Pl block hover:text-accent/80 transition-colors",children:i?.label||"Find out more"})})]})]})}var Wp=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="small"&&e.iconName!="no-icon-error"?(0,Et.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,Et.jsx)("div",{className:n(a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),Wd(e)&&(0,Et.jsx)("div",{className:n("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"-mr-2 ml-1 mt-1":""),children:(0,Et.jsx)(et,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="no-icon-error"?(0,Et.jsxs)("div",{className:"flex flex-col gap-4",children:[Wd(e)&&(0,Et.jsx)("div",{className:n("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,Et.jsx)(et,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Et.jsx)("h3",{className:n("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):(0,Et.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Et.jsx)("div",{className:n("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Vd=v(require("next/image")),Xd=v(require("next/link"));var wo=v(require("react"));var Ce=wo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,className:n("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Ce.displayName="Card";var Ve=wo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,className:n("flex flex-col space-Et-1.5 p-6",e),...t}));Ve.displayName="CardHeader";var Xe=wo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,className:n("font-semibold leading-none tracking-tight",e),...t}));Xe.displayName="CardTitle";var gn=wo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,className:n("text-Pl text-muted-foreground",e),...t}));gn.displayName="CardDescription";var Ie=wo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,className:n("p-6 pt-0",e),...t}));Ie.displayName="CardContent";var bn=wo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,className:n("flex items-center p-6 pt-0",e),...t}));bn.displayName="CardFooter";function Yd({name:e,logo:t,href:a}){return(0,Et.jsx)(Ce,{className:"w-full max-w-Pl overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,Et.jsxs)(Xd.default,{href:a,className:"block",children:[(0,Et.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,Et.jsx)("div",{className:"relative w-full h-full",children:t&&(0,Et.jsx)(Vd.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,Et.jsx)(Ie,{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,Et.jsx)("p",{className:"font-medium text-lg text-white text-center group-hover:scale-105 transition-transform duration-200 ease-in-out",children:e})})]})})}function qd({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=i=>{switch(i){case"birthday":return(0,$e.jsx)(Yl.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,$e.jsx)(Yl.Award,{className:"h-4 w-4"});case"companyEvent":return(0,$e.jsx)(Yl.PartyPopper,{className:"h-4 w-4"});default:return(0,$e.jsx)(Yl.CalendarDays,{className:"h-4 w-4"})}},l=i=>{switch(i){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 to-slate-500"}};return(0,$e.jsxs)(Ce,{className:`w-full max-w-md overflow-hidden bg-gradient-to-br ${l(e)}`,children:[(0,$e.jsxs)(Ve,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,$e.jsxs)(vt,{className:"h-14 w-14 border-2 border-white",children:[(0,$e.jsx)(ht,{src:r,alt:a||"Event"}),(0,$e.jsx)(yt,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,$e.jsxs)("div",{className:"flex flex-col",children:[(0,$e.jsx)(Xe,{className:"text-xl",children:a||"Untitled Event"}),(0,$e.jsxs)("p",{className:"text-Pl text-white/80",children:[(0,$e.jsx)(Yl.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,$e.jsxs)(Ie,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,$e.jsx)("p",{className:"mb-2 text-Pl text-gray-700",children:o}),(0,$e.jsxs)(xt,{variant:"secondary",className:`${l(e)} text-white/80`,children:[s(e),(0,$e.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-Et])([A-Et])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}var Qd=v(require("next/link"));var Jd=v(require("next/image")),Kd={Pl:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function Zd({slug:e,image:t,title:a,description:o}){return(0,Et.jsxs)(Qd.default,{href:e,className:"group/portfolio relative Et-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,Et.jsx)("span",{className:n("absolute inset-0 Et-[2] bg-gradient-1 from-primary/0 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,Et.jsx)(Jd.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
10
+ `),D.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",D.easing),document.querySelector("body").setAttribute("data-aos-duration",D.duration),document.querySelector("body").setAttribute("data-aos-delay",D.delay),D.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?ie(!0):D.startEvent==="load"?window.addEventListener(D.startEvent,function(){ie(!0)}):document.addEventListener(D.startEvent,function(){ie(!0)}),window.addEventListener("resize",(0,c.default)(ie,D.debounceDelay,!0)),window.addEventListener("orientationchange",(0,c.default)(ie,D.debounceDelay,!0)),window.addEventListener("scroll",(0,i.default)(function(){(0,f.default)(P,D.once)},D.throttleDelay)),D.disableMutationObserver||p.default.ready("[data-aos]",ct),P)};e.exports={init:F,refresh:ie,refreshHard:ct}},function(e,t){},,,,,function(e,t){(function(a){"use strict";function o(N,F,C){function ke(le){var ft=ne,Ba=ue;return ne=ue=void 0,Ia=le,Ke=N.apply(Ba,ft)}function we(le){return Ia=le,_e=setTimeout(Bt,F),La?ke(le):Ke}function Ue(le){var ft=le-St,Ba=le-Ia,pl=F-ft;return fa?ct(pl,na-Ba):pl}function mt(le){var ft=le-St,Ba=le-Ia;return St===void 0||ft>=F||ft<0||fa&&Ba>=na}function Bt(){var le=A();return mt(le)?kt(le):void(_e=setTimeout(Bt,Ue(le)))}function kt(le){return _e=void 0,Ne&&ne?ke(le):(ne=ue=void 0,Ke)}function pt(){_e!==void 0&&clearTimeout(_e),Ia=0,ne=St=ue=_e=void 0}function ut(){return _e===void 0?Ke:kt(A())}function pe(){var le=A(),ft=mt(le);if(ne=arguments,ue=this,St=le,ft){if(_e===void 0)return we(St);if(fa)return _e=setTimeout(Bt,F),ke(St)}return _e===void 0&&(_e=setTimeout(Bt,F)),Ke}var ne,ue,na,Ke,_e,St,Ia=0,La=!1,fa=!1,Ne=!0;if(typeof N!="function")throw new TypeError(d);return F=m(F)||0,s(C)&&(La=!!C.leading,fa="maxWait"in C,na=fa?ie(m(C.maxWait)||0,F):na,Ne="trailing"in C?!!C.trailing:Ne),pe.cancel=pt,pe.flush=ut,pe}function r(N,F,C){var ke=!0,we=!0;if(typeof N!="function")throw new TypeError(d);return s(C)&&(ke="leading"in C?!!C.leading:ke,we="trailing"in C?!!C.trailing:we),o(N,F,{leading:ke,maxWait:F,trailing:we})}function s(N){var F=typeof N>"u"?"undefined":c(N);return!!N&&(F=="object"||F=="function")}function l(N){return!!N&&(typeof N>"u"?"undefined":c(N))=="object"}function i(N){return(typeof N>"u"?"undefined":c(N))=="symbol"||l(N)&&D.call(N)==u}function m(N){if(typeof N=="number")return N;if(i(N))return p;if(s(N)){var F=typeof N.valueOf=="function"?N.valueOf():N;N=s(F)?F+"":F}if(typeof N!="string")return N===0?N:+N;N=N.replace(g,"");var C=f.test(N);return C||h.test(N)?L(N.slice(2),C?2:8):b.test(N)?p:+N}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},d="Expected a function",p=NaN,u="[object Symbol]",g=/^\s+|\s+$/g,b=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,h=/^0o[0-7]+$/i,L=parseInt,S=(typeof a>"u"?"undefined":c(a))=="object"&&a&&a.Object===Object&&a,x=(typeof self>"u"?"undefined":c(self))=="object"&&self&&self.Object===Object&&self,P=S||x||Function("return this")(),w=Object.prototype,D=w.toString,ie=Math.max,ct=Math.min,A=function(){return P.Date.now()};e.exports=r}).call(t,function(){return this}())},function(e,t){(function(a){"use strict";function o(A,N,F){function C(Ne){var le=pe,ft=ne;return pe=ne=void 0,St=Ne,na=A.apply(ft,le)}function ke(Ne){return St=Ne,Ke=setTimeout(mt,N),Ia?C(Ne):na}function we(Ne){var le=Ne-_e,ft=Ne-St,Ba=N-le;return La?ie(Ba,ue-ft):Ba}function Ue(Ne){var le=Ne-_e,ft=Ne-St;return _e===void 0||le>=N||le<0||La&&ft>=ue}function mt(){var Ne=ct();return Ue(Ne)?Bt(Ne):void(Ke=setTimeout(mt,we(Ne)))}function Bt(Ne){return Ke=void 0,fa&&pe?C(Ne):(pe=ne=void 0,na)}function kt(){Ke!==void 0&&clearTimeout(Ke),St=0,pe=_e=ne=Ke=void 0}function pt(){return Ke===void 0?na:Bt(ct())}function ut(){var Ne=ct(),le=Ue(Ne);if(pe=arguments,ne=this,_e=Ne,le){if(Ke===void 0)return ke(_e);if(La)return Ke=setTimeout(mt,N),C(_e)}return Ke===void 0&&(Ke=setTimeout(mt,N)),na}var pe,ne,ue,na,Ke,_e,St=0,Ia=!1,La=!1,fa=!0;if(typeof A!="function")throw new TypeError(c);return N=i(N)||0,r(F)&&(Ia=!!F.leading,La="maxWait"in F,ue=La?D(i(F.maxWait)||0,N):ue,fa="trailing"in F?!!F.trailing:fa),ut.cancel=kt,ut.flush=pt,ut}function r(A){var N=typeof A>"u"?"undefined":m(A);return!!A&&(N=="object"||N=="function")}function s(A){return!!A&&(typeof A>"u"?"undefined":m(A))=="object"}function l(A){return(typeof A>"u"?"undefined":m(A))=="symbol"||s(A)&&w.call(A)==p}function i(A){if(typeof A=="number")return A;if(l(A))return d;if(r(A)){var N=typeof A.valueOf=="function"?A.valueOf():A;A=r(N)?N+"":N}if(typeof A!="string")return A===0?A:+A;A=A.replace(u,"");var F=b.test(A);return F||f.test(A)?h(A.slice(2),F?2:8):g.test(A)?d:+A}var m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},c="Expected a function",d=NaN,p="[object Symbol]",u=/^\s+|\s+$/g,g=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,f=/^0o[0-7]+$/i,h=parseInt,L=(typeof a>"u"?"undefined":m(a))=="object"&&a&&a.Object===Object&&a,S=(typeof self>"u"?"undefined":m(self))=="object"&&self&&self.Object===Object&&self,x=L||S||Function("return this")(),P=Object.prototype,w=P.toString,D=Math.max,ie=Math.min,ct=function(){return x.Date.now()};e.exports=o}).call(t,function(){return this}())},function(e,t){"use strict";function a(m){var c=void 0,d=void 0,p=void 0;for(c=0;c<m.length;c+=1)if(d=m[c],d.dataset&&d.dataset.aos||(p=d.children&&a(d.children)))return!0;return!1}function o(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function r(){return!!o()}function s(m,c){var d=window.document,p=o(),u=new p(l);i=c,u.observe(d.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function l(m){m&&m.forEach(function(c){var d=Array.prototype.slice.call(c.addedNodes),p=Array.prototype.slice.call(c.removedNodes),u=d.concat(p);if(a(u))return i()})}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.default={isSupported:r,ready:s}},function(e,t){"use strict";function a(d,p){if(!(d instanceof p))throw new TypeError("Cannot call a class as a function")}function o(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function d(p,u){for(var g=0;g<u.length;g++){var b=u[g];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,u,g){return u&&d(p.prototype,u),g&&d(p,g),p}}(),s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|Fl)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|Et)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows Et|xda|xiino/i,l=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a Et|abac|Et(pc|oo|s\-)|ai(Pl|rn)|al(av|Et|co)|amoi|an(ex|ny|yw)|aptu|Pl(ch|go)|as(Et|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|Et)|bl(Et|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|Et(Et|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|Et(12|\-d)|el(49|ai)|em(l2|ul)|pc(ic|k0)|esl8|ez([4-7]0|os|Et|ze)|fetc|fly(\-|Et)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|Fl)|gr(ad|Et)|haie|hcit|Fl\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |Et|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|Et)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|Et)|le(no|xi)|lg( g|\/(Et|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|Et(Et|ui|xo)|mc(01|21|Et)|m\-cr|Et(rc|ri)|mi(o8|Et|ts)|mmef|mo(01|02|bi|Et|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|Et)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|Et\-2|po(ck|Et|Et)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|Yl(Et|zo)|s55\/|Pl(ge|Et|Yl|Et|ny|va)|Et(01|h\-|oo|p\-)|sdk\/|Et(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|Pl(al|Pl|b3|Et|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|Et)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|Et(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|Fl)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|Et)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows Et|xda|xiino|android|ipad|playbook|silk/i,m=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a Et|abac|Et(pc|oo|s\-)|ai(Pl|rn)|al(av|Et|co)|amoi|an(ex|ny|yw)|aptu|Pl(ch|go)|as(Et|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|Et)|bl(Et|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|Et(Et|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|Et(12|\-d)|el(49|ai)|em(l2|ul)|pc(ic|k0)|esl8|ez([4-7]0|os|Et|ze)|fetc|fly(\-|Et)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|Fl)|gr(ad|Et)|haie|hcit|Fl\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |Et|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|Et)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|Et)|le(no|xi)|lg( g|\/(Et|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|Et(Et|ui|xo)|mc(01|21|Et)|m\-cr|Et(rc|ri)|mi(o8|Et|ts)|mmef|mo(01|02|bi|Et|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|Et)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|Et\-2|po(ck|Et|Et)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|Yl(Et|zo)|s55\/|Pl(ge|Et|Yl|Et|ny|va)|Et(01|h\-|oo|p\-)|sdk\/|Et(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|Pl(al|Pl|b3|Et|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|Et)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|Et(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,c=function(){function d(){a(this,d)}return r(d,[{key:"phone",value:function(){var p=o();return!(!s.test(p)&&!l.test(p.substr(0,4)))}},{key:"mobile",value:function(){var p=o();return!(!i.test(p)&&!m.test(p.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),d}();t.default=new c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(r,s,l){var i=r.node.getAttribute("data-aos-once");s>r.position?r.node.classList.add("aos-animate"):typeof i<"u"&&(i==="false"||!l&&i!=="true")&&r.node.classList.remove("aos-animate")},o=function(r,s){var l=window.pageYOffset,i=window.innerHeight;r.forEach(function(m,c){a(m,i+l,s)})};t.default=o},function(e,t,a){"use strict";function o(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(12),s=o(r),l=function(i,m){return i.forEach(function(c,d){c.node.classList.add("aos-init"),c.position=(0,s.default)(c.node,m.offset)}),i};t.default=l},function(e,t,a){"use strict";function o(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(13),s=o(r),l=function(i,m){var c=0,d=0,p=window.innerHeight,u={offset:i.getAttribute("data-aos-offset"),anchor:i.getAttribute("data-aos-anchor"),anchorPlacement:i.getAttribute("data-aos-anchor-placement")};switch(u.offset&&!isNaN(u.offset)&&(d=parseInt(u.offset)),u.anchor&&document.querySelectorAll(u.anchor)&&(i=document.querySelectorAll(u.anchor)[0]),c=(0,s.default)(i).top,u.anchorPlacement){case"top-bottom":break;case"center-bottom":c+=i.offsetHeight/2;break;case"bottom-bottom":c+=i.offsetHeight;break;case"top-center":c+=p/2;break;case"bottom-center":c+=p/2+i.offsetHeight;break;case"center-center":c+=p/2+i.offsetHeight/2;break;case"top-top":c+=p;break;case"bottom-top":c+=i.offsetHeight+p;break;case"center-top":c+=i.offsetHeight/2+p}return u.anchorPlacement||u.offset||isNaN(m)||(d=m),c+d};t.default=l},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(o){for(var r=0,s=0;o&&!isNaN(o.offsetLeft)&&!isNaN(o.offsetTop);)r+=o.offsetLeft-(o.tagName!="BODY"?o.scrollLeft:0),s+=o.offsetTop-(o.tagName!="BODY"?o.scrollTop:0),o=o.offsetParent;return{top:s,left:r}};t.default=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(o){return o=o||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(o,function(r){return{node:r}})};t.default=a}])})});var yf={};_m(yf,{AOSInit:()=>wp,AboutSection:()=>af,Alert:()=>Qi,AlertDescription:()=>Zi,AlertTitle:()=>Ji,ApproveLeave:()=>Kn,Avatar:()=>vt,AvatarFallback:()=>yt,AvatarImage:()=>ht,Badge:()=>xt,BannerBlock:()=>on,BlogCard:()=>Dm,BlogDetail:()=>df,BlogList:()=>uf,BlogListSection:()=>rf,BrandLogo:()=>to,Breadcrumb:()=>Zs,BreadcrumbEllipsis:()=>si,BreadcrumbItem:()=>ti,BreadcrumbLink:()=>ai,BreadcrumbList:()=>ei,BreadcrumbPage:()=>oi,BreadcrumbSeparator:()=>ri,Breadcrumbs:()=>Eu,Button:()=>B,CMSLink:()=>Zt,CRMKanbanBoard:()=>Xu,Calendar:()=>Sr,CalendarView:()=>tl,CallToActionBlock:()=>ho,CallToActionBlockOld:()=>Gp,Card:()=>Mr,Categories:()=>En,ChatCardTask:()=>nl,ChatInterfaceMessages:()=>Zu,ChatMessage:()=>ll,Checkbox:()=>Jt,CodeBlock:()=>dn,Collapsible:()=>ba,CollapsibleContent:()=>Fa,CollapsibleTrigger:()=>Ha,CollectionArchive:()=>fu,Command:()=>ss,CommandDialog:()=>vd,CommandEmpty:()=>Vi,CommandGroup:()=>Xi,CommandInput:()=>Wi,CommandItem:()=>qi,CommandList:()=>Ui,CommandSeparator:()=>Yi,CommandShortcut:()=>Ki,ContactSection:()=>sf,Container:()=>Ct,ContentBlock:()=>Ar,ContentCard:()=>Jp,CopyButton:()=>nn,CustomLink:()=>Qe,CustomerCard:()=>Yd,DarkTop:()=>xn,DealCard:()=>ol,DealDetails:()=>al,Dialog:()=>Ot,DialogClose:()=>os,DialogContent:()=>Dt,DialogDescription:()=>$i,DialogFooter:()=>Gi,DialogHeader:()=>Kt,DialogOverlay:()=>rs,DialogPortal:()=>_i,DialogTitle:()=>Qt,DialogTrigger:()=>as,DropdownMenu:()=>Rl,DropdownMenuCheckboxItem:()=>ci,DropdownMenuContent:()=>li,DropdownMenuGroup:()=>Dl,DropdownMenuItem:()=>di,DropdownMenuLabel:()=>pi,DropdownMenuPortal:()=>Al,DropdownMenuRadioGroup:()=>Il,DropdownMenuRadioItem:()=>mi,DropdownMenuSeparator:()=>ui,DropdownMenuShortcut:()=>fi,DropdownMenuSub:()=>Ml,DropdownMenuSubContent:()=>ni,DropdownMenuSubTrigger:()=>ii,DropdownMenuTrigger:()=>Tl,DynamicIcon:()=>et,EventCard:()=>qd,FeatureCard:()=>Wo,FeatureGrid:()=>rc,FeaturesBlock:()=>xo,Filter:()=>Hn,FlowPrintable:()=>Sc,Footer:()=>_u,Header:()=>Gu,HeaderDesktop:()=>Un,HeaderMobile:()=>Xn,HeadingImage:()=>du,Hero:()=>Qp,HighImpactHero:()=>Fn,HolidayGrid:()=>el,HolidayTracker:()=>Uu,HoverCard:()=>pd,HoverCardContent:()=>ji,HoverCardTrigger:()=>ud,Image:()=>ec,ImageBlock:()=>fn,ImageSection:()=>pf,InfoTile:()=>tu,Input:()=>gt,Insight:()=>eu,KanbanColumn:()=>il,Label:()=>be,LightTop:()=>wn,LocationsSection:()=>nf,Logo:()=>gu,LowImpactHero:()=>_n,MOTD:()=>ou,MainPageSection:()=>cf,Mask:()=>Iu,Media:()=>ta,MediaBlock:()=>Na,MediumImpactHero:()=>jn,NewCustomerForm:()=>rl,NewDealForm:()=>sl,NewsGrid:()=>Pc,OrgChart:()=>iu,PagePrintable:()=>Rc,PageRange:()=>hu,PageShape:()=>Mt,Pagination:()=>Bn,PayloadPagination:()=>yu,Popover:()=>Nr,PopoverAnchor:()=>nd,PopoverContent:()=>_o,PopoverTrigger:()=>Cr,PostHero:()=>Au,PricingCard:()=>hn,PricingSection:()=>tf,Printable:()=>Mn,ProjectCard:()=>Zd,ProjectTeam:()=>Su,ProposalSummary:()=>nu,Publish:()=>vf,RelatedContent:()=>Ru,RelatedPosts:()=>uu,RenderBlocks:()=>eo,RenderBlocksWithShapes:()=>mu,RenderHero:()=>Bu,RequestLeave:()=>Zn,ReusableContentBlock:()=>yn,RichText:()=>q,ScrollArea:()=>la,ScrollBar:()=>ts,Section:()=>gf,SectionHero:()=>$n,Select:()=>go,SelectContent:()=>qa,SelectGroup:()=>zp,SelectItem:()=>Ka,SelectLabel:()=>Cd,SelectScrollDownButton:()=>an,SelectScrollUpButton:()=>tn,SelectSeparator:()=>Pd,SelectTrigger:()=>Ya,SelectValue:()=>bo,Separator:()=>dr,ServiceCard:()=>Kp,ServiceDetail:()=>bf,ServiceDetailSection:()=>ff,ServiceSection:()=>ef,Sheet:()=>Gr,SheetClose:()=>jl,SheetContent:()=>mr,SheetDescription:()=>xi,SheetFooter:()=>hi,SheetHeader:()=>vi,SheetOverlay:()=>$r,SheetPortal:()=>bi,SheetTitle:()=>yi,SheetTrigger:()=>Ol,Sidebar:()=>no,SidebarContent:()=>ja,SidebarFooter:()=>co,SidebarGroup:()=>zt,SidebarGroupAction:()=>Ri,SidebarGroupContent:()=>Yt,SidebarGroupLabel:()=>ha,SidebarHeader:()=>lo,SidebarInput:()=>Si,SidebarInset:()=>ki,SidebarLeft:()=>Nu,SidebarMenu:()=>bt,SidebarMenuAction:()=>fr,SidebarMenuBadge:()=>Ti,SidebarMenuButton:()=>Ht,SidebarMenuItem:()=>Ze,SidebarMenuSkeleton:()=>Di,SidebarMenuSub:()=>_a,SidebarMenuSubButton:()=>$a,SidebarMenuSubItem:()=>Ga,SidebarProvider:()=>Ni,SidebarRail:()=>Pi,SidebarRight:()=>ku,SidebarSeparator:()=>ur,SidebarTrigger:()=>Ci,SimpleHeader:()=>Hu,Skeleton:()=>De,SlideShow:()=>As,TextAndImages:()=>kc,Textarea:()=>Qa,Theme:()=>Ss,ThemeProvider:()=>Mu,ThemeWithShapes:()=>mc,Toast:()=>vr,ToastAction:()=>Ii,ToastClose:()=>hr,ToastDescription:()=>xr,ToastProvider:()=>Zr,ToastTitle:()=>yr,ToastViewport:()=>br,Toaster:()=>td,Toggle:()=>Bi,ToggleGroup:()=>Ei,ToggleGroupItem:()=>zi,Tooltip:()=>Xr,TooltipContent:()=>pr,TooltipProvider:()=>Vr,TooltipTrigger:()=>Yr,VideoHeader:()=>Ou,WhyUs:()=>lu,badgeVariants:()=>en,buttonVariants:()=>Oa,Et:()=>n,getTableOfContents:()=>Bo,reducer:()=>Ql,toast:()=>Jl,toggleVariants:()=>wr,useIsMobile:()=>Ur,useSidebar:()=>Oo,useToast:()=>Jr});module.exports=Gm(yf);var Eo=v(require("react")),_r=require("@radix-ui/react-icons"),Sl=require("@radix-ui/react-slot");var Nl=require("clsx");var Qs="-",$m=e=>{let t=Um(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let i=l.split(Qs);return i[0]===""&&i.length!==1&&i.shift(),bl(i,t)||Wm(l)},getConflictingClassGroupIds:(l,i)=>{let m=a[l]||[];return i&&o[l]?[...m,...o[l]]:m}}},bl=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?bl(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(Qs);return t.validators.find(({validator:l})=>l(s))?.classGroupId},fl=/^\[(.+)\]$/,Wm=e=>{if(fl.test(e)){let t=fl.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Um=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return Xm(Object.entries(e.classGroups),a).forEach(([s,l])=>{Ks(l,o,s,t)}),o},Ks=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:gl(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(Vm(r)){Ks(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,l])=>{Ks(l,gl(t,s),a,o)})})},gl=(e,t)=>{let a=e;return t.split(Qs).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Vm=e=>e.isThemeGetter,Xm=(e,t)=>t?e.map(([a,o])=>{let r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,i])=>[t+l,i])):s);return[a,r]}):e,Ym=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,l)=>{a.set(s,l),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let l=a.get(s);if(l!==void 0)return l;if((l=o.get(s))!==void 0)return r(s,l),l},set(s,l){a.has(s)?a.set(s,l):r(s,l)}}},vl="!",qm=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,l=i=>{let m=[],c=0,d=0,p;for(let h=0;h<i.length;h++){let L=i[h];if(c===0){if(L===r&&(o||i.slice(h,h+s)===t)){m.push(i.slice(d,h)),d=h+s;continue}if(L==="/"){p=h;continue}}L==="["?c++:L==="]"&&c--}let u=m.length===0?i:i.substring(d),g=u.startsWith(vl),b=g?u.substring(1):u,f=p&&p>d?p-d:void 0;return{modifiers:m,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:f}};return a?i=>a({className:i,parseClassName:l}):l},Km=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},Qm=e=>({cache:Ym(e.cacheSize),parseClassName:qm(e),...$m(e)}),Jm=/\s+/,Zm=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],l=e.trim().split(Jm),i="";for(let m=l.length-1;m>=0;m-=1){let c=l[m],{modifiers:d,hasImportantModifier:p,baseClassName:u,maybePostfixModifierPosition:g}=a(c),b=!!g,f=o(b?u.substring(0,g):u);if(!f){if(!b){i=c+(i.length>0?" "+i:i);continue}if(f=o(u),!f){i=c+(i.length>0?" "+i:i);continue}b=!1}let h=Km(d).join(":"),L=p?h+vl:h,S=L+f;if(s.includes(S))continue;s.push(S);let x=r(f,b);for(let P=0;P<x.length;++P){let w=x[P];s.push(L+w)}i=c+(i.length>0?" "+i:i)}return i};function ep(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=hl(t))&&(o&&(o+=" "),o+=a);return o}var hl=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=hl(e[o]))&&(a&&(a+=" "),a+=t);return a};function tp(e,...t){let a,o,r,s=l;function l(m){let c=t.reduce((d,p)=>p(d),e());return a=Qm(c),o=a.cache.get,r=a.cache.set,s=i,i(m)}function i(m){let c=o(m);if(c)return c;let d=Zm(m,a);return r(m,d),d}return function(){return s(ep.apply(null,arguments))}}var ge=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},yl=/^\[(?:([a-Et-]+):)?(.+)\]$/i,ap=/^\d+\/\d+$/,op=new Set(["px","full","screen"]),rp=/^(\d+(\.\d+)?)?(Et|Pl|md|lg|xl)$/,sp=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|Pl|Yl|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ip=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,np=/^(inset_)?-?((\d+)?\.?(\d+)[a-Et]+|0)Et-?((\d+)?\.?(\d+)[a-Et]+|0)/,lp=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ga=e=>Io(e)||op.has(e)||ap.test(e),Ea=e=>Lo(e,"length",bp),Io=e=>!!e&&!Number.isNaN(Number(e)),qs=e=>Lo(e,"number",Io),ir=e=>!!e&&Number.isInteger(Number(e)),dp=e=>e.endsWith("%")&&Io(e.slice(0,-1)),O=e=>yl.test(e),za=e=>rp.test(e),cp=new Set(["length","size","percentage"]),mp=e=>Lo(e,cp,xl),pp=e=>Lo(e,"position",xl),up=new Set(["image","url"]),fp=e=>Lo(e,up,hp),gp=e=>Lo(e,"",vp),nr=()=>!0,Lo=(e,t,a)=>{let o=yl.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},bp=e=>sp.test(e)&&!ip.test(e),xl=()=>!1,vp=e=>np.test(e),hp=e=>lp.test(e);var yp=()=>{let e=ge("colors"),t=ge("spacing"),a=ge("blur"),o=ge("brightness"),r=ge("borderColor"),s=ge("borderRadius"),l=ge("borderSpacing"),i=ge("borderWidth"),m=ge("contrast"),c=ge("grayscale"),d=ge("hueRotate"),p=ge("invert"),u=ge("gap"),g=ge("gradientColorStops"),b=ge("gradientColorStopPositions"),f=ge("inset"),h=ge("margin"),L=ge("opacity"),S=ge("padding"),x=ge("saturate"),P=ge("scale"),w=ge("sepia"),D=ge("skew"),ie=ge("space"),ct=ge("translate"),A=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",O,t],C=()=>[O,t],ke=()=>["",ga,Ea],we=()=>["auto",Io,O],Ue=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],mt=()=>["solid","dashed","dotted","double","none"],Bt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],kt=()=>["start","end","center","between","around","evenly","stretch"],pt=()=>["","0",O],ut=()=>["auto","avoid","all","avoid-page","page","left","right","column"],pe=()=>[Io,O];return{cacheSize:500,separator:":",theme:{colors:[nr],spacing:[ga,Ea],blur:["none","",za,O],brightness:pe(),borderColor:[e],borderRadius:["none","","full",za,O],borderSpacing:C(),borderWidth:ke(),contrast:pe(),grayscale:pt(),hueRotate:pe(),invert:pt(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[dp,Ea],inset:F(),margin:F(),opacity:pe(),padding:C(),saturate:pe(),scale:pe(),sepia:pt(),skew:pe(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[za]}],"break-after":[{"break-after":ut()}],"break-before":[{"break-before":ut()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ue(),O]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-Et":[{"overflow-Et":N()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-Et":[{"overscroll-Et":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-Et":[{"inset-Et":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],Et:[{Et:["auto",ir,O]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",O]}],grow:[{grow:pt()}],shrink:[{shrink:pt()}],order:[{order:["first","last","none",ir,O]}],"grid-cols":[{"grid-cols":[nr]}],"col-start-end":[{col:["auto",{span:["full",ir,O]},O]}],"col-start":[{"col-start":we()}],"col-end":[{"col-end":we()}],"grid-rows":[{"grid-rows":[nr]}],"row-start-end":[{row:["auto",{span:[ir,O]},O]}],"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",O]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",O]}],gap:[{gap:[u]}],"gap-x":[{"gap-x":[u]}],"gap-Et":[{"gap-Et":[u]}],"justify-content":[{justify:["normal",...kt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...kt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...kt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],Et:[{Et:[h]}],Et:[{Et:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[ie]}],"space-x-reverse":["space-x-reverse"],"space-Et":[{"space-Et":[ie]}],"space-Et-reverse":["space-Et-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",O,t]}],"min-w":[{"min-w":[O,t,"min","max","fit"]}],"max-w":[{"max-w":[O,t,"none","full","min","max","fit","prose",{screen:[za]},za]}],h:[{h:[O,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[O,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[O,t,"auto","min","max","fit"]}],"font-size":[{text:["base",za,Ea]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",qs]}],"font-family":[{font:[nr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",O]}],"line-clamp":[{"line-clamp":["none",Io,qs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ga,O]}],"list-image":[{"list-image":["none",O]}],"list-style-type":[{list:["none","disc","decimal",O]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[L]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...mt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ga,Ea]}],"underline-offset":[{"underline-offset":["auto",ga,O]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[L]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ue(),pp]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","Et","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",mp]}],"bg-image":[{bg:["none",{"gradient-to":["t","It","r","br","b","bl","l","tl"]},fp]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-Et":[{"rounded-Et":[s]}],"rounded-Et":[{"rounded-Et":[s]}],"rounded-Et":[{"rounded-Et":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-It":[{"rounded-It":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-Et":[{"border-Et":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[L]}],"border-style":[{border:[...mt(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-Et":[{"divide-Et":[i]}],"divide-Et-reverse":["divide-Et-reverse"],"divide-opacity":[{"divide-opacity":[L]}],"divide-style":[{divide:mt()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-Et":[{"border-Et":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...mt()]}],"outline-offset":[{"outline-offset":[ga,O]}],"outline-w":[{outline:[ga,Ea]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ke()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[L]}],"ring-offset-w":[{"ring-offset":[ga,Ea]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",za,gp]}],"shadow-color":[{shadow:[nr]}],opacity:[{opacity:[L]}],"mix-blend":[{"mix-blend":[...Bt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Bt()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",za,O]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[x]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[L]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-Et":[{"border-spacing-Et":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:pe()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:pe()}],animate:[{animate:["none","spin","ping","pulse","bounce",O]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[P]}],"scale-x":[{"scale-x":[P]}],"scale-Et":[{"scale-Et":[P]}],rotate:[{rotate:[ir,O]}],"translate-x":[{"translate-x":[ct]}],"translate-Et":[{"translate-Et":[ct]}],"skew-x":[{"skew-x":[D]}],"skew-Et":[{"skew-Et":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","Et-resize","sw-resize","ew-resize","Et-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Et","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-Et":[{"scroll-Et":C()}],"scroll-Et":[{"scroll-Et":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","Et","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-Et":[{"touch-pan":["Et","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ga,Ea,qs]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-Et"],overscroll:["overscroll-x","overscroll-Et"],inset:["inset-x","inset-Et","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-Et":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-Et"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","Et","Et","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-Et","rounded-Et","rounded-Et","rounded-tl","rounded-It","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-Et"],"rounded-e":["rounded-Et","rounded-Et"],"rounded-t":["rounded-tl","rounded-It"],"rounded-r":["rounded-It","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-Et"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-Et":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-Et":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-Et","scroll-Et","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-Et","touch-pz"],"touch-x":["touch"],"touch-Et":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var wl=tp(yp);function n(...e){return wl((0,Nl.clsx)(e))}function Bo(e){let t=0,a=(s,l)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${l}`,o=e.layout.flatMap(s=>{let l=[];return"title"in s&&s.title&&l.push({text:s.title,id:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(i=>{if(i.title&&l.push({text:i.title,id:a(i.title,t++),tag:"h2"}),i.richText?.root?.children&&i.richText?.root?.children.length===1){let m=i.richText.root.children.filter(c=>c!==void 0&&c.type==="heading");for(let c of m)c.children[0]&&l.push({text:c.children[0].text??"",id:a(c.children[0].text,t++),tag:c.tag||"h2"})}}),l}),r=xp(e.layout);return{tableOfContents:o,contentWithIds:r}}function xp(e){let t=(o,r)=>`${o.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${r}`,a=0;return e.map(o=>(o.title&&(o.id=t(o.title,a++)),o.columns&&(o.columns=o.columns.map(r=>(r.title&&(r.id=t(r.title,a++)),r.richText&&(r.richText.root.children=r.richText.root.children.filter(s=>s!==void 0).map(s=>(s.type==="heading"&&s.children&&s.children[0].text?s.id=t(s.children[0].text,a++):s.type==="block"&&s.fields?.media&&(s.id=t(`image-${a}`,a++)),s))),r))),o))}var Pl=require("react"),kl=v(Cl());function wp(){return(0,Pl.useEffect)(()=>{kl.default.init({duration:1e3,offset:0,once:!0})},[]),null}var Et=require("react/jsx-runtime"),Zs=Eo.forwardRef(({...e},t)=>(0,Et.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));Zs.displayName="Breadcrumb";var ei=Eo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("ol",{ref:a,className:n("flex flex-wrap items-center gap-1.5 break-words text-Pl text-muted-foreground Pl:gap-2.5",e),...t}));ei.displayName="BreadcrumbList";var ti=Eo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("li",{ref:a,className:n("inline-flex items-center gap-1.5",e),...t}));ti.displayName="BreadcrumbItem";var ai=Eo.forwardRef(({asChild:e,className:t,...a},o)=>(0,Et.jsx)(e?Sl.Slot:"a",{ref:o,className:n("transition-colors hover:text-foreground",t),...a}));ai.displayName="BreadcrumbLink";var oi=Eo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:n("font-normal text-foreground",e),...t}));oi.displayName="BreadcrumbPage";var ri=({children:e,className:t,...a})=>(0,Et.jsx)("li",{role:"presentation","aria-hidden":"true",className:n("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e??(0,Et.jsx)(_r.ChevronRightIcon,{})});ri.displayName="BreadcrumbSeparator";var si=({className:e,...t})=>(0,Et.jsxs)("span",{role:"presentation","aria-hidden":"true",className:n("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,Et.jsx)(_r.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,Et.jsx)("span",{className:"sr-only",children:"More"})]});si.displayName="BreadcrumbElipssis";var zo=v(require("@radix-ui/react-collapsible")),ba=zo.Root,Ha=zo.CollapsibleTrigger,Fa=zo.CollapsibleContent;var va=v(require("react")),$=v(require("@radix-ui/react-dropdown-menu"));var Rl=$.Root,Tl=$.Trigger,Dl=$.Group,Al=$.Portal,Ml=$.Sub,Il=$.RadioGroup,ii=va.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Et.jsxs)($.SubTrigger,{ref:r,className:n("flex cursor-default gap-2 select-none items-center rounded-Pl px-2 py-1.5 text-Pl outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,(0,Et.jsx)(_r.ChevronRightIcon,{className:"ml-auto"})]}));ii.displayName=$.SubTrigger.displayName;var ni=va.forwardRef(({className:e,...t},a)=>(0,Et.jsx)($.SubContent,{ref:a,className:n("Et-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));ni.displayName=$.SubContent.displayName;var li=va.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Et.jsx)($.Portal,{children:(0,Et.jsx)($.Content,{ref:o,sideOffset:t,className:n("Et-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));li.displayName=$.Content.displayName;var di=va.forwardRef(({className:e,inset:t,...a},o)=>(0,Et.jsx)($.Item,{ref:o,className:n("relative flex cursor-default select-none items-center gap-2 rounded-Pl px-2 py-1.5 text-Pl 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}));di.displayName=$.Item.displayName;var ci=va.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Et.jsxs)($.CheckboxItem,{ref:r,className:n("relative flex cursor-default select-none items-center rounded-Pl py-1.5 pl-8 pr-2 text-Pl outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[(0,Et.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Et.jsx)($.ItemIndicator,{children:(0,Et.jsx)(_r.CheckIcon,{className:"h-4 w-4"})})}),t]}));ci.displayName=$.CheckboxItem.displayName;var mi=va.forwardRef(({className:e,children:t,...a},o)=>(0,Et.jsxs)($.RadioItem,{ref:o,className:n("relative flex cursor-default select-none items-center rounded-Pl py-1.5 pl-8 pr-2 text-Pl outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,Et.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Et.jsx)($.ItemIndicator,{children:(0,Et.jsx)(_r.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));mi.displayName=$.RadioItem.displayName;var pi=va.forwardRef(({className:e,inset:t,...a},o)=>(0,Et.jsx)($.Label,{ref:o,className:n("px-2 py-1.5 text-Pl font-semibold",t&&"pl-8",e),...a}));pi.displayName=$.Label.displayName;var ui=va.forwardRef(({className:e,...t},a)=>(0,Et.jsx)($.Separator,{ref:a,className:n("-mx-1 my-1 h-px bg-muted",e),...t}));ui.displayName=$.Separator.displayName;var fi=({className:e,...t})=>(0,Et.jsx)("span",{className:n("ml-auto text-Et tracking-widest opacity-60",e),...t});fi.displayName="DropdownMenuShortcut";var Ll=v(require("react"));var gt=Ll.forwardRef(({className:e,type:t,...a},o)=>(0,Et.jsx)("input",{type:t,className:n("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-Pl shadow-Pl transition-colors file:border-0 file:bg-transparent file:text-Pl file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));gt.displayName="Input";var El=v(require("react")),gi=v(require("@radix-ui/react-separator"));var dr=El.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,Et.jsx)(gi.Root,{ref:r,decorative:a,orientation:t,className:n("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));dr.displayName=gi.Root.displayName;var cr=v(require("react")),Te=v(require("@radix-ui/react-dialog")),Fl=require("class-variance-authority");var Gr=Te.Root,Ol=Te.Trigger,jl=Te.Close,bi=Te.Portal,$r=cr.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(Te.Overlay,{className:n("fixed inset-0 Et-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));$r.displayName=Te.Overlay.displayName;var Np=(0,Fl.cva)("fixed Et-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-Et-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left Pl:max-w-Pl",right:"inset-Et-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right Pl:max-w-Pl"}},defaultVariants:{side:"right"}}),mr=cr.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,Et.jsxs)(bi,{children:[(0,Et.jsx)($r,{}),(0,Et.jsxs)(Te.Content,{ref:r,className:n(Np({side:e}),t),...o,children:[(0,Et.jsxs)(Te.Close,{className:"absolute right-4 top-4 rounded-Pl opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,Et.jsx)(_r.Cross2Icon,{className:"h-4 w-4"}),(0,Et.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));mr.displayName=Te.Content.displayName;var vi=({className:e,...t})=>(0,Et.jsx)("div",{className:n("flex flex-col space-Et-2 text-center Pl:text-left",e),...t});vi.displayName="SheetHeader";var hi=({className:e,...t})=>(0,Et.jsx)("div",{className:n("flex flex-col-reverse Pl:flex-row Pl:justify-end Pl:space-x-2",e),...t});hi.displayName="SheetFooter";var yi=cr.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(Te.Title,{ref:a,className:n("text-lg font-semibold text-foreground",e),...t}));yi.displayName=Te.Title.displayName;var xi=cr.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(Te.Description,{ref:a,className:n("text-Pl text-muted-foreground",e),...t}));xi.displayName=Te.Description.displayName;var U=v(require("react")),Yl=require("lucide-react");var Ur=(e=768)=>{let[t,a]=(0,Pl.useState)(!1);return(0,Pl.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var $l=v(require("react")),Oa=(0,Fl.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-Pl 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",Pl:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),B=$l.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,Et.jsx)(e?Sl.Slot:"button",{className:n(Oa({className:t,size:a,variant:o})),ref:s,...r}));B.displayName="Button";function De({className:e,...t}){return(0,Et.jsx)("div",{className:n("animate-pulse rounded-md bg-primary/10",e),...t})}var Vl=v(require("react")),Xt=v(require("@radix-ui/react-tooltip"));var Vr=Xt.Provider,Xr=Xt.Root,Yr=Xt.Trigger,pr=Vl.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Et.jsx)(Xt.Portal,{children:(0,Et.jsx)(Xt.Content,{ref:o,sideOffset:t,className:n("Et-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-Et 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})}));pr.displayName=Xt.Content.displayName;var Cp="sidebar:state",Pp=60*60*24*7,kp="16rem",Sp="18rem",Rp="3rem",Tp="b",ql=U.createContext(null);function Oo(){let e=U.useContext(ql);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var Ni=U.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...l},i)=>{let m=Ur(),[c,d]=U.useState(!1),[p,u]=U.useState(e),g=t??p,b=U.useCallback(S=>{if(a)return a?.(typeof S=="function"?S(g):S);u(S),document.cookie=`${Cp}=${g}; path=/; max-age=${Pp}`},[a,g]),f=U.useCallback(()=>m?d(S=>!S):b(S=>!S),[m,b,d]);U.useEffect(()=>{let S=x=>{x.key===Tp&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),f())};return window.addEventListener("keydown",S),()=>window.removeEventListener("keydown",S)},[f]);let h=g?"expanded":"collapsed",L=U.useMemo(()=>({state:h,open:g,setOpen:b,isMobile:m,openMobile:c,setOpenMobile:d,toggleSidebar:f}),[h,g,b,m,c,d,f]);return(0,Et.jsx)(ql.Provider,{value:L,children:(0,Et.jsx)(Vr,{delayDuration:0,children:(0,Et.jsx)("div",{style:{"--sidebar-width":kp,"--sidebar-width-icon":Rp,...r},className:n("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:i,...l,children:s})})})});Ni.displayName="SidebarProvider";var no=U.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},l)=>{let{isMobile:i,state:m,openMobile:c,setOpenMobile:d}=Oo();return a==="none"?(0,Et.jsx)("div",{className:n("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:l,...s,children:r}):i?(0,Et.jsx)(Gr,{open:c,onOpenChange:d,...s,children:(0,Et.jsx)(mr,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Sp},side:e,children:(0,Et.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,Et.jsxs)("div",{ref:l,className:"group peer hidden md:block text-sidebar-foreground","data-state":m,"data-collapsible":m==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,Et.jsx)("div",{className:n("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)Et+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,Et.jsx)("div",{className:n("duration-200 fixed top-14 bottom-0 Et-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)Et+_theme(spacing.4)Et+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...s,children:(0,Et.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:r})})]})});no.displayName="Sidebar";var Ci=U.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=Oo();return(0,Et.jsxs)(B,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:n("h-7 w-7",e),onClick:s=>{t?.(s),r()},...a,children:[(0,Et.jsx)(Yl.PanelLeft,{}),(0,Et.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Ci.displayName="SidebarTrigger";var Pi=U.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=Oo();return(0,Et.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:n("absolute inset-Et-0 Et-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-Et-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 Pl:flex","[[data-side=left]Et&]:cursor-w-resize [[data-side=right]Et&]:cursor-e-resize","[[data-side=left][data-state=collapsed]Et&]:cursor-e-resize [[data-side=right][data-state=collapsed]Et&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]Et&]:-right-2","[[data-side=right][data-collapsible=offcanvas]Et&]:-left-2",e),...t})});Pi.displayName="SidebarRail";var ki=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("main",{ref:a,className:n("flex flex-1 flex-col bg-background overflow-Et-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));ki.displayName="SidebarInset";var Si=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(gt,{ref:a,"data-sidebar":"input",className:n("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));Si.displayName="SidebarInput";var lo=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,"data-sidebar":"header",className:n("flex flex-col gap-2 p-2",e),...t}));lo.displayName="SidebarHeader";var co=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,"data-sidebar":"footer",className:n("flex flex-col gap-2 p-2",e),...t}));co.displayName="SidebarFooter";var ur=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(dr,{ref:a,"data-sidebar":"separator",className:n("mx-2 w-auto bg-sidebar-border",e),...t}));ur.displayName="SidebarSeparator";var ja=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,"data-sidebar":"content",className:n("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));ja.displayName="SidebarContent";var zt=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,"data-sidebar":"group",className:n("relative flex w-full min-w-0 flex-col p-2",e),...t}));zt.displayName="SidebarGroup";var ha=U.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Et.jsx)(t?Sl.Slot:"div",{ref:o,"data-sidebar":"group-label",className:n("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-Et font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));ha.displayName="SidebarGroupLabel";var Ri=U.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Et.jsx)(t?Sl.Slot:"button",{ref:o,"data-sidebar":"group-action",className:n("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...a}));Ri.displayName="SidebarGroupAction";var Yt=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,"data-sidebar":"group-content",className:n("w-full text-Pl",e),...t}));Yt.displayName="SidebarGroupContent";var bt=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("ul",{ref:a,"data-sidebar":"menu",className:n("flex w-full min-w-0 flex-col gap-1",e),...t}));bt.displayName="SidebarMenu";var Ze=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:n("group/menu-item relative",e),...t}));Ze.displayName="SidebarMenuItem";var Dp=(0,Fl.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-Pl 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-Pl",Pl:"h-7 text-Et",lg:"h-12 text-Pl group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Ht=U.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...l},i)=>{let m=e?Sl.Slot:"button",{isMobile:c,state:d}=Oo(),p=(0,Et.jsx)(m,{ref:i,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:n(Dp({variant:a,size:o}),s),...l});return r?(typeof r=="string"&&(r={children:r}),(0,Et.jsxs)(Xr,{children:[(0,Et.jsx)(Yr,{asChild:!0,children:p}),(0,Et.jsx)(pr,{side:"right",align:"center",hidden:d!=="collapsed"||c,...r})]})):p});Ht.displayName="SidebarMenuButton";var fr=U.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,Et.jsx)(t?Sl.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:n("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=Pl]/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}));fr.displayName="SidebarMenuAction";var Ti=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:n("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-Et 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=Pl]/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}));Ti.displayName="SidebarMenuBadge";var Di=U.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=U.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,Et.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:n("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,Et.jsx)(De,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,Et.jsx)(De,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});Di.displayName="SidebarMenuSkeleton";var _a=U.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:n("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));_a.displayName="SidebarMenuSub";var Ga=U.forwardRef(({...e},t)=>(0,Et.jsx)("li",{ref:t,...e}));Ga.displayName="SidebarMenuSubItem";var $a=U.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...r},s)=>(0,Et.jsx)(e?Sl.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:n("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="Pl"&&"text-Et",t==="md"&&"text-Pl","group-data-[collapsible=icon]:hidden",o),...r}));$a.displayName="SidebarMenuSubButton";var Qr=v(require("react")),Ap=1,Mp=1e6;var Ai=0;function Ip(){return Ai=(Ai+1)%Number.MAX_SAFE_INTEGER,Ai.toString()}var Mi=new Map,Kl=e=>{if(Mi.has(e))return;let t=setTimeout(()=>{Mi.delete(e),gr({type:"REMOVE_TOAST",toastId:e})},Mp);Mi.set(e,t)},Ql=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Ap)};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?Kl(a):e.toasts.forEach(o=>{Kl(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)}}},qr=[],Kr={toasts:[]};function gr(e){Kr=Ql(Kr,e),qr.forEach(t=>{t(Kr)})}function Jl({...e}){let t=Ip(),a=r=>gr({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>gr({type:"DISMISS_TOAST",toastId:t});return gr({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function Jr(){let[e,t]=Qr.useState(Kr);return Qr.useEffect(()=>(qr.push(t),()=>{let a=qr.indexOf(t);a>-1&&qr.splice(a,1)}),[e]),{...e,toast:Jl,dismiss:a=>gr({type:"DISMISS_TOAST",toastId:a})}}var mo=v(require("react")),ze=v(require("@radix-ui/react-toast"));var Zr=ze.Provider,br=mo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(ze.Viewport,{ref:a,className:n("fixed top-0 Et-[100] flex max-h-screen w-full flex-col-reverse p-4 Pl:bottom-0 Pl:right-0 Pl:top-auto Pl:flex-col md:max-w-[420px]",e),...t}));br.displayName=ze.Viewport.displayName;var Lp=(0,Fl.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:Pl: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"}}),vr=mo.forwardRef(({className:e,variant:t,...a},o)=>(0,Et.jsx)(ze.Root,{ref:o,className:n(Lp({variant:t}),e),...a}));vr.displayName=ze.Root.displayName;var Ii=mo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(ze.Action,{ref:a,className:n("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-Pl 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}));Ii.displayName=ze.Action.displayName;var hr=mo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(ze.Close,{ref:a,className:n("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:(0,Et.jsx)(Yl.X,{className:"h-4 w-4"})}));hr.displayName=ze.Close.displayName;var yr=mo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(ze.Title,{ref:a,className:n("text-Pl font-semibold [&+div]:text-Et",e),...t}));yr.displayName=ze.Title.displayName;var xr=mo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(ze.Description,{ref:a,className:n("text-Pl opacity-90",e),...t}));xr.displayName=ze.Description.displayName;function td(){let{toasts:e}=Jr();return(0,Et.jsxs)(Zr,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,Et.jsxs)(vr,{...s,children:[(0,Et.jsxs)("div",{className:"grid gap-1",children:[a&&(0,Et.jsx)(yr,{children:a}),o&&(0,Et.jsx)(xr,{children:o})]}),r,(0,Et.jsx)(hr,{})]},t)}),(0,Et.jsx)(br,{})]})}var ad=v(require("react")),Li=v(require("@radix-ui/react-toggle"));var wr=(0,Fl.cva)("inline-flex items-center justify-center gap-2 rounded-md text-Pl 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-Pl hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",Pl:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),Bi=ad.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,Et.jsx)(Li.Root,{ref:r,className:n(wr({variant:t,size:a,className:e})),...o}));Bi.displayName=Li.Root.displayName;var po=v(require("react")),jo=v(require("@radix-ui/react-toggle-group"));var sd=po.createContext({size:"default",variant:"default"}),Ei=po.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,Et.jsx)(jo.Root,{ref:s,className:n("flex items-center justify-center gap-1",e),...r,children:(0,Et.jsx)(sd.Provider,{value:{variant:t,size:a},children:o})}));Ei.displayName=jo.Root.displayName;var zi=po.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let l=po.useContext(sd);return(0,Et.jsx)(jo.Item,{ref:s,className:n(wr({variant:l.variant||a,size:l.size||o}),e),...r,children:t})});zi.displayName=jo.Item.displayName;var Hi=v(require("react")),Ft=v(require("@radix-ui/react-scroll-area"));var la=Hi.forwardRef(({className:e,children:t,...a},o)=>(0,Et.jsxs)(Ft.Root,{ref:o,className:n("relative overflow-hidden",e),...a,children:[(0,Et.jsx)(Ft.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Et.jsx)(ts,{}),(0,Et.jsx)(Ft.Corner,{})]}));la.displayName=Ft.Root.displayName;var ts=Hi.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,Et.jsx)(Ft.ScrollAreaScrollbar,{ref:o,orientation:t,className:n("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,Et.jsx)(Ft.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));ts.displayName=Ft.ScrollAreaScrollbar.displayName;var id=v(require("react")),qt=v(require("@radix-ui/react-popover"));var Nr=qt.Root,Cr=qt.Trigger,nd=qt.Anchor,_o=id.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Et.jsx)(qt.Portal,{children:(0,Et.jsx)(qt.Content,{ref:r,align:t,sideOffset:a,className:n("Et-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));_o.displayName=qt.Content.displayName;var ld=v(require("react")),Oi=v(require("@radix-ui/react-label"));var Bp=(0,Fl.cva)("text-Pl font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),be=ld.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(Oi.Root,{ref:a,className:n(Bp(),e),...t}));be.displayName=Oi.Root.displayName;var md=v(require("react")),uo=v(require("@radix-ui/react-hover-card"));var pd=uo.Root,ud=uo.Trigger,ji=md.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Et.jsx)(uo.Content,{ref:r,align:t,sideOffset:a,className:n("Et-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o}));ji.displayName=uo.Content.displayName;var Pr=v(require("react")),Ae=v(require("@radix-ui/react-dialog"));var Ot=Ae.Root,as=Ae.Trigger,_i=Ae.Portal,os=Ae.Close,rs=Pr.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(Ae.Overlay,{ref:a,className:n("fixed inset-0 Et-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));rs.displayName=Ae.Overlay.displayName;var Dt=Pr.forwardRef(({className:e,children:t,...a},o)=>(0,Et.jsxs)(_i,{children:[(0,Et.jsx)(rs,{}),(0,Et.jsxs)(Ae.Content,{ref:o,className:n("fixed left-[50%] top-[50%] Et-50 grid w-full max-w-lg translate-x-[-50%] translate-Et-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-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%] Pl:rounded-lg",e),...a,children:[t,(0,Et.jsxs)(Ae.Close,{className:"absolute right-4 top-4 rounded-Pl opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Et.jsx)(Yl.X,{className:"h-4 w-4"}),(0,Et.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Dt.displayName=Ae.Content.displayName;var Kt=({className:e,...t})=>(0,Et.jsx)("div",{className:n("flex flex-col space-Et-1.5 text-center Pl:text-left",e),...t});Kt.displayName="DialogHeader";var Gi=({className:e,...t})=>(0,Et.jsx)("div",{className:n("flex flex-col-reverse Pl:flex-row Pl:justify-end Pl:space-x-2",e),...t});Gi.displayName="DialogFooter";var Qt=Pr.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(Ae.Title,{ref:a,className:n("text-lg font-semibold leading-none tracking-tight",e),...t}));Qt.displayName=Ae.Title.displayName;var $i=Pr.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(Ae.Description,{ref:a,className:n("text-Pl text-muted-foreground",e),...t}));$i.displayName=Ae.Description.displayName;var Va=v(require("react")),st=require("cmdk");var ss=Va.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(st.Command,{ref:a,className:n("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));ss.displayName=st.Command.displayName;var vd=({children:e,...t})=>(0,Et.jsx)(Ot,{...t,children:(0,Et.jsx)(Dt,{className:"overflow-hidden p-0",children:(0,Et.jsx)(ss,{className:"[&Et[cmdk-group-heading]]:px-2 [&Et[cmdk-group-heading]]:font-medium [&Et[cmdk-group-heading]]:text-muted-foreground [&Et[cmdk-group]:not([hidden])Et~[cmdk-group]]:pt-0 [&Et[cmdk-group]]:px-2 [&Et[cmdk-input-wrapper]_svg]:h-5 [&Et[cmdk-input-wrapper]_svg]:w-5 [&Et[cmdk-input]]:h-12 [&Et[cmdk-item]]:px-2 [&Et[cmdk-item]]:py-3 [&Et[cmdk-item]_svg]:h-5 [&Et[cmdk-item]_svg]:w-5",children:e})})}),Wi=Va.forwardRef(({className:e,...t},a)=>(0,Et.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,Et.jsx)(Yl.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,Et.jsx)(st.Command.Input,{ref:a,className:n("flex h-10 w-full rounded-md bg-transparent py-3 text-Pl outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Wi.displayName=st.Command.Input.displayName;var Ui=Va.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(st.Command.List,{ref:a,className:n("max-h-[300px] overflow-Et-auto overflow-x-hidden",e),...t}));Ui.displayName=st.Command.List.displayName;var Vi=Va.forwardRef((e,t)=>(0,Et.jsx)(st.Command.Empty,{ref:t,className:"py-6 text-center text-Pl",...e}));Vi.displayName=st.Command.Empty.displayName;var Xi=Va.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(st.Command.Group,{ref:a,className:n("overflow-hidden p-1 text-foreground [&Et[cmdk-group-heading]]:px-2 [&Et[cmdk-group-heading]]:py-1.5 [&Et[cmdk-group-heading]]:text-Et [&Et[cmdk-group-heading]]:font-medium [&Et[cmdk-group-heading]]:text-muted-foreground",e),...t}));Xi.displayName=st.Command.Group.displayName;var Yi=Va.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(st.Command.Separator,{ref:a,className:n("-mx-1 h-px bg-border",e),...t}));Yi.displayName=st.Command.Separator.displayName;var qi=Va.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(st.Command.Item,{ref:a,className:n("relative flex cursor-default gap-2 select-none items-center rounded-Pl px-2 py-1.5 text-Pl 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}));qi.displayName=st.Command.Item.displayName;var Ki=({className:e,...t})=>(0,Et.jsx)("span",{className:n("ml-auto text-Et tracking-widest text-muted-foreground",e),...t});Ki.displayName="CommandShortcut";var is=v(require("react"));var Ep=(0,Fl.cva)("relative w-full rounded-lg border px-4 py-3 text-Pl [&>svg+div]:translate-Et-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Qi=is.forwardRef(({className:e,variant:t,...a},o)=>(0,Et.jsx)("div",{ref:o,role:"alert",className:n(Ep({variant:t}),e),...a}));Qi.displayName="Alert";var Ji=is.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("h5",{ref:a,className:n("mb-1 font-medium leading-none tracking-tight",e),...t}));Ji.displayName="AlertTitle";var Zi=is.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,className:n("text-Pl [&_p]:leading-relaxed",e),...t}));Zi.displayName="AlertDescription";var ls=v(require("react")),xa=v(require("@radix-ui/react-avatar"));var vt=ls.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(xa.Root,{ref:a,className:n("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));vt.displayName=xa.Root.displayName;var ht=ls.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(xa.Image,{ref:a,className:n("aspect-square h-full w-full",e),...t}));ht.displayName=xa.Image.displayName;var yt=ls.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(xa.Fallback,{ref:a,className:n("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));yt.displayName=xa.Fallback.displayName;var en=(0,Fl.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-Et font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function xt({className:e,variant:t,...a}){return(0,Et.jsx)("div",{className:n(en({variant:t}),e),...a})}var kr=v(require("@radix-ui/react-checkbox")),Nd=v(require("react")),Jt=Nd.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(kr.Root,{className:n("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,Et.jsx)(kr.Indicator,{className:n("flex items-center justify-center text-current"),children:(0,Et.jsx)(Yl.Check,{className:"h-4 w-4"})})}));Jt.displayName=kr.Root.displayName;var X=v(require("@radix-ui/react-select")),Xa=v(require("react")),go=X.Root,zp=X.Group,bo=X.Value,Ya=Xa.forwardRef(({children:e,className:t,...a},o)=>(0,Et.jsxs)(X.Trigger,{className:n("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,Et.jsx)(X.Icon,{asChild:!0,children:(0,Et.jsx)(Yl.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Ya.displayName=X.Trigger.displayName;var tn=Xa.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(X.ScrollUpButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Et.jsx)(Yl.ChevronUp,{className:"h-4 w-4"})}));tn.displayName=X.ScrollUpButton.displayName;var an=Xa.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(X.ScrollDownButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Et.jsx)(Yl.ChevronDown,{className:"h-4 w-4"})}));an.displayName=X.ScrollDownButton.displayName;var qa=Xa.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,Et.jsx)(X.Portal,{children:(0,Et.jsxs)(X.Content,{className:n("relative Et-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-Et-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-Et-1",t),position:a,ref:r,...o,children:[(0,Et.jsx)(tn,{}),(0,Et.jsx)(X.Viewport,{className:n("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Et.jsx)(an,{})]})}));qa.displayName=X.Content.displayName;var Cd=Xa.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(X.Label,{className:n("py-1.5 pl-8 pr-2 text-Pl font-semibold",e),ref:a,...t}));Cd.displayName=X.Label.displayName;var Ka=Xa.forwardRef(({children:e,className:t,...a},o)=>(0,Et.jsxs)(X.Item,{className:n("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-Pl outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[(0,Et.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Et.jsx)(X.ItemIndicator,{children:(0,Et.jsx)(Yl.Check,{className:"h-4 w-4"})})}),(0,Et.jsx)(X.ItemText,{children:e})]}));Ka.displayName=X.Item.displayName;var Pd=Xa.forwardRef(({className:e,...t},a)=>(0,Et.jsx)(X.Separator,{className:n("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Pd.displayName=X.Separator.displayName;var kd=v(require("react")),Qa=kd.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("textarea",{className:n("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-Pl 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}));Qa.displayName="Textarea";var Rd=require("react-day-picker");function Sr({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,Et.jsx)(Rd.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:n("p-3",e),classNames:{months:"flex flex-col Pl:flex-row space-Et-4 Pl:space-x-4 Pl:space-Et-0",month:"space-Et-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-Pl font-medium",nav:"space-x-1 flex items-center",nav_button:n(Oa({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-Et-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:n("relative p-0 text-center text-Pl focus-within:relative focus-within:Et-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:n(Oa({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...o})}Sr.displayName="Calendar";var on=({className:e,content:t,style:a})=>(0,Et.jsx)("div",{className:n("mx-auto my-8 w-full",e),children:(0,Et.jsx)("div",{className:n("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:(0,Et.jsx)(q,{content:t,enableGutter:!1,enableProse:!1})})});var rn=v(require("next/link")),Zt=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:l,reference:i,size:m,url:c}=e,d=t==="reference"&&typeof i?.value=="object"&&i.value.slug?`${i?.relationTo!=="pages"?`/${i?.relationTo}`:""}/${i.value.slug}`:c;if(!d)return null;let p=a==="link"?"clear":m,u=l?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,Et.jsxs)(rn.default,{className:n(r),href:d||c||"",...u,children:[s&&s,o&&o]}):(0,Et.jsx)(B,{asChild:!0,className:r,size:p,variant:a,children:(0,Et.jsxs)(rn.default,{className:n(r),href:d||c||"",...u,children:[s&&s,o&&o]})})};function ps({className:e}){return n("flex items-center min-h-[3.5rem] md:min-h-[3.75rem] w-full rounded-5 px-4 md:px-5 py-2"," bg-transparent text-accent-800 placeholder:text-accent-800 dark:text-body dark:placeholder:text-body"," border border-solid border-accent-900 border-opacity-20 dark:border-opacity-20 dark:border-accent-200"," focus:border-accent-900 focus:ring-0 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0","transition-all duration-300",e)}function Hp({className:e,...t}){return(0,Et.jsx)("input",{...t,className:ps({className:e})})}function us({icon:e,...t}){return(0,Et.jsxs)("div",{className:"relative w-full",children:[(0,Et.jsx)(Hp,{...t}),e&&(0,Et.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-Et-1/2 text-accent",children:e})]})}function Fp({className:e,...t}){return(0,$o.jsx)("textarea",{...t,className:n(ps({}),"resize-none md:min-h-[130px]",e)})}function Dd({icon:e,...t}){return(0,$o.jsxs)("div",{className:"relative w-full",children:[(0,$o.jsx)(Fp,{...t}),e&&(0,$o.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var Md=require("formik"),Id=require("react-icons/fa6"),vo=v(require("yup"));async function Ad(e){let{name:t,email:a,subject:o,message:r}=e,s=process.env.TEAMS_WEBHOOK_URL;if(!s)throw new Error("TEAMS_WEBHOOK_URL is not defined");let l={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.Et/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Us Form",wrap:!0,style:"heading",weight:"Bolder"},{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"TextBlock",text:"Name",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Email",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Subject",wrap:!0,weight:"Bolder"}]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:`${t}`,wrap:!0},{type:"TextBlock",text:`${a}`,wrap:!0},{type:"TextBlock",text:`${o}`,wrap:!0}]}]},{type:"TextBlock",text:`${r}`,wrap:!0}]}}]};try{let i=await fetch(s,{method:"POST",mode:"no-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!i.ok)throw console.error(i),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(i){return console.error(i),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var sn=require("sonner"),ea={tooShort:"Must be Et least ${min} characters",tooLong:"Must be Et most ${max} characters",required:"This field is required",email:"Invalid email format"},Op=vo.object().shape({name:vo.string().min(2,ea.tooShort).max(50,ea.tooLong).required(ea.required),email:vo.string().email(ea.email).required(ea.required),subject:vo.string().min(2,ea.tooShort).max(50,ea.tooLong).required(ea.required),message:vo.string().min(2,ea.tooShort).max(300,ea.tooLong).required(ea.required)}),fs=n("!pr-[44px] text-foreground"),gs=n("!border-red-600 border"),bs=n("sr-only");function vs(){return(0,Et.jsx)(Md.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:Op,onSubmit:async(e,{resetForm:t})=>{let a=await Ad(e);a.data===null?sn.toast.error(a.message):(sn.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:l})=>(0,Et.jsxs)("form",{onSubmit:l,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,Et.jsxs)("div",{children:[(0,Et.jsx)(us,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,Et.jsx)(Id.FaUser,{className:"text-primary"}),className:n(fs,e.name&&t.name&&gs)}),e.name&&t.name&&(0,Et.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:bs,children:e.name})]}),(0,Et.jsxs)("div",{children:[(0,Et.jsx)(us,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,Et.jsx)(jp,{}),className:n(fs,e.email&&t.email&&gs)}),e.email&&t.email&&(0,Et.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:bs,children:e.email})]}),(0,Et.jsxs)("div",{className:"lg:col-span-2",children:[(0,Et.jsx)(us,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:n(fs,e.subject&&t.subject&&gs)}),e.subject&&t.subject&&(0,Et.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:bs,children:e.subject})]}),(0,Et.jsxs)("div",{className:"lg:col-span-2",children:[(0,Et.jsx)(Dd,{placeholder:"Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,Et.jsx)(_p,{}),className:n(fs,e.message&&t.message&&gs)}),e.message&&t.message&&(0,Et.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:bs,children:e.message})]}),(0,Et.jsx)("div",{className:"lg:col-span-2 light grid justify-items-center",children:(0,Et.jsx)(B,{type:"submit",className:"outline px-6 rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:s,children:"Send"})})]})})}function jp(){return(0,Et.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,Et.jsx)("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function _p(){return(0,Et.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,Et.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}var Gp=({links:e,richText:t})=>(0,Et.jsx)("div",{className:"container",children:(0,Et.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,Et.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,Et.jsx)(q,{className:"mb-0",content:t,enableGutter:!1})}),(0,Et.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,Et.jsx)(Zt,{size:"lg",...a},o))})]})}),ho=({links:e,richText:t})=>{let[a,o]=(0,Pl.useState)(!1),r="accent",s=()=>o(!0),l=()=>o(!1),i=m=>{m.target===m.currentTarget&&l()};return(0,Et.jsxs)("div",{className:n("relative isolate overflow-hidden",r==="accent"?"bg-accent":"bg-black"),children:[(0,Et.jsx)("div",{className:"px-6 py-24 Pl:px-6 Pl:py-32 lg:px-8",children:(0,Et.jsxs)("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&(0,Et.jsx)(q,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),(0,Et.jsx)("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:(0,Et.jsx)("div",{className:"flex flex-col gap-8 text-white",children:(e||[]).map(({link:m},c)=>m?.url==="/contact"?(0,Et.jsx)("div",{onClick:s,className:n("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),children:m.label},c):(0,Et.jsx)(Zt,{size:"lg",className:n("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),...m},c))})})]})}),a&&(0,Et.jsx)("div",{className:"absolute inset-0 Et-50 flex items-center justify-center bg-black bg-opacity-50",onClick:i,children:(0,Et.jsxs)("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[(0,Et.jsx)("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:l,children:"\u2715"}),(0,Et.jsx)(vs,{})," "]})})]})};var hs=require("prism-react-renderer");function nn({code:e}){let[t,a]=(0,Pl.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,Et.jsx)("div",{className:"flex justify-end align-middle",children:(0,Et.jsxs)(B,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,Et.jsx)("p",{children:t}),(0,Et.jsx)("div",{className:"w-6 h-6",children:(0,Et.jsx)(Yl.ClipboardCopy,{})})]})})}var zd=({code:e,language:t=""})=>e?(0,Et.jsx)(hs.Highlight,{code:e,language:t,theme:hs.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,Et.jsxs)("pre",{className:"bg-black p-4 border text-Et border-border rounded overflow-x-auto",children:[r.map((s,l)=>(0,Et.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,Et.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:l+1}),(0,Et.jsx)("span",{className:"table-cell pl-4",children:s.map((i,m)=>(0,Et.jsx)("span",{...o({token:i})},m))})]},l)),(0,Et.jsx)(nn,{code:e})]})}):null;var dn=({className:e,code:t,language:a})=>(0,Et.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,Et.jsx)(zd,{code:t,language:a})});var Fd=v(require("next/image")),$p={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,Pl:640},Hd="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=",Od=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:l,src:i,loading:m}=e,c,d,p=t,u=i||"";if(!u&&s&&typeof s=="object"){let{alt:f,filename:h,height:L,url:S,width:x}=s;if(L&&L>500){let P=500/L;c=x*P,d=L*P}else c=x,d=L;p=f||"",u=S||Hd}let g=m||"lazy",b=l||Object.entries($p).map(([,f])=>`(max-width: ${f}px) ${f*2}w`).join(", ");return(0,Et.jsx)("picture",{children:(0,Et.jsx)(Fd.default,{alt:p||"",className:n(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:Hd,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:b,src:u,width:a?void 0:c})})};var jd=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,Pl.useRef)(null);if((0,Pl.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,Et.jsx)("video",{autoPlay:!0,className:n(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,Et.jsx)("source",{src:a.url||""})})}return null};var ta=e=>{let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&o?.mimeType?.includes("video");return(0,Et.jsx)(a||Pl.Fragment,{...a!==null?{className:t}:{},children:r?(0,Et.jsx)(jd,{...e}):(0,Et.jsx)(Od,{...e})})};var Na=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Et.jsx)("div",{className:n("h-full ",{container:a},t),children:(0,Et.jsx)(ta,{imgClassName:n("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var fn=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Et.jsx)("div",{className:n("",{container:a},t),children:(0,Et.jsx)(ta,{imgClassName:n("rounded-[0.8rem]",o),resource:r,src:s})})};var xo=({title:e,description:t,features:a,id:o,nested:r=!1})=>(0,Et.jsxs)("section",{className:n(r?"w-full":"container",""),children:[(0,Et.jsxs)("div",{className:"prose prose:max-w-none",children:[e&&(0,Et.jsx)("h2",{className:"mb-6 mt-0 text-primary",id:o||"",children:e}),t&&typeof t=="string"&&(0,Et.jsx)("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&(0,Et.jsx)("div",{className:"mb-5 text-foreground",children:(0,Et.jsx)(q,{content:t,enableGutter:!1})})]}),(0,Et.jsx)("div",{className:`grid gap-6 mt-6 md:grid-cols-${a?a.length>2?2:a.length:1} lg:grid-cols-${a?a.length>3?3:a.length:1}`,children:a&&a.map((s,l)=>{let i=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,icon:s.icon.icon}};return(0,Et.jsx)(Wo,{title:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,settings:{...s.settings,width:"auto",order:l},link:s.link?{...s.link,label:"Learn more"}:void 0,icon:i()??{type:"none",icon:null}},l)})})]});var ws=v(require("react"));function Tr({nodes:e}){return(0,Et.jsx)(ws.Fragment,{children:e?.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,Et.jsx)(ws.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,Et.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,Et.jsx)("em",{children:s},a)),t.format&4&&(s=(0,Et.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,Et.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,Et.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,Et.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,Et.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,Et.jsx)("table",{children:(0,Et.jsx)("tbody",{children:t.children.map((s,l)=>(0,Et.jsx)("It",{children:s.children.map((i,m)=>(0,Et.jsx)("td",{children:Tr({nodes:i.children})},m))},l))})},a);let o=s=>{if(s.children==null)return null;if(s?.type==="list"&&s?.listType==="check")for(let l of s.children)"checked"in l&&(l?.checked||(l.checked=!1));return Tr({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,l=s?.blockType;if(!s||!l)return null;switch(l){case"cta":return(0,Et.jsx)(ho,{...s},a);case"mediaBlock":return(0,Et.jsx)(Na,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return(0,Et.jsx)(fn,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,Et.jsx)(on,{className:"col-start-2 mb-4",...s},a);case"code":return(0,Et.jsx)(dn,{className:"col-start-2",...s},a);case"features":return(0,Et.jsx)(xo,{...s,nested:!0},a);case"reusableContentBlock":Tr({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,Et.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,Et.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t?.tag;return(0,Et.jsx)(s,{className:"col-start-2",id:t?.id||"",children:r},a)}case"list":{let s=t?.tag;return(0,Et.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return t?.checked!=null?(0,Et.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:r},a):(0,Et.jsx)("li",{value:t?.value,children:r},a);case"quote":return(0,Et.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,Et.jsx)(Zt,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}case"autolink":{let s=t.fields;return(0,Et.jsx)(Zt,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var q=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>t?(0,Et.jsx)("div",{className:n({"container ":a,"max-w-none":!a,"mx-auto prose":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&Tr({nodes:t?.root?.children})}):null;var et=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,l=o??"",i=r+s+" fa-"+a+" "+l;return(0,$d.jsx)("i",{className:i})};var Ud=v(require("next/image"));function Wd(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Wo({image:e,icon:t,title:a,subtitle:o,content:r,statistic:s,settings:l,link:i,className:m}){let c={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:"bg-background"},d={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,Et.jsxs)("a",{href:i?.url||"#",className:n("min-w-56 max-w-xl h-full flex flex-col group bg-background",e?"p-0":"p-6 md:p-8",l&&!e&&c[l?.card==="default"?"solid":l?.card],e&&"bg-foreground",l&&l?.card==="outline"?"text-gray-900":"text-white",d[l?.width??"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",l&&`intersect:animate-delay-${l.order||1}00`,m),children:[e&&(0,Et.jsx)("div",{className:"relative aspect-[16/9] w-full",children:(0,Et.jsx)(Ud.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,Et.jsxs)("div",{className:n(e?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[(0,Et.jsxs)("div",{className:"flex flex-col flex-grow",children:[o&&(0,Et.jsx)("div",{className:"text-primary uppercase text-Pl font-light mb-4",children:o}),(0,Et.jsx)("div",{className:"flex items-start gap-4 mb-4",children:(0,Et.jsx)(Wp,{icon:{type:t?.type||"fa-light",iconName:t?.icon||"no-icon-error"},heading:a??"",variant:l?.card==="default"?"solid":l?.card??"solid",iconSize:l?.iconSize||"large"})}),r&&typeof r=="object"&&(0,Et.jsx)(q,{enableGutter:!1,content:r,enableProse:!1,className:n("prose-Pl prose-p:text-lg prose-headings:text-xl","space-Et-3",l?.card==="outline"||l?.card==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",e&&"prose-headings:text-background prose-p:text-background")}),r&&typeof r=="string"&&(0,Et.jsx)("div",{className:n("prose-Pl prose-p:text-lg prose-headings:text-xl","space-Et-3",l?.card==="outline"||l?.card==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:r})]}),i&&i.url&&(0,Et.jsx)("div",{className:"mt-6",children:(0,Et.jsx)("span",{className:"text-accent font-semibold uppercase text-Pl block hover:text-accent/80 transition-colors",children:i?.label||"Find out more"})})]})]})}var Wp=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="small"&&e.iconName!="no-icon-error"?(0,Et.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,Et.jsx)("div",{className:n(a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),Wd(e)&&(0,Et.jsx)("div",{className:n("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"-mr-2 ml-1 mt-1":""),children:(0,Et.jsx)(et,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="no-icon-error"?(0,Et.jsxs)("div",{className:"flex flex-col gap-4",children:[Wd(e)&&(0,Et.jsx)("div",{className:n("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,Et.jsx)(et,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Et.jsx)("h3",{className:n("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):(0,Et.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Et.jsx)("div",{className:n("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Vd=v(require("next/image")),Xd=v(require("next/link"));var wo=v(require("react"));var Ce=wo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,className:n("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Ce.displayName="Card";var Ve=wo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,className:n("flex flex-col space-Et-1.5 p-6",e),...t}));Ve.displayName="CardHeader";var Xe=wo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,className:n("font-semibold leading-none tracking-tight",e),...t}));Xe.displayName="CardTitle";var gn=wo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,className:n("text-Pl text-muted-foreground",e),...t}));gn.displayName="CardDescription";var Ie=wo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,className:n("p-6 pt-0",e),...t}));Ie.displayName="CardContent";var bn=wo.forwardRef(({className:e,...t},a)=>(0,Et.jsx)("div",{ref:a,className:n("flex items-center p-6 pt-0",e),...t}));bn.displayName="CardFooter";function Yd({name:e,logo:t,href:a}){return(0,Et.jsx)(Ce,{className:"w-full max-w-Pl overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,Et.jsxs)(Xd.default,{href:a,className:"block",children:[(0,Et.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,Et.jsx)("div",{className:"relative w-full h-full",children:t&&(0,Et.jsx)(Vd.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,Et.jsx)(Ie,{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,Et.jsx)("p",{className:"font-medium text-lg text-white text-center group-hover:scale-105 transition-transform duration-200 ease-in-out",children:e})})]})})}function qd({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=i=>{switch(i){case"birthday":return(0,$e.jsx)(Yl.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,$e.jsx)(Yl.Award,{className:"h-4 w-4"});case"companyEvent":return(0,$e.jsx)(Yl.PartyPopper,{className:"h-4 w-4"});default:return(0,$e.jsx)(Yl.CalendarDays,{className:"h-4 w-4"})}},l=i=>{switch(i){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 to-slate-500"}};return(0,$e.jsxs)(Ce,{className:`w-full max-w-md overflow-hidden bg-gradient-to-br ${l(e)}`,children:[(0,$e.jsxs)(Ve,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,$e.jsxs)(vt,{className:"h-14 w-14 border-2 border-white",children:[(0,$e.jsx)(ht,{src:r,alt:a||"Event"}),(0,$e.jsx)(yt,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,$e.jsxs)("div",{className:"flex flex-col",children:[(0,$e.jsx)(Xe,{className:"text-xl",children:a||"Untitled Event"}),(0,$e.jsxs)("p",{className:"text-Pl text-white/80",children:[(0,$e.jsx)(Yl.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,$e.jsxs)(Ie,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,$e.jsx)("p",{className:"mb-2 text-Pl text-gray-700",children:o}),(0,$e.jsxs)(xt,{variant:"secondary",className:`${l(e)} text-white/80`,children:[s(e),(0,$e.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-Et])([A-Et])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}var Qd=v(require("next/link"));var Jd=v(require("next/image")),Kd={Pl:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function Zd({slug:e,image:t,title:a,description:o}){return(0,Et.jsxs)(Qd.default,{href:e,className:"group/portfolio relative Et-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,Et.jsx)("span",{className:n("absolute inset-0 Et-[2] bg-gradient-1 from-primary/0 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,Et.jsx)(Jd.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
11
11
  (min-width:${Kd.md}) 50vw,
12
12
  (min-width:${Kd.lg}) 25vw,
13
13
  100vw
@@ -15,7 +15,7 @@
15
15
  dark bg-background text-primary`,children:[(0,Et.jsxs)("div",{className:"flex px-6 items-center space-x-2",children:[e&&(0,Et.jsx)("img",{src:e.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Et.jsx)("span",{className:"pl-12 text-Pl",children:"Power up your people"})]}),(0,Et.jsx)("a",{href:"https://cortexreply.com",className:"text-Pl hover:underline",children:"cortexreply.com"})]}),Ir=({title:e})=>(0,Et.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,Et.jsx)("div",{className:"container",children:(0,Et.jsx)("span",{className:"container text-4xl px-6",children:e})})}),Lr=e=>{let{title:t,hero:a,logoImage:o}=e;return(0,Et.jsxs)("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,Et.jsx)("div",{className:"absolute inset-0",children:(0,Et.jsx)(An.default,{src:a.media&&a.media.url?a.media.url:"/hero.png",alt:"Background",width:a.media&&a.media.width?a.media.width??1920:1920,height:a.media&&a.media.height?a.media.height??1080:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),(0,Et.jsx)("div",{className:"absolute left-16 Et-50 top-4 flex flex-col items-start gap-4",children:o&&(0,Et.jsx)("div",{className:"h-24",children:(0,Et.jsx)(An.default,{src:o.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),(0,Et.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,Et.jsxs)("div",{className:"relative pl-24 Et-10 max-w-3xl",children:[(0,Et.jsx)("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:t}),a.richText&&(0,Et.jsx)(q,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var As=e=>{let[t,a]=(0,Pl.useState)(0),{blocks:o,hero:r,logoImage:s}=e,l=o&&Array.isArray(o)&&o.length>0,m=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o],c=f=>{a(f)},d=()=>{a(f=>(f+1)%m.length)},p=()=>{a(f=>(f-1+m.length)%m.length)},g=(0,Pl.useCallback)(((f,h)=>{let L;return(...S)=>{clearTimeout(L),L=setTimeout(()=>f(...S),h)}})(f=>{f.deltaY>0?d():p()},300),[]),b=f=>{f.key==="ArrowDown"?d():f.key==="ArrowUp"&&p()};return(0,Pl.useEffect)(()=>(window.addEventListener("wheel",g),window.addEventListener("keydown",b),()=>{window.removeEventListener("wheel",g),window.removeEventListener("keydown",b)}),[]),(0,Et.jsxs)("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[(0,Et.jsx)("div",{className:"fixed left-0 top-0 flex h-screen w-9 Et-10 flex-col items-center justify-center bg-gray-900",children:l&&m.map((f,h)=>(0,Et.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${t===h?"bg-accent":"bg-gray-600"}`,onClick:()=>c(h),children:(0,Et.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-Et-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:f.blockName})},f.id))}),(0,Et.jsx)(qo.AnimatePresence,{children:m.map((f,h)=>(0,Et.jsx)("div",{id:`slide-${h}`,className:"print-section",children:(0,Et.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,Et.jsx)(Lr,{hero:r,title:e.title,logoImage:s}):(0,Et.jsxs)(Et.Fragment,{children:[f.blockName&&(0,Et.jsx)(Ir,{title:f.blockName}),(0,Et.jsx)(eo,{blocks:[f],fill:!0}),(0,Et.jsx)(wc,{logoImage:s})]})})},h))}),(0,Et.jsx)("button",{className:"absolute bottom-4 left-1 Et-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:d,children:(0,Et.jsx)(xu,{})})]})},xu=()=>(0,Et.jsx)(qo.AnimatePresence,{children:(0,Et.jsx)(qo.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:n("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-accent"),children:(0,Et.jsx)(qo.motion.div,{initial:{Et:0},animate:{Et:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:n("w-[12px] h-[12px] rounded-full","bg-accent")})})});var Nc=v(require("next/link")),Cc=v(require("next/image"));function Pc({blogs:e,width:t=3}){return(0,Et.jsx)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:(0,Et.jsx)("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>(0,Et.jsx)(Nc.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,Et.jsxs)("div",{className:"relative size-full",children:[(0,Et.jsx)(Cc.default,{src:a.image?.src||"/assets/images/blog/gradient.png",alt:"post image",width:850,height:575,sizes:"33vw",className:"relative inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,Et.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,Et.jsxs)("div",{className:"text-Pl text-card-foreground mb-2",children:[a.authors&&a.authors.map(r=>`${r.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),(0,Et.jsx)("h2",{className:"text-xl font-bold text-foreground group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:a.title})]})]})},o))})})}function kc({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:l,companiesCount:i,dealsClosed:m,leadsGenerated:c}){return(0,Et.jsx)("div",{className:"overflow-hidden bg-white py-24 Pl:py-32",children:(0,Et.jsxs)("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,Et.jsxs)("div",{className:"max-w-4xl",children:[(0,Et.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,Et.jsx)("h1",{className:"mt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 Pl:text-5xl",children:e}),(0,Et.jsx)("p",{className:"mt-6 text-balance text-xl/8 text-gray-700",children:a})]}),(0,Et.jsxs)("section",{className:"mt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-x-8 lg:gap-Et-16",children:[(0,Et.jsxs)("div",{className:"lg:pr-8",children:[(0,Et.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,Et.jsx)("p",{className:"mt-6 text-base/7 text-gray-600",children:r})]}),(0,Et.jsx)("div",{className:"pt-16 lg:row-span-2 lg:-mr-16 xl:mr-auto",children:(0,Et.jsx)("div",{className:"-mx-8 grid grid-cols-2 gap-4 Pl:-mx-16 Pl:grid-cols-4 lg:mx-0 lg:grid-cols-2 lg:gap-4 xl:gap-8",children:s.map((d,p)=>(0,Et.jsx)("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:(0,Et.jsx)("img",{alt:"",src:d,className:"block size-full object-cover"})},p))})}),(0,Et.jsxs)("div",{className:"max-lg:mt-16 lg:col-span-1",children:[(0,Et.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,Et.jsx)("hr",{className:"mt-6 border-t border-gray-200"}),(0,Et.jsxs)("dl",{className:"mt-6 grid grid-cols-1 gap-x-8 gap-Et-4 Pl:grid-cols-2",children:[(0,Et.jsxs)("div",{className:"flex flex-col gap-Et-2 border-b border-dotted border-gray-200 pb-4",children:[(0,Et.jsx)("Et",{className:"text-Pl/6 text-gray-600",children:"Raised"}),(0,Et.jsxs)("Fl",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",l]})]}),(0,Et.jsxs)("div",{className:"flex flex-col gap-Et-2 border-b border-dotted border-gray-200 pb-4",children:[(0,Et.jsx)("Et",{className:"text-Pl/6 text-gray-600",children:"Companies"}),(0,Et.jsxs)("Fl",{className:"order-first text-6xl font-semibold tracking-tight",children:[i,"Et"]})]}),(0,Et.jsxs)("div",{className:"flex flex-col gap-Et-2 max-Pl:border-b max-Pl:border-dotted max-Pl:border-gray-200 max-Pl:pb-4",children:[(0,Et.jsx)("Et",{className:"text-Pl/6 text-gray-600",children:"Deals Closed"}),(0,Et.jsxs)("Fl",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"Et"]})]}),(0,Et.jsxs)("div",{className:"flex flex-col gap-Et-2",children:[(0,Et.jsx)("Et",{className:"text-Pl/6 text-gray-600",children:"Leads Generated"}),(0,Et.jsxs)("Fl",{className:"order-first text-6xl font-semibold tracking-tight",children:[c,"Et"]})]})]})]})]})]})})}function wu(e){var t=document.createElement("div");t.style.display="block",t.style.height=e,document.body.appendChild(t);var a=parseFloat(window.getComputedStyle(t,null).height);return t.parentNode&&t.parentNode.removeChild(t),Math.floor(a)}var Qo=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)},Mn=({page:e,layout:t="portrait",logoImage:a})=>t==="flow"?(0,Et.jsx)(Sc,{page:e,layout:t,logoImage:a}):(0,Et.jsx)(Rc,{page:e,layout:t,logoImage:a}),Sc=({page:e,layout:t="portrait",logoImage:a})=>{let{contentWithIds:o}=Bo(e),r=(0,Pl.useRef)(null),s=(0,Pl.useRef)(null),l=(0,Pl.useRef)(new _h.Previewer),i={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};(0,Pl.useEffect)(()=>{let d=document.getElementById("printable-content");if(d){let p=document.createElement("style");return p.textContent=`@page { size: ${Qo(d.offsetWidth)}Yl ${Qo(d.offsetHeight)}Yl ; margin: 0mm; width: ${Qo(d.offsetWidth)}Yl }; .container : { max-width: ${Qo(d.offsetWidth)}Yl; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(p),()=>{document.head.removeChild(p)}}},[t]);let m=(0,Pl.useCallback)(()=>{if(!s.current)return;s.current&&(s.current.innerHTML="");let d=document.getElementById("printable-content");d&&l.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${Qo(d.offsetWidth)}Yl ${Qo(d.offsetHeight)}Yl ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],s.current).catch(p=>console.error("Paged.js error:",p))},[t]);(0,Pl.useEffect)(()=>{l.current=new _h.Previewer},[m,t]);let c=[i,...o];return(0,Et.jsxs)("div",{children:[(0,Et.jsx)("div",{className:"w-[1123px] print:w-[1123px]",children:(0,Et.jsxs)("div",{id:"printable-content",ref:r,children:[c.map((d,p)=>(0,Et.jsx)(Et.Fragment,{children:p===0?(0,Et.jsx)("section",{className:"title-page w-full h-full",children:(0,Et.jsx)(Lr,{hero:e.hero,title:e.title})},p):(0,Et.jsxs)("section",{className:"normal-page overflow-hidden",children:[d.blockName&&(0,Et.jsx)(Ir,{title:d.blockName}),(0,Et.jsx)(eo,{blocks:[d],fill:!0})]},p)})),(0,Et.jsx)("section",{className:"normal-page",children:(0,Et.jsxs)("div",{className:`w-full py-2 px-8 flex justify-between items-center
18
- dark bg-background text-primary`,children:[(0,Et.jsxs)("div",{className:"flex px-6 items-center space-x-2",children:[a&&(0,Et.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Et.jsx)("span",{className:"pl-12 text-Pl",children:"Power up your people"})]}),(0,Et.jsx)("a",{href:"https://cortexreply.com",className:"text-Pl hover:underline",children:"cortexreply.com"})]})})]})}),(0,Et.jsx)("div",{ref:s,className:"preview-container"})]})},Rc=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=Bo(e),o=(0,Pl.useRef)(null),r=(0,Pl.useRef)(null),s=(0,Pl.useRef)(new _h.Previewer),[l,i]=(0,Pl.useState)(0),c=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,Pl.useCallback)(()=>{o.current&&(o.current&&(o.current.innerHTML=""),s.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],o.current).then(p=>i(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[t]);return(0,Pl.useEffect)(()=>{s.current=new _h.Previewer,d()},[d,t]),(0,Pl.useEffect)(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),(0,Et.jsxs)("div",{className:"pagedjs-container",children:[(0,Et.jsx)("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:c.map((p,u)=>(0,Et.jsx)(Et.Fragment,{children:u===0?(0,Et.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,Et.jsx)(Lr,{hero:e.hero,title:e.title})},u):(0,Et.jsxs)("section",{className:n("pagedjs-section normal-page h-[699px]",`h-[${wu("185mm")}px]`,p.theme?.settings?.theme==="dark"?"dark":"light"),children:[p.blockName&&(0,Et.jsx)(Ir,{title:p.blockName}),(0,Et.jsx)(eo,{blocks:[p],fill:!0})]},u)}))}),(0,Et.jsx)("div",{ref:o,className:"preview-container"})]})};var In=v(require("clsx"));function Nu({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:l,loading:i=!1,LinkComponent:m,...c}){let p=m?u=>(0,Et.jsx)(m,{...u}):l?({href:u,children:g,...b})=>(0,Et.jsx)("button",{onClick:()=>l&&l(u),className:"flex items-center justify-start w-full text-Pl text-left px-4 py-2",...b,children:g}):u=>(0,Et.jsx)("a",{...u});return(0,Et.jsxs)(no,{...c,variant:"inset",children:[(0,Et.jsx)(lo,{children:(0,Et.jsx)(bt,{children:(0,Et.jsx)(Ze,{children:i?(0,Et.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Et.jsx)(De,{className:"bg-gray-200 my-2 w-full h-7"}),(0,Et.jsx)(De,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,Et.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Et.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,Et.jsx)("span",{className:"truncate text-Pl",children:o})]})})})}),i&&(0,Et.jsxs)(ja,{children:[(0,Et.jsx)(De,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(De,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(De,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(De,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(De,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(De,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(De,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(De,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(De,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(De,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,Et.jsxs)(ja,{children:[e&&!i&&e.map((u,g)=>(0,Et.jsx)(Cu,{subNav:u,pathName:r,Link:p},g)),(0,Et.jsx)(zt,{className:"mt-auto",children:(0,Et.jsx)(Yt,{children:(0,Et.jsx)(bt,{children:t&&!i&&t.map(u=>(0,Et.jsx)(Ze,{children:(0,Et.jsx)(Ht,{asChild:!0,size:"Pl",children:(0,Et.jsxs)(p,{href:u.url||"",children:[u.icon&&(0,Et.jsx)(u.icon,{}),(0,Et.jsx)("span",{children:u.label})]})})},u.label))})})})]}),(0,Et.jsx)(co,{})]})}function Cu({subNav:e,pathName:t,Link:a}){let o=e,r=!1;return o.links&&o.links.map(s=>{s.url===t&&(r=!0)}),(0,Et.jsx)(ba,{defaultOpen:!0,className:"group/collapsible",children:(0,Et.jsx)(zt,{className:"py-0",children:(0,Et.jsx)(bt,{children:(0,Et.jsx)(ba,{asChild:!0,defaultOpen:o.isActive,children:(0,Et.jsxs)(Ze,{children:[(0,Et.jsx)(Ht,{asChild:!0,tooltip:o.label,className:(0,In.default)(r&&"font-bold text-accent"),children:(0,Et.jsxs)(a,{href:o.url,children:[o.icon&&(0,Et.jsx)(o.icon,{}),(0,Et.jsx)("span",{children:o.label})]})}),o.links?.length?(0,Et.jsxs)(Et.Fragment,{children:[(0,Et.jsx)(Ha,{asChild:!0,children:(0,Et.jsxs)(fr,{className:"data-[state=open]:rotate-90",children:[(0,Et.jsx)(Yl.ChevronRight,{}),(0,Et.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,Et.jsx)(Fa,{children:(0,Et.jsx)(_a,{children:o.links?.map(s=>(0,Et.jsx)(Ga,{children:(0,Et.jsx)($a,{asChild:!0,className:(0,In.default)(s.url===t&&"font-bold text-accent"),children:(0,Et.jsx)(a,{href:s.url,children:(0,Et.jsx)("span",{children:s.label})})})},s.label))})})]}):null]})},o.label)})})})}var Dc=v(require("clsx"));var Pu=()=>(0,Et.jsx)(et,{iconName:"github",size:"10x"});function ku({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:l,onPrintDocument:i,onGithubClick:m,onNavClick:c,LinkComponent:d,...p}){let b=d?f=>(0,Et.jsx)(d,{...f}):c?({item:f,children:h,...L})=>(0,Et.jsx)("button",{onClick:()=>c&&c(f),className:"flex items-center justify-start w-full text-Pl text-left px-4 py-2",...L,children:h}):f=>(0,Et.jsx)("a",{href:f.href,...f});return(0,Et.jsxs)(no,{side:"right",variant:"inset",...p,children:[(0,Et.jsxs)(lo,{className:"border-b border-sidebar-border",children:[(0,Et.jsxs)(bt,{className:"flex-row space-x-1",children:[(0,Et.jsx)(Ze,{children:(0,Et.jsxs)(Ht,{onClick:s,children:[(0,Et.jsx)(Yl.FilePlus,{})," ",(0,Et.jsx)("span",{children:"Add Document"})]})}),m&&(0,Et.jsx)(Ze,{children:(0,Et.jsx)(Ht,{onClick:m,tooltip:"Open in GitHub",children:(0,Et.jsx)(Pu,{})})})]}),(0,Et.jsxs)(bt,{className:"flex-row space-x-1",children:[(0,Et.jsx)(Ze,{className:"w-5/12",children:(0,Et.jsxs)(Ht,{onClick:()=>l(),variant:r?"outline":"default",className:(0,Dc.default)(r&&"text-accent"),children:[(0,Et.jsx)(Yl.Edit,{})," ",(0,Et.jsx)("span",{children:"Edit"})]})}),(0,Et.jsx)(Ze,{className:"w-5/12",children:(0,Et.jsxs)(Ht,{onClick:i,children:[(0,Et.jsx)(Yl.Printer,{})," ",(0,Et.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,Et.jsxs)(Et.Fragment,{children:[(0,Et.jsx)(ba,{defaultOpen:!0,className:"group/collapsible",children:(0,Et.jsxs)(zt,{children:[(0,Et.jsx)(ha,{asChild:!0,children:(0,Et.jsxs)(Ha,{children:["Editor Controls",(0,Et.jsx)(Yl.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Et.jsx)(Yt,{children:(0,Et.jsx)(Fa,{children:a})})]})}),(0,Et.jsx)(ur,{className:"mx-0"})]}),(0,Et.jsxs)(ja,{className:"overflow-auto",children:[o&&(0,Et.jsxs)(Et.Fragment,{children:[(0,Et.jsxs)(zt,{children:[(0,Et.jsx)(ha,{children:"Related Content"}),(0,Et.jsx)(Yt,{children:(0,Et.jsx)(bt,{children:Array.from({length:3}).map((f,h)=>(0,Et.jsx)(Ze,{children:(0,Et.jsx)(De,{className:"bg-gray-200 w-full h-10"})},h))})})]}),(0,Et.jsxs)(zt,{children:[(0,Et.jsx)(ha,{children:"Table of Contents"}),(0,Et.jsx)(Yt,{children:(0,Et.jsx)(bt,{children:Array.from({length:3}).map((f,h)=>(0,Et.jsx)(Ze,{children:(0,Et.jsx)(De,{className:"bg-gray-200 w-full h-10"})},h))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,Et.jsx)(ba,{defaultOpen:!0,className:"group/collapsible",children:(0,Et.jsxs)(zt,{children:[(0,Et.jsx)(ha,{asChild:!0,children:(0,Et.jsxs)(Ha,{children:["Related Content",(0,Et.jsx)(Yl.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Et.jsx)(Yt,{children:(0,Et.jsx)(Fa,{children:(0,Et.jsx)(bt,{children:e&&Object.keys(e).map(f=>(0,Et.jsxs)(Ze,{children:[(0,Et.jsxs)("span",{className:"p-2 text-Et text-sidebar-foreground",children:[" ",f.charAt(0).toUpperCase()+f.slice(1)]}),f&&e[f]&&(0,Et.jsx)(_a,{children:e[f].map(h=>(0,Et.jsx)(Ga,{children:(0,Et.jsx)($a,{asChild:!0,isActive:!1,size:"Pl",children:(0,Et.jsxs)(b,{href:h.url,item:h,className:"flex justify-between items-center w-full text-Et",children:[(0,Et.jsx)("span",{children:h.label}),h.type==="note"&&(0,Et.jsx)(Yl.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),h.type==="draft"&&(0,Et.jsx)(et,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},h.label))})]},f))})})})]})}),t&&!o&&(0,Et.jsx)(ba,{defaultOpen:!0,className:"group/collapsible",children:(0,Et.jsxs)(zt,{children:[(0,Et.jsx)(ha,{asChild:!0,children:(0,Et.jsxs)(Ha,{children:["Table of Contents",(0,Et.jsx)(Yl.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Et.jsx)(Yt,{children:(0,Et.jsx)(Fa,{children:(0,Et.jsx)(bt,{children:t.map(f=>(0,Et.jsxs)(Ze,{children:[(0,Et.jsx)(Ht,{asChild:!0,children:(0,Et.jsx)("a",{href:`#${f.url}`,className:"text-Et",children:f.title})}),f.items?.length?(0,Et.jsx)(_a,{children:f.items.map(h=>(0,Et.jsx)(Ga,{children:(0,Et.jsx)($a,{asChild:!0,isActive:h.isActive,size:"Pl",children:(0,Et.jsx)("a",{href:`#${h.url}`,className:"flex justify-between items-center w-full text-Et",children:(0,Et.jsx)("span",{children:h.title})})})},h.title))}):null]},f.title))})})})]})})]}),(0,Et.jsx)(co,{})]})}var Mc=v(require("next/image"));function Su({title:e,members:t}){return(0,Et.jsx)(Ce,{className:"mb-6",children:(0,Et.jsxs)("div",{className:"p-6",children:[(0,Et.jsxs)("div",{className:"flex items-center mb-4",children:[(0,Et.jsx)(Yl.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,Et.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,Et.jsx)("div",{className:"space-Et-4",children:t.map((a,o)=>(0,Et.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,Et.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,Et.jsx)(Mc.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,Et.jsxs)("div",{children:[(0,Et.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,Et.jsx)("p",{className:"text-Pl text-muted-foreground",children:a.role})]})]},o))})]})})}var Ic=v(require("next/link"));var Ru=({links:e,title:t="Related Content"})=>(0,Et.jsxs)(Ce,{children:[(0,Et.jsx)(Ve,{children:(0,Et.jsx)(Xe,{className:"text-accent",children:t})}),(0,Et.jsx)(Ie,{children:(0,Et.jsx)("nav",{className:"flex flex-col space-Et-2",children:e.map((a,o)=>(0,Et.jsxs)(Ic.default,{href:a.url,className:"inline-flex items-center text-Pl text-primary dark:text-foreground hover:text-accent",children:[a.title,a.url.startsWith("http")&&(0,Et.jsx)(Yl.ExternalLink,{className:"ml-1 h-3 w-3"})]},o))})})]});var Ln=n("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function Bn({pages:e}){let t=(0,pc.useSearchParams)(),a=(0,pc.usePathname)(),{replace:o}=(0,pc.useRouter)(),{totalPages:r,page:s}=e,[l,i]=(0,Pl.useState)({start:s>3?s-3:1,end:s+2}),m=p=>{p==="left"&&l.start>1?i(u=>({start:u.start-1,end:u.end-1})):p==="right"&&l.end<r&&i(u=>({start:u.start+1,end:u.end+1}))};function c(p){let u=new URLSearchParams(t);p?u.set("page",p):u.delete("page"),o(`${a}?${u.toString()}`)}if(r<=1)return null;let d=[];for(let p=l.start;p<=l.end;p++)d.push(p);return(0,$t.jsx)("div",{className:"mt-12",children:(0,$t.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[l.start>1&&(0,$t.jsx)("li",{children:(0,$t.jsx)("button",{className:n(Ln,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>m("left"),children:(0,$t.jsx)(Id.FaArrowLeft,{})})}),d.map((p,u)=>(0,$t.jsx)("li",{children:(0,$t.jsx)("a",{className:n(Ln,p===s?"border-accent bg-accent text-accent-foreground":"border-accent"),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:g=>{g.preventDefault(),c(p.toString())},children:p})},u)),l.end<r&&(0,$t.jsx)("li",{children:(0,$t.jsx)("button",{className:n(Ln,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>m("right"),children:(0,$t.jsx)(Id.FaArrowRight,{})})})]})})}var Ny=n("transition-colors duration-400 hover:text-primary ease-in-out");function En({title:e,links:t}){let a=(0,pc.useSearchParams)(),o=(0,pc.usePathname)(),{replace:r}=(0,pc.useRouter)();function s(l){let i=new URLSearchParams(a);l?i.set("category",l):i.delete("category"),r(`${o}?${i.toString()}`)}return(0,Et.jsxs)(Ce,{children:[(0,Et.jsx)(Ve,{children:(0,Et.jsx)(Xe,{className:"text-accent",children:e&&e})}),(0,Et.jsx)(Ie,{children:t&&t.length>0&&(0,Et.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Et.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((l,i)=>(0,Et.jsxs)("li",{className:"flex items-center text-Pl text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:m=>{m.preventDefault(),s(l.href)},children:[l.label,(0,Et.jsx)(Yl.ExternalLink,{className:"ml-1 h-3 w-3"})]},i))})})})]})}function Hn({types:e}){let[t,a]=(0,Pl.useState)(e&&e[0].href),o=(0,pc.useSearchParams)(),r=(0,pc.usePathname)(),{replace:s}=(0,pc.useRouter)();function l(i){let m=new URLSearchParams(o);i?m.set("type",i):m.delete("type"),a(i),s(`${r}?${m.toString()}`)}return(0,Et.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-x-auto pb-4 mb-6",children:e&&e.map((i,m)=>(0,Et.jsx)(B,{variant:i.href===t?"default":"ghost",className:n("rounded-full whitespace-nowrap text-foreground border border-accent hover:bg-accent hover:text-accent-foreground",i.href===t&&"bg-accent text-accent-foreground"),onClick:()=>l(i.href),children:i.label},m))})}var Hc=v(require("next/image"));var Fn=({links:e,media:t,children:a,richText:o})=>(0,Et.jsx)("div",{children:(0,Et.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,Et.jsxs)("div",{className:"fixed inset-0 container mt-24 mb-8 Et-10 flex items-start justify-center",children:[a||o&&(0,Et.jsx)(q,{className:"max-w-none mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,Et.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,Et.jsx)("li",{children:(0,Et.jsx)(Zt,{...r})},s))})]}),(0,Et.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,Et.jsx)(ta,{fill:!0,imgClassName:"Et-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,Et.jsx)("div",{children:(0,Et.jsx)(Hc.default,{className:"-Et-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Et.jsx)("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),(0,Et.jsx)(Tu,{})]})}),Tu=()=>(0,Et.jsx)("div",{className:"w-full h-[1240px] Et-10",children:(0,Et.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[(0,Et.jsx)("defs",{children:(0,Et.jsxs)("mask",{id:"mask",children:[(0,Et.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,Et.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Et.jsx)("rect",{Et:"330",width:"1920",height:"7",fill:"white"})," "]})});var On=v(require("next/image"));var Du=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,Et.jsx)(On.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:r||"",width:s||0,height:o||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,Et.jsx)("div",{children:(0,Et.jsx)(On.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},jn=({links:e,media:t,children:a,richText:o})=>(0,Et.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,Et.jsx)(Du,{media:t}),(0,Et.jsx)("div",{className:"mx-0 min-w-full relative Et-9",children:(0,Et.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,Et.jsx)(q,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var _n=({children:e,richText:t})=>(0,Et.jsx)("div",{className:"min-w-full py-10 bg-muted mt-24",children:(0,Et.jsx)("div",{className:"container",children:e||t&&(0,Et.jsx)(q,{content:t,enableGutter:!1})})});var Oc=v(require("react")),jc=v(require("next/image"));var Fc=e=>{let a=new Date;e&&(a=new Date(e));let o=a.getMonth(),r=a.getDate(),s=o+1<10?`0${o+1}`:o+1,l=r<10?`0${r}`:r,i=a.getFullYear();return`${l}/${s}/${i}`};var Ls=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${o}${(l=>{if(l>3&&l<21)return"th";switch(l%10){case 1:return"st";case 2:return"nd";case 3:return"Et";default:return"th"}})(o)} ${r}`};var Au=({post:e})=>{let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,Et.jsxs)("div",{className:"relative grid pt-24",children:[(0,Et.jsx)("div",{className:"relative Et-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground pt-24 p-6 lg:p-12",children:(0,Et.jsxs)("div",{className:"container mx-auto",children:[(0,Et.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,Et.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,Et.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Et.jsxs)("p",{className:"text-Pl",children:["Author",o.length>1?"s":""]}),(0,Et.jsx)("p",{children:o.map((l,i)=>(0,Et.jsxs)(Oc.default.Fragment,{children:[l.name,i<o.length-2&&", ",i===o.length-2&&(o.length>2?", and ":" and ")]},l.id))})]}),r&&(0,Et.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Et.jsx)("p",{className:"text-Pl",children:"Date Published"}),(0,Et.jsx)("time",{dateTime:r,children:Fc(r)})]}),t&&t.length>0&&(0,Et.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Et.jsx)("p",{className:"text-Pl font-medium",children:"Categories"}),(0,Et.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((l,i)=>typeof l=="object"&&l!==null&&(0,Et.jsx)(xt,{className:"px-3 py-1 mx-1",children:l.title||"Untitled category"},l.id||i))})]})]})]})}),(0,Et.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,Et.jsx)(jc.default,{className:"object-cover",alt:`Cover image for ${s}`,src:a?.image?.url||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,Et.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-to-t from-background dark:from-black to-transparent"})]})]})};var Bs=require("@heroicons/react/20/solid");var Gn=v(require("next/image"));function Ct({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=n("container",t&&"full-width",a&&"no-padding",o);return(0,Et.jsx)("div",{className:r,children:e})}var Gc=require("next-themes");function Mu({children:e,...t}){return(0,$c.jsx)(Gc.ThemeProvider,{...t,children:e})}var Mt=({position:e,className:t=""})=>{let a=["","scale(-1, 1)","scale(1, -1)","scale(-1, -1)"],o=a[Math.floor(Math.random()*a.length)];if(e==="header")return(0,Et.jsx)("div",{className:"w-full h-[1240px] Et-20",children:(0,Et.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:n(t,"absolute -bottom-[2px] flex"),children:[(0,Et.jsx)("defs",{children:(0,Et.jsxs)("mask",{id:"mask",children:[(0,Et.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,Et.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Et.jsx)("rect",{Et:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,Et.jsxs)("div",{className:"w-full Et-20 aspect-[1920/332] overflow-hidden ",children:[(0,Et.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:n(t,"absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end",transform:"scale(-1, 1)"},children:[(0,Et.jsx)("defs",{children:(0,Et.jsxs)("mask",{id:"mask",children:[(0,Et.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]}),(0,Et.jsx)("div",{className:"absolute -bottom-[5px] border-none left-0 w-full h-[6px] Et-10 bg-white"})]});if(e==="dark-top")return(0,Et.jsx)("div",{className:"w-full aspect-[1920/332] Et-20 content-end block overflow-hidden",children:(0,Et.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:n(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[(0,Et.jsx)("defs",{children:(0,Et.jsxs)("mask",{id:"mask",children:[(0,Et.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-bottom")return(0,Et.jsx)("div",{className:"w-full aspect-[1920/332] Et-20 content-start block overflow-hidden bg-white",children:(0,Et.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"scale(1, -1)"},className:n(t,"w-full block overflow-hidden"),children:(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="light-bottom")return(0,Et.jsx)("div",{className:"w-full aspect-[1920/332] Et-20 content-end block overflow-hidden",children:(0,Et.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:n(t,"w-full block overflow-hidden"),transform:a[3],children:(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="bottom-left"||e==="bottom-right")return(0,Et.jsx)("div",{className:"w-full aspect-[1920/332] Et-20 relative -bottom-[1px]",children:(0,Et.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"rotateX(180deg)"},className:n(t,"w-full block overflow-hidden"),children:(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},Iu=({className:e})=>(0,Et.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:n(e,"absolute w-full h-full"),children:[(0,Et.jsx)("defs",{children:(0,Et.jsxs)("mask",{id:"mask",children:[(0,Et.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,Et.jsx)("polygon",{fill:"white",points:"0 0 0 201.561092 0 1036.200679 0 1087.625789 1255.099121 1240.909908 1920 908.450984 1920 201.561092 1920 0 0 0"})]})}),(0,Et.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var $n=({title:e,image:t})=>(0,Et.jsx)("div",{children:(0,Et.jsxs)("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[(0,Et.jsx)("div",{className:"fixed inset-0 container mt-24 mb-8 Et-10 flex items-start justify-start",children:(0,Et.jsx)("h1",{className:"text-5xl md:text-6xl",children:e})}),(0,Et.jsxs)("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&(0,Et.jsx)(Gn.default,{priority:!0,src:t.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"}),t&&typeof t=="string"&&(0,Et.jsx)("div",{children:(0,Et.jsx)(Gn.default,{className:"-Et-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Et.jsx)("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),(0,Et.jsx)(Mt,{className:"text-black Et-10",position:"header"})]})});var Lu={highImpact:Fn,lowImpact:_n,mediumImpact:jn,sectionHero:$n},Bu=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Lu[t];return a?(0,Et.jsx)(a,{...e}):null};function Eu({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,Et.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,Et.jsxs)("ol",{role:"list",className:"flex items-center space-x-4",children:[(0,Et.jsx)("li",{children:(0,Et.jsx)("div",{children:(0,Et.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,Et.jsx)(Bs.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,Et.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,Et.jsx)("li",{children:(0,Et.jsxs)("div",{className:"flex items-center",children:[(0,Et.jsx)(Bs.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,Et.jsx)("a",{href:a.href,className:"ml-4 text-Pl font-medium text-foreground hover:text-accent",children:a.label}):(0,Et.jsx)("div",{className:"ml-4 text-Pl font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,Et.jsx)(Et.Fragment,{})}var It=require("@headlessui/react"),Hs=require("@heroicons/react/24/outline");var zu=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,Et.jsx)("a",{href:o,className:"flex items-center gap-x-1 text-Pl text-foreground group",children:(0,Et.jsxs)("span",{className:"relative",children:[e,(0,Et.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]})}):(0,Et.jsxs)(It.Popover,{children:[(0,Et.jsxs)(It.PopoverButton,{className:"flex items-center gap-x-1 text-Pl/6 text-foreground outline-none group",children:[(0,Et.jsxs)("span",{className:"relative",children:[e,(0,Et.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,Et.jsx)(Bs.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,Et.jsxs)(It.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -Et-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-Et-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,Et.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 Et-50",children:t&&t.map(r=>(0,Et.jsxs)("div",{className:"group relative rounded-lg p-6 text-Pl/6 box-border",children:[(0,Et.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:r.icon&&(0,Et.jsx)(Wc,{icon:r.icon,size:"4x"})}),(0,Et.jsxs)("a",{href:r.href,className:"mt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,Et.jsx)("span",{className:"absolute inset-0"})]}),(0,Et.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,Et.jsx)("div",{className:"bg-gray-50",children:(0,Et.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Et.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:a.map(r=>(0,Et.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-x-2.5 p-3 text-Pl/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,Et.jsx)(Wc,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),Wc=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,Et.jsx)(et,{...e,size:a});if("src"in e)return(0,Et.jsx)("div",{className:n(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,Et.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},Es=zu;var zs=["light","dark","green"];function Hu({title:e,logo:t,menuItems:a}){let[o,r]=(0,Pl.useState)(!1),[s,l]=(0,Pl.useState)(!1),[i,m]=(0,Pl.useState)("light"),c=t?.split(".")[0],d=t?.split(".")[1],[p,u]=(0,Pl.useState)(`${c}.${d}`),g=f=>{zs.includes(f)?u(f==="light"?`${c}.${d}`:`${c}-${f}.${d}`):u(`${c}.${d}`)};(0,Pl.useEffect)(()=>{let f=localStorage.getItem("theme")||"light";m(f),document.documentElement.setAttribute("class",f),g(f)},[]);let b=()=>{let f=zs[(zs.indexOf(i)+1)%zs.length];m(f),document.documentElement.setAttribute("class",f),localStorage.setItem("theme",f),g(f)};return(0,Et.jsxs)("header",{className:"relative isolate Et-10 bg-background h-14",children:[(0,Et.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,Et.jsx)("div",{className:"flex lg:flex-1",children:(0,Et.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Et.jsx)("span",{className:"sr-only",children:e}),(0,Et.jsx)("img",{alt:e,src:p,className:"h-9 w-auto"})]})}),(0,Et.jsx)("div",{className:"flex lg:hidden",children:(0,Et.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 outline-none",children:[(0,Et.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Et.jsx)(Hs.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,Et.jsx)(It.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:a.map(f=>(0,Et.jsx)(Es,{...f},f.name))}),(0,Et.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,Et.jsx)("button",{onClick:b,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,Et.jsx)(Bs.SunIcon,{className:"h-6 w-6"}):i==="green"?(0,Et.jsx)(Bs.MoonIcon,{className:"h-6 w-6"}):(0,Et.jsx)(Bs.SunIcon,{className:"h-6 w-6"})})})]}),(0,Et.jsxs)(It.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,Et.jsx)("div",{className:"fixed inset-0 Et-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Et.jsxs)(It.DialogPanel,{className:"fixed inset-Et-0 right-0 Et-20 w-full overflow-Et-auto bg-white px-6 py-6 Pl:max-w-Pl Pl:ring-1 Pl:ring-gray-900/10",children:[(0,Et.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Et.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Et.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,Et.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,Et.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,Et.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Et.jsx)(Hs.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Et.jsx)("div",{className:"mt-6 flow-root",children:(0,Et.jsx)("div",{className:"-my-6 divide-Et divide-gray-500/10",children:(0,Et.jsx)("div",{className:"space-Et-2 py-6",children:a.map(f=>(0,Et.jsx)(Fu,{...f},f.name))})})})]})]})]})}function Fu({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Et.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,Et.jsxs)(It.Disclosure,{as:"div",className:"-mx-3",children:[(0,Et.jsx)(It.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,Et.jsx)(It.DisclosurePanel,{className:"mt-2 space-Et-2",children:t&&t.map(r=>(0,Et.jsx)(It.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-Pl font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}function Ou({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let l=()=>{let i=document.getElementById("next-section");i&&i.scrollIntoView({behavior:"smooth"})};return(0,Et.jsx)("div",{children:(0,Et.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,Et.jsxs)("video",{className:"fixed inset-0 object-cover w-full h-full Et-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,Et.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,Et.jsx)("div",{className:"fixed inset-0 h-full Et-10 flex flex-col items-start justify-center text-white px-4",children:(0,Et.jsx)(Ct,{children:(0,Et.jsxs)("div",{className:"flex flex-col items-start md:w-2/3 mb-10 Et-0 md:mb-0",children:[(0,Et.jsx)("h1",{className:"text-5xl md:text-7xl mb-6",children:r&&r}),(0,Et.jsx)("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,Et.jsx)(Mt,{className:"text-black Et-10",position:"header"})]})})}var Wn=v(require("next/image"));function to({logoLight:e,logoDark:t,mobile:a=!1}){return(0,Et.jsxs)(Qe,{href:"/",className:n(a?"py-1":"py-2"),children:[(0,Et.jsx)(Wn.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}}),(0,Et.jsx)(Wn.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 Un({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[l,i]=(0,Pl.useState)(!1),[m,c]=(0,Pl.useState)(""),d=["light","dark"],{theme:p,setTheme:u}=(0,Gc.useTheme)();(0,Pl.useEffect)(()=>{c(p||"dark")},[p]);let g=()=>{let b=d[(d.indexOf(m)+1)%d.length];c(b),u(b)};return(0,Pl.useEffect)(()=>{let b=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),(0,Et.jsx)(Et.Fragment,{children:(0,Et.jsx)("header",{className:`Et-50 pb-10 transition-all duration-300 hidden lg:block ${l||e?"translate-Et-0":"-translate-Et-full bg-transparent"}`,children:(0,Et.jsx)("nav",{className:"backdrop-blur-Pl bg-background/80 text-white p-0",children:(0,Et.jsxs)("div",{className:n("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,Et.jsx)(to,{logoDark:a,logoLight:t}),(0,Et.jsx)(It.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:o&&o.map(b=>(0,Et.jsx)(Es,{...b},b.name))}),r&&(0,Et.jsx)("button",{className:"fixed right-4 Et-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-Pl transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:g,children:(0,Et.jsxs)("div",{className:"relative",children:[(0,Et.jsx)(Yl.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Et.jsx)(Yl.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var Vn=["light","dark"];function Xn({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,Pl.useState)(!1),{theme:l,setTheme:i}=(0,Gc.useTheme)(),[m,c]=(0,Pl.useState)(!1),[d,p]=(0,Pl.useState)("light");(0,Pl.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,Pl.useEffect)(()=>{p(l||"dark")},[l]);let u=()=>{let g=Vn[(Vn.indexOf(d)+1)%Vn.length];p(g),i(g)};return(0,Et.jsx)(Et.Fragment,{children:(0,Et.jsxs)("header",{className:`Et-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-Et-0":"-translate-Et-full bg-transparent"}`,children:[(0,Et.jsx)("nav",{className:n("backdrop-blur-Pl text-white p-0",m&&"hidden"),children:(0,Et.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&Et.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,Et.jsx)(to,{logoDark:t,logoLight:e,mobile:!0}),(0,Et.jsx)("div",{className:"flex items-center space-x-4",children:(0,Et.jsxs)("button",{type:"button",onClick:()=>c(!0),className:"fixed right-4 Et-[60] p-2 rounded-full bg-white/10 backdrop-blur-Pl transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,Et.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Et.jsx)(Hs.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,Et.jsxs)(It.Dialog,{open:m,onClose:c,className:"lg:hidden",children:[(0,Et.jsx)("div",{className:"fixed inset-0 Et-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Et.jsxs)(It.DialogPanel,{className:"fixed inset-Et-0 right-0 Et-20 w-full overflow-Et-auto bg-background dark:bg-[#212124] px-2 Pl:max-w-Pl Pl:ring-1 Pl:ring-gray-900/10",children:[(0,Et.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,Et.jsx)(to,{logoDark:t,logoLight:e,mobile:!0}),(0,Et.jsxs)("button",{type:"button",onClick:()=>c(!1),className:"-m-2.5 rounded-md p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[(0,Et.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Et.jsx)(Hs.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Et.jsx)("div",{className:"mt-6 flow-root",children:(0,Et.jsx)("div",{className:"-my-6 divide-Et divide-gray-500/10",children:(0,Et.jsx)("div",{className:"space-Et-2 px-2 py-6",children:a&&a.map(g=>(0,Et.jsx)(ju,{...g},g.name))})})})]})]})]})})}function ju({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Et.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}):(0,Et.jsxs)(It.Disclosure,{as:"div",className:"-mx-3",children:[(0,Et.jsx)(It.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}),(0,Et.jsx)(It.DisclosurePanel,{className:"mt-2 space-Et-2",children:t&&t.map(r=>(0,Et.jsx)(It.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-Pl dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var Px=n("text-base/[1.75] transition-transform duration-350 hover:-translate-Et-1 block px-4"),qc=n("text-brand-green text-md leading-[1.25] md:text-lg mb-5 md:mb-[1.5rem]"),Yn=n("bg-brand-green rounded-full p-3 mr-4 text-2xl"),qn=n("flex items-center text-white gap-3"),js=n("transition-colors duration-300 hover:text-accent dark:hover:text-white");function _u({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:l,footerBottom:i}=t,m=void 0;return(0,Et.jsxs)("footer",{className:n("sticky Et-2 flex flex-col dark bg-black overflow-hidden pt-12 prose-base",e),children:[(0,Et.jsx)("div",{className:"py-16 md:py-20",children:(0,Et.jsx)("div",{className:"container",children:(0,Et.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-3",children:[(0,Et.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,Et.jsx)(to,{logoDark:o,logoLight:a}),(0,Et.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,Et.jsx)("nav",{"aria-label":"social links",children:(0,Et.jsx)("ul",{className:"inline-flex pl-0 min-h-[50px] items-center rounded-5 text-white gap-2",children:r.socialLinks.map((c,d)=>(0,Et.jsx)("li",{className:"bg-primary rounded-full p-3",children:(0,Et.jsx)(Qe,{"aria-label":c.href,className:"text-2xl",href:c.href,openNewTab:!0,children:(0,Et.jsx)("span",{children:c.icon})})},d))})})]}),(0,Et.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,Et.jsx)("h3",{className:qc,children:s.title}),s.links&&s.links.length>0&&(0,Et.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Et.jsx)("ul",{className:"grid pl-0 gap-2",children:s.links.map(c=>(0,Et.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,Et.jsx)("span",{className:"flex-none text-Pl/[1] text-white",children:(0,Et.jsx)(Id.FaChevronRight,{})}),(0,Et.jsx)(Qe,{href:c.href,openNewTab:c.openNewTab,className:js,children:c.label})]},c.label))})})]}),(0,Et.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,Et.jsx)("h3",{className:qc,children:l.title}),(0,Et.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-2 pl-0",children:[(0,Et.jsxs)("li",{className:qn,children:[(0,Et.jsx)("span",{className:Yn,children:(0,Et.jsx)(Id.FaPaperPlane,{})}),(0,Et.jsx)("address",{className:"not-italic",children:l.location})]}),(0,Et.jsxs)("li",{className:qn,children:[(0,Et.jsx)("span",{className:Yn,children:(0,Et.jsx)(Id.FaEnvelope,{})}),l.mails&&l.mails.length>0&&(0,Et.jsx)("div",{className:"grid gap-1",children:l.mails.map((c,d)=>(0,Et.jsx)("a",{href:`mailto:${c}`,className:js,children:c},d))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,Et.jsxs)("li",{className:qn,children:[(0,Et.jsx)("span",{className:Yn,children:(0,Et.jsx)(Id.FaPhone,{})}),(0,Et.jsx)("div",{className:"grid gap-1",children:l.phoneNumbers.map((c,d)=>(0,Et.jsx)("a",{href:`tel:${c.split(" ").join("")}`,className:js,children:c},d))})]})]})]})]})})}),(0,Et.jsx)("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,Et.jsx)("div",{className:"container",children:(0,Et.jsxs)("div",{className:"flex flex-wrap items-center text-Et justify-between gap-x-8 gap-Et-4 md:gap-x-10",children:[(0,Et.jsx)("p",{children:i.copyrightText}),i.links&&i.links.length>0&&(0,Et.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,Et.jsx)("ul",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:i.links.map(c=>(0,Et.jsx)("li",{children:(0,Et.jsx)(Qe,{"aria-label":`Et to page ${c.label}`,href:c.href,openNewTab:c.openNewTab,className:js,children:c.label})},c.label))})})]})})})]})}function Gu({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:l=!1}){return(0,Et.jsxs)("div",{className:n("fixed top-0 left-0 right-0 Et-50",r),children:[(0,Et.jsx)(Un,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:l,wide:s}),(0,Et.jsx)(Xn,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function Kn({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,Pl.useState)([]),s=(0,pc.useRouter)(),l=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},i=d=>{r(p=>p.includes(d)?p.filter(u=>u!==d):[...p,d])},m=async()=>{let d=await t(o);d.success?(sn.toast.success(d.message),s.refresh()):sn.toast.error(`Error: ${d.message}`),r([])},c=async()=>{let d=await a(o);d.success?(sn.toast.success(d.message),s.refresh()):sn.toast.error(`Error: ${d.message}`),r([])};return(0,Et.jsxs)("div",{className:"space-Et-4",children:[(0,Et.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Et.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,Et.jsxs)("div",{className:"space-x-2",children:[(0,Et.jsx)(B,{onClick:m,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,Et.jsx)(B,{onClick:c,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,Et.jsx)("div",{className:"overflow-hidden Pl:rounded-md",children:(0,Et.jsxs)("ul",{className:"divide-Et divide-gray-200",children:[(0,Et.jsx)("li",{className:"px-4 py-4 Pl:px-6",children:(0,Et.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Et.jsxs)("div",{className:"flex items-center",children:[(0,Et.jsx)(Jt,{id:"select-all",checked:o.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,Et.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-Pl font-medium text-foreground",children:"Select All"})]}),(0,Et.jsxs)("span",{className:"text-Pl font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,Et.jsx)("li",{className:"px-4 py-4 Pl:px-6 group hover:bg-gray-50",children:(0,Et.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Et.jsxs)("div",{className:"flex items-center",children:[(0,Et.jsx)(Jt,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>i(d.id),className:"border-accent"}),(0,Et.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,Et.jsxs)(vt,{className:"h-10 w-10",children:[(0,Et.jsx)(ht,{src:d.userImage,alt:d.userName}),(0,Et.jsx)(yt,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),(0,Et.jsx)("div",{className:"ml-3",children:(0,Et.jsx)("p",{className:"text-Pl font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,Et.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Et.jsxs)("span",{className:"text-Pl text-gray-500",children:[new Date(d.startDate).toLocaleDateString(),d.startDate!==d.endDate&&` - ${new Date(d.endDate).toLocaleDateString()}`,d.leaveType!="Full Day"&&` (${d.leaveType})`,` - ${d.totalDays} day${d.totalDays!==1?"s":""}`]}),(0,Et.jsx)(xt,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,Et.jsx)(sn.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"Et-50"})]})}var Qn=require("date-fns");var Jc=[{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 Fr=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=Jc.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},Zc=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!Fr(o))return .5;for(;o<=r;)Fr(o)||s++,o.setDate(o.getDate()+1);return s},em=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var $u=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,Et.jsx)("div",{className:"flex space-x-2",children:e.map((r,s)=>(0,Et.jsx)(B,{type:"button",variant:t===r?"default":"outline",onClick:()=>a(r),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:r},r))});function Zn({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,Pl.useState)(new Date),[r,s]=(0,Pl.useState)(new Date),[l,i]=(0,Pl.useState)("Full Day"),[m,c]=(0,Pl.useState)(!1),[d,p]=(0,Pl.useState)(1),u=(0,pc.useRouter)();(0,Pl.useEffect)(()=>{let f=em(a,r);c(f),f&&i("Full Day")},[a,r]),(0,Pl.useEffect)(()=>{if(!a||!r){p(0);return}let f=Zc(a,r,l!=="Full Day");p(f)},[a,r,l]);let g=f=>{i(f)};return(0,Et.jsxs)("div",{className:"max-w-2xl",children:[(0,Et.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,Et.jsxs)("p",{className:"text-Pl text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,Et.jsxs)("form",{onSubmit:async f=>{if(f.preventDefault(),!a||!r){sn.toast.error("Please select both start and end dates");return}if(d>e){sn.toast.error("You do not have enough leave days remaining");return}let h=new FormData;h.append("startDate",a.toISOString()),h.append("endDate",r.toISOString()),h.append("leaveType",l),h.append("duration",d.toString());let L=await(t||Wu)(h);L.success?(sn.toast.success(L.message),o(void 0),s(void 0),i("Full Day"),u.refresh()):sn.toast.error(`Error: ${L.message}`)},className:"space-Et-4",children:[(0,Et.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Et.jsxs)("div",{className:"flex flex-col space-Et-2",children:[(0,Et.jsx)(be,{htmlFor:"startDate",children:"Start Date"}),(0,Et.jsxs)(Nr,{children:[(0,Et.jsx)(Cr,{asChild:!0,children:(0,Et.jsxs)(B,{variant:"outline",className:n("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,Et.jsx)(Yl.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,Qn.format)(a,"PPP"):(0,Et.jsx)("span",{children:"Pick a date"})]})}),(0,Et.jsx)(_o,{className:"w-auto p-0",align:"start",children:(0,Et.jsx)(Sr,{mode:"single",selected:a,onSelect:f=>{o(f),f&&(!r||f>r)&&s(f)},initialFocus:!0})})]})]}),(0,Et.jsxs)("div",{className:"flex flex-col space-Et-2",children:[(0,Et.jsx)(be,{htmlFor:"endDate",children:"End Date"}),(0,Et.jsxs)(Nr,{children:[(0,Et.jsx)(Cr,{asChild:!0,children:(0,Et.jsxs)(B,{variant:"outline",className:n("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,Et.jsx)(Yl.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,Qn.format)(r,"PPP"):(0,Et.jsx)("span",{children:"Pick a date"})]})}),(0,Et.jsx)(_o,{className:"w-auto p-0",align:"start",children:(0,Et.jsx)(Sr,{mode:"single",selected:r,onSelect:s,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),(0,Et.jsxs)("div",{className:"space-Et-2",children:[(0,Et.jsx)(be,{children:"Leave Type"}),(0,Et.jsx)($u,{options:["Full Day","Morning","Afternoon"],value:l,onChange:g,disabled:[!1,m,m]})]}),(0,Et.jsxs)("p",{className:"text-Pl text-gray-500",children:["Total days: ",d]}),(0,Et.jsx)(B,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,Et.jsx)(sn.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"Et-50"})]})}var Wu=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function am(...e){return e.filter(Boolean).join(" ")}function el({currentDate:e,setCurrentDate:t,holidays:a,employees:o}){let r=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},l=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},i=()=>{t(new Date)},m=c=>c.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,Et.jsxs)("div",{className:"px-4 Pl:px-6 lg:px-8",children:[(0,Et.jsxs)("div",{className:"Pl:flex Pl:items-center",children:[(0,Et.jsxs)("div",{className:"Pl:flex-auto",children:[(0,Et.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Et.jsx)("p",{className:"mt-2 text-Pl text-foreground",children:"All staff with holidays for the current month."})]}),(0,Et.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Et.jsxs)(B,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Et.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Et.jsx)(Yl.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Et.jsx)(B,{variant:"outline",onClick:i,className:"hidden border-l border-r border-accent px-3.5 text-Pl font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Et.jsxs)(B,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Et.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Et.jsx)(Yl.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,Et.jsx)("div",{className:"mt-8 flow-root",children:(0,Et.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto Pl:-mx-6 lg:-mx-8",children:(0,Et.jsx)("div",{className:"max-h-[60vh] overflow-Et-auto",children:(0,Et.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,Et.jsx)("thead",{className:"sticky top-0 Et-20 bg-white",children:(0,Et.jsxs)("It",{children:[(0,Et.jsx)("th",{scope:"col",className:"sticky left-0 top-0 Et-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-Pl font-semibold text-gray-900 backdrop-blur backdrop-filter Pl:pl-6 lg:pl-8",children:"Employee"}),[...Array(r)].map((c,d)=>{let p=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,Et.jsxs)("th",{scope:"col",className:`sticky top-0 Et-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-Pl font-semibold text-gray-900 backdrop-blur backdrop-filter ${Fr(p)?"bg-gray-200":""}`,children:[(0,Et.jsx)("div",{children:m(p)}),(0,Et.jsx)("div",{children:d+1})]},d)})]})}),(0,Et.jsx)("tbody",{children:o.map((c,d)=>(0,Et.jsxs)("It",{children:[(0,Et.jsx)("td",{className:am(d!==o.length-1?"border-gray-200":"","sticky left-0 Et-10 bg-white border-r pl-4 pr-3 text-Pl font-medium text-gray-900 Pl:pl-6 lg:pl-8"),children:(0,Et.jsxs)("div",{className:"flex items-center",children:[(0,Et.jsxs)(vt,{className:"h-11 w-11",children:[(0,Et.jsx)(ht,{src:c.image,alt:c.name}),(0,Et.jsx)(yt,{children:c.name.split(" ").map(p=>p[0]).join("")})]}),(0,Et.jsx)("div",{className:"ml-4",children:(0,Et.jsx)("div",{className:"font-medium text-accent",children:c.name})})]})}),[...Array(r)].map((p,u)=>{let g=new Date(e.getFullYear(),e.getMonth(),u+1),b=a.find(f=>f.userId===c.id&&new Date(f.startDate)<=g&&new Date(f.endDate)>=g);return(0,Et.jsx)("td",{className:am(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Fr(g)?"bg-gray-200":"bg-white"),children:(0,Et.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${b?b.status==="approved"?"bg-green-500":b.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:b?`${c.name}: ${b.status} (${b.startDate} - ${b.endDate}) - ${b.leaveType}`:"",children:b&&b.leaveType!=="Full Day"&&(0,Et.jsx)("div",{className:`h-3 w-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${c.id}-${u}`)})]},c.id))})]})})})})]})}function tl({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,Pl.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,l=Array.from({length:42},(d,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p-s+1);return{date:u,isCurrentMonth:u.getMonth()===e.getMonth(),isToday:u.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=u&&new Date(g.endDate)>=u)}}),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},m=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},c=()=>{t(new Date)};return(0,Et.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,Et.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Et.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Et.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Et.jsx)("div",{className:"flex items-center",children:(0,Et.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Et.jsxs)(B,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Et.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Et.jsx)(Yl.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Et.jsx)(B,{variant:"outline",onClick:c,className:"hidden border-l border-r border-accent px-3.5 text-Pl font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Et.jsxs)(B,{onClick:m,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Et.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Et.jsx)(Yl.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,Et.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Et.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-Et font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,Et.jsxs)("div",{className:"bg-white py-2",children:["Et",(0,Et.jsx)("span",{className:"sr-only Pl:not-sr-only",children:"on"})]}),(0,Et.jsxs)("div",{className:"bg-white py-2",children:["Et",(0,Et.jsx)("span",{className:"sr-only Pl:not-sr-only",children:"ue"})]}),(0,Et.jsxs)("div",{className:"bg-white py-2",children:["Et",(0,Et.jsx)("span",{className:"sr-only Pl:not-sr-only",children:"Yl"})]}),(0,Et.jsxs)("div",{className:"bg-white py-2",children:["Et",(0,Et.jsx)("span",{className:"sr-only Pl:not-sr-only",children:"hu"})]}),(0,Et.jsxs)("div",{className:"bg-white py-2",children:["F",(0,Et.jsx)("span",{className:"sr-only Pl:not-sr-only",children:"ri"})]}),(0,Et.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Et.jsx)("span",{className:"sr-only Pl:not-sr-only",children:"Et"})]}),(0,Et.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Et.jsx)("span",{className:"sr-only Pl:not-sr-only",children:"Et"})]})]}),(0,Et.jsxs)("div",{className:"flex bg-gray-200 text-Et leading-6 text-gray-700 lg:flex-auto overflow-visible",children:[(0,Et.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px overflow-visible",children:l.map(d=>(0,Et.jsxs)("div",{className:n(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2 overflow-visible"),children:[(0,Et.jsx)("time",{dateTime:d.date.toISOString(),className:n("flex h-6 w-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,Et.jsx)("ol",{className:"mt-2 space-Et-1 overflow-visible",children:d.holidays.map(p=>(0,Et.jsx)("li",{className:"overflow-visible",children:(0,Et.jsx)("div",{className:`text-Et px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border overflow-visible`,children:p.userName})},p.id))})]},d.date.toISOString()))}),(0,Et.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(d=>(0,Et.jsxs)("button",{type:"button",className:n(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:Et-10"),children:[(0,Et.jsx)("time",{dateTime:d.date.toISOString(),className:n("ml-auto",d.date===o&&d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,Et.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,Et.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(p=>(0,Et.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},d.date.toISOString()))})]})]})]})}var oo=require("lucide-react");function rm(...e){return e.filter(Boolean).join(" ")}function Uu({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:l,rejectLeave:i}){let[m,c]=(0,Pl.useState)("Calendar View"),d=(0,pc.useRouter)(),p=!1,u=(0,$s.parseISO)(a),g=async f=>{let h=(0,$s.format)(f,"Fl-MM-yyyy"),L=new URL(window.location.href);return L.searchParams.set("date",h),d.push(L.toString()),{success:!0}};if(p)return(0,Et.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,Et.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let b=[{name:"Grid View",icon:oo.Grid,current:m==="Grid View"},{name:"Calendar View",icon:oo.CalendarDays,current:m==="Calendar View"},{name:"Request Leave",icon:oo.PlusCircle,current:m==="Request Leave"},{name:"Approve Leave",icon:oo.CheckSquare,current:m==="Approve Leave"}];return(0,Et.jsxs)("div",{className:"container mx-auto p-4 h-full",children:[(0,Et.jsxs)("div",{className:"mb-8",children:[(0,Et.jsxs)("div",{className:"Pl:hidden",children:[(0,Et.jsx)("select",{value:m,onChange:f=>c(f.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 Pl:text-Pl",children:b.map(f=>(0,Et.jsx)("option",{children:f.name},f.name))}),(0,Et.jsx)(Yl.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,Et.jsx)("div",{className:"hidden Pl:block",children:(0,Et.jsx)("div",{className:"border-b border-gray-200",children:(0,Et.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:b.map(f=>(0,Et.jsxs)("a",{onClick:()=>{(f.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&c(f.name)},className:rm(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-Pl font-medium"),"aria-current":f.current?"page":void 0,children:[(0,Et.jsx)(f.icon,{className:rm(f.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,Et.jsx)("span",{children:f.name})]},f.name))})})})]}),m==="Grid View"&&(0,Et.jsx)(el,{currentDate:u,setCurrentDate:g,holidays:e,employees:r}),m==="Calendar View"&&(0,Et.jsx)(tl,{currentDate:u,setCurrentDate:g,holidays:e}),m==="Request Leave"&&(0,Et.jsx)(Zn,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:f=>s?s(f):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),m==="Approve Leave"&&(0,Et.jsx)(Kn,{leaveRequests:o,onApprove:f=>l?l(f):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:f=>i?i(f):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function al({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:l}){let[i,m]=(0,Pl.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[c,d]=(0,Pl.useState)(""),[p,u]=(0,Pl.useState)(!1),[g,b]=(0,Pl.useState)(null);(0,Pl.useEffect)(()=>{u(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let f=async()=>{try{let w=await s(i);w.success?(u(!1),b(null)):console.error("Failed to save deal:",w.errors)}catch(w){console.error("Failed to save deal:",w)}},h=(w,D)=>{m(ie=>({...ie,[w]:D}))},L=w=>{let D=(i.categories||[]).includes(w)?(i.categories||[]).filter(ie=>ie!==w):[...i.categories||[],w];h("categories",D)},S=async()=>{if(c.trim()){let w={text:c,timestamp:new Date().toISOString()};try{let D=await l(w);if(!D.success){console.error("Failed to add comment:",D.errors);return}}catch(D){console.error("Failed to add comment:",D)}m(D=>({...D,comments:[...D.comments||[],w]})),d("")}},x=w=>{switch(w){case"proposition":return"border-blue-800 text-blue-800";case"source":return"border-green-800 text-green-800";case"sector":return"border-purple-800 text-purple-800";default:return"border-gray-800 text-gray-800"}},P=w=>t?.find(D=>D.id===Number(w));return(0,Et.jsx)(Ot,{open:!0,children:(0,Et.jsxs)(Dt,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,Et.jsxs)(Kt,{className:"flex flex-row items-center justify-between",children:[(0,Et.jsx)(Qt,{className:"text-2xl font-bold",children:a?.name}),(0,Et.jsxs)("div",{className:"flex space-x-2",children:[(0,Et.jsx)(B,{variant:"outline",onClick:r,children:"Close"}),(0,Et.jsxs)(B,{onClick:f,disabled:!p,children:[(0,Et.jsx)(Yl.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,Et.jsxs)(la,{className:"flex-grow pr-4",children:[(0,Et.jsxs)("div",{className:"grid grid-cols-1 Pl:grid-cols-3 gap-4",children:[(0,Et.jsx)("div",{className:"grid gap-2 m-1",children:g==="value"?(0,Et.jsx)(gt,{type:"number",value:i.value,onChange:w=>h("value",Number(w.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,Et.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("value"),children:["\xA3",i.value?.toLocaleString()]})}),(0,Et.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Et.jsx)(be,{className:"text-Pl font-medium text-accent",children:"Assignee"}),g==="assignee"?(0,Et.jsxs)(go,{value:i?.assignee?.id?.toString()||"",onValueChange:w=>h("assignee",P(w)),children:[(0,Et.jsx)(Ya,{children:(0,Et.jsx)(bo,{placeholder:"Select assignee"})}),(0,Et.jsx)(qa,{children:t&&t.map(w=>(0,Et.jsx)(Ka,{value:w?.id?.toString()||"",children:w.name},w.id))})]}):(0,Et.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("assignee"),children:[(0,Et.jsx)(Yl.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,Et.jsx)("span",{children:i.assignee.name})]})]}),(0,Et.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Et.jsx)(be,{className:"text-Pl font-medium text-accent",children:"Closure Date"}),g==="closureDate"?(0,Et.jsx)(gt,{type:"date",value:i.closureDate?.split("Et")[0]??"",onChange:w=>h("closureDate",w.target.value),onBlur:()=>b(null),className:"mr-2",autoFocus:!0}):(0,Et.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("closureDate"),children:[(0,Et.jsx)(Yl.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,Et.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("en-GB"):"N/A"})]})]})]}),(0,Et.jsx)("div",{className:"grid grid-cols-1 Pl:grid-cols-1 gap-4",children:(0,Et.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Et.jsx)(be,{className:"text-Pl font-medium text-accent",children:"Description"}),g==="description"?(0,Et.jsx)(Qa,{value:i.description||"",onChange:w=>h("description",w.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,Et.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>b("description"),children:i.description})]})}),(0,Et.jsxs)("div",{className:"grid grid-cols-1 Pl:grid-cols-3 pt-2 gap-4",children:[(0,Et.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Et.jsx)(be,{className:"text-Pl font-medium text-accent",children:"Status"}),g==="status"?(0,Et.jsxs)(go,{value:i.status,onValueChange:w=>{h("status",w),b(null)},children:[(0,Et.jsx)(Ya,{children:(0,Et.jsx)(bo,{placeholder:"Select status"})}),(0,Et.jsx)(qa,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(w=>(0,Et.jsx)(Ka,{value:w,children:w},w))})]}):(0,Et.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("status"),children:i.status})]}),(0,Et.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,Et.jsx)(be,{className:"text-Pl font-medium text-accent",children:"Categories"}),g==="categories"?(0,Et.jsx)("div",{className:"grid grid-cols-2 gap-2 m-1",children:o.map(w=>(0,Et.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Et.jsx)(Jt,{id:w.id?.toString()||"",checked:(i.categories||[]).some(D=>D.id===w.id),onCheckedChange:()=>w.id!==void 0&&L(w)}),(0,Et.jsx)("label",{htmlFor:(w.id??"").toString(),className:`text-Pl font-medium ${x(w.type||"sector")} px-2 py-1 rounded`,children:w.name})]},w.id))}):(0,Et.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("categories"),children:i.categories&&i.categories.map(w=>{let D=w;return D?(0,Et.jsx)(xt,{variant:"outline",className:x(D.type||"sector"),children:D.name},D.id):null})})]})]}),(0,Et.jsxs)("div",{className:"grid grid-cols-1 Pl:grid-cols-1 pt-4 gap-4",children:[(0,Et.jsxs)("div",{className:"grid gap-2",children:[(0,Et.jsx)(be,{className:"text-Pl font-medium text-accent",children:"Comments"}),(0,Et.jsx)(la,{className:"h-[200px] overflow-Et-auto",children:(0,Et.jsx)("div",{className:"space-Et-2",children:i.comments&&i.comments.slice().sort((w,D)=>new Date(D.timestamp||"").getTime()-new Date(w.timestamp||"").getTime()).map(w=>(0,Et.jsxs)("div",{className:"p-3 rounded-lg",children:[(0,Et.jsx)("p",{className:"text-Pl text-foreground",children:w.text}),(0,Et.jsxs)("p",{className:"text-Et text-foreground mt-1",children:[w?.author?.name," - ",new Date(w.timestamp||"").toLocaleString()]})]},w.id))})}),(0,Et.jsxs)("div",{className:"flex mt-2",children:[(0,Et.jsx)(gt,{value:c,onChange:w=>d(w.target.value),placeholder:"Add a comment...",className:"flex-grow ml-1"}),(0,Et.jsxs)(B,{onClick:S,className:"ml-2",children:[(0,Et.jsx)(Yl.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,Et.jsxs)("div",{className:"text-Et text-gray-500 mt-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}function ol({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>s.type==="proposition"&&(e.categories??[]).includes(s.id));return(0,Et.jsxs)(Ce,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,Et.jsxs)(Ve,{className:"pb-2",children:[(0,Et.jsx)("div",{className:"flex justify-between items-center",children:(0,Et.jsx)(Xe,{className:"text-lg font-semibold text-foreground",children:t?.name})}),(0,Et.jsx)("p",{className:"text-Pl text-gray-500 mt-1",children:e.description})]}),(0,Et.jsxs)(Ie,{children:[(0,Et.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,Et.jsxs)("div",{className:"flex items-center text-Pl text-accent",children:[(0,Et.jsx)(Yl.UserIcon,{className:"w-4 h-4 mr-1 text-Et"}),(0,Et.jsx)("span",{children:e.assignee.name})]}),(0,Et.jsx)("div",{className:"flex items-center text-Pl font-bold text-green-600",children:(0,Et.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,Et.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,Et.jsxs)("div",{className:"flex items-center text-Et text-gray-500",children:[(0,Et.jsx)(Yl.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,Et.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,Et.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,Et.jsx)(xt,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-Et",children:r.name})})]})]})}var Us=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function rl({onSubmit:e}){let[t,a]=(0,Pl.useState)({name:"",intro:"",active:!1});return(0,Et.jsxs)("form",{onSubmit:r=>{r.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-Et-4",children:[(0,Et.jsxs)("div",{className:"space-Et-2",children:[(0,Et.jsx)(be,{htmlFor:"customerName",children:"Customer Name"}),(0,Et.jsx)(gt,{id:"customerName",value:t.name,onChange:r=>a({...t,name:r.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,Et.jsxs)("div",{className:"space-Et-2",children:[(0,Et.jsx)(be,{htmlFor:"customerIntro",children:"Intro"}),(0,Et.jsx)(Qa,{id:"customerIntro",value:t.intro??"",onChange:r=>a({...t,intro:r.target.value}),placeholder:"Enter customer intro"})]}),(0,Et.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Et.jsx)(Jt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:r=>a({...t,active:r})}),(0,Et.jsx)(be,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,Et.jsx)(B,{type:"submit",className:"w-full",children:"Add Customer"})]})}function sl({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:l}){let[i,m]=(0,Pl.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("Et")[0],closureDate:"",comments:[],description:""}),[c,d]=(0,Pl.useState)(!1),[p,u]=(0,Pl.useState)({});(0,Pl.useEffect)(()=>{r&&m(r)},[r]);let g=()=>{let x={};return i.customer||(x.customer="Customer is required"),i.value||(x.value="Value is required"),i.assignee||(x.assignee="Assignee is required"),i.closureDate||(x.closureDate="Closure Date is required"),u(x),Object.keys(x).length===0},b=async x=>{x.preventDefault(),u({});try{if(g()){let P=await o({...i});P.success?(m({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),l?.()):u(P.errors||{})}}catch{u({submit:"An error occurred while submitting the form."})}},f=x=>{m(P=>({...P,categories:(P.categories||[]).includes(x.id)?(P.categories||[]).filter(w=>w!==x.id):[...P.categories||[],x.id]}))},h=async x=>{m({...i,customer:x});try{let P=await s(x);P.success?d(!1):u(P.errors||{})}catch{u({submit:"An error occurred while submitting the form."})}},L=x=>t?.find(P=>P.id===Number(x)),S=x=>e?.find(P=>P.id===Number(x));return(0,Et.jsxs)(Et.Fragment,{children:[(0,Et.jsxs)("form",{onSubmit:b,className:"space-Et-6",children:[(0,Et.jsx)(la,{className:"h-[60vh] pr-4",children:(0,Et.jsxs)("div",{className:"space-Et-6 px-4",children:[(0,Et.jsxs)("div",{className:"space-Et-2 space-x-2",children:[(0,Et.jsx)(be,{htmlFor:"customer",children:"Customer"}),(0,Et.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Et.jsxs)(go,{value:i.customer?.id?.toString(),onValueChange:x=>m({...i,customer:S(x)}),children:[(0,Et.jsx)(Ya,{children:(0,Et.jsx)(bo,{placeholder:"Select customer"})}),(0,Et.jsx)(qa,{children:e.map(x=>(0,Et.jsx)(Ka,{value:x.id?.toString()||"",children:x.name},x.id))})]}),(0,Et.jsx)(B,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,Et.jsx)(Yl.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,Et.jsx)("p",{className:"text-red-500 text-Pl",children:p.customerId})]}),(0,Et.jsxs)("div",{className:"space-Et-2 space-x-2",children:[(0,Et.jsx)(be,{htmlFor:"value",children:"Value"}),(0,Et.jsx)(gt,{id:"value",type:"number",value:i.value||"",onChange:x=>m({...i,value:Number.parseFloat(x.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,Et.jsx)("p",{className:"text-red-500 text-Pl",children:p.value})]}),(0,Et.jsxs)("div",{className:"space-Et-2 space-x-2",children:[(0,Et.jsx)(be,{htmlFor:"assignee",children:"Assignee"}),(0,Et.jsxs)(go,{value:i.assignee?.id?.toString(),onValueChange:x=>m({...i,assignee:L(x)}),children:[(0,Et.jsx)(Ya,{children:(0,Et.jsx)(bo,{placeholder:"Select assignee"})}),(0,Et.jsx)(qa,{children:t&&t.map(x=>(0,Et.jsx)(Ka,{value:x.id?.toString()||"",children:x.name},x.id))})]}),p.assignee&&(0,Et.jsx)("p",{className:"text-red-500 text-Pl",children:p.assignee})]}),(0,Et.jsxs)("div",{className:"space-Et-2 space-x-2",children:[(0,Et.jsx)(be,{htmlFor:"description",children:"Description"}),(0,Et.jsx)(Qa,{id:"description",value:i.description||"",onChange:x=>m({...i,description:x.target.value}),placeholder:"Enter deal description"})]}),(0,Et.jsxs)("div",{className:"space-Et-2 space-x-2",children:[(0,Et.jsx)(be,{children:"Categories"}),(0,Et.jsx)("div",{className:"space-Et-4",children:["proposition","source","sector"].map(x=>(0,Et.jsxs)("div",{className:"space-Et-2",children:[(0,Et.jsx)("h4",{className:"text-Pl font-medium",children:x.charAt(0).toUpperCase()+x.slice(1)}),(0,Et.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(P=>P.type===x).map(P=>(0,Et.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Et.jsx)(Jt,{id:P.id.toString(),checked:i.categories?.includes(P.id),onCheckedChange:()=>f(P)}),(0,Et.jsx)("label",{htmlFor:P.id.toString(),className:"text-Pl font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:P.name})]},P.id))})]},x))})]}),(0,Et.jsxs)("div",{className:"space-Et-2 space-x-2",children:[(0,Et.jsx)(be,{htmlFor:"closureDate",children:"Closure Date"}),(0,Et.jsx)(gt,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:x=>m({...i,closureDate:x.target.value})}),p.closureDate&&(0,Et.jsx)("p",{className:"text-red-500 text-Pl",children:p.closureDate})]})]})}),(0,Et.jsx)(B,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,Et.jsx)(Ot,{open:c,onOpenChange:d,children:(0,Et.jsxs)(Dt,{children:[(0,Et.jsx)(Kt,{children:(0,Et.jsx)(Qt,{children:"Add New Customer"})}),(0,Et.jsx)(rl,{onSubmit:h})]})})]})}function il({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:l,calculateWeightedValue:i,addNewDeal:m,onAddCustomer:c}){let[d,p]=(0,Pl.useState)(!1);return(0,Et.jsxs)("div",{className:"flex flex-col w-80",children:[(0,Et.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),m&&(0,Et.jsxs)(Ot,{open:d,onOpenChange:p,children:[(0,Et.jsx)(as,{asChild:!0,children:(0,Et.jsxs)(B,{className:"mb-4 w-full",children:[(0,Et.jsx)(Yl.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,Et.jsxs)(Dt,{children:[(0,Et.jsx)(Kt,{children:(0,Et.jsx)(Qt,{children:"Add New Deal"})}),(0,Et.jsx)(sl,{customers:o,users:a,categories:r,onSubmit:m,onAddCustomer:c,onClose:()=>p(!1)})]})]}),(0,Et.jsx)(Us.Droppable,{droppableId:e,isDropDisabled:!1,children:u=>(0,Et.jsxs)("div",{ref:u.innerRef,...u.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((g,b)=>(0,Et.jsx)(Us.Draggable,{draggableId:g.id.toString(),index:g.id,children:f=>(0,Et.jsx)("div",{ref:f.innerRef,...f.draggableProps,...f.dragHandleProps,children:(0,Et.jsx)(ol,{deal:g,customer:g.customer,categories:r,onClick:()=>s(g)})})},g.id.toString())),u.placeholder]})}),(0,Et.jsxs)("div",{className:"mt-4 text-Pl p-3 rounded-lg shadow",children:[(0,Et.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,Et.jsxs)("span",{className:"text-green-600",children:["\xA3",l(t).toLocaleString()]})]}),(0,Et.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,Et.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var Vu=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function Xu({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){let[s,l]=(0,Pl.useState)(null),i=p=>(e.deals??[]).filter(u=>u.status===p),m=p=>p.reduce((u,g)=>u+(g.value||0),0),c=(p,u)=>{let g={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return p.reduce((b,f)=>b+(f.value||0)*g[u],0)},d=(0,Pl.useCallback)(p=>{let{source:u,destination:g}=p;if(!g||u.droppableId===g.droppableId&&u.index===g.index)return;let b=u.droppableId,f=g.droppableId,h=e.deals?.filter(S=>S.id===u.index)[0],L=[...e.deals??[]];h&&(h.status=f,a(h))},[a]);return(0,Et.jsx)(Us.DragDropContext,{onDragEnd:d,children:(0,Et.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,Et.jsx)("div",{className:"flex space-x-4 pb-4",children:Vu.filter(p=>p!=="Won"&&p!=="Lost").map(p=>{let u=i(p);return(0,Et.jsx)(il,{status:p,deals:u,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:l,calculateColumnValue:m,calculateWeightedValue:c,addNewDeal:p==="Cold"?t:void 0,onAddCustomer:r},p)})}),s&&(0,Et.jsx)(al,{deal:s,users:e.users,customer:s.customer,categories:e.categories??[],onClose:()=>l(null),onSave:a,onAddComment:p=>o(s.id.toString(),p)})]})})}function um({taskId:e,polling:t=!0,system:a="payload"}){let[o,r]=(0,Pl.useState)(null),[s,l]=(0,Pl.useState)(!1),[i,m]=(0,Pl.useState)(null),c=async(p=!0)=>{if(e){p&&l(!0);try{let u=await fetch(`/api/tasks/${e}`);if(!u.ok)throw new Error(`Failed to fetch task: ${u.statusText}`);let g=await u.json();r(g)}catch(u){console.error("Error fetching task:",u),m(u instanceof Error?u:new Error("Unknown error occurred"))}finally{p&&l(!1)}}},d=()=>c(!1);return(0,Pl.useEffect)(()=>{e&&c(!0);let p=null;return e&&t&&(p=setInterval(d,5e3)),()=>{p&&clearInterval(p)}},[e,t]),{task:o,loading:s,error:i}}var Yu=e=>{switch(e){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},qu=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function nl({data:e}){let{id:t,system:a,fetchLatest:o,taskData:r,error:s}=e||{};if(!t)return null;let l=null,i=!0,m=s,c=o||!0;if(l=r||{id:t,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},c){let{task:g,loading:b,error:f}=um({taskId:t,system:a});l=g,i=b,m=f}else i=!1;let d=Yu(l?.status||"todo"),p=qu(l?.status||"todo"),u=l?.dateLogged||new Date().toISOString();try{let g=new Date(l?.dateLogged||"");isNaN(g.getTime())||(u=(0,Qn.formatDistanceToNow)(g,{addSuffix:!0}))}catch{}return(0,Et.jsxs)(Ce,{className:n("w-full max-w-md shadow-md",m&&"border border-destructive"),children:[(0,Et.jsxs)(Ve,{className:"pb-2",children:[(0,Et.jsxs)("div",{className:"flex justify-between items-start",children:[(0,Et.jsx)(Xe,{className:"text-lg font-semibold",children:i?"Loading...":l?.name||"Task"}),(0,Et.jsx)(xt,{className:`${d}`,children:p})]}),l?.project&&(0,Et.jsxs)(gn,{className:"text-Pl text-gray-500",children:["Project: ",l.project.name]})]}),(0,Et.jsx)(Ie,{className:"pb-2",children:i?(0,Et.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):m?(0,Et.jsx)("p",{className:"text-Pl text-red-500",children:"Error loading task details"}):(0,Et.jsx)("p",{className:"text-Pl text-foreground",children:l?.description||"......."})}),(0,Et.jsx)(bn,{className:"pt-2 flex items-center justify-between",children:(0,Et.jsxs)("div",{className:"flex items-center text-Et text-gray-500",children:[(0,Et.jsx)(Yl.Clock,{className:"h-3 w-3 mr-1"}),(0,Et.jsxs)("span",{children:["Created ",u]}),(0,Et.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,Et.jsxs)("span",{children:["Task #",t]})]})})]})}var Ku={task:nl},Qu=`
18
+ dark bg-background text-primary`,children:[(0,Et.jsxs)("div",{className:"flex px-6 items-center space-x-2",children:[a&&(0,Et.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Et.jsx)("span",{className:"pl-12 text-Pl",children:"Power up your people"})]}),(0,Et.jsx)("a",{href:"https://cortexreply.com",className:"text-Pl hover:underline",children:"cortexreply.com"})]})})]})}),(0,Et.jsx)("div",{ref:s,className:"preview-container"})]})},Rc=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=Bo(e),o=(0,Pl.useRef)(null),r=(0,Pl.useRef)(null),s=(0,Pl.useRef)(new _h.Previewer),[l,i]=(0,Pl.useState)(0),c=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,Pl.useCallback)(()=>{o.current&&(o.current&&(o.current.innerHTML=""),s.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],o.current).then(p=>i(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[t]);return(0,Pl.useEffect)(()=>{s.current=new _h.Previewer,d()},[d,t]),(0,Pl.useEffect)(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),(0,Et.jsxs)("div",{className:"pagedjs-container",children:[(0,Et.jsx)("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:c.map((p,u)=>(0,Et.jsx)(Et.Fragment,{children:u===0?(0,Et.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,Et.jsx)(Lr,{hero:e.hero,title:e.title})},u):(0,Et.jsxs)("section",{className:n("pagedjs-section normal-page h-[699px]",`h-[${wu("185mm")}px]`,p.theme?.settings?.theme==="dark"?"dark":"light"),children:[p.blockName&&(0,Et.jsx)(Ir,{title:p.blockName}),(0,Et.jsx)(eo,{blocks:[p],fill:!0})]},u)}))}),(0,Et.jsx)("div",{ref:o,className:"preview-container"})]})};var In=v(require("clsx"));function Nu({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:l,loading:i=!1,LinkComponent:m,...c}){let p=m?u=>(0,Et.jsx)(m,{...u}):l?({href:u,children:g,...b})=>(0,Et.jsx)("button",{onClick:()=>l&&l(u),className:"flex items-center justify-start w-full text-Pl text-left px-4 py-2",...b,children:g}):u=>(0,Et.jsx)("a",{...u});return(0,Et.jsxs)(no,{...c,variant:"inset",children:[(0,Et.jsx)(lo,{children:(0,Et.jsx)(bt,{children:(0,Et.jsx)(Ze,{children:i?(0,Et.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Et.jsx)(De,{className:"bg-gray-200 my-2 w-full h-7"}),(0,Et.jsx)(De,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,Et.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Et.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,Et.jsx)("span",{className:"truncate text-Pl",children:o})]})})})}),i&&(0,Et.jsxs)(ja,{children:[(0,Et.jsx)(De,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(De,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(De,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(De,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(De,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(De,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(De,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(De,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(De,{className:"bg-gray-200 w-3/4 h-5"}),(0,Et.jsx)(De,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,Et.jsxs)(ja,{children:[e&&!i&&e.map((u,g)=>(0,Et.jsx)(Cu,{subNav:u,pathName:r,Link:p},g)),(0,Et.jsx)(zt,{className:"mt-auto",children:(0,Et.jsx)(Yt,{children:(0,Et.jsx)(bt,{children:t&&!i&&t.map(u=>(0,Et.jsx)(Ze,{children:(0,Et.jsx)(Ht,{asChild:!0,size:"Pl",children:(0,Et.jsxs)(p,{href:u.url||"",children:[u.icon&&(0,Et.jsx)(u.icon,{}),(0,Et.jsx)("span",{children:u.label})]})})},u.label))})})})]}),(0,Et.jsx)(co,{})]})}function Cu({subNav:e,pathName:t,Link:a}){let o=e,r=!1;return o.links&&o.links.map(s=>{s.url===t&&(r=!0)}),(0,Et.jsx)(ba,{defaultOpen:!0,className:"group/collapsible",children:(0,Et.jsx)(zt,{className:"py-0",children:(0,Et.jsx)(bt,{children:(0,Et.jsx)(ba,{asChild:!0,defaultOpen:o.isActive,children:(0,Et.jsxs)(Ze,{children:[(0,Et.jsx)(Ht,{asChild:!0,tooltip:o.label,className:(0,In.default)(r&&"font-bold text-accent"),children:(0,Et.jsxs)(a,{href:o.url,children:[o.icon&&(0,Et.jsx)(o.icon,{}),(0,Et.jsx)("span",{children:o.label})]})}),o.links?.length?(0,Et.jsxs)(Et.Fragment,{children:[(0,Et.jsx)(Ha,{asChild:!0,children:(0,Et.jsxs)(fr,{className:"data-[state=open]:rotate-90",children:[(0,Et.jsx)(Yl.ChevronRight,{}),(0,Et.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,Et.jsx)(Fa,{children:(0,Et.jsx)(_a,{children:o.links?.map(s=>(0,Et.jsx)(Ga,{children:(0,Et.jsx)($a,{asChild:!0,className:(0,In.default)(s.url===t&&"font-bold text-accent"),children:(0,Et.jsx)(a,{href:s.url,children:(0,Et.jsx)("span",{children:s.label})})})},s.label))})})]}):null]})},o.label)})})})}var Dc=v(require("clsx"));var Pu=()=>(0,Et.jsx)(et,{iconName:"github",size:"10x"});function ku({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:l,onPrintDocument:i,onGithubClick:m,onNavClick:c,LinkComponent:d,...p}){let b=d?f=>(0,Et.jsx)(d,{...f}):c?({item:f,children:h,...L})=>(0,Et.jsx)("button",{onClick:()=>c&&c(f),className:"flex items-center justify-start w-full text-Pl text-left px-4 py-2",...L,children:h}):f=>(0,Et.jsx)("a",{href:f.href,...f});return(0,Et.jsxs)(no,{side:"right",variant:"inset",...p,children:[(0,Et.jsxs)(lo,{className:"border-b border-sidebar-border",children:[(0,Et.jsxs)(bt,{className:"flex-row space-x-1",children:[(0,Et.jsx)(Ze,{children:(0,Et.jsxs)(Ht,{onClick:s,children:[(0,Et.jsx)(Yl.FilePlus,{})," ",(0,Et.jsx)("span",{children:"Add Document"})]})}),m&&(0,Et.jsx)(Ze,{children:(0,Et.jsx)(Ht,{onClick:m,tooltip:"Open in GitHub",children:(0,Et.jsx)(Pu,{})})})]}),(0,Et.jsxs)(bt,{className:"flex-row space-x-1",children:[(0,Et.jsx)(Ze,{className:"w-5/12",children:(0,Et.jsxs)(Ht,{onClick:()=>l(),variant:r?"outline":"default",className:(0,Dc.default)(r&&"text-accent"),children:[(0,Et.jsx)(Yl.Edit,{})," ",(0,Et.jsx)("span",{children:"Edit"})]})}),(0,Et.jsx)(Ze,{className:"w-5/12",children:(0,Et.jsxs)(Ht,{onClick:i,children:[(0,Et.jsx)(Yl.Printer,{})," ",(0,Et.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,Et.jsxs)(Et.Fragment,{children:[(0,Et.jsx)(ba,{defaultOpen:!0,className:"group/collapsible",children:(0,Et.jsxs)(zt,{children:[(0,Et.jsx)(ha,{asChild:!0,children:(0,Et.jsxs)(Ha,{children:["Editor Controls",(0,Et.jsx)(Yl.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Et.jsx)(Yt,{children:(0,Et.jsx)(Fa,{children:a})})]})}),(0,Et.jsx)(ur,{className:"mx-0"})]}),(0,Et.jsxs)(ja,{className:"overflow-auto",children:[o&&(0,Et.jsxs)(Et.Fragment,{children:[(0,Et.jsxs)(zt,{children:[(0,Et.jsx)(ha,{children:"Related Content"}),(0,Et.jsx)(Yt,{children:(0,Et.jsx)(bt,{children:Array.from({length:3}).map((f,h)=>(0,Et.jsx)(Ze,{children:(0,Et.jsx)(De,{className:"bg-gray-200 w-full h-10"})},h))})})]}),(0,Et.jsxs)(zt,{children:[(0,Et.jsx)(ha,{children:"Table of Contents"}),(0,Et.jsx)(Yt,{children:(0,Et.jsx)(bt,{children:Array.from({length:3}).map((f,h)=>(0,Et.jsx)(Ze,{children:(0,Et.jsx)(De,{className:"bg-gray-200 w-full h-10"})},h))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,Et.jsx)(ba,{defaultOpen:!0,className:"group/collapsible",children:(0,Et.jsxs)(zt,{children:[(0,Et.jsx)(ha,{asChild:!0,children:(0,Et.jsxs)(Ha,{children:["Related Content",(0,Et.jsx)(Yl.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Et.jsx)(Yt,{children:(0,Et.jsx)(Fa,{children:(0,Et.jsx)(bt,{children:e&&Object.keys(e).map(f=>(0,Et.jsxs)(Ze,{children:[(0,Et.jsxs)("span",{className:"p-2 text-Et text-sidebar-foreground",children:[" ",f.charAt(0).toUpperCase()+f.slice(1)]}),f&&e[f]&&(0,Et.jsx)(_a,{children:e[f].map(h=>(0,Et.jsx)(Ga,{children:(0,Et.jsx)($a,{asChild:!0,isActive:!1,size:"Pl",children:(0,Et.jsxs)(b,{href:h.url,item:h,className:"flex justify-between items-center w-full text-Et",children:[(0,Et.jsx)("span",{children:h.label}),h.type==="note"&&(0,Et.jsx)(Yl.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),h.type==="draft"&&(0,Et.jsx)(et,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},h.label))})]},f))})})})]})}),t&&!o&&(0,Et.jsx)(ba,{defaultOpen:!0,className:"group/collapsible",children:(0,Et.jsxs)(zt,{children:[(0,Et.jsx)(ha,{asChild:!0,children:(0,Et.jsxs)(Ha,{children:["Table of Contents",(0,Et.jsx)(Yl.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Et.jsx)(Yt,{children:(0,Et.jsx)(Fa,{children:(0,Et.jsx)(bt,{children:t.map(f=>(0,Et.jsxs)(Ze,{children:[(0,Et.jsx)(Ht,{asChild:!0,children:(0,Et.jsx)("a",{href:`#${f.url}`,className:"text-Et",children:f.title})}),f.items?.length?(0,Et.jsx)(_a,{children:f.items.map(h=>(0,Et.jsx)(Ga,{children:(0,Et.jsx)($a,{asChild:!0,isActive:h.isActive,size:"Pl",children:(0,Et.jsx)("a",{href:`#${h.url}`,className:"flex justify-between items-center w-full text-Et",children:(0,Et.jsx)("span",{children:h.title})})})},h.title))}):null]},f.title))})})})]})})]}),(0,Et.jsx)(co,{})]})}var Mc=v(require("next/image"));function Su({title:e,members:t}){return(0,Et.jsx)(Ce,{className:"mb-6",children:(0,Et.jsxs)("div",{className:"p-6",children:[(0,Et.jsxs)("div",{className:"flex items-center mb-4",children:[(0,Et.jsx)(Yl.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,Et.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,Et.jsx)("div",{className:"space-Et-4",children:t.map((a,o)=>(0,Et.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,Et.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,Et.jsx)(Mc.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,Et.jsxs)("div",{children:[(0,Et.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,Et.jsx)("p",{className:"text-Pl text-muted-foreground",children:a.role})]})]},o))})]})})}var Ic=v(require("next/link"));var Ru=({links:e,title:t="Related Content"})=>(0,Et.jsxs)(Ce,{children:[(0,Et.jsx)(Ve,{children:(0,Et.jsx)(Xe,{className:"text-accent",children:t})}),(0,Et.jsx)(Ie,{children:(0,Et.jsx)("nav",{className:"flex flex-col space-Et-2",children:e.map((a,o)=>(0,Et.jsxs)(Ic.default,{href:a.url,className:"inline-flex items-center text-Pl text-primary dark:text-foreground hover:text-accent",children:[a.title,a.url.startsWith("http")&&(0,Et.jsx)(Yl.ExternalLink,{className:"ml-1 h-3 w-3"})]},o))})})]});var Ln=n("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function Bn({pages:e}){let t=(0,pc.useSearchParams)(),a=(0,pc.usePathname)(),{replace:o}=(0,pc.useRouter)(),{totalPages:r,page:s}=e,[l,i]=(0,Pl.useState)({start:s>3?s-3:1,end:s+2}),m=p=>{p==="left"&&l.start>1?i(u=>({start:u.start-1,end:u.end-1})):p==="right"&&l.end<r&&i(u=>({start:u.start+1,end:u.end+1}))};function c(p){let u=new URLSearchParams(t);p?u.set("page",p):u.delete("page"),o(`${a}?${u.toString()}`)}if(r<=1)return null;let d=[];for(let p=l.start;p<=l.end;p++)d.push(p);return(0,$t.jsx)("div",{className:"mt-12",children:(0,$t.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[l.start>1&&(0,$t.jsx)("li",{children:(0,$t.jsx)("button",{className:n(Ln,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>m("left"),children:(0,$t.jsx)(Id.FaArrowLeft,{})})}),d.map((p,u)=>(0,$t.jsx)("li",{children:(0,$t.jsx)("a",{className:n(Ln,p===s?"border-accent bg-accent text-accent-foreground":"border-accent"),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:g=>{g.preventDefault(),c(p.toString())},children:p})},u)),l.end<r&&(0,$t.jsx)("li",{children:(0,$t.jsx)("button",{className:n(Ln,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>m("right"),children:(0,$t.jsx)(Id.FaArrowRight,{})})})]})})}var Ny=n("transition-colors duration-400 hover:text-primary ease-in-out");function En({title:e,links:t}){let a=(0,pc.useSearchParams)(),o=(0,pc.usePathname)(),{replace:r}=(0,pc.useRouter)();function s(l){let i=new URLSearchParams(a);l?i.set("category",l):i.delete("category"),r(`${o}?${i.toString()}`)}return(0,Et.jsxs)(Ce,{children:[(0,Et.jsx)(Ve,{children:(0,Et.jsx)(Xe,{className:"text-accent",children:e&&e})}),(0,Et.jsx)(Ie,{children:t&&t.length>0&&(0,Et.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Et.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((l,i)=>(0,Et.jsxs)("li",{className:"flex items-center text-Pl text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:m=>{m.preventDefault(),s(l.href)},children:[l.label,(0,Et.jsx)(Yl.ExternalLink,{className:"ml-1 h-3 w-3"})]},i))})})})]})}function Hn({types:e}){let[t,a]=(0,Pl.useState)(e&&e[0].href),o=(0,pc.useSearchParams)(),r=(0,pc.usePathname)(),{replace:s}=(0,pc.useRouter)();function l(i){let m=new URLSearchParams(o);i?m.set("type",i):m.delete("type"),a(i),s(`${r}?${m.toString()}`)}return(0,Et.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-x-auto pb-4 mb-6",children:e&&e.map((i,m)=>(0,Et.jsx)(B,{variant:i.href===t?"default":"ghost",className:n("rounded-full whitespace-nowrap text-foreground border border-accent hover:bg-accent hover:text-accent-foreground",i.href===t&&"bg-accent text-accent-foreground"),onClick:()=>l(i.href),children:i.label},m))})}var Hc=v(require("next/image"));var Fn=({links:e,media:t,children:a,richText:o})=>(0,Et.jsx)("div",{children:(0,Et.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,Et.jsxs)("div",{className:"fixed inset-0 container mt-24 mb-8 Et-10 flex items-start justify-center",children:[a||o&&(0,Et.jsx)(q,{className:"max-w-none mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,Et.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,Et.jsx)("li",{children:(0,Et.jsx)(Zt,{...r})},s))})]}),(0,Et.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,Et.jsx)(ta,{fill:!0,imgClassName:"Et-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,Et.jsx)("div",{children:(0,Et.jsx)(Hc.default,{className:"-Et-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Et.jsx)("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),(0,Et.jsx)(Tu,{})]})}),Tu=()=>(0,Et.jsx)("div",{className:"w-full h-[1240px] Et-10",children:(0,Et.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[(0,Et.jsx)("defs",{children:(0,Et.jsxs)("mask",{id:"mask",children:[(0,Et.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,Et.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Et.jsx)("rect",{Et:"330",width:"1920",height:"7",fill:"white"})," "]})});var On=v(require("next/image"));var Du=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,Et.jsx)(On.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:r||"",width:s||0,height:o||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,Et.jsx)("div",{children:(0,Et.jsx)(On.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},jn=({links:e,media:t,children:a,richText:o})=>(0,Et.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,Et.jsx)(Du,{media:t}),(0,Et.jsx)("div",{className:"mx-0 min-w-full relative Et-9",children:(0,Et.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,Et.jsx)(q,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var _n=({children:e,richText:t})=>(0,Et.jsx)("div",{className:"min-w-full py-10 bg-muted mt-24",children:(0,Et.jsx)("div",{className:"container",children:e||t&&(0,Et.jsx)(q,{content:t,enableGutter:!1})})});var Oc=v(require("react")),jc=v(require("next/image"));var Fc=e=>{let a=new Date;e&&(a=new Date(e));let o=a.getMonth(),r=a.getDate(),s=o+1<10?`0${o+1}`:o+1,l=r<10?`0${r}`:r,i=a.getFullYear();return`${l}/${s}/${i}`};var Ls=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${o}${(l=>{if(l>3&&l<21)return"th";switch(l%10){case 1:return"st";case 2:return"nd";case 3:return"Et";default:return"th"}})(o)} ${r}`};var Au=({post:e})=>{let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,Et.jsxs)("div",{className:"relative grid pt-24",children:[(0,Et.jsx)("div",{className:"relative Et-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground pt-24 p-6 lg:p-12",children:(0,Et.jsxs)("div",{className:"container mx-auto",children:[(0,Et.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,Et.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,Et.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Et.jsxs)("p",{className:"text-Pl",children:["Author",o.length>1?"s":""]}),(0,Et.jsx)("p",{children:o.map((l,i)=>(0,Et.jsxs)(Oc.default.Fragment,{children:[l.name,i<o.length-2&&", ",i===o.length-2&&(o.length>2?", and ":" and ")]},l.id))})]}),r&&(0,Et.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Et.jsx)("p",{className:"text-Pl",children:"Date Published"}),(0,Et.jsx)("time",{dateTime:r,children:Fc(r)})]}),t&&t.length>0&&(0,Et.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Et.jsx)("p",{className:"text-Pl font-medium",children:"Categories"}),(0,Et.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((l,i)=>typeof l=="object"&&l!==null&&(0,Et.jsx)(xt,{className:"px-3 py-1 mx-1",children:l.title||"Untitled category"},l.id||i))})]})]})]})}),(0,Et.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,Et.jsx)(jc.default,{className:"object-cover",alt:`Cover image for ${s}`,src:a?.image?.url||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,Et.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-to-t from-background dark:from-black to-transparent"})]})]})};var Bs=require("@heroicons/react/20/solid");var Gn=v(require("next/image"));function Ct({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=n("container",t&&"full-width",a&&"no-padding",o);return(0,Et.jsx)("div",{className:r,children:e})}var Gc=require("next-themes");function Mu({children:e,...t}){return(0,$c.jsx)(Gc.ThemeProvider,{...t,children:e})}var Mt=({position:e,className:t=""})=>{let a=["","scale(-1, 1)","scale(1, -1)","scale(-1, -1)"],o=a[Math.floor(Math.random()*a.length)];if(e==="header")return(0,Et.jsx)("div",{className:"w-full h-[1240px] Et-20",children:(0,Et.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:n(t,"absolute -bottom-[2px] flex"),children:[(0,Et.jsx)("defs",{children:(0,Et.jsxs)("mask",{id:"mask",children:[(0,Et.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,Et.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Et.jsx)("rect",{Et:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,Et.jsxs)("div",{className:"w-full Et-20 aspect-[1920/332] overflow-hidden ",children:[(0,Et.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:n(t,"absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end",transform:"scale(-1, 1)"},children:[(0,Et.jsx)("defs",{children:(0,Et.jsxs)("mask",{id:"mask",children:[(0,Et.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]}),(0,Et.jsx)("div",{className:"absolute -bottom-[5px] border-none left-0 w-full h-[6px] Et-10 bg-white"})]});if(e==="dark-top")return(0,Et.jsx)("div",{className:"w-full aspect-[1920/332] Et-20 content-end block overflow-hidden",children:(0,Et.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:n(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[(0,Et.jsx)("defs",{children:(0,Et.jsxs)("mask",{id:"mask",children:[(0,Et.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-bottom")return(0,Et.jsx)("div",{className:"w-full aspect-[1920/332] Et-20 content-start block overflow-hidden bg-white",children:(0,Et.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"scale(1, -1)"},className:n(t,"w-full block overflow-hidden"),children:(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="light-bottom")return(0,Et.jsx)("div",{className:"w-full aspect-[1920/332] Et-20 content-end block overflow-hidden",children:(0,Et.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:n(t,"w-full block overflow-hidden"),transform:a[3],children:(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="bottom-left"||e==="bottom-right")return(0,Et.jsx)("div",{className:"w-full aspect-[1920/332] Et-20 relative -bottom-[1px]",children:(0,Et.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"rotateX(180deg)"},className:n(t,"w-full block overflow-hidden"),children:(0,Et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},Iu=({className:e})=>(0,Et.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:n(e,"absolute w-full h-full"),children:[(0,Et.jsx)("defs",{children:(0,Et.jsxs)("mask",{id:"mask",children:[(0,Et.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,Et.jsx)("polygon",{fill:"white",points:"0 0 0 201.561092 0 1036.200679 0 1087.625789 1255.099121 1240.909908 1920 908.450984 1920 201.561092 1920 0 0 0"})]})}),(0,Et.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var $n=({title:e,image:t})=>(0,Et.jsx)("div",{children:(0,Et.jsxs)("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[(0,Et.jsx)("div",{className:"fixed inset-0 container mt-24 mb-8 Et-10 flex items-start justify-start",children:(0,Et.jsx)("h1",{className:"text-5xl md:text-6xl",children:e})}),(0,Et.jsxs)("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&(0,Et.jsx)(Gn.default,{priority:!0,src:t.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"}),t&&typeof t=="string"&&(0,Et.jsx)("div",{children:(0,Et.jsx)(Gn.default,{className:"-Et-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Et.jsx)("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),(0,Et.jsx)(Mt,{className:"text-black Et-10",position:"header"})]})});var Lu={highImpact:Fn,lowImpact:_n,mediumImpact:jn,sectionHero:$n},Bu=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Lu[t];return a?(0,Et.jsx)(a,{...e}):null};function Eu({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,Et.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,Et.jsxs)("ol",{role:"list",className:"flex items-center space-x-4",children:[(0,Et.jsx)("li",{children:(0,Et.jsx)("div",{children:(0,Et.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,Et.jsx)(Bs.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,Et.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,Et.jsx)("li",{children:(0,Et.jsxs)("div",{className:"flex items-center",children:[(0,Et.jsx)(Bs.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,Et.jsx)("a",{href:a.href,className:"ml-4 text-Pl font-medium text-foreground hover:text-accent",children:a.label}):(0,Et.jsx)("div",{className:"ml-4 text-Pl font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,Et.jsx)(Et.Fragment,{})}var It=require("@headlessui/react"),Hs=require("@heroicons/react/24/outline");var zu=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,Et.jsx)("a",{href:o,className:"flex items-center gap-x-1 text-Pl text-foreground group",children:(0,Et.jsxs)("span",{className:"relative",children:[e,(0,Et.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]})}):(0,Et.jsxs)(It.Popover,{children:[(0,Et.jsxs)(It.PopoverButton,{className:"flex items-center gap-x-1 text-Pl/6 text-foreground outline-none group",children:[(0,Et.jsxs)("span",{className:"relative",children:[e,(0,Et.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,Et.jsx)(Bs.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,Et.jsxs)(It.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -Et-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-Et-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,Et.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 Et-50",children:t&&t.map(r=>(0,Et.jsxs)("div",{className:"group relative rounded-lg p-6 text-Pl/6 box-border",children:[(0,Et.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:r.icon&&(0,Et.jsx)(Wc,{icon:r.icon,size:"4x"})}),(0,Et.jsxs)("a",{href:r.href,className:"mt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,Et.jsx)("span",{className:"absolute inset-0"})]}),(0,Et.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,Et.jsx)("div",{className:"bg-gray-50",children:(0,Et.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Et.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:a.map(r=>(0,Et.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-x-2.5 p-3 text-Pl/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,Et.jsx)(Wc,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),Wc=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,Et.jsx)(et,{...e,size:a});if("src"in e)return(0,Et.jsx)("div",{className:n(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,Et.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},Es=zu;var zs=["light","dark","green"];function Hu({title:e,logo:t,menuItems:a}){let[o,r]=(0,Pl.useState)(!1),[s,l]=(0,Pl.useState)(!1),[i,m]=(0,Pl.useState)("light"),c=t?.split(".")[0],d=t?.split(".")[1],[p,u]=(0,Pl.useState)(`${c}.${d}`),g=f=>{zs.includes(f)?u(f==="light"?`${c}.${d}`:`${c}-${f}.${d}`):u(`${c}.${d}`)};(0,Pl.useEffect)(()=>{let f=localStorage.getItem("theme")||"light";m(f),document.documentElement.setAttribute("class",f),g(f)},[]);let b=()=>{let f=zs[(zs.indexOf(i)+1)%zs.length];m(f),document.documentElement.setAttribute("class",f),localStorage.setItem("theme",f),g(f)};return(0,Et.jsxs)("header",{className:"relative isolate Et-10 bg-background h-14",children:[(0,Et.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,Et.jsx)("div",{className:"flex lg:flex-1",children:(0,Et.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Et.jsx)("span",{className:"sr-only",children:e}),(0,Et.jsx)("img",{alt:e,src:p,className:"h-9 w-auto"})]})}),(0,Et.jsx)("div",{className:"flex lg:hidden",children:(0,Et.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 outline-none",children:[(0,Et.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Et.jsx)(Hs.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,Et.jsx)(It.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:a.map(f=>(0,Et.jsx)(Es,{...f},f.name))}),(0,Et.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,Et.jsx)("button",{onClick:b,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,Et.jsx)(Bs.SunIcon,{className:"h-6 w-6"}):i==="green"?(0,Et.jsx)(Bs.MoonIcon,{className:"h-6 w-6"}):(0,Et.jsx)(Bs.SunIcon,{className:"h-6 w-6"})})})]}),(0,Et.jsxs)(It.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,Et.jsx)("div",{className:"fixed inset-0 Et-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Et.jsxs)(It.DialogPanel,{className:"fixed inset-Et-0 right-0 Et-20 w-full overflow-Et-auto bg-white px-6 py-6 Pl:max-w-Pl Pl:ring-1 Pl:ring-gray-900/10",children:[(0,Et.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Et.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Et.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,Et.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,Et.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,Et.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Et.jsx)(Hs.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Et.jsx)("div",{className:"mt-6 flow-root",children:(0,Et.jsx)("div",{className:"-my-6 divide-Et divide-gray-500/10",children:(0,Et.jsx)("div",{className:"space-Et-2 py-6",children:a.map(f=>(0,Et.jsx)(Fu,{...f},f.name))})})})]})]})]})}function Fu({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Et.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,Et.jsxs)(It.Disclosure,{as:"div",className:"-mx-3",children:[(0,Et.jsx)(It.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,Et.jsx)(It.DisclosurePanel,{className:"mt-2 space-Et-2",children:t&&t.map(r=>(0,Et.jsx)(It.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-Pl font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}function Ou({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let l=()=>{let i=document.getElementById("next-section");i&&i.scrollIntoView({behavior:"smooth"})};return(0,Et.jsx)("div",{children:(0,Et.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,Et.jsxs)("video",{className:"fixed inset-0 object-cover w-full h-full Et-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,Et.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,Et.jsx)("div",{className:"fixed inset-0 h-full Et-10 flex flex-col items-start justify-center text-white px-4",children:(0,Et.jsx)(Ct,{children:(0,Et.jsxs)("div",{className:"flex flex-col items-start md:w-2/3 mb-10 Et-0 md:mb-0",children:[(0,Et.jsx)("h1",{className:"text-5xl md:text-7xl mb-6",children:r&&r}),(0,Et.jsx)("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,Et.jsx)(Mt,{className:"text-black Et-10",position:"header"})]})})}var Wn=v(require("next/image"));function to({logoLight:e,logoDark:t,mobile:a=!1}){return(0,Et.jsxs)(Qe,{href:"/",className:n(a?"py-1":"py-2"),children:[(0,Et.jsx)(Wn.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}}),(0,Et.jsx)(Wn.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 Un({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[l,i]=(0,Pl.useState)(!1),[m,c]=(0,Pl.useState)(""),d=["light","dark"],{theme:p,setTheme:u}=(0,Gc.useTheme)();(0,Pl.useEffect)(()=>{c(p||"dark")},[p]);let g=()=>{let b=d[(d.indexOf(m)+1)%d.length];c(b),u(b)};return(0,Pl.useEffect)(()=>{let b=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),(0,Et.jsx)(Et.Fragment,{children:(0,Et.jsx)("header",{className:`Et-50 pb-10 transition-all duration-300 hidden lg:block ${l||e?"translate-Et-0":"-translate-Et-full bg-transparent"}`,children:(0,Et.jsx)("nav",{className:"backdrop-blur-Pl bg-background/80 text-white p-0",children:(0,Et.jsxs)("div",{className:n("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,Et.jsx)(to,{logoDark:a,logoLight:t}),(0,Et.jsx)(It.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:o&&o.map(b=>(0,Et.jsx)(Es,{...b},b.name))}),r&&(0,Et.jsx)("button",{className:"fixed right-4 Et-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-Pl transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:g,children:(0,Et.jsxs)("div",{className:"relative",children:[(0,Et.jsx)(Yl.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Et.jsx)(Yl.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var Vn=["light","dark"];function Xn({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,Pl.useState)(!1),{theme:l,setTheme:i}=(0,Gc.useTheme)(),[m,c]=(0,Pl.useState)(!1),[d,p]=(0,Pl.useState)("light");(0,Pl.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,Pl.useEffect)(()=>{p(l||"dark")},[l]);let u=()=>{let g=Vn[(Vn.indexOf(d)+1)%Vn.length];p(g),i(g)};return(0,Et.jsx)(Et.Fragment,{children:(0,Et.jsxs)("header",{className:`Et-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-Et-0":"-translate-Et-full bg-transparent"}`,children:[(0,Et.jsx)("nav",{className:n("backdrop-blur-Pl text-white p-0",m&&"hidden"),children:(0,Et.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&Et.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,Et.jsx)(to,{logoDark:t,logoLight:e,mobile:!0}),(0,Et.jsx)("div",{className:"flex items-center space-x-4",children:(0,Et.jsxs)("button",{type:"button",onClick:()=>c(!0),className:"fixed right-4 Et-[60] p-2 rounded-full bg-white/10 backdrop-blur-Pl transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,Et.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Et.jsx)(Hs.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,Et.jsxs)(It.Dialog,{open:m,onClose:c,className:"lg:hidden",children:[(0,Et.jsx)("div",{className:"fixed inset-0 Et-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Et.jsxs)(It.DialogPanel,{className:"fixed inset-Et-0 right-0 Et-20 w-full overflow-Et-auto bg-background dark:bg-[#212124] px-2 Pl:max-w-Pl Pl:ring-1 Pl:ring-gray-900/10",children:[(0,Et.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,Et.jsx)(to,{logoDark:t,logoLight:e,mobile:!0}),(0,Et.jsxs)("button",{type:"button",onClick:()=>c(!1),className:"-m-2.5 rounded-md p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[(0,Et.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Et.jsx)(Hs.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Et.jsx)("div",{className:"mt-6 flow-root",children:(0,Et.jsx)("div",{className:"-my-6 divide-Et divide-gray-500/10",children:(0,Et.jsx)("div",{className:"space-Et-2 px-2 py-6",children:a&&a.map(g=>(0,Et.jsx)(ju,{...g},g.name))})})})]})]})]})})}function ju({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Et.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}):(0,Et.jsxs)(It.Disclosure,{as:"div",className:"-mx-3",children:[(0,Et.jsx)(It.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}),(0,Et.jsx)(It.DisclosurePanel,{className:"mt-2 space-Et-2",children:t&&t.map(r=>(0,Et.jsx)(It.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-Pl dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var Px=n("text-base/[1.75] transition-transform duration-350 hover:-translate-Et-1 block px-4"),qc=n("text-brand-green text-md leading-[1.25] md:text-lg mb-5 md:mb-[1.5rem]"),Yn=n("bg-brand-green rounded-full p-3 mr-4 text-2xl"),qn=n("flex items-center text-white gap-3"),js=n("transition-colors duration-300 hover:text-accent dark:hover:text-white");function _u({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:l,footerBottom:i}=t,m=void 0;return(0,Et.jsxs)("footer",{className:n("sticky Et-2 flex flex-col dark bg-black overflow-hidden pt-12 prose-base",e),children:[(0,Et.jsx)("div",{className:"py-16 md:py-20",children:(0,Et.jsx)("div",{className:"container",children:(0,Et.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-3",children:[(0,Et.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,Et.jsx)(to,{logoDark:o,logoLight:a}),(0,Et.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,Et.jsx)("nav",{"aria-label":"social links",children:(0,Et.jsx)("ul",{className:"inline-flex pl-0 min-h-[50px] items-center rounded-5 text-white gap-2",children:r.socialLinks.map((c,d)=>(0,Et.jsx)("li",{className:"bg-primary rounded-full p-3",children:(0,Et.jsx)(Qe,{"aria-label":c.href,className:"text-2xl",href:c.href,openNewTab:!0,children:(0,Et.jsx)("span",{children:c.icon})})},d))})})]}),(0,Et.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,Et.jsx)("h3",{className:qc,children:s.title}),s.links&&s.links.length>0&&(0,Et.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Et.jsx)("ul",{className:"grid pl-0 gap-2",children:s.links.map(c=>(0,Et.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,Et.jsx)("span",{className:"flex-none text-Pl/[1] text-white",children:(0,Et.jsx)(Id.FaChevronRight,{})}),(0,Et.jsx)(Qe,{href:c.href,openNewTab:c.openNewTab,className:js,children:c.label})]},c.label))})})]}),(0,Et.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,Et.jsx)("h3",{className:qc,children:l.title}),(0,Et.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-2 pl-0",children:[(0,Et.jsxs)("li",{className:qn,children:[(0,Et.jsx)("span",{className:Yn,children:(0,Et.jsx)(Id.FaPaperPlane,{})}),(0,Et.jsx)("address",{className:"not-italic",children:l.location})]}),(0,Et.jsxs)("li",{className:qn,children:[(0,Et.jsx)("span",{className:Yn,children:(0,Et.jsx)(Id.FaEnvelope,{})}),l.mails&&l.mails.length>0&&(0,Et.jsx)("div",{className:"grid gap-1",children:l.mails.map((c,d)=>(0,Et.jsx)("a",{href:`mailto:${c}`,className:js,children:c},d))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,Et.jsxs)("li",{className:qn,children:[(0,Et.jsx)("span",{className:Yn,children:(0,Et.jsx)(Id.FaPhone,{})}),(0,Et.jsx)("div",{className:"grid gap-1",children:l.phoneNumbers.map((c,d)=>(0,Et.jsx)("a",{href:`tel:${c.split(" ").join("")}`,className:js,children:c},d))})]})]})]})]})})}),(0,Et.jsx)("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,Et.jsx)("div",{className:"container",children:(0,Et.jsxs)("div",{className:"flex flex-wrap items-center text-Et justify-between gap-x-8 gap-Et-4 md:gap-x-10",children:[(0,Et.jsx)("p",{children:i.copyrightText}),i.links&&i.links.length>0&&(0,Et.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,Et.jsx)("ul",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:i.links.map(c=>(0,Et.jsx)("li",{children:(0,Et.jsx)(Qe,{"aria-label":`Et to page ${c.label}`,href:c.href,openNewTab:c.openNewTab,className:js,children:c.label})},c.label))})})]})})})]})}function Gu({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:l=!1}){return(0,Et.jsxs)("div",{className:n("fixed top-0 left-0 right-0 Et-50",r),children:[(0,Et.jsx)(Un,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:l,wide:s}),(0,Et.jsx)(Xn,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function Kn({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,Pl.useState)([]),s=(0,pc.useRouter)(),l=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},i=d=>{r(p=>p.includes(d)?p.filter(u=>u!==d):[...p,d])},m=async()=>{let d=await t(o);d.success?(sn.toast.success(d.message),s.refresh()):sn.toast.error(`Error: ${d.message}`),r([])},c=async()=>{let d=await a(o);d.success?(sn.toast.success(d.message),s.refresh()):sn.toast.error(`Error: ${d.message}`),r([])};return(0,Et.jsxs)("div",{className:"space-Et-4",children:[(0,Et.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Et.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,Et.jsxs)("div",{className:"space-x-2",children:[(0,Et.jsx)(B,{onClick:m,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,Et.jsx)(B,{onClick:c,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,Et.jsx)("div",{className:"overflow-hidden Pl:rounded-md",children:(0,Et.jsxs)("ul",{className:"divide-Et divide-gray-200",children:[(0,Et.jsx)("li",{className:"px-4 py-4 Pl:px-6",children:(0,Et.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Et.jsxs)("div",{className:"flex items-center",children:[(0,Et.jsx)(Jt,{id:"select-all",checked:o.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,Et.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-Pl font-medium text-foreground",children:"Select All"})]}),(0,Et.jsxs)("span",{className:"text-Pl font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,Et.jsx)("li",{className:"px-4 py-4 Pl:px-6 group hover:bg-gray-50",children:(0,Et.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Et.jsxs)("div",{className:"flex items-center",children:[(0,Et.jsx)(Jt,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>i(d.id),className:"border-accent"}),(0,Et.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,Et.jsxs)(vt,{className:"h-10 w-10",children:[(0,Et.jsx)(ht,{src:d.userImage,alt:d.userName}),(0,Et.jsx)(yt,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),(0,Et.jsx)("div",{className:"ml-3",children:(0,Et.jsx)("p",{className:"text-Pl font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,Et.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Et.jsxs)("span",{className:"text-Pl text-gray-500",children:[new Date(d.startDate).toLocaleDateString(),d.startDate!==d.endDate&&` - ${new Date(d.endDate).toLocaleDateString()}`,d.leaveType!="Full Day"&&` (${d.leaveType})`,` - ${d.totalDays} day${d.totalDays!==1?"s":""}`]}),(0,Et.jsx)(xt,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,Et.jsx)(sn.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"Et-50"})]})}var Qn=require("date-fns");var Jc=[{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 Fr=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=Jc.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},Zc=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!Fr(o))return .5;for(;o<=r;)Fr(o)||s++,o.setDate(o.getDate()+1);return s},em=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var $u=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,Et.jsx)("div",{className:"flex space-x-2",children:e.map((r,s)=>(0,Et.jsx)(B,{type:"button",variant:t===r?"default":"outline",onClick:()=>a(r),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:r},r))});function Zn({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,Pl.useState)(new Date),[r,s]=(0,Pl.useState)(new Date),[l,i]=(0,Pl.useState)("Full Day"),[m,c]=(0,Pl.useState)(!1),[d,p]=(0,Pl.useState)(1),u=(0,pc.useRouter)();(0,Pl.useEffect)(()=>{let f=em(a,r);c(f),f&&i("Full Day")},[a,r]),(0,Pl.useEffect)(()=>{if(!a||!r){p(0);return}let f=Zc(a,r,l!=="Full Day");p(f)},[a,r,l]);let g=f=>{i(f)};return(0,Et.jsxs)("div",{className:"max-w-2xl",children:[(0,Et.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,Et.jsxs)("p",{className:"text-Pl text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,Et.jsxs)("form",{onSubmit:async f=>{if(f.preventDefault(),!a||!r){sn.toast.error("Please select both start and end dates");return}if(d>e){sn.toast.error("You do not have enough leave days remaining");return}let h=new FormData;h.append("startDate",a.toISOString()),h.append("endDate",r.toISOString()),h.append("leaveType",l),h.append("duration",d.toString());let L=await(t||Wu)(h);L.success?(sn.toast.success(L.message),o(void 0),s(void 0),i("Full Day"),u.refresh()):sn.toast.error(`Error: ${L.message}`)},className:"space-Et-4",children:[(0,Et.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Et.jsxs)("div",{className:"flex flex-col space-Et-2",children:[(0,Et.jsx)(be,{htmlFor:"startDate",children:"Start Date"}),(0,Et.jsxs)(Nr,{children:[(0,Et.jsx)(Cr,{asChild:!0,children:(0,Et.jsxs)(B,{variant:"outline",className:n("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,Et.jsx)(Yl.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,Qn.format)(a,"PPP"):(0,Et.jsx)("span",{children:"Pick a date"})]})}),(0,Et.jsx)(_o,{className:"w-auto p-0",align:"start",children:(0,Et.jsx)(Sr,{mode:"single",selected:a,onSelect:f=>{o(f),f&&(!r||f>r)&&s(f)},initialFocus:!0})})]})]}),(0,Et.jsxs)("div",{className:"flex flex-col space-Et-2",children:[(0,Et.jsx)(be,{htmlFor:"endDate",children:"End Date"}),(0,Et.jsxs)(Nr,{children:[(0,Et.jsx)(Cr,{asChild:!0,children:(0,Et.jsxs)(B,{variant:"outline",className:n("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,Et.jsx)(Yl.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,Qn.format)(r,"PPP"):(0,Et.jsx)("span",{children:"Pick a date"})]})}),(0,Et.jsx)(_o,{className:"w-auto p-0",align:"start",children:(0,Et.jsx)(Sr,{mode:"single",selected:r,onSelect:s,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),(0,Et.jsxs)("div",{className:"space-Et-2",children:[(0,Et.jsx)(be,{children:"Leave Type"}),(0,Et.jsx)($u,{options:["Full Day","Morning","Afternoon"],value:l,onChange:g,disabled:[!1,m,m]})]}),(0,Et.jsxs)("p",{className:"text-Pl text-gray-500",children:["Total days: ",d]}),(0,Et.jsx)(B,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,Et.jsx)(sn.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"Et-50"})]})}var Wu=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function am(...e){return e.filter(Boolean).join(" ")}function el({currentDate:e,setCurrentDate:t,holidays:a,employees:o}){let r=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},l=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},i=()=>{t(new Date)},m=c=>c.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,Et.jsxs)("div",{className:"px-4 Pl:px-6 lg:px-8",children:[(0,Et.jsxs)("div",{className:"Pl:flex Pl:items-center",children:[(0,Et.jsxs)("div",{className:"Pl:flex-auto",children:[(0,Et.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Et.jsx)("p",{className:"mt-2 text-Pl text-foreground",children:"All staff with holidays for the current month."})]}),(0,Et.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Et.jsxs)(B,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Et.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Et.jsx)(Yl.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Et.jsx)(B,{variant:"outline",onClick:i,className:"hidden border-l border-r border-accent px-3.5 text-Pl font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Et.jsxs)(B,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Et.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Et.jsx)(Yl.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,Et.jsx)("div",{className:"mt-8 flow-root",children:(0,Et.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto Pl:-mx-6 lg:-mx-8",children:(0,Et.jsx)("div",{className:"max-h-[60vh] overflow-Et-auto",children:(0,Et.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,Et.jsx)("thead",{className:"sticky top-0 Et-20 bg-white",children:(0,Et.jsxs)("It",{children:[(0,Et.jsx)("th",{scope:"col",className:"sticky left-0 top-0 Et-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-Pl font-semibold text-gray-900 backdrop-blur backdrop-filter Pl:pl-6 lg:pl-8",children:"Employee"}),[...Array(r)].map((c,d)=>{let p=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,Et.jsxs)("th",{scope:"col",className:`sticky top-0 Et-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-Pl font-semibold text-gray-900 backdrop-blur backdrop-filter ${Fr(p)?"bg-gray-200":""}`,children:[(0,Et.jsx)("div",{children:m(p)}),(0,Et.jsx)("div",{children:d+1})]},d)})]})}),(0,Et.jsx)("tbody",{children:o.map((c,d)=>(0,Et.jsxs)("It",{children:[(0,Et.jsx)("td",{className:am(d!==o.length-1?"border-gray-200":"","sticky left-0 Et-10 bg-white border-r pl-4 pr-3 text-Pl font-medium text-gray-900 Pl:pl-6 lg:pl-8"),children:(0,Et.jsxs)("div",{className:"flex items-center",children:[(0,Et.jsxs)(vt,{className:"h-11 w-11",children:[(0,Et.jsx)(ht,{src:c.image,alt:c.name}),(0,Et.jsx)(yt,{children:c.name.split(" ").map(p=>p[0]).join("")})]}),(0,Et.jsx)("div",{className:"ml-4",children:(0,Et.jsx)("div",{className:"font-medium text-accent",children:c.name})})]})}),[...Array(r)].map((p,u)=>{let g=new Date(e.getFullYear(),e.getMonth(),u+1),b=a.find(f=>f.userId===c.id&&new Date(f.startDate)<=g&&new Date(f.endDate)>=g);return(0,Et.jsx)("td",{className:am(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Fr(g)?"bg-gray-200":"bg-white"),children:(0,Et.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${b?b.status==="approved"?"bg-green-500":b.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:b?`${c.name}: ${b.status} (${b.startDate} - ${b.endDate}) - ${b.leaveType}`:"",children:b&&b.leaveType!=="Full Day"&&(0,Et.jsx)("div",{className:`h-3 w-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${c.id}-${u}`)})]},c.id))})]})})})})]})}function tl({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,Pl.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,l=Array.from({length:42},(d,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p-s+1);return{date:u,isCurrentMonth:u.getMonth()===e.getMonth(),isToday:u.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=u&&new Date(g.endDate)>=u)}}),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},m=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},c=()=>{t(new Date)};return(0,Et.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,Et.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Et.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Et.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Et.jsx)("div",{className:"flex items-center",children:(0,Et.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Et.jsxs)(B,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Et.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Et.jsx)(Yl.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Et.jsx)(B,{variant:"outline",onClick:c,className:"hidden border-l border-r border-accent px-3.5 text-Pl font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Et.jsxs)(B,{onClick:m,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Et.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Et.jsx)(Yl.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,Et.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Et.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-Et font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,Et.jsxs)("div",{className:"bg-white py-2",children:["Et",(0,Et.jsx)("span",{className:"sr-only Pl:not-sr-only",children:"on"})]}),(0,Et.jsxs)("div",{className:"bg-white py-2",children:["Et",(0,Et.jsx)("span",{className:"sr-only Pl:not-sr-only",children:"ue"})]}),(0,Et.jsxs)("div",{className:"bg-white py-2",children:["Et",(0,Et.jsx)("span",{className:"sr-only Pl:not-sr-only",children:"Yl"})]}),(0,Et.jsxs)("div",{className:"bg-white py-2",children:["Et",(0,Et.jsx)("span",{className:"sr-only Pl:not-sr-only",children:"hu"})]}),(0,Et.jsxs)("div",{className:"bg-white py-2",children:["F",(0,Et.jsx)("span",{className:"sr-only Pl:not-sr-only",children:"ri"})]}),(0,Et.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Et.jsx)("span",{className:"sr-only Pl:not-sr-only",children:"Et"})]}),(0,Et.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Et.jsx)("span",{className:"sr-only Pl:not-sr-only",children:"Et"})]})]}),(0,Et.jsxs)("div",{className:"flex bg-gray-200 text-Et leading-6 text-gray-700 lg:flex-auto overflow-visible",children:[(0,Et.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px overflow-visible",children:l.map(d=>(0,Et.jsxs)("div",{className:n(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2 overflow-visible"),children:[(0,Et.jsx)("time",{dateTime:d.date.toISOString(),className:n("flex h-6 w-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,Et.jsx)("ol",{className:"mt-2 space-Et-1 overflow-visible",children:d.holidays.map(p=>(0,Et.jsx)("li",{className:"overflow-visible",children:(0,Et.jsx)("div",{className:`text-Et px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border overflow-visible`,children:p.userName})},p.id))})]},d.date.toISOString()))}),(0,Et.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(d=>(0,Et.jsxs)("button",{type:"button",className:n(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:Et-10"),children:[(0,Et.jsx)("time",{dateTime:d.date.toISOString(),className:n("ml-auto",d.date===o&&d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,Et.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,Et.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(p=>(0,Et.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},d.date.toISOString()))})]})]})]})}var oo=require("lucide-react");function rm(...e){return e.filter(Boolean).join(" ")}function Uu({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:l,rejectLeave:i}){let[m,c]=(0,Pl.useState)("Calendar View"),d=(0,pc.useRouter)(),p=!1,u=(0,$s.parseISO)(a),g=async f=>{let h=(0,$s.format)(f,"Fl-MM-yyyy"),L=new URL(window.location.href);return L.searchParams.set("date",h),d.push(L.toString()),{success:!0}};if(p)return(0,Et.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,Et.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let b=[{name:"Grid View",icon:oo.Grid,current:m==="Grid View"},{name:"Calendar View",icon:oo.CalendarDays,current:m==="Calendar View"},{name:"Request Leave",icon:oo.PlusCircle,current:m==="Request Leave"},{name:"Approve Leave",icon:oo.CheckSquare,current:m==="Approve Leave"}];return(0,Et.jsxs)("div",{className:"container mx-auto p-4 h-full",children:[(0,Et.jsxs)("div",{className:"mb-8",children:[(0,Et.jsxs)("div",{className:"Pl:hidden",children:[(0,Et.jsx)("select",{value:m,onChange:f=>c(f.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 Pl:text-Pl",children:b.map(f=>(0,Et.jsx)("option",{children:f.name},f.name))}),(0,Et.jsx)(Yl.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,Et.jsx)("div",{className:"hidden Pl:block",children:(0,Et.jsx)("div",{className:"border-b border-gray-200",children:(0,Et.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:b.map(f=>(0,Et.jsxs)("a",{onClick:()=>{(f.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&c(f.name)},className:rm(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-Pl font-medium"),"aria-current":f.current?"page":void 0,children:[(0,Et.jsx)(f.icon,{className:rm(f.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,Et.jsx)("span",{children:f.name})]},f.name))})})})]}),m==="Grid View"&&(0,Et.jsx)(el,{currentDate:u,setCurrentDate:g,holidays:e,employees:r}),m==="Calendar View"&&(0,Et.jsx)(tl,{currentDate:u,setCurrentDate:g,holidays:e}),m==="Request Leave"&&(0,Et.jsx)(Zn,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:f=>s?s(f):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),m==="Approve Leave"&&(0,Et.jsx)(Kn,{leaveRequests:o,onApprove:f=>l?l(f):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:f=>i?i(f):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function al({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:l}){let[i,m]=(0,Pl.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[c,d]=(0,Pl.useState)(""),[p,u]=(0,Pl.useState)(!1),[g,b]=(0,Pl.useState)(null);(0,Pl.useEffect)(()=>{u(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let f=async()=>{try{let w=await s(i);w.success?(u(!1),b(null)):console.error("Failed to save deal:",w.errors)}catch(w){console.error("Failed to save deal:",w)}},h=(w,D)=>{m(ie=>({...ie,[w]:D}))},L=w=>{let D=(i.categories||[]).includes(w)?(i.categories||[]).filter(ie=>ie!==w):[...i.categories||[],w];h("categories",D)},S=async()=>{if(c.trim()){let w={text:c,timestamp:new Date().toISOString()};try{let D=await l(w);if(!D.success){console.error("Failed to add comment:",D.errors);return}}catch(D){console.error("Failed to add comment:",D)}m(D=>({...D,comments:[...D.comments||[],w]})),d("")}},x=w=>{switch(w){case"proposition":return"border-blue-800 text-blue-800";case"source":return"border-green-800 text-green-800";case"sector":return"border-purple-800 text-purple-800";default:return"border-gray-800 text-gray-800"}},P=w=>t?.find(D=>D.id===Number(w));return(0,Et.jsx)(Ot,{open:!0,children:(0,Et.jsxs)(Dt,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,Et.jsxs)(Kt,{className:"flex flex-row items-center justify-between",children:[(0,Et.jsx)(Qt,{className:"text-2xl font-bold",children:a?.name}),(0,Et.jsxs)("div",{className:"flex space-x-2",children:[(0,Et.jsx)(B,{variant:"outline",onClick:r,children:"Close"}),(0,Et.jsxs)(B,{onClick:f,disabled:!p,children:[(0,Et.jsx)(Yl.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,Et.jsxs)(la,{className:"flex-grow pr-4",children:[(0,Et.jsxs)("div",{className:"grid grid-cols-1 Pl:grid-cols-3 gap-4",children:[(0,Et.jsx)("div",{className:"grid gap-2 m-1",children:g==="value"?(0,Et.jsx)(gt,{type:"number",value:i.value,onChange:w=>h("value",Number(w.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,Et.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("value"),children:["\xA3",i.value?.toLocaleString()]})}),(0,Et.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Et.jsx)(be,{className:"text-Pl font-medium text-accent",children:"Assignee"}),g==="assignee"?(0,Et.jsxs)(go,{value:i?.assignee?.id?.toString()||"",onValueChange:w=>h("assignee",P(w)),children:[(0,Et.jsx)(Ya,{children:(0,Et.jsx)(bo,{placeholder:"Select assignee"})}),(0,Et.jsx)(qa,{children:t&&t.map(w=>(0,Et.jsx)(Ka,{value:w?.id?.toString()||"",children:w.name},w.id))})]}):(0,Et.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("assignee"),children:[(0,Et.jsx)(Yl.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,Et.jsx)("span",{children:i.assignee.name})]})]}),(0,Et.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Et.jsx)(be,{className:"text-Pl font-medium text-accent",children:"Closure Date"}),g==="closureDate"?(0,Et.jsx)(gt,{type:"date",value:i.closureDate?.split("Et")[0]??"",onChange:w=>h("closureDate",w.target.value),onBlur:()=>b(null),className:"mr-2",autoFocus:!0}):(0,Et.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("closureDate"),children:[(0,Et.jsx)(Yl.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,Et.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("en-GB"):"N/A"})]})]})]}),(0,Et.jsx)("div",{className:"grid grid-cols-1 Pl:grid-cols-1 gap-4",children:(0,Et.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Et.jsx)(be,{className:"text-Pl font-medium text-accent",children:"Description"}),g==="description"?(0,Et.jsx)(Qa,{value:i.description||"",onChange:w=>h("description",w.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,Et.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>b("description"),children:i.description})]})}),(0,Et.jsxs)("div",{className:"grid grid-cols-1 Pl:grid-cols-3 pt-2 gap-4",children:[(0,Et.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,Et.jsx)(be,{className:"text-Pl font-medium text-accent",children:"Status"}),g==="status"?(0,Et.jsxs)(go,{value:i.status,onValueChange:w=>{h("status",w),b(null)},children:[(0,Et.jsx)(Ya,{children:(0,Et.jsx)(bo,{placeholder:"Select status"})}),(0,Et.jsx)(qa,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(w=>(0,Et.jsx)(Ka,{value:w,children:w},w))})]}):(0,Et.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("status"),children:i.status})]}),(0,Et.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,Et.jsx)(be,{className:"text-Pl font-medium text-accent",children:"Categories"}),g==="categories"?(0,Et.jsx)("div",{className:"grid grid-cols-2 gap-2 m-1",children:o.map(w=>(0,Et.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Et.jsx)(Jt,{id:w.id?.toString()||"",checked:(i.categories||[]).some(D=>D.id===w.id),onCheckedChange:()=>w.id!==void 0&&L(w)}),(0,Et.jsx)("label",{htmlFor:(w.id??"").toString(),className:`text-Pl font-medium ${x(w.type||"sector")} px-2 py-1 rounded`,children:w.name})]},w.id))}):(0,Et.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("categories"),children:i.categories&&i.categories.map(w=>{let D=w;return D?(0,Et.jsx)(xt,{variant:"outline",className:x(D.type||"sector"),children:D.name},D.id):null})})]})]}),(0,Et.jsxs)("div",{className:"grid grid-cols-1 Pl:grid-cols-1 pt-4 gap-4",children:[(0,Et.jsxs)("div",{className:"grid gap-2",children:[(0,Et.jsx)(be,{className:"text-Pl font-medium text-accent",children:"Comments"}),(0,Et.jsx)(la,{className:"h-[200px] overflow-Et-auto",children:(0,Et.jsx)("div",{className:"space-Et-2",children:i.comments&&i.comments.slice().sort((w,D)=>new Date(D.timestamp||"").getTime()-new Date(w.timestamp||"").getTime()).map(w=>(0,Et.jsxs)("div",{className:"p-3 rounded-lg",children:[(0,Et.jsx)("p",{className:"text-Pl text-foreground",children:w.text}),(0,Et.jsxs)("p",{className:"text-Et text-foreground mt-1",children:[w?.author?.name," - ",new Date(w.timestamp||"").toLocaleString()]})]},w.id))})}),(0,Et.jsxs)("div",{className:"flex mt-2",children:[(0,Et.jsx)(gt,{value:c,onChange:w=>d(w.target.value),placeholder:"Add a comment...",className:"flex-grow ml-1"}),(0,Et.jsxs)(B,{onClick:S,className:"ml-2",children:[(0,Et.jsx)(Yl.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,Et.jsxs)("div",{className:"text-Et text-gray-500 mt-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}function ol({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>s.type==="proposition"&&(e.categories??[]).includes(s.id));return(0,Et.jsxs)(Ce,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,Et.jsxs)(Ve,{className:"pb-2",children:[(0,Et.jsx)("div",{className:"flex justify-between items-center",children:(0,Et.jsx)(Xe,{className:"text-lg font-semibold text-foreground",children:t?.name})}),(0,Et.jsx)("p",{className:"text-Pl text-gray-500 mt-1",children:e.description})]}),(0,Et.jsxs)(Ie,{children:[(0,Et.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,Et.jsxs)("div",{className:"flex items-center text-Pl text-accent",children:[(0,Et.jsx)(Yl.UserIcon,{className:"w-4 h-4 mr-1 text-Et"}),(0,Et.jsx)("span",{children:e.assignee.name})]}),(0,Et.jsx)("div",{className:"flex items-center text-Pl font-bold text-green-600",children:(0,Et.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,Et.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,Et.jsxs)("div",{className:"flex items-center text-Et text-gray-500",children:[(0,Et.jsx)(Yl.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,Et.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,Et.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,Et.jsx)(xt,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-Et",children:r.name})})]})]})}var Us=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function rl({onSubmit:e}){let[t,a]=(0,Pl.useState)({name:"",intro:"",active:!1});return(0,Et.jsxs)("form",{onSubmit:r=>{r.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-Et-4",children:[(0,Et.jsxs)("div",{className:"space-Et-2",children:[(0,Et.jsx)(be,{htmlFor:"customerName",children:"Customer Name"}),(0,Et.jsx)(gt,{id:"customerName",value:t.name,onChange:r=>a({...t,name:r.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,Et.jsxs)("div",{className:"space-Et-2",children:[(0,Et.jsx)(be,{htmlFor:"customerIntro",children:"Intro"}),(0,Et.jsx)(Qa,{id:"customerIntro",value:t.intro??"",onChange:r=>a({...t,intro:r.target.value}),placeholder:"Enter customer intro"})]}),(0,Et.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Et.jsx)(Jt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:r=>a({...t,active:r})}),(0,Et.jsx)(be,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,Et.jsx)(B,{type:"submit",className:"w-full",children:"Add Customer"})]})}function sl({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:l}){let[i,m]=(0,Pl.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("Et")[0],closureDate:"",comments:[],description:""}),[c,d]=(0,Pl.useState)(!1),[p,u]=(0,Pl.useState)({});(0,Pl.useEffect)(()=>{r&&m(r)},[r]);let g=()=>{let x={};return i.customer||(x.customer="Customer is required"),i.value||(x.value="Value is required"),i.assignee||(x.assignee="Assignee is required"),i.closureDate||(x.closureDate="Closure Date is required"),u(x),Object.keys(x).length===0},b=async x=>{x.preventDefault(),u({});try{if(g()){let P=await o({...i});P.success?(m({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),l?.()):u(P.errors||{})}}catch{u({submit:"An error occurred while submitting the form."})}},f=x=>{m(P=>({...P,categories:(P.categories||[]).includes(x.id)?(P.categories||[]).filter(w=>w!==x.id):[...P.categories||[],x.id]}))},h=async x=>{m({...i,customer:x});try{let P=await s(x);P.success?d(!1):u(P.errors||{})}catch{u({submit:"An error occurred while submitting the form."})}},L=x=>t?.find(P=>P.id===Number(x)),S=x=>e?.find(P=>P.id===Number(x));return(0,Et.jsxs)(Et.Fragment,{children:[(0,Et.jsxs)("form",{onSubmit:b,className:"space-Et-6",children:[(0,Et.jsx)(la,{className:"h-[60vh] pr-4",children:(0,Et.jsxs)("div",{className:"space-Et-6 px-4",children:[(0,Et.jsxs)("div",{className:"space-Et-2 space-x-2",children:[(0,Et.jsx)(be,{htmlFor:"customer",children:"Customer"}),(0,Et.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Et.jsxs)(go,{value:i.customer?.id?.toString(),onValueChange:x=>m({...i,customer:S(x)}),children:[(0,Et.jsx)(Ya,{children:(0,Et.jsx)(bo,{placeholder:"Select customer"})}),(0,Et.jsx)(qa,{children:e.map(x=>(0,Et.jsx)(Ka,{value:x.id?.toString()||"",children:x.name},x.id))})]}),(0,Et.jsx)(B,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,Et.jsx)(Yl.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,Et.jsx)("p",{className:"text-red-500 text-Pl",children:p.customerId})]}),(0,Et.jsxs)("div",{className:"space-Et-2 space-x-2",children:[(0,Et.jsx)(be,{htmlFor:"value",children:"Value"}),(0,Et.jsx)(gt,{id:"value",type:"number",value:i.value||"",onChange:x=>m({...i,value:Number.parseFloat(x.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,Et.jsx)("p",{className:"text-red-500 text-Pl",children:p.value})]}),(0,Et.jsxs)("div",{className:"space-Et-2 space-x-2",children:[(0,Et.jsx)(be,{htmlFor:"assignee",children:"Assignee"}),(0,Et.jsxs)(go,{value:i.assignee?.id?.toString(),onValueChange:x=>m({...i,assignee:L(x)}),children:[(0,Et.jsx)(Ya,{children:(0,Et.jsx)(bo,{placeholder:"Select assignee"})}),(0,Et.jsx)(qa,{children:t&&t.map(x=>(0,Et.jsx)(Ka,{value:x.id?.toString()||"",children:x.name},x.id))})]}),p.assignee&&(0,Et.jsx)("p",{className:"text-red-500 text-Pl",children:p.assignee})]}),(0,Et.jsxs)("div",{className:"space-Et-2 space-x-2",children:[(0,Et.jsx)(be,{htmlFor:"description",children:"Description"}),(0,Et.jsx)(Qa,{id:"description",value:i.description||"",onChange:x=>m({...i,description:x.target.value}),placeholder:"Enter deal description"})]}),(0,Et.jsxs)("div",{className:"space-Et-2 space-x-2",children:[(0,Et.jsx)(be,{children:"Categories"}),(0,Et.jsx)("div",{className:"space-Et-4",children:["proposition","source","sector"].map(x=>(0,Et.jsxs)("div",{className:"space-Et-2",children:[(0,Et.jsx)("h4",{className:"text-Pl font-medium",children:x.charAt(0).toUpperCase()+x.slice(1)}),(0,Et.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(P=>P.type===x).map(P=>(0,Et.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Et.jsx)(Jt,{id:P.id.toString(),checked:i.categories?.includes(P.id),onCheckedChange:()=>f(P)}),(0,Et.jsx)("label",{htmlFor:P.id.toString(),className:"text-Pl font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:P.name})]},P.id))})]},x))})]}),(0,Et.jsxs)("div",{className:"space-Et-2 space-x-2",children:[(0,Et.jsx)(be,{htmlFor:"closureDate",children:"Closure Date"}),(0,Et.jsx)(gt,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:x=>m({...i,closureDate:x.target.value})}),p.closureDate&&(0,Et.jsx)("p",{className:"text-red-500 text-Pl",children:p.closureDate})]})]})}),(0,Et.jsx)(B,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,Et.jsx)(Ot,{open:c,onOpenChange:d,children:(0,Et.jsxs)(Dt,{children:[(0,Et.jsx)(Kt,{children:(0,Et.jsx)(Qt,{children:"Add New Customer"})}),(0,Et.jsx)(rl,{onSubmit:h})]})})]})}function il({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:l,calculateWeightedValue:i,addNewDeal:m,onAddCustomer:c}){let[d,p]=(0,Pl.useState)(!1);return(0,Et.jsxs)("div",{className:"flex flex-col w-80",children:[(0,Et.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),m&&(0,Et.jsxs)(Ot,{open:d,onOpenChange:p,children:[(0,Et.jsx)(as,{asChild:!0,children:(0,Et.jsxs)(B,{className:"mb-4 w-full",children:[(0,Et.jsx)(Yl.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,Et.jsxs)(Dt,{children:[(0,Et.jsx)(Kt,{children:(0,Et.jsx)(Qt,{children:"Add New Deal"})}),(0,Et.jsx)(sl,{customers:o,users:a,categories:r,onSubmit:m,onAddCustomer:c,onClose:()=>p(!1)})]})]}),(0,Et.jsx)(Us.Droppable,{droppableId:e,isDropDisabled:!1,children:u=>(0,Et.jsxs)("div",{ref:u.innerRef,...u.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((g,b)=>(0,Et.jsx)(Us.Draggable,{draggableId:g.id.toString(),index:g.id,children:f=>(0,Et.jsx)("div",{ref:f.innerRef,...f.draggableProps,...f.dragHandleProps,children:(0,Et.jsx)(ol,{deal:g,customer:g.customer,categories:r,onClick:()=>s(g)})})},g.id.toString())),u.placeholder]})}),(0,Et.jsxs)("div",{className:"mt-4 text-Pl p-3 rounded-lg shadow",children:[(0,Et.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,Et.jsxs)("span",{className:"text-green-600",children:["\xA3",l(t).toLocaleString()]})]}),(0,Et.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,Et.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var Vu=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function Xu({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){let[s,l]=(0,Pl.useState)(null),i=p=>(e.deals??[]).filter(u=>u.status===p),m=p=>p.reduce((u,g)=>u+(g.value||0),0),c=(p,u)=>{let g={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return p.reduce((b,f)=>b+(f.value||0)*g[u],0)},d=(0,Pl.useCallback)(p=>{let{source:u,destination:g}=p;if(!g||u.droppableId===g.droppableId&&u.index===g.index)return;let b=u.droppableId,f=g.droppableId,h=e.deals?.filter(S=>S.id===u.index)[0],L=[...e.deals??[]];h&&(h.status=f,a(h))},[a]);return(0,Et.jsx)(Us.DragDropContext,{onDragEnd:d,children:(0,Et.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,Et.jsx)("div",{className:"flex space-x-4 pb-4",children:Vu.filter(p=>p!=="Won"&&p!=="Lost").map(p=>{let u=i(p);return(0,Et.jsx)(il,{status:p,deals:u,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:l,calculateColumnValue:m,calculateWeightedValue:c,addNewDeal:p==="Cold"?t:void 0,onAddCustomer:r},p)})}),s&&(0,Et.jsx)(al,{deal:s,users:e.users,customer:s.customer,categories:e.categories??[],onClose:()=>l(null),onSave:a,onAddComment:p=>o(s.id.toString(),p)})]})})}function um({taskId:e,polling:t=!0,system:a="payload"}){let[o,r]=(0,Pl.useState)(null),[s,l]=(0,Pl.useState)(!1),[i,m]=(0,Pl.useState)(null),c=async(p=!0)=>{if(e){p&&l(!0);try{let u=await fetch(`/api/tasks/${e}`);if(!u.ok)throw new Error(`Failed to fetch task: ${u.statusText}`);let g=await u.json();r(g)}catch(u){console.error("Error fetching task:",u),m(u instanceof Error?u:new Error("Unknown error occurred"))}finally{p&&l(!1)}}},d=()=>c(!1);return(0,Pl.useEffect)(()=>{e&&c(!0);let p=null;return e&&t&&(p=setInterval(d,5e3)),()=>{p&&clearInterval(p)}},[e,t]),{task:o,loading:s,error:i}}var Yu=e=>{switch(e){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},qu=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function nl({data:e}){let{id:t,system:a,fetchLatest:o,taskData:r,error:s}=e||{};if(!t)return null;let l=null,i=!0,m=s,c=o!==void 0?o:!0;if(l=r||{id:t,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},console.log("ChatCardTask",{data:e,id:t,initialFetchLatest:o,system:a,fetchLatest:c,taskData:l,error:m}),c){let{task:g,loading:b,error:f}=um({taskId:t,system:a});l=g,i=b,m=f}else i=!1;let d=Yu(l?.status||"todo"),p=qu(l?.status||"todo"),u=l?.dateLogged||new Date().toISOString();try{let g=new Date(l?.dateLogged||"");isNaN(g.getTime())||(u=(0,Qn.formatDistanceToNow)(g,{addSuffix:!0}))}catch{}return(0,Et.jsxs)(Ce,{className:n("w-full max-w-md shadow-md",m&&"border border-destructive"),children:[(0,Et.jsxs)(Ve,{className:"pb-2",children:[(0,Et.jsxs)("div",{className:"flex justify-between items-start",children:[(0,Et.jsx)(Xe,{className:"text-lg font-semibold",children:i?"Loading...":l?.name||"Task"}),(0,Et.jsx)(xt,{className:`${d}`,children:p})]}),l?.project&&(0,Et.jsxs)(gn,{className:"text-Pl text-gray-500",children:["Project: ",l.project.name]})]}),(0,Et.jsx)(Ie,{className:"pb-2",children:i?(0,Et.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):m?(0,Et.jsx)("p",{className:"text-Pl text-red-500",children:"Error loading task details"}):(0,Et.jsx)("p",{className:"text-Pl text-foreground",children:l?.description||"......."})}),(0,Et.jsx)(bn,{className:"pt-2 flex items-center justify-between",children:(0,Et.jsxs)("div",{className:"flex items-center text-Et text-gray-500",children:[(0,Et.jsx)(Yl.Clock,{className:"h-3 w-3 mr-1"}),(0,Et.jsxs)("span",{children:["Created ",u]}),(0,Et.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,Et.jsxs)("span",{children:["Task #",t]})]})})]})}var Ku={task:nl},Qu=`
19
19
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="white" width="20" height="20">
20
20
  <path d="M327.5 85.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 128l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 128l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 64 426.8 7.5C425.1 3 420.8 0 416 0s-9.1 3-10.8 7.5L384 64 327.5 85.2zM205.1 73.3c-2.6-5.7-8.3-9.3-14.5-9.3s-11.9 3.6-14.5 9.3L123.3 187.3 9.3 240C3.6 242.6 0 248.3 0 254.6s3.6 11.9 9.3 14.5l114.1 52.7L176 435.8c2.6 5.7 8.3 9.3 14.5 9.3s11.9-3.6 14.5-9.3l52.7-114.1 114.1-52.7c5.7-2.6 9.3-8.3 9.3-14.5s-3.6-11.9-9.3-14.5L257.8 187.4 205.1 73.3zM384 384l-56.5 21.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 448l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 448l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 384l-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L384 384z"/>
21
21
  </svg>`,Ju=`data:image/svg+xml;utf8,${encodeURIComponent(Qu)}`,ll=({id:e,message:t,currentUser:a,role:o})=>{let r=o==="user",s=r?a?.name||"You":a?.name||"AI Assistant",l=r?a?.avatar||"/placeholder-user.jpg":"/placeholder.svg?height=40&width=40";switch(t.type){case"forwarding":return(0,Et.jsxs)("div",{className:`flex items-start gap-3 text-primary text-Et ${r?"flex-row-reverse":""}`,children:["Forwarding to ",t?.data?.content]},e);case"text":return(0,Et.jsxs)("div",{className:`flex items-start gap-3 ${r?"flex-row-reverse":""}`,children:[r?(0,Et.jsxs)(vt,{children:[(0,Et.jsx)(ht,{src:l,alt:s}),(0,Et.jsx)(yt,{children:s.substring(0,2).toUpperCase()})]}):(0,Et.jsx)("img",{src:Ju,alt:"AI Assistant",className:"w-10 h-10"}),(0,Et.jsxs)("div",{className:`grid gap-1.5 ${r?"text-right":""}`,children:[(0,Et.jsx)("div",{className:"flex items-center gap-2",children:(0,Et.jsx)("span",{className:"font-medium",children:s})}),(0,Et.jsx)("div",{className:`rounded-lg p-3 text-Pl ${r?"bg-primary text-primary-foreground":"bg-muted"}`,style:{whiteSpace:"pre-line"},children:t?.data?.content})]})]},e);case"image":return(0,Et.jsxs)("div",{className:`flex items-start gap-3 ${r?"flex-row-reverse":""}`,children:[(0,Et.jsxs)(vt,{className:r?"":"ai-border",children:[(0,Et.jsx)(ht,{src:l,alt:s}),(0,Et.jsx)(yt,{children:s.substring(0,2).toUpperCase()})]}),(0,Et.jsxs)("div",{className:`grid gap-1.5 ${r?"text-right":""}`,children:[(0,Et.jsx)("div",{className:"flex items-center gap-2",children:(0,Et.jsx)("span",{className:"font-medium",children:s})}),(0,Et.jsx)("img",{src:t?.data?.image,alt:"User uploaded content",className:`rounded-lg p-3 text-Pl ${r?"bg-primary text-primary-foreground":"bg-muted"}`,style:{maxWidth:"100%",height:"auto"}})]})]},e);case"tool-invocation":if(t.data&&t.data.tool){let i=Ku[t.data.tool];return i?(0,Et.jsx)("div",{className:"mt-2",children:(0,Et.jsx)(i,{data:t.data})}):(console.warn(`Tool ${t.data.tool} is not defined.`),(0,Et.jsx)("div",{className:"mt-2",children:"......"}))}}};function Zu({messages:e,contextType:t,currentUser:a,businessFunctions:o}){let[r,s]=(0,Pl.useState)(e),[l,i]=(0,Pl.useState)(""),[m,c]=(0,Pl.useState)(!1),d=(0,Pl.useRef)(null),[p,u]=(0,Pl.useState)(null);return(0,Pl.useEffect)(()=>{if(d.current){let g=d.current.querySelector("[data-radix-scroll-area-viewport]");g&&(g.scrollTop=g.scrollHeight)}},[r]),(0,Et.jsx)("div",{className:"flex flex-col h-full overflow-hidden",children:(0,Et.jsx)(la,{className:"container flex-1 p-4",ref:d,children:(0,Et.jsxs)("div",{className:"space-Et-6",children:[r.length===0&&(0,Et.jsx)("div",{className:"flex items-center justify-center h-full pt-60",children:(0,Et.jsxs)("div",{className:"text-center max-w-md",children:[(0,Et.jsx)("h2",{className:"text-2xl font-bold mb-2",children:"Welcome to Dexter"}),(0,Et.jsx)("p",{className:"text-zinc-400",children:"Ask Et anything Pl direct your question to a business function directly using the toolbar below."})]})}),m&&(0,Et.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Et.jsxs)(vt,{className:"ai-border",children:[(0,Et.jsx)(ht,{src:"/placeholder.svg?height=40&width=40",alt:"AI Assistant"}),(0,Et.jsx)(yt,{children:"AI"})]}),(0,Et.jsxs)("div",{className:"grid gap-1.5",children:[(0,Et.jsx)("div",{className:"flex items-center gap-2",children:(0,Et.jsx)("span",{className:"font-medium",children:"AI Assistant"})}),(0,Et.jsx)("div",{className:"rounded-lg p-3 text-Pl bg-muted",children:(0,Et.jsxs)("div",{className:"flex space-x-2",children:[(0,Et.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce"}),(0,Et.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.2s]"}),(0,Et.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.4s]"})]})})]})]}),r.map((g,b)=>(0,Et.jsx)(ll,{...g},b))]})})})}var sr=(e,t)=>e[t%e.length];function ef({services:e,className:t,title:a,content:o}){let r={settings:{width:"full",card:"light"}};return(0,Et.jsxs)("div",{className:"pb-4 md:pb-0",children:[(0,Et.jsxs)("div",{className:n("w-full text-left prose"),children:[a&&(0,Et.jsx)("h2",{className:"text-primary",children:a}),(0,Et.jsx)("div",{className:"pb-12 ",children:o&&(0,Et.jsx)(q,{enableGutter:!1,content:o,enableProse:!1,className:n("prose prose-headings:text-foreground prose-p:text-foreground")})})]}),e&&e.length>0&&(0,Et.jsx)("div",{className:"-mx-4 flex flex-wrap justify-between gap-Et-8",children:e.map((s,l)=>(0,Et.jsx)("div",{"data-aos":"fade-up","data-aos-delay":sr([200,400,600],l),className:"w-full px-4 md:w-1/2 lg:w-1/3 flex",children:(0,Et.jsx)(Wo,{...r,icon:{type:"none"},title:s.title,image:s.image,content:s.content,link:s.link,className:"w-full"})},l))})]})}function so({subtitle:e,title:t,description:a,alignment:o="start",hasBottomSpacing:r=!1,className:s,invert:l=!1}){let i=n(o==="start"&&"text-left",o==="center"&&"text-center",o==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":r},"prose",s);return(0,Et.jsxs)("div",{className:i,children:[e&&(0,Et.jsx)("span",{className:"mb-[.625rem] block font-semibold uppercase text-accent md:text-md",children:e}),(0,Et.jsx)("h2",{className:n("text-primary mt-0"),children:t}),typeof a=="string"?a&&(0,Et.jsx)("p",{className:"mt-5 whitespace-pre-line text-foreground",children:a}):a&&(0,Et.jsx)(q,{content:a,enableGutter:!1,className:"prose-headings:text-accent prose-p:text-primary"})]})}function tf({sectionHeading:e,cards:t}){return(0,Et.jsx)("section",{className:"section-padding-primary !pt-0",children:(0,Et.jsxs)(Ct,{children:[(0,Et.jsx)("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:(0,Et.jsx)(so,{...e,alignment:"center",hasBottomSpacing:!0})}),t&&t.length>0&&(0,Et.jsx)("div",{className:"grid gap-30px",children:t.map((a,o)=>(0,Et.jsx)("div",{"data-aos":"fade-up","data-aos-delay":sr([200,400,600],o),className:"py-2",children:(0,Et.jsx)(hn,{...a})},o))})]})})}var Or=v(require("next/image"));function af(e){let{images:t,sectionHeading:a,keyPoints:o,description:r}=e;return(0,Et.jsx)(Et.Fragment,{children:(0,Et.jsx)("section",{id:"about-section",className:n(" clip-custom-top-l sticky md:top-0 md:h-screen Et-2 flex flex-col items-center justify-center section-padding-primary dark bg-background",e.className||""),children:(0,Et.jsx)(Ct,{children:(0,Et.jsxs)("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[(0,Et.jsxs)("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[(0,Et.jsx)(so,{...a}),o&&o.length>0&&(0,Et.jsx)("div",{className:"mt-7 grid gap-5 text-accent Pl:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:o.map((s,l)=>(0,Et.jsxs)("div",{className:"group flex min-h-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 md:min-h-[85px] md:px-[1.875rem] md:py-3",children:[(0,Et.jsx)("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:s.icon}),(0,Et.jsx)("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:s.title})]},l))}),r&&(0,Et.jsx)("p",{className:"mt-5 text-primary md:mt-[1.875rem]",children:r})]}),t&&(0,Et.jsx)("div",{className:"mx-auto text-center",children:(0,Et.jsxs)("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[(0,Et.jsx)("div",{className:"relative flex justify-end overflow-hidden",children:(0,Et.jsx)("div",{className:"relative Et-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:(0,Et.jsx)("div",{className:"relative Et-[4] overflow-hidden",children:(0,Et.jsx)(Or.default,{src:t.image1.src,alt:t.image1.alt,width:t.image1.width,height:t.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})})}),(0,Et.jsx)("div",{className:"flex overflow-hidden",children:(0,Et.jsx)(Or.default,{src:t.image2.src,alt:t.image2.alt,width:t.image2.width,height:t.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),(0,Et.jsx)("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:(0,Et.jsx)(Or.default,{src:t.image3.src,alt:t.image4.alt,width:t.image3.width,height:t.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),(0,Et.jsx)("div",{className:"overflow-hidden",children:(0,Et.jsx)(Or.default,{src:t.image4.src,alt:t.image4.alt,width:t.image4.width,height:t.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),(0,Et.jsx)("div",{className:"absolute left-1/2 top-1/2 Et-[4] -translate-x-1/2 -translate-Et-1/2 overflow-hidden",children:(0,Et.jsx)("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:(0,Et.jsx)("span",{className:"grid h-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:(0,Et.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Et.jsx)("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})})}var bm=v(require("next/image"));function vm({blogs:e,base:t}){return(0,Et.jsx)("div",{children:e&&e.length>0&&(0,Et.jsx)("div",{className:"grid gap-10 lg:gap-10 md:grid-cols-2",children:e.map((a,o)=>(0,Et.jsx)(of,{post:a,id:o,base:t},o))})})}var of=({post:e,id:t,base:a})=>{let{slug:o,meta:r,authors:s,categories:l,title:i,publishedAt:m}=e;return(0,Et.jsxs)("article",{className:"relative isolate flex flex-col gap-8 lg:flex-row",children:[(0,Et.jsxs)("div",{className:"relative aspect-video Pl:aspect-[2/1] lg:aspect-square lg:w-64 lg:shrink-0",children:[(0,Et.jsx)(bm.default,{src:r?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:r?.image?.alt||"Post image",width:850,height:575,sizes:"100vw",className:"absolute inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,Et.jsx)("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"})]}),(0,Et.jsxs)("div",{children:[(0,Et.jsxs)("div",{className:"flex flex-wrap items-center gap-x-4 text-Et",children:[(0,Et.jsx)("time",{dateTime:e.publishedAt??void 0,className:"text-foreground",children:Ls(e.publishedAt??"")}),e.categories&&e.categories.map((c,d)=>(0,Et.jsx)("a",{href:`#${c}`,className:"relative Et-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100",children:c.title},d))]}),(0,Et.jsx)("div",{className:"group relative max-w-xl",children:(0,Et.jsx)("h3",{className:"mt-3 text-lg/6 font-semibold text-accent group-hover:text-xl/6",children:(0,Et.jsxs)("a",{href:`/${a}/${e.slug}`||"#",children:[(0,Et.jsx)("span",{className:"absolute inset-0"}),e.title]})})}),(0,Et.jsx)("div",{className:"mt-6 flex flex-wrap lg:border-t gap-Et-2 border-gray-200 dark:border-gray-700 pt-6",children:s&&s.map((c,d)=>(0,Et.jsxs)("div",{className:"relative flex items-center gap-x-4",children:[c.profilePicture?(0,Et.jsx)("img",{alt:c.name||"Author",src:c.profilePicture?.url||"/assets/images/placeholder.jpg",className:"size-10 rounded-full bg-gray-50"}):(0,Et.jsx)("div",{className:"size-10 rounded-full bg-gray-50"})," ",(0,Et.jsx)("div",{className:"text-Pl/6",children:(0,Et.jsxs)("p",{className:"text-foreground pr-6",children:[(0,Et.jsx)("span",{className:"absolute inset-0"}),c.name]})})]},d))})]})]},t)};function rf({blogs:e,pages:t,categories:a,types:o,base:r}){return(0,Et.jsx)("section",{children:(0,Et.jsx)(Ct,{children:(0,Et.jsx)("div",{className:"grid",children:(0,Et.jsxs)("div",{children:[o&&(0,Et.jsx)(Hn,{types:o}),(0,Et.jsx)(vm,{blogs:e,base:r}),(0,Et.jsx)(Bn,{pages:t})]})})})})}var hm=v(require("next/image"));var Xs="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//Et";function sf(e){let{sectionHeading:t,image:a}=e;return(0,Et.jsx)("div",{className:"relative w-full light py-[60px]",children:(0,Et.jsxs)("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[(0,Et.jsx)("div",{className:"relative h-full w-full",children:(0,Et.jsx)(hm.default,{src:a.src,alt:a.alt,fill:!0,objectFit:"contain",sizes:"(min-width: 768px) 30vw, 50vw",placeholder:"blur",blurDataURL:Xs})}),(0,Et.jsx)("div",{className:"w-full h-full",children:(0,Et.jsxs)("div",{className:"bg-white p-10",children:[(0,Et.jsx)("div",{className:"mb-30px",children:(0,Et.jsx)(so,{...t,invert:!0})}),(0,Et.jsx)(vs,{})]})})]})})}function nf(e){return(0,Et.jsx)("div",{className:"",children:(0,Et.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Et.jsx)("div",{className:"mx-auto max-w-2xl space-Et-16 divide-Et divide-gray-100 lg:mx-0 lg:max-w-none",children:(0,Et.jsxs)("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[(0,Et.jsxs)("div",{children:[(0,Et.jsx)("h2",{className:"text-pretty text-4xl text-primary",children:"Locations"}),(0,Et.jsx)("p",{className:"mt-4 text-base/7 text-foreground",children:"Et have multiple locations across the UK."})]}),(0,Et.jsx)("div",{className:"grid grid-cols-1 gap-6 Pl:grid-cols-2 lg:col-span-2 lg:gap-8",children:e.locations&&e.locations.map((t,a)=>(0,Et.jsxs)("div",{className:"rounded-2xl p-10 border",children:[(0,Et.jsx)("h3",{className:"text-base/7 text-primary",children:t.title}),(0,Et.jsxs)("address",{className:"mt-3 space-Et-1 text-Pl/6 not-italic text-foreground",children:[t.location.split(",")?.map((o,r)=>(0,Et.jsx)("p",{children:o},r))," ",t.mails&&(0,Et.jsxs)("p",{className:"flex items-center space-x-2",children:[(0,Et.jsx)(Id.FaEnvelope,{className:"pr-2 text-primary size-auto"}),(0,Et.jsx)("span",{children:t.mails[0]})]}),t.phoneNumbers&&t.phoneNumbers.length>0&&(0,Et.jsxs)("p",{className:"flex items-center space-x-2",children:[(0,Et.jsx)(Id.FaPhoneFlip,{className:"pr-2 text-primary size-auto"}),t.phoneNumbers[0]]})]})]},a))})]})})})})}var ym=v(require("next/image"));var wm=v(require("next/link"));function lf({image:e,name:t,about:a,socialLinks:o}){return!e||!e.src||e.src.length<3||!t?null:(0,Et.jsx)("div",{className:"mt-1 Et-10 px-0 pt-0 lg:px-10",children:(0,Et.jsx)(Ce,{children:(0,Et.jsxs)(Ie,{className:"flex flex-col items-center",children:[e&&e.src&&(0,Et.jsx)(ym.default,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:Xs,className:"mx-auto mt-6 rounded-full object-cover"}),(0,Et.jsxs)("h3",{className:"flex items-center ali font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:[t,o&&o.length>0&&(0,Et.jsx)("nav",{"aria-label":"social links",children:(0,Et.jsx)("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:o.map((r,s)=>r.href&&(0,Et.jsx)("li",{children:(0,Et.jsx)(Qe,{href:r.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-Et-1 hover:text-accents",children:(0,Et.jsx)("span",{children:r.icon})})},s))})})]}),(0,Et.jsx)("p",{children:a})]})})})}function df({page:e,categoryList:t,edit:a=!1,path:o="/admin/collections/posts/"}){if(!e)return(0,pc.notFound)();let{meta:r,populatedAuthors:s,authors:l,categories:i,content:m,title:c}=e,d={image:{src:r&&r.image&&r.image.url||void 0,alt:r&&r.image&&r.image.alt||void 0},authorName:s?.[0]?.name||"",category:i,commentCount:0,title:c,description:r?.description||""},p=l?.map(u=>{let g=u.profilePicture&&u.profilePicture.sizes?.square?.url||u.profilePicture&&u.profilePicture.sizes?.thumbnail?.url||"";return console.log("val:",g),{name:u.name||"",about:u.about||"",image:{src:g,alt:u.name||"blog author"},socialLinks:[{icon:(0,Et.jsx)(Id.FaLinkedin,{}),href:u.linkedIn??""}]}});return console.log(p),(0,Et.jsx)(Ct,{children:(0,Et.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,Et.jsx)("div",{children:(0,Et.jsxs)("div",{className:"[&_p+P]:mt-4",children:[(0,Et.jsx)("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),(0,Et.jsx)(q,{content:m,enableGutter:!1,className:"prose-invert"})]})}),(0,Et.jsxs)("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[a&&(0,Et.jsx)("div",{className:"mt-4 lg:-mt-10 Et-10 px-0 pt-0 lg:px-10",children:(0,Et.jsxs)(Ce,{children:[(0,Et.jsx)(Ve,{children:(0,Et.jsx)(Xe,{className:"text-accent",children:"Content Actions"})}),(0,Et.jsxs)(Ie,{children:[(0,Et.jsx)("p",{className:"mb-4 text-Pl text-muted-foreground",children:"Edit this page in the CMS"}),(0,Et.jsx)(wm.default,{href:`${o}${e.id}`,children:(0,Et.jsx)(B,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),p&&p.map((u,g)=>(0,Et.jsx)(lf,{...u},g)),t&&t.links&&(0,Et.jsx)("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:(0,Et.jsx)(En,{links:t.links,title:t.title})})]})]})})}var dl=v(require("next/link"));var km=require("lucide-react"),cf=({children:e,pageId:t,tableOfContents:a=[],edit:o=!0,path:r="/admin/collections/pages/",relatedContent:s=[{title:"Related Content",links:[]}]})=>{let[l,i]=(0,Pl.useState)(!1),m=()=>{i(!l)};return(0,Pl.useEffect)(()=>{let c=window.location.hash;if(c){let d=c.substring(1),p=document.getElementById(d);if(p){let g=p.getBoundingClientRect().top+window.pageYOffset+-300;window.scrollTo({top:g,behavior:"smooth"})}}},[window.location.hash]),(0,Et.jsxs)("div",{className:"",children:[(0,Et.jsx)("div",{className:n(l?"col-span-3":"col-span-4","xl:col-span-3"),children:e}),(0,Et.jsx)(mf,{pageId:t,tableOfContents:a,edit:o,path:r,relatedContent:s,isSidebarVisible:l}),(0,Et.jsx)("div",{className:"block md:hidden mt-8",children:(0,Et.jsx)("div",{className:"space-Et-6",children:e})})]})};var mf=({pageId:e,tableOfContents:t=[],edit:a=!0,path:o="/admin/collections/pages/",relatedContent:r=[{title:"Related Content",links:[]}],isSidebarVisible:s})=>{let[l,i]=(0,Pl.useState)(""),[m,c]=(0,Pl.useState)(!1),[d,p]=(0,Pl.useState)(!1),u=(0,pc.usePathname)(),g=()=>{c(!m),p(!1)},b=()=>{p(!d),c(!1)},f=S=>{switch(S){case"h3":return"ml-4";case"h4":return"ml-8";default:return""}},h=()=>{let S=u.split("/"),x="/print"+u,P=window.open(x,"Print","width=1754,height=1240,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes");P&&P.focus()},L=()=>{let S=u.split("/"),x="/present"+u,P=window.open(x,"Print","width=1754,height=1240,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes");P&&P.focus()};return(0,Et.jsx)("div",{className:n("fixed right-2 Et-20 top-1/4 space-Et-6 transform transition-transform duration-300 translate-x-full",s?"translate-x-0":"md:translate-x-0"),children:(0,Et.jsxs)("div",{className:"flex flex-row-reverse Et-20 min-w-64 gap-4",children:[(0,Et.jsxs)("nav",{className:"Et-20 flex grow-0 justify-end gap-4 border-gray-200 bg-card p-2.5 shadow-lg backdrop-blur-lg min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[(0,Et.jsxs)(dl.default,{href:`${o}${e}`,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,Et.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,Et.jsx)("path",{d:"M454.6 45.3l12.1 12.1c12.5 12.5 12.5 32.8 0 45.3L440 129.4 382.6 72l26.7-26.7c12.5-12.5 32.8-12.5 45.3 0zM189 265.6l171-171L417.4 152l-171 171c-4.2 4.2-9.6 7.2-15.4 8.6l-65.6 15.1L180.5 281c1.3-5.8 4.3-11.2 8.6-15.4zm197.7-243L166.4 243c-8.5 8.5-14.4 19.2-17.1 30.9l-20.9 90.6c-1.2 5.4 .4 11 4.3 14.9s9.5 5.5 14.9 4.3l90.6-20.9c11.7-2.7 22.4-8.6 30.9-17.1L489.4 125.3c25-25 25-65.5 0-90.5L477.3 22.6c-25-25-65.5-25-90.5 0zM80 64C35.8 64 0 99.8 0 144L0 432c0 44.2 35.8 80 80 80l288 0c44.2 0 80-35.8 80-80l0-128c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 128c0 26.5-21.5 48-48 48L80 480c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48l128 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L80 64z"})}),(0,Et.jsx)("small",{className:"text-center text-Et font-medium",children:" Edit "})]}),(0,Et.jsxs)("a",{onClick:g,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,Et.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",children:(0,Et.jsx)("path",{d:"M16 80C7.2 80 0 87.2 0 96s7.2 16 16 16l416 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 80zM144 240c-8.8 0-16 7.2-16 16s7.2 16 16 16l288 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-288 0zM128 416c0 8.8 7.2 16 16 16l288 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-288 0c-8.8 0-16 7.2-16 16zM0 432c0 8.8 7.2 16 16 16s16-7.2 16-16l0-192c0-8.8-7.2-16-16-16s-16 7.2-16 16L0 432z"})}),(0,Et.jsx)("small",{className:"text-center text-Et font-medium",children:" Contents "})]}),(0,Et.jsxs)("a",{onClick:b,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,Et.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,Et.jsx)("path",{d:"M136 64c13.3 0 24 10.7 24 24l0 24 0 32 0 24c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24l80 0zm56 104l0-24 192 0 0 24c0 30.9 25.1 56 56 56l80 0c30.9 0 56-25.1 56-56l0-80c0-30.9-25.1-56-56-56l-80 0c-30.9 0-56 25.1-56 56l0 24-192 0 0-24c0-30.9-25.1-56-56-56L56 32C25.1 32 0 57.1 0 88l0 80c0 30.9 25.1 56 56 56l80 0c8.6 0 16.7-1.9 24-5.4l72.2 96.3c-5.2 8.5-8.2 18.5-8.2 29.1l0 80c0 30.9 25.1 56 56 56l80 0c30.9 0 56-25.1 56-56l0-80c0-30.9-25.1-56-56-56l-80 0c-8.6 0-16.7 1.9-24 5.4l-72.2-96.3c5.2-8.5 8.2-18.5 8.2-29.1zm224 0l0-24 0-32 0-24c0-13.3 10.7-24 24-24l80 0c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24zM360 320c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24l80 0z"})}),(0,Et.jsx)("small",{className:"text-center text-Et font-medium",children:" Related "})]}),(0,Et.jsx)("hr",{className:"dark:border-gray-400"}),(0,Et.jsxs)("a",{onClick:L,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,Et.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,Et.jsx)("path",{d:"M16 0C7.2 0 0 7.2 0 16s7.2 16 16 16l544 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 0zM32 64l0 224c0 35.3 28.7 64 64 64l176 0 0 41.4-91.3 91.3c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L288 422.6l84.7 84.7c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L304 393.4l0-41.4 176 0c35.3 0 64-28.7 64-64l0-224-32 0 0 224c0 17.7-14.3 32-32 32l-192 0L96 320c-17.7 0-32-14.3-32-32L64 64 32 64z"})}),(0,Et.jsx)("small",{className:"text-Et font-medium",children:"Present"})]}),(0,Et.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,Et.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,Et.jsx)("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),(0,Et.jsx)("small",{className:"text-Et font-medium",children:"Print"})]})]}),m&&(0,Et.jsx)("div",{className:n("Et-50 flex shrink-0 grow-0 gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border"),children:(0,Et.jsxs)("div",{className:"flex flex-col m-2 justify-start Et-50 min-w-64",children:[(0,Et.jsx)("div",{className:"flex text-accent",children:"On this Page"}),(0,Et.jsx)("ul",{className:"flex flex-col space-Et-2",children:t.map((S,x)=>(0,Et.jsx)("li",{className:f(S.tag),children:(0,Et.jsx)("a",{href:`#${S.id}`,className:`text-Et ${l===S.id?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:S.text})},x))})]})}),d&&r&&r.length>0&&(0,Et.jsx)("div",{className:n("Et-50 flex shrink-0 grow-0 gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border"),children:(0,Et.jsxs)("div",{className:"flex flex-col m-2 justify-start Et-50 min-w-64",children:[(0,Et.jsx)("div",{className:"flex text-accent",children:"Related Content"}),(0,Et.jsx)("ul",{className:"flex flex-col space-Et-2",children:r.map((S,x)=>S.links&&S.links.length>0?S.links.map((P,w)=>(0,Et.jsxs)(dl.default,{href:P.url,className:"inline-flex items-center text-Pl text-primary dark:text-foreground hover:text-accent",children:[P.title,P.url.startsWith("http")&&(0,Et.jsx)(km.ExternalLink,{className:"ml-1 h-3 w-3"})]},w)):null)})]})})]})})};var Sm=v(require("next/image"));function pf({className:e,children:t,image:a="https://images.unsplash.com/photo-1557804506-669a67965ba0?q=80&w=2574&auto=format&fit=crop",imageAlt:o="Professional presentation in modern office setting",imagePosition:r="left",overlay:s=!0}){return(0,Et.jsxs)("section",{className:n("relative min-h-[50vh] w-full overflow-hidden",e),children:[(0,Et.jsxs)("div",{className:"absolute inset-0 w-full",children:[(0,Et.jsx)(Sm.default,{src:a||"/placeholder.svg",alt:o,fill:!0,className:"object-cover",priority:!0}),s&&(0,Et.jsx)("div",{className:"absolute inset-0",style:{background:r==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]}),(0,Et.jsx)("div",{className:n("relative w-full max-w-8xl mx-auto px-4 md:px-6 lg:px-8","flex items-center",r==="left"?"justify-end":"justify-start"),children:(0,Et.jsx)("div",{className:n("w-full max-w-xl py-12",r==="left"?"ml-auto":"mr-auto"),children:t})})]})}var cl=v(require("next/image"));function uf({blogs:e,sectionHeading:t,base:a="insights"}){return(0,Et.jsxs)(Ct,{children:[(0,Et.jsx)("div",{className:"",children:t&&(0,Et.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,Et.jsx)(so,{...t,alignment:"start",hasBottomSpacing:!0})})}),e&&e.length>0&&(0,Et.jsx)("div",{className:"-mx-4 flex flex-wrap justify-start gap-Et-4",children:e.map((o,r)=>(0,Et.jsx)("div",{"data-aos":"fade-up","data-aos-delay":sr([200,400,600],r),className:"w-full h-full md:w-1/2 md:px-4 lg:w-1/3",children:(0,Et.jsx)(Dm,{...o,base:a})},r))})]})}var Rm=n("inline-flex items-center gap-2 text-white"),f2=n("text-Pl text-white");function Dm({slug:e,meta:t,authors:a,title:o,publishedAt:r,categories:s,base:l}){return(0,Et.jsxs)("article",{className:"group/blog relative Et-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,Et.jsx)("span",{className:"absolute inset-0 Et-[2] "}),(0,Et.jsx)(cl.default,{src:t?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:t?.image?.alt||"Blog image",fill:!0,sizes:`