@wulperstudio/editor-render 0.0.15-beta → 0.0.17-beta

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.
Files changed (41) hide show
  1. package/base/base.d.ts +2 -2
  2. package/base/base.js +1 -1
  3. package/base/base.mjs +1 -1
  4. package/base/base.types.d.ts +0 -7
  5. package/base/base.types.js +1 -1
  6. package/components/index.d.ts +1 -3
  7. package/components/index.js +1 -1
  8. package/components/index.mjs +1 -1
  9. package/helpers/RecursiveNode/index.js +1 -1
  10. package/helpers/RecursiveNode/index.mjs +1 -1
  11. package/helpers/header/index.js +1 -1
  12. package/helpers/header/index.mjs +1 -1
  13. package/helpers/index.d.ts +2 -3
  14. package/helpers/index.js +1 -1
  15. package/helpers/index.mjs +1 -1
  16. package/helpers/list/index.d.ts +5 -5
  17. package/helpers/list/index.js +1 -1
  18. package/helpers/list/index.mjs +1 -1
  19. package/helpers/paragraph/index.js +1 -1
  20. package/helpers/paragraph/index.mjs +1 -1
  21. package/helpers/table/index.js +1 -1
  22. package/helpers/table/index.mjs +1 -1
  23. package/interfaces/index.d.ts +37 -16
  24. package/interfaces/index.js +1 -1
  25. package/package.json +37 -3
  26. package/types/index.d.ts +1 -1
  27. package/types/index.js +1 -1
  28. package/components/CheckList/index.d.ts +0 -7
  29. package/components/CheckList/index.js +0 -2
  30. package/components/CheckList/index.mjs +0 -2
  31. package/components/CheckList/styled.d.ts +0 -2
  32. package/components/CheckListItem/index.d.ts +0 -7
  33. package/components/CheckListItem/index.js +0 -2
  34. package/components/CheckListItem/index.mjs +0 -2
  35. package/components/CheckListItem/styled.d.ts +0 -2
  36. package/helpers/checklist/index.d.ts +0 -15
  37. package/helpers/checklist/index.js +0 -2
  38. package/helpers/checklist/index.mjs +0 -2
  39. package/utils/base_embed_service.d.ts +0 -12
  40. package/utils/base_embed_service.js +0 -2
  41. package/utils/base_embed_service.mjs +0 -2
package/base/base.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { BaseRenderProps } from './base.types';
3
- export declare const BaseRender: ({ value, ParagraphSlot, HeaderSlot, DelimiterSlot, ListSlot, ImageSlot, TableSlot, EmbedSlot, RawSlot, QuoteSlot, CodeSlot, LinkSlot, CheckListSlot, }: BaseRenderProps) => import("react").JSX.Element;
2
+ import type { BaseRenderProps } from './base.types';
3
+ export declare const BaseRender: ({ value, ParagraphSlot, HeaderSlot, DelimiterSlot, ListSlot, ImageSlot, TableSlot, EmbedSlot, RawSlot, QuoteSlot, CodeSlot, LinkSlot, }: BaseRenderProps) => import("react").JSX.Element;
package/base/base.js CHANGED
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";var Xe=Object.create;var I=Object.defineProperty;var Je=Object.getOwnPropertyDescriptor;var Ke=Object.getOwnPropertyNames;var Ve=Object.getPrototypeOf,Ye=Object.prototype.hasOwnProperty;var Ze=(o,e)=>{for(var t in e)I(o,t,{get:e[t],enumerable:!0})},so=(o,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ke(e))!Ye.call(o,i)&&i!==t&&I(o,i,{get:()=>e[i],enumerable:!(a=Je(e,i))||a.enumerable});return o};var je=(o,e,t)=>(t=o!=null?Xe(Ve(o)):{},so(e||!o||!o.__esModule?I(t,"default",{value:o,enumerable:!0}):t,o)),ot=o=>so(I({},"__esModule",{value:!0}),o);var rt={};Ze(rt,{BaseRender:()=>tt});module.exports=ot(rt);var g=je(require("html-react-parser"));var mo=require("isomorphic-dompurify"),lo=o=>(0,mo.sanitize)(o,{FORBID_ATTR:["class"]});var co=require("@mui/material"),fo=(0,co.styled)("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});var Ro=require("react/jsx-runtime"),Po=({sx:o,...e})=>(0,Ro.jsx)(fo,{sx:o,...e});var ho=require("@mui/material"),Co=(0,ho.styled)("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var bo=require("react/jsx-runtime"),xo=({sx:o,...e})=>(0,bo.jsx)(Co,{sx:o,...e});var go=require("@mui/material"),ko=(0,go.styled)("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});var uo=require("react/jsx-runtime"),yo=({sx:o,...e})=>(0,uo.jsx)(ko,{sx:o,...e});var wo=require("@mui/material"),Lo=(0,wo.styled)("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});var Eo=require("react/jsx-runtime"),No=({sx:o,...e})=>(0,Eo.jsx)(Lo,{sx:o,...e});var To=require("@mui/material"),Do=(0,To.styled)("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var _o=require("react/jsx-runtime"),Io=({sx:o,...e})=>(0,_o.jsx)(Do,{sx:o,...e});var x=require("react/jsx-runtime"),N=(o,e)=>{if(!("name"in o)||!("children"in o))return null;let{name:t,children:a,attribs:i}=o;return t==="code"?(0,x.jsx)(Po,{id:`${t}-${e}`,children:(0,g.domToReact)(a,{replace:r=>N(r,e)})}):t==="b"?(0,x.jsx)(xo,{id:`${t}-${e}`,children:(0,g.domToReact)(a,{replace:r=>N(r,e)})}):t==="i"?(0,x.jsx)(yo,{id:`${t}-${e}`,children:(0,g.domToReact)(a,{replace:r=>N(r,e)})}):t==="mark"?(0,x.jsx)(No,{id:`${t}-${e}`,children:(0,g.domToReact)(a,{replace:r=>N(r,e)})}):t==="a"?(0,x.jsx)(Io,{id:`${t}-${e}`,href:i?.href,rel:"noopener noreferrer",target:"_blank",children:(0,g.domToReact)(a,{replace:r=>N(r,e)})}):null},h=({html:o,id:e})=>{let t=lo(o);return(0,x.jsx)(x.Fragment,{children:(0,g.default)(t,{replace:a=>N(a,e)})})};var Mo=require("@mui/material"),Wo=(0,Mo.styled)("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));var Bo=require("react/jsx-runtime"),s=({sx:o,...e})=>(0,Bo.jsx)(Wo,{sx:o,...e});var Ho=require("@mui/material"),vo=(0,Ho.styled)("p",{name:"RootParagraph",label:"root__paragraph",shouldForwardProp:o=>o!=="as"})({margin:0});var Fo=require("react/jsx-runtime"),E=({sx:o,...e})=>(0,Fo.jsx)(vo,{sx:o,...e});var _=require("react/jsx-runtime"),S=({type:o,data:e,id:t,Container:a,Paragraph:i})=>{let{text:r}=e,{sx:p,...d}=a||{};return(0,_.jsx)(s,{sx:p,...d,children:(0,_.jsx)(E,{id:`${o}-${t}`,...i,children:(0,_.jsx)(h,{html:r||"",id:t})})},t)};var $o=require("@mui/material"),So=(0,$o.styled)("h2",{name:"RootHeader",label:"root__header",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({marginBottom:0});var Ao=require("react/jsx-runtime"),et={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},Qo=({level:o,sx:e,...t})=>(0,Ao.jsx)(So,{as:et[o],sx:e,...t});var M=require("react/jsx-runtime"),Q=({type:o,data:e,id:t,Container:a,Header:i})=>{let{text:r}=e,{sx:p,...d}=a||{};return(0,M.jsx)(s,{sx:p,...d,children:(0,M.jsx)(Qo,{id:`${o}-${t}`,level:e.level,...i,children:(0,M.jsx)(h,{html:r,id:t})})},t)};var Yo=require("@mui/material");var k=(o,e)=>o===3?`calc(${(100/o).toFixed(2)}% - ${e*(o-1)/o}px)`:o===2?`calc(${(100/o).toFixed(2)}% - ${e*(o-1)/o}px)`:"100%";var zo=require("@mui/material"),Oo=(0,zo.styled)("div",{name:"RootList",label:"root__list",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var Go=require("react/jsx-runtime"),Uo=({sx:o,...e})=>(0,Go.jsx)(Oo,{sx:o,...e});var qo=require("@mui/material"),Xo=(0,qo.styled)("div",{name:"RootListItem",label:"root__list__item",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var Ko=require("react/jsx-runtime"),Jo=({sx:o,...e})=>(0,Ko.jsx)(Xo,{sx:o,...e});var Vo=require("@mui/material"),A=require("@iconify/react"),W=require("react/jsx-runtime"),B=({checked:o,sx:e,...t})=>(0,W.jsx)(Vo.Checkbox,{sx:e,size:"small",checked:o,icon:(0,W.jsx)(A.Icon,{icon:"akar-icons:circle-fill",color:"inherit",width:"24px",height:"24px"}),checkedIcon:(0,W.jsx)(A.Icon,{icon:"akar-icons:circle-check-fill",color:"inherit",width:"24px",height:"24px"}),...t});var b=require("react/jsx-runtime"),H=20,z=({type:o,data:e,id:t,tunes:a,Container:i,List:r,Item:p})=>{let{style:d}=e,{sx:c,...l}=i||{};return(0,b.jsx)(s,{sx:c,...l,children:(0,b.jsx)(Uo,{id:`${o}-${t}`,...r,sx:{display:"flex",flexWrap:"wrap",gap:`${H}px`,...r?.sx},children:e.items.map((R,C)=>(0,b.jsxs)(Jo,{...p,sx:{padding:"20px",borderRadius:"25px",backgroundColor:$=>$.palette.background.default,border:"1px solid #EFF3FE",display:"flex",flexWrap:"nowrap",alignItems:"center",columnGap:"5px",flexGrow:0,...d==="ordered"&&{alignItems:"center",boxShadow:"0px 4px 25px rgba(0, 0, 0, 0.05)"},flexBasis:k(1,H),...a?.columnTune?.size==="two-columns"&&{flexBasis:k(2,H)},...a?.columnTune?.size==="three-columns"&&{flexBasis:k(3,H)},...p?.sx},children:[(0,b.jsx)(B,{checked:!0,sx:{padding:"5px"}}),(0,b.jsx)(Yo.Box,{children:(0,b.jsx)(E,{children:(0,b.jsx)(h,{html:R,id:t})})})]},C))})},t)};var v=require("@mui/material"),Zo=(0,v.styled)("div",{name:"Root",label:"root",shouldForwardProp:o=>o!=="as"&&o!=="sx"&&o!=="stretched"&&o!=="withBorder"&&o!=="withBackground"})(({withBorder:o,withBackground:e,theme:t})=>({borderRadius:3,overflow:"hidden",...o&&{border:"1px solid",borderColor:t.palette.primary.main},...e&&{padding:15,backgroundColor:t.palette.background.paper}})),jo=(0,v.styled)("img",{name:"RootImage",label:"root__image",shouldForwardProp:o=>o!=="as"&&o!=="sx"&&o!=="stretched"&&o!=="withBorder"&&o!=="withBackground"})(({stretched:o,withBackground:e})=>({maxWidth:"100%",verticalAlign:"bottom",display:"block",...o&&{width:"100%"},...e&&{maxWidth:"60%",margin:"0 auto"}})),oe=(0,v.styled)("span",{name:"CaptionImage",label:"root__image__embed",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({marginTop:10});var y=require("react/jsx-runtime"),ee=({caption:o,withBorder:e,withBackground:t,stretched:a,sx:i,...r})=>(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Zo,{withBorder:e,stretched:a,withBackground:t,children:(0,y.jsx)(jo,{sx:i,...r,withBackground:t})}),o&&(0,y.jsx)(oe,{children:o})]});var O=require("react/jsx-runtime"),U=({type:o,data:e,id:t,Container:a,Image:i})=>{let{file:r,caption:p,withBorder:d,stretched:c,withBackground:l}=e,{sx:R,...C}=a||{};return(0,O.jsx)(s,{stretched:c,sx:R,...C,children:(0,O.jsx)(ee,{id:`${o}-${t}`,src:r?.url||"",alt:p,caption:p,withBorder:d,stretched:c,withBackground:l,...i},`${o}-${t}`)},t)};var te=require("@mui/material"),re=(0,te.styled)("div",{name:"RootTableRow",label:"root__table__row",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({display:"grid",gridTemplateColumns:"repeat(auto-fit,minmax(10px,1fr))",position:"relative",borderBottom:"1px solid",borderBottomColor:o.palette.primary.main}));var ie=require("react/jsx-runtime"),ae=({sx:o,...e})=>(0,ie.jsx)(re,{sx:o,...e});var pe=require("@mui/material"),ne=(0,pe.styled)("div",{name:"RootTable",label:"root__table",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({position:"relative",width:"100%",height:"100%",display:"grid",fontSize:14,borderTop:"1px solid",borderTopColor:o.palette.primary.main,lineHeight:1.4}));var de=require("react/jsx-runtime"),se=({sx:o,...e})=>(0,de.jsx)(ne,{sx:o,...e});var me=require("@mui/material"),le=(0,me.styled)("div",{name:"RootTableRow",label:"root__table__row",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({borderRight:"1px solid",borderRightColor:o.palette.primary.main,padding:"6px 12px",overflow:"hidden",outline:"none",lineBreak:"normal","&:first-of-type":{borderLeft:"unset",borderLeftColor:"unset"},"&:last-of-type":{borderRight:"unset",borderRightColor:"unset"}}));var fe=require("react/jsx-runtime"),ce=({sx:o,...e})=>(0,fe.jsx)(le,{sx:o,...e});var T=require("react/jsx-runtime"),G=({data:o,id:e,Container:t})=>{let{content:a}=o,{sx:i,...r}=t||{};return(0,T.jsx)(s,{sx:i,...r,children:(0,T.jsx)(se,{id:e,children:a.map((p,d)=>(0,T.jsx)(ae,{children:p.map((c,l)=>(0,T.jsx)(ce,{children:(0,T.jsx)(h,{html:c,id:e})},l))},d))},e)},e)};var Pe=require("@mui/material"),Re=(0,Pe.styled)("div",{name:"RootDelimiter",label:"root__delimiter",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({display:"flex",justifyContent:"center",alignItems:"center",fontSize:"2rem",fontWeight:700});var q=require("react/jsx-runtime"),he=({sx:o,...e})=>(0,q.jsx)(Re,{sx:o,...e,children:(0,q.jsx)("span",{children:"\u2743 \u2743 \u2743"})});var X=require("react/jsx-runtime"),J=({type:o,id:e,Delimiter:t,Container:a})=>{let{sx:i,...r}=a||{};return(0,X.jsx)(s,{sx:i,...r,children:(0,X.jsx)(he,{id:`${o}-${e}`,...t})},e)};var K=require("@mui/material"),Ce=(0,K.styled)("iframe",{name:"RootEmbed",label:"root__embed",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({width:"100%",border:0,borderRadius:8}),xe=(0,K.styled)("span",{name:"CaptionEmbed",label:"root__embed__caption",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({marginTop:10});var w=require("react/jsx-runtime"),be=({sx:o,caption:e,...t})=>(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Ce,{sx:o,...t}),e&&(0,w.jsx)(xe,{children:e})]});var V=require("react/jsx-runtime"),Y=({type:o,data:e,id:t,Container:a,Embed:i})=>{let{embed:r,width:p,height:d,caption:c}=e,{sx:l,...R}=a||{};return(0,V.jsx)(s,{sx:l,...R,children:(0,V.jsx)(be,{id:`${o}-${t}`,src:r,width:p,height:d,caption:c,...i})},t)};var ge=require("@mui/material"),ke=(0,ge.styled)("div",{name:"RootRaw",label:"root__raw",shouldForwardProp:o=>o!=="as"})({backgroundColor:"#1e2128",color:"#a1a7b6",overscrollBehavior:"contain",lineHeight:1.6,fontSize:12,minHeight:200,padding:"10px 12px",borderRadius:8,boxShadow:"inset 0 1px 2px 0 rgb(35 44 72 / 6%)",margin:"0",whiteSpace:"pre-wrap",resize:"vertical"});var ue=require("react/jsx-runtime"),ye=({sx:o,...e})=>(0,ue.jsx)(ke,{sx:o,...e});var Z=require("react/jsx-runtime"),j=({type:o,data:e,id:t,Container:a,Raw:i})=>{let{sx:r,...p}=a||{};return(0,Z.jsx)(s,{sx:r,...p,children:(0,Z.jsx)(ye,{id:`${o}-${t}`,...i,children:e.html})},t)};var we=require("@mui/material"),Le=(0,we.styled)("blockquote",{name:"RootQuote",label:"root__quote",shouldForwardProp:o=>o!=="as"})({});var Ee=require("react/jsx-runtime"),Ne=({sx:o,...e})=>(0,Ee.jsx)(Le,{sx:o,...e});var oo=require("react/jsx-runtime"),eo=({type:o,data:e,id:t,Container:a,Quote:i})=>{let{sx:r,...p}=a||{};return(0,oo.jsx)(s,{sx:r,...p,children:(0,oo.jsx)(Ne,{id:`${o}-${t}`,...i,children:e.text})},t)};var Te=require("@mui/material"),De=(0,Te.styled)("div",{name:"RootCode",label:"root__code",shouldForwardProp:o=>o!=="as"})({backgroundColor:"#f8f7fa",color:"#41314e",border:"1px solid #f1f1f4",overscrollBehavior:"contain",lineHeight:1.6,fontSize:12,minHeight:200,resize:"vertical",padding:"10px 12px",borderRadius:8,boxShadow:"none",wordWrap:"normal",overflowX:"auto",margin:".4em 0",whiteSpace:"pre-wrap"});var _e=require("react/jsx-runtime"),Ie=({sx:o,...e})=>(0,_e.jsx)(De,{sx:o,...e});var to=require("react/jsx-runtime"),ro=({type:o,data:e,id:t,Container:a,Code:i})=>{let{code:r}=e,{sx:p,...d}=a||{};return(0,to.jsx)(s,{sx:p,...d,children:(0,to.jsx)(Ie,{id:`${o}-${t}`,...i,children:r})},t)};var D=require("@mui/material"),Me=(0,D.styled)("a",{name:"RootLink",label:"root__link",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({display:"block",padding:"25px",color:o.palette.text.primary,background:"#fff",border:"1px solid rgba(201, 201, 204, 0.48)",boxShadow:"0 1px 3px rgb(0 0 0 / 10%)",borderRadius:6,willChange:"filter",transition:"box-shadow 450ms cubic-bezier(0.215, 0.61, 0.355, 1)",margin:".4em 0",textDecoration:"none","&:hover":{boxShadow:"0 0 3px rgb(0 0 0 / 16%)"}})),We=(0,D.styled)("div",{shouldForwardProp:o=>o!=="image"})(({image:o})=>({backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundSize:"cover",margin:"0 0 0 30px",width:65,height:65,borderRadius:3,float:"right",...!!o&&{backgroundImage:`url(${o})`}})),Be=(0,D.styled)("div")(({theme:o})=>({fontSize:17,fontWeight:600,lineHeight:"1.5em",margin:"0 0 10px 0",color:o.palette.text.primary})),He=(0,D.styled)("p")(({theme:o})=>({margin:"0 0 20px 0",fontSize:15,lineHeight:"1.55em",display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden",color:o.palette.text.primary})),ve=(0,D.styled)("span")(({theme:o})=>({display:"block",fontSize:15,lineHeight:"1em",color:o.palette.text.secondary,border:0,padding:0}));var L=require("react/jsx-runtime"),Fe=({id:o,image:e,title:t,description:a,siteName:i,href:r,sx:p,...d})=>(0,L.jsxs)(Me,{as:r?"a":"div",id:o,href:r||void 0,target:r?"_blank":void 0,rel:r?"nofollow noindex noreferrer":void 0,sx:p,...d,children:[(0,L.jsx)(We,{image:e}),(0,L.jsx)(Be,{children:t}),(0,L.jsx)(He,{children:a}),(0,L.jsx)(ve,{children:i})]},o);var ao=require("react/jsx-runtime"),io=({type:o,data:e,id:t,Container:a,Link:i})=>{let{meta:{image:r,title:p,description:d,site_name:c},link:l}=e,{sx:R,...C}=a||{};return(0,ao.jsx)(s,{sx:R,...C,children:(0,ao.jsx)(Fe,{id:`${o}-${t}`,image:r?.url??"",title:p??"",description:d??"",siteName:c,href:l??"",...i})},t)};var $e=require("@mui/material"),Se=(0,$e.styled)("div",{name:"RootCheckList",label:"root__check__list",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap",height:"auto"});var Ae=require("react/jsx-runtime"),Qe=({sx:o,...e})=>(0,Ae.jsx)(Se,{sx:o,...e});var ze=require("@mui/material"),Oe=(0,ze.styled)("div",{name:"RootListItem",label:"root__list__item",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var Ge=require("react/jsx-runtime"),Ue=({sx:o,...e})=>(0,Ge.jsx)(Oe,{sx:o,...e});var u=require("react/jsx-runtime"),F=10,po=({data:o,id:e,tunes:t,Container:a,CheckList:i,Item:r})=>{let{items:p}=o,{sx:d,...c}=a||{};return(0,u.jsx)(s,{sx:d,...c,children:(0,u.jsx)(Qe,{id:e,...i,sx:{display:"flex",flexWrap:"wrap",gap:`${F}px`,borderRadius:"25px",padding:"20px",backgroundColor:l=>l.palette.background.default,border:"1px solid #EFF3FE",...i?.sx},children:p.map(({checked:l,text:R},C)=>(0,u.jsxs)(Ue,{...r,sx:{display:"flex",alignItems:"center",flexWrap:"nowrap",flexGrow:0,columnGap:"5px",flexBasis:k(1,F),...t?.columnTune?.size==="two-columns"&&{flexBasis:k(2,F)},...t?.columnTune?.size==="three-columns"&&{flexBasis:k(3,F)},...r?.sx},children:[(0,u.jsx)(B,{checked:l,sx:{padding:"5px"}}),(0,u.jsx)(E,{children:(0,u.jsx)(h,{html:R,id:e})})]},C))})},e)};var m=require("react/jsx-runtime"),tt=({value:o,ParagraphSlot:e,HeaderSlot:t,DelimiterSlot:a,ListSlot:i,ImageSlot:r,TableSlot:p,EmbedSlot:d,RawSlot:c,QuoteSlot:l,CodeSlot:R,LinkSlot:C,CheckListSlot:$})=>{let{blocks:qe}=o;return(0,m.jsx)(m.Fragment,{children:qe.map(({id:n,type:f,data:P,tunes:no})=>{switch(f){case"paragraph":return(0,m.jsx)(S,{id:n,type:f,data:P,...e},n);case"header":return(0,m.jsx)(Q,{id:n,type:f,data:P,...t},n);case"delimiter":return(0,m.jsx)(J,{id:n,type:f,data:P,...a},n);case"list":return(0,m.jsx)(z,{id:n,type:f,data:P,tunes:no,...i},n);case"image":return(0,m.jsx)(U,{id:n,type:f,data:P,...r},n);case"table":return(0,m.jsx)(G,{id:n,type:f,data:P,...p},n);case"embed":return(0,m.jsx)(Y,{id:n,type:f,data:P,...d},n);case"rawTool":return(0,m.jsx)(j,{id:n,type:f,data:P,...c},n);case"quote":return(0,m.jsx)(eo,{id:n,type:f,data:P,...l},n);case"code":return(0,m.jsx)(ro,{id:n,type:f,data:P,...R},n);case"linkTool":return(0,m.jsx)(io,{id:n,type:f,data:P,...C},n);case"checklist":return(0,m.jsx)(po,{id:n,type:f,data:P,tunes:no,...$},n);default:return null}})})};0&&(module.exports={BaseRender});
2
+ "use strict";var ve=Object.create;var E=Object.defineProperty;var $e=Object.getOwnPropertyDescriptor;var Fe=Object.getOwnPropertyNames;var Se=Object.getPrototypeOf,Qe=Object.prototype.hasOwnProperty;var Ae=(o,e)=>{for(var t in e)E(o,t,{get:e[t],enumerable:!0})},ro=(o,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Fe(e))!Qe.call(o,a)&&a!==t&&E(o,a,{get:()=>e[a],enumerable:!(n=$e(e,a))||n.enumerable});return o};var ze=(o,e,t)=>(t=o!=null?ve(Se(o)):{},ro(e||!o||!o.__esModule?E(t,"default",{value:o,enumerable:!0}):t,o)),Oe=o=>ro(E({},"__esModule",{value:!0}),o);var Ge={};Ae(Ge,{BaseRender:()=>qe});module.exports=Oe(Ge);var g=ze(require("html-react-parser"));var ao=require("@mui/material"),io=(0,ao.styled)("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var po=require("react/jsx-runtime"),no=({sx:o,...e})=>(0,po.jsx)(io,{sx:o,...e});var so=require("@mui/material"),mo=(0,so.styled)("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var fo=require("react/jsx-runtime"),lo=({sx:o,...e})=>(0,fo.jsx)(mo,{sx:o,...e});var Ro=require("@mui/material"),Po=(0,Ro.styled)("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});var ho=require("react/jsx-runtime"),co=({sx:o,...e})=>(0,ho.jsx)(Po,{sx:o,...e});var xo=require("@mui/material"),Co=(0,xo.styled)("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});var go=require("react/jsx-runtime"),bo=({sx:o,...e})=>(0,go.jsx)(Co,{sx:o,...e});var yo=require("@mui/material"),uo=(0,yo.styled)("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});var ko=require("react/jsx-runtime"),wo=({sx:o,...e})=>(0,ko.jsx)(uo,{sx:o,...e});var No=require("isomorphic-dompurify"),To=o=>(0,No.sanitize)(o,{FORBID_ATTR:["class"]});var C=require("react/jsx-runtime"),k=(o,e)=>{if(!("name"in o)||!("children"in o))return null;let{name:t,children:n,attribs:a}=o,r=n;return t==="code"?(0,C.jsx)(co,{id:`${t}-${e}`,children:(0,g.domToReact)(r,{replace:i=>k(i,e)})}):t==="b"?(0,C.jsx)(lo,{id:`${t}-${e}`,children:(0,g.domToReact)(r,{replace:i=>k(i,e)})}):t==="i"?(0,C.jsx)(bo,{id:`${t}-${e}`,children:(0,g.domToReact)(r,{replace:i=>k(i,e)})}):t==="mark"?(0,C.jsx)(wo,{id:`${t}-${e}`,children:(0,g.domToReact)(r,{replace:i=>k(i,e)})}):t==="a"?(0,C.jsx)(no,{id:`${t}-${e}`,href:a?.href,rel:"noopener noreferrer",target:"_blank",children:(0,g.domToReact)(r,{replace:i=>k(i,e)})}):null},b=({html:o,id:e})=>{let t=To(o);return(0,C.jsx)(C.Fragment,{children:(0,g.default)(t,{replace:n=>k(n,e)})})};var Eo=require("@mui/material"),Do=(0,Eo.styled)("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));var Lo=require("react/jsx-runtime"),s=({sx:o,...e})=>(0,Lo.jsx)(Do,{sx:o,...e});var Io=require("@mui/material"),_o=(0,Io.styled)("p",{name:"RootParagraph",label:"root__paragraph",shouldForwardProp:o=>o!=="as"})({margin:0});var Mo=require("react/jsx-runtime"),D=({sx:o,...e})=>(0,Mo.jsx)(_o,{sx:o,...e});var L=require("react/jsx-runtime"),$=({type:o,data:e,id:t,Container:n,Paragraph:a})=>{let{text:r}=e,{sx:i,...d}=n||{};return(0,L.jsx)(s,{sx:i,...d,children:(0,L.jsx)(D,{id:`${o}-${t}`,...a,children:(0,L.jsx)(b,{html:r||"",id:t})})},t)};var Wo=require("@mui/material"),Bo=(0,Wo.styled)("h2",{name:"RootHeader",label:"root__header",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({marginBottom:0});var vo=require("react/jsx-runtime"),Ue={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},Ho=({level:o,sx:e,...t})=>(0,vo.jsx)(Bo,{as:Ue[o],sx:e,...t});var I=require("react/jsx-runtime"),F=({type:o,data:e,id:t,Container:n,Header:a})=>{let{text:r}=e,{sx:i,...d}=n||{};return(0,I.jsx)(s,{sx:i,...d,children:(0,I.jsx)(Ho,{id:`${o}-${t}`,level:e.level,...a,children:(0,I.jsx)(b,{html:r,id:t})})},t)};var Xo=require("@mui/material");var $o=require("@mui/material"),S=require("@iconify/react"),_=require("react/jsx-runtime"),Fo=({checked:o,sx:e,...t})=>(0,_.jsx)($o.Checkbox,{sx:e,size:"small",checked:o,icon:(0,_.jsx)(S.Icon,{icon:"akar-icons:circle-fill",color:"inherit",width:"24px",height:"24px"}),checkedIcon:(0,_.jsx)(S.Icon,{icon:"akar-icons:circle-check-fill",color:"inherit",width:"24px",height:"24px"}),...t});var So=require("@mui/material"),Qo=(0,So.styled)("div",{name:"RootList",label:"root__list",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var zo=require("react/jsx-runtime"),Ao=({sx:o,...e})=>(0,zo.jsx)(Qo,{sx:o,...e});var Oo=require("@mui/material"),Uo=(0,Oo.styled)("div",{name:"RootListItem",label:"root__list__item",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var Go=require("react/jsx-runtime"),qo=({sx:o,...e})=>(0,Go.jsx)(Uo,{sx:o,...e});var M=(o,e)=>o===3?`calc(${(100/o).toFixed(2)}% - ${e*(o-1)/o}px)`:o===2?`calc(${(100/o).toFixed(2)}% - ${e*(o-1)/o}px)`:"100%";var Jo=require("react/jsx-runtime"),h=require("react/jsx-runtime"),W=20,B=({type:o,data:e,id:t,tunes:n,Container:a,List:r,Item:i})=>{let{style:d,items:l}=e,{sx:P,...x}=a||{};return(0,h.jsx)(s,{sx:P,...x,children:(0,h.jsx)(Ao,{id:`${o}-${t}`,...r,sx:{display:"flex",flexWrap:"wrap",gap:`${W}px`,...r?.sx},children:l?.map(f=>(0,h.jsxs)(Jo.Fragment,{children:[(0,h.jsxs)(qo,{...i,sx:{padding:"20px",borderRadius:"25px",backgroundColor:v=>v.palette.background.default,border:"1px solid #EFF3FE",display:"flex",flexWrap:"nowrap",alignItems:"center",columnGap:"5px",flexGrow:0,...d==="ordered"&&{alignItems:"center",boxShadow:"0px 4px 25px rgba(0, 0, 0, 0.05)"},flexBasis:M(1,W),...n?.columnTune?.size==="two-columns"&&{flexBasis:M(2,W)},...n?.columnTune?.size==="three-columns"&&{flexBasis:M(3,W)},...i?.sx},children:[(0,h.jsx)(Fo,{checked:!0,sx:{padding:"5px"}}),(0,h.jsx)(Xo.Box,{children:(0,h.jsx)(D,{children:(0,h.jsx)(b,{html:f.content,id:t})})})]},`list_item_${f.content}`),f.items.length>0?(0,h.jsx)(B,{id:t,type:o,data:{items:f.items,meta:f.meta,style:d},Container:{...a,sx:{...a?.sx,ml:4}},List:r,Item:i}):null]},f.content))})},t)};var H=require("@mui/material"),Ko=(0,H.styled)("div",{name:"Root",label:"root",shouldForwardProp:o=>o!=="as"&&o!=="sx"&&o!=="stretched"&&o!=="withBorder"&&o!=="withBackground"})(({withBorder:o,withBackground:e,theme:t})=>({borderRadius:3,overflow:"hidden",...o&&{border:"1px solid",borderColor:t.palette.primary.main},...e&&{padding:15,backgroundColor:t.palette.background.paper}})),Vo=(0,H.styled)("img",{name:"RootImage",label:"root__image",shouldForwardProp:o=>o!=="as"&&o!=="sx"&&o!=="stretched"&&o!=="withBorder"&&o!=="withBackground"})(({stretched:o,withBackground:e})=>({maxWidth:"100%",verticalAlign:"bottom",display:"block",...o&&{width:"100%"},...e&&{maxWidth:"60%",margin:"0 auto"}})),Yo=(0,H.styled)("span",{name:"CaptionImage",label:"root__image__embed",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({marginTop:10});var y=require("react/jsx-runtime"),Zo=({caption:o,withBorder:e,withBackground:t,stretched:n,sx:a,...r})=>(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Ko,{withBorder:e,stretched:n,withBackground:t,children:(0,y.jsx)(Vo,{sx:a,...r,withBackground:t})}),o&&(0,y.jsx)(Yo,{children:o})]});var Q=require("react/jsx-runtime"),A=({type:o,data:e,id:t,Container:n,Image:a})=>{let{file:r,caption:i,withBorder:d,stretched:l,withBackground:P}=e,{sx:x,...f}=n||{};return(0,Q.jsx)(s,{stretched:l,sx:x,...f,children:(0,Q.jsx)(Zo,{id:`${o}-${t}`,src:r?.url||"",alt:i,caption:i,withBorder:d,stretched:l,withBackground:P,...a},`${o}-${t}`)},t)};var jo=require("@mui/material"),oe=(0,jo.styled)("div",{name:"RootTableRow",label:"root__table__row",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({display:"grid",gridTemplateColumns:"repeat(auto-fit,minmax(10px,1fr))",position:"relative",borderBottom:"1px solid",borderBottomColor:o.palette.primary.main}));var te=require("react/jsx-runtime"),ee=({sx:o,...e})=>(0,te.jsx)(oe,{sx:o,...e});var re=require("@mui/material"),ae=(0,re.styled)("div",{name:"RootTable",label:"root__table",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({position:"relative",width:"100%",height:"100%",display:"grid",fontSize:14,borderTop:"1px solid",borderTopColor:o.palette.primary.main,lineHeight:1.4}));var ne=require("react/jsx-runtime"),ie=({sx:o,...e})=>(0,ne.jsx)(ae,{sx:o,...e});var pe=require("@mui/material"),se=(0,pe.styled)("div",{name:"RootTableRow",label:"root__table__row",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({borderRight:"1px solid",borderRightColor:o.palette.primary.main,padding:"6px 12px",overflow:"hidden",outline:"none",lineBreak:"normal","&:first-of-type":{borderLeft:"unset",borderLeftColor:"unset"},"&:last-of-type":{borderRight:"unset",borderRightColor:"unset"}}));var me=require("react/jsx-runtime"),de=({sx:o,...e})=>(0,me.jsx)(se,{sx:o,...e});var N=require("react/jsx-runtime"),z=({data:o,id:e,Container:t})=>{let{content:n}=o,{sx:a,...r}=t||{};return(0,N.jsx)(s,{sx:a,...r,children:(0,N.jsx)(ie,{id:e,children:n.map((i,d)=>(0,N.jsx)(ee,{children:i.map((l,P)=>(0,N.jsx)(de,{children:(0,N.jsx)(b,{html:l,id:e})},P))},d))},e)},e)};var le=require("@mui/material"),fe=(0,le.styled)("div",{name:"RootDelimiter",label:"root__delimiter",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({display:"flex",justifyContent:"center",alignItems:"center",fontSize:"2rem",fontWeight:700});var O=require("react/jsx-runtime"),Re=({sx:o,...e})=>(0,O.jsx)(fe,{sx:o,...e,children:(0,O.jsx)("span",{children:"\u2743 \u2743 \u2743"})});var U=require("react/jsx-runtime"),q=({type:o,id:e,Delimiter:t,Container:n})=>{let{sx:a,...r}=n||{};return(0,U.jsx)(s,{sx:a,...r,children:(0,U.jsx)(Re,{id:`${o}-${e}`,...t})},e)};var G=require("@mui/material"),Pe=(0,G.styled)("iframe",{name:"RootEmbed",label:"root__embed",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({width:"100%",border:0,borderRadius:8}),ce=(0,G.styled)("span",{name:"CaptionEmbed",label:"root__embed__caption",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({marginTop:10});var u=require("react/jsx-runtime"),he=({sx:o,caption:e,...t})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Pe,{sx:o,...t}),e&&(0,u.jsx)(ce,{children:e})]});var X=require("react/jsx-runtime"),J=({type:o,data:e,id:t,Container:n,Embed:a})=>{let{embed:r,width:i,height:d,caption:l}=e,{sx:P,...x}=n||{};return(0,X.jsx)(s,{sx:P,...x,children:(0,X.jsx)(he,{id:`${o}-${t}`,src:r,width:i,height:d,caption:l,...a})},t)};var xe=require("@mui/material"),Ce=(0,xe.styled)("div",{name:"RootRaw",label:"root__raw",shouldForwardProp:o=>o!=="as"})({backgroundColor:"#1e2128",color:"#a1a7b6",overscrollBehavior:"contain",lineHeight:1.6,fontSize:12,minHeight:200,padding:"10px 12px",borderRadius:8,boxShadow:"inset 0 1px 2px 0 rgb(35 44 72 / 6%)",margin:"0",whiteSpace:"pre-wrap",resize:"vertical"});var ge=require("react/jsx-runtime"),be=({sx:o,...e})=>(0,ge.jsx)(Ce,{sx:o,...e});var K=require("react/jsx-runtime"),V=({type:o,data:e,id:t,Container:n,Raw:a})=>{let{sx:r,...i}=n||{};return(0,K.jsx)(s,{sx:r,...i,children:(0,K.jsx)(be,{id:`${o}-${t}`,...a,children:e.html})},t)};var ye=require("@mui/material"),ue=(0,ye.styled)("blockquote",{name:"RootQuote",label:"root__quote",shouldForwardProp:o=>o!=="as"})({});var ke=require("react/jsx-runtime"),we=({sx:o,...e})=>(0,ke.jsx)(ue,{sx:o,...e});var Y=require("react/jsx-runtime"),Z=({type:o,data:e,id:t,Container:n,Quote:a})=>{let{sx:r,...i}=n||{};return(0,Y.jsx)(s,{sx:r,...i,children:(0,Y.jsx)(we,{id:`${o}-${t}`,...a,children:e.text})},t)};var Ne=require("@mui/material"),Te=(0,Ne.styled)("div",{name:"RootCode",label:"root__code",shouldForwardProp:o=>o!=="as"})({backgroundColor:"#f8f7fa",color:"#41314e",border:"1px solid #f1f1f4",overscrollBehavior:"contain",lineHeight:1.6,fontSize:12,minHeight:200,resize:"vertical",padding:"10px 12px",borderRadius:8,boxShadow:"none",wordWrap:"normal",overflowX:"auto",margin:".4em 0",whiteSpace:"pre-wrap"});var De=require("react/jsx-runtime"),Ee=({sx:o,...e})=>(0,De.jsx)(Te,{sx:o,...e});var j=require("react/jsx-runtime"),oo=({type:o,data:e,id:t,Container:n,Code:a})=>{let{code:r}=e,{sx:i,...d}=n||{};return(0,j.jsx)(s,{sx:i,...d,children:(0,j.jsx)(Ee,{id:`${o}-${t}`,...a,children:r})},t)};var T=require("@mui/material"),Le=(0,T.styled)("a",{name:"RootLink",label:"root__link",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({display:"block",padding:"25px",color:o.palette.text.primary,background:"#fff",border:"1px solid rgba(201, 201, 204, 0.48)",boxShadow:"0 1px 3px rgb(0 0 0 / 10%)",borderRadius:6,willChange:"filter",transition:"box-shadow 450ms cubic-bezier(0.215, 0.61, 0.355, 1)",margin:".4em 0",textDecoration:"none","&:hover":{boxShadow:"0 0 3px rgb(0 0 0 / 16%)"}})),Ie=(0,T.styled)("div",{shouldForwardProp:o=>o!=="image"})(({image:o})=>({backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundSize:"cover",margin:"0 0 0 30px",width:65,height:65,borderRadius:3,float:"right",...!!o&&{backgroundImage:`url(${o})`}})),_e=(0,T.styled)("div")(({theme:o})=>({fontSize:17,fontWeight:600,lineHeight:"1.5em",margin:"0 0 10px 0",color:o.palette.text.primary})),Me=(0,T.styled)("p")(({theme:o})=>({margin:"0 0 20px 0",fontSize:15,lineHeight:"1.55em",display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden",color:o.palette.text.primary})),We=(0,T.styled)("span")(({theme:o})=>({display:"block",fontSize:15,lineHeight:"1em",color:o.palette.text.secondary,border:0,padding:0}));var w=require("react/jsx-runtime"),Be=({id:o,image:e,title:t,description:n,siteName:a,href:r,sx:i,...d})=>(0,w.jsxs)(Le,{as:r?"a":"div",id:o,href:r||void 0,target:r?"_blank":void 0,rel:r?"nofollow noindex noreferrer":void 0,sx:i,...d,children:[(0,w.jsx)(Ie,{image:e}),(0,w.jsx)(_e,{children:t}),(0,w.jsx)(Me,{children:n}),(0,w.jsx)(We,{children:a})]},o);var eo=require("react/jsx-runtime"),to=({type:o,data:e,id:t,Container:n,Link:a})=>{let{meta:{image:r,title:i,description:d,site_name:l},link:P}=e,{sx:x,...f}=n||{};return(0,eo.jsx)(s,{sx:x,...f,children:(0,eo.jsx)(Be,{id:`${o}-${t}`,image:r?.url??"",title:i??"",description:d??"",siteName:l,href:P??"",...a})},t)};var m=require("react/jsx-runtime"),qe=({value:o,ParagraphSlot:e,HeaderSlot:t,DelimiterSlot:n,ListSlot:a,ImageSlot:r,TableSlot:i,EmbedSlot:d,RawSlot:l,QuoteSlot:P,CodeSlot:x,LinkSlot:f})=>{let{blocks:v}=o;return(0,m.jsx)(m.Fragment,{children:v.map(({id:p,type:R,data:c,tunes:He})=>{switch(R){case"paragraph":return(0,m.jsx)($,{id:p,type:R,data:c,...e},p);case"header":return(0,m.jsx)(F,{id:p,type:R,data:c,...t},p);case"delimiter":return(0,m.jsx)(q,{id:p,type:R,data:c,...n},p);case"list":return(0,m.jsx)(B,{id:p,type:R,data:c,tunes:He,...a},p);case"image":return(0,m.jsx)(A,{id:p,type:R,data:c,...r},p);case"table":return(0,m.jsx)(z,{id:p,type:R,data:c,...i},p);case"embed":return(0,m.jsx)(J,{id:p,type:R,data:c,...d},p);case"rawTool":return(0,m.jsx)(V,{id:p,type:R,data:c,...l},p);case"quote":return(0,m.jsx)(Z,{id:p,type:R,data:c,...P},p);case"code":return(0,m.jsx)(oo,{id:p,type:R,data:c,...x},p);case"linkTool":return(0,m.jsx)(to,{id:p,type:R,data:c,...f},p);default:return null}})})};0&&(module.exports={BaseRender});
package/base/base.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import he,{domToReact as u}from"html-react-parser";import{sanitize as ie}from"isomorphic-dompurify";var V=o=>ie(o,{FORBID_ATTR:["class"]});import{styled as pe}from"@mui/material";var Y=pe("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});import{jsx as ne}from"react/jsx-runtime";var Z=({sx:o,...e})=>ne(Y,{sx:o,...e});import{styled as se}from"@mui/material";var j=se("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as de}from"react/jsx-runtime";var oo=({sx:o,...e})=>de(j,{sx:o,...e});import{styled as me}from"@mui/material";var eo=me("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});import{jsx as le}from"react/jsx-runtime";var to=({sx:o,...e})=>le(eo,{sx:o,...e});import{styled as ce}from"@mui/material";var ro=ce("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});import{jsx as fe}from"react/jsx-runtime";var ao=({sx:o,...e})=>fe(ro,{sx:o,...e});import{styled as Pe}from"@mui/material";var io=Pe("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as Re}from"react/jsx-runtime";var po=({sx:o,...e})=>Re(io,{sx:o,...e});import{Fragment as Ce,jsx as g}from"react/jsx-runtime";var b=(o,e)=>{if(!("name"in o)||!("children"in o))return null;let{name:t,children:a,attribs:i}=o;return t==="code"?g(Z,{id:`${t}-${e}`,children:u(a,{replace:r=>b(r,e)})}):t==="b"?g(oo,{id:`${t}-${e}`,children:u(a,{replace:r=>b(r,e)})}):t==="i"?g(to,{id:`${t}-${e}`,children:u(a,{replace:r=>b(r,e)})}):t==="mark"?g(ao,{id:`${t}-${e}`,children:u(a,{replace:r=>b(r,e)})}):t==="a"?g(po,{id:`${t}-${e}`,href:i?.href,rel:"noopener noreferrer",target:"_blank",children:u(a,{replace:r=>b(r,e)})}):null},h=({html:o,id:e})=>{let t=V(o);return g(Ce,{children:he(t,{replace:a=>b(a,e)})})};import{styled as xe}from"@mui/material";var no=xe("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));import{jsx as be}from"react/jsx-runtime";var s=({sx:o,...e})=>be(no,{sx:o,...e});import{styled as ge}from"@mui/material";var so=ge("p",{name:"RootParagraph",label:"root__paragraph",shouldForwardProp:o=>o!=="as"})({margin:0});import{jsx as ke}from"react/jsx-runtime";var k=({sx:o,...e})=>ke(so,{sx:o,...e});import{jsx as M}from"react/jsx-runtime";var W=({type:o,data:e,id:t,Container:a,Paragraph:i})=>{let{text:r}=e,{sx:p,...d}=a||{};return M(s,{sx:p,...d,children:M(k,{id:`${o}-${t}`,...i,children:M(h,{html:r||"",id:t})})},t)};import{styled as ye}from"@mui/material";var mo=ye("h2",{name:"RootHeader",label:"root__header",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({marginBottom:0});import{jsx as we}from"react/jsx-runtime";var ue={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},lo=({level:o,sx:e,...t})=>we(mo,{as:ue[o],sx:e,...t});import{jsx as B}from"react/jsx-runtime";var H=({type:o,data:e,id:t,Container:a,Header:i})=>{let{text:r}=e,{sx:p,...d}=a||{};return B(s,{sx:p,...d,children:B(lo,{id:`${o}-${t}`,level:e.level,...i,children:B(h,{html:r,id:t})})},t)};import{Box as Ie}from"@mui/material";var x=(o,e)=>o===3?`calc(${(100/o).toFixed(2)}% - ${e*(o-1)/o}px)`:o===2?`calc(${(100/o).toFixed(2)}% - ${e*(o-1)/o}px)`:"100%";import{styled as Le}from"@mui/material";var co=Le("div",{name:"RootList",label:"root__list",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as Ne}from"react/jsx-runtime";var fo=({sx:o,...e})=>Ne(co,{sx:o,...e});import{styled as Ee}from"@mui/material";var Po=Ee("div",{name:"RootListItem",label:"root__list__item",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as Te}from"react/jsx-runtime";var Ro=({sx:o,...e})=>Te(Po,{sx:o,...e});import{Checkbox as De}from"@mui/material";import{Icon as ho}from"@iconify/react";import{jsx as v}from"react/jsx-runtime";var E=({checked:o,sx:e,...t})=>v(De,{sx:e,size:"small",checked:o,icon:v(ho,{icon:"akar-icons:circle-fill",color:"inherit",width:"24px",height:"24px"}),checkedIcon:v(ho,{icon:"akar-icons:circle-check-fill",color:"inherit",width:"24px",height:"24px"}),...t});import{jsx as y,jsxs as _e}from"react/jsx-runtime";var T=20,F=({type:o,data:e,id:t,tunes:a,Container:i,List:r,Item:p})=>{let{style:d}=e,{sx:l,...m}=i||{};return y(s,{sx:l,...m,children:y(fo,{id:`${o}-${t}`,...r,sx:{display:"flex",flexWrap:"wrap",gap:`${T}px`,...r?.sx},children:e.items.map((R,C)=>_e(Ro,{...p,sx:{padding:"20px",borderRadius:"25px",backgroundColor:_=>_.palette.background.default,border:"1px solid #EFF3FE",display:"flex",flexWrap:"nowrap",alignItems:"center",columnGap:"5px",flexGrow:0,...d==="ordered"&&{alignItems:"center",boxShadow:"0px 4px 25px rgba(0, 0, 0, 0.05)"},flexBasis:x(1,T),...a?.columnTune?.size==="two-columns"&&{flexBasis:x(2,T)},...a?.columnTune?.size==="three-columns"&&{flexBasis:x(3,T)},...p?.sx},children:[y(E,{checked:!0,sx:{padding:"5px"}}),y(Ie,{children:y(k,{children:y(h,{html:R,id:t})})})]},C))})},t)};import{styled as $}from"@mui/material";var Co=$("div",{name:"Root",label:"root",shouldForwardProp:o=>o!=="as"&&o!=="sx"&&o!=="stretched"&&o!=="withBorder"&&o!=="withBackground"})(({withBorder:o,withBackground:e,theme:t})=>({borderRadius:3,overflow:"hidden",...o&&{border:"1px solid",borderColor:t.palette.primary.main},...e&&{padding:15,backgroundColor:t.palette.background.paper}})),xo=$("img",{name:"RootImage",label:"root__image",shouldForwardProp:o=>o!=="as"&&o!=="sx"&&o!=="stretched"&&o!=="withBorder"&&o!=="withBackground"})(({stretched:o,withBackground:e})=>({maxWidth:"100%",verticalAlign:"bottom",display:"block",...o&&{width:"100%"},...e&&{maxWidth:"60%",margin:"0 auto"}})),bo=$("span",{name:"CaptionImage",label:"root__image__embed",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({marginTop:10});import{Fragment as Me,jsx as S,jsxs as We}from"react/jsx-runtime";var go=({caption:o,withBorder:e,withBackground:t,stretched:a,sx:i,...r})=>We(Me,{children:[S(Co,{withBorder:e,stretched:a,withBackground:t,children:S(xo,{sx:i,...r,withBackground:t})}),o&&S(bo,{children:o})]});import{jsx as ko}from"react/jsx-runtime";var Q=({type:o,data:e,id:t,Container:a,Image:i})=>{let{file:r,caption:p,withBorder:d,stretched:l,withBackground:m}=e,{sx:R,...C}=a||{};return ko(s,{stretched:l,sx:R,...C,children:ko(go,{id:`${o}-${t}`,src:r?.url||"",alt:p,caption:p,withBorder:d,stretched:l,withBackground:m,...i},`${o}-${t}`)},t)};import{styled as Be}from"@mui/material";var yo=Be("div",{name:"RootTableRow",label:"root__table__row",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({display:"grid",gridTemplateColumns:"repeat(auto-fit,minmax(10px,1fr))",position:"relative",borderBottom:"1px solid",borderBottomColor:o.palette.primary.main}));import{jsx as He}from"react/jsx-runtime";var uo=({sx:o,...e})=>He(yo,{sx:o,...e});import{styled as ve}from"@mui/material";var wo=ve("div",{name:"RootTable",label:"root__table",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({position:"relative",width:"100%",height:"100%",display:"grid",fontSize:14,borderTop:"1px solid",borderTopColor:o.palette.primary.main,lineHeight:1.4}));import{jsx as Fe}from"react/jsx-runtime";var Lo=({sx:o,...e})=>Fe(wo,{sx:o,...e});import{styled as $e}from"@mui/material";var No=$e("div",{name:"RootTableRow",label:"root__table__row",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({borderRight:"1px solid",borderRightColor:o.palette.primary.main,padding:"6px 12px",overflow:"hidden",outline:"none",lineBreak:"normal","&:first-of-type":{borderLeft:"unset",borderLeftColor:"unset"},"&:last-of-type":{borderRight:"unset",borderRightColor:"unset"}}));import{jsx as Se}from"react/jsx-runtime";var Eo=({sx:o,...e})=>Se(No,{sx:o,...e});import{jsx as w}from"react/jsx-runtime";var A=({data:o,id:e,Container:t})=>{let{content:a}=o,{sx:i,...r}=t||{};return w(s,{sx:i,...r,children:w(Lo,{id:e,children:a.map((p,d)=>w(uo,{children:p.map((l,m)=>w(Eo,{children:w(h,{html:l,id:e})},m))},d))},e)},e)};import{styled as Qe}from"@mui/material";var To=Qe("div",{name:"RootDelimiter",label:"root__delimiter",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({display:"flex",justifyContent:"center",alignItems:"center",fontSize:"2rem",fontWeight:700});import{jsx as Do}from"react/jsx-runtime";var Io=({sx:o,...e})=>Do(To,{sx:o,...e,children:Do("span",{children:"\u2743 \u2743 \u2743"})});import{jsx as _o}from"react/jsx-runtime";var z=({type:o,id:e,Delimiter:t,Container:a})=>{let{sx:i,...r}=a||{};return _o(s,{sx:i,...r,children:_o(Io,{id:`${o}-${e}`,...t})},e)};import{styled as Mo}from"@mui/material";var Wo=Mo("iframe",{name:"RootEmbed",label:"root__embed",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({width:"100%",border:0,borderRadius:8}),Bo=Mo("span",{name:"CaptionEmbed",label:"root__embed__caption",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({marginTop:10});import{Fragment as Ae,jsx as Ho,jsxs as ze}from"react/jsx-runtime";var vo=({sx:o,caption:e,...t})=>ze(Ae,{children:[Ho(Wo,{sx:o,...t}),e&&Ho(Bo,{children:e})]});import{jsx as Fo}from"react/jsx-runtime";var O=({type:o,data:e,id:t,Container:a,Embed:i})=>{let{embed:r,width:p,height:d,caption:l}=e,{sx:m,...R}=a||{};return Fo(s,{sx:m,...R,children:Fo(vo,{id:`${o}-${t}`,src:r,width:p,height:d,caption:l,...i})},t)};import{styled as Oe}from"@mui/material";var $o=Oe("div",{name:"RootRaw",label:"root__raw",shouldForwardProp:o=>o!=="as"})({backgroundColor:"#1e2128",color:"#a1a7b6",overscrollBehavior:"contain",lineHeight:1.6,fontSize:12,minHeight:200,padding:"10px 12px",borderRadius:8,boxShadow:"inset 0 1px 2px 0 rgb(35 44 72 / 6%)",margin:"0",whiteSpace:"pre-wrap",resize:"vertical"});import{jsx as Ue}from"react/jsx-runtime";var So=({sx:o,...e})=>Ue($o,{sx:o,...e});import{jsx as Qo}from"react/jsx-runtime";var U=({type:o,data:e,id:t,Container:a,Raw:i})=>{let{sx:r,...p}=a||{};return Qo(s,{sx:r,...p,children:Qo(So,{id:`${o}-${t}`,...i,children:e.html})},t)};import{styled as Ge}from"@mui/material";var Ao=Ge("blockquote",{name:"RootQuote",label:"root__quote",shouldForwardProp:o=>o!=="as"})({});import{jsx as qe}from"react/jsx-runtime";var zo=({sx:o,...e})=>qe(Ao,{sx:o,...e});import{jsx as Oo}from"react/jsx-runtime";var G=({type:o,data:e,id:t,Container:a,Quote:i})=>{let{sx:r,...p}=a||{};return Oo(s,{sx:r,...p,children:Oo(zo,{id:`${o}-${t}`,...i,children:e.text})},t)};import{styled as Xe}from"@mui/material";var Uo=Xe("div",{name:"RootCode",label:"root__code",shouldForwardProp:o=>o!=="as"})({backgroundColor:"#f8f7fa",color:"#41314e",border:"1px solid #f1f1f4",overscrollBehavior:"contain",lineHeight:1.6,fontSize:12,minHeight:200,resize:"vertical",padding:"10px 12px",borderRadius:8,boxShadow:"none",wordWrap:"normal",overflowX:"auto",margin:".4em 0",whiteSpace:"pre-wrap"});import{jsx as Je}from"react/jsx-runtime";var Go=({sx:o,...e})=>Je(Uo,{sx:o,...e});import{jsx as qo}from"react/jsx-runtime";var q=({type:o,data:e,id:t,Container:a,Code:i})=>{let{code:r}=e,{sx:p,...d}=a||{};return qo(s,{sx:p,...d,children:qo(Go,{id:`${o}-${t}`,...i,children:r})},t)};import{styled as L}from"@mui/material";var Xo=L("a",{name:"RootLink",label:"root__link",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({display:"block",padding:"25px",color:o.palette.text.primary,background:"#fff",border:"1px solid rgba(201, 201, 204, 0.48)",boxShadow:"0 1px 3px rgb(0 0 0 / 10%)",borderRadius:6,willChange:"filter",transition:"box-shadow 450ms cubic-bezier(0.215, 0.61, 0.355, 1)",margin:".4em 0",textDecoration:"none","&:hover":{boxShadow:"0 0 3px rgb(0 0 0 / 16%)"}})),Jo=L("div",{shouldForwardProp:o=>o!=="image"})(({image:o})=>({backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundSize:"cover",margin:"0 0 0 30px",width:65,height:65,borderRadius:3,float:"right",...!!o&&{backgroundImage:`url(${o})`}})),Ko=L("div")(({theme:o})=>({fontSize:17,fontWeight:600,lineHeight:"1.5em",margin:"0 0 10px 0",color:o.palette.text.primary})),Vo=L("p")(({theme:o})=>({margin:"0 0 20px 0",fontSize:15,lineHeight:"1.55em",display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden",color:o.palette.text.primary})),Yo=L("span")(({theme:o})=>({display:"block",fontSize:15,lineHeight:"1em",color:o.palette.text.secondary,border:0,padding:0}));import{jsx as D,jsxs as Ke}from"react/jsx-runtime";var Zo=({id:o,image:e,title:t,description:a,siteName:i,href:r,sx:p,...d})=>Ke(Xo,{as:r?"a":"div",id:o,href:r||void 0,target:r?"_blank":void 0,rel:r?"nofollow noindex noreferrer":void 0,sx:p,...d,children:[D(Jo,{image:e}),D(Ko,{children:t}),D(Vo,{children:a}),D(Yo,{children:i})]},o);import{jsx as jo}from"react/jsx-runtime";var X=({type:o,data:e,id:t,Container:a,Link:i})=>{let{meta:{image:r,title:p,description:d,site_name:l},link:m}=e,{sx:R,...C}=a||{};return jo(s,{sx:R,...C,children:jo(Zo,{id:`${o}-${t}`,image:r?.url??"",title:p??"",description:d??"",siteName:l,href:m??"",...i})},t)};import{styled as Ve}from"@mui/material";var oe=Ve("div",{name:"RootCheckList",label:"root__check__list",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap",height:"auto"});import{jsx as Ye}from"react/jsx-runtime";var ee=({sx:o,...e})=>Ye(oe,{sx:o,...e});import{styled as Ze}from"@mui/material";var te=Ze("div",{name:"RootListItem",label:"root__list__item",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as je}from"react/jsx-runtime";var re=({sx:o,...e})=>je(te,{sx:o,...e});import{jsx as N,jsxs as ot}from"react/jsx-runtime";var I=10,J=({data:o,id:e,tunes:t,Container:a,CheckList:i,Item:r})=>{let{items:p}=o,{sx:d,...l}=a||{};return N(s,{sx:d,...l,children:N(ee,{id:e,...i,sx:{display:"flex",flexWrap:"wrap",gap:`${I}px`,borderRadius:"25px",padding:"20px",backgroundColor:m=>m.palette.background.default,border:"1px solid #EFF3FE",...i?.sx},children:p.map(({checked:m,text:R},C)=>ot(re,{...r,sx:{display:"flex",alignItems:"center",flexWrap:"nowrap",flexGrow:0,columnGap:"5px",flexBasis:x(1,I),...t?.columnTune?.size==="two-columns"&&{flexBasis:x(2,I)},...t?.columnTune?.size==="three-columns"&&{flexBasis:x(3,I)},...r?.sx},children:[N(E,{checked:m,sx:{padding:"5px"}}),N(k,{children:N(h,{html:R,id:e})})]},C))})},e)};import{Fragment as et,jsx as f}from"react/jsx-runtime";var Sp=({value:o,ParagraphSlot:e,HeaderSlot:t,DelimiterSlot:a,ListSlot:i,ImageSlot:r,TableSlot:p,EmbedSlot:d,RawSlot:l,QuoteSlot:m,CodeSlot:R,LinkSlot:C,CheckListSlot:_})=>{let{blocks:ae}=o;return f(et,{children:ae.map(({id:n,type:c,data:P,tunes:K})=>{switch(c){case"paragraph":return f(W,{id:n,type:c,data:P,...e},n);case"header":return f(H,{id:n,type:c,data:P,...t},n);case"delimiter":return f(z,{id:n,type:c,data:P,...a},n);case"list":return f(F,{id:n,type:c,data:P,tunes:K,...i},n);case"image":return f(Q,{id:n,type:c,data:P,...r},n);case"table":return f(A,{id:n,type:c,data:P,...p},n);case"embed":return f(O,{id:n,type:c,data:P,...d},n);case"rawTool":return f(U,{id:n,type:c,data:P,...l},n);case"quote":return f(G,{id:n,type:c,data:P,...m},n);case"code":return f(q,{id:n,type:c,data:P,...R},n);case"linkTool":return f(X,{id:n,type:c,data:P,...C},n);case"checklist":return f(J,{id:n,type:c,data:P,tunes:K,..._},n);default:return null}})})};export{Sp as BaseRender};
2
+ import de,{domToReact as y}from"html-react-parser";import{styled as Zo}from"@mui/material";var q=Zo("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as jo}from"react/jsx-runtime";var G=({sx:o,...e})=>jo(q,{sx:o,...e});import{styled as oe}from"@mui/material";var X=oe("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as ee}from"react/jsx-runtime";var J=({sx:o,...e})=>ee(X,{sx:o,...e});import{styled as te}from"@mui/material";var K=te("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});import{jsx as re}from"react/jsx-runtime";var V=({sx:o,...e})=>re(K,{sx:o,...e});import{styled as ae}from"@mui/material";var Y=ae("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});import{jsx as ie}from"react/jsx-runtime";var Z=({sx:o,...e})=>ie(Y,{sx:o,...e});import{styled as ne}from"@mui/material";var j=ne("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});import{jsx as pe}from"react/jsx-runtime";var oo=({sx:o,...e})=>pe(j,{sx:o,...e});import{sanitize as se}from"isomorphic-dompurify";var eo=o=>se(o,{FORBID_ATTR:["class"]});import{Fragment as me,jsx as g}from"react/jsx-runtime";var b=(o,e)=>{if(!("name"in o)||!("children"in o))return null;let{name:t,children:i,attribs:n}=o,r=i;return t==="code"?g(V,{id:`${t}-${e}`,children:y(r,{replace:a=>b(a,e)})}):t==="b"?g(J,{id:`${t}-${e}`,children:y(r,{replace:a=>b(a,e)})}):t==="i"?g(Z,{id:`${t}-${e}`,children:y(r,{replace:a=>b(a,e)})}):t==="mark"?g(oo,{id:`${t}-${e}`,children:y(r,{replace:a=>b(a,e)})}):t==="a"?g(G,{id:`${t}-${e}`,href:n?.href,rel:"noopener noreferrer",target:"_blank",children:y(r,{replace:a=>b(a,e)})}):null},x=({html:o,id:e})=>{let t=eo(o);return g(me,{children:de(t,{replace:i=>b(i,e)})})};import{styled as le}from"@mui/material";var to=le("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));import{jsx as fe}from"react/jsx-runtime";var s=({sx:o,...e})=>fe(to,{sx:o,...e});import{styled as Re}from"@mui/material";var ro=Re("p",{name:"RootParagraph",label:"root__paragraph",shouldForwardProp:o=>o!=="as"})({margin:0});import{jsx as Pe}from"react/jsx-runtime";var k=({sx:o,...e})=>Pe(ro,{sx:o,...e});import{jsx as I}from"react/jsx-runtime";var _=({type:o,data:e,id:t,Container:i,Paragraph:n})=>{let{text:r}=e,{sx:a,...d}=i||{};return I(s,{sx:a,...d,children:I(k,{id:`${o}-${t}`,...n,children:I(x,{html:r||"",id:t})})},t)};import{styled as ce}from"@mui/material";var ao=ce("h2",{name:"RootHeader",label:"root__header",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({marginBottom:0});import{jsx as xe}from"react/jsx-runtime";var he={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},io=({level:o,sx:e,...t})=>xe(ao,{as:he[o],sx:e,...t});import{jsx as M}from"react/jsx-runtime";var W=({type:o,data:e,id:t,Container:i,Header:n})=>{let{text:r}=e,{sx:a,...d}=i||{};return M(s,{sx:a,...d,children:M(io,{id:`${o}-${t}`,level:e.level,...n,children:M(x,{html:r,id:t})})},t)};import{Box as we}from"@mui/material";import{Checkbox as Ce}from"@mui/material";import{Icon as no}from"@iconify/react";import{jsx as B}from"react/jsx-runtime";var po=({checked:o,sx:e,...t})=>B(Ce,{sx:e,size:"small",checked:o,icon:B(no,{icon:"akar-icons:circle-fill",color:"inherit",width:"24px",height:"24px"}),checkedIcon:B(no,{icon:"akar-icons:circle-check-fill",color:"inherit",width:"24px",height:"24px"}),...t});import{styled as be}from"@mui/material";var so=be("div",{name:"RootList",label:"root__list",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as ge}from"react/jsx-runtime";var mo=({sx:o,...e})=>ge(so,{sx:o,...e});import{styled as ye}from"@mui/material";var lo=ye("div",{name:"RootListItem",label:"root__list__item",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as ue}from"react/jsx-runtime";var fo=({sx:o,...e})=>ue(lo,{sx:o,...e});var N=(o,e)=>o===3?`calc(${(100/o).toFixed(2)}% - ${e*(o-1)/o}px)`:o===2?`calc(${(100/o).toFixed(2)}% - ${e*(o-1)/o}px)`:"100%";import{Fragment as ke}from"react/jsx-runtime";import{jsx as C,jsxs as Ro}from"react/jsx-runtime";var T=20,E=({type:o,data:e,id:t,tunes:i,Container:n,List:r,Item:a})=>{let{style:d,items:m}=e,{sx:P,...h}=n||{};return C(s,{sx:P,...h,children:C(mo,{id:`${o}-${t}`,...r,sx:{display:"flex",flexWrap:"wrap",gap:`${T}px`,...r?.sx},children:m?.map(l=>Ro(ke,{children:[Ro(fo,{...a,sx:{padding:"20px",borderRadius:"25px",backgroundColor:L=>L.palette.background.default,border:"1px solid #EFF3FE",display:"flex",flexWrap:"nowrap",alignItems:"center",columnGap:"5px",flexGrow:0,...d==="ordered"&&{alignItems:"center",boxShadow:"0px 4px 25px rgba(0, 0, 0, 0.05)"},flexBasis:N(1,T),...i?.columnTune?.size==="two-columns"&&{flexBasis:N(2,T)},...i?.columnTune?.size==="three-columns"&&{flexBasis:N(3,T)},...a?.sx},children:[C(po,{checked:!0,sx:{padding:"5px"}}),C(we,{children:C(k,{children:C(x,{html:l.content,id:t})})})]},`list_item_${l.content}`),l.items.length>0?C(E,{id:t,type:o,data:{items:l.items,meta:l.meta,style:d},Container:{...n,sx:{...n?.sx,ml:4}},List:r,Item:a}):null]},l.content))})},t)};import{styled as H}from"@mui/material";var Po=H("div",{name:"Root",label:"root",shouldForwardProp:o=>o!=="as"&&o!=="sx"&&o!=="stretched"&&o!=="withBorder"&&o!=="withBackground"})(({withBorder:o,withBackground:e,theme:t})=>({borderRadius:3,overflow:"hidden",...o&&{border:"1px solid",borderColor:t.palette.primary.main},...e&&{padding:15,backgroundColor:t.palette.background.paper}})),co=H("img",{name:"RootImage",label:"root__image",shouldForwardProp:o=>o!=="as"&&o!=="sx"&&o!=="stretched"&&o!=="withBorder"&&o!=="withBackground"})(({stretched:o,withBackground:e})=>({maxWidth:"100%",verticalAlign:"bottom",display:"block",...o&&{width:"100%"},...e&&{maxWidth:"60%",margin:"0 auto"}})),ho=H("span",{name:"CaptionImage",label:"root__image__embed",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({marginTop:10});import{Fragment as Ne,jsx as v,jsxs as Te}from"react/jsx-runtime";var xo=({caption:o,withBorder:e,withBackground:t,stretched:i,sx:n,...r})=>Te(Ne,{children:[v(Po,{withBorder:e,stretched:i,withBackground:t,children:v(co,{sx:n,...r,withBackground:t})}),o&&v(ho,{children:o})]});import{jsx as Co}from"react/jsx-runtime";var $=({type:o,data:e,id:t,Container:i,Image:n})=>{let{file:r,caption:a,withBorder:d,stretched:m,withBackground:P}=e,{sx:h,...l}=i||{};return Co(s,{stretched:m,sx:h,...l,children:Co(xo,{id:`${o}-${t}`,src:r?.url||"",alt:a,caption:a,withBorder:d,stretched:m,withBackground:P,...n},`${o}-${t}`)},t)};import{styled as Ee}from"@mui/material";var bo=Ee("div",{name:"RootTableRow",label:"root__table__row",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({display:"grid",gridTemplateColumns:"repeat(auto-fit,minmax(10px,1fr))",position:"relative",borderBottom:"1px solid",borderBottomColor:o.palette.primary.main}));import{jsx as De}from"react/jsx-runtime";var go=({sx:o,...e})=>De(bo,{sx:o,...e});import{styled as Le}from"@mui/material";var yo=Le("div",{name:"RootTable",label:"root__table",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({position:"relative",width:"100%",height:"100%",display:"grid",fontSize:14,borderTop:"1px solid",borderTopColor:o.palette.primary.main,lineHeight:1.4}));import{jsx as Ie}from"react/jsx-runtime";var uo=({sx:o,...e})=>Ie(yo,{sx:o,...e});import{styled as _e}from"@mui/material";var wo=_e("div",{name:"RootTableRow",label:"root__table__row",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({borderRight:"1px solid",borderRightColor:o.palette.primary.main,padding:"6px 12px",overflow:"hidden",outline:"none",lineBreak:"normal","&:first-of-type":{borderLeft:"unset",borderLeftColor:"unset"},"&:last-of-type":{borderRight:"unset",borderRightColor:"unset"}}));import{jsx as Me}from"react/jsx-runtime";var ko=({sx:o,...e})=>Me(wo,{sx:o,...e});import{jsx as u}from"react/jsx-runtime";var F=({data:o,id:e,Container:t})=>{let{content:i}=o,{sx:n,...r}=t||{};return u(s,{sx:n,...r,children:u(uo,{id:e,children:i.map((a,d)=>u(go,{children:a.map((m,P)=>u(ko,{children:u(x,{html:m,id:e})},P))},d))},e)},e)};import{styled as We}from"@mui/material";var No=We("div",{name:"RootDelimiter",label:"root__delimiter",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({display:"flex",justifyContent:"center",alignItems:"center",fontSize:"2rem",fontWeight:700});import{jsx as To}from"react/jsx-runtime";var Eo=({sx:o,...e})=>To(No,{sx:o,...e,children:To("span",{children:"\u2743 \u2743 \u2743"})});import{jsx as Do}from"react/jsx-runtime";var S=({type:o,id:e,Delimiter:t,Container:i})=>{let{sx:n,...r}=i||{};return Do(s,{sx:n,...r,children:Do(Eo,{id:`${o}-${e}`,...t})},e)};import{styled as Lo}from"@mui/material";var Io=Lo("iframe",{name:"RootEmbed",label:"root__embed",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({width:"100%",border:0,borderRadius:8}),_o=Lo("span",{name:"CaptionEmbed",label:"root__embed__caption",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({marginTop:10});import{Fragment as Be,jsx as Mo,jsxs as He}from"react/jsx-runtime";var Wo=({sx:o,caption:e,...t})=>He(Be,{children:[Mo(Io,{sx:o,...t}),e&&Mo(_o,{children:e})]});import{jsx as Bo}from"react/jsx-runtime";var Q=({type:o,data:e,id:t,Container:i,Embed:n})=>{let{embed:r,width:a,height:d,caption:m}=e,{sx:P,...h}=i||{};return Bo(s,{sx:P,...h,children:Bo(Wo,{id:`${o}-${t}`,src:r,width:a,height:d,caption:m,...n})},t)};import{styled as ve}from"@mui/material";var Ho=ve("div",{name:"RootRaw",label:"root__raw",shouldForwardProp:o=>o!=="as"})({backgroundColor:"#1e2128",color:"#a1a7b6",overscrollBehavior:"contain",lineHeight:1.6,fontSize:12,minHeight:200,padding:"10px 12px",borderRadius:8,boxShadow:"inset 0 1px 2px 0 rgb(35 44 72 / 6%)",margin:"0",whiteSpace:"pre-wrap",resize:"vertical"});import{jsx as $e}from"react/jsx-runtime";var vo=({sx:o,...e})=>$e(Ho,{sx:o,...e});import{jsx as $o}from"react/jsx-runtime";var A=({type:o,data:e,id:t,Container:i,Raw:n})=>{let{sx:r,...a}=i||{};return $o(s,{sx:r,...a,children:$o(vo,{id:`${o}-${t}`,...n,children:e.html})},t)};import{styled as Fe}from"@mui/material";var Fo=Fe("blockquote",{name:"RootQuote",label:"root__quote",shouldForwardProp:o=>o!=="as"})({});import{jsx as Se}from"react/jsx-runtime";var So=({sx:o,...e})=>Se(Fo,{sx:o,...e});import{jsx as Qo}from"react/jsx-runtime";var z=({type:o,data:e,id:t,Container:i,Quote:n})=>{let{sx:r,...a}=i||{};return Qo(s,{sx:r,...a,children:Qo(So,{id:`${o}-${t}`,...n,children:e.text})},t)};import{styled as Qe}from"@mui/material";var Ao=Qe("div",{name:"RootCode",label:"root__code",shouldForwardProp:o=>o!=="as"})({backgroundColor:"#f8f7fa",color:"#41314e",border:"1px solid #f1f1f4",overscrollBehavior:"contain",lineHeight:1.6,fontSize:12,minHeight:200,resize:"vertical",padding:"10px 12px",borderRadius:8,boxShadow:"none",wordWrap:"normal",overflowX:"auto",margin:".4em 0",whiteSpace:"pre-wrap"});import{jsx as Ae}from"react/jsx-runtime";var zo=({sx:o,...e})=>Ae(Ao,{sx:o,...e});import{jsx as Oo}from"react/jsx-runtime";var O=({type:o,data:e,id:t,Container:i,Code:n})=>{let{code:r}=e,{sx:a,...d}=i||{};return Oo(s,{sx:a,...d,children:Oo(zo,{id:`${o}-${t}`,...n,children:r})},t)};import{styled as w}from"@mui/material";var Uo=w("a",{name:"RootLink",label:"root__link",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({display:"block",padding:"25px",color:o.palette.text.primary,background:"#fff",border:"1px solid rgba(201, 201, 204, 0.48)",boxShadow:"0 1px 3px rgb(0 0 0 / 10%)",borderRadius:6,willChange:"filter",transition:"box-shadow 450ms cubic-bezier(0.215, 0.61, 0.355, 1)",margin:".4em 0",textDecoration:"none","&:hover":{boxShadow:"0 0 3px rgb(0 0 0 / 16%)"}})),qo=w("div",{shouldForwardProp:o=>o!=="image"})(({image:o})=>({backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundSize:"cover",margin:"0 0 0 30px",width:65,height:65,borderRadius:3,float:"right",...!!o&&{backgroundImage:`url(${o})`}})),Go=w("div")(({theme:o})=>({fontSize:17,fontWeight:600,lineHeight:"1.5em",margin:"0 0 10px 0",color:o.palette.text.primary})),Xo=w("p")(({theme:o})=>({margin:"0 0 20px 0",fontSize:15,lineHeight:"1.55em",display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden",color:o.palette.text.primary})),Jo=w("span")(({theme:o})=>({display:"block",fontSize:15,lineHeight:"1em",color:o.palette.text.secondary,border:0,padding:0}));import{jsx as D,jsxs as ze}from"react/jsx-runtime";var Ko=({id:o,image:e,title:t,description:i,siteName:n,href:r,sx:a,...d})=>ze(Uo,{as:r?"a":"div",id:o,href:r||void 0,target:r?"_blank":void 0,rel:r?"nofollow noindex noreferrer":void 0,sx:a,...d,children:[D(qo,{image:e}),D(Go,{children:t}),D(Xo,{children:i}),D(Jo,{children:n})]},o);import{jsx as Vo}from"react/jsx-runtime";var U=({type:o,data:e,id:t,Container:i,Link:n})=>{let{meta:{image:r,title:a,description:d,site_name:m},link:P}=e,{sx:h,...l}=i||{};return Vo(s,{sx:h,...l,children:Vo(Ko,{id:`${o}-${t}`,image:r?.url??"",title:a??"",description:d??"",siteName:m,href:P??"",...n})},t)};import{Fragment as Oe,jsx as R}from"react/jsx-runtime";var Yi=({value:o,ParagraphSlot:e,HeaderSlot:t,DelimiterSlot:i,ListSlot:n,ImageSlot:r,TableSlot:a,EmbedSlot:d,RawSlot:m,QuoteSlot:P,CodeSlot:h,LinkSlot:l})=>{let{blocks:L}=o;return R(Oe,{children:L.map(({id:p,type:f,data:c,tunes:Yo})=>{switch(f){case"paragraph":return R(_,{id:p,type:f,data:c,...e},p);case"header":return R(W,{id:p,type:f,data:c,...t},p);case"delimiter":return R(S,{id:p,type:f,data:c,...i},p);case"list":return R(E,{id:p,type:f,data:c,tunes:Yo,...n},p);case"image":return R($,{id:p,type:f,data:c,...r},p);case"table":return R(F,{id:p,type:f,data:c,...a},p);case"embed":return R(Q,{id:p,type:f,data:c,...d},p);case"rawTool":return R(A,{id:p,type:f,data:c,...m},p);case"quote":return R(z,{id:p,type:f,data:c,...P},p);case"code":return R(O,{id:p,type:f,data:c,...h},p);case"linkTool":return R(U,{id:p,type:f,data:c,...l},p);default:return null}})})};export{Yi as BaseRender};
@@ -13,8 +13,6 @@ import { RawRootProps } from '../components/Raw';
13
13
  import { QuoteRootProps } from '../components/Quote';
14
14
  import { CodeRootProps } from '../components/Code';
15
15
  import { LinkRootProps } from '../components/Link';
16
- import { CheckListRootProps } from '../components/CheckList';
17
- import { RootCheckListItemProps } from '../components/CheckListItem';
18
16
  import { EditorDataModel } from '../interfaces';
19
17
  export interface BaseRenderProps {
20
18
  value: EditorDataModel;
@@ -65,9 +63,4 @@ export interface BaseRenderProps {
65
63
  Container?: RootContainerProps;
66
64
  Link?: LinkRootProps;
67
65
  };
68
- CheckListSlot?: {
69
- Container?: RootContainerProps;
70
- CheckList?: CheckListRootProps;
71
- Item?: RootCheckListItemProps;
72
- };
73
66
  }
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";var p=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var n=Object.prototype.hasOwnProperty;var m=(t,o,i,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of s(o))!n.call(t,r)&&r!==i&&p(t,r,{get:()=>o[r],enumerable:!(e=a(o,r))||e.enumerable});return t};var R=t=>m(p({},"__esModule",{value:!0}),t);var P={};module.exports=R(P);
2
+ "use strict";var a=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var R=Object.prototype.hasOwnProperty;var m=(r,o,p,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let t of n(o))!R.call(r,t)&&t!==p&&a(r,t,{get:()=>o[t],enumerable:!(e=i(o,t))||e.enumerable});return r};var s=r=>m(a({},"__esModule",{value:!0}),r);var P={};module.exports=s(P);
@@ -18,7 +18,5 @@ import { Raw } from './Raw';
18
18
  import { Quote } from './Quote';
19
19
  import { Code } from './Code';
20
20
  import { Link } from './Link';
21
- import { CheckList } from './CheckList';
22
- import { CheckListItem } from './CheckListItem';
23
21
  import { CheckBox } from './CheckBox';
24
- export { Container as EditorContainer, Paragraph as EditorParagraph, Header as EditorHeader, List as EditorList, ListItem as EditorListItem, InlineCode as EditorInlineCode, Bold as EditorBold, Italic as EditorItalic, Marker as EditorMarker, Anchor as EditorAnchor, Delimiter as EditorDelimiter, Image as EditorImage, Table as EditorTable, TableRow as EditorTableRow, TableCell as EditorTableCell, Embed as EditorEmbed, Raw as EditorRaw, Quote as EditorQuote, Code as EditorCode, Link as EditorLink, CheckList as EditorCheckList, CheckListItem as EditorCheckListItem, CheckBox as EditorCheckBox, };
22
+ export { Container as EditorContainer, Paragraph as EditorParagraph, Header as EditorHeader, List as EditorList, ListItem as EditorListItem, InlineCode as EditorInlineCode, Bold as EditorBold, Italic as EditorItalic, Marker as EditorMarker, Anchor as EditorAnchor, Delimiter as EditorDelimiter, Image as EditorImage, Table as EditorTable, TableRow as EditorTableRow, TableCell as EditorTableCell, Embed as EditorEmbed, Raw as EditorRaw, Quote as EditorQuote, Code as EditorCode, Link as EditorLink, CheckBox as EditorCheckBox, };
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";var m=Object.defineProperty;var D=Object.getOwnPropertyDescriptor;var H=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var P=(r,o)=>{for(var i in o)m(r,i,{get:o[i],enumerable:!0})},Q=(r,o,i,A)=>{if(o&&typeof o=="object"||typeof o=="function")for(let t of H(o))!M.call(r,t)&&t!==i&&m(r,t,{get:()=>o[t],enumerable:!(A=D(o,t))||A.enumerable});return r};var j=r=>Q(m({},"__esModule",{value:!0}),r);var q={};P(q,{EditorAnchor:()=>n.Anchor,EditorBold:()=>f.Bold,EditorCheckBox:()=>u.CheckBox,EditorCheckList:()=>R.CheckList,EditorCheckListItem:()=>x.CheckListItem,EditorCode:()=>w.Code,EditorContainer:()=>a.Container,EditorDelimiter:()=>c.Delimiter,EditorEmbed:()=>b.Embed,EditorHeader:()=>d.Header,EditorImage:()=>h.Image,EditorInlineCode:()=>E.InlineCode,EditorItalic:()=>l.Italic,EditorLink:()=>B.Link,EditorList:()=>s.List,EditorListItem:()=>p.ListItem,EditorMarker:()=>C.Marker,EditorParagraph:()=>e.Paragraph,EditorQuote:()=>g.Quote,EditorRaw:()=>T.Raw,EditorTable:()=>k.Table,EditorTableCell:()=>L.TableCell,EditorTableRow:()=>I.TableRow});module.exports=j(q);var a=require("./Container"),e=require("./Paragraph"),d=require("./Header"),s=require("./List"),p=require("./ListItem"),E=require("./InlineCode"),f=require("./Bold"),l=require("./Italic"),C=require("./Marker"),n=require("./Anchor"),c=require("./Delimiter"),h=require("./Image"),k=require("./Table"),I=require("./TableRow"),L=require("./TableCell"),b=require("./Embed"),T=require("./Raw"),g=require("./Quote"),w=require("./Code"),B=require("./Link"),R=require("./CheckList"),x=require("./CheckListItem"),u=require("./CheckBox");0&&(module.exports={EditorAnchor,EditorBold,EditorCheckBox,EditorCheckList,EditorCheckListItem,EditorCode,EditorContainer,EditorDelimiter,EditorEmbed,EditorHeader,EditorImage,EditorInlineCode,EditorItalic,EditorLink,EditorList,EditorListItem,EditorMarker,EditorParagraph,EditorQuote,EditorRaw,EditorTable,EditorTableCell,EditorTableRow});
2
+ "use strict";var m=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var A=Object.getOwnPropertyNames;var D=Object.prototype.hasOwnProperty;var H=(r,o)=>{for(var t in o)m(r,t,{get:o[t],enumerable:!0})},M=(r,o,t,x)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of A(o))!D.call(r,i)&&i!==t&&m(r,i,{get:()=>o[i],enumerable:!(x=u(o,i))||x.enumerable});return r};var P=r=>M(m({},"__esModule",{value:!0}),r);var Q={};H(Q,{EditorAnchor:()=>C.Anchor,EditorBold:()=>f.Bold,EditorCheckBox:()=>R.CheckBox,EditorCode:()=>w.Code,EditorContainer:()=>a.Container,EditorDelimiter:()=>b.Delimiter,EditorEmbed:()=>L.Embed,EditorHeader:()=>d.Header,EditorImage:()=>I.Image,EditorInlineCode:()=>E.InlineCode,EditorItalic:()=>l.Italic,EditorLink:()=>B.Link,EditorList:()=>s.List,EditorListItem:()=>p.ListItem,EditorMarker:()=>n.Marker,EditorParagraph:()=>e.Paragraph,EditorQuote:()=>g.Quote,EditorRaw:()=>T.Raw,EditorTable:()=>c.Table,EditorTableCell:()=>k.TableCell,EditorTableRow:()=>h.TableRow});module.exports=P(Q);var a=require("./Container"),e=require("./Paragraph"),d=require("./Header"),s=require("./List"),p=require("./ListItem"),E=require("./InlineCode"),f=require("./Bold"),l=require("./Italic"),n=require("./Marker"),C=require("./Anchor"),b=require("./Delimiter"),I=require("./Image"),c=require("./Table"),h=require("./TableRow"),k=require("./TableCell"),L=require("./Embed"),T=require("./Raw"),g=require("./Quote"),w=require("./Code"),B=require("./Link"),R=require("./CheckBox");0&&(module.exports={EditorAnchor,EditorBold,EditorCheckBox,EditorCode,EditorContainer,EditorDelimiter,EditorEmbed,EditorHeader,EditorImage,EditorInlineCode,EditorItalic,EditorLink,EditorList,EditorListItem,EditorMarker,EditorParagraph,EditorQuote,EditorRaw,EditorTable,EditorTableCell,EditorTableRow});
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{Container as o}from"./Container";import{Paragraph as r}from"./Paragraph";import{Header as t}from"./Header";import{List as i}from"./List";import{ListItem as m}from"./ListItem";import{InlineCode as a}from"./InlineCode";import{Bold as e}from"./Bold";import{Italic as d}from"./Italic";import{Marker as s}from"./Marker";import{Anchor as p}from"./Anchor";import{Delimiter as E}from"./Delimiter";import{Image as f}from"./Image";import{Table as l}from"./Table";import{TableRow as C}from"./TableRow";import{TableCell as n}from"./TableCell";import{Embed as c}from"./Embed";import{Raw as h}from"./Raw";import{Quote as k}from"./Quote";import{Code as I}from"./Code";import{Link as L}from"./Link";import{CheckList as b}from"./CheckList";import{CheckListItem as T}from"./CheckListItem";import{CheckBox as g}from"./CheckBox";export{p as EditorAnchor,e as EditorBold,g as EditorCheckBox,b as EditorCheckList,T as EditorCheckListItem,I as EditorCode,o as EditorContainer,E as EditorDelimiter,c as EditorEmbed,t as EditorHeader,f as EditorImage,a as EditorInlineCode,d as EditorItalic,L as EditorLink,i as EditorList,m as EditorListItem,s as EditorMarker,r as EditorParagraph,k as EditorQuote,h as EditorRaw,l as EditorTable,n as EditorTableCell,C as EditorTableRow};
2
+ import{Container as o}from"./Container";import{Paragraph as r}from"./Paragraph";import{Header as i}from"./Header";import{List as t}from"./List";import{ListItem as m}from"./ListItem";import{InlineCode as a}from"./InlineCode";import{Bold as e}from"./Bold";import{Italic as d}from"./Italic";import{Marker as s}from"./Marker";import{Anchor as p}from"./Anchor";import{Delimiter as E}from"./Delimiter";import{Image as f}from"./Image";import{Table as l}from"./Table";import{TableRow as n}from"./TableRow";import{TableCell as C}from"./TableCell";import{Embed as b}from"./Embed";import{Raw as I}from"./Raw";import{Quote as c}from"./Quote";import{Code as h}from"./Code";import{Link as k}from"./Link";import{CheckBox as L}from"./CheckBox";export{p as EditorAnchor,e as EditorBold,L as EditorCheckBox,h as EditorCode,o as EditorContainer,E as EditorDelimiter,b as EditorEmbed,i as EditorHeader,f as EditorImage,a as EditorInlineCode,d as EditorItalic,k as EditorLink,t as EditorList,m as EditorListItem,s as EditorMarker,r as EditorParagraph,c as EditorQuote,I as EditorRaw,l as EditorTable,C as EditorTableCell,n as EditorTableRow};
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";var O=Object.create;var d=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var v=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var T=(o,r)=>{for(var e in r)d(o,e,{get:r[e],enumerable:!0})},a=(o,r,e,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of F(r))!w.call(o,s)&&s!==e&&d(o,s,{get:()=>r[s],enumerable:!(t=g(r,s))||t.enumerable});return o};var H=(o,r,e)=>(e=o!=null?O(v(o)):{},a(r||!o||!o.__esModule?d(e,"default",{value:o,enumerable:!0}):e,o)),z=o=>a(d({},"__esModule",{value:!0}),o);var G={};T(G,{RecursiveNode:()=>q});module.exports=z(G);var i=H(require("html-react-parser"));var m=require("isomorphic-dompurify"),f=o=>(0,m.sanitize)(o,{FORBID_ATTR:["class"]});var c=require("@mui/material"),R=(0,c.styled)("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});var h=require("react/jsx-runtime"),P=({sx:o,...r})=>(0,h.jsx)(R,{sx:o,...r});var u=require("@mui/material"),C=(0,u.styled)("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var y=require("react/jsx-runtime"),I=({sx:o,...r})=>(0,y.jsx)(C,{sx:o,...r});var M=require("@mui/material"),k=(0,M.styled)("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});var _=require("react/jsx-runtime"),B=({sx:o,...r})=>(0,_.jsx)(k,{sx:o,...r});var A=require("@mui/material"),b=(0,A.styled)("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});var N=require("react/jsx-runtime"),E=({sx:o,...r})=>(0,N.jsx)(b,{sx:o,...r});var W=require("@mui/material"),$=(0,W.styled)("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var D=require("react/jsx-runtime"),x=({sx:o,...r})=>(0,D.jsx)($,{sx:o,...r});var p=require("react/jsx-runtime"),l=(o,r)=>{if(!("name"in o)||!("children"in o))return null;let{name:e,children:t,attribs:s}=o;return e==="code"?(0,p.jsx)(P,{id:`${e}-${r}`,children:(0,i.domToReact)(t,{replace:n=>l(n,r)})}):e==="b"?(0,p.jsx)(I,{id:`${e}-${r}`,children:(0,i.domToReact)(t,{replace:n=>l(n,r)})}):e==="i"?(0,p.jsx)(B,{id:`${e}-${r}`,children:(0,i.domToReact)(t,{replace:n=>l(n,r)})}):e==="mark"?(0,p.jsx)(E,{id:`${e}-${r}`,children:(0,i.domToReact)(t,{replace:n=>l(n,r)})}):e==="a"?(0,p.jsx)(x,{id:`${e}-${r}`,href:s?.href,rel:"noopener noreferrer",target:"_blank",children:(0,i.domToReact)(t,{replace:n=>l(n,r)})}):null},q=({html:o,id:r})=>{let e=f(o);return(0,p.jsx)(p.Fragment,{children:(0,i.default)(e,{replace:t=>l(t,r)})})};0&&(module.exports={RecursiveNode});
2
+ "use strict";var g=Object.create;var a=Object.defineProperty;var F=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var T=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var H=(o,r)=>{for(var e in r)a(o,e,{get:r[e],enumerable:!0})},m=(o,r,e,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of w(r))!v.call(o,i)&&i!==e&&a(o,i,{get:()=>r[i],enumerable:!(s=F(r,i))||s.enumerable});return o};var z=(o,r,e)=>(e=o!=null?g(T(o)):{},m(r||!o||!o.__esModule?a(e,"default",{value:o,enumerable:!0}):e,o)),q=o=>m(a({},"__esModule",{value:!0}),o);var J={};H(J,{RecursiveNode:()=>G});module.exports=q(J);var p=z(require("html-react-parser"));var f=require("@mui/material"),c=(0,f.styled)("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var P=require("react/jsx-runtime"),R=({sx:o,...r})=>(0,P.jsx)(c,{sx:o,...r});var h=require("@mui/material"),u=(0,h.styled)("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var y=require("react/jsx-runtime"),C=({sx:o,...r})=>(0,y.jsx)(u,{sx:o,...r});var I=require("@mui/material"),M=(0,I.styled)("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});var B=require("react/jsx-runtime"),k=({sx:o,...r})=>(0,B.jsx)(M,{sx:o,...r});var _=require("@mui/material"),A=(0,_.styled)("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});var E=require("react/jsx-runtime"),b=({sx:o,...r})=>(0,E.jsx)(A,{sx:o,...r});var N=require("@mui/material"),D=(0,N.styled)("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});var W=require("react/jsx-runtime"),O=({sx:o,...r})=>(0,W.jsx)(D,{sx:o,...r});var $=require("isomorphic-dompurify"),x=o=>(0,$.sanitize)(o,{FORBID_ATTR:["class"]});var n=require("react/jsx-runtime"),l=(o,r)=>{if(!("name"in o)||!("children"in o))return null;let{name:e,children:s,attribs:i}=o,d=s;return e==="code"?(0,n.jsx)(k,{id:`${e}-${r}`,children:(0,p.domToReact)(d,{replace:t=>l(t,r)})}):e==="b"?(0,n.jsx)(C,{id:`${e}-${r}`,children:(0,p.domToReact)(d,{replace:t=>l(t,r)})}):e==="i"?(0,n.jsx)(b,{id:`${e}-${r}`,children:(0,p.domToReact)(d,{replace:t=>l(t,r)})}):e==="mark"?(0,n.jsx)(O,{id:`${e}-${r}`,children:(0,p.domToReact)(d,{replace:t=>l(t,r)})}):e==="a"?(0,n.jsx)(R,{id:`${e}-${r}`,href:i?.href,rel:"noopener noreferrer",target:"_blank",children:(0,p.domToReact)(d,{replace:t=>l(t,r)})}):null},G=({html:o,id:r})=>{let e=x(o);return(0,n.jsx)(n.Fragment,{children:(0,p.default)(e,{replace:s=>l(s,r)})})};0&&(module.exports={RecursiveNode});
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import x,{domToReact as s}from"html-react-parser";import{sanitize as y}from"isomorphic-dompurify";var l=o=>y(o,{FORBID_ATTR:["class"]});import{styled as M}from"@mui/material";var d=M("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});import{jsx as k}from"react/jsx-runtime";var a=({sx:o,...r})=>k(d,{sx:o,...r});import{styled as B}from"@mui/material";var m=B("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as _}from"react/jsx-runtime";var f=({sx:o,...r})=>_(m,{sx:o,...r});import{styled as A}from"@mui/material";var c=A("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});import{jsx as b}from"react/jsx-runtime";var R=({sx:o,...r})=>b(c,{sx:o,...r});import{styled as E}from"@mui/material";var P=E("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});import{jsx as N}from"react/jsx-runtime";var h=({sx:o,...r})=>N(P,{sx:o,...r});import{styled as W}from"@mui/material";var u=W("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as $}from"react/jsx-runtime";var C=({sx:o,...r})=>$(u,{sx:o,...r});import{Fragment as D,jsx as i}from"react/jsx-runtime";var p=(o,r)=>{if(!("name"in o)||!("children"in o))return null;let{name:e,children:n,attribs:I}=o;return e==="code"?i(a,{id:`${e}-${r}`,children:s(n,{replace:t=>p(t,r)})}):e==="b"?i(f,{id:`${e}-${r}`,children:s(n,{replace:t=>p(t,r)})}):e==="i"?i(R,{id:`${e}-${r}`,children:s(n,{replace:t=>p(t,r)})}):e==="mark"?i(h,{id:`${e}-${r}`,children:s(n,{replace:t=>p(t,r)})}):e==="a"?i(C,{id:`${e}-${r}`,href:I?.href,rel:"noopener noreferrer",target:"_blank",children:s(n,{replace:t=>p(t,r)})}):null},Po=({html:o,id:r})=>{let e=l(o);return i(D,{children:x(e,{replace:n=>p(n,r)})})};export{Po as RecursiveNode};
2
+ import $,{domToReact as s}from"html-react-parser";import{styled as M}from"@mui/material";var d=M("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as k}from"react/jsx-runtime";var a=({sx:o,...r})=>k(d,{sx:o,...r});import{styled as B}from"@mui/material";var m=B("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as _}from"react/jsx-runtime";var f=({sx:o,...r})=>_(m,{sx:o,...r});import{styled as A}from"@mui/material";var c=A("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});import{jsx as b}from"react/jsx-runtime";var R=({sx:o,...r})=>b(c,{sx:o,...r});import{styled as E}from"@mui/material";var P=E("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});import{jsx as N}from"react/jsx-runtime";var h=({sx:o,...r})=>N(P,{sx:o,...r});import{styled as D}from"@mui/material";var u=D("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});import{jsx as O}from"react/jsx-runtime";var C=({sx:o,...r})=>O(u,{sx:o,...r});import{sanitize as W}from"isomorphic-dompurify";var y=o=>W(o,{FORBID_ATTR:["class"]});import{Fragment as x,jsx as p}from"react/jsx-runtime";var n=(o,r)=>{if(!("name"in o)||!("children"in o))return null;let{name:e,children:l,attribs:I}=o,i=l;return e==="code"?p(R,{id:`${e}-${r}`,children:s(i,{replace:t=>n(t,r)})}):e==="b"?p(f,{id:`${e}-${r}`,children:s(i,{replace:t=>n(t,r)})}):e==="i"?p(h,{id:`${e}-${r}`,children:s(i,{replace:t=>n(t,r)})}):e==="mark"?p(C,{id:`${e}-${r}`,children:s(i,{replace:t=>n(t,r)})}):e==="a"?p(a,{id:`${e}-${r}`,href:I?.href,rel:"noopener noreferrer",target:"_blank",children:s(i,{replace:t=>n(t,r)})}):null},Po=({html:o,id:r})=>{let e=y(o);return p(x,{children:$(e,{replace:l=>n(l,r)})})};export{Po as RecursiveNode};
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";var K=Object.create;var d=Object.defineProperty;var Q=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var U=Object.getPrototypeOf,V=Object.prototype.hasOwnProperty;var X=(o,r)=>{for(var e in r)d(o,e,{get:r[e],enumerable:!0})},m=(o,r,e,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let p of S(r))!V.call(o,p)&&p!==e&&d(o,p,{get:()=>r[p],enumerable:!(t=Q(r,p))||t.enumerable});return o};var Y=(o,r,e)=>(e=o!=null?K(U(o)):{},m(r||!o||!o.__esModule?d(e,"default",{value:o,enumerable:!0}):e,o)),Z=o=>m(d({},"__esModule",{value:!0}),o);var ro={};X(ro,{HeaderNode:()=>oo});module.exports=Z(ro);var a=Y(require("html-react-parser"));var f=require("isomorphic-dompurify"),c=o=>(0,f.sanitize)(o,{FORBID_ATTR:["class"]});var R=require("@mui/material"),P=(0,R.styled)("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});var C=require("react/jsx-runtime"),h=({sx:o,...r})=>(0,C.jsx)(P,{sx:o,...r});var y=require("@mui/material"),u=(0,y.styled)("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var H=require("react/jsx-runtime"),x=({sx:o,...r})=>(0,H.jsx)(u,{sx:o,...r});var I=require("@mui/material"),M=(0,I.styled)("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});var k=require("react/jsx-runtime"),_=({sx:o,...r})=>(0,k.jsx)(M,{sx:o,...r});var E=require("@mui/material"),b=(0,E.styled)("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});var W=require("react/jsx-runtime"),B=({sx:o,...r})=>(0,W.jsx)(b,{sx:o,...r});var N=require("@mui/material"),A=(0,N.styled)("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var v=require("react/jsx-runtime"),$=({sx:o,...r})=>(0,v.jsx)(A,{sx:o,...r});var i=require("react/jsx-runtime"),s=(o,r)=>{if(!("name"in o)||!("children"in o))return null;let{name:e,children:t,attribs:p}=o;return e==="code"?(0,i.jsx)(h,{id:`${e}-${r}`,children:(0,a.domToReact)(t,{replace:n=>s(n,r)})}):e==="b"?(0,i.jsx)(x,{id:`${e}-${r}`,children:(0,a.domToReact)(t,{replace:n=>s(n,r)})}):e==="i"?(0,i.jsx)(_,{id:`${e}-${r}`,children:(0,a.domToReact)(t,{replace:n=>s(n,r)})}):e==="mark"?(0,i.jsx)(B,{id:`${e}-${r}`,children:(0,a.domToReact)(t,{replace:n=>s(n,r)})}):e==="a"?(0,i.jsx)($,{id:`${e}-${r}`,href:p?.href,rel:"noopener noreferrer",target:"_blank",children:(0,a.domToReact)(t,{replace:n=>s(n,r)})}):null},D=({html:o,id:r})=>{let e=c(o);return(0,i.jsx)(i.Fragment,{children:(0,a.default)(e,{replace:t=>s(t,r)})})};var g=require("@mui/material"),O=(0,g.styled)("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));var F=require("react/jsx-runtime"),w=({sx:o,...r})=>(0,F.jsx)(O,{sx:o,...r});var T=require("@mui/material"),z=(0,T.styled)("h2",{name:"RootHeader",label:"root__header",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({marginBottom:0});var q=require("react/jsx-runtime"),j={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},L=({level:o,sx:r,...e})=>(0,q.jsx)(z,{as:j[o],sx:r,...e});var l=require("react/jsx-runtime"),oo=({type:o,data:r,id:e,Container:t,Header:p})=>{let{text:n}=r,{sx:G,...J}=t||{};return(0,l.jsx)(w,{sx:G,...J,children:(0,l.jsx)(L,{id:`${o}-${e}`,level:r.level,...p,children:(0,l.jsx)(D,{html:n,id:e})})},e)};0&&(module.exports={HeaderNode});
2
+ "use strict";var K=Object.create;var l=Object.defineProperty;var Q=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var U=Object.getPrototypeOf,V=Object.prototype.hasOwnProperty;var X=(o,r)=>{for(var e in r)l(o,e,{get:r[e],enumerable:!0})},f=(o,r,e,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of S(r))!V.call(o,n)&&n!==e&&l(o,n,{get:()=>r[n],enumerable:!(i=Q(r,n))||i.enumerable});return o};var Y=(o,r,e)=>(e=o!=null?K(U(o)):{},f(r||!o||!o.__esModule?l(e,"default",{value:o,enumerable:!0}):e,o)),Z=o=>f(l({},"__esModule",{value:!0}),o);var ro={};X(ro,{HeaderNode:()=>oo});module.exports=Z(ro);var s=Y(require("html-react-parser"));var c=require("@mui/material"),R=(0,c.styled)("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var h=require("react/jsx-runtime"),P=({sx:o,...r})=>(0,h.jsx)(R,{sx:o,...r});var C=require("@mui/material"),y=(0,C.styled)("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var x=require("react/jsx-runtime"),u=({sx:o,...r})=>(0,x.jsx)(y,{sx:o,...r});var H=require("@mui/material"),M=(0,H.styled)("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});var _=require("react/jsx-runtime"),I=({sx:o,...r})=>(0,_.jsx)(M,{sx:o,...r});var k=require("@mui/material"),E=(0,k.styled)("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});var B=require("react/jsx-runtime"),b=({sx:o,...r})=>(0,B.jsx)(E,{sx:o,...r});var W=require("@mui/material"),N=(0,W.styled)("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});var D=require("react/jsx-runtime"),A=({sx:o,...r})=>(0,D.jsx)(N,{sx:o,...r});var $=require("isomorphic-dompurify"),g=o=>(0,$.sanitize)(o,{FORBID_ATTR:["class"]});var p=require("react/jsx-runtime"),d=(o,r)=>{if(!("name"in o)||!("children"in o))return null;let{name:e,children:i,attribs:n}=o,a=i;return e==="code"?(0,p.jsx)(I,{id:`${e}-${r}`,children:(0,s.domToReact)(a,{replace:t=>d(t,r)})}):e==="b"?(0,p.jsx)(u,{id:`${e}-${r}`,children:(0,s.domToReact)(a,{replace:t=>d(t,r)})}):e==="i"?(0,p.jsx)(b,{id:`${e}-${r}`,children:(0,s.domToReact)(a,{replace:t=>d(t,r)})}):e==="mark"?(0,p.jsx)(A,{id:`${e}-${r}`,children:(0,s.domToReact)(a,{replace:t=>d(t,r)})}):e==="a"?(0,p.jsx)(P,{id:`${e}-${r}`,href:n?.href,rel:"noopener noreferrer",target:"_blank",children:(0,s.domToReact)(a,{replace:t=>d(t,r)})}):null},v=({html:o,id:r})=>{let e=g(o);return(0,p.jsx)(p.Fragment,{children:(0,s.default)(e,{replace:i=>d(i,r)})})};var O=require("@mui/material"),w=(0,O.styled)("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));var T=require("react/jsx-runtime"),F=({sx:o,...r})=>(0,T.jsx)(w,{sx:o,...r});var z=require("@mui/material"),L=(0,z.styled)("h2",{name:"RootHeader",label:"root__header",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({marginBottom:0});var G=require("react/jsx-runtime"),j={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},q=({level:o,sx:r,...e})=>(0,G.jsx)(L,{as:j[o],sx:r,...e});var m=require("react/jsx-runtime"),oo=({type:o,data:r,id:e,Container:i,Header:n})=>{let{text:a}=r,{sx:t,...J}=i||{};return(0,m.jsx)(F,{sx:t,...J,children:(0,m.jsx)(q,{id:`${o}-${e}`,level:r.level,...n,children:(0,m.jsx)(v,{html:a,id:e})})},e)};0&&(module.exports={HeaderNode});
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import T,{domToReact as a}from"html-react-parser";import{sanitize as B}from"isomorphic-dompurify";var l=o=>B(o,{FORBID_ATTR:["class"]});import{styled as W}from"@mui/material";var m=W("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});import{jsx as N}from"react/jsx-runtime";var f=({sx:o,...r})=>N(m,{sx:o,...r});import{styled as A}from"@mui/material";var c=A("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as $}from"react/jsx-runtime";var R=({sx:o,...r})=>$(c,{sx:o,...r});import{styled as v}from"@mui/material";var P=v("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});import{jsx as D}from"react/jsx-runtime";var h=({sx:o,...r})=>D(P,{sx:o,...r});import{styled as g}from"@mui/material";var C=g("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});import{jsx as O}from"react/jsx-runtime";var y=({sx:o,...r})=>O(C,{sx:o,...r});import{styled as w}from"@mui/material";var u=w("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as F}from"react/jsx-runtime";var x=({sx:o,...r})=>F(u,{sx:o,...r});import{Fragment as z,jsx as i}from"react/jsx-runtime";var p=(o,r)=>{if(!("name"in o)||!("children"in o))return null;let{name:e,children:n,attribs:s}=o;return e==="code"?i(f,{id:`${e}-${r}`,children:a(n,{replace:t=>p(t,r)})}):e==="b"?i(R,{id:`${e}-${r}`,children:a(n,{replace:t=>p(t,r)})}):e==="i"?i(h,{id:`${e}-${r}`,children:a(n,{replace:t=>p(t,r)})}):e==="mark"?i(y,{id:`${e}-${r}`,children:a(n,{replace:t=>p(t,r)})}):e==="a"?i(x,{id:`${e}-${r}`,href:s?.href,rel:"noopener noreferrer",target:"_blank",children:a(n,{replace:t=>p(t,r)})}):null},H=({html:o,id:r})=>{let e=l(o);return i(z,{children:T(e,{replace:n=>p(n,r)})})};import{styled as L}from"@mui/material";var I=L("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));import{jsx as q}from"react/jsx-runtime";var M=({sx:o,...r})=>q(I,{sx:o,...r});import{styled as G}from"@mui/material";var _=G("h2",{name:"RootHeader",label:"root__header",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({marginBottom:0});import{jsx as K}from"react/jsx-runtime";var J={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},k=({level:o,sx:r,...e})=>K(_,{as:J[o],sx:r,...e});import{jsx as d}from"react/jsx-runtime";var Ko=({type:o,data:r,id:e,Container:n,Header:s})=>{let{text:t}=r,{sx:E,...b}=n||{};return d(M,{sx:E,...b,children:d(k,{id:`${o}-${e}`,level:r.level,...s,children:d(H,{html:t,id:e})})},e)};export{Ko as HeaderNode};
2
+ import T,{domToReact as a}from"html-react-parser";import{styled as B}from"@mui/material";var m=B("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as W}from"react/jsx-runtime";var f=({sx:o,...r})=>W(m,{sx:o,...r});import{styled as N}from"@mui/material";var c=N("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as A}from"react/jsx-runtime";var R=({sx:o,...r})=>A(c,{sx:o,...r});import{styled as D}from"@mui/material";var P=D("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});import{jsx as $}from"react/jsx-runtime";var h=({sx:o,...r})=>$(P,{sx:o,...r});import{styled as g}from"@mui/material";var C=g("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});import{jsx as v}from"react/jsx-runtime";var y=({sx:o,...r})=>v(C,{sx:o,...r});import{styled as O}from"@mui/material";var u=O("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});import{jsx as w}from"react/jsx-runtime";var x=({sx:o,...r})=>w(u,{sx:o,...r});import{sanitize as F}from"isomorphic-dompurify";var H=o=>F(o,{FORBID_ATTR:["class"]});import{Fragment as z,jsx as i}from"react/jsx-runtime";var p=(o,r)=>{if(!("name"in o)||!("children"in o))return null;let{name:e,children:s,attribs:d}=o,n=s;return e==="code"?i(h,{id:`${e}-${r}`,children:a(n,{replace:t=>p(t,r)})}):e==="b"?i(R,{id:`${e}-${r}`,children:a(n,{replace:t=>p(t,r)})}):e==="i"?i(y,{id:`${e}-${r}`,children:a(n,{replace:t=>p(t,r)})}):e==="mark"?i(x,{id:`${e}-${r}`,children:a(n,{replace:t=>p(t,r)})}):e==="a"?i(f,{id:`${e}-${r}`,href:d?.href,rel:"noopener noreferrer",target:"_blank",children:a(n,{replace:t=>p(t,r)})}):null},M=({html:o,id:r})=>{let e=H(o);return i(z,{children:T(e,{replace:s=>p(s,r)})})};import{styled as L}from"@mui/material";var I=L("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));import{jsx as q}from"react/jsx-runtime";var _=({sx:o,...r})=>q(I,{sx:o,...r});import{styled as G}from"@mui/material";var k=G("h2",{name:"RootHeader",label:"root__header",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({marginBottom:0});import{jsx as K}from"react/jsx-runtime";var J={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},E=({level:o,sx:r,...e})=>K(k,{as:J[o],sx:r,...e});import{jsx as l}from"react/jsx-runtime";var Jo=({type:o,data:r,id:e,Container:s,Header:d})=>{let{text:n}=r,{sx:t,...b}=s||{};return l(_,{sx:t,...b,children:l(E,{id:`${o}-${e}`,level:r.level,...d,children:l(M,{html:n,id:e})})},e)};export{Jo as HeaderNode};
@@ -10,6 +10,5 @@ import { RawNode, RawNodeProps } from './raw';
10
10
  import { QuoteNode, QuoteNodeProps } from './quote';
11
11
  import { CodeNode, CodeNodeProps } from './code';
12
12
  import { LinkNode, LinkNodeProps } from './link';
13
- import { CheckListNode, CheckListNodeProps } from './checklist';
14
- export { RecursiveNode, ParagraphNode, HeaderNode, ListNode, ImageNode, TableNode, DelimiterNode, EmbedNode, RawNode, QuoteNode, CodeNode, LinkNode, CheckListNode, };
15
- export type { ParagraphNodeProps as ParagraphNodeModel, HeaderNodeProps as HeaderNodeModel, ListNodeModel, ImageNodeProps as ImageNodeModel, TableNodeProps as TableNodeModel, DelimiterNodeProps as DelimiterNodeModel, EmbedNodeProps as EmbedNodeModel, RawNodeProps as RawNodeModel, QuoteNodeProps as QuoteNodeModel, CodeNodeProps as CodeNodeModel, LinkNodeProps as LinkNodeModel, CheckListNodeProps as CheckListNodeModel, };
13
+ export { RecursiveNode, ParagraphNode, HeaderNode, ListNode, ImageNode, TableNode, DelimiterNode, EmbedNode, RawNode, QuoteNode, CodeNode, LinkNode, };
14
+ export type { ParagraphNodeProps as ParagraphNodeModel, HeaderNodeProps as HeaderNodeModel, ListNodeModel, ImageNodeProps as ImageNodeModel, TableNodeProps as TableNodeModel, DelimiterNodeProps as DelimiterNodeModel, EmbedNodeProps as EmbedNodeModel, RawNodeProps as RawNodeModel, QuoteNodeProps as QuoteNodeModel, CodeNodeProps as CodeNodeModel, LinkNodeProps as LinkNodeModel, };
package/helpers/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";var N=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var u=(e,o)=>{for(var r in o)N(e,r,{get:o[r],enumerable:!0})},R=(e,o,r,h)=>{if(o&&typeof o=="object"||typeof o=="function")for(let d of C(o))!c.call(e,d)&&d!==r&&N(e,d,{get:()=>o[d],enumerable:!(h=k(o,d))||h.enumerable});return e};var n=e=>R(N({},"__esModule",{value:!0}),e);var w={};u(w,{CheckListNode:()=>g.CheckListNode,CodeNode:()=>L.CodeNode,DelimiterNode:()=>P.DelimiterNode,EmbedNode:()=>l.EmbedNode,HeaderNode:()=>a.HeaderNode,ImageNode:()=>i.ImageNode,LinkNode:()=>b.LinkNode,ListNode:()=>m.ListNode,ParagraphNode:()=>s.ParagraphNode,QuoteNode:()=>M.QuoteNode,RawNode:()=>f.RawNode,RecursiveNode:()=>p.RecursiveNode,TableNode:()=>t.TableNode});module.exports=n(w);var p=require("./RecursiveNode"),s=require("./paragraph"),a=require("./header"),m=require("./list"),i=require("./image"),t=require("./table"),P=require("./delimiter"),l=require("./embed"),f=require("./raw"),M=require("./quote"),L=require("./code"),b=require("./link"),g=require("./checklist");0&&(module.exports={CheckListNode,CodeNode,DelimiterNode,EmbedNode,HeaderNode,ImageNode,LinkNode,ListNode,ParagraphNode,QuoteNode,RawNode,RecursiveNode,TableNode});
2
+ "use strict";var N=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var k=(e,o)=>{for(var r in o)N(e,r,{get:o[r],enumerable:!0})},n=(e,o,r,L)=>{if(o&&typeof o=="object"||typeof o=="function")for(let d of R(o))!h.call(e,d)&&d!==r&&N(e,d,{get:()=>o[d],enumerable:!(L=u(o,d))||L.enumerable});return e};var w=e=>n(N({},"__esModule",{value:!0}),e);var C={};k(C,{CodeNode:()=>b.CodeNode,DelimiterNode:()=>P.DelimiterNode,EmbedNode:()=>l.EmbedNode,HeaderNode:()=>m.HeaderNode,ImageNode:()=>i.ImageNode,LinkNode:()=>g.LinkNode,ListNode:()=>s.ListNode,ParagraphNode:()=>a.ParagraphNode,QuoteNode:()=>M.QuoteNode,RawNode:()=>f.RawNode,RecursiveNode:()=>p.RecursiveNode,TableNode:()=>t.TableNode});module.exports=w(C);var p=require("./RecursiveNode"),a=require("./paragraph"),m=require("./header"),s=require("./list"),i=require("./image"),t=require("./table"),P=require("./delimiter"),l=require("./embed"),f=require("./raw"),M=require("./quote"),b=require("./code"),g=require("./link");0&&(module.exports={CodeNode,DelimiterNode,EmbedNode,HeaderNode,ImageNode,LinkNode,ListNode,ParagraphNode,QuoteNode,RawNode,RecursiveNode,TableNode});
package/helpers/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{RecursiveNode as o}from"./RecursiveNode";import{ParagraphNode as e}from"./paragraph";import{HeaderNode as d}from"./header";import{ListNode as r}from"./list";import{ImageNode as N}from"./image";import{TableNode as p}from"./table";import{DelimiterNode as s}from"./delimiter";import{EmbedNode as a}from"./embed";import{RawNode as m}from"./raw";import{QuoteNode as i}from"./quote";import{CodeNode as t}from"./code";import{LinkNode as P}from"./link";import{CheckListNode as l}from"./checklist";export{l as CheckListNode,t as CodeNode,s as DelimiterNode,a as EmbedNode,d as HeaderNode,N as ImageNode,P as LinkNode,r as ListNode,e as ParagraphNode,i as QuoteNode,m as RawNode,o as RecursiveNode,p as TableNode};
2
+ import{RecursiveNode as o}from"./RecursiveNode";import{ParagraphNode as e}from"./paragraph";import{HeaderNode as d}from"./header";import{ListNode as r}from"./list";import{ImageNode as N}from"./image";import{TableNode as p}from"./table";import{DelimiterNode as a}from"./delimiter";import{EmbedNode as m}from"./embed";import{RawNode as s}from"./raw";import{QuoteNode as i}from"./quote";import{CodeNode as t}from"./code";import{LinkNode as P}from"./link";export{t as CodeNode,a as DelimiterNode,m as EmbedNode,d as HeaderNode,N as ImageNode,P as LinkNode,r as ListNode,e as ParagraphNode,i as QuoteNode,s as RawNode,o as RecursiveNode,p as TableNode};
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
- import { DataList } from '../../interfaces';
3
- import { RootContainerProps } from '../../components/Container';
4
- import { ListRootProps } from '../../components/List';
5
- import { RootItemProps } from '../../components/ListItem';
2
+ import { type RootContainerProps } from '../../components/Container';
3
+ import { type ListRootProps } from '../../components/List';
4
+ import { type RootItemProps } from '../../components/ListItem';
5
+ import type { DataList } from '../../interfaces';
6
6
  export interface ListNodeModel {
7
7
  type: 'list';
8
8
  data: DataList;
@@ -12,4 +12,4 @@ export interface ListNodeModel {
12
12
  List?: ListRootProps;
13
13
  Item?: RootItemProps;
14
14
  }
15
- export declare const ListNode: ({ type, data, id, tunes, Container, List, Item }: ListNodeModel) => import("react").JSX.Element;
15
+ export declare const ListNode: ({ type, data, id, tunes, Container, List, Item, }: ListNodeModel) => import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";var fo=Object.create;var d=Object.defineProperty;var co=Object.getOwnPropertyDescriptor;var Po=Object.getOwnPropertyNames;var Ro=Object.getPrototypeOf,ho=Object.prototype.hasOwnProperty;var xo=(o,r)=>{for(var t in r)d(o,t,{get:r[t],enumerable:!0})},h=(o,r,t,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let p of Po(r))!ho.call(o,p)&&p!==t&&d(o,p,{get:()=>r[p],enumerable:!(e=co(r,p))||e.enumerable});return o};var Co=(o,r,t)=>(t=o!=null?fo(Ro(o)):{},h(r||!o||!o.__esModule?d(t,"default",{value:o,enumerable:!0}):t,o)),yo=o=>h(d({},"__esModule",{value:!0}),o);var go={};xo(go,{ListNode:()=>Io});module.exports=yo(go);var io=require("@mui/material");var l=(o,r)=>o===3?`calc(${(100/o).toFixed(2)}% - ${r*(o-1)/o}px)`:o===2?`calc(${(100/o).toFixed(2)}% - ${r*(o-1)/o}px)`:"100%";var a=Co(require("html-react-parser"));var x=require("isomorphic-dompurify"),C=o=>(0,x.sanitize)(o,{FORBID_ATTR:["class"]});var y=require("@mui/material"),I=(0,y.styled)("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});var u=require("react/jsx-runtime"),g=({sx:o,...r})=>(0,u.jsx)(I,{sx:o,...r});var k=require("@mui/material"),L=(0,k.styled)("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var M=require("react/jsx-runtime"),b=({sx:o,...r})=>(0,M.jsx)(L,{sx:o,...r});var B=require("@mui/material"),E=(0,B.styled)("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});var W=require("react/jsx-runtime"),_=({sx:o,...r})=>(0,W.jsx)(E,{sx:o,...r});var F=require("@mui/material"),w=(0,F.styled)("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});var A=require("react/jsx-runtime"),$=({sx:o,...r})=>(0,A.jsx)(w,{sx:o,...r});var N=require("@mui/material"),T=(0,N.styled)("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var v=require("react/jsx-runtime"),D=({sx:o,...r})=>(0,v.jsx)(T,{sx:o,...r});var n=require("react/jsx-runtime"),m=(o,r)=>{if(!("name"in o)||!("children"in o))return null;let{name:t,children:e,attribs:p}=o;return t==="code"?(0,n.jsx)(g,{id:`${t}-${r}`,children:(0,a.domToReact)(e,{replace:i=>m(i,r)})}):t==="b"?(0,n.jsx)(b,{id:`${t}-${r}`,children:(0,a.domToReact)(e,{replace:i=>m(i,r)})}):t==="i"?(0,n.jsx)(_,{id:`${t}-${r}`,children:(0,a.domToReact)(e,{replace:i=>m(i,r)})}):t==="mark"?(0,n.jsx)($,{id:`${t}-${r}`,children:(0,a.domToReact)(e,{replace:i=>m(i,r)})}):t==="a"?(0,n.jsx)(D,{id:`${t}-${r}`,href:p?.href,rel:"noopener noreferrer",target:"_blank",children:(0,a.domToReact)(e,{replace:i=>m(i,r)})}):null},O=({html:o,id:r})=>{let t=C(o);return(0,n.jsx)(n.Fragment,{children:(0,a.default)(t,{replace:e=>m(e,r)})})};var H=require("@mui/material"),S=(0,H.styled)("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));var G=require("react/jsx-runtime"),z=({sx:o,...r})=>(0,G.jsx)(S,{sx:o,...r});var U=require("@mui/material"),q=(0,U.styled)("div",{name:"RootList",label:"root__list",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var K=require("react/jsx-runtime"),J=({sx:o,...r})=>(0,K.jsx)(q,{sx:o,...r});var Q=require("@mui/material"),V=(0,Q.styled)("div",{name:"RootListItem",label:"root__list__item",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var Y=require("react/jsx-runtime"),X=({sx:o,...r})=>(0,Y.jsx)(V,{sx:o,...r});var Z=require("@mui/material"),j=(0,Z.styled)("p",{name:"RootParagraph",label:"root__paragraph",shouldForwardProp:o=>o!=="as"})({margin:0});var ro=require("react/jsx-runtime"),oo=({sx:o,...r})=>(0,ro.jsx)(j,{sx:o,...r});var to=require("@mui/material"),P=require("@iconify/react"),f=require("react/jsx-runtime"),eo=({checked:o,sx:r,...t})=>(0,f.jsx)(to.Checkbox,{sx:r,size:"small",checked:o,icon:(0,f.jsx)(P.Icon,{icon:"akar-icons:circle-fill",color:"inherit",width:"24px",height:"24px"}),checkedIcon:(0,f.jsx)(P.Icon,{icon:"akar-icons:circle-check-fill",color:"inherit",width:"24px",height:"24px"}),...t});var s=require("react/jsx-runtime"),c=20,Io=({type:o,data:r,id:t,tunes:e,Container:p,List:i,Item:R})=>{let{style:po}=r,{sx:no,...so}=p||{};return(0,s.jsx)(z,{sx:no,...so,children:(0,s.jsx)(J,{id:`${o}-${t}`,...i,sx:{display:"flex",flexWrap:"wrap",gap:`${c}px`,...i?.sx},children:r.items.map((ao,mo)=>(0,s.jsxs)(X,{...R,sx:{padding:"20px",borderRadius:"25px",backgroundColor:lo=>lo.palette.background.default,border:"1px solid #EFF3FE",display:"flex",flexWrap:"nowrap",alignItems:"center",columnGap:"5px",flexGrow:0,...po==="ordered"&&{alignItems:"center",boxShadow:"0px 4px 25px rgba(0, 0, 0, 0.05)"},flexBasis:l(1,c),...e?.columnTune?.size==="two-columns"&&{flexBasis:l(2,c)},...e?.columnTune?.size==="three-columns"&&{flexBasis:l(3,c)},...R?.sx},children:[(0,s.jsx)(eo,{checked:!0,sx:{padding:"5px"}}),(0,s.jsx)(io.Box,{children:(0,s.jsx)(oo,{children:(0,s.jsx)(O,{html:ao,id:t})})})]},mo))})},t)};0&&(module.exports={ListNode});
2
+ "use strict";var ho=Object.create;var c=Object.defineProperty;var Po=Object.getOwnPropertyDescriptor;var Ro=Object.getOwnPropertyNames;var xo=Object.getPrototypeOf,Co=Object.prototype.hasOwnProperty;var yo=(o,t)=>{for(var r in t)c(o,r,{get:t[r],enumerable:!0})},C=(o,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ro(t))!Co.call(o,i)&&i!==r&&c(o,i,{get:()=>t[i],enumerable:!(n=Po(t,i))||n.enumerable});return o};var Io=(o,t,r)=>(r=o!=null?ho(xo(o)):{},C(t||!o||!o.__esModule?c(r,"default",{value:o,enumerable:!0}):r,o)),go=o=>C(c({},"__esModule",{value:!0}),o);var uo={};yo(uo,{ListNode:()=>ao});module.exports=go(uo);var no=require("@mui/material");var y=require("@mui/material"),R=require("@iconify/react"),f=require("react/jsx-runtime"),I=({checked:o,sx:t,...r})=>(0,f.jsx)(y.Checkbox,{sx:t,size:"small",checked:o,icon:(0,f.jsx)(R.Icon,{icon:"akar-icons:circle-fill",color:"inherit",width:"24px",height:"24px"}),checkedIcon:(0,f.jsx)(R.Icon,{icon:"akar-icons:circle-check-fill",color:"inherit",width:"24px",height:"24px"}),...r});var g=require("@mui/material"),u=(0,g.styled)("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));var L=require("react/jsx-runtime"),k=({sx:o,...t})=>(0,L.jsx)(u,{sx:o,...t});var M=require("@mui/material"),b=(0,M.styled)("div",{name:"RootList",label:"root__list",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var B=require("react/jsx-runtime"),_=({sx:o,...t})=>(0,B.jsx)(b,{sx:o,...t});var E=require("@mui/material"),W=(0,E.styled)("div",{name:"RootListItem",label:"root__list__item",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var $=require("react/jsx-runtime"),F=({sx:o,...t})=>(0,$.jsx)(W,{sx:o,...t});var w=require("@mui/material"),A=(0,w.styled)("p",{name:"RootParagraph",label:"root__paragraph",shouldForwardProp:o=>o!=="as"})({margin:0});var D=require("react/jsx-runtime"),T=({sx:o,...t})=>(0,D.jsx)(A,{sx:o,...t});var h=(o,t)=>o===3?`calc(${(100/o).toFixed(2)}% - ${t*(o-1)/o}px)`:o===2?`calc(${(100/o).toFixed(2)}% - ${t*(o-1)/o}px)`:"100%";var m=Io(require("html-react-parser"));var N=require("@mui/material"),O=(0,N.styled)("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var H=require("react/jsx-runtime"),v=({sx:o,...t})=>(0,H.jsx)(O,{sx:o,...t});var S=require("@mui/material"),z=(0,S.styled)("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var U=require("react/jsx-runtime"),G=({sx:o,...t})=>(0,U.jsx)(z,{sx:o,...t});var q=require("@mui/material"),J=(0,q.styled)("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});var Q=require("react/jsx-runtime"),K=({sx:o,...t})=>(0,Q.jsx)(J,{sx:o,...t});var V=require("@mui/material"),X=(0,V.styled)("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});var Z=require("react/jsx-runtime"),Y=({sx:o,...t})=>(0,Z.jsx)(X,{sx:o,...t});var j=require("@mui/material"),oo=(0,j.styled)("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});var ro=require("react/jsx-runtime"),to=({sx:o,...t})=>(0,ro.jsx)(oo,{sx:o,...t});var eo=require("isomorphic-dompurify"),io=o=>(0,eo.sanitize)(o,{FORBID_ATTR:["class"]});var a=require("react/jsx-runtime"),d=(o,t)=>{if(!("name"in o)||!("children"in o))return null;let{name:r,children:n,attribs:i}=o,s=n;return r==="code"?(0,a.jsx)(K,{id:`${r}-${t}`,children:(0,m.domToReact)(s,{replace:e=>d(e,t)})}):r==="b"?(0,a.jsx)(G,{id:`${r}-${t}`,children:(0,m.domToReact)(s,{replace:e=>d(e,t)})}):r==="i"?(0,a.jsx)(Y,{id:`${r}-${t}`,children:(0,m.domToReact)(s,{replace:e=>d(e,t)})}):r==="mark"?(0,a.jsx)(to,{id:`${r}-${t}`,children:(0,m.domToReact)(s,{replace:e=>d(e,t)})}):r==="a"?(0,a.jsx)(v,{id:`${r}-${t}`,href:i?.href,rel:"noopener noreferrer",target:"_blank",children:(0,m.domToReact)(s,{replace:e=>d(e,t)})}):null},po=({html:o,id:t})=>{let r=io(o);return(0,a.jsx)(a.Fragment,{children:(0,m.default)(r,{replace:n=>d(n,t)})})};var so=require("react/jsx-runtime"),p=require("react/jsx-runtime"),P=20,ao=({type:o,data:t,id:r,tunes:n,Container:i,List:s,Item:e})=>{let{style:x,items:mo}=t,{sx:lo,...co}=i||{};return(0,p.jsx)(k,{sx:lo,...co,children:(0,p.jsx)(_,{id:`${o}-${r}`,...s,sx:{display:"flex",flexWrap:"wrap",gap:`${P}px`,...s?.sx},children:mo?.map(l=>(0,p.jsxs)(so.Fragment,{children:[(0,p.jsxs)(F,{...e,sx:{padding:"20px",borderRadius:"25px",backgroundColor:fo=>fo.palette.background.default,border:"1px solid #EFF3FE",display:"flex",flexWrap:"nowrap",alignItems:"center",columnGap:"5px",flexGrow:0,...x==="ordered"&&{alignItems:"center",boxShadow:"0px 4px 25px rgba(0, 0, 0, 0.05)"},flexBasis:h(1,P),...n?.columnTune?.size==="two-columns"&&{flexBasis:h(2,P)},...n?.columnTune?.size==="three-columns"&&{flexBasis:h(3,P)},...e?.sx},children:[(0,p.jsx)(I,{checked:!0,sx:{padding:"5px"}}),(0,p.jsx)(no.Box,{children:(0,p.jsx)(T,{children:(0,p.jsx)(po,{html:l.content,id:r})})})]},`list_item_${l.content}`),l.items.length>0?(0,p.jsx)(ao,{id:r,type:o,data:{items:l.items,meta:l.meta,style:x},Container:{...i,sx:{...i?.sx,ml:4}},List:s,Item:e}):null]},l.content))})},r)};0&&(module.exports={ListNode});
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{Box as lo}from"@mui/material";var m=(o,r)=>o===3?`calc(${(100/o).toFixed(2)}% - ${r*(o-1)/o}px)`:o===2?`calc(${(100/o).toFixed(2)}% - ${r*(o-1)/o}px)`:"100%";import j,{domToReact as a}from"html-react-parser";import{sanitize as z}from"isomorphic-dompurify";var P=o=>z(o,{FORBID_ATTR:["class"]});import{styled as G}from"@mui/material";var R=G("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});import{jsx as U}from"react/jsx-runtime";var h=({sx:o,...r})=>U(R,{sx:o,...r});import{styled as q}from"@mui/material";var x=q("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as J}from"react/jsx-runtime";var C=({sx:o,...r})=>J(x,{sx:o,...r});import{styled as K}from"@mui/material";var y=K("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});import{jsx as Q}from"react/jsx-runtime";var I=({sx:o,...r})=>Q(y,{sx:o,...r});import{styled as V}from"@mui/material";var g=V("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});import{jsx as X}from"react/jsx-runtime";var u=({sx:o,...r})=>X(g,{sx:o,...r});import{styled as Y}from"@mui/material";var k=Y("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as Z}from"react/jsx-runtime";var L=({sx:o,...r})=>Z(k,{sx:o,...r});import{Fragment as oo,jsx as n}from"react/jsx-runtime";var p=(o,r)=>{if(!("name"in o)||!("children"in o))return null;let{name:t,children:i,attribs:l}=o;return t==="code"?n(h,{id:`${t}-${r}`,children:a(i,{replace:e=>p(e,r)})}):t==="b"?n(C,{id:`${t}-${r}`,children:a(i,{replace:e=>p(e,r)})}):t==="i"?n(I,{id:`${t}-${r}`,children:a(i,{replace:e=>p(e,r)})}):t==="mark"?n(u,{id:`${t}-${r}`,children:a(i,{replace:e=>p(e,r)})}):t==="a"?n(L,{id:`${t}-${r}`,href:l?.href,rel:"noopener noreferrer",target:"_blank",children:a(i,{replace:e=>p(e,r)})}):null},b=({html:o,id:r})=>{let t=P(o);return n(oo,{children:j(t,{replace:i=>p(i,r)})})};import{styled as ro}from"@mui/material";var M=ro("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));import{jsx as to}from"react/jsx-runtime";var B=({sx:o,...r})=>to(M,{sx:o,...r});import{styled as eo}from"@mui/material";var E=eo("div",{name:"RootList",label:"root__list",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as io}from"react/jsx-runtime";var _=({sx:o,...r})=>io(E,{sx:o,...r});import{styled as po}from"@mui/material";var W=po("div",{name:"RootListItem",label:"root__list__item",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as no}from"react/jsx-runtime";var F=({sx:o,...r})=>no(W,{sx:o,...r});import{styled as so}from"@mui/material";var w=so("p",{name:"RootParagraph",label:"root__paragraph",shouldForwardProp:o=>o!=="as"})({margin:0});import{jsx as ao}from"react/jsx-runtime";var $=({sx:o,...r})=>ao(w,{sx:o,...r});import{Checkbox as mo}from"@mui/material";import{Icon as A}from"@iconify/react";import{jsx as f}from"react/jsx-runtime";var N=({checked:o,sx:r,...t})=>f(mo,{sx:r,size:"small",checked:o,icon:f(A,{icon:"akar-icons:circle-fill",color:"inherit",width:"24px",height:"24px"}),checkedIcon:f(A,{icon:"akar-icons:circle-check-fill",color:"inherit",width:"24px",height:"24px"}),...t});import{jsx as s,jsxs as fo}from"react/jsx-runtime";var d=20,Ar=({type:o,data:r,id:t,tunes:i,Container:l,List:e,Item:c})=>{let{style:T}=r,{sx:D,...v}=l||{};return s(B,{sx:D,...v,children:s(_,{id:`${o}-${t}`,...e,sx:{display:"flex",flexWrap:"wrap",gap:`${d}px`,...e?.sx},children:r.items.map((O,H)=>fo(F,{...c,sx:{padding:"20px",borderRadius:"25px",backgroundColor:S=>S.palette.background.default,border:"1px solid #EFF3FE",display:"flex",flexWrap:"nowrap",alignItems:"center",columnGap:"5px",flexGrow:0,...T==="ordered"&&{alignItems:"center",boxShadow:"0px 4px 25px rgba(0, 0, 0, 0.05)"},flexBasis:m(1,d),...i?.columnTune?.size==="two-columns"&&{flexBasis:m(2,d)},...i?.columnTune?.size==="three-columns"&&{flexBasis:m(3,d)},...c?.sx},children:[s(N,{checked:!0,sx:{padding:"5px"}}),s(lo,{children:s($,{children:s(b,{html:O,id:t})})})]},H))})},t)};export{Ar as ListNode};
2
+ import{Box as co}from"@mui/material";import{Checkbox as G}from"@mui/material";import{Icon as R}from"@iconify/react";import{jsx as h}from"react/jsx-runtime";var x=({checked:o,sx:t,...r})=>h(G,{sx:t,size:"small",checked:o,icon:h(R,{icon:"akar-icons:circle-fill",color:"inherit",width:"24px",height:"24px"}),checkedIcon:h(R,{icon:"akar-icons:circle-check-fill",color:"inherit",width:"24px",height:"24px"}),...r});import{styled as U}from"@mui/material";var C=U("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));import{jsx as q}from"react/jsx-runtime";var y=({sx:o,...t})=>q(C,{sx:o,...t});import{styled as J}from"@mui/material";var I=J("div",{name:"RootList",label:"root__list",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as K}from"react/jsx-runtime";var g=({sx:o,...t})=>K(I,{sx:o,...t});import{styled as Q}from"@mui/material";var u=Q("div",{name:"RootListItem",label:"root__list__item",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as V}from"react/jsx-runtime";var k=({sx:o,...t})=>V(u,{sx:o,...t});import{styled as X}from"@mui/material";var L=X("p",{name:"RootParagraph",label:"root__paragraph",shouldForwardProp:o=>o!=="as"})({margin:0});import{jsx as Y}from"react/jsx-runtime";var M=({sx:o,...t})=>Y(L,{sx:o,...t});var c=(o,t)=>o===3?`calc(${(100/o).toFixed(2)}% - ${t*(o-1)/o}px)`:o===2?`calc(${(100/o).toFixed(2)}% - ${t*(o-1)/o}px)`:"100%";import mo,{domToReact as d}from"html-react-parser";import{styled as Z}from"@mui/material";var b=Z("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as j}from"react/jsx-runtime";var _=({sx:o,...t})=>j(b,{sx:o,...t});import{styled as oo}from"@mui/material";var B=oo("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as to}from"react/jsx-runtime";var E=({sx:o,...t})=>to(B,{sx:o,...t});import{styled as ro}from"@mui/material";var W=ro("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});import{jsx as eo}from"react/jsx-runtime";var F=({sx:o,...t})=>eo(W,{sx:o,...t});import{styled as io}from"@mui/material";var $=io("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});import{jsx as po}from"react/jsx-runtime";var w=({sx:o,...t})=>po($,{sx:o,...t});import{styled as no}from"@mui/material";var A=no("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});import{jsx as so}from"react/jsx-runtime";var T=({sx:o,...t})=>so(A,{sx:o,...t});import{sanitize as ao}from"isomorphic-dompurify";var D=o=>ao(o,{FORBID_ATTR:["class"]});import{Fragment as lo,jsx as m}from"react/jsx-runtime";var a=(o,t)=>{if(!("name"in o)||!("children"in o))return null;let{name:r,children:n,attribs:l}=o,i=n;return r==="code"?m(F,{id:`${r}-${t}`,children:d(i,{replace:e=>a(e,t)})}):r==="b"?m(E,{id:`${r}-${t}`,children:d(i,{replace:e=>a(e,t)})}):r==="i"?m(w,{id:`${r}-${t}`,children:d(i,{replace:e=>a(e,t)})}):r==="mark"?m(T,{id:`${r}-${t}`,children:d(i,{replace:e=>a(e,t)})}):r==="a"?m(_,{id:`${r}-${t}`,href:l?.href,rel:"noopener noreferrer",target:"_blank",children:d(i,{replace:e=>a(e,t)})}):null},N=({html:o,id:t})=>{let r=D(o);return m(lo,{children:mo(r,{replace:n=>a(n,t)})})};import{Fragment as fo}from"react/jsx-runtime";import{jsx as p,jsxs as O}from"react/jsx-runtime";var f=20,ho=({type:o,data:t,id:r,tunes:n,Container:l,List:i,Item:e})=>{let{style:P,items:v}=t,{sx:H,...S}=l||{};return p(y,{sx:H,...S,children:p(g,{id:`${o}-${r}`,...i,sx:{display:"flex",flexWrap:"wrap",gap:`${f}px`,...i?.sx},children:v?.map(s=>O(fo,{children:[O(k,{...e,sx:{padding:"20px",borderRadius:"25px",backgroundColor:z=>z.palette.background.default,border:"1px solid #EFF3FE",display:"flex",flexWrap:"nowrap",alignItems:"center",columnGap:"5px",flexGrow:0,...P==="ordered"&&{alignItems:"center",boxShadow:"0px 4px 25px rgba(0, 0, 0, 0.05)"},flexBasis:c(1,f),...n?.columnTune?.size==="two-columns"&&{flexBasis:c(2,f)},...n?.columnTune?.size==="three-columns"&&{flexBasis:c(3,f)},...e?.sx},children:[p(x,{checked:!0,sx:{padding:"5px"}}),p(co,{children:p(M,{children:p(N,{html:s.content,id:r})})})]},`list_item_${s.content}`),s.items.length>0?p(ho,{id:r,type:o,data:{items:s.items,meta:s.meta,style:P},Container:{...l,sx:{...l?.sx,ml:4}},List:i,Item:e}):null]},s.content))})},r)};export{ho as ListNode};
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";var G=Object.create;var m=Object.defineProperty;var J=Object.getOwnPropertyDescriptor;var K=Object.getOwnPropertyNames;var Q=Object.getPrototypeOf,V=Object.prototype.hasOwnProperty;var X=(o,r)=>{for(var t in r)m(o,t,{get:r[t],enumerable:!0})},l=(o,r,t,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of K(r))!V.call(o,n)&&n!==t&&m(o,n,{get:()=>r[n],enumerable:!(e=J(r,n))||e.enumerable});return o};var Y=(o,r,t)=>(t=o!=null?G(Q(o)):{},l(r||!o||!o.__esModule?m(t,"default",{value:o,enumerable:!0}):t,o)),Z=o=>l(m({},"__esModule",{value:!0}),o);var oo={};X(oo,{ParagraphNode:()=>j});module.exports=Z(oo);var i=Y(require("html-react-parser"));var P=require("isomorphic-dompurify"),f=o=>(0,P.sanitize)(o,{FORBID_ATTR:["class"]});var c=require("@mui/material"),h=(0,c.styled)("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});var C=require("react/jsx-runtime"),R=({sx:o,...r})=>(0,C.jsx)(h,{sx:o,...r});var g=require("@mui/material"),y=(0,g.styled)("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var M=require("react/jsx-runtime"),u=({sx:o,...r})=>(0,M.jsx)(y,{sx:o,...r});var x=require("@mui/material"),I=(0,x.styled)("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});var b=require("react/jsx-runtime"),_=({sx:o,...r})=>(0,b.jsx)(I,{sx:o,...r});var k=require("@mui/material"),E=(0,k.styled)("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});var B=require("react/jsx-runtime"),W=({sx:o,...r})=>(0,B.jsx)(E,{sx:o,...r});var A=require("@mui/material"),N=(0,A.styled)("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var $=require("react/jsx-runtime"),D=({sx:o,...r})=>(0,$.jsx)(N,{sx:o,...r});var p=require("react/jsx-runtime"),s=(o,r)=>{if(!("name"in o)||!("children"in o))return null;let{name:t,children:e,attribs:n}=o;return t==="code"?(0,p.jsx)(R,{id:`${t}-${r}`,children:(0,i.domToReact)(e,{replace:a=>s(a,r)})}):t==="b"?(0,p.jsx)(u,{id:`${t}-${r}`,children:(0,i.domToReact)(e,{replace:a=>s(a,r)})}):t==="i"?(0,p.jsx)(_,{id:`${t}-${r}`,children:(0,i.domToReact)(e,{replace:a=>s(a,r)})}):t==="mark"?(0,p.jsx)(W,{id:`${t}-${r}`,children:(0,i.domToReact)(e,{replace:a=>s(a,r)})}):t==="a"?(0,p.jsx)(D,{id:`${t}-${r}`,href:n?.href,rel:"noopener noreferrer",target:"_blank",children:(0,i.domToReact)(e,{replace:a=>s(a,r)})}):null},T=({html:o,id:r})=>{let t=f(o);return(0,p.jsx)(p.Fragment,{children:(0,i.default)(t,{replace:e=>s(e,r)})})};var O=require("@mui/material"),w=(0,O.styled)("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));var v=require("react/jsx-runtime"),F=({sx:o,...r})=>(0,v.jsx)(w,{sx:o,...r});var H=require("@mui/material"),L=(0,H.styled)("p",{name:"RootParagraph",label:"root__paragraph",shouldForwardProp:o=>o!=="as"})({margin:0});var U=require("react/jsx-runtime"),S=({sx:o,...r})=>(0,U.jsx)(L,{sx:o,...r});var d=require("react/jsx-runtime"),j=({type:o,data:r,id:t,Container:e,Paragraph:n})=>{let{text:a}=r,{sx:z,...q}=e||{};return(0,d.jsx)(F,{sx:z,...q,children:(0,d.jsx)(S,{id:`${o}-${t}`,...n,children:(0,d.jsx)(T,{html:a||"",id:t})})},t)};0&&(module.exports={ParagraphNode});
2
+ "use strict";var G=Object.create;var d=Object.defineProperty;var J=Object.getOwnPropertyDescriptor;var K=Object.getOwnPropertyNames;var Q=Object.getPrototypeOf,V=Object.prototype.hasOwnProperty;var X=(o,r)=>{for(var t in r)d(o,t,{get:r[t],enumerable:!0})},P=(o,r,t,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of K(r))!V.call(o,a)&&a!==t&&d(o,a,{get:()=>r[a],enumerable:!(p=J(r,a))||p.enumerable});return o};var Y=(o,r,t)=>(t=o!=null?G(Q(o)):{},P(r||!o||!o.__esModule?d(t,"default",{value:o,enumerable:!0}):t,o)),Z=o=>P(d({},"__esModule",{value:!0}),o);var oo={};X(oo,{ParagraphNode:()=>j});module.exports=Z(oo);var i=Y(require("html-react-parser"));var f=require("@mui/material"),c=(0,f.styled)("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var R=require("react/jsx-runtime"),h=({sx:o,...r})=>(0,R.jsx)(c,{sx:o,...r});var C=require("@mui/material"),g=(0,C.styled)("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var u=require("react/jsx-runtime"),y=({sx:o,...r})=>(0,u.jsx)(g,{sx:o,...r});var M=require("@mui/material"),x=(0,M.styled)("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});var _=require("react/jsx-runtime"),I=({sx:o,...r})=>(0,_.jsx)(x,{sx:o,...r});var b=require("@mui/material"),k=(0,b.styled)("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});var W=require("react/jsx-runtime"),E=({sx:o,...r})=>(0,W.jsx)(k,{sx:o,...r});var B=require("@mui/material"),N=(0,B.styled)("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});var D=require("react/jsx-runtime"),A=({sx:o,...r})=>(0,D.jsx)(N,{sx:o,...r});var $=require("isomorphic-dompurify"),T=o=>(0,$.sanitize)(o,{FORBID_ATTR:["class"]});var n=require("react/jsx-runtime"),m=(o,r)=>{if(!("name"in o)||!("children"in o))return null;let{name:t,children:p,attribs:a}=o,s=p;return t==="code"?(0,n.jsx)(I,{id:`${t}-${r}`,children:(0,i.domToReact)(s,{replace:e=>m(e,r)})}):t==="b"?(0,n.jsx)(y,{id:`${t}-${r}`,children:(0,i.domToReact)(s,{replace:e=>m(e,r)})}):t==="i"?(0,n.jsx)(E,{id:`${t}-${r}`,children:(0,i.domToReact)(s,{replace:e=>m(e,r)})}):t==="mark"?(0,n.jsx)(A,{id:`${t}-${r}`,children:(0,i.domToReact)(s,{replace:e=>m(e,r)})}):t==="a"?(0,n.jsx)(h,{id:`${t}-${r}`,href:a?.href,rel:"noopener noreferrer",target:"_blank",children:(0,i.domToReact)(s,{replace:e=>m(e,r)})}):null},O=({html:o,id:r})=>{let t=T(o);return(0,n.jsx)(n.Fragment,{children:(0,i.default)(t,{replace:p=>m(p,r)})})};var w=require("@mui/material"),F=(0,w.styled)("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));var H=require("react/jsx-runtime"),v=({sx:o,...r})=>(0,H.jsx)(F,{sx:o,...r});var L=require("@mui/material"),S=(0,L.styled)("p",{name:"RootParagraph",label:"root__paragraph",shouldForwardProp:o=>o!=="as"})({margin:0});var z=require("react/jsx-runtime"),U=({sx:o,...r})=>(0,z.jsx)(S,{sx:o,...r});var l=require("react/jsx-runtime"),j=({type:o,data:r,id:t,Container:p,Paragraph:a})=>{let{text:s}=r,{sx:e,...q}=p||{};return(0,l.jsx)(v,{sx:e,...q,children:(0,l.jsx)(U,{id:`${o}-${t}`,...a,children:(0,l.jsx)(O,{html:s||"",id:t})})},t)};0&&(module.exports={ParagraphNode});
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import H,{domToReact as i}from"html-react-parser";import{sanitize as W}from"isomorphic-dompurify";var d=o=>W(o,{FORBID_ATTR:["class"]});import{styled as B}from"@mui/material";var l=B("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});import{jsx as A}from"react/jsx-runtime";var P=({sx:o,...r})=>A(l,{sx:o,...r});import{styled as N}from"@mui/material";var f=N("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as D}from"react/jsx-runtime";var c=({sx:o,...r})=>D(f,{sx:o,...r});import{styled as $}from"@mui/material";var h=$("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});import{jsx as T}from"react/jsx-runtime";var R=({sx:o,...r})=>T(h,{sx:o,...r});import{styled as O}from"@mui/material";var C=O("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});import{jsx as w}from"react/jsx-runtime";var g=({sx:o,...r})=>w(C,{sx:o,...r});import{styled as F}from"@mui/material";var y=F("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as v}from"react/jsx-runtime";var u=({sx:o,...r})=>v(y,{sx:o,...r});import{Fragment as L,jsx as p}from"react/jsx-runtime";var n=(o,r)=>{if(!("name"in o)||!("children"in o))return null;let{name:t,children:a,attribs:s}=o;return t==="code"?p(P,{id:`${t}-${r}`,children:i(a,{replace:e=>n(e,r)})}):t==="b"?p(c,{id:`${t}-${r}`,children:i(a,{replace:e=>n(e,r)})}):t==="i"?p(R,{id:`${t}-${r}`,children:i(a,{replace:e=>n(e,r)})}):t==="mark"?p(g,{id:`${t}-${r}`,children:i(a,{replace:e=>n(e,r)})}):t==="a"?p(u,{id:`${t}-${r}`,href:s?.href,rel:"noopener noreferrer",target:"_blank",children:i(a,{replace:e=>n(e,r)})}):null},M=({html:o,id:r})=>{let t=d(o);return p(L,{children:H(t,{replace:a=>n(a,r)})})};import{styled as S}from"@mui/material";var x=S("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));import{jsx as U}from"react/jsx-runtime";var I=({sx:o,...r})=>U(x,{sx:o,...r});import{styled as z}from"@mui/material";var _=z("p",{name:"RootParagraph",label:"root__paragraph",shouldForwardProp:o=>o!=="as"})({margin:0});import{jsx as q}from"react/jsx-runtime";var b=({sx:o,...r})=>q(_,{sx:o,...r});import{jsx as m}from"react/jsx-runtime";var Go=({type:o,data:r,id:t,Container:a,Paragraph:s})=>{let{text:e}=r,{sx:k,...E}=a||{};return m(I,{sx:k,...E,children:m(b,{id:`${o}-${t}`,...s,children:m(M,{html:e||"",id:t})})},t)};export{Go as ParagraphNode};
2
+ import H,{domToReact as s}from"html-react-parser";import{styled as W}from"@mui/material";var l=W("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as B}from"react/jsx-runtime";var P=({sx:o,...r})=>B(l,{sx:o,...r});import{styled as N}from"@mui/material";var f=N("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as A}from"react/jsx-runtime";var c=({sx:o,...r})=>A(f,{sx:o,...r});import{styled as D}from"@mui/material";var h=D("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});import{jsx as $}from"react/jsx-runtime";var R=({sx:o,...r})=>$(h,{sx:o,...r});import{styled as T}from"@mui/material";var C=T("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});import{jsx as O}from"react/jsx-runtime";var g=({sx:o,...r})=>O(C,{sx:o,...r});import{styled as w}from"@mui/material";var y=w("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});import{jsx as F}from"react/jsx-runtime";var u=({sx:o,...r})=>F(y,{sx:o,...r});import{sanitize as v}from"isomorphic-dompurify";var M=o=>v(o,{FORBID_ATTR:["class"]});import{Fragment as L,jsx as p}from"react/jsx-runtime";var n=(o,r)=>{if(!("name"in o)||!("children"in o))return null;let{name:t,children:i,attribs:m}=o,a=i;return t==="code"?p(R,{id:`${t}-${r}`,children:s(a,{replace:e=>n(e,r)})}):t==="b"?p(c,{id:`${t}-${r}`,children:s(a,{replace:e=>n(e,r)})}):t==="i"?p(g,{id:`${t}-${r}`,children:s(a,{replace:e=>n(e,r)})}):t==="mark"?p(u,{id:`${t}-${r}`,children:s(a,{replace:e=>n(e,r)})}):t==="a"?p(P,{id:`${t}-${r}`,href:m?.href,rel:"noopener noreferrer",target:"_blank",children:s(a,{replace:e=>n(e,r)})}):null},x=({html:o,id:r})=>{let t=M(o);return p(L,{children:H(t,{replace:i=>n(i,r)})})};import{styled as S}from"@mui/material";var I=S("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));import{jsx as U}from"react/jsx-runtime";var _=({sx:o,...r})=>U(I,{sx:o,...r});import{styled as z}from"@mui/material";var b=z("p",{name:"RootParagraph",label:"root__paragraph",shouldForwardProp:o=>o!=="as"})({margin:0});import{jsx as q}from"react/jsx-runtime";var k=({sx:o,...r})=>q(b,{sx:o,...r});import{jsx as d}from"react/jsx-runtime";var qo=({type:o,data:r,id:t,Container:i,Paragraph:m})=>{let{text:a}=r,{sx:e,...E}=i||{};return d(_,{sx:e,...E,children:d(k,{id:`${o}-${t}`,...m,children:d(x,{html:a||"",id:t})})},t)};export{qo as ParagraphNode};
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";var eo=Object.create;var d=Object.defineProperty;var ro=Object.getOwnPropertyDescriptor;var to=Object.getOwnPropertyNames;var no=Object.getPrototypeOf,po=Object.prototype.hasOwnProperty;var lo=(o,e)=>{for(var r in e)d(o,r,{get:e[r],enumerable:!0})},m=(o,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let p of to(e))!po.call(o,p)&&p!==r&&d(o,p,{get:()=>e[p],enumerable:!(t=ro(e,p))||t.enumerable});return o};var io=(o,e,r)=>(r=o!=null?eo(no(o)):{},m(e||!o||!o.__esModule?d(r,"default",{value:o,enumerable:!0}):r,o)),ao=o=>m(d({},"__esModule",{value:!0}),o);var mo={};lo(mo,{TableNode:()=>so});module.exports=ao(mo);var i=io(require("html-react-parser"));var R=require("isomorphic-dompurify"),f=o=>(0,R.sanitize)(o,{FORBID_ATTR:["class"]});var b=require("@mui/material"),P=(0,b.styled)("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});var C=require("react/jsx-runtime"),c=({sx:o,...e})=>(0,C.jsx)(P,{sx:o,...e});var h=require("@mui/material"),T=(0,h.styled)("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var x=require("react/jsx-runtime"),y=({sx:o,...e})=>(0,x.jsx)(T,{sx:o,...e});var u=require("@mui/material"),w=(0,u.styled)("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});var I=require("react/jsx-runtime"),_=({sx:o,...e})=>(0,I.jsx)(w,{sx:o,...e});var g=require("@mui/material"),k=(0,g.styled)("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});var W=require("react/jsx-runtime"),M=({sx:o,...e})=>(0,W.jsx)(k,{sx:o,...e});var E=require("@mui/material"),B=(0,E.styled)("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var v=require("react/jsx-runtime"),N=({sx:o,...e})=>(0,v.jsx)(B,{sx:o,...e});var l=require("react/jsx-runtime"),a=(o,e)=>{if(!("name"in o)||!("children"in o))return null;let{name:r,children:t,attribs:p}=o;return r==="code"?(0,l.jsx)(c,{id:`${r}-${e}`,children:(0,i.domToReact)(t,{replace:n=>a(n,e)})}):r==="b"?(0,l.jsx)(y,{id:`${r}-${e}`,children:(0,i.domToReact)(t,{replace:n=>a(n,e)})}):r==="i"?(0,l.jsx)(_,{id:`${r}-${e}`,children:(0,i.domToReact)(t,{replace:n=>a(n,e)})}):r==="mark"?(0,l.jsx)(M,{id:`${r}-${e}`,children:(0,i.domToReact)(t,{replace:n=>a(n,e)})}):r==="a"?(0,l.jsx)(N,{id:`${r}-${e}`,href:p?.href,rel:"noopener noreferrer",target:"_blank",children:(0,i.domToReact)(t,{replace:n=>a(n,e)})}):null},A=({html:o,id:e})=>{let r=f(o);return(0,l.jsx)(l.Fragment,{children:(0,i.default)(r,{replace:t=>a(t,e)})})};var D=require("@mui/material"),F=(0,D.styled)("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));var O=require("react/jsx-runtime"),$=({sx:o,...e})=>(0,O.jsx)(F,{sx:o,...e});var H=require("@mui/material"),z=(0,H.styled)("div",{name:"RootTableRow",label:"root__table__row",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({display:"grid",gridTemplateColumns:"repeat(auto-fit,minmax(10px,1fr))",position:"relative",borderBottom:"1px solid",borderBottomColor:o.palette.primary.main}));var S=require("react/jsx-runtime"),L=({sx:o,...e})=>(0,S.jsx)(z,{sx:o,...e});var q=require("@mui/material"),G=(0,q.styled)("div",{name:"RootTable",label:"root__table",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({position:"relative",width:"100%",height:"100%",display:"grid",fontSize:14,borderTop:"1px solid",borderTopColor:o.palette.primary.main,lineHeight:1.4}));var K=require("react/jsx-runtime"),J=({sx:o,...e})=>(0,K.jsx)(G,{sx:o,...e});var Q=require("@mui/material"),U=(0,Q.styled)("div",{name:"RootTableRow",label:"root__table__row",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({borderRight:"1px solid",borderRightColor:o.palette.primary.main,padding:"6px 12px",overflow:"hidden",outline:"none",lineBreak:"normal","&:first-of-type":{borderLeft:"unset",borderLeftColor:"unset"},"&:last-of-type":{borderRight:"unset",borderRightColor:"unset"}}));var X=require("react/jsx-runtime"),V=({sx:o,...e})=>(0,X.jsx)(U,{sx:o,...e});var s=require("react/jsx-runtime"),so=({data:o,id:e,Container:r})=>{let{content:t}=o,{sx:p,...n}=r||{};return(0,s.jsx)($,{sx:p,...n,children:(0,s.jsx)(J,{id:e,children:t.map((Y,Z)=>(0,s.jsx)(L,{children:Y.map((j,oo)=>(0,s.jsx)(V,{children:(0,s.jsx)(A,{html:j,id:e})},oo))},Z))},e)},e)};0&&(module.exports={TableNode});
2
+ "use strict";var eo=Object.create;var m=Object.defineProperty;var ro=Object.getOwnPropertyDescriptor;var to=Object.getOwnPropertyNames;var no=Object.getPrototypeOf,po=Object.prototype.hasOwnProperty;var lo=(o,e)=>{for(var r in e)m(o,r,{get:e[r],enumerable:!0})},R=(o,e,r,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of to(e))!po.call(o,n)&&n!==r&&m(o,n,{get:()=>e[n],enumerable:!(l=ro(e,n))||l.enumerable});return o};var io=(o,e,r)=>(r=o!=null?eo(no(o)):{},R(e||!o||!o.__esModule?m(r,"default",{value:o,enumerable:!0}):r,o)),ao=o=>R(m({},"__esModule",{value:!0}),o);var mo={};lo(mo,{TableNode:()=>so});module.exports=ao(mo);var i=io(require("html-react-parser"));var f=require("@mui/material"),b=(0,f.styled)("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var c=require("react/jsx-runtime"),P=({sx:o,...e})=>(0,c.jsx)(b,{sx:o,...e});var C=require("@mui/material"),h=(0,C.styled)("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var y=require("react/jsx-runtime"),T=({sx:o,...e})=>(0,y.jsx)(h,{sx:o,...e});var x=require("@mui/material"),u=(0,x.styled)("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});var _=require("react/jsx-runtime"),w=({sx:o,...e})=>(0,_.jsx)(u,{sx:o,...e});var I=require("@mui/material"),g=(0,I.styled)("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});var M=require("react/jsx-runtime"),k=({sx:o,...e})=>(0,M.jsx)(g,{sx:o,...e});var W=require("@mui/material"),E=(0,W.styled)("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});var N=require("react/jsx-runtime"),B=({sx:o,...e})=>(0,N.jsx)(E,{sx:o,...e});var A=require("isomorphic-dompurify"),v=o=>(0,A.sanitize)(o,{FORBID_ATTR:["class"]});var p=require("react/jsx-runtime"),s=(o,e)=>{if(!("name"in o)||!("children"in o))return null;let{name:r,children:l,attribs:n}=o,a=l;return r==="code"?(0,p.jsx)(w,{id:`${r}-${e}`,children:(0,i.domToReact)(a,{replace:t=>s(t,e)})}):r==="b"?(0,p.jsx)(T,{id:`${r}-${e}`,children:(0,i.domToReact)(a,{replace:t=>s(t,e)})}):r==="i"?(0,p.jsx)(k,{id:`${r}-${e}`,children:(0,i.domToReact)(a,{replace:t=>s(t,e)})}):r==="mark"?(0,p.jsx)(B,{id:`${r}-${e}`,children:(0,i.domToReact)(a,{replace:t=>s(t,e)})}):r==="a"?(0,p.jsx)(P,{id:`${r}-${e}`,href:n?.href,rel:"noopener noreferrer",target:"_blank",children:(0,i.domToReact)(a,{replace:t=>s(t,e)})}):null},D=({html:o,id:e})=>{let r=v(o);return(0,p.jsx)(p.Fragment,{children:(0,i.default)(r,{replace:l=>s(l,e)})})};var F=require("@mui/material"),O=(0,F.styled)("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));var H=require("react/jsx-runtime"),$=({sx:o,...e})=>(0,H.jsx)(O,{sx:o,...e});var z=require("@mui/material"),L=(0,z.styled)("div",{name:"RootTableRow",label:"root__table__row",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({display:"grid",gridTemplateColumns:"repeat(auto-fit,minmax(10px,1fr))",position:"relative",borderBottom:"1px solid",borderBottomColor:o.palette.primary.main}));var q=require("react/jsx-runtime"),S=({sx:o,...e})=>(0,q.jsx)(L,{sx:o,...e});var G=require("@mui/material"),J=(0,G.styled)("div",{name:"RootTable",label:"root__table",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({position:"relative",width:"100%",height:"100%",display:"grid",fontSize:14,borderTop:"1px solid",borderTopColor:o.palette.primary.main,lineHeight:1.4}));var Q=require("react/jsx-runtime"),K=({sx:o,...e})=>(0,Q.jsx)(J,{sx:o,...e});var U=require("@mui/material"),V=(0,U.styled)("div",{name:"RootTableRow",label:"root__table__row",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({borderRight:"1px solid",borderRightColor:o.palette.primary.main,padding:"6px 12px",overflow:"hidden",outline:"none",lineBreak:"normal","&:first-of-type":{borderLeft:"unset",borderLeftColor:"unset"},"&:last-of-type":{borderRight:"unset",borderRightColor:"unset"}}));var Y=require("react/jsx-runtime"),X=({sx:o,...e})=>(0,Y.jsx)(V,{sx:o,...e});var d=require("react/jsx-runtime"),so=({data:o,id:e,Container:r})=>{let{content:l}=o,{sx:n,...a}=r||{};return(0,d.jsx)($,{sx:n,...a,children:(0,d.jsx)(K,{id:e,children:l.map((t,Z)=>(0,d.jsx)(S,{children:t.map((j,oo)=>(0,d.jsx)(X,{children:(0,d.jsx)(D,{html:j,id:e})},oo))},Z))},e)},e)};0&&(module.exports={TableNode});
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import J,{domToReact as i}from"html-react-parser";import{sanitize as A}from"isomorphic-dompurify";var d=o=>A(o,{FORBID_ATTR:["class"]});import{styled as D}from"@mui/material";var m=D("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});import{jsx as F}from"react/jsx-runtime";var R=({sx:o,...e})=>F(m,{sx:o,...e});import{styled as $}from"@mui/material";var f=$("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as O}from"react/jsx-runtime";var b=({sx:o,...e})=>O(f,{sx:o,...e});import{styled as H}from"@mui/material";var P=H("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});import{jsx as z}from"react/jsx-runtime";var c=({sx:o,...e})=>z(P,{sx:o,...e});import{styled as L}from"@mui/material";var C=L("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});import{jsx as S}from"react/jsx-runtime";var h=({sx:o,...e})=>S(C,{sx:o,...e});import{styled as q}from"@mui/material";var T=q("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as G}from"react/jsx-runtime";var y=({sx:o,...e})=>G(T,{sx:o,...e});import{Fragment as K,jsx as l}from"react/jsx-runtime";var p=(o,e)=>{if(!("name"in o)||!("children"in o))return null;let{name:r,children:n,attribs:s}=o;return r==="code"?l(R,{id:`${r}-${e}`,children:i(n,{replace:t=>p(t,e)})}):r==="b"?l(b,{id:`${r}-${e}`,children:i(n,{replace:t=>p(t,e)})}):r==="i"?l(c,{id:`${r}-${e}`,children:i(n,{replace:t=>p(t,e)})}):r==="mark"?l(h,{id:`${r}-${e}`,children:i(n,{replace:t=>p(t,e)})}):r==="a"?l(y,{id:`${r}-${e}`,href:s?.href,rel:"noopener noreferrer",target:"_blank",children:i(n,{replace:t=>p(t,e)})}):null},x=({html:o,id:e})=>{let r=d(o);return l(K,{children:J(r,{replace:n=>p(n,e)})})};import{styled as Q}from"@mui/material";var u=Q("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));import{jsx as U}from"react/jsx-runtime";var w=({sx:o,...e})=>U(u,{sx:o,...e});import{styled as V}from"@mui/material";var _=V("div",{name:"RootTableRow",label:"root__table__row",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({display:"grid",gridTemplateColumns:"repeat(auto-fit,minmax(10px,1fr))",position:"relative",borderBottom:"1px solid",borderBottomColor:o.palette.primary.main}));import{jsx as X}from"react/jsx-runtime";var I=({sx:o,...e})=>X(_,{sx:o,...e});import{styled as Y}from"@mui/material";var g=Y("div",{name:"RootTable",label:"root__table",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({position:"relative",width:"100%",height:"100%",display:"grid",fontSize:14,borderTop:"1px solid",borderTopColor:o.palette.primary.main,lineHeight:1.4}));import{jsx as Z}from"react/jsx-runtime";var k=({sx:o,...e})=>Z(g,{sx:o,...e});import{styled as j}from"@mui/material";var M=j("div",{name:"RootTableRow",label:"root__table__row",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({borderRight:"1px solid",borderRightColor:o.palette.primary.main,padding:"6px 12px",overflow:"hidden",outline:"none",lineBreak:"normal","&:first-of-type":{borderLeft:"unset",borderLeftColor:"unset"},"&:last-of-type":{borderRight:"unset",borderRightColor:"unset"}}));import{jsx as oo}from"react/jsx-runtime";var W=({sx:o,...e})=>oo(M,{sx:o,...e});import{jsx as a}from"react/jsx-runtime";var be=({data:o,id:e,Container:r})=>{let{content:n}=o,{sx:s,...t}=r||{};return a(w,{sx:s,...t,children:a(k,{id:e,children:n.map((E,B)=>a(I,{children:E.map((N,v)=>a(W,{children:a(x,{html:N,id:e})},v))},B))},e)},e)};export{be as TableNode};
2
+ import J,{domToReact as a}from"html-react-parser";import{styled as v}from"@mui/material";var m=v("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as D}from"react/jsx-runtime";var R=({sx:o,...e})=>D(m,{sx:o,...e});import{styled as F}from"@mui/material";var f=F("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as O}from"react/jsx-runtime";var b=({sx:o,...e})=>O(f,{sx:o,...e});import{styled as $}from"@mui/material";var P=$("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});import{jsx as H}from"react/jsx-runtime";var c=({sx:o,...e})=>H(P,{sx:o,...e});import{styled as z}from"@mui/material";var C=z("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});import{jsx as L}from"react/jsx-runtime";var h=({sx:o,...e})=>L(C,{sx:o,...e});import{styled as S}from"@mui/material";var T=S("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});import{jsx as q}from"react/jsx-runtime";var y=({sx:o,...e})=>q(T,{sx:o,...e});import{sanitize as G}from"isomorphic-dompurify";var x=o=>G(o,{FORBID_ATTR:["class"]});import{Fragment as K,jsx as l}from"react/jsx-runtime";var p=(o,e)=>{if(!("name"in o)||!("children"in o))return null;let{name:r,children:i,attribs:d}=o,n=i;return r==="code"?l(c,{id:`${r}-${e}`,children:a(n,{replace:t=>p(t,e)})}):r==="b"?l(b,{id:`${r}-${e}`,children:a(n,{replace:t=>p(t,e)})}):r==="i"?l(h,{id:`${r}-${e}`,children:a(n,{replace:t=>p(t,e)})}):r==="mark"?l(y,{id:`${r}-${e}`,children:a(n,{replace:t=>p(t,e)})}):r==="a"?l(R,{id:`${r}-${e}`,href:d?.href,rel:"noopener noreferrer",target:"_blank",children:a(n,{replace:t=>p(t,e)})}):null},u=({html:o,id:e})=>{let r=x(o);return l(K,{children:J(r,{replace:i=>p(i,e)})})};import{styled as Q}from"@mui/material";var w=Q("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));import{jsx as U}from"react/jsx-runtime";var _=({sx:o,...e})=>U(w,{sx:o,...e});import{styled as V}from"@mui/material";var I=V("div",{name:"RootTableRow",label:"root__table__row",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({display:"grid",gridTemplateColumns:"repeat(auto-fit,minmax(10px,1fr))",position:"relative",borderBottom:"1px solid",borderBottomColor:o.palette.primary.main}));import{jsx as X}from"react/jsx-runtime";var g=({sx:o,...e})=>X(I,{sx:o,...e});import{styled as Y}from"@mui/material";var k=Y("div",{name:"RootTable",label:"root__table",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({position:"relative",width:"100%",height:"100%",display:"grid",fontSize:14,borderTop:"1px solid",borderTopColor:o.palette.primary.main,lineHeight:1.4}));import{jsx as Z}from"react/jsx-runtime";var M=({sx:o,...e})=>Z(k,{sx:o,...e});import{styled as j}from"@mui/material";var W=j("div",{name:"RootTableRow",label:"root__table__row",shouldForwardProp:o=>o!=="as"})(({theme:o})=>({borderRight:"1px solid",borderRightColor:o.palette.primary.main,padding:"6px 12px",overflow:"hidden",outline:"none",lineBreak:"normal","&:first-of-type":{borderLeft:"unset",borderLeftColor:"unset"},"&:last-of-type":{borderRight:"unset",borderRightColor:"unset"}}));import{jsx as oo}from"react/jsx-runtime";var E=({sx:o,...e})=>oo(W,{sx:o,...e});import{jsx as s}from"react/jsx-runtime";var fe=({data:o,id:e,Container:r})=>{let{content:i}=o,{sx:d,...n}=r||{};return s(_,{sx:d,...n,children:s(M,{id:e,children:i.map((t,B)=>s(g,{children:t.map((N,A)=>s(E,{children:s(u,{html:N,id:e})},A))},B))},e)},e)};export{fe as TableNode};
@@ -1,4 +1,4 @@
1
- import { BlockItemType } from '../types';
1
+ import type { BlockItemType } from '../types';
2
2
  export type Tune = any;
3
3
  export interface DataTable {
4
4
  content: string[][];
@@ -15,13 +15,6 @@ export interface DataQuote {
15
15
  caption: string;
16
16
  alignment: 'center' | 'left';
17
17
  }
18
- export interface DataChecklistItem {
19
- text: string;
20
- checked: boolean;
21
- }
22
- export interface DataCheckList {
23
- items: DataChecklistItem[];
24
- }
25
18
  export interface DataCodeLang {
26
19
  code: string;
27
20
  }
@@ -57,12 +50,43 @@ export interface DataImage {
57
50
  stretched: boolean;
58
51
  withBackground: boolean;
59
52
  }
60
- export interface DataList {
61
- style: 'ordered' | 'unordered';
62
- items: string[];
53
+ export interface DataListOrderedItem {
54
+ content: string;
55
+ meta: {
56
+ start: number;
57
+ counterType: "numeric" | "lower-roman" | "upper-roman" | "lower-alpha" | "upper-alpha";
58
+ };
59
+ items: DataListOrderedItem[];
60
+ }
61
+ export interface DataListOrdered {
62
+ style: 'ordered';
63
+ meta: DataListOrderedItem["meta"];
64
+ items: DataListOrderedItem[];
65
+ }
66
+ export interface DataListUnOrderedItem {
67
+ content: string;
68
+ meta: Record<string, never>;
69
+ items: DataListUnOrderedItem[];
70
+ }
71
+ export interface DataListUnOrdered {
72
+ style: 'unordered';
73
+ meta: DataListUnOrderedItem["meta"];
74
+ items: DataListUnOrderedItem[];
75
+ }
76
+ export interface DataCheckListItem {
77
+ content: string;
78
+ meta: {
79
+ checked: boolean;
80
+ };
81
+ items: DataCheckListItem[];
63
82
  }
64
- export interface DataDelimiter {
83
+ export interface DataCheckList {
84
+ style: 'checklist';
85
+ meta: DataCheckListItem["meta"];
86
+ items: DataCheckListItem[];
65
87
  }
88
+ export type DataList = DataListOrdered | DataListUnOrdered | DataCheckList;
89
+ export type DataDelimiter = Record<string, never>;
66
90
  interface BaseBlockModel {
67
91
  id: string;
68
92
  type: BlockItemType;
@@ -80,9 +104,6 @@ export interface BlockHeaderModel extends BaseBlockModel {
80
104
  export interface BlockQuoteModel extends BaseBlockModel {
81
105
  data: DataQuote;
82
106
  }
83
- export interface BlockCheckListModel extends BaseBlockModel {
84
- data: DataCheckList;
85
- }
86
107
  export interface BlockCodeModel extends BaseBlockModel {
87
108
  data: DataCodeLang;
88
109
  }
@@ -106,7 +127,7 @@ export interface BlockDelimiterModel extends BaseBlockModel {
106
127
  }
107
128
  export interface EditorDataModel {
108
129
  time: number;
109
- blocks: (BlockTableModel | BlockParagraphModel | BlockHeaderModel | BlockQuoteModel | BlockCheckListModel | BlockCodeModel | BlockRawToolModel | BlockLinkToolModel | BlockEmbedModel | BlockImageModel | BlockListModel | BlockDelimiterModel)[];
130
+ blocks: (BlockTableModel | BlockParagraphModel | BlockHeaderModel | BlockQuoteModel | BlockCodeModel | BlockRawToolModel | BlockLinkToolModel | BlockEmbedModel | BlockImageModel | BlockListModel | BlockDelimiterModel)[];
110
131
  version: string;
111
132
  }
112
133
  export {};
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";var r=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var c=(t,e,l,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of n(e))!d.call(t,a)&&a!==l&&r(t,a,{get:()=>e[a],enumerable:!(o=i(e,a))||o.enumerable});return t};var s=t=>c(r({},"__esModule",{value:!0}),t);var k={};module.exports=s(k);
2
+ "use strict";var r=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var c=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of l(e))!d.call(t,a)&&a!==i&&r(t,a,{get:()=>e[a],enumerable:!(o=n(e,a))||o.enumerable});return t};var s=t=>c(r({},"__esModule",{value:!0}),t);var m={};module.exports=s(m);
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@wulperstudio/editor-render",
3
- "version": "0.0.15-beta",
3
+ "version": "0.0.17-beta",
4
4
  "author": "@wulperstudio",
5
- "repository": "https://github.com/WulperStudio/editor-render.git",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/WulperStudio/editor-render.git"
8
+ },
6
9
  "license": "MIT",
7
10
  "peerDependencies": {
8
11
  "@emotion/react": "^11.10.5",
@@ -18,5 +21,36 @@
18
21
  "html-react-parser": "^1.4.14",
19
22
  "isomorphic-dompurify": "^0.19.0"
20
23
  },
21
- "private": false
24
+ "private": false,
25
+ "main": "./index.js",
26
+ "module": "./index.mjs",
27
+ "types": "./index.d.ts",
28
+ "exports": {
29
+ ".": {
30
+ "types": "./index.d.ts",
31
+ "import": "./index.mjs",
32
+ "require": "./index.js"
33
+ },
34
+ "./base": {
35
+ "types": "./base/index.d.ts",
36
+ "import": "./base/index.mjs",
37
+ "require": "./base/index.js"
38
+ },
39
+ "./components": {
40
+ "types": "./components/index.d.ts",
41
+ "import": "./components/index.mjs",
42
+ "require": "./components/index.js"
43
+ },
44
+ "./helpers": {
45
+ "types": "./helpers/index.d.ts",
46
+ "import": "./helpers/index.mjs",
47
+ "require": "./helpers/index.js"
48
+ },
49
+ "./utils": {
50
+ "types": "./utils/index.d.ts",
51
+ "import": "./utils/index.mjs",
52
+ "require": "./utils/index.js"
53
+ },
54
+ "./package.json": "./package.json"
55
+ }
22
56
  }
package/types/index.d.ts CHANGED
@@ -1 +1 @@
1
- export type BlockItemType = 'paragraph' | 'header' | 'delimiter' | 'list' | 'image' | 'table' | 'embed' | 'rawTool' | 'quote' | 'code' | 'checklist' | 'linkTool';
1
+ export type BlockItemType = 'paragraph' | 'header' | 'delimiter' | 'list' | 'image' | 'table' | 'embed' | 'rawTool' | 'quote' | 'code' | 'linkTool';
package/types/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- "use strict";var a=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var d=(l,e,i,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of p(e))!c.call(l,o)&&o!==i&&a(l,o,{get:()=>e[o],enumerable:!(t=r(e,o))||t.enumerable});return l};var m=l=>d(a({},"__esModule",{value:!0}),l);var h={};module.exports=m(h);
2
+ "use strict";var t=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var m=(o,e,r,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of p(e))!d.call(o,a)&&a!==r&&t(o,a,{get:()=>e[a],enumerable:!(l=i(e,a))||l.enumerable});return o};var T=o=>m(t({},"__esModule",{value:!0}),o);var b={};module.exports=T(b);
@@ -1,7 +0,0 @@
1
- import { ComponentPropsWithRef } from 'react';
2
- import { RootCheckList } from './styled';
3
- export type CheckListRootProps = ComponentPropsWithRef<typeof RootCheckList>;
4
- interface CheckListProps extends CheckListRootProps {
5
- }
6
- export declare const CheckList: ({ sx, ...props }: CheckListProps) => import("react").JSX.Element;
7
- export {};
@@ -1,2 +0,0 @@
1
- 'use client';
2
- "use strict";var r=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var k=(o,t)=>{for(var s in t)r(o,s,{get:t[s],enumerable:!0})},l=(o,t,s,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of C(t))!f.call(o,e)&&e!==s&&r(o,e,{get:()=>t[e],enumerable:!(i=n(t,e))||i.enumerable});return o};var a=o=>l(r({},"__esModule",{value:!0}),o);var L={};k(L,{CheckList:()=>m});module.exports=a(L);var p=require("@mui/material"),c=(0,p.styled)("div",{name:"RootCheckList",label:"root__check__list",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap",height:"auto"});var h=require("react/jsx-runtime"),m=({sx:o,...t})=>(0,h.jsx)(c,{sx:o,...t});0&&(module.exports={CheckList});
@@ -1,2 +0,0 @@
1
- 'use client';
2
- import{styled as s}from"@mui/material";var t=s("div",{name:"RootCheckList",label:"root__check__list",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap",height:"auto"});import{jsx as r}from"react/jsx-runtime";var h=({sx:o,...e})=>r(t,{sx:o,...e});export{h as CheckList};
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const RootCheckList: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,7 +0,0 @@
1
- import { ComponentPropsWithRef } from 'react';
2
- import { RootListItem } from './styled';
3
- export type RootCheckListItemProps = ComponentPropsWithRef<typeof RootListItem>;
4
- interface ItemModel extends RootCheckListItemProps {
5
- }
6
- export declare const CheckListItem: ({ sx, ...props }: ItemModel) => import("react").JSX.Element;
7
- export {};
@@ -1,2 +0,0 @@
1
- 'use client';
2
- "use strict";var m=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var f=(t,o)=>{for(var s in o)m(t,s,{get:o[s],enumerable:!0})},l=(t,o,s,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of R(o))!d.call(t,e)&&e!==s&&m(t,e,{get:()=>o[e],enumerable:!(i=n(o,e))||i.enumerable});return t};var L=t=>l(m({},"__esModule",{value:!0}),t);var c={};f(c,{CheckListItem:()=>h});module.exports=L(c);var r=require("@mui/material"),p=(0,r.styled)("div",{name:"RootListItem",label:"root__list__item",shouldForwardProp:t=>t!=="as"&&t!=="sx"})({});var I=require("react/jsx-runtime"),h=({sx:t,...o})=>(0,I.jsx)(p,{sx:t,...o});0&&(module.exports={CheckListItem});
@@ -1,2 +0,0 @@
1
- 'use client';
2
- import{styled as s}from"@mui/material";var o=s("div",{name:"RootListItem",label:"root__list__item",shouldForwardProp:t=>t!=="as"&&t!=="sx"})({});import{jsx as m}from"react/jsx-runtime";var I=({sx:t,...e})=>m(o,{sx:t,...e});export{I as CheckListItem};
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const RootListItem: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- import { DataCheckList } from '../../interfaces';
3
- import { RootContainerProps } from '../../components/Container';
4
- import { CheckListRootProps } from '../../components/CheckList';
5
- import { RootCheckListItemProps } from '../../components/CheckListItem';
6
- export interface CheckListNodeProps {
7
- type: 'checklist';
8
- data: DataCheckList;
9
- id: string;
10
- tunes?: any;
11
- Container?: RootContainerProps;
12
- CheckList?: CheckListRootProps;
13
- Item?: RootCheckListItemProps;
14
- }
15
- export declare const CheckListNode: ({ data, id, tunes, Container, CheckList, Item, }: CheckListNodeProps) => import("react").JSX.Element;
@@ -1,2 +0,0 @@
1
- 'use client';
2
- "use strict";var mo=Object.create;var l=Object.defineProperty;var lo=Object.getOwnPropertyDescriptor;var co=Object.getOwnPropertyNames;var fo=Object.getPrototypeOf,ho=Object.prototype.hasOwnProperty;var Po=(o,t)=>{for(var r in t)l(o,r,{get:t[r],enumerable:!0})},R=(o,t,r,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let p of co(t))!ho.call(o,p)&&p!==r&&l(o,p,{get:()=>t[p],enumerable:!(e=lo(t,p))||e.enumerable});return o};var Ro=(o,t,r)=>(r=o!=null?mo(fo(o)):{},R(t||!o||!o.__esModule?l(r,"default",{value:o,enumerable:!0}):r,o)),Co=o=>R(l({},"__esModule",{value:!0}),o);var ko={};Po(ko,{CheckListNode:()=>xo});module.exports=Co(ko);var c=(o,t)=>o===3?`calc(${(100/o).toFixed(2)}% - ${t*(o-1)/o}px)`:o===2?`calc(${(100/o).toFixed(2)}% - ${t*(o-1)/o}px)`:"100%";var C=require("isomorphic-dompurify"),x=o=>(0,C.sanitize)(o,{FORBID_ATTR:["class"]});var s=Ro(require("html-react-parser"));var k=require("@mui/material"),y=(0,k.styled)("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});var g=require("react/jsx-runtime"),I=({sx:o,...t})=>(0,g.jsx)(y,{sx:o,...t});var u=require("@mui/material"),L=(0,u.styled)("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var M=require("react/jsx-runtime"),b=({sx:o,...t})=>(0,M.jsx)(L,{sx:o,...t});var _=require("@mui/material"),B=(0,_.styled)("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});var W=require("react/jsx-runtime"),E=({sx:o,...t})=>(0,W.jsx)(B,{sx:o,...t});var w=require("@mui/material"),F=(0,w.styled)("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});var $=require("react/jsx-runtime"),A=({sx:o,...t})=>(0,$.jsx)(F,{sx:o,...t});var D=require("@mui/material"),N=(0,D.styled)("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var v=require("react/jsx-runtime"),T=({sx:o,...t})=>(0,v.jsx)(N,{sx:o,...t});var n=require("react/jsx-runtime"),m=(o,t)=>{if(!("name"in o)||!("children"in o))return null;let{name:r,children:e,attribs:p}=o;return r==="code"?(0,n.jsx)(I,{id:`${r}-${t}`,children:(0,s.domToReact)(e,{replace:i=>m(i,t)})}):r==="b"?(0,n.jsx)(b,{id:`${r}-${t}`,children:(0,s.domToReact)(e,{replace:i=>m(i,t)})}):r==="i"?(0,n.jsx)(E,{id:`${r}-${t}`,children:(0,s.domToReact)(e,{replace:i=>m(i,t)})}):r==="mark"?(0,n.jsx)(A,{id:`${r}-${t}`,children:(0,s.domToReact)(e,{replace:i=>m(i,t)})}):r==="a"?(0,n.jsx)(T,{id:`${r}-${t}`,href:p?.href,rel:"noopener noreferrer",target:"_blank",children:(0,s.domToReact)(e,{replace:i=>m(i,t)})}):null},O=({html:o,id:t})=>{let r=x(o);return(0,n.jsx)(n.Fragment,{children:(0,s.default)(r,{replace:e=>m(e,t)})})};var H=require("@mui/material"),z=(0,H.styled)("p",{name:"RootParagraph",label:"root__paragraph",shouldForwardProp:o=>o!=="as"})({margin:0});var G=require("react/jsx-runtime"),S=({sx:o,...t})=>(0,G.jsx)(z,{sx:o,...t});var U=require("@mui/material"),q=(0,U.styled)("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));var K=require("react/jsx-runtime"),J=({sx:o,...t})=>(0,K.jsx)(q,{sx:o,...t});var Q=require("@mui/material"),V=(0,Q.styled)("div",{name:"RootCheckList",label:"root__check__list",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap",height:"auto"});var Y=require("react/jsx-runtime"),X=({sx:o,...t})=>(0,Y.jsx)(V,{sx:o,...t});var Z=require("@mui/material"),j=(0,Z.styled)("div",{name:"RootListItem",label:"root__list__item",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});var to=require("react/jsx-runtime"),oo=({sx:o,...t})=>(0,to.jsx)(j,{sx:o,...t});var ro=require("@mui/material"),P=require("@iconify/react"),d=require("react/jsx-runtime"),eo=({checked:o,sx:t,...r})=>(0,d.jsx)(ro.Checkbox,{sx:t,size:"small",checked:o,icon:(0,d.jsx)(P.Icon,{icon:"akar-icons:circle-fill",color:"inherit",width:"24px",height:"24px"}),checkedIcon:(0,d.jsx)(P.Icon,{icon:"akar-icons:circle-check-fill",color:"inherit",width:"24px",height:"24px"}),...r});var a=require("react/jsx-runtime"),f=10,xo=({data:o,id:t,tunes:r,Container:e,CheckList:p,Item:i})=>{let{items:io}=o,{sx:po,...no}=e||{};return(0,a.jsx)(J,{sx:po,...no,children:(0,a.jsx)(X,{id:t,...p,sx:{display:"flex",flexWrap:"wrap",gap:`${f}px`,borderRadius:"25px",padding:"20px",backgroundColor:h=>h.palette.background.default,border:"1px solid #EFF3FE",...p?.sx},children:io.map(({checked:h,text:so},ao)=>(0,a.jsxs)(oo,{...i,sx:{display:"flex",alignItems:"center",flexWrap:"nowrap",flexGrow:0,columnGap:"5px",flexBasis:c(1,f),...r?.columnTune?.size==="two-columns"&&{flexBasis:c(2,f)},...r?.columnTune?.size==="three-columns"&&{flexBasis:c(3,f)},...i?.sx},children:[(0,a.jsx)(eo,{checked:h,sx:{padding:"5px"}}),(0,a.jsx)(S,{children:(0,a.jsx)(O,{html:so,id:t})})]},ao))})},t)};0&&(module.exports={CheckListNode});
@@ -1,2 +0,0 @@
1
- 'use client';
2
- var l=(o,t)=>o===3?`calc(${(100/o).toFixed(2)}% - ${t*(o-1)/o}px)`:o===2?`calc(${(100/o).toFixed(2)}% - ${t*(o-1)/o}px)`:"100%";import{sanitize as z}from"isomorphic-dompurify";var h=o=>z(o,{FORBID_ATTR:["class"]});import Z,{domToReact as s}from"html-react-parser";import{styled as S}from"@mui/material";var P=S("code",{name:"RootInlineCode",label:"root__inline__code",shouldForwardProp:o=>o!=="as"})({});import{jsx as G}from"react/jsx-runtime";var R=({sx:o,...t})=>G(P,{sx:o,...t});import{styled as U}from"@mui/material";var C=U("b",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as q}from"react/jsx-runtime";var x=({sx:o,...t})=>q(C,{sx:o,...t});import{styled as J}from"@mui/material";var k=J("i",{name:"RootBold",label:"root__bold",shouldForwardProp:o=>o!=="as"})({});import{jsx as K}from"react/jsx-runtime";var y=({sx:o,...t})=>K(k,{sx:o,...t});import{styled as Q}from"@mui/material";var I=Q("mark",{name:"RootMarker",label:"root__marker",shouldForwardProp:o=>o!=="as"})({});import{jsx as V}from"react/jsx-runtime";var g=({sx:o,...t})=>V(I,{sx:o,...t});import{styled as X}from"@mui/material";var u=X("a",{name:"RootAnchor",label:"root__anchor",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as Y}from"react/jsx-runtime";var L=({sx:o,...t})=>Y(u,{sx:o,...t});import{Fragment as j,jsx as n}from"react/jsx-runtime";var p=(o,t)=>{if(!("name"in o)||!("children"in o))return null;let{name:r,children:i,attribs:m}=o;return r==="code"?n(R,{id:`${r}-${t}`,children:s(i,{replace:e=>p(e,t)})}):r==="b"?n(x,{id:`${r}-${t}`,children:s(i,{replace:e=>p(e,t)})}):r==="i"?n(y,{id:`${r}-${t}`,children:s(i,{replace:e=>p(e,t)})}):r==="mark"?n(g,{id:`${r}-${t}`,children:s(i,{replace:e=>p(e,t)})}):r==="a"?n(L,{id:`${r}-${t}`,href:m?.href,rel:"noopener noreferrer",target:"_blank",children:s(i,{replace:e=>p(e,t)})}):null},b=({html:o,id:t})=>{let r=h(o);return n(j,{children:Z(r,{replace:i=>p(i,t)})})};import{styled as oo}from"@mui/material";var M=oo("p",{name:"RootParagraph",label:"root__paragraph",shouldForwardProp:o=>o!=="as"})({margin:0});import{jsx as to}from"react/jsx-runtime";var _=({sx:o,...t})=>to(M,{sx:o,...t});import{styled as ro}from"@mui/material";var B=ro("div",{name:"RootContainer",label:"root__container",shouldForwardProp:o=>o!=="as"&&o!=="stretched"&&o!=="sx"})(({stretched:o})=>({width:"100%",maxWidth:700,height:"auto",margin:"0 auto",...o&&{maxWidth:850}}));import{jsx as eo}from"react/jsx-runtime";var E=({sx:o,...t})=>eo(B,{sx:o,...t});import{styled as io}from"@mui/material";var W=io("div",{name:"RootCheckList",label:"root__check__list",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"nowrap",height:"auto"});import{jsx as po}from"react/jsx-runtime";var w=({sx:o,...t})=>po(W,{sx:o,...t});import{styled as no}from"@mui/material";var F=no("div",{name:"RootListItem",label:"root__list__item",shouldForwardProp:o=>o!=="as"&&o!=="sx"})({});import{jsx as so}from"react/jsx-runtime";var A=({sx:o,...t})=>so(F,{sx:o,...t});import{Checkbox as ao}from"@mui/material";import{Icon as $}from"@iconify/react";import{jsx as f}from"react/jsx-runtime";var D=({checked:o,sx:t,...r})=>f(ao,{sx:t,size:"small",checked:o,icon:f($,{icon:"akar-icons:circle-fill",color:"inherit",width:"24px",height:"24px"}),checkedIcon:f($,{icon:"akar-icons:circle-check-fill",color:"inherit",width:"24px",height:"24px"}),...r});import{jsx as a,jsxs as mo}from"react/jsx-runtime";var c=10,$t=({data:o,id:t,tunes:r,Container:i,CheckList:m,Item:e})=>{let{items:N}=o,{sx:T,...v}=i||{};return a(E,{sx:T,...v,children:a(w,{id:t,...m,sx:{display:"flex",flexWrap:"wrap",gap:`${c}px`,borderRadius:"25px",padding:"20px",backgroundColor:d=>d.palette.background.default,border:"1px solid #EFF3FE",...m?.sx},children:N.map(({checked:d,text:O},H)=>mo(A,{...e,sx:{display:"flex",alignItems:"center",flexWrap:"nowrap",flexGrow:0,columnGap:"5px",flexBasis:l(1,c),...r?.columnTune?.size==="two-columns"&&{flexBasis:l(2,c)},...r?.columnTune?.size==="three-columns"&&{flexBasis:l(3,c)},...e?.sx},children:[a(D,{checked:d,sx:{padding:"5px"}}),a(_,{children:a(b,{html:O,id:t})})]},H))})},t)};export{$t as CheckListNode};
@@ -1,12 +0,0 @@
1
- import { DetailedHTMLProps, IframeHTMLAttributes } from 'react';
2
- export interface ServiceConfig {
3
- regex: RegExp;
4
- embedUrl: string;
5
- iframeProps: DetailedHTMLProps<IframeHTMLAttributes<HTMLIFrameElement>, HTMLIFrameElement>;
6
- id?: (ids: string[]) => string;
7
- }
8
- export type ServicesConfigType = {
9
- [key: string]: ServiceConfig | boolean;
10
- };
11
- declare const SERVICES: ServicesConfigType;
12
- export default SERVICES;
@@ -1,2 +0,0 @@
1
- 'use client';
2
- "use strict";var s=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var n=(e,t)=>{for(var i in t)s(e,i,{get:t[i],enumerable:!0})},p=(e,t,i,d)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of l(t))!h.call(e,r)&&r!==i&&s(e,r,{get:()=>t[r],enumerable:!(d=a(t,r))||d.enumerable});return e};var w=e=>p(s({},"__esModule",{value:!0}),e);var b={};n(b,{default:()=>u});module.exports=w(b);var c={vimeo:{regex:/(?:http[s]?:\/\/)?(?:www.)?(?:player.)?vimeo\.co(?:.+\/([^\/]\d+)(?:#t=[\d]+)?s?$)/,embedUrl:"https://player.vimeo.com/video/<%= remote_id %>?title=0&byline=0",iframeProps:{style:{width:"100%",border:0,height:320}}},youtube:{regex:/(?:https?:\/\/)?(?:www\.)?(?:(?:youtu\.be\/)|(?:youtube\.com)\/(?:v\/|u\/\w\/|embed\/|watch))(?:(?:\?v=)?([^#&?=]*))?((?:[?&]\w*=\w*)*)/,embedUrl:"https://www.youtube.com/embed/<%= remote_id %>",iframeProps:{style:{width:"100%",border:0,height:320},allowFullScreen:!0},id:([e,t])=>{if(!t&&e)return e;let i={start:"start",end:"end",t:"start",time_continue:"start",list:"list"},d=t.slice(1).split("&").map(r=>{let[m,o]=r.split("=");return!e&&m==="v"?(e=o,null):!i[m]||o==="LL"||o.startsWith("RDMM")||o.startsWith("FL")?null:`${i[m]}=${o}`}).filter(r=>!!r);return`${e}?${d.join("&")}`}},coub:{regex:/https?:\/\/coub\.com\/view\/([^\/\?\&]+)/,embedUrl:"https://coub.com/embed/<%= remote_id %>",iframeProps:{style:{width:"100%",border:0,height:320},allowFullScreen:!0}},vine:{regex:/https?:\/\/vine\.co\/v\/([^\/\?\&]+)/,embedUrl:"https://vine.co/v/<%= remote_id %>/embed/simple/",iframeProps:{style:{width:"100%",border:0,height:320},allowFullScreen:!0}},imgur:{regex:/https?:\/\/(?:i\.)?imgur\.com.*\/([a-zA-Z0-9]+)(?:\.gifv)?/,embedUrl:"http://imgur.com/<%= remote_id %>/embed",iframeProps:{id:"imgur-embed-iframe-pub-<%= remote_id %>",className:"imgur-embed-iframe-pub",style:{height:500,width:"100%",border:"1px solid #000",overflow:"hidden"},allowFullScreen:!0}},gfycat:{regex:/https?:\/\/gfycat\.com(?:\/detail)?\/([a-zA-Z]+)/,embedUrl:"https://gfycat.com/ifr/<%= remote_id %>",iframeProps:{style:{width:"100%",height:436,border:0,overflow:"hidden"},allowFullScreen:!0}},"twitch-channel":{regex:/https?:\/\/www\.twitch\.tv\/([^\/\?\&]*)\/?$/,embedUrl:"https://player.twitch.tv/?channel=<%= remote_id %>",iframeProps:{style:{width:"100%",height:366,border:0,overflow:"hidden"},allowFullScreen:!0}},"twitch-video":{regex:/https?:\/\/www\.twitch\.tv\/(?:[^\/\?\&]*\/v|videos)\/([0-9]*)/,embedUrl:"https://player.twitch.tv/?video=v<%= remote_id %>",iframeProps:{style:{border:0,overflow:"hidden",height:366,width:"100%"},allowFullScreen:!0}},"yandex-music-album":{regex:/https?:\/\/music\.yandex\.ru\/album\/([0-9]*)\/?$/,embedUrl:"https://music.yandex.ru/iframe/#album/<%= remote_id %>/",iframeProps:{style:{borderStyle:"none",width:"100%",height:400}}},"yandex-music-track":{regex:/https?:\/\/music\.yandex\.ru\/album\/([0-9]*)\/track\/([0-9]*)/,embedUrl:"https://music.yandex.ru/iframe/#track/<%= remote_id %>/",iframeProps:{style:{border:0,borderStyle:"none",width:"100%",height:100}},id:e=>e.join("/")},"yandex-music-playlist":{regex:/https?:\/\/music\.yandex\.ru\/users\/([^\/\?\&]*)\/playlists\/([0-9]*)/,embedUrl:"https://music.yandex.ru/iframe/#playlist/<%= remote_id %>/show/cover/description/",iframeProps:{style:{border:0,borderStyle:"none",width:"100%",maxWidth:540,margin:"0 auto",height:400}},id:e=>e.join("/")},codepen:{regex:/https?:\/\/codepen\.io\/([^\/\?\&]*)\/pen\/([^\/\?\&]*)/,embedUrl:"https://codepen.io/<%= remote_id %>?height=300&theme-id=0&default-tab=css,result&embed-version=2",iframeProps:{style:{width:"100%",height:300,overflow:"hidden",border:0},allowTransparency:!0,allowFullScreen:!0},id:e=>e.join("/embed/")},instagram:{regex:/https?:\/\/www\.instagram\.com\/p\/([^\/\?\&]+)\/?.*/,embedUrl:"https://www.instagram.com/p/<%= remote_id %>/embed",iframeProps:{width:400,height:505,style:{margin:"0 auto",border:0,overflow:"hidden"},allowTransparency:!0}},twitter:{regex:/^https?:\/\/(www\.)?(?:twitter\.com|x\.com)\/.+\/status\/(\d+)/,embedUrl:"https://platform.twitter.com/embed/Tweet.html?id=<%= remote_id %>",iframeProps:{style:{width:600,height:600,border:0,margin:"0 auto",overflow:"hidden"},allowTransparency:!0},id:e=>e[1]},pinterest:{regex:/https?:\/\/([^\/\?\&]*).pinterest.com\/pin\/([^\/\?\&]*)\/?$/,embedUrl:"https://assets.pinterest.com/ext/embed.html?id=<%= remote_id %>",iframeProps:{style:{width:"100%",minHeight:400,maxHeight:1e3,border:0,overflow:"hidden"},allowTransparency:!0,allowFullScreen:!0},id:e=>e[1]},facebook:{regex:/https?:\/\/www.facebook.com\/([^\/\?\&]*)\/(.*)/,embedUrl:"https://www.facebook.com/plugins/post.php?href=https://www.facebook.com/<%= remote_id %>&width=500",iframeProps:{style:{width:"100%",minHeight:500,maxHeight:1e3,margin:"0 auto",border:0,overflow:"hidden"},allowTransparency:!0,allowFullScreen:!0},id:e=>e.join("/")},aparat:{regex:/(?:http[s]?:\/\/)?(?:www.)?aparat\.com\/v\/([^\/\?\&]+)\/?/,embedUrl:"https://www.aparat.com/video/video/embed/videohash/<%= remote_id %>/vt/frame",iframeProps:{style:{width:600,height:300,margin:"0 auto",border:0,overflow:"hidden"},allowTransparency:!0}},miro:{regex:/https:\/\/miro.com\/\S+(\S{12})\/(\S+)?/,embedUrl:"https://miro.com/app/live-embed/<%= remote_id %>",iframeProps:{style:{width:700,height:500,margin:"0 auto",border:0,overflow:"hidden"},allowFullScreen:!0}},github:{regex:/https?:\/\/gist.github.com\/([^\/\?\&]*)\/([^\/\?\&]*)/,embedUrl:'data:text/html;charset=utf-8,<head><base target="_blank" /></head><body><script src="https://gist.github.com/<%= remote_id %>" ></script></body>',iframeProps:{style:{width:"100%",border:0,height:350,margin:"0 auto"}},id:e=>`${e.join("/")}.js`}},u=c;
@@ -1,2 +0,0 @@
1
- 'use client';
2
- var s={vimeo:{regex:/(?:http[s]?:\/\/)?(?:www.)?(?:player.)?vimeo\.co(?:.+\/([^\/]\d+)(?:#t=[\d]+)?s?$)/,embedUrl:"https://player.vimeo.com/video/<%= remote_id %>?title=0&byline=0",iframeProps:{style:{width:"100%",border:0,height:320}}},youtube:{regex:/(?:https?:\/\/)?(?:www\.)?(?:(?:youtu\.be\/)|(?:youtube\.com)\/(?:v\/|u\/\w\/|embed\/|watch))(?:(?:\?v=)?([^#&?=]*))?((?:[?&]\w*=\w*)*)/,embedUrl:"https://www.youtube.com/embed/<%= remote_id %>",iframeProps:{style:{width:"100%",border:0,height:320},allowFullScreen:!0},id:([e,o])=>{if(!o&&e)return e;let d={start:"start",end:"end",t:"start",time_continue:"start",list:"list"},m=o.slice(1).split("&").map(r=>{let[i,t]=r.split("=");return!e&&i==="v"?(e=t,null):!d[i]||t==="LL"||t.startsWith("RDMM")||t.startsWith("FL")?null:`${d[i]}=${t}`}).filter(r=>!!r);return`${e}?${m.join("&")}`}},coub:{regex:/https?:\/\/coub\.com\/view\/([^\/\?\&]+)/,embedUrl:"https://coub.com/embed/<%= remote_id %>",iframeProps:{style:{width:"100%",border:0,height:320},allowFullScreen:!0}},vine:{regex:/https?:\/\/vine\.co\/v\/([^\/\?\&]+)/,embedUrl:"https://vine.co/v/<%= remote_id %>/embed/simple/",iframeProps:{style:{width:"100%",border:0,height:320},allowFullScreen:!0}},imgur:{regex:/https?:\/\/(?:i\.)?imgur\.com.*\/([a-zA-Z0-9]+)(?:\.gifv)?/,embedUrl:"http://imgur.com/<%= remote_id %>/embed",iframeProps:{id:"imgur-embed-iframe-pub-<%= remote_id %>",className:"imgur-embed-iframe-pub",style:{height:500,width:"100%",border:"1px solid #000",overflow:"hidden"},allowFullScreen:!0}},gfycat:{regex:/https?:\/\/gfycat\.com(?:\/detail)?\/([a-zA-Z]+)/,embedUrl:"https://gfycat.com/ifr/<%= remote_id %>",iframeProps:{style:{width:"100%",height:436,border:0,overflow:"hidden"},allowFullScreen:!0}},"twitch-channel":{regex:/https?:\/\/www\.twitch\.tv\/([^\/\?\&]*)\/?$/,embedUrl:"https://player.twitch.tv/?channel=<%= remote_id %>",iframeProps:{style:{width:"100%",height:366,border:0,overflow:"hidden"},allowFullScreen:!0}},"twitch-video":{regex:/https?:\/\/www\.twitch\.tv\/(?:[^\/\?\&]*\/v|videos)\/([0-9]*)/,embedUrl:"https://player.twitch.tv/?video=v<%= remote_id %>",iframeProps:{style:{border:0,overflow:"hidden",height:366,width:"100%"},allowFullScreen:!0}},"yandex-music-album":{regex:/https?:\/\/music\.yandex\.ru\/album\/([0-9]*)\/?$/,embedUrl:"https://music.yandex.ru/iframe/#album/<%= remote_id %>/",iframeProps:{style:{borderStyle:"none",width:"100%",height:400}}},"yandex-music-track":{regex:/https?:\/\/music\.yandex\.ru\/album\/([0-9]*)\/track\/([0-9]*)/,embedUrl:"https://music.yandex.ru/iframe/#track/<%= remote_id %>/",iframeProps:{style:{border:0,borderStyle:"none",width:"100%",height:100}},id:e=>e.join("/")},"yandex-music-playlist":{regex:/https?:\/\/music\.yandex\.ru\/users\/([^\/\?\&]*)\/playlists\/([0-9]*)/,embedUrl:"https://music.yandex.ru/iframe/#playlist/<%= remote_id %>/show/cover/description/",iframeProps:{style:{border:0,borderStyle:"none",width:"100%",maxWidth:540,margin:"0 auto",height:400}},id:e=>e.join("/")},codepen:{regex:/https?:\/\/codepen\.io\/([^\/\?\&]*)\/pen\/([^\/\?\&]*)/,embedUrl:"https://codepen.io/<%= remote_id %>?height=300&theme-id=0&default-tab=css,result&embed-version=2",iframeProps:{style:{width:"100%",height:300,overflow:"hidden",border:0},allowTransparency:!0,allowFullScreen:!0},id:e=>e.join("/embed/")},instagram:{regex:/https?:\/\/www\.instagram\.com\/p\/([^\/\?\&]+)\/?.*/,embedUrl:"https://www.instagram.com/p/<%= remote_id %>/embed",iframeProps:{width:400,height:505,style:{margin:"0 auto",border:0,overflow:"hidden"},allowTransparency:!0}},twitter:{regex:/^https?:\/\/(www\.)?(?:twitter\.com|x\.com)\/.+\/status\/(\d+)/,embedUrl:"https://platform.twitter.com/embed/Tweet.html?id=<%= remote_id %>",iframeProps:{style:{width:600,height:600,border:0,margin:"0 auto",overflow:"hidden"},allowTransparency:!0},id:e=>e[1]},pinterest:{regex:/https?:\/\/([^\/\?\&]*).pinterest.com\/pin\/([^\/\?\&]*)\/?$/,embedUrl:"https://assets.pinterest.com/ext/embed.html?id=<%= remote_id %>",iframeProps:{style:{width:"100%",minHeight:400,maxHeight:1e3,border:0,overflow:"hidden"},allowTransparency:!0,allowFullScreen:!0},id:e=>e[1]},facebook:{regex:/https?:\/\/www.facebook.com\/([^\/\?\&]*)\/(.*)/,embedUrl:"https://www.facebook.com/plugins/post.php?href=https://www.facebook.com/<%= remote_id %>&width=500",iframeProps:{style:{width:"100%",minHeight:500,maxHeight:1e3,margin:"0 auto",border:0,overflow:"hidden"},allowTransparency:!0,allowFullScreen:!0},id:e=>e.join("/")},aparat:{regex:/(?:http[s]?:\/\/)?(?:www.)?aparat\.com\/v\/([^\/\?\&]+)\/?/,embedUrl:"https://www.aparat.com/video/video/embed/videohash/<%= remote_id %>/vt/frame",iframeProps:{style:{width:600,height:300,margin:"0 auto",border:0,overflow:"hidden"},allowTransparency:!0}},miro:{regex:/https:\/\/miro.com\/\S+(\S{12})\/(\S+)?/,embedUrl:"https://miro.com/app/live-embed/<%= remote_id %>",iframeProps:{style:{width:700,height:500,margin:"0 auto",border:0,overflow:"hidden"},allowFullScreen:!0}},github:{regex:/https?:\/\/gist.github.com\/([^\/\?\&]*)\/([^\/\?\&]*)/,embedUrl:'data:text/html;charset=utf-8,<head><base target="_blank" /></head><body><script src="https://gist.github.com/<%= remote_id %>" ></script></body>',iframeProps:{style:{width:"100%",border:0,height:350,margin:"0 auto"}},id:e=>`${e.join("/")}.js`}},a=s;export{a as default};