cortex-react-components 1.56.4 → 1.57.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 (230) hide show
  1. package/dist/{chunk-KIICLHKI.mjs → chunk-23BDC5JG.mjs} +1 -1
  2. package/dist/{chunk-KB6PO4K4.mjs → chunk-2IKC7MAP.mjs} +1 -1
  3. package/dist/{chunk-ZNHNOPYF.mjs → chunk-2ZZONUA7.mjs} +1 -1
  4. package/dist/{chunk-NVFHMFFW.mjs → chunk-3WSGT63V.mjs} +1 -1
  5. package/dist/{chunk-Z7P4QOKT.mjs → chunk-4TCLIMFP.mjs} +1 -1
  6. package/dist/{chunk-4YJ3HV64.mjs → chunk-6DHYRATS.mjs} +1 -1
  7. package/dist/{chunk-ZRUQIDWQ.mjs → chunk-6LGY6PVO.mjs} +1 -1
  8. package/dist/{chunk-3GYJDXNA.mjs → chunk-6YWAX7NS.mjs} +1 -1
  9. package/dist/{chunk-ZR2EHFQ7.mjs → chunk-7NLX7D6Y.mjs} +1 -1
  10. package/dist/chunk-7QWI5ZZ5.mjs +1 -0
  11. package/dist/{chunk-T4I5D4XZ.mjs → chunk-D44ZXHH4.mjs} +1 -1
  12. package/dist/{chunk-ILTBXZKO.mjs → chunk-EMHNQXWD.mjs} +1 -1
  13. package/dist/chunk-FQ6UY5BH.mjs +4 -0
  14. package/dist/{chunk-56GKZ4U2.mjs → chunk-G4VAWH27.mjs} +1 -1
  15. package/dist/{chunk-43TBC2ZH.mjs → chunk-GINMTZ73.mjs} +1 -1
  16. package/dist/{chunk-7UKMCL5L.mjs → chunk-HCEF4WIW.mjs} +1 -1
  17. package/dist/{chunk-ZIWHUQ4D.mjs → chunk-HER7J6HM.mjs} +1 -1
  18. package/dist/{chunk-XFNVJTZJ.mjs → chunk-I2YV364R.mjs} +1 -1
  19. package/dist/chunk-IEFDSIRN.mjs +1 -0
  20. package/dist/{chunk-SBAFXZVU.mjs → chunk-IO222G5L.mjs} +1 -1
  21. package/dist/{chunk-FCCL6W7R.mjs → chunk-JPFBD2KD.mjs} +1 -1
  22. package/dist/{chunk-XLWVEKEK.mjs → chunk-KHVLRRGF.mjs} +1 -1
  23. package/dist/chunk-L2COHUJU.mjs +4 -0
  24. package/dist/{chunk-Z2HNL6F6.mjs → chunk-LDVIK3A6.mjs} +1 -1
  25. package/dist/{chunk-UEY6HPXN.mjs → chunk-LIBDRNHM.mjs} +1 -1
  26. package/dist/{chunk-6DRKICKB.mjs → chunk-MIGYDOJH.mjs} +1 -1
  27. package/dist/{chunk-GYUMEOL2.mjs → chunk-OJPHYSRN.mjs} +1 -1
  28. package/dist/{chunk-Z6AOKSZU.mjs → chunk-PDTMJIT4.mjs} +1 -1
  29. package/dist/{chunk-OUKKI47A.mjs → chunk-PIM2JQYT.mjs} +1 -1
  30. package/dist/{chunk-V7EILEQH.mjs → chunk-PTFQFMQI.mjs} +1 -1
  31. package/dist/{chunk-PY53YVFX.mjs → chunk-QMFZRG7O.mjs} +1 -1
  32. package/dist/{chunk-MG76MN3Q.mjs → chunk-RDUTEABM.mjs} +1 -1
  33. package/dist/{chunk-2A6JF3LE.mjs → chunk-RJGKFNZL.mjs} +1 -1
  34. package/dist/{chunk-F55C2C5H.mjs → chunk-RQ23CZK5.mjs} +1 -1
  35. package/dist/{chunk-4RAPLTKA.mjs → chunk-S52RL2VC.mjs} +1 -1
  36. package/dist/{chunk-V5N56VWG.mjs → chunk-SMD2U5NY.mjs} +1 -1
  37. package/dist/chunk-SXSQJDTG.mjs +1 -0
  38. package/dist/{chunk-5RBQ77B3.mjs → chunk-T67YJGQO.mjs} +1 -1
  39. package/dist/{chunk-IUW2STPH.mjs → chunk-TTXYIRTW.mjs} +1 -1
  40. package/dist/{chunk-7ZKGCT6M.mjs → chunk-VGRMSEPT.mjs} +1 -1
  41. package/dist/{chunk-PFASTV4A.mjs → chunk-WF4CC7FD.mjs} +1 -1
  42. package/dist/{chunk-MGS3DQ22.mjs → chunk-XXTN5HMN.mjs} +1 -1
  43. package/dist/chunk-YN7VHSJO.mjs +1 -0
  44. package/dist/{chunk-J7HJZ7IS.mjs → chunk-ZQOKE6SO.mjs} +2 -2
  45. package/dist/components/Blocks/Banner.js +2 -1
  46. package/dist/components/Blocks/Banner.mjs +1 -1
  47. package/dist/components/Blocks/CallToAction.d.ts +1 -0
  48. package/dist/components/Blocks/CallToAction.js +2 -1
  49. package/dist/components/Blocks/CallToAction.mjs +2 -1
  50. package/dist/components/Blocks/CallToAction.stories.js +2 -1
  51. package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
  52. package/dist/components/Blocks/CollapsibleArea.js +2 -1
  53. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  54. package/dist/components/Blocks/CollapsibleArea.stories.js +2 -1
  55. package/dist/components/Blocks/CollapsibleArea.stories.mjs +1 -1
  56. package/dist/components/Blocks/Content.js +2 -1
  57. package/dist/components/Blocks/Content.mjs +1 -1
  58. package/dist/components/Blocks/Content.stories.js +2 -1
  59. package/dist/components/Blocks/Content.stories.mjs +1 -1
  60. package/dist/components/Blocks/FeaturesBlock.js +2 -1
  61. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  62. package/dist/components/Blocks/FeaturesBlock.stories.js +2 -1
  63. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  64. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  65. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  66. package/dist/components/Blocks/RelatedPosts.js +2 -1
  67. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  68. package/dist/components/Blocks/RenderBlocks.js +2 -1
  69. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  70. package/dist/components/Blocks/ReusableContentBlock.js +2 -1
  71. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  72. package/dist/components/Blocks/index.js +2 -1
  73. package/dist/components/Blocks/index.mjs +1 -1
  74. package/dist/components/CRM/DealDetails.mjs +1 -1
  75. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  76. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  77. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  78. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  79. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  80. package/dist/components/CRM/NewDealForm.mjs +1 -1
  81. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  82. package/dist/components/CRM/index.mjs +1 -1
  83. package/dist/components/Cards/ContentCard.js +2 -1
  84. package/dist/components/Cards/ContentCard.mjs +1 -1
  85. package/dist/components/Cards/ContentCard.stories.js +2 -1
  86. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  87. package/dist/components/Cards/FeatureCard.js +2 -1
  88. package/dist/components/Cards/FeatureCard.mjs +1 -1
  89. package/dist/components/Cards/FeatureCard.stories.js +2 -1
  90. package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
  91. package/dist/components/Cards/index.js +5 -4
  92. package/dist/components/Cards/index.mjs +1 -1
  93. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  94. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  95. package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
  96. package/dist/components/HeaderFooter/Header.mjs +1 -1
  97. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  98. package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
  99. package/dist/components/HeaderFooter/HeaderMobile.stories.mjs +1 -1
  100. package/dist/components/HeaderFooter/SectionHeading.js +2 -1
  101. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  102. package/dist/components/HeaderFooter/VideoHeader.js +1 -1
  103. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  104. package/dist/components/HeaderFooter/index.js +1 -1
  105. package/dist/components/HeaderFooter/index.mjs +1 -1
  106. package/dist/components/Heros/HighImpact/index.js +2 -1
  107. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  108. package/dist/components/Heros/LowImpact/index.js +2 -1
  109. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  110. package/dist/components/Heros/MediumImpact/index.js +2 -1
  111. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  112. package/dist/components/Heros/PostHero/index.mjs +1 -1
  113. package/dist/components/Heros/RenderHero.js +2 -1
  114. package/dist/components/Heros/RenderHero.mjs +1 -1
  115. package/dist/components/Heros/index.js +2 -1
  116. package/dist/components/Heros/index.mjs +1 -1
  117. package/dist/components/Layouts/FeatureGrid.stories.js +2 -1
  118. package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
  119. package/dist/components/Layouts/OutputHeaderFooter.js +3 -2
  120. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  121. package/dist/components/Layouts/Print.js +3 -2
  122. package/dist/components/Layouts/Print.mjs +1 -1
  123. package/dist/components/Layouts/Print.stories.js +2 -1
  124. package/dist/components/Layouts/Print.stories.mjs +1 -1
  125. package/dist/components/Layouts/SlideShow.js +4 -3
  126. package/dist/components/Layouts/SlideShow.mjs +1 -1
  127. package/dist/components/Layouts/SlideShow.stories.js +4 -3
  128. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  129. package/dist/components/Layouts/index.js +6 -5
  130. package/dist/components/Layouts/index.mjs +1 -1
  131. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  132. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  133. package/dist/components/Menus/SidebarRight.mjs +1 -1
  134. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  135. package/dist/components/Menus/index.mjs +1 -1
  136. package/dist/components/Payload/Card/index.mjs +1 -1
  137. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  138. package/dist/components/Payload/Media/index.mjs +1 -1
  139. package/dist/components/Payload/RichText/index.js +2 -1
  140. package/dist/components/Payload/RichText/index.mjs +1 -1
  141. package/dist/components/Payload/RichText/serialize.js +2 -1
  142. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  143. package/dist/components/Payload/RichText.stories.js +2 -1
  144. package/dist/components/Payload/RichText.stories.mjs +1 -1
  145. package/dist/components/Payload/index.js +2 -1
  146. package/dist/components/Payload/index.mjs +1 -1
  147. package/dist/components/index.js +8 -7
  148. package/dist/components/index.mjs +1 -1
  149. package/dist/components/ui/index.mjs +1 -1
  150. package/dist/components/ui/sidebar.mjs +1 -1
  151. package/dist/globals.css +1 -1
  152. package/dist/index.js +13 -13
  153. package/dist/index.mjs +1 -1
  154. package/dist/metafile-cjs.json +1 -1
  155. package/dist/metafile-esm.json +1 -1
  156. package/dist/pages/Blog.js +2 -1
  157. package/dist/pages/Blog.mjs +1 -1
  158. package/dist/pages/Blog.stories.js +2 -1
  159. package/dist/pages/Blog.stories.mjs +1 -1
  160. package/dist/pages/Documentation.mjs +1 -1
  161. package/dist/pages/Documentation.stories.mjs +1 -1
  162. package/dist/pages/IndexPage.mjs +1 -1
  163. package/dist/pages/IndexPage.stories.mjs +1 -1
  164. package/dist/pages/Intranet.mjs +1 -1
  165. package/dist/pages/Intranet.stories.mjs +1 -1
  166. package/dist/pages/LandingPage.js +3 -3
  167. package/dist/pages/LandingPage.mjs +1 -1
  168. package/dist/pages/LandingPage.stories.js +3 -3
  169. package/dist/pages/LandingPage.stories.mjs +1 -1
  170. package/dist/pages/Page.js +2 -1
  171. package/dist/pages/Page.mjs +1 -1
  172. package/dist/pages/Page.stories.js +222 -221
  173. package/dist/pages/Page.stories.mjs +1 -1
  174. package/dist/pages/Printable.stories.js +6 -5
  175. package/dist/pages/Printable.stories.mjs +1 -1
  176. package/dist/pages/Publish.js +6 -5
  177. package/dist/pages/Publish.mjs +1 -1
  178. package/dist/pages/Publish.stories.js +6 -5
  179. package/dist/pages/Publish.stories.mjs +1 -1
  180. package/dist/pages/Website.js +2 -1
  181. package/dist/pages/Website.mjs +1 -1
  182. package/dist/pages/Website.stories.js +2 -1
  183. package/dist/pages/Website.stories.mjs +1 -1
  184. package/dist/sections/AboutSection.js +2 -1
  185. package/dist/sections/AboutSection.mjs +1 -1
  186. package/dist/sections/AboutSection.stories.js +2 -1
  187. package/dist/sections/AboutSection.stories.mjs +1 -1
  188. package/dist/sections/BlogDetail.js +2 -1
  189. package/dist/sections/BlogDetail.mjs +1 -1
  190. package/dist/sections/BlogDetail.stories.js +2 -1
  191. package/dist/sections/BlogDetail.stories.mjs +1 -1
  192. package/dist/sections/BlogList.js +4 -3
  193. package/dist/sections/BlogList.mjs +1 -1
  194. package/dist/sections/BlogList.stories.js +4 -3
  195. package/dist/sections/BlogList.stories.mjs +1 -1
  196. package/dist/sections/BlogListSection.mjs +1 -1
  197. package/dist/sections/BlogListSection.stories.mjs +1 -1
  198. package/dist/sections/ContactSection.js +1 -1
  199. package/dist/sections/ContactSection.mjs +1 -1
  200. package/dist/sections/ContactSection.stories.js +1 -1
  201. package/dist/sections/ContactSection.stories.mjs +1 -1
  202. package/dist/sections/ImageSection.stories.js +2 -1
  203. package/dist/sections/ImageSection.stories.mjs +1 -1
  204. package/dist/sections/PageSections.js +3 -3
  205. package/dist/sections/PageSections.mjs +1 -1
  206. package/dist/sections/PageSections.stories.js +3 -3
  207. package/dist/sections/PageSections.stories.mjs +1 -1
  208. package/dist/sections/PricingSection.js +2 -1
  209. package/dist/sections/PricingSection.mjs +1 -1
  210. package/dist/sections/PricingSection.stories.js +2 -1
  211. package/dist/sections/PricingSection.stories.mjs +1 -1
  212. package/dist/sections/ServiceDetailList.js +2 -1
  213. package/dist/sections/ServiceDetailList.mjs +1 -1
  214. package/dist/sections/ServiceDetailSection.js +2 -1
  215. package/dist/sections/ServiceDetailSection.mjs +1 -1
  216. package/dist/sections/ServiceDetailSection.stories.js +2 -1
  217. package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
  218. package/dist/sections/ServiceSection.js +2 -1
  219. package/dist/sections/ServiceSection.mjs +1 -1
  220. package/dist/sections/ServiceSection.stories.js +2 -1
  221. package/dist/sections/ServiceSection.stories.mjs +1 -1
  222. package/dist/sections/index.js +3 -3
  223. package/dist/sections/index.mjs +1 -1
  224. package/package.json +1 -1
  225. package/dist/chunk-3LUYXQWZ.mjs +0 -1
  226. package/dist/chunk-6IVK75UA.mjs +0 -1
  227. package/dist/chunk-F7WTJLZQ.mjs +0 -1
  228. package/dist/chunk-HF7UYIME.mjs +0 -1
  229. package/dist/chunk-NV6DJCV4.mjs +0 -1
  230. package/dist/chunk-RZWTH6SF.mjs +0 -4
@@ -1,5 +1,6 @@
1
1
  "use client";
2
2
  "use strict";
3
+ 'use server'
3
4
 
4
- "use strict";"use client";var Mt=Object.create;var ie=Object.defineProperty;var Ft=Object.getOwnPropertyDescriptor;var zt=Object.getOwnPropertyNames;var Et=Object.getPrototypeOf,Lt=Object.prototype.hasOwnProperty;var Dt=(t,e)=>{for(var r in e)ie(t,r,{get:e[r],enumerable:!0})},We=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of zt(e))!Lt.call(t,l)&&l!==r&&ie(t,l,{get:()=>e[l],enumerable:!(n=Ft(e,l))||n.enumerable});return t};var z=(t,e,r)=>(r=t!=null?Mt(Et(t)):{},We(e||!t||!t.__esModule?ie(r,"default",{value:t,enumerable:!0}):r,t)),Gt=t=>We(ie({},"__esModule",{value:!0}),t);var Cr={};Dt(Cr,{FlowPrintable:()=>It,PagePrintable:()=>St,Printable:()=>kr});module.exports=Gt(Cr);var A=require("react"),ne=require("pagedjs");var et=require("clsx");var Ne="-",Ht=t=>{let e=jt(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:a=>{let s=a.split(Ne);return s[0]===""&&s.length!==1&&s.shift(),_e(s,e)||Ut(a)},getConflictingClassGroupIds:(a,s)=>{let i=r[a]||[];return s&&n[a]?[...i,...n[a]]:i}}},_e=(t,e)=>{var a;if(t.length===0)return e.classGroupId;let r=t[0],n=e.nextPart.get(r),l=n?_e(t.slice(1),n):void 0;if(l)return l;if(e.validators.length===0)return;let o=t.join(Ne);return(a=e.validators.find(({validator:s})=>s(o)))==null?void 0:a.classGroupId},$e=/^\[(.+)\]$/,Ut=t=>{if($e.test(t)){let e=$e.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},jt=t=>{let{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return Vt(Object.entries(t.classGroups),r).forEach(([o,a])=>{Ce(a,n,o,e)}),n},Ce=(t,e,r,n)=>{t.forEach(l=>{if(typeof l=="string"){let o=l===""?e:Je(e,l);o.classGroupId=r;return}if(typeof l=="function"){if(Ot(l)){Ce(l(n),e,r,n);return}e.validators.push({validator:l,classGroupId:r});return}Object.entries(l).forEach(([o,a])=>{Ce(a,Je(e,o),r,n)})})},Je=(t,e)=>{let r=t;return e.split(Ne).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Ot=t=>t.isThemeGetter,Vt=(t,e)=>e?t.map(([r,n])=>{let l=n.map(o=>typeof o=="string"?e+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([a,s])=>[e+a,s])):o);return[r,l]}):t,Qt=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map,l=(o,a)=>{r.set(o,a),e++,e>t&&(e=0,n=r,r=new Map)};return{get(o){let a=r.get(o);if(a!==void 0)return a;if((a=n.get(o))!==void 0)return l(o,a),a},set(o,a){r.has(o)?r.set(o,a):l(o,a)}}},Ke="!",Wt=t=>{let{separator:e,experimentalParseClassName:r}=t,n=e.length===1,l=e[0],o=e.length,a=s=>{let i=[],m=0,c=0,d;for(let v=0;v<s.length;v++){let w=s[v];if(m===0){if(w===l&&(n||s.slice(v,v+o)===e)){i.push(s.slice(c,v)),c=v+o;continue}if(w==="/"){d=v;continue}}w==="["?m++:w==="]"&&m--}let f=i.length===0?s:s.substring(c),N=f.startsWith(Ke),y=N?f.substring(1):f,h=d&&d>c?d-c:void 0;return{modifiers:i,hasImportantModifier:N,baseClassName:y,maybePostfixModifierPosition:h}};return r?s=>r({className:s,parseClassName:a}):a},$t=t=>{if(t.length<=1)return t;let e=[],r=[];return t.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},Jt=t=>({cache:Qt(t.cacheSize),parseClassName:Wt(t),...Ht(t)}),_t=/\s+/,Kt=(t,e)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:l}=e,o=[],a=t.trim().split(_t),s="";for(let i=a.length-1;i>=0;i-=1){let m=a[i],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:N}=r(m),y=!!N,h=n(y?f.substring(0,N):f);if(!h){if(!y){s=m+(s.length>0?" "+s:s);continue}if(h=n(f),!h){s=m+(s.length>0?" "+s:s);continue}y=!1}let v=$t(c).join(":"),w=d?v+Ke:v,B=w+h;if(o.includes(B))continue;o.push(B);let G=l(h,y);for(let M=0;M<G.length;++M){let ae=G[M];o.push(w+ae)}s=m+(s.length>0?" "+s:s)}return s};function Yt(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=Ye(e))&&(n&&(n+=" "),n+=r);return n}var Ye=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=Ye(t[n]))&&(r&&(r+=" "),r+=e);return r};function Xt(t,...e){let r,n,l,o=a;function a(i){let m=e.reduce((c,d)=>d(c),t());return r=Jt(m),n=r.cache.get,l=r.cache.set,o=s,s(i)}function s(i){let m=n(i);if(m)return m;let c=Kt(i,r);return l(i,c),c}return function(){return o(Yt.apply(null,arguments))}}var k=t=>{let e=r=>r[t]||[];return e.isThemeGetter=!0,e},Xe=/^\[(?:([a-z-]+):)?(.+)\]$/i,qt=/^\d+\/\d+$/,Zt=new Set(["px","full","screen"]),er=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,tr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|ce|min|max))|\ce(calc|min|max|clamp)\(.+\)|^0$/,rr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,or=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,E=t=>$(t)||Zt.has(t)||qt.test(t),H=t=>J(t,"length",mr),$=t=>!!t&&!Number.isNaN(Number(t)),ke=t=>J(t,"number",$),Z=t=>!!t&&Number.isInteger(Number(t)),ar=t=>t.endsWith("%")&&$(t.slice(0,-1)),u=t=>Xe.test(t),U=t=>er.test(t),lr=new Set(["length","size","percentage"]),sr=t=>J(t,lr,qe),ir=t=>J(t,"position",qe),cr=new Set(["image","url"]),dr=t=>J(t,cr,fr),pr=t=>J(t,"",ur),ee=()=>!0,J=(t,e,r)=>{let n=Xe.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},mr=t=>tr.test(t)&&!rr.test(t),qe=()=>!1,ur=t=>or.test(t),fr=t=>nr.test(t);var gr=()=>{let t=k("colors"),e=k("spacing"),r=k("blur"),n=k("brightness"),l=k("borderColor"),o=k("borderRadius"),a=k("borderSpacing"),s=k("borderWidth"),i=k("contrast"),m=k("grayscale"),c=k("hueRotate"),d=k("invert"),f=k("gap"),N=k("gradientColorStops"),y=k("gradientColorStopPositions"),h=k("inset"),v=k("margin"),w=k("opacity"),B=k("padding"),G=k("saturate"),M=k("scale"),ae=k("sepia"),Ge=k("skew"),He=k("space"),Ue=k("translate"),he=()=>["auto","contain","none"],xe=()=>["auto","hidden","clip","visible","scroll"],ve=()=>["auto",u,e],C=()=>[u,e],je=()=>["",E,H],le=()=>["auto",$,u],Oe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],se=()=>["solid","dashed","dotted","double","none"],Ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],we=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",u],Qe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>[$,u];return{cacheSize:500,separator:":",theme:{colors:[ee],spacing:[E,H],blur:["none","",U,u],brightness:F(),borderColor:[t],borderRadius:["none","","full",U,u],borderSpacing:C(),borderWidth:je(),contrast:F(),grayscale:q(),hueRotate:F(),invert:q(),gap:C(),gradientColorStops:[t],gradientColorStopPositions:[ar,H],inset:ve(),margin:ve(),opacity:F(),padding:C(),saturate:F(),scale:F(),sepia:q(),skew:F(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[U]}],"break-after":[{"break-after":Qe()}],"break-before":[{"break-before":Qe()}],"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:[...Oe(),u]}],overflow:[{overflow:xe()}],"overflow-ce":[{"overflow-ce":xe()}],"overflow-y":[{"overflow-y":xe()}],overscroll:[{overscroll:he()}],"overscroll-ce":[{"overscroll-ce":he()}],"overscroll-y":[{"overscroll-y":he()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-ce":[{"inset-ce":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Z,u]}],basis:[{basis:ve()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",Z,u]}],"grid-cols":[{"grid-cols":[ee]}],"col-start-end":[{col:["auto",{span:["full",Z,u]},u]}],"col-start":[{"col-start":le()}],"col-end":[{"col-end":le()}],"grid-rows":[{"grid-rows":[ee]}],"row-start-end":[{row:["auto",{span:[Z,u]},u]}],"row-start":[{"row-start":le()}],"row-end":[{"row-end":le()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[f]}],"gap-ce":[{"gap-ce":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...we()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...we(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...we(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[B]}],px:[{px:[B]}],py:[{py:[B]}],ps:[{ps:[B]}],A:[{A:[B]}],pt:[{pt:[B]}],pr:[{pr:[B]}],pb:[{pb:[B]}],pl:[{pl:[B]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],ce:[{ce:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-ce":[{"space-ce":[He]}],"space-ce-reverse":["space-ce-reverse"],"space-y":[{"space-y":[He]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,e]}],"min-w":[{"min-w":[u,e,"min","max","fit"]}],"max-w":[{"max-w":[u,e,"none","full","min","max","fit","prose",{screen:[U]},U]}],h:[{h:[u,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,e,"auto","min","max","fit"]}],"font-size":[{text:["base",U,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ke]}],"font-family":[{font:[ee]}],"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",u]}],"line-clamp":[{"line-clamp":["none",$,ke]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",E,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",E,H]}],"underline-offset":[{"underline-offset":["auto",E,u]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],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",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Oe(),ir]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","ce","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",sr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","ce","bl","l","tl"]},dr]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[N]}],"gradient-via":[{via:[N]}],"gradient-to":[{to:[N]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-ce":[{"rounded-ce":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-ce":[{"border-ce":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-ce":[{"border-ce":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...se(),"hidden"]}],"divide-ce":[{"divide-ce":[s]}],"divide-ce-reverse":["divide-ce-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:se()}],"border-color":[{border:[l]}],"border-color-ce":[{"border-ce":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-ce":[{"border-ce":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...se()]}],"outline-offset":[{"outline-offset":[E,u]}],"outline-w":[{outline:[E,H]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:je()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[E,H]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",U,pr]}],"shadow-color":[{shadow:[ee]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...Ve(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ve()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[i]}],"drop-shadow":[{"drop-shadow":["","none",U,u]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[G]}],sepia:[{sepia:[ae]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[i]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[G]}],"backdrop-sepia":[{"backdrop-sepia":[ae]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-ce":[{"border-spacing-ce":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:F()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:F()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-ce":[{"scale-ce":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[Z,u]}],"translate-ce":[{"translate-ce":[Ue]}],"translate-y":[{"translate-y":[Ue]}],"skew-ce":[{"skew-ce":[Ge]}],"skew-y":[{"skew-y":[Ge]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],accent:[{accent:["auto",t]}],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",u]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","ce",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-ce":[{"scroll-ce":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-A":[{"scroll-A":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","ce","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-ce":[{"touch-pan":["ce","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",u]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[E,H,ke]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-ce","overflow-y"],overscroll:["overscroll-ce","overscroll-y"],inset:["inset-ce","inset-y","start","end","top","right","bottom","left"],"inset-ce":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-ce","gap-y"],p:["px","py","ps","A","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","ce","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-ce","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-ce":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-ce","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-ce","border-w-l"],"border-w-ce":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-ce"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-ce","border-color-l"],"border-color-ce":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-ce"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-ce","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-A","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-ce","touch-y","touch-pz"],"touch-ce":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ze=Xt(gr);function p(...t){return Ze((0,et.clsx)(t))}var Tt=z(require("next/image"));var ce=require("react/jsx-runtime"),tt=({className:t,content:e,style:r})=>(0,ce.jsx)("div",{className:p("mx-auto my-8 w-full",t),children:(0,ce.jsx)("div",{className:p("border py-3 px-6 flex items-center rounded",{"border-border bg-card":r==="info","border-error bg-error/30":r==="error","border-success bg-success/30":r==="success","border-warning bg-warning/30":r==="warning"}),children:(0,ce.jsx)(R,{content:e,enableGutter:!1,enableProse:!1})})});var de=require("prism-react-renderer");function Ae(t){let e=0,r=(o,a)=>`${o.toLowerCase().replace(/\s+/ce,"-").replace(/[^\w-]/ce,"")}-${a}`,n=t.layout.flatMap(o=>{let a=[];return"title"in o&&o.title&&a.push({text:o.title,id:r(o.title,e++),tag:"h2"}),"columns"in o&&Array.isArray(o.columns)&&o.columns.forEach(s=>{var i,m,c,d,f;if(s.title&&a.push({text:s.title,id:r(s.title,e++),tag:"h2"}),(m=(i=s.richText)==null?void 0:i.root)!=null&&m.children&&((d=(c=s.richText)==null?void 0:c.root)==null?void 0:d.children.length)===1){let N=s.richText.root.children.filter(y=>y!==void 0&&y.type==="heading");for(let y of N)y.children[0]&&a.push({text:(f=y.children[0].text)!=null?f:"",id:r(y.children[0].text,e++),tag:y.tag||"h2"})}}),a}),l=br(t.layout);return{tableOfContents:n,contentWithIds:l}}function br(t){let e=(n,l)=>`${n.toLowerCase().replace(/\s+/ce,"-").replace(/[^\w-]/ce,"")}-${l}`,r=0;return t.map(n=>(n.title&&(n.id=e(n.title,r++)),n.columns&&(n.columns=n.columns.map(l=>(l.title&&(l.id=e(l.title,r++)),l.richText&&(l.richText.root.children=l.richText.root.children.filter(o=>o!==void 0).filter(o=>o.children!==void 0&&o.children.length>0).map(o=>(o.type==="heading"&&o.children[0].text&&(o.id=e(o.children[0].text,r++)),o))),l))),n))}var rt=require("@radix-ui/react-slot"),ot=require("class-variance-authority"),nt=z(require("react")),yr=(0,ot.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),te=nt.forwardRef(({asChild:t=!1,className:e,size:r,variant:n,...l},o)=>(0,ce.jsx)(t?rt.Slot:"button",{className:p(yr({className:e,size:r,variant:n})),ref:o,...l}));te.displayName="Button";var lt=require("lucide-react");function it({code:t}){let[e,r]=(0,A.useState)("Copy");function n(){e==="Copy"&&(r(()=>"Copied!"),setTimeout(()=>{r(()=>"Copy")},1e3))}return(0,ce.jsx)("div",{className:"flex justify-end align-middle",children:(0,ce.jsxs)(te,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(t),n()},children:[(0,ce.jsx)("p",{children:e}),(0,ce.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,ce.jsx)(lt.ClipboardCopy,{})})]})})}var ct=({code:t,language:e=""})=>t?(0,ce.jsx)(de.Highlight,{code:t,language:e,theme:de.themes.vsDark,children:({getLineProps:r,getTokenProps:n,tokens:l})=>(0,ce.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-ce-auto",children:[l.map((o,a)=>(0,ce.jsxs)("div",{...r({className:"table-row",line:o}),children:[(0,ce.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:a+1}),(0,ce.jsx)("span",{className:"table-cell pl-4",children:o.map((s,i)=>(0,ce.jsx)("span",{...n({token:s})},i))})]},a)),(0,ce.jsx)(it,{code:t})]})}):null;var dt=({className:t,code:e,language:r})=>(0,ce.jsx)("div",{className:[t,"not-prose"].filter(Boolean).join(" "),children:(0,ce.jsx)(ct,{code:e,language:r})});var mt=z(require("next/image")),hr={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},pt="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=",ut=t=>{let{alt:e,fill:r,imgClassName:n,priority:l,resource:o,size:a,src:s,loading:i}=t,m,c,d=e,f=s||"";if(!f&&o&&typeof o=="object"){let{alt:h,filename:v,height:w,url:B,width:G}=o;if(w&&w>500){let M=500/w;m=G*M,c=w*M}else m=G,c=w;d=h||"",f=B||pt}let N=i||"lazy",y=a||Object.entries(hr).map(([,h])=>`(max-width: ${h}px) ${h*2}w`).join(", ");return(0,ce.jsx)("picture",{children:(0,ce.jsx)(mt.default,{alt:d||"",className:p(n),fill:r,height:r?void 0:c,placeholder:"blur",blurDataURL:pt,priority:N!=="lazy"&&l,quality:100,loading:N,sizes:y,src:f,width:r?void 0:m})})};var ft=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var gt=()=>{if(ft){let t=window.location.protocol,e=window.location.hostname,r=window.location.port;return`${t}//${e}${r?`:${r}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var bt=t=>{let{onClick:e,resource:r,videoClassName:n}=t,l=(0,A.useRef)(null);if((0,A.useEffect)(()=>{let{current:o}=l;o&&o.addEventListener("suspend",()=>{})},[]),r&&typeof r=="object"){let{filename:o}=r;return(0,ce.jsx)("video",{autoPlay:!0,className:p(n),controls:!1,loop:!0,muted:!0,onClick:e,playsInline:!0,ref:l,children:(0,ce.jsx)("source",{src:`${gt()}/media/${o}`})})}return null};var ue=t=>{var a;let{className:e,htmlElement:r="div",resource:n}=t,l=typeof n=="object"&&((a=n==null?void 0:n.mimeType)==null?void 0:a.includes("video"));return(0,ce.jsx)(r||A.Fragment,{...r!==null?{className:e}:{},children:l?(0,ce.jsx)(bt,{...t}):(0,ce.jsx)(ut,{...t})})};var j=t=>{let{className:e,enableGutter:r=!0,imgClassName:n,media:l,staticImage:o}=t;return(0,ce.jsx)("div",{className:p("h-full ",{container:r},e),children:(0,ce.jsx)(ue,{imgClassName:p("rounded-[0.8rem]",n),className:"flex justify-center",resource:l,src:o})})};var ht=t=>{let{className:e,enableGutter:r=!0,imgClassName:n,media:l,staticImage:o}=t;return(0,ce.jsx)("div",{className:p("",{container:r},e),children:(0,ce.jsx)(ue,{imgClassName:p("rounded-[0.8rem]",n),resource:l,src:o})})};var Se=({type:t="solid",iconName:e="cloud",size:r="lg",className:n})=>{let l=t.includes("fa-")?t+" ":"fa-"+t+" ",o="fa-"+e,a=n!=null?n:"",s=l+o+" fa-"+r+" "+a;return(0,ce.jsx)("i",{className:s})};var wt=z(require("next/image"));function vt(t){return t&&typeof t=="object"&&"type"in t&&"iconName"in t}function Me({image:t,icon:e,title:r,subtitle:n,content:l,statistic:o,settings:a,link:s,className:i}){var d,f;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(0,ce.jsxs)("div",{className:p("min-w-56 max-w-xl h-full flex flex-col group",t?"p-0 md:p-0":"p-8 md:p-8",a&&!t&&m[(a==null?void 0:a.card)==="default"?"solid":a==null?void 0:a.card],t&&"bg-foreground",a&&(a==null?void 0:a.card)==="outline"?"text-gray-900":"text-white",c[(d=a==null?void 0:a.width)!=null?d:"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",a&&`intersect:animate-delay-${a.order||1}00`,i),children:[t&&(0,ce.jsx)("div",{className:"relative h-1/2 lg:h-2/3 w-full mb-0",children:(0,ce.jsx)(wt.default,{src:t.url||"/placeholder.svg",alt:t.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,ce.jsxs)("div",{className:p(t?"p-4 md:p-1 md:px-8":"p-0 md:p-0","flex h-2/5 md:max-h-1/2 flex-col flex-grow"),children:[n&&(0,ce.jsx)("div",{className:"mb-4 text-primary uppercase font-light",children:n}),(0,ce.jsx)("div",{className:"flex items-center gap-4 mb-2 md:mb-0",children:(0,ce.jsx)(xr,{icon:{type:(e==null?void 0:e.type)||"fa-light",iconName:(e==null?void 0:e.icon)||"no-icon-error"},heading:r!=null?r:"",variant:(a==null?void 0:a.card)==="default"?"solid":(f=a==null?void 0:a.card)!=null?f:"solid",iconSize:(a==null?void 0:a.iconSize)||"large"})}),o&&(0,ce.jsx)("div",{className:"mb-6",children:(0,ce.jsx)("div",{className:p("text-4xl text-wrap font-bold leading-none overflow-hidden",(a==null?void 0:a.card)==="outline"||(a==null?void 0:a.card)==="light"?"text-brand-green":"text-white"),children:o})}),l&&typeof l=="object"&&(0,ce.jsx)(R,{enableGutter:!1,content:l,enableProse:!1,className:p("space-y-6",(a==null?void 0:a.card)==="outline"||(a==null?void 0:a.card)==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100",t&&"prose prose-headings:text-background prose-p:text-background")}),l&&typeof l=="string"&&(0,ce.jsx)("div",{className:p("space-y-6",(a==null?void 0:a.card)==="outline"||(a==null?void 0:a.card)==="light"?"prose text-foreground":"prose text-gray-100",t&&"prose text-background"),children:l}),s&&s.url&&(0,ce.jsx)("div",{className:"pt-6 h-full flex items-end justify-start",children:(0,ce.jsx)("a",{className:"text-accent justify-start font-semibold uppercase",href:s.url||"#",children:(s==null?void 0:s.label)||"Find out more"})}),(a==null?void 0:a.card)==="radial"&&(0,ce.jsx)("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})]})}var xr=({icon:t,heading:e,variant:r,iconSize:n,subtitle:l})=>t&&n==="small"&&t.iconName!="no-icon-error"?(0,ce.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,ce.jsx)("div",{className:p("font-semibold",r==="outline"||r==="light"?"text-primary":"text-white",n==="small"?"text-2xl":"text-3xl"),children:e}),vt(t)&&(0,ce.jsx)("div",{className:p("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",r==="outline"||r==="light"?"text-primary":"text-white",n==="small"?"-mr-2 ml-1 mt-1":""),children:(0,ce.jsx)(Se,{type:t.type,iconName:t.iconName,size:"2x"})})]}):t&&t.iconName!="no-icon-error"?(0,ce.jsxs)("div",{className:"flex flex-col gap-4",children:[vt(t)&&(0,ce.jsx)("div",{className:p("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",r==="outline"||r==="light"?"text-accent":""),children:(0,ce.jsx)(Se,{type:t.type,iconName:t.iconName,size:"4x"})}),(0,ce.jsx)("h3",{className:p("font-normal",r==="outline"||r==="light"?"text-2xl text-primary":"text-3xl"),children:e})]}):(0,ce.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,ce.jsx)("div",{className:p("font-regular",r==="outline"||r==="light"?"text-2xl text-primary":"text-3xl"),children:e})});var _=({title:t,description:e,features:r,id:n,nested:l=!1})=>(0,ce.jsxs)("section",{className:p(!l&&"container","w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[t&&(0,ce.jsx)("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl text-primary",id:n||"",children:t}),e&&typeof e=="string"&&(0,ce.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:e}),e&&typeof e=="object"&&(0,ce.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:(0,ce.jsx)(R,{content:e,enableGutter:!1})}),(0,ce.jsx)("div",{className:`grid gap-8 mt-10 md:grid-cols-${r?r.length>2?2:r.length:1} lg:grid-cols-${r?r.length>3?3:r.length:1}`,children:r&&r.map((o,a)=>{var i;let s=()=>{if(o.icon&&"type"in o.icon&&o.icon.type!=="none")return{type:o.icon.type,icon:o.icon.icon}};return(0,ce.jsx)(Me,{title:o.title||"",content:o.content||void 0,statistic:o.statistic||void 0,settings:{...o.settings,width:"auto",order:a},link:o.link?{...o.link,label:"Learn more"}:void 0,icon:(i=s())!=null?i:{type:"none",icon:null}},a)})})]});var fe=z(require("react"));var Fe=z(require("next/link")),W=t=>{let{type:e,appearance:r="inline",children:n,className:l,label:o,newTab:a,reference:s,size:i,url:m}=t,c=e==="reference"&&typeof(s==null?void 0:s.value)=="object"&&s.value.slug?`${(s==null?void 0:s.relationTo)!=="pages"?`/${s==null?void 0:s.relationTo}`:""}/${s.value.slug}`:m;if(!c)return null;let d=r==="link"?"clear":i,f=a?{rel:"noopener noreferrer",target:"_blank"}:{};return r==="inline"?(0,ce.jsxs)(Fe.default,{className:p(l),href:c||m||"",...f,children:[o&&o,n&&n]}):(0,ce.jsx)(te,{asChild:!0,className:l,size:d,variant:r,children:(0,ce.jsxs)(Fe.default,{className:p(l),href:c||m||"",...f,children:[o&&o,n&&n]})})};function oe({nodes:t}){return(0,ce.jsx)(fe.Fragment,{children:t==null?void 0:t.map((e,r)=>{if(e==null)return null;if(e.type==="text"&&e.text){let o=(0,ce.jsx)(fe.default.Fragment,{children:e.text},r);return e.format&1&&(o=(0,ce.jsx)("strong",{children:o},r)),e.format&2&&(o=(0,ce.jsx)("em",{children:o},r)),e.format&4&&(o=(0,ce.jsx)("span",{style:{textDecoration:"line-through"},children:o},r)),e.format&8&&(o=(0,ce.jsx)("span",{style:{textDecoration:"underline"},children:o},r)),e.format&16&&(o=(0,ce.jsx)("code",{children:e.text},r)),e.format&32&&(o=(0,ce.jsx)("sub",{children:o},r)),e.format&64&&(o=(0,ce.jsx)("sup",{children:o},r)),o}if(e.type==="table")return(0,ce.jsx)("table",{children:(0,ce.jsx)("tbody",{children:e.children.map((o,a)=>(0,ce.jsx)("tr",{children:o.children.map((s,i)=>(0,ce.jsx)("td",{children:oe({nodes:s.children})},i))},a))})},r);let n=o=>{if(o.children==null)return null;if((o==null?void 0:o.type)==="list"&&(o==null?void 0:o.listType)==="check")for(let a of o.children)"checked"in a&&(a!=null&&a.checked||(a.checked=!1));return oe({nodes:o.children})},l="children"in e?n(e):"";if(e.type==="block"){let o=e.fields,a=o==null?void 0:o.blockType;if(!o||!a)return null;switch(a){case"cta":return(0,ce.jsx)(K,{...o},r);case"mediaBlock":return(0,ce.jsx)(j,{className:"col-start-1 col-span-3",imgClassName:"m-0",...o,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"imageBlock":return(0,ce.jsx)(ht,{className:"col-start-1 col-span-3",imgClassName:"m-0",...o,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"banner":return(0,ce.jsx)(tt,{className:"col-start-2 mb-4",...o},r);case"code":return(0,ce.jsx)(dt,{className:"col-start-2",...o},r);case"features":return(0,ce.jsx)(_,{...o,nested:!0},r);case"reusableContentBlock":oe({nodes:o.reusableContent.layout});default:return null}}else switch(e.type){case"linebreak":return(0,ce.jsx)("br",{className:"col-start-2"},r);case"paragraph":return(0,ce.jsx)("p",{className:"col-start-2",children:l},r);case"heading":{let o=e==null?void 0:e.tag;return(0,ce.jsx)(o,{className:"col-start-2",id:(e==null?void 0:e.id)||"",children:l},r)}case"list":{let o=e==null?void 0:e.tag;return(0,ce.jsx)(o,{className:"list col-start-2",children:l},r)}case"listitem":return(e==null?void 0:e.checked)!=null?(0,ce.jsx)("li",{"aria-checked":e.checked?"true":"false",className:` ${e.checked,""}`,role:"checkbox",tabIndex:-1,value:e==null?void 0:e.value,children:l},r):(0,ce.jsx)("li",{value:e==null?void 0:e.value,children:l},r);case"quote":return(0,ce.jsx)("blockquote",{className:"col-start-2",children:l},r);case"link":{let o=e.fields;return(0,ce.jsx)(W,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:l},r)}case"autolink":{let o=e.fields;return(0,ce.jsx)(W,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:l},r)}default:return null}})})}var R=({className:t,content:e,enableGutter:r=!0,enableProse:n=!0})=>{var l;return e?(0,ce.jsx)("div",{className:p({"container ":r,"max-w-none":!r,"mx-auto prose dark:prose-invert ":n},t),children:e&&!Array.isArray(e)&&typeof e=="object"&&"root"in e&&oe({nodes:(l=e==null?void 0:e.root)==null?void 0:l.children})}):null};var K=({links:t,richText:e})=>(0,ce.jsx)("div",{className:"container",children:(0,ce.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,ce.jsx)("div",{className:"max-w-[48rem] flex items-center",children:e&&(0,ce.jsx)(R,{className:"mb-0",content:e,enableGutter:!1})}),(0,ce.jsx)("div",{className:"flex flex-col gap-8",children:(t||[]).map(({link:r},n)=>(0,ce.jsx)(W,{size:"lg",...r},n))})]})});var ge=t=>{var s;let{columns:e,theme:r}=t,n={full:"12",half:"6",oneThird:"4",twoThirds:"8"},l={none:"",line:"border border-primary p-4 rounded-lg"},o=i=>{if(i.type&&i.type==="block"&&i.fields&&(i.fields.blockType==="imageBlock"||i.fields.blockType==="mediaBlock"))return!0;if(i.root&&i.root.children){for(let m of i.root.children)if(o(m))return!0}if(i.children){for(let m of i.children)if(o(m))return!0}return!1},a=(i,m,c)=>{if(m==="none"||c==="full")return{processedRichText:i,heading:null};let d=i,f=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)}},f=i.root.children[0]),{processedRichText:d,heading:f}};return(0,ce.jsx)("div",{className:"container my-6",children:(0,ce.jsx)("div",{className:p("grid grid-cols-4 lg:grid-cols-12 gap-y-8",(s=r==null?void 0:r.settings)!=null&&s.box?"gap-ce-8":"gap-ce-16"),children:e&&e.length>0&&e.map((i,m)=>{var v,w;let{enableLink:c,link:d,richText:f,size:N}=i,{processedRichText:y,heading:h}=a(f,((v=r==null?void 0:r.settings)==null?void 0:v.box)||"none",N||"full");return(0,ce.jsxs)("div",{className:p(`col-span-4 lg:col-span-${n[N]}`,{"md:col-span-2":N!=="full"},l[N!=="full"&&!o(f)&&((w=r==null?void 0:r.settings)==null?void 0:w.box)||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${m+1}00`),children:[h&&(0,ce.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:h.children[0].text}),y&&(0,ce.jsx)(R,{content:y,enableGutter:!1,className:"rich-text"}),c&&(0,ce.jsx)(W,{...d})]},m)})})})};var Nt=t=>{let{customId:e,reusableContent:r}=t;return typeof r=="object"&&r!==null?(0,ce.jsx)(vr,{blocks:r.layout}):(0,ce.jsx)(ce.Fragment,{})},Ct={content:ge,cta:K,mediaBlock:j,imageBlock:j,features:_},vr=t=>{let{blocks:e}=t;return e&&Array.isArray(e)&&e.length>0?(0,ce.jsx)(ce.Fragment,{children:e.map((n,l)=>{var s,i;let{blockType:o}=n,a=n==null?void 0:n.theme;if(o&&o in Ct){let m=Ct[o];if(m)return(0,ce.jsxs)("div",{className:"py-6 relative",children:[(0,ce.jsx)(ze,{block:n,index:l}),(0,ce.jsx)("div",{className:p(((s=a==null?void 0:a.settings)==null?void 0:s.theme)==="dark"?"dark":((i=a==null?void 0:a.settings)==null?void 0:i.theme)==="green"?"green":""),children:(0,ce.jsx)(m,{...n})})]},l)}return null})}):null};var At=z(require("react")),Y=z(require("@radix-ui/react-collapsible")),be=require("@radix-ui/react-icons");var Pt=({title:t,richText:e})=>{let[r,n]=At.default.useState(!1);return(0,ce.jsx)("div",{className:"border rounded-lg overflow-hidden",children:(0,ce.jsxs)(Y.Root,{className:p("w-full"),open:r,onOpenChange:n,children:[(0,ce.jsxs)(Y.Trigger,{className:"flex w-full items-center justify-between bg-white px-4 py-3 text-left hover:bg-gray-50",children:[(0,ce.jsx)("h2",{className:"text-lg font-medium",children:t}),r?(0,ce.jsx)(be.ChevronUpIcon,{className:"h-6 w-6"}):(0,ce.jsx)(be.ChevronDownIcon,{className:"h-6 w-6"})]}),(0,ce.jsx)(Y.Content,{className:"overflow-hidden data-[state=closed]:animate-collapse data-[state=open]:animate-expand border-t",children:(0,ce.jsx)("div",{className:"px-4 py-3 bg-white",children:(0,ce.jsx)(R,{content:e||{},enableGutter:!1})})})]})})};var Bt={content:ge,cta:K,mediaBlock:j,collapsibleArea:Pt,imageBlock:j,features:_,reusableContentBlock:Nt},ye=t=>{let{blocks:e}=t;return e&&Array.isArray(e)&&e.length>0?(0,ce.jsx)("section",{id:"render-blocks",className:p(t.fill?"h-full w-full":""),children:e.map((n,l)=>{var s;console.log("block",n);let{blockType:o}=n,a=n==null?void 0:n.theme;if(o&&o in Bt){let i=Bt[o];if(o==="reusableContentBlock")return(0,ce.jsx)(A.Fragment,{children:(0,ce.jsx)(ye,{blocks:n.reusableContent.layout})},l);if(i)return(0,ce.jsxs)("div",{className:p("py-6 relative",t.fill&&"flex h-full items-center justify-center"),children:[(0,ce.jsx)(ze,{block:n,index:l}),(0,ce.jsx)("div",{className:p("container h-full relative",((s=a==null?void 0:a.settings)==null?void 0:s.theme)||"dark"),children:(0,ce.jsx)(i,{...n})})]},l)}return null})}):null},ze=t=>{var r,n,l,o,a;if(!("theme"in t.block))return(0,ce.jsx)("div",{className:p("absolute inset-0 w-screen h-full dark bg-background")});let e=(r=t.block)==null?void 0:r.theme;if(e.settings.background==="image"){let s={imagePosition:e.settings.imagePosition||"left",overlay:e.settings.overlay!==void 0?e.settings.overlay:!0};return(0,ce.jsxs)("div",{className:p("absolute inset-0 w-full h-full bg-background",e.settings.theme||"dark"),children:[(0,ce.jsx)(Tt.default,{src:((l=(n=e.settings)==null?void 0:n.image)==null?void 0:l.url)||"/placeholder.svg",alt:((a=(o=e.settings)==null?void 0:o.image)==null?void 0:a.alt)||"",fill:!0,className:"object-cover",priority:!0}),e.settings.overlay&&(0,ce.jsx)("div",{className:"absolute inset-0",style:{background:s.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,ce.jsx)("div",{className:p("absolute inset-0 w-screen h-full bg-background",e.settings.theme||"dark")})};var Ee=z(require("next/image"));var Le=({title:t})=>(0,ce.jsx)("header",{className:"absolute top-0 left-0 w-full py-4 px-8 flex justify-between items-center transition-colors duration-300 dark bg-background text-foreground",children:(0,ce.jsx)("div",{className:"container",children:(0,ce.jsx)("span",{className:"container text-4xl px-6",children:t})})}),De=t=>{var l,o;let{title:e,hero:r,logoImage:n}=t;return(0,ce.jsxs)("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,ce.jsx)("div",{className:"absolute inset-0",children:(0,ce.jsx)(Ee.default,{src:r.media&&r.media.url?r.media.url:"/hero.png",alt:"Background",width:r.media&&r.media.width&&(l=r.media.width)!=null?l:1920,height:r.media&&r.media.height&&(o=r.media.height)!=null?o:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),(0,ce.jsx)("div",{className:"absolute left-16 z-50 top-4 flex flex-col items-start gap-4",children:n&&(0,ce.jsx)("div",{className:"h-24",children:(0,ce.jsx)(Ee.default,{src:n.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),(0,ce.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,ce.jsxs)("div",{className:"relative pl-24 z-10 max-w-3xl",children:[(0,ce.jsx)("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:e}),r.richText&&(0,ce.jsx)(R,{content:r.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};function wr(t){var e=document.createElement("div");e.style.display="block",e.style.height=t,document.body.appendChild(e);var r=parseFloat(window.getComputedStyle(e,null).height);return e.parentNode&&e.parentNode.removeChild(e),Math.floor(r)}var X=t=>{let e=document.createElement("div");e.style.height="1mm",document.body.appendChild(e);let r=parseFloat(window.getComputedStyle(e).height);return document.body.removeChild(e),Math.floor(t/r)},kr=({page:t,layout:e="portrait",logoImage:r})=>e==="flow"?(0,ce.jsx)(It,{page:t,layout:e,logoImage:r}):(0,ce.jsx)(St,{page:t,layout:e,logoImage:r}),It=({page:t,layout:e="portrait",logoImage:r})=>{let{contentWithIds:n}=Ae(t),l=(0,A.useRef)(null),o=(0,A.useRef)(null),a=(0,A.useRef)(new ne.Previewer),s={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};(0,A.useEffect)(()=>{let c=document.getElementById("printable-content");if(c){let d=document.createElement("style");return d.textContent=`@page { size: ${X(c.offsetWidth)}mm ${X(c.offsetHeight)}mm ; margin: 0mm; width: ${X(c.offsetWidth)}mm }; .container : { max-width: ${X(c.offsetWidth)}mm; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(d),()=>{document.head.removeChild(d)}}},[e]);let i=(0,A.useCallback)(()=>{if(!o.current)return;o.current&&(o.current.innerHTML="");let c=document.getElementById("printable-content");c&&a.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${X(c.offsetWidth)}mm ${X(c.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],o.current).catch(d=>console.error("Paged.js error:",d))},[e]);(0,A.useEffect)(()=>{a.current=new ne.Previewer},[i,e]);let m=[s,...n];return(0,ce.jsxs)("div",{children:[(0,ce.jsx)("div",{className:"w-[1123px] print:w-[1123px]",children:(0,ce.jsxs)("div",{id:"printable-content",ref:l,children:[m.map((c,d)=>(0,ce.jsx)(ce.Fragment,{children:d===0?(0,ce.jsx)("section",{className:"title-page w-full h-full",children:(0,ce.jsx)(De,{hero:t.hero,title:t.title})},d):(0,ce.jsxs)("section",{className:"normal-page overflow-hidden",children:[c.blockName&&(0,ce.jsx)(Le,{title:c.blockName}),(0,ce.jsx)(ye,{blocks:[c],fill:!0})]},d)})),(0,ce.jsx)("section",{className:"normal-page",children:(0,ce.jsxs)("div",{className:`w-full py-2 px-8 flex justify-between items-center
5
- dark bg-background text-primary`,children:[(0,ce.jsxs)("div",{className:"flex px-6 items-center space-ce-2",children:[r&&(0,ce.jsx)("img",{src:r.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,ce.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,ce.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,ce.jsx)("div",{ref:o,className:"preview-container"})]})},St=({page:t,layout:e="portrait"})=>{let{contentWithIds:r}=Ae(t),n=(0,A.useRef)(null),l=(0,A.useRef)(null),o=(0,A.useRef)(new ne.Previewer),[a,s]=(0,A.useState)(0),m=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...r],c=(0,A.useCallback)(()=>{n.current&&(n.current&&(n.current.innerHTML=""),o.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",e==="landscape"?"./landscape.css":"./portrait.css"],n.current).then(d=>s(d.pageCount)).catch(d=>console.error("Paged.js error:",d)))},[e]);return(0,A.useEffect)(()=>{o.current=new ne.Previewer,c()},[c,e]),(0,A.useEffect)(()=>{let d=document.createElement("style");return d.textContent=`@page { size: A4 ${e} ; margin: 0mm; };`,document.head.appendChild(d),()=>{document.head.removeChild(d)}},[]),(0,ce.jsxs)("div",{className:"pagedjs-container",children:[(0,ce.jsx)("div",{id:"printable-content",ref:l,style:{display:"none"},className:"pagedjs-content",children:m.map((d,f)=>{var N,y;return(0,ce.jsx)(ce.Fragment,{children:f===0?(0,ce.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,ce.jsx)(De,{hero:t.hero,title:t.title})},f):(0,ce.jsxs)("section",{className:p("pagedjs-section normal-page h-[699px]",`h-[${wr("185mm")}px]`,((y=(N=d.theme)==null?void 0:N.settings)==null?void 0:y.theme)==="dark"?"dark":"light"),children:[d.blockName&&(0,ce.jsx)(Le,{title:d.blockName}),(0,ce.jsx)(ye,{blocks:[d],fill:!0})]},f)})})}),(0,ce.jsx)("div",{ref:n,className:"preview-container"})]})};0&&(module.exports={FlowPrintable,PagePrintable,Printable});
5
+ "use strict";"use client";var qt=Object.create;var ue=Object.defineProperty;var Jt=Object.getOwnPropertyDescriptor;var Kt=Object.getOwnPropertyNames;var Xt=Object.getPrototypeOf,Zt=Object.prototype.hasOwnProperty;var er=(e,t)=>{for(var r in t)ue(e,r,{get:t[r],enumerable:!0})},rt=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Kt(t))!Zt.call(e,s)&&s!==r&&ue(e,s,{get:()=>t[s],enumerable:!(a=Jt(t,s))||a.enumerable});return e};var L=(e,t,r)=>(r=e!=null?qt(Xt(e)):{},rt(t||!e||!e.__esModule?ue(r,"default",{value:e,enumerable:!0}):r,e)),tr=e=>rt(ue({},"__esModule",{value:!0}),e);var Yr={};er(Yr,{FlowPrintable:()=>_t,PagePrintable:()=>Qt,Printable:()=>$r});module.exports=tr(Yr);var A=require("react"),ce=require("pagedjs");var pt=require("clsx");var Ee="-",rr=e=>{let t=ar(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:n=>{let l=n.split(Ee);return l[0]===""&&l.length!==1&&l.shift(),nt(l,t)||or(n)},getConflictingClassGroupIds:(n,l)=>{let i=r[n]||[];return l&&a[n]?[...i,...a[n]]:i}}},nt=(e,t)=>{var n;if(e.length===0)return t.classGroupId;let r=e[0],a=t.nextPart.get(r),s=a?nt(e.slice(1),a):void 0;if(s)return s;if(t.validators.length===0)return;let o=e.join(Ee);return(n=t.validators.find(({validator:l})=>l(o)))==null?void 0:n.classGroupId},ot=/^\[(.+)\]$/,or=e=>{if(ot.test(e)){let t=ot.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ar=e=>{let{theme:t,prefix:r}=e,a={nextPart:new Map,validators:[]};return sr(Object.entries(e.classGroups),r).forEach(([o,n])=>{Fe(n,a,o,t)}),a},Fe=(e,t,r,a)=>{e.forEach(s=>{if(typeof s=="string"){let o=s===""?t:at(t,s);o.classGroupId=r;return}if(typeof s=="function"){if(nr(s)){Fe(s(a),t,r,a);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,n])=>{Fe(n,at(t,o),r,a)})})},at=(e,t)=>{let r=e;return t.split(Ee).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},nr=e=>e.isThemeGetter,sr=(e,t)=>t?e.map(([r,a])=>{let s=a.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([n,l])=>[t+n,l])):o);return[r,s]}):e,lr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map,s=(o,n)=>{r.set(o,n),t++,t>e&&(t=0,a=r,r=new Map)};return{get(o){let n=r.get(o);if(n!==void 0)return n;if((n=a.get(o))!==void 0)return s(o,n),n},set(o,n){r.has(o)?r.set(o,n):s(o,n)}}},st="!",ir=e=>{let{separator:t,experimentalParseClassName:r}=e,a=t.length===1,s=t[0],o=t.length,n=l=>{let i=[],m=0,d=0,p;for(let w=0;w<l.length;w++){let C=l[w];if(m===0){if(C===s&&(a||l.slice(w,w+o)===t)){i.push(l.slice(d,w)),d=w+o;continue}if(C==="/"){p=w;continue}}C==="["?m++:C==="]"&&m--}let f=i.length===0?l:l.substring(d),P=f.startsWith(st),y=P?f.substring(1):f,h=p&&p>d?p-d:void 0;return{modifiers:i,hasImportantModifier:P,baseClassName:y,maybePostfixModifierPosition:h}};return r?l=>r({className:l,parseClassName:n}):n},cr=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(a=>{a[0]==="["?(t.push(...r.sort(),a),r=[]):r.push(a)}),t.push(...r.sort()),t},dr=e=>({cache:lr(e.cacheSize),parseClassName:ir(e),...rr(e)}),pr=/\s+/,mr=(e,t)=>{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:s}=t,o=[],n=e.trim().split(pr),l="";for(let i=n.length-1;i>=0;i-=1){let m=n[i],{modifiers:d,hasImportantModifier:p,baseClassName:f,maybePostfixModifierPosition:P}=r(m),y=!!P,h=a(y?f.substring(0,P):f);if(!h){if(!y){l=m+(l.length>0?" "+l:l);continue}if(h=a(f),!h){l=m+(l.length>0?" "+l:l);continue}y=!1}let w=cr(d).join(":"),C=p?w+st:w,R=C+h;if(o.includes(R))continue;o.push(R);let j=s(h,y);for(let z=0;z<j.length;++z){let de=j[z];o.push(C+de)}l=m+(l.length>0?" "+l:l)}return l};function ur(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=lt(t))&&(a&&(a+=" "),a+=r);return a}var lt=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=lt(e[a]))&&(r&&(r+=" "),r+=t);return r};function fr(e,...t){let r,a,s,o=n;function n(i){let m=t.reduce((d,p)=>p(d),e());return r=dr(m),a=r.cache.get,s=r.cache.set,o=l,l(i)}function l(i){let m=a(i);if(m)return m;let d=mr(i,r);return s(i,d),d}return function(){return o(ur.apply(null,arguments))}}var k=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},it=/^\[(?:([a-z-]+):)?(.+)\]$/i,gr=/^\d+\/\d+$/,br=new Set(["px","full","screen"]),yr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hr=/\d+(%|px|r?em|[sdl]?fe([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|fe|min|max))|\fe(calc|min|max|clamp)\(.+\)|^0$/,xr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,vr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)fe-?((\d+)?\.?(\d+)[a-z]+|0)/,wr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,U=e=>J(e)||br.has(e)||gr.test(e),O=e=>K(e,"length",Rr),J=e=>!!e&&!Number.isNaN(Number(e)),Me=e=>K(e,"number",J),ne=e=>!!e&&Number.isInteger(Number(e)),Cr=e=>e.endsWith("%")&&J(e.slice(0,-1)),u=e=>it.test(e),V=e=>yr.test(e),kr=new Set(["length","size","percentage"]),Nr=e=>K(e,kr,ct),Pr=e=>K(e,"position",ct),Br=new Set(["image","url"]),Ar=e=>K(e,Br,Sr),Tr=e=>K(e,"",Ir),se=()=>!0,K=(e,t,r)=>{let a=it.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):r(a[2]):!1},Rr=e=>hr.test(e)&&!xr.test(e),ct=()=>!1,Ir=e=>vr.test(e),Sr=e=>wr.test(e);var Mr=()=>{let e=k("colors"),t=k("spacing"),r=k("blur"),a=k("brightness"),s=k("borderColor"),o=k("borderRadius"),n=k("borderSpacing"),l=k("borderWidth"),i=k("contrast"),m=k("grayscale"),d=k("hueRotate"),p=k("invert"),f=k("gap"),P=k("gradientColorStops"),y=k("gradientColorStopPositions"),h=k("inset"),w=k("margin"),C=k("opacity"),R=k("padding"),j=k("saturate"),z=k("scale"),de=k("sepia"),qe=k("skew"),Je=k("space"),Ke=k("translate"),Te=()=>["auto","contain","none"],Re=()=>["auto","hidden","clip","visible","scroll"],Ie=()=>["auto",u,t],N=()=>[u,t],Xe=()=>["",U,O],pe=()=>["auto",J,u],Ze=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],me=()=>["solid","dashed","dotted","double","none"],et=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Se=()=>["start","end","center","between","around","evenly","stretch"],ae=()=>["","0",u],tt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>[J,u];return{cacheSize:500,separator:":",theme:{colors:[se],spacing:[U,O],blur:["none","",V,u],brightness:D(),borderColor:[e],borderRadius:["none","","full",V,u],borderSpacing:N(),borderWidth:Xe(),contrast:D(),grayscale:ae(),hueRotate:D(),invert:ae(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[Cr,O],inset:Ie(),margin:Ie(),opacity:D(),padding:N(),saturate:D(),scale:D(),sepia:ae(),skew:D(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[V]}],"break-after":[{"break-after":tt()}],"break-before":[{"break-before":tt()}],"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:[...Ze(),u]}],overflow:[{overflow:Re()}],"overflow-fe":[{"overflow-fe":Re()}],"overflow-y":[{"overflow-y":Re()}],overscroll:[{overscroll:Te()}],"overscroll-fe":[{"overscroll-fe":Te()}],"overscroll-y":[{"overscroll-y":Te()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-fe":[{"inset-fe":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ne,u]}],basis:[{basis:Ie()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:ae()}],shrink:[{shrink:ae()}],order:[{order:["first","last","none",ne,u]}],"grid-cols":[{"grid-cols":[se]}],"col-start-end":[{col:["auto",{span:["full",ne,u]},u]}],"col-start":[{"col-start":pe()}],"col-end":[{"col-end":pe()}],"grid-rows":[{"grid-rows":[se]}],"row-start-end":[{row:["auto",{span:[ne,u]},u]}],"row-start":[{"row-start":pe()}],"row-end":[{"row-end":pe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[f]}],"gap-fe":[{"gap-fe":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...Se()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Se(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Se(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[R]}],px:[{px:[R]}],py:[{py:[R]}],ps:[{ps:[R]}],pe:[{pe:[R]}],pt:[{pt:[R]}],pr:[{pr:[R]}],pb:[{pb:[R]}],pl:[{pl:[R]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-fe":[{"space-fe":[Je]}],"space-fe-reverse":["space-fe-reverse"],"space-y":[{"space-y":[Je]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,t]}],"min-w":[{"min-w":[u,t,"min","max","fit"]}],"max-w":[{"max-w":[u,t,"none","full","min","max","fit","prose",{screen:[V]},V]}],h:[{h:[u,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,t,"auto","min","max","fit"]}],"font-size":[{text:["base",V,O]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Me]}],"font-family":[{font:[se]}],"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",u]}],"line-clamp":[{"line-clamp":["none",J,Me]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",U,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...me(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",U,O]}],"underline-offset":[{"underline-offset":["auto",U,u]}],"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:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],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",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ze(),Pr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","fe","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Nr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","fe","bl","l","tl"]},Ar]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[P]}],"gradient-via":[{via:[P]}],"gradient-to":[{to:[P]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-fe":[{"rounded-fe":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-fe":[{"rounded-fe":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-fe":[{"border-fe":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-fe":[{"border-fe":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...me(),"hidden"]}],"divide-fe":[{"divide-fe":[l]}],"divide-fe-reverse":["divide-fe-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:me()}],"border-color":[{border:[s]}],"border-color-fe":[{"border-fe":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-fe":[{"border-fe":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...me()]}],"outline-offset":[{"outline-offset":[U,u]}],"outline-w":[{outline:[U,O]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Xe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[U,O]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",V,Tr]}],"shadow-color":[{shadow:[se]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...et(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":et()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[i]}],"drop-shadow":[{"drop-shadow":["","none",V,u]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[j]}],sepia:[{sepia:[de]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[i]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[de]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-fe":[{"border-spacing-fe":[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",u]}],duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-fe":[{"scale-fe":[z]}],"scale-y":[{"scale-y":[z]}],rotate:[{rotate:[ne,u]}],"translate-fe":[{"translate-fe":[Ke]}],"translate-y":[{"translate-y":[Ke]}],"skew-fe":[{"skew-fe":[qe]}],"skew-y":[{"skew-y":[qe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],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",u]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","fe",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","fe","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-fe":[{"touch-pan":["fe","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",u]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[U,O,Me]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-fe","overflow-y"],overscroll:["overscroll-fe","overscroll-y"],inset:["inset-fe","inset-y","start","end","top","right","bottom","left"],"inset-fe":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-fe","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-fe","rounded-l","rounded-ss","rounded-se","rounded-fe","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-fe"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-fe":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-fe","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-fe","border-w-l"],"border-w-fe":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-fe"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-fe","border-color-l"],"border-color-fe":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-fe"],"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-fe","touch-y","touch-pz"],"touch-fe":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var dt=fr(Mr);function c(...e){return dt((0,pt.clsx)(e))}var Wt=L(require("next/image"));var fe=require("react/jsx-runtime"),mt=({className:e,content:t,style:r})=>(0,fe.jsx)("div",{className:c("mx-auto my-8 w-full",e),children:(0,fe.jsx)("div",{className:c("border py-3 px-6 flex items-center rounded",{"border-border bg-card":r==="info","border-error bg-error/30":r==="error","border-success bg-success/30":r==="success","border-warning bg-warning/30":r==="warning"}),children:(0,fe.jsx)(I,{content:t,enableGutter:!1,enableProse:!1})})});var ge=require("prism-react-renderer");function ze(e){let t=0,r=(o,n)=>`${o.toLowerCase().replace(/\s+/fe,"-").replace(/[^\w-]/fe,"")}-${n}`,a=e.layout.flatMap(o=>{let n=[];return"title"in o&&o.title&&n.push({text:o.title,id:r(o.title,t++),tag:"h2"}),"columns"in o&&Array.isArray(o.columns)&&o.columns.forEach(l=>{var i,m,d,p,f;if(l.title&&n.push({text:l.title,id:r(l.title,t++),tag:"h2"}),(m=(i=l.richText)==null?void 0:i.root)!=null&&m.children&&((p=(d=l.richText)==null?void 0:d.root)==null?void 0:p.children.length)===1){let P=l.richText.root.children.filter(y=>y!==void 0&&y.type==="heading");for(let y of P)y.children[0]&&n.push({text:(f=y.children[0].text)!=null?f:"",id:r(y.children[0].text,t++),tag:y.tag||"h2"})}}),n}),s=Fr(e.layout);return{tableOfContents:a,contentWithIds:s}}function Fr(e){let t=(a,s)=>`${a.toLowerCase().replace(/\s+/fe,"-").replace(/[^\w-]/fe,"")}-${s}`,r=0;return e.map(a=>(a.title&&(a.id=t(a.title,r++)),a.columns&&(a.columns=a.columns.map(s=>(s.title&&(s.id=t(s.title,r++)),s.richText&&(s.richText.root.children=s.richText.root.children.filter(o=>o!==void 0).filter(o=>o.children!==void 0&&o.children.length>0).map(o=>(o.type==="heading"&&o.children[0].text&&(o.id=t(o.children[0].text,r++)),o))),s))),a))}var ut=require("@radix-ui/react-slot"),ft=require("class-variance-authority"),gt=L(require("react")),Er=(0,ft.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),W=gt.forwardRef(({asChild:e=!1,className:t,size:r,variant:a,...s},o)=>(0,fe.jsx)(e?ut.Slot:"button",{className:c(Er({className:t,size:r,variant:a})),ref:o,...s}));W.displayName="Button";var yt=require("lucide-react");function xt({code:e}){let[t,r]=(0,A.useState)("Copy");function a(){t==="Copy"&&(r(()=>"Copied!"),setTimeout(()=>{r(()=>"Copy")},1e3))}return(0,fe.jsx)("div",{className:"flex justify-end align-middle",children:(0,fe.jsxs)(W,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),a()},children:[(0,fe.jsx)("p",{children:t}),(0,fe.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,fe.jsx)(yt.ClipboardCopy,{})})]})})}var vt=({code:e,language:t=""})=>e?(0,fe.jsx)(ge.Highlight,{code:e,language:t,theme:ge.themes.vsDark,children:({getLineProps:r,getTokenProps:a,tokens:s})=>(0,fe.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-fe-auto",children:[s.map((o,n)=>(0,fe.jsxs)("div",{...r({className:"table-row",line:o}),children:[(0,fe.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:n+1}),(0,fe.jsx)("span",{className:"table-cell pl-4",children:o.map((l,i)=>(0,fe.jsx)("span",{...a({token:l})},i))})]},n)),(0,fe.jsx)(xt,{code:e})]})}):null;var wt=({className:e,code:t,language:r})=>(0,fe.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,fe.jsx)(vt,{code:t,language:r})});var kt=L(require("next/image")),zr={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},Ct="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=",Nt=e=>{let{alt:t,fill:r,imgClassName:a,priority:s,resource:o,size:n,src:l,loading:i}=e,m,d,p=t,f=l||"";if(!f&&o&&typeof o=="object"){let{alt:h,filename:w,height:C,url:R,width:j}=o;if(C&&C>500){let z=500/C;m=j*z,d=C*z}else m=j,d=C;p=h||"",f=R||Ct}let P=i||"lazy",y=n||Object.entries(zr).map(([,h])=>`(max-width: ${h}px) ${h*2}w`).join(", ");return(0,fe.jsx)("picture",{children:(0,fe.jsx)(kt.default,{alt:p||"",className:c(a),fill:r,height:r?void 0:d,placeholder:"blur",blurDataURL:Ct,priority:P!=="lazy"&&s,quality:100,loading:P,sizes:y,src:f,width:r?void 0:m})})};var Pt=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var Bt=()=>{if(Pt){let e=window.location.protocol,t=window.location.hostname,r=window.location.port;return`${e}//${t}${r?`:${r}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var At=e=>{let{onClick:t,resource:r,videoClassName:a}=e,s=(0,A.useRef)(null);if((0,A.useEffect)(()=>{let{current:o}=s;o&&o.addEventListener("suspend",()=>{})},[]),r&&typeof r=="object"){let{filename:o}=r;return(0,fe.jsx)("video",{autoPlay:!0,className:c(a),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:s,children:(0,fe.jsx)("source",{src:`${Bt()}/media/${o}`})})}return null};var he=e=>{var n;let{className:t,htmlElement:r="div",resource:a}=e,s=typeof a=="object"&&((n=a==null?void 0:a.mimeType)==null?void 0:n.includes("video"));return(0,fe.jsx)(r||A.Fragment,{...r!==null?{className:t}:{},children:s?(0,fe.jsx)(At,{...e}):(0,fe.jsx)(Nt,{...e})})};var $=e=>{let{className:t,enableGutter:r=!0,imgClassName:a,media:s,staticImage:o}=e;return(0,fe.jsx)("div",{className:c("h-full ",{container:r},t),children:(0,fe.jsx)(he,{imgClassName:c("rounded-[0.8rem]",a),className:"flex justify-center",resource:s,src:o})})};var Rt=e=>{let{className:t,enableGutter:r=!0,imgClassName:a,media:s,staticImage:o}=e;return(0,fe.jsx)("div",{className:c("",{container:r},t),children:(0,fe.jsx)(he,{imgClassName:c("rounded-[0.8rem]",a),resource:s,src:o})})};var je=({type:e="solid",iconName:t="cloud",size:r="lg",className:a})=>{let s=e.includes("fa-")?e+" ":"fa-"+e+" ",o="fa-"+t,n=a!=null?a:"",l=s+o+" fa-"+r+" "+n;return(0,fe.jsx)("i",{className:l})};var Mt=L(require("next/image"));function St(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Oe({image:e,icon:t,title:r,subtitle:a,content:s,statistic:o,settings:n,link:l,className:i}){var p,f;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(0,fe.jsxs)("div",{className:c("min-w-56 max-w-xl h-full flex flex-col group",e?"p-0 md:p-0":"p-8 md:p-8",n&&!e&&m[(n==null?void 0:n.card)==="default"?"solid":n==null?void 0:n.card],e&&"bg-foreground",n&&(n==null?void 0:n.card)==="outline"?"text-gray-900":"text-white",d[(p=n==null?void 0:n.width)!=null?p:"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",n&&`intersect:animate-delay-${n.order||1}00`,i),children:[e&&(0,fe.jsx)("div",{className:"relative h-1/2 lg:h-2/3 w-full mb-0",children:(0,fe.jsx)(Mt.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,fe.jsxs)("div",{className:c(e?"p-4 md:p-1 md:px-8":"p-0 md:p-0","flex h-2/5 md:max-h-1/2 flex-col flex-grow"),children:[a&&(0,fe.jsx)("div",{className:"mb-4 text-primary uppercase font-light",children:a}),(0,fe.jsx)("div",{className:"flex items-center gap-4 mb-2 md:mb-0",children:(0,fe.jsx)(Lr,{icon:{type:(t==null?void 0:t.type)||"fa-light",iconName:(t==null?void 0:t.icon)||"no-icon-error"},heading:r!=null?r:"",variant:(n==null?void 0:n.card)==="default"?"solid":(f=n==null?void 0:n.card)!=null?f:"solid",iconSize:(n==null?void 0:n.iconSize)||"large"})}),o&&(0,fe.jsx)("div",{className:"mb-6",children:(0,fe.jsx)("div",{className:c("text-4xl text-wrap font-bold leading-none overflow-hidden",(n==null?void 0:n.card)==="outline"||(n==null?void 0:n.card)==="light"?"text-brand-green":"text-white"),children:o})}),s&&typeof s=="object"&&(0,fe.jsx)(I,{enableGutter:!1,content:s,enableProse:!1,className:c("space-y-6",(n==null?void 0:n.card)==="outline"||(n==null?void 0:n.card)==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100",e&&"prose prose-headings:text-background prose-p:text-background")}),s&&typeof s=="string"&&(0,fe.jsx)("div",{className:c("space-y-6",(n==null?void 0:n.card)==="outline"||(n==null?void 0:n.card)==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:s}),l&&l.url&&(0,fe.jsx)("div",{className:"pt-6 h-full flex items-end justify-start",children:(0,fe.jsx)("a",{className:"text-accent justify-start font-semibold uppercase",href:l.url||"#",children:(l==null?void 0:l.label)||"Find out more"})}),(n==null?void 0:n.card)==="radial"&&(0,fe.jsx)("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})]})}var Lr=({icon:e,heading:t,variant:r,iconSize:a,subtitle:s})=>e&&a==="small"&&e.iconName!="no-icon-error"?(0,fe.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,fe.jsx)("div",{className:c("font-semibold",r==="outline"||r==="light"?"text-primary":"text-white",a==="small"?"text-2xl":"text-3xl"),children:t}),St(e)&&(0,fe.jsx)("div",{className:c("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",r==="outline"||r==="light"?"text-primary":"text-white",a==="small"?"-mr-2 ml-1 mt-1":""),children:(0,fe.jsx)(je,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="no-icon-error"?(0,fe.jsxs)("div",{className:"flex flex-col gap-4",children:[St(e)&&(0,fe.jsx)("div",{className:c("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",r==="outline"||r==="light"?"text-accent":""),children:(0,fe.jsx)(je,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,fe.jsx)("h3",{className:c("font-normal",r==="outline"||r==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):(0,fe.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,fe.jsx)("div",{className:c("font-regular",r==="outline"||r==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var X=({title:e,description:t,features:r,id:a,nested:s=!1})=>(0,fe.jsxs)("section",{className:c(s?"w-full":"container",""),children:[(0,fe.jsxs)("div",{className:"prose prose:max-w-none",children:[e&&(0,fe.jsx)("h2",{className:"mb-6 mt-0 text-primary",id:a||"",children:e}),t&&typeof t=="string"&&(0,fe.jsx)("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&(0,fe.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:(0,fe.jsx)(I,{content:t,enableGutter:!1})})]}),(0,fe.jsx)("div",{className:`grid gap-8 mt-10 md:grid-cols-${r?r.length>2?2:r.length:1} lg:grid-cols-${r?r.length>3?3:r.length:1}`,children:r&&r.map((o,n)=>{var i;let l=()=>{if(o.icon&&"type"in o.icon&&o.icon.type!=="none")return{type:o.icon.type,icon:o.icon.icon}};return(0,fe.jsx)(Oe,{title:o.title||"",content:o.content||void 0,statistic:o.statistic||void 0,settings:{...o.settings,width:"auto",order:n},link:o.link?{...o.link,label:"Learn more"}:void 0,icon:(i=l())!=null?i:{type:"none",icon:null}},n)})})]});var xe=L(require("react"));var Ve=L(require("next/link")),Q=e=>{let{type:t,appearance:r="inline",children:a,className:s,label:o,newTab:n,reference:l,size:i,url:m}=e,d=t==="reference"&&typeof(l==null?void 0:l.value)=="object"&&l.value.slug?`${(l==null?void 0:l.relationTo)!=="pages"?`/${l==null?void 0:l.relationTo}`:""}/${l.value.slug}`:m;if(!d)return null;let p=r==="link"?"clear":i,f=n?{rel:"noopener noreferrer",target:"_blank"}:{};return r==="inline"?(0,fe.jsxs)(Ve.default,{className:c(s),href:d||m||"",...f,children:[o&&o,a&&a]}):(0,fe.jsx)(W,{asChild:!0,className:s,size:p,variant:r,children:(0,fe.jsxs)(Ve.default,{className:c(s),href:d||m||"",...f,children:[o&&o,a&&a]})})};function ie({nodes:e}){return(0,fe.jsx)(xe.Fragment,{children:e==null?void 0:e.map((t,r)=>{if(t==null)return null;if(t.type==="text"&&t.text){let o=(0,fe.jsx)(xe.default.Fragment,{children:t.text},r);return t.format&1&&(o=(0,fe.jsx)("strong",{children:o},r)),t.format&2&&(o=(0,fe.jsx)("em",{children:o},r)),t.format&4&&(o=(0,fe.jsx)("span",{style:{textDecoration:"line-through"},children:o},r)),t.format&8&&(o=(0,fe.jsx)("span",{style:{textDecoration:"underline"},children:o},r)),t.format&16&&(o=(0,fe.jsx)("code",{children:t.text},r)),t.format&32&&(o=(0,fe.jsx)("sub",{children:o},r)),t.format&64&&(o=(0,fe.jsx)("sup",{children:o},r)),o}if(t.type==="table")return(0,fe.jsx)("table",{children:(0,fe.jsx)("tbody",{children:t.children.map((o,n)=>(0,fe.jsx)("tr",{children:o.children.map((l,i)=>(0,fe.jsx)("td",{children:ie({nodes:l.children})},i))},n))})},r);let a=o=>{if(o.children==null)return null;if((o==null?void 0:o.type)==="list"&&(o==null?void 0:o.listType)==="check")for(let n of o.children)"checked"in n&&(n!=null&&n.checked||(n.checked=!1));return ie({nodes:o.children})},s="children"in t?a(t):"";if(t.type==="block"){let o=t.fields,n=o==null?void 0:o.blockType;if(!o||!n)return null;switch(n){case"cta":return(0,fe.jsx)(Z,{...o},r);case"mediaBlock":return(0,fe.jsx)($,{className:"col-start-1 col-span-3",imgClassName:"m-0",...o,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"imageBlock":return(0,fe.jsx)(Rt,{className:"col-start-1 col-span-3",imgClassName:"m-0",...o,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"banner":return(0,fe.jsx)(mt,{className:"col-start-2 mb-4",...o},r);case"code":return(0,fe.jsx)(wt,{className:"col-start-2",...o},r);case"features":return(0,fe.jsx)(X,{...o,nested:!0},r);case"reusableContentBlock":ie({nodes:o.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,fe.jsx)("br",{className:"col-start-2"},r);case"paragraph":return(0,fe.jsx)("p",{className:"col-start-2",children:s},r);case"heading":{let o=t==null?void 0:t.tag;return(0,fe.jsx)(o,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:s},r)}case"list":{let o=t==null?void 0:t.tag;return(0,fe.jsx)(o,{className:"list col-start-2",children:s},r)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,fe.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:s},r):(0,fe.jsx)("li",{value:t==null?void 0:t.value,children:s},r);case"quote":return(0,fe.jsx)("blockquote",{className:"col-start-2",children:s},r);case"link":{let o=t.fields;return(0,fe.jsx)(Q,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:s},r)}case"autolink":{let o=t.fields;return(0,fe.jsx)(Q,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:s},r)}default:return null}})})}var I=({className:e,content:t,enableGutter:r=!0,enableProse:a=!0})=>{var s;return t?(0,fe.jsx)("div",{className:c({"container ":r,"max-w-none":!r,"mx-auto prose dark:prose-invert ":a},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&ie({nodes:(s=t==null?void 0:t.root)==null?void 0:s.children})}):null};function ve({className:e}){return c("flex items-center min-h-[3.5rem] md:min-h-[3.75rem] w-full rounded-5 px-4 md:px-5 py-2"," bg-transparent text-accent-800 placeholder:text-accent-800 dark:text-body dark:placeholder:text-body"," border border-solid border-accent-900 border-opacity-20 dark:border-opacity-20 dark:border-accent-200"," focus:border-accent-900 focus:ring-0 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0","transition-all duration-300",e)}function Gr({className:e,...t}){return(0,fe.jsx)("input",{...t,className:ve({className:e})})}function we({icon:e,...t}){return(0,fe.jsxs)("div",{className:"relative w-full",children:[(0,fe.jsx)(Gr,{...t}),e&&(0,fe.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-y-1/2 text-accent",children:e})]})}function Dr({className:e,...t}){return(0,fe.jsx)("textarea",{...t,className:c(ve({}),"resize-none md:min-h-[130px]",e)})}function Et({icon:e,...t}){return(0,fe.jsxs)("div",{className:"relative w-full",children:[(0,fe.jsx)(Dr,{...t}),e&&(0,fe.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var Lt=require("formik"),Gt=require("react-icons/fa6"),q=L(require("yup"));async function zt(e){let{name:t,email:r,subject:a,message:s}=e,o=process.env.TEAMS_WEBHOOK_URL;if(!o)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:`${r}`,wrap:!0},{type:"TextBlock",text:`${a}`,wrap:!0}]}]},{type:"TextBlock",text:`${s}`,wrap:!0}]}}]};try{let l=await fetch(o,{method:"POST",mode:"no-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!l.ok)throw console.error(l),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(l){return console.error(l),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var $e=require("sonner"),F={tooShort:"Must A at least ${min} characters",tooLong:"Must A at most ${max} characters",required:"This field is required",email:"Invalid email format"},Ur=q.object().shape({name:q.string().min(2,F.tooShort).max(50,F.tooLong).required(F.required),email:q.string().email(F.email).required(F.required),subject:q.string().min(2,F.tooShort).max(50,F.tooLong).required(F.required),message:q.string().min(2,F.tooShort).max(300,F.tooLong).required(F.required)}),Ce=c("!pr-[44px] text-foreground"),ke=c("!border-red-600 border"),Ne=c("sr-only");function Dt(){return(0,fe.jsx)(Lt.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:Ur,onSubmit:async(e,{resetForm:t})=>{let r=await zt(e);r.data===null?$e.toast.error(r.message):($e.toast.success(r.message),t())},children:({errors:e,touched:t,values:r,handleChange:a,handleBlur:s,isSubmitting:o,handleSubmit:n})=>(0,fe.jsxs)("form",{onSubmit:n,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,fe.jsxs)("div",{children:[(0,fe.jsx)(we,{placeholder:"Your Name",type:"text",name:"name",value:r.name,onChange:a,onBlur:s,disabled:o,icon:(0,fe.jsx)(Gt.FaUser,{className:"text-primary"}),className:c(Ce,e.name&&t.name&&ke)}),e.name&&t.name&&(0,fe.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:Ne,children:e.name})]}),(0,fe.jsxs)("div",{children:[(0,fe.jsx)(we,{placeholder:"Your Email",type:"email",name:"email",value:r.email,onChange:a,onBlur:s,disabled:o,icon:(0,fe.jsx)(Hr,{}),className:c(Ce,e.email&&t.email&&ke)}),e.email&&t.email&&(0,fe.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:Ne,children:e.email})]}),(0,fe.jsxs)("div",{className:"lg:col-span-2",children:[(0,fe.jsx)(we,{placeholder:"Subject",type:"text",name:"subject",value:r.subject,onChange:a,onBlur:s,disabled:o,className:c(Ce,e.subject&&t.subject&&ke)}),e.subject&&t.subject&&(0,fe.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:Ne,children:e.subject})]}),(0,fe.jsxs)("div",{className:"lg:col-span-2",children:[(0,fe.jsx)(Et,{placeholder:"Write Message...",name:"message",value:r.message,onChange:a,onBlur:s,disabled:o,icon:(0,fe.jsx)(jr,{}),className:c(Ce,e.message&&t.message&&ke)}),e.message&&t.message&&(0,fe.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:Ne,children:e.message})]}),(0,fe.jsx)("div",{className:"lg:col-span-2 light",children:(0,fe.jsx)(W,{type:"submit",className:"w-full outline rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:o,children:(0,fe.jsx)("span",{children:"Send"})})})]})})}function Hr(){return(0,fe.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,fe.jsx)("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function jr(){return(0,fe.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,fe.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}var Z=({links:e,richText:t})=>{let[r,a]=(0,A.useState)(!1),s=()=>a(!0),o=()=>a(!1),n=l=>{l.target===l.currentTarget&&o()};return(0,fe.jsxs)("div",{className:"relative isolate overflow-hidden bg-black",children:[(0,fe.jsx)("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:(0,fe.jsxs)("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&(0,fe.jsx)(I,{className:"mb-0 prose-p:text-white text-white",content:t,enableGutter:!1}),(0,fe.jsx)("div",{className:"mt-10 flex items-center justify-center gap-fe-6",children:(0,fe.jsx)("div",{className:"flex flex-col gap-8 text-white",children:(e||[]).map(({link:l},i)=>(l==null?void 0:l.url)==="/contact"?(0,fe.jsx)("div",{onClick:s,className:"rounded-full px-3.5 py-2.5 border border-accent text-white no-underline cursor-pointer",children:l.label},i):(0,fe.jsx)(Q,{size:"lg",className:"rounded-full px-3.5 py-2.5 border border-accent text-white no-underline",...l},i))})})]})}),r&&(0,fe.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:n,children:(0,fe.jsxs)("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg relative",children:[(0,fe.jsx)("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:o,children:"\u2715"}),(0,fe.jsx)(Dt,{})," "]})}),(0,fe.jsxs)("svg",{viewBox:"0 0 1024 1024","aria-hidden":"true",className:"absolute left-1/2 top-1/2 -z-10 size-[64rem] -translate-fe-1/2 [mask-image:radial-gradient(closest-side,white,transparent)]",children:[(0,fe.jsx)("circle",{r:512,cx:512,cy:512,fill:"url(#8d958450-c69f-4251-94bc-4e091a323369)",fillOpacity:"0.7"}),(0,fe.jsx)("defs",{children:(0,fe.jsxs)("radialGradient",{id:"8d958450-c69f-4251-94bc-4e091a323369",children:[(0,fe.jsx)("stop",{stopColor:"#22B2AA"}),(0,fe.jsx)("stop",{offset:1,stopColor:"#22B2AA"})]})})]})]})};var Pe=e=>{var l;let{columns:t,theme:r}=e,a={full:"12",half:"6",oneThird:"4",twoThirds:"8"},s={none:"",line:"border border-primary p-4 rounded-lg"},o=i=>{if(i.type&&i.type==="block"&&i.fields&&(i.fields.blockType==="imageBlock"||i.fields.blockType==="mediaBlock"))return!0;if(i.root&&i.root.children){for(let m of i.root.children)if(o(m))return!0}if(i.children){for(let m of i.children)if(o(m))return!0}return!1},n=(i,m,d)=>{if(m==="none"||d==="full")return{processedRichText:i,heading:null};let p=i,f=null;return i&&i.root&&i.root.children&&i.root.children[0].tag==="h2"&&(p={...i,root:{...i.root,children:i.root.children.slice(1)}},f=i.root.children[0]),{processedRichText:p,heading:f}};return(0,fe.jsx)("div",{className:"container my-6",children:(0,fe.jsx)("div",{className:c("grid grid-cols-4 lg:grid-cols-12 gap-y-8",(l=r==null?void 0:r.settings)!=null&&l.box?"gap-fe-8":"gap-fe-16"),children:t&&t.length>0&&t.map((i,m)=>{var w,C;let{enableLink:d,link:p,richText:f,size:P}=i,{processedRichText:y,heading:h}=n(f,((w=r==null?void 0:r.settings)==null?void 0:w.box)||"none",P||"full");return(0,fe.jsxs)("div",{className:c(`col-span-4 lg:col-span-${a[P]}`,{"md:col-span-2":P!=="full"},s[P!=="full"&&!o(f)&&((C=r==null?void 0:r.settings)==null?void 0:C.box)||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${m+1}00`),children:[h&&(0,fe.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:h.children[0].text}),y&&(0,fe.jsx)(I,{content:y,enableGutter:!1,className:"rich-text"}),d&&(0,fe.jsx)(Q,{...p})]},m)})})})};var jt=e=>{let{customId:t,reusableContent:r}=e;return typeof r=="object"&&r!==null?(0,fe.jsx)(Or,{blocks:r.layout}):(0,fe.jsx)(fe.Fragment,{})},Ht={content:Pe,cta:Z,mediaBlock:$,imageBlock:$,features:X},Or=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,fe.jsx)(fe.Fragment,{children:t.map((a,s)=>{var l,i;let{blockType:o}=a,n=a==null?void 0:a.theme;if(o&&o in Ht){let m=Ht[o];if(m)return(0,fe.jsxs)("div",{className:"py-6 relative",children:[(0,fe.jsx)(Ye,{block:a,index:s}),(0,fe.jsx)("div",{className:c(((l=n==null?void 0:n.settings)==null?void 0:l.theme)==="dark"?"dark":((i=n==null?void 0:n.settings)==null?void 0:i.theme)==="green"?"green":""),children:(0,fe.jsx)(m,{...a})})]},s)}return null})}):null};var Ot=L(require("react")),re=L(require("@radix-ui/react-collapsible")),Be=require("@radix-ui/react-icons");var Vt=({title:e,richText:t})=>{let[r,a]=Ot.default.useState(!1);return(0,fe.jsx)("div",{className:"border rounded-lg overflow-hidden",children:(0,fe.jsxs)(re.Root,{className:c("w-full"),open:r,onOpenChange:a,children:[(0,fe.jsxs)(re.Trigger,{className:"flex w-full items-center justify-between bg-white px-4 py-3 text-left hover:bg-gray-50",children:[(0,fe.jsx)("h2",{className:"text-lg font-medium",children:e}),r?(0,fe.jsx)(Be.ChevronUpIcon,{className:"h-6 w-6"}):(0,fe.jsx)(Be.ChevronDownIcon,{className:"h-6 w-6"})]}),(0,fe.jsx)(re.Content,{className:"overflow-hidden data-[state=closed]:animate-collapse data-[state=open]:animate-expand border-t",children:(0,fe.jsx)("div",{className:"px-4 py-3 bg-white",children:(0,fe.jsx)(I,{content:t||{},enableGutter:!1})})})]})})};var $t={content:Pe,cta:Z,mediaBlock:$,collapsibleArea:Vt,imageBlock:$,features:X,reusableContentBlock:jt},Ae=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,fe.jsx)("section",{id:"render-blocks",className:c(e.fill?"h-full w-full":""),children:t.map((a,s)=>{var l;console.log("block",a);let{blockType:o}=a,n=a==null?void 0:a.theme;if(o&&o in $t){let i=$t[o];if(o==="reusableContentBlock")return(0,fe.jsx)(A.Fragment,{children:(0,fe.jsx)(Ae,{blocks:a.reusableContent.layout})},s);if(i)return(0,fe.jsxs)("div",{className:c("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[(0,fe.jsx)(Ye,{block:a,index:s}),(0,fe.jsx)("div",{className:c("container h-full relative",((l=n==null?void 0:n.settings)==null?void 0:l.theme)||"dark"),children:(0,fe.jsx)(i,{...a})})]},s)}return null})}):null},Ye=e=>{var r,a,s,o,n;if(!("theme"in e.block))return(0,fe.jsx)("div",{className:c("absolute inset-0 w-screen h-full dark bg-background")});let t=(r=e.block)==null?void 0:r.theme;if(t.settings.background==="image"){let l={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,fe.jsxs)("div",{className:c("absolute inset-0 w-full h-full bg-background",t.settings.theme||"dark"),children:[(0,fe.jsx)(Wt.default,{src:((s=(a=t.settings)==null?void 0:a.image)==null?void 0:s.url)||"/placeholder.svg",alt:((n=(o=t.settings)==null?void 0:o.image)==null?void 0:n.alt)||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,fe.jsx)("div",{className:"absolute inset-0",style:{background:l.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,fe.jsx)("div",{className:c("absolute inset-0 w-screen h-full bg-background",t.settings.theme||"dark")})};var We=L(require("next/image"));var _e=({title:e})=>(0,fe.jsx)("header",{className:"absolute top-0 left-0 w-full py-4 px-8 flex justify-between items-center transition-colors duration-300 dark bg-background text-foreground",children:(0,fe.jsx)("div",{className:"container",children:(0,fe.jsx)("span",{className:"container text-4xl px-6",children:e})})}),Qe=e=>{var s,o;let{title:t,hero:r,logoImage:a}=e;return(0,fe.jsxs)("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,fe.jsx)("div",{className:"absolute inset-0",children:(0,fe.jsx)(We.default,{src:r.media&&r.media.url?r.media.url:"/hero.png",alt:"Background",width:r.media&&r.media.width&&(s=r.media.width)!=null?s:1920,height:r.media&&r.media.height&&(o=r.media.height)!=null?o:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),(0,fe.jsx)("div",{className:"absolute left-16 z-50 top-4 flex flex-col items-start gap-4",children:a&&(0,fe.jsx)("div",{className:"h-24",children:(0,fe.jsx)(We.default,{src:a.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),(0,fe.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,fe.jsxs)("div",{className:"relative pl-24 z-10 max-w-3xl",children:[(0,fe.jsx)("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:t}),r.richText&&(0,fe.jsx)(I,{content:r.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};function Vr(e){var t=document.createElement("div");t.style.display="block",t.style.height=e,document.body.appendChild(t);var r=parseFloat(window.getComputedStyle(t,null).height);return t.parentNode&&t.parentNode.removeChild(t),Math.floor(r)}var oe=e=>{let t=document.createElement("div");t.style.height="1mm",document.body.appendChild(t);let r=parseFloat(window.getComputedStyle(t).height);return document.body.removeChild(t),Math.floor(e/r)},$r=({page:e,layout:t="portrait",logoImage:r})=>t==="flow"?(0,fe.jsx)(_t,{page:e,layout:t,logoImage:r}):(0,fe.jsx)(Qt,{page:e,layout:t,logoImage:r}),_t=({page:e,layout:t="portrait",logoImage:r})=>{let{contentWithIds:a}=ze(e),s=(0,A.useRef)(null),o=(0,A.useRef)(null),n=(0,A.useRef)(new ce.Previewer),l={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};(0,A.useEffect)(()=>{let d=document.getElementById("printable-content");if(d){let p=document.createElement("style");return p.textContent=`@page { size: ${oe(d.offsetWidth)}mm ${oe(d.offsetHeight)}mm ; margin: 0mm; width: ${oe(d.offsetWidth)}mm }; .container : { max-width: ${oe(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 i=(0,A.useCallback)(()=>{if(!o.current)return;o.current&&(o.current.innerHTML="");let d=document.getElementById("printable-content");d&&n.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${oe(d.offsetWidth)}mm ${oe(d.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],o.current).catch(p=>console.error("Paged.js error:",p))},[t]);(0,A.useEffect)(()=>{n.current=new ce.Previewer},[i,t]);let m=[l,...a];return(0,fe.jsxs)("div",{children:[(0,fe.jsx)("div",{className:"w-[1123px] print:w-[1123px]",children:(0,fe.jsxs)("div",{id:"printable-content",ref:s,children:[m.map((d,p)=>(0,fe.jsx)(fe.Fragment,{children:p===0?(0,fe.jsx)("section",{className:"title-page w-full h-full",children:(0,fe.jsx)(Qe,{hero:e.hero,title:e.title})},p):(0,fe.jsxs)("section",{className:"normal-page overflow-hidden",children:[d.blockName&&(0,fe.jsx)(_e,{title:d.blockName}),(0,fe.jsx)(Ae,{blocks:[d],fill:!0})]},p)})),(0,fe.jsx)("section",{className:"normal-page",children:(0,fe.jsxs)("div",{className:`w-full py-2 px-8 flex justify-between items-center
6
+ dark bg-background text-primary`,children:[(0,fe.jsxs)("div",{className:"flex px-6 items-center space-fe-2",children:[r&&(0,fe.jsx)("img",{src:r.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,fe.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,fe.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,fe.jsx)("div",{ref:o,className:"preview-container"})]})},Qt=({page:e,layout:t="portrait"})=>{let{contentWithIds:r}=ze(e),a=(0,A.useRef)(null),s=(0,A.useRef)(null),o=(0,A.useRef)(new ce.Previewer),[n,l]=(0,A.useState)(0),m=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...r],d=(0,A.useCallback)(()=>{a.current&&(a.current&&(a.current.innerHTML=""),o.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],a.current).then(p=>l(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[t]);return(0,A.useEffect)(()=>{o.current=new ce.Previewer,d()},[d,t]),(0,A.useEffect)(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),(0,fe.jsxs)("div",{className:"pagedjs-container",children:[(0,fe.jsx)("div",{id:"printable-content",ref:s,style:{display:"none"},className:"pagedjs-content",children:m.map((p,f)=>{var P,y;return(0,fe.jsx)(fe.Fragment,{children:f===0?(0,fe.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,fe.jsx)(Qe,{hero:e.hero,title:e.title})},f):(0,fe.jsxs)("section",{className:c("pagedjs-section normal-page h-[699px]",`h-[${Vr("185mm")}px]`,((y=(P=p.theme)==null?void 0:P.settings)==null?void 0:y.theme)==="dark"?"dark":"light"),children:[p.blockName&&(0,fe.jsx)(_e,{title:p.blockName}),(0,fe.jsx)(Ae,{blocks:[p],fill:!0})]},f)})})}),(0,fe.jsx)("div",{ref:a,className:"preview-container"})]})};0&&(module.exports={FlowPrintable,PagePrintable,Printable});
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a,b,c}from"../../chunk-Z6AOKSZU.mjs";import"../../chunk-Z2HNL6F6.mjs";import"../../chunk-6YV7RK6Q.mjs";import"../../chunk-NRL4U42W.mjs";import"../../chunk-ZIWHUQ4D.mjs";import"../../chunk-AUBKJ4XO.mjs";import"../../chunk-6LKCK2EH.mjs";import"../../chunk-MGS3DQ22.mjs";import"../../chunk-6P7CY367.mjs";import"../../chunk-3LUYXQWZ.mjs";import"../../chunk-ILTBXZKO.mjs";import"../../chunk-7ZKGCT6M.mjs";import"../../chunk-6IVK75UA.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-44VMK4FL.mjs";import"../../chunk-YCX5N23N.mjs";import"../../chunk-M6M43TLT.mjs";import"../../chunk-FGWIT6CV.mjs";import"../../chunk-OI2YT2ZF.mjs";import"../../chunk-EY5QX73B.mjs";import"../../chunk-2A6JF3LE.mjs";import"../../chunk-4YJ3HV64.mjs";import"../../chunk-FCCL6W7R.mjs";import"../../chunk-WLBZXBU3.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-2NFKSNJW.mjs";import"../../chunk-FI4SMRAR.mjs";import"../../chunk-5IQPAE6K.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-BDX257W2.mjs";import"../../chunk-VZXLXNVY.mjs";import"../../chunk-Y2KKUQDU.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-C5XNOZXC.mjs";import"../../chunk-SPOYKTBR.mjs";import"../../chunk-S7OK7D5I.mjs";export{b as FlowPrintable,c as PagePrintable,a as Printable};
2
+ "use strict";import{a,b,c}from"../../chunk-PDTMJIT4.mjs";import"../../chunk-LDVIK3A6.mjs";import"../../chunk-6YV7RK6Q.mjs";import"../../chunk-NRL4U42W.mjs";import"../../chunk-HER7J6HM.mjs";import"../../chunk-AUBKJ4XO.mjs";import"../../chunk-6LKCK2EH.mjs";import"../../chunk-XXTN5HMN.mjs";import"../../chunk-6P7CY367.mjs";import"../../chunk-YN7VHSJO.mjs";import"../../chunk-EMHNQXWD.mjs";import"../../chunk-VGRMSEPT.mjs";import"../../chunk-L2COHUJU.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-44VMK4FL.mjs";import"../../chunk-7F7S63JI.mjs";import"../../chunk-EG6XIOOJ.mjs";import"../../chunk-NOEITQK2.mjs";import"../../chunk-MMBUMBDU.mjs";import"../../chunk-CTKUF2I6.mjs";import"../../chunk-YCX5N23N.mjs";import"../../chunk-M6M43TLT.mjs";import"../../chunk-FGWIT6CV.mjs";import"../../chunk-OI2YT2ZF.mjs";import"../../chunk-EY5QX73B.mjs";import"../../chunk-RJGKFNZL.mjs";import"../../chunk-6DHYRATS.mjs";import"../../chunk-JPFBD2KD.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-WLBZXBU3.mjs";import"../../chunk-2NFKSNJW.mjs";import"../../chunk-FI4SMRAR.mjs";import"../../chunk-5IQPAE6K.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-BDX257W2.mjs";import"../../chunk-VZXLXNVY.mjs";import"../../chunk-Y2KKUQDU.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-C5XNOZXC.mjs";import"../../chunk-SPOYKTBR.mjs";import"../../chunk-S7OK7D5I.mjs";export{b as FlowPrintable,c as PagePrintable,a as Printable};