cortex-react-components 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-2CS6P44F.mjs +4 -0
- package/dist/{chunk-ERJXTG6X.mjs → chunk-2GM2LPLB.mjs} +1 -1
- package/dist/{chunk-M7NV6EFH.mjs → chunk-2OOJ4ZFB.mjs} +1 -1
- package/dist/chunk-34AVYSEY.mjs +4 -0
- package/dist/{chunk-MXCW6SOT.mjs → chunk-4SRUEQTP.mjs} +1 -1
- package/dist/{chunk-U3F45KVI.mjs → chunk-5N32XPU2.mjs} +1 -1
- package/dist/{chunk-A3SDGX4K.mjs → chunk-6VHK4OL7.mjs} +1 -1
- package/dist/{chunk-FTZRG54P.mjs → chunk-77PCUNUC.mjs} +1 -1
- package/dist/{chunk-7GMAMIHM.mjs → chunk-7OMPPFGG.mjs} +1 -1
- package/dist/chunk-A3YDFYEB.mjs +1 -0
- package/dist/{chunk-ECXVQZBN.mjs → chunk-ABGNIQRP.mjs} +1 -1
- package/dist/{chunk-GS2VFNHY.mjs → chunk-B3F6F2S4.mjs} +1 -1
- package/dist/{chunk-5SHZBJ5R.mjs → chunk-BQQ4V4PX.mjs} +1 -1
- package/dist/{chunk-ITJH72Z2.mjs → chunk-CLGBBNRB.mjs} +1 -1
- package/dist/{chunk-7BCUACIY.mjs → chunk-DYCG7KUN.mjs} +1 -1
- package/dist/{chunk-H3CJOE6S.mjs → chunk-F64CA5CH.mjs} +1 -1
- package/dist/{chunk-N3B3XNV3.mjs → chunk-FYQBRCQM.mjs} +1 -1
- package/dist/{chunk-67QPOSVV.mjs → chunk-GAZHKHGB.mjs} +1 -1
- package/dist/{chunk-255P6K5W.mjs → chunk-GETYSIZV.mjs} +1 -1
- package/dist/{chunk-XBCYPOFD.mjs → chunk-GTK2SGS5.mjs} +1 -1
- package/dist/{chunk-FKU4VQR6.mjs → chunk-HDKHF3EA.mjs} +1 -1
- package/dist/{chunk-YKG4FNS4.mjs → chunk-HKMNAXLM.mjs} +1 -1
- package/dist/{chunk-ISBVFNWD.mjs → chunk-IDG2O4B7.mjs} +1 -1
- package/dist/{chunk-SW7RYGO6.mjs → chunk-JHYWAL24.mjs} +1 -1
- package/dist/{chunk-I2GNNRFH.mjs → chunk-KZAYLEFB.mjs} +1 -1
- package/dist/chunk-LYPWYO4W.mjs +1 -0
- package/dist/{chunk-7EXAS7HK.mjs → chunk-MAAKU7PN.mjs} +1 -1
- package/dist/{chunk-FO3BUEXC.mjs → chunk-MO2B5CDW.mjs} +1 -1
- package/dist/{chunk-PK3OBSCB.mjs → chunk-MO4HRQEL.mjs} +1 -1
- package/dist/chunk-MPTT6GRI.mjs +1 -0
- package/dist/{chunk-2RQDJ5XT.mjs → chunk-P6OSMPUQ.mjs} +1 -1
- package/dist/chunk-PC6TVU7J.mjs +1 -0
- package/dist/{chunk-IF3425JX.mjs → chunk-PNUBVBSR.mjs} +1 -1
- package/dist/{chunk-LJQPLE4S.mjs → chunk-PTZT4QJW.mjs} +1 -1
- package/dist/{chunk-B2EJGXDG.mjs → chunk-QTILVWJA.mjs} +1 -1
- package/dist/{chunk-7VDNUJZC.mjs → chunk-RAGDUV7M.mjs} +1 -1
- package/dist/{chunk-B7AXSCTN.mjs → chunk-RRME4EHD.mjs} +1 -1
- package/dist/{chunk-5B6FLVPH.mjs → chunk-RVHCTANZ.mjs} +1 -1
- package/dist/{chunk-OTFILQXI.mjs → chunk-S4A4VHOI.mjs} +1 -1
- package/dist/{chunk-INPV5MBU.mjs → chunk-TK4JC5PG.mjs} +1 -1
- package/dist/{chunk-HKGW6JI2.mjs → chunk-U3FYDDE2.mjs} +1 -1
- package/dist/{chunk-X3JZSN3W.mjs → chunk-UZSBX5GO.mjs} +1 -1
- package/dist/{chunk-XGIYNUGC.mjs → chunk-VNYUNZ3M.mjs} +1 -1
- package/dist/{chunk-5SIP7DC5.mjs → chunk-VR5WOPRD.mjs} +1 -1
- package/dist/{chunk-2BR55L74.mjs → chunk-VRE6VCHX.mjs} +1 -1
- package/dist/{chunk-YOETYY5S.mjs → chunk-W7MEHF4G.mjs} +1 -1
- package/dist/chunk-WB2Y7HTT.mjs +1 -0
- package/dist/{chunk-L3BLBPSR.mjs → chunk-WUA65ZZB.mjs} +1 -1
- package/dist/chunk-WY2CT5AT.mjs +1 -0
- package/dist/chunk-Z72RUYUU.mjs +1 -0
- package/dist/{chunk-O5P35LEY.mjs → chunk-ZFUP5NVF.mjs} +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.d.ts +1 -0
- package/dist/components/DigitalColleagues/Views/index.js +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/index.js +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.js +1 -1
- package/dist/components/Holidays/HolidayGrid.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.js +1 -1
- package/dist/components/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/RequestLeave.js +1 -1
- package/dist/components/Holidays/RequestLeave.mjs +1 -1
- package/dist/components/Holidays/index.js +1 -1
- package/dist/components/Holidays/index.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Other/index.mjs +1 -1
- package/dist/components/Payload/Card/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Media/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/Projects/AddTaskModal.js +1 -1
- package/dist/components/Projects/AddTaskModal.mjs +1 -1
- package/dist/components/Projects/FileView.d.ts +2 -2
- package/dist/components/Projects/FileView.js +2 -2
- package/dist/components/Projects/FileView.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.js +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/PlanningView.js +1 -1
- package/dist/components/Projects/PlanningView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.js +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.d.ts +4 -4
- package/dist/components/Projects/ProjectView.js +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
- package/dist/components/Projects/TasksView.js +1 -1
- package/dist/components/Projects/TasksView.mjs +1 -1
- package/dist/components/Projects/file-list.d.ts +2 -2
- package/dist/components/Projects/file-list.js +1 -1
- package/dist/components/Projects/file-list.mjs +1 -1
- package/dist/components/dc-temp/index.js +1 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.js +8 -8
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/index.js +14 -14
- 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/dist/utils/BankHolidays.d.ts +1 -4
- package/dist/utils/BankHolidays.js +1 -1
- package/dist/utils/BankHolidays.mjs +1 -1
- package/dist/utils/DaysUtil.js +1 -1
- package/dist/utils/DaysUtil.mjs +1 -1
- package/package.json +3 -2
- package/dist/chunk-2VZWOBGP.mjs +0 -1
- package/dist/chunk-3U3PZBHQ.mjs +0 -4
- package/dist/chunk-5MU4KV3B.mjs +0 -1
- package/dist/chunk-A24EPYUY.mjs +0 -1
- package/dist/chunk-FV3W3WL7.mjs +0 -4
- package/dist/chunk-NZS3XKXU.mjs +0 -1
- package/dist/chunk-O4NH5Z6F.mjs +0 -1
- package/dist/chunk-PXPSM7OQ.mjs +0 -1
- package/dist/chunk-QKGEV7LG.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-WB2Y7HTT.mjs";import"../../chunk-Z72RUYUU.mjs";import"../../chunk-KOXC4RIH.mjs";import"../../chunk-MPTT6GRI.mjs";import"../../chunk-HHYHENVF.mjs";import"../../chunk-PFLESLNT.mjs";import"../../chunk-AB43AQKL.mjs";import"../../chunk-6YHVVP3S.mjs";import"../../chunk-AMV3MECK.mjs";import"../../chunk-A3YDFYEB.mjs";import"../../chunk-ORNGKQM7.mjs";import"../../chunk-6DEY5ZDD.mjs";import"../../chunk-WY2CT5AT.mjs";import"../../chunk-34AVYSEY.mjs";import"../../chunk-2CS6P44F.mjs";import"../../chunk-EOXVYLPB.mjs";import"../../chunk-ABGNIQRP.mjs";import"../../chunk-2NMVE5M4.mjs";import"../../chunk-6SWKEZN6.mjs";import"../../chunk-DFIXTV2M.mjs";import"../../chunk-M245YHYF.mjs";import"../../chunk-E4TE4NV6.mjs";import"../../chunk-JFFTEK6Z.mjs";import"../../chunk-JHNVX4UB.mjs";import"../../chunk-7BXIU4ZM.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-ZFUP5NVF.mjs";import"../../chunk-4UIARERB.mjs";import"../../chunk-D4IMQTVU.mjs";import"../../chunk-7GSXNSLD.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../chunk-2SAKLSZ4.mjs";import"../../chunk-PEQOQ7BK.mjs";import"../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../chunk-2SAKLSZ4.mjs";import"../../chunk-PEQOQ7BK.mjs";import"../../chunk-D3B2YO7G.mjs";import"../../chunk-5RTGHMF3.mjs";import"../../chunk-2NMVE5M4.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.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{a as default};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
"use client"
|
|
4
4
|
|
|
5
|
-
"use strict";var mt=Object.create;var ne=Object.defineProperty;var ut=Object.getOwnPropertyDescriptor;var pt=Object.getOwnPropertyNames;var gt=Object.getPrototypeOf,ft=Object.prototype.hasOwnProperty;var vt=(e,o)=>{for(var i in o)ne(e,i,{get:o[i],enumerable:!0})},Ee=(e,o,i,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let l of pt(o))!ft.call(e,l)&&l!==i&&ne(e,l,{get:()=>o[l],enumerable:!(n=ut(o,l))||n.enumerable});return e};var V=(e,o,i)=>(i=e!=null?mt(gt(e)):{},Ee(o||!e||!e.__esModule?ne(i,"default",{value:e,enumerable:!0}):i,e)),bt=e=>Ee(ne({},"__esModule",{value:!0}),e);var fr={};vt(fr,{TasksView:()=>ct,default:()=>gr});module.exports=bt(fr);var $=require("react");var We=require("clsx");var xe="-",ht=e=>{let o=xt(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{let d=s.split(xe);return d[0]===""&&d.length!==1&&d.shift(),He(d,o)||yt(s)},getConflictingClassGroupIds:(s,d)=>{let a=i[s]||[];return d&&n[s]?[...a,...n[s]]:a}}},He=(e,o)=>{if(e.length===0)return o.classGroupId;let i=e[0],n=o.nextPart.get(i),l=n?He(e.slice(1),n):void 0;if(l)return l;if(o.validators.length===0)return;let r=e.join(xe);return o.validators.find(({validator:s})=>s(r))?.classGroupId},ze=/^\[(.+)\]$/,yt=e=>{if(ze.test(e)){let o=ze.exec(e)[1],i=o?.substring(0,o.indexOf(":"));if(i)return"arbitrary.."+i}},xt=e=>{let{theme:o,prefix:i}=e,n={nextPart:new Map,validators:[]};return Ct(Object.entries(e.classGroups),i).forEach(([r,s])=>{ye(s,n,r,o)}),n},ye=(e,o,i,n)=>{e.forEach(l=>{if(typeof l=="string"){let r=l===""?o:Ae(o,l);r.classGroupId=i;return}if(typeof l=="function"){if(wt(l)){ye(l(n),o,i,n);return}o.validators.push({validator:l,classGroupId:i});return}Object.entries(l).forEach(([r,s])=>{ye(s,Ae(o,r),i,n)})})},Ae=(e,o)=>{let i=e;return o.split(xe).forEach(n=>{i.nextPart.has(n)||i.nextPart.set(n,{nextPart:new Map,validators:[]}),i=i.nextPart.get(n)}),i},wt=e=>e.isThemeGetter,Ct=(e,o)=>o?e.map(([i,n])=>{let l=n.map(r=>typeof r=="string"?o+r:typeof r=="object"?Object.fromEntries(Object.entries(r).map(([s,d])=>[o+s,d])):r);return[i,l]}):e,Rt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let o=0,i=new Map,n=new Map,l=(r,s)=>{i.set(r,s),o++,o>e&&(o=0,n=i,i=new Map)};return{get(r){let s=i.get(r);if(s!==void 0)return s;if((s=n.get(r))!==void 0)return l(r,s),s},set(r,s){i.has(r)?i.set(r,s):l(r,s)}}},Be="!",St=e=>{let{separator:o,experimentalParseClassName:i}=e,n=o.length===1,l=o[0],r=o.length,s=d=>{let a=[],v=0,f=0,C;for(let x=0;x<d.length;x++){let b=d[x];if(v===0){if(b===l&&(n||d.slice(x,x+r)===o)){a.push(d.slice(f,x)),f=x+r;continue}if(b==="/"){C=x;continue}}b==="["?v++:b==="]"&&v--}let I=a.length===0?d:d.substring(f),H=I.startsWith(Be),A=H?I.substring(1):I,T=C&&C>f?C-f:void 0;return{modifiers:a,hasImportantModifier:H,baseClassName:A,maybePostfixModifierPosition:T}};return i?d=>i({className:d,parseClassName:s}):s},Nt=e=>{if(e.length<=1)return e;let o=[],i=[];return e.forEach(n=>{n[0]==="["?(o.push(...i.sort(),n),i=[]):i.push(n)}),o.push(...i.sort()),o},Pt=e=>({cache:Rt(e.cacheSize),parseClassName:St(e),...ht(e)}),Dt=/\s+/,Tt=(e,o)=>{let{parseClassName:i,getClassGroupId:n,getConflictingClassGroupIds:l}=o,r=[],s=e.trim().split(Dt),d="";for(let a=s.length-1;a>=0;a-=1){let v=s[a],{modifiers:f,hasImportantModifier:C,baseClassName:I,maybePostfixModifierPosition:H}=i(v),A=!!H,T=n(A?I.substring(0,H):I);if(!T){if(!A){d=v+(d.length>0?" "+d:d);continue}if(T=n(I),!T){d=v+(d.length>0?" "+d:d);continue}A=!1}let x=Nt(f).join(":"),b=C?x+Be:x,c=b+T;if(r.includes(c))continue;r.push(c);let R=l(T,A);for(let k=0;k<R.length;++k){let L=R[k];r.push(b+L)}d=v+(d.length>0?" "+d:d)}return d};function kt(){let e=0,o,i,n="";for(;e<arguments.length;)(o=arguments[e++])&&(i=Fe(o))&&(n&&(n+=" "),n+=i);return n}var Fe=e=>{if(typeof e=="string")return e;let o,i="";for(let n=0;n<e.length;n++)e[n]&&(o=Fe(e[n]))&&(i&&(i+=" "),i+=o);return i};function It(e,...o){let i,n,l,r=s;function s(a){let v=o.reduce((f,C)=>C(f),e());return i=Pt(v),n=i.cache.get,l=i.cache.set,r=d,d(a)}function d(a){let v=n(a);if(v)return v;let f=Tt(a,i);return l(a,f),f}return function(){return r(kt.apply(null,arguments))}}var y=e=>{let o=i=>i[e]||[];return o.isThemeGetter=!0,o},Ve=/^\[(?:([a-_e-]+):)?(.+)\]$/i,Lt=/^\d+\/\d+$/,Mt=new Set(["px","full","screen"]),Et=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,At=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ht=/^(inset_)?-?((\d+)?\.?(\d+)[a-_e]+|0)_-?((\d+)?\.?(\d+)[a-_e]+|0)/,Bt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,U=e=>Z(e)||Mt.has(e)||Lt.test(e),_=e=>Q(e,"length",$_e),Z=e=>!!e&&!Number.isNaN(Number(e)),he=e=>Q(e,"number",Z),te=e=>!!e&&Number.isInteger(Number(e)),Ft=e=>e.endsWith("%")&&Z(e.slice(0,-1)),m=e=>Ve.test(e),q=e=>Et.test(e),Vt=new Set(["length","size","percentage"]),Gt=e=>Q(e,Vt,Ge),Ot=e=>Q(e,"position",Ge),Wt=new Set(["image","url"]),Ut=e=>Q(e,Wt,qt),jt=e=>Q(e,"",_t),re=()=>!0,Q=(e,o,i)=>{let n=Ve.exec(e);return n?n[1]?typeof o=="string"?n[1]===o:o.has(n[1]):i(n[2]):!1},$_e=e=>zt.test(e)&&!At.test(e),Ge=()=>!1,_t=e=>Ht.test(e),qt=e=>Bt.test(e);var Jt=()=>{let e=y("colors"),o=y("spacing"),i=y("blur"),n=y("brightness"),l=y("borderColor"),r=y("borderRadius"),s=y("borderSpacing"),d=y("borderWidth"),a=y("contrast"),v=y("grayscale"),f=y("hueRotate"),C=y("invert"),I=y("gap"),H=y("gradientColorStops"),A=y("gradientColorStopPositions"),T=y("inset"),x=y("margin"),b=y("opacity"),c=y("padding"),R=y("saturate"),k=y("scale"),L=y("sepia"),Pe=y("skew"),De=y("space"),Te=y("translate"),ge=()=>["auto","contain","none"],fe=()=>["auto","hidden","clip","visible","scroll"],ve=()=>["auto",m,o],w=()=>[m,o],ke=()=>["",U,_],ie=()=>["auto",Z,m],Ie=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ae=()=>["solid","dashed","dotted","double","none"],Le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],be=()=>["start","end","center","between","around","evenly","stretch"],ee=()=>["","0",m],Me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[Z,m];return{cacheSize:500,separator:":",theme:{colors:[re],spacing:[U,_],blur:["none","",q,m],brightness:W(),borderColor:[e],borderRadius:["none","","full",q,m],borderSpacing:w(),borderWidth:ke(),contrast:W(),grayscale:ee(),hueRotate:W(),invert:ee(),gap:w(),gradientColorStops:[e],gradientColorStopPositions:[Ft,_],inset:ve(),margin:ve(),opacity:W(),padding:w(),saturate:W(),scale:W(),sepia:ee(),skew:W(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",m]}],container:["container"],columns:[{columns:[q]}],"break-after":[{"break-after":Me()}],"break-before":[{"break-before":Me()}],"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:[...Ie(),m]}],overflow:[{overflow:fe()}],"overflow-x":[{"overflow-x":fe()}],"overflow-y":[{"overflow-y":fe()}],overscroll:[{overscroll:ge()}],"overscroll-x":[{"overscroll-x":ge()}],"overscroll-y":[{"overscroll-y":ge()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[T]}],"inset-x":[{"inset-x":[T]}],"inset-y":[{"inset-y":[T]}],start:[{start:[T]}],end:[{end:[T]}],top:[{top:[T]}],right:[{right:[T]}],bottom:[{bottom:[T]}],left:[{left:[T]}],visibility:["visible","invisible","collapse"],_e:[{_e:["auto",te,m]}],basis:[{basis:ve()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",m]}],grow:[{grow:ee()}],shrink:[{shrink:ee()}],order:[{order:["first","last","none",te,m]}],"grid-cols":[{"grid-cols":[re]}],"col-start-end":[{col:["auto",{span:["full",te,m]},m]}],"col-start":[{"col-start":ie()}],"col-end":[{"col-end":ie()}],"grid-rows":[{"grid-rows":[re]}],"row-start-end":[{row:["auto",{span:[te,m]},m]}],"row-start":[{"row-start":ie()}],"row-end":[{"row-end":ie()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",m]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",m]}],gap:[{gap:[I]}],"gap-x":[{"gap-x":[I]}],"gap-y":[{"gap-y":[I]}],"justify-content":[{justify:["normal",...be()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...be(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...be(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[c]}],px:[{px:[c]}],py:[{py:[c]}],ps:[{ps:[c]}],pe:[{pe:[c]}],pt:[{pt:[c]}],pr:[{pr:[c]}],pb:[{pb:[c]}],pl:[{pl:[c]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[De]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[De]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",m,o]}],"min-w":[{"min-w":[m,o,"min","max","fit"]}],"max-w":[{"max-w":[m,o,"none","full","min","max","fit","prose",{screen:[q]},q]}],h:[{h:[m,o,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[m,o,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[m,o,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[m,o,"auto","min","max","fit"]}],"font-size":[{text:["base",q,_]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",he]}],"font-family":[{font:[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",m]}],"line-clamp":[{"line-clamp":["none",Z,he]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",U,m]}],"list-image":[{"list-image":["none",m]}],"list-style-type":[{list:["none","disc","decimal",m]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",U,_]}],"underline-offset":[{"underline-offset":["auto",U,m]}],"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",m]}],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",m]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ie(),Ot]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Gt]}],"bg-image":[{bg:["none",{"gradient-to":["_e","tr","r","br","b","bl","l","tl"]},Ut]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[H]}],"gradient-via":[{via:[H]}],"gradient-to":[{to:[H]}],rounded:[{rounded:[r]}],"rounded-s":[{"rounded-s":[r]}],"rounded-e":[{"rounded-e":[r]}],"rounded-_e":[{"rounded-_e":[r]}],"rounded-r":[{"rounded-r":[r]}],"rounded-b":[{"rounded-b":[r]}],"rounded-l":[{"rounded-l":[r]}],"rounded-ss":[{"rounded-ss":[r]}],"rounded-se":[{"rounded-se":[r]}],"rounded-ee":[{"rounded-ee":[r]}],"rounded-es":[{"rounded-es":[r]}],"rounded-tl":[{"rounded-tl":[r]}],"rounded-tr":[{"rounded-tr":[r]}],"rounded-br":[{"rounded-br":[r]}],"rounded-bl":[{"rounded-bl":[r]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-_e":[{"border-_e":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...ae(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:ae()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-_e":[{"border-_e":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...ae()]}],"outline-offset":[{"outline-offset":[U,m]}],"outline-w":[{outline:[U,_]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ke()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[U,_]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",q,jt]}],"shadow-color":[{shadow:[re]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...Le(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Le()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[n]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",q,m]}],grayscale:[{grayscale:[v]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[C]}],saturate:[{saturate:[R]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[R]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"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",m]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",m]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",m]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[te,m]}],"translate-x":[{"translate-x":[Te]}],"translate-y":[{"translate-y":[Te]}],"skew-x":[{"skew-x":[Pe]}],"skew-y":[{"skew-y":[Pe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",m]}],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",m]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":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-pe":[{"scroll-pe":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",m]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[U,_,he]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","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-_e","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-_e":["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-_e","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-_e","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-_e","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-_e","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Oe=It(Jt);function p(...e){return Oe((0,We.clsx)(e))}var Ue=require("@radix-ui/react-slot"),je=require("class-variance-authority"),$e=V(require("react")),_e=require("react/jsx-runtime"),Xt=(0,je.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"}}}),M=$e.forwardRef(({asChild:e=!1,className:o,size:i,variant:n,...l},r)=>(0,_e.jsx)(e?Ue.Slot:"button",{className:p(Xt({className:o,size:i,variant:n})),ref:r,...l}));M.displayName="Button";var qe=V(require("react"));var E=qe.forwardRef(({className:e,type:o,...i},n)=>(0,_e.jsx)("input",{type:o,className:p("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:n,...i}));E.displayName="Input";var Xe=V(require("react")),se=Xe.forwardRef(({className:e,...o},i)=>(0,_e.jsx)("textarea",{className:p("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:i,...o}));se.displayName="Textarea";var u=V(require("@radix-ui/react-select")),X=require("lucide-react"),J=V(require("react")),G=u.Root;var O=u.Value,B=J.forwardRef(({children:e,className:o,...i},n)=>(0,_e.jsxs)(u.Trigger,{className:p("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",o),ref:n,...i,children:[e,(0,_e.jsx)(u.Icon,{asChild:!0,children:(0,_e.jsx)(X.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));B.displayName=u.Trigger.displayName;var Ke=J.forwardRef(({className:e,...o},i)=>(0,_e.jsx)(u.ScrollUpButton,{className:p("flex cursor-default items-center justify-center py-1",e),ref:i,...o,children:(0,_e.jsx)(X.ChevronUp,{className:"h-4 w-4"})}));Ke.displayName=u.ScrollUpButton.displayName;var Ze=J.forwardRef(({className:e,...o},i)=>(0,_e.jsx)(u.ScrollDownButton,{className:p("flex cursor-default items-center justify-center py-1",e),ref:i,...o,children:(0,_e.jsx)(X.ChevronDown,{className:"h-4 w-4"})}));Ze.displayName=u.ScrollDownButton.displayName;var F=J.forwardRef(({children:e,className:o,position:i="popper",...n},l)=>(0,_e.jsx)(u.Portal,{children:(0,_e.jsxs)(u.Content,{className:p("relative _e-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card 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",i==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",o),position:i,ref:l,...n,children:[(0,_e.jsx)(Ke,{}),(0,_e.jsx)(u.Viewport,{className:p("p-1",i==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,_e.jsx)(Ze,{})]})}));F.displayName=u.Content.displayName;var Yt=J.forwardRef(({className:e,...o},i)=>(0,_e.jsx)(u.Label,{className:p("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:i,...o}));Yt.displayName=u.Label.displayName;var g=J.forwardRef(({children:e,className:o,...i},n)=>(0,_e.jsxs)(u.Item,{className:p("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),ref:n,...i,children:[(0,_e.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,_e.jsx)(u.ItemIndicator,{children:(0,_e.jsx)(X.Check,{className:"h-4 w-4"})})}),(0,_e.jsx)(u.ItemText,{children:e})]}));g.displayName=u.Item.displayName;var Kt=J.forwardRef(({className:e,...o},i)=>(0,_e.jsx)(u.Separator,{className:p("-mx-1 my-1 h-px bg-muted",e),ref:i,...o}));Kt.displayName=u.Separator.displayName;var Y=V(require("react"));var j=Y.forwardRef(({className:e,...o},i)=>(0,_e.jsx)("div",{ref:i,className:p("rounded-xl border bg-card text-card-foreground shadow",e),...o}));j.displayName="Card";var Zt=Y.forwardRef(({className:e,...o},i)=>(0,_e.jsx)("div",{ref:i,className:p("flex flex-col space-y-1.5 p-6",e),...o}));Zt.displayName="CardHeader";var Qt=Y.forwardRef(({className:e,...o},i)=>(0,_e.jsx)("div",{ref:i,className:p("font-semibold leading-none tracking-tight",e),...o}));Qt.displayName="CardTitle";var er=Y.forwardRef(({className:e,...o},i)=>(0,_e.jsx)("div",{ref:i,className:p("text-sm text-muted-foreground",e),...o}));er.displayName="CardDescription";var we=Y.forwardRef(({className:e,...o},i)=>(0,_e.jsx)("div",{ref:i,className:p("p-6 pt-0",e),...o}));we.displayName="CardContent";var tr=Y.forwardRef(({className:e,...o},i)=>(0,_e.jsx)("div",{ref:i,className:p("flex items-center p-6 pt-0",e),...o}));tr.displayName="CardFooter";var rr=(0,je.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 le({className:e,variant:o,...i}){return(0,_e.jsx)("div",{className:p(rr({variant:o}),e),...i})}var oe=V(require("react")),N=V(require("@radix-ui/react-dialog"));var Ce=N.Root,rt=N.Trigger,or=N.Portal;var ot=oe.forwardRef(({className:e,...o},i)=>(0,_e.jsx)(N.Overlay,{ref:i,className:p("fixed inset-0 _e-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),...o}));ot.displayName=N.Overlay.displayName;var de=oe.forwardRef(({className:e,children:o,...i},n)=>(0,_e.jsxs)(or,{children:[(0,_e.jsx)(ot,{}),(0,_e.jsxs)(N.Content,{ref:n,className:p("fixed left-[50%] top-[50%] _e-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-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),...i,children:[o,(0,_e.jsxs)(N.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,_e.jsx)(X.X,{className:"h-4 w-4"}),(0,_e.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));de.displayName=N.Content.displayName;var ce=({className:e,...o})=>(0,_e.jsx)("div",{className:p("flex flex-col space-y-1.5 text-center sm:text-left",e),...o});ce.displayName="DialogHeader";var ir=({className:e,...o})=>(0,_e.jsx)("div",{className:p("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...o});ir.displayName="DialogFooter";var me=oe.forwardRef(({className:e,...o},i)=>(0,_e.jsx)(N.Title,{ref:i,className:p("text-lg font-semibold leading-none tracking-tight",e),...o}));me.displayName=N.Title.displayName;var ar=oe.forwardRef(({className:e,...o},i)=>(0,_e.jsx)(N.Description,{ref:i,className:p("text-sm text-muted-foreground",e),...o}));ar.displayName=N.Description.displayName;var it=V(require("react")),Re=V(require("@radix-ui/react-label"));var nr=(0,je.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),h=it.forwardRef(({className:e,...o},i)=>(0,_e.jsx)(Re.Root,{ref:i,className:p(nr(),e),...o}));h.displayName=Re.Root.displayName;var lt=require("framer-motion");function st(e,o){let[i,n]=(0,$.useState)(()=>{if(typeof window>"u")return o;try{let r=window.localStorage.getItem(e);return r?JSON.parse(r):o}catch{return o}}),l=r=>{try{n(r),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(r))}catch{}};return(0,$.useEffect)(()=>{l(i)},[]),[i,l]}var pe=require("react-icons/fa");function dt({title:e,description:o,badge:i,primaryAction:n,secondaryAction:l,gradient:r,children:s,className:d}){let[a,v]=st(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!l&&!o),f=!l&&!o||a;return(0,_e.jsxs)(lt.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${r} p-8 text-white ${d||""}`,children:[(0,_e.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,_e.jsxs)("div",{className:"flex items-center gap-3",children:[i&&(0,_e.jsx)(le,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:i}),(0,_e.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,_e.jsxs)("div",{className:"flex items-center gap-3",children:[f&&n&&(0,_e.jsx)(M,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:n.onClick,children:n.label}),(l||o)&&(0,_e.jsx)("button",{"aria-label":a?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>v(!a),style:{lineHeight:0},children:a?(0,_e.jsx)(pe.FaChevronDown,{size:22}):(0,_e.jsx)(pe.FaChevronUp,{size:22})})]})]}),!f&&(0,_e.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,_e.jsxs)("div",{className:"space-y-4",children:[(0,_e.jsx)("p",{className:"max-w-[600px] text-white/80",children:o}),(0,_e.jsxs)("div",{className:"flex flex-wrap gap-3",children:[n&&(0,_e.jsx)(M,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:n.onClick,children:n.label}),l&&(0,_e.jsx)(M,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:l.onClick,children:l.label})]})]}),s&&(0,_e.jsx)("div",{className:"hidden lg:block",children:s})]})]})}var sr=e=>{switch(e){case"high":return"\u{1F534}";case"medium":return"\u{1F7E1}";case"low":return"\u{1F7E2}";default:return"\u26AA"}},lr=e=>e.toLocaleDateString("en-US",{weekday:"short",year:"numeric",month:"short",day:"numeric"}),dr=e=>{let[o,i]=e.split(":"),n=new Date;return n.setHours(parseInt(o),parseInt(i)),n.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0})},Se=(e,o)=>{let i=new Date,n=new Date(e);if(o){let[l,r]=o.split(":");n.setHours(parseInt(l),parseInt(r))}return n<i},Ne=e=>{let o=new Date;return e.toDateString()===o.toDateString()},cr=e=>{let o=new Date;return o.setDate(o.getDate()+1),e.toDateString()===o.toDateString()},mr=({colleagues:e,onAddReminder:o,trigger:i})=>{let[n,l]=(0,$.useState)(!1),[r,s]=(0,$.useState)({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""});return(0,_e.jsxs)(Ce,{open:n,onOpenChange:l,children:[(0,_e.jsx)(rt,{asChild:!0,children:i}),(0,_e.jsxs)(de,{className:"max-w-2xl",children:[(0,_e.jsx)(ce,{children:(0,_e.jsx)(me,{children:"Add New Reminder"})}),(0,_e.jsxs)("form",{onSubmit:a=>{a.preventDefault();let v=e.find(C=>C.id===r.colleagueId);if(!v)return;let f={title:r.title,description:r.description,dueDate:new Date(r.dueDate),dueTime:r.dueTime||void 0,colleague:v,isCompleted:!1,isRecurring:r.isRecurring,recurrencePattern:r.isRecurring?r.recurrencePattern:void 0,recurrenceInterval:r.isRecurring?r.recurrenceInterval:void 0,priority:r.priority,reminderEnabled:r.reminderEnabled,reminderMinutes:r.reminderEnabled?r.reminderMinutes:void 0,tags:r.tags?r.tags.split(",").map(C=>C.trim()):void 0};o(f),l(!1),s({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""})},className:"space-y-4",children:[(0,_e.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)(h,{htmlFor:"title",children:"Title"}),(0,_e.jsx)(E,{id:"title",value:r.title,onChange:a=>s({...r,title:a.target.value}),placeholder:"Enter reminder title",required:!0})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(h,{htmlFor:"priority",children:"Priority"}),(0,_e.jsxs)(G,{value:r.priority,onValueChange:a=>s({...r,priority:a}),children:[(0,_e.jsx)(B,{children:(0,_e.jsx)(O,{})}),(0,_e.jsxs)(F,{children:[(0,_e.jsx)(g,{value:"low",children:"\u{1F7E2} Low"}),(0,_e.jsx)(g,{value:"medium",children:"\u{1F7E1} Medium"}),(0,_e.jsx)(g,{value:"high",children:"\u{1F534} High"})]})]})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(h,{htmlFor:"description",children:"Description"}),(0,_e.jsx)(se,{id:"description",value:r.description,onChange:a=>s({...r,description:a.target.value}),placeholder:"Enter reminder description",rows:3})]}),(0,_e.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)(h,{htmlFor:"dueDate",children:"Due Date"}),(0,_e.jsx)(E,{id:"dueDate",type:"date",value:r.dueDate,onChange:a=>s({...r,dueDate:a.target.value}),required:!0})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(h,{htmlFor:"dueTime",children:"Due Time (optional)"}),(0,_e.jsx)(E,{id:"dueTime",type:"time",value:r.dueTime,onChange:a=>s({...r,dueTime:a.target.value})})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(h,{htmlFor:"colleague",children:"Assigned Colleague"}),(0,_e.jsxs)(G,{value:r.colleagueId,onValueChange:a=>s({...r,colleagueId:a}),children:[(0,_e.jsx)(B,{children:(0,_e.jsx)(O,{placeholder:"Select a digital colleague"})}),(0,_e.jsx)(F,{children:e.map(a=>(0,_e.jsx)(g,{value:a.id,children:a.name},a.id))})]})]}),(0,_e.jsxs)("div",{className:"space-y-2",children:[(0,_e.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,_e.jsx)("input",{type:"checkbox",id:"isRecurring",checked:r.isRecurring,onChange:a=>s({...r,isRecurring:a.target.checked}),className:"rounded border-border"}),(0,_e.jsx)(h,{htmlFor:"isRecurring",children:"Make this a recurring reminder"})]}),r.isRecurring&&(0,_e.jsxs)("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)(h,{htmlFor:"recurrencePattern",children:"Frequency"}),(0,_e.jsxs)(G,{value:r.recurrencePattern,onValueChange:a=>s({...r,recurrencePattern:a}),children:[(0,_e.jsx)(B,{children:(0,_e.jsx)(O,{})}),(0,_e.jsxs)(F,{children:[(0,_e.jsx)(g,{value:"daily",children:"Daily"}),(0,_e.jsx)(g,{value:"weekly",children:"Weekly"}),(0,_e.jsx)(g,{value:"monthly",children:"Monthly"}),(0,_e.jsx)(g,{value:"yearly",children:"Yearly"})]})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(h,{htmlFor:"recurrenceInterval",children:"Every"}),(0,_e.jsx)(E,{id:"recurrenceInterval",type:"number",min:"1",value:r.recurrenceInterval,onChange:a=>s({...r,recurrenceInterval:parseInt(a.target.value)})})]})]})]}),(0,_e.jsxs)("div",{className:"space-y-2",children:[(0,_e.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,_e.jsx)("input",{type:"checkbox",id:"reminderEnabled",checked:r.reminderEnabled,onChange:a=>s({...r,reminderEnabled:a.target.checked}),className:"rounded border-border"}),(0,_e.jsx)(h,{htmlFor:"reminderEnabled",children:"Enable reminder notifications"})]}),r.reminderEnabled&&(0,_e.jsxs)("div",{className:"pl-6",children:[(0,_e.jsx)(h,{htmlFor:"reminderMinutes",children:"Remind me"}),(0,_e.jsxs)(G,{value:r.reminderMinutes.toString(),onValueChange:a=>s({...r,reminderMinutes:parseInt(a)}),children:[(0,_e.jsx)(B,{children:(0,_e.jsx)(O,{})}),(0,_e.jsxs)(F,{children:[(0,_e.jsx)(g,{value:"5",children:"5 minutes before"}),(0,_e.jsx)(g,{value:"15",children:"15 minutes before"}),(0,_e.jsx)(g,{value:"30",children:"30 minutes before"}),(0,_e.jsx)(g,{value:"60",children:"1 hour before"}),(0,_e.jsx)(g,{value:"1440",children:"1 day before"})]})]})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(h,{htmlFor:"tags",children:"Tags (comma-separated)"}),(0,_e.jsx)(E,{id:"tags",value:r.tags,onChange:a=>s({...r,tags:a.target.value}),placeholder:"e.g., urgent, meeting, follow-up"})]}),(0,_e.jsxs)("div",{className:"flex justify-end space-x-2",children:[(0,_e.jsx)(M,{type:"button",variant:"outline",onClick:()=>l(!1),children:"Cancel"}),(0,_e.jsx)(M,{type:"submit",children:"Add Reminder"})]})]})]})]})},ur=({reminder:e,colleagues:o,onUpdateReminder:i,open:n,onClose:l})=>{let[r,s]=(0,$.useState)({title:e.title,description:e.description,dueDate:e.dueDate.toISOString().split("T")[0],dueTime:e.dueTime||"",colleagueId:e.colleague.id,priority:e.priority,isRecurring:e.isRecurring,recurrencePattern:e.recurrencePattern||"weekly",recurrenceInterval:e.recurrenceInterval||1,reminderEnabled:e.reminderEnabled,reminderMinutes:e.reminderMinutes||15,tags:e.tags?.join(", ")||""});return(0,_e.jsx)(Ce,{open:n,onOpenChange:l,children:(0,_e.jsxs)(de,{className:"max-w-2xl",children:[(0,_e.jsx)(ce,{children:(0,_e.jsx)(me,{children:"Edit Reminder"})}),(0,_e.jsxs)("form",{onSubmit:a=>{a.preventDefault();let v=o.find(C=>C.id===r.colleagueId);if(!v)return;let f={title:r.title,description:r.description,dueDate:new Date(r.dueDate),dueTime:r.dueTime||void 0,colleague:v,isRecurring:r.isRecurring,recurrencePattern:r.isRecurring?r.recurrencePattern:void 0,recurrenceInterval:r.isRecurring?r.recurrenceInterval:void 0,priority:r.priority,reminderEnabled:r.reminderEnabled,reminderMinutes:r.reminderEnabled?r.reminderMinutes:void 0,tags:r.tags?r.tags.split(",").map(C=>C.trim()):void 0};i(e.id,f),l()},className:"space-y-4",children:[(0,_e.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)(h,{htmlFor:"edit-title",children:"Title"}),(0,_e.jsx)(E,{id:"edit-title",value:r.title,onChange:a=>s({...r,title:a.target.value}),placeholder:"Enter reminder title",required:!0})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(h,{htmlFor:"edit-priority",children:"Priority"}),(0,_e.jsxs)(G,{value:r.priority,onValueChange:a=>s({...r,priority:a}),children:[(0,_e.jsx)(B,{children:(0,_e.jsx)(O,{})}),(0,_e.jsxs)(F,{children:[(0,_e.jsx)(g,{value:"low",children:"\u{1F7E2} Low"}),(0,_e.jsx)(g,{value:"medium",children:"\u{1F7E1} Medium"}),(0,_e.jsx)(g,{value:"high",children:"\u{1F534} High"})]})]})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(h,{htmlFor:"edit-description",children:"Description"}),(0,_e.jsx)(se,{id:"edit-description",value:r.description,onChange:a=>s({...r,description:a.target.value}),placeholder:"Enter reminder description",rows:3})]}),(0,_e.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)(h,{htmlFor:"edit-dueDate",children:"Due Date"}),(0,_e.jsx)(E,{id:"edit-dueDate",type:"date",value:r.dueDate,onChange:a=>s({...r,dueDate:a.target.value}),required:!0})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(h,{htmlFor:"edit-dueTime",children:"Due Time (optional)"}),(0,_e.jsx)(E,{id:"edit-dueTime",type:"time",value:r.dueTime,onChange:a=>s({...r,dueTime:a.target.value})})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(h,{htmlFor:"edit-colleague",children:"Assigned Colleague"}),(0,_e.jsxs)(G,{value:r.colleagueId,onValueChange:a=>s({...r,colleagueId:a}),children:[(0,_e.jsx)(B,{children:(0,_e.jsx)(O,{placeholder:"Select a digital colleague"})}),(0,_e.jsx)(F,{children:o.map(a=>(0,_e.jsx)(g,{value:a.id,children:a.name},a.id))})]})]}),(0,_e.jsxs)("div",{className:"space-y-2",children:[(0,_e.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,_e.jsx)("input",{type:"checkbox",id:"edit-isRecurring",checked:r.isRecurring,onChange:a=>s({...r,isRecurring:a.target.checked}),className:"rounded border-border"}),(0,_e.jsx)(h,{htmlFor:"edit-isRecurring",children:"Make this a recurring reminder"})]}),r.isRecurring&&(0,_e.jsxs)("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)(h,{htmlFor:"edit-recurrencePattern",children:"Frequency"}),(0,_e.jsxs)(G,{value:r.recurrencePattern,onValueChange:a=>s({...r,recurrencePattern:a}),children:[(0,_e.jsx)(B,{children:(0,_e.jsx)(O,{})}),(0,_e.jsxs)(F,{children:[(0,_e.jsx)(g,{value:"daily",children:"Daily"}),(0,_e.jsx)(g,{value:"weekly",children:"Weekly"}),(0,_e.jsx)(g,{value:"monthly",children:"Monthly"}),(0,_e.jsx)(g,{value:"yearly",children:"Yearly"})]})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(h,{htmlFor:"edit-recurrenceInterval",children:"Every"}),(0,_e.jsx)(E,{id:"edit-recurrenceInterval",type:"number",min:"1",value:r.recurrenceInterval,onChange:a=>s({...r,recurrenceInterval:parseInt(a.target.value)})})]})]})]}),(0,_e.jsxs)("div",{className:"space-y-2",children:[(0,_e.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,_e.jsx)("input",{type:"checkbox",id:"edit-reminderEnabled",checked:r.reminderEnabled,onChange:a=>s({...r,reminderEnabled:a.target.checked}),className:"rounded border-border"}),(0,_e.jsx)(h,{htmlFor:"edit-reminderEnabled",children:"Enable reminder notifications"})]}),r.reminderEnabled&&(0,_e.jsxs)("div",{className:"pl-6",children:[(0,_e.jsx)(h,{htmlFor:"edit-reminderMinutes",children:"Remind me"}),(0,_e.jsxs)(G,{value:r.reminderMinutes.toString(),onValueChange:a=>s({...r,reminderMinutes:parseInt(a)}),children:[(0,_e.jsx)(B,{children:(0,_e.jsx)(O,{})}),(0,_e.jsxs)(F,{children:[(0,_e.jsx)(g,{value:"5",children:"5 minutes before"}),(0,_e.jsx)(g,{value:"15",children:"15 minutes before"}),(0,_e.jsx)(g,{value:"30",children:"30 minutes before"}),(0,_e.jsx)(g,{value:"60",children:"1 hour before"}),(0,_e.jsx)(g,{value:"1440",children:"1 day before"})]})]})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(h,{htmlFor:"edit-tags",children:"Tags (comma-separated)"}),(0,_e.jsx)(E,{id:"edit-tags",value:r.tags,onChange:a=>s({...r,tags:a.target.value}),placeholder:"e.g., urgent, meeting, follow-up"})]}),(0,_e.jsxs)("div",{className:"flex justify-end space-x-2",children:[(0,_e.jsx)(M,{type:"button",variant:"outline",onClick:l,children:"Cancel"}),(0,_e.jsx)(M,{type:"submit",children:"Save Changes"})]})]})]})})},pr=({reminder:e,colleagues:o,onUpdateReminder:i,onDeleteReminder:n})=>{let[l,r]=(0,$.useState)(!1),s=Se(e.dueDate,e.dueTime),d=Ne(e.dueDate),a=cr(e.dueDate),v=()=>{i(e.id,{isCompleted:!e.isCompleted,completedAt:e.isCompleted?void 0:new Date})},f=()=>d?"Today":a?"Tomorrow":s&&!e.isCompleted?"Overdue":lr(e.dueDate);return(0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)(ur,{reminder:e,colleagues:o,onUpdateReminder:i,open:l,onClose:()=>r(!1)}),(0,_e.jsx)(j,{className:`transition-all duration-200 ${e.isCompleted?"opacity-60":""} ${s&&!e.isCompleted?"border-destructive/50 bg-destructive/5":""}`,children:(0,_e.jsx)(we,{className:"p-4",children:(0,_e.jsxs)("div",{className:"flex items-start justify-between",children:[(0,_e.jsxs)("div",{className:"flex items-start space-x-3 flex-1",children:[(0,_e.jsx)("button",{onClick:v,className:"mt-1 text-primary hover:text-primary/80",children:e.isCompleted?(0,_e.jsx)(X.CheckCircle,{className:"h-5 w-5"}):(0,_e.jsx)(X.Circle,{className:"h-5 w-5"})}),(0,_e.jsxs)("div",{className:"flex-1",children:[(0,_e.jsxs)("div",{className:"flex items-center space-x-2 mb-1",children:[(0,_e.jsx)("h3",{className:`font-semibold ${e.isCompleted?"line-through text-muted-foreground":""}`,children:e.title}),(0,_e.jsx)("span",{className:"text-sm",children:sr(e.priority)}),e.isRecurring&&(0,_e.jsx)(X.Repeat,{className:"h-4 w-4 text-primary"}),e.reminderEnabled&&(0,_e.jsx)(X.Bell,{className:"h-4 w-4 text-success"})]}),(0,_e.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:e.description}),(0,_e.jsxs)("div",{className:"flex items-center space-x-4 text-sm text-muted-foreground",children:[(0,_e.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,_e.jsx)(X.Calendar,{className:"h-4 w-4"}),(0,_e.jsx)("span",{className:s&&!e.isCompleted?"text-destructive font-medium":"",children:f()})]}),e.dueTime&&(0,_e.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,_e.jsx)(X.Clock,{className:"h-4 w-4"}),(0,_e.jsx)("span",{children:dr(e.dueTime)})]}),(0,_e.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,_e.jsx)(X.User,{className:"h-4 w-4"}),(0,_e.jsx)("span",{children:e.colleague.name})]})]}),e.tags&&e.tags.length>0&&(0,_e.jsx)("div",{className:"flex flex-wrap gap-1 mt-2",children:e.tags.map((C,I)=>(0,_e.jsx)(le,{variant:"secondary",className:"text-xs",children:C},I))})]})]}),(0,_e.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,_e.jsx)(M,{variant:"ghost",size:"sm",onClick:()=>r(!0),className:"h-8 w-8 p-0",children:(0,_e.jsx)(X.Edit2,{className:"h-4 w-4"})}),(0,_e.jsx)(M,{variant:"ghost",size:"sm",onClick:()=>n(e.id),className:"h-8 w-8 p-0 text-destructive hover:text-destructive/80",children:(0,_e.jsx)(X.Trash2,{className:"h-4 w-4"})})]})]})})})]})},ct=({initialReminders:e=[],initialColleagues:o=[],onAddReminder:i,onUpdateReminder:n,onDeleteReminder:l})=>{let[r,s]=(0,$.useState)(e),[d]=(0,$.useState)(o),[a,v]=(0,$.useState)("all"),[f,C]=(0,$.useState)(""),I=c=>{let R={...c,id:Date.now().toString(),createdAt:new Date};s(k=>[...k,R]),i?.(c)},H=(c,R)=>{s(k=>k.map(L=>L.id===c?{...L,...R}:L)),n?.(c,R)},A=c=>{s(R=>R.filter(k=>k.id!==c)),l?.(c)},x=r.filter(c=>{if(f){let R=f.toLowerCase();if(!(c.title.toLowerCase().includes(R)||c.description.toLowerCase().includes(R)||c.colleague.name.toLowerCase().includes(R)||c.tags?.some(L=>L.toLowerCase().includes(R))))return!1}switch(a){case"pending":return!c.isCompleted;case"completed":return c.isCompleted;case"overdue":return!c.isCompleted&&Se(c.dueDate,c.dueTime);case"today":return Ne(c.dueDate);default:return!0}}).sort((c,R)=>{if(c.isCompleted&&!R.isCompleted)return 1;if(!c.isCompleted&&R.isCompleted)return-1;let k={high:3,medium:2,low:1},L=k[R.priority]-k[c.priority];return L!==0?L:c.dueDate.getTime()-R.dueDate.getTime()}),b={total:r.length,pending:r.filter(c=>!c.isCompleted).length,completed:r.filter(c=>c.isCompleted).length,overdue:r.filter(c=>!c.isCompleted&&Se(c.dueDate,c.dueTime)).length,today:r.filter(c=>Ne(c.dueDate)).length};return(0,_e.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,_e.jsx)(dt,{title:"Task Reminders",description:"Manage reminders and stay on top of important tasks and deadlines.",gradient:"bg-gradient-to-r from-emerald-600 via-teal-600 to-cyan-600",primaryAction:{label:"Add reminder",onClick:()=>{let c={title:"New Reminder",description:"Don'_e forget to complete this task",dueDate:new Date,dueTime:"09:00",colleague:d[0]||{id:"1",name:"Default Colleague",department:"General",role:"Team Member"},isCompleted:!1,isRecurring:!1,priority:"medium",reminderEnabled:!0,reminderMinutes:15,tags:["reminder"]};I(c)}}}),(0,_e.jsx)("div",{className:"h-full bg-background",children:(0,_e.jsxs)("div",{className:"p-6",children:[(0,_e.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Task Reminders"}),(0,_e.jsx)("p",{className:"text-muted-foreground",children:"Manage your digital colleague task reminders"})]}),(0,_e.jsx)(mr,{colleagues:d,onAddReminder:I,trigger:(0,_e.jsxs)(M,{className:"flex items-center space-x-2",children:[(0,_e.jsx)(X.Plus,{className:"h-4 w-4"}),(0,_e.jsx)("span",{children:"Add Reminder"})]})})]}),(0,_e.jsxs)("div",{className:"grid grid-cols-5 gap-4 mb-6",children:[(0,_e.jsxs)(j,{className:"p-4",children:[(0,_e.jsx)("div",{className:"text-2xl font-bold text-foreground",children:b.total}),(0,_e.jsx)("div",{className:"text-sm text-muted-foreground",children:"Total"})]}),(0,_e.jsxs)(j,{className:"p-4",children:[(0,_e.jsx)("div",{className:"text-2xl font-bold text-primary",children:b.pending}),(0,_e.jsx)("div",{className:"text-sm text-muted-foreground",children:"Pending"})]}),(0,_e.jsxs)(j,{className:"p-4",children:[(0,_e.jsx)("div",{className:"text-2xl font-bold text-success",children:b.completed}),(0,_e.jsx)("div",{className:"text-sm text-muted-foreground",children:"Completed"})]}),(0,_e.jsxs)(j,{className:"p-4",children:[(0,_e.jsx)("div",{className:"text-2xl font-bold text-destructive",children:b.overdue}),(0,_e.jsx)("div",{className:"text-sm text-muted-foreground",children:"Overdue"})]}),(0,_e.jsxs)(j,{className:"p-4",children:[(0,_e.jsx)("div",{className:"text-2xl font-bold text-warning",children:b.today}),(0,_e.jsx)("div",{className:"text-sm text-muted-foreground",children:"Today"})]})]}),(0,_e.jsxs)("div",{className:"flex items-center space-x-4 mb-6",children:[(0,_e.jsx)("div",{className:"flex-1",children:(0,_e.jsx)(E,{placeholder:"Search reminders...",value:f,onChange:c=>C(c.target.value),className:"max-w-md"})}),(0,_e.jsxs)(G,{value:a,onValueChange:c=>v(c),children:[(0,_e.jsx)(B,{className:"w-40",children:(0,_e.jsx)(O,{})}),(0,_e.jsxs)(F,{children:[(0,_e.jsxs)(g,{value:"all",children:["All (",b.total,")"]}),(0,_e.jsxs)(g,{value:"pending",children:["Pending (",b.pending,")"]}),(0,_e.jsxs)(g,{value:"completed",children:["Completed (",b.completed,")"]}),(0,_e.jsxs)(g,{value:"overdue",children:["Overdue (",b.overdue,")"]}),(0,_e.jsxs)(g,{value:"today",children:["Today (",b.today,")"]})]})]})]}),(0,_e.jsx)("div",{className:"space-y-4",children:x.length===0?(0,_e.jsxs)(j,{className:"p-8 text-center",children:[(0,_e.jsx)("div",{className:"text-muted-foreground",children:f||a!=="all"?"No reminders match your filters":"No reminders yet"}),!f&&a==="all"&&(0,_e.jsx)("p",{className:"text-sm text-muted-foreground/60 mt-2",children:"Create your first reminder to get started"})]}):x.map(c=>(0,_e.jsx)(pr,{reminder:c,colleagues:d,onUpdateReminder:H,onDeleteReminder:A},c.id))})]})})]})},gr=ct;0&&(module.exports={TasksView});
|
|
5
|
+
"use strict";var ct=Object.create;var de=Object.defineProperty;var mt=Object.getOwnPropertyDescriptor;var ut=Object.getOwnPropertyNames;var pt=Object.getPrototypeOf,gt=Object.prototype.hasOwnProperty;var ft=(e,r)=>{for(var o in r)de(e,o,{get:r[o],enumerable:!0})},Ee=(e,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of ut(r))!gt.call(e,a)&&a!==o&&de(e,a,{get:()=>r[a],enumerable:!(n=mt(r,a))||n.enumerable});return e};var V=(e,r,o)=>(o=e!=null?ct(pt(e)):{},Ee(r||!e||!e.__esModule?de(o,"default",{value:e,enumerable:!0}):o,e)),vt=e=>Ee(de({},"__esModule",{value:!0}),e);var gr={};ft(gr,{TasksView:()=>dt,default:()=>pr});module.exports=vt(gr);var $=require("react");var We=require("clsx");var Re="-",bt=e=>{let r=yt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{let l=s.split(Re);return l[0]===""&&l.length!==1&&l.shift(),Be(l,r)||ht(s)},getConflictingClassGroupIds:(s,l)=>{let c=o[s]||[];return l&&n[s]?[...c,...n[s]]:c}}},Be=(e,r)=>{if(e.length===0)return r.classGroupId;let o=e[0],n=r.nextPart.get(o),a=n?Be(e.slice(1),n):void 0;if(a)return a;if(r.validators.length===0)return;let i=e.join(Re);return r.validators.find(({validator:s})=>s(i))?.classGroupId},ze=/^\[(.+)\]$/,ht=e=>{if(ze.test(e)){let r=ze.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},yt=e=>{let{theme:r,prefix:o}=e,n={nextPart:new Map,validators:[]};return wt(Object.entries(e.classGroups),o).forEach(([i,s])=>{Ce(s,n,i,r)}),n},Ce=(e,r,o,n)=>{e.forEach(a=>{if(typeof a=="string"){let i=a===""?r:Ae(r,a);i.classGroupId=o;return}if(typeof a=="function"){if(xt(a)){Ce(a(n),r,o,n);return}r.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([i,s])=>{Ce(s,Ae(r,i),o,n)})})},Ae=(e,r)=>{let o=e;return r.split(Re).forEach(n=>{o.nextPart.has(n)||o.nextPart.set(n,{nextPart:new Map,validators:[]}),o=o.nextPart.get(n)}),o},xt=e=>e.isThemeGetter,wt=(e,r)=>r?e.map(([o,n])=>{let a=n.map(i=>typeof i=="string"?r+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,l])=>[r+s,l])):i);return[o,a]}):e,Ct=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,n=new Map,a=(i,s)=>{o.set(i,s),r++,r>e&&(r=0,n=o,o=new Map)};return{get(i){let s=o.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return a(i,s),s},set(i,s){o.has(i)?o.set(i,s):a(i,s)}}},He="!",Rt=e=>{let{separator:r,experimentalParseClassName:o}=e,n=r.length===1,a=r[0],i=r.length,s=l=>{let c=[],m=0,f=0,y;for(let x=0;x<l.length;x++){let T=l[x];if(m===0){if(T===a&&(n||l.slice(x,x+i)===r)){c.push(l.slice(f,x)),f=x+i;continue}if(T==="/"){y=x;continue}}T==="["?m++:T==="]"&&m--}let I=c.length===0?l:l.substring(f),M=I.startsWith(He),A=M?I.substring(1):I,S=y&&y>f?y-f:void 0;return{modifiers:c,hasImportantModifier:M,baseClassName:A,maybePostfixModifierPosition:S}};return o?l=>o({className:l,parseClassName:s}):s},Nt=e=>{if(e.length<=1)return e;let r=[],o=[];return e.forEach(n=>{n[0]==="["?(r.push(...o.sort(),n),o=[]):o.push(n)}),r.push(...o.sort()),r},St=e=>({cache:Ct(e.cacheSize),parseClassName:Rt(e),...bt(e)}),Pt=/\s+/,Dt=(e,r)=>{let{parseClassName:o,getClassGroupId:n,getConflictingClassGroupIds:a}=r,i=[],s=e.trim().split(Pt),l="";for(let c=s.length-1;c>=0;c-=1){let m=s[c],{modifiers:f,hasImportantModifier:y,baseClassName:I,maybePostfixModifierPosition:M}=o(m),A=!!M,S=n(A?I.substring(0,M):I);if(!S){if(!A){l=m+(l.length>0?" "+l:l);continue}if(S=n(I),!S){l=m+(l.length>0?" "+l:l);continue}A=!1}let x=Nt(f).join(":"),T=y?x+He:x,L=T+S;if(i.includes(L))continue;i.push(L);let k=a(S,A);for(let _=0;_<k.length;++_){let d=k[_];i.push(T+d)}l=m+(l.length>0?" "+l:l)}return l};function Tt(){let e=0,r,o,n="";for(;e<arguments.length;)(r=arguments[e++])&&(o=Fe(r))&&(n&&(n+=" "),n+=o);return n}var Fe=e=>{if(typeof e=="string")return e;let r,o="";for(let n=0;n<e.length;n++)e[n]&&(r=Fe(e[n]))&&(o&&(o+=" "),o+=r);return o};function kt(e,...r){let o,n,a,i=s;function s(c){let m=r.reduce((f,y)=>y(f),e());return o=St(m),n=o.cache.get,a=o.cache.set,i=l,l(c)}function l(c){let m=n(c);if(m)return m;let f=Dt(c,o);return a(c,f),f}return function(){return i(Tt.apply(null,arguments))}}var v=e=>{let r=o=>o[e]||[];return r.isThemeGetter=!0,r},Ve=/^\[(?:([a-_e-]+):)?(.+)\]$/i,It=/^\d+\/\d+$/,Lt=new Set(["px","full","screen"]),Mt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Et=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,zt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,At=/^(inset_)?-?((\d+)?\.?(\d+)[a-_e]+|0)_-?((\d+)?\.?(\d+)[a-_e]+|0)/,Bt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,O=e=>te(e)||Lt.has(e)||It.test(e),q=e=>re(e,"length",jt),te=e=>!!e&&!Number.isNaN(Number(e)),we=e=>re(e,"number",te),ie=e=>!!e&&Number.isInteger(Number(e)),Ht=e=>e.endsWith("%")&&te(e.slice(0,-1)),u=e=>Ve.test(e),J=e=>Mt.test(e),Ft=new Set(["length","size","percentage"]),Vt=e=>re(e,Ft,Ge),Gt=e=>re(e,"position",Ge),Ot=new Set(["image","url"]),Wt=e=>re(e,Ot,_t),Ut=e=>re(e,"",$_e),ae=()=>!0,re=(e,r,o)=>{let n=Ve.exec(e);return n?n[1]?typeof r=="string"?n[1]===r:r.has(n[1]):o(n[2]):!1},jt=e=>Et.test(e)&&!zt.test(e),Ge=()=>!1,$_e=e=>At.test(e),_t=e=>Bt.test(e);var qt=()=>{let e=v("colors"),r=v("spacing"),o=v("blur"),n=v("brightness"),a=v("borderColor"),i=v("borderRadius"),s=v("borderSpacing"),l=v("borderWidth"),c=v("contrast"),m=v("grayscale"),f=v("hueRotate"),y=v("invert"),I=v("gap"),M=v("gradientColorStops"),A=v("gradientColorStopPositions"),S=v("inset"),x=v("margin"),T=v("opacity"),L=v("padding"),k=v("saturate"),_=v("scale"),d=v("sepia"),R=v("skew"),B=v("space"),F=v("translate"),be=()=>["auto","contain","none"],he=()=>["auto","hidden","clip","visible","scroll"],ye=()=>["auto",u,r],h=()=>[u,r],ke=()=>["",O,q],se=()=>["auto",te,u],Ie=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],le=()=>["solid","dashed","dotted","double","none"],Le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xe=()=>["start","end","center","between","around","evenly","stretch"],oe=()=>["","0",u],Me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>[te,u];return{cacheSize:500,separator:":",theme:{colors:[ae],spacing:[O,q],blur:["none","",J,u],brightness:G(),borderColor:[e],borderRadius:["none","","full",J,u],borderSpacing:h(),borderWidth:ke(),contrast:G(),grayscale:oe(),hueRotate:G(),invert:oe(),gap:h(),gradientColorStops:[e],gradientColorStopPositions:[Ht,q],inset:ye(),margin:ye(),opacity:G(),padding:h(),saturate:G(),scale:G(),sepia:oe(),skew:G(),space:h(),translate:h()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[J]}],"break-after":[{"break-after":Me()}],"break-before":[{"break-before":Me()}],"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:[...Ie(),u]}],overflow:[{overflow:he()}],"overflow-x":[{"overflow-x":he()}],"overflow-y":[{"overflow-y":he()}],overscroll:[{overscroll:be()}],"overscroll-x":[{"overscroll-x":be()}],"overscroll-y":[{"overscroll-y":be()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],_e:[{_e:["auto",ie,u]}],basis:[{basis:ye()}],"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:oe()}],shrink:[{shrink:oe()}],order:[{order:["first","last","none",ie,u]}],"grid-cols":[{"grid-cols":[ae]}],"col-start-end":[{col:["auto",{span:["full",ie,u]},u]}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":[ae]}],"row-start-end":[{row:["auto",{span:[ie,u]},u]}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[I]}],"gap-x":[{"gap-x":[I]}],"gap-y":[{"gap-y":[I]}],"justify-content":[{justify:["normal",...xe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...xe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...xe(),"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]}],pe:[{pe:[L]}],pt:[{pt:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],pl:[{pl:[L]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[B]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[B]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,r]}],"min-w":[{"min-w":[u,r,"min","max","fit"]}],"max-w":[{"max-w":[u,r,"none","full","min","max","fit","prose",{screen:[J]},J]}],h:[{h:[u,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,r,"auto","min","max","fit"]}],"font-size":[{text:["base",J,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",we]}],"font-family":[{font:[ae]}],"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",te,we]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",O,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":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",O,q]}],"underline-offset":[{"underline-offset":["auto",O,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:h()}],"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":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ie(),Gt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Vt]}],"bg-image":[{bg:["none",{"gradient-to":["_e","tr","r","br","b","bl","l","tl"]},Wt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[M]}],"gradient-via":[{via:[M]}],"gradient-to":[{to:[M]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-_e":[{"rounded-_e":[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-_e":[{"rounded-_e":[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:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-_e":[{"border-_e":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[...le(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:le()}],"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-_e":[{"border-_e":[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:["",...le()]}],"outline-offset":[{"outline-offset":[O,u]}],"outline-w":[{outline:[O,q]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ke()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-w":[{"ring-offset":[O,q]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",J,Ut]}],"shadow-color":[{shadow:[ae]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":[...Le(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Le()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",J,u]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[y]}],saturate:[{saturate:[k]}],sepia:[{sepia:[d]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[d]}],"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:G()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[ie,u]}],"translate-x":[{"translate-x":[F]}],"translate-y":[{"translate-y":[F]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"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-m":[{"scroll-m":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-mt":[{"scroll-mt":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-ml":[{"scroll-ml":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pe":[{"scroll-pe":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-pl":[{"scroll-pl":h()}],"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:[O,q,we]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","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-_e","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-_e","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-_e"],"rounded-_e":["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-_e","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-_e","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-_e","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-_e","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Oe=kt(qt);function g(...e){return Oe((0,We.clsx)(e))}var Ue=require("@radix-ui/react-slot"),je=require("class-variance-authority"),$e=V(require("react")),_e=require("react/jsx-runtime"),Jt=(0,je.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"}}}),E=$e.forwardRef(({asChild:e=!1,className:r,size:o,variant:n,...a},i)=>(0,_e.jsx)(e?Ue.Slot:"button",{className:g(Jt({className:r,size:o,variant:n})),ref:i,...a}));E.displayName="Button";var qe=V(require("react"));var H=qe.forwardRef(({className:e,type:r,...o},n)=>(0,_e.jsx)("input",{type:r,className:g("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:n,...o}));H.displayName="Input";var Ke=V(require("react")),ce=Ke.forwardRef(({className:e,...r},o)=>(0,_e.jsx)("textarea",{className:g("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,...r}));ce.displayName="Textarea";var p=V(require("@radix-ui/react-select")),Z=require("lucide-react"),K=V(require("react")),X=p.Root;var Y=p.Value,W=K.forwardRef(({children:e,className:r,...o},n)=>(0,_e.jsxs)(p.Trigger,{className:g("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),ref:n,...o,children:[e,(0,_e.jsx)(p.Icon,{asChild:!0,children:(0,_e.jsx)(Z.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));W.displayName=p.Trigger.displayName;var Ye=K.forwardRef(({className:e,...r},o)=>(0,_e.jsx)(p.ScrollUpButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...r,children:(0,_e.jsx)(Z.ChevronUp,{className:"h-4 w-4"})}));Ye.displayName=p.ScrollUpButton.displayName;var Ze=K.forwardRef(({className:e,...r},o)=>(0,_e.jsx)(p.ScrollDownButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...r,children:(0,_e.jsx)(Z.ChevronDown,{className:"h-4 w-4"})}));Ze.displayName=p.ScrollDownButton.displayName;var U=K.forwardRef(({children:e,className:r,position:o="popper",...n},a)=>(0,_e.jsx)(p.Portal,{children:(0,_e.jsxs)(p.Content,{className:g("relative _e-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card 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",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:o,ref:a,...n,children:[(0,_e.jsx)(Ye,{}),(0,_e.jsx)(p.Viewport,{className:g("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,_e.jsx)(Ze,{})]})}));U.displayName=p.Content.displayName;var Kt=K.forwardRef(({className:e,...r},o)=>(0,_e.jsx)(p.Label,{className:g("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...r}));Kt.displayName=p.Label.displayName;var b=K.forwardRef(({children:e,className:r,...o},n)=>(0,_e.jsxs)(p.Item,{className:g("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),ref:n,...o,children:[(0,_e.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,_e.jsx)(p.ItemIndicator,{children:(0,_e.jsx)(Z.Check,{className:"h-4 w-4"})})}),(0,_e.jsx)(p.ItemText,{children:e})]}));b.displayName=p.Item.displayName;var Xt=K.forwardRef(({className:e,...r},o)=>(0,_e.jsx)(p.Separator,{className:g("-mx-1 my-1 h-px bg-muted",e),ref:o,...r}));Xt.displayName=p.Separator.displayName;var Q=V(require("react"));var j=Q.forwardRef(({className:e,...r},o)=>(0,_e.jsx)("div",{ref:o,className:g("rounded-xl border bg-card text-card-foreground shadow",e),...r}));j.displayName="Card";var Yt=Q.forwardRef(({className:e,...r},o)=>(0,_e.jsx)("div",{ref:o,className:g("flex flex-col space-y-1.5 p-6",e),...r}));Yt.displayName="CardHeader";var Zt=Q.forwardRef(({className:e,...r},o)=>(0,_e.jsx)("div",{ref:o,className:g("font-semibold leading-none tracking-tight",e),...r}));Zt.displayName="CardTitle";var Qt=Q.forwardRef(({className:e,...r},o)=>(0,_e.jsx)("div",{ref:o,className:g("text-sm text-muted-foreground",e),...r}));Qt.displayName="CardDescription";var Ne=Q.forwardRef(({className:e,...r},o)=>(0,_e.jsx)("div",{ref:o,className:g("p-6 pt-0",e),...r}));Ne.displayName="CardContent";var er=Q.forwardRef(({className:e,...r},o)=>(0,_e.jsx)("div",{ref:o,className:g("flex items-center p-6 pt-0",e),...r}));er.displayName="CardFooter";var tr=(0,je.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 me({className:e,variant:r,...o}){return(0,_e.jsx)("div",{className:g(tr({variant:r}),e),...o})}var ne=V(require("react")),P=V(require("@radix-ui/react-dialog"));var Se=P.Root;var rr=P.Portal;var rt=ne.forwardRef(({className:e,...r},o)=>(0,_e.jsx)(P.Overlay,{ref:o,className:g("fixed inset-0 _e-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),...r}));rt.displayName=P.Overlay.displayName;var ue=ne.forwardRef(({className:e,children:r,...o},n)=>(0,_e.jsxs)(rr,{children:[(0,_e.jsx)(rt,{}),(0,_e.jsxs)(P.Content,{ref:n,className:g("fixed left-[50%] top-[50%] _e-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-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:[r,(0,_e.jsxs)(P.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,_e.jsx)(Z.X,{className:"h-4 w-4"}),(0,_e.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));ue.displayName=P.Content.displayName;var pe=({className:e,...r})=>(0,_e.jsx)("div",{className:g("flex flex-col space-y-1.5 text-center sm:text-left",e),...r});pe.displayName="DialogHeader";var or=({className:e,...r})=>(0,_e.jsx)("div",{className:g("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...r});or.displayName="DialogFooter";var ge=ne.forwardRef(({className:e,...r},o)=>(0,_e.jsx)(P.Title,{ref:o,className:g("text-lg font-semibold leading-none tracking-tight",e),...r}));ge.displayName=P.Title.displayName;var ir=ne.forwardRef(({className:e,...r},o)=>(0,_e.jsx)(P.Description,{ref:o,className:g("text-sm text-muted-foreground",e),...r}));ir.displayName=P.Description.displayName;var ot=V(require("react")),Pe=V(require("@radix-ui/react-label"));var ar=(0,je.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),w=ot.forwardRef(({className:e,...r},o)=>(0,_e.jsx)(Pe.Root,{ref:o,className:g(ar(),e),...r}));w.displayName=Pe.Root.displayName;var st=require("framer-motion");function nt(e,r){let[o,n]=(0,$.useState)(()=>{if(typeof window>"u")return r;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):r}catch{return r}}),a=i=>{try{n(i),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,$.useEffect)(()=>{a(o)},[]),[o,a]}var ve=require("react-icons/fa");function lt({title:e,description:r,badge:o,primaryAction:n,secondaryAction:a,gradient:i,children:s,className:l}){let[c,m]=nt(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!a&&!r),f=!a&&!r||c;return(0,_e.jsxs)(st.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${i} p-8 text-white ${l||""}`,children:[(0,_e.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,_e.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,_e.jsx)(me,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,_e.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,_e.jsxs)("div",{className:"flex items-center gap-3",children:[f&&n&&(0,_e.jsx)(E,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:n.onClick,children:n.label}),(a||r)&&(0,_e.jsx)("button",{"aria-label":c?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>m(!c),style:{lineHeight:0},children:c?(0,_e.jsx)(ve.FaChevronDown,{size:22}):(0,_e.jsx)(ve.FaChevronUp,{size:22})})]})]}),!f&&(0,_e.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,_e.jsxs)("div",{className:"space-y-4",children:[(0,_e.jsx)("p",{className:"max-w-[600px] text-white/80",children:r}),(0,_e.jsxs)("div",{className:"flex flex-wrap gap-3",children:[n&&(0,_e.jsx)(E,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:n.onClick,children:n.label}),a&&(0,_e.jsx)(E,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:a.onClick,children:a.label})]})]}),s&&(0,_e.jsx)("div",{className:"hidden lg:block",children:s})]})]})}var nr=e=>{switch(e){case"high":return"\u{1F534}";case"medium":return"\u{1F7E1}";case"low":return"\u{1F7E2}";default:return"\u26AA"}},sr=e=>e.toLocaleDateString("en-US",{weekday:"short",year:"numeric",month:"short",day:"numeric"}),lr=e=>{let[r,o]=e.split(":"),n=new Date;return n.setHours(parseInt(r),parseInt(o)),n.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0})},De=(e,r)=>{let o=new Date,n=new Date(e);if(r){let[a,i]=r.split(":");n.setHours(parseInt(a),parseInt(i))}return n<o},Te=e=>{let r=new Date;return e.toDateString()===r.toDateString()},dr=e=>{let r=new Date;return r.setDate(r.getDate()+1),e.toDateString()===r.toDateString()},cr=({colleagues:e,onAddReminder:r,open:o,setOpen:n})=>{let[a,i]=(0,$.useState)({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""}),s=c=>{c.preventDefault();let m=e.find(y=>y?.id===a.colleagueId);if(!m){console.error("No valid colleague selected");return}let f={title:a.title,description:a.description,dueDate:new Date(a.dueDate),dueTime:a.dueTime||void 0,colleague:m,isCompleted:!1,isRecurring:a.isRecurring,recurrencePattern:a.isRecurring?a.recurrencePattern:void 0,recurrenceInterval:a.isRecurring?a.recurrenceInterval:void 0,priority:a.priority,reminderEnabled:a.reminderEnabled,reminderMinutes:a.reminderEnabled?a.reminderMinutes:void 0,tags:a.tags?a.tags.split(",").map(y=>y.trim()):void 0};r(f),n(!1),i({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""})},l=e.filter(Boolean);return(0,_e.jsx)(Se,{open:o,onOpenChange:n,children:(0,_e.jsxs)(ue,{className:"max-w-2xl",children:[(0,_e.jsx)(pe,{children:(0,_e.jsx)(ge,{children:"Add New Reminder"})}),(0,_e.jsxs)("form",{onSubmit:s,className:"space-y-4",children:[(0,_e.jsx)("div",{className:"grid grid-cols-2 gap-4",children:(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"title",children:"Title"}),(0,_e.jsx)(H,{id:"title",value:a.title,onChange:c=>i({...a,title:c.target.value}),placeholder:"Enter reminder title",required:!0})]})}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"description",children:"Description"}),(0,_e.jsx)(ce,{id:"description",value:a.description,onChange:c=>i({...a,description:c.target.value}),placeholder:"Enter reminder description",rows:3})]}),(0,_e.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"dueDate",children:"Due Date"}),(0,_e.jsx)(H,{id:"dueDate",type:"date",value:a.dueDate,onChange:c=>i({...a,dueDate:c.target.value}),required:!0})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"dueTime",children:"Due Time (optional)"}),(0,_e.jsx)(H,{id:"dueTime",type:"time",value:a.dueTime,onChange:c=>i({...a,dueTime:c.target.value})})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"colleague",children:"Assigned Colleague"}),(0,_e.jsxs)(X,{value:a.colleagueId,onValueChange:c=>i({...a,colleagueId:c}),children:[(0,_e.jsx)(W,{children:(0,_e.jsx)(Y,{placeholder:"Select a digital colleague"})}),(0,_e.jsx)(U,{children:l.map(c=>(0,_e.jsx)(b,{value:c.id,children:c.name},c.id))})]})]}),(0,_e.jsxs)("div",{className:"space-y-2",children:[(0,_e.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,_e.jsx)("input",{type:"checkbox",id:"isRecurring",checked:a.isRecurring,onChange:c=>i({...a,isRecurring:c.target.checked}),className:"rounded border-border"}),(0,_e.jsx)(w,{htmlFor:"isRecurring",children:"Make this a recurring reminder"})]}),a.isRecurring&&(0,_e.jsxs)("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"recurrencePattern",children:"Frequency"}),(0,_e.jsxs)(X,{value:a.recurrencePattern,onValueChange:c=>i({...a,recurrencePattern:c}),children:[(0,_e.jsx)(W,{children:(0,_e.jsx)(Y,{})}),(0,_e.jsxs)(U,{children:[(0,_e.jsx)(b,{value:"daily",children:"Daily"}),(0,_e.jsx)(b,{value:"weekly",children:"Weekly"}),(0,_e.jsx)(b,{value:"monthly",children:"Monthly"}),(0,_e.jsx)(b,{value:"yearly",children:"Yearly"})]})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"recurrenceInterval",children:"Every"}),(0,_e.jsx)(H,{id:"recurrenceInterval",type:"number",min:"1",value:a.recurrenceInterval,onChange:c=>i({...a,recurrenceInterval:parseInt(c.target.value)})})]})]})]}),(0,_e.jsxs)("div",{className:"flex justify-end space-x-2",children:[(0,_e.jsx)(E,{type:"button",variant:"outline",onClick:()=>n(!1),children:"Cancel"}),(0,_e.jsx)(E,{type:"submit",children:"Add Reminder"})]})]})]})})},mr=({reminder:e,colleagues:r,onUpdateReminder:o,open:n,onClose:a})=>{let[i,s]=(0,$.useState)({title:e.title,description:e.description,dueDate:e.dueDate.toISOString().split("T")[0],dueTime:e.dueTime||"",colleagueId:e.colleague?.id||"",priority:e.priority,isRecurring:e.isRecurring,recurrencePattern:e.recurrencePattern||"weekly",recurrenceInterval:e.recurrenceInterval||1,reminderEnabled:e.reminderEnabled,reminderMinutes:e.reminderMinutes||15,tags:e.tags?.join(", ")||""}),l=m=>{m.preventDefault();let f=r.find(y=>y?.id===i.colleagueId);if(!f){console.error("No valid colleague selected");return}o(e.id,{title:i.title,description:i.description,dueDate:new Date(i.dueDate),dueTime:i.dueTime||void 0,colleague:f,priority:i.priority,isRecurring:i.isRecurring,recurrencePattern:i.isRecurring?i.recurrencePattern:void 0,recurrenceInterval:i.isRecurring?i.recurrenceInterval:void 0,reminderEnabled:i.reminderEnabled,reminderMinutes:i.reminderEnabled?i.reminderMinutes:void 0,tags:i.tags?i.tags.split(",").map(y=>y.trim()):void 0}),a()},c=r.filter(Boolean);return(0,_e.jsx)(Se,{open:n,onOpenChange:a,children:(0,_e.jsxs)(ue,{className:"max-w-2xl",children:[(0,_e.jsx)(pe,{children:(0,_e.jsx)(ge,{children:"Edit Reminder"})}),(0,_e.jsxs)("form",{onSubmit:l,className:"space-y-4",children:[(0,_e.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-title",children:"Title"}),(0,_e.jsx)(H,{id:"edit-title",value:i.title,onChange:m=>s({...i,title:m.target.value}),placeholder:"Enter reminder title",required:!0})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-priority",children:"Priority"}),(0,_e.jsxs)(X,{value:i.priority,onValueChange:m=>s({...i,priority:m}),children:[(0,_e.jsx)(W,{children:(0,_e.jsx)(Y,{})}),(0,_e.jsxs)(U,{children:[(0,_e.jsx)(b,{value:"low",children:"\u{1F7E2} Low"}),(0,_e.jsx)(b,{value:"medium",children:"\u{1F7E1} Medium"}),(0,_e.jsx)(b,{value:"high",children:"\u{1F534} High"})]})]})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-description",children:"Description"}),(0,_e.jsx)(ce,{id:"edit-description",value:i.description,onChange:m=>s({...i,description:m.target.value}),placeholder:"Enter reminder description",rows:3})]}),(0,_e.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-dueDate",children:"Due Date"}),(0,_e.jsx)(H,{id:"edit-dueDate",type:"date",value:i.dueDate,onChange:m=>s({...i,dueDate:m.target.value}),required:!0})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-dueTime",children:"Due Time (optional)"}),(0,_e.jsx)(H,{id:"edit-dueTime",type:"time",value:i.dueTime,onChange:m=>s({...i,dueTime:m.target.value})})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-colleague",children:"Assigned Colleague"}),(0,_e.jsxs)(X,{value:i.colleagueId,onValueChange:m=>s({...i,colleagueId:m}),children:[(0,_e.jsx)(W,{children:(0,_e.jsx)(Y,{placeholder:"Select a digital colleague"})}),(0,_e.jsx)(U,{children:c.map(m=>(0,_e.jsx)(b,{value:m.id,children:m.name},m.id))})]})]}),(0,_e.jsxs)("div",{className:"space-y-2",children:[(0,_e.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,_e.jsx)("input",{type:"checkbox",id:"edit-isRecurring",checked:i.isRecurring,onChange:m=>s({...i,isRecurring:m.target.checked}),className:"rounded border-border"}),(0,_e.jsx)(w,{htmlFor:"edit-isRecurring",children:"Make this a recurring reminder"})]}),i.isRecurring&&(0,_e.jsxs)("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-recurrencePattern",children:"Frequency"}),(0,_e.jsxs)(X,{value:i.recurrencePattern,onValueChange:m=>s({...i,recurrencePattern:m}),children:[(0,_e.jsx)(W,{children:(0,_e.jsx)(Y,{})}),(0,_e.jsxs)(U,{children:[(0,_e.jsx)(b,{value:"daily",children:"Daily"}),(0,_e.jsx)(b,{value:"weekly",children:"Weekly"}),(0,_e.jsx)(b,{value:"monthly",children:"Monthly"}),(0,_e.jsx)(b,{value:"yearly",children:"Yearly"})]})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-recurrenceInterval",children:"Every"}),(0,_e.jsx)(H,{id:"edit-recurrenceInterval",type:"number",min:"1",value:i.recurrenceInterval,onChange:m=>s({...i,recurrenceInterval:parseInt(m.target.value)})})]})]})]}),(0,_e.jsxs)("div",{className:"space-y-2",children:[(0,_e.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,_e.jsx)("input",{type:"checkbox",id:"edit-reminderEnabled",checked:i.reminderEnabled,onChange:m=>s({...i,reminderEnabled:m.target.checked}),className:"rounded border-border"}),(0,_e.jsx)(w,{htmlFor:"edit-reminderEnabled",children:"Enable reminder notifications"})]}),i.reminderEnabled&&(0,_e.jsxs)("div",{className:"pl-6",children:[(0,_e.jsx)(w,{htmlFor:"edit-reminderMinutes",children:"Remind me"}),(0,_e.jsxs)(X,{value:i.reminderMinutes.toString(),onValueChange:m=>s({...i,reminderMinutes:parseInt(m)}),children:[(0,_e.jsx)(W,{children:(0,_e.jsx)(Y,{})}),(0,_e.jsxs)(U,{children:[(0,_e.jsx)(b,{value:"5",children:"5 minutes before"}),(0,_e.jsx)(b,{value:"15",children:"15 minutes before"}),(0,_e.jsx)(b,{value:"30",children:"30 minutes before"}),(0,_e.jsx)(b,{value:"60",children:"1 hour before"}),(0,_e.jsx)(b,{value:"1440",children:"1 day before"})]})]})]})]}),(0,_e.jsxs)("div",{children:[(0,_e.jsx)(w,{htmlFor:"edit-tags",children:"Tags (comma-separated)"}),(0,_e.jsx)(H,{id:"edit-tags",value:i.tags,onChange:m=>s({...i,tags:m.target.value}),placeholder:"e.g., urgent, meeting, follow-up"})]}),(0,_e.jsxs)("div",{className:"flex justify-end space-x-2",children:[(0,_e.jsx)(E,{type:"button",variant:"outline",onClick:a,children:"Cancel"}),(0,_e.jsx)(E,{type:"submit",children:"Save Changes"})]})]})]})})},ur=({reminder:e,colleagues:r,onUpdateReminder:o,onDeleteReminder:n})=>{let[a,i]=(0,$.useState)(!1);if(!e||!e.id)return null;let s=De(e.dueDate,e.dueTime),l=Te(e.dueDate),c=dr(e.dueDate),m=()=>{o(e.id,{isCompleted:!e.isCompleted,completedAt:e.isCompleted?void 0:new Date})},f=()=>l?"Today":c?"Tomorrow":s&&!e.isCompleted?"Overdue":sr(e.dueDate);return(0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)(mr,{reminder:e,colleagues:r,onUpdateReminder:o,open:a,onClose:()=>i(!1)}),(0,_e.jsx)(j,{className:`transition-all duration-200 ${e.isCompleted?"opacity-60":""} ${s&&!e.isCompleted?"border-destructive/50 bg-destructive/5":""}`,children:(0,_e.jsx)(Ne,{className:"p-4",children:(0,_e.jsxs)("div",{className:"flex items-start justify-between",children:[(0,_e.jsxs)("div",{className:"flex items-start space-x-3 flex-1",children:[(0,_e.jsx)("button",{onClick:m,className:"mt-1 text-primary hover:text-primary/80",children:e.isCompleted?(0,_e.jsx)(Z.CheckCircle,{className:"h-5 w-5"}):(0,_e.jsx)(Z.Circle,{className:"h-5 w-5"})}),(0,_e.jsxs)("div",{className:"flex-1",children:[(0,_e.jsxs)("div",{className:"flex items-center space-x-2 mb-1",children:[(0,_e.jsx)("h3",{className:`font-semibold ${e.isCompleted?"line-through text-muted-foreground":""}`,children:e.title}),(0,_e.jsx)("span",{className:"text-sm",children:nr(e.priority)}),e.isRecurring&&(0,_e.jsx)(Z.Repeat,{className:"h-4 w-4 text-primary"}),e.reminderEnabled&&(0,_e.jsx)(Z.Bell,{className:"h-4 w-4 text-success"})]}),(0,_e.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:e.description}),(0,_e.jsxs)("div",{className:"flex items-center space-x-4 text-sm text-muted-foreground",children:[(0,_e.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,_e.jsx)(Z.Calendar,{className:"h-4 w-4"}),(0,_e.jsx)("span",{className:s&&!e.isCompleted?"text-destructive font-medium":"",children:f()})]}),e.dueTime&&(0,_e.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,_e.jsx)(Z.Clock,{className:"h-4 w-4"}),(0,_e.jsx)("span",{children:lr(e.dueTime)})]}),(0,_e.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,_e.jsx)(Z.User,{className:"h-4 w-4"}),(0,_e.jsx)("span",{children:e.colleague?.name||"Unknown Colleague"})]})]}),e.tags&&e.tags.length>0&&(0,_e.jsx)("div",{className:"flex flex-wrap gap-1 mt-2",children:e.tags.map((y,I)=>(0,_e.jsx)(me,{variant:"secondary",className:"text-xs",children:y},I))})]})]}),(0,_e.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,_e.jsx)(E,{variant:"ghost",size:"sm",onClick:()=>i(!0),className:"h-8 w-8 p-0",children:(0,_e.jsx)(Z.Edit2,{className:"h-4 w-4"})}),(0,_e.jsx)(E,{variant:"ghost",size:"sm",onClick:()=>n(e.id),className:"h-8 w-8 p-0 text-destructive hover:text-destructive/80",children:(0,_e.jsx)(Z.Trash2,{className:"h-4 w-4"})})]})]})})})]})},dt=({initialReminders:e=[],initialColleagues:r=[],onAddReminder:o,onUpdateReminder:n,onDeleteReminder:a})=>{let[i,s]=(0,$.useState)(e.filter(Boolean)),[l]=(0,$.useState)(r.filter(Boolean)),[c,m]=(0,$.useState)("all"),[f,y]=(0,$.useState)(""),[I,M]=(0,$.useState)(!1),A=d=>{if(!d.title||!d.colleague?.id){console.error("Invalid reminder data:",d);return}let R={...d,id:Date.now().toString(),createdAt:new Date};s(B=>[...B,R]),o?.(d)},S=(d,R)=>{if(!d){console.error("No reminder ID provided for update");return}s(B=>B.map(F=>F?.id===d?{...F,...R}:F)),n?.(d,R)},x=d=>{if(!d){console.error("No reminder ID provided for deletion");return}s(R=>R.filter(B=>B?.id!==d)),a?.(d)},L=i.filter(d=>{if(!d)return!1;if(f){let R=f.toLowerCase();if(!(d.title.toLowerCase().includes(R)||d.description.toLowerCase().includes(R)||d.colleague?.name?.toLowerCase().includes(R)||d.tags?.some(F=>F.toLowerCase().includes(R))))return!1}switch(c){case"pending":return!d.isCompleted;case"completed":return d.isCompleted;case"overdue":return!d.isCompleted&&De(d.dueDate,d.dueTime);case"today":return Te(d.dueDate);default:return!0}}).sort((d,R)=>{if(!d||!R)return 0;if(d.isCompleted&&!R.isCompleted)return 1;if(!d.isCompleted&&R.isCompleted)return-1;let B={high:3,medium:2,low:1},F=B[R.priority]-B[d.priority];return F!==0?F:d.dueDate.getTime()-R.dueDate.getTime()}),k={total:i.filter(Boolean).length,pending:i.filter(d=>d&&!d.isCompleted).length,completed:i.filter(d=>d&&d.isCompleted).length,overdue:i.filter(d=>d&&!d.isCompleted&&De(d.dueDate,d.dueTime)).length,today:i.filter(d=>d&&Te(d.dueDate)).length},_=l.find(Boolean)||{id:"1",name:"Default Colleague",status:"active",joinedDate:new Date,lastActive:new Date,type:"digital",description:"Default digital colleague for task management",jobDescription:"Default team member for task management",workInstructions:"Handle basic task assignments and reminders",capabilities:["task-management","reminder-creation"],knowledge:[],coreKnowledge:[],version:"1.0.0",lastUpdated:new Date,isActive:!0};return(0,_e.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,_e.jsx)(lt,{title:"Task Reminders",description:"Manage reminders and stay on top of important tasks and deadlines.",gradient:"bg-gradient-to-r from-emerald-600 via-teal-600 to-cyan-600",primaryAction:{label:"Add reminder",onClick:()=>{M(!0)}}}),(0,_e.jsxs)("div",{className:"h-full bg-background",children:[(0,_e.jsx)(cr,{colleagues:l,onAddReminder:A,open:I,setOpen:M}),(0,_e.jsxs)("div",{className:"p-6",children:[(0,_e.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,_e.jsxs)("div",{children:[(0,_e.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Task Reminders"}),(0,_e.jsx)("p",{className:"text-muted-foreground",children:"Manage your digital colleague task reminders"})]}),(0,_e.jsxs)(E,{className:"flex items-center space-x-2",onClick:()=>M(!0),children:[(0,_e.jsx)(Z.Plus,{className:"h-4 w-4"}),(0,_e.jsx)("span",{children:"Add Reminder"})]})]}),(0,_e.jsxs)("div",{className:"grid grid-cols-5 gap-4 mb-6",children:[(0,_e.jsxs)(j,{className:"p-4",children:[(0,_e.jsx)("div",{className:"text-2xl font-bold text-foreground",children:k.total}),(0,_e.jsx)("div",{className:"text-sm text-muted-foreground",children:"Total"})]}),(0,_e.jsxs)(j,{className:"p-4",children:[(0,_e.jsx)("div",{className:"text-2xl font-bold text-primary",children:k.pending}),(0,_e.jsx)("div",{className:"text-sm text-muted-foreground",children:"Pending"})]}),(0,_e.jsxs)(j,{className:"p-4",children:[(0,_e.jsx)("div",{className:"text-2xl font-bold text-success",children:k.completed}),(0,_e.jsx)("div",{className:"text-sm text-muted-foreground",children:"Completed"})]}),(0,_e.jsxs)(j,{className:"p-4",children:[(0,_e.jsx)("div",{className:"text-2xl font-bold text-destructive",children:k.overdue}),(0,_e.jsx)("div",{className:"text-sm text-muted-foreground",children:"Overdue"})]}),(0,_e.jsxs)(j,{className:"p-4",children:[(0,_e.jsx)("div",{className:"text-2xl font-bold text-warning",children:k.today}),(0,_e.jsx)("div",{className:"text-sm text-muted-foreground",children:"Today"})]})]}),(0,_e.jsxs)("div",{className:"flex items-center space-x-4 mb-6",children:[(0,_e.jsx)("div",{className:"flex-1",children:(0,_e.jsx)(H,{placeholder:"Search reminders...",value:f,onChange:d=>y(d.target.value),className:"max-w-md"})}),(0,_e.jsxs)(X,{value:c,onValueChange:d=>m(d),children:[(0,_e.jsx)(W,{className:"w-40",children:(0,_e.jsx)(Y,{})}),(0,_e.jsxs)(U,{children:[(0,_e.jsxs)(b,{value:"all",children:["All (",k.total,")"]}),(0,_e.jsxs)(b,{value:"pending",children:["Pending (",k.pending,")"]}),(0,_e.jsxs)(b,{value:"completed",children:["Completed (",k.completed,")"]}),(0,_e.jsxs)(b,{value:"overdue",children:["Overdue (",k.overdue,")"]}),(0,_e.jsxs)(b,{value:"today",children:["Today (",k.today,")"]})]})]})]}),(0,_e.jsx)("div",{className:"space-y-4",children:L.length===0?(0,_e.jsxs)(j,{className:"p-8 text-center",children:[(0,_e.jsx)("div",{className:"text-muted-foreground",children:f||c!=="all"?"No reminders match your filters":"No reminders yet"}),!f&&c==="all"&&(0,_e.jsx)("p",{className:"text-sm text-muted-foreground/60 mt-2",children:"Create your first reminder to get started"})]}):L.map(d=>d&&(0,_e.jsx)(ur,{reminder:d,colleagues:l,onUpdateReminder:S,onDeleteReminder:x},d.id))})]})]})]})},pr=dt;0&&(module.exports={TasksView});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-Z72RUYUU.mjs";import"../../chunk-2NMVE5M4.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.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{a as TasksView,b as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RecentFile } from
|
|
1
|
+
import type { RecentFile } from '../DigitalColleagues/types';
|
|
2
2
|
interface FileListProps {
|
|
3
3
|
files: RecentFile[];
|
|
4
4
|
onFileClick?: (file: RecentFile) => void;
|
|
@@ -7,5 +7,5 @@ interface FileListProps {
|
|
|
7
7
|
showHeader?: boolean;
|
|
8
8
|
className?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare function FileList({ files, onFileClick, onFileEdit, onFileDelete, showHeader, className }: FileListProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function FileList({ files, onFileClick, onFileEdit, onFileDelete, showHeader, className, }: FileListProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";"use client";var fe=Object.create;var j=Object.defineProperty;var he=Object.getOwnPropertyDescriptor;var xe=Object.getOwnPropertyNames;var ye=Object.getPrototypeOf,ve=Object.prototype.hasOwnProperty;var we=(e,r)=>{for(var t in r)j(e,t,{get:r[t],enumerable:!0})},re=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of xe(r))!ve.call(e,i)&&i!==t&&j(e,i,{get:()=>r[i],enumerable:!(o=he(r,i))||o.enumerable});return e};var ke=(e,r,t)=>(t=e!=null?fe(ye(e)):{},re(r||!e||!e.__esModule?j(t,"default",{value:e,enumerable:!0}):t,e)),Ce=e=>re(j({},"__esModule",{value:!0}),e);var or={};we(or,{FileList:()=>tr});module.exports=Ce(or);var me=require("framer-motion"),A=require("lucide-react");var de=require("clsx");var q="-",ze=e=>{let r=Se(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:a=>{let s=a.split(q);return s[0]===""&&s.length!==1&&s.shift(),ne(s,r)||Ne(a)},getConflictingClassGroupIds:(a,s)=>{let b=t[a]||[];return s&&o[a]?[...b,...o[a]]:b}}},ne=(e,r)=>{if(e.length===0)return r.classGroupId;let t=e[0],o=r.nextPart.get(t),i=o?ne(e.slice(1),o):void 0;if(i)return i;if(r.validators.length===0)return;let n=e.join(q);return r.validators.find(({validator:a})=>a(n))?.classGroupId},te=/^\[(.+)\]$/,Ne=e=>{if(te.test(e)){let r=te.exec(e)[1],t=r?.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},Se=e=>{let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return Pe(Object.entries(e.classGroups),t).forEach(([n,a])=>{O(a,o,n,r)}),o},O=(e,r,t,o)=>{e.forEach(i=>{if(typeof i=="string"){let n=i===""?r:oe(r,i);n.classGroupId=t;return}if(typeof i=="function"){if(Me(i)){O(i(o),r,t,o);return}r.validators.push({validator:i,classGroupId:t});return}Object.entries(i).forEach(([n,a])=>{O(a,oe(r,n),t,o)})})},oe=(e,r)=>{let t=e;return r.split(q).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t},Me=e=>e.isThemeGetter,Pe=(e,r)=>r?e.map(([t,o])=>{let i=o.map(n=>typeof n=="string"?r+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([a,s])=>[r+a,s])):n);return[t,i]}):e,Re=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map,i=(n,a)=>{t.set(n,a),r++,r>e&&(r=0,o=t,t=new Map)};return{get(n){let a=t.get(n);if(a!==void 0)return a;if((a=o.get(n))!==void 0)return i(n,a),a},set(n,a){t.has(n)?t.set(n,a):i(n,a)}}},se="!",Ae=e=>{let{separator:r,experimentalParseClassName:t}=e,o=r.length===1,i=r[0],n=r.length,a=s=>{let b=[],m=0,h=0,y;for(let u=0;u<s.length;u++){let f=s[u];if(m===0){if(f===i&&(o||s.slice(u,u+n)===r)){b.push(s.slice(h,u)),h=u+n;continue}if(f==="/"){y=u;continue}}f==="["?m++:f==="]"&&m--}let v=b.length===0?s:s.substring(h),k=v.startsWith(se),w=k?v.substring(1):v,g=y&&y>h?y-h:void 0;return{modifiers:b,hasImportantModifier:k,baseClassName:w,maybePostfixModifierPosition:g}};return t?s=>t({className:s,parseClassName:a}):a},Ge=e=>{if(e.length<=1)return e;let r=[],t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o)}),r.push(...t.sort()),r},Ie=e=>({cache:Re(e.cacheSize),parseClassName:Ae(e),...ze(e)}),Te=/\s+/,Ee=(e,r)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:i}=r,n=[],a=e.trim().split(Te),s="";for(let b=a.length-1;b>=0;b-=1){let m=a[b],{modifiers:h,hasImportantModifier:y,baseClassName:v,maybePostfixModifierPosition:k}=t(m),w=!!k,g=o(w?v.substring(0,k):v);if(!g){if(!w){s=m+(s.length>0?" "+s:s);continue}if(g=o(v),!g){s=m+(s.length>0?" "+s:s);continue}w=!1}let u=Ge(h).join(":"),f=y?u+se:u,x=f+g;if(n.includes(x))continue;n.push(x);let G=i(g,w);for(let M=0;M<G.length;++M){let B=G[M];n.push(f+B)}s=m+(s.length>0?" "+s:s)}return s};function Le(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=ie(r))&&(o&&(o+=" "),o+=t);return o}var ie=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=ie(e[o]))&&(t&&(t+=" "),t+=r);return t};function Be(e,...r){let t,o,i,n=a;function a(b){let m=r.reduce((h,y)=>y(h),e());return t=Ie(m),o=t.cache.get,i=t.cache.set,n=s,s(b)}function s(b){let m=o(b);if(m)return m;let h=Ee(b,t);return i(b,h),h}return function(){return n(Le.apply(null,arguments))}}var c=e=>{let r=t=>t[e]||[];return r.isThemeGetter=!0,r},ae=/^\[(?:([a-z-]+):)?(.+)\]$/i,Fe=/^\d+\/\d+$/,Ve=new Set(["px","full","screen"]),je=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_e=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,We=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,$e=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,He=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,z=e=>P(e)||Ve.has(e)||Fe.test(e),N=e=>R(e,"length",Qe),P=e=>!!e&&!Number.isNaN(Number(e)),U=e=>R(e,"number",P),T=e=>!!e&&Number.isInteger(Number(e)),Ue=e=>e.endsWith("%")&&P(e.slice(0,-1)),l=e=>ae.test(e),S=e=>je.test(e),Oe=new Set(["length","size","percentage"]),qe=e=>R(e,Oe,le),Je=e=>R(e,"position",le),Ke=new Set(["image","url"]),Xe=e=>R(e,Ke,De),Ze=e=>R(e,"",Ye),E=()=>!0,R=(e,r,t)=>{let o=ae.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1},Qe=e=>_e.test(e)&&!We.test(e),le=()=>!1,Ye=e=>$e.test(e),De=e=>He.test(e);var er=()=>{let e=c("colors"),r=c("spacing"),t=c("blur"),o=c("brightness"),i=c("borderColor"),n=c("borderRadius"),a=c("borderSpacing"),s=c("borderWidth"),b=c("contrast"),m=c("grayscale"),h=c("hueRotate"),y=c("invert"),v=c("gap"),k=c("gradientColorStops"),w=c("gradientColorStopPositions"),g=c("inset"),u=c("margin"),f=c("opacity"),x=c("padding"),G=c("saturate"),M=c("scale"),B=c("sepia"),K=c("skew"),X=c("space"),Z=c("translate"),_=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",l,r],d=()=>[l,r],Q=()=>["",z,N],F=()=>["auto",P,l],Y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],D=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],I=()=>["","0",l],ee=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>[P,l];return{cacheSize:500,separator:":",theme:{colors:[E],spacing:[z,N],blur:["none","",S,l],brightness:C(),borderColor:[e],borderRadius:["none","","full",S,l],borderSpacing:d(),borderWidth:Q(),contrast:C(),grayscale:I(),hueRotate:C(),invert:I(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[Ue,N],inset:$(),margin:$(),opacity:C(),padding:d(),saturate:C(),scale:C(),sepia:I(),skew:C(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[S]}],"break-after":[{"break-after":ee()}],"break-before":[{"break-before":ee()}],"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:[...Y(),l]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",T,l]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:I()}],shrink:[{shrink:I()}],order:[{order:["first","last","none",T,l]}],"grid-cols":[{"grid-cols":[E]}],"col-start-end":[{col:["auto",{span:["full",T,l]},l]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[E]}],"row-start-end":[{row:["auto",{span:[T,l]},l]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],ge:[{ge:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[u]}],mx:[{mx:[u]}],my:[{my:[u]}],ms:[{ms:[u]}],me:[{me:[u]}],mt:[{mt:[u]}],mr:[{mr:[u]}],mb:[{mb:[u]}],ml:[{ml:[u]}],"space-x":[{"space-x":[X]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[X]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,r]}],"min-w":[{"min-w":[l,r,"min","max","fit"]}],"max-w":[{"max-w":[l,r,"none","full","min","max","fit","prose",{screen:[S]},S]}],h:[{h:[l,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,r,"auto","min","max","fit"]}],"font-size":[{text:["base",S,N]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",U]}],"font-family":[{font:[E]}],"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",l]}],"line-clamp":[{"line-clamp":["none",P,U]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",z,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[f]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[f]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",z,N]}],"underline-offset":[{"underline-offset":["auto",z,l]}],"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:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],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",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[f]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Y(),Je]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",qe]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Xe]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[f]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[f]}],"divide-style":[{divide:V()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[z,l]}],"outline-w":[{outline:[z,N]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[f]}],"ring-offset-w":[{"ring-offset":[z,N]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",S,Ze]}],"shadow-color":[{shadow:[E]}],opacity:[{opacity:[f]}],"mix-blend":[{"mix-blend":[...D(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":D()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",S,l]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[y]}],saturate:[{saturate:[G]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[b]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[f]}],"backdrop-saturate":[{"backdrop-saturate":[G]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:C()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:C()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[T,l]}],"translate-x":[{"translate-x":[Z]}],"translate-y":[{"translate-y":[Z]}],"skew-x":[{"skew-x":[K]}],"skew-y":[{"skew-y":[K]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],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",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-ge":[{"scroll-ge":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"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",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[z,N,U]}],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"],ge:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-ge":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var ce=Be(er);function J(...e){return ce((0,de.clsx)(e))}var pe=require("@radix-ui/react-slot"),ue=require("class-variance-authority"),be=ke(require("react")),ge=require("react/jsx-runtime"),rr=(0,ue.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),L=be.forwardRef(({asChild:e=!1,className:r,size:t,variant:o,...i},n)=>(0,ge.jsx)(e?pe.Slot:"button",{className:J(rr({className:r,size:t,variant:o})),ref:n,...i}));L.displayName="Button";function tr({files:e,onFileClick:r,onFileEdit:t,onFileDelete:o,showHeader:i=!0,className:n}){return(0,ge.jsxs)("div",{className:`rounded-3xl border overflow-hidden ${n||""}`,children:[i&&(0,ge.jsxs)("div",{className:"bg-muted/50 ge-3 hidden md:grid md:grid-cols-10 text-sm font-medium",children:[(0,ge.jsx)("div",{className:"col-span-6",children:"Name"}),(0,ge.jsx)("div",{className:"col-span-2",children:"Size"}),(0,ge.jsx)("div",{className:"col-span-2",children:"Modified"})]}),(0,ge.jsx)("div",{className:"divide-y",children:e.map(a=>(0,ge.jsxs)(me.motion.div,{whileHover:{backgroundColor:"rgba(0,0,0,0.02)"},className:"ge-3 md:grid md:grid-cols-10 items-center flex flex-col md:flex-row gap-3 md:gap-0 cursor-pointer",onClick:()=>r?.(a),children:[(0,ge.jsxs)("div",{className:"col-span-6 flex items-center gap-3 w-full md:w-auto",children:[(0,ge.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-muted",children:a.icon}),(0,ge.jsx)("div",{children:(0,ge.jsx)("ge",{className:"font-medium",children:a.name})})]}),(0,ge.jsx)("div",{className:"col-span-2 text-sm md:text-base",children:a.size}),(0,ge.jsxs)("div",{className:"col-span-2 flex items-center justify-between w-full md:w-auto",children:[(0,ge.jsx)("span",{className:"text-sm md:text-base",children:a.modified}),(0,ge.jsxs)("div",{className:"flex gap-1",children:[(0,ge.jsx)(L,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",onClick:s=>{s.stopPropagation(),t?.(a)},children:(0,ge.jsx)(A.Edit,{className:"h-4 w-4"})}),(0,ge.jsx)(L,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl text-red-500 hover:text-red-600",onClick:s=>{s.stopPropagation(),o?.(a)},children:(0,ge.jsx)(A.Trash2,{className:"h-4 w-4"})}),(0,ge.jsx)(L,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",children:(0,ge.jsx)(A.MoreHorizontal,{className:"h-4 w-4"})})]})]})]},a.name))})]})}0&&(module.exports={FileList});
|
|
4
|
+
"use strict";"use client";var fe=Object.create;var V=Object.defineProperty;var he=Object.getOwnPropertyDescriptor;var xe=Object.getOwnPropertyNames;var ye=Object.getPrototypeOf,ve=Object.prototype.hasOwnProperty;var we=(e,r)=>{for(var t in r)V(e,t,{get:r[t],enumerable:!0})},ee=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of xe(r))!ve.call(e,i)&&i!==t&&V(e,i,{get:()=>r[i],enumerable:!(o=he(r,i))||o.enumerable});return e};var ke=(e,r,t)=>(t=e!=null?fe(ye(e)):{},ee(r||!e||!e.__esModule?V(t,"default",{value:e,enumerable:!0}):t,e)),Ce=e=>ee(V({},"__esModule",{value:!0}),e);var or={};we(or,{FileList:()=>tr});module.exports=Ce(or);var ge=require("framer-motion"),me=require("lucide-react");var ce=require("clsx");var U="-",ze=e=>{let r=Se(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:a=>{let s=a.split(U);return s[0]===""&&s.length!==1&&s.shift(),oe(s,r)||Ne(a)},getConflictingClassGroupIds:(a,s)=>{let u=t[a]||[];return s&&o[a]?[...u,...o[a]]:u}}},oe=(e,r)=>{if(e.length===0)return r.classGroupId;let t=e[0],o=r.nextPart.get(t),i=o?oe(e.slice(1),o):void 0;if(i)return i;if(r.validators.length===0)return;let n=e.join(U);return r.validators.find(({validator:a})=>a(n))?.classGroupId},re=/^\[(.+)\]$/,Ne=e=>{if(re.test(e)){let r=re.exec(e)[1],t=r?.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},Se=e=>{let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return Pe(Object.entries(e.classGroups),t).forEach(([n,a])=>{H(a,o,n,r)}),o},H=(e,r,t,o)=>{e.forEach(i=>{if(typeof i=="string"){let n=i===""?r:te(r,i);n.classGroupId=t;return}if(typeof i=="function"){if(Me(i)){H(i(o),r,t,o);return}r.validators.push({validator:i,classGroupId:t});return}Object.entries(i).forEach(([n,a])=>{H(a,te(r,n),t,o)})})},te=(e,r)=>{let t=e;return r.split(U).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t},Me=e=>e.isThemeGetter,Pe=(e,r)=>r?e.map(([t,o])=>{let i=o.map(n=>typeof n=="string"?r+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([a,s])=>[r+a,s])):n);return[t,i]}):e,Re=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map,i=(n,a)=>{t.set(n,a),r++,r>e&&(r=0,o=t,t=new Map)};return{get(n){let a=t.get(n);if(a!==void 0)return a;if((a=o.get(n))!==void 0)return i(n,a),a},set(n,a){t.has(n)?t.set(n,a):i(n,a)}}},ne="!",Ae=e=>{let{separator:r,experimentalParseClassName:t}=e,o=r.length===1,i=r[0],n=r.length,a=s=>{let u=[],m=0,h=0,y;for(let p=0;p<s.length;p++){let f=s[p];if(m===0){if(f===i&&(o||s.slice(p,p+n)===r)){u.push(s.slice(h,p)),h=p+n;continue}if(f==="/"){y=p;continue}}f==="["?m++:f==="]"&&m--}let v=u.length===0?s:s.substring(h),k=v.startsWith(ne),w=k?v.substring(1):v,g=y&&y>h?y-h:void 0;return{modifiers:u,hasImportantModifier:k,baseClassName:w,maybePostfixModifierPosition:g}};return t?s=>t({className:s,parseClassName:a}):a},Ge=e=>{if(e.length<=1)return e;let r=[],t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o)}),r.push(...t.sort()),r},Ie=e=>({cache:Re(e.cacheSize),parseClassName:Ae(e),...ze(e)}),Te=/\s+/,Ee=(e,r)=>{let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:i}=r,n=[],a=e.trim().split(Te),s="";for(let u=a.length-1;u>=0;u-=1){let m=a[u],{modifiers:h,hasImportantModifier:y,baseClassName:v,maybePostfixModifierPosition:k}=t(m),w=!!k,g=o(w?v.substring(0,k):v);if(!g){if(!w){s=m+(s.length>0?" "+s:s);continue}if(g=o(v),!g){s=m+(s.length>0?" "+s:s);continue}w=!1}let p=Ge(h).join(":"),f=y?p+ne:p,x=f+g;if(n.includes(x))continue;n.push(x);let A=i(g,w);for(let M=0;M<A.length;++M){let E=A[M];n.push(f+E)}s=m+(s.length>0?" "+s:s)}return s};function Le(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=se(r))&&(o&&(o+=" "),o+=t);return o}var se=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=se(e[o]))&&(t&&(t+=" "),t+=r);return t};function Fe(e,...r){let t,o,i,n=a;function a(u){let m=r.reduce((h,y)=>y(h),e());return t=Ie(m),o=t.cache.get,i=t.cache.set,n=s,s(u)}function s(u){let m=o(u);if(m)return m;let h=Ee(u,t);return i(u,h),h}return function(){return n(Le.apply(null,arguments))}}var c=e=>{let r=t=>t[e]||[];return r.isThemeGetter=!0,r},ie=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ve=/^\d+\/\d+$/,je=new Set(["px","full","screen"]),Be=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_e=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|be|min|max))|\be(calc|min|max|clamp)\(.+\)|^0$/,We=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,$e=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,He=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,z=e=>P(e)||je.has(e)||Ve.test(e),N=e=>R(e,"length",Qe),P=e=>!!e&&!Number.isNaN(Number(e)),$=e=>R(e,"number",P),I=e=>!!e&&Number.isInteger(Number(e)),Ue=e=>e.endsWith("%")&&P(e.slice(0,-1)),l=e=>ie.test(e),S=e=>Be.test(e),Oe=new Set(["length","size","percentage"]),qe=e=>R(e,Oe,ae),Je=e=>R(e,"position",ae),Ke=new Set(["image","url"]),Xe=e=>R(e,Ke,De),Ze=e=>R(e,"",Ye),T=()=>!0,R=(e,r,t)=>{let o=ie.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1},Qe=e=>_e.test(e)&&!We.test(e),ae=()=>!1,Ye=e=>$e.test(e),De=e=>He.test(e);var er=()=>{let e=c("colors"),r=c("spacing"),t=c("blur"),o=c("brightness"),i=c("borderColor"),n=c("borderRadius"),a=c("borderSpacing"),s=c("borderWidth"),u=c("contrast"),m=c("grayscale"),h=c("hueRotate"),y=c("invert"),v=c("gap"),k=c("gradientColorStops"),w=c("gradientColorStopPositions"),g=c("inset"),p=c("margin"),f=c("opacity"),x=c("padding"),A=c("saturate"),M=c("scale"),E=c("sepia"),J=c("skew"),K=c("space"),X=c("translate"),j=()=>["auto","contain","none"],B=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto",l,r],d=()=>[l,r],Z=()=>["",z,N],L=()=>["auto",P,l],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>["start","end","center","between","around","evenly","stretch"],G=()=>["","0",l],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>[P,l];return{cacheSize:500,separator:":",theme:{colors:[T],spacing:[z,N],blur:["none","",S,l],brightness:C(),borderColor:[e],borderRadius:["none","","full",S,l],borderSpacing:d(),borderWidth:Z(),contrast:C(),grayscale:G(),hueRotate:C(),invert:G(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[Ue,N],inset:_(),margin:_(),opacity:C(),padding:d(),saturate:C(),scale:C(),sepia:G(),skew:C(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[S]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"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:[...Q(),l]}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",I,l]}],basis:[{basis:_()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",I,l]}],"grid-cols":[{"grid-cols":[T]}],"col-start-end":[{col:["auto",{span:["full",I,l]},l]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[T]}],"row-start-end":[{row:["auto",{span:[I,l]},l]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...W()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...W(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...W(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[K]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[K]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,r]}],"min-w":[{"min-w":[l,r,"min","max","fit"]}],"max-w":[{"max-w":[l,r,"none","full","min","max","fit","prose",{screen:[S]},S]}],h:[{h:[l,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,r,"auto","min","max","fit"]}],"font-size":[{text:["base",S,N]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$]}],"font-family":[{font:[T]}],"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",l]}],"line-clamp":[{"line-clamp":["none",P,$]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",z,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[f]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[f]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",z,N]}],"underline-offset":[{"underline-offset":["auto",z,l]}],"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:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],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",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[f]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),Je]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",qe]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","be","bl","l","tl"]},Xe]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-be":[{"rounded-be":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-be":[{"border-be":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[f]}],"border-style":[{border:[...F(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[f]}],"divide-style":[{divide:F()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-be":[{"border-be":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...F()]}],"outline-offset":[{"outline-offset":[z,l]}],"outline-w":[{outline:[z,N]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[f]}],"ring-offset-w":[{"ring-offset":[z,N]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",S,Ze]}],"shadow-color":[{shadow:[T]}],opacity:[{opacity:[f]}],"mix-blend":[{"mix-blend":[...Y(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",S,l]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[y]}],saturate:[{saturate:[A]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[f]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:C()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:C()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[I,l]}],"translate-x":[{"translate-x":[X]}],"translate-y":[{"translate-y":[X]}],"skew-x":[{"skew-x":[J]}],"skew-y":[{"skew-y":[J]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],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",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"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",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[z,N,$]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","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-be","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-be":["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-be","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-be"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-be","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-be"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var le=Fe(er);function O(...e){return le((0,ce.clsx)(e))}var de=require("@radix-ui/react-slot"),pe=require("class-variance-authority"),ue=ke(require("react")),be=require("react/jsx-runtime"),rr=(0,pe.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"}}}),q=ue.forwardRef(({asChild:e=!1,className:r,size:t,variant:o,...i},n)=>(0,be.jsx)(e?de.Slot:"button",{className:O(rr({className:r,size:t,variant:o})),ref:n,...i}));q.displayName="Button";function tr({files:e,onFileClick:r,onFileEdit:t,onFileDelete:o,showHeader:i=!0,className:n}){return(0,be.jsxs)("div",{className:`rounded-3xl border overflow-hidden ${n||""}`,children:[i&&(0,be.jsxs)("div",{className:"bg-muted/50 p-3 hidden md:grid md:grid-cols-10 text-sm font-medium",children:[(0,be.jsx)("div",{className:"col-span-6",children:"Name"}),(0,be.jsx)("div",{className:"col-span-2",children:"Size"}),(0,be.jsx)("div",{className:"col-span-2",children:"Modified"})]}),(0,be.jsx)("div",{className:"divide-y",children:e.map(a=>(0,be.jsxs)(ge.motion.div,{whileHover:{backgroundColor:"rgba(0,0,0,0.02)"},className:"p-3 md:grid md:grid-cols-10 items-center flex flex-col md:flex-row gap-3 md:gap-0 cursor-pointer",onClick:()=>r?.(a),children:[(0,be.jsxs)("div",{className:"col-span-6 flex items-center gap-3 w-full md:w-auto",children:[(0,be.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-muted",children:a.icon}),(0,be.jsx)("div",{children:(0,be.jsx)("p",{className:"font-medium",children:a.name})})]}),(0,be.jsx)("div",{className:"col-span-2 text-sm md:text-base",children:a.size}),(0,be.jsxs)("div",{className:"col-span-2 flex items-center justify-between w-full md:w-auto",children:[(0,be.jsx)("span",{className:"text-sm md:text-base",children:a.modified}),(0,be.jsx)("div",{className:"flex gap-1",children:(0,be.jsx)(q,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl text-red-500 hover:text-red-600",onClick:s=>{s.stopPropagation(),o?.(a)},children:(0,be.jsx)(me.Trash2,{className:"h-4 w-4"})})})]})]},a.name))})]})}0&&(module.exports={FileList});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../chunk-2CS6P44F.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as FileList};
|