cortex-react-components 1.43.5 → 1.43.7
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-DE2DIWCC.mjs → chunk-2MC5DSC7.mjs} +1 -1
- package/dist/{chunk-763KMQIQ.mjs → chunk-2NFKSNJW.mjs} +1 -1
- package/dist/{chunk-ZOLLFX4E.mjs → chunk-2VBPJMVS.mjs} +1 -1
- package/dist/{chunk-L2PQKIU4.mjs → chunk-3KMFY6E7.mjs} +1 -1
- package/dist/{chunk-23EQTK7B.mjs → chunk-423OEU3K.mjs} +1 -1
- package/dist/{chunk-NWW7KWJK.mjs → chunk-44VMK4FL.mjs} +1 -1
- package/dist/{chunk-4R7S6EEU.mjs → chunk-4JNRVCRR.mjs} +1 -1
- package/dist/{chunk-SJWGFZJ6.mjs → chunk-5IQPAE6K.mjs} +1 -1
- package/dist/{chunk-IPHHUHS3.mjs → chunk-5YTDIEDJ.mjs} +1 -1
- package/dist/{chunk-V7LBBZKS.mjs → chunk-6LKCK2EH.mjs} +1 -1
- package/dist/{chunk-URBIOX3W.mjs → chunk-6NQDTV3A.mjs} +1 -1
- package/dist/{chunk-HAVMZWZI.mjs → chunk-6UE4E5PP.mjs} +1 -1
- package/dist/{chunk-4L4RAUPG.mjs → chunk-6X3A3ENB.mjs} +1 -1
- package/dist/{chunk-O5G5R22J.mjs → chunk-72Z4T7BT.mjs} +1 -1
- package/dist/{chunk-IMAQJ7N3.mjs → chunk-AAI2VZST.mjs} +1 -1
- package/dist/{chunk-PBAL3B6N.mjs → chunk-AFKBIBWH.mjs} +1 -1
- package/dist/{chunk-MP3J7UPZ.mjs → chunk-AN4F3ML3.mjs} +1 -1
- package/dist/chunk-BDX257W2.mjs +1 -0
- package/dist/{chunk-SHN4XZWD.mjs → chunk-BOZT7Z5K.mjs} +1 -1
- package/dist/chunk-BRYZOZKY.mjs +1 -0
- package/dist/{chunk-GHBJK554.mjs → chunk-DESYC5BB.mjs} +1 -1
- package/dist/{chunk-AEDBEVEE.mjs → chunk-EJV6UKCA.mjs} +1 -1
- package/dist/{chunk-I5MUUAND.mjs → chunk-EQ74NJ3V.mjs} +1 -1
- package/dist/{chunk-JK3XF6LP.mjs → chunk-EQDX6HFN.mjs} +1 -1
- package/dist/chunk-FBUZ37DL.mjs +1 -0
- package/dist/{chunk-J2VQUYES.mjs → chunk-FI4SMRAR.mjs} +1 -1
- package/dist/{chunk-4KGFHVYD.mjs → chunk-GCIL2XUZ.mjs} +1 -1
- package/dist/{chunk-RZTXT4UD.mjs → chunk-GOMLTG5W.mjs} +1 -1
- package/dist/{chunk-Y6CZVVJF.mjs → chunk-HUN2X4VH.mjs} +1 -1
- package/dist/{chunk-NGK3IDFP.mjs → chunk-ICTOXY7D.mjs} +1 -1
- package/dist/{chunk-TQCGX4Y6.mjs → chunk-KDGEXDC5.mjs} +1 -1
- package/dist/{chunk-LBKMUSVR.mjs → chunk-KEUZSK3N.mjs} +1 -1
- package/dist/{chunk-6ZNVXWZR.mjs → chunk-KJ2C7CBU.mjs} +1 -1
- package/dist/chunk-KKPGN2TE.mjs +4 -0
- package/dist/{chunk-XBBQGSYP.mjs → chunk-M3J4AMUT.mjs} +1 -1
- package/dist/{chunk-66ZAIUUI.mjs → chunk-M6M43TLT.mjs} +1 -1
- package/dist/{chunk-UD7JYMRU.mjs → chunk-MANZDSTF.mjs} +1 -1
- package/dist/{chunk-REHZTVVN.mjs → chunk-MN7UDYWI.mjs} +1 -1
- package/dist/{chunk-UO2QAXEA.mjs → chunk-MNDA6BQL.mjs} +1 -1
- package/dist/{chunk-FYMNYQNR.mjs → chunk-NLFCSX3M.mjs} +1 -1
- package/dist/{chunk-32GGKWGB.mjs → chunk-NRL4U42W.mjs} +1 -1
- package/dist/{chunk-SBHCQ2HK.mjs → chunk-OKGREBP5.mjs} +1 -1
- package/dist/{chunk-ROEHSKFW.mjs → chunk-OVGEJMAF.mjs} +1 -1
- package/dist/{chunk-3FW5YDNM.mjs → chunk-OWBJTXZL.mjs} +1 -1
- package/dist/{chunk-QE7ACKUU.mjs → chunk-Q7QS4VSI.mjs} +1 -1
- package/dist/{chunk-YDQUZWFZ.mjs → chunk-QM7QBP2I.mjs} +1 -1
- package/dist/{chunk-EW2X7RMJ.mjs → chunk-RD47SXA5.mjs} +1 -1
- package/dist/{chunk-T6LPMF7A.mjs → chunk-S23ICHCQ.mjs} +1 -1
- package/dist/{chunk-HZ5QHCGZ.mjs → chunk-T44RKQFA.mjs} +1 -1
- package/dist/{chunk-WPTEMDOP.mjs → chunk-TE5P4LPT.mjs} +1 -1
- package/dist/chunk-TLBLUYXL.mjs +1 -0
- package/dist/chunk-TTN4NUDL.mjs +1 -0
- package/dist/{chunk-PVRWMAHW.mjs → chunk-UK4IPFAO.mjs} +1 -1
- package/dist/{chunk-VPVXJCL6.mjs → chunk-UMILL4LR.mjs} +1 -1
- package/dist/{chunk-MTRMM7GF.mjs → chunk-UUINBIAU.mjs} +1 -1
- package/dist/{chunk-XGQLOPHW.mjs → chunk-VW33NKNZ.mjs} +1 -1
- package/dist/{chunk-FKJWUROB.mjs → chunk-XD4IKPMW.mjs} +1 -1
- package/dist/chunk-YNC77MO4.mjs +1 -0
- package/dist/{chunk-LHMC3BKX.mjs → chunk-Z2CY2BLM.mjs} +1 -1
- package/dist/{chunk-MFB7HNJB.mjs → chunk-ZUT3ZWMS.mjs} +1 -1
- 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/Code.client.js +1 -1
- package/dist/components/Blocks/Code.client.mjs +1 -1
- package/dist/components/Blocks/Code.js +1 -1
- package/dist/components/Blocks/Code.mjs +1 -1
- package/dist/components/Blocks/Content.js +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/CopyButton.js +1 -1
- package/dist/components/Blocks/CopyButton.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.js +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.js +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
- package/dist/components/Blocks/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/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/index.js +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/DealCard.d.ts +2 -2
- package/dist/components/CRM/DealCard.js +1 -1
- package/dist/components/CRM/DealCard.mjs +1 -1
- package/dist/components/CRM/DealCard.stories.js +1 -1
- package/dist/components/CRM/DealCard.stories.mjs +1 -1
- package/dist/components/CRM/DealDetails.d.ts +5 -5
- package/dist/components/CRM/DealDetails.js +1 -1
- package/dist/components/CRM/DealDetails.mjs +1 -1
- package/dist/components/CRM/DealDetails.stories.js +1 -1
- package/dist/components/CRM/DealDetails.stories.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.d.ts +3 -5
- package/dist/components/CRM/KanbanBoard.js +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.stories.js +1 -1
- package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.d.ts +4 -4
- package/dist/components/CRM/KanbanColumn.js +1 -1
- package/dist/components/CRM/KanbanColumn.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.stories.js +1 -1
- package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
- package/dist/components/CRM/NewCustomerForm.js +1 -1
- package/dist/components/CRM/NewCustomerForm.mjs +1 -1
- package/dist/components/CRM/NewCustomerForm.stories.js +1 -1
- package/dist/components/CRM/NewCustomerForm.stories.mjs +1 -1
- package/dist/components/CRM/NewDealForm.d.ts +4 -4
- package/dist/components/CRM/NewDealForm.js +1 -1
- package/dist/components/CRM/NewDealForm.mjs +1 -1
- package/dist/components/CRM/NewDealForm.stories.js +1 -1
- package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
- package/dist/components/CRM/index.js +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/CRM/mockData.d.ts +4 -5
- package/dist/components/CRM/mockData.js +1 -1
- package/dist/components/CRM/mockData.mjs +1 -1
- package/dist/components/CRM/types.d.ts +9 -28
- package/dist/components/CRM/types.js +1 -1
- package/dist/components/Cards/PricingCard.js +1 -1
- package/dist/components/Cards/PricingCard.mjs +1 -1
- package/dist/components/Cards/PricingCard.stories.js +1 -1
- package/dist/components/Cards/PricingCard.stories.mjs +1 -1
- package/dist/components/Cards/ServiceCard.js +1 -1
- package/dist/components/Cards/ServiceCard.mjs +1 -1
- package/dist/components/Cards/ServiceCard.stories.js +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/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.js +1 -1
- package/dist/components/HeaderFooter/SectionHeading.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.js +1 -1
- package/dist/components/Holidays/ApproveLeave.mjs +1 -1
- package/dist/components/Holidays/ApproveLeave.stories.js +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.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.js +1 -1
- package/dist/components/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.stories.js +1 -1
- package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
- package/dist/components/Holidays/RequestLeave.js +1 -1
- package/dist/components/Holidays/RequestLeave.mjs +1 -1
- package/dist/components/Holidays/RequestLeave.stories.js +1 -1
- package/dist/components/Holidays/RequestLeave.stories.mjs +1 -1
- package/dist/components/Holidays/index.js +1 -1
- package/dist/components/Holidays/index.mjs +1 -1
- package/dist/components/Layouts/BlogList.js +1 -1
- package/dist/components/Layouts/BlogList.mjs +1 -1
- package/dist/components/Layouts/BlogList.stories.js +1 -1
- package/dist/components/Layouts/BlogList.stories.mjs +1 -1
- package/dist/components/Layouts/SlideShow.js +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/SlideShow.stories.js +1 -1
- package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
- package/dist/components/Layouts/index.js +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/Filter.js +1 -1
- package/dist/components/Menus/Filter.mjs +1 -1
- package/dist/components/Menus/Filter.stories.js +1 -1
- package/dist/components/Menus/Filter.stories.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.js +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.stories.js +1 -1
- package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
- package/dist/components/Menus/SidebarRight.js +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/SidebarRight.stories.js +1 -1
- package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
- package/dist/components/Menus/index.js +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Payload/Card/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Link/index.js +1 -1
- package/dist/components/Payload/Link/index.mjs +1 -1
- package/dist/components/Payload/Media/index.mjs +1 -1
- package/dist/components/Payload/Pagination/index.js +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 +4 -4
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/button.js +1 -1
- package/dist/components/ui/button.mjs +1 -1
- package/dist/components/ui/button.stories.js +1 -1
- package/dist/components/ui/button.stories.mjs +1 -1
- package/dist/components/ui/calendar.js +1 -1
- package/dist/components/ui/calendar.mjs +1 -1
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/pagination.js +1 -1
- package/dist/components/ui/pagination.mjs +1 -1
- package/dist/components/ui/sidebar.js +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/index.js +6 -6
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- 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.js +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/Documentation.stories.js +1 -1
- package/dist/pages/Documentation.stories.mjs +1 -1
- package/dist/pages/IndexPage.js +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/IndexPage.stories.js +67 -67
- 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.js +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/LandingPage.stories.js +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 +1 -1
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Publish.js +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.js +1 -1
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.js +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.js +1 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/sections/AboutSection.js +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/AboutSection.stories.js +1 -1
- package/dist/sections/AboutSection.stories.mjs +1 -1
- package/dist/sections/BlogDetail.js +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.js +1 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/BlogListSection.js +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/BlogListSection.stories.js +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/MainPageSection.js +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.js +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/ServiceSection.stories.js +1 -1
- package/dist/sections/ServiceSection.stories.mjs +1 -1
- package/dist/sections/form/index.js +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.js +1 -1
- package/dist/styles/Colors.mjs +1 -1
- package/dist/styles/Colors.stories.js +1 -1
- package/dist/styles/Colors.stories.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-5HYGXWKZ.mjs +0 -1
- package/dist/chunk-A2WH6FYC.mjs +0 -1
- package/dist/chunk-AHLX3GTH.mjs +0 -1
- package/dist/chunk-E436SEDU.mjs +0 -1
- package/dist/chunk-GLEWUUGS.mjs +0 -1
- package/dist/chunk-QH3BNFVD.mjs +0 -1
- package/dist/chunk-THRH74JO.mjs +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as o}from"./chunk-Y5ZFXDW5.mjs";import{a as m,b as p,c as v}from"./chunk-SBM5HULF.mjs";import{b as g}from"./chunk-Q6SEVCRG.mjs";import{b as n}from"./chunk-
|
|
4
|
+
import{a as o}from"./chunk-Y5ZFXDW5.mjs";import{a as m,b as p,c as v}from"./chunk-SBM5HULF.mjs";import{b as g}from"./chunk-Q6SEVCRG.mjs";import{b as n}from"./chunk-BDX257W2.mjs";import{useState as A}from"react";import{Toaster as D,toast as c}from"sonner";import{useRouter as k}from"next/navigation";import{jsx as s,jsxs as t}from"react/jsx-runtime";function R({leaveRequests:l,onApprove:f,onReject:u}){let[a,i]=A([]),d=k(),h=()=>{a.length===l.length?i([]):i(l.map(e=>e.id))},N=e=>{i(r=>r.includes(e)?r.filter(b=>b!==e):[...r,e])},x=async()=>{let e=await f(a);e.success?(c.success(e.message),d.refresh()):c.error(`Error: ${e.message}`),i([])},y=async()=>{let e=await u(a);e.success?(c.success(e.message),d.refresh()):c.error(`Error: ${e.message}`),i([])};return t("div",{className:"space-y-4",children:[t("div",{className:"flex justify-between items-center",children:[s("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),t("div",{className:"space-x-2",children:[s(n,{onClick:x,disabled:a.length===0,variant:"default",children:"Approve Selected"}),s(n,{onClick:y,disabled:a.length===0,variant:"destructive",children:"Reject Selected"})]})]}),s("div",{className:"overflow-hidden sm:rounded-md",children:t("ul",{className:"divide-y divide-gray-200",children:[s("li",{className:"px-4 py-4 sm:px-6",children:t("div",{className:"flex items-center justify-between",children:[t("div",{className:"flex items-center",children:[s(o,{id:"select-all",checked:a.length===l.length,onCheckedChange:h,className:"border-accent"}),s("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),t("span",{className:"text-sm font-medium text-gray-500",children:[a.length," of ",l.length," selected"]})]})}),l.map(e=>s("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:t("div",{className:"flex items-center justify-between",children:[t("div",{className:"flex items-center",children:[s(o,{id:`select-${e.id}`,checked:a.includes(e.id),onCheckedChange:()=>N(e.id),className:"border-accent"}),t("div",{className:"ml-3 flex items-center",children:[t(m,{className:"h-10 w-10",children:[s(p,{src:e.userImage,alt:e.userName}),s(v,{children:e.userName.split(" ").map(r=>r[0]).join("")})]}),s("div",{className:"ml-3",children:s("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:e.userName})})]})]}),t("div",{className:"flex items-center space-x-2",children:[t("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
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as D,b as P,d as x}from"./chunk-HWEPDRG6.mjs";import{a as N}from"./chunk-
|
|
4
|
+
import{a as D,b as P,d as x}from"./chunk-HWEPDRG6.mjs";import{a as N}from"./chunk-VW33NKNZ.mjs";import{a as d}from"./chunk-DWRQHV42.mjs";import{b as c}from"./chunk-BDX257W2.mjs";import{a as h}from"./chunk-NIQ4466A.mjs";import{useState as f,useEffect as T}from"react";import{format as S}from"date-fns";import{CalendarIcon as L}from"lucide-react";import{useRouter as R}from"next/navigation";import{Toaster as B,toast as p}from"sonner";import{jsx as e,jsxs as s}from"react/jsx-runtime";var q=({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 J({remainingDays:r,submitLeaveRequest:l}){let[a,n]=f(new Date),[t,i]=f(new Date),[m,v]=f("Full Day"),[g,C]=f(!1),F=R();T(()=>{C(a!==t||!a||!t),g&&v("Full Day")},[a,t]);let w=o=>{v(o)};return s("div",{className:"max-w-2xl",children:[e("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),s("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",r]}),s("form",{onSubmit:async o=>{if(o.preventDefault(),!a||!t){p.error("Please select both start and end dates");return}let y=Math.ceil((t.getTime()-a.getTime())/(1e3*60*60*24))+1;if((m==="Morning"||m==="Afternoon")&&(y=.5),y>r){p.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",m),u.append("duration",y.toString());let b=await(l||E)(u);b.success?(p.success(b.message),n(void 0),i(void 0),v("Full Day"),F.refresh()):p.error(`Error: ${b.message}`)},className:"space-y-4",children:[s("div",{className:"grid grid-cols-2 gap-4",children:[s("div",{className:"flex flex-col space-y-2",children:[e(d,{htmlFor:"startDate",children:"Start Date"}),s(D,{children:[e(P,{asChild:!0,children:s(c,{variant:"outline",className:h("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[e(L,{className:"mr-2 h-4 w-4"}),a?S(a,"PPP"):e("span",{children:"Pick a date"})]})}),e(x,{className:"w-auto p-0",align:"start",children:e(N,{mode:"single",selected:a,onSelect:o=>{n(o),o&&(!t||o>t)&&i(o)},initialFocus:!0})})]})]}),s("div",{className:"flex flex-col space-y-2",children:[e(d,{htmlFor:"endDate",children:"End Date"}),s(D,{children:[e(P,{asChild:!0,children:s(c,{variant:"outline",className:h("w-full justify-start text-left font-normal",!t&&"text-muted-foreground"),children:[e(L,{className:"mr-2 h-4 w-4"}),t?S(t,"PPP"):e("span",{children:"Pick a date"})]})}),e(x,{className:"w-auto p-0",align:"start",children:e(N,{mode:"single",selected:t,onSelect:i,disabled:o=>a?o<a:!1,initialFocus:!0})})]})]})]}),s("div",{className:"space-y-2",children:[e(d,{children:"Leave Type"}),e(q,{options:["Full Day","Morning","Afternoon"],value:m,onChange:w,disabled:[!1,g,g]})]}),e(c,{type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),e(B,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var E=async r=>{let l={};return r.forEach((a,n)=>{l[n]=a}),{success:!0,message:`Leave request submitted successfully for ${r.get("duration")}`}};export{J as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as m,b as r,c as t,d as o,e as c,f as l,g as e}from"./chunk-
|
|
4
|
+
import{a as m,b as r,c as t,d as o,e as c,f as l,g as e}from"./chunk-6LKCK2EH.mjs";import{a as p}from"./chunk-NIQ4466A.mjs";import{useRouter as I}from"next/navigation";import{jsx as a,jsxs as d}from"react/jsx-runtime";var $=u=>{let i=I(),{className:C,page:n,totalPages:s}=u,g=n<s,P=n>1,h=n-1>1,k=n+1<s;return a("div",{className:p("my-12",C),children:a(m,{children:d(r,{children:[a(t,{children:a(c,{disabled:!P,onClick:()=>{i.push(`/posts/page/${n-1}`)}})}),h&&a(t,{children:a(e,{})}),P&&a(t,{children:a(o,{onClick:()=>{i.push(`/posts/page/${n-1}`)},children:n-1})}),a(t,{children:a(o,{isActive:!0,onClick:()=>{i.push(`/posts/page/${n}`)},children:n})}),g&&a(t,{children:a(o,{onClick:()=>{i.push(`/posts/page/${n+1}`)},children:n+1})}),k&&a(t,{children:a(e,{})}),a(t,{children:a(l,{disabled:!g,onClick:()=>{i.push(`/posts/page/${n+1}`)}})})]})})})};export{$ as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-KDGEXDC5.mjs";import{a as s}from"./chunk-SV7NMNDI.mjs";import{a as t}from"./chunk-UESKYRNK.mjs";import{a as o}from"./chunk-NIQ4466A.mjs";import{jsx as e}from"react/jsx-runtime";function S({services:a,className:c}){return e("section",{id:"next-section",className:o("section-padding-primary",c),children:e(t,{className:"py-8",children:a&&a.length>0&&e("div",{className:"flex flex-wrap justify-center gap-y-8",children:a.map((p,r)=>e("div",{"data-aos":"fade-up","data-aos-delay":s([200,400,600],r),className:"w-full px-4 md:w-1/2 lg:w-1/3",children:e(i,{...p})},r))})})})}export{S 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-M3J4AMUT.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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c}from"./chunk-A5EYIB3V.mjs";import{a as m}from"./chunk-DWRQHV42.mjs";import{a as u}from"./chunk-Y5ZFXDW5.mjs";import{a as s}from"./chunk-QOIH63J3.mjs";import{b as n}from"./chunk-
|
|
1
|
+
import{a as c}from"./chunk-A5EYIB3V.mjs";import{a as m}from"./chunk-DWRQHV42.mjs";import{a as u}from"./chunk-Y5ZFXDW5.mjs";import{a as s}from"./chunk-QOIH63J3.mjs";import{b as n}from"./chunk-BDX257W2.mjs";import{useState as p}from"react";import{jsx as r,jsxs as a}from"react/jsx-runtime";function S({onSubmit:l}){var i;let[e,o]=p({name:"",intro:"",active:!0});return a("form",{onSubmit:t=>{t.preventDefault(),e.name&&(l({...e,name:e.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),o({name:"",intro:"",active:!0}))},className:"space-y-4",children:[a("div",{className:"space-y-2",children:[r(m,{htmlFor:"customerName",children:"Customer Name"}),r(s,{id:"customerName",value:e.name,onChange:t=>o({...e,name:t.target.value}),placeholder:"Enter customer name",required:!0})]}),a("div",{className:"space-y-2",children:[r(m,{htmlFor:"customerIntro",children:"Intro"}),r(c,{id:"customerIntro",value:(i=e.intro)!=null?i:"",onChange:t=>o({...e,intro:t.target.value}),placeholder:"Enter customer intro"})]}),a("div",{className:"flex items-center space-x-2",children:[r(u,{id:"activeCustomer",checked:!!e.active,onCheckedChange:t=>o({...e,active:t})}),r(m,{htmlFor:"activeCustomer",children:"Active Customer"})]}),r(n,{type:"submit",className:"w-full",children:"Add Customer"})]})}export{S as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
1
|
+
import{a as l}from"./chunk-M3J4AMUT.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import{a as m}from"./chunk-NIQ4466A.mjs";import t from"next/image";import{jsx as e,jsxs as i}from"react/jsx-runtime";function u(o){let{images:a,sectionHeading:c,keyPoints:d,description:s}=o;return e("section",{id:"about-section",className:m("section-padding-primary",o.className||""),children:e(n,{children:i("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[i("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[e(l,{...c}),d&&d.length>0&&e("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:d.map((r,g)=>i("div",{className:"group flex min-h-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 md:min-h-[85px] md:px-[1.875rem] md:py-3",children:[e("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:r.icon}),e("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:r.title})]},g))}),s&&e("p",{className:"mt-5 md:mt-[1.875rem]",children:s})]}),a&&e("div",{className:"mx-auto text-center",children:i("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[e("div",{className:"relative flex justify-end overflow-hidden",children:e("div",{className:"relative z-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:e("div",{className:"relative z-[4] overflow-hidden",children:e(t,{src:a.image1.src,alt:a.image1.alt,width:a.image1.width,height:a.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})})}),e("div",{className:"flex overflow-hidden",children:e(t,{src:a.image2.src,alt:a.image2.alt,width:a.image2.width,height:a.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),e("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:e(t,{src:a.image3.src,alt:a.image4.alt,width:a.image3.width,height:a.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),e("div",{className:"overflow-hidden",children:e(t,{src:a.image4.src,alt:a.image4.alt,width:a.image4.width,height:a.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),e("div",{className:"absolute left-1/2 top-1/2 z-[4] -translate-x-1/2 -translate-y-1/2 overflow-hidden",children:e("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:e("span",{className:"grid h-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:e("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})}export{u as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-423OEU3K.mjs";import{e as r}from"./chunk-T44RKQFA.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 +1 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
1
|
+
import{a as o}from"./chunk-TE5P4LPT.mjs";import{a as e}from"./chunk-6K2R3OAD.mjs";import{jsx as t}from"react/jsx-runtime";function a({...r}){let n=r.page,{contentWithIds:i,tableOfContents:s}=e(n);return t("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:t(o,{blocks:i})})}export{a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as x}from"./chunk-MGZMAVEP.mjs";import{b as s}from"./chunk-
|
|
4
|
+
import{a as x}from"./chunk-MGZMAVEP.mjs";import{b as s}from"./chunk-BDX257W2.mjs";import{a as d,b as m,c as f,e as u}from"./chunk-D76EO57Z.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{useState as v,useEffect as O}from"react";import C from"next/link";import{Printer as z,Presentation as S}from"lucide-react";import{usePathname as H}from"next/navigation";import{jsx as t,jsxs as a}from"react/jsx-runtime";var G=({children:h,pageId:b,tableOfContents:p=[],edit:y=!0,path:N="/admin/collections/pages/",relatedContent:l=[{title:"Related Content",links:[]}]})=>{let[c,k]=v(!1),[P,T]=v(""),g=H(),E=()=>{k(!c)},I=e=>{switch(e){case"h3":return"ml-4";case"h4":return"ml-8";default:return""}},$=(e,n)=>{e.preventDefault();let o=document.getElementById(n);if(o){let r=o.offsetTop+-100,w=document.querySelector(".container")||window;w===window?window.scrollTo({top:r,behavior:"smooth"}):w.scrollTo({top:r,behavior:"smooth"}),T(n)}else console.error(`Element with ID "${n}" not found.`)},L=()=>{let n="/print/"+g.split("/")[1],o=window.open(n,"Print","width=1754,height=1240,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes");o&&o.focus()},R=()=>{let n="/present/"+g.split("/")[1],o=window.open(n,"Print","width=1754,height=1240,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes");o&&o.focus()};return O(()=>{let e=window.location.hash;if(e){let n=e.substring(1),o=document.getElementById(n);if(o){let r=o.getBoundingClientRect().top+window.pageYOffset+-300;window.scrollTo({top:r,behavior:"smooth"})}}},[window.location.hash]),a("div",{className:"container py-8",children:[a("div",{className:"grid grid-cols-1 md:grid-cols-3 xl:grid-cols-4 gap-8",children:[t("div",{className:i(c?"col-span-2":"col-span-3","xl:col-span-3"),children:h}),a("div",{className:i("space-y-6 transform min-w-full transition-transform duration-300","col-span-4 md:col-span-1 translate-x-0 xl:-mt-20",c?"translate-x-0":"md:translate-x-full","xl:block xl:col-span-1 xl:translate-x-0"),children:[y&&a(d,{children:[t(m,{children:t(f,{className:"text-accent",children:"Content Actions"})}),a(u,{children:[t("p",{className:"mb-4 text-sm text-muted-foreground",children:"Contribute or create new content."}),t(C,{href:`${N}${b}`,children:t(s,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit Page"})}),t(C,{href:"/admin/collections/pages/create",children:t(s,{variant:"outline",className:"w-full mt-2 text-accent hover:text-foreground",children:"Create New"})}),a("div",{className:"flex space-x-2 mt-4",children:[a(s,{variant:"outline",className:"text-accent hover:text-foreground",onClick:L,children:[t(z,{className:"mr-2"})," Print"]}),a(s,{variant:"outline",className:"text-accent hover:text-foreground",onClick:R,children:[t(S,{className:"mr-2"})," Present"]})]})]})]}),l&&l.length>0&&l.map((e,n)=>e.links&&e.links.length>0&&t(x,{...e},n)),p.length>3&&a(d,{className:"w-full max-w-sm mt-4",children:[t(m,{children:t(f,{className:"text-accent",children:"On this page"})}),t(u,{children:t("ul",{className:"space-y-2",children:p.map((e,n)=>t("li",{className:I(e.tag),children:t("a",{href:`#${e.id}`,className:`text-xs ${P===e.id?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:e.text})},n))})})]})]}),t("button",{onClick:E,className:i("fixed top-1/2 right-0 z-50 h-16 w-8 bg-accent text-accent-foreground rounded-l-full transform -translate-y-1/2 flex items-center justify-center","hidden md:block xl:hidden"),children:"\u22EE"})]}),t("div",{className:"block md:hidden mt-8",children:t("div",{className:"space-y-6",children:h})})]})};export{G as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as C,j as v,k as P,l as S,m as R,n as w,o as I}from"./chunk-O5BAW5XQ.mjs";import{a as p}from"./chunk-
|
|
1
|
+
import{i as C,j as v,k as P,l as S,m as R,n as w,o as I}from"./chunk-O5BAW5XQ.mjs";import{a as p}from"./chunk-44VMK4FL.mjs";import{a as g}from"./chunk-UK4IPFAO.mjs";import{a as b}from"./chunk-HUN2X4VH.mjs";import{a as k}from"./chunk-2NFKSNJW.mjs";import{a as n}from"./chunk-NIQ4466A.mjs";import{jsx as u,jsxs as F}from"react/jsx-runtime";var d=({links:s,richText:e})=>u("div",{className:"container",children:F("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:[u("div",{className:"max-w-[48rem] flex items-center",children:e&&u(m,{className:"mb-0",content:e,enableGutter:!1})}),u("div",{className:"flex flex-col gap-8",children:(s||[]).map(({link:t},i)=>u(p,{size:"lg",...t},i))})]})});import{jsx as c,jsxs as N}from"react/jsx-runtime";var B=({title:s,description:e,features:t,id:i})=>N("section",{className:n("container w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[s&&c("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl",id:i||"",children:s}),e&&typeof e=="string"&&c("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:e}),e&&typeof e=="object"&&c("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:c(m,{content:e,enableGutter:!1})}),c("div",{className:`grid gap-8 mt-10 md:grid-cols-${t?t.length:1}`,children:t&&t.map((l,r)=>{let o=N("div",{className:"flex flex-col gap-4",children:[c("div",{className:"text-accent h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:c("i",{className:`${l.icon.type} fa-${l.icon.icon} fa-4x`})}),c("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-400",children:l.title}),l.content&&typeof l.content!="object"&&c("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:l.content}}),l.content&&typeof l.content=="object"&&c("div",{className:"text-lg opacity-80",children:c(m,{content:l.content,enableGutter:!1})})]},r);return l.link?c("a",{href:l.link.url?l.link.url:"#",className:"no-underline group",children:o},r):o})})]});import z,{Fragment as A}from"react";import{jsx as a}from"react/jsx-runtime";function f({nodes:s}){return a(A,{children:s==null?void 0:s.map((e,t)=>{if(e==null)return null;if(e.type==="text"&&e.text){let r=a(z.Fragment,{children:e.text},t);return e.format&1&&(r=a("strong",{children:r},t)),e.format&2&&(r=a("em",{children:r},t)),e.format&4&&(r=a("span",{style:{textDecoration:"line-through"},children:r},t)),e.format&8&&(r=a("span",{style:{textDecoration:"underline"},children:r},t)),e.format&16&&(r=a("code",{children:e.text},t)),e.format&32&&(r=a("sub",{children:r},t)),e.format&64&&(r=a("sup",{children:r},t)),r}if(e.type==="table")return a("table",{children:a("tbody",{children:e.children.map((r,o)=>a("tr",{children:r.children.map((h,x)=>a("td",{children:f({nodes:h.children})},x))},o))})},t);let i=r=>{if(r.children==null)return null;if((r==null?void 0:r.type)==="list"&&(r==null?void 0:r.listType)==="check")for(let o of r.children)"checked"in o&&(o!=null&&o.checked||(o.checked=!1));return f({nodes:r.children})},l="children"in e?i(e):"";if(e.type==="block"){let r=e.fields,o=r==null?void 0:r.blockType;if(!r||!o)return null;switch(o){case"cta":return a(d,{...r},t);case"mediaBlock":return a(g,{className:"col-start-1 col-span-3",imgClassName:"m-0",...r,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},t);case"imageBlock":return a(b,{className:"col-start-1 col-span-3",imgClassName:"m-0",...r,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},t);case"banner":return a(T,{className:"col-start-2 mb-4",...r},t);case"code":return a(k,{className:"col-start-2",...r},t);case"features":return a(B,{...r},t);default:return null}}else switch(e.type){case"linebreak":return a("br",{className:"col-start-2"},t);case"paragraph":return a("p",{className:"col-start-2",children:l},t);case"heading":{let r=e==null?void 0:e.tag;return a(r,{className:"col-start-2",id:(e==null?void 0:e.id)||"",children:l},t)}case"list":{let r=e==null?void 0:e.tag;return a(r,{className:"list col-start-2",children:l},t)}case"listitem":return(e==null?void 0:e.checked)!=null?a("li",{"aria-checked":e.checked?"true":"false",className:` ${e.checked,""}`,role:"checkbox",tabIndex:-1,value:e==null?void 0:e.value,children:l},t):a("li",{value:e==null?void 0:e.value,children:l},t);case"quote":return a("blockquote",{className:"col-start-2",children:l},t);case"link":{let r=e.fields;return a(p,{newTab:!!(r!=null&&r.newTab),reference:r.doc,type:r.linkType==="internal"?"reference":"custom",url:r.url,children:l},t)}case"autolink":{let r=e.fields;return a(p,{newTab:!!(r!=null&&r.newTab),reference:r.doc,type:r.linkType==="internal"?"reference":"custom",url:r.url,children:l},t)}default:return null}})})}import{jsx as L}from"react/jsx-runtime";var m=({className:s,content:e,enableGutter:t=!0,enableProse:i=!0})=>{var l;return e?L("div",{className:n({"container ":t,"max-w-none":!t,"mx-auto prose dark:prose-invert ":i},s),children:e&&!Array.isArray(e)&&typeof e=="object"&&"root"in e&&f({nodes:(l=e==null?void 0:e.root)==null?void 0:l.children})}):null};import{jsx as y}from"react/jsx-runtime";var T=({className:s,content:e,style:t})=>y("div",{className:n("mx-auto my-8 w-full",s),children:y("div",{className:n("border py-3 px-6 flex items-center rounded",{"border-border bg-card":t==="info","border-error bg-error/30":t==="error","border-success bg-success/30":t==="success","border-warning bg-warning/30":t==="warning"}),children:y(m,{content:e,enableGutter:!1,enableProse:!1})})});export{T as a,d as b,B as c,f as d,m as e};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as m}from"./chunk-
|
|
4
|
+
import{a as m}from"./chunk-GCIL2XUZ.mjs";import{a as r}from"./chunk-NIQ4466A.mjs";import{useState as h,useEffect as w,useCallback as g}from"react";import{AnimatePresence as x,motion as y}from"framer-motion";import{jsx as t,jsxs as N}from"react/jsx-runtime";var W=p=>{let[l,a]=h(0),{blocks:n}=p,f=n&&Array.isArray(n)&&n.length>0,b=e=>{a(e)},i=()=>{a(e=>(e+1)%n.length)},s=()=>{a(e=>(e-1+n.length)%n.length)},c=g(((e,o)=>{let d;return(...v)=>{clearTimeout(d),d=setTimeout(()=>e(...v),o)}})(e=>{e.deltaY>0?i():s()},300),[]),u=e=>{e.key==="ArrowDown"?i():e.key==="ArrowUp"&&s()};return w(()=>(window.addEventListener("wheel",c),window.addEventListener("keydown",u),()=>{window.removeEventListener("wheel",c),window.removeEventListener("keydown",u)}),[]),N("div",{className:"flex h-screen relative",children:[t("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-100",children:f&&n.map((e,o)=>t("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${l===o?"bg-accent":"bg-gray-300"}`,onClick:()=>b(o),children:t("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:e.blockName})},e.id))}),n.map((e,o)=>t("div",{className:`absolute inset-0 flex items-center justify-center transition-opacity duration-300 ${o===l?"opacity-100":"opacity-0"}`,children:t(m,{blocks:[e]})},o)),t("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:i,children:t(k,{})})]})},k=()=>t(x,{children:t(y.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:r("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-gray-800"),children:t(y.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:r("w-[12px] h-[12px] rounded-full","bg-gray-800")})})});export{W as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=[{id:1,name:"Acme Corp",intro:"A leading technology company",active:!0,createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:2,name:"GlobalTech",intro:"Innovative solutions provider",active:!0,createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:3,name:"InnoSystems",intro:"Cutting-edge software development",active:!1,createdAt:"2023-01-01",updatedAt:"2023-01-01"}],t=[{id:1,name:"Software",type:"proposition",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:2,name:"Hardware",type:"proposition",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:3,name:"Referral",type:"source",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:4,name:"Outbound",type:"source",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:5,name:"Tech",type:"sector",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:6,name:"Finance",type:"sector",createdAt:"2023-01-01",updatedAt:"2023-01-01"}],e=[{id:1,name:"John Doe",email:"john.doe@example.com",role:"user",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:2,name:"Jane Smith",email:"jane.smith@example.com",role:"user",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:3,name:"Bob Johnson",email:"bob.johnson@example.com",role:"user",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:4,name:"Alice Brown",email:"alice.brown@example.com",role:"user",createdAt:"2023-01-01",updatedAt:"2023-01-01"},{id:5,name:"Charlie Davis",email:"charlie.davis@example.com",role:"user",createdAt:"2023-01-01",updatedAt:"2023-01-01"}],o=[{id:1,customer:a[0],value:5e4,assignee:e[2],status:"Qualified",categories:t.slice(0,3),dateLogged:"2023-01-15",closureDate:"2023-06-30",updatedAt:"2023-05-01T10:00:00Z",createdAt:"2023-01-01",comments:[{id:"1",text:"Initial contact made",author:e[5],timestamp:"2023-01-15T09:00:00Z"}],description:"Potential software solution for Acme Corp"},{id:2,customer:{id:2,name:"GlobalTech",active:!0,createdAt:"2023-01-01",updatedAt:"2023-01-01"},value:75e3,assignee:{id:2,name:"Jane Smith",email:"jane.smith@example.com",role:"user",createdAt:"2023-01-01",updatedAt:"2023-01-01"},status:"Proposal Made",categories:t.slice(0,3),dateLogged:"2023-02-01",closureDate:"2023-07-31",updatedAt:"2023-05-10T14:30:00Z",createdAt:"2023-01-01",comments:[{id:"2",text:"Proposal sent",author:e[1],timestamp:"2023-02-15T09:00:00Z"}],description:"Custom hardware solution for GlobalTech"}],d={deals:o,users:e,customers:a,categories:t};export{a,t as b,e as c,o as d,d as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as U}from"./chunk-OWBJTXZL.mjs";import{a as I}from"./chunk-4NKKWJ2X.mjs";import{a as f,c as C,d as D,g as h,i as N}from"./chunk-4JC2TJML.mjs";import{a as w,f as E,g as A,i as L}from"./chunk-JWDVKGZL.mjs";import{a as T}from"./chunk-A5EYIB3V.mjs";import{a as l}from"./chunk-DWRQHV42.mjs";import{a as P}from"./chunk-Y5ZFXDW5.mjs";import{a as g}from"./chunk-QOIH63J3.mjs";import{b as v}from"./chunk-BDX257W2.mjs";import{useState as S,useEffect as J}from"react";import{PlusIcon as K}from"lucide-react";import{Fragment as Q,jsx as a,jsxs as r}from"react/jsx-runtime";function oe({customers:c,users:d,categories:B,onSubmit:O,initialDeal:n,onAddCustomer:V,onClose:u}){var y,x,F,k;let[s,i]=S(n||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[q,p]=S(!1),[o,b]=S({});J(()=>{n&&i(n)},[n]);let H=()=>{let e={};return s.customer||(e.customer="Customer is required"),s.value||(e.value="Value is required"),s.assignee||(e.assignee="Assignee is required"),s.closureDate||(e.closureDate="Closure Date is required"),b(e),Object.keys(e).length===0},M=e=>{e.preventDefault(),H()&&(O({...s}),i({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),b({}),u==null||u())},R=e=>{i(t=>({...t,categories:(t.categories||[]).includes(e)?(t.categories||[]).filter(m=>m!==e):[...t.categories||[],e]}))},z=e=>{i({...s,customer:e}),p(!1),V(e)},j=e=>d==null?void 0:d.find(t=>t.id===Number(e)),G=e=>c==null?void 0:c.find(t=>t.id===Number(e));return r(Q,{children:[r("form",{onSubmit:M,className:"space-y-6",children:[a(I,{className:"h-[60vh] pr-4",children:r("div",{className:"space-y-6 px-4",children:[r("div",{className:"space-y-2 space-x-2",children:[a(l,{htmlFor:"customer",children:"Customer"}),r("div",{className:"flex items-center space-x-2",children:[r(f,{value:(x=(y=s.customer)==null?void 0:y.id)==null?void 0:x.toString(),onValueChange:e=>i({...s,customer:G(e)}),children:[a(D,{children:a(C,{placeholder:"Select customer"})}),a(h,{children:c.map(e=>{var t;return a(N,{value:((t=e.id)==null?void 0:t.toString())||"",children:e.name},e.id)})})]}),a(v,{variant:"outline",size:"icon",onClick:()=>p(!0),children:a(K,{className:"w-5 h-5"})})]}),o.customerId&&a("p",{className:"text-red-500 text-sm",children:o.customerId})]}),r("div",{className:"space-y-2 space-x-2",children:[a(l,{htmlFor:"value",children:"Value"}),a(g,{id:"value",type:"number",value:s.value||"",onChange:e=>i({...s,value:Number.parseFloat(e.target.value)}),placeholder:"Enter deal value"}),o.value&&a("p",{className:"text-red-500 text-sm",children:o.value})]}),r("div",{className:"space-y-2 space-x-2",children:[a(l,{htmlFor:"assignee",children:"Assignee"}),r(f,{value:(k=(F=s.assignee)==null?void 0:F.id)==null?void 0:k.toString(),onValueChange:e=>i({...s,assignee:j(e)}),children:[a(D,{children:a(C,{placeholder:"Select assignee"})}),a(h,{children:d&&d.map(e=>{var t;return a(N,{value:((t=e.id)==null?void 0:t.toString())||"",children:e.name},e.id)})})]}),o.assignee&&a("p",{className:"text-red-500 text-sm",children:o.assignee})]}),r("div",{className:"space-y-2 space-x-2",children:[a(l,{htmlFor:"description",children:"Description"}),a(T,{id:"description",value:s.description||"",onChange:e=>i({...s,description:e.target.value}),placeholder:"Enter deal description"})]}),r("div",{className:"space-y-2 space-x-2",children:[a(l,{children:"Categories"}),a("div",{className:"space-y-4",children:["proposition","source","sector"].map(e=>r("div",{className:"space-y-2",children:[a("h4",{className:"text-sm font-medium",children:e.charAt(0).toUpperCase()+e.slice(1)}),a("div",{className:"grid grid-cols-2 gap-2",children:B.filter(t=>t.type===e).map(t=>{var m;return r("div",{className:"flex items-center space-x-2",children:[a(P,{id:t.id.toString(),checked:(m=s.categories)==null?void 0:m.includes(t.id),onCheckedChange:()=>R(t)}),a("label",{htmlFor:t.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:t.name})]},t.id)})})]},e))})]}),r("div",{className:"space-y-2 space-x-2",children:[a(l,{htmlFor:"closureDate",children:"Closure Date"}),a(g,{id:"closureDate",type:"date",value:s.closureDate||"",onChange:e=>i({...s,closureDate:e.target.value})}),o.closureDate&&a("p",{className:"text-red-500 text-sm",children:o.closureDate})]})]})}),a(v,{type:"submit",className:"w-full",children:n?"Update Deal":"Add Deal"})]}),a(w,{open:q,onOpenChange:p,children:r(E,{children:[a(A,{children:a(L,{children:"Add New Customer"})}),a(U,{onSubmit:z})]})})]})}export{oe as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-ICTOXY7D.mjs";import{a}from"./chunk-NIQ4466A.mjs";import{jsx as o}from"react/jsx-runtime";var p=r=>{let{className:t,enableGutter:s=!0,imgClassName:i,media:m,staticImage:n}=r;return o("div",{className:a("",{container:s},t),children:o(e,{imgClassName:a("border border-border rounded-[0.8rem]",i),resource:m,src:n})})};export{p as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as f}from"./chunk-CTKUF2I6.mjs";import{a as
|
|
4
|
+
import{a as f}from"./chunk-CTKUF2I6.mjs";import{a as p}from"./chunk-NOEITQK2.mjs";import{a as C}from"./chunk-EG6XIOOJ.mjs";import{b as v}from"./chunk-BDX257W2.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{Formik as x}from"formik";import{FaUser as w}from"react-icons/fa6";import*as m from"yup";import{toast as b}from"sonner";import{jsx as e,jsxs as n}from"react/jsx-runtime";var s={tooShort:"Must be at least ${min} characters",tooLong:"Must be at most ${max} characters",required:"This field is required",email:"Invalid email format"},L=m.object().shape({name:m.string().min(2,s.tooShort).max(50,s.tooLong).required(s.required),email:m.string().email(s.email).required(s.required),subject:m.string().min(2,s.tooShort).max(50,s.tooLong).required(s.required),message:m.string().min(2,s.tooShort).max(300,s.tooLong).required(s.required)}),u=i("!pr-[44px]"),g=i("!border-red-600 border"),d=i("sr-only");function U(){return e(x,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:L,onSubmit:async(a,{resetForm:t})=>{let o=await f(a);o.data===null?b.error(o.message):(b.success(o.message),t())},children:({errors:a,touched:t,values:o,handleChange:r,handleBlur:c,isSubmitting:l,handleSubmit:h})=>n("form",{onSubmit:h,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[n("div",{children:[e(p,{placeholder:"Your Name",type:"text",name:"name",value:o.name,onChange:r,onBlur:c,disabled:l,icon:e(w,{}),className:i(u,a.name&&t.name&&g)}),a.name&&t.name&&e("p",{title:a.name,"aria-live":"polite",role:"error message",className:d,children:a.name})]}),n("div",{children:[e(p,{placeholder:"Your Email",type:"email",name:"email",value:o.email,onChange:r,onBlur:c,disabled:l,icon:e(N,{}),className:i(u,a.email&&t.email&&g)}),a.email&&t.email&&e("p",{title:a.email,"aria-live":"polite",role:"error message",className:d,children:a.email})]}),n("div",{className:"lg:col-span-2",children:[e(p,{placeholder:"Subject",type:"text",name:"subject",value:o.subject,onChange:r,onBlur:c,disabled:l,className:i(u,a.subject&&t.subject&&g)}),a.subject&&t.subject&&e("p",{title:a.subject,"aria-live":"polite",role:"error message",className:d,children:a.subject})]}),n("div",{className:"lg:col-span-2",children:[e(C,{placeholder:"Write Message...",name:"message",value:o.message,onChange:r,onBlur:c,disabled:l,icon:e(S,{}),className:i(u,a.message&&t.message&&g)}),a.message&&t.message&&e("p",{title:a.message,"aria-live":"polite",role:"error message",className:d,children:a.message})]}),e("div",{className:"lg:col-span-2",children:e(v,{type:"submit",className:"w-full outline outline-accent bg-accent text-accent-foreground hover:bg-white hover:text-accent",disabled:l,children:e("span",{children:"SEND"})})})]})})}function N(){return e("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function S(){return e("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}export{U as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as l}from"./chunk-MN7UDYWI.mjs";import{a as s}from"./chunk-AFKBIBWH.mjs";import{a as c}from"./chunk-6X3A3ENB.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import b from"next/image";import{ChevronRightIcon as u,HomeIcon as g}from"@heroicons/react/20/solid";import{Fragment as x,jsx as t,jsxs as i}from"react/jsx-runtime";var h={highImpact:s,lowImpact:l,mediumImpact:c,sectionHero:m},k=a=>{let{type:r}=a||{};if(!r||r==="none")return null;let e=h[r];return e?t(e,{...a}):null};function f({breadcrumbItems:a}){if(a&&a.length>0){let r=a.filter(e=>e.label.toLowerCase()!=="home");return t("nav",{"aria-label":"Breadcrumb",className:"flex",children:i("ol",{role:"list",className:"flex items-center space-x-4",children:[t("li",{children:t("div",{children:i("a",{href:"/",className:"text-foreground hover:text-accent",children:[t(g,{"aria-hidden":"true",className:"size-5 shrink-0"}),t("span",{className:"sr-only",children:"Home"})]})})}),r.map((e,p)=>t("li",{children:i("div",{className:"flex items-center",children:[t(u,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),e.href?t("a",{href:e.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:e.label}):t("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:e.label})]})},p))]})})}return t(x,{})}import{jsx as o,jsxs as d}from"react/jsx-runtime";function m({title:a,breadcrumbItems:r,image:e}){return d("section",{className:"-z-10 relative flex min-h-[250px] pt-auto items-end",children:[o("div",{className:"absolute inset-0 z-0",children:e&&o(b,{priority:!0,src:e.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"})}),o("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),o(n,{children:d("div",{className:"relative z-10 flex flex-wrap items-center justify-between gap-x-20 gap-y-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[o("h1",{className:"font-secondary text-5xl font-bold lg:w-1/2",children:a}),r&&r.length>0&&o(f,{breadcrumbItems:r})]})})]})}export{m as a,k as b,f as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a}from"./chunk-
|
|
4
|
+
import{a}from"./chunk-BDX257W2.mjs";import{a as e}from"./chunk-NIQ4466A.mjs";import{DayPicker as s}from"react-day-picker";import{jsx as c}from"react/jsx-runtime";function d({className:r,classNames:o,showOutsideDays:n=!0,...t}){return c(s,{showOutsideDays:n,className:e("p-3",r),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:e(a({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:e("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",t.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:e(a({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...o},...t})}d.displayName="Calendar";export{d as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}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-M3J4AMUT.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 C}from"./chunk-TTN4NUDL.mjs";import{a as b}from"./chunk-BRYZOZKY.mjs";import{a as p,b as d,f as u,g as D,i as c}from"./chunk-JWDVKGZL.mjs";import{b as g}from"./chunk-BDX257W2.mjs";import{useState as P}from"react";import{PlusCircle as y}from"lucide-react";import{Droppable as R,Draggable as T}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as e,jsxs as a}from"react/jsx-runtime";function L({status:l,deals:t,users:f,customers:h,categories:i,onDealClick:N,calculateColumnValue:w,calculateWeightedValue:x,addNewDeal:n,onAddCustomer:S}){let[v,m]=P(!1);return a("div",{className:"flex flex-col w-80",children:[e("h2",{className:"text-xl font-semibold mb-4",children:l}),n&&a(p,{open:v,onOpenChange:m,children:[e(d,{asChild:!0,children:a(g,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[e(y,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),a(u,{children:[e(D,{children:e(c,{children:"Add New Deal"})}),e(C,{customers:h,users:f,categories:i,onSubmit:n,onAddCustomer:S,onClose:()=>m(!1)})]})]}),e(R,{droppableId:l,isDropDisabled:!1,children:r=>a("div",{ref:r.innerRef,...r.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((o,A)=>e(T,{draggableId:o.id.toString(),index:o.id,children:s=>e("div",{ref:s.innerRef,...s.draggableProps,...s.dragHandleProps,children:e(b,{deal:o,customer:o.customer,categories:i,onClick:()=>N(o)})})},o.id.toString())),r.placeholder]})}),a("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[a("p",{className:"font-semibold",children:["Total:"," ",a("span",{className:"text-green-600",children:["\xA3",w(t).toLocaleString()]})]}),a("p",{className:"font-semibold",children:["Weighted:"," ",a("span",{className:"text-blue-600",children:["\xA3",x(t,l).toLocaleString()]})]})]})]})}export{L as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as l,b as n,c as t,d as c}from"./chunk-OAOCXXC2.mjs";import{b as i}from"./chunk-
|
|
1
|
+
import{a as l,b as n,c as t,d as c}from"./chunk-OAOCXXC2.mjs";import{b as i}from"./chunk-BDX257W2.mjs";import{Copy as g,Check as p}from"lucide-react";import{useState as b}from"react";import{jsx as e,jsxs as o}from"react/jsx-runtime";var v=[{name:"one",colors:["100","200","300","400","500","600","700","800","900"]},{name:"two",colors:["100","200","300","400","500","600","700","800","900"]},{name:"three",colors:["100","200","300","400","500","600","700","800","900"]},{name:"four",colors:["100","200","300","400","500","600","700","800","900"]}],u=[{name:"Base",colors:["background","foreground"]},{name:"Card",colors:["card","card-foreground"]},{name:"Popover",colors:["popover","popover-foreground"]},{name:"Primary",colors:["primary","primary-foreground"]},{name:"Secondary",colors:["secondary","secondary-foreground"]},{name:"Muted",colors:["muted","muted-foreground"]},{name:"Accent",colors:["accent","accent-foreground"]},{name:"Destructive",colors:["destructive","destructive-foreground"]},{name:"Border & Input",colors:["border","input","ring"]},{name:"Charts",colors:["chart-1","chart-2","chart-3","chart-4","chart-5"]},{name:"Sidebar",colors:["sidebar-background","sidebar-foreground","sidebar-primary","sidebar-primary-foreground","sidebar-accent","sidebar-accent-foreground","sidebar-border","sidebar-ring"]}];function y(){let[d,s]=b(null),m=r=>{navigator.clipboard.writeText(r),s(r),setTimeout(()=>s(null),2e3)};return o("div",{className:"w-full max-w-6xl mx-auto space-y-2",children:[e("div",{className:"variable-safelist",style:{display:"none"}}),o("div",{children:[e("h1",{className:"text-3xl font-semibold py-4",children:"Theme Colors"}),u.map(r=>e("div",{className:"space-y-4 bg-grey-500",children:o("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:[e("h2",{className:"text-2xl font-semibold",children:r.name}),r.colors.map(a=>o("div",{className:"flex items-center space-x-2 p-2 rounded-lg bg-grey-500",children:[e("div",{className:`w-12 h-12 rounded-md bg-${a} text-${a}-foreground border border-grey-500 flex items-center justify-center`,"aria-label":`${a} color swatch`,children:"F"}),e("div",{className:"flex-1 min-w-0",children:e("p",{className:"text-xs font-medium truncate",children:a})}),e(l,{children:o(n,{children:[e(t,{asChild:!0,children:e(i,{variant:"ghost",size:"icon",onClick:()=>m(`bg-${a}`),"aria-label":`Copy ${a} class`,children:d===`bg-${a}`?e(p,{className:"h-4 w-4 text-green-500"}):e(g,{className:"h-4 w-4"})})}),e(c,{children:e("p",{children:d===`bg-${a}`?"Copied!":"Copy to clipboard"})})]})})]},a))]})},r.name))]}),o("div",{children:[e("h1",{className:"text-3xl font-semibold py-4",children:"Brand Colors"}),v.map(r=>e("div",{className:"space-y-4 bg-grey-500",children:o("div",{className:"grid grid-cols-11 sm:grid-cols-6 md:grid-cols-11 lg:grid-cols-11 gap-0",children:[e("h2",{className:"text-2xl font-semibold",children:r.name}),o("div",{className:"flex items-center space-x-2 p-1 py-4 rounded-lg bg-grey-500",children:[e("div",{className:"flex items-center space-x-0 p-0 py-4 rounded-lg bg-grey-500",children:e("div",{className:`w-12 h-12 rounded-md bg-brand-${r.name} border border-grey-500`,"aria-label":`${r.name} color swatch`})}),e("div",{className:"flex items-center space-x-0 p-0 py-4 rounded-lg bg-grey-500",children:e("div",{className:`w-12 h-12 rounded-md bg-brand-${r.name}-foreground border border-grey-500`,"aria-label":`${r.name} color swatch`})})]}),r.colors.map(a=>e("div",{className:"flex items-center space-x-1 p-1 py-4 rounded-lg bg-grey-500",children:e("div",{className:`w-12 h-12 rounded-md bg-brand-${r.name}-${a} border border-grey-500`,"aria-label":`${a} color swatch`,children:a})},a))]})},r.name))]})]})}export{y as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as h}from"./chunk-WU3JMLSC.mjs";import{a as f}from"./chunk-BZAYEKYC.mjs";import{a as
|
|
4
|
+
import{a as h}from"./chunk-WU3JMLSC.mjs";import{a as f}from"./chunk-BZAYEKYC.mjs";import{a as u}from"./chunk-MN7UDYWI.mjs";import{a as l}from"./chunk-AFKBIBWH.mjs";import{a as p}from"./chunk-6X3A3ENB.mjs";import{a as c}from"./chunk-CWNEDSLD.mjs";import{b as n}from"./chunk-BDX257W2.mjs";import{a as o,b as a,c as i,e as m}from"./chunk-D76EO57Z.mjs";import{a as s}from"./chunk-DESYC5BB.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(s,{isMenuOpen:!0,logoLight:f,logoDark:h,...r.header}),r.hero&&r.hero.type==="lowImpact"&&e(u,{...r.hero}),r.hero&&r.hero.type==="mediumImpact"&&e(p,{...r.hero}),r.hero&&r.hero.type==="highImpact"&&e(l,{...r.hero}),r.hero&&r.hero.type==="postHero"&&e(c,{...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};
|