cortex-react-components 1.50.2 → 1.51.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-UBA3ZRKC.mjs → chunk-23BDC5JG.mjs} +1 -1
- package/dist/{chunk-Z4CK655R.mjs → chunk-23L5ZJ2U.mjs} +1 -1
- package/dist/{chunk-5YTDIEDJ.mjs → chunk-2IKC7MAP.mjs} +1 -1
- package/dist/{chunk-IIVWCHMJ.mjs → chunk-2QUIR7QH.mjs} +1 -1
- package/dist/chunk-3LJZCM5A.mjs +4 -0
- package/dist/{chunk-RDTDZ7IO.mjs → chunk-4BMIEMEO.mjs} +1 -1
- package/dist/{chunk-A5WSJINW.mjs → chunk-4WTGOYAN.mjs} +1 -1
- package/dist/{chunk-RQHUMYHG.mjs → chunk-5GMSJQA2.mjs} +1 -1
- package/dist/{chunk-P7YRU4AM.mjs → chunk-5J3MWP62.mjs} +1 -1
- package/dist/{chunk-SJR3DHN4.mjs → chunk-65C6PZZX.mjs} +1 -1
- package/dist/{chunk-5FZPC2CH.mjs → chunk-6A46EVGW.mjs} +1 -1
- package/dist/{chunk-3CEV5JAG.mjs → chunk-7HBGRPQN.mjs} +1 -1
- package/dist/{chunk-2NGH7WXP.mjs → chunk-7UHGKJPF.mjs} +1 -1
- package/dist/chunk-A24EPYUY.mjs +1 -0
- package/dist/{chunk-TM37LU2K.mjs → chunk-A4B2LNGJ.mjs} +1 -1
- package/dist/{chunk-IJICNQTM.mjs → chunk-AM44Y4MD.mjs} +1 -1
- package/dist/{chunk-V6QZFOJH.mjs → chunk-ATONX5RA.mjs} +1 -1
- package/dist/{chunk-63JK55U4.mjs → chunk-CL5GYTAQ.mjs} +1 -1
- package/dist/chunk-FG7NJIJK.mjs +1 -0
- package/dist/{chunk-DESYC5BB.mjs → chunk-GHBJK554.mjs} +1 -1
- package/dist/{chunk-NEF5JGLN.mjs → chunk-HKBNK7DA.mjs} +1 -1
- package/dist/chunk-IJCMUPNH.mjs +4 -0
- package/dist/chunk-IKD535M2.mjs +1 -0
- package/dist/{chunk-AAI2VZST.mjs → chunk-IO222G5L.mjs} +1 -1
- package/dist/{chunk-QASPLGWV.mjs → chunk-LKHCZTYP.mjs} +1 -1
- package/dist/{chunk-ZEUTWH7B.mjs → chunk-MJ7JYSH6.mjs} +1 -1
- package/dist/{chunk-EQDX6HFN.mjs → chunk-N6PIPF2S.mjs} +1 -1
- package/dist/{chunk-I3JB7SE2.mjs → chunk-NETY6BCN.mjs} +1 -1
- package/dist/{chunk-W3LND6WX.mjs → chunk-NFLO3GPI.mjs} +1 -1
- package/dist/chunk-QKGEV7LG.mjs +1 -0
- package/dist/{chunk-KEUZSK3N.mjs → chunk-QMFZRG7O.mjs} +1 -1
- package/dist/{chunk-MJRUIYWE.mjs → chunk-RNCMCAZX.mjs} +1 -1
- package/dist/{chunk-GOMLTG5W.mjs → chunk-RZTXT4UD.mjs} +1 -1
- package/dist/{chunk-LF2TON3F.mjs → chunk-TBYWZYI6.mjs} +1 -1
- package/dist/chunk-THOLC3E6.mjs +1 -0
- package/dist/{chunk-BC4FD5AV.mjs → chunk-UMEESL5A.mjs} +1 -1
- package/dist/chunk-UU4NDOU7.mjs +1 -0
- package/dist/{chunk-5RES3EGQ.mjs → chunk-VA4VHZQ4.mjs} +1 -1
- package/dist/{chunk-R42CF5IM.mjs → chunk-VNYUFBRJ.mjs} +1 -1
- package/dist/{chunk-U76FODRW.mjs → chunk-VZWV4G25.mjs} +1 -1
- package/dist/chunk-XB5WL3OT.mjs +4 -0
- package/dist/chunk-XGNF75KY.mjs +4 -0
- package/dist/chunk-Y74ENEUN.mjs +4 -0
- package/dist/{chunk-ZLX5DHEL.mjs → chunk-ZFJOVMNQ.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.css +1 -0
- package/dist/components/Blocks/Content.stories.js +4 -0
- package/dist/components/Blocks/Content.stories.mjs +1 -0
- 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/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 +4 -2
- 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 +2 -2
- package/dist/components/Layouts/BlogList.mjs +1 -1
- package/dist/components/Layouts/BlogList.stories.js +2 -2
- 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 +5 -5
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/SlideShow.stories.js +5 -5
- package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
- package/dist/components/Layouts/index.js +6 -6
- 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/Link/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 +11 -12
- 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 +169 -169
- 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 +6 -6
- 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 +2 -2
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/payload-types.d.ts +53 -32
- 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/tests/payload.d.ts +124 -14
- package/dist/tests/payload.js +1 -1
- package/dist/tests/payload.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 +1 -1
- package/dist/chunk-2MC5DSC7.mjs +0 -4
- package/dist/chunk-ITZ5HFK6.mjs +0 -1
- package/dist/chunk-IV5DGAEA.mjs +0 -1
- package/dist/chunk-JH57FKKK.mjs +0 -1
- package/dist/chunk-KJBMLPHS.mjs +0 -4
- package/dist/chunk-KPBUBVEA.mjs +0 -1
- package/dist/chunk-MNDA6BQL.mjs +0 -4
- package/dist/chunk-NLFCSX3M.mjs +0 -4
- package/dist/chunk-VW33NKNZ.mjs +0 -4
- package/dist/chunk-YCB5LFNI.mjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{b as D,c as j}from"./chunk-
|
|
4
|
+
import{b as D,c as j}from"./chunk-5J3MWP62.mjs";import{a as T}from"./chunk-UU4NDOU7.mjs";import{b as I}from"./chunk-BDX257W2.mjs";import{a as O}from"./chunk-NIQ4466A.mjs";import{a as F}from"./chunk-C5XNOZXC.mjs";import{a as U}from"./chunk-WU3JMLSC.mjs";import{useEffect as _,useRef as L,useState as ee,useCallback as te}from"react";import{Previewer as q}from"pagedjs";import oe from"html2canvas";import{jsPDF as J}from"jspdf";import{Fragment as K,jsx as e,jsxs as f}from"react/jsx-runtime";function ne(i){var n=document.createElement("div");n.style.display="block",n.style.height=i,document.body.appendChild(n);var v=parseFloat(window.getComputedStyle(n,null).height);return n.parentNode&&n.parentNode.removeChild(n),Math.floor(v)}var be=({page:i,layout:n="portrait"})=>n==="flow"?e(ie,{page:i,layout:n}):e(re,{page:i,layout:n}),ie=({page:i,layout:n="portrait"})=>{let{contentWithIds:v}=F(i),m={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},R=async()=>{x("printable-content")},x=async a=>{let s=document.getElementById(a);if(!s)throw new Error(`Element with id ${a} not found`);let l=document.createElement("canvas"),y=window.devicePixelRatio;l.width=Math.max(s.clientWidth||0)*y,l.height=Math.max(s.clientHeight||0)*y+100;let b=l.getContext("2d");if(!b)throw new Error("Failed to get 2D context");let r=b.drawImage,g=Array.from(s.getElementsByTagName("img")).reduce((C,c)=>(C[c.src]=c,C),{});b.drawImage=function(...C){let[c,X,Y,d,p,A,G,h,u]=C;if(c instanceof HTMLImageElement){let V=g[c.src].style.objectFit||"fill",Z=g[c.src].style.objectPosition||"center center";p=c.height,d=c.width;let E=d/p,H=h/u,[P,w]=Z.split(" ");switch(w||(w=P),V){case"cover":if(E>H){let t=p*H,o=(d-t)/2;P==="left"&&(o=0),P==="right"&&(o=d-t),X+=o,d=t}else{let t=d/H,o=(p-t)/2;w==="top"&&(o=0),w==="bottom"&&(o=p-t),Y+=o,p=t}break;case"contain":if(E>H){let t=h/E,o=(u-t)/2;w==="top"&&(o=0),w==="bottom"&&(o=u-t),G+=o,u=t}else{let t=u*E,o=(h-t)/2;P==="left"&&(o=0),P==="right"&&(o=h-t),A+=o,h=t}break;case"fill":break}}return r.call(b,c,X,Y,d,p,A,G,h,u)};let k=document.getElementById(a);if(!k)throw new Error(`Element with id ${a} not found`);var N=l.width,Q=l.height;let W=(await oe(k,{canvas:l,windowHeight:Q,windowWidth:N,scale:window.devicePixelRatio})).toDataURL("image/png"),S=new J({}).getImageProperties(W),B=297,z=B*(S.height/S.width),$=new J({unit:"mm",format:[B,z]});$.addImage(W,"PNG",0,0,B,z),$.save("print.pdf")},M=[m,...v];return f("div",{className:"w-[297mm]",children:[e("div",{className:"fixed top-20 right-4 z-[1000] print:hidden",children:e(I,{onClick:R,variant:"outline",className:"px-5 py-2 text-sm font-semibold",children:"Print to PDF"})}),f("div",{id:"printable-content",children:[M.map((a,s)=>e(K,{children:s===0?e("section",{className:"title-page w-full h-full",children:e(j,{hero:i.hero,title:i.title})},s):f("section",{className:"normal-page",children:[a.blockName&&e(D,{title:a.blockName}),e(T,{blocks:[a],fill:!0})]},s)})),e("section",{className:"normal-page",children:f("div",{className:`w-full py-2 px-8 flex justify-between items-center
|
|
5
5
|
dark bg-background text-primary`,children:[f("div",{className:"flex px-6 items-center space-x-2",children:[e("img",{src:U.src,alt:"Cortex Reply Logo",className:"h-8"}),e("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),e("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})]})},re=({page:i,layout:n="portrait"})=>{let{contentWithIds:v}=F(i),m=L(null),R=L(null),x=L(new q),[M,a]=ee(0),l=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...v],y=te(()=>{m.current&&(m.current&&(m.current.innerHTML=""),x.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",n==="landscape"?"./landscape.css":"./portrait.css"],m.current).then(r=>a(r.pageCount)).catch(r=>console.error("Paged.js error:",r)))},[]);return _(()=>{x.current=new q,y()},[y]),f("div",{className:"pagedjs-container",children:[e("div",{className:"fixed top-20 right-4 z-[1000] print:hidden",children:e(I,{onClick:async()=>{await new Promise(r=>setTimeout(r,300)),window.print()},variant:"outline",className:"px-5 py-2 text-sm font-semibold",children:"Print to PDF"})}),e("div",{id:"printable-content",ref:R,style:{display:"block"},className:"pagedjs-content",children:l.map((r,g)=>{var k,N;return e(K,{children:g===0?e("section",{className:"pagedjs-section title-page w-full h-full",children:e(j,{hero:i.hero,title:i.title})},g):f("section",{className:O("pagedjs-section normal-page h-[699px]",`h-[${ne("185mm")}px]`,((N=(k=r.theme)==null?void 0:k.settings)==null?void 0:N.theme)==="dark"?"dark":"light"),children:[r.blockName&&e(D,{title:r.blockName}),e(T,{blocks:[r],fill:!0})]},g)})})}),e("div",{ref:m,className:"preview-container"})]})};export{be as a,ie as b,re as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=[{date:new Date(2025,3,18),name:"Good Friday"},{date:new Date(2025,3,21),name:"Easter Monday"},{date:new Date(2025,4,5),name:"Early May bank holiday"},{date:new Date(2025,5,26),name:"Spring bank holiday"},{date:new Date(2025,7,25),name:"Summer bank holiday"},{date:new Date(2025,11,25),name:"Christmas Day"},{date:new Date(2025,11,26),name:"Boxing Day"}];export{a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{c as k,h as R,i as v,k as S,l as f,o as x,p as u,q as c,r as y,s as w,v as P,w as B,x as L}from"./chunk-
|
|
4
|
+
import{c as k,h as R,i as v,k as S,l as f,o as x,p as u,q as c,r as y,s as w,v as P,w as B,x as L}from"./chunk-2IKC7MAP.mjs";import{a as n}from"./chunk-BSQVKZCW.mjs";import{a as g,b as N,c as M}from"./chunk-YNCJATT7.mjs";import{ChevronRight as A}from"lucide-react";import T from"clsx";import{Fragment as H,jsx as e,jsxs as i}from"react/jsx-runtime";function J({mainNav:o,secondaryNav:l,title:b,subTitle:a,pathName:p,menuHeading:d,onNavClick:s,loading:r=!1,LinkComponent:h,...F}){let C=h?t=>e(h,{...t}):s?({href:t,children:m,...I})=>e("button",{onClick:()=>s&&s(t),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...I,children:m}):t=>e("a",{...t});return i(k,{...F,variant:"inset",children:[e(R,{children:e(u,{children:e(c,{children:r?i("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e(n,{className:"bg-gray-200 my-2 w-full h-7"}),e(n,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):i("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e("span",{className:"truncate font-semibold",children:b}),a&&e("span",{className:"truncate text-sm",children:a})]})})})}),r&&i(S,{children:[e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"})]}),i(S,{children:[o&&!r&&o.map((t,m)=>e(G,{subNav:t,pathName:p,Link:C},m)),e(f,{className:"mt-auto",children:e(x,{children:e(u,{children:l&&!r&&l.map(t=>e(c,{children:e(y,{asChild:!0,size:"sm",children:i(C,{href:t.url||"",children:[t.icon&&e(t.icon,{}),e("span",{children:t.label})]})})},t.label))})})})]}),e(v,{})]})}function G({subNav:o,pathName:l,Link:b}){var d,s;let a=o,p=!1;return a.links&&a.links.map(r=>{r.url===l&&(p=!0)}),e(g,{defaultOpen:!0,className:"group/collapsible",children:e(f,{className:"py-0",children:e(u,{children:e(g,{asChild:!0,defaultOpen:a.isActive,children:i(c,{children:[e(y,{asChild:!0,tooltip:a.label,className:T(p&&"font-bold text-accent"),children:i(b,{href:a.url,children:[a.icon&&e(a.icon,{}),e("span",{children:a.label})]})}),(d=a.links)!=null&&d.length?i(H,{children:[e(N,{asChild:!0,children:i(w,{className:"data-[state=open]:rotate-90",children:[e(A,{}),e("span",{className:"sr-only",children:"Toggle"})]})}),e(M,{children:e(P,{children:(s=a.links)==null?void 0:s.map(r=>e(B,{children:e(L,{asChild:!0,className:T(r.url===l&&"font-bold text-accent"),children:e(b,{href:r.url,children:e("span",{children:r.label})})})},r.label))})})]}):null]})},a.label)})})})}export{J as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-423OEU3K.mjs";import{e as r}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-423OEU3K.mjs";import{e as r}from"./chunk-THOLC3E6.mjs";import m from"clsx";import{jsx as o,jsxs as l}from"react/jsx-runtime";var g=i=>{let{className:n,docs:t,introContent:e}=i;return l("div",{className:m("container",n),children:[e&&o(r,{content:e,enableGutter:!1}),o("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:t==null?void 0:t.map((s,p)=>typeof s=="string"?null:o(a,{doc:s,relationTo:"posts",showCategories:!0},p))})]})};export{g as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as
|
|
4
|
+
import{a as u}from"./chunk-3TIFSACL.mjs";import{a as v}from"./chunk-XDP6BKTK.mjs";import{a as m}from"./chunk-NIQ4466A.mjs";import{useState as f,useEffect as b}from"react";import{Menu as x,ChevronDown as w}from"lucide-react";import N from"next/image";import{jsx as e,jsxs as t}from"react/jsx-runtime";function O({logoVideo:p,logoLight:s,logoDark:i,menuItems:a,title:r,subtitle:n}){let[c,d]=f(!1),[l,g]=f(!1),h=()=>{let o=document.getElementById("next-section");o&&o.scrollIntoView({behavior:"smooth"})};return b(()=>{let o=()=>{window.scrollY>100?d(!0):d(!1)};return window.addEventListener("scroll",o,{passive:!0}),()=>window.removeEventListener("scroll",o)},[]),t("div",{className:"relative h-screen",children:[t("div",{className:"absolute inset-0 w-full h-screen overflow-hidden",children:[t("video",{className:"object-cover w-full h-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[e("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),e("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!c&&!l&&e("button",{className:"fixed hidden lg:block top-4 right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{g(!l)},children:e(x,{className:"w-6 h-6 text-white"})}),t("div",{className:"fixed top-0 left-0 right-0 z-50",children:[e(u,{isMenuOpen:c||l,logoLight:s,logoDark:i,menuItems:a}),e(v,{isMenuOpen:!0,logoLight:s,logoDark:i,menuItems:a})]}),t("div",{className:"absolute inset-0 h-full z-10 flex flex-col items-center justify-between text-white text-center px-4",children:[e(N,{src:p,alt:"Cortex Reply Logo",width:720,height:320,className:m("absolute top-2.5 h-auto w-auto mt-8 hidden lg:block",l&&"lg:hidden")}),t("div",{className:"absolute top-1/2vv h-full flex flex-col px-4 items-center justify-center",children:[e("h1",{className:"text-6xl font-bold pt-auto mb-12",children:r&&r}),e("div",{className:"text-3xl mb-8 max-w-2xl",children:n&&n})]}),e("div",{className:"absolute bottom-10 flex justify-center items-center w-full mb-8",children:e("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:h,children:e(w,{size:64})})})]})]})}export{O as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-SV7NMNDI.mjs";import{a as e}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-SV7NMNDI.mjs";import{a as e}from"./chunk-65C6PZZX.mjs";import{a as o}from"./chunk-M6M43TLT.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import{jsx as i,jsxs as c}from"react/jsx-runtime";function S({sectionHeading:p,cards:a}){return i("section",{className:"section-padding-primary !pt-0",children:c(n,{children:[i("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:i(e,{...p,alignment:"center",hasBottomSpacing:!0})}),a&&a.length>0&&i("div",{className:"grid gap-30px",children:a.map((d,t)=>i("div",{"data-aos":"fade-up","data-aos-delay":r([200,400,600],t),className:"py-2",children:i(o,{...d})},t))})]})})}export{S as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as A,j as D,k as H,l as L,m as E,n as M,o as _}from"./chunk-O5BAW5XQ.mjs";import{a as g}from"./chunk-44VMK4FL.mjs";import{a as T}from"./chunk-ALTFHQW6.mjs";import{a as P}from"./chunk-IBV34MLI.mjs";import{a as C}from"./chunk-2NFKSNJW.mjs";import{b as B}from"./chunk-BDX257W2.mjs";import{a as N}from"./chunk-SFLOMJ2U.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{jsx as y,jsxs as G}from"react/jsx-runtime";var w=({links:a,richText:e})=>y("div",{className:"container",children:G("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:[y("div",{className:"max-w-[48rem] flex items-center",children:e&&y(p,{className:"mb-0",content:e,enableGutter:!1})}),y("div",{className:"flex flex-col gap-8",children:(a||[]).map(({link:r},c)=>y(g,{size:"lg",...r},c))})]})});import{jsx as s,jsxs as h}from"react/jsx-runtime";function R(a){return a&&typeof a=="object"&&"type"in a&&"iconName"in a}function S({variant:a="outline",className:e,icon:r,iconSize:c="large",width:l="auto",heading:t,subheading:n,content:m,statistic:u,buttonText:f,buttonHref:k}){let x={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:""},z={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return h("div",{className:i("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",x[a],a==="outline"?"text-gray-900":"text-white",e,z[l]),"data-aos":"flip-left","data-aos-easing":"ease-out-cubic","data-aos-duration":"1000",children:[s("div",{className:"flex items-center gap-4 mb-2",children:s(j,{icon:r,heading:t,variant:a,iconSize:c})}),u&&s("div",{className:"mb-6",children:s("div",{className:"text-4xl text-wrap font-bold leading-none overflow-hidden",children:u})}),n&&s("div",{className:"mb-4 text-xl md:text-2xl font-light",children:n}),m&&typeof m=="object"&&s("div",{className:i("space-y-6","text-gray-300"),children:s(p,{enableGutter:!1,content:m,enableProse:!1,className:i("prose prose-headings:text-white prose-p:text-gray-300")})}),m&&typeof m=="string"&&s("div",{className:i("space-y-6","text-gray-300"),children:m}),f&&s("div",{className:"mt-auto pt-6 flex items-center justify-center",children:s(B,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:s("a",{href:k,children:f})})}),a==="radial"&&s("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 j=({icon:a,heading:e,variant:r,iconSize:c})=>a&&c==="small"?h("div",{className:"flex items-start gap-4 mb-2",children:[R(a)&&s("div",{className:i("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",r==="outline"||r==="light"?"text-accent":"text-foreground",c==="small"?"mt-2":""),children:s(N,{type:a.type,iconName:a.iconName,size:"2x"})}),s("div",{className:i("font-semibold",r==="outline"||r==="light"?"text-primary":"text-foreground",c==="small"?"text-2xl":"text-3xl"),children:e})]}):a?h("div",{className:"flex flex-col gap-4",children:[R(a)&&s("div",{className:i("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",r==="outline"||r==="light"?"text-accent":"text-foreground"),children:s(N,{type:a.type,iconName:a.iconName,size:"4x"})}),s("h3",{className:i("font-semibold",r==="outline"||r==="light"?"text-2xl text-primary":"text-3xl"),children:e})]}):s("div",{className:"flex items-center gap-4 mb-2",children:s("div",{className:i("font-semibold",r==="outline"||r==="light"?"text-2xl text-primary":"text-3xl"),children:e})});import{jsx as d,jsxs as J}from"react/jsx-runtime";var I=({title:a,description:e,features:r,id:c})=>J("section",{className:i("container w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[a&&d("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl text-primary",id:c||"",children:a}),e&&typeof e=="string"&&d("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:e}),e&&typeof e=="object"&&d("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:d(p,{content:e,enableGutter:!1})}),d("div",{className:`grid gap-8 mt-10 md:grid-cols-${r?r.length:1}`,children:r&&r.map((l,t)=>{var m,u,f,k,x;let n=()=>{if(l.icon&&"type"in l.icon&&l.icon.type!=="none")return{type:l.icon.type,iconName:l.icon.icon}};return d(S,{variant:((m=l.settings)==null?void 0:m.card)==="default"?"light":((u=l.settings)==null?void 0:u.card)||"outline",icon:n()||void 0,iconSize:((f=l.settings)==null?void 0:f.iconSize)||"large",width:"auto",heading:l.title||"",content:l.content||void 0,statistic:l.statistic||void 0,buttonText:(k=l.link)!=null&&k.url?"Find out more":void 0,buttonHref:((x=l.link)==null?void 0:x.url)||void 0},t)})})]});import U,{Fragment as X}from"react";import{jsx as o}from"react/jsx-runtime";function b({nodes:a}){return o(X,{children:a==null?void 0:a.map((e,r)=>{if(e==null)return null;if(e.type==="text"&&e.text){let t=o(U.Fragment,{children:e.text},r);return e.format&1&&(t=o("strong",{children:t},r)),e.format&2&&(t=o("em",{children:t},r)),e.format&4&&(t=o("span",{style:{textDecoration:"line-through"},children:t},r)),e.format&8&&(t=o("span",{style:{textDecoration:"underline"},children:t},r)),e.format&16&&(t=o("code",{children:e.text},r)),e.format&32&&(t=o("sub",{children:t},r)),e.format&64&&(t=o("sup",{children:t},r)),t}if(e.type==="table")return o("table",{children:o("tbody",{children:e.children.map((t,n)=>o("tr",{children:t.children.map((m,u)=>o("td",{children:b({nodes:m.children})},u))},n))})},r);let c=t=>{if(t.children==null)return null;if((t==null?void 0:t.type)==="list"&&(t==null?void 0:t.listType)==="check")for(let n of t.children)"checked"in n&&(n!=null&&n.checked||(n.checked=!1));return b({nodes:t.children})},l="children"in e?c(e):"";if(e.type==="block"){let t=e.fields,n=t==null?void 0:t.blockType;if(!t||!n)return null;switch(n){case"cta":return o(w,{...t},r);case"mediaBlock":return o(T,{className:"col-start-1 col-span-3",imgClassName:"m-0",...t,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"imageBlock":return o(P,{className:"col-start-1 col-span-3",imgClassName:"m-0",...t,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"banner":return o(F,{className:"col-start-2 mb-4",...t},r);case"code":return o(C,{className:"col-start-2",...t},r);case"features":return o(I,{...t},r);case"reusableContentBlock":b({nodes:t.reusableContent.layout});default:return null}}else switch(e.type){case"linebreak":return o("br",{className:"col-start-2"},r);case"paragraph":return o("p",{className:"col-start-2",children:l},r);case"heading":{let t=e==null?void 0:e.tag;return o(t,{className:"col-start-2",id:(e==null?void 0:e.id)||"",children:l},r)}case"list":{let t=e==null?void 0:e.tag;return o(t,{className:"list col-start-2",children:l},r)}case"listitem":return(e==null?void 0:e.checked)!=null?o("li",{"aria-checked":e.checked?"true":"false",className:` ${e.checked,""}`,role:"checkbox",tabIndex:-1,value:e==null?void 0:e.value,children:l},r):o("li",{value:e==null?void 0:e.value,children:l},r);case"quote":return o("blockquote",{className:"col-start-2",children:l},r);case"link":{let t=e.fields;return o(g,{newTab:!!(t!=null&&t.newTab),reference:t.doc,type:t.linkType==="internal"?"reference":"custom",url:t.url,children:l},r)}case"autolink":{let t=e.fields;return o(g,{newTab:!!(t!=null&&t.newTab),reference:t.doc,type:t.linkType==="internal"?"reference":"custom",url:t.url,children:l},r)}default:return null}})})}import{jsx as $}from"react/jsx-runtime";var p=({className:a,content:e,enableGutter:r=!0,enableProse:c=!0})=>{var l;return e?$("div",{className:i({"container ":r,"max-w-none":!r,"mx-auto prose dark:prose-invert ":c},a),children:e&&!Array.isArray(e)&&typeof e=="object"&&"root"in e&&b({nodes:(l=e==null?void 0:e.root)==null?void 0:l.children})}):null};import{jsx as v}from"react/jsx-runtime";var F=({className:a,content:e,style:r})=>v("div",{className:i("mx-auto my-8 w-full",a),children:v("div",{className:i("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:v(p,{content:e,enableGutter:!1,enableProse:!1})})});export{F as a,w as b,I as c,b as d,p as e,S as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"./chunk-UMILL4LR.mjs";import{a as r}from"./chunk-KML6U7IE.mjs";import{a as l}from"./chunk-
|
|
1
|
+
import{a as m}from"./chunk-UMILL4LR.mjs";import{a as r}from"./chunk-KML6U7IE.mjs";import{a as l}from"./chunk-65C6PZZX.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import v from"next/image";import{FaEnvelope as x,FaPhoneFlip as h}from"react-icons/fa6";import{Fragment as N,jsx as e,jsxs as t}from"react/jsx-runtime";function H(s){let{sectionHeading:d,image:a}=s;return t(N,{children:[e("section",{className:"section-padding-primary",children:e("div",{className:"",children:e("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:e("div",{className:"mx-auto max-w-2xl space-y-16 divide-y divide-gray-100 lg:mx-0 lg:max-w-none",children:t("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[t("div",{children:[e("h2",{className:"text-pretty text-4xl font-semibold tracking-tight text-accent",children:"Locations"}),e("p",{className:"mt-4 text-base/7 text-foreground",children:"We have multiple locations across the UK where we are based. These are our key locations."})]}),e("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:s.locations&&s.locations.map((i,c)=>{var o;return t("div",{className:"rounded-2xl p-10 border",children:[e("h3",{className:"text-base/7 font-semibold text-accent",children:i.title}),t("address",{className:"mt-3 space-y-1 text-sm/6 not-italic text-foreground",children:[(o=i.location.split(","))==null?void 0:o.map((p,g)=>e("p",{children:p},g))," ",i.mails&&t("p",{className:"flex items-center space-x-2",children:[e(x,{className:"pr-2 text-accent size-auto"}),e("span",{children:i.mails[0]})]}),i.phoneNumbers&&i.phoneNumbers.length>0&&t("p",{className:"flex items-center space-x-2",children:[e(h,{className:"pr-2 text-accent size-auto"}),i.phoneNumbers[0]]})]})]},c)})})]})})})})}),e("section",{className:"section-padding-primary",children:t("div",{className:"relative py-[60px]",children:[e("div",{className:"absolute left-0 top-0 z-1 h-full w-full overflow-hidden bg-red-500 md:w-[56%] md:rounded-r-5",children:e(v,{src:a.src,alt:a.alt,fill:!0,className:"object-cover",sizes:"(min-width: 768px) 60vw, 100vw",placeholder:"blur",blurDataURL:r})}),e(n,{children:e("div",{className:"ml-auto md:w-1/2",children:t("div",{className:"relative z-[2] rounded-5 bg-white p-10 shadow-1 dark:bg-accent-700 lg:p-[60px]",children:[e("div",{className:"mb-30px",children:e(l,{...d,invert:!0})}),e(m,{})]})})})]})})]})}export{H as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as b}from"./chunk-VA4VHZQ4.mjs";import{a as k}from"./chunk-FG7NJIJK.mjs";import{b as u,c as f}from"./chunk-THOLC3E6.mjs";import{a as g}from"./chunk-ALTFHQW6.mjs";import{a as s}from"./chunk-NIQ4466A.mjs";import p from"next/image";import{jsx as a,jsxs as h}from"react/jsx-runtime";var y={content:k,cta:u,mediaBlock:g,imageBlock:g,features:f,reusableContentBlock:b},w=r=>{let{blocks:e}=r;return e&&Array.isArray(e)&&e.length>0?a("section",{id:"render-blocks",className:s(r.fill?"h-full w-full":""),children:e.map((t,i)=>{var l,m;let{blockType:o}=t,n=t==null?void 0:t.theme;if(o&&o in y){let d=y[o];if(d)return h("div",{className:s("py-6 relative",r.fill&&"flex h-full items-center justify-center"),children:[a(v,{block:t,index:i}),a("div",{className:s("container h-full",((l=n==null?void 0:n.settings)==null?void 0:l.theme)==="dark"?"dark":((m=n==null?void 0:n.settings)==null?void 0:m.theme)==="green"?"green":""),children:a(d,{...t})})]},i)}return null})}):null},v=r=>{var c,t,i,o,n;if(!("theme"in r.block))return null;let e=(c=r.block)==null?void 0:c.theme;if(e.settings.background==="image"){let l={imagePosition:e.settings.imagePosition||"left",overlay:e.settings.overlay!==void 0?e.settings.overlay:!0};return h("div",{className:s("absolute inset-0 w-full h-full -z-10",e.settings.theme==="dark"?"dark bg-background":e.settings.theme==="green"?"green bg-background":""),children:[a(p,{src:((i=(t=e.settings)==null?void 0:t.image)==null?void 0:i.url)||"/placeholder.svg",alt:((n=(o=e.settings)==null?void 0:o.image)==null?void 0:n.alt)||"",fill:!0,className:"object-cover",priority:!0}),e.settings.overlay&&a("div",{className:"absolute inset-0",style:{background:l.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return a("div",{className:s("absolute inset-0 -z-10 w-screen h-full",e.settings.theme==="dark"?"dark bg-background":e.settings.theme==="green"?"green bg-background":"")})};export{w as a,v as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as f}from"./chunk-
|
|
1
|
+
import{a as f}from"./chunk-FG7NJIJK.mjs";import{b as u,c as y}from"./chunk-THOLC3E6.mjs";import{a as c}from"./chunk-ALTFHQW6.mjs";import{a as p}from"./chunk-NIQ4466A.mjs";import{Fragment as g,jsx as t}from"react/jsx-runtime";var F=s=>{let{customId:o,reusableContent:r}=s;return typeof r=="object"&&r!==null?t(C,{blocks:r.layout}):t(g,{})},k={content:f,cta:u,mediaBlock:c,imageBlock:c,features:y},C=s=>{let{blocks:o}=s;return o&&Array.isArray(o)&&o.length>0?t("section",{id:"render-blocks",children:o.map((n,d)=>{var l,i;let{blockType:a}=n,e=n==null?void 0:n.theme;if(a&&a in k){let m=k[a];if(m)return t("div",{className:"py-6 relative",children:t("div",{className:p(((l=e==null?void 0:e.settings)==null?void 0:l.theme)==="dark"?"dark":((i=e==null?void 0:e.settings)==null?void 0:i.theme)==="green"?"green":""),children:t(m,{...n})})},d)}return null})}):null};export{F as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as f}from"./chunk-BZAYEKYC.mjs";import{a as p}from"./chunk-
|
|
4
|
+
import{a as f}from"./chunk-BZAYEKYC.mjs";import{a as p}from"./chunk-6A46EVGW.mjs";import{a as c}from"./chunk-7UHGKJPF.mjs";import{a as u}from"./chunk-7HBGRPQN.mjs";import{a as s}from"./chunk-KSCHUMVE.mjs";import{a as o,b as a,c as i,e as m}from"./chunk-D76EO57Z.mjs";import{b as n}from"./chunk-BDX257W2.mjs";import{a as h}from"./chunk-GHBJK554.mjs";import{a as l}from"./chunk-WU3JMLSC.mjs";import{ExternalLink as d}from"lucide-react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function b({...r}){return t("div",{children:[e(h,{isMenuOpen:!0,logoLight:f,logoDark:l,...r.header}),r.hero&&r.hero.type==="lowImpact"&&e(c,{...r.hero}),r.hero&&r.hero.type==="mediumImpact"&&e(u,{...r.hero}),r.hero&&r.hero.type==="highImpact"&&e(p,{...r.hero}),r.hero&&r.hero.type==="postHero"&&e(s,{...r.hero}),e("div",{className:"container py-8",children:t("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-3",children:[e("div",{className:"lg:col-span-2",children:r.children}),t("div",{className:"space-y-6",children:[t(o,{children:[e(a,{children:e(i,{children:"Quick Actions"})}),t(m,{children:[e("p",{className:"mb-4 text-sm text-muted-foreground",children:"Get started with your first action in just a few clicks."}),e(n,{className:"w-full",children:"Create New"})]})]}),t(o,{children:[e(a,{children:e(i,{children:"Resources"})}),e(m,{children:t("nav",{className:"flex flex-col space-y-2",children:[t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["User Guide",e(d,{className:"ml-1 h-3 w-3"})]}),t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["API Documentation",e(d,{className:"ml-1 h-3 w-3"})]}),t("a",{href:"#",className:"inline-flex items-center text-sm text-blue-600 hover:underline",children:["View Pricing Details",e(d,{className:"ml-1 h-3 w-3"})]})]})})]})]})]})})]})}export{b as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as
|
|
4
|
+
import{a as D}from"./chunk-IQ7LAP7P.mjs";import{a as C}from"./chunk-NETY6BCN.mjs";import{useState as x,useCallback as w}from"react";import{DragDropContext as W}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as l,jsxs as h}from"react/jsx-runtime";var y=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function V({initialData:s,addNewDeal:g,updateDeal:n,addComment:b,addNewCustomer:f}){var i;let[r,c]=x(null),S=e=>{var o;return((o=s.deals)!=null?o:[]).filter(t=>t.status===e)},R=e=>e.reduce((o,t)=>o+(t.value||0),0),P=(e,o)=>{let t={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return e.reduce((a,d)=>a+(d.value||0)*t[o],0)},M=w(e=>{var m,p;let{source:o,destination:t}=e;if(!t||o.droppableId===t.droppableId&&o.index===t.index)return;let a=o.droppableId,d=t.droppableId,u=(m=s.deals)==null?void 0:m.filter(v=>v.id===o.index)[0],B=[...(p=s.deals)!=null?p:[]];u&&(u.status=d,n(u))},[n]);return l(W,{onDragEnd:M,children:h("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[l("div",{className:"flex space-x-4 pb-4",children:y.filter(e=>e!=="Won"&&e!=="Lost").map(e=>{var t,a;let o=S(e);return l(D,{status:e,deals:o,customers:(t=s.customers)!=null?t:[],users:s.users,categories:(a=s.categories)!=null?a:[],onDealClick:c,calculateColumnValue:R,calculateWeightedValue:P,addNewDeal:e==="Cold"?g:void 0,onAddCustomer:f},e)})}),r&&l(C,{deal:r,users:s.users,customer:r.customer,categories:(i=s.categories)!=null?i:[],onClose:()=>c(null),onSave:n,onAddComment:e=>b(r.id.toString(),e)})]})})}export{V as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{b as F,c as L}from"./chunk-A24EPYUY.mjs";import{a as b,b as h,d as P}from"./chunk-HWEPDRG6.mjs";import{a as x}from"./chunk-3LJZCM5A.mjs";import{a as f}from"./chunk-DWRQHV42.mjs";import{b as c}from"./chunk-BDX257W2.mjs";import{a as D}from"./chunk-NIQ4466A.mjs";import{useState as m,useEffect as w}from"react";import{format as C}from"date-fns";import{CalendarIcon as T}from"lucide-react";import{useRouter as E}from"next/navigation";import{Toaster as k,toast as v}from"sonner";import{jsx as e,jsxs as o}from"react/jsx-runtime";var I=({options:r,value:l,onChange:a,disabled:n=[]})=>e("div",{className:"flex space-x-2",children:r.map((t,i)=>e(c,{type:"button",variant:l===t?"default":"outline",onClick:()=>a(t),disabled:n[i],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:t},t))});function W({remainingDays:r,submitLeaveRequest:l}){let[a,n]=m(new Date),[t,i]=m(new Date),[d,g]=m("Full Day"),[N,R]=m(!1),[p,S]=m(1),B=E();w(()=>{let s=L(a,t);R(s),s&&g("Full Day")},[a,t]),w(()=>{if(!a||!t){S(0);return}let s=F(a,t,d!=="Full Day");S(s)},[a,t,d]);let q=s=>{g(s)};return o("div",{className:"max-w-2xl",children:[e("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),o("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",r]}),o("form",{onSubmit:async s=>{if(s.preventDefault(),!a||!t){v.error("Please select both start and end dates");return}if(p>r){v.error("You do not have enough leave days remaining");return}let u=new FormData;u.append("startDate",a.toISOString()),u.append("endDate",t.toISOString()),u.append("leaveType",d),u.append("duration",p.toString());let y=await(l||M)(u);y.success?(v.success(y.message),n(void 0),i(void 0),g("Full Day"),B.refresh()):v.error(`Error: ${y.message}`)},className:"space-y-4",children:[o("div",{className:"grid grid-cols-2 gap-4",children:[o("div",{className:"flex flex-col space-y-2",children:[e(f,{htmlFor:"startDate",children:"Start Date"}),o(b,{children:[e(h,{asChild:!0,children:o(c,{variant:"outline",className:D("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[e(T,{className:"mr-2 h-4 w-4"}),a?C(a,"PPP"):e("span",{children:"Pick a date"})]})}),e(P,{className:"w-auto p-0",align:"start",children:e(x,{mode:"single",selected:a,onSelect:s=>{n(s),s&&(!t||s>t)&&i(s)},initialFocus:!0})})]})]}),o("div",{className:"flex flex-col space-y-2",children:[e(f,{htmlFor:"endDate",children:"End Date"}),o(b,{children:[e(h,{asChild:!0,children:o(c,{variant:"outline",className:D("w-full justify-start text-left font-normal",!t&&"text-muted-foreground"),children:[e(T,{className:"mr-2 h-4 w-4"}),t?C(t,"PPP"):e("span",{children:"Pick a date"})]})}),e(P,{className:"w-auto p-0",align:"start",children:e(x,{mode:"single",selected:t,onSelect:i,disabled:s=>a?s<a:!1,initialFocus:!0})})]})]})]}),o("div",{className:"space-y-2",children:[e(f,{children:"Leave Type"}),e(I,{options:["Full Day","Morning","Afternoon"],value:d,onChange:q,disabled:[!1,N,N]})]}),o("p",{className:"text-sm text-gray-500",children:["Total days: ",p]}),e(c,{disabled:p<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),e(k,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var M=async r=>{let l={};return r.forEach((a,n)=>{l[n]=a}),{success:!0,message:`Leave request submitted successfully for ${r.get("duration")}`}};export{W as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{a as g}from"./chunk-XB5WL3OT.mjs";import{a as v}from"./chunk-Y74ENEUN.mjs";import{a as y}from"./chunk-IJCMUPNH.mjs";import{a as f}from"./chunk-ZSUPFOXY.mjs";import{useState as N}from"react";import{ChevronDown as q}from"lucide-react";import{CalendarDays as P,Grid as R,PlusCircle as k,CheckSquare as A}from"lucide-react";import{useRouter as V}from"next/navigation";import{format as S,parseISO as H}from"date-fns";import{jsx as r,jsxs as t}from"react/jsx-runtime";function b(...s){return s.filter(Boolean).join(" ")}function z({holidays:s,currentUser:o,currentDate:h,leaveApprovals:x,employees:w,submitLeaveRequest:n,approveLeave:i,rejectLeave:m}){let[a,d]=N("Calendar View"),L=V(),C=!1,c=H(h),l=async e=>{let D=S(e,"dd-MM-yyyy"),p=new URL(window.location.href);return p.searchParams.set("date",D),L.push(p.toString()),{success:!0}};if(C)return r("div",{className:"flex justify-center items-center h-screen",children:r("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let u=[{name:"Grid View",icon:R,current:a==="Grid View"},{name:"Calendar View",icon:P,current:a==="Calendar View"},{name:"Request Leave",icon:k,current:a==="Request Leave"},{name:"Approve Leave",icon:A,current:a==="Approve Leave"}];return t("div",{className:"container fixed mx-auto p-4",children:[t("div",{className:"mb-8",children:[t("div",{className:"sm:hidden",children:[r("select",{value:a,onChange:e=>d(e.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:u.map(e=>r("option",{children:e.name},e.name))}),r(q,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),r("div",{className:"hidden sm:block",children:r("div",{className:"border-b border-gray-200",children:r("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:u.map(e=>t("a",{onClick:()=>{(e.name!=="Approve Leave"||o.grade==="Manager"||o.grade==="Senior Manager"||o.grade==="Partner")&&d(e.name)},className:b(e.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",e.name==="Approve Leave"&&o.grade!=="Manager"&&o.grade!=="Senior Manager"&&o.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":e.current?"page":void 0,children:[r(e.icon,{className:b(e.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),r("span",{children:e.name})]},e.name))})})})]}),a==="Grid View"&&r(f,{currentDate:c,setCurrentDate:l,holidays:s,employees:w}),a==="Calendar View"&&r(y,{currentDate:c,setCurrentDate:l,holidays:s}),a==="Request Leave"&&r(g,{remainingDays:o.remainingLeaveDays,submitLeaveRequest:e=>n?n(e):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),a==="Approve Leave"&&r(v,{leaveRequests:x,onApprove:e=>i?i(e):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:e=>m?m(e):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}export{z as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{a as n}from"./chunk-Y5ZFXDW5.mjs";import{a as d,b as p,c as v}from"./chunk-SBM5HULF.mjs";import{b as g}from"./chunk-Q6SEVCRG.mjs";import{b as r}from"./chunk-BDX257W2.mjs";import{useState as A}from"react";import{Toaster as D,toast as o}from"sonner";import{useRouter as k}from"next/navigation";import{jsx as s,jsxs as a}from"react/jsx-runtime";function R({leaveRequests:l,onApprove:f,onReject:h}){let[t,c]=A([]),m=k(),u=()=>{t.length===l.length?c([]):c(l.map(e=>e.id))},N=e=>{c(i=>i.includes(e)?i.filter(b=>b!==e):[...i,e])},x=async()=>{let e=await f(t);e.success?(o.success(e.message),m.refresh()):o.error(`Error: ${e.message}`),c([])},y=async()=>{let e=await h(t);e.success?(o.success(e.message),m.refresh()):o.error(`Error: ${e.message}`),c([])};return a("div",{className:"space-y-4",children:[a("div",{className:"flex justify-between items-center",children:[s("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),a("div",{className:"space-x-2",children:[s(r,{onClick:x,disabled:t.length===0,variant:"default",children:"Approve Selected"}),s(r,{onClick:y,disabled:t.length===0,variant:"destructive",children:"Reject Selected"})]})]}),s("div",{className:"overflow-hidden sm:rounded-md",children:a("ul",{className:"divide-y divide-gray-200",children:[s("li",{className:"px-4 py-4 sm:px-6",children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center",children:[s(n,{id:"select-all",checked:t.length===l.length,onCheckedChange:u,className:"border-accent"}),s("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),a("span",{className:"text-sm font-medium text-gray-500",children:[t.length," of ",l.length," selected"]})]})}),l.map(e=>s("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center",children:[s(n,{id:`select-${e.id}`,checked:t.includes(e.id),onCheckedChange:()=>N(e.id),className:"border-accent"}),a("div",{className:"ml-3 flex items-center",children:[a(d,{className:"h-10 w-10",children:[s(p,{src:e.userImage,alt:e.userName}),s(v,{children:e.userName.split(" ").map(i=>i[0]).join("")})]}),s("div",{className:"ml-3",children:s("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:e.userName})})]})]}),a("div",{className:"flex items-center space-x-2",children:[a("span",{className:"text-sm text-gray-500",children:[new Date(e.startDate).toLocaleDateString(),e.startDate!==e.endDate&&` - ${new Date(e.endDate).toLocaleDateString()}`,e.leaveType!="Full Day"&&` (${e.leaveType})`,` - ${e.totalDays} day${e.totalDays!==1?"s":""}`]}),s(g,{variant:e.status==="approved"?"default":e.status==="rejected"?"destructive":"secondary",children:e.status})]})]})},e.id))]})}),s(D,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}export{R as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as d}from"./chunk-SV7NMNDI.mjs";import{a as p}from"./chunk-
|
|
1
|
+
import{a as d}from"./chunk-SV7NMNDI.mjs";import{a as p}from"./chunk-65C6PZZX.mjs";import{a as n}from"./chunk-WISCWNL2.mjs";import{c}from"./chunk-YNNW2C2U.mjs";import{a as m}from"./chunk-UESKYRNK.mjs";import{a as o}from"./chunk-NIQ4466A.mjs";import g from"next/image";import{FaArrowRight as x}from"react-icons/fa6";import{jsx as e,jsxs as i}from"react/jsx-runtime";function _({blogs:a,sectionHeading:t}){return e("section",{className:o("section-padding-primary overflow-hidden "),children:i(m,{children:[e("div",{className:"mx-auto max-w-[630px]",children:t&&e("div",{"data-aos":"fade-up","data-aos-delay":"100",children:e(p,{...t,alignment:"center",hasBottomSpacing:!0})})}),a&&a.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-center gap-y-30px",children:a.map((l,r)=>e("div",{"data-aos":"fade-up","data-aos-delay":d([200,400,600],r),className:"w-full px-4 md:w-1/2 md:px-[15px] lg:w-1/3",children:e(u,{...l})},r))})]})})}var f=o("inline-flex items-center gap-2 text-white"),z=o("text-sm text-white");function u({slug:a,image:t,authors:l,title:r,publishedAt:s,categories:v}){return i("article",{className:"group/blog relative z-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[e("span",{className:"absolute inset-0 z-[2] "}),e(g,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
2
2
|
(min-width:768px) 50vw,
|
|
3
3
|
(min-width:1024px) 33vw,
|
|
4
4
|
100vw
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as g}from"./chunk-A24EPYUY.mjs";import{a as v,b as p,c as f}from"./chunk-SBM5HULF.mjs";import{b as d}from"./chunk-BDX257W2.mjs";import{ChevronLeft as $,ChevronRight as A}from"lucide-react";import{jsx as t,jsxs as a}from"react/jsx-runtime";function y(...e){return e.filter(Boolean).join(" ")}function B({currentDate:e,setCurrentDate:i,holidays:u,employees:n}){let b=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),x=()=>{i(new Date(e.getFullYear(),e.getMonth()-1,1))},N=()=>{i(new Date(e.getFullYear(),e.getMonth()+1,1))},w=()=>{i(new Date)},k=r=>r.toLocaleString("default",{weekday:"short"}).charAt(0);return a("div",{className:"px-4 sm:px-6 lg:px-8",children:[a("div",{className:"sm:flex sm:items-center",children:[a("div",{className:"sm:flex-auto",children:[t("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),t("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),a("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[a(d,{onClick:x,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[t("span",{className:"sr-only",children:"Previous month"}),t($,{className:"h-5 w-5","aria-hidden":"true"})]}),t(d,{variant:"outline",onClick:w,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),a(d,{onClick:N,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[t("span",{className:"sr-only",children:"Next month"}),t(A,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),t("div",{className:"mt-8 flow-root",children:t("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:t("div",{className:"max-h-[60vh] overflow-y-auto",children:a("table",{className:"min-w-full border-separate border-spacing-0",children:[t("thead",{className:"sticky top-0 z-20 bg-white",children:a("tr",{children:[t("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(b)].map((r,s)=>{let l=new Date(e.getFullYear(),e.getMonth(),s+1);return a("th",{scope:"col",className:`sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${g(l)?"bg-gray-200":""}`,children:[t("div",{children:k(l)}),t("div",{children:s+1})]},s)})]})}),t("tbody",{children:n.map((r,s)=>a("tr",{children:[t("td",{className:y(s!==n.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:a("div",{className:"flex items-center",children:[a(v,{className:"h-11 w-11",children:[t(p,{src:r.image,alt:r.name}),t(f,{children:r.name.split(" ").map(l=>l[0]).join("")})]}),t("div",{className:"ml-4",children:t("div",{className:"font-medium text-accent",children:r.name})})]})}),[...Array(b)].map((l,h)=>{let m=new Date(e.getFullYear(),e.getMonth(),h+1),o=u.find(c=>c.userId===r.id&&new Date(c.startDate)<=m&&new Date(c.endDate)>=m);return t("td",{className:y(s!==n.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",g(m)?"bg-gray-200":""),children:t("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${o?o.status==="approved"?"bg-green-500":o.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:o?`${r.name}: ${o.status} (${o.startDate} - ${o.endDate}) - ${o.leaveType}`:"",children:o&&o.leaveType!=="Full Day"&&t("div",{className:`h-3 w-6 ${o.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${r.id}-${h}`)})]},r.id))})]})})})})]})}export{B as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";var nt=Object.create;var Y=Object.defineProperty;var at=Object.getOwnPropertyDescriptor;var st=Object.getOwnPropertyNames;var lt=Object.getPrototypeOf,it=Object.prototype.hasOwnProperty;var ct=(e,t)=>{for(var r in t)Y(e,r,{get:t[r],enumerable:!0})},Ae=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of st(t))!it.call(e,n)&&n!==r&&Y(e,n,{get:()=>t[n],enumerable:!(a=at(t,n))||a.enumerable});return e};var X=(e,t,r)=>(r=e!=null?nt(lt(e)):{},Ae(t||!e||!e.__esModule?Y(r,"default",{value:e,enumerable:!0}):r,e)),dt=e=>Ae(Y({},"__esModule",{value:!0}),e);var _t={};ct(_t,{BannerBlock:()=>be});module.exports=dt(_t);var ze=require("clsx");var ie="-",pt=e=>{let t=mt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:l=>{let s=l.split(ie);return s[0]===""&&s.length!==1&&s.shift(),Be(s,t)||ut(l)},getConflictingClassGroupIds:(l,s)=>{let c=r[l]||[];return s&&a[l]?[...c,...a[l]]:c}}},Be=(e,t)=>{var l;if(e.length===0)return t.classGroupId;let r=e[0],a=t.nextPart.get(r),n=a?Be(e.slice(1),a):void 0;if(n)return n;if(t.validators.length===0)return;let o=e.join(ie);return(l=t.validators.find(({validator:s})=>s(o)))==null?void 0:l.classGroupId},Ne=/^\[(.+)\]$/,ut=e=>{if(Ne.test(e)){let t=Ne.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},mt=e=>{let{theme:t,prefix:r}=e,a={nextPart:new Map,validators:[]};return ft(Object.entries(e.classGroups),r).forEach(([o,l])=>{le(l,a,o,t)}),a},le=(e,t,r,a)=>{e.forEach(n=>{if(typeof n=="string"){let o=n===""?t:Pe(t,n);o.classGroupId=r;return}if(typeof n=="function"){if(gt(n)){le(n(a),t,r,a);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([o,l])=>{le(l,Pe(t,o),r,a)})})},Pe=(e,t)=>{let r=e;return t.split(ie).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},gt=e=>e.isThemeGetter,ft=(e,t)=>t?e.map(([r,a])=>{let n=a.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([l,s])=>[t+l,s])):o);return[r,n]}):e,bt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map,n=(o,l)=>{r.set(o,l),t++,t>e&&(t=0,a=r,r=new Map)};return{get(o){let l=r.get(o);if(l!==void 0)return l;if((l=a.get(o))!==void 0)return n(o,l),l},set(o,l){r.has(o)?r.set(o,l):n(o,l)}}},Re="!",yt=e=>{let{separator:t,experimentalParseClassName:r}=e,a=t.length===1,n=t[0],o=t.length,l=s=>{let c=[],u=0,m=0,v;for(let h=0;h<s.length;h++){let k=s[h];if(u===0){if(k===n&&(a||s.slice(h,h+o)===t)){c.push(s.slice(m,h)),m=h+o;continue}if(k==="/"){v=h;continue}}k==="["?u++:k==="]"&&u--}let w=c.length===0?s:s.substring(m),A=w.startsWith(Re),N=A?w.substring(1):w,y=v&&v>m?v-m:void 0;return{modifiers:c,hasImportantModifier:A,baseClassName:N,maybePostfixModifierPosition:y}};return r?s=>r({className:s,parseClassName:l}):l},ht=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(a=>{a[0]==="["?(t.push(...r.sort(),a),r=[]):r.push(a)}),t.push(...r.sort()),t},xt=e=>({cache:bt(e.cacheSize),parseClassName:yt(e),...pt(e)}),vt=/\s+/,wt=(e,t)=>{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:n}=t,o=[],l=e.trim().split(vt),s="";for(let c=l.length-1;c>=0;c-=1){let u=l[c],{modifiers:m,hasImportantModifier:v,baseClassName:w,maybePostfixModifierPosition:A}=r(u),N=!!A,y=a(N?w.substring(0,A):w);if(!y){if(!N){s=u+(s.length>0?" "+s:s);continue}if(y=a(w),!y){s=u+(s.length>0?" "+s:s);continue}N=!1}let h=ht(m).join(":"),k=v?h+Re:h,C=k+y;if(o.includes(C))continue;o.push(C);let z=n(y,N);for(let E=0;E<z.length;++E){let J=z[E];o.push(k+J)}s=u+(s.length>0?" "+s:s)}return s};function kt(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ie(t))&&(a&&(a+=" "),a+=r);return a}var Ie=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=Ie(e[a]))&&(r&&(r+=" "),r+=t);return r};function Ct(e,...t){let r,a,n,o=l;function l(c){let u=t.reduce((m,v)=>v(m),e());return r=xt(u),a=r.cache.get,n=r.cache.set,o=s,s(c)}function s(c){let u=a(c);if(u)return u;let m=wt(c,r);return n(c,m),m}return function(){return o(kt.apply(null,arguments))}}var g=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Te=/^\[(?:([a-z-]+):)?(.+)\]$/i,At=/^\d+\/\d+$/,Nt=new Set(["px","full","screen"]),Pt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Bt=/\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$/,Rt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,It=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Tt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=e=>L(e)||Nt.has(e)||At.test(e),T=e=>D(e,"length",Dt),L=e=>!!e&&!Number.isNaN(Number(e)),se=e=>D(e,"number",L),H=e=>!!e&&Number.isInteger(Number(e)),St=e=>e.endsWith("%")&&L(e.slice(0,-1)),i=e=>Te.test(e),S=e=>Pt.test(e),Mt=new Set(["length","size","percentage"]),zt=e=>D(e,Mt,Se),Et=e=>D(e,"position",Se),Ft=new Set(["image","url"]),Gt=e=>D(e,Ft,Ht),Lt=e=>D(e,"",Ut),V=()=>!0,D=(e,t,r)=>{let a=Te.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):r(a[2]):!1},Dt=e=>Bt.test(e)&&!Rt.test(e),Se=()=>!1,Ut=e=>It.test(e),Ht=e=>Tt.test(e);var Vt=()=>{let e=g("colors"),t=g("spacing"),r=g("blur"),a=g("brightness"),n=g("borderColor"),o=g("borderRadius"),l=g("borderSpacing"),s=g("borderWidth"),c=g("contrast"),u=g("grayscale"),m=g("hueRotate"),v=g("invert"),w=g("gap"),A=g("gradientColorStops"),N=g("gradientColorStopPositions"),y=g("inset"),h=g("margin"),k=g("opacity"),C=g("padding"),z=g("saturate"),E=g("scale"),J=g("sepia"),ye=g("skew"),he=g("space"),xe=g("translate"),re=()=>["auto","contain","none"],oe=()=>["auto","hidden","clip","visible","scroll"],ne=()=>["auto",i,t],b=()=>[i,t],ve=()=>["",B,T],_=()=>["auto",L,i],we=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ae=()=>["start","end","center","between","around","evenly","stretch"],U=()=>["","0",i],Ce=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>[L,i];return{cacheSize:500,separator:":",theme:{colors:[V],spacing:[B,T],blur:["none","",S,i],brightness:P(),borderColor:[e],borderRadius:["none","","full",S,i],borderSpacing:b(),borderWidth:ve(),contrast:P(),grayscale:U(),hueRotate:P(),invert:U(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[St,T],inset:ne(),margin:ne(),opacity:P(),padding:b(),saturate:P(),scale:P(),sepia:U(),skew:P(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[S]}],"break-after":[{"break-after":Ce()}],"break-before":[{"break-before":Ce()}],"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:[...we(),i]}],overflow:[{overflow:oe()}],"overflow-Le":[{"overflow-Le":oe()}],"overflow-y":[{"overflow-y":oe()}],overscroll:[{overscroll:re()}],"overscroll-Le":[{"overscroll-Le":re()}],"overscroll-y":[{"overscroll-y":re()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-Le":[{"inset-Le":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",H,i]}],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",i]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",H,i]}],"grid-cols":[{"grid-cols":[V]}],"col-start-end":[{col:["auto",{span:["full",H,i]},i]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[V]}],"row-start-end":[{row:["auto",{span:[H,i]},i]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",i]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",i]}],gap:[{gap:[w]}],"gap-Le":[{"gap-Le":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...ae()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ae(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ae(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],Le:[{Le:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],Le:[{Le:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],Le:[{Le:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-Le":[{"space-Le":[he]}],"space-Le-reverse":["space-Le-reverse"],"space-y":[{"space-y":[he]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",i,t]}],"min-w":[{"min-w":[i,t,"min","max","fit"]}],"max-w":[{"max-w":[i,t,"none","full","min","max","fit","prose",{screen:[S]},S]}],h:[{h:[i,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,t,"auto","min","max","fit"]}],"font-size":[{text:["base",S,T]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",se]}],"font-family":[{font:[V]}],"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",i]}],"line-clamp":[{"line-clamp":["none",L,se]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",B,i]}],"list-image":[{"list-image":["none",i]}],"list-style-type":[{list:["none","disc","decimal",i]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",B,T]}],"underline-offset":[{"underline-offset":["auto",B,i]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i]}],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",i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...we(),Et]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","Le","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Gt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[A]}],"gradient-via":[{via:[A]}],"gradient-to":[{to:[A]}],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:[s]}],"border-w-Le":[{"border-Le":[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":[k]}],"border-style":[{border:[...K(),"hidden"]}],"divide-Le":[{"divide-Le":[s]}],"divide-Le-reverse":["divide-Le-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:K()}],"border-color":[{border:[n]}],"border-color-Le":[{"border-Le":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...K()]}],"outline-offset":[{"outline-offset":[B,i]}],"outline-w":[{outline:[B,T]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ve()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[B,T]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",S,Lt]}],"shadow-color":[{shadow:[V]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...ke(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ke()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",S,i]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[v]}],saturate:[{saturate:[z]}],sepia:[{sepia:[J]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[z]}],"backdrop-sepia":[{"backdrop-sepia":[J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-Le":[{"border-spacing-Le":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",i]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-Le":[{"scale-Le":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[H,i]}],"translate-Le":[{"translate-Le":[xe]}],"translate-y":[{"translate-y":[xe]}],"skew-Le":[{"skew-Le":[ye]}],"skew-y":[{"skew-y":[ye]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",i]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",i]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","Le",""]}],"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-Le":[{"scroll-Le":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-Le":[{"scroll-Le":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-Le":[{"scroll-Le":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","Le","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-Le":[{"touch-pan":["Le","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",i]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[B,T,se]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-Le","overflow-y"],overscroll:["overscroll-Le","overscroll-y"],inset:["inset-Le","inset-y","start","end","top","right","bottom","left"],"inset-Le":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-Le","gap-y"],Le:["px","py","ps","Le","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","Le","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-Le","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-Le":["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-Le":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-Le","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-Le":["scroll-px","scroll-py","scroll-ps","scroll-Le","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-Le","touch-y","touch-pz"],"touch-Le":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Me=Ct(Vt);function d(...e){return Me((0,ze.clsx)(e))}var Ee=require("@radix-ui/react-slot"),Fe=require("class-variance-authority"),Ge=X(require("react")),Le=require("react/jsx-runtime"),Qt=(0,Fe.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"}}}),F=Ge.forwardRef(({asChild:e=!1,className:t,size:r,variant:a,...n},o)=>(0,Le.jsx)(e?Ee.Slot:"button",{className:d(Qt({className:t,size:r,variant:a})),ref:o,...n}));F.displayName="Button";var ce=X(require("next/link")),O=e=>{let{type:t,appearance:r="inline",children:a,className:n,label:o,newTab:l,reference:s,size:c,url:u}=e,m=t==="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}`:u;if(!m)return null;let v=r==="link"?"clear":c,w=l?{rel:"noopener noreferrer",target:"_blank"}:{};return r==="inline"?(0,Le.jsxs)(ce.default,{className:d(n),href:m||u||"",...w,children:[o&&o,a&&a]}):(0,Le.jsx)(F,{asChild:!0,className:n,size:v,variant:r,children:(0,Le.jsxs)(ce.default,{className:d(n),href:m||u||"",...w,children:[o&&o,a&&a]})})};var De=({links:e,richText:t})=>(0,Le.jsx)("div",{className:"container",children:(0,Le.jsxs)("div",{className:"bg-card rounded border-border border Le-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,Le.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,Le.jsx)(R,{className:"mb-0",content:t,enableGutter:!1})}),(0,Le.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:r},a)=>(0,Le.jsx)(O,{size:"lg",...r},a))})]})});var q=require("prism-react-renderer");var Ue=require("lucide-react"),He=require("react");function Ve({code:e}){let[t,r]=(0,He.useState)("Copy");function a(){t==="Copy"&&(r(()=>"Copied!"),setTimeout(()=>{r(()=>"Copy")},1e3))}return(0,Le.jsx)("div",{className:"flex justify-end align-middle",children:(0,Le.jsxs)(F,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),a()},children:[(0,Le.jsx)("Le",{children:t}),(0,Le.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,Le.jsx)(Ue.ClipboardCopy,{})})]})})}var Qe=({code:e,language:t=""})=>e?(0,Le.jsx)(q.Highlight,{code:e,language:t,theme:q.themes.vsDark,children:({getLineProps:r,getTokenProps:a,tokens:n})=>(0,Le.jsxs)("pre",{className:"bg-black Le-4 border text-xs border-border rounded overflow-Le-auto",children:[n.map((o,l)=>(0,Le.jsxs)("div",{...r({className:"table-row",line:o}),children:[(0,Le.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:l+1}),(0,Le.jsx)("span",{className:"table-cell pl-4",children:o.map((s,c)=>(0,Le.jsx)("span",{...a({token:s})},c))})]},l)),(0,Le.jsx)(Ve,{code:e})]})}):null;var Oe=({className:e,code:t,language:r})=>(0,Le.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,Le.jsx)(Qe,{code:t,language:r})});var Je=X(require("next/image")),Ot={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},je="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=",_e=e=>{let{alt:t,fill:r,imgClassName:a,priority:n,resource:o,size:l,src:s,loading:c}=e,u,m,v=t,w=s||"";if(!w&&o&&typeof o=="object"){let{alt:y,filename:h,height:k,url:C,width:z}=o;u=z,m=k,v=y||"",w=C||je}let A=c||"lazy",N=l||Object.entries(Ot).map(([,y])=>`(max-width: ${y}px) ${y*2}w`).join(", ");return(0,Le.jsx)("picture",{children:(0,Le.jsx)(Je.default,{alt:v||"",className:d(a),fill:r,height:r?void 0:m,placeholder:"blur",blurDataURL:je,priority:A!=="lazy"&&n,quality:100,loading:A,sizes:N,src:w,width:r?void 0:u})})};var Ke=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var Ye=()=>{if(Ke){let e=window.location.protocol,t=window.location.hostname,r=window.location.port;return`${e}//${t}${r?`:${r}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var Xe=e=>{let{onClick:t,resource:r,videoClassName:a}=e,n=(0,He.useRef)(null);if((0,He.useEffect)(()=>{let{current:o}=n;o&&o.addEventListener("suspend",()=>{})},[]),r&&typeof r=="object"){let{filename:o}=r;return(0,Le.jsx)("video",{autoPlay:!0,className:d(a),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:n,children:(0,Le.jsx)("source",{src:`${Ye()}/media/${o}`})})}return null};var $=e=>{var l;let{className:t,htmlElement:r="div",resource:a}=e,n=typeof a=="object"&&((l=a==null?void 0:a.mimeType)==null?void 0:l.includes("video"));return(0,Le.jsx)(r||He.Fragment,{...r!==null?{className:t}:{},children:n?(0,Le.jsx)(Xe,{...e}):(0,Le.jsx)(_e,{...e})})};var We=e=>{let{className:t,enableGutter:r=!0,imgClassName:a,media:n,staticImage:o}=e;return(0,Le.jsx)("div",{className:d("h-full",{container:r},t),children:(0,Le.jsx)($,{imgClassName:d("rounded-[0.8rem] max-h-full",a),className:"h-full",resource:n,src:o})})};var Ze=e=>{let{className:t,enableGutter:r=!0,imgClassName:a,media:n,staticImage:o}=e;return(0,Le.jsx)("div",{className:d("",{container:r},t),children:(0,Le.jsx)($,{imgClassName:d("rounded-[0.8rem]",a),resource:n,src:o})})};var fe=({type:e="solid",iconName:t="cloud",size:r="lg",className:a})=>{let n=e.includes("fa-")?e+" ":"fa-"+e+" ",o="fa-"+t,l=a!=null?a:"",s=n+o+" fa-"+r+" "+l;return(0,$e.jsx)("i",{className:s})};function et(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function tt({variant:e="outline",className:t,icon:r,heading:a,subheading:n,content:o,statistic:l,buttonText:s,buttonHref:c}){return(0,Le.jsxs)("div",{className:d("rounded-3xl Le-8 md:Le-8 min-w-56",{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"}[e],e==="outline"?"text-gray-900":"text-white",t),children:[(0,Le.jsx)("div",{className:"flex items-center gap-4 mb-6",children:(0,Le.jsx)(jt,{icon:r,heading:a,variant:e})}),e==="solid"&&l&&(0,Le.jsx)("div",{className:"mb-6",children:(0,Le.jsx)("div",{className:"text-4xl text-wrap font-bold leading-none overflow-hidden",children:l})}),n&&(0,Le.jsx)("div",{className:"mb-4 text-xl md:text-2xl font-light",children:n}),o&&typeof o=="object"&&(0,Le.jsx)("div",{className:d("space-y-6","text-gray-300"),children:(0,Le.jsx)(R,{enableGutter:!1,content:o,enableProse:!1,className:d("prose prose-headings:text-white prose-Le:text-gray-300")})}),o&&typeof o=="string"&&(0,Le.jsx)("div",{className:d("space-y-6","text-gray-300"),children:o}),s&&(0,Le.jsx)("div",{className:"mt-8",children:(0,Le.jsx)(F,{size:"lg",className:"text-white text-lg rounded-xl w-full",asChild:!0,children:(0,Le.jsx)("a",{href:c,children:s})})}),e==="radial"&&(0,Le.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 jt=({icon:e,heading:t,variant:r})=>e&&t.length<30?(0,Le.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[et(e)&&(0,Le.jsx)("div",{className:d("rounded-full Le-0",r==="outline"?"text-accent":"text-foreground"),children:(0,Le.jsx)(fe,{type:e.type,iconName:e.iconName,size:"2x"})}),(0,Le.jsx)("div",{className:d("font-semibold",r==="outline"?"text-2xl text-primary":"text-3xl"),children:t})]}):e?(0,Le.jsxs)("div",{className:"flex flex-col gap-4",children:[et(e)&&(0,Le.jsx)("div",{className:"text-accent h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:(0,Le.jsx)(fe,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Le.jsx)("h3",{className:d("font-semibold group-hover:text-accent transition-colors duration-400",r==="outline"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,Le.jsx)("div",{className:"flex items-center gap-4 mb-6",children:(0,Le.jsx)("div",{className:d("font-semibold",r==="outline"?"text-2xl text-primary":"text-3xl"),children:t})});var rt=({title:e,description:t,features:r,id:a})=>(0,Le.jsxs)("section",{className:d("container w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,Le.jsx)("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl text-primary",id:a||"",children:e}),t&&typeof t=="string"&&(0,Le.jsx)("Le",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:t}),t&&typeof t=="object"&&(0,Le.jsx)("Le",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:(0,Le.jsx)(R,{content:t,enableGutter:!1})}),(0,Le.jsx)("div",{className:`grid gap-8 mt-10 md:grid-cols-${r?r.length:1}`,children:r&&r.map((n,o)=>{var l,s,c,u,m;if(((l=n.settings)==null?void 0:l.card)==="default"||!((s=n.settings)!=null&&s.card))return(0,Le.jsx)(Jt,{section:n,index:o},o);{let v=()=>{if(n.icon&&"type"in n.icon&&n.icon.type!=="none")return{type:n.icon.type,iconName:n.icon.icon}};return(0,Le.jsx)(tt,{variant:((c=n.settings)==null?void 0:c.card)||"outline",icon:v()||void 0,heading:n.title||"",content:n.content||void 0,statistic:n.statistic||void 0,buttonText:(u=n.link)!=null&&u.url?"Find out more":void 0,buttonHref:((m=n.link)==null?void 0:m.url)||void 0},o)}})})]}),Jt=({section:e,index:t})=>{if(!e)return null;let r=(0,Le.jsxs)("div",{className:"flex flex-col gap-4",children:[e.icon&&(0,Le.jsx)("div",{className:"text-accent h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:(0,Le.jsx)("i",{className:`${e.icon.type} fa-${e.icon.icon} fa-4x`})}),(0,Le.jsx)("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-400",children:e.title}),e.statistic&&(0,Le.jsx)("div",{className:"mb-6",children:(0,Le.jsx)("div",{className:"text-4xl text-wrap font-bold leading-none overflow-hidden text-foreground",children:e.statistic})}),e.content&&typeof e.content!="object"&&(0,Le.jsx)("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:e.content}}),e.content&&typeof e.content=="object"&&(0,Le.jsx)("div",{className:"text-lg opacity-80",children:(0,Le.jsx)(R,{content:e.content,enableGutter:!1})})]},t);return e.link?(0,Le.jsx)("a",{href:e.link.url?e.link.url:"#",className:"no-underline group",children:r},t):r};var ee=X(require("react"));function j({nodes:e}){return(0,Le.jsx)(ee.Fragment,{children:e==null?void 0:e.map((t,r)=>{if(t==null)return null;if(t.type==="text"&&t.text){let o=(0,Le.jsx)(ee.default.Fragment,{children:t.text},r);return t.format&1&&(o=(0,Le.jsx)("strong",{children:o},r)),t.format&2&&(o=(0,Le.jsx)("em",{children:o},r)),t.format&4&&(o=(0,Le.jsx)("span",{style:{textDecoration:"line-through"},children:o},r)),t.format&8&&(o=(0,Le.jsx)("span",{style:{textDecoration:"underline"},children:o},r)),t.format&16&&(o=(0,Le.jsx)("code",{children:t.text},r)),t.format&32&&(o=(0,Le.jsx)("sub",{children:o},r)),t.format&64&&(o=(0,Le.jsx)("sup",{children:o},r)),o}if(t.type==="table")return(0,Le.jsx)("table",{children:(0,Le.jsx)("tbody",{children:t.children.map((o,l)=>(0,Le.jsx)("tr",{children:o.children.map((s,c)=>(0,Le.jsx)("td",{children:j({nodes:s.children})},c))},l))})},r);let a=o=>{if(o.children==null)return null;if((o==null?void 0:o.type)==="list"&&(o==null?void 0:o.listType)==="check")for(let l of o.children)"checked"in l&&(l!=null&&l.checked||(l.checked=!1));return j({nodes:o.children})},n="children"in t?a(t):"";if(t.type==="block"){let o=t.fields,l=o==null?void 0:o.blockType;if(!o||!l)return null;switch(l){case"cta":return(0,Le.jsx)(De,{...o},r);case"mediaBlock":return(0,Le.jsx)(We,{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,Le.jsx)(Ze,{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,Le.jsx)(be,{className:"col-start-2 mb-4",...o},r);case"code":return(0,Le.jsx)(Oe,{className:"col-start-2",...o},r);case"features":return(0,Le.jsx)(rt,{...o},r);case"reusableContentBlock":j({nodes:o.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,Le.jsx)("br",{className:"col-start-2"},r);case"paragraph":return(0,Le.jsx)("Le",{className:"col-start-2",children:n},r);case"heading":{let o=t==null?void 0:t.tag;return(0,Le.jsx)(o,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:n},r)}case"list":{let o=t==null?void 0:t.tag;return(0,Le.jsx)(o,{className:"list col-start-2",children:n},r)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,Le.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:n},r):(0,Le.jsx)("li",{value:t==null?void 0:t.value,children:n},r);case"quote":return(0,Le.jsx)("blockquote",{className:"col-start-2",children:n},r);case"link":{let o=t.fields;return(0,Le.jsx)(O,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:n},r)}case"autolink":{let o=t.fields;return(0,Le.jsx)(O,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:n},r)}default:return null}})})}var R=({className:e,content:t,enableGutter:r=!0,enableProse:a=!0})=>{var n;return t?(0,Le.jsx)("div",{className:d({"container ":r,"max-w-none":!r,"mx-auto prose dark:prose-invert ":a},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&j({nodes:(n=t==null?void 0:t.root)==null?void 0:n.children})}):null};var be=({className:e,content:t,style:r})=>(0,Le.jsx)("div",{className:d("mx-auto my-8 w-full",e),children:(0,Le.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,Le.jsx)(R,{content:t,enableGutter:!1,enableProse:!1})})});0&&(module.exports={BannerBlock});
|
|
4
|
+
"use strict";var nt=Object.create;var Y=Object.defineProperty;var at=Object.getOwnPropertyDescriptor;var st=Object.getOwnPropertyNames;var lt=Object.getPrototypeOf,it=Object.prototype.hasOwnProperty;var ct=(e,t)=>{for(var r in t)Y(e,r,{get:t[r],enumerable:!0})},Ae=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of st(t))!it.call(e,a)&&a!==r&&Y(e,a,{get:()=>t[a],enumerable:!(n=at(t,a))||n.enumerable});return e};var X=(e,t,r)=>(r=e!=null?nt(lt(e)):{},Ae(t||!e||!e.__esModule?Y(r,"default",{value:e,enumerable:!0}):r,e)),dt=e=>Ae(Y({},"__esModule",{value:!0}),e);var Jt={};ct(Jt,{BannerBlock:()=>be});module.exports=dt(Jt);var ze=require("clsx");var ie="-",pt=e=>{let t=mt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{let s=l.split(ie);return s[0]===""&&s.length!==1&&s.shift(),Be(s,t)||ut(l)},getConflictingClassGroupIds:(l,s)=>{let c=r[l]||[];return s&&n[l]?[...c,...n[l]]:c}}},Be=(e,t)=>{var l;if(e.length===0)return t.classGroupId;let r=e[0],n=t.nextPart.get(r),a=n?Be(e.slice(1),n):void 0;if(a)return a;if(t.validators.length===0)return;let o=e.join(ie);return(l=t.validators.find(({validator:s})=>s(o)))==null?void 0:l.classGroupId},Ne=/^\[(.+)\]$/,ut=e=>{if(Ne.test(e)){let t=Ne.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},mt=e=>{let{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return ft(Object.entries(e.classGroups),r).forEach(([o,l])=>{le(l,n,o,t)}),n},le=(e,t,r,n)=>{e.forEach(a=>{if(typeof a=="string"){let o=a===""?t:Pe(t,a);o.classGroupId=r;return}if(typeof a=="function"){if(gt(a)){le(a(n),t,r,n);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([o,l])=>{le(l,Pe(t,o),r,n)})})},Pe=(e,t)=>{let r=e;return t.split(ie).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},gt=e=>e.isThemeGetter,ft=(e,t)=>t?e.map(([r,n])=>{let a=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([l,s])=>[t+l,s])):o);return[r,a]}):e,bt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map,a=(o,l)=>{r.set(o,l),t++,t>e&&(t=0,n=r,r=new Map)};return{get(o){let l=r.get(o);if(l!==void 0)return l;if((l=n.get(o))!==void 0)return a(o,l),l},set(o,l){r.has(o)?r.set(o,l):a(o,l)}}},Re="!",yt=e=>{let{separator:t,experimentalParseClassName:r}=e,n=t.length===1,a=t[0],o=t.length,l=s=>{let c=[],p=0,m=0,x;for(let h=0;h<s.length;h++){let v=s[h];if(p===0){if(v===a&&(n||s.slice(h,h+o)===t)){c.push(s.slice(m,h)),m=h+o;continue}if(v==="/"){x=h;continue}}v==="["?p++:v==="]"&&p--}let w=c.length===0?s:s.substring(m),C=w.startsWith(Re),A=C?w.substring(1):w,y=x&&x>m?x-m:void 0;return{modifiers:c,hasImportantModifier:C,baseClassName:A,maybePostfixModifierPosition:y}};return r?s=>r({className:s,parseClassName:l}):l},ht=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},xt=e=>({cache:bt(e.cacheSize),parseClassName:yt(e),...pt(e)}),wt=/\s+/,vt=(e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a}=t,o=[],l=e.trim().split(wt),s="";for(let c=l.length-1;c>=0;c-=1){let p=l[c],{modifiers:m,hasImportantModifier:x,baseClassName:w,maybePostfixModifierPosition:C}=r(p),A=!!C,y=n(A?w.substring(0,C):w);if(!y){if(!A){s=p+(s.length>0?" "+s:s);continue}if(y=n(w),!y){s=p+(s.length>0?" "+s:s);continue}A=!1}let h=ht(m).join(":"),v=x?h+Re:h,k=v+y;if(o.includes(k))continue;o.push(k);let z=a(y,A);for(let E=0;E<z.length;++E){let J=z[E];o.push(v+J)}s=p+(s.length>0?" "+s:s)}return s};function kt(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ie(t))&&(n&&(n+=" "),n+=r);return n}var Ie=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Ie(e[n]))&&(r&&(r+=" "),r+=t);return r};function Ct(e,...t){let r,n,a,o=l;function l(c){let p=t.reduce((m,x)=>x(m),e());return r=xt(p),n=r.cache.get,a=r.cache.set,o=s,s(c)}function s(c){let p=n(c);if(p)return p;let m=vt(c,r);return a(c,m),m}return function(){return o(kt.apply(null,arguments))}}var g=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Te=/^\[(?:([a-z-]+):)?(.+)\]$/i,At=/^\d+\/\d+$/,Nt=new Set(["px","full","screen"]),Pt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Bt=/\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$/,Rt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,It=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Tt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,P=e=>L(e)||Nt.has(e)||At.test(e),I=e=>D(e,"length",Dt),L=e=>!!e&&!Number.isNaN(Number(e)),se=e=>D(e,"number",L),H=e=>!!e&&Number.isInteger(Number(e)),St=e=>e.endsWith("%")&&L(e.slice(0,-1)),i=e=>Te.test(e),T=e=>Pt.test(e),Mt=new Set(["length","size","percentage"]),zt=e=>D(e,Mt,Se),Et=e=>D(e,"position",Se),Ft=new Set(["image","url"]),Gt=e=>D(e,Ft,Ht),Lt=e=>D(e,"",Ut),V=()=>!0,D=(e,t,r)=>{let n=Te.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Dt=e=>Bt.test(e)&&!Rt.test(e),Se=()=>!1,Ut=e=>It.test(e),Ht=e=>Tt.test(e);var Vt=()=>{let e=g("colors"),t=g("spacing"),r=g("blur"),n=g("brightness"),a=g("borderColor"),o=g("borderRadius"),l=g("borderSpacing"),s=g("borderWidth"),c=g("contrast"),p=g("grayscale"),m=g("hueRotate"),x=g("invert"),w=g("gap"),C=g("gradientColorStops"),A=g("gradientColorStopPositions"),y=g("inset"),h=g("margin"),v=g("opacity"),k=g("padding"),z=g("saturate"),E=g("scale"),J=g("sepia"),ye=g("skew"),he=g("space"),xe=g("translate"),re=()=>["auto","contain","none"],oe=()=>["auto","hidden","clip","visible","scroll"],ne=()=>["auto",i,t],b=()=>[i,t],we=()=>["",P,I],_=()=>["auto",L,i],ve=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ae=()=>["start","end","center","between","around","evenly","stretch"],U=()=>["","0",i],Ce=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>[L,i];return{cacheSize:500,separator:":",theme:{colors:[V],spacing:[P,I],blur:["none","",T,i],brightness:N(),borderColor:[e],borderRadius:["none","","full",T,i],borderSpacing:b(),borderWidth:we(),contrast:N(),grayscale:U(),hueRotate:N(),invert:U(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[St,I],inset:ne(),margin:ne(),opacity:N(),padding:b(),saturate:N(),scale:N(),sepia:U(),skew:N(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[T]}],"break-after":[{"break-after":Ce()}],"break-before":[{"break-before":Ce()}],"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:[...ve(),i]}],overflow:[{overflow:oe()}],"overflow-x":[{"overflow-x":oe()}],"overflow-y":[{"overflow-y":oe()}],overscroll:[{overscroll:re()}],"overscroll-x":[{"overscroll-x":re()}],"overscroll-y":[{"overscroll-y":re()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",H,i]}],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",i]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",H,i]}],"grid-cols":[{"grid-cols":[V]}],"col-start-end":[{col:["auto",{span:["full",H,i]},i]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[V]}],"row-start-end":[{row:["auto",{span:[H,i]},i]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",i]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",i]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...ae()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ae(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ae(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],Le:[{Le:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],Le:[{Le:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[he]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[he]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",i,t]}],"min-w":[{"min-w":[i,t,"min","max","fit"]}],"max-w":[{"max-w":[i,t,"none","full","min","max","fit","prose",{screen:[T]},T]}],h:[{h:[i,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,t,"auto","min","max","fit"]}],"font-size":[{text:["base",T,I]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",se]}],"font-family":[{font:[V]}],"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",i]}],"line-clamp":[{"line-clamp":["none",L,se]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",P,i]}],"list-image":[{"list-image":["none",i]}],"list-style-type":[{list:["none","disc","decimal",i]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",P,I]}],"underline-offset":[{"underline-offset":["auto",P,i]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i]}],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",i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ve(),Et]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Gt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],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:[s]}],"border-w-x":[{"border-x":[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":[v]}],"border-style":[{border:[...K(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:K()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[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:["",...K()]}],"outline-offset":[{"outline-offset":[P,i]}],"outline-w":[{outline:[P,I]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:we()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[P,I]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",T,Lt]}],"shadow-color":[{shadow:[V]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...ke(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ke()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",T,i]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[x]}],saturate:[{saturate:[z]}],sepia:[{sepia:[J]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[z]}],"backdrop-sepia":[{"backdrop-sepia":[J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",i]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[H,i]}],"translate-x":[{"translate-x":[xe]}],"translate-y":[{"translate-y":[xe]}],"skew-x":[{"skew-x":[ye]}],"skew-y":[{"skew-y":[ye]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",i]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",i]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"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-Le":[{"scroll-Le":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-Le":[{"scroll-Le":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","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",i]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[P,I,se]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","Le","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","Le","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-Le","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-Le","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Me=Ct(Vt);function d(...e){return Me((0,ze.clsx)(e))}var Ee=require("@radix-ui/react-slot"),Fe=require("class-variance-authority"),Ge=X(require("react")),Le=require("react/jsx-runtime"),Qt=(0,Fe.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"}}}),F=Ge.forwardRef(({asChild:e=!1,className:t,size:r,variant:n,...a},o)=>(0,Le.jsx)(e?Ee.Slot:"button",{className:d(Qt({className:t,size:r,variant:n})),ref:o,...a}));F.displayName="Button";var ce=X(require("next/link")),j=e=>{let{type:t,appearance:r="inline",children:n,className:a,label:o,newTab:l,reference:s,size:c,url:p}=e,m=t==="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}`:p;if(!m)return null;let x=r==="link"?"clear":c,w=l?{rel:"noopener noreferrer",target:"_blank"}:{};return r==="inline"?(0,Le.jsxs)(ce.default,{className:d(a),href:m||p||"",...w,children:[o&&o,n&&n]}):(0,Le.jsx)(F,{asChild:!0,className:a,size:x,variant:r,children:(0,Le.jsxs)(ce.default,{className:d(a),href:m||p||"",...w,children:[o&&o,n&&n]})})};var De=({links:e,richText:t})=>(0,Le.jsx)("div",{className:"container",children:(0,Le.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,Le.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,Le.jsx)(M,{className:"mb-0",content:t,enableGutter:!1})}),(0,Le.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:r},n)=>(0,Le.jsx)(j,{size:"lg",...r},n))})]})});var q=require("prism-react-renderer");var Ue=require("lucide-react"),He=require("react");function Ve({code:e}){let[t,r]=(0,He.useState)("Copy");function n(){t==="Copy"&&(r(()=>"Copied!"),setTimeout(()=>{r(()=>"Copy")},1e3))}return(0,Le.jsx)("div",{className:"flex justify-end align-middle",children:(0,Le.jsxs)(F,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),n()},children:[(0,Le.jsx)("p",{children:t}),(0,Le.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,Le.jsx)(Ue.ClipboardCopy,{})})]})})}var Qe=({code:e,language:t=""})=>e?(0,Le.jsx)(q.Highlight,{code:e,language:t,theme:q.themes.vsDark,children:({getLineProps:r,getTokenProps:n,tokens:a})=>(0,Le.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[a.map((o,l)=>(0,Le.jsxs)("div",{...r({className:"table-row",line:o}),children:[(0,Le.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:l+1}),(0,Le.jsx)("span",{className:"table-cell pl-4",children:o.map((s,c)=>(0,Le.jsx)("span",{...n({token:s})},c))})]},l)),(0,Le.jsx)(Ve,{code:e})]})}):null;var je=({className:e,code:t,language:r})=>(0,Le.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,Le.jsx)(Qe,{code:t,language:r})});var Je=X(require("next/image")),jt={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},Oe="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=",_e=e=>{let{alt:t,fill:r,imgClassName:n,priority:a,resource:o,size:l,src:s,loading:c}=e,p,m,x=t,w=s||"";if(!w&&o&&typeof o=="object"){let{alt:y,filename:h,height:v,url:k,width:z}=o;p=z,m=v,x=y||"",w=k||Oe}let C=c||"lazy",A=l||Object.entries(jt).map(([,y])=>`(max-width: ${y}px) ${y*2}w`).join(", ");return(0,Le.jsx)("picture",{children:(0,Le.jsx)(Je.default,{alt:x||"",className:d(n),fill:r,height:r?void 0:m,placeholder:"blur",blurDataURL:Oe,priority:C!=="lazy"&&a,quality:100,loading:C,sizes:A,src:w,width:r?void 0:p})})};var Ke=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var Ye=()=>{if(Ke){let e=window.location.protocol,t=window.location.hostname,r=window.location.port;return`${e}//${t}${r?`:${r}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var Xe=e=>{let{onClick:t,resource:r,videoClassName:n}=e,a=(0,He.useRef)(null);if((0,He.useEffect)(()=>{let{current:o}=a;o&&o.addEventListener("suspend",()=>{})},[]),r&&typeof r=="object"){let{filename:o}=r;return(0,Le.jsx)("video",{autoPlay:!0,className:d(n),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:a,children:(0,Le.jsx)("source",{src:`${Ye()}/media/${o}`})})}return null};var $=e=>{var l;let{className:t,htmlElement:r="div",resource:n}=e,a=typeof n=="object"&&((l=n==null?void 0:n.mimeType)==null?void 0:l.includes("video"));return(0,Le.jsx)(r||He.Fragment,{...r!==null?{className:t}:{},children:a?(0,Le.jsx)(Xe,{...e}):(0,Le.jsx)(_e,{...e})})};var We=e=>{let{className:t,enableGutter:r=!0,imgClassName:n,media:a,staticImage:o}=e;return(0,Le.jsx)("div",{className:d("h-full",{container:r},t),children:(0,Le.jsx)($,{imgClassName:d("rounded-[0.8rem] max-h-full",n),className:"h-full",resource:a,src:o})})};var Ze=e=>{let{className:t,enableGutter:r=!0,imgClassName:n,media:a,staticImage:o}=e;return(0,Le.jsx)("div",{className:d("",{container:r},t),children:(0,Le.jsx)($,{imgClassName:d("rounded-[0.8rem]",n),resource:a,src:o})})};var fe=({type:e="solid",iconName:t="cloud",size:r="lg",className:n})=>{let a=e.includes("fa-")?e+" ":"fa-"+e+" ",o="fa-"+t,l=n!=null?n:"",s=a+o+" fa-"+r+" "+l;return(0,$e.jsx)("i",{className:s})};function et(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function tt({variant:e="outline",className:t,icon:r,iconSize:n="large",width:a="auto",heading:o,subheading:l,content:s,statistic:c,buttonText:p,buttonHref:m}){let x={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,Le.jsxs)("div",{className:d("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",x[e],e==="outline"?"text-gray-900":"text-white",t,w[a]),"data-aos":"flip-left","data-aos-easing":"ease-out-cubic","data-aos-duration":"1000",children:[(0,Le.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Le.jsx)(Ot,{icon:r,heading:o,variant:e,iconSize:n})}),c&&(0,Le.jsx)("div",{className:"mb-6",children:(0,Le.jsx)("div",{className:"text-4xl text-wrap font-bold leading-none overflow-hidden",children:c})}),l&&(0,Le.jsx)("div",{className:"mb-4 text-xl md:text-2xl font-light",children:l}),s&&typeof s=="object"&&(0,Le.jsx)("div",{className:d("space-y-6","text-gray-300"),children:(0,Le.jsx)(M,{enableGutter:!1,content:s,enableProse:!1,className:d("prose prose-headings:text-white prose-p:text-gray-300")})}),s&&typeof s=="string"&&(0,Le.jsx)("div",{className:d("space-y-6","text-gray-300"),children:s}),p&&(0,Le.jsx)("div",{className:"mt-auto pt-6 flex items-center justify-center",children:(0,Le.jsx)(F,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:(0,Le.jsx)("a",{href:m,children:p})})}),e==="radial"&&(0,Le.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 Ot=({icon:e,heading:t,variant:r,iconSize:n})=>e&&n==="small"?(0,Le.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[et(e)&&(0,Le.jsx)("div",{className:d("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",r==="outline"||r==="light"?"text-accent":"text-foreground",n==="small"?"mt-2":""),children:(0,Le.jsx)(fe,{type:e.type,iconName:e.iconName,size:"2x"})}),(0,Le.jsx)("div",{className:d("font-semibold",r==="outline"||r==="light"?"text-primary":"text-foreground",n==="small"?"text-2xl":"text-3xl"),children:t})]}):e?(0,Le.jsxs)("div",{className:"flex flex-col gap-4",children:[et(e)&&(0,Le.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":"text-foreground"),children:(0,Le.jsx)(fe,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Le.jsx)("h3",{className:d("font-semibold",r==="outline"||r==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,Le.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Le.jsx)("div",{className:d("font-semibold",r==="outline"||r==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var rt=({title:e,description:t,features:r,id:n})=>(0,Le.jsxs)("section",{className:d("container w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,Le.jsx)("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl text-primary",id:n||"",children:e}),t&&typeof t=="string"&&(0,Le.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:t}),t&&typeof t=="object"&&(0,Le.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:(0,Le.jsx)(M,{content:t,enableGutter:!1})}),(0,Le.jsx)("div",{className:`grid gap-8 mt-10 md:grid-cols-${r?r.length:1}`,children:r&&r.map((a,o)=>{var s,c,p,m,x;let l=()=>{if(a.icon&&"type"in a.icon&&a.icon.type!=="none")return{type:a.icon.type,iconName:a.icon.icon}};return(0,Le.jsx)(tt,{variant:((s=a.settings)==null?void 0:s.card)==="default"?"light":((c=a.settings)==null?void 0:c.card)||"outline",icon:l()||void 0,iconSize:((p=a.settings)==null?void 0:p.iconSize)||"large",width:"auto",heading:a.title||"",content:a.content||void 0,statistic:a.statistic||void 0,buttonText:(m=a.link)!=null&&m.url?"Find out more":void 0,buttonHref:((x=a.link)==null?void 0:x.url)||void 0},o)})})]});var ee=X(require("react"));function O({nodes:e}){return(0,Le.jsx)(ee.Fragment,{children:e==null?void 0:e.map((t,r)=>{if(t==null)return null;if(t.type==="text"&&t.text){let o=(0,Le.jsx)(ee.default.Fragment,{children:t.text},r);return t.format&1&&(o=(0,Le.jsx)("strong",{children:o},r)),t.format&2&&(o=(0,Le.jsx)("em",{children:o},r)),t.format&4&&(o=(0,Le.jsx)("span",{style:{textDecoration:"line-through"},children:o},r)),t.format&8&&(o=(0,Le.jsx)("span",{style:{textDecoration:"underline"},children:o},r)),t.format&16&&(o=(0,Le.jsx)("code",{children:t.text},r)),t.format&32&&(o=(0,Le.jsx)("sub",{children:o},r)),t.format&64&&(o=(0,Le.jsx)("sup",{children:o},r)),o}if(t.type==="table")return(0,Le.jsx)("table",{children:(0,Le.jsx)("tbody",{children:t.children.map((o,l)=>(0,Le.jsx)("tr",{children:o.children.map((s,c)=>(0,Le.jsx)("td",{children:O({nodes:s.children})},c))},l))})},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 l of o.children)"checked"in l&&(l!=null&&l.checked||(l.checked=!1));return O({nodes:o.children})},a="children"in t?n(t):"";if(t.type==="block"){let o=t.fields,l=o==null?void 0:o.blockType;if(!o||!l)return null;switch(l){case"cta":return(0,Le.jsx)(De,{...o},r);case"mediaBlock":return(0,Le.jsx)(We,{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,Le.jsx)(Ze,{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,Le.jsx)(be,{className:"col-start-2 mb-4",...o},r);case"code":return(0,Le.jsx)(je,{className:"col-start-2",...o},r);case"features":return(0,Le.jsx)(rt,{...o},r);case"reusableContentBlock":O({nodes:o.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,Le.jsx)("br",{className:"col-start-2"},r);case"paragraph":return(0,Le.jsx)("p",{className:"col-start-2",children:a},r);case"heading":{let o=t==null?void 0:t.tag;return(0,Le.jsx)(o,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:a},r)}case"list":{let o=t==null?void 0:t.tag;return(0,Le.jsx)(o,{className:"list col-start-2",children:a},r)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,Le.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:a},r):(0,Le.jsx)("li",{value:t==null?void 0:t.value,children:a},r);case"quote":return(0,Le.jsx)("blockquote",{className:"col-start-2",children:a},r);case"link":{let o=t.fields;return(0,Le.jsx)(j,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:a},r)}case"autolink":{let o=t.fields;return(0,Le.jsx)(j,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:a},r)}default:return null}})})}var M=({className:e,content:t,enableGutter:r=!0,enableProse:n=!0})=>{var a;return t?(0,Le.jsx)("div",{className:d({"container ":r,"max-w-none":!r,"mx-auto prose dark:prose-invert ":n},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&O({nodes:(a=t==null?void 0:t.root)==null?void 0:a.children})}):null};var be=({className:e,content:t,style:r})=>(0,Le.jsx)("div",{className:d("mx-auto my-8 w-full",e),children:(0,Le.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,Le.jsx)(M,{content:t,enableGutter:!1,enableProse:!1})})});0&&(module.exports={BannerBlock});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-THOLC3E6.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-44VMK4FL.mjs";import"../../chunk-M6M43TLT.mjs";import"../../chunk-FGWIT6CV.mjs";import"../../chunk-ZWKWU7U4.mjs";import"../../chunk-EY5QX73B.mjs";import"../../chunk-YCX5N23N.mjs";import"../../chunk-ALTFHQW6.mjs";import"../../chunk-IBV34MLI.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-2NFKSNJW.mjs";import"../../chunk-FI4SMRAR.mjs";import"../../chunk-5IQPAE6K.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-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-S7OK7D5I.mjs";export{a as BannerBlock};
|