cortex-react-components 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-Y7XREGJN.mjs → chunk-2L2HGIOO.mjs} +1 -1
- package/dist/chunk-5BK3HTPN.mjs +4 -0
- package/dist/{chunk-2EC6ZHJE.mjs → chunk-5G3COZF4.mjs} +1 -1
- package/dist/{chunk-WOSN4OLA.mjs → chunk-67YQLYKU.mjs} +1 -1
- package/dist/chunk-6RXY6Z7T.mjs +4 -0
- package/dist/{chunk-RMIGFWKK.mjs → chunk-AL6YBBXL.mjs} +1 -1
- package/dist/chunk-CBLP4MXP.mjs +4 -0
- package/dist/chunk-FGH7ESCA.mjs +4 -0
- package/dist/chunk-V7F26YS5.mjs +4 -0
- package/dist/components/AdvancedComponents/app-header.js +1 -1
- package/dist/components/AdvancedComponents/app-header.mjs +1 -1
- package/dist/components/Chat/CopilotInterface.d.ts +2 -1
- package/dist/components/Chat/CopilotInterface.js +1 -1
- package/dist/components/Chat/CopilotInterface.mjs +1 -1
- package/dist/components/Chat/README-AI-Integration.js +15 -0
- package/dist/components/Chat/README-AI-Integration.mjs +15 -0
- package/dist/components/Chat/chat-session-sidebar.js +1 -1
- package/dist/components/Chat/chat-session-sidebar.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.d.ts +4 -0
- 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 +2 -2
- package/dist/components/Chat/index.mjs +1 -1
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.d.ts +2 -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/Pages/dashboardpage.js +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
- package/dist/components/DigitalColleagues/sidebar.js +1 -1
- package/dist/components/DigitalColleagues/sidebar.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Other/index.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/Projects/ProjectPage.js +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/index.js +7 -7
- package/dist/components/index.mjs +1 -1
- package/dist/index.js +10 -10
- 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/PageSections.mjs +1 -1
- package/dist/sections/PricingSection.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-2VR4KIQL.mjs +0 -4
- package/dist/chunk-JHSHXYPK.mjs +0 -4
- package/dist/chunk-PE3RX2EM.mjs +0 -4
- package/dist/chunk-PM35MWKG.mjs +0 -4
- package/dist/chunk-SWA5TRPZ.mjs +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u}from"./chunk-KML6U7IE.mjs";import{a as C}from"./chunk-KGEIN56Y.mjs";import{f as g}from"./chunk-WYHDFQVL.mjs";import{b as f}from"./chunk-ZUA4KNIR.mjs";import{a as c,b as x,c as v,e as p}from"./chunk-YO3GQYRJ.mjs";import{a as
|
|
1
|
+
import{a as u}from"./chunk-KML6U7IE.mjs";import{a as C}from"./chunk-KGEIN56Y.mjs";import{f as g}from"./chunk-WYHDFQVL.mjs";import{b as f}from"./chunk-ZUA4KNIR.mjs";import{a as c,b as x,c as v,e as p}from"./chunk-YO3GQYRJ.mjs";import{a as h}from"./chunk-WISCWNL2.mjs";import{a as b}from"./chunk-FMJBJ3HN.mjs";import U from"next/image";import{notFound as M}from"next/navigation";import w from"next/link";import{FaLinkedin as I}from"react-icons/fa6";import{jsx as e,jsxs as s}from"react/jsx-runtime";function L({image:t,name:i,about:l,socialLinks:o}){return!t||!t.src||t.src.length<3||!i?null:e("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:e(c,{children:s(p,{className:"flex flex-col items-center",children:[t&&t.src&&e(U,{src:t.src,alt:t.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:u,className:"mx-auto mt-6 rounded-full object-cover"}),s("h3",{className:"flex items-center ali font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:[i,o&&o.length>0&&e("nav",{"aria-label":"social links",children:e("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:o.map((a,m)=>a.href&&e("li",{children:e(h,{href:a.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:e("span",{children:a.icon})})},m))})})]}),e("p",{children:l})]})})})}function j({page:t,categoryList:i,edit:l=!1,path:o="/admin/collections/posts/"}){if(!t)return M();let{meta:a,populatedAuthors:m,authors:P,categories:N,content:k,title:y}=t,A={image:{src:a&&a.image&&a.image.url||void 0,alt:a&&a.image&&a.image.alt||void 0},authorName:m?.[0]?.name||"",category:N,commentCount:0,title:y,description:a?.description||""},d=P?.map(r=>{let n=r.profilePicture&&r.profilePicture.sizes?.square?.url||r.profilePicture&&r.profilePicture.sizes?.thumbnail?.url||"";return console.log("val:",n),{name:r.name||"",about:r.about||"",image:{src:n,alt:r.name||"blog author"},socialLinks:[{icon:e(I,{}),href:r.linkedIn??""}]}});return console.log(d),e(b,{children:s("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[e("div",{children:s("div",{className:"[&_p+P]:mt-4",children:[e("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),e(g,{content:k,enableGutter:!1,className:"prose-invert"})]})}),s("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[l&&e("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:s(c,{children:[e(x,{children:e(v,{className:"text-accent",children:"Content Actions"})}),s(p,{children:[e("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),e(w,{href:`${o}${t.id}`,children:e(f,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),d&&d.map((r,n)=>e(L,{...r},n)),i&&i.links&&e("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:e(C,{links:i.links,title:i.title})})]})]})})}export{j as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{a as d}from"./chunk-FT3AE7L2.mjs";import{b as a}from"./chunk-ZUA4KNIR.mjs";import{a as m}from"./chunk-YO3GQYRJ.mjs";import{a as l}from"./chunk-MDJREBVI.mjs";import{Clock as u,Edit3 as g,Plus as N,Trash2 as f}from"lucide-react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function k({sessions:o,currentSession:c,teams:x,onNewChat:p,onSessionSelect:v,onSessionEdit:r,onSessionDelete:n,className:h}){return e("div",{className:`space-y-4 h-full ${h||""}`,children:t(m,{className:"shadow-sm h-full",children:[e("div",{className:"p-4 border-b",children:t("div",{className:"flex items-center justify-between",children:[t("h3",{className:"font-semibold text-sm flex items-center gap-2",children:[e(u,{className:"h-4 w-4"}),"Recent Chats"]}),t(a,{onClick:p,size:"sm",className:"gap-1 h-7 px-2 rounded-lg shadow-sm",children:[e(N,{className:"h-3 w-3"}),"New"]})]})}),e(d,{className:"h-[600px]",children:e("div",{className:"p-2",children:o.length===0?e("div",{className:"p-4 text-center text-sm text-muted-foreground",children:"No chat sessions yet"}):o.map(s=>e("div",{className:l("group relative p-3 rounded-xl cursor-pointer transition-all hover:bg-muted/50 mb-2",c?.id===s.id&&"bg-muted border"),onClick:()=>v(s),children:e("div",{className:"flex items-start gap-3",children:t("div",{className:"flex-1 min-w-0",children:[t("div",{className:"flex items-center justify-between mb-1",children:[e("h4",{className:"font-medium text-sm truncate",children:s.title}),e("div",{className:"flex items-center gap-1",children:t("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity flex gap-1",children:[r&&e(a,{variant:"ghost",size:"icon",className:"h-5 w-5 rounded",onClick:i=>{i.stopPropagation(),r(s.id)},children:e(g,{className:"h-3 w-3"})}),n&&e(a,{variant:"ghost",size:"icon",className:"h-5 w-5 rounded text-destructive hover:text-destructive",onClick:i=>{i.stopPropagation(),n(s.id)},children:e(f,{className:"h-3 w-3"})})]})})]}),e("p",{className:"text-xs text-muted-foreground line-clamp-2",children:s.lastMessage})]})})},s.id))})})]})})}export{k as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as c}from"./chunk-SV7NMNDI.mjs";import{a as d}from"./chunk-GWAEXG22.mjs";import{c as g}from"./chunk-YNNW2C2U.mjs";import{a as
|
|
1
|
+
import{a as c}from"./chunk-SV7NMNDI.mjs";import{a as d}from"./chunk-GWAEXG22.mjs";import{c as g}from"./chunk-YNNW2C2U.mjs";import{a as l}from"./chunk-WISCWNL2.mjs";import{a as p}from"./chunk-FMJBJ3HN.mjs";import{a as i}from"./chunk-MDJREBVI.mjs";import f from"next/image";import{FaArrowRight as x}from"react-icons/fa6";import{jsx as e,jsxs as r}from"react/jsx-runtime";function z({blogs:a,sectionHeading:t,base:n="insights"}){return r(p,{children:[e("div",{className:"",children:t&&e("div",{"data-aos":"fade-up","data-aos-delay":"100",children:e(d,{...t,alignment:"start",hasBottomSpacing:!0})})}),a&&a.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-start gap-y-4",children:a.map((s,o)=>e("div",{"data-aos":"fade-up","data-aos-delay":c([200,400,600],o),className:"w-full h-full md:w-1/2 md:px-4 lg:w-1/3",children:e(v,{...s,base:n})},o))})]})}var u=i("inline-flex items-center gap-2 text-white"),L=i("text-sm text-white");function v({slug:a,meta:t,authors:n,title:s,publishedAt:o,categories:h,base:m}){return r("article",{className:"group/blog relative z-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[e("span",{className:"absolute inset-0 z-[2] "}),e(f,{src:t?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:t?.image?.alt||"Blog image",fill:!0,sizes:`
|
|
2
2
|
(min-width:768px) 50vw,
|
|
3
3
|
(min-width:1024px) 33vw,
|
|
4
4
|
100vw
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-MZP7RIQZ.mjs";import{a as
|
|
1
|
+
import{a as n}from"./chunk-MZP7RIQZ.mjs";import{a as i}from"./chunk-OJZQH57M.mjs";import{a as l}from"./chunk-NC7WGIM5.mjs";import{a as m}from"./chunk-GEFCIPUN.mjs";import{ChevronRightIcon as c,HomeIcon as f}from"@heroicons/react/20/solid";import{Fragment as h,jsx as e,jsxs as a}from"react/jsx-runtime";var d={highImpact:i,lowImpact:l,mediumImpact:m,sectionHero:n},H=t=>{let{type:o}=t||{};if(!o||o==="none")return null;let r=d[o];return r?e(r,{...t}):null};function N({breadcrumbItems:t}){if(t&&t.length>0){let o=t.filter(r=>r.label.toLowerCase()!=="home");return e("nav",{"aria-label":"Breadcrumb",className:"flex",children:a("ol",{role:"list",className:"flex items-center space-x-4",children:[e("li",{children:e("div",{children:a("a",{href:"/",className:"text-foreground hover:text-accent",children:[e(f,{"aria-hidden":"true",className:"size-5 shrink-0"}),e("span",{className:"sr-only",children:"Home"})]})})}),o.map((r,s)=>e("li",{children:a("div",{className:"flex items-center",children:[e(c,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),r.href?e("a",{href:r.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:r.label}):e("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:r.label})]})},s))]})})}return e(h,{})}export{H as a,N as b};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{a as b}from"./chunk-FGH7ESCA.mjs";import{a as I}from"./chunk-5BK3HTPN.mjs";import{a as S}from"./chunk-L7W3JS7W.mjs";import{useChat as de}from"@ai-sdk/react";import{useState as n}from"react";import{motion as ue,AnimatePresence as me}from"framer-motion";import{Users as ge}from"lucide-react";import{jsx as s,jsxs as fe}from"react/jsx-runtime";function Re({aiConfig:w,useCustomChat:B,enableAI:F=!0,messages:D=[],businessUnits:x=[],capabilities:N=[],sidebarItems:M=[],notifications:R=[],sessions:T=[],onNewChat:A,onSessionSelect:P,onSessionDelete:k,onSessionEdit:L=()=>console.log("Session edit not implemented"),onBusinessUnitChange:E=()=>{},onNotificationRemove:K=()=>{},onRemoveAll:O=()=>{},onActionClick:$=()=>{},onSearch:q=c=>console.log("Search query:",c),initialTeam:z="design",currentSession:g=null,showCapabilities:he=!0,title:W="Digital Colleagues",enableFileUpload:f=!0,maxFileSize:h=10,allowedFileTypes:y=["image/*","text/*","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],logo:H="/headerlogo.png",appName:X="Nuvia",tagline:G="AI-Powered Workspace",actionIcon:J=s(ge,{className:"mr-2 h-4 w-4"}),actionText:Q="Collaborate",sidebarInitiallyClosed:V=!1}){let c=de(w||{}),o=F?B||c:null,[Y,d]=n(""),[Z,C]=n(!1),_=o?.messages||D,a=Y,j=o?.status==="submitted"||Z,i=x||[],ee={id:"default",name:"Default Team",description:"Default team when no business units are available",icon:"\u{1F3E2}",color:"bg-gray-500",accentColor:"bg-gray-600"},[te,se]=n(()=>i.length===0?ee:i.find(e=>e.id===z)||i[0]),[u,r]=n([]),[ie,ne]=n(!1),oe=e=>{if(!e||!f)return;let l=[];Array.from(e).forEach(t=>{if(t.size>h*1024*1024){alert(`File ${t.name} is too large. Maximum size is ${h}MB.`);return}if(y.length>0&&!y.some(p=>t.type.match(p))){alert(`File type ${t.type} is not allowed.`);return}let v={id:Date.now().toString()+Math.random().toString(36).substr(2,9),file:t,status:"pending",progress:0};if(t.type.startsWith("image/")){let p=new FileReader;p.onload=pe=>{r(ce=>ce.map(m=>m.id===v.id?{...m,preview:pe.target?.result}:m))},p.readAsDataURL(t)}l.push(v)}),r(t=>[...t,...l])},ae=e=>{r(l=>l.filter(t=>t.id!==e))},U=()=>{if(!(!a.trim()&&u.length===0)){if(o){let e={id:Date.now().toString(),role:"user",parts:[{type:"text",text:a}]};o.sendMessage(e),d("")}else console.log("Message to send:",a),console.log("Files to upload:",u),d(""),C(!0),setTimeout(()=>{C(!1)},1500);r([])}},re=e=>{e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),U())},le=e=>{d(e)};return s(b,{sidebarItems:M||[],title:W,notifications:R||[],businessUnits:i,currentBusinessUnit:te,onBusinessUnitChange:e=>{e&&(se(e),E?.(e))},onSearch:q,showTabs:!1,onActionClick:$,actionIcon:J,actionText:Q,onNotificationRemove:K,onRemoveAll:O,logo:H,appName:X,tagline:G,sidebarInitiallyClosed:V,children:s(me,{mode:"wait",children:s(ue.div,{className:"flex-1 h-full",initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:fe("div",{className:"h-full flex",children:[s("div",{className:"w-80 flex-shrink-0 h-full p-2",children:s(I,{sessions:T||[],currentSession:g,teams:i,onNewChat:A,onSessionSelect:P,onSessionEdit:L,onSessionDelete:k})}),s("div",{className:"flex-1 h-full p-2",children:s(S,{messages:_||[],input:a,isTyping:j,currentSessionTitle:g?.title,capabilities:N||[],onInputChange:le,onSendMessage:U,onKeyPress:re,fileUploads:u,isDragOver:ie,enableFileUpload:f,onFileUpload:oe,onRemoveFile:ae,onDragOver:ne})})]})},"chat-interface")})})}export{Re as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as
|
|
4
|
+
import{a as b,b as k}from"./chunk-L3SSJ5A3.mjs";import{a as y}from"./chunk-7WTM3LJ4.mjs";import{a as S}from"./chunk-5G3COZF4.mjs";import{a as C}from"./chunk-WU3JMLSC.mjs";import{a as w}from"./chunk-BZAYEKYC.mjs";import{a as g}from"./chunk-MZP7RIQZ.mjs";import{a as u}from"./chunk-OJZQH57M.mjs";import{a as v}from"./chunk-NC7WGIM5.mjs";import{a as f}from"./chunk-GEFCIPUN.mjs";import{c as m,f as p}from"./chunk-WYHDFQVL.mjs";import{a as d}from"./chunk-2BR55L74.mjs";import{a as s}from"./chunk-7WIO2CIC.mjs";import{a as x}from"./chunk-6C4WESLL.mjs";import{a as N}from"./chunk-CLGBBNRB.mjs";import{a as h}from"./chunk-FMJBJ3HN.mjs";import{a as n}from"./chunk-MDJREBVI.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:w,logoDark:C,...t.header}),e(I,{...t.hero}),e(c,{theme:"light",style:i,children:e(y,{...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(b,{...t.contact})}),e(c,{theme:"light",style:i,children:e(k,{...t.contact})}),e(c,{theme:"last",style:i,children:e(S,{...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 u}from"./chunk-AZKOVKSK.mjs";import{a as b}from"./chunk-M245YHYF.mjs";import{a as N}from"./chunk-3KITWLRN.mjs";import{a as m,b as d,c as p,d as f}from"./chunk-KY7WQYN4.mjs";import{b as a}from"./chunk-ZUA4KNIR.mjs";import{a as v,b as g,c as h}from"./chunk-SOLZ4VQH.mjs";import{useState as T}from"react";import{motion as e}from"framer-motion";import{Bell as $,Menu as q,PanelLeft as E,Bot as G}from"lucide-react";import{Fragment as J,jsx as t,jsxs as i}from"react/jsx-runtime";function at({title:Q,notifications:x=[],onToggleSidebar:w,onToggleMobileMenu:y,sidebarOpen:C=!0,className:A,activeTab:k="assistant",onTabChange:P,showTabs:O=!0,tabOptions:R=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:B,actionIcon:H=t(G,{className:"mr-2 h-4 w-4"}),actionText:j="Action",onNotificationRemove:z,onRemoveAll:D,logo:I="/headerlogo.png",appName:L="Nuvia",tagline:M="Collaboration Platform"}){let[F,l]=T(!1),[r,c]=T(x),n=r.filter(o=>!o.read).length,S=o=>{c(s=>s.filter(U=>U.id!==o)),z?.(o)},K=()=>{c(o=>o.filter(s=>s.read)),D?.()};return i(J,{children:[i("header",{className:`sticky top-0 z-10 flex h-16 items-center gap-3 px-4 backdrop-blur ${A||""}`,children:[t(a,{variant:"ghost",size:"icon",className:"md:hidden",onClick:y,children:t(q,{className:"h-5 w-5"})}),t(a,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:w,children:t(E,{className:"h-5 w-5"})}),!C&&i(e.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[t("div",{className:"flex h-10 w-10 items-center justify-center",children:t("img",{src:I,alt:"Logo",className:"h-10 w-10 object-contain"})}),i("div",{children:[t("h2",{className:"font-semibold text-sm",children:L}),t("p",{className:"text-xs text-muted-foreground",children:M})]})]}),i("div",{className:"flex flex-1 items-center",children:[O&&t(b,{activeTab:k,onTabChange:P,tabOptions:R}),i("div",{className:"flex items-center gap-3 ml-auto",children:[t(e.div,{className:"hidden md:flex gap-2",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:t(e.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:i(a,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:B,children:[H,j]})})}),t(u,{}),t(m,{children:i(d,{children:[t(p,{asChild:!0,children:t(e.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:i(a,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>l(!0),children:[t(e.div,{animate:n>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:n>0?1/0:0,repeatDelay:3},children:t($,{className:"h-5 w-5"})}),n>0&&t(e.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:n})]})})}),t(f,{children:"Notifications"})]})}),t(e.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:i(v,{className:"h-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[t(g,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),t(h,{})]})})]})]})]}),t(N,{notifications:r,open:F,onClose:()=>l(!1),onNotificationRemove:S,onRemoveAll:K})]})}export{at as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{a}from"./chunk-V7F26YS5.mjs";import{a as f}from"./chunk-CBLP4MXP.mjs";import{a as g}from"./chunk-MDJREBVI.mjs";import{useState as l}from"react";import{User as P}from"lucide-react";import{jsx as i,jsxs as v}from"react/jsx-runtime";var b=[{id:"copilot",name:"Peronal Copilot",description:"Your personal AI assistant for all tasks",icon:i(P,{className:"h-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"}];function E({sidebarItems:r,children:h,title:U="Digital Colleagues",notifications:C=[],currentBusinessUnit:N=b[0],onBusinessUnitChange:B,onSearch:c,businessUnits:D=b,activeTab:x,onTabChange:T,showTabs:y=!1,onActionClick:R,actionIcon:A,actionText:S="Action",onNotificationRemove:k,onRemoveAll:w,logo:n="/headerlogo.png",appName:o="Nuvia",tagline:s="Collaboration Platform",sidebarInitiallyClosed:M=!1}){let[e,O]=l(!M),[d,t]=l(!1),[m,I]=l(N),u=p=>{I(p),B?.(p)};return v("div",{className:"flex h-full flex-col overflow-hidden rounded-xl bg-background w-[]",children:[d&&i("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>t(!1)}),i("div",{className:"md:hidden",children:i(a,{items:r,isOpen:d,isMobile:!0,onClose:()=>t(!1),currentBusinessUnit:m,onBusinessUnitChange:u,onSearch:c,logo:n,appName:o,tagline:s})}),i("div",{className:"hidden md:block",children:i(a,{items:r,isOpen:e,isMobile:!1,currentBusinessUnit:m,onBusinessUnitChange:u,onSearch:c,logo:n,appName:o,tagline:s})}),v("div",{className:g("min-h-screen fixed w-full transition-all duration-300 ease-in-out",e?"md:pl-64":"md:pl-0"),children:[i(f,{title:U,notifications:C,onToggleSidebar:()=>O(!e),onToggleMobileMenu:()=>t(!0),sidebarOpen:e,activeTab:x,onTabChange:T,showTabs:y,onActionClick:R,actionIcon:A,actionText:S,onNotificationRemove:k,onRemoveAll:w,logo:n,appName:o,tagline:s}),i("main",{className:"flex-1 p-0 flex flex-col h-[calc(100vh-4rem)] overflow-auto",children:h})]})]})}export{E as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{c as A}from"./chunk-PA4ZBJDO.mjs";import{a as I}from"./chunk-INCYANPB.mjs";import{a as f}from"./chunk-FT3AE7L2.mjs";import{a as B,f as D,g as F,i as U}from"./chunk-3UMMMQEH.mjs";import{a as k}from"./chunk-L5JPAKPM.mjs";import{b as C}from"./chunk-ZUA4KNIR.mjs";import{b as m}from"./chunk-CSBGSBEU.mjs";import{a as o}from"./chunk-MDJREBVI.mjs";import{a as L}from"./chunk-FLHDNCNY.mjs";import*as u from"react";import R from"next/link";import{ChevronDown as J,Search as Y,Settings as Z,X as _}from"lucide-react";import{Fragment as $,jsx as t,jsxs as n}from"react/jsx-runtime";function he({items:v,isOpen:x,isMobile:l=!1,onClose:g,currentBusinessUnit:ee=A[0],onBusinessUnitChange:E,onSearch:H,className:h,logo:P="/headerlogo.png",appName:j="Nuvia",tagline:T="Collaboration Platform"}){let[b,z]=u.useState({}),[d,K]=L("sidebar-favorites",{}),[N,y]=u.useState(null),[p,Q]=u.useState(""),q=e=>{z(a=>({...a,[e]:!a[e]}))},te=e=>{E?.(e)},M=()=>{p.trim()&&H?.(p.trim())},O=e=>{e.key==="Enter"&&(e.preventDefault(),M())},V=(e,a)=>{let s=d[e]||[],r=s.includes(a)?s.filter(i=>i!==a):s.concat(a);K({...d,[e]:r})},c=e=>{if(!e.items||!e.maxItems||e.items.length<=e.maxItems)return e.items||[];let a=d[e.id]||[],s=e.items.filter(i=>a.includes(i.id)),r=e.items.filter(i=>!a.includes(i.id));return[...s,...r].slice(0,e.maxItems)},S=e=>e.maxItems&&e.items&&e.items.length>e.maxItems,W=v,X=e=>{let a=S(e),s=c(e),r=n($,{children:[n("div",{className:"flex items-center gap-3",children:[e.icon,t("span",{children:e.title})]}),e.badge&&t(m,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:e.badge}),e.items&&t(J,{className:o("ml-2 h-4 w-4 transition-transform",b[e.title]?"rotate-180":"")})]}),i=o("flex w-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",e.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return e.url?t(R,{href:e.url,className:i,onClick:l?g:void 0,children:r}):t("button",{className:i,onClick:()=>e.items&&q(e.title),children:r})},G=()=>{let e=v.find(s=>s.id===N);if(!e||!e.items||!e.maxItems)return null;let a=d[e.id]||[];return t(B,{open:!!N,onOpenChange:s=>!s&&y(null),children:n(D,{className:"sm:max-w-md",children:[n(F,{children:[n(U,{children:["Manage ",e.title," Favorites"]}),n("p",{className:"text-sm text-muted-foreground",children:["Select up to ",e.maxItems," items to show in ",e.title.toLowerCase(),"."]})]}),t(f,{className:"max-h-96 pr-4",children:t("div",{className:"space-y-4",children:e.items.map(s=>n("div",{className:"flex items-center space-x-2",children:[t(I,{id:s.id,checked:a.includes(s.id),onCheckedChange:()=>V(e.id,s.id),disabled:!a.includes(s.id)&&a.length>=(e.maxItems||0)}),n("label",{htmlFor:s.id,className:"flex items-center gap-2 text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 cursor-pointer flex-1",children:[s.title,s.badge&&t(m,{variant:"outline",className:"text-xs",children:s.badge})]})]},s.id))})})]})})},w=n("div",{className:"flex h-full flex-col bg-background",children:[n("div",{className:"flex items-center justify-between p-4",children:[n("div",{className:"flex items-center gap-3",children:[t("div",{className:"flex h-14 w-14 items-center justify-center",children:t("img",{src:P,alt:"Header Logo",className:"h-14 w-14 object-contain"})}),n("div",{children:[t("h2",{className:"font-semibold",children:j}),t("p",{className:"text-xs text-muted-foreground",children:T})]})]}),l&&t(C,{variant:"ghost",size:"icon",onClick:g,children:t(_,{className:"h-5 w-5"})})]}),t("div",{className:"px-3 py-2",children:n("div",{className:"relative",children:[t(Y,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),t(k,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:p,onChange:e=>Q(e.target.value),onKeyPress:O})]})}),t(f,{className:"flex-1 px-3 py-2",children:t("div",{className:"space-y-1",children:W.map(e=>n("div",{className:"mb-1",children:[X(e),e.items&&b[e.title]&&n("div",{className:"mt-1 ml-6 space-y-1 border-l pl-3",children:[c(e).map(a=>n(R,{href:a.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:l?g:void 0,children:[a.title,a.badge&&t(m,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:a.badge})]},a.id)),S(e)&&e.items&&e.items.length>c(e).length&&n("button",{onClick:()=>y(e.id),className:"w-full px-3 py-2 text-xs text-muted-foreground hover:text-foreground hover:bg-muted rounded-2xl transition-colors text-left",children:["...",e.items.length-c(e).length," more available"]})]})]},e.id))})}),t("div",{className:"p-3",children:t("div",{className:"space-y-1",children:n("button",{className:"flex w-full items-center gap-3 rounded-2xl px-3 py-2 text-sm font-medium hover:bg-muted",children:[t(Z,{className:"h-5 w-5"}),t("span",{children:"Settings"})]})})}),t(G,{})]});return l?t("div",{className:o("fixed inset-y-0 left-0 z-50 w-64 transform bg-background transition-transform duration-300 ease-in-out",x?"translate-x-0":"-translate-x-full",h),children:w}):t("div",{className:o("fixed inset-y-0 left-0 z-30 w-64 transform bg-background transition-transform duration-300 ease-in-out",x?"translate-x-0":"-translate-x-full",h),children:w})}export{he as a};
|
|
@@ -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("framer-motion"),$=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 border-b bg-background/95 px-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("framer-motion"),$=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 px-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-CBLP4MXP.mjs";import"../../chunk-AZKOVKSK.mjs";import"../../chunk-M245YHYF.mjs";import"../../chunk-3KITWLRN.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};
|
|
@@ -35,7 +35,8 @@ interface CopilotInterfaceProps {
|
|
|
35
35
|
tagline?: string;
|
|
36
36
|
actionIcon?: React.ReactNode;
|
|
37
37
|
actionText?: string;
|
|
38
|
+
sidebarInitiallyClosed?: boolean;
|
|
38
39
|
}
|
|
39
40
|
export declare function CopilotInterface({ aiConfig, useCustomChat, enableAI, messages, businessUnits, capabilities, sidebarItems, notifications, sessions, onNewChat, onSessionSelect, onSessionDelete, onSessionEdit, onBusinessUnitChange, onNotificationRemove, onRemoveAll, onActionClick, onSearch, initialTeam, currentSession, showCapabilities, title, enableFileUpload, maxFileSize, // 10MB default
|
|
40
|
-
allowedFileTypes, logo, appName, tagline, actionIcon, actionText, }: CopilotInterfaceProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
allowedFileTypes, logo, appName, tagline, actionIcon, actionText, sidebarInitiallyClosed, }: CopilotInterfaceProps): import("react/jsx-runtime").JSX.Element;
|
|
41
42
|
export {};
|