cortex-react-components 2.27.0 → 2.28.1
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-2TUBS2HM.mjs +4 -0
- package/dist/{chunk-JDIPWJBD.mjs → chunk-46N4YPMB.mjs} +1 -1
- package/dist/{chunk-FZX3ZPEU.mjs → chunk-4LUF5GZ6.mjs} +1 -1
- package/dist/chunk-6UULUGR2.mjs +1 -0
- package/dist/chunk-6ZMZX5TB.mjs +1 -0
- package/dist/{chunk-GHOL5L32.mjs → chunk-7BYNW77I.mjs} +1 -1
- package/dist/{chunk-ZEALRBXW.mjs → chunk-7DDFZ2M3.mjs} +1 -1
- package/dist/{chunk-C4RWEPVF.mjs → chunk-7MPZOMXK.mjs} +1 -1
- package/dist/{chunk-75F3LJMX.mjs → chunk-AABB4TFO.mjs} +1 -1
- package/dist/{chunk-GTZJWMZR.mjs → chunk-ALEPCEWP.mjs} +1 -1
- package/dist/{chunk-TJZVV3XH.mjs → chunk-ATPB5HSG.mjs} +1 -1
- package/dist/{chunk-RGOKBIQ5.mjs → chunk-CC57QZMB.mjs} +1 -1
- package/dist/{chunk-OQBCIB4L.mjs → chunk-CK2TD4BY.mjs} +1 -1
- package/dist/{chunk-NBJLXJQ3.mjs → chunk-COBOHCBL.mjs} +1 -1
- package/dist/chunk-DNMM3Q72.mjs +9 -0
- package/dist/{chunk-LJXTXROJ.mjs → chunk-EM4CGGGV.mjs} +1 -1
- package/dist/{chunk-AJQHGVZ5.mjs → chunk-FB5PBKLV.mjs} +1 -1
- package/dist/{chunk-TVTTUSWM.mjs → chunk-FBEHQRZ4.mjs} +1 -1
- package/dist/{chunk-VKCDLKYH.mjs → chunk-FJ2HHNPX.mjs} +1 -1
- package/dist/{chunk-TYARLEAC.mjs → chunk-G2DQLEAJ.mjs} +1 -1
- package/dist/chunk-G3BOVXUM.mjs +4 -0
- package/dist/{chunk-3Y7QG6VP.mjs → chunk-IISYRLNU.mjs} +1 -1
- package/dist/{chunk-NINFDOV5.mjs → chunk-ITNR7N47.mjs} +1 -1
- package/dist/chunk-IUVPH5LV.mjs +4 -0
- package/dist/chunk-JQL4XGAF.mjs +4 -0
- package/dist/{chunk-EM3T2XYC.mjs → chunk-L2OBO2VZ.mjs} +1 -1
- package/dist/chunk-LEZ6G4X7.mjs +4 -0
- package/dist/{chunk-2O54GV6Q.mjs → chunk-LJFBHY4P.mjs} +1 -1
- package/dist/chunk-MCOHKE2T.mjs +1 -0
- package/dist/{chunk-SWE754OC.mjs → chunk-MH4YPGH4.mjs} +1 -1
- package/dist/{chunk-RJGYVDOU.mjs → chunk-MU47F4UR.mjs} +1 -1
- package/dist/{chunk-4FEVXBNU.mjs → chunk-NCJAMNMQ.mjs} +1 -1
- package/dist/{chunk-WIRQ5IRT.mjs → chunk-NDBSSX6Q.mjs} +1 -1
- package/dist/{chunk-7NWIK57W.mjs → chunk-NXAXOI33.mjs} +1 -1
- package/dist/{chunk-3HNU2NYP.mjs → chunk-QDP657UR.mjs} +1 -1
- package/dist/{chunk-KEK763EH.mjs → chunk-QKDYTCZC.mjs} +1 -1
- package/dist/{chunk-FE7ZGUPU.mjs → chunk-RV4XL2CG.mjs} +1 -1
- package/dist/{chunk-2BRDNDUB.mjs → chunk-SME3D72Q.mjs} +1 -1
- package/dist/{chunk-LEF6M5ZD.mjs → chunk-SNFBF6KT.mjs} +1 -1
- package/dist/{chunk-7TSR2LQB.mjs → chunk-TIAA3ZN3.mjs} +1 -1
- package/dist/{chunk-3NRXQBBS.mjs → chunk-TIIYFAV6.mjs} +1 -1
- package/dist/{chunk-HSQAHQNP.mjs → chunk-TKCFCYEQ.mjs} +1 -1
- package/dist/{chunk-OWL3KUE3.mjs → chunk-TKY52BNP.mjs} +1 -1
- package/dist/{chunk-7R47MHQE.mjs → chunk-TQKXHMD7.mjs} +1 -1
- package/dist/chunk-VFIMFZX5.mjs +1 -0
- package/dist/{chunk-CXOVEABI.mjs → chunk-VNKGAW4K.mjs} +1 -1
- package/dist/{chunk-I75OOO4H.mjs → chunk-VRHJOUL3.mjs} +1 -1
- package/dist/{chunk-TTWEHUP5.mjs → chunk-WRCRZUGO.mjs} +1 -1
- package/dist/{chunk-XMYXQR5W.mjs → chunk-X3YJJBFJ.mjs} +1 -1
- package/dist/{chunk-LAP57E2L.mjs → chunk-XJKNH5LL.mjs} +1 -1
- package/dist/{chunk-5MWZTJYP.mjs → chunk-YH72WKGC.mjs} +1 -1
- package/dist/chunk-YRDJBAYA.mjs +4 -0
- package/dist/chunk-ZLFZBT3K.mjs +1 -0
- package/dist/components/AdvancedComponents/index.js +8 -8
- package/dist/components/AdvancedComponents/index.mjs +1 -1
- package/dist/components/AdvancedComponents/org-chart-component/CompanyNode.d.ts +7 -0
- package/dist/components/AdvancedComponents/org-chart-component/CompanyNode.js +1 -0
- package/dist/components/AdvancedComponents/org-chart-component/CompanyNode.mjs +1 -0
- package/dist/components/AdvancedComponents/org-chart-component/OrgChart.d.ts +2 -0
- package/dist/components/AdvancedComponents/org-chart-component/OrgChart.js +8 -8
- package/dist/components/AdvancedComponents/org-chart-component/OrgChart.mjs +1 -1
- package/dist/components/AdvancedComponents/org-chart-component/OrgNode.js +5 -5
- package/dist/components/AdvancedComponents/org-chart-component/OrgNode.mjs +1 -1
- package/dist/components/AdvancedComponents/org-chart-component/OrgTree.d.ts +11 -2
- package/dist/components/AdvancedComponents/org-chart-component/OrgTree.js +8 -8
- package/dist/components/AdvancedComponents/org-chart-component/OrgTree.mjs +1 -1
- package/dist/components/AdvancedComponents/org-chart-component/index.d.ts +2 -0
- package/dist/components/AdvancedComponents/org-chart-component/index.js +8 -8
- package/dist/components/AdvancedComponents/org-chart-component/index.mjs +1 -1
- package/dist/components/AdvancedComponents/org-chart-component/mockData.d.ts +9 -7
- package/dist/components/AdvancedComponents/org-chart-component/mockData.js +1 -1
- package/dist/components/AdvancedComponents/org-chart-component/mockData.mjs +1 -1
- package/dist/components/AdvancedComponents/org-chart-component/types/index.mjs +1 -1
- package/dist/components/AdvancedComponents/org-chart-component/types.d.ts +42 -0
- package/dist/components/AdvancedComponents/org-chart-component/types.js +1 -0
- package/dist/components/AdvancedComponents/org-chart-component/types.mjs +1 -0
- package/dist/components/AdvancedComponents/org-chart-component/utils.d.ts +2 -2
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/Chat/ChatInterface.js +11 -11
- package/dist/components/Chat/ChatInterface.mjs +1 -1
- package/dist/components/Chat/Components/Message.js +1 -1
- package/dist/components/Chat/Components/Message.mjs +1 -1
- package/dist/components/Chat/CopilotInterface.js +11 -10
- package/dist/components/Chat/CopilotInterface.mjs +1 -1
- package/dist/components/Chat/PartTypes/CodeBlock.d.ts +7 -5
- package/dist/components/Chat/PartTypes/CodeBlock.js +1 -1
- package/dist/components/Chat/PartTypes/CodeBlock.mjs +1 -1
- package/dist/components/Chat/PartTypes/ColleagueHandoff.d.ts +18 -0
- package/dist/components/Chat/PartTypes/ColleagueHandoff.js +5 -0
- package/dist/components/Chat/PartTypes/ColleagueHandoff.mjs +2 -0
- package/dist/components/Chat/PartTypes/Confirmation.d.ts +49 -0
- package/dist/components/Chat/PartTypes/Confirmation.js +4 -0
- package/dist/components/Chat/PartTypes/Confirmation.mjs +2 -0
- package/dist/components/Chat/PartTypes/Conversation.css +1 -0
- package/dist/components/Chat/PartTypes/Conversation.d.ts +15 -0
- package/dist/components/Chat/PartTypes/Conversation.js +4 -0
- package/dist/components/Chat/PartTypes/Conversation.mjs +2 -0
- package/dist/components/Chat/PartTypes/MessageHandler.js +8 -7
- package/dist/components/Chat/PartTypes/MessageHandler.mjs +1 -1
- package/dist/components/Chat/PartTypes/Tool.d.ts +12 -11
- package/dist/components/Chat/PartTypes/Tool.js +1 -1
- package/dist/components/Chat/PartTypes/Tool.mjs +1 -1
- package/dist/components/Chat/PartTypes/index.d.ts +3 -0
- package/dist/components/Chat/PartTypes/index.js +7 -6
- package/dist/components/Chat/PartTypes/index.mjs +1 -1
- package/dist/components/Chat/demo-long-messages.js +18 -17
- package/dist/components/Chat/demo-long-messages.mjs +1 -1
- package/dist/components/Chat/demo-tests.js +80 -79
- package/dist/components/Chat/demo-tests.mjs +1 -1
- package/dist/components/Chat/demo.js +11 -10
- package/dist/components/Chat/demo.mjs +1 -1
- package/dist/components/Chat/example-usage.js +12 -11
- package/dist/components/Chat/example-usage.mjs +1 -1
- package/dist/components/Chat/example-with-vercel-ai.js +11 -10
- package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
- package/dist/components/Chat/index.d.ts +0 -2
- package/dist/components/Chat/index.js +12 -14
- package/dist/components/Chat/index.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +1 -1
- package/dist/components/Foundary/Knowledge/add-team-context.mjs +1 -1
- package/dist/components/Foundary/MainPage.mjs +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
- package/dist/components/Foundary/RichText/index.mjs +1 -1
- package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +1 -1
- package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
- package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
- package/dist/components/Foundary/Views/index.mjs +1 -1
- package/dist/components/Foundary/document-edit.mjs +1 -1
- package/dist/components/Foundary/document-preview-examples.mjs +1 -1
- package/dist/components/Foundary/document-preview.mjs +1 -1
- package/dist/components/Foundary/file-edit.mjs +1 -1
- package/dist/components/Foundary/index.mjs +1 -1
- package/dist/components/Foundary/knowledge-browser.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/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/FileView.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
- package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
- package/dist/components/Projects/file-list.mjs +1 -1
- package/dist/components/Projects/index.mjs +1 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.js +35 -37
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/index.js +36 -38
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +3 -2
- package/dist/chunk-7JDMW5R3.mjs +0 -4
- package/dist/chunk-B7RZ4K6Y.mjs +0 -1
- package/dist/chunk-BAB3ATRB.mjs +0 -4
- package/dist/chunk-EPJJKGCG.mjs +0 -1
- package/dist/chunk-G6OGEIN4.mjs +0 -4
- package/dist/chunk-KQRQXBJ3.mjs +0 -9
- package/dist/chunk-N7M6FTIO.mjs +0 -4
- package/dist/chunk-SOTCQX2G.mjs +0 -1
- package/dist/chunk-UA2E23AS.mjs +0 -4
- package/dist/chunk-UJITFLIZ.mjs +0 -1
- package/dist/components/Chat/ChatInterfaceMessages.d.ts +0 -24
- package/dist/components/Chat/ChatInterfaceMessages.js +0 -7
- package/dist/components/Chat/ChatInterfaceMessages.mjs +0 -2
- package/dist/components/Chat/ChatMessage.d.ts +0 -19
- package/dist/components/Chat/ChatMessage.js +0 -7
- package/dist/components/Chat/ChatMessage.mjs +0 -1
- /package/dist/components/Chat/{ChatInterfaceMessages.css → PartTypes/ColleagueHandoff.css} +0 -0
- /package/dist/components/Chat/{ChatMessage.css → PartTypes/Confirmation.css} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as u}from"./chunk-
|
|
4
|
+
import{a as u}from"./chunk-NCJAMNMQ.mjs";import{d as m}from"./chunk-RKS7CWAP.mjs";import{a as c}from"./chunk-BZEGLKRZ.mjs";import{AutoFocusPlugin as f}from"@payloadcms/richtext-lexical/lexical/react/LexicalAutoFocusPlugin";import{LexicalComposer as g}from"@payloadcms/richtext-lexical/lexical/react/LexicalComposer";import{ContentEditable as x}from"@payloadcms/richtext-lexical/lexical/react/LexicalContentEditable";import{LexicalErrorBoundary as y}from"@payloadcms/richtext-lexical/lexical/react/LexicalErrorBoundary";import{HistoryPlugin as C}from"@payloadcms/richtext-lexical/lexical/react/LexicalHistoryPlugin";import{RichTextPlugin as N}from"@payloadcms/richtext-lexical/lexical/react/LexicalRichTextPlugin";import{ListPlugin as E}from"@payloadcms/richtext-lexical/lexical/react/LexicalListPlugin";import{ListItemNode as S,ListNode as R}from"@payloadcms/richtext-lexical/lexical/list";import{HeadingNode as b}from"@payloadcms/richtext-lexical/lexical/rich-text";import{OnChangePlugin as P}from"@payloadcms/richtext-lexical/lexical/react/LexicalOnChangePlugin";import{useEffect as h,useRef as L}from"react";import{useLexicalComposerContext as v}from"@payloadcms/richtext-lexical/lexical/react/LexicalComposerContext";import{Fragment as k,jsx as t,jsxs as d}from"react/jsx-runtime";var T=({setValue:l,value:e,name:a,editable:i=!0})=>{let[r]=v(),o=L(null),p=n=>{n.read(()=>{let s=n.toJSON();JSON.stringify(s)!==JSON.stringify(o.current)&&(o.current=s,l?.(()=>s))})};return h(()=>{r.setEditable(i)},[i,r]),h(()=>{e&&JSON.stringify(e)!==JSON.stringify(o.current)&&r.update(()=>{try{let n=r.parseEditorState(e);r.setEditorState(n),o.current=e}catch(n){console.error("Error parsing editor state:",n)}},{discrete:!0})},[e,r]),t("div",{className:"w-full",children:d("div",{className:" ",children:[i&&t(u,{}),d("div",{className:"px-4 my-4 border-l border-[#222222]",children:[t(N,{contentEditable:t(x,{name:a,className:"focus:outline-none focus:ring-0 focus-visible:outline-none min-h-40"}),ErrorBoundary:y}),i&&d(k,{children:[t(C,{}),t(f,{}),t(E,{}),t(P,{onChange:p}),t(m,{})]})]})]})})},O=({setValue:l,value:e,name:a,editable:i=!0})=>t(g,{initialConfig:{namespace:"Lexical editor",nodes:[R,S,b,c],onError(o){throw console.error("Lexical error:",o),o},theme:{code:"editor-code",heading:{h1:"text-4xl text-primary",h2:"text-3xl",h3:"text-2xl",h4:"text-lg",h5:"text-sm"},image:"editor-image",link:"editor-link",list:{listitem:"editor-listitem",nested:{listitem:"editor-nested-listitem"},ol:"list-decimal",ul:"list-disc"},ltr:"ltr",paragraph:"editor-paragraph",placeholder:"editor-placeholder",quote:"editor-quote",rtl:"rtl",text:{bold:"editor-text-bold font-bold",code:"editor-text-code",hashtag:"editor-text-hashtag",italic:"editor-text-italic italic",overflowed:"editor-text-overflowed",strikethrough:"editor-text-strikethrough line-through",underline:"editor-text-underline underline",underlineStrikethrough:"underline line-through"}}},children:t(T,{value:e,setValue:l,name:a,editable:i})}),X=O;export{X as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as q}from"./chunk-KZCIHFTM.mjs";import{a as J}from"./chunk-FJ2HHNPX.mjs";import{a as S}from"./chunk-KG7HG2VO.mjs";import{a as Q}from"./chunk-L3V5YDPH.mjs";import{a as G}from"./chunk-QC2UWZWL.mjs";import{a as V}from"./chunk-Z22NSJMF.mjs";import{a as w}from"./chunk-UVHMI3PU.mjs";import{b as z}from"./chunk-CSBGSBEU.mjs";import Te,{useEffect as c,useState as n,useRef as l}from"react";import{jsx as a,jsxs as v}from"react/jsx-runtime";var Ne=({initialTasks:p=[],initialEpics:T=[],initialSprints:h=[],initialUsers:he=[],initialColleagues:A=[],initialProjects:Ae=[],onAddTask:W,onUpdateTask:D,onDeleteTask:x,onTaskClick:X,onAddEpic:Y,onAddComment:Z,onUploadFile:_,onDeleteFile:ee,onFileUpdate:te})=>{let[se,u]=n([]),[d,y]=n([]),[O,ie]=n([]),[H,N]=n(!1),[P,U]=n(!1),[r,m]=n(null),[C,I]=n(null),[ae,De]=n([]),[M,ne]=n([]),[g,B]=n(0),o=l(null),re=l(null),oe=Te.useMemo(()=>[...d.map(e=>e.id),0],[d]),j=l(""),F=l(""),R=l(""),$=l(""),f=(e,t)=>e.map(s=>`${s.id}-${new Date(s.createdAt).getTime()}-${new Date(s.updatedAt).getTime()}`).join("-")+(t?`-${t}`:"");c(()=>{let e=p.map(s=>s.files?.filter(i=>typeof i=="object").map(i=>new Date(i.updatedAt).getTime())).flat(),t=f(p,e.join("-"));t!==j.current&&(u(p),r&&m(p.find(s=>s.id===r.id)||null),j.current=t)},[p]),c(()=>{let e=f(T);e!==F.current&&(y(T),F.current=e)},[T]),c(()=>{let e=f(h);e!==R.current&&(ie(h),R.current=e)},[h]),c(()=>{let e=f(A.map(t=>({id:t.id,updatedAt:t.updatedAt,createdAt:t.createdAt})));e!==$.current&&(ne(A),$.current=e)},[A]),c(()=>{let e=()=>{if(o.current){let i=o.current.offsetHeight;B(i)}};e();let t=new ResizeObserver(e);o.current&&t.observe(o.current);let s=()=>{setTimeout(e,100)};return window.addEventListener("storage",s),()=>{t.disconnect(),window.removeEventListener("storage",s)}},[]),c(()=>{let e=setTimeout(()=>{o.current&&B(o.current.offsetHeight)},300);return()=>clearTimeout(e)},[H,P]);let de=se.filter(e=>!0),ce=e=>de.filter(t=>t.status===e),le=e=>{let t={};return d.forEach(s=>{t[s.id]=e.filter(i=>w(i.epic)===s.id)}),t["no-epic"]=e.filter(s=>!w(s.epic)),t},K=e=>{I(e)},pe=e=>{C&&(u(t=>t.map(s=>s.id===C.id?{...s,status:e}:s)),D?.(C.id.toString(),{status:e}),I(null))},ue=e=>{let t={...e,id:Date.now(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};u(s=>[...s,t]),W?.(e)},me=async(e,t)=>{u(s=>s.map(i=>i.id===Number(e)?{...i,...t}:i)),D&&await D(e,t),r?.id===Number(e)&&m(s=>({...s,...t}))},ge=async e=>{u(t=>t.filter(s=>s.id!==Number(e))),r?.id===Number(e)&&m(null),x&&await x(e)},fe=e=>{let t={...e,id:Date.now(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};y(s=>[...s,t]),Y?.(e)},L=e=>{m(e),X?.(e)},ke=[{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"}],ve=g>0?`calc(100vh - ${g+120}px)`:"calc(100vh - 12rem)";return v("div",{ref:re,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[a("div",{ref:o,className:"flex-shrink-0",children:a(V,{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:()=>N(!0)},secondaryAction:{label:"Add epic",onClick:()=>U(!0)}})}),a("div",{className:"flex-1 min-h-0 mt-8",children:a("div",{className:"h-full",style:{height:g>0?`calc(100vh - ${g+120}px)`:"calc(100vh - 12rem)"},children:a("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full",children:ke.map(e=>{let t=ce(e.status),s=le(t);return v(q,{title:e.title,status:e.status,taskCount:t.length,onDrop:pe,isCompact:e.status==="done",height:ve,children:[s["no-epic"].map(i=>a(S,{epic:null,task:i,onDragStart:K,onTaskClick:L,isCompact:e.status==="done"},i.id)),oe.map(i=>{let E=d.find(k=>k.id===i),b=s[i]||[];return b.length===0?null:v("div",{className:"mb-6",children:[v("div",{className:"flex items-center gap-2 mb-3",children:[a("div",{className:`w-3 h-3 rounded-full ${E?.color}`}),a("span",{className:"text-sm font-medium text-muted-foreground select-none-important",children:E?.name||"No Epic"}),a(z,{variant:"secondary",className:"text-xs",children:b.length})]})," ",a("div",{className:"space-y-3",children:b.map(k=>a(S,{task:k,epic:E,onDragStart:K,onTaskClick:L,isCompact:e.status==="done"},k.id))})]},i)})]},e.id)})})})}),a(G,{isOpen:H,onClose:()=>N(!1),onAddTask:ue,assignees:[...M,...ae],epics:d,sprints:O}),a(Q,{isOpen:P,onClose:()=>U(!1),onAddEpic:fe}),r&&a(J,{isOpen:!!r,onClose:()=>m(null),initialTask:r,epics:d,sprints:O,onUpdateTask:me,onDeleteTask:ge,colleagues:M,onUploadFile:_,onDeleteFile:ee,onFileUpdate:te,onAddComment:Z})]})};export{Ne as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{f as t}from"./chunk-
|
|
4
|
+
import{f as t}from"./chunk-SME3D72Q.mjs";import{a}from"./chunk-MDJREBVI.mjs";import n from"react";import*as l from"@radix-ui/react-collapsible";import{ChevronDownIcon as c,ChevronUpIcon as m}from"@radix-ui/react-icons";import{jsx as e,jsxs as s}from"react/jsx-runtime";var h=({title:p,richText:r})=>{let[o,i]=n.useState(!1);return e("div",{className:"border rounded-lg overflow-hidden",children:s(l.Root,{className:a("w-full"),open:o,onOpenChange:i,children:[s(l.Trigger,{className:"flex w-full items-center justify-between bg-white px-4 py-3 text-left hover:bg-gray-50",children:[e("h2",{className:"text-lg font-medium",children:p}),o?e(m,{className:"h-6 w-6"}):e(c,{className:"h-6 w-6"})]}),e(l.Content,{className:"overflow-hidden data-[state=closed]:animate-collapse data-[state=open]:animate-expand border-t",children:e("div",{className:"px-4 py-3 bg-white",children:e(t,{content:r||{},enableGutter:!1})})})]})})};export{h as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{b as p}from"./chunk-ZUA4KNIR.mjs";import{a as s}from"./chunk-MDJREBVI.mjs";import{ArrowDownIcon as c}from"lucide-react";import{useCallback as C}from"react";import{StickToBottom as m,useStickToBottomContext as v}from"use-stick-to-bottom";import{Fragment as f,jsx as o,jsxs as i}from"react/jsx-runtime";var P=({className:t,...e})=>o(m,{className:s("relative flex-1 overflow-y-hidden",t),initial:"smooth",resize:"smooth",role:"log",...e}),S=({className:t,...e})=>o(m.Content,{className:s("flex flex-col gap-8 p-4",t),...e}),N=({className:t,title:e="No messages yet",description:r="Start a conversation to see messages here",icon:n,children:a,...l})=>o("div",{className:s("flex size-full flex-col items-center justify-center gap-3 p-8 text-center",t),...l,children:a??i(f,{children:[n&&o("div",{className:"text-muted-foreground",children:n}),i("div",{className:"space-y-1",children:[o("h3",{className:"font-medium text-sm",children:e}),r&&o("p",{className:"text-muted-foreground text-sm",children:r})]})]})}),g=({className:t,...e})=>{let{isAtBottom:r,scrollToBottom:n}=v(),a=C(()=>{n()},[n]);return!r&&o(p,{className:s("absolute bottom-4 left-[50%] translate-x-[-50%] rounded-full",t),onClick:a,size:"icon",type:"button",variant:"outline",...e,children:o(c,{className:"size-4"})})};export{P as a,S as b,N as c,g as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as i}from"./chunk-LEZ6G4X7.mjs";import{a}from"./chunk-32G45Z2G.mjs";import{jsx as e,jsxs as c}from"react/jsx-runtime";var m=({users:o,onNodeClick:n,className:t="",expandable:d=!1,initiallyExpanded:l=!0,companyInfo:s,defaultExpandedLevels:p=2})=>{let r=a(o);return o.length===0?e("div",{className:`flex items-center justify-center p-8 ${t}`,children:e("div",{className:"text-center",children:e("p",{className:"text-muted-foreground",children:"No users to display"})})}):r.length===0?e("div",{className:`flex items-center justify-center p-8 ${t}`,children:c("div",{className:"text-center",children:[e("p",{className:"text-muted-foreground",children:"Unable to build organization tree"}),e("p",{className:"text-xs text-muted-foreground mt-1",children:"Check that manager relationships are properly configured"})]})}):e("div",{className:`org-chart w-full overflow-x-auto ${t}`,children:e("div",{className:"inline-block min-w-full p-8",children:e(i,{nodes:r,onNodeClick:n,expandable:d,initiallyExpanded:l,companyInfo:r.length>1?s:void 0,defaultExpandedLevels:p})})})},g=m;export{m as a,g as b};
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"use client"
|
|
4
4
|
'use client';
|
|
5
5
|
|
|
6
|
-
"use strict";var yo=Object.create;var Le=Object.defineProperty;var wo=Object.getOwnPropertyDescriptor;var No=Object.getOwnPropertyNames;var Co=Object.getPrototypeOf,Po=Object.prototype.hasOwnProperty;var ko=(e,t)=>{for(var o in t)Le(e,o,{get:t[o],enumerable:!0})},Rt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of No(t))!Po.call(e,a)&&a!==o&&Le(e,a,{get:()=>t[a],enumerable:!(r=wo(t,a))||r.enumerable});return e};var D=(e,t,o)=>(o=e!=null?yo(Co(e)):{},Rt(t||!e||!e.__esModule?Le(o,"default",{value:e,enumerable:!0}):o,e)),Ro=e=>Rt(Le({},"__esModule",{value:!0}),e);var kr={};ko(kr,{AppHeader:()=>Pr,AppSidebar:()=>Cr,CommentSection:()=>br,EditableField:()=>hr,NavigationTabs:()=>dt,NotificationsPanel:()=>yt,OrgChart:()=>xo,OrgNode:()=>tt,OrgTree:()=>ot,Switch:()=>mr,buildOrgTree:()=>Nt,getInitials:()=>Ct,getRoleBadgeColor:()=>Pt});module.exports=Ro(kr);var lt=require("motion/react"),_t=require("lucide-react");var Lt=require("clsx");var at="-",Do=e=>{let t=To(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let n=s.split(at);return n[0]===""&&n.length!==1&&n.shift(),Tt(n,t)||So(s)},getConflictingClassGroupIds:(s,n)=>{let g=o[s]||[];return n&&r[s]?[...g,...r[s]]:g}}},Tt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),a=r?Tt(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;let i=e.join(at);return t.validators.find(({validator:s})=>s(i))?.classGroupId},Dt=/^\[(.+)\]$/,So=e=>{if(Dt.test(e)){let t=Dt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},To=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Mo(Object.entries(e.classGroups),o).forEach(([i,s])=>{it(s,r,i,t)}),r},it=(e,t,o,r)=>{e.forEach(a=>{if(typeof a=="string"){let i=a===""?t:St(t,a);i.classGroupId=o;return}if(typeof a=="function"){if(Ao(a)){it(a(r),t,o,r);return}t.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([i,s])=>{it(s,St(t,i),o,r)})})},St=(e,t)=>{let o=e;return t.split(at).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Ao=e=>e.isThemeGetter,Mo=(e,t)=>t?e.map(([o,r])=>{let a=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,n])=>[t+s,n])):i);return[o,a]}):e,Io=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,a=(i,s)=>{o.set(i,s),t++,t>e&&(t=0,r=o,o=new Map)};return{get(i){let s=o.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return a(i,s),s},set(i,s){o.has(i)?o.set(i,s):a(i,s)}}},At="!",zo=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,a=t[0],i=t.length,s=n=>{let g=[],p=0,y=0,M;for(let h=0;h<n.length;h++){let S=n[h];if(p===0){if(S===a&&(r||n.slice(h,h+i)===t)){g.push(n.slice(y,h)),y=h+i;continue}if(S==="/"){M=h;continue}}S==="["?p++:S==="]"&&p--}let k=g.length===0?n:n.substring(y),j=k.startsWith(At),x=j?k.substring(1):k,R=M&&M>y?M-y:void 0;return{modifiers:g,hasImportantModifier:j,baseClassName:x,maybePostfixModifierPosition:R}};return o?n=>o({className:n,parseClassName:s}):s},Eo=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},Lo=e=>({cache:Io(e.cacheSize),parseClassName:zo(e),...Do(e)}),jo=/\s+/,Bo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a}=t,i=[],s=e.trim().split(jo),n="";for(let g=s.length-1;g>=0;g-=1){let p=s[g],{modifiers:y,hasImportantModifier:M,baseClassName:k,maybePostfixModifierPosition:j}=o(p),x=!!j,R=r(x?k.substring(0,j):k);if(!R){if(!x){n=p+(n.length>0?" "+n:n);continue}if(R=r(k),!R){n=p+(n.length>0?" "+n:n);continue}x=!1}let h=Eo(y).join(":"),S=M?h+At:h,L=S+R;if(i.includes(L))continue;i.push(L);let q=a(R,x);for(let W=0;W<q.length;++W){let ae=q[W];i.push(S+ae)}n=p+(n.length>0?" "+n:n)}return n};function Oo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Mt(t))&&(r&&(r+=" "),r+=o);return r}var Mt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Mt(e[r]))&&(o&&(o+=" "),o+=t);return o};function Uo(e,...t){let o,r,a,i=s;function s(g){let p=t.reduce((y,M)=>M(y),e());return o=Lo(p),r=o.cache.get,a=o.cache.set,i=n,n(g)}function n(g){let p=r(g);if(p)return p;let y=Bo(g,o);return a(g,y),y}return function(){return i(Oo.apply(null,arguments))}}var C=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},It=/^\[(?:([a-Ut-]+):)?(.+)\]$/i,Fo=/^\d+\/\d+$/,Go=new Set(["px","full","screen"]),Vo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Wo=/\d+(%|px|r?em|[sdl]?_t([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ho=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,_o=/^(inset_)?-?((\d+)?\.?(\d+)[a-Ut]+|0)Ut-?((\d+)?\.?(\d+)[a-Ut]+|0)/,$o=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,te=e=>xe(e)||Go.has(e)||Fo.test(e),ne=e=>ye(e,"length",er),xe=e=>!!e&&!Number.isNaN(Number(e)),rt=e=>ye(e,"number",xe),Ce=e=>!!e&&Number.isInteger(Number(e)),Ko=e=>e.endsWith("%")&&xe(e.slice(0,-1)),u=e=>It.test(e),se=e=>Vo.test(e),qo=new Set(["length","size","percentage"]),Jo=e=>ye(e,qo,zt),Xo=e=>ye(e,"position",zt),Qo=new Set(["image","url"]),Yo=e=>ye(e,Qo,or),Zo=e=>ye(e,"",tr),Pe=()=>!0,ye=(e,t,o)=>{let r=It.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},er=e=>Wo.test(e)&&!Ho.test(e),zt=()=>!1,tr=e=>_o.test(e),or=e=>$o.test(e);var rr=()=>{let e=C("colors"),t=C("spacing"),o=C("blur"),r=C("brightness"),a=C("borderColor"),i=C("borderRadius"),s=C("borderSpacing"),n=C("borderWidth"),g=C("contrast"),p=C("grayscale"),y=C("hueRotate"),M=C("invert"),k=C("gap"),j=C("gradientColorStops"),x=C("gradientColorStopPositions"),R=C("inset"),h=C("margin"),S=C("opacity"),L=C("padding"),q=C("saturate"),W=C("scale"),ae=C("sepia"),Z=C("skew"),he=C("space"),ve=C("translate"),B=()=>["auto","contain","none"],J=()=>["auto","hidden","clip","visible","scroll"],ge=()=>["auto",u,t],w=()=>[u,t],Ee=()=>["",te,ne],fe=()=>["auto",xe,u],l=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],N=()=>["solid","dashed","dotted","double","none"],P=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>["start","end","center","between","around","evenly","stretch"],F=()=>["","0",u],kt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ee=()=>[xe,u];return{cacheSize:500,separator:":",theme:{colors:[Pe],spacing:[te,ne],blur:["none","",se,u],brightness:ee(),borderColor:[e],borderRadius:["none","","full",se,u],borderSpacing:w(),borderWidth:Ee(),contrast:ee(),grayscale:F(),hueRotate:ee(),invert:F(),gap:w(),gradientColorStops:[e],gradientColorStopPositions:[Ko,ne],inset:ge(),margin:ge(),opacity:ee(),padding:w(),saturate:ee(),scale:ee(),sepia:F(),skew:ee(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[se]}],"break-after":[{"break-after":kt()}],"break-before":[{"break-before":kt()}],"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:[...l(),u]}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[R]}],"inset-x":[{"inset-x":[R]}],"inset-y":[{"inset-y":[R]}],start:[{start:[R]}],end:[{end:[R]}],top:[{top:[R]}],right:[{right:[R]}],bottom:[{bottom:[R]}],left:[{left:[R]}],visibility:["visible","invisible","collapse"],Ut:[{Ut:["auto",Ce,u]}],basis:[{basis:ge()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:F()}],shrink:[{shrink:F()}],order:[{order:["first","last","none",Ce,u]}],"grid-cols":[{"grid-cols":[Pe]}],"col-start-end":[{col:["auto",{span:["full",Ce,u]},u]}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":[Pe]}],"row-start-end":[{row:["auto",{span:[Ce,u]},u]}],"row-start":[{"row-start":fe()}],"row-end":[{"row-end":fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[k]}],"gap-x":[{"gap-x":[k]}],"gap-y":[{"gap-y":[k]}],"justify-content":[{justify:["normal",...X()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...X(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...X(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[L]}],px:[{px:[L]}],py:[{py:[L]}],ps:[{ps:[L]}],_t:[{_t:[L]}],pt:[{pt:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],pl:[{pl:[L]}],Ut:[{Ut:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],lt:[{lt:[h]}],Zt:[{Zt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[he]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[he]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,t]}],"min-w":[{"min-w":[u,t,"min","max","fit"]}],"max-w":[{"max-w":[u,t,"none","full","min","max","fit","prose",{screen:[se]},se]}],h:[{h:[u,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,t,"auto","min","max","fit"]}],"font-size":[{text:["base",se,ne]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",rt]}],"font-family":[{font:[Pe]}],"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",u]}],"line-clamp":[{"line-clamp":["none",xe,rt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",te,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[S]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...N(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",te,ne]}],"underline-offset":[{"underline-offset":["auto",te,u]}],"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:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],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",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[S]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...l(),Xo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Jo]}],"bg-image":[{bg:["none",{"gradient-Ut":["t","tr","r","br","b","bl","l","tl"]},Yo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-Ut-pos":[{Ut:[x]}],"gradient-from":[{from:[j]}],"gradient-via":[{via:[j]}],"gradient-Ut":[{Ut:[j]}],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:[n]}],"border-w-x":[{"border-x":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[S]}],"border-style":[{border:[...N(),"hidden"]}],"divide-x":[{"divide-x":[n]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[S]}],"divide-style":[{divide:N()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...N()]}],"outline-offset":[{"outline-offset":[te,u]}],"outline-w":[{outline:[te,ne]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[S]}],"ring-offset-w":[{"ring-offset":[te,ne]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",se,Zo]}],"shadow-color":[{shadow:[Pe]}],opacity:[{opacity:[S]}],"mix-blend":[{"mix-blend":[...P(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":P()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",se,u]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[M]}],saturate:[{saturate:[q]}],sepia:[{sepia:[ae]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[M]}],"backdrop-opacity":[{"backdrop-opacity":[S]}],"backdrop-saturate":[{"backdrop-saturate":[q]}],"backdrop-sepia":[{"backdrop-sepia":[ae]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:ee()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:ee()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[W]}],"scale-x":[{"scale-x":[W]}],"scale-y":[{"scale-y":[W]}],rotate:[{rotate:[Ce,u]}],"translate-x":[{"translate-x":[ve]}],"translate-y":[{"translate-y":[ve]}],"skew-x":[{"skew-x":[Z]}],"skew-y":[{"skew-y":[Z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],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",u]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-Ut":[{"scroll-Ut":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-lt":[{"scroll-lt":w()}],"scroll-Zt":[{"scroll-Zt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-_t":[{"scroll-_t":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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",u]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[te,ne,rt]}],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","_t","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],Ut:["mx","my","ms","lt","Zt","mr","mb","ml"],mx:["mr","ml"],my:["Zt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-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-Ut":["scroll-mx","scroll-my","scroll-ms","scroll-lt","scroll-Zt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-Zt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-_t","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 Et=Uo(rr);function d(...e){return Et((0,Lt.clsx)(e))}var jt=require("@radix-ui/react-slot"),Bt=require("class-variance-authority"),Ot=D(require("react")),Ut=require("react/jsx-runtime"),ir=(0,Bt.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),I=Ot.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...a},i)=>(0,Ut.jsx)(e?jt.Slot:"button",{className:d(ir({className:t,size:o,variant:r})),ref:i,...a}));I.displayName="Button";var be=D(require("@radix-ui/react-tabs"));function Ft({className:e,...t}){return(0,Ut.jsx)(be.Root,{"data-slot":"tabs",className:d("flex flex-col gap-2",e),...t})}function Gt({className:e,...t}){return(0,Ut.jsx)(be.List,{"data-slot":"tabs-list",className:d("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Vt({className:e,...t}){return(0,Ut.jsx)(be.Trigger,{"data-slot":"tabs-trigger",className:d("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var oe=D(require("react")),b=D(require("@radix-ui/react-dropdown-menu")),we=require("@radix-ui/react-icons");var Wt=b.Root,Ht=b.Trigger;var ar=oe.forwardRef(({className:e,inset:t,children:o,...r},a)=>(0,Ut.jsxs)(b.SubTrigger,{ref:a,className:d("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,Ut.jsx)(we.ChevronRightIcon,{className:"ml-auto"})]}));ar.displayName=b.SubTrigger.displayName;var nr=oe.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(b.SubContent,{ref:o,className:d("Ut-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}));nr.displayName=b.SubContent.displayName;var nt=oe.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Ut.jsx)(b.Portal,{children:(0,Ut.jsx)(b.Content,{ref:r,sideOffset:t,className:d("Ut-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})}));nt.displayName=b.Content.displayName;var st=oe.forwardRef(({className:e,inset:t,...o},r)=>(0,Ut.jsx)(b.Item,{ref:r,className:d("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}));st.displayName=b.Item.displayName;var sr=oe.forwardRef(({className:e,children:t,checked:o,...r},a)=>(0,Ut.jsxs)(b.CheckboxItem,{ref:a,className:d("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,Ut.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ut.jsx)(b.ItemIndicator,{children:(0,Ut.jsx)(we.CheckIcon,{className:"h-4 w-4"})})}),t]}));sr.displayName=b.CheckboxItem.displayName;var lr=oe.forwardRef(({className:e,children:t,...o},r)=>(0,Ut.jsxs)(b.RadioItem,{ref:r,className:d("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,Ut.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ut.jsx)(b.ItemIndicator,{children:(0,Ut.jsx)(we.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));lr.displayName=b.RadioItem.displayName;var dr=oe.forwardRef(({className:e,inset:t,...o},r)=>(0,Ut.jsx)(b.Label,{ref:r,className:d("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));dr.displayName=b.Label.displayName;var cr=oe.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(b.Separator,{ref:o,className:d("-mx-1 my-1 h-px bg-muted",e),...t}));cr.displayName=b.Separator.displayName;var pr=({className:e,...t})=>(0,Ut.jsx)("span",{className:d("ml-auto text-xs tracking-widest opacity-60",e),...t});pr.displayName="DropdownMenuShortcut";function dt({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:a="700px",gridCols:i=6}){let s=o.find(n=>n.value===e);return(0,Ut.jsxs)(lt.motion.div,{className:`flex-1 flex justify-center ${r}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[(0,Ut.jsx)("div",{className:"hidden lg:block",children:(0,Ut.jsx)(Ft,{value:e,onValueChange:t,children:(0,Ut.jsx)(Gt,{className:"grid w-full rounded-2xl p-0 h-10",style:{maxWidth:a,gridTemplateColumns:`repeat(${Math.min(i,o.length)}, minmax(0, 1fr))`},children:o.map(n=>(0,Ut.jsx)(lt.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Ut.jsx)(Vt,{value:n.value,onClick:()=>t?.(n.value),className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:n.label})},n.value))})})}),(0,Ut.jsx)("div",{className:"lg:hidden",children:(0,Ut.jsxs)(Wt,{children:[(0,Ut.jsx)(Ht,{asChild:!0,children:(0,Ut.jsxs)(I,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[s?.label||"Select",(0,Ut.jsx)(_t.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,Ut.jsx)(nt,{align:"center",className:"w-[180px]",children:o.map(n=>(0,Ut.jsx)(st,{onClick:()=>t?.(n.value),className:`cursor-pointer ${e===n.value?"bg-accent":""}`,children:n.label},n.value))})]})})]})}var Be=D(require("react")),Oe=D(require("@radix-ui/react-switch"));function mr({className:e,onCheckedChange:t,checked:o,defaultChecked:r,...a}){let[i,s]=Be.useState(!1),[n,g]=Be.useState(!1),[p,y]=Be.useState(r||!1),M=o!==void 0?o:p;return(0,Ut.jsx)(Oe.Root,{"data-slot":"switch","data-pressed":i,checked:o,defaultChecked:r,onMouseDown:()=>{s(!0),g(!1)},onMouseUp:()=>{s(!1),g(!1)},onMouseLeave:()=>{i&&(s(!1),g(!0))},onCheckedChange:h=>{n||(o===void 0&&y(h),t?.(h))},className:d("relative shadow-inner ring ring-black/5 inline-flex shrink-0 items-center rounded-full outline-none cursor-pointer","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[0.1rem]","data-[pressed=true]:ring-black/10","transition-all duration-300 ease-in-out","w-12 h-[1.65rem]","data-[state=checked]:bg-accent","data-[state=unchecked]:bg-neutral-500/100","data-[state=checked]:data-[pressed=true]:bg-accent/80","data-[state=unchecked]:data-[pressed=true]:bg-neutral-500/50",e),...a,children:(0,Ut.jsx)(Oe.Thumb,{"data-slot":"switch-thumb","data-pressed":i,className:d("absolute flex items-center justify-center bg-background pointer-events-none left-0 rounded-full","transition-all duration-200 ease-in-out","w-[1.3rem] h-[1.3rem]","data-[pressed=true]:w-[1.7rem]","data-[pressed=true]:h-[1.1rem]","translate-x-[0.2rem]","data-[state=checked]:translate-x-[1.5rem]","data-[state=checked]:data-[pressed=true]:translate-x-[1.1rem]","data-[state=checked]:data-[pressed=true]:left-[-0.15rem]","data-[state=unchecked]:data-[pressed=true]:left-[0.15rem]"),children:(0,Ut.jsx)(ur,{isChecked:M,isPressed:i})})})}var ur=({isChecked:e,isPressed:t})=>(0,Ut.jsxs)("svg",{viewBox:"0 0 20 20",className:d("inline-flex w-fit items-center justify-center","transition-all duration-100 ease-in-out",t?"fill-neutral-500/50":e?"fill-accent-foreground":"fill-neutral-500"),children:[(0,Ut.jsx)("rect",{x:"4",y:"8.5",height:"3",className:d("origin-center transition-all duration-100 ease-in-out",t?"rotate-0 translate-x-[0.2rem] translate-y-[0.05rem] w-1.5 h-0.5":e?"rotate-45 w-[6px] -translate-x-[1px] translate-y-1":"rotate-45 w-[12px] translate-x-0 translate-y-0")}),(0,Ut.jsx)("rect",{x:"4",y:"8.5",height:"3",className:d("origin-center transition-all duration-100 ease-in-out",t?"rotate-0 translate-x-[0.2rem] translate-y-[0.05rem] w-1.5 h-0.5":e?"-rotate-45 w-[11px] translate-x-[1.5px] translate-y-0":"-rotate-45 w-[12px] translate-x-0 translate-y-0")})]});var Zt=require("react");var gr=(0,$t.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 de({className:e,variant:t,...o}){return(0,Ut.jsx)("div",{className:d(gr({variant:t}),e),...o})}var Ue=D(require("react")),re=D(require("@radix-ui/react-avatar"));var ke=Ue.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(re.Root,{ref:o,className:d("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));ke.displayName=re.Root.displayName;var ct=Ue.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(re.Image,{ref:o,className:d("aspect-square h-full w-full",e),...t}));ct.displayName=re.Image.displayName;var Re=Ue.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(re.Fallback,{ref:o,className:d("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Re.displayName=re.Fallback.displayName;var qt=D(require("react")),De=qt.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("textarea",{className:d("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));De.displayName="Textarea";var Xt=D(require("react")),pt=D(require("@radix-ui/react-label"));var fr=(0,Bt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Se=Xt.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(pt.Root,{ref:o,className:d(fr(),e),...t}));Se.displayName=pt.Root.displayName;var br=({comments:e,onAddComment:t})=>{let[o,r]=(0,Zt.useState)(""),a=s=>s.split(" ").map(n=>n[0]).join("").toUpperCase(),i=()=>{o.trim()&&(t(o),r(""))};return(0,Ut.jsxs)("div",{className:"space-y-4",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ut.jsx)(_t.MessageSquare,{className:"h-5 w-5"}),(0,Ut.jsx)(Se,{className:"text-lg font-medium",children:"Comments"}),(0,Ut.jsx)(de,{variant:"secondary",children:e.length})]}),(0,Ut.jsx)("div",{className:"space-y-4 max-h-60 overflow-y-auto",children:e.map(s=>(0,Ut.jsxs)("div",{className:"flex gap-3 p-3 bg-muted/50 rounded-lg",children:[(0,Ut.jsx)(ke,{className:"h-8 w-8 Zt-1",children:(0,Ut.jsx)(Re,{className:"text-xs bg-muted text-muted-foreground",children:a(s.author)})}),(0,Ut.jsxs)("div",{className:"flex-1",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Ut.jsx)("span",{className:"font-medium text-sm",children:s.author}),(0,Ut.jsxs)("span",{className:"text-xs text-muted-foreground",children:[s.createdAt.toLocaleDateString()," at ",s.createdAt.toLocaleTimeString()]})]}),(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:s.text})]})]},s.id))}),(0,Ut.jsxs)("div",{className:"flex gap-2",children:[(0,Ut.jsx)(De,{value:o,onChange:s=>r(s.target.value),placeholder:"Add a comment...",rows:2,className:"flex-1 resize-none"}),(0,Ut.jsx)(I,{onClick:i,disabled:!o.trim(),size:"sm",className:"self-end",children:(0,Ut.jsx)(_t.Send,{className:"h-4 w-4"})})]})]})};var eo=D(require("react"));var Te=eo.forwardRef(({className:e,type:t,...o},r)=>(0,Ut.jsx)("input",{type:t,className:d("flex h-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}));Te.displayName="Input";var hr=({fieldName:e,value:t,label:o,multiline:r=!1,onSave:a,className:i="",disabled:s=!1})=>{let[n,g]=(0,Zt.useState)(!1),[p,y]=(0,Zt.useState)(""),M=()=>{s||(g(!0),y(t))},k=async()=>{p!==t&&await a(e,p),g(!1)},j=x=>{x.key==="Enter"&&!r||x.key==="Enter"&&x.ctrlKey&&r?k():x.key==="Escape"&&(g(!1),y(""))};return(0,Ut.jsxs)("div",{className:`space-y-2 ${i}`,children:[(0,Ut.jsx)(Se,{children:o}),n?r?(0,Ut.jsx)(De,{value:p,onChange:x=>y(x.target.value),onBlur:k,onKeyDown:j,autoFocus:!0,rows:4,className:"resize-none"}):(0,Ut.jsx)(Te,{value:p,onChange:x=>y(x.target.value),onBlur:k,onKeyPress:j,autoFocus:!0,className:"text-lg font-medium"}):(0,Ut.jsxs)("div",{onClick:M,className:`${s?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 p-2 rounded border border-transparent hover:border-border transition-colors group ${r?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,Ut.jsx)("span",{className:r?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click Ut edit..."}),!s&&(0,Ut.jsx)(_t.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var Je=D(require("react")),Xe=D(require("next/link"));var ut=D(require("react")),H=D(require("@radix-ui/react-scroll-area"));var Ne=ut.forwardRef(({className:e,children:t,...o},r)=>(0,Ut.jsxs)(H.Root,{ref:r,className:d("relative overflow-hidden",e),...o,children:[(0,Ut.jsx)(H.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Ut.jsx)(ro,{}),(0,Ut.jsx)(H.Corner,{})]}));Ne.displayName=H.Root.displayName;var ro=ut.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,Ut.jsx)(H.ScrollAreaScrollbar,{ref:r,orientation:t,className:d("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,Ut.jsx)(H.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));ro.displayName=H.ScrollAreaScrollbar.displayName;var Ae=D(require("react")),E=D(require("@radix-ui/react-dialog"));var ao=E.Root;var vr=E.Portal;var no=Ae.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(E.Overlay,{ref:o,className:d("fixed inset-0 Ut-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));no.displayName=E.Overlay.displayName;var gt=Ae.forwardRef(({className:e,children:t,...o},r)=>(0,Ut.jsxs)(vr,{children:[(0,Ut.jsx)(no,{}),(0,Ut.jsxs)(E.Content,{ref:r,className:d("fixed left-[50%] top-[50%] Ut-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-Ut-left-1/2 data-[state=closed]:slide-out-Ut-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,Ut.jsxs)(E.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Ut.jsx)(_t.X,{className:"h-4 w-4"}),(0,Ut.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));gt.displayName=E.Content.displayName;var ft=({className:e,...t})=>(0,Ut.jsx)("div",{className:d("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ft.displayName="DialogHeader";var xr=({className:e,...t})=>(0,Ut.jsx)("div",{className:d("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});xr.displayName="DialogFooter";var bt=Ae.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(E.Title,{ref:o,className:d("text-lg font-semibold leading-none tracking-tight",e),...t}));bt.displayName=E.Title.displayName;var yr=Ae.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(E.Description,{ref:o,className:d("text-sm text-muted-foreground",e),...t}));yr.displayName=E.Description.displayName;var Me=D(require("@radix-ui/react-checkbox")),lo=D(require("react")),ht=lo.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(Me.Root,{className:d("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:o,...t,children:(0,Ut.jsx)(Me.Indicator,{className:d("flex items-center justify-center text-current"),children:(0,Ut.jsx)(_t.Check,{className:"h-4 w-4"})})}));ht.displayName=Me.Root.displayName;var Q=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date});var po=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,$.jsx)(_t.Palette,{className:"h-4 w-4"}),color:"bg-purple-600",accentColor:"text-purple-600"},{id:"engineering",name:"Engineering",description:"Software development and technical teams",icon:(0,$.jsx)(_t.Code,{className:"h-4 w-4"}),color:"bg-blue-600",accentColor:"text-blue-600"},{id:"marketing",name:"Marketing",description:"Brand, campaigns, and growth marketing",icon:(0,$.jsx)(_t.TrendingUp,{className:"h-4 w-4"}),color:"bg-pink-600",accentColor:"text-pink-600"},{id:"sales",name:"Sales",description:"Revenue generation and customer acquisition",icon:(0,$.jsx)(_t.DollarSign,{className:"h-4 w-4"}),color:"bg-green-600",accentColor:"text-green-600"},{id:"hr",name:"Human Resources",description:"People operations and talent management",icon:(0,$.jsx)(_t.Users,{className:"h-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"},{id:"operations",name:"Operations",description:"Business operations and process optimization",icon:(0,$.jsx)(_t.Wrench,{className:"h-4 w-4"}),color:"bg-indigo-600",accentColor:"text-indigo-600"},{id:"legal",name:"Legal",description:"Legal affairs and compliance",icon:(0,$.jsx)(_t.Scale,{className:"h-4 w-4"}),color:"bg-slate-600",accentColor:"text-slate-600"},{id:"product",name:"Product",description:"Product strategy and management",icon:(0,$.jsx)(_t.Package,{className:"h-4 w-4"}),color:"bg-violet-600",accentColor:"text-violet-600"},{id:"it",name:"IT Support",description:"Information technology and infrastructure",icon:(0,$.jsx)(_t.Zap,{className:"h-4 w-4"}),color:"bg-cyan-600",accentColor:"text-cyan-600"},{id:"company",name:"Company",description:"Company-wide resources and information",icon:(0,$.jsx)(_t.Building2,{className:"h-4 w-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],_e=[{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 vt=[{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}],We=[{id:"backlog",name:"Backlog",description:"Tasks not yet assigned Ut 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}],Ke=[{id:"1",name:"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",name:"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",name:"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",name:"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",name:"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",name:"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",name:"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")}],wr=[...Ke,{id:"8",name:"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",name:"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",name:"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",name:"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",name:"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")}],Nr=[..._e,{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}],He={projects:[{id:"1",name:"Empty Project",description:"Ut 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:[]},co={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:Ke.filter(e=>e.epicId==="1")};var wi={empty:{initialProjects:He.projects,initialEpics:He.epics,initialSprints:He.sprints,initialTasks:He.tasks},default:{initialProjects:_e,initialEpics:vt,initialSprints:We,initialTasks:Ke},highDensity:{initialProjects:_e,initialEpics:vt,initialSprints:We,initialTasks:wr},singleEpic:{initialProjects:_e,initialEpics:co.epics,initialSprints:We,initialTasks:co.tasks},multipleProjects:{initialProjects:Nr,initialEpics:vt,initialSprints:We,initialTasks:Ke}},$e=[{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(Q),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(Q),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(Q),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(Q),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 Ut 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","R","Statistics"].map(Q),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(Q),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(Q),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(Q),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 Ut customer inquiries, troubleshoot common issues, provide product information, and escalate complex cases Ut human agents.",capabilities:["Customer Support","Issue Resolution","Product Knowledge","Escalation Management","Chat Support"],knowledge:["Product Documentation","FAQ","Troubleshooting Guides","Customer Service Best Practices"].map(Q),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(Q),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],Ni=[{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:$e.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:$e.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 Ut production",description:"Deploy the latest version Ut production environment",dueDate:new Date,dueTime:"16:00",colleague:$e.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 Ci=$e.filter(e=>e.type==="digital");function mo(e,t){let[o,r]=(0,Zt.useState)(()=>{if(typeof window>"u")return t;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch{return t}}),a=i=>{try{r(i),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,Zt.useEffect)(()=>{a(o)},[]),[o,a]}function Cr({items:e,isOpen:t,isMobile:o=!1,onClose:r,currentBusinessUnit:a=po[0],onBusinessUnitChange:i,onSearch:s,className:n,logo:g="/headerlogo.png",logoLink:p="/teams",appName:y="Nuvia",tagline:M="Collaboration Platform"}){let[k,j]=Je.useState({}),[x,R]=mo("sidebar-favorites",{}),[h,S]=Je.useState(null),[L,q]=Je.useState(""),W=l=>{j(N=>({...N,[l]:!N[l]}))},ae=l=>{i?.(l)},Z=()=>{L.trim()&&s?.(L.trim())},he=l=>{l.key==="Enter"&&(l.preventDefault(),Z())},ve=(l,N)=>{let P=x[l]||[],X=P.includes(N)?P.filter(F=>F!==N):P.concat(N);R({...x,[l]:X})},B=l=>{if(!l.items||!l.maxItems||l.items.length<=l.maxItems)return l.items||[];let N=x[l.id]||[],P=l.items.filter(F=>N.includes(F.id)),X=l.items.filter(F=>!N.includes(F.id));return[...P,...X].slice(0,l.maxItems)},J=l=>l.maxItems&&l.items&&l.items.length>l.maxItems,ge=e,w=l=>{let N=J(l),P=B(l),X=(0,Ut.jsxs)(Ut.Fragment,{children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-3",children:[l.icon,(0,Ut.jsx)("span",{children:l.title})]}),l.badge&&(0,Ut.jsx)(de,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:l.badge}),l.items&&(0,Ut.jsx)(_t.ChevronDown,{className:d("ml-2 h-4 w-4 transition-transform",k[l.title]?"rotate-180":"")})]}),F=d("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,Ut.jsx)(Xe.default,{href:l.url,className:F,onClick:o?r:void 0,children:X}):(0,Ut.jsx)("button",{className:F,onClick:()=>l.items&&W(l.title),children:X})},Ee=()=>{let l=e.find(P=>P.id===h);if(!l||!l.items||!l.maxItems)return null;let N=x[l.id]||[];return(0,Ut.jsx)(ao,{open:!!h,onOpenChange:P=>!P&&S(null),children:(0,Ut.jsxs)(gt,{className:"sm:max-w-md",children:[(0,Ut.jsxs)(ft,{children:[(0,Ut.jsxs)(bt,{children:["Manage ",l.title," Favorites"]}),(0,Ut.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Select up Ut ",l.maxItems," items Ut show in ",l.title.toLowerCase(),"."]})]}),(0,Ut.jsx)(Ne,{className:"max-h-96 pr-4",children:(0,Ut.jsx)("div",{className:"space-y-4",children:l.items.map(P=>(0,Ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Ut.jsx)(ht,{id:P.id,checked:N.includes(P.id),onCheckedChange:()=>ve(l.id,P.id),disabled:!N.includes(P.id)&&N.length>=(l.maxItems||0)}),(0,Ut.jsxs)("label",{htmlFor:P.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:[P.title,P.badge&&(0,Ut.jsx)(de,{variant:"outline",className:"text-xs",children:P.badge})]})]},P.id))})})]})})},fe=(0,Ut.jsxs)("div",{className:"flex h-full flex-col bg-background",children:[(0,Ut.jsxs)("div",{className:"flex items-center justify-between p-4",children:[(0,Ut.jsxs)(Xe.default,{href:p,className:"flex items-center gap-3",children:[(0,Ut.jsx)("div",{className:"flex h-14 w-14 items-center justify-center",children:(0,Ut.jsx)("img",{src:g,alt:"Header Logo",className:"h-14 w-14 object-contain"})}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("h2",{className:"font-semibold",children:y}),(0,Ut.jsx)("p",{className:"text-xs text-muted-foreground",children:M})]})]}),o&&(0,Ut.jsx)(I,{variant:"ghost",size:"icon",onClick:r,children:(0,Ut.jsx)(_t.X,{className:"h-5 w-5"})})]}),(0,Ut.jsx)("div",{className:"px-3 py-2",children:(0,Ut.jsxs)("div",{className:"relative",children:[(0,Ut.jsx)(_t.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,Ut.jsx)(Te,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:L,onChange:l=>q(l.target.value),onKeyPress:he})]})}),(0,Ut.jsx)(Ne,{className:"flex-1 px-3 py-2",children:(0,Ut.jsx)("div",{className:"space-y-1",children:ge.map(l=>(0,Ut.jsxs)("div",{className:"mb-1",children:[w(l),l.items&&k[l.title]&&(0,Ut.jsxs)("div",{className:"Zt-1 ml-6 space-y-1 border-l pl-3",children:[B(l).map(N=>(0,Ut.jsxs)(Xe.default,{href:N.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:o?r:void 0,children:[N.title,N.badge&&(0,Ut.jsx)(de,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:N.badge})]},N.id)),J(l)&&l.items&&l.items.length>B(l).length&&(0,Ut.jsxs)("button",{onClick:()=>S(l.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:["...",l.items.length-B(l).length," more available"]})]})]},l.id))})}),(0,Ut.jsx)("div",{className:"p-3",children:(0,Ut.jsx)("div",{className:"space-y-1",children:(0,Ut.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,Ut.jsx)(_t.Settings,{className:"h-5 w-5"}),(0,Ut.jsx)("span",{children:"Settings"})]})})}),(0,Ut.jsx)(Ee,{})]});return o?(0,Ut.jsx)("div",{className:d("fixed inset-y-0 left-0 Ut-50 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",n),children:fe}):(0,Ut.jsx)("div",{className:d("fixed inset-y-0 left-0 Ut-30 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",n),children:fe})}var uo=D(require("react")),K=D(require("@radix-ui/react-tooltip"));var Qe=K.Provider,Ye=K.Root,Ze=K.Trigger,Ie=uo.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Ut.jsx)(K.Portal,{children:(0,Ut.jsx)(K.Content,{ref:r,sideOffset:t,className:d("Ut-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Ie.displayName=K.Content.displayName;var go=require("next-themes");function fo(){let{setTheme:e,theme:t}=(0,go.useTheme)();return(0,Ut.jsx)(Qe,{children:(0,Ut.jsxs)(Ye,{children:[(0,Ut.jsx)(Ze,{asChild:!0,children:(0,Ut.jsxs)(I,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,Ut.jsx)(_t.Sun,{className:"h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,Ut.jsx)(_t.Moon,{className:"absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,Ut.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,Ut.jsx)(Ie,{children:"Toggle theme"})]})})}function yt({notifications:e,open:t,onClose:o,onNotificationRemove:r,onRemoveAll:a,className:i}){let s=e.filter(p=>!p.read),n=s.length,g=p=>{switch(p){case"info":return(0,Ut.jsx)(_t.Info,{className:"h-5 w-5 text-blue-500"});case"success":return(0,Ut.jsx)(_t.Check,{className:"h-5 w-5 text-green-500"});case"warning":return(0,Ut.jsx)(_t.AlertTriangle,{className:"h-5 w-5 text-amber-500"});case"error":return(0,Ut.jsx)(_t.AlertTriangle,{className:"h-5 w-5 text-red-500"})}};return(0,Ut.jsx)(lt.AnimatePresence,{children:t&&(0,Ut.jsxs)(Ut.Fragment,{children:[(0,Ut.jsx)(lt.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 Ut-40 bg-black/20 backdrop-blur-sm md:hidden",onClick:o}),(0,Ut.jsx)(lt.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:d("fixed inset-y-0 right-0 Ut-50 w-full max-w-sm border-l bg-background shadow-lg md:w-96",i),children:(0,Ut.jsxs)("div",{className:"flex h-full flex-col",children:[(0,Ut.jsxs)("div",{className:"flex items-center justify-between border-b p-4",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ut.jsx)(_t.Bell,{className:"h-5 w-5"}),(0,Ut.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),n>0&&(0,Ut.jsxs)(de,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[n," new"]})]}),(0,Ut.jsxs)(I,{variant:"ghost",size:"icon",onClick:o,className:"rounded-full",children:[(0,Ut.jsx)(_t.X,{className:"h-5 w-5"}),(0,Ut.jsx)("span",{className:"sr-only",children:"Close"})]})]}),n>0&&(0,Ut.jsxs)("div",{className:"flex items-center justify-between border-b p-2",children:[(0,Ut.jsxs)("span",{className:"text-sm text-muted-foreground",children:[n," unread notification",n!==1?"s":""]}),(0,Ut.jsx)(I,{variant:"ghost",size:"sm",onClick:a,className:"text-sm",children:"Dismiss all"})]}),s.length>0?(0,Ut.jsx)(Ne,{className:"flex-1",children:(0,Ut.jsx)("div",{className:"divide-y",children:s.map(p=>(0,Ut.jsxs)("div",{className:d("flex gap-3 p-4 transition-colors bg-muted/50"),children:[(0,Ut.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:g(p.type)}),(0,Ut.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,Ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ut.jsx)("p",{className:"font-medium",children:p.title}),(0,Ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ut.jsx)("p",{className:"text-xs text-muted-foreground",children:p.time}),(0,Ut.jsx)(I,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>r?.(p.id),title:"Dismiss",children:(0,Ut.jsx)(_t.Check,{className:"h-3 w-3"})})]})]}),(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:p.description}),p.actionLabel&&(0,Ut.jsxs)(I,{variant:"link",size:"sm",className:"h-auto p-0 text-sm",onClick:p.onAction,children:[p.actionLabel,(0,Ut.jsx)(_t.ChevronRight,{className:"ml-1 h-3 w-3"})]})]})]},p.id))})}):(0,Ut.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center p-8 text-center",children:[(0,Ut.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted",children:(0,Ut.jsx)(_t.Bell,{className:"h-8 w-8 text-muted-foreground"})}),(0,Ut.jsx)("h3",{className:"Zt-4 text-lg font-medium",children:"No notifications"}),(0,Ut.jsx)("p",{className:"Zt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}function Pr({title:e,notifications:t=[],onToggleSidebar:o,onToggleMobileMenu:r,sidebarOpen:a=!0,className:i,activeTab:s="assistant",onTabChange:n,showTabs:g=!0,tabOptions:p=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:y,actionIcon:M=(0,Ut.jsx)(_t.Bot,{className:"mr-2 h-4 w-4"}),actionText:k="Action",onNotificationRemove:j,onRemoveAll:x,logo:R="/headerlogo.png",appName:h="Nuvia",tagline:S="Collaboration Platform"}){let[L,q]=(0,Zt.useState)(!1),[W,ae]=(0,Zt.useState)(t),Z=W.filter(B=>!B.read).length,he=B=>{ae(J=>J.filter(ge=>ge.id!==B)),j?.(B)},ve=()=>{ae(B=>B.filter(J=>J.read)),x?.()};return(0,Ut.jsxs)(Ut.Fragment,{children:[(0,Ut.jsxs)("header",{className:`sticky top-0 Ut-10 flex h-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${i||""}`,children:[(0,Ut.jsx)(I,{variant:"ghost",size:"icon",className:"md:hidden",onClick:r,children:(0,Ut.jsx)(_t.Menu,{className:"h-5 w-5"})}),(0,Ut.jsx)(I,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:o,children:(0,Ut.jsx)(_t.PanelLeft,{className:"h-5 w-5"})}),!a&&(0,Ut.jsxs)(lt.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[(0,Ut.jsx)("div",{className:"flex h-10 w-10 items-center justify-center",children:(0,Ut.jsx)("img",{src:R,alt:"Logo",className:"h-10 w-10 object-contain"})}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("h2",{className:"font-semibold text-sm",children:h}),(0,Ut.jsx)("p",{className:"text-xs text-muted-foreground",children:S})]})]}),(0,Ut.jsxs)("div",{className:"flex flex-1 items-center",children:[g&&(0,Ut.jsx)(dt,{activeTab:s,onTabChange:n,tabOptions:p}),(0,Ut.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,Ut.jsx)(lt.motion.div,{className:"hidden md:flex gap-2",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:(0,Ut.jsx)(lt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Ut.jsxs)(I,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:y,children:[M,k]})})}),(0,Ut.jsx)(fo,{}),(0,Ut.jsx)(Qe,{children:(0,Ut.jsxs)(Ye,{children:[(0,Ut.jsx)(Ze,{asChild:!0,children:(0,Ut.jsx)(lt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Ut.jsxs)(I,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>q(!0),children:[(0,Ut.jsx)(lt.motion.div,{animate:Z>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:Z>0?1/0:0,repeatDelay:3},children:(0,Ut.jsx)(_t.Bell,{className:"h-5 w-5"})}),Z>0&&(0,Ut.jsx)(lt.motion.span,{className:"absolute -right-1 -top-1 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-xs text-white",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500,damping:15},children:Z})]})})}),(0,Ut.jsx)(Ie,{children:"Notifications"})]})}),(0,Ut.jsx)(lt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Ut.jsxs)(ke,{className:"h-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,Ut.jsx)(ct,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,Ut.jsx)(Re,{})]})})]})]})]}),(0,Ut.jsx)(yt,{notifications:W,open:L,onClose:()=>q(!1),onNotificationRemove:he,onRemoveAll:ve})]})}function Nt(e){let t=new Map,o=[];e.forEach(a=>{t.set(a.id,{...a,children:[],level:0})}),e.forEach(a=>{let i=t.get(a.id);if(!i)return;let s=typeof a.manager=="string"?a.manager:a.manager?.id;if(s){let n=t.get(s);n?(n.children.push(i),i.level=n.level+1):o.push(i)}else o.push(i)});let r=(a,i)=>{a.level=i,a.children.forEach(s=>r(s,i+1))};return o.forEach(a=>r(a,0)),o}function Ct(e){if(!e)return"?";let t=e.trim().split(/\s+/);return t.length===1?t[0].substring(0,2).toUpperCase():(t[0][0]+t[t.length-1][0]).toUpperCase()}function Pt(e){return e&&{P:"bg-primary/20 text-primary border-primary/30",SM:"bg-accent/20 text-accent border-accent/30",M:"bg-accent/15 text-accent border-accent/25",SC2:"bg-card text-card-foreground border-border",SC1:"bg-card text-card-foreground border-border",C3:"bg-muted text-muted-foreground border-border",C2:"bg-muted text-muted-foreground border-border",C1:"bg-muted text-muted-foreground border-border"}[e]||"bg-muted text-muted-foreground"}var bo={C1:"Consultant 1",C2:"Consultant 2",C3:"Consultant 3",SC1:"Senior Consultant 1",SC2:"Senior Consultant 2",M:"Manager",SM:"Senior Manager",P:"Partner"};var tt=({node:e,onNodeClick:t,expandable:o=!1,isExpanded:r=!0,onToggleExpand:a})=>{let i=e.children.length>0,s=o&&i;return(0,Ut.jsxs)("div",{className:"flex flex-col items-center",children:[(0,Ut.jsxs)("div",{className:`
|
|
6
|
+
"use strict";var Co=Object.create;var Be=Object.defineProperty;var Po=Object.getOwnPropertyDescriptor;var ko=Object.getOwnPropertyNames;var Ro=Object.getPrototypeOf,Do=Object.prototype.hasOwnProperty;var So=(e,t)=>{for(var o in t)Be(e,o,{get:t[o],enumerable:!0})},Mt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ko(t))!Do.call(e,n)&&n!==o&&Be(e,n,{get:()=>t[n],enumerable:!(r=Po(t,n))||r.enumerable});return e};var I=(e,t,o)=>(o=e!=null?Co(Ro(e)):{},Mt(t||!e||!e.__esModule?Be(o,"default",{value:e,enumerable:!0}):o,e)),To=e=>Mt(Be({},"__esModule",{value:!0}),e);var Sr={};So(Sr,{AppHeader:()=>Dr,AppSidebar:()=>Rr,CommentSection:()=>xr,CompanyNode:()=>it,EditableField:()=>yr,NavigationTabs:()=>pt,NotificationsPanel:()=>Ct,OrgChart:()=>No,OrgNode:()=>rt,OrgTree:()=>at,Switch:()=>fr,buildOrgTree:()=>kt,getInitials:()=>Rt,getRoleBadgeColor:()=>Dt,jobRoleLabels:()=>St});module.exports=To(Sr);var mt=require("motion/react"),Xt=require("lucide-react");var Ut=require("clsx");var lt="-",Ao=e=>{let t=Io(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let a=s.split(lt);return a[0]===""&&a.length!==1&&a.shift(),zt(a,t)||Mo(s)},getConflictingClassGroupIds:(s,a)=>{let g=o[s]||[];return a&&r[s]?[...g,...r[s]]:g}}},zt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?zt(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let i=e.join(lt);return t.validators.find(({validator:s})=>s(i))?.classGroupId},It=/^\[(.+)\]$/,Mo=e=>{if(It.test(e)){let t=It.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Io=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return zo(Object.entries(e.classGroups),o).forEach(([i,s])=>{st(s,r,i,t)}),r},st=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let i=n===""?t:Et(t,n);i.classGroupId=o;return}if(typeof n=="function"){if(Eo(n)){st(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([i,s])=>{st(s,Et(t,i),o,r)})})},Et=(e,t)=>{let o=e;return t.split(lt).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Eo=e=>e.isThemeGetter,zo=(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(([s,a])=>[t+s,a])):i);return[o,n]}):e,Lo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(i,s)=>{o.set(i,s),t++,t>e&&(t=0,r=o,o=new Map)};return{get(i){let s=o.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return n(i,s),s},set(i,s){o.has(i)?o.set(i,s):n(i,s)}}},Lt="!",jo=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],i=t.length,s=a=>{let g=[],m=0,w=0,k;for(let f=0;f<a.length;f++){let C=a[f];if(m===0){if(C===n&&(r||a.slice(f,f+i)===t)){g.push(a.slice(w,f)),w=f+i;continue}if(C==="/"){k=f;continue}}C==="["?m++:C==="]"&&m--}let y=g.length===0?a:a.substring(w),R=y.startsWith(Lt),x=R?y.substring(1):y,v=k&&k>w?k-w:void 0;return{modifiers:g,hasImportantModifier:R,baseClassName:x,maybePostfixModifierPosition:v}};return o?a=>o({className:a,parseClassName:s}):s},Bo=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},Oo=e=>({cache:Lo(e.cacheSize),parseClassName:jo(e),...Ao(e)}),Fo=/\s+/,Uo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,i=[],s=e.trim().split(Fo),a="";for(let g=s.length-1;g>=0;g-=1){let m=s[g],{modifiers:w,hasImportantModifier:k,baseClassName:y,maybePostfixModifierPosition:R}=o(m),x=!!R,v=r(x?y.substring(0,R):y);if(!v){if(!x){a=m+(a.length>0?" "+a:a);continue}if(v=r(y),!v){a=m+(a.length>0?" "+a:a);continue}x=!1}let f=Bo(w).join(":"),C=k?f+Lt:f,T=C+v;if(i.includes(T))continue;i.push(T);let G=n(v,x);for(let O=0;O<G.length;++O){let V=G[O];i.push(C+V)}a=m+(a.length>0?" "+a:a)}return a};function Wo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=jt(t))&&(r&&(r+=" "),r+=o);return r}var jt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=jt(e[r]))&&(o&&(o+=" "),o+=t);return o};function Go(e,...t){let o,r,n,i=s;function s(g){let m=t.reduce((w,k)=>k(w),e());return o=Oo(m),r=o.cache.get,n=o.cache.set,i=a,a(g)}function a(g){let m=r(g);if(m)return m;let w=Uo(g,o);return n(g,w),w}return function(){return i(Wo.apply(null,arguments))}}var S=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Bt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Vo=/^\d+\/\d+$/,Ho=new Set(["px","full","screen"]),$o=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_o=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|Ht|min|max))|\Ht(calc|min|max|clamp)\(.+\)|^0$/,Ko=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,qo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Jo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,re=e=>we(e)||Ho.has(e)||Vo.test(e),se=e=>Ne(e,"length",rr),we=e=>!!e&&!Number.isNaN(Number(e)),nt=e=>Ne(e,"number",we),ke=e=>!!e&&Number.isInteger(Number(e)),Xo=e=>e.endsWith("%")&&we(e.slice(0,-1)),u=e=>Bt.test(e),le=e=>$o.test(e),Qo=new Set(["length","size","percentage"]),Yo=e=>Ne(e,Qo,Ot),Zo=e=>Ne(e,"position",Ot),er=new Set(["image","url"]),tr=e=>Ne(e,er,ar),or=e=>Ne(e,"",ir),Re=()=>!0,Ne=(e,t,o)=>{let r=Bt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},rr=e=>_o.test(e)&&!Ko.test(e),Ot=()=>!1,ir=e=>qo.test(e),ar=e=>Jo.test(e);var nr=()=>{let e=S("colors"),t=S("spacing"),o=S("blur"),r=S("brightness"),n=S("borderColor"),i=S("borderRadius"),s=S("borderSpacing"),a=S("borderWidth"),g=S("contrast"),m=S("grayscale"),w=S("hueRotate"),k=S("invert"),y=S("gap"),R=S("gradientColorStops"),x=S("gradientColorStopPositions"),v=S("inset"),f=S("margin"),C=S("opacity"),T=S("padding"),G=S("saturate"),O=S("scale"),V=S("sepia"),te=S("skew"),xe=S("space"),ye=S("translate"),F=()=>["auto","contain","none"],X=()=>["auto","hidden","clip","visible","scroll"],be=()=>["auto",u,t],P=()=>[u,t],je=()=>["",re,se],he=()=>["auto",we,u],l=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],M=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],H=()=>["","0",u],At=()=>["auto","avoid","all","avoid-page","page","left","right","column"],oe=()=>[we,u];return{cacheSize:500,separator:":",theme:{colors:[Re],spacing:[re,se],blur:["none","",le,u],brightness:oe(),borderColor:[e],borderRadius:["none","","full",le,u],borderSpacing:P(),borderWidth:je(),contrast:oe(),grayscale:H(),hueRotate:oe(),invert:H(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[Xo,se],inset:be(),margin:be(),opacity:oe(),padding:P(),saturate:oe(),scale:oe(),sepia:H(),skew:oe(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[le]}],"break-after":[{"break-after":At()}],"break-before":[{"break-before":At()}],"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:[...l(),u]}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ke,u]}],basis:[{basis:be()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",ke,u]}],"grid-cols":[{"grid-cols":[Re]}],"col-start-end":[{col:["auto",{span:["full",ke,u]},u]}],"col-start":[{"col-start":he()}],"col-end":[{"col-end":he()}],"grid-rows":[{"grid-rows":[Re]}],"row-start-end":[{row:["auto",{span:[ke,u]},u]}],"row-start":[{"row-start":he()}],"row-end":[{"row-end":he()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],Ht:[{Ht:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],Xt:[{Xt:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[f]}],mx:[{mx:[f]}],my:[{my:[f]}],ms:[{ms:[f]}],Ht:[{Ht:[f]}],mt:[{mt:[f]}],mr:[{mr:[f]}],mb:[{mb:[f]}],ml:[{ml:[f]}],"space-x":[{"space-x":[xe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[xe]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,t]}],"min-w":[{"min-w":[u,t,"min","max","fit"]}],"max-w":[{"max-w":[u,t,"none","full","min","max","fit","prose",{screen:[le]},le]}],h:[{h:[u,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,t,"auto","min","max","fit"]}],"font-size":[{text:["base",le,se]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",nt]}],"font-family":[{font:[Re]}],"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",u]}],"line-clamp":[{"line-clamp":["none",we,nt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",re,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","Ht-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",re,se]}],"underline-offset":[{"underline-offset":["auto",re,u]}],"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:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],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",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...l(),Zo]}],"bg-repeat":[{bg:["Ht-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Yo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","Ht","bl","l","tl"]},tr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[R]}],"gradient-via":[{via:[R]}],"gradient-to":[{to:[R]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-Ht":[{"rounded-Ht":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-Ht":[{"rounded-Ht":[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:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-Ht":[{"border-Ht":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...D(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:D()}],"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-Ht":[{"border-Ht":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...D()]}],"outline-offset":[{"outline-offset":[re,u]}],"outline-w":[{outline:[re,se]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:je()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[re,se]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",le,or]}],"shadow-color":[{shadow:[Re]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...M(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":M()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",le,u]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[k]}],saturate:[{saturate:[G]}],sepia:[{sepia:[V]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[k]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[G]}],"backdrop-sepia":[{"backdrop-sepia":[V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:oe()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:oe()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-x":[{"scale-x":[O]}],"scale-y":[{"scale-y":[O]}],rotate:[{rotate:[ke,u]}],"translate-x":[{"translate-x":[ye]}],"translate-y":[{"translate-y":[ye]}],"skew-x":[{"skew-x":[te]}],"skew-y":[{"skew-y":[te]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],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","Ht-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","Ht-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-Ht":[{"scroll-Ht":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-Ht":[{"scroll-Ht":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-Xt":[{"scroll-Xt":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",u]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[re,se,nt]}],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"],Ht:["px","py","ps","Xt","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","Ht","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-Ht","rounded-l","rounded-ss","rounded-se","rounded-Ht","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-Ht"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-Ht":["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-Ht","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-Ht"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-Ht","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-Ht"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-Ht","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-Ht":["scroll-px","scroll-py","scroll-ps","scroll-Xt","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 Ft=Go(nr);function d(...e){return Ft((0,Ut.clsx)(e))}var Wt=require("@radix-ui/react-slot"),Gt=require("class-variance-authority"),Vt=I(require("react")),Ht=require("react/jsx-runtime"),sr=(0,Gt.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),z=Vt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...n},i)=>(0,Ht.jsx)(e?Wt.Slot:"button",{className:d(sr({className:t,size:o,variant:r})),ref:i,...n}));z.displayName="Button";var ve=I(require("@radix-ui/react-tabs"));function $t({className:e,...t}){return(0,Ht.jsx)(ve.Root,{"data-slot":"tabs",className:d("flex flex-col gap-2",e),...t})}function _t({className:e,...t}){return(0,Ht.jsx)(ve.List,{"data-slot":"tabs-list",className:d("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg Ht-[3px]",e),...t})}function Kt({className:e,...t}){return(0,Ht.jsx)(ve.Trigger,{"data-slot":"tabs-trigger",className:d("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var ie=I(require("react")),h=I(require("@radix-ui/react-dropdown-menu")),Ce=require("@radix-ui/react-icons");var qt=h.Root,Jt=h.Trigger;var lr=ie.forwardRef(({className:e,inset:t,children:o,...r},n)=>(0,Ht.jsxs)(h.SubTrigger,{ref:n,className:d("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,Ht.jsx)(Ce.ChevronRightIcon,{className:"ml-auto"})]}));lr.displayName=h.SubTrigger.displayName;var dr=ie.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(h.SubContent,{ref:o,className:d("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover Ht-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}));dr.displayName=h.SubContent.displayName;var dt=ie.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Ht.jsx)(h.Portal,{children:(0,Ht.jsx)(h.Content,{ref:r,sideOffset:t,className:d("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover Ht-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})}));dt.displayName=h.Content.displayName;var ct=ie.forwardRef(({className:e,inset:t,...o},r)=>(0,Ht.jsx)(h.Item,{ref:r,className:d("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}));ct.displayName=h.Item.displayName;var cr=ie.forwardRef(({className:e,children:t,checked:o,...r},n)=>(0,Ht.jsxs)(h.CheckboxItem,{ref:n,className:d("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,Ht.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ht.jsx)(h.ItemIndicator,{children:(0,Ht.jsx)(Ce.CheckIcon,{className:"h-4 w-4"})})}),t]}));cr.displayName=h.CheckboxItem.displayName;var mr=ie.forwardRef(({className:e,children:t,...o},r)=>(0,Ht.jsxs)(h.RadioItem,{ref:r,className:d("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,Ht.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ht.jsx)(h.ItemIndicator,{children:(0,Ht.jsx)(Ce.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));mr.displayName=h.RadioItem.displayName;var pr=ie.forwardRef(({className:e,inset:t,...o},r)=>(0,Ht.jsx)(h.Label,{ref:r,className:d("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));pr.displayName=h.Label.displayName;var ur=ie.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(h.Separator,{ref:o,className:d("-mx-1 my-1 h-px bg-muted",e),...t}));ur.displayName=h.Separator.displayName;var gr=({className:e,...t})=>(0,Ht.jsx)("span",{className:d("ml-auto text-xs tracking-widest opacity-60",e),...t});gr.displayName="DropdownMenuShortcut";function pt({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:n="700px",gridCols:i=6}){let s=o.find(a=>a.value===e);return(0,Ht.jsxs)(mt.motion.div,{className:`flex-1 flex justify-center ${r}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[(0,Ht.jsx)("div",{className:"hidden lg:block",children:(0,Ht.jsx)($t,{value:e,onValueChange:t,children:(0,Ht.jsx)(_t,{className:"grid w-full rounded-2xl Ht-0 h-10",style:{maxWidth:n,gridTemplateColumns:`repeat(${Math.min(i,o.length)}, minmax(0, 1fr))`},children:o.map(a=>(0,Ht.jsx)(mt.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Ht.jsx)(Kt,{value:a.value,onClick:()=>t?.(a.value),className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:a.label})},a.value))})})}),(0,Ht.jsx)("div",{className:"lg:hidden",children:(0,Ht.jsxs)(qt,{children:[(0,Ht.jsx)(Jt,{asChild:!0,children:(0,Ht.jsxs)(z,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[s?.label||"Select",(0,Ht.jsx)(Xt.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,Ht.jsx)(dt,{align:"center",className:"w-[180px]",children:o.map(a=>(0,Ht.jsx)(ct,{onClick:()=>t?.(a.value),className:`cursor-pointer ${e===a.value?"bg-accent":""}`,children:a.label},a.value))})]})})]})}var Fe=I(require("react")),Ue=I(require("@radix-ui/react-switch"));function fr({className:e,onCheckedChange:t,checked:o,defaultChecked:r,...n}){let[i,s]=Fe.useState(!1),[a,g]=Fe.useState(!1),[m,w]=Fe.useState(r||!1),k=o!==void 0?o:m;return(0,Ht.jsx)(Ue.Root,{"data-slot":"switch","data-pressed":i,checked:o,defaultChecked:r,onMouseDown:()=>{s(!0),g(!1)},onMouseUp:()=>{s(!1),g(!1)},onMouseLeave:()=>{i&&(s(!1),g(!0))},onCheckedChange:f=>{a||(o===void 0&&w(f),t?.(f))},className:d("relative shadow-inner ring ring-black/5 inline-flex shrink-0 items-center rounded-full outline-none cursor-pointer","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[0.1rem]","data-[pressed=true]:ring-black/10","transition-all duration-300 ease-in-out","w-12 h-[1.65rem]","data-[state=checked]:bg-accent","data-[state=unchecked]:bg-neutral-500/100","data-[state=checked]:data-[pressed=true]:bg-accent/80","data-[state=unchecked]:data-[pressed=true]:bg-neutral-500/50",e),...n,children:(0,Ht.jsx)(Ue.Thumb,{"data-slot":"switch-thumb","data-pressed":i,className:d("absolute flex items-center justify-center bg-background pointer-events-none left-0 rounded-full","transition-all duration-200 ease-in-out","w-[1.3rem] h-[1.3rem]","data-[pressed=true]:w-[1.7rem]","data-[pressed=true]:h-[1.1rem]","translate-x-[0.2rem]","data-[state=checked]:translate-x-[1.5rem]","data-[state=checked]:data-[pressed=true]:translate-x-[1.1rem]","data-[state=checked]:data-[pressed=true]:left-[-0.15rem]","data-[state=unchecked]:data-[pressed=true]:left-[0.15rem]"),children:(0,Ht.jsx)(br,{isChecked:k,isPressed:i})})})}var br=({isChecked:e,isPressed:t})=>(0,Ht.jsxs)("svg",{viewBox:"0 0 20 20",className:d("inline-flex w-fit items-center justify-center","transition-all duration-100 ease-in-out",t?"fill-neutral-500/50":e?"fill-accent-foreground":"fill-neutral-500"),children:[(0,Ht.jsx)("rect",{x:"4",y:"8.5",height:"3",className:d("origin-center transition-all duration-100 ease-in-out",t?"rotate-0 translate-x-[0.2rem] translate-y-[0.05rem] w-1.5 h-0.5":e?"rotate-45 w-[6px] -translate-x-[1px] translate-y-1":"rotate-45 w-[12px] translate-x-0 translate-y-0")}),(0,Ht.jsx)("rect",{x:"4",y:"8.5",height:"3",className:d("origin-center transition-all duration-100 ease-in-out",t?"rotate-0 translate-x-[0.2rem] translate-y-[0.05rem] w-1.5 h-0.5":e?"-rotate-45 w-[11px] translate-x-[1.5px] translate-y-0":"-rotate-45 w-[12px] translate-x-0 translate-y-0")})]});var io=require("react");var hr=(0,Gt.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 ce({className:e,variant:t,...o}){return(0,Ht.jsx)("div",{className:d(hr({variant:t}),e),...o})}var We=I(require("react")),ae=I(require("@radix-ui/react-avatar"));var De=We.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(ae.Root,{ref:o,className:d("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));De.displayName=ae.Root.displayName;var ut=We.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(ae.Image,{ref:o,className:d("aspect-square h-full w-full",e),...t}));ut.displayName=ae.Image.displayName;var Se=We.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(ae.Fallback,{ref:o,className:d("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Se.displayName=ae.Fallback.displayName;var Zt=I(require("react")),Te=Zt.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)("textarea",{className:d("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));Te.displayName="Textarea";var to=I(require("react")),gt=I(require("@radix-ui/react-label"));var vr=(0,Gt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ae=to.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(gt.Root,{ref:o,className:d(vr(),e),...t}));Ae.displayName=gt.Root.displayName;var xr=({comments:e,onAddComment:t})=>{let[o,r]=(0,io.useState)(""),n=s=>s.split(" ").map(a=>a[0]).join("").toUpperCase(),i=()=>{o.trim()&&(t(o),r(""))};return(0,Ht.jsxs)("div",{className:"space-y-4",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ht.jsx)(Xt.MessageSquare,{className:"h-5 w-5"}),(0,Ht.jsx)(Ae,{className:"text-lg font-medium",children:"Comments"}),(0,Ht.jsx)(ce,{variant:"secondary",children:e.length})]}),(0,Ht.jsx)("div",{className:"space-y-4 max-h-60 overflow-y-auto",children:e.map(s=>(0,Ht.jsxs)("div",{className:"flex gap-3 Ht-3 bg-muted/50 rounded-lg",children:[(0,Ht.jsx)(De,{className:"h-8 w-8 mt-1",children:(0,Ht.jsx)(Se,{className:"text-xs bg-muted text-muted-foreground",children:n(s.author)})}),(0,Ht.jsxs)("div",{className:"flex-1",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Ht.jsx)("span",{className:"font-medium text-sm",children:s.author}),(0,Ht.jsxs)("span",{className:"text-xs text-muted-foreground",children:[s.createdAt.toLocaleDateString()," at ",s.createdAt.toLocaleTimeString()]})]}),(0,Ht.jsx)("Ht",{className:"text-sm text-muted-foreground",children:s.text})]})]},s.id))}),(0,Ht.jsxs)("div",{className:"flex gap-2",children:[(0,Ht.jsx)(Te,{value:o,onChange:s=>r(s.target.value),placeholder:"Add a comment...",rows:2,className:"flex-1 resize-none"}),(0,Ht.jsx)(z,{onClick:i,disabled:!o.trim(),size:"sm",className:"self-end",children:(0,Ht.jsx)(Xt.Send,{className:"h-4 w-4"})})]})]})};var ao=I(require("react"));var Me=ao.forwardRef(({className:e,type:t,...o},r)=>(0,Ht.jsx)("input",{type:t,className:d("flex h-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 yr=({fieldName:e,value:t,label:o,multiline:r=!1,onSave:n,className:i="",disabled:s=!1})=>{let[a,g]=(0,io.useState)(!1),[m,w]=(0,io.useState)(""),k=()=>{s||(g(!0),w(t))},y=async()=>{m!==t&&await n(e,m),g(!1)},R=x=>{x.key==="Enter"&&!r||x.key==="Enter"&&x.ctrlKey&&r?y():x.key==="Escape"&&(g(!1),w(""))};return(0,Ht.jsxs)("div",{className:`space-y-2 ${i}`,children:[(0,Ht.jsx)(Ae,{children:o}),a?r?(0,Ht.jsx)(Te,{value:m,onChange:x=>w(x.target.value),onBlur:y,onKeyDown:R,autoFocus:!0,rows:4,className:"resize-none"}):(0,Ht.jsx)(Me,{value:m,onChange:x=>w(x.target.value),onBlur:y,onKeyPress:R,autoFocus:!0,className:"text-lg font-medium"}):(0,Ht.jsxs)("div",{onClick:k,className:`${s?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 Ht-2 rounded border border-transparent hover:border-border transition-colors group ${r?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,Ht.jsx)("span",{className:r?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!s&&(0,Ht.jsx)(Xt.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var Qe=I(require("react")),Ye=I(require("next/link"));var bt=I(require("react")),_=I(require("@radix-ui/react-scroll-area"));var Pe=bt.forwardRef(({className:e,children:t,...o},r)=>(0,Ht.jsxs)(_.Root,{ref:r,className:d("relative overflow-hidden",e),...o,children:[(0,Ht.jsx)(_.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Ht.jsx)(lo,{}),(0,Ht.jsx)(_.Corner,{})]}));Pe.displayName=_.Root.displayName;var lo=bt.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,Ht.jsx)(_.ScrollAreaScrollbar,{ref:r,orientation:t,className:d("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent Ht-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent Ht-[1px]",e),...o,children:(0,Ht.jsx)(_.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));lo.displayName=_.ScrollAreaScrollbar.displayName;var Ie=I(require("react")),j=I(require("@radix-ui/react-dialog"));var mo=j.Root;var wr=j.Portal;var po=Ie.forwardRef(({className:e,...t},o)=>(0,$.jsx)(j.Overlay,{ref:o,className:d("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));po.displayName=j.Overlay.displayName;var ht=Ie.forwardRef(({className:e,children:t,...o},r)=>(0,$.jsxs)(wr,{children:[(0,$.jsx)(po,{}),(0,$.jsxs)(j.Content,{ref:r,className:d("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background Ht-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,$.jsxs)(j.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,$.jsx)(Xt.X,{className:"h-4 w-4"}),(0,$.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));ht.displayName=j.Content.displayName;var vt=({className:e,...t})=>(0,$.jsx)("div",{className:d("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});vt.displayName="DialogHeader";var Nr=({className:e,...t})=>(0,$.jsx)("div",{className:d("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Nr.displayName="DialogFooter";var xt=Ie.forwardRef(({className:e,...t},o)=>(0,$.jsx)(j.Title,{ref:o,className:d("text-lg font-semibold leading-none tracking-tight",e),...t}));xt.displayName=j.Title.displayName;var Cr=Ie.forwardRef(({className:e,...t},o)=>(0,$.jsx)(j.Description,{ref:o,className:d("text-sm text-muted-foreground",e),...t}));Cr.displayName=j.Description.displayName;var Ee=I(require("@radix-ui/react-checkbox")),go=I(require("react")),yt=go.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(Ee.Root,{className:d("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:o,...t,children:(0,Ht.jsx)(Ee.Indicator,{className:d("flex items-center justify-center text-current"),children:(0,Ht.jsx)(Xt.Check,{className:"h-4 w-4"})})}));yt.displayName=Ee.Root.displayName;var Y=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date});var bo=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,Ht.jsx)(Xt.Palette,{className:"h-4 w-4"}),color:"bg-purple-600",accentColor:"text-purple-600"},{id:"engineering",name:"Engineering",description:"Software development and technical teams",icon:(0,Ht.jsx)(Xt.Code,{className:"h-4 w-4"}),color:"bg-blue-600",accentColor:"text-blue-600"},{id:"marketing",name:"Marketing",description:"Brand, campaigns, and growth marketing",icon:(0,Ht.jsx)(Xt.TrendingUp,{className:"h-4 w-4"}),color:"bg-pink-600",accentColor:"text-pink-600"},{id:"sales",name:"Sales",description:"Revenue generation and customer acquisition",icon:(0,Ht.jsx)(Xt.DollarSign,{className:"h-4 w-4"}),color:"bg-green-600",accentColor:"text-green-600"},{id:"hr",name:"Human Resources",description:"People operations and talent management",icon:(0,Ht.jsx)(Xt.Users,{className:"h-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"},{id:"operations",name:"Operations",description:"Business operations and process optimization",icon:(0,Ht.jsx)(Xt.Wrench,{className:"h-4 w-4"}),color:"bg-indigo-600",accentColor:"text-indigo-600"},{id:"legal",name:"Legal",description:"Legal affairs and compliance",icon:(0,Ht.jsx)(Xt.Scale,{className:"h-4 w-4"}),color:"bg-slate-600",accentColor:"text-slate-600"},{id:"product",name:"Product",description:"Product strategy and management",icon:(0,Ht.jsx)(Xt.Package,{className:"h-4 w-4"}),color:"bg-violet-600",accentColor:"text-violet-600"},{id:"it",name:"IT Support",description:"Information technology and infrastructure",icon:(0,Ht.jsx)(Xt.Zap,{className:"h-4 w-4"}),color:"bg-cyan-600",accentColor:"text-cyan-600"},{id:"company",name:"Company",description:"Company-wide resources and information",icon:(0,Ht.jsx)(Xt.Building2,{className:"h-4 w-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],Ke=[{id:"1",name:"Ht-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 wt=[{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}],$e=[{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}],Je=[{id:"1",name:"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",name:"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",name:"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",name:"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",name:"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",name:"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",name:"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")}],Pr=[...Je,{id:"8",name:"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",name:"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",name:"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",name:"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",name:"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")}],kr=[...Ke,{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}],_e={projects:[{id:"1",name:"Empty Project",description:"Ht project with Ht 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:[]},fo={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:Je.filter(e=>e.epicId==="1")};var Pi={empty:{initialProjects:_e.projects,initialEpics:_e.epics,initialSprints:_e.sprints,initialTasks:_e.tasks},default:{initialProjects:Ke,initialEpics:wt,initialSprints:$e,initialTasks:Je},highDensity:{initialProjects:Ke,initialEpics:wt,initialSprints:$e,initialTasks:Pr},singleEpic:{initialProjects:Ke,initialEpics:fo.epics,initialSprints:$e,initialTasks:fo.tasks},multipleProjects:{initialProjects:kr,initialEpics:wt,initialSprints:$e,initialTasks:Je}},qe=[{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(Y),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(Y),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(Y),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(Y),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","R","Statistics"].map(Y),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(Y),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(Y),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(Y),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(Y),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(Y),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],ki=[{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:qe.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:qe.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:qe.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 Ri=qe.filter(e=>e.type==="digital");function ho(e,t){let[o,r]=(0,io.useState)(()=>{if(typeof window>"u")return t;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch{return t}}),n=i=>{try{r(i),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,io.useEffect)(()=>{n(o)},[]),[o,n]}function Rr({items:e,isOpen:t,isMobile:o=!1,onClose:r,currentBusinessUnit:n=bo[0],onBusinessUnitChange:i,onSearch:s,className:a,logo:g="/headerlogo.png",logoLink:m="/teams",appName:w="Nuvia",tagline:k="Collaboration Platform"}){let[y,R]=Qe.useState({}),[x,v]=ho("sidebar-favorites",{}),[f,C]=Qe.useState(null),[T,G]=Qe.useState(""),O=l=>{R(D=>({...D,[l]:!D[l]}))},V=l=>{i?.(l)},te=()=>{T.trim()&&s?.(T.trim())},xe=l=>{l.key==="Enter"&&(l.preventDefault(),te())},ye=(l,D)=>{let M=x[l]||[],Q=M.includes(D)?M.filter(H=>H!==D):M.concat(D);v({...x,[l]:Q})},F=l=>{if(!l.items||!l.maxItems||l.items.length<=l.maxItems)return l.items||[];let D=x[l.id]||[],M=l.items.filter(H=>D.includes(H.id)),Q=l.items.filter(H=>!D.includes(H.id));return[...M,...Q].slice(0,l.maxItems)},X=l=>l.maxItems&&l.items&&l.items.length>l.maxItems,be=e,P=l=>{let D=X(l),M=F(l),Q=(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-3",children:[l.icon,(0,Ht.jsx)("span",{children:l.title})]}),l.badge&&(0,Ht.jsx)(ce,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:l.badge}),l.items&&(0,Ht.jsx)(Xt.ChevronDown,{className:d("ml-2 h-4 w-4 transition-transform",y[l.title]?"rotate-180":"")})]}),H=d("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,Ht.jsx)(Ye.default,{href:l.url,className:H,onClick:o?r:void 0,children:Q}):(0,Ht.jsx)("button",{className:H,onClick:()=>l.items&&O(l.title),children:Q})},je=()=>{let l=e.find(M=>M.id===f);if(!l||!l.items||!l.maxItems)return null;let D=x[l.id]||[];return(0,Ht.jsx)(mo,{open:!!f,onOpenChange:M=>!M&&C(null),children:(0,Ht.jsxs)(ht,{className:"sm:max-w-md",children:[(0,Ht.jsxs)(vt,{children:[(0,Ht.jsxs)(xt,{children:["Manage ",l.title," Favorites"]}),(0,Ht.jsxs)("Ht",{className:"text-sm text-muted-foreground",children:["Select up to ",l.maxItems," items to show in ",l.title.toLowerCase(),"."]})]}),(0,Ht.jsx)(Pe,{className:"max-h-96 pr-4",children:(0,Ht.jsx)("div",{className:"space-y-4",children:l.items.map(M=>(0,Ht.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Ht.jsx)(yt,{id:M.id,checked:D.includes(M.id),onCheckedChange:()=>ye(l.id,M.id),disabled:!D.includes(M.id)&&D.length>=(l.maxItems||0)}),(0,Ht.jsxs)("label",{htmlFor:M.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:[M.title,M.badge&&(0,Ht.jsx)(ce,{variant:"outline",className:"text-xs",children:M.badge})]})]},M.id))})})]})})},he=(0,Ht.jsxs)("div",{className:"flex h-full flex-col bg-background",children:[(0,Ht.jsxs)("div",{className:"flex items-center justify-between Ht-4",children:[(0,Ht.jsxs)(Ye.default,{href:m,className:"flex items-center gap-3",children:[(0,Ht.jsx)("div",{className:"flex h-14 w-14 items-center justify-center",children:(0,Ht.jsx)("img",{src:g,alt:"Header Logo",className:"h-14 w-14 object-contain"})}),(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("h2",{className:"font-semibold",children:w}),(0,Ht.jsx)("Ht",{className:"text-xs text-muted-foreground",children:k})]})]}),o&&(0,Ht.jsx)(z,{variant:"ghost",size:"icon",onClick:r,children:(0,Ht.jsx)(Xt.X,{className:"h-5 w-5"})})]}),(0,Ht.jsx)("div",{className:"px-3 py-2",children:(0,Ht.jsxs)("div",{className:"relative",children:[(0,Ht.jsx)(Xt.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,Ht.jsx)(Me,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:T,onChange:l=>G(l.target.value),onKeyPress:xe})]})}),(0,Ht.jsx)(Pe,{className:"flex-1 px-3 py-2",children:(0,Ht.jsx)("div",{className:"space-y-1",children:be.map(l=>(0,Ht.jsxs)("div",{className:"mb-1",children:[P(l),l.items&&y[l.title]&&(0,Ht.jsxs)("div",{className:"mt-1 ml-6 space-y-1 border-l pl-3",children:[F(l).map(D=>(0,Ht.jsxs)(Ye.default,{href:D.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:o?r:void 0,children:[D.title,D.badge&&(0,Ht.jsx)(ce,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:D.badge})]},D.id)),X(l)&&l.items&&l.items.length>F(l).length&&(0,Ht.jsxs)("button",{onClick:()=>C(l.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:["...",l.items.length-F(l).length," more available"]})]})]},l.id))})}),(0,Ht.jsx)("div",{className:"Ht-3",children:(0,Ht.jsx)("div",{className:"space-y-1",children:(0,Ht.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,Ht.jsx)(Xt.Settings,{className:"h-5 w-5"}),(0,Ht.jsx)("span",{children:"Settings"})]})})}),(0,Ht.jsx)(je,{})]});return o?(0,Ht.jsx)("div",{className:d("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:he}):(0,Ht.jsx)("div",{className:d("fixed inset-y-0 left-0 z-30 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",a),children:he})}var vo=I(require("react")),J=I(require("@radix-ui/react-tooltip"));var Ze=J.Provider,et=J.Root,tt=J.Trigger,ze=vo.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Ht.jsx)(J.Portal,{children:(0,Ht.jsx)(J.Content,{ref:r,sideOffset:t,className:d("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));ze.displayName=J.Content.displayName;var xo=require("next-themes");function yo(){let{setTheme:e,theme:t}=(0,xo.useTheme)();return(0,Ht.jsx)(Ze,{children:(0,Ht.jsxs)(et,{children:[(0,Ht.jsx)(tt,{asChild:!0,children:(0,Ht.jsxs)(z,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,Ht.jsx)(Xt.Sun,{className:"h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,Ht.jsx)(Xt.Moon,{className:"absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,Ht.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,Ht.jsx)(ze,{children:"Toggle theme"})]})})}function Ct({notifications:e,open:t,onClose:o,onNotificationRemove:r,onRemoveAll:n,className:i}){let s=e.filter(m=>!m.read),a=s.length,g=m=>{switch(m){case"info":return(0,Ht.jsx)(Xt.Info,{className:"h-5 w-5 text-blue-500"});case"success":return(0,Ht.jsx)(Xt.Check,{className:"h-5 w-5 text-green-500"});case"warning":return(0,Ht.jsx)(Xt.AlertTriangle,{className:"h-5 w-5 text-amber-500"});case"error":return(0,Ht.jsx)(Xt.AlertTriangle,{className:"h-5 w-5 text-red-500"})}};return(0,Ht.jsx)(mt.AnimatePresence,{children:t&&(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(mt.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-40 bg-black/20 backdrop-blur-sm md:hidden",onClick:o}),(0,Ht.jsx)(mt.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:d("fixed inset-y-0 right-0 z-50 w-full max-w-sm border-l bg-background shadow-lg md:w-96",i),children:(0,Ht.jsxs)("div",{className:"flex h-full flex-col",children:[(0,Ht.jsxs)("div",{className:"flex items-center justify-between border-Ht Ht-4",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ht.jsx)(Xt.Bell,{className:"h-5 w-5"}),(0,Ht.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),a>0&&(0,Ht.jsxs)(ce,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[a," new"]})]}),(0,Ht.jsxs)(z,{variant:"ghost",size:"icon",onClick:o,className:"rounded-full",children:[(0,Ht.jsx)(Xt.X,{className:"h-5 w-5"}),(0,Ht.jsx)("span",{className:"sr-only",children:"Close"})]})]}),a>0&&(0,Ht.jsxs)("div",{className:"flex items-center justify-between border-Ht Ht-2",children:[(0,Ht.jsxs)("span",{className:"text-sm text-muted-foreground",children:[a," unread notification",a!==1?"s":""]}),(0,Ht.jsx)(z,{variant:"ghost",size:"sm",onClick:n,className:"text-sm",children:"Dismiss all"})]}),s.length>0?(0,Ht.jsx)(Pe,{className:"flex-1",children:(0,Ht.jsx)("div",{className:"divide-y",children:s.map(m=>(0,Ht.jsxs)("div",{className:d("flex gap-3 Ht-4 transition-colors bg-muted/50"),children:[(0,Ht.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:g(m.type)}),(0,Ht.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,Ht.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ht.jsx)("Ht",{className:"font-medium",children:m.title}),(0,Ht.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ht.jsx)("Ht",{className:"text-xs text-muted-foreground",children:m.time}),(0,Ht.jsx)(z,{variant:"ghost",size:"sm",className:"h-6 w-6 Ht-0",onClick:()=>r?.(m.id),title:"Dismiss",children:(0,Ht.jsx)(Xt.Check,{className:"h-3 w-3"})})]})]}),(0,Ht.jsx)("Ht",{className:"text-sm text-muted-foreground",children:m.description}),m.actionLabel&&(0,Ht.jsxs)(z,{variant:"link",size:"sm",className:"h-auto Ht-0 text-sm",onClick:m.onAction,children:[m.actionLabel,(0,Ht.jsx)(Xt.ChevronRight,{className:"ml-1 h-3 w-3"})]})]})]},m.id))})}):(0,Ht.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center Ht-8 text-center",children:[(0,Ht.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted",children:(0,Ht.jsx)(Xt.Bell,{className:"h-8 w-8 text-muted-foreground"})}),(0,Ht.jsx)("h3",{className:"mt-4 text-lg font-medium",children:"No notifications"}),(0,Ht.jsx)("Ht",{className:"mt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}function Dr({title:e,notifications:t=[],onToggleSidebar:o,onToggleMobileMenu:r,sidebarOpen:n=!0,className:i,activeTab:s="assistant",onTabChange:a,showTabs:g=!0,tabOptions:m=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:w,actionIcon:k=(0,Ht.jsx)(Xt.Bot,{className:"mr-2 h-4 w-4"}),actionText:y="Action",onNotificationRemove:R,onRemoveAll:x,logo:v="/headerlogo.png",appName:f="Nuvia",tagline:C="Collaboration Platform"}){let[T,G]=(0,io.useState)(!1),[O,V]=(0,io.useState)(t),te=O.filter(F=>!F.read).length,xe=F=>{V(X=>X.filter(be=>be.id!==F)),R?.(F)},ye=()=>{V(F=>F.filter(X=>X.read)),x?.()};return(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsxs)("header",{className:`sticky top-0 z-10 flex h-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${i||""}`,children:[(0,Ht.jsx)(z,{variant:"ghost",size:"icon",className:"md:hidden",onClick:r,children:(0,Ht.jsx)(Xt.Menu,{className:"h-5 w-5"})}),(0,Ht.jsx)(z,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:o,children:(0,Ht.jsx)(Xt.PanelLeft,{className:"h-5 w-5"})}),!n&&(0,Ht.jsxs)(mt.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[(0,Ht.jsx)("div",{className:"flex h-10 w-10 items-center justify-center",children:(0,Ht.jsx)("img",{src:v,alt:"Logo",className:"h-10 w-10 object-contain"})}),(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("h2",{className:"font-semibold text-sm",children:f}),(0,Ht.jsx)("Ht",{className:"text-xs text-muted-foreground",children:C})]})]}),(0,Ht.jsxs)("div",{className:"flex flex-1 items-center",children:[g&&(0,Ht.jsx)(pt,{activeTab:s,onTabChange:a,tabOptions:m}),(0,Ht.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,Ht.jsx)(mt.motion.div,{className:"hidden md:flex gap-2",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:(0,Ht.jsx)(mt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Ht.jsxs)(z,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:w,children:[k,y]})})}),(0,Ht.jsx)(yo,{}),(0,Ht.jsx)(Ze,{children:(0,Ht.jsxs)(et,{children:[(0,Ht.jsx)(tt,{asChild:!0,children:(0,Ht.jsx)(mt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Ht.jsxs)(z,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>G(!0),children:[(0,Ht.jsx)(mt.motion.div,{animate:te>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:te>0?1/0:0,repeatDelay:3},children:(0,Ht.jsx)(Xt.Bell,{className:"h-5 w-5"})}),te>0&&(0,Ht.jsx)(mt.motion.span,{className:"absolute -right-1 -top-1 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-xs text-white",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500,damping:15},children:te})]})})}),(0,Ht.jsx)(ze,{children:"Notifications"})]})}),(0,Ht.jsx)(mt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,Ht.jsxs)(De,{className:"h-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,Ht.jsx)(ut,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,Ht.jsx)(Se,{})]})})]})]})]}),(0,Ht.jsx)(Ct,{notifications:O,open:T,onClose:()=>G(!1),onNotificationRemove:xe,onRemoveAll:ye})]})}function kt(e){let t=new Map,o=[];e.forEach(n=>{t.set(n.id,{...n,children:[],level:0})}),e.forEach(n=>{let i=t.get(n.id);if(!i)return;let s=typeof n.manager=="string"?n.manager:n.manager?.id;if(s){let a=t.get(s);a?(a.children.push(i),i.level=a.level+1):o.push(i)}else o.push(i)});let r=(n,i)=>{n.level=i,n.children.forEach(s=>r(s,i+1))};return o.forEach(n=>r(n,0)),o}function Rt(e){if(!e)return"?";let t=e.trim().split(/\s+/);return t.length===1?t[0].substring(0,2).toUpperCase():(t[0][0]+t[t.length-1][0]).toUpperCase()}function Dt(e){return e&&{P:"bg-primary/20 text-primary border-primary/30",SM:"bg-accent/20 text-accent border-accent/30",M:"bg-accent/15 text-accent border-accent/25",SC2:"bg-card text-card-foreground border-border",SC1:"bg-card text-card-foreground border-border",C3:"bg-muted text-muted-foreground border-border",C2:"bg-muted text-muted-foreground border-border",C1:"bg-muted text-muted-foreground border-border"}[e]||"bg-muted text-muted-foreground"}var St={P:"Partner",SM:"Senior Manager",M:"Manager",SC1:"Senior Consultant 1",SC2:"Senior Consultant 2",C1:"Consultant 1",C2:"Consultant 2",C3:"Consultant 3"};var rt=({node:e,onNodeClick:t,expandable:o=!1,isExpanded:r=!0,onToggleExpand:n})=>{let i=e.children.length>0,s=o&&i;return(0,Ht.jsx)("div",{className:"flex flex-col items-center",children:(0,Ht.jsxs)("div",{className:`
|
|
7
7
|
relative bg-card border border-border rounded-lg shadow-sm
|
|
8
8
|
transition-all duration-200 hover:shadow-md hover:border-primary/50
|
|
9
9
|
${t?"cursor-pointer":""}
|
|
10
|
-
w-64
|
|
11
|
-
`,onClick:()=>t?.(e),children:[(0,
|
|
10
|
+
w-64 Ht-4 min-h-[180px] flex flex-col
|
|
11
|
+
`,onClick:()=>t?.(e),children:[(0,Ht.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Ht.jsx)("div",{className:"flex-shrink-0",children:e.profilePicture?.url?(0,Ht.jsx)("img",{src:e.profilePicture.url,alt:e.profilePicture.alt||e.name,className:"w-12 h-12 rounded-full object-cover border-2 border-primary/20"}):(0,Ht.jsx)("div",{className:"w-12 h-12 rounded-full bg-primary/10 border-2 border-primary/20 flex items-center justify-center",children:(0,Ht.jsx)("span",{className:"text-sm font-semibold text-primary",children:Rt(e.name)})})}),(0,Ht.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ht.jsx)("h3",{className:"font-semibold text-card-foreground text-sm truncate",children:e.name}),(0,Ht.jsx)("Ht",{className:"text-xs text-muted-foreground truncate",children:e.email}),e.jobRole&&(0,Ht.jsx)("div",{className:"mt-2",children:(0,Ht.jsx)("span",{className:`
|
|
12
12
|
inline-block px-2 py-0.5 rounded text-xs font-medium border
|
|
13
|
-
${
|
|
14
|
-
`,children:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
${Dt(e.jobRole)}
|
|
14
|
+
`,children:St[e.jobRole]})})]})]}),(0,Ht.jsx)("div",{className:"mt-3 pt-3 border-t border-border flex-1 flex flex-col justify-start",children:e.about?(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)("Ht",{className:"text-xs text-muted-foreground line-clamp-2",title:e.about.length>100?e.about:void 0,children:e.about}),e.about.length>100&&(0,Ht.jsx)("div",{className:"mt-1 text-xs text-muted-foreground/70 italic",children:"Hover to see full description"})]}):(0,Ht.jsx)("div",{className:"text-xs text-muted-foreground/50 italic",children:"No description available"})}),s&&(0,Ht.jsx)("button",{onClick:a=>{a.stopPropagation(),n?.()},className:"absolute -bottom-3 left-1/2 -translate-x-1/2 w-6 h-6 rounded-full bg-card border-2 border-border hover:border-primary/50 flex items-center justify-center transition-colors z-30","aria-label":r?"Collapse":"Expand",children:(0,Ht.jsx)("svg",{className:`w-3 h-3 text-muted-foreground transition-transform ${r?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,Ht.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]})})};var it=({companyInfo:e})=>(0,Ht.jsxs)("div",{className:"flex flex-col items-center",children:[(0,Ht.jsx)("div",{className:"w-16 h-16 rounded-full bg-primary/10 border-2 border-primary/20 flex items-center justify-center shadow-sm",children:e.logo?.url?(0,Ht.jsx)("img",{src:e.logo.url,alt:e.logo.alt||e.name,className:"w-12 h-12 rounded-full object-cover"}):(0,Ht.jsx)("div",{className:"w-12 h-12 rounded-full bg-primary/20 flex items-center justify-center",children:(0,Ht.jsx)("span",{className:"text-xs font-bold text-primary",children:e.name.split(" ").map(t=>t[0]).join("").slice(0,3).toUpperCase()})})}),(0,Ht.jsx)("div",{className:"mt-2 text-center",children:(0,Ht.jsx)("Ht",{className:"text-sm font-semibold text-card-foreground",children:e.name})}),(0,Ht.jsx)("div",{className:"w-0.5 h-1 bg-border mt-2"})]});var wo=(e,t)=>({...e,level:e.level+t,children:e.children.map(o=>wo(o,t))}),at=({nodes:e,onNodeClick:t,expandable:o=!1,initiallyExpanded:r=!0,companyInfo:n,defaultExpandedLevels:i=2})=>{if(n&&e.length>1){let s=e.map(a=>({...a,level:a.level+1,children:a.children.map(g=>wo(g,1))}));return(0,Ht.jsx)(Tt,{node:{id:"company",name:n.name,email:"",children:s,level:0},onNodeClick:t,expandable:o,initiallyExpanded:r,isCompanyNode:!0,companyInfo:n,defaultExpandedLevels:i})}return(0,Ht.jsx)("div",{className:"flex flex-col items-center gap-0",children:e.map((s,a)=>(0,Ht.jsx)(Tt,{node:s,onNodeClick:t,expandable:o,initiallyExpanded:r,isLast:a===e.length-1,defaultExpandedLevels:i},s.id))})},Tt=({node:e,onNodeClick:t,expandable:o,initiallyExpanded:r=!0,isLast:n=!1,isCompanyNode:i=!1,companyInfo:s,defaultExpandedLevels:a=2})=>{let g=i||e.level<a,[m,w]=(0,io.useState)(g),k=e.children.length>0,y=(0,io.useRef)(null),[R,x]=(0,io.useState)({childPositions:[],containerWidth:0});return(0,io.useEffect)(()=>{if(!k||!m||!y.current){x({childPositions:[],containerWidth:0});return}let v=setTimeout(()=>{let f=y.current;if(!f)return;let C=Array.from(f.children);if(C.length===0)return;let T=f.getBoundingClientRect(),G=C.map(O=>{let V=O.getBoundingClientRect();return V.left+V.width/2-T.left});x({childPositions:G,containerWidth:T.width})},0);return()=>clearTimeout(v)},[k,m,e.children.length]),(0,io.useEffect)(()=>{if(!k||!m)return;let v=new ResizeObserver(()=>{if(!y.current)return;let f=y.current,C=Array.from(f.children);if(C.length===0)return;let T=f.getBoundingClientRect(),G=C.map(O=>{let V=O.getBoundingClientRect();return V.left+V.width/2-T.left});x({childPositions:G,containerWidth:T.width})});return y.current&&v.observe(y.current),()=>v.disconnect()},[k,m]),(0,Ht.jsxs)("div",{className:`flex flex-col items-center ${n?"":"mb-8"}`,children:[i&&s?(0,Ht.jsx)(it,{companyInfo:s}):(0,Ht.jsx)(rt,{node:e,onNodeClick:t,expandable:o,isExpanded:m,onToggleExpand:()=>w(!m)}),k&&m&&(0,Ht.jsxs)("div",{className:"relative",children:[e.children.length>1&&R.childPositions.length>0&&(0,Ht.jsxs)("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 pointer-events-none z-10",children:[(0,Ht.jsx)("div",{className:"absolute top-0 left-0 w-0.5 h-8 bg-border -translate-x-1/2"}),(0,Ht.jsx)("div",{className:"absolute top-8 h-0.5 bg-border",style:{left:`${Math.min(...R.childPositions)-R.containerWidth/2}px`,width:`${Math.max(...R.childPositions)-Math.min(...R.childPositions)}px`}}),R.childPositions.map((v,f)=>(0,Ht.jsx)("div",{className:"absolute w-0.5 bg-border -translate-x-1/2",style:{left:`${v-R.containerWidth/2}px`,top:"32px",height:"32px"}},f))]}),e.children.length===1&&(0,Ht.jsx)("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-0.5 h-16 bg-border pointer-events-none z-10"}),(0,Ht.jsx)("div",{className:"mt-16 w-full overflow-x-auto",children:(0,Ht.jsx)("div",{ref:y,className:`
|
|
15
|
+
flex gap-8 pb-4
|
|
16
|
+
${e.children.length===1?"justify-center":"justify-start min-w-max px-4"}
|
|
17
|
+
`,children:e.children.map(v=>(0,Ht.jsx)("div",{className:"flex-shrink-0",children:(0,Ht.jsx)(Tt,{node:v,onNodeClick:t,expandable:o,initiallyExpanded:r,defaultExpandedLevels:a})},v.id))})})]})]})};var No=({users:e,onNodeClick:t,className:o="",expandable:r=!1,initiallyExpanded:n=!0,companyInfo:i,defaultExpandedLevels:s=2})=>{let a=kt(e);return e.length===0?(0,Ht.jsx)("div",{className:`flex items-center justify-center Ht-8 ${o}`,children:(0,Ht.jsx)("div",{className:"text-center",children:(0,Ht.jsx)("Ht",{className:"text-muted-foreground",children:"No users to display"})})}):a.length===0?(0,Ht.jsx)("div",{className:`flex items-center justify-center Ht-8 ${o}`,children:(0,Ht.jsxs)("div",{className:"text-center",children:[(0,Ht.jsx)("Ht",{className:"text-muted-foreground",children:"Unable to build organization tree"}),(0,Ht.jsx)("Ht",{className:"text-xs text-muted-foreground mt-1",children:"Check that manager relationships are properly configured"})]})}):(0,Ht.jsx)("div",{className:`org-chart w-full overflow-x-auto ${o}`,children:(0,Ht.jsx)("div",{className:"inline-block min-w-full Ht-8",children:(0,Ht.jsx)(at,{nodes:a,onNodeClick:t,expandable:r,initiallyExpanded:n,companyInfo:a.length>1?i:void 0,defaultExpandedLevels:s})})})};0&&(module.exports={AppHeader,AppSidebar,CommentSection,CompanyNode,EditableField,NavigationTabs,NotificationsPanel,OrgChart,OrgNode,OrgTree,Switch,buildOrgTree,getInitials,getRoleBadgeColor,jobRoleLabels});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as o}from"../../chunk-ZLFZBT3K.mjs";import{a as n}from"../../chunk-LEZ6G4X7.mjs";import{a as m}from"../../chunk-6UULUGR2.mjs";import{a as l}from"../../chunk-DNMM3Q72.mjs";import{a as k}from"../../chunk-VFIMFZX5.mjs";import{a as h,b as i,c as j}from"../../chunk-32G45Z2G.mjs";import{a as e}from"../../chunk-TJVEQJW3.mjs";import{a}from"../../chunk-6YHCNPFB.mjs";import"../../chunk-NPVUICIF.mjs";import{a as f}from"../../chunk-6SWKEZN6.mjs";import{a as g}from"../../chunk-DFIXTV2M.mjs";import{a as d}from"../../chunk-F6DMXMR4.mjs";import{a as c}from"../../chunk-GLZEHRPY.mjs";import{a as b}from"../../chunk-MU5WPW4N.mjs";import"../../chunk-AZKOVKSK.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-YEKQJ4YC.mjs";export{d as AppHeader,a as AppSidebar,f as CommentSection,m as CompanyNode,g as EditableField,c as NavigationTabs,b as NotificationsPanel,o as OrgChart,l as OrgNode,n as OrgTree,e as Switch,h as buildOrgTree,i as getInitials,j as getRoleBadgeColor,k as jobRoleLabels};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var s=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var c=(e,r)=>{for(var o in r)s(e,o,{get:r[o],enumerable:!0})},n=(e,r,o,l)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of d(r))!i.call(e,a)&&a!==o&&s(e,a,{get:()=>r[a],enumerable:!(l=m(r,a))||l.enumerable});return e};var p=e=>n(s({},"__esModule",{value:!0}),e);var u={};c(u,{CompanyNode:()=>f});module.exports=p(u);var t=require("react/jsx-runtime"),f=({companyInfo:e})=>(0,t.jsxs)("div",{className:"flex flex-col items-center",children:[(0,t.jsx)("div",{className:"w-16 h-16 rounded-full bg-primary/10 border-2 border-primary/20 flex items-center justify-center shadow-sm",children:e.logo?.url?(0,t.jsx)("img",{src:e.logo.url,alt:e.logo.alt||e.name,className:"w-12 h-12 rounded-full object-cover"}):(0,t.jsx)("div",{className:"w-12 h-12 rounded-full bg-primary/20 flex items-center justify-center",children:(0,t.jsx)("span",{className:"text-xs font-bold text-primary",children:e.name.split(" ").map(r=>r[0]).join("").slice(0,3).toUpperCase()})})}),(0,t.jsx)("div",{className:"mt-2 text-center",children:(0,t.jsx)("p",{className:"text-sm font-semibold text-card-foreground",children:e.name})}),(0,t.jsx)("div",{className:"w-0.5 h-1 bg-border mt-2"})]});0&&(module.exports={CompanyNode});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../../chunk-6UULUGR2.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as CompanyNode};
|