cortex-react-components 2.19.4 → 2.19.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-VRE6VCHX.mjs → chunk-2BR55L74.mjs} +1 -1
- package/dist/{chunk-FYQBRCQM.mjs → chunk-2BRDNDUB.mjs} +1 -1
- package/dist/{chunk-6KBZDPTR.mjs → chunk-2OCXL6FJ.mjs} +1 -1
- package/dist/{chunk-UPRS7OYQ.mjs → chunk-2UNIT7NC.mjs} +1 -1
- package/dist/{chunk-2OOJ4ZFB.mjs → chunk-3HNU2NYP.mjs} +1 -1
- package/dist/{chunk-HDKHF3EA.mjs → chunk-3NRXQBBS.mjs} +1 -1
- package/dist/{chunk-FEWOSBUJ.mjs → chunk-3Y7QG6VP.mjs} +1 -1
- package/dist/{chunk-JCWFPKF3.mjs → chunk-5EQXJS23.mjs} +1 -1
- package/dist/{chunk-MO4HRQEL.mjs → chunk-5MWZTJYP.mjs} +1 -1
- package/dist/{chunk-VDFRWGXR.mjs → chunk-6PS55VJZ.mjs} +1 -1
- package/dist/{chunk-RS4VD3ML.mjs → chunk-6R6NYDWN.mjs} +1 -1
- package/dist/{chunk-BQQ4V4PX.mjs → chunk-75F3LJMX.mjs} +1 -1
- package/dist/{chunk-4SRUEQTP.mjs → chunk-7R47MHQE.mjs} +1 -1
- package/dist/{chunk-PTZT4QJW.mjs → chunk-AJQHGVZ5.mjs} +1 -1
- package/dist/{chunk-HKMNAXLM.mjs → chunk-C4RWEPVF.mjs} +1 -1
- package/dist/{chunk-7OMPPFGG.mjs → chunk-CXOVEABI.mjs} +1 -1
- package/dist/{chunk-R5P4ZICA.mjs → chunk-D6K6RO5P.mjs} +1 -1
- package/dist/{chunk-R6AYIVIR.mjs → chunk-EM3T2XYC.mjs} +1 -1
- package/dist/{chunk-PNUBVBSR.mjs → chunk-FE7ZGUPU.mjs} +1 -1
- package/dist/{chunk-F64CA5CH.mjs → chunk-GHOL5L32.mjs} +1 -1
- package/dist/{chunk-NDRBWR7I.mjs → chunk-GNYXEKEA.mjs} +1 -1
- package/dist/{chunk-P6OSMPUQ.mjs → chunk-GTZJWMZR.mjs} +1 -1
- package/dist/{chunk-LAQ3QAUW.mjs → chunk-ITJH72Z2.mjs} +1 -1
- package/dist/{chunk-LLP4EFT4.mjs → chunk-L5NPH5RX.mjs} +1 -1
- package/dist/{chunk-O24GFE6Q.mjs → chunk-LJXTXROJ.mjs} +1 -1
- package/dist/{chunk-U3FYDDE2.mjs → chunk-NINFDOV5.mjs} +1 -1
- package/dist/{chunk-ZXKQDAXG.mjs → chunk-OTFFDAVV.mjs} +1 -1
- package/dist/{chunk-RIRZRO6U.mjs → chunk-P55W6AFU.mjs} +1 -1
- package/dist/{chunk-FCZZXVGM.mjs → chunk-PJOYZVEY.mjs} +1 -1
- package/dist/{chunk-GETYSIZV.mjs → chunk-RGOKBIQ5.mjs} +1 -1
- package/dist/{chunk-GAZHKHGB.mjs → chunk-RJGYVDOU.mjs} +1 -1
- package/dist/{chunk-T5HJS6OF.mjs → chunk-RSDUFAIB.mjs} +1 -1
- package/dist/{chunk-2HZGIJKZ.mjs → chunk-TJXOYVV5.mjs} +1 -1
- package/dist/{chunk-HSQAHQNP.mjs → chunk-TKCFCYEQ.mjs} +1 -1
- package/dist/{chunk-DPZHVBGG.mjs → chunk-TTWEHUP5.mjs} +1 -1
- package/dist/{chunk-KVLUT4U2.mjs → chunk-TVTTUSWM.mjs} +1 -1
- package/dist/{chunk-SRUG246N.mjs → chunk-TXVA6XJT.mjs} +1 -1
- package/dist/{chunk-5PJLI46T.mjs → chunk-UECG3SCG.mjs} +1 -1
- package/dist/{chunk-CQAMS7RZ.mjs → chunk-V6GK2FJG.mjs} +1 -1
- package/dist/{chunk-2GM2LPLB.mjs → chunk-WIRQ5IRT.mjs} +1 -1
- package/dist/{chunk-UZSBX5GO.mjs → chunk-X3JZSN3W.mjs} +1 -1
- package/dist/{chunk-DKGSNR4I.mjs → chunk-XED4ZCVN.mjs} +1 -1
- package/dist/{chunk-VNYUNZ3M.mjs → chunk-XGIYNUGC.mjs} +1 -1
- package/dist/{chunk-3ANJOET7.mjs → chunk-ZEALRBXW.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/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/Foundary/MainPage.mjs +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.js +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
- package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
- package/dist/components/Foundary/Views/KnowledgeView.js +1 -1
- package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
- package/dist/components/Foundary/Views/TeamsIndexView.mjs +1 -1
- package/dist/components/Foundary/Views/index.js +1 -1
- package/dist/components/Foundary/Views/index.mjs +1 -1
- package/dist/components/Foundary/document-preview-examples.js +1 -1
- package/dist/components/Foundary/document-preview-examples.mjs +1 -1
- package/dist/components/Foundary/document-preview.js +1 -1
- package/dist/components/Foundary/document-preview.mjs +1 -1
- package/dist/components/Foundary/index.js +1 -1
- package/dist/components/Foundary/index.mjs +1 -1
- package/dist/components/Foundary/knowledge-browser.js +1 -1
- package/dist/components/Foundary/knowledge-browser.mjs +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/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/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/index.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Other/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/PayloadCard/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/EpicsView.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
- package/dist/components/Projects/index.mjs +1 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/form/index.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as s}from"../../chunk-2OCXL6FJ.mjs";import{a as n}from"../../chunk-XED4ZCVN.mjs";import{a as r}from"../../chunk-TJXOYVV5.mjs";import"../../chunk-U2OXF7PJ.mjs";import{a as x}from"../../chunk-2UNIT7NC.mjs";import"../../chunk-W2LPR7SX.mjs";import"../../chunk-GAU24H4A.mjs";import{a as l}from"../../chunk-M2REXGQW.mjs";import{a as q}from"../../chunk-PJOYZVEY.mjs";import{a as m}from"../../chunk-CJ6APTVT.mjs";import"../../chunk-I4GYQZGM.mjs";import{a as g}from"../../chunk-HB57GPGK.mjs";import{a as i}from"../../chunk-H3RVI2OI.mjs";import{a as h}from"../../chunk-5HT2KC5I.mjs";import{a as j}from"../../chunk-FSCDCSVK.mjs";import{a as p}from"../../chunk-OTFFDAVV.mjs";import{a as o}from"../../chunk-NH32U7JS.mjs";import"../../chunk-QAJBJFRP.mjs";import"../../chunk-PTJVI53B.mjs";import"../../chunk-T3F3RQIC.mjs";import"../../chunk-UP67R64J.mjs";import"../../chunk-6QERRKM4.mjs";import"../../chunk-VSU7LYXZ.mjs";import"../../chunk-IPRG56MW.mjs";import"../../chunk-HFEN3KJC.mjs";import"../../chunk-L2UJOICL.mjs";import{a as k}from"../../chunk-NDZ26EG6.mjs";import{a as c}from"../../chunk-CRAFZGCI.mjs";import{a as b}from"../../chunk-JDMIQLAZ.mjs";import{a as d}from"../../chunk-6R6NYDWN.mjs";import{a}from"../../chunk-5NIEZE7A.mjs";import{a as e}from"../../chunk-J4QINTHR.mjs";import"../../chunk-R4SE63GR.mjs";import"../../chunk-DXRAJQMA.mjs";import"../../chunk-VGWDYD6Z.mjs";import{a as v}from"../../chunk-UECG3SCG.mjs";import"../../chunk-QOZ2O3FG.mjs";import"../../chunk-L5NPH5RX.mjs";import"../../chunk-KZCIHFTM.mjs";import{a as u}from"../../chunk-2R3MJSQ7.mjs";import{a as w}from"../../chunk-TKCFCYEQ.mjs";import"../../chunk-CDVRH3MC.mjs";import"../../chunk-KPTGYVDM.mjs";import"../../chunk-5RTGHMF3.mjs";import"../../chunk-UM57PWI7.mjs";import"../../chunk-ZHBYZ4HE.mjs";import"../../chunk-AB43AQKL.mjs";import"../../chunk-NGX2VCHS.mjs";import"../../chunk-6PS55VJZ.mjs";import"../../chunk-KG7HG2VO.mjs";import"../../chunk-L3V5YDPH.mjs";import"../../chunk-QC2UWZWL.mjs";import{a as t}from"../../chunk-NAGBKKTZ.mjs";import"../../chunk-JXQRVEQB.mjs";import"../../chunk-DCOFQFVJ.mjs";import"../../chunk-Z22NSJMF.mjs";import{a as f}from"../../chunk-EZC3YWSQ.mjs";import"../../chunk-YRMNCHFO.mjs";import"../../chunk-EOR2BAI2.mjs";import"../../chunk-Y7H3EUBR.mjs";import"../../chunk-4WA47ZQA.mjs";import"../../chunk-NPVUICIF.mjs";import"../../chunk-6SWKEZN6.mjs";import"../../chunk-DFIXTV2M.mjs";import"../../chunk-VDN4LQSS.mjs";import"../../chunk-FGEFYI5E.mjs";import"../../chunk-MU5WPW4N.mjs";import"../../chunk-AZKOVKSK.mjs";import"../../chunk-UVHMI3PU.mjs";import"../../chunk-U5PBLRRV.mjs";import"../../chunk-Q5Q3DJWU.mjs";import"../../chunk-4QRKVSTE.mjs";import"../../chunk-E4TE4NV6.mjs";import"../../chunk-JFFTEK6Z.mjs";import"../../chunk-JHNVX4UB.mjs";import"../../chunk-7BXIU4ZM.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-76M7JE4D.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-OYZDAMCS.mjs";import"../../chunk-5NRGSTPV.mjs";import"../../chunk-ZFUP5NVF.mjs";import"../../chunk-4UIARERB.mjs";import"../../chunk-D4IMQTVU.mjs";import"../../chunk-7GSXNSLD.mjs";import"../../chunk-YNCJATT7.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-IC2ABKAM.mjs";import"../../chunk-FHMQVAKQ.mjs";import"../../chunk-7WIO2CIC.mjs";import"../../chunk-X5KZKO2V.mjs";import"../../chunk-6C4WESLL.mjs";import"../../chunk-ITJH72Z2.mjs";import"../../chunk-L3BLBPSR.mjs";import"../../chunk-ZDPQXVTF.mjs";import"../../chunk-PDY7JYY3.mjs";import"../../chunk-Q5XT55O3.mjs";import"../../chunk-22LHS2J6.mjs";import"../../chunk-WISC5QJV.mjs";import"../../chunk-55EX54R7.mjs";import"../../chunk-FMJBJ3HN.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-EGEO3FNE.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-WU3JMLSC.mjs";import"../../chunk-BZAYEKYC.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-CV7PH2KH.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as AppSidebarLeft,g as ColleagueCard,i as ColleagueForm,j as ColleagueTypeSelection,n as ColleaguesView,b as DashboardHeader,s as DashboardPage,k as DigitalColleagueClone,l as DigitalColleagueOptions,o as DocumentEdit,p as DocumentPreview,t as FileView,c as FoundaryLayout,q as KnowledgeBrowser,h as KnowledgeSearch,r as KnowledgeView,d as MainPage,e as ManagementSidebar,u as PlanningView,v as ProjectView,w as ProjectsIndexView,f as SearchableSelect,m as TeamForm,x as TeamsIndexView};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";"use client";var To=Object.create;var He=Object.defineProperty;var Io=Object.getOwnPropertyDescriptor;var Ho=Object.getOwnPropertyNames;var Eo=Object.getPrototypeOf,Ao=Object.prototype.hasOwnProperty;var Lo=(e,t)=>{for(var o in t)He(e,o,{get:t[o],enumerable:!0})},gt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ho(t))!Ao.call(e,n)&&n!==o&&He(e,n,{get:()=>t[n],enumerable:!(r=Io(t,n))||r.enumerable});return e};var $=(e,t,o)=>(o=e!=null?To(Eo(e)):{},gt(t||!e||!e.__esModule?He(o,"default",{value:e,enumerable:!0}):o,e)),Vo=e=>gt(He({},"__esModule",{value:!0}),e);var Lr={};Lo(Lr,{KnowledgeBrowser:()=>Ar});module.exports=Vo(Lr);var ve=require("motion/react"),te=require("lucide-react"),ae=require("react");var Pt=$(require("react"));var St=require("clsx");var Ge="-",zo=e=>{let t=Oo(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{let s=i.split(Ge);return s[0]===""&&s.length!==1&&s.shift(),vt(s,t)||Bo(i)},getConflictingClassGroupIds:(i,s)=>{let p=o[i]||[];return s&&r[i]?[...p,...r[i]]:p}}},vt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?vt(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let a=e.join(Ge);return t.validators.find(({validator:i})=>i(a))?.classGroupId},bt=/^\[(.+)\]$/,Bo=e=>{if(bt.test(e)){let t=bt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Oo=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Fo(Object.entries(e.classGroups),o).forEach(([a,i])=>{_e(i,r,a,t)}),r},_e=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let a=n===""?t:ht(t,n);a.classGroupId=o;return}if(typeof n=="function"){if(Ko(n)){_e(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([a,i])=>{_e(i,ht(t,a),o,r)})})},ht=(e,t)=>{let o=e;return t.split(Ge).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Ko=e=>e.isThemeGetter,Fo=(e,t)=>t?e.map(([o,r])=>{let n=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[t+i,s])):a);return[o,n]}):e,_o=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(a,i)=>{o.set(a,i),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let i=o.get(a);if(i!==void 0)return i;if((i=r.get(a))!==void 0)return n(a,i),i},set(a,i){o.has(a)?o.set(a,i):n(a,i)}}},xt="!",Go=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],a=t.length,i=s=>{let p=[],S=0,R=0,v;for(let T=0;T<s.length;T++){let w=s[T];if(S===0){if(w===n&&(r||s.slice(T,T+a)===t)){p.push(s.slice(R,T)),R=T+a;continue}if(w==="/"){v=T;continue}}w==="["?S++:w==="]"&&S--}let I=p.length===0?s:s.substring(R),h=I.startsWith(xt),x=h?I.substring(1):I,A=v&&v>R?v-R:void 0;return{modifiers:p,hasImportantModifier:h,baseClassName:x,maybePostfixModifierPosition:A}};return o?s=>o({className:s,parseClassName:i}):i},$o=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},jo=e=>({cache:_o(e.cacheSize),parseClassName:Go(e),...zo(e)}),Wo=/\s+/,Uo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,a=[],i=e.trim().split(Wo),s="";for(let p=i.length-1;p>=0;p-=1){let S=i[p],{modifiers:R,hasImportantModifier:v,baseClassName:I,maybePostfixModifierPosition:h}=o(S),x=!!h,A=r(x?I.substring(0,h):I);if(!A){if(!x){s=S+(s.length>0?" "+s:s);continue}if(A=r(I),!A){s=S+(s.length>0?" "+s:s);continue}x=!1}let T=$o(R).join(":"),w=v?T+xt:T,H=w+A;if(a.includes(H))continue;a.push(H);let k=n(A,x);for(let O=0;O<k.length;++O){let X=k[O];a.push(w+X)}s=S+(s.length>0?" "+s:s)}return s};function Zo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=wt(t))&&(r&&(r+=" "),r+=o);return r}var wt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=wt(e[r]))&&(o&&(o+=" "),o+=t);return o};function qo(e,...t){let o,r,n,a=i;function i(p){let S=t.reduce((R,v)=>v(R),e());return o=jo(S),r=o.cache.get,n=o.cache.set,a=s,s(p)}function s(p){let S=r(p);if(S)return S;let R=Uo(p,o);return n(p,R),R}return function(){return a(Zo.apply(null,arguments))}}var L=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},yt=/^\[(?:([a-te-]+):)?(.+)\]$/i,Xo=/^\Rt+\/\Rt+$/,Jo=new Set(["px","full","screen"]),Qo=/^(\Rt+(\.\Rt+)?)?(xs|sm|md|lg|xl)$/,Yo=/\Rt+(%|px|r?em|[sdl]?v([hwib]|min|max)|ve|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,er=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,tr=/^(inset_)?-?((\Rt+)?\.?(\Rt+)[a-te]+|0)Rt-?((\Rt+)?\.?(\Rt+)[a-te]+|0)/,or=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,le=e=>xe(e)||Jo.has(e)||Xo.test(e),me=e=>we(e,"length",cr),xe=e=>!!e&&!Number.isNaN(Number(e)),Fe=e=>we(e,"number",xe),Se=e=>!!e&&Number.isInteger(Number(e)),rr=e=>e.endsWith("%")&&xe(e.slice(0,-1)),b=e=>yt.test(e),pe=e=>Qo.test(e),ar=new Set(["length","size","percentage"]),nr=e=>we(e,ar,Ct),ir=e=>we(e,"position",Ct),sr=new Set(["image","url"]),lr=e=>we(e,sr,pr),dr=e=>we(e,"",mr),Pe=()=>!0,we=(e,t,o)=>{let r=yt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},cr=e=>Yo.test(e)&&!er.test(e),Ct=()=>!1,mr=e=>tr.test(e),pr=e=>or.test(e);var ur=()=>{let e=L("colors"),t=L("spacing"),o=L("blur"),r=L("brightness"),n=L("borderColor"),a=L("borderRadius"),i=L("borderSpacing"),s=L("borderWidth"),p=L("contrast"),S=L("grayscale"),R=L("hueRotate"),v=L("invert"),I=L("gap"),h=L("gradientColorStops"),x=L("gradientColorStopPositions"),A=L("inset"),T=L("margin"),w=L("opacity"),H=L("padding"),k=L("saturate"),O=L("scale"),X=L("sepia"),g=L("skew"),y=L("space"),M=L("translate"),Z=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",b,t],P=()=>[b,t],ne=()=>["",le,me],ie=()=>["auto",xe,b],f=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],G=()=>["solid","dashed","dotted","double","none"],j=()=>["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"],oe=()=>["","0",b],ft=()=>["auto","avoid","all","avoid-page","page","left","right","column"],se=()=>[xe,b];return{cacheSize:500,separator:":",theme:{colors:[Pe],spacing:[le,me],blur:["none","",pe,b],brightness:se(),borderColor:[e],borderRadius:["none","","full",pe,b],borderSpacing:P(),borderWidth:ne(),contrast:se(),grayscale:oe(),hueRotate:se(),invert:oe(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[rr,me],inset:q(),margin:q(),opacity:se(),padding:P(),saturate:se(),scale:se(),sepia:oe(),skew:se(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",b]}],container:["container"],columns:[{columns:[pe]}],"break-after":[{"break-after":ft()}],"break-before":[{"break-before":ft()}],"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:[...f(),b]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[A]}],"inset-x":[{"inset-x":[A]}],"inset-y":[{"inset-y":[A]}],start:[{start:[A]}],end:[{end:[A]}],top:[{top:[A]}],right:[{right:[A]}],bottom:[{bottom:[A]}],left:[{left:[A]}],visibility:["visible","invisible","collapse"],te:[{te:["auto",Se,b]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",b]}],grow:[{grow:oe()}],shrink:[{shrink:oe()}],order:[{order:["first","last","none",Se,b]}],"grid-cols":[{"grid-cols":[Pe]}],"col-start-end":[{col:["auto",{span:["full",Se,b]},b]}],"col-start":[{"col-start":ie()}],"col-end":[{"col-end":ie()}],"grid-rows":[{"grid-rows":[Pe]}],"row-start-end":[{row:["auto",{span:[Se,b]},b]}],"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",b]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",b]}],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:[H]}],px:[{px:[H]}],py:[{py:[H]}],ps:[{ps:[H]}],pe:[{pe:[H]}],ve:[{ve:[H]}],pr:[{pr:[H]}],pb:[{pb:[H]}],pl:[{pl:[H]}],Rt:[{Rt:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],ve:[{ve:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[y]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[y]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",b,t]}],"min-w":[{"min-w":[b,t,"min","max","fit"]}],"max-w":[{"max-w":[b,t,"none","full","min","max","fit","prose",{screen:[pe]},pe]}],h:[{h:[b,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[b,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[b,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[b,t,"auto","min","max","fit"]}],"font-size":[{text:["base",pe,me]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Fe]}],"font-family":[{font:[Pe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",b]}],"line-clamp":[{"line-clamp":["none",xe,Fe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",le,b]}],"list-image":[{"list-image":["none",b]}],"list-style-type":[{list:["none","disc","decimal",b]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",le,me]}],"underline-offset":[{"underline-offset":["auto",le,b]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",b]}],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",b]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...f(),ir]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",nr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","Rt","tl"]},lr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-Rt":[{"rounded-Rt":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"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-Rt":[{"border-Rt":[s]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...G(),"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":[w]}],"divide-style":[{divide:G()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-Rt":[{"border-Rt":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...G()]}],"outline-offset":[{"outline-offset":[le,b]}],"outline-w":[{outline:[le,me]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[le,me]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",pe,dr]}],"shadow-color":[{shadow:[Pe]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...j(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":j()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",pe,b]}],grayscale:[{grayscale:[S]}],"hue-rotate":[{"hue-rotate":[R]}],invert:[{invert:[v]}],saturate:[{saturate:[k]}],sepia:[{sepia:[X]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[S]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[X]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",b]}],duration:[{duration:se()}],ease:[{ease:["linear","in","out","in-out",b]}],delay:[{delay:se()}],animate:[{animate:["none","spin","ping","pulse","bounce",b]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-x":[{"scale-x":[O]}],"scale-y":[{"scale-y":[O]}],rotate:[{rotate:[Se,b]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[g]}],"skew-y":[{"skew-y":[g]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",b]}],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",b]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-Rt":[{"scroll-Rt":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-ve":[{"scroll-ve":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-ve":[{"scroll-ve":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",b]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[le,me,Fe]}],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","ve","pr","pb","pl"],px:["pr","pl"],py:["ve","pb"],Rt:["mx","my","ms","me","ve","mr","mb","ml"],mx:["mr","ml"],my:["ve","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-Rt","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-Rt":["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-Rt"],"border-w-x":["border-w-r","border-w-Rt"],"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-Rt"],"border-color-x":["border-color-r","border-color-Rt"],"border-color-y":["border-color-t","border-color-b"],"scroll-Rt":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-ve","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-ve","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-ve","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-ve","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Nt=qo(ur);function u(...e){return Nt((0,St.clsx)(e))}var Rt=require("react/jsx-runtime"),ue=Pt.forwardRef(({className:e,type:t,...o},r)=>(0,Rt.jsx)("input",{type:t,className:u("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));ue.displayName="Input";var $e=$(require("react")),Q=$(require("@radix-ui/react-scroll-area"));var je=$e.forwardRef(({className:e,children:t,...o},r)=>(0,Rt.jsxs)(Q.Root,{ref:r,className:u("relative overflow-hidden",e),...o,children:[(0,Rt.jsx)(Q.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Rt.jsx)(Dt,{}),(0,Rt.jsx)(Q.Corner,{})]}));je.displayName=Q.Root.displayName;var Dt=$e.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,Rt.jsx)(Q.ScrollAreaScrollbar,{ref:r,orientation:t,className:u("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-Rt border-Rt-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,Rt.jsx)(Q.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Dt.displayName=Q.ScrollAreaScrollbar.displayName;var Mt=require("@radix-ui/react-slot"),kt=require("class-variance-authority"),Tt=$(require("react")),fr=(0,kt.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"}}}),re=Tt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...n},a)=>(0,Rt.jsx)(e?Mt.Slot:"button",{className:u(fr({className:t,size:o,variant:r})),ref:a,...n}));re.displayName="Button";var Re=$(require("react")),F=$(require("@radix-ui/react-dialog"));var Et=F.Root;var We=F.Portal;var Ee=Re.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(F.Overlay,{ref:o,className:u("fixed inset-0 te-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Ee.displayName=F.Overlay.displayName;var gr=Re.forwardRef(({className:e,children:t,...o},r)=>(0,Rt.jsxs)(We,{children:[(0,Rt.jsx)(Ee,{}),(0,Rt.jsxs)(F.Content,{ref:r,className:u("fixed left-[50%] top-[50%] te-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:[t,(0,Rt.jsxs)(F.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,Rt.jsx)(te.X,{className:"h-4 w-4"}),(0,Rt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));gr.displayName=F.Content.displayName;var br=({className:e,...t})=>(0,Rt.jsx)("div",{className:u("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});br.displayName="DialogHeader";var hr=({className:e,...t})=>(0,Rt.jsx)("div",{className:u("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});hr.displayName="DialogFooter";var vr=Re.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(F.Title,{ref:o,className:u("text-lg font-semibold leading-none tracking-tight",e),...t}));vr.displayName=F.Title.displayName;var xr=Re.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(F.Description,{ref:o,className:u("text-sm text-muted-foreground",e),...t}));xr.displayName=F.Description.displayName;var Po=$(require("@radix-ui/react-dialog"));var At=$(require("react")),De=At.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)("textarea",{className:u("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));De.displayName="Textarea";var C=$(require("@radix-ui/react-select")),ge=$(require("react")),Vt=C.Root;var zt=C.Value,Ue=ge.forwardRef(({children:e,className:t,...o},r)=>(0,Rt.jsxs)(C.Trigger,{className:u("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",t),ref:r,...o,children:[e,(0,Rt.jsx)(C.Icon,{asChild:!0,children:(0,Rt.jsx)(te.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Ue.displayName=C.Trigger.displayName;var Bt=ge.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(C.ScrollUpButton,{className:u("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Rt.jsx)(te.ChevronUp,{className:"h-4 w-4"})}));Bt.displayName=C.ScrollUpButton.displayName;var Ot=ge.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(C.ScrollDownButton,{className:u("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Rt.jsx)(te.ChevronDown,{className:"h-4 w-4"})}));Ot.displayName=C.ScrollDownButton.displayName;var Ze=ge.forwardRef(({children:e,className:t,position:o="popper",...r},n)=>(0,Rt.jsx)(C.Portal,{children:(0,Rt.jsxs)(C.Content,{className:u("relative te-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",t),position:o,ref:n,...r,children:[(0,Rt.jsx)(Bt,{}),(0,Rt.jsx)(C.Viewport,{className:u("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Rt.jsx)(Ot,{})]})}));Ze.displayName=C.Content.displayName;var wr=ge.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(C.Label,{className:u("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));wr.displayName=C.Label.displayName;var Ae=ge.forwardRef(({children:e,className:t,...o},r)=>(0,Rt.jsxs)(C.Item,{className:u("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",t),ref:r,...o,children:[(0,Rt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Rt.jsx)(C.ItemIndicator,{children:(0,Rt.jsx)(te.Check,{className:"h-4 w-4"})})}),(0,Rt.jsx)(C.ItemText,{children:e})]}));Ae.displayName=C.Item.displayName;var yr=ge.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(C.Separator,{className:u("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));yr.displayName=C.Separator.displayName;var Kt=$(require("react")),qe=$(require("@radix-ui/react-label"));var Cr=(0,kt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Xe=Kt.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(qe.Root,{ref:o,className:u(Cr(),e),...t}));Xe.displayName=qe.Root.displayName;var Qe=({fieldName:e,value:t,label:o,multiline:r=!1,onSave:n,className:a="",disabled:i=!1})=>{let[s,p]=(0,ae.useState)(!1),[S,R]=(0,ae.useState)(""),v=()=>{i||(p(!0),R(t))},I=async()=>{S!==t&&await n(e,S),p(!1)},h=x=>{x.key==="Enter"&&!r||x.key==="Enter"&&x.ctrlKey&&r?I():x.key==="Escape"&&(p(!1),R(""))};return(0,Rt.jsxs)("div",{className:`space-y-2 ${a}`,children:[(0,Rt.jsx)(Xe,{children:o}),s?r?(0,Rt.jsx)(De,{value:S,onChange:x=>R(x.target.value),onBlur:I,onKeyDown:h,autoFocus:!0,rows:4,className:"resize-none"}):(0,Rt.jsx)(ue,{value:S,onChange:x=>R(x.target.value),onBlur:I,onKeyPress:h,autoFocus:!0,className:"text-lg font-medium"}):(0,Rt.jsxs)("div",{onClick:v,className:`${i?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 p-2 rounded border border-transparent hover:border-border transition-colors group ${r?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,Rt.jsx)("span",{className:r?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!i&&(0,Rt.jsx)(te.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var uo=require("@payloadcms/richtext-lexical/lexical/react/LexicalAutoFocusPlugin"),fo=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposer"),go=require("@payloadcms/richtext-lexical/lexical/react/LexicalContentEditable"),bo=require("@payloadcms/richtext-lexical/lexical/react/LexicalErrorBoundary"),ho=require("@payloadcms/richtext-lexical/lexical/react/LexicalHistoryPlugin"),vo=require("@payloadcms/richtext-lexical/lexical/react/LexicalRichTextPlugin"),xo=require("@payloadcms/richtext-lexical/lexical/react/LexicalListPlugin"),Oe=require("@payloadcms/richtext-lexical/lexical/list"),wo=require("@payloadcms/richtext-lexical/lexical/rich-text"),yo=require("@payloadcms/richtext-lexical/lexical/react/LexicalOnChangePlugin");var co=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposerContext"),mo=require("@payloadcms/richtext-lexical/lexical/utils"),D=require("@payloadcms/richtext-lexical/lexical"),lt=require("@payloadcms/richtext-lexical/lexical/selection");var Nr=()=>(0,Rt.jsx)("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Rt.jsx)("path",{Rt:"M10.6772 15H6.27017V5.718H10.4172C12.6792 5.718 13.8492 6.602 13.8492 8.292C13.8492 9.098 13.1992 9.982 12.4712 10.216C13.3812 10.476 14.1742 11.256 14.1742 12.322C14.1742 14.09 12.9002 15 10.6772 15ZM8.46717 9.501H10.3262C11.3012 9.501 11.7042 9.046 11.7042 8.409C11.7042 7.72 11.2362 7.317 10.3392 7.317H8.46717V9.501ZM8.46717 11.061V13.401H10.4822C11.4702 13.401 11.9642 12.959 11.9642 12.218C11.9642 11.49 11.4702 11.061 10.4822 11.061H8.46717Z",fill:"currentColor"})}),$t=Nr;var Sr=()=>(0,Rt.jsx)("svg",{"aria-hidden":"true",className:"",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Rt.jsx)("path",{Rt:"M11.311 14.2969L11.0327 15H6.18408L6.4624 14.2969C7.54639 14.2969 7.70752 14.209 7.83936 13.8721L10.8423 6.45996C10.8716 6.38672 10.8862 6.32812 10.8862 6.26953C10.8862 6.09375 10.6519 6.03516 9.80225 6.03516L10.0952 5.33203H14.9438L14.6509 6.03516C13.5669 6.03516 13.4204 6.12305 13.2886 6.45996L10.2856 13.8721C10.2563 13.9453 10.2271 14.0039 10.2271 14.0625C10.2271 14.2383 10.4614 14.2969 11.311 14.2969Z",fill:"currentColor"})}),jt=Sr;var Pr=()=>(0,Rt.jsxs)("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[(0,Rt.jsx)("path",{Rt:"M13.9656 11.256C13.9656 13.791 12.5096 15.156 10.0006 15.156C7.50461 15.156 6.03561 13.791 6.03561 11.23V5.718H7.76461V11.243C7.76461 12.868 8.50561 13.778 10.0006 13.778C11.4956 13.778 12.2496 12.868 12.2496 11.243V5.718H13.9656V11.256Z",fill:"currentColor"}),(0,Rt.jsx)("path",{Rt:"M5.09961 16.3H14.9016V16.95H5.09961V16.3Z",fill:"currentColor"})]}),Wt=Pr;var Rr=()=>(0,Rt.jsxs)("svg",{"aria-hidden":"true",className:"",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[(0,Rt.jsx)("path",{Rt:"M5.50756 12.76H7.42756C7.56256 14.215 8.82256 14.71 10.1576 14.71C11.4326 14.71 12.4226 14.14 12.4226 13.06C12.4226 12.28 11.9576 11.845 10.6676 11.605L8.70256 11.245C7.12756 10.96 5.85256 10.21 5.85256 8.335C5.85256 6.43 7.53256 5.11 9.87256 5.11C12.4226 5.11 13.9526 6.22 14.1626 8.23H12.2876C12.1526 7.18 11.2226 6.595 9.88756 6.595C8.59756 6.595 7.78756 7.27 7.78756 8.215C7.78756 9.1 8.34256 9.385 9.49756 9.61L11.5676 10.015C13.3226 10.345 14.3726 11.215 14.3726 12.94C14.3726 14.89 12.5876 16.18 10.2176 16.18C7.66756 16.18 5.70256 15.115 5.50756 12.76Z",fill:"currentColor"}),(0,Rt.jsx)("path",{Rt:"M4.99756 11.44H15.0026V12.19H4.99756V11.44Z",fill:"currentColor"})]}),Ut=Rr;var Dr=()=>(0,Rt.jsx)("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Rt.jsx)("path",{Rt:"M10.167 15L7.45002 11.36L4.73302 15H2.91302L6.55302 10.177L3.23802 5.718H5.20102L7.54102 8.89L9.89402 5.718H11.714L8.43802 10.06L12.13 15H10.167ZM16.7768 13.258C16.7768 14.155 16.1398 14.532 15.2038 15C14.5538 15.325 14.2808 15.546 14.2418 15.78H16.7898V16.82H12.7208V16.339C12.7208 15.286 13.5918 14.675 14.3588 14.233C15.0868 13.83 15.4378 13.635 15.4378 13.232C15.4378 12.894 15.2038 12.686 14.8268 12.686C14.3848 12.686 14.1248 13.024 14.1118 13.427H12.7468C12.8248 12.426 13.5528 11.633 14.8398 11.633C15.9448 11.633 16.7768 12.257 16.7768 13.258Z",fill:"currentColor"})}),Zt=Dr;var Mr=()=>(0,Rt.jsx)("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Rt.jsx)("path",{Rt:"M10.167 15L7.45002 11.36L4.73302 15H2.91302L6.55302 10.177L3.23802 5.718H5.20102L7.54102 8.89L9.89402 5.718H11.714L8.43802 10.06L12.13 15H10.167ZM16.7768 7.252C16.7768 8.149 16.1398 8.526 15.2038 8.994C14.5538 9.319 14.2808 9.54 14.2418 9.774H16.7898V10.814H12.7208V10.333C12.7208 9.28 13.5918 8.669 14.3588 8.227C15.0868 7.824 15.4378 7.629 15.4378 7.226C15.4378 6.888 15.2038 6.68 14.8268 6.68C14.3848 6.68 14.1248 7.018 14.1118 7.421H12.7468C12.8248 6.42 13.5528 5.627 14.8398 5.627C15.9448 5.627 16.7768 6.251 16.7768 7.252Z",fill:"currentColor"})}),qt=Mr;var Xt=()=>(0,Rt.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Rt.jsx)("path",{Rt:"M11.708 14.5H7.79785V13.9414H8.01367C9.00391 13.9414 9.15625 13.9033 9.15625 13.6113V6.70508H8.07715C6.82031 6.70508 6.73145 7.08594 6.28711 8.67285H5.80469L5.91895 6.12109H13.5869L13.7012 8.67285H13.2188C12.7744 7.08594 12.6855 6.70508 11.4287 6.70508H10.3496V13.6113C10.3496 13.9033 10.502 13.9414 11.4922 13.9414H11.708V14.5Z",fill:"currentColor"})}),Jt=()=>(0,Rt.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Rt.jsx)("path",{Rt:"M4.639 13.5V7.074H6.196V9.648H9.076V7.074H10.642V13.5H9.076V10.836H6.196V13.5H4.639ZM11.5656 9.045V8.019C12.6636 8.019 13.1316 7.731 13.2846 7.065H14.4006V13.5H12.8436V9.045H11.5656Z",fill:"currentColor"})}),Qt=()=>(0,Rt.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Rt.jsx)("path",{Rt:"M4.139 13.5V7.074H5.696V9.648H8.576V7.074H10.142V13.5H8.576V10.836H5.696V13.5H4.139ZM15.9796 8.973C15.9796 10.116 15.1696 10.656 14.0356 11.232C13.2256 11.646 12.8206 11.943 12.7846 12.294H15.9886V13.5H11.0566V12.951C11.0566 11.601 12.1636 10.845 13.1176 10.287C14.0356 9.756 14.5126 9.486 14.5126 8.946C14.5126 8.46 14.2156 8.145 13.6306 8.145C13.0186 8.145 12.6586 8.613 12.6226 9.198H11.1196C11.2186 7.947 12.1006 6.966 13.6396 6.966C15.0346 6.966 15.9796 7.785 15.9796 8.973Z",fill:"currentColor"})}),Yt=()=>(0,Rt.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Rt.jsx)("path",{Rt:"M4.139 13.5V7.074H5.696V9.648H8.576V7.074H10.142V13.5H8.576V10.836H5.696V13.5H4.139ZM16.1146 11.745C16.1146 12.744 15.2236 13.608 13.6126 13.608C12.0736 13.608 11.0926 12.762 10.9846 11.547H12.4696C12.5146 12.114 13.0006 12.456 13.6126 12.456C14.2876 12.456 14.6746 12.132 14.6746 11.619C14.6746 11.061 14.2426 10.836 13.6216 10.836H12.9826V9.738H13.6036C14.1526 9.738 14.5486 9.486 14.5486 8.937C14.5486 8.46 14.2156 8.127 13.6486 8.127C13.0366 8.127 12.6586 8.514 12.6226 9.045H11.1916C11.2726 7.929 12.1276 6.966 13.6666 6.966C15.1876 6.966 15.9706 7.848 15.9706 8.865C15.9706 9.603 15.5026 10.143 14.8186 10.269C15.6196 10.404 16.1146 10.971 16.1146 11.745Z",fill:"currentColor"})}),eo=()=>(0,Rt.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Rt.jsx)("path",{Rt:"M3.639 13.5V7.074H5.196V9.648H8.076V7.074H9.642V13.5H8.076V10.836H5.196V13.5H3.639ZM15.1736 7.074V10.854H16.3706V12.033H15.1736V13.5H13.6796V12.033H10.5116V10.845L13.4996 7.074H15.1736ZM13.6796 8.46L11.8256 10.854H13.6796V8.46Z",fill:"currentColor"})});var ce=$(require("react")),N=$(require("@radix-ui/react-dropdown-menu")),ye=require("@radix-ui/react-icons");var Le=N.Root,Ve=N.Trigger;var to=ce.forwardRef(({className:e,inset:t,children:o,...r},n)=>(0,Rt.jsxs)(N.SubTrigger,{ref:n,className:u("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[o,(0,Rt.jsx)(ye.ChevronRightIcon,{className:"ml-auto"})]}));to.displayName=N.SubTrigger.displayName;var oo=ce.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(N.SubContent,{ref:o,className:u("te-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));oo.displayName=N.SubContent.displayName;var Te=ce.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Rt.jsx)(N.Portal,{children:(0,Rt.jsx)(N.Content,{ref:r,sideOffset:t,className:u("te-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Te.displayName=N.Content.displayName;var Ie=ce.forwardRef(({className:e,inset:t,...o},r)=>(0,Rt.jsx)(N.Item,{ref:r,className:u("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));Ie.displayName=N.Item.displayName;var ro=ce.forwardRef(({className:e,children:t,checked:o,...r},n)=>(0,Rt.jsxs)(N.CheckboxItem,{ref:n,className:u("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...r,children:[(0,Rt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Rt.jsx)(N.ItemIndicator,{children:(0,Rt.jsx)(ye.CheckIcon,{className:"h-4 w-4"})})}),t]}));ro.displayName=N.CheckboxItem.displayName;var ao=ce.forwardRef(({className:e,children:t,...o},r)=>(0,Rt.jsxs)(N.RadioItem,{ref:r,className:u("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,Rt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Rt.jsx)(N.ItemIndicator,{children:(0,Rt.jsx)(ye.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));ao.displayName=N.RadioItem.displayName;var no=ce.forwardRef(({className:e,inset:t,...o},r)=>(0,Rt.jsx)(N.Label,{ref:r,className:u("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));no.displayName=N.Label.displayName;var io=ce.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(N.Separator,{ref:o,className:u("-mx-1 my-1 h-px bg-muted",e),...t}));io.displayName=N.Separator.displayName;var so=({className:e,...t})=>(0,Rt.jsx)("span",{className:u("ml-auto text-xs tracking-widest opacity-60",e),...t});so.displayName="DropdownMenuShortcut";var lo=$(require("react")),ee=$(require("@radix-ui/react-tooltip"));var at=ee.Provider,nt=ee.Root,it=ee.Trigger,ze=lo.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Rt.jsx)(ee.Portal,{children:(0,Rt.jsx)(ee.Content,{ref:r,sideOffset:t,className:u("te-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));ze.displayName=ee.Content.displayName;var st=1;function kr(){return(0,Rt.jsx)("span",{className:"border border-[#222222]"})}function dt(){let[e]=(0,co.useLexicalComposerContext)(),t=(0,ae.useRef)(null),[o,r]=(0,ae.useState)(!1),[n,a]=(0,ae.useState)(!1),[i,s]=(0,ae.useState)(!1),[p,S]=(0,ae.useState)(!1),[R,v]=(0,ae.useState)(!1),[I,h]=(0,ae.useState)(!1),[x,A]=(0,ae.useState)(!1),[T,w]=(0,ae.useState)(!1),[H,k]=(0,ae.useState)(!1),[O,X]=(0,ae.useState)("left"),[g,y]=(0,ae.useState)("p"),M=f=>{e.update(()=>{let G=(0,D.$getSelection)();(0,D.$isRangeSelection)(G)&&(f==="p"?(0,lt.$setBlocksType)(G,()=>(0,D.$createParagraphNode)()):(0,lt.$setBlocksType)(G,()=>(0,wo.$createHeadingNode)(f)))})},Z=(0,ae.useCallback)(()=>{let f=(0,D.$getSelection)();if((0,D.$isRangeSelection)(f)){s(f.hasFormat("bold")),S(f.hasFormat("italic")),v(f.hasFormat("underline")),h(f.hasFormat("strikethrough")),A(f.hasFormat("subscript")),w(f.hasFormat("superscript"));let G=f.anchor.getNode(),j=G;for(;j&&!(0,D.$isParagraphNode)(j)&&j!==(0,D.$getRoot)();){let oe=j.getParent();oe&&(j=oe)}if(j){let oe=j.getFormatType();X(oe||"left")}let be=G.getTopLevelElement()?.__tag;y(be||"p")}},[]);(0,ae.useEffect)(()=>(0,mo.mergeRegister)(e.registerUpdateListener(({editorState:f})=>{f.read(()=>{Z()})}),e.registerCommand(D.SELECTION_CHANGE_COMMAND,(f,G)=>(Z(),!1),st),e.registerCommand(D.CAN_UNDO_COMMAND,f=>(r(f),!1),st),e.registerCommand(D.CAN_REDO_COMMAND,f=>(a(f),!1),st)),[e,Z]);let E=[[{label:"Undo",icon:(0,Rt.jsx)(te.RotateCcw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(D.UNDO_COMMAND,void 0)},disabled:!o},{label:"Redo",icon:(0,Rt.jsx)(te.RotateCw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(D.UNDO_COMMAND,void 0)},disabled:!n}],[{label:"Bold",icon:(0,Rt.jsx)($t,{}),onClick:()=>{e.dispatchCommand(D.FORMAT_TEXT_COMMAND,"bold")},value:"bold",active:i},{label:"Italic",icon:(0,Rt.jsx)(jt,{}),onClick:()=>{e.dispatchCommand(D.FORMAT_TEXT_COMMAND,"italic")},value:"italic",active:p},{label:"Underline",icon:(0,Rt.jsx)(Wt,{}),onClick:()=>{e.dispatchCommand(D.FORMAT_TEXT_COMMAND,"underline")},value:"underline",active:R},{label:"Strikethrough",icon:(0,Rt.jsx)(Ut,{}),onClick:()=>{e.dispatchCommand(D.FORMAT_TEXT_COMMAND,"strikethrough")},value:"strikethrough",active:I},{label:"Subscript",icon:(0,Rt.jsx)(Zt,{}),onClick:()=>{e.dispatchCommand(D.FORMAT_TEXT_COMMAND,"subscript")},value:"subscript",active:x},{label:"Superscript",icon:(0,Rt.jsx)(qt,{}),onClick:()=>{e.dispatchCommand(D.FORMAT_TEXT_COMMAND,"superscript")},value:"superscript",active:T}]],q=[{label:"Left Align",direction:"left",icon:(0,Rt.jsx)(te.AlignLeft,{width:15,height:15}),onClick:()=>{e.dispatchCommand(D.FORMAT_ELEMENT_COMMAND,"left")}},{label:"Center Align",direction:"center",icon:(0,Rt.jsx)(te.AlignCenter,{width:15,height:15}),onClick:()=>{e.dispatchCommand(D.FORMAT_ELEMENT_COMMAND,"center")}},{label:"Right Align",direction:"right",icon:(0,Rt.jsx)(te.AlignRight,{width:15,height:15}),onClick:()=>{e.dispatchCommand(D.FORMAT_ELEMENT_COMMAND,"right")}},{label:"Justify Align",direction:"justify",icon:(0,Rt.jsx)(te.AlignJustify,{width:15,height:15}),onClick:()=>{e.dispatchCommand(D.FORMAT_ELEMENT_COMMAND,"justify")}}],ne=[{label:"Normal Text",value:"p",icon:(0,Rt.jsx)(Xt,{}),onClick:()=>M("p")},{label:"Heading 1",value:"h1",icon:(0,Rt.jsx)(Jt,{}),onClick:()=>M("h1")},{label:"Heading 2",value:"h2",icon:(0,Rt.jsx)(Qt,{}),onClick:()=>M("h2")},{label:"Heading 3",value:"h3",icon:(0,Rt.jsx)(Yt,{}),onClick:()=>M("h3")},{label:"Heading 4",value:"h4",icon:(0,Rt.jsx)(eo,{}),onClick:()=>M("h4")},...[{label:"Unordered List",value:"ul",icon:(0,Rt.jsx)(te.List,{width:15,height:15}),onClick:()=>{e.dispatchCommand(Oe.INSERT_UNORDERED_LIST_COMMAND,void 0)}},{label:"Ordered List",value:"ol",icon:(0,Rt.jsx)(te.ListOrdered,{width:15,height:15}),onClick:()=>{e.dispatchCommand(Oe.INSERT_ORDERED_LIST_COMMAND,void 0)}}]],ie=[{label:"Insert Image",icon:(0,Rt.jsx)(te.ImageUp,{width:15,height:15}),onClick:()=>{k(!0)},disabled:!1}];return(0,Rt.jsx)("div",{className:"flex justify-between border border-[#222222] py-2 px-2",children:(0,Rt.jsxs)("div",{className:"flex gap-2 ",ref:t,children:[E.map((f,G)=>(0,Rt.jsxs)(ae.Fragment,{children:[(0,Rt.jsx)("div",{className:"flex items-center gap-2",children:f.map((j,be)=>(0,Rt.jsx)("div",{role:"button","aria-disabled":j.disabled||!1,onClick:j.onClick,className:u("p-1 transition-all flex items-center justify-center rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",j.active&&"bg-[#3c3c3c]"),"aria-label":j.label,children:(0,Rt.jsx)(at,{children:(0,Rt.jsxs)(nt,{children:[(0,Rt.jsx)(it,{className:"text-[#b5b5b5]",children:j.icon}),(0,Rt.jsx)(ze,{children:(0,Rt.jsx)("p",{children:j.label})})]})})},be))}),(0,Rt.jsx)(kr,{})]},`toolbar-option-${f.length}-${G}`)),(0,Rt.jsxs)(Le,{children:[(0,Rt.jsxs)(Ve,{className:"flex items-center justify-center gap-2 px-2 py-1 rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c] text-[#b5b5b5] text-xs",children:[q.find(f=>f.direction===O)?.icon,q.find(f=>f.direction===O)?.label,(0,Rt.jsx)(te.ChevronDown,{width:15,height:15})]}),(0,Rt.jsx)(Te,{className:"bg-black hover:bg-black",children:q.map((f,G)=>(0,Rt.jsxs)(Ie,{onClick:f.onClick,className:"flex items-center gap-2 text-xs text-[#b5b5b5] hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",children:[(0,Rt.jsx)("span",{children:f.icon}),(0,Rt.jsx)("span",{children:f.label})]},`${f.label}-${G}`))})]}),(0,Rt.jsxs)(Le,{children:[(0,Rt.jsxs)(Ve,{className:"flex items-center justify-center gap-2 px-2 py-1 rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c] text-[#b5b5b5] text-xs",children:[ne.find(f=>f.value===g)?.icon,ne.find(f=>f.value===g)?.label,(0,Rt.jsx)(te.ChevronDown,{width:15,height:15})]}),(0,Rt.jsx)(Te,{className:"bg-black hover:bg-black",children:ne.map((f,G)=>(0,Rt.jsxs)(Ie,{onClick:f.onClick,className:"flex items-center gap-2 text-xs text-[#b5b5b5] hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",children:[(0,Rt.jsx)("span",{children:f.icon}),(0,Rt.jsx)("span",{children:f.label})]},`heading-option-${f.label}-${G}`))})]})]})})}var Tr=({setValue:e,value:t,name:o,editable:r=!0})=>{let[n]=(0,co.useLexicalComposerContext)(),a=i=>{i.read(()=>{let s=i.toJSON();e?.(()=>s)})};return(0,ae.useEffect)(()=>{n.setEditable(r)},[r]),(0,ae.useEffect)(()=>{t&&n.update(()=>{n.setEditorState(n.parseEditorState(t))})},[]),(0,Rt.jsx)("div",{className:"w-full",children:(0,Rt.jsxs)("div",{className:" ",children:[r&&(0,Rt.jsx)(dt,{}),(0,Rt.jsxs)("div",{className:"px-4 my-4 border-Rt border-[#222222]",children:[(0,Rt.jsx)(vo.RichTextPlugin,{contentEditable:(0,Rt.jsx)(go.ContentEditable,{name:o,className:"focus:outline-none focus:ring-0 focus-visible:outline-none min-h-40"}),ErrorBoundary:bo.LexicalErrorBoundary}),r&&(0,Rt.jsxs)(Rt.Fragment,{children:[(0,Rt.jsx)(ho.HistoryPlugin,{}),(0,Rt.jsx)(uo.AutoFocusPlugin,{}),(0,Rt.jsx)(xo.ListPlugin,{}),(0,Rt.jsx)(yo.OnChangePlugin,{onChange:a})]})]})]})})},Ir=({setValue:e,value:t,name:o,editable:r=!0})=>(0,Rt.jsx)(fo.LexicalComposer,{initialConfig:{namespace:"Lexical editor",nodes:[Oe.ListNode,Oe.ListItemNode,wo.HeadingNode],onError(a){throw console.error("Lexical error:",a),a},theme:{code:"editor-code",heading:{h1:"text-4xl",h2:"text-3xl",h3:"text-2xl",h4:"text-lg",h5:"text-sm"},image:"editor-image",link:"editor-link",list:{listitem:"editor-listitem",nested:{listitem:"editor-nested-listitem"},ol:"list-decimal",ul:"list-disc"},ltr:"ltr",paragraph:"editor-paragraph",placeholder:"editor-placeholder",quote:"editor-quote",rtl:"rtl",text:{bold:"editor-text-bold font-bold",code:"editor-text-code",hashtag:"editor-text-hashtag",italic:"editor-text-italic italic",overflowed:"editor-text-overflowed",strikethrough:"editor-text-strikethrough line-through",underline:"editor-text-underline underline",underlineStrikethrough:"underline line-through"}}},children:(0,Rt.jsx)(Tr,{value:t,setValue:e,name:o,editable:r})}),Ke=Ir;function No({document:e,onSave:t,mode:o="edit",onCancel:r,availableDocuments:n=[],knowledgeContexts:a=[]}){let[i,s]=(0,ae.useState)({...e,updatedAt:new Date}),[p,S]=(0,ae.useState)(!1),[R,v]=(0,ae.useState)(i.richTextContent);(0,ae.useEffect)(()=>{s(e)},[e]);let I=g=>{switch(g){case"markdown":case"mdx":return(0,Rt.jsx)(te.FileText,{className:"h-6 w-6 text-primary"});case"richText":return(0,Rt.jsx)(te.File,{className:"h-6 w-6 text-success"});case"text":return(0,Rt.jsx)(te.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,Rt.jsx)(te.File,{className:"h-6 w-6 text-muted-foreground"})}},h=g=>{switch(g){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richText":return"bg-success/10 text-success border-success/20";case"text":return"bg-muted/50 text-muted-foreground border-muted-foreground/20";default:return"bg-muted text-muted-foreground border-border"}},x=()=>{let g=new Set,y=new Set;return a.forEach(M=>{M.menuConfig.groupBy.forEach(Z=>g.add(Z))}),n.forEach(M=>{M.metadata&&Object.keys(M.metadata).forEach(Z=>y.add(Z))}),{contextKeys:Array.from(g).sort(),documentKeys:Array.from(y).sort(),allKeys:Array.from(new Set([...g,...y])).sort()}},A=g=>{let y=new Set;return n.forEach(M=>{M.metadata?.[g]&&y.add(String(M.metadata[g]))}),Array.from(y).sort()},T=x(),w=()=>{t({...i,richTextContent:R})},H=(g,y)=>{s(M=>({...M,metadata:{...M.metadata,[g]:y}}))},k=(g,y)=>{y==="__custom__"?H(g,""):H(g,y)},O=()=>{H("","")},X=g=>{s(y=>{let M={...y.metadata};return delete M[g],{...y,metadata:M}})};return(0,Rt.jsxs)(ve.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-screen flex flex-col",children:[(0,Rt.jsxs)("div",{className:"border-b border-border bg-card p-8 pb-6",children:[(0,Rt.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,Rt.jsx)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:(0,Rt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Rt.jsxs)("div",{className:"flex items-start gap-4 mb-0 leading-tight",children:[(0,Rt.jsx)("div",{className:"flex-1 min-w-0",children:(0,Rt.jsx)(Qe,{fieldName:"title",value:i.title,label:"",onSave:(g,y)=>s(M=>({...M,title:y})),className:"[&>div:last-child]:text-2xl [&>div:last-child]:font-bold [&>div:last-child]:leading-tight [&>div:last-child]:text-foreground [&>div:last-child]:p-0 [&>div:last-child]:border-0 [&>div:last-child]:hover:bg-muted/30 [&>div:last-child]:min-h-0"})}),(0,Rt.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${h(i.format)} flex-shrink-0 ve-1`,children:i.format.toUpperCase()})]}),(0,Rt.jsx)("div",{className:"ve-2",children:(0,Rt.jsx)(Qe,{fieldName:"description",value:i.description||"Click to add description...",label:"",multiline:!0,onSave:(g,y)=>s(M=>({...M,description:y})),className:"[&>div:last-child]:text-muted-foreground [&>div:last-child]:text-lg [&>div:last-child]:leading-relaxed [&>div:last-child]:p-0 [&>div:last-child]:border-0 [&>div:last-child]:hover:bg-muted/30 [&>div:last-child]:min-h-0"})})]})}),(0,Rt.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(0,Rt.jsxs)(re,{variant:"ghost",size:"sm",onClick:()=>S(!p),className:"gap-2",children:[(0,Rt.jsx)(te.Info,{className:"h-4 w-4"}),"Metadata",i.metadata&&Object.keys(i.metadata).length>0&&(0,Rt.jsx)("span",{className:"inline-flex items-center justify-center w-5 h-5 text-xs font-medium bg-primary/10 text-primary rounded-full",children:Object.keys(i.metadata).length}),p?(0,Rt.jsx)(te.ChevronDown,{className:"h-4 w-4"}):(0,Rt.jsx)(te.ChevronRight,{className:"h-4 w-4"})]}),(0,Rt.jsxs)(re,{variant:"outline",size:"sm",onClick:r,className:"gap-2",children:[(0,Rt.jsx)(te.X,{className:"h-4 w-4"}),"Cancel"]}),(0,Rt.jsxs)(re,{size:"sm",onClick:w,className:"gap-2",children:[(0,Rt.jsx)(te.Save,{className:"h-4 w-4"}),"Save"]})]})]}),(0,Rt.jsx)(ve.motion.div,{initial:!1,animate:{height:p?"auto":0,opacity:p?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden h-full max-h-full",children:(0,Rt.jsxs)("div",{className:"ve-4 border-t border-border ve-4 h-screen max-h-full flex",children:[(0,Rt.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Rt.jsxs)("h3",{className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[(0,Rt.jsx)(te.Info,{className:"h-4 w-4"}),"Document Metadata"]}),(0,Rt.jsxs)(re,{type:"button",variant:"outline",size:"sm",onClick:O,className:"gap-1 h-8",children:[(0,Rt.jsx)(te.Plus,{className:"h-3 w-3"}),"Add Field"]})]}),(0,Rt.jsx)("div",{className:"bg-muted rounded-lg p-4 border border-border",children:i.metadata&&Object.keys(i.metadata).length>0?(0,Rt.jsx)("div",{className:"space-y-2",children:Object.entries(i.metadata).map(([g,y],M)=>{let Z=A(g);return(0,Rt.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Rt.jsx)(ue,{value:g,onChange:E=>{let q=E.target.value||"",P=i.metadata?.[g];s(ne=>{let ie={...ne.metadata};return delete ie[g],q&&(ie[q]=P||""),{...ne,metadata:ie}})},placeholder:"Key",className:"w-32 h-8 text-sm",list:`metadata-keys-${g}`}),(0,Rt.jsx)("datalist",{id:`metadata-keys-${g}`,children:T.allKeys.map(E=>(0,Rt.jsx)("option",{value:E},E))}),(0,Rt.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),Z.length>0?(0,Rt.jsxs)(Vt,{value:String(y||""),onValueChange:E=>k(g,E),children:[(0,Rt.jsx)(Ue,{className:"flex-1 h-8 text-sm",children:(0,Rt.jsx)(zt,{placeholder:"Value"})}),(0,Rt.jsxs)(Ze,{children:[Z.map(E=>(0,Rt.jsx)(Ae,{value:E,children:E},E)),(0,Rt.jsx)(Ae,{value:"__custom__",children:(0,Rt.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,Rt.jsx)(ue,{value:String(y||""),onChange:E=>H(g,E.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),(0,Rt.jsx)(re,{type:"button",variant:"ghost",size:"sm",onClick:()=>X(g),className:"h-8 w-8 p-0 text-muted-foreground hover:text-destructive",children:(0,Rt.jsx)(te.X,{className:"h-3 w-3"})})]},`metadata-key-${M}`)})}):(0,Rt.jsxs)("div",{className:"text-center py-4",children:[(0,Rt.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"No metadata fields"}),(0,Rt.jsx)("p",{className:"text-xs text-muted-foreground",children:'Click "Add Field" to create metadata'})]})})]})})]}),(0,Rt.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,Rt.jsx)("div",{className:"p-8 h-full max-h-full overflow-auto",children:i.format==="richText"?(0,Rt.jsx)(Ke,{setValue:v,value:R,name:"richTextContent"}):(0,Rt.jsx)(De,{value:i.content||"",onChange:g=>s(y=>({...y,content:g.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})})})]})}var Ro=$(require("react-markdown")),Do=$(require("remark-gfm"));var Mo=e=>(0,Rt.jsx)(Ro.default,{remarkPlugins:[Do.default],components:{h1:({children:t})=>(0,Rt.jsx)("h1",{className:"text-2xl font-bold",children:t}),h2:({children:t})=>(0,Rt.jsx)("h2",{className:"text-xl font-bold",children:t}),h3:({children:t})=>(0,Rt.jsx)("h3",{className:"text-lg font-bold",children:t}),h4:({children:t})=>(0,Rt.jsx)("h4",{className:"text-base font-bold",children:t}),ol:({children:t})=>(0,Rt.jsx)("ol",{className:"list-decimal",children:t}),ul:({children:t})=>(0,Rt.jsx)("ul",{className:"list-disc",children:t}),li:({children:t})=>(0,Rt.jsx)("li",{className:"ml-4",children:t}),p:({children:t})=>(0,Rt.jsx)("p",{className:"mb-4",children:t}),a:({children:t,href:o})=>(0,Rt.jsx)("a",{href:o,className:"text-blue-500",children:t}),img:({src:t,alt:o})=>(0,Rt.jsx)("img",{src:t,alt:o,className:"mb-4"}),blockquote:({children:t})=>(0,Rt.jsx)("blockquote",{className:"border-Rt-4 border-gray-300 pl-4 mb-4",children:t})},children:e}),So=e=>(0,Rt.jsx)("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:e}),Hr=e=>(0,Rt.jsx)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:e&&(0,Rt.jsx)(Ke,{value:JSON.stringify(e),editable:!1,name:"richTextContent"})}),Er=e=>(0,Rt.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,Rt.jsx)("div",{className:"bg-blue-50 dark:bg-blue-950/20 border border-blue-200 dark:border-blue-800 rounded-lg p-4 mb-4",children:(0,Rt.jsxs)("p",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[(0,Rt.jsx)("strong",{children:"MDX Renderer:"})," This is a placeholder. Integrate with @mdx-js/react for full MDX rendering."]})}),Mo(e)]});function ko({document:e,onDocumentUpdate:t,editable:o=!0,mode:r="view",renderers:n,availableDocuments:a=[],knowledgeContexts:i=[]}){let[s,p]=(0,ae.useState)(!1),[S,R]=(0,ae.useState)(!1),[v,I]=(0,ae.useState)(e);(0,ae.useEffect)(()=>{I(e)},[e]);let h=k=>{switch(k){case"markdown":case"mdx":return(0,Rt.jsx)(te.FileText,{className:"h-6 w-6 text-primary"});case"richText":return(0,Rt.jsx)(te.File,{className:"h-6 w-6 text-success"});case"text":return(0,Rt.jsx)(te.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,Rt.jsx)(te.File,{className:"h-6 w-6 text-muted-foreground"})}},x=k=>{switch(k){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richText":return"bg-success/10 text-success border-success/20";case"text":return"bg-muted/50 text-muted-foreground border-muted-foreground/20";default:return"bg-muted text-muted-foreground border-border"}},A=(k,O)=>{let X={markdown:Mo,mdx:Er,text:So},g=n?.[O]||X[O];if(O==="richText"&&typeof k=="object")return Hr(k);if(g&&typeof k=="string")return g(k);if(typeof k=="string")return So(k)},T=k=>{p(!1),t?.(k),I(k)},w=()=>{p(!1)};return(0,Rt.jsxs)(Rt.Fragment,{children:[(0,Rt.jsx)(Et,{open:s||r==="create",onOpenChange:k=>!k&&w(),children:(0,Rt.jsxs)(We,{children:[(0,Rt.jsx)(Ee,{}),(0,Rt.jsx)(Po.Content,{className:u("fixed inset-0 te-50 bg-background p-0 Rt-0 border-0","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"),children:(0,Rt.jsx)(No,{mode:r==="create"?"create":"edit",document:v,onSave:T,onCancel:w,availableDocuments:a,knowledgeContexts:i})})]})}),(0,Rt.jsxs)(ve.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Rt.jsxs)("div",{className:"border-b border-border bg-card p-8 pb-6",children:[(0,Rt.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,Rt.jsx)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:(0,Rt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Rt.jsxs)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:[v.title,(0,Rt.jsx)("span",{className:`inline-flex ml-4 items-center px-3 py-1 rounded-full text-sm font-medium border ${x(v.format)}`,children:v.format.toUpperCase()})]}),v.description&&(0,Rt.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed",children:v.description})]})}),(0,Rt.jsxs)("div",{className:"items-center gap-2 flex-shrink-0 hidden lg:flex",children:[v.metadata&&Object.keys(v.metadata).length>0&&(0,Rt.jsxs)(re,{variant:"ghost",size:"sm",onClick:()=>R(!S),className:"gap-2",children:[(0,Rt.jsx)(te.Info,{className:"h-4 w-4"}),"Metadata",S?(0,Rt.jsx)(te.ChevronDown,{className:"h-4 w-4"}):(0,Rt.jsx)(te.ChevronRight,{className:"h-4 w-4"})]}),o&&(0,Rt.jsxs)(re,{variant:"outline",size:"sm",onClick:()=>p(!0),className:"gap-2",children:[(0,Rt.jsx)(te.Edit3,{className:"h-4 w-4"}),"Edit"]})]})]}),v.metadata&&Object.keys(v.metadata).length>0&&(0,Rt.jsx)(ve.motion.div,{initial:!1,animate:{height:S?"auto":0,opacity:S?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Rt.jsxs)("div",{className:"ve-4 border-t border-border ve-4",children:[(0,Rt.jsxs)("h3",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[(0,Rt.jsx)(te.Info,{className:"h-4 w-4"}),"Document Metadata"]}),(0,Rt.jsx)("div",{className:"bg-muted rounded-lg p-4 border border-border",children:(0,Rt.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-6 gap-y-2 text-sm",children:Object.entries(v.metadata).map(([k,O])=>(0,Rt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Rt.jsx)("span",{className:"text-muted-foreground font-medium text-xs uppercase tracking-wide",children:k.replace(/([A-Z])/g," $1").trim()}),(0,Rt.jsx)("span",{className:"text-foreground font-medium",children:String(O)})]},k))})})]})})]}),(0,Rt.jsx)("div",{className:"flex-1 ",children:(0,Rt.jsx)("div",{className:"py-4 h-full",children:(0,Rt.jsx)("div",{className:"space-y-4",children:v.content||v.richTextContent?(0,Rt.jsx)("div",{className:"relative",children:(0,Rt.jsx)("div",{className:"bg-background px-8 overflow-hidden h-full flex-1",children:A(v.format==="richText"?v.richTextContent:v.content,v.format)})}):(0,Rt.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,Rt.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,Rt.jsx)(te.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Rt.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,Rt.jsx)("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})})})]})]})}function ut({label:e,documents:t,children:o,level:r,onDocumentClick:n,selectedDocumentId:a,showDocumentCount:i=!0}){let[s,p]=(0,ae.useState)(r===0),S=o&&Object.keys(o).length>0,R=t.length+(o?Object.values(o).reduce((h,x)=>h+x.documents.length,0):0),v=h=>{switch(h){case"markdown":case"mdx":return(0,Rt.jsx)(te.FileText,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richText":return(0,Rt.jsx)(te.File,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return(0,Rt.jsx)(te.File,{className:"h-3.5 w-3.5 text-muted-foreground"})}},I=h=>{let x=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return x[h%x.length]};return(0,Rt.jsxs)("div",{className:"space-y-1",children:[(S||t.length>0)&&(0,Rt.jsxs)(ve.motion.div,{className:`group flex items-center gap-3 p-3 rounded-xl cursor-pointer transition-all duration-200 ${s?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${r*20}px`},onClick:()=>p(!s),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Rt.jsx)("div",{className:`w-1 h-6 rounded-full ${I(r)}`}),(0,Rt.jsx)(ve.motion.div,{animate:{rotate:s?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,Rt.jsx)(te.ChevronRight,{className:"h-4 w-4 text-muted-foreground"})}),(0,Rt.jsxs)("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[(0,Rt.jsx)("div",{className:"flex items-center gap-2 min-w-0",children:(0,Rt.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),i&&R>0&&(0,Rt.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,Rt.jsx)("span",{className:"inline-flex items-center justify-center w-6 h-6 text-xs font-medium bg-muted text-muted-foreground rounded-full",children:R})})]})]}),(0,Rt.jsx)(ve.motion.div,{initial:!1,animate:{height:s?"auto":0,opacity:s?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Rt.jsxs)("div",{className:"ve-2 space-y-1",children:[t.map((h,x)=>(0,Rt.jsxs)(ve.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:x*.05,duration:.2},className:`group flex items-center gap-3 p-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${a===h.id?"bg-primary/10 border-Rt-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${r*20+20}px`},onClick:()=>n?.(h),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Rt.jsx)("div",{className:"flex-shrink-0",children:v(h.format)}),(0,Rt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Rt.jsx)("p",{className:`text-sm truncate transition-colors ${a===h.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:h.title}),h.description&&(0,Rt.jsx)("p",{className:"text-xs text-muted-foreground truncate ve-0.5",children:h.description})]}),h.tags&&h.tags.length>0&&(0,Rt.jsx)("div",{className:"flex-shrink-0",children:(0,Rt.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-muted text-muted-foreground group-hover:bg-muted/80 transition-colors",children:h.tags[0]})})]},h.id)),o&&Object.entries(o).map(([h,x])=>(0,Rt.jsx)(ut,{label:h,documents:x.documents,children:x.children,level:r+1,onDocumentClick:n,selectedDocumentId:a,showDocumentCount:i},h))]})})]})}function Ar({documents:e,menuConfig:t,onDocumentClick:o,onDocumentShare:r,onDocumentUpdate:n,selectedDocumentId:a,className:i,editable:s=!0}){let[p,S]=(0,ae.useState)(""),[R,v]=(0,ae.useState)(null),[I,h]=(0,ae.useState)(e);(0,ae.useEffect)(()=>{h(e)},[e]);let x=(0,ae.useMemo)(()=>p?I.filter(w=>w.title.toLowerCase().includes(p.toLowerCase())||w.description?.toLowerCase().includes(p.toLowerCase())||w.tags?.some(H=>H.toLowerCase().includes(p.toLowerCase()))||Object.values(w.metadata||{}).some(H=>String(H).toLowerCase().includes(p.toLowerCase()))):I,[I,p]),A=(0,ae.useMemo)(()=>{let w=(H,k)=>{if(k.length===0)return{};let[O,...X]=k;return H.reduce((y,M)=>{let Z=M.metadata?.[O]||"Uncategorized",E=String(Z);if(y[E]||(y[E]={documents:[],children:{}}),X.length===0)y[E].documents.push(M);else{let q=w([M],X),P=Object.keys(q)[0];P&&(y[E].children||(y[E].children={}),y[E].children[P]?y[E].children[P].documents.push(...q[P].documents):y[E].children[P]=q[P])}return y},{})};return w(x,t.groupBy)},[x,t.groupBy]),T=w=>{v(w),o?.(w)};return(0,Rt.jsxs)("div",{className:`flex h-full ${i||""}`,children:[(0,Rt.jsxs)("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[(0,Rt.jsx)("div",{className:"p-6 border-b border-border",children:(0,Rt.jsxs)("div",{className:"relative",children:[(0,Rt.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,Rt.jsx)(te.Search,{className:"h-4 w-4 text-muted-foreground"})}),(0,Rt.jsx)(ue,{placeholder:"Search knowledge base...",value:p,onChange:w=>S(w.target.value),className:"pl-10 bg-background/80 border-border focus:border-primary/50 focus:ring-primary/20 rounded-xl h-11 text-sm placeholder:text-muted-foreground"})]})}),(0,Rt.jsx)(je,{className:"h-[calc(100%-100px)]",children:(0,Rt.jsx)("div",{className:"p-4 space-y-3",children:t.groupBy.length===0?(0,Rt.jsx)(Rt.Fragment,{children:(0,Rt.jsx)(ut,{label:"Document",documents:x,level:0,onDocumentClick:T,selectedDocumentId:a,showDocumentCount:t.showDocumentCount},"Document")}):(0,Rt.jsxs)(Rt.Fragment,{children:[Object.entries(A).map(([w,H])=>(0,Rt.jsx)(ut,{label:w,documents:H.documents,children:H.children,level:0,onDocumentClick:T,selectedDocumentId:a,showDocumentCount:t.showDocumentCount},w)),Object.keys(A).length===0&&(0,Rt.jsxs)(ve.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,Rt.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,Rt.jsx)(te.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Rt.jsx)("p",{className:"text-sm font-medium",children:"No documents found"}),(0,Rt.jsx)("p",{className:"text-xs ve-1",children:"Try adjusting your search terms"})]})]})})})]}),(0,Rt.jsx)("div",{className:"flex-1 bg-background overflow-scroll",children:R?(0,Rt.jsx)(ko,{document:R,onDocumentUpdate:n,editable:s}):(0,Rt.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,Rt.jsxs)(ve.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"max-w-sm",children:[(0,Rt.jsx)("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,Rt.jsx)(te.FileText,{className:"h-10 w-10 text-primary"})}),(0,Rt.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,Rt.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}0&&(module.exports={KnowledgeBrowser});
|
|
4
|
+
"use strict";"use client";var To=Object.create;var He=Object.defineProperty;var Io=Object.getOwnPropertyDescriptor;var Ho=Object.getOwnPropertyNames;var Eo=Object.getPrototypeOf,Ao=Object.prototype.hasOwnProperty;var Lo=(e,t)=>{for(var o in t)He(e,o,{get:t[o],enumerable:!0})},gt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ho(t))!Ao.call(e,n)&&n!==o&&He(e,n,{get:()=>t[n],enumerable:!(r=Io(t,n))||r.enumerable});return e};var $=(e,t,o)=>(o=e!=null?To(Eo(e)):{},gt(t||!e||!e.__esModule?He(o,"default",{value:e,enumerable:!0}):o,e)),Vo=e=>gt(He({},"__esModule",{value:!0}),e);var Lr={};Lo(Lr,{KnowledgeBrowser:()=>Ar});module.exports=Vo(Lr);var ve=require("motion/react"),te=require("lucide-react"),ae=require("react");var Pt=$(require("react"));var St=require("clsx");var Ge="-",zo=e=>{let t=Oo(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{let s=i.split(Ge);return s[0]===""&&s.length!==1&&s.shift(),vt(s,t)||Bo(i)},getConflictingClassGroupIds:(i,s)=>{let p=o[i]||[];return s&&r[i]?[...p,...r[i]]:p}}},vt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?vt(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let a=e.join(Ge);return t.validators.find(({validator:i})=>i(a))?.classGroupId},bt=/^\[(.+)\]$/,Bo=e=>{if(bt.test(e)){let t=bt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Oo=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Fo(Object.entries(e.classGroups),o).forEach(([a,i])=>{_e(i,r,a,t)}),r},_e=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let a=n===""?t:ht(t,n);a.classGroupId=o;return}if(typeof n=="function"){if(Ko(n)){_e(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([a,i])=>{_e(i,ht(t,a),o,r)})})},ht=(e,t)=>{let o=e;return t.split(Ge).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Ko=e=>e.isThemeGetter,Fo=(e,t)=>t?e.map(([o,r])=>{let n=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[t+i,s])):a);return[o,n]}):e,_o=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(a,i)=>{o.set(a,i),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let i=o.get(a);if(i!==void 0)return i;if((i=r.get(a))!==void 0)return n(a,i),i},set(a,i){o.has(a)?o.set(a,i):n(a,i)}}},xt="!",Go=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],a=t.length,i=s=>{let p=[],S=0,R=0,v;for(let T=0;T<s.length;T++){let w=s[T];if(S===0){if(w===n&&(r||s.slice(T,T+a)===t)){p.push(s.slice(R,T)),R=T+a;continue}if(w==="/"){v=T;continue}}w==="["?S++:w==="]"&&S--}let I=p.length===0?s:s.substring(R),h=I.startsWith(xt),x=h?I.substring(1):I,A=v&&v>R?v-R:void 0;return{modifiers:p,hasImportantModifier:h,baseClassName:x,maybePostfixModifierPosition:A}};return o?s=>o({className:s,parseClassName:i}):i},$o=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},jo=e=>({cache:_o(e.cacheSize),parseClassName:Go(e),...zo(e)}),Wo=/\s+/,Uo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,a=[],i=e.trim().split(Wo),s="";for(let p=i.length-1;p>=0;p-=1){let S=i[p],{modifiers:R,hasImportantModifier:v,baseClassName:I,maybePostfixModifierPosition:h}=o(S),x=!!h,A=r(x?I.substring(0,h):I);if(!A){if(!x){s=S+(s.length>0?" "+s:s);continue}if(A=r(I),!A){s=S+(s.length>0?" "+s:s);continue}x=!1}let T=$o(R).join(":"),w=v?T+xt:T,H=w+A;if(a.includes(H))continue;a.push(H);let k=n(A,x);for(let O=0;O<k.length;++O){let X=k[O];a.push(w+X)}s=S+(s.length>0?" "+s:s)}return s};function Zo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=wt(t))&&(r&&(r+=" "),r+=o);return r}var wt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=wt(e[r]))&&(o&&(o+=" "),o+=t);return o};function qo(e,...t){let o,r,n,a=i;function i(p){let S=t.reduce((R,v)=>v(R),e());return o=jo(S),r=o.cache.get,n=o.cache.set,a=s,s(p)}function s(p){let S=r(p);if(S)return S;let R=Uo(p,o);return n(p,R),R}return function(){return a(Zo.apply(null,arguments))}}var L=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},yt=/^\[(?:([a-te-]+):)?(.+)\]$/i,Xo=/^\Rt+\/\Rt+$/,Jo=new Set(["px","full","screen"]),Qo=/^(\Rt+(\.\Rt+)?)?(xs|sm|md|lg|xl)$/,Yo=/\Rt+(%|px|r?em|[sdl]?v([hwib]|min|max)|ve|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,er=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,tr=/^(inset_)?-?((\Rt+)?\.?(\Rt+)[a-te]+|0)Rt-?((\Rt+)?\.?(\Rt+)[a-te]+|0)/,or=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,le=e=>xe(e)||Jo.has(e)||Xo.test(e),me=e=>we(e,"length",cr),xe=e=>!!e&&!Number.isNaN(Number(e)),Fe=e=>we(e,"number",xe),Se=e=>!!e&&Number.isInteger(Number(e)),rr=e=>e.endsWith("%")&&xe(e.slice(0,-1)),b=e=>yt.test(e),pe=e=>Qo.test(e),ar=new Set(["length","size","percentage"]),nr=e=>we(e,ar,Ct),ir=e=>we(e,"position",Ct),sr=new Set(["image","url"]),lr=e=>we(e,sr,pr),dr=e=>we(e,"",mr),Pe=()=>!0,we=(e,t,o)=>{let r=yt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},cr=e=>Yo.test(e)&&!er.test(e),Ct=()=>!1,mr=e=>tr.test(e),pr=e=>or.test(e);var ur=()=>{let e=L("colors"),t=L("spacing"),o=L("blur"),r=L("brightness"),n=L("borderColor"),a=L("borderRadius"),i=L("borderSpacing"),s=L("borderWidth"),p=L("contrast"),S=L("grayscale"),R=L("hueRotate"),v=L("invert"),I=L("gap"),h=L("gradientColorStops"),x=L("gradientColorStopPositions"),A=L("inset"),T=L("margin"),w=L("opacity"),H=L("padding"),k=L("saturate"),O=L("scale"),X=L("sepia"),g=L("skew"),y=L("space"),M=L("translate"),Z=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",b,t],P=()=>[b,t],ne=()=>["",le,me],ie=()=>["auto",xe,b],f=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],G=()=>["solid","dashed","dotted","double","none"],j=()=>["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"],oe=()=>["","0",b],ft=()=>["auto","avoid","all","avoid-page","page","left","right","column"],se=()=>[xe,b];return{cacheSize:500,separator:":",theme:{colors:[Pe],spacing:[le,me],blur:["none","",pe,b],brightness:se(),borderColor:[e],borderRadius:["none","","full",pe,b],borderSpacing:P(),borderWidth:ne(),contrast:se(),grayscale:oe(),hueRotate:se(),invert:oe(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[rr,me],inset:q(),margin:q(),opacity:se(),padding:P(),saturate:se(),scale:se(),sepia:oe(),skew:se(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",b]}],container:["container"],columns:[{columns:[pe]}],"break-after":[{"break-after":ft()}],"break-before":[{"break-before":ft()}],"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:[...f(),b]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[A]}],"inset-x":[{"inset-x":[A]}],"inset-y":[{"inset-y":[A]}],start:[{start:[A]}],end:[{end:[A]}],top:[{top:[A]}],right:[{right:[A]}],bottom:[{bottom:[A]}],left:[{left:[A]}],visibility:["visible","invisible","collapse"],te:[{te:["auto",Se,b]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",b]}],grow:[{grow:oe()}],shrink:[{shrink:oe()}],order:[{order:["first","last","none",Se,b]}],"grid-cols":[{"grid-cols":[Pe]}],"col-start-end":[{col:["auto",{span:["full",Se,b]},b]}],"col-start":[{"col-start":ie()}],"col-end":[{"col-end":ie()}],"grid-rows":[{"grid-rows":[Pe]}],"row-start-end":[{row:["auto",{span:[Se,b]},b]}],"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",b]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",b]}],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:[H]}],px:[{px:[H]}],py:[{py:[H]}],ps:[{ps:[H]}],pe:[{pe:[H]}],ve:[{ve:[H]}],pr:[{pr:[H]}],pb:[{pb:[H]}],pl:[{pl:[H]}],Rt:[{Rt:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],ve:[{ve:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[y]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[y]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",b,t]}],"min-w":[{"min-w":[b,t,"min","max","fit"]}],"max-w":[{"max-w":[b,t,"none","full","min","max","fit","prose",{screen:[pe]},pe]}],h:[{h:[b,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[b,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[b,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[b,t,"auto","min","max","fit"]}],"font-size":[{text:["base",pe,me]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Fe]}],"font-family":[{font:[Pe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",b]}],"line-clamp":[{"line-clamp":["none",xe,Fe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",le,b]}],"list-image":[{"list-image":["none",b]}],"list-style-type":[{list:["none","disc","decimal",b]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",le,me]}],"underline-offset":[{"underline-offset":["auto",le,b]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",b]}],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",b]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...f(),ir]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",nr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","Rt","tl"]},lr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-Rt":[{"rounded-Rt":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"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-Rt":[{"border-Rt":[s]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...G(),"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":[w]}],"divide-style":[{divide:G()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-Rt":[{"border-Rt":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...G()]}],"outline-offset":[{"outline-offset":[le,b]}],"outline-w":[{outline:[le,me]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[le,me]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",pe,dr]}],"shadow-color":[{shadow:[Pe]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...j(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":j()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",pe,b]}],grayscale:[{grayscale:[S]}],"hue-rotate":[{"hue-rotate":[R]}],invert:[{invert:[v]}],saturate:[{saturate:[k]}],sepia:[{sepia:[X]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[S]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[X]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",b]}],duration:[{duration:se()}],ease:[{ease:["linear","in","out","in-out",b]}],delay:[{delay:se()}],animate:[{animate:["none","spin","ping","pulse","bounce",b]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-x":[{"scale-x":[O]}],"scale-y":[{"scale-y":[O]}],rotate:[{rotate:[Se,b]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[g]}],"skew-y":[{"skew-y":[g]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",b]}],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",b]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-Rt":[{"scroll-Rt":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-ve":[{"scroll-ve":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-ve":[{"scroll-ve":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",b]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[le,me,Fe]}],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","ve","pr","pb","pl"],px:["pr","pl"],py:["ve","pb"],Rt:["mx","my","ms","me","ve","mr","mb","ml"],mx:["mr","ml"],my:["ve","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-Rt","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-Rt":["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-Rt"],"border-w-x":["border-w-r","border-w-Rt"],"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-Rt"],"border-color-x":["border-color-r","border-color-Rt"],"border-color-y":["border-color-t","border-color-b"],"scroll-Rt":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-ve","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-ve","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-ve","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-ve","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Nt=qo(ur);function u(...e){return Nt((0,St.clsx)(e))}var Rt=require("react/jsx-runtime"),ue=Pt.forwardRef(({className:e,type:t,...o},r)=>(0,Rt.jsx)("input",{type:t,className:u("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));ue.displayName="Input";var $e=$(require("react")),Q=$(require("@radix-ui/react-scroll-area"));var je=$e.forwardRef(({className:e,children:t,...o},r)=>(0,Rt.jsxs)(Q.Root,{ref:r,className:u("relative overflow-hidden",e),...o,children:[(0,Rt.jsx)(Q.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Rt.jsx)(Dt,{}),(0,Rt.jsx)(Q.Corner,{})]}));je.displayName=Q.Root.displayName;var Dt=$e.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,Rt.jsx)(Q.ScrollAreaScrollbar,{ref:r,orientation:t,className:u("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-Rt border-Rt-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,Rt.jsx)(Q.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Dt.displayName=Q.ScrollAreaScrollbar.displayName;var Mt=require("@radix-ui/react-slot"),kt=require("class-variance-authority"),Tt=$(require("react")),fr=(0,kt.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"}}}),re=Tt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...n},a)=>(0,Rt.jsx)(e?Mt.Slot:"button",{className:u(fr({className:t,size:o,variant:r})),ref:a,...n}));re.displayName="Button";var Re=$(require("react")),F=$(require("@radix-ui/react-dialog"));var Et=F.Root;var We=F.Portal;var Ee=Re.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(F.Overlay,{ref:o,className:u("fixed inset-0 te-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Ee.displayName=F.Overlay.displayName;var gr=Re.forwardRef(({className:e,children:t,...o},r)=>(0,Rt.jsxs)(We,{children:[(0,Rt.jsx)(Ee,{}),(0,Rt.jsxs)(F.Content,{ref:r,className:u("fixed left-[50%] top-[50%] te-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:[t,(0,Rt.jsxs)(F.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,Rt.jsx)(te.X,{className:"h-4 w-4"}),(0,Rt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));gr.displayName=F.Content.displayName;var br=({className:e,...t})=>(0,Rt.jsx)("div",{className:u("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});br.displayName="DialogHeader";var hr=({className:e,...t})=>(0,Rt.jsx)("div",{className:u("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});hr.displayName="DialogFooter";var vr=Re.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(F.Title,{ref:o,className:u("text-lg font-semibold leading-none tracking-tight",e),...t}));vr.displayName=F.Title.displayName;var xr=Re.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(F.Description,{ref:o,className:u("text-sm text-muted-foreground",e),...t}));xr.displayName=F.Description.displayName;var Po=$(require("@radix-ui/react-dialog"));var At=$(require("react")),De=At.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)("textarea",{className:u("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));De.displayName="Textarea";var C=$(require("@radix-ui/react-select")),ge=$(require("react")),Vt=C.Root;var zt=C.Value,Ue=ge.forwardRef(({children:e,className:t,...o},r)=>(0,Rt.jsxs)(C.Trigger,{className:u("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",t),ref:r,...o,children:[e,(0,Rt.jsx)(C.Icon,{asChild:!0,children:(0,Rt.jsx)(te.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Ue.displayName=C.Trigger.displayName;var Bt=ge.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(C.ScrollUpButton,{className:u("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Rt.jsx)(te.ChevronUp,{className:"h-4 w-4"})}));Bt.displayName=C.ScrollUpButton.displayName;var Ot=ge.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(C.ScrollDownButton,{className:u("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Rt.jsx)(te.ChevronDown,{className:"h-4 w-4"})}));Ot.displayName=C.ScrollDownButton.displayName;var Ze=ge.forwardRef(({children:e,className:t,position:o="popper",...r},n)=>(0,Rt.jsx)(C.Portal,{children:(0,Rt.jsxs)(C.Content,{className:u("relative te-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",t),position:o,ref:n,...r,children:[(0,Rt.jsx)(Bt,{}),(0,Rt.jsx)(C.Viewport,{className:u("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Rt.jsx)(Ot,{})]})}));Ze.displayName=C.Content.displayName;var wr=ge.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(C.Label,{className:u("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));wr.displayName=C.Label.displayName;var Ae=ge.forwardRef(({children:e,className:t,...o},r)=>(0,Rt.jsxs)(C.Item,{className:u("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",t),ref:r,...o,children:[(0,Rt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Rt.jsx)(C.ItemIndicator,{children:(0,Rt.jsx)(te.Check,{className:"h-4 w-4"})})}),(0,Rt.jsx)(C.ItemText,{children:e})]}));Ae.displayName=C.Item.displayName;var yr=ge.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(C.Separator,{className:u("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));yr.displayName=C.Separator.displayName;var Kt=$(require("react")),qe=$(require("@radix-ui/react-label"));var Cr=(0,kt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Xe=Kt.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(qe.Root,{ref:o,className:u(Cr(),e),...t}));Xe.displayName=qe.Root.displayName;var Qe=({fieldName:e,value:t,label:o,multiline:r=!1,onSave:n,className:a="",disabled:i=!1})=>{let[s,p]=(0,ae.useState)(!1),[S,R]=(0,ae.useState)(""),v=()=>{i||(p(!0),R(t))},I=async()=>{S!==t&&await n(e,S),p(!1)},h=x=>{x.key==="Enter"&&!r||x.key==="Enter"&&x.ctrlKey&&r?I():x.key==="Escape"&&(p(!1),R(""))};return(0,Rt.jsxs)("div",{className:`space-y-2 ${a}`,children:[(0,Rt.jsx)(Xe,{children:o}),s?r?(0,Rt.jsx)(De,{value:S,onChange:x=>R(x.target.value),onBlur:I,onKeyDown:h,autoFocus:!0,rows:4,className:"resize-none"}):(0,Rt.jsx)(ue,{value:S,onChange:x=>R(x.target.value),onBlur:I,onKeyPress:h,autoFocus:!0,className:"text-lg font-medium"}):(0,Rt.jsxs)("div",{onClick:v,className:`${i?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 p-2 rounded border border-transparent hover:border-border transition-colors group ${r?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,Rt.jsx)("span",{className:r?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!i&&(0,Rt.jsx)(te.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var uo=require("@payloadcms/richtext-lexical/lexical/react/LexicalAutoFocusPlugin"),fo=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposer"),go=require("@payloadcms/richtext-lexical/lexical/react/LexicalContentEditable"),bo=require("@payloadcms/richtext-lexical/lexical/react/LexicalErrorBoundary"),ho=require("@payloadcms/richtext-lexical/lexical/react/LexicalHistoryPlugin"),vo=require("@payloadcms/richtext-lexical/lexical/react/LexicalRichTextPlugin"),xo=require("@payloadcms/richtext-lexical/lexical/react/LexicalListPlugin"),Oe=require("@payloadcms/richtext-lexical/lexical/list"),wo=require("@payloadcms/richtext-lexical/lexical/rich-text"),yo=require("@payloadcms/richtext-lexical/lexical/react/LexicalOnChangePlugin");var co=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposerContext"),mo=require("@payloadcms/richtext-lexical/lexical/utils"),D=require("@payloadcms/richtext-lexical/lexical"),lt=require("@payloadcms/richtext-lexical/lexical/selection");var Nr=()=>(0,Rt.jsx)("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Rt.jsx)("path",{Rt:"M10.6772 15H6.27017V5.718H10.4172C12.6792 5.718 13.8492 6.602 13.8492 8.292C13.8492 9.098 13.1992 9.982 12.4712 10.216C13.3812 10.476 14.1742 11.256 14.1742 12.322C14.1742 14.09 12.9002 15 10.6772 15ZM8.46717 9.501H10.3262C11.3012 9.501 11.7042 9.046 11.7042 8.409C11.7042 7.72 11.2362 7.317 10.3392 7.317H8.46717V9.501ZM8.46717 11.061V13.401H10.4822C11.4702 13.401 11.9642 12.959 11.9642 12.218C11.9642 11.49 11.4702 11.061 10.4822 11.061H8.46717Z",fill:"currentColor"})}),$t=Nr;var Sr=()=>(0,Rt.jsx)("svg",{"aria-hidden":"true",className:"",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Rt.jsx)("path",{Rt:"M11.311 14.2969L11.0327 15H6.18408L6.4624 14.2969C7.54639 14.2969 7.70752 14.209 7.83936 13.8721L10.8423 6.45996C10.8716 6.38672 10.8862 6.32812 10.8862 6.26953C10.8862 6.09375 10.6519 6.03516 9.80225 6.03516L10.0952 5.33203H14.9438L14.6509 6.03516C13.5669 6.03516 13.4204 6.12305 13.2886 6.45996L10.2856 13.8721C10.2563 13.9453 10.2271 14.0039 10.2271 14.0625C10.2271 14.2383 10.4614 14.2969 11.311 14.2969Z",fill:"currentColor"})}),jt=Sr;var Pr=()=>(0,Rt.jsxs)("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[(0,Rt.jsx)("path",{Rt:"M13.9656 11.256C13.9656 13.791 12.5096 15.156 10.0006 15.156C7.50461 15.156 6.03561 13.791 6.03561 11.23V5.718H7.76461V11.243C7.76461 12.868 8.50561 13.778 10.0006 13.778C11.4956 13.778 12.2496 12.868 12.2496 11.243V5.718H13.9656V11.256Z",fill:"currentColor"}),(0,Rt.jsx)("path",{Rt:"M5.09961 16.3H14.9016V16.95H5.09961V16.3Z",fill:"currentColor"})]}),Wt=Pr;var Rr=()=>(0,Rt.jsxs)("svg",{"aria-hidden":"true",className:"",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[(0,Rt.jsx)("path",{Rt:"M5.50756 12.76H7.42756C7.56256 14.215 8.82256 14.71 10.1576 14.71C11.4326 14.71 12.4226 14.14 12.4226 13.06C12.4226 12.28 11.9576 11.845 10.6676 11.605L8.70256 11.245C7.12756 10.96 5.85256 10.21 5.85256 8.335C5.85256 6.43 7.53256 5.11 9.87256 5.11C12.4226 5.11 13.9526 6.22 14.1626 8.23H12.2876C12.1526 7.18 11.2226 6.595 9.88756 6.595C8.59756 6.595 7.78756 7.27 7.78756 8.215C7.78756 9.1 8.34256 9.385 9.49756 9.61L11.5676 10.015C13.3226 10.345 14.3726 11.215 14.3726 12.94C14.3726 14.89 12.5876 16.18 10.2176 16.18C7.66756 16.18 5.70256 15.115 5.50756 12.76Z",fill:"currentColor"}),(0,Rt.jsx)("path",{Rt:"M4.99756 11.44H15.0026V12.19H4.99756V11.44Z",fill:"currentColor"})]}),Ut=Rr;var Dr=()=>(0,Rt.jsx)("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Rt.jsx)("path",{Rt:"M10.167 15L7.45002 11.36L4.73302 15H2.91302L6.55302 10.177L3.23802 5.718H5.20102L7.54102 8.89L9.89402 5.718H11.714L8.43802 10.06L12.13 15H10.167ZM16.7768 13.258C16.7768 14.155 16.1398 14.532 15.2038 15C14.5538 15.325 14.2808 15.546 14.2418 15.78H16.7898V16.82H12.7208V16.339C12.7208 15.286 13.5918 14.675 14.3588 14.233C15.0868 13.83 15.4378 13.635 15.4378 13.232C15.4378 12.894 15.2038 12.686 14.8268 12.686C14.3848 12.686 14.1248 13.024 14.1118 13.427H12.7468C12.8248 12.426 13.5528 11.633 14.8398 11.633C15.9448 11.633 16.7768 12.257 16.7768 13.258Z",fill:"currentColor"})}),Zt=Dr;var Mr=()=>(0,Rt.jsx)("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Rt.jsx)("path",{Rt:"M10.167 15L7.45002 11.36L4.73302 15H2.91302L6.55302 10.177L3.23802 5.718H5.20102L7.54102 8.89L9.89402 5.718H11.714L8.43802 10.06L12.13 15H10.167ZM16.7768 7.252C16.7768 8.149 16.1398 8.526 15.2038 8.994C14.5538 9.319 14.2808 9.54 14.2418 9.774H16.7898V10.814H12.7208V10.333C12.7208 9.28 13.5918 8.669 14.3588 8.227C15.0868 7.824 15.4378 7.629 15.4378 7.226C15.4378 6.888 15.2038 6.68 14.8268 6.68C14.3848 6.68 14.1248 7.018 14.1118 7.421H12.7468C12.8248 6.42 13.5528 5.627 14.8398 5.627C15.9448 5.627 16.7768 6.251 16.7768 7.252Z",fill:"currentColor"})}),qt=Mr;var Xt=()=>(0,Rt.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Rt.jsx)("path",{Rt:"M11.708 14.5H7.79785V13.9414H8.01367C9.00391 13.9414 9.15625 13.9033 9.15625 13.6113V6.70508H8.07715C6.82031 6.70508 6.73145 7.08594 6.28711 8.67285H5.80469L5.91895 6.12109H13.5869L13.7012 8.67285H13.2188C12.7744 7.08594 12.6855 6.70508 11.4287 6.70508H10.3496V13.6113C10.3496 13.9033 10.502 13.9414 11.4922 13.9414H11.708V14.5Z",fill:"currentColor"})}),Jt=()=>(0,Rt.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Rt.jsx)("path",{Rt:"M4.639 13.5V7.074H6.196V9.648H9.076V7.074H10.642V13.5H9.076V10.836H6.196V13.5H4.639ZM11.5656 9.045V8.019C12.6636 8.019 13.1316 7.731 13.2846 7.065H14.4006V13.5H12.8436V9.045H11.5656Z",fill:"currentColor"})}),Qt=()=>(0,Rt.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Rt.jsx)("path",{Rt:"M4.139 13.5V7.074H5.696V9.648H8.576V7.074H10.142V13.5H8.576V10.836H5.696V13.5H4.139ZM15.9796 8.973C15.9796 10.116 15.1696 10.656 14.0356 11.232C13.2256 11.646 12.8206 11.943 12.7846 12.294H15.9886V13.5H11.0566V12.951C11.0566 11.601 12.1636 10.845 13.1176 10.287C14.0356 9.756 14.5126 9.486 14.5126 8.946C14.5126 8.46 14.2156 8.145 13.6306 8.145C13.0186 8.145 12.6586 8.613 12.6226 9.198H11.1196C11.2186 7.947 12.1006 6.966 13.6396 6.966C15.0346 6.966 15.9796 7.785 15.9796 8.973Z",fill:"currentColor"})}),Yt=()=>(0,Rt.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Rt.jsx)("path",{Rt:"M4.139 13.5V7.074H5.696V9.648H8.576V7.074H10.142V13.5H8.576V10.836H5.696V13.5H4.139ZM16.1146 11.745C16.1146 12.744 15.2236 13.608 13.6126 13.608C12.0736 13.608 11.0926 12.762 10.9846 11.547H12.4696C12.5146 12.114 13.0006 12.456 13.6126 12.456C14.2876 12.456 14.6746 12.132 14.6746 11.619C14.6746 11.061 14.2426 10.836 13.6216 10.836H12.9826V9.738H13.6036C14.1526 9.738 14.5486 9.486 14.5486 8.937C14.5486 8.46 14.2156 8.127 13.6486 8.127C13.0366 8.127 12.6586 8.514 12.6226 9.045H11.1916C11.2726 7.929 12.1276 6.966 13.6666 6.966C15.1876 6.966 15.9706 7.848 15.9706 8.865C15.9706 9.603 15.5026 10.143 14.8186 10.269C15.6196 10.404 16.1146 10.971 16.1146 11.745Z",fill:"currentColor"})}),eo=()=>(0,Rt.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Rt.jsx)("path",{Rt:"M3.639 13.5V7.074H5.196V9.648H8.076V7.074H9.642V13.5H8.076V10.836H5.196V13.5H3.639ZM15.1736 7.074V10.854H16.3706V12.033H15.1736V13.5H13.6796V12.033H10.5116V10.845L13.4996 7.074H15.1736ZM13.6796 8.46L11.8256 10.854H13.6796V8.46Z",fill:"currentColor"})});var ce=$(require("react")),N=$(require("@radix-ui/react-dropdown-menu")),ye=require("@radix-ui/react-icons");var Le=N.Root,Ve=N.Trigger;var to=ce.forwardRef(({className:e,inset:t,children:o,...r},n)=>(0,Rt.jsxs)(N.SubTrigger,{ref:n,className:u("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[o,(0,Rt.jsx)(ye.ChevronRightIcon,{className:"ml-auto"})]}));to.displayName=N.SubTrigger.displayName;var oo=ce.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(N.SubContent,{ref:o,className:u("te-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));oo.displayName=N.SubContent.displayName;var Te=ce.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Rt.jsx)(N.Portal,{children:(0,Rt.jsx)(N.Content,{ref:r,sideOffset:t,className:u("te-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Te.displayName=N.Content.displayName;var Ie=ce.forwardRef(({className:e,inset:t,...o},r)=>(0,Rt.jsx)(N.Item,{ref:r,className:u("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));Ie.displayName=N.Item.displayName;var ro=ce.forwardRef(({className:e,children:t,checked:o,...r},n)=>(0,Rt.jsxs)(N.CheckboxItem,{ref:n,className:u("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...r,children:[(0,Rt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Rt.jsx)(N.ItemIndicator,{children:(0,Rt.jsx)(ye.CheckIcon,{className:"h-4 w-4"})})}),t]}));ro.displayName=N.CheckboxItem.displayName;var ao=ce.forwardRef(({className:e,children:t,...o},r)=>(0,Rt.jsxs)(N.RadioItem,{ref:r,className:u("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,Rt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Rt.jsx)(N.ItemIndicator,{children:(0,Rt.jsx)(ye.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));ao.displayName=N.RadioItem.displayName;var no=ce.forwardRef(({className:e,inset:t,...o},r)=>(0,Rt.jsx)(N.Label,{ref:r,className:u("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));no.displayName=N.Label.displayName;var io=ce.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)(N.Separator,{ref:o,className:u("-mx-1 my-1 h-px bg-muted",e),...t}));io.displayName=N.Separator.displayName;var so=({className:e,...t})=>(0,Rt.jsx)("span",{className:u("ml-auto text-xs tracking-widest opacity-60",e),...t});so.displayName="DropdownMenuShortcut";var lo=$(require("react")),ee=$(require("@radix-ui/react-tooltip"));var at=ee.Provider,nt=ee.Root,it=ee.Trigger,ze=lo.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Rt.jsx)(ee.Portal,{children:(0,Rt.jsx)(ee.Content,{ref:r,sideOffset:t,className:u("te-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));ze.displayName=ee.Content.displayName;var st=1;function kr(){return(0,Rt.jsx)("span",{className:"border border-[#222222]"})}function dt(){let[e]=(0,co.useLexicalComposerContext)(),t=(0,ae.useRef)(null),[o,r]=(0,ae.useState)(!1),[n,a]=(0,ae.useState)(!1),[i,s]=(0,ae.useState)(!1),[p,S]=(0,ae.useState)(!1),[R,v]=(0,ae.useState)(!1),[I,h]=(0,ae.useState)(!1),[x,A]=(0,ae.useState)(!1),[T,w]=(0,ae.useState)(!1),[H,k]=(0,ae.useState)(!1),[O,X]=(0,ae.useState)("left"),[g,y]=(0,ae.useState)("p"),M=f=>{e.update(()=>{let G=(0,D.$getSelection)();(0,D.$isRangeSelection)(G)&&(f==="p"?(0,lt.$setBlocksType)(G,()=>(0,D.$createParagraphNode)()):(0,lt.$setBlocksType)(G,()=>(0,wo.$createHeadingNode)(f)))})},Z=(0,ae.useCallback)(()=>{let f=(0,D.$getSelection)();if((0,D.$isRangeSelection)(f)){s(f.hasFormat("bold")),S(f.hasFormat("italic")),v(f.hasFormat("underline")),h(f.hasFormat("strikethrough")),A(f.hasFormat("subscript")),w(f.hasFormat("superscript"));let G=f.anchor.getNode(),j=G;for(;j&&!(0,D.$isParagraphNode)(j)&&j!==(0,D.$getRoot)();){let oe=j.getParent();oe&&(j=oe)}if(j){let oe=j.getFormatType();X(oe||"left")}let be=G.getTopLevelElement()?.__tag;y(be||"p")}},[]);(0,ae.useEffect)(()=>(0,mo.mergeRegister)(e.registerUpdateListener(({editorState:f})=>{f.read(()=>{Z()})}),e.registerCommand(D.SELECTION_CHANGE_COMMAND,(f,G)=>(Z(),!1),st),e.registerCommand(D.CAN_UNDO_COMMAND,f=>(r(f),!1),st),e.registerCommand(D.CAN_REDO_COMMAND,f=>(a(f),!1),st)),[e,Z]);let E=[[{label:"Undo",icon:(0,Rt.jsx)(te.RotateCcw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(D.UNDO_COMMAND,void 0)},disabled:!o},{label:"Redo",icon:(0,Rt.jsx)(te.RotateCw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(D.UNDO_COMMAND,void 0)},disabled:!n}],[{label:"Bold",icon:(0,Rt.jsx)($t,{}),onClick:()=>{e.dispatchCommand(D.FORMAT_TEXT_COMMAND,"bold")},value:"bold",active:i},{label:"Italic",icon:(0,Rt.jsx)(jt,{}),onClick:()=>{e.dispatchCommand(D.FORMAT_TEXT_COMMAND,"italic")},value:"italic",active:p},{label:"Underline",icon:(0,Rt.jsx)(Wt,{}),onClick:()=>{e.dispatchCommand(D.FORMAT_TEXT_COMMAND,"underline")},value:"underline",active:R},{label:"Strikethrough",icon:(0,Rt.jsx)(Ut,{}),onClick:()=>{e.dispatchCommand(D.FORMAT_TEXT_COMMAND,"strikethrough")},value:"strikethrough",active:I},{label:"Subscript",icon:(0,Rt.jsx)(Zt,{}),onClick:()=>{e.dispatchCommand(D.FORMAT_TEXT_COMMAND,"subscript")},value:"subscript",active:x},{label:"Superscript",icon:(0,Rt.jsx)(qt,{}),onClick:()=>{e.dispatchCommand(D.FORMAT_TEXT_COMMAND,"superscript")},value:"superscript",active:T}]],q=[{label:"Left Align",direction:"left",icon:(0,Rt.jsx)(te.AlignLeft,{width:15,height:15}),onClick:()=>{e.dispatchCommand(D.FORMAT_ELEMENT_COMMAND,"left")}},{label:"Center Align",direction:"center",icon:(0,Rt.jsx)(te.AlignCenter,{width:15,height:15}),onClick:()=>{e.dispatchCommand(D.FORMAT_ELEMENT_COMMAND,"center")}},{label:"Right Align",direction:"right",icon:(0,Rt.jsx)(te.AlignRight,{width:15,height:15}),onClick:()=>{e.dispatchCommand(D.FORMAT_ELEMENT_COMMAND,"right")}},{label:"Justify Align",direction:"justify",icon:(0,Rt.jsx)(te.AlignJustify,{width:15,height:15}),onClick:()=>{e.dispatchCommand(D.FORMAT_ELEMENT_COMMAND,"justify")}}],ne=[{label:"Normal Text",value:"p",icon:(0,Rt.jsx)(Xt,{}),onClick:()=>M("p")},{label:"Heading 1",value:"h1",icon:(0,Rt.jsx)(Jt,{}),onClick:()=>M("h1")},{label:"Heading 2",value:"h2",icon:(0,Rt.jsx)(Qt,{}),onClick:()=>M("h2")},{label:"Heading 3",value:"h3",icon:(0,Rt.jsx)(Yt,{}),onClick:()=>M("h3")},{label:"Heading 4",value:"h4",icon:(0,Rt.jsx)(eo,{}),onClick:()=>M("h4")},...[{label:"Unordered List",value:"ul",icon:(0,Rt.jsx)(te.List,{width:15,height:15}),onClick:()=>{e.dispatchCommand(Oe.INSERT_UNORDERED_LIST_COMMAND,void 0)}},{label:"Ordered List",value:"ol",icon:(0,Rt.jsx)(te.ListOrdered,{width:15,height:15}),onClick:()=>{e.dispatchCommand(Oe.INSERT_ORDERED_LIST_COMMAND,void 0)}}]],ie=[{label:"Insert Image",icon:(0,Rt.jsx)(te.ImageUp,{width:15,height:15}),onClick:()=>{k(!0)},disabled:!1}];return(0,Rt.jsx)("div",{className:"flex justify-between border border-[#222222] py-2 px-2",children:(0,Rt.jsxs)("div",{className:"flex gap-2 ",ref:t,children:[E.map((f,G)=>(0,Rt.jsxs)(ae.Fragment,{children:[(0,Rt.jsx)("div",{className:"flex items-center gap-2",children:f.map((j,be)=>(0,Rt.jsx)("div",{role:"button","aria-disabled":j.disabled||!1,onClick:j.onClick,className:u("p-1 transition-all flex items-center justify-center rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",j.active&&"bg-[#3c3c3c]"),"aria-label":j.label,children:(0,Rt.jsx)(at,{children:(0,Rt.jsxs)(nt,{children:[(0,Rt.jsx)(it,{className:"text-[#b5b5b5]",children:j.icon}),(0,Rt.jsx)(ze,{children:(0,Rt.jsx)("p",{children:j.label})})]})})},be))}),(0,Rt.jsx)(kr,{})]},`toolbar-option-${f.length}-${G}`)),(0,Rt.jsxs)(Le,{children:[(0,Rt.jsxs)(Ve,{className:"flex items-center justify-center gap-2 px-2 py-1 rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c] text-[#b5b5b5] text-xs",children:[q.find(f=>f.direction===O)?.icon,q.find(f=>f.direction===O)?.label,(0,Rt.jsx)(te.ChevronDown,{width:15,height:15})]}),(0,Rt.jsx)(Te,{className:"bg-black hover:bg-black",children:q.map((f,G)=>(0,Rt.jsxs)(Ie,{onClick:f.onClick,className:"flex items-center gap-2 text-xs text-[#b5b5b5] hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",children:[(0,Rt.jsx)("span",{children:f.icon}),(0,Rt.jsx)("span",{children:f.label})]},`${f.label}-${G}`))})]}),(0,Rt.jsxs)(Le,{children:[(0,Rt.jsxs)(Ve,{className:"flex items-center justify-center gap-2 px-2 py-1 rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c] text-[#b5b5b5] text-xs",children:[ne.find(f=>f.value===g)?.icon,ne.find(f=>f.value===g)?.label,(0,Rt.jsx)(te.ChevronDown,{width:15,height:15})]}),(0,Rt.jsx)(Te,{className:"bg-black hover:bg-black",children:ne.map((f,G)=>(0,Rt.jsxs)(Ie,{onClick:f.onClick,className:"flex items-center gap-2 text-xs text-[#b5b5b5] hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",children:[(0,Rt.jsx)("span",{children:f.icon}),(0,Rt.jsx)("span",{children:f.label})]},`heading-option-${f.label}-${G}`))})]})]})})}var Tr=({setValue:e,value:t,name:o,editable:r=!0})=>{let[n]=(0,co.useLexicalComposerContext)(),a=i=>{i.read(()=>{let s=i.toJSON();e?.(()=>s)})};return(0,ae.useEffect)(()=>{n.setEditable(r)},[r]),(0,ae.useEffect)(()=>{t&&n.update(()=>{n.setEditorState(n.parseEditorState(t))})},[]),(0,Rt.jsx)("div",{className:"w-full",children:(0,Rt.jsxs)("div",{className:" ",children:[r&&(0,Rt.jsx)(dt,{}),(0,Rt.jsxs)("div",{className:"px-4 my-4 border-Rt border-[#222222]",children:[(0,Rt.jsx)(vo.RichTextPlugin,{contentEditable:(0,Rt.jsx)(go.ContentEditable,{name:o,className:"focus:outline-none focus:ring-0 focus-visible:outline-none min-h-40"}),ErrorBoundary:bo.LexicalErrorBoundary}),r&&(0,Rt.jsxs)(Rt.Fragment,{children:[(0,Rt.jsx)(ho.HistoryPlugin,{}),(0,Rt.jsx)(uo.AutoFocusPlugin,{}),(0,Rt.jsx)(xo.ListPlugin,{}),(0,Rt.jsx)(yo.OnChangePlugin,{onChange:a})]})]})]})})},Ir=({setValue:e,value:t,name:o,editable:r=!0})=>(0,Rt.jsx)(fo.LexicalComposer,{initialConfig:{namespace:"Lexical editor",nodes:[Oe.ListNode,Oe.ListItemNode,wo.HeadingNode],onError(a){throw console.error("Lexical error:",a),a},theme:{code:"editor-code",heading:{h1:"text-4xl",h2:"text-3xl",h3:"text-2xl",h4:"text-lg",h5:"text-sm"},image:"editor-image",link:"editor-link",list:{listitem:"editor-listitem",nested:{listitem:"editor-nested-listitem"},ol:"list-decimal",ul:"list-disc"},ltr:"ltr",paragraph:"editor-paragraph",placeholder:"editor-placeholder",quote:"editor-quote",rtl:"rtl",text:{bold:"editor-text-bold font-bold",code:"editor-text-code",hashtag:"editor-text-hashtag",italic:"editor-text-italic italic",overflowed:"editor-text-overflowed",strikethrough:"editor-text-strikethrough line-through",underline:"editor-text-underline underline",underlineStrikethrough:"underline line-through"}}},children:(0,Rt.jsx)(Tr,{value:t,setValue:e,name:o,editable:r})}),Ke=Ir;function No({document:e,onSave:t,mode:o="edit",onCancel:r,availableDocuments:n=[],knowledgeContexts:a=[]}){let[i,s]=(0,ae.useState)({...e,updatedAt:new Date}),[p,S]=(0,ae.useState)(!1),[R,v]=(0,ae.useState)(i.richTextContent);(0,ae.useEffect)(()=>{s(e)},[e]);let I=g=>{switch(g){case"markdown":case"mdx":return(0,Rt.jsx)(te.FileText,{className:"h-6 w-6 text-primary"});case"richText":return(0,Rt.jsx)(te.File,{className:"h-6 w-6 text-success"});case"text":return(0,Rt.jsx)(te.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,Rt.jsx)(te.File,{className:"h-6 w-6 text-muted-foreground"})}},h=g=>{switch(g){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richText":return"bg-success/10 text-success border-success/20";case"text":return"bg-muted/50 text-muted-foreground border-muted-foreground/20";default:return"bg-muted text-muted-foreground border-border"}},x=()=>{let g=new Set,y=new Set;return a.forEach(M=>{M.menuConfig.groupBy.forEach(Z=>g.add(Z))}),n.forEach(M=>{M.metadata&&Object.keys(M.metadata).forEach(Z=>y.add(Z))}),{contextKeys:Array.from(g).sort(),documentKeys:Array.from(y).sort(),allKeys:Array.from(new Set([...g,...y])).sort()}},A=g=>{let y=new Set;return n.forEach(M=>{M.metadata?.[g]&&y.add(String(M.metadata[g]))}),Array.from(y).sort()},T=x(),w=()=>{t({...i,richTextContent:R})},H=(g,y)=>{s(M=>({...M,metadata:{...M.metadata,[g]:y}}))},k=(g,y)=>{y==="__custom__"?H(g,""):H(g,y)},O=()=>{H("","")},X=g=>{s(y=>{let M={...y.metadata};return delete M[g],{...y,metadata:M}})};return(0,Rt.jsxs)(ve.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-screen flex flex-col",children:[(0,Rt.jsxs)("div",{className:"border-b border-border bg-card p-8 pb-6",children:[(0,Rt.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,Rt.jsx)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:(0,Rt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Rt.jsxs)("div",{className:"flex items-start gap-4 mb-0 leading-tight",children:[(0,Rt.jsx)("div",{className:"flex-1 min-w-0",children:(0,Rt.jsx)(Qe,{fieldName:"title",value:i.title,label:"",onSave:(g,y)=>s(M=>({...M,title:y})),className:"[&>div:last-child]:text-2xl [&>div:last-child]:font-bold [&>div:last-child]:leading-tight [&>div:last-child]:text-foreground [&>div:last-child]:p-0 [&>div:last-child]:border-0 [&>div:last-child]:hover:bg-muted/30 [&>div:last-child]:min-h-0"})}),(0,Rt.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${h(i.format)} flex-shrink-0 ve-1`,children:i.format.toUpperCase()})]}),(0,Rt.jsx)("div",{className:"ve-2",children:(0,Rt.jsx)(Qe,{fieldName:"description",value:i.description||"Click to add description...",label:"",multiline:!0,onSave:(g,y)=>s(M=>({...M,description:y})),className:"[&>div:last-child]:text-muted-foreground [&>div:last-child]:text-lg [&>div:last-child]:leading-relaxed [&>div:last-child]:p-0 [&>div:last-child]:border-0 [&>div:last-child]:hover:bg-muted/30 [&>div:last-child]:min-h-0"})})]})}),(0,Rt.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(0,Rt.jsxs)(re,{variant:"ghost",size:"sm",onClick:()=>S(!p),className:"gap-2",children:[(0,Rt.jsx)(te.Info,{className:"h-4 w-4"}),"Metadata",i.metadata&&Object.keys(i.metadata).length>0&&(0,Rt.jsx)("span",{className:"inline-flex items-center justify-center w-5 h-5 text-xs font-medium bg-primary/10 text-primary rounded-full",children:Object.keys(i.metadata).length}),p?(0,Rt.jsx)(te.ChevronDown,{className:"h-4 w-4"}):(0,Rt.jsx)(te.ChevronRight,{className:"h-4 w-4"})]}),(0,Rt.jsxs)(re,{variant:"outline",size:"sm",onClick:r,className:"gap-2",children:[(0,Rt.jsx)(te.X,{className:"h-4 w-4"}),"Cancel"]}),(0,Rt.jsxs)(re,{size:"sm",onClick:w,className:"gap-2",children:[(0,Rt.jsx)(te.Save,{className:"h-4 w-4"}),"Save"]})]})]}),(0,Rt.jsx)(ve.motion.div,{initial:!1,animate:{height:p?"auto":0,opacity:p?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden h-full max-h-full",children:(0,Rt.jsxs)("div",{className:"ve-4 border-t border-border ve-4 h-screen max-h-full flex",children:[(0,Rt.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Rt.jsxs)("h3",{className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[(0,Rt.jsx)(te.Info,{className:"h-4 w-4"}),"Document Metadata"]}),(0,Rt.jsxs)(re,{type:"button",variant:"outline",size:"sm",onClick:O,className:"gap-1 h-8",children:[(0,Rt.jsx)(te.Plus,{className:"h-3 w-3"}),"Add Field"]})]}),(0,Rt.jsx)("div",{className:"bg-muted rounded-lg p-4 border border-border",children:i.metadata&&Object.keys(i.metadata).length>0?(0,Rt.jsx)("div",{className:"space-y-2",children:Object.entries(i.metadata).map(([g,y],M)=>{let Z=A(g);return(0,Rt.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Rt.jsx)(ue,{value:g,onChange:E=>{let q=E.target.value||"",P=i.metadata?.[g];s(ne=>{let ie={...ne.metadata};return delete ie[g],q&&(ie[q]=P||""),{...ne,metadata:ie}})},placeholder:"Key",className:"w-32 h-8 text-sm",list:`metadata-keys-${g}`}),(0,Rt.jsx)("datalist",{id:`metadata-keys-${g}`,children:T.allKeys.map(E=>(0,Rt.jsx)("option",{value:E},E))}),(0,Rt.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),Z.length>0?(0,Rt.jsxs)(Vt,{value:String(y||""),onValueChange:E=>k(g,E),children:[(0,Rt.jsx)(Ue,{className:"flex-1 h-8 text-sm",children:(0,Rt.jsx)(zt,{placeholder:"Value"})}),(0,Rt.jsxs)(Ze,{children:[Z.map(E=>(0,Rt.jsx)(Ae,{value:E,children:E},E)),(0,Rt.jsx)(Ae,{value:"__custom__",children:(0,Rt.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,Rt.jsx)(ue,{value:String(y||""),onChange:E=>H(g,E.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),(0,Rt.jsx)(re,{type:"button",variant:"ghost",size:"sm",onClick:()=>X(g),className:"h-8 w-8 p-0 text-muted-foreground hover:text-destructive",children:(0,Rt.jsx)(te.X,{className:"h-3 w-3"})})]},`metadata-key-${M}`)})}):(0,Rt.jsxs)("div",{className:"text-center py-4",children:[(0,Rt.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"No metadata fields"}),(0,Rt.jsx)("p",{className:"text-xs text-muted-foreground",children:'Click "Add Field" to create metadata'})]})})]})})]}),(0,Rt.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,Rt.jsx)("div",{className:"p-8 h-full max-h-full overflow-auto",children:i.format==="richText"?(0,Rt.jsx)(Ke,{setValue:v,value:R,name:"richTextContent"}):(0,Rt.jsx)(De,{value:i.content||"",onChange:g=>s(y=>({...y,content:g.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})})})]})}var Ro=$(require("react-markdown")),Do=$(require("remark-gfm"));var Mo=e=>(0,Rt.jsx)(Ro.default,{remarkPlugins:[Do.default],components:{h1:({children:t})=>(0,Rt.jsx)("h1",{className:"text-2xl font-bold",children:t}),h2:({children:t})=>(0,Rt.jsx)("h2",{className:"text-xl font-bold",children:t}),h3:({children:t})=>(0,Rt.jsx)("h3",{className:"text-lg font-bold",children:t}),h4:({children:t})=>(0,Rt.jsx)("h4",{className:"text-base font-bold",children:t}),ol:({children:t})=>(0,Rt.jsx)("ol",{className:"list-decimal",children:t}),ul:({children:t})=>(0,Rt.jsx)("ul",{className:"list-disc",children:t}),li:({children:t})=>(0,Rt.jsx)("li",{className:"ml-4",children:t}),p:({children:t})=>(0,Rt.jsx)("p",{className:"mb-4",children:t}),a:({children:t,href:o})=>(0,Rt.jsx)("a",{href:o,className:"text-blue-500",children:t}),img:({src:t,alt:o})=>(0,Rt.jsx)("img",{src:t,alt:o,className:"mb-4"}),blockquote:({children:t})=>(0,Rt.jsx)("blockquote",{className:"border-Rt-4 border-gray-300 pl-4 mb-4",children:t})},children:e}),So=e=>(0,Rt.jsx)("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:e}),Hr=e=>(0,Rt.jsx)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:e&&(0,Rt.jsx)(Ke,{value:JSON.stringify(e),editable:!1,name:"richTextContent"})}),Er=e=>(0,Rt.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,Rt.jsx)("div",{className:"bg-blue-50 dark:bg-blue-950/20 border border-blue-200 dark:border-blue-800 rounded-lg p-4 mb-4",children:(0,Rt.jsxs)("p",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[(0,Rt.jsx)("strong",{children:"MDX Renderer:"})," This is a placeholder. Integrate with @mdx-js/react for full MDX rendering."]})}),Mo(e)]});function ko({document:e,onDocumentUpdate:t,editable:o=!0,mode:r="view",renderers:n,availableDocuments:a=[],knowledgeContexts:i=[]}){let[s,p]=(0,ae.useState)(!1),[S,R]=(0,ae.useState)(!1),[v,I]=(0,ae.useState)(e);(0,ae.useEffect)(()=>{I(e)},[e]);let h=k=>{switch(k){case"markdown":case"mdx":return(0,Rt.jsx)(te.FileText,{className:"h-6 w-6 text-primary"});case"richText":return(0,Rt.jsx)(te.File,{className:"h-6 w-6 text-success"});case"text":return(0,Rt.jsx)(te.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,Rt.jsx)(te.File,{className:"h-6 w-6 text-muted-foreground"})}},x=k=>{switch(k){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richText":return"bg-success/10 text-success border-success/20";case"text":return"bg-muted/50 text-muted-foreground border-muted-foreground/20";default:return"bg-muted text-muted-foreground border-border"}},A=(k,O)=>{let X={markdown:Mo,mdx:Er,text:So},g=n?.[O]||X[O];if(O==="richText"&&typeof k=="object")return Hr(k);if(g&&typeof k=="string")return g(k);if(typeof k=="string")return So(k)},T=k=>{p(!1),t?.(k),I(k)},w=()=>{p(!1)};return(0,Rt.jsxs)(Rt.Fragment,{children:[(0,Rt.jsx)(Et,{open:s||r==="create",onOpenChange:k=>!k&&w(),children:(0,Rt.jsxs)(We,{children:[(0,Rt.jsx)(Ee,{}),(0,Rt.jsx)(Po.Content,{className:u("fixed inset-0 te-50 bg-background p-0 Rt-0 border-0","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"),children:(0,Rt.jsx)(No,{mode:r==="create"?"create":"edit",document:v,onSave:T,onCancel:w,availableDocuments:a,knowledgeContexts:i})})]})}),(0,Rt.jsxs)(ve.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Rt.jsxs)("div",{className:"border-b border-border bg-card p-8 pb-6",children:[(0,Rt.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,Rt.jsx)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:(0,Rt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Rt.jsxs)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:[v.title,(0,Rt.jsx)("span",{className:`inline-flex ml-4 items-center px-3 py-1 rounded-full text-sm font-medium border ${x(v.format)}`,children:v.format.toUpperCase()})]}),v.description&&(0,Rt.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed",children:v.description})]})}),(0,Rt.jsxs)("div",{className:"items-center gap-2 flex-shrink-0 hidden lg:flex",children:[v.metadata&&Object.keys(v.metadata).length>0&&(0,Rt.jsxs)(re,{variant:"ghost",size:"sm",onClick:()=>R(!S),className:"gap-2",children:[(0,Rt.jsx)(te.Info,{className:"h-4 w-4"}),"Metadata",S?(0,Rt.jsx)(te.ChevronDown,{className:"h-4 w-4"}):(0,Rt.jsx)(te.ChevronRight,{className:"h-4 w-4"})]}),o&&(0,Rt.jsxs)(re,{variant:"outline",size:"sm",onClick:()=>p(!0),className:"gap-2",children:[(0,Rt.jsx)(te.Edit3,{className:"h-4 w-4"}),"Edit"]})]})]}),v.metadata&&Object.keys(v.metadata).length>0&&(0,Rt.jsx)(ve.motion.div,{initial:!1,animate:{height:S?"auto":0,opacity:S?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Rt.jsxs)("div",{className:"ve-4 border-t border-border ve-4",children:[(0,Rt.jsxs)("h3",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[(0,Rt.jsx)(te.Info,{className:"h-4 w-4"}),"Document Metadata"]}),(0,Rt.jsx)("div",{className:"bg-muted rounded-lg p-4 border border-border",children:(0,Rt.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-6 gap-y-2 text-sm",children:Object.entries(v.metadata).map(([k,O])=>(0,Rt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Rt.jsx)("span",{className:"text-muted-foreground font-medium text-xs uppercase tracking-wide",children:k.replace(/([A-Z])/g," $1").trim()}),(0,Rt.jsx)("span",{className:"text-foreground font-medium",children:String(O)})]},k))})})]})})]}),(0,Rt.jsx)("div",{className:"flex-1 ",children:(0,Rt.jsx)("div",{className:"py-4 h-full",children:(0,Rt.jsx)("div",{className:"space-y-4",children:v.content||v.richTextContent?(0,Rt.jsx)("div",{className:"relative",children:(0,Rt.jsx)("div",{className:"bg-background px-8 overflow-hidden h-full flex-1",children:A(v.format==="richText"?v.richTextContent:v.content,v.format)})}):(0,Rt.jsxs)("div",{className:"text-center p-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,Rt.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,Rt.jsx)(te.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Rt.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,Rt.jsx)("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})})})]})]})}function ut({label:e,documents:t,children:o,level:r,onDocumentClick:n,selectedDocumentId:a,showDocumentCount:i=!0}){let[s,p]=(0,ae.useState)(r===0),S=o&&Object.keys(o).length>0,R=t.length+(o?Object.values(o).reduce((h,x)=>h+x.documents.length,0):0),v=h=>{switch(h){case"markdown":case"mdx":return(0,Rt.jsx)(te.FileText,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richText":return(0,Rt.jsx)(te.File,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return(0,Rt.jsx)(te.File,{className:"h-3.5 w-3.5 text-muted-foreground"})}},I=h=>{let x=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return x[h%x.length]};return(0,Rt.jsxs)("div",{className:"space-y-1",children:[(S||t.length>0)&&(0,Rt.jsxs)(ve.motion.div,{className:`group flex items-center gap-3 p-3 rounded-xl cursor-pointer transition-all duration-200 ${s?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${r*20}px`},onClick:()=>p(!s),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Rt.jsx)("div",{className:`w-1 h-6 rounded-full ${I(r)}`}),(0,Rt.jsx)(ve.motion.div,{animate:{rotate:s?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,Rt.jsx)(te.ChevronRight,{className:"h-4 w-4 text-muted-foreground"})}),(0,Rt.jsxs)("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[(0,Rt.jsx)("div",{className:"flex items-center gap-2 min-w-0",children:(0,Rt.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),i&&R>0&&(0,Rt.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,Rt.jsx)("span",{className:"inline-flex items-center justify-center w-6 h-6 text-xs font-medium bg-muted text-muted-foreground rounded-full",children:R})})]})]}),(0,Rt.jsx)(ve.motion.div,{initial:!1,animate:{height:s?"auto":0,opacity:s?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Rt.jsxs)("div",{className:"ve-2 space-y-1",children:[t.map((h,x)=>(0,Rt.jsxs)(ve.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:x*.05,duration:.2},className:`group flex items-center gap-3 p-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${a===h.id?"bg-primary/10 border-Rt-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${r*20+20}px`},onClick:()=>n?.(h),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Rt.jsx)("div",{className:"flex-shrink-0",children:v(h.format)}),(0,Rt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Rt.jsx)("p",{className:`text-sm truncate transition-colors ${a===h.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:h.title}),h.description&&(0,Rt.jsx)("p",{className:"text-xs text-muted-foreground truncate ve-0.5",children:h.description})]}),h.tags&&h.tags.length>0&&(0,Rt.jsx)("div",{className:"flex-shrink-0",children:(0,Rt.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-muted text-muted-foreground group-hover:bg-muted/80 transition-colors",children:h.tags[0]})})]},h.id)),o&&Object.entries(o).map(([h,x])=>(0,Rt.jsx)(ut,{label:h,documents:x.documents,children:x.children,level:r+1,onDocumentClick:n,selectedDocumentId:a,showDocumentCount:i},h))]})})]})}function Ar({documents:e,menuConfig:t,onDocumentClick:o,onDocumentShare:r,onDocumentUpdate:n,selectedDocumentId:a,className:i,editable:s=!0}){let[p,S]=(0,ae.useState)(""),[R,v]=(0,ae.useState)(null),[I,h]=(0,ae.useState)(e);(0,ae.useEffect)(()=>{h(e)},[e]);let x=(0,ae.useMemo)(()=>p?I.filter(w=>w.title.toLowerCase().includes(p.toLowerCase())||w.description?.toLowerCase().includes(p.toLowerCase())||w.tags?.some(H=>H.toLowerCase().includes(p.toLowerCase()))||Object.values(w.metadata||{}).some(H=>String(H).toLowerCase().includes(p.toLowerCase()))):I,[I,p]),A=(0,ae.useMemo)(()=>{let w=(H,k)=>{if(k.length===0)return{};let[O,...X]=k;return H.reduce((y,M)=>{let Z=M.metadata?.[O]||"Uncategorized",E=String(Z);if(y[E]||(y[E]={documents:[],children:{}}),X.length===0)y[E].documents.push(M);else{let q=w([M],X),P=Object.keys(q)[0];P&&(y[E].children||(y[E].children={}),y[E].children[P]?y[E].children[P].documents.push(...q[P].documents):y[E].children[P]=q[P])}return y},{})};return w(x,t.groupBy)},[x,t.groupBy]),T=w=>{v(w),o?.(w)};return(0,Rt.jsxs)("div",{className:`flex h-full ${i||""}`,children:[(0,Rt.jsxs)("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[(0,Rt.jsx)("div",{className:"p-6 border-b border-border",children:(0,Rt.jsxs)("div",{className:"relative",children:[(0,Rt.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,Rt.jsx)(te.Search,{className:"h-4 w-4 text-muted-foreground"})}),(0,Rt.jsx)(ue,{placeholder:"Search knowledge base...",value:p,onChange:w=>S(w.target.value),className:"pl-10 bg-background/80 border-border focus:border-primary/50 focus:ring-primary/20 rounded-xl h-11 text-sm placeholder:text-muted-foreground"})]})}),(0,Rt.jsx)(je,{className:"h-[calc(100%-100px)]",children:(0,Rt.jsx)("div",{className:"p-4 space-y-3",children:t.groupBy.length===0?(0,Rt.jsx)(Rt.Fragment,{children:(0,Rt.jsx)(ut,{label:"Document",documents:x,level:0,onDocumentClick:T,selectedDocumentId:a,showDocumentCount:t.showDocumentCount},"Document")}):(0,Rt.jsxs)(Rt.Fragment,{children:[Object.entries(A).map(([w,H])=>(0,Rt.jsx)(ut,{label:w,documents:H.documents,children:H.children,level:0,onDocumentClick:T,selectedDocumentId:a,showDocumentCount:t.showDocumentCount},w)),Object.keys(A).length===0&&(0,Rt.jsxs)(ve.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,Rt.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,Rt.jsx)(te.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Rt.jsx)("p",{className:"text-sm font-medium",children:"No documents found"}),(0,Rt.jsx)("p",{className:"text-xs ve-1",children:"Try adjusting your search terms"})]})]})})})]}),(0,Rt.jsx)("div",{className:"flex-1 bg-background overflow-scroll",children:R?(0,Rt.jsx)(ko,{document:R,onDocumentUpdate:n,editable:s}):(0,Rt.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,Rt.jsxs)(ve.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"max-w-sm",children:[(0,Rt.jsx)("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,Rt.jsx)(te.FileText,{className:"h-10 w-10 text-primary"})}),(0,Rt.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,Rt.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}0&&(module.exports={KnowledgeBrowser});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../chunk-PJOYZVEY.mjs";import"../../chunk-OTFFDAVV.mjs";import"../../chunk-NH32U7JS.mjs";import"../../chunk-QAJBJFRP.mjs";import"../../chunk-PTJVI53B.mjs";import"../../chunk-T3F3RQIC.mjs";import"../../chunk-UP67R64J.mjs";import"../../chunk-6QERRKM4.mjs";import"../../chunk-VSU7LYXZ.mjs";import"../../chunk-IPRG56MW.mjs";import"../../chunk-HFEN3KJC.mjs";import"../../chunk-L2UJOICL.mjs";import"../../chunk-DFIXTV2M.mjs";import"../../chunk-U5PBLRRV.mjs";import"../../chunk-Q5Q3DJWU.mjs";import"../../chunk-4QRKVSTE.mjs";import"../../chunk-E4TE4NV6.mjs";import"../../chunk-JFFTEK6Z.mjs";import"../../chunk-JHNVX4UB.mjs";import"../../chunk-7BXIU4ZM.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-76M7JE4D.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-OYZDAMCS.mjs";import"../../chunk-5NRGSTPV.mjs";import"../../chunk-ZFUP5NVF.mjs";import"../../chunk-4UIARERB.mjs";import"../../chunk-D4IMQTVU.mjs";import"../../chunk-7GSXNSLD.mjs";import"../../chunk-YNCJATT7.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-EGEO3FNE.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-CV7PH2KH.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as KnowledgeBrowser};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-ITJH72Z2.mjs";import"../../chunk-L3BLBPSR.mjs";import"../../chunk-PDY7JYY3.mjs";import"../../chunk-Q5XT55O3.mjs";import"../../chunk-WISC5QJV.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-EGEO3FNE.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as Header};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-3HNU2NYP.mjs";import"../../chunk-2BRDNDUB.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-2QZUKVBA.mjs";import"../../chunk-TXVA6XJT.mjs";import"../../chunk-JYL3XIJX.mjs";import"../../chunk-4CU7D3X2.mjs";import"../../chunk-LVK4QE5D.mjs";import"../../chunk-NSMXJCXE.mjs";import"../../chunk-LKGCU7H6.mjs";import"../../chunk-5WV5ZFEP.mjs";import"../../chunk-KX2NCNCS.mjs";import"../../chunk-LEC6GEWS.mjs";import"../../chunk-XGIYNUGC.mjs";import"../../chunk-X3JZSN3W.mjs";import"../../chunk-2BR55L74.mjs";import"../../chunk-TEB67NCD.mjs";import"../../chunk-KFCSVEI6.mjs";import"../../chunk-LXZAOORS.mjs";import"../../chunk-MGYV46AJ.mjs";import"../../chunk-CGDLOY7W.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-BG7QXNV5.mjs";import"../../chunk-BVFUCOCP.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-EGEO3FNE.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as SectionHeading};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../chunk-FHMQVAKQ.mjs";import"../../chunk-7WIO2CIC.mjs";import"../../chunk-X5KZKO2V.mjs";import"../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../chunk-FHMQVAKQ.mjs";import"../../chunk-7WIO2CIC.mjs";import"../../chunk-X5KZKO2V.mjs";import"../../chunk-FMJBJ3HN.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-EGEO3FNE.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as VideoHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import{a}from"../../chunk-IC2ABKAM.mjs";import{a as b}from"../../chunk-FHMQVAKQ.mjs";import"../../chunk-7WIO2CIC.mjs";import"../../chunk-X5KZKO2V.mjs";import{a as f}from"../../chunk-6C4WESLL.mjs";import{a as g}from"../../chunk-ITJH72Z2.mjs";import{a as d}from"../../chunk-L3BLBPSR.mjs";import"../../chunk-ZDPQXVTF.mjs";import{a as e}from"../../chunk-PDY7JYY3.mjs";import{a as c}from"../../chunk-Q5XT55O3.mjs";import{a as h}from"../../chunk-22LHS2J6.mjs";import"../../chunk-WISC5QJV.mjs";import"../../chunk-55EX54R7.mjs";import"../../chunk-FMJBJ3HN.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-EGEO3FNE.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{c as BrandLogo,f as Footer,g as Header,d as HeaderDesktop,e as HeaderMobile,h as RelatedPagesMenu,a as SimpleHeader,b as VideoHeader};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../../chunk-RGOKBIQ5.mjs";import"../../../chunk-2BRDNDUB.mjs";import"../../../chunk-O5BAW5XQ.mjs";import"../../../chunk-2QZUKVBA.mjs";import"../../../chunk-TXVA6XJT.mjs";import"../../../chunk-JYL3XIJX.mjs";import"../../../chunk-4CU7D3X2.mjs";import"../../../chunk-LVK4QE5D.mjs";import"../../../chunk-NSMXJCXE.mjs";import"../../../chunk-LKGCU7H6.mjs";import"../../../chunk-5WV5ZFEP.mjs";import"../../../chunk-KX2NCNCS.mjs";import"../../../chunk-LEC6GEWS.mjs";import"../../../chunk-XGIYNUGC.mjs";import"../../../chunk-X3JZSN3W.mjs";import"../../../chunk-2BR55L74.mjs";import"../../../chunk-TEB67NCD.mjs";import"../../../chunk-KFCSVEI6.mjs";import"../../../chunk-LXZAOORS.mjs";import"../../../chunk-MGYV46AJ.mjs";import"../../../chunk-CGDLOY7W.mjs";import"../../../chunk-3UMMMQEH.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-BG7QXNV5.mjs";import"../../../chunk-BVFUCOCP.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-WISCWNL2.mjs";import"../../../chunk-FVM5SQT2.mjs";import"../../../chunk-EGEO3FNE.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as HighImpactHero};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-NINFDOV5.mjs";import"../../../chunk-2BRDNDUB.mjs";import"../../../chunk-O5BAW5XQ.mjs";import"../../../chunk-2QZUKVBA.mjs";import"../../../chunk-TXVA6XJT.mjs";import"../../../chunk-JYL3XIJX.mjs";import"../../../chunk-4CU7D3X2.mjs";import"../../../chunk-LVK4QE5D.mjs";import"../../../chunk-NSMXJCXE.mjs";import"../../../chunk-LKGCU7H6.mjs";import"../../../chunk-5WV5ZFEP.mjs";import"../../../chunk-KX2NCNCS.mjs";import"../../../chunk-LEC6GEWS.mjs";import"../../../chunk-XGIYNUGC.mjs";import"../../../chunk-X3JZSN3W.mjs";import"../../../chunk-2BR55L74.mjs";import"../../../chunk-TEB67NCD.mjs";import"../../../chunk-KFCSVEI6.mjs";import"../../../chunk-LXZAOORS.mjs";import"../../../chunk-MGYV46AJ.mjs";import"../../../chunk-CGDLOY7W.mjs";import"../../../chunk-3UMMMQEH.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-BG7QXNV5.mjs";import"../../../chunk-BVFUCOCP.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-WISCWNL2.mjs";import"../../../chunk-FVM5SQT2.mjs";import"../../../chunk-EGEO3FNE.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as LowImpactHero};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-C4RWEPVF.mjs";import"../../../chunk-2BRDNDUB.mjs";import"../../../chunk-O5BAW5XQ.mjs";import"../../../chunk-2QZUKVBA.mjs";import"../../../chunk-TXVA6XJT.mjs";import"../../../chunk-JYL3XIJX.mjs";import"../../../chunk-4CU7D3X2.mjs";import"../../../chunk-LVK4QE5D.mjs";import"../../../chunk-NSMXJCXE.mjs";import"../../../chunk-LKGCU7H6.mjs";import"../../../chunk-5WV5ZFEP.mjs";import"../../../chunk-KX2NCNCS.mjs";import"../../../chunk-LEC6GEWS.mjs";import"../../../chunk-XGIYNUGC.mjs";import"../../../chunk-X3JZSN3W.mjs";import"../../../chunk-2BR55L74.mjs";import"../../../chunk-TEB67NCD.mjs";import"../../../chunk-KFCSVEI6.mjs";import"../../../chunk-LXZAOORS.mjs";import"../../../chunk-MGYV46AJ.mjs";import"../../../chunk-CGDLOY7W.mjs";import"../../../chunk-3UMMMQEH.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-BG7QXNV5.mjs";import"../../../chunk-BVFUCOCP.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-WISCWNL2.mjs";import"../../../chunk-FVM5SQT2.mjs";import"../../../chunk-EGEO3FNE.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as MediumImpactHero};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-TTWEHUP5.mjs";import"../../chunk-MZP7RIQZ.mjs";import"../../chunk-RGOKBIQ5.mjs";import"../../chunk-C4RWEPVF.mjs";import"../../chunk-NINFDOV5.mjs";import"../../chunk-2BRDNDUB.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-2QZUKVBA.mjs";import"../../chunk-TXVA6XJT.mjs";import"../../chunk-JYL3XIJX.mjs";import"../../chunk-4CU7D3X2.mjs";import"../../chunk-LVK4QE5D.mjs";import"../../chunk-NSMXJCXE.mjs";import"../../chunk-LKGCU7H6.mjs";import"../../chunk-5WV5ZFEP.mjs";import"../../chunk-KX2NCNCS.mjs";import"../../chunk-LEC6GEWS.mjs";import"../../chunk-XGIYNUGC.mjs";import"../../chunk-X3JZSN3W.mjs";import"../../chunk-2BR55L74.mjs";import"../../chunk-TEB67NCD.mjs";import"../../chunk-KFCSVEI6.mjs";import"../../chunk-LXZAOORS.mjs";import"../../chunk-MGYV46AJ.mjs";import"../../chunk-CGDLOY7W.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-BG7QXNV5.mjs";import"../../chunk-BVFUCOCP.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-7WIO2CIC.mjs";import"../../chunk-X5KZKO2V.mjs";import"../../chunk-FMJBJ3HN.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-EGEO3FNE.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{b as Breadcrumbs,a as RenderHero};
|