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
|
|
1
|
+
import{a}from"../../../chunk-XED4ZCVN.mjs";import{a as b}from"../../../chunk-TJXOYVV5.mjs";import"../../../chunk-U2OXF7PJ.mjs";import{a as g}from"../../../chunk-2UNIT7NC.mjs";import"../../../chunk-W2LPR7SX.mjs";import"../../../chunk-GAU24H4A.mjs";import"../../../chunk-M2REXGQW.mjs";import"../../../chunk-PJOYZVEY.mjs";import"../../../chunk-CJ6APTVT.mjs";import"../../../chunk-HB57GPGK.mjs";import"../../../chunk-H3RVI2OI.mjs";import"../../../chunk-5HT2KC5I.mjs";import"../../../chunk-FSCDCSVK.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-NDZ26EG6.mjs";import"../../../chunk-VGWDYD6Z.mjs";import{a as e}from"../../../chunk-UECG3SCG.mjs";import"../../../chunk-QOZ2O3FG.mjs";import"../../../chunk-L5NPH5RX.mjs";import"../../../chunk-KZCIHFTM.mjs";import{a as d}from"../../../chunk-2R3MJSQ7.mjs";import{a as f}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 c}from"../../../chunk-NAGBKKTZ.mjs";import"../../../chunk-JXQRVEQB.mjs";import"../../../chunk-DCOFQFVJ.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-EZC3YWSQ.mjs";import"../../../chunk-YRMNCHFO.mjs";import"../../../chunk-EOR2BAI2.mjs";import"../../../chunk-Y7H3EUBR.mjs";import"../../../chunk-6SWKEZN6.mjs";import"../../../chunk-DFIXTV2M.mjs";import"../../../chunk-FGEFYI5E.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-EGEO3FNE.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FLHDNCNY.mjs";import"../../../chunk-FRWX5YES.mjs";import"../../../chunk-CV7PH2KH.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as ColleaguesView,c as FileView,b as KnowledgeView,d as PlanningView,e as ProjectView,f as ProjectsIndexView,g as TeamsIndexView};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";var No=Object.create;var De=Object.defineProperty;var Ro=Object.getOwnPropertyDescriptor;var Po=Object.getOwnPropertyNames;var So=Object.getPrototypeOf,Do=Object.prototype.hasOwnProperty;var Mo=(e,t)=>{for(var o in t)De(e,o,{get:t[o],enumerable:!0})},lt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Po(t))!Do.call(e,n)&&n!==o&&De(e,n,{get:()=>t[n],enumerable:!(r=Ro(t,n))||r.enumerable});return e};var j=(e,t,o)=>(o=e!=null?No(So(e)):{},lt(t||!e||!e.__esModule?De(o,"default",{value:e,enumerable:!0}):o,e)),ko=e=>lt(De({},"__esModule",{value:!0}),e);var Tr={};Mo(Tr,{DocumentPreviewExample:()=>Dr,DocumentPreviewWithPayloadRichText:()=>kr,DocumentPreviewWithReactMarkdown:()=>Mr,customRenderers:()=>Co,sampleDocuments:()=>Ve});module.exports=ko(Tr);var it=require("motion/react"),U=require("lucide-react"),ve=require("react");var ht=require("clsx");var Oe="-",To=e=>{let t=Ho(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let l=s.split(Oe);return l[0]===""&&l.length!==1&&l.shift(),mt(l,t)||Io(s)},getConflictingClassGroupIds:(s,l)=>{let h=o[s]||[];return l&&r[s]?[...h,...r[s]]:h}}},mt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?mt(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let i=e.join(Oe);return t.validators.find(({validator:s})=>s(i))?.classGroupId},dt=/^\[(.+)\]$/,Io=e=>{if(dt.test(e)){let t=dt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Ho=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Lo(Object.entries(e.classGroups),o).forEach(([i,s])=>{Be(s,r,i,t)}),r},Be=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let i=n===""?t:ct(t,n);i.classGroupId=o;return}if(typeof n=="function"){if(Eo(n)){Be(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([i,s])=>{Be(s,ct(t,i),o,r)})})},ct=(e,t)=>{let o=e;return t.split(Oe).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Eo=e=>e.isThemeGetter,Lo=(e,t)=>t?e.map(([o,r])=>{let n=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,l])=>[t+s,l])):i);return[o,n]}):e,Ao=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(i,s)=>{o.set(i,s),t++,t>e&&(t=0,r=o,o=new Map)};return{get(i){let s=o.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return n(i,s),s},set(i,s){o.has(i)?o.set(i,s):n(i,s)}}},pt="!",Vo=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],i=t.length,s=l=>{let h=[],w=0,R=0,v;for(let P=0;P<l.length;P++){let T=l[P];if(w===0){if(T===n&&(r||l.slice(P,P+i)===t)){h.push(l.slice(R,P)),R=P+i;continue}if(T==="/"){v=P;continue}}T==="["?w++:T==="]"&&w--}let H=h.length===0?l:l.substring(R),G=H.startsWith(pt),D=G?H.substring(1):H,k=v&&v>R?v-R:void 0;return{modifiers:h,hasImportantModifier:G,baseClassName:D,maybePostfixModifierPosition:k}};return o?l=>o({className:l,parseClassName:s}):s},zo=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},Bo=e=>({cache:Ao(e.cacheSize),parseClassName:Vo(e),...To(e)}),Oo=/\s+/,_o=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,i=[],s=e.trim().split(Oo),l="";for(let h=s.length-1;h>=0;h-=1){let w=s[h],{modifiers:R,hasImportantModifier:v,baseClassName:H,maybePostfixModifierPosition:G}=o(w),D=!!G,k=r(D?H.substring(0,G):H);if(!k){if(!D){l=w+(l.length>0?" "+l:l);continue}if(k=r(H),!k){l=w+(l.length>0?" "+l:l);continue}D=!1}let P=zo(R).join(":"),T=v?P+pt:P,z=T+k;if(i.includes(z))continue;i.push(z);let y=n(k,D);for(let _=0;_<y.length;++_){let Y=y[_];i.push(T+Y)}l=w+(l.length>0?" "+l:l)}return l};function Fo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=ut(t))&&(r&&(r+=" "),r+=o);return r}var ut=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=ut(e[r]))&&(o&&(o+=" "),o+=t);return o};function $o(e,...t){let o,r,n,i=s;function s(h){let w=t.reduce((R,v)=>v(R),e());return o=Bo(w),r=o.cache.get,n=o.cache.set,i=l,l(h)}function l(h){let w=r(h);if(w)return w;let R=_o(h,o);return n(h,R),R}return function(){return i(Fo.apply(null,arguments))}}var M=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},ft=/^\[(?:([yt-z-]+):)?(.+)\]$/i,Go=/^\yt+\/\yt+$/,Wo=new Set(["px","full","screen"]),Ko=/^(\yt+(\.\yt+)?)?(xs|sm|md|lg|xl)$/,Uo=/\yt+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,jo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Zo=/^(inset_)?-?((\yt+)?\.?(\yt+)[yt-z]+|0)_-?((\yt+)?\.?(\yt+)[yt-z]+|0)/,Xo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ne=e=>ue(e)||Wo.has(e)||Go.test(e),le=e=>fe(e,"length",rr),ue=e=>!!e&&!Number.isNaN(Number(e)),ze=e=>fe(e,"number",ue),xe=e=>!!e&&Number.isInteger(Number(e)),qo=e=>e.endsWith("%")&&ue(e.slice(0,-1)),p=e=>ft.test(e),de=e=>Ko.test(e),Jo=new Set(["length","size","percentage"]),Yo=e=>fe(e,Jo,gt),Qo=e=>fe(e,"position",gt),er=new Set(["image","url"]),tr=e=>fe(e,er,nr),or=e=>fe(e,"",ar),we=()=>!0,fe=(e,t,o)=>{let r=ft.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},rr=e=>Uo.test(e)&&!jo.test(e),gt=()=>!1,ar=e=>Zo.test(e),nr=e=>Xo.test(e);var ir=()=>{let e=M("colors"),t=M("spacing"),o=M("blur"),r=M("brightness"),n=M("borderColor"),i=M("borderRadius"),s=M("borderSpacing"),l=M("borderWidth"),h=M("contrast"),w=M("grayscale"),R=M("hueRotate"),v=M("invert"),H=M("gap"),G=M("gradientColorStops"),D=M("gradientColorStopPositions"),k=M("inset"),P=M("margin"),T=M("opacity"),z=M("padding"),y=M("saturate"),_=M("scale"),Y=M("sepia"),f=M("skew"),C=M("space"),N=M("translate"),Z=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto",p,t],S=()=>[p,t],oe=()=>["",ne,le],re=()=>["auto",ue,p],m=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>["start","end","center","between","around","evenly","stretch"],ee=()=>["","0",p],st=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ae=()=>[ue,p];return{cacheSize:500,separator:":",theme:{colors:[we],spacing:[ne,le],blur:["none","",de,p],brightness:ae(),borderColor:[e],borderRadius:["none","","full",de,p],borderSpacing:S(),borderWidth:oe(),contrast:ae(),grayscale:ee(),hueRotate:ae(),invert:ee(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[qo,le],inset:Q(),margin:Q(),opacity:ae(),padding:S(),saturate:ae(),scale:ae(),sepia:ee(),skew:ae(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",p]}],container:["container"],columns:[{columns:[de]}],"break-after":[{"break-after":st()}],"break-before":[{"break-before":st()}],"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:[...m(),p]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-x":[{"inset-x":[k]}],"inset-y":[{"inset-y":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",xe,p]}],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",p]}],grow:[{grow:ee()}],shrink:[{shrink:ee()}],order:[{order:["first","last","none",xe,p]}],"grid-cols":[{"grid-cols":[we]}],"col-start-end":[{col:["auto",{span:["full",xe,p]},p]}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":[we]}],"row-start-end":[{row:["auto",{span:[xe,p]},p]}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",p]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",p]}],gap:[{gap:[H]}],"gap-x":[{"gap-x":[H]}],"gap-y":[{"gap-y":[H]}],"justify-content":[{justify:["normal",...me()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...me(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...me(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[z]}],px:[{px:[z]}],py:[{py:[z]}],ps:[{ps:[z]}],U:[{U:[z]}],pt:[{pt:[z]}],pr:[{pr:[z]}],pb:[{pb:[z]}],pl:[{pl:[z]}],m:[{m:[P]}],mx:[{mx:[P]}],my:[{my:[P]}],ms:[{ms:[P]}],me:[{me:[P]}],mt:[{mt:[P]}],mr:[{mr:[P]}],mb:[{mb:[P]}],ml:[{ml:[P]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",p,t]}],"min-w":[{"min-w":[p,t,"min","max","fit"]}],"max-w":[{"max-w":[p,t,"none","full","min","max","fit","prose",{screen:[de]},de]}],h:[{h:[p,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[p,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[p,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[p,t,"auto","min","max","fit"]}],"font-size":[{text:["base",de,le]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ze]}],"font-family":[{font:[we]}],"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",p]}],"line-clamp":[{"line-clamp":["none",ue,ze]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ne,p]}],"list-image":[{"list-image":["none",p]}],"list-style-type":[{list:["none","disc","decimal",p]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ne,le]}],"underline-offset":[{"underline-offset":["auto",ne,p]}],"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:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p]}],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",p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...m(),Qo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Yo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},tr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[D]}],"gradient-via-pos":[{via:[D]}],"gradient-to-pos":[{to:[D]}],"gradient-from":[{from:[G]}],"gradient-via":[{via:[G]}],"gradient-to":[{to:[G]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:$()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[ne,p]}],"outline-w":[{outline:[ne,le]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-w":[{"ring-offset":[ne,le]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",de,or]}],"shadow-color":[{shadow:[we]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",de,p]}],grayscale:[{grayscale:[w]}],"hue-rotate":[{"hue-rotate":[R]}],invert:[{invert:[v]}],saturate:[{saturate:[y]}],sepia:[{sepia:[Y]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[w]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[Y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",p]}],duration:[{duration:ae()}],ease:[{ease:["linear","in","out","in-out",p]}],delay:[{delay:ae()}],animate:[{animate:["none","spin","ping","pulse","bounce",p]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[xe,p]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[f]}],"skew-y":[{"skew-y":[f]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",p]}],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",p]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-U":[{"scroll-U":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",p]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ne,le,ze]}],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","U","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-U","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var bt=$o(ir);function u(...e){return bt((0,ht.clsx)(e))}var vt=require("@radix-ui/react-slot"),xt=require("class-variance-authority"),wt=j(require("react")),yt=require("react/jsx-runtime"),sr=(0,xt.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"}}}),te=wt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...n},i)=>(0,yt.jsx)(e?vt.Slot:"button",{className:u(sr({className:t,size:o,variant:r})),ref:i,...n}));te.displayName="Button";var ye=j(require("react")),B=j(require("@radix-ui/react-dialog"));var Nt=B.Root;var _e=B.Portal;var Me=ye.forwardRef(({className:e,...t},o)=>(0,yt.jsx)(B.Overlay,{ref:o,className:u("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Me.displayName=B.Overlay.displayName;var lr=ye.forwardRef(({className:e,children:t,...o},r)=>(0,yt.jsxs)(_e,{children:[(0,yt.jsx)(Me,{}),(0,yt.jsxs)(B.Content,{ref:r,className:u("fixed left-[50%] top-[50%] z-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,yt.jsxs)(B.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,yt.jsx)(U.yt,{className:"h-4 w-4"}),(0,yt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));lr.displayName=B.Content.displayName;var dr=({className:e,...t})=>(0,yt.jsx)("div",{className:u("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});dr.displayName="DialogHeader";var cr=({className:e,...t})=>(0,yt.jsx)("div",{className:u("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});cr.displayName="DialogFooter";var mr=ye.forwardRef(({className:e,...t},o)=>(0,yt.jsx)(B.Title,{ref:o,className:u("text-lg font-semibold leading-none tracking-tight",e),...t}));mr.displayName=B.Title.displayName;var pr=ye.forwardRef(({className:e,...t},o)=>(0,yt.jsx)(B.Description,{ref:o,className:u("text-sm text-muted-foreground",e),...t}));pr.displayName=B.Description.displayName;var ho=j(require("@radix-ui/react-dialog"));var Rt=j(require("react")),Ce=Rt.forwardRef(({className:e,...t},o)=>(0,yt.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}));Ce.displayName="Textarea";var St=j(require("react"));var ge=St.forwardRef(({className:e,type:t,...o},r)=>(0,yt.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}));ge.displayName="Input";var g=j(require("@radix-ui/react-select")),ce=j(require("react")),Mt=g.Root;var kt=g.Value,Fe=ce.forwardRef(({children:e,className:t,...o},r)=>(0,yt.jsxs)(g.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,yt.jsx)(g.Icon,{asChild:!0,children:(0,yt.jsx)(U.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Fe.displayName=g.Trigger.displayName;var Tt=ce.forwardRef(({className:e,...t},o)=>(0,yt.jsx)(g.ScrollUpButton,{className:u("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,yt.jsx)(U.ChevronUp,{className:"h-4 w-4"})}));Tt.displayName=g.ScrollUpButton.displayName;var It=ce.forwardRef(({className:e,...t},o)=>(0,yt.jsx)(g.ScrollDownButton,{className:u("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,yt.jsx)(U.ChevronDown,{className:"h-4 w-4"})}));It.displayName=g.ScrollDownButton.displayName;var $e=ce.forwardRef(({children:e,className:t,position:o="popper",...r},n)=>(0,yt.jsx)(g.Portal,{children:(0,yt.jsxs)(g.Content,{className:u("relative z-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,yt.jsx)(Tt,{}),(0,yt.jsx)(g.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,yt.jsx)(It,{})]})}));$e.displayName=g.Content.displayName;var ur=ce.forwardRef(({className:e,...t},o)=>(0,yt.jsx)(g.Label,{className:u("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));ur.displayName=g.Label.displayName;var ke=ce.forwardRef(({children:e,className:t,...o},r)=>(0,yt.jsxs)(g.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,yt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,yt.jsx)(g.ItemIndicator,{children:(0,yt.jsx)(U.Check,{className:"h-4 w-4"})})}),(0,yt.jsx)(g.ItemText,{children:e})]}));ke.displayName=g.Item.displayName;var fr=ce.forwardRef(({className:e,...t},o)=>(0,yt.jsx)(g.Separator,{className:u("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));fr.displayName=g.Separator.displayName;var Ht=j(require("react")),Ge=j(require("@radix-ui/react-label"));var gr=(0,xt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),We=Ht.forwardRef(({className:e,...t},o)=>(0,yt.jsx)(Ge.Root,{ref:o,className:u(gr(),e),...t}));We.displayName=Ge.Root.displayName;var Ue=({fieldName:e,value:t,label:o,multiline:r=!1,onSave:n,className:i="",disabled:s=!1})=>{let[l,h]=(0,ve.useState)(!1),[w,R]=(0,ve.useState)(""),v=()=>{s||(h(!0),R(t))},H=async()=>{w!==t&&await n(e,w),h(!1)},G=D=>{D.key==="Enter"&&!r||D.key==="Enter"&&D.ctrlKey&&r?H():D.key==="Escape"&&(h(!1),R(""))};return(0,yt.jsxs)("div",{className:`space-y-2 ${i}`,children:[(0,yt.jsx)(We,{children:o}),l?r?(0,yt.jsx)(Ce,{value:w,onChange:D=>R(D.target.value),onBlur:H,onKeyDown:G,autoFocus:!0,rows:4,className:"resize-none"}):(0,yt.jsx)(ge,{value:w,onChange:D=>R(D.target.value),onBlur:H,onKeyPress:G,autoFocus:!0,className:"text-lg font-medium"}):(0,yt.jsxs)("div",{onClick:v,className:`${s?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 p-2 rounded border border-transparent hover:border-border transition-colors group ${r?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,yt.jsx)("span",{className:r?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!s&&(0,yt.jsx)(U.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var ao=require("@payloadcms/richtext-lexical/lexical/react/LexicalAutoFocusPlugin"),no=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposer"),io=require("@payloadcms/richtext-lexical/lexical/react/LexicalContentEditable"),so=require("@payloadcms/richtext-lexical/lexical/react/LexicalErrorBoundary"),lo=require("@payloadcms/richtext-lexical/lexical/react/LexicalHistoryPlugin"),co=require("@payloadcms/richtext-lexical/lexical/react/LexicalRichTextPlugin"),mo=require("@payloadcms/richtext-lexical/lexical/react/LexicalListPlugin"),Le=require("@payloadcms/richtext-lexical/lexical/list"),po=require("@payloadcms/richtext-lexical/lexical/rich-text"),uo=require("@payloadcms/richtext-lexical/lexical/react/LexicalOnChangePlugin");var to=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposerContext"),oo=require("@payloadcms/richtext-lexical/lexical/utils"),x=require("@payloadcms/richtext-lexical/lexical"),ot=require("@payloadcms/richtext-lexical/lexical/selection");var br=()=>(0,yt.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,yt.jsx)("path",{yt:"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"})}),Vt=br;var hr=()=>(0,yt.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,yt.jsx)("path",{yt:"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"})}),zt=hr;var vr=()=>(0,yt.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,yt.jsx)("path",{yt:"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,yt.jsx)("path",{yt:"M5.09961 16.3H14.9016V16.95H5.09961V16.3Z",fill:"currentColor"})]}),Bt=vr;var xr=()=>(0,yt.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,yt.jsx)("path",{yt:"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,yt.jsx)("path",{yt:"M4.99756 11.44H15.0026V12.19H4.99756V11.44Z",fill:"currentColor"})]}),Ot=xr;var wr=()=>(0,yt.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,yt.jsx)("path",{yt:"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"})}),_t=wr;var yr=()=>(0,yt.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,yt.jsx)("path",{yt:"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"})}),Ft=yr;var $t=()=>(0,yt.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,yt.jsx)("path",{yt:"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"})}),Gt=()=>(0,yt.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,yt.jsx)("path",{yt:"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"})}),Wt=()=>(0,yt.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,yt.jsx)("path",{yt:"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"})}),Kt=()=>(0,yt.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,yt.jsx)("path",{yt:"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"})}),Ut=()=>(0,yt.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,yt.jsx)("path",{yt:"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 se=j(require("react")),b=j(require("@radix-ui/react-dropdown-menu")),be=require("@radix-ui/react-icons");var Te=b.Root,Ie=b.Trigger;var jt=se.forwardRef(({className:e,inset:t,children:o,...r},n)=>(0,yt.jsxs)(b.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,yt.jsx)(be.ChevronRightIcon,{className:"ml-auto"})]}));jt.displayName=b.SubTrigger.displayName;var Zt=se.forwardRef(({className:e,...t},o)=>(0,yt.jsx)(b.SubContent,{ref:o,className:u("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Zt.displayName=b.SubContent.displayName;var Pe=se.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,yt.jsx)(b.Portal,{children:(0,yt.jsx)(b.Content,{ref:r,sideOffset:t,className:u("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Pe.displayName=b.Content.displayName;var Se=se.forwardRef(({className:e,inset:t,...o},r)=>(0,yt.jsx)(b.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}));Se.displayName=b.Item.displayName;var Xt=se.forwardRef(({className:e,children:t,checked:o,...r},n)=>(0,yt.jsxs)(b.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,yt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,yt.jsx)(b.ItemIndicator,{children:(0,yt.jsx)(be.CheckIcon,{className:"h-4 w-4"})})}),t]}));Xt.displayName=b.CheckboxItem.displayName;var qt=se.forwardRef(({className:e,children:t,...o},r)=>(0,yt.jsxs)(b.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,yt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,yt.jsx)(b.ItemIndicator,{children:(0,yt.jsx)(be.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));qt.displayName=b.RadioItem.displayName;var Jt=se.forwardRef(({className:e,inset:t,...o},r)=>(0,yt.jsx)(b.Label,{ref:r,className:u("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Jt.displayName=b.Label.displayName;var Yt=se.forwardRef(({className:e,...t},o)=>(0,yt.jsx)(b.Separator,{ref:o,className:u("-mx-1 my-1 h-px bg-muted",e),...t}));Yt.displayName=b.Separator.displayName;var Qt=({className:e,...t})=>(0,yt.jsx)("span",{className:u("ml-auto text-xs tracking-widest opacity-60",e),...t});Qt.displayName="DropdownMenuShortcut";var eo=j(require("react")),J=j(require("@radix-ui/react-tooltip"));var Ye=J.Provider,Qe=J.Root,et=J.Trigger,He=eo.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,yt.jsx)(J.Portal,{children:(0,yt.jsx)(J.Content,{ref:r,sideOffset:t,className:u("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));He.displayName=J.Content.displayName;var tt=1;function Cr(){return(0,yt.jsx)("span",{className:"border border-[#222222]"})}function rt(){let[e]=(0,to.useLexicalComposerContext)(),t=(0,ve.useRef)(null),[o,r]=(0,ve.useState)(!1),[n,i]=(0,ve.useState)(!1),[s,l]=(0,ve.useState)(!1),[h,w]=(0,ve.useState)(!1),[R,v]=(0,ve.useState)(!1),[H,G]=(0,ve.useState)(!1),[D,k]=(0,ve.useState)(!1),[P,T]=(0,ve.useState)(!1),[z,y]=(0,ve.useState)(!1),[_,Y]=(0,ve.useState)("left"),[f,C]=(0,ve.useState)("p"),N=m=>{e.update(()=>{let $=(0,x.$getSelection)();(0,x.$isRangeSelection)($)&&(m==="p"?(0,ot.$setBlocksType)($,()=>(0,x.$createParagraphNode)()):(0,ot.$setBlocksType)($,()=>(0,po.$createHeadingNode)(m)))})},Z=(0,ve.useCallback)(()=>{let m=(0,x.$getSelection)();if((0,x.$isRangeSelection)(m)){l(m.hasFormat("bold")),w(m.hasFormat("italic")),v(m.hasFormat("underline")),G(m.hasFormat("strikethrough")),k(m.hasFormat("subscript")),T(m.hasFormat("superscript"));let $=m.anchor.getNode(),W=$;for(;W&&!(0,x.$isParagraphNode)(W)&&W!==(0,x.$getRoot)();){let ee=W.getParent();ee&&(W=ee)}if(W){let ee=W.getFormatType();Y(ee||"left")}let me=$.getTopLevelElement()?.__tag;C(me||"p")}},[]);(0,ve.useEffect)(()=>(0,oo.mergeRegister)(e.registerUpdateListener(({editorState:m})=>{m.read(()=>{Z()})}),e.registerCommand(x.SELECTION_CHANGE_COMMAND,(m,$)=>(Z(),!1),tt),e.registerCommand(x.CAN_UNDO_COMMAND,m=>(r(m),!1),tt),e.registerCommand(x.CAN_REDO_COMMAND,m=>(i(m),!1),tt)),[e,Z]);let F=[[{label:"Undo",icon:(0,yt.jsx)(U.RotateCcw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(x.UNDO_COMMAND,void 0)},disabled:!o},{label:"Redo",icon:(0,yt.jsx)(U.RotateCw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(x.UNDO_COMMAND,void 0)},disabled:!n}],[{label:"Bold",icon:(0,yt.jsx)(Vt,{}),onClick:()=>{e.dispatchCommand(x.FORMAT_TEXT_COMMAND,"bold")},value:"bold",active:s},{label:"Italic",icon:(0,yt.jsx)(zt,{}),onClick:()=>{e.dispatchCommand(x.FORMAT_TEXT_COMMAND,"italic")},value:"italic",active:h},{label:"Underline",icon:(0,yt.jsx)(Bt,{}),onClick:()=>{e.dispatchCommand(x.FORMAT_TEXT_COMMAND,"underline")},value:"underline",active:R},{label:"Strikethrough",icon:(0,yt.jsx)(Ot,{}),onClick:()=>{e.dispatchCommand(x.FORMAT_TEXT_COMMAND,"strikethrough")},value:"strikethrough",active:H},{label:"Subscript",icon:(0,yt.jsx)(_t,{}),onClick:()=>{e.dispatchCommand(x.FORMAT_TEXT_COMMAND,"subscript")},value:"subscript",active:D},{label:"Superscript",icon:(0,yt.jsx)(Ft,{}),onClick:()=>{e.dispatchCommand(x.FORMAT_TEXT_COMMAND,"superscript")},value:"superscript",active:P}]],Q=[{label:"Left Align",direction:"left",icon:(0,yt.jsx)(U.AlignLeft,{width:15,height:15}),onClick:()=>{e.dispatchCommand(x.FORMAT_ELEMENT_COMMAND,"left")}},{label:"Center Align",direction:"center",icon:(0,yt.jsx)(U.AlignCenter,{width:15,height:15}),onClick:()=>{e.dispatchCommand(x.FORMAT_ELEMENT_COMMAND,"center")}},{label:"Right Align",direction:"right",icon:(0,yt.jsx)(U.AlignRight,{width:15,height:15}),onClick:()=>{e.dispatchCommand(x.FORMAT_ELEMENT_COMMAND,"right")}},{label:"Justify Align",direction:"justify",icon:(0,yt.jsx)(U.AlignJustify,{width:15,height:15}),onClick:()=>{e.dispatchCommand(x.FORMAT_ELEMENT_COMMAND,"justify")}}],oe=[{label:"Normal Text",value:"p",icon:(0,yt.jsx)($t,{}),onClick:()=>N("p")},{label:"Heading 1",value:"h1",icon:(0,yt.jsx)(Gt,{}),onClick:()=>N("h1")},{label:"Heading 2",value:"h2",icon:(0,yt.jsx)(Wt,{}),onClick:()=>N("h2")},{label:"Heading 3",value:"h3",icon:(0,yt.jsx)(Kt,{}),onClick:()=>N("h3")},{label:"Heading 4",value:"h4",icon:(0,yt.jsx)(Ut,{}),onClick:()=>N("h4")},...[{label:"Unordered List",value:"ul",icon:(0,yt.jsx)(U.List,{width:15,height:15}),onClick:()=>{e.dispatchCommand(Le.INSERT_UNORDERED_LIST_COMMAND,void 0)}},{label:"Ordered List",value:"ol",icon:(0,yt.jsx)(U.ListOrdered,{width:15,height:15}),onClick:()=>{e.dispatchCommand(Le.INSERT_ORDERED_LIST_COMMAND,void 0)}}]],re=[{label:"Insert Image",icon:(0,yt.jsx)(U.ImageUp,{width:15,height:15}),onClick:()=>{y(!0)},disabled:!1}];return(0,yt.jsx)("div",{className:"flex justify-between border border-[#222222] py-2 px-2",children:(0,yt.jsxs)("div",{className:"flex gap-2 ",ref:t,children:[F.map((m,$)=>(0,yt.jsxs)(ve.Fragment,{children:[(0,yt.jsx)("div",{className:"flex items-center gap-2",children:m.map((W,me)=>(0,yt.jsx)("div",{role:"button","aria-disabled":W.disabled||!1,onClick:W.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]",W.active&&"bg-[#3c3c3c]"),"aria-label":W.label,children:(0,yt.jsx)(Ye,{children:(0,yt.jsxs)(Qe,{children:[(0,yt.jsx)(et,{className:"text-[#b5b5b5]",children:W.icon}),(0,yt.jsx)(He,{children:(0,yt.jsx)("p",{children:W.label})})]})})},me))}),(0,yt.jsx)(Cr,{})]},`toolbar-option-${m.length}-${$}`)),(0,yt.jsxs)(Te,{children:[(0,yt.jsxs)(Ie,{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(m=>m.direction===_)?.icon,Q.find(m=>m.direction===_)?.label,(0,yt.jsx)(U.ChevronDown,{width:15,height:15})]}),(0,yt.jsx)(Pe,{className:"bg-black hover:bg-black",children:Q.map((m,$)=>(0,yt.jsxs)(Se,{onClick:m.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,yt.jsx)("span",{children:m.icon}),(0,yt.jsx)("span",{children:m.label})]},`${m.label}-${$}`))})]}),(0,yt.jsxs)(Te,{children:[(0,yt.jsxs)(Ie,{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:[oe.find(m=>m.value===f)?.icon,oe.find(m=>m.value===f)?.label,(0,yt.jsx)(U.ChevronDown,{width:15,height:15})]}),(0,yt.jsx)(Pe,{className:"bg-black hover:bg-black",children:oe.map((m,$)=>(0,yt.jsxs)(Se,{onClick:m.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,yt.jsx)("span",{children:m.icon}),(0,yt.jsx)("span",{children:m.label})]},`heading-option-${m.label}-${$}`))})]})]})})}var Nr=({setValue:e,value:t,name:o,editable:r=!0})=>{let[n]=(0,to.useLexicalComposerContext)(),i=s=>{s.read(()=>{let l=s.toJSON();e?.(()=>l)})};return(0,ve.useEffect)(()=>{n.setEditable(r)},[r]),(0,ve.useEffect)(()=>{t&&n.update(()=>{n.setEditorState(n.parseEditorState(t))})},[]),(0,yt.jsx)("div",{className:"w-full",children:(0,yt.jsxs)("div",{className:" ",children:[r&&(0,yt.jsx)(rt,{}),(0,yt.jsxs)("div",{className:"px-4 my-4 border-l border-[#222222]",children:[(0,yt.jsx)(co.RichTextPlugin,{contentEditable:(0,yt.jsx)(io.ContentEditable,{name:o,className:"focus:outline-none focus:ring-0 focus-visible:outline-none min-h-40"}),ErrorBoundary:so.LexicalErrorBoundary}),r&&(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(lo.HistoryPlugin,{}),(0,yt.jsx)(ao.AutoFocusPlugin,{}),(0,yt.jsx)(mo.ListPlugin,{}),(0,yt.jsx)(uo.OnChangePlugin,{onChange:i})]})]})]})})},Rr=({setValue:e,value:t,name:o,editable:r=!0})=>(0,yt.jsx)(no.LexicalComposer,{initialConfig:{namespace:"Lexical editor",nodes:[Le.ListNode,Le.ListItemNode,po.HeadingNode],onError(i){throw console.error("Lexical error:",i),i},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,yt.jsx)(Nr,{value:t,setValue:e,name:o,editable:r})}),Ae=Rr;function go({document:e,onSave:t,mode:o="edit",onCancel:r,availableDocuments:n=[],knowledgeContexts:i=[]}){let[s,l]=(0,ve.useState)({...e,updatedAt:new Date}),[h,w]=(0,ve.useState)(!1),[R,v]=(0,ve.useState)(s.richTextContent);(0,ve.useEffect)(()=>{l(e)},[e]);let H=f=>{switch(f){case"markdown":case"mdx":return(0,yt.jsx)(U.FileText,{className:"h-6 w-6 text-primary"});case"richText":return(0,yt.jsx)(U.File,{className:"h-6 w-6 text-success"});case"text":return(0,yt.jsx)(U.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,yt.jsx)(U.File,{className:"h-6 w-6 text-muted-foreground"})}},G=f=>{switch(f){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"}},D=()=>{let f=new Set,C=new Set;return i.forEach(N=>{N.menuConfig.groupBy.forEach(Z=>f.add(Z))}),n.forEach(N=>{N.metadata&&Object.keys(N.metadata).forEach(Z=>C.add(Z))}),{contextKeys:Array.from(f).sort(),documentKeys:Array.from(C).sort(),allKeys:Array.from(new Set([...f,...C])).sort()}},k=f=>{let C=new Set;return n.forEach(N=>{N.metadata?.[f]&&C.add(String(N.metadata[f]))}),Array.from(C).sort()},P=D(),T=()=>{t({...s,richTextContent:R})},z=(f,C)=>{l(N=>({...N,metadata:{...N.metadata,[f]:C}}))},y=(f,C)=>{C==="__custom__"?z(f,""):z(f,C)},_=()=>{z("","")},Y=f=>{l(C=>{let N={...C.metadata};return delete N[f],{...C,metadata:N}})};return(0,yt.jsxs)(it.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-screen flex flex-col",children:[(0,yt.jsxs)("div",{className:"border-b border-border bg-card p-8 pb-6",children:[(0,yt.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,yt.jsx)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:(0,yt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,yt.jsxs)("div",{className:"flex items-start gap-4 mb-0 leading-tight",children:[(0,yt.jsx)("div",{className:"flex-1 min-w-0",children:(0,yt.jsx)(Ue,{fieldName:"title",value:s.title,label:"",onSave:(f,C)=>l(N=>({...N,title:C})),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,yt.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${G(s.format)} flex-shrink-0 mt-1`,children:s.format.toUpperCase()})]}),(0,yt.jsx)("div",{className:"mt-2",children:(0,yt.jsx)(Ue,{fieldName:"description",value:s.description||"Click to add description...",label:"",multiline:!0,onSave:(f,C)=>l(N=>({...N,description:C})),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,yt.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(0,yt.jsxs)(te,{variant:"ghost",size:"sm",onClick:()=>w(!h),className:"gap-2",children:[(0,yt.jsx)(U.Info,{className:"h-4 w-4"}),"Metadata",s.metadata&&Object.keys(s.metadata).length>0&&(0,yt.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(s.metadata).length}),h?(0,yt.jsx)(U.ChevronDown,{className:"h-4 w-4"}):(0,yt.jsx)(U.ChevronRight,{className:"h-4 w-4"})]}),(0,yt.jsxs)(te,{variant:"outline",size:"sm",onClick:r,className:"gap-2",children:[(0,yt.jsx)(U.yt,{className:"h-4 w-4"}),"Cancel"]}),(0,yt.jsxs)(te,{size:"sm",onClick:T,className:"gap-2",children:[(0,yt.jsx)(U.Save,{className:"h-4 w-4"}),"Save"]})]})]}),(0,yt.jsx)(it.motion.div,{initial:!1,animate:{height:h?"auto":0,opacity:h?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden h-full max-h-full",children:(0,yt.jsxs)("div",{className:"pt-4 border-t border-border mt-4 h-screen max-h-full flex",children:[(0,yt.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,yt.jsxs)("h3",{className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[(0,yt.jsx)(U.Info,{className:"h-4 w-4"}),"Document Metadata"]}),(0,yt.jsxs)(te,{type:"button",variant:"outline",size:"sm",onClick:_,className:"gap-1 h-8",children:[(0,yt.jsx)(U.Plus,{className:"h-3 w-3"}),"Add Field"]})]}),(0,yt.jsx)("div",{className:"bg-muted rounded-lg p-4 border border-border",children:s.metadata&&Object.keys(s.metadata).length>0?(0,yt.jsx)("div",{className:"space-y-2",children:Object.entries(s.metadata).map(([f,C],N)=>{let Z=k(f);return(0,yt.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,yt.jsx)(ge,{value:f,onChange:F=>{let Q=F.target.value||"",S=s.metadata?.[f];l(oe=>{let re={...oe.metadata};return delete re[f],Q&&(re[Q]=S||""),{...oe,metadata:re}})},placeholder:"Key",className:"w-32 h-8 text-sm",list:`metadata-keys-${f}`}),(0,yt.jsx)("datalist",{id:`metadata-keys-${f}`,children:P.allKeys.map(F=>(0,yt.jsx)("option",{value:F},F))}),(0,yt.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),Z.length>0?(0,yt.jsxs)(Mt,{value:String(C||""),onValueChange:F=>y(f,F),children:[(0,yt.jsx)(Fe,{className:"flex-1 h-8 text-sm",children:(0,yt.jsx)(kt,{placeholder:"Value"})}),(0,yt.jsxs)($e,{children:[Z.map(F=>(0,yt.jsx)(ke,{value:F,children:F},F)),(0,yt.jsx)(ke,{value:"__custom__",children:(0,yt.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,yt.jsx)(ge,{value:String(C||""),onChange:F=>z(f,F.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),(0,yt.jsx)(te,{type:"button",variant:"ghost",size:"sm",onClick:()=>Y(f),className:"h-8 w-8 p-0 text-muted-foreground hover:text-destructive",children:(0,yt.jsx)(U.yt,{className:"h-3 w-3"})})]},`metadata-key-${N}`)})}):(0,yt.jsxs)("div",{className:"text-center py-4",children:[(0,yt.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"No metadata fields"}),(0,yt.jsx)("p",{className:"text-xs text-muted-foreground",children:'Click "Add Field" to create metadata'})]})})]})})]}),(0,yt.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,yt.jsx)("div",{className:"p-8 h-full max-h-full overflow-auto",children:s.format==="richText"?(0,yt.jsx)(Ae,{setValue:v,value:R,name:"richTextContent"}):(0,yt.jsx)(Ce,{value:s.content||"",onChange:f=>l(C=>({...C,content:f.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})})})]})}var vo=j(require("react-markdown")),xo=j(require("remark-gfm"));var wo=e=>(0,yt.jsx)(vo.default,{remarkPlugins:[xo.default],components:{h1:({children:t})=>(0,yt.jsx)("h1",{className:"text-2xl font-bold",children:t}),h2:({children:t})=>(0,yt.jsx)("h2",{className:"text-xl font-bold",children:t}),h3:({children:t})=>(0,yt.jsx)("h3",{className:"text-lg font-bold",children:t}),h4:({children:t})=>(0,yt.jsx)("h4",{className:"text-base font-bold",children:t}),ol:({children:t})=>(0,yt.jsx)("ol",{className:"list-decimal",children:t}),ul:({children:t})=>(0,yt.jsx)("ul",{className:"list-disc",children:t}),li:({children:t})=>(0,yt.jsx)("li",{className:"ml-4",children:t}),p:({children:t})=>(0,yt.jsx)("p",{className:"mb-4",children:t}),yt:({children:t,href:o})=>(0,yt.jsx)("yt",{href:o,className:"text-blue-500",children:t}),img:({src:t,alt:o})=>(0,yt.jsx)("img",{src:t,alt:o,className:"mb-4"}),blockquote:({children:t})=>(0,yt.jsx)("blockquote",{className:"border-l-4 border-gray-300 pl-4 mb-4",children:t})},children:e}),bo=e=>(0,yt.jsx)("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:e}),Pr=e=>(0,yt.jsx)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:e&&(0,yt.jsx)(Ae,{value:JSON.stringify(e),editable:!1,name:"richTextContent"})}),Sr=e=>(0,yt.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,yt.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,yt.jsxs)("p",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[(0,yt.jsx)("strong",{children:"MDX Renderer:"})," This is yt placeholder. Integrate with @mdx-js/react for full MDX rendering."]})}),wo(e)]});function yo({document:e,onDocumentUpdate:t,editable:o=!0,mode:r="view",renderers:n,availableDocuments:i=[],knowledgeContexts:s=[]}){let[l,h]=(0,ve.useState)(!1),[w,R]=(0,ve.useState)(!1),[v,H]=(0,ve.useState)(e);(0,ve.useEffect)(()=>{H(e)},[e]);let G=y=>{switch(y){case"markdown":case"mdx":return(0,yt.jsx)(U.FileText,{className:"h-6 w-6 text-primary"});case"richText":return(0,yt.jsx)(U.File,{className:"h-6 w-6 text-success"});case"text":return(0,yt.jsx)(U.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,yt.jsx)(U.File,{className:"h-6 w-6 text-muted-foreground"})}},D=y=>{switch(y){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"}},k=(y,_)=>{let Y={markdown:wo,mdx:Sr,text:bo},f=n?.[_]||Y[_];if(_==="richText"&&typeof y=="object")return Pr(y);if(f&&typeof y=="string")return f(y);if(typeof y=="string")return bo(y)},P=y=>{h(!1),t?.(y),H(y)},T=()=>{h(!1)};return(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(Nt,{open:l||r==="create",onOpenChange:y=>!y&&T(),children:(0,yt.jsxs)(_e,{children:[(0,yt.jsx)(Me,{}),(0,yt.jsx)(ho.Content,{className:u("fixed inset-0 z-50 bg-background p-0 m-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,yt.jsx)(go,{mode:r==="create"?"create":"edit",document:v,onSave:P,onCancel:T,availableDocuments:i,knowledgeContexts:s})})]})}),(0,yt.jsxs)(it.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,yt.jsxs)("div",{className:"border-b border-border bg-card p-8 pb-6",children:[(0,yt.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,yt.jsx)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:(0,yt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,yt.jsxs)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:[v.title,(0,yt.jsx)("span",{className:`inline-flex ml-4 items-center px-3 py-1 rounded-full text-sm font-medium border ${D(v.format)}`,children:v.format.toUpperCase()})]}),v.description&&(0,yt.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed",children:v.description})]})}),(0,yt.jsxs)("div",{className:"items-center gap-2 flex-shrink-0 hidden lg:flex",children:[v.metadata&&Object.keys(v.metadata).length>0&&(0,yt.jsxs)(te,{variant:"ghost",size:"sm",onClick:()=>R(!w),className:"gap-2",children:[(0,yt.jsx)(U.Info,{className:"h-4 w-4"}),"Metadata",w?(0,yt.jsx)(U.ChevronDown,{className:"h-4 w-4"}):(0,yt.jsx)(U.ChevronRight,{className:"h-4 w-4"})]}),o&&(0,yt.jsxs)(te,{variant:"outline",size:"sm",onClick:()=>h(!0),className:"gap-2",children:[(0,yt.jsx)(U.Edit3,{className:"h-4 w-4"}),"Edit"]})]})]}),v.metadata&&Object.keys(v.metadata).length>0&&(0,yt.jsx)(it.motion.div,{initial:!1,animate:{height:w?"auto":0,opacity:w?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,yt.jsxs)("div",{className:"pt-4 border-t border-border mt-4",children:[(0,yt.jsxs)("h3",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[(0,yt.jsx)(U.Info,{className:"h-4 w-4"}),"Document Metadata"]}),(0,yt.jsx)("div",{className:"bg-muted rounded-lg p-4 border border-border",children:(0,yt.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(([y,_])=>(0,yt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,yt.jsx)("span",{className:"text-muted-foreground font-medium text-xs uppercase tracking-wide",children:y.replace(/([U-Z])/g," $1").trim()}),(0,yt.jsx)("span",{className:"text-foreground font-medium",children:String(_)})]},y))})})]})})]}),(0,yt.jsx)("div",{className:"flex-1 ",children:(0,yt.jsx)("div",{className:"py-4 h-full",children:(0,yt.jsx)("div",{className:"space-y-4",children:v.content||v.richTextContent?(0,yt.jsx)("div",{className:"relative",children:(0,yt.jsx)("div",{className:"bg-background px-8 overflow-hidden h-full flex-1",children:k(v.format==="richText"?v.richTextContent:v.content,v.format)})}):(0,yt.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,yt.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,yt.jsx)(U.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,yt.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,yt.jsx)("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})})})]})]})}var Co={markdown:e=>(0,yt.jsx)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:(0,yt.jsx)("div",{dangerouslySetInnerHTML:{__html:e.replace(/\n/g,"<br>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/`(.*?)`/g,'<code class="bg-muted px-1 py-0.5 rounded text-sm">$1</code>').replace(/^# (.*$)/gm,'<h1 class="text-2xl font-bold mb-4">$1</h1>').replace(/^## (.*$)/gm,'<h2 class="text-xl font-semibold mb-3">$1</h2>').replace(/^### (.*$)/gm,'<h3 class="text-lg font-medium mb-2">$1</h3>')}})}),text:e=>(0,yt.jsx)("pre",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed bg-slate-50 dark:bg-slate-900 p-4 rounded-lg",children:e}),richText:e=>(0,yt.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,yt.jsx)("div",{className:"bg-amber-50 dark:bg-amber-950/20 border border-amber-200 dark:border-amber-800 rounded-lg p-4 mb-4",children:(0,yt.jsxs)("p",{className:"text-amber-800 dark:text-amber-200 text-sm",children:[(0,yt.jsx)("strong",{children:"Custom RichText Renderer:"})," Implement PayloadCMS integration here"]})}),(0,yt.jsx)("pre",{className:"text-sm bg-slate-50 dark:bg-slate-900 p-4 rounded",children:e})]}),mdx:e=>(0,yt.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,yt.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,yt.jsxs)("p",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[(0,yt.jsx)("strong",{children:"Custom MDX Renderer:"})," Implement @mdx-js/react integration here"]})}),(0,yt.jsx)("div",{dangerouslySetInnerHTML:{__html:e.replace(/\n/g,"<br>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>")}})]})},Ve=[{id:"1",title:"Markdown Documentation",description:"U sample markdown document with formatting",format:"markdown",content:`# Welcome to Markdown
|
|
4
|
+
"use strict";var No=Object.create;var De=Object.defineProperty;var Ro=Object.getOwnPropertyDescriptor;var Po=Object.getOwnPropertyNames;var So=Object.getPrototypeOf,Do=Object.prototype.hasOwnProperty;var Mo=(e,t)=>{for(var o in t)De(e,o,{get:t[o],enumerable:!0})},lt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Po(t))!Do.call(e,n)&&n!==o&&De(e,n,{get:()=>t[n],enumerable:!(r=Ro(t,n))||r.enumerable});return e};var j=(e,t,o)=>(o=e!=null?No(So(e)):{},lt(t||!e||!e.__esModule?De(o,"default",{value:e,enumerable:!0}):o,e)),ko=e=>lt(De({},"__esModule",{value:!0}),e);var Tr={};Mo(Tr,{DocumentPreviewExample:()=>Dr,DocumentPreviewWithPayloadRichText:()=>kr,DocumentPreviewWithReactMarkdown:()=>Mr,customRenderers:()=>Co,sampleDocuments:()=>Ve});module.exports=ko(Tr);var it=require("motion/react"),U=require("lucide-react"),ve=require("react");var ht=require("clsx");var Oe="-",To=e=>{let t=Ho(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let l=s.split(Oe);return l[0]===""&&l.length!==1&&l.shift(),mt(l,t)||Io(s)},getConflictingClassGroupIds:(s,l)=>{let h=o[s]||[];return l&&r[s]?[...h,...r[s]]:h}}},mt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?mt(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let i=e.join(Oe);return t.validators.find(({validator:s})=>s(i))?.classGroupId},dt=/^\[(.+)\]$/,Io=e=>{if(dt.test(e)){let t=dt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Ho=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Lo(Object.entries(e.classGroups),o).forEach(([i,s])=>{Be(s,r,i,t)}),r},Be=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let i=n===""?t:ct(t,n);i.classGroupId=o;return}if(typeof n=="function"){if(Eo(n)){Be(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([i,s])=>{Be(s,ct(t,i),o,r)})})},ct=(e,t)=>{let o=e;return t.split(Oe).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Eo=e=>e.isThemeGetter,Lo=(e,t)=>t?e.map(([o,r])=>{let n=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,l])=>[t+s,l])):i);return[o,n]}):e,Ao=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(i,s)=>{o.set(i,s),t++,t>e&&(t=0,r=o,o=new Map)};return{get(i){let s=o.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return n(i,s),s},set(i,s){o.has(i)?o.set(i,s):n(i,s)}}},pt="!",Vo=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],i=t.length,s=l=>{let h=[],w=0,R=0,v;for(let P=0;P<l.length;P++){let T=l[P];if(w===0){if(T===n&&(r||l.slice(P,P+i)===t)){h.push(l.slice(R,P)),R=P+i;continue}if(T==="/"){v=P;continue}}T==="["?w++:T==="]"&&w--}let H=h.length===0?l:l.substring(R),G=H.startsWith(pt),D=G?H.substring(1):H,k=v&&v>R?v-R:void 0;return{modifiers:h,hasImportantModifier:G,baseClassName:D,maybePostfixModifierPosition:k}};return o?l=>o({className:l,parseClassName:s}):s},zo=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},Bo=e=>({cache:Ao(e.cacheSize),parseClassName:Vo(e),...To(e)}),Oo=/\s+/,_o=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,i=[],s=e.trim().split(Oo),l="";for(let h=s.length-1;h>=0;h-=1){let w=s[h],{modifiers:R,hasImportantModifier:v,baseClassName:H,maybePostfixModifierPosition:G}=o(w),D=!!G,k=r(D?H.substring(0,G):H);if(!k){if(!D){l=w+(l.length>0?" "+l:l);continue}if(k=r(H),!k){l=w+(l.length>0?" "+l:l);continue}D=!1}let P=zo(R).join(":"),T=v?P+pt:P,z=T+k;if(i.includes(z))continue;i.push(z);let y=n(k,D);for(let _=0;_<y.length;++_){let Y=y[_];i.push(T+Y)}l=w+(l.length>0?" "+l:l)}return l};function Fo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=ut(t))&&(r&&(r+=" "),r+=o);return r}var ut=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=ut(e[r]))&&(o&&(o+=" "),o+=t);return o};function $o(e,...t){let o,r,n,i=s;function s(h){let w=t.reduce((R,v)=>v(R),e());return o=Bo(w),r=o.cache.get,n=o.cache.set,i=l,l(h)}function l(h){let w=r(h);if(w)return w;let R=_o(h,o);return n(h,R),R}return function(){return i(Fo.apply(null,arguments))}}var M=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},ft=/^\[(?:([yt-z-]+):)?(.+)\]$/i,Go=/^\yt+\/\yt+$/,Wo=new Set(["px","full","screen"]),Ko=/^(\yt+(\.\yt+)?)?(xs|sm|md|lg|xl)$/,Uo=/\yt+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,jo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Zo=/^(inset_)?-?((\yt+)?\.?(\yt+)[yt-z]+|0)_-?((\yt+)?\.?(\yt+)[yt-z]+|0)/,Xo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ne=e=>ue(e)||Wo.has(e)||Go.test(e),le=e=>fe(e,"length",rr),ue=e=>!!e&&!Number.isNaN(Number(e)),ze=e=>fe(e,"number",ue),xe=e=>!!e&&Number.isInteger(Number(e)),qo=e=>e.endsWith("%")&&ue(e.slice(0,-1)),p=e=>ft.test(e),de=e=>Ko.test(e),Jo=new Set(["length","size","percentage"]),Yo=e=>fe(e,Jo,gt),Qo=e=>fe(e,"position",gt),er=new Set(["image","url"]),tr=e=>fe(e,er,nr),or=e=>fe(e,"",ar),we=()=>!0,fe=(e,t,o)=>{let r=ft.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},rr=e=>Uo.test(e)&&!jo.test(e),gt=()=>!1,ar=e=>Zo.test(e),nr=e=>Xo.test(e);var ir=()=>{let e=M("colors"),t=M("spacing"),o=M("blur"),r=M("brightness"),n=M("borderColor"),i=M("borderRadius"),s=M("borderSpacing"),l=M("borderWidth"),h=M("contrast"),w=M("grayscale"),R=M("hueRotate"),v=M("invert"),H=M("gap"),G=M("gradientColorStops"),D=M("gradientColorStopPositions"),k=M("inset"),P=M("margin"),T=M("opacity"),z=M("padding"),y=M("saturate"),_=M("scale"),Y=M("sepia"),f=M("skew"),C=M("space"),N=M("translate"),Z=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto",p,t],S=()=>[p,t],oe=()=>["",ne,le],re=()=>["auto",ue,p],m=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>["start","end","center","between","around","evenly","stretch"],ee=()=>["","0",p],st=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ae=()=>[ue,p];return{cacheSize:500,separator:":",theme:{colors:[we],spacing:[ne,le],blur:["none","",de,p],brightness:ae(),borderColor:[e],borderRadius:["none","","full",de,p],borderSpacing:S(),borderWidth:oe(),contrast:ae(),grayscale:ee(),hueRotate:ae(),invert:ee(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[qo,le],inset:Q(),margin:Q(),opacity:ae(),padding:S(),saturate:ae(),scale:ae(),sepia:ee(),skew:ae(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",p]}],container:["container"],columns:[{columns:[de]}],"break-after":[{"break-after":st()}],"break-before":[{"break-before":st()}],"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:[...m(),p]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-x":[{"inset-x":[k]}],"inset-y":[{"inset-y":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",xe,p]}],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",p]}],grow:[{grow:ee()}],shrink:[{shrink:ee()}],order:[{order:["first","last","none",xe,p]}],"grid-cols":[{"grid-cols":[we]}],"col-start-end":[{col:["auto",{span:["full",xe,p]},p]}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":[we]}],"row-start-end":[{row:["auto",{span:[xe,p]},p]}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",p]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",p]}],gap:[{gap:[H]}],"gap-x":[{"gap-x":[H]}],"gap-y":[{"gap-y":[H]}],"justify-content":[{justify:["normal",...me()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...me(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...me(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[z]}],px:[{px:[z]}],py:[{py:[z]}],ps:[{ps:[z]}],U:[{U:[z]}],pt:[{pt:[z]}],pr:[{pr:[z]}],pb:[{pb:[z]}],pl:[{pl:[z]}],m:[{m:[P]}],mx:[{mx:[P]}],my:[{my:[P]}],ms:[{ms:[P]}],me:[{me:[P]}],mt:[{mt:[P]}],mr:[{mr:[P]}],mb:[{mb:[P]}],ml:[{ml:[P]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",p,t]}],"min-w":[{"min-w":[p,t,"min","max","fit"]}],"max-w":[{"max-w":[p,t,"none","full","min","max","fit","prose",{screen:[de]},de]}],h:[{h:[p,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[p,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[p,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[p,t,"auto","min","max","fit"]}],"font-size":[{text:["base",de,le]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ze]}],"font-family":[{font:[we]}],"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",p]}],"line-clamp":[{"line-clamp":["none",ue,ze]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ne,p]}],"list-image":[{"list-image":["none",p]}],"list-style-type":[{list:["none","disc","decimal",p]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ne,le]}],"underline-offset":[{"underline-offset":["auto",ne,p]}],"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:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p]}],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",p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...m(),Qo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Yo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},tr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[D]}],"gradient-via-pos":[{via:[D]}],"gradient-to-pos":[{to:[D]}],"gradient-from":[{from:[G]}],"gradient-via":[{via:[G]}],"gradient-to":[{to:[G]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:$()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[ne,p]}],"outline-w":[{outline:[ne,le]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-w":[{"ring-offset":[ne,le]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",de,or]}],"shadow-color":[{shadow:[we]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",de,p]}],grayscale:[{grayscale:[w]}],"hue-rotate":[{"hue-rotate":[R]}],invert:[{invert:[v]}],saturate:[{saturate:[y]}],sepia:[{sepia:[Y]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[w]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[Y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",p]}],duration:[{duration:ae()}],ease:[{ease:["linear","in","out","in-out",p]}],delay:[{delay:ae()}],animate:[{animate:["none","spin","ping","pulse","bounce",p]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[xe,p]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[f]}],"skew-y":[{"skew-y":[f]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",p]}],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",p]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-U":[{"scroll-U":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",p]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ne,le,ze]}],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","U","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-U","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var bt=$o(ir);function u(...e){return bt((0,ht.clsx)(e))}var vt=require("@radix-ui/react-slot"),xt=require("class-variance-authority"),wt=j(require("react")),yt=require("react/jsx-runtime"),sr=(0,xt.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"}}}),te=wt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...n},i)=>(0,yt.jsx)(e?vt.Slot:"button",{className:u(sr({className:t,size:o,variant:r})),ref:i,...n}));te.displayName="Button";var ye=j(require("react")),B=j(require("@radix-ui/react-dialog"));var Nt=B.Root;var _e=B.Portal;var Me=ye.forwardRef(({className:e,...t},o)=>(0,yt.jsx)(B.Overlay,{ref:o,className:u("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Me.displayName=B.Overlay.displayName;var lr=ye.forwardRef(({className:e,children:t,...o},r)=>(0,yt.jsxs)(_e,{children:[(0,yt.jsx)(Me,{}),(0,yt.jsxs)(B.Content,{ref:r,className:u("fixed left-[50%] top-[50%] z-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,yt.jsxs)(B.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,yt.jsx)(U.yt,{className:"h-4 w-4"}),(0,yt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));lr.displayName=B.Content.displayName;var dr=({className:e,...t})=>(0,yt.jsx)("div",{className:u("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});dr.displayName="DialogHeader";var cr=({className:e,...t})=>(0,yt.jsx)("div",{className:u("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});cr.displayName="DialogFooter";var mr=ye.forwardRef(({className:e,...t},o)=>(0,yt.jsx)(B.Title,{ref:o,className:u("text-lg font-semibold leading-none tracking-tight",e),...t}));mr.displayName=B.Title.displayName;var pr=ye.forwardRef(({className:e,...t},o)=>(0,yt.jsx)(B.Description,{ref:o,className:u("text-sm text-muted-foreground",e),...t}));pr.displayName=B.Description.displayName;var ho=j(require("@radix-ui/react-dialog"));var Rt=j(require("react")),Ce=Rt.forwardRef(({className:e,...t},o)=>(0,yt.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}));Ce.displayName="Textarea";var St=j(require("react"));var ge=St.forwardRef(({className:e,type:t,...o},r)=>(0,yt.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}));ge.displayName="Input";var g=j(require("@radix-ui/react-select")),ce=j(require("react")),Mt=g.Root;var kt=g.Value,Fe=ce.forwardRef(({children:e,className:t,...o},r)=>(0,yt.jsxs)(g.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,yt.jsx)(g.Icon,{asChild:!0,children:(0,yt.jsx)(U.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Fe.displayName=g.Trigger.displayName;var Tt=ce.forwardRef(({className:e,...t},o)=>(0,yt.jsx)(g.ScrollUpButton,{className:u("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,yt.jsx)(U.ChevronUp,{className:"h-4 w-4"})}));Tt.displayName=g.ScrollUpButton.displayName;var It=ce.forwardRef(({className:e,...t},o)=>(0,yt.jsx)(g.ScrollDownButton,{className:u("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,yt.jsx)(U.ChevronDown,{className:"h-4 w-4"})}));It.displayName=g.ScrollDownButton.displayName;var $e=ce.forwardRef(({children:e,className:t,position:o="popper",...r},n)=>(0,yt.jsx)(g.Portal,{children:(0,yt.jsxs)(g.Content,{className:u("relative z-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,yt.jsx)(Tt,{}),(0,yt.jsx)(g.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,yt.jsx)(It,{})]})}));$e.displayName=g.Content.displayName;var ur=ce.forwardRef(({className:e,...t},o)=>(0,yt.jsx)(g.Label,{className:u("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));ur.displayName=g.Label.displayName;var ke=ce.forwardRef(({children:e,className:t,...o},r)=>(0,yt.jsxs)(g.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,yt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,yt.jsx)(g.ItemIndicator,{children:(0,yt.jsx)(U.Check,{className:"h-4 w-4"})})}),(0,yt.jsx)(g.ItemText,{children:e})]}));ke.displayName=g.Item.displayName;var fr=ce.forwardRef(({className:e,...t},o)=>(0,yt.jsx)(g.Separator,{className:u("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));fr.displayName=g.Separator.displayName;var Ht=j(require("react")),Ge=j(require("@radix-ui/react-label"));var gr=(0,xt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),We=Ht.forwardRef(({className:e,...t},o)=>(0,yt.jsx)(Ge.Root,{ref:o,className:u(gr(),e),...t}));We.displayName=Ge.Root.displayName;var Ue=({fieldName:e,value:t,label:o,multiline:r=!1,onSave:n,className:i="",disabled:s=!1})=>{let[l,h]=(0,ve.useState)(!1),[w,R]=(0,ve.useState)(""),v=()=>{s||(h(!0),R(t))},H=async()=>{w!==t&&await n(e,w),h(!1)},G=D=>{D.key==="Enter"&&!r||D.key==="Enter"&&D.ctrlKey&&r?H():D.key==="Escape"&&(h(!1),R(""))};return(0,yt.jsxs)("div",{className:`space-y-2 ${i}`,children:[(0,yt.jsx)(We,{children:o}),l?r?(0,yt.jsx)(Ce,{value:w,onChange:D=>R(D.target.value),onBlur:H,onKeyDown:G,autoFocus:!0,rows:4,className:"resize-none"}):(0,yt.jsx)(ge,{value:w,onChange:D=>R(D.target.value),onBlur:H,onKeyPress:G,autoFocus:!0,className:"text-lg font-medium"}):(0,yt.jsxs)("div",{onClick:v,className:`${s?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 p-2 rounded border border-transparent hover:border-border transition-colors group ${r?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,yt.jsx)("span",{className:r?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!s&&(0,yt.jsx)(U.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var ao=require("@payloadcms/richtext-lexical/lexical/react/LexicalAutoFocusPlugin"),no=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposer"),io=require("@payloadcms/richtext-lexical/lexical/react/LexicalContentEditable"),so=require("@payloadcms/richtext-lexical/lexical/react/LexicalErrorBoundary"),lo=require("@payloadcms/richtext-lexical/lexical/react/LexicalHistoryPlugin"),co=require("@payloadcms/richtext-lexical/lexical/react/LexicalRichTextPlugin"),mo=require("@payloadcms/richtext-lexical/lexical/react/LexicalListPlugin"),Le=require("@payloadcms/richtext-lexical/lexical/list"),po=require("@payloadcms/richtext-lexical/lexical/rich-text"),uo=require("@payloadcms/richtext-lexical/lexical/react/LexicalOnChangePlugin");var to=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposerContext"),oo=require("@payloadcms/richtext-lexical/lexical/utils"),x=require("@payloadcms/richtext-lexical/lexical"),ot=require("@payloadcms/richtext-lexical/lexical/selection");var br=()=>(0,yt.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,yt.jsx)("path",{yt:"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"})}),Vt=br;var hr=()=>(0,yt.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,yt.jsx)("path",{yt:"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"})}),zt=hr;var vr=()=>(0,yt.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,yt.jsx)("path",{yt:"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,yt.jsx)("path",{yt:"M5.09961 16.3H14.9016V16.95H5.09961V16.3Z",fill:"currentColor"})]}),Bt=vr;var xr=()=>(0,yt.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,yt.jsx)("path",{yt:"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,yt.jsx)("path",{yt:"M4.99756 11.44H15.0026V12.19H4.99756V11.44Z",fill:"currentColor"})]}),Ot=xr;var wr=()=>(0,yt.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,yt.jsx)("path",{yt:"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"})}),_t=wr;var yr=()=>(0,yt.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,yt.jsx)("path",{yt:"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"})}),Ft=yr;var $t=()=>(0,yt.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,yt.jsx)("path",{yt:"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"})}),Gt=()=>(0,yt.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,yt.jsx)("path",{yt:"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"})}),Wt=()=>(0,yt.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,yt.jsx)("path",{yt:"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"})}),Kt=()=>(0,yt.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,yt.jsx)("path",{yt:"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"})}),Ut=()=>(0,yt.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,yt.jsx)("path",{yt:"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 se=j(require("react")),b=j(require("@radix-ui/react-dropdown-menu")),be=require("@radix-ui/react-icons");var Te=b.Root,Ie=b.Trigger;var jt=se.forwardRef(({className:e,inset:t,children:o,...r},n)=>(0,yt.jsxs)(b.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,yt.jsx)(be.ChevronRightIcon,{className:"ml-auto"})]}));jt.displayName=b.SubTrigger.displayName;var Zt=se.forwardRef(({className:e,...t},o)=>(0,yt.jsx)(b.SubContent,{ref:o,className:u("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Zt.displayName=b.SubContent.displayName;var Pe=se.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,yt.jsx)(b.Portal,{children:(0,yt.jsx)(b.Content,{ref:r,sideOffset:t,className:u("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Pe.displayName=b.Content.displayName;var Se=se.forwardRef(({className:e,inset:t,...o},r)=>(0,yt.jsx)(b.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}));Se.displayName=b.Item.displayName;var Xt=se.forwardRef(({className:e,children:t,checked:o,...r},n)=>(0,yt.jsxs)(b.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,yt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,yt.jsx)(b.ItemIndicator,{children:(0,yt.jsx)(be.CheckIcon,{className:"h-4 w-4"})})}),t]}));Xt.displayName=b.CheckboxItem.displayName;var qt=se.forwardRef(({className:e,children:t,...o},r)=>(0,yt.jsxs)(b.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,yt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,yt.jsx)(b.ItemIndicator,{children:(0,yt.jsx)(be.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));qt.displayName=b.RadioItem.displayName;var Jt=se.forwardRef(({className:e,inset:t,...o},r)=>(0,yt.jsx)(b.Label,{ref:r,className:u("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Jt.displayName=b.Label.displayName;var Yt=se.forwardRef(({className:e,...t},o)=>(0,yt.jsx)(b.Separator,{ref:o,className:u("-mx-1 my-1 h-px bg-muted",e),...t}));Yt.displayName=b.Separator.displayName;var Qt=({className:e,...t})=>(0,yt.jsx)("span",{className:u("ml-auto text-xs tracking-widest opacity-60",e),...t});Qt.displayName="DropdownMenuShortcut";var eo=j(require("react")),J=j(require("@radix-ui/react-tooltip"));var Ye=J.Provider,Qe=J.Root,et=J.Trigger,He=eo.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,yt.jsx)(J.Portal,{children:(0,yt.jsx)(J.Content,{ref:r,sideOffset:t,className:u("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));He.displayName=J.Content.displayName;var tt=1;function Cr(){return(0,yt.jsx)("span",{className:"border border-[#222222]"})}function rt(){let[e]=(0,to.useLexicalComposerContext)(),t=(0,ve.useRef)(null),[o,r]=(0,ve.useState)(!1),[n,i]=(0,ve.useState)(!1),[s,l]=(0,ve.useState)(!1),[h,w]=(0,ve.useState)(!1),[R,v]=(0,ve.useState)(!1),[H,G]=(0,ve.useState)(!1),[D,k]=(0,ve.useState)(!1),[P,T]=(0,ve.useState)(!1),[z,y]=(0,ve.useState)(!1),[_,Y]=(0,ve.useState)("left"),[f,C]=(0,ve.useState)("p"),N=m=>{e.update(()=>{let $=(0,x.$getSelection)();(0,x.$isRangeSelection)($)&&(m==="p"?(0,ot.$setBlocksType)($,()=>(0,x.$createParagraphNode)()):(0,ot.$setBlocksType)($,()=>(0,po.$createHeadingNode)(m)))})},Z=(0,ve.useCallback)(()=>{let m=(0,x.$getSelection)();if((0,x.$isRangeSelection)(m)){l(m.hasFormat("bold")),w(m.hasFormat("italic")),v(m.hasFormat("underline")),G(m.hasFormat("strikethrough")),k(m.hasFormat("subscript")),T(m.hasFormat("superscript"));let $=m.anchor.getNode(),W=$;for(;W&&!(0,x.$isParagraphNode)(W)&&W!==(0,x.$getRoot)();){let ee=W.getParent();ee&&(W=ee)}if(W){let ee=W.getFormatType();Y(ee||"left")}let me=$.getTopLevelElement()?.__tag;C(me||"p")}},[]);(0,ve.useEffect)(()=>(0,oo.mergeRegister)(e.registerUpdateListener(({editorState:m})=>{m.read(()=>{Z()})}),e.registerCommand(x.SELECTION_CHANGE_COMMAND,(m,$)=>(Z(),!1),tt),e.registerCommand(x.CAN_UNDO_COMMAND,m=>(r(m),!1),tt),e.registerCommand(x.CAN_REDO_COMMAND,m=>(i(m),!1),tt)),[e,Z]);let F=[[{label:"Undo",icon:(0,yt.jsx)(U.RotateCcw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(x.UNDO_COMMAND,void 0)},disabled:!o},{label:"Redo",icon:(0,yt.jsx)(U.RotateCw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(x.UNDO_COMMAND,void 0)},disabled:!n}],[{label:"Bold",icon:(0,yt.jsx)(Vt,{}),onClick:()=>{e.dispatchCommand(x.FORMAT_TEXT_COMMAND,"bold")},value:"bold",active:s},{label:"Italic",icon:(0,yt.jsx)(zt,{}),onClick:()=>{e.dispatchCommand(x.FORMAT_TEXT_COMMAND,"italic")},value:"italic",active:h},{label:"Underline",icon:(0,yt.jsx)(Bt,{}),onClick:()=>{e.dispatchCommand(x.FORMAT_TEXT_COMMAND,"underline")},value:"underline",active:R},{label:"Strikethrough",icon:(0,yt.jsx)(Ot,{}),onClick:()=>{e.dispatchCommand(x.FORMAT_TEXT_COMMAND,"strikethrough")},value:"strikethrough",active:H},{label:"Subscript",icon:(0,yt.jsx)(_t,{}),onClick:()=>{e.dispatchCommand(x.FORMAT_TEXT_COMMAND,"subscript")},value:"subscript",active:D},{label:"Superscript",icon:(0,yt.jsx)(Ft,{}),onClick:()=>{e.dispatchCommand(x.FORMAT_TEXT_COMMAND,"superscript")},value:"superscript",active:P}]],Q=[{label:"Left Align",direction:"left",icon:(0,yt.jsx)(U.AlignLeft,{width:15,height:15}),onClick:()=>{e.dispatchCommand(x.FORMAT_ELEMENT_COMMAND,"left")}},{label:"Center Align",direction:"center",icon:(0,yt.jsx)(U.AlignCenter,{width:15,height:15}),onClick:()=>{e.dispatchCommand(x.FORMAT_ELEMENT_COMMAND,"center")}},{label:"Right Align",direction:"right",icon:(0,yt.jsx)(U.AlignRight,{width:15,height:15}),onClick:()=>{e.dispatchCommand(x.FORMAT_ELEMENT_COMMAND,"right")}},{label:"Justify Align",direction:"justify",icon:(0,yt.jsx)(U.AlignJustify,{width:15,height:15}),onClick:()=>{e.dispatchCommand(x.FORMAT_ELEMENT_COMMAND,"justify")}}],oe=[{label:"Normal Text",value:"p",icon:(0,yt.jsx)($t,{}),onClick:()=>N("p")},{label:"Heading 1",value:"h1",icon:(0,yt.jsx)(Gt,{}),onClick:()=>N("h1")},{label:"Heading 2",value:"h2",icon:(0,yt.jsx)(Wt,{}),onClick:()=>N("h2")},{label:"Heading 3",value:"h3",icon:(0,yt.jsx)(Kt,{}),onClick:()=>N("h3")},{label:"Heading 4",value:"h4",icon:(0,yt.jsx)(Ut,{}),onClick:()=>N("h4")},...[{label:"Unordered List",value:"ul",icon:(0,yt.jsx)(U.List,{width:15,height:15}),onClick:()=>{e.dispatchCommand(Le.INSERT_UNORDERED_LIST_COMMAND,void 0)}},{label:"Ordered List",value:"ol",icon:(0,yt.jsx)(U.ListOrdered,{width:15,height:15}),onClick:()=>{e.dispatchCommand(Le.INSERT_ORDERED_LIST_COMMAND,void 0)}}]],re=[{label:"Insert Image",icon:(0,yt.jsx)(U.ImageUp,{width:15,height:15}),onClick:()=>{y(!0)},disabled:!1}];return(0,yt.jsx)("div",{className:"flex justify-between border border-[#222222] py-2 px-2",children:(0,yt.jsxs)("div",{className:"flex gap-2 ",ref:t,children:[F.map((m,$)=>(0,yt.jsxs)(ve.Fragment,{children:[(0,yt.jsx)("div",{className:"flex items-center gap-2",children:m.map((W,me)=>(0,yt.jsx)("div",{role:"button","aria-disabled":W.disabled||!1,onClick:W.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]",W.active&&"bg-[#3c3c3c]"),"aria-label":W.label,children:(0,yt.jsx)(Ye,{children:(0,yt.jsxs)(Qe,{children:[(0,yt.jsx)(et,{className:"text-[#b5b5b5]",children:W.icon}),(0,yt.jsx)(He,{children:(0,yt.jsx)("p",{children:W.label})})]})})},me))}),(0,yt.jsx)(Cr,{})]},`toolbar-option-${m.length}-${$}`)),(0,yt.jsxs)(Te,{children:[(0,yt.jsxs)(Ie,{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(m=>m.direction===_)?.icon,Q.find(m=>m.direction===_)?.label,(0,yt.jsx)(U.ChevronDown,{width:15,height:15})]}),(0,yt.jsx)(Pe,{className:"bg-black hover:bg-black",children:Q.map((m,$)=>(0,yt.jsxs)(Se,{onClick:m.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,yt.jsx)("span",{children:m.icon}),(0,yt.jsx)("span",{children:m.label})]},`${m.label}-${$}`))})]}),(0,yt.jsxs)(Te,{children:[(0,yt.jsxs)(Ie,{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:[oe.find(m=>m.value===f)?.icon,oe.find(m=>m.value===f)?.label,(0,yt.jsx)(U.ChevronDown,{width:15,height:15})]}),(0,yt.jsx)(Pe,{className:"bg-black hover:bg-black",children:oe.map((m,$)=>(0,yt.jsxs)(Se,{onClick:m.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,yt.jsx)("span",{children:m.icon}),(0,yt.jsx)("span",{children:m.label})]},`heading-option-${m.label}-${$}`))})]})]})})}var Nr=({setValue:e,value:t,name:o,editable:r=!0})=>{let[n]=(0,to.useLexicalComposerContext)(),i=s=>{s.read(()=>{let l=s.toJSON();e?.(()=>l)})};return(0,ve.useEffect)(()=>{n.setEditable(r)},[r]),(0,ve.useEffect)(()=>{t&&n.update(()=>{n.setEditorState(n.parseEditorState(t))})},[]),(0,yt.jsx)("div",{className:"w-full",children:(0,yt.jsxs)("div",{className:" ",children:[r&&(0,yt.jsx)(rt,{}),(0,yt.jsxs)("div",{className:"px-4 my-4 border-l border-[#222222]",children:[(0,yt.jsx)(co.RichTextPlugin,{contentEditable:(0,yt.jsx)(io.ContentEditable,{name:o,className:"focus:outline-none focus:ring-0 focus-visible:outline-none min-h-40"}),ErrorBoundary:so.LexicalErrorBoundary}),r&&(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(lo.HistoryPlugin,{}),(0,yt.jsx)(ao.AutoFocusPlugin,{}),(0,yt.jsx)(mo.ListPlugin,{}),(0,yt.jsx)(uo.OnChangePlugin,{onChange:i})]})]})]})})},Rr=({setValue:e,value:t,name:o,editable:r=!0})=>(0,yt.jsx)(no.LexicalComposer,{initialConfig:{namespace:"Lexical editor",nodes:[Le.ListNode,Le.ListItemNode,po.HeadingNode],onError(i){throw console.error("Lexical error:",i),i},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,yt.jsx)(Nr,{value:t,setValue:e,name:o,editable:r})}),Ae=Rr;function go({document:e,onSave:t,mode:o="edit",onCancel:r,availableDocuments:n=[],knowledgeContexts:i=[]}){let[s,l]=(0,ve.useState)({...e,updatedAt:new Date}),[h,w]=(0,ve.useState)(!1),[R,v]=(0,ve.useState)(s.richTextContent);(0,ve.useEffect)(()=>{l(e)},[e]);let H=f=>{switch(f){case"markdown":case"mdx":return(0,yt.jsx)(U.FileText,{className:"h-6 w-6 text-primary"});case"richText":return(0,yt.jsx)(U.File,{className:"h-6 w-6 text-success"});case"text":return(0,yt.jsx)(U.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,yt.jsx)(U.File,{className:"h-6 w-6 text-muted-foreground"})}},G=f=>{switch(f){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"}},D=()=>{let f=new Set,C=new Set;return i.forEach(N=>{N.menuConfig.groupBy.forEach(Z=>f.add(Z))}),n.forEach(N=>{N.metadata&&Object.keys(N.metadata).forEach(Z=>C.add(Z))}),{contextKeys:Array.from(f).sort(),documentKeys:Array.from(C).sort(),allKeys:Array.from(new Set([...f,...C])).sort()}},k=f=>{let C=new Set;return n.forEach(N=>{N.metadata?.[f]&&C.add(String(N.metadata[f]))}),Array.from(C).sort()},P=D(),T=()=>{t({...s,richTextContent:R})},z=(f,C)=>{l(N=>({...N,metadata:{...N.metadata,[f]:C}}))},y=(f,C)=>{C==="__custom__"?z(f,""):z(f,C)},_=()=>{z("","")},Y=f=>{l(C=>{let N={...C.metadata};return delete N[f],{...C,metadata:N}})};return(0,yt.jsxs)(it.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-screen flex flex-col",children:[(0,yt.jsxs)("div",{className:"border-b border-border bg-card p-8 pb-6",children:[(0,yt.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,yt.jsx)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:(0,yt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,yt.jsxs)("div",{className:"flex items-start gap-4 mb-0 leading-tight",children:[(0,yt.jsx)("div",{className:"flex-1 min-w-0",children:(0,yt.jsx)(Ue,{fieldName:"title",value:s.title,label:"",onSave:(f,C)=>l(N=>({...N,title:C})),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,yt.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${G(s.format)} flex-shrink-0 mt-1`,children:s.format.toUpperCase()})]}),(0,yt.jsx)("div",{className:"mt-2",children:(0,yt.jsx)(Ue,{fieldName:"description",value:s.description||"Click to add description...",label:"",multiline:!0,onSave:(f,C)=>l(N=>({...N,description:C})),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,yt.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(0,yt.jsxs)(te,{variant:"ghost",size:"sm",onClick:()=>w(!h),className:"gap-2",children:[(0,yt.jsx)(U.Info,{className:"h-4 w-4"}),"Metadata",s.metadata&&Object.keys(s.metadata).length>0&&(0,yt.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(s.metadata).length}),h?(0,yt.jsx)(U.ChevronDown,{className:"h-4 w-4"}):(0,yt.jsx)(U.ChevronRight,{className:"h-4 w-4"})]}),(0,yt.jsxs)(te,{variant:"outline",size:"sm",onClick:r,className:"gap-2",children:[(0,yt.jsx)(U.yt,{className:"h-4 w-4"}),"Cancel"]}),(0,yt.jsxs)(te,{size:"sm",onClick:T,className:"gap-2",children:[(0,yt.jsx)(U.Save,{className:"h-4 w-4"}),"Save"]})]})]}),(0,yt.jsx)(it.motion.div,{initial:!1,animate:{height:h?"auto":0,opacity:h?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden h-full max-h-full",children:(0,yt.jsxs)("div",{className:"pt-4 border-t border-border mt-4 h-screen max-h-full flex",children:[(0,yt.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,yt.jsxs)("h3",{className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[(0,yt.jsx)(U.Info,{className:"h-4 w-4"}),"Document Metadata"]}),(0,yt.jsxs)(te,{type:"button",variant:"outline",size:"sm",onClick:_,className:"gap-1 h-8",children:[(0,yt.jsx)(U.Plus,{className:"h-3 w-3"}),"Add Field"]})]}),(0,yt.jsx)("div",{className:"bg-muted rounded-lg p-4 border border-border",children:s.metadata&&Object.keys(s.metadata).length>0?(0,yt.jsx)("div",{className:"space-y-2",children:Object.entries(s.metadata).map(([f,C],N)=>{let Z=k(f);return(0,yt.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,yt.jsx)(ge,{value:f,onChange:F=>{let Q=F.target.value||"",S=s.metadata?.[f];l(oe=>{let re={...oe.metadata};return delete re[f],Q&&(re[Q]=S||""),{...oe,metadata:re}})},placeholder:"Key",className:"w-32 h-8 text-sm",list:`metadata-keys-${f}`}),(0,yt.jsx)("datalist",{id:`metadata-keys-${f}`,children:P.allKeys.map(F=>(0,yt.jsx)("option",{value:F},F))}),(0,yt.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),Z.length>0?(0,yt.jsxs)(Mt,{value:String(C||""),onValueChange:F=>y(f,F),children:[(0,yt.jsx)(Fe,{className:"flex-1 h-8 text-sm",children:(0,yt.jsx)(kt,{placeholder:"Value"})}),(0,yt.jsxs)($e,{children:[Z.map(F=>(0,yt.jsx)(ke,{value:F,children:F},F)),(0,yt.jsx)(ke,{value:"__custom__",children:(0,yt.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,yt.jsx)(ge,{value:String(C||""),onChange:F=>z(f,F.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),(0,yt.jsx)(te,{type:"button",variant:"ghost",size:"sm",onClick:()=>Y(f),className:"h-8 w-8 p-0 text-muted-foreground hover:text-destructive",children:(0,yt.jsx)(U.yt,{className:"h-3 w-3"})})]},`metadata-key-${N}`)})}):(0,yt.jsxs)("div",{className:"text-center py-4",children:[(0,yt.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"No metadata fields"}),(0,yt.jsx)("p",{className:"text-xs text-muted-foreground",children:'Click "Add Field" to create metadata'})]})})]})})]}),(0,yt.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,yt.jsx)("div",{className:"p-8 h-full max-h-full overflow-auto",children:s.format==="richText"?(0,yt.jsx)(Ae,{setValue:v,value:R,name:"richTextContent"}):(0,yt.jsx)(Ce,{value:s.content||"",onChange:f=>l(C=>({...C,content:f.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})})})]})}var vo=j(require("react-markdown")),xo=j(require("remark-gfm"));var wo=e=>(0,yt.jsx)(vo.default,{remarkPlugins:[xo.default],components:{h1:({children:t})=>(0,yt.jsx)("h1",{className:"text-2xl font-bold",children:t}),h2:({children:t})=>(0,yt.jsx)("h2",{className:"text-xl font-bold",children:t}),h3:({children:t})=>(0,yt.jsx)("h3",{className:"text-lg font-bold",children:t}),h4:({children:t})=>(0,yt.jsx)("h4",{className:"text-base font-bold",children:t}),ol:({children:t})=>(0,yt.jsx)("ol",{className:"list-decimal",children:t}),ul:({children:t})=>(0,yt.jsx)("ul",{className:"list-disc",children:t}),li:({children:t})=>(0,yt.jsx)("li",{className:"ml-4",children:t}),p:({children:t})=>(0,yt.jsx)("p",{className:"mb-4",children:t}),yt:({children:t,href:o})=>(0,yt.jsx)("yt",{href:o,className:"text-blue-500",children:t}),img:({src:t,alt:o})=>(0,yt.jsx)("img",{src:t,alt:o,className:"mb-4"}),blockquote:({children:t})=>(0,yt.jsx)("blockquote",{className:"border-l-4 border-gray-300 pl-4 mb-4",children:t})},children:e}),bo=e=>(0,yt.jsx)("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:e}),Pr=e=>(0,yt.jsx)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:e&&(0,yt.jsx)(Ae,{value:JSON.stringify(e),editable:!1,name:"richTextContent"})}),Sr=e=>(0,yt.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,yt.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,yt.jsxs)("p",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[(0,yt.jsx)("strong",{children:"MDX Renderer:"})," This is yt placeholder. Integrate with @mdx-js/react for full MDX rendering."]})}),wo(e)]});function yo({document:e,onDocumentUpdate:t,editable:o=!0,mode:r="view",renderers:n,availableDocuments:i=[],knowledgeContexts:s=[]}){let[l,h]=(0,ve.useState)(!1),[w,R]=(0,ve.useState)(!1),[v,H]=(0,ve.useState)(e);(0,ve.useEffect)(()=>{H(e)},[e]);let G=y=>{switch(y){case"markdown":case"mdx":return(0,yt.jsx)(U.FileText,{className:"h-6 w-6 text-primary"});case"richText":return(0,yt.jsx)(U.File,{className:"h-6 w-6 text-success"});case"text":return(0,yt.jsx)(U.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,yt.jsx)(U.File,{className:"h-6 w-6 text-muted-foreground"})}},D=y=>{switch(y){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"}},k=(y,_)=>{let Y={markdown:wo,mdx:Sr,text:bo},f=n?.[_]||Y[_];if(_==="richText"&&typeof y=="object")return Pr(y);if(f&&typeof y=="string")return f(y);if(typeof y=="string")return bo(y)},P=y=>{h(!1),t?.(y),H(y)},T=()=>{h(!1)};return(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(Nt,{open:l||r==="create",onOpenChange:y=>!y&&T(),children:(0,yt.jsxs)(_e,{children:[(0,yt.jsx)(Me,{}),(0,yt.jsx)(ho.Content,{className:u("fixed inset-0 z-50 bg-background p-0 m-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,yt.jsx)(go,{mode:r==="create"?"create":"edit",document:v,onSave:P,onCancel:T,availableDocuments:i,knowledgeContexts:s})})]})}),(0,yt.jsxs)(it.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,yt.jsxs)("div",{className:"border-b border-border bg-card p-8 pb-6",children:[(0,yt.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,yt.jsx)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:(0,yt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,yt.jsxs)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:[v.title,(0,yt.jsx)("span",{className:`inline-flex ml-4 items-center px-3 py-1 rounded-full text-sm font-medium border ${D(v.format)}`,children:v.format.toUpperCase()})]}),v.description&&(0,yt.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed",children:v.description})]})}),(0,yt.jsxs)("div",{className:"items-center gap-2 flex-shrink-0 hidden lg:flex",children:[v.metadata&&Object.keys(v.metadata).length>0&&(0,yt.jsxs)(te,{variant:"ghost",size:"sm",onClick:()=>R(!w),className:"gap-2",children:[(0,yt.jsx)(U.Info,{className:"h-4 w-4"}),"Metadata",w?(0,yt.jsx)(U.ChevronDown,{className:"h-4 w-4"}):(0,yt.jsx)(U.ChevronRight,{className:"h-4 w-4"})]}),o&&(0,yt.jsxs)(te,{variant:"outline",size:"sm",onClick:()=>h(!0),className:"gap-2",children:[(0,yt.jsx)(U.Edit3,{className:"h-4 w-4"}),"Edit"]})]})]}),v.metadata&&Object.keys(v.metadata).length>0&&(0,yt.jsx)(it.motion.div,{initial:!1,animate:{height:w?"auto":0,opacity:w?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,yt.jsxs)("div",{className:"pt-4 border-t border-border mt-4",children:[(0,yt.jsxs)("h3",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[(0,yt.jsx)(U.Info,{className:"h-4 w-4"}),"Document Metadata"]}),(0,yt.jsx)("div",{className:"bg-muted rounded-lg p-4 border border-border",children:(0,yt.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(([y,_])=>(0,yt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,yt.jsx)("span",{className:"text-muted-foreground font-medium text-xs uppercase tracking-wide",children:y.replace(/([U-Z])/g," $1").trim()}),(0,yt.jsx)("span",{className:"text-foreground font-medium",children:String(_)})]},y))})})]})})]}),(0,yt.jsx)("div",{className:"flex-1 ",children:(0,yt.jsx)("div",{className:"py-4 h-full",children:(0,yt.jsx)("div",{className:"space-y-4",children:v.content||v.richTextContent?(0,yt.jsx)("div",{className:"relative",children:(0,yt.jsx)("div",{className:"bg-background px-8 overflow-hidden h-full flex-1",children:k(v.format==="richText"?v.richTextContent:v.content,v.format)})}):(0,yt.jsxs)("div",{className:"text-center p-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,yt.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,yt.jsx)(U.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,yt.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,yt.jsx)("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})})})]})]})}var Co={markdown:e=>(0,yt.jsx)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:(0,yt.jsx)("div",{dangerouslySetInnerHTML:{__html:e.replace(/\n/g,"<br>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/`(.*?)`/g,'<code class="bg-muted px-1 py-0.5 rounded text-sm">$1</code>').replace(/^# (.*$)/gm,'<h1 class="text-2xl font-bold mb-4">$1</h1>').replace(/^## (.*$)/gm,'<h2 class="text-xl font-semibold mb-3">$1</h2>').replace(/^### (.*$)/gm,'<h3 class="text-lg font-medium mb-2">$1</h3>')}})}),text:e=>(0,yt.jsx)("pre",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed bg-slate-50 dark:bg-slate-900 p-4 rounded-lg",children:e}),richText:e=>(0,yt.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,yt.jsx)("div",{className:"bg-amber-50 dark:bg-amber-950/20 border border-amber-200 dark:border-amber-800 rounded-lg p-4 mb-4",children:(0,yt.jsxs)("p",{className:"text-amber-800 dark:text-amber-200 text-sm",children:[(0,yt.jsx)("strong",{children:"Custom RichText Renderer:"})," Implement PayloadCMS integration here"]})}),(0,yt.jsx)("pre",{className:"text-sm bg-slate-50 dark:bg-slate-900 p-4 rounded",children:e})]}),mdx:e=>(0,yt.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,yt.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,yt.jsxs)("p",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[(0,yt.jsx)("strong",{children:"Custom MDX Renderer:"})," Implement @mdx-js/react integration here"]})}),(0,yt.jsx)("div",{dangerouslySetInnerHTML:{__html:e.replace(/\n/g,"<br>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>")}})]})},Ve=[{id:"1",title:"Markdown Documentation",description:"U sample markdown document with formatting",format:"markdown",content:`# Welcome to Markdown
|
|
5
5
|
|
|
6
6
|
This is yt **bold** statement and this is *italic*.
|
|
7
7
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as o}from"../../chunk-
|
|
1
|
+
import{a as o}from"../../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";import{jsx as e,jsxs as r}from"react/jsx-runtime";var n={markdown:t=>e("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:e("div",{dangerouslySetInnerHTML:{__html:t.replace(/\n/g,"<br>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/`(.*?)`/g,'<code class="bg-muted px-1 py-0.5 rounded text-sm">$1</code>').replace(/^# (.*$)/gm,'<h1 class="text-2xl font-bold mb-4">$1</h1>').replace(/^## (.*$)/gm,'<h2 class="text-xl font-semibold mb-3">$1</h2>').replace(/^### (.*$)/gm,'<h3 class="text-lg font-medium mb-2">$1</h3>')}})}),text:t=>e("pre",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed bg-slate-50 dark:bg-slate-900 p-4 rounded-lg",children:t}),richText:t=>r("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[e("div",{className:"bg-amber-50 dark:bg-amber-950/20 border border-amber-200 dark:border-amber-800 rounded-lg p-4 mb-4",children:r("p",{className:"text-amber-800 dark:text-amber-200 text-sm",children:[e("strong",{children:"Custom RichText Renderer:"})," Implement PayloadCMS integration here"]})}),e("pre",{className:"text-sm bg-slate-50 dark:bg-slate-900 p-4 rounded",children:t})]}),mdx:t=>r("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[e("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:r("p",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[e("strong",{children:"Custom MDX Renderer:"})," Implement @mdx-js/react integration here"]})}),e("div",{dangerouslySetInnerHTML:{__html:t.replace(/\n/g,"<br>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>")}})]})},a=[{id:"1",title:"Markdown Documentation",description:"A sample markdown document with formatting",format:"markdown",content:`# Welcome to Markdown
|
|
2
2
|
|
|
3
3
|
This is a **bold** statement and this is *italic*.
|
|
4
4
|
|