cortex-react-components 2.18.5 → 2.18.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-2SMCWU5D.mjs → chunk-275W7H4O.mjs} +1 -1
- package/dist/{chunk-BDNY6OKE.mjs → chunk-2GM2LPLB.mjs} +1 -1
- package/dist/{chunk-2GZQYAN3.mjs → chunk-2OOJ4ZFB.mjs} +1 -1
- package/dist/{chunk-HEW44L6X.mjs → chunk-2YULWG5F.mjs} +1 -1
- package/dist/{chunk-UX5OJ3WS.mjs → chunk-3ANJOET7.mjs} +1 -1
- package/dist/{chunk-2E7GRMZB.mjs → chunk-3DZFESHK.mjs} +1 -1
- package/dist/{chunk-5RKIC5BC.mjs → chunk-3ZQFJ5WD.mjs} +1 -1
- package/dist/{chunk-LYQOKIQY.mjs → chunk-4DR4ILAP.mjs} +1 -1
- package/dist/{chunk-NXG2Y4N4.mjs → chunk-4SRUEQTP.mjs} +1 -1
- package/dist/{chunk-SYJIMO4P.mjs → chunk-5EQXJS23.mjs} +1 -1
- package/dist/{chunk-VDFRWGXR.mjs → chunk-6PS55VJZ.mjs} +1 -1
- package/dist/{chunk-DZ7AGPLI.mjs → chunk-6R6NYDWN.mjs} +1 -1
- package/dist/{chunk-PRK2XFAZ.mjs → chunk-7OMPPFGG.mjs} +1 -1
- package/dist/{chunk-WDZOGIT2.mjs → chunk-BQQ4V4PX.mjs} +1 -1
- package/dist/{chunk-ZZ6VZFRV.mjs → chunk-DPZHVBGG.mjs} +1 -1
- package/dist/{chunk-7HII2RTR.mjs → chunk-EPJJKGCG.mjs} +1 -1
- package/dist/{chunk-T36QUKC6.mjs → chunk-F64CA5CH.mjs} +1 -1
- package/dist/{chunk-KRLNPNMZ.mjs → chunk-FEWOSBUJ.mjs} +1 -1
- package/dist/{chunk-BGADMIWV.mjs → chunk-FYQBRCQM.mjs} +1 -1
- package/dist/{chunk-QRJCVFHT.mjs → chunk-G2DUU25F.mjs} +1 -1
- package/dist/{chunk-JLUX7EHB.mjs → chunk-GAZHKHGB.mjs} +1 -1
- package/dist/{chunk-5KS3DITB.mjs → chunk-GETYSIZV.mjs} +1 -1
- package/dist/{chunk-M74BIPBM.mjs → chunk-HDKHF3EA.mjs} +1 -1
- package/dist/{chunk-4RET4JGB.mjs → chunk-HHPTGV4F.mjs} +1 -1
- package/dist/{chunk-BN747TQM.mjs → chunk-HKMNAXLM.mjs} +1 -1
- package/dist/{chunk-75WE6ZXB.mjs → chunk-ITJH72Z2.mjs} +1 -1
- package/dist/{chunk-SSMQFOZF.mjs → chunk-KZAYLEFB.mjs} +1 -1
- package/dist/{chunk-WUA65ZZB.mjs → chunk-L3BLBPSR.mjs} +1 -1
- package/dist/{chunk-LLP4EFT4.mjs → chunk-L5NPH5RX.mjs} +1 -1
- package/dist/{chunk-JT65KF7C.mjs → chunk-MO4HRQEL.mjs} +1 -1
- package/dist/chunk-MTA6RFZ7.mjs +1 -0
- package/dist/{chunk-YFOSTZOD.mjs → chunk-OQCMTGML.mjs} +1 -1
- package/dist/{chunk-PZZTGPEO.mjs → chunk-P6OSMPUQ.mjs} +1 -1
- package/dist/{chunk-4NHQXOKZ.mjs → chunk-PNUBVBSR.mjs} +1 -1
- package/dist/{chunk-NN4QIXZ2.mjs → chunk-PTJVI53B.mjs} +1 -1
- package/dist/{chunk-66ODXUVL.mjs → chunk-PTZT4QJW.mjs} +1 -1
- package/dist/{chunk-HNHUOQGZ.mjs → chunk-QAJBJFRP.mjs} +1 -1
- package/dist/{chunk-JUFFNFV6.mjs → chunk-R6AYIVIR.mjs} +1 -1
- package/dist/chunk-SH5SK6V2.mjs +1 -0
- package/dist/{chunk-HSQAHQNP.mjs → chunk-TKCFCYEQ.mjs} +1 -1
- package/dist/{chunk-Y62OBV2E.mjs → chunk-U3FYDDE2.mjs} +1 -1
- package/dist/{chunk-5PJLI46T.mjs → chunk-UECG3SCG.mjs} +1 -1
- package/dist/{chunk-CPZ42O7I.mjs → chunk-UJITFLIZ.mjs} +1 -1
- package/dist/{chunk-CQAMS7RZ.mjs → chunk-V6GK2FJG.mjs} +1 -1
- package/dist/{chunk-6RQED6RT.mjs → chunk-WHDV4REI.mjs} +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/Chat/ChatInterface.js +6 -6
- package/dist/components/Chat/ChatInterface.mjs +1 -1
- package/dist/components/Chat/CopilotInterface.js +3 -3
- package/dist/components/Chat/CopilotInterface.mjs +1 -1
- package/dist/components/Chat/PartTypes/MessageHandler.js +6 -6
- package/dist/components/Chat/PartTypes/MessageHandler.mjs +1 -1
- package/dist/components/Chat/PartTypes/PartApprovalTool.d.ts +1 -0
- package/dist/components/Chat/PartTypes/PartApprovalTool.js +4 -4
- package/dist/components/Chat/PartTypes/PartApprovalTool.mjs +1 -1
- package/dist/components/Chat/PartTypes/PartAuthenticateTool.d.ts +2 -1
- package/dist/components/Chat/PartTypes/PartAuthenticateTool.js +3 -3
- package/dist/components/Chat/PartTypes/PartAuthenticateTool.mjs +1 -1
- package/dist/components/Chat/PartTypes/index.js +6 -6
- package/dist/components/Chat/PartTypes/index.mjs +1 -1
- package/dist/components/Chat/demo-long-messages.js +11 -11
- package/dist/components/Chat/demo-long-messages.mjs +1 -1
- package/dist/components/Chat/demo-tests.js +32 -32
- package/dist/components/Chat/demo-tests.mjs +1 -1
- package/dist/components/Chat/demo.js +3 -3
- package/dist/components/Chat/demo.mjs +1 -1
- package/dist/components/Chat/example-usage.js +3 -3
- package/dist/components/Chat/example-usage.mjs +1 -1
- package/dist/components/Chat/example-with-vercel-ai.js +3 -3
- package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
- package/dist/components/Chat/index.js +4 -4
- package/dist/components/Chat/index.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/Foundary/MainPage.mjs +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
- package/dist/components/Foundary/RichText/index.mjs +1 -1
- package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +1 -1
- package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
- package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
- package/dist/components/Foundary/Views/index.mjs +1 -1
- package/dist/components/Foundary/document-edit.mjs +1 -1
- package/dist/components/Foundary/document-preview-examples.mjs +1 -1
- package/dist/components/Foundary/document-preview.mjs +1 -1
- package/dist/components/Foundary/index.mjs +1 -1
- package/dist/components/Foundary/knowledge-browser.mjs +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +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.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Other/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/Projects/EpicsView.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
- package/dist/components/Projects/index.mjs +1 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.js +18 -18
- package/dist/components/index.mjs +1 -1
- package/dist/index.js +15 -15
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-EH3PJU6C.mjs +0 -1
- package/dist/chunk-V5VE3EIY.mjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as
|
|
4
|
+
import{a as _}from"./chunk-M2REXGQW.mjs";import{a as x}from"./chunk-ATBKMJU6.mjs";import{a as O}from"./chunk-H3RVI2OI.mjs";import{a as Y}from"./chunk-FSCDCSVK.mjs";import{a as Z}from"./chunk-NDZ26EG6.mjs";import{a as R}from"./chunk-Z22NSJMF.mjs";import{a as ee}from"./chunk-Y7H3EUBR.mjs";import{a as X}from"./chunk-FGEFYI5E.mjs";import{a as U,c as $,d as k,g as F,i as p}from"./chunk-YFAZQYK4.mjs";import{a as Q}from"./chunk-L5JPAKPM.mjs";import{b as H}from"./chunk-ZUA4KNIR.mjs";import{a as c,b as h,c as w,e as u}from"./chunk-YO3GQYRJ.mjs";import{useEffect as pe,useState as o}from"react";import{Plus as Ce,Search as fe,Users as le,Bot as ve,User as ye,Filter as he}from"lucide-react";import{motion as we,AnimatePresence as xe}from"motion/react";import{jsx as l,jsxs as t}from"react/jsx-runtime";function Se({initialColleagues:S,onColleagueAdd:N,onColleagueEdit:K,onColleagueDelete:te,compactView:n=!1,departments:ae=["Design","Engineering","Marketing","Product","Sales","Operations"],className:ie,availableUsers:I=[],existingDigitalColleagues:L=[],availableKnowledgeDocuments:P=[]}){let[s,r]=o(S||[]),[d,j]=o(""),[D,B]=o("all"),[b,M]=o("all"),[v,oe]=o("all"),[G,C]=o(null),[A,y]=o(null);pe(()=>{r(S||[])},[S]);let ne=Array.isArray(I)?I:[],se=Array.isArray(L)?L:[],[g,a]=o("main"),f=s.filter(e=>!e||!e.name?!1:e.name.toLowerCase().includes(d.toLowerCase())||e.type==="human"&&e.email?.toLowerCase().includes(d.toLowerCase())||e.type==="digital"&&e.jobDescription?.toLowerCase().includes(d.toLowerCase())),W=f.filter(e=>e.type==="human"),q=f.filter(e=>e.type==="digital"),z=()=>{a("typeSelection")},T=e=>{e.type==="digital"&&(C(e),a("form")),console.log("Editing colleague:",e),K?.(e)},E=e=>{e.type==="digital"&&(y(e),a("view"))},re=e=>{let i={id:`human-${Date.now()}`,type:"human",name:e.name,email:e.email,updatedAt:e.updatedAt,createdAt:e.createdAt,accounts:e.accounts};r(m=>[...m,i]),N?.(i),a("main")},de=e=>{if(!e||!e.id){console.error("Invalid cloned colleague provided to handleDigitalColleagueClone:",e);return}r(i=>[...i,{...e,type:"digital"}]),N?.({...e,type:"digital"}),a("main")},ge=()=>{C(null),a("form")},J=e=>{if(!e||!e.id){console.error("Invalid colleague provided to handleSaveColleague:",e);return}G?(r(i=>i.map(m=>m.id===e.id?{...e,type:"digital"}:m)),K?.({...e,type:"digital"})):(r(i=>[...i,{...e,type:"digital"}]),N?.({...e,type:"digital"})),a("main"),C(null)},me=()=>{a("main"),C(null),y(null)},ce=()=>{a("main"),y(null)},Ne=()=>{A&&(C(A),y(null),a("form"))},V=e=>{console.log("deleting",e,s),te?.(e,s.find(i=>i.id.toString()===e.toString())?.type),r(i=>i.filter(m=>m.id!==e))},ue=()=>{j(""),B("all"),M("all")};return g==="typeSelection"?l(Y,{onSelectHuman:()=>a("userSelection"),onSelectDigital:()=>a("digitalOptions"),onCancel:()=>a("main")}):g==="userSelection"?l(ee,{users:ne,onUserSelect:re,onCancel:()=>a("typeSelection")}):g==="digitalOptions"?l(_,{onCloneExisting:()=>a("digitalClone"),onCreateNew:ge,onCancel:()=>a("typeSelection")}):g==="digitalClone"?l(Z,{digitalColleagues:se,onColleagueClone:de,onCancel:()=>a("digitalOptions")}):g==="form"?l(O,{colleague:G||void 0,onSave:J,onCancel:me,availableKnowledgeDocuments:P}):g==="view"?l(O,{colleague:A||void 0,onSave:J,onCancel:ce,readOnly:!0,availableKnowledgeDocuments:P}):l("div",{className:"px-2 md:px-4 py-4 space-y-8",children:l(xe,{mode:"wait",children:l(we.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:t("div",{className:`space-y-6 ${ie||""}`,children:[l(R,{title:"Colleagues",description:"Manage your team members and digital colleagues.",gradient:"bg-gradient-to-r from-green-600 via-emerald-600 to-teal-600",primaryAction:{label:"Add colleague",onClick:z}}),t("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[t(c,{children:[t(h,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[l(w,{className:"text-sm font-medium",children:"Total Colleagues"}),l(le,{className:"h-4 w-4 text-muted-foreground"})]}),t(u,{children:[l("div",{className:"text-2xl font-bold",children:s.length}),l("p",{className:"text-xs text-muted-foreground",children:"0 active"})]})]}),t(c,{children:[t(h,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[l(w,{className:"text-sm font-medium",children:"Human Members"}),l(ye,{className:"h-4 w-4 text-muted-foreground"})]}),t(u,{children:[l("div",{className:"text-2xl font-bold",children:s.filter(e=>e.type==="human").length}),l("p",{className:"text-xs text-muted-foreground",children:"active"})]})]}),t(c,{children:[t(h,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[l(w,{className:"text-sm font-medium",children:"Digital Colleagues"}),l(ve,{className:"h-4 w-4 text-muted-foreground"})]}),t(u,{children:[l("div",{className:"text-2xl font-bold",children:s.filter(e=>e.type==="digital").length}),l("p",{className:"text-xs text-muted-foreground",children:"0 active"})]})]})]}),l(c,{children:l(u,{className:"pt-6",children:t("div",{className:"flex flex-col md:flex-row gap-4",children:[l("div",{className:"flex-1",children:t("div",{className:"relative",children:[l(fe,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),l(Q,{placeholder:"Search colleagues...",value:d,onChange:e=>j(e.target.value),className:"pl-9"})]})}),t(U,{value:D,onValueChange:B,children:[l(k,{className:"w-full md:w-[180px]",children:l($,{placeholder:"Department"})}),t(F,{children:[l(p,{value:"all",children:"All Departments"}),ae.map(e=>l(p,{value:e,children:e},e))]})]}),t(U,{value:b,onValueChange:M,children:[l(k,{className:"w-full md:w-[140px]",children:l($,{placeholder:"Status"})}),t(F,{children:[l(p,{value:"all",children:"All Status"}),l(p,{value:"active",children:"Active"}),l(p,{value:"inactive",children:"Inactive"})]})]}),(d||D!=="all"||b!=="all")&&t(H,{variant:"outline",onClick:ue,className:"gap-2",children:[l(he,{className:"h-4 w-4"}),"Clear"]})]})})}),t("div",{className:"space-y-4",children:[l(X,{activeTab:v,onTabChange:oe,tabOptions:[{value:"all",label:`All (${f.length})`},{value:"human",label:`Human (${W.length})`},{value:"digital",label:`Digital (${q.length})`}],maxWidth:"400px",gridCols:3}),v==="all"&&l("div",{className:`grid gap-4 ${n?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:f.map(e=>l(x,{colleague:e,onEdit:T,onDelete:V,onViewDetails:E,compact:n},`${e}-${e.id}`))}),v==="human"&&l("div",{className:`grid gap-4 ${n?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:W.map(e=>l(x,{colleague:e,onEdit:T,onDelete:V,onViewDetails:E,compact:n},e.id))}),v==="digital"&&l("div",{className:`grid gap-4 ${n?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:q.map(e=>l(x,{colleague:e,onEdit:T,onDelete:V,onViewDetails:E,compact:n},e.id))})]}),f.length===0&&l(c,{children:l(u,{className:"pt-6",children:t("div",{className:"text-center py-8",children:[l(le,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),l("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),l("p",{className:"text-muted-foreground mb-4",children:d||D!=="all"||b!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first colleague."}),t(H,{onClick:z,className:"gap-2",children:[l(Ce,{className:"h-4 w-4"}),"Add Colleague"]})]})})})]})},"projects-index-view")})})}export{Se as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as c}from"./chunk-
|
|
1
|
+
import{f as c}from"./chunk-FYQBRCQM.mjs";import{a as t}from"./chunk-MDJREBVI.mjs";import n from"next/image";import{jsx as e,jsxs as l}from"react/jsx-runtime";function g({image:a,title:i,content:s,link:o,theme:r}){return l("section",{className:"container relative",children:[e("div",{className:t("absolute mt-[50%] w-full h-full",r==="dark"?"bg-white":"bg-black")}),e("div",{className:t("flex flex-col md:flex-row items-center justify-between gap-12 px-6 md:px-16 py-16 bg-background",r,r==="dark"&&"bg-black clip-custom-top-r"),children:l("div",{className:"w-full flex flex-row items-center justify-center",children:[l("div",{className:t("w-full md:w-1/2 max-w-lg text-left",r==="dark"&&"mt-48"),children:[e("h2",{className:"text-3xl md:text-5xl text-primary",children:i}),e("p",{className:"mt-4 text-gray-700 text-lg",children:s&&e(c,{enableGutter:!1,content:s,enableProse:!1,className:t("prose prose-headings:text-gray-700 prose-p:text-gray-700")})}),e("button",{className:"mt-6 px-6 py-3 border border-1 border-accent text-foreground bg-background rounded-full text-base hover:bg-accent hover:text-white transition",children:e("a",{href:o.url||"#",children:o.label||"Learn more"})})]}),e("div",{className:"w-full md:w-1/2 flex justify-center",children:a&&a.url&&e(n,{src:a.url,alt:a.alt||`Image of ${i}`,width:400,height:400,className:"max-w-full"})})]})})]})}export{g as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as r}from"./chunk-
|
|
1
|
+
import{f as r}from"./chunk-FYQBRCQM.mjs";import{a as n}from"./chunk-MDJREBVI.mjs";import{jsx as t,jsxs as c}from"react/jsx-runtime";function f({subtitle:s,title:o,description:e,alignment:a="start",hasBottomSpacing:i=!1,className:m,invert:l=!1}){let p=n(a==="start"&&"text-left",a==="center"&&"text-center",a==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":i},"prose",m);return c("div",{className:p,children:[s&&t("span",{className:"mb-[.625rem] block font-semibold uppercase text-accent md:text-md",children:s}),t("h2",{className:n("text-primary mt-0"),children:o}),typeof e=="string"?e&&t("p",{className:"mt-5 whitespace-pre-line text-foreground",children:e}):e&&t(r,{content:e,enableGutter:!1,className:"prose-headings:text-accent prose-p:text-primary"})]})}export{f as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as b}from"./chunk-CTTBF7F4.mjs";import{a as I}from"./chunk-56X4PU43.mjs";import{a as S}from"./chunk-
|
|
4
|
+
import{a as b}from"./chunk-CTTBF7F4.mjs";import{a as I}from"./chunk-56X4PU43.mjs";import{a as S}from"./chunk-UJITFLIZ.mjs";import{useChat as me}from"@ai-sdk/react";import{useState as l}from"react";import{motion as fe,AnimatePresence as he}from"motion/react";import{Users as ye}from"lucide-react";import{jsx as n,jsxs as Ce}from"react/jsx-runtime";function Le({aiConfig:w,useCustomChat:F,enableAI:T=!0,messages:D=[],businessUnits:R=[],capabilities:B=[],sidebarItems:x=[],notifications:N=[],sessions:M=[],onNewChat:A,onSessionSelect:L,onSessionDelete:P,onSessionEdit:k=()=>{},onBusinessUnitChange:E=()=>{},onNotificationRemove:K=()=>{},onRemoveAll:O=()=>{},onActionClick:$=()=>{},onSearch:q=p=>console.log("Search query:",p),initialTeam:z="design",currentSession:m=null,showCapabilities:ve=!0,title:W="Digital Colleagues",enableFileUpload:f=!0,maxFileSize:h=10,allowedFileTypes:y=["image/*","text/*","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],logo:H="/headerlogo.png",appName:X="Nuvia",tagline:G="AI-Powered Workspace",actionIcon:J=n(ye,{className:"mr-2 h-4 w-4"}),actionText:Q="Collaborate",sidebarInitiallyClosed:V=!1}){let p={...w,onError:e=>{i?.setMessages(t=>[...t,{role:"assistant",id:`error-${Date.now()}`,createdAt:new Date,parts:[{type:"text",text:e.message}]}]),console.error("Error in CopilotInterface:",e)}},Y=me(p||{}),i=T?F||Y:null,[Z,u]=l(""),[_,C]=l(!1),j=i?.messages||D,r=Z,ee=i?.status==="submitted"||_,se=i?.addToolResult?(e,t,s)=>{i.addToolResult({tool:t,toolCallId:e,output:s}),console.log("Tool result added:",{toolCallId:e,tool:t,output:s}),i.sendMessage()}:()=>{console.log("addToolResult not available")},o=R||[],te={id:"default",name:"Default Team",description:"Default team when no business units are available",icon:"\u{1F3E2}",color:"bg-gray-500",accentColor:"bg-gray-600"},[ie,ne]=l(()=>o.length===0?te:o.find(e=>e.id===z)||o[0]),[a,c]=l([]),[oe,ae]=l(!1),le=e=>{if(!e||!f)return;let t=[];Array.from(e).forEach(s=>{if(s.size>h*1024*1024){alert(`File ${s.name} is too large. Maximum size is ${h}MB.`);return}if(y.length>0&&!y.some(d=>s.type.match(d))){alert(`File type ${s.type} is not allowed.`);return}let U={id:Date.now().toString()+Math.random().toString(36).substr(2,9),file:s,status:"pending",progress:0};if(s.type.startsWith("image/")){let d=new FileReader;d.onload=ue=>{c(ge=>ge.map(g=>g.id===U.id?{...g,preview:ue.target?.result}:g))},d.readAsDataURL(s)}t.push(U)}),c(s=>[...s,...t])},re=e=>{c(t=>t.filter(s=>s.id!==e))},v=()=>{if(!(!r.trim()&&a.length===0)){if(i){let e=a.length>0?ce(a.map(t=>t.file)):void 0;i.sendMessage({text:r,files:e},{body:{timestamp:Date.now()}}),u("")}else console.log("Message to send:",r),console.log("Files to upload:",a),u(""),C(!0),setTimeout(()=>{C(!1)},1500);c([])}},ce=e=>{let t=new DataTransfer;return e.forEach(s=>t.items.add(s)),t.files},de=e=>{e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),v())},pe=e=>{u(e)};return n(b,{sidebarItems:x||[],title:W,notifications:N||[],businessUnits:o,currentBusinessUnit:ie,onBusinessUnitChange:e=>{e&&(ne(e),E?.(e))},onSearch:q,showTabs:!1,onActionClick:$,actionIcon:J,actionText:Q,onNotificationRemove:K,onRemoveAll:O,logo:H,appName:X,tagline:G,sidebarInitiallyClosed:V,children:n(he,{mode:"wait",children:n(fe.div,{className:"flex-1 h-full",initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:Ce("div",{className:"h-full flex",children:[n("div",{className:"w-80 flex-shrink-0 h-full p-2",children:n(I,{sessions:M||[],currentSession:m,teams:o,onNewChat:A,onSessionSelect:L,onSessionEdit:k,onSessionDelete:P})}),n("div",{className:"flex-1 h-full p-2",children:n(S,{messages:j||[],input:r,isTyping:ee,currentSessionTitle:m?.title,capabilities:B||[],onInputChange:pe,addToolResult:se,onSendMessage:v,onKeyPress:de,fileUploads:a,isDragOver:oe,enableFileUpload:f,onFileUpload:le,onRemoveFile:re,onDragOver:ae})})]})},"chat-interface")})})}export{Le as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as F}from"./chunk-
|
|
4
|
+
import{a as F}from"./chunk-PNUBVBSR.mjs";import{a as T}from"./chunk-R6AYIVIR.mjs";import{a as v}from"./chunk-MDJREBVI.mjs";import{a as R}from"./chunk-Q3G5UAAD.mjs";import{useState as A}from"react";import G from"html2canvas";import{jsPDF as W}from"jspdf";import{Fragment as J,jsx as e,jsxs as g}from"react/jsx-runtime";function ae({type:p="slideshow",orientation:d="landscape",...c}){let h=c.page,[C,n]=A(d),{contentWithIds:a,tableOfContents:i}=R(h);if(p==="slideshow")return e("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:e(T,{blocks:a,hero:c.hero,title:c.page.title,logoImage:c.logoImage})});if(p==="print")return g(J,{children:[e(U,{layout:C,changeLayout:n}),e(F,{page:c.page,layout:C,logoImage:c.logoImage})]})}var U=({changeLayout:p,layout:d="landscape"})=>{let c=async()=>{if(d==="flow"){let a=document.getElementById("printable-content")?.innerHTML;if(a){var n=window.document.body.innerHTML;window.document.body.innerHTML=a,window.print(),window.document.body.innerHTML=n}}else await new Promise(a=>setTimeout(a,300)),window.print()},h=n=>{p&&p(n)},C=async n=>{let a=document.getElementById(n);if(!a)throw new Error(`Element with id ${n} not found`);let i=document.createElement("canvas"),P=window.devicePixelRatio;i.width=Math.max(a.clientWidth||0)*P,i.height=Math.max(a.clientHeight||0)*P+100;let u=i.getContext("2d");if(!u)throw new Error("Failed to get 2D context");let q=u.drawImage,z=Array.from(a.getElementsByTagName("img")).reduce((y,s)=>(y[s.src]=s,y),{});u.drawImage=function(...y){let[s,S,j,l,r,D,B,m,w]=y;if(s instanceof HTMLImageElement){let Y=z[s.src].style.objectFit||"fill",$=z[s.src].style.objectPosition||"center center";r=s.height,l=s.width;let L=l/r,b=m/w,[x,f]=$.split(" ");switch(f||(f=x),Y){case"cover":if(L>b){let t=r*b,o=(l-t)/2;x==="left"&&(o=0),x==="right"&&(o=l-t),S+=o,l=t}else{let t=l/b,o=(r-t)/2;f==="top"&&(o=0),f==="bottom"&&(o=r-t),j+=o,r=t}break;case"contain":if(L>b){let t=m/L,o=(w-t)/2;f==="top"&&(o=0),f==="bottom"&&(o=w-t),B+=o,w=t}else{let t=w*L,o=(m-t)/2;x==="left"&&(o=0),x==="right"&&(o=m-t),D+=o,m=t}break;case"fill":break}}return q.call(u,s,S,j,l,r,D,B,m,w)};let k=document.getElementById(n);if(!k)throw new Error(`Element with id ${n} not found`);var O=i.width,X=i.height;let I=(await G(k,{canvas:i,windowHeight:X,windowWidth:O,scale:window.devicePixelRatio})).toDataURL("image/png"),N=new W({}).getImageProperties(I),M=297,E=M*(N.height/N.width),H=new W({unit:"mm",format:[M,E]});H.addImage(I,"PNG",0,0,M,E),H.save("print.pdf")};return e("div",{className:v("fixed right-2 z-20 top-20 space-y-6 print:hidden"),children:e("div",{className:"flex flex-row-reverse z-20 min-w-70 gap-4",children:g("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[g("a",{onClick:c,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:e("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),e("small",{className:"text-xs font-medium",children:"Print"})]}),e("div",{className:"flex-grow border-t border-gray-200 dark:border-slate-600/60"}),g("a",{onClick:()=>h("portrait"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="portrait"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",children:e("path",{d:"M352 448c0 17.7-14.3 32-32 32L64 480c-17.7 0-32-14.3-32-32L32 64c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32l0 384zM384 64c0-35.3-28.7-64-64-64L64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384z"})}),e("small",{className:"text-xs",children:"Portrait"})]}),g("a",{onClick:()=>h("landscape"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="landscape"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:e("path",{d:"M576 96c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32L64 416c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l512 0zM64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l512 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64z"})}),e("small",{className:"text-xs",children:"Landscape"})]}),g("a",{onClick:()=>h("flow"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="flow"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:e("path",{d:"M266.2 4.7C273 1.6 280.5 0 288 0s15 1.6 21.8 4.7l217.4 97.5c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 251.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 153.9C38.6 149.3 32 139.2 32 128s6.6-21.3 16.8-25.9L266.2 4.7zM288 32c-3 0-6 .6-8.8 1.9L69.3 128l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-210-94.1C294 32.6 291 32 288 32zM48.8 358.1l45.9-20.6 39.1 17.5L69.3 384l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 507.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 409.9C38.6 405.3 32 395.2 32 384s6.6-21.3 16.8-25.9zM94.7 209.5l39.1 17.5L69.3 256l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 379.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 281.9C38.6 277.3 32 267.2 32 256s6.6-21.3 16.8-25.9l45.9-20.6z"})}),e("small",{className:"text-xs",children:"Continuous"})]})]})})})};export{ae as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as D}from"./chunk-
|
|
4
|
+
import{a as D}from"./chunk-QAJBJFRP.mjs";import{a as v,c as p,d as h,g as N,i as c}from"./chunk-YFAZQYK4.mjs";import{a as b}from"./chunk-B4H6T2GP.mjs";import{a as g}from"./chunk-L5JPAKPM.mjs";import{b as i}from"./chunk-ZUA4KNIR.mjs";import{motion as $}from"motion/react";import{Edit3 as O,Save as P,X as K,Plus as X}from"lucide-react";import{useEffect as q,useState as k}from"react";import{jsx as e,jsxs as o}from"react/jsx-runtime";function Z({document:x,onSave:T,mode:E="edit",onCancel:M,availableDocuments:y=[],knowledgeContexts:A=[]}){let[l,r]=k({...x,updatedAt:new Date}),[C,V]=k(l.richTextContent);q(()=>{r(x)},[x]);let _=()=>{let t=new Set,a=new Set;return A.forEach(n=>{n.menuConfig.groupBy.forEach(d=>t.add(d))}),y.forEach(n=>{n.metadata&&Object.keys(n.metadata).forEach(d=>a.add(d))}),{contextKeys:Array.from(t).sort(),documentKeys:Array.from(a).sort(),allKeys:Array.from(new Set([...t,...a])).sort()}},B=t=>{let a=new Set;return y.forEach(n=>{n.metadata?.[t]&&a.add(String(n.metadata[t]))}),Array.from(a).sort()},m=_(),F=()=>{T({...l,richTextContent:C})},u=(t,a)=>{r(n=>({...n,metadata:{...n.metadata,[t]:a}}))},I=(t,a)=>{a==="__custom__"?u(t,""):u(t,a)},j=()=>{u("","")},z=t=>{r(a=>{let n={...a.metadata};return delete n[t],{...a,metadata:n}})};return o($.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[o("div",{className:"border-b border-border bg-card p-8",children:[o("div",{className:"flex items-start justify-between gap-4 mb-6",children:[o("div",{className:"flex items-center gap-3",children:[e("div",{className:"flex-shrink-0 p-3 rounded-xl bg-primary/10 border border-primary/20",children:e(O,{className:"h-6 w-6 text-primary"})}),e("h1",{className:"text-2xl font-bold text-foreground",children:E==="edit"?"Edit Document":"Create Document"})]}),o("div",{className:"flex gap-2",children:[o(i,{variant:"outline",size:"sm",onClick:M,className:"gap-2",children:[e(K,{className:"h-4 w-4"}),"Cancel"]}),o(i,{size:"sm",onClick:F,className:"gap-2",children:[e(P,{className:"h-4 w-4"}),"Save Changes"]})]})]}),o("div",{className:"space-y-4",children:[o("div",{children:[e("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Title"}),e(g,{value:l.title,onChange:t=>r(a=>({...a,title:t.target.value})),className:"text-lg font-semibold",placeholder:"Document title..."})]}),o("div",{children:[e("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Description"}),e(b,{value:l.description||"",onChange:t=>r(a=>({...a,description:t.target.value})),placeholder:"Document description...",rows:2})]}),o("div",{children:[o("div",{className:"flex items-center justify-between mb-3",children:[o("div",{children:[e("label",{className:"block text-sm font-medium text-foreground",children:"Metadata"}),m.contextKeys.length>0&&o("p",{className:"text-xs text-muted-foreground",children:["Suggested: ",m.contextKeys.slice(0,4).join(", "),m.contextKeys.length>4&&` +${m.contextKeys.length-4}`]})]}),o(i,{type:"button",variant:"outline",size:"sm",onClick:j,className:"gap-1 h-8",children:[e(X,{className:"h-3 w-3"}),"Add"]})]}),l.metadata&&Object.keys(l.metadata).length>0?e("div",{className:"space-y-2",children:Object.entries(l.metadata).map(([t,a],n)=>{let d=B(t);return o("div",{className:"flex gap-2 items-center",children:[e(g,{value:t,onChange:s=>{let S=s.target.value||"",R=l.metadata?.[t];r(w=>{let f={...w.metadata};return delete f[t],S&&(f[S]=R||""),{...w,metadata:f}})},placeholder:"Key",className:"w-32 h-8 text-sm",list:`metadata-keys-${t}`}),e("datalist",{id:`metadata-keys-${t}`,children:m.allKeys.map(s=>e("option",{value:s},s))}),e("span",{className:"text-muted-foreground text-sm",children:"="}),d.length>0?o(v,{value:String(a||""),onValueChange:s=>I(t,s),children:[e(h,{className:"flex-1 h-8 text-sm",children:e(p,{placeholder:"Value"})}),o(N,{children:[d.map(s=>e(c,{value:s,children:s},s)),e(c,{value:"__custom__",children:e("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):e(g,{value:String(a||""),onChange:s=>u(t,s.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),e(i,{type:"button",variant:"ghost",size:"sm",onClick:()=>z(t),className:"h-8 w-8 p-0 text-muted-foreground hover:text-destructive",children:e(K,{className:"h-3 w-3"})})]},`metadata-key-${n}`)})}):e("div",{className:"text-center py-3 border border-dashed border-border rounded-lg bg-muted/20",children:e("p",{className:"text-xs text-muted-foreground",children:'No metadata \u2022 Click "Add" to create fields'})})]}),o("div",{className:"flex items-center gap-2",children:[e("span",{className:"text-sm font-medium text-foreground",children:"Format"}),o(v,{value:l.format,onValueChange:t=>r(a=>({...a,format:t})),children:[e(h,{className:"flex-1 h-8 text-sm",children:e(p,{placeholder:"Format"})}),o(N,{children:[e(c,{value:"markdown",children:"Markdown"}),e(c,{value:"richText",children:"Rich Text"})]})]})]})]})]}),e("div",{className:"flex-1 ",children:o("div",{className:"p-8",children:[e("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),l.format==="richText"?e(D,{setValue:V,value:C,name:"richTextContent"}):e(b,{value:l.content||"",onChange:t=>r(a=>({...a,content:t.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}export{Z as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as g}from"./chunk-U2OXF7PJ.mjs";import{a as p}from"./chunk-3F6AUCZF.mjs";import{a as u}from"./chunk-
|
|
4
|
+
import{a as g}from"./chunk-U2OXF7PJ.mjs";import{a as p}from"./chunk-3F6AUCZF.mjs";import{a as u}from"./chunk-4DR4ILAP.mjs";import{a as c}from"./chunk-Z22NSJMF.mjs";import{useEffect as A,useState as r}from"react";import{Fragment as y,jsx as e,jsxs as t}from"react/jsx-runtime";function N({documents:f=[],contexts:n=[],onDocumentClick:w=o=>console.log("Document clicked:",o),onDocumentShare:v=o=>console.log("Share document:",o),onLoadDocumentContent:k,selectedDocumentId:x,onAddKnowledge:l,onAddTeamContext:a,onDocumentUpdate:C}){let[o,s]=r(n[0]),[K,i]=r(!1),[b,m]=r(!1);A(()=>{!o&&n&&n.length>0&&s(n[0])},[n]);let h=d=>{l&&l(d),i(!1)},D=d=>{a&&a(d),m(!1)};return t("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[t("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[e(c,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-to-r from-teal-600 via-cyan-600 to-blue-600",primaryAction:l?{label:"Create",onClick:()=>i(!0)}:void 0,secondaryAction:a?{label:"Add Context",onClick:()=>m(!0)}:void 0}),n&&n.length>0&&t("div",{className:"mt-6",children:[e("div",{className:"border-b border-border",children:e("nav",{className:"-mb-px flex space-x-8 overflow-x-auto",children:n.map(d=>t("button",{onClick:()=>s(d),className:`group inline-flex items-center gap-2 py-3 px-1 border-b-2 font-medium text-sm whitespace-nowrap transition-colors ${o?.id===d.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[d.icon,d.label]},d.id))})}),o?.description&&e("div",{className:"mt-3 px-1",children:e("p",{className:"text-sm text-muted-foreground",children:o?.description})})]})]}),o?e("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:e("div",{className:"h-full rounded-3xl border overflow-hidden",children:e(u,{documents:f,menuConfig:o?.menuConfig,onDocumentClick:w,onDocumentShare:v,selectedDocumentId:x,onDocumentUpdate:C})})}):e("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4 flex items-center justify-center",children:e("p",{className:"text-muted-foreground",children:"No contexts available"})}),t(y,{children:[e(g,{isOpen:b,onClose:()=>m(!1),onAddTeamContext:D}),e(p,{isOpen:K,onClose:()=>i(!1),onAddKnowledge:h,knowledgeContexts:n})]})]})}export{N as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as $}from"./chunk-
|
|
4
|
+
import{a as $}from"./chunk-HHPTGV4F.mjs";import{a as O}from"./chunk-FT3AE7L2.mjs";import{a as H}from"./chunk-L5JPAKPM.mjs";import{motion as h}from"motion/react";import{ChevronRight as U,File as M,FileText as K,Search as A}from"lucide-react";import{useState as b,useMemo as P,useEffect as Q}from"react";import{Fragment as T,jsx as e,jsxs as r}from"react/jsx-runtime";function j({label:f,documents:s,children:d,level:u,onDocumentClick:w,selectedDocumentId:g,showDocumentCount:y=!0}){let[c,a]=b(u===0),N=d&&Object.keys(d).length>0,v=s.length+(d?Object.values(d).reduce((t,n)=>t+n.documents.length,0):0),D=t=>{switch(t){case"markdown":case"mdx":return e(K,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richText":return e(M,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return e(M,{className:"h-3.5 w-3.5 text-muted-foreground"})}},x=t=>{let n=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return n[t%n.length]};return r("div",{className:"space-y-1",children:[(N||s.length>0)&&r(h.div,{className:`group flex items-center gap-3 p-3 rounded-xl cursor-pointer transition-all duration-200 ${c?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${u*20}px`},onClick:()=>a(!c),whileHover:{scale:1.01},whileTap:{scale:.99},children:[e("div",{className:`w-1 h-6 rounded-full ${x(u)}`}),e(h.div,{animate:{rotate:c?90:0},transition:{duration:.2},className:"flex-shrink-0",children:e(U,{className:"h-4 w-4 text-muted-foreground"})}),r("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[e("div",{className:"flex items-center gap-2 min-w-0",children:e("span",{className:"font-medium text-foreground truncate",children:f})}),y&&v>0&&e("div",{className:"flex-shrink-0 ml-2",children:e("span",{className:"inline-flex items-center justify-center w-6 h-6 text-xs font-medium bg-muted text-muted-foreground rounded-full",children:v})})]})]}),e(h.div,{initial:!1,animate:{height:c?"auto":0,opacity:c?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:r("div",{className:"pt-2 space-y-1",children:[s.map((t,n)=>r(h.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:n*.05,duration:.2},className:`group flex items-center gap-3 p-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${g===t.id?"bg-primary/10 border-l-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${u*20+20}px`},onClick:()=>w?.(t),whileHover:{scale:1.01},whileTap:{scale:.99},children:[e("div",{className:"flex-shrink-0",children:D(t.format)}),r("div",{className:"flex-1 min-w-0",children:[e("p",{className:`text-sm truncate transition-colors ${g===t.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:t.title}),t.description&&e("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:t.description})]}),t.tags&&t.tags.length>0&&e("div",{className:"flex-shrink-0",children:e("span",{className:"inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-muted text-muted-foreground group-hover:bg-muted/80 transition-colors",children:t.tags[0]})})]},t.id)),d&&Object.entries(d).map(([t,n])=>e(j,{label:t,documents:n.documents,children:n.children,level:u+1,onDocumentClick:w,selectedDocumentId:g,showDocumentCount:y},t))]})})]})}function Z({documents:f,menuConfig:s,onDocumentClick:d,onDocumentShare:u,onDocumentUpdate:w,selectedDocumentId:g,className:y,editable:c=!0}){let[a,N]=b(""),[v,D]=b(null),[x,t]=b(f);Q(()=>{t(f)},[f]);let n=P(()=>a?x.filter(o=>o.title.toLowerCase().includes(a.toLowerCase())||o.description?.toLowerCase().includes(a.toLowerCase())||o.tags?.some(l=>l.toLowerCase().includes(a.toLowerCase()))||Object.values(o.metadata||{}).some(l=>String(l).toLowerCase().includes(a.toLowerCase()))):x,[x,a]),S=P(()=>{let o=(l,L)=>{if(L.length===0)return{};let[E,...B]=L;return l.reduce((i,C)=>{let F=C.metadata?.[E]||"Uncategorized",m=String(F);if(i[m]||(i[m]={documents:[],children:{}}),B.length===0)i[m].documents.push(C);else{let k=o([C],B),p=Object.keys(k)[0];p&&(i[m].children||(i[m].children={}),i[m].children[p]?i[m].children[p].documents.push(...k[p].documents):i[m].children[p]=k[p])}return i},{})};return o(n,s.groupBy)},[n,s.groupBy]),I=o=>{D(o),d?.(o)};return r("div",{className:`flex h-full ${y||""}`,children:[r("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[e("div",{className:"p-6 border-b border-border",children:r("div",{className:"relative",children:[e("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:e(A,{className:"h-4 w-4 text-muted-foreground"})}),e(H,{placeholder:"Search knowledge base...",value:a,onChange:o=>N(o.target.value),className:"pl-10 bg-background/80 border-border focus:border-primary/50 focus:ring-primary/20 rounded-xl h-11 text-sm placeholder:text-muted-foreground"})]})}),e(O,{className:"h-[calc(100%-100px)]",children:e("div",{className:"p-4 space-y-3",children:s.groupBy.length===0?e(T,{children:e(j,{label:"Document",documents:n,level:0,onDocumentClick:I,selectedDocumentId:g,showDocumentCount:s.showDocumentCount},"Document")}):r(T,{children:[Object.entries(S).map(([o,l])=>e(j,{label:o,documents:l.documents,children:l.children,level:0,onDocumentClick:I,selectedDocumentId:g,showDocumentCount:s.showDocumentCount},o)),Object.keys(S).length===0&&r(h.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[e("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:e(K,{className:"h-8 w-8 text-muted-foreground"})}),e("p",{className:"text-sm font-medium",children:"No documents found"}),e("p",{className:"text-xs mt-1",children:"Try adjusting your search terms"})]})]})})})]}),e("div",{className:"flex-1 bg-background overflow-scroll",children:v?e($,{document:v,onDocumentUpdate:w,editable:c}):e("div",{className:"h-full flex items-center justify-center text-center",children:r(h.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"max-w-sm",children:[e("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:e(K,{className:"h-10 w-10 text-primary"})}),e("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),e("p",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}export{Z as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
1
|
+
import{a as l}from"./chunk-2OOJ4ZFB.mjs";import{a as r}from"./chunk-KML6U7IE.mjs";import{a as o}from"./chunk-SRUG246N.mjs";import p from"next/image";import{FaEnvelope as c,FaPhoneFlip as d}from"react-icons/fa6";import{jsx as e,jsxs as t}from"react/jsx-runtime";function f(s){let{sectionHeading:i,image:a}=s;return e("div",{className:"relative w-full light py-[60px]",children:t("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[e("div",{className:"relative h-full w-full",children:e(p,{src:a.src,alt:a.alt,fill:!0,objectFit:"contain",sizes:"(min-width: 768px) 30vw, 50vw",placeholder:"blur",blurDataURL:r})}),e("div",{className:"w-full h-full",children:t("div",{className:"bg-white p-10",children:[e("div",{className:"mb-30px",children:e(l,{...i,invert:!0})}),e(o,{})]})})]})})}function y(s){return e("div",{className:"",children:e("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:e("div",{className:"mx-auto max-w-2xl space-y-16 divide-y divide-gray-100 lg:mx-0 lg:max-w-none",children: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 text-primary",children:"Locations"}),e("p",{className:"mt-4 text-base/7 text-foreground",children:"We have multiple locations across the UK."})]}),e("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:s.locations&&s.locations.map((i,a)=>t("div",{className:"rounded-2xl p-10 border",children:[e("h3",{className:"text-base/7 text-primary",children:i.title}),t("address",{className:"mt-3 space-y-1 text-sm/6 not-italic text-foreground",children:[i.location.split(",")?.map((m,n)=>e("p",{children:m},n))," ",i.mails&&t("p",{className:"flex items-center space-x-2",children:[e(c,{className:"pr-2 text-primary 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(d,{className:"pr-2 text-primary size-auto"}),i.phoneNumbers[0]]})]})]},a))})]})})})})}export{f as a,y as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as g}from"./chunk-AQQCH7Z2.mjs";import{a as d,b as o,c as a,d as m,e as t,f as l}from"./chunk-76M7JE4D.mjs";import{a as
|
|
4
|
+
import{a as g}from"./chunk-AQQCH7Z2.mjs";import{a as d,b as o,c as a,d as m,e as t,f as l}from"./chunk-76M7JE4D.mjs";import{a as u}from"./chunk-OYZDAMCS.mjs";import{b as n,d as b,f as c}from"./chunk-ZFUP5NVF.mjs";import{a as s}from"./chunk-4UIARERB.mjs";import{a as p}from"./chunk-ITJH72Z2.mjs";import{a as f}from"./chunk-WU3JMLSC.mjs";import{a as S}from"./chunk-BZAYEKYC.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function h({...i}){return r("div",{className:"bg-sidebar",children:[e(p,{isMenuOpen:!0,logoLight:S,logoDark:f,...i.header,className:"bg-sidebar",wide:!0}),r(n,{className:"top-24 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(g,{...i.sidebarLeft,className:"flex-none top-24"}),r(c,{className:"grow overflow-hidden",children:[e("header",{className:"flex h-16 shrink-0 items-center gap-2",children:r("div",{className:"flex items-center gap-2 px-4",children:[e(b,{className:"-ml-1"}),e(s,{orientation:"vertical",className:"mr-2 h-4"}),e(d,{children:r(o,{children:[e(a,{className:"hidden md:block",children:e(m,{href:"#",children:"Building Your Application"})}),e(l,{className:"hidden md:block"}),e(a,{children:e(t,{children:"Data Fetching"})})]})})]})}),r("div",{className:"flex flex-1 flex-col gap-4 p-4 pt-0",children:[r("div",{className:"grid auto-rows-min gap-4 md:grid-cols-3",children:[e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"})]}),e("div",{className:"flex-1 rounded-xl bg-muted/50 md:min-h-min"})]})]})]}),e(u,{})]})}export{h as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as D}from"./chunk-KG7HG2VO.mjs";import{a as
|
|
1
|
+
import{a as D}from"./chunk-KG7HG2VO.mjs";import{a as O}from"./chunk-L3V5YDPH.mjs";import{a as P}from"./chunk-QC2UWZWL.mjs";import{a as A}from"./chunk-Z22NSJMF.mjs";import{a as x}from"./chunk-UVHMI3PU.mjs";import{a as S}from"./chunk-B4H6T2GP.mjs";import{a as y}from"./chunk-L5JPAKPM.mjs";import{b as m}from"./chunk-ZUA4KNIR.mjs";import{b as u}from"./chunk-CSBGSBEU.mjs";import{a as C}from"./chunk-YO3GQYRJ.mjs";import{useState as n,useRef as H,useEffect as k}from"react";import{Plus as ie,Move as oe,Edit2 as ne,Trash2 as re,Check as de,X as le}from"lucide-react";import{Fragment as B,jsx as t,jsxs as s}from"react/jsx-runtime";var Te=({tasks:M,epics:f,sprints:z,onUpdateTask:R,onTaskClick:I,onAddTaskToEpic:$,onAddEpic:L,onUpdateEpic:F,onDeleteEpic:V})=>{let[j,v]=n(f),[g,E]=n(null),[r,h]=n(null),[o,d]=n({}),[p,w]=n(0),[U,N]=n(!1),[X,T]=n(!1),[q,G]=n(null),l=H(null),J=H(null);k(()=>{v(f)},[f]),k(()=>{let e=()=>{if(l.current){let b=l.current.offsetHeight;w(b)}};e();let a=new ResizeObserver(e);l.current&&a.observe(l.current);let c=()=>{setTimeout(e,100)};return window.addEventListener("storage",c),()=>{a.disconnect(),window.removeEventListener("storage",c)}},[]),k(()=>{let e=setTimeout(()=>{l.current&&w(l.current.offsetHeight)},300);return()=>clearTimeout(e)},[r]);let K=e=>{E(e)},Q=e=>{e.preventDefault()},W=(e,a)=>{e.preventDefault(),g&&x(g.epic).toString()!==a&&(R(g.id.toString(),{epic:Number(a)}),E(null))},Y=e=>M.filter(a=>x(a.epic).toString()===e),Z=e=>{h(e.id.toString()),d({name:e.name,description:e.description,confidence:e.confidence,phase:e.phase})},_=async()=>{r&&o.name&&(await F(r.toString(),o),v(e=>e.map(a=>a.id.toString()===r?{...a,...o}:a)),h(null),d({}))},ee=()=>{h(null),d({})},te=async e=>{window.confirm("Are you sure you want to delete this epic? This will also delete all associated tasks.")&&(await V(e),v(a=>a.filter(c=>c.id.toString()!==e)))},ce=e=>({1:"Planning",2:"Development",3:"Testing",4:"Review",5:"Deployment",6:"Monitoring",7:"Optimization",8:"Maintenance",9:"Complete"})[e]||`Phase ${e}`,se=e=>{switch(e){case"high":return"bg-success/10 text-success";case"medium":return"bg-warning/10 text-warning";case"low":return"bg-destructive/10 text-destructive";default:return"bg-muted text-muted-foreground"}};return s(B,{children:[s("div",{ref:J,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[t("div",{ref:l,className:"flex-shrink-0",children:t(A,{title:"Epic Planning",description:"Organize and manage your project epics, track progress, and assign tasks.",gradient:"bg-gradient-to-r from-rose-600 via-pink-600 to-fuchsia-600",primaryAction:{label:"Add epic",onClick:()=>N(!0)}})}),t("div",{className:"flex-1 min-h-0 mt-8",children:t("div",{className:"h-full overflow-y-auto",style:{height:p>0?`calc(100vh - ${p+120}px)`:"calc(100vh - 12rem)"},children:t("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6 auto-rows-max",children:j.map(e=>{let a=Y(e.id.toString()),c=a.reduce((i,ae)=>i+(ae.storyPoints||0),0),b=p>0?`calc(100vh - ${p+200}px)`:"calc(100vh - 14rem)";return s(C,{className:`flex flex-col ${r===e.id.toString()?"h-auto":""} bg-card shadow-sm`,style:{height:r===e.id.toString()?"auto":b,minHeight:"400px"},onDragOver:Q,onDrop:i=>W(i,e.id.toString()),children:[t("div",{className:"p-4 border-b border-border",children:r===e.id.toString()?s("div",{className:"space-y-4",children:[s("div",{className:"flex items-center justify-between",children:[t(y,{value:o.name||"",onChange:i=>d({...o,name:i.target.value}),placeholder:"Epic name",className:"font-semibold"}),s("div",{className:"flex gap-2 ml-2",children:[t(m,{size:"sm",variant:"ghost",onClick:_,className:"p-1 h-8 w-8",children:t(de,{className:"h-4 w-4"})}),t(m,{size:"sm",variant:"ghost",onClick:ee,className:"p-1 h-8 w-8",children:t(le,{className:"h-4 w-4"})})]})]}),t(S,{value:o.description||"",onChange:i=>d({...o,description:i.target.value}),placeholder:"Epic description",className:"text-sm min-h-[60px]"}),s("div",{className:"grid grid-cols-2 gap-2",children:[s("div",{children:[t("label",{className:"text-xs text-muted-foreground",children:"Confidence"}),s("select",{value:o.confidence||e.confidence,onChange:i=>d({...o,confidence:i.target.value}),className:"flex h-8 w-full rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",children:[t("option",{value:"low",children:"Low"}),t("option",{value:"medium",children:"Medium"}),t("option",{value:"high",children:"High"})]})]}),s("div",{children:[t("label",{className:"text-xs text-muted-foreground",children:"Phase"}),t("select",{value:o.phase?.toString()||e.phase.toString(),onChange:i=>d({...o,phase:parseInt(i.target.value)}),className:"flex h-8 w-full rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",children:[1,2,3,4,5,6,7,8,9].map(i=>s("option",{value:i.toString(),children:["Phase ",i]},i))})]})]})]}):s(B,{children:[s("div",{className:"flex items-center gap-2 mb-2",children:[t("div",{className:`w-4 h-4 rounded-full ${e.color}`}),t("h3",{className:"font-semibold text-foreground select-none flex-1",children:e.name}),s("div",{className:"flex gap-1",children:[t(m,{size:"sm",variant:"ghost",onClick:()=>Z(e),className:"p-1 h-8 w-8",children:t(ne,{className:"h-3 w-3"})}),t(m,{size:"sm",variant:"ghost",onClick:()=>te(e.id.toString()),className:"p-1 h-8 w-8 hover:bg-destructive/10 hover:text-destructive",children:t(re,{className:"h-3 w-3"})})]})]}),s("div",{className:"flex flex-wrap gap-2 mb-3",children:[s(u,{className:`text-xs ${se(e.confidence)}`,children:[e.confidence," confidence"]}),s(u,{variant:"outline",className:"text-xs",children:["Phase ",e.phase]}),s(u,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[a.length," tasks"]}),s(u,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[c," pts"]})]}),e.description&&t("p",{className:"text-sm text-muted-foreground mb-3 select-none",children:e.description}),s(m,{onClick:()=>{T(!0),G(e)},variant:"outline",size:"sm",className:"w-full gap-2",children:[t(ie,{className:"h-4 w-4"}),"Add Task"]})]})}),t("div",{className:"flex-1 p-4 overflow-y-auto",children:t("div",{className:`space-y-3 min-h-[200px] border-2 border-dashed rounded p-3 transition-colors ${g?"border-primary bg-primary/10":"border-border"}`,children:a.length===0?s("div",{className:"flex flex-col items-center justify-center h-32 text-muted-foreground border-2 border-dashed border-border rounded-lg",children:[t(oe,{className:"h-8 w-8 mb-2"}),t("span",{className:"text-sm select-none",children:"Drop tasks here"})]}):a.map(i=>t(D,{task:i,epic:e,onDragStart:K,onTaskClick:I,isCompact:!0},i.id))})})]},e.id)})})})})]}),t(O,{isOpen:U,onClose:()=>N(!1),onAddEpic:L}),t(P,{isOpen:X,onClose:()=>T(!1),onAddTask:$,assignees:[],epics:[],defaultEpicId:q?.id.toString()||"",sprints:z})]})};export{Te as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as S}from"./chunk-5NIEZE7A.mjs";import{a as d,b as o,c as a,d as m,e as t,f as l}from"./chunk-76M7JE4D.mjs";import{a as
|
|
4
|
+
import{a as S}from"./chunk-5NIEZE7A.mjs";import{a as d,b as o,c as a,d as m,e as t,f as l}from"./chunk-76M7JE4D.mjs";import{a as u}from"./chunk-OYZDAMCS.mjs";import{b as n,d as b,f as c}from"./chunk-ZFUP5NVF.mjs";import{a as s}from"./chunk-4UIARERB.mjs";import{a as p}from"./chunk-ITJH72Z2.mjs";import{a as g}from"./chunk-WU3JMLSC.mjs";import{a as f}from"./chunk-BZAYEKYC.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function h({...i}){return r("div",{className:"bg-sidebar",children:[e(p,{isMenuOpen:!0,logoLight:f,logoDark:g,...i.header,className:"bg-sidebar",wide:!0}),r(n,{className:"top-24 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(S,{...i.sidebarLeft,className:"flex-none top-24"}),r(c,{className:"grow overflow-hidden",children:[e("header",{className:"flex h-16 shrink-0 items-center gap-2",children:r("div",{className:"flex items-center gap-2 px-4",children:[e(b,{className:"-ml-1"}),e(s,{orientation:"vertical",className:"mr-2 h-4"}),e(d,{children:r(o,{children:[e(a,{className:"hidden md:block",children:e(m,{href:"#",children:"Building Your Application"})}),e(l,{className:"hidden md:block"}),e(a,{children:e(t,{children:"Data Fetching"})})]})})]})}),r("div",{className:"flex flex-1 flex-col gap-4 p-4 pt-0",children:[r("div",{className:"grid auto-rows-min gap-4 md:grid-cols-3",children:[e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"})]}),e("div",{className:"flex-1 rounded-xl bg-muted/50 md:min-h-min"})]})]})]}),e(u,{})]})}export{h as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{f as o}from"./chunk-
|
|
1
|
+
import{f as o}from"./chunk-FYQBRCQM.mjs";import l from"next/image";import{jsx as e,jsxs as i}from"react/jsx-runtime";var n=({logoImage:a})=>i("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
|
|
2
2
|
dark bg-background text-primary`,children:[i("div",{className:"flex px-6 items-center space-x-2",children:[a&&e("img",{src:a.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"})]}),p=({title:a})=>e("header",{className:"absolute top-0 left-0 w-full py-4 px-8 flex justify-between items-center transition-colors duration-300 dark bg-background text-foreground",children:e("div",{className:"container",children:e("span",{className:"container text-4xl px-6",children:a})})}),h=a=>{let{title:r,hero:t,logoImage:s}=a;return i("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[e("div",{className:"absolute inset-0",children:e(l,{src:t.media&&t.media.url?t.media.url:"/hero.png",alt:"Background",width:t.media&&t.media.width?t.media.width??1920:1920,height:t.media&&t.media.height?t.media.height??1080:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),e("div",{className:"absolute left-16 z-50 top-4 flex flex-col items-start gap-4",children:s&&e("div",{className:"h-24",children:e(l,{src:s.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),e("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),i("div",{className:"relative pl-24 z-10 max-w-3xl",children:[e("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:r}),t.richText&&e(o,{content:t.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};export{n as a,p as b,h as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-SV7NMNDI.mjs";import{f as s,g as m}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-SV7NMNDI.mjs";import{f as s,g as m}from"./chunk-FYQBRCQM.mjs";import{a as o}from"./chunk-MDJREBVI.mjs";import{jsx as e,jsxs as p}from"react/jsx-runtime";function x({services:t,className:f,title:r,content:i}){let d={settings:{width:"full",card:"light"}};return p("div",{className:"pb-4 md:pb-0",children:[p("div",{className:o("w-full text-left prose"),children:[r&&e("h2",{className:"text-primary",children:r}),e("div",{className:"pb-12 ",children:i&&e(s,{enableGutter:!1,content:i,enableProse:!1,className:o("prose prose-headings:text-foreground prose-p:text-foreground")})})]}),t&&t.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-between gap-y-8",children:t.map((a,l)=>e("div",{"data-aos":"fade-up","data-aos-delay":n([200,400,600],l),className:"w-full px-4 md:w-1/2 lg:w-1/3 flex",children:e(m,{...d,icon:{type:"none"},title:a.title,image:a.image,content:a.content,link:a.link,className:"w-full"})},l))})]})}export{x as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-MZP7RIQZ.mjs";import{a as i}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-MZP7RIQZ.mjs";import{a as i}from"./chunk-GETYSIZV.mjs";import{a as l}from"./chunk-U3FYDDE2.mjs";import{a as m}from"./chunk-HKMNAXLM.mjs";import{ChevronRightIcon as c,HomeIcon as f}from"@heroicons/react/20/solid";import{Fragment as h,jsx as e,jsxs as a}from"react/jsx-runtime";var d={highImpact:i,lowImpact:l,mediumImpact:m,sectionHero:n},H=t=>{let{type:o}=t||{};if(!o||o==="none")return null;let r=d[o];return r?e(r,{...t}):null};function N({breadcrumbItems:t}){if(t&&t.length>0){let o=t.filter(r=>r.label.toLowerCase()!=="home");return e("nav",{"aria-label":"Breadcrumb",className:"flex",children:a("ol",{role:"list",className:"flex items-center space-x-4",children:[e("li",{children:e("div",{children:a("a",{href:"/",className:"text-foreground hover:text-accent",children:[e(f,{"aria-hidden":"true",className:"size-5 shrink-0"}),e("span",{className:"sr-only",children:"Home"})]})})}),o.map((r,s)=>e("li",{children:a("div",{className:"flex items-center",children:[e(c,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),r.href?e("a",{href:r.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:r.label}):e("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:r.label})]})},s))]})})}return e(h,{})}export{H as a,N as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as C}from"./chunk-
|
|
1
|
+
import{a as C}from"./chunk-MTA6RFZ7.mjs";import{a as f}from"./chunk-SH5SK6V2.mjs";import{a as T,b,c as w}from"./chunk-5Y6FKL5W.mjs";import{a as y}from"./chunk-EW6KWAHS.mjs";import{a as h,b as P,c as k,d as I,e as R}from"./chunk-7JDMW5R3.mjs";import{a as x}from"./chunk-YPZAYXNQ.mjs";import{a as g}from"./chunk-RL6365DN.mjs";import{b as m}from"./chunk-ZUA4KNIR.mjs";import{b as N}from"./chunk-CSBGSBEU.mjs";import{a as l,b as u,c,e as d}from"./chunk-YO3GQYRJ.mjs";import{FileText as A,Image as E,File as L,Download as S,ExternalLink as U}from"lucide-react";import{jsx as t,jsxs as r}from"react/jsx-runtime";var $=n=>n.startsWith("image/")?t(E,{className:"h-4 w-4"}):n.startsWith("text/")?t(A,{className:"h-4 w-4"}):t(L,{className:"h-4 w-4"}),Z=({message:n,addToolResult:p,status:B,messages:H})=>n.parts.map((a,s)=>{if(a.type==="text")return t(y,{children:a.text},`${s}`);if(a.type==="file"){let e=a;return t("div",{className:"mb-2 p-2 bg-background/50 rounded-lg",children:r("div",{className:"flex items-center gap-2",children:[$(e.mediaType||"application/octet-stream"),t("div",{className:"flex-1 min-w-0",children:t("p",{className:"text-sm font-medium truncate",children:e.filename||e.url?.split("/").pop()||"File"})}),e.url&&t(m,{variant:"ghost",size:"sm",onClick:()=>window.open(e.url,"_blank"),className:"h-8 w-8 p-0",children:t(S,{className:"h-4 w-4"})})]})},s)}if(a.type.startsWith("tool-")){let e=a,i=a.type.replace("tool-","");if(i==="task")switch(e.state){case"input-available":return t("div",{className:"text-sm opacity-70",children:"Loading task..."},s);case"output-available":return t("div",{className:"mb-2",children:t(g,{data:{id:e.output?.id||e.input?.id,fetchLatest:!1,taskData:e.output||e.input}})},s);case"output-error":return r("div",{className:"text-sm text-red-500",children:["Error: ",e.errorText]},s);default:return null}if(a.type==="tool-requestEndpointLogin")return t("div",{className:"mb-2",children:t(f,{toolPart:e,index:s,addToolResult:p??(()=>{})})},s);if(a.type==="tool-authenticate")return t("div",{className:"mb-2",children:t(f,{toolPart:e,index:s,addToolResult:p??(()=>{})})},s);if(a.type==="tool-requestApproval")return console.log("Rendering PartApprovalTool with toolPart:",e),t("div",{className:"mb-2",children:t(C,{toolPart:e,index:s,addToolResult:p??(()=>{})})},s);if(i==="artefact")switch(e.state){case"input-available":return t("div",{className:"text-sm opacity-70",children:"Loading artefact..."},s);case"output-available":return t("div",{className:"mb-2",children:t(x,{artefact:e.output?.description||"",taskId:e.output?.id||e.input?.id,taskData:e.output||e.input})},s);case"output-error":return r("div",{className:"text-sm text-red-500",children:["Error: ",e.errorText]},s);default:return null}return t("div",{className:"mb-2",children:r(l,{className:"w-full max-w-md",children:[t(u,{children:t(c,{className:"text-lg",children:i})}),r(d,{children:[e.state==="input-available"&&r("p",{className:"text-sm",children:["Processing ",i,"..."]}),e.state==="output-available"&&t("pre",{className:"text-sm",children:JSON.stringify(e.output,null,2)}),e.state==="output-error"&&r("p",{className:"text-sm text-red-500",children:["Error: ",e.errorText]})]})]})},s)}if(a.type.startsWith("data-")){let e=a,i=a.type.replace("data-","");return i==="reference"?t("div",{className:"mb-2",children:t(l,{className:"w-full",children:t(d,{className:"p-4",children:t("div",{className:"space-y-2",children:e.data?.references?.map((o,v)=>r("div",{className:"flex items-center gap-2 p-2 rounded-md bg-muted/50",children:[t(N,{variant:"outline",children:o.type||"link"}),r("div",{className:"flex-1 min-w-0",children:[t("p",{className:"text-sm font-medium truncate",children:o.title}),o.description&&t("p",{className:"text-xs text-muted-foreground truncate",children:o.description})]}),o.url&&t(m,{variant:"ghost",size:"sm",onClick:()=>window.open(o.url,"_blank"),className:"h-8 w-8 p-0",children:t(U,{className:"h-4 w-4"})})]},v))})})})},s):i==="menu"?t("div",{className:"mb-2",children:r(l,{className:"w-full",children:[t(u,{children:t(c,{className:"text-lg",children:e.data?.title})}),t(d,{children:t("div",{className:"space-y-2",children:e.data?.items?.map((o,v)=>t(m,{variant:"outline",className:"w-full justify-start",onClick:o.action,children:r("div",{className:"text-left",children:[t("p",{className:"font-medium",children:o.label}),o.description&&t("p",{className:"text-xs text-muted-foreground",children:o.description})]})},v))})})]})},s):t("div",{className:"mb-2",children:r(l,{className:"w-full max-w-md",children:[t(u,{children:t(c,{className:"text-lg",children:i})}),t(d,{children:t("pre",{className:"text-sm",children:JSON.stringify(e.data,null,2)})})]})},s)}if(a.type==="reasoning")return r(T,{className:"w-full",isStreaming:B==="streaming"&&s===n.parts.length-1&&n.id===H.at(-1)?.id,children:[t(b,{}),t(w,{children:a.text})]},`${s}`);if(a.type==="dynamic-tool")return r(h,{defaultOpen:a.state!=="output-available",children:[t(P,{type:`tool-${a.toolName}`,state:a.state}),r(k,{children:[t(I,{input:a.input}),t(R,{output:a.output,errorText:a.errorText})]})]},`${n.id}-${s}`)});export{Z as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as t}from"./chunk-
|
|
1
|
+
import{f as t}from"./chunk-FYQBRCQM.mjs";import{b as o}from"./chunk-ZUA4KNIR.mjs";import{a as r}from"./chunk-MDJREBVI.mjs";import s from"next/link";import{jsx as i,jsxs as n}from"react/jsx-runtime";var p=({dynamicServiceDetail:c,style:a})=>{let e=c;return i("div",{className:"container",children:n("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[n("div",{className:r("w-full text-left prose"),children:[i("h2",{className:"text-primary",children:e.title}),i("div",{className:"",children:i(t,{enableGutter:!1,content:e.description,enableProse:!1,className:r("prose prose-headings:text-foreground prose-p:text-foreground")})}),i(o,{asChild:!0,className:"mt-6 px-6 py-3 border border-accent text-foreground bg-background rounded-full hover:bg-accent hover:text-accent-foreground transition no-underline",children:i(s,{href:`/${e.slug}`,children:"Learn more"})})]}),e.icon&&typeof e.icon=="object"&&"type"in e.icon&&"iconName"in e.icon&&i("div",{className:r("w-full h-full min-h-96 py-6 p-0 md:p-16 flex justify-center"),children:i("i",{className:`${e.icon.type} fa-${e.icon.iconName} fa-10x w-3/4 h-full text-foreground fill-gradient-linear`,style:{width:"90%"}})})]})})};export{p as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-T5HJS6OF.mjs";import{f as s}from"./chunk-
|
|
1
|
+
import{a as r}from"./chunk-T5HJS6OF.mjs";import{f as s}from"./chunk-FYQBRCQM.mjs";import d from"clsx";import{jsx as t,jsxs as l}from"react/jsx-runtime";var g=a=>{let{className:i,docs:n,introContent:o}=a;return l("div",{className:d("container",i),children:[o&&t(s,{content:o,enableGutter:!1}),t("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:n?.map((e,p)=>typeof e=="string"?null:t(r,{doc:e,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{i as G,j as _,k as O,l as $,m as J,n as U,o as X}from"./chunk-O5BAW5XQ.mjs";import{a as y}from"./chunk-2QZUKVBA.mjs";import{a as T}from"./chunk-SRUG246N.mjs";import{a as S}from"./chunk-UZSBX5GO.mjs";import{a as R}from"./chunk-VNYUNZ3M.mjs";import{a as I}from"./chunk-LXZAOORS.mjs";import{b as P}from"./chunk-ZUA4KNIR.mjs";import{a as b}from"./chunk-FVM5SQT2.mjs";import{a as l}from"./chunk-MDJREBVI.mjs";import{useState as q}from"react";import{jsx as p,jsxs as v}from"react/jsx-runtime";var se=({links:r,richText:t})=>p("div",{className:"container",children:v("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:[p("div",{className:"max-w-[48rem] flex items-center",children:t&&p(f,{className:"mb-0",content:t,enableGutter:!1})}),p("div",{className:"flex flex-col gap-8",children:(r||[]).map(({link:e},n)=>p(y,{size:"lg",...e},n))})]})}),F=({links:r,richText:t})=>{let[e,n]=q(!1),i="accent",a=()=>n(!0),o=()=>n(!1),u=m=>{m.target===m.currentTarget&&o()};return v("div",{className:l("relative isolate overflow-hidden",i==="accent"?"bg-accent":"bg-black"),children:[p("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:v("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&p(f,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),p("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:p("div",{className:"flex flex-col gap-8 text-white",children:(r||[]).map(({link:m},g)=>m?.url==="/contact"?p("div",{onClick:a,className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",i==="accent"?"border-white bg-accent":"border-accent bg-black"),children:m.label},g):p(y,{size:"lg",className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",i==="accent"?"border-white bg-accent":"border-accent bg-black"),...m},g))})})]})}),e&&p("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:u,children:v("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[p("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:o,children:"\u2715"}),p(T,{})," "]})})]})};import K from"next/image";import{jsx as d,jsxs as k}from"react/jsx-runtime";function D(r){return r&&typeof r=="object"&&"type"in r&&"iconName"in r}function w({image:r,icon:t,title:e,subtitle:n,content:i,statistic:a,settings:o,link:u,className:m}){let g={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:"bg-background"},N={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return k("a",{href:u?.url||"#",className:l("min-w-56 max-w-xl h-full flex flex-col group bg-background",r?"p-0":"p-6 md:p-8",o&&!r&&g[o?.card==="default"?"solid":o?.card],r&&"bg-foreground",o&&o?.card==="outline"?"text-gray-900":"text-white",N[o?.width??"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",o&&`intersect:animate-delay-${o.order||1}00`,m),children:[r&&d("div",{className:"relative aspect-[16/9] w-full",children:d(K,{src:r.url||"/placeholder.svg",alt:r.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),k("div",{className:l(r?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[k("div",{className:"flex flex-col flex-grow",children:[n&&d("div",{className:"text-primary uppercase text-sm font-light mb-4",children:n}),d("div",{className:"flex items-start gap-4 mb-4",children:d(Q,{icon:{type:t?.type||"fa-light",iconName:t?.icon||"no-icon-error"},heading:e??"",variant:o?.card==="default"?"solid":o?.card??"solid",iconSize:o?.iconSize||"large"})}),i&&typeof i=="object"&&d(f,{enableGutter:!1,content:i,enableProse:!1,className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",o?.card==="outline"||o?.card==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",r&&"prose-headings:text-background prose-p:text-background")}),i&&typeof i=="string"&&d("div",{className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",o?.card==="outline"||o?.card==="light"?"prose text-foreground":"prose text-gray-100",r&&"prose text-background"),children:i})]}),u&&u.url&&d("div",{className:"mt-6",children:d("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:u?.label||"Find out more"})})]})]})}var Q=({icon:r,heading:t,variant:e,iconSize:n,subtitle:i})=>r&&n==="small"&&r.iconName!="no-icon-error"?k("div",{className:"flex items-start justify-between w-full mb-2",children:[d("div",{className:l(e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"text-2xl":"text-3xl"),children:t}),D(r)&&d("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"-mr-2 ml-1 mt-1":""),children:d(b,{type:r.type,iconName:r.iconName,size:"2x"})})]}):r&&r.iconName!="no-icon-error"?k("div",{className:"flex flex-col gap-4",children:[D(r)&&d("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-accent":""),children:d(b,{type:r.type,iconName:r.iconName,size:"4x"})}),d("h3",{className:l("font-normal",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):d("div",{className:"flex items-center gap-4 mb-2",children:d("div",{className:l("font-regular",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl"),children:t})});import{jsx as c,jsxs as B}from"react/jsx-runtime";function z(r){return r&&typeof r=="object"&&"type"in r&&"iconName"in r}function ke({variant:r="outline",className:t,icon:e,iconSize:n="large",width:i="auto",order:a=0,heading:o,subheading:u,content:m,statistic:g,buttonText:N,buttonHref:E}){let H={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:""},j={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return B("div",{className:l("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",H[r],r==="outline"?"text-gray-900":"text-white",t,j[i],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${a+1}00`),children:[c("div",{className:"flex items-center gap-4 mb-2",children:c(V,{icon:e,heading:o,variant:r,iconSize:n})}),g&&c("div",{className:"mb-6",children:c("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",r==="outline"||r==="light"?"text-primary":"text-white"),children:g})}),u&&c("div",{className:"mb-4 text-xl md:text-2xl font-light",children:u}),m&&typeof m=="object"&&c("div",{className:l("space-y-6"),children:c(f,{enableGutter:!1,content:m,enableProse:!1,className:l(r==="outline"||r==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),m&&typeof m=="string"&&c("div",{className:l("space-y-6",r==="outline"||r==="light"?"text-gray-900":"text-gray-100"),children:m}),N&&c("div",{className:"mt-auto pt-6 flex items-center justify-center",children:c(P,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:c("a",{href:E,children:N})})}),r==="radial"&&c("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 V=({icon:r,heading:t,variant:e,iconSize:n})=>r&&n==="small"?B("div",{className:"flex items-start gap-4 mb-2",children:[z(r)&&c("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"mt-2":""),children:c(b,{type:r.type,iconName:r.iconName,size:"2x"})}),c("div",{className:l("font-semibold",e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"text-2xl":"text-3xl"),children:t})]}):r?B("div",{className:"flex flex-col gap-4",children:[z(r)&&c("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-accent":""),children:c(b,{type:r.type,iconName:r.iconName,size:"4x"})}),c("h3",{className:l("font-semibold",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):c("div",{className:"flex items-center gap-4 mb-2",children:c("div",{className:l("font-semibold",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl"),children:t})});import{jsx as x,jsxs as A}from"react/jsx-runtime";var M=({title:r,description:t,features:e,id:n,nested:i=!1})=>A("section",{className:l(i?"w-full":"",""),children:[A("div",{className:"prose prose:max-w-none",children:[r&&x("h2",{className:"mb-6 mt-0 text-primary",id:n||"",children:r}),t&&typeof t=="string"&&x("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&x("div",{className:"mb-5 text-foreground",children:x(f,{content:t,enableGutter:!1})})]}),x("div",{className:`grid gap-6 mt-6 md:grid-cols-${e?e.length>2?2:e.length:1} lg:grid-cols-${e?e.length>3?3:e.length:1}`,children:e&&e.map((a,o)=>{let u=()=>{if(a.icon&&"type"in a.icon&&a.icon.type!=="none")return{type:a.icon.type,icon:a.icon.icon}};return x(w,{title:a.title||"",content:a.content||void 0,statistic:a.statistic||void 0,settings:{...a.settings,width:"auto",order:o},link:a.link?{...a.link,label:"Learn more"}:void 0,icon:u()??{type:"none",icon:null}},o)})})]});import W,{Fragment as Y}from"react";import{jsx as s}from"react/jsx-runtime";function h({nodes:r}){return s(Y,{children:r?.map((t,e)=>{if(t==null)return null;if(t.type==="text"&&t.text){let a=s(W.Fragment,{children:t.text},e);return t.format&1&&(a=s("strong",{children:a},e)),t.format&2&&(a=s("em",{children:a},e)),t.format&4&&(a=s("span",{style:{textDecoration:"line-through"},children:a},e)),t.format&8&&(a=s("span",{style:{textDecoration:"underline"},children:a},e)),t.format&16&&(a=s("code",{children:t.text},e)),t.format&32&&(a=s("sub",{children:a},e)),t.format&64&&(a=s("sup",{children:a},e)),a}if(t.type==="table")return s("table",{children:s("tbody",{children:t.children.map((a,o)=>s("tr",{children:a.children.map((u,m)=>s("td",{children:h({nodes:u.children})},m))},o))})},e);let n=a=>{if(a.children==null)return null;if(a?.type==="list"&&a?.listType==="check")for(let o of a.children)"checked"in o&&(o?.checked||(o.checked=!1));return h({nodes:a.children})},i="children"in t?n(t):"";if(t.type==="block"){let a=t.fields,o=a?.blockType;if(!a||!o)return null;switch(o){case"cta":return s(F,{...a},e);case"mediaBlock":return s(S,{className:"col-start-1 col-span-3",imgClassName:"m-0",...a,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},e);case"imageBlock":return s(R,{className:"col-start-1 col-span-3",imgClassName:"m-0",...a,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},e);case"banner":return s(L,{className:"col-start-2 mb-4",...a},e);case"code":return s(I,{className:"col-start-2",...a},e);case"features":return s(M,{...a,nested:!0},e);case"reusableContentBlock":h({nodes:a.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return s("br",{className:"col-start-2"},e);case"paragraph":return s("p",{className:"col-start-2",children:i},e);case"heading":{let a=t?.tag;return s(a,{className:"col-start-2",id:t?.id||"",children:i},e)}case"list":{let a=t?.tag;return s(a,{className:"list col-start-2",children:i},e)}case"listitem":return t?.checked!=null?s("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:i},e):s("li",{value:t?.value,children:i},e);case"quote":return s("blockquote",{className:"col-start-2",children:i},e);case"link":{let a=t.fields;return s(y,{newTab:!!a?.newTab,reference:a.doc,type:a.linkType==="internal"?"reference":"custom",url:a.url,children:i},e)}case"autolink":{let a=t.fields;return s(y,{newTab:!!a?.newTab,reference:a.doc,type:a.linkType==="internal"?"reference":"custom",url:a.url,children:i},e)}default:return null}})})}import{jsx as Z}from"react/jsx-runtime";var f=({className:r,content:t,enableGutter:e=!0,enableProse:n=!0})=>t?Z("div",{className:l({"container ":e,"max-w-none":!e,"mx-auto prose":n},r),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&h({nodes:t?.root?.children})}):null;import{jsx as C}from"react/jsx-runtime";var L=({className:r,content:t,style:e})=>C("div",{className:l("mx-auto my-8 w-full",r),children:C("div",{className:l("border py-3 px-6 flex items-center rounded",{"border-border bg-card":e==="info","border-error bg-error/30":e==="error","border-success bg-success/30":e==="success","border-warning bg-warning/30":e==="warning"}),children:C(f,{content:t,enableGutter:!1,enableProse:!1})})});export{L as a,se as b,F as c,M as d,h as e,f,w as g,ke as h};
|
|
4
|
+
import{i as G,j as _,k as O,l as $,m as J,n as U,o as X}from"./chunk-O5BAW5XQ.mjs";import{a as y}from"./chunk-2QZUKVBA.mjs";import{a as T}from"./chunk-SRUG246N.mjs";import{a as R}from"./chunk-VNYUNZ3M.mjs";import{a as S}from"./chunk-UZSBX5GO.mjs";import{a as I}from"./chunk-LXZAOORS.mjs";import{b as P}from"./chunk-ZUA4KNIR.mjs";import{a as b}from"./chunk-FVM5SQT2.mjs";import{a as l}from"./chunk-MDJREBVI.mjs";import{useState as q}from"react";import{jsx as p,jsxs as v}from"react/jsx-runtime";var se=({links:r,richText:t})=>p("div",{className:"container",children:v("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:[p("div",{className:"max-w-[48rem] flex items-center",children:t&&p(f,{className:"mb-0",content:t,enableGutter:!1})}),p("div",{className:"flex flex-col gap-8",children:(r||[]).map(({link:e},n)=>p(y,{size:"lg",...e},n))})]})}),F=({links:r,richText:t})=>{let[e,n]=q(!1),i="accent",a=()=>n(!0),o=()=>n(!1),u=m=>{m.target===m.currentTarget&&o()};return v("div",{className:l("relative isolate overflow-hidden",i==="accent"?"bg-accent":"bg-black"),children:[p("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:v("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&p(f,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),p("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:p("div",{className:"flex flex-col gap-8 text-white",children:(r||[]).map(({link:m},g)=>m?.url==="/contact"?p("div",{onClick:a,className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",i==="accent"?"border-white bg-accent":"border-accent bg-black"),children:m.label},g):p(y,{size:"lg",className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",i==="accent"?"border-white bg-accent":"border-accent bg-black"),...m},g))})})]})}),e&&p("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:u,children:v("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[p("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:o,children:"\u2715"}),p(T,{})," "]})})]})};import K from"next/image";import{jsx as d,jsxs as k}from"react/jsx-runtime";function D(r){return r&&typeof r=="object"&&"type"in r&&"iconName"in r}function w({image:r,icon:t,title:e,subtitle:n,content:i,statistic:a,settings:o,link:u,className:m}){let g={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:"bg-background"},N={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return k("a",{href:u?.url||"#",className:l("min-w-56 max-w-xl h-full flex flex-col group bg-background",r?"p-0":"p-6 md:p-8",o&&!r&&g[o?.card==="default"?"solid":o?.card],r&&"bg-foreground",o&&o?.card==="outline"?"text-gray-900":"text-white",N[o?.width??"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",o&&`intersect:animate-delay-${o.order||1}00`,m),children:[r&&d("div",{className:"relative aspect-[16/9] w-full",children:d(K,{src:r.url||"/placeholder.svg",alt:r.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),k("div",{className:l(r?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[k("div",{className:"flex flex-col flex-grow",children:[n&&d("div",{className:"text-primary uppercase text-sm font-light mb-4",children:n}),d("div",{className:"flex items-start gap-4 mb-4",children:d(Q,{icon:{type:t?.type||"fa-light",iconName:t?.icon||"no-icon-error"},heading:e??"",variant:o?.card==="default"?"solid":o?.card??"solid",iconSize:o?.iconSize||"large"})}),i&&typeof i=="object"&&d(f,{enableGutter:!1,content:i,enableProse:!1,className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",o?.card==="outline"||o?.card==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",r&&"prose-headings:text-background prose-p:text-background")}),i&&typeof i=="string"&&d("div",{className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",o?.card==="outline"||o?.card==="light"?"prose text-foreground":"prose text-gray-100",r&&"prose text-background"),children:i})]}),u&&u.url&&d("div",{className:"mt-6",children:d("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:u?.label||"Find out more"})})]})]})}var Q=({icon:r,heading:t,variant:e,iconSize:n,subtitle:i})=>r&&n==="small"&&r.iconName!="no-icon-error"?k("div",{className:"flex items-start justify-between w-full mb-2",children:[d("div",{className:l(e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"text-2xl":"text-3xl"),children:t}),D(r)&&d("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"-mr-2 ml-1 mt-1":""),children:d(b,{type:r.type,iconName:r.iconName,size:"2x"})})]}):r&&r.iconName!="no-icon-error"?k("div",{className:"flex flex-col gap-4",children:[D(r)&&d("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-accent":""),children:d(b,{type:r.type,iconName:r.iconName,size:"4x"})}),d("h3",{className:l("font-normal",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):d("div",{className:"flex items-center gap-4 mb-2",children:d("div",{className:l("font-regular",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl"),children:t})});import{jsx as c,jsxs as B}from"react/jsx-runtime";function z(r){return r&&typeof r=="object"&&"type"in r&&"iconName"in r}function ke({variant:r="outline",className:t,icon:e,iconSize:n="large",width:i="auto",order:a=0,heading:o,subheading:u,content:m,statistic:g,buttonText:N,buttonHref:E}){let H={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:""},j={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return B("div",{className:l("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",H[r],r==="outline"?"text-gray-900":"text-white",t,j[i],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${a+1}00`),children:[c("div",{className:"flex items-center gap-4 mb-2",children:c(V,{icon:e,heading:o,variant:r,iconSize:n})}),g&&c("div",{className:"mb-6",children:c("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",r==="outline"||r==="light"?"text-primary":"text-white"),children:g})}),u&&c("div",{className:"mb-4 text-xl md:text-2xl font-light",children:u}),m&&typeof m=="object"&&c("div",{className:l("space-y-6"),children:c(f,{enableGutter:!1,content:m,enableProse:!1,className:l(r==="outline"||r==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),m&&typeof m=="string"&&c("div",{className:l("space-y-6",r==="outline"||r==="light"?"text-gray-900":"text-gray-100"),children:m}),N&&c("div",{className:"mt-auto pt-6 flex items-center justify-center",children:c(P,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:c("a",{href:E,children:N})})}),r==="radial"&&c("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 V=({icon:r,heading:t,variant:e,iconSize:n})=>r&&n==="small"?B("div",{className:"flex items-start gap-4 mb-2",children:[z(r)&&c("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"mt-2":""),children:c(b,{type:r.type,iconName:r.iconName,size:"2x"})}),c("div",{className:l("font-semibold",e==="outline"||e==="light"?"text-primary":"text-white",n==="small"?"text-2xl":"text-3xl"),children:t})]}):r?B("div",{className:"flex flex-col gap-4",children:[z(r)&&c("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",e==="outline"||e==="light"?"text-accent":""),children:c(b,{type:r.type,iconName:r.iconName,size:"4x"})}),c("h3",{className:l("font-semibold",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):c("div",{className:"flex items-center gap-4 mb-2",children:c("div",{className:l("font-semibold",e==="outline"||e==="light"?"text-2xl text-primary":"text-3xl"),children:t})});import{jsx as x,jsxs as A}from"react/jsx-runtime";var M=({title:r,description:t,features:e,id:n,nested:i=!1})=>A("section",{className:l(i?"w-full":"",""),children:[A("div",{className:"prose prose:max-w-none",children:[r&&x("h2",{className:"mb-6 mt-0 text-primary",id:n||"",children:r}),t&&typeof t=="string"&&x("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&x("div",{className:"mb-5 text-foreground",children:x(f,{content:t,enableGutter:!1})})]}),x("div",{className:`grid gap-6 mt-6 md:grid-cols-${e?e.length>2?2:e.length:1} lg:grid-cols-${e?e.length>3?3:e.length:1}`,children:e&&e.map((a,o)=>{let u=()=>{if(a.icon&&"type"in a.icon&&a.icon.type!=="none")return{type:a.icon.type,icon:a.icon.icon}};return x(w,{title:a.title||"",content:a.content||void 0,statistic:a.statistic||void 0,settings:{...a.settings,width:"auto",order:o},link:a.link?{...a.link,label:"Learn more"}:void 0,icon:u()??{type:"none",icon:null}},o)})})]});import W,{Fragment as Y}from"react";import{jsx as s}from"react/jsx-runtime";function h({nodes:r}){return s(Y,{children:r?.map((t,e)=>{if(t==null)return null;if(t.type==="text"&&t.text){let a=s(W.Fragment,{children:t.text},e);return t.format&1&&(a=s("strong",{children:a},e)),t.format&2&&(a=s("em",{children:a},e)),t.format&4&&(a=s("span",{style:{textDecoration:"line-through"},children:a},e)),t.format&8&&(a=s("span",{style:{textDecoration:"underline"},children:a},e)),t.format&16&&(a=s("code",{children:t.text},e)),t.format&32&&(a=s("sub",{children:a},e)),t.format&64&&(a=s("sup",{children:a},e)),a}if(t.type==="table")return s("table",{children:s("tbody",{children:t.children.map((a,o)=>s("tr",{children:a.children.map((u,m)=>s("td",{children:h({nodes:u.children})},m))},o))})},e);let n=a=>{if(a.children==null)return null;if(a?.type==="list"&&a?.listType==="check")for(let o of a.children)"checked"in o&&(o?.checked||(o.checked=!1));return h({nodes:a.children})},i="children"in t?n(t):"";if(t.type==="block"){let a=t.fields,o=a?.blockType;if(!a||!o)return null;switch(o){case"cta":return s(F,{...a},e);case"mediaBlock":return s(S,{className:"col-start-1 col-span-3",imgClassName:"m-0",...a,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},e);case"imageBlock":return s(R,{className:"col-start-1 col-span-3",imgClassName:"m-0",...a,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},e);case"banner":return s(L,{className:"col-start-2 mb-4",...a},e);case"code":return s(I,{className:"col-start-2",...a},e);case"features":return s(M,{...a,nested:!0},e);case"reusableContentBlock":h({nodes:a.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return s("br",{className:"col-start-2"},e);case"paragraph":return s("p",{className:"col-start-2",children:i},e);case"heading":{let a=t?.tag;return s(a,{className:"col-start-2",id:t?.id||"",children:i},e)}case"list":{let a=t?.tag;return s(a,{className:"list col-start-2",children:i},e)}case"listitem":return t?.checked!=null?s("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:i},e):s("li",{value:t?.value,children:i},e);case"quote":return s("blockquote",{className:"col-start-2",children:i},e);case"link":{let a=t.fields;return s(y,{newTab:!!a?.newTab,reference:a.doc,type:a.linkType==="internal"?"reference":"custom",url:a.url,children:i},e)}case"autolink":{let a=t.fields;return s(y,{newTab:!!a?.newTab,reference:a.doc,type:a.linkType==="internal"?"reference":"custom",url:a.url,children:i},e)}default:return null}})})}import{jsx as Z}from"react/jsx-runtime";var f=({className:r,content:t,enableGutter:e=!0,enableProse:n=!0})=>t?Z("div",{className:l({"container ":e,"max-w-none":!e,"mx-auto prose":n},r),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&h({nodes:t?.root?.children})}):null;import{jsx as C}from"react/jsx-runtime";var L=({className:r,content:t,style:e})=>C("div",{className:l("mx-auto my-8 w-full",r),children:C("div",{className:l("border py-3 px-6 flex items-center rounded",{"border-border bg-card":e==="info","border-error bg-error/30":e==="error","border-success bg-success/30":e==="success","border-warning bg-warning/30":e==="warning"}),children:C(f,{content:t,enableGutter:!1,enableProse:!1})})});export{L as a,se as b,F as c,M as d,h as e,f,w as g,ke as h};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as
|
|
4
|
+
import{a as k}from"./chunk-BQQ4V4PX.mjs";import{a as C}from"./chunk-KZAYLEFB.mjs";import{a as S,b as w}from"./chunk-4SRUEQTP.mjs";import{a as g}from"./chunk-MZP7RIQZ.mjs";import{a as u}from"./chunk-GETYSIZV.mjs";import{a as v}from"./chunk-U3FYDDE2.mjs";import{a as f}from"./chunk-HKMNAXLM.mjs";import{c as m,f as p}from"./chunk-FYQBRCQM.mjs";import{a as d}from"./chunk-VRE6VCHX.mjs";import{a as s}from"./chunk-7WIO2CIC.mjs";import{a as x}from"./chunk-6C4WESLL.mjs";import{a as N}from"./chunk-ITJH72Z2.mjs";import{a as h}from"./chunk-FMJBJ3HN.mjs";import{a as n}from"./chunk-MDJREBVI.mjs";import{a as b}from"./chunk-WU3JMLSC.mjs";import{a as y}from"./chunk-BZAYEKYC.mjs";import z from"next/image";import{jsx as e,jsxs as o}from"react/jsx-runtime";var H=t=>({root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:t,type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}}),T=({children:t})=>e("div",{children:o("div",{className:"sticky top-0 h-screen",children:[t,e(s,{className:"text-black z-10",position:"header"})]})}),R=()=>o(T,{children:[o("video",{className:"fixed inset-0 object-cover w-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[e("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),e("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-start justify-center text-white px-4",children:e(h,{children:o("div",{className:"flex flex-col items-start md:w-1/2 mb-10 z-0 md:mb-0",children:[e("h1",{className:"text-5xl md:text-7xl mb-6",children:"Lorum ipsum."}),e("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:"Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio."})]})})})]}),L={highImpact:u,lowImpact:v,mediumImpact:f,sectionHero:g,dummy:R};function P({...t}){let i=t.style;return o("div",{className:"relative overflow-y-none scroll-smooth snap-y snap-mandatory",children:[e(N,{isMenuOpen:!0,logoLight:y,logoDark:b,...t.header}),e(I,{...t.hero}),e(c,{theme:"light",style:i,children:e(k,{...t.service})}),e(c,{theme:"dark",style:i,image:t.service.services[0].image,children:e(j,{})}),e(c,{theme:"light",style:i,children:e(j,{})}),e(c,{theme:"dark",style:i,children:e(S,{...t.contact})}),e(c,{theme:"light",style:i,children:e(w,{...t.contact})}),e(c,{theme:"last",style:i,children:e(C,{...t.blog})}),e(m,{...t.cta}),e(x,{...t.footer})]})}var I=t=>{let{type:i}=t||{};if(!i||i==="none")return null;let l=L[i];return l?e(l,{...t}):null},j=()=>{let t={blurDataURL:"/assets/props/Cortex-Handshake-BG.jpg",height:1315,url:"/assets/props/Cortex-Handshake-BG.jpg",width:1920};return e("div",{className:"container",children:o("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[o("div",{className:n("w-full text-left"),children:[e("h2",{className:"text-3xl md:text-5xl text-primary",children:"Lorum ipsum..."}),e("p",{className:"mt-4 text-gray-700 text-lg",children:e(p,{enableGutter:!1,content:H("Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio. Nulla facilisi. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio. Nulla facilisi. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies."),enableProse:!1,className:n("prose prose-headings:text-foreground prose-p:text-foreground")})}),e("button",{className:"mt-6 px-6 py-3 border border-1 border-accent text-foreground rounded-full text-base hover:bg-accent hover:text-accent-foreground transition",children:"Click here"})]}),e("div",{className:"w-full h-full min-h-96 p-6 md:p-6 flex justify-center",children:e(z,{src:t.url,alt:"image",width:t.width,height:t.height,className:"max-w-full"})})]})})},c=({children:t,theme:i,style:l,neighbours:M,shape:D,image:B,id:r,continueTheme:F})=>{let G=a=>o("div",{className:"select-none",children:[a&&typeof a=="object"&&e(d,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:a}),a&&typeof a=="string"&&e("div",{children:e(z,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:a})})]});if(i==="dark"&&l==="slide")return e("section",{id:r||"next-section",className:"sticky md:top-0 h-screen",children:o("div",{className:"dark pt-0 min-h-[80vh]",children:[e(s,{className:"z-10",position:"dark-top"}),o("div",{className:"relative",children:[e("div",{className:"flex items-center bg-black justify-center pt-12",children:e("div",{className:"container",children:t})}),e(s,{className:"z-10",position:"dark-bottom"})]})]})});if(i==="light"&&l==="slide")return e("section",{id:r||"next-section",className:"sticky top-0 light pt-0 h-screen",children:o("div",{className:"sticky top-0 light pt-0 h-screen",children:[e(s,{className:"z-10",position:"light-top"}),o("div",{className:"relative bg-white",children:[e("div",{className:"flex items-center bg-white justify-center pt-12",children:e("div",{className:"container",children:t})}),e("div",{className:"h-[200px] bg-white"})]})]})});if(i==="first")return e("section",{id:r||"next-section",className:"",children:e("div",{className:"sticky top-0 light bg-background pt-6 min-h-[80vh]",children:o("div",{className:"relative",children:[e("div",{className:"flex items-center justify-center pt-12",children:e("div",{className:"container",children:t})}),e(s,{className:"text-black z-10",position:"bottom-right"})]})})});if(i==="light")return e("section",{id:r||"next-section",className:"",children:e("div",{className:n("sticky top-0 light bg-background min-h-[50vh]","pb-10"),children:e("div",{className:"flex items-center pt-8 justify-center",children:e("div",{className:"container",children:t})})})});if(i==="dark")return e("section",{id:r||"next-section",className:"",children:o("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[e(s,{className:"text-black z-10",position:"bottom-right"}),e("div",{className:"flex items-center justify-center pt-12 bg-black",children:e("div",{className:"container",children:t})}),e(s,{className:"text-accent z-10",position:"top"})]})});if(i==="last")return e("section",{id:r||"next-section",className:"",children:o("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[e(s,{className:"text-black z-10",position:"bottom-right"}),e("div",{className:"flex items-center justify-center pb-12 bg-black min-h-[80vh]",children:e("div",{className:"container",children:t})})]})})};export{P as a,c as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-SV7NMNDI.mjs";import{a as r}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-SV7NMNDI.mjs";import{a as r}from"./chunk-2OOJ4ZFB.mjs";import{a as o}from"./chunk-KX2NCNCS.mjs";import{a as e}from"./chunk-FMJBJ3HN.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(e,{children:[i("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:i(r,{...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":n([200,400,600],t),className:"py-2",children:i(o,{...d})},t))})]})})}export{S as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{f as l}from"./chunk-
|
|
4
|
+
import{f as l}from"./chunk-FYQBRCQM.mjs";import{a as r}from"./chunk-2QZUKVBA.mjs";import{a as s}from"./chunk-VRE6VCHX.mjs";import h from"next/image";import{jsx as e,jsxs as t}from"react/jsx-runtime";var x=({links:o,media:i,children:m,richText:a})=>e("div",{children:t("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[t("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[m||a&&e(l,{className:"max-w-none p-0 mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:a,enableGutter:!0}),Array.isArray(o)&&o.length>0&&e("ul",{className:"flex justify-center gap-4",children:o.map(({link:n},d)=>e("li",{children:e(r,{...n})},d))})]}),t("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[i&&typeof i=="object"&&e(s,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:i}),i&&typeof i=="string"&&e("div",{children:e(h,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:i})}),e("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),e(p,{})]})}),p=()=>e("div",{className:"w-full h-[1240px] z-10",children:t("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[e("defs",{children:t("mask",{id:"mask",children:[e("rect",{width:"1920",height:"332",fill:"white"}),e("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),e("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),e("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});export{x as a};
|