cortex-react-components 2.17.5 → 2.17.6
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-CYWA6TR2.mjs → chunk-2W4GQ3FI.mjs} +1 -1
- package/dist/{chunk-PRK2XFAZ.mjs → chunk-2WP44BWJ.mjs} +1 -1
- package/dist/{chunk-ZCBUDRT7.mjs → chunk-3PUOPWAI.mjs} +1 -1
- package/dist/{chunk-M74BIPBM.mjs → chunk-4BKAUTKL.mjs} +1 -1
- package/dist/{chunk-5KS3DITB.mjs → chunk-4OROP5TC.mjs} +1 -1
- package/dist/{chunk-ERHNVIOZ.mjs → chunk-5FWH5YVM.mjs} +1 -1
- package/dist/{chunk-BDNY6OKE.mjs → chunk-5GV4XVLP.mjs} +1 -1
- package/dist/{chunk-JUFFNFV6.mjs → chunk-64ODZI5O.mjs} +1 -1
- package/dist/{chunk-T36QUKC6.mjs → chunk-7CY3QPBJ.mjs} +1 -1
- package/dist/{chunk-DA2BPW6D.mjs → chunk-AX66HDQV.mjs} +1 -1
- package/dist/{chunk-2GZQYAN3.mjs → chunk-DAAAZF3S.mjs} +1 -1
- package/dist/{chunk-Y62OBV2E.mjs → chunk-DEO6EQJR.mjs} +1 -1
- package/dist/{chunk-CJDUN6R4.mjs → chunk-DKRRVTCV.mjs} +1 -1
- package/dist/{chunk-UX5OJ3WS.mjs → chunk-DOPDVMNN.mjs} +1 -1
- package/dist/{chunk-PMYLKWPE.mjs → chunk-F2MJXGRT.mjs} +1 -1
- package/dist/{chunk-KRLNPNMZ.mjs → chunk-GYLFNLRD.mjs} +1 -1
- package/dist/{chunk-72BE5VJT.mjs → chunk-KAB4C5T2.mjs} +1 -1
- package/dist/{chunk-AGWQ5S2Z.mjs → chunk-KBEXWUKI.mjs} +1 -1
- package/dist/{chunk-23XORW7A.mjs → chunk-MX3JKY3V.mjs} +1 -1
- package/dist/{chunk-PZZTGPEO.mjs → chunk-N6J2WFC4.mjs} +1 -1
- package/dist/{chunk-I6OBIS4J.mjs → chunk-NFD36674.mjs} +1 -1
- package/dist/{chunk-S3P6OGB7.mjs → chunk-O2RJFVGE.mjs} +1 -1
- package/dist/{chunk-PXLSH6S2.mjs → chunk-O5P35LEY.mjs} +1 -1
- package/dist/{chunk-GIL2SMPM.mjs → chunk-ONZ32NDG.mjs} +1 -1
- package/dist/{chunk-57HKHEQN.mjs → chunk-OT4MGAKH.mjs} +1 -1
- package/dist/{chunk-BGADMIWV.mjs → chunk-PC2PZNJ6.mjs} +1 -1
- package/dist/{chunk-WDZOGIT2.mjs → chunk-QUOSFCS5.mjs} +1 -1
- package/dist/{chunk-66ODXUVL.mjs → chunk-RZM6JZBZ.mjs} +1 -1
- package/dist/{chunk-BN747TQM.mjs → chunk-SJON62H2.mjs} +1 -1
- package/dist/{chunk-SK2QJG6J.mjs → chunk-TNPSOYKM.mjs} +1 -1
- package/dist/{chunk-SRUG246N.mjs → chunk-TXVA6XJT.mjs} +1 -1
- package/dist/{chunk-2UNIT7NC.mjs → chunk-UPRS7OYQ.mjs} +1 -1
- package/dist/{chunk-ZAAHG2J7.mjs → chunk-UZYTSIUY.mjs} +1 -1
- package/dist/{chunk-NXG2Y4N4.mjs → chunk-WC7IAORY.mjs} +1 -1
- package/dist/{chunk-CNCT3JZV.mjs → chunk-XX4GSGRP.mjs} +1 -1
- package/dist/{chunk-X5UJBRSB.mjs → chunk-YS3PFB7C.mjs} +1 -1
- package/dist/{chunk-JLUX7EHB.mjs → chunk-YTCTK24K.mjs} +1 -1
- package/dist/{chunk-4NHQXOKZ.mjs → chunk-ZIZENXBP.mjs} +1 -1
- package/dist/{chunk-JT65KF7C.mjs → chunk-ZKOJRF5P.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/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/Foundary/AppSidebarLeft.mjs +1 -1
- package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +1 -1
- package/dist/components/Foundary/Knowledge/add-team-context.mjs +1 -1
- package/dist/components/Foundary/MainPage.mjs +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.js +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
- package/dist/components/Foundary/RichText/index.mjs +1 -1
- package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +1 -1
- package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
- package/dist/components/Foundary/Views/KnowledgeView.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-edit.js +1 -1
- package/dist/components/Foundary/document-edit.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/SectionHeading.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.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/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.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/LandingPage.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/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-KAB4C5T2.mjs";import{a as b}from"../../../chunk-TNPSOYKM.mjs";import{a as g}from"../../../chunk-UPRS7OYQ.mjs";import"../../../chunk-3F6AUCZF.mjs";import"../../../chunk-U2OXF7PJ.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-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"../../../chunk-5RTGHMF3.mjs";import{a as c}from"../../../chunk-NAGBKKTZ.mjs";import"../../../chunk-JXQRVEQB.mjs";import"../../../chunk-DCOFQFVJ.mjs";import"../../../chunk-VGWDYD6Z.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-CJ6APTVT.mjs";import"../../../chunk-YRMNCHFO.mjs";import"../../../chunk-EOR2BAI2.mjs";import"../../../chunk-NDZ26EG6.mjs";import"../../../chunk-M2REXGQW.mjs";import"../../../chunk-3PUOPWAI.mjs";import"../../../chunk-AX66HDQV.mjs";import"../../../chunk-EZC3YWSQ.mjs";import"../../../chunk-ATBKMJU6.mjs";import"../../../chunk-H3RVI2OI.mjs";import"../../../chunk-5HT2KC5I.mjs";import"../../../chunk-FSCDCSVK.mjs";import"../../../chunk-UZYTSIUY.mjs";import"../../../chunk-RBJOTC2X.mjs";import"../../../chunk-EUMMM454.mjs";import"../../../chunk-IPRG56MW.mjs";import"../../../chunk-HFEN3KJC.mjs";import"../../../chunk-L2UJOICL.mjs";import"../../../chunk-T3F3RQIC.mjs";import"../../../chunk-UP67R64J.mjs";import"../../../chunk-6QERRKM4.mjs";import"../../../chunk-VSU7LYXZ.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-O5P35LEY.mjs";import"../../../chunk-7GSXNSLD.mjs";import"../../../chunk-4UIARERB.mjs";import"../../../chunk-D4IMQTVU.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,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";"use client";var Zt=Object.create;var xe=Object.defineProperty;var Kt=Object.getOwnPropertyDescriptor;var jt=Object.getOwnPropertyNames;var qt=Object.getPrototypeOf,Jt=Object.prototype.hasOwnProperty;var Xt=(e,t)=>{for(var o in t)xe(e,o,{get:t[o],enumerable:!0})},Ze=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of jt(t))!Jt.call(e,n)&&n!==o&&xe(e,n,{get:()=>t[n],enumerable:!(r=Kt(t,n))||r.enumerable});return e};var K=(e,t,o)=>(o=e!=null?Zt(qt(e)):{},Ze(t||!e||!e.__esModule?xe(o,"default",{value:e,enumerable:!0}):o,e)),Yt=e=>Ze(xe({},"__esModule",{value:!0}),e);var Uo={};Xt(Uo,{DocumentEdit:()=>$o});module.exports=Yt(Uo);var Wt=require("motion/react"),J=require("lucide-react"),ve=require("react");var tt=require("clsx");var De="-",Qt=e=>{let t=to(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{let a=l.split(De);return a[0]===""&&a.length!==1&&a.shift(),qe(a,t)||eo(l)},getConflictingClassGroupIds:(l,a)=>{let x=o[l]||[];return a&&r[l]?[...x,...r[l]]:x}}},qe=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?qe(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let i=e.join(De);return t.validators.find(({validator:l})=>l(i))?.classGroupId},Ke=/^\[(.+)\]$/,eo=e=>{if(Ke.test(e)){let t=Ke.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},to=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return ro(Object.entries(e.classGroups),o).forEach(([i,l])=>{ke(l,r,i,t)}),r},ke=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let i=n===""?t:je(t,n);i.classGroupId=o;return}if(typeof n=="function"){if(oo(n)){ke(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([i,l])=>{ke(l,je(t,i),o,r)})})},je=(e,t)=>{let o=e;return t.split(De).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},oo=e=>e.isThemeGetter,ro=(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(([l,a])=>[t+l,a])):i);return[o,n]}):e,no=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(i,l)=>{o.set(i,l),t++,t>e&&(t=0,r=o,o=new Map)};return{get(i){let l=o.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return n(i,l),l},set(i,l){o.has(i)?o.set(i,l):n(i,l)}}},Je="!",io=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],i=t.length,l=a=>{let x=[],R=0,k=0,z;for(let w=0;w<a.length;w++){let N=a[w];if(R===0){if(N===n&&(r||a.slice(w,w+i)===t)){x.push(a.slice(k,w)),k=w+i;continue}if(N==="/"){z=w;continue}}N==="["?R++:N==="]"&&R--}let D=x.length===0?a:a.substring(k),B=D.startsWith(Je),A=B?D.substring(1):D,S=z&&z>k?z-k:void 0;return{modifiers:x,hasImportantModifier:B,baseClassName:A,maybePostfixModifierPosition:S}};return o?a=>o({className:a,parseClassName:l}):l},ao=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},so=e=>({cache:no(e.cacheSize),parseClassName:io(e),...Qt(e)}),lo=/\it+/,co=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,i=[],l=e.trim().split(lo),a="";for(let x=l.length-1;x>=0;x-=1){let R=l[x],{modifiers:k,hasImportantModifier:z,baseClassName:D,maybePostfixModifierPosition:B}=o(R),A=!!B,S=r(A?D.substring(0,B):D);if(!S){if(!A){a=R+(a.length>0?" "+a:a);continue}if(S=r(D),!S){a=R+(a.length>0?" "+a:a);continue}A=!1}let w=ao(k).join(":"),N=z?w+Je:w,d=N+S;if(i.includes(d))continue;i.push(d);let g=n(S,A);for(let v=0;v<g.length;++v){let _=g[v];i.push(N+_)}a=R+(a.length>0?" "+a:a)}return a};function po(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Xe(t))&&(r&&(r+=" "),r+=o);return r}var Xe=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Xe(e[r]))&&(o&&(o+=" "),o+=t);return o};function mo(e,...t){let o,r,n,i=l;function l(x){let R=t.reduce((k,z)=>z(k),e());return o=so(R),r=o.cache.get,n=o.cache.set,i=a,a(x)}function a(x){let R=r(x);if(R)return R;let k=co(x,o);return n(x,k),k}return function(){return i(po.apply(null,arguments))}}var C=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Ye=/^\[(?:([a-z-]+):)?(.+)\]$/i,uo=/^\d+\/\d+$/,fo=new Set(["px","full","screen"]),go=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ho=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,vo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j=e=>ie(e)||fo.has(e)||uo.test(e),X=e=>ae(e,"length",No),ie=e=>!!e&&!Number.isNaN(Number(e)),Te=e=>ae(e,"number",ie),pe=e=>!!e&&Number.isInteger(Number(e)),wo=e=>e.endsWith("%")&&ie(e.slice(0,-1)),m=e=>Ye.test(e),Y=e=>go.test(e),yo=new Set(["length","size","percentage"]),Co=e=>ae(e,yo,Qe),So=e=>ae(e,"position",Qe),Po=new Set(["image","url"]),Mo=e=>ae(e,Po,ko),Ro=e=>ae(e,"",To),me=()=>!0,ae=(e,t,o)=>{let r=Ye.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},No=e=>bo.test(e)&&!ho.test(e),Qe=()=>!1,To=e=>vo.test(e),ko=e=>xo.test(e);var Do=()=>{let e=C("colors"),t=C("spacing"),o=C("blur"),r=C("brightness"),n=C("borderColor"),i=C("borderRadius"),l=C("borderSpacing"),a=C("borderWidth"),x=C("contrast"),R=C("grayscale"),k=C("hueRotate"),z=C("invert"),D=C("gap"),B=C("gradientColorStops"),A=C("gradientColorStopPositions"),S=C("inset"),w=C("margin"),N=C("opacity"),d=C("padding"),g=C("saturate"),v=C("scale"),_=C("sepia"),H=C("skew"),ee=C("space"),F=C("translate"),$=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],te=()=>["auto",m,t],y=()=>[m,t],ne=()=>["",j,X],de=()=>["auto",ie,m],p=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>["start","end","center","between","around","evenly","stretch"],U=()=>["","0",m],We=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>[ie,m];return{cacheSize:500,separator:":",theme:{colors:[me],spacing:[j,X],blur:["none","",Y,m],brightness:Z(),borderColor:[e],borderRadius:["none","","full",Y,m],borderSpacing:y(),borderWidth:ne(),contrast:Z(),grayscale:U(),hueRotate:Z(),invert:U(),gap:y(),gradientColorStops:[e],gradientColorStopPositions:[wo,X],inset:te(),margin:te(),opacity:Z(),padding:y(),saturate:Z(),scale:Z(),sepia:U(),skew:Z(),space:y(),translate:y()},classGroups:{aspect:[{aspect:["auto","square","video",m]}],container:["container"],columns:[{columns:[Y]}],"break-after":[{"break-after":We()}],"break-before":[{"break-before":We()}],"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:[...p(),m]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",pe,m]}],basis:[{basis:te()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",m]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",pe,m]}],"grid-cols":[{"grid-cols":[me]}],"col-start-end":[{col:["auto",{span:["full",pe,m]},m]}],"col-start":[{"col-start":de()}],"col-end":[{"col-end":de()}],"grid-rows":[{"grid-rows":[me]}],"row-start-end":[{row:["auto",{span:[pe,m]},m]}],"row-start":[{"row-start":de()}],"row-end":[{"row-end":de()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",m]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",m]}],gap:[{gap:[D]}],"gap-x":[{"gap-x":[D]}],"gap-y":[{"gap-y":[D]}],"justify-content":[{justify:["normal",...oe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...oe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...oe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[d]}],px:[{px:[d]}],py:[{py:[d]}],ps:[{ps:[d]}],pe:[{pe:[d]}],pt:[{pt:[d]}],pr:[{pr:[d]}],pb:[{pb:[d]}],pl:[{pl:[d]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[ee]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ee]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",m,t]}],"min-w":[{"min-w":[m,t,"min","max","fit"]}],"max-w":[{"max-w":[m,t,"none","full","min","max","fit","prose",{screen:[Y]},Y]}],h:[{h:[m,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[m,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[m,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[m,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Y,X]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Te]}],"font-family":[{font:[me]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",m]}],"line-clamp":[{"line-clamp":["none",ie,Te]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",j,m]}],"list-image":[{"list-image":["none",m]}],"list-style-type":[{list:["none","disc","decimal",m]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[N]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",j,X]}],"underline-offset":[{"underline-offset":["auto",j,m]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",m]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",m]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[N]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...p(),So]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Co]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Mo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[B]}],"gradient-via":[{via:[B]}],"gradient-to":[{to:[B]}],rounded:[{rounded:[i]}],"rounded-it":[{"rounded-it":[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:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-it":[{"border-it":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[N]}],"border-style":[{border:[...L(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[N]}],"divide-style":[{divide:L()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-it":[{"border-it":[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:["",...L()]}],"outline-offset":[{"outline-offset":[j,m]}],"outline-w":[{outline:[j,X]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[N]}],"ring-offset-w":[{"ring-offset":[j,X]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Y,Ro]}],"shadow-color":[{shadow:[me]}],opacity:[{opacity:[N]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[x]}],"drop-shadow":[{"drop-shadow":["","none",Y,m]}],grayscale:[{grayscale:[R]}],"hue-rotate":[{"hue-rotate":[k]}],invert:[{invert:[z]}],saturate:[{saturate:[g]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[x]}],"backdrop-grayscale":[{"backdrop-grayscale":[R]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[k]}],"backdrop-invert":[{"backdrop-invert":[z]}],"backdrop-opacity":[{"backdrop-opacity":[N]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",m]}],duration:[{duration:Z()}],ease:[{ease:["linear","in","out","in-out",m]}],delay:[{delay:Z()}],animate:[{animate:["none","spin","ping","pulse","bounce",m]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[pe,m]}],"translate-x":[{"translate-x":[F]}],"translate-y":[{"translate-y":[F]}],"skew-x":[{"skew-x":[H]}],"skew-y":[{"skew-y":[H]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",m]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","it-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",m]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",m]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[j,X,Te]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-it","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-it":["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-it","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-it","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var et=mo(Do);function h(...e){return et((0,tt.clsx)(e))}var ot=require("@radix-ui/react-slot"),rt=require("class-variance-authority"),nt=K(require("react")),it=require("react/jsx-runtime"),Io=(0,rt.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"}}}),se=nt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...n},i)=>(0,it.jsx)(e?ot.Slot:"button",{className:h(Io({className:t,size:o,variant:r})),ref:i,...n}));se.displayName="Button";var at=K(require("react")),we=at.forwardRef(({className:e,...t},o)=>(0,it.jsx)("textarea",{className:h("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}));we.displayName="Textarea";var lt=K(require("react"));var ue=lt.forwardRef(({className:e,type:t,...o},r)=>(0,it.jsx)("input",{type:t,className:h("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));ue.displayName="Input";var u=K(require("@radix-ui/react-select")),Q=K(require("react")),Ie=u.Root;var He=u.Value,ye=Q.forwardRef(({children:e,className:t,...o},r)=>(0,it.jsxs)(u.Trigger,{className:h("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,it.jsx)(u.Icon,{asChild:!0,children:(0,it.jsx)(J.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ye.displayName=u.Trigger.displayName;var dt=Q.forwardRef(({className:e,...t},o)=>(0,it.jsx)(u.ScrollUpButton,{className:h("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,it.jsx)(J.ChevronUp,{className:"h-4 w-4"})}));dt.displayName=u.ScrollUpButton.displayName;var pt=Q.forwardRef(({className:e,...t},o)=>(0,it.jsx)(u.ScrollDownButton,{className:h("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,it.jsx)(J.ChevronDown,{className:"h-4 w-4"})}));pt.displayName=u.ScrollDownButton.displayName;var Ce=Q.forwardRef(({children:e,className:t,position:o="popper",...r},n)=>(0,it.jsx)(u.Portal,{children:(0,it.jsxs)(u.Content,{className:h("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,it.jsx)(dt,{}),(0,it.jsx)(u.Viewport,{className:h("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,it.jsx)(pt,{})]})}));Ce.displayName=u.Content.displayName;var Ho=Q.forwardRef(({className:e,...t},o)=>(0,it.jsx)(u.Label,{className:h("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));Ho.displayName=u.Label.displayName;var le=Q.forwardRef(({children:e,className:t,...o},r)=>(0,it.jsxs)(u.Item,{className:h("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,it.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,it.jsx)(u.ItemIndicator,{children:(0,it.jsx)(J.Check,{className:"h-4 w-4"})})}),(0,it.jsx)(u.ItemText,{children:e})]}));le.displayName=u.Item.displayName;var Lo=Q.forwardRef(({className:e,...t},o)=>(0,it.jsx)(u.Separator,{className:h("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));Lo.displayName=u.Separator.displayName;var At=require("@payloadcms/richtext-lexical/lexical/react/LexicalAutoFocusPlugin"),Vt=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposer"),Et=require("@payloadcms/richtext-lexical/lexical/react/LexicalContentEditable"),zt=require("@payloadcms/richtext-lexical/lexical/react/LexicalErrorBoundary"),Bt=require("@payloadcms/richtext-lexical/lexical/react/LexicalHistoryPlugin"),_t=require("@payloadcms/richtext-lexical/lexical/react/LexicalRichTextPlugin"),Gt=require("@payloadcms/richtext-lexical/lexical/react/LexicalListPlugin"),Ne=require("@payloadcms/richtext-lexical/lexical/list"),Ot=require("@payloadcms/richtext-lexical/lexical/rich-text"),Ft=require("@payloadcms/richtext-lexical/lexical/react/LexicalOnChangePlugin");var It=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposerContext"),Ht=require("@payloadcms/richtext-lexical/lexical/utils"),b=require("@payloadcms/richtext-lexical/lexical"),Fe=require("@payloadcms/richtext-lexical/lexical/selection");var Ao=()=>(0,it.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,it.jsx)("path",{d:"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"})}),mt=Ao;var Vo=()=>(0,it.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,it.jsx)("path",{d:"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"})}),ut=Vo;var Eo=()=>(0,it.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,it.jsx)("path",{d:"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,it.jsx)("path",{d:"M5.09961 16.3H14.9016V16.95H5.09961V16.3Z",fill:"currentColor"})]}),ft=Eo;var zo=()=>(0,it.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,it.jsx)("path",{d:"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,it.jsx)("path",{d:"M4.99756 11.44H15.0026V12.19H4.99756V11.44Z",fill:"currentColor"})]}),gt=zo;var Bo=()=>(0,it.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,it.jsx)("path",{d:"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"})}),bt=Bo;var _o=()=>(0,it.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,it.jsx)("path",{d:"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"})}),ht=_o;var vt=()=>(0,it.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,it.jsx)("path",{d:"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"})}),xt=()=>(0,it.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,it.jsx)("path",{d:"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,it.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,it.jsx)("path",{d:"M4.139 13.5V7.074H5.696V9.648H8.576V7.074H10.142V13.5H8.576V10.836H5.696V13.5H4.139ZM15.9796 8.973C15.9796 10.116 15.1696 10.656 14.0356 11.232C13.2256 11.646 12.8206 11.943 12.7846 12.294H15.9886V13.5H11.0566V12.951C11.0566 11.601 12.1636 10.845 13.1176 10.287C14.0356 9.756 14.5126 9.486 14.5126 8.946C14.5126 8.46 14.2156 8.145 13.6306 8.145C13.0186 8.145 12.6586 8.613 12.6226 9.198H11.1196C11.2186 7.947 12.1006 6.966 13.6396 6.966C15.0346 6.966 15.9796 7.785 15.9796 8.973Z",fill:"currentColor"})}),yt=()=>(0,it.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,it.jsx)("path",{d:"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"})}),Ct=()=>(0,it.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,it.jsx)("path",{d:"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 q=K(require("react")),f=K(require("@radix-ui/react-dropdown-menu")),ce=require("@radix-ui/react-icons");var Se=f.Root,Pe=f.Trigger;var St=q.forwardRef(({className:e,inset:t,children:o,...r},n)=>(0,it.jsxs)(f.SubTrigger,{ref:n,className:h("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,it.jsx)(ce.ChevronRightIcon,{className:"ml-auto"})]}));St.displayName=f.SubTrigger.displayName;var Pt=q.forwardRef(({className:e,...t},o)=>(0,it.jsx)(f.SubContent,{ref:o,className:h("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}));Pt.displayName=f.SubContent.displayName;var be=q.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,it.jsx)(f.Portal,{children:(0,it.jsx)(f.Content,{ref:r,sideOffset:t,className:h("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})}));be.displayName=f.Content.displayName;var he=q.forwardRef(({className:e,inset:t,...o},r)=>(0,it.jsx)(f.Item,{ref:r,className:h("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}));he.displayName=f.Item.displayName;var Mt=q.forwardRef(({className:e,children:t,checked:o,...r},n)=>(0,it.jsxs)(f.CheckboxItem,{ref:n,className:h("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,it.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,it.jsx)(f.ItemIndicator,{children:(0,it.jsx)(ce.CheckIcon,{className:"h-4 w-4"})})}),t]}));Mt.displayName=f.CheckboxItem.displayName;var Rt=q.forwardRef(({className:e,children:t,...o},r)=>(0,it.jsxs)(f.RadioItem,{ref:r,className:h("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,it.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,it.jsx)(f.ItemIndicator,{children:(0,it.jsx)(ce.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Rt.displayName=f.RadioItem.displayName;var Nt=q.forwardRef(({className:e,inset:t,...o},r)=>(0,it.jsx)(f.Label,{ref:r,className:h("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Nt.displayName=f.Label.displayName;var Tt=q.forwardRef(({className:e,...t},o)=>(0,it.jsx)(f.Separator,{ref:o,className:h("-mx-1 my-1 h-px bg-muted",e),...t}));Tt.displayName=f.Separator.displayName;var kt=({className:e,...t})=>(0,it.jsx)("span",{className:h("ml-auto text-xs tracking-widest opacity-60",e),...t});kt.displayName="DropdownMenuShortcut";var Dt=K(require("react")),O=K(require("@radix-ui/react-tooltip"));var Be=O.Provider,_e=O.Root,Ge=O.Trigger,Me=Dt.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,it.jsx)(O.Portal,{children:(0,it.jsx)(O.Content,{ref:r,sideOffset:t,className:h("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})}));Me.displayName=O.Content.displayName;var Oe=1;function Go(){return(0,it.jsx)("span",{className:"border border-[#222222]"})}function $e(){let[e]=(0,It.useLexicalComposerContext)(),t=(0,ve.useRef)(null),[o,r]=(0,ve.useState)(!1),[n,i]=(0,ve.useState)(!1),[l,a]=(0,ve.useState)(!1),[x,R]=(0,ve.useState)(!1),[k,z]=(0,ve.useState)(!1),[D,B]=(0,ve.useState)(!1),[A,S]=(0,ve.useState)(!1),[w,N]=(0,ve.useState)(!1),[d,g]=(0,ve.useState)(!1),[v,_]=(0,ve.useState)("left"),[H,ee]=(0,ve.useState)("p"),F=p=>{e.update(()=>{let L=(0,b.$getSelection)();(0,b.$isRangeSelection)(L)&&(p==="p"?(0,Fe.$setBlocksType)(L,()=>(0,b.$createParagraphNode)()):(0,Fe.$setBlocksType)(L,()=>(0,Ot.$createHeadingNode)(p)))})},$=(0,ve.useCallback)(()=>{let p=(0,b.$getSelection)();if((0,b.$isRangeSelection)(p)){a(p.hasFormat("bold")),R(p.hasFormat("italic")),z(p.hasFormat("underline")),B(p.hasFormat("strikethrough")),S(p.hasFormat("subscript")),N(p.hasFormat("superscript"));let L=p.anchor.getNode(),V=L;for(;V&&!(0,b.$isParagraphNode)(V)&&V!==(0,b.$getRoot)();){let U=V.getParent();U&&(V=U)}if(V){let U=V.getFormatType();_(U||"left")}let oe=L.getTopLevelElement()?.__tag;ee(oe||"p")}},[]);(0,ve.useEffect)(()=>(0,Ht.mergeRegister)(e.registerUpdateListener(({editorState:p})=>{p.read(()=>{$()})}),e.registerCommand(b.SELECTION_CHANGE_COMMAND,(p,L)=>($(),!1),Oe),e.registerCommand(b.CAN_UNDO_COMMAND,p=>(r(p),!1),Oe),e.registerCommand(b.CAN_REDO_COMMAND,p=>(i(p),!1),Oe)),[e,$]);let W=[[{label:"Undo",icon:(0,it.jsx)(J.RotateCcw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(b.UNDO_COMMAND,void 0)},disabled:!o},{label:"Redo",icon:(0,it.jsx)(J.RotateCw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(b.UNDO_COMMAND,void 0)},disabled:!n}],[{label:"Bold",icon:(0,it.jsx)(mt,{}),onClick:()=>{e.dispatchCommand(b.FORMAT_TEXT_COMMAND,"bold")},value:"bold",active:l},{label:"Italic",icon:(0,it.jsx)(ut,{}),onClick:()=>{e.dispatchCommand(b.FORMAT_TEXT_COMMAND,"italic")},value:"italic",active:x},{label:"Underline",icon:(0,it.jsx)(ft,{}),onClick:()=>{e.dispatchCommand(b.FORMAT_TEXT_COMMAND,"underline")},value:"underline",active:k},{label:"Strikethrough",icon:(0,it.jsx)(gt,{}),onClick:()=>{e.dispatchCommand(b.FORMAT_TEXT_COMMAND,"strikethrough")},value:"strikethrough",active:D},{label:"Subscript",icon:(0,it.jsx)(bt,{}),onClick:()=>{e.dispatchCommand(b.FORMAT_TEXT_COMMAND,"subscript")},value:"subscript",active:A},{label:"Superscript",icon:(0,it.jsx)(ht,{}),onClick:()=>{e.dispatchCommand(b.FORMAT_TEXT_COMMAND,"superscript")},value:"superscript",active:w}]],te=[{label:"Left Align",direction:"left",icon:(0,it.jsx)(J.AlignLeft,{width:15,height:15}),onClick:()=>{e.dispatchCommand(b.FORMAT_ELEMENT_COMMAND,"left")}},{label:"Center Align",direction:"center",icon:(0,it.jsx)(J.AlignCenter,{width:15,height:15}),onClick:()=>{e.dispatchCommand(b.FORMAT_ELEMENT_COMMAND,"center")}},{label:"Right Align",direction:"right",icon:(0,it.jsx)(J.AlignRight,{width:15,height:15}),onClick:()=>{e.dispatchCommand(b.FORMAT_ELEMENT_COMMAND,"right")}},{label:"Justify Align",direction:"justify",icon:(0,it.jsx)(J.AlignJustify,{width:15,height:15}),onClick:()=>{e.dispatchCommand(b.FORMAT_ELEMENT_COMMAND,"justify")}}],ne=[{label:"Normal Text",value:"p",icon:(0,it.jsx)(vt,{}),onClick:()=>F("p")},{label:"Heading 1",value:"h1",icon:(0,it.jsx)(xt,{}),onClick:()=>F("h1")},{label:"Heading 2",value:"h2",icon:(0,it.jsx)(wt,{}),onClick:()=>F("h2")},{label:"Heading 3",value:"h3",icon:(0,it.jsx)(yt,{}),onClick:()=>F("h3")},{label:"Heading 4",value:"h4",icon:(0,it.jsx)(Ct,{}),onClick:()=>F("h4")},...[{label:"Unordered List",value:"ul",icon:(0,it.jsx)(J.List,{width:15,height:15}),onClick:()=>{e.dispatchCommand(Ne.INSERT_UNORDERED_LIST_COMMAND,void 0)}},{label:"Ordered List",value:"ol",icon:(0,it.jsx)(J.ListOrdered,{width:15,height:15}),onClick:()=>{e.dispatchCommand(Ne.INSERT_ORDERED_LIST_COMMAND,void 0)}}]],de=[{label:"Insert Image",icon:(0,it.jsx)(J.ImageUp,{width:15,height:15}),onClick:()=>{g(!0)},disabled:!1}];return(0,it.jsx)("div",{className:"flex justify-between border border-[#222222] py-2 px-2",children:(0,it.jsxs)("div",{className:"flex gap-2 ",ref:t,children:[W.map((p,L)=>(0,it.jsxs)(ve.Fragment,{children:[(0,it.jsx)("div",{className:"flex items-center gap-2",children:p.map((V,oe)=>(0,it.jsx)("div",{role:"button","aria-disabled":V.disabled||!1,onClick:V.onClick,className:h("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]",V.active&&"bg-[#3c3c3c]"),"aria-label":V.label,children:(0,it.jsx)(Be,{children:(0,it.jsxs)(_e,{children:[(0,it.jsx)(Ge,{className:"text-[#b5b5b5]",children:V.icon}),(0,it.jsx)(Me,{children:(0,it.jsx)("p",{children:V.label})})]})})},oe))}),(0,it.jsx)(Go,{})]},`toolbar-option-${p.length}-${L}`)),(0,it.jsxs)(Se,{children:[(0,it.jsxs)(Pe,{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:[te.find(p=>p.direction===v)?.icon,te.find(p=>p.direction===v)?.label,(0,it.jsx)(J.ChevronDown,{width:15,height:15})]}),(0,it.jsx)(be,{className:"bg-black hover:bg-black",children:te.map((p,L)=>(0,it.jsxs)(he,{onClick:p.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,it.jsx)("span",{children:p.icon}),(0,it.jsx)("span",{children:p.label})]},`${p.label}-${L}`))})]}),(0,it.jsxs)(Se,{children:[(0,it.jsxs)(Pe,{className:"flex items-center justify-center gap-2 px-2 py-1 rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c] text-[#b5b5b5] text-xs",children:[ne.find(p=>p.value===H)?.icon,ne.find(p=>p.value===H)?.label,(0,it.jsx)(J.ChevronDown,{width:15,height:15})]}),(0,it.jsx)(be,{className:"bg-black hover:bg-black",children:ne.map((p,L)=>(0,it.jsxs)(he,{onClick:p.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,it.jsx)("span",{children:p.icon}),(0,it.jsx)("span",{children:p.label})]},`heading-option-${p.label}-${L}`))})]})]})})}var Oo=({setValue:e,value:t,name:o,editable:r=!0})=>{let[n]=(0,$t.useLexicalComposerContext)(),i=l=>{l.read(()=>{let a=l.toJSON();e?.(()=>a)})};return(0,ve.useEffect)(()=>{n.setEditable(r)},[r]),(0,ve.useEffect)(()=>{t&&n.update(()=>{n.setEditorState(n.parseEditorState(t))})},[]),(0,it.jsx)("div",{className:"w-full",children:(0,it.jsxs)("div",{className:" ",children:[r&&(0,it.jsx)($e,{}),(0,it.jsxs)("div",{className:"px-4 my-4 border-l border-[#222222]",children:[(0,it.jsx)(_t.RichTextPlugin,{contentEditable:(0,it.jsx)(Et.ContentEditable,{name:o,className:"focus:outline-none focus:ring-0 focus-visible:outline-none min-h-40"}),ErrorBoundary:zt.LexicalErrorBoundary}),r&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Bt.HistoryPlugin,{}),(0,it.jsx)(At.AutoFocusPlugin,{}),(0,it.jsx)(Gt.ListPlugin,{}),(0,it.jsx)(Ft.OnChangePlugin,{onChange:i})]})]})]})})},Fo=({setValue:e,value:t,name:o,editable:r=!0})=>(0,it.jsx)(Vt.LexicalComposer,{initialConfig:{namespace:"Lexical editor",nodes:[Ne.ListNode,Ne.ListItemNode,Ot.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,it.jsx)(Oo,{value:t,setValue:e,name:o,editable:r})}),Ut=Fo;function $o({document:e,onSave:t,mode:o="edit",onCancel:r,availableDocuments:n=[],knowledgeContexts:i=[]}){let[l,a]=(0,ve.useState)({...e,updatedAt:new Date}),[x,R]=(0,ve.useState)(l.richTextContent);(0,ve.useEffect)(()=>{a(e)},[e]);let k=()=>{let d=new Set,g=new Set;return i.forEach(v=>{v.menuConfig.groupBy.forEach(_=>d.add(_))}),n.forEach(v=>{v.metadata&&Object.keys(v.metadata).forEach(_=>g.add(_))}),{contextKeys:Array.from(d).sort(),documentKeys:Array.from(g).sort(),allKeys:Array.from(new Set([...d,...g])).sort()}},z=d=>{let g=new Set;return n.forEach(v=>{v.metadata?.[d]&&g.add(String(v.metadata[d]))}),Array.from(g).sort()},D=k(),B=()=>{t({...l,richTextContent:x})},A=(d,g)=>{a(v=>({...v,metadata:{...v.metadata,[d]:g}}))},S=(d,g)=>{g==="__custom__"?A(d,""):A(d,g)},w=()=>{A("","")},N=d=>{a(g=>{let v={...g.metadata};return delete v[d],{...g,metadata:v}})};return(0,it.jsxs)(Wt.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,it.jsxs)("div",{className:"border-b border-border bg-card p-8",children:[(0,it.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-6",children:[(0,it.jsxs)("div",{className:"flex items-center gap-3",children:[(0,it.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-primary/10 border border-primary/20",children:(0,it.jsx)(J.Edit3,{className:"h-6 w-6 text-primary"})}),(0,it.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:o==="edit"?"Edit Document":"Create Document"})]}),(0,it.jsxs)("div",{className:"flex gap-2",children:[(0,it.jsxs)(se,{variant:"outline",size:"sm",onClick:r,className:"gap-2",children:[(0,it.jsx)(J.X,{className:"h-4 w-4"}),"Cancel"]}),(0,it.jsxs)(se,{size:"sm",onClick:B,className:"gap-2",children:[(0,it.jsx)(J.Save,{className:"h-4 w-4"}),"Save Changes"]})]})]}),(0,it.jsxs)("div",{className:"space-y-4",children:[(0,it.jsxs)("div",{children:[(0,it.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Title"}),(0,it.jsx)(ue,{value:l.title,onChange:d=>a(g=>({...g,title:d.target.value})),className:"text-lg font-semibold",placeholder:"Document title..."})]}),(0,it.jsxs)("div",{children:[(0,it.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Description"}),(0,it.jsx)(we,{value:l.description||"",onChange:d=>a(g=>({...g,description:d.target.value})),placeholder:"Document description...",rows:2})]}),(0,it.jsxs)("div",{children:[(0,it.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,it.jsxs)("div",{children:[(0,it.jsx)("label",{className:"block text-sm font-medium text-foreground",children:"Metadata"}),D.contextKeys.length>0&&(0,it.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Suggested: ",D.contextKeys.slice(0,4).join(", "),D.contextKeys.length>4&&` +${D.contextKeys.length-4}`]})]}),(0,it.jsxs)(se,{type:"button",variant:"outline",size:"sm",onClick:w,className:"gap-1 h-8",children:[(0,it.jsx)(J.Plus,{className:"h-3 w-3"}),"Add"]})]}),l.metadata&&Object.keys(l.metadata).length>0?(0,it.jsx)("div",{className:"space-y-2",children:Object.entries(l.metadata).map(([d,g],v)=>{let _=z(d);return(0,it.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,it.jsx)(ue,{value:d,onChange:H=>{let ee=H.target.value||"",F=l.metadata?.[d];a($=>{let W={...$.metadata};return delete W[d],ee&&(W[ee]=F||""),{...$,metadata:W}})},placeholder:"Key",className:"w-32 h-8 text-sm",list:`metadata-keys-${d}`}),(0,it.jsx)("datalist",{id:`metadata-keys-${d}`,children:D.allKeys.map(H=>(0,it.jsx)("option",{value:H},H))}),(0,it.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),_.length>0?(0,it.jsxs)(Ie,{value:String(g||""),onValueChange:H=>S(d,H),children:[(0,it.jsx)(ye,{className:"flex-1 h-8 text-sm",children:(0,it.jsx)(He,{placeholder:"Value"})}),(0,it.jsxs)(Ce,{children:[_.map(H=>(0,it.jsx)(le,{value:H,children:H},H)),(0,it.jsx)(le,{value:"__custom__",children:(0,it.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,it.jsx)(ue,{value:String(g||""),onChange:H=>A(d,H.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),(0,it.jsx)(se,{type:"button",variant:"ghost",size:"sm",onClick:()=>N(d),className:"h-8 w-8 p-0 text-muted-foreground hover:text-destructive",children:(0,it.jsx)(J.X,{className:"h-3 w-3"})})]},`metadata-key-${v}`)})}):(0,it.jsx)("div",{className:"text-center py-3 border border-dashed border-border rounded-lg bg-muted/20",children:(0,it.jsx)("p",{className:"text-xs text-muted-foreground",children:'No metadata \u2022 Click "Add" to create fields'})})]}),(0,it.jsxs)("div",{className:"flex items-center gap-2",children:[(0,it.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Format"}),(0,it.jsxs)(Ie,{value:l.format,onValueChange:d=>a(g=>({...g,format:d})),children:[(0,it.jsx)(ye,{className:"flex-1 h-8 text-sm",children:(0,it.jsx)(He,{placeholder:"Format"})}),(0,it.jsxs)(Ce,{children:[(0,it.jsx)(le,{value:"markdown",children:"Markdown"}),(0,it.jsx)(le,{value:"richText",children:"Rich Text"})]})]})]})]})]}),(0,it.jsx)("div",{className:"flex-1 overflow-auto",children:(0,it.jsxs)("div",{className:"p-8",children:[(0,it.jsx)("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),l.format==="richText"?(0,it.jsx)(Ut,{setValue:R,value:x,name:"richTextContent"}):(0,it.jsx)(we,{value:l.content||"",onChange:d=>a(g=>({...g,content:d.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}0&&(module.exports={DocumentEdit});
|
|
4
|
+
"use strict";"use client";var Zt=Object.create;var xe=Object.defineProperty;var Kt=Object.getOwnPropertyDescriptor;var jt=Object.getOwnPropertyNames;var qt=Object.getPrototypeOf,Jt=Object.prototype.hasOwnProperty;var Xt=(e,t)=>{for(var o in t)xe(e,o,{get:t[o],enumerable:!0})},Ze=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of jt(t))!Jt.call(e,n)&&n!==o&&xe(e,n,{get:()=>t[n],enumerable:!(r=Kt(t,n))||r.enumerable});return e};var K=(e,t,o)=>(o=e!=null?Zt(qt(e)):{},Ze(t||!e||!e.__esModule?xe(o,"default",{value:e,enumerable:!0}):o,e)),Yt=e=>Ze(xe({},"__esModule",{value:!0}),e);var Uo={};Xt(Uo,{DocumentEdit:()=>$o});module.exports=Yt(Uo);var Wt=require("motion/react"),J=require("lucide-react"),ve=require("react");var tt=require("clsx");var De="-",Qt=e=>{let t=to(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{let a=l.split(De);return a[0]===""&&a.length!==1&&a.shift(),qe(a,t)||eo(l)},getConflictingClassGroupIds:(l,a)=>{let x=o[l]||[];return a&&r[l]?[...x,...r[l]]:x}}},qe=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?qe(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let i=e.join(De);return t.validators.find(({validator:l})=>l(i))?.classGroupId},Ke=/^\[(.+)\]$/,eo=e=>{if(Ke.test(e)){let t=Ke.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},to=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return ro(Object.entries(e.classGroups),o).forEach(([i,l])=>{ke(l,r,i,t)}),r},ke=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let i=n===""?t:je(t,n);i.classGroupId=o;return}if(typeof n=="function"){if(oo(n)){ke(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([i,l])=>{ke(l,je(t,i),o,r)})})},je=(e,t)=>{let o=e;return t.split(De).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},oo=e=>e.isThemeGetter,ro=(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(([l,a])=>[t+l,a])):i);return[o,n]}):e,no=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(i,l)=>{o.set(i,l),t++,t>e&&(t=0,r=o,o=new Map)};return{get(i){let l=o.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return n(i,l),l},set(i,l){o.has(i)?o.set(i,l):n(i,l)}}},Je="!",io=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],i=t.length,l=a=>{let x=[],R=0,k=0,z;for(let w=0;w<a.length;w++){let N=a[w];if(R===0){if(N===n&&(r||a.slice(w,w+i)===t)){x.push(a.slice(k,w)),k=w+i;continue}if(N==="/"){z=w;continue}}N==="["?R++:N==="]"&&R--}let D=x.length===0?a:a.substring(k),B=D.startsWith(Je),A=B?D.substring(1):D,S=z&&z>k?z-k:void 0;return{modifiers:x,hasImportantModifier:B,baseClassName:A,maybePostfixModifierPosition:S}};return o?a=>o({className:a,parseClassName:l}):l},ao=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},so=e=>({cache:no(e.cacheSize),parseClassName:io(e),...Qt(e)}),lo=/\it+/,co=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,i=[],l=e.trim().split(lo),a="";for(let x=l.length-1;x>=0;x-=1){let R=l[x],{modifiers:k,hasImportantModifier:z,baseClassName:D,maybePostfixModifierPosition:B}=o(R),A=!!B,S=r(A?D.substring(0,B):D);if(!S){if(!A){a=R+(a.length>0?" "+a:a);continue}if(S=r(D),!S){a=R+(a.length>0?" "+a:a);continue}A=!1}let w=ao(k).join(":"),N=z?w+Je:w,d=N+S;if(i.includes(d))continue;i.push(d);let g=n(S,A);for(let v=0;v<g.length;++v){let _=g[v];i.push(N+_)}a=R+(a.length>0?" "+a:a)}return a};function po(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Xe(t))&&(r&&(r+=" "),r+=o);return r}var Xe=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Xe(e[r]))&&(o&&(o+=" "),o+=t);return o};function mo(e,...t){let o,r,n,i=l;function l(x){let R=t.reduce((k,z)=>z(k),e());return o=so(R),r=o.cache.get,n=o.cache.set,i=a,a(x)}function a(x){let R=r(x);if(R)return R;let k=co(x,o);return n(x,k),k}return function(){return i(po.apply(null,arguments))}}var C=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Ye=/^\[(?:([a-z-]+):)?(.+)\]$/i,uo=/^\d+\/\d+$/,fo=new Set(["px","full","screen"]),go=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ho=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,vo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j=e=>ie(e)||fo.has(e)||uo.test(e),X=e=>ae(e,"length",No),ie=e=>!!e&&!Number.isNaN(Number(e)),Te=e=>ae(e,"number",ie),pe=e=>!!e&&Number.isInteger(Number(e)),wo=e=>e.endsWith("%")&&ie(e.slice(0,-1)),m=e=>Ye.test(e),Y=e=>go.test(e),yo=new Set(["length","size","percentage"]),Co=e=>ae(e,yo,Qe),So=e=>ae(e,"position",Qe),Po=new Set(["image","url"]),Mo=e=>ae(e,Po,ko),Ro=e=>ae(e,"",To),me=()=>!0,ae=(e,t,o)=>{let r=Ye.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},No=e=>bo.test(e)&&!ho.test(e),Qe=()=>!1,To=e=>vo.test(e),ko=e=>xo.test(e);var Do=()=>{let e=C("colors"),t=C("spacing"),o=C("blur"),r=C("brightness"),n=C("borderColor"),i=C("borderRadius"),l=C("borderSpacing"),a=C("borderWidth"),x=C("contrast"),R=C("grayscale"),k=C("hueRotate"),z=C("invert"),D=C("gap"),B=C("gradientColorStops"),A=C("gradientColorStopPositions"),S=C("inset"),w=C("margin"),N=C("opacity"),d=C("padding"),g=C("saturate"),v=C("scale"),_=C("sepia"),H=C("skew"),ee=C("space"),F=C("translate"),$=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],te=()=>["auto",m,t],y=()=>[m,t],ne=()=>["",j,X],de=()=>["auto",ie,m],p=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>["start","end","center","between","around","evenly","stretch"],U=()=>["","0",m],We=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>[ie,m];return{cacheSize:500,separator:":",theme:{colors:[me],spacing:[j,X],blur:["none","",Y,m],brightness:Z(),borderColor:[e],borderRadius:["none","","full",Y,m],borderSpacing:y(),borderWidth:ne(),contrast:Z(),grayscale:U(),hueRotate:Z(),invert:U(),gap:y(),gradientColorStops:[e],gradientColorStopPositions:[wo,X],inset:te(),margin:te(),opacity:Z(),padding:y(),saturate:Z(),scale:Z(),sepia:U(),skew:Z(),space:y(),translate:y()},classGroups:{aspect:[{aspect:["auto","square","video",m]}],container:["container"],columns:[{columns:[Y]}],"break-after":[{"break-after":We()}],"break-before":[{"break-before":We()}],"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:[...p(),m]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",pe,m]}],basis:[{basis:te()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",m]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",pe,m]}],"grid-cols":[{"grid-cols":[me]}],"col-start-end":[{col:["auto",{span:["full",pe,m]},m]}],"col-start":[{"col-start":de()}],"col-end":[{"col-end":de()}],"grid-rows":[{"grid-rows":[me]}],"row-start-end":[{row:["auto",{span:[pe,m]},m]}],"row-start":[{"row-start":de()}],"row-end":[{"row-end":de()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",m]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",m]}],gap:[{gap:[D]}],"gap-x":[{"gap-x":[D]}],"gap-y":[{"gap-y":[D]}],"justify-content":[{justify:["normal",...oe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...oe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...oe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[d]}],px:[{px:[d]}],py:[{py:[d]}],ps:[{ps:[d]}],pe:[{pe:[d]}],pt:[{pt:[d]}],pr:[{pr:[d]}],pb:[{pb:[d]}],pl:[{pl:[d]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[ee]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ee]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",m,t]}],"min-w":[{"min-w":[m,t,"min","max","fit"]}],"max-w":[{"max-w":[m,t,"none","full","min","max","fit","prose",{screen:[Y]},Y]}],h:[{h:[m,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[m,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[m,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[m,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Y,X]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Te]}],"font-family":[{font:[me]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",m]}],"line-clamp":[{"line-clamp":["none",ie,Te]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",j,m]}],"list-image":[{"list-image":["none",m]}],"list-style-type":[{list:["none","disc","decimal",m]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[N]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",j,X]}],"underline-offset":[{"underline-offset":["auto",j,m]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",m]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",m]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[N]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...p(),So]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Co]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Mo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[B]}],"gradient-via":[{via:[B]}],"gradient-to":[{to:[B]}],rounded:[{rounded:[i]}],"rounded-it":[{"rounded-it":[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:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-it":[{"border-it":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[N]}],"border-style":[{border:[...L(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[N]}],"divide-style":[{divide:L()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-it":[{"border-it":[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:["",...L()]}],"outline-offset":[{"outline-offset":[j,m]}],"outline-w":[{outline:[j,X]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[N]}],"ring-offset-w":[{"ring-offset":[j,X]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Y,Ro]}],"shadow-color":[{shadow:[me]}],opacity:[{opacity:[N]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[x]}],"drop-shadow":[{"drop-shadow":["","none",Y,m]}],grayscale:[{grayscale:[R]}],"hue-rotate":[{"hue-rotate":[k]}],invert:[{invert:[z]}],saturate:[{saturate:[g]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[x]}],"backdrop-grayscale":[{"backdrop-grayscale":[R]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[k]}],"backdrop-invert":[{"backdrop-invert":[z]}],"backdrop-opacity":[{"backdrop-opacity":[N]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",m]}],duration:[{duration:Z()}],ease:[{ease:["linear","in","out","in-out",m]}],delay:[{delay:Z()}],animate:[{animate:["none","spin","ping","pulse","bounce",m]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[pe,m]}],"translate-x":[{"translate-x":[F]}],"translate-y":[{"translate-y":[F]}],"skew-x":[{"skew-x":[H]}],"skew-y":[{"skew-y":[H]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",m]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","it-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",m]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",m]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[j,X,Te]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-it","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-it":["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-it","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-it","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var et=mo(Do);function h(...e){return et((0,tt.clsx)(e))}var ot=require("@radix-ui/react-slot"),rt=require("class-variance-authority"),nt=K(require("react")),it=require("react/jsx-runtime"),Io=(0,rt.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"}}}),se=nt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...n},i)=>(0,it.jsx)(e?ot.Slot:"button",{className:h(Io({className:t,size:o,variant:r})),ref:i,...n}));se.displayName="Button";var at=K(require("react")),we=at.forwardRef(({className:e,...t},o)=>(0,it.jsx)("textarea",{className:h("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}));we.displayName="Textarea";var lt=K(require("react"));var ue=lt.forwardRef(({className:e,type:t,...o},r)=>(0,it.jsx)("input",{type:t,className:h("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));ue.displayName="Input";var u=K(require("@radix-ui/react-select")),Q=K(require("react")),Ie=u.Root;var He=u.Value,ye=Q.forwardRef(({children:e,className:t,...o},r)=>(0,it.jsxs)(u.Trigger,{className:h("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,it.jsx)(u.Icon,{asChild:!0,children:(0,it.jsx)(J.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ye.displayName=u.Trigger.displayName;var dt=Q.forwardRef(({className:e,...t},o)=>(0,it.jsx)(u.ScrollUpButton,{className:h("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,it.jsx)(J.ChevronUp,{className:"h-4 w-4"})}));dt.displayName=u.ScrollUpButton.displayName;var pt=Q.forwardRef(({className:e,...t},o)=>(0,it.jsx)(u.ScrollDownButton,{className:h("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,it.jsx)(J.ChevronDown,{className:"h-4 w-4"})}));pt.displayName=u.ScrollDownButton.displayName;var Ce=Q.forwardRef(({children:e,className:t,position:o="popper",...r},n)=>(0,it.jsx)(u.Portal,{children:(0,it.jsxs)(u.Content,{className:h("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,it.jsx)(dt,{}),(0,it.jsx)(u.Viewport,{className:h("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,it.jsx)(pt,{})]})}));Ce.displayName=u.Content.displayName;var Ho=Q.forwardRef(({className:e,...t},o)=>(0,it.jsx)(u.Label,{className:h("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));Ho.displayName=u.Label.displayName;var le=Q.forwardRef(({children:e,className:t,...o},r)=>(0,it.jsxs)(u.Item,{className:h("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,it.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,it.jsx)(u.ItemIndicator,{children:(0,it.jsx)(J.Check,{className:"h-4 w-4"})})}),(0,it.jsx)(u.ItemText,{children:e})]}));le.displayName=u.Item.displayName;var Lo=Q.forwardRef(({className:e,...t},o)=>(0,it.jsx)(u.Separator,{className:h("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));Lo.displayName=u.Separator.displayName;var At=require("@payloadcms/richtext-lexical/lexical/react/LexicalAutoFocusPlugin"),Vt=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposer"),Et=require("@payloadcms/richtext-lexical/lexical/react/LexicalContentEditable"),zt=require("@payloadcms/richtext-lexical/lexical/react/LexicalErrorBoundary"),Bt=require("@payloadcms/richtext-lexical/lexical/react/LexicalHistoryPlugin"),_t=require("@payloadcms/richtext-lexical/lexical/react/LexicalRichTextPlugin"),Gt=require("@payloadcms/richtext-lexical/lexical/react/LexicalListPlugin"),Ne=require("@payloadcms/richtext-lexical/lexical/list"),Ot=require("@payloadcms/richtext-lexical/lexical/rich-text"),Ft=require("@payloadcms/richtext-lexical/lexical/react/LexicalOnChangePlugin");var It=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposerContext"),Ht=require("@payloadcms/richtext-lexical/lexical/utils"),b=require("@payloadcms/richtext-lexical/lexical"),Fe=require("@payloadcms/richtext-lexical/lexical/selection");var Ao=()=>(0,it.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,it.jsx)("path",{d:"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"})}),mt=Ao;var Vo=()=>(0,it.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,it.jsx)("path",{d:"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"})}),ut=Vo;var Eo=()=>(0,it.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,it.jsx)("path",{d:"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,it.jsx)("path",{d:"M5.09961 16.3H14.9016V16.95H5.09961V16.3Z",fill:"currentColor"})]}),ft=Eo;var zo=()=>(0,it.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,it.jsx)("path",{d:"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,it.jsx)("path",{d:"M4.99756 11.44H15.0026V12.19H4.99756V11.44Z",fill:"currentColor"})]}),gt=zo;var Bo=()=>(0,it.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,it.jsx)("path",{d:"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"})}),bt=Bo;var _o=()=>(0,it.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,it.jsx)("path",{d:"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"})}),ht=_o;var vt=()=>(0,it.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,it.jsx)("path",{d:"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"})}),xt=()=>(0,it.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,it.jsx)("path",{d:"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,it.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,it.jsx)("path",{d:"M4.139 13.5V7.074H5.696V9.648H8.576V7.074H10.142V13.5H8.576V10.836H5.696V13.5H4.139ZM15.9796 8.973C15.9796 10.116 15.1696 10.656 14.0356 11.232C13.2256 11.646 12.8206 11.943 12.7846 12.294H15.9886V13.5H11.0566V12.951C11.0566 11.601 12.1636 10.845 13.1176 10.287C14.0356 9.756 14.5126 9.486 14.5126 8.946C14.5126 8.46 14.2156 8.145 13.6306 8.145C13.0186 8.145 12.6586 8.613 12.6226 9.198H11.1196C11.2186 7.947 12.1006 6.966 13.6396 6.966C15.0346 6.966 15.9796 7.785 15.9796 8.973Z",fill:"currentColor"})}),yt=()=>(0,it.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,it.jsx)("path",{d:"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"})}),Ct=()=>(0,it.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,it.jsx)("path",{d:"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 q=K(require("react")),f=K(require("@radix-ui/react-dropdown-menu")),ce=require("@radix-ui/react-icons");var Se=f.Root,Pe=f.Trigger;var St=q.forwardRef(({className:e,inset:t,children:o,...r},n)=>(0,it.jsxs)(f.SubTrigger,{ref:n,className:h("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,it.jsx)(ce.ChevronRightIcon,{className:"ml-auto"})]}));St.displayName=f.SubTrigger.displayName;var Pt=q.forwardRef(({className:e,...t},o)=>(0,it.jsx)(f.SubContent,{ref:o,className:h("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}));Pt.displayName=f.SubContent.displayName;var be=q.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,it.jsx)(f.Portal,{children:(0,it.jsx)(f.Content,{ref:r,sideOffset:t,className:h("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})}));be.displayName=f.Content.displayName;var he=q.forwardRef(({className:e,inset:t,...o},r)=>(0,it.jsx)(f.Item,{ref:r,className:h("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}));he.displayName=f.Item.displayName;var Mt=q.forwardRef(({className:e,children:t,checked:o,...r},n)=>(0,it.jsxs)(f.CheckboxItem,{ref:n,className:h("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,it.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,it.jsx)(f.ItemIndicator,{children:(0,it.jsx)(ce.CheckIcon,{className:"h-4 w-4"})})}),t]}));Mt.displayName=f.CheckboxItem.displayName;var Rt=q.forwardRef(({className:e,children:t,...o},r)=>(0,it.jsxs)(f.RadioItem,{ref:r,className:h("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,it.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,it.jsx)(f.ItemIndicator,{children:(0,it.jsx)(ce.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Rt.displayName=f.RadioItem.displayName;var Nt=q.forwardRef(({className:e,inset:t,...o},r)=>(0,it.jsx)(f.Label,{ref:r,className:h("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Nt.displayName=f.Label.displayName;var Tt=q.forwardRef(({className:e,...t},o)=>(0,it.jsx)(f.Separator,{ref:o,className:h("-mx-1 my-1 h-px bg-muted",e),...t}));Tt.displayName=f.Separator.displayName;var kt=({className:e,...t})=>(0,it.jsx)("span",{className:h("ml-auto text-xs tracking-widest opacity-60",e),...t});kt.displayName="DropdownMenuShortcut";var Dt=K(require("react")),O=K(require("@radix-ui/react-tooltip"));var Be=O.Provider,_e=O.Root,Ge=O.Trigger,Me=Dt.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,it.jsx)(O.Portal,{children:(0,it.jsx)(O.Content,{ref:r,sideOffset:t,className:h("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})}));Me.displayName=O.Content.displayName;var Oe=1;function Go(){return(0,it.jsx)("span",{className:"border border-[#222222]"})}function $e(){let[e]=(0,It.useLexicalComposerContext)(),t=(0,ve.useRef)(null),[o,r]=(0,ve.useState)(!1),[n,i]=(0,ve.useState)(!1),[l,a]=(0,ve.useState)(!1),[x,R]=(0,ve.useState)(!1),[k,z]=(0,ve.useState)(!1),[D,B]=(0,ve.useState)(!1),[A,S]=(0,ve.useState)(!1),[w,N]=(0,ve.useState)(!1),[d,g]=(0,ve.useState)(!1),[v,_]=(0,ve.useState)("left"),[H,ee]=(0,ve.useState)("p"),F=p=>{e.update(()=>{let L=(0,b.$getSelection)();(0,b.$isRangeSelection)(L)&&(p==="p"?(0,Fe.$setBlocksType)(L,()=>(0,b.$createParagraphNode)()):(0,Fe.$setBlocksType)(L,()=>(0,Ot.$createHeadingNode)(p)))})},$=(0,ve.useCallback)(()=>{let p=(0,b.$getSelection)();if((0,b.$isRangeSelection)(p)){a(p.hasFormat("bold")),R(p.hasFormat("italic")),z(p.hasFormat("underline")),B(p.hasFormat("strikethrough")),S(p.hasFormat("subscript")),N(p.hasFormat("superscript"));let L=p.anchor.getNode(),V=L;for(;V&&!(0,b.$isParagraphNode)(V)&&V!==(0,b.$getRoot)();){let U=V.getParent();U&&(V=U)}if(V){let U=V.getFormatType();_(U||"left")}let oe=L.getTopLevelElement()?.__tag;ee(oe||"p")}},[]);(0,ve.useEffect)(()=>(0,Ht.mergeRegister)(e.registerUpdateListener(({editorState:p})=>{p.read(()=>{$()})}),e.registerCommand(b.SELECTION_CHANGE_COMMAND,(p,L)=>($(),!1),Oe),e.registerCommand(b.CAN_UNDO_COMMAND,p=>(r(p),!1),Oe),e.registerCommand(b.CAN_REDO_COMMAND,p=>(i(p),!1),Oe)),[e,$]);let W=[[{label:"Undo",icon:(0,it.jsx)(J.RotateCcw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(b.UNDO_COMMAND,void 0)},disabled:!o},{label:"Redo",icon:(0,it.jsx)(J.RotateCw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(b.UNDO_COMMAND,void 0)},disabled:!n}],[{label:"Bold",icon:(0,it.jsx)(mt,{}),onClick:()=>{e.dispatchCommand(b.FORMAT_TEXT_COMMAND,"bold")},value:"bold",active:l},{label:"Italic",icon:(0,it.jsx)(ut,{}),onClick:()=>{e.dispatchCommand(b.FORMAT_TEXT_COMMAND,"italic")},value:"italic",active:x},{label:"Underline",icon:(0,it.jsx)(ft,{}),onClick:()=>{e.dispatchCommand(b.FORMAT_TEXT_COMMAND,"underline")},value:"underline",active:k},{label:"Strikethrough",icon:(0,it.jsx)(gt,{}),onClick:()=>{e.dispatchCommand(b.FORMAT_TEXT_COMMAND,"strikethrough")},value:"strikethrough",active:D},{label:"Subscript",icon:(0,it.jsx)(bt,{}),onClick:()=>{e.dispatchCommand(b.FORMAT_TEXT_COMMAND,"subscript")},value:"subscript",active:A},{label:"Superscript",icon:(0,it.jsx)(ht,{}),onClick:()=>{e.dispatchCommand(b.FORMAT_TEXT_COMMAND,"superscript")},value:"superscript",active:w}]],te=[{label:"Left Align",direction:"left",icon:(0,it.jsx)(J.AlignLeft,{width:15,height:15}),onClick:()=>{e.dispatchCommand(b.FORMAT_ELEMENT_COMMAND,"left")}},{label:"Center Align",direction:"center",icon:(0,it.jsx)(J.AlignCenter,{width:15,height:15}),onClick:()=>{e.dispatchCommand(b.FORMAT_ELEMENT_COMMAND,"center")}},{label:"Right Align",direction:"right",icon:(0,it.jsx)(J.AlignRight,{width:15,height:15}),onClick:()=>{e.dispatchCommand(b.FORMAT_ELEMENT_COMMAND,"right")}},{label:"Justify Align",direction:"justify",icon:(0,it.jsx)(J.AlignJustify,{width:15,height:15}),onClick:()=>{e.dispatchCommand(b.FORMAT_ELEMENT_COMMAND,"justify")}}],ne=[{label:"Normal Text",value:"p",icon:(0,it.jsx)(vt,{}),onClick:()=>F("p")},{label:"Heading 1",value:"h1",icon:(0,it.jsx)(xt,{}),onClick:()=>F("h1")},{label:"Heading 2",value:"h2",icon:(0,it.jsx)(wt,{}),onClick:()=>F("h2")},{label:"Heading 3",value:"h3",icon:(0,it.jsx)(yt,{}),onClick:()=>F("h3")},{label:"Heading 4",value:"h4",icon:(0,it.jsx)(Ct,{}),onClick:()=>F("h4")},...[{label:"Unordered List",value:"ul",icon:(0,it.jsx)(J.List,{width:15,height:15}),onClick:()=>{e.dispatchCommand(Ne.INSERT_UNORDERED_LIST_COMMAND,void 0)}},{label:"Ordered List",value:"ol",icon:(0,it.jsx)(J.ListOrdered,{width:15,height:15}),onClick:()=>{e.dispatchCommand(Ne.INSERT_ORDERED_LIST_COMMAND,void 0)}}]],de=[{label:"Insert Image",icon:(0,it.jsx)(J.ImageUp,{width:15,height:15}),onClick:()=>{g(!0)},disabled:!1}];return(0,it.jsx)("div",{className:"flex justify-between border border-[#222222] py-2 px-2",children:(0,it.jsxs)("div",{className:"flex gap-2 ",ref:t,children:[W.map((p,L)=>(0,it.jsxs)(ve.Fragment,{children:[(0,it.jsx)("div",{className:"flex items-center gap-2",children:p.map((V,oe)=>(0,it.jsx)("div",{role:"button","aria-disabled":V.disabled||!1,onClick:V.onClick,className:h("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]",V.active&&"bg-[#3c3c3c]"),"aria-label":V.label,children:(0,it.jsx)(Be,{children:(0,it.jsxs)(_e,{children:[(0,it.jsx)(Ge,{className:"text-[#b5b5b5]",children:V.icon}),(0,it.jsx)(Me,{children:(0,it.jsx)("p",{children:V.label})})]})})},oe))}),(0,it.jsx)(Go,{})]},`toolbar-option-${p.length}-${L}`)),(0,it.jsxs)(Se,{children:[(0,it.jsxs)(Pe,{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:[te.find(p=>p.direction===v)?.icon,te.find(p=>p.direction===v)?.label,(0,it.jsx)(J.ChevronDown,{width:15,height:15})]}),(0,it.jsx)(be,{className:"bg-black hover:bg-black",children:te.map((p,L)=>(0,it.jsxs)(he,{onClick:p.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,it.jsx)("span",{children:p.icon}),(0,it.jsx)("span",{children:p.label})]},`${p.label}-${L}`))})]}),(0,it.jsxs)(Se,{children:[(0,it.jsxs)(Pe,{className:"flex items-center justify-center gap-2 px-2 py-1 rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c] text-[#b5b5b5] text-xs",children:[ne.find(p=>p.value===H)?.icon,ne.find(p=>p.value===H)?.label,(0,it.jsx)(J.ChevronDown,{width:15,height:15})]}),(0,it.jsx)(be,{className:"bg-black hover:bg-black",children:ne.map((p,L)=>(0,it.jsxs)(he,{onClick:p.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,it.jsx)("span",{children:p.icon}),(0,it.jsx)("span",{children:p.label})]},`heading-option-${p.label}-${L}`))})]})]})})}var Oo=({setValue:e,value:t,name:o,editable:r=!0})=>{let[n]=(0,$t.useLexicalComposerContext)(),i=l=>{l.read(()=>{let a=l.toJSON();e?.(()=>a)})};return(0,ve.useEffect)(()=>{n.setEditable(r)},[r]),(0,ve.useEffect)(()=>{t&&n.update(()=>{n.setEditorState(n.parseEditorState(t))})},[]),(0,it.jsx)("div",{className:"w-full",children:(0,it.jsxs)("div",{className:" ",children:[r&&(0,it.jsx)($e,{}),(0,it.jsxs)("div",{className:"px-4 my-4 border-l border-[#222222]",children:[(0,it.jsx)(_t.RichTextPlugin,{contentEditable:(0,it.jsx)(Et.ContentEditable,{name:o,className:"focus:outline-none focus:ring-0 focus-visible:outline-none min-h-40"}),ErrorBoundary:zt.LexicalErrorBoundary}),r&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Bt.HistoryPlugin,{}),(0,it.jsx)(At.AutoFocusPlugin,{}),(0,it.jsx)(Gt.ListPlugin,{}),(0,it.jsx)(Ft.OnChangePlugin,{onChange:i})]})]})]})})},Fo=({setValue:e,value:t,name:o,editable:r=!0})=>(0,it.jsx)(Vt.LexicalComposer,{initialConfig:{namespace:"Lexical editor",nodes:[Ne.ListNode,Ne.ListItemNode,Ot.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,it.jsx)(Oo,{value:t,setValue:e,name:o,editable:r})}),Ut=Fo;function $o({document:e,onSave:t,mode:o="edit",onCancel:r,availableDocuments:n=[],knowledgeContexts:i=[]}){let[l,a]=(0,ve.useState)({...e,updatedAt:new Date}),[x,R]=(0,ve.useState)(l.richTextContent);(0,ve.useEffect)(()=>{a(e)},[e]);let k=()=>{let d=new Set,g=new Set;return i.forEach(v=>{v.menuConfig.groupBy.forEach(_=>d.add(_))}),n.forEach(v=>{v.metadata&&Object.keys(v.metadata).forEach(_=>g.add(_))}),{contextKeys:Array.from(d).sort(),documentKeys:Array.from(g).sort(),allKeys:Array.from(new Set([...d,...g])).sort()}},z=d=>{let g=new Set;return n.forEach(v=>{v.metadata?.[d]&&g.add(String(v.metadata[d]))}),Array.from(g).sort()},D=k(),B=()=>{t({...l,richTextContent:x})},A=(d,g)=>{a(v=>({...v,metadata:{...v.metadata,[d]:g}}))},S=(d,g)=>{g==="__custom__"?A(d,""):A(d,g)},w=()=>{A("","")},N=d=>{a(g=>{let v={...g.metadata};return delete v[d],{...g,metadata:v}})};return(0,it.jsxs)(Wt.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,it.jsxs)("div",{className:"border-b border-border bg-card p-8",children:[(0,it.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-6",children:[(0,it.jsxs)("div",{className:"flex items-center gap-3",children:[(0,it.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-primary/10 border border-primary/20",children:(0,it.jsx)(J.Edit3,{className:"h-6 w-6 text-primary"})}),(0,it.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:o==="edit"?"Edit Document":"Create Document"})]}),(0,it.jsxs)("div",{className:"flex gap-2",children:[(0,it.jsxs)(se,{variant:"outline",size:"sm",onClick:r,className:"gap-2",children:[(0,it.jsx)(J.X,{className:"h-4 w-4"}),"Cancel"]}),(0,it.jsxs)(se,{size:"sm",onClick:B,className:"gap-2",children:[(0,it.jsx)(J.Save,{className:"h-4 w-4"}),"Save Changes"]})]})]}),(0,it.jsxs)("div",{className:"space-y-4",children:[(0,it.jsxs)("div",{children:[(0,it.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Title"}),(0,it.jsx)(ue,{value:l.title,onChange:d=>a(g=>({...g,title:d.target.value})),className:"text-lg font-semibold",placeholder:"Document title..."})]}),(0,it.jsxs)("div",{children:[(0,it.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Description"}),(0,it.jsx)(we,{value:l.description||"",onChange:d=>a(g=>({...g,description:d.target.value})),placeholder:"Document description...",rows:2})]}),(0,it.jsxs)("div",{children:[(0,it.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,it.jsxs)("div",{children:[(0,it.jsx)("label",{className:"block text-sm font-medium text-foreground",children:"Metadata"}),D.contextKeys.length>0&&(0,it.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Suggested: ",D.contextKeys.slice(0,4).join(", "),D.contextKeys.length>4&&` +${D.contextKeys.length-4}`]})]}),(0,it.jsxs)(se,{type:"button",variant:"outline",size:"sm",onClick:w,className:"gap-1 h-8",children:[(0,it.jsx)(J.Plus,{className:"h-3 w-3"}),"Add"]})]}),l.metadata&&Object.keys(l.metadata).length>0?(0,it.jsx)("div",{className:"space-y-2",children:Object.entries(l.metadata).map(([d,g],v)=>{let _=z(d);return(0,it.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,it.jsx)(ue,{value:d,onChange:H=>{let ee=H.target.value||"",F=l.metadata?.[d];a($=>{let W={...$.metadata};return delete W[d],ee&&(W[ee]=F||""),{...$,metadata:W}})},placeholder:"Key",className:"w-32 h-8 text-sm",list:`metadata-keys-${d}`}),(0,it.jsx)("datalist",{id:`metadata-keys-${d}`,children:D.allKeys.map(H=>(0,it.jsx)("option",{value:H},H))}),(0,it.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),_.length>0?(0,it.jsxs)(Ie,{value:String(g||""),onValueChange:H=>S(d,H),children:[(0,it.jsx)(ye,{className:"flex-1 h-8 text-sm",children:(0,it.jsx)(He,{placeholder:"Value"})}),(0,it.jsxs)(Ce,{children:[_.map(H=>(0,it.jsx)(le,{value:H,children:H},H)),(0,it.jsx)(le,{value:"__custom__",children:(0,it.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,it.jsx)(ue,{value:String(g||""),onChange:H=>A(d,H.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),(0,it.jsx)(se,{type:"button",variant:"ghost",size:"sm",onClick:()=>N(d),className:"h-8 w-8 p-0 text-muted-foreground hover:text-destructive",children:(0,it.jsx)(J.X,{className:"h-3 w-3"})})]},`metadata-key-${v}`)})}):(0,it.jsx)("div",{className:"text-center py-3 border border-dashed border-border rounded-lg bg-muted/20",children:(0,it.jsx)("p",{className:"text-xs text-muted-foreground",children:'No metadata \u2022 Click "Add" to create fields'})})]}),(0,it.jsxs)("div",{className:"flex items-center gap-2",children:[(0,it.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Format"}),(0,it.jsxs)(Ie,{value:l.format,onValueChange:d=>a(g=>({...g,format:d})),children:[(0,it.jsx)(ye,{className:"flex-1 h-8 text-sm",children:(0,it.jsx)(He,{placeholder:"Format"})}),(0,it.jsxs)(Ce,{children:[(0,it.jsx)(le,{value:"markdown",children:"Markdown"}),(0,it.jsx)(le,{value:"richText",children:"Rich Text"})]})]})]})]})]}),(0,it.jsx)("div",{className:"flex-1 ",children:(0,it.jsxs)("div",{className:"p-8",children:[(0,it.jsx)("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),l.format==="richText"?(0,it.jsx)(Ut,{setValue:R,value:x,name:"richTextContent"}):(0,it.jsx)(we,{value:l.content||"",onChange:d=>a(g=>({...g,content:d.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}0&&(module.exports={DocumentEdit});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../chunk-UZYTSIUY.mjs";import"../../chunk-RBJOTC2X.mjs";import"../../chunk-EUMMM454.mjs";import"../../chunk-IPRG56MW.mjs";import"../../chunk-HFEN3KJC.mjs";import"../../chunk-L2UJOICL.mjs";import"../../chunk-T3F3RQIC.mjs";import"../../chunk-UP67R64J.mjs";import"../../chunk-6QERRKM4.mjs";import"../../chunk-VSU7LYXZ.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-O5P35LEY.mjs";import"../../chunk-7GSXNSLD.mjs";import"../../chunk-4UIARERB.mjs";import"../../chunk-D4IMQTVU.mjs";import"../../chunk-YNCJATT7.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-EGEO3FNE.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-CV7PH2KH.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as DocumentEdit};
|