cortex-react-components 2.9.2 → 2.11.0
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-U67OTPTT.mjs → chunk-74U3NYS2.mjs} +1 -1
- package/dist/chunk-AM2SRWFU.mjs +1 -0
- package/dist/{chunk-FRN4LROV.mjs → chunk-CQNQBSED.mjs} +1 -1
- package/dist/chunk-CTAIR3TE.mjs +4 -0
- package/dist/{chunk-P3NMFRBH.mjs → chunk-CTAQQFEO.mjs} +1 -1
- package/dist/{chunk-BHWGOTCJ.mjs → chunk-FGEFYI5E.mjs} +1 -1
- package/dist/{chunk-I5NNEOCF.mjs → chunk-I2ZLKSWR.mjs} +1 -1
- package/dist/{chunk-5BV4MHV6.mjs → chunk-KG3MNGT6.mjs} +1 -1
- package/dist/{chunk-62A35O55.mjs → chunk-LBUC4M6L.mjs} +1 -1
- package/dist/{chunk-VE5LRUED.mjs → chunk-NAF6ERBI.mjs} +1 -1
- package/dist/chunk-NLFT5RPF.mjs +1 -0
- package/dist/chunk-PFDPO3UX.mjs +1 -0
- package/dist/chunk-PWYA45TZ.mjs +4 -0
- package/dist/{chunk-NVHQBM66.mjs → chunk-Q67RF7VO.mjs} +1 -1
- package/dist/{chunk-4RYG24IZ.mjs → chunk-QTILVWJA.mjs} +1 -1
- package/dist/{chunk-XIGBDWYI.mjs → chunk-RAGDUV7M.mjs} +1 -1
- package/dist/{chunk-UN57ZYKQ.mjs → chunk-RLKXKF2X.mjs} +1 -1
- package/dist/{chunk-XW52WZ2B.mjs → chunk-S4A4VHOI.mjs} +1 -1
- package/dist/{chunk-E64KWNOT.mjs → chunk-TK4JC5PG.mjs} +1 -1
- package/dist/{chunk-PH67DP3M.mjs → chunk-WI2RL3XQ.mjs} +1 -1
- package/dist/chunk-XB3AHDV3.mjs +4 -0
- package/dist/{chunk-KYUPRUH5.mjs → chunk-YQP4GEMN.mjs} +1 -1
- package/dist/chunk-YRMNCHFO.mjs +4 -0
- package/dist/{chunk-PXLSH6S2.mjs → chunk-ZFUP5NVF.mjs} +1 -1
- package/dist/chunk-ZMB6R6JX.mjs +1 -0
- package/dist/components/AdvancedComponents/app-header.js +1 -1
- package/dist/components/AdvancedComponents/app-header.mjs +1 -1
- package/dist/components/AdvancedComponents/index.js +1 -1
- package/dist/components/AdvancedComponents/index.mjs +1 -1
- package/dist/components/AdvancedComponents/navigation-tabs.js +1 -1
- package/dist/components/AdvancedComponents/navigation-tabs.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/CopilotInterface.js +1 -1
- package/dist/components/Chat/CopilotInterface.mjs +1 -1
- package/dist/components/Chat/demo-long-messages.js +1 -1
- package/dist/components/Chat/demo-long-messages.mjs +1 -1
- package/dist/components/Chat/demo-tests.js +1 -1
- package/dist/components/Chat/demo-tests.mjs +1 -1
- package/dist/components/Chat/demo.js +1 -1
- package/dist/components/Chat/demo.mjs +1 -1
- package/dist/components/Chat/example-usage.js +1 -1
- package/dist/components/Chat/example-usage.mjs +1 -1
- package/dist/components/Chat/example-with-vercel-ai.js +1 -1
- package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
- package/dist/components/Chat/index.js +1 -1
- package/dist/components/Chat/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.js +1 -1
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/ColleaguesView.js +1 -1
- package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.js +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/index.d.ts +1 -0
- package/dist/components/DigitalColleagues/index.js +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/DigitalColleagues/team-form.css +1 -0
- package/dist/components/DigitalColleagues/team-form.d.ts +24 -0
- package/dist/components/DigitalColleagues/team-form.js +5 -0
- package/dist/components/DigitalColleagues/team-form.mjs +2 -0
- package/dist/components/HeaderFooter/Header.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/PostHero/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/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/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/AddTaskModal.d.ts +2 -1
- package/dist/components/Projects/AddTaskModal.js +1 -1
- package/dist/components/Projects/AddTaskModal.mjs +1 -1
- package/dist/components/Projects/EpicsView.js +1 -1
- package/dist/components/Projects/EpicsView.mjs +1 -1
- package/dist/components/Projects/FileView.js +1 -1
- package/dist/components/Projects/FileView.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.d.ts +3 -1
- package/dist/components/Projects/KanbanBoardView.js +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.js +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.d.ts +3 -2
- package/dist/components/Projects/ProjectView.js +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
- package/dist/components/Projects/TaskCard.js +1 -1
- package/dist/components/Projects/TaskCard.mjs +1 -1
- package/dist/components/Projects/TasksView.js +1 -1
- package/dist/components/Projects/TasksView.mjs +1 -1
- package/dist/components/dc-temp/index.js +1 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.js +11 -11
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/components/ui/switch.mjs +1 -3
- package/dist/index.js +19 -19
- 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/BlogListSection.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-2B5LH5XN.mjs +0 -4
- package/dist/chunk-6YHVVP3S.mjs +0 -1
- package/dist/chunk-EBTFLN5U.mjs +0 -1
- package/dist/chunk-GN25OSET.mjs +0 -1
- package/dist/chunk-NHXNMPM5.mjs +0 -4
- package/dist/chunk-OYZX5BM4.mjs +0 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{a as N}from"./chunk-TUI4S4GI.mjs";import{a as F}from"./chunk-EAFH3DTH.mjs";import{a as _}from"./chunk-6XUIHSKG.mjs";import{a as ee}from"./chunk-6WQXZ6IE.mjs";import{a as te}from"./chunk-CO6AQNZ5.mjs";import{a as Y}from"./chunk-Z22NSJMF.mjs";import{a as le}from"./chunk-PWXCBW2H.mjs";import{a as Z}from"./chunk-FGEFYI5E.mjs";import{a as H,c as I,d as U,g as $,i as g}from"./chunk-YFAZQYK4.mjs";import{a as X}from"./chunk-L5JPAKPM.mjs";import{b as V}from"./chunk-ZUA4KNIR.mjs";import{a as u,b as x,c as D,e as p}from"./chunk-YO3GQYRJ.mjs";import{useEffect as ve,useState as s}from"react";import{Plus as he,Search as ye,Users as ae,Bot as we,User as xe,Filter as De}from"lucide-react";import{motion as Ne,AnimatePresence as Se}from"motion/react";import{jsx as t,jsxs as a}from"react/jsx-runtime";function be({initialColleagues:S,onColleagueAdd:b,onColleagueEdit:O,onColleagueDelete:ie,compactView:d=!1,departments:oe=["Design","Engineering","Marketing","Product","Sales","Operations"],className:ne,availableUsers:L=[],existingDigitalColleagues:j=[]}){let[n,m]=s(S||[]),[r,P]=s(""),[C,B]=s("all"),[f,M]=s("all"),[y,se]=s("all"),[q,v]=s(null),[A,w]=s(null);ve(()=>{m(S||[])},[S]);let re=Array.isArray(L)?L:[],z=Array.isArray(j)?j:[],[c,i]=s("main"),h=n.filter(e=>{if(!e||!e.name)return!1;let o=e.name.toLowerCase().includes(r.toLowerCase())||e.type==="human"&&(e.email?.toLowerCase().includes(r.toLowerCase())||e.role?.toLowerCase().includes(r.toLowerCase()))||e.type==="digital"&&e.jobDescription?.toLowerCase().includes(r.toLowerCase()),l=C==="all"||e.type==="human"&&e.department===C,K=f==="all"||e.status===f;return o&&l&&K}),G=h.filter(e=>e.type==="human"),W=h.filter(e=>e.type==="digital"),J=()=>{i("typeSelection")},T=e=>{e.type==="digital"&&(v(e),i("form")),console.log("Editing colleague:",e),O?.(e)},k=e=>{e.type==="digital"&&(w(e),i("view"))},de=e=>{let o={id:`human-${Date.now()}`,type:"human",name:e.name,email:e.email,role:e.role,department:e.department,phone:e.phone,location:e.location,timezone:e.timezone,skills:e.skills||[],bio:e.bio,status:"active",joinedDate:new Date,lastActive:new Date};m(l=>[...l,o]),b?.(o),i("main")},me=e=>{if(!e||!e.id){console.error("Invalid cloned colleague provided to handleDigitalColleagueClone:",e);return}m(o=>[...o,e]),b?.(e),i("main")},ce=()=>{v(null),i("form")},Q=e=>{if(!e||!e.id){console.error("Invalid colleague provided to handleSaveColleague:",e);return}q?(m(o=>o.map(l=>l.id===e.id?e:l)),O?.(e)):(m(o=>[...o,e]),b?.(e)),i("main"),v(null)},ge=()=>{i("main"),v(null),w(null)},ue=()=>{i("main"),w(null)},Ae=()=>{A&&(v(A),w(null),i("form"))},E=e=>{console.log("handling delete colleague",e),m(o=>o.filter(l=>l.id!==e)),ie?.(e)},pe=()=>{P(""),B("all"),M("all")},R=()=>{let e=[];return z.forEach(l=>{l.knowledge&&Array.isArray(l.knowledge)&&e.push(...l.knowledge),l.coreKnowledge&&Array.isArray(l.coreKnowledge)&&e.push(...l.coreKnowledge)}),n.forEach(l=>{l.type==="digital"&&(l.knowledge&&Array.isArray(l.knowledge)&&e.push(...l.knowledge),l.coreKnowledge&&Array.isArray(l.coreKnowledge)&&e.push(...l.coreKnowledge))}),e.filter((l,K,Ce)=>K===Ce.findIndex(fe=>fe.id===l.id))};return c==="typeSelection"?t(_,{onSelectHuman:()=>i("userSelection"),onSelectDigital:()=>i("digitalOptions"),onCancel:()=>i("main")}):c==="userSelection"?t(le,{users:re,onUserSelect:de,onCancel:()=>i("typeSelection")}):c==="digitalOptions"?t(te,{onCloneExisting:()=>i("digitalClone"),onCreateNew:ce,onCancel:()=>i("typeSelection")}):c==="digitalClone"?t(ee,{digitalColleagues:z,onColleagueClone:me,onCancel:()=>i("digitalOptions")}):c==="form"?t(F,{colleague:q||void 0,onSave:Q,onCancel:ge,availableKnowledgeDocuments:R()}):c==="view"?t(F,{colleague:A||void 0,onSave:Q,onCancel:ue,readOnly:!0,availableKnowledgeDocuments:R()}):t("div",{className:"px-2 md:px-4 py-4 space-y-8",children:t(Se,{mode:"wait",children:t(Ne.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:a("div",{className:`space-y-6 ${ne||""}`,children:[t(Y,{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:J}}),a("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[a(u,{children:[a(x,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t(D,{className:"text-sm font-medium",children:"Total Colleagues"}),t(ae,{className:"h-4 w-4 text-muted-foreground"})]}),a(p,{children:[t("div",{className:"text-2xl font-bold",children:n.length}),a("p",{className:"text-xs text-muted-foreground",children:[n.filter(e=>e.status==="active").length," active"]})]})]}),a(u,{children:[a(x,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t(D,{className:"text-sm font-medium",children:"Human Members"}),t(xe,{className:"h-4 w-4 text-muted-foreground"})]}),a(p,{children:[t("div",{className:"text-2xl font-bold",children:n.filter(e=>e.type==="human").length}),a("p",{className:"text-xs text-muted-foreground",children:[n.filter(e=>e.type==="human"&&e.status==="active").length," ","active"]})]})]}),a(u,{children:[a(x,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t(D,{className:"text-sm font-medium",children:"Digital Colleagues"}),t(we,{className:"h-4 w-4 text-muted-foreground"})]}),a(p,{children:[t("div",{className:"text-2xl font-bold",children:n.filter(e=>e.type==="digital").length}),a("p",{className:"text-xs text-muted-foreground",children:[n.filter(e=>e.type==="digital"&&e.status==="active").length," ","active"]})]})]})]}),t(u,{children:t(p,{className:"pt-6",children:a("div",{className:"flex flex-col md:flex-row gap-4",children:[t("div",{className:"flex-1",children:a("div",{className:"relative",children:[t(ye,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),t(X,{placeholder:"Search colleagues...",value:r,onChange:e=>P(e.target.value),className:"pl-9"})]})}),a(H,{value:C,onValueChange:B,children:[t(U,{className:"w-full md:w-[180px]",children:t(I,{placeholder:"Department"})}),a($,{children:[t(g,{value:"all",children:"All Departments"}),oe.map(e=>t(g,{value:e,children:e},e))]})]}),a(H,{value:f,onValueChange:M,children:[t(U,{className:"w-full md:w-[140px]",children:t(I,{placeholder:"Status"})}),a($,{children:[t(g,{value:"all",children:"All Status"}),t(g,{value:"active",children:"Active"}),t(g,{value:"inactive",children:"Inactive"})]})]}),(r||C!=="all"||f!=="all")&&a(V,{variant:"outline",onClick:pe,className:"gap-2",children:[t(De,{className:"h-4 w-4"}),"Clear"]})]})})}),a("div",{className:"space-y-4",children:[t(Z,{activeTab:y,onTabChange:se,tabOptions:[{value:"all",label:`All (${h.length})`},{value:"human",label:`Human (${G.length})`},{value:"digital",label:`Digital (${W.length})`}],maxWidth:"400px",gridCols:3}),y==="all"&&t("div",{className:`grid gap-4 ${d?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:h.map(e=>t(N,{colleague:e,onEdit:T,onDelete:E,onViewDetails:k,compact:d},`${e}-${e.id}`))}),y==="human"&&t("div",{className:`grid gap-4 ${d?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:G.map(e=>t(N,{colleague:e,onEdit:T,onDelete:E,onViewDetails:k,compact:d},e.id))}),y==="digital"&&t("div",{className:`grid gap-4 ${d?"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=>t(N,{colleague:e,onEdit:T,onDelete:E,onViewDetails:k,compact:d},e.id))})]}),h.length===0&&t(u,{children:t(p,{className:"pt-6",children:a("div",{className:"text-center py-8",children:[t(ae,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),t("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),t("p",{className:"text-muted-foreground mb-4",children:r||C!=="all"||f!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first colleague."}),a(V,{onClick:J,className:"gap-2",children:[t(he,{className:"h-4 w-4"}),"Add Colleague"]})]})})})]})},"projects-index-view")})})}export{be as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as S,b as w}from"./chunk-MXCW6SOT.mjs";import{a as k}from"./chunk-5SHZBJ5R.mjs";import{a as C}from"./chunk-I2GNNRFH.mjs";import{a as g}from"./chunk-MZP7RIQZ.mjs";import{a as v}from"./chunk-HKGW6JI2.mjs";import{a as u}from"./chunk-255P6K5W.mjs";import{a as f}from"./chunk-YKG4FNS4.mjs";import{c as m,f as p}from"./chunk-N3B3XNV3.mjs";import{a as d}from"./chunk-2BR55L74.mjs";import{a as
|
|
4
|
+
import{a as S,b as w}from"./chunk-MXCW6SOT.mjs";import{a as k}from"./chunk-5SHZBJ5R.mjs";import{a as C}from"./chunk-I2GNNRFH.mjs";import{a as g}from"./chunk-MZP7RIQZ.mjs";import{a as v}from"./chunk-HKGW6JI2.mjs";import{a as u}from"./chunk-255P6K5W.mjs";import{a as f}from"./chunk-YKG4FNS4.mjs";import{c as m,f as p}from"./chunk-N3B3XNV3.mjs";import{a as d}from"./chunk-2BR55L74.mjs";import{a as N}from"./chunk-CLGBBNRB.mjs";import{a as s}from"./chunk-7WIO2CIC.mjs";import{a as x}from"./chunk-6C4WESLL.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};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{a as t}from"./chunk-MDJREBVI.mjs";import*as o from"react";import*as e from"@radix-ui/react-switch";import{jsx as i}from"react/jsx-runtime";var n=o.forwardRef(({className:r,...s},a)=>i(e.Root,{className:t("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",r),...s,ref:a,children:i(e.Thumb,{className:t("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));n.displayName=e.Root.displayName;export{n as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as E,f as T}from"./chunk-D4IMQTVU.mjs";import{a as C}from"./chunk-7GSXNSLD.mjs";import{a as N}from"./chunk-4UIARERB.mjs";import{a as M}from"./chunk-L5JPAKPM.mjs";import{a as L,b as I,c as H,d as k}from"./chunk-KY7WQYN4.mjs";import{b as _}from"./chunk-ZUA4KNIR.mjs";import{a as n}from"./chunk-MDJREBVI.mjs";import{a as P}from"./chunk-FRWX5YES.mjs";import*as o from"react";import{Slot as g}from"@radix-ui/react-slot";import{cva as A}from"class-variance-authority";import{PanelLeft as O}from"lucide-react";import{jsx as r,jsxs as S}from"react/jsx-runtime";var G="sidebar:state",K=60*60*24*7,V="16rem",$="18rem",U="3rem",W="b",B=o.createContext(null);function w(){let a=o.useContext(B);if(!a)throw new Error("useSidebar must be used within a SidebarProvider.");return a}var j=o.forwardRef(({defaultOpen:a=!0,open:e,onOpenChange:t,className:i,style:d,children:s,...p},m)=>{let c=P(),[u,b]=o.useState(!1),[v,D]=o.useState(a),f=e??v,h=o.useCallback(l=>{if(t)return t?.(typeof l=="function"?l(f):l);D(l),document.cookie=`${G}=${f}; path=/; max-age=${K}`},[t,f]),x=o.useCallback(()=>c?b(l=>!l):h(l=>!l),[c,h,b]);o.useEffect(()=>{let l=R=>{R.key===W&&(R.metaKey||R.ctrlKey)&&(R.preventDefault(),x())};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[x]);let y=f?"expanded":"collapsed",z=o.useMemo(()=>({state:y,open:f,setOpen:h,isMobile:c,openMobile:u,setOpenMobile:b,toggleSidebar:x}),[y,f,h,c,u,b,x]);return r(B.Provider,{value:z,children:r(L,{delayDuration:0,children:r("div",{style:{"--sidebar-width":V,"--sidebar-width-icon":U,...d},className:n("group/sidebar-wrapper flex w-full has-[[data-variant=inset]]:bg-sidebar",i),ref:m,...p,children:s})})})});j.displayName="SidebarProvider";var q=o.forwardRef(({side:a="left",variant:e="sidebar",collapsible:t="offcanvas",className:i,children:d,...s},p)=>{let{isMobile:m,state:c,openMobile:u,setOpenMobile:b}=w();return t==="none"?r("div",{className:n("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",i),ref:p,...s,children:d}):m?r(E,{open:u,onOpenChange:b,...s,children:r(T,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":$},side:a,children:r("div",{className:"flex h-full w-full flex-col",children:d})})}):S("div",{ref:p,className:"group peer hidden md:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?t:"","data-variant":e,"data-side":a,children:[r("div",{className:n("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),r("div",{className:n("duration-200 fixed top-14 bottom-0 z-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",a==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",i),...s,children:r("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:d})})]})});q.displayName="Sidebar";var F=o.forwardRef(({className:a,onClick:e,...t},i)=>{let{toggleSidebar:d}=w();return S(_,{ref:i,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:n("h-7 w-7",a),onClick:s=>{e?.(s),d()},...t,children:[r(O,{}),r("span",{className:"sr-only",children:"Toggle Sidebar"})]})});F.displayName="SidebarTrigger";var X=o.forwardRef(({className:a,...e},t)=>{let{toggleSidebar:i}=w();return r("button",{ref:t,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:i,title:"Toggle Sidebar",className:n("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",a),...e})});X.displayName="SidebarRail";var Y=o.forwardRef(({className:a,...e},t)=>r("main",{ref:t,className:n("flex flex-1 flex-col bg-background overflow-y-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",a),...e}));Y.displayName="SidebarInset";var J=o.forwardRef(({className:a,...e},t)=>r(M,{ref:t,"data-sidebar":"input",className:n("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",a),...e}));J.displayName="SidebarInput";var Q=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"header",className:n("flex flex-col gap-2 p-2",a),...e}));Q.displayName="SidebarHeader";var Z=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"footer",className:n("flex flex-col gap-2 p-2",a),...e}));Z.displayName="SidebarFooter";var ee=o.forwardRef(({className:a,...e},t)=>r(N,{ref:t,"data-sidebar":"separator",className:n("mx-2 w-auto bg-sidebar-border",a),...e}));ee.displayName="SidebarSeparator";var ae=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"content",className:n("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",a),...e}));ae.displayName="SidebarContent";var te=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"group",className:n("relative flex w-full min-w-0 flex-col p-2",a),...e}));te.displayName="SidebarGroup";var oe=o.forwardRef(({className:a,asChild:e=!1,...t},i)=>r(e?g:"div",{ref:i,"data-sidebar":"group-label",className:n("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",a),...t}));oe.displayName="SidebarGroupLabel";var re=o.forwardRef(({className:a,asChild:e=!1,...t},i)=>r(e?g:"button",{ref:i,"data-sidebar":"group-action",className:n("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",a),...t}));re.displayName="SidebarGroupAction";var ne=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"group-content",className:n("w-full text-sm",a),...e}));ne.displayName="SidebarGroupContent";var ie=o.forwardRef(({className:a,...e},t)=>r("ul",{ref:t,"data-sidebar":"menu",className:n("flex w-full min-w-0 flex-col gap-1",a),...e}));ie.displayName="SidebarMenu";var de=o.forwardRef(({className:a,...e},t)=>r("li",{ref:t,"data-sidebar":"menu-item",className:n("group/menu-item relative",a),...e}));de.displayName="SidebarMenuItem";var se=A("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),le=o.forwardRef(({asChild:a=!1,isActive:e=!1,variant:t="default",size:i="default",tooltip:d,className:s,...p},m)=>{let c=a?g:"button",{isMobile:u,state:b}=w(),v=r(c,{ref:m,"data-sidebar":"menu-button","data-size":i,"data-active":e,className:n(se({variant:t,size:i}),s),...p});return d?(typeof d=="string"&&(d={children:d}),S(I,{children:[r(H,{asChild:!0,children:v}),r(k,{side:"right",align:"center",hidden:b!=="collapsed"||u,...d})]})):v});le.displayName="SidebarMenuButton";var ce=o.forwardRef(({className:a,asChild:e=!1,showOnHover:t=!1,...i},d)=>r(e?g:"button",{ref:d,"data-sidebar":"menu-action",className:n("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",a),...i}));ce.displayName="SidebarMenuAction";var be=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"menu-badge",className:n("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a),...e}));be.displayName="SidebarMenuBadge";var pe=o.forwardRef(({className:a,showIcon:e=!1,...t},i)=>{let d=o.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return S("div",{ref:i,"data-sidebar":"menu-skeleton",className:n("rounded-md h-8 flex gap-2 px-2 items-center",a),...t,children:[e&&r(C,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),r(C,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":d}})]})});pe.displayName="SidebarMenuSkeleton";var ue=o.forwardRef(({className:a,...e},t)=>r("ul",{ref:t,"data-sidebar":"menu-sub",className:n("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",a),...e}));ue.displayName="SidebarMenuSub";var fe=o.forwardRef(({...a},e)=>r("li",{ref:e,...a}));fe.displayName="SidebarMenuSubItem";var me=o.forwardRef(({asChild:a=!1,size:e="md",isActive:t,className:i,...d},s)=>r(a?g:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":e,"data-active":t,className:n("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",e==="sm"&&"text-xs",e==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",i),...d}));me.displayName="SidebarMenuSubButton";export{w as a,j as b,q as c,F as d,X as e,Y as f,J as g,Q as h,Z as i,ee as j,ae as k,te as l,oe as m,re as n,ne as o,ie as p,de as q,le as r,ce as s,be as t,pe as u,ue as v,fe as w,me as x};
|
|
4
|
+
import{a as N}from"./chunk-4UIARERB.mjs";import{a as E,f as T}from"./chunk-D4IMQTVU.mjs";import{a as C}from"./chunk-7GSXNSLD.mjs";import{a as M}from"./chunk-L5JPAKPM.mjs";import{a as L,b as I,c as H,d as k}from"./chunk-KY7WQYN4.mjs";import{b as _}from"./chunk-ZUA4KNIR.mjs";import{a as n}from"./chunk-MDJREBVI.mjs";import{a as P}from"./chunk-FRWX5YES.mjs";import*as o from"react";import{Slot as g}from"@radix-ui/react-slot";import{cva as A}from"class-variance-authority";import{PanelLeft as O}from"lucide-react";import{jsx as r,jsxs as S}from"react/jsx-runtime";var G="sidebar:state",K=60*60*24*7,V="16rem",$="18rem",U="3rem",W="b",B=o.createContext(null);function w(){let a=o.useContext(B);if(!a)throw new Error("useSidebar must be used within a SidebarProvider.");return a}var j=o.forwardRef(({defaultOpen:a=!0,open:e,onOpenChange:t,className:i,style:d,children:s,...p},m)=>{let c=P(),[u,b]=o.useState(!1),[v,D]=o.useState(a),f=e??v,h=o.useCallback(l=>{if(t)return t?.(typeof l=="function"?l(f):l);D(l),document.cookie=`${G}=${f}; path=/; max-age=${K}`},[t,f]),x=o.useCallback(()=>c?b(l=>!l):h(l=>!l),[c,h,b]);o.useEffect(()=>{let l=R=>{R.key===W&&(R.metaKey||R.ctrlKey)&&(R.preventDefault(),x())};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[x]);let y=f?"expanded":"collapsed",z=o.useMemo(()=>({state:y,open:f,setOpen:h,isMobile:c,openMobile:u,setOpenMobile:b,toggleSidebar:x}),[y,f,h,c,u,b,x]);return r(B.Provider,{value:z,children:r(L,{delayDuration:0,children:r("div",{style:{"--sidebar-width":V,"--sidebar-width-icon":U,...d},className:n("group/sidebar-wrapper flex w-full has-[[data-variant=inset]]:bg-sidebar",i),ref:m,...p,children:s})})})});j.displayName="SidebarProvider";var q=o.forwardRef(({side:a="left",variant:e="sidebar",collapsible:t="offcanvas",className:i,children:d,...s},p)=>{let{isMobile:m,state:c,openMobile:u,setOpenMobile:b}=w();return t==="none"?r("div",{className:n("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",i),ref:p,...s,children:d}):m?r(E,{open:u,onOpenChange:b,...s,children:r(T,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":$},side:a,children:r("div",{className:"flex h-full w-full flex-col",children:d})})}):S("div",{ref:p,className:"group peer hidden md:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?t:"","data-variant":e,"data-side":a,children:[r("div",{className:n("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),r("div",{className:n("duration-200 fixed top-14 bottom-0 z-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",a==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",i),...s,children:r("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:d})})]})});q.displayName="Sidebar";var F=o.forwardRef(({className:a,onClick:e,...t},i)=>{let{toggleSidebar:d}=w();return S(_,{ref:i,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:n("h-7 w-7",a),onClick:s=>{e?.(s),d()},...t,children:[r(O,{}),r("span",{className:"sr-only",children:"Toggle Sidebar"})]})});F.displayName="SidebarTrigger";var X=o.forwardRef(({className:a,...e},t)=>{let{toggleSidebar:i}=w();return r("button",{ref:t,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:i,title:"Toggle Sidebar",className:n("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",a),...e})});X.displayName="SidebarRail";var Y=o.forwardRef(({className:a,...e},t)=>r("main",{ref:t,className:n("flex flex-1 flex-col bg-background overflow-y-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",a),...e}));Y.displayName="SidebarInset";var J=o.forwardRef(({className:a,...e},t)=>r(M,{ref:t,"data-sidebar":"input",className:n("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",a),...e}));J.displayName="SidebarInput";var Q=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"header",className:n("flex flex-col gap-2 p-2",a),...e}));Q.displayName="SidebarHeader";var Z=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"footer",className:n("flex flex-col gap-2 p-2",a),...e}));Z.displayName="SidebarFooter";var ee=o.forwardRef(({className:a,...e},t)=>r(N,{ref:t,"data-sidebar":"separator",className:n("mx-2 w-auto bg-sidebar-border",a),...e}));ee.displayName="SidebarSeparator";var ae=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"content",className:n("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",a),...e}));ae.displayName="SidebarContent";var te=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"group",className:n("relative flex w-full min-w-0 flex-col p-2",a),...e}));te.displayName="SidebarGroup";var oe=o.forwardRef(({className:a,asChild:e=!1,...t},i)=>r(e?g:"div",{ref:i,"data-sidebar":"group-label",className:n("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",a),...t}));oe.displayName="SidebarGroupLabel";var re=o.forwardRef(({className:a,asChild:e=!1,...t},i)=>r(e?g:"button",{ref:i,"data-sidebar":"group-action",className:n("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",a),...t}));re.displayName="SidebarGroupAction";var ne=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"group-content",className:n("w-full text-sm",a),...e}));ne.displayName="SidebarGroupContent";var ie=o.forwardRef(({className:a,...e},t)=>r("ul",{ref:t,"data-sidebar":"menu",className:n("flex w-full min-w-0 flex-col gap-1",a),...e}));ie.displayName="SidebarMenu";var de=o.forwardRef(({className:a,...e},t)=>r("li",{ref:t,"data-sidebar":"menu-item",className:n("group/menu-item relative",a),...e}));de.displayName="SidebarMenuItem";var se=A("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),le=o.forwardRef(({asChild:a=!1,isActive:e=!1,variant:t="default",size:i="default",tooltip:d,className:s,...p},m)=>{let c=a?g:"button",{isMobile:u,state:b}=w(),v=r(c,{ref:m,"data-sidebar":"menu-button","data-size":i,"data-active":e,className:n(se({variant:t,size:i}),s),...p});return d?(typeof d=="string"&&(d={children:d}),S(I,{children:[r(H,{asChild:!0,children:v}),r(k,{side:"right",align:"center",hidden:b!=="collapsed"||u,...d})]})):v});le.displayName="SidebarMenuButton";var ce=o.forwardRef(({className:a,asChild:e=!1,showOnHover:t=!1,...i},d)=>r(e?g:"button",{ref:d,"data-sidebar":"menu-action",className:n("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",a),...i}));ce.displayName="SidebarMenuAction";var be=o.forwardRef(({className:a,...e},t)=>r("div",{ref:t,"data-sidebar":"menu-badge",className:n("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a),...e}));be.displayName="SidebarMenuBadge";var pe=o.forwardRef(({className:a,showIcon:e=!1,...t},i)=>{let d=o.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return S("div",{ref:i,"data-sidebar":"menu-skeleton",className:n("rounded-md h-8 flex gap-2 px-2 items-center",a),...t,children:[e&&r(C,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),r(C,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":d}})]})});pe.displayName="SidebarMenuSkeleton";var ue=o.forwardRef(({className:a,...e},t)=>r("ul",{ref:t,"data-sidebar":"menu-sub",className:n("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",a),...e}));ue.displayName="SidebarMenuSub";var fe=o.forwardRef(({...a},e)=>r("li",{ref:e,...a}));fe.displayName="SidebarMenuSubItem";var me=o.forwardRef(({asChild:a=!1,size:e="md",isActive:t,className:i,...d},s)=>r(a?g:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":e,"data-active":t,className:n("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",e==="sm"&&"text-xs",e==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",i),...d}));me.displayName="SidebarMenuSubButton";export{w as a,j as b,q as c,F as d,X as e,Y as f,J as g,Q as h,Z as i,ee as j,ae as k,te as l,oe as m,re as n,ne as o,ie as p,de as q,le as r,ce as s,be as t,pe as u,ue as v,fe as w,me as x};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as q}from"./chunk-Z22NSJMF.mjs";import{a as S,c as w,d as R,g as I,i as o}from"./chunk-YFAZQYK4.mjs";import{a as M}from"./chunk-B4H6T2GP.mjs";import{a as c}from"./chunk-TVZOULLL.mjs";import{a as F,f as L,g as P,i as A}from"./chunk-3UMMMQEH.mjs";import{a as f}from"./chunk-L5JPAKPM.mjs";import{b as N}from"./chunk-ZUA4KNIR.mjs";import{b as U}from"./chunk-CSBGSBEU.mjs";import{a as T,e as H}from"./chunk-YO3GQYRJ.mjs";import{useEffect as W,useState as D}from"react";import{Plus as Y,Clock as K,Calendar as G,User as J,Repeat as Q,Edit2 as X,Trash2 as Z,CheckCircle as _,Circle as ee,Bell as te}from"lucide-react";import{Fragment as ce,jsx as e,jsxs as t}from"react/jsx-runtime";var ae=i=>{switch(i){case"high":return"\u{1F534}";case"medium":return"\u{1F7E1}";case"low":return"\u{1F7E2}";default:return"\u26AA"}},ie=i=>i.toLocaleDateString("en-US",{weekday:"short",year:"numeric",month:"short",day:"numeric"}),re=i=>{let[u,v]=i.split(":"),g=new Date;return g.setHours(parseInt(u),parseInt(v)),g.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0})},B=(i,u)=>{let v=new Date,g=new Date(i);if(u){let[l,a]=u.split(":");g.setHours(parseInt(l),parseInt(a))}return g<v},O=i=>{let u=new Date;return i.toDateString()===u.toDateString()},le=i=>{let u=new Date;return u.setDate(u.getDate()+1),i.toDateString()===u.toDateString()},ne=({colleagues:i,onAddReminder:u,open:v,setOpen:g})=>{let[l,a]=D({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""}),[s,p]=D(!1),h=d=>{d.preventDefault();let y=i.find(k=>k?.id.toString()===l.colleagueId.toString());if(!y){console.error("No valid colleague selected"),p(!0);return}p(!1);let E={title:l.title,description:l.description,dueDate:new Date(l.dueDate),dueTime:l.dueTime||void 0,colleague:y,isCompleted:!1,isRecurring:l.isRecurring,recurrencePattern:l.isRecurring?l.recurrencePattern:void 0,recurrenceInterval:l.isRecurring?l.recurrenceInterval:void 0,priority:l.priority,reminderEnabled:l.reminderEnabled,reminderMinutes:l.reminderEnabled?l.reminderMinutes:void 0,tags:l.tags?l.tags.split(",").map(k=>k.trim()):void 0};u(E),g(!1),a({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""})};W(()=>{l.colleagueId&&p(!1)},[l.colleagueId]);let n=i.filter(Boolean);return e(F,{open:v,onOpenChange:g,children:t(L,{className:"max-w-2xl",children:[e(P,{children:e(A,{children:"Add New Reminder"})}),t("form",{onSubmit:h,className:"space-y-4",children:[e("div",{className:"grid grid-cols-2 gap-4",children:t("div",{children:[e(c,{htmlFor:"title",children:"Title"}),e(f,{id:"title",value:l.title,onChange:d=>a({...l,title:d.target.value}),placeholder:"Enter reminder title",required:!0})]})}),t("div",{children:[e(c,{htmlFor:"description",children:"Description"}),e(M,{id:"description",value:l.description,onChange:d=>a({...l,description:d.target.value}),placeholder:"Enter reminder description",rows:3})]}),t("div",{className:"grid grid-cols-2 gap-4",children:[t("div",{children:[e(c,{htmlFor:"dueDate",children:"Due Date"}),e(f,{id:"dueDate",type:"date",value:l.dueDate,onChange:d=>a({...l,dueDate:d.target.value}),required:!0})]}),t("div",{children:[e(c,{htmlFor:"dueTime",children:"Due Time (optional)"}),e(f,{id:"dueTime",type:"time",value:l.dueTime,onChange:d=>a({...l,dueTime:d.target.value})})]})]}),t("div",{children:[e(c,{className:`${s?"text-destructive":""}`,htmlFor:"colleague",children:"Assigned Colleague"}),t(S,{value:l.colleagueId,onValueChange:d=>{a({...l,colleagueId:d})},required:!0,children:[e(R,{className:`${s?"text-destructive border-red-500":""}`,children:e(w,{className:`${s?"text-destructive border-red-500":""}`,placeholder:"Select a digital colleague",children:i.find(d=>d?.id.toString()===l.colleagueId.toString())?.name||"Select a digital colleague"})}),e(I,{children:n.map(d=>e(o,{value:d.id,children:d.name},d.id))})]}),s&&e("p",{className:"text-destructive text-sm",children:"Please select a digital colleague"})]}),t("div",{className:"space-y-2",children:[t("div",{className:"flex items-center space-x-2",children:[e("input",{type:"checkbox",id:"isRecurring",checked:l.isRecurring,onChange:d=>a({...l,isRecurring:d.target.checked}),className:"rounded border-border"}),e(c,{htmlFor:"isRecurring",children:"Make this a recurring reminder"})]}),l.isRecurring&&t("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[t("div",{children:[e(c,{htmlFor:"recurrencePattern",children:"Frequency"}),t(S,{value:l.recurrencePattern,onValueChange:d=>a({...l,recurrencePattern:d}),children:[e(R,{children:e(w,{})}),t(I,{children:[e(o,{value:"daily",children:"Daily"}),e(o,{value:"weekly",children:"Weekly"}),e(o,{value:"monthly",children:"Monthly"}),e(o,{value:"yearly",children:"Yearly"})]})]})]}),t("div",{children:[e(c,{htmlFor:"recurrenceInterval",children:"Every"}),e(f,{id:"recurrenceInterval",type:"number",min:"1",value:l.recurrenceInterval,onChange:d=>a({...l,recurrenceInterval:parseInt(d.target.value)})})]})]})]}),t("div",{className:"flex justify-end space-x-2",children:[e(N,{type:"button",variant:"outline",onClick:()=>g(!1),children:"Cancel"}),e(N,{type:"submit",children:"Add Reminder"})]})]})]})})},de=({reminder:i,colleagues:u,onUpdateReminder:v,open:g,onClose:l})=>{let[a,s]=D({title:i.title,description:i.description,dueDate:i.dueDate.toISOString().split("T")[0],dueTime:i.dueTime||"",colleagueId:i.colleague?.id||"",priority:i.priority,isRecurring:i.isRecurring,recurrencePattern:i.recurrencePattern||"weekly",recurrenceInterval:i.recurrenceInterval||1,reminderEnabled:i.reminderEnabled,reminderMinutes:i.reminderMinutes||15,tags:i.tags?.join(", ")||""}),p=n=>{n.preventDefault();let d=u.find(y=>y?.id===a.colleagueId);if(!d){console.error("No valid colleague selected");return}v(i.id,{title:a.title,description:a.description,dueDate:new Date(a.dueDate),dueTime:a.dueTime||void 0,colleague:d,priority:a.priority,isRecurring:a.isRecurring,recurrencePattern:a.isRecurring?a.recurrencePattern:void 0,recurrenceInterval:a.isRecurring?a.recurrenceInterval:void 0,reminderEnabled:a.reminderEnabled,reminderMinutes:a.reminderEnabled?a.reminderMinutes:void 0,tags:a.tags?a.tags.split(",").map(y=>y.trim()):void 0}),l()},h=u.filter(Boolean);return e(F,{open:g,onOpenChange:l,children:t(L,{className:"max-w-2xl",children:[e(P,{children:e(A,{children:"Edit Reminder"})}),t("form",{onSubmit:p,className:"space-y-4",children:[t("div",{className:"grid grid-cols-2 gap-4",children:[t("div",{children:[e(c,{htmlFor:"edit-title",children:"Title"}),e(f,{id:"edit-title",value:a.title,onChange:n=>s({...a,title:n.target.value}),placeholder:"Enter reminder title",required:!0})]}),t("div",{children:[e(c,{htmlFor:"edit-priority",children:"Priority"}),t(S,{value:a.priority,onValueChange:n=>s({...a,priority:n}),children:[e(R,{children:e(w,{})}),t(I,{children:[e(o,{value:"low",children:"\u{1F7E2} Low"}),e(o,{value:"medium",children:"\u{1F7E1} Medium"}),e(o,{value:"high",children:"\u{1F534} High"})]})]})]})]}),t("div",{children:[e(c,{htmlFor:"edit-description",children:"Description"}),e(M,{id:"edit-description",value:a.description,onChange:n=>s({...a,description:n.target.value}),placeholder:"Enter reminder description",rows:3})]}),t("div",{className:"grid grid-cols-2 gap-4",children:[t("div",{children:[e(c,{htmlFor:"edit-dueDate",children:"Due Date"}),e(f,{id:"edit-dueDate",type:"date",value:a.dueDate,onChange:n=>s({...a,dueDate:n.target.value}),required:!0})]}),t("div",{children:[e(c,{htmlFor:"edit-dueTime",children:"Due Time (optional)"}),e(f,{id:"edit-dueTime",type:"time",value:a.dueTime,onChange:n=>s({...a,dueTime:n.target.value})})]})]}),t("div",{children:[e(c,{htmlFor:"edit-colleague",children:"Assigned Colleague"}),t(S,{value:a.colleagueId,onValueChange:n=>s({...a,colleagueId:n}),required:!0,children:[e(R,{children:e(w,{placeholder:"Select a digital colleague"})}),e(I,{children:h.map(n=>e(o,{value:n.id,children:n.name},n.id))})]})]}),t("div",{className:"space-y-2",children:[t("div",{className:"flex items-center space-x-2",children:[e("input",{type:"checkbox",id:"edit-isRecurring",checked:a.isRecurring,onChange:n=>s({...a,isRecurring:n.target.checked}),className:"rounded border-border"}),e(c,{htmlFor:"edit-isRecurring",children:"Make this a recurring reminder"})]}),a.isRecurring&&t("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[t("div",{children:[e(c,{htmlFor:"edit-recurrencePattern",children:"Frequency"}),t(S,{value:a.recurrencePattern,onValueChange:n=>s({...a,recurrencePattern:n}),children:[e(R,{children:e(w,{})}),t(I,{children:[e(o,{value:"daily",children:"Daily"}),e(o,{value:"weekly",children:"Weekly"}),e(o,{value:"monthly",children:"Monthly"}),e(o,{value:"yearly",children:"Yearly"})]})]})]}),t("div",{children:[e(c,{htmlFor:"edit-recurrenceInterval",children:"Every"}),e(f,{id:"edit-recurrenceInterval",type:"number",min:"1",value:a.recurrenceInterval,onChange:n=>s({...a,recurrenceInterval:parseInt(n.target.value)})})]})]})]}),t("div",{className:"space-y-2",children:[t("div",{className:"flex items-center space-x-2",children:[e("input",{type:"checkbox",id:"edit-reminderEnabled",checked:a.reminderEnabled,onChange:n=>s({...a,reminderEnabled:n.target.checked}),className:"rounded border-border"}),e(c,{htmlFor:"edit-reminderEnabled",children:"Enable reminder notifications"})]}),a.reminderEnabled&&t("div",{className:"pl-6",children:[e(c,{htmlFor:"edit-reminderMinutes",children:"Remind me"}),t(S,{value:a.reminderMinutes.toString(),onValueChange:n=>s({...a,reminderMinutes:parseInt(n)}),children:[e(R,{children:e(w,{})}),t(I,{children:[e(o,{value:"5",children:"5 minutes before"}),e(o,{value:"15",children:"15 minutes before"}),e(o,{value:"30",children:"30 minutes before"}),e(o,{value:"60",children:"1 hour before"}),e(o,{value:"1440",children:"1 day before"})]})]})]})]}),t("div",{children:[e(c,{htmlFor:"edit-tags",children:"Tags (comma-separated)"}),e(f,{id:"edit-tags",value:a.tags,onChange:n=>s({...a,tags:n.target.value}),placeholder:"e.g., urgent, meeting, follow-up"})]}),t("div",{className:"flex justify-end space-x-2",children:[e(N,{type:"button",variant:"outline",onClick:l,children:"Cancel"}),e(N,{type:"submit",children:"Save Changes"})]})]})]})})},se=({reminder:i,colleagues:u,onUpdateReminder:v,onDeleteReminder:g})=>{let[l,a]=D(!1);if(!i||!i.id)return null;let s=B(i.dueDate,i.dueTime),p=O(i.dueDate),h=le(i.dueDate),n=()=>{v(i.id,{isCompleted:!i.isCompleted,completedAt:i.isCompleted?void 0:new Date})},d=()=>p?"Today":h?"Tomorrow":s&&!i.isCompleted?"Overdue":ie(i.dueDate);return t(ce,{children:[e(de,{reminder:i,colleagues:u,onUpdateReminder:v,open:l,onClose:()=>a(!1)}),e(T,{className:`transition-all duration-200 ${i.isCompleted?"opacity-60":""} ${s&&!i.isCompleted?"border-destructive/50 bg-destructive/5":""}`,children:e(H,{className:"p-4",children:t("div",{className:"flex items-start justify-between",children:[t("div",{className:"flex items-start space-x-3 flex-1",children:[e("button",{onClick:n,className:"mt-1 text-primary hover:text-primary/80",children:i.isCompleted?e(_,{className:"h-5 w-5"}):e(ee,{className:"h-5 w-5"})}),t("div",{className:"flex-1",children:[t("div",{className:"flex items-center space-x-2 mb-1",children:[e("h3",{className:`font-semibold ${i.isCompleted?"line-through text-muted-foreground":""}`,children:i.title}),e("span",{className:"text-sm",children:ae(i.priority)}),i.isRecurring&&e(Q,{className:"h-4 w-4 text-primary"}),i.reminderEnabled&&e(te,{className:"h-4 w-4 text-success"})]}),e("p",{className:"text-sm text-muted-foreground mb-2",children:i.description}),t("div",{className:"flex items-center space-x-4 text-sm text-muted-foreground",children:[t("div",{className:"flex items-center space-x-1",children:[e(G,{className:"h-4 w-4"}),e("span",{className:s&&!i.isCompleted?"text-destructive font-medium":"",children:d()})]}),i.dueTime&&t("div",{className:"flex items-center space-x-1",children:[e(K,{className:"h-4 w-4"}),e("span",{children:re(i.dueTime)})]}),t("div",{className:"flex items-center space-x-1",children:[e(J,{className:"h-4 w-4"}),e("span",{children:i.colleague?.name||"Unknown Colleague"})]})]}),i.tags&&i.tags.length>0&&e("div",{className:"flex flex-wrap gap-1 mt-2",children:i.tags.map((y,E)=>e(U,{variant:"secondary",className:"text-xs",children:y},E))})]})]}),t("div",{className:"flex items-center space-x-1",children:[e(N,{variant:"ghost",size:"sm",onClick:()=>a(!0),className:"h-8 w-8 p-0",children:e(X,{className:"h-4 w-4"})}),e(N,{variant:"ghost",size:"sm",onClick:()=>g(i.id),className:"h-8 w-8 p-0 text-destructive hover:text-destructive/80",children:e(Z,{className:"h-4 w-4"})})]})]})})})]})},oe=({initialReminders:i=[],initialColleagues:u=[],onAddReminder:v,onUpdateReminder:g,onDeleteReminder:l})=>{let[a,s]=D(i.filter(Boolean)),[p]=D(u.filter(Boolean)),[h,n]=D("all"),[d,y]=D(""),[E,k]=D(!1),j=r=>{if(!r.title||!r.colleague?.id){console.error("Invalid reminder data:",r);return}let m={...r,id:Date.now().toString(),createdAt:new Date};s(x=>[...x,m]),v?.(r)},$=(r,m)=>{if(!r){console.error("No reminder ID provided for update");return}s(x=>x.map(b=>b?.id===r?{...b,...m}:b)),g?.(r,m)},z=r=>{if(!r){console.error("No reminder ID provided for deletion");return}s(m=>m.filter(x=>x?.id!==r)),l?.(r)},V=a.filter(r=>{if(!r)return!1;if(d){let m=d.toLowerCase();if(!(r.title.toLowerCase().includes(m)||r.description.toLowerCase().includes(m)||r.colleague?.name?.toLowerCase().includes(m)||r.tags?.some(b=>b.toLowerCase().includes(m))))return!1}switch(h){case"pending":return!r.isCompleted;case"completed":return r.isCompleted;case"overdue":return!r.isCompleted&&B(r.dueDate,r.dueTime);case"today":return O(new Date(r.dueDate));default:return!0}}).sort((r,m)=>{if(!r||!m)return 0;if(r.isCompleted&&!m.isCompleted)return 1;if(!r.isCompleted&&m.isCompleted)return-1;let x={high:3,medium:2,low:1},b=x[m.priority]-x[r.priority];return b!==0?b:r.dueDate.getTime()-m.dueDate.getTime()}),C={total:a.filter(Boolean).length,pending:a.filter(r=>r&&!r.isCompleted).length,completed:a.filter(r=>r&&r.isCompleted).length,overdue:a.filter(r=>r&&!r.isCompleted&&B(r.dueDate,r.dueTime)).length,today:a.filter(r=>r&&O(new Date(r.dueDate))).length},me=p.find(Boolean)||{id:"1",name:"Default Colleague",status:"active",joinedDate:new Date,lastActive:new Date,type:"digital",description:"Default digital colleague for task management",jobDescription:"Default team member for task management",workInstructions:"Handle basic task assignments and reminders",capabilities:["task-management","reminder-creation"],knowledge:[],coreKnowledge:[],version:"1.0.0",lastUpdated:new Date,isActive:!0};return t("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[e(q,{title:"Task Reminders",description:"Manage reminders and stay on top of important tasks and deadlines.",gradient:"bg-gradient-to-r from-emerald-600 via-teal-600 to-cyan-600",primaryAction:{label:"Add reminder",onClick:()=>{k(!0)}}}),t("div",{className:"h-full bg-background",children:[e(ne,{colleagues:p,onAddReminder:j,open:E,setOpen:k}),t("div",{className:"p-6",children:[t("div",{className:"flex items-center justify-between mb-6",children:[t("div",{children:[e("h1",{className:"text-2xl font-bold text-foreground",children:"Task Reminders"}),e("p",{className:"text-muted-foreground",children:"Manage your digital colleague task reminders"})]}),t(N,{className:"flex items-center space-x-2",onClick:()=>k(!0),children:[e(Y,{className:"h-4 w-4"}),e("span",{children:"Add Reminder"})]})]}),t("div",{className:"grid grid-cols-5 gap-4 mb-6",children:[t(T,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-foreground",children:C.total}),e("div",{className:"text-sm text-muted-foreground",children:"Total"})]}),t(T,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-primary",children:C.pending}),e("div",{className:"text-sm text-muted-foreground",children:"Pending"})]}),t(T,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-success",children:C.completed}),e("div",{className:"text-sm text-muted-foreground",children:"Completed"})]}),t(T,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-destructive",children:C.overdue}),e("div",{className:"text-sm text-muted-foreground",children:"Overdue"})]}),t(T,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-warning",children:C.today}),e("div",{className:"text-sm text-muted-foreground",children:"Today"})]})]}),t("div",{className:"flex items-center space-x-4 mb-6",children:[e("div",{className:"flex-1",children:e(f,{placeholder:"Search reminders...",value:d,onChange:r=>y(r.target.value),className:"max-w-md"})}),t(S,{value:h,onValueChange:r=>n(r),children:[e(R,{className:"w-40",children:e(w,{})}),t(I,{children:[t(o,{value:"all",children:["All (",C.total,")"]}),t(o,{value:"pending",children:["Pending (",C.pending,")"]}),t(o,{value:"completed",children:["Completed (",C.completed,")"]}),t(o,{value:"overdue",children:["Overdue (",C.overdue,")"]}),t(o,{value:"today",children:["Today (",C.today,")"]})]})]})]}),e("div",{className:"space-y-4",children:V.length===0?t(T,{className:"p-8 text-center",children:[e("div",{className:"text-muted-foreground",children:d||h!=="all"?"No reminders match your filters":"No reminders yet"}),!d&&h==="all"&&e("p",{className:"text-sm text-muted-foreground/60 mt-2",children:"Create your first reminder to get started"})]}):V.map(r=>r&&e(se,{reminder:r,colleagues:p,onUpdateReminder:$,onDeleteReminder:z},r.id))})]})]})]})},ke=oe;export{oe as a,ke as b};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
"use client"
|
|
4
4
|
|
|
5
|
-
"use strict";"use client";var dt=Object.create;var ce=Object.defineProperty;var pt=Object.getOwnPropertyDescriptor;var mt=Object.getOwnPropertyNames;var ut=Object.getPrototypeOf,ft=Object.prototype.hasOwnProperty;var gt=(e,t)=>{for(var o in t)ce(e,o,{get:t[o],enumerable:!0})},Le=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of mt(t))!ft.call(e,a)&&a!==o&&ce(e,a,{get:()=>t[a],enumerable:!(r=pt(t,a))||r.enumerable});return e};var B=(e,t,o)=>(o=e!=null?dt(ut(e)):{},Le(t||!e||!e.__esModule?ce(o,"default",{value:e,enumerable:!0}):o,e)),bt=e=>Le(ce({},"__esModule",{value:!0}),e);var no={};gt(no,{AppHeader:()=>ro});module.exports=bt(no);var Se=require("react"),F=require("motion/react"),$=require("lucide-react");var de=B(require("react")),W=B(require("@radix-ui/react-avatar"));var Fe=require("clsx");var ye="-",vt=e=>{let t=xt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let n=s.split(ye);return n[0]===""&&n.length!==1&&n.shift(),We(n,t)||ht(s)},getConflictingClassGroupIds:(s,n)=>{let g=o[s]||[];return n&&r[s]?[...g,...r[s]]:g}}},We=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),a=r?We(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;let i=e.join(ye);return t.validators.find(({validator:s})=>s(i))?.classGroupId},Ee=/^\[(.+)\]$/,ht=e=>{if(Ee.test(e)){let t=Ee.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},xt=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return wt(Object.entries(e.classGroups),o).forEach(([i,s])=>{xe(s,r,i,t)}),r},xe=(e,t,o,r)=>{e.forEach(a=>{if(typeof a=="string"){let i=a===""?t:Ge(t,a);i.classGroupId=o;return}if(typeof a=="function"){if(yt(a)){xe(a(r),t,o,r);return}t.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([i,s])=>{xe(s,Ge(t,i),o,r)})})},Ge=(e,t)=>{let o=e;return t.split(ye).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},yt=e=>e.isThemeGetter,wt=(e,t)=>t?e.map(([o,r])=>{let a=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,n])=>[t+s,n])):i);return[o,a]}):e,Pt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,a=(i,s)=>{o.set(i,s),t++,t>e&&(t=0,r=o,o=new Map)};return{get(i){let s=o.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return a(i,s),s},set(i,s){o.has(i)?o.set(i,s):a(i,s)}}},Ve="!",Nt=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,a=t[0],i=t.length,s=n=>{let g=[],m=0,w=0,T;for(let v=0;v<n.length;v++){let y=n[v];if(m===0){if(y===a&&(r||n.slice(v,v+i)===t)){g.push(n.slice(w,v)),w=v+i;continue}if(y==="/"){T=v;continue}}y==="["?m++:y==="]"&&m--}let M=g.length===0?n:n.substring(w),S=M.startsWith(Ve),k=S?M.substring(1):M,h=T&&T>w?T-w:void 0;return{modifiers:g,hasImportantModifier:S,baseClassName:k,maybePostfixModifierPosition:h}};return o?n=>o({className:n,parseClassName:s}):s},Rt=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},Ct=e=>({cache:Pt(e.cacheSize),parseClassName:Nt(e),...vt(e)}),Tt=/\s+/,Mt=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a}=t,i=[],s=e.trim().split(Tt),n="";for(let g=s.length-1;g>=0;g-=1){let m=s[g],{modifiers:w,hasImportantModifier:T,baseClassName:M,maybePostfixModifierPosition:S}=o(m),k=!!S,h=r(k?M.substring(0,S):M);if(!h){if(!k){n=m+(n.length>0?" "+n:n);continue}if(h=r(M),!h){n=m+(n.length>0?" "+n:n);continue}k=!1}let v=Rt(w).join(":"),y=T?v+Ve:v,C=y+h;if(i.includes(C))continue;i.push(C);let j=a(h,k);for(let D=0;D<j.length;++D){let U=j[D];i.push(y+U)}n=m+(n.length>0?" "+n:n)}return n};function kt(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=je(t))&&(r&&(r+=" "),r+=o);return r}var je=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=je(e[r]))&&(o&&(o+=" "),o+=t);return o};function At(e,...t){let o,r,a,i=s;function s(g){let m=t.reduce((w,T)=>T(w),e());return o=Ct(m),r=o.cache.get,a=o.cache.set,i=n,n(g)}function n(g){let m=r(g);if(m)return m;let w=Mt(g,o);return a(g,w),w}return function(){return i(kt.apply(null,arguments))}}var f=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},_e=/^\[(?:([a-z-]+):)?(.+)\]$/i,St=/^\pe+\/\pe+$/,zt=new Set(["px","full","screen"]),Dt=/^(\pe+(\.\pe+)?)?(xs|sm|md|lg|xl)$/,It=/\pe+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Bt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lt=/^(inset_)?-?((\pe+)?\.?(\pe+)[a-z]+|0)_-?((\pe+)?\.?(\pe+)[a-z]+|0)/,Et=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=e=>J(e)||zt.has(e)||St.test(e),_=e=>Z(e,"length",Ft),J=e=>!!e&&!Number.isNaN(Number(e)),he=e=>Z(e,"number",J),te=e=>!!e&&Number.isInteger(Number(e)),Gt=e=>e.endsWith("%")&&J(e.slice(0,-1)),c=e=>_e.test(e),H=e=>Dt.test(e),Wt=new Set(["length","size","percentage"]),Vt=e=>Z(e,Wt,He),jt=e=>Z(e,"position",He),_t=new Set(["image","url"]),Ht=e=>Z(e,_t,Ut),Ot=e=>Z(e,"",$t),oe=()=>!0,Z=(e,t,o)=>{let r=_e.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Ft=e=>It.test(e)&&!Bt.test(e),He=()=>!1,$t=e=>Lt.test(e),Ut=e=>Et.test(e);var qt=()=>{let e=f("colors"),t=f("spacing"),o=f("blur"),r=f("brightness"),a=f("borderColor"),i=f("borderRadius"),s=f("borderSpacing"),n=f("borderWidth"),g=f("contrast"),m=f("grayscale"),w=f("hueRotate"),T=f("invert"),M=f("gap"),S=f("gradientColorStops"),k=f("gradientColorStopPositions"),h=f("inset"),v=f("margin"),y=f("opacity"),C=f("padding"),j=f("saturate"),D=f("scale"),U=f("sepia"),q=f("skew"),ie=f("space"),ae=f("translate"),I=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",c,t],b=()=>[c,t],ze=()=>["",G,_],se=()=>["auto",J,c],De=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],le=()=>["solid","dashed","dotted","double","none"],Ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>["start","end","center","between","around","evenly","stretch"],ee=()=>["","0",c],Be=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>[J,c];return{cacheSize:500,separator:":",theme:{colors:[oe],spacing:[G,_],blur:["none","",H,c],brightness:E(),borderColor:[e],borderRadius:["none","","full",H,c],borderSpacing:b(),borderWidth:ze(),contrast:E(),grayscale:ee(),hueRotate:E(),invert:ee(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[Gt,_],inset:Y(),margin:Y(),opacity:E(),padding:b(),saturate:E(),scale:E(),sepia:ee(),skew:E(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",c]}],container:["container"],columns:[{columns:[H]}],"break-after":[{"break-after":Be()}],"break-before":[{"break-before":Be()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...De(),c]}],overflow:[{overflow:K()}],"overflow-pe":[{"overflow-pe":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:I()}],"overscroll-pe":[{"overscroll-pe":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-pe":[{"inset-pe":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",te,c]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",c]}],grow:[{grow:ee()}],shrink:[{shrink:ee()}],order:[{order:["first","last","none",te,c]}],"grid-cols":[{"grid-cols":[oe]}],"col-start-end":[{col:["auto",{span:["full",te,c]},c]}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":[oe]}],"row-start-end":[{row:["auto",{span:[te,c]},c]}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",c]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",c]}],gap:[{gap:[M]}],"gap-pe":[{"gap-pe":[M]}],"gap-y":[{"gap-y":[M]}],"justify-content":[{justify:["normal",...ve()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ve(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ve(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-pe":[{"space-pe":[ie]}],"space-pe-reverse":["space-pe-reverse"],"space-y":[{"space-y":[ie]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",c,t]}],"min-w":[{"min-w":[c,t,"min","max","fit"]}],"max-w":[{"max-w":[c,t,"none","full","min","max","fit","prose",{screen:[H]},H]}],h:[{h:[c,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[c,t,"auto","min","max","fit"]}],"font-size":[{text:["base",H,_]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",he]}],"font-family":[{font:[oe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",c]}],"line-clamp":[{"line-clamp":["none",J,he]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",G,c]}],"list-image":[{"list-image":["none",c]}],"list-style-type":[{list:["none","disc","decimal",c]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",G,_]}],"underline-offset":[{"underline-offset":["auto",G,c]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...De(),jt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","pe","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Vt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","pe","tl"]},Ht]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-pe":[{"rounded-pe":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[n]}],"border-w-pe":[{"border-pe":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-pe":[{"border-pe":[n]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...le(),"hidden"]}],"divide-pe":[{"divide-pe":[n]}],"divide-pe-reverse":["divide-pe-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:le()}],"border-color":[{border:[a]}],"border-color-pe":[{"border-pe":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-pe":[{"border-pe":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...le()]}],"outline-offset":[{"outline-offset":[G,c]}],"outline-w":[{outline:[G,_]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ze()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[G,_]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",H,Ot]}],"shadow-color":[{shadow:[oe]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...Ie(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ie()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",H,c]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[T]}],saturate:[{saturate:[j]}],sepia:[{sepia:[U]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[T]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-pe":[{"border-spacing-pe":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",c]}],duration:[{duration:E()}],ease:[{ease:["linear","in","out","in-out",c]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",c]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[D]}],"scale-pe":[{"scale-pe":[D]}],"scale-y":[{"scale-y":[D]}],rotate:[{rotate:[te,c]}],"translate-pe":[{"translate-pe":[ae]}],"translate-y":[{"translate-y":[ae]}],"skew-pe":[{"skew-pe":[q]}],"skew-y":[{"skew-y":[q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",c]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","F-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",c]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","pe",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","pe","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-pe":[{"touch-pan":["pe","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",c]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[G,_,he]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-pe","overflow-y"],overscroll:["overscroll-pe","overscroll-y"],inset:["inset-pe","inset-y","start","end","top","right","bottom","left"],"inset-pe":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-pe","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-pe","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-pe":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-pe","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-pe"],"border-w-pe":["border-w-r","border-w-pe"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-pe"],"border-color-pe":["border-color-r","border-color-pe"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-pe","touch-y","touch-pz"],"touch-pe":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Oe=At(qt);function u(...e){return Oe((0,Fe.clsx)(e))}var pe=require("react/jsx-runtime"),we=de.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(W.Root,{ref:o,className:u("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));we.displayName=W.Root.displayName;var Pe=de.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(W.Image,{ref:o,className:u("aspect-square h-full w-full",e),...t}));Pe.displayName=W.Image.displayName;var Ne=de.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(W.Fallback,{ref:o,className:u("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ne.displayName=W.Fallback.displayName;var $e=require("@radix-ui/react-slot"),Ue=require("class-variance-authority"),qe=B(require("react")),Kt=(0,Ue.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),P=qe.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...a},i)=>(0,pe.jsx)(e?$e.Slot:"button",{className:u(Kt({className:t,size:o,variant:r})),ref:i,...a}));P.displayName="Button";var Xe=B(require("react")),z=B(require("@radix-ui/react-tooltip"));var me=z.Provider,ue=z.Root,fe=z.Trigger,re=Xe.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,pe.jsx)(z.Portal,{children:(0,pe.jsx)(z.Content,{ref:r,sideOffset:t,className:u("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));re.displayName=z.Content.displayName;var Je=require("next-themes");function Ze(){let{setTheme:e,theme:t}=(0,Je.useTheme)();return(0,pe.jsx)(me,{children:(0,pe.jsxs)(ue,{children:[(0,pe.jsx)(fe,{asChild:!0,children:(0,pe.jsxs)(P,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,pe.jsx)($.Sun,{className:"h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,pe.jsx)($.Moon,{className:"absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,pe.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,pe.jsx)(re,{children:"Toggle theme"})]})})}var Ce=B(require("react")),A=B(require("@radix-ui/react-scroll-area"));var Te=Ce.forwardRef(({className:e,children:t,...o},r)=>(0,pe.jsxs)(A.Root,{ref:r,className:u("relative overflow-hidden",e),...o,children:[(0,pe.jsx)(A.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,pe.jsx)(Qe,{}),(0,pe.jsx)(A.Corner,{})]}));Te.displayName=A.Root.displayName;var Qe=Ce.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,pe.jsx)(A.ScrollAreaScrollbar,{ref:r,orientation:t,className:u("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-pe border-pe-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,pe.jsx)(A.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Qe.displayName=A.ScrollAreaScrollbar.displayName;var Xt=(0,Ue.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function et({className:e,variant:t,...o}){return(0,pe.jsx)("div",{className:u(Xt({variant:t}),e),...o})}function ot({notifications:e,open:t,onClose:o,onNotificationRemove:r,onRemoveAll:a,className:i}){let s=e.filter(m=>!m.read),n=s.length,g=m=>{switch(m){case"info":return(0,pe.jsx)($.Info,{className:"h-5 w-5 text-blue-500"});case"success":return(0,pe.jsx)($.Check,{className:"h-5 w-5 text-green-500"});case"warning":return(0,pe.jsx)($.AlertTriangle,{className:"h-5 w-5 text-amber-500"});case"error":return(0,pe.jsx)($.AlertTriangle,{className:"h-5 w-5 text-red-500"})}};return(0,pe.jsx)(F.AnimatePresence,{children:t&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(F.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-40 bg-black/20 backdrop-blur-sm md:hidden",onClick:o}),(0,pe.jsx)(F.motion.div,{initial:{pe:"100%"},animate:{pe:0},exit:{pe:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:u("fixed inset-y-0 right-0 z-50 w-full max-w-sm border-pe bg-background shadow-lg md:w-96",i),children:(0,pe.jsxs)("div",{className:"flex h-full flex-col",children:[(0,pe.jsxs)("div",{className:"flex items-center justify-between border-b p-4",children:[(0,pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,pe.jsx)($.Bell,{className:"h-5 w-5"}),(0,pe.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),n>0&&(0,pe.jsxs)(et,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[n," new"]})]}),(0,pe.jsxs)(P,{variant:"ghost",size:"icon",onClick:o,className:"rounded-full",children:[(0,pe.jsx)($.X,{className:"h-5 w-5"}),(0,pe.jsx)("span",{className:"sr-only",children:"Close"})]})]}),n>0&&(0,pe.jsxs)("div",{className:"flex items-center justify-between border-b p-2",children:[(0,pe.jsxs)("span",{className:"text-sm text-muted-foreground",children:[n," unread notification",n!==1?"s":""]}),(0,pe.jsx)(P,{variant:"ghost",size:"sm",onClick:a,className:"text-sm",children:"Dismiss all"})]}),s.length>0?(0,pe.jsx)(Te,{className:"flex-1",children:(0,pe.jsx)("div",{className:"divide-y",children:s.map(m=>(0,pe.jsxs)("div",{className:u("flex gap-3 p-4 transition-colors bg-muted/50"),children:[(0,pe.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:g(m.type)}),(0,pe.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,pe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,pe.jsx)("p",{className:"font-medium",children:m.title}),(0,pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,pe.jsx)("p",{className:"text-xs text-muted-foreground",children:m.time}),(0,pe.jsx)(P,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>r?.(m.id),title:"Dismiss",children:(0,pe.jsx)($.Check,{className:"h-3 w-3"})})]})]}),(0,pe.jsx)("p",{className:"text-sm text-muted-foreground",children:m.description}),m.actionLabel&&(0,pe.jsxs)(P,{variant:"link",size:"sm",className:"h-auto p-0 text-sm",onClick:m.onAction,children:[m.actionLabel,(0,pe.jsx)($.ChevronRight,{className:"ml-1 h-3 w-3"})]})]})]},m.id))})}):(0,pe.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center p-8 text-center",children:[(0,pe.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted",children:(0,pe.jsx)($.Bell,{className:"h-8 w-8 text-muted-foreground"})}),(0,pe.jsx)("h3",{className:"mt-4 text-lg font-medium",children:"No notifications"}),(0,pe.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}var X=B(require("@radix-ui/react-tabs"));function rt({className:e,...t}){return(0,pe.jsx)(X.Root,{"data-slot":"tabs",className:u("flex flex-col gap-2",e),...t})}function nt({className:e,...t}){return(0,pe.jsx)(X.List,{"data-slot":"tabs-list",className:u("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function it({className:e,...t}){return(0,pe.jsx)(X.Trigger,{"data-slot":"tabs-trigger",className:u("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var V=B(require("react")),p=B(require("@radix-ui/react-dropdown-menu")),Q=require("@radix-ui/react-icons");var at=p.Root,st=p.Trigger;var Jt=V.forwardRef(({className:e,inset:t,children:o,...r},a)=>(0,pe.jsxs)(p.SubTrigger,{ref:a,className:u("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[o,(0,pe.jsx)(Q.ChevronRightIcon,{className:"ml-auto"})]}));Jt.displayName=p.SubTrigger.displayName;var Zt=V.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(p.SubContent,{ref:o,className:u("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Zt.displayName=p.SubContent.displayName;var Me=V.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,pe.jsx)(p.Portal,{children:(0,pe.jsx)(p.Content,{ref:r,sideOffset:t,className:u("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Me.displayName=p.Content.displayName;var ke=V.forwardRef(({className:e,inset:t,...o},r)=>(0,pe.jsx)(p.Item,{ref:r,className:u("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));ke.displayName=p.Item.displayName;var Qt=V.forwardRef(({className:e,children:t,checked:o,...r},a)=>(0,pe.jsxs)(p.CheckboxItem,{ref:a,className:u("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...r,children:[(0,pe.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,pe.jsx)(p.ItemIndicator,{children:(0,pe.jsx)(Q.CheckIcon,{className:"h-4 w-4"})})}),t]}));Qt.displayName=p.CheckboxItem.displayName;var Yt=V.forwardRef(({className:e,children:t,...o},r)=>(0,pe.jsxs)(p.RadioItem,{ref:r,className:u("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,pe.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,pe.jsx)(p.ItemIndicator,{children:(0,pe.jsx)(Q.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Yt.displayName=p.RadioItem.displayName;var eo=V.forwardRef(({className:e,inset:t,...o},r)=>(0,pe.jsx)(p.Label,{ref:r,className:u("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));eo.displayName=p.Label.displayName;var to=V.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(p.Separator,{ref:o,className:u("-mx-1 my-1 h-px bg-muted",e),...t}));to.displayName=p.Separator.displayName;var oo=({className:e,...t})=>(0,pe.jsx)("span",{className:u("ml-auto text-xs tracking-widest opacity-60",e),...t});oo.displayName="DropdownMenuShortcut";function ct({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:a="700px",gridCols:i=6}){let s=o.find(n=>n.value===e);return(0,pe.jsxs)(F.motion.div,{className:`flex-1 flex justify-center ${r}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[(0,pe.jsx)("div",{className:"hidden md:block",children:(0,pe.jsx)(rt,{value:e,onValueChange:t,children:(0,pe.jsx)(nt,{className:"grid w-full rounded-2xl p-0 h-10",style:{maxWidth:a,gridTemplateColumns:`repeat(${Math.min(i,o.length)}, minmax(0, 1fr))`},children:o.map(n=>(0,pe.jsx)(F.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,pe.jsx)(it,{value:n.value,className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:n.label})},n.value))})})}),(0,pe.jsx)("div",{className:"md:hidden",children:(0,pe.jsxs)(at,{children:[(0,pe.jsx)(st,{asChild:!0,children:(0,pe.jsxs)(P,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[s?.label||"Select",(0,pe.jsx)($.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,pe.jsx)(Me,{align:"center",className:"w-[180px]",children:o.map(n=>(0,pe.jsx)(ke,{onClick:()=>t?.(n.value),className:`cursor-pointer ${e===n.value?"bg-accent":""}`,children:n.label},n.value))})]})})]})}function ro({title:e,notifications:t=[],onToggleSidebar:o,onToggleMobileMenu:r,sidebarOpen:a=!0,className:i,activeTab:s="assistant",onTabChange:n,showTabs:g=!0,tabOptions:m=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:w,actionIcon:T=(0,pe.jsx)($.Bot,{className:"mr-2 h-4 w-4"}),actionText:M="Action",onNotificationRemove:S,onRemoveAll:k,logo:h="/headerlogo.png",appName:v="Nuvia",tagline:y="Collaboration Platform"}){let[C,j]=(0,Se.useState)(!1),[D,U]=(0,Se.useState)(t),q=D.filter(I=>!I.read).length,ie=I=>{U(K=>K.filter(Y=>Y.id!==I)),S?.(I)},ae=()=>{U(I=>I.filter(K=>K.read)),k?.()};return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsxs)("header",{className:`sticky top-0 z-10 flex h-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${i||""}`,children:[(0,pe.jsx)(P,{variant:"ghost",size:"icon",className:"md:hidden",onClick:r,children:(0,pe.jsx)($.Menu,{className:"h-5 w-5"})}),(0,pe.jsx)(P,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:o,children:(0,pe.jsx)($.PanelLeft,{className:"h-5 w-5"})}),!a&&(0,pe.jsxs)(F.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,pe:-20},animate:{opacity:1,pe:0},transition:{duration:.3},children:[(0,pe.jsx)("div",{className:"flex h-10 w-10 items-center justify-center",children:(0,pe.jsx)("img",{src:h,alt:"Logo",className:"h-10 w-10 object-contain"})}),(0,pe.jsxs)("div",{children:[(0,pe.jsx)("h2",{className:"font-semibold text-sm",children:v}),(0,pe.jsx)("p",{className:"text-xs text-muted-foreground",children:y})]})]}),(0,pe.jsxs)("div",{className:"flex flex-1 items-center",children:[g&&(0,pe.jsx)(ct,{activeTab:s,onTabChange:n,tabOptions:m}),(0,pe.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,pe.jsx)(F.motion.div,{className:"hidden md:flex gap-2",initial:{opacity:0,pe:20},animate:{opacity:1,pe:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:(0,pe.jsx)(F.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,pe.jsxs)(P,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:w,children:[T,M]})})}),(0,pe.jsx)(Ze,{}),(0,pe.jsx)(me,{children:(0,pe.jsxs)(ue,{children:[(0,pe.jsx)(fe,{asChild:!0,children:(0,pe.jsx)(F.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,pe.jsxs)(P,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>j(!0),children:[(0,pe.jsx)(F.motion.div,{animate:q>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:q>0?1/0:0,repeatDelay:3},children:(0,pe.jsx)($.Bell,{className:"h-5 w-5"})}),q>0&&(0,pe.jsx)(F.motion.span,{className:"absolute -right-1 -top-1 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-xs text-white",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500,damping:15},children:q})]})})}),(0,pe.jsx)(re,{children:"Notifications"})]})}),(0,pe.jsx)(F.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,pe.jsxs)(we,{className:"h-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,pe.jsx)(Pe,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,pe.jsx)(Ne,{})]})})]})]})]}),(0,pe.jsx)(ot,{notifications:D,open:C,onClose:()=>j(!1),onNotificationRemove:ie,onRemoveAll:ae})]})}0&&(module.exports={AppHeader});
|
|
5
|
+
"use strict";"use client";var dt=Object.create;var ce=Object.defineProperty;var pt=Object.getOwnPropertyDescriptor;var mt=Object.getOwnPropertyNames;var ut=Object.getPrototypeOf,ft=Object.prototype.hasOwnProperty;var gt=(e,t)=>{for(var o in t)ce(e,o,{get:t[o],enumerable:!0})},Le=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of mt(t))!ft.call(e,a)&&a!==o&&ce(e,a,{get:()=>t[a],enumerable:!(r=pt(t,a))||r.enumerable});return e};var B=(e,t,o)=>(o=e!=null?dt(ut(e)):{},Le(t||!e||!e.__esModule?ce(o,"default",{value:e,enumerable:!0}):o,e)),bt=e=>Le(ce({},"__esModule",{value:!0}),e);var no={};gt(no,{AppHeader:()=>ro});module.exports=bt(no);var Se=require("react"),F=require("motion/react"),$=require("lucide-react");var de=B(require("react")),W=B(require("@radix-ui/react-avatar"));var Fe=require("clsx");var ye="-",vt=e=>{let t=xt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let n=s.split(ye);return n[0]===""&&n.length!==1&&n.shift(),We(n,t)||ht(s)},getConflictingClassGroupIds:(s,n)=>{let g=o[s]||[];return n&&r[s]?[...g,...r[s]]:g}}},We=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),a=r?We(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;let i=e.join(ye);return t.validators.find(({validator:s})=>s(i))?.classGroupId},Ee=/^\[(.+)\]$/,ht=e=>{if(Ee.test(e)){let t=Ee.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},xt=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return wt(Object.entries(e.classGroups),o).forEach(([i,s])=>{xe(s,r,i,t)}),r},xe=(e,t,o,r)=>{e.forEach(a=>{if(typeof a=="string"){let i=a===""?t:Ge(t,a);i.classGroupId=o;return}if(typeof a=="function"){if(yt(a)){xe(a(r),t,o,r);return}t.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([i,s])=>{xe(s,Ge(t,i),o,r)})})},Ge=(e,t)=>{let o=e;return t.split(ye).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},yt=e=>e.isThemeGetter,wt=(e,t)=>t?e.map(([o,r])=>{let a=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,n])=>[t+s,n])):i);return[o,a]}):e,Pt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,a=(i,s)=>{o.set(i,s),t++,t>e&&(t=0,r=o,o=new Map)};return{get(i){let s=o.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return a(i,s),s},set(i,s){o.has(i)?o.set(i,s):a(i,s)}}},Ve="!",Nt=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,a=t[0],i=t.length,s=n=>{let g=[],m=0,w=0,T;for(let v=0;v<n.length;v++){let y=n[v];if(m===0){if(y===a&&(r||n.slice(v,v+i)===t)){g.push(n.slice(w,v)),w=v+i;continue}if(y==="/"){T=v;continue}}y==="["?m++:y==="]"&&m--}let M=g.length===0?n:n.substring(w),S=M.startsWith(Ve),k=S?M.substring(1):M,h=T&&T>w?T-w:void 0;return{modifiers:g,hasImportantModifier:S,baseClassName:k,maybePostfixModifierPosition:h}};return o?n=>o({className:n,parseClassName:s}):s},Rt=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},Ct=e=>({cache:Pt(e.cacheSize),parseClassName:Nt(e),...vt(e)}),Tt=/\s+/,Mt=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a}=t,i=[],s=e.trim().split(Tt),n="";for(let g=s.length-1;g>=0;g-=1){let m=s[g],{modifiers:w,hasImportantModifier:T,baseClassName:M,maybePostfixModifierPosition:S}=o(m),k=!!S,h=r(k?M.substring(0,S):M);if(!h){if(!k){n=m+(n.length>0?" "+n:n);continue}if(h=r(M),!h){n=m+(n.length>0?" "+n:n);continue}k=!1}let v=Rt(w).join(":"),y=T?v+Ve:v,C=y+h;if(i.includes(C))continue;i.push(C);let j=a(h,k);for(let D=0;D<j.length;++D){let U=j[D];i.push(y+U)}n=m+(n.length>0?" "+n:n)}return n};function kt(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=je(t))&&(r&&(r+=" "),r+=o);return r}var je=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=je(e[r]))&&(o&&(o+=" "),o+=t);return o};function At(e,...t){let o,r,a,i=s;function s(g){let m=t.reduce((w,T)=>T(w),e());return o=Ct(m),r=o.cache.get,a=o.cache.set,i=n,n(g)}function n(g){let m=r(g);if(m)return m;let w=Mt(g,o);return a(g,w),w}return function(){return i(kt.apply(null,arguments))}}var f=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},_e=/^\[(?:([a-z-]+):)?(.+)\]$/i,St=/^\pe+\/\pe+$/,zt=new Set(["px","full","screen"]),Dt=/^(\pe+(\.\pe+)?)?(xs|sm|md|lg|xl)$/,It=/\pe+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Bt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lt=/^(inset_)?-?((\pe+)?\.?(\pe+)[a-z]+|0)_-?((\pe+)?\.?(\pe+)[a-z]+|0)/,Et=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=e=>J(e)||zt.has(e)||St.test(e),_=e=>Z(e,"length",Ft),J=e=>!!e&&!Number.isNaN(Number(e)),he=e=>Z(e,"number",J),te=e=>!!e&&Number.isInteger(Number(e)),Gt=e=>e.endsWith("%")&&J(e.slice(0,-1)),c=e=>_e.test(e),H=e=>Dt.test(e),Wt=new Set(["length","size","percentage"]),Vt=e=>Z(e,Wt,He),jt=e=>Z(e,"position",He),_t=new Set(["image","url"]),Ht=e=>Z(e,_t,Ut),Ot=e=>Z(e,"",$t),oe=()=>!0,Z=(e,t,o)=>{let r=_e.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Ft=e=>It.test(e)&&!Bt.test(e),He=()=>!1,$t=e=>Lt.test(e),Ut=e=>Et.test(e);var qt=()=>{let e=f("colors"),t=f("spacing"),o=f("blur"),r=f("brightness"),a=f("borderColor"),i=f("borderRadius"),s=f("borderSpacing"),n=f("borderWidth"),g=f("contrast"),m=f("grayscale"),w=f("hueRotate"),T=f("invert"),M=f("gap"),S=f("gradientColorStops"),k=f("gradientColorStopPositions"),h=f("inset"),v=f("margin"),y=f("opacity"),C=f("padding"),j=f("saturate"),D=f("scale"),U=f("sepia"),q=f("skew"),ie=f("space"),ae=f("translate"),I=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",c,t],b=()=>[c,t],ze=()=>["",G,_],se=()=>["auto",J,c],De=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],le=()=>["solid","dashed","dotted","double","none"],Ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>["start","end","center","between","around","evenly","stretch"],ee=()=>["","0",c],Be=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>[J,c];return{cacheSize:500,separator:":",theme:{colors:[oe],spacing:[G,_],blur:["none","",H,c],brightness:E(),borderColor:[e],borderRadius:["none","","full",H,c],borderSpacing:b(),borderWidth:ze(),contrast:E(),grayscale:ee(),hueRotate:E(),invert:ee(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[Gt,_],inset:Y(),margin:Y(),opacity:E(),padding:b(),saturate:E(),scale:E(),sepia:ee(),skew:E(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",c]}],container:["container"],columns:[{columns:[H]}],"break-after":[{"break-after":Be()}],"break-before":[{"break-before":Be()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...De(),c]}],overflow:[{overflow:K()}],"overflow-pe":[{"overflow-pe":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:I()}],"overscroll-pe":[{"overscroll-pe":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-pe":[{"inset-pe":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",te,c]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",c]}],grow:[{grow:ee()}],shrink:[{shrink:ee()}],order:[{order:["first","last","none",te,c]}],"grid-cols":[{"grid-cols":[oe]}],"col-start-end":[{col:["auto",{span:["full",te,c]},c]}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":[oe]}],"row-start-end":[{row:["auto",{span:[te,c]},c]}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",c]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",c]}],gap:[{gap:[M]}],"gap-pe":[{"gap-pe":[M]}],"gap-y":[{"gap-y":[M]}],"justify-content":[{justify:["normal",...ve()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ve(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ve(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-pe":[{"space-pe":[ie]}],"space-pe-reverse":["space-pe-reverse"],"space-y":[{"space-y":[ie]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",c,t]}],"min-w":[{"min-w":[c,t,"min","max","fit"]}],"max-w":[{"max-w":[c,t,"none","full","min","max","fit","prose",{screen:[H]},H]}],h:[{h:[c,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[c,t,"auto","min","max","fit"]}],"font-size":[{text:["base",H,_]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",he]}],"font-family":[{font:[oe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",c]}],"line-clamp":[{"line-clamp":["none",J,he]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",G,c]}],"list-image":[{"list-image":["none",c]}],"list-style-type":[{list:["none","disc","decimal",c]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",G,_]}],"underline-offset":[{"underline-offset":["auto",G,c]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...De(),jt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","pe","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Vt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","pe","tl"]},Ht]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-pe":[{"rounded-pe":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[n]}],"border-w-pe":[{"border-pe":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-pe":[{"border-pe":[n]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...le(),"hidden"]}],"divide-pe":[{"divide-pe":[n]}],"divide-pe-reverse":["divide-pe-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:le()}],"border-color":[{border:[a]}],"border-color-pe":[{"border-pe":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-pe":[{"border-pe":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...le()]}],"outline-offset":[{"outline-offset":[G,c]}],"outline-w":[{outline:[G,_]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ze()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[G,_]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",H,Ot]}],"shadow-color":[{shadow:[oe]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...Ie(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ie()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",H,c]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[T]}],saturate:[{saturate:[j]}],sepia:[{sepia:[U]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[T]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-pe":[{"border-spacing-pe":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",c]}],duration:[{duration:E()}],ease:[{ease:["linear","in","out","in-out",c]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",c]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[D]}],"scale-pe":[{"scale-pe":[D]}],"scale-y":[{"scale-y":[D]}],rotate:[{rotate:[te,c]}],"translate-pe":[{"translate-pe":[ae]}],"translate-y":[{"translate-y":[ae]}],"skew-pe":[{"skew-pe":[q]}],"skew-y":[{"skew-y":[q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",c]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","F-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",c]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","pe",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","pe","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-pe":[{"touch-pan":["pe","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",c]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[G,_,he]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-pe","overflow-y"],overscroll:["overscroll-pe","overscroll-y"],inset:["inset-pe","inset-y","start","end","top","right","bottom","left"],"inset-pe":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-pe","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-pe","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-pe":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-pe","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-pe"],"border-w-pe":["border-w-r","border-w-pe"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-pe"],"border-color-pe":["border-color-r","border-color-pe"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-pe","touch-y","touch-pz"],"touch-pe":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Oe=At(qt);function u(...e){return Oe((0,Fe.clsx)(e))}var pe=require("react/jsx-runtime"),we=de.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(W.Root,{ref:o,className:u("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));we.displayName=W.Root.displayName;var Pe=de.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(W.Image,{ref:o,className:u("aspect-square h-full w-full",e),...t}));Pe.displayName=W.Image.displayName;var Ne=de.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(W.Fallback,{ref:o,className:u("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ne.displayName=W.Fallback.displayName;var $e=require("@radix-ui/react-slot"),Ue=require("class-variance-authority"),qe=B(require("react")),Kt=(0,Ue.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),P=qe.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...a},i)=>(0,pe.jsx)(e?$e.Slot:"button",{className:u(Kt({className:t,size:o,variant:r})),ref:i,...a}));P.displayName="Button";var Xe=B(require("react")),z=B(require("@radix-ui/react-tooltip"));var me=z.Provider,ue=z.Root,fe=z.Trigger,re=Xe.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,pe.jsx)(z.Portal,{children:(0,pe.jsx)(z.Content,{ref:r,sideOffset:t,className:u("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));re.displayName=z.Content.displayName;var Je=require("next-themes");function Ze(){let{setTheme:e,theme:t}=(0,Je.useTheme)();return(0,pe.jsx)(me,{children:(0,pe.jsxs)(ue,{children:[(0,pe.jsx)(fe,{asChild:!0,children:(0,pe.jsxs)(P,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,pe.jsx)($.Sun,{className:"h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,pe.jsx)($.Moon,{className:"absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,pe.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,pe.jsx)(re,{children:"Toggle theme"})]})})}var Ce=B(require("react")),A=B(require("@radix-ui/react-scroll-area"));var Te=Ce.forwardRef(({className:e,children:t,...o},r)=>(0,pe.jsxs)(A.Root,{ref:r,className:u("relative overflow-hidden",e),...o,children:[(0,pe.jsx)(A.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,pe.jsx)(Qe,{}),(0,pe.jsx)(A.Corner,{})]}));Te.displayName=A.Root.displayName;var Qe=Ce.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,pe.jsx)(A.ScrollAreaScrollbar,{ref:r,orientation:t,className:u("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-pe border-pe-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,pe.jsx)(A.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Qe.displayName=A.ScrollAreaScrollbar.displayName;var Xt=(0,Ue.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function et({className:e,variant:t,...o}){return(0,pe.jsx)("div",{className:u(Xt({variant:t}),e),...o})}function ot({notifications:e,open:t,onClose:o,onNotificationRemove:r,onRemoveAll:a,className:i}){let s=e.filter(m=>!m.read),n=s.length,g=m=>{switch(m){case"info":return(0,pe.jsx)($.Info,{className:"h-5 w-5 text-blue-500"});case"success":return(0,pe.jsx)($.Check,{className:"h-5 w-5 text-green-500"});case"warning":return(0,pe.jsx)($.AlertTriangle,{className:"h-5 w-5 text-amber-500"});case"error":return(0,pe.jsx)($.AlertTriangle,{className:"h-5 w-5 text-red-500"})}};return(0,pe.jsx)(F.AnimatePresence,{children:t&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(F.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-40 bg-black/20 backdrop-blur-sm md:hidden",onClick:o}),(0,pe.jsx)(F.motion.div,{initial:{pe:"100%"},animate:{pe:0},exit:{pe:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:u("fixed inset-y-0 right-0 z-50 w-full max-w-sm border-pe bg-background shadow-lg md:w-96",i),children:(0,pe.jsxs)("div",{className:"flex h-full flex-col",children:[(0,pe.jsxs)("div",{className:"flex items-center justify-between border-b p-4",children:[(0,pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,pe.jsx)($.Bell,{className:"h-5 w-5"}),(0,pe.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),n>0&&(0,pe.jsxs)(et,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[n," new"]})]}),(0,pe.jsxs)(P,{variant:"ghost",size:"icon",onClick:o,className:"rounded-full",children:[(0,pe.jsx)($.X,{className:"h-5 w-5"}),(0,pe.jsx)("span",{className:"sr-only",children:"Close"})]})]}),n>0&&(0,pe.jsxs)("div",{className:"flex items-center justify-between border-b p-2",children:[(0,pe.jsxs)("span",{className:"text-sm text-muted-foreground",children:[n," unread notification",n!==1?"s":""]}),(0,pe.jsx)(P,{variant:"ghost",size:"sm",onClick:a,className:"text-sm",children:"Dismiss all"})]}),s.length>0?(0,pe.jsx)(Te,{className:"flex-1",children:(0,pe.jsx)("div",{className:"divide-y",children:s.map(m=>(0,pe.jsxs)("div",{className:u("flex gap-3 p-4 transition-colors bg-muted/50"),children:[(0,pe.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:g(m.type)}),(0,pe.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,pe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,pe.jsx)("p",{className:"font-medium",children:m.title}),(0,pe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,pe.jsx)("p",{className:"text-xs text-muted-foreground",children:m.time}),(0,pe.jsx)(P,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>r?.(m.id),title:"Dismiss",children:(0,pe.jsx)($.Check,{className:"h-3 w-3"})})]})]}),(0,pe.jsx)("p",{className:"text-sm text-muted-foreground",children:m.description}),m.actionLabel&&(0,pe.jsxs)(P,{variant:"link",size:"sm",className:"h-auto p-0 text-sm",onClick:m.onAction,children:[m.actionLabel,(0,pe.jsx)($.ChevronRight,{className:"ml-1 h-3 w-3"})]})]})]},m.id))})}):(0,pe.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center p-8 text-center",children:[(0,pe.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted",children:(0,pe.jsx)($.Bell,{className:"h-8 w-8 text-muted-foreground"})}),(0,pe.jsx)("h3",{className:"mt-4 text-lg font-medium",children:"No notifications"}),(0,pe.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}var X=B(require("@radix-ui/react-tabs"));function rt({className:e,...t}){return(0,pe.jsx)(X.Root,{"data-slot":"tabs",className:u("flex flex-col gap-2",e),...t})}function nt({className:e,...t}){return(0,pe.jsx)(X.List,{"data-slot":"tabs-list",className:u("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function it({className:e,...t}){return(0,pe.jsx)(X.Trigger,{"data-slot":"tabs-trigger",className:u("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var V=B(require("react")),p=B(require("@radix-ui/react-dropdown-menu")),Q=require("@radix-ui/react-icons");var at=p.Root,st=p.Trigger;var Jt=V.forwardRef(({className:e,inset:t,children:o,...r},a)=>(0,pe.jsxs)(p.SubTrigger,{ref:a,className:u("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[o,(0,pe.jsx)(Q.ChevronRightIcon,{className:"ml-auto"})]}));Jt.displayName=p.SubTrigger.displayName;var Zt=V.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(p.SubContent,{ref:o,className:u("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Zt.displayName=p.SubContent.displayName;var Me=V.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,pe.jsx)(p.Portal,{children:(0,pe.jsx)(p.Content,{ref:r,sideOffset:t,className:u("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Me.displayName=p.Content.displayName;var ke=V.forwardRef(({className:e,inset:t,...o},r)=>(0,pe.jsx)(p.Item,{ref:r,className:u("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));ke.displayName=p.Item.displayName;var Qt=V.forwardRef(({className:e,children:t,checked:o,...r},a)=>(0,pe.jsxs)(p.CheckboxItem,{ref:a,className:u("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...r,children:[(0,pe.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,pe.jsx)(p.ItemIndicator,{children:(0,pe.jsx)(Q.CheckIcon,{className:"h-4 w-4"})})}),t]}));Qt.displayName=p.CheckboxItem.displayName;var Yt=V.forwardRef(({className:e,children:t,...o},r)=>(0,pe.jsxs)(p.RadioItem,{ref:r,className:u("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,pe.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,pe.jsx)(p.ItemIndicator,{children:(0,pe.jsx)(Q.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Yt.displayName=p.RadioItem.displayName;var eo=V.forwardRef(({className:e,inset:t,...o},r)=>(0,pe.jsx)(p.Label,{ref:r,className:u("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));eo.displayName=p.Label.displayName;var to=V.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(p.Separator,{ref:o,className:u("-mx-1 my-1 h-px bg-muted",e),...t}));to.displayName=p.Separator.displayName;var oo=({className:e,...t})=>(0,pe.jsx)("span",{className:u("ml-auto text-xs tracking-widest opacity-60",e),...t});oo.displayName="DropdownMenuShortcut";function ct({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:a="700px",gridCols:i=6}){let s=o.find(n=>n.value===e);return(0,pe.jsxs)(F.motion.div,{className:`flex-1 flex justify-center ${r}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[(0,pe.jsx)("div",{className:"hidden lg:block",children:(0,pe.jsx)(rt,{value:e,onValueChange:t,children:(0,pe.jsx)(nt,{className:"grid w-full rounded-2xl p-0 h-10",style:{maxWidth:a,gridTemplateColumns:`repeat(${Math.min(i,o.length)}, minmax(0, 1fr))`},children:o.map(n=>(0,pe.jsx)(F.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,pe.jsx)(it,{value:n.value,className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:n.label})},n.value))})})}),(0,pe.jsx)("div",{className:"lg:hidden",children:(0,pe.jsxs)(at,{children:[(0,pe.jsx)(st,{asChild:!0,children:(0,pe.jsxs)(P,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[s?.label||"Select",(0,pe.jsx)($.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,pe.jsx)(Me,{align:"center",className:"w-[180px]",children:o.map(n=>(0,pe.jsx)(ke,{onClick:()=>t?.(n.value),className:`cursor-pointer ${e===n.value?"bg-accent":""}`,children:n.label},n.value))})]})})]})}function ro({title:e,notifications:t=[],onToggleSidebar:o,onToggleMobileMenu:r,sidebarOpen:a=!0,className:i,activeTab:s="assistant",onTabChange:n,showTabs:g=!0,tabOptions:m=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:w,actionIcon:T=(0,pe.jsx)($.Bot,{className:"mr-2 h-4 w-4"}),actionText:M="Action",onNotificationRemove:S,onRemoveAll:k,logo:h="/headerlogo.png",appName:v="Nuvia",tagline:y="Collaboration Platform"}){let[C,j]=(0,Se.useState)(!1),[D,U]=(0,Se.useState)(t),q=D.filter(I=>!I.read).length,ie=I=>{U(K=>K.filter(Y=>Y.id!==I)),S?.(I)},ae=()=>{U(I=>I.filter(K=>K.read)),k?.()};return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsxs)("header",{className:`sticky top-0 z-10 flex h-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${i||""}`,children:[(0,pe.jsx)(P,{variant:"ghost",size:"icon",className:"md:hidden",onClick:r,children:(0,pe.jsx)($.Menu,{className:"h-5 w-5"})}),(0,pe.jsx)(P,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:o,children:(0,pe.jsx)($.PanelLeft,{className:"h-5 w-5"})}),!a&&(0,pe.jsxs)(F.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,pe:-20},animate:{opacity:1,pe:0},transition:{duration:.3},children:[(0,pe.jsx)("div",{className:"flex h-10 w-10 items-center justify-center",children:(0,pe.jsx)("img",{src:h,alt:"Logo",className:"h-10 w-10 object-contain"})}),(0,pe.jsxs)("div",{children:[(0,pe.jsx)("h2",{className:"font-semibold text-sm",children:v}),(0,pe.jsx)("p",{className:"text-xs text-muted-foreground",children:y})]})]}),(0,pe.jsxs)("div",{className:"flex flex-1 items-center",children:[g&&(0,pe.jsx)(ct,{activeTab:s,onTabChange:n,tabOptions:m}),(0,pe.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,pe.jsx)(F.motion.div,{className:"hidden md:flex gap-2",initial:{opacity:0,pe:20},animate:{opacity:1,pe:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:(0,pe.jsx)(F.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,pe.jsxs)(P,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:w,children:[T,M]})})}),(0,pe.jsx)(Ze,{}),(0,pe.jsx)(me,{children:(0,pe.jsxs)(ue,{children:[(0,pe.jsx)(fe,{asChild:!0,children:(0,pe.jsx)(F.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,pe.jsxs)(P,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>j(!0),children:[(0,pe.jsx)(F.motion.div,{animate:q>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:q>0?1/0:0,repeatDelay:3},children:(0,pe.jsx)($.Bell,{className:"h-5 w-5"})}),q>0&&(0,pe.jsx)(F.motion.span,{className:"absolute -right-1 -top-1 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-xs text-white",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500,damping:15},children:q})]})})}),(0,pe.jsx)(re,{children:"Notifications"})]})}),(0,pe.jsx)(F.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,pe.jsxs)(we,{className:"h-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,pe.jsx)(Pe,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,pe.jsx)(Ne,{})]})})]})]})]}),(0,pe.jsx)(ot,{notifications:D,open:C,onClose:()=>j(!1),onNotificationRemove:ie,onRemoveAll:ae})]})}0&&(module.exports={AppHeader});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../chunk-Q67RF7VO.mjs";import"../../chunk-AZKOVKSK.mjs";import"../../chunk-FGEFYI5E.mjs";import"../../chunk-MU5WPW4N.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as AppHeader};
|