cortex-react-components 2.26.2 → 2.26.4
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-GTZJWMZR.mjs → chunk-5MMNC65L.mjs} +1 -1
- package/dist/{chunk-GHOL5L32.mjs → chunk-7BYNW77I.mjs} +1 -1
- package/dist/{chunk-C4RWEPVF.mjs → chunk-7MPZOMXK.mjs} +1 -1
- package/dist/{chunk-75F3LJMX.mjs → chunk-AABB4TFO.mjs} +1 -1
- package/dist/chunk-AN744MXS.mjs +9 -0
- package/dist/{chunk-RGOKBIQ5.mjs → chunk-CC57QZMB.mjs} +1 -1
- package/dist/{chunk-LJXTXROJ.mjs → chunk-EM4CGGGV.mjs} +1 -1
- package/dist/{chunk-AJQHGVZ5.mjs → chunk-FB5PBKLV.mjs} +1 -1
- package/dist/{chunk-TVTTUSWM.mjs → chunk-FBEHQRZ4.mjs} +1 -1
- package/dist/{chunk-2SQVMYDK.mjs → chunk-FR4X2HHQ.mjs} +1 -1
- package/dist/{chunk-KQB6MFFS.mjs → chunk-HLRMUJPL.mjs} +1 -1
- package/dist/{chunk-2HKAJ4TZ.mjs → chunk-HTS3KCJL.mjs} +1 -1
- package/dist/{chunk-3Y7QG6VP.mjs → chunk-IISYRLNU.mjs} +1 -1
- package/dist/{chunk-6UDBIRMT.mjs → chunk-IO5ZSALG.mjs} +1 -1
- package/dist/{chunk-NINFDOV5.mjs → chunk-ITNR7N47.mjs} +1 -1
- package/dist/{chunk-EM3T2XYC.mjs → chunk-J3VJUPR7.mjs} +1 -1
- package/dist/{chunk-FE7ZGUPU.mjs → chunk-JU4TJYSZ.mjs} +1 -1
- package/dist/{chunk-RJGYVDOU.mjs → chunk-MU47F4UR.mjs} +1 -1
- package/dist/{chunk-WIRQ5IRT.mjs → chunk-NDBSSX6Q.mjs} +1 -1
- package/dist/{chunk-3MEOSYPN.mjs → chunk-NZJ7VVG6.mjs} +1 -1
- package/dist/{chunk-XDELWNND.mjs → chunk-OP6ZWZIM.mjs} +1 -1
- package/dist/{chunk-ZEALRBXW.mjs → chunk-OVZKO3Z5.mjs} +1 -1
- package/dist/{chunk-3HNU2NYP.mjs → chunk-QDP657UR.mjs} +1 -1
- package/dist/{chunk-36UEU4CT.mjs → chunk-RWHPQAWZ.mjs} +1 -1
- package/dist/{chunk-2BRDNDUB.mjs → chunk-SME3D72Q.mjs} +1 -1
- package/dist/{chunk-3NRXQBBS.mjs → chunk-TIIYFAV6.mjs} +1 -1
- package/dist/{chunk-7R47MHQE.mjs → chunk-TQKXHMD7.mjs} +1 -1
- package/dist/{chunk-CXOVEABI.mjs → chunk-VNKGAW4K.mjs} +1 -1
- package/dist/{chunk-GVDM4RRN.mjs → chunk-WRCRZUGO.mjs} +1 -1
- package/dist/{chunk-5MWZTJYP.mjs → chunk-YH72WKGC.mjs} +1 -1
- package/dist/{chunk-K4DQ5KUH.mjs → chunk-ZA423OPA.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/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.js +6 -6
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.js +6 -6
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/index.js +6 -6
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/Foundary/MainPage.mjs +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.js +6 -6
- package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
- package/dist/components/Foundary/Views/index.js +6 -6
- package/dist/components/Foundary/Views/index.mjs +1 -1
- package/dist/components/Foundary/file-edit.js +6 -6
- package/dist/components/Foundary/file-edit.mjs +1 -1
- package/dist/components/Foundary/index.js +6 -6
- package/dist/components/Foundary/index.mjs +1 -1
- package/dist/components/Foundary/types.d.ts +18 -7
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/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/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/Projects/FileView.js +6 -6
- package/dist/components/Projects/FileView.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.js +6 -6
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.js +6 -6
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.js +6 -6
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
- package/dist/components/Projects/TaskDetailsModal.js +6 -6
- package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
- package/dist/components/Projects/file-list.js +6 -6
- package/dist/components/Projects/file-list.mjs +1 -1
- package/dist/components/Projects/index.js +6 -6
- package/dist/components/Projects/index.mjs +1 -1
- package/dist/components/dc-temp/index.js +6 -6
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.js +19 -19
- package/dist/components/index.mjs +1 -1
- package/dist/index.js +21 -21
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-P5LSKHQC.mjs +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-IO5ZSALG.mjs";import"../../chunk-ZHBYZ4HE.mjs";import"../../chunk-AB43AQKL.mjs";import"../../chunk-HTS3KCJL.mjs";import"../../chunk-DCOFQFVJ.mjs";import"../../chunk-AN744MXS.mjs";import"../../chunk-EZC3YWSQ.mjs";import"../../chunk-VTFO5GXK.mjs";import"../../chunk-GULRIPMU.mjs";import"../../chunk-RKS7CWAP.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-BZEGLKRZ.mjs";import"../../chunk-K7N3FRGH.mjs";import"../../chunk-6SWKEZN6.mjs";import"../../chunk-DFIXTV2M.mjs";import"../../chunk-UVHMI3PU.mjs";import"../../chunk-Q5Q3DJWU.mjs";import"../../chunk-U5PBLRRV.mjs";import"../../chunk-4QRKVSTE.mjs";import"../../chunk-E4TE4NV6.mjs";import"../../chunk-JFFTEK6Z.mjs";import"../../chunk-JHNVX4UB.mjs";import"../../chunk-7BXIU4ZM.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-76M7JE4D.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-OYZDAMCS.mjs";import"../../chunk-5NRGSTPV.mjs";import"../../chunk-ZFUP5NVF.mjs";import"../../chunk-4UIARERB.mjs";import"../../chunk-D4IMQTVU.mjs";import"../../chunk-7GSXNSLD.mjs";import"../../chunk-YNCJATT7.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-QTW33JYG.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 TaskDetailsModal};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";"use client";var So=Object.create;var He=Object.defineProperty;var ko=Object.getOwnPropertyDescriptor;var Io=Object.getOwnPropertyNames;var Eo=Object.getPrototypeOf,Lo=Object.prototype.hasOwnProperty;var Ho=(e,t)=>{for(var o in t)He(e,o,{get:t[o],enumerable:!0})},gt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Io(t))!Lo.call(e,n)&&n!==o&&He(e,n,{get:()=>t[n],enumerable:!(r=ko(t,n))||r.enumerable});return e};var $=(e,t,o)=>(o=e!=null?So(Eo(e)):{},gt(t||!e||!e.__esModule?He(o,"default",{value:e,enumerable:!0}):o,e)),Ao=e=>gt(He({},"__esModule",{value:!0}),e);var Gr={};Ho(Gr,{FileList:()=>$r});module.exports=Ao(Gr);var ut=require("motion/react"),ve=require("lucide-react");var Dt=require("clsx");var je="-",Vo=e=>{let t=zo(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{let s=a.split(je);return s[0]===""&&s.length!==1&&s.shift(),vt(s,t)||Fo(a)},getConflictingClassGroupIds:(a,s)=>{let c=o[a]||[];return s&&r[a]?[...c,...r[a]]:c}}},vt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?vt(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let i=e.join(je);return t.validators.find(({validator:a})=>a(i))?.classGroupId},ht=/^\[(.+)\]$/,Fo=e=>{if(ht.test(e)){let t=ht.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},zo=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return _o(Object.entries(e.classGroups),o).forEach(([i,a])=>{Ze(a,r,i,t)}),r},Ze=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let i=n===""?t:bt(t,n);i.classGroupId=o;return}if(typeof n=="function"){if(Oo(n)){Ze(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([i,a])=>{Ze(a,bt(t,i),o,r)})})},bt=(e,t)=>{let o=e;return t.split(je).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Oo=e=>e.isThemeGetter,_o=(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(([a,s])=>[t+a,s])):i);return[o,n]}):e,Bo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(i,a)=>{o.set(i,a),t++,t>e&&(t=0,r=o,o=new Map)};return{get(i){let a=o.get(i);if(a!==void 0)return a;if((a=r.get(i))!==void 0)return n(i,a),a},set(i,a){o.has(i)?o.set(i,a):n(i,a)}}},xt="!",Uo=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],i=t.length,a=s=>{let c=[],f=0,h=0,C;for(let l=0;l<s.length;l++){let y=s[l];if(f===0){if(y===n&&(r||s.slice(l,l+i)===t)){c.push(s.slice(h,l)),h=l+i;continue}if(y==="/"){C=l;continue}}y==="["?f++:y==="]"&&f--}let m=c.length===0?s:s.substring(h),b=m.startsWith(xt),g=b?m.substring(1):m,M=C&&C>h?C-h:void 0;return{modifiers:c,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:M}};return o?s=>o({className:s,parseClassName:a}):a},$o=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},Go=e=>({cache:Bo(e.cacheSize),parseClassName:Uo(e),...Vo(e)}),Wo=/\s+/,Ko=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,i=[],a=e.trim().split(Wo),s="";for(let c=a.length-1;c>=0;c-=1){let f=a[c],{modifiers:h,hasImportantModifier:C,baseClassName:m,maybePostfixModifierPosition:b}=o(f),g=!!b,M=r(g?m.substring(0,b):m);if(!M){if(!g){s=f+(s.length>0?" "+s:s);continue}if(M=r(m),!M){s=f+(s.length>0?" "+s:s);continue}g=!1}let l=$o(h).join(":"),y=C?l+xt:l,P=y+M;if(i.includes(P))continue;i.push(P);let O=n(M,g);for(let T=0;T<O.length;++T){let _=O[T];i.push(y+_)}s=f+(s.length>0?" "+s:s)}return s};function Zo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=yt(t))&&(r&&(r+=" "),r+=o);return r}var yt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=yt(e[r]))&&(o&&(o+=" "),o+=t);return o};function jo(e,...t){let o,r,n,i=a;function a(c){let f=t.reduce((h,C)=>C(h),e());return o=Go(f),r=o.cache.get,n=o.cache.set,i=s,s(c)}function s(c){let f=r(c);if(f)return f;let h=Ko(c,o);return n(c,h),h}return function(){return i(Zo.apply(null,arguments))}}var S=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},wt=/^\[(?:([a-St-]+):)?(.+)\]$/i,Jo=/^\St+\/\St+$/,Xo=new Set(["px","full","screen"]),qo=/^(\St+(\.\St+)?)?(xs|sm|md|lg|xl)$/,Yo=/\St+(%|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$/,Qo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,er=/^(inset_)?-?((\St+)?\.?(\St+)[a-St]+|0)_-?((\St+)?\.?(\St+)[a-St]+|0)/,tr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Q=e=>ue(e)||Xo.has(e)||Jo.test(e),ne=e=>fe(e,"length",cr),ue=e=>!!e&&!Number.isNaN(Number(e)),Ke=e=>fe(e,"number",ue),ye=e=>!!e&&Number.isInteger(Number(e)),or=e=>e.endsWith("%")&&ue(e.slice(0,-1)),v=e=>wt.test(e),ie=e=>qo.test(e),rr=new Set(["length","size","percentage"]),nr=e=>fe(e,rr,Ct),ir=e=>fe(e,"position",Ct),ar=new Set(["image","url"]),sr=e=>fe(e,ar,pr),lr=e=>fe(e,"",dr),we=()=>!0,fe=(e,t,o)=>{let r=wt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},cr=e=>Yo.test(e)&&!Qo.test(e),Ct=()=>!1,dr=e=>er.test(e),pr=e=>tr.test(e);var mr=()=>{let e=S("colors"),t=S("spacing"),o=S("blur"),r=S("brightness"),n=S("borderColor"),i=S("borderRadius"),a=S("borderSpacing"),s=S("borderWidth"),c=S("contrast"),f=S("grayscale"),h=S("hueRotate"),C=S("invert"),m=S("gap"),b=S("gradientColorStops"),g=S("gradientColorStopPositions"),M=S("inset"),l=S("margin"),y=S("opacity"),P=S("padding"),O=S("saturate"),T=S("scale"),_=S("sepia"),re=S("skew"),se=S("space"),Z=S("translate"),le=()=>["auto","contain","none"],xe=()=>["auto","hidden","clip","visible","scroll"],ce=()=>["auto",v,t],R=()=>[v,t],pe=()=>["",Q,ne],me=()=>["auto",ue,v],p=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],E=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",v],ft=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[ue,v];return{cacheSize:500,separator:":",theme:{colors:[we],spacing:[Q,ne],blur:["none","",ie,v],brightness:Y(),borderColor:[e],borderRadius:["none","","full",ie,v],borderSpacing:R(),borderWidth:pe(),contrast:Y(),grayscale:B(),hueRotate:Y(),invert:B(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[or,ne],inset:ce(),margin:ce(),opacity:Y(),padding:R(),saturate:Y(),scale:Y(),sepia:B(),skew:Y(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",v]}],container:["container"],columns:[{columns:[ie]}],"break-after":[{"break-after":ft()}],"break-before":[{"break-before":ft()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...p(),v]}],overflow:[{overflow:xe()}],"overflow-x":[{"overflow-x":xe()}],"overflow-y":[{"overflow-y":xe()}],overscroll:[{overscroll:le()}],"overscroll-x":[{"overscroll-x":le()}],"overscroll-y":[{"overscroll-y":le()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[M]}],"inset-x":[{"inset-x":[M]}],"inset-y":[{"inset-y":[M]}],start:[{start:[M]}],end:[{end:[M]}],top:[{top:[M]}],right:[{right:[M]}],bottom:[{bottom:[M]}],left:[{left:[M]}],visibility:["visible","invisible","collapse"],St:[{St:["auto",ye,v]}],basis:[{basis:ce()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",v]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",ye,v]}],"grid-cols":[{"grid-cols":[we]}],"col-start-end":[{col:["auto",{span:["full",ye,v]},v]}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":[we]}],"row-start-end":[{row:["auto",{span:[ye,v]},v]}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",v]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",v]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],pe:[{pe:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],m:[{m:[l]}],mx:[{mx:[l]}],my:[{my:[l]}],ms:[{ms:[l]}],me:[{me:[l]}],mt:[{mt:[l]}],mr:[{mr:[l]}],mb:[{mb:[l]}],ml:[{ml:[l]}],"space-x":[{"space-x":[se]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[se]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",v,t]}],"min-w":[{"min-w":[v,t,"min","max","fit"]}],"max-w":[{"max-w":[v,t,"none","full","min","max","fit","prose",{screen:[ie]},ie]}],h:[{h:[v,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[v,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[v,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[v,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ie,ne]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ke]}],"font-family":[{font:[we]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",v]}],"line-clamp":[{"line-clamp":["none",ue,Ke]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Q,v]}],"list-image":[{"list-image":["none",v]}],"list-style-type":[{list:["none","disc","decimal",v]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...E(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Q,ne]}],"underline-offset":[{"underline-offset":["auto",Q,v]}],"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:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",v]}],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",v]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...p(),ir]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",nr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},sr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-St":[{"rounded-St":[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:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...E(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:E()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...E()]}],"outline-offset":[{"outline-offset":[Q,v]}],"outline-w":[{outline:[Q,ne]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Q,ne]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ie,lr]}],"shadow-color":[{shadow:[we]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",ie,v]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[C]}],saturate:[{saturate:[O]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[O]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",v]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",v]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",v]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[ye,v]}],"translate-x":[{"translate-x":[Z]}],"translate-y":[{"translate-y":[Z]}],"skew-x":[{"skew-x":[re]}],"skew-y":[{"skew-y":[re]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",v]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",v]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",v]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Q,ne,Ke]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-St","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-St"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-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 Nt=jo(mr);function N(...e){return Nt((0,Dt.clsx)(e))}var Tt=require("@radix-ui/react-slot"),Mt=require("class-variance-authority"),Pt=$(require("react")),St=require("react/jsx-runtime"),Rt=(0,Mt.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"}}}),j=Pt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...n},i)=>(0,St.jsx)(e?Tt.Slot:"button",{className:N(Rt({className:t,size:o,variant:r})),ref:i,...n}));j.displayName="Button";var Ce=$(require("react")),A=$(require("@radix-ui/react-dialog"));var Ae=A.Root;var Je=A.Portal;var Ve=Ce.forwardRef(({className:e,...t},o)=>(0,St.jsx)(A.Overlay,{ref:o,className:N("fixed inset-0 St-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Ve.displayName=A.Overlay.displayName;var Xe=Ce.forwardRef(({className:e,children:t,...o},r)=>(0,St.jsxs)(Je,{children:[(0,St.jsx)(Ve,{}),(0,St.jsxs)(A.Content,{ref:r,className:N("fixed left-[50%] top-[50%] St-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,St.jsxs)(A.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,St.jsx)(ve.St,{className:"h-4 w-4"}),(0,St.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Xe.displayName=A.Content.displayName;var qe=({className:e,...t})=>(0,St.jsx)("div",{className:N("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});qe.displayName="DialogHeader";var ur=({className:e,...t})=>(0,St.jsx)("div",{className:N("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ur.displayName="DialogFooter";var Ne=Ce.forwardRef(({className:e,...t},o)=>(0,St.jsx)(A.Title,{ref:o,className:N("text-lg font-semibold leading-none tracking-tight",e),...t}));Ne.displayName=A.Title.displayName;var fr=Ce.forwardRef(({className:e,...t},o)=>(0,St.jsx)(A.Description,{ref:o,className:N("text-sm text-muted-foreground",e),...t}));fr.displayName=A.Description.displayName;var Po=$(require("@radix-ui/react-dialog"));var oe=require("react");var It=$(require("react")),De=It.forwardRef(({className:e,...t},o)=>(0,St.jsx)("textarea",{className:N("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));De.displayName="Textarea";var Lt=$(require("react"));var ge=Lt.forwardRef(({className:e,type:t,...o},r)=>(0,St.jsx)("input",{type:t,className:N("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));ge.displayName="Input";var At=$(require("react")),Ye=$(require("@radix-ui/react-label"));var gr=(0,Mt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Qe=At.forwardRef(({className:e,...t},o)=>(0,St.jsx)(Ye.Root,{ref:o,className:N(gr(),e),...t}));Qe.displayName=Ye.Root.displayName;var Ot=({fieldName:e,value:t,label:o,multiline:r=!1,onSave:n,className:i="",disabled:a=!1})=>{let[s,c]=(0,oe.useState)(!1),[f,h]=(0,oe.useState)(""),C=()=>{a||(c(!0),h(t))},m=async()=>{f!==t&&await n(e,f),c(!1)},b=g=>{g.key==="Enter"&&!r||g.key==="Enter"&&g.ctrlKey&&r?m():g.key==="Escape"&&(c(!1),h(""))};return(0,St.jsxs)("div",{className:`space-y-2 ${i}`,children:[(0,St.jsx)(Qe,{children:o}),s?r?(0,St.jsx)(De,{value:f,onChange:g=>h(g.target.value),onBlur:m,onKeyDown:b,autoFocus:!0,rows:4,className:"resize-none"}):(0,St.jsx)(ge,{value:f,onChange:g=>h(g.target.value),onBlur:m,onKeyPress:b,autoFocus:!0,className:"text-lg font-medium"}):(0,St.jsxs)("div",{onClick:C,className:`${a?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 p-2 rounded border border-transparent hover:border-border transition-colors group ${r?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,St.jsx)("span",{className:r?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!a&&(0,St.jsx)(ve.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var uo=require("@payloadcms/richtext-lexical/lexical/react/LexicalAutoFocusPlugin"),fo=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposer"),go=require("@payloadcms/richtext-lexical/lexical/react/LexicalContentEditable"),ho=require("@payloadcms/richtext-lexical/lexical/react/LexicalErrorBoundary"),bo=require("@payloadcms/richtext-lexical/lexical/react/LexicalHistoryPlugin"),vo=require("@payloadcms/richtext-lexical/lexical/react/LexicalRichTextPlugin"),xo=require("@payloadcms/richtext-lexical/lexical/react/LexicalListPlugin"),Ge=require("@payloadcms/richtext-lexical/lexical/list"),yo=require("@payloadcms/richtext-lexical/lexical/rich-text"),wo=require("@payloadcms/richtext-lexical/lexical/react/LexicalOnChangePlugin");var po=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposerContext"),Ie=require("@payloadcms/richtext-lexical/lexical/utils"),x=require("@payloadcms/richtext-lexical/lexical"),pt=require("@payloadcms/richtext-lexical/lexical/selection");var Xt=require("@radix-ui/react-dialog"),_e=require("@payloadcms/richtext-lexical/client");var ot=$(require("bson-objectid"));var Bt=require("@payloadcms/ui");var _t=$(require("react")),J=$(require("@radix-ui/react-tooltip"));var Fe=J.Provider,ze=J.Root,Oe=J.Trigger,Te=_t.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,St.jsx)(J.Portal,{children:(0,St.jsx)(J.Content,{ref:r,sideOffset:t,className:N("St-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})}));Te.displayName=J.Content.displayName;var hr=e=>{let{data:{relationTo:t,value:o},nodeKey:r}=e,[n]=(0,po.useLexicalComposerContext)(),[i,a]=(0,oe.useState)(""),[s,c]=(0,oe.useState)(""),[f,h]=(0,oe.useState)(""),C=async l=>{console.log("fetchMedia",l)};(0,oe.useEffect)(()=>{typeof o=="string"?o.length===24?C(o):(a(o||""),h(M(g())),c(b()||"")):typeof o=="object"&&(a(`${process.env.NEXT_PUBLIC_API_URL}${o.url}`||""),h(M(o.filesize)),c(o.mimeType?.split("/")[1]||""))},[]);let m=(0,oe.useCallback)(()=>{n.update(()=>{(0,$t.$getNodeByKey)(r)?.remove()})},[n,r]),b=()=>{let l=e.data.value;return typeof l=="string"?l.split(";base64")[0]?.split("image/")[1]:""},g=()=>{let l=e.data.value;if(typeof l=="string"){let y=l.split(",")[1]?.length||0;return 4*Math.ceil(y/3)*.5624896334383812/1e3}return 0};function M(l){if(l>=1e6){let P=l/1e6;return`${P>=10?Math.round(P).toString():P.toFixed(1)} MB`}return`${Math.floor(l/1e3)} KB`}return(0,St.jsx)("div",{className:"my-2",contentEditable:!1,children:(0,St.jsxs)("div",{className:"border border-slate-800 rounded-xl overflow-clip w-60 flex flex-col gap-2 bg-[#222222]",children:[(0,St.jsxs)("div",{className:"flex gap-2 border-b border-b-slate-100/10",children:[(0,St.jsx)("div",{className:"flex-1",children:e.data.value?(0,St.jsx)("img",{className:"object-cover m-0 w-full min-w-[115px] min-h-[105px]","data-lexical-upload-id":o,"data-lexical-upload-relation-to":t,src:i}):(0,St.jsx)(Bt.File,{})}),(0,St.jsx)(Fe,{children:(0,St.jsxs)(ze,{children:[(0,St.jsxs)(Oe,{className:"flex-1 flex justify-center items-center text-[#b5b5b5]",children:[(0,St.jsx)("span",{className:"font-medium text-sm",children:"Media"}),(0,St.jsx)("button",{onClick:l=>{l.preventDefault(),m()},className:"flex-1 flex justify-center items-center",children:(0,St.jsx)(ve.St,{width:24,height:24,strokeWidth:1})})]}),(0,St.jsx)(Te,{children:(0,St.jsx)("span",{children:"Remove image"})})]})})]}),(0,St.jsxs)("div",{className:"flex items-center justify-center gap-4 py-3 flex-1 text-xs font-bold",children:[(0,St.jsx)("span",{className:"",children:s?.toLocaleUpperCase()}),(0,St.jsx)("span",{children:f})]})]})})},Wt=hr;function br(e){if(e.hasAttribute("data-lexical-upload-relation-to")&&e.hasAttribute("data-lexical-upload-id")){let o=e.getAttribute("data-lexical-upload-id");if(o)return{node:he({fields:{},relationTo:"media",value:o})}}return e.src.startsWith("file:///"),null}var Me=class extends _e.UploadNode{static importDOM(){return{img:()=>({conversion:br,priority:0})}}static importJSON(t){t.version===1&&t?.value?.id&&(t.value=t.value.id),t.version===2&&!t?.id&&(t.id=new ot.default().toHexString(),t.version=3);let o={id:t.id??new ot.default().toHexString(),fields:t.fields,relationTo:"media",value:t.value},r=he(o);return r.setFormat?.(t.format),r}decorate(){return(0,St.jsx)(Wt,{data:this.__data,nodeKey:this.getKey()})}};function he(e){return new Me({data:e})}var vr=typeof window<"St"&&typeof window.document<"St"&&typeof window.document.createElement<"St",xr=e=>vr?(e||window).getSelection():null,In=(0,x.createCommand)("INSERT_UPLOAD_WITH_DRAWER_COMMAND"),rt=(0,x.createCommand)("INSERT_UPLOAD_COMMAND");function qt({activeEditor:e,onClose:t,isOpen:o=!1}){let r=(0,oe.useRef)(!1),[n,i]=(0,oe.useState)(!0),[a,s]=(0,oe.useState)(""),[c,f]=(0,oe.useState)(""),[h,C]=(0,oe.useState)(!1),[m,b]=(0,oe.useState)("left"),g=a==="",M=T=>{C(T.target.checked)},l=T=>{b(T.target.value)},y=T=>{let _=new FileReader;_.onload=function(){return typeof _.result=="string"&&s(_.result),""},T!==null&&T[0]&&_.readAsDataURL(T[0])};(0,oe.useEffect)(()=>{r.current=!1;let T=_=>{r.current=_.altKey};return document.addEventListener("keydown",T),()=>{document.removeEventListener("keydown",T)}},[e]),(0,oe.useEffect)(()=>{n||t()},[n]),(0,oe.useEffect)(()=>{i(o)},[o]);let P=({editor:T,relationTo:_,replaceNodeKey:re,value:se})=>{if(re)T.update(()=>{let Z=(0,x.$getNodeByKey)(re);Z&&Z.replace(he({id:"",fields:{},relationTo:"media",value:se}))});else{let Z=T.dispatchCommand(rt,{fields:null,relationTo:"media",value:se})}},O=()=>{P({editor:e,relationTo:"media",replaceNodeKey:null,value:{altText:c,src:a,showCaption:h,position:m}.src}),i(!1),t()};return(0,St.jsx)(Ae,{open:n,onOpenChange:T=>i(T),children:(0,St.jsxs)(Xe,{children:[(0,St.jsxs)(qe,{children:[(0,St.jsx)(Ne,{children:"Upload Image"}),(0,St.jsx)(Xt.DialogDescription,{children:"Description"})]}),(0,St.jsxs)("div",{className:"",children:[(0,St.jsx)("div",{style:{marginBottom:"1em"},children:(0,St.jsx)(ge,{type:"file",onChange:T=>y(T.target.files),accept:"image/*","data-test-id":"image-modal-file-upload"})}),(0,St.jsx)("div",{style:{marginBottom:"1em"},children:(0,St.jsx)(ge,{"aria-label":"Alt Text",placeholder:"Descriptive alternative text",onChange:T=>f(T.currentTarget.value),value:c,"data-test-id":"image-modal-alt-text-input"})}),(0,St.jsx)(j,{"data-test-id":"image-modal-file-upload-btn",disabled:g,onClick:()=>O(),children:"Confirm"})]})]})})}function nt({captionsEnabled:e}){let[t]=(0,po.useLexicalComposerContext)();return(0,oe.useEffect)(()=>{if(!t.hasNodes([_e.UploadNode]))throw new Error("ImagesPlugin: ImageNode not registered on editor");return(0,Ie.mergeRegister)(t.registerCommand(x.DRAGSTART_COMMAND,o=>yr(o),x.COMMAND_PRIORITY_HIGH),t.registerCommand(x.DRAGOVER_COMMAND,o=>wr(o),x.COMMAND_PRIORITY_LOW),t.registerCommand(x.DROP_COMMAND,o=>Cr(o,t),x.COMMAND_PRIORITY_HIGH))},[e,t]),null}function yr(e){if(!it())return!1;let o=e.dataTransfer;return o?(o.setData("text/plain","_"),!0):!1}function wr(e){return it()?(Yt(e)||e.preventDefault(),!0):!1}function Cr(e,t){let o=it();if(!o)return!1;if(e.preventDefault(),Yt(e)){let r=Nr(e);o.remove();let n=(0,x.$createRangeSelection)();r!=null&&n.applyDOMRange(r),(0,x.$setSelection)(n)}return!0}function it(){let e=(0,x.$getSelection)();if(!(0,x.$isNodeSelection)(e))return null;let o=e.getNodes()[0];return(0,_e.$isUploadNode)(o)?o:null}function Yt(e){let t=e.target;return!!(t&&t instanceof HTMLElement&&!t.closest("code, span.editor-image")&&t.parentElement&&t.parentElement.closest("div.ContentEditable__root"))}function Nr(e){let t,o=e.target,r=o==null?null:o.nodeType===9?o.defaultView:o.ownerDocument.defaultView,n=xr(r);if(document.caretRangeFromPoint)t=document.caretRangeFromPoint(e.clientX,e.clientY);else if(e.rangeParent&&n!==null)n.collapse(e.rangeParent,e.rangeOffset||0),t=n.getRangeAt(0);else throw Error("Cannot get the selection when dragging");return t}var Dr=()=>(0,St.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,St.jsx)("path",{St:"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"})}),Qt=Dr;var Tr=()=>(0,St.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,St.jsx)("path",{St:"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"})}),eo=Tr;var Mr=()=>(0,St.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,St.jsx)("path",{St:"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,St.jsx)("path",{St:"M5.09961 16.3H14.9016V16.95H5.09961V16.3Z",fill:"currentColor"})]}),to=Mr;var Pr=()=>(0,St.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,St.jsx)("path",{St:"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,St.jsx)("path",{St:"M4.99756 11.44H15.0026V12.19H4.99756V11.44Z",fill:"currentColor"})]}),oo=Pr;var Rr=()=>(0,St.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,St.jsx)("path",{St:"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"})}),ro=Rr;var Sr=()=>(0,St.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,St.jsx)("path",{St:"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"})}),no=Sr;var io=()=>(0,St.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,St.jsx)("path",{St:"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"})}),ao=()=>(0,St.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,St.jsx)("path",{St:"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"})}),so=()=>(0,St.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,St.jsx)("path",{St:"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"})}),lo=()=>(0,St.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,St.jsx)("path",{St:"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"})}),co=()=>(0,St.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,St.jsx)("path",{St:"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 te=$(require("react")),w=$(require("@radix-ui/react-dropdown-menu")),be=require("@radix-ui/react-icons");var Be=w.Root,Ue=w.Trigger;var kr=te.forwardRef(({className:e,inset:t,children:o,...r},n)=>(0,St.jsxs)(w.SubTrigger,{ref:n,className:N("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,St.jsx)(be.ChevronRightIcon,{className:"ml-auto"})]}));kr.displayName=w.SubTrigger.displayName;var Ir=te.forwardRef(({className:e,...t},o)=>(0,St.jsx)(w.SubContent,{ref:o,className:N("St-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}));Ir.displayName=w.SubContent.displayName;var Se=te.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,St.jsx)(w.Portal,{children:(0,St.jsx)(w.Content,{ref:r,sideOffset:t,className:N("St-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})}));Se.displayName=w.Content.displayName;var ke=te.forwardRef(({className:e,inset:t,...o},r)=>(0,St.jsx)(w.Item,{ref:r,className:N("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}));ke.displayName=w.Item.displayName;var Er=te.forwardRef(({className:e,children:t,checked:o,...r},n)=>(0,St.jsxs)(w.CheckboxItem,{ref:n,className:N("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,St.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,St.jsx)(w.ItemIndicator,{children:(0,St.jsx)(be.CheckIcon,{className:"h-4 w-4"})})}),t]}));Er.displayName=w.CheckboxItem.displayName;var Lr=te.forwardRef(({className:e,children:t,...o},r)=>(0,St.jsxs)(w.RadioItem,{ref:r,className:N("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,St.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,St.jsx)(w.ItemIndicator,{children:(0,St.jsx)(be.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Lr.displayName=w.RadioItem.displayName;var Hr=te.forwardRef(({className:e,inset:t,...o},r)=>(0,St.jsx)(w.Label,{ref:r,className:N("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Hr.displayName=w.Label.displayName;var Ar=te.forwardRef(({className:e,...t},o)=>(0,St.jsx)(w.Separator,{ref:o,className:N("-mx-1 my-1 h-px bg-muted",e),...t}));Ar.displayName=w.Separator.displayName;var Vr=({className:e,...t})=>(0,St.jsx)("span",{className:N("ml-auto text-xs tracking-widest opacity-60",e),...t});Vr.displayName="DropdownMenuShortcut";var dt=1;function Fr(){return(0,St.jsx)("span",{className:"border border-[#222222]"})}function mt(){let[e]=(0,po.useLexicalComposerContext)(),t=(0,oe.useRef)(null),[o,r]=(0,oe.useState)(!1),[n,i]=(0,oe.useState)(!1),[a,s]=(0,oe.useState)(!1),[c,f]=(0,oe.useState)(!1),[h,C]=(0,oe.useState)(!1),[m,b]=(0,oe.useState)(!1),[g,M]=(0,oe.useState)(!1),[l,y]=(0,oe.useState)(!1),[P,O]=(0,oe.useState)(!1),[T,_]=(0,oe.useState)("left"),[re,se]=(0,oe.useState)("p"),Z=p=>{e.update(()=>{let E=(0,x.$getSelection)();(0,x.$isRangeSelection)(E)&&(p==="p"?(0,pt.$setBlocksType)(E,()=>(0,x.$createParagraphNode)()):(0,pt.$setBlocksType)(E,()=>(0,yo.$createHeadingNode)(p)))})},le=(0,oe.useCallback)(()=>{let p=(0,x.$getSelection)();if((0,x.$isRangeSelection)(p)){s(p.hasFormat("bold")),f(p.hasFormat("italic")),C(p.hasFormat("underline")),b(p.hasFormat("strikethrough")),M(p.hasFormat("subscript")),y(p.hasFormat("superscript"));let E=p.anchor.getNode(),H=E;for(;H&&!(0,x.$isParagraphNode)(H)&&H!==(0,x.$getRoot)();){let B=H.getParent();B&&(H=B)}if(H){let B=H.getFormatType();_(B||"left")}let q=E.getTopLevelElement()?.__tag;se(q||"p")}},[]);(0,oe.useEffect)(()=>(0,Ie.mergeRegister)(e.registerUpdateListener(({editorState:p})=>{p.read(()=>{le()})}),e.registerCommand(x.SELECTION_CHANGE_COMMAND,(p,E)=>(le(),!1),dt),e.registerCommand(x.CAN_UNDO_COMMAND,p=>(r(p),!1),dt),e.registerCommand(x.CAN_REDO_COMMAND,p=>(i(p),!1),dt),(0,Ie.mergeRegister)(e.registerCommand(rt,p=>(e.update(()=>{let E=(0,x.$getSelection)()||(0,x.$getPreviousSelection)();if((0,x.$isRangeSelection)(E)){let H=he({id:p.id,fields:p.fields,relationTo:p.relationTo,value:p.value}),{focus:q}=E,B=q.getNode();(0,Ie.$insertNodeToNearestRoot)(H),(0,x.$isParagraphNode)(B)&&!B.__first&&B.remove()}}),!0),x.COMMAND_PRIORITY_EDITOR))),[e,le]);let xe=[[{label:"Undo",icon:(0,St.jsx)(ve.RotateCcw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(x.UNDO_COMMAND,void 0)},disabled:!o},{label:"Redo",icon:(0,St.jsx)(ve.RotateCw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(x.UNDO_COMMAND,void 0)},disabled:!n}],[{label:"Bold",icon:(0,St.jsx)(Qt,{}),onClick:()=>{e.dispatchCommand(x.FORMAT_TEXT_COMMAND,"bold")},value:"bold",active:a},{label:"Italic",icon:(0,St.jsx)(eo,{}),onClick:()=>{e.dispatchCommand(x.FORMAT_TEXT_COMMAND,"italic")},value:"italic",active:c},{label:"Underline",icon:(0,St.jsx)(to,{}),onClick:()=>{e.dispatchCommand(x.FORMAT_TEXT_COMMAND,"underline")},value:"underline",active:h},{label:"Strikethrough",icon:(0,St.jsx)(oo,{}),onClick:()=>{e.dispatchCommand(x.FORMAT_TEXT_COMMAND,"strikethrough")},value:"strikethrough",active:m},{label:"Subscript",icon:(0,St.jsx)(ro,{}),onClick:()=>{e.dispatchCommand(x.FORMAT_TEXT_COMMAND,"subscript")},value:"subscript",active:g},{label:"Superscript",icon:(0,St.jsx)(no,{}),onClick:()=>{e.dispatchCommand(x.FORMAT_TEXT_COMMAND,"superscript")},value:"superscript",active:l}]],ce=[{label:"Left Align",direction:"left",icon:(0,St.jsx)(ve.AlignLeft,{width:15,height:15}),onClick:()=>{e.dispatchCommand(x.FORMAT_ELEMENT_COMMAND,"left")}},{label:"Center Align",direction:"center",icon:(0,St.jsx)(ve.AlignCenter,{width:15,height:15}),onClick:()=>{e.dispatchCommand(x.FORMAT_ELEMENT_COMMAND,"center")}},{label:"Right Align",direction:"right",icon:(0,St.jsx)(ve.AlignRight,{width:15,height:15}),onClick:()=>{e.dispatchCommand(x.FORMAT_ELEMENT_COMMAND,"right")}},{label:"Justify Align",direction:"justify",icon:(0,St.jsx)(ve.AlignJustify,{width:15,height:15}),onClick:()=>{e.dispatchCommand(x.FORMAT_ELEMENT_COMMAND,"justify")}}],pe=[{label:"Normal Text",value:"p",icon:(0,St.jsx)(io,{}),onClick:()=>Z("p")},{label:"Heading 1",value:"h1",icon:(0,St.jsx)(ao,{}),onClick:()=>Z("h1")},{label:"Heading 2",value:"h2",icon:(0,St.jsx)(so,{}),onClick:()=>Z("h2")},{label:"Heading 3",value:"h3",icon:(0,St.jsx)(lo,{}),onClick:()=>Z("h3")},{label:"Heading 4",value:"h4",icon:(0,St.jsx)(co,{}),onClick:()=>Z("h4")},...[{label:"Unordered List",value:"ul",icon:(0,St.jsx)(ve.List,{width:15,height:15}),onClick:()=>{e.dispatchCommand($e.INSERT_UNORDERED_LIST_COMMAND,void 0)}},{label:"Ordered List",value:"ol",icon:(0,St.jsx)(ve.ListOrdered,{width:15,height:15}),onClick:()=>{e.dispatchCommand($e.INSERT_ORDERED_LIST_COMMAND,void 0)}}]],me=[{label:"Insert Image",icon:(0,St.jsx)(ve.ImageUp,{width:15,height:15}),onClick:()=>{O(!0)},disabled:!1}];return(0,St.jsx)("div",{className:"flex justify-between border border-[#222222] py-2 px-2 sticky top-0 bg-black St-50",children:(0,St.jsxs)("div",{className:"flex gap-2 ",ref:t,children:[xe.map((p,E)=>(0,St.jsxs)(oe.Fragment,{children:[(0,St.jsx)("div",{className:"flex items-center gap-2",children:p.map((H,q)=>(0,St.jsx)("div",{role:"button","aria-disabled":H.disabled||!1,onClick:H.onClick,className:N("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]",H.active&&"bg-[#3c3c3c]"),"aria-label":H.label,children:(0,St.jsx)(Fe,{children:(0,St.jsxs)(ze,{children:[(0,St.jsx)(Oe,{className:"text-[#b5b5b5]",children:H.icon}),(0,St.jsx)(Te,{children:(0,St.jsx)("p",{children:H.label})})]})})},q))}),(0,St.jsx)(Fr,{})]},`toolbar-option-${p.length}-${E}`)),(0,St.jsxs)(Be,{children:[(0,St.jsxs)(Ue,{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:[ce.find(p=>p.direction===T)?.icon,ce.find(p=>p.direction===T)?.label,(0,St.jsx)(ve.ChevronDown,{width:15,height:15})]}),(0,St.jsx)(Se,{className:"bg-black hover:bg-black",children:ce.map((p,E)=>(0,St.jsxs)(ke,{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,St.jsx)("span",{children:p.icon}),(0,St.jsx)("span",{children:p.label})]},`${p.label}-${E}`))})]}),(0,St.jsxs)(Be,{children:[(0,St.jsxs)(Ue,{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:[pe.find(p=>p.value===re)?.icon,pe.find(p=>p.value===re)?.label,(0,St.jsx)(ve.ChevronDown,{width:15,height:15})]}),(0,St.jsx)(Se,{className:"bg-black hover:bg-black",children:pe.map((p,E)=>(0,St.jsxs)(ke,{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,St.jsx)("span",{children:p.icon}),(0,St.jsx)("span",{children:p.label})]},`heading-option-${p.label}-${E}`))})]}),(0,St.jsxs)(Be,{children:[(0,St.jsxs)(Ue,{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:[(0,St.jsx)(ve.Plus,{width:15,height:15}),(0,St.jsx)(ve.ChevronDown,{width:15,height:15})]}),(0,St.jsx)(Se,{className:"bg-black hover:bg-black",children:me.map((p,E)=>(0,St.jsxs)(ke,{onClick:p.onClick,disabled:p.disabled,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,St.jsx)("span",{children:p.icon}),(0,St.jsx)("span",{children:p.label})]},E))})]}),P&&(0,St.jsx)(qt,{activeEditor:e,onClose:()=>{O(!1)},isOpen:P})]})})}var zr=({setValue:e,value:t,name:o,editable:r=!0})=>{let[n]=(0,po.useLexicalComposerContext)(),i=(0,oe.useRef)(null),a=s=>{s.read(()=>{let c=s.toJSON();JSON.stringify(c)!==JSON.stringify(i.current)&&(i.current=c,e?.(()=>c))})};return(0,oe.useEffect)(()=>{n.setEditable(r)},[r,n]),(0,oe.useEffect)(()=>{t&&JSON.stringify(t)!==JSON.stringify(i.current)&&n.update(()=>{try{let s=n.parseEditorState(t);n.setEditorState(s),i.current=t}catch(s){console.error("Error parsing editor state:",s)}},{discrete:!0})},[t,n]),(0,St.jsx)("div",{className:"w-full",children:(0,St.jsxs)("div",{className:" ",children:[r&&(0,St.jsx)(mt,{}),(0,St.jsxs)("div",{className:"px-4 my-4 border-l border-[#222222]",children:[(0,St.jsx)(vo.RichTextPlugin,{contentEditable:(0,St.jsx)(go.ContentEditable,{name:o,className:"focus:outline-none focus:ring-0 focus-visible:outline-none min-h-40"}),ErrorBoundary:ho.LexicalErrorBoundary}),r&&(0,St.jsxs)(St.Fragment,{children:[(0,St.jsx)(bo.HistoryPlugin,{}),(0,St.jsx)(uo.AutoFocusPlugin,{}),(0,St.jsx)(xo.ListPlugin,{}),(0,St.jsx)(wo.OnChangePlugin,{onChange:a}),(0,St.jsx)(nt,{})]})]})]})})},Or=({setValue:e,value:t,name:o,editable:r=!0})=>(0,St.jsx)(fo.LexicalComposer,{initialConfig:{namespace:"Lexical editor",nodes:[Ge.ListNode,Ge.ListItemNode,yo.HeadingNode,Me],onError(i){throw console.error("Lexical error:",i),i},theme:{code:"editor-code",heading:{h1:"text-4xl text-primary",h2:"text-3xl",h3:"text-2xl",h4:"text-lg",h5:"text-sm"},image:"editor-image",link:"editor-link",list:{listitem:"editor-listitem",nested:{listitem:"editor-nested-listitem"},ol:"list-decimal",ul:"list-disc"},ltr:"ltr",paragraph:"editor-paragraph",placeholder:"editor-placeholder",quote:"editor-quote",rtl:"rtl",text:{bold:"editor-text-bold font-bold",code:"editor-text-code",hashtag:"editor-text-hashtag",italic:"editor-text-italic italic",overflowed:"editor-text-overflowed",strikethrough:"editor-text-strikethrough line-through",underline:"editor-text-underline underline",underlineStrikethrough:"underline line-through"}}},children:(0,St.jsx)(zr,{value:t,setValue:e,name:o,editable:r})}),No=Or;var Le=e=>"mimeType"in e&&"url"in e&&!("format"in e),_r=e=>{if(!e?.root?.children)return"";let t=[],o=n=>{if(!n)return"";switch(n.type){case"heading":{let i=n.tag?parseInt(n.tag.replace("h","")):1,a=r(n.children||[]);return"#".repeat(i)+" "+a}case"paragraph":return r(n.children||[]);case"list":{let i=[],a=n.listType==="number"?"1.":"-";return n.children?.forEach((s,c)=>{if(s.type==="listitem"){let f=r(s.children||[]),h=n.listType==="number"?`${c+1}.`:a;i.push(`${h} ${f}`)}}),i.join(`
|
|
5
|
-
`)}case"listitem":return r(n.children||[]);case"text":{let
|
|
6
|
-
`}return o(
|
|
7
|
-
|
|
8
|
-
`)
|
|
9
|
-
`),o=[],r=[],n=[],i=()=>{if(r.length>0){let s=r.join(" "),c=de(s);o.push({type:"paragraph",children:c.length>0?c:[{type:"text",text:"",format:0}]}),r=[]}},a=()=>{n.length>0&&(o.push({type:"list",listType:"bullet",children:n}),n=[])};for(let s of t){let c=s.trim();if(!c){i(),a();continue}let f=c.match(/^(#{1,6})\s+(.+)$/);if(f){i(),a();let C=f[1].length,m=f[2],b=de(m);o.push({type:"heading",tag:`h${C}`,children:b.length>0?b:[{type:"text",text:"",format:0}]});continue}let h=c.match(/^[-*+]\s+(.+)$/);if(h){i();let C=h[1],m=de(C);n.push({type:"listitem",children:[{type:"paragraph",children:m.length>0?m:[{type:"text",text:"",format:0}]}]});continue}n.length>0&&a(),r.push(c)}return i(),a(),o.length===0&&o.push({type:"paragraph",children:[{type:"text",text:"",format:0}]}),{root:{type:"root",children:o,direction:"ltr",format:"",indent:0,version:1}}},Ur=async e=>{let t="",o,r="text";if(e.url)try{let n=e.url;!n.startsWith("http://")&&!n.startsWith("https://")&&!n.startsWith("/")&&(n="/"+n);let i=await fetch(n);i.ok?(t=await i.text(),console.log("Successfully loaded content, length:",t.length)):console.error("Failed to fetch file content:",i.status,i.statusText)}catch(n){console.error("Failed to fetch file content:",n)}else console.warn("No URL provided for file:",e.name);return e.mimeType==="text/markdown"?(r="richText",o=Br(t)):e.mimeType?.startsWith("text/")&&(r="text"),{id:e.id.toString(),title:e.name,description:void 0,content:r==="richText"?void 0:t,richTextContent:r==="richText"?o:void 0,format:r,metadata:{},createdAt:typeof e.createdAt=="string"?new Date(e.createdAt):e.createdAt,updatedAt:new Date}};function To({document:e,onCancel:t,onSave:o,onFileUpdate:r}){let[n,i]=(0,oe.useState)(Le(e)),[a,s]=(0,oe.useState)(Le(e)?{id:e.id.toString(),title:e.name,description:void 0,content:"",format:"text",metadata:{},createdAt:typeof e.createdAt=="string"?new Date(e.createdAt):e.createdAt,updatedAt:new Date}:{...e,updatedAt:new Date}),[c,f]=(0,oe.useState)(Le(e)?void 0:a.richTextContent),[h,C]=(0,oe.useState)(!1),m=(0,oe.useRef)(Le(e)?e:null);(0,oe.useEffect)(()=>{Le(e)?(i(!0),Ur(e).then(l=>{s(l),f(l.richTextContent),i(!1)}).catch(l=>{l instanceof Error&&l.name!=="AbortError"&&(console.error("Failed to convert file:",l),i(!1))})):(s({...e,updatedAt:new Date}),f(e.richTextContent))},[e]);let b=l=>{switch(l){case"markdown":case"mdx":return(0,St.jsx)(ve.FileText,{className:"h-6 w-6 text-primary"});case"richText":return(0,St.jsx)(ve.File,{className:"h-6 w-6 text-success"});case"text":return(0,St.jsx)(ve.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,St.jsx)(ve.File,{className:"h-6 w-6 text-muted-foreground"})}},g=l=>{switch(l){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richText":return"bg-success/10 text-success border-success/20";case"text":return"bg-muted/50 text-muted-foreground border-muted-foreground/20";default:return"bg-muted text-muted-foreground border-border"}},M=async()=>{C(!0);try{let l,y;if(m.current&&m.current.mimeType==="text/markdown"){let O=c?_r(c):"";l={...a,format:"markdown",content:O,richTextContent:void 0},y=O}else l={...a,richTextContent:c},y=a.content||"";let P=m.current?m.current.id.toString():a.id;await Promise.resolve(o()),r?.(P,y)}finally{C(!1)}};return(0,St.jsxs)(ut.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-screen flex flex-col",children:[(0,St.jsx)("div",{className:"border-b border-border bg-card p-8 pb-6",children:(0,St.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,St.jsx)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:(0,St.jsx)("div",{className:"flex-1 min-w-0",children:(0,St.jsxs)("div",{className:"flex items-start gap-4 mb-0 leading-tight",children:[(0,St.jsx)("div",{className:"flex-1 min-w-0",children:(0,St.jsx)(Ot,{fieldName:"title",value:a.title,label:"",onSave:(l,y)=>s(P=>({...P,title:y})),className:"[&>div:last-child]:text-2xl [&>div:last-child]:font-bold [&>div:last-child]:leading-tight [&>div:last-child]:text-foreground [&>div:last-child]:p-0 [&>div:last-child]:border-0 [&>div:last-child]:hover:bg-muted/30 [&>div:last-child]:min-h-0"})}),(0,St.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${g(a.format)} flex-shrink-0 mt-1`,children:a.format.toUpperCase()})]})})}),(0,St.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(0,St.jsxs)(j,{variant:"outline",size:"sm",onClick:t,className:"gap-2",children:[(0,St.jsx)(ve.St,{className:"h-4 w-4"}),"Close"]}),(0,St.jsxs)(j,{size:"sm",onClick:M,className:"gap-2",disabled:h,children:[h?(0,St.jsx)(ve.Loader2,{className:"h-4 w-4 animate-spin"}):(0,St.jsx)(ve.Save,{className:"h-4 w-4"}),h?"Saving...":"Save"]})]})]})}),(0,St.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,St.jsx)("div",{className:"p-8 pt-0 h-full max-h-full overflow-auto",children:n?(0,St.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,St.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,St.jsx)(ve.Loader2,{className:"h-8 w-8 animate-spin text-primary"}),(0,St.jsx)("p",{className:"text-sm text-muted-foreground",children:"Loading file content..."})]})}):(0,St.jsx)(St.Fragment,{children:a.format==="richText"?(0,St.jsx)(No,{setValue:f,value:c,name:"richTextContent"},`richtext-${a.id}-${n?"loading":"loaded"}`):(0,St.jsx)(De,{value:a.content||"",onChange:l=>s(y=>({...y,content:l.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})})})})]})}var Mo=e=>{if(!e||e<=0)return"0 KB";let t=e/1024;return t<1024?`${t.toFixed(2)} KB`:`${(t/1024).toFixed(2)} MB`};function $r({files:e,onFileClick:t,onFileDelete:o,onFileUpdate:r,showHeader:n=!0,className:i,viewMode:a="list"}){let[s,c]=(0,oe.useState)(!1),[f,h]=(0,oe.useState)(!1),[C,m]=(0,oe.useState)(null),b=()=>{c(!1),m(null)},g=()=>{h(!0),setTimeout(()=>{h(!1),c(!1),m(null)},500)},M=l=>{m(l),c(!0)};return(0,St.jsxs)("div",{className:N("rounded-3xl border overflow-hidden",i),children:[(0,St.jsxs)("div",{className:"bg-muted/50 p-3 flex items-center justify-between",children:[n&&a==="list"&&(0,St.jsxs)("div",{className:"hidden md:grid md:grid-cols-10 text-sm font-medium flex-1",children:[(0,St.jsx)("div",{className:"col-span-6",children:"Name"}),(0,St.jsx)("div",{className:"col-span-2",children:"Size"}),(0,St.jsx)("div",{className:"col-span-2",children:"Modified"})]}),a==="card"&&(0,St.jsx)("div",{className:"text-sm font-medium",children:"Files"})]}),a==="list"&&(0,St.jsx)("div",{className:"divide-y",children:e.map(l=>(0,St.jsxs)(ut.motion.div,{whileHover:{backgroundColor:"rgba(0,0,0,0.02)"},className:"p-3 md:grid md:grid-cols-10 items-center flex flex-col md:flex-row gap-3 md:gap-0 cursor-pointer",onClick:()=>t?.(l),children:[(0,St.jsxs)("div",{className:"col-span-6 flex items-center gap-3 w-full md:w-auto",children:[(0,St.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-muted"}),(0,St.jsx)("div",{children:(0,St.jsx)("p",{className:"font-medium",children:l.name})})]}),(0,St.jsx)("div",{className:"col-span-2 text-sm md:text-base",children:Mo(l.filesize)}),(0,St.jsxs)("div",{className:"col-span-2 flex items-center justify-between w-full md:w-auto",children:[(0,St.jsx)("span",{className:"text-sm md:text-base",children:new Date(l.createdAt).toLocaleDateString()}),(0,St.jsxs)("div",{className:"flex gap-1",children:[l.mimeType==="text/markdown"&&(0,St.jsx)(j,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",onClick:y=>{y.stopPropagation(),M(l)},children:(0,St.jsx)(ve.Edit,{className:"h-4 w-4"})}),(0,St.jsx)(j,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl text-red-500 hover:text-red-600",onClick:y=>{y.stopPropagation(),o?.(l)},children:(0,St.jsx)(ve.Trash2,{className:"h-4 w-4"})})]})]})]},l.name))}),a==="card"&&(0,St.jsx)("div",{className:"p-4 grid grid-cols-1 gap-4",children:e.map(l=>(0,St.jsx)(ut.motion.div,{whileHover:{scale:1.02},className:"border rounded-lg p-4 bg-card hover:bg-muted/50 transition-colors cursor-pointer",onClick:()=>t?.(l),children:(0,St.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,St.jsxs)("div",{className:"flex-1 min-w-0 space-y-2",children:[(0,St.jsxs)("div",{className:"flex items-center gap-3",children:[(0,St.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-muted flex-shrink-0"}),(0,St.jsx)("div",{className:"min-w-0 flex-1",children:(0,St.jsx)("p",{className:"font-medium truncate",children:l.name})})]}),(0,St.jsxs)("div",{className:"space-y-1 text-sm text-muted-foreground pl-[52px]",children:[(0,St.jsxs)("div",{className:"flex items-center gap-2",children:[(0,St.jsx)("span",{className:"font-medium",children:"Size:"}),(0,St.jsx)("span",{children:Mo(l.filesize)})]}),(0,St.jsxs)("div",{className:"flex items-center gap-2",children:[(0,St.jsx)("span",{className:"font-medium",children:"Modified:"}),(0,St.jsx)("span",{children:new Date(l.createdAt).toLocaleDateString()})]})]})]}),(0,St.jsxs)("div",{className:"flex flex-col gap-2 flex-shrink-0",children:[l.mimeType==="text/markdown"&&(0,St.jsx)(j,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",onClick:y=>{y.stopPropagation(),M(l)},title:"Edit",children:(0,St.jsx)(ve.Edit,{className:"h-4 w-4"})}),(0,St.jsx)(j,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl text-red-500 hover:text-red-600",onClick:y=>{y.stopPropagation(),o?.(l)},title:"Delete",children:(0,St.jsx)(ve.Trash2,{className:"h-4 w-4"})})]})]})},l.name))}),(0,St.jsx)(Ae,{open:s,onOpenChange:l=>!l&&b(),children:(0,St.jsxs)(Je,{children:[(0,St.jsx)(Ve,{}),(0,St.jsxs)(Po.Content,{className:N("fixed inset-0 St-50 bg-background p-0 m-0 border-0","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"),children:[(0,St.jsx)(Ne,{className:"sr-only",children:C?`Edit ${C.name}`:"Edit File"}),f&&(0,St.jsx)("div",{className:"absolute inset-0 bg-background/50 flex items-center justify-center St-50",children:(0,St.jsx)(ve.Loader2,{className:"h-8 w-8 animate-spin text-primary"})}),C&&(0,St.jsx)(To,{document:C,onSave:g,onFileUpdate:r,onCancel:b})]})]})})]})}0&&(module.exports={FileList});
|
|
4
|
+
"use strict";"use client";var So=Object.create;var He=Object.defineProperty;var ko=Object.getOwnPropertyDescriptor;var Io=Object.getOwnPropertyNames;var Eo=Object.getPrototypeOf,Lo=Object.prototype.hasOwnProperty;var Ho=(e,t)=>{for(var o in t)He(e,o,{get:t[o],enumerable:!0})},gt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Io(t))!Lo.call(e,i)&&i!==o&&He(e,i,{get:()=>t[i],enumerable:!(r=ko(t,i))||r.enumerable});return e};var $=(e,t,o)=>(o=e!=null?So(Eo(e)):{},gt(t||!e||!e.__esModule?He(o,"default",{value:e,enumerable:!0}):o,e)),Ao=e=>gt(He({},"__esModule",{value:!0}),e);var Gr={};Ho(Gr,{FileList:()=>$r});module.exports=Ao(Gr);var ut=require("motion/react"),ve=require("lucide-react");var Dt=require("clsx");var je="-",Vo=e=>{let t=zo(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{let s=a.split(je);return s[0]===""&&s.length!==1&&s.shift(),vt(s,t)||Fo(a)},getConflictingClassGroupIds:(a,s)=>{let c=o[a]||[];return s&&r[a]?[...c,...r[a]]:c}}},vt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),i=r?vt(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let n=e.join(je);return t.validators.find(({validator:a})=>a(n))?.classGroupId},ht=/^\[(.+)\]$/,Fo=e=>{if(ht.test(e)){let t=ht.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},zo=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return _o(Object.entries(e.classGroups),o).forEach(([n,a])=>{Ze(a,r,n,t)}),r},Ze=(e,t,o,r)=>{e.forEach(i=>{if(typeof i=="string"){let n=i===""?t:bt(t,i);n.classGroupId=o;return}if(typeof i=="function"){if(Oo(i)){Ze(i(r),t,o,r);return}t.validators.push({validator:i,classGroupId:o});return}Object.entries(i).forEach(([n,a])=>{Ze(a,bt(t,n),o,r)})})},bt=(e,t)=>{let o=e;return t.split(je).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Oo=e=>e.isThemeGetter,_o=(e,t)=>t?e.map(([o,r])=>{let i=r.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([a,s])=>[t+a,s])):n);return[o,i]}):e,Bo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,i=(n,a)=>{o.set(n,a),t++,t>e&&(t=0,r=o,o=new Map)};return{get(n){let a=o.get(n);if(a!==void 0)return a;if((a=r.get(n))!==void 0)return i(n,a),a},set(n,a){o.has(n)?o.set(n,a):i(n,a)}}},xt="!",Uo=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,i=t[0],n=t.length,a=s=>{let c=[],f=0,h=0,x;for(let l=0;l<s.length;l++){let w=s[l];if(f===0){if(w===i&&(r||s.slice(l,l+n)===t)){c.push(s.slice(h,l)),h=l+n;continue}if(w==="/"){x=l;continue}}w==="["?f++:w==="]"&&f--}let m=c.length===0?s:s.substring(h),b=m.startsWith(xt),p=b?m.substring(1):m,N=x&&x>h?x-h:void 0;return{modifiers:c,hasImportantModifier:b,baseClassName:p,maybePostfixModifierPosition:N}};return o?s=>o({className:s,parseClassName:a}):a},$o=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},Go=e=>({cache:Bo(e.cacheSize),parseClassName:Uo(e),...Vo(e)}),Wo=/\s+/,Ko=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:i}=t,n=[],a=e.trim().split(Wo),s="";for(let c=a.length-1;c>=0;c-=1){let f=a[c],{modifiers:h,hasImportantModifier:x,baseClassName:m,maybePostfixModifierPosition:b}=o(f),p=!!b,N=r(p?m.substring(0,b):m);if(!N){if(!p){s=f+(s.length>0?" "+s:s);continue}if(N=r(m),!N){s=f+(s.length>0?" "+s:s);continue}p=!1}let l=$o(h).join(":"),w=x?l+xt:l,P=w+N;if(n.includes(P))continue;n.push(P);let O=i(N,p);for(let M=0;M<O.length;++M){let _=O[M];n.push(w+_)}s=f+(s.length>0?" "+s:s)}return s};function Zo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=yt(t))&&(r&&(r+=" "),r+=o);return r}var yt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=yt(e[r]))&&(o&&(o+=" "),o+=t);return o};function jo(e,...t){let o,r,i,n=a;function a(c){let f=t.reduce((h,x)=>x(h),e());return o=Go(f),r=o.cache.get,i=o.cache.set,n=s,s(c)}function s(c){let f=r(c);if(f)return f;let h=Ko(c,o);return i(c,h),h}return function(){return n(Zo.apply(null,arguments))}}var S=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},wt=/^\[(?:([a-St-]+):)?(.+)\]$/i,Jo=/^\St+\/\St+$/,Xo=new Set(["px","full","screen"]),qo=/^(\St+(\.\St+)?)?(xs|sm|md|lg|xl)$/,Yo=/\St+(%|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$/,Qo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,er=/^(inset_)?-?((\St+)?\.?(\St+)[a-St]+|0)_-?((\St+)?\.?(\St+)[a-St]+|0)/,tr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Q=e=>ue(e)||Xo.has(e)||Jo.test(e),ne=e=>fe(e,"length",cr),ue=e=>!!e&&!Number.isNaN(Number(e)),Ke=e=>fe(e,"number",ue),ye=e=>!!e&&Number.isInteger(Number(e)),or=e=>e.endsWith("%")&&ue(e.slice(0,-1)),v=e=>wt.test(e),ie=e=>qo.test(e),rr=new Set(["length","size","percentage"]),nr=e=>fe(e,rr,Ct),ir=e=>fe(e,"position",Ct),ar=new Set(["image","url"]),sr=e=>fe(e,ar,pr),lr=e=>fe(e,"",dr),we=()=>!0,fe=(e,t,o)=>{let r=wt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},cr=e=>Yo.test(e)&&!Qo.test(e),Ct=()=>!1,dr=e=>er.test(e),pr=e=>tr.test(e);var mr=()=>{let e=S("colors"),t=S("spacing"),o=S("blur"),r=S("brightness"),i=S("borderColor"),n=S("borderRadius"),a=S("borderSpacing"),s=S("borderWidth"),c=S("contrast"),f=S("grayscale"),h=S("hueRotate"),x=S("invert"),m=S("gap"),b=S("gradientColorStops"),p=S("gradientColorStopPositions"),N=S("inset"),l=S("margin"),w=S("opacity"),P=S("padding"),O=S("saturate"),M=S("scale"),_=S("sepia"),re=S("skew"),le=S("space"),Z=S("translate"),ce=()=>["auto","contain","none"],xe=()=>["auto","hidden","clip","visible","scroll"],de=()=>["auto",v,t],R=()=>[v,t],pe=()=>["",Q,ne],me=()=>["auto",ue,v],u=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],E=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",v],ft=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[ue,v];return{cacheSize:500,separator:":",theme:{colors:[we],spacing:[Q,ne],blur:["none","",ie,v],brightness:Y(),borderColor:[e],borderRadius:["none","","full",ie,v],borderSpacing:R(),borderWidth:pe(),contrast:Y(),grayscale:B(),hueRotate:Y(),invert:B(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[or,ne],inset:de(),margin:de(),opacity:Y(),padding:R(),saturate:Y(),scale:Y(),sepia:B(),skew:Y(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",v]}],container:["container"],columns:[{columns:[ie]}],"break-after":[{"break-after":ft()}],"break-before":[{"break-before":ft()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...u(),v]}],overflow:[{overflow:xe()}],"overflow-x":[{"overflow-x":xe()}],"overflow-y":[{"overflow-y":xe()}],overscroll:[{overscroll:ce()}],"overscroll-x":[{"overscroll-x":ce()}],"overscroll-y":[{"overscroll-y":ce()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[N]}],"inset-x":[{"inset-x":[N]}],"inset-y":[{"inset-y":[N]}],start:[{start:[N]}],end:[{end:[N]}],top:[{top:[N]}],right:[{right:[N]}],bottom:[{bottom:[N]}],left:[{left:[N]}],visibility:["visible","invisible","collapse"],St:[{St:["auto",ye,v]}],basis:[{basis:de()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",v]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",ye,v]}],"grid-cols":[{"grid-cols":[we]}],"col-start-end":[{col:["auto",{span:["full",ye,v]},v]}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":[we]}],"row-start-end":[{row:["auto",{span:[ye,v]},v]}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",v]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",v]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],pe:[{pe:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],m:[{m:[l]}],mx:[{mx:[l]}],my:[{my:[l]}],ms:[{ms:[l]}],me:[{me:[l]}],mt:[{mt:[l]}],mr:[{mr:[l]}],mb:[{mb:[l]}],ml:[{ml:[l]}],"space-x":[{"space-x":[le]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[le]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",v,t]}],"min-w":[{"min-w":[v,t,"min","max","fit"]}],"max-w":[{"max-w":[v,t,"none","full","min","max","fit","prose",{screen:[ie]},ie]}],h:[{h:[v,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[v,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[v,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[v,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ie,ne]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ke]}],"font-family":[{font:[we]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",v]}],"line-clamp":[{"line-clamp":["none",ue,Ke]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Q,v]}],"list-image":[{"list-image":["none",v]}],"list-style-type":[{list:["none","disc","decimal",v]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...E(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Q,ne]}],"underline-offset":[{"underline-offset":["auto",Q,v]}],"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:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",v]}],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",v]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...u(),ir]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",nr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},sr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-St":[{"rounded-St":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...E(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:E()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...E()]}],"outline-offset":[{"outline-offset":[Q,v]}],"outline-w":[{outline:[Q,ne]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[Q,ne]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ie,lr]}],"shadow-color":[{shadow:[we]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",ie,v]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[x]}],saturate:[{saturate:[O]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[O]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",v]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",v]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",v]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[ye,v]}],"translate-x":[{"translate-x":[Z]}],"translate-y":[{"translate-y":[Z]}],"skew-x":[{"skew-x":[re]}],"skew-y":[{"skew-y":[re]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",v]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",v]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",v]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Q,ne,Ke]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-St","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-St"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-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 Nt=jo(mr);function D(...e){return Nt((0,Dt.clsx)(e))}var Tt=require("@radix-ui/react-slot"),Mt=require("class-variance-authority"),Pt=$(require("react")),St=require("react/jsx-runtime"),Rt=(0,Mt.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"}}}),j=Pt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...i},n)=>(0,St.jsx)(e?Tt.Slot:"button",{className:D(Rt({className:t,size:o,variant:r})),ref:n,...i}));j.displayName="Button";var Ce=$(require("react")),A=$(require("@radix-ui/react-dialog"));var Ae=A.Root;var Je=A.Portal;var Ve=Ce.forwardRef(({className:e,...t},o)=>(0,St.jsx)(A.Overlay,{ref:o,className:D("fixed inset-0 St-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Ve.displayName=A.Overlay.displayName;var Xe=Ce.forwardRef(({className:e,children:t,...o},r)=>(0,St.jsxs)(Je,{children:[(0,St.jsx)(Ve,{}),(0,St.jsxs)(A.Content,{ref:r,className:D("fixed left-[50%] top-[50%] St-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,St.jsxs)(A.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,St.jsx)(ve.St,{className:"h-4 w-4"}),(0,St.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Xe.displayName=A.Content.displayName;var qe=({className:e,...t})=>(0,St.jsx)("div",{className:D("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});qe.displayName="DialogHeader";var ur=({className:e,...t})=>(0,St.jsx)("div",{className:D("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ur.displayName="DialogFooter";var Ne=Ce.forwardRef(({className:e,...t},o)=>(0,St.jsx)(A.Title,{ref:o,className:D("text-lg font-semibold leading-none tracking-tight",e),...t}));Ne.displayName=A.Title.displayName;var fr=Ce.forwardRef(({className:e,...t},o)=>(0,St.jsx)(A.Description,{ref:o,className:D("text-sm text-muted-foreground",e),...t}));fr.displayName=A.Description.displayName;var Po=$(require("@radix-ui/react-dialog"));var oe=require("react");var It=$(require("react")),De=It.forwardRef(({className:e,...t},o)=>(0,St.jsx)("textarea",{className:D("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));De.displayName="Textarea";var Lt=$(require("react"));var ge=Lt.forwardRef(({className:e,type:t,...o},r)=>(0,St.jsx)("input",{type:t,className:D("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));ge.displayName="Input";var At=$(require("react")),Ye=$(require("@radix-ui/react-label"));var gr=(0,Mt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Qe=At.forwardRef(({className:e,...t},o)=>(0,St.jsx)(Ye.Root,{ref:o,className:D(gr(),e),...t}));Qe.displayName=Ye.Root.displayName;var Ot=({fieldName:e,value:t,label:o,multiline:r=!1,onSave:i,className:n="",disabled:a=!1})=>{let[s,c]=(0,oe.useState)(!1),[f,h]=(0,oe.useState)(""),x=()=>{a||(c(!0),h(t))},m=async()=>{f!==t&&await i(e,f),c(!1)},b=p=>{p.key==="Enter"&&!r||p.key==="Enter"&&p.ctrlKey&&r?m():p.key==="Escape"&&(c(!1),h(""))};return(0,St.jsxs)("div",{className:`space-y-2 ${n}`,children:[(0,St.jsx)(Qe,{children:o}),s?r?(0,St.jsx)(De,{value:f,onChange:p=>h(p.target.value),onBlur:m,onKeyDown:b,autoFocus:!0,rows:4,className:"resize-none"}):(0,St.jsx)(ge,{value:f,onChange:p=>h(p.target.value),onBlur:m,onKeyPress:b,autoFocus:!0,className:"text-lg font-medium"}):(0,St.jsxs)("div",{onClick:x,className:`${a?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 p-2 rounded border border-transparent hover:border-border transition-colors group ${r?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,St.jsx)("span",{className:r?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!a&&(0,St.jsx)(ve.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var uo=require("@payloadcms/richtext-lexical/lexical/react/LexicalAutoFocusPlugin"),fo=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposer"),go=require("@payloadcms/richtext-lexical/lexical/react/LexicalContentEditable"),ho=require("@payloadcms/richtext-lexical/lexical/react/LexicalErrorBoundary"),bo=require("@payloadcms/richtext-lexical/lexical/react/LexicalHistoryPlugin"),vo=require("@payloadcms/richtext-lexical/lexical/react/LexicalRichTextPlugin"),xo=require("@payloadcms/richtext-lexical/lexical/react/LexicalListPlugin"),Ge=require("@payloadcms/richtext-lexical/lexical/list"),yo=require("@payloadcms/richtext-lexical/lexical/rich-text"),wo=require("@payloadcms/richtext-lexical/lexical/react/LexicalOnChangePlugin");var po=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposerContext"),Ie=require("@payloadcms/richtext-lexical/lexical/utils"),y=require("@payloadcms/richtext-lexical/lexical"),pt=require("@payloadcms/richtext-lexical/lexical/selection");var Xt=require("@radix-ui/react-dialog"),_e=require("@payloadcms/richtext-lexical/client");var ot=$(require("bson-objectid"));var Bt=require("@payloadcms/ui");var _t=$(require("react")),J=$(require("@radix-ui/react-tooltip"));var Fe=J.Provider,ze=J.Root,Oe=J.Trigger,Te=_t.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,St.jsx)(J.Portal,{children:(0,St.jsx)(J.Content,{ref:r,sideOffset:t,className:D("St-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})}));Te.displayName=J.Content.displayName;var hr=e=>{let{data:{relationTo:t,value:o},nodeKey:r}=e,[i]=(0,po.useLexicalComposerContext)(),[n,a]=(0,oe.useState)(""),[s,c]=(0,oe.useState)(""),[f,h]=(0,oe.useState)(""),x=async l=>{console.log("fetchMedia",l)};(0,oe.useEffect)(()=>{typeof o=="string"?o.length===24?x(o):(a(o||""),h(N(p())),c(b()||"")):typeof o=="object"&&(a(`${process.env.NEXT_PUBLIC_API_URL}${o.url}`||""),h(N(o.filesize)),c(o.mimeType?.split("/")[1]||""))},[]);let m=(0,oe.useCallback)(()=>{i.update(()=>{(0,$t.$getNodeByKey)(r)?.remove()})},[i,r]),b=()=>{let l=e.data.value;return typeof l=="string"?l.split(";base64")[0]?.split("image/")[1]:""},p=()=>{let l=e.data.value;if(typeof l=="string"){let w=l.split(",")[1]?.length||0;return 4*Math.ceil(w/3)*.5624896334383812/1e3}return 0};function N(l){if(l>=1e6){let P=l/1e6;return`${P>=10?Math.round(P).toString():P.toFixed(1)} MB`}return`${Math.floor(l/1e3)} KB`}return(0,St.jsx)("div",{className:"my-2",contentEditable:!1,children:(0,St.jsxs)("div",{className:"border border-slate-800 rounded-xl overflow-clip w-60 flex flex-col gap-2 bg-[#222222]",children:[(0,St.jsxs)("div",{className:"flex gap-2 border-b border-b-slate-100/10",children:[(0,St.jsx)("div",{className:"flex-1",children:e.data.value?(0,St.jsx)("img",{className:"object-cover m-0 w-full min-w-[115px] min-h-[105px]","data-lexical-upload-id":o,"data-lexical-upload-relation-to":t,src:n}):(0,St.jsx)(Bt.File,{})}),(0,St.jsx)(Fe,{children:(0,St.jsxs)(ze,{children:[(0,St.jsxs)(Oe,{className:"flex-1 flex justify-center items-center text-[#b5b5b5]",children:[(0,St.jsx)("span",{className:"font-medium text-sm",children:"Media"}),(0,St.jsx)("button",{onClick:l=>{l.preventDefault(),m()},className:"flex-1 flex justify-center items-center",children:(0,St.jsx)(ve.St,{width:24,height:24,strokeWidth:1})})]}),(0,St.jsx)(Te,{children:(0,St.jsx)("span",{children:"Remove image"})})]})})]}),(0,St.jsxs)("div",{className:"flex items-center justify-center gap-4 py-3 flex-1 text-xs font-bold",children:[(0,St.jsx)("span",{className:"",children:s?.toLocaleUpperCase()}),(0,St.jsx)("span",{children:f})]})]})})},Wt=hr;function br(e){if(e.hasAttribute("data-lexical-upload-relation-to")&&e.hasAttribute("data-lexical-upload-id")){let o=e.getAttribute("data-lexical-upload-id");if(o)return{node:he({fields:{},relationTo:"media",value:o})}}return e.src.startsWith("file:///"),null}var Me=class extends _e.UploadNode{static importDOM(){return{img:()=>({conversion:br,priority:0})}}static importJSON(t){t.version===1&&t?.value?.id&&(t.value=t.value.id),t.version===2&&!t?.id&&(t.id=new ot.default().toHexString(),t.version=3);let o={id:t.id??new ot.default().toHexString(),fields:t.fields,relationTo:"media",value:t.value},r=he(o);return r.setFormat?.(t.format),r}decorate(){return(0,St.jsx)(Wt,{data:this.__data,nodeKey:this.getKey()})}};function he(e){return new Me({data:e})}var vr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",xr=e=>vr?(e||window).getSelection():null,In=(0,y.createCommand)("INSERT_UPLOAD_WITH_DRAWER_COMMAND"),rt=(0,y.createCommand)("INSERT_UPLOAD_COMMAND");function qt({activeEditor:e,onClose:t,isOpen:o=!1}){let r=(0,oe.useRef)(!1),[i,n]=(0,oe.useState)(!0),[a,s]=(0,oe.useState)(""),[c,f]=(0,oe.useState)(""),[h,x]=(0,oe.useState)(!1),[m,b]=(0,oe.useState)("left"),p=a==="",N=M=>{x(M.target.checked)},l=M=>{b(M.target.value)},w=M=>{let _=new FileReader;_.onload=function(){return typeof _.result=="string"&&s(_.result),""},M!==null&&M[0]&&_.readAsDataURL(M[0])};(0,oe.useEffect)(()=>{r.current=!1;let M=_=>{r.current=_.altKey};return document.addEventListener("keydown",M),()=>{document.removeEventListener("keydown",M)}},[e]),(0,oe.useEffect)(()=>{i||t()},[i]),(0,oe.useEffect)(()=>{n(o)},[o]);let P=({editor:M,relationTo:_,replaceNodeKey:re,value:le})=>{if(re)M.update(()=>{let Z=(0,y.$getNodeByKey)(re);Z&&Z.replace(he({id:"",fields:{},relationTo:"media",value:le}))});else{let Z=M.dispatchCommand(rt,{fields:null,relationTo:"media",value:le})}},O=()=>{P({editor:e,relationTo:"media",replaceNodeKey:null,value:{altText:c,src:a,showCaption:h,position:m}.src}),n(!1),t()};return(0,St.jsx)(Ae,{open:i,onOpenChange:M=>n(M),children:(0,St.jsxs)(Xe,{children:[(0,St.jsxs)(qe,{children:[(0,St.jsx)(Ne,{children:"Upload Image"}),(0,St.jsx)(Xt.DialogDescription,{children:"Description"})]}),(0,St.jsxs)("div",{className:"",children:[(0,St.jsx)("div",{style:{marginBottom:"1em"},children:(0,St.jsx)(ge,{type:"file",onChange:M=>w(M.target.files),accept:"image/*","data-test-id":"image-modal-file-upload"})}),(0,St.jsx)("div",{style:{marginBottom:"1em"},children:(0,St.jsx)(ge,{"aria-label":"Alt Text",placeholder:"Descriptive alternative text",onChange:M=>f(M.currentTarget.value),value:c,"data-test-id":"image-modal-alt-text-input"})}),(0,St.jsx)(j,{"data-test-id":"image-modal-file-upload-btn",disabled:p,onClick:()=>O(),children:"Confirm"})]})]})})}function nt({captionsEnabled:e}){let[t]=(0,po.useLexicalComposerContext)();return(0,oe.useEffect)(()=>{if(!t.hasNodes([_e.UploadNode]))throw new Error("ImagesPlugin: ImageNode not registered on editor");return(0,Ie.mergeRegister)(t.registerCommand(y.DRAGSTART_COMMAND,o=>yr(o),y.COMMAND_PRIORITY_HIGH),t.registerCommand(y.DRAGOVER_COMMAND,o=>wr(o),y.COMMAND_PRIORITY_LOW),t.registerCommand(y.DROP_COMMAND,o=>Cr(o,t),y.COMMAND_PRIORITY_HIGH))},[e,t]),null}function yr(e){if(!it())return!1;let o=e.dataTransfer;return o?(o.setData("text/plain","_"),!0):!1}function wr(e){return it()?(Yt(e)||e.preventDefault(),!0):!1}function Cr(e,t){let o=it();if(!o)return!1;if(e.preventDefault(),Yt(e)){let r=Nr(e);o.remove();let i=(0,y.$createRangeSelection)();r!=null&&i.applyDOMRange(r),(0,y.$setSelection)(i)}return!0}function it(){let e=(0,y.$getSelection)();if(!(0,y.$isNodeSelection)(e))return null;let o=e.getNodes()[0];return(0,_e.$isUploadNode)(o)?o:null}function Yt(e){let t=e.target;return!!(t&&t instanceof HTMLElement&&!t.closest("code, span.editor-image")&&t.parentElement&&t.parentElement.closest("div.ContentEditable__root"))}function Nr(e){let t,o=e.target,r=o==null?null:o.nodeType===9?o.defaultView:o.ownerDocument.defaultView,i=xr(r);if(document.caretRangeFromPoint)t=document.caretRangeFromPoint(e.clientX,e.clientY);else if(e.rangeParent&&i!==null)i.collapse(e.rangeParent,e.rangeOffset||0),t=i.getRangeAt(0);else throw Error("Cannot get the selection when dragging");return t}var Dr=()=>(0,St.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,St.jsx)("path",{St:"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"})}),Qt=Dr;var Tr=()=>(0,St.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,St.jsx)("path",{St:"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"})}),eo=Tr;var Mr=()=>(0,St.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,St.jsx)("path",{St:"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,St.jsx)("path",{St:"M5.09961 16.3H14.9016V16.95H5.09961V16.3Z",fill:"currentColor"})]}),to=Mr;var Pr=()=>(0,St.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,St.jsx)("path",{St:"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,St.jsx)("path",{St:"M4.99756 11.44H15.0026V12.19H4.99756V11.44Z",fill:"currentColor"})]}),oo=Pr;var Rr=()=>(0,St.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,St.jsx)("path",{St:"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"})}),ro=Rr;var Sr=()=>(0,St.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,St.jsx)("path",{St:"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"})}),no=Sr;var io=()=>(0,St.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,St.jsx)("path",{St:"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"})}),ao=()=>(0,St.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,St.jsx)("path",{St:"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"})}),so=()=>(0,St.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,St.jsx)("path",{St:"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"})}),lo=()=>(0,St.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,St.jsx)("path",{St:"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"})}),co=()=>(0,St.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,St.jsx)("path",{St:"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 te=$(require("react")),C=$(require("@radix-ui/react-dropdown-menu")),be=require("@radix-ui/react-icons");var Be=C.Root,Ue=C.Trigger;var kr=te.forwardRef(({className:e,inset:t,children:o,...r},i)=>(0,St.jsxs)(C.SubTrigger,{ref:i,className:D("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[o,(0,St.jsx)(be.ChevronRightIcon,{className:"ml-auto"})]}));kr.displayName=C.SubTrigger.displayName;var Ir=te.forwardRef(({className:e,...t},o)=>(0,St.jsx)(C.SubContent,{ref:o,className:D("St-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}));Ir.displayName=C.SubContent.displayName;var Se=te.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,St.jsx)(C.Portal,{children:(0,St.jsx)(C.Content,{ref:r,sideOffset:t,className:D("St-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})}));Se.displayName=C.Content.displayName;var ke=te.forwardRef(({className:e,inset:t,...o},r)=>(0,St.jsx)(C.Item,{ref:r,className:D("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));ke.displayName=C.Item.displayName;var Er=te.forwardRef(({className:e,children:t,checked:o,...r},i)=>(0,St.jsxs)(C.CheckboxItem,{ref:i,className:D("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...r,children:[(0,St.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,St.jsx)(C.ItemIndicator,{children:(0,St.jsx)(be.CheckIcon,{className:"h-4 w-4"})})}),t]}));Er.displayName=C.CheckboxItem.displayName;var Lr=te.forwardRef(({className:e,children:t,...o},r)=>(0,St.jsxs)(C.RadioItem,{ref:r,className:D("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,St.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,St.jsx)(C.ItemIndicator,{children:(0,St.jsx)(be.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Lr.displayName=C.RadioItem.displayName;var Hr=te.forwardRef(({className:e,inset:t,...o},r)=>(0,St.jsx)(C.Label,{ref:r,className:D("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Hr.displayName=C.Label.displayName;var Ar=te.forwardRef(({className:e,...t},o)=>(0,St.jsx)(C.Separator,{ref:o,className:D("-mx-1 my-1 h-px bg-muted",e),...t}));Ar.displayName=C.Separator.displayName;var Vr=({className:e,...t})=>(0,St.jsx)("span",{className:D("ml-auto text-xs tracking-widest opacity-60",e),...t});Vr.displayName="DropdownMenuShortcut";var dt=1;function Fr(){return(0,St.jsx)("span",{className:"border border-[#222222]"})}function mt(){let[e]=(0,po.useLexicalComposerContext)(),t=(0,oe.useRef)(null),[o,r]=(0,oe.useState)(!1),[i,n]=(0,oe.useState)(!1),[a,s]=(0,oe.useState)(!1),[c,f]=(0,oe.useState)(!1),[h,x]=(0,oe.useState)(!1),[m,b]=(0,oe.useState)(!1),[p,N]=(0,oe.useState)(!1),[l,w]=(0,oe.useState)(!1),[P,O]=(0,oe.useState)(!1),[M,_]=(0,oe.useState)("left"),[re,le]=(0,oe.useState)("p"),Z=u=>{e.update(()=>{let E=(0,y.$getSelection)();(0,y.$isRangeSelection)(E)&&(u==="p"?(0,pt.$setBlocksType)(E,()=>(0,y.$createParagraphNode)()):(0,pt.$setBlocksType)(E,()=>(0,yo.$createHeadingNode)(u)))})},ce=(0,oe.useCallback)(()=>{let u=(0,y.$getSelection)();if((0,y.$isRangeSelection)(u)){s(u.hasFormat("bold")),f(u.hasFormat("italic")),x(u.hasFormat("underline")),b(u.hasFormat("strikethrough")),N(u.hasFormat("subscript")),w(u.hasFormat("superscript"));let E=u.anchor.getNode(),H=E;for(;H&&!(0,y.$isParagraphNode)(H)&&H!==(0,y.$getRoot)();){let B=H.getParent();B&&(H=B)}if(H){let B=H.getFormatType();_(B||"left")}let q=E.getTopLevelElement()?.__tag;le(q||"p")}},[]);(0,oe.useEffect)(()=>(0,Ie.mergeRegister)(e.registerUpdateListener(({editorState:u})=>{u.read(()=>{ce()})}),e.registerCommand(y.SELECTION_CHANGE_COMMAND,(u,E)=>(ce(),!1),dt),e.registerCommand(y.CAN_UNDO_COMMAND,u=>(r(u),!1),dt),e.registerCommand(y.CAN_REDO_COMMAND,u=>(n(u),!1),dt),(0,Ie.mergeRegister)(e.registerCommand(rt,u=>(e.update(()=>{let E=(0,y.$getSelection)()||(0,y.$getPreviousSelection)();if((0,y.$isRangeSelection)(E)){let H=he({id:u.id,fields:u.fields,relationTo:u.relationTo,value:u.value}),{focus:q}=E,B=q.getNode();(0,Ie.$insertNodeToNearestRoot)(H),(0,y.$isParagraphNode)(B)&&!B.__first&&B.remove()}}),!0),y.COMMAND_PRIORITY_EDITOR))),[e,ce]);let xe=[[{label:"Undo",icon:(0,St.jsx)(ve.RotateCcw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(y.UNDO_COMMAND,void 0)},disabled:!o},{label:"Redo",icon:(0,St.jsx)(ve.RotateCw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(y.UNDO_COMMAND,void 0)},disabled:!i}],[{label:"Bold",icon:(0,St.jsx)(Qt,{}),onClick:()=>{e.dispatchCommand(y.FORMAT_TEXT_COMMAND,"bold")},value:"bold",active:a},{label:"Italic",icon:(0,St.jsx)(eo,{}),onClick:()=>{e.dispatchCommand(y.FORMAT_TEXT_COMMAND,"italic")},value:"italic",active:c},{label:"Underline",icon:(0,St.jsx)(to,{}),onClick:()=>{e.dispatchCommand(y.FORMAT_TEXT_COMMAND,"underline")},value:"underline",active:h},{label:"Strikethrough",icon:(0,St.jsx)(oo,{}),onClick:()=>{e.dispatchCommand(y.FORMAT_TEXT_COMMAND,"strikethrough")},value:"strikethrough",active:m},{label:"Subscript",icon:(0,St.jsx)(ro,{}),onClick:()=>{e.dispatchCommand(y.FORMAT_TEXT_COMMAND,"subscript")},value:"subscript",active:p},{label:"Superscript",icon:(0,St.jsx)(no,{}),onClick:()=>{e.dispatchCommand(y.FORMAT_TEXT_COMMAND,"superscript")},value:"superscript",active:l}]],de=[{label:"Left Align",direction:"left",icon:(0,St.jsx)(ve.AlignLeft,{width:15,height:15}),onClick:()=>{e.dispatchCommand(y.FORMAT_ELEMENT_COMMAND,"left")}},{label:"Center Align",direction:"center",icon:(0,St.jsx)(ve.AlignCenter,{width:15,height:15}),onClick:()=>{e.dispatchCommand(y.FORMAT_ELEMENT_COMMAND,"center")}},{label:"Right Align",direction:"right",icon:(0,St.jsx)(ve.AlignRight,{width:15,height:15}),onClick:()=>{e.dispatchCommand(y.FORMAT_ELEMENT_COMMAND,"right")}},{label:"Justify Align",direction:"justify",icon:(0,St.jsx)(ve.AlignJustify,{width:15,height:15}),onClick:()=>{e.dispatchCommand(y.FORMAT_ELEMENT_COMMAND,"justify")}}],pe=[{label:"Normal Text",value:"p",icon:(0,St.jsx)(io,{}),onClick:()=>Z("p")},{label:"Heading 1",value:"h1",icon:(0,St.jsx)(ao,{}),onClick:()=>Z("h1")},{label:"Heading 2",value:"h2",icon:(0,St.jsx)(so,{}),onClick:()=>Z("h2")},{label:"Heading 3",value:"h3",icon:(0,St.jsx)(lo,{}),onClick:()=>Z("h3")},{label:"Heading 4",value:"h4",icon:(0,St.jsx)(co,{}),onClick:()=>Z("h4")},...[{label:"Unordered List",value:"ul",icon:(0,St.jsx)(ve.List,{width:15,height:15}),onClick:()=>{e.dispatchCommand($e.INSERT_UNORDERED_LIST_COMMAND,void 0)}},{label:"Ordered List",value:"ol",icon:(0,St.jsx)(ve.ListOrdered,{width:15,height:15}),onClick:()=>{e.dispatchCommand($e.INSERT_ORDERED_LIST_COMMAND,void 0)}}]],me=[{label:"Insert Image",icon:(0,St.jsx)(ve.ImageUp,{width:15,height:15}),onClick:()=>{O(!0)},disabled:!1}];return(0,St.jsx)("div",{className:"flex justify-between border border-[#222222] py-2 px-2 sticky top-0 bg-black St-50",children:(0,St.jsxs)("div",{className:"flex gap-2 ",ref:t,children:[xe.map((u,E)=>(0,St.jsxs)(oe.Fragment,{children:[(0,St.jsx)("div",{className:"flex items-center gap-2",children:u.map((H,q)=>(0,St.jsx)("div",{role:"button","aria-disabled":H.disabled||!1,onClick:H.onClick,className:D("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]",H.active&&"bg-[#3c3c3c]"),"aria-label":H.label,children:(0,St.jsx)(Fe,{children:(0,St.jsxs)(ze,{children:[(0,St.jsx)(Oe,{className:"text-[#b5b5b5]",children:H.icon}),(0,St.jsx)(Te,{children:(0,St.jsx)("p",{children:H.label})})]})})},q))}),(0,St.jsx)(Fr,{})]},`toolbar-option-${u.length}-${E}`)),(0,St.jsxs)(Be,{children:[(0,St.jsxs)(Ue,{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:[de.find(u=>u.direction===M)?.icon,de.find(u=>u.direction===M)?.label,(0,St.jsx)(ve.ChevronDown,{width:15,height:15})]}),(0,St.jsx)(Se,{className:"bg-black hover:bg-black",children:de.map((u,E)=>(0,St.jsxs)(ke,{onClick:u.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,St.jsx)("span",{children:u.icon}),(0,St.jsx)("span",{children:u.label})]},`${u.label}-${E}`))})]}),(0,St.jsxs)(Be,{children:[(0,St.jsxs)(Ue,{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:[pe.find(u=>u.value===re)?.icon,pe.find(u=>u.value===re)?.label,(0,St.jsx)(ve.ChevronDown,{width:15,height:15})]}),(0,St.jsx)(Se,{className:"bg-black hover:bg-black",children:pe.map((u,E)=>(0,St.jsxs)(ke,{onClick:u.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,St.jsx)("span",{children:u.icon}),(0,St.jsx)("span",{children:u.label})]},`heading-option-${u.label}-${E}`))})]}),(0,St.jsxs)(Be,{children:[(0,St.jsxs)(Ue,{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:[(0,St.jsx)(ve.Plus,{width:15,height:15}),(0,St.jsx)(ve.ChevronDown,{width:15,height:15})]}),(0,St.jsx)(Se,{className:"bg-black hover:bg-black",children:me.map((u,E)=>(0,St.jsxs)(ke,{onClick:u.onClick,disabled:u.disabled,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,St.jsx)("span",{children:u.icon}),(0,St.jsx)("span",{children:u.label})]},E))})]}),P&&(0,St.jsx)(qt,{activeEditor:e,onClose:()=>{O(!1)},isOpen:P})]})})}var zr=({setValue:e,value:t,name:o,editable:r=!0})=>{let[i]=(0,po.useLexicalComposerContext)(),n=(0,oe.useRef)(null),a=s=>{s.read(()=>{let c=s.toJSON();JSON.stringify(c)!==JSON.stringify(n.current)&&(n.current=c,e?.(()=>c))})};return(0,oe.useEffect)(()=>{i.setEditable(r)},[r,i]),(0,oe.useEffect)(()=>{t&&JSON.stringify(t)!==JSON.stringify(n.current)&&i.update(()=>{try{let s=i.parseEditorState(t);i.setEditorState(s),n.current=t}catch(s){console.error("Error parsing editor state:",s)}},{discrete:!0})},[t,i]),(0,St.jsx)("div",{className:"w-full",children:(0,St.jsxs)("div",{className:" ",children:[r&&(0,St.jsx)(mt,{}),(0,St.jsxs)("div",{className:"px-4 my-4 border-l border-[#222222]",children:[(0,St.jsx)(vo.RichTextPlugin,{contentEditable:(0,St.jsx)(go.ContentEditable,{name:o,className:"focus:outline-none focus:ring-0 focus-visible:outline-none min-h-40"}),ErrorBoundary:ho.LexicalErrorBoundary}),r&&(0,St.jsxs)(St.Fragment,{children:[(0,St.jsx)(bo.HistoryPlugin,{}),(0,St.jsx)(uo.AutoFocusPlugin,{}),(0,St.jsx)(xo.ListPlugin,{}),(0,St.jsx)(wo.OnChangePlugin,{onChange:a}),(0,St.jsx)(nt,{})]})]})]})})},Or=({setValue:e,value:t,name:o,editable:r=!0})=>(0,St.jsx)(fo.LexicalComposer,{initialConfig:{namespace:"Lexical editor",nodes:[Ge.ListNode,Ge.ListItemNode,yo.HeadingNode,Me],onError(n){throw console.error("Lexical error:",n),n},theme:{code:"editor-code",heading:{h1:"text-4xl text-primary",h2:"text-3xl",h3:"text-2xl",h4:"text-lg",h5:"text-sm"},image:"editor-image",link:"editor-link",list:{listitem:"editor-listitem",nested:{listitem:"editor-nested-listitem"},ol:"list-decimal",ul:"list-disc"},ltr:"ltr",paragraph:"editor-paragraph",placeholder:"editor-placeholder",quote:"editor-quote",rtl:"rtl",text:{bold:"editor-text-bold font-bold",code:"editor-text-code",hashtag:"editor-text-hashtag",italic:"editor-text-italic italic",overflowed:"editor-text-overflowed",strikethrough:"editor-text-strikethrough line-through",underline:"editor-text-underline underline",underlineStrikethrough:"underline line-through"}}},children:(0,St.jsx)(zr,{value:t,setValue:e,name:o,editable:r})}),No=Or;var Le=e=>"mimeType"in e&&"url"in e&&!("format"in e),_r=e=>{if(!e?.root?.children)return"";let t=[],o=n=>{if(!n)return"";switch(n.type){case"heading":{let a=n.tag?parseInt(n.tag.replace("h","")):1,s=r(n.children||[]);return"#".repeat(a)+" "+s}case"paragraph":return n.children&&n.children.some(c=>c.type==="text"?c.text&&c.text.trim().length>0:(c.type==="linebreak",!0))?r(n.children||[]):"";case"list":{let a=[],s=n.listType==="number"?"1.":"-";return n.children?.forEach((c,f)=>{if(c.type==="listitem"){let h=r(c.children||[]),x=n.listType==="number"?`${f+1}.`:s;a.push(`${x} ${h}`)}}),a.join(`
|
|
5
|
+
`)}case"listitem":return r(n.children||[]);case"text":{let a=n.text||"";if(n.format){let s=(n.format&1)!==0,c=(n.format&2)!==0,f=(n.format&4)!==0,h=(n.format&8)!==0;(n.format&16)!==0?a=`\`${a}\``:(s&&(a=`**${a}**`),c&&(a=`*${a}*`),f&&(a=`~~${a}~~`),h&&(a=`<u>${a}</u>`))}return a}default:return n.children?r(n.children):""}},r=n=>n.map(a=>{if(a.type==="text"){let s=a.text||"";if(a.format){let c=(a.format&1)!==0,f=(a.format&2)!==0,h=(a.format&4)!==0,x=(a.format&8)!==0;(a.format&16)!==0?s=`\`${s}\``:(c&&(s=`**${s}**`),f&&(s=`*${s}*`),h&&(s=`~~${s}~~`),x&&(s=`<u>${s}</u>`))}return s}else{if(a.type==="paragraph")return r(a.children||[]);if(a.type==="listitem")return r(a.children||[]);if(a.type==="linebreak")return`
|
|
6
|
+
`}return o(a)}).filter(Boolean).join("");e.root.children.forEach(n=>{let a=o(n);n.type==="paragraph"?t.push(a||""):a&&t.push(a)});let i=[];for(let n=0;n<t.length;n++)i.push(t[n]),n<t.length-1&&(t[n]===""||t[n+1]===""||i.push(""));return i.join(`
|
|
7
|
+
`)},se=e=>{let t=[],o=0;for(;o<e.length;){let i=e.slice(o).match(/^<u\s*[^>]*>([\s\S]*?)<\/u>/i);if(i&&i[0]){let m=i[1]||"",b=m?se(m):[];b.length>0?(b.forEach(p=>{p.type==="text"&&(p.format=(p.format||0)|8)}),t.push(...b)):m===""&&t.push({type:"text",text:"",format:8}),o+=i[0].length;continue}if(e.slice(o).startsWith("</u>")){o+=4;continue}let n=e.slice(o).match(/^(`+)([^`]+)\1/);if(n){let m=n[2];m&&t.push({type:"text",text:m,format:16}),o+=n[0].length;continue}let a=e.slice(o).match(/^(~~)(.+?)\1/);if(a){let m=a[2],b=se(m);b.forEach(p=>{p.type==="text"&&(p.format=(p.format||0)|4)}),t.push(...b),o+=a[0].length;continue}let s=e.slice(o).match(/^(\*\*|__)(.+?)\1/);if(s){let m=s[2],b=se(m);b.forEach(p=>{p.type==="text"&&(p.format=(p.format||0)|1)}),t.push(...b),o+=s[0].length;continue}let c=e.slice(o).match(/^(\*|_)([^*_\n]+?)\1(?!\*|_)/);if(c&&c[0].length>2){let m=c[2],b=se(m);b.forEach(p=>{p.type==="text"&&(p.format=(p.format||0)|2)}),t.push(...b),o+=c[0].length;continue}if(e[o]===`
|
|
8
|
+
`){t.push({type:"linebreak",version:1}),o+=1;continue}let f=e.length,h=[{pattern:/<u>/i,offset:0},{pattern:/\*\*/,offset:0},{pattern:/__/,offset:0},{pattern:/~~/,offset:0},{pattern:/`+/,offset:0},{pattern:/\*[^*\n]/,offset:0},{pattern:/_[^_\n]/,offset:0},{pattern:/\n/,offset:0}];for(let{pattern:m}of h){let b=e.slice(o+1).search(m);b!==-1&&b+1<f-o&&(f=o+b+1)}let x=e.slice(o,f);x&&t.push({type:"text",text:x,format:0}),o=f}let r=[];for(let i of t)i.type==="linebreak"?r.push(i):r.length>0&&r[r.length-1].type==="text"&&i.type==="text"&&r[r.length-1].format===i.format?r[r.length-1].text+=i.text:r.push(i);return r.length>0?r:[{type:"text",text:"",format:0}]},Br=e=>{let t=e.split(`
|
|
9
|
+
`),o=[],r=[],i=[],n=null,a=()=>{if(r.length>0){for(let c=0;c<r.length;c++){let f=r[c],h=se(f),x=h.length>0?h.map(m=>({...m,mode:"normal",style:"",detail:0,version:1})):[{type:"text",text:"",format:0,mode:"normal",style:"",detail:0,version:1}];o.push({type:"paragraph",children:x,direction:"ltr",format:"",indent:0,version:1})}r=[]}},s=()=>{i.length>0&&n&&(o.push({type:"list",listType:n,tag:n==="number"?"ol":"ul",start:1,format:"",indent:0,version:1,direction:"ltr",children:i}),i=[],n=null)};for(let c of t){let f=c.trim();if(!f){a(),s(),o.push({children:[],direction:null,format:"",indent:0,type:"paragraph",version:1,textFormat:0,textStyle:""});continue}let h=f.match(/^(#{1,6})\s+(.+)$/);if(h){a(),s();let b=h[1].length,p=h[2],N=se(p);o.push({type:"heading",tag:`h${b}`,children:N.length>0?N:[{type:"text",text:"",format:0}]});continue}let x=f.match(/^(\St+)\.\s+(.*)$/);if(x){a(),n==="bullet"&&s(),n!=="number"&&(i.length>0&&s(),n="number");let b=x[2]||"",p=se(b),N=p.length>0?p.map(l=>({...l,mode:"normal",style:"",detail:0,version:1})):[{type:"text",text:"",format:0,mode:"normal",style:"",detail:0,version:1}];i.push({type:"listitem",value:i.length+1,format:"start",indent:0,version:1,direction:"ltr",children:[{type:"paragraph",children:N,direction:"ltr",format:"",indent:0,version:1}]});continue}let m=f.match(/^[-*+]\s+(.+)$/);if(m){a(),n==="number"&&s(),n!=="bullet"&&(i.length>0&&s(),n="bullet");let b=m[1],p=se(b),N=p.length>0?p.map(l=>({...l,mode:"normal",style:"",detail:0,version:1})):[{type:"text",text:"",format:0,mode:"normal",style:"",detail:0,version:1}];i.push({type:"listitem",value:i.length+1,format:"start",indent:0,version:1,direction:"ltr",children:[{type:"paragraph",children:N,direction:"ltr",format:"",indent:0,version:1}]});continue}i.length>0&&s(),r.push(c)}return a(),s(),o.length===0&&o.push({type:"paragraph",children:[{type:"text",text:"",format:0}]}),{root:{type:"root",children:o,direction:"ltr",format:"",indent:0,version:1}}},Ur=async e=>{let t="",o,r="text";if(e.url)try{let i=e.url;!i.startsWith("http://")&&!i.startsWith("https://")&&!i.startsWith("/")&&(i="/"+i);let n=await fetch(i);n.ok?(t=await n.text(),console.log("Successfully loaded content, length:",t.length)):console.error("Failed to fetch file content:",n.status,n.statusText)}catch(i){console.error("Failed to fetch file content:",i)}else console.warn("No URL provided for file:",e.name);return e.mimeType==="text/markdown"?(r="richText",o=Br(t)):e.mimeType?.startsWith("text/")&&(r="text"),{id:e.id.toString(),title:e.name,description:void 0,content:r==="richText"?void 0:t,richTextContent:r==="richText"?o:void 0,format:r,metadata:{},createdAt:typeof e.createdAt=="string"?new Date(e.createdAt):e.createdAt,updatedAt:new Date}};function To({document:e,onCancel:t,onSave:o,onFileUpdate:r}){let[i,n]=(0,oe.useState)(Le(e)),[a,s]=(0,oe.useState)(Le(e)?{id:e.id.toString(),title:e.name,description:void 0,content:"",format:"text",metadata:{},createdAt:typeof e.createdAt=="string"?new Date(e.createdAt):e.createdAt,updatedAt:new Date}:{...e,updatedAt:new Date}),[c,f]=(0,oe.useState)(Le(e)?void 0:a.richTextContent),[h,x]=(0,oe.useState)(!1),m=(0,oe.useRef)(Le(e)?e:null);(0,oe.useEffect)(()=>{Le(e)?(n(!0),Ur(e).then(l=>{s(l),f(l.richTextContent),n(!1)}).catch(l=>{l instanceof Error&&l.name!=="AbortError"&&(console.error("Failed to convert file:",l),n(!1))})):(s({...e,updatedAt:new Date}),f(e.richTextContent))},[e]);let b=l=>{switch(l){case"markdown":case"mdx":return(0,St.jsx)(ve.FileText,{className:"h-6 w-6 text-primary"});case"richText":return(0,St.jsx)(ve.File,{className:"h-6 w-6 text-success"});case"text":return(0,St.jsx)(ve.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,St.jsx)(ve.File,{className:"h-6 w-6 text-muted-foreground"})}},p=l=>{switch(l){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richText":return"bg-success/10 text-success border-success/20";case"text":return"bg-muted/50 text-muted-foreground border-muted-foreground/20";default:return"bg-muted text-muted-foreground border-border"}},N=async()=>{x(!0);try{let l,w;if(m.current&&m.current.mimeType==="text/markdown"){let O=c?_r(c):"";l={...a,format:"markdown",content:O,richTextContent:void 0},w=O}else l={...a,richTextContent:c},w=a.content||"";let P=m.current?m.current.id.toString():a.id;await Promise.resolve(o()),r?.(P,w)}finally{x(!1)}};return(0,St.jsxs)(ut.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-screen flex flex-col",children:[(0,St.jsx)("div",{className:"border-b border-border bg-card p-8 pb-6",children:(0,St.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,St.jsx)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:(0,St.jsx)("div",{className:"flex-1 min-w-0",children:(0,St.jsxs)("div",{className:"flex items-start gap-4 mb-0 leading-tight",children:[(0,St.jsx)("div",{className:"flex-1 min-w-0",children:(0,St.jsx)(Ot,{fieldName:"title",value:a.title,label:"",onSave:(l,w)=>s(P=>({...P,title:w})),className:"[&>div:last-child]:text-2xl [&>div:last-child]:font-bold [&>div:last-child]:leading-tight [&>div:last-child]:text-foreground [&>div:last-child]:p-0 [&>div:last-child]:border-0 [&>div:last-child]:hover:bg-muted/30 [&>div:last-child]:min-h-0"})}),(0,St.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${p(a.format)} flex-shrink-0 mt-1`,children:a.format.toUpperCase()})]})})}),(0,St.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(0,St.jsxs)(j,{variant:"outline",size:"sm",onClick:t,className:"gap-2",children:[(0,St.jsx)(ve.St,{className:"h-4 w-4"}),"Close"]}),(0,St.jsxs)(j,{size:"sm",onClick:N,className:"gap-2",disabled:h,children:[h?(0,St.jsx)(ve.Loader2,{className:"h-4 w-4 animate-spin"}):(0,St.jsx)(ve.Save,{className:"h-4 w-4"}),h?"Saving...":"Save"]})]})]})}),(0,St.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,St.jsx)("div",{className:"p-8 pt-0 h-full max-h-full overflow-auto",children:i?(0,St.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,St.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,St.jsx)(ve.Loader2,{className:"h-8 w-8 animate-spin text-primary"}),(0,St.jsx)("p",{className:"text-sm text-muted-foreground",children:"Loading file content..."})]})}):(0,St.jsx)(St.Fragment,{children:a.format==="richText"?(0,St.jsx)(No,{setValue:f,value:c,name:"richTextContent"},`richtext-${a.id}-${i?"loading":"loaded"}`):(0,St.jsx)(De,{value:a.content||"",onChange:l=>s(w=>({...w,content:l.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})})})})]})}var Mo=e=>{if(!e||e<=0)return"0 KB";let t=e/1024;return t<1024?`${t.toFixed(2)} KB`:`${(t/1024).toFixed(2)} MB`};function $r({files:e,onFileClick:t,onFileDelete:o,onFileUpdate:r,showHeader:i=!0,className:n,viewMode:a="list"}){let[s,c]=(0,oe.useState)(!1),[f,h]=(0,oe.useState)(!1),[x,m]=(0,oe.useState)(null),b=()=>{c(!1),m(null)},p=()=>{h(!0),setTimeout(()=>{h(!1),c(!1),m(null)},500)},N=l=>{m(l),c(!0)};return(0,St.jsxs)("div",{className:D("rounded-3xl border overflow-hidden",n),children:[(0,St.jsxs)("div",{className:"bg-muted/50 p-3 flex items-center justify-between",children:[i&&a==="list"&&(0,St.jsxs)("div",{className:"hidden md:grid md:grid-cols-10 text-sm font-medium flex-1",children:[(0,St.jsx)("div",{className:"col-span-6",children:"Name"}),(0,St.jsx)("div",{className:"col-span-2",children:"Size"}),(0,St.jsx)("div",{className:"col-span-2",children:"Modified"})]}),a==="card"&&(0,St.jsx)("div",{className:"text-sm font-medium",children:"Files"})]}),a==="list"&&(0,St.jsx)("div",{className:"divide-y",children:e.map(l=>(0,St.jsxs)(ut.motion.div,{whileHover:{backgroundColor:"rgba(0,0,0,0.02)"},className:"p-3 md:grid md:grid-cols-10 items-center flex flex-col md:flex-row gap-3 md:gap-0 cursor-pointer",onClick:()=>t?.(l),children:[(0,St.jsxs)("div",{className:"col-span-6 flex items-center gap-3 w-full md:w-auto",children:[(0,St.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-muted"}),(0,St.jsx)("div",{children:(0,St.jsx)("p",{className:"font-medium",children:l.name})})]}),(0,St.jsx)("div",{className:"col-span-2 text-sm md:text-base",children:Mo(l.filesize)}),(0,St.jsxs)("div",{className:"col-span-2 flex items-center justify-between w-full md:w-auto",children:[(0,St.jsx)("span",{className:"text-sm md:text-base",children:new Date(l.createdAt).toLocaleDateString()}),(0,St.jsxs)("div",{className:"flex gap-1",children:[l.mimeType==="text/markdown"&&(0,St.jsx)(j,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",onClick:w=>{w.stopPropagation(),N(l)},children:(0,St.jsx)(ve.Edit,{className:"h-4 w-4"})}),(0,St.jsx)(j,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl text-red-500 hover:text-red-600",onClick:w=>{w.stopPropagation(),o?.(l)},children:(0,St.jsx)(ve.Trash2,{className:"h-4 w-4"})})]})]})]},l.name))}),a==="card"&&(0,St.jsx)("div",{className:"p-4 grid grid-cols-1 gap-4",children:e.map(l=>(0,St.jsx)(ut.motion.div,{whileHover:{scale:1.02},className:"border rounded-lg p-4 bg-card hover:bg-muted/50 transition-colors cursor-pointer",onClick:()=>t?.(l),children:(0,St.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,St.jsxs)("div",{className:"flex-1 min-w-0 space-y-2",children:[(0,St.jsxs)("div",{className:"flex items-center gap-3",children:[(0,St.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-muted flex-shrink-0"}),(0,St.jsx)("div",{className:"min-w-0 flex-1",children:(0,St.jsx)("p",{className:"font-medium truncate",children:l.name})})]}),(0,St.jsxs)("div",{className:"space-y-1 text-sm text-muted-foreground pl-[52px]",children:[(0,St.jsxs)("div",{className:"flex items-center gap-2",children:[(0,St.jsx)("span",{className:"font-medium",children:"Size:"}),(0,St.jsx)("span",{children:Mo(l.filesize)})]}),(0,St.jsxs)("div",{className:"flex items-center gap-2",children:[(0,St.jsx)("span",{className:"font-medium",children:"Modified:"}),(0,St.jsx)("span",{children:new Date(l.createdAt).toLocaleDateString()})]})]})]}),(0,St.jsxs)("div",{className:"flex flex-col gap-2 flex-shrink-0",children:[l.mimeType==="text/markdown"&&(0,St.jsx)(j,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",onClick:w=>{w.stopPropagation(),N(l)},title:"Edit",children:(0,St.jsx)(ve.Edit,{className:"h-4 w-4"})}),(0,St.jsx)(j,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl text-red-500 hover:text-red-600",onClick:w=>{w.stopPropagation(),o?.(l)},title:"Delete",children:(0,St.jsx)(ve.Trash2,{className:"h-4 w-4"})})]})]})},l.name))}),(0,St.jsx)(Ae,{open:s,onOpenChange:l=>!l&&b(),children:(0,St.jsxs)(Je,{children:[(0,St.jsx)(Ve,{}),(0,St.jsxs)(Po.Content,{className:D("fixed inset-0 St-50 bg-background p-0 m-0 border-0","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"),children:[(0,St.jsx)(Ne,{className:"sr-only",children:x?`Edit ${x.name}`:"Edit File"}),f&&(0,St.jsx)("div",{className:"absolute inset-0 bg-background/50 flex items-center justify-center St-50",children:(0,St.jsx)(ve.Loader2,{className:"h-8 w-8 animate-spin text-primary"})}),x&&(0,St.jsx)(To,{document:x,onSave:p,onFileUpdate:r,onCancel:b})]})]})})]})}0&&(module.exports={FileList});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../chunk-HTS3KCJL.mjs";import"../../chunk-AN744MXS.mjs";import"../../chunk-VTFO5GXK.mjs";import"../../chunk-GULRIPMU.mjs";import"../../chunk-RKS7CWAP.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-BZEGLKRZ.mjs";import"../../chunk-K7N3FRGH.mjs";import"../../chunk-DFIXTV2M.mjs";import"../../chunk-Q5Q3DJWU.mjs";import"../../chunk-U5PBLRRV.mjs";import"../../chunk-4QRKVSTE.mjs";import"../../chunk-E4TE4NV6.mjs";import"../../chunk-JFFTEK6Z.mjs";import"../../chunk-JHNVX4UB.mjs";import"../../chunk-7BXIU4ZM.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-76M7JE4D.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-OYZDAMCS.mjs";import"../../chunk-5NRGSTPV.mjs";import"../../chunk-ZFUP5NVF.mjs";import"../../chunk-4UIARERB.mjs";import"../../chunk-D4IMQTVU.mjs";import"../../chunk-7GSXNSLD.mjs";import"../../chunk-YNCJATT7.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-QTW33JYG.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 FileList};
|