cortex-react-components 1.51.0 → 1.51.2
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.
- package/dist/{chunk-423OEU3K.mjs → chunk-23EQTK7B.mjs} +1 -1
- package/dist/{chunk-5EFOKBKA.mjs → chunk-2FDK3K3W.mjs} +1 -1
- package/dist/{chunk-37V4PVTS.mjs → chunk-2GFBBWC2.mjs} +1 -1
- package/dist/chunk-3LJZCM5A.mjs +4 -0
- package/dist/{chunk-VA4VHZQ4.mjs → chunk-4VPOPPLA.mjs} +1 -1
- package/dist/{chunk-UG3V7GTW.mjs → chunk-55GJBCU5.mjs} +1 -1
- package/dist/{chunk-DCR7IH2M.mjs → chunk-65OD4DLE.mjs} +1 -1
- package/dist/chunk-A24EPYUY.mjs +1 -0
- package/dist/{chunk-V6QZFOJH.mjs → chunk-ATONX5RA.mjs} +1 -1
- package/dist/{chunk-CYECAKIW.mjs → chunk-BOZT7Z5K.mjs} +1 -1
- package/dist/chunk-BXLP27FT.mjs +4 -0
- package/dist/{chunk-5GMSJQA2.mjs → chunk-CTMMLDMU.mjs} +1 -1
- package/dist/{chunk-7HBGRPQN.mjs → chunk-DCEF2LYO.mjs} +1 -1
- package/dist/{chunk-UMEESL5A.mjs → chunk-F6Q7HP23.mjs} +1 -1
- package/dist/{chunk-IJICNQTM.mjs → chunk-FEBBHXAP.mjs} +1 -1
- package/dist/{chunk-6A46EVGW.mjs → chunk-FM7CBLYK.mjs} +1 -1
- package/dist/{chunk-SEG6IDDX.mjs → chunk-G5HD4IFA.mjs} +1 -1
- package/dist/{chunk-ALTFHQW6.mjs → chunk-GL6F4PKJ.mjs} +1 -1
- package/dist/{chunk-W6NKD4H5.mjs → chunk-IE5KIWR5.mjs} +1 -1
- package/dist/chunk-IJCMUPNH.mjs +4 -0
- package/dist/{chunk-MY3PX5GI.mjs → chunk-IQ7LAP7P.mjs} +1 -1
- package/dist/{chunk-UU4NDOU7.mjs → chunk-IYERYBWZ.mjs} +1 -1
- package/dist/{chunk-LKHCZTYP.mjs → chunk-JKXEWZ7M.mjs} +1 -1
- package/dist/{chunk-5J3MWP62.mjs → chunk-KKSMDJRP.mjs} +1 -1
- package/dist/{chunk-4RQM7UAG.mjs → chunk-LT2AK4G5.mjs} +1 -1
- package/dist/{chunk-ZLQFQW4R.mjs → chunk-LVHQ5ZSP.mjs} +1 -1
- package/dist/chunk-MHVWWZUW.mjs +1 -0
- package/dist/{chunk-RNCMCAZX.mjs → chunk-MJLCSHUM.mjs} +1 -1
- package/dist/{chunk-ECOVEIOV.mjs → chunk-NETY6BCN.mjs} +1 -1
- package/dist/{chunk-ICTOXY7D.mjs → chunk-NGK3IDFP.mjs} +1 -1
- package/dist/{chunk-LR6RU2SF.mjs → chunk-OI7AIO33.mjs} +1 -1
- package/dist/{chunk-TBYWZYI6.mjs → chunk-PFWQLNIT.mjs} +1 -1
- package/dist/chunk-QKGEV7LG.mjs +1 -0
- package/dist/{chunk-UMILL4LR.mjs → chunk-QO2Z7WXW.mjs} +1 -1
- package/dist/{chunk-IBV34MLI.mjs → chunk-RHPFEIP4.mjs} +1 -1
- package/dist/{chunk-ZMX4L6QJ.mjs → chunk-RJFBQZFX.mjs} +1 -1
- package/dist/{chunk-HKBNK7DA.mjs → chunk-RWDDYYDT.mjs} +1 -1
- package/dist/{chunk-MANZDSTF.mjs → chunk-UD7JYMRU.mjs} +1 -1
- package/dist/{chunk-HHUI6PDP.mjs → chunk-VZWV4G25.mjs} +1 -1
- package/dist/chunk-X5FDSTRM.mjs +1 -0
- package/dist/chunk-XB5WL3OT.mjs +4 -0
- package/dist/{chunk-7UHGKJPF.mjs → chunk-XHNZFKKI.mjs} +1 -1
- package/dist/chunk-Y74ENEUN.mjs +4 -0
- package/dist/{chunk-65C6PZZX.mjs → chunk-ZGX3P2RY.mjs} +1 -1
- package/dist/chunk-ZSUPFOXY.mjs +1 -0
- package/dist/components/Blocks/Banner.js +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.js +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CallToAction.stories.js +1 -1
- package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
- package/dist/components/Blocks/CaseStudy.mjs +1 -1
- package/dist/components/Blocks/CaseStudy.stories.mjs +1 -1
- package/dist/components/Blocks/Code.client.mjs +1 -1
- package/dist/components/Blocks/Code.mjs +1 -1
- package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
- package/dist/components/Blocks/ConsultantProfile.stories.mjs +1 -1
- package/dist/components/Blocks/Content.js +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/Content.stories.js +1 -1
- package/dist/components/Blocks/Content.stories.mjs +1 -1
- package/dist/components/Blocks/CopyButton.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.js +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.js +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
- package/dist/components/Blocks/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/ProposalSummary.mjs +1 -1
- package/dist/components/Blocks/ProposalSummary.stories.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.js +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.js +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.js +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.js +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/DealCard.mjs +1 -1
- package/dist/components/CRM/DealCard.stories.mjs +1 -1
- package/dist/components/CRM/DealDetails.mjs +1 -1
- package/dist/components/CRM/DealDetails.stories.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
- package/dist/components/CRM/NewCustomerForm.mjs +1 -1
- package/dist/components/CRM/NewCustomerForm.stories.mjs +1 -1
- package/dist/components/CRM/NewDealForm.mjs +1 -1
- package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.d.ts +2 -1
- package/dist/components/Cards/ContentCard.js +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/ContentCard.stories.js +1 -1
- package/dist/components/Cards/ContentCard.stories.mjs +1 -1
- package/dist/components/Cards/CustomerCard.mjs +1 -1
- package/dist/components/Cards/CustomerCard.stories.mjs +1 -1
- package/dist/components/Cards/EventCard.mjs +1 -1
- package/dist/components/Cards/EventCard.stories.mjs +1 -1
- package/dist/components/Cards/HeroCard.mjs +1 -1
- package/dist/components/Cards/HeroCard.stories.mjs +1 -1
- package/dist/components/Cards/Image.mjs +1 -1
- package/dist/components/Cards/Image.stories.mjs +1 -1
- package/dist/components/Cards/PricingCard.mjs +1 -1
- package/dist/components/Cards/PricingCard.stories.mjs +1 -1
- package/dist/components/Cards/ServiceCard.mjs +1 -1
- package/dist/components/Cards/ServiceCard.stories.mjs +1 -1
- package/dist/components/Cards/index.js +2 -2
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
- package/dist/components/HeaderFooter/Footer.mjs +1 -1
- package/dist/components/HeaderFooter/Footer.stories.mjs +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderMenu.stories.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.js +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
- package/dist/components/HeaderFooter/SimpleHeader.stories.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.js +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.js +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.js +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.js +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.js +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Holidays/ApproveLeave.d.ts +1 -12
- package/dist/components/Holidays/ApproveLeave.js +1 -1
- package/dist/components/Holidays/ApproveLeave.mjs +1 -1
- package/dist/components/Holidays/ApproveLeave.stories.mjs +1 -1
- package/dist/components/Holidays/CalendarView.js +1 -1
- package/dist/components/Holidays/CalendarView.mjs +1 -1
- package/dist/components/Holidays/CalendarView.stories.js +1 -1
- package/dist/components/Holidays/CalendarView.stories.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.d.ts +2 -16
- package/dist/components/Holidays/HolidayGrid.js +1 -1
- package/dist/components/Holidays/HolidayGrid.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.stories.js +1 -1
- package/dist/components/Holidays/HolidayGrid.stories.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.d.ts +3 -28
- package/dist/components/Holidays/HolidayTracker.js +1 -2
- package/dist/components/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.stories.js +189 -190
- package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
- package/dist/components/Holidays/RequestLeave.js +1 -2
- package/dist/components/Holidays/RequestLeave.mjs +1 -1
- package/dist/components/Holidays/RequestLeave.stories.js +38 -39
- package/dist/components/Holidays/RequestLeave.stories.mjs +1 -1
- package/dist/components/Holidays/index.js +1 -2
- package/dist/components/Holidays/index.mjs +1 -1
- package/dist/components/Layouts/BlogList.js +1 -1
- package/dist/components/Layouts/BlogList.mjs +1 -1
- package/dist/components/Layouts/BlogList.stories.js +1 -1
- package/dist/components/Layouts/BlogList.stories.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.js +2 -2
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.js +2 -2
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/Print.stories.js +1 -1
- package/dist/components/Layouts/Print.stories.mjs +1 -1
- package/dist/components/Layouts/SlideShow.js +4 -4
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/SlideShow.stories.js +4 -4
- package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
- package/dist/components/Layouts/index.js +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/Categories.mjs +1 -1
- package/dist/components/Menus/Categories.stories.mjs +1 -1
- package/dist/components/Menus/Filter.mjs +1 -1
- package/dist/components/Menus/Filter.stories.mjs +1 -1
- package/dist/components/Menus/ProjectTeam.mjs +1 -1
- package/dist/components/Menus/ProjectTeam.stories.mjs +1 -1
- package/dist/components/Menus/RelatedContent.mjs +1 -1
- package/dist/components/Menus/RelatedContent.stories.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Other/Container.mjs +1 -1
- package/dist/components/Other/index.mjs +1 -1
- package/dist/components/Payload/Card/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Link/index.mjs +1 -1
- package/dist/components/Payload/Media/index.mjs +1 -1
- package/dist/components/Payload/Pagination/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.js +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.js +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/RichText.stories.js +1 -1
- package/dist/components/Payload/RichText.stories.mjs +1 -1
- package/dist/components/Payload/index.js +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.js +13 -14
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/alert.mjs +1 -1
- package/dist/components/ui/alert.stories.mjs +1 -1
- package/dist/components/ui/avatar.mjs +1 -1
- package/dist/components/ui/avatar.stories.mjs +1 -1
- package/dist/components/ui/badge.mjs +1 -1
- package/dist/components/ui/badge.stories.mjs +1 -1
- package/dist/components/ui/breadcrumb.mjs +1 -1
- package/dist/components/ui/breadcrumb.stories.mjs +1 -1
- package/dist/components/ui/button.mjs +1 -1
- package/dist/components/ui/button.stories.mjs +1 -1
- package/dist/components/ui/calendar.d.ts +2 -2
- package/dist/components/ui/calendar.js +1 -1
- package/dist/components/ui/calendar.mjs +1 -1
- package/dist/components/ui/card.mjs +1 -1
- package/dist/components/ui/card.stories.mjs +1 -1
- package/dist/components/ui/checkbox.mjs +1 -1
- package/dist/components/ui/command.mjs +1 -1
- package/dist/components/ui/command.stories.mjs +1 -1
- package/dist/components/ui/dialog.mjs +1 -1
- package/dist/components/ui/dialog.stories.mjs +1 -1
- package/dist/components/ui/dropdown-menu.mjs +1 -1
- package/dist/components/ui/dropdown-menu.stories.mjs +1 -1
- package/dist/components/ui/hover-card.mjs +1 -1
- package/dist/components/ui/hover-card.stories.mjs +1 -1
- package/dist/components/ui/index.js +1 -2
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/input.mjs +1 -1
- package/dist/components/ui/input.stories.mjs +1 -1
- package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
- package/dist/components/ui/inputs/text-input/index.mjs +1 -1
- package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
- package/dist/components/ui/label.mjs +1 -1
- package/dist/components/ui/label.stories.mjs +1 -1
- package/dist/components/ui/pagination.mjs +1 -1
- package/dist/components/ui/popover.mjs +1 -1
- package/dist/components/ui/popover.stories.mjs +1 -1
- package/dist/components/ui/scroll-area.mjs +1 -1
- package/dist/components/ui/scroll-area.stories.mjs +1 -1
- package/dist/components/ui/select.mjs +1 -1
- package/dist/components/ui/separator.mjs +1 -1
- package/dist/components/ui/separator.stories.mjs +1 -1
- package/dist/components/ui/sheet.mjs +1 -1
- package/dist/components/ui/sheet.stories.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/components/ui/skeleton.mjs +1 -1
- package/dist/components/ui/skeleton.stories.mjs +1 -1
- package/dist/components/ui/textarea.mjs +1 -1
- package/dist/components/ui/toast.mjs +1 -1
- package/dist/components/ui/toast.stories.mjs +1 -1
- package/dist/components/ui/toaster.mjs +1 -1
- package/dist/components/ui/toggle-group.mjs +1 -1
- package/dist/components/ui/toggle.mjs +1 -1
- package/dist/components/ui/toggle.stories.mjs +1 -1
- package/dist/components/ui/tooltip.mjs +1 -1
- package/dist/components/ui/tooltip.stories.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/index.js +12 -13
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/model/Employee.d.ts +6 -0
- package/dist/model/Employee.js +1 -0
- package/dist/model/Holiday.d.ts +10 -0
- package/dist/model/Holiday.js +1 -0
- package/dist/model/LeaveRequest.d.ts +12 -0
- package/dist/model/LeaveRequest.js +1 -0
- package/dist/pages/Blog.js +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Blog.stories.js +1 -1
- package/dist/pages/Blog.stories.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/Documentation.stories.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/IndexPage.stories.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/Intranet.stories.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/LandingPage.stories.mjs +1 -1
- package/dist/pages/Page.js +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.js +63 -63
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Printable.stories.js +5 -5
- package/dist/pages/Printable.stories.mjs +1 -1
- package/dist/pages/Publish.js +5 -5
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.js +1 -1
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.js +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.js +1 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/sections/AboutSection.js +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/AboutSection.stories.js +1 -1
- package/dist/sections/AboutSection.stories.mjs +1 -1
- package/dist/sections/BlogDetail.js +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.js +1 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/BlogListSection.stories.mjs +1 -1
- package/dist/sections/ContactSection.js +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/ContactSection.stories.js +1 -1
- package/dist/sections/ContactSection.stories.mjs +1 -1
- package/dist/sections/ImageSection.mjs +1 -1
- package/dist/sections/ImageSection.stories.js +1 -1
- package/dist/sections/ImageSection.stories.mjs +1 -1
- package/dist/sections/MainPageSection.mjs +1 -1
- package/dist/sections/PricingSection.js +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/PricingSection.stories.js +1 -1
- package/dist/sections/PricingSection.stories.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/ServiceSection.stories.mjs +1 -1
- package/dist/sections/form/index.mjs +1 -1
- package/dist/sections/index.js +1 -1
- package/dist/sections/index.mjs +1 -1
- package/dist/styles/Colors.mjs +1 -1
- package/dist/styles/Colors.stories.mjs +1 -1
- package/dist/utils/BankHolidays.d.ts +4 -0
- package/dist/utils/BankHolidays.js +1 -0
- package/dist/utils/BankHolidays.mjs +1 -0
- package/dist/utils/DaysUtil.d.ts +3 -0
- package/dist/utils/DaysUtil.js +1 -0
- package/dist/utils/DaysUtil.mjs +1 -0
- package/dist/utils/index.mjs +1 -1
- package/package.json +3 -2
- package/dist/chunk-2MC5DSC7.mjs +0 -4
- package/dist/chunk-FG7NJIJK.mjs +0 -1
- package/dist/chunk-ITZ5HFK6.mjs +0 -1
- package/dist/chunk-KJBMLPHS.mjs +0 -4
- package/dist/chunk-MNDA6BQL.mjs +0 -4
- package/dist/chunk-NLFCSX3M.mjs +0 -4
- package/dist/chunk-THOLC3E6.mjs +0 -1
- package/dist/chunk-VW33NKNZ.mjs +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";"use client";var St=Object.create;var we=Object.defineProperty;var Et=Object.getOwnPropertyDescriptor;var zt=Object.getOwnPropertyNames;var Ft=Object.getPrototypeOf,Mt=Object.prototype.hasOwnProperty;var Gt=(t,e)=>{for(var o in e)we(t,o,{get:e[o],enumerable:!0})},Je=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of zt(e))!Mt.call(t,a)&&a!==o&&we(t,a,{get:()=>e[a],enumerable:!(n=Et(e,a))||n.enumerable});return t};var ee=(t,e,o)=>(o=t!=null?St(Ft(t)):{},Je(e||!t||!t.__esModule?we(o,"default",{value:t,enumerable:!0}):o,t)),Dt=t=>Je(we({},"__esModule",{value:!0}),t);var Bo={};Gt(Bo,{FlowPrintable:()=>Tt,PagePrintable:()=>It,Printable:()=>Po});module.exports=Dt(Bo);var D=require("react"),We=require("pagedjs");var et=require("clsx");var Ie="-",jt=t=>{let e=Lt(t),{conflictingClassGroups:o,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:i=>{let s=i.split(Ie);return s[0]===""&&s.length!==1&&s.shift(),qe(s,e)||Ut(i)},getConflictingClassGroupIds:(i,s)=>{let l=o[i]||[];return s&&n[i]?[...l,...n[i]]:l}}},qe=(t,e)=>{var i;if(t.length===0)return e.classGroupId;let o=t[0],n=e.nextPart.get(o),a=n?qe(t.slice(1),n):void 0;if(a)return a;if(e.validators.length===0)return;let r=t.join(Ie);return(i=e.validators.find(({validator:s})=>s(r)))==null?void 0:i.classGroupId},Ve=/^\[(.+)\]$/,Ut=t=>{if(Ve.test(t)){let e=Ve.exec(t)[1],o=e==null?void 0:e.substring(0,e.indexOf(":"));if(o)return"arbitrary.."+o}},Lt=t=>{let{theme:e,prefix:o}=t,n={nextPart:new Map,validators:[]};return Ot(Object.entries(t.classGroups),o).forEach(([r,i])=>{Te(i,n,r,e)}),n},Te=(t,e,o,n)=>{t.forEach(a=>{if(typeof a=="string"){let r=a===""?e:Qe(e,a);r.classGroupId=o;return}if(typeof a=="function"){if(Ht(a)){Te(a(n),e,o,n);return}e.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([r,i])=>{Te(i,Qe(e,r),o,n)})})},Qe=(t,e)=>{let o=t;return e.split(Ie).forEach(n=>{o.nextPart.has(n)||o.nextPart.set(n,{nextPart:new Map,validators:[]}),o=o.nextPart.get(n)}),o},Ht=t=>t.isThemeGetter,Ot=(t,e)=>e?t.map(([o,n])=>{let a=n.map(r=>typeof r=="string"?e+r:typeof r=="object"?Object.fromEntries(Object.entries(r).map(([i,s])=>[e+i,s])):r);return[o,a]}):t,Wt=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,o=new Map,n=new Map,a=(r,i)=>{o.set(r,i),e++,e>t&&(e=0,n=o,o=new Map)};return{get(r){let i=o.get(r);if(i!==void 0)return i;if((i=n.get(r))!==void 0)return a(r,i),i},set(r,i){o.has(r)?o.set(r,i):a(r,i)}}},Ye="!",_t=t=>{let{separator:e,experimentalParseClassName:o}=t,n=e.length===1,a=e[0],r=e.length,i=s=>{let l=[],c=0,p=0,g;for(let w=0;w<s.length;w++){let N=s[w];if(c===0){if(N===a&&(n||s.slice(w,w+r)===e)){l.push(s.slice(p,w)),p=w+r;continue}if(N==="/"){g=w;continue}}N==="["?c++:N==="]"&&c--}let m=l.length===0?s:s.substring(p),v=m.startsWith(Ye),y=v?m.substring(1):m,h=g&&g>p?g-p:void 0;return{modifiers:l,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:h}};return o?s=>o({className:s,parseClassName:i}):i},Jt=t=>{if(t.length<=1)return t;let e=[],o=[];return t.forEach(n=>{n[0]==="["?(e.push(...o.sort(),n),o=[]):o.push(n)}),e.push(...o.sort()),e},Vt=t=>({cache:Wt(t.cacheSize),parseClassName:_t(t),...jt(t)}),Qt=/\s+/,qt=(t,e)=>{let{parseClassName:o,getClassGroupId:n,getConflictingClassGroupIds:a}=e,r=[],i=t.trim().split(Qt),s="";for(let l=i.length-1;l>=0;l-=1){let c=i[l],{modifiers:p,hasImportantModifier:g,baseClassName:m,maybePostfixModifierPosition:v}=o(c),y=!!v,h=n(y?m.substring(0,v):m);if(!h){if(!y){s=c+(s.length>0?" "+s:s);continue}if(h=n(m),!h){s=c+(s.length>0?" "+s:s);continue}y=!1}let w=Jt(p).join(":"),N=g?w+Ye:w,P=N+h;if(r.includes(P))continue;r.push(P);let W=a(h,y);for(let F=0;F<W.length;++F){let _=W[F];r.push(N+_)}s=c+(s.length>0?" "+s:s)}return s};function Yt(){let t=0,e,o,n="";for(;t<arguments.length;)(e=arguments[t++])&&(o=Xe(e))&&(n&&(n+=" "),n+=o);return n}var Xe=t=>{if(typeof t=="string")return t;let e,o="";for(let n=0;n<t.length;n++)t[n]&&(e=Xe(t[n]))&&(o&&(o+=" "),o+=e);return o};function Xt(t,...e){let o,n,a,r=i;function i(l){let c=e.reduce((p,g)=>g(p),t());return o=Vt(c),n=o.cache.get,a=o.cache.set,r=s,s(l)}function s(l){let c=n(l);if(c)return c;let p=qt(l,o);return a(l,p),p}return function(){return r(Yt.apply(null,arguments))}}var k=t=>{let e=o=>o[t]||[];return e.isThemeGetter=!0,e},Ze=/^\[(?:([a-nt-]+):)?(.+)\]$/i,Zt=/^\d+\/\d+$/,Kt=new Set(["px","full","screen"]),$t=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,to=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,oo=/^(inset_)?-?((\d+)?\.?(\d+)[a-nt]+|0)_-?((\d+)?\.?(\d+)[a-nt]+|0)/,ro=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,U=t=>se(t)||Kt.has(t)||Zt.test(t),J=t=>ie(t,"length",mo),se=t=>!!t&&!Number.isNaN(Number(t)),Ae=t=>ie(t,"number",se),fe=t=>!!t&&Number.isInteger(Number(t)),no=t=>t.endsWith("%")&&se(t.slice(0,-1)),u=t=>Ze.test(t),V=t=>$t.test(t),ao=new Set(["length","size","percentage"]),so=t=>ie(t,ao,Ke),io=t=>ie(t,"position",Ke),lo=new Set(["image","url"]),co=t=>ie(t,lo,go),po=t=>ie(t,"",uo),be=()=>!0,ie=(t,e,o)=>{let n=Ze.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):o(n[2]):!1},mo=t=>eo.test(t)&&!to.test(t),Ke=()=>!1,uo=t=>oo.test(t),go=t=>ro.test(t);var fo=()=>{let t=k("colors"),e=k("spacing"),o=k("blur"),n=k("brightness"),a=k("borderColor"),r=k("borderRadius"),i=k("borderSpacing"),s=k("borderWidth"),l=k("contrast"),c=k("grayscale"),p=k("hueRotate"),g=k("invert"),m=k("gap"),v=k("gradientColorStops"),y=k("gradientColorStopPositions"),h=k("inset"),w=k("margin"),N=k("opacity"),P=k("padding"),W=k("saturate"),F=k("scale"),_=k("sepia"),de=k("skew"),pe=k("space"),X=k("translate"),I=()=>["auto","contain","none"],re=()=>["auto","hidden","clip","visible","scroll"],ne=()=>["auto",u,e],b=()=>[u,e],M=()=>["",U,J],Z=()=>["auto",se,u],me=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],E=()=>["solid","dashed","dotted","double","none"],j=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>["start","end","center","between","around","evenly","stretch"],K=()=>["","0",u],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>[se,u];return{cacheSize:500,separator:":",theme:{colors:[be],spacing:[U,J],blur:["none","",V,u],brightness:T(),borderColor:[t],borderRadius:["none","","full",V,u],borderSpacing:b(),borderWidth:M(),contrast:T(),grayscale:K(),hueRotate:T(),invert:K(),gap:b(),gradientColorStops:[t],gradientColorStopPositions:[no,J],inset:ne(),margin:ne(),opacity:T(),padding:b(),saturate:T(),scale:T(),sepia:K(),skew:T(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[V]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"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:[...me(),u]}],overflow:[{overflow:re()}],"overflow-nt":[{"overflow-nt":re()}],"overflow-y":[{"overflow-y":re()}],overscroll:[{overscroll:I()}],"overscroll-nt":[{"overscroll-nt":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-nt":[{"inset-nt":[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"],nt:[{nt:["auto",fe,u]}],basis:[{basis:ne()}],"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:K()}],shrink:[{shrink:K()}],order:[{order:["first","last","none",fe,u]}],"grid-cols":[{"grid-cols":[be]}],"col-start-end":[{col:["auto",{span:["full",fe,u]},u]}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":[be]}],"row-start-end":[{row:["auto",{span:[fe,u]},u]}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"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:[m]}],"gap-nt":[{"gap-nt":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...ue()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ue(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ue(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],pe:[{pe:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],m:[{m:[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-nt":[{"space-nt":[pe]}],"space-nt-reverse":["space-nt-reverse"],"space-y":[{"space-y":[pe]}],"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:[V]},V]}],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",V,J]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ae]}],"font-family":[{font:[be]}],"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",se,Ae]}],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:[t]}],"placeholder-opacity":[{"placeholder-opacity":[N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[N]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...E(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",U,J]}],"underline-offset":[{"underline-offset":["auto",U,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:b()}],"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":[N]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...me(),io]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","nt","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",so]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},co]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[r]}],"rounded-s":[{"rounded-s":[r]}],"rounded-e":[{"rounded-e":[r]}],"rounded-t":[{"rounded-t":[r]}],"rounded-r":[{"rounded-r":[r]}],"rounded-b":[{"rounded-b":[r]}],"rounded-l":[{"rounded-l":[r]}],"rounded-ss":[{"rounded-ss":[r]}],"rounded-se":[{"rounded-se":[r]}],"rounded-ee":[{"rounded-ee":[r]}],"rounded-es":[{"rounded-es":[r]}],"rounded-tl":[{"rounded-tl":[r]}],"rounded-tr":[{"rounded-tr":[r]}],"rounded-br":[{"rounded-br":[r]}],"rounded-bl":[{"rounded-bl":[r]}],"border-w":[{border:[s]}],"border-w-nt":[{"border-nt":[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-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[N]}],"border-style":[{border:[...E(),"hidden"]}],"divide-nt":[{"divide-nt":[s]}],"divide-nt-reverse":["divide-nt-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[N]}],"divide-style":[{divide:E()}],"border-color":[{border:[a]}],"border-color-nt":[{"border-nt":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...E()]}],"outline-offset":[{"outline-offset":[U,u]}],"outline-w":[{outline:[U,J]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[N]}],"ring-offset-w":[{"ring-offset":[U,J]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",V,po]}],"shadow-color":[{shadow:[be]}],opacity:[{opacity:[N]}],"mix-blend":[{"mix-blend":[...j(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":j()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",V,u]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[g]}],saturate:[{saturate:[W]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[N]}],"backdrop-saturate":[{"backdrop-saturate":[W]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-nt":[{"border-spacing-nt":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[F]}],"scale-nt":[{"scale-nt":[F]}],"scale-y":[{"scale-y":[F]}],rotate:[{rotate:[fe,u]}],"translate-nt":[{"translate-nt":[X]}],"translate-y":[{"translate-y":[X]}],"skew-nt":[{"skew-nt":[de]}],"skew-y":[{"skew-y":[de]}],"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","nt",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","nt","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-nt":[{"touch-pan":["nt","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:[U,J,Ae]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-nt","overflow-y"],overscroll:["overscroll-nt","overscroll-y"],inset:["inset-nt","inset-y","start","end","top","right","bottom","left"],"inset-nt":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-nt","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-nt","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-nt":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-nt":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-nt","touch-y","touch-pz"],"touch-nt":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var $e=Xt(fo);function d(...t){return $e((0,et.clsx)(t))}function Se(t){let e=0,o=(r,i)=>`${r.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${i}`,n=t.layout.flatMap(r=>{let i=[];return"title"in r&&r.title&&i.push({text:r.title,id:o(r.title,e++),tag:"h2"}),"columns"in r&&Array.isArray(r.columns)&&r.columns.forEach(s=>{var l,c,p,g,m;if(s.title&&i.push({text:s.title,id:o(s.title,e++),tag:"h2"}),(c=(l=s.richText)==null?void 0:l.root)!=null&&c.children&&((g=(p=s.richText)==null?void 0:p.root)==null?void 0:g.children.length)===1){let v=s.richText.root.children.filter(y=>y!==void 0&&y.type==="heading");for(let y of v)y.children[0]&&i.push({text:(m=y.children[0].text)!=null?m:"",id:o(y.children[0].text,e++),tag:y.tag||"h2"})}}),i}),a=bo(t.layout);return{tableOfContents:n,contentWithIds:a}}function bo(t){let e=(n,a)=>`${n.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${a}`,o=0;return t.map(n=>(n.title&&(n.id=e(n.title,o++)),n.columns&&(n.columns=n.columns.map(a=>(a.title&&(a.id=e(a.title,o++)),a.richText&&(a.richText.root.children=a.richText.root.children.filter(r=>r!==void 0).filter(r=>r.children!==void 0&&r.children.length>0).map(r=>(r.type==="heading"&&r.children[0].text&&(r.id=e(r.children[0].text,o++)),r))),a))),n))}var tt=require("@radix-ui/react-slot"),ot=require("class-variance-authority"),rt=ee(require("react")),nt=require("react/jsx-runtime"),ho=(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"}}}),G=rt.forwardRef(({asChild:t=!1,className:e,size:o,variant:n,...a},r)=>(0,nt.jsx)(t?tt.Slot:"button",{className:d(ho({className:e,size:o,variant:n})),ref:r,...a}));G.displayName="Button";var he="../../cortex-reply-dark-XPAJJJYY.png";var Bt=ee(require("next/image"));var at=({className:t,content:e,style:o})=>(0,nt.jsx)("div",{className:d("mx-auto my-8 w-full",t),children:(0,nt.jsx)("div",{className:d("border py-3 px-6 flex items-center rounded",{"border-border bg-card":o==="info","border-error bg-error/30":o==="error","border-success bg-success/30":o==="success","border-warning bg-warning/30":o==="warning"}),children:(0,nt.jsx)(S,{content:e,enableGutter:!1,enableProse:!1})})});var ke=require("prism-react-renderer");var st=require("lucide-react");function lt({code:t}){let[e,o]=(0,D.useState)("Copy");function n(){e==="Copy"&&(o(()=>"Copied!"),setTimeout(()=>{o(()=>"Copy")},1e3))}return(0,nt.jsx)("div",{className:"flex justify-end align-middle",children:(0,nt.jsxs)(G,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(t),n()},children:[(0,nt.jsx)("p",{children:e}),(0,nt.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,nt.jsx)(st.ClipboardCopy,{})})]})})}var ct=({code:t,language:e=""})=>t?(0,nt.jsx)(ke.Highlight,{code:t,language:e,theme:ke.themes.vsDark,children:({getLineProps:o,getTokenProps:n,tokens:a})=>(0,nt.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-nt-auto",children:[a.map((r,i)=>(0,nt.jsxs)("div",{...o({className:"table-row",line:r}),children:[(0,nt.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:i+1}),(0,nt.jsx)("span",{className:"table-cell pl-4",children:r.map((s,l)=>(0,nt.jsx)("span",{...n({token:s})},l))})]},i)),(0,nt.jsx)(lt,{code:t})]})}):null;var dt=({className:t,code:e,language:o})=>(0,nt.jsx)("div",{className:[t,"not-prose"].filter(Boolean).join(" "),children:(0,nt.jsx)(ct,{code:e,language:o})});var mt=ee(require("next/image")),xo={"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:o,imgClassName:n,priority:a,resource:r,size:i,src:s,loading:l}=t,c,p,g=e,m=s||"";if(!m&&r&&typeof r=="object"){let{alt:h,filename:w,height:N,url:P,width:W}=r;c=W,p=N,g=h||"",m=P||pt}let v=l||"lazy",y=i||Object.entries(xo).map(([,h])=>`(max-width: ${h}px) ${h*2}w`).join(", ");return(0,nt.jsx)("picture",{children:(0,nt.jsx)(mt.default,{alt:g||"",className:d(n),fill:o,height:o?void 0:p,placeholder:"blur",blurDataURL:pt,priority:v!=="lazy"&&a,quality:100,loading:v,sizes:y,src:m,width:o?void 0:c})})};var gt=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var ft=()=>{if(gt){let t=window.location.protocol,e=window.location.hostname,o=window.location.port;return`${t}//${e}${o?`:${o}`:""}`}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:o,videoClassName:n}=t,a=(0,D.useRef)(null);if((0,D.useEffect)(()=>{let{current:r}=a;r&&r.addEventListener("suspend",()=>{})},[]),o&&typeof o=="object"){let{filename:r}=o;return(0,nt.jsx)("video",{autoPlay:!0,className:d(n),controls:!1,loop:!0,muted:!0,onClick:e,playsInline:!0,ref:a,children:(0,nt.jsx)("source",{src:`${ft()}/media/${r}`})})}return null};var Pe=t=>{var i;let{className:e,htmlElement:o="div",resource:n}=t,a=typeof n=="object"&&((i=n==null?void 0:n.mimeType)==null?void 0:i.includes("video"));return(0,nt.jsx)(o||D.Fragment,{...o!==null?{className:e}:{},children:a?(0,nt.jsx)(bt,{...t}):(0,nt.jsx)(ut,{...t})})};var Q=t=>{let{className:e,enableGutter:o=!0,imgClassName:n,media:a,staticImage:r}=t;return(0,nt.jsx)("div",{className:d("h-full",{container:o},e),children:(0,nt.jsx)(Pe,{imgClassName:d("rounded-[0.8rem] max-h-full",n),className:"h-full",resource:a,src:r})})};var yt=t=>{let{className:e,enableGutter:o=!0,imgClassName:n,media:a,staticImage:r}=t;return(0,nt.jsx)("div",{className:d("",{container:o},e),children:(0,nt.jsx)(Pe,{imgClassName:d("rounded-[0.8rem]",n),resource:a,src:r})})};var De=({type:t="solid",iconName:e="cloud",size:o="lg",className:n})=>{let a=t.includes("fa-")?t+" ":"fa-"+t+" ",r="fa-"+e,i=n!=null?n:"",s=a+r+" fa-"+o+" "+i;return(0,nt.jsx)("i",{className:s})};function wt(t){return t&&typeof t=="object"&&"type"in t&&"iconName"in t}function vt({variant:t="outline",className:e,icon:o,iconSize:n="large",width:a="auto",heading:r,subheading:i,content:s,statistic:l,buttonText:c,buttonHref:p}){let g={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:""},m={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,nt.jsxs)("div",{className:d("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",g[t],t==="outline"?"text-gray-900":"text-white",e,m[a]),"data-aos":"flip-left","data-aos-easing":"ease-out-cubic","data-aos-duration":"1000",children:[(0,nt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,nt.jsx)(wo,{icon:o,heading:r,variant:t,iconSize:n})}),l&&(0,nt.jsx)("div",{className:"mb-6",children:(0,nt.jsx)("div",{className:"text-4xl text-wrap font-bold leading-none overflow-hidden",children:l})}),i&&(0,nt.jsx)("div",{className:"mb-4 text-xl md:text-2xl font-light",children:i}),s&&typeof s=="object"&&(0,nt.jsx)("div",{className:d("space-y-6","text-gray-300"),children:(0,nt.jsx)(S,{enableGutter:!1,content:s,enableProse:!1,className:d("prose prose-headings:text-white prose-p:text-gray-300")})}),s&&typeof s=="string"&&(0,nt.jsx)("div",{className:d("space-y-6","text-gray-300"),children:s}),c&&(0,nt.jsx)("div",{className:"mt-auto pt-6 flex items-center justify-center",children:(0,nt.jsx)(G,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:(0,nt.jsx)("a",{href:p,children:c})})}),t==="radial"&&(0,nt.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 wo=({icon:t,heading:e,variant:o,iconSize:n})=>t&&n==="small"?(0,nt.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[wt(t)&&(0,nt.jsx)("div",{className:d("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",o==="outline"||o==="light"?"text-accent":"text-foreground",n==="small"?"mt-2":""),children:(0,nt.jsx)(De,{type:t.type,iconName:t.iconName,size:"2x"})}),(0,nt.jsx)("div",{className:d("font-semibold",o==="outline"||o==="light"?"text-primary":"text-foreground",n==="small"?"text-2xl":"text-3xl"),children:e})]}):t?(0,nt.jsxs)("div",{className:"flex flex-col gap-4",children:[wt(t)&&(0,nt.jsx)("div",{className:d("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",o==="outline"||o==="light"?"text-accent":"text-foreground"),children:(0,nt.jsx)(De,{type:t.type,iconName:t.iconName,size:"4x"})}),(0,nt.jsx)("h3",{className:d("font-semibold",o==="outline"||o==="light"?"text-2xl text-primary":"text-3xl"),children:e})]}):(0,nt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,nt.jsx)("div",{className:d("font-semibold",o==="outline"||o==="light"?"text-2xl text-primary":"text-3xl"),children:e})});var le=({title:t,description:e,features:o,id:n})=>(0,nt.jsxs)("section",{className:d("container w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[t&&(0,nt.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,nt.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:e}),e&&typeof e=="object"&&(0,nt.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:(0,nt.jsx)(S,{content:e,enableGutter:!1})}),(0,nt.jsx)("div",{className:`grid gap-8 mt-10 md:grid-cols-${o?o.length:1}`,children:o&&o.map((a,r)=>{var s,l,c,p,g;let i=()=>{if(a.icon&&"type"in a.icon&&a.icon.type!=="none")return{type:a.icon.type,iconName:a.icon.icon}};return(0,nt.jsx)(vt,{variant:((s=a.settings)==null?void 0:s.card)==="default"?"light":((l=a.settings)==null?void 0:l.card)||"outline",icon:i()||void 0,iconSize:((c=a.settings)==null?void 0:c.iconSize)||"large",width:"auto",heading:a.title||"",content:a.content||void 0,statistic:a.statistic||void 0,buttonText:(p=a.link)!=null&&p.url?"Find out more":void 0,buttonHref:((g=a.link)==null?void 0:g.url)||void 0},r)})})]});var Be=ee(require("react"));var je=ee(require("next/link")),oe=t=>{let{type:e,appearance:o="inline",children:n,className:a,label:r,newTab:i,reference:s,size:l,url:c}=t,p=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}`:c;if(!p)return null;let g=o==="link"?"clear":l,m=i?{rel:"noopener noreferrer",target:"_blank"}:{};return o==="inline"?(0,nt.jsxs)(je.default,{className:d(a),href:p||c||"",...m,children:[r&&r,n&&n]}):(0,nt.jsx)(G,{asChild:!0,className:a,size:g,variant:o,children:(0,nt.jsxs)(je.default,{className:d(a),href:p||c||"",...m,children:[r&&r,n&&n]})})};function xe({nodes:t}){return(0,nt.jsx)(Be.Fragment,{children:t==null?void 0:t.map((e,o)=>{if(e==null)return null;if(e.type==="text"&&e.text){let r=(0,nt.jsx)(Be.default.Fragment,{children:e.text},o);return e.format&1&&(r=(0,nt.jsx)("strong",{children:r},o)),e.format&2&&(r=(0,nt.jsx)("em",{children:r},o)),e.format&4&&(r=(0,nt.jsx)("span",{style:{textDecoration:"line-through"},children:r},o)),e.format&8&&(r=(0,nt.jsx)("span",{style:{textDecoration:"underline"},children:r},o)),e.format&16&&(r=(0,nt.jsx)("code",{children:e.text},o)),e.format&32&&(r=(0,nt.jsx)("sub",{children:r},o)),e.format&64&&(r=(0,nt.jsx)("sup",{children:r},o)),r}if(e.type==="table")return(0,nt.jsx)("table",{children:(0,nt.jsx)("tbody",{children:e.children.map((r,i)=>(0,nt.jsx)("tr",{children:r.children.map((s,l)=>(0,nt.jsx)("td",{children:xe({nodes:s.children})},l))},i))})},o);let n=r=>{if(r.children==null)return null;if((r==null?void 0:r.type)==="list"&&(r==null?void 0:r.listType)==="check")for(let i of r.children)"checked"in i&&(i!=null&&i.checked||(i.checked=!1));return xe({nodes:r.children})},a="children"in e?n(e):"";if(e.type==="block"){let r=e.fields,i=r==null?void 0:r.blockType;if(!r||!i)return null;switch(i){case"cta":return(0,nt.jsx)(ce,{...r},o);case"mediaBlock":return(0,nt.jsx)(Q,{className:"col-start-1 col-span-3",imgClassName:"m-0",...r,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},o);case"imageBlock":return(0,nt.jsx)(yt,{className:"col-start-1 col-span-3",imgClassName:"m-0",...r,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},o);case"banner":return(0,nt.jsx)(at,{className:"col-start-2 mb-4",...r},o);case"code":return(0,nt.jsx)(dt,{className:"col-start-2",...r},o);case"features":return(0,nt.jsx)(le,{...r},o);case"reusableContentBlock":xe({nodes:r.reusableContent.layout});default:return null}}else switch(e.type){case"linebreak":return(0,nt.jsx)("br",{className:"col-start-2"},o);case"paragraph":return(0,nt.jsx)("p",{className:"col-start-2",children:a},o);case"heading":{let r=e==null?void 0:e.tag;return(0,nt.jsx)(r,{className:"col-start-2",id:(e==null?void 0:e.id)||"",children:a},o)}case"list":{let r=e==null?void 0:e.tag;return(0,nt.jsx)(r,{className:"list col-start-2",children:a},o)}case"listitem":return(e==null?void 0:e.checked)!=null?(0,nt.jsx)("li",{"aria-checked":e.checked?"true":"false",className:` ${e.checked,""}`,role:"checkbox",tabIndex:-1,value:e==null?void 0:e.value,children:a},o):(0,nt.jsx)("li",{value:e==null?void 0:e.value,children:a},o);case"quote":return(0,nt.jsx)("blockquote",{className:"col-start-2",children:a},o);case"link":{let r=e.fields;return(0,nt.jsx)(oe,{newTab:!!(r!=null&&r.newTab),reference:r.doc,type:r.linkType==="internal"?"reference":"custom",url:r.url,children:a},o)}case"autolink":{let r=e.fields;return(0,nt.jsx)(oe,{newTab:!!(r!=null&&r.newTab),reference:r.doc,type:r.linkType==="internal"?"reference":"custom",url:r.url,children:a},o)}default:return null}})})}var S=({className:t,content:e,enableGutter:o=!0,enableProse:n=!0})=>{var a;return e?(0,nt.jsx)("div",{className:d({"container ":o,"max-w-none":!o,"mx-auto prose dark:prose-invert ":n},t),children:e&&!Array.isArray(e)&&typeof e=="object"&&"root"in e&&xe({nodes:(a=e==null?void 0:e.root)==null?void 0:a.children})}):null};var ce=({links:t,richText:e})=>(0,nt.jsx)("div",{className:"container",children:(0,nt.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,nt.jsx)("div",{className:"max-w-[48rem] flex items-center",children:e&&(0,nt.jsx)(S,{className:"mb-0",content:e,enableGutter:!1})}),(0,nt.jsx)("div",{className:"flex flex-col gap-8",children:(t||[]).map(({link:o},n)=>(0,nt.jsx)(oe,{size:"lg",...o},n))})]})});var Re=t=>{var s;let{columns:e,theme:o}=t,n={full:"12",half:"6",oneThird:"4",twoThirds:"8"},a={none:"",line:"border border-primary p-4 rounded-lg"},r=l=>{if(l.type&&l.type==="block"&&l.fields&&(l.fields.blockType==="imageBlock"||l.fields.blockType==="mediaBlock"))return!0;if(l.root&&l.root.children){for(let c of l.root.children)if(r(c))return!0}if(l.children){for(let c of l.children)if(r(c))return!0}return!1},i=(l,c,p)=>{if(c==="none"||p==="full")return{processedRichText:l,heading:null};let g=l,m=null;return l&&l.root&&l.root.children&&l.root.children[0].tag==="h2"&&(g={...l,root:{...l.root,children:l.root.children.slice(1)}},m=l.root.children[0]),{processedRichText:g,heading:m}};return(0,nt.jsx)("div",{className:"container my-6",children:(0,nt.jsx)("div",{className:d("grid grid-cols-4 lg:grid-cols-12 gap-y-8",(s=o==null?void 0:o.settings)!=null&&s.box?"gap-nt-8":"gap-nt-16"),children:e&&e.length>0&&e.map((l,c)=>{var w,N;let{enableLink:p,link:g,richText:m,size:v}=l,{processedRichText:y,heading:h}=i(m,((w=o==null?void 0:o.settings)==null?void 0:w.box)||"none",v||"full");return(0,nt.jsxs)("div",{className:d(`col-span-4 lg:col-span-${n[v]}`,{"md:col-span-2":v!=="full"},a[v!=="full"&&!r(m)&&((N=o==null?void 0:o.settings)==null?void 0:N.box)||"none"]),"data-aos":"zoom-in",children:[h&&(0,nt.jsx)("div",{className:"bg-primary mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:h.children[0].text}),y&&(0,nt.jsx)(S,{content:y,enableGutter:!1,className:"rich-text"}),p&&(0,nt.jsx)(oe,{...g})]},c)})})})};var Nt=t=>{let{customId:e,reusableContent:o}=t;return typeof o=="object"&&o!==null?(0,nt.jsx)(vo,{blocks:o.layout}):(0,nt.jsx)(nt.Fragment,{})},Ct={content:Re,cta:ce,mediaBlock:Q,imageBlock:Q,features:le},vo=t=>{let{blocks:e}=t;return e&&Array.isArray(e)&&e.length>0?(0,nt.jsx)("section",{id:"render-blocks",children:e.map((n,a)=>{var s,l;let{blockType:r}=n,i=n==null?void 0:n.theme;if(r&&r in Ct){let c=Ct[r];if(c)return(0,nt.jsx)("div",{className:"py-6 relative",children:(0,nt.jsx)("div",{className:d(((s=i==null?void 0:i.settings)==null?void 0:s.theme)==="dark"?"dark":((l=i==null?void 0:i.settings)==null?void 0:l.theme)==="green"?"green":""),children:(0,nt.jsx)(c,{...n})})},a)}return null})}):null};var Pt={content:Re,cta:ce,mediaBlock:Q,imageBlock:Q,features:le,reusableContentBlock:Nt},Ue=t=>{let{blocks:e}=t;return e&&Array.isArray(e)&&e.length>0?(0,nt.jsx)("section",{id:"render-blocks",className:d(t.fill?"h-full w-full":""),children:e.map((n,a)=>{var s,l;let{blockType:r}=n,i=n==null?void 0:n.theme;if(r&&r in Pt){let c=Pt[r];if(c)return(0,nt.jsxs)("div",{className:d("py-6 relative",t.fill&&"flex h-full items-center justify-center"),children:[(0,nt.jsx)(ko,{block:n,index:a}),(0,nt.jsx)("div",{className:d("container h-full",((s=i==null?void 0:i.settings)==null?void 0:s.theme)==="dark"?"dark":((l=i==null?void 0:i.settings)==null?void 0:l.theme)==="green"?"green":""),children:(0,nt.jsx)(c,{...n})})]},a)}return null})}):null},ko=t=>{var o,n,a,r,i;if(!("theme"in t.block))return null;let e=(o=t.block)==null?void 0:o.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,nt.jsxs)("div",{className:d("absolute inset-0 w-full h-full -nt-10",e.settings.theme==="dark"?"dark bg-background":e.settings.theme==="green"?"green bg-background":""),children:[(0,nt.jsx)(Bt.default,{src:((a=(n=e.settings)==null?void 0:n.image)==null?void 0:a.url)||"/placeholder.svg",alt:((i=(r=e.settings)==null?void 0:r.image)==null?void 0:i.alt)||"",fill:!0,className:"object-cover",priority:!0}),e.settings.overlay&&(0,nt.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,nt.jsx)("div",{className:d("absolute inset-0 -nt-10 w-screen h-full",e.settings.theme==="dark"?"dark bg-background":e.settings.theme==="green"?"green bg-background":"")})};var Rt="../../hero-3-N2CBGEV6.jpg";var Le=ee(require("next/image"));var He=({title:t})=>(0,nt.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,nt.jsx)("div",{className:"container",children:(0,nt.jsx)("span",{className:"container text-4xl px-6",children:t})})}),Oe=t=>{var n,a;let{title:e,hero:o}=t;return(0,nt.jsxs)("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,nt.jsx)("div",{className:"absolute inset-0",children:(0,nt.jsx)(Le.default,{src:o.media?o.media.url:Rt,alt:"Background",width:o.media&&o.media.width&&(n=o.media.width)!=null?n:1920,height:o.media&&o.media.height&&(a=o.media.height)!=null?a:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),(0,nt.jsx)("div",{className:"absolute left-16 nt-50 top-4 flex flex-col items-start gap-4",children:he&&(0,nt.jsx)("div",{className:"h-24",children:(0,nt.jsx)(Le.default,{src:he,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),(0,nt.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,nt.jsxs)("div",{className:"relative pl-24 nt-10 max-w-3xl",children:[(0,nt.jsx)("p",{className:"text-lg font-medium text-accent mb-2",children:e}),o.richText&&(0,nt.jsx)(S,{content:o.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var At=ee(require("html2canvas")),_e=require("jspdf");function No(t){var e=document.createElement("div");e.style.display="block",e.style.height=t,document.body.appendChild(e);var o=parseFloat(window.getComputedStyle(e,null).height);return e.parentNode&&e.parentNode.removeChild(e),Math.floor(o)}var Po=({page:t,layout:e="portrait"})=>e==="flow"?(0,nt.jsx)(Tt,{page:t,layout:e}):(0,nt.jsx)(It,{page:t,layout:e}),Tt=({page:t,layout:e="portrait"})=>{let{contentWithIds:o}=Se(t),n={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},a=async()=>{r("printable-content")},r=async s=>{let l=document.getElementById(s);if(!l)throw new Error(`Element with id ${s} not found`);let c=document.createElement("canvas"),p=window.devicePixelRatio;c.width=Math.max(l.clientWidth||0)*p,c.height=Math.max(l.clientHeight||0)*p+100;let g=c.getContext("2d");if(!g)throw new Error("Failed to get 2D context");let m=g.drawImage,v=Array.from(l.getElementsByTagName("img")).reduce((X,I)=>(X[I.src]=I,X),{});g.drawImage=function(...X){let[I,re,ne,b,M,Z,me,E,j]=X;if(I instanceof HTMLImageElement){let ue=v[I.src].style.objectFit||"fill",K=v[I.src].style.objectPosition||"center center";M=I.height,b=I.width;let $=b/M,T=E/j,[ge,ae]=K.split(" ");switch(ae||(ae=ge),ue){case"cover":if($>T){let B=M*T,R=(b-B)/2;ge==="left"&&(R=0),ge==="right"&&(R=b-B),re+=R,b=B}else{let B=b/T,R=(M-B)/2;ae==="top"&&(R=0),ae==="bottom"&&(R=M-B),ne+=R,M=B}break;case"contain":if($>T){let B=E/$,R=(j-B)/2;ae==="top"&&(R=0),ae==="bottom"&&(R=j-B),me+=R,j=B}else{let B=j*$,R=(E-B)/2;ge==="left"&&(R=0),ge==="right"&&(R=E-B),Z+=R,E=B}break;case"fill":break}}return m.call(g,I,re,ne,b,M,Z,me,E,j)};let y=document.getElementById(s);if(!y)throw new Error(`Element with id ${s} not found`);var h=c.width,w=c.height;let P=(await(0,At.default)(y,{canvas:c,windowHeight:w,windowWidth:h,scale:window.devicePixelRatio})).toDataURL("image/png"),F=new _e.jsPDF({}).getImageProperties(P),_=297,de=_*(F.height/F.width),pe=new _e.jsPDF({unit:"mm",format:[_,de]});pe.addImage(P,"PNG",0,0,_,de),pe.save("print.pdf")},i=[n,...o];return(0,nt.jsxs)("div",{className:"w-[297mm]",children:[(0,nt.jsx)("div",{className:"fixed top-20 right-4 nt-[1000] print:hidden",children:(0,nt.jsx)(G,{onClick:a,variant:"outline",className:"px-5 py-2 text-sm font-semibold",children:"Print to PDF"})}),(0,nt.jsxs)("div",{id:"printable-content",children:[i.map((s,l)=>(0,nt.jsx)(nt.Fragment,{children:l===0?(0,nt.jsx)("section",{className:"title-page w-full h-full",children:(0,nt.jsx)(Oe,{hero:t.hero,title:t.title})},l):(0,nt.jsxs)("section",{className:"normal-page",children:[s.blockName&&(0,nt.jsx)(He,{title:s.blockName}),(0,nt.jsx)(Ue,{blocks:[s],fill:!0})]},l)})),(0,nt.jsx)("section",{className:"normal-page",children:(0,nt.jsxs)("div",{className:`w-full py-2 px-8 flex justify-between items-center
|
|
5
|
-
dark bg-background text-primary`,children:[(0,nt.jsxs)("div",{className:"flex px-6 items-center space-nt-2",children:[(0,nt.jsx)("img",{src:he.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,nt.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,nt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})]})},It=({page:t,layout:e="portrait"})=>{let{contentWithIds:
|
|
4
|
+
"use strict";"use client";var St=Object.create;var we=Object.defineProperty;var Et=Object.getOwnPropertyDescriptor;var zt=Object.getOwnPropertyNames;var Ft=Object.getPrototypeOf,Mt=Object.prototype.hasOwnProperty;var Gt=(t,e)=>{for(var r in e)we(t,r,{get:e[r],enumerable:!0})},Je=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of zt(e))!Mt.call(t,s)&&s!==r&&we(t,s,{get:()=>e[s],enumerable:!(n=Et(e,s))||n.enumerable});return t};var ee=(t,e,r)=>(r=t!=null?St(Ft(t)):{},Je(e||!t||!t.__esModule?we(r,"default",{value:t,enumerable:!0}):r,t)),Dt=t=>Je(we({},"__esModule",{value:!0}),t);var Pr={};Gt(Pr,{FlowPrintable:()=>Tt,PagePrintable:()=>It,Printable:()=>Nr});module.exports=Dt(Pr);var D=require("react"),We=require("pagedjs");var et=require("clsx");var Ie="-",jt=t=>{let e=Lt(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:i=>{let a=i.split(Ie);return a[0]===""&&a.length!==1&&a.shift(),qe(a,e)||Ut(i)},getConflictingClassGroupIds:(i,a)=>{let l=r[i]||[];return a&&n[i]?[...l,...n[i]]:l}}},qe=(t,e)=>{var i;if(t.length===0)return e.classGroupId;let r=t[0],n=e.nextPart.get(r),s=n?qe(t.slice(1),n):void 0;if(s)return s;if(e.validators.length===0)return;let o=t.join(Ie);return(i=e.validators.find(({validator:a})=>a(o)))==null?void 0:i.classGroupId},Ve=/^\[(.+)\]$/,Ut=t=>{if(Ve.test(t)){let e=Ve.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},Lt=t=>{let{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return Ot(Object.entries(t.classGroups),r).forEach(([o,i])=>{Te(i,n,o,e)}),n},Te=(t,e,r,n)=>{t.forEach(s=>{if(typeof s=="string"){let o=s===""?e:Qe(e,s);o.classGroupId=r;return}if(typeof s=="function"){if(Ht(s)){Te(s(n),e,r,n);return}e.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,i])=>{Te(i,Qe(e,o),r,n)})})},Qe=(t,e)=>{let r=t;return e.split(Ie).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Ht=t=>t.isThemeGetter,Ot=(t,e)=>e?t.map(([r,n])=>{let s=n.map(o=>typeof o=="string"?e+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,a])=>[e+i,a])):o);return[r,s]}):t,Wt=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map,s=(o,i)=>{r.set(o,i),e++,e>t&&(e=0,n=r,r=new Map)};return{get(o){let i=r.get(o);if(i!==void 0)return i;if((i=n.get(o))!==void 0)return s(o,i),i},set(o,i){r.has(o)?r.set(o,i):s(o,i)}}},Ye="!",_t=t=>{let{separator:e,experimentalParseClassName:r}=t,n=e.length===1,s=e[0],o=e.length,i=a=>{let l=[],c=0,p=0,g;for(let v=0;v<a.length;v++){let N=a[v];if(c===0){if(N===s&&(n||a.slice(v,v+o)===e)){l.push(a.slice(p,v)),p=v+o;continue}if(N==="/"){g=v;continue}}N==="["?c++:N==="]"&&c--}let m=l.length===0?a:a.substring(p),w=m.startsWith(Ye),y=w?m.substring(1):m,h=g&&g>p?g-p:void 0;return{modifiers:l,hasImportantModifier:w,baseClassName:y,maybePostfixModifierPosition:h}};return r?a=>r({className:a,parseClassName:i}):i},Jt=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},Vt=t=>({cache:Wt(t.cacheSize),parseClassName:_t(t),...jt(t)}),Qt=/\s+/,qt=(t,e)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=e,o=[],i=t.trim().split(Qt),a="";for(let l=i.length-1;l>=0;l-=1){let c=i[l],{modifiers:p,hasImportantModifier:g,baseClassName:m,maybePostfixModifierPosition:w}=r(c),y=!!w,h=n(y?m.substring(0,w):m);if(!h){if(!y){a=c+(a.length>0?" "+a:a);continue}if(h=n(m),!h){a=c+(a.length>0?" "+a:a);continue}y=!1}let v=Jt(p).join(":"),N=g?v+Ye:v,P=N+h;if(o.includes(P))continue;o.push(P);let W=s(h,y);for(let F=0;F<W.length;++F){let _=W[F];o.push(N+_)}a=c+(a.length>0?" "+a:a)}return a};function Yt(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=Xe(e))&&(n&&(n+=" "),n+=r);return n}var Xe=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=Xe(t[n]))&&(r&&(r+=" "),r+=e);return r};function Xt(t,...e){let r,n,s,o=i;function i(l){let c=e.reduce((p,g)=>g(p),t());return r=Vt(c),n=r.cache.get,s=r.cache.set,o=a,a(l)}function a(l){let c=n(l);if(c)return c;let p=qt(l,r);return s(l,p),p}return function(){return o(Yt.apply(null,arguments))}}var k=t=>{let e=r=>r[t]||[];return e.isThemeGetter=!0,e},Ze=/^\[(?:([a-nt-]+):)?(.+)\]$/i,Zt=/^\d+\/\d+$/,Kt=new Set(["px","full","screen"]),$t=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,er=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,tr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,rr=/^(inset_)?-?((\d+)?\.?(\d+)[a-nt]+|0)_-?((\d+)?\.?(\d+)[a-nt]+|0)/,or=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,U=t=>ae(t)||Kt.has(t)||Zt.test(t),J=t=>ie(t,"length",pr),ae=t=>!!t&&!Number.isNaN(Number(t)),Ae=t=>ie(t,"number",ae),fe=t=>!!t&&Number.isInteger(Number(t)),nr=t=>t.endsWith("%")&&ae(t.slice(0,-1)),u=t=>Ze.test(t),V=t=>$t.test(t),sr=new Set(["length","size","percentage"]),ar=t=>ie(t,sr,Ke),ir=t=>ie(t,"position",Ke),lr=new Set(["image","url"]),cr=t=>ie(t,lr,ur),dr=t=>ie(t,"",mr),be=()=>!0,ie=(t,e,r)=>{let n=Ze.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},pr=t=>er.test(t)&&!tr.test(t),Ke=()=>!1,mr=t=>rr.test(t),ur=t=>or.test(t);var gr=()=>{let t=k("colors"),e=k("spacing"),r=k("blur"),n=k("brightness"),s=k("borderColor"),o=k("borderRadius"),i=k("borderSpacing"),a=k("borderWidth"),l=k("contrast"),c=k("grayscale"),p=k("hueRotate"),g=k("invert"),m=k("gap"),w=k("gradientColorStops"),y=k("gradientColorStopPositions"),h=k("inset"),v=k("margin"),N=k("opacity"),P=k("padding"),W=k("saturate"),F=k("scale"),_=k("sepia"),de=k("skew"),pe=k("space"),X=k("translate"),I=()=>["auto","contain","none"],oe=()=>["auto","hidden","clip","visible","scroll"],ne=()=>["auto",u,e],b=()=>[u,e],M=()=>["",U,J],Z=()=>["auto",ae,u],me=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],E=()=>["solid","dashed","dotted","double","none"],j=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>["start","end","center","between","around","evenly","stretch"],K=()=>["","0",u],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>[ae,u];return{cacheSize:500,separator:":",theme:{colors:[be],spacing:[U,J],blur:["none","",V,u],brightness:T(),borderColor:[t],borderRadius:["none","","full",V,u],borderSpacing:b(),borderWidth:M(),contrast:T(),grayscale:K(),hueRotate:T(),invert:K(),gap:b(),gradientColorStops:[t],gradientColorStopPositions:[nr,J],inset:ne(),margin:ne(),opacity:T(),padding:b(),saturate:T(),scale:T(),sepia:K(),skew:T(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[V]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"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:[...me(),u]}],overflow:[{overflow:oe()}],"overflow-nt":[{"overflow-nt":oe()}],"overflow-y":[{"overflow-y":oe()}],overscroll:[{overscroll:I()}],"overscroll-nt":[{"overscroll-nt":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-nt":[{"inset-nt":[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"],nt:[{nt:["auto",fe,u]}],basis:[{basis:ne()}],"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:K()}],shrink:[{shrink:K()}],order:[{order:["first","last","none",fe,u]}],"grid-cols":[{"grid-cols":[be]}],"col-start-end":[{col:["auto",{span:["full",fe,u]},u]}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":[be]}],"row-start-end":[{row:["auto",{span:[fe,u]},u]}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"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:[m]}],"gap-nt":[{"gap-nt":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...ue()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ue(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ue(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],pe:[{pe:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-nt":[{"space-nt":[pe]}],"space-nt-reverse":["space-nt-reverse"],"space-y":[{"space-y":[pe]}],"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:[V]},V]}],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",V,J]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ae]}],"font-family":[{font:[be]}],"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",ae,Ae]}],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:[t]}],"placeholder-opacity":[{"placeholder-opacity":[N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[N]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...E(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",U,J]}],"underline-offset":[{"underline-offset":["auto",U,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:b()}],"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":[N]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...me(),ir]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","nt","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ar]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},cr]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[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:[a]}],"border-w-nt":[{"border-nt":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[N]}],"border-style":[{border:[...E(),"hidden"]}],"divide-nt":[{"divide-nt":[a]}],"divide-nt-reverse":["divide-nt-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[N]}],"divide-style":[{divide:E()}],"border-color":[{border:[s]}],"border-color-nt":[{"border-nt":[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-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...E()]}],"outline-offset":[{"outline-offset":[U,u]}],"outline-w":[{outline:[U,J]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[N]}],"ring-offset-w":[{"ring-offset":[U,J]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",V,dr]}],"shadow-color":[{shadow:[be]}],opacity:[{opacity:[N]}],"mix-blend":[{"mix-blend":[...j(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":j()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",V,u]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[g]}],saturate:[{saturate:[W]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[N]}],"backdrop-saturate":[{"backdrop-saturate":[W]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-nt":[{"border-spacing-nt":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[F]}],"scale-nt":[{"scale-nt":[F]}],"scale-y":[{"scale-y":[F]}],rotate:[{rotate:[fe,u]}],"translate-nt":[{"translate-nt":[X]}],"translate-y":[{"translate-y":[X]}],"skew-nt":[{"skew-nt":[de]}],"skew-y":[{"skew-y":[de]}],"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","nt",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","nt","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-nt":[{"touch-pan":["nt","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:[U,J,Ae]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-nt","overflow-y"],overscroll:["overscroll-nt","overscroll-y"],inset:["inset-nt","inset-y","start","end","top","right","bottom","left"],"inset-nt":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-nt","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-nt","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-nt":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-nt":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-nt","touch-y","touch-pz"],"touch-nt":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var $e=Xt(gr);function d(...t){return $e((0,et.clsx)(t))}function Se(t){let e=0,r=(o,i)=>`${o.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${i}`,n=t.layout.flatMap(o=>{let i=[];return"title"in o&&o.title&&i.push({text:o.title,id:r(o.title,e++),tag:"h2"}),"columns"in o&&Array.isArray(o.columns)&&o.columns.forEach(a=>{var l,c,p,g,m;if(a.title&&i.push({text:a.title,id:r(a.title,e++),tag:"h2"}),(c=(l=a.richText)==null?void 0:l.root)!=null&&c.children&&((g=(p=a.richText)==null?void 0:p.root)==null?void 0:g.children.length)===1){let w=a.richText.root.children.filter(y=>y!==void 0&&y.type==="heading");for(let y of w)y.children[0]&&i.push({text:(m=y.children[0].text)!=null?m:"",id:r(y.children[0].text,e++),tag:y.tag||"h2"})}}),i}),s=fr(t.layout);return{tableOfContents:n,contentWithIds:s}}function fr(t){let e=(n,s)=>`${n.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${s}`,r=0;return t.map(n=>(n.title&&(n.id=e(n.title,r++)),n.columns&&(n.columns=n.columns.map(s=>(s.title&&(s.id=e(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=e(o.children[0].text,r++)),o))),s))),n))}var tt=require("@radix-ui/react-slot"),rt=require("class-variance-authority"),ot=ee(require("react")),nt=require("react/jsx-runtime"),br=(0,rt.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"}}}),G=ot.forwardRef(({asChild:t=!1,className:e,size:r,variant:n,...s},o)=>(0,nt.jsx)(t?tt.Slot:"button",{className:d(br({className:e,size:r,variant:n})),ref:o,...s}));G.displayName="Button";var he="../../cortex-reply-dark-XPAJJJYY.png";var Bt=ee(require("next/image"));var st=({className:t,content:e,style:r})=>(0,nt.jsx)("div",{className:d("mx-auto my-8 w-full",t),children:(0,nt.jsx)("div",{className:d("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,nt.jsx)(S,{content:e,enableGutter:!1,enableProse:!1})})});var ke=require("prism-react-renderer");var at=require("lucide-react");function lt({code:t}){let[e,r]=(0,D.useState)("Copy");function n(){e==="Copy"&&(r(()=>"Copied!"),setTimeout(()=>{r(()=>"Copy")},1e3))}return(0,nt.jsx)("div",{className:"flex justify-end align-middle",children:(0,nt.jsxs)(G,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(t),n()},children:[(0,nt.jsx)("p",{children:e}),(0,nt.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,nt.jsx)(at.ClipboardCopy,{})})]})})}var ct=({code:t,language:e=""})=>t?(0,nt.jsx)(ke.Highlight,{code:t,language:e,theme:ke.themes.vsDark,children:({getLineProps:r,getTokenProps:n,tokens:s})=>(0,nt.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-nt-auto",children:[s.map((o,i)=>(0,nt.jsxs)("div",{...r({className:"table-row",line:o}),children:[(0,nt.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:i+1}),(0,nt.jsx)("span",{className:"table-cell pl-4",children:o.map((a,l)=>(0,nt.jsx)("span",{...n({token:a})},l))})]},i)),(0,nt.jsx)(lt,{code:t})]})}):null;var dt=({className:t,code:e,language:r})=>(0,nt.jsx)("div",{className:[t,"not-prose"].filter(Boolean).join(" "),children:(0,nt.jsx)(ct,{code:e,language:r})});var mt=ee(require("next/image")),yr={"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:s,resource:o,size:i,src:a,loading:l}=t,c,p,g=e,m=a||"";if(!m&&o&&typeof o=="object"){let{alt:h,filename:v,height:N,url:P,width:W}=o;c=W,p=N,g=h||"",m=P||pt}let w=l||"lazy",y=i||Object.entries(yr).map(([,h])=>`(max-width: ${h}px) ${h*2}w`).join(", ");return(0,nt.jsx)("picture",{children:(0,nt.jsx)(mt.default,{alt:g||"",className:d(n),fill:r,height:r?void 0:p,placeholder:"blur",blurDataURL:pt,priority:w!=="lazy"&&s,quality:100,loading:w,sizes:y,src:m,width:r?void 0:c})})};var gt=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var ft=()=>{if(gt){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,s=(0,D.useRef)(null);if((0,D.useEffect)(()=>{let{current:o}=s;o&&o.addEventListener("suspend",()=>{})},[]),r&&typeof r=="object"){let{filename:o}=r;return(0,nt.jsx)("video",{autoPlay:!0,className:d(n),controls:!1,loop:!0,muted:!0,onClick:e,playsInline:!0,ref:s,children:(0,nt.jsx)("source",{src:`${ft()}/media/${o}`})})}return null};var Pe=t=>{var i;let{className:e,htmlElement:r="div",resource:n}=t,s=typeof n=="object"&&((i=n==null?void 0:n.mimeType)==null?void 0:i.includes("video"));return(0,nt.jsx)(r||D.Fragment,{...r!==null?{className:e}:{},children:s?(0,nt.jsx)(bt,{...t}):(0,nt.jsx)(ut,{...t})})};var Q=t=>{let{className:e,enableGutter:r=!0,imgClassName:n,media:s,staticImage:o}=t;return(0,nt.jsx)("div",{className:d("h-full",{container:r},e),children:(0,nt.jsx)(Pe,{imgClassName:d("rounded-[0.8rem] max-h-full",n),className:"h-full",resource:s,src:o})})};var yt=t=>{let{className:e,enableGutter:r=!0,imgClassName:n,media:s,staticImage:o}=t;return(0,nt.jsx)("div",{className:d("",{container:r},e),children:(0,nt.jsx)(Pe,{imgClassName:d("rounded-[0.8rem]",n),resource:s,src:o})})};var De=({type:t="solid",iconName:e="cloud",size:r="lg",className:n})=>{let s=t.includes("fa-")?t+" ":"fa-"+t+" ",o="fa-"+e,i=n!=null?n:"",a=s+o+" fa-"+r+" "+i;return(0,nt.jsx)("i",{className:a})};function wt(t){return t&&typeof t=="object"&&"type"in t&&"iconName"in t}function vt({variant:t="outline",className:e,icon:r,iconSize:n="large",width:s="auto",order:o=0,heading:i,subheading:a,content:l,statistic:c,buttonText:p,buttonHref:g}){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:""},w={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,nt.jsxs)("div",{className:d("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",m[t],t==="outline"?"text-gray-900":"text-white",e,w[s],"intersect intersect-full animate-flip-up",o===0?"":`animate-delay-${o}00`),children:[(0,nt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,nt.jsx)(xr,{icon:r,heading:i,variant:t,iconSize:n})}),c&&(0,nt.jsx)("div",{className:"mb-6",children:(0,nt.jsx)("div",{className:d("text-4xl text-wrap font-bold leading-none overflow-hidden",t==="outline"||t==="light"?"text-primary":"text-white"),children:c})}),a&&(0,nt.jsx)("div",{className:"mb-4 text-xl md:text-2xl font-light",children:a}),l&&typeof l=="object"&&(0,nt.jsx)("div",{className:d("space-y-6"),children:(0,nt.jsx)(S,{enableGutter:!1,content:l,enableProse:!1,className:d(t==="outline"||t==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),l&&typeof l=="string"&&(0,nt.jsx)("div",{className:d("space-y-6",t==="outline"||t==="light"?"text-gray-900":"text-gray-100"),children:l}),p&&(0,nt.jsx)("div",{className:"mt-auto pt-6 flex items-center justify-center",children:(0,nt.jsx)(G,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:(0,nt.jsx)("a",{href:g,children:p})})}),t==="radial"&&(0,nt.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})=>t&&n==="small"?(0,nt.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[wt(t)&&(0,nt.jsx)("div",{className:d("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",r==="outline"||r==="light"?"text-primary":"text-white",n==="small"?"mt-2":""),children:(0,nt.jsx)(De,{type:t.type,iconName:t.iconName,size:"2x"})}),(0,nt.jsx)("div",{className:d("font-semibold",r==="outline"||r==="light"?"text-primary":"text-white",n==="small"?"text-2xl":"text-3xl"),children:e})]}):t?(0,nt.jsxs)("div",{className:"flex flex-col gap-4",children:[wt(t)&&(0,nt.jsx)("div",{className:d("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",r==="outline"||r==="light"?"text-accent":""),children:(0,nt.jsx)(De,{type:t.type,iconName:t.iconName,size:"4x"})}),(0,nt.jsx)("h3",{className:d("font-semibold",r==="outline"||r==="light"?"text-2xl text-primary":"text-3xl"),children:e})]}):(0,nt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,nt.jsx)("div",{className:d("font-semibold",r==="outline"||r==="light"?"text-2xl text-primary":"text-3xl"),children:e})});var le=({title:t,description:e,features:r,id:n})=>(0,nt.jsxs)("section",{className:d("container w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[t&&(0,nt.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,nt.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:e}),e&&typeof e=="object"&&(0,nt.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:(0,nt.jsx)(S,{content:e,enableGutter:!1})}),(0,nt.jsx)("div",{className:`grid gap-8 mt-10 md:grid-cols-${r?r.length:1}`,children:r&&r.map((s,o)=>{var a,l,c,p,g;let i=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,iconName:s.icon.icon}};return(0,nt.jsx)(vt,{variant:((a=s.settings)==null?void 0:a.card)==="default"?"light":((l=s.settings)==null?void 0:l.card)||"outline",icon:i()||void 0,iconSize:((c=s.settings)==null?void 0:c.iconSize)||"large",width:"auto",order:o,heading:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,buttonText:(p=s.link)!=null&&p.url?"Find out more":void 0,buttonHref:((g=s.link)==null?void 0:g.url)||void 0},o)})})]});var Be=ee(require("react"));var je=ee(require("next/link")),re=t=>{let{type:e,appearance:r="inline",children:n,className:s,label:o,newTab:i,reference:a,size:l,url:c}=t,p=e==="reference"&&typeof(a==null?void 0:a.value)=="object"&&a.value.slug?`${(a==null?void 0:a.relationTo)!=="pages"?`/${a==null?void 0:a.relationTo}`:""}/${a.value.slug}`:c;if(!p)return null;let g=r==="link"?"clear":l,m=i?{rel:"noopener noreferrer",target:"_blank"}:{};return r==="inline"?(0,nt.jsxs)(je.default,{className:d(s),href:p||c||"",...m,children:[o&&o,n&&n]}):(0,nt.jsx)(G,{asChild:!0,className:s,size:g,variant:r,children:(0,nt.jsxs)(je.default,{className:d(s),href:p||c||"",...m,children:[o&&o,n&&n]})})};function xe({nodes:t}){return(0,nt.jsx)(Be.Fragment,{children:t==null?void 0:t.map((e,r)=>{if(e==null)return null;if(e.type==="text"&&e.text){let o=(0,nt.jsx)(Be.default.Fragment,{children:e.text},r);return e.format&1&&(o=(0,nt.jsx)("strong",{children:o},r)),e.format&2&&(o=(0,nt.jsx)("em",{children:o},r)),e.format&4&&(o=(0,nt.jsx)("span",{style:{textDecoration:"line-through"},children:o},r)),e.format&8&&(o=(0,nt.jsx)("span",{style:{textDecoration:"underline"},children:o},r)),e.format&16&&(o=(0,nt.jsx)("code",{children:e.text},r)),e.format&32&&(o=(0,nt.jsx)("sub",{children:o},r)),e.format&64&&(o=(0,nt.jsx)("sup",{children:o},r)),o}if(e.type==="table")return(0,nt.jsx)("table",{children:(0,nt.jsx)("tbody",{children:e.children.map((o,i)=>(0,nt.jsx)("tr",{children:o.children.map((a,l)=>(0,nt.jsx)("td",{children:xe({nodes:a.children})},l))},i))})},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 i of o.children)"checked"in i&&(i!=null&&i.checked||(i.checked=!1));return xe({nodes:o.children})},s="children"in e?n(e):"";if(e.type==="block"){let o=e.fields,i=o==null?void 0:o.blockType;if(!o||!i)return null;switch(i){case"cta":return(0,nt.jsx)(ce,{...o},r);case"mediaBlock":return(0,nt.jsx)(Q,{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,nt.jsx)(yt,{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,nt.jsx)(st,{className:"col-start-2 mb-4",...o},r);case"code":return(0,nt.jsx)(dt,{className:"col-start-2",...o},r);case"features":return(0,nt.jsx)(le,{...o},r);case"reusableContentBlock":xe({nodes:o.reusableContent.layout});default:return null}}else switch(e.type){case"linebreak":return(0,nt.jsx)("br",{className:"col-start-2"},r);case"paragraph":return(0,nt.jsx)("p",{className:"col-start-2",children:s},r);case"heading":{let o=e==null?void 0:e.tag;return(0,nt.jsx)(o,{className:"col-start-2",id:(e==null?void 0:e.id)||"",children:s},r)}case"list":{let o=e==null?void 0:e.tag;return(0,nt.jsx)(o,{className:"list col-start-2",children:s},r)}case"listitem":return(e==null?void 0:e.checked)!=null?(0,nt.jsx)("li",{"aria-checked":e.checked?"true":"false",className:` ${e.checked,""}`,role:"checkbox",tabIndex:-1,value:e==null?void 0:e.value,children:s},r):(0,nt.jsx)("li",{value:e==null?void 0:e.value,children:s},r);case"quote":return(0,nt.jsx)("blockquote",{className:"col-start-2",children:s},r);case"link":{let o=e.fields;return(0,nt.jsx)(re,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:s},r)}case"autolink":{let o=e.fields;return(0,nt.jsx)(re,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:s},r)}default:return null}})})}var S=({className:t,content:e,enableGutter:r=!0,enableProse:n=!0})=>{var s;return e?(0,nt.jsx)("div",{className:d({"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&&xe({nodes:(s=e==null?void 0:e.root)==null?void 0:s.children})}):null};var ce=({links:t,richText:e})=>(0,nt.jsx)("div",{className:"container",children:(0,nt.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,nt.jsx)("div",{className:"max-w-[48rem] flex items-center",children:e&&(0,nt.jsx)(S,{className:"mb-0",content:e,enableGutter:!1})}),(0,nt.jsx)("div",{className:"flex flex-col gap-8",children:(t||[]).map(({link:r},n)=>(0,nt.jsx)(re,{size:"lg",...r},n))})]})});var Re=t=>{var a;let{columns:e,theme:r}=t,n={full:"12",half:"6",oneThird:"4",twoThirds:"8"},s={none:"",line:"border border-primary p-4 rounded-lg"},o=l=>{if(l.type&&l.type==="block"&&l.fields&&(l.fields.blockType==="imageBlock"||l.fields.blockType==="mediaBlock"))return!0;if(l.root&&l.root.children){for(let c of l.root.children)if(o(c))return!0}if(l.children){for(let c of l.children)if(o(c))return!0}return!1},i=(l,c,p)=>{if(c==="none"||p==="full")return{processedRichText:l,heading:null};let g=l,m=null;return l&&l.root&&l.root.children&&l.root.children[0].tag==="h2"&&(g={...l,root:{...l.root,children:l.root.children.slice(1)}},m=l.root.children[0]),{processedRichText:g,heading:m}};return(0,nt.jsx)("div",{className:"container my-6",children:(0,nt.jsx)("div",{className:d("grid grid-cols-4 lg:grid-cols-12 gap-y-8",(a=r==null?void 0:r.settings)!=null&&a.box?"gap-nt-8":"gap-nt-16"),children:e&&e.length>0&&e.map((l,c)=>{var v,N;let{enableLink:p,link:g,richText:m,size:w}=l,{processedRichText:y,heading:h}=i(m,((v=r==null?void 0:r.settings)==null?void 0:v.box)||"none",w||"full");return(0,nt.jsxs)("div",{className:d(`col-span-4 lg:col-span-${n[w]}`,{"md:col-span-2":w!=="full"},s[w!=="full"&&!o(m)&&((N=r==null?void 0:r.settings)==null?void 0:N.box)||"none"],"intersect intersect-full animate-flip-up",c===0?"":`animate-delay-${c}00`),children:[h&&(0,nt.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,nt.jsx)(S,{content:y,enableGutter:!1,className:"rich-text"}),p&&(0,nt.jsx)(re,{...g})]},c)})})})};var Nt=t=>{let{customId:e,reusableContent:r}=t;return typeof r=="object"&&r!==null?(0,nt.jsx)(wr,{blocks:r.layout}):(0,nt.jsx)(nt.Fragment,{})},Ct={content:Re,cta:ce,mediaBlock:Q,imageBlock:Q,features:le},wr=t=>{let{blocks:e}=t;return e&&Array.isArray(e)&&e.length>0?(0,nt.jsx)("section",{id:"render-blocks",children:e.map((n,s)=>{var a,l;let{blockType:o}=n,i=n==null?void 0:n.theme;if(o&&o in Ct){let c=Ct[o];if(c)return(0,nt.jsx)("div",{className:"py-6 relative",children:(0,nt.jsx)("div",{className:d(((a=i==null?void 0:i.settings)==null?void 0:a.theme)==="dark"?"dark":((l=i==null?void 0:i.settings)==null?void 0:l.theme)==="green"?"green":""),children:(0,nt.jsx)(c,{...n})})},s)}return null})}):null};var Pt={content:Re,cta:ce,mediaBlock:Q,imageBlock:Q,features:le,reusableContentBlock:Nt},Ue=t=>{let{blocks:e}=t;return e&&Array.isArray(e)&&e.length>0?(0,nt.jsx)("section",{id:"render-blocks",className:d(t.fill?"h-full w-full":""),children:e.map((n,s)=>{var a,l;let{blockType:o}=n,i=n==null?void 0:n.theme;if(o&&o in Pt){let c=Pt[o];if(c)return(0,nt.jsxs)("div",{className:d("py-6 relative",t.fill&&"flex h-full items-center justify-center"),children:[(0,nt.jsx)(vr,{block:n,index:s}),(0,nt.jsx)("div",{className:d("container h-full",((a=i==null?void 0:i.settings)==null?void 0:a.theme)==="dark"?"dark":((l=i==null?void 0:i.settings)==null?void 0:l.theme)==="green"?"green":""),children:(0,nt.jsx)(c,{...n})})]},s)}return null})}):null},vr=t=>{var r,n,s,o,i;if(!("theme"in t.block))return null;let e=(r=t.block)==null?void 0:r.theme;if(e.settings.background==="image"){let a={imagePosition:e.settings.imagePosition||"left",overlay:e.settings.overlay!==void 0?e.settings.overlay:!0};return(0,nt.jsxs)("div",{className:d("absolute inset-0 w-full h-full -nt-10",e.settings.theme==="dark"?"dark bg-background":e.settings.theme==="green"?"green bg-background":""),children:[(0,nt.jsx)(Bt.default,{src:((s=(n=e.settings)==null?void 0:n.image)==null?void 0:s.url)||"/placeholder.svg",alt:((i=(o=e.settings)==null?void 0:o.image)==null?void 0:i.alt)||"",fill:!0,className:"object-cover",priority:!0}),e.settings.overlay&&(0,nt.jsx)("div",{className:"absolute inset-0",style:{background:a.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,nt.jsx)("div",{className:d("absolute inset-0 -nt-10 w-screen h-full",e.settings.theme==="dark"?"dark bg-background":e.settings.theme==="green"?"green bg-background":"")})};var Rt="../../hero-3-N2CBGEV6.jpg";var Le=ee(require("next/image"));var He=({title:t})=>(0,nt.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,nt.jsx)("div",{className:"container",children:(0,nt.jsx)("span",{className:"container text-4xl px-6",children:t})})}),Oe=t=>{var n,s;let{title:e,hero:r}=t;return(0,nt.jsxs)("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,nt.jsx)("div",{className:"absolute inset-0",children:(0,nt.jsx)(Le.default,{src:r.media?r.media.url:Rt,alt:"Background",width:r.media&&r.media.width&&(n=r.media.width)!=null?n:1920,height:r.media&&r.media.height&&(s=r.media.height)!=null?s:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),(0,nt.jsx)("div",{className:"absolute left-16 nt-50 top-4 flex flex-col items-start gap-4",children:he&&(0,nt.jsx)("div",{className:"h-24",children:(0,nt.jsx)(Le.default,{src:he,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),(0,nt.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,nt.jsxs)("div",{className:"relative pl-24 nt-10 max-w-3xl",children:[(0,nt.jsx)("p",{className:"text-lg font-medium text-accent mb-2",children:e}),r.richText&&(0,nt.jsx)(S,{content:r.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var At=ee(require("html2canvas")),_e=require("jspdf");function Cr(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 Nr=({page:t,layout:e="portrait"})=>e==="flow"?(0,nt.jsx)(Tt,{page:t,layout:e}):(0,nt.jsx)(It,{page:t,layout:e}),Tt=({page:t,layout:e="portrait"})=>{let{contentWithIds:r}=Se(t),n={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},s=async()=>{o("printable-content")},o=async a=>{let l=document.getElementById(a);if(!l)throw new Error(`Element with id ${a} not found`);let c=document.createElement("canvas"),p=window.devicePixelRatio;c.width=Math.max(l.clientWidth||0)*p,c.height=Math.max(l.clientHeight||0)*p+100;let g=c.getContext("2d");if(!g)throw new Error("Failed to get 2D context");let m=g.drawImage,w=Array.from(l.getElementsByTagName("img")).reduce((X,I)=>(X[I.src]=I,X),{});g.drawImage=function(...X){let[I,oe,ne,b,M,Z,me,E,j]=X;if(I instanceof HTMLImageElement){let ue=w[I.src].style.objectFit||"fill",K=w[I.src].style.objectPosition||"center center";M=I.height,b=I.width;let $=b/M,T=E/j,[ge,se]=K.split(" ");switch(se||(se=ge),ue){case"cover":if($>T){let B=M*T,R=(b-B)/2;ge==="left"&&(R=0),ge==="right"&&(R=b-B),oe+=R,b=B}else{let B=b/T,R=(M-B)/2;se==="top"&&(R=0),se==="bottom"&&(R=M-B),ne+=R,M=B}break;case"contain":if($>T){let B=E/$,R=(j-B)/2;se==="top"&&(R=0),se==="bottom"&&(R=j-B),me+=R,j=B}else{let B=j*$,R=(E-B)/2;ge==="left"&&(R=0),ge==="right"&&(R=E-B),Z+=R,E=B}break;case"fill":break}}return m.call(g,I,oe,ne,b,M,Z,me,E,j)};let y=document.getElementById(a);if(!y)throw new Error(`Element with id ${a} not found`);var h=c.width,v=c.height;let P=(await(0,At.default)(y,{canvas:c,windowHeight:v,windowWidth:h,scale:window.devicePixelRatio})).toDataURL("image/png"),F=new _e.jsPDF({}).getImageProperties(P),_=297,de=_*(F.height/F.width),pe=new _e.jsPDF({unit:"mm",format:[_,de]});pe.addImage(P,"PNG",0,0,_,de),pe.save("print.pdf")},i=[n,...r];return(0,nt.jsxs)("div",{className:"w-[297mm]",children:[(0,nt.jsx)("div",{className:"fixed top-20 right-4 nt-[1000] print:hidden",children:(0,nt.jsx)(G,{onClick:s,variant:"outline",className:"px-5 py-2 text-sm font-semibold",children:"Print to PDF"})}),(0,nt.jsxs)("div",{id:"printable-content",children:[i.map((a,l)=>(0,nt.jsx)(nt.Fragment,{children:l===0?(0,nt.jsx)("section",{className:"title-page w-full h-full",children:(0,nt.jsx)(Oe,{hero:t.hero,title:t.title})},l):(0,nt.jsxs)("section",{className:"normal-page",children:[a.blockName&&(0,nt.jsx)(He,{title:a.blockName}),(0,nt.jsx)(Ue,{blocks:[a],fill:!0})]},l)})),(0,nt.jsx)("section",{className:"normal-page",children:(0,nt.jsxs)("div",{className:`w-full py-2 px-8 flex justify-between items-center
|
|
5
|
+
dark bg-background text-primary`,children:[(0,nt.jsxs)("div",{className:"flex px-6 items-center space-nt-2",children:[(0,nt.jsx)("img",{src:he.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,nt.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,nt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})]})},It=({page:t,layout:e="portrait"})=>{let{contentWithIds:r}=Se(t),n=(0,D.useRef)(null),s=(0,D.useRef)(null),o=(0,D.useRef)(new We.Previewer),[i,a]=(0,D.useState)(0),c=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...r],p=(0,D.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(m=>a(m.pageCount)).catch(m=>console.error("Paged.js error:",m)))},[]);return(0,D.useEffect)(()=>{o.current=new We.Previewer,p()},[p]),(0,nt.jsxs)("div",{className:"pagedjs-container",children:[(0,nt.jsx)("div",{className:"fixed top-20 right-4 nt-[1000] print:hidden",children:(0,nt.jsx)(G,{onClick:async()=>{await new Promise(m=>setTimeout(m,300)),window.print()},variant:"outline",className:"px-5 py-2 text-sm font-semibold",children:"Print to PDF"})}),(0,nt.jsx)("div",{id:"printable-content",ref:s,style:{display:"block"},className:"pagedjs-content",children:c.map((m,w)=>{var y,h;return(0,nt.jsx)(nt.Fragment,{children:w===0?(0,nt.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,nt.jsx)(Oe,{hero:t.hero,title:t.title})},w):(0,nt.jsxs)("section",{className:d("pagedjs-section normal-page h-[699px]",`h-[${Cr("185mm")}px]`,((h=(y=m.theme)==null?void 0:y.settings)==null?void 0:h.theme)==="dark"?"dark":"light"),children:[m.blockName&&(0,nt.jsx)(He,{title:m.blockName}),(0,nt.jsx)(Ue,{blocks:[m],fill:!0})]},w)})})}),(0,nt.jsx)("div",{ref:n,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-
|
|
2
|
+
"use strict";import{a,b,c}from"../../chunk-LVHQ5ZSP.mjs";import"../../chunk-KKSMDJRP.mjs";import"../../chunk-X6QN5C6U.mjs";import"../../chunk-6YV7RK6Q.mjs";import"../../chunk-NRL4U42W.mjs";import"../../chunk-UD7JYMRU.mjs";import"../../chunk-AUBKJ4XO.mjs";import"../../chunk-6LKCK2EH.mjs";import"../../chunk-23EQTK7B.mjs";import"../../chunk-6P7CY367.mjs";import"../../chunk-IYERYBWZ.mjs";import"../../chunk-4VPOPPLA.mjs";import"../../chunk-X5FDSTRM.mjs";import"../../chunk-MHVWWZUW.mjs";import"../../chunk-44VMK4FL.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-M6M43TLT.mjs";import"../../chunk-FGWIT6CV.mjs";import"../../chunk-ZWKWU7U4.mjs";import"../../chunk-EY5QX73B.mjs";import"../../chunk-YCX5N23N.mjs";import"../../chunk-GL6F4PKJ.mjs";import"../../chunk-RHPFEIP4.mjs";import"../../chunk-NGK3IDFP.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-YNDKGRL6.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-KDGEXDC5.mjs";import"../../chunk-Y2KKUQDU.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-VZXLXNVY.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-BDX257W2.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-22FHCZJD.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-C5XNOZXC.mjs";import"../../chunk-WU3JMLSC.mjs";import"../../chunk-S7OK7D5I.mjs";export{b as FlowPrintable,c as PagePrintable,a as Printable};
|