cortex-react-components 2.0.0 → 2.0.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 (87) hide show
  1. package/dist/components/.archive/ai-chat-interface.d.ts +70 -0
  2. package/dist/components/{dc-temp → AdvancedComponents}/app-header.d.ts +10 -2
  3. package/dist/components/AdvancedComponents/index.d.ts +3 -0
  4. package/dist/components/{dc-temp → AdvancedComponents}/notifications-panel.d.ts +3 -3
  5. package/dist/components/AdvancedComponents/sidebar.d.ts +16 -0
  6. package/dist/components/AdvancedComponents/user-selection.d.ts +9 -0
  7. package/dist/components/Chat/CopilotInterface.d.ts +96 -0
  8. package/dist/components/Chat/EnhancedChatInterface.d.ts +24 -0
  9. package/dist/components/Chat/ai-chat-interface.d.ts +70 -0
  10. package/dist/components/{dc-temp → Chat}/capability-menu.d.ts +2 -1
  11. package/dist/components/{dc-temp → Chat}/chat-session-sidebar.d.ts +1 -1
  12. package/dist/components/Chat/index.d.ts +4 -0
  13. package/dist/components/DigitalColleagues/DigitalColleageusLayout.d.ts +26 -0
  14. package/dist/components/DigitalColleagues/ManagementSidebar.d.ts +1 -1
  15. package/dist/components/{dc-temp → DigitalColleagues}/Pages/dashboardpage.d.ts +1 -1
  16. package/dist/components/{dc-temp → DigitalColleagues}/Views/ColleaguesView.d.ts +1 -2
  17. package/dist/components/{dc-temp → DigitalColleagues}/Views/KnowledgeView.d.ts +1 -1
  18. package/dist/components/{dc-temp → DigitalColleagues}/Views/TeamsIndexView.d.ts +1 -1
  19. package/dist/components/DigitalColleagues/Views/index.d.ts +6 -0
  20. package/dist/components/{dc-temp → DigitalColleagues}/colleague-card.d.ts +1 -1
  21. package/dist/components/{dc-temp → DigitalColleagues}/colleague-form.d.ts +1 -1
  22. package/dist/components/{dc-temp → DigitalColleagues}/digital-colleague-clone.d.ts +1 -1
  23. package/dist/components/DigitalColleagues/test-data.d.ts +7 -1
  24. package/dist/components/DigitalColleagues/types.d.ts +40 -0
  25. package/dist/components/{dc-temp/hero-section.d.ts → Heros/DashboardHero/DashboardHero.d.ts} +1 -1
  26. package/dist/components/Heros/DashboardHero/index.d.ts +1 -0
  27. package/dist/components/Heros/index.d.ts +1 -0
  28. package/dist/components/{DigitalColleagues → Projects}/AddEpicModal.d.ts +1 -1
  29. package/dist/components/{DigitalColleagues → Projects}/AddSprintModal.d.ts +1 -1
  30. package/dist/components/{DigitalColleagues → Projects}/AddTaskModal.d.ts +2 -1
  31. package/dist/components/{DigitalColleagues → Projects}/EpicFilter.d.ts +1 -1
  32. package/dist/components/{DigitalColleagues → Projects}/EpicsView.d.ts +1 -1
  33. package/dist/components/{dc-temp/Views → Projects}/FileView.d.ts +1 -1
  34. package/dist/components/{dc-temp/Views/KanbanBoard.d.ts → Projects/KanbanBoardView.d.ts} +2 -2
  35. package/dist/components/{DigitalColleagues → Projects}/KanbanColumn.d.ts +1 -1
  36. package/dist/components/{DigitalColleagues → Projects}/PlanningView.d.ts +1 -1
  37. package/dist/components/{dc-temp/Pages → Projects}/ProjectPage.d.ts +2 -2
  38. package/dist/components/{dc-temp/Views → Projects}/ProjectView.d.ts +1 -1
  39. package/dist/components/{dc-temp/Views → Projects}/ProjectsIndexView.d.ts +1 -1
  40. package/dist/components/{DigitalColleagues → Projects}/TaskCard.d.ts +1 -1
  41. package/dist/components/{DigitalColleagues → Projects}/TaskSidebar.d.ts +1 -1
  42. package/dist/components/Projects/TasksView.d.ts +11 -0
  43. package/dist/components/Projects/business-unit-switcher.d.ts +9 -0
  44. package/dist/components/Projects/business-units.d.ts +4 -0
  45. package/dist/components/{dc-temp → Projects}/team-switcher-bar.d.ts +1 -1
  46. package/dist/components/Projects/test-data.d.ts +105 -0
  47. package/dist/components/dc-temp/index.d.ts +5 -5
  48. package/dist/components/dc-temp/mock-data.d.ts +1 -3
  49. package/dist/components/dc-temp/sidebar.d.ts +5 -3
  50. package/dist/index.js +14 -13
  51. package/dist/index.mjs +14 -13
  52. package/dist/metafile-cjs.json +1 -1
  53. package/dist/metafile-esm.json +1 -1
  54. package/dist/test-data/capabilities.d.ts +48 -0
  55. package/package.json +1 -1
  56. package/dist/components/DigitalColleagues/ChatInterface.d.ts +0 -6
  57. package/dist/components/DigitalColleagues/DocumentationView.d.ts +0 -2
  58. package/dist/components/DigitalColleagues/TasksView.d.ts +0 -36
  59. package/dist/components/dc-temp/AssistantInterface.d.ts +0 -1
  60. package/dist/components/dc-temp/Views/index.d.ts +0 -6
  61. package/dist/components/dc-temp/ai-assistants.d.ts +0 -2
  62. package/dist/components/dc-temp/ai-chat-interface.d.ts +0 -23
  63. package/dist/components/dc-temp/ai-chat.d.ts +0 -21
  64. package/dist/components/dc-temp/business-unit-switcher.d.ts +0 -8
  65. package/dist/components/dc-temp/business-units.d.ts +0 -13
  66. package/dist/components/dc-temp/creative-layout.d.ts +0 -19
  67. package/dist/components/dc-temp/document-sidebar.d.ts +0 -9
  68. package/dist/components/dc-temp/documents.d.ts +0 -27
  69. package/dist/components/dc-temp/landingpage.d.ts +0 -10
  70. package/dist/components/dc-temp/user-selection.d.ts +0 -21
  71. /package/dist/components/{dc-temp → .archive}/app-card.d.ts +0 -0
  72. /package/dist/components/{DigitalColleagues → AdvancedComponents}/CommentSection.d.ts +0 -0
  73. /package/dist/components/{DigitalColleagues → AdvancedComponents}/EditableField.d.ts +0 -0
  74. /package/dist/components/{dc-temp → AdvancedComponents}/theme-provider.d.ts +0 -0
  75. /package/dist/components/{dc-temp → AdvancedComponents}/theme-toggle.d.ts +0 -0
  76. /package/dist/components/{dc-temp → Chat}/capabilities-config.d.ts +0 -0
  77. /package/dist/components/{dc-temp → Chat}/capabilities-data.d.ts +0 -0
  78. /package/dist/components/{dc-temp → Chat}/capabilities.d.ts +0 -0
  79. /package/dist/components/{dc-temp → DigitalColleagues}/colleague-type-selection.d.ts +0 -0
  80. /package/dist/components/{dc-temp → DigitalColleagues}/digital-colleague-options.d.ts +0 -0
  81. /package/dist/components/{DigitalColleagues → Projects}/TaskDetailsModal.d.ts +0 -0
  82. /package/dist/components/{DigitalColleagues → Projects}/TaskSelect.d.ts +0 -0
  83. /package/dist/components/{DigitalColleagues → Projects}/TeamSwitcher.d.ts +0 -0
  84. /package/dist/components/{dc-temp → Projects}/file-list.d.ts +0 -0
  85. /package/dist/components/{dc-temp → Projects}/project-card.d.ts +0 -0
  86. /package/dist/components/{dc-temp → Projects}/project-form.d.ts +0 -0
  87. /package/dist/components/{dc-temp → Projects}/team-card.d.ts +0 -0
package/dist/index.mjs CHANGED
@@ -3,30 +3,31 @@
3
3
  "use client"
4
4
  'use server'
5
5
  'use strict'
6
+ 'use client';
6
7
 
7
- var im=Object.create;var Pn=Object.defineProperty;var nm=Object.getOwnPropertyDescriptor;var lm=Object.getOwnPropertyNames;var dm=Object.getPrototypeOf,cm=Object.prototype.hasOwnProperty;var mm=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var pm=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of lm(t))!cm.call(e,r)&&r!==a&&Pn(e,r,{get:()=>t[r],enumerable:!(o=nm(t,r))||o.enumerable});return e};var um=(e,t,a)=>(a=e!=null?im(dm(e)):{},pm(t||!e||!e.__esModule?Pn(a,"default",{value:e,enumerable:!0}):a,e));var Bn=mm((br,ii)=>{"use strict";(function(e,t){typeof br=="object"&&typeof ii=="object"?ii.exports=t():typeof define=="function"&&define.amd?define([],t):typeof br=="object"?br.AOS=t():e.AOS=t()})(br,function(){return function(e){function t(o){if(a[o])return a[o].exports;var r=a[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var a={};return t.m=e,t.c=a,t.p="dist/",t(0)}([function(e,t,a){"use strict";function o(v){return v&&v.__esModule?v:{default:v}}var r=Object.assign||function(v){for(var _=1;_<arguments.length;_++){var E=arguments[_];for(var ge in E)Object.prototype.hasOwnProperty.call(E,ge)&&(v[ge]=E[ge])}return v},s=a(1),n=(o(s),a(6)),i=o(n),c=a(7),m=o(c),d=a(8),p=o(d),u=a(9),g=o(u),b=a(10),f=o(b),h=a(11),T=o(h),P=a(14),y=o(P),N=[],x=!1,C={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},V=function(){var v=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(v&&(x=!0),x)return N=(0,T.default)(N,C),(0,f.default)(N,C.once),N},A=function(){N=(0,y.default)(),V()},R=function(){N.forEach(function(v,_){v.node.removeAttribute("data-aos"),v.node.removeAttribute("data-aos-easing"),v.node.removeAttribute("data-aos-duration"),v.node.removeAttribute("data-aos-delay")})},w=function(v){return v===!0||v==="mobile"&&g.default.mobile()||v==="phone"&&g.default.phone()||v==="tablet"&&g.default.tablet()||typeof v=="function"&&v()===!0},z=function(v){C=r(C,v),N=(0,y.default)();var _=document.all&&!window.atob;return w(C.disable)||_?R():(C.disableMutationObserver||p.default.isSupported()||(console.info(`
8
+ var Cm=Object.create;var Fn=Object.defineProperty;var km=Object.getOwnPropertyDescriptor;var Pm=Object.getOwnPropertyNames;var Sm=Object.getPrototypeOf,Rm=Object.prototype.hasOwnProperty;var Tm=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Dm=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Pm(t))!Rm.call(e,r)&&r!==a&&Fn(e,r,{get:()=>t[r],enumerable:!(o=km(t,r))||o.enumerable});return e};var Am=(e,t,a)=>(a=e!=null?Cm(Sm(e)):{},Dm(t||!e||!e.__esModule?Fn(a,"default",{value:e,enumerable:!0}):a,e));var Wn=Tm((Cr,vi)=>{"use strict";(function(e,t){typeof Cr=="object"&&typeof vi=="object"?vi.exports=t():typeof define=="function"&&define.amd?define([],t):typeof Cr=="object"?Cr.AOS=t():e.AOS=t()})(Cr,function(){return function(e){function t(o){if(a[o])return a[o].exports;var r=a[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var a={};return t.m=e,t.c=a,t.p="dist/",t(0)}([function(e,t,a){"use strict";function o(v){return v&&v.__esModule?v:{default:v}}var r=Object.assign||function(v){for(var G=1;G<arguments.length;G++){var E=arguments[G];for(var fe in E)Object.prototype.hasOwnProperty.call(E,fe)&&(v[fe]=E[fe])}return v},s=a(1),n=(o(s),a(6)),i=o(n),d=a(7),m=o(d),c=a(8),p=o(c),u=a(9),g=o(u),b=a(10),f=o(b),y=a(11),R=o(y),P=a(14),h=o(P),w=[],x=!1,k={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},V=function(){var v=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(v&&(x=!0),x)return w=(0,R.default)(w,k),(0,f.default)(w,k.once),w},M=function(){w=(0,h.default)(),V()},T=function(){w.forEach(function(v,G){v.node.removeAttribute("data-aos"),v.node.removeAttribute("data-aos-easing"),v.node.removeAttribute("data-aos-duration"),v.node.removeAttribute("data-aos-delay")})},N=function(v){return v===!0||v==="mobile"&&g.default.mobile()||v==="phone"&&g.default.phone()||v==="tablet"&&g.default.tablet()||typeof v=="function"&&v()===!0},z=function(v){k=r(k,v),w=(0,h.default)();var G=document.all&&!window.atob;return N(k.disable)||G?T():(k.disableMutationObserver||p.default.isSupported()||(console.info(`
8
9
  aos: MutationObserver is not supported on this browser,
9
10
  code mutations observing has been disabled.
10
11
  You may have to call "refreshHard()" by yourself.
11
- `),C.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",C.easing),document.querySelector("body").setAttribute("data-aos-duration",C.duration),document.querySelector("body").setAttribute("data-aos-delay",C.delay),C.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?V(!0):C.startEvent==="load"?window.addEventListener(C.startEvent,function(){V(!0)}):document.addEventListener(C.startEvent,function(){V(!0)}),window.addEventListener("resize",(0,m.default)(V,C.debounceDelay,!0)),window.addEventListener("orientationchange",(0,m.default)(V,C.debounceDelay,!0)),window.addEventListener("scroll",(0,i.default)(function(){(0,f.default)(N,C.once)},C.throttleDelay)),C.disableMutationObserver||p.default.ready("[data-aos]",A),N)};e.exports={init:z,refresh:V,refreshHard:A}},function(e,t){},,,,,function(e,t){(function(a){"use strict";function o(w,z,v){function _(se){var nt=re,Ba=de;return re=de=void 0,Ia=se,_e=w.apply(Ba,nt)}function E(se){return Ia=se,Be=setTimeout(Dt,z),La?_(se):_e}function ge(se){var nt=se-yt,Ba=se-Ia,kn=z-nt;return ha?A(kn,Zt-Ba):kn}function He(se){var nt=se-yt,Ba=se-Ia;return yt===void 0||nt>=z||nt<0||ha&&Ba>=Zt}function Dt(){var se=R();return He(se)?ht(se):void(Be=setTimeout(Dt,ge(se)))}function ht(se){return Be=void 0,he&&re?_(se):(re=de=void 0,_e)}function st(){Be!==void 0&&clearTimeout(Be),Ia=0,re=yt=de=Be=void 0}function it(){return Be===void 0?_e:ht(R())}function ne(){var se=R(),nt=He(se);if(re=arguments,de=this,yt=se,nt){if(Be===void 0)return E(yt);if(ha)return Be=setTimeout(Dt,z),_(yt)}return Be===void 0&&(Be=setTimeout(Dt,z)),_e}var re,de,Zt,_e,Be,yt,Ia=0,La=!1,ha=!1,he=!0;if(typeof w!="function")throw new TypeError(d);return z=c(z)||0,s(v)&&(La=!!v.leading,ha="maxWait"in v,Zt=ha?V(c(v.maxWait)||0,z):Zt,he="trailing"in v?!!v.trailing:he),ne.cancel=st,ne.flush=it,ne}function r(w,z,v){var _=!0,E=!0;if(typeof w!="function")throw new TypeError(d);return s(v)&&(_="leading"in v?!!v.leading:_,E="trailing"in v?!!v.trailing:E),o(w,z,{leading:_,maxWait:z,trailing:E})}function s(w){var z=typeof w>"u"?"undefined":m(w);return!!w&&(z=="object"||z=="function")}function n(w){return!!w&&(typeof w>"u"?"undefined":m(w))=="object"}function i(w){return(typeof w>"u"?"undefined":m(w))=="symbol"||n(w)&&C.call(w)==u}function c(w){if(typeof w=="number")return w;if(i(w))return p;if(s(w)){var z=typeof w.valueOf=="function"?w.valueOf():w;w=s(z)?z+"":z}if(typeof w!="string")return w===0?w:+w;w=w.replace(g,"");var v=f.test(w);return v||h.test(w)?T(w.slice(2),v?2:8):b.test(w)?p:+w}var m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},d="Expected a function",p=NaN,u="[object Symbol]",g=/^\s+|\s+$/g,b=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,h=/^0o[0-7]+$/i,T=parseInt,P=(typeof a>"u"?"undefined":m(a))=="object"&&a&&a.Object===Object&&a,y=(typeof self>"u"?"undefined":m(self))=="object"&&self&&self.Object===Object&&self,N=P||y||Function("return this")(),x=Object.prototype,C=x.toString,V=Math.max,A=Math.min,R=function(){return N.Date.now()};e.exports=r}).call(t,function(){return this}())},function(e,t){(function(a){"use strict";function o(R,w,z){function v(he){var se=ne,nt=re;return ne=re=void 0,yt=he,Zt=R.apply(nt,se)}function _(he){return yt=he,_e=setTimeout(He,w),Ia?v(he):Zt}function E(he){var se=he-Be,nt=he-yt,Ba=w-se;return La?V(Ba,de-nt):Ba}function ge(he){var se=he-Be,nt=he-yt;return Be===void 0||se>=w||se<0||La&&nt>=de}function He(){var he=A();return ge(he)?Dt(he):void(_e=setTimeout(He,E(he)))}function Dt(he){return _e=void 0,ha&&ne?v(he):(ne=re=void 0,Zt)}function ht(){_e!==void 0&&clearTimeout(_e),yt=0,ne=Be=re=_e=void 0}function st(){return _e===void 0?Zt:Dt(A())}function it(){var he=A(),se=ge(he);if(ne=arguments,re=this,Be=he,se){if(_e===void 0)return _(Be);if(La)return _e=setTimeout(He,w),v(Be)}return _e===void 0&&(_e=setTimeout(He,w)),Zt}var ne,re,de,Zt,_e,Be,yt=0,Ia=!1,La=!1,ha=!0;if(typeof R!="function")throw new TypeError(m);return w=i(w)||0,r(z)&&(Ia=!!z.leading,La="maxWait"in z,de=La?C(i(z.maxWait)||0,w):de,ha="trailing"in z?!!z.trailing:ha),it.cancel=ht,it.flush=st,it}function r(R){var w=typeof R>"u"?"undefined":c(R);return!!R&&(w=="object"||w=="function")}function s(R){return!!R&&(typeof R>"u"?"undefined":c(R))=="object"}function n(R){return(typeof R>"u"?"undefined":c(R))=="symbol"||s(R)&&x.call(R)==p}function i(R){if(typeof R=="number")return R;if(n(R))return d;if(r(R)){var w=typeof R.valueOf=="function"?R.valueOf():R;R=r(w)?w+"":w}if(typeof R!="string")return R===0?R:+R;R=R.replace(u,"");var z=b.test(R);return z||f.test(R)?h(R.slice(2),z?2:8):g.test(R)?d:+R}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},m="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,T=(typeof a>"u"?"undefined":c(a))=="object"&&a&&a.Object===Object&&a,P=(typeof self>"u"?"undefined":c(self))=="object"&&self&&self.Object===Object&&self,y=T||P||Function("return this")(),N=Object.prototype,x=N.toString,C=Math.max,V=Math.min,A=function(){return y.Date.now()};e.exports=o}).call(t,function(){return this}())},function(e,t){"use strict";function a(c){var m=void 0,d=void 0,p=void 0;for(m=0;m<c.length;m+=1)if(d=c[m],d.dataset&&d.dataset.aos||(p=d.children&&a(d.children)))return!0;return!1}function o(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function r(){return!!o()}function s(c,m){var d=window.document,p=o(),u=new p(n);i=m,u.observe(d.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function n(c){c&&c.forEach(function(m){var d=Array.prototype.slice.call(m.addedNodes),p=Array.prototype.slice.call(m.removedNodes),u=d.concat(p);if(a(u))return i()})}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.default={isSupported:r,ready:s}},function(e,t){"use strict";function a(d,p){if(!(d instanceof p))throw new TypeError("Cannot call a class as a function")}function o(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function d(p,u){for(var g=0;g<u.length;g++){var b=u[g];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,u,g){return u&&d(p.prototype,u),g&&d(p,g),p}}(),s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,n=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|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|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,c=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|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|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,m=function(){function d(){a(this,d)}return r(d,[{key:"phone",value:function(){var p=o();return!(!s.test(p)&&!n.test(p.substr(0,4)))}},{key:"mobile",value:function(){var p=o();return!(!i.test(p)&&!c.test(p.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),d}();t.default=new m},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(r,s,n){var i=r.node.getAttribute("data-aos-once");s>r.position?r.node.classList.add("aos-animate"):typeof i<"u"&&(i==="false"||!n&&i!=="true")&&r.node.classList.remove("aos-animate")},o=function(r,s){var n=window.pageYOffset,i=window.innerHeight;r.forEach(function(c,m){a(c,i+n,s)})};t.default=o},function(e,t,a){"use strict";function o(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(12),s=o(r),n=function(i,c){return i.forEach(function(m,d){m.node.classList.add("aos-init"),m.position=(0,s.default)(m.node,c.offset)}),i};t.default=n},function(e,t,a){"use strict";function o(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(13),s=o(r),n=function(i,c){var m=0,d=0,p=window.innerHeight,u={offset:i.getAttribute("data-aos-offset"),anchor:i.getAttribute("data-aos-anchor"),anchorPlacement:i.getAttribute("data-aos-anchor-placement")};switch(u.offset&&!isNaN(u.offset)&&(d=parseInt(u.offset)),u.anchor&&document.querySelectorAll(u.anchor)&&(i=document.querySelectorAll(u.anchor)[0]),m=(0,s.default)(i).top,u.anchorPlacement){case"top-bottom":break;case"center-bottom":m+=i.offsetHeight/2;break;case"bottom-bottom":m+=i.offsetHeight;break;case"top-center":m+=p/2;break;case"bottom-center":m+=p/2+i.offsetHeight;break;case"center-center":m+=p/2+i.offsetHeight/2;break;case"top-top":m+=p;break;case"bottom-top":m+=i.offsetHeight+p;break;case"center-top":m+=i.offsetHeight/2+p}return u.anchorPlacement||u.offset||isNaN(c)||(d=c),m+d};t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(o){for(var r=0,s=0;o&&!isNaN(o.offsetLeft)&&!isNaN(o.offsetTop);)r+=o.offsetLeft-(o.tagName!="BODY"?o.scrollLeft:0),s+=o.offsetTop-(o.tagName!="BODY"?o.scrollTop:0),o=o.offsetParent;return{top:s,left:r}};t.default=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(o){return o=o||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(o,function(r){return{node:r}})};t.default=a}])})});import*as Ho from"react";import{ChevronRightIcon as Xm,DotsHorizontalIcon as Ym}from"@radix-ui/react-icons";import{Slot as qm}from"@radix-ui/react-slot";import{clsx as Um}from"clsx";var si="-",gm=e=>{let t=bm(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:n=>{let i=n.split(si);return i[0]===""&&i.length!==1&&i.shift(),Tn(i,t)||fm(n)},getConflictingClassGroupIds:(n,i)=>{let c=a[n]||[];return i&&o[n]?[...c,...o[n]]:c}}},Tn=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?Tn(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(si);return t.validators.find(({validator:n})=>n(s))?.classGroupId},Sn=/^\[(.+)\]$/,fm=e=>{if(Sn.test(e)){let t=Sn.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},bm=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return hm(Object.entries(e.classGroups),a).forEach(([s,n])=>{ri(n,o,s,t)}),o},ri=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:Rn(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(vm(r)){ri(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,n])=>{ri(n,Rn(t,s),a,o)})})},Rn=(e,t)=>{let a=e;return t.split(si).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},vm=e=>e.isThemeGetter,hm=(e,t)=>t?e.map(([a,o])=>{let r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([n,i])=>[t+n,i])):s);return[a,r]}):e,ym=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,n)=>{a.set(s,n),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let n=a.get(s);if(n!==void 0)return n;if((n=o.get(s))!==void 0)return r(s,n),n},set(s,n){a.has(s)?a.set(s,n):r(s,n)}}},Dn="!",xm=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,n=i=>{let c=[],m=0,d=0,p;for(let h=0;h<i.length;h++){let T=i[h];if(m===0){if(T===r&&(o||i.slice(h,h+s)===t)){c.push(i.slice(d,h)),d=h+s;continue}if(T==="/"){p=h;continue}}T==="["?m++:T==="]"&&m--}let u=c.length===0?i:i.substring(d),g=u.startsWith(Dn),b=g?u.substring(1):u,f=p&&p>d?p-d:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:f}};return a?i=>a({className:i,parseClassName:n}):n},wm=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},Nm=e=>({cache:ym(e.cacheSize),parseClassName:xm(e),...gm(e)}),Cm=/\s+/,km=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],n=e.trim().split(Cm),i="";for(let c=n.length-1;c>=0;c-=1){let m=n[c],{modifiers:d,hasImportantModifier:p,baseClassName:u,maybePostfixModifierPosition:g}=a(m),b=!!g,f=o(b?u.substring(0,g):u);if(!f){if(!b){i=m+(i.length>0?" "+i:i);continue}if(f=o(u),!f){i=m+(i.length>0?" "+i:i);continue}b=!1}let h=wm(d).join(":"),T=p?h+Dn:h,P=T+f;if(s.includes(P))continue;s.push(P);let y=r(f,b);for(let N=0;N<y.length;++N){let x=y[N];s.push(T+x)}i=m+(i.length>0?" "+i:i)}return i};function Pm(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Mn(t))&&(o&&(o+=" "),o+=a);return o}var Mn=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Mn(e[o]))&&(a&&(a+=" "),a+=t);return a};function Sm(e,...t){let a,o,r,s=n;function n(c){let m=t.reduce((d,p)=>p(d),e());return a=Nm(m),o=a.cache.get,r=a.cache.set,s=i,i(c)}function i(c){let m=o(c);if(m)return m;let d=km(c,a);return r(c,d),d}return function(){return s(Pm.apply(null,arguments))}}var me=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},An=/^\[(?:([a-z-]+):)?(.+)\]$/i,Rm=/^\d+\/\d+$/,Tm=new Set(["px","full","screen"]),Dm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mm=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Am=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Im=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Lm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ya=e=>zo(e)||Tm.has(e)||Rm.test(e),za=e=>Eo(e,"length",$m),zo=e=>!!e&&!Number.isNaN(Number(e)),oi=e=>Eo(e,"number",zo),ur=e=>!!e&&Number.isInteger(Number(e)),Bm=e=>e.endsWith("%")&&zo(e.slice(0,-1)),F=e=>An.test(e),Ea=e=>Dm.test(e),zm=new Set(["length","size","percentage"]),Em=e=>Eo(e,zm,In),Hm=e=>Eo(e,"position",In),Fm=new Set(["image","url"]),jm=e=>Eo(e,Fm,Gm),Om=e=>Eo(e,"",_m),gr=()=>!0,Eo=(e,t,a)=>{let o=An.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},$m=e=>Mm.test(e)&&!Am.test(e),In=()=>!1,_m=e=>Im.test(e),Gm=e=>Lm.test(e);var Vm=()=>{let e=me("colors"),t=me("spacing"),a=me("blur"),o=me("brightness"),r=me("borderColor"),s=me("borderRadius"),n=me("borderSpacing"),i=me("borderWidth"),c=me("contrast"),m=me("grayscale"),d=me("hueRotate"),p=me("invert"),u=me("gap"),g=me("gradientColorStops"),b=me("gradientColorStopPositions"),f=me("inset"),h=me("margin"),T=me("opacity"),P=me("padding"),y=me("saturate"),N=me("scale"),x=me("sepia"),C=me("skew"),V=me("space"),A=me("translate"),R=()=>["auto","contain","none"],w=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",F,t],v=()=>[F,t],_=()=>["",ya,za],E=()=>["auto",zo,F],ge=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],He=()=>["solid","dashed","dotted","double","none"],Dt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ht=()=>["start","end","center","between","around","evenly","stretch"],st=()=>["","0",F],it=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ne=()=>[zo,F];return{cacheSize:500,separator:":",theme:{colors:[gr],spacing:[ya,za],blur:["none","",Ea,F],brightness:ne(),borderColor:[e],borderRadius:["none","","full",Ea,F],borderSpacing:v(),borderWidth:_(),contrast:ne(),grayscale:st(),hueRotate:ne(),invert:st(),gap:v(),gradientColorStops:[e],gradientColorStopPositions:[Bm,za],inset:z(),margin:z(),opacity:ne(),padding:v(),saturate:ne(),scale:ne(),sepia:st(),skew:ne(),space:v(),translate:v()},classGroups:{aspect:[{aspect:["auto","square","video",F]}],container:["container"],columns:[{columns:[Ea]}],"break-after":[{"break-after":it()}],"break-before":[{"break-before":it()}],"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:[...ge(),F]}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ur,F]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",F]}],grow:[{grow:st()}],shrink:[{shrink:st()}],order:[{order:["first","last","none",ur,F]}],"grid-cols":[{"grid-cols":[gr]}],"col-start-end":[{col:["auto",{span:["full",ur,F]},F]}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":[gr]}],"row-start-end":[{row:["auto",{span:[ur,F]},F]}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",F]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",F]}],gap:[{gap:[u]}],"gap-x":[{"gap-x":[u]}],"gap-y":[{"gap-y":[u]}],"justify-content":[{justify:["normal",...ht()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ht(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ht(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],pe:[{pe:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[V]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[V]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",F,t]}],"min-w":[{"min-w":[F,t,"min","max","fit"]}],"max-w":[{"max-w":[F,t,"none","full","min","max","fit","prose",{screen:[Ea]},Ea]}],h:[{h:[F,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[F,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[F,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[F,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ea,za]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",oi]}],"font-family":[{font:[gr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",F]}],"line-clamp":[{"line-clamp":["none",zo,oi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ya,F]}],"list-image":[{"list-image":["none",F]}],"list-style-type":[{list:["none","disc","decimal",F]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...He(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ya,za]}],"underline-offset":[{"underline-offset":["auto",ya,F]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",F]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",F]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ge(),Hm]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Em]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},jm]}],"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-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[...He(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:He()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...He()]}],"outline-offset":[{"outline-offset":[ya,F]}],"outline-w":[{outline:[ya,za]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-w":[{"ring-offset":[ya,za]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ea,Om]}],"shadow-color":[{shadow:[gr]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":[...Dt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Dt()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Ea,F]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[y]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",F]}],duration:[{duration:ne()}],ease:[{ease:["linear","in","out","in-out",F]}],delay:[{delay:ne()}],animate:[{animate:["none","spin","ping","pulse","bounce",F]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[ur,F]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",F]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",F]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",F]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ya,za,oi]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-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-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ln=Sm(Vm);function l(...e){return Ln(Um(e))}function fr(e){let t=0,a=(s,n)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${n}`,o=e.layout.flatMap(s=>{let n=[];return"title"in s&&s.title&&n.push({text:s.title,id:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(i=>{if(i.title&&n.push({text:i.title,id:a(i.title,t++),tag:"h2"}),i.richText?.root?.children&&i.richText?.root?.children.length===1){let c=i.richText.root.children.filter(m=>m!==void 0&&m.type==="heading");for(let m of c)m.children[0]&&n.push({text:m.children[0].text??"",id:a(m.children[0].text,t++),tag:m.tag||"h2"})}}),n}),r=Wm(e.layout);return{tableOfContents:o,contentWithIds:r}}function Wm(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 zn=um(Bn());import{useEffect as Km}from"react";function Ph(){return Km(()=>{zn.default.init({duration:1e3,offset:0,once:!0})},[]),null}import{jsx as xa,jsxs as Qm}from"react/jsx-runtime";var En=Ho.forwardRef(({...e},t)=>xa("nav",{ref:t,"aria-label":"breadcrumb",...e}));En.displayName="Breadcrumb";var Hn=Ho.forwardRef(({className:e,...t},a)=>xa("ol",{ref:a,className:l("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Hn.displayName="BreadcrumbList";var Fn=Ho.forwardRef(({className:e,...t},a)=>xa("li",{ref:a,className:l("inline-flex items-center gap-1.5",e),...t}));Fn.displayName="BreadcrumbItem";var jn=Ho.forwardRef(({asChild:e,className:t,...a},o)=>xa(e?qm:"a",{ref:o,className:l("transition-colors hover:text-foreground",t),...a}));jn.displayName="BreadcrumbLink";var On=Ho.forwardRef(({className:e,...t},a)=>xa("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:l("font-normal text-foreground",e),...t}));On.displayName="BreadcrumbPage";var $n=({children:e,className:t,...a})=>xa("li",{role:"presentation","aria-hidden":"true",className:l("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e??xa(Xm,{})});$n.displayName="BreadcrumbSeparator";var _n=({className:e,...t})=>Qm("span",{role:"presentation","aria-hidden":"true",className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[xa(Ym,{className:"h-4 w-4"}),xa("span",{className:"sr-only",children:"More"})]});_n.displayName="BreadcrumbElipssis";import*as Fo from"@radix-ui/react-collapsible";var Ha=Fo.Root,ao=Fo.CollapsibleTrigger,oo=Fo.CollapsibleContent;import*as wa from"react";import*as j from"@radix-ui/react-dropdown-menu";import{CheckIcon as Jm,ChevronRightIcon as Zm,DotFilledIcon as ep}from"@radix-ui/react-icons";import{jsx as lt,jsxs as di}from"react/jsx-runtime";var ni=j.Root,li=j.Trigger,tp=j.Group,ap=j.Portal,op=j.Sub,rp=j.RadioGroup,Gn=wa.forwardRef(({className:e,inset:t,children:a,...o},r)=>di(j.SubTrigger,{ref:r,className:l("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,lt(Zm,{className:"ml-auto"})]}));Gn.displayName=j.SubTrigger.displayName;var Vn=wa.forwardRef(({className:e,...t},a)=>lt(j.SubContent,{ref:a,className:l("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Vn.displayName=j.SubContent.displayName;var Vr=wa.forwardRef(({className:e,sideOffset:t=4,...a},o)=>lt(j.Portal,{children:lt(j.Content,{ref:o,sideOffset:t,className:l("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Vr.displayName=j.Content.displayName;var Ur=wa.forwardRef(({className:e,inset:t,...a},o)=>lt(j.Item,{ref:o,className:l("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));Ur.displayName=j.Item.displayName;var Un=wa.forwardRef(({className:e,children:t,checked:a,...o},r)=>di(j.CheckboxItem,{ref:r,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[lt("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:lt(j.ItemIndicator,{children:lt(Jm,{className:"h-4 w-4"})})}),t]}));Un.displayName=j.CheckboxItem.displayName;var Wn=wa.forwardRef(({className:e,children:t,...a},o)=>di(j.RadioItem,{ref:o,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[lt("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:lt(j.ItemIndicator,{children:lt(ep,{className:"h-4 w-4 fill-current"})})}),t]}));Wn.displayName=j.RadioItem.displayName;var Kn=wa.forwardRef(({className:e,inset:t,...a},o)=>lt(j.Label,{ref:o,className:l("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Kn.displayName=j.Label.displayName;var Xn=wa.forwardRef(({className:e,...t},a)=>lt(j.Separator,{ref:a,className:l("-mx-1 my-1 h-px bg-muted",e),...t}));Xn.displayName=j.Separator.displayName;var Yn=({className:e,...t})=>lt("span",{className:l("ml-auto text-xs tracking-widest opacity-60",e),...t});Yn.displayName="DropdownMenuShortcut";import*as qn from"react";import{jsx as sp}from"react/jsx-runtime";var Ge=qn.forwardRef(({className:e,type:t,...a},o)=>sp("input",{type:t,className:l("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));Ge.displayName="Input";import*as Qn from"react";import*as ci from"@radix-ui/react-separator";import{jsx as ip}from"react/jsx-runtime";var Wr=Qn.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>ip(ci.Root,{ref:r,decorative:a,orientation:t,className:l("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));Wr.displayName=ci.Root.displayName;import*as vr from"react";import*as ke from"@radix-ui/react-dialog";import{Cross2Icon as np}from"@radix-ui/react-icons";import{cva as lp}from"class-variance-authority";import{jsx as Fa,jsxs as mi}from"react/jsx-runtime";var pi=ke.Root,dp=ke.Trigger,cp=ke.Close,Jn=ke.Portal,ui=vr.forwardRef(({className:e,...t},a)=>Fa(ke.Overlay,{className:l("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));ui.displayName=ke.Overlay.displayName;var mp=lp("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Kr=vr.forwardRef(({side:e="right",className:t,children:a,...o},r)=>mi(Jn,{children:[Fa(ui,{}),mi(ke.Content,{ref:r,className:l(mp({side:e}),t),...o,children:[mi(ke.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[Fa(np,{className:"h-4 w-4"}),Fa("span",{className:"sr-only",children:"Close"})]}),a]})]}));Kr.displayName=ke.Content.displayName;var Zn=({className:e,...t})=>Fa("div",{className:l("flex flex-col space-y-2 text-center sm:text-left",e),...t});Zn.displayName="SheetHeader";var el=({className:e,...t})=>Fa("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});el.displayName="SheetFooter";var tl=vr.forwardRef(({className:e,...t},a)=>Fa(ke.Title,{ref:a,className:l("text-lg font-semibold text-foreground",e),...t}));tl.displayName=ke.Title.displayName;var al=vr.forwardRef(({className:e,...t},a)=>Fa(ke.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));al.displayName=ke.Description.displayName;import*as $ from"react";import{Slot as hr}from"@radix-ui/react-slot";import{cva as hp}from"class-variance-authority";import{PanelLeft as yp}from"lucide-react";import{useState as pp,useEffect as up}from"react";var gi=(e=768)=>{let[t,a]=pp(!1);return up(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};import{Slot as gp}from"@radix-ui/react-slot";import{cva as fp}from"class-variance-authority";import*as ol from"react";import{jsx as bp}from"react/jsx-runtime";var ro=fp("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),k=ol.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>bp(e?gp:"button",{className:l(ro({className:t,size:a,variant:o})),ref:s,...r}));k.displayName="Button";import{jsx as vp}from"react/jsx-runtime";function Te({className:e,...t}){return vp("div",{className:l("animate-pulse rounded-md bg-primary/10",e),...t})}import*as sl from"react";import*as $t from"@radix-ui/react-tooltip";import{jsx as rl}from"react/jsx-runtime";var fi=$t.Provider,bi=$t.Root,vi=$t.Trigger,Xr=sl.forwardRef(({className:e,sideOffset:t=4,...a},o)=>rl($t.Portal,{children:rl($t.Content,{ref:o,sideOffset:t,className:l("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Xr.displayName=$t.Content.displayName;import{jsx as U,jsxs as Qr}from"react/jsx-runtime";var xp="sidebar:state",wp=60*60*24*7,Np="16rem",Cp="18rem",kp="3rem",Pp="b",il=$.createContext(null);function yr(){let e=$.useContext(il);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var nl=$.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...n},i)=>{let c=gi(),[m,d]=$.useState(!1),[p,u]=$.useState(e),g=t??p,b=$.useCallback(P=>{if(a)return a?.(typeof P=="function"?P(g):P);u(P),document.cookie=`${xp}=${g}; path=/; max-age=${wp}`},[a,g]),f=$.useCallback(()=>c?d(P=>!P):b(P=>!P),[c,b,d]);$.useEffect(()=>{let P=y=>{y.key===Pp&&(y.metaKey||y.ctrlKey)&&(y.preventDefault(),f())};return window.addEventListener("keydown",P),()=>window.removeEventListener("keydown",P)},[f]);let h=g?"expanded":"collapsed",T=$.useMemo(()=>({state:h,open:g,setOpen:b,isMobile:c,openMobile:m,setOpenMobile:d,toggleSidebar:f}),[h,g,b,c,m,d,f]);return U(il.Provider,{value:T,children:U(fi,{delayDuration:0,children:U("div",{style:{"--sidebar-width":Np,"--sidebar-width-icon":kp,...r},className:l("group/sidebar-wrapper flex w-full has-[[data-variant=inset]]:bg-sidebar",o),ref:i,...n,children:s})})})});nl.displayName="SidebarProvider";var jo=$.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},n)=>{let{isMobile:i,state:c,openMobile:m,setOpenMobile:d}=yr();return a==="none"?U("div",{className:l("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:n,...s,children:r}):i?U(pi,{open:m,onOpenChange:d,...s,children:U(Kr,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Cp},side:e,children:U("div",{className:"flex h-full w-full flex-col",children:r})})}):Qr("div",{ref:n,className:"group peer hidden md:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?a:"","data-variant":t,"data-side":e,children:[U("div",{className:l("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),U("div",{className:l("duration-200 fixed top-14 bottom-0 z-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...s,children:U("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})})]})});jo.displayName="Sidebar";var ll=$.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=yr();return Qr(k,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:l("h-7 w-7",e),onClick:s=>{t?.(s),r()},...a,children:[U(yp,{}),U("span",{className:"sr-only",children:"Toggle Sidebar"})]})});ll.displayName="SidebarTrigger";var dl=$.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=yr();return U("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:l("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});dl.displayName="SidebarRail";var cl=$.forwardRef(({className:e,...t},a)=>U("main",{ref:a,className:l("flex flex-1 flex-col bg-background overflow-y-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));cl.displayName="SidebarInset";var ml=$.forwardRef(({className:e,...t},a)=>U(Ge,{ref:a,"data-sidebar":"input",className:l("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));ml.displayName="SidebarInput";var Oo=$.forwardRef(({className:e,...t},a)=>U("div",{ref:a,"data-sidebar":"header",className:l("flex flex-col gap-2 p-2",e),...t}));Oo.displayName="SidebarHeader";var $o=$.forwardRef(({className:e,...t},a)=>U("div",{ref:a,"data-sidebar":"footer",className:l("flex flex-col gap-2 p-2",e),...t}));$o.displayName="SidebarFooter";var Yr=$.forwardRef(({className:e,...t},a)=>U(Wr,{ref:a,"data-sidebar":"separator",className:l("mx-2 w-auto bg-sidebar-border",e),...t}));Yr.displayName="SidebarSeparator";var so=$.forwardRef(({className:e,...t},a)=>U("div",{ref:a,"data-sidebar":"content",className:l("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));so.displayName="SidebarContent";var _t=$.forwardRef(({className:e,...t},a)=>U("div",{ref:a,"data-sidebar":"group",className:l("relative flex w-full min-w-0 flex-col p-2",e),...t}));_t.displayName="SidebarGroup";var ja=$.forwardRef(({className:e,asChild:t=!1,...a},o)=>U(t?hr:"div",{ref:o,"data-sidebar":"group-label",className:l("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));ja.displayName="SidebarGroupLabel";var pl=$.forwardRef(({className:e,asChild:t=!1,...a},o)=>U(t?hr:"button",{ref:o,"data-sidebar":"group-action",className:l("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...a}));pl.displayName="SidebarGroupAction";var ea=$.forwardRef(({className:e,...t},a)=>U("div",{ref:a,"data-sidebar":"group-content",className:l("w-full text-sm",e),...t}));ea.displayName="SidebarGroupContent";var xt=$.forwardRef(({className:e,...t},a)=>U("ul",{ref:a,"data-sidebar":"menu",className:l("flex w-full min-w-0 flex-col gap-1",e),...t}));xt.displayName="SidebarMenu";var Qe=$.forwardRef(({className:e,...t},a)=>U("li",{ref:a,"data-sidebar":"menu-item",className:l("group/menu-item relative",e),...t}));Qe.displayName="SidebarMenuItem";var Sp=hp("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Gt=$.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...n},i)=>{let c=e?hr:"button",{isMobile:m,state:d}=yr(),p=U(c,{ref:i,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:l(Sp({variant:a,size:o}),s),...n});return r?(typeof r=="string"&&(r={children:r}),Qr(bi,{children:[U(vi,{asChild:!0,children:p}),U(Xr,{side:"right",align:"center",hidden:d!=="collapsed"||m,...r})]})):p});Gt.displayName="SidebarMenuButton";var qr=$.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>U(t?hr:"button",{ref:r,"data-sidebar":"menu-action",className:l("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...o}));qr.displayName="SidebarMenuAction";var ul=$.forwardRef(({className:e,...t},a)=>U("div",{ref:a,"data-sidebar":"menu-badge",className:l("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));ul.displayName="SidebarMenuBadge";var gl=$.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=$.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return Qr("div",{ref:o,"data-sidebar":"menu-skeleton",className:l("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&U(Te,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),U(Te,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});gl.displayName="SidebarMenuSkeleton";var io=$.forwardRef(({className:e,...t},a)=>U("ul",{ref:a,"data-sidebar":"menu-sub",className:l("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));io.displayName="SidebarMenuSub";var no=$.forwardRef(({...e},t)=>U("li",{ref:t,...e}));no.displayName="SidebarMenuSubItem";var lo=$.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...r},s)=>U(e?hr:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:l("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...r}));lo.displayName="SidebarMenuSubButton";import*as es from"react";var Rp=1,Tp=1e6;var hi=0;function Dp(){return hi=(hi+1)%Number.MAX_SAFE_INTEGER,hi.toString()}var yi=new Map,fl=e=>{if(yi.has(e))return;let t=setTimeout(()=>{yi.delete(e),xr({type:"REMOVE_TOAST",toastId:e})},Tp);yi.set(e,t)},Mp=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Rp)};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?fl(a):e.toasts.forEach(o=>{fl(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===a||a===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)}}},Jr=[],Zr={toasts:[]};function xr(e){Zr=Mp(Zr,e),Jr.forEach(t=>{t(Zr)})}function Ap({...e}){let t=Dp(),a=r=>xr({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>xr({type:"DISMISS_TOAST",toastId:t});return xr({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function xi(){let[e,t]=es.useState(Zr);return es.useEffect(()=>(Jr.push(t),()=>{let a=Jr.indexOf(t);a>-1&&Jr.splice(a,1)}),[e]),{...e,toast:Ap,dismiss:a=>xr({type:"DISMISS_TOAST",toastId:a})}}import*as mo from"react";import*as De from"@radix-ui/react-toast";import{cva as Ip}from"class-variance-authority";import{X as Lp}from"lucide-react";import{jsx as co}from"react/jsx-runtime";var wi=De.Provider,ts=mo.forwardRef(({className:e,...t},a)=>co(De.Viewport,{ref:a,className:l("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));ts.displayName=De.Viewport.displayName;var Bp=Ip("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),as=mo.forwardRef(({className:e,variant:t,...a},o)=>co(De.Root,{ref:o,className:l(Bp({variant:t}),e),...a}));as.displayName=De.Root.displayName;var bl=mo.forwardRef(({className:e,...t},a)=>co(De.Action,{ref:a,className:l("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));bl.displayName=De.Action.displayName;var os=mo.forwardRef(({className:e,...t},a)=>co(De.Close,{ref:a,className:l("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:co(Lp,{className:"h-4 w-4"})}));os.displayName=De.Close.displayName;var rs=mo.forwardRef(({className:e,...t},a)=>co(De.Title,{ref:a,className:l("text-sm font-semibold [&+div]:text-xs",e),...t}));rs.displayName=De.Title.displayName;var ss=mo.forwardRef(({className:e,...t},a)=>co(De.Description,{ref:a,className:l("text-sm opacity-90",e),...t}));ss.displayName=De.Description.displayName;import{jsx as is,jsxs as Ni}from"react/jsx-runtime";function zp(){let{toasts:e}=xi();return Ni(wi,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return Ni(as,{...s,children:[Ni("div",{className:"grid gap-1",children:[a&&is(rs,{children:a}),o&&is(ss,{children:o})]}),r,is(os,{})]},t)}),is(ts,{})]})}import*as vl from"react";import*as Ci from"@radix-ui/react-toggle";import{cva as Ep}from"class-variance-authority";import{jsx as Hp}from"react/jsx-runtime";var ns=Ep("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),hl=vl.forwardRef(({className:e,variant:t,size:a,...o},r)=>Hp(Ci.Root,{ref:r,className:l(ns({variant:t,size:a,className:e})),...o}));hl.displayName=Ci.Root.displayName;import*as po from"react";import*as _o from"@radix-ui/react-toggle-group";import{jsx as ki}from"react/jsx-runtime";var yl=po.createContext({size:"default",variant:"default"}),xl=po.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>ki(_o.Root,{ref:s,className:l("flex items-center justify-center gap-1",e),...r,children:ki(yl.Provider,{value:{variant:t,size:a},children:o})}));xl.displayName=_o.Root.displayName;var wl=po.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let n=po.useContext(yl);return ki(_o.Item,{ref:s,className:l(ns({variant:n.variant||a,size:n.size||o}),e),...r,children:t})});wl.displayName=_o.Item.displayName;import*as Pi from"react";import*as Mt from"@radix-ui/react-scroll-area";import{jsx as wr,jsxs as Fp}from"react/jsx-runtime";var Vt=Pi.forwardRef(({className:e,children:t,...a},o)=>Fp(Mt.Root,{ref:o,className:l("relative overflow-hidden",e),...a,children:[wr(Mt.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),wr(Si,{}),wr(Mt.Corner,{})]}));Vt.displayName=Mt.Root.displayName;var Si=Pi.forwardRef(({className:e,orientation:t="vertical",...a},o)=>wr(Mt.ScrollAreaScrollbar,{ref:o,orientation:t,className:l("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:wr(Mt.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Si.displayName=Mt.ScrollAreaScrollbar.displayName;import*as Cl from"react";import*as Ut from"@radix-ui/react-popover";import{jsx as Nl}from"react/jsx-runtime";var ls=Ut.Root,ds=Ut.Trigger,jp=Ut.Anchor,Nr=Cl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>Nl(Ut.Portal,{children:Nl(Ut.Content,{ref:r,align:t,sideOffset:a,className:l("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Nr.displayName=Ut.Content.displayName;import*as kl from"react";import*as Ri from"@radix-ui/react-label";import{cva as Op}from"class-variance-authority";import{jsx as _p}from"react/jsx-runtime";var $p=Op("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),I=kl.forwardRef(({className:e,...t},a)=>_p(Ri.Root,{ref:a,className:l($p(),e),...t}));I.displayName=Ri.Root.displayName;import*as Pl from"react";import*as uo from"@radix-ui/react-hover-card";import{jsx as Up}from"react/jsx-runtime";var Gp=uo.Root,Vp=uo.Trigger,Sl=Pl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>Up(uo.Content,{ref:r,align:t,sideOffset:a,className:l("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o}));Sl.displayName=uo.Content.displayName;import*as Cr from"react";import*as Pe from"@radix-ui/react-dialog";import{X as Wp}from"lucide-react";import{jsx as Oa,jsxs as Ti}from"react/jsx-runtime";var Wt=Pe.Root,Kp=Pe.Trigger,Rl=Pe.Portal,Di=Pe.Close,Mi=Cr.forwardRef(({className:e,...t},a)=>Oa(Pe.Overlay,{ref:a,className:l("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Mi.displayName=Pe.Overlay.displayName;var At=Cr.forwardRef(({className:e,children:t,...a},o)=>Ti(Rl,{children:[Oa(Mi,{}),Ti(Pe.Content,{ref:o,className:l("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,Ti(Pe.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[Oa(Wp,{className:"h-4 w-4"}),Oa("span",{className:"sr-only",children:"Close"})]})]})]}));At.displayName=Pe.Content.displayName;var ta=({className:e,...t})=>Oa("div",{className:l("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ta.displayName="DialogHeader";var Tl=({className:e,...t})=>Oa("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Tl.displayName="DialogFooter";var aa=Cr.forwardRef(({className:e,...t},a)=>Oa(Pe.Title,{ref:a,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));aa.displayName=Pe.Title.displayName;var cs=Cr.forwardRef(({className:e,...t},a)=>Oa(Pe.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));cs.displayName=Pe.Description.displayName;import*as $a from"react";import{Command as dt}from"cmdk";import{Search as Xp}from"lucide-react";import{jsx as It,jsxs as qp}from"react/jsx-runtime";var Ai=$a.forwardRef(({className:e,...t},a)=>It(dt,{ref:a,className:l("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Ai.displayName=dt.displayName;var Yp=({children:e,...t})=>It(Wt,{...t,children:It(At,{className:"overflow-hidden p-0",children:It(Ai,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Dl=$a.forwardRef(({className:e,...t},a)=>qp("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[It(Xp,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),It(dt.Input,{ref:a,className:l("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Dl.displayName=dt.Input.displayName;var Ml=$a.forwardRef(({className:e,...t},a)=>It(dt.List,{ref:a,className:l("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Ml.displayName=dt.List.displayName;var Al=$a.forwardRef((e,t)=>It(dt.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Al.displayName=dt.Empty.displayName;var Il=$a.forwardRef(({className:e,...t},a)=>It(dt.Group,{ref:a,className:l("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Il.displayName=dt.Group.displayName;var Ll=$a.forwardRef(({className:e,...t},a)=>It(dt.Separator,{ref:a,className:l("-mx-1 h-px bg-border",e),...t}));Ll.displayName=dt.Separator.displayName;var Bl=$a.forwardRef(({className:e,...t},a)=>It(dt.Item,{ref:a,className:l("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));Bl.displayName=dt.Item.displayName;var zl=({className:e,...t})=>It("span",{className:l("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});zl.displayName="CommandShortcut";import*as ms from"react";import{cva as Qp}from"class-variance-authority";import{jsx as Ii}from"react/jsx-runtime";var Jp=Qp("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),El=ms.forwardRef(({className:e,variant:t,...a},o)=>Ii("div",{ref:o,role:"alert",className:l(Jp({variant:t}),e),...a}));El.displayName="Alert";var Hl=ms.forwardRef(({className:e,...t},a)=>Ii("h5",{ref:a,className:l("mb-1 font-medium leading-none tracking-tight",e),...t}));Hl.displayName="AlertTitle";var Fl=ms.forwardRef(({className:e,...t},a)=>Ii("div",{ref:a,className:l("text-sm [&_p]:leading-relaxed",e),...t}));Fl.displayName="AlertDescription";import*as ps from"react";import*as Na from"@radix-ui/react-avatar";import{jsx as Li}from"react/jsx-runtime";var wt=ps.forwardRef(({className:e,...t},a)=>Li(Na.Root,{ref:a,className:l("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));wt.displayName=Na.Root.displayName;var Nt=ps.forwardRef(({className:e,...t},a)=>Li(Na.Image,{ref:a,className:l("aspect-square h-full w-full",e),...t}));Nt.displayName=Na.Image.displayName;var Ct=ps.forwardRef(({className:e,...t},a)=>Li(Na.Fallback,{ref:a,className:l("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ct.displayName=Na.Fallback.displayName;import{cva as Zp}from"class-variance-authority";import{jsx as eu}from"react/jsx-runtime";var jl=Zp("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Je({className:e,variant:t,...a}){return eu("div",{className:l(jl({variant:t}),e),...a})}import*as kr from"@radix-ui/react-checkbox";import{Check as tu}from"lucide-react";import*as Ol from"react";import{jsx as Bi}from"react/jsx-runtime";var oa=Ol.forwardRef(({className:e,...t},a)=>Bi(kr.Root,{className:l("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:Bi(kr.Indicator,{className:l("flex items-center justify-center text-current"),children:Bi(tu,{className:"h-4 w-4"})})}));oa.displayName=kr.Root.displayName;import*as G from"@radix-ui/react-select";import{Check as au,ChevronDown as $l,ChevronUp as ou}from"lucide-react";import*as _a from"react";import{jsx as Ue,jsxs as zi}from"react/jsx-runtime";var Lt=G.Root,Tx=G.Group,Bt=G.Value,kt=_a.forwardRef(({children:e,className:t,...a},o)=>zi(G.Trigger,{className:l("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,Ue(G.Icon,{asChild:!0,children:Ue($l,{className:"h-4 w-4 opacity-50"})})]}));kt.displayName=G.Trigger.displayName;var _l=_a.forwardRef(({className:e,...t},a)=>Ue(G.ScrollUpButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:Ue(ou,{className:"h-4 w-4"})}));_l.displayName=G.ScrollUpButton.displayName;var Gl=_a.forwardRef(({className:e,...t},a)=>Ue(G.ScrollDownButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:Ue($l,{className:"h-4 w-4"})}));Gl.displayName=G.ScrollDownButton.displayName;var Pt=_a.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>Ue(G.Portal,{children:zi(G.Content,{className:l("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,ref:r,...o,children:[Ue(_l,{}),Ue(G.Viewport,{className:l("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),Ue(Gl,{})]})}));Pt.displayName=G.Content.displayName;var ru=_a.forwardRef(({className:e,...t},a)=>Ue(G.Label,{className:l("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));ru.displayName=G.Label.displayName;var ct=_a.forwardRef(({children:e,className:t,...a},o)=>zi(G.Item,{className:l("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[Ue("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:Ue(G.ItemIndicator,{children:Ue(au,{className:"h-4 w-4"})})}),Ue(G.ItemText,{children:e})]}));ct.displayName=G.Item.displayName;var su=_a.forwardRef(({className:e,...t},a)=>Ue(G.Separator,{className:l("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));su.displayName=G.Separator.displayName;import*as Vl from"react";import{jsx as iu}from"react/jsx-runtime";var go=Vl.forwardRef(({className:e,...t},a)=>iu("textarea",{className:l("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));go.displayName="Textarea";import{DayPicker as nu}from"react-day-picker";import{jsx as lu}from"react/jsx-runtime";function us({className:e,classNames:t,showOutsideDays:a=!0,...o}){return lu(nu,{showOutsideDays:a,weekStartsOn:1,className:l("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:l(ro({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:l("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:l(ro({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})}us.displayName="Calendar";import*as Ga from"@radix-ui/react-tabs";import{jsx as gs}from"react/jsx-runtime";function Ul({className:e,...t}){return gs(Ga.Root,{"data-slot":"tabs",className:l("flex flex-col gap-2",e),...t})}function Wl({className:e,...t}){return gs(Ga.List,{"data-slot":"tabs-list",className:l("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Kl({className:e,...t}){return gs(Ga.Trigger,{"data-slot":"tabs-trigger",className:l("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Ox({className:e,...t}){return gs(Ga.Content,{"data-slot":"tabs-content",className:l("flex-1 outline-none",e),...t})}import{jsx as Ei}from"react/jsx-runtime";var Xl=({className:e,content:t,style:a})=>Ei("div",{className:l("mx-auto my-8 w-full",e),children:Ei("div",{className:l("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:Ei(W,{content:t,enableGutter:!1,enableProse:!1})})});import{useState as yu}from"react";import Yl from"next/link";import{jsx as du,jsxs as ql}from"react/jsx-runtime";var ra=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:n,reference:i,size:c,url:m}=e,d=t==="reference"&&typeof i?.value=="object"&&i.value.slug?`${i?.relationTo!=="pages"?`/${i?.relationTo}`:""}/${i.value.slug}`:m;if(!d)return null;let p=a==="link"?"clear":c,u=n?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?ql(Yl,{className:l(r),href:d||m||"",...u,children:[s&&s,o&&o]}):du(k,{asChild:!0,className:r,size:p,variant:a,children:ql(Yl,{className:l(r),href:d||m||"",...u,children:[s&&s,o&&o]})})};function fs({className:e}){return l("flex items-center min-h-[3.5rem] md:min-h-[3.75rem] w-full rounded-5 px-4 md:px-5 py-2"," bg-transparent text-accent-800 placeholder:text-accent-800 dark:text-body dark:placeholder:text-body"," border border-solid border-accent-900 border-opacity-20 dark:border-opacity-20 dark:border-accent-200"," focus:border-accent-900 focus:ring-0 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0","transition-all duration-300",e)}import{jsx as Hi,jsxs as mu}from"react/jsx-runtime";function cu({className:e,...t}){return Hi("input",{...t,className:fs({className:e})})}function bs({icon:e,...t}){return mu("div",{className:"relative w-full",children:[Hi(cu,{...t}),e&&Hi("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-y-1/2 text-accent",children:e})]})}import{jsx as Fi,jsxs as uu}from"react/jsx-runtime";function pu({className:e,...t}){return Fi("textarea",{...t,className:l(fs({}),"resize-none md:min-h-[130px]",e)})}function Ql({icon:e,...t}){return uu("div",{className:"relative w-full",children:[Fi(pu,{...t}),e&&Fi("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}import{Formik as gu}from"formik";import{FaUser as fu}from"react-icons/fa6";import*as fo from"yup";async function Jl(e){let{name:t,email:a,subject:o,message:r}=e,s=process.env.TEAMS_WEBHOOK_URL;if(!s)throw new Error("TEAMS_WEBHOOK_URL is not defined");let n={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact 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(n)});if(!i.ok)throw console.error(i),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(i){return console.error(i),{isSuccess:!1,data:null,message:"Internal Server Error"}}}import{toast as Zl}from"sonner";import{jsx as Fe,jsxs as Pr}from"react/jsx-runtime";var Kt={tooShort:"Must be at least ${min} characters",tooLong:"Must be at most ${max} characters",required:"This field is required",email:"Invalid email format"},bu=fo.object().shape({name:fo.string().min(2,Kt.tooShort).max(50,Kt.tooLong).required(Kt.required),email:fo.string().email(Kt.email).required(Kt.required),subject:fo.string().min(2,Kt.tooShort).max(50,Kt.tooLong).required(Kt.required),message:fo.string().min(2,Kt.tooShort).max(300,Kt.tooLong).required(Kt.required)}),vs=l("!pr-[44px] text-foreground"),hs=l("!border-red-600 border"),ys=l("sr-only");function xs(){return Fe(gu,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:bu,onSubmit:async(e,{resetForm:t})=>{let a=await Jl(e);a.data===null?Zl.error(a.message):(Zl.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:n})=>Pr("form",{onSubmit:n,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[Pr("div",{children:[Fe(bs,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:Fe(fu,{className:"text-primary"}),className:l(vs,e.name&&t.name&&hs)}),e.name&&t.name&&Fe("p",{title:e.name,"aria-live":"polite",role:"error message",className:ys,children:e.name})]}),Pr("div",{children:[Fe(bs,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:Fe(vu,{}),className:l(vs,e.email&&t.email&&hs)}),e.email&&t.email&&Fe("p",{title:e.email,"aria-live":"polite",role:"error message",className:ys,children:e.email})]}),Pr("div",{className:"lg:col-span-2",children:[Fe(bs,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:l(vs,e.subject&&t.subject&&hs)}),e.subject&&t.subject&&Fe("p",{title:e.subject,"aria-live":"polite",role:"error message",className:ys,children:e.subject})]}),Pr("div",{className:"lg:col-span-2",children:[Fe(Ql,{placeholder:"Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:Fe(hu,{}),className:l(vs,e.message&&t.message&&hs)}),e.message&&t.message&&Fe("p",{title:e.message,"aria-live":"polite",role:"error message",className:ys,children:e.message})]}),Fe("div",{className:"lg:col-span-2 light grid justify-items-center",children:Fe(k,{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 vu(){return Fe("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:Fe("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 hu(){return Fe("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:Fe("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"})})}import{jsx as mt,jsxs as ws}from"react/jsx-runtime";var a1=({links:e,richText:t})=>mt("div",{className:"container",children:ws("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:[mt("div",{className:"max-w-[48rem] flex items-center",children:t&&mt(W,{className:"mb-0",content:t,enableGutter:!1})}),mt("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>mt(ra,{size:"lg",...a},o))})]})}),Go=({links:e,richText:t})=>{let[a,o]=yu(!1),r="accent",s=()=>o(!0),n=()=>o(!1),i=c=>{c.target===c.currentTarget&&n()};return ws("div",{className:l("relative isolate overflow-hidden",r==="accent"?"bg-accent":"bg-black"),children:[mt("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:ws("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&mt(W,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),mt("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:mt("div",{className:"flex flex-col gap-8 text-white",children:(e||[]).map(({link:c},m)=>c?.url==="/contact"?mt("div",{onClick:s,className:l("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:c.label},m):mt(ra,{size:"lg",className:l("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"),...c},m))})})]})}),a&&mt("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:i,children:ws("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[mt("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:n,children:"\u2715"}),mt(xs,{})," "]})})]})};import{Highlight as Cu,themes as ku}from"prism-react-renderer";import{ClipboardCopy as xu}from"lucide-react";import{useState as wu}from"react";import{jsx as Ns,jsxs as Nu}from"react/jsx-runtime";function ed({code:e}){let[t,a]=wu("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return Ns("div",{className:"flex justify-end align-middle",children:Nu(k,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[Ns("p",{children:t}),Ns("div",{className:"w-6 h-6",children:Ns(xu,{})})]})})}import{jsx as Sr,jsxs as td}from"react/jsx-runtime";var ad=({code:e,language:t=""})=>e?Sr(Cu,{code:e,language:t,theme:ku.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>td("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[r.map((s,n)=>td("div",{...a({className:"table-row",line:s}),children:[Sr("span",{className:"table-cell select-none text-right text-white/25",children:n+1}),Sr("span",{className:"table-cell pl-4",children:s.map((i,c)=>Sr("span",{...o({token:i})},c))})]},n)),Sr(ed,{code:e})]})}):null;import{jsx as od}from"react/jsx-runtime";var rd=({className:e,code:t,language:a})=>od("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:od(ad,{code:t,language:a})});import{Fragment as Du}from"react";import Pu from"next/image";import{jsx as id}from"react/jsx-runtime";var Su={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},sd="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=",nd=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:n,src:i,loading:c}=e,m,d,p=t,u=i||"";if(!u&&s&&typeof s=="object"){let{alt:f,filename:h,height:T,url:P,width:y}=s;if(T&&T>500){let N=500/T;m=y*N,d=T*N}else m=y,d=T;p=f||"",u=P||sd}let g=c||"lazy",b=n||Object.entries(Su).map(([,f])=>`(max-width: ${f}px) ${f*2}w`).join(", ");return id("picture",{children:id(Pu,{alt:p||"",className:l(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:sd,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:b,src:u,width:a?void 0:m})})};import{useEffect as Ru,useRef as Tu}from"react";import{jsx as ld}from"react/jsx-runtime";var dd=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=Tu(null);if(Ru(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return ld("video",{autoPlay:!0,className:l(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:ld("source",{src:a.url||""})})}return null};import{jsx as ji}from"react/jsx-runtime";var sa=e=>{let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&o?.mimeType?.includes("video");return ji(a||Du,{...a!==null?{className:t}:{},children:r?ji(dd,{...e}):ji(nd,{...e})})};import{jsx as cd}from"react/jsx-runtime";var Va=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return cd("div",{className:l("h-full ",{container:a},t),children:cd(sa,{imgClassName:l("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};import{jsx as md}from"react/jsx-runtime";var pd=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return md("div",{className:l("",{container:a},t),children:md(sa,{imgClassName:l("rounded-[0.8rem]",o),resource:r,src:s})})};import{jsx as Vo,jsxs as ud}from"react/jsx-runtime";var Uo=({title:e,description:t,features:a,id:o,nested:r=!1})=>ud("section",{className:l(r?"w-full":"",""),children:[ud("div",{className:"prose prose:max-w-none",children:[e&&Vo("h2",{className:"mb-6 mt-0 text-primary",id:o||"",children:e}),t&&typeof t=="string"&&Vo("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&Vo("div",{className:"mb-5 text-foreground",children:Vo(W,{content:t,enableGutter:!1})})]}),Vo("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,n)=>{let i=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,icon:s.icon.icon}};return Vo(Rr,{title:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,settings:{...s.settings,width:"auto",order:n},link:s.link?{...s.link,label:"Learn more"}:void 0,icon:i()??{type:"none",icon:null}},n)})})]});import Mu,{Fragment as Au}from"react";import{jsx as ie}from"react/jsx-runtime";function Tr({nodes:e}){return ie(Au,{children:e?.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=ie(Mu.Fragment,{children:t.text},a);return t.format&1&&(s=ie("strong",{children:s},a)),t.format&2&&(s=ie("em",{children:s},a)),t.format&4&&(s=ie("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=ie("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=ie("code",{children:t.text},a)),t.format&32&&(s=ie("sub",{children:s},a)),t.format&64&&(s=ie("sup",{children:s},a)),s}if(t.type==="table")return ie("table",{children:ie("tbody",{children:t.children.map((s,n)=>ie("tr",{children:s.children.map((i,c)=>ie("td",{children:Tr({nodes:i.children})},c))},n))})},a);let o=s=>{if(s.children==null)return null;if(s?.type==="list"&&s?.listType==="check")for(let n of s.children)"checked"in n&&(n?.checked||(n.checked=!1));return Tr({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,n=s?.blockType;if(!s||!n)return null;switch(n){case"cta":return ie(Go,{...s},a);case"mediaBlock":return ie(Va,{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 ie(pd,{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 ie(Xl,{className:"col-start-2 mb-4",...s},a);case"code":return ie(rd,{className:"col-start-2",...s},a);case"features":return ie(Uo,{...s,nested:!0},a);case"reusableContentBlock":Tr({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return ie("br",{className:"col-start-2"},a);case"paragraph":return ie("p",{className:"col-start-2",children:r},a);case"heading":{let s=t?.tag;return ie(s,{className:"col-start-2",id:t?.id||"",children:r},a)}case"list":{let s=t?.tag;return ie(s,{className:"list col-start-2",children:r},a)}case"listitem":return t?.checked!=null?ie("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:r},a):ie("li",{value:t?.value,children:r},a);case"quote":return ie("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return ie(ra,{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 ie(ra,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}import{jsx as Iu}from"react/jsx-runtime";var W=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>t?Iu("div",{className:l({"container ":a,"max-w-none":!a,"mx-auto prose":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&Tr({nodes:t?.root?.children})}):null;import{jsx as Lu}from"react/jsx-runtime";var Ze=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,n=o??"",i=r+s+" fa-"+a+" "+n;return Lu("i",{className:i})};import Bu from"next/image";import{jsx as Ve,jsxs as Dr}from"react/jsx-runtime";function gd(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Rr({image:e,icon:t,title:a,subtitle:o,content:r,statistic:s,settings:n,link:i,className:c}){let m={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:"bg-background"},d={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return Dr("a",{href:i?.url||"#",className:l("min-w-56 max-w-xl h-full flex flex-col group bg-background",e?"p-0":"p-6 md:p-8",n&&!e&&m[n?.card==="default"?"solid":n?.card],e&&"bg-foreground",n&&n?.card==="outline"?"text-gray-900":"text-white",d[n?.width??"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",n&&`intersect:animate-delay-${n.order||1}00`,c),children:[e&&Ve("div",{className:"relative aspect-[16/9] w-full",children:Ve(Bu,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),Dr("div",{className:l(e?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[Dr("div",{className:"flex flex-col flex-grow",children:[o&&Ve("div",{className:"text-primary uppercase text-sm font-light mb-4",children:o}),Ve("div",{className:"flex items-start gap-4 mb-4",children:Ve(zu,{icon:{type:t?.type||"fa-light",iconName:t?.icon||"no-icon-error"},heading:a??"",variant:n?.card==="default"?"solid":n?.card??"solid",iconSize:n?.iconSize||"large"})}),r&&typeof r=="object"&&Ve(W,{enableGutter:!1,content:r,enableProse:!1,className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",n?.card==="outline"||n?.card==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",e&&"prose-headings:text-background prose-p:text-background")}),r&&typeof r=="string"&&Ve("div",{className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",n?.card==="outline"||n?.card==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:r})]}),i&&i.url&&Ve("div",{className:"mt-6",children:Ve("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:i?.label||"Find out more"})})]})]})}var zu=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="small"&&e.iconName!="no-icon-error"?Dr("div",{className:"flex items-start justify-between w-full mb-2",children:[Ve("div",{className:l(a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),gd(e)&&Ve("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"-mr-2 ml-1 mt-1":""),children:Ve(Ze,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="no-icon-error"?Dr("div",{className:"flex flex-col gap-4",children:[gd(e)&&Ve("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:Ve(Ze,{type:e.type,iconName:e.iconName,size:"4x"})}),Ve("h3",{className:l("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):Ve("div",{className:"flex items-center gap-4 mb-2",children:Ve("div",{className:l("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});import Eu from"next/image";import Hu from"next/link";import*as bo from"react";import{jsx as Wo}from"react/jsx-runtime";var Q=bo.forwardRef(({className:e,...t},a)=>Wo("div",{ref:a,className:l("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Q.displayName="Card";var pe=bo.forwardRef(({className:e,...t},a)=>Wo("div",{ref:a,className:l("flex flex-col space-y-1.5 p-6",e),...t}));pe.displayName="CardHeader";var ue=bo.forwardRef(({className:e,...t},a)=>Wo("div",{ref:a,className:l("font-semibold leading-none tracking-tight",e),...t}));ue.displayName="CardTitle";var Mr=bo.forwardRef(({className:e,...t},a)=>Wo("div",{ref:a,className:l("text-sm text-muted-foreground",e),...t}));Mr.displayName="CardDescription";var Z=bo.forwardRef(({className:e,...t},a)=>Wo("div",{ref:a,className:l("p-6 pt-0",e),...t}));Z.displayName="CardContent";var Ar=bo.forwardRef(({className:e,...t},a)=>Wo("div",{ref:a,className:l("flex items-center p-6 pt-0",e),...t}));Ar.displayName="CardFooter";import{jsx as Ko,jsxs as ju}from"react/jsx-runtime";function Fu({name:e,logo:t,href:a}){return Ko(Q,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:ju(Hu,{href:a,className:"block",children:[Ko("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:Ko("div",{className:"relative w-full h-full",children:t&&Ko(Eu,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),Ko(Z,{className:"p-3 flex items-center justify-center h-18 bg-gradient-to-br from-gray-900 via-brand-one to-gray-900",children:Ko("p",{className:"font-medium text-lg text-white text-center group-hover:scale-105 transition-transform duration-200 ease-in-out",children:e})})]})})}import{CalendarDays as fd,Cake as Ou,Award as $u,PartyPopper as _u}from"lucide-react";import{jsx as ia,jsxs as vo}from"react/jsx-runtime";function Gu({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=i=>{switch(i){case"birthday":return ia(Ou,{className:"h-4 w-4"});case"workAnniversary":return ia($u,{className:"h-4 w-4"});case"companyEvent":return ia(_u,{className:"h-4 w-4"});default:return ia(fd,{className:"h-4 w-4"})}},n=i=>{switch(i){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 to-slate-500"}};return vo(Q,{className:`w-full max-w-md overflow-hidden bg-gradient-to-br ${n(e)}`,children:[vo(pe,{className:"flex flex-row items-center gap-3 text-white",children:[r&&vo(wt,{className:"h-14 w-14 border-2 border-white",children:[ia(Nt,{src:r,alt:a||"Event"}),ia(Ct,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),vo("div",{className:"flex flex-col",children:[ia(ue,{className:"text-xl",children:a||"Untitled Event"}),vo("p",{className:"text-sm text-white/80",children:[ia(fd,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),vo(Z,{className:"bg-white bg-opacity-80 p-4",children:[o&&ia("p",{className:"mb-2 text-sm text-gray-700",children:o}),vo(Je,{variant:"secondary",className:`${n(e)} text-white/80`,children:[s(e),ia("span",{className:"ml-1",children:e?e.replace(/([a-z])([A-Z])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}import Vu from"next/link";import Uu from"next/image";import{jsx as ho,jsxs as vd}from"react/jsx-runtime";var bd={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function Wu({slug:e,image:t,title:a,description:o}){return vd(Vu,{href:e,className:"group/portfolio relative z-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[ho("span",{className:l("absolute inset-0 z-[2] bg-gradient-1 from-primary/0 to-primary [transition:all_500ms_ease] md:[transform:perspective(400px)_rotateX(90deg)_scaleY(0.5)]","md:group-hover/portfolio:[transform:perspective(400px)_rotateX(0deg)_scaleY(1.0)] md:group-hover/portfolio:[transition-delay:.1s] md:group-hover/portfolio:[transition:all_.7s_ease]")}),ho(Uu,{src:t.src,alt:t.alt,fill:!0,sizes:`
12
- (min-width:${bd.md}) 50vw,
13
- (min-width:${bd.lg}) 25vw,
12
+ `),k.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",k.easing),document.querySelector("body").setAttribute("data-aos-duration",k.duration),document.querySelector("body").setAttribute("data-aos-delay",k.delay),k.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?V(!0):k.startEvent==="load"?window.addEventListener(k.startEvent,function(){V(!0)}):document.addEventListener(k.startEvent,function(){V(!0)}),window.addEventListener("resize",(0,m.default)(V,k.debounceDelay,!0)),window.addEventListener("orientationchange",(0,m.default)(V,k.debounceDelay,!0)),window.addEventListener("scroll",(0,i.default)(function(){(0,f.default)(w,k.once)},k.throttleDelay)),k.disableMutationObserver||p.default.ready("[data-aos]",M),w)};e.exports={init:z,refresh:V,refreshHard:M}},function(e,t){},,,,,function(e,t){(function(a){"use strict";function o(N,z,v){function G(se){var ct=re,ja=pe;return re=pe=void 0,Fa=se,Ue=N.apply(ja,ct)}function E(se){return Fa=se,Ee=setTimeout(Mt,z),Ha?G(se):Ue}function fe(se){var ct=se-Nt,ja=se-Fa,En=z-ct;return Ca?M(En,oa-ja):En}function Oe(se){var ct=se-Nt,ja=se-Fa;return Nt===void 0||ct>=z||ct<0||Ca&&ja>=oa}function Mt(){var se=T();return Oe(se)?wt(se):void(Ee=setTimeout(Mt,fe(se)))}function wt(se){return Ee=void 0,ye&&re?G(se):(re=pe=void 0,Ue)}function lt(){Ee!==void 0&&clearTimeout(Ee),Fa=0,re=Nt=pe=Ee=void 0}function dt(){return Ee===void 0?Ue:wt(T())}function le(){var se=T(),ct=Oe(se);if(re=arguments,pe=this,Nt=se,ct){if(Ee===void 0)return E(Nt);if(Ca)return Ee=setTimeout(Mt,z),G(Nt)}return Ee===void 0&&(Ee=setTimeout(Mt,z)),Ue}var re,pe,oa,Ue,Ee,Nt,Fa=0,Ha=!1,Ca=!1,ye=!0;if(typeof N!="function")throw new TypeError(c);return z=d(z)||0,s(v)&&(Ha=!!v.leading,Ca="maxWait"in v,oa=Ca?V(d(v.maxWait)||0,z):oa,ye="trailing"in v?!!v.trailing:ye),le.cancel=lt,le.flush=dt,le}function r(N,z,v){var G=!0,E=!0;if(typeof N!="function")throw new TypeError(c);return s(v)&&(G="leading"in v?!!v.leading:G,E="trailing"in v?!!v.trailing:E),o(N,z,{leading:G,maxWait:z,trailing:E})}function s(N){var z=typeof N>"u"?"undefined":m(N);return!!N&&(z=="object"||z=="function")}function n(N){return!!N&&(typeof N>"u"?"undefined":m(N))=="object"}function i(N){return(typeof N>"u"?"undefined":m(N))=="symbol"||n(N)&&k.call(N)==u}function d(N){if(typeof N=="number")return N;if(i(N))return p;if(s(N)){var z=typeof N.valueOf=="function"?N.valueOf():N;N=s(z)?z+"":z}if(typeof N!="string")return N===0?N:+N;N=N.replace(g,"");var v=f.test(N);return v||y.test(N)?R(N.slice(2),v?2:8):b.test(N)?p:+N}var m=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},c="Expected a function",p=NaN,u="[object Symbol]",g=/^\s+|\s+$/g,b=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,y=/^0o[0-7]+$/i,R=parseInt,P=(typeof a>"u"?"undefined":m(a))=="object"&&a&&a.Object===Object&&a,h=(typeof self>"u"?"undefined":m(self))=="object"&&self&&self.Object===Object&&self,w=P||h||Function("return this")(),x=Object.prototype,k=x.toString,V=Math.max,M=Math.min,T=function(){return w.Date.now()};e.exports=r}).call(t,function(){return this}())},function(e,t){(function(a){"use strict";function o(T,N,z){function v(ye){var se=le,ct=re;return le=re=void 0,Nt=ye,oa=T.apply(ct,se)}function G(ye){return Nt=ye,Ue=setTimeout(Oe,N),Fa?v(ye):oa}function E(ye){var se=ye-Ee,ct=ye-Nt,ja=N-se;return Ha?V(ja,pe-ct):ja}function fe(ye){var se=ye-Ee,ct=ye-Nt;return Ee===void 0||se>=N||se<0||Ha&&ct>=pe}function Oe(){var ye=M();return fe(ye)?Mt(ye):void(Ue=setTimeout(Oe,E(ye)))}function Mt(ye){return Ue=void 0,Ca&&le?v(ye):(le=re=void 0,oa)}function wt(){Ue!==void 0&&clearTimeout(Ue),Nt=0,le=Ee=re=Ue=void 0}function lt(){return Ue===void 0?oa:Mt(M())}function dt(){var ye=M(),se=fe(ye);if(le=arguments,re=this,Ee=ye,se){if(Ue===void 0)return G(Ee);if(Ha)return Ue=setTimeout(Oe,N),v(Ee)}return Ue===void 0&&(Ue=setTimeout(Oe,N)),oa}var le,re,pe,oa,Ue,Ee,Nt=0,Fa=!1,Ha=!1,Ca=!0;if(typeof T!="function")throw new TypeError(m);return N=i(N)||0,r(z)&&(Fa=!!z.leading,Ha="maxWait"in z,pe=Ha?k(i(z.maxWait)||0,N):pe,Ca="trailing"in z?!!z.trailing:Ca),dt.cancel=wt,dt.flush=lt,dt}function r(T){var N=typeof T>"u"?"undefined":d(T);return!!T&&(N=="object"||N=="function")}function s(T){return!!T&&(typeof T>"u"?"undefined":d(T))=="object"}function n(T){return(typeof T>"u"?"undefined":d(T))=="symbol"||s(T)&&x.call(T)==p}function i(T){if(typeof T=="number")return T;if(n(T))return c;if(r(T)){var N=typeof T.valueOf=="function"?T.valueOf():T;T=r(N)?N+"":N}if(typeof T!="string")return T===0?T:+T;T=T.replace(u,"");var z=b.test(T);return z||f.test(T)?y(T.slice(2),z?2:8):g.test(T)?c:+T}var d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},m="Expected a function",c=NaN,p="[object Symbol]",u=/^\s+|\s+$/g,g=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,f=/^0o[0-7]+$/i,y=parseInt,R=(typeof a>"u"?"undefined":d(a))=="object"&&a&&a.Object===Object&&a,P=(typeof self>"u"?"undefined":d(self))=="object"&&self&&self.Object===Object&&self,h=R||P||Function("return this")(),w=Object.prototype,x=w.toString,k=Math.max,V=Math.min,M=function(){return h.Date.now()};e.exports=o}).call(t,function(){return this}())},function(e,t){"use strict";function a(d){var m=void 0,c=void 0,p=void 0;for(m=0;m<d.length;m+=1)if(c=d[m],c.dataset&&c.dataset.aos||(p=c.children&&a(c.children)))return!0;return!1}function o(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function r(){return!!o()}function s(d,m){var c=window.document,p=o(),u=new p(n);i=m,u.observe(c.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function n(d){d&&d.forEach(function(m){var c=Array.prototype.slice.call(m.addedNodes),p=Array.prototype.slice.call(m.removedNodes),u=c.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(c,p){if(!(c 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 c(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&&c(p.prototype,u),g&&c(p,g),p}}(),s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,n=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|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|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,d=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|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|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,m=function(){function c(){a(this,c)}return r(c,[{key:"phone",value:function(){var p=o();return!(!s.test(p)&&!n.test(p.substr(0,4)))}},{key:"mobile",value:function(){var p=o();return!(!i.test(p)&&!d.test(p.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),c}();t.default=new m},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(r,s,n){var i=r.node.getAttribute("data-aos-once");s>r.position?r.node.classList.add("aos-animate"):typeof i<"u"&&(i==="false"||!n&&i!=="true")&&r.node.classList.remove("aos-animate")},o=function(r,s){var n=window.pageYOffset,i=window.innerHeight;r.forEach(function(d,m){a(d,i+n,s)})};t.default=o},function(e,t,a){"use strict";function o(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(12),s=o(r),n=function(i,d){return i.forEach(function(m,c){m.node.classList.add("aos-init"),m.position=(0,s.default)(m.node,d.offset)}),i};t.default=n},function(e,t,a){"use strict";function o(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(13),s=o(r),n=function(i,d){var m=0,c=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)&&(c=parseInt(u.offset)),u.anchor&&document.querySelectorAll(u.anchor)&&(i=document.querySelectorAll(u.anchor)[0]),m=(0,s.default)(i).top,u.anchorPlacement){case"top-bottom":break;case"center-bottom":m+=i.offsetHeight/2;break;case"bottom-bottom":m+=i.offsetHeight;break;case"top-center":m+=p/2;break;case"bottom-center":m+=p/2+i.offsetHeight;break;case"center-center":m+=p/2+i.offsetHeight/2;break;case"top-top":m+=p;break;case"bottom-top":m+=i.offsetHeight+p;break;case"center-top":m+=i.offsetHeight/2+p}return u.anchorPlacement||u.offset||isNaN(d)||(c=d),m+c};t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(o){for(var r=0,s=0;o&&!isNaN(o.offsetLeft)&&!isNaN(o.offsetTop);)r+=o.offsetLeft-(o.tagName!="BODY"?o.scrollLeft:0),s+=o.offsetTop-(o.tagName!="BODY"?o.scrollTop:0),o=o.offsetParent;return{top:s,left:r}};t.default=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(o){return o=o||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(o,function(r){return{node:r}})};t.default=a}])})});import*as Vo from"react";import{ChevronRightIcon as mp,DotsHorizontalIcon as pp}from"@radix-ui/react-icons";import{Slot as up}from"@radix-ui/react-slot";import{clsx as lp}from"clsx";var bi="-",Mm=e=>{let t=Lm(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:n=>{let i=n.split(bi);return i[0]===""&&i.length!==1&&i.shift(),On(i,t)||Im(n)},getConflictingClassGroupIds:(n,i)=>{let d=a[n]||[];return i&&o[n]?[...d,...o[n]]:d}}},On=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?On(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(bi);return t.validators.find(({validator:n})=>n(s))?.classGroupId},Hn=/^\[(.+)\]$/,Im=e=>{if(Hn.test(e)){let t=Hn.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Lm=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return zm(Object.entries(e.classGroups),a).forEach(([s,n])=>{fi(n,o,s,t)}),o},fi=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:jn(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(Bm(r)){fi(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,n])=>{fi(n,jn(t,s),a,o)})})},jn=(e,t)=>{let a=e;return t.split(bi).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Bm=e=>e.isThemeGetter,zm=(e,t)=>t?e.map(([a,o])=>{let r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([n,i])=>[t+n,i])):s);return[a,r]}):e,Em=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,n)=>{a.set(s,n),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let n=a.get(s);if(n!==void 0)return n;if((n=o.get(s))!==void 0)return r(s,n),n},set(s,n){a.has(s)?a.set(s,n):r(s,n)}}},$n="!",Fm=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,n=i=>{let d=[],m=0,c=0,p;for(let y=0;y<i.length;y++){let R=i[y];if(m===0){if(R===r&&(o||i.slice(y,y+s)===t)){d.push(i.slice(c,y)),c=y+s;continue}if(R==="/"){p=y;continue}}R==="["?m++:R==="]"&&m--}let u=d.length===0?i:i.substring(c),g=u.startsWith($n),b=g?u.substring(1):u,f=p&&p>c?p-c:void 0;return{modifiers:d,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:f}};return a?i=>a({className:i,parseClassName:n}):n},Hm=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},jm=e=>({cache:Em(e.cacheSize),parseClassName:Fm(e),...Mm(e)}),Om=/\s+/,$m=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],n=e.trim().split(Om),i="";for(let d=n.length-1;d>=0;d-=1){let m=n[d],{modifiers:c,hasImportantModifier:p,baseClassName:u,maybePostfixModifierPosition:g}=a(m),b=!!g,f=o(b?u.substring(0,g):u);if(!f){if(!b){i=m+(i.length>0?" "+i:i);continue}if(f=o(u),!f){i=m+(i.length>0?" "+i:i);continue}b=!1}let y=Hm(c).join(":"),R=p?y+$n:y,P=R+f;if(s.includes(P))continue;s.push(P);let h=r(f,b);for(let w=0;w<h.length;++w){let x=h[w];s.push(R+x)}i=m+(i.length>0?" "+i:i)}return i};function Gm(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Gn(t))&&(o&&(o+=" "),o+=a);return o}var Gn=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Gn(e[o]))&&(a&&(a+=" "),a+=t);return a};function _m(e,...t){let a,o,r,s=n;function n(d){let m=t.reduce((c,p)=>p(c),e());return a=jm(m),o=a.cache.get,r=a.cache.set,s=i,i(d)}function i(d){let m=o(d);if(m)return m;let c=$m(d,a);return r(d,c),c}return function(){return s(Gm.apply(null,arguments))}}var ge=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},_n=/^\[(?:([a-z-]+):)?(.+)\]$/i,Vm=/^\d+\/\d+$/,Um=new Set(["px","full","screen"]),Wm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Km=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Xm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ym=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ka=e=>Go(e)||Um.has(e)||Vm.test(e),Oa=e=>_o(e,"length",rp),Go=e=>!!e&&!Number.isNaN(Number(e)),gi=e=>_o(e,"number",Go),xr=e=>!!e&&Number.isInteger(Number(e)),Qm=e=>e.endsWith("%")&&Go(e.slice(0,-1)),H=e=>_n.test(e),$a=e=>Wm.test(e),Jm=new Set(["length","size","percentage"]),Zm=e=>_o(e,Jm,Vn),ep=e=>_o(e,"position",Vn),tp=new Set(["image","url"]),ap=e=>_o(e,tp,ip),op=e=>_o(e,"",sp),wr=()=>!0,_o=(e,t,a)=>{let o=_n.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},rp=e=>Km.test(e)&&!Xm.test(e),Vn=()=>!1,sp=e=>Ym.test(e),ip=e=>qm.test(e);var np=()=>{let e=ge("colors"),t=ge("spacing"),a=ge("blur"),o=ge("brightness"),r=ge("borderColor"),s=ge("borderRadius"),n=ge("borderSpacing"),i=ge("borderWidth"),d=ge("contrast"),m=ge("grayscale"),c=ge("hueRotate"),p=ge("invert"),u=ge("gap"),g=ge("gradientColorStops"),b=ge("gradientColorStopPositions"),f=ge("inset"),y=ge("margin"),R=ge("opacity"),P=ge("padding"),h=ge("saturate"),w=ge("scale"),x=ge("sepia"),k=ge("skew"),V=ge("space"),M=ge("translate"),T=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",H,t],v=()=>[H,t],G=()=>["",ka,Oa],E=()=>["auto",Go,H],fe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Oe=()=>["solid","dashed","dotted","double","none"],Mt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],wt=()=>["start","end","center","between","around","evenly","stretch"],lt=()=>["","0",H],dt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],le=()=>[Go,H];return{cacheSize:500,separator:":",theme:{colors:[wr],spacing:[ka,Oa],blur:["none","",$a,H],brightness:le(),borderColor:[e],borderRadius:["none","","full",$a,H],borderSpacing:v(),borderWidth:G(),contrast:le(),grayscale:lt(),hueRotate:le(),invert:lt(),gap:v(),gradientColorStops:[e],gradientColorStopPositions:[Qm,Oa],inset:z(),margin:z(),opacity:le(),padding:v(),saturate:le(),scale:le(),sepia:lt(),skew:le(),space:v(),translate:v()},classGroups:{aspect:[{aspect:["auto","square","video",H]}],container:["container"],columns:[{columns:[$a]}],"break-after":[{"break-after":dt()}],"break-before":[{"break-before":dt()}],"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:[...fe(),H]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",xr,H]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",H]}],grow:[{grow:lt()}],shrink:[{shrink:lt()}],order:[{order:["first","last","none",xr,H]}],"grid-cols":[{"grid-cols":[wr]}],"col-start-end":[{col:["auto",{span:["full",xr,H]},H]}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":[wr]}],"row-start-end":[{row:["auto",{span:[xr,H]},H]}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",H]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",H]}],gap:[{gap:[u]}],"gap-x":[{"gap-x":[u]}],"gap-y":[{"gap-y":[u]}],"justify-content":[{justify:["normal",...wt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...wt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...wt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],pe:[{pe:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[V]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[V]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",H,t]}],"min-w":[{"min-w":[H,t,"min","max","fit"]}],"max-w":[{"max-w":[H,t,"none","full","min","max","fit","prose",{screen:[$a]},$a]}],h:[{h:[H,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[H,t,"auto","min","max","fit"]}],"font-size":[{text:["base",$a,Oa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",gi]}],"font-family":[{font:[wr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",H]}],"line-clamp":[{"line-clamp":["none",Go,gi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ka,H]}],"list-image":[{"list-image":["none",H]}],"list-style-type":[{list:["none","disc","decimal",H]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Oe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ka,Oa]}],"underline-offset":[{"underline-offset":["auto",ka,H]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",H]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...fe(),ep]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Zm]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ap]}],"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-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[...Oe(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:Oe()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...Oe()]}],"outline-offset":[{"outline-offset":[ka,H]}],"outline-w":[{outline:[ka,Oa]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[ka,Oa]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",$a,op]}],"shadow-color":[{shadow:[wr]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[...Mt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Mt()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",$a,H]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[h]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[h]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",H]}],duration:[{duration:le()}],ease:[{ease:["linear","in","out","in-out",H]}],delay:[{delay:le()}],animate:[{animate:["none","spin","ping","pulse","bounce",H]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[xr,H]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",H]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",H]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",H]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ka,Oa,gi]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-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-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Un=_m(np);function l(...e){return Un(lp(e))}function Nr(e){let t=0,a=(s,n)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${n}`,o=e.layout.flatMap(s=>{let n=[];return"title"in s&&s.title&&n.push({text:s.title,id:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(i=>{if(i.title&&n.push({text:i.title,id:a(i.title,t++),tag:"h2"}),i.richText?.root?.children&&i.richText?.root?.children.length===1){let d=i.richText.root.children.filter(m=>m!==void 0&&m.type==="heading");for(let m of d)m.children[0]&&n.push({text:m.children[0].text??"",id:a(m.children[0].text,t++),tag:m.tag||"h2"})}}),n}),r=dp(e.layout);return{tableOfContents:o,contentWithIds:r}}function dp(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 Kn=Am(Wn());import{useEffect as cp}from"react";function sy(){return cp(()=>{Kn.default.init({duration:1e3,offset:0,once:!0})},[]),null}import{jsx as Pa,jsxs as gp}from"react/jsx-runtime";var Xn=Vo.forwardRef(({...e},t)=>Pa("nav",{ref:t,"aria-label":"breadcrumb",...e}));Xn.displayName="Breadcrumb";var Yn=Vo.forwardRef(({className:e,...t},a)=>Pa("ol",{ref:a,className:l("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Yn.displayName="BreadcrumbList";var qn=Vo.forwardRef(({className:e,...t},a)=>Pa("li",{ref:a,className:l("inline-flex items-center gap-1.5",e),...t}));qn.displayName="BreadcrumbItem";var Qn=Vo.forwardRef(({asChild:e,className:t,...a},o)=>Pa(e?up:"a",{ref:o,className:l("transition-colors hover:text-foreground",t),...a}));Qn.displayName="BreadcrumbLink";var Jn=Vo.forwardRef(({className:e,...t},a)=>Pa("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:l("font-normal text-foreground",e),...t}));Jn.displayName="BreadcrumbPage";var Zn=({children:e,className:t,...a})=>Pa("li",{role:"presentation","aria-hidden":"true",className:l("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e??Pa(mp,{})});Zn.displayName="BreadcrumbSeparator";var el=({className:e,...t})=>gp("span",{role:"presentation","aria-hidden":"true",className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[Pa(pp,{className:"h-4 w-4"}),Pa("span",{className:"sr-only",children:"More"})]});el.displayName="BreadcrumbElipssis";import*as Uo from"@radix-ui/react-collapsible";var Ga=Uo.Root,no=Uo.CollapsibleTrigger,lo=Uo.CollapsibleContent;import*as Sa from"react";import*as j from"@radix-ui/react-dropdown-menu";import{CheckIcon as fp,ChevronRightIcon as bp,DotFilledIcon as vp}from"@radix-ui/react-icons";import{jsx as mt,jsxs as xi}from"react/jsx-runtime";var hi=j.Root,yi=j.Trigger,hp=j.Group,yp=j.Portal,xp=j.Sub,wp=j.RadioGroup,tl=Sa.forwardRef(({className:e,inset:t,children:a,...o},r)=>xi(j.SubTrigger,{ref:r,className:l("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,mt(bp,{className:"ml-auto"})]}));tl.displayName=j.SubTrigger.displayName;var al=Sa.forwardRef(({className:e,...t},a)=>mt(j.SubContent,{ref:a,className:l("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));al.displayName=j.SubContent.displayName;var Jr=Sa.forwardRef(({className:e,sideOffset:t=4,...a},o)=>mt(j.Portal,{children:mt(j.Content,{ref:o,sideOffset:t,className:l("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Jr.displayName=j.Content.displayName;var Zr=Sa.forwardRef(({className:e,inset:t,...a},o)=>mt(j.Item,{ref:o,className:l("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));Zr.displayName=j.Item.displayName;var ol=Sa.forwardRef(({className:e,children:t,checked:a,...o},r)=>xi(j.CheckboxItem,{ref:r,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[mt("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:mt(j.ItemIndicator,{children:mt(fp,{className:"h-4 w-4"})})}),t]}));ol.displayName=j.CheckboxItem.displayName;var rl=Sa.forwardRef(({className:e,children:t,...a},o)=>xi(j.RadioItem,{ref:o,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[mt("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:mt(j.ItemIndicator,{children:mt(vp,{className:"h-4 w-4 fill-current"})})}),t]}));rl.displayName=j.RadioItem.displayName;var sl=Sa.forwardRef(({className:e,inset:t,...a},o)=>mt(j.Label,{ref:o,className:l("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));sl.displayName=j.Label.displayName;var il=Sa.forwardRef(({className:e,...t},a)=>mt(j.Separator,{ref:a,className:l("-mx-1 my-1 h-px bg-muted",e),...t}));il.displayName=j.Separator.displayName;var nl=({className:e,...t})=>mt("span",{className:l("ml-auto text-xs tracking-widest opacity-60",e),...t});nl.displayName="DropdownMenuShortcut";import*as ll from"react";import{jsx as Np}from"react/jsx-runtime";var Fe=ll.forwardRef(({className:e,type:t,...a},o)=>Np("input",{type:t,className:l("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));Fe.displayName="Input";import*as dl from"react";import*as wi from"@radix-ui/react-separator";import{jsx as Cp}from"react/jsx-runtime";var es=dl.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>Cp(wi.Root,{ref:r,decorative:a,orientation:t,className:l("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));es.displayName=wi.Root.displayName;import*as kr from"react";import*as Pe from"@radix-ui/react-dialog";import{Cross2Icon as kp}from"@radix-ui/react-icons";import{cva as Pp}from"class-variance-authority";import{jsx as _a,jsxs as Ni}from"react/jsx-runtime";var Ci=Pe.Root,Sp=Pe.Trigger,Rp=Pe.Close,cl=Pe.Portal,ki=kr.forwardRef(({className:e,...t},a)=>_a(Pe.Overlay,{className:l("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));ki.displayName=Pe.Overlay.displayName;var Tp=Pp("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),ts=kr.forwardRef(({side:e="right",className:t,children:a,...o},r)=>Ni(cl,{children:[_a(ki,{}),Ni(Pe.Content,{ref:r,className:l(Tp({side:e}),t),...o,children:[Ni(Pe.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[_a(kp,{className:"h-4 w-4"}),_a("span",{className:"sr-only",children:"Close"})]}),a]})]}));ts.displayName=Pe.Content.displayName;var ml=({className:e,...t})=>_a("div",{className:l("flex flex-col space-y-2 text-center sm:text-left",e),...t});ml.displayName="SheetHeader";var pl=({className:e,...t})=>_a("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});pl.displayName="SheetFooter";var ul=kr.forwardRef(({className:e,...t},a)=>_a(Pe.Title,{ref:a,className:l("text-lg font-semibold text-foreground",e),...t}));ul.displayName=Pe.Title.displayName;var gl=kr.forwardRef(({className:e,...t},a)=>_a(Pe.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));gl.displayName=Pe.Description.displayName;import*as $ from"react";import{Slot as Pr}from"@radix-ui/react-slot";import{cva as zp}from"class-variance-authority";import{PanelLeft as Ep}from"lucide-react";import{useState as Dp,useEffect as Ap}from"react";var Pi=(e=768)=>{let[t,a]=Dp(!1);return Ap(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};import{Slot as Mp}from"@radix-ui/react-slot";import{cva as Ip}from"class-variance-authority";import*as fl from"react";import{jsx as Lp}from"react/jsx-runtime";var co=Ip("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),C=fl.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>Lp(e?Mp:"button",{className:l(co({className:t,size:a,variant:o})),ref:s,...r}));C.displayName="Button";import{jsx as Bp}from"react/jsx-runtime";function De({className:e,...t}){return Bp("div",{className:l("animate-pulse rounded-md bg-primary/10",e),...t})}import*as vl from"react";import*as _t from"@radix-ui/react-tooltip";import{jsx as bl}from"react/jsx-runtime";var Si=_t.Provider,Ri=_t.Root,Ti=_t.Trigger,as=vl.forwardRef(({className:e,sideOffset:t=4,...a},o)=>bl(_t.Portal,{children:bl(_t.Content,{ref:o,sideOffset:t,className:l("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));as.displayName=_t.Content.displayName;import{jsx as U,jsxs as ss}from"react/jsx-runtime";var Fp="sidebar:state",Hp=60*60*24*7,jp="16rem",Op="18rem",$p="3rem",Gp="b",hl=$.createContext(null);function Sr(){let e=$.useContext(hl);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var yl=$.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...n},i)=>{let d=Pi(),[m,c]=$.useState(!1),[p,u]=$.useState(e),g=t??p,b=$.useCallback(P=>{if(a)return a?.(typeof P=="function"?P(g):P);u(P),document.cookie=`${Fp}=${g}; path=/; max-age=${Hp}`},[a,g]),f=$.useCallback(()=>d?c(P=>!P):b(P=>!P),[d,b,c]);$.useEffect(()=>{let P=h=>{h.key===Gp&&(h.metaKey||h.ctrlKey)&&(h.preventDefault(),f())};return window.addEventListener("keydown",P),()=>window.removeEventListener("keydown",P)},[f]);let y=g?"expanded":"collapsed",R=$.useMemo(()=>({state:y,open:g,setOpen:b,isMobile:d,openMobile:m,setOpenMobile:c,toggleSidebar:f}),[y,g,b,d,m,c,f]);return U(hl.Provider,{value:R,children:U(Si,{delayDuration:0,children:U("div",{style:{"--sidebar-width":jp,"--sidebar-width-icon":$p,...r},className:l("group/sidebar-wrapper flex w-full has-[[data-variant=inset]]:bg-sidebar",o),ref:i,...n,children:s})})})});yl.displayName="SidebarProvider";var Wo=$.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},n)=>{let{isMobile:i,state:d,openMobile:m,setOpenMobile:c}=Sr();return a==="none"?U("div",{className:l("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:n,...s,children:r}):i?U(Ci,{open:m,onOpenChange:c,...s,children:U(ts,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Op},side:e,children:U("div",{className:"flex h-full w-full flex-col",children:r})})}):ss("div",{ref:n,className:"group peer hidden md:block text-sidebar-foreground","data-state":d,"data-collapsible":d==="collapsed"?a:"","data-variant":t,"data-side":e,children:[U("div",{className:l("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),U("div",{className:l("duration-200 fixed top-14 bottom-0 z-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...s,children:U("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})})]})});Wo.displayName="Sidebar";var xl=$.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=Sr();return ss(C,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:l("h-7 w-7",e),onClick:s=>{t?.(s),r()},...a,children:[U(Ep,{}),U("span",{className:"sr-only",children:"Toggle Sidebar"})]})});xl.displayName="SidebarTrigger";var wl=$.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=Sr();return U("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:l("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});wl.displayName="SidebarRail";var Nl=$.forwardRef(({className:e,...t},a)=>U("main",{ref:a,className:l("flex flex-1 flex-col bg-background overflow-y-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));Nl.displayName="SidebarInset";var Cl=$.forwardRef(({className:e,...t},a)=>U(Fe,{ref:a,"data-sidebar":"input",className:l("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));Cl.displayName="SidebarInput";var Ko=$.forwardRef(({className:e,...t},a)=>U("div",{ref:a,"data-sidebar":"header",className:l("flex flex-col gap-2 p-2",e),...t}));Ko.displayName="SidebarHeader";var Xo=$.forwardRef(({className:e,...t},a)=>U("div",{ref:a,"data-sidebar":"footer",className:l("flex flex-col gap-2 p-2",e),...t}));Xo.displayName="SidebarFooter";var os=$.forwardRef(({className:e,...t},a)=>U(es,{ref:a,"data-sidebar":"separator",className:l("mx-2 w-auto bg-sidebar-border",e),...t}));os.displayName="SidebarSeparator";var mo=$.forwardRef(({className:e,...t},a)=>U("div",{ref:a,"data-sidebar":"content",className:l("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));mo.displayName="SidebarContent";var Vt=$.forwardRef(({className:e,...t},a)=>U("div",{ref:a,"data-sidebar":"group",className:l("relative flex w-full min-w-0 flex-col p-2",e),...t}));Vt.displayName="SidebarGroup";var Va=$.forwardRef(({className:e,asChild:t=!1,...a},o)=>U(t?Pr:"div",{ref:o,"data-sidebar":"group-label",className:l("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Va.displayName="SidebarGroupLabel";var kl=$.forwardRef(({className:e,asChild:t=!1,...a},o)=>U(t?Pr:"button",{ref:o,"data-sidebar":"group-action",className:l("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...a}));kl.displayName="SidebarGroupAction";var ra=$.forwardRef(({className:e,...t},a)=>U("div",{ref:a,"data-sidebar":"group-content",className:l("w-full text-sm",e),...t}));ra.displayName="SidebarGroupContent";var Ct=$.forwardRef(({className:e,...t},a)=>U("ul",{ref:a,"data-sidebar":"menu",className:l("flex w-full min-w-0 flex-col gap-1",e),...t}));Ct.displayName="SidebarMenu";var Ze=$.forwardRef(({className:e,...t},a)=>U("li",{ref:a,"data-sidebar":"menu-item",className:l("group/menu-item relative",e),...t}));Ze.displayName="SidebarMenuItem";var _p=zp("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Ut=$.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...n},i)=>{let d=e?Pr:"button",{isMobile:m,state:c}=Sr(),p=U(d,{ref:i,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:l(_p({variant:a,size:o}),s),...n});return r?(typeof r=="string"&&(r={children:r}),ss(Ri,{children:[U(Ti,{asChild:!0,children:p}),U(as,{side:"right",align:"center",hidden:c!=="collapsed"||m,...r})]})):p});Ut.displayName="SidebarMenuButton";var rs=$.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>U(t?Pr:"button",{ref:r,"data-sidebar":"menu-action",className:l("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...o}));rs.displayName="SidebarMenuAction";var Pl=$.forwardRef(({className:e,...t},a)=>U("div",{ref:a,"data-sidebar":"menu-badge",className:l("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));Pl.displayName="SidebarMenuBadge";var Sl=$.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=$.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return ss("div",{ref:o,"data-sidebar":"menu-skeleton",className:l("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&U(De,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),U(De,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});Sl.displayName="SidebarMenuSkeleton";var po=$.forwardRef(({className:e,...t},a)=>U("ul",{ref:a,"data-sidebar":"menu-sub",className:l("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));po.displayName="SidebarMenuSub";var uo=$.forwardRef(({...e},t)=>U("li",{ref:t,...e}));uo.displayName="SidebarMenuSubItem";var go=$.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...r},s)=>U(e?Pr:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:l("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...r}));go.displayName="SidebarMenuSubButton";import*as ls from"react";var Vp=1,Up=1e6;var Di=0;function Wp(){return Di=(Di+1)%Number.MAX_SAFE_INTEGER,Di.toString()}var Ai=new Map,Rl=e=>{if(Ai.has(e))return;let t=setTimeout(()=>{Ai.delete(e),Rr({type:"REMOVE_TOAST",toastId:e})},Up);Ai.set(e,t)},Kp=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Vp)};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?Rl(a):e.toasts.forEach(o=>{Rl(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)}}},is=[],ns={toasts:[]};function Rr(e){ns=Kp(ns,e),is.forEach(t=>{t(ns)})}function Xp({...e}){let t=Wp(),a=r=>Rr({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>Rr({type:"DISMISS_TOAST",toastId:t});return Rr({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function Mi(){let[e,t]=ls.useState(ns);return ls.useEffect(()=>(is.push(t),()=>{let a=is.indexOf(t);a>-1&&is.splice(a,1)}),[e]),{...e,toast:Xp,dismiss:a=>Rr({type:"DISMISS_TOAST",toastId:a})}}import*as bo from"react";import*as Ae from"@radix-ui/react-toast";import{cva as Yp}from"class-variance-authority";import{X as qp}from"lucide-react";import{jsx as fo}from"react/jsx-runtime";var Ii=Ae.Provider,ds=bo.forwardRef(({className:e,...t},a)=>fo(Ae.Viewport,{ref:a,className:l("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));ds.displayName=Ae.Viewport.displayName;var Qp=Yp("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),cs=bo.forwardRef(({className:e,variant:t,...a},o)=>fo(Ae.Root,{ref:o,className:l(Qp({variant:t}),e),...a}));cs.displayName=Ae.Root.displayName;var Tl=bo.forwardRef(({className:e,...t},a)=>fo(Ae.Action,{ref:a,className:l("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Tl.displayName=Ae.Action.displayName;var ms=bo.forwardRef(({className:e,...t},a)=>fo(Ae.Close,{ref:a,className:l("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:fo(qp,{className:"h-4 w-4"})}));ms.displayName=Ae.Close.displayName;var ps=bo.forwardRef(({className:e,...t},a)=>fo(Ae.Title,{ref:a,className:l("text-sm font-semibold [&+div]:text-xs",e),...t}));ps.displayName=Ae.Title.displayName;var us=bo.forwardRef(({className:e,...t},a)=>fo(Ae.Description,{ref:a,className:l("text-sm opacity-90",e),...t}));us.displayName=Ae.Description.displayName;import{jsx as gs,jsxs as Li}from"react/jsx-runtime";function Jp(){let{toasts:e}=Mi();return Li(Ii,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return Li(cs,{...s,children:[Li("div",{className:"grid gap-1",children:[a&&gs(ps,{children:a}),o&&gs(us,{children:o})]}),r,gs(ms,{})]},t)}),gs(ds,{})]})}import*as Dl from"react";import*as Bi from"@radix-ui/react-toggle";import{cva as Zp}from"class-variance-authority";import{jsx as eu}from"react/jsx-runtime";var fs=Zp("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),Al=Dl.forwardRef(({className:e,variant:t,size:a,...o},r)=>eu(Bi.Root,{ref:r,className:l(fs({variant:t,size:a,className:e})),...o}));Al.displayName=Bi.Root.displayName;import*as vo from"react";import*as Yo from"@radix-ui/react-toggle-group";import{jsx as zi}from"react/jsx-runtime";var Ml=vo.createContext({size:"default",variant:"default"}),Il=vo.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>zi(Yo.Root,{ref:s,className:l("flex items-center justify-center gap-1",e),...r,children:zi(Ml.Provider,{value:{variant:t,size:a},children:o})}));Il.displayName=Yo.Root.displayName;var Ll=vo.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let n=vo.useContext(Ml);return zi(Yo.Item,{ref:s,className:l(fs({variant:n.variant||a,size:n.size||o}),e),...r,children:t})});Ll.displayName=Yo.Item.displayName;import*as Ei from"react";import*as It from"@radix-ui/react-scroll-area";import{jsx as Tr,jsxs as tu}from"react/jsx-runtime";var Wt=Ei.forwardRef(({className:e,children:t,...a},o)=>tu(It.Root,{ref:o,className:l("relative overflow-hidden",e),...a,children:[Tr(It.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),Tr(Fi,{}),Tr(It.Corner,{})]}));Wt.displayName=It.Root.displayName;var Fi=Ei.forwardRef(({className:e,orientation:t="vertical",...a},o)=>Tr(It.ScrollAreaScrollbar,{ref:o,orientation:t,className:l("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:Tr(It.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Fi.displayName=It.ScrollAreaScrollbar.displayName;import*as zl from"react";import*as Kt from"@radix-ui/react-popover";import{jsx as Bl}from"react/jsx-runtime";var bs=Kt.Root,vs=Kt.Trigger,au=Kt.Anchor,Dr=zl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>Bl(Kt.Portal,{children:Bl(Kt.Content,{ref:r,align:t,sideOffset:a,className:l("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Dr.displayName=Kt.Content.displayName;import*as El from"react";import*as Hi from"@radix-ui/react-label";import{cva as ou}from"class-variance-authority";import{jsx as su}from"react/jsx-runtime";var ru=ou("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),I=El.forwardRef(({className:e,...t},a)=>su(Hi.Root,{ref:a,className:l(ru(),e),...t}));I.displayName=Hi.Root.displayName;import*as Fl from"react";import*as ho from"@radix-ui/react-hover-card";import{jsx as lu}from"react/jsx-runtime";var iu=ho.Root,nu=ho.Trigger,Hl=Fl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>lu(ho.Content,{ref:r,align:t,sideOffset:a,className:l("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o}));Hl.displayName=ho.Content.displayName;import*as Ar from"react";import*as Se from"@radix-ui/react-dialog";import{X as du}from"lucide-react";import{jsx as Ua,jsxs as ji}from"react/jsx-runtime";var Xt=Se.Root,cu=Se.Trigger,jl=Se.Portal,Oi=Se.Close,$i=Ar.forwardRef(({className:e,...t},a)=>Ua(Se.Overlay,{ref:a,className:l("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));$i.displayName=Se.Overlay.displayName;var Lt=Ar.forwardRef(({className:e,children:t,...a},o)=>ji(jl,{children:[Ua($i,{}),ji(Se.Content,{ref:o,className:l("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,ji(Se.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[Ua(du,{className:"h-4 w-4"}),Ua("span",{className:"sr-only",children:"Close"})]})]})]}));Lt.displayName=Se.Content.displayName;var sa=({className:e,...t})=>Ua("div",{className:l("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});sa.displayName="DialogHeader";var Ol=({className:e,...t})=>Ua("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ol.displayName="DialogFooter";var ia=Ar.forwardRef(({className:e,...t},a)=>Ua(Se.Title,{ref:a,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));ia.displayName=Se.Title.displayName;var hs=Ar.forwardRef(({className:e,...t},a)=>Ua(Se.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));hs.displayName=Se.Description.displayName;import*as Wa from"react";import{Command as pt}from"cmdk";import{Search as mu}from"lucide-react";import{jsx as Bt,jsxs as uu}from"react/jsx-runtime";var Gi=Wa.forwardRef(({className:e,...t},a)=>Bt(pt,{ref:a,className:l("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Gi.displayName=pt.displayName;var pu=({children:e,...t})=>Bt(Xt,{...t,children:Bt(Lt,{className:"overflow-hidden p-0",children:Bt(Gi,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),$l=Wa.forwardRef(({className:e,...t},a)=>uu("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[Bt(mu,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),Bt(pt.Input,{ref:a,className:l("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));$l.displayName=pt.Input.displayName;var Gl=Wa.forwardRef(({className:e,...t},a)=>Bt(pt.List,{ref:a,className:l("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Gl.displayName=pt.List.displayName;var _l=Wa.forwardRef((e,t)=>Bt(pt.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));_l.displayName=pt.Empty.displayName;var Vl=Wa.forwardRef(({className:e,...t},a)=>Bt(pt.Group,{ref:a,className:l("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Vl.displayName=pt.Group.displayName;var Ul=Wa.forwardRef(({className:e,...t},a)=>Bt(pt.Separator,{ref:a,className:l("-mx-1 h-px bg-border",e),...t}));Ul.displayName=pt.Separator.displayName;var Wl=Wa.forwardRef(({className:e,...t},a)=>Bt(pt.Item,{ref:a,className:l("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));Wl.displayName=pt.Item.displayName;var Kl=({className:e,...t})=>Bt("span",{className:l("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Kl.displayName="CommandShortcut";import*as ys from"react";import{cva as gu}from"class-variance-authority";import{jsx as _i}from"react/jsx-runtime";var fu=gu("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Xl=ys.forwardRef(({className:e,variant:t,...a},o)=>_i("div",{ref:o,role:"alert",className:l(fu({variant:t}),e),...a}));Xl.displayName="Alert";var Yl=ys.forwardRef(({className:e,...t},a)=>_i("h5",{ref:a,className:l("mb-1 font-medium leading-none tracking-tight",e),...t}));Yl.displayName="AlertTitle";var ql=ys.forwardRef(({className:e,...t},a)=>_i("div",{ref:a,className:l("text-sm [&_p]:leading-relaxed",e),...t}));ql.displayName="AlertDescription";import*as xs from"react";import*as Ra from"@radix-ui/react-avatar";import{jsx as Vi}from"react/jsx-runtime";var et=xs.forwardRef(({className:e,...t},a)=>Vi(Ra.Root,{ref:a,className:l("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));et.displayName=Ra.Root.displayName;var kt=xs.forwardRef(({className:e,...t},a)=>Vi(Ra.Image,{ref:a,className:l("aspect-square h-full w-full",e),...t}));kt.displayName=Ra.Image.displayName;var tt=xs.forwardRef(({className:e,...t},a)=>Vi(Ra.Fallback,{ref:a,className:l("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));tt.displayName=Ra.Fallback.displayName;import{cva as bu}from"class-variance-authority";import{jsx as vu}from"react/jsx-runtime";var Ql=bu("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Me({className:e,variant:t,...a}){return vu("div",{className:l(Ql({variant:t}),e),...a})}import*as Mr from"@radix-ui/react-checkbox";import{Check as hu}from"lucide-react";import*as Jl from"react";import{jsx as Ui}from"react/jsx-runtime";var na=Jl.forwardRef(({className:e,...t},a)=>Ui(Mr.Root,{className:l("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:Ui(Mr.Indicator,{className:l("flex items-center justify-center text-current"),children:Ui(hu,{className:"h-4 w-4"})})}));na.displayName=Mr.Root.displayName;import*as _ from"@radix-ui/react-select";import{Check as yu,ChevronDown as Zl,ChevronUp as xu}from"lucide-react";import*as Ka from"react";import{jsx as Ke,jsxs as Wi}from"react/jsx-runtime";var zt=_.Root,lw=_.Group,Et=_.Value,Pt=Ka.forwardRef(({children:e,className:t,...a},o)=>Wi(_.Trigger,{className:l("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,Ke(_.Icon,{asChild:!0,children:Ke(Zl,{className:"h-4 w-4 opacity-50"})})]}));Pt.displayName=_.Trigger.displayName;var ed=Ka.forwardRef(({className:e,...t},a)=>Ke(_.ScrollUpButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:Ke(xu,{className:"h-4 w-4"})}));ed.displayName=_.ScrollUpButton.displayName;var td=Ka.forwardRef(({className:e,...t},a)=>Ke(_.ScrollDownButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:Ke(Zl,{className:"h-4 w-4"})}));td.displayName=_.ScrollDownButton.displayName;var St=Ka.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>Ke(_.Portal,{children:Wi(_.Content,{className:l("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,ref:r,...o,children:[Ke(ed,{}),Ke(_.Viewport,{className:l("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),Ke(td,{})]})}));St.displayName=_.Content.displayName;var wu=Ka.forwardRef(({className:e,...t},a)=>Ke(_.Label,{className:l("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));wu.displayName=_.Label.displayName;var ut=Ka.forwardRef(({children:e,className:t,...a},o)=>Wi(_.Item,{className:l("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[Ke("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:Ke(_.ItemIndicator,{children:Ke(yu,{className:"h-4 w-4"})})}),Ke(_.ItemText,{children:e})]}));ut.displayName=_.Item.displayName;var Nu=Ka.forwardRef(({className:e,...t},a)=>Ke(_.Separator,{className:l("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Nu.displayName=_.Separator.displayName;import*as ad from"react";import{jsx as Cu}from"react/jsx-runtime";var Yt=ad.forwardRef(({className:e,...t},a)=>Cu("textarea",{className:l("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));Yt.displayName="Textarea";import{DayPicker as ku}from"react-day-picker";import{jsx as Pu}from"react/jsx-runtime";function ws({className:e,classNames:t,showOutsideDays:a=!0,...o}){return Pu(ku,{showOutsideDays:a,weekStartsOn:1,className:l("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:l(co({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:l("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:l(co({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})}ws.displayName="Calendar";import*as Xa from"@radix-ui/react-tabs";import{jsx as Ns}from"react/jsx-runtime";function od({className:e,...t}){return Ns(Xa.Root,{"data-slot":"tabs",className:l("flex flex-col gap-2",e),...t})}function rd({className:e,...t}){return Ns(Xa.List,{"data-slot":"tabs-list",className:l("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function sd({className:e,...t}){return Ns(Xa.Trigger,{"data-slot":"tabs-trigger",className:l("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function xw({className:e,...t}){return Ns(Xa.Content,{"data-slot":"tabs-content",className:l("flex-1 outline-none",e),...t})}import{jsx as Ki}from"react/jsx-runtime";var id=({className:e,content:t,style:a})=>Ki("div",{className:l("mx-auto my-8 w-full",e),children:Ki("div",{className:l("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:Ki(W,{content:t,enableGutter:!1,enableProse:!1})})});import{useState as Eu}from"react";import nd from"next/link";import{jsx as Su,jsxs as ld}from"react/jsx-runtime";var la=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:n,reference:i,size:d,url:m}=e,c=t==="reference"&&typeof i?.value=="object"&&i.value.slug?`${i?.relationTo!=="pages"?`/${i?.relationTo}`:""}/${i.value.slug}`:m;if(!c)return null;let p=a==="link"?"clear":d,u=n?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?ld(nd,{className:l(r),href:c||m||"",...u,children:[s&&s,o&&o]}):Su(C,{asChild:!0,className:r,size:p,variant:a,children:ld(nd,{className:l(r),href:c||m||"",...u,children:[s&&s,o&&o]})})};function Cs({className:e}){return l("flex items-center min-h-[3.5rem] md:min-h-[3.75rem] w-full rounded-5 px-4 md:px-5 py-2"," bg-transparent text-accent-800 placeholder:text-accent-800 dark:text-body dark:placeholder:text-body"," border border-solid border-accent-900 border-opacity-20 dark:border-opacity-20 dark:border-accent-200"," focus:border-accent-900 focus:ring-0 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0","transition-all duration-300",e)}import{jsx as Xi,jsxs as Tu}from"react/jsx-runtime";function Ru({className:e,...t}){return Xi("input",{...t,className:Cs({className:e})})}function ks({icon:e,...t}){return Tu("div",{className:"relative w-full",children:[Xi(Ru,{...t}),e&&Xi("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-y-1/2 text-accent",children:e})]})}import{jsx as Yi,jsxs as Au}from"react/jsx-runtime";function Du({className:e,...t}){return Yi("textarea",{...t,className:l(Cs({}),"resize-none md:min-h-[130px]",e)})}function dd({icon:e,...t}){return Au("div",{className:"relative w-full",children:[Yi(Du,{...t}),e&&Yi("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}import{Formik as Mu}from"formik";import{FaUser as Iu}from"react-icons/fa6";import*as yo from"yup";async function cd(e){let{name:t,email:a,subject:o,message:r}=e,s=process.env.TEAMS_WEBHOOK_URL;if(!s)throw new Error("TEAMS_WEBHOOK_URL is not defined");let n={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact 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(n)});if(!i.ok)throw console.error(i),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(i){return console.error(i),{isSuccess:!1,data:null,message:"Internal Server Error"}}}import{toast as md}from"sonner";import{jsx as $e,jsxs as Ir}from"react/jsx-runtime";var qt={tooShort:"Must be at least ${min} characters",tooLong:"Must be at most ${max} characters",required:"This field is required",email:"Invalid email format"},Lu=yo.object().shape({name:yo.string().min(2,qt.tooShort).max(50,qt.tooLong).required(qt.required),email:yo.string().email(qt.email).required(qt.required),subject:yo.string().min(2,qt.tooShort).max(50,qt.tooLong).required(qt.required),message:yo.string().min(2,qt.tooShort).max(300,qt.tooLong).required(qt.required)}),Ps=l("!pr-[44px] text-foreground"),Ss=l("!border-red-600 border"),Rs=l("sr-only");function Ts(){return $e(Mu,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:Lu,onSubmit:async(e,{resetForm:t})=>{let a=await cd(e);a.data===null?md.error(a.message):(md.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:n})=>Ir("form",{onSubmit:n,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[Ir("div",{children:[$e(ks,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:$e(Iu,{className:"text-primary"}),className:l(Ps,e.name&&t.name&&Ss)}),e.name&&t.name&&$e("p",{title:e.name,"aria-live":"polite",role:"error message",className:Rs,children:e.name})]}),Ir("div",{children:[$e(ks,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:$e(Bu,{}),className:l(Ps,e.email&&t.email&&Ss)}),e.email&&t.email&&$e("p",{title:e.email,"aria-live":"polite",role:"error message",className:Rs,children:e.email})]}),Ir("div",{className:"lg:col-span-2",children:[$e(ks,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:l(Ps,e.subject&&t.subject&&Ss)}),e.subject&&t.subject&&$e("p",{title:e.subject,"aria-live":"polite",role:"error message",className:Rs,children:e.subject})]}),Ir("div",{className:"lg:col-span-2",children:[$e(dd,{placeholder:"Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:$e(zu,{}),className:l(Ps,e.message&&t.message&&Ss)}),e.message&&t.message&&$e("p",{title:e.message,"aria-live":"polite",role:"error message",className:Rs,children:e.message})]}),$e("div",{className:"lg:col-span-2 light grid justify-items-center",children:$e(C,{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 Bu(){return $e("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:$e("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 zu(){return $e("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:$e("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"})})}import{jsx as gt,jsxs as Ds}from"react/jsx-runtime";var E1=({links:e,richText:t})=>gt("div",{className:"container",children:Ds("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:[gt("div",{className:"max-w-[48rem] flex items-center",children:t&&gt(W,{className:"mb-0",content:t,enableGutter:!1})}),gt("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>gt(la,{size:"lg",...a},o))})]})}),qo=({links:e,richText:t})=>{let[a,o]=Eu(!1),r="accent",s=()=>o(!0),n=()=>o(!1),i=d=>{d.target===d.currentTarget&&n()};return Ds("div",{className:l("relative isolate overflow-hidden",r==="accent"?"bg-accent":"bg-black"),children:[gt("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:Ds("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&gt(W,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),gt("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:gt("div",{className:"flex flex-col gap-8 text-white",children:(e||[]).map(({link:d},m)=>d?.url==="/contact"?gt("div",{onClick:s,className:l("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:d.label},m):gt(la,{size:"lg",className:l("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"),...d},m))})})]})}),a&&gt("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:i,children:Ds("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[gt("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:n,children:"\u2715"}),gt(Ts,{})," "]})})]})};import{Highlight as Ou,themes as $u}from"prism-react-renderer";import{ClipboardCopy as Fu}from"lucide-react";import{useState as Hu}from"react";import{jsx as As,jsxs as ju}from"react/jsx-runtime";function pd({code:e}){let[t,a]=Hu("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return As("div",{className:"flex justify-end align-middle",children:ju(C,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[As("p",{children:t}),As("div",{className:"w-6 h-6",children:As(Fu,{})})]})})}import{jsx as Lr,jsxs as ud}from"react/jsx-runtime";var gd=({code:e,language:t=""})=>e?Lr(Ou,{code:e,language:t,theme:$u.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>ud("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[r.map((s,n)=>ud("div",{...a({className:"table-row",line:s}),children:[Lr("span",{className:"table-cell select-none text-right text-white/25",children:n+1}),Lr("span",{className:"table-cell pl-4",children:s.map((i,d)=>Lr("span",{...o({token:i})},d))})]},n)),Lr(pd,{code:e})]})}):null;import{jsx as fd}from"react/jsx-runtime";var bd=({className:e,code:t,language:a})=>fd("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:fd(gd,{code:t,language:a})});import{Fragment as Wu}from"react";import Gu from"next/image";import{jsx as hd}from"react/jsx-runtime";var _u={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},vd="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=",yd=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:n,src:i,loading:d}=e,m,c,p=t,u=i||"";if(!u&&s&&typeof s=="object"){let{alt:f,filename:y,height:R,url:P,width:h}=s;if(R&&R>500){let w=500/R;m=h*w,c=R*w}else m=h,c=R;p=f||"",u=P||vd}let g=d||"lazy",b=n||Object.entries(_u).map(([,f])=>`(max-width: ${f}px) ${f*2}w`).join(", ");return hd("picture",{children:hd(Gu,{alt:p||"",className:l(o),fill:a,height:a?void 0:c,placeholder:"blur",blurDataURL:vd,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:b,src:u,width:a?void 0:m})})};import{useEffect as Vu,useRef as Uu}from"react";import{jsx as xd}from"react/jsx-runtime";var wd=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=Uu(null);if(Vu(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return xd("video",{autoPlay:!0,className:l(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:xd("source",{src:a.url||""})})}return null};import{jsx as qi}from"react/jsx-runtime";var da=e=>{let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&o?.mimeType?.includes("video");return qi(a||Wu,{...a!==null?{className:t}:{},children:r?qi(wd,{...e}):qi(yd,{...e})})};import{jsx as Nd}from"react/jsx-runtime";var Ya=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return Nd("div",{className:l("h-full ",{container:a},t),children:Nd(da,{imgClassName:l("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};import{jsx as Cd}from"react/jsx-runtime";var kd=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return Cd("div",{className:l("",{container:a},t),children:Cd(da,{imgClassName:l("rounded-[0.8rem]",o),resource:r,src:s})})};import{jsx as Qo,jsxs as Pd}from"react/jsx-runtime";var Jo=({title:e,description:t,features:a,id:o,nested:r=!1})=>Pd("section",{className:l(r?"w-full":"",""),children:[Pd("div",{className:"prose prose:max-w-none",children:[e&&Qo("h2",{className:"mb-6 mt-0 text-primary",id:o||"",children:e}),t&&typeof t=="string"&&Qo("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&Qo("div",{className:"mb-5 text-foreground",children:Qo(W,{content:t,enableGutter:!1})})]}),Qo("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,n)=>{let i=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,icon:s.icon.icon}};return Qo(Br,{title:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,settings:{...s.settings,width:"auto",order:n},link:s.link?{...s.link,label:"Learn more"}:void 0,icon:i()??{type:"none",icon:null}},n)})})]});import Ku,{Fragment as Xu}from"react";import{jsx as ie}from"react/jsx-runtime";function zr({nodes:e}){return ie(Xu,{children:e?.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=ie(Ku.Fragment,{children:t.text},a);return t.format&1&&(s=ie("strong",{children:s},a)),t.format&2&&(s=ie("em",{children:s},a)),t.format&4&&(s=ie("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=ie("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=ie("code",{children:t.text},a)),t.format&32&&(s=ie("sub",{children:s},a)),t.format&64&&(s=ie("sup",{children:s},a)),s}if(t.type==="table")return ie("table",{children:ie("tbody",{children:t.children.map((s,n)=>ie("tr",{children:s.children.map((i,d)=>ie("td",{children:zr({nodes:i.children})},d))},n))})},a);let o=s=>{if(s.children==null)return null;if(s?.type==="list"&&s?.listType==="check")for(let n of s.children)"checked"in n&&(n?.checked||(n.checked=!1));return zr({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,n=s?.blockType;if(!s||!n)return null;switch(n){case"cta":return ie(qo,{...s},a);case"mediaBlock":return ie(Ya,{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 ie(kd,{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 ie(id,{className:"col-start-2 mb-4",...s},a);case"code":return ie(bd,{className:"col-start-2",...s},a);case"features":return ie(Jo,{...s,nested:!0},a);case"reusableContentBlock":zr({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return ie("br",{className:"col-start-2"},a);case"paragraph":return ie("p",{className:"col-start-2",children:r},a);case"heading":{let s=t?.tag;return ie(s,{className:"col-start-2",id:t?.id||"",children:r},a)}case"list":{let s=t?.tag;return ie(s,{className:"list col-start-2",children:r},a)}case"listitem":return t?.checked!=null?ie("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:r},a):ie("li",{value:t?.value,children:r},a);case"quote":return ie("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return ie(la,{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 ie(la,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}import{jsx as Yu}from"react/jsx-runtime";var W=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>t?Yu("div",{className:l({"container ":a,"max-w-none":!a,"mx-auto prose":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&zr({nodes:t?.root?.children})}):null;import{jsx as qu}from"react/jsx-runtime";var at=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,n=o??"",i=r+s+" fa-"+a+" "+n;return qu("i",{className:i})};import Qu from"next/image";import{jsx as We,jsxs as Er}from"react/jsx-runtime";function Sd(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Br({image:e,icon:t,title:a,subtitle:o,content:r,statistic:s,settings:n,link:i,className:d}){let m={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:"bg-background"},c={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return Er("a",{href:i?.url||"#",className:l("min-w-56 max-w-xl h-full flex flex-col group bg-background",e?"p-0":"p-6 md:p-8",n&&!e&&m[n?.card==="default"?"solid":n?.card],e&&"bg-foreground",n&&n?.card==="outline"?"text-gray-900":"text-white",c[n?.width??"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",n&&`intersect:animate-delay-${n.order||1}00`,d),children:[e&&We("div",{className:"relative aspect-[16/9] w-full",children:We(Qu,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),Er("div",{className:l(e?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[Er("div",{className:"flex flex-col flex-grow",children:[o&&We("div",{className:"text-primary uppercase text-sm font-light mb-4",children:o}),We("div",{className:"flex items-start gap-4 mb-4",children:We(Ju,{icon:{type:t?.type||"fa-light",iconName:t?.icon||"no-icon-error"},heading:a??"",variant:n?.card==="default"?"solid":n?.card??"solid",iconSize:n?.iconSize||"large"})}),r&&typeof r=="object"&&We(W,{enableGutter:!1,content:r,enableProse:!1,className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",n?.card==="outline"||n?.card==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",e&&"prose-headings:text-background prose-p:text-background")}),r&&typeof r=="string"&&We("div",{className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",n?.card==="outline"||n?.card==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:r})]}),i&&i.url&&We("div",{className:"mt-6",children:We("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:i?.label||"Find out more"})})]})]})}var Ju=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="small"&&e.iconName!="no-icon-error"?Er("div",{className:"flex items-start justify-between w-full mb-2",children:[We("div",{className:l(a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),Sd(e)&&We("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"-mr-2 ml-1 mt-1":""),children:We(at,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="no-icon-error"?Er("div",{className:"flex flex-col gap-4",children:[Sd(e)&&We("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:We(at,{type:e.type,iconName:e.iconName,size:"4x"})}),We("h3",{className:l("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):We("div",{className:"flex items-center gap-4 mb-2",children:We("div",{className:l("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});import Zu from"next/image";import eg from"next/link";import*as xo from"react";import{jsx as Zo}from"react/jsx-runtime";var Y=xo.forwardRef(({className:e,...t},a)=>Zo("div",{ref:a,className:l("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Y.displayName="Card";var de=xo.forwardRef(({className:e,...t},a)=>Zo("div",{ref:a,className:l("flex flex-col space-y-1.5 p-6",e),...t}));de.displayName="CardHeader";var ce=xo.forwardRef(({className:e,...t},a)=>Zo("div",{ref:a,className:l("font-semibold leading-none tracking-tight",e),...t}));ce.displayName="CardTitle";var Fr=xo.forwardRef(({className:e,...t},a)=>Zo("div",{ref:a,className:l("text-sm text-muted-foreground",e),...t}));Fr.displayName="CardDescription";var J=xo.forwardRef(({className:e,...t},a)=>Zo("div",{ref:a,className:l("p-6 pt-0",e),...t}));J.displayName="CardContent";var wo=xo.forwardRef(({className:e,...t},a)=>Zo("div",{ref:a,className:l("flex items-center p-6 pt-0",e),...t}));wo.displayName="CardFooter";import{jsx as er,jsxs as ag}from"react/jsx-runtime";function tg({name:e,logo:t,href:a}){return er(Y,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:ag(eg,{href:a,className:"block",children:[er("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:er("div",{className:"relative w-full h-full",children:t&&er(Zu,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),er(J,{className:"p-3 flex items-center justify-center h-18 bg-gradient-to-br from-gray-900 via-brand-one to-gray-900",children:er("p",{className:"font-medium text-lg text-white text-center group-hover:scale-105 transition-transform duration-200 ease-in-out",children:e})})]})})}import{CalendarDays as Rd,Cake as og,Award as rg,PartyPopper as sg}from"lucide-react";import{jsx as ca,jsxs as No}from"react/jsx-runtime";function ig({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=i=>{switch(i){case"birthday":return ca(og,{className:"h-4 w-4"});case"workAnniversary":return ca(rg,{className:"h-4 w-4"});case"companyEvent":return ca(sg,{className:"h-4 w-4"});default:return ca(Rd,{className:"h-4 w-4"})}},n=i=>{switch(i){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 to-slate-500"}};return No(Y,{className:`w-full max-w-md overflow-hidden bg-gradient-to-br ${n(e)}`,children:[No(de,{className:"flex flex-row items-center gap-3 text-white",children:[r&&No(et,{className:"h-14 w-14 border-2 border-white",children:[ca(kt,{src:r,alt:a||"Event"}),ca(tt,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),No("div",{className:"flex flex-col",children:[ca(ce,{className:"text-xl",children:a||"Untitled Event"}),No("p",{className:"text-sm text-white/80",children:[ca(Rd,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),No(J,{className:"bg-white bg-opacity-80 p-4",children:[o&&ca("p",{className:"mb-2 text-sm text-gray-700",children:o}),No(Me,{variant:"secondary",className:`${n(e)} text-white/80`,children:[s(e),ca("span",{className:"ml-1",children:e?e.replace(/([a-z])([A-Z])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}import ng from"next/link";import lg from"next/image";import{jsx as Co,jsxs as Dd}from"react/jsx-runtime";var Td={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function dg({slug:e,image:t,title:a,description:o}){return Dd(ng,{href:e,className:"group/portfolio relative z-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[Co("span",{className:l("absolute inset-0 z-[2] bg-gradient-1 from-primary/0 to-primary [transition:all_500ms_ease] md:[transform:perspective(400px)_rotateX(90deg)_scaleY(0.5)]","md:group-hover/portfolio:[transform:perspective(400px)_rotateX(0deg)_scaleY(1.0)] md:group-hover/portfolio:[transition-delay:.1s] md:group-hover/portfolio:[transition:all_.7s_ease]")}),Co(lg,{src:t.src,alt:t.alt,fill:!0,sizes:`
13
+ (min-width:${Td.md}) 50vw,
14
+ (min-width:${Td.lg}) 25vw,
14
15
  100vw
15
- `,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),ho("div",{className:"relative z-10 flex h-full flex-col",children:vd("div",{className:"mt-auto divide-y md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[ho("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:ho("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] md:[transform:translateY(-100%)] md:group-hover/portfolio:[transform:translateY(0)]",children:a})}),ho("p",{className:"mt-[13px] overflow-hidden pt-[11px] text-body",children:ho("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] md:[transform:translateY(100%)] md:group-hover/portfolio:[transform:translateY(0)]",children:o})})]})})]})}import hd from"next/image";import Oi from"path";import{useState as $i}from"react";import{Fragment as Ju,jsx as Ua,jsxs as _i}from"react/jsx-runtime";function Ku(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function Xu(e){return e.startsWith("http")}function Yu(e,t){let a=e;if(Ku(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(Xu(e))a=e;else if(t.source==="github"){let o=e.replace("./","");if(o.startsWith("/")&&(o=o.slice(1)),t.linked){if(t.linked.path){let r=Oi.dirname(t.linked.path);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.linked.owner}&repo=${t.linked.repo}&path=${o}&branch=${t.linked.branch}`}else{if(t.file){let r=Oi.dirname(t.file);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.owner}&repo=${t.repo}&path=${o}&branch=${t.branch}`}}else if(e.startsWith("/"))a=e;else if(e.startsWith("./")){let o=e.replace("./","");t.file&&(o=`/${Oi.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function qu({src:e,alt:t}){let[a,o]=$i(!1),[r,s]=$i(!1),[n,i]=$i({width:0,height:0}),c=()=>{r&&o(!0)},m=()=>{o(!1)},d=p=>{let{naturalWidth:u,naturalHeight:g}=p.target;i({width:u,height:g}),s(u>300||g>300)};return _i(Ju,{children:[Ua("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${n.height>300?"h-[300px]":`h-[${n.height}px]`}`,onClick:c,children:Ua(hd,{sizes:"100vw",height:n.height,width:n.width,src:e,alt:t||"",onLoad:d,unoptimized:!0,className:"object-contain max-w-full max-h-full"})}),Ua(Wt,{open:a,onOpenChange:o,children:_i(At,{className:"flex flex-col items-center justify-center",children:[_i(ta,{className:"flex w-full justify-end",children:[Ua(aa,{className:"hidden",children:t}),Ua(Di,{})]}),Ua("div",{className:"flex items-center justify-center",children:Ua(hd,{height:n.height,width:n.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function Qu({props:e,baseContext:t}){let{src:a}=e;return a=Yu(a,t),Ua(qu,{src:a,alt:e.alt})}import Zu from"next/link";import{jsx as eg}from"react/jsx-runtime";function We({children:e,href:t,openNewTab:a,...o}){return eg(Zu,{href:t,target:a?"_blank":"_self",...o,children:e})}import{jsx as Xt,jsxs as Gi}from"react/jsx-runtime";function tg(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function o2({icon:e,title:t,description:a,slug:o}){return Gi("article",{className:l(["group/service bg-card shadow-3 transition-transform duration-350 dark:shadow-none","relative z-1 block h-full space-y-6 overflow-hidden rounded-5 p-6 md:space-y-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[Gi("div",{className:"flex items-center text-foreground gap-5",children:[Xt("span",{className:"flex-none text-[2.5rem] transition-all duration-300 group-hover/service:scale-90 group-hover/service:text-accent md:text-[4rem]",children:tg(e)?Xt(Ze,{type:e.type,iconName:e.iconName,size:"sm"}):e}),Xt("h2",{className:"text-md font-medium leading-[1.25] md:text-lg",children:o?Xt(We,{href:o,children:t}):t})]}),Xt("p",{className:"text-foreground",children:a}),o&&Xt(k,{asChild:!0,className:l(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","before:hidden after:hidden"]),children:Gi(We,{href:o,children:[Xt("span",{children:"Read More"}),Xt("span",{className:"relative pl-3 text-sm/[1] text-accent",children:Xt("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:Xt("path",{d:"M11.8125 5.75C11.8125 6.24219 11.4023 6.65234 10.9375 6.65234H7V10.5898C7 11.0547 6.58984 11.4375 6.125 11.4375C5.63281 11.4375 5.25 11.0547 5.25 10.5898V6.65234H1.3125C0.820312 6.65234 0.4375 6.24219 0.4375 5.75C0.4375 5.28516 0.820312 4.90234 1.3125 4.90234H5.25V0.964844C5.25 0.472656 5.63281 0.0625 6.125 0.0625C6.58984 0.0625 7 0.472656 7 0.964844V4.90234H10.9375C11.4023 4.875 11.8125 5.28516 11.8125 5.75Z"})})})]})}),Xt("span",{className:"invisible absolute bottom-0 left-0 h-[2px] w-full scale-x-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-x-100 group-hover/service:opacity-100"})]})}import{FaCircleCheck as ag,FaAnglesRight as og}from"react-icons/fa6";import{jsx as St,jsxs as Xo}from"react/jsx-runtime";function yd({title:e,description:t,features:a,price:o,duration:r,button:s}){return Xo("div",{className:"relative grid rounded-5 border border-accent-200 dark:border-opacity-20 lg:grid-cols-[300px_1fr] 2xl:grid-cols-[386px_1fr]",children:[Xo("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-b max-lg:pt-14 lg:border-r lg:p-10",children:[St("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),St("p",{children:t})]}),St("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:Xo("div",{className:"flex flex-col justify-stretch gap-x-14 gap-y-5 md:flex-row md:items-center",children:[a&&a.length>0&&St("ul",{"aria-label":"pricing point list",className:"grid w-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:a.map((n,i)=>Xo("li",{className:"flex items-start gap-3 lg:gap-4",children:[St("span",{className:"text-accent pt-1",children:St(ag,{})}),St("span",{children:n})]},i))}),Xo("p",{className:"font-secondary ml-auto text-xl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,St("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:r&&r})]}),s&&St("div",{className:"flex-none mr-0 sm:ml-auto",children:St(k,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:Xo(We,{href:s.href,openNewTab:s.openNewTab,children:[St("span",{className:"relative z-1",children:s.label}),St("span",{className:"relative z-1 pl-2",children:St(og,{})})]})})})]})})]})}import{jsx as Wa,jsxs as xd}from"react/jsx-runtime";function p2({className:e,badge:t,title:a,subtitle:o}){return xd("div",{className:l("relative overflow-hidden rounded-xl bg-gradient-to-br from-[#A42368] to-[#A42368] m-6 px-6 py-16 md:px-12 md:py-24",e),children:[xd("div",{className:"relative z-10 mx-auto max-w-4xl text-center",children:[t&&Wa("div",{className:"mb-4",children:Wa("span",{className:"inline-block rounded-lg bg-[#A42368]/50 px-4 py-1.5 text-sm font-medium text-white backdrop-blur-sm",children:t})}),Wa("h1",{className:"mt-6 text-3xl font-bold tracking-tight text-white sm:text-4xl md:text-5xl lg:text-6xl",children:a}),Wa("p",{className:"mt-6 text-base text-gray-300 sm:text-lg md:text-xl",children:o})]}),Wa("div",{className:"absolute bottom-0 left-1/2 h-48 w-full -translate-x-1/2",style:{background:"radial-gradient(50% 50% at 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),Wa("div",{className:"absolute bottom-0 left-1/2 h-32 w-full -translate-x-1/2",children:Wa("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:Wa("path",{d:"M-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}import{jsx as Me,jsxs as Vi}from"react/jsx-runtime";function wd(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function y2({variant:e="outline",className:t,icon:a,iconSize:o="large",width:r="auto",order:s=0,heading:n,subheading:i,content:c,statistic:m,buttonText:d,buttonHref:p}){let u={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:""},g={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return Vi("div",{className:l("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",u[e],e==="outline"?"text-gray-900":"text-white",t,g[r],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${s+1}00`),children:[Me("div",{className:"flex items-center gap-4 mb-2",children:Me(rg,{icon:a,heading:n,variant:e,iconSize:o})}),m&&Me("div",{className:"mb-6",children:Me("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",e==="outline"||e==="light"?"text-primary":"text-white"),children:m})}),i&&Me("div",{className:"mb-4 text-xl md:text-2xl font-light",children:i}),c&&typeof c=="object"&&Me("div",{className:l("space-y-6"),children:Me(W,{enableGutter:!1,content:c,enableProse:!1,className:l(e==="outline"||e==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),c&&typeof c=="string"&&Me("div",{className:l("space-y-6",e==="outline"||e==="light"?"text-gray-900":"text-gray-100"),children:c}),d&&Me("div",{className:"mt-auto pt-6 flex items-center justify-center",children:Me(k,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:Me("a",{href:p,children:d})})}),e==="radial"&&Me("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var rg=({icon:e,heading:t,variant:a,iconSize:o})=>e&&o==="small"?Vi("div",{className:"flex items-start gap-4 mb-2",children:[wd(e)&&Me("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"mt-2":""),children:Me(Ze,{type:e.type,iconName:e.iconName,size:"2x"})}),Me("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t})]}):e?Vi("div",{className:"flex flex-col gap-4",children:[wd(e)&&Me("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:Me(Ze,{type:e.type,iconName:e.iconName,size:"4x"})}),Me("h3",{className:l("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):Me("div",{className:"flex items-center gap-4 mb-2",children:Me("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});import{jsx as ig}from"react/jsx-runtime";var sg=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return ig("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};import{useState as ef,useEffect as tf,useCallback as af}from"react";import{Fragment as lg,jsx as Yo,jsxs as ng}from"react/jsx-runtime";function z2({icon:e,title:t,body:a,color:o="secondary"}){return Yo(lg,{children:ng("div",{className:"flex py-0 min-h-16",children:[Yo("div",{className:"px-[2%] flex items-center",children:Yo("div",{className:"w-12 h-12",children:Yo(Ze,{type:e.type,iconName:e.name})})}),Yo("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&Yo("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}import dg from"next/image";import{jsx as Cs,jsxs as Ui}from"react/jsx-runtime";function j2(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return Ui("div",{className:"relative flex flex-col rounded-3xl bg-white p-2 shadow-md shadow-black/5 ring-1 ring-black/5 hover:shadow-lg transition-shadow group",children:[a&&Cs(dg,{alt:r||"",src:a,layout:"responsive",width:1170,height:780,className:"rounded-2xl object-cover transform group-hover:scale-95 transition-transform duration-400"}),Ui("div",{className:"flex flex-1 flex-col p-4",children:[Cs("div",{className:"mt-2 font-medium text-center group-hover:scale-110 transition-transform duration-400 ease-in-out text-foreground dark:text-background group-hover:text-accent",children:Ui("a",{href:t,children:[Cs("span",{className:"absolute inset-0"}),r]})}),o&&Cs("div",{className:"mt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}import{Fragment as mg,jsx as Ca,jsxs as Wi}from"react/jsx-runtime";var cg=(e,t)=>`from-brand-${e} to-brand-${t}`;function _2({...e}){let t=cg(e.brandFrom||"one",e.brandTo||"two");return Wi("div",{className:`relative isolate flex items-center gap-x-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-to-r ${t}`,children:[Ca("p",{className:"text-sm/6 text-primary-foreground",children:e.url?Wi("a",{href:e.url,children:[Ca("strong",{className:"font-semibold",children:e.title}),e.message&&Ca("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:Ca("circle",{r:1,cx:1,cy:1})}),Ca("span",{children:e.message&&e.message})]}):Wi(mg,{children:[Ca("strong",{className:"font-semibold",children:e.title}),e.message&&Ca("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:Ca("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),Ca("div",{className:"flex flex-1 justify-end"})]})}import pg,{useState as Cd}from"react";import{ChevronRight as ug,ChevronDown as gg,Users as fg,Code as Nd,GanttChart as bg,DraftingCompass as vg,Search as hg}from"lucide-react";import{jsx as Ae,jsxs as qo}from"react/jsx-runtime";var yg={Architecture:Ae(vg,{className:"h-5 w-5 text-blue-600"}),Engineering:Ae(Nd,{className:"h-5 w-5 text-green-600"}),Development:Ae(Nd,{className:"h-5 w-5 text-purple-600"}),Delivery:Ae(bg,{className:"h-5 w-5 text-red-600"})},xg=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return Ae("div",{className:`ml-${t*4} mb-2`,children:qo("div",{className:`flex items-center p-3 rounded-lg shadow-sm border ${r?"bg-card border-primary":"bg-white border-gray-200"}`,children:[s&&Ae("button",{onClick:a,className:"mr-2","aria-label":o?"Collapse":"Expand",children:o?Ae(gg,{className:"h-4 w-4"}):Ae(ug,{className:"h-4 w-4"})}),Ae("div",{className:"w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:Ae(fg,{className:"h-6 w-6 text-gray-500"})}),qo("div",{children:[Ae("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),qo("div",{className:"flex items-center mt-1",children:[yg[e.discipline],Ae("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),Ae("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},kd=({person:e,level:t,searchTerm:a})=>{let[o,r]=Cd(t<1),s=()=>r(!o),n=d=>d.name.toLowerCase().includes(a.toLowerCase())||d.discipline.toLowerCase().includes(a.toLowerCase())||d.grade.toLowerCase().includes(a.toLowerCase()),i=d=>n(d)||d.reports.some(i),c=a===""||i(e),m=n(e);return pg.useEffect(()=>{a!==""&&i(e)&&r(!0)},[a,e]),c?qo("div",{children:[Ae(xg,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:m}),o&&e.reports.map((d,p)=>Ae(kd,{person:d,level:t+1,searchTerm:a},p))]}):null};function q2(){let[e,t]=Cd("");return qo("div",{className:"max-w-5xl mx-auto p-6",children:[Ae("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),qo("div",{className:"mb-4 relative",children:[Ae("input",{type:"text",placeholder:"Search by name, discipline, or grade",value:e,onChange:o=>t(o.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Search the organization chart"}),Ae(hg,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),Ae("div",{className:"space-y-4",children:[{name:"Alice Johnson",discipline:"Architecture",grade:"Director",reports:[{name:"Bob Smith",discipline:"Engineering",grade:"Senior Manager",reports:[{name:"Charlie Brown",discipline:"Development",grade:"Manager",reports:[]},{name:"Diana Ross",discipline:"Engineering",grade:"Manager",reports:[]},{name:"Edward Norton",discipline:"Engineering",grade:"Manager",reports:[]}]},{name:"Fiona Apple",discipline:"Architecture",grade:"Senior Manager",reports:[{name:"George Clooney",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Helen Mirren",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Ian McKellen",discipline:"Architecture",grade:"Manager",reports:[]}]},{name:"Julia Roberts",discipline:"Development",grade:"Senior Manager",reports:[{name:"Kevin Spacey",discipline:"Development",grade:"Manager",reports:[]},{name:"Liam Neeson",discipline:"Development",grade:"Manager",reports:[]},{name:"Meryl Streep",discipline:"Development",grade:"Manager",reports:[]}]}]},{name:"Nicole Kidman",discipline:"Delivery",grade:"Director",reports:[{name:"Owen Wilson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Penelope Cruz",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Quentin Tarantino",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Rachel McAdams",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Samuel L. Jackson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Tom Hanks",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Uma Thurman",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Viola Davis",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Will Smith",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Xavier Dolan",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Yalitza Aparicio",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Zoe Saldana",discipline:"Delivery",grade:"Manager",reports:[]}]}]}].map((o,r)=>Ae(kd,{person:o,level:0,searchTerm:e},r))})]})}import{Users as wg,FileText as Ng,Lightbulb as Cg,PoundSterling as kg,User as Pd,Users2 as Pg}from"lucide-react";import{jsx as te,jsxs as ye}from"react/jsx-runtime";function tC({teamMembers:e={leadership:[{role:"CTO oversight"},{role:"Senior Delivery Lead",isFTE:!0}],core:[{role:"Lead Cloud Architect",isFTE:!0},{role:"Senior Business Analyst",isFTE:!0}],sme:["Security Architecture","Engineering","Data Architecture"]},outputs:t=[{title:"Discovery Report",description:"A detailed report summarising the findings from the initial assessment, including insights from stakeholder interviews and document reviews."},{title:"Cloud and Data Estate Assessment Report",description:"A comprehensive analysis of the current cloud and data infrastructure, highlighting strengths, weaknesses, and opportunities for improvement."},{title:"Gap Analysis Report",description:"Identification of gaps between current capabilities and the requirements for adopting GenAI, along with a detailed analysis of these gaps."},{title:"Recommendations Report",description:"A set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"A phased roadmap outlining the steps to implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"A detailed plan outlining potential risks and mitigation strategies to ensure a smooth transition."}],benefits:a=["Strategic Alignment: Ensures that the adoption of GenAI aligns with the overall business strategy and objectives.","Enhanced Efficiency: Optimises cloud and data operations, leading to improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies to mitigate them, ensuring a smooth transition.","Scalability: Prepares the organisation for future growth and scalability by enhancing the underlying technology infrastructure.","Competitive Advantage: Positions the organisation to leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return ye("div",{className:"grid gap-6 lg:grid-cols-3",children:[ye("div",{className:"lg:col-span-1 space-y-6 flex flex-col",children:[ye(Q,{className:"flex-grow",children:[te(pe,{className:"bg-primary text-primary-foreground",children:ye(ue,{className:"flex items-center gap-2",children:[te(wg,{className:"h-5 w-5"}),"Team"]})}),ye(Z,{className:"p-6",children:[te("p",{className:"mb-6 text-sm text-muted-foreground",children:"A small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),ye("div",{className:"space-y-6",children:[te("div",{className:"space-y-2",children:e.leadership.map((r,s)=>ye("div",{className:"flex items-center justify-between",children:[ye("div",{className:"flex items-center gap-2",children:[te(Pd,{className:"h-4 w-4 text-muted-foreground"}),te("span",{children:r.role})]}),r.isFTE&&te("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),te("div",{className:"space-y-2",children:e.core.map((r,s)=>ye("div",{className:"flex items-center justify-between",children:[ye("div",{className:"flex items-center gap-2",children:[te(Pd,{className:"h-4 w-4 text-muted-foreground"}),te("span",{children:r.role}),r.count&&ye("span",{children:["(",r.count,"x)"]})]}),r.isFTE&&te("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),ye("div",{children:[ye("div",{className:"flex items-center gap-2 mb-2",children:[te(Pg,{className:"h-4 w-4 text-muted-foreground"}),te("span",{children:"SME input:"})]}),te("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),ye(Q,{children:[te(pe,{className:"bg-primary text-primary-foreground",children:ye(ue,{className:"flex items-center gap-2",children:[te(kg,{className:"h-5 w-5"}),"Fee"]})}),te(Z,{className:"p-6",children:te("p",{className:"text-lg font-semibold",children:o})})]})]}),ye(Q,{className:"lg:col-span-1 flex flex-col",children:[te(pe,{className:"bg-primary text-primary-foreground",children:ye(ue,{className:"flex items-center gap-2",children:[te(Ng,{className:"h-5 w-5"}),"Outputs"]})}),ye(Z,{className:"p-6 flex-grow overflow-auto",children:[te("ol",{className:"list-decimal list-inside space-y-4",children:t.map((r,s)=>ye("li",{className:"text-sm",children:[ye("span",{className:"font-medium",children:[r.title,":"]})," ",te("span",{className:"text-muted-foreground",children:r.description})]},s))}),te("p",{className:"mt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),ye(Q,{className:"lg:col-span-1 flex flex-col",children:[te(pe,{className:"bg-primary text-primary-foreground",children:ye(ue,{className:"flex items-center gap-2",children:[te(Cg,{className:"h-5 w-5"}),"Benefits"]})}),te(Z,{className:"p-6 flex-grow overflow-auto",children:te("ul",{className:"space-y-4",children:a.map((r,s)=>ye("li",{className:"flex gap-2 text-sm",children:[te("span",{className:"text-primary",children:"\u2713"}),te("span",{children:r})]},s))})})]})]})}import{BarChart3 as Sg,CogIcon as Rg,Building2 as Tg,BadgeCheck as Dg}from"lucide-react";import{jsx as ae,jsxs as na}from"react/jsx-runtime";function sC(){return ae("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:na("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[na("div",{className:"space-y-4 bg-primary p-3 rounded-lg",children:[na("div",{className:"flex items-center gap-2 relative z-10",children:[ae("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:ae("span",{className:"text-[#0B3B4E]",children:"1"})}),ae(Sg,{className:"w-8 h-8"})]}),ae("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),ae("p",{className:"text-secondary text-sm",children:"We excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),na("ul",{className:"text-sm",children:[ae("li",{children:"Strategy definition"}),ae("li",{children:"Programme leadership"}),ae("li",{children:"Detailed planning"}),ae("li",{children:"\u2022 Financial control"}),ae("li",{children:"\u2022 Rigorous governance"})]})]}),na("div",{className:"space-y-4",children:[na("div",{className:"flex items-center gap-2 relative z-10",children:[ae("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:ae("span",{className:"text-[#0B3B4E]",children:"2"})}),ae(Rg,{className:"w-8 h-8"})]}),ae("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),ae("p",{className:"text-sky-200 text-sm",children:"Our architects and engineers possess extensive expertise in designing, building, and operating modern, leading-edge technologies and enterprise-class solutions."}),ae("p",{className:"text-sm",children:"We deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),na("div",{className:"space-y-4",children:[na("div",{className:"flex items-center gap-2 relative z-10",children:[ae("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:ae("span",{className:"text-[#0B3B4E]",children:"3"})}),ae(Tg,{className:"w-8 h-8"})]}),ae("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),ae("p",{className:"text-sky-200 text-sm",children:"We understand how to navigate public sector and financial services regulation and how to deliver compliant and robustly secure cutting-edge solutions in this context."}),ae("p",{className:"text-sm",children:"We have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),na("div",{className:"space-y-4",children:[na("div",{className:"flex items-center gap-2 relative z-10",children:[ae("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:ae("span",{className:"text-[#0B3B4E]",children:"4"})}),ae(Dg,{className:"w-8 h-8"})]}),ae("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),ae("p",{className:"text-sky-200 text-sm",children:"We have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),ae("p",{className:"text-sm",children:"As an XXXX strategic partner, we have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}import{jsx as Ir,jsxs as Mg}from"react/jsx-runtime";var ks=e=>{let{columns:t,theme:a}=e,o={full:"12",half:"6",oneThird:"4",twoThirds:"8"},r={none:"",line:"border border-primary p-4 rounded-lg"},s=i=>{if(i.type&&i.type==="block"&&i.fields&&(i.fields.blockType==="imageBlock"||i.fields.blockType==="mediaBlock"))return!0;if(i.root&&i.root.children){for(let c of i.root.children)if(s(c))return!0}if(i.children){for(let c of i.children)if(s(c))return!0}return!1},n=(i,c,m)=>{if(c==="none"||m==="full")return{processedRichText:i,heading:null};let d=i,p=null;return i&&i.root&&i.root.children&&i.root.children[0].tag==="h2"&&(d={...i,root:{...i.root,children:i.root.children.slice(1)}},p=i.root.children[0]),{processedRichText:d,heading:p}};return Ir("div",{className:"my-6",children:Ir("div",{className:l("grid grid-cols-4 lg:grid-cols-12 gap-y-8",a?.settings?.box?"gap-x-8":"gap-x-16"),children:t&&t.length>0&&t.map((i,c)=>{let{enableLink:m,link:d,richText:p,size:u}=i,{processedRichText:g,heading:b}=n(p,a?.settings?.box||"none",u||"full");return Mg("div",{className:l(`col-span-4 lg:col-span-${o[u]}`,{"md:col-span-2":u!=="full"},r[u!=="full"&&!s(p)&&a?.settings?.box||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${c+1}00`),children:[b&&Ir("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:b.children[0].text}),g&&Ir(W,{content:g,enableGutter:!1,className:"rich-text"}),m&&Ir(ra,{...d})]},c)})})})};import Ki from"next/image";import{jsx as ka,jsxs as Xi}from"react/jsx-runtime";function fC({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return Xi("div",{className:"relative w-full overflow-hidden bg-white pb-16 pt-[calc(80vw*0.5)]",children:[ka("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:ka("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] w-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:ka(Ki,{src:e,alt:"Header background",className:"h-full w-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),Xi("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[o&&ka("div",{className:"h-16 w-32 md:h-24 md:w-48",children:ka(Ki,{src:o,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})}),r&&ka("div",{className:"h-10 w-20 md:h-12 md:w-24",children:ka(Ki,{src:r,alt:"Customer logo",className:"h-full w-full object-contain",width:96,height:48})})]}),Xi("div",{className:"container relative mx-auto px-4",children:[ka("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),ka("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}import{Fragment as Ld}from"react";import Bd from"next/image";import{Fragment as Td,jsx as Qo,jsxs as Ig}from"react/jsx-runtime";var Rd=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?Qo(Ag,{blocks:a.layout}):Qo(Td,{})},Sd={content:ks,cta:Go,mediaBlock:Va,imageBlock:Va,features:Uo},Ag=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?Qo(Td,{children:t.map((o,r)=>{let{blockType:s}=o,n=o?.theme;if(s&&s in Sd){let i=Sd[s];if(i)return Ig("div",{className:"py-6 relative",children:[Qo(Yi,{block:o,index:r}),Qo("div",{className:l(n?.settings?.theme==="dark"?"dark":n?.settings?.theme==="green"?"green":""),children:Qo(i,{...o})})]},r)}return null})}):null};import Lg from"react";import*as Jo from"@radix-ui/react-collapsible";import{ChevronDownIcon as Bg,ChevronUpIcon as zg}from"@radix-ui/react-icons";import{jsx as yo,jsxs as Dd}from"react/jsx-runtime";var Md=({title:e,richText:t})=>{let[a,o]=Lg.useState(!1);return yo("div",{className:"border rounded-lg overflow-hidden",children:Dd(Jo.Root,{className:l("w-full"),open:a,onOpenChange:o,children:[Dd(Jo.Trigger,{className:"flex w-full items-center justify-between bg-white px-4 py-3 text-left hover:bg-gray-50",children:[yo("h2",{className:"text-lg font-medium",children:e}),a?yo(zg,{className:"h-6 w-6"}):yo(Bg,{className:"h-6 w-6"})]}),yo(Jo.Content,{className:"overflow-hidden data-[state=closed]:animate-collapse data-[state=open]:animate-expand border-t",children:yo("div",{className:"px-4 py-3 bg-white",children:yo(W,{content:t||{},enableGutter:!1})})})]})})};import{jsx as H,jsxs as Yt}from"react/jsx-runtime";var Ps={content:ks,cta:Go,mediaBlock:Va,collapsibleArea:Md,imageBlock:Va,features:Uo,reusableContentBlock:Rd},xo=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?H("section",{id:"render-blocks",className:l(e.fill?"h-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,n=o?.theme;if(s&&s in Ps){let i=Ps[s];if(s==="reusableContentBlock")return H(Ld,{children:H(xo,{blocks:o.reusableContent.layout})},r);if(i)return Yt("div",{className:l("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[H(Yi,{block:o,index:r}),H("div",{className:l("container h-full relative",n?.settings?.theme||"dark"),children:H(i,{...o})})]},r)}return null})}):null},Yi=e=>{if(!("theme"in e.block))return H("div",{className:l("absolute inset-0 w-screen h-full dark bg-background")});let t=e.block?.theme;if(t.settings.background==="image"){let a={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return Yt("div",{className:l("absolute inset-0 w-full h-full bg-background",t.settings.theme||"dark"),children:[H(Bd,{src:t.settings?.image?.url||"/placeholder.svg",alt:t.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&H("div",{className:"absolute inset-0",style:{background:a.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return H("div",{className:l("absolute inset-0 w-screen h-full bg-background",t.settings.theme||"dark")})},_C=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?H("main",{id:"content-blocks",className:l(e.fill?"h-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,n=o?.theme;if(s&&s in Ps){let i=Ps[s];if(s==="reusableContentBlock")return H(Ld,{children:H(xo,{blocks:o.reusableContent.layout})},r);if(i)return H(Eg,{block:o,allBlocks:t,index:r,children:H(i,{...o})})}return null})}):null},Eg=e=>{if(e.index===0)return Yt("section",{className:"relative flex w-full",children:[H("div",{className:l("absolute inset-0 w-screen h-full light bg-background")}),H("div",{className:l("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let t=c=>c%2===0?"light":"dark",a=({index:c,allBlocks:m})=>c===1?H(Ad,{position:"left"}):r(c,m)==="dark"&&n(c,m)==="light"?H(Id,{position:"left"}):r(c,m)==="light"&&n(c,m)==="dark"?H(Ad,{position:"left"}):null,o=({index:c,allBlocks:m})=>s(c,m)==="light"&&n(c,m)==="dark"?H(Id,{position:"left"}):null,r=(c,m)=>{if(c===1)return"light";let d=m[c-1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},s=(c,m)=>{if(c===m.length-1)return"dark";if(c===0)return"light";let d=m[c+1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},n=(c,m)=>{if(c===m.length-1)return"dark";let d=m[c];return d.theme&&d.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return r(e.index,e.allBlocks)==="dark"?Yt("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[H("div",{className:l("absolute inset-0 w-screen dark bg-background")}),H("div",{className:l("container relative","dark bg-background py-1"),children:e.children})]}):Yt("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[H(a,{index:e.index,allBlocks:e.allBlocks}),H("div",{className:l("absolute inset-0 w-screen")}),H("div",{className:"bg-black",children:H("div",{className:l("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||r(e.index,e.allBlocks)===n(e.index,e.allBlocks)){let c=n(e.index,e.allBlocks);return Yt("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[H("div",{className:l("absolute inset-0 w-screen bg-background",c)}),H("div",{className:l("container relative bg-background py-1",c,c==="light"&&"py-12"),children:e.children})]})}if(r(e.index,e.allBlocks)!==n(e.index,e.allBlocks)){let c=n(e.index,e.allBlocks);return Yt("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[H(a,{index:e.index,allBlocks:e.allBlocks}),H("div",{className:l("absolute inset-0 w-screen bg-background",c)}),H("div",{className:l("container relative bg-background min-h-[22em] content-center py-1",c,c==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return Yt("div",{className:l("container h-full relative","dark"),children:[H("div",{className:l("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let i=e.block?.theme;if(i.settings.background==="image"){let c={imagePosition:i.settings.imagePosition||"left",overlay:i.settings.overlay!==void 0?i.settings.overlay:!0};return Yt("div",{className:l("absolute inset-0 w-full h-full bg-background",i.settings.theme||"dark"),children:[H(Bd,{src:i.settings?.image?.url||"/placeholder.svg",alt:i.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),i.settings.overlay&&H("div",{className:"absolute inset-0",style:{background:c.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return H("div",{className:l("absolute inset-0 w-screen h-full bg-background",i.settings.theme||"dark")})},Ad=({position:e})=>H("div",{className:"w-full aspect-[1920/360] z-20 relative -top-[2px] bg-white",children:H("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:l("w-full block overflow-hidden"),children:H("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),Id=({position:e})=>H("div",{className:"w-full relative z-20 aspect-[1920/332] overflow-hidden ",children:Yt("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:l("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[H("defs",{children:Yt("mask",{id:"mask",children:[H("rect",{width:"100%",height:"100%",fill:"white"}),H("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),H("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});import $g from"clsx";import{useRouter as Hg}from"next/navigation";import{useCallback as zd,useEffect as Fg,useRef as Lr}from"react";function jg({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=Hg(),r=Lr(null),s=Lr(null),n=Lr(0),i=Lr(!1),c=Lr(0),m=zd(p=>{if(p.target){let u=p.target,g=+new Date,b=u?.closest("a");c.current=p.button,b?i.current=!0:(i.current=!1,n.current=g)}},[o,r,s,n]),d=zd(p=>{if(s.current?.href){let g=+new Date-n.current;if(s.current?.href&&g<=250&&!i.current&&c.current===0&&!p.ctrlKey)if(e){let b=t?"_blank":"_self";window.open(s.current.href,b)}else o.push(s.current.href,{scroll:a})}},[o,r,s,n]);return Fg(()=>{let p=r.current;return p&&(p.addEventListener("mousedown",m),p.addEventListener("mouseup",d)),()=>{p&&p&&(p?.removeEventListener("mousedown",m),p?.removeEventListener("mouseup",d))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var Ed=jg;import Og from"next/link";import{Fragment as Hd}from"react";import{jsx as la,jsxs as Ss}from"react/jsx-runtime";var Rs=e=>{let{card:t,link:a}=Ed({}),{className:o,doc:r,relationTo:s,showCategories:n,title:i}=e,{slug:c,categories:m,meta:d,title:p}=r||{},{description:u,image:g}=d||{},b=m&&Array.isArray(m)&&m.length>0,f=i||p,h=u?.replace(/\s/g," "),T=`/${s}/${c}`;return Ss("article",{className:l("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[Ss("div",{className:"relative w-full ",children:[!g&&la("div",{className:"",children:"No image"}),g&&typeof g!="string"&&la(sa,{resource:g,size:"33vw"})]}),Ss("div",{className:"p-4",children:[n&&b&&la("div",{className:"uppercase text-sm mb-4",children:n&&b&&la("div",{children:m?.map((P,y)=>{if(typeof P=="object"){let{title:N}=P,x=N||"Untitled category",C=y===m.length-1;return Ss(Hd,{children:[x,!C&&la(Hd,{children:", \xA0"})]},y)}return null})})}),f&&la("div",{className:"prose",children:la("h3",{children:la(Og,{className:"not-prose",href:T,ref:a.ref,children:f})})}),u&&la("div",{className:"mt-2",children:u&&la("p",{children:h})})]})]})};import{jsx as qi,jsxs as _g}from"react/jsx-runtime";var sk=e=>{let{className:t,docs:a,introContent:o}=e;return _g("div",{className:$g("container",t),children:[o&&qi(W,{content:o,enableGutter:!1}),qi("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:a?.map((r,s)=>typeof r=="string"?null:qi(Rs,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};import{AnimatePresence as _d,motion as Od}from"framer-motion";import"pagedjs";import{jsx as Br}from"react/jsx-runtime";var ck=e=>{let{posts:t}=e;return Br("div",{className:l("container"),children:Br("div",{children:Br("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-x-4 lg:gap-y-8 lg:gap-x-8 xl:gap-x-8",children:t?.map((a,o)=>typeof a=="object"&&a!==null?Br("div",{className:"col-span-4",children:Br(Rs,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};import Gg from"clsx";import Vg from"next/image";import{jsx as Ug}from"react/jsx-runtime";var fk=e=>{let{loading:t,priority:a,className:o}=e;return Ug(Vg,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:Gg("max-w-[9.375rem] w-full h-[34px]",o),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};import{jsxs as Xg}from"react/jsx-runtime";var Wg={plural:"Docs",singular:"Doc"},Kg={posts:{plural:"Posts",singular:"Post"}},hk=e=>{let{className:t,collection:a,collectionLabels:o,currentPage:r,limit:s,totalDocs:n}=e,i=(r?r-1:1)*(s||1)+1;n&&i>n&&(i=0);let c=(r||1)*(s||1);n&&c>n&&(c=n);let{plural:m,singular:d}=o||Kg[a||""]||Wg||{};return Xg("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof n>"u"||n===0)&&"Search produced no results.",typeof n<"u"&&n>0&&`Showing ${i}${i>0?` - ${c}`:""} of ${n} ${n>1?m:d}`]})};import{ChevronLeft as Yg,ChevronRight as qg,MoreHorizontal as Qg}from"lucide-react";import*as Qi from"react";import{jsx as da,jsxs as an}from"react/jsx-runtime";var Ji=({className:e,...t})=>da("nav",{"aria-label":"pagination",className:l("mx-auto flex w-full justify-center",e),role:"navigation",...t});Ji.displayName="Pagination";var Zi=Qi.forwardRef(({className:e,...t},a)=>da("ul",{className:l("flex flex-row items-center gap-1",e),ref:a,...t}));Zi.displayName="PaginationContent";var Pa=Qi.forwardRef(({className:e,...t},a)=>da("li",{className:l("",e),ref:a,...t}));Pa.displayName="PaginationItem";var wo=({className:e,isActive:t,size:a="icon",...o})=>da("button",{"aria-current":t?"page":void 0,className:l(ro({size:a,variant:t?"outline":"ghost"}),e),...o});wo.displayName="PaginationLink";var en=({className:e,...t})=>an(wo,{"aria-label":"Go to previous page",className:l("gap-1 pl-2.5",e),size:"default",...t,children:[da(Yg,{className:"h-4 w-4"}),da("span",{children:"Previous"})]});en.displayName="PaginationPrevious";var tn=({className:e,...t})=>an(wo,{"aria-label":"Go to next page",className:l("gap-1 pr-2.5",e),size:"default",...t,children:[da("span",{children:"Next"}),da(qg,{className:"h-4 w-4"})]});tn.displayName="PaginationNext";var Ts=({className:e,...t})=>an("span",{"aria-hidden":!0,className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[da(Qg,{className:"h-4 w-4"}),da("span",{className:"sr-only",children:"More pages"})]});Ts.displayName="PaginationEllipsis";import{useRouter as Jg}from"next/navigation";import{jsx as Ke,jsxs as Zg}from"react/jsx-runtime";var Dk=e=>{let t=Jg(),{className:a,page:o,totalPages:r}=e,s=o<r,n=o>1,i=o-1>1,c=o+1<r;return Ke("div",{className:l("my-12",a),children:Ke(Ji,{children:Zg(Zi,{children:[Ke(Pa,{children:Ke(en,{disabled:!n,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),i&&Ke(Pa,{children:Ke(Ts,{})}),n&&Ke(Pa,{children:Ke(wo,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),Ke(Pa,{children:Ke(wo,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&Ke(Pa,{children:Ke(wo,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),c&&Ke(Pa,{children:Ke(Ts,{})}),Ke(Pa,{children:Ke(tn,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};import Fd from"next/image";import{jsx as pt,jsxs as Ds}from"react/jsx-runtime";var jd=({logoImage:e})=>Ds("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
16
- dark bg-background text-primary`,children:[Ds("div",{className:"flex px-6 items-center space-x-2",children:[e&&pt("img",{src:e.src,alt:"Cortex Reply Logo",className:"h-8"}),pt("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),pt("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),zr=({title:e})=>pt("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:pt("div",{className:"container",children:pt("span",{className:"container text-4xl px-6",children:e})})}),Er=e=>{let{title:t,hero:a,logoImage:o}=e;return Ds("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[pt("div",{className:"absolute inset-0",children:pt(Fd,{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"})}),pt("div",{className:"absolute left-16 z-50 top-4 flex flex-col items-start gap-4",children:o&&pt("div",{className:"h-24",children:pt(Fd,{src:o.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),pt("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),Ds("div",{className:"relative pl-24 z-10 max-w-3xl",children:[pt("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:t}),a.richText&&pt(W,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};import{Fragment as rf,jsx as et,jsxs as $d}from"react/jsx-runtime";var on=e=>{let[t,a]=ef(0),{blocks:o,hero:r,logoImage:s}=e,n=o&&Array.isArray(o)&&o.length>0,c=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o],m=f=>{a(f)},d=()=>{a(f=>(f+1)%c.length)},p=()=>{a(f=>(f-1+c.length)%c.length)},g=af(((f,h)=>{let T;return(...P)=>{clearTimeout(T),T=setTimeout(()=>f(...P),h)}})(f=>{f.deltaY>0?d():p()},300),[]),b=f=>{f.key==="ArrowDown"?d():f.key==="ArrowUp"&&p()};return tf(()=>(window.addEventListener("wheel",g),window.addEventListener("keydown",b),()=>{window.removeEventListener("wheel",g),window.removeEventListener("keydown",b)}),[]),$d("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[et("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-900",children:n&&c.map((f,h)=>et("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${t===h?"bg-accent":"bg-gray-600"}`,onClick:()=>m(h),children:et("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:f.blockName})},f.id))}),et(_d,{children:c.map((f,h)=>et("div",{id:`slide-${h}`,className:"print-section",children:et("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
17
- ${h===t?"opacity-100":"opacity-0"}
18
- w-full h-full bg-cover bg-center`,children:h===0?et(Er,{hero:r,title:e.title,logoImage:s}):$d(rf,{children:[f.blockName&&et(zr,{title:f.blockName}),et(xo,{blocks:[f],fill:!0}),et(jd,{logoImage:s})]})})},h))}),et("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:d,children:et(of,{})})]})},of=()=>et(_d,{children:et(Od.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:l("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-accent"),children:et(Od.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:l("w-[12px] h-[12px] rounded-full","bg-accent")})})});import sf from"next/link";import nf from"next/image";import{jsx as Hr,jsxs as rn}from"react/jsx-runtime";function lf({blogs:e,width:t=3}){return Hr("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:Hr("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>Hr(sf,{href:`/insights/${a.slug}`,className:"group rounded-2xl overflow-hidden border bg-card text-card-foreground shadow hover:shadow-lg transition-shadow",children:rn("div",{className:"relative size-full",children:[Hr(nf,{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"}),rn("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-to-t from-card to-transparrent flex flex-col justify-end",children:[rn("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(r=>`${r.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),Hr("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))})})}import{jsx as Xe,jsxs as ut}from"react/jsx-runtime";function df({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:n,companiesCount:i,dealsClosed:c,leadsGenerated:m}){return Xe("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:ut("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[ut("div",{className:"max-w-4xl",children:[Xe("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),Xe("h1",{className:"mt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),Xe("p",{className:"mt-6 text-balance text-xl/8 text-gray-700",children:a})]}),ut("section",{className:"mt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-x-8 lg:gap-y-16",children:[ut("div",{className:"lg:pr-8",children:[Xe("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),Xe("p",{className:"mt-6 text-base/7 text-gray-600",children:r})]}),Xe("div",{className:"pt-16 lg:row-span-2 lg:-mr-16 xl:mr-auto",children:Xe("div",{className:"-mx-8 grid grid-cols-2 gap-4 sm:-mx-16 sm:grid-cols-4 lg:mx-0 lg:grid-cols-2 lg:gap-4 xl:gap-8",children:s.map((d,p)=>Xe("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:Xe("img",{alt:"",src:d,className:"block size-full object-cover"})},p))})}),ut("div",{className:"max-lg:mt-16 lg:col-span-1",children:[Xe("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),Xe("hr",{className:"mt-6 border-t border-gray-200"}),ut("dl",{className:"mt-6 grid grid-cols-1 gap-x-8 gap-y-4 sm:grid-cols-2",children:[ut("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[Xe("dt",{className:"text-sm/6 text-gray-600",children:"Raised"}),ut("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",n]})]}),ut("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[Xe("dt",{className:"text-sm/6 text-gray-600",children:"Companies"}),ut("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[i,"K"]})]}),ut("div",{className:"flex flex-col gap-y-2 max-sm:border-b max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[Xe("dt",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),ut("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[c,"M"]})]}),ut("div",{className:"flex flex-col gap-y-2",children:[Xe("dt",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),ut("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"M"]})]})]})]})]})]})})}import{useEffect as Ms,useRef as er,useState as cf,useCallback as Gd}from"react";import{Previewer as As}from"pagedjs";import{Fragment as Ud,jsx as Ie,jsxs as No}from"react/jsx-runtime";function mf(e){var t=document.createElement("div");t.style.display="block",t.style.height=e,document.body.appendChild(t);var a=parseFloat(window.getComputedStyle(t,null).height);return t.parentNode&&t.parentNode.removeChild(t),Math.floor(a)}var Zo=e=>{let t=document.createElement("div");t.style.height="1mm",document.body.appendChild(t);let a=parseFloat(window.getComputedStyle(t).height);return document.body.removeChild(t),Math.floor(e/a)},Vd=({page:e,layout:t="portrait",logoImage:a})=>t==="flow"?Ie(pf,{page:e,layout:t,logoImage:a}):Ie(uf,{page:e,layout:t,logoImage:a}),pf=({page:e,layout:t="portrait",logoImage:a})=>{let{contentWithIds:o}=fr(e),r=er(null),s=er(null),n=er(new As),i={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};Ms(()=>{let d=document.getElementById("printable-content");if(d){let p=document.createElement("style");return p.textContent=`@page { size: ${Zo(d.offsetWidth)}mm ${Zo(d.offsetHeight)}mm ; margin: 0mm; width: ${Zo(d.offsetWidth)}mm }; .container : { max-width: ${Zo(d.offsetWidth)}mm; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(p),()=>{document.head.removeChild(p)}}},[t]);let c=Gd(()=>{if(!s.current)return;s.current&&(s.current.innerHTML="");let d=document.getElementById("printable-content");d&&n.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${Zo(d.offsetWidth)}mm ${Zo(d.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],s.current).catch(p=>console.error("Paged.js error:",p))},[t]);Ms(()=>{n.current=new As},[c,t]);let m=[i,...o];return No("div",{children:[Ie("div",{className:"w-[1123px] print:w-[1123px]",children:No("div",{id:"printable-content",ref:r,children:[m.map((d,p)=>Ie(Ud,{children:p===0?Ie("section",{className:"title-page w-full h-full",children:Ie(Er,{hero:e.hero,title:e.title})},p):No("section",{className:"normal-page overflow-hidden",children:[d.blockName&&Ie(zr,{title:d.blockName}),Ie(xo,{blocks:[d],fill:!0})]},p)})),Ie("section",{className:"normal-page",children:No("div",{className:`w-full py-2 px-8 flex justify-between items-center
19
- dark bg-background text-primary`,children:[No("div",{className:"flex px-6 items-center space-x-2",children:[a&&Ie("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),Ie("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),Ie("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),Ie("div",{ref:s,className:"preview-container"})]})},uf=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=fr(e),o=er(null),r=er(null),s=er(new As),[n,i]=cf(0),m=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=Gd(()=>{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 Ms(()=>{s.current=new As,d()},[d,t]),Ms(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),No("div",{className:"pagedjs-container",children:[Ie("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:m.map((p,u)=>Ie(Ud,{children:u===0?Ie("section",{className:"pagedjs-section title-page w-full h-full",children:Ie(Er,{hero:e.hero,title:e.title})},u):No("section",{className:l("pagedjs-section normal-page h-[699px]",`h-[${mf("185mm")}px]`,p.theme?.settings?.theme==="dark"?"dark":"light"),children:[p.blockName&&Ie(zr,{title:p.blockName}),Ie(xo,{blocks:[p],fill:!0})]},u)}))}),Ie("div",{ref:o,className:"preview-container"})]})};import{ChevronRight as gf}from"lucide-react";import Wd from"clsx";import{Fragment as bf,jsx as L,jsxs as ca}from"react/jsx-runtime";function x5({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:n,loading:i=!1,LinkComponent:c,...m}){let p=c?u=>L(c,{...u}):n?({href:u,children:g,...b})=>L("button",{onClick:()=>n&&n(u),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...b,children:g}):u=>L("a",{...u});return ca(jo,{...m,variant:"inset",children:[L(Oo,{children:L(xt,{children:L(Qe,{children:i?ca("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[L(Te,{className:"bg-gray-200 my-2 w-full h-7"}),L(Te,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):ca("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[L("span",{className:"truncate font-semibold",children:a}),o&&L("span",{className:"truncate text-sm",children:o})]})})})}),i&&ca(so,{children:[L(Te,{className:"bg-gray-200 w-3/4 h-5"}),L(Te,{className:"bg-gray-200 w-3/4 h-5"}),L(Te,{className:"bg-gray-200 w-3/4 h-5"}),L(Te,{className:"bg-gray-200 w-3/4 h-5"}),L(Te,{className:"bg-gray-200 w-3/4 h-5"}),L(Te,{className:"bg-gray-200 w-3/4 h-5"}),L(Te,{className:"bg-gray-200 w-3/4 h-5"}),L(Te,{className:"bg-gray-200 w-3/4 h-5"}),L(Te,{className:"bg-gray-200 w-3/4 h-5"}),L(Te,{className:"bg-gray-200 w-3/4 h-5"})]}),ca(so,{children:[e&&!i&&e.map((u,g)=>L(ff,{subNav:u,pathName:r,Link:p},g)),L(_t,{className:"mt-auto",children:L(ea,{children:L(xt,{children:t&&!i&&t.map(u=>L(Qe,{children:L(Gt,{asChild:!0,size:"sm",children:ca(p,{href:u.url||"",children:[u.icon&&L(u.icon,{}),L("span",{children:u.label})]})})},u.label))})})})]}),L($o,{})]})}function ff({subNav:e,pathName:t,Link:a}){let o=e,r=!1;return o.links&&o.links.map(s=>{s.url===t&&(r=!0)}),L(Ha,{defaultOpen:!0,className:"group/collapsible",children:L(_t,{className:"py-0",children:L(xt,{children:L(Ha,{asChild:!0,defaultOpen:o.isActive,children:ca(Qe,{children:[L(Gt,{asChild:!0,tooltip:o.label,className:Wd(r&&"font-bold text-accent"),children:ca(a,{href:o.url,children:[o.icon&&L(o.icon,{}),L("span",{children:o.label})]})}),o.links?.length?ca(bf,{children:[L(ao,{asChild:!0,children:ca(qr,{className:"data-[state=open]:rotate-90",children:[L(gf,{}),L("span",{className:"sr-only",children:"Toggle"})]})}),L(oo,{children:L(io,{children:o.links?.map(s=>L(no,{children:L(lo,{asChild:!0,className:Wd(s.url===t&&"font-bold text-accent"),children:L(a,{href:s.url,children:L("span",{children:s.label})})})},s.label))})})]}):null]})},o.label)})})})}import{PencilLine as vf,ChevronDown as sn,FilePlus as hf,Edit as yf,Printer as xf}from"lucide-react";import wf from"clsx";import{Fragment as Kd,jsx as D,jsxs as Ne}from"react/jsx-runtime";var Nf=()=>D(Ze,{iconName:"github",size:"10x"});function D5({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:n,onPrintDocument:i,onGithubClick:c,onNavClick:m,LinkComponent:d,...p}){let b=d?f=>D(d,{...f}):m?({item:f,children:h,...T})=>D("button",{onClick:()=>m&&m(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...T,children:h}):f=>D("a",{href:f.href,...f});return Ne(jo,{side:"right",variant:"inset",...p,children:[Ne(Oo,{className:"border-b border-sidebar-border",children:[Ne(xt,{className:"flex-row space-x-1",children:[D(Qe,{children:Ne(Gt,{onClick:s,children:[D(hf,{})," ",D("span",{children:"Add Document"})]})}),c&&D(Qe,{children:D(Gt,{onClick:c,tooltip:"Open in GitHub",children:D(Nf,{})})})]}),Ne(xt,{className:"flex-row space-x-1",children:[D(Qe,{className:"w-5/12",children:Ne(Gt,{onClick:()=>n(),variant:r?"outline":"default",className:wf(r&&"text-accent"),children:[D(yf,{})," ",D("span",{children:"Edit"})]})}),D(Qe,{className:"w-5/12",children:Ne(Gt,{onClick:i,children:[D(xf,{})," ",D("span",{children:"Print"})]})})]})]}),a&&Ne(Kd,{children:[D(Ha,{defaultOpen:!0,className:"group/collapsible",children:Ne(_t,{children:[D(ja,{asChild:!0,children:Ne(ao,{children:["Editor Controls",D(sn,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),D(ea,{children:D(oo,{children:a})})]})}),D(Yr,{className:"mx-0"})]}),Ne(so,{className:"overflow-auto",children:[o&&Ne(Kd,{children:[Ne(_t,{children:[D(ja,{children:"Related Content"}),D(ea,{children:D(xt,{children:Array.from({length:3}).map((f,h)=>D(Qe,{children:D(Te,{className:"bg-gray-200 w-full h-10"})},h))})})]}),Ne(_t,{children:[D(ja,{children:"Table of Contents"}),D(ea,{children:D(xt,{children:Array.from({length:3}).map((f,h)=>D(Qe,{children:D(Te,{className:"bg-gray-200 w-full h-10"})},h))})})]})]}),e&&!o&&Object.keys(e).length>0&&D(Ha,{defaultOpen:!0,className:"group/collapsible",children:Ne(_t,{children:[D(ja,{asChild:!0,children:Ne(ao,{children:["Related Content",D(sn,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),D(ea,{children:D(oo,{children:D(xt,{children:e&&Object.keys(e).map(f=>Ne(Qe,{children:[Ne("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",f.charAt(0).toUpperCase()+f.slice(1)]}),f&&e[f]&&D(io,{children:e[f].map(h=>D(no,{children:D(lo,{asChild:!0,isActive:!1,size:"sm",children:Ne(b,{href:h.url,item:h,className:"flex justify-between items-center w-full text-xs",children:[D("span",{children:h.label}),h.type==="note"&&D(vf,{className:"ml-2 text-gray-400 !important",size:16}),h.type==="draft"&&D(Ze,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},h.label))})]},f))})})})]})}),t&&!o&&D(Ha,{defaultOpen:!0,className:"group/collapsible",children:Ne(_t,{children:[D(ja,{asChild:!0,children:Ne(ao,{children:["Table of Contents",D(sn,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),D(ea,{children:D(oo,{children:D(xt,{children:t.map(f=>Ne(Qe,{children:[D(Gt,{asChild:!0,children:D("a",{href:`#${f.url}`,className:"text-xs",children:f.title})}),f.items?.length?D(io,{children:f.items.map(h=>D(no,{children:D(lo,{asChild:!0,isActive:h.isActive,size:"sm",children:D("a",{href:`#${h.url}`,className:"flex justify-between items-center w-full text-xs",children:D("span",{children:h.title})})})},h.title))}):null]},f.title))})})})]})})]}),D($o,{})]})}import{Users as Cf}from"lucide-react";import kf from"next/image";import{jsx as Ka,jsxs as Is}from"react/jsx-runtime";function z5({title:e,members:t}){return Ka(Q,{className:"mb-6",children:Is("div",{className:"p-6",children:[Is("div",{className:"flex items-center mb-4",children:[Ka(Cf,{className:"w-6 h-6 text-accent mr-2"}),Ka("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),Ka("div",{className:"space-y-4",children:t.map((a,o)=>Is("div",{className:"flex items-center space-x-4",children:[Ka("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&Ka(kf,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),Is("div",{children:[Ka("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&Ka("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}import Pf from"next/link";import{ExternalLink as Sf}from"lucide-react";import{jsx as Fr,jsxs as Xd}from"react/jsx-runtime";var $5=({links:e,title:t="Related Content"})=>Xd(Q,{children:[Fr(pe,{children:Fr(ue,{className:"text-accent",children:t})}),Fr(Z,{children:Fr("nav",{className:"flex flex-col space-y-2",children:e.map((a,o)=>Xd(Pf,{href:a.href,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.name,a.href.startsWith("http")&&Fr(Sf,{className:"ml-1 h-3 w-3"})]},o))})})]});import{useSearchParams as Rf,usePathname as Tf,useRouter as Df}from"next/navigation";import{FaArrowRight as Mf,FaArrowLeft as Af}from"react-icons/fa6";import{useState as If}from"react";import{jsx as Sa,jsxs as Lf}from"react/jsx-runtime";var nn=l("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function Yd({pages:e}){let t=Rf(),a=Tf(),{replace:o}=Df(),{totalPages:r,page:s}=e,[n,i]=If({start:s>3?s-3:1,end:s+2}),c=p=>{p==="left"&&n.start>1?i(u=>({start:u.start-1,end:u.end-1})):p==="right"&&n.end<r&&i(u=>({start:u.start+1,end:u.end+1}))};function m(p){let u=new URLSearchParams(t);p?u.set("page",p):u.delete("page"),o(`${a}?${u.toString()}`)}if(r<=1)return null;let d=[];for(let p=n.start;p<=n.end;p++)d.push(p);return Sa("div",{className:"mt-12",children:Lf("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[n.start>1&&Sa("li",{children:Sa("button",{className:l(nn,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:Sa(Af,{})})}),d.map((p,u)=>Sa("li",{children:Sa("a",{className:l(nn,p===s?"border-accent bg-accent text-accent-foreground":"border-accent"),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:g=>{g.preventDefault(),m(p.toString())},children:p})},u)),n.end<r&&Sa("li",{children:Sa("button",{className:l(nn,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:Sa(Mf,{})})})]})})}import{useSearchParams as Bf,usePathname as zf,useRouter as Ef}from"next/navigation";import{ExternalLink as Hf}from"lucide-react";import{jsx as tr,jsxs as qd}from"react/jsx-runtime";var eP=l("transition-colors duration-400 hover:text-primary ease-in-out");function Qd({title:e,links:t}){let a=Bf(),o=zf(),{replace:r}=Ef();function s(n){let i=new URLSearchParams(a);n?i.set("category",n):i.delete("category"),r(`${o}?${i.toString()}`)}return qd(Q,{children:[tr(pe,{children:tr(ue,{className:"text-accent",children:e&&e})}),tr(Z,{children:t&&t.length>0&&tr("nav",{"aria-label":"footer links navigation",children:tr("ul",{className:"grid gap-2.5 ",children:t.map((n,i)=>qd("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(n.href)},children:[n.label,tr(Hf,{className:"ml-1 h-3 w-3"})]},i))})})})]})}import{useState as Ff}from"react";import{useSearchParams as jf,usePathname as Of,useRouter as $f}from"next/navigation";import{jsx as Jd}from"react/jsx-runtime";function Zd({types:e}){let[t,a]=Ff(e&&e[0].href),o=jf(),r=Of(),{replace:s}=$f();function n(i){let c=new URLSearchParams(o);i?c.set("type",i):c.delete("type"),a(i),s(`${r}?${c.toString()}`)}return Jd("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-x-auto pb-4 mb-6",children:e&&e.map((i,c)=>Jd(k,{variant:i.href===t?"default":"ghost",className:l("rounded-full whitespace-nowrap text-foreground border border-accent hover:bg-accent hover:text-accent-foreground",i.href===t&&"bg-accent text-accent-foreground"),onClick:()=>n(i.href),children:i.label},c))})}import _f from"next/image";import{jsx as Se,jsxs as Co}from"react/jsx-runtime";var ec=({links:e,media:t,children:a,richText:o})=>Se("div",{children:Co("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[Co("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[a||o&&Se(W,{className:"max-w-none p-0 mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&Se("ul",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>Se("li",{children:Se(ra,{...r})},s))})]}),Co("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&Se(sa,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&Se("div",{children:Se(_f,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),Se("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),Se(Gf,{})]})}),Gf=()=>Se("div",{className:"w-full h-[1240px] z-10",children:Co("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:[Se("defs",{children:Co("mask",{id:"mask",children:[Se("rect",{width:"1920",height:"332",fill:"white"}),Se("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),Se("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),Se("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});import tc from"next/image";import{jsx as ko,jsxs as Uf}from"react/jsx-runtime";var Vf=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return ko(tc,{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 ko("div",{children:ko(tc,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},ac=({links:e,media:t,children:a,richText:o})=>Uf("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&ko(Vf,{media:t}),ko("div",{className:"mx-0 min-w-full relative z-9",children:ko("div",{className:"container text-brand-one-foreground",children:a||o&&ko(W,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});import{jsx as ln}from"react/jsx-runtime";var oc=({children:e,richText:t})=>ln("div",{className:"min-w-full py-10 bg-muted mt-24",children:ln("div",{className:"container",children:e||t&&ln(W,{content:t,enableGutter:!1})})});import Wf from"react";import Kf from"next/image";var rc=e=>{let a=new Date;e&&(a=new Date(e));let o=a.getMonth(),r=a.getDate(),s=o+1<10?`0${o+1}`:o+1,n=r<10?`0${r}`:r,i=a.getFullYear();return`${n}/${s}/${i}`};var 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}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(o)} ${r}`};import{jsx as ma,jsxs as Ra}from"react/jsx-runtime";var TP=({post:e})=>{let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return Ra("div",{className:"relative grid pt-24",children:[ma("div",{className:"relative z-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground pt-24 p-6 lg:p-12",children:Ra("div",{className:"container mx-auto",children:[ma("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),Ra("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&Ra("div",{className:"flex flex-col gap-1",children:[Ra("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),ma("p",{children:o.map((n,i)=>Ra(Wf.Fragment,{children:[n.name,i<o.length-2&&", ",i===o.length-2&&(o.length>2?", and ":" and ")]},n.id))})]}),r&&Ra("div",{className:"flex flex-col gap-1",children:[ma("p",{className:"text-sm",children:"Date Published"}),ma("time",{dateTime:r,children:rc(r)})]}),t&&t.length>0&&Ra("div",{className:"flex flex-col gap-1",children:[ma("p",{className:"text-sm font-medium",children:"Categories"}),ma("div",{className:"flex flex-wrap gap-2",children:t.map((n,i)=>typeof n=="object"&&n!==null&&ma(Je,{className:"px-3 py-1 mx-1",children:n.title||"Untitled category"},n.id||i))})]})]})]})}),Ra("div",{className:"absolute inset-0 w-full h-full",children:[ma(Kf,{className:"object-cover",alt:`Cover image for ${s}`,src:a?.image?.url||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),ma("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"})]})]})};import{ChevronRightIcon as Qf,HomeIcon as Jf}from"@heroicons/react/20/solid";import sc from"next/image";import{jsx as Xf}from"react/jsx-runtime";function Rt({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=l("container",t&&"full-width",a&&"no-padding",o);return Xf("div",{className:r,children:e})}import{ThemeProvider as Yf}from"next-themes";import{jsx as qf}from"react/jsx-runtime";function zP({children:e,...t}){return qf(Yf,{...t,children:e})}import{jsx as oe,jsxs as Ta}from"react/jsx-runtime";var zt=({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 oe("div",{className:"w-full h-[1240px] z-20",children:Ta("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:l(t,"absolute -bottom-[2px] flex"),children:[oe("defs",{children:Ta("mask",{id:"mask",children:[oe("rect",{width:"1920",height:"332",fill:"white"}),oe("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),oe("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),oe("rect",{y:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return Ta("div",{className:"w-full z-20 aspect-[1920/332] overflow-hidden ",children:[Ta("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:l(t,"absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end",transform:"scale(-1, 1)"},children:[oe("defs",{children:Ta("mask",{id:"mask",children:[oe("rect",{width:"100%",height:"100%",fill:"white"}),oe("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),oe("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]}),oe("div",{className:"absolute -bottom-[5px] border-none left-0 w-full h-[6px] z-10 bg-white"})]});if(e==="dark-top")return oe("div",{className:"w-full aspect-[1920/332] z-20 content-end block overflow-hidden",children:Ta("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:l(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[oe("defs",{children:Ta("mask",{id:"mask",children:[oe("rect",{width:"100%",height:"100%",fill:"white"}),oe("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),oe("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-bottom")return oe("div",{className:"w-full aspect-[1920/332] z-20 content-start block overflow-hidden bg-white",children:oe("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:l(t,"w-full block overflow-hidden"),children:oe("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="light-bottom")return oe("div",{className:"w-full aspect-[1920/332] z-20 content-end block overflow-hidden",children:oe("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:l(t,"w-full block overflow-hidden"),transform:a[3],children:oe("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 oe("div",{className:"w-full aspect-[1920/332] z-20 relative -bottom-[1px]",children:oe("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:l(t,"w-full block overflow-hidden"),children:oe("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},jP=({className:e})=>Ta("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:l(e,"absolute w-full h-full"),children:[oe("defs",{children:Ta("mask",{id:"mask",children:[oe("rect",{width:"100%",height:"100%",fill:"black"}),oe("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"})]})}),oe("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});import{jsx as Xa,jsxs as ic}from"react/jsx-runtime";var nc=({title:e,image:t})=>Xa("div",{children:ic("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[Xa("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-start",children:Xa("h1",{className:"text-5xl md:text-6xl",children:e})}),ic("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&Xa(sc,{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"&&Xa("div",{children:Xa(sc,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),Xa("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),Xa(zt,{className:"text-black z-10",position:"header"})]})});import{Fragment as e0,jsx as qt,jsxs as dn}from"react/jsx-runtime";var Zf={highImpact:ec,lowImpact:oc,mediumImpact:ac,sectionHero:nc},QP=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Zf[t];return a?qt(a,{...e}):null};function JP({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return qt("nav",{"aria-label":"Breadcrumb",className:"flex",children:dn("ol",{role:"list",className:"flex items-center space-x-4",children:[qt("li",{children:qt("div",{children:dn("a",{href:"/",className:"text-foreground hover:text-accent",children:[qt(Jf,{"aria-hidden":"true",className:"size-5 shrink-0"}),qt("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>qt("li",{children:dn("div",{className:"flex items-center",children:[qt(Qf,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?qt("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):qt("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return qt(e0,{})}import{useState as Bs,useEffect as i0}from"react";import{Dialog as n0,DialogPanel as l0,Disclosure as d0,DisclosureButton as dc,DisclosurePanel as c0,PopoverGroup as m0}from"@headlessui/react";import{Bars3Icon as p0,XMarkIcon as u0}from"@heroicons/react/24/outline";import{SunIcon as cc,MoonIcon as g0}from"@heroicons/react/20/solid";import{Popover as t0,PopoverButton as a0,PopoverPanel as o0}from"@headlessui/react";import{ChevronDownIcon as r0}from"@heroicons/react/20/solid";import{jsx as Ye,jsxs as Ya}from"react/jsx-runtime";var s0=({name:e,items:t,actions:a=[],href:o})=>!t&&o?Ye("a",{href:o,className:"flex items-center gap-x-1 text-sm text-foreground group",children:Ya("span",{className:"relative",children:[e,Ye("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"})]})}):Ya(t0,{children:[Ya(a0,{className:"flex items-center gap-x-1 text-sm/6 text-foreground outline-none group",children:[Ya("span",{className:"relative",children:[e,Ye("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"})]}),Ye(r0,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),Ya(o0,{transition:!0,className:"absolute inset-x-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[Ye("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 z-50",children:t&&t.map(r=>Ya("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[Ye("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&&Ye(lc,{icon:r.icon,size:"4x"})}),Ya("a",{href:r.href,className:"mt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,Ye("span",{className:"absolute inset-0"})]}),Ye("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&Ye("div",{className:"bg-gray-50",children:Ye("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:Ye("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:a.map(r=>Ya("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-x-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&Ye(lc,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),lc=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return Ye(Ze,{...e,size:a});if("src"in e)return Ye("div",{className:l(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&Ye("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},ar=s0;import{jsx as ce,jsxs as pa}from"react/jsx-runtime";var zs=["light","dark","green"];function fS({title:e,logo:t,menuItems:a}){let[o,r]=Bs(!1),[s,n]=Bs(!1),[i,c]=Bs("light"),m=t?.split(".")[0],d=t?.split(".")[1],[p,u]=Bs(`${m}.${d}`),g=f=>{zs.includes(f)?u(f==="light"?`${m}.${d}`:`${m}-${f}.${d}`):u(`${m}.${d}`)};i0(()=>{let f=localStorage.getItem("theme")||"light";c(f),document.documentElement.setAttribute("class",f),g(f)},[]);let b=()=>{let f=zs[(zs.indexOf(i)+1)%zs.length];c(f),document.documentElement.setAttribute("class",f),localStorage.setItem("theme",f),g(f)};return pa("header",{className:"relative isolate z-10 bg-background h-14",children:[pa("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[ce("div",{className:"flex lg:flex-1",children:pa("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[ce("span",{className:"sr-only",children:e}),ce("img",{alt:e,src:p,className:"h-9 w-auto"})]})}),ce("div",{className:"flex lg:hidden",children:pa("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:[ce("span",{className:"sr-only",children:"Open main menu"}),ce(p0,{"aria-hidden":"true",className:"h-6 w-6"})]})}),ce(m0,{className:"hidden lg:flex lg:gap-x-12",children:a.map(f=>ce(ar,{...f},f.name))}),ce("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:ce("button",{onClick:b,className:"p-2 text-gray-700 outline-none",children:i==="dark"?ce(cc,{className:"h-6 w-6"}):i==="green"?ce(g0,{className:"h-6 w-6"}):ce(cc,{className:"h-6 w-6"})})})]}),pa(n0,{open:o,onClose:r,className:"lg:hidden",children:[ce("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),pa(l0,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[pa("div",{className:"flex items-center justify-between",children:[pa("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[ce("span",{className:"sr-only",children:"Your Company"}),ce("img",{alt:e,src:t,className:"h-8 w-auto"})]}),pa("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[ce("span",{className:"sr-only",children:"Close menu"}),ce(u0,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),ce("div",{className:"mt-6 flow-root",children:ce("div",{className:"-my-6 divide-y divide-gray-500/10",children:ce("div",{className:"space-y-2 py-6",children:a.map(f=>ce(f0,{...f},f.name))})})})]})]})]})}function f0({name:e,items:t,actions:a,href:o}){return!t&&o?ce("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}):pa(d0,{as:"div",className:"-mx-3",children:[ce(dc,{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}),ce(c0,{className:"mt-2 space-y-2",children:t&&t.map(r=>ce(dc,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}import{jsx as Po,jsxs as cn}from"react/jsx-runtime";function yS({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let n=()=>{let i=document.getElementById("next-section");i&&i.scrollIntoView({behavior:"smooth"})};return Po("div",{children:cn("div",{className:"sticky top-0 h-screen",children:[cn("video",{className:"fixed inset-0 object-cover w-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[Po("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),Po("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-start justify-center text-white px-4",children:Po(Rt,{children:cn("div",{className:"flex flex-col items-start md:w-2/3 mb-10 z-0 md:mb-0",children:[Po("h1",{className:"text-5xl md:text-7xl mb-6",children:r&&r}),Po("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),Po(zt,{className:"text-black z-10",position:"header"})]})})}import{useState as uc,useEffect as gc}from"react";import mc from"next/image";import{jsx as pc,jsxs as b0}from"react/jsx-runtime";function So({logoLight:e,logoDark:t,mobile:a=!1}){return b0(We,{href:"/",className:l(a?"py-1":"py-2"),children:[pc(mc,{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}}),pc(mc,{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}})]})}import{useTheme as v0}from"next-themes";import{Moon as h0,Sun as y0}from"lucide-react";import{PopoverGroup as x0}from"@headlessui/react";import{Fragment as w0,jsx as Da,jsxs as fc}from"react/jsx-runtime";function bc({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[n,i]=uc(!1),[c,m]=uc(""),d=["light","dark"],{theme:p,setTheme:u}=v0();gc(()=>{m(p||"dark")},[p]);let g=()=>{let b=d[(d.indexOf(c)+1)%d.length];m(b),u(b)};return gc(()=>{let b=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),Da(w0,{children:Da("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${n||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:Da("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:fc("div",{className:l("flex items-center justify-between px-9 py-0",!s&&"container"),children:[Da(So,{logoDark:a,logoLight:t}),Da(x0,{className:"hidden lg:flex lg:gap-x-12",children:o&&o.map(b=>Da(ar,{...b},b.name))}),r&&Da("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:g,children:fc("div",{className:"relative",children:[Da(y0,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),Da(h0,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}import{useState as mn,useEffect as vc}from"react";import{Dialog as N0,DialogPanel as C0,Disclosure as k0,DisclosureButton as hc,DisclosurePanel as P0}from"@headlessui/react";import{Bars3Icon as S0,XMarkIcon as R0}from"@heroicons/react/24/outline";import{useTheme as T0}from"next-themes";import{Fragment as M0,jsx as je,jsxs as qa}from"react/jsx-runtime";var pn=["light","dark"];function yc({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=mn(!1),{theme:n,setTheme:i}=T0(),[c,m]=mn(!1),[d,p]=mn("light");vc(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),vc(()=>{p(n||"dark")},[n]);let u=()=>{let g=pn[(pn.indexOf(d)+1)%pn.length];p(g),i(g)};return je(M0,{children:qa("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[je("nav",{className:l("backdrop-blur-sm text-white p-0",c&&"hidden"),children:qa("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[je(So,{logoDark:t,logoLight:e,mobile:!0}),je("div",{className:"flex items-center space-x-4",children:qa("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[je("span",{className:"sr-only",children:"Open main menu"}),je(S0,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),qa(N0,{open:c,onClose:m,className:"lg:hidden",children:[je("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),qa(C0,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-background dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[qa("div",{className:"flex items-stretch justify-between",children:[je(So,{logoDark:t,logoLight:e,mobile:!0}),qa("button",{type:"button",onClick:()=>m(!1),className:"-m-2.5 rounded-md p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[je("span",{className:"sr-only",children:"Close menu"}),je(R0,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),je("div",{className:"mt-6 flow-root",children:je("div",{className:"-my-6 divide-y divide-gray-500/10",children:je("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(g=>je(D0,{...g},g.name))})})})]})]})]})})}function D0({name:e,items:t,actions:a,href:o}){return!t&&o?je("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}):qa(k0,{as:"div",className:"-mx-3",children:[je(hc,{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}),je(P0,{className:"mt-2 space-y-2",children:t&&t.map(r=>je(hc,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}import{FaChevronRight as A0,FaEnvelope as I0,FaPaperPlane as L0,FaPhone as B0}from"react-icons/fa6";import{jsx as Y,jsxs as Qt}from"react/jsx-runtime";var QS=l("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),xc=l("text-brand-green text-md leading-[1.25] md:text-lg mb-5 md:mb-[1.5rem]"),un=l("bg-brand-green rounded-full p-3 mr-4 text-2xl"),gn=l("flex items-center text-white gap-3"),Es=l("transition-colors duration-300 hover:text-accent dark:hover:text-white");function JS({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:n,footerBottom:i}=t,c=void 0;return Qt("footer",{className:l("sticky z-2 flex flex-col dark bg-black overflow-hidden pt-12 prose-base",e),children:[Y("div",{className:"py-16 md:py-20",children:Y("div",{className:"container",children:Qt("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-3",children:[Qt("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[Y(So,{logoDark:o,logoLight:a}),Y("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&Y("nav",{"aria-label":"social links",children:Y("ul",{className:"inline-flex pl-0 min-h-[50px] items-center rounded-5 text-white gap-2",children:r.socialLinks.map((m,d)=>Y("li",{className:"bg-primary rounded-full p-3",children:Y(We,{"aria-label":m.href,className:"text-2xl",href:m.href,openNewTab:!0,children:Y("span",{children:m.icon})})},d))})})]}),Qt("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[Y("h3",{className:xc,children:s.title}),s.links&&s.links.length>0&&Y("nav",{"aria-label":"footer links navigation",children:Y("ul",{className:"grid pl-0 gap-2",children:s.links.map(m=>Qt("li",{className:"flex items-center gap-2.5",children:[Y("span",{className:"flex-none text-sm/[1] text-white",children:Y(A0,{})}),Y(We,{href:m.href,openNewTab:m.openNewTab,className:Es,children:m.label})]},m.label))})})]}),Qt("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[Y("h3",{className:xc,children:n.title}),Qt("ul",{"aria-label":"addresses",className:"grid gap-2 pl-0",children:[Qt("li",{className:gn,children:[Y("span",{className:un,children:Y(L0,{})}),Y("address",{className:"not-italic",children:n.location})]}),Qt("li",{className:gn,children:[Y("span",{className:un,children:Y(I0,{})}),n.mails&&n.mails.length>0&&Y("div",{className:"grid gap-1",children:n.mails.map((m,d)=>Y("a",{href:`mailto:${m}`,className:Es,children:m},d))})]}),n.phoneNumbers&&n.phoneNumbers.length>0&&Qt("li",{className:gn,children:[Y("span",{className:un,children:Y(B0,{})}),Y("div",{className:"grid gap-1",children:n.phoneNumbers.map((m,d)=>Y("a",{href:`tel:${m.split(" ").join("")}`,className:Es,children:m},d))})]})]})]})]})})}),Y("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:Y("div",{className:"container",children:Qt("div",{className:"flex flex-wrap items-center text-xs justify-between gap-x-8 gap-y-4 md:gap-x-10",children:[Y("p",{children:i.copyrightText}),i.links&&i.links.length>0&&Y("nav",{"aria-label":"footer bottom navigation",children:Y("ul",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:i.links.map(m=>Y("li",{children:Y(We,{"aria-label":`Go to page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:Es,children:m.label})},m.label))})})]})})})]})}import{jsx as wc,jsxs as z0}from"react/jsx-runtime";function r4({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:n=!1}){return z0("div",{className:l("fixed top-0 left-0 right-0 z-50",r),children:[wc(bc,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:n,wide:s}),wc(yc,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}import{PopoverGroup as E0}from"@headlessui/react";import{Fragment as H0,jsx as or}from"react/jsx-runtime";function c4({menuItems:e,wide:t=!1,dark:a=!0}){return or(H0,{children:or("menu",{className:l("w-full relative py-2 transition-all duration-300",a?"bg-black text-white":"light bg-background text-foreground border-b border-accent"),children:or("div",{className:"container backdrop-blur-sm",children:or("div",{className:l("flex items-center justify-between py-0",!t&&"container"),children:or(E0,{className:"flex gap-x-12",children:e&&e.map(o=>or(ar,{...o},o.name))})})})})})}import{useState as F0}from"react";import{Toaster as j0,toast as Hs}from"sonner";import{useRouter as O0}from"next/navigation";import{jsx as tt,jsxs as Tt}from"react/jsx-runtime";function Nc({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=F0([]),s=O0(),n=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},i=d=>{r(p=>p.includes(d)?p.filter(u=>u!==d):[...p,d])},c=async()=>{let d=await t(o);d.success?(Hs.success(d.message),s.refresh()):Hs.error(`Error: ${d.message}`),r([])},m=async()=>{let d=await a(o);d.success?(Hs.success(d.message),s.refresh()):Hs.error(`Error: ${d.message}`),r([])};return Tt("div",{className:"space-y-4",children:[Tt("div",{className:"flex justify-between items-center",children:[tt("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),Tt("div",{className:"space-x-2",children:[tt(k,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),tt(k,{onClick:m,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),tt("div",{className:"overflow-hidden sm:rounded-md",children:Tt("ul",{className:"divide-y divide-gray-200",children:[tt("li",{className:"px-4 py-4 sm:px-6",children:Tt("div",{className:"flex items-center justify-between",children:[Tt("div",{className:"flex items-center",children:[tt(oa,{id:"select-all",checked:o.length===e.length,onCheckedChange:n,className:"border-accent"}),tt("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),Tt("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>tt("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:Tt("div",{className:"flex items-center justify-between",children:[Tt("div",{className:"flex items-center",children:[tt(oa,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>i(d.id),className:"border-accent"}),Tt("div",{className:"ml-3 flex items-center",children:[Tt(wt,{className:"h-10 w-10",children:[tt(Nt,{src:d.userImage,alt:d.userName}),tt(Ct,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),tt("div",{className:"ml-3",children:tt("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),Tt("div",{className:"flex items-center space-x-2",children:[Tt("span",{className:"text-sm text-gray-500",children:[new Date(d.startDate).toLocaleDateString(),d.startDate!==d.endDate&&` - ${new Date(d.endDate).toLocaleDateString()}`,d.leaveType!="Full Day"&&` (${d.leaveType})`,` - ${d.totalDays} day${d.totalDays!==1?"s":""}`]}),tt(Je,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),tt(j0,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}import{useState as Or,useEffect as Sc}from"react";import{format as Rc}from"date-fns";import{CalendarIcon as Tc}from"lucide-react";import{useRouter as $0}from"next/navigation";import{Toaster as _0,toast as Fs}from"sonner";var Cc=[{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 jr=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=Cc.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},kc=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!jr(o))return .5;for(;o<=r;)jr(o)||s++,o.setDate(o.getDate()+1);return s},Pc=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();import{jsx as ze,jsxs as Et}from"react/jsx-runtime";var G0=({options:e,value:t,onChange:a,disabled:o=[]})=>ze("div",{className:"flex space-x-2",children:e.map((r,s)=>ze(k,{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 Dc({remainingDays:e,submitLeaveRequest:t}){let[a,o]=Or(new Date),[r,s]=Or(new Date),[n,i]=Or("Full Day"),[c,m]=Or(!1),[d,p]=Or(1),u=$0();Sc(()=>{let f=Pc(a,r);m(f),f&&i("Full Day")},[a,r]),Sc(()=>{if(!a||!r){p(0);return}let f=kc(a,r,n!=="Full Day");p(f)},[a,r,n]);let g=f=>{i(f)};return Et("div",{className:"max-w-2xl",children:[ze("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),Et("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),Et("form",{onSubmit:async f=>{if(f.preventDefault(),!a||!r){Fs.error("Please select both start and end dates");return}if(d>e){Fs.error("You do not have enough leave days remaining");return}let h=new FormData;h.append("startDate",a.toISOString()),h.append("endDate",r.toISOString()),h.append("leaveType",n),h.append("duration",d.toString());let T=await(t||V0)(h);T.success?(Fs.success(T.message),o(void 0),s(void 0),i("Full Day"),u.refresh()):Fs.error(`Error: ${T.message}`)},className:"space-y-4",children:[Et("div",{className:"grid grid-cols-2 gap-4",children:[Et("div",{className:"flex flex-col space-y-2",children:[ze(I,{htmlFor:"startDate",children:"Start Date"}),Et(ls,{children:[ze(ds,{asChild:!0,children:Et(k,{variant:"outline",className:l("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[ze(Tc,{className:"mr-2 h-4 w-4"}),a?Rc(a,"PPP"):ze("span",{children:"Pick a date"})]})}),ze(Nr,{className:"w-auto p-0",align:"start",children:ze(us,{mode:"single",selected:a,onSelect:f=>{o(f),f&&(!r||f>r)&&s(f)},initialFocus:!0})})]})]}),Et("div",{className:"flex flex-col space-y-2",children:[ze(I,{htmlFor:"endDate",children:"End Date"}),Et(ls,{children:[ze(ds,{asChild:!0,children:Et(k,{variant:"outline",className:l("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[ze(Tc,{className:"mr-2 h-4 w-4"}),r?Rc(r,"PPP"):ze("span",{children:"Pick a date"})]})}),ze(Nr,{className:"w-auto p-0",align:"start",children:ze(us,{mode:"single",selected:r,onSelect:s,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),Et("div",{className:"space-y-2",children:[ze(I,{children:"Leave Type"}),ze(G0,{options:["Full Day","Morning","Afternoon"],value:n,onChange:g,disabled:[!1,c,c]})]}),Et("p",{className:"text-sm text-gray-500",children:["Total days: ",d]}),ze(k,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),ze(_0,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var V0=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};import{ChevronLeft as U0,ChevronRight as W0}from"lucide-react";import{jsx as xe,jsxs as Ht}from"react/jsx-runtime";function Mc(...e){return e.filter(Boolean).join(" ")}function Ac({currentDate:e,setCurrentDate:t,holidays:a,employees:o}){let r=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},n=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},i=()=>{t(new Date)},c=m=>m.toLocaleString("default",{weekday:"short"}).charAt(0);return Ht("div",{className:"px-4 sm:px-6 lg:px-8",children:[Ht("div",{className:"sm:flex sm:items-center",children:[Ht("div",{className:"sm:flex-auto",children:[xe("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),xe("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),Ht("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[Ht(k,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[xe("span",{className:"sr-only",children:"Previous month"}),xe(U0,{className:"h-5 w-5","aria-hidden":"true"})]}),xe(k,{variant:"outline",onClick:i,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),Ht(k,{onClick:n,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[xe("span",{className:"sr-only",children:"Next month"}),xe(W0,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),xe("div",{className:"mt-8 flow-root",children:xe("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:xe("div",{className:"max-h-[60vh] overflow-y-auto",children:Ht("table",{className:"min-w-full border-separate border-spacing-0",children:[xe("thead",{className:"sticky top-0 z-20 bg-white",children:Ht("tr",{children:[xe("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(r)].map((m,d)=>{let p=new Date(e.getFullYear(),e.getMonth(),d+1);return Ht("th",{scope:"col",className:`sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${jr(p)?"bg-gray-200":""}`,children:[xe("div",{children:c(p)}),xe("div",{children:d+1})]},d)})]})}),xe("tbody",{children:o.map((m,d)=>Ht("tr",{children:[xe("td",{className:Mc(d!==o.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:Ht("div",{className:"flex items-center",children:[Ht(wt,{className:"h-11 w-11",children:[xe(Nt,{src:m.image,alt:m.name}),xe(Ct,{children:m.name.split(" ").map(p=>p[0]).join("")})]}),xe("div",{className:"ml-4",children:xe("div",{className:"font-medium text-accent",children:m.name})})]})}),[...Array(r)].map((p,u)=>{let g=new Date(e.getFullYear(),e.getMonth(),u+1),b=a.find(f=>f.userId===m.id&&new Date(f.startDate)<=g&&new Date(f.endDate)>=g);return xe("td",{className:Mc(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",jr(g)?"bg-gray-200":"bg-white"),children:xe("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?`${m.name}: ${b.status} (${b.startDate} - ${b.endDate}) - ${b.leaveType}`:"",children:b&&b.leaveType!=="Full Day"&&xe("div",{className:`h-3 w-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${m.id}-${u}`)})]},m.id))})]})})})})]})}import{useState as K0}from"react";import{ChevronLeft as X0,ChevronRight as Y0}from"lucide-react";import{jsx as fe,jsxs as Oe}from"react/jsx-runtime";function Ic({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=K0(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,n=Array.from({length:42},(d,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p-s+1);return{date:u,isCurrentMonth:u.getMonth()===e.getMonth(),isToday:u.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=u&&new Date(g.endDate)>=u)}}),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},c=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},m=()=>{t(new Date)};return Oe("div",{className:"lg:flex lg:h-full lg:flex-col",children:[Oe("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[fe("h1",{className:"text-base font-semibold text-foreground",children:fe("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),fe("div",{className:"flex items-center",children:Oe("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[Oe(k,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[fe("span",{className:"sr-only",children:"Previous month"}),fe(X0,{className:"h-5 w-5","aria-hidden":"true"})]}),fe(k,{variant:"outline",onClick:m,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),Oe(k,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[fe("span",{className:"sr-only",children:"Next month"}),fe(Y0,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),Oe("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[Oe("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[Oe("div",{className:"bg-white py-2",children:["M",fe("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),Oe("div",{className:"bg-white py-2",children:["T",fe("span",{className:"sr-only sm:not-sr-only",children:"ue"})]}),Oe("div",{className:"bg-white py-2",children:["W",fe("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),Oe("div",{className:"bg-white py-2",children:["T",fe("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),Oe("div",{className:"bg-white py-2",children:["F",fe("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),Oe("div",{className:"bg-white py-2",children:["S",fe("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),Oe("div",{className:"bg-white py-2",children:["S",fe("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),Oe("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto overflow-visible",children:[fe("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px overflow-visible",children:n.map(d=>Oe("div",{className:l(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2 overflow-visible"),children:[fe("time",{dateTime:d.date.toISOString(),className:l("flex h-6 w-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&fe("ol",{className:"mt-2 space-y-1 overflow-visible",children:d.holidays.map(p=>fe("li",{className:"overflow-visible",children:fe("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border overflow-visible`,children:p.userName})},p.id))})]},d.date.toISOString()))}),fe("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:n.map(d=>Oe("button",{type:"button",className:l(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[fe("time",{dateTime:d.date.toISOString(),className:l("ml-auto",d.date===o&&d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),Oe("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&fe("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(p=>fe("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()))})]})]})]})}import{useState as q0}from"react";import{ChevronDown as Q0}from"lucide-react";import{CalendarDays as J0,Grid as Z0,PlusCircle as eb,CheckSquare as tb}from"lucide-react";import{useRouter as ab}from"next/navigation";import{format as ob,parseISO as rb}from"date-fns";import{jsx as gt,jsxs as js}from"react/jsx-runtime";function Lc(...e){return e.filter(Boolean).join(" ")}function dR({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:n,rejectLeave:i}){let[c,m]=q0("Calendar View"),d=ab(),p=!1,u=rb(a),g=async f=>{let h=ob(f,"dd-MM-yyyy"),T=new URL(window.location.href);return T.searchParams.set("date",h),d.push(T.toString()),{success:!0}};if(p)return gt("div",{className:"flex justify-center items-center h-screen",children:gt("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:Z0,current:c==="Grid View"},{name:"Calendar View",icon:J0,current:c==="Calendar View"},{name:"Request Leave",icon:eb,current:c==="Request Leave"},{name:"Approve Leave",icon:tb,current:c==="Approve Leave"}];return js("div",{className:"container mx-auto p-4 h-full",children:[js("div",{className:"mb-8",children:[js("div",{className:"sm:hidden",children:[gt("select",{value:c,onChange:f=>m(f.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:b.map(f=>gt("option",{children:f.name},f.name))}),gt(Q0,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),gt("div",{className:"hidden sm:block",children:gt("div",{className:"border-b border-gray-200",children:gt("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:b.map(f=>js("a",{onClick:()=>{(f.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(f.name)},className:Lc(f.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",f.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":f.current?"page":void 0,children:[gt(f.icon,{className:Lc(f.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),gt("span",{children:f.name})]},f.name))})})})]}),c==="Grid View"&&gt(Ac,{currentDate:u,setCurrentDate:g,holidays:e,employees:r}),c==="Calendar View"&&gt(Ic,{currentDate:u,setCurrentDate:g,holidays:e}),c==="Request Leave"&&gt(Dc,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:f=>s?s(f):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&gt(Nc,{leaveRequests:o,onApprove:f=>n?n(f):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:f=>i?i(f):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}import{useState as gb,useCallback as fb}from"react";import{useState as Os,useEffect as sb}from"react";import{UserIcon as ib,CalendarIcon as nb,SaveIcon as lb,PlusIcon as db}from"lucide-react";import{jsx as B,jsxs as le}from"react/jsx-runtime";function $s({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:n}){let[i,c]=Os({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[m,d]=Os(""),[p,u]=Os(!1),[g,b]=Os(null);sb(()=>{u(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let f=async()=>{try{let x=await s(i);x.success?(u(!1),b(null)):console.error("Failed to save deal:",x.errors)}catch(x){console.error("Failed to save deal:",x)}},h=(x,C)=>{c(V=>({...V,[x]:C}))},T=x=>{let C=(i.categories||[]).includes(x)?(i.categories||[]).filter(V=>V!==x):[...i.categories||[],x];h("categories",C)},P=async()=>{if(m.trim()){let x={text:m,timestamp:new Date().toISOString()};try{let C=await n(x);if(!C.success){console.error("Failed to add comment:",C.errors);return}}catch(C){console.error("Failed to add comment:",C)}c(C=>({...C,comments:[...C.comments||[],x]})),d("")}},y=x=>{switch(x){case"proposition":return"border-blue-800 text-blue-800";case"source":return"border-green-800 text-green-800";case"sector":return"border-purple-800 text-purple-800";default:return"border-gray-800 text-gray-800"}},N=x=>t?.find(C=>C.id===Number(x));return B(Wt,{open:!0,children:le(At,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[le(ta,{className:"flex flex-row items-center justify-between",children:[B(aa,{className:"text-2xl font-bold",children:a?.name||"no customer"}),le("div",{className:"flex space-x-2",children:[B(k,{variant:"outline",onClick:r,children:"Close"}),le(k,{onClick:f,disabled:!p,children:[B(lb,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),le(Vt,{className:"flex-grow pr-4",children:[le("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[B("div",{className:"grid gap-2 m-1",children:g==="value"?B(Ge,{type:"number",value:i.value,onChange:x=>h("value",Number(x.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):le("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()]})}),le("div",{className:"grid gap-2 m-1",children:[B(I,{className:"text-sm font-medium text-accent",children:"Assignee"}),g==="assignee"?le(Lt,{value:i?.assignee?.id?.toString()||"",onValueChange:x=>h("assignee",N(x)),children:[B(kt,{children:B(Bt,{placeholder:"Select assignee"})}),B(Pt,{children:t&&t.map(x=>B(ct,{value:x?.id?.toString()||"",children:x.name},x.id))})]}):le("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("assignee"),children:[B(ib,{className:"w-4 h-4 text-gray-400"}),B("span",{children:i?.assignee?.name})]})]}),le("div",{className:"grid gap-2 m-1",children:[B(I,{className:"text-sm font-medium text-accent",children:"Closure Date"}),g==="closureDate"?B(Ge,{type:"date",value:i.closureDate?.split("T")[0]??"",onChange:x=>h("closureDate",x.target.value),onBlur:()=>b(null),className:"mr-2",autoFocus:!0}):le("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("closureDate"),children:[B(nb,{className:"w-4 h-4 text-gray-400"}),B("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("en-GB"):"N/A"})]})]})]}),B("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:le("div",{className:"grid gap-2 m-1",children:[B(I,{className:"text-sm font-medium text-accent",children:"Description"}),g==="description"?B(go,{value:i.description||"",onChange:x=>h("description",x.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):B("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>b("description"),children:i.description})]})}),le("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[le("div",{className:"grid gap-2 m-1",children:[B(I,{className:"text-sm font-medium text-accent",children:"Status"}),g==="status"?le(Lt,{value:i.status,onValueChange:x=>{h("status",x),b(null)},children:[B(kt,{children:B(Bt,{placeholder:"Select status"})}),B(Pt,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(x=>B(ct,{value:x,children:x},x))})]}):B("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("status"),children:i.status})]}),le("div",{className:"grid col-span-2 gap-2",children:[B(I,{className:"text-sm font-medium text-accent",children:"Categories"}),g==="categories"?B("div",{className:"grid grid-cols-2 gap-2 m-1",children:o.map(x=>le("div",{className:"flex items-center space-x-2",children:[B(oa,{id:x.id?.toString()||"",checked:(i.categories||[]).some(C=>C.id===x.id),onCheckedChange:()=>x.id!==void 0&&T(x)}),B("label",{htmlFor:(x.id??"").toString(),className:`text-sm font-medium ${y(x.type||"sector")} px-2 py-1 rounded`,children:x.name})]},x.id))}):B("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("categories"),children:i.categories&&i.categories.map(x=>{let C=x;return C?B(Je,{variant:"outline",className:y(C.type||"sector"),children:C.name},C.id):null})})]}),le("div",{className:"grid gap-2 m-1",children:[B(I,{className:"text-sm font-medium text-accent",children:"COGE Status"}),g==="gecoStatus"?le(Lt,{value:i.gecoStatus??void 0,onValueChange:x=>{h("gecoStatus",x),b(null)},children:[B(kt,{children:B(Bt,{placeholder:"Select status"})}),B(Pt,{children:["firm","forecast","other"].map(x=>B(ct,{value:x,children:x.charAt(0).toUpperCase()+x.slice(1)},x))})]}):B("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("gecoStatus"),children:i.gecoStatus?i.gecoStatus.charAt(0).toUpperCase()+i.gecoStatus.slice(1):"N/A"})]})]}),le("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[le("div",{className:"grid gap-2",children:[B(I,{className:"text-sm font-medium text-accent",children:"Comments"}),B(Vt,{className:"h-[200px] overflow-y-auto",children:B("div",{className:"space-y-2",children:i.comments&&i.comments.slice().sort((x,C)=>new Date(C.timestamp||"").getTime()-new Date(x.timestamp||"").getTime()).map(x=>le("div",{className:"p-3 rounded-lg",children:[B("p",{className:"text-sm text-foreground",children:x.text}),le("p",{className:"text-xs text-foreground mt-1",children:[x?.author?.name," - ",new Date(x.timestamp||"").toLocaleString()]})]},x.id))})}),le("div",{className:"flex mt-2",children:[B(Ge,{value:m,onChange:x=>d(x.target.value),placeholder:"Add a comment...",className:"flex-grow ml-1"}),le(k,{onClick:P,className:"ml-2",children:[B(db,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),le("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}import{CalendarIcon as cb,UserIcon as mb}from"lucide-react";import{jsx as qe,jsxs as ua}from"react/jsx-runtime";function Bc({deal:e,customer:t,categories:a,onClick:o,compact:r=!1}){let s=a.find(n=>n.type==="proposition"&&(e.categories??[]).includes(n.id));return r?ua(Q,{className:"mb-1 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[ua(pe,{className:"pb-1 pt-2",children:[qe(ue,{className:"text-sm font-semibold text-foreground",children:t?.name}),qe("p",{className:"text-sm text-foreground mt-1",children:e.description})]}),qe(Z,{className:"text-xs text-gray-200 pb-2",children:qe("div",{className:"flex justify-between items-center mb-1",children:qe("div",{className:"flex items-center text-sm font-bold text-green-600",children:ua("span",{children:["\xA3",e.value.toLocaleString()]})})})})]}):ua(Q,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[ua(pe,{className:"pb-2",children:[qe("div",{className:"flex justify-between items-center",children:qe(ue,{className:"text-lg font-semibold text-foreground",children:t?.name})}),qe("p",{className:"text-sm text-foreground mt-1",children:e.description})]}),ua(Z,{children:[ua("div",{className:"flex justify-between items-center mb-3",children:[ua("div",{className:"flex items-center text-sm text-foreground",children:[qe(mb,{className:"w-4 h-4 mr-1 text-xs"}),qe("span",{children:e.assignee.name})]}),qe("div",{className:"flex items-center text-sm font-bold text-green-600",children:ua("span",{children:["\xA3",e.value.toLocaleString()]})})]}),qe("div",{className:"flex justify-between items-left mb-3",children:ua("div",{className:"flex items-center text-xs text-gray-200",children:[qe(cb,{className:"w-3 h-3 mr-1"}),qe("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),qe("div",{className:"flex justify-between items-left",children:s&&qe(Je,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:s.name})})]})]})}import{Droppable as pb,Draggable as ub}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as _s,jsxs as Qa}from"react/jsx-runtime";function Gs({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:n,calculateWeightedValue:i,compact:c=!1}){return Qa("div",{className:"flex flex-col w-80",children:[Qa("h2",{className:"text-xl font-semibold mb-4",children:[" ",e.charAt(0).toUpperCase()+e.slice(1)]}),_s(pb,{droppableId:e,isDropDisabled:!1,children:m=>Qa("div",{ref:m.innerRef,...m.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((d,p)=>_s(ub,{draggableId:d.id.toString(),index:d.id,children:u=>_s("div",{ref:u.innerRef,...u.draggableProps,...u.dragHandleProps,children:_s(Bc,{deal:d,customer:d.customer,categories:r,onClick:()=>s(d),compact:c})})},d.id.toString())),m.placeholder]})}),Qa("div",{className:"mt-4 text-sm p-3 rounded-lg shadow",children:[Qa("p",{className:"font-semibold",children:["Total:"," ",Qa("span",{className:"text-green-600",children:["\xA3",n(t).toLocaleString()]})]}),Qa("p",{className:"font-semibold",children:["Weighted:"," ",Qa("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}import{DragDropContext as bb}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as Vs,jsxs as hb}from"react/jsx-runtime";var vb=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost","Dormant"];function _R({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){let[s,n]=gb(null),i=p=>(e.deals??[]).filter(u=>u.status===p),c=p=>p.reduce((u,g)=>u+(g.value||0),0),m=(p,u)=>{let g={Cold:0,Qualified:.1,"Proposal Made":.25,"SoW Submitted":.8,Won:1,Lost:0,Dormant:0};return p.reduce((b,f)=>b+(f.value||0)*g[u],0)},d=fb(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(P=>P.id===u.index)[0],T=[...e.deals??[]];h&&(h.status=f,a(h))},[a]);return Vs(bb,{onDragEnd:d,children:hb("div",{className:"p-4 h-full overflow-auto",children:[Vs("div",{className:"flex space-x-4 pb-4",children:vb.filter(p=>p!=="Lost").map(p=>{let u=i(p);return Vs(Gs,{status:p,deals:u,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:n,calculateColumnValue:c,calculateWeightedValue:m},p)})}),s&&Vs($s,{deal:s,users:e.users,customer:s.customer,categories:e.categories??[],onClose:()=>n(null),onSave:a,onAddComment:p=>o(s.id.toString(),p)})]})})}import{useState as fn,useEffect as xb}from"react";import{PlusIcon as wb}from"lucide-react";import{useState as yb}from"react";import{jsx as Ro,jsxs as Us}from"react/jsx-runtime";function zc({onSubmit:e}){let[t,a]=yb({name:"",intro:"",active:!1});return Us("form",{onSubmit:r=>{r.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-y-4",children:[Us("div",{className:"space-y-2",children:[Ro(I,{htmlFor:"customerName",children:"Customer Name"}),Ro(Ge,{id:"customerName",value:t.name,onChange:r=>a({...t,name:r.target.value}),placeholder:"Enter customer name",required:!0})]}),Us("div",{className:"space-y-2",children:[Ro(I,{htmlFor:"customerIntro",children:"Intro"}),Ro(go,{id:"customerIntro",value:t.intro??"",onChange:r=>a({...t,intro:r.target.value}),placeholder:"Enter customer intro"})]}),Us("div",{className:"flex items-center space-x-2",children:[Ro(oa,{id:"activeCustomer",checked:!!t.active,onCheckedChange:r=>a({...t,active:r})}),Ro(I,{htmlFor:"activeCustomer",children:"Active Customer"})]}),Ro(k,{type:"submit",className:"w-full",children:"Add Customer"})]})}import{Fragment as Nb,jsx as q,jsxs as at}from"react/jsx-runtime";function m3({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:n}){let[i,c]=fn(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[m,d]=fn(!1),[p,u]=fn({});xb(()=>{r&&c(r)},[r]);let g=()=>{let y={};return i.customer||(y.customer="Customer is required"),i.value||(y.value="Value is required"),i.assignee||(y.assignee="Assignee is required"),i.closureDate||(y.closureDate="Closure Date is required"),u(y),Object.keys(y).length===0},b=async y=>{y.preventDefault(),u({});try{if(g()){let N=await o({...i});N.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),n?.()):u(N.errors||{})}}catch{u({submit:"An error occurred while submitting the form."})}},f=y=>{c(N=>({...N,categories:(N.categories||[]).includes(y.id)?(N.categories||[]).filter(x=>x!==y.id):[...N.categories||[],y.id]}))},h=async y=>{c({...i,customer:y});try{let N=await s(y);N.success?d(!1):u(N.errors||{})}catch{u({submit:"An error occurred while submitting the form."})}},T=y=>t?.find(N=>N.id===Number(y)),P=y=>e?.find(N=>N.id===Number(y));return at(Nb,{children:[at("form",{onSubmit:b,className:"space-y-6",children:[q(Vt,{className:"h-[60vh] pr-4",children:at("div",{className:"space-y-6 px-4",children:[at("div",{className:"space-y-2 space-x-2",children:[q(I,{htmlFor:"customer",children:"Customer"}),at("div",{className:"flex items-center space-x-2",children:[at(Lt,{value:i.customer?.id?.toString(),onValueChange:y=>c({...i,customer:P(y)}),children:[q(kt,{children:q(Bt,{placeholder:"Select customer"})}),q(Pt,{children:e.map(y=>q(ct,{value:y.id?.toString()||"",children:y.name},y.id))})]}),q(k,{variant:"outline",size:"icon",onClick:()=>d(!0),children:q(wb,{className:"w-5 h-5"})})]}),p.customerId&&q("p",{className:"text-red-500 text-sm",children:p.customerId})]}),at("div",{className:"space-y-2 space-x-2",children:[q(I,{htmlFor:"value",children:"Value"}),q(Ge,{id:"value",type:"number",value:i.value||"",onChange:y=>c({...i,value:Number.parseFloat(y.target.value)}),placeholder:"Enter deal value"}),p.value&&q("p",{className:"text-red-500 text-sm",children:p.value})]}),at("div",{className:"space-y-2 space-x-2",children:[q(I,{htmlFor:"assignee",children:"Assignee"}),at(Lt,{value:i.assignee?.id?.toString(),onValueChange:y=>c({...i,assignee:T(y)}),children:[q(kt,{children:q(Bt,{placeholder:"Select assignee"})}),q(Pt,{children:t&&t.map(y=>q(ct,{value:y.id?.toString()||"",children:y.name},y.id))})]}),p.assignee&&q("p",{className:"text-red-500 text-sm",children:p.assignee})]}),at("div",{className:"space-y-2 space-x-2",children:[q(I,{htmlFor:"description",children:"Description"}),q(go,{id:"description",value:i.description||"",onChange:y=>c({...i,description:y.target.value}),placeholder:"Enter deal description"})]}),at("div",{className:"space-y-2 space-x-2",children:[q(I,{children:"Categories"}),q("div",{className:"space-y-4",children:["proposition","source","sector"].map(y=>at("div",{className:"space-y-2",children:[q("h4",{className:"text-sm font-medium",children:y.charAt(0).toUpperCase()+y.slice(1)}),q("div",{className:"grid grid-cols-2 gap-2",children:a.filter(N=>N.type===y).map(N=>at("div",{className:"flex items-center space-x-2",children:[q(oa,{id:N.id.toString(),checked:i.categories?.includes(N.id),onCheckedChange:()=>f(N)}),q("label",{htmlFor:N.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:N.name})]},N.id))})]},y))})]}),at("div",{className:"space-y-2 space-x-2",children:[q(I,{htmlFor:"closureDate",children:"Closure Date"}),q(Ge,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:y=>c({...i,closureDate:y.target.value})}),p.closureDate&&q("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),q(k,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),q(Wt,{open:m,onOpenChange:d,children:at(At,{children:[q(ta,{children:q(aa,{children:"Add New Customer"})}),q(zc,{onSubmit:h})]})})]})}import{useState as Cb,useCallback as kb}from"react";import{DragDropContext as Pb}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as Ws,jsxs as Rb}from"react/jsx-runtime";var Sb=["firm","forecast","other"];function y3({initialData:e,updateDeal:t,addComment:a}){let[o,r]=Cb(null),s=m=>(e.deals??[]).filter(d=>d.gecoStatus===m).filter(d=>d.status!=="Lost").filter(d=>d.status!=="Cold"),n=m=>m.reduce((d,p)=>d+(p.value||0),0),i=(m,d)=>{let p={Cold:0,Qualified:.1,"Proposal Made":.25,"SoW Submitted":.8,Won:1,Lost:0,Dormant:0};return m.reduce((u,g)=>u+(g.value||0)*(p[g.status]??0),0)},c=kb(m=>{let{source:d,destination:p}=m;if(!p||d.droppableId===p.droppableId&&d.index===p.index)return;let u=d.droppableId,g=p.droppableId,b=e.deals?.filter(h=>h.id===d.index)[0],f=[...e.deals??[]];b&&(b.gecoStatus=g,t(b))},[t]);return Ws(Pb,{onDragEnd:c,children:Rb("div",{className:"p-4 h-full overflow-auto",children:[Ws("div",{className:"flex space-x-4 pb-4",children:Sb.map(m=>{let d=s(m);return Ws(Gs,{status:m,deals:d,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:r,calculateColumnValue:n,calculateWeightedValue:i,compact:!0},m)})}),o&&Ws($s,{deal:o,users:e.users,customer:o.customer,categories:e.categories??[],onClose:()=>r(null),onSave:t,onAddComment:m=>a(o.id.toString(),m)})]})})}import Lb from"react";import{Clock as Db}from"lucide-react";import{formatDistanceToNow as Mb}from"date-fns";import{useState as bn,useEffect as Tb}from"react";function Ec({taskId:e,polling:t=!0,system:a="payload"}){let[o,r]=bn(null),[s,n]=bn(!1),[i,c]=bn(null),m=async(p=!0)=>{if(e){p&&n(!0);try{let u=await fetch(`/api/tasks/${e}`);if(!u.ok)throw new Error(`Failed to fetch task: ${u.statusText}`);let g=await u.json();r(g)}catch(u){console.error("Error fetching task:",u),c(u instanceof Error?u:new Error("Unknown error occurred"))}finally{p&&n(!1)}}},d=()=>m(!1);return Tb(()=>{e&&m(!0);let p=null;return e&&t&&(p=setInterval(d,5e3)),()=>{p&&clearInterval(p)}},[e,t]),{task:o,loading:s,error:i}}import{jsx as Ma,jsxs as To}from"react/jsx-runtime";var Ab=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"}},Ib=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function Hc({data:e}){let{id:t,system:a,fetchLatest:o,taskData:r,error:s}=e||{};if(!t)return null;let n=null,i=!0,c=s,m=o!==void 0?o:!0;if(n=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:m,taskData:n,error:c}),m){let{task:g,loading:b,error:f}=Ec({taskId:t,system:a});n=g,i=b,c=f}else i=!1;let d=Ab(n?.status||"todo"),p=Ib(n?.status||"todo"),u=n?.dateLogged||new Date().toISOString();try{let g=new Date(n?.dateLogged||"");isNaN(g.getTime())||(u=Mb(g,{addSuffix:!0}))}catch{}return To(Q,{className:l("w-full max-w-md shadow-md",c&&"border border-destructive"),children:[To(pe,{className:"pb-2",children:[To("div",{className:"flex justify-between items-start",children:[Ma(ue,{className:"text-lg font-semibold",children:i?"Loading...":n?.name||"Task"}),Ma(Je,{className:`${d}`,children:p})]}),n?.project&&To(Mr,{className:"text-sm text-gray-500",children:["Project: ",n.project.name]})]}),Ma(Z,{className:"pb-2",children:i?Ma("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):c?Ma("p",{className:"text-sm text-red-500",children:"Error loading task details"}):Ma("p",{className:"text-sm text-foreground",children:n?.description||"......."})}),Ma(Ar,{className:"pt-2 flex items-center justify-between",children:To("div",{className:"flex items-center text-xs text-gray-500",children:[Ma(Db,{className:"h-3 w-3 mr-1"}),To("span",{children:["Created ",u]}),Ma("span",{className:"mx-2",children:"\u2022"}),To("span",{children:["Task #",t]})]})})]})}import{jsx as ft,jsxs as Do}from"react/jsx-runtime";var Bb={task:Hc},zb=`
16
+ `,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),Co("div",{className:"relative z-10 flex h-full flex-col",children:Dd("div",{className:"mt-auto divide-y md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[Co("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:Co("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] md:[transform:translateY(-100%)] md:group-hover/portfolio:[transform:translateY(0)]",children:a})}),Co("p",{className:"mt-[13px] overflow-hidden pt-[11px] text-body",children:Co("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] md:[transform:translateY(100%)] md:group-hover/portfolio:[transform:translateY(0)]",children:o})})]})})]})}import Ad from"next/image";import Qi from"path";import{useState as Ji}from"react";import{Fragment as fg,jsx as qa,jsxs as Zi}from"react/jsx-runtime";function cg(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function mg(e){return e.startsWith("http")}function pg(e,t){let a=e;if(cg(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(mg(e))a=e;else if(t.source==="github"){let o=e.replace("./","");if(o.startsWith("/")&&(o=o.slice(1)),t.linked){if(t.linked.path){let r=Qi.dirname(t.linked.path);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.linked.owner}&repo=${t.linked.repo}&path=${o}&branch=${t.linked.branch}`}else{if(t.file){let r=Qi.dirname(t.file);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.owner}&repo=${t.repo}&path=${o}&branch=${t.branch}`}}else if(e.startsWith("/"))a=e;else if(e.startsWith("./")){let o=e.replace("./","");t.file&&(o=`/${Qi.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function ug({src:e,alt:t}){let[a,o]=Ji(!1),[r,s]=Ji(!1),[n,i]=Ji({width:0,height:0}),d=()=>{r&&o(!0)},m=()=>{o(!1)},c=p=>{let{naturalWidth:u,naturalHeight:g}=p.target;i({width:u,height:g}),s(u>300||g>300)};return Zi(fg,{children:[qa("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${n.height>300?"h-[300px]":`h-[${n.height}px]`}`,onClick:d,children:qa(Ad,{sizes:"100vw",height:n.height,width:n.width,src:e,alt:t||"",onLoad:c,unoptimized:!0,className:"object-contain max-w-full max-h-full"})}),qa(Xt,{open:a,onOpenChange:o,children:Zi(Lt,{className:"flex flex-col items-center justify-center",children:[Zi(sa,{className:"flex w-full justify-end",children:[qa(ia,{className:"hidden",children:t}),qa(Oi,{})]}),qa("div",{className:"flex items-center justify-center",children:qa(Ad,{height:n.height,width:n.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function gg({props:e,baseContext:t}){let{src:a}=e;return a=pg(a,t),qa(ug,{src:a,alt:e.alt})}import bg from"next/link";import{jsx as vg}from"react/jsx-runtime";function Xe({children:e,href:t,openNewTab:a,...o}){return vg(bg,{href:t,target:a?"_blank":"_self",...o,children:e})}import{jsx as Qt,jsxs as en}from"react/jsx-runtime";function hg(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function F2({icon:e,title:t,description:a,slug:o}){return en("article",{className:l(["group/service bg-card shadow-3 transition-transform duration-350 dark:shadow-none","relative z-1 block h-full space-y-6 overflow-hidden rounded-5 p-6 md:space-y-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[en("div",{className:"flex items-center text-foreground gap-5",children:[Qt("span",{className:"flex-none text-[2.5rem] transition-all duration-300 group-hover/service:scale-90 group-hover/service:text-accent md:text-[4rem]",children:hg(e)?Qt(at,{type:e.type,iconName:e.iconName,size:"sm"}):e}),Qt("h2",{className:"text-md font-medium leading-[1.25] md:text-lg",children:o?Qt(Xe,{href:o,children:t}):t})]}),Qt("p",{className:"text-foreground",children:a}),o&&Qt(C,{asChild:!0,className:l(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","before:hidden after:hidden"]),children:en(Xe,{href:o,children:[Qt("span",{children:"Read More"}),Qt("span",{className:"relative pl-3 text-sm/[1] text-accent",children:Qt("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:Qt("path",{d:"M11.8125 5.75C11.8125 6.24219 11.4023 6.65234 10.9375 6.65234H7V10.5898C7 11.0547 6.58984 11.4375 6.125 11.4375C5.63281 11.4375 5.25 11.0547 5.25 10.5898V6.65234H1.3125C0.820312 6.65234 0.4375 6.24219 0.4375 5.75C0.4375 5.28516 0.820312 4.90234 1.3125 4.90234H5.25V0.964844C5.25 0.472656 5.63281 0.0625 6.125 0.0625C6.58984 0.0625 7 0.472656 7 0.964844V4.90234H10.9375C11.4023 4.875 11.8125 5.28516 11.8125 5.75Z"})})})]})}),Qt("span",{className:"invisible absolute bottom-0 left-0 h-[2px] w-full scale-x-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-x-100 group-hover/service:opacity-100"})]})}import{FaCircleCheck as yg,FaAnglesRight as xg}from"react-icons/fa6";import{jsx as Rt,jsxs as tr}from"react/jsx-runtime";function Md({title:e,description:t,features:a,price:o,duration:r,button:s}){return tr("div",{className:"relative grid rounded-5 border border-accent-200 dark:border-opacity-20 lg:grid-cols-[300px_1fr] 2xl:grid-cols-[386px_1fr]",children:[tr("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-b max-lg:pt-14 lg:border-r lg:p-10",children:[Rt("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),Rt("p",{children:t})]}),Rt("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:tr("div",{className:"flex flex-col justify-stretch gap-x-14 gap-y-5 md:flex-row md:items-center",children:[a&&a.length>0&&Rt("ul",{"aria-label":"pricing point list",className:"grid w-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:a.map((n,i)=>tr("li",{className:"flex items-start gap-3 lg:gap-4",children:[Rt("span",{className:"text-accent pt-1",children:Rt(yg,{})}),Rt("span",{children:n})]},i))}),tr("p",{className:"font-secondary ml-auto text-xl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,Rt("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:r&&r})]}),s&&Rt("div",{className:"flex-none mr-0 sm:ml-auto",children:Rt(C,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:tr(Xe,{href:s.href,openNewTab:s.openNewTab,children:[Rt("span",{className:"relative z-1",children:s.label}),Rt("span",{className:"relative z-1 pl-2",children:Rt(xg,{})})]})})})]})})]})}import{jsx as Qa,jsxs as Id}from"react/jsx-runtime";function W2({className:e,badge:t,title:a,subtitle:o}){return Id("div",{className:l("relative overflow-hidden rounded-xl bg-gradient-to-br from-[#A42368] to-[#A42368] m-6 px-6 py-16 md:px-12 md:py-24",e),children:[Id("div",{className:"relative z-10 mx-auto max-w-4xl text-center",children:[t&&Qa("div",{className:"mb-4",children:Qa("span",{className:"inline-block rounded-lg bg-[#A42368]/50 px-4 py-1.5 text-sm font-medium text-white backdrop-blur-sm",children:t})}),Qa("h1",{className:"mt-6 text-3xl font-bold tracking-tight text-white sm:text-4xl md:text-5xl lg:text-6xl",children:a}),Qa("p",{className:"mt-6 text-base text-gray-300 sm:text-lg md:text-xl",children:o})]}),Qa("div",{className:"absolute bottom-0 left-1/2 h-48 w-full -translate-x-1/2",style:{background:"radial-gradient(50% 50% at 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),Qa("div",{className:"absolute bottom-0 left-1/2 h-32 w-full -translate-x-1/2",children:Qa("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:Qa("path",{d:"M-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}import{jsx as Ie,jsxs as tn}from"react/jsx-runtime";function Ld(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Z2({variant:e="outline",className:t,icon:a,iconSize:o="large",width:r="auto",order:s=0,heading:n,subheading:i,content:d,statistic:m,buttonText:c,buttonHref:p}){let u={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:""},g={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return tn("div",{className:l("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",u[e],e==="outline"?"text-gray-900":"text-white",t,g[r],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${s+1}00`),children:[Ie("div",{className:"flex items-center gap-4 mb-2",children:Ie(wg,{icon:a,heading:n,variant:e,iconSize:o})}),m&&Ie("div",{className:"mb-6",children:Ie("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",e==="outline"||e==="light"?"text-primary":"text-white"),children:m})}),i&&Ie("div",{className:"mb-4 text-xl md:text-2xl font-light",children:i}),d&&typeof d=="object"&&Ie("div",{className:l("space-y-6"),children:Ie(W,{enableGutter:!1,content:d,enableProse:!1,className:l(e==="outline"||e==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),d&&typeof d=="string"&&Ie("div",{className:l("space-y-6",e==="outline"||e==="light"?"text-gray-900":"text-gray-100"),children:d}),c&&Ie("div",{className:"mt-auto pt-6 flex items-center justify-center",children:Ie(C,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:Ie("a",{href:p,children:c})})}),e==="radial"&&Ie("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var wg=({icon:e,heading:t,variant:a,iconSize:o})=>e&&o==="small"?tn("div",{className:"flex items-start gap-4 mb-2",children:[Ld(e)&&Ie("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"mt-2":""),children:Ie(at,{type:e.type,iconName:e.iconName,size:"2x"})}),Ie("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t})]}):e?tn("div",{className:"flex flex-col gap-4",children:[Ld(e)&&Ie("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:Ie(at,{type:e.type,iconName:e.iconName,size:"4x"})}),Ie("h3",{className:l("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):Ie("div",{className:"flex items-center gap-4 mb-2",children:Ie("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});import{jsx as Cg}from"react/jsx-runtime";var Ng=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return Cg("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};import{useState as hf,useEffect as yf,useCallback as xf}from"react";import{Fragment as Pg,jsx as ar,jsxs as kg}from"react/jsx-runtime";function fC({icon:e,title:t,body:a,color:o="secondary"}){return ar(Pg,{children:kg("div",{className:"flex py-0 min-h-16",children:[ar("div",{className:"px-[2%] flex items-center",children:ar("div",{className:"w-12 h-12",children:ar(at,{type:e.type,iconName:e.name})})}),ar("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&ar("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}import Sg from"next/image";import{jsx as Ms,jsxs as an}from"react/jsx-runtime";function yC(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return an("div",{className:"relative flex flex-col rounded-3xl bg-white p-2 shadow-md shadow-black/5 ring-1 ring-black/5 hover:shadow-lg transition-shadow group",children:[a&&Ms(Sg,{alt:r||"",src:a,layout:"responsive",width:1170,height:780,className:"rounded-2xl object-cover transform group-hover:scale-95 transition-transform duration-400"}),an("div",{className:"flex flex-1 flex-col p-4",children:[Ms("div",{className:"mt-2 font-medium text-center group-hover:scale-110 transition-transform duration-400 ease-in-out text-foreground dark:text-background group-hover:text-accent",children:an("a",{href:t,children:[Ms("span",{className:"absolute inset-0"}),r]})}),o&&Ms("div",{className:"mt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}import{Fragment as Tg,jsx as Ta,jsxs as on}from"react/jsx-runtime";var Rg=(e,t)=>`from-brand-${e} to-brand-${t}`;function NC({...e}){let t=Rg(e.brandFrom||"one",e.brandTo||"two");return on("div",{className:`relative isolate flex items-center gap-x-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-to-r ${t}`,children:[Ta("p",{className:"text-sm/6 text-primary-foreground",children:e.url?on("a",{href:e.url,children:[Ta("strong",{className:"font-semibold",children:e.title}),e.message&&Ta("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:Ta("circle",{r:1,cx:1,cy:1})}),Ta("span",{children:e.message&&e.message})]}):on(Tg,{children:[Ta("strong",{className:"font-semibold",children:e.title}),e.message&&Ta("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:Ta("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),Ta("div",{className:"flex flex-1 justify-end"})]})}import Dg,{useState as zd}from"react";import{ChevronRight as Ag,ChevronDown as Mg,Users as Ig,Code as Bd,GanttChart as Lg,DraftingCompass as Bg,Search as zg}from"lucide-react";import{jsx as Le,jsxs as or}from"react/jsx-runtime";var Eg={Architecture:Le(Bg,{className:"h-5 w-5 text-blue-600"}),Engineering:Le(Bd,{className:"h-5 w-5 text-green-600"}),Development:Le(Bd,{className:"h-5 w-5 text-purple-600"}),Delivery:Le(Lg,{className:"h-5 w-5 text-red-600"})},Fg=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return Le("div",{className:`ml-${t*4} mb-2`,children:or("div",{className:`flex items-center p-3 rounded-lg shadow-sm border ${r?"bg-card border-primary":"bg-white border-gray-200"}`,children:[s&&Le("button",{onClick:a,className:"mr-2","aria-label":o?"Collapse":"Expand",children:o?Le(Mg,{className:"h-4 w-4"}):Le(Ag,{className:"h-4 w-4"})}),Le("div",{className:"w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:Le(Ig,{className:"h-6 w-6 text-gray-500"})}),or("div",{children:[Le("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),or("div",{className:"flex items-center mt-1",children:[Eg[e.discipline],Le("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),Le("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},Ed=({person:e,level:t,searchTerm:a})=>{let[o,r]=zd(t<1),s=()=>r(!o),n=c=>c.name.toLowerCase().includes(a.toLowerCase())||c.discipline.toLowerCase().includes(a.toLowerCase())||c.grade.toLowerCase().includes(a.toLowerCase()),i=c=>n(c)||c.reports.some(i),d=a===""||i(e),m=n(e);return Dg.useEffect(()=>{a!==""&&i(e)&&r(!0)},[a,e]),d?or("div",{children:[Le(Fg,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:m}),o&&e.reports.map((c,p)=>Le(Ed,{person:c,level:t+1,searchTerm:a},p))]}):null};function AC(){let[e,t]=zd("");return or("div",{className:"max-w-5xl mx-auto p-6",children:[Le("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),or("div",{className:"mb-4 relative",children:[Le("input",{type:"text",placeholder:"Search by name, discipline, or grade",value:e,onChange:o=>t(o.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Search the organization chart"}),Le(zg,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),Le("div",{className:"space-y-4",children:[{name:"Alice Johnson",discipline:"Architecture",grade:"Director",reports:[{name:"Bob Smith",discipline:"Engineering",grade:"Senior Manager",reports:[{name:"Charlie Brown",discipline:"Development",grade:"Manager",reports:[]},{name:"Diana Ross",discipline:"Engineering",grade:"Manager",reports:[]},{name:"Edward Norton",discipline:"Engineering",grade:"Manager",reports:[]}]},{name:"Fiona Apple",discipline:"Architecture",grade:"Senior Manager",reports:[{name:"George Clooney",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Helen Mirren",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Ian McKellen",discipline:"Architecture",grade:"Manager",reports:[]}]},{name:"Julia Roberts",discipline:"Development",grade:"Senior Manager",reports:[{name:"Kevin Spacey",discipline:"Development",grade:"Manager",reports:[]},{name:"Liam Neeson",discipline:"Development",grade:"Manager",reports:[]},{name:"Meryl Streep",discipline:"Development",grade:"Manager",reports:[]}]}]},{name:"Nicole Kidman",discipline:"Delivery",grade:"Director",reports:[{name:"Owen Wilson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Penelope Cruz",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Quentin Tarantino",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Rachel McAdams",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Samuel L. Jackson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Tom Hanks",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Uma Thurman",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Viola Davis",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Will Smith",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Xavier Dolan",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Yalitza Aparicio",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Zoe Saldana",discipline:"Delivery",grade:"Manager",reports:[]}]}]}].map((o,r)=>Le(Ed,{person:o,level:0,searchTerm:e},r))})]})}import{Users as Hg,FileText as jg,Lightbulb as Og,PoundSterling as $g,User as Fd,Users2 as Gg}from"lucide-react";import{jsx as te,jsxs as xe}from"react/jsx-runtime";function zC({teamMembers:e={leadership:[{role:"CTO oversight"},{role:"Senior Delivery Lead",isFTE:!0}],core:[{role:"Lead Cloud Architect",isFTE:!0},{role:"Senior Business Analyst",isFTE:!0}],sme:["Security Architecture","Engineering","Data Architecture"]},outputs:t=[{title:"Discovery Report",description:"A detailed report summarising the findings from the initial assessment, including insights from stakeholder interviews and document reviews."},{title:"Cloud and Data Estate Assessment Report",description:"A comprehensive analysis of the current cloud and data infrastructure, highlighting strengths, weaknesses, and opportunities for improvement."},{title:"Gap Analysis Report",description:"Identification of gaps between current capabilities and the requirements for adopting GenAI, along with a detailed analysis of these gaps."},{title:"Recommendations Report",description:"A set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"A phased roadmap outlining the steps to implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"A detailed plan outlining potential risks and mitigation strategies to ensure a smooth transition."}],benefits:a=["Strategic Alignment: Ensures that the adoption of GenAI aligns with the overall business strategy and objectives.","Enhanced Efficiency: Optimises cloud and data operations, leading to improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies to mitigate them, ensuring a smooth transition.","Scalability: Prepares the organisation for future growth and scalability by enhancing the underlying technology infrastructure.","Competitive Advantage: Positions the organisation to leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return xe("div",{className:"grid gap-6 lg:grid-cols-3",children:[xe("div",{className:"lg:col-span-1 space-y-6 flex flex-col",children:[xe(Y,{className:"flex-grow",children:[te(de,{className:"bg-primary text-primary-foreground",children:xe(ce,{className:"flex items-center gap-2",children:[te(Hg,{className:"h-5 w-5"}),"Team"]})}),xe(J,{className:"p-6",children:[te("p",{className:"mb-6 text-sm text-muted-foreground",children:"A small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),xe("div",{className:"space-y-6",children:[te("div",{className:"space-y-2",children:e.leadership.map((r,s)=>xe("div",{className:"flex items-center justify-between",children:[xe("div",{className:"flex items-center gap-2",children:[te(Fd,{className:"h-4 w-4 text-muted-foreground"}),te("span",{children:r.role})]}),r.isFTE&&te("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),te("div",{className:"space-y-2",children:e.core.map((r,s)=>xe("div",{className:"flex items-center justify-between",children:[xe("div",{className:"flex items-center gap-2",children:[te(Fd,{className:"h-4 w-4 text-muted-foreground"}),te("span",{children:r.role}),r.count&&xe("span",{children:["(",r.count,"x)"]})]}),r.isFTE&&te("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),xe("div",{children:[xe("div",{className:"flex items-center gap-2 mb-2",children:[te(Gg,{className:"h-4 w-4 text-muted-foreground"}),te("span",{children:"SME input:"})]}),te("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),xe(Y,{children:[te(de,{className:"bg-primary text-primary-foreground",children:xe(ce,{className:"flex items-center gap-2",children:[te($g,{className:"h-5 w-5"}),"Fee"]})}),te(J,{className:"p-6",children:te("p",{className:"text-lg font-semibold",children:o})})]})]}),xe(Y,{className:"lg:col-span-1 flex flex-col",children:[te(de,{className:"bg-primary text-primary-foreground",children:xe(ce,{className:"flex items-center gap-2",children:[te(jg,{className:"h-5 w-5"}),"Outputs"]})}),xe(J,{className:"p-6 flex-grow overflow-auto",children:[te("ol",{className:"list-decimal list-inside space-y-4",children:t.map((r,s)=>xe("li",{className:"text-sm",children:[xe("span",{className:"font-medium",children:[r.title,":"]})," ",te("span",{className:"text-muted-foreground",children:r.description})]},s))}),te("p",{className:"mt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),xe(Y,{className:"lg:col-span-1 flex flex-col",children:[te(de,{className:"bg-primary text-primary-foreground",children:xe(ce,{className:"flex items-center gap-2",children:[te(Og,{className:"h-5 w-5"}),"Benefits"]})}),te(J,{className:"p-6 flex-grow overflow-auto",children:te("ul",{className:"space-y-4",children:a.map((r,s)=>xe("li",{className:"flex gap-2 text-sm",children:[te("span",{className:"text-primary",children:"\u2713"}),te("span",{children:r})]},s))})})]})]})}import{BarChart3 as _g,CogIcon as Vg,Building2 as Ug,BadgeCheck as Wg}from"lucide-react";import{jsx as ae,jsxs as ma}from"react/jsx-runtime";function jC(){return ae("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:ma("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[ma("div",{className:"space-y-4 bg-primary p-3 rounded-lg",children:[ma("div",{className:"flex items-center gap-2 relative z-10",children:[ae("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:ae("span",{className:"text-[#0B3B4E]",children:"1"})}),ae(_g,{className:"w-8 h-8"})]}),ae("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),ae("p",{className:"text-secondary text-sm",children:"We excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),ma("ul",{className:"text-sm",children:[ae("li",{children:"Strategy definition"}),ae("li",{children:"Programme leadership"}),ae("li",{children:"Detailed planning"}),ae("li",{children:"\u2022 Financial control"}),ae("li",{children:"\u2022 Rigorous governance"})]})]}),ma("div",{className:"space-y-4",children:[ma("div",{className:"flex items-center gap-2 relative z-10",children:[ae("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:ae("span",{className:"text-[#0B3B4E]",children:"2"})}),ae(Vg,{className:"w-8 h-8"})]}),ae("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),ae("p",{className:"text-sky-200 text-sm",children:"Our architects and engineers possess extensive expertise in designing, building, and operating modern, leading-edge technologies and enterprise-class solutions."}),ae("p",{className:"text-sm",children:"We deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),ma("div",{className:"space-y-4",children:[ma("div",{className:"flex items-center gap-2 relative z-10",children:[ae("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:ae("span",{className:"text-[#0B3B4E]",children:"3"})}),ae(Ug,{className:"w-8 h-8"})]}),ae("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),ae("p",{className:"text-sky-200 text-sm",children:"We understand how to navigate public sector and financial services regulation and how to deliver compliant and robustly secure cutting-edge solutions in this context."}),ae("p",{className:"text-sm",children:"We have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),ma("div",{className:"space-y-4",children:[ma("div",{className:"flex items-center gap-2 relative z-10",children:[ae("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:ae("span",{className:"text-[#0B3B4E]",children:"4"})}),ae(Wg,{className:"w-8 h-8"})]}),ae("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),ae("p",{className:"text-sky-200 text-sm",children:"We have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),ae("p",{className:"text-sm",children:"As an XXXX strategic partner, we have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}import{jsx as Hr,jsxs as Kg}from"react/jsx-runtime";var Is=e=>{let{columns:t,theme:a}=e,o={full:"12",half:"6",oneThird:"4",twoThirds:"8"},r={none:"",line:"border border-primary p-4 rounded-lg"},s=i=>{if(i.type&&i.type==="block"&&i.fields&&(i.fields.blockType==="imageBlock"||i.fields.blockType==="mediaBlock"))return!0;if(i.root&&i.root.children){for(let d of i.root.children)if(s(d))return!0}if(i.children){for(let d of i.children)if(s(d))return!0}return!1},n=(i,d,m)=>{if(d==="none"||m==="full")return{processedRichText:i,heading:null};let c=i,p=null;return i&&i.root&&i.root.children&&i.root.children[0].tag==="h2"&&(c={...i,root:{...i.root,children:i.root.children.slice(1)}},p=i.root.children[0]),{processedRichText:c,heading:p}};return Hr("div",{className:"my-6",children:Hr("div",{className:l("grid grid-cols-4 lg:grid-cols-12 gap-y-8",a?.settings?.box?"gap-x-8":"gap-x-16"),children:t&&t.length>0&&t.map((i,d)=>{let{enableLink:m,link:c,richText:p,size:u}=i,{processedRichText:g,heading:b}=n(p,a?.settings?.box||"none",u||"full");return Kg("div",{className:l(`col-span-4 lg:col-span-${o[u]}`,{"md:col-span-2":u!=="full"},r[u!=="full"&&!s(p)&&a?.settings?.box||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${d+1}00`),children:[b&&Hr("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:b.children[0].text}),g&&Hr(W,{content:g,enableGutter:!1,className:"rich-text"}),m&&Hr(la,{...c})]},d)})})})};import rn from"next/image";import{jsx as Da,jsxs as sn}from"react/jsx-runtime";function YC({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return sn("div",{className:"relative w-full overflow-hidden bg-white pb-16 pt-[calc(80vw*0.5)]",children:[Da("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:Da("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] w-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:Da(rn,{src:e,alt:"Header background",className:"h-full w-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),sn("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[o&&Da("div",{className:"h-16 w-32 md:h-24 md:w-48",children:Da(rn,{src:o,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})}),r&&Da("div",{className:"h-10 w-20 md:h-12 md:w-24",children:Da(rn,{src:r,alt:"Customer logo",className:"h-full w-full object-contain",width:96,height:48})})]}),sn("div",{className:"container relative mx-auto px-4",children:[Da("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),Da("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}import{Fragment as Ud}from"react";import Wd from"next/image";import{Fragment as Od,jsx as rr,jsxs as Yg}from"react/jsx-runtime";var jd=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?rr(Xg,{blocks:a.layout}):rr(Od,{})},Hd={content:Is,cta:qo,mediaBlock:Ya,imageBlock:Ya,features:Jo},Xg=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?rr(Od,{children:t.map((o,r)=>{let{blockType:s}=o,n=o?.theme;if(s&&s in Hd){let i=Hd[s];if(i)return Yg("div",{className:"py-6 relative",children:[rr(nn,{block:o,index:r}),rr("div",{className:l(n?.settings?.theme==="dark"?"dark":n?.settings?.theme==="green"?"green":""),children:rr(i,{...o})})]},r)}return null})}):null};import qg from"react";import*as sr from"@radix-ui/react-collapsible";import{ChevronDownIcon as Qg,ChevronUpIcon as Jg}from"@radix-ui/react-icons";import{jsx as ko,jsxs as $d}from"react/jsx-runtime";var Gd=({title:e,richText:t})=>{let[a,o]=qg.useState(!1);return ko("div",{className:"border rounded-lg overflow-hidden",children:$d(sr.Root,{className:l("w-full"),open:a,onOpenChange:o,children:[$d(sr.Trigger,{className:"flex w-full items-center justify-between bg-white px-4 py-3 text-left hover:bg-gray-50",children:[ko("h2",{className:"text-lg font-medium",children:e}),a?ko(Jg,{className:"h-6 w-6"}):ko(Qg,{className:"h-6 w-6"})]}),ko(sr.Content,{className:"overflow-hidden data-[state=closed]:animate-collapse data-[state=open]:animate-expand border-t",children:ko("div",{className:"px-4 py-3 bg-white",children:ko(W,{content:t||{},enableGutter:!1})})})]})})};import{jsx as F,jsxs as Jt}from"react/jsx-runtime";var Ls={content:Is,cta:qo,mediaBlock:Ya,collapsibleArea:Gd,imageBlock:Ya,features:Jo,reusableContentBlock:jd},Po=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?F("section",{id:"render-blocks",className:l(e.fill?"h-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,n=o?.theme;if(s&&s in Ls){let i=Ls[s];if(s==="reusableContentBlock")return F(Ud,{children:F(Po,{blocks:o.reusableContent.layout})},r);if(i)return Jt("div",{className:l("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[F(nn,{block:o,index:r}),F("div",{className:l("container h-full relative",n?.settings?.theme||"dark"),children:F(i,{...o})})]},r)}return null})}):null},nn=e=>{if(!("theme"in e.block))return F("div",{className:l("absolute inset-0 w-screen h-full dark bg-background")});let t=e.block?.theme;if(t.settings.background==="image"){let a={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return Jt("div",{className:l("absolute inset-0 w-full h-full bg-background",t.settings.theme||"dark"),children:[F(Wd,{src:t.settings?.image?.url||"/placeholder.svg",alt:t.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&F("div",{className:"absolute inset-0",style:{background:a.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return F("div",{className:l("absolute inset-0 w-screen h-full bg-background",t.settings.theme||"dark")})},Nk=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?F("main",{id:"content-blocks",className:l(e.fill?"h-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,n=o?.theme;if(s&&s in Ls){let i=Ls[s];if(s==="reusableContentBlock")return F(Ud,{children:F(Po,{blocks:o.reusableContent.layout})},r);if(i)return F(Zg,{block:o,allBlocks:t,index:r,children:F(i,{...o})})}return null})}):null},Zg=e=>{if(e.index===0)return Jt("section",{className:"relative flex w-full",children:[F("div",{className:l("absolute inset-0 w-screen h-full light bg-background")}),F("div",{className:l("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let t=d=>d%2===0?"light":"dark",a=({index:d,allBlocks:m})=>d===1?F(_d,{position:"left"}):r(d,m)==="dark"&&n(d,m)==="light"?F(Vd,{position:"left"}):r(d,m)==="light"&&n(d,m)==="dark"?F(_d,{position:"left"}):null,o=({index:d,allBlocks:m})=>s(d,m)==="light"&&n(d,m)==="dark"?F(Vd,{position:"left"}):null,r=(d,m)=>{if(d===1)return"light";let c=m[d-1];return"theme"in c&&c.theme?.settings?.theme==="light"?"light":"dark"},s=(d,m)=>{if(d===m.length-1)return"dark";if(d===0)return"light";let c=m[d+1];return"theme"in c&&c.theme?.settings?.theme==="light"?"light":"dark"},n=(d,m)=>{if(d===m.length-1)return"dark";let c=m[d];return c.theme&&c.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return r(e.index,e.allBlocks)==="dark"?Jt("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[F("div",{className:l("absolute inset-0 w-screen dark bg-background")}),F("div",{className:l("container relative","dark bg-background py-1"),children:e.children})]}):Jt("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[F(a,{index:e.index,allBlocks:e.allBlocks}),F("div",{className:l("absolute inset-0 w-screen")}),F("div",{className:"bg-black",children:F("div",{className:l("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||r(e.index,e.allBlocks)===n(e.index,e.allBlocks)){let d=n(e.index,e.allBlocks);return Jt("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[F("div",{className:l("absolute inset-0 w-screen bg-background",d)}),F("div",{className:l("container relative bg-background py-1",d,d==="light"&&"py-12"),children:e.children})]})}if(r(e.index,e.allBlocks)!==n(e.index,e.allBlocks)){let d=n(e.index,e.allBlocks);return Jt("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[F(a,{index:e.index,allBlocks:e.allBlocks}),F("div",{className:l("absolute inset-0 w-screen bg-background",d)}),F("div",{className:l("container relative bg-background min-h-[22em] content-center py-1",d,d==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return Jt("div",{className:l("container h-full relative","dark"),children:[F("div",{className:l("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let i=e.block?.theme;if(i.settings.background==="image"){let d={imagePosition:i.settings.imagePosition||"left",overlay:i.settings.overlay!==void 0?i.settings.overlay:!0};return Jt("div",{className:l("absolute inset-0 w-full h-full bg-background",i.settings.theme||"dark"),children:[F(Wd,{src:i.settings?.image?.url||"/placeholder.svg",alt:i.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),i.settings.overlay&&F("div",{className:"absolute inset-0",style:{background:d.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return F("div",{className:l("absolute inset-0 w-screen h-full bg-background",i.settings.theme||"dark")})},_d=({position:e})=>F("div",{className:"w-full aspect-[1920/360] z-20 relative -top-[2px] bg-white",children:F("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:l("w-full block overflow-hidden"),children:F("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),Vd=({position:e})=>F("div",{className:"w-full relative z-20 aspect-[1920/332] overflow-hidden ",children:Jt("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:l("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[F("defs",{children:Jt("mask",{id:"mask",children:[F("rect",{width:"100%",height:"100%",fill:"white"}),F("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),F("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});import rf from"clsx";import{useRouter as ef}from"next/navigation";import{useCallback as Kd,useEffect as tf,useRef as jr}from"react";function af({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=ef(),r=jr(null),s=jr(null),n=jr(0),i=jr(!1),d=jr(0),m=Kd(p=>{if(p.target){let u=p.target,g=+new Date,b=u?.closest("a");d.current=p.button,b?i.current=!0:(i.current=!1,n.current=g)}},[o,r,s,n]),c=Kd(p=>{if(s.current?.href){let g=+new Date-n.current;if(s.current?.href&&g<=250&&!i.current&&d.current===0&&!p.ctrlKey)if(e){let b=t?"_blank":"_self";window.open(s.current.href,b)}else o.push(s.current.href,{scroll:a})}},[o,r,s,n]);return tf(()=>{let p=r.current;return p&&(p.addEventListener("mousedown",m),p.addEventListener("mouseup",c)),()=>{p&&p&&(p?.removeEventListener("mousedown",m),p?.removeEventListener("mouseup",c))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var Xd=af;import of from"next/link";import{Fragment as Yd}from"react";import{jsx as pa,jsxs as Bs}from"react/jsx-runtime";var zs=e=>{let{card:t,link:a}=Xd({}),{className:o,doc:r,relationTo:s,showCategories:n,title:i}=e,{slug:d,categories:m,meta:c,title:p}=r||{},{description:u,image:g}=c||{},b=m&&Array.isArray(m)&&m.length>0,f=i||p,y=u?.replace(/\s/g," "),R=`/${s}/${d}`;return Bs("article",{className:l("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[Bs("div",{className:"relative w-full ",children:[!g&&pa("div",{className:"",children:"No image"}),g&&typeof g!="string"&&pa(da,{resource:g,size:"33vw"})]}),Bs("div",{className:"p-4",children:[n&&b&&pa("div",{className:"uppercase text-sm mb-4",children:n&&b&&pa("div",{children:m?.map((P,h)=>{if(typeof P=="object"){let{title:w}=P,x=w||"Untitled category",k=h===m.length-1;return Bs(Yd,{children:[x,!k&&pa(Yd,{children:", \xA0"})]},h)}return null})})}),f&&pa("div",{className:"prose",children:pa("h3",{children:pa(of,{className:"not-prose",href:R,ref:a.ref,children:f})})}),u&&pa("div",{className:"mt-2",children:u&&pa("p",{children:y})})]})]})};import{jsx as ln,jsxs as sf}from"react/jsx-runtime";var jk=e=>{let{className:t,docs:a,introContent:o}=e;return sf("div",{className:rf("container",t),children:[o&&ln(W,{content:o,enableGutter:!1}),ln("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:a?.map((r,s)=>typeof r=="string"?null:ln(zs,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};import{AnimatePresence as ec,motion as Jd}from"framer-motion";import"pagedjs";import{jsx as Or}from"react/jsx-runtime";var Vk=e=>{let{posts:t}=e;return Or("div",{className:l("container"),children:Or("div",{children:Or("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-x-4 lg:gap-y-8 lg:gap-x-8 xl:gap-x-8",children:t?.map((a,o)=>typeof a=="object"&&a!==null?Or("div",{className:"col-span-4",children:Or(zs,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};import nf from"clsx";import lf from"next/image";import{jsx as df}from"react/jsx-runtime";var Yk=e=>{let{loading:t,priority:a,className:o}=e;return df(lf,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:nf("max-w-[9.375rem] w-full h-[34px]",o),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};import{jsxs as pf}from"react/jsx-runtime";var cf={plural:"Docs",singular:"Doc"},mf={posts:{plural:"Posts",singular:"Post"}},Jk=e=>{let{className:t,collection:a,collectionLabels:o,currentPage:r,limit:s,totalDocs:n}=e,i=(r?r-1:1)*(s||1)+1;n&&i>n&&(i=0);let d=(r||1)*(s||1);n&&d>n&&(d=n);let{plural:m,singular:c}=o||mf[a||""]||cf||{};return pf("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof n>"u"||n===0)&&"Search produced no results.",typeof n<"u"&&n>0&&`Showing ${i}${i>0?` - ${d}`:""} of ${n} ${n>1?m:c}`]})};import{ChevronLeft as uf,ChevronRight as gf,MoreHorizontal as ff}from"lucide-react";import*as dn from"react";import{jsx as ua,jsxs as gn}from"react/jsx-runtime";var cn=({className:e,...t})=>ua("nav",{"aria-label":"pagination",className:l("mx-auto flex w-full justify-center",e),role:"navigation",...t});cn.displayName="Pagination";var mn=dn.forwardRef(({className:e,...t},a)=>ua("ul",{className:l("flex flex-row items-center gap-1",e),ref:a,...t}));mn.displayName="PaginationContent";var Aa=dn.forwardRef(({className:e,...t},a)=>ua("li",{className:l("",e),ref:a,...t}));Aa.displayName="PaginationItem";var So=({className:e,isActive:t,size:a="icon",...o})=>ua("button",{"aria-current":t?"page":void 0,className:l(co({size:a,variant:t?"outline":"ghost"}),e),...o});So.displayName="PaginationLink";var pn=({className:e,...t})=>gn(So,{"aria-label":"Go to previous page",className:l("gap-1 pl-2.5",e),size:"default",...t,children:[ua(uf,{className:"h-4 w-4"}),ua("span",{children:"Previous"})]});pn.displayName="PaginationPrevious";var un=({className:e,...t})=>gn(So,{"aria-label":"Go to next page",className:l("gap-1 pr-2.5",e),size:"default",...t,children:[ua("span",{children:"Next"}),ua(gf,{className:"h-4 w-4"})]});un.displayName="PaginationNext";var Es=({className:e,...t})=>gn("span",{"aria-hidden":!0,className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[ua(ff,{className:"h-4 w-4"}),ua("span",{className:"sr-only",children:"More pages"})]});Es.displayName="PaginationEllipsis";import{useRouter as bf}from"next/navigation";import{jsx as Ye,jsxs as vf}from"react/jsx-runtime";var d5=e=>{let t=bf(),{className:a,page:o,totalPages:r}=e,s=o<r,n=o>1,i=o-1>1,d=o+1<r;return Ye("div",{className:l("my-12",a),children:Ye(cn,{children:vf(mn,{children:[Ye(Aa,{children:Ye(pn,{disabled:!n,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),i&&Ye(Aa,{children:Ye(Es,{})}),n&&Ye(Aa,{children:Ye(So,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),Ye(Aa,{children:Ye(So,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&Ye(Aa,{children:Ye(So,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),d&&Ye(Aa,{children:Ye(Es,{})}),Ye(Aa,{children:Ye(un,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};import qd from"next/image";import{jsx as ft,jsxs as Fs}from"react/jsx-runtime";var Qd=({logoImage:e})=>Fs("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
17
+ dark bg-background text-primary`,children:[Fs("div",{className:"flex px-6 items-center space-x-2",children:[e&&ft("img",{src:e.src,alt:"Cortex Reply Logo",className:"h-8"}),ft("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),ft("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),$r=({title:e})=>ft("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:ft("div",{className:"container",children:ft("span",{className:"container text-4xl px-6",children:e})})}),Gr=e=>{let{title:t,hero:a,logoImage:o}=e;return Fs("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[ft("div",{className:"absolute inset-0",children:ft(qd,{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"})}),ft("div",{className:"absolute left-16 z-50 top-4 flex flex-col items-start gap-4",children:o&&ft("div",{className:"h-24",children:ft(qd,{src:o.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),ft("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),Fs("div",{className:"relative pl-24 z-10 max-w-3xl",children:[ft("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:t}),a.richText&&ft(W,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};import{Fragment as Nf,jsx as ot,jsxs as Zd}from"react/jsx-runtime";var fn=e=>{let[t,a]=hf(0),{blocks:o,hero:r,logoImage:s}=e,n=o&&Array.isArray(o)&&o.length>0,d=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o],m=f=>{a(f)},c=()=>{a(f=>(f+1)%d.length)},p=()=>{a(f=>(f-1+d.length)%d.length)},g=xf(((f,y)=>{let R;return(...P)=>{clearTimeout(R),R=setTimeout(()=>f(...P),y)}})(f=>{f.deltaY>0?c():p()},300),[]),b=f=>{f.key==="ArrowDown"?c():f.key==="ArrowUp"&&p()};return yf(()=>(window.addEventListener("wheel",g),window.addEventListener("keydown",b),()=>{window.removeEventListener("wheel",g),window.removeEventListener("keydown",b)}),[]),Zd("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[ot("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-900",children:n&&d.map((f,y)=>ot("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===y?"bg-accent":"bg-gray-600"}`,onClick:()=>m(y),children:ot("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:f.blockName})},f.id))}),ot(ec,{children:d.map((f,y)=>ot("div",{id:`slide-${y}`,className:"print-section",children:ot("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
18
+ ${y===t?"opacity-100":"opacity-0"}
19
+ w-full h-full bg-cover bg-center`,children:y===0?ot(Gr,{hero:r,title:e.title,logoImage:s}):Zd(Nf,{children:[f.blockName&&ot($r,{title:f.blockName}),ot(Po,{blocks:[f],fill:!0}),ot(Qd,{logoImage:s})]})})},y))}),ot("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:c,children:ot(wf,{})})]})},wf=()=>ot(ec,{children:ot(Jd.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:l("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-accent"),children:ot(Jd.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:l("w-[12px] h-[12px] rounded-full","bg-accent")})})});import Cf from"next/link";import kf from"next/image";import{jsx as _r,jsxs as bn}from"react/jsx-runtime";function Pf({blogs:e,width:t=3}){return _r("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:_r("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>_r(Cf,{href:`/insights/${a.slug}`,className:"group rounded-2xl overflow-hidden border bg-card text-card-foreground shadow hover:shadow-lg transition-shadow",children:bn("div",{className:"relative size-full",children:[_r(kf,{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"}),bn("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-to-t from-card to-transparrent flex flex-col justify-end",children:[bn("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(r=>`${r.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),_r("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))})})}import{jsx as qe,jsxs as bt}from"react/jsx-runtime";function Sf({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:n,companiesCount:i,dealsClosed:d,leadsGenerated:m}){return qe("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:bt("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[bt("div",{className:"max-w-4xl",children:[qe("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),qe("h1",{className:"mt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),qe("p",{className:"mt-6 text-balance text-xl/8 text-gray-700",children:a})]}),bt("section",{className:"mt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-x-8 lg:gap-y-16",children:[bt("div",{className:"lg:pr-8",children:[qe("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),qe("p",{className:"mt-6 text-base/7 text-gray-600",children:r})]}),qe("div",{className:"pt-16 lg:row-span-2 lg:-mr-16 xl:mr-auto",children:qe("div",{className:"-mx-8 grid grid-cols-2 gap-4 sm:-mx-16 sm:grid-cols-4 lg:mx-0 lg:grid-cols-2 lg:gap-4 xl:gap-8",children:s.map((c,p)=>qe("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:qe("img",{alt:"",src:c,className:"block size-full object-cover"})},p))})}),bt("div",{className:"max-lg:mt-16 lg:col-span-1",children:[qe("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),qe("hr",{className:"mt-6 border-t border-gray-200"}),bt("dl",{className:"mt-6 grid grid-cols-1 gap-x-8 gap-y-4 sm:grid-cols-2",children:[bt("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[qe("dt",{className:"text-sm/6 text-gray-600",children:"Raised"}),bt("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",n]})]}),bt("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[qe("dt",{className:"text-sm/6 text-gray-600",children:"Companies"}),bt("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[i,"K"]})]}),bt("div",{className:"flex flex-col gap-y-2 max-sm:border-b max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[qe("dt",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),bt("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[d,"M"]})]}),bt("div",{className:"flex flex-col gap-y-2",children:[qe("dt",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),bt("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"M"]})]})]})]})]})]})})}import{useEffect as Hs,useRef as nr,useState as Rf,useCallback as tc}from"react";import{Previewer as js}from"pagedjs";import{Fragment as oc,jsx as Be,jsxs as Ro}from"react/jsx-runtime";function Tf(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 ir=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)},ac=({page:e,layout:t="portrait",logoImage:a})=>t==="flow"?Be(Df,{page:e,layout:t,logoImage:a}):Be(Af,{page:e,layout:t,logoImage:a}),Df=({page:e,layout:t="portrait",logoImage:a})=>{let{contentWithIds:o}=Nr(e),r=nr(null),s=nr(null),n=nr(new js),i={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};Hs(()=>{let c=document.getElementById("printable-content");if(c){let p=document.createElement("style");return p.textContent=`@page { size: ${ir(c.offsetWidth)}mm ${ir(c.offsetHeight)}mm ; margin: 0mm; width: ${ir(c.offsetWidth)}mm }; .container : { max-width: ${ir(c.offsetWidth)}mm; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(p),()=>{document.head.removeChild(p)}}},[t]);let d=tc(()=>{if(!s.current)return;s.current&&(s.current.innerHTML="");let c=document.getElementById("printable-content");c&&n.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${ir(c.offsetWidth)}mm ${ir(c.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],s.current).catch(p=>console.error("Paged.js error:",p))},[t]);Hs(()=>{n.current=new js},[d,t]);let m=[i,...o];return Ro("div",{children:[Be("div",{className:"w-[1123px] print:w-[1123px]",children:Ro("div",{id:"printable-content",ref:r,children:[m.map((c,p)=>Be(oc,{children:p===0?Be("section",{className:"title-page w-full h-full",children:Be(Gr,{hero:e.hero,title:e.title})},p):Ro("section",{className:"normal-page overflow-hidden",children:[c.blockName&&Be($r,{title:c.blockName}),Be(Po,{blocks:[c],fill:!0})]},p)})),Be("section",{className:"normal-page",children:Ro("div",{className:`w-full py-2 px-8 flex justify-between items-center
20
+ dark bg-background text-primary`,children:[Ro("div",{className:"flex px-6 items-center space-x-2",children:[a&&Be("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),Be("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),Be("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),Be("div",{ref:s,className:"preview-container"})]})},Af=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=Nr(e),o=nr(null),r=nr(null),s=nr(new js),[n,i]=Rf(0),m=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],c=tc(()=>{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 Hs(()=>{s.current=new js,c()},[c,t]),Hs(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),Ro("div",{className:"pagedjs-container",children:[Be("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:m.map((p,u)=>Be(oc,{children:u===0?Be("section",{className:"pagedjs-section title-page w-full h-full",children:Be(Gr,{hero:e.hero,title:e.title})},u):Ro("section",{className:l("pagedjs-section normal-page h-[699px]",`h-[${Tf("185mm")}px]`,p.theme?.settings?.theme==="dark"?"dark":"light"),children:[p.blockName&&Be($r,{title:p.blockName}),Be(Po,{blocks:[p],fill:!0})]},u)}))}),Be("div",{ref:o,className:"preview-container"})]})};import{ChevronRight as Mf}from"lucide-react";import rc from"clsx";import{Fragment as Lf,jsx as L,jsxs as ga}from"react/jsx-runtime";function eP({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:n,loading:i=!1,LinkComponent:d,...m}){let p=d?u=>L(d,{...u}):n?({href:u,children:g,...b})=>L("button",{onClick:()=>n&&n(u),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...b,children:g}):u=>L("a",{...u});return ga(Wo,{...m,variant:"inset",children:[L(Ko,{children:L(Ct,{children:L(Ze,{children:i?ga("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[L(De,{className:"bg-gray-200 my-2 w-full h-7"}),L(De,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):ga("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[L("span",{className:"truncate font-semibold",children:a}),o&&L("span",{className:"truncate text-sm",children:o})]})})})}),i&&ga(mo,{children:[L(De,{className:"bg-gray-200 w-3/4 h-5"}),L(De,{className:"bg-gray-200 w-3/4 h-5"}),L(De,{className:"bg-gray-200 w-3/4 h-5"}),L(De,{className:"bg-gray-200 w-3/4 h-5"}),L(De,{className:"bg-gray-200 w-3/4 h-5"}),L(De,{className:"bg-gray-200 w-3/4 h-5"}),L(De,{className:"bg-gray-200 w-3/4 h-5"}),L(De,{className:"bg-gray-200 w-3/4 h-5"}),L(De,{className:"bg-gray-200 w-3/4 h-5"}),L(De,{className:"bg-gray-200 w-3/4 h-5"})]}),ga(mo,{children:[e&&!i&&e.map((u,g)=>L(If,{subNav:u,pathName:r,Link:p},g)),L(Vt,{className:"mt-auto",children:L(ra,{children:L(Ct,{children:t&&!i&&t.map(u=>L(Ze,{children:L(Ut,{asChild:!0,size:"sm",children:ga(p,{href:u.url||"",children:[u.icon&&L(u.icon,{}),L("span",{children:u.label})]})})},u.label))})})})]}),L(Xo,{})]})}function If({subNav:e,pathName:t,Link:a}){let o=e,r=!1;return o.links&&o.links.map(s=>{s.url===t&&(r=!0)}),L(Ga,{defaultOpen:!0,className:"group/collapsible",children:L(Vt,{className:"py-0",children:L(Ct,{children:L(Ga,{asChild:!0,defaultOpen:o.isActive,children:ga(Ze,{children:[L(Ut,{asChild:!0,tooltip:o.label,className:rc(r&&"font-bold text-accent"),children:ga(a,{href:o.url,children:[o.icon&&L(o.icon,{}),L("span",{children:o.label})]})}),o.links?.length?ga(Lf,{children:[L(no,{asChild:!0,children:ga(rs,{className:"data-[state=open]:rotate-90",children:[L(Mf,{}),L("span",{className:"sr-only",children:"Toggle"})]})}),L(lo,{children:L(po,{children:o.links?.map(s=>L(uo,{children:L(go,{asChild:!0,className:rc(s.url===t&&"font-bold text-accent"),children:L(a,{href:s.url,children:L("span",{children:s.label})})})},s.label))})})]}):null]})},o.label)})})})}import{PencilLine as Bf,ChevronDown as vn,FilePlus as zf,Edit as Ef,Printer as Ff}from"lucide-react";import Hf from"clsx";import{Fragment as sc,jsx as D,jsxs as Ce}from"react/jsx-runtime";var jf=()=>D(at,{iconName:"github",size:"10x"});function dP({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:n,onPrintDocument:i,onGithubClick:d,onNavClick:m,LinkComponent:c,...p}){let b=c?f=>D(c,{...f}):m?({item:f,children:y,...R})=>D("button",{onClick:()=>m&&m(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...R,children:y}):f=>D("a",{href:f.href,...f});return Ce(Wo,{side:"right",variant:"inset",...p,children:[Ce(Ko,{className:"border-b border-sidebar-border",children:[Ce(Ct,{className:"flex-row space-x-1",children:[D(Ze,{children:Ce(Ut,{onClick:s,children:[D(zf,{})," ",D("span",{children:"Add Document"})]})}),d&&D(Ze,{children:D(Ut,{onClick:d,tooltip:"Open in GitHub",children:D(jf,{})})})]}),Ce(Ct,{className:"flex-row space-x-1",children:[D(Ze,{className:"w-5/12",children:Ce(Ut,{onClick:()=>n(),variant:r?"outline":"default",className:Hf(r&&"text-accent"),children:[D(Ef,{})," ",D("span",{children:"Edit"})]})}),D(Ze,{className:"w-5/12",children:Ce(Ut,{onClick:i,children:[D(Ff,{})," ",D("span",{children:"Print"})]})})]})]}),a&&Ce(sc,{children:[D(Ga,{defaultOpen:!0,className:"group/collapsible",children:Ce(Vt,{children:[D(Va,{asChild:!0,children:Ce(no,{children:["Editor Controls",D(vn,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),D(ra,{children:D(lo,{children:a})})]})}),D(os,{className:"mx-0"})]}),Ce(mo,{className:"overflow-auto",children:[o&&Ce(sc,{children:[Ce(Vt,{children:[D(Va,{children:"Related Content"}),D(ra,{children:D(Ct,{children:Array.from({length:3}).map((f,y)=>D(Ze,{children:D(De,{className:"bg-gray-200 w-full h-10"})},y))})})]}),Ce(Vt,{children:[D(Va,{children:"Table of Contents"}),D(ra,{children:D(Ct,{children:Array.from({length:3}).map((f,y)=>D(Ze,{children:D(De,{className:"bg-gray-200 w-full h-10"})},y))})})]})]}),e&&!o&&Object.keys(e).length>0&&D(Ga,{defaultOpen:!0,className:"group/collapsible",children:Ce(Vt,{children:[D(Va,{asChild:!0,children:Ce(no,{children:["Related Content",D(vn,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),D(ra,{children:D(lo,{children:D(Ct,{children:e&&Object.keys(e).map(f=>Ce(Ze,{children:[Ce("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",f.charAt(0).toUpperCase()+f.slice(1)]}),f&&e[f]&&D(po,{children:e[f].map(y=>D(uo,{children:D(go,{asChild:!0,isActive:!1,size:"sm",children:Ce(b,{href:y.url,item:y,className:"flex justify-between items-center w-full text-xs",children:[D("span",{children:y.label}),y.type==="note"&&D(Bf,{className:"ml-2 text-gray-400 !important",size:16}),y.type==="draft"&&D(at,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},y.label))})]},f))})})})]})}),t&&!o&&D(Ga,{defaultOpen:!0,className:"group/collapsible",children:Ce(Vt,{children:[D(Va,{asChild:!0,children:Ce(no,{children:["Table of Contents",D(vn,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),D(ra,{children:D(lo,{children:D(Ct,{children:t.map(f=>Ce(Ze,{children:[D(Ut,{asChild:!0,children:D("a",{href:`#${f.url}`,className:"text-xs",children:f.title})}),f.items?.length?D(po,{children:f.items.map(y=>D(uo,{children:D(go,{asChild:!0,isActive:y.isActive,size:"sm",children:D("a",{href:`#${y.url}`,className:"flex justify-between items-center w-full text-xs",children:D("span",{children:y.title})})})},y.title))}):null]},f.title))})})})]})})]}),D(Xo,{})]})}import{Users as Of}from"lucide-react";import $f from"next/image";import{jsx as Ja,jsxs as Os}from"react/jsx-runtime";function fP({title:e,members:t}){return Ja(Y,{className:"mb-6",children:Os("div",{className:"p-6",children:[Os("div",{className:"flex items-center mb-4",children:[Ja(Of,{className:"w-6 h-6 text-accent mr-2"}),Ja("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),Ja("div",{className:"space-y-4",children:t.map((a,o)=>Os("div",{className:"flex items-center space-x-4",children:[Ja("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&Ja($f,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),Os("div",{children:[Ja("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&Ja("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}import Gf from"next/link";import{ExternalLink as _f}from"lucide-react";import{jsx as Vr,jsxs as ic}from"react/jsx-runtime";var wP=({links:e,title:t="Related Content"})=>ic(Y,{children:[Vr(de,{children:Vr(ce,{className:"text-accent",children:t})}),Vr(J,{children:Vr("nav",{className:"flex flex-col space-y-2",children:e.map((a,o)=>ic(Gf,{href:a.href,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.name,a.href.startsWith("http")&&Vr(_f,{className:"ml-1 h-3 w-3"})]},o))})})]});import{useSearchParams as Vf,usePathname as Uf,useRouter as Wf}from"next/navigation";import{FaArrowRight as Kf,FaArrowLeft as Xf}from"react-icons/fa6";import{useState as Yf}from"react";import{jsx as Ma,jsxs as qf}from"react/jsx-runtime";var hn=l("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function nc({pages:e}){let t=Vf(),a=Uf(),{replace:o}=Wf(),{totalPages:r,page:s}=e,[n,i]=Yf({start:s>3?s-3:1,end:s+2}),d=p=>{p==="left"&&n.start>1?i(u=>({start:u.start-1,end:u.end-1})):p==="right"&&n.end<r&&i(u=>({start:u.start+1,end:u.end+1}))};function m(p){let u=new URLSearchParams(t);p?u.set("page",p):u.delete("page"),o(`${a}?${u.toString()}`)}if(r<=1)return null;let c=[];for(let p=n.start;p<=n.end;p++)c.push(p);return Ma("div",{className:"mt-12",children:qf("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[n.start>1&&Ma("li",{children:Ma("button",{className:l(hn,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>d("left"),children:Ma(Xf,{})})}),c.map((p,u)=>Ma("li",{children:Ma("a",{className:l(hn,p===s?"border-accent bg-accent text-accent-foreground":"border-accent"),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:g=>{g.preventDefault(),m(p.toString())},children:p})},u)),n.end<r&&Ma("li",{children:Ma("button",{className:l(hn,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>d("right"),children:Ma(Kf,{})})})]})})}import{useSearchParams as Qf,usePathname as Jf,useRouter as Zf}from"next/navigation";import{ExternalLink as e0}from"lucide-react";import{jsx as lr,jsxs as lc}from"react/jsx-runtime";var BP=l("transition-colors duration-400 hover:text-primary ease-in-out");function dc({title:e,links:t}){let a=Qf(),o=Jf(),{replace:r}=Zf();function s(n){let i=new URLSearchParams(a);n?i.set("category",n):i.delete("category"),r(`${o}?${i.toString()}`)}return lc(Y,{children:[lr(de,{children:lr(ce,{className:"text-accent",children:e&&e})}),lr(J,{children:t&&t.length>0&&lr("nav",{"aria-label":"footer links navigation",children:lr("ul",{className:"grid gap-2.5 ",children:t.map((n,i)=>lc("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:d=>{d.preventDefault(),s(n.href)},children:[n.label,lr(e0,{className:"ml-1 h-3 w-3"})]},i))})})})]})}import{useState as t0}from"react";import{useSearchParams as a0,usePathname as o0,useRouter as r0}from"next/navigation";import{jsx as cc}from"react/jsx-runtime";function mc({types:e}){let[t,a]=t0(e&&e[0].href),o=a0(),r=o0(),{replace:s}=r0();function n(i){let d=new URLSearchParams(o);i?d.set("type",i):d.delete("type"),a(i),s(`${r}?${d.toString()}`)}return cc("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-x-auto pb-4 mb-6",children:e&&e.map((i,d)=>cc(C,{variant:i.href===t?"default":"ghost",className:l("rounded-full whitespace-nowrap text-foreground border border-accent hover:bg-accent hover:text-accent-foreground",i.href===t&&"bg-accent text-accent-foreground"),onClick:()=>n(i.href),children:i.label},d))})}import s0 from"next/image";import{jsx as Re,jsxs as To}from"react/jsx-runtime";var pc=({links:e,media:t,children:a,richText:o})=>Re("div",{children:To("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[To("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[a||o&&Re(W,{className:"max-w-none p-0 mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&Re("ul",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>Re("li",{children:Re(la,{...r})},s))})]}),To("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&Re(da,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&Re("div",{children:Re(s0,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),Re("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),Re(i0,{})]})}),i0=()=>Re("div",{className:"w-full h-[1240px] z-10",children:To("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:[Re("defs",{children:To("mask",{id:"mask",children:[Re("rect",{width:"1920",height:"332",fill:"white"}),Re("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),Re("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),Re("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});import uc from"next/image";import{jsx as Do,jsxs as l0}from"react/jsx-runtime";var n0=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return Do(uc,{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 Do("div",{children:Do(uc,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},gc=({links:e,media:t,children:a,richText:o})=>l0("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&Do(n0,{media:t}),Do("div",{className:"mx-0 min-w-full relative z-9",children:Do("div",{className:"container text-brand-one-foreground",children:a||o&&Do(W,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});import{jsx as yn}from"react/jsx-runtime";var fc=({children:e,richText:t})=>yn("div",{className:"min-w-full py-10 bg-muted mt-24",children:yn("div",{className:"container",children:e||t&&yn(W,{content:t,enableGutter:!1})})});import d0 from"react";import c0 from"next/image";var bc=e=>{let a=new Date;e&&(a=new Date(e));let o=a.getMonth(),r=a.getDate(),s=o+1<10?`0${o+1}`:o+1,n=r<10?`0${r}`:r,i=a.getFullYear();return`${n}/${s}/${i}`};var $s=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${o}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(o)} ${r}`};import{jsx as fa,jsxs as Ia}from"react/jsx-runtime";var lS=({post:e})=>{let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return Ia("div",{className:"relative grid pt-24",children:[fa("div",{className:"relative z-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground pt-24 p-6 lg:p-12",children:Ia("div",{className:"container mx-auto",children:[fa("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),Ia("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&Ia("div",{className:"flex flex-col gap-1",children:[Ia("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),fa("p",{children:o.map((n,i)=>Ia(d0.Fragment,{children:[n.name,i<o.length-2&&", ",i===o.length-2&&(o.length>2?", and ":" and ")]},n.id))})]}),r&&Ia("div",{className:"flex flex-col gap-1",children:[fa("p",{className:"text-sm",children:"Date Published"}),fa("time",{dateTime:r,children:bc(r)})]}),t&&t.length>0&&Ia("div",{className:"flex flex-col gap-1",children:[fa("p",{className:"text-sm font-medium",children:"Categories"}),fa("div",{className:"flex flex-wrap gap-2",children:t.map((n,i)=>typeof n=="object"&&n!==null&&fa(Me,{className:"px-3 py-1 mx-1",children:n.title||"Untitled category"},n.id||i))})]})]})]})}),Ia("div",{className:"absolute inset-0 w-full h-full",children:[fa(c0,{className:"object-cover",alt:`Cover image for ${s}`,src:a?.image?.url||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),fa("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"})]})]})};import{ChevronRightIcon as g0,HomeIcon as f0}from"@heroicons/react/20/solid";import vc from"next/image";import{jsx as m0}from"react/jsx-runtime";function Tt({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=l("container",t&&"full-width",a&&"no-padding",o);return m0("div",{className:r,children:e})}import{ThemeProvider as p0}from"next-themes";import{jsx as u0}from"react/jsx-runtime";function fS({children:e,...t}){return u0(p0,{...t,children:e})}import{jsx as oe,jsxs as La}from"react/jsx-runtime";var Ft=({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 oe("div",{className:"w-full h-[1240px] z-20",children:La("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:l(t,"absolute -bottom-[2px] flex"),children:[oe("defs",{children:La("mask",{id:"mask",children:[oe("rect",{width:"1920",height:"332",fill:"white"}),oe("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),oe("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),oe("rect",{y:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return La("div",{className:"w-full z-20 aspect-[1920/332] overflow-hidden ",children:[La("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:l(t,"absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end",transform:"scale(-1, 1)"},children:[oe("defs",{children:La("mask",{id:"mask",children:[oe("rect",{width:"100%",height:"100%",fill:"white"}),oe("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),oe("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]}),oe("div",{className:"absolute -bottom-[5px] border-none left-0 w-full h-[6px] z-10 bg-white"})]});if(e==="dark-top")return oe("div",{className:"w-full aspect-[1920/332] z-20 content-end block overflow-hidden",children:La("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:l(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[oe("defs",{children:La("mask",{id:"mask",children:[oe("rect",{width:"100%",height:"100%",fill:"white"}),oe("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),oe("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-bottom")return oe("div",{className:"w-full aspect-[1920/332] z-20 content-start block overflow-hidden bg-white",children:oe("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:l(t,"w-full block overflow-hidden"),children:oe("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="light-bottom")return oe("div",{className:"w-full aspect-[1920/332] z-20 content-end block overflow-hidden",children:oe("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:l(t,"w-full block overflow-hidden"),transform:a[3],children:oe("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 oe("div",{className:"w-full aspect-[1920/332] z-20 relative -bottom-[1px]",children:oe("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:l(t,"w-full block overflow-hidden"),children:oe("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},yS=({className:e})=>La("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:l(e,"absolute w-full h-full"),children:[oe("defs",{children:La("mask",{id:"mask",children:[oe("rect",{width:"100%",height:"100%",fill:"black"}),oe("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"})]})}),oe("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});import{jsx as Za,jsxs as hc}from"react/jsx-runtime";var yc=({title:e,image:t})=>Za("div",{children:hc("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[Za("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-start",children:Za("h1",{className:"text-5xl md:text-6xl",children:e})}),hc("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&Za(vc,{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"&&Za("div",{children:Za(vc,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),Za("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),Za(Ft,{className:"text-black z-10",position:"header"})]})});import{Fragment as v0,jsx as Zt,jsxs as xn}from"react/jsx-runtime";var b0={highImpact:pc,lowImpact:fc,mediumImpact:gc,sectionHero:yc},MS=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=b0[t];return a?Zt(a,{...e}):null};function IS({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return Zt("nav",{"aria-label":"Breadcrumb",className:"flex",children:xn("ol",{role:"list",className:"flex items-center space-x-4",children:[Zt("li",{children:Zt("div",{children:xn("a",{href:"/",className:"text-foreground hover:text-accent",children:[Zt(f0,{"aria-hidden":"true",className:"size-5 shrink-0"}),Zt("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>Zt("li",{children:xn("div",{className:"flex items-center",children:[Zt(g0,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?Zt("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):Zt("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return Zt(v0,{})}import{motion as x0}from"framer-motion";import{useState as h0,useEffect as y0}from"react";function xc(e,t){let[a,o]=h0(()=>{if(typeof window>"u")return t;try{let s=window.localStorage.getItem(e);return s?JSON.parse(s):t}catch{return t}}),r=s=>{try{o(s),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(s))}catch{}};return y0(()=>{r(a)},[]),[a,r]}import{FaChevronDown as w0,FaChevronUp as N0}from"react-icons/fa";import{jsx as ba,jsxs as Ao}from"react/jsx-runtime";function dr({title:e,description:t,badge:a,primaryAction:o,secondaryAction:r,gradient:s,children:n,className:i}){let[d,m]=xc(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!r&&!t),c=!r&&!t||d;return Ao(x0.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${s} p-8 text-white ${i||""}`,children:[Ao("div",{className:"flex items-center justify-between mb-2",children:[Ao("div",{className:"flex items-center gap-3",children:[a&&ba(Me,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:a}),ba("h2",{className:"text-3xl font-bold m-0",children:e})]}),Ao("div",{className:"flex items-center gap-3",children:[c&&o&&ba(C,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),(r||t)&&ba("button",{"aria-label":d?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>m(!d),style:{lineHeight:0},children:d?ba(w0,{size:22}):ba(N0,{size:22})})]})]}),!c&&Ao("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[Ao("div",{className:"space-y-4",children:[ba("p",{className:"max-w-[600px] text-white/80",children:t}),Ao("div",{className:"flex flex-wrap gap-3",children:[o&&ba(C,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),r&&ba(C,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:r.onClick,children:r.label})]})]}),n&&ba("div",{className:"hidden lg:block",children:n})]})]})}import{useState as Gs,useEffect as T0}from"react";import{Dialog as D0,DialogPanel as A0,Disclosure as M0,DisclosureButton as Nc,DisclosurePanel as I0,PopoverGroup as L0}from"@headlessui/react";import{Bars3Icon as B0,XMarkIcon as z0}from"@heroicons/react/24/outline";import{SunIcon as Cc,MoonIcon as E0}from"@heroicons/react/20/solid";import{Popover as C0,PopoverButton as k0,PopoverPanel as P0}from"@headlessui/react";import{ChevronDownIcon as S0}from"@heroicons/react/20/solid";import{jsx as Qe,jsxs as eo}from"react/jsx-runtime";var R0=({name:e,items:t,actions:a=[],href:o})=>!t&&o?Qe("a",{href:o,className:"flex items-center gap-x-1 text-sm text-foreground group",children:eo("span",{className:"relative",children:[e,Qe("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"})]})}):eo(C0,{children:[eo(k0,{className:"flex items-center gap-x-1 text-sm/6 text-foreground outline-none group",children:[eo("span",{className:"relative",children:[e,Qe("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"})]}),Qe(S0,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),eo(P0,{transition:!0,className:"absolute inset-x-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[Qe("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 z-50",children:t&&t.map(r=>eo("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[Qe("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&&Qe(wc,{icon:r.icon,size:"4x"})}),eo("a",{href:r.href,className:"mt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,Qe("span",{className:"absolute inset-0"})]}),Qe("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&Qe("div",{className:"bg-gray-50",children:Qe("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:Qe("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:a.map(r=>eo("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-x-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&Qe(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 Qe(at,{...e,size:a});if("src"in e)return Qe("div",{className:l(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&Qe("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},cr=R0;import{jsx as ue,jsxs as va}from"react/jsx-runtime";var _s=["light","dark","green"];function r4({title:e,logo:t,menuItems:a}){let[o,r]=Gs(!1),[s,n]=Gs(!1),[i,d]=Gs("light"),m=t?.split(".")[0],c=t?.split(".")[1],[p,u]=Gs(`${m}.${c}`),g=f=>{_s.includes(f)?u(f==="light"?`${m}.${c}`:`${m}-${f}.${c}`):u(`${m}.${c}`)};T0(()=>{let f=localStorage.getItem("theme")||"light";d(f),document.documentElement.setAttribute("class",f),g(f)},[]);let b=()=>{let f=_s[(_s.indexOf(i)+1)%_s.length];d(f),document.documentElement.setAttribute("class",f),localStorage.setItem("theme",f),g(f)};return va("header",{className:"relative isolate z-10 bg-background h-14",children:[va("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[ue("div",{className:"flex lg:flex-1",children:va("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[ue("span",{className:"sr-only",children:e}),ue("img",{alt:e,src:p,className:"h-9 w-auto"})]})}),ue("div",{className:"flex lg:hidden",children:va("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:[ue("span",{className:"sr-only",children:"Open main menu"}),ue(B0,{"aria-hidden":"true",className:"h-6 w-6"})]})}),ue(L0,{className:"hidden lg:flex lg:gap-x-12",children:a.map(f=>ue(cr,{...f},f.name))}),ue("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:ue("button",{onClick:b,className:"p-2 text-gray-700 outline-none",children:i==="dark"?ue(Cc,{className:"h-6 w-6"}):i==="green"?ue(E0,{className:"h-6 w-6"}):ue(Cc,{className:"h-6 w-6"})})})]}),va(D0,{open:o,onClose:r,className:"lg:hidden",children:[ue("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),va(A0,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[va("div",{className:"flex items-center justify-between",children:[va("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[ue("span",{className:"sr-only",children:"Your Company"}),ue("img",{alt:e,src:t,className:"h-8 w-auto"})]}),va("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[ue("span",{className:"sr-only",children:"Close menu"}),ue(z0,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),ue("div",{className:"mt-6 flow-root",children:ue("div",{className:"-my-6 divide-y divide-gray-500/10",children:ue("div",{className:"space-y-2 py-6",children:a.map(f=>ue(F0,{...f},f.name))})})})]})]})]})}function F0({name:e,items:t,actions:a,href:o}){return!t&&o?ue("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}):va(M0,{as:"div",className:"-mx-3",children:[ue(Nc,{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}),ue(I0,{className:"mt-2 space-y-2",children:t&&t.map(r=>ue(Nc,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}import{jsx as Mo,jsxs as wn}from"react/jsx-runtime";function l4({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let n=()=>{let i=document.getElementById("next-section");i&&i.scrollIntoView({behavior:"smooth"})};return Mo("div",{children:wn("div",{className:"sticky top-0 h-screen",children:[wn("video",{className:"fixed inset-0 object-cover w-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[Mo("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),Mo("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-start justify-center text-white px-4",children:Mo(Tt,{children:wn("div",{className:"flex flex-col items-start md:w-2/3 mb-10 z-0 md:mb-0",children:[Mo("h1",{className:"text-5xl md:text-7xl mb-6",children:r&&r}),Mo("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),Mo(Ft,{className:"text-black z-10",position:"header"})]})})}import{useState as Sc,useEffect as Rc}from"react";import kc from"next/image";import{jsx as Pc,jsxs as H0}from"react/jsx-runtime";function Io({logoLight:e,logoDark:t,mobile:a=!1}){return H0(Xe,{href:"/",className:l(a?"py-1":"py-2"),children:[Pc(kc,{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}}),Pc(kc,{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}})]})}import{useTheme as j0}from"next-themes";import{Moon as O0,Sun as $0}from"lucide-react";import{PopoverGroup as G0}from"@headlessui/react";import{Fragment as _0,jsx as Ba,jsxs as Tc}from"react/jsx-runtime";function Dc({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[n,i]=Sc(!1),[d,m]=Sc(""),c=["light","dark"],{theme:p,setTheme:u}=j0();Rc(()=>{m(p||"dark")},[p]);let g=()=>{let b=c[(c.indexOf(d)+1)%c.length];m(b),u(b)};return Rc(()=>{let b=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),Ba(_0,{children:Ba("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${n||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:Ba("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:Tc("div",{className:l("flex items-center justify-between px-9 py-0",!s&&"container"),children:[Ba(Io,{logoDark:a,logoLight:t}),Ba(G0,{className:"hidden lg:flex lg:gap-x-12",children:o&&o.map(b=>Ba(cr,{...b},b.name))}),r&&Ba("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:g,children:Tc("div",{className:"relative",children:[Ba($0,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),Ba(O0,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}import{useState as Nn,useEffect as Ac}from"react";import{Dialog as V0,DialogPanel as U0,Disclosure as W0,DisclosureButton as Mc,DisclosurePanel as K0}from"@headlessui/react";import{Bars3Icon as X0,XMarkIcon as Y0}from"@heroicons/react/24/outline";import{useTheme as q0}from"next-themes";import{Fragment as J0,jsx as Ge,jsxs as to}from"react/jsx-runtime";var Cn=["light","dark"];function Ic({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=Nn(!1),{theme:n,setTheme:i}=q0(),[d,m]=Nn(!1),[c,p]=Nn("light");Ac(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),Ac(()=>{p(n||"dark")},[n]);let u=()=>{let g=Cn[(Cn.indexOf(c)+1)%Cn.length];p(g),i(g)};return Ge(J0,{children:to("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[Ge("nav",{className:l("backdrop-blur-sm text-white p-0",d&&"hidden"),children:to("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[Ge(Io,{logoDark:t,logoLight:e,mobile:!0}),Ge("div",{className:"flex items-center space-x-4",children:to("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[Ge("span",{className:"sr-only",children:"Open main menu"}),Ge(X0,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),to(V0,{open:d,onClose:m,className:"lg:hidden",children:[Ge("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),to(U0,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-background dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[to("div",{className:"flex items-stretch justify-between",children:[Ge(Io,{logoDark:t,logoLight:e,mobile:!0}),to("button",{type:"button",onClick:()=>m(!1),className:"-m-2.5 rounded-md p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[Ge("span",{className:"sr-only",children:"Close menu"}),Ge(Y0,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),Ge("div",{className:"mt-6 flow-root",children:Ge("div",{className:"-my-6 divide-y divide-gray-500/10",children:Ge("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(g=>Ge(Q0,{...g},g.name))})})})]})]})]})})}function Q0({name:e,items:t,actions:a,href:o}){return!t&&o?Ge("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}):to(W0,{as:"div",className:"-mx-3",children:[Ge(Mc,{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}),Ge(K0,{className:"mt-2 space-y-2",children:t&&t.map(r=>Ge(Mc,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}import{FaChevronRight as Z0,FaEnvelope as eb,FaPaperPlane as tb,FaPhone as ab}from"react-icons/fa6";import{jsx as q,jsxs as ea}from"react/jsx-runtime";var O4=l("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),Lc=l("text-brand-green text-md leading-[1.25] md:text-lg mb-5 md:mb-[1.5rem]"),kn=l("bg-brand-green rounded-full p-3 mr-4 text-2xl"),Pn=l("flex items-center text-white gap-3"),Vs=l("transition-colors duration-300 hover:text-accent dark:hover:text-white");function $4({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:n,footerBottom:i}=t,d=void 0;return ea("footer",{className:l("sticky z-2 flex flex-col dark bg-black overflow-hidden pt-12 prose-base",e),children:[q("div",{className:"py-16 md:py-20",children:q("div",{className:"container",children:ea("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-3",children:[ea("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[q(Io,{logoDark:o,logoLight:a}),q("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&q("nav",{"aria-label":"social links",children:q("ul",{className:"inline-flex pl-0 min-h-[50px] items-center rounded-5 text-white gap-2",children:r.socialLinks.map((m,c)=>q("li",{className:"bg-primary rounded-full p-3",children:q(Xe,{"aria-label":m.href,className:"text-2xl",href:m.href,openNewTab:!0,children:q("span",{children:m.icon})})},c))})})]}),ea("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[q("h3",{className:Lc,children:s.title}),s.links&&s.links.length>0&&q("nav",{"aria-label":"footer links navigation",children:q("ul",{className:"grid pl-0 gap-2",children:s.links.map(m=>ea("li",{className:"flex items-center gap-2.5",children:[q("span",{className:"flex-none text-sm/[1] text-white",children:q(Z0,{})}),q(Xe,{href:m.href,openNewTab:m.openNewTab,className:Vs,children:m.label})]},m.label))})})]}),ea("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[q("h3",{className:Lc,children:n.title}),ea("ul",{"aria-label":"addresses",className:"grid gap-2 pl-0",children:[ea("li",{className:Pn,children:[q("span",{className:kn,children:q(tb,{})}),q("address",{className:"not-italic",children:n.location})]}),ea("li",{className:Pn,children:[q("span",{className:kn,children:q(eb,{})}),n.mails&&n.mails.length>0&&q("div",{className:"grid gap-1",children:n.mails.map((m,c)=>q("a",{href:`mailto:${m}`,className:Vs,children:m},c))})]}),n.phoneNumbers&&n.phoneNumbers.length>0&&ea("li",{className:Pn,children:[q("span",{className:kn,children:q(ab,{})}),q("div",{className:"grid gap-1",children:n.phoneNumbers.map((m,c)=>q("a",{href:`tel:${m.split(" ").join("")}`,className:Vs,children:m},c))})]})]})]})]})})}),q("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:q("div",{className:"container",children:ea("div",{className:"flex flex-wrap items-center text-xs justify-between gap-x-8 gap-y-4 md:gap-x-10",children:[q("p",{children:i.copyrightText}),i.links&&i.links.length>0&&q("nav",{"aria-label":"footer bottom navigation",children:q("ul",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:i.links.map(m=>q("li",{children:q(Xe,{"aria-label":`Go to page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:Vs,children:m.label})},m.label))})})]})})})]})}import{jsx as Bc,jsxs as ob}from"react/jsx-runtime";function K4({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:n=!1}){return ob("div",{className:l("fixed top-0 left-0 right-0 z-50",r),children:[Bc(Dc,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:n,wide:s}),Bc(Ic,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}import{PopoverGroup as rb}from"@headlessui/react";import{Fragment as sb,jsx as mr}from"react/jsx-runtime";function Z4({menuItems:e,wide:t=!1,dark:a=!0}){return mr(sb,{children:mr("menu",{className:l("w-full relative py-2 transition-all duration-300",a?"bg-black text-white":"light bg-background text-foreground border-b border-accent"),children:mr("div",{className:"container backdrop-blur-sm",children:mr("div",{className:l("flex items-center justify-between py-0",!t&&"container"),children:mr(rb,{className:"flex gap-x-12",children:e&&e.map(o=>mr(cr,{...o},o.name))})})})})})}import{useState as ib}from"react";import{Toaster as nb,toast as Us}from"sonner";import{useRouter as lb}from"next/navigation";import{jsx as rt,jsxs as Dt}from"react/jsx-runtime";function zc({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=ib([]),s=lb(),n=()=>{o.length===e.length?r([]):r(e.map(c=>c.id))},i=c=>{r(p=>p.includes(c)?p.filter(u=>u!==c):[...p,c])},d=async()=>{let c=await t(o);c.success?(Us.success(c.message),s.refresh()):Us.error(`Error: ${c.message}`),r([])},m=async()=>{let c=await a(o);c.success?(Us.success(c.message),s.refresh()):Us.error(`Error: ${c.message}`),r([])};return Dt("div",{className:"space-y-4",children:[Dt("div",{className:"flex justify-between items-center",children:[rt("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),Dt("div",{className:"space-x-2",children:[rt(C,{onClick:d,disabled:o.length===0,variant:"default",children:"Approve Selected"}),rt(C,{onClick:m,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),rt("div",{className:"overflow-hidden sm:rounded-md",children:Dt("ul",{className:"divide-y divide-gray-200",children:[rt("li",{className:"px-4 py-4 sm:px-6",children:Dt("div",{className:"flex items-center justify-between",children:[Dt("div",{className:"flex items-center",children:[rt(na,{id:"select-all",checked:o.length===e.length,onCheckedChange:n,className:"border-accent"}),rt("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),Dt("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(c=>rt("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:Dt("div",{className:"flex items-center justify-between",children:[Dt("div",{className:"flex items-center",children:[rt(na,{id:`select-${c.id}`,checked:o.includes(c.id),onCheckedChange:()=>i(c.id),className:"border-accent"}),Dt("div",{className:"ml-3 flex items-center",children:[Dt(et,{className:"h-10 w-10",children:[rt(kt,{src:c.userImage,alt:c.userName}),rt(tt,{children:c.userName.split(" ").map(p=>p[0]).join("")})]}),rt("div",{className:"ml-3",children:rt("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:c.userName})})]})]}),Dt("div",{className:"flex items-center space-x-2",children:[Dt("span",{className:"text-sm text-gray-500",children:[new Date(c.startDate).toLocaleDateString(),c.startDate!==c.endDate&&` - ${new Date(c.endDate).toLocaleDateString()}`,c.leaveType!="Full Day"&&` (${c.leaveType})`,` - ${c.totalDays} day${c.totalDays!==1?"s":""}`]}),rt(Me,{variant:c.status==="approved"?"default":c.status==="rejected"?"destructive":"secondary",children:c.status})]})]})},c.id))]})}),rt(nb,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}import{useState as Wr,useEffect as jc}from"react";import{format as Oc}from"date-fns";import{CalendarIcon as $c}from"lucide-react";import{useRouter as db}from"next/navigation";import{Toaster as cb,toast as Ws}from"sonner";var Ec=[{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 Ur=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=Ec.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},Fc=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!Ur(o))return .5;for(;o<=r;)Ur(o)||s++,o.setDate(o.getDate()+1);return s},Hc=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();import{jsx as He,jsxs as Ht}from"react/jsx-runtime";var mb=({options:e,value:t,onChange:a,disabled:o=[]})=>He("div",{className:"flex space-x-2",children:e.map((r,s)=>He(C,{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 Gc({remainingDays:e,submitLeaveRequest:t}){let[a,o]=Wr(new Date),[r,s]=Wr(new Date),[n,i]=Wr("Full Day"),[d,m]=Wr(!1),[c,p]=Wr(1),u=db();jc(()=>{let f=Hc(a,r);m(f),f&&i("Full Day")},[a,r]),jc(()=>{if(!a||!r){p(0);return}let f=Fc(a,r,n!=="Full Day");p(f)},[a,r,n]);let g=f=>{i(f)};return Ht("div",{className:"max-w-2xl",children:[He("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),Ht("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),Ht("form",{onSubmit:async f=>{if(f.preventDefault(),!a||!r){Ws.error("Please select both start and end dates");return}if(c>e){Ws.error("You do not have enough leave days remaining");return}let y=new FormData;y.append("startDate",a.toISOString()),y.append("endDate",r.toISOString()),y.append("leaveType",n),y.append("duration",c.toString());let R=await(t||pb)(y);R.success?(Ws.success(R.message),o(void 0),s(void 0),i("Full Day"),u.refresh()):Ws.error(`Error: ${R.message}`)},className:"space-y-4",children:[Ht("div",{className:"grid grid-cols-2 gap-4",children:[Ht("div",{className:"flex flex-col space-y-2",children:[He(I,{htmlFor:"startDate",children:"Start Date"}),Ht(bs,{children:[He(vs,{asChild:!0,children:Ht(C,{variant:"outline",className:l("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[He($c,{className:"mr-2 h-4 w-4"}),a?Oc(a,"PPP"):He("span",{children:"Pick a date"})]})}),He(Dr,{className:"w-auto p-0",align:"start",children:He(ws,{mode:"single",selected:a,onSelect:f=>{o(f),f&&(!r||f>r)&&s(f)},initialFocus:!0})})]})]}),Ht("div",{className:"flex flex-col space-y-2",children:[He(I,{htmlFor:"endDate",children:"End Date"}),Ht(bs,{children:[He(vs,{asChild:!0,children:Ht(C,{variant:"outline",className:l("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[He($c,{className:"mr-2 h-4 w-4"}),r?Oc(r,"PPP"):He("span",{children:"Pick a date"})]})}),He(Dr,{className:"w-auto p-0",align:"start",children:He(ws,{mode:"single",selected:r,onSelect:s,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),Ht("div",{className:"space-y-2",children:[He(I,{children:"Leave Type"}),He(mb,{options:["Full Day","Morning","Afternoon"],value:n,onChange:g,disabled:[!1,d,d]})]}),Ht("p",{className:"text-sm text-gray-500",children:["Total days: ",c]}),He(C,{disabled:c<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),He(cb,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var pb=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};import{ChevronLeft as ub,ChevronRight as gb}from"lucide-react";import{jsx as we,jsxs as jt}from"react/jsx-runtime";function _c(...e){return e.filter(Boolean).join(" ")}function Vc({currentDate:e,setCurrentDate:t,holidays:a,employees:o}){let r=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},n=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},i=()=>{t(new Date)},d=m=>m.toLocaleString("default",{weekday:"short"}).charAt(0);return jt("div",{className:"px-4 sm:px-6 lg:px-8",children:[jt("div",{className:"sm:flex sm:items-center",children:[jt("div",{className:"sm:flex-auto",children:[we("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),we("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),jt("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[jt(C,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[we("span",{className:"sr-only",children:"Previous month"}),we(ub,{className:"h-5 w-5","aria-hidden":"true"})]}),we(C,{variant:"outline",onClick:i,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),jt(C,{onClick:n,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[we("span",{className:"sr-only",children:"Next month"}),we(gb,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),we("div",{className:"mt-8 flow-root",children:we("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:we("div",{className:"max-h-[60vh] overflow-y-auto",children:jt("table",{className:"min-w-full border-separate border-spacing-0",children:[we("thead",{className:"sticky top-0 z-20 bg-white",children:jt("tr",{children:[we("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(r)].map((m,c)=>{let p=new Date(e.getFullYear(),e.getMonth(),c+1);return jt("th",{scope:"col",className:`sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${Ur(p)?"bg-gray-200":""}`,children:[we("div",{children:d(p)}),we("div",{children:c+1})]},c)})]})}),we("tbody",{children:o.map((m,c)=>jt("tr",{children:[we("td",{className:_c(c!==o.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:jt("div",{className:"flex items-center",children:[jt(et,{className:"h-11 w-11",children:[we(kt,{src:m.image,alt:m.name}),we(tt,{children:m.name.split(" ").map(p=>p[0]).join("")})]}),we("div",{className:"ml-4",children:we("div",{className:"font-medium text-accent",children:m.name})})]})}),[...Array(r)].map((p,u)=>{let g=new Date(e.getFullYear(),e.getMonth(),u+1),b=a.find(f=>f.userId===m.id&&new Date(f.startDate)<=g&&new Date(f.endDate)>=g);return we("td",{className:_c(c!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Ur(g)?"bg-gray-200":"bg-white"),children:we("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?`${m.name}: ${b.status} (${b.startDate} - ${b.endDate}) - ${b.leaveType}`:"",children:b&&b.leaveType!=="Full Day"&&we("div",{className:`h-3 w-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${m.id}-${u}`)})]},m.id))})]})})})})]})}import{useState as fb}from"react";import{ChevronLeft as bb,ChevronRight as vb}from"lucide-react";import{jsx as be,jsxs as _e}from"react/jsx-runtime";function Uc({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=fb(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,n=Array.from({length:42},(c,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))},d=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},m=()=>{t(new Date)};return _e("div",{className:"lg:flex lg:h-full lg:flex-col",children:[_e("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[be("h1",{className:"text-base font-semibold text-foreground",children:be("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),be("div",{className:"flex items-center",children:_e("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[_e(C,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[be("span",{className:"sr-only",children:"Previous month"}),be(bb,{className:"h-5 w-5","aria-hidden":"true"})]}),be(C,{variant:"outline",onClick:m,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),_e(C,{onClick:d,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[be("span",{className:"sr-only",children:"Next month"}),be(vb,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),_e("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[_e("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[_e("div",{className:"bg-white py-2",children:["M",be("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),_e("div",{className:"bg-white py-2",children:["T",be("span",{className:"sr-only sm:not-sr-only",children:"ue"})]}),_e("div",{className:"bg-white py-2",children:["W",be("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),_e("div",{className:"bg-white py-2",children:["T",be("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),_e("div",{className:"bg-white py-2",children:["F",be("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),_e("div",{className:"bg-white py-2",children:["S",be("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),_e("div",{className:"bg-white py-2",children:["S",be("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),_e("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto overflow-visible",children:[be("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px overflow-visible",children:n.map(c=>_e("div",{className:l(c.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2 overflow-visible"),children:[be("time",{dateTime:c.date.toISOString(),className:l("flex h-6 w-6 items-center justify-center rounded-full",c.isToday&&"bg-indigo-600 font-semibold text-white"),children:c.date.getDate()}),c.holidays.length>0&&be("ol",{className:"mt-2 space-y-1 overflow-visible",children:c.holidays.map(p=>be("li",{className:"overflow-visible",children:be("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border overflow-visible`,children:p.userName})},p.id))})]},c.date.toISOString()))}),be("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:n.map(c=>_e("button",{type:"button",className:l(c.isCurrentMonth?"bg-white":"bg-gray-50",(c.date===o||c.isToday)&&"font-semibold",c.date===o&&"text-white",!c.date&&c.isToday&&"text-indigo-600",c.date!==o&&c.isCurrentMonth&&!c.isToday&&"text-gray-900",c.date!==o&&!c.isCurrentMonth&&!c.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[be("time",{dateTime:c.date.toISOString(),className:l("ml-auto",c.date===o&&c.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",c.date===o&&!c.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:c.date.getDate()}),_e("span",{className:"sr-only",children:[c.holidays.length," holidays"]}),c.holidays.length>0&&be("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:c.holidays.map(p=>be("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))})]},c.date.toISOString()))})]})]})]})}import{useState as hb}from"react";import{ChevronDown as yb}from"lucide-react";import{CalendarDays as xb,Grid as wb,PlusCircle as Nb,CheckSquare as Cb}from"lucide-react";import{useRouter as kb}from"next/navigation";import{format as Pb,parseISO as Sb}from"date-fns";import{jsx as vt,jsxs as Ks}from"react/jsx-runtime";function Wc(...e){return e.filter(Boolean).join(" ")}function J3({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:n,rejectLeave:i}){let[d,m]=hb("Calendar View"),c=kb(),p=!1,u=Sb(a),g=async f=>{let y=Pb(f,"dd-MM-yyyy"),R=new URL(window.location.href);return R.searchParams.set("date",y),c.push(R.toString()),{success:!0}};if(p)return vt("div",{className:"flex justify-center items-center h-screen",children:vt("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:wb,current:d==="Grid View"},{name:"Calendar View",icon:xb,current:d==="Calendar View"},{name:"Request Leave",icon:Nb,current:d==="Request Leave"},{name:"Approve Leave",icon:Cb,current:d==="Approve Leave"}];return Ks("div",{className:"container mx-auto p-4 h-full",children:[Ks("div",{className:"mb-8",children:[Ks("div",{className:"sm:hidden",children:[vt("select",{value:d,onChange:f=>m(f.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:b.map(f=>vt("option",{children:f.name},f.name))}),vt(yb,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),vt("div",{className:"hidden sm:block",children:vt("div",{className:"border-b border-gray-200",children:vt("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:b.map(f=>Ks("a",{onClick:()=>{(f.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(f.name)},className:Wc(f.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",f.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":f.current?"page":void 0,children:[vt(f.icon,{className:Wc(f.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),vt("span",{children:f.name})]},f.name))})})})]}),d==="Grid View"&&vt(Vc,{currentDate:u,setCurrentDate:g,holidays:e,employees:r}),d==="Calendar View"&&vt(Uc,{currentDate:u,setCurrentDate:g,holidays:e}),d==="Request Leave"&&vt(Gc,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:f=>s?s(f):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),d==="Approve Leave"&&vt(zc,{leaveRequests:o,onApprove:f=>n?n(f):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:f=>i?i(f):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}import{useState as Eb,useCallback as Fb}from"react";import{useState as Xs,useEffect as Rb}from"react";import{UserIcon as Tb,CalendarIcon as Db,SaveIcon as Ab,PlusIcon as Mb}from"lucide-react";import{jsx as B,jsxs as me}from"react/jsx-runtime";function Ys({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:n}){let[i,d]=Xs({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[m,c]=Xs(""),[p,u]=Xs(!1),[g,b]=Xs(null);Rb(()=>{u(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let f=async()=>{try{let x=await s(i);x.success?(u(!1),b(null)):console.error("Failed to save deal:",x.errors)}catch(x){console.error("Failed to save deal:",x)}},y=(x,k)=>{d(V=>({...V,[x]:k}))},R=x=>{let k=(i.categories||[]).includes(x)?(i.categories||[]).filter(V=>V!==x):[...i.categories||[],x];y("categories",k)},P=async()=>{if(m.trim()){let x={text:m,timestamp:new Date().toISOString()};try{let k=await n(x);if(!k.success){console.error("Failed to add comment:",k.errors);return}}catch(k){console.error("Failed to add comment:",k)}d(k=>({...k,comments:[...k.comments||[],x]})),c("")}},h=x=>{switch(x){case"proposition":return"border-blue-800 text-blue-800";case"source":return"border-green-800 text-green-800";case"sector":return"border-purple-800 text-purple-800";default:return"border-gray-800 text-gray-800"}},w=x=>t?.find(k=>k.id===Number(x));return B(Xt,{open:!0,children:me(Lt,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[me(sa,{className:"flex flex-row items-center justify-between",children:[B(ia,{className:"text-2xl font-bold",children:a?.name||"no customer"}),me("div",{className:"flex space-x-2",children:[B(C,{variant:"outline",onClick:r,children:"Close"}),me(C,{onClick:f,disabled:!p,children:[B(Ab,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),me(Wt,{className:"flex-grow pr-4",children:[me("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[B("div",{className:"grid gap-2 m-1",children:g==="value"?B(Fe,{type:"number",value:i.value,onChange:x=>y("value",Number(x.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):me("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()]})}),me("div",{className:"grid gap-2 m-1",children:[B(I,{className:"text-sm font-medium text-accent",children:"Assignee"}),g==="assignee"?me(zt,{value:i?.assignee?.id?.toString()||"",onValueChange:x=>y("assignee",w(x)),children:[B(Pt,{children:B(Et,{placeholder:"Select assignee"})}),B(St,{children:t&&t.map(x=>B(ut,{value:x?.id?.toString()||"",children:x.name},x.id))})]}):me("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("assignee"),children:[B(Tb,{className:"w-4 h-4 text-gray-400"}),B("span",{children:i?.assignee?.name})]})]}),me("div",{className:"grid gap-2 m-1",children:[B(I,{className:"text-sm font-medium text-accent",children:"Closure Date"}),g==="closureDate"?B(Fe,{type:"date",value:i.closureDate?.split("T")[0]??"",onChange:x=>y("closureDate",x.target.value),onBlur:()=>b(null),className:"mr-2",autoFocus:!0}):me("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("closureDate"),children:[B(Db,{className:"w-4 h-4 text-gray-400"}),B("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("en-GB"):"N/A"})]})]})]}),B("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:me("div",{className:"grid gap-2 m-1",children:[B(I,{className:"text-sm font-medium text-accent",children:"Description"}),g==="description"?B(Yt,{value:i.description||"",onChange:x=>y("description",x.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):B("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>b("description"),children:i.description})]})}),me("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[me("div",{className:"grid gap-2 m-1",children:[B(I,{className:"text-sm font-medium text-accent",children:"Status"}),g==="status"?me(zt,{value:i.status,onValueChange:x=>{y("status",x),b(null)},children:[B(Pt,{children:B(Et,{placeholder:"Select status"})}),B(St,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(x=>B(ut,{value:x,children:x},x))})]}):B("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("status"),children:i.status})]}),me("div",{className:"grid col-span-2 gap-2",children:[B(I,{className:"text-sm font-medium text-accent",children:"Categories"}),g==="categories"?B("div",{className:"grid grid-cols-2 gap-2 m-1",children:o.map(x=>me("div",{className:"flex items-center space-x-2",children:[B(na,{id:x.id?.toString()||"",checked:(i.categories||[]).some(k=>k.id===x.id),onCheckedChange:()=>x.id!==void 0&&R(x)}),B("label",{htmlFor:(x.id??"").toString(),className:`text-sm font-medium ${h(x.type||"sector")} px-2 py-1 rounded`,children:x.name})]},x.id))}):B("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("categories"),children:i.categories&&i.categories.map(x=>{let k=x;return k?B(Me,{variant:"outline",className:h(k.type||"sector"),children:k.name},k.id):null})})]}),me("div",{className:"grid gap-2 m-1",children:[B(I,{className:"text-sm font-medium text-accent",children:"COGE Status"}),g==="gecoStatus"?me(zt,{value:i.gecoStatus??void 0,onValueChange:x=>{y("gecoStatus",x),b(null)},children:[B(Pt,{children:B(Et,{placeholder:"Select status"})}),B(St,{children:["firm","forecast","other"].map(x=>B(ut,{value:x,children:x.charAt(0).toUpperCase()+x.slice(1)},x))})]}):B("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("gecoStatus"),children:i.gecoStatus?i.gecoStatus.charAt(0).toUpperCase()+i.gecoStatus.slice(1):"N/A"})]})]}),me("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[me("div",{className:"grid gap-2",children:[B(I,{className:"text-sm font-medium text-accent",children:"Comments"}),B(Wt,{className:"h-[200px] overflow-y-auto",children:B("div",{className:"space-y-2",children:i.comments&&i.comments.slice().sort((x,k)=>new Date(k.timestamp||"").getTime()-new Date(x.timestamp||"").getTime()).map(x=>me("div",{className:"p-3 rounded-lg",children:[B("p",{className:"text-sm text-foreground",children:x.text}),me("p",{className:"text-xs text-foreground mt-1",children:[x?.author?.name," - ",new Date(x.timestamp||"").toLocaleString()]})]},x.id))})}),me("div",{className:"flex mt-2",children:[B(Fe,{value:m,onChange:x=>c(x.target.value),placeholder:"Add a comment...",className:"flex-grow ml-1"}),me(C,{onClick:P,className:"ml-2",children:[B(Mb,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),me("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}import{CalendarIcon as Ib,UserIcon as Lb}from"lucide-react";import{jsx as Je,jsxs as ha}from"react/jsx-runtime";function Kc({deal:e,customer:t,categories:a,onClick:o,compact:r=!1}){let s=a.find(n=>n.type==="proposition"&&(e.categories??[]).includes(n.id));return r?ha(Y,{className:"mb-1 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[ha(de,{className:"pb-1 pt-2",children:[Je(ce,{className:"text-sm font-semibold text-foreground",children:t?.name}),Je("p",{className:"text-sm text-foreground mt-1",children:e.description})]}),Je(J,{className:"text-xs text-gray-200 pb-2",children:Je("div",{className:"flex justify-between items-center mb-1",children:Je("div",{className:"flex items-center text-sm font-bold text-green-600",children:ha("span",{children:["\xA3",e.value.toLocaleString()]})})})})]}):ha(Y,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[ha(de,{className:"pb-2",children:[Je("div",{className:"flex justify-between items-center",children:Je(ce,{className:"text-lg font-semibold text-foreground",children:t?.name})}),Je("p",{className:"text-sm text-foreground mt-1",children:e.description})]}),ha(J,{children:[ha("div",{className:"flex justify-between items-center mb-3",children:[ha("div",{className:"flex items-center text-sm text-foreground",children:[Je(Lb,{className:"w-4 h-4 mr-1 text-xs"}),Je("span",{children:e.assignee.name})]}),Je("div",{className:"flex items-center text-sm font-bold text-green-600",children:ha("span",{children:["\xA3",e.value.toLocaleString()]})})]}),Je("div",{className:"flex justify-between items-left mb-3",children:ha("div",{className:"flex items-center text-xs text-gray-200",children:[Je(Ib,{className:"w-3 h-3 mr-1"}),Je("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),Je("div",{className:"flex justify-between items-left",children:s&&Je(Me,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:s.name})})]})]})}import{Droppable as Bb,Draggable as zb}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as qs,jsxs as ao}from"react/jsx-runtime";function Qs({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:n,calculateWeightedValue:i,compact:d=!1}){return ao("div",{className:"flex flex-col w-80",children:[ao("h2",{className:"text-xl font-semibold mb-4",children:[" ",e.charAt(0).toUpperCase()+e.slice(1)]}),qs(Bb,{droppableId:e,isDropDisabled:!1,children:m=>ao("div",{ref:m.innerRef,...m.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((c,p)=>qs(zb,{draggableId:c.id.toString(),index:c.id,children:u=>qs("div",{ref:u.innerRef,...u.draggableProps,...u.dragHandleProps,children:qs(Kc,{deal:c,customer:c.customer,categories:r,onClick:()=>s(c),compact:d})})},c.id.toString())),m.placeholder]})}),ao("div",{className:"mt-4 text-sm p-3 rounded-lg shadow",children:[ao("p",{className:"font-semibold",children:["Total:"," ",ao("span",{className:"text-green-600",children:["\xA3",n(t).toLocaleString()]})]}),ao("p",{className:"font-semibold",children:["Weighted:"," ",ao("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}import{DragDropContext as Hb}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as Js,jsxs as Ob}from"react/jsx-runtime";var jb=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost","Dormant"];function MR({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){let[s,n]=Eb(null),i=p=>(e.deals??[]).filter(u=>u.status===p),d=p=>p.reduce((u,g)=>u+(g.value||0),0),m=(p,u)=>{let g={Cold:0,Qualified:.1,"Proposal Made":.25,"SoW Submitted":.8,Won:1,Lost:0,Dormant:0};return p.reduce((b,f)=>b+(f.value||0)*g[u],0)},c=Fb(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,y=e.deals?.filter(P=>P.id===u.index)[0],R=[...e.deals??[]];y&&(y.status=f,a(y))},[a]);return Js(Hb,{onDragEnd:c,children:Ob("div",{className:"p-4 h-full overflow-auto",children:[Js("div",{className:"flex space-x-4 pb-4",children:jb.filter(p=>p!=="Lost").map(p=>{let u=i(p);return Js(Qs,{status:p,deals:u,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:n,calculateColumnValue:d,calculateWeightedValue:m},p)})}),s&&Js(Ys,{deal:s,users:e.users,customer:s.customer,categories:e.categories??[],onClose:()=>n(null),onSave:a,onAddComment:p=>o(s.id.toString(),p)})]})})}import{useState as Sn,useEffect as Gb}from"react";import{PlusIcon as _b}from"lucide-react";import{useState as $b}from"react";import{jsx as Lo,jsxs as Zs}from"react/jsx-runtime";function Xc({onSubmit:e}){let[t,a]=$b({name:"",intro:"",active:!1});return Zs("form",{onSubmit:r=>{r.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-y-4",children:[Zs("div",{className:"space-y-2",children:[Lo(I,{htmlFor:"customerName",children:"Customer Name"}),Lo(Fe,{id:"customerName",value:t.name,onChange:r=>a({...t,name:r.target.value}),placeholder:"Enter customer name",required:!0})]}),Zs("div",{className:"space-y-2",children:[Lo(I,{htmlFor:"customerIntro",children:"Intro"}),Lo(Yt,{id:"customerIntro",value:t.intro??"",onChange:r=>a({...t,intro:r.target.value}),placeholder:"Enter customer intro"})]}),Zs("div",{className:"flex items-center space-x-2",children:[Lo(na,{id:"activeCustomer",checked:!!t.active,onCheckedChange:r=>a({...t,active:r})}),Lo(I,{htmlFor:"activeCustomer",children:"Active Customer"})]}),Lo(C,{type:"submit",className:"w-full",children:"Add Customer"})]})}import{Fragment as Vb,jsx as Q,jsxs as st}from"react/jsx-runtime";function eT({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:n}){let[i,d]=Sn(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[m,c]=Sn(!1),[p,u]=Sn({});Gb(()=>{r&&d(r)},[r]);let g=()=>{let h={};return i.customer||(h.customer="Customer is required"),i.value||(h.value="Value is required"),i.assignee||(h.assignee="Assignee is required"),i.closureDate||(h.closureDate="Closure Date is required"),u(h),Object.keys(h).length===0},b=async h=>{h.preventDefault(),u({});try{if(g()){let w=await o({...i});w.success?(d({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),n?.()):u(w.errors||{})}}catch{u({submit:"An error occurred while submitting the form."})}},f=h=>{d(w=>({...w,categories:(w.categories||[]).includes(h.id)?(w.categories||[]).filter(x=>x!==h.id):[...w.categories||[],h.id]}))},y=async h=>{d({...i,customer:h});try{let w=await s(h);w.success?c(!1):u(w.errors||{})}catch{u({submit:"An error occurred while submitting the form."})}},R=h=>t?.find(w=>w.id===Number(h)),P=h=>e?.find(w=>w.id===Number(h));return st(Vb,{children:[st("form",{onSubmit:b,className:"space-y-6",children:[Q(Wt,{className:"h-[60vh] pr-4",children:st("div",{className:"space-y-6 px-4",children:[st("div",{className:"space-y-2 space-x-2",children:[Q(I,{htmlFor:"customer",children:"Customer"}),st("div",{className:"flex items-center space-x-2",children:[st(zt,{value:i.customer?.id?.toString(),onValueChange:h=>d({...i,customer:P(h)}),children:[Q(Pt,{children:Q(Et,{placeholder:"Select customer"})}),Q(St,{children:e.map(h=>Q(ut,{value:h.id?.toString()||"",children:h.name},h.id))})]}),Q(C,{variant:"outline",size:"icon",onClick:()=>c(!0),children:Q(_b,{className:"w-5 h-5"})})]}),p.customerId&&Q("p",{className:"text-red-500 text-sm",children:p.customerId})]}),st("div",{className:"space-y-2 space-x-2",children:[Q(I,{htmlFor:"value",children:"Value"}),Q(Fe,{id:"value",type:"number",value:i.value||"",onChange:h=>d({...i,value:Number.parseFloat(h.target.value)}),placeholder:"Enter deal value"}),p.value&&Q("p",{className:"text-red-500 text-sm",children:p.value})]}),st("div",{className:"space-y-2 space-x-2",children:[Q(I,{htmlFor:"assignee",children:"Assignee"}),st(zt,{value:i.assignee?.id?.toString(),onValueChange:h=>d({...i,assignee:R(h)}),children:[Q(Pt,{children:Q(Et,{placeholder:"Select assignee"})}),Q(St,{children:t&&t.map(h=>Q(ut,{value:h.id?.toString()||"",children:h.name},h.id))})]}),p.assignee&&Q("p",{className:"text-red-500 text-sm",children:p.assignee})]}),st("div",{className:"space-y-2 space-x-2",children:[Q(I,{htmlFor:"description",children:"Description"}),Q(Yt,{id:"description",value:i.description||"",onChange:h=>d({...i,description:h.target.value}),placeholder:"Enter deal description"})]}),st("div",{className:"space-y-2 space-x-2",children:[Q(I,{children:"Categories"}),Q("div",{className:"space-y-4",children:["proposition","source","sector"].map(h=>st("div",{className:"space-y-2",children:[Q("h4",{className:"text-sm font-medium",children:h.charAt(0).toUpperCase()+h.slice(1)}),Q("div",{className:"grid grid-cols-2 gap-2",children:a.filter(w=>w.type===h).map(w=>st("div",{className:"flex items-center space-x-2",children:[Q(na,{id:w.id.toString(),checked:i.categories?.includes(w.id),onCheckedChange:()=>f(w)}),Q("label",{htmlFor:w.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:w.name})]},w.id))})]},h))})]}),st("div",{className:"space-y-2 space-x-2",children:[Q(I,{htmlFor:"closureDate",children:"Closure Date"}),Q(Fe,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:h=>d({...i,closureDate:h.target.value})}),p.closureDate&&Q("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),Q(C,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),Q(Xt,{open:m,onOpenChange:c,children:st(Lt,{children:[Q(sa,{children:Q(ia,{children:"Add New Customer"})}),Q(Xc,{onSubmit:y})]})})]})}import{useState as Ub,useCallback as Wb}from"react";import{DragDropContext as Kb}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as ei,jsxs as Yb}from"react/jsx-runtime";var Xb=["firm","forecast","other"];function lT({initialData:e,updateDeal:t,addComment:a}){let[o,r]=Ub(null),s=m=>(e.deals??[]).filter(c=>c.gecoStatus===m).filter(c=>c.status!=="Lost").filter(c=>c.status!=="Cold"),n=m=>m.reduce((c,p)=>c+(p.value||0),0),i=(m,c)=>{let p={Cold:0,Qualified:.1,"Proposal Made":.25,"SoW Submitted":.8,Won:1,Lost:0,Dormant:0};return m.reduce((u,g)=>u+(g.value||0)*(p[g.status]??0),0)},d=Wb(m=>{let{source:c,destination:p}=m;if(!p||c.droppableId===p.droppableId&&c.index===p.index)return;let u=c.droppableId,g=p.droppableId,b=e.deals?.filter(y=>y.id===c.index)[0],f=[...e.deals??[]];b&&(b.gecoStatus=g,t(b))},[t]);return ei(Kb,{onDragEnd:d,children:Yb("div",{className:"p-4 h-full overflow-auto",children:[ei("div",{className:"flex space-x-4 pb-4",children:Xb.map(m=>{let c=s(m);return ei(Qs,{status:m,deals:c,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:r,calculateColumnValue:n,calculateWeightedValue:i,compact:!0},m)})}),o&&ei(Ys,{deal:o,users:e.users,customer:o.customer,categories:e.categories??[],onClose:()=>r(null),onSave:t,onAddComment:m=>a(o.id.toString(),m)})]})})}import tv from"react";import{Clock as Qb}from"lucide-react";import{formatDistanceToNow as Jb}from"date-fns";import{useState as Rn,useEffect as qb}from"react";function Yc({taskId:e,polling:t=!0,system:a="payload"}){let[o,r]=Rn(null),[s,n]=Rn(!1),[i,d]=Rn(null),m=async(p=!0)=>{if(e){p&&n(!0);try{let u=await fetch(`/api/tasks/${e}`);if(!u.ok)throw new Error(`Failed to fetch task: ${u.statusText}`);let g=await u.json();r(g)}catch(u){console.error("Error fetching task:",u),d(u instanceof Error?u:new Error("Unknown error occurred"))}finally{p&&n(!1)}}},c=()=>m(!1);return qb(()=>{e&&m(!0);let p=null;return e&&t&&(p=setInterval(c,5e3)),()=>{p&&clearInterval(p)}},[e,t]),{task:o,loading:s,error:i}}import{jsx as za,jsxs as Bo}from"react/jsx-runtime";var Zb=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"}},ev=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function qc({data:e}){let{id:t,system:a,fetchLatest:o,taskData:r,error:s}=e||{};if(!t)return null;let n=null,i=!0,d=s,m=o!==void 0?o:!0;if(n=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:m,taskData:n,error:d}),m){let{task:g,loading:b,error:f}=Yc({taskId:t,system:a});n=g,i=b,d=f}else i=!1;let c=Zb(n?.status||"todo"),p=ev(n?.status||"todo"),u=n?.dateLogged||new Date().toISOString();try{let g=new Date(n?.dateLogged||"");isNaN(g.getTime())||(u=Jb(g,{addSuffix:!0}))}catch{}return Bo(Y,{className:l("w-full max-w-md shadow-md",d&&"border border-destructive"),children:[Bo(de,{className:"pb-2",children:[Bo("div",{className:"flex justify-between items-start",children:[za(ce,{className:"text-lg font-semibold",children:i?"Loading...":n?.name||"Task"}),za(Me,{className:`${c}`,children:p})]}),n?.project&&Bo(Fr,{className:"text-sm text-gray-500",children:["Project: ",n.project.name]})]}),za(J,{className:"pb-2",children:i?za("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):d?za("p",{className:"text-sm text-red-500",children:"Error loading task details"}):za("p",{className:"text-sm text-foreground",children:n?.description||"......."})}),za(wo,{className:"pt-2 flex items-center justify-between",children:Bo("div",{className:"flex items-center text-xs text-gray-500",children:[za(Qb,{className:"h-3 w-3 mr-1"}),Bo("span",{children:["Created ",u]}),za("span",{className:"mx-2",children:"\u2022"}),Bo("span",{children:["Task #",t]})]})})]})}import{jsx as ht,jsxs as zo}from"react/jsx-runtime";var av={task:qc},ov=`
20
21
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="white" width="20" height="20">
21
22
  <path d="M327.5 85.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 128l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 128l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 64 426.8 7.5C425.1 3 420.8 0 416 0s-9.1 3-10.8 7.5L384 64 327.5 85.2zM205.1 73.3c-2.6-5.7-8.3-9.3-14.5-9.3s-11.9 3.6-14.5 9.3L123.3 187.3 9.3 240C3.6 242.6 0 248.3 0 254.6s3.6 11.9 9.3 14.5l114.1 52.7L176 435.8c2.6 5.7 8.3 9.3 14.5 9.3s11.9-3.6 14.5-9.3l52.7-114.1 114.1-52.7c5.7-2.6 9.3-8.3 9.3-14.5s-3.6-11.9-9.3-14.5L257.8 187.4 205.1 73.3zM384 384l-56.5 21.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 448l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 448l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 384l-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L384 384z"/>
22
- </svg>`,Eb=`data:image/svg+xml;utf8,${encodeURIComponent(zb)}`,Fc=Lb.memo(function(t){let{id:a,message:o,currentUser:r,role:s}=t,n=s==="user",i=n?r?.name||"You":r?.name||"AI Assistant",c=n?r?.avatar||"/placeholder-user.jpg":"/placeholder.svg?height=40&width=40";switch(o.type){case"forwarding":return Do("div",{className:`flex items-start gap-3 text-primary text-xs ${n?"flex-row-reverse":""}`,children:["Forwarding to ",o?.data?.content]},a);case"text":return Do("div",{className:`flex items-start gap-3 ${n?"flex-row-reverse":""}`,children:[n?Do(wt,{children:[ft(Nt,{src:c,alt:i}),ft(Ct,{children:i.substring(0,2).toUpperCase()})]}):ft("img",{src:Eb,alt:"AI Assistant",className:"w-10 h-10"}),Do("div",{className:`grid gap-1.5 ${n?"text-right":""}`,children:[ft("div",{className:"flex items-center gap-2",children:ft("span",{className:"font-medium",children:i})}),ft("div",{className:`rounded-lg p-3 text-sm ${n?"bg-primary text-primary-foreground":"bg-muted"}`,style:{whiteSpace:"pre-line"},children:o?.data?.content})]})]},a);case"image":return Do("div",{className:`flex items-start gap-3 ${n?"flex-row-reverse":""}`,children:[Do(wt,{className:n?"":"ai-border",children:[ft(Nt,{src:c,alt:i}),ft(Ct,{children:i.substring(0,2).toUpperCase()})]}),Do("div",{className:`grid gap-1.5 ${n?"text-right":""}`,children:[ft("div",{className:"flex items-center gap-2",children:ft("span",{className:"font-medium",children:i})}),ft("img",{src:o?.data?.image,alt:"User uploaded content",className:`rounded-lg p-3 text-sm ${n?"bg-primary text-primary-foreground":"bg-muted"}`,style:{maxWidth:"100%",height:"auto"}})]})]},a);case"tool-invocation":if(o.data&&o.data.tool){let m=Bb[o.data.tool];return m?ft("div",{className:"mt-2",children:ft(m,{data:o.data})}):(console.warn(`Tool ${o.data.tool} is not defined.`),ft("div",{className:"mt-2",children:"......"}))}}});import{useEffect as Hb,useRef as Fb}from"react";import{jsx as bt,jsxs as Mo}from"react/jsx-runtime";function U3({messages:e,isLoading:t}){let a=Fb(null);return Hb(()=>{a.current?.scrollIntoView({behavior:"smooth"})},[e]),bt("div",{className:"flex flex-col h-full overflow-hidden",children:Mo(Vt,{className:"container flex-1 p-4",children:[Mo("div",{className:"space-y-6",children:[e.length===0&&bt("div",{className:"flex items-center justify-center h-full pt-60",children:Mo("div",{className:"text-center max-w-md",children:[bt("h2",{className:"text-2xl font-bold mb-2",children:"Welcome to Dexter"}),bt("p",{className:"text-zinc-400",children:"Ask me anything or direct your question to a business function directly using the toolbar below."})]})}),t&&Mo("div",{className:"flex items-start gap-3",children:[Mo(wt,{className:"ai-border",children:[bt(Nt,{src:"/placeholder.svg?height=40&width=40",alt:"AI Assistant"}),bt(Ct,{children:"AI"})]}),Mo("div",{className:"grid gap-1.5",children:[bt("div",{className:"flex items-center gap-2",children:bt("span",{className:"font-medium",children:"AI Assistant"})}),bt("div",{className:"rounded-lg p-3 text-sm bg-muted",children:Mo("div",{className:"flex space-x-2",children:[bt("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce"}),bt("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.2s]"}),bt("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.4s]"})]})})]})]}),e.map((o,r)=>bt(Fc,{...o},r))]}),bt("div",{ref:a})]})})}import{useState as ga}from"react";import{FileText as jb,ListChecks as $c,AlertTriangle as Ob,Users as $b,Briefcase as _b,ShieldAlert as Gb,PlusCircle as Vb,Trash2 as Ub}from"lucide-react";import{jsx as O,jsxs as Ce}from"react/jsx-runtime";var Wb=[{name:"",commentary:"",dueDate:"",rag:"On-Track"}],jc=["On-Track","Off-Track","At Risk","Complete"],Oc=[{name:"Project Summary",icon:jb},{name:"Milestones",icon:$c},{name:"Project Update",icon:$b},{name:"Project Concerns",icon:Ob},{name:"Opportunities",icon:_b},{name:"Risks",icon:Gb}];function vn({onSubmit:e,customerProjectPairs:t}){let[a,o]=ga(Oc[0].name),[r,s]=ga(null),[n,i]=ga(null),[c,m]=ga(""),[d,p]=ga(""),[u,g]=ga(Wb),[b,f]=ga(""),[h,T]=ga(""),[P,y]=ga(""),[N,x]=ga(""),C=Array.from(new Map((t??[]).map(v=>[v.customer.id,v.customer])).values()),V=(t??[]).filter(v=>v.customer.id===r).map(v=>v.project),A=(v,_,E)=>{g(ge=>{let He=[...ge];return _==="rag"&&!jc.includes(E)?ge:(He[v]={...He[v],[_]:E},He)})},R=()=>{g(v=>[...v,{name:"",commentary:"",dueDate:"",rag:"On-Track"}])},w=v=>{g(_=>_.filter((E,ge)=>ge!==v))},z=async v=>{v.preventDefault();let _={customer:r,project:n,projectSummary:d,milestones:u.length>0?u:null,projectUpdate:b,projectConcerns:h||null,commercialOpportunities:P||null,commercialRisks:N||null};if(e)return e(_);try{let E=await fetch("/api/delivery-lead-submission",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_)});if(!E.ok)throw new Error("Failed to submit delivery lead");let ge=await E.json();return{success:!0,message:"Delivery lead submitted successfully"}}catch(E){return console.error("Error submitting delivery lead:",E),{success:!1,message:"Failed to submit delivery lead"}}};return O("div",{className:"container mx-auto p-4 max-w-3xl",children:Ce("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[O("div",{className:"mb-6 flex border-b border-zinc-200 dark:border-zinc-700 flex-wrap justify-evenly",children:Oc.map(v=>Ce("button",{className:`flex items-center gap-2 py-2 px-4 font-semibold border-b-2 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/60
23
+ </svg>`,rv=`data:image/svg+xml;utf8,${encodeURIComponent(ov)}`,Qc=tv.memo(function(t){let{id:a,message:o,currentUser:r,role:s}=t,n=s==="user",i=n?r?.name||"You":r?.name||"AI Assistant",d=n?r?.avatar||"/placeholder-user.jpg":"/placeholder.svg?height=40&width=40";switch(o.type){case"forwarding":return zo("div",{className:`flex items-start gap-3 text-primary text-xs ${n?"flex-row-reverse":""}`,children:["Forwarding to ",o?.data?.content]},a);case"text":return zo("div",{className:`flex items-start gap-3 ${n?"flex-row-reverse":""}`,children:[n?zo(et,{children:[ht(kt,{src:d,alt:i}),ht(tt,{children:i.substring(0,2).toUpperCase()})]}):ht("img",{src:rv,alt:"AI Assistant",className:"w-10 h-10"}),zo("div",{className:`grid gap-1.5 ${n?"text-right":""}`,children:[ht("div",{className:"flex items-center gap-2",children:ht("span",{className:"font-medium",children:i})}),ht("div",{className:`rounded-lg p-3 text-sm ${n?"bg-primary text-primary-foreground":"bg-muted"}`,style:{whiteSpace:"pre-line"},children:o?.data?.content})]})]},a);case"image":return zo("div",{className:`flex items-start gap-3 ${n?"flex-row-reverse":""}`,children:[zo(et,{className:n?"":"ai-border",children:[ht(kt,{src:d,alt:i}),ht(tt,{children:i.substring(0,2).toUpperCase()})]}),zo("div",{className:`grid gap-1.5 ${n?"text-right":""}`,children:[ht("div",{className:"flex items-center gap-2",children:ht("span",{className:"font-medium",children:i})}),ht("img",{src:o?.data?.image,alt:"User uploaded content",className:`rounded-lg p-3 text-sm ${n?"bg-primary text-primary-foreground":"bg-muted"}`,style:{maxWidth:"100%",height:"auto"}})]})]},a);case"tool-invocation":if(o.data&&o.data.tool){let m=av[o.data.tool];return m?ht("div",{className:"mt-2",children:ht(m,{data:o.data})}):(console.warn(`Tool ${o.data.tool} is not defined.`),ht("div",{className:"mt-2",children:"......"}))}}});import{useEffect as sv,useRef as iv}from"react";import{jsx as yt,jsxs as Eo}from"react/jsx-runtime";function BT({messages:e,isLoading:t}){let a=iv(null);return sv(()=>{a.current?.scrollIntoView({behavior:"smooth"})},[e]),yt("div",{className:"flex flex-col h-full overflow-hidden",children:Eo(Wt,{className:"container flex-1 p-4",children:[Eo("div",{className:"space-y-6",children:[e.length===0&&yt("div",{className:"flex items-center justify-center h-full pt-60",children:Eo("div",{className:"text-center max-w-md",children:[yt("h2",{className:"text-2xl font-bold mb-2",children:"Welcome to Dexter"}),yt("p",{className:"text-zinc-400",children:"Ask me anything or direct your question to a business function directly using the toolbar below."})]})}),t&&Eo("div",{className:"flex items-start gap-3",children:[Eo(et,{className:"ai-border",children:[yt(kt,{src:"/placeholder.svg?height=40&width=40",alt:"AI Assistant"}),yt(tt,{children:"AI"})]}),Eo("div",{className:"grid gap-1.5",children:[yt("div",{className:"flex items-center gap-2",children:yt("span",{className:"font-medium",children:"AI Assistant"})}),yt("div",{className:"rounded-lg p-3 text-sm bg-muted",children:Eo("div",{className:"flex space-x-2",children:[yt("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce"}),yt("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.2s]"}),yt("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.4s]"})]})})]})]}),e.map((o,r)=>yt(Qc,{...o},r))]}),yt("div",{ref:a})]})})}var Jc={primary:"bg-blue-500",secondary:"bg-gray-500",accent:"bg-purple-500",categories:["bg-green-500","bg-blue-500","bg-purple-500","bg-pink-500","bg-indigo-500","bg-orange-500"],lists:["bg-green-400","bg-blue-400","bg-purple-400","bg-pink-400","bg-indigo-400","bg-orange-400"],items:["bg-green-300","bg-blue-300","bg-purple-300","bg-pink-300","bg-indigo-300","bg-orange-300"]},Tn=[{id:"sales",name:"Sales",description:"Revenue and customer management",iconName:"DollarSign",color:"bg-green-600",type:"category",actions:[{id:"view-pipeline",label:"View Pipeline",description:"See all opportunities in pipeline",iconName:"BarChart",action:e=>console.log("View pipeline",e)},{id:"create-opportunity",label:"Create Opportunity",iconName:"Target",action:e=>console.log("Create opportunity",e)}],children:[{id:"customers",name:"Customers",description:"Customer accounts and contacts",iconName:"Users",color:"bg-blue-500",type:"list",actions:[{id:"add-customer",label:"Add Customer",iconName:"User",action:e=>console.log("Add customer",e)},{id:"export-customers",label:"Export List",iconName:"FileText",action:e=>console.log("Export customers",e)}],data:[{id:"acme-corp",title:"Acme Corp",subtitle:"Enterprise Customer",value:"$125K ARR",metadata:{industry:"Technology",employees:500,lastContact:"2024-01-15"}},{id:"beta-inc",title:"Beta Inc",subtitle:"Mid-market",value:"$45K ARR",metadata:{industry:"Healthcare",employees:150,lastContact:"2024-01-10"}},{id:"gamma-llc",title:"Gamma LLC",subtitle:"Small Business",value:"$15K ARR",metadata:{industry:"Manufacturing",employees:50,lastContact:"2024-01-08"}}]},{id:"opportunities",name:"Opportunities",description:"Sales opportunities and deals",iconName:"Target",color:"bg-yellow-500",type:"list",actions:[{id:"close-won",label:"Mark as Won",iconName:"CheckCircle",action:e=>console.log("Close won",e)},{id:"schedule-followup",label:"Schedule Follow-up",iconName:"Clock",action:e=>console.log("Schedule follow-up",e)}],data:[{id:"opp-1",title:"Acme Corp - Enterprise License",subtitle:"Closing Q1 2024",value:"$85K",metadata:{stage:"Negotiation",probability:80,closeDate:"2024-03-31"}},{id:"opp-2",title:"Beta Inc - Platform Upgrade",subtitle:"Closing Q2 2024",value:"$32K",metadata:{stage:"Proposal",probability:65,closeDate:"2024-06-15"}}]}]},{id:"marketing",name:"Marketing",description:"Marketing campaigns and analytics",iconName:"TrendingUp",color:"bg-pink-600",type:"category",actions:[{id:"view-analytics",label:"View Analytics",iconName:"BarChart",action:e=>console.log("View analytics",e)}],children:[{id:"campaigns",name:"Campaigns",description:"Marketing campaigns and performance",iconName:"TrendingUp",color:"bg-pink-500",type:"list",data:[{id:"campaign-1",title:"Q1 Product Launch",subtitle:"Active Campaign",value:"45% CTR",metadata:{budget:"$50K",spend:"$32K",leads:1250}},{id:"campaign-2",title:"Holiday Promotion",subtitle:"Completed",value:"38% CTR",metadata:{budget:"$25K",spend:"$24K",leads:890}}]}]},{id:"projects",name:"Projects",description:"Project management and tracking",iconName:"Briefcase",color:"bg-blue-600",type:"category",children:[{id:"active-projects",name:"Active Projects",description:"Currently active projects",iconName:"Activity",color:"bg-blue-500",type:"list",data:[{id:"project-1",title:"Website Redesign",subtitle:"In Progress",value:"75% Complete",metadata:{team:"Design",deadline:"2024-02-15",status:"On Track"}},{id:"project-2",title:"Mobile App Development",subtitle:"Planning",value:"25% Complete",metadata:{team:"Engineering",deadline:"2024-03-31",status:"On Track"}}]}]},{id:"engineering",name:"Engineering",description:"Development and technical operations",iconName:"Code",color:"bg-purple-600",type:"category",actions:[{id:"view-repos",label:"View Repositories",description:"See all code repositories",iconName:"Git",action:e=>console.log("View repositories",e)},{id:"create-task",label:"Create Task",iconName:"Plus",action:e=>console.log("Create task",e)}],children:[{id:"repositories",name:"Repositories",description:"Code repositories and projects",iconName:"GitBranch",color:"bg-purple-500",type:"list",actions:[{id:"create-repo",label:"Create Repository",iconName:"Plus",action:e=>console.log("Create repository",e)},{id:"view-commits",label:"View Commits",iconName:"Git",action:e=>console.log("View commits",e)}],data:[{id:"repo-1",title:"frontend-app",subtitle:"React Application",value:"Main Branch",metadata:{language:"TypeScript",commits:1247,contributors:8}},{id:"repo-2",title:"backend-api",subtitle:"Node.js API",value:"Main Branch",metadata:{language:"Node.js",commits:892,contributors:5}}]},{id:"tasks",name:"Tasks",description:"Development tasks and issues",iconName:"CheckSquare",color:"bg-blue-500",type:"list",actions:[{id:"create-task",label:"Create Task",iconName:"Plus",action:e=>console.log("Create task",e)},{id:"assign-task",label:"Assign Task",iconName:"UserPlus",action:e=>console.log("Assign task",e)}],data:[{id:"task-1",title:"Fix authentication bug",subtitle:"High Priority",value:"In Progress",metadata:{assignee:"John Doe",priority:"High",estimate:"4h"}},{id:"task-2",title:"Implement dark mode",subtitle:"Feature Request",value:"Todo",metadata:{assignee:"Jane Smith",priority:"Medium",estimate:"8h"}}]}]},{id:"design",name:"Design",description:"User experience and visual design",iconName:"Palette",color:"bg-pink-600",type:"category",actions:[{id:"view-designs",label:"View Designs",description:"See all design assets",iconName:"Image",action:e=>console.log("View designs",e)},{id:"create-mockup",label:"Create Mockup",iconName:"Plus",action:e=>console.log("Create mockup",e)}],children:[{id:"assets",name:"Assets",description:"Design assets and components",iconName:"Package",color:"bg-pink-500",type:"list",actions:[{id:"add-asset",label:"Add Asset",iconName:"Plus",action:e=>console.log("Add asset",e)},{id:"organize-assets",label:"Organize",iconName:"FolderOpen",action:e=>console.log("Organize assets",e)}],data:[{id:"asset-1",title:"Logo Variations",subtitle:"Brand Assets",value:"12 files",metadata:{format:"SVG",size:"2.4MB",updated:"2024-01-20"}},{id:"asset-2",title:"UI Components",subtitle:"Component Library",value:"45 components",metadata:{format:"Figma",size:"18.7MB",updated:"2024-01-22"}}]}]},{id:"product",name:"Product",description:"Product management and strategy",iconName:"Layers",color:"bg-indigo-600",type:"category",actions:[{id:"view-roadmap",label:"View Roadmap",description:"See product roadmap",iconName:"Map",action:e=>console.log("View roadmap",e)},{id:"create-feature",label:"Create Feature",iconName:"Plus",action:e=>console.log("Create feature",e)}],children:[{id:"features",name:"Features",description:"Product features and requirements",iconName:"Star",color:"bg-indigo-500",type:"list",actions:[{id:"add-feature",label:"Add Feature",iconName:"Plus",action:e=>console.log("Add feature",e)},{id:"prioritize-features",label:"Prioritize",iconName:"ArrowUp",action:e=>console.log("Prioritize features",e)}],data:[{id:"feature-1",title:"User Authentication",subtitle:"Security Feature",value:"In Development",metadata:{priority:"High",effort:"Large",impact:"High"}},{id:"feature-2",title:"Dark Mode",subtitle:"UI Enhancement",value:"Backlog",metadata:{priority:"Medium",effort:"Small",impact:"Medium"}}]}]}];function FT(e){let t=Tn,a=null;for(let o of e){if(a=t.find(r=>r.id===o||r.name===o)||null,!a)return null;t=a.children||[]}return a}function HT(e){let t=e.path[e.path.length-1];return t?.actions?t.actions:[]}function jT(e){return Tn.filter(t=>t.name.toLowerCase().includes(e.toLowerCase())||e.toLowerCase().includes(t.name.toLowerCase()))}function OT(){return Tn}import{Clock as nv}from"lucide-react";import{formatDistanceToNow as lv}from"date-fns";import{jsx as ya,jsxs as ti}from"react/jsx-runtime";function YT({artefact:e,taskId:t,taskData:a,loading:o=!1,error:r=null}){let s=a||{id:t,name:"Loading...",description:"",status:"done",dateLogged:new Date().toISOString(),project:{id:-1,name:""}},n=s.dateLogged;try{let i=new Date(s.dateLogged);isNaN(i.getTime())||(n=lv(i,{addSuffix:!0}))}catch{}return ti(Y,{className:"w-full max-w-md shadow-md",children:[ya(de,{className:"pb-2",children:ya("div",{className:"flex justify-between items-start",children:ya(ce,{className:"text-lg font-semibold",children:o?"Loading...":s.name})})}),ya(J,{className:"pb-2",children:o?ya("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):r?ya("p",{className:"text-sm text-red-500",children:"Error loading task details"}):ya("p",{className:"text-sm text-foreground",children:e})}),ya(wo,{className:"pt-2 flex items-center justify-between",children:ti("div",{className:"flex items-center text-xs text-gray-500",children:[ya(nv,{className:"h-3 w-3 mr-1"}),ti("span",{children:["Created ",n]}),ya("span",{className:"mx-2",children:"\u2022"}),ti("span",{children:["Task #",s.id]})]})})]})}import{motion as Zc}from"framer-motion";import{ChevronDown as dv}from"lucide-react";import{jsx as xa,jsxs as Dn}from"react/jsx-runtime";function em({activeTab:e,onTabChange:t,tabOptions:a,className:o="",maxWidth:r="700px",gridCols:s=6}){let n=a.find(i=>i.value===e);return Dn(Zc.div,{className:`flex-1 flex justify-center ${o}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[xa("div",{className:"hidden md:block",children:xa(od,{value:e,onValueChange:t,children:xa(rd,{className:"grid w-full rounded-2xl p-0 h-10",style:{maxWidth:r,gridTemplateColumns:`repeat(${Math.min(s,a.length)}, minmax(0, 1fr))`},children:a.map(i=>xa(Zc.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:xa(sd,{value:i.value,className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:i.label})},i.value))})})}),xa("div",{className:"md:hidden",children:Dn(hi,{children:[xa(yi,{asChild:!0,children:Dn(C,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[n?.label||"Select",xa(dv,{className:"h-4 w-4 ml-2"})]})}),xa(Jr,{align:"center",className:"w-[180px]",children:a.map(i=>xa(Zr,{onClick:()=>t?.(i.value),className:`cursor-pointer ${e===i.value?"bg-accent":""}`,children:i.label},i.value))})]})})]})}import{useState as tm,useEffect as cv,useMemo as mv}from"react";import{motion as Fo,AnimatePresence as pv}from"framer-motion";import{ChevronRight as am,ChevronLeft as uv,Menu as gv,X as fv}from"lucide-react";import{jsx as ne,jsxs as At}from"react/jsx-runtime";function pD({capabilities:e,isOpen:t,onToggle:a,onActionSelect:o,onContextChange:r,colorScheme:s=Jc,className:n}){let[i,d]=tm([]),[m,c]=tm([]),p=i[i.length-1],u=p?.children||e,g=(h,w)=>{switch(h.type){case"category":return s.categories[w%s.categories.length];case"list":return s.lists[w%s.lists.length];case"item":return s.items[w%s.items.length];default:return s.primary}},b=mv(()=>({path:i,selectedItems:m,filters:{}}),[i,m]);cv(()=>{r&&r(b)},[b,r]);let f=h=>{h.type==="category"||h.type==="list"?d([...i,h]):h.type==="item"&&c([...m,h])},y=()=>{d(i.slice(0,-1))},R=h=>{d(i.slice(0,h+1))},P=()=>p?.actions?p.actions:[];return t?At("div",{className:l("w-full",n),children:[At("div",{className:"flex items-center justify-between mb-3",children:[At("div",{className:"flex items-center gap-2",children:[i.length>0&&ne(Fo.button,{whileHover:{scale:1.1,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.9,transition:{duration:.15,ease:[.4,0,.2,1]}},onClick:y,className:l("group p-1 h-6 w-6 rounded-md backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:shadow-sm"),children:ne(uv,{className:l("h-3 w-3 transition-transform duration-300 ease-in-out","group-hover:-translate-x-0.5")})}),ne("h4",{className:"font-medium text-sm",children:p?.name||"Capabilities"})]}),ne(Fo.button,{whileHover:{scale:1.1,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.9,transition:{duration:.15,ease:[.4,0,.2,1]}},onClick:a,className:l("group p-1 h-6 w-6 rounded-md backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:shadow-sm"),children:ne(fv,{className:l("h-3 w-3 transition-transform duration-300 ease-in-out","group-hover:rotate-90")})})]}),i.length>0&&At("div",{className:"flex items-center gap-1 mb-3 text-xs text-muted-foreground",children:[ne(Fo.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>d([]),className:l("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:At("span",{className:"relative",children:["Capabilities",ne("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})}),i.map((h,w)=>At("div",{className:"flex items-center gap-1",children:[ne(am,{className:"h-2 w-2"}),ne(Fo.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>R(w),className:l("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:At("span",{className:"relative",children:[h.name,ne("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})})]},h.id))]}),ne("div",{className:"max-h-40 overflow-y-auto",children:ne(pv,{mode:"wait",children:ne(Fo.div,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.2,ease:[.4,0,.2,1]},children:p?.type==="list"&&p.data?ne(hv,{data:p.data,onItemSelect:h=>c([...m,h]),colorScheme:s}):ne(bv,{capabilities:u,onSelect:f,colorScheme:s})},p?.id||"root")})})]}):At(C,{onClick:a,size:"sm",variant:"outline",className:"rounded-full",children:[ne(gv,{className:"h-4 w-4"}),ne("span",{className:"ml-2",children:"Capabilities"})]})}function bv({capabilities:e,onSelect:t,colorScheme:a}){return ne("div",{className:"flex flex-wrap gap-2",children:e.map((o,r)=>ne(vv,{capability:o,onClick:()=>t(o),color:a.categories[r%a.categories.length]},o.id))})}function vv({capability:e,onClick:t,selected:a,color:o}){return At(Fo.button,{whileHover:{scale:1.02,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.95,transition:{duration:.15,ease:[.4,0,.2,1]}},className:l("group relative inline-flex items-center gap-2 px-3 py-2 rounded-lg border cursor-pointer","bg-background text-left text-sm font-medium backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:border-accent/50 hover:shadow-sm",a&&"border-primary bg-accent scale-105"),onClick:t,children:[ne("div",{className:l("w-2 h-2 rounded-full flex-shrink-0 transition-transform duration-300 ease-in-out","group-hover:scale-125",o)}),At("span",{className:"truncate relative",children:[e.name,ne("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),(e.children||e.data)&&ne(am,{className:l("h-3 w-3 text-muted-foreground flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:translate-x-0.5")}),e.type==="list"&&e.data&&ne(Me,{variant:"secondary",className:l("text-xs h-5 px-1.5 flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:scale-110"),children:e.data.length})]})}function hv({data:e,onItemSelect:t,colorScheme:a}){return ne("div",{className:"flex flex-wrap gap-2",children:e.map((o,r)=>At(Fo.button,{whileHover:{scale:1.02,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.95,transition:{duration:.15,ease:[.4,0,.2,1]}},className:l("group relative inline-flex items-center gap-2 px-3 py-2 rounded-lg border cursor-pointer","bg-background text-left text-sm font-medium backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:border-accent/50 hover:shadow-sm"),onClick:()=>t(o),children:[ne("div",{className:l("w-2 h-2 rounded-full flex-shrink-0 transition-transform duration-300 ease-in-out","group-hover:scale-125",a.items[r%a.items.length])}),At("div",{className:"flex-1 min-w-0",children:[At("span",{className:"truncate relative font-medium",children:[o.title,ne("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),o.subtitle&&ne("div",{className:l("text-xs text-muted-foreground truncate","transition-colors duration-300 ease-in-out group-hover:text-accent/80"),children:o.subtitle})]}),o.value&&ne(Me,{variant:"secondary",className:l("text-xs h-5 px-1.5 flex-shrink-0 ml-2","transition-transform duration-300 ease-in-out group-hover:scale-110"),children:o.value})]},o.id))})}import{useState as wa}from"react";import{FileText as yv,ListChecks as sm,AlertTriangle as xv,Users as wv,Briefcase as Nv,ShieldAlert as Cv,PlusCircle as kv,Trash2 as Pv}from"lucide-react";import{jsx as O,jsxs as ke}from"react/jsx-runtime";var Sv=[{name:"",commentary:"",dueDate:"",rag:"On-Track"}],om=["On-Track","Off-Track","At Risk","Complete"],rm=[{name:"Project Summary",icon:yv},{name:"Milestones",icon:sm},{name:"Project Update",icon:wv},{name:"Project Concerns",icon:xv},{name:"Opportunities",icon:Nv},{name:"Risks",icon:Cv}];function An({onSubmit:e,customerProjectPairs:t}){let[a,o]=wa(rm[0].name),[r,s]=wa(null),[n,i]=wa(null),[d,m]=wa(""),[c,p]=wa(""),[u,g]=wa(Sv),[b,f]=wa(""),[y,R]=wa(""),[P,h]=wa(""),[w,x]=wa(""),k=Array.from(new Map((t??[]).map(v=>[v.customer.id,v.customer])).values()),V=(t??[]).filter(v=>v.customer.id===r).map(v=>v.project),M=(v,G,E)=>{g(fe=>{let Oe=[...fe];return G==="rag"&&!om.includes(E)?fe:(Oe[v]={...Oe[v],[G]:E},Oe)})},T=()=>{g(v=>[...v,{name:"",commentary:"",dueDate:"",rag:"On-Track"}])},N=v=>{g(G=>G.filter((E,fe)=>fe!==v))},z=async v=>{v.preventDefault();let G={customer:r,project:n,projectSummary:c,milestones:u.length>0?u:null,projectUpdate:b,projectConcerns:y||null,commercialOpportunities:P||null,commercialRisks:w||null};if(e)return e(G);try{let E=await fetch("/api/delivery-lead-submission",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(G)});if(!E.ok)throw new Error("Failed to submit delivery lead");let fe=await E.json();return{success:!0,message:"Delivery lead submitted successfully"}}catch(E){return console.error("Error submitting delivery lead:",E),{success:!1,message:"Failed to submit delivery lead"}}};return O("div",{className:"container mx-auto p-4 max-w-3xl",children:ke("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[O("div",{className:"mb-6 flex border-b border-zinc-200 dark:border-zinc-700 flex-wrap justify-evenly",children:rm.map(v=>ke("button",{className:`flex items-center gap-2 py-2 px-4 font-semibold border-b-2 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/60
23
24
  ${a===v.name?"border-accent text-accent bg-accent/10 dark:bg-accent/20":"border-transparent text-gray-500 dark:text-zinc-400 hover:text-accent hover:bg-accent/5 dark:hover:bg-accent/10"}
24
- text-sm sm:text-base flex-1 basis-1/4 min-w-[180px] max-w-xs justify-center`,onClick:()=>o(v.name),type:"button",children:[O(v.icon,{className:"w-5 h-5"}),O("span",{children:v.name})]},v.name))}),Ce("form",{onSubmit:z,className:"space-y-8",children:[a==="Project Summary"&&Ce("div",{className:"space-y-6",children:[Ce("div",{children:[O(I,{children:"Client Name"}),Ce(Lt,{value:r?.toString()??"",onValueChange:v=>s(Number(v)),children:[O(kt,{children:O(Bt,{placeholder:"Select client"})}),O(Pt,{children:C.map(v=>O(ct,{value:v.id.toString(),children:v.name},v.id))})]})]}),Ce("div",{children:[O(I,{children:"Project Name"}),Ce(Lt,{value:n?.toString()??"",onValueChange:v=>i(Number(v)),disabled:!r,children:[O(kt,{children:O(Bt,{placeholder:r?"Select project":"Select client first"})}),O(Pt,{children:V.map(v=>O(ct,{value:v.id.toString(),children:v.name},v.id))})]})]}),Ce("div",{children:[O(I,{children:"Project Summary"}),O("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:d,onChange:v=>p(v.target.value),required:!0,placeholder:"Provide a summary of the project, objectives, and outcomes"})]})]}),a==="Milestones"&&Ce("div",{children:[Ce("div",{className:"mb-4 flex justify-between items-center",children:[Ce(I,{className:"text-lg flex items-center gap-2",children:[O($c,{className:"w-5 h-5"}),"Milestones"]}),Ce(k,{type:"button",onClick:R,variant:"outline",className:"flex items-center gap-1",children:[O(Vb,{className:"w-5 h-5"})," Add Milestone"]})]}),O("div",{className:"space-y-4",children:u.map((v,_)=>Ce("div",{className:"grid grid-cols-5 gap-2 items-end border border-zinc-200 dark:border-zinc-700 p-2 rounded-lg bg-zinc-50 dark:bg-zinc-800 relative group",children:[Ce("div",{className:"col-span-1",children:[O(I,{children:"Milestone"}),O("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:v.name,onChange:E=>A(_,"name",E.target.value),required:!0,placeholder:"Milestone name"})]}),Ce("div",{className:"col-span-2",children:[O(I,{children:"Commentary"}),O("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:v.commentary,onChange:E=>A(_,"commentary",E.target.value),placeholder:"Commentary"})]}),Ce("div",{className:"col-span-1",children:[O(I,{children:"Due Date"}),O("input",{type:"date",className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:v.dueDate,onChange:E=>A(_,"dueDate",E.target.value),placeholder:"Due date"})]}),Ce("div",{className:"col-span-1",children:[O(I,{children:"RAG"}),O("select",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:v.rag,onChange:E=>A(_,"rag",E.target.value),children:jc.map(E=>O("option",{value:E,children:E},E))})]}),O("button",{type:"button",className:"absolute -top-2 -right-2 bg-white dark:bg-zinc-900 rounded-full shadow p-1 border border-gray-200 dark:border-zinc-700 opacity-0 group-hover:opacity-100 transition-opacity hover:bg-red-50 dark:hover:bg-red-900",onClick:()=>w(_),"aria-label":"Remove Milestone",children:O(Ub,{className:"w-5 h-5 text-red-500"})})]},_))})]}),a==="Project Update"&&Ce("div",{children:[O(I,{children:"Project Update & Immediate Focus"}),O("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:b,onChange:v=>f(v.target.value),required:!0,placeholder:"[Provide a brief project update, including current progress and any immediate areas of focus or priority for the coming weeks]"})]}),a==="Project Concerns"&&Ce("div",{children:[O(I,{children:"Project Concerns"}),O("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:h,onChange:v=>T(v.target.value),placeholder:"\u200B\u200B[Please highlight any project concerns, that may require escalation or support from the Cortex Reply senior leadership team]"})]}),a==="Opportunities"&&Ce("div",{children:[O(I,{children:"Commercial Opportunities"}),O("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:P,onChange:v=>y(v.target.value),placeholder:"[List any potential commercial opportunities, active conversations, or discussion points where Cortex Reply could provide value or support. These may highlight areas for expansion or collaboration across our service offerings]"})]}),a==="Risks"&&Ce("div",{children:[O(I,{children:"Commercial Risk/Issue Details"}),O("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:N,onChange:v=>x(v.target.value),placeholder:"[Please highlight any risks that could impact our commercial engagement, such as reputational concerns, risks to fixed-outcome milestones, changes in key client stakeholders, or challenges with project resourcing]"})]}),O("div",{className:"flex justify-end pt-4",children:O(k,{type:"submit",className:"px-6",children:"Submit"})})]})]})})}import{useState as Kb,useEffect as Xb}from"react";import{FileText as _c,ListChecks as Yb,AlertTriangle as qb,Users as Qb,Briefcase as Jb,ShieldAlert as Zb,Calendar as ev,User as tv,Building as av,X as ov}from"lucide-react";import{Fragment as rv,jsx as S,jsxs as K}from"react/jsx-runtime";var Gc={"On-Track":"bg-green-100 text-green-800 border-green-200","Off-Track":"bg-red-100 text-red-800 border-red-200","At Risk":"bg-yellow-100 text-yellow-800 border-yellow-200",Complete:"bg-blue-100 text-blue-800 border-blue-200"};function hn({submissions:e,isLoading:t=!1}){let[a,o]=Kb(null);Xb(()=>{let c=m=>{m.key==="Escape"&&o(null)};if(a)return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[a]);let r=c=>new Date(c).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}),s=e.find(c=>c.id.toString()===a);function n(c){return typeof c=="object"&&c!==null&&"projectName"in c?c.projectName:`Project #${c}`}function i(c){return typeof c=="object"&&c!==null&&"name"in c?c.name:`Customer #${c}`}return t?S("div",{className:"container mx-auto p-4 max-w-6xl",children:S("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:K("div",{className:"animate-pulse",children:[S("div",{className:"h-8 bg-gray-200 rounded w-1/4 mb-6"}),S("div",{className:"space-y-4",children:[...Array(5)].map((c,m)=>S("div",{className:"h-16 bg-gray-200 rounded"},m))})]})})}):e.length===0?S("div",{className:"container mx-auto p-4 max-w-6xl",children:S("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:K("div",{className:"text-center py-12",children:[S(_c,{className:"mx-auto h-12 w-12 text-gray-400"}),S("h3",{className:"mt-2 text-sm font-semibold text-gray-900 dark:text-zinc-100",children:"No submissions found"}),S("p",{className:"mt-1 text-sm text-gray-500 dark:text-zinc-400",children:"You haven't submitted any delivery lead reports yet."})]})})}):K(rv,{children:[S("div",{className:"container mx-auto p-4 max-w-6xl",children:K("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[K("div",{className:"mb-6",children:[S("h2",{className:"text-2xl font-bold text-gray-900 dark:text-zinc-100",children:"My Delivery Lead Submissions"}),S("p",{className:"text-sm text-gray-500 dark:text-zinc-400 mt-1",children:"View all your submitted delivery lead reports"})]}),S("div",{className:"overflow-y-auto max-h-96",children:K("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[S("thead",{className:"bg-gray-50 dark:bg-zinc-800 sticky top-0 z-10",children:K("tr",{children:[S("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Project Details"}),S("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Delivery Lead"}),S("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Milestones"}),S("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Submitted"}),S("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Actions"})]})}),S("tbody",{className:"bg-white dark:bg-zinc-900 divide-y divide-gray-200 dark:divide-zinc-700",children:e.map(c=>K("tr",{className:"hover:bg-gray-50 dark:hover:bg-zinc-800/50",children:[S("td",{className:"px-6 py-4 whitespace-nowrap",children:K("div",{children:[S("div",{className:"text-sm font-medium text-gray-900 dark:text-zinc-100",children:n(c.project)}),K("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[S(av,{className:"h-3 w-3"}),i(c.customer)]})]})}),S("td",{className:"px-6 py-4 whitespace-nowrap",children:K("div",{className:"text-sm text-gray-900 dark:text-zinc-100 flex items-center gap-1",children:[S(tv,{className:"h-3 w-3"}),typeof c.project=="object"&&c.project!==null&&"deliveryLead"in c.project&&typeof c.project.deliveryLead=="object"&&c.project.deliveryLead!==null&&"name"in c.project.deliveryLead?c.project.deliveryLead.name:"\u2014"]})}),S("td",{className:"px-6 py-4 whitespace-nowrap",children:K("div",{className:"flex flex-wrap gap-1",children:[c.milestones?.slice(0,3).map((m,d)=>S("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${Gc[m.rag]}`,children:m.rag},d)),c.milestones&&c.milestones.length>3&&K("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800 border border-gray-200",children:["+",c.milestones.length-3," more"]}),!c.milestones&&S("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800 border border-gray-200",children:"No milestones"})]})}),S("td",{className:"px-6 py-4 whitespace-nowrap",children:K("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[S(ev,{className:"h-3 w-3"}),r(c.createdAt)]})}),S("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium",children:S(k,{variant:"ghost",size:"sm",onClick:()=>o(c.id.toString()),className:"text-accent hover:text-accent/80",children:"View Details"})})]},c.id))})]})})]})}),s&&S("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:K("div",{className:"bg-white dark:bg-zinc-900 rounded-xl shadow-xl max-w-4xl w-full max-h-[90vh] overflow-y-auto",children:[K("div",{className:"flex items-center justify-between p-6 border-b border-gray-200 dark:border-zinc-700",children:[K("div",{children:[S("h2",{className:"text-xl font-semibold text-gray-900 dark:text-zinc-100",children:n(s.project)}),K("p",{className:"text-sm text-gray-500 dark:text-zinc-400",children:[i(s.customer)," \u2022"," ",r(s.createdAt)]})]}),S("button",{onClick:()=>o(null),className:"text-gray-400 hover:text-gray-600 dark:hover:text-zinc-300",children:S(ov,{className:"h-6 w-6"})})]}),K("div",{className:"p-6 space-y-6",children:[K("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[K("div",{children:[K(I,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[S(_c,{className:"h-4 w-4"}),"Project Summary"]}),S("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.projectSummary})]}),K("div",{children:[K(I,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[S(Qb,{className:"h-4 w-4"}),"Project Update"]}),S("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.projectUpdate})]}),s.projectConcerns&&K("div",{children:[K(I,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[S(qb,{className:"h-4 w-4"}),"Project Concerns"]}),S("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.projectConcerns})]}),s.commercialOpportunities&&K("div",{children:[K(I,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[S(Jb,{className:"h-4 w-4"}),"Commercial Opportunities"]}),S("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.commercialOpportunities})]}),s.commercialRisks&&K("div",{className:"lg:col-span-2",children:[K(I,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[S(Zb,{className:"h-4 w-4"}),"Commercial Risks"]}),S("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.commercialRisks})]})]}),K("div",{children:[K(I,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[S(Yb,{className:"h-4 w-4"}),"Milestones"]}),s.milestones&&s.milestones.length>0?S("div",{className:"bg-gray-50 dark:bg-zinc-800 rounded-lg border overflow-hidden",children:K("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[S("thead",{className:"bg-gray-100 dark:bg-zinc-700",children:K("tr",{children:[S("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Name"}),S("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Commentary"}),S("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Due Date"}),S("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Status"})]})}),S("tbody",{className:"divide-y divide-gray-200 dark:divide-zinc-700",children:s.milestones.map((c,m)=>K("tr",{children:[S("td",{className:"px-4 py-2 text-sm text-gray-900 dark:text-zinc-100",children:c.name}),S("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:c.commentary||"-"}),S("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:c.dueDate?r(c.dueDate):"-"}),S("td",{className:"px-4 py-2",children:S("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${Gc[c.rag]}`,children:c.rag})})]},m))})]})}):S("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:"No milestones defined for this project."})]})]}),S("div",{className:"flex justify-end p-6 border-t border-gray-200 dark:border-zinc-700",children:S(k,{onClick:()=>o(null),variant:"outline",children:"Close"})})]})})]})}import{useState as sv}from"react";import{ChevronDown as iv,ChevronUp as nv,List as lv}from"lucide-react";import{jsx as Ft,jsxs as rr}from"react/jsx-runtime";function dv({submissions:e,onSubmit:t,isLoading:a=!1,customerProjectPairs:o}){let[r,s]=sv(!1);return Ft("div",{className:"min-h-screen ",children:rr("div",{className:"container mx-auto p-4 max-w-6xl",children:[rr("div",{className:"mb-8",children:[Ft("h1",{className:"text-3xl font-bold text-gray-900 dark:text-zinc-100 mb-2",children:"Delivery Report Management"}),Ft("p",{className:"text-gray-600 dark:text-zinc-400",children:"Submit new delivery reports and view your previous submissions"})]}),Ft("div",{className:"mb-8",children:Ft(vn,{onSubmit:t,customerProjectPairs:o})}),rr("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800",children:[rr("button",{onClick:()=>s(!r),className:"w-full px-6 py-4 flex items-center justify-between hover:bg-gray-50 dark:hover:bg-zinc-800/50 transition-colors",children:[rr("div",{className:"flex items-center gap-3",children:[Ft(lv,{className:"h-5 w-5 text-gray-500 dark:text-zinc-400"}),Ft("h2",{className:"text-lg font-semibold text-gray-900 dark:text-zinc-100",children:"Previous Submissions"}),rr("span",{className:"text-sm text-gray-500 dark:text-zinc-400",children:["(",e.length,")"]})]}),Ft("div",{className:"flex items-center gap-2",children:r?Ft(nv,{className:"h-5 w-5 text-gray-500 dark:text-zinc-400"}):Ft(iv,{className:"h-5 w-5 text-gray-500 dark:text-zinc-400"})})]}),r&&Ft("div",{className:"border-t border-gray-200 dark:border-zinc-700",children:Ft(hn,{submissions:e,isLoading:a})})]})]})})}import{motion as Vc}from"framer-motion";import{ChevronDown as cv}from"lucide-react";import{jsx as fa,jsxs as yn}from"react/jsx-runtime";function Uc({activeTab:e,onTabChange:t,tabOptions:a,className:o="",maxWidth:r="700px",gridCols:s=6}){let n=a.find(i=>i.value===e);return yn(Vc.div,{className:`flex-1 flex justify-center ${o}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[fa("div",{className:"hidden md:block",children:fa(Ul,{value:e,onValueChange:t,children:fa(Wl,{className:"grid w-full rounded-2xl p-0 h-10",style:{maxWidth:r,gridTemplateColumns:`repeat(${Math.min(s,a.length)}, minmax(0, 1fr))`},children:a.map(i=>fa(Vc.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:fa(Kl,{value:i.value,className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:i.label})},i.value))})})}),fa("div",{className:"md:hidden",children:yn(ni,{children:[fa(li,{asChild:!0,children:yn(k,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[n?.label||"Select",fa(cv,{className:"h-4 w-4 ml-2"})]})}),fa(Vr,{align:"center",className:"w-[180px]",children:a.map(i=>fa(Ur,{onClick:()=>t?.(i.value),className:`cursor-pointer ${e===i.value?"bg-accent":""}`,children:i.label},i.value))})]})})]})}import{useState as yv}from"react";import{motion as uv}from"framer-motion";import{useState as mv,useEffect as pv}from"react";function Wc(e,t){let[a,o]=mv(()=>{if(typeof window>"u")return t;try{let s=window.localStorage.getItem(e);return s?JSON.parse(s):t}catch{return t}}),r=s=>{try{o(s),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(s))}catch{}};return pv(()=>{r(a)},[]),[a,r]}import{FaChevronDown as gv,FaChevronUp as fv}from"react-icons/fa";import{jsx as ba,jsxs as Ao}from"react/jsx-runtime";function sr({title:e,description:t,badge:a,primaryAction:o,secondaryAction:r,gradient:s,children:n,className:i}){let[c,m]=Wc(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!r&&!t),d=!r&&!t||c;return Ao(uv.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${s} p-8 text-white ${i||""}`,children:[Ao("div",{className:"flex items-center justify-between mb-2",children:[Ao("div",{className:"flex items-center gap-3",children:[a&&ba(Je,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:a}),ba("h2",{className:"text-3xl font-bold m-0",children:e})]}),Ao("div",{className:"flex items-center gap-3",children:[d&&o&&ba(k,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),(r||t)&&ba("button",{"aria-label":c?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>m(!c),style:{lineHeight:0},children:c?ba(gv,{size:22}):ba(fv,{size:22})})]})]}),!d&&Ao("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[Ao("div",{className:"space-y-4",children:[ba("p",{className:"max-w-[600px] text-white/80",children:t}),Ao("div",{className:"flex flex-wrap gap-3",children:[o&&ba(k,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),r&&ba(k,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:r.onClick,children:r.label})]})]}),n&&ba("div",{className:"hidden lg:block",children:n})]})]})}import{motion as Io}from"framer-motion";import{ChevronRight as bv,File as Ks,FileText as $r,Search as vv}from"lucide-react";import{useState as xn,useMemo as Kc}from"react";import{jsx as M,jsxs as be}from"react/jsx-runtime";function Xc({label:e,documents:t,children:a,level:o,onDocumentClick:r,selectedDocumentId:s,showDocumentCount:n=!0}){let[i,c]=xn(o===0),m=a&&Object.keys(a).length>0,d=t.length+(a?Object.values(a).reduce((g,b)=>g+b.documents.length,0):0),p=g=>{switch(g){case"markdown":case"mdx":return M($r,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richtext":return M(Ks,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return M(Ks,{className:"h-3.5 w-3.5 text-muted-foreground"})}},u=g=>{let b=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return b[g%b.length]};return be("div",{className:"space-y-1",children:[(m||t.length>0)&&be(Io.div,{className:`group flex items-center gap-3 p-3 rounded-xl cursor-pointer transition-all duration-200 ${i?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${o*20}px`},onClick:()=>c(!i),whileHover:{scale:1.01},whileTap:{scale:.99},children:[M("div",{className:`w-1 h-6 rounded-full ${u(o)}`}),M(Io.div,{animate:{rotate:i?90:0},transition:{duration:.2},className:"flex-shrink-0",children:M(bv,{className:"h-4 w-4 text-muted-foreground"})}),be("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[M("div",{className:"flex items-center gap-2 min-w-0",children:M("span",{className:"font-medium text-foreground truncate",children:e})}),n&&d>0&&M("div",{className:"flex-shrink-0 ml-2",children:M("span",{className:"inline-flex items-center justify-center w-6 h-6 text-xs font-medium bg-muted text-muted-foreground rounded-full",children:d})})]})]}),M(Io.div,{initial:!1,animate:{height:i?"auto":0,opacity:i?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:be("div",{className:"pt-2 space-y-1",children:[t.map((g,b)=>be(Io.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:b*.05,duration:.2},className:`group flex items-center gap-3 p-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${s===g.id?"bg-primary/10 border-l-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${o*20+20}px`},onClick:()=>r?.(g),whileHover:{scale:1.01},whileTap:{scale:.99},children:[M("div",{className:"flex-shrink-0",children:p(g.format)}),be("div",{className:"flex-1 min-w-0",children:[M("p",{className:`text-sm truncate transition-colors ${s===g.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:g.title}),g.description&&M("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:g.description})]}),g.tags&&g.tags.length>0&&M("div",{className:"flex-shrink-0",children:M("span",{className:"inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-muted text-muted-foreground group-hover:bg-muted/80 transition-colors",children:g.tags[0]})})]},g.id)),a&&Object.entries(a).map(([g,b])=>M(Xc,{label:g,documents:b.documents,children:b.children,level:o+1,onDocumentClick:r,selectedDocumentId:s,showDocumentCount:n},g))]})})]})}function hv({document:e}){let t=o=>{switch(o){case"markdown":case"mdx":return M($r,{className:"h-6 w-6 text-primary"});case"richtext":return M(Ks,{className:"h-6 w-6 text-success"});default:return M(Ks,{className:"h-6 w-6 text-muted-foreground"})}},a=o=>{switch(o){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richtext":return"bg-success/10 text-success border-success/20";default:return"bg-muted text-muted-foreground border-border"}};return be(Io.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[M("div",{className:"border-b border-border bg-card p-8",children:be("div",{className:"flex items-start gap-4",children:[M("div",{className:"flex-shrink-0 p-3 rounded-xl bg-muted border border-border",children:t(e.format)}),be("div",{className:"flex-1 min-w-0",children:[M("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:e.title}),e.description&&M("p",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:e.description}),be("div",{className:"flex flex-wrap gap-2",children:[M("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${a(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(o=>be("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",o]},o))]})]})]})}),M("div",{className:"flex-1 overflow-auto",children:be("div",{className:"p-8",children:[e.metadata&&Object.keys(e.metadata).length>0&&be("div",{className:"mb-6",children:[M("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),M("div",{className:"bg-muted rounded-lg p-3 border border-border",children:M("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-y-1 text-xs",children:Object.entries(e.metadata).map(([o,r])=>be("div",{className:"flex gap-1",children:[be("span",{className:"text-muted-foreground font-medium",children:[o.replace(/([A-Z])/g," $1").trim(),":"]}),M("span",{className:"text-foreground truncate",children:String(r)})]},o))})})]}),M("div",{className:"space-y-4",children:e.content?be("div",{className:"relative",children:[M("div",{className:"bg-card border border-border rounded-xl p-6 overflow-hidden",children:be("pre",{className:"text-card-foreground text-sm leading-relaxed whitespace-pre-wrap font-mono",children:[e.content.substring(0,1500),e.content.length>1500&&"..."]})}),e.content.length>1500&&M("div",{className:"absolute bottom-0 left-0 right-0 h-16 bg-gradient-to-t from-card to-transparent rounded-b-xl flex items-end justify-center pb-2",children:M("span",{className:"text-muted-foreground text-xs",children:"Content truncated"})})]}):be("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[M("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:M($r,{className:"h-8 w-8 text-muted-foreground"})}),M("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),M("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}function wn({documents:e,menuConfig:t,onDocumentClick:a,onDocumentShare:o,selectedDocumentId:r,className:s}){let[n,i]=xn(""),[c,m]=xn(null),d=Kc(()=>n?e.filter(g=>g.title.toLowerCase().includes(n.toLowerCase())||g.description?.toLowerCase().includes(n.toLowerCase())||g.tags?.some(b=>b.toLowerCase().includes(n.toLowerCase()))||Object.values(g.metadata||{}).some(b=>String(b).toLowerCase().includes(n.toLowerCase()))):e,[e,n]),p=Kc(()=>{let g=(b,f)=>{if(f.length===0)return{};let[h,...T]=f;return b.reduce((y,N)=>{let x=N.metadata?.[h]||"Uncategorized",C=String(x);if(y[C]||(y[C]={documents:[],children:{}}),T.length===0)y[C].documents.push(N);else{let V=g([N],T),A=Object.keys(V)[0];A&&(y[C].children||(y[C].children={}),y[C].children[A]?y[C].children[A].documents.push(...V[A].documents):y[C].children[A]=V[A])}return y},{})};return g(d,t.groupBy)},[d,t.groupBy]),u=g=>{m(g),a?.(g)};return be("div",{className:`flex h-full ${s||""}`,children:[be("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[M("div",{className:"p-6 border-b border-border",children:be("div",{className:"relative",children:[M("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:M(vv,{className:"h-4 w-4 text-muted-foreground"})}),M(Ge,{placeholder:"Search knowledge base...",value:n,onChange:g=>i(g.target.value),className:"pl-10 bg-background/80 border-border focus:border-primary/50 focus:ring-primary/20 rounded-xl h-11 text-sm placeholder:text-muted-foreground"})]})}),M(Vt,{className:"h-[calc(100%-100px)]",children:be("div",{className:"p-4 space-y-3",children:[Object.entries(p).map(([g,b])=>M(Xc,{label:g,documents:b.documents,children:b.children,level:0,onDocumentClick:u,selectedDocumentId:r,showDocumentCount:t.showDocumentCount},g)),Object.keys(p).length===0&&be(Io.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[M("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:M($r,{className:"h-8 w-8 text-muted-foreground"})}),M("p",{className:"text-sm font-medium",children:"No documents found"}),M("p",{className:"text-xs mt-1",children:"Try adjusting your search terms"})]})]})})]}),M("div",{className:"flex-1 bg-background",children:c?M(hv,{document:c}):M("div",{className:"h-full flex items-center justify-center text-center",children:be(Io.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"max-w-sm",children:[M("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:M($r,{className:"h-10 w-10 text-primary"})}),M("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),M("p",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}import{Server as xv,Code as wv,Users as Nv,BookOpen as Cv}from"lucide-react";import{jsx as jt,jsxs as Xs}from"react/jsx-runtime";var kv=[{id:"all",label:"All Documentation",description:"Browse all documentation organized by category and type",icon:jt(Cv,{className:"h-4 w-4"}),menuConfig:{groupBy:["category","type"],sortBy:"title",sortOrder:"asc",showDocumentCount:!0}},{id:"services",label:"Services",description:"Documentation organized by service and team",icon:jt(xv,{className:"h-4 w-4"}),menuConfig:{groupBy:["service","team"],sortBy:"updatedAt",sortOrder:"desc",showDocumentCount:!0}},{id:"architecture",label:"Architecture",description:"System architecture documentation by component and layer",icon:jt(wv,{className:"h-4 w-4"}),menuConfig:{groupBy:["component","layer"],sortBy:"title",sortOrder:"asc",showDocumentCount:!0}},{id:"teams",label:"Teams",description:"Documentation organized by team and project",icon:jt(Nv,{className:"h-4 w-4"}),menuConfig:{groupBy:["team","project"],sortBy:"updatedAt",sortOrder:"desc",showDocumentCount:!0}}];function Yc({documents:e=[],contexts:t=kv,onDocumentClick:a=s=>console.log("Document clicked:",s),onDocumentShare:o=s=>console.log("Share document:",s),selectedDocumentId:r}){let[s,n]=yv(t[0]);return Xs("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[Xs("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[jt(sr,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-to-r from-teal-600 via-cyan-600 to-blue-600",primaryAction:{label:"Create",onClick:()=>console.log("Create document clicked")}}),Xs("div",{className:"mt-6",children:[jt("div",{className:"border-b border-border",children:jt("nav",{className:"-mb-px flex space-x-8 overflow-x-auto",children:t.map(i=>Xs("button",{onClick:()=>n(i),className:`group inline-flex items-center gap-2 py-3 px-1 border-b-2 font-medium text-sm whitespace-nowrap transition-colors ${s.id===i.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[i.icon,i.label]},i.id))})}),s.description&&jt("div",{className:"mt-3 px-1",children:jt("p",{className:"text-sm text-muted-foreground",children:s.description})})]})]}),jt("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:jt("div",{className:"h-full rounded-3xl border overflow-hidden",children:jt(wn,{documents:e,menuConfig:s.menuConfig,onDocumentClick:a,onDocumentShare:o,selectedDocumentId:r})})})]})}import{useState as Dv}from"react";import{motion as Mv,AnimatePresence as Av}from"framer-motion";import{motion as Pv}from"framer-motion";import{Users as Sv,Bot as Rv,FolderOpen as Tv}from"lucide-react";import{jsx as vt,jsxs as va}from"react/jsx-runtime";function Nn({team:e,onOpen:t,className:a}){return vt(Pv.div,{whileHover:{scale:1.02,y:-5},whileTap:{scale:.98},className:a,children:va(Q,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[va(pe,{children:[vt(ue,{className:"text-lg",children:e.name}),vt(Mr,{className:"mt-1 text-sm",children:e.description})]}),va(Z,{className:"space-y-4",children:[va("div",{className:"grid grid-cols-2 gap-4",children:[va("div",{className:"flex items-center justify-between text-sm",children:[va("div",{className:"flex items-center gap-2",children:[vt(Sv,{className:"h-4 w-4 text-blue-500"}),vt("span",{children:"Human"})]}),vt("span",{className:"font-medium",children:e.humanColleagues})]}),va("div",{className:"flex items-center justify-between text-sm",children:[va("div",{className:"flex items-center gap-2",children:[vt(Rv,{className:"h-4 w-4 text-purple-500"}),vt("span",{children:"Digital"})]}),vt("span",{className:"font-medium",children:e.digitalColleagues})]})]}),va("div",{className:"flex items-center justify-between text-sm border-t pt-4",children:[va("div",{className:"flex items-center gap-2",children:[vt(Tv,{className:"h-4 w-4 text-green-500"}),vt("span",{children:"Projects"})]}),vt("span",{className:"font-medium",children:e.projects})]})]}),vt(Ar,{className:"flex gap-2",children:vt(k,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>t?.(e),children:"View Team"})})]})})}import{jsx as Ot,jsxs as ir}from"react/jsx-runtime";function qc({teams:e=[],onCreateTeam:t,onTeamOpen:a}){let[o,r]=Dv(!1),s=()=>{r(!0),t?.()},n=i=>{a?.(i)};return ir("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[Ot(Av,{mode:"wait",children:ir(Mv.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[Ot(sr,{title:"My Teams",description:"Collaborate with your human and digital colleagues across different teams and projects.",gradient:"bg-gradient-to-r from-blue-600 via-cyan-600 to-teal-600",primaryAction:{label:"Create Team",onClick:s}}),ir("section",{className:"space-y-4 mt-8",children:[Ot("h2",{className:"text-2xl font-semibold",children:"Active Teams"}),e.length===0?ir("div",{className:"text-center py-12",children:[Ot("p",{className:"text-muted-foreground text-lg",children:"You're not part of any teams yet."}),Ot("p",{className:"text-muted-foreground text-sm mt-2",children:"Create a new team or ask to be added to an existing one."})]}):Ot("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:e.map(i=>Ot(Nn,{team:i,onOpen:n},i.id))})]})]},"teams-index-view")}),Ot(Wt,{open:o,onOpenChange:r,children:ir(At,{className:"max-w-3xl max-h-[90vh] overflow-y-auto",children:[ir(ta,{children:[Ot(aa,{children:"Create New Team"}),Ot(cs,{children:"Set up a new team to collaborate with colleagues on projects."})]}),Ot("div",{className:"p-6 text-center text-muted-foreground",children:Ot("p",{children:"Team creation form coming soon..."})})]})})]})}import{useState as Ys}from"react";import{Plus as Ev,Search as Hv,File as qs,Filter as Fv}from"lucide-react";import{motion as Iv}from"framer-motion";import{MoreHorizontal as Lv,Trash2 as Bv,Edit as zv}from"lucide-react";import{jsx as ot,jsxs as nr}from"react/jsx-runtime";function _r({files:e,onFileClick:t,onFileEdit:a,onFileDelete:o,showHeader:r=!0,className:s}){return nr("div",{className:`rounded-3xl border overflow-hidden ${s||""}`,children:[r&&nr("div",{className:"bg-muted/50 p-3 hidden md:grid md:grid-cols-10 text-sm font-medium",children:[ot("div",{className:"col-span-6",children:"Name"}),ot("div",{className:"col-span-2",children:"Size"}),ot("div",{className:"col-span-2",children:"Modified"})]}),ot("div",{className:"divide-y",children:e.map(n=>nr(Iv.div,{whileHover:{backgroundColor:"rgba(0,0,0,0.02)"},className:"p-3 md:grid md:grid-cols-10 items-center flex flex-col md:flex-row gap-3 md:gap-0 cursor-pointer",onClick:()=>t?.(n),children:[nr("div",{className:"col-span-6 flex items-center gap-3 w-full md:w-auto",children:[ot("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-muted",children:n.icon}),ot("div",{children:ot("p",{className:"font-medium",children:n.name})})]}),ot("div",{className:"col-span-2 text-sm md:text-base",children:n.size}),nr("div",{className:"col-span-2 flex items-center justify-between w-full md:w-auto",children:[ot("span",{className:"text-sm md:text-base",children:n.modified}),nr("div",{className:"flex gap-1",children:[ot(k,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",onClick:i=>{i.stopPropagation(),a?.(n)},children:ot(zv,{className:"h-4 w-4"})}),ot(k,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl text-red-500 hover:text-red-600",onClick:i=>{i.stopPropagation(),o?.(n)},children:ot(Bv,{className:"h-4 w-4"})}),ot(k,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",children:ot(Lv,{className:"h-4 w-4"})})]})]})]},n.name))})]})}import{motion as jv,AnimatePresence as Ov}from"framer-motion";import{jsx as X,jsxs as Le}from"react/jsx-runtime";function Qc({initialFiles:e=[],onFileAdd:t,onFileEdit:a,onFileDelete:o,onFileClick:r,compactView:s=!1,className:n}){let[i,c]=Ys(e),[m,d]=Ys(""),[p,u]=Ys("all"),[g,b]=Ys("all"),f=Array.from(new Set(i.map(A=>A.app))),h=i.filter(A=>{let R=A.name.toLowerCase().includes(m.toLowerCase()),w=p==="all"||A.app===p;return R&&w}),T=h.slice(0,10),P=h.filter(A=>A.shared),y=()=>{console.log("Add file clicked")},N=A=>{console.log("Edit file:",A.name),a?.(A)},x=A=>{c(R=>R.filter(w=>w.name!==A.name)),o?.(A.name)},C=A=>{console.log("File clicked:",A.name),r?.(A)},V=()=>{d(""),u("all")};return X("div",{className:"px-2 md:px-4 py-4 space-y-8",children:X(Ov,{mode:"wait",children:X(jv.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:Le("div",{className:`space-y-6 ${n||""}`,children:[X(sr,{title:"Files",description:"Manage and organize your files and documents.",gradient:"bg-gradient-to-r from-blue-600 via-indigo-600 to-purple-600",primaryAction:{label:"Upload file",onClick:y},secondaryAction:{label:"Download all",onClick:()=>console.log("Download all clicked")}}),Le("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[Le(Q,{children:[Le(pe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[X(ue,{className:"text-sm font-medium",children:"Total Files"}),X(qs,{className:"h-4 w-4 text-muted-foreground"})]}),Le(Z,{children:[X("div",{className:"text-2xl font-bold",children:i.length}),Le("p",{className:"text-xs text-muted-foreground",children:[i.filter(A=>A.shared).length," shared"]})]})]}),Le(Q,{children:[Le(pe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[X(ue,{className:"text-sm font-medium",children:"Storage Used"}),X(qs,{className:"h-4 w-4 text-muted-foreground"})]}),Le(Z,{children:[X("div",{className:"text-2xl font-bold",children:"2.4 GB"}),X("p",{className:"text-xs text-muted-foreground",children:"of 10 GB used"})]})]}),Le(Q,{children:[Le(pe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[X(ue,{className:"text-sm font-medium",children:"Recent Activity"}),X(qs,{className:"h-4 w-4 text-muted-foreground"})]}),Le(Z,{children:[X("div",{className:"text-2xl font-bold",children:"12"}),X("p",{className:"text-xs text-muted-foreground",children:"files modified today"})]})]})]}),X(Q,{children:X(Z,{className:"pt-6",children:Le("div",{className:"flex flex-col md:flex-row gap-4",children:[X("div",{className:"flex-1",children:Le("div",{className:"relative",children:[X(Hv,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),X(Ge,{placeholder:"Search files...",value:m,onChange:A=>d(A.target.value),className:"pl-9"})]})}),Le(Lt,{value:p,onValueChange:u,children:[X(kt,{className:"w-full md:w-[180px]",children:X(Bt,{placeholder:"Filter by app"})}),Le(Pt,{children:[X(ct,{value:"all",children:"All Apps"}),f.map(A=>X(ct,{value:A,children:A},A))]})]}),(m||p!=="all")&&Le(k,{variant:"outline",onClick:V,className:"gap-2",children:[X(Fv,{className:"h-4 w-4"}),"Clear"]})]})})}),Le("div",{className:"space-y-4",children:[X(Uc,{activeTab:g,onTabChange:b,tabOptions:[{value:"all",label:`All Files (${h.length})`},{value:"recent",label:`Recent (${T.length})`},{value:"shared",label:`Shared (${P.length})`}],maxWidth:"500px",gridCols:3}),g==="all"&&X(_r,{files:h,onFileClick:C,onFileEdit:N,onFileDelete:x,showHeader:!s}),g==="recent"&&X(_r,{files:T,onFileClick:C,onFileEdit:N,onFileDelete:x,showHeader:!s}),g==="shared"&&X(_r,{files:P,onFileClick:C,onFileEdit:N,onFileDelete:x,showHeader:!s})]}),h.length===0&&X(Q,{children:X(Z,{className:"pt-6",children:Le("div",{className:"text-center py-8",children:[X(qs,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),X("h3",{className:"text-lg font-semibold mb-2",children:"No files found"}),X("p",{className:"text-muted-foreground mb-4",children:m||p!=="all"?"Try adjusting your filters to see more results.":"Get started by uploading your first file."}),Le(k,{onClick:y,className:"gap-2",children:[X(Ev,{className:"h-4 w-4"}),"Upload File"]})]})})})]})},"files-view")})})}var lr=(e,t)=>e[t%e.length];import{jsx as dr,jsxs as Jc}from"react/jsx-runtime";function VD({services:e,className:t,title:a,content:o}){let r={settings:{width:"full",card:"light"}};return Jc("div",{className:"pb-4 md:pb-0",children:[Jc("div",{className:l("w-full text-left prose"),children:[a&&dr("h2",{className:"text-primary",children:a}),dr("div",{className:"pb-12 ",children:o&&dr(W,{enableGutter:!1,content:o,enableProse:!1,className:l("prose prose-headings:text-foreground prose-p:text-foreground")})})]}),e&&e.length>0&&dr("div",{className:"-mx-4 flex flex-wrap justify-between gap-y-8",children:e.map((s,n)=>dr("div",{"data-aos":"fade-up","data-aos-delay":lr([200,400,600],n),className:"w-full px-4 md:w-1/2 lg:w-1/3 flex",children:dr(Rr,{...r,icon:{type:"none"},title:s.title,image:s.image,content:s.content,link:s.link,className:"w-full"})},n))})]})}import{jsx as Qs,jsxs as $v}from"react/jsx-runtime";function Ja({subtitle:e,title:t,description:a,alignment:o="start",hasBottomSpacing:r=!1,className:s,invert:n=!1}){let i=l(o==="start"&&"text-left",o==="center"&&"text-center",o==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":r},"prose",s);return $v("div",{className:i,children:[e&&Qs("span",{className:"mb-[.625rem] block font-semibold uppercase text-accent md:text-md",children:e}),Qs("h2",{className:l("text-primary mt-0"),children:t}),typeof a=="string"?a&&Qs("p",{className:"mt-5 whitespace-pre-line text-foreground",children:a}):a&&Qs(W,{content:a,enableGutter:!1,className:"prose-headings:text-accent prose-p:text-primary"})]})}import{jsx as cr,jsxs as _v}from"react/jsx-runtime";function a6({sectionHeading:e,cards:t}){return cr("section",{className:"section-padding-primary !pt-0",children:_v(Rt,{children:[cr("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:cr(Ja,{...e,alignment:"center",hasBottomSpacing:!0})}),t&&t.length>0&&cr("div",{className:"grid gap-30px",children:t.map((a,o)=>cr("div",{"data-aos":"fade-up","data-aos-delay":lr([200,400,600],o),className:"py-2",children:cr(yd,{...a})},o))})]})})}import Js from"next/image";import{Fragment as Gv,jsx as ve,jsxs as Zs}from"react/jsx-runtime";function c6(e){let{images:t,sectionHeading:a,keyPoints:o,description:r}=e;return ve(Gv,{children:ve("section",{id:"about-section",className:l(" clip-custom-top-l sticky md:top-0 md:h-screen z-2 flex flex-col items-center justify-center section-padding-primary dark bg-background",e.className||""),children:ve(Rt,{children:Zs("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[Zs("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[ve(Ja,{...a}),o&&o.length>0&&ve("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:o.map((s,n)=>Zs("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:[ve("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:s.icon}),ve("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:s.title})]},n))}),r&&ve("p",{className:"mt-5 text-primary md:mt-[1.875rem]",children:r})]}),t&&ve("div",{className:"mx-auto text-center",children:Zs("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[ve("div",{className:"relative flex justify-end overflow-hidden",children:ve("div",{className:"relative z-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:ve("div",{className:"relative z-[4] overflow-hidden",children:ve(Js,{src:t.image1.src,alt:t.image1.alt,width:t.image1.width,height:t.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})})}),ve("div",{className:"flex overflow-hidden",children:ve(Js,{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"})}),ve("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:ve(Js,{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"})}),ve("div",{className:"overflow-hidden",children:ve(Js,{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"})}),ve("div",{className:"absolute left-1/2 top-1/2 z-[4] -translate-x-1/2 -translate-y-1/2 overflow-hidden",children:ve("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:ve("span",{className:"grid h-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:ve("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:ve("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"})})})})})]})})]})})})})}import Vv from"next/image";import{jsx as rt,jsxs as Lo}from"react/jsx-runtime";function Zc({blogs:e,base:t}){return rt("div",{children:e&&e.length>0&&rt("div",{className:"grid gap-10 lg:gap-10 md:grid-cols-2",children:e.map((a,o)=>rt(Uv,{post:a,id:o,base:t},o))})})}var Uv=({post:e,id:t,base:a})=>{let{slug:o,meta:r,authors:s,categories:n,title:i,publishedAt:c}=e;return Lo("article",{className:"relative isolate flex flex-col gap-8 lg:flex-row",children:[Lo("div",{className:"relative aspect-video sm:aspect-[2/1] lg:aspect-square lg:w-64 lg:shrink-0",children:[rt(Vv,{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"}),rt("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"})]}),Lo("div",{children:[Lo("div",{className:"flex flex-wrap items-center gap-x-4 text-xs",children:[rt("time",{dateTime:e.publishedAt??void 0,className:"text-foreground",children:Ls(e.publishedAt??"")}),e.categories&&e.categories.map((m,d)=>rt("a",{href:`#${m}`,className:"relative z-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100",children:m.title},d))]}),rt("div",{className:"group relative max-w-xl",children:rt("h3",{className:"mt-3 text-lg/6 font-semibold text-accent group-hover:text-xl/6",children:Lo("a",{href:`/${a}/${e.slug}`||"#",children:[rt("span",{className:"absolute inset-0"}),e.title]})})}),rt("div",{className:"mt-6 flex flex-wrap lg:border-t gap-y-2 border-gray-200 dark:border-gray-700 pt-6",children:s&&s.map((m,d)=>Lo("div",{className:"relative flex items-center gap-x-4",children:[m.profilePicture?rt("img",{alt:m.name||"Author",src:m.profilePicture?.url||"/assets/images/placeholder.jpg",className:"size-10 rounded-full bg-gray-50"}):rt("div",{className:"size-10 rounded-full bg-gray-50"})," ",rt("div",{className:"text-sm/6",children:Lo("p",{className:"text-foreground pr-6",children:[rt("span",{className:"absolute inset-0"}),m.name]})})]},d))})]})]},t)};import{jsx as mr,jsxs as Wv}from"react/jsx-runtime";function x6({blogs:e,pages:t,categories:a,types:o,base:r}){return mr("section",{children:mr(Rt,{children:mr("div",{className:"grid",children:Wv("div",{children:[o&&mr(Zd,{types:o}),mr(Zc,{blogs:e,base:r}),mr(Yd,{pages:t})]})})})})}import Kv from"next/image";var ei="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//Z";import{FaEnvelope as Xv,FaPhoneFlip as Yv}from"react-icons/fa6";import{jsx as $e,jsxs as Za}from"react/jsx-runtime";function M6(e){let{sectionHeading:t,image:a}=e;return $e("div",{className:"relative w-full light py-[60px]",children:Za("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[$e("div",{className:"relative h-full w-full",children:$e(Kv,{src:a.src,alt:a.alt,fill:!0,objectFit:"contain",sizes:"(min-width: 768px) 30vw, 50vw",placeholder:"blur",blurDataURL:ei})}),$e("div",{className:"w-full h-full",children:Za("div",{className:"bg-white p-10",children:[$e("div",{className:"mb-30px",children:$e(Ja,{...t,invert:!0})}),$e(xs,{})]})})]})})}function A6(e){return $e("div",{className:"",children:$e("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:$e("div",{className:"mx-auto max-w-2xl space-y-16 divide-y divide-gray-100 lg:mx-0 lg:max-w-none",children:Za("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[Za("div",{children:[$e("h2",{className:"text-pretty text-4xl text-primary",children:"Locations"}),$e("p",{className:"mt-4 text-base/7 text-foreground",children:"We have multiple locations across the UK."})]}),$e("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:e.locations&&e.locations.map((t,a)=>Za("div",{className:"rounded-2xl p-10 border",children:[$e("h3",{className:"text-base/7 text-primary",children:t.title}),Za("address",{className:"mt-3 space-y-1 text-sm/6 not-italic text-foreground",children:[t.location.split(",")?.map((o,r)=>$e("p",{children:o},r))," ",t.mails&&Za("p",{className:"flex items-center space-x-2",children:[$e(Xv,{className:"pr-2 text-primary size-auto"}),$e("span",{children:t.mails[0]})]}),t.phoneNumbers&&t.phoneNumbers.length>0&&Za("p",{className:"flex items-center space-x-2",children:[$e(Yv,{className:"pr-2 text-primary size-auto"}),t.phoneNumbers[0]]})]})]},a))})]})})})})}import qv from"next/image";import{notFound as Qv}from"next/navigation";import Jv from"next/link";import{FaLinkedin as Zv}from"react-icons/fa6";import{jsx as we,jsxs as Bo}from"react/jsx-runtime";function eh({image:e,name:t,about:a,socialLinks:o}){return!e||!e.src||e.src.length<3||!t?null:we("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:we(Q,{children:Bo(Z,{className:"flex flex-col items-center",children:[e&&e.src&&we(qv,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:ei,className:"mx-auto mt-6 rounded-full object-cover"}),Bo("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&&we("nav",{"aria-label":"social links",children:we("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&&we("li",{children:we(We,{href:r.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:we("span",{children:r.icon})})},s))})})]}),we("p",{children:a})]})})})}function X6({page:e,categoryList:t,edit:a=!1,path:o="/admin/collections/posts/"}){if(!e)return Qv();let{meta:r,populatedAuthors:s,authors:n,categories:i,content:c,title:m}=e,d={image:{src:r&&r.image&&r.image.url||void 0,alt:r&&r.image&&r.image.alt||void 0},authorName:s?.[0]?.name||"",category:i,commentCount:0,title:m,description:r?.description||""},p=n?.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:we(Zv,{}),href:u.linkedIn??""}]}});return console.log(p),we(Rt,{children:Bo("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[we("div",{children:Bo("div",{className:"[&_p+P]:mt-4",children:[we("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),we(W,{content:c,enableGutter:!1,className:"prose-invert"})]})}),Bo("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[a&&we("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:Bo(Q,{children:[we(pe,{children:we(ue,{className:"text-accent",children:"Content Actions"})}),Bo(Z,{children:[we("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),we(Jv,{href:`${o}${e.id}`,children:we(k,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),p&&p.map((u,g)=>we(eh,{...u},g)),t&&t.links&&we("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:we(Qd,{links:t.links,title:t.title})})]})]})})}import{useState as ti,useEffect as th}from"react";import em from"next/link";import{Printer as a8,Presentation as o8}from"lucide-react";import{usePathname as ah}from"next/navigation";import{ExternalLink as oh}from"lucide-react";import{jsx as ee,jsxs as Jt}from"react/jsx-runtime";var i8=({children:e,pageId:t,tableOfContents:a=[],edit:o=!0,path:r="/admin/collections/pages/",relatedContent:s=[{title:"Related Content",links:[]}]})=>{let[n,i]=ti(!1),c=()=>{i(!n)};return th(()=>{if(typeof window>"u")return;let m=()=>{let d=window.location.hash;if(d){let p=d.substring(1),u=document.getElementById(p);if(u){let b=u.getBoundingClientRect().top+window.pageYOffset+-300;window.scrollTo({top:b,behavior:"smooth"})}}};return m(),window.addEventListener("hashchange",m),()=>{window.removeEventListener("hashchange",m)}},[]),Jt("div",{className:"",children:[ee("div",{className:l(n?"col-span-3":"col-span-4","xl:col-span-3"),children:e}),ee(rh,{pageId:t,tableOfContents:a,edit:o,path:r,relatedContent:s,isSidebarVisible:n}),ee("div",{className:"block md:hidden mt-8",children:ee("div",{className:"space-y-6",children:e})})]})};var rh=({pageId:e,tableOfContents:t=[],edit:a=!0,path:o="/admin/collections/pages/",relatedContent:r=[{title:"Related Content",links:[]}],isSidebarVisible:s})=>{let[n,i]=ti(""),[c,m]=ti(!1),[d,p]=ti(!1),u=ah(),g=()=>{m(!c),p(!1)},b=()=>{p(!d),m(!1)},f=P=>{switch(P){case"h3":return"ml-4";case"h4":return"ml-8";default:return""}},h=()=>{let P=u.split("/"),y="/print"+u,N=window.open(y,"Print","width=1754,height=1240,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes");N&&N.focus()},T=()=>{let P=u.split("/"),y="/present"+u,N=window.open(y,"Print","width=1754,height=1240,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes");N&&N.focus()};return ee("div",{className:l("fixed right-2 z-20 top-1/4 space-y-6 transform transition-transform duration-300 translate-x-full",s?"translate-x-0":"md:translate-x-0"),children:Jt("div",{className:"flex flex-row-reverse z-20 min-w-64 gap-4",children:[Jt("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-gray-200 bg-card p-2.5 shadow-lg backdrop-blur-lg min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[Jt(em,{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:[ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:ee("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"})}),ee("small",{className:"text-center text-xs font-medium",children:" Edit "})]}),Jt("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:[ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",children:ee("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"})}),ee("small",{className:"text-center text-xs font-medium",children:" Contents "})]}),Jt("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:[ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:ee("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"})}),ee("small",{className:"text-center text-xs font-medium",children:" Related "})]}),ee("hr",{className:"dark:border-gray-400"}),Jt("a",{onClick:T,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:[ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:ee("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"})}),ee("small",{className:"text-xs font-medium",children:"Present"})]}),Jt("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:[ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:ee("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"})}),ee("small",{className:"text-xs font-medium",children:"Print"})]})]}),c&&ee("div",{className:l("z-50 flex shrink-0 grow-0 gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border"),children:Jt("div",{className:"flex flex-col m-2 justify-start z-50 min-w-64",children:[ee("div",{className:"flex text-accent",children:"On this Page"}),ee("ul",{className:"flex flex-col space-y-2",children:t.map((P,y)=>ee("li",{className:f(P.tag),children:ee("a",{href:`#${P.id}`,className:`text-xs ${n===P.id?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:P.text})},y))})]})}),d&&r&&r.length>0&&ee("div",{className:l("z-50 flex shrink-0 grow-0 gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border"),children:Jt("div",{className:"flex flex-col m-2 justify-start z-50 min-w-64",children:[ee("div",{className:"flex text-accent",children:"Related Content"}),ee("ul",{className:"flex flex-col space-y-2",children:r.map((P,y)=>P.links&&P.links.length>0?P.links.map((N,x)=>Jt(em,{href:N.href,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[N.name,N.href.startsWith("http")&&ee(oh,{className:"ml-1 h-3 w-3"})]},x)):null)})]})})]})})};import sh from"next/image";import{jsx as ai,jsxs as tm}from"react/jsx-runtime";function m8({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 tm("section",{className:l("relative min-h-[50vh] w-full overflow-hidden",e),children:[tm("div",{className:"absolute inset-0 w-full",children:[ai(sh,{src:a||"/placeholder.svg",alt:o,fill:!0,className:"object-cover",priority:!0}),s&&ai("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%)"}})]}),ai("div",{className:l("relative w-full max-w-8xl mx-auto px-4 md:px-6 lg:px-8","flex items-center",r==="left"?"justify-end":"justify-start"),children:ai("div",{className:l("w-full max-w-xl py-12",r==="left"?"ml-auto":"mr-auto"),children:t})})]})}import am from"next/image";import{FaArrowRight as ih}from"react-icons/fa6";import{jsx as Re,jsxs as Gr}from"react/jsx-runtime";function k8({blogs:e,sectionHeading:t,base:a="insights"}){return Gr(Rt,{children:[Re("div",{className:"",children:t&&Re("div",{"data-aos":"fade-up","data-aos-delay":"100",children:Re(Ja,{...t,alignment:"start",hasBottomSpacing:!0})})}),e&&e.length>0&&Re("div",{className:"-mx-4 flex flex-wrap justify-start gap-y-4",children:e.map((o,r)=>Re("div",{"data-aos":"fade-up","data-aos-delay":lr([200,400,600],r),className:"w-full h-full md:w-1/2 md:px-4 lg:w-1/3",children:Re(nh,{...o,base:a})},r))})]})}var om=l("inline-flex items-center gap-2 text-white"),P8=l("text-sm text-white");function nh({slug:e,meta:t,authors:a,title:o,publishedAt:r,categories:s,base:n}){return Gr("article",{className:"group/blog relative z-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[Re("span",{className:"absolute inset-0 z-[2] "}),Re(am,{src:t?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:t?.image?.alt||"Blog image",fill:!0,sizes:`
25
+ text-sm sm:text-base flex-1 basis-1/4 min-w-[180px] max-w-xs justify-center`,onClick:()=>o(v.name),type:"button",children:[O(v.icon,{className:"w-5 h-5"}),O("span",{children:v.name})]},v.name))}),ke("form",{onSubmit:z,className:"space-y-8",children:[a==="Project Summary"&&ke("div",{className:"space-y-6",children:[ke("div",{children:[O(I,{children:"Client Name"}),ke(zt,{value:r?.toString()??"",onValueChange:v=>s(Number(v)),children:[O(Pt,{children:O(Et,{placeholder:"Select client"})}),O(St,{children:k.map(v=>O(ut,{value:v.id.toString(),children:v.name},v.id))})]})]}),ke("div",{children:[O(I,{children:"Project Name"}),ke(zt,{value:n?.toString()??"",onValueChange:v=>i(Number(v)),disabled:!r,children:[O(Pt,{children:O(Et,{placeholder:r?"Select project":"Select client first"})}),O(St,{children:V.map(v=>O(ut,{value:v.id.toString(),children:v.name},v.id))})]})]}),ke("div",{children:[O(I,{children:"Project Summary"}),O("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:c,onChange:v=>p(v.target.value),required:!0,placeholder:"Provide a summary of the project, objectives, and outcomes"})]})]}),a==="Milestones"&&ke("div",{children:[ke("div",{className:"mb-4 flex justify-between items-center",children:[ke(I,{className:"text-lg flex items-center gap-2",children:[O(sm,{className:"w-5 h-5"}),"Milestones"]}),ke(C,{type:"button",onClick:T,variant:"outline",className:"flex items-center gap-1",children:[O(kv,{className:"w-5 h-5"})," Add Milestone"]})]}),O("div",{className:"space-y-4",children:u.map((v,G)=>ke("div",{className:"grid grid-cols-5 gap-2 items-end border border-zinc-200 dark:border-zinc-700 p-2 rounded-lg bg-zinc-50 dark:bg-zinc-800 relative group",children:[ke("div",{className:"col-span-1",children:[O(I,{children:"Milestone"}),O("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:v.name,onChange:E=>M(G,"name",E.target.value),required:!0,placeholder:"Milestone name"})]}),ke("div",{className:"col-span-2",children:[O(I,{children:"Commentary"}),O("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:v.commentary,onChange:E=>M(G,"commentary",E.target.value),placeholder:"Commentary"})]}),ke("div",{className:"col-span-1",children:[O(I,{children:"Due Date"}),O("input",{type:"date",className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:v.dueDate,onChange:E=>M(G,"dueDate",E.target.value),placeholder:"Due date"})]}),ke("div",{className:"col-span-1",children:[O(I,{children:"RAG"}),O("select",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:v.rag,onChange:E=>M(G,"rag",E.target.value),children:om.map(E=>O("option",{value:E,children:E},E))})]}),O("button",{type:"button",className:"absolute -top-2 -right-2 bg-white dark:bg-zinc-900 rounded-full shadow p-1 border border-gray-200 dark:border-zinc-700 opacity-0 group-hover:opacity-100 transition-opacity hover:bg-red-50 dark:hover:bg-red-900",onClick:()=>N(G),"aria-label":"Remove Milestone",children:O(Pv,{className:"w-5 h-5 text-red-500"})})]},G))})]}),a==="Project Update"&&ke("div",{children:[O(I,{children:"Project Update & Immediate Focus"}),O("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:b,onChange:v=>f(v.target.value),required:!0,placeholder:"[Provide a brief project update, including current progress and any immediate areas of focus or priority for the coming weeks]"})]}),a==="Project Concerns"&&ke("div",{children:[O(I,{children:"Project Concerns"}),O("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:y,onChange:v=>R(v.target.value),placeholder:"\u200B\u200B[Please highlight any project concerns, that may require escalation or support from the Cortex Reply senior leadership team]"})]}),a==="Opportunities"&&ke("div",{children:[O(I,{children:"Commercial Opportunities"}),O("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:P,onChange:v=>h(v.target.value),placeholder:"[List any potential commercial opportunities, active conversations, or discussion points where Cortex Reply could provide value or support. These may highlight areas for expansion or collaboration across our service offerings]"})]}),a==="Risks"&&ke("div",{children:[O(I,{children:"Commercial Risk/Issue Details"}),O("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:w,onChange:v=>x(v.target.value),placeholder:"[Please highlight any risks that could impact our commercial engagement, such as reputational concerns, risks to fixed-outcome milestones, changes in key client stakeholders, or challenges with project resourcing]"})]}),O("div",{className:"flex justify-end pt-4",children:O(C,{type:"submit",className:"px-6",children:"Submit"})})]})]})})}import{useState as Rv,useEffect as Tv}from"react";import{FileText as im,ListChecks as Dv,AlertTriangle as Av,Users as Mv,Briefcase as Iv,ShieldAlert as Lv,Calendar as Bv,User as zv,Building as Ev,X as Fv}from"lucide-react";import{Fragment as Hv,jsx as S,jsxs as K}from"react/jsx-runtime";var nm={"On-Track":"bg-green-100 text-green-800 border-green-200","Off-Track":"bg-red-100 text-red-800 border-red-200","At Risk":"bg-yellow-100 text-yellow-800 border-yellow-200",Complete:"bg-blue-100 text-blue-800 border-blue-200"};function Mn({submissions:e,isLoading:t=!1}){let[a,o]=Rv(null);Tv(()=>{let d=m=>{m.key==="Escape"&&o(null)};if(a)return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[a]);let r=d=>new Date(d).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}),s=e.find(d=>d.id.toString()===a);function n(d){return typeof d=="object"&&d!==null&&"projectName"in d?d.projectName:`Project #${d}`}function i(d){return typeof d=="object"&&d!==null&&"name"in d?d.name:`Customer #${d}`}return t?S("div",{className:"container mx-auto p-4 max-w-6xl",children:S("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:K("div",{className:"animate-pulse",children:[S("div",{className:"h-8 bg-gray-200 rounded w-1/4 mb-6"}),S("div",{className:"space-y-4",children:[...Array(5)].map((d,m)=>S("div",{className:"h-16 bg-gray-200 rounded"},m))})]})})}):e.length===0?S("div",{className:"container mx-auto p-4 max-w-6xl",children:S("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:K("div",{className:"text-center py-12",children:[S(im,{className:"mx-auto h-12 w-12 text-gray-400"}),S("h3",{className:"mt-2 text-sm font-semibold text-gray-900 dark:text-zinc-100",children:"No submissions found"}),S("p",{className:"mt-1 text-sm text-gray-500 dark:text-zinc-400",children:"You haven't submitted any delivery lead reports yet."})]})})}):K(Hv,{children:[S("div",{className:"container mx-auto p-4 max-w-6xl",children:K("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[K("div",{className:"mb-6",children:[S("h2",{className:"text-2xl font-bold text-gray-900 dark:text-zinc-100",children:"My Delivery Lead Submissions"}),S("p",{className:"text-sm text-gray-500 dark:text-zinc-400 mt-1",children:"View all your submitted delivery lead reports"})]}),S("div",{className:"overflow-y-auto max-h-96",children:K("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[S("thead",{className:"bg-gray-50 dark:bg-zinc-800 sticky top-0 z-10",children:K("tr",{children:[S("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Project Details"}),S("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Delivery Lead"}),S("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Milestones"}),S("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Submitted"}),S("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Actions"})]})}),S("tbody",{className:"bg-white dark:bg-zinc-900 divide-y divide-gray-200 dark:divide-zinc-700",children:e.map(d=>K("tr",{className:"hover:bg-gray-50 dark:hover:bg-zinc-800/50",children:[S("td",{className:"px-6 py-4 whitespace-nowrap",children:K("div",{children:[S("div",{className:"text-sm font-medium text-gray-900 dark:text-zinc-100",children:n(d.project)}),K("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[S(Ev,{className:"h-3 w-3"}),i(d.customer)]})]})}),S("td",{className:"px-6 py-4 whitespace-nowrap",children:K("div",{className:"text-sm text-gray-900 dark:text-zinc-100 flex items-center gap-1",children:[S(zv,{className:"h-3 w-3"}),typeof d.project=="object"&&d.project!==null&&"deliveryLead"in d.project&&typeof d.project.deliveryLead=="object"&&d.project.deliveryLead!==null&&"name"in d.project.deliveryLead?d.project.deliveryLead.name:"\u2014"]})}),S("td",{className:"px-6 py-4 whitespace-nowrap",children:K("div",{className:"flex flex-wrap gap-1",children:[d.milestones?.slice(0,3).map((m,c)=>S("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${nm[m.rag]}`,children:m.rag},c)),d.milestones&&d.milestones.length>3&&K("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800 border border-gray-200",children:["+",d.milestones.length-3," more"]}),!d.milestones&&S("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800 border border-gray-200",children:"No milestones"})]})}),S("td",{className:"px-6 py-4 whitespace-nowrap",children:K("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[S(Bv,{className:"h-3 w-3"}),r(d.createdAt)]})}),S("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium",children:S(C,{variant:"ghost",size:"sm",onClick:()=>o(d.id.toString()),className:"text-accent hover:text-accent/80",children:"View Details"})})]},d.id))})]})})]})}),s&&S("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:K("div",{className:"bg-white dark:bg-zinc-900 rounded-xl shadow-xl max-w-4xl w-full max-h-[90vh] overflow-y-auto",children:[K("div",{className:"flex items-center justify-between p-6 border-b border-gray-200 dark:border-zinc-700",children:[K("div",{children:[S("h2",{className:"text-xl font-semibold text-gray-900 dark:text-zinc-100",children:n(s.project)}),K("p",{className:"text-sm text-gray-500 dark:text-zinc-400",children:[i(s.customer)," \u2022"," ",r(s.createdAt)]})]}),S("button",{onClick:()=>o(null),className:"text-gray-400 hover:text-gray-600 dark:hover:text-zinc-300",children:S(Fv,{className:"h-6 w-6"})})]}),K("div",{className:"p-6 space-y-6",children:[K("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[K("div",{children:[K(I,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[S(im,{className:"h-4 w-4"}),"Project Summary"]}),S("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.projectSummary})]}),K("div",{children:[K(I,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[S(Mv,{className:"h-4 w-4"}),"Project Update"]}),S("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.projectUpdate})]}),s.projectConcerns&&K("div",{children:[K(I,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[S(Av,{className:"h-4 w-4"}),"Project Concerns"]}),S("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.projectConcerns})]}),s.commercialOpportunities&&K("div",{children:[K(I,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[S(Iv,{className:"h-4 w-4"}),"Commercial Opportunities"]}),S("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.commercialOpportunities})]}),s.commercialRisks&&K("div",{className:"lg:col-span-2",children:[K(I,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[S(Lv,{className:"h-4 w-4"}),"Commercial Risks"]}),S("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.commercialRisks})]})]}),K("div",{children:[K(I,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[S(Dv,{className:"h-4 w-4"}),"Milestones"]}),s.milestones&&s.milestones.length>0?S("div",{className:"bg-gray-50 dark:bg-zinc-800 rounded-lg border overflow-hidden",children:K("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[S("thead",{className:"bg-gray-100 dark:bg-zinc-700",children:K("tr",{children:[S("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Name"}),S("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Commentary"}),S("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Due Date"}),S("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Status"})]})}),S("tbody",{className:"divide-y divide-gray-200 dark:divide-zinc-700",children:s.milestones.map((d,m)=>K("tr",{children:[S("td",{className:"px-4 py-2 text-sm text-gray-900 dark:text-zinc-100",children:d.name}),S("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:d.commentary||"-"}),S("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:d.dueDate?r(d.dueDate):"-"}),S("td",{className:"px-4 py-2",children:S("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${nm[d.rag]}`,children:d.rag})})]},m))})]})}):S("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:"No milestones defined for this project."})]})]}),S("div",{className:"flex justify-end p-6 border-t border-gray-200 dark:border-zinc-700",children:S(C,{onClick:()=>o(null),variant:"outline",children:"Close"})})]})})]})}import{useState as jv}from"react";import{ChevronDown as Ov,ChevronUp as $v,List as Gv}from"lucide-react";import{jsx as Ot,jsxs as pr}from"react/jsx-runtime";function _v({submissions:e,onSubmit:t,isLoading:a=!1,customerProjectPairs:o}){let[r,s]=jv(!1);return Ot("div",{className:"min-h-screen ",children:pr("div",{className:"container mx-auto p-4 max-w-6xl",children:[pr("div",{className:"mb-8",children:[Ot("h1",{className:"text-3xl font-bold text-gray-900 dark:text-zinc-100 mb-2",children:"Delivery Report Management"}),Ot("p",{className:"text-gray-600 dark:text-zinc-400",children:"Submit new delivery reports and view your previous submissions"})]}),Ot("div",{className:"mb-8",children:Ot(An,{onSubmit:t,customerProjectPairs:o})}),pr("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800",children:[pr("button",{onClick:()=>s(!r),className:"w-full px-6 py-4 flex items-center justify-between hover:bg-gray-50 dark:hover:bg-zinc-800/50 transition-colors",children:[pr("div",{className:"flex items-center gap-3",children:[Ot(Gv,{className:"h-5 w-5 text-gray-500 dark:text-zinc-400"}),Ot("h2",{className:"text-lg font-semibold text-gray-900 dark:text-zinc-100",children:"Previous Submissions"}),pr("span",{className:"text-sm text-gray-500 dark:text-zinc-400",children:["(",e.length,")"]})]}),Ot("div",{className:"flex items-center gap-2",children:r?Ot($v,{className:"h-5 w-5 text-gray-500 dark:text-zinc-400"}):Ot(Ov,{className:"h-5 w-5 text-gray-500 dark:text-zinc-400"})})]}),r&&Ot("div",{className:"border-t border-gray-200 dark:border-zinc-700",children:Ot(Mn,{submissions:e,isLoading:a})})]})]})})}import*as ai from"react";import*as oi from"@radix-ui/react-switch";import{jsx as Kr,jsxs as Uv}from"react/jsx-runtime";function _D({className:e,onCheckedChange:t,checked:a,defaultChecked:o,...r}){let[s,n]=ai.useState(!1),[i,d]=ai.useState(!1),[m,c]=ai.useState(o||!1),p=a!==void 0?a:m;return Kr(oi.Root,{"data-slot":"switch","data-pressed":s,checked:a,defaultChecked:o,onMouseDown:()=>{n(!0),d(!1)},onMouseUp:()=>{n(!1),d(!1)},onMouseLeave:()=>{s&&(n(!1),d(!0))},onCheckedChange:y=>{i||(a===void 0&&c(y),t?.(y))},className:l("relative shadow-inner ring ring-black/5 inline-flex shrink-0 items-center rounded-full outline-none cursor-pointer","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[0.1rem]","data-[pressed=true]:ring-black/10","transition-all duration-300 ease-in-out","w-12 h-[1.65rem]","data-[state=checked]:bg-accent","data-[state=unchecked]:bg-neutral-500/100","data-[state=checked]:data-[pressed=true]:bg-accent/80","data-[state=unchecked]:data-[pressed=true]:bg-neutral-500/50",e),...r,children:Kr(oi.Thumb,{"data-slot":"switch-thumb","data-pressed":s,className:l("absolute flex items-center justify-center bg-background pointer-events-none left-0 rounded-full","transition-all duration-200 ease-in-out","w-[1.3rem] h-[1.3rem]","data-[pressed=true]:w-[1.7rem]","data-[pressed=true]:h-[1.1rem]","translate-x-[0.2rem]","data-[state=checked]:translate-x-[1.5rem]","data-[state=checked]:data-[pressed=true]:translate-x-[1.1rem]","data-[state=checked]:data-[pressed=true]:left-[-0.15rem]","data-[state=unchecked]:data-[pressed=true]:left-[0.15rem]"),children:Kr(Vv,{isChecked:p,isPressed:s})})})}var Vv=({isChecked:e,isPressed:t})=>Uv("svg",{viewBox:"0 0 20 20",className:l("inline-flex w-fit items-center justify-center","transition-all duration-100 ease-in-out",t?"fill-neutral-500/50":e?"fill-accent-foreground":"fill-neutral-500"),children:[Kr("rect",{x:"4",y:"8.5",height:"3",className:l("origin-center transition-all duration-100 ease-in-out",t?"rotate-0 translate-x-[0.2rem] translate-y-[0.05rem] w-1.5 h-0.5":e?"rotate-45 w-[6px] -translate-x-[1px] translate-y-1":"rotate-45 w-[12px] translate-x-0 translate-y-0")}),Kr("rect",{x:"4",y:"8.5",height:"3",className:l("origin-center transition-all duration-100 ease-in-out",t?"rotate-0 translate-x-[0.2rem] translate-y-[0.05rem] w-1.5 h-0.5":e?"-rotate-45 w-[11px] translate-x-[1.5px] translate-y-0":"-rotate-45 w-[12px] translate-x-0 translate-y-0")})]});import{useState as Wv}from"react";import{MessageSquare as Kv,Send as Xv}from"lucide-react";import{jsx as ta,jsxs as Ho}from"react/jsx-runtime";var e6=({comments:e,onAddComment:t})=>{let[a,o]=Wv(""),r=n=>n.split(" ").map(i=>i[0]).join("").toUpperCase(),s=()=>{a.trim()&&(t(a),o(""))};return Ho("div",{className:"space-y-4",children:[Ho("div",{className:"flex items-center gap-2",children:[ta(Kv,{className:"h-5 w-5"}),ta(I,{className:"text-lg font-medium",children:"Comments"}),ta(Me,{variant:"secondary",children:e.length})]}),ta("div",{className:"space-y-4 max-h-60 overflow-y-auto",children:e.map(n=>Ho("div",{className:"flex gap-3 p-3 bg-muted/50 rounded-lg",children:[ta(et,{className:"h-8 w-8 mt-1",children:ta(tt,{className:"text-xs bg-muted text-muted-foreground",children:r(n.author)})}),Ho("div",{className:"flex-1",children:[Ho("div",{className:"flex items-center gap-2 mb-1",children:[ta("span",{className:"font-medium text-sm",children:n.author}),Ho("span",{className:"text-xs text-muted-foreground",children:[n.createdAt.toLocaleDateString()," at ",n.createdAt.toLocaleTimeString()]})]}),ta("p",{className:"text-sm text-muted-foreground",children:n.text})]})]},n.id))}),Ho("div",{className:"flex gap-2",children:[ta(Yt,{value:a,onChange:n=>o(n.target.value),placeholder:"Add a comment...",rows:2,className:"flex-1 resize-none"}),ta(C,{onClick:s,disabled:!a.trim(),size:"sm",className:"self-end",children:ta(Xv,{className:"h-4 w-4"})})]})]})};import{useState as lm}from"react";import{Edit as Yv}from"lucide-react";import{jsx as Xr,jsxs as dm}from"react/jsx-runtime";var d6=({fieldName:e,value:t,label:a,multiline:o=!1,onSave:r,className:s="",disabled:n=!1})=>{let[i,d]=lm(!1),[m,c]=lm(""),p=()=>{n||(d(!0),c(t))},u=async()=>{m!==t&&await r(e,m),d(!1)},g=b=>{b.key==="Enter"&&!o||b.key==="Enter"&&b.ctrlKey&&o?u():b.key==="Escape"&&(d(!1),c(""))};return dm("div",{className:`space-y-2 ${s}`,children:[Xr(I,{children:a}),i?o?Xr(Yt,{value:m,onChange:b=>c(b.target.value),onBlur:u,onKeyDown:g,autoFocus:!0,rows:4,className:"resize-none"}):Xr(Fe,{value:m,onChange:b=>c(b.target.value),onBlur:u,onKeyPress:g,autoFocus:!0,className:"text-lg font-medium"}):dm("div",{onClick:p,className:`${n?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 p-2 rounded border border-transparent hover:border-border transition-colors group ${o?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[Xr("span",{className:o?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!n&&Xr(Yv,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};import{useState as Zv}from"react";import{motion as jo}from"framer-motion";import{ChevronRight as qv,File as ri,FileText as Yr,Search as Qv}from"lucide-react";import{useState as In,useMemo as cm}from"react";import{jsx as A,jsxs as ve}from"react/jsx-runtime";function mm({label:e,documents:t,children:a,level:o,onDocumentClick:r,selectedDocumentId:s,showDocumentCount:n=!0}){let[i,d]=In(o===0),m=a&&Object.keys(a).length>0,c=t.length+(a?Object.values(a).reduce((g,b)=>g+b.documents.length,0):0),p=g=>{switch(g){case"markdown":case"mdx":return A(Yr,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richtext":return A(ri,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return A(ri,{className:"h-3.5 w-3.5 text-muted-foreground"})}},u=g=>{let b=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return b[g%b.length]};return ve("div",{className:"space-y-1",children:[(m||t.length>0)&&ve(jo.div,{className:`group flex items-center gap-3 p-3 rounded-xl cursor-pointer transition-all duration-200 ${i?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${o*20}px`},onClick:()=>d(!i),whileHover:{scale:1.01},whileTap:{scale:.99},children:[A("div",{className:`w-1 h-6 rounded-full ${u(o)}`}),A(jo.div,{animate:{rotate:i?90:0},transition:{duration:.2},className:"flex-shrink-0",children:A(qv,{className:"h-4 w-4 text-muted-foreground"})}),ve("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[A("div",{className:"flex items-center gap-2 min-w-0",children:A("span",{className:"font-medium text-foreground truncate",children:e})}),n&&c>0&&A("div",{className:"flex-shrink-0 ml-2",children:A("span",{className:"inline-flex items-center justify-center w-6 h-6 text-xs font-medium bg-muted text-muted-foreground rounded-full",children:c})})]})]}),A(jo.div,{initial:!1,animate:{height:i?"auto":0,opacity:i?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:ve("div",{className:"pt-2 space-y-1",children:[t.map((g,b)=>ve(jo.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:b*.05,duration:.2},className:`group flex items-center gap-3 p-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${s===g.id?"bg-primary/10 border-l-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${o*20+20}px`},onClick:()=>r?.(g),whileHover:{scale:1.01},whileTap:{scale:.99},children:[A("div",{className:"flex-shrink-0",children:p(g.format)}),ve("div",{className:"flex-1 min-w-0",children:[A("p",{className:`text-sm truncate transition-colors ${s===g.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:g.title}),g.description&&A("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:g.description})]}),g.tags&&g.tags.length>0&&A("div",{className:"flex-shrink-0",children:A("span",{className:"inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-muted text-muted-foreground group-hover:bg-muted/80 transition-colors",children:g.tags[0]})})]},g.id)),a&&Object.entries(a).map(([g,b])=>A(mm,{label:g,documents:b.documents,children:b.children,level:o+1,onDocumentClick:r,selectedDocumentId:s,showDocumentCount:n},g))]})})]})}function Jv({document:e}){let t=o=>{switch(o){case"markdown":case"mdx":return A(Yr,{className:"h-6 w-6 text-primary"});case"richtext":return A(ri,{className:"h-6 w-6 text-success"});default:return A(ri,{className:"h-6 w-6 text-muted-foreground"})}},a=o=>{switch(o){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richtext":return"bg-success/10 text-success border-success/20";default:return"bg-muted text-muted-foreground border-border"}};return ve(jo.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[A("div",{className:"border-b border-border bg-card p-8",children:ve("div",{className:"flex items-start gap-4",children:[A("div",{className:"flex-shrink-0 p-3 rounded-xl bg-muted border border-border",children:t(e.format)}),ve("div",{className:"flex-1 min-w-0",children:[A("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:e.title}),e.description&&A("p",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:e.description}),ve("div",{className:"flex flex-wrap gap-2",children:[A("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${a(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(o=>ve("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",o]},o))]})]})]})}),A("div",{className:"flex-1 overflow-auto",children:ve("div",{className:"p-8",children:[e.metadata&&Object.keys(e.metadata).length>0&&ve("div",{className:"mb-6",children:[A("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),A("div",{className:"bg-muted rounded-lg p-3 border border-border",children:A("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-y-1 text-xs",children:Object.entries(e.metadata).map(([o,r])=>ve("div",{className:"flex gap-1",children:[ve("span",{className:"text-muted-foreground font-medium",children:[o.replace(/([A-Z])/g," $1").trim(),":"]}),A("span",{className:"text-foreground truncate",children:String(r)})]},o))})})]}),A("div",{className:"space-y-4",children:e.content?ve("div",{className:"relative",children:[A("div",{className:"bg-card border border-border rounded-xl p-6 overflow-hidden",children:ve("pre",{className:"text-card-foreground text-sm leading-relaxed whitespace-pre-wrap font-mono",children:[e.content.substring(0,1500),e.content.length>1500&&"..."]})}),e.content.length>1500&&A("div",{className:"absolute bottom-0 left-0 right-0 h-16 bg-gradient-to-t from-card to-transparent rounded-b-xl flex items-end justify-center pb-2",children:A("span",{className:"text-muted-foreground text-xs",children:"Content truncated"})})]}):ve("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[A("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:A(Yr,{className:"h-8 w-8 text-muted-foreground"})}),A("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),A("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}function Ln({documents:e,menuConfig:t,onDocumentClick:a,onDocumentShare:o,selectedDocumentId:r,className:s}){let[n,i]=In(""),[d,m]=In(null),c=cm(()=>n?e.filter(g=>g.title.toLowerCase().includes(n.toLowerCase())||g.description?.toLowerCase().includes(n.toLowerCase())||g.tags?.some(b=>b.toLowerCase().includes(n.toLowerCase()))||Object.values(g.metadata||{}).some(b=>String(b).toLowerCase().includes(n.toLowerCase()))):e,[e,n]),p=cm(()=>{let g=(b,f)=>{if(f.length===0)return{};let[y,...R]=f;return b.reduce((h,w)=>{let x=w.metadata?.[y]||"Uncategorized",k=String(x);if(h[k]||(h[k]={documents:[],children:{}}),R.length===0)h[k].documents.push(w);else{let V=g([w],R),M=Object.keys(V)[0];M&&(h[k].children||(h[k].children={}),h[k].children[M]?h[k].children[M].documents.push(...V[M].documents):h[k].children[M]=V[M])}return h},{})};return g(c,t.groupBy)},[c,t.groupBy]),u=g=>{m(g),a?.(g)};return ve("div",{className:`flex h-full ${s||""}`,children:[ve("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[A("div",{className:"p-6 border-b border-border",children:ve("div",{className:"relative",children:[A("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:A(Qv,{className:"h-4 w-4 text-muted-foreground"})}),A(Fe,{placeholder:"Search knowledge base...",value:n,onChange:g=>i(g.target.value),className:"pl-10 bg-background/80 border-border focus:border-primary/50 focus:ring-primary/20 rounded-xl h-11 text-sm placeholder:text-muted-foreground"})]})}),A(Wt,{className:"h-[calc(100%-100px)]",children:ve("div",{className:"p-4 space-y-3",children:[Object.entries(p).map(([g,b])=>A(mm,{label:g,documents:b.documents,children:b.children,level:0,onDocumentClick:u,selectedDocumentId:r,showDocumentCount:t.showDocumentCount},g)),Object.keys(p).length===0&&ve(jo.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[A("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:A(Yr,{className:"h-8 w-8 text-muted-foreground"})}),A("p",{className:"text-sm font-medium",children:"No documents found"}),A("p",{className:"text-xs mt-1",children:"Try adjusting your search terms"})]})]})})]}),A("div",{className:"flex-1 bg-background",children:d?A(Jv,{document:d}):A("div",{className:"h-full flex items-center justify-center text-center",children:ve(jo.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"max-w-sm",children:[A("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:A(Yr,{className:"h-10 w-10 text-primary"})}),A("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),A("p",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}import{Server as eh,Code as th,Users as ah,BookOpen as oh}from"lucide-react";import{jsx as $t,jsxs as si}from"react/jsx-runtime";var rh=[{id:"all",label:"All Documentation",description:"Browse all documentation organized by category and type",icon:$t(oh,{className:"h-4 w-4"}),menuConfig:{groupBy:["category","type"],sortBy:"title",sortOrder:"asc",showDocumentCount:!0}},{id:"services",label:"Services",description:"Documentation organized by service and team",icon:$t(eh,{className:"h-4 w-4"}),menuConfig:{groupBy:["service","team"],sortBy:"updatedAt",sortOrder:"desc",showDocumentCount:!0}},{id:"architecture",label:"Architecture",description:"System architecture documentation by component and layer",icon:$t(th,{className:"h-4 w-4"}),menuConfig:{groupBy:["component","layer"],sortBy:"title",sortOrder:"asc",showDocumentCount:!0}},{id:"teams",label:"Teams",description:"Documentation organized by team and project",icon:$t(ah,{className:"h-4 w-4"}),menuConfig:{groupBy:["team","project"],sortBy:"updatedAt",sortOrder:"desc",showDocumentCount:!0}}];function pm({documents:e=[],contexts:t=rh,onDocumentClick:a=s=>console.log("Document clicked:",s),onDocumentShare:o=s=>console.log("Share document:",s),selectedDocumentId:r}){let[s,n]=Zv(t[0]);return si("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[si("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[$t(dr,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-to-r from-teal-600 via-cyan-600 to-blue-600",primaryAction:{label:"Create",onClick:()=>console.log("Create document clicked")}}),si("div",{className:"mt-6",children:[$t("div",{className:"border-b border-border",children:$t("nav",{className:"-mb-px flex space-x-8 overflow-x-auto",children:t.map(i=>si("button",{onClick:()=>n(i),className:`group inline-flex items-center gap-2 py-3 px-1 border-b-2 font-medium text-sm whitespace-nowrap transition-colors ${s.id===i.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[i.icon,i.label]},i.id))})}),s.description&&$t("div",{className:"mt-3 px-1",children:$t("p",{className:"text-sm text-muted-foreground",children:s.description})})]})]}),$t("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:$t("div",{className:"h-full rounded-3xl border overflow-hidden",children:$t(Ln,{documents:e,menuConfig:s.menuConfig,onDocumentClick:a,onDocumentShare:o,selectedDocumentId:r})})})]})}import{useState as dh}from"react";import{motion as ch,AnimatePresence as mh}from"framer-motion";import{motion as sh}from"framer-motion";import{Users as ih,Bot as nh,FolderOpen as lh}from"lucide-react";import{jsx as xt,jsxs as Na}from"react/jsx-runtime";function Bn({team:e,onOpen:t,className:a}){return xt(sh.div,{whileHover:{scale:1.02,y:-5},whileTap:{scale:.98},className:a,children:Na(Y,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[Na(de,{children:[xt(ce,{className:"text-lg",children:e.name}),xt(Fr,{className:"mt-1 text-sm",children:e.description})]}),Na(J,{className:"space-y-4",children:[Na("div",{className:"grid grid-cols-2 gap-4",children:[Na("div",{className:"flex items-center justify-between text-sm",children:[Na("div",{className:"flex items-center gap-2",children:[xt(ih,{className:"h-4 w-4 text-blue-500"}),xt("span",{children:"Human"})]}),xt("span",{className:"font-medium",children:e.humanColleagues})]}),Na("div",{className:"flex items-center justify-between text-sm",children:[Na("div",{className:"flex items-center gap-2",children:[xt(nh,{className:"h-4 w-4 text-purple-500"}),xt("span",{children:"Digital"})]}),xt("span",{className:"font-medium",children:e.digitalColleagues})]})]}),Na("div",{className:"flex items-center justify-between text-sm border-t pt-4",children:[Na("div",{className:"flex items-center gap-2",children:[xt(lh,{className:"h-4 w-4 text-green-500"}),xt("span",{children:"Projects"})]}),xt("span",{className:"font-medium",children:e.projects})]})]}),xt(wo,{className:"flex gap-2",children:xt(C,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>t?.(e),children:"View Team"})})]})})}import{jsx as Gt,jsxs as ur}from"react/jsx-runtime";function um({teams:e=[],onCreateTeam:t,onTeamOpen:a}){let[o,r]=dh(!1),s=()=>{r(!0),t?.()},n=i=>{a?.(i)};return ur("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[Gt(mh,{mode:"wait",children:ur(ch.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[Gt(dr,{title:"My Teams",description:"Collaborate with your human and digital colleagues across different teams and projects.",gradient:"bg-gradient-to-r from-blue-600 via-cyan-600 to-teal-600",primaryAction:{label:"Create Team",onClick:s}}),ur("section",{className:"space-y-4 mt-8",children:[Gt("h2",{className:"text-2xl font-semibold",children:"Active Teams"}),e.length===0?ur("div",{className:"text-center py-12",children:[Gt("p",{className:"text-muted-foreground text-lg",children:"You're not part of any teams yet."}),Gt("p",{className:"text-muted-foreground text-sm mt-2",children:"Create a new team or ask to be added to an existing one."})]}):Gt("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:e.map(i=>Gt(Bn,{team:i,onOpen:n},i.id))})]})]},"teams-index-view")}),Gt(Xt,{open:o,onOpenChange:r,children:ur(Lt,{className:"max-w-3xl max-h-[90vh] overflow-y-auto",children:[ur(sa,{children:[Gt(ia,{children:"Create New Team"}),Gt(hs,{children:"Set up a new team to collaborate with colleagues on projects."})]}),Gt("div",{className:"p-6 text-center text-muted-foreground",children:Gt("p",{children:"Team creation form coming soon..."})})]})})]})}import{useState as ii}from"react";import{Plus as bh,Search as vh,File as ni,Filter as hh}from"lucide-react";import{motion as ph}from"framer-motion";import{MoreHorizontal as uh,Trash2 as gh,Edit as fh}from"lucide-react";import{jsx as it,jsxs as gr}from"react/jsx-runtime";function qr({files:e,onFileClick:t,onFileEdit:a,onFileDelete:o,showHeader:r=!0,className:s}){return gr("div",{className:`rounded-3xl border overflow-hidden ${s||""}`,children:[r&&gr("div",{className:"bg-muted/50 p-3 hidden md:grid md:grid-cols-10 text-sm font-medium",children:[it("div",{className:"col-span-6",children:"Name"}),it("div",{className:"col-span-2",children:"Size"}),it("div",{className:"col-span-2",children:"Modified"})]}),it("div",{className:"divide-y",children:e.map(n=>gr(ph.div,{whileHover:{backgroundColor:"rgba(0,0,0,0.02)"},className:"p-3 md:grid md:grid-cols-10 items-center flex flex-col md:flex-row gap-3 md:gap-0 cursor-pointer",onClick:()=>t?.(n),children:[gr("div",{className:"col-span-6 flex items-center gap-3 w-full md:w-auto",children:[it("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-muted",children:n.icon}),it("div",{children:it("p",{className:"font-medium",children:n.name})})]}),it("div",{className:"col-span-2 text-sm md:text-base",children:n.size}),gr("div",{className:"col-span-2 flex items-center justify-between w-full md:w-auto",children:[it("span",{className:"text-sm md:text-base",children:n.modified}),gr("div",{className:"flex gap-1",children:[it(C,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",onClick:i=>{i.stopPropagation(),a?.(n)},children:it(fh,{className:"h-4 w-4"})}),it(C,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl text-red-500 hover:text-red-600",onClick:i=>{i.stopPropagation(),o?.(n)},children:it(gh,{className:"h-4 w-4"})}),it(C,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",children:it(uh,{className:"h-4 w-4"})})]})]})]},n.name))})]})}import{motion as yh,AnimatePresence as xh}from"framer-motion";import{jsx as X,jsxs as ze}from"react/jsx-runtime";function gm({initialFiles:e=[],onFileAdd:t,onFileEdit:a,onFileDelete:o,onFileClick:r,compactView:s=!1,className:n}){let[i,d]=ii(e),[m,c]=ii(""),[p,u]=ii("all"),[g,b]=ii("all"),f=Array.from(new Set(i.map(M=>M.app))),y=i.filter(M=>{let T=M.name.toLowerCase().includes(m.toLowerCase()),N=p==="all"||M.app===p;return T&&N}),R=y.slice(0,10),P=y.filter(M=>M.shared),h=()=>{console.log("Add file clicked")},w=M=>{console.log("Edit file:",M.name),a?.(M)},x=M=>{d(T=>T.filter(N=>N.name!==M.name)),o?.(M.name)},k=M=>{console.log("File clicked:",M.name),r?.(M)},V=()=>{c(""),u("all")};return X("div",{className:"px-2 md:px-4 py-4 space-y-8",children:X(xh,{mode:"wait",children:X(yh.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:ze("div",{className:`space-y-6 ${n||""}`,children:[X(dr,{title:"Files",description:"Manage and organize your files and documents.",gradient:"bg-gradient-to-r from-blue-600 via-indigo-600 to-purple-600",primaryAction:{label:"Upload file",onClick:h},secondaryAction:{label:"Download all",onClick:()=>console.log("Download all clicked")}}),ze("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[ze(Y,{children:[ze(de,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[X(ce,{className:"text-sm font-medium",children:"Total Files"}),X(ni,{className:"h-4 w-4 text-muted-foreground"})]}),ze(J,{children:[X("div",{className:"text-2xl font-bold",children:i.length}),ze("p",{className:"text-xs text-muted-foreground",children:[i.filter(M=>M.shared).length," shared"]})]})]}),ze(Y,{children:[ze(de,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[X(ce,{className:"text-sm font-medium",children:"Storage Used"}),X(ni,{className:"h-4 w-4 text-muted-foreground"})]}),ze(J,{children:[X("div",{className:"text-2xl font-bold",children:"2.4 GB"}),X("p",{className:"text-xs text-muted-foreground",children:"of 10 GB used"})]})]}),ze(Y,{children:[ze(de,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[X(ce,{className:"text-sm font-medium",children:"Recent Activity"}),X(ni,{className:"h-4 w-4 text-muted-foreground"})]}),ze(J,{children:[X("div",{className:"text-2xl font-bold",children:"12"}),X("p",{className:"text-xs text-muted-foreground",children:"files modified today"})]})]})]}),X(Y,{children:X(J,{className:"pt-6",children:ze("div",{className:"flex flex-col md:flex-row gap-4",children:[X("div",{className:"flex-1",children:ze("div",{className:"relative",children:[X(vh,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),X(Fe,{placeholder:"Search files...",value:m,onChange:M=>c(M.target.value),className:"pl-9"})]})}),ze(zt,{value:p,onValueChange:u,children:[X(Pt,{className:"w-full md:w-[180px]",children:X(Et,{placeholder:"Filter by app"})}),ze(St,{children:[X(ut,{value:"all",children:"All Apps"}),f.map(M=>X(ut,{value:M,children:M},M))]})]}),(m||p!=="all")&&ze(C,{variant:"outline",onClick:V,className:"gap-2",children:[X(hh,{className:"h-4 w-4"}),"Clear"]})]})})}),ze("div",{className:"space-y-4",children:[X(em,{activeTab:g,onTabChange:b,tabOptions:[{value:"all",label:`All Files (${y.length})`},{value:"recent",label:`Recent (${R.length})`},{value:"shared",label:`Shared (${P.length})`}],maxWidth:"500px",gridCols:3}),g==="all"&&X(qr,{files:y,onFileClick:k,onFileEdit:w,onFileDelete:x,showHeader:!s}),g==="recent"&&X(qr,{files:R,onFileClick:k,onFileEdit:w,onFileDelete:x,showHeader:!s}),g==="shared"&&X(qr,{files:P,onFileClick:k,onFileEdit:w,onFileDelete:x,showHeader:!s})]}),y.length===0&&X(Y,{children:X(J,{className:"pt-6",children:ze("div",{className:"text-center py-8",children:[X(ni,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),X("h3",{className:"text-lg font-semibold mb-2",children:"No files found"}),X("p",{className:"text-muted-foreground mb-4",children:m||p!=="all"?"Try adjusting your filters to see more results.":"Get started by uploading your first file."}),ze(C,{onClick:h,className:"gap-2",children:[X(bh,{className:"h-4 w-4"}),"Upload File"]})]})})})]})},"files-view")})})}var fr=(e,t)=>e[t%e.length];import{jsx as br,jsxs as fm}from"react/jsx-runtime";function yA({services:e,className:t,title:a,content:o}){let r={settings:{width:"full",card:"light"}};return fm("div",{className:"pb-4 md:pb-0",children:[fm("div",{className:l("w-full text-left prose"),children:[a&&br("h2",{className:"text-primary",children:a}),br("div",{className:"pb-12 ",children:o&&br(W,{enableGutter:!1,content:o,enableProse:!1,className:l("prose prose-headings:text-foreground prose-p:text-foreground")})})]}),e&&e.length>0&&br("div",{className:"-mx-4 flex flex-wrap justify-between gap-y-8",children:e.map((s,n)=>br("div",{"data-aos":"fade-up","data-aos-delay":fr([200,400,600],n),className:"w-full px-4 md:w-1/2 lg:w-1/3 flex",children:br(Br,{...r,icon:{type:"none"},title:s.title,image:s.image,content:s.content,link:s.link,className:"w-full"})},n))})]})}import{jsx as li,jsxs as wh}from"react/jsx-runtime";function oo({subtitle:e,title:t,description:a,alignment:o="start",hasBottomSpacing:r=!1,className:s,invert:n=!1}){let i=l(o==="start"&&"text-left",o==="center"&&"text-center",o==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":r},"prose",s);return wh("div",{className:i,children:[e&&li("span",{className:"mb-[.625rem] block font-semibold uppercase text-accent md:text-md",children:e}),li("h2",{className:l("text-primary mt-0"),children:t}),typeof a=="string"?a&&li("p",{className:"mt-5 whitespace-pre-line text-foreground",children:a}):a&&li(W,{content:a,enableGutter:!1,className:"prose-headings:text-accent prose-p:text-primary"})]})}import{jsx as vr,jsxs as Nh}from"react/jsx-runtime";function MA({sectionHeading:e,cards:t}){return vr("section",{className:"section-padding-primary !pt-0",children:Nh(Tt,{children:[vr("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:vr(oo,{...e,alignment:"center",hasBottomSpacing:!0})}),t&&t.length>0&&vr("div",{className:"grid gap-30px",children:t.map((a,o)=>vr("div",{"data-aos":"fade-up","data-aos-delay":fr([200,400,600],o),className:"py-2",children:vr(Md,{...a})},o))})]})})}import di from"next/image";import{Fragment as Ch,jsx as he,jsxs as ci}from"react/jsx-runtime";function jA(e){let{images:t,sectionHeading:a,keyPoints:o,description:r}=e;return he(Ch,{children:he("section",{id:"about-section",className:l(" clip-custom-top-l sticky md:top-0 md:h-screen z-2 flex flex-col items-center justify-center section-padding-primary dark bg-background",e.className||""),children:he(Tt,{children:ci("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[ci("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[he(oo,{...a}),o&&o.length>0&&he("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:o.map((s,n)=>ci("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:[he("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:s.icon}),he("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:s.title})]},n))}),r&&he("p",{className:"mt-5 text-primary md:mt-[1.875rem]",children:r})]}),t&&he("div",{className:"mx-auto text-center",children:ci("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[he("div",{className:"relative flex justify-end overflow-hidden",children:he("div",{className:"relative z-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:he("div",{className:"relative z-[4] overflow-hidden",children:he(di,{src:t.image1.src,alt:t.image1.alt,width:t.image1.width,height:t.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})})}),he("div",{className:"flex overflow-hidden",children:he(di,{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"})}),he("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:he(di,{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"})}),he("div",{className:"overflow-hidden",children:he(di,{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"})}),he("div",{className:"absolute left-1/2 top-1/2 z-[4] -translate-x-1/2 -translate-y-1/2 overflow-hidden",children:he("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:he("span",{className:"grid h-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:he("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:he("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"})})})})})]})})]})})})})}import kh from"next/image";import{jsx as nt,jsxs as Oo}from"react/jsx-runtime";function bm({blogs:e,base:t}){return nt("div",{children:e&&e.length>0&&nt("div",{className:"grid gap-10 lg:gap-10 md:grid-cols-2",children:e.map((a,o)=>nt(Ph,{post:a,id:o,base:t},o))})})}var Ph=({post:e,id:t,base:a})=>{let{slug:o,meta:r,authors:s,categories:n,title:i,publishedAt:d}=e;return Oo("article",{className:"relative isolate flex flex-col gap-8 lg:flex-row",children:[Oo("div",{className:"relative aspect-video sm:aspect-[2/1] lg:aspect-square lg:w-64 lg:shrink-0",children:[nt(kh,{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"}),nt("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"})]}),Oo("div",{children:[Oo("div",{className:"flex flex-wrap items-center gap-x-4 text-xs",children:[nt("time",{dateTime:e.publishedAt??void 0,className:"text-foreground",children:$s(e.publishedAt??"")}),e.categories&&e.categories.map((m,c)=>nt("a",{href:`#${m}`,className:"relative z-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100",children:m.title},c))]}),nt("div",{className:"group relative max-w-xl",children:nt("h3",{className:"mt-3 text-lg/6 font-semibold text-accent group-hover:text-xl/6",children:Oo("a",{href:`/${a}/${e.slug}`||"#",children:[nt("span",{className:"absolute inset-0"}),e.title]})})}),nt("div",{className:"mt-6 flex flex-wrap lg:border-t gap-y-2 border-gray-200 dark:border-gray-700 pt-6",children:s&&s.map((m,c)=>Oo("div",{className:"relative flex items-center gap-x-4",children:[m.profilePicture?nt("img",{alt:m.name||"Author",src:m.profilePicture?.url||"/assets/images/placeholder.jpg",className:"size-10 rounded-full bg-gray-50"}):nt("div",{className:"size-10 rounded-full bg-gray-50"})," ",nt("div",{className:"text-sm/6",children:Oo("p",{className:"text-foreground pr-6",children:[nt("span",{className:"absolute inset-0"}),m.name]})})]},c))})]})]},t)};import{jsx as hr,jsxs as Sh}from"react/jsx-runtime";function YA({blogs:e,pages:t,categories:a,types:o,base:r}){return hr("section",{children:hr(Tt,{children:hr("div",{className:"grid",children:Sh("div",{children:[o&&hr(mc,{types:o}),hr(bm,{blogs:e,base:r}),hr(nc,{pages:t})]})})})})}import Rh from"next/image";var mi="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//Z";import{FaEnvelope as Th,FaPhoneFlip as Dh}from"react-icons/fa6";import{jsx as Ve,jsxs as ro}from"react/jsx-runtime";function s8(e){let{sectionHeading:t,image:a}=e;return Ve("div",{className:"relative w-full light py-[60px]",children:ro("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[Ve("div",{className:"relative h-full w-full",children:Ve(Rh,{src:a.src,alt:a.alt,fill:!0,objectFit:"contain",sizes:"(min-width: 768px) 30vw, 50vw",placeholder:"blur",blurDataURL:mi})}),Ve("div",{className:"w-full h-full",children:ro("div",{className:"bg-white p-10",children:[Ve("div",{className:"mb-30px",children:Ve(oo,{...t,invert:!0})}),Ve(Ts,{})]})})]})})}function i8(e){return Ve("div",{className:"",children:Ve("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:Ve("div",{className:"mx-auto max-w-2xl space-y-16 divide-y divide-gray-100 lg:mx-0 lg:max-w-none",children:ro("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[ro("div",{children:[Ve("h2",{className:"text-pretty text-4xl text-primary",children:"Locations"}),Ve("p",{className:"mt-4 text-base/7 text-foreground",children:"We have multiple locations across the UK."})]}),Ve("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:e.locations&&e.locations.map((t,a)=>ro("div",{className:"rounded-2xl p-10 border",children:[Ve("h3",{className:"text-base/7 text-primary",children:t.title}),ro("address",{className:"mt-3 space-y-1 text-sm/6 not-italic text-foreground",children:[t.location.split(",")?.map((o,r)=>Ve("p",{children:o},r))," ",t.mails&&ro("p",{className:"flex items-center space-x-2",children:[Ve(Th,{className:"pr-2 text-primary size-auto"}),Ve("span",{children:t.mails[0]})]}),t.phoneNumbers&&t.phoneNumbers.length>0&&ro("p",{className:"flex items-center space-x-2",children:[Ve(Dh,{className:"pr-2 text-primary size-auto"}),t.phoneNumbers[0]]})]})]},a))})]})})})})}import Ah from"next/image";import{notFound as Mh}from"next/navigation";import Ih from"next/link";import{FaLinkedin as Lh}from"react-icons/fa6";import{jsx as Ne,jsxs as $o}from"react/jsx-runtime";function Bh({image:e,name:t,about:a,socialLinks:o}){return!e||!e.src||e.src.length<3||!t?null:Ne("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:Ne(Y,{children:$o(J,{className:"flex flex-col items-center",children:[e&&e.src&&Ne(Ah,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:mi,className:"mx-auto mt-6 rounded-full object-cover"}),$o("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&&Ne("nav",{"aria-label":"social links",children:Ne("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&&Ne("li",{children:Ne(Xe,{href:r.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:Ne("span",{children:r.icon})})},s))})})]}),Ne("p",{children:a})]})})})}function C8({page:e,categoryList:t,edit:a=!1,path:o="/admin/collections/posts/"}){if(!e)return Mh();let{meta:r,populatedAuthors:s,authors:n,categories:i,content:d,title:m}=e,c={image:{src:r&&r.image&&r.image.url||void 0,alt:r&&r.image&&r.image.alt||void 0},authorName:s?.[0]?.name||"",category:i,commentCount:0,title:m,description:r?.description||""},p=n?.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:Ne(Lh,{}),href:u.linkedIn??""}]}});return console.log(p),Ne(Tt,{children:$o("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[Ne("div",{children:$o("div",{className:"[&_p+P]:mt-4",children:[Ne("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),Ne(W,{content:d,enableGutter:!1,className:"prose-invert"})]})}),$o("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[a&&Ne("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:$o(Y,{children:[Ne(de,{children:Ne(ce,{className:"text-accent",children:"Content Actions"})}),$o(J,{children:[Ne("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),Ne(Ih,{href:`${o}${e.id}`,children:Ne(C,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),p&&p.map((u,g)=>Ne(Bh,{...u},g)),t&&t.links&&Ne("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:Ne(dc,{links:t.links,title:t.title})})]})]})})}import{useState as pi,useEffect as zh}from"react";import vm from"next/link";import{Printer as M8,Presentation as I8}from"lucide-react";import{usePathname as Eh}from"next/navigation";import{ExternalLink as Fh}from"lucide-react";import{jsx as ee,jsxs as aa}from"react/jsx-runtime";var z8=({children:e,pageId:t,tableOfContents:a=[],edit:o=!0,path:r="/admin/collections/pages/",relatedContent:s=[{title:"Related Content",links:[]}]})=>{let[n,i]=pi(!1),d=()=>{i(!n)};return zh(()=>{if(typeof window>"u")return;let m=()=>{let c=window.location.hash;if(c){let p=c.substring(1),u=document.getElementById(p);if(u){let b=u.getBoundingClientRect().top+window.pageYOffset+-300;window.scrollTo({top:b,behavior:"smooth"})}}};return m(),window.addEventListener("hashchange",m),()=>{window.removeEventListener("hashchange",m)}},[]),aa("div",{className:"",children:[ee("div",{className:l(n?"col-span-3":"col-span-4","xl:col-span-3"),children:e}),ee(Hh,{pageId:t,tableOfContents:a,edit:o,path:r,relatedContent:s,isSidebarVisible:n}),ee("div",{className:"block md:hidden mt-8",children:ee("div",{className:"space-y-6",children:e})})]})};var Hh=({pageId:e,tableOfContents:t=[],edit:a=!0,path:o="/admin/collections/pages/",relatedContent:r=[{title:"Related Content",links:[]}],isSidebarVisible:s})=>{let[n,i]=pi(""),[d,m]=pi(!1),[c,p]=pi(!1),u=Eh(),g=()=>{m(!d),p(!1)},b=()=>{p(!c),m(!1)},f=P=>{switch(P){case"h3":return"ml-4";case"h4":return"ml-8";default:return""}},y=()=>{let P=u.split("/"),h="/print"+u,w=window.open(h,"Print","width=1754,height=1240,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes");w&&w.focus()},R=()=>{let P=u.split("/"),h="/present"+u,w=window.open(h,"Print","width=1754,height=1240,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes");w&&w.focus()};return ee("div",{className:l("fixed right-2 z-20 top-1/4 space-y-6 transform transition-transform duration-300 translate-x-full",s?"translate-x-0":"md:translate-x-0"),children:aa("div",{className:"flex flex-row-reverse z-20 min-w-64 gap-4",children:[aa("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-gray-200 bg-card p-2.5 shadow-lg backdrop-blur-lg min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[aa(vm,{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:[ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:ee("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"})}),ee("small",{className:"text-center text-xs font-medium",children:" Edit "})]}),aa("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:[ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",children:ee("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"})}),ee("small",{className:"text-center text-xs font-medium",children:" Contents "})]}),aa("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:[ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:ee("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"})}),ee("small",{className:"text-center text-xs font-medium",children:" Related "})]}),ee("hr",{className:"dark:border-gray-400"}),aa("a",{onClick:R,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:[ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:ee("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"})}),ee("small",{className:"text-xs font-medium",children:"Present"})]}),aa("a",{onClick:y,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:[ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:ee("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"})}),ee("small",{className:"text-xs font-medium",children:"Print"})]})]}),d&&ee("div",{className:l("z-50 flex shrink-0 grow-0 gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border"),children:aa("div",{className:"flex flex-col m-2 justify-start z-50 min-w-64",children:[ee("div",{className:"flex text-accent",children:"On this Page"}),ee("ul",{className:"flex flex-col space-y-2",children:t.map((P,h)=>ee("li",{className:f(P.tag),children:ee("a",{href:`#${P.id}`,className:`text-xs ${n===P.id?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:P.text})},h))})]})}),c&&r&&r.length>0&&ee("div",{className:l("z-50 flex shrink-0 grow-0 gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border"),children:aa("div",{className:"flex flex-col m-2 justify-start z-50 min-w-64",children:[ee("div",{className:"flex text-accent",children:"Related Content"}),ee("ul",{className:"flex flex-col space-y-2",children:r.map((P,h)=>P.links&&P.links.length>0?P.links.map((w,x)=>aa(vm,{href:w.href,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[w.name,w.href.startsWith("http")&&ee(Fh,{className:"ml-1 h-3 w-3"})]},x)):null)})]})})]})})};import jh from"next/image";import{jsx as ui,jsxs as hm}from"react/jsx-runtime";function O8({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 hm("section",{className:l("relative min-h-[50vh] w-full overflow-hidden",e),children:[hm("div",{className:"absolute inset-0 w-full",children:[ui(jh,{src:a||"/placeholder.svg",alt:o,fill:!0,className:"object-cover",priority:!0}),s&&ui("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%)"}})]}),ui("div",{className:l("relative w-full max-w-8xl mx-auto px-4 md:px-6 lg:px-8","flex items-center",r==="left"?"justify-end":"justify-start"),children:ui("div",{className:l("w-full max-w-xl py-12",r==="left"?"ml-auto":"mr-auto"),children:t})})]})}import ym from"next/image";import{FaArrowRight as Oh}from"react-icons/fa6";import{jsx as Te,jsxs as Qr}from"react/jsx-runtime";function Z8({blogs:e,sectionHeading:t,base:a="insights"}){return Qr(Tt,{children:[Te("div",{className:"",children:t&&Te("div",{"data-aos":"fade-up","data-aos-delay":"100",children:Te(oo,{...t,alignment:"start",hasBottomSpacing:!0})})}),e&&e.length>0&&Te("div",{className:"-mx-4 flex flex-wrap justify-start gap-y-4",children:e.map((o,r)=>Te("div",{"data-aos":"fade-up","data-aos-delay":fr([200,400,600],r),className:"w-full h-full md:w-1/2 md:px-4 lg:w-1/3",children:Te($h,{...o,base:a})},r))})]})}var xm=l("inline-flex items-center gap-2 text-white"),eM=l("text-sm text-white");function $h({slug:e,meta:t,authors:a,title:o,publishedAt:r,categories:s,base:n}){return Qr("article",{className:"group/blog relative z-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[Te("span",{className:"absolute inset-0 z-[2] "}),Te(ym,{src:t?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:t?.image?.alt||"Blog image",fill:!0,sizes:`
25
26
  (min-width:768px) 50vw,
26
27
  (min-width:1024px) 33vw,
27
28
  100vw
28
- `,className:l("pointer-events-none object-cover opacity-0 [filter:blur(10px)] [transform:translatex(50%)_scalex(2)] [transition:all_500ms_ease]","group-hover/blog:opacity-100 group-hover/blog:[filter:blur(0px)] group-hover/blog:[transform:translatex(0)_scalex(1)]")}),Re(am,{src:t?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:t?.image?.alt||"Blog image",fill:!0,sizes:`
29
+ `,className:l("pointer-events-none object-cover opacity-0 [filter:blur(10px)] [transform:translatex(50%)_scalex(2)] [transition:all_500ms_ease]","group-hover/blog:opacity-100 group-hover/blog:[filter:blur(0px)] group-hover/blog:[transform:translatex(0)_scalex(1)]")}),Te(ym,{src:t?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:t?.image?.alt||"Blog image",fill:!0,sizes:`
29
30
  (min-width:768px) 50vw,
30
31
  (min-width:1024px) 33vw,
31
32
  100vw
32
- `,className:l("pointer-events-none object-cover [transition:all_500ms_ease]","group-hover/blog:opacity-0 group-hover/blog:[filter:blur(10px)] group-hover/blog:[transform:translatex(-50%)_scalex(2)]")}),Gr("div",{className:"relative z-10 flex h-full flex-1 w-full flex-col",children:[r&&Re("div",{children:Re("div",{className:"inline-grid w-full items-center justify-center rounded-5 bg-background/70 px-4 py-3 text-center font-secondary text-md font-bold text-foreground transition-colors group-hover/blog:bg-accent group-hover/blog:text-accent-foreground md:text-lg",children:Re("time",{dateTime:r,className:"text-foreground",children:Re("span",{className:"block",children:Ls(r)})})})}),Gr("div",{className:"mt-auto space-y-2 text-white md:space-y-5",children:[Re("div",{className:"inline-flex flex-wrap items-center gap-x-5 gap-y-2",children:Re("p",{className:om})}),Re("h3",{className:"text-md font-bold w-full h-28 p-6 bg-background/70 text-foreground md:text-lg",children:Re(We,{"aria-label":o,href:`/${n}/${e}`||"#",className:"transition-colors duration-300 hover:text-primary",children:o})}),Re("div",{children:Gr(We,{href:`/${n}/${e}`||"#",className:l(om,"gap-[.625rem] bg-background/80 px-4 py-2 mx-6 my-3 text-base font-semibold uppercase text-foreground transition-colors duration-300 hover:text-accent-foreground"),children:[Re("span",{children:"Read article"}),Re("span",{className:"text-accent",children:Re(ih,{})})]})})]})]})]})}import lh from"next/image";import{jsx as Aa,jsxs as Cn}from"react/jsx-runtime";function A8({image:e,title:t,content:a,link:o,theme:r}){return Cn("section",{className:"container relative",children:[Aa("div",{className:l("absolute mt-[50%] w-full h-full",r==="dark"?"bg-white":"bg-black")}),Aa("div",{className:l("flex flex-col md:flex-row items-center justify-between gap-12 px-6 md:px-16 py-16 bg-background",r,r==="dark"&&"bg-black clip-custom-top-r"),children:Cn("div",{className:"w-full flex flex-row items-center justify-center",children:[Cn("div",{className:l("w-full md:w-1/2 max-w-lg text-left",r==="dark"&&"mt-48"),children:[Aa("h2",{className:"text-3xl md:text-5xl text-primary",children:t}),Aa("p",{className:"mt-4 text-gray-700 text-lg",children:a&&Aa(W,{enableGutter:!1,content:a,enableProse:!1,className:l("prose prose-headings:text-gray-700 prose-p:text-gray-700")})}),Aa("button",{className:"mt-6 px-6 py-3 border border-1 border-accent text-foreground bg-background rounded-full text-base hover:bg-accent hover:text-white transition",children:Aa("a",{href:o.url||"#",children:o.label||"Learn more"})})]}),Aa("div",{className:"w-full md:w-1/2 flex justify-center",children:e&&e.url&&Aa(lh,{src:e.url,alt:e.alt||`Image of ${t}`,width:400,height:400,className:"max-w-full"})})]})})]})}import dh from"next/image";import{jsx as J,jsxs as eo}from"react/jsx-runtime";var F8=({children:e,theme:t,style:a,neighbours:o,shape:r,image:s,id:n,continueTheme:i})=>{let c=m=>eo("div",{className:"select-none",children:[m&&typeof m=="object"&&J(sa,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:m}),m&&typeof m=="string"&&J("div",{children:J(dh,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:m})})]});if(t==="dark"&&a==="slide")return J("section",{id:n||"next-section",className:"sticky md:top-0 h-screen",children:eo("div",{className:"dark pt-0 min-h-[80vh]",children:[J(zt,{className:"z-10",position:"dark-top"}),eo("div",{className:"relative",children:[J("div",{className:"flex items-center bg-black justify-center pt-12",children:J("div",{className:"container",children:e})}),J(zt,{className:"z-10",position:"dark-bottom"})]})]})});if(t==="light"&&a==="slide")return J("section",{id:n||"next-section",className:"sticky top-0 light pt-0 h-screen",children:eo("div",{className:"sticky top-0 light pt-0 h-screen",children:[J(zt,{className:"z-10",position:"light-top"}),eo("div",{className:"relative bg-white",children:[J("div",{className:"flex items-center bg-white justify-center pt-12",children:J("div",{className:"container",children:e})}),J("div",{className:"h-[200px] bg-white"})]})]})});if(t==="first")return J("section",{id:n||"next-section",className:"",children:J("div",{className:"sticky top-0 light bg-background pt-6 min-h-[80vh]",children:eo("div",{className:"relative",children:[J("div",{className:"flex items-center justify-center pt-12",children:J("div",{className:"container",children:e})}),J(zt,{className:"text-black z-10",position:"bottom-right"})]})})});if(t==="light")return J("section",{id:n||"next-section",className:"",children:J("div",{className:l("sticky top-0 light bg-background min-h-[50vh]","pb-10"),children:J("div",{className:"flex items-center pt-8 justify-center",children:J("div",{className:"container",children:e})})})});if(t==="dark")return J("section",{id:n||"next-section",className:"",children:eo("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[J(zt,{className:"text-black z-10",position:"bottom-right"}),J("div",{className:"flex items-center justify-center pt-12 bg-black",children:J("div",{className:"container",children:e})}),J(zt,{className:"text-accent z-10",position:"top"})]})});if(t==="last")return J("section",{id:n||"next-section",className:"",children:eo("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[J(zt,{className:"text-black z-10",position:"bottom-right"}),J("div",{className:"flex items-center justify-center pb-12 bg-black min-h-[80vh]",children:J("div",{className:"container",children:e})})]})})};import ch from"next/link";import{jsx as to,jsxs as rm}from"react/jsx-runtime";var U8=({dynamicServiceDetail:e,style:t})=>{let a=e;return to("div",{className:"container",children:rm("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[rm("div",{className:l("w-full text-left prose"),children:[to("h2",{className:"text-primary",children:a.title}),to("div",{className:"",children:to(W,{enableGutter:!1,content:a.description,enableProse:!1,className:l("prose prose-headings:text-foreground prose-p:text-foreground")})}),to(k,{asChild:!0,className:"mt-6 px-6 py-3 border border-accent text-foreground bg-background rounded-full hover:bg-accent hover:text-accent-foreground transition no-underline",children:to(ch,{href:`/${a.slug}`,children:"Learn more"})})]}),a.icon&&typeof a.icon=="object"&&"type"in a.icon&&"iconName"in a.icon&&to("div",{className:l("w-full h-full min-h-96 py-6 p-0 md:p-16 flex justify-center"),children:to("i",{className:`${a.icon.type} fa-${a.icon.iconName} fa-10x w-3/4 h-full text-foreground fill-gradient-linear`,style:{width:"90%"}})})]})})};import{useState as mh}from"react";import ph from"html2canvas";import{jsPDF as sm}from"jspdf";import{Fragment as gh,jsx as Ee,jsxs as pr}from"react/jsx-runtime";function eM({type:e="slideshow",orientation:t="landscape",...a}){let o=a.page,[r,s]=mh(t),{contentWithIds:n,tableOfContents:i}=fr(o);if(e==="slideshow")return Ee("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:Ee(on,{blocks:n,hero:a.hero,title:a.page.title,logoImage:a.logoImage})});if(e==="print")return pr(gh,{children:[Ee(uh,{layout:r,changeLayout:s}),Ee(Vd,{page:a.page,layout:r,logoImage:a.logoImage})]})}var uh=({changeLayout:e,layout:t="landscape"})=>{let a=async()=>{if(t==="flow"){let n=document.getElementById("printable-content")?.innerHTML;if(n){var s=window.document.body.innerHTML;window.document.body.innerHTML=n,window.print(),window.document.body.innerHTML=s}}else await new Promise(n=>setTimeout(n,300)),window.print()},o=s=>{e&&e(s)},r=async s=>{let n=document.getElementById(s);if(!n)throw new Error(`Element with id ${s} not found`);let i=document.createElement("canvas"),c=window.devicePixelRatio;i.width=Math.max(n.clientWidth||0)*c,i.height=Math.max(n.clientHeight||0)*c+100;let m=i.getContext("2d");if(!m)throw new Error("Failed to get 2D context");let d=m.drawImage,p=Array.from(n.getElementsByTagName("img")).reduce((C,V)=>(C[V.src]=V,C),{});m.drawImage=function(...C){let[V,A,R,w,z,v,_,E,ge]=C;if(V instanceof HTMLImageElement){let He=p[V.src].style.objectFit||"fill",Dt=p[V.src].style.objectPosition||"center center";z=V.height,w=V.width;let ht=w/z,st=E/ge,[it,ne]=Dt.split(" ");switch(ne||(ne=it),He){case"cover":if(ht>st){let re=z*st,de=(w-re)/2;it==="left"&&(de=0),it==="right"&&(de=w-re),A+=de,w=re}else{let re=w/st,de=(z-re)/2;ne==="top"&&(de=0),ne==="bottom"&&(de=z-re),R+=de,z=re}break;case"contain":if(ht>st){let re=E/ht,de=(ge-re)/2;ne==="top"&&(de=0),ne==="bottom"&&(de=ge-re),_+=de,ge=re}else{let re=ge*ht,de=(E-re)/2;it==="left"&&(de=0),it==="right"&&(de=E-re),v+=de,E=re}break;case"fill":break}}return d.call(m,V,A,R,w,z,v,_,E,ge)};let u=document.getElementById(s);if(!u)throw new Error(`Element with id ${s} not found`);var g=i.width,b=i.height;let h=(await ph(u,{canvas:i,windowHeight:b,windowWidth:g,scale:window.devicePixelRatio})).toDataURL("image/png"),P=new sm({}).getImageProperties(h),y=297,N=y*(P.height/P.width),x=new sm({unit:"mm",format:[y,N]});x.addImage(h,"PNG",0,0,y,N),x.save("print.pdf")};return Ee("div",{className:l("fixed right-2 z-20 top-20 space-y-6 print:hidden"),children:Ee("div",{className:"flex flex-row-reverse z-20 min-w-70 gap-4",children:pr("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[pr("a",{onClick:a,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[Ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:Ee("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"})}),Ee("small",{className:"text-xs font-medium",children:"Print"})]}),Ee("div",{className:"flex-grow border-t border-gray-200 dark:border-slate-600/60"}),pr("a",{onClick:()=>o("portrait"),className:l("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="portrait"?"text-accent":"hover:text-accent"),children:[Ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",children:Ee("path",{d:"M352 448c0 17.7-14.3 32-32 32L64 480c-17.7 0-32-14.3-32-32L32 64c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32l0 384zM384 64c0-35.3-28.7-64-64-64L64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384z"})}),Ee("small",{className:"text-xs",children:"Portrait"})]}),pr("a",{onClick:()=>o("landscape"),className:l("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="landscape"?"text-accent":"hover:text-accent"),children:[Ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:Ee("path",{d:"M576 96c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32L64 416c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l512 0zM64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l512 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64z"})}),Ee("small",{className:"text-xs",children:"Landscape"})]}),pr("a",{onClick:()=>o("flow"),className:l("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="flow"?"text-accent":"hover:text-accent"),children:[Ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:Ee("path",{d:"M266.2 4.7C273 1.6 280.5 0 288 0s15 1.6 21.8 4.7l217.4 97.5c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 251.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 153.9C38.6 149.3 32 139.2 32 128s6.6-21.3 16.8-25.9L266.2 4.7zM288 32c-3 0-6 .6-8.8 1.9L69.3 128l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-210-94.1C294 32.6 291 32 288 32zM48.8 358.1l45.9-20.6 39.1 17.5L69.3 384l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 507.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 409.9C38.6 405.3 32 395.2 32 384s6.6-21.3 16.8-25.9zM94.7 209.5l39.1 17.5L69.3 256l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 379.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 281.9C38.6 277.3 32 267.2 32 256s6.6-21.3 16.8-25.9l45.9-20.6z"})}),Ee("small",{className:"text-xs",children:"Continuous"})]})]})})})};export{Ph as AOSInit,c6 as AboutSection,El as Alert,Fl as AlertDescription,Hl as AlertTitle,Nc as ApproveLeave,wt as Avatar,Ct as AvatarFallback,Nt as AvatarImage,Je as Badge,Xl as BannerBlock,nh as BlogCard,X6 as BlogDetail,k8 as BlogList,x6 as BlogListSection,So as BrandLogo,En as Breadcrumb,_n as BreadcrumbEllipsis,Fn as BreadcrumbItem,jn as BreadcrumbLink,Hn as BreadcrumbList,On as BreadcrumbPage,$n as BreadcrumbSeparator,JP as Breadcrumbs,k as Button,ra as CMSLink,y3 as CRMCogeBoard,_R as CRMKanbanBoard,us as Calendar,Ic as CalendarView,Go as CallToActionBlock,a1 as CallToActionBlockOld,Rs as Card,Qd as Categories,Hc as ChatCardTask,U3 as ChatInterfaceMessages,Fc as ChatMessage,oa as Checkbox,rd as CodeBlock,Ha as Collapsible,oo as CollapsibleContent,ao as CollapsibleTrigger,ck as CollectionArchive,Ai as Command,Yp as CommandDialog,Al as CommandEmpty,Il as CommandGroup,Dl as CommandInput,Bl as CommandItem,Ml as CommandList,Ll as CommandSeparator,zl as CommandShortcut,M6 as ContactSection,Rt as Container,ks as ContentBlock,y2 as ContentCard,ed as CopyButton,We as CustomLink,Fu as CustomerCard,Ad as DarkTop,Bc as DealCard,$s as DealDetails,vn as DeliveryLeadSubmission,hn as DeliveryLeadSubmissionList,dv as DeliveryLeadSubmissionWithList,Wt as Dialog,Di as DialogClose,At as DialogContent,cs as DialogDescription,Tl as DialogFooter,ta as DialogHeader,Mi as DialogOverlay,Rl as DialogPortal,aa as DialogTitle,Kp as DialogTrigger,ni as DropdownMenu,Un as DropdownMenuCheckboxItem,Vr as DropdownMenuContent,tp as DropdownMenuGroup,Ur as DropdownMenuItem,Kn as DropdownMenuLabel,ap as DropdownMenuPortal,rp as DropdownMenuRadioGroup,Wn as DropdownMenuRadioItem,Xn as DropdownMenuSeparator,Yn as DropdownMenuShortcut,op as DropdownMenuSub,Vn as DropdownMenuSubContent,Gn as DropdownMenuSubTrigger,li as DropdownMenuTrigger,Ze as DynamicIcon,Gu as EventCard,Rr as FeatureCard,sg as FeatureGrid,Uo as FeaturesBlock,_r as FileList,Qc as FileView,Zd as Filter,pf as FlowPrintable,JS as Footer,r4 as Header,bc as HeaderDesktop,yc as HeaderMobile,fC as HeadingImage,p2 as Hero,ec as HighImpactHero,Ac as HolidayGrid,dR as HolidayTracker,Gp as HoverCard,Sl as HoverCardContent,Vp as HoverCardTrigger,Qu as Image,pd as ImageBlock,m8 as ImageSection,j2 as InfoTile,Ge as Input,z2 as Insight,Gs as KanbanColumn,wn as KnowledgeBrowser,Yc as KnowledgeView,I as Label,Id as LightTop,A6 as LocationsSection,fk as Logo,oc as LowImpactHero,_2 as MOTD,i8 as MainPageSection,jP as Mask,sa as Media,Va as MediaBlock,ac as MediumImpactHero,Uc as NavigationTabs,zc as NewCustomerForm,m3 as NewDealForm,lf as NewsGrid,q2 as OrgChart,uf as PagePrintable,hk as PageRange,zt as PageShape,Yd as Pagination,Dk as PayloadPagination,ls as Popover,jp as PopoverAnchor,Nr as PopoverContent,ds as PopoverTrigger,TP as PostHero,yd as PricingCard,a6 as PricingSection,Vd as Printable,Wu as ProjectCard,z5 as ProjectTeam,tC as ProposalSummary,eM as Publish,$5 as RelatedContent,c4 as RelatedPagesMenu,sk as RelatedPosts,xo as RenderBlocks,_C as RenderBlocksWithShapes,QP as RenderHero,Dc as RequestLeave,Rd as ReusableContentBlock,W as RichText,Vt as ScrollArea,Si as ScrollBar,F8 as Section,nc as SectionHero,Lt as Select,Pt as SelectContent,Tx as SelectGroup,ct as SelectItem,ru as SelectLabel,Gl as SelectScrollDownButton,_l as SelectScrollUpButton,su as SelectSeparator,kt as SelectTrigger,Bt as SelectValue,Wr as Separator,o2 as ServiceCard,U8 as ServiceDetail,A8 as ServiceDetailSection,VD as ServiceSection,pi as Sheet,cp as SheetClose,Kr as SheetContent,al as SheetDescription,el as SheetFooter,Zn as SheetHeader,ui as SheetOverlay,Jn as SheetPortal,tl as SheetTitle,dp as SheetTrigger,jo as Sidebar,so as SidebarContent,$o as SidebarFooter,_t as SidebarGroup,pl as SidebarGroupAction,ea as SidebarGroupContent,ja as SidebarGroupLabel,Oo as SidebarHeader,ml as SidebarInput,cl as SidebarInset,x5 as SidebarLeft,xt as SidebarMenu,qr as SidebarMenuAction,ul as SidebarMenuBadge,Gt as SidebarMenuButton,Qe as SidebarMenuItem,gl as SidebarMenuSkeleton,io as SidebarMenuSub,lo as SidebarMenuSubButton,no as SidebarMenuSubItem,nl as SidebarProvider,dl as SidebarRail,D5 as SidebarRight,Yr as SidebarSeparator,ll as SidebarTrigger,fS as SimpleHeader,Te as Skeleton,on as SlideShow,Ul as Tabs,Ox as TabsContent,Wl as TabsList,Kl as TabsTrigger,Nn as TeamCard,qc as TeamsIndexView,df as TextAndImages,go as Textarea,Yi as Theme,zP as ThemeProvider,Eg as ThemeWithShapes,as as Toast,bl as ToastAction,os as ToastClose,ss as ToastDescription,wi as ToastProvider,rs as ToastTitle,ts as ToastViewport,zp as Toaster,hl as Toggle,xl as ToggleGroup,wl as ToggleGroupItem,bi as Tooltip,Xr as TooltipContent,fi as TooltipProvider,vi as TooltipTrigger,yS as VideoHeader,sC as WhyUs,jl as badgeVariants,ro as buttonVariants,l as cn,fr as getTableOfContents,Mp as reducer,Ap as toast,ns as toggleVariants,gi as useIsMobile,yr as useSidebar,xi as useToast};
33
+ `,className:l("pointer-events-none object-cover [transition:all_500ms_ease]","group-hover/blog:opacity-0 group-hover/blog:[filter:blur(10px)] group-hover/blog:[transform:translatex(-50%)_scalex(2)]")}),Qr("div",{className:"relative z-10 flex h-full flex-1 w-full flex-col",children:[r&&Te("div",{children:Te("div",{className:"inline-grid w-full items-center justify-center rounded-5 bg-background/70 px-4 py-3 text-center font-secondary text-md font-bold text-foreground transition-colors group-hover/blog:bg-accent group-hover/blog:text-accent-foreground md:text-lg",children:Te("time",{dateTime:r,className:"text-foreground",children:Te("span",{className:"block",children:$s(r)})})})}),Qr("div",{className:"mt-auto space-y-2 text-white md:space-y-5",children:[Te("div",{className:"inline-flex flex-wrap items-center gap-x-5 gap-y-2",children:Te("p",{className:xm})}),Te("h3",{className:"text-md font-bold w-full h-28 p-6 bg-background/70 text-foreground md:text-lg",children:Te(Xe,{"aria-label":o,href:`/${n}/${e}`||"#",className:"transition-colors duration-300 hover:text-primary",children:o})}),Te("div",{children:Qr(Xe,{href:`/${n}/${e}`||"#",className:l(xm,"gap-[.625rem] bg-background/80 px-4 py-2 mx-6 my-3 text-base font-semibold uppercase text-foreground transition-colors duration-300 hover:text-accent-foreground"),children:[Te("span",{children:"Read article"}),Te("span",{className:"text-accent",children:Te(Oh,{})})]})})]})]})]})}import Gh from"next/image";import{jsx as Ea,jsxs as zn}from"react/jsx-runtime";function iM({image:e,title:t,content:a,link:o,theme:r}){return zn("section",{className:"container relative",children:[Ea("div",{className:l("absolute mt-[50%] w-full h-full",r==="dark"?"bg-white":"bg-black")}),Ea("div",{className:l("flex flex-col md:flex-row items-center justify-between gap-12 px-6 md:px-16 py-16 bg-background",r,r==="dark"&&"bg-black clip-custom-top-r"),children:zn("div",{className:"w-full flex flex-row items-center justify-center",children:[zn("div",{className:l("w-full md:w-1/2 max-w-lg text-left",r==="dark"&&"mt-48"),children:[Ea("h2",{className:"text-3xl md:text-5xl text-primary",children:t}),Ea("p",{className:"mt-4 text-gray-700 text-lg",children:a&&Ea(W,{enableGutter:!1,content:a,enableProse:!1,className:l("prose prose-headings:text-gray-700 prose-p:text-gray-700")})}),Ea("button",{className:"mt-6 px-6 py-3 border border-1 border-accent text-foreground bg-background rounded-full text-base hover:bg-accent hover:text-white transition",children:Ea("a",{href:o.url||"#",children:o.label||"Learn more"})})]}),Ea("div",{className:"w-full md:w-1/2 flex justify-center",children:e&&e.url&&Ea(Gh,{src:e.url,alt:e.alt||`Image of ${t}`,width:400,height:400,className:"max-w-full"})})]})})]})}import _h from"next/image";import{jsx as Z,jsxs as so}from"react/jsx-runtime";var uM=({children:e,theme:t,style:a,neighbours:o,shape:r,image:s,id:n,continueTheme:i})=>{let d=m=>so("div",{className:"select-none",children:[m&&typeof m=="object"&&Z(da,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:m}),m&&typeof m=="string"&&Z("div",{children:Z(_h,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:m})})]});if(t==="dark"&&a==="slide")return Z("section",{id:n||"next-section",className:"sticky md:top-0 h-screen",children:so("div",{className:"dark pt-0 min-h-[80vh]",children:[Z(Ft,{className:"z-10",position:"dark-top"}),so("div",{className:"relative",children:[Z("div",{className:"flex items-center bg-black justify-center pt-12",children:Z("div",{className:"container",children:e})}),Z(Ft,{className:"z-10",position:"dark-bottom"})]})]})});if(t==="light"&&a==="slide")return Z("section",{id:n||"next-section",className:"sticky top-0 light pt-0 h-screen",children:so("div",{className:"sticky top-0 light pt-0 h-screen",children:[Z(Ft,{className:"z-10",position:"light-top"}),so("div",{className:"relative bg-white",children:[Z("div",{className:"flex items-center bg-white justify-center pt-12",children:Z("div",{className:"container",children:e})}),Z("div",{className:"h-[200px] bg-white"})]})]})});if(t==="first")return Z("section",{id:n||"next-section",className:"",children:Z("div",{className:"sticky top-0 light bg-background pt-6 min-h-[80vh]",children:so("div",{className:"relative",children:[Z("div",{className:"flex items-center justify-center pt-12",children:Z("div",{className:"container",children:e})}),Z(Ft,{className:"text-black z-10",position:"bottom-right"})]})})});if(t==="light")return Z("section",{id:n||"next-section",className:"",children:Z("div",{className:l("sticky top-0 light bg-background min-h-[50vh]","pb-10"),children:Z("div",{className:"flex items-center pt-8 justify-center",children:Z("div",{className:"container",children:e})})})});if(t==="dark")return Z("section",{id:n||"next-section",className:"",children:so("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[Z(Ft,{className:"text-black z-10",position:"bottom-right"}),Z("div",{className:"flex items-center justify-center pt-12 bg-black",children:Z("div",{className:"container",children:e})}),Z(Ft,{className:"text-accent z-10",position:"top"})]})});if(t==="last")return Z("section",{id:n||"next-section",className:"",children:so("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[Z(Ft,{className:"text-black z-10",position:"bottom-right"}),Z("div",{className:"flex items-center justify-center pb-12 bg-black min-h-[80vh]",children:Z("div",{className:"container",children:e})})]})})};import Vh from"next/link";import{jsx as io,jsxs as wm}from"react/jsx-runtime";var xM=({dynamicServiceDetail:e,style:t})=>{let a=e;return io("div",{className:"container",children:wm("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[wm("div",{className:l("w-full text-left prose"),children:[io("h2",{className:"text-primary",children:a.title}),io("div",{className:"",children:io(W,{enableGutter:!1,content:a.description,enableProse:!1,className:l("prose prose-headings:text-foreground prose-p:text-foreground")})}),io(C,{asChild:!0,className:"mt-6 px-6 py-3 border border-accent text-foreground bg-background rounded-full hover:bg-accent hover:text-accent-foreground transition no-underline",children:io(Vh,{href:`/${a.slug}`,children:"Learn more"})})]}),a.icon&&typeof a.icon=="object"&&"type"in a.icon&&"iconName"in a.icon&&io("div",{className:l("w-full h-full min-h-96 py-6 p-0 md:p-16 flex justify-center"),children:io("i",{className:`${a.icon.type} fa-${a.icon.iconName} fa-10x w-3/4 h-full text-foreground fill-gradient-linear`,style:{width:"90%"}})})]})})};import{useState as Uh}from"react";import Wh from"html2canvas";import{jsPDF as Nm}from"jspdf";import{Fragment as Xh,jsx as je,jsxs as yr}from"react/jsx-runtime";function DM({type:e="slideshow",orientation:t="landscape",...a}){let o=a.page,[r,s]=Uh(t),{contentWithIds:n,tableOfContents:i}=Nr(o);if(e==="slideshow")return je("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:je(fn,{blocks:n,hero:a.hero,title:a.page.title,logoImage:a.logoImage})});if(e==="print")return yr(Xh,{children:[je(Kh,{layout:r,changeLayout:s}),je(ac,{page:a.page,layout:r,logoImage:a.logoImage})]})}var Kh=({changeLayout:e,layout:t="landscape"})=>{let a=async()=>{if(t==="flow"){let n=document.getElementById("printable-content")?.innerHTML;if(n){var s=window.document.body.innerHTML;window.document.body.innerHTML=n,window.print(),window.document.body.innerHTML=s}}else await new Promise(n=>setTimeout(n,300)),window.print()},o=s=>{e&&e(s)},r=async s=>{let n=document.getElementById(s);if(!n)throw new Error(`Element with id ${s} not found`);let i=document.createElement("canvas"),d=window.devicePixelRatio;i.width=Math.max(n.clientWidth||0)*d,i.height=Math.max(n.clientHeight||0)*d+100;let m=i.getContext("2d");if(!m)throw new Error("Failed to get 2D context");let c=m.drawImage,p=Array.from(n.getElementsByTagName("img")).reduce((k,V)=>(k[V.src]=V,k),{});m.drawImage=function(...k){let[V,M,T,N,z,v,G,E,fe]=k;if(V instanceof HTMLImageElement){let Oe=p[V.src].style.objectFit||"fill",Mt=p[V.src].style.objectPosition||"center center";z=V.height,N=V.width;let wt=N/z,lt=E/fe,[dt,le]=Mt.split(" ");switch(le||(le=dt),Oe){case"cover":if(wt>lt){let re=z*lt,pe=(N-re)/2;dt==="left"&&(pe=0),dt==="right"&&(pe=N-re),M+=pe,N=re}else{let re=N/lt,pe=(z-re)/2;le==="top"&&(pe=0),le==="bottom"&&(pe=z-re),T+=pe,z=re}break;case"contain":if(wt>lt){let re=E/wt,pe=(fe-re)/2;le==="top"&&(pe=0),le==="bottom"&&(pe=fe-re),G+=pe,fe=re}else{let re=fe*wt,pe=(E-re)/2;dt==="left"&&(pe=0),dt==="right"&&(pe=E-re),v+=pe,E=re}break;case"fill":break}}return c.call(m,V,M,T,N,z,v,G,E,fe)};let u=document.getElementById(s);if(!u)throw new Error(`Element with id ${s} not found`);var g=i.width,b=i.height;let y=(await Wh(u,{canvas:i,windowHeight:b,windowWidth:g,scale:window.devicePixelRatio})).toDataURL("image/png"),P=new Nm({}).getImageProperties(y),h=297,w=h*(P.height/P.width),x=new Nm({unit:"mm",format:[h,w]});x.addImage(y,"PNG",0,0,h,w),x.save("print.pdf")};return je("div",{className:l("fixed right-2 z-20 top-20 space-y-6 print:hidden"),children:je("div",{className:"flex flex-row-reverse z-20 min-w-70 gap-4",children:yr("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[yr("a",{onClick:a,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[je("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:je("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"})}),je("small",{className:"text-xs font-medium",children:"Print"})]}),je("div",{className:"flex-grow border-t border-gray-200 dark:border-slate-600/60"}),yr("a",{onClick:()=>o("portrait"),className:l("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="portrait"?"text-accent":"hover:text-accent"),children:[je("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",children:je("path",{d:"M352 448c0 17.7-14.3 32-32 32L64 480c-17.7 0-32-14.3-32-32L32 64c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32l0 384zM384 64c0-35.3-28.7-64-64-64L64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384z"})}),je("small",{className:"text-xs",children:"Portrait"})]}),yr("a",{onClick:()=>o("landscape"),className:l("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="landscape"?"text-accent":"hover:text-accent"),children:[je("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:je("path",{d:"M576 96c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32L64 416c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l512 0zM64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l512 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64z"})}),je("small",{className:"text-xs",children:"Landscape"})]}),yr("a",{onClick:()=>o("flow"),className:l("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="flow"?"text-accent":"hover:text-accent"),children:[je("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:je("path",{d:"M266.2 4.7C273 1.6 280.5 0 288 0s15 1.6 21.8 4.7l217.4 97.5c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 251.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 153.9C38.6 149.3 32 139.2 32 128s6.6-21.3 16.8-25.9L266.2 4.7zM288 32c-3 0-6 .6-8.8 1.9L69.3 128l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-210-94.1C294 32.6 291 32 288 32zM48.8 358.1l45.9-20.6 39.1 17.5L69.3 384l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 507.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 409.9C38.6 405.3 32 395.2 32 384s6.6-21.3 16.8-25.9zM94.7 209.5l39.1 17.5L69.3 256l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 379.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 281.9C38.6 277.3 32 267.2 32 256s6.6-21.3 16.8-25.9l45.9-20.6z"})}),je("small",{className:"text-xs",children:"Continuous"})]})]})})})};export{sy as AOSInit,jA as AboutSection,Xl as Alert,ql as AlertDescription,Yl as AlertTitle,zc as ApproveLeave,et as Avatar,tt as AvatarFallback,kt as AvatarImage,Me as Badge,id as BannerBlock,$h as BlogCard,C8 as BlogDetail,Z8 as BlogList,YA as BlogListSection,Io as BrandLogo,Xn as Breadcrumb,el as BreadcrumbEllipsis,qn as BreadcrumbItem,Qn as BreadcrumbLink,Yn as BreadcrumbList,Jn as BreadcrumbPage,Zn as BreadcrumbSeparator,IS as Breadcrumbs,C as Button,la as CMSLink,lT as CRMCogeBoard,MR as CRMKanbanBoard,ws as Calendar,Uc as CalendarView,qo as CallToActionBlock,E1 as CallToActionBlockOld,pD as CapabilityMenu,zs as Card,dc as Categories,YT as ChatCardArtefact,qc as ChatCardTask,BT as ChatInterfaceMessages,Qc as ChatMessage,na as Checkbox,bd as CodeBlock,Ga as Collapsible,lo as CollapsibleContent,no as CollapsibleTrigger,Vk as CollectionArchive,Gi as Command,pu as CommandDialog,_l as CommandEmpty,Vl as CommandGroup,$l as CommandInput,Wl as CommandItem,Gl as CommandList,Ul as CommandSeparator,Kl as CommandShortcut,e6 as CommentSection,s8 as ContactSection,Tt as Container,Is as ContentBlock,Z2 as ContentCard,pd as CopyButton,Xe as CustomLink,tg as CustomerCard,_d as DarkTop,dr as DashboardHero,Kc as DealCard,Ys as DealDetails,An as DeliveryLeadSubmission,Mn as DeliveryLeadSubmissionList,_v as DeliveryLeadSubmissionWithList,Xt as Dialog,Oi as DialogClose,Lt as DialogContent,hs as DialogDescription,Ol as DialogFooter,sa as DialogHeader,$i as DialogOverlay,jl as DialogPortal,ia as DialogTitle,cu as DialogTrigger,hi as DropdownMenu,ol as DropdownMenuCheckboxItem,Jr as DropdownMenuContent,hp as DropdownMenuGroup,Zr as DropdownMenuItem,sl as DropdownMenuLabel,yp as DropdownMenuPortal,wp as DropdownMenuRadioGroup,rl as DropdownMenuRadioItem,il as DropdownMenuSeparator,nl as DropdownMenuShortcut,xp as DropdownMenuSub,al as DropdownMenuSubContent,tl as DropdownMenuSubTrigger,yi as DropdownMenuTrigger,at as DynamicIcon,d6 as EditableField,ig as EventCard,Br as FeatureCard,Ng as FeatureGrid,Jo as FeaturesBlock,qr as FileList,gm as FileView,mc as Filter,Df as FlowPrintable,$4 as Footer,K4 as Header,Dc as HeaderDesktop,Ic as HeaderMobile,YC as HeadingImage,W2 as Hero,pc as HighImpactHero,Vc as HolidayGrid,J3 as HolidayTracker,iu as HoverCard,Hl as HoverCardContent,nu as HoverCardTrigger,gg as Image,kd as ImageBlock,O8 as ImageSection,yC as InfoTile,Fe as Input,fC as Insight,Qs as KanbanColumn,Ln as KnowledgeBrowser,pm as KnowledgeView,I as Label,Vd as LightTop,i8 as LocationsSection,Yk as Logo,fc as LowImpactHero,NC as MOTD,z8 as MainPageSection,yS as Mask,da as Media,Ya as MediaBlock,gc as MediumImpactHero,em as NavigationTabs,Xc as NewCustomerForm,eT as NewDealForm,Pf as NewsGrid,AC as OrgChart,Af as PagePrintable,Jk as PageRange,Ft as PageShape,nc as Pagination,d5 as PayloadPagination,bs as Popover,au as PopoverAnchor,Dr as PopoverContent,vs as PopoverTrigger,lS as PostHero,Md as PricingCard,MA as PricingSection,ac as Printable,dg as ProjectCard,fP as ProjectTeam,zC as ProposalSummary,DM as Publish,wP as RelatedContent,Z4 as RelatedPagesMenu,jk as RelatedPosts,Po as RenderBlocks,Nk as RenderBlocksWithShapes,MS as RenderHero,Gc as RequestLeave,jd as ReusableContentBlock,W as RichText,Wt as ScrollArea,Fi as ScrollBar,uM as Section,yc as SectionHero,zt as Select,St as SelectContent,lw as SelectGroup,ut as SelectItem,wu as SelectLabel,td as SelectScrollDownButton,ed as SelectScrollUpButton,Nu as SelectSeparator,Pt as SelectTrigger,Et as SelectValue,es as Separator,F2 as ServiceCard,xM as ServiceDetail,iM as ServiceDetailSection,yA as ServiceSection,Ci as Sheet,Rp as SheetClose,ts as SheetContent,gl as SheetDescription,pl as SheetFooter,ml as SheetHeader,ki as SheetOverlay,cl as SheetPortal,ul as SheetTitle,Sp as SheetTrigger,Wo as Sidebar,mo as SidebarContent,Xo as SidebarFooter,Vt as SidebarGroup,kl as SidebarGroupAction,ra as SidebarGroupContent,Va as SidebarGroupLabel,Ko as SidebarHeader,Cl as SidebarInput,Nl as SidebarInset,eP as SidebarLeft,Ct as SidebarMenu,rs as SidebarMenuAction,Pl as SidebarMenuBadge,Ut as SidebarMenuButton,Ze as SidebarMenuItem,Sl as SidebarMenuSkeleton,po as SidebarMenuSub,go as SidebarMenuSubButton,uo as SidebarMenuSubItem,yl as SidebarProvider,wl as SidebarRail,dP as SidebarRight,os as SidebarSeparator,xl as SidebarTrigger,r4 as SimpleHeader,De as Skeleton,fn as SlideShow,_D as Switch,od as Tabs,xw as TabsContent,rd as TabsList,sd as TabsTrigger,Bn as TeamCard,um as TeamsIndexView,Sf as TextAndImages,Yt as Textarea,nn as Theme,fS as ThemeProvider,Zg as ThemeWithShapes,cs as Toast,Tl as ToastAction,ms as ToastClose,us as ToastDescription,Ii as ToastProvider,ps as ToastTitle,ds as ToastViewport,Jp as Toaster,Al as Toggle,Il as ToggleGroup,Ll as ToggleGroupItem,Ri as Tooltip,as as TooltipContent,Si as TooltipProvider,Ti as TooltipTrigger,l4 as VideoHeader,jC as WhyUs,Ql as badgeVariants,co as buttonVariants,l as cn,Jc as defaultColorScheme,FT as findCapabilityByPath,OT as getAllCapabilities,jT as getCapabilityByTeam,HT as getContextualActions,Nr as getTableOfContents,Kp as reducer,Tn as testCapabilities,Xp as toast,fs as toggleVariants,Pi as useIsMobile,Sr as useSidebar,Mi as useToast};