cortex-react-components 2.0.3 → 2.0.5
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-XI5H6WLY.mjs → chunk-2GZQYAN3.mjs} +1 -1
- package/dist/chunk-2VR4KIQL.mjs +4 -0
- package/dist/{chunk-WHDJPD5E.mjs → chunk-45DDMEV4.mjs} +1 -1
- package/dist/{chunk-HH3AWPYB.mjs → chunk-5KS3DITB.mjs} +1 -1
- package/dist/{chunk-G6ED5Z4J.mjs → chunk-66ODXUVL.mjs} +1 -1
- package/dist/{chunk-LAQ3QAUW.mjs → chunk-75WE6ZXB.mjs} +1 -1
- package/dist/{chunk-PLTKMHUH.mjs → chunk-BDNY6OKE.mjs} +1 -1
- package/dist/{chunk-IUT6JJHY.mjs → chunk-BGADMIWV.mjs} +1 -1
- package/dist/{chunk-DUEPJ3F4.mjs → chunk-BN747TQM.mjs} +1 -1
- package/dist/{chunk-A3SUL73A.mjs → chunk-FXTFE74U.mjs} +1 -1
- package/dist/{chunk-KXZFR7TI.mjs → chunk-GH3F4DKW.mjs} +1 -1
- package/dist/{chunk-6T4OEOJH.mjs → chunk-GIL2SMPM.mjs} +1 -1
- package/dist/{chunk-XBCYPOFD.mjs → chunk-GTK2SGS5.mjs} +1 -1
- package/dist/{chunk-U7GAPI7X.mjs → chunk-I4LKRX2X.mjs} +1 -1
- package/dist/{chunk-ISBVFNWD.mjs → chunk-IDG2O4B7.mjs} +1 -1
- package/dist/chunk-IPV2NFB6.mjs +1 -0
- package/dist/chunk-JHSHXYPK.mjs +4 -0
- package/dist/{chunk-VKJ7E6OL.mjs → chunk-JLUX7EHB.mjs} +1 -1
- package/dist/{chunk-436WKDWG.mjs → chunk-JT65KF7C.mjs} +1 -1
- package/dist/chunk-LUPNE23E.mjs +1 -0
- package/dist/{chunk-KJMXSFJA.mjs → chunk-M74BIPBM.mjs} +1 -1
- package/dist/{chunk-OJYMSL24.mjs → chunk-NBWEIVGC.mjs} +1 -1
- package/dist/{chunk-EVZSRWUW.mjs → chunk-NXG2Y4N4.mjs} +1 -1
- package/dist/chunk-PA4ZBJDO.mjs +1 -0
- package/dist/{chunk-QDAJ7QAD.mjs → chunk-PRK2XFAZ.mjs} +1 -1
- package/dist/{chunk-EG646342.mjs → chunk-RVDQVN5C.mjs} +1 -1
- package/dist/{chunk-LC2RBE7W.mjs → chunk-S5BLSQXV.mjs} +1 -1
- package/dist/chunk-SWA5TRPZ.mjs +4 -0
- package/dist/{chunk-S562PA5P.mjs → chunk-T36QUKC6.mjs} +1 -1
- package/dist/{chunk-UIMLXZPF.mjs → chunk-TCXAETN2.mjs} +1 -1
- package/dist/{chunk-V2KCUPP5.mjs → chunk-TRFGSHZW.mjs} +1 -1
- package/dist/{chunk-TO2UDP5T.mjs → chunk-UA76VX54.mjs} +1 -1
- package/dist/{chunk-X3JZSN3W.mjs → chunk-UZSBX5GO.mjs} +1 -1
- package/dist/{chunk-OEFXIEY3.mjs → chunk-V5W32NJ4.mjs} +1 -1
- package/dist/{chunk-XGIYNUGC.mjs → chunk-VNYUNZ3M.mjs} +1 -1
- package/dist/{chunk-2BR55L74.mjs → chunk-VRE6VCHX.mjs} +1 -1
- package/dist/{chunk-IQ3TUH7O.mjs → chunk-WDZOGIT2.mjs} +1 -1
- package/dist/{chunk-L3BLBPSR.mjs → chunk-WUA65ZZB.mjs} +1 -1
- package/dist/{chunk-M4NJB4NN.mjs → chunk-Y62OBV2E.mjs} +1 -1
- package/dist/chunk-ZCEVYZEO.mjs +4 -0
- package/dist/{chunk-DY2G774J.mjs → chunk-ZZ6VZFRV.mjs} +1 -1
- package/dist/components/AdvancedComponents/sidebar.js +1 -1
- package/dist/components/AdvancedComponents/sidebar.mjs +3 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/Chat/CAPABILITIES_README.js +12 -5
- package/dist/components/Chat/CAPABILITIES_README.mjs +12 -5
- package/dist/components/Chat/{EnhancedChatInterface.d.ts → ChatInterface.d.ts} +4 -6
- package/dist/components/Chat/ChatInterface.js +5 -0
- package/dist/components/Chat/ChatInterface.mjs +1 -0
- package/dist/components/Chat/CopilotInterface.d.ts +27 -86
- package/dist/components/Chat/CopilotInterface.js +1 -1
- package/dist/components/Chat/CopilotInterface.mjs +1 -1
- package/dist/components/Chat/chat-session-sidebar.d.ts +0 -2
- 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.d.ts +7 -0
- package/dist/components/Chat/demo.js +5 -0
- package/dist/components/Chat/demo.mjs +1 -0
- package/dist/components/Chat/example-usage.d.ts +39 -0
- package/dist/components/Chat/example-usage.js +5 -0
- package/dist/components/Chat/example-usage.mjs +1 -0
- package/dist/components/Chat/index.d.ts +2 -0
- package/dist/components/Chat/index.js +2 -2
- package/dist/components/Chat/index.mjs +1 -1
- package/dist/components/Chat/types.d.ts +16 -0
- package/dist/components/Chat/types.js +1 -0
- package/dist/components/Chat/types.mjs +1 -0
- 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/Views/ColleaguesView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/sidebar-favorites-readme.js +228 -0
- package/dist/components/DigitalColleagues/sidebar-favorites-readme.mjs +228 -0
- package/dist/components/{dc-temp/sidebar.d.ts → DigitalColleagues/sidebar-new.d.ts} +3 -2
- package/dist/components/DigitalColleagues/sidebar-new.js +5 -0
- package/dist/components/DigitalColleagues/sidebar-new.mjs +4 -0
- package/dist/components/DigitalColleagues/sidebar.css +1 -0
- package/dist/components/DigitalColleagues/sidebar.d.ts +17 -0
- package/dist/components/DigitalColleagues/sidebar.js +5 -0
- package/dist/components/DigitalColleagues/sidebar.mjs +2 -0
- package/dist/components/DigitalColleagues/test-data.js +1 -1
- package/dist/components/DigitalColleagues/test-data.mjs +1 -1
- package/dist/components/DigitalColleagues/types.d.ts +3 -0
- package/dist/components/DigitalColleagues/types.js +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/enhanced-header.css +1 -0
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/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/Payload/Card/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Media/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.js +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/dc-temp/dashboard-integration-example.mjs +1 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.js +10 -10
- package/dist/components/index.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/index.js +15 -15
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +6 -2
- package/dist/chunk-5Z5PL7N3.mjs +0 -1
- package/dist/chunk-DLUWDQSW.mjs +0 -4
- package/dist/chunk-R7LPCFUJ.mjs +0 -4
- package/dist/chunk-TO7KJNKC.mjs +0 -4
- package/dist/chunk-UNS6CTQZ.mjs +0 -4
- package/dist/components/.archive/ai-chat-interface.d.ts +0 -70
- package/dist/components/Chat/EnhancedChatInterface.js +0 -5
- package/dist/components/Chat/EnhancedChatInterface.mjs +0 -4
- package/dist/components/Chat/ai-chat-interface.d.ts +0 -70
- package/dist/components/Chat/ai-chat-interface.js +0 -5
- package/dist/components/Chat/ai-chat-interface.mjs +0 -4
- package/dist/components/dc-temp/sidebar.js +0 -5
- package/dist/components/dc-temp/sidebar.mjs +0 -4
- /package/dist/components/Chat/{EnhancedChatInterface.css → ChatInterface.css} +0 -0
- /package/dist/components/Chat/{ai-chat-interface.css → demo.css} +0 -0
- /package/dist/components/{dc-temp/enhanced-header.css → Chat/example-usage.css} +0 -0
- /package/dist/components/{dc-temp/sidebar.css → DigitalColleagues/sidebar-new.css} +0 -0
- /package/dist/components/{dc-temp → HeaderFooter}/enhanced-header.d.ts +0 -0
- /package/dist/components/{dc-temp → HeaderFooter}/enhanced-header.js +0 -0
- /package/dist/components/{dc-temp → HeaderFooter}/enhanced-header.mjs +0 -0
|
@@ -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]||[],i=s.includes(a)?s.filter(r=>r!==a):s.concat(a);K({...d,[e]:i})},c=e=>{if(!e.items||!e.maxItems||e.items.length<=e.maxItems)return e.items||[];let a=d[e.id]||[],s=e.items.filter(r=>a.includes(r.id)),i=e.items.filter(r=>!a.includes(r.id));return[...s,...i].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),i=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":"")})]}),r=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:r,onClick:l?g:void 0,children:i}):t("button",{className:r,onClick:()=>e.items&&q(e.title),children:i})},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 border-r 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:"border-t 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 border-r bg-background transition-transform duration-300 ease-in-out",x?"translate-x-0":"-translate-x-full",h),children:w})}export{he as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as t}from"./chunk-
|
|
1
|
+
import{f as t}from"./chunk-BGADMIWV.mjs";import{b as o}from"./chunk-ZUA4KNIR.mjs";import{a as r}from"./chunk-MDJREBVI.mjs";import s from"next/link";import{jsx as i,jsxs as n}from"react/jsx-runtime";var p=({dynamicServiceDetail:c,style:a})=>{let e=c;return i("div",{className:"container",children:n("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[n("div",{className:r("w-full text-left prose"),children:[i("h2",{className:"text-primary",children:e.title}),i("div",{className:"",children:i(t,{enableGutter:!1,content:e.description,enableProse:!1,className:r("prose prose-headings:text-foreground prose-p:text-foreground")})}),i(o,{asChild:!0,className:"mt-6 px-6 py-3 border border-accent text-foreground bg-background rounded-full hover:bg-accent hover:text-accent-foreground transition no-underline",children:i(s,{href:`/${e.slug}`,children:"Learn more"})})]}),e.icon&&typeof e.icon=="object"&&"type"in e.icon&&"iconName"in e.icon&&i("div",{className:r("w-full h-full min-h-96 py-6 p-0 md:p-16 flex justify-center"),children:i("i",{className:`${e.icon.type} fa-${e.icon.iconName} fa-10x w-3/4 h-full text-foreground fill-gradient-linear`,style:{width:"90%"}})})]})})};export{p as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as
|
|
4
|
+
import{a as O}from"./chunk-OB5WMODY.mjs";import{a as X}from"./chunk-RUOYGMOR.mjs";import{a as Y}from"./chunk-WN2LPOQP.mjs";import{a as Z}from"./chunk-BADFWNRL.mjs";import{a as N}from"./chunk-TUI4S4GI.mjs";import{a as R}from"./chunk-AVHFRD6D.mjs";import{a as J}from"./chunk-2NMVE5M4.mjs";import{a as Q}from"./chunk-M245YHYF.mjs";import{a as H,c as U,d as F,g as I,i as c}from"./chunk-YFAZQYK4.mjs";import{a as W}from"./chunk-L5JPAKPM.mjs";import{b as V}from"./chunk-ZUA4KNIR.mjs";import{a as g,b as x,c as D,e as u}from"./chunk-YO3GQYRJ.mjs";import{useState as s}from"react";import{Plus as Ce,Search as fe,Users as _,Bot as ve,User as he,Filter as ye}from"lucide-react";import{motion as we,AnimatePresence as xe}from"framer-motion";import{jsx as t,jsxs as l}from"react/jsx-runtime";function De({initialColleagues:ee,onColleagueAdd:S,onColleagueEdit:te,onColleagueDelete:le,compactView:d=!1,departments:ae=["Design","Engineering","Marketing","Product","Sales","Operations"],className:ie,availableUsers:oe=[],existingDigitalColleagues:K=[]}){let[n,p]=s(ee||[]),[r,L]=s(""),[C,$]=s("all"),[f,j]=s("all"),[y,ne]=s("all"),[P,v]=s(null),[b,w]=s(null),[m,a]=s("main"),h=n.filter(e=>{let o=e.name.toLowerCase().includes(r.toLowerCase())||e.type==="human"&&(e.email.toLowerCase().includes(r.toLowerCase())||e.role.toLowerCase().includes(r.toLowerCase()))||e.type==="digital"&&e.jobDescription.toLowerCase().includes(r.toLowerCase()),i=C==="all"||e.type==="human"&&e.department===C,E=f==="all"||e.status===f;return o&&i&&E}),B=h.filter(e=>e.type==="human"),M=h.filter(e=>e.type==="digital"),q=()=>{a("typeSelection")},T=e=>{e.type==="digital"&&(v(e),a("form"))},k=e=>{e.type==="digital"&&(w(e),a("view"))},se=e=>{let o={id:`human-${Date.now()}`,type:"human",name:e.name,email:e.email,role:e.role,department:e.department,phone:e.phone,location:e.location,timezone:e.timezone,skills:e.skills,bio:e.bio,status:"active",joinedDate:new Date,lastActive:new Date};p(i=>[...i,o]),S?.(o),a("main")},re=e=>{p(o=>[...o,e]),S?.(e),a("main")},de=()=>{v(null),a("form")},z=e=>{P?(p(o=>o.map(i=>i.id===e.id?e:i)),te?.(e)):(p(o=>[...o,e]),S?.(e)),a("main"),v(null)},me=()=>{a("main"),v(null),w(null)},ce=()=>{a("main"),w(null)},Ne=()=>{b&&(v(b),w(null),a("form"))},A=e=>{p(o=>o.filter(i=>i.id!==e)),le?.(e)},ge=()=>{L(""),$("all"),j("all")},G=()=>{let e=[];return K.forEach(i=>{e.push(...i.knowledge,...i.coreKnowledge)}),n.forEach(i=>{i.type==="digital"&&e.push(...i.knowledge,...i.coreKnowledge)}),e.filter((i,E,ue)=>E===ue.findIndex(pe=>pe.id===i.id))};return m==="typeSelection"?t(X,{onSelectHuman:()=>a("userSelection"),onSelectDigital:()=>a("digitalOptions"),onCancel:()=>a("main")}):m==="userSelection"?t(R,{users:oe,onUserSelect:se,onCancel:()=>a("typeSelection")}):m==="digitalOptions"?t(Z,{onCloneExisting:()=>a("digitalClone"),onCreateNew:de,onCancel:()=>a("typeSelection")}):m==="digitalClone"?t(Y,{digitalColleagues:K,onColleagueClone:re,onCancel:()=>a("digitalOptions")}):m==="form"?t(O,{colleague:P||void 0,onSave:z,onCancel:me,availableKnowledgeDocuments:G()}):m==="view"?t(O,{colleague:b||void 0,onSave:z,onCancel:ce,readOnly:!0,availableKnowledgeDocuments:G()}):t("div",{className:"px-2 md:px-4 py-4 space-y-8",children:t(xe,{mode:"wait",children:t(we.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:l("div",{className:`space-y-6 ${ie||""}`,children:[t(J,{title:"Colleagues",description:"Manage your team members and digital colleagues.",gradient:"bg-gradient-to-r from-green-600 via-emerald-600 to-teal-600",primaryAction:{label:"Add colleague",onClick:q}}),l("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[l(g,{children:[l(x,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t(D,{className:"text-sm font-medium",children:"Total Colleagues"}),t(_,{className:"h-4 w-4 text-muted-foreground"})]}),l(u,{children:[t("div",{className:"text-2xl font-bold",children:n.length}),l("p",{className:"text-xs text-muted-foreground",children:[n.filter(e=>e.status==="active").length," active"]})]})]}),l(g,{children:[l(x,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t(D,{className:"text-sm font-medium",children:"Human Members"}),t(he,{className:"h-4 w-4 text-muted-foreground"})]}),l(u,{children:[t("div",{className:"text-2xl font-bold",children:n.filter(e=>e.type==="human").length}),l("p",{className:"text-xs text-muted-foreground",children:[n.filter(e=>e.type==="human"&&e.status==="active").length," active"]})]})]}),l(g,{children:[l(x,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[t(D,{className:"text-sm font-medium",children:"Digital Colleagues"}),t(ve,{className:"h-4 w-4 text-muted-foreground"})]}),l(u,{children:[t("div",{className:"text-2xl font-bold",children:n.filter(e=>e.type==="digital").length}),l("p",{className:"text-xs text-muted-foreground",children:[n.filter(e=>e.type==="digital"&&e.status==="active").length," active"]})]})]})]}),t(g,{children:t(u,{className:"pt-6",children:l("div",{className:"flex flex-col md:flex-row gap-4",children:[t("div",{className:"flex-1",children:l("div",{className:"relative",children:[t(fe,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),t(W,{placeholder:"Search colleagues...",value:r,onChange:e=>L(e.target.value),className:"pl-9"})]})}),l(H,{value:C,onValueChange:$,children:[t(F,{className:"w-full md:w-[180px]",children:t(U,{placeholder:"Department"})}),l(I,{children:[t(c,{value:"all",children:"All Departments"}),ae.map(e=>t(c,{value:e,children:e},e))]})]}),l(H,{value:f,onValueChange:j,children:[t(F,{className:"w-full md:w-[140px]",children:t(U,{placeholder:"Status"})}),l(I,{children:[t(c,{value:"all",children:"All Status"}),t(c,{value:"active",children:"Active"}),t(c,{value:"inactive",children:"Inactive"})]})]}),(r||C!=="all"||f!=="all")&&l(V,{variant:"outline",onClick:ge,className:"gap-2",children:[t(ye,{className:"h-4 w-4"}),"Clear"]})]})})}),l("div",{className:"space-y-4",children:[t(Q,{activeTab:y,onTabChange:ne,tabOptions:[{value:"all",label:`All (${h.length})`},{value:"human",label:`Human (${B.length})`},{value:"digital",label:`Digital (${M.length})`}],maxWidth:"400px",gridCols:3}),y==="all"&&t("div",{className:`grid gap-4 ${d?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:h.map(e=>t(N,{colleague:e,onEdit:T,onDelete:A,onViewDetails:k,compact:d},e.id))}),y==="human"&&t("div",{className:`grid gap-4 ${d?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:B.map(e=>t(N,{colleague:e,onEdit:T,onDelete:A,onViewDetails:k,compact:d},e.id))}),y==="digital"&&t("div",{className:`grid gap-4 ${d?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:M.map(e=>t(N,{colleague:e,onEdit:T,onDelete:A,onViewDetails:k,compact:d},e.id))})]}),h.length===0&&t(g,{children:t(u,{className:"pt-6",children:l("div",{className:"text-center py-8",children:[t(_,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),t("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),t("p",{className:"text-muted-foreground mb-4",children:r||C!=="all"||f!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first colleague."}),l(V,{onClick:q,className:"gap-2",children:[t(Ce,{className:"h-4 w-4"}),"Add Colleague"]})]})})})]})},"projects-index-view")})})}export{De as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as y}from"./chunk-
|
|
4
|
+
import{a as y}from"./chunk-WDZOGIT2.mjs";import{a as S}from"./chunk-GIL2SMPM.mjs";import{a as b,b as k}from"./chunk-NXG2Y4N4.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-5KS3DITB.mjs";import{a as v}from"./chunk-Y62OBV2E.mjs";import{a as f}from"./chunk-BN747TQM.mjs";import{c as m,f as p}from"./chunk-BGADMIWV.mjs";import{a as d}from"./chunk-VRE6VCHX.mjs";import{a as s}from"./chunk-7WIO2CIC.mjs";import{a as x}from"./chunk-6C4WESLL.mjs";import{a as N}from"./chunk-75WE6ZXB.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as O}from"./chunk-FOISWNF5.mjs";import{a as P}from"./chunk-6YHVVP3S.mjs";import{a as w}from"./chunk-AMV3MECK.mjs";import{a as h}from"./chunk-ORNGKQM7.mjs";import{a as b}from"./chunk-2VZWOBGP.mjs";import{a as D}from"./chunk-2NMVE5M4.mjs";import{b as C}from"./chunk-CSBGSBEU.mjs";import{useState as n}from"react";import{Fragment as X,jsx as e,jsxs as d}from"react/jsx-runtime";var cs=({initialTasks:B=[],initialEpics:N=[],initialSprints:x=[],initialProjects:Y=[],onAddTask:M,onUpdateTask:k,onDeleteTask:v,onTaskClick:j,onAddEpic:I})=>{let[K,r]=n(B),[o,R]=n(N),[m,Z]=n(x),[F,E]=n(!1),[H,A]=n(!1),[c,u]=n(null),[T,S]=n(null),y=o.filter(s=>s.isSelected).map(s=>s.id),l=m.find(s=>s.isSelected),U=K.filter(s=>{let t=y.includes(s.epicId);return!l||l.id==="all-tasks"?t:l.id==="backlog"?t&&!s.sprintId:t&&s.sprintId===l.id}),V=s=>U.filter(t=>t.status===s),$=s=>{let t={};return o.forEach(i=>{t[i.id]=s.filter(a=>a.epicId===i.id)}),t},q=s=>{S(s)},z=s=>{T&&(r(t=>t.map(i=>i.id===T.id?{...i,status:s}:i)),k?.(T.id,{status:s}),S(null))},G=s=>{let t={...s,id:Date.now().toString(),createdAt:new Date};r(i=>[...i,t]),M?.(s)},J=async(s,t)=>{r(i=>i.map(a=>a.id===s?{...a,...t}:a)),k&&await k(s,t)},L=async s=>{r(t=>t.filter(i=>i.id!==s)),c?.id===s&&u(null),v&&await v(s)},Q=s=>{let t={...s,id:Date.now().toString(),isSelected:!0};R(i=>[...i,t]),I?.(s)},W=s=>{u(s),j?.(s)};return d("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[e(D,{title:"Project Board",description:"Manage tasks and track progress across your project sprints.",gradient:"bg-gradient-to-r from-purple-600 via-violet-600 to-indigo-600",primaryAction:{label:"Add task",onClick:()=>E(!0)},secondaryAction:{label:"Add epic",onClick:()=>A(!0)}}),e("div",{className:"flex-1",children:d("div",{className:"w-full",children:[e("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:[{id:"todo",title:"To Do",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}].map(s=>{let t=V(s.status),i=$(t);return e(w,{title:s.title,status:s.status,taskCount:t.length,onDrop:z,isCompact:s.status==="done",children:y.map(a=>{let f=o.find(p=>p.id===a),g=i[a]||[];return g.length===0?null:d("div",{className:"mb-6",children:[d("div",{className:"flex items-center gap-2 mb-3",children:[e("div",{className:`w-3 h-3 rounded-full ${f?.color}`}),e("span",{className:"text-sm font-medium text-muted-foreground select-none-important",children:f?.name}),e(C,{variant:"secondary",className:"text-xs",children:g.length})]})," ",e("div",{className:"space-y-3",children:g.map(p=>e(P,{task:p,epic:f,onDragStart:q,onTaskClick:W,isCompact:s.status==="done"},p.id))})]},a)})},s.id)})}),d(X,{children:[e(b,{isOpen:F,onClose:()=>E(!1),onAddTask:G,epics:o,sprints:m}),e(h,{isOpen:H,onClose:()=>A(!1),onAddEpic:Q}),c&&e(O,{isOpen:!!c,onClose:()=>u(null),task:c,epics:o,sprints:m,onUpdateTask:J,onDeleteTask:L})]})]})})]})};export{cs as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-VRE6VCHX.mjs";import{a as e}from"./chunk-MDJREBVI.mjs";import{jsx as r}from"react/jsx-runtime";var d=o=>{let{className:t,enableGutter:s=!0,imgClassName:m,media:i,staticImage:l}=o;return r("div",{className:e("h-full ",{container:s},t),children:r(a,{imgClassName:e("rounded-[0.8rem]",m),className:"flex justify-center",resource:i,src:l})})};export{d as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as
|
|
4
|
+
import{a as v}from"./chunk-TZKQXT7Y.mjs";import{a as y}from"./chunk-5AWZJAK3.mjs";import{a as f}from"./chunk-GS2VFNHY.mjs";import{a as g}from"./chunk-7EXAS7HK.mjs";import{useState as N}from"react";import{ChevronDown as q}from"lucide-react";import{CalendarDays as P,Grid as R,PlusCircle as k,CheckSquare as A}from"lucide-react";import{useRouter as V}from"next/navigation";import{format as S,parseISO as H}from"date-fns";import{jsx as r,jsxs as t}from"react/jsx-runtime";function b(...s){return s.filter(Boolean).join(" ")}function z({holidays:s,currentUser:o,currentDate:h,leaveApprovals:w,employees:x,submitLeaveRequest:n,approveLeave:i,rejectLeave:m}){let[a,c]=N("Calendar View"),L=V(),C=!1,d=H(h),l=async e=>{let D=S(e,"dd-MM-yyyy"),p=new URL(window.location.href);return p.searchParams.set("date",D),L.push(p.toString()),{success:!0}};if(C)return r("div",{className:"flex justify-center items-center h-screen",children:r("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let u=[{name:"Grid View",icon:R,current:a==="Grid View"},{name:"Calendar View",icon:P,current:a==="Calendar View"},{name:"Request Leave",icon:k,current:a==="Request Leave"},{name:"Approve Leave",icon:A,current:a==="Approve Leave"}];return t("div",{className:"container mx-auto p-4 h-full",children:[t("div",{className:"mb-8",children:[t("div",{className:"sm:hidden",children:[r("select",{value:a,onChange:e=>c(e.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:u.map(e=>r("option",{children:e.name},e.name))}),r(q,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),r("div",{className:"hidden sm:block",children:r("div",{className:"border-b border-gray-200",children:r("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:u.map(e=>t("a",{onClick:()=>{(e.name!=="Approve Leave"||o.grade==="Manager"||o.grade==="Senior Manager"||o.grade==="Partner")&&c(e.name)},className:b(e.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",e.name==="Approve Leave"&&o.grade!=="Manager"&&o.grade!=="Senior Manager"&&o.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":e.current?"page":void 0,children:[r(e.icon,{className:b(e.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),r("span",{children:e.name})]},e.name))})})})]}),a==="Grid View"&&r(f,{currentDate:d,setCurrentDate:l,holidays:s,employees:x}),a==="Calendar View"&&r(y,{currentDate:d,setCurrentDate:l,holidays:s}),a==="Request Leave"&&r(g,{remainingDays:o.remainingLeaveDays,submitLeaveRequest:e=>n?n(e):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),a==="Approve Leave"&&r(v,{leaveRequests:w,onApprove:e=>i?i(e):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:e=>m?m(e):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}export{z as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-VRE6VCHX.mjs";import{a}from"./chunk-MDJREBVI.mjs";import{jsx as o}from"react/jsx-runtime";var g=r=>{let{className:t,enableGutter:m=!0,imgClassName:s,media:i,staticImage:n}=r;return o("div",{className:a("",{container:m},t),children:o(e,{imgClassName:a("rounded-[0.8rem]",s),resource:i,src:n})})};export{g as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as r}from"./chunk-KFCSVEI6.mjs";import{a as m}from"./chunk-TEB67NCD.mjs";import{Fragment as n}from"react";import{jsx as o}from"react/jsx-runtime";var y=e=>{let{className:a,htmlElement:t="div",resource:i}=e,s=typeof i=="object"&&i?.mimeType?.includes("video");return o(t||n,{...t!==null?{className:a}:{},children:s?o(r,{...e}):o(m,{...e})})};export{y as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-SV7NMNDI.mjs";import{f as s,g as m}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-SV7NMNDI.mjs";import{f as s,g as m}from"./chunk-BGADMIWV.mjs";import{a as o}from"./chunk-MDJREBVI.mjs";import{jsx as e,jsxs as p}from"react/jsx-runtime";function x({services:t,className:f,title:r,content:i}){let d={settings:{width:"full",card:"light"}};return p("div",{className:"pb-4 md:pb-0",children:[p("div",{className:o("w-full text-left prose"),children:[r&&e("h2",{className:"text-primary",children:r}),e("div",{className:"pb-12 ",children:i&&e(s,{enableGutter:!1,content:i,enableProse:!1,className:o("prose prose-headings:text-foreground prose-p:text-foreground")})})]}),t&&t.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-between gap-y-8",children:t.map((a,l)=>e("div",{"data-aos":"fade-up","data-aos-delay":n([200,400,600],l),className:"w-full px-4 md:w-1/2 lg:w-1/3 flex",children:e(m,{...d,icon:{type:"none"},title:a.title,image:a.image,content:a.content,link:a.link,className:"w-full"})},l))})]})}export{x as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as
|
|
4
|
+
import{a as i}from"./chunk-WISC5QJV.mjs";import{a as c}from"./chunk-Q5XT55O3.mjs";import{a as l}from"./chunk-MDJREBVI.mjs";import{useState as m,useEffect as d}from"react";import{useTheme as S}from"next-themes";import{Moon as N,Sun as y}from"lucide-react";import{PopoverGroup as D}from"@headlessui/react";import{Fragment as H,jsx as e,jsxs as p}from"react/jsx-runtime";function z({isMenuOpen:u,logoLight:h,logoDark:f,menuItems:o,themeControl:g=!1,wide:b=!1}){let[v,a]=m(!1),[k,n]=m(""),r=["light","dark"],{theme:s,setTheme:w}=S();d(()=>{n(s||"dark")},[s]);let x=()=>{let t=r[(r.indexOf(k)+1)%r.length];n(t),w(t)};return d(()=>{let t=()=>{window.scrollY>100?a(!0):a(!1)};return window.addEventListener("scroll",t,{passive:!0}),()=>window.removeEventListener("scroll",t)},[]),e(H,{children:e("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${v||u?"translate-y-0":"-translate-y-full bg-transparent"}`,children:e("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:p("div",{className:l("flex items-center justify-between px-9 py-0",!b&&"container"),children:[e(c,{logoDark:f,logoLight:h}),e(D,{className:"hidden lg:flex lg:gap-x-12",children:o&&o.map(t=>e(i,{...t},t.name))}),g&&e("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:x,children:p("div",{className:"relative",children:[e(y,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),e(N,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}export{z as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as r}from"./chunk-
|
|
1
|
+
import{f as r}from"./chunk-BGADMIWV.mjs";import{jsx as e}from"react/jsx-runtime";var c=({children:o,richText:t})=>e("div",{className:"min-w-full py-10 bg-muted mt-24",children:e("div",{className:"container",children:o||t&&e(r,{content:t,enableGutter:!1})})});export{c as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{a as v}from"./chunk-JHSHXYPK.mjs";import{a as C}from"./chunk-2VR4KIQL.mjs";import{a as b}from"./chunk-IPV2NFB6.mjs";import{useState as o}from"react";import{motion as ie,AnimatePresence as te}from"framer-motion";import{Users as se}from"lucide-react";import{jsx as t,jsxs as ne}from"react/jsx-runtime";function ve({messages:S=[],businessUnits:I=[],capabilities:B=[],sidebarItems:w=[],notifications:F=[],sessions:D=[],onNewChat:N,onSessionSelect:x,onSessionDelete:R,onSessionEdit:T=()=>console.log("Session edit not implemented"),onBusinessUnitChange:A=()=>{},onNotificationRemove:M=()=>{},onRemoveAll:P=()=>{},onActionClick:k=()=>{},onSearch:E=s=>console.log("Search query:",s),initialTeam:K="design",currentSession:d=null,showCapabilities:oe=!0,title:L="Digital Colleagues",enableFileUpload:m=!0,maxFileSize:g=10,allowedFileTypes:u=["image/*","text/*","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],logo:O="/headerlogo.png",appName:$="Nuvia",tagline:q="AI-Powered Workspace",actionIcon:z=t(se,{className:"mr-2 h-4 w-4"}),actionText:W="Collaborate"}){let[s,f]=o(""),[X,h]=o(!1),n=I||[],G={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"},[H,J]=o(()=>n.length===0?G:n.find(e=>e.id===K)||n[0]),[p,a]=o([]),[Q,V]=o(!1),Y=e=>{if(!e||!m)return;let r=[];Array.from(e).forEach(i=>{if(i.size>g*1024*1024){alert(`File ${i.name} is too large. Maximum size is ${g}MB.`);return}if(u.length>0&&!u.some(l=>i.type.match(l))){alert(`File type ${i.type} is not allowed.`);return}let U={id:Date.now().toString()+Math.random().toString(36).substr(2,9),file:i,status:"pending",progress:0};if(i.type.startsWith("image/")){let l=new FileReader;l.onload=j=>{a(ee=>ee.map(c=>c.id===U.id?{...c,preview:j.target?.result}:c))},l.readAsDataURL(i)}r.push(U)}),a(i=>[...i,...r])},Z=e=>{a(r=>r.filter(i=>i.id!==e))},y=()=>{!s.trim()&&p.length===0||(console.log("Message to send:",s),console.log("Files to upload:",p),f(""),a([]),h(!0),setTimeout(()=>{h(!1)},1500))},_=e=>{e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),y())};return t(v,{sidebarItems:w||[],title:L,notifications:F||[],businessUnits:n,currentBusinessUnit:H,onBusinessUnitChange:e=>{e&&(J(e),A?.(e))},onSearch:E,showTabs:!1,onActionClick:k,actionIcon:z,actionText:W,onNotificationRemove:M,onRemoveAll:P,logo:O,appName:$,tagline:q,children:t(te,{mode:"wait",children:t(ie.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:ne("div",{className:"h-full flex",children:[t("div",{className:"w-80 bg-muted/50 flex-shrink-0 h-full p-2",children:t(C,{sessions:D||[],currentSession:d,teams:n,onNewChat:N,onSessionSelect:x,onSessionEdit:T,onSessionDelete:R})}),t("div",{className:"flex-1 h-full p-2",children:t(b,{messages:S||[],input:s,isTyping:X,currentSessionTitle:d?.title,capabilities:B||[],onInputChange:f,onSendMessage:y,onKeyPress:_,fileUploads:p,isDragOver:Q,enableFileUpload:m,onFileUpload:Y,onRemoveFile:Z,onDragOver:V})})]})},"chat-interface")})})}export{ve as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-MZP7RIQZ.mjs";import{a as i}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-MZP7RIQZ.mjs";import{a as i}from"./chunk-5KS3DITB.mjs";import{a as l}from"./chunk-Y62OBV2E.mjs";import{a as m}from"./chunk-BN747TQM.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};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
'use client'
|
|
4
4
|
|
|
5
|
-
"use strict";"use client";var et=Object.create;var Y=Object.defineProperty;var tt=Object.getOwnPropertyDescriptor;var ot=Object.getOwnPropertyNames;var rt=Object.getPrototypeOf,nt=Object.prototype.hasOwnProperty;var it=(e,t)=>{for(var o in t)Y(e,o,{get:t[o],enumerable:!0})},Me=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ot(t))!nt.call(e,i)&&i!==o&&Y(e,i,{get:()=>t[i],enumerable:!(r=tt(t,i))||r.enumerable});return e};var j=(e,t,o)=>(o=e!=null?et(rt(e)):{},Me(t||!e||!e.__esModule?Y(o,"default",{value:e,enumerable:!0}):o,e)),at=e=>Me(Y({},"__esModule",{value:!0}),e);var Kt={};it(Kt,{Sidebar:()=>Jt});module.exports=at(Kt);var Ze=j(require("react")),ve=j(require("next/link")),L=require("lucide-react");var Le=require("class-variance-authority");var Ue=require("clsx");var de="-",st=e=>{let t=ct(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{let s=a.split(de);return s[0]===""&&s.length!==1&&s.shift(),Ie(s,t)||lt(a)},getConflictingClassGroupIds:(a,s)=>{let w=o[a]||[];return s&&r[a]?[...w,...r[a]]:w}}},Ie=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),i=r?Ie(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let n=e.join(de);return t.validators.find(({validator:a})=>a(n))?.classGroupId},Re=/^\[(.+)\]$/,lt=e=>{if(Re.test(e)){let t=Re.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},ct=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return pt(Object.entries(e.classGroups),o).forEach(([n,a])=>{ce(a,r,n,t)}),r},ce=(e,t,o,r)=>{e.forEach(i=>{if(typeof i=="string"){let n=i===""?t:Ne(t,i);n.classGroupId=o;return}if(typeof i=="function"){if(dt(i)){ce(i(r),t,o,r);return}t.validators.push({validator:i,classGroupId:o});return}Object.entries(i).forEach(([n,a])=>{ce(a,Ne(t,n),o,r)})})},Ne=(e,t)=>{let o=e;return t.split(de).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},dt=e=>e.isThemeGetter,pt=(e,t)=>t?e.map(([o,r])=>{let i=r.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([a,s])=>[t+a,s])):n);return[o,i]}):e,mt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,i=(n,a)=>{o.set(n,a),t++,t>e&&(t=0,r=o,o=new Map)};return{get(n){let a=o.get(n);if(a!==void 0)return a;if((a=r.get(n))!==void 0)return i(n,a),a},set(n,a){o.has(n)?o.set(n,a):i(n,a)}}},Te="!",ut=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,i=t[0],n=t.length,a=s=>{let w=[],x=0,D=0,k;for(let l=0;l<s.length;l++){let u=s[l];if(x===0){if(u===i&&(r||s.slice(l,l+n)===t)){w.push(s.slice(D,l)),D=l+n;continue}if(u==="/"){k=l;continue}}u==="["?x++:u==="]"&&x--}let P=w.length===0?s:s.substring(D),M=P.startsWith(Te),C=M?P.substring(1):P,y=k&&k>D?k-D:void 0;return{modifiers:w,hasImportantModifier:M,baseClassName:C,maybePostfixModifierPosition:y}};return o?s=>o({className:s,parseClassName:a}):a},gt=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},ft=e=>({cache:mt(e.cacheSize),parseClassName:ut(e),...st(e)}),bt=/\s+/,ht=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:i}=t,n=[],a=e.trim().split(bt),s="";for(let w=a.length-1;w>=0;w-=1){let x=a[w],{modifiers:D,hasImportantModifier:k,baseClassName:P,maybePostfixModifierPosition:M}=o(x),C=!!M,y=r(C?P.substring(0,M):P);if(!y){if(!C){s=x+(s.length>0?" "+s:s);continue}if(y=r(P),!y){s=x+(s.length>0?" "+s:s);continue}C=!1}let l=gt(D).join(":"),u=k?l+Te:l,S=u+y;if(n.includes(S))continue;n.push(S);let _=i(y,C);for(let G=0;G<_.length;++G){let K=_[G];n.push(u+K)}s=x+(s.length>0?" "+s:s)}return s};function wt(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=ze(t))&&(r&&(r+=" "),r+=o);return r}var ze=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=ze(e[r]))&&(o&&(o+=" "),o+=t);return o};function yt(e,...t){let o,r,i,n=a;function a(w){let x=t.reduce((D,k)=>k(D),e());return o=ft(x),r=o.cache.get,i=o.cache.set,n=s,s(w)}function s(w){let x=r(w);if(x)return x;let D=ht(w,o);return i(w,D),D}return function(){return n(wt.apply(null,arguments))}}var f=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},je=/^\[(?:([a-z-]+):)?(.+)\]$/i,vt=/^\d+\/\d+$/,xt=new Set(["px","full","screen"]),Dt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,St=/\d+(%|px|r?em|[sdl]?Ge([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|Ge|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,kt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Pt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ct=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,T=e=>V(e)||xt.has(e)||vt.test(e),B=e=>W(e,"length",jt),V=e=>!!e&&!Number.isNaN(Number(e)),le=e=>W(e,"number",V),H=e=>!!e&&Number.isInteger(Number(e)),At=e=>e.endsWith("%")&&V(e.slice(0,-1)),d=e=>je.test(e),E=e=>Dt.test(e),Mt=new Set(["length","size","percentage"]),Rt=e=>W(e,Mt,Be),Nt=e=>W(e,"position",Be),It=new Set(["image","url"]),Tt=e=>W(e,It,Et),zt=e=>W(e,"",Bt),q=()=>!0,W=(e,t,o)=>{let r=je.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},jt=e=>St.test(e)&&!kt.test(e),Be=()=>!1,Bt=e=>Pt.test(e),Et=e=>Ct.test(e);var Ut=()=>{let e=f("colors"),t=f("spacing"),o=f("blur"),r=f("brightness"),i=f("borderColor"),n=f("borderRadius"),a=f("borderSpacing"),s=f("borderWidth"),w=f("contrast"),x=f("grayscale"),D=f("hueRotate"),k=f("invert"),P=f("gap"),M=f("gradientColorStops"),C=f("gradientColorStopPositions"),y=f("inset"),l=f("margin"),u=f("opacity"),S=f("padding"),_=f("saturate"),G=f("scale"),K=f("sepia"),xe=f("skew"),De=f("space"),Se=f("translate"),ne=()=>["auto","contain","none"],ie=()=>["auto","hidden","clip","visible","scroll"],ae=()=>["auto",d,t],b=()=>[d,t],ke=()=>["",T,B],$=()=>["auto",V,d],Pe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],X=()=>["solid","dashed","dotted","double","none"],Ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",d],Ae=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>[V,d];return{cacheSize:500,separator:":",theme:{colors:[q],spacing:[T,B],blur:["none","",E,d],brightness:I(),borderColor:[e],borderRadius:["none","","full",E,d],borderSpacing:b(),borderWidth:ke(),contrast:I(),grayscale:O(),hueRotate:I(),invert:O(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[At,B],inset:ae(),margin:ae(),opacity:I(),padding:b(),saturate:I(),scale:I(),sepia:O(),skew:I(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[E]}],"break-after":[{"break-after":Ae()}],"break-before":[{"break-before":Ae()}],"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:[...Pe(),d]}],overflow:[{overflow:ie()}],"overflow-x":[{"overflow-x":ie()}],"overflow-y":[{"overflow-y":ie()}],overscroll:[{overscroll:ne()}],"overscroll-x":[{"overscroll-x":ne()}],"overscroll-y":[{"overscroll-y":ne()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",H,d]}],basis:[{basis:ae()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",d]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",H,d]}],"grid-cols":[{"grid-cols":[q]}],"col-start-end":[{col:["auto",{span:["full",H,d]},d]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[q]}],"row-start-end":[{row:["auto",{span:[H,d]},d]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[P]}],"gap-x":[{"gap-x":[P]}],"gap-y":[{"gap-y":[P]}],"justify-content":[{justify:["normal",...se()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...se(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...se(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[l]}],mx:[{mx:[l]}],my:[{my:[l]}],ms:[{ms:[l]}],me:[{me:[l]}],mt:[{mt:[l]}],mr:[{mr:[l]}],mb:[{mb:[l]}],ml:[{ml:[l]}],"space-x":[{"space-x":[De]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[De]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",d,t]}],"min-w":[{"min-w":[d,t,"min","max","fit"]}],"max-w":[{"max-w":[d,t,"none","full","min","max","fit","prose",{screen:[E]},E]}],Ge:[{Ge:[d,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-Ge":[{"min-Ge":[d,t,"min","max","fit","svh","lvh","dvh"]}],"max-Ge":[{"max-Ge":[d,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[d,t,"auto","min","max","fit"]}],"font-size":[{text:["base",E,B]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",le]}],"font-family":[{font:[q]}],"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",d]}],"line-clamp":[{"line-clamp":["none",V,le]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",T,d]}],"list-image":[{"list-image":["none",d]}],"list-style-type":[{list:["none","disc","decimal",d]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[u]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[u]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",T,B]}],"underline-offset":[{"underline-offset":["auto",T,d]}],"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",d]}],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",d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[u]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Pe(),Nt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Rt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Tt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[M]}],"gradient-via":[{via:[M]}],"gradient-to":[{to:[M]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[u]}],"border-style":[{border:[...X(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[u]}],"divide-style":[{divide:X()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...X()]}],"outline-offset":[{"outline-offset":[T,d]}],"outline-w":[{outline:[T,B]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ke()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[u]}],"ring-offset-w":[{"ring-offset":[T,B]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",E,zt]}],"shadow-color":[{shadow:[q]}],opacity:[{opacity:[u]}],"mix-blend":[{"mix-blend":[...Ce(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ce()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[w]}],"drop-shadow":[{"drop-shadow":["","none",E,d]}],grayscale:[{grayscale:[x]}],"hue-rotate":[{"hue-rotate":[D]}],invert:[{invert:[k]}],saturate:[{saturate:[_]}],sepia:[{sepia:[K]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[w]}],"backdrop-grayscale":[{"backdrop-grayscale":[x]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[D]}],"backdrop-invert":[{"backdrop-invert":[k]}],"backdrop-opacity":[{"backdrop-opacity":[u]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",d]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[G]}],"scale-x":[{"scale-x":[G]}],"scale-y":[{"scale-y":[G]}],rotate:[{rotate:[H,d]}],"translate-x":[{"translate-x":[Se]}],"translate-y":[{"translate-y":[Se]}],"skew-x":[{"skew-x":[xe]}],"skew-y":[{"skew-y":[xe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",d]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-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","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[T,B,le]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","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","Ge"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-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-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ee=yt(Ut);function m(...e){return Ee((0,Ue.clsx)(e))}var Ge=require("react/jsx-runtime"),Lt=(0,Le.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 pe({className:e,variant:t,...o}){return(0,Ge.jsx)("div",{className:m(Lt({variant:t}),e),...o})}var Ve=require("@radix-ui/react-slot"),Fe=j(require("react")),Gt=(0,Le.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:"Ge-10 px-4 py-2",icon:"Ge-10 w-10",lg:"Ge-11 rounded px-8",sm:"Ge-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"}}}),J=Fe.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...i},n)=>(0,Ge.jsx)(e?Ve.Slot:"button",{className:m(Gt({className:t,size:o,variant:r})),ref:n,...i}));J.displayName="Button";var Oe=j(require("react"));var me=Oe.forwardRef(({className:e,type:t,...o},r)=>(0,Ge.jsx)("input",{type:t,className:m("flex Ge-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));me.displayName="Input";var ue=j(require("react")),A=j(require("@radix-ui/react-scroll-area"));var ge=ue.forwardRef(({className:e,children:t,...o},r)=>(0,Ge.jsxs)(A.Root,{ref:r,className:m("relative overflow-hidden",e),...o,children:[(0,Ge.jsx)(A.Viewport,{className:"Ge-full w-full rounded-[inherit]",children:t}),(0,Ge.jsx)(qe,{}),(0,Ge.jsx)(A.Corner,{})]}));ge.displayName=A.Root.displayName;var qe=ue.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,Ge.jsx)(A.ScrollAreaScrollbar,{ref:r,orientation:t,className:m("flex touch-none select-none transition-colors",t==="vertical"&&"Ge-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"Ge-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,Ge.jsx)(A.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));qe.displayName=A.ScrollAreaScrollbar.displayName;var $e=require("react");var z=j(require("react")),p=j(require("@radix-ui/react-dropdown-menu")),F=require("@radix-ui/react-icons");var Je=p.Root,Ke=p.Trigger;var Vt=z.forwardRef(({className:e,inset:t,children:o,...r},i)=>(0,Ge.jsxs)(p.SubTrigger,{ref:i,className:m("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,Ge.jsx)(F.ChevronRightIcon,{className:"ml-auto"})]}));Vt.displayName=p.SubTrigger.displayName;var Wt=z.forwardRef(({className:e,...t},o)=>(0,Ge.jsx)(p.SubContent,{ref:o,className:m("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}));Wt.displayName=p.SubContent.displayName;var fe=z.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Ge.jsx)(p.Portal,{children:(0,Ge.jsx)(p.Content,{ref:r,sideOffset:t,className:m("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})}));fe.displayName=p.Content.displayName;var be=z.forwardRef(({className:e,inset:t,...o},r)=>(0,Ge.jsx)(p.Item,{ref:r,className:m("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}));be.displayName=p.Item.displayName;var Ft=z.forwardRef(({className:e,children:t,checked:o,...r},i)=>(0,Ge.jsxs)(p.CheckboxItem,{ref:i,className:m("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,Ge.jsx)("span",{className:"absolute left-2 flex Ge-3.5 w-3.5 items-center justify-center",children:(0,Ge.jsx)(p.ItemIndicator,{children:(0,Ge.jsx)(F.CheckIcon,{className:"Ge-4 w-4"})})}),t]}));Ft.displayName=p.CheckboxItem.displayName;var _t=z.forwardRef(({className:e,children:t,...o},r)=>(0,Ge.jsxs)(p.RadioItem,{ref:r,className:m("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,Ge.jsx)("span",{className:"absolute left-2 flex Ge-3.5 w-3.5 items-center justify-center",children:(0,Ge.jsx)(p.ItemIndicator,{children:(0,Ge.jsx)(F.DotFilledIcon,{className:"Ge-4 w-4 fill-current"})})}),t]}));_t.displayName=p.RadioItem.displayName;var he=z.forwardRef(({className:e,inset:t,...o},r)=>(0,Ge.jsx)(p.Label,{ref:r,className:m("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));he.displayName=p.Label.displayName;var we=z.forwardRef(({className:e,...t},o)=>(0,Ge.jsx)(p.Separator,{ref:o,className:m("-mx-1 my-1 Ge-px bg-muted",e),...t}));we.displayName=p.Separator.displayName;var Ot=({className:e,...t})=>(0,Ge.jsx)("span",{className:m("ml-auto text-xs tracking-widest opacity-60",e),...t});Ot.displayName="DropdownMenuShortcut";function Xe({currentUnit:e,businessUnits:t,onUnitChange:o,className:r}){let[i,n]=(0,$e.useState)(!1);return(0,Ge.jsxs)(Je,{open:i,onOpenChange:n,children:[(0,Ge.jsx)(Ke,{asChild:!0,children:(0,Ge.jsxs)(J,{variant:"ghost",role:"combobox","aria-expanded":i,className:m("w-full justify-between rounded-2xl px-3 py-2 Ge-auto min-Ge-[44px] hover:bg-muted/50",r),children:[(0,Ge.jsxs)("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[(0,Ge.jsx)("div",{className:m("flex Ge-8 w-8 items-center justify-center rounded-lg text-white",e.color),children:e.icon}),(0,Ge.jsxs)("div",{className:"flex flex-col items-start min-w-0 flex-1",children:[(0,Ge.jsx)("span",{className:"font-medium text-sm truncate w-full text-left",children:e.name}),(0,Ge.jsx)("span",{className:"text-xs text-muted-foreground truncate w-full text-left",children:e.description})]})]}),(0,Ge.jsx)(L.ChevronDown,{className:"ml-2 Ge-4 w-4 shrink-0 opacity-50"})]})}),(0,Ge.jsxs)(fe,{className:"w-[280px] p-2",align:"start",children:[(0,Ge.jsx)(he,{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:"Switch Business Unit"}),(0,Ge.jsx)(we,{}),(0,Ge.jsx)("div",{className:"grid gap-1",children:t&&t.length>0?t.map(a=>(0,Ge.jsxs)(be,{className:"flex items-center gap-3 p-2 rounded-lg cursor-pointer",onSelect:()=>{o(a),n(!1)},children:[(0,Ge.jsx)("div",{className:m("flex Ge-8 w-8 items-center justify-center rounded-lg text-white",a.color),children:a.icon}),(0,Ge.jsxs)("div",{className:"flex flex-col items-start min-w-0 flex-1",children:[(0,Ge.jsxs)("div",{className:"flex items-center gap-2 w-full",children:[(0,Ge.jsx)("span",{className:"font-medium text-sm truncate",children:a.name}),e.id===a.id&&(0,Ge.jsx)(L.Check,{className:"Ge-4 w-4 text-primary"})]}),(0,Ge.jsx)("span",{className:"text-xs text-muted-foreground truncate w-full",children:a.description})]})]},a.id)):(0,Ge.jsx)("div",{className:"flex items-center justify-center p-4 text-sm text-muted-foreground",children:"No business units available"})})]})]})}var N=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date});var Qe=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,Ge.jsx)(L.Palette,{className:"Ge-4 w-4"}),color:"bg-purple-600",accentColor:"text-purple-600"},{id:"engineering",name:"Engineering",description:"Software development and technical teams",icon:(0,Ge.jsx)(L.Code,{className:"Ge-4 w-4"}),color:"bg-blue-600",accentColor:"text-blue-600"},{id:"marketing",name:"Marketing",description:"Brand, campaigns, and growth marketing",icon:(0,Ge.jsx)(L.TrendingUp,{className:"Ge-4 w-4"}),color:"bg-pink-600",accentColor:"text-pink-600"},{id:"sales",name:"Sales",description:"Revenue generation and customer acquisition",icon:(0,Ge.jsx)(L.DollarSign,{className:"Ge-4 w-4"}),color:"bg-green-600",accentColor:"text-green-600"},{id:"hr",name:"Human Resources",description:"People operations and talent management",icon:(0,Ge.jsx)(L.Users,{className:"Ge-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"},{id:"operations",name:"Operations",description:"Business operations and process optimization",icon:(0,Ge.jsx)(L.Wrench,{className:"Ge-4 w-4"}),color:"bg-indigo-600",accentColor:"text-indigo-600"},{id:"legal",name:"Legal",description:"Legal affairs and compliance",icon:(0,Ge.jsx)(L.Scale,{className:"Ge-4 w-4"}),color:"bg-slate-600",accentColor:"text-slate-600"},{id:"product",name:"Product",description:"Product strategy and management",icon:(0,Ge.jsx)(L.Package,{className:"Ge-4 w-4"}),color:"bg-violet-600",accentColor:"text-violet-600"},{id:"it",name:"IT Support",description:"Information technology and infrastructure",icon:(0,Ge.jsx)(L.Zap,{className:"Ge-4 w-4"}),color:"bg-cyan-600",accentColor:"text-cyan-600"},{id:"company",name:"Company",description:"Company-wide resources and information",icon:(0,Ge.jsx)(L.Building2,{className:"Ge-4 w-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],te=[{id:"1",name:"E-commerce Platform",description:"Main customer-facing e-commerce application",isSelected:!0},{id:"2",name:"Admin Dashboard",description:"Internal administration and analytics dashboard",isSelected:!1},{id:"3",name:"Mobile App",description:"Native mobile application for iOS and Android",isSelected:!1}];var ye=[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0},{id:"2",name:"Dashboard Features",color:"bg-green-500",description:"Build comprehensive dashboard functionality",confidence:"medium",phase:1,startDate:new Date("2024-02-01"),endDate:new Date("2024-03-15"),progress:30,isSelected:!0},{id:"3",name:"Mobile Optimization",color:"bg-purple-500",description:"Optimize application for mobile devices",confidence:"low",phase:1,startDate:new Date("2024-03-01"),endDate:new Date("2024-04-15"),progress:10,isSelected:!0},{id:"4",name:"Performance Improvements",color:"bg-orange-500",description:"Enhance application performance and speed",confidence:"high",phase:3,startDate:new Date("2024-01-15"),endDate:new Date("2024-02-28"),progress:90,isSelected:!0}],Z=[{id:"backlog",name:"Backlog",description:"Tasks not yet assigned to a sprint",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!1},{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0},{id:"1",name:"Sprint 1",description:"Initial development phase",startDate:new Date("2024-01-01"),endDate:new Date("2024-01-14"),isActive:!1,isSelected:!1},{id:"2",name:"Sprint 2",description:"Feature development",startDate:new Date("2024-01-15"),endDate:new Date("2024-01-28"),isActive:!0,isSelected:!1}],re=[{id:"1",title:"Design login page",description:"Create wireframes and mockups for the login interface",status:"todo",priority:"high",type:"story",points:5,epicId:"1",sprintId:"2",assignee:"John Doe",createdAt:new Date("2024-01-15")},{id:"2",title:"Implement OAuth integration",description:"Add Google and GitHub OAuth authentication",status:"review",priority:"high",type:"task",points:8,epicId:"1",sprintId:"2",assignee:"Jane Smith",createdAt:new Date("2024-01-16")},{id:"3",title:"Create dashboard widgets",description:"Build analytics and metrics widgets for the main dashboard",status:"todo",priority:"medium",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Mike Johnson",createdAt:new Date("2024-01-17")},{id:"4",title:"Fix login redirect bug",description:"Resolve issue where users are not redirected after login",status:"done",priority:"high",type:"bug",points:3,epicId:"1",sprintId:"1",assignee:"Sarah Wilson",createdAt:new Date("2024-01-14")},{id:"5",title:"Research mobile frameworks",description:"Investigate best practices for mobile responsive design",status:"in-progress",priority:"medium",type:"spike",points:5,epicId:"3",assignee:"Alex Brown",createdAt:new Date("2024-01-18")},{id:"6",title:"Update user profile page",description:"Enhance user profile with new settings and preferences",status:"review",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Emma Davis",createdAt:new Date("2024-01-19")},{id:"7",title:"Performance optimization",description:"Optimize database queries and improve page load times",status:"done",priority:"high",type:"task",points:13,epicId:"4",sprintId:"1",assignee:"Tom Wilson",createdAt:new Date("2024-01-13")}],Ht=[...re,{id:"8",title:"Add search functionality",description:"Implement search across all dashboard widgets",status:"todo",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Chris Lee",createdAt:new Date("2024-01-20")},{id:"9",title:"Fix mobile responsive issues",description:"Resolve layout problems on mobile devices",status:"in-progress",priority:"high",type:"bug",points:5,epicId:"3",sprintId:"2",assignee:"Taylor Swift",createdAt:new Date("2024-01-21")},{id:"10",title:"Implement dark mode",description:"Add dark theme support across the application",status:"review",priority:"low",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Jordan Smith",createdAt:new Date("2024-01-22")},{id:"11",title:"API rate limiting",description:"Implement rate limiting for API endpoints",status:"done",priority:"high",type:"task",points:8,epicId:"4",sprintId:"1",assignee:"Morgan Davis",createdAt:new Date("2024-01-12")},{id:"12",title:"User onboarding flow",description:"Create guided tour for new users",status:"todo",priority:"medium",type:"story",points:21,epicId:"1",sprintId:"2",assignee:"Casey Johnson",createdAt:new Date("2024-01-23")}],qt=[...te,{id:"4",name:"Analytics Platform",description:"Business intelligence and reporting system",isSelected:!1},{id:"5",name:"API Gateway",description:"Microservices API management layer",isSelected:!1}],ee={projects:[{id:"1",name:"Empty Project",description:"A project with no tasks",isSelected:!0}],epics:[],sprints:[{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0}],tasks:[]},Ye={epics:[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0}],tasks:re.filter(e=>e.epicId==="1")};var wo={empty:{initialProjects:ee.projects,initialEpics:ee.epics,initialSprints:ee.sprints,initialTasks:ee.tasks},default:{initialProjects:te,initialEpics:ye,initialSprints:Z,initialTasks:re},highDensity:{initialProjects:te,initialEpics:ye,initialSprints:Z,initialTasks:Ht},singleEpic:{initialProjects:te,initialEpics:Ye.epics,initialSprints:Z,initialTasks:Ye.tasks},multipleProjects:{initialProjects:qt,initialEpics:ye,initialSprints:Z,initialTasks:re}},oe=[{id:"1",type:"human",name:"Sarah Johnson",email:"sarah.johnson@company.com",role:"Senior Designer",department:"Design",status:"active",joinedDate:new Date("2023-01-15"),lastActive:new Date,phone:"+1 (555) 123-4567",location:"San Francisco, CA",timezone:"PST",skills:["UI/UX Design","Figma","Adobe Creative Suite","Prototyping","User Research"],bio:"Passionate designer with 8+ years of experience creating user-centered digital experiences."},{id:"2",type:"digital",name:"CodeAssist Pro",status:"active",joinedDate:new Date("2024-01-01"),lastActive:new Date,jobDescription:"AI-powered coding assistant that helps with code review, debugging, and documentation generation.",workInstructions:"Review pull requests for code quality and best practices. Generate comprehensive documentation for new features. Assist with debugging complex issues. Provide code suggestions and optimizations.",capabilities:["Code Review","Documentation Generation","Debugging","Code Optimization","Testing"],knowledge:["JavaScript","TypeScript","React","Node.js","Python","Git"].map(N),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(N),version:"2",lastUpdated:new Date("2024-01-15"),isActive:!0},{id:"3",type:"human",name:"Michael Chen",email:"michael.chen@company.com",role:"Product Manager",department:"Product",status:"inactive",joinedDate:new Date("2022-08-20"),lastActive:new Date(Date.now()-2*60*60*1e3),phone:"+1 (555) 987-6543",location:"New York, NY",timezone:"EST",skills:["Product Strategy","Agile","Data Analysis","User Stories","Roadmapping"],bio:"Strategic product manager focused on driving user engagement and business growth."},{id:"4",type:"digital",name:"MarketingBot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"Specialized AI assistant for marketing campaigns, content creation, and social media management.",workInstructions:"Create engaging social media content. Analyze campaign performance metrics. Generate marketing copy and headlines. Schedule and manage social media posts.",capabilities:["Content Creation","Social Media Management","Analytics","SEO Optimization","Campaign Management"],knowledge:["Digital Marketing","Social Media Platforms","Content Strategy","Analytics Tools"].map(N),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(N),version:"52",lastUpdated:new Date("2024-02-10"),isActive:!0},{id:"5",type:"human",name:"Emily Rodriguez",email:"emily.rodriguez@company.com",role:"UX Researcher",department:"Design",status:"inactive",joinedDate:new Date("2023-06-10"),lastActive:new Date(Date.now()-7*24*60*60*1e3),phone:"+1 (555) 456-7890",location:"Austin, TX",timezone:"CST",skills:["User Research","Usability Testing","Data Analysis","Survey Design","Interview Techniques"],bio:"User researcher dedicated to understanding user needs and improving product experiences."},{id:"6",type:"digital",name:"DataAnalyzer Pro",status:"active",joinedDate:new Date("2024-01-10"),lastActive:new Date,jobDescription:"Advanced AI assistant specializing in data analysis, reporting, and business intelligence.",workInstructions:"Analyze complex datasets, generate insightful reports, create data visualizations, and provide actionable business recommendations.",capabilities:["Data Analysis","Report Generation","Data Visualization","Business Intelligence","Statistical Analysis"],knowledge:["Python","SQL","Tableau","Excel","Ge","Statistics"].map(N),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(N),version:"3.1",lastUpdated:new Date("2024-02-20"),isActive:!0},{id:"7",type:"digital",name:"ProjectManager AI",status:"active",joinedDate:new Date("2024-01-05"),lastActive:new Date,jobDescription:"Intelligent project management assistant that helps coordinate tasks, track progress, and manage timelines.",workInstructions:"Coordinate project activities, track milestones, manage resource allocation, and provide project status updates.",capabilities:["Project Planning","Task Coordination","Timeline Management","Resource Allocation","Progress Tracking"],knowledge:["Agile","Scrum","Gantt Charts","Risk Management","Stakeholder Management"].map(N),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(N),version:"2.5",lastUpdated:new Date("2024-02-15"),isActive:!0},{id:"8",type:"digital",name:"CustomerSupport Bot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"AI-powered customer support assistant that handles inquiries, resolves issues, and escalates complex problems.",workInstructions:"Respond to customer inquiries, troubleshoot common issues, provide product information, and escalate complex cases to human agents.",capabilities:["Customer Support","Issue Resolution","Product Knowledge","Escalation Management","Chat Support"],knowledge:["Product Documentation","FAQ","Troubleshooting Guides","Customer Service Best Practices"].map(N),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(N),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],yo=[{id:"1",title:"Review quarterly report",description:"Go through Q4 performance metrics and prepare summary for the team meeting",dueDate:new Date(2024,2,15),dueTime:"14:30",colleague:oe.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:30,createdAt:new Date(2024,2,10),tags:["quarterly","review","urgent"]},{id:"2",title:"Weekly team standup",description:"Join the weekly team synchronization meeting",dueDate:new Date(2024,2,18),dueTime:"10:00",colleague:oe.find(e=>e.id==="4"&&e.type==="digital"),isCompleted:!1,isRecurring:!0,recurrencePattern:"weekly",recurrenceInterval:1,priority:"medium",reminderEnabled:!0,reminderMinutes:15,createdAt:new Date(2024,2,11),tags:["meeting","standup","weekly"]},{id:"3",title:"Deploy to production",description:"Deploy the latest version to production environment",dueDate:new Date,dueTime:"16:00",colleague:oe.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:60,createdAt:new Date,tags:["deploy","production","urgent"]}];var vo=oe.filter(e=>e.type==="digital");function Jt({items:e,isOpen:t,isMobile:o=!1,onClose:r,currentBusinessUnit:i=Qe[0],onBusinessUnitChange:n,className:a,logo:s="/headerlogo.png",appName:w="Nuvia",tagline:x="Collaboration Platform"}){let[D,k]=Ze.useState({}),P=l=>{k(u=>({...u,[l]:!u[l]}))},M=l=>{n?.(l)},C=l=>{let u=(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsxs)("div",{className:"flex items-center gap-3",children:[l.icon,(0,Ge.jsx)("span",{children:l.title})]}),l.badge&&(0,Ge.jsx)(pe,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:l.badge}),l.items&&(0,Ge.jsx)(L.ChevronDown,{className:m("ml-2 Ge-4 w-4 transition-transform",D[l.title]?"rotate-180":"")})]}),S=m("flex w-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",l.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return l.url?(0,Ge.jsx)(ve.default,{href:l.url,className:S,onClick:o?r:void 0,children:u}):(0,Ge.jsx)("button",{className:S,onClick:()=>l.items&&P(l.title),children:u})},y=(0,Ge.jsxs)("div",{className:"flex Ge-full flex-col border-r bg-background",children:[(0,Ge.jsxs)("div",{className:"flex items-center justify-between p-4",children:[(0,Ge.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ge.jsx)("div",{className:"flex Ge-14 w-14 items-center justify-center ",children:(0,Ge.jsx)("img",{src:s,alt:"Header Logo",className:"Ge-14 w-14 object-contain"})}),(0,Ge.jsxs)("div",{children:[(0,Ge.jsxs)("h2",{className:"font-semibold",children:[w,(0,Ge.jsx)("br",{})]}),(0,Ge.jsxs)("p",{className:"text-xs text-muted-foreground",children:[x,(0,Ge.jsx)("br",{})]})]})]}),o&&(0,Ge.jsx)(J,{variant:"ghost",size:"icon",onClick:r,children:(0,Ge.jsx)(L.X,{className:"Ge-5 w-5"})})]}),(0,Ge.jsx)("div",{className:"px-3 py-2",children:(0,Ge.jsxs)("div",{className:"relative",children:[(0,Ge.jsx)(L.Search,{className:"absolute left-3 top-3 Ge-4 w-4 text-muted-foreground"}),(0,Ge.jsx)(me,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2"})]})}),(0,Ge.jsx)("div",{className:"px-3 pb-2",children:(0,Ge.jsx)(Xe,{currentUnit:i,onUnitChange:M})}),(0,Ge.jsx)(ge,{className:"flex-1 px-3 py-2",children:(0,Ge.jsx)("div",{className:"space-y-1",children:e.map(l=>(0,Ge.jsxs)("div",{className:"mb-1",children:[C(l),l.items&&D[l.title]&&(0,Ge.jsx)("div",{className:"mt-1 ml-6 space-y-1 border-l pl-3",children:l.items.map(u=>(0,Ge.jsxs)(ve.default,{href:u.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:o?r:void 0,children:[u.title,u.badge&&(0,Ge.jsx)(pe,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:u.badge})]},u.title))})]},l.title))})}),(0,Ge.jsx)("div",{className:"border-t p-3",children:(0,Ge.jsx)("div",{className:"space-y-1",children:(0,Ge.jsxs)("button",{className:"flex w-full items-center gap-3 rounded-2xl px-3 py-2 text-sm font-medium hover:bg-muted",children:[(0,Ge.jsx)(L.Settings,{className:"Ge-5 w-5"}),(0,Ge.jsx)("span",{children:"Settings"})]})})})]});return o?(0,Ge.jsx)("div",{className:m("fixed inset-y-0 left-0 z-50 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",a),children:y}):(0,Ge.jsx)("div",{className:m("fixed inset-y-0 left-0 z-30 w-64 transform border-r bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",a),children:y})}0&&(module.exports={Sidebar});
|
|
5
|
+
"use strict";"use client";var et=Object.create;var Y=Object.defineProperty;var tt=Object.getOwnPropertyDescriptor;var ot=Object.getOwnPropertyNames;var rt=Object.getPrototypeOf,it=Object.prototype.hasOwnProperty;var nt=(e,t)=>{for(var o in t)Y(e,o,{get:t[o],enumerable:!0})},Me=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ot(t))!it.call(e,n)&&n!==o&&Y(e,n,{get:()=>t[n],enumerable:!(r=tt(t,n))||r.enumerable});return e};var j=(e,t,o)=>(o=e!=null?et(rt(e)):{},Me(t||!e||!e.__esModule?Y(o,"default",{value:e,enumerable:!0}):o,e)),at=e=>Me(Y({},"__esModule",{value:!0}),e);var Kt={};nt(Kt,{Sidebar:()=>Jt});module.exports=at(Kt);var Ze=j(require("react")),ve=j(require("next/link")),L=require("lucide-react");var Le=require("class-variance-authority");var Ue=require("clsx");var de="-",st=e=>{let t=ct(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{let s=a.split(de);return s[0]===""&&s.length!==1&&s.shift(),Ie(s,t)||lt(a)},getConflictingClassGroupIds:(a,s)=>{let w=o[a]||[];return s&&r[a]?[...w,...r[a]]:w}}},Ie=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?Ie(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let i=e.join(de);return t.validators.find(({validator:a})=>a(i))?.classGroupId},Re=/^\[(.+)\]$/,lt=e=>{if(Re.test(e)){let t=Re.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},ct=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return pt(Object.entries(e.classGroups),o).forEach(([i,a])=>{ce(a,r,i,t)}),r},ce=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let i=n===""?t:Ne(t,n);i.classGroupId=o;return}if(typeof n=="function"){if(dt(n)){ce(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([i,a])=>{ce(a,Ne(t,i),o,r)})})},Ne=(e,t)=>{let o=e;return t.split(de).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},dt=e=>e.isThemeGetter,pt=(e,t)=>t?e.map(([o,r])=>{let n=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([a,s])=>[t+a,s])):i);return[o,n]}):e,mt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(i,a)=>{o.set(i,a),t++,t>e&&(t=0,r=o,o=new Map)};return{get(i){let a=o.get(i);if(a!==void 0)return a;if((a=r.get(i))!==void 0)return n(i,a),a},set(i,a){o.has(i)?o.set(i,a):n(i,a)}}},Te="!",ut=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],i=t.length,a=s=>{let w=[],x=0,D=0,k;for(let l=0;l<s.length;l++){let u=s[l];if(x===0){if(u===n&&(r||s.slice(l,l+i)===t)){w.push(s.slice(D,l)),D=l+i;continue}if(u==="/"){k=l;continue}}u==="["?x++:u==="]"&&x--}let P=w.length===0?s:s.substring(D),M=P.startsWith(Te),C=M?P.substring(1):P,y=k&&k>D?k-D:void 0;return{modifiers:w,hasImportantModifier:M,baseClassName:C,maybePostfixModifierPosition:y}};return o?s=>o({className:s,parseClassName:a}):a},gt=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},ft=e=>({cache:mt(e.cacheSize),parseClassName:ut(e),...st(e)}),bt=/\s+/,ht=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,i=[],a=e.trim().split(bt),s="";for(let w=a.length-1;w>=0;w-=1){let x=a[w],{modifiers:D,hasImportantModifier:k,baseClassName:P,maybePostfixModifierPosition:M}=o(x),C=!!M,y=r(C?P.substring(0,M):P);if(!y){if(!C){s=x+(s.length>0?" "+s:s);continue}if(y=r(P),!y){s=x+(s.length>0?" "+s:s);continue}C=!1}let l=gt(D).join(":"),u=k?l+Te:l,S=u+y;if(i.includes(S))continue;i.push(S);let _=n(y,C);for(let G=0;G<_.length;++G){let K=_[G];i.push(u+K)}s=x+(s.length>0?" "+s:s)}return s};function wt(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=ze(t))&&(r&&(r+=" "),r+=o);return r}var ze=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=ze(e[r]))&&(o&&(o+=" "),o+=t);return o};function yt(e,...t){let o,r,n,i=a;function a(w){let x=t.reduce((D,k)=>k(D),e());return o=ft(x),r=o.cache.get,n=o.cache.set,i=s,s(w)}function s(w){let x=r(w);if(x)return x;let D=ht(w,o);return n(w,D),D}return function(){return i(wt.apply(null,arguments))}}var f=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},je=/^\[(?:([a-z-]+):)?(.+)\]$/i,vt=/^\d+\/\d+$/,xt=new Set(["px","full","screen"]),Dt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,St=/\d+(%|px|r?em|[sdl]?Ge([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|Ge|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,kt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Pt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ct=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,T=e=>V(e)||xt.has(e)||vt.test(e),B=e=>W(e,"length",jt),V=e=>!!e&&!Number.isNaN(Number(e)),le=e=>W(e,"number",V),H=e=>!!e&&Number.isInteger(Number(e)),At=e=>e.endsWith("%")&&V(e.slice(0,-1)),d=e=>je.test(e),E=e=>Dt.test(e),Mt=new Set(["length","size","percentage"]),Rt=e=>W(e,Mt,Be),Nt=e=>W(e,"position",Be),It=new Set(["image","url"]),Tt=e=>W(e,It,Et),zt=e=>W(e,"",Bt),q=()=>!0,W=(e,t,o)=>{let r=je.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},jt=e=>St.test(e)&&!kt.test(e),Be=()=>!1,Bt=e=>Pt.test(e),Et=e=>Ct.test(e);var Ut=()=>{let e=f("colors"),t=f("spacing"),o=f("blur"),r=f("brightness"),n=f("borderColor"),i=f("borderRadius"),a=f("borderSpacing"),s=f("borderWidth"),w=f("contrast"),x=f("grayscale"),D=f("hueRotate"),k=f("invert"),P=f("gap"),M=f("gradientColorStops"),C=f("gradientColorStopPositions"),y=f("inset"),l=f("margin"),u=f("opacity"),S=f("padding"),_=f("saturate"),G=f("scale"),K=f("sepia"),xe=f("skew"),De=f("space"),Se=f("translate"),ie=()=>["auto","contain","none"],ne=()=>["auto","hidden","clip","visible","scroll"],ae=()=>["auto",d,t],b=()=>[d,t],ke=()=>["",T,B],$=()=>["auto",V,d],Pe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],X=()=>["solid","dashed","dotted","double","none"],Ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",d],Ae=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>[V,d];return{cacheSize:500,separator:":",theme:{colors:[q],spacing:[T,B],blur:["none","",E,d],brightness:I(),borderColor:[e],borderRadius:["none","","full",E,d],borderSpacing:b(),borderWidth:ke(),contrast:I(),grayscale:O(),hueRotate:I(),invert:O(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[At,B],inset:ae(),margin:ae(),opacity:I(),padding:b(),saturate:I(),scale:I(),sepia:O(),skew:I(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[E]}],"break-after":[{"break-after":Ae()}],"break-before":[{"break-before":Ae()}],"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:[...Pe(),d]}],overflow:[{overflow:ne()}],"overflow-x":[{"overflow-x":ne()}],"overflow-y":[{"overflow-y":ne()}],overscroll:[{overscroll:ie()}],"overscroll-x":[{"overscroll-x":ie()}],"overscroll-y":[{"overscroll-y":ie()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",H,d]}],basis:[{basis:ae()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",d]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",H,d]}],"grid-cols":[{"grid-cols":[q]}],"col-start-end":[{col:["auto",{span:["full",H,d]},d]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[q]}],"row-start-end":[{row:["auto",{span:[H,d]},d]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[P]}],"gap-x":[{"gap-x":[P]}],"gap-y":[{"gap-y":[P]}],"justify-content":[{justify:["normal",...se()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...se(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...se(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[l]}],mx:[{mx:[l]}],my:[{my:[l]}],ms:[{ms:[l]}],me:[{me:[l]}],mt:[{mt:[l]}],mr:[{mr:[l]}],mb:[{mb:[l]}],ml:[{ml:[l]}],"space-x":[{"space-x":[De]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[De]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",d,t]}],"min-w":[{"min-w":[d,t,"min","max","fit"]}],"max-w":[{"max-w":[d,t,"none","full","min","max","fit","prose",{screen:[E]},E]}],Ge:[{Ge:[d,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-Ge":[{"min-Ge":[d,t,"min","max","fit","svh","lvh","dvh"]}],"max-Ge":[{"max-Ge":[d,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[d,t,"auto","min","max","fit"]}],"font-size":[{text:["base",E,B]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",le]}],"font-family":[{font:[q]}],"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",d]}],"line-clamp":[{"line-clamp":["none",V,le]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",T,d]}],"list-image":[{"list-image":["none",d]}],"list-style-type":[{list:["none","disc","decimal",d]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[u]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[u]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",T,B]}],"underline-offset":[{"underline-offset":["auto",T,d]}],"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",d]}],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",d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[u]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Pe(),Nt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Rt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Tt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[M]}],"gradient-via":[{via:[M]}],"gradient-to":[{to:[M]}],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-l":[{"rounded-l":[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:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[u]}],"border-style":[{border:[...X(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[u]}],"divide-style":[{divide:X()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...X()]}],"outline-offset":[{"outline-offset":[T,d]}],"outline-w":[{outline:[T,B]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ke()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[u]}],"ring-offset-w":[{"ring-offset":[T,B]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",E,zt]}],"shadow-color":[{shadow:[q]}],opacity:[{opacity:[u]}],"mix-blend":[{"mix-blend":[...Ce(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ce()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[w]}],"drop-shadow":[{"drop-shadow":["","none",E,d]}],grayscale:[{grayscale:[x]}],"hue-rotate":[{"hue-rotate":[D]}],invert:[{invert:[k]}],saturate:[{saturate:[_]}],sepia:[{sepia:[K]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[w]}],"backdrop-grayscale":[{"backdrop-grayscale":[x]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[D]}],"backdrop-invert":[{"backdrop-invert":[k]}],"backdrop-opacity":[{"backdrop-opacity":[u]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",d]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[G]}],"scale-x":[{"scale-x":[G]}],"scale-y":[{"scale-y":[G]}],rotate:[{rotate:[H,d]}],"translate-x":[{"translate-x":[Se]}],"translate-y":[{"translate-y":[Se]}],"skew-x":[{"skew-x":[xe]}],"skew-y":[{"skew-y":[xe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",d]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-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","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[T,B,le]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","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","Ge"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-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-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ee=yt(Ut);function m(...e){return Ee((0,Ue.clsx)(e))}var Ge=require("react/jsx-runtime"),Lt=(0,Le.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 pe({className:e,variant:t,...o}){return(0,Ge.jsx)("div",{className:m(Lt({variant:t}),e),...o})}var Ve=require("@radix-ui/react-slot"),Fe=j(require("react")),Gt=(0,Le.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:"Ge-10 px-4 py-2",icon:"Ge-10 w-10",lg:"Ge-11 rounded px-8",sm:"Ge-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"}}}),J=Fe.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...n},i)=>(0,Ge.jsx)(e?Ve.Slot:"button",{className:m(Gt({className:t,size:o,variant:r})),ref:i,...n}));J.displayName="Button";var Oe=j(require("react"));var me=Oe.forwardRef(({className:e,type:t,...o},r)=>(0,Ge.jsx)("input",{type:t,className:m("flex Ge-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));me.displayName="Input";var ue=j(require("react")),A=j(require("@radix-ui/react-scroll-area"));var ge=ue.forwardRef(({className:e,children:t,...o},r)=>(0,Ge.jsxs)(A.Root,{ref:r,className:m("relative overflow-hidden",e),...o,children:[(0,Ge.jsx)(A.Viewport,{className:"Ge-full w-full rounded-[inherit]",children:t}),(0,Ge.jsx)(qe,{}),(0,Ge.jsx)(A.Corner,{})]}));ge.displayName=A.Root.displayName;var qe=ue.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,Ge.jsx)(A.ScrollAreaScrollbar,{ref:r,orientation:t,className:m("flex touch-none select-none transition-colors",t==="vertical"&&"Ge-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"Ge-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,Ge.jsx)(A.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));qe.displayName=A.ScrollAreaScrollbar.displayName;var $e=require("react");var z=j(require("react")),p=j(require("@radix-ui/react-dropdown-menu")),F=require("@radix-ui/react-icons");var Je=p.Root,Ke=p.Trigger;var Vt=z.forwardRef(({className:e,inset:t,children:o,...r},n)=>(0,Ge.jsxs)(p.SubTrigger,{ref:n,className:m("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,Ge.jsx)(F.ChevronRightIcon,{className:"ml-auto"})]}));Vt.displayName=p.SubTrigger.displayName;var Wt=z.forwardRef(({className:e,...t},o)=>(0,Ge.jsx)(p.SubContent,{ref:o,className:m("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}));Wt.displayName=p.SubContent.displayName;var fe=z.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Ge.jsx)(p.Portal,{children:(0,Ge.jsx)(p.Content,{ref:r,sideOffset:t,className:m("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})}));fe.displayName=p.Content.displayName;var be=z.forwardRef(({className:e,inset:t,...o},r)=>(0,Ge.jsx)(p.Item,{ref:r,className:m("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}));be.displayName=p.Item.displayName;var Ft=z.forwardRef(({className:e,children:t,checked:o,...r},n)=>(0,Ge.jsxs)(p.CheckboxItem,{ref:n,className:m("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,Ge.jsx)("span",{className:"absolute left-2 flex Ge-3.5 w-3.5 items-center justify-center",children:(0,Ge.jsx)(p.ItemIndicator,{children:(0,Ge.jsx)(F.CheckIcon,{className:"Ge-4 w-4"})})}),t]}));Ft.displayName=p.CheckboxItem.displayName;var _t=z.forwardRef(({className:e,children:t,...o},r)=>(0,Ge.jsxs)(p.RadioItem,{ref:r,className:m("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,Ge.jsx)("span",{className:"absolute left-2 flex Ge-3.5 w-3.5 items-center justify-center",children:(0,Ge.jsx)(p.ItemIndicator,{children:(0,Ge.jsx)(F.DotFilledIcon,{className:"Ge-4 w-4 fill-current"})})}),t]}));_t.displayName=p.RadioItem.displayName;var he=z.forwardRef(({className:e,inset:t,...o},r)=>(0,Ge.jsx)(p.Label,{ref:r,className:m("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));he.displayName=p.Label.displayName;var we=z.forwardRef(({className:e,...t},o)=>(0,Ge.jsx)(p.Separator,{ref:o,className:m("-mx-1 my-1 Ge-px bg-muted",e),...t}));we.displayName=p.Separator.displayName;var Ot=({className:e,...t})=>(0,Ge.jsx)("span",{className:m("ml-auto text-xs tracking-widest opacity-60",e),...t});Ot.displayName="DropdownMenuShortcut";function Xe({currentUnit:e,businessUnits:t,onUnitChange:o,className:r}){let[n,i]=(0,$e.useState)(!1);return(0,Ge.jsxs)(Je,{open:n,onOpenChange:i,children:[(0,Ge.jsx)(Ke,{asChild:!0,children:(0,Ge.jsxs)(J,{variant:"ghost",role:"combobox","aria-expanded":n,className:m("w-full justify-between rounded-2xl px-3 py-2 Ge-auto min-Ge-[44px] hover:bg-muted/50",r),children:[(0,Ge.jsxs)("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[(0,Ge.jsx)("div",{className:m("flex Ge-8 w-8 items-center justify-center rounded-lg text-white",e.color),children:e.icon}),(0,Ge.jsxs)("div",{className:"flex flex-col items-start min-w-0 flex-1",children:[(0,Ge.jsx)("span",{className:"font-medium text-sm truncate w-full text-left",children:e.name}),(0,Ge.jsx)("span",{className:"text-xs text-muted-foreground truncate w-full text-left",children:e.description})]})]}),(0,Ge.jsx)(L.ChevronDown,{className:"ml-2 Ge-4 w-4 shrink-0 opacity-50"})]})}),(0,Ge.jsxs)(fe,{className:"w-[280px] p-2",align:"start",children:[(0,Ge.jsx)(he,{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:"Switch Business Unit"}),(0,Ge.jsx)(we,{}),(0,Ge.jsx)("div",{className:"grid gap-1",children:t&&t.length>0?t.map(a=>(0,Ge.jsxs)(be,{className:"flex items-center gap-3 p-2 rounded-lg cursor-pointer",onSelect:()=>{o(a),i(!1)},children:[(0,Ge.jsx)("div",{className:m("flex Ge-8 w-8 items-center justify-center rounded-lg text-white",a.color),children:a.icon}),(0,Ge.jsxs)("div",{className:"flex flex-col items-start min-w-0 flex-1",children:[(0,Ge.jsxs)("div",{className:"flex items-center gap-2 w-full",children:[(0,Ge.jsx)("span",{className:"font-medium text-sm truncate",children:a.name}),e.id===a.id&&(0,Ge.jsx)(L.Check,{className:"Ge-4 w-4 text-primary"})]}),(0,Ge.jsx)("span",{className:"text-xs text-muted-foreground truncate w-full",children:a.description})]})]},a.id)):(0,Ge.jsx)("div",{className:"flex items-center justify-center p-4 text-sm text-muted-foreground",children:"No business units available"})})]})]})}var N=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date});var Qe=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,Ge.jsx)(L.Palette,{className:"Ge-4 w-4"}),color:"bg-purple-600",accentColor:"text-purple-600"},{id:"engineering",name:"Engineering",description:"Software development and technical teams",icon:(0,Ge.jsx)(L.Code,{className:"Ge-4 w-4"}),color:"bg-blue-600",accentColor:"text-blue-600"},{id:"marketing",name:"Marketing",description:"Brand, campaigns, and growth marketing",icon:(0,Ge.jsx)(L.TrendingUp,{className:"Ge-4 w-4"}),color:"bg-pink-600",accentColor:"text-pink-600"},{id:"sales",name:"Sales",description:"Revenue generation and customer acquisition",icon:(0,Ge.jsx)(L.DollarSign,{className:"Ge-4 w-4"}),color:"bg-green-600",accentColor:"text-green-600"},{id:"hr",name:"Human Resources",description:"People operations and talent management",icon:(0,Ge.jsx)(L.Users,{className:"Ge-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"},{id:"operations",name:"Operations",description:"Business operations and process optimization",icon:(0,Ge.jsx)(L.Wrench,{className:"Ge-4 w-4"}),color:"bg-indigo-600",accentColor:"text-indigo-600"},{id:"legal",name:"Legal",description:"Legal affairs and compliance",icon:(0,Ge.jsx)(L.Scale,{className:"Ge-4 w-4"}),color:"bg-slate-600",accentColor:"text-slate-600"},{id:"product",name:"Product",description:"Product strategy and management",icon:(0,Ge.jsx)(L.Package,{className:"Ge-4 w-4"}),color:"bg-violet-600",accentColor:"text-violet-600"},{id:"it",name:"IT Support",description:"Information technology and infrastructure",icon:(0,Ge.jsx)(L.Zap,{className:"Ge-4 w-4"}),color:"bg-cyan-600",accentColor:"text-cyan-600"},{id:"company",name:"Company",description:"Company-wide resources and information",icon:(0,Ge.jsx)(L.Building2,{className:"Ge-4 w-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],te=[{id:"1",name:"E-commerce Platform",description:"Main customer-facing e-commerce application",isSelected:!0},{id:"2",name:"Admin Dashboard",description:"Internal administration and analytics dashboard",isSelected:!1},{id:"3",name:"Mobile App",description:"Native mobile application for iOS and Android",isSelected:!1}];var ye=[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0},{id:"2",name:"Dashboard Features",color:"bg-green-500",description:"Build comprehensive dashboard functionality",confidence:"medium",phase:1,startDate:new Date("2024-02-01"),endDate:new Date("2024-03-15"),progress:30,isSelected:!0},{id:"3",name:"Mobile Optimization",color:"bg-purple-500",description:"Optimize application for mobile devices",confidence:"low",phase:1,startDate:new Date("2024-03-01"),endDate:new Date("2024-04-15"),progress:10,isSelected:!0},{id:"4",name:"Performance Improvements",color:"bg-orange-500",description:"Enhance application performance and speed",confidence:"high",phase:3,startDate:new Date("2024-01-15"),endDate:new Date("2024-02-28"),progress:90,isSelected:!0}],Z=[{id:"backlog",name:"Backlog",description:"Tasks not yet assigned to a sprint",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!1},{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0},{id:"1",name:"Sprint 1",description:"Initial development phase",startDate:new Date("2024-01-01"),endDate:new Date("2024-01-14"),isActive:!1,isSelected:!1},{id:"2",name:"Sprint 2",description:"Feature development",startDate:new Date("2024-01-15"),endDate:new Date("2024-01-28"),isActive:!0,isSelected:!1}],re=[{id:"1",title:"Design login page",description:"Create wireframes and mockups for the login interface",status:"todo",priority:"high",type:"story",points:5,epicId:"1",sprintId:"2",assignee:"John Doe",createdAt:new Date("2024-01-15")},{id:"2",title:"Implement OAuth integration",description:"Add Google and GitHub OAuth authentication",status:"review",priority:"high",type:"task",points:8,epicId:"1",sprintId:"2",assignee:"Jane Smith",createdAt:new Date("2024-01-16")},{id:"3",title:"Create dashboard widgets",description:"Build analytics and metrics widgets for the main dashboard",status:"todo",priority:"medium",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Mike Johnson",createdAt:new Date("2024-01-17")},{id:"4",title:"Fix login redirect bug",description:"Resolve issue where users are not redirected after login",status:"done",priority:"high",type:"bug",points:3,epicId:"1",sprintId:"1",assignee:"Sarah Wilson",createdAt:new Date("2024-01-14")},{id:"5",title:"Research mobile frameworks",description:"Investigate best practices for mobile responsive design",status:"in-progress",priority:"medium",type:"spike",points:5,epicId:"3",assignee:"Alex Brown",createdAt:new Date("2024-01-18")},{id:"6",title:"Update user profile page",description:"Enhance user profile with new settings and preferences",status:"review",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Emma Davis",createdAt:new Date("2024-01-19")},{id:"7",title:"Performance optimization",description:"Optimize database queries and improve page load times",status:"done",priority:"high",type:"task",points:13,epicId:"4",sprintId:"1",assignee:"Tom Wilson",createdAt:new Date("2024-01-13")}],Ht=[...re,{id:"8",title:"Add search functionality",description:"Implement search across all dashboard widgets",status:"todo",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Chris Lee",createdAt:new Date("2024-01-20")},{id:"9",title:"Fix mobile responsive issues",description:"Resolve layout problems on mobile devices",status:"in-progress",priority:"high",type:"bug",points:5,epicId:"3",sprintId:"2",assignee:"Taylor Swift",createdAt:new Date("2024-01-21")},{id:"10",title:"Implement dark mode",description:"Add dark theme support across the application",status:"review",priority:"low",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Jordan Smith",createdAt:new Date("2024-01-22")},{id:"11",title:"API rate limiting",description:"Implement rate limiting for API endpoints",status:"done",priority:"high",type:"task",points:8,epicId:"4",sprintId:"1",assignee:"Morgan Davis",createdAt:new Date("2024-01-12")},{id:"12",title:"User onboarding flow",description:"Create guided tour for new users",status:"todo",priority:"medium",type:"story",points:21,epicId:"1",sprintId:"2",assignee:"Casey Johnson",createdAt:new Date("2024-01-23")}],qt=[...te,{id:"4",name:"Analytics Platform",description:"Business intelligence and reporting system",isSelected:!1},{id:"5",name:"API Gateway",description:"Microservices API management layer",isSelected:!1}],ee={projects:[{id:"1",name:"Empty Project",description:"A project with no tasks",isSelected:!0}],epics:[],sprints:[{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0}],tasks:[]},Ye={epics:[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0}],tasks:re.filter(e=>e.epicId==="1")};var wo={empty:{initialProjects:ee.projects,initialEpics:ee.epics,initialSprints:ee.sprints,initialTasks:ee.tasks},default:{initialProjects:te,initialEpics:ye,initialSprints:Z,initialTasks:re},highDensity:{initialProjects:te,initialEpics:ye,initialSprints:Z,initialTasks:Ht},singleEpic:{initialProjects:te,initialEpics:Ye.epics,initialSprints:Z,initialTasks:Ye.tasks},multipleProjects:{initialProjects:qt,initialEpics:ye,initialSprints:Z,initialTasks:re}},oe=[{id:"1",type:"human",name:"Sarah Johnson",email:"sarah.johnson@company.com",role:"Senior Designer",department:"Design",status:"active",joinedDate:new Date("2023-01-15"),lastActive:new Date,phone:"+1 (555) 123-4567",location:"San Francisco, CA",timezone:"PST",skills:["UI/UX Design","Figma","Adobe Creative Suite","Prototyping","User Research"],bio:"Passionate designer with 8+ years of experience creating user-centered digital experiences."},{id:"2",type:"digital",name:"CodeAssist Pro",status:"active",joinedDate:new Date("2024-01-01"),lastActive:new Date,jobDescription:"AI-powered coding assistant that helps with code review, debugging, and documentation generation.",workInstructions:"Review pull requests for code quality and best practices. Generate comprehensive documentation for new features. Assist with debugging complex issues. Provide code suggestions and optimizations.",capabilities:["Code Review","Documentation Generation","Debugging","Code Optimization","Testing"],knowledge:["JavaScript","TypeScript","React","Node.js","Python","Git"].map(N),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(N),version:"2",lastUpdated:new Date("2024-01-15"),isActive:!0},{id:"3",type:"human",name:"Michael Chen",email:"michael.chen@company.com",role:"Product Manager",department:"Product",status:"inactive",joinedDate:new Date("2022-08-20"),lastActive:new Date(Date.now()-2*60*60*1e3),phone:"+1 (555) 987-6543",location:"New York, NY",timezone:"EST",skills:["Product Strategy","Agile","Data Analysis","User Stories","Roadmapping"],bio:"Strategic product manager focused on driving user engagement and business growth."},{id:"4",type:"digital",name:"MarketingBot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"Specialized AI assistant for marketing campaigns, content creation, and social media management.",workInstructions:"Create engaging social media content. Analyze campaign performance metrics. Generate marketing copy and headlines. Schedule and manage social media posts.",capabilities:["Content Creation","Social Media Management","Analytics","SEO Optimization","Campaign Management"],knowledge:["Digital Marketing","Social Media Platforms","Content Strategy","Analytics Tools"].map(N),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(N),version:"52",lastUpdated:new Date("2024-02-10"),isActive:!0},{id:"5",type:"human",name:"Emily Rodriguez",email:"emily.rodriguez@company.com",role:"UX Researcher",department:"Design",status:"inactive",joinedDate:new Date("2023-06-10"),lastActive:new Date(Date.now()-7*24*60*60*1e3),phone:"+1 (555) 456-7890",location:"Austin, TX",timezone:"CST",skills:["User Research","Usability Testing","Data Analysis","Survey Design","Interview Techniques"],bio:"User researcher dedicated to understanding user needs and improving product experiences."},{id:"6",type:"digital",name:"DataAnalyzer Pro",status:"active",joinedDate:new Date("2024-01-10"),lastActive:new Date,jobDescription:"Advanced AI assistant specializing in data analysis, reporting, and business intelligence.",workInstructions:"Analyze complex datasets, generate insightful reports, create data visualizations, and provide actionable business recommendations.",capabilities:["Data Analysis","Report Generation","Data Visualization","Business Intelligence","Statistical Analysis"],knowledge:["Python","SQL","Tableau","Excel","Ge","Statistics"].map(N),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(N),version:"3.1",lastUpdated:new Date("2024-02-20"),isActive:!0},{id:"7",type:"digital",name:"ProjectManager AI",status:"active",joinedDate:new Date("2024-01-05"),lastActive:new Date,jobDescription:"Intelligent project management assistant that helps coordinate tasks, track progress, and manage timelines.",workInstructions:"Coordinate project activities, track milestones, manage resource allocation, and provide project status updates.",capabilities:["Project Planning","Task Coordination","Timeline Management","Resource Allocation","Progress Tracking"],knowledge:["Agile","Scrum","Gantt Charts","Risk Management","Stakeholder Management"].map(N),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(N),version:"2.5",lastUpdated:new Date("2024-02-15"),isActive:!0},{id:"8",type:"digital",name:"CustomerSupport Bot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"AI-powered customer support assistant that handles inquiries, resolves issues, and escalates complex problems.",workInstructions:"Respond to customer inquiries, troubleshoot common issues, provide product information, and escalate complex cases to human agents.",capabilities:["Customer Support","Issue Resolution","Product Knowledge","Escalation Management","Chat Support"],knowledge:["Product Documentation","FAQ","Troubleshooting Guides","Customer Service Best Practices"].map(N),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(N),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],yo=[{id:"1",title:"Review quarterly report",description:"Go through Q4 performance metrics and prepare summary for the team meeting",dueDate:new Date(2024,2,15),dueTime:"14:30",colleague:oe.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:30,createdAt:new Date(2024,2,10),tags:["quarterly","review","urgent"]},{id:"2",title:"Weekly team standup",description:"Join the weekly team synchronization meeting",dueDate:new Date(2024,2,18),dueTime:"10:00",colleague:oe.find(e=>e.id==="4"&&e.type==="digital"),isCompleted:!1,isRecurring:!0,recurrencePattern:"weekly",recurrenceInterval:1,priority:"medium",reminderEnabled:!0,reminderMinutes:15,createdAt:new Date(2024,2,11),tags:["meeting","standup","weekly"]},{id:"3",title:"Deploy to production",description:"Deploy the latest version to production environment",dueDate:new Date,dueTime:"16:00",colleague:oe.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:60,createdAt:new Date,tags:["deploy","production","urgent"]}];var vo=oe.filter(e=>e.type==="digital");function Jt({items:e,isOpen:t,isMobile:o=!1,onClose:r,currentBusinessUnit:n=Qe[0],onBusinessUnitChange:i,className:a,logo:s="/headerlogo.png",appName:w="Nuvia",tagline:x="Collaboration Platform"}){let[D,k]=Ze.useState({}),P=l=>{k(u=>({...u,[l]:!u[l]}))},M=l=>{i?.(l)},C=l=>{let u=(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsxs)("div",{className:"flex items-center gap-3",children:[l.icon,(0,Ge.jsx)("span",{children:l.title})]}),l.badge&&(0,Ge.jsx)(pe,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:l.badge}),l.items&&(0,Ge.jsx)(L.ChevronDown,{className:m("ml-2 Ge-4 w-4 transition-transform",D[l.title]?"rotate-180":"")})]}),S=m("flex w-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",l.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return l.url?(0,Ge.jsx)(ve.default,{href:l.url,className:S,onClick:o?r:void 0,children:u}):(0,Ge.jsx)("button",{className:S,onClick:()=>l.items&&P(l.title),children:u})},y=(0,Ge.jsxs)("div",{className:"flex Ge-full flex-col border-r bg-background",children:[(0,Ge.jsxs)("div",{className:"flex items-center justify-between p-4",children:[(0,Ge.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ge.jsx)("div",{className:"flex Ge-14 w-14 items-center justify-center ",children:(0,Ge.jsx)("img",{src:s,alt:"Header Logo",className:"Ge-14 w-14 object-contain"})}),(0,Ge.jsxs)("div",{children:[(0,Ge.jsxs)("h2",{className:"font-semibold",children:[w,(0,Ge.jsx)("br",{})]}),(0,Ge.jsxs)("p",{className:"text-xs text-muted-foreground",children:[x,(0,Ge.jsx)("br",{})]})]})]}),o&&(0,Ge.jsx)(J,{variant:"ghost",size:"icon",onClick:r,children:(0,Ge.jsx)(L.X,{className:"Ge-5 w-5"})})]}),(0,Ge.jsx)("div",{className:"px-3 py-2",children:(0,Ge.jsxs)("div",{className:"relative",children:[(0,Ge.jsx)(L.Search,{className:"absolute left-3 top-3 Ge-4 w-4 text-muted-foreground"}),(0,Ge.jsx)(me,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2"})]})}),(0,Ge.jsx)("div",{className:"px-3 pb-2",children:(0,Ge.jsx)(Xe,{currentUnit:n,onUnitChange:M})}),(0,Ge.jsx)(ge,{className:"flex-1 px-3 py-2",children:(0,Ge.jsx)("div",{className:"space-y-1",children:e.map(l=>(0,Ge.jsxs)("div",{className:"mb-1",children:[C(l),l.items&&D[l.title]&&(0,Ge.jsx)("div",{className:"mt-1 ml-6 space-y-1 border-l pl-3",children:l.items.map(u=>(0,Ge.jsxs)(ve.default,{href:u.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:o?r:void 0,children:[u.title,u.badge&&(0,Ge.jsx)(pe,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:u.badge})]},u.title))})]},l.title))})}),(0,Ge.jsx)("div",{className:"border-t p-3",children:(0,Ge.jsx)("div",{className:"space-y-1",children:(0,Ge.jsxs)("button",{className:"flex w-full items-center gap-3 rounded-2xl px-3 py-2 text-sm font-medium hover:bg-muted",children:[(0,Ge.jsx)(L.Settings,{className:"Ge-5 w-5"}),(0,Ge.jsx)("span",{children:"Settings"})]})})})]});return o?(0,Ge.jsx)("div",{className:m("fixed inset-y-0 left-0 z-50 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",a),children:y}):(0,Ge.jsx)("div",{className:m("fixed inset-y-0 left-0 z-30 w-64 transform border-r bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",a),children:y})}0&&(module.exports={Sidebar});
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
"use client";import{a as b}from"../../chunk-HNCC3AOT.mjs";import{c as v}from"../../chunk-PA4ZBJDO.mjs";import"../../chunk-OCPX4QPC.mjs";import{a as g}from"../../chunk-FT3AE7L2.mjs";import{a as p}from"../../chunk-L5JPAKPM.mjs";import{b as f}from"../../chunk-ZUA4KNIR.mjs";import{b as o}from"../../chunk-CSBGSBEU.mjs";import{a as n}from"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";import*as N from"react";import x from"next/link";import{ChevronDown as I,Search as L,Settings as z,X as P}from"lucide-react";import{Fragment as R,jsx as e,jsxs as a}from"react/jsx-runtime";function O({items:h,isOpen:l,isMobile:r=!1,onClose:i,currentBusinessUnit:y=v[0],onBusinessUnitChange:w,className:d,logo:S="/headerlogo.png",appName:k="Nuvia",tagline:B="Collaboration Platform"}){let[m,C]=N.useState({}),U=t=>{C(s=>({...s,[t]:!s[t]}))},A=t=>{w?.(t)},j=t=>{let s=a(R,{children:[a("div",{className:"flex items-center gap-3",children:[t.icon,e("span",{children:t.title})]}),t.badge&&e(o,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:t.badge}),t.items&&e(I,{className:n("ml-2 h-4 w-4 transition-transform",m[t.title]?"rotate-180":"")})]}),u=n("flex w-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",t.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return t.url?e(x,{href:t.url,className:u,onClick:r?i:void 0,children:s}):e("button",{className:u,onClick:()=>t.items&&U(t.title),children:s})},c=a("div",{className:"flex h-full flex-col border-r bg-background",children:[a("div",{className:"flex items-center justify-between p-4",children:[a("div",{className:"flex items-center gap-3",children:[e("div",{className:"flex h-14 w-14 items-center justify-center ",children:e("img",{src:S,alt:"Header Logo",className:"h-14 w-14 object-contain"})}),a("div",{children:[a("h2",{className:"font-semibold",children:[k,e("br",{})]}),a("p",{className:"text-xs text-muted-foreground",children:[B,e("br",{})]})]})]}),r&&e(f,{variant:"ghost",size:"icon",onClick:i,children:e(P,{className:"h-5 w-5"})})]}),e("div",{className:"px-3 py-2",children:a("div",{className:"relative",children:[e(L,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e(p,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2"})]})}),e("div",{className:"px-3 pb-2",children:e(b,{currentUnit:y,onUnitChange:A})}),e(g,{className:"flex-1 px-3 py-2",children:e("div",{className:"space-y-1",children:h.map(t=>a("div",{className:"mb-1",children:[j(t),t.items&&m[t.title]&&e("div",{className:"mt-1 ml-6 space-y-1 border-l pl-3",children:t.items.map(s=>a(x,{href:s.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:r?i:void 0,children:[s.title,s.badge&&e(o,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:s.badge})]},s.title))})]},t.title))})}),e("div",{className:"border-t p-3",children:e("div",{className:"space-y-1",children:a("button",{className:"flex w-full items-center gap-3 rounded-2xl px-3 py-2 text-sm font-medium hover:bg-muted",children:[e(z,{className:"h-5 w-5"}),e("span",{children:"Settings"})]})})})]});return r?e("div",{className:n("fixed inset-y-0 left-0 z-50 w-64 transform bg-background transition-transform duration-300 ease-in-out",l?"translate-x-0":"-translate-x-full",d),children:c}):e("div",{className:n("fixed inset-y-0 left-0 z-30 w-64 transform border-r bg-background transition-transform duration-300 ease-in-out",l?"translate-x-0":"-translate-x-full",d),children:c})}export{O as Sidebar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-BGADMIWV.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-2QZUKVBA.mjs";import"../../chunk-SRUG246N.mjs";import"../../chunk-4CU7D3X2.mjs";import"../../chunk-JYL3XIJX.mjs";import"../../chunk-LVK4QE5D.mjs";import"../../chunk-LKGCU7H6.mjs";import"../../chunk-5WV5ZFEP.mjs";import"../../chunk-KX2NCNCS.mjs";import"../../chunk-LEC6GEWS.mjs";import"../../chunk-NSMXJCXE.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-UZSBX5GO.mjs";import"../../chunk-VNYUNZ3M.mjs";import"../../chunk-VRE6VCHX.mjs";import"../../chunk-KFCSVEI6.mjs";import"../../chunk-TEB67NCD.mjs";import"../../chunk-LXZAOORS.mjs";import"../../chunk-MGYV46AJ.mjs";import"../../chunk-CGDLOY7W.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-BG7QXNV5.mjs";import"../../chunk-AZ4VR5JX.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as BannerBlock};
|