@sistent/sistent 0.14.213 → 0.14.214

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -56,7 +56,7 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var ue=se(b,O,L,F,q+"."+
56
56
  `)&&u.type==="html"&&(n[n.length-1]=n[n.length-1].replace(/(\r?\n|\r)$/," "),l=" ",s=t.createTracker(r),s.move(n.join(""))),n.push(s.move(t.handle(u,e,t,{...s.current(),before:l,after:f}))),l=n[n.length-1].slice(-1)}return o.pop(),n.join("")}var K4e=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];aW.peek=Z4e;var AS={canContainEols:["delete"],enter:{strikethrough:$4e},exit:{strikethrough:Y4e}},PS={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:K4e}],handlers:{delete:aW}};function $4e(e){this.enter({type:"delete",children:[]},e)}function Y4e(e){this.exit(e)}function aW(e,t,r,o){let a=vu(o),n=r.enter("strikethrough"),i=a.move("~~");return i+=t3(e,r,{...a.current(),before:i,after:"~"}),i+=a.move("~~"),n(),i}function Z4e(){return"~"}_S.peek=Q4e;function _S(e,t,r){let o=e.value||"",a="`",n=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(o);)a+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++n<r.unsafe.length;){let i=r.unsafe[n],l=e3(i),s;if(i.atBreak)for(;s=l.exec(o);){let u=s.index;o.charCodeAt(u)===10&&o.charCodeAt(u-1)===13&&u--,o=o.slice(0,u)+" "+o.slice(s.index+1)}}return a+o+a}function Q4e(){return"`"}function X4e(e){return e.length}function iW(e,t){let r=t||{},o=(r.align||[]).concat(),a=r.stringLength||X4e,n=[],i=[],l=[],s=[],u=0,f=-1;for(;++f<e.length;){let h=[],g=[],T=-1;for(e[f].length>u&&(u=e[f].length);++T<e[f].length;){let E=J4e(e[f][T]);if(r.alignDelimiters!==!1){let R=a(E);g[T]=R,(s[T]===void 0||R>s[T])&&(s[T]=R)}h.push(E)}i[f]=h,l[f]=g}let d=-1;if(typeof o=="object"&&"length"in o)for(;++d<u;)n[d]=nW(o[d]);else{let h=nW(o);for(;++d<u;)n[d]=h}d=-1;let p=[],m=[];for(;++d<u;){let h=n[d],g="",T="";h===99?(g=":",T=":"):h===108?g=":":h===114&&(T=":");let E=r.alignDelimiters===!1?1:Math.max(1,s[d]-g.length-T.length),R=g+"-".repeat(E)+T;r.alignDelimiters!==!1&&(E=g.length+E+T.length,E>s[d]&&(s[d]=E),m[d]=E),p[d]=R}i.splice(1,0,p),l.splice(1,0,m),f=-1;let x=[];for(;++f<i.length;){let h=i[f],g=l[f];d=-1;let T=[];for(;++d<u;){let E=h[d]||"",R="",k="";if(r.alignDelimiters!==!1){let D=s[d]-(g[d]||0),C=n[d];C===114?R=" ".repeat(D):C===99?D%2?(R=" ".repeat(D/2+.5),k=" ".repeat(D/2-.5)):(R=" ".repeat(D/2),k=R):k=" ".repeat(D)}r.delimiterStart!==!1&&!d&&T.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&E==="")&&(r.delimiterStart!==!1||d)&&T.push(" "),r.alignDelimiters!==!1&&T.push(R),T.push(E),r.alignDelimiters!==!1&&T.push(k),r.padding!==!1&&T.push(" "),(r.delimiterEnd!==!1||d!==u-1)&&T.push("|")}x.push(r.delimiterEnd===!1?T.join("").replace(/ +$/,""):T.join(""))}return x.join(`
57
57
  `)}function J4e(e){return e==null?"":String(e)}function nW(e){let t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var kS={enter:{table:ege,tableData:lW,tableHeader:lW,tableRow:rge},exit:{codeText:oge,table:tge,tableData:IS,tableHeader:IS,tableRow:IS}};function ege(e){let t=e._align;this.enter({type:"table",align:t.map(r=>r==="none"?null:r),children:[]},e),this.setData("inTable",!0)}function tge(e){this.exit(e),this.setData("inTable")}function rge(e){this.enter({type:"tableRow",children:[]},e)}function IS(e){this.exit(e)}function lW(e){this.enter({type:"tableCell",children:[]},e)}function oge(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,age));let r=this.stack[this.stack.length-1];r.value=t,this.exit(e)}function age(e,t){return t==="|"?t:e}function MS(e){let t=e||{},r=t.tableCellPadding,o=t.tablePipeAlign,a=t.stringLength,n=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
58
58
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:i,tableRow:l,tableCell:s,inlineCode:p}};function i(m,x,h,g){return u(f(m,h,g),m.align)}function l(m,x,h,g){let T=d(m,h,g),E=u([T]);return E.slice(0,E.indexOf(`
59
- `))}function s(m,x,h,g){let T=h.enter("tableCell"),E=h.enter("phrasing"),R=t3(m,h,{...g,before:n,after:n});return E(),T(),R}function u(m,x){return iW(m,{align:x,alignDelimiters:o,padding:r,stringLength:a})}function f(m,x,h){let g=m.children,T=-1,E=[],R=x.enter("table");for(;++T<g.length;)E[T]=d(g[T],x,h);return R(),E}function d(m,x,h){let g=m.children,T=-1,E=[],R=x.enter("tableRow");for(;++T<g.length;)E[T]=s(g[T],m,x,h);return R(),E}function p(m,x,h){let g=_S(m,x,h);return h.stack.includes("tableCell")&&(g=g.replace(/\|/g,"\\$&")),g}}function sW(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function uW(e){let t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function fW(e,t,r,o){let a=uW(r),n=r.bulletCurrent||sW(r);t&&t.type==="list"&&t.ordered&&(n=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+n);let i=n.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4);let l=r.createTracker(o);l.move(n+" ".repeat(i-n.length)),l.shift(i);let s=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,l.current()),f);return s(),u;function f(d,p,m){return p?(m?"":" ".repeat(i))+d:(m?n:n+" ".repeat(i-n.length))+d}}var LS={exit:{taskListCheckValueChecked:dW,taskListCheckValueUnchecked:dW,paragraph:nge}},DS={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ige}};function dW(e){let t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function nge(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let r=this.stack[this.stack.length-1],o=r.children[0];if(o&&o.type==="text"){let a=t.children,n=-1,i;for(;++n<a.length;){let l=a[n];if(l.type==="paragraph"){i=l;break}}i===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():r.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function ige(e,t,r,o){let a=e.children[0],n=typeof e.checked=="boolean"&&a&&a.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",l=vu(o);n&&l.move(i);let s=fW(e,t,r,{...o,...l.current()});return n&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(f){return f+i}}function FS(){return[bS,RS(),AS,kS,LS]}function NS(e){return{extensions:[vS,OS(),PS,MS(e),DS]}}function Am(e={}){let t=this.data();r("micromarkExtensions",$U(e)),r("fromMarkdownExtensions",FS()),r("toMarkdownExtensions",NS(e));function r(o,a){(t[o]?t[o]:t[o]=[]).push(a)}}var Mr=require("@mui/material");var Pm=(0,Mr.styled)("a")(({theme:e})=>({color:e.palette.background.brand?.default,textDecoration:"none","&:hover":{textDecoration:"underline"},cursor:"pointer",fontFamily:"inherit"})),pW=(0,Mr.styled)("a")(()=>({textDecoration:"none","&:hover":{textDecoration:"underline"},cursor:"pointer"})),mW=(0,Mr.styled)("p")(({theme:e})=>({color:e.palette.text.default,marginBlock:"0px",...e.typography.textB1Regular,fontFamily:"inherit"})),cW=(0,Mr.styled)("p")(({theme:e})=>({color:e.palette.text.constant?.white||tL.inverse,marginBlock:"0px",fontFamily:"inherit"})),BS=(0,Mr.styled)("h1")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),HS=(0,Mr.styled)("h2")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),VS=(0,Mr.styled)("h3")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),US=(0,Mr.styled)("h4")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),WS=(0,Mr.styled)("h5")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),qS=(0,Mr.styled)("h6")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),GS=(0,Mr.styled)("blockquote")(({theme:e})=>({color:e.palette.text.default,borderLeft:`2px solid ${e.palette.text.brand}`,backgroundColor:e.palette.background.tertiary})),zS=(0,Mr.styled)("ul")(({theme:e})=>({color:e.palette.text.default})),jS=(0,Mr.styled)("li")(({theme:e})=>({color:e.palette.text.default,...e.typography.textB1Regular,fontFamily:"inherit"})),KS=(0,Mr.styled)("th")(({theme:e})=>({color:e.palette.text.default,...e.typography.textH3Medium,marginBlock:"0px",fontFamily:"inherit"})),$S=(0,Mr.styled)("td")(({theme:e})=>({color:e.palette.text.default,marginBlock:"0px",...e.typography.textB1Regular,fontFamily:"inherit"})),xW=(0,Mr.styled)("pre")(({theme:e})=>({background:e.palette.background.code,whiteSpace:"pre-line",fontFamily:"inherit"})),hW=(0,Mr.styled)("code")(({theme:e})=>({background:e.palette.background.code,whiteSpace:"pre-line",padding:"1.5px",paddingInline:"5px",fontFamily:"inherit",borderRadius:3}));var Ye=require("react/jsx-runtime"),wu=({content:e})=>(0,Ye.jsx)(Bd,{remarkPlugins:[Am],rehypePlugins:[sS],components:{p:({...t})=>(0,Ye.jsx)(mW,{children:t.children}),a:({...t})=>(0,Ye.jsx)(Pm,{onClick:r=>{r.preventDefault(),window.open(t.href,"_blank")},href:t.href,children:t.children}),h1:({...t})=>(0,Ye.jsx)(BS,{children:t.children}),h2:({...t})=>(0,Ye.jsx)(HS,{children:t.children}),h3:({...t})=>(0,Ye.jsx)(VS,{children:t.children}),h4:({...t})=>(0,Ye.jsx)(US,{children:t.children}),h5:({...t})=>(0,Ye.jsx)(WS,{children:t.children}),h6:({...t})=>(0,Ye.jsx)(qS,{children:t.children}),blockquote:({...t})=>(0,Ye.jsx)(GS,{children:t.children}),ul:({...t})=>(0,Ye.jsx)(zS,{children:t.children}),li:({...t})=>(0,Ye.jsx)(jS,{children:t.children}),th:({...t})=>(0,Ye.jsx)(KS,{children:t.children}),td:({...t})=>(0,Ye.jsx)($S,{children:t.children}),pre:({...t})=>(0,Ye.jsx)(xW,{children:t.children}),code:({...t})=>(0,Ye.jsx)(hW,{children:t.children})},children:e}),Qd=({content:e})=>(0,Ye.jsx)(Bd,{remarkPlugins:[Am],components:{p:({...r})=>(0,Ye.jsx)(cW,{children:r.children}),a:({...r})=>(0,Ye.jsx)(Pm,{onClick:o=>{window.open(r.href,"_blank"),o.stopPropagation()},as:"a",children:r.children}),h1:({...r})=>(0,Ye.jsx)(BS,{children:r.children}),h2:({...r})=>(0,Ye.jsx)(HS,{children:r.children}),h3:({...r})=>(0,Ye.jsx)(VS,{children:r.children}),h4:({...r})=>(0,Ye.jsx)(US,{children:r.children}),h5:({...r})=>(0,Ye.jsx)(WS,{children:r.children}),h6:({...r})=>(0,Ye.jsx)(qS,{children:r.children}),blockquote:({...r})=>(0,Ye.jsx)(GS,{children:r.children}),ul:({...r})=>(0,Ye.jsx)(zS,{children:r.children}),li:({...r})=>(0,Ye.jsx)(jS,{children:r.children}),th:({...r})=>(0,Ye.jsx)(KS,{children:r.children}),td:({...r})=>(0,Ye.jsx)($S,{children:r.children})},children:(r=>{if(!r)return r;try{return JSON.parse(`"${r}"`)}catch{return r}})(e)}),gW=({content:e})=>(0,Ye.jsx)(Bd,{remarkPlugins:[Am],components:{a:({...t})=>(0,Ye.jsx)(pW,{onClick:r=>{window.open(t.href,"_blank"),r.stopPropagation()},as:"a",children:t.children})},children:e});var YS=require("react/jsx-runtime");function lge({title:e,onClick:t,placement:r,children:o,fontSize:a,fontWeight:n=400,variant:i="standard",bgColor:l="#141414",componentsProps:s={},...u}){return(0,YS.jsx)(Jt,{enterTouchDelay:0,leaveTouchDelay:2e3,componentsProps:TW.default.merge({tooltip:{sx:{background:l,color:Tt,maxWidth:"600px",fontSize:a||(i==="standard"?"1rem":"0.75rem"),fontWeight:{fontWeight:n},borderRadius:"0.5rem",padding:i==="standard"?"0.9rem":"0.5rem 0.75rem",boxShadow:"rgba(0, 0, 0, 0.6) 0px 4px 10px, rgba(0, 0, 0, 0.5) 0px 2px 4px"}},popper:{sx:{zIndex:9999999999,opacity:"1"}},arrow:{sx:{color:l}}},s),title:typeof e=="string"?(0,YS.jsx)(Qd,{content:e}):e,placement:r,arrow:!0,onClick:t,...u,children:o})}var ge=lge;var r3=require("react/jsx-runtime"),sge=({helpText:e,style:t={},...r})=>(0,r3.jsx)(ge,{title:e,...r,children:(0,r3.jsx)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",...t},children:(0,r3.jsx)(X2,{...To})})}),Ui=sge;var Lr=require("react/jsx-runtime"),SW=(0,y.styled)(zt)(({theme:e,borderColor:t})=>({width:e.spacing(4),height:e.spacing(4),cursor:"pointer",border:`1.5px solid ${t||e.palette.common.white} !important`})),uge=(0,y.styled)("div")(({theme:e})=>({width:e.spacing(4.5),height:e.spacing(4.5),border:`1.5px solid ${e.palette.common.white}`,borderRadius:"50%",background:v2,display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"-10px",zIndex:0,"&:hover":{cursor:"pointer"}})),fge=(0,y.styled)("div")({display:"flex",alignItems:"center",padding:"5px 15px 5px 10px","&:hover":{cursor:"pointer",background:"#cecece80 !important"}}),dge=(0,y.styled)(z)({marginLeft:"10px"}),pge=(0,y.styled)(Gf)(()=>({"& .MuiPopover-paper":{marginTop:"10px",maxHeight:"331px"}})),mge=({users:e,providerUrl:t,onOpenWorkspace:r})=>{let[o,a]=(0,CW.useState)(null),n=d=>{window.open(d,"_blank","noreferrer")},i=d=>{a(d.currentTarget)},l=()=>{a(null)},s=Object.entries(e).length,u=4,f=(0,y.useTheme)();return(0,Lr.jsxs)(m2,{max:u+1,children:[Object.entries(e).slice(0,u).map(([d,p])=>(0,Lr.jsx)(ge,{title:(0,Lr.jsxs)("div",{style:{justifyContent:"center"},children:[(0,Lr.jsx)(z,{style:{fontSize:"0.9em"},children:p.name}),(0,Lr.jsx)(ke,{size:"small",variant:"outlined",onClick:r,style:{fontSize:"0.9em",padding:"2px 8px",minWidth:"auto",marginTop:"4px"},children:"Open Recents"})]}),arrow:!0,children:(0,Lr.jsx)(SW,{alt:p.name,src:p.avatar_url,borderColor:p.border_color,imgProps:{referrerPolicy:"no-referrer"},onClick:()=>n(`${t}/user/${p.user_id}`)},d)},d)),s>u&&(0,Lr.jsxs)(Lr.Fragment,{children:[(0,Lr.jsx)(uge,{onClick:i,"aria-describedby":"user-popover",children:o?(0,Lr.jsx)($o,{fill:f.palette.common.white,...To,style:{marginLeft:"4px"}}):(0,Lr.jsx)(z,{variant:"body2",style:{color:f.palette.common.white,fontSize:"12px"},children:`+${s-u}`})}),(0,Lr.jsx)(pge,{id:"user-popover",open:!!o,anchorEl:o,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:Object.entries(e).slice(u,s).map(([d,p])=>(0,Lr.jsxs)(fge,{onClick:()=>n(`${t}/user/${p.user_id}`),children:[(0,Lr.jsx)(SW,{alt:p.name,src:p.avatar_url,borderColor:p.border_color,imgProps:{referrerPolicy:"no-referrer"}}),(0,Lr.jsx)(dge,{variant:"body1",children:p.name})]},d))})]})]})},ZS=mge;var QS=require("react/jsx-runtime");function cge({tooltip:e,tooltipPlacement:t="top",variant:r="filled",label:o,icon:a,onClick:n,onDelete:i,style:l,...s}){return(0,QS.jsx)(ge,{title:e,placement:t,children:(0,QS.jsx)(Nt,{sx:{paddingY:"10px",padding:"5px 6px !important",color:"black",fontSize:"14px",textTransform:"uppercase",fontWeight:400,height:"unset",borderRadius:"100px",border:"0.5px solid #51636B",background:"white",maxWidth:"230px"},variant:r,label:o,onClick:n,onDelete:i,icon:a,style:l,...s})})}var XS=cge;var JS=require("react");var Co=require("react/jsx-runtime"),xge=({zoomEffect:e=!1,imgURL:t,type:r,width:o,height:a,style:n={}})=>{let[i,l]=(0,JS.useState)(!1),[s,u]=(0,JS.useState)(!1),f=()=>{e&&u(!0)},d=()=>{u(!1)},p=({type:m})=>m.type==="filter"?(0,Co.jsx)(o5,{width:o,height:a,style:n}):(0,Co.jsx)(Ja,{width:o,height:a,style:n});return(0,Co.jsx)(Co.Fragment,{children:t&&t.length>0?(0,Co.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:i?(0,Co.jsx)(p,{type:r}):(0,Co.jsxs)(Co.Fragment,{children:[(0,Co.jsx)("img",{src:t[0],alt:"Design SnapShot",loading:"lazy",onClick:f,onError:()=>l(!0),style:{cursor:"pointer",width:"100%",height:"100%",objectFit:"cover"}}),(0,Co.jsx)(ma,{open:s,onClose:d,style:{backgroundColor:"rgba(0, 0, 0, 0.8)"},PaperProps:{style:{background:"transparent",boxShadow:"none",overflow:"hidden",maxWidth:"60vw"}},children:(0,Co.jsx)("img",{src:t[0],alt:"Zoomed Design SnapShot",style:{objectFit:"contain",maxWidth:"100%",maxHeight:"100%"}})})]})}):(0,Co.jsx)(p,{type:r})})},Eu=xge;var i3=require("react");var bW=G(require("js-yaml")),hge=async(e,t=!0,r)=>new Promise(o=>{let a=new Image;t&&!e.startsWith("http")?a.src=(r?r():"")+e:a.src=e,a.onload=()=>{o(!0)},a.onerror=()=>{o(!1)}}),gge=async(e,t,r)=>{let o=[];for(let a of e){let n=`${t}/${a.toLowerCase()}/${r}/${a.toLowerCase()}-color.svg`;await hge(n)&&o.push(a)}return o},yW=e=>{try{return bW.default.load(e)?.version||eC}catch(t){return console.error("Failed to parse pattern file to get version:",t),eC}},vW=async({technologies:e,basePath:t="",subBasePath:r="",setAvailableTechnologies:o})=>{let a=await gge(e,t,r);o(a)},eC="0.0.0",o3=e=>{switch(e.visibility){case"published":return e?.catalog_data?.published_version||eC;case"public":case"private":return yW(e.pattern_file);default:return yW(e.pattern_file)}};var Ke=require("@mui/material");var wW=(0,Ke.styled)("div")(()=>({width:"85px",height:"88px",overflow:"hidden",position:"absolute",top:"-3px",left:"-3px",zIndex:10})),EW=(0,Ke.styled)("div")(()=>({color:"#eee",fontSize:"0.875rem",lineHeight:"1.5",fontWeight:"600",borderBottom:"1px solid rgba(231, 239, 243, 0.40)"})),RW=(0,Ke.styled)("div")(()=>({color:"#eee",overflow:"hidden",fontSize:"14px",lineHeight:"24px",fontWeight:"400",marginTop:".8rem"})),OW=(0,Ke.styled)("div")(({catalogClassName:e,theme:t})=>({font:"bold 10px sans-serif",WebkitTransform:"rotate(-45deg)",textAlign:"center",transform:"rotate(-45deg)",position:"relative",padding:"4px 0",top:"15px",left:"-30px",width:"120px",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",backgroundColor:{community:I2.main,official:t.palette.background.cta?.default||"#EBC017",verified:t.palette.background.brand?.default||"#00B39F"}[e],color:e==="official"?t.palette.common.black:t.palette.common.white})),tC=(0,Ke.styled)("div")(({shouldFlip:e,isDetailed:t,outerStyles:r,theme:o})=>({position:"relative",borderRadius:"1rem",textAlign:"center",transformStyle:"preserve-3d",display:"block",perspective:"1000px",transition:"all .9s ease-out",...e&&{"&:hover":{cursor:"pointer","& .innerCard":{transform:"rotateY(180deg)"}}},...t&&{[o.breakpoints.down("lg")]:{height:"16.75rem"}},...r})),rC=(0,Ke.styled)("div")(({shouldFlip:e,isDetailed:t})=>({position:"relative",width:"100%",height:"100%",textAlign:"center",transition:"transform 0.6s",...e&&{transformOrigin:"50% 50%",transformStyle:"preserve-3d"},...t&&{boxShadow:"0 4px 8px 0 rgba(0,0,0,0.2)",borderRadius:"0.9375rem"}})),AW=(0,Ke.styled)("span")(({theme:e})=>({position:"absolute",top:"0",right:"0",minWidth:"3rem",padding:"0 0.75rem",fontSize:"0.875rem",textTransform:"capitalize",background:e.palette.background.brand?.default,color:e.palette.background.constant?.white,borderRadius:"0 1rem 0 2rem",zIndex:5})),PW=(0,Ke.styled)("p")(({theme:e})=>({fontSize:"1rem",textTransform:"capitalize",margin:"0rem",lineHeight:"1.5",textAlign:"center",color:e.palette.mode==="light"?Pn:ga,fontWeight:"600"})),_W=(0,Ke.styled)(Ke.Typography)(({theme:e,hasRibbon:t})=>({fontWeight:"bold",textTransform:"capitalize",color:e.palette.text.default,fontSize:"1.125rem",padding:"0rem 1rem",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"center",width:"100%",margin:t?"3.5rem 0 1.59rem 0":"2rem 0 1.59rem 0",fontFamily:"inherit",...t&&{paddingLeft:"1.5rem"}})),IW=(0,Ke.styled)("div")(({isDetailed:e,theme:t})=>({display:"flex",justifyContent:"space-around",fontSize:"0.2rem",color:t.palette.mode==="light"?"rgba(26, 26, 26, .8)":t.palette.text.default,padding:"0.9rem 0.1rem",background:t.palette.mode==="light"?"#E7EFF3":Pn,...e&&{position:"absolute",bottom:"0px"},...!e&&{marginTop:"1.2rem"},borderRadius:"0 0 0.9375rem 0.9375rem",width:"100%"})),kW=(0,Ke.styled)("div")(()=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.2rem",color:"rgba(26, 26, 26, .8)",margin:"0rem",padding:"0.1rem"})),a3=(0,Ke.styled)("div")(()=>({height:"max-content",display:"flex",marginTop:"-1rem",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start","@media (max-width:1200px)":{height:"max-content"}})),jit=(0,Ke.styled)("div")(({theme:e})=>({background:e.palette.background.surfaces,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.5rem",width:"100%",borderRadius:"0.5rem"})),Kit=(0,Ke.styled)("div")(({theme:e})=>({display:"inline-block",backgroundColor:e.palette.background.supplementary,color:e.palette.text.constant?.white,borderRadius:"4px",fontSize:"0.75rem",fontWeight:"bold",margin:"5px 0",padding:"2px 5px",maxWidth:"fit-content"})),MW=(0,Ke.styled)("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.75",color:e.palette.text.constant?.white,position:"absolute",bottom:"16px",left:"16px",borderRadius:"4px",background:e.palette.background.supplementary,justifyContent:"center"})),LW=(0,Ke.styled)("p")(({theme:e})=>({fontSize:"0.75rem",margin:"0",padding:"0.25rem .5rem",lineHeight:"1.5",textTransform:"lowercase",fontWeight:"600",borderRadius:"4.05px",color:e.palette.text.constant?.white})),$it=(0,Ke.styled)("div")(()=>({perspective:"1000px","&:hover .flipper":{transform:"rotateY(-180deg)"}})),Yit=(0,Ke.styled)("div")(()=>({transition:"0.6s",transformStyle:"preserve-3d",position:"relative"})),Tge=(0,Ke.styled)("div")(()=>({backfaceVisibility:"hidden",position:"absolute",top:0,left:0,width:"100%",height:"100%"})),Zit=(0,Ke.styled)(Tge)(()=>({zIndex:2,transform:"rotateY(0deg)"})),Qit=(0,Ke.styled)("div")(()=>({transform:"rotateY(-180deg)",color:"#fff",display:"inline-flex",flexDirection:"column",padding:"16px",height:"100%",width:"100%",position:"relative",bottom:0,left:0,backfaceVisibility:"hidden"})),Xit=(0,Ke.styled)("div")(({theme:e})=>({position:"absolute",background:`linear-gradient(to bottom right, black 40%, ${e.palette.background.brand?.default})`,width:"100%",top:0,left:0,display:"flex",flexDirection:"column",alignItems:"left",padding:"16px",boxShadow:"2px 2px 3px 0px black",borderRadius:"1rem"})),DW=(0,Ke.styled)("div")({height:"max-content",display:"flex",marginTop:"1.2rem",flexDirection:"row",padding:"0rem 1rem",justifyContent:"flex-start",alignItems:"center","@media (max-width:1200px)":{height:"max-content"}}),FW=(0,Ke.styled)("div")(()=>({display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",gap:"1rem",alignItems:"flex-start",background:"rgba(231, 239, 243, 0.40)",borderRadius:"0.25rem",padding:"0.5rem 1rem",alignSelf:"stretch"})),Jit=(0,Ke.styled)("div")({display:"flex",alignItems:"center",color:"#fff",margin:"20px 0"}),NW=(0,Ke.styled)("div")(({isCatalog:e})=>({boxShadow:"2px 2px 3px 0px rgba(26, 26, 26, 1)",position:"absolute",width:"100%",height:"100%",WebkitBackfaceVisibility:"hidden",borderRadius:"0.9375rem",backfaceVisibility:"hidden",color:"white",transform:"rotateY(180deg)",...e&&{background:"linear-gradient(335deg, rgba(0, 179, 159, 0.80) -13.6%, rgba(0, 0, 0, 0.68) 66.8%), radial-gradient(3970.04% 147.22% at 47.5% 100%, #000 0%, #395357 100%)"},...!e&&{background:"linear-gradient(250deg, #477e96 0%, #00b39f 35%, rgb(60, 73, 79) 100%)"}})),n3=e=>{let t=`linear-gradient(to left bottom, ${f1}, ${s1},white, white, white, white, white, white, white, white, ${f1}, ${s1})`,r=`linear-gradient(to right top, ${d1}, ${Me[30]}, ${Me[20]}, ${Me[10]}, ${Me[10]}, ${Me[10]}, ${Me[10]}, ${Me[10]}, ${Me[10]}, ${ne[20]}, ${ne[10]}, black)`;return e?t:r},oC=(0,Ke.styled)("div")(({shouldFlip:e,isDetailed:t,theme:r})=>{let o=r.palette.mode==="light",a=n3(o),n=`2px 2px 3px 0px ${r.palette.background.brand?.default}`;return{position:"relative",zIndex:1,...e&&{position:"absolute",boxShadow:n,background:a},...t&&{boxShadow:n,background:a},width:"100%",height:"100%",WebkitBackfaceVisibility:"hidden",borderRadius:"0.9375rem",backfaceVisibility:"hidden"}}),BW=(0,Ke.styled)("div")(()=>({fontSize:"0.875rem",textTransform:"capitalize",color:"#eee",margin:"0rem",padding:"0.1rem",fontWeight:"400",lineHeight:"1.5"})),HW=(0,Ke.styled)("p")(()=>({fontSize:"0.876rem",margin:"0rem",lineHeight:"1.5",fontWeight:"400",color:"#eee"})),VW=(0,Ke.styled)("div")(()=>({height:"max-content",display:"flex",margin:"0",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start",fontWeight:"400",textAlign:"right",color:"#E7EFF3",textTransform:"capitalize","@media (max-width:1200px)":{height:"max-content"}})),UW=(0,Ke.styled)("div")(({theme:e})=>{let t=e.palette.mode==="light",r=n3(t),o=`2px 2px 3px 0px ${e.palette.background.brand?.default}`;return{background:r,boxShadow:o,textAlign:"center",borderRadius:"1rem",width:"15rem",height:"18rem",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",[e.breakpoints.down("lg")]:{height:"18.75rem"}}});var we=require("react/jsx-runtime"),mlt=(0,y.styled)("a")(()=>({textDecoration:"none"}));var Sge=({catalogClassName:e})=>e?(0,we.jsx)(wW,{children:(0,we.jsx)(OW,{catalogClassName:e,children:e})}):(0,we.jsx)(we.Fragment,{}),Cge=({pattern:e,patternType:t,cardHeight:r="16.5rem",cardWidth:o="15rem",cardStyles:a,shouldFlip:n=!0,isDetailed:i=!0,cardTechnologies:l=!0,avatarUrl:s,UserName:u,children:f,basePath:d,subBasePath:p,getHostUrl:m,onCardClick:x})=>{let h={height:r,width:o,...a},g=(0,y.useTheme)(),T=e.catalog_data?.compatibility||[],E=5,[R,k]=(0,i3.useState)([]),D=o3(e);return(0,i3.useEffect)(()=>{vW({technologies:T,basePath:d,subBasePath:p,setAvailableTechnologies:k})},[]),n?(0,we.jsx)(tC,{shouldFlip:n,isDetailed:i,outerStyles:h,onClick:x,children:(0,we.jsxs)(rC,{shouldFlip:n,className:"innerCard",children:[(0,we.jsxs)(oC,{shouldFlip:n,isDetailed:i,children:[i&&(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)(Sge,{catalogClassName:e?.catalog_data?.content_class??""}),(0,we.jsx)(AW,{children:t}),(0,we.jsx)(_W,{hasRibbon:!!e?.catalog_data?.content_class,children:e.name})]}),(0,we.jsx)(a3,{children:(0,we.jsx)("div",{style:{background:g.palette.mode==="light"?"rgba(231, 239, 243, 0.4)":"transparent",display:"flex",alignItems:"center",justifyContent:"center",padding:"0.5rem",width:"100%",borderRadius:"0.5rem"},children:f})}),i&&(0,we.jsx)(IW,{isDetailed:i,children:[{Icon:Ca,count:e.download_count},{Icon:od,count:e.clone_count},{Icon:Td,count:e.view_count},{Icon:dd,count:e.deployment_count},{Icon:Ln,count:e.share_count}].map(({Icon:C,count:v},P)=>(0,we.jsxs)(kW,{children:[(0,we.jsx)(C,{width:18,height:18,fill:g.palette.mode==="light"?Pn:ga}),(0,we.jsx)(PW,{children:v})]},P))})]}),n&&(0,we.jsxs)(NW,{isCatalog:!0,children:[(0,we.jsxs)(DW,{children:[(0,we.jsx)(zt,{alt:"Design Author",src:s,sx:{width:"32px",height:"32px",color:"#293B43"}}),(0,we.jsx)(VW,{children:u})]}),(0,we.jsx)(a3,{style:{marginTop:"0.7rem",gap:"5px"},children:l&&(0,we.jsxs)(FW,{children:[(0,we.jsx)(EW,{children:"Technologies"}),(0,we.jsx)(he,{container:!0,style:{gap:"4px",alignItems:"flex-start",flexWrap:"nowrap"},children:T.length<1||R.length<1?(0,we.jsx)(RW,{children:"No technologies"}):(0,we.jsxs)(we.Fragment,{children:[R.slice(0,E).map((C,v)=>{let P=(m?m():"")+`${d}/${C.toLowerCase()}/${p}/${C.toLowerCase()}-color.svg`;return(0,we.jsx)(he,{children:(0,we.jsx)(ge,{title:C.toLowerCase(),children:(0,we.jsx)("img",{height:"24px",width:"24px",alt:C.toLowerCase(),src:P})},v)},v)}),R.length>E&&(0,we.jsxs)(he,{sx:{padding:"0 8px 0 4px",borderRadius:"16px",border:"1px solid #C9DBE3",background:"#E7EFF3",color:"#3C494E",fontSize:"14px",lineHeight:"1.5",fontWeight:"600"},children:["+",R.length-E]})]})})]})}),i&&(0,we.jsx)(a3,{style:{marginTop:"20px"},children:(0,we.jsx)(he,{container:!0,style:{justifyContent:"space-between",alignItems:"center"},children:(0,we.jsxs)(he,{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,we.jsxs)("div",{style:{display:"flex",flexDirection:"row",gap:"0.2rem",alignItems:"center"},children:[(0,we.jsx)(yF,{width:18,height:18}),(0,we.jsx)(HW,{children:"Updated At"})]}),(0,we.jsxs)(BW,{children:[" ",new Date(e.updated_at.toString().slice(0,10)).toLocaleDateString("en-US",{day:"numeric",month:"long",year:"numeric"})]})]})})}),D&&(0,we.jsx)(MW,{children:(0,we.jsxs)(LW,{children:["v",D]})})]})]})}):(0,we.jsx)(tC,{shouldFlip:n,isDetailed:i,outerStyles:h,children:(0,we.jsx)(rC,{shouldFlip:n,className:"innerCard",children:(0,we.jsx)(oC,{shouldFlip:n,isDetailed:i,children:f})})})},Ru=Cge;var _m=require("react/jsx-runtime"),yge=()=>{let e=(0,y.useTheme)();return(0,_m.jsxs)(UW,{children:[(0,_m.jsx)($2,{fill:e.palette.text.default,width:"100px",height:"100px"}),(0,_m.jsx)("h3",{style:{color:e.palette.text.default},children:"No match found"})]})},aC=yge;var u3=G(require("react"));var WW=require("react/jsx-runtime");function bge({children:e,open:t,anchorEl:r,placement:o="bottom-end",...a}){return(0,WW.jsx)(zf,{open:t,anchorEl:r,placement:o,...a,children:e})}var Xd=bge;var qW=G(require("mui-datatables")),Jd=G(require("react"));var nC=require("react/jsx-runtime"),vge=({width:e=V,height:t=U,...r})=>(0,nC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:e,height:t,fill:r.fill||"currentColor",...r,children:(0,nC.jsx)("path",{d:"M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z"})}),iC=vge;var wge=({kind:e,model:t,color:r})=>!e||!t||!r?null:`/ui/public/static/img/meshmodels/${t}/${r}/${e.toLowerCase()}-${r}.svg`;var sC=G(require("moment"));var lC=require("react/jsx-runtime"),Wi=e=>(0,sC.default)(e).fromNow(),ds=e=>(0,sC.default)(e).format("ddd, MMM D, YYYY h:mm A"),ps=e=>{let t={year:"numeric",month:"short",day:"numeric"};return new Date(e).toLocaleDateString("en-US",t)},l3=({date:e})=>(0,lC.jsx)(ge,{title:ds(e),disableInteractive:!0,children:(0,lC.jsx)("div",{children:Wi(e)})});var Mt=require("react/jsx-runtime"),Bo=(0,y.styled)("div",{shouldForwardProp:e=>e!=="disabled"})(({disabled:e=!1})=>({width:"fit-content",cursor:e?"not-allowed":"pointer",opacity:e?"0.5":"1",display:"flex","& svg":{cursor:e?"not-allowed":"pointer"}})),ep=({actionsList:e})=>{let[t,r]=Jd.default.useState(null),[o,a]=Jd.default.useState(!1),n=(0,y.useTheme)(),i=u=>{r(u.currentTarget)},l=()=>{r(null),a(!1)},s=u=>{u.type==="share-social"?a(!o):(u.onClick&&u.onClick(),l())};return(0,Mt.jsxs)(Mt.Fragment,{children:[(0,Mt.jsx)(Wt,{title:"View Actions",onClick:i,icon:(0,Mt.jsx)(iC,{fill:n.palette.icon.default}),arrow:!0}),(0,Mt.jsx)(Fl,{id:"basic-menu",anchorEl:t,open:!!t,onClose:l,sx:{"& .MuiPaper-root":{backgroundColor:n.palette.background.card}},children:e&&e.map((u,f)=>u.type==="share-social"?[(0,Mt.jsxs)(It,{sx:{width:"-webkit-fill-available"},onClick:()=>s(u),disabled:u.disabled,children:[(0,Mt.jsx)(Za,{children:(0,Mt.jsx)(Ln,{width:24,height:24,fill:n.palette.text.primary})}),(0,Mt.jsx)(Xt,{sx:{color:n.palette.text.primary},children:u.title})]},`${f}-menuitem`),(0,Mt.jsx)(pa,{variant:"submenu",in:o,unmountOnExit:!0,children:u.customComponent},`${f}-collapse`)]:(0,Mt.jsx)(Bo,{disabled:u.disabled,children:(0,Mt.jsxs)(It,{sx:{width:"-webkit-fill-available"},onClick:()=>s(u),disabled:u.disabled,children:[(0,Mt.jsx)(Za,{children:u.icon}),(0,Mt.jsx)(Xt,{sx:{color:n.palette.text.primary},children:u.title})]})},f))})]})},Ege=({data:e,columns:t,options:r={},tableCols:o,updateCols:a,columnVisibility:n,rowsPerPageOptions:i=[10,25,50,100],...l})=>{let s={...r,print:!1,download:!1,search:!1,filter:!1,viewColumns:!1,rowsPerPageOptions:i,onViewColumnsChange:(d,p)=>{switch(p){case"add":{let m=t.find(x=>x.name===d);m&&m.options&&(m.options.display=!0,a&&a([...t]));break}case"remove":{let m=t.find(x=>x.name===d);m&&m.options&&(m.options.display=!1,a&&a([...t]));break}}}},u=(0,Jd.useCallback)(()=>{t?.forEach(d=>{typeof d=="object"&&d!==null&&(d.options||(d.options={}),d.options.display=n&&n[d.name],["updated_at","created_at","deleted_at","last_login_time","joined_at","last_run","next_run"].includes(d.name)&&(d.options.customBodyRender=p=>{if(p==="NA"||p===null||p===void 0)return(0,Mt.jsx)(Mt.Fragment,{children:p});if(typeof p=="object"&&"Valid"in p){let m=p;return m.Valid&&m.Time?(0,Mt.jsx)(l3,{date:m.Time}):(0,Mt.jsx)(Mt.Fragment,{children:"NA"})}else return typeof p=="string"?(0,Mt.jsx)(l3,{date:p}):(0,Mt.jsx)(Mt.Fragment,{children:p})}))}),a&&a([...t])},[n,a]);return Jd.default.useEffect(()=>{u()},[u]),(0,Mt.jsx)(qW.default,{columns:o??[],data:e||[],title:void 0,components:{ExpandButton:()=>"",Checkbox:Qr},options:{...s,elevation:0,enableNestedDataAccess:"."},...l})},Ho=Ege;var s3=require("react/jsx-runtime");function Rge({children:e,title:t,onClick:r,icon:o,style:a,arrow:n=!0,disabled:i=!1,iconType:l,id:s,placement:u}){let f=(0,y.useTheme)();return(0,s3.jsx)(ge,{title:t,arrow:n,placement:u,id:s,children:(0,s3.jsx)(Bo,{disabled:i,children:(0,s3.jsx)(Xe,{disabled:i,onClick:r,sx:{"&:hover":{"& svg":{fill:l==="delete"?f.palette.error.main:f.palette.primary.brand?.default}},...a},children:o||e})})})}var Wt=Rge;var Qo=require("react/jsx-runtime");function uC({columns:e,id:t,customToolsProps:r,style:o}){let[a,n]=u3.default.useState(!1),[i,l]=u3.default.useState(null),s=(0,y.useTheme)(),u=p=>{if(p.stopPropagation(),n(m=>!m),i){l(null);return}l(p.currentTarget)},f=()=>{l(null),n(!1)},d=(p,m)=>{p.stopPropagation(),r.setColumnVisibility(x=>({...x,[m]:p.target.checked}))};return(0,Qo.jsx)(u3.default.Fragment,{children:(0,Qo.jsxs)("div",{id:t,children:[(0,Qo.jsx)(Wt,{title:"View Columns",onClick:u,icon:(0,Qo.jsx)(V2,{fill:s.palette.icon.default}),arrow:!0}),(0,Qo.jsx)(Xd,{style:{...o,zIndex:1350},open:!!i,anchorEl:i,placement:"bottom-end",modifiers:[{name:"flip",options:{enabled:!1}},{name:"preventOverflow",options:{enabled:!0,boundariesElement:"scrollParent"}}],children:(0,Qo.jsx)(K,{children:(0,Qo.jsx)(On,{onClickAway:f,children:(0,Qo.jsx)("div",{children:(0,Qo.jsx)(Or,{sx:{display:"flex",flexDirection:"column",padding:"1rem",boxShadow:a?"0px 4px 8px rgba(0, 0, 0, 0.2)":"none",background:s.palette.background.surfaces},children:e.map(p=>(0,Qo.jsx)(Ll,{control:(0,Qo.jsx)(Qr,{checked:r.columnVisibility[p.name],onChange:m=>d(m,p.name)}),label:p.label},p.name))})})})})})]})})}var ln=uC;var GW=require("react");var Gn=require("react/jsx-runtime"),Oge=(0,y.styled)("figure")(({align:e})=>({margin:"1rem 0",textAlign:e,width:"100%"})),Age=(0,y.styled)("figcaption")(({align:e})=>({fontSize:"0.9rem",color:"#666",marginTop:"0.5rem",textAlign:e})),Pge=({src:e,alt:t,caption:r,align:o="left",...a})=>{let[n,i]=(0,GW.useState)(!1),l=()=>{i(!0)},s=()=>{i(!1)};return(0,Gn.jsxs)(Gn.Fragment,{children:[(0,Gn.jsxs)(Oge,{align:o,children:[(0,Gn.jsx)("img",{src:e,alt:t||r||"",loading:"lazy",onClick:l,...a,style:{cursor:"pointer",maxWidth:"100%",height:"auto",boxShadow:"rgba(149, 157, 165, 0.2) 0px 8px 24px",borderRadius:"15px",width:"50%"}}),r&&(0,Gn.jsx)(Age,{align:o,children:r})]}),(0,Gn.jsx)(ma,{open:n,onClose:s,style:{backgroundColor:"rgba(0, 0, 0, 0.8)"},PaperProps:{style:{background:"transparent",boxShadow:"none",overflow:"auto",maxWidth:"100%"}},children:(0,Gn.jsx)("img",{src:e,alt:t||r||"",onClick:s,style:{objectFit:"contain",maxWidth:"100%",maxHeight:"100%"}})})]})},fC=Pge;var QW=require("@mui/material");var zW=require("react/jsx-runtime");function _ge({children:e,...t}){return(0,zW.jsx)(Vf,{...t,children:e})}var Im=_ge;var jW=require("react/jsx-runtime");function Ige({children:e,...t}){return(0,jW.jsx)(Il,{...t,children:e})}var km=Ige;var Mm=require("@mui/material");var KW=(0,Mm.styled)("div")(({theme:e})=>{let t=e.palette.mode==="light"?ed:Sr,r=e.palette.mode==="light"?FT:JM;return{display:"flex",justifyContent:"space-between",padding:"1rem",boxShadow:"inset 0px -1px 3px 0px rgba(0,0,0,0.2)",background:`linear-gradient(90deg, ${t}, ${r})`,filter:e.palette.mode==="light"?`progid:DXImageTransform.Microsoft.gradient(startColorstr='${ed}',endColorstr='${FT}',GradientType=1)`:`progid:DXImageTransform.Microsoft.gradient(startColorstr='${p1}',GradientType=1)`}}),$W=(0,Mm.styled)("div")(()=>({zIndex:"100",borderRadius:"5px"})),YW=(0,Mm.styled)("div")(({theme:e})=>({padding:"1rem 1.5rem",display:"flex",justifyContent:"flex-end",backgroundColor:e.palette.mode==="light"?ed:p1,boxShadow:"inset 0px 3px 5px 0px rgba(0,0,0,0.25)"})),ZW=(0,Mm.styled)("div")(({theme:e})=>({padding:"2rem 1rem",backgroundColor:e.palette.mode==="light"?Tt:Jf}));var Kr=require("react/jsx-runtime");function kge({open:e,onClose:t,title:r,leftHeaderIcon:o,helpText:a,helpArea:n,actions:i,hideActions:l=!1,content:s,maxWidth:u="xs",...f}){return(0,Kr.jsx)(ma,{sx:{"& .MuiDialog-paper":{borderRadius:"10px"}},open:e,maxWidth:u,onClose:t,slots:{backdrop:QW.Backdrop},slotProps:{backdrop:{timeout:500}},...f,children:(0,Kr.jsxs)($W,{children:[(0,Kr.jsxs)(KW,{children:[o&&(0,Kr.jsx)("div",{style:{display:"flex",alignItems:"center"},children:o}),r&&(0,Kr.jsx)(Kr.Fragment,{children:(0,Kr.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,Kr.jsx)(Ml,{children:r})})}),(0,Kr.jsx)("div",{style:{display:"flex",alignItems:"center"},children:a&&(0,Kr.jsx)("div",{children:n})})]}),(0,Kr.jsx)(km,{children:(0,Kr.jsx)(ZW,{children:s})}),!l&&(0,Kr.jsx)(Im,{children:(0,Kr.jsx)(YW,{children:i})})]})})}var dC=kge;var pC=require("react/jsx-runtime");function Mge({children:e,style:t,...r}){return(0,pC.jsx)(Ml,{sx:t,...r,children:(0,pC.jsx)(z,{sx:{flexGrow:1,fontSize:"1.25rem",textAlign:"center"},variant:"h6",children:e})})}var Lm=Mge;var ms=require("react/jsx-runtime");function Lge({icon:e,message:t,pointerLabel:r,poiner:o=!1}){return(0,ms.jsxs)("div",{style:{textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",minHeight:"50vh"},children:[o&&(0,ms.jsxs)(he,{style:{display:"flex",width:"100%",padding:"0 40px"},children:[(0,ms.jsx)(r5,{}),(0,ms.jsx)(z,{sx:{fontSize:24,color:"#808080",px:5,py:2,lineHeight:1.5,letterSpacing:"0.15px",display:"flex",alignItems:"flex-end",marginBottom:"-2rem"},children:r})]}),(0,ms.jsxs)(he,{style:{marginTop:"120px"},children:[e,(0,ms.jsx)(z,{sx:{fontSize:"1.5rem",color:"#808080",px:5,py:2,lineHeight:1},children:t})]})]})}var mC=Lge;var f3=require("@mui/material");var sn=require("react"),Dge=(0,sn.createContext)(null),cC={didCatch:!1,error:null},Dm=class extends sn.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=cC}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){let{error:t}=this.state;if(t!==null){for(var r,o,a=arguments.length,n=new Array(a),i=0;i<a;i++)n[i]=arguments[i];(r=(o=this.props).onReset)===null||r===void 0||r.call(o,{args:n,reason:"imperative-api"}),this.setState(cC)}}componentDidCatch(t,r){var o,a;(o=(a=this.props).onError)===null||o===void 0||o.call(a,t,r)}componentDidUpdate(t,r){let{didCatch:o}=this.state,{resetKeys:a}=this.props;if(o&&r.error!==null&&Fge(t.resetKeys,a)){var n,i;(n=(i=this.props).onReset)===null||n===void 0||n.call(i,{next:a,prev:t.resetKeys,reason:"keys"}),this.setState(cC)}}render(){let{children:t,fallbackRender:r,FallbackComponent:o,fallback:a}=this.props,{didCatch:n,error:i}=this.state,l=t;if(n){let s={error:i,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")l=r(s);else if(o)l=(0,sn.createElement)(o,s);else if(a!==void 0)l=a;else throw i}return(0,sn.createElement)(Dge.Provider,{value:{didCatch:n,error:i,resetErrorBoundary:this.resetErrorBoundary}},l)}};function Fge(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,o)=>!Object.is(r,t[o]))}var nr=require("react/jsx-runtime"),Nge=(0,f3.styled)(z)(({theme:e})=>({color:e.palette.text.default,fontWeight:"normal",marginTop:"2px",marginBottom:"2px",fontSize:"1.15rem"})),XW=(0,f3.styled)(Oo)(({theme:e})=>({color:e.palette.border.brand,textDecoration:"underline",cursor:"pointer"})),Bge=(0,f3.styled)("div")(({theme:e})=>({display:"flex",flexDirection:"column",backgroundColor:e.palette.background.code,color:e.palette.text.tertiary,padding:".85rem",borderRadius:".2rem",marginBlock:".5rem"}));function d3({error:e,children:t,showPackageInfo:r,version:o}){return(0,nr.jsxs)("div",{role:"alert",children:[(0,nr.jsx)("h2",{children:"Uh-oh!\u{1F614} Please pardon the mesh."}),(0,nr.jsxs)(Bge,{children:[(0,nr.jsxs)("code",{children:[(0,nr.jsx)("strong",{children:"Error: "}),e.message]}),(0,nr.jsx)("br",{}),r&&(0,nr.jsxs)(nr.Fragment,{children:[(0,nr.jsx)("strong",{children:"Version:"})," ",o]})]}),(0,nr.jsxs)(Nge,{children:["We apologize for the inconvenience. The issue may be on our end. If troubleshooting doesn't work, please check out our support channels"," ",(0,nr.jsx)(XW,{href:"https://discuss.layer5.io/",target:"_blank",rel:"noopener noreferrer",children:"Discuss Forum"})," "," or ",(0,nr.jsx)(XW,{href:"https://slack.layer5.io/",target:"_blank",rel:"noopener noreferrer",children:"Slack"})]}),(0,nr.jsx)(K,{children:t})]})}var JW=(e,t)=>{let r=window.location.href,o=new Date().toLocaleString();console.log("Error Caught Inside Boundary --reportError",e,"Info",t,"Page URL:",r,"Timestamp:",o)},no=({customFallback:e,children:t,onErrorCaught:r})=>{let o=window.location.href,a=new Date().toLocaleString();return(0,nr.jsx)(Dm,{FallbackComponent:e||(i=>(0,nr.jsx)(d3,{...i,pageUrl:o,timestamp:a})),onError:(i,l)=>{r?.(i.message),JW(i,l)},children:t})},xC=({Component:e,errorHandlingProps:t={children:null}})=>(0,nr.jsx)(no,{...t,children:(0,nr.jsx)(e,{})}),hC=({Component:e})=>(0,nr.jsx)(Dm,{FallbackComponent:()=>null,onError:JW,children:(0,nr.jsx)(e,{})});var p3=G(require("@mui/material/Typography")),op=require("react");var Xo=require("@mui/material"),Ou=require("react");var eq=require("react");var qi=require("react/jsx-runtime");function Hge({content:e,fontSize:t,fontWeight:r=400,variant:o="standard",bgColor:a="#141414",icon:n=(0,qi.jsx)(z2,{fontSize:"small"}),...i}){let[l,s]=(0,eq.useState)(null);return(0,qi.jsxs)(qi.Fragment,{children:[(0,qi.jsx)(Xe,{size:"small",onClick:p=>{s(p.currentTarget)},sx:{color:"inherit",padding:"2px",verticalAlign:"middle"},children:n}),(0,qi.jsx)(Gf,{open:!!l,anchorEl:l,onClose:()=>{s(null)},disablePortal:!0,container:l?.ownerDocument?.body,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},PaperProps:{sx:{background:a,zIndex:1501,opacity:"1",color:Tt,maxWidth:"500px",fontSize:t||(o==="standard"?"1rem":"0.75rem"),fontWeight:r,borderRadius:"0.5rem",padding:o==="standard"?"0.9rem":"0.5rem 0.75rem",boxShadow:"rgba(0, 0, 0, 0.6) 0px 4px 10px, rgba(0, 0, 0, 0.5) 0px 2px 4px"}},...i,children:typeof e=="string"?(0,qi.jsx)(Qd,{content:e}):e})]})}var gC=Hge;var $r=require("react/jsx-runtime"),Au=(0,Xo.styled)(Xe)`
59
+ `))}function s(m,x,h,g){let T=h.enter("tableCell"),E=h.enter("phrasing"),R=t3(m,h,{...g,before:n,after:n});return E(),T(),R}function u(m,x){return iW(m,{align:x,alignDelimiters:o,padding:r,stringLength:a})}function f(m,x,h){let g=m.children,T=-1,E=[],R=x.enter("table");for(;++T<g.length;)E[T]=d(g[T],x,h);return R(),E}function d(m,x,h){let g=m.children,T=-1,E=[],R=x.enter("tableRow");for(;++T<g.length;)E[T]=s(g[T],m,x,h);return R(),E}function p(m,x,h){let g=_S(m,x,h);return h.stack.includes("tableCell")&&(g=g.replace(/\|/g,"\\$&")),g}}function sW(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function uW(e){let t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function fW(e,t,r,o){let a=uW(r),n=r.bulletCurrent||sW(r);t&&t.type==="list"&&t.ordered&&(n=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+n);let i=n.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4);let l=r.createTracker(o);l.move(n+" ".repeat(i-n.length)),l.shift(i);let s=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,l.current()),f);return s(),u;function f(d,p,m){return p?(m?"":" ".repeat(i))+d:(m?n:n+" ".repeat(i-n.length))+d}}var LS={exit:{taskListCheckValueChecked:dW,taskListCheckValueUnchecked:dW,paragraph:nge}},DS={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ige}};function dW(e){let t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function nge(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let r=this.stack[this.stack.length-1],o=r.children[0];if(o&&o.type==="text"){let a=t.children,n=-1,i;for(;++n<a.length;){let l=a[n];if(l.type==="paragraph"){i=l;break}}i===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():r.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function ige(e,t,r,o){let a=e.children[0],n=typeof e.checked=="boolean"&&a&&a.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",l=vu(o);n&&l.move(i);let s=fW(e,t,r,{...o,...l.current()});return n&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(f){return f+i}}function FS(){return[bS,RS(),AS,kS,LS]}function NS(e){return{extensions:[vS,OS(),PS,MS(e),DS]}}function Am(e={}){let t=this.data();r("micromarkExtensions",$U(e)),r("fromMarkdownExtensions",FS()),r("toMarkdownExtensions",NS(e));function r(o,a){(t[o]?t[o]:t[o]=[]).push(a)}}var Mr=require("@mui/material");var Pm=(0,Mr.styled)("a")(({theme:e})=>({color:e.palette.background.brand?.default,textDecoration:"none","&:hover":{textDecoration:"underline"},cursor:"pointer",fontFamily:"inherit"})),pW=(0,Mr.styled)("a")(()=>({textDecoration:"none","&:hover":{textDecoration:"underline"},cursor:"pointer"})),mW=(0,Mr.styled)("p")(({theme:e})=>({color:e.palette.text.default,marginBlock:"0px",...e.typography.textB1Regular,fontFamily:"inherit"})),cW=(0,Mr.styled)("p")(({theme:e})=>({color:e.palette.text.constant?.white||tL.inverse,marginBlock:"0px",fontFamily:"inherit"})),BS=(0,Mr.styled)("h1")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),HS=(0,Mr.styled)("h2")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),VS=(0,Mr.styled)("h3")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),US=(0,Mr.styled)("h4")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),WS=(0,Mr.styled)("h5")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),qS=(0,Mr.styled)("h6")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),GS=(0,Mr.styled)("blockquote")(({theme:e})=>({color:e.palette.text.default,borderLeft:`2px solid ${e.palette.text.brand}`,backgroundColor:e.palette.background.tertiary})),zS=(0,Mr.styled)("ul")(({theme:e})=>({color:e.palette.text.default})),jS=(0,Mr.styled)("li")(({theme:e})=>({color:e.palette.text.default,...e.typography.textB1Regular,fontFamily:"inherit"})),KS=(0,Mr.styled)("th")(({theme:e})=>({color:e.palette.text.default,...e.typography.textH3Medium,marginBlock:"0px",fontFamily:"inherit"})),$S=(0,Mr.styled)("td")(({theme:e})=>({color:e.palette.text.default,marginBlock:"0px",...e.typography.textB1Regular,fontFamily:"inherit"})),xW=(0,Mr.styled)("pre")(({theme:e})=>({background:e.palette.background.code,whiteSpace:"pre-line",fontFamily:"inherit"})),hW=(0,Mr.styled)("code")(({theme:e})=>({background:e.palette.background.code,whiteSpace:"pre-line",padding:"1.5px",paddingInline:"5px",fontFamily:"inherit",borderRadius:3}));var Ye=require("react/jsx-runtime"),wu=({content:e})=>(0,Ye.jsx)(Bd,{remarkPlugins:[Am],rehypePlugins:[sS],components:{p:({...t})=>(0,Ye.jsx)(mW,{children:t.children}),a:({...t})=>(0,Ye.jsx)(Pm,{onClick:r=>{r.preventDefault(),window.open(t.href,"_blank")},href:t.href,children:t.children}),h1:({...t})=>(0,Ye.jsx)(BS,{children:t.children}),h2:({...t})=>(0,Ye.jsx)(HS,{children:t.children}),h3:({...t})=>(0,Ye.jsx)(VS,{children:t.children}),h4:({...t})=>(0,Ye.jsx)(US,{children:t.children}),h5:({...t})=>(0,Ye.jsx)(WS,{children:t.children}),h6:({...t})=>(0,Ye.jsx)(qS,{children:t.children}),blockquote:({...t})=>(0,Ye.jsx)(GS,{children:t.children}),ul:({...t})=>(0,Ye.jsx)(zS,{children:t.children}),li:({...t})=>(0,Ye.jsx)(jS,{children:t.children}),th:({...t})=>(0,Ye.jsx)(KS,{children:t.children}),td:({...t})=>(0,Ye.jsx)($S,{children:t.children}),pre:({...t})=>(0,Ye.jsx)(xW,{children:t.children}),code:({...t})=>(0,Ye.jsx)(hW,{children:t.children})},children:e}),Qd=({content:e})=>(0,Ye.jsx)(Bd,{remarkPlugins:[Am],components:{p:({...r})=>(0,Ye.jsx)(cW,{children:r.children}),a:({...r})=>(0,Ye.jsx)(Pm,{onClick:o=>{window.open(r.href,"_blank"),o.stopPropagation()},as:"a",children:r.children}),h1:({...r})=>(0,Ye.jsx)(BS,{children:r.children}),h2:({...r})=>(0,Ye.jsx)(HS,{children:r.children}),h3:({...r})=>(0,Ye.jsx)(VS,{children:r.children}),h4:({...r})=>(0,Ye.jsx)(US,{children:r.children}),h5:({...r})=>(0,Ye.jsx)(WS,{children:r.children}),h6:({...r})=>(0,Ye.jsx)(qS,{children:r.children}),blockquote:({...r})=>(0,Ye.jsx)(GS,{children:r.children}),ul:({...r})=>(0,Ye.jsx)(zS,{children:r.children}),li:({...r})=>(0,Ye.jsx)(jS,{children:r.children}),th:({...r})=>(0,Ye.jsx)(KS,{children:r.children}),td:({...r})=>(0,Ye.jsx)($S,{children:r.children})},children:(r=>{if(!r)return r;try{return JSON.parse(`"${r}"`)}catch{return r}})(e)}),gW=({content:e})=>(0,Ye.jsx)(Bd,{remarkPlugins:[Am],components:{a:({...t})=>(0,Ye.jsx)(pW,{onClick:r=>{window.open(t.href,"_blank"),r.stopPropagation()},as:"a",children:t.children})},children:e});var YS=require("react/jsx-runtime");function lge({title:e,onClick:t,placement:r,children:o,fontSize:a,fontWeight:n=400,variant:i="standard",bgColor:l="#141414",componentsProps:s={},...u}){return(0,YS.jsx)(Jt,{enterTouchDelay:0,leaveTouchDelay:2e3,componentsProps:TW.default.merge({tooltip:{sx:{background:l,color:Tt,maxWidth:"600px",fontSize:a||(i==="standard"?"1rem":"0.75rem"),fontWeight:{fontWeight:n},borderRadius:"0.5rem",padding:i==="standard"?"0.9rem":"0.5rem 0.75rem",boxShadow:"rgba(0, 0, 0, 0.6) 0px 4px 10px, rgba(0, 0, 0, 0.5) 0px 2px 4px"}},popper:{sx:{zIndex:9999999999,opacity:"1"}},arrow:{sx:{color:l}}},s),title:typeof e=="string"?(0,YS.jsx)(Qd,{content:e}):e,placement:r,arrow:!0,onClick:t,...u,children:o})}var ge=lge;var r3=require("react/jsx-runtime"),sge=({helpText:e,style:t={},...r})=>(0,r3.jsx)(ge,{title:e,...r,children:(0,r3.jsx)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",...t},children:(0,r3.jsx)(X2,{...To})})}),Ui=sge;var Lr=require("react/jsx-runtime"),SW=(0,y.styled)(zt)(({theme:e,borderColor:t})=>({width:e.spacing(4),height:e.spacing(4),cursor:"pointer",border:`1.5px solid ${t||e.palette.common.white} !important`})),uge=(0,y.styled)("div")(({theme:e})=>({width:e.spacing(4.5),height:e.spacing(4.5),border:`1.5px solid ${e.palette.common.white}`,borderRadius:"50%",background:v2,display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"-10px",zIndex:0,"&:hover":{cursor:"pointer"}})),fge=(0,y.styled)("div")({display:"flex",alignItems:"center",padding:"5px 15px 5px 10px","&:hover":{cursor:"pointer",background:"#cecece80 !important"}}),dge=(0,y.styled)(z)({marginLeft:"10px"}),pge=(0,y.styled)(Gf)(()=>({"& .MuiPopover-paper":{marginTop:"10px",maxHeight:"331px"}})),mge=({users:e,providerUrl:t,onOpenWorkspace:r})=>{let[o,a]=(0,CW.useState)(null),n=d=>{window.open(d,"_blank","noreferrer")},i=d=>{a(d.currentTarget)},l=()=>{a(null)},s=Object.entries(e).length,u=4,f=(0,y.useTheme)();return(0,Lr.jsxs)(m2,{max:u+1,children:[Object.entries(e).slice(0,u).map(([d,p])=>(0,Lr.jsx)(ge,{title:(0,Lr.jsxs)("div",{style:{display:"flex",justifyContent:"center",flexDirection:"column"},children:[(0,Lr.jsx)(z,{style:{display:"flex",justifyContent:"center",flexDirection:"column",fontSize:"0.9rem"},children:p.name}),(0,Lr.jsx)(ke,{size:"small",variant:"outlined",onClick:r,style:{fontSize:"0.9rem",padding:"2px 8px",minWidth:"auto",marginTop:"4px"},children:"Open Recents"})]}),arrow:!0,children:(0,Lr.jsx)(SW,{alt:p.name,src:p.avatar_url,borderColor:p.border_color,imgProps:{referrerPolicy:"no-referrer"},onClick:()=>n(`${t}/user/${p.user_id}`)},d)},d)),s>u&&(0,Lr.jsxs)(Lr.Fragment,{children:[(0,Lr.jsx)(uge,{onClick:i,"aria-describedby":"user-popover",children:o?(0,Lr.jsx)($o,{fill:f.palette.common.white,...To,style:{marginLeft:"4px"}}):(0,Lr.jsx)(z,{variant:"body2",style:{color:f.palette.common.white,fontSize:"12px"},children:`+${s-u}`})}),(0,Lr.jsx)(pge,{id:"user-popover",open:!!o,anchorEl:o,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:Object.entries(e).slice(u,s).map(([d,p])=>(0,Lr.jsxs)(fge,{onClick:()=>n(`${t}/user/${p.user_id}`),children:[(0,Lr.jsx)(SW,{alt:p.name,src:p.avatar_url,borderColor:p.border_color,imgProps:{referrerPolicy:"no-referrer"}}),(0,Lr.jsx)(dge,{variant:"body1",children:p.name})]},d))})]})]})},ZS=mge;var QS=require("react/jsx-runtime");function cge({tooltip:e,tooltipPlacement:t="top",variant:r="filled",label:o,icon:a,onClick:n,onDelete:i,style:l,...s}){return(0,QS.jsx)(ge,{title:e,placement:t,children:(0,QS.jsx)(Nt,{sx:{paddingY:"10px",padding:"5px 6px !important",color:"black",fontSize:"14px",textTransform:"uppercase",fontWeight:400,height:"unset",borderRadius:"100px",border:"0.5px solid #51636B",background:"white",maxWidth:"230px"},variant:r,label:o,onClick:n,onDelete:i,icon:a,style:l,...s})})}var XS=cge;var JS=require("react");var Co=require("react/jsx-runtime"),xge=({zoomEffect:e=!1,imgURL:t,type:r,width:o,height:a,style:n={}})=>{let[i,l]=(0,JS.useState)(!1),[s,u]=(0,JS.useState)(!1),f=()=>{e&&u(!0)},d=()=>{u(!1)},p=({type:m})=>m.type==="filter"?(0,Co.jsx)(o5,{width:o,height:a,style:n}):(0,Co.jsx)(Ja,{width:o,height:a,style:n});return(0,Co.jsx)(Co.Fragment,{children:t&&t.length>0?(0,Co.jsx)("div",{style:{width:"100%",height:"100%",position:"relative"},children:i?(0,Co.jsx)(p,{type:r}):(0,Co.jsxs)(Co.Fragment,{children:[(0,Co.jsx)("img",{src:t[0],alt:"Design SnapShot",loading:"lazy",onClick:f,onError:()=>l(!0),style:{cursor:"pointer",width:"100%",height:"100%",objectFit:"cover"}}),(0,Co.jsx)(ma,{open:s,onClose:d,style:{backgroundColor:"rgba(0, 0, 0, 0.8)"},PaperProps:{style:{background:"transparent",boxShadow:"none",overflow:"hidden",maxWidth:"60vw"}},children:(0,Co.jsx)("img",{src:t[0],alt:"Zoomed Design SnapShot",style:{objectFit:"contain",maxWidth:"100%",maxHeight:"100%"}})})]})}):(0,Co.jsx)(p,{type:r})})},Eu=xge;var i3=require("react");var bW=G(require("js-yaml")),hge=async(e,t=!0,r)=>new Promise(o=>{let a=new Image;t&&!e.startsWith("http")?a.src=(r?r():"")+e:a.src=e,a.onload=()=>{o(!0)},a.onerror=()=>{o(!1)}}),gge=async(e,t,r)=>{let o=[];for(let a of e){let n=`${t}/${a.toLowerCase()}/${r}/${a.toLowerCase()}-color.svg`;await hge(n)&&o.push(a)}return o},yW=e=>{try{return bW.default.load(e)?.version||eC}catch(t){return console.error("Failed to parse pattern file to get version:",t),eC}},vW=async({technologies:e,basePath:t="",subBasePath:r="",setAvailableTechnologies:o})=>{let a=await gge(e,t,r);o(a)},eC="0.0.0",o3=e=>{switch(e.visibility){case"published":return e?.catalog_data?.published_version||eC;case"public":case"private":return yW(e.pattern_file);default:return yW(e.pattern_file)}};var Ke=require("@mui/material");var wW=(0,Ke.styled)("div")(()=>({width:"85px",height:"88px",overflow:"hidden",position:"absolute",top:"-3px",left:"-3px",zIndex:10})),EW=(0,Ke.styled)("div")(()=>({color:"#eee",fontSize:"0.875rem",lineHeight:"1.5",fontWeight:"600",borderBottom:"1px solid rgba(231, 239, 243, 0.40)"})),RW=(0,Ke.styled)("div")(()=>({color:"#eee",overflow:"hidden",fontSize:"14px",lineHeight:"24px",fontWeight:"400",marginTop:".8rem"})),OW=(0,Ke.styled)("div")(({catalogClassName:e,theme:t})=>({font:"bold 10px sans-serif",WebkitTransform:"rotate(-45deg)",textAlign:"center",transform:"rotate(-45deg)",position:"relative",padding:"4px 0",top:"15px",left:"-30px",width:"120px",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",backgroundColor:{community:I2.main,official:t.palette.background.cta?.default||"#EBC017",verified:t.palette.background.brand?.default||"#00B39F"}[e],color:e==="official"?t.palette.common.black:t.palette.common.white})),tC=(0,Ke.styled)("div")(({shouldFlip:e,isDetailed:t,outerStyles:r,theme:o})=>({position:"relative",borderRadius:"1rem",textAlign:"center",transformStyle:"preserve-3d",display:"block",perspective:"1000px",transition:"all .9s ease-out",...e&&{"&:hover":{cursor:"pointer","& .innerCard":{transform:"rotateY(180deg)"}}},...t&&{[o.breakpoints.down("lg")]:{height:"16.75rem"}},...r})),rC=(0,Ke.styled)("div")(({shouldFlip:e,isDetailed:t})=>({position:"relative",width:"100%",height:"100%",textAlign:"center",transition:"transform 0.6s",...e&&{transformOrigin:"50% 50%",transformStyle:"preserve-3d"},...t&&{boxShadow:"0 4px 8px 0 rgba(0,0,0,0.2)",borderRadius:"0.9375rem"}})),AW=(0,Ke.styled)("span")(({theme:e})=>({position:"absolute",top:"0",right:"0",minWidth:"3rem",padding:"0 0.75rem",fontSize:"0.875rem",textTransform:"capitalize",background:e.palette.background.brand?.default,color:e.palette.background.constant?.white,borderRadius:"0 1rem 0 2rem",zIndex:5})),PW=(0,Ke.styled)("p")(({theme:e})=>({fontSize:"1rem",textTransform:"capitalize",margin:"0rem",lineHeight:"1.5",textAlign:"center",color:e.palette.mode==="light"?Pn:ga,fontWeight:"600"})),_W=(0,Ke.styled)(Ke.Typography)(({theme:e,hasRibbon:t})=>({fontWeight:"bold",textTransform:"capitalize",color:e.palette.text.default,fontSize:"1.125rem",padding:"0rem 1rem",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"center",width:"100%",margin:t?"3.5rem 0 1.59rem 0":"2rem 0 1.59rem 0",fontFamily:"inherit",...t&&{paddingLeft:"1.5rem"}})),IW=(0,Ke.styled)("div")(({isDetailed:e,theme:t})=>({display:"flex",justifyContent:"space-around",fontSize:"0.2rem",color:t.palette.mode==="light"?"rgba(26, 26, 26, .8)":t.palette.text.default,padding:"0.9rem 0.1rem",background:t.palette.mode==="light"?"#E7EFF3":Pn,...e&&{position:"absolute",bottom:"0px"},...!e&&{marginTop:"1.2rem"},borderRadius:"0 0 0.9375rem 0.9375rem",width:"100%"})),kW=(0,Ke.styled)("div")(()=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.2rem",color:"rgba(26, 26, 26, .8)",margin:"0rem",padding:"0.1rem"})),a3=(0,Ke.styled)("div")(()=>({height:"max-content",display:"flex",marginTop:"-1rem",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start","@media (max-width:1200px)":{height:"max-content"}})),jit=(0,Ke.styled)("div")(({theme:e})=>({background:e.palette.background.surfaces,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.5rem",width:"100%",borderRadius:"0.5rem"})),Kit=(0,Ke.styled)("div")(({theme:e})=>({display:"inline-block",backgroundColor:e.palette.background.supplementary,color:e.palette.text.constant?.white,borderRadius:"4px",fontSize:"0.75rem",fontWeight:"bold",margin:"5px 0",padding:"2px 5px",maxWidth:"fit-content"})),MW=(0,Ke.styled)("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.75",color:e.palette.text.constant?.white,position:"absolute",bottom:"16px",left:"16px",borderRadius:"4px",background:e.palette.background.supplementary,justifyContent:"center"})),LW=(0,Ke.styled)("p")(({theme:e})=>({fontSize:"0.75rem",margin:"0",padding:"0.25rem .5rem",lineHeight:"1.5",textTransform:"lowercase",fontWeight:"600",borderRadius:"4.05px",color:e.palette.text.constant?.white})),$it=(0,Ke.styled)("div")(()=>({perspective:"1000px","&:hover .flipper":{transform:"rotateY(-180deg)"}})),Yit=(0,Ke.styled)("div")(()=>({transition:"0.6s",transformStyle:"preserve-3d",position:"relative"})),Tge=(0,Ke.styled)("div")(()=>({backfaceVisibility:"hidden",position:"absolute",top:0,left:0,width:"100%",height:"100%"})),Zit=(0,Ke.styled)(Tge)(()=>({zIndex:2,transform:"rotateY(0deg)"})),Qit=(0,Ke.styled)("div")(()=>({transform:"rotateY(-180deg)",color:"#fff",display:"inline-flex",flexDirection:"column",padding:"16px",height:"100%",width:"100%",position:"relative",bottom:0,left:0,backfaceVisibility:"hidden"})),Xit=(0,Ke.styled)("div")(({theme:e})=>({position:"absolute",background:`linear-gradient(to bottom right, black 40%, ${e.palette.background.brand?.default})`,width:"100%",top:0,left:0,display:"flex",flexDirection:"column",alignItems:"left",padding:"16px",boxShadow:"2px 2px 3px 0px black",borderRadius:"1rem"})),DW=(0,Ke.styled)("div")({height:"max-content",display:"flex",marginTop:"1.2rem",flexDirection:"row",padding:"0rem 1rem",justifyContent:"flex-start",alignItems:"center","@media (max-width:1200px)":{height:"max-content"}}),FW=(0,Ke.styled)("div")(()=>({display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",gap:"1rem",alignItems:"flex-start",background:"rgba(231, 239, 243, 0.40)",borderRadius:"0.25rem",padding:"0.5rem 1rem",alignSelf:"stretch"})),Jit=(0,Ke.styled)("div")({display:"flex",alignItems:"center",color:"#fff",margin:"20px 0"}),NW=(0,Ke.styled)("div")(({isCatalog:e})=>({boxShadow:"2px 2px 3px 0px rgba(26, 26, 26, 1)",position:"absolute",width:"100%",height:"100%",WebkitBackfaceVisibility:"hidden",borderRadius:"0.9375rem",backfaceVisibility:"hidden",color:"white",transform:"rotateY(180deg)",...e&&{background:"linear-gradient(335deg, rgba(0, 179, 159, 0.80) -13.6%, rgba(0, 0, 0, 0.68) 66.8%), radial-gradient(3970.04% 147.22% at 47.5% 100%, #000 0%, #395357 100%)"},...!e&&{background:"linear-gradient(250deg, #477e96 0%, #00b39f 35%, rgb(60, 73, 79) 100%)"}})),n3=e=>{let t=`linear-gradient(to left bottom, ${f1}, ${s1},white, white, white, white, white, white, white, white, ${f1}, ${s1})`,r=`linear-gradient(to right top, ${d1}, ${Me[30]}, ${Me[20]}, ${Me[10]}, ${Me[10]}, ${Me[10]}, ${Me[10]}, ${Me[10]}, ${Me[10]}, ${ne[20]}, ${ne[10]}, black)`;return e?t:r},oC=(0,Ke.styled)("div")(({shouldFlip:e,isDetailed:t,theme:r})=>{let o=r.palette.mode==="light",a=n3(o),n=`2px 2px 3px 0px ${r.palette.background.brand?.default}`;return{position:"relative",zIndex:1,...e&&{position:"absolute",boxShadow:n,background:a},...t&&{boxShadow:n,background:a},width:"100%",height:"100%",WebkitBackfaceVisibility:"hidden",borderRadius:"0.9375rem",backfaceVisibility:"hidden"}}),BW=(0,Ke.styled)("div")(()=>({fontSize:"0.875rem",textTransform:"capitalize",color:"#eee",margin:"0rem",padding:"0.1rem",fontWeight:"400",lineHeight:"1.5"})),HW=(0,Ke.styled)("p")(()=>({fontSize:"0.876rem",margin:"0rem",lineHeight:"1.5",fontWeight:"400",color:"#eee"})),VW=(0,Ke.styled)("div")(()=>({height:"max-content",display:"flex",margin:"0",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start",fontWeight:"400",textAlign:"right",color:"#E7EFF3",textTransform:"capitalize","@media (max-width:1200px)":{height:"max-content"}})),UW=(0,Ke.styled)("div")(({theme:e})=>{let t=e.palette.mode==="light",r=n3(t),o=`2px 2px 3px 0px ${e.palette.background.brand?.default}`;return{background:r,boxShadow:o,textAlign:"center",borderRadius:"1rem",width:"15rem",height:"18rem",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",[e.breakpoints.down("lg")]:{height:"18.75rem"}}});var we=require("react/jsx-runtime"),mlt=(0,y.styled)("a")(()=>({textDecoration:"none"}));var Sge=({catalogClassName:e})=>e?(0,we.jsx)(wW,{children:(0,we.jsx)(OW,{catalogClassName:e,children:e})}):(0,we.jsx)(we.Fragment,{}),Cge=({pattern:e,patternType:t,cardHeight:r="16.5rem",cardWidth:o="15rem",cardStyles:a,shouldFlip:n=!0,isDetailed:i=!0,cardTechnologies:l=!0,avatarUrl:s,UserName:u,children:f,basePath:d,subBasePath:p,getHostUrl:m,onCardClick:x})=>{let h={height:r,width:o,...a},g=(0,y.useTheme)(),T=e.catalog_data?.compatibility||[],E=5,[R,k]=(0,i3.useState)([]),D=o3(e);return(0,i3.useEffect)(()=>{vW({technologies:T,basePath:d,subBasePath:p,setAvailableTechnologies:k})},[]),n?(0,we.jsx)(tC,{shouldFlip:n,isDetailed:i,outerStyles:h,onClick:x,children:(0,we.jsxs)(rC,{shouldFlip:n,className:"innerCard",children:[(0,we.jsxs)(oC,{shouldFlip:n,isDetailed:i,children:[i&&(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)(Sge,{catalogClassName:e?.catalog_data?.content_class??""}),(0,we.jsx)(AW,{children:t}),(0,we.jsx)(_W,{hasRibbon:!!e?.catalog_data?.content_class,children:e.name})]}),(0,we.jsx)(a3,{children:(0,we.jsx)("div",{style:{background:g.palette.mode==="light"?"rgba(231, 239, 243, 0.4)":"transparent",display:"flex",alignItems:"center",justifyContent:"center",padding:"0.5rem",width:"100%",borderRadius:"0.5rem"},children:f})}),i&&(0,we.jsx)(IW,{isDetailed:i,children:[{Icon:Ca,count:e.download_count},{Icon:od,count:e.clone_count},{Icon:Td,count:e.view_count},{Icon:dd,count:e.deployment_count},{Icon:Ln,count:e.share_count}].map(({Icon:C,count:v},P)=>(0,we.jsxs)(kW,{children:[(0,we.jsx)(C,{width:18,height:18,fill:g.palette.mode==="light"?Pn:ga}),(0,we.jsx)(PW,{children:v})]},P))})]}),n&&(0,we.jsxs)(NW,{isCatalog:!0,children:[(0,we.jsxs)(DW,{children:[(0,we.jsx)(zt,{alt:"Design Author",src:s,sx:{width:"32px",height:"32px",color:"#293B43"}}),(0,we.jsx)(VW,{children:u})]}),(0,we.jsx)(a3,{style:{marginTop:"0.7rem",gap:"5px"},children:l&&(0,we.jsxs)(FW,{children:[(0,we.jsx)(EW,{children:"Technologies"}),(0,we.jsx)(he,{container:!0,style:{gap:"4px",alignItems:"flex-start",flexWrap:"nowrap"},children:T.length<1||R.length<1?(0,we.jsx)(RW,{children:"No technologies"}):(0,we.jsxs)(we.Fragment,{children:[R.slice(0,E).map((C,v)=>{let P=(m?m():"")+`${d}/${C.toLowerCase()}/${p}/${C.toLowerCase()}-color.svg`;return(0,we.jsx)(he,{children:(0,we.jsx)(ge,{title:C.toLowerCase(),children:(0,we.jsx)("img",{height:"24px",width:"24px",alt:C.toLowerCase(),src:P})},v)},v)}),R.length>E&&(0,we.jsxs)(he,{sx:{padding:"0 8px 0 4px",borderRadius:"16px",border:"1px solid #C9DBE3",background:"#E7EFF3",color:"#3C494E",fontSize:"14px",lineHeight:"1.5",fontWeight:"600"},children:["+",R.length-E]})]})})]})}),i&&(0,we.jsx)(a3,{style:{marginTop:"20px"},children:(0,we.jsx)(he,{container:!0,style:{justifyContent:"space-between",alignItems:"center"},children:(0,we.jsxs)(he,{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,we.jsxs)("div",{style:{display:"flex",flexDirection:"row",gap:"0.2rem",alignItems:"center"},children:[(0,we.jsx)(yF,{width:18,height:18}),(0,we.jsx)(HW,{children:"Updated At"})]}),(0,we.jsxs)(BW,{children:[" ",new Date(e.updated_at.toString().slice(0,10)).toLocaleDateString("en-US",{day:"numeric",month:"long",year:"numeric"})]})]})})}),D&&(0,we.jsx)(MW,{children:(0,we.jsxs)(LW,{children:["v",D]})})]})]})}):(0,we.jsx)(tC,{shouldFlip:n,isDetailed:i,outerStyles:h,children:(0,we.jsx)(rC,{shouldFlip:n,className:"innerCard",children:(0,we.jsx)(oC,{shouldFlip:n,isDetailed:i,children:f})})})},Ru=Cge;var _m=require("react/jsx-runtime"),yge=()=>{let e=(0,y.useTheme)();return(0,_m.jsxs)(UW,{children:[(0,_m.jsx)($2,{fill:e.palette.text.default,width:"100px",height:"100px"}),(0,_m.jsx)("h3",{style:{color:e.palette.text.default},children:"No match found"})]})},aC=yge;var u3=G(require("react"));var WW=require("react/jsx-runtime");function bge({children:e,open:t,anchorEl:r,placement:o="bottom-end",...a}){return(0,WW.jsx)(zf,{open:t,anchorEl:r,placement:o,...a,children:e})}var Xd=bge;var qW=G(require("mui-datatables")),Jd=G(require("react"));var nC=require("react/jsx-runtime"),vge=({width:e=V,height:t=U,...r})=>(0,nC.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:e,height:t,fill:r.fill||"currentColor",...r,children:(0,nC.jsx)("path",{d:"M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z"})}),iC=vge;var wge=({kind:e,model:t,color:r})=>!e||!t||!r?null:`/ui/public/static/img/meshmodels/${t}/${r}/${e.toLowerCase()}-${r}.svg`;var sC=G(require("moment"));var lC=require("react/jsx-runtime"),Wi=e=>(0,sC.default)(e).fromNow(),ds=e=>(0,sC.default)(e).format("ddd, MMM D, YYYY h:mm A"),ps=e=>{let t={year:"numeric",month:"short",day:"numeric"};return new Date(e).toLocaleDateString("en-US",t)},l3=({date:e})=>(0,lC.jsx)(ge,{title:ds(e),disableInteractive:!0,children:(0,lC.jsx)("div",{children:Wi(e)})});var Mt=require("react/jsx-runtime"),Bo=(0,y.styled)("div",{shouldForwardProp:e=>e!=="disabled"})(({disabled:e=!1})=>({width:"fit-content",cursor:e?"not-allowed":"pointer",opacity:e?"0.5":"1",display:"flex","& svg":{cursor:e?"not-allowed":"pointer"}})),ep=({actionsList:e})=>{let[t,r]=Jd.default.useState(null),[o,a]=Jd.default.useState(!1),n=(0,y.useTheme)(),i=u=>{r(u.currentTarget)},l=()=>{r(null),a(!1)},s=u=>{u.type==="share-social"?a(!o):(u.onClick&&u.onClick(),l())};return(0,Mt.jsxs)(Mt.Fragment,{children:[(0,Mt.jsx)(Wt,{title:"View Actions",onClick:i,icon:(0,Mt.jsx)(iC,{fill:n.palette.icon.default}),arrow:!0}),(0,Mt.jsx)(Fl,{id:"basic-menu",anchorEl:t,open:!!t,onClose:l,sx:{"& .MuiPaper-root":{backgroundColor:n.palette.background.card}},children:e&&e.map((u,f)=>u.type==="share-social"?[(0,Mt.jsxs)(It,{sx:{width:"-webkit-fill-available"},onClick:()=>s(u),disabled:u.disabled,children:[(0,Mt.jsx)(Za,{children:(0,Mt.jsx)(Ln,{width:24,height:24,fill:n.palette.text.primary})}),(0,Mt.jsx)(Xt,{sx:{color:n.palette.text.primary},children:u.title})]},`${f}-menuitem`),(0,Mt.jsx)(pa,{variant:"submenu",in:o,unmountOnExit:!0,children:u.customComponent},`${f}-collapse`)]:(0,Mt.jsx)(Bo,{disabled:u.disabled,children:(0,Mt.jsxs)(It,{sx:{width:"-webkit-fill-available"},onClick:()=>s(u),disabled:u.disabled,children:[(0,Mt.jsx)(Za,{children:u.icon}),(0,Mt.jsx)(Xt,{sx:{color:n.palette.text.primary},children:u.title})]})},f))})]})},Ege=({data:e,columns:t,options:r={},tableCols:o,updateCols:a,columnVisibility:n,rowsPerPageOptions:i=[10,25,50,100],...l})=>{let s={...r,print:!1,download:!1,search:!1,filter:!1,viewColumns:!1,rowsPerPageOptions:i,onViewColumnsChange:(d,p)=>{switch(p){case"add":{let m=t.find(x=>x.name===d);m&&m.options&&(m.options.display=!0,a&&a([...t]));break}case"remove":{let m=t.find(x=>x.name===d);m&&m.options&&(m.options.display=!1,a&&a([...t]));break}}}},u=(0,Jd.useCallback)(()=>{t?.forEach(d=>{typeof d=="object"&&d!==null&&(d.options||(d.options={}),d.options.display=n&&n[d.name],["updated_at","created_at","deleted_at","last_login_time","joined_at","last_run","next_run"].includes(d.name)&&(d.options.customBodyRender=p=>{if(p==="NA"||p===null||p===void 0)return(0,Mt.jsx)(Mt.Fragment,{children:p});if(typeof p=="object"&&"Valid"in p){let m=p;return m.Valid&&m.Time?(0,Mt.jsx)(l3,{date:m.Time}):(0,Mt.jsx)(Mt.Fragment,{children:"NA"})}else return typeof p=="string"?(0,Mt.jsx)(l3,{date:p}):(0,Mt.jsx)(Mt.Fragment,{children:p})}))}),a&&a([...t])},[n,a]);return Jd.default.useEffect(()=>{u()},[u]),(0,Mt.jsx)(qW.default,{columns:o??[],data:e||[],title:void 0,components:{ExpandButton:()=>"",Checkbox:Qr},options:{...s,elevation:0,enableNestedDataAccess:"."},...l})},Ho=Ege;var s3=require("react/jsx-runtime");function Rge({children:e,title:t,onClick:r,icon:o,style:a,arrow:n=!0,disabled:i=!1,iconType:l,id:s,placement:u}){let f=(0,y.useTheme)();return(0,s3.jsx)(ge,{title:t,arrow:n,placement:u,id:s,children:(0,s3.jsx)(Bo,{disabled:i,children:(0,s3.jsx)(Xe,{disabled:i,onClick:r,sx:{"&:hover":{"& svg":{fill:l==="delete"?f.palette.error.main:f.palette.primary.brand?.default}},...a},children:o||e})})})}var Wt=Rge;var Qo=require("react/jsx-runtime");function uC({columns:e,id:t,customToolsProps:r,style:o}){let[a,n]=u3.default.useState(!1),[i,l]=u3.default.useState(null),s=(0,y.useTheme)(),u=p=>{if(p.stopPropagation(),n(m=>!m),i){l(null);return}l(p.currentTarget)},f=()=>{l(null),n(!1)},d=(p,m)=>{p.stopPropagation(),r.setColumnVisibility(x=>({...x,[m]:p.target.checked}))};return(0,Qo.jsx)(u3.default.Fragment,{children:(0,Qo.jsxs)("div",{id:t,children:[(0,Qo.jsx)(Wt,{title:"View Columns",onClick:u,icon:(0,Qo.jsx)(V2,{fill:s.palette.icon.default}),arrow:!0}),(0,Qo.jsx)(Xd,{style:{...o,zIndex:1350},open:!!i,anchorEl:i,placement:"bottom-end",modifiers:[{name:"flip",options:{enabled:!1}},{name:"preventOverflow",options:{enabled:!0,boundariesElement:"scrollParent"}}],children:(0,Qo.jsx)(K,{children:(0,Qo.jsx)(On,{onClickAway:f,children:(0,Qo.jsx)("div",{children:(0,Qo.jsx)(Or,{sx:{display:"flex",flexDirection:"column",padding:"1rem",boxShadow:a?"0px 4px 8px rgba(0, 0, 0, 0.2)":"none",background:s.palette.background.surfaces},children:e.map(p=>(0,Qo.jsx)(Ll,{control:(0,Qo.jsx)(Qr,{checked:r.columnVisibility[p.name],onChange:m=>d(m,p.name)}),label:p.label},p.name))})})})})})]})})}var ln=uC;var GW=require("react");var Gn=require("react/jsx-runtime"),Oge=(0,y.styled)("figure")(({align:e})=>({margin:"1rem 0",textAlign:e,width:"100%"})),Age=(0,y.styled)("figcaption")(({align:e})=>({fontSize:"0.9rem",color:"#666",marginTop:"0.5rem",textAlign:e})),Pge=({src:e,alt:t,caption:r,align:o="left",...a})=>{let[n,i]=(0,GW.useState)(!1),l=()=>{i(!0)},s=()=>{i(!1)};return(0,Gn.jsxs)(Gn.Fragment,{children:[(0,Gn.jsxs)(Oge,{align:o,children:[(0,Gn.jsx)("img",{src:e,alt:t||r||"",loading:"lazy",onClick:l,...a,style:{cursor:"pointer",maxWidth:"100%",height:"auto",boxShadow:"rgba(149, 157, 165, 0.2) 0px 8px 24px",borderRadius:"15px",width:"50%"}}),r&&(0,Gn.jsx)(Age,{align:o,children:r})]}),(0,Gn.jsx)(ma,{open:n,onClose:s,style:{backgroundColor:"rgba(0, 0, 0, 0.8)"},PaperProps:{style:{background:"transparent",boxShadow:"none",overflow:"auto",maxWidth:"100%"}},children:(0,Gn.jsx)("img",{src:e,alt:t||r||"",onClick:s,style:{objectFit:"contain",maxWidth:"100%",maxHeight:"100%"}})})]})},fC=Pge;var QW=require("@mui/material");var zW=require("react/jsx-runtime");function _ge({children:e,...t}){return(0,zW.jsx)(Vf,{...t,children:e})}var Im=_ge;var jW=require("react/jsx-runtime");function Ige({children:e,...t}){return(0,jW.jsx)(Il,{...t,children:e})}var km=Ige;var Mm=require("@mui/material");var KW=(0,Mm.styled)("div")(({theme:e})=>{let t=e.palette.mode==="light"?ed:Sr,r=e.palette.mode==="light"?FT:JM;return{display:"flex",justifyContent:"space-between",padding:"1rem",boxShadow:"inset 0px -1px 3px 0px rgba(0,0,0,0.2)",background:`linear-gradient(90deg, ${t}, ${r})`,filter:e.palette.mode==="light"?`progid:DXImageTransform.Microsoft.gradient(startColorstr='${ed}',endColorstr='${FT}',GradientType=1)`:`progid:DXImageTransform.Microsoft.gradient(startColorstr='${p1}',GradientType=1)`}}),$W=(0,Mm.styled)("div")(()=>({zIndex:"100",borderRadius:"5px"})),YW=(0,Mm.styled)("div")(({theme:e})=>({padding:"1rem 1.5rem",display:"flex",justifyContent:"flex-end",backgroundColor:e.palette.mode==="light"?ed:p1,boxShadow:"inset 0px 3px 5px 0px rgba(0,0,0,0.25)"})),ZW=(0,Mm.styled)("div")(({theme:e})=>({padding:"2rem 1rem",backgroundColor:e.palette.mode==="light"?Tt:Jf}));var Kr=require("react/jsx-runtime");function kge({open:e,onClose:t,title:r,leftHeaderIcon:o,helpText:a,helpArea:n,actions:i,hideActions:l=!1,content:s,maxWidth:u="xs",...f}){return(0,Kr.jsx)(ma,{sx:{"& .MuiDialog-paper":{borderRadius:"10px"}},open:e,maxWidth:u,onClose:t,slots:{backdrop:QW.Backdrop},slotProps:{backdrop:{timeout:500}},...f,children:(0,Kr.jsxs)($W,{children:[(0,Kr.jsxs)(KW,{children:[o&&(0,Kr.jsx)("div",{style:{display:"flex",alignItems:"center"},children:o}),r&&(0,Kr.jsx)(Kr.Fragment,{children:(0,Kr.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,Kr.jsx)(Ml,{children:r})})}),(0,Kr.jsx)("div",{style:{display:"flex",alignItems:"center"},children:a&&(0,Kr.jsx)("div",{children:n})})]}),(0,Kr.jsx)(km,{children:(0,Kr.jsx)(ZW,{children:s})}),!l&&(0,Kr.jsx)(Im,{children:(0,Kr.jsx)(YW,{children:i})})]})})}var dC=kge;var pC=require("react/jsx-runtime");function Mge({children:e,style:t,...r}){return(0,pC.jsx)(Ml,{sx:t,...r,children:(0,pC.jsx)(z,{sx:{flexGrow:1,fontSize:"1.25rem",textAlign:"center"},variant:"h6",children:e})})}var Lm=Mge;var ms=require("react/jsx-runtime");function Lge({icon:e,message:t,pointerLabel:r,poiner:o=!1}){return(0,ms.jsxs)("div",{style:{textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",minHeight:"50vh"},children:[o&&(0,ms.jsxs)(he,{style:{display:"flex",width:"100%",padding:"0 40px"},children:[(0,ms.jsx)(r5,{}),(0,ms.jsx)(z,{sx:{fontSize:24,color:"#808080",px:5,py:2,lineHeight:1.5,letterSpacing:"0.15px",display:"flex",alignItems:"flex-end",marginBottom:"-2rem"},children:r})]}),(0,ms.jsxs)(he,{style:{marginTop:"120px"},children:[e,(0,ms.jsx)(z,{sx:{fontSize:"1.5rem",color:"#808080",px:5,py:2,lineHeight:1},children:t})]})]})}var mC=Lge;var f3=require("@mui/material");var sn=require("react"),Dge=(0,sn.createContext)(null),cC={didCatch:!1,error:null},Dm=class extends sn.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=cC}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){let{error:t}=this.state;if(t!==null){for(var r,o,a=arguments.length,n=new Array(a),i=0;i<a;i++)n[i]=arguments[i];(r=(o=this.props).onReset)===null||r===void 0||r.call(o,{args:n,reason:"imperative-api"}),this.setState(cC)}}componentDidCatch(t,r){var o,a;(o=(a=this.props).onError)===null||o===void 0||o.call(a,t,r)}componentDidUpdate(t,r){let{didCatch:o}=this.state,{resetKeys:a}=this.props;if(o&&r.error!==null&&Fge(t.resetKeys,a)){var n,i;(n=(i=this.props).onReset)===null||n===void 0||n.call(i,{next:a,prev:t.resetKeys,reason:"keys"}),this.setState(cC)}}render(){let{children:t,fallbackRender:r,FallbackComponent:o,fallback:a}=this.props,{didCatch:n,error:i}=this.state,l=t;if(n){let s={error:i,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")l=r(s);else if(o)l=(0,sn.createElement)(o,s);else if(a!==void 0)l=a;else throw i}return(0,sn.createElement)(Dge.Provider,{value:{didCatch:n,error:i,resetErrorBoundary:this.resetErrorBoundary}},l)}};function Fge(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,o)=>!Object.is(r,t[o]))}var nr=require("react/jsx-runtime"),Nge=(0,f3.styled)(z)(({theme:e})=>({color:e.palette.text.default,fontWeight:"normal",marginTop:"2px",marginBottom:"2px",fontSize:"1.15rem"})),XW=(0,f3.styled)(Oo)(({theme:e})=>({color:e.palette.border.brand,textDecoration:"underline",cursor:"pointer"})),Bge=(0,f3.styled)("div")(({theme:e})=>({display:"flex",flexDirection:"column",backgroundColor:e.palette.background.code,color:e.palette.text.tertiary,padding:".85rem",borderRadius:".2rem",marginBlock:".5rem"}));function d3({error:e,children:t,showPackageInfo:r,version:o}){return(0,nr.jsxs)("div",{role:"alert",children:[(0,nr.jsx)("h2",{children:"Uh-oh!\u{1F614} Please pardon the mesh."}),(0,nr.jsxs)(Bge,{children:[(0,nr.jsxs)("code",{children:[(0,nr.jsx)("strong",{children:"Error: "}),e.message]}),(0,nr.jsx)("br",{}),r&&(0,nr.jsxs)(nr.Fragment,{children:[(0,nr.jsx)("strong",{children:"Version:"})," ",o]})]}),(0,nr.jsxs)(Nge,{children:["We apologize for the inconvenience. The issue may be on our end. If troubleshooting doesn't work, please check out our support channels"," ",(0,nr.jsx)(XW,{href:"https://discuss.layer5.io/",target:"_blank",rel:"noopener noreferrer",children:"Discuss Forum"})," "," or ",(0,nr.jsx)(XW,{href:"https://slack.layer5.io/",target:"_blank",rel:"noopener noreferrer",children:"Slack"})]}),(0,nr.jsx)(K,{children:t})]})}var JW=(e,t)=>{let r=window.location.href,o=new Date().toLocaleString();console.log("Error Caught Inside Boundary --reportError",e,"Info",t,"Page URL:",r,"Timestamp:",o)},no=({customFallback:e,children:t,onErrorCaught:r})=>{let o=window.location.href,a=new Date().toLocaleString();return(0,nr.jsx)(Dm,{FallbackComponent:e||(i=>(0,nr.jsx)(d3,{...i,pageUrl:o,timestamp:a})),onError:(i,l)=>{r?.(i.message),JW(i,l)},children:t})},xC=({Component:e,errorHandlingProps:t={children:null}})=>(0,nr.jsx)(no,{...t,children:(0,nr.jsx)(e,{})}),hC=({Component:e})=>(0,nr.jsx)(Dm,{FallbackComponent:()=>null,onError:JW,children:(0,nr.jsx)(e,{})});var p3=G(require("@mui/material/Typography")),op=require("react");var Xo=require("@mui/material"),Ou=require("react");var eq=require("react");var qi=require("react/jsx-runtime");function Hge({content:e,fontSize:t,fontWeight:r=400,variant:o="standard",bgColor:a="#141414",icon:n=(0,qi.jsx)(z2,{fontSize:"small"}),...i}){let[l,s]=(0,eq.useState)(null);return(0,qi.jsxs)(qi.Fragment,{children:[(0,qi.jsx)(Xe,{size:"small",onClick:p=>{s(p.currentTarget)},sx:{color:"inherit",padding:"2px",verticalAlign:"middle"},children:n}),(0,qi.jsx)(Gf,{open:!!l,anchorEl:l,onClose:()=>{s(null)},disablePortal:!0,container:l?.ownerDocument?.body,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},PaperProps:{sx:{background:a,zIndex:1501,opacity:"1",color:Tt,maxWidth:"500px",fontSize:t||(o==="standard"?"1rem":"0.75rem"),fontWeight:r,borderRadius:"0.5rem",padding:o==="standard"?"0.9rem":"0.5rem 0.75rem",boxShadow:"rgba(0, 0, 0, 0.6) 0px 4px 10px, rgba(0, 0, 0, 0.5) 0px 2px 4px"}},...i,children:typeof e=="string"?(0,qi.jsx)(Qd,{content:e}):e})]})}var gC=Hge;var $r=require("react/jsx-runtime"),Au=(0,Xo.styled)(Xe)`
60
60
  && {
61
61
  & svg {
62
62
  fill: #fff;
package/dist/index.mjs CHANGED
@@ -56,7 +56,7 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var se=le(y,R,M,F,q+"."+
56
56
  `)&&u.type==="html"&&(n[n.length-1]=n[n.length-1].replace(/(\r?\n|\r)$/," "),l=" ",s=t.createTracker(r),s.move(n.join(""))),n.push(s.move(t.handle(u,e,t,{...s.current(),before:l,after:f}))),l=n[n.length-1].slice(-1)}return o.pop(),n.join("")}var aTe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Yk.peek=lTe;var k8={canContainEols:["delete"],enter:{strikethrough:nTe},exit:{strikethrough:iTe}},M8={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:aTe}],handlers:{delete:Yk}};function nTe(e){this.enter({type:"delete",children:[]},e)}function iTe(e){this.exit(e)}function Yk(e,t,r,o){let a=gs(o),n=r.enter("strikethrough"),i=a.move("~~");return i+=i2(e,r,{...a.current(),before:i,after:"~"}),i+=a.move("~~"),n(),i}function lTe(){return"~"}L8.peek=sTe;function L8(e,t,r){let o=e.value||"",a="`",n=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(o);)a+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++n<r.unsafe.length;){let i=r.unsafe[n],l=n2(i),s;if(i.atBreak)for(;s=l.exec(o);){let u=s.index;o.charCodeAt(u)===10&&o.charCodeAt(u-1)===13&&u--,o=o.slice(0,u)+" "+o.slice(s.index+1)}}return a+o+a}function sTe(){return"`"}function uTe(e){return e.length}function Qk(e,t){let r=t||{},o=(r.align||[]).concat(),a=r.stringLength||uTe,n=[],i=[],l=[],s=[],u=0,f=-1;for(;++f<e.length;){let h=[],g=[],T=-1;for(e[f].length>u&&(u=e[f].length);++T<e[f].length;){let w=fTe(e[f][T]);if(r.alignDelimiters!==!1){let E=a(w);g[T]=E,(s[T]===void 0||E>s[T])&&(s[T]=E)}h.push(w)}i[f]=h,l[f]=g}let d=-1;if(typeof o=="object"&&"length"in o)for(;++d<u;)n[d]=Zk(o[d]);else{let h=Zk(o);for(;++d<u;)n[d]=h}d=-1;let p=[],m=[];for(;++d<u;){let h=n[d],g="",T="";h===99?(g=":",T=":"):h===108?g=":":h===114&&(T=":");let w=r.alignDelimiters===!1?1:Math.max(1,s[d]-g.length-T.length),E=g+"-".repeat(w)+T;r.alignDelimiters!==!1&&(w=g.length+w+T.length,w>s[d]&&(s[d]=w),m[d]=w),p[d]=E}i.splice(1,0,p),l.splice(1,0,m),f=-1;let x=[];for(;++f<i.length;){let h=i[f],g=l[f];d=-1;let T=[];for(;++d<u;){let w=h[d]||"",E="",I="";if(r.alignDelimiters!==!1){let D=s[d]-(g[d]||0),C=n[d];C===114?E=" ".repeat(D):C===99?D%2?(E=" ".repeat(D/2+.5),I=" ".repeat(D/2-.5)):(E=" ".repeat(D/2),I=E):I=" ".repeat(D)}r.delimiterStart!==!1&&!d&&T.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&w==="")&&(r.delimiterStart!==!1||d)&&T.push(" "),r.alignDelimiters!==!1&&T.push(E),T.push(w),r.alignDelimiters!==!1&&T.push(I),r.padding!==!1&&T.push(" "),(r.delimiterEnd!==!1||d!==u-1)&&T.push("|")}x.push(r.delimiterEnd===!1?T.join("").replace(/ +$/,""):T.join(""))}return x.join(`
57
57
  `)}function fTe(e){return e==null?"":String(e)}function Zk(e){let t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var F8={enter:{table:dTe,tableData:Xk,tableHeader:Xk,tableRow:mTe},exit:{codeText:cTe,table:pTe,tableData:D8,tableHeader:D8,tableRow:D8}};function dTe(e){let t=e._align;this.enter({type:"table",align:t.map(r=>r==="none"?null:r),children:[]},e),this.setData("inTable",!0)}function pTe(e){this.exit(e),this.setData("inTable")}function mTe(e){this.enter({type:"tableRow",children:[]},e)}function D8(e){this.exit(e)}function Xk(e){this.enter({type:"tableCell",children:[]},e)}function cTe(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,xTe));let r=this.stack[this.stack.length-1];r.value=t,this.exit(e)}function xTe(e,t){return t==="|"?t:e}function N8(e){let t=e||{},r=t.tableCellPadding,o=t.tablePipeAlign,a=t.stringLength,n=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
58
58
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:i,tableRow:l,tableCell:s,inlineCode:p}};function i(m,x,h,g){return u(f(m,h,g),m.align)}function l(m,x,h,g){let T=d(m,h,g),w=u([T]);return w.slice(0,w.indexOf(`
59
- `))}function s(m,x,h,g){let T=h.enter("tableCell"),w=h.enter("phrasing"),E=i2(m,h,{...g,before:n,after:n});return w(),T(),E}function u(m,x){return Qk(m,{align:x,alignDelimiters:o,padding:r,stringLength:a})}function f(m,x,h){let g=m.children,T=-1,w=[],E=x.enter("table");for(;++T<g.length;)w[T]=d(g[T],x,h);return E(),w}function d(m,x,h){let g=m.children,T=-1,w=[],E=x.enter("tableRow");for(;++T<g.length;)w[T]=s(g[T],m,x,h);return E(),w}function p(m,x,h){let g=L8(m,x,h);return h.stack.includes("tableCell")&&(g=g.replace(/\|/g,"\\$&")),g}}function Jk(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function eM(e){let t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function tM(e,t,r,o){let a=eM(r),n=r.bulletCurrent||Jk(r);t&&t.type==="list"&&t.ordered&&(n=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+n);let i=n.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4);let l=r.createTracker(o);l.move(n+" ".repeat(i-n.length)),l.shift(i);let s=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,l.current()),f);return s(),u;function f(d,p,m){return p?(m?"":" ".repeat(i))+d:(m?n:n+" ".repeat(i-n.length))+d}}var B8={exit:{taskListCheckValueChecked:rM,taskListCheckValueUnchecked:rM,paragraph:hTe}},H8={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:gTe}};function rM(e){let t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function hTe(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let r=this.stack[this.stack.length-1],o=r.children[0];if(o&&o.type==="text"){let a=t.children,n=-1,i;for(;++n<a.length;){let l=a[n];if(l.type==="paragraph"){i=l;break}}i===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():r.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function gTe(e,t,r,o){let a=e.children[0],n=typeof e.checked=="boolean"&&a&&a.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",l=gs(o);n&&l.move(i);let s=tM(e,t,r,{...o,...l.current()});return n&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(f){return f+i}}function V8(){return[R8,_8(),k8,F8,B8]}function U8(e){return{extensions:[O8,I8(),M8,N8(e),H8]}}function Op(e={}){let t=this.data();r("micromarkExtensions",Hk(e)),r("fromMarkdownExtensions",V8()),r("toMarkdownExtensions",U8(e));function r(o,a){(t[o]?t[o]:t[o]=[]).push(a)}}import{styled as br}from"@mui/material";var l2=br("a")(({theme:e})=>({color:e.palette.background.brand?.default,textDecoration:"none","&:hover":{textDecoration:"underline"},cursor:"pointer",fontFamily:"inherit"})),oM=br("a")(()=>({textDecoration:"none","&:hover":{textDecoration:"underline"},cursor:"pointer"})),aM=br("p")(({theme:e})=>({color:e.palette.text.default,marginBlock:"0px",...e.typography.textB1Regular,fontFamily:"inherit"})),nM=br("p")(({theme:e})=>({color:e.palette.text.constant?.white||Kw.inverse,marginBlock:"0px",fontFamily:"inherit"})),W8=br("h1")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),q8=br("h2")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),G8=br("h3")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),z8=br("h4")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),j8=br("h5")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),K8=br("h6")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),$8=br("blockquote")(({theme:e})=>({color:e.palette.text.default,borderLeft:`2px solid ${e.palette.text.brand}`,backgroundColor:e.palette.background.tertiary})),Y8=br("ul")(({theme:e})=>({color:e.palette.text.default})),Z8=br("li")(({theme:e})=>({color:e.palette.text.default,...e.typography.textB1Regular,fontFamily:"inherit"})),Q8=br("th")(({theme:e})=>({color:e.palette.text.default,...e.typography.textH3Medium,marginBlock:"0px",fontFamily:"inherit"})),X8=br("td")(({theme:e})=>({color:e.palette.text.default,marginBlock:"0px",...e.typography.textB1Regular,fontFamily:"inherit"})),iM=br("pre")(({theme:e})=>({background:e.palette.background.code,whiteSpace:"pre-line",fontFamily:"inherit"})),lM=br("code")(({theme:e})=>({background:e.palette.background.code,whiteSpace:"pre-line",padding:"1.5px",paddingInline:"5px",fontFamily:"inherit",borderRadius:3}));import{jsx as Be}from"react/jsx-runtime";var ff=({content:e})=>Be(Zu,{remarkPlugins:[Op],rehypePlugins:[p8],components:{p:({...t})=>Be(aM,{children:t.children}),a:({...t})=>Be(l2,{onClick:r=>{r.preventDefault(),window.open(t.href,"_blank")},href:t.href,children:t.children}),h1:({...t})=>Be(W8,{children:t.children}),h2:({...t})=>Be(q8,{children:t.children}),h3:({...t})=>Be(G8,{children:t.children}),h4:({...t})=>Be(z8,{children:t.children}),h5:({...t})=>Be(j8,{children:t.children}),h6:({...t})=>Be(K8,{children:t.children}),blockquote:({...t})=>Be($8,{children:t.children}),ul:({...t})=>Be(Y8,{children:t.children}),li:({...t})=>Be(Z8,{children:t.children}),th:({...t})=>Be(Q8,{children:t.children}),td:({...t})=>Be(X8,{children:t.children}),pre:({...t})=>Be(iM,{children:t.children}),code:({...t})=>Be(lM,{children:t.children})},children:e}),df=({content:e})=>Be(Zu,{remarkPlugins:[Op],components:{p:({...r})=>Be(nM,{children:r.children}),a:({...r})=>Be(l2,{onClick:o=>{window.open(r.href,"_blank"),o.stopPropagation()},as:"a",children:r.children}),h1:({...r})=>Be(W8,{children:r.children}),h2:({...r})=>Be(q8,{children:r.children}),h3:({...r})=>Be(G8,{children:r.children}),h4:({...r})=>Be(z8,{children:r.children}),h5:({...r})=>Be(j8,{children:r.children}),h6:({...r})=>Be(K8,{children:r.children}),blockquote:({...r})=>Be($8,{children:r.children}),ul:({...r})=>Be(Y8,{children:r.children}),li:({...r})=>Be(Z8,{children:r.children}),th:({...r})=>Be(Q8,{children:r.children}),td:({...r})=>Be(X8,{children:r.children})},children:(r=>{if(!r)return r;try{return JSON.parse(`"${r}"`)}catch{return r}})(e)}),TTe=({content:e})=>Be(Zu,{remarkPlugins:[Op],components:{a:({...t})=>Be(oM,{onClick:r=>{window.open(t.href,"_blank"),r.stopPropagation()},as:"a",children:t.children})},children:e});import{jsx as sM}from"react/jsx-runtime";function CTe({title:e,onClick:t,placement:r,children:o,fontSize:a,fontWeight:n=400,variant:i="standard",bgColor:l="#141414",componentsProps:s={},...u}){return sM(zt,{enterTouchDelay:0,leaveTouchDelay:2e3,componentsProps:STe.merge({tooltip:{sx:{background:l,color:ut,maxWidth:"600px",fontSize:a||(i==="standard"?"1rem":"0.75rem"),fontWeight:{fontWeight:n},borderRadius:"0.5rem",padding:i==="standard"?"0.9rem":"0.5rem 0.75rem",boxShadow:"rgba(0, 0, 0, 0.6) 0px 4px 10px, rgba(0, 0, 0, 0.5) 0px 2px 4px"}},popper:{sx:{zIndex:9999999999,opacity:"1"}},arrow:{sx:{color:l}}},s),title:typeof e=="string"?sM(df,{content:e}):e,placement:r,arrow:!0,onClick:t,...u,children:o})}var ge=CTe;import{jsx as J8}from"react/jsx-runtime";var yTe=({helpText:e,style:t={},...r})=>J8(ge,{title:e,...r,children:J8("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",...t},children:J8(N4,{...Wr})})}),rl=yTe;import{Fragment as ATe,jsx as Ka,jsxs as s2}from"react/jsx-runtime";var uM=L(Dt)(({theme:e,borderColor:t})=>({width:e.spacing(4),height:e.spacing(4),cursor:"pointer",border:`1.5px solid ${t||e.palette.common.white} !important`})),vTe=L("div")(({theme:e})=>({width:e.spacing(4.5),height:e.spacing(4.5),border:`1.5px solid ${e.palette.common.white}`,borderRadius:"50%",background:tx,display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"-10px",zIndex:0,"&:hover":{cursor:"pointer"}})),wTe=L("div")({display:"flex",alignItems:"center",padding:"5px 15px 5px 10px","&:hover":{cursor:"pointer",background:"#cecece80 !important"}}),ETe=L(G)({marginLeft:"10px"}),RTe=L(yd)(()=>({"& .MuiPopover-paper":{marginTop:"10px",maxHeight:"331px"}})),OTe=({users:e,providerUrl:t,onOpenWorkspace:r})=>{let[o,a]=bTe(null),n=d=>{window.open(d,"_blank","noreferrer")},i=d=>{a(d.currentTarget)},l=()=>{a(null)},s=Object.entries(e).length,u=4,f=ee();return s2(z3,{max:u+1,children:[Object.entries(e).slice(0,u).map(([d,p])=>Ka(ge,{title:s2("div",{style:{justifyContent:"center"},children:[Ka(G,{style:{fontSize:"0.9em"},children:p.name}),Ka(Oe,{size:"small",variant:"outlined",onClick:r,style:{fontSize:"0.9em",padding:"2px 8px",minWidth:"auto",marginTop:"4px"},children:"Open Recents"})]}),arrow:!0,children:Ka(uM,{alt:p.name,src:p.avatar_url,borderColor:p.border_color,imgProps:{referrerPolicy:"no-referrer"},onClick:()=>n(`${t}/user/${p.user_id}`)},d)},d)),s>u&&s2(ATe,{children:[Ka(vTe,{onClick:i,"aria-describedby":"user-popover",children:o?Ka(So,{fill:f.palette.common.white,...Wr,style:{marginLeft:"4px"}}):Ka(G,{variant:"body2",style:{color:f.palette.common.white,fontSize:"12px"},children:`+${s-u}`})}),Ka(RTe,{id:"user-popover",open:!!o,anchorEl:o,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:Object.entries(e).slice(u,s).map(([d,p])=>s2(wTe,{onClick:()=>n(`${t}/user/${p.user_id}`),children:[Ka(uM,{alt:p.name,src:p.avatar_url,borderColor:p.border_color,imgProps:{referrerPolicy:"no-referrer"}}),Ka(ETe,{variant:"body1",children:p.name})]},d))})]})]})},fM=OTe;import{jsx as dM}from"react/jsx-runtime";function PTe({tooltip:e,tooltipPlacement:t="top",variant:r="filled",label:o,icon:a,onClick:n,onDelete:i,style:l,...s}){return dM(ge,{title:e,placement:t,children:dM(Ct,{sx:{paddingY:"10px",padding:"5px 6px !important",color:"black",fontSize:"14px",textTransform:"uppercase",fontWeight:400,height:"unset",borderRadius:"100px",border:"0.5px solid #51636B",background:"white",maxWidth:"230px"},variant:r,label:o,onClick:n,onDelete:i,icon:a,style:l,...s})})}var pM=PTe;import{useState as mM}from"react";import{Fragment as cM,jsx as Un,jsxs as ITe}from"react/jsx-runtime";var _Te=({zoomEffect:e=!1,imgURL:t,type:r,width:o,height:a,style:n={}})=>{let[i,l]=mM(!1),[s,u]=mM(!1),f=()=>{e&&u(!0)},d=()=>{u(!1)},p=({type:m})=>m.type==="filter"?Un(q4,{width:o,height:a,style:n}):Un(Na,{width:o,height:a,style:n});return Un(cM,{children:t&&t.length>0?Un("div",{style:{width:"100%",height:"100%",position:"relative"},children:i?Un(p,{type:r}):ITe(cM,{children:[Un("img",{src:t[0],alt:"Design SnapShot",loading:"lazy",onClick:f,onError:()=>l(!0),style:{cursor:"pointer",width:"100%",height:"100%",objectFit:"cover"}}),Un(na,{open:s,onClose:d,style:{backgroundColor:"rgba(0, 0, 0, 0.8)"},PaperProps:{style:{background:"transparent",boxShadow:"none",overflow:"hidden",maxWidth:"60vw"}},children:Un("img",{src:t[0],alt:"Zoomed Design SnapShot",style:{objectFit:"contain",maxWidth:"100%",maxHeight:"100%"}})})]})}):Un(p,{type:r})})},pf=_Te;import{useEffect as NTe,useState as BTe}from"react";import kTe from"js-yaml";var MTe=async(e,t=!0,r)=>new Promise(o=>{let a=new Image;t&&!e.startsWith("http")?a.src=(r?r():"")+e:a.src=e,a.onload=()=>{o(!0)},a.onerror=()=>{o(!1)}}),LTe=async(e,t,r)=>{let o=[];for(let a of e){let n=`${t}/${a.toLowerCase()}/${r}/${a.toLowerCase()}-color.svg`;await MTe(n)&&o.push(a)}return o},xM=e=>{try{return kTe.load(e)?.version||e6}catch(t){return console.error("Failed to parse pattern file to get version:",t),e6}},hM=async({technologies:e,basePath:t="",subBasePath:r="",setAvailableTechnologies:o})=>{let a=await LTe(e,t,r);o(a)},e6="0.0.0",u2=e=>{switch(e.visibility){case"published":return e?.catalog_data?.published_version||e6;case"public":case"private":return xM(e.pattern_file);default:return xM(e.pattern_file)}};import{styled as He,Typography as DTe}from"@mui/material";var gM=He("div")(()=>({width:"85px",height:"88px",overflow:"hidden",position:"absolute",top:"-3px",left:"-3px",zIndex:10})),TM=He("div")(()=>({color:"#eee",fontSize:"0.875rem",lineHeight:"1.5",fontWeight:"600",borderBottom:"1px solid rgba(231, 239, 243, 0.40)"})),SM=He("div")(()=>({color:"#eee",overflow:"hidden",fontSize:"14px",lineHeight:"24px",fontWeight:"400",marginTop:".8rem"})),CM=He("div")(({catalogClassName:e,theme:t})=>({font:"bold 10px sans-serif",WebkitTransform:"rotate(-45deg)",textAlign:"center",transform:"rotate(-45deg)",position:"relative",padding:"4px 0",top:"15px",left:"-30px",width:"120px",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",backgroundColor:{community:p4.main,official:t.palette.background.cta?.default||"#EBC017",verified:t.palette.background.brand?.default||"#00B39F"}[e],color:e==="official"?t.palette.common.black:t.palette.common.white})),t6=He("div")(({shouldFlip:e,isDetailed:t,outerStyles:r,theme:o})=>({position:"relative",borderRadius:"1rem",textAlign:"center",transformStyle:"preserve-3d",display:"block",perspective:"1000px",transition:"all .9s ease-out",...e&&{"&:hover":{cursor:"pointer","& .innerCard":{transform:"rotateY(180deg)"}}},...t&&{[o.breakpoints.down("lg")]:{height:"16.75rem"}},...r})),r6=He("div")(({shouldFlip:e,isDetailed:t})=>({position:"relative",width:"100%",height:"100%",textAlign:"center",transition:"transform 0.6s",...e&&{transformOrigin:"50% 50%",transformStyle:"preserve-3d"},...t&&{boxShadow:"0 4px 8px 0 rgba(0,0,0,0.2)",borderRadius:"0.9375rem"}})),yM=He("span")(({theme:e})=>({position:"absolute",top:"0",right:"0",minWidth:"3rem",padding:"0 0.75rem",fontSize:"0.875rem",textTransform:"capitalize",background:e.palette.background.brand?.default,color:e.palette.background.constant?.white,borderRadius:"0 1rem 0 2rem",zIndex:5})),bM=He("p")(({theme:e})=>({fontSize:"1rem",textTransform:"capitalize",margin:"0rem",lineHeight:"1.5",textAlign:"center",color:e.palette.mode==="light"?gn:Do,fontWeight:"600"})),vM=He(DTe)(({theme:e,hasRibbon:t})=>({fontWeight:"bold",textTransform:"capitalize",color:e.palette.text.default,fontSize:"1.125rem",padding:"0rem 1rem",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"center",width:"100%",margin:t?"3.5rem 0 1.59rem 0":"2rem 0 1.59rem 0",fontFamily:"inherit",...t&&{paddingLeft:"1.5rem"}})),wM=He("div")(({isDetailed:e,theme:t})=>({display:"flex",justifyContent:"space-around",fontSize:"0.2rem",color:t.palette.mode==="light"?"rgba(26, 26, 26, .8)":t.palette.text.default,padding:"0.9rem 0.1rem",background:t.palette.mode==="light"?"#E7EFF3":gn,...e&&{position:"absolute",bottom:"0px"},...!e&&{marginTop:"1.2rem"},borderRadius:"0 0 0.9375rem 0.9375rem",width:"100%"})),EM=He("div")(()=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.2rem",color:"rgba(26, 26, 26, .8)",margin:"0rem",padding:"0.1rem"})),f2=He("div")(()=>({height:"max-content",display:"flex",marginTop:"-1rem",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start","@media (max-width:1200px)":{height:"max-content"}})),z9t=He("div")(({theme:e})=>({background:e.palette.background.surfaces,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.5rem",width:"100%",borderRadius:"0.5rem"})),j9t=He("div")(({theme:e})=>({display:"inline-block",backgroundColor:e.palette.background.supplementary,color:e.palette.text.constant?.white,borderRadius:"4px",fontSize:"0.75rem",fontWeight:"bold",margin:"5px 0",padding:"2px 5px",maxWidth:"fit-content"})),RM=He("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.75",color:e.palette.text.constant?.white,position:"absolute",bottom:"16px",left:"16px",borderRadius:"4px",background:e.palette.background.supplementary,justifyContent:"center"})),OM=He("p")(({theme:e})=>({fontSize:"0.75rem",margin:"0",padding:"0.25rem .5rem",lineHeight:"1.5",textTransform:"lowercase",fontWeight:"600",borderRadius:"4.05px",color:e.palette.text.constant?.white})),K9t=He("div")(()=>({perspective:"1000px","&:hover .flipper":{transform:"rotateY(-180deg)"}})),$9t=He("div")(()=>({transition:"0.6s",transformStyle:"preserve-3d",position:"relative"})),FTe=He("div")(()=>({backfaceVisibility:"hidden",position:"absolute",top:0,left:0,width:"100%",height:"100%"})),Y9t=He(FTe)(()=>({zIndex:2,transform:"rotateY(0deg)"})),Z9t=He("div")(()=>({transform:"rotateY(-180deg)",color:"#fff",display:"inline-flex",flexDirection:"column",padding:"16px",height:"100%",width:"100%",position:"relative",bottom:0,left:0,backfaceVisibility:"hidden"})),Q9t=He("div")(({theme:e})=>({position:"absolute",background:`linear-gradient(to bottom right, black 40%, ${e.palette.background.brand?.default})`,width:"100%",top:0,left:0,display:"flex",flexDirection:"column",alignItems:"left",padding:"16px",boxShadow:"2px 2px 3px 0px black",borderRadius:"1rem"})),AM=He("div")({height:"max-content",display:"flex",marginTop:"1.2rem",flexDirection:"row",padding:"0rem 1rem",justifyContent:"flex-start",alignItems:"center","@media (max-width:1200px)":{height:"max-content"}}),PM=He("div")(()=>({display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",gap:"1rem",alignItems:"flex-start",background:"rgba(231, 239, 243, 0.40)",borderRadius:"0.25rem",padding:"0.5rem 1rem",alignSelf:"stretch"})),X9t=He("div")({display:"flex",alignItems:"center",color:"#fff",margin:"20px 0"}),_M=He("div")(({isCatalog:e})=>({boxShadow:"2px 2px 3px 0px rgba(26, 26, 26, 1)",position:"absolute",width:"100%",height:"100%",WebkitBackfaceVisibility:"hidden",borderRadius:"0.9375rem",backfaceVisibility:"hidden",color:"white",transform:"rotateY(180deg)",...e&&{background:"linear-gradient(335deg, rgba(0, 179, 159, 0.80) -13.6%, rgba(0, 0, 0, 0.68) 66.8%), radial-gradient(3970.04% 147.22% at 47.5% 100%, #000 0%, #395357 100%)"},...!e&&{background:"linear-gradient(250deg, #477e96 0%, #00b39f 35%, rgb(60, 73, 79) 100%)"}})),d2=e=>{let t=`linear-gradient(to left bottom, ${nx}, ${ox},white, white, white, white, white, white, white, white, ${nx}, ${ox})`,r=`linear-gradient(to right top, ${ix}, ${Ae[30]}, ${Ae[20]}, ${Ae[10]}, ${Ae[10]}, ${Ae[10]}, ${Ae[10]}, ${Ae[10]}, ${Ae[10]}, ${ie[20]}, ${ie[10]}, black)`;return e?t:r},o6=He("div")(({shouldFlip:e,isDetailed:t,theme:r})=>{let o=r.palette.mode==="light",a=d2(o),n=`2px 2px 3px 0px ${r.palette.background.brand?.default}`;return{position:"relative",zIndex:1,...e&&{position:"absolute",boxShadow:n,background:a},...t&&{boxShadow:n,background:a},width:"100%",height:"100%",WebkitBackfaceVisibility:"hidden",borderRadius:"0.9375rem",backfaceVisibility:"hidden"}}),IM=He("div")(()=>({fontSize:"0.875rem",textTransform:"capitalize",color:"#eee",margin:"0rem",padding:"0.1rem",fontWeight:"400",lineHeight:"1.5"})),kM=He("p")(()=>({fontSize:"0.876rem",margin:"0rem",lineHeight:"1.5",fontWeight:"400",color:"#eee"})),MM=He("div")(()=>({height:"max-content",display:"flex",margin:"0",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start",fontWeight:"400",textAlign:"right",color:"#E7EFF3",textTransform:"capitalize","@media (max-width:1200px)":{height:"max-content"}})),LM=He("div")(({theme:e})=>{let t=e.palette.mode==="light",r=d2(t),o=`2px 2px 3px 0px ${e.palette.background.brand?.default}`;return{background:r,boxShadow:o,textAlign:"center",borderRadius:"1rem",width:"15rem",height:"18rem",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",[e.breakpoints.down("lg")]:{height:"18.75rem"}}});import{Fragment as a6,jsx as Qe,jsxs as bo}from"react/jsx-runtime";var m3t=L("a")(()=>({textDecoration:"none"}));var HTe=({catalogClassName:e})=>e?Qe(gM,{children:Qe(CM,{catalogClassName:e,children:e})}):Qe(a6,{}),VTe=({pattern:e,patternType:t,cardHeight:r="16.5rem",cardWidth:o="15rem",cardStyles:a,shouldFlip:n=!0,isDetailed:i=!0,cardTechnologies:l=!0,avatarUrl:s,UserName:u,children:f,basePath:d,subBasePath:p,getHostUrl:m,onCardClick:x})=>{let h={height:r,width:o,...a},g=ee(),T=e.catalog_data?.compatibility||[],w=5,[E,I]=BTe([]),D=u2(e);return NTe(()=>{hM({technologies:T,basePath:d,subBasePath:p,setAvailableTechnologies:I})},[]),n?Qe(t6,{shouldFlip:n,isDetailed:i,outerStyles:h,onClick:x,children:bo(r6,{shouldFlip:n,className:"innerCard",children:[bo(o6,{shouldFlip:n,isDetailed:i,children:[i&&bo(a6,{children:[Qe(HTe,{catalogClassName:e?.catalog_data?.content_class??""}),Qe(yM,{children:t}),Qe(vM,{hasRibbon:!!e?.catalog_data?.content_class,children:e.name})]}),Qe(f2,{children:Qe("div",{style:{background:g.palette.mode==="light"?"rgba(231, 239, 243, 0.4)":"transparent",display:"flex",alignItems:"center",justifyContent:"center",padding:"0.5rem",width:"100%",borderRadius:"0.5rem"},children:f})}),i&&Qe(wM,{isDetailed:i,children:[{Icon:fa,count:e.download_count},{Icon:Ad,count:e.clone_count},{Icon:qd,count:e.view_count},{Icon:Nd,count:e.deployment_count},{Icon:wn,count:e.share_count}].map(({Icon:C,count:b},A)=>bo(EM,{children:[Qe(C,{width:18,height:18,fill:g.palette.mode==="light"?gn:Do}),Qe(bM,{children:b})]},A))})]}),n&&bo(_M,{isCatalog:!0,children:[bo(AM,{children:[Qe(Dt,{alt:"Design Author",src:s,sx:{width:"32px",height:"32px",color:"#293B43"}}),Qe(MM,{children:u})]}),Qe(f2,{style:{marginTop:"0.7rem",gap:"5px"},children:l&&bo(PM,{children:[Qe(TM,{children:"Technologies"}),Qe(xe,{container:!0,style:{gap:"4px",alignItems:"flex-start",flexWrap:"nowrap"},children:T.length<1||E.length<1?Qe(SM,{children:"No technologies"}):bo(a6,{children:[E.slice(0,w).map((C,b)=>{let A=(m?m():"")+`${d}/${C.toLowerCase()}/${p}/${C.toLowerCase()}-color.svg`;return Qe(xe,{children:Qe(ge,{title:C.toLowerCase(),children:Qe("img",{height:"24px",width:"24px",alt:C.toLowerCase(),src:A})},b)},b)}),E.length>w&&bo(xe,{sx:{padding:"0 8px 0 4px",borderRadius:"16px",border:"1px solid #C9DBE3",background:"#E7EFF3",color:"#3C494E",fontSize:"14px",lineHeight:"1.5",fontWeight:"600"},children:["+",E.length-w]})]})})]})}),i&&Qe(f2,{style:{marginTop:"20px"},children:Qe(xe,{container:!0,style:{justifyContent:"space-between",alignItems:"center"},children:bo(xe,{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[bo("div",{style:{display:"flex",flexDirection:"row",gap:"0.2rem",alignItems:"center"},children:[Qe(RO,{width:18,height:18}),Qe(kM,{children:"Updated At"})]}),bo(IM,{children:[" ",new Date(e.updated_at.toString().slice(0,10)).toLocaleDateString("en-US",{day:"numeric",month:"long",year:"numeric"})]})]})})}),D&&Qe(RM,{children:bo(OM,{children:["v",D]})})]})]})}):Qe(t6,{shouldFlip:n,isDetailed:i,outerStyles:h,children:Qe(r6,{shouldFlip:n,className:"innerCard",children:Qe(o6,{shouldFlip:n,isDetailed:i,children:f})})})},mf=VTe;import{jsx as DM,jsxs as WTe}from"react/jsx-runtime";var UTe=()=>{let e=ee();return WTe(LM,{children:[DM(k4,{fill:e.palette.text.default,width:"100px",height:"100px"}),DM("h3",{style:{color:e.palette.text.default},children:"No match found"})]})},FM=UTe;import f6 from"react";import{jsx as GTe}from"react/jsx-runtime";function qTe({children:e,open:t,anchorEl:r,placement:o="bottom-end",...a}){return GTe(bd,{open:t,anchorEl:r,placement:o,...a,children:e})}var Ap=qTe;import jTe from"mui-datatables";import s6,{useCallback as KTe}from"react";import{jsx as NM}from"react/jsx-runtime";var zTe=({width:e=V,height:t=U,...r})=>NM("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:e,height:t,fill:r.fill||"currentColor",...r,children:NM("path",{d:"M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z"})}),n6=zTe;var M3t=({kind:e,model:t,color:r})=>!e||!t||!r?null:`/ui/public/static/img/meshmodels/${t}/${r}/${e.toLowerCase()}-${r}.svg`;import HM from"moment";import{jsx as BM}from"react/jsx-runtime";var ol=e=>HM(e).fromNow(),Ts=e=>HM(e).format("ddd, MMM D, YYYY h:mm A"),Ss=e=>{let t={year:"numeric",month:"short",day:"numeric"};return new Date(e).toLocaleDateString("en-US",t)},i6=({date:e})=>BM(ge,{title:Ts(e),disableInteractive:!0,children:BM("div",{children:ol(e)})});import{Fragment as p2,jsx as Lr,jsxs as l6}from"react/jsx-runtime";var lo=L("div",{shouldForwardProp:e=>e!=="disabled"})(({disabled:e=!1})=>({width:"fit-content",cursor:e?"not-allowed":"pointer",opacity:e?"0.5":"1",display:"flex","& svg":{cursor:e?"not-allowed":"pointer"}})),Pp=({actionsList:e})=>{let[t,r]=s6.useState(null),[o,a]=s6.useState(!1),n=ee(),i=u=>{r(u.currentTarget)},l=()=>{r(null),a(!1)},s=u=>{u.type==="share-social"?a(!o):(u.onClick&&u.onClick(),l())};return l6(p2,{children:[Lr(_t,{title:"View Actions",onClick:i,icon:Lr(n6,{fill:n.palette.icon.default}),arrow:!0}),Lr(Gl,{id:"basic-menu",anchorEl:t,open:!!t,onClose:l,sx:{"& .MuiPaper-root":{backgroundColor:n.palette.background.card}},children:e&&e.map((u,f)=>u.type==="share-social"?[l6(xt,{sx:{width:"-webkit-fill-available"},onClick:()=>s(u),disabled:u.disabled,children:[Lr(Fa,{children:Lr(wn,{width:24,height:24,fill:n.palette.text.primary})}),Lr(Gt,{sx:{color:n.palette.text.primary},children:u.title})]},`${f}-menuitem`),Lr(aa,{variant:"submenu",in:o,unmountOnExit:!0,children:u.customComponent},`${f}-collapse`)]:Lr(lo,{disabled:u.disabled,children:l6(xt,{sx:{width:"-webkit-fill-available"},onClick:()=>s(u),disabled:u.disabled,children:[Lr(Fa,{children:u.icon}),Lr(Gt,{sx:{color:n.palette.text.primary},children:u.title})]})},f))})]})},$Te=({data:e,columns:t,options:r={},tableCols:o,updateCols:a,columnVisibility:n,rowsPerPageOptions:i=[10,25,50,100],...l})=>{let s={...r,print:!1,download:!1,search:!1,filter:!1,viewColumns:!1,rowsPerPageOptions:i,onViewColumnsChange:(d,p)=>{switch(p){case"add":{let m=t.find(x=>x.name===d);m&&m.options&&(m.options.display=!0,a&&a([...t]));break}case"remove":{let m=t.find(x=>x.name===d);m&&m.options&&(m.options.display=!1,a&&a([...t]));break}}}},u=KTe(()=>{t?.forEach(d=>{typeof d=="object"&&d!==null&&(d.options||(d.options={}),d.options.display=n&&n[d.name],["updated_at","created_at","deleted_at","last_login_time","joined_at","last_run","next_run"].includes(d.name)&&(d.options.customBodyRender=p=>{if(p==="NA"||p===null||p===void 0)return Lr(p2,{children:p});if(typeof p=="object"&&"Valid"in p){let m=p;return m.Valid&&m.Time?Lr(i6,{date:m.Time}):Lr(p2,{children:"NA"})}else return typeof p=="string"?Lr(i6,{date:p}):Lr(p2,{children:p})}))}),a&&a([...t])},[n,a]);return s6.useEffect(()=>{u()},[u]),Lr(jTe,{columns:o??[],data:e||[],title:void 0,components:{ExpandButton:()=>"",Checkbox:Br},options:{...s,elevation:0,enableNestedDataAccess:"."},...l})},vo=$Te;import{jsx as u6}from"react/jsx-runtime";function YTe({children:e,title:t,onClick:r,icon:o,style:a,arrow:n=!0,disabled:i=!1,iconType:l,id:s,placement:u}){let f=ee();return u6(ge,{title:t,arrow:n,placement:u,id:s,children:u6(lo,{disabled:i,children:u6(Ge,{disabled:i,onClick:r,sx:{"&:hover":{"& svg":{fill:l==="delete"?f.palette.error.main:f.palette.primary.brand?.default}},...a},children:o||e})})})}var _t=YTe;import{jsx as $a,jsxs as ZTe}from"react/jsx-runtime";function VM({columns:e,id:t,customToolsProps:r,style:o}){let[a,n]=f6.useState(!1),[i,l]=f6.useState(null),s=ee(),u=p=>{if(p.stopPropagation(),n(m=>!m),i){l(null);return}l(p.currentTarget)},f=()=>{l(null),n(!1)},d=(p,m)=>{p.stopPropagation(),r.setColumnVisibility(x=>({...x,[m]:p.target.checked}))};return $a(f6.Fragment,{children:ZTe("div",{id:t,children:[$a(_t,{title:"View Columns",onClick:u,icon:$a(b4,{fill:s.palette.icon.default}),arrow:!0}),$a(Ap,{style:{...o,zIndex:1350},open:!!i,anchorEl:i,placement:"bottom-end",modifiers:[{name:"flip",options:{enabled:!1}},{name:"preventOverflow",options:{enabled:!0,boundariesElement:"scrollParent"}}],children:$a(K,{children:$a(xn,{onClickAway:f,children:$a("div",{children:$a(gr,{sx:{display:"flex",flexDirection:"column",padding:"1rem",boxShadow:a?"0px 4px 8px rgba(0, 0, 0, 0.2)":"none",background:s.palette.background.surfaces},children:e.map(p=>$a(Wl,{control:$a(Br,{checked:r.columnVisibility[p.name],onChange:m=>d(m,p.name)}),label:p.label},p.name))})})})})})]})})}var Ta=VM;import{useState as QTe}from"react";import{Fragment as t8e,jsx as m2,jsxs as UM}from"react/jsx-runtime";var XTe=L("figure")(({align:e})=>({margin:"1rem 0",textAlign:e,width:"100%"})),JTe=L("figcaption")(({align:e})=>({fontSize:"0.9rem",color:"#666",marginTop:"0.5rem",textAlign:e})),e8e=({src:e,alt:t,caption:r,align:o="left",...a})=>{let[n,i]=QTe(!1),l=()=>{i(!0)},s=()=>{i(!1)};return UM(t8e,{children:[UM(XTe,{align:o,children:[m2("img",{src:e,alt:t||r||"",loading:"lazy",onClick:l,...a,style:{cursor:"pointer",maxWidth:"100%",height:"auto",boxShadow:"rgba(149, 157, 165, 0.2) 0px 8px 24px",borderRadius:"15px",width:"50%"}}),r&&m2(JTe,{align:o,children:r})]}),m2(na,{open:n,onClose:s,style:{backgroundColor:"rgba(0, 0, 0, 0.8)"},PaperProps:{style:{background:"transparent",boxShadow:"none",overflow:"auto",maxWidth:"100%"}},children:m2("img",{src:e,alt:t||r||"",onClick:s,style:{objectFit:"contain",maxWidth:"100%",maxHeight:"100%"}})})]})},WM=e8e;import{Backdrop as i8e}from"@mui/material";import{jsx as o8e}from"react/jsx-runtime";function r8e({children:e,...t}){return o8e(gd,{...t,children:e})}var c2=r8e;import{jsx as n8e}from"react/jsx-runtime";function a8e({children:e,...t}){return n8e(Hl,{...t,children:e})}var x2=a8e;import{styled as h2}from"@mui/material";var qM=h2("div")(({theme:e})=>{let t=e.palette.mode==="light"?Mu:ir,r=e.palette.mode==="light"?d4:zw;return{display:"flex",justifyContent:"space-between",padding:"1rem",boxShadow:"inset 0px -1px 3px 0px rgba(0,0,0,0.2)",background:`linear-gradient(90deg, ${t}, ${r})`,filter:e.palette.mode==="light"?`progid:DXImageTransform.Microsoft.gradient(startColorstr='${Mu}',endColorstr='${d4}',GradientType=1)`:`progid:DXImageTransform.Microsoft.gradient(startColorstr='${Ed}',GradientType=1)`}}),GM=h2("div")(()=>({zIndex:"100",borderRadius:"5px"})),zM=h2("div")(({theme:e})=>({padding:"1rem 1.5rem",display:"flex",justifyContent:"flex-end",backgroundColor:e.palette.mode==="light"?Mu:Ed,boxShadow:"inset 0px 3px 5px 0px rgba(0,0,0,0.25)"})),jM=h2("div")(({theme:e})=>({padding:"2rem 1rem",backgroundColor:e.palette.mode==="light"?ut:wd}));import{Fragment as s8e,jsx as Sa,jsxs as KM}from"react/jsx-runtime";function l8e({open:e,onClose:t,title:r,leftHeaderIcon:o,helpText:a,helpArea:n,actions:i,hideActions:l=!1,content:s,maxWidth:u="xs",...f}){return Sa(na,{sx:{"& .MuiDialog-paper":{borderRadius:"10px"}},open:e,maxWidth:u,onClose:t,slots:{backdrop:i8e},slotProps:{backdrop:{timeout:500}},...f,children:KM(GM,{children:[KM(qM,{children:[o&&Sa("div",{style:{display:"flex",alignItems:"center"},children:o}),r&&Sa(s8e,{children:Sa("div",{style:{display:"flex",alignItems:"center"},children:Sa(Ul,{children:r})})}),Sa("div",{style:{display:"flex",alignItems:"center"},children:a&&Sa("div",{children:n})})]}),Sa(x2,{children:Sa(jM,{children:s})}),!l&&Sa(c2,{children:Sa(zM,{children:i})})]})})}var $M=l8e;import{jsx as YM}from"react/jsx-runtime";function u8e({children:e,style:t,...r}){return YM(Ul,{sx:t,...r,children:YM(G,{sx:{flexGrow:1,fontSize:"1.25rem",textAlign:"center"},variant:"h6",children:e})})}var g2=u8e;import{jsx as d6,jsxs as p6}from"react/jsx-runtime";function f8e({icon:e,message:t,pointerLabel:r,poiner:o=!1}){return p6("div",{style:{textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",minHeight:"50vh"},children:[o&&p6(xe,{style:{display:"flex",width:"100%",padding:"0 40px"},children:[d6(W4,{}),d6(G,{sx:{fontSize:24,color:"#808080",px:5,py:2,lineHeight:1.5,letterSpacing:"0.15px",display:"flex",alignItems:"flex-end",marginBottom:"-2rem"},children:r})]}),p6(xe,{style:{marginTop:"120px"},children:[e,d6(G,{sx:{fontSize:"1.5rem",color:"#808080",px:5,py:2,lineHeight:1},children:t})]})]})}var ZM=f8e;import{styled as c6}from"@mui/material";import{createContext as d8e,Component as p8e,createElement as QM,useContext as lgt,useState as sgt,useMemo as ugt,forwardRef as fgt}from"react";var m8e=d8e(null),m6={didCatch:!1,error:null},_p=class extends p8e{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=m6}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){let{error:t}=this.state;if(t!==null){for(var r,o,a=arguments.length,n=new Array(a),i=0;i<a;i++)n[i]=arguments[i];(r=(o=this.props).onReset)===null||r===void 0||r.call(o,{args:n,reason:"imperative-api"}),this.setState(m6)}}componentDidCatch(t,r){var o,a;(o=(a=this.props).onError)===null||o===void 0||o.call(a,t,r)}componentDidUpdate(t,r){let{didCatch:o}=this.state,{resetKeys:a}=this.props;if(o&&r.error!==null&&c8e(t.resetKeys,a)){var n,i;(n=(i=this.props).onReset)===null||n===void 0||n.call(i,{next:a,prev:t.resetKeys,reason:"keys"}),this.setState(m6)}}render(){let{children:t,fallbackRender:r,FallbackComponent:o,fallback:a}=this.props,{didCatch:n,error:i}=this.state,l=t;if(n){let s={error:i,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")l=r(s);else if(o)l=QM(o,s);else if(a!==void 0)l=a;else throw i}return QM(m8e.Provider,{value:{didCatch:n,error:i,resetErrorBoundary:this.resetErrorBoundary}},l)}};function c8e(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,o)=>!Object.is(r,t[o]))}import{Fragment as g8e,jsx as wo,jsxs as Ip}from"react/jsx-runtime";var x8e=c6(G)(({theme:e})=>({color:e.palette.text.default,fontWeight:"normal",marginTop:"2px",marginBottom:"2px",fontSize:"1.15rem"})),XM=c6(xo)(({theme:e})=>({color:e.palette.border.brand,textDecoration:"underline",cursor:"pointer"})),h8e=c6("div")(({theme:e})=>({display:"flex",flexDirection:"column",backgroundColor:e.palette.background.code,color:e.palette.text.tertiary,padding:".85rem",borderRadius:".2rem",marginBlock:".5rem"}));function x6({error:e,children:t,showPackageInfo:r,version:o}){return Ip("div",{role:"alert",children:[wo("h2",{children:"Uh-oh!\u{1F614} Please pardon the mesh."}),Ip(h8e,{children:[Ip("code",{children:[wo("strong",{children:"Error: "}),e.message]}),wo("br",{}),r&&Ip(g8e,{children:[wo("strong",{children:"Version:"})," ",o]})]}),Ip(x8e,{children:["We apologize for the inconvenience. The issue may be on our end. If troubleshooting doesn't work, please check out our support channels"," ",wo(XM,{href:"https://discuss.layer5.io/",target:"_blank",rel:"noopener noreferrer",children:"Discuss Forum"})," "," or ",wo(XM,{href:"https://slack.layer5.io/",target:"_blank",rel:"noopener noreferrer",children:"Slack"})]}),wo(K,{children:t})]})}var JM=(e,t)=>{let r=window.location.href,o=new Date().toLocaleString();console.log("Error Caught Inside Boundary --reportError",e,"Info",t,"Page URL:",r,"Timestamp:",o)},Gr=({customFallback:e,children:t,onErrorCaught:r})=>{let o=window.location.href,a=new Date().toLocaleString();return wo(_p,{FallbackComponent:e||(i=>wo(x6,{...i,pageUrl:o,timestamp:a})),onError:(i,l)=>{r?.(i.message),JM(i,l)},children:t})},eL=({Component:e,errorHandlingProps:t={children:null}})=>wo(Gr,{...t,children:wo(e,{})}),tL=({Component:e})=>wo(_p,{FallbackComponent:()=>null,onError:JM,children:wo(e,{})});import y6 from"@mui/material/Typography";import{useState as Dp}from"react";import{styled as qo}from"@mui/material";import{useRef as b8e,useState as S2}from"react";import{useState as T8e}from"react";import{Fragment as C8e,jsx as T2,jsxs as y8e}from"react/jsx-runtime";function S8e({content:e,fontSize:t,fontWeight:r=400,variant:o="standard",bgColor:a="#141414",icon:n=T2(P4,{fontSize:"small"}),...i}){let[l,s]=T8e(null);return y8e(C8e,{children:[T2(Ge,{size:"small",onClick:p=>{s(p.currentTarget)},sx:{color:"inherit",padding:"2px",verticalAlign:"middle"},children:n}),T2(yd,{open:!!l,anchorEl:l,onClose:()=>{s(null)},disablePortal:!0,container:l?.ownerDocument?.body,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},PaperProps:{sx:{background:a,zIndex:1501,opacity:"1",color:ut,maxWidth:"500px",fontSize:t||(o==="standard"?"1rem":"0.75rem"),fontWeight:r,borderRadius:"0.5rem",padding:o==="standard"?"0.9rem":"0.5rem 0.75rem",boxShadow:"rgba(0, 0, 0, 0.6) 0px 4px 10px, rgba(0, 0, 0, 0.5) 0px 2px 4px"}},...i,children:typeof e=="string"?T2(df,{content:e}):e})]})}var h6=S8e;import{jsx as Ya,jsxs as kp}from"react/jsx-runtime";var cf=qo(Ge)`
59
+ `))}function s(m,x,h,g){let T=h.enter("tableCell"),w=h.enter("phrasing"),E=i2(m,h,{...g,before:n,after:n});return w(),T(),E}function u(m,x){return Qk(m,{align:x,alignDelimiters:o,padding:r,stringLength:a})}function f(m,x,h){let g=m.children,T=-1,w=[],E=x.enter("table");for(;++T<g.length;)w[T]=d(g[T],x,h);return E(),w}function d(m,x,h){let g=m.children,T=-1,w=[],E=x.enter("tableRow");for(;++T<g.length;)w[T]=s(g[T],m,x,h);return E(),w}function p(m,x,h){let g=L8(m,x,h);return h.stack.includes("tableCell")&&(g=g.replace(/\|/g,"\\$&")),g}}function Jk(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function eM(e){let t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function tM(e,t,r,o){let a=eM(r),n=r.bulletCurrent||Jk(r);t&&t.type==="list"&&t.ordered&&(n=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+n);let i=n.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4);let l=r.createTracker(o);l.move(n+" ".repeat(i-n.length)),l.shift(i);let s=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,l.current()),f);return s(),u;function f(d,p,m){return p?(m?"":" ".repeat(i))+d:(m?n:n+" ".repeat(i-n.length))+d}}var B8={exit:{taskListCheckValueChecked:rM,taskListCheckValueUnchecked:rM,paragraph:hTe}},H8={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:gTe}};function rM(e){let t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function hTe(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let r=this.stack[this.stack.length-1],o=r.children[0];if(o&&o.type==="text"){let a=t.children,n=-1,i;for(;++n<a.length;){let l=a[n];if(l.type==="paragraph"){i=l;break}}i===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():r.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function gTe(e,t,r,o){let a=e.children[0],n=typeof e.checked=="boolean"&&a&&a.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",l=gs(o);n&&l.move(i);let s=tM(e,t,r,{...o,...l.current()});return n&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(f){return f+i}}function V8(){return[R8,_8(),k8,F8,B8]}function U8(e){return{extensions:[O8,I8(),M8,N8(e),H8]}}function Op(e={}){let t=this.data();r("micromarkExtensions",Hk(e)),r("fromMarkdownExtensions",V8()),r("toMarkdownExtensions",U8(e));function r(o,a){(t[o]?t[o]:t[o]=[]).push(a)}}import{styled as br}from"@mui/material";var l2=br("a")(({theme:e})=>({color:e.palette.background.brand?.default,textDecoration:"none","&:hover":{textDecoration:"underline"},cursor:"pointer",fontFamily:"inherit"})),oM=br("a")(()=>({textDecoration:"none","&:hover":{textDecoration:"underline"},cursor:"pointer"})),aM=br("p")(({theme:e})=>({color:e.palette.text.default,marginBlock:"0px",...e.typography.textB1Regular,fontFamily:"inherit"})),nM=br("p")(({theme:e})=>({color:e.palette.text.constant?.white||Kw.inverse,marginBlock:"0px",fontFamily:"inherit"})),W8=br("h1")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),q8=br("h2")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),G8=br("h3")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),z8=br("h4")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),j8=br("h5")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),K8=br("h6")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),$8=br("blockquote")(({theme:e})=>({color:e.palette.text.default,borderLeft:`2px solid ${e.palette.text.brand}`,backgroundColor:e.palette.background.tertiary})),Y8=br("ul")(({theme:e})=>({color:e.palette.text.default})),Z8=br("li")(({theme:e})=>({color:e.palette.text.default,...e.typography.textB1Regular,fontFamily:"inherit"})),Q8=br("th")(({theme:e})=>({color:e.palette.text.default,...e.typography.textH3Medium,marginBlock:"0px",fontFamily:"inherit"})),X8=br("td")(({theme:e})=>({color:e.palette.text.default,marginBlock:"0px",...e.typography.textB1Regular,fontFamily:"inherit"})),iM=br("pre")(({theme:e})=>({background:e.palette.background.code,whiteSpace:"pre-line",fontFamily:"inherit"})),lM=br("code")(({theme:e})=>({background:e.palette.background.code,whiteSpace:"pre-line",padding:"1.5px",paddingInline:"5px",fontFamily:"inherit",borderRadius:3}));import{jsx as Be}from"react/jsx-runtime";var ff=({content:e})=>Be(Zu,{remarkPlugins:[Op],rehypePlugins:[p8],components:{p:({...t})=>Be(aM,{children:t.children}),a:({...t})=>Be(l2,{onClick:r=>{r.preventDefault(),window.open(t.href,"_blank")},href:t.href,children:t.children}),h1:({...t})=>Be(W8,{children:t.children}),h2:({...t})=>Be(q8,{children:t.children}),h3:({...t})=>Be(G8,{children:t.children}),h4:({...t})=>Be(z8,{children:t.children}),h5:({...t})=>Be(j8,{children:t.children}),h6:({...t})=>Be(K8,{children:t.children}),blockquote:({...t})=>Be($8,{children:t.children}),ul:({...t})=>Be(Y8,{children:t.children}),li:({...t})=>Be(Z8,{children:t.children}),th:({...t})=>Be(Q8,{children:t.children}),td:({...t})=>Be(X8,{children:t.children}),pre:({...t})=>Be(iM,{children:t.children}),code:({...t})=>Be(lM,{children:t.children})},children:e}),df=({content:e})=>Be(Zu,{remarkPlugins:[Op],components:{p:({...r})=>Be(nM,{children:r.children}),a:({...r})=>Be(l2,{onClick:o=>{window.open(r.href,"_blank"),o.stopPropagation()},as:"a",children:r.children}),h1:({...r})=>Be(W8,{children:r.children}),h2:({...r})=>Be(q8,{children:r.children}),h3:({...r})=>Be(G8,{children:r.children}),h4:({...r})=>Be(z8,{children:r.children}),h5:({...r})=>Be(j8,{children:r.children}),h6:({...r})=>Be(K8,{children:r.children}),blockquote:({...r})=>Be($8,{children:r.children}),ul:({...r})=>Be(Y8,{children:r.children}),li:({...r})=>Be(Z8,{children:r.children}),th:({...r})=>Be(Q8,{children:r.children}),td:({...r})=>Be(X8,{children:r.children})},children:(r=>{if(!r)return r;try{return JSON.parse(`"${r}"`)}catch{return r}})(e)}),TTe=({content:e})=>Be(Zu,{remarkPlugins:[Op],components:{a:({...t})=>Be(oM,{onClick:r=>{window.open(t.href,"_blank"),r.stopPropagation()},as:"a",children:t.children})},children:e});import{jsx as sM}from"react/jsx-runtime";function CTe({title:e,onClick:t,placement:r,children:o,fontSize:a,fontWeight:n=400,variant:i="standard",bgColor:l="#141414",componentsProps:s={},...u}){return sM(zt,{enterTouchDelay:0,leaveTouchDelay:2e3,componentsProps:STe.merge({tooltip:{sx:{background:l,color:ut,maxWidth:"600px",fontSize:a||(i==="standard"?"1rem":"0.75rem"),fontWeight:{fontWeight:n},borderRadius:"0.5rem",padding:i==="standard"?"0.9rem":"0.5rem 0.75rem",boxShadow:"rgba(0, 0, 0, 0.6) 0px 4px 10px, rgba(0, 0, 0, 0.5) 0px 2px 4px"}},popper:{sx:{zIndex:9999999999,opacity:"1"}},arrow:{sx:{color:l}}},s),title:typeof e=="string"?sM(df,{content:e}):e,placement:r,arrow:!0,onClick:t,...u,children:o})}var ge=CTe;import{jsx as J8}from"react/jsx-runtime";var yTe=({helpText:e,style:t={},...r})=>J8(ge,{title:e,...r,children:J8("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",...t},children:J8(N4,{...Wr})})}),rl=yTe;import{Fragment as ATe,jsx as Ka,jsxs as s2}from"react/jsx-runtime";var uM=L(Dt)(({theme:e,borderColor:t})=>({width:e.spacing(4),height:e.spacing(4),cursor:"pointer",border:`1.5px solid ${t||e.palette.common.white} !important`})),vTe=L("div")(({theme:e})=>({width:e.spacing(4.5),height:e.spacing(4.5),border:`1.5px solid ${e.palette.common.white}`,borderRadius:"50%",background:tx,display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"-10px",zIndex:0,"&:hover":{cursor:"pointer"}})),wTe=L("div")({display:"flex",alignItems:"center",padding:"5px 15px 5px 10px","&:hover":{cursor:"pointer",background:"#cecece80 !important"}}),ETe=L(G)({marginLeft:"10px"}),RTe=L(yd)(()=>({"& .MuiPopover-paper":{marginTop:"10px",maxHeight:"331px"}})),OTe=({users:e,providerUrl:t,onOpenWorkspace:r})=>{let[o,a]=bTe(null),n=d=>{window.open(d,"_blank","noreferrer")},i=d=>{a(d.currentTarget)},l=()=>{a(null)},s=Object.entries(e).length,u=4,f=ee();return s2(z3,{max:u+1,children:[Object.entries(e).slice(0,u).map(([d,p])=>Ka(ge,{title:s2("div",{style:{display:"flex",justifyContent:"center",flexDirection:"column"},children:[Ka(G,{style:{display:"flex",justifyContent:"center",flexDirection:"column",fontSize:"0.9rem"},children:p.name}),Ka(Oe,{size:"small",variant:"outlined",onClick:r,style:{fontSize:"0.9rem",padding:"2px 8px",minWidth:"auto",marginTop:"4px"},children:"Open Recents"})]}),arrow:!0,children:Ka(uM,{alt:p.name,src:p.avatar_url,borderColor:p.border_color,imgProps:{referrerPolicy:"no-referrer"},onClick:()=>n(`${t}/user/${p.user_id}`)},d)},d)),s>u&&s2(ATe,{children:[Ka(vTe,{onClick:i,"aria-describedby":"user-popover",children:o?Ka(So,{fill:f.palette.common.white,...Wr,style:{marginLeft:"4px"}}):Ka(G,{variant:"body2",style:{color:f.palette.common.white,fontSize:"12px"},children:`+${s-u}`})}),Ka(RTe,{id:"user-popover",open:!!o,anchorEl:o,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:Object.entries(e).slice(u,s).map(([d,p])=>s2(wTe,{onClick:()=>n(`${t}/user/${p.user_id}`),children:[Ka(uM,{alt:p.name,src:p.avatar_url,borderColor:p.border_color,imgProps:{referrerPolicy:"no-referrer"}}),Ka(ETe,{variant:"body1",children:p.name})]},d))})]})]})},fM=OTe;import{jsx as dM}from"react/jsx-runtime";function PTe({tooltip:e,tooltipPlacement:t="top",variant:r="filled",label:o,icon:a,onClick:n,onDelete:i,style:l,...s}){return dM(ge,{title:e,placement:t,children:dM(Ct,{sx:{paddingY:"10px",padding:"5px 6px !important",color:"black",fontSize:"14px",textTransform:"uppercase",fontWeight:400,height:"unset",borderRadius:"100px",border:"0.5px solid #51636B",background:"white",maxWidth:"230px"},variant:r,label:o,onClick:n,onDelete:i,icon:a,style:l,...s})})}var pM=PTe;import{useState as mM}from"react";import{Fragment as cM,jsx as Un,jsxs as ITe}from"react/jsx-runtime";var _Te=({zoomEffect:e=!1,imgURL:t,type:r,width:o,height:a,style:n={}})=>{let[i,l]=mM(!1),[s,u]=mM(!1),f=()=>{e&&u(!0)},d=()=>{u(!1)},p=({type:m})=>m.type==="filter"?Un(q4,{width:o,height:a,style:n}):Un(Na,{width:o,height:a,style:n});return Un(cM,{children:t&&t.length>0?Un("div",{style:{width:"100%",height:"100%",position:"relative"},children:i?Un(p,{type:r}):ITe(cM,{children:[Un("img",{src:t[0],alt:"Design SnapShot",loading:"lazy",onClick:f,onError:()=>l(!0),style:{cursor:"pointer",width:"100%",height:"100%",objectFit:"cover"}}),Un(na,{open:s,onClose:d,style:{backgroundColor:"rgba(0, 0, 0, 0.8)"},PaperProps:{style:{background:"transparent",boxShadow:"none",overflow:"hidden",maxWidth:"60vw"}},children:Un("img",{src:t[0],alt:"Zoomed Design SnapShot",style:{objectFit:"contain",maxWidth:"100%",maxHeight:"100%"}})})]})}):Un(p,{type:r})})},pf=_Te;import{useEffect as NTe,useState as BTe}from"react";import kTe from"js-yaml";var MTe=async(e,t=!0,r)=>new Promise(o=>{let a=new Image;t&&!e.startsWith("http")?a.src=(r?r():"")+e:a.src=e,a.onload=()=>{o(!0)},a.onerror=()=>{o(!1)}}),LTe=async(e,t,r)=>{let o=[];for(let a of e){let n=`${t}/${a.toLowerCase()}/${r}/${a.toLowerCase()}-color.svg`;await MTe(n)&&o.push(a)}return o},xM=e=>{try{return kTe.load(e)?.version||e6}catch(t){return console.error("Failed to parse pattern file to get version:",t),e6}},hM=async({technologies:e,basePath:t="",subBasePath:r="",setAvailableTechnologies:o})=>{let a=await LTe(e,t,r);o(a)},e6="0.0.0",u2=e=>{switch(e.visibility){case"published":return e?.catalog_data?.published_version||e6;case"public":case"private":return xM(e.pattern_file);default:return xM(e.pattern_file)}};import{styled as He,Typography as DTe}from"@mui/material";var gM=He("div")(()=>({width:"85px",height:"88px",overflow:"hidden",position:"absolute",top:"-3px",left:"-3px",zIndex:10})),TM=He("div")(()=>({color:"#eee",fontSize:"0.875rem",lineHeight:"1.5",fontWeight:"600",borderBottom:"1px solid rgba(231, 239, 243, 0.40)"})),SM=He("div")(()=>({color:"#eee",overflow:"hidden",fontSize:"14px",lineHeight:"24px",fontWeight:"400",marginTop:".8rem"})),CM=He("div")(({catalogClassName:e,theme:t})=>({font:"bold 10px sans-serif",WebkitTransform:"rotate(-45deg)",textAlign:"center",transform:"rotate(-45deg)",position:"relative",padding:"4px 0",top:"15px",left:"-30px",width:"120px",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",backgroundColor:{community:p4.main,official:t.palette.background.cta?.default||"#EBC017",verified:t.palette.background.brand?.default||"#00B39F"}[e],color:e==="official"?t.palette.common.black:t.palette.common.white})),t6=He("div")(({shouldFlip:e,isDetailed:t,outerStyles:r,theme:o})=>({position:"relative",borderRadius:"1rem",textAlign:"center",transformStyle:"preserve-3d",display:"block",perspective:"1000px",transition:"all .9s ease-out",...e&&{"&:hover":{cursor:"pointer","& .innerCard":{transform:"rotateY(180deg)"}}},...t&&{[o.breakpoints.down("lg")]:{height:"16.75rem"}},...r})),r6=He("div")(({shouldFlip:e,isDetailed:t})=>({position:"relative",width:"100%",height:"100%",textAlign:"center",transition:"transform 0.6s",...e&&{transformOrigin:"50% 50%",transformStyle:"preserve-3d"},...t&&{boxShadow:"0 4px 8px 0 rgba(0,0,0,0.2)",borderRadius:"0.9375rem"}})),yM=He("span")(({theme:e})=>({position:"absolute",top:"0",right:"0",minWidth:"3rem",padding:"0 0.75rem",fontSize:"0.875rem",textTransform:"capitalize",background:e.palette.background.brand?.default,color:e.palette.background.constant?.white,borderRadius:"0 1rem 0 2rem",zIndex:5})),bM=He("p")(({theme:e})=>({fontSize:"1rem",textTransform:"capitalize",margin:"0rem",lineHeight:"1.5",textAlign:"center",color:e.palette.mode==="light"?gn:Do,fontWeight:"600"})),vM=He(DTe)(({theme:e,hasRibbon:t})=>({fontWeight:"bold",textTransform:"capitalize",color:e.palette.text.default,fontSize:"1.125rem",padding:"0rem 1rem",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"center",width:"100%",margin:t?"3.5rem 0 1.59rem 0":"2rem 0 1.59rem 0",fontFamily:"inherit",...t&&{paddingLeft:"1.5rem"}})),wM=He("div")(({isDetailed:e,theme:t})=>({display:"flex",justifyContent:"space-around",fontSize:"0.2rem",color:t.palette.mode==="light"?"rgba(26, 26, 26, .8)":t.palette.text.default,padding:"0.9rem 0.1rem",background:t.palette.mode==="light"?"#E7EFF3":gn,...e&&{position:"absolute",bottom:"0px"},...!e&&{marginTop:"1.2rem"},borderRadius:"0 0 0.9375rem 0.9375rem",width:"100%"})),EM=He("div")(()=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.2rem",color:"rgba(26, 26, 26, .8)",margin:"0rem",padding:"0.1rem"})),f2=He("div")(()=>({height:"max-content",display:"flex",marginTop:"-1rem",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start","@media (max-width:1200px)":{height:"max-content"}})),z9t=He("div")(({theme:e})=>({background:e.palette.background.surfaces,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.5rem",width:"100%",borderRadius:"0.5rem"})),j9t=He("div")(({theme:e})=>({display:"inline-block",backgroundColor:e.palette.background.supplementary,color:e.palette.text.constant?.white,borderRadius:"4px",fontSize:"0.75rem",fontWeight:"bold",margin:"5px 0",padding:"2px 5px",maxWidth:"fit-content"})),RM=He("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.75",color:e.palette.text.constant?.white,position:"absolute",bottom:"16px",left:"16px",borderRadius:"4px",background:e.palette.background.supplementary,justifyContent:"center"})),OM=He("p")(({theme:e})=>({fontSize:"0.75rem",margin:"0",padding:"0.25rem .5rem",lineHeight:"1.5",textTransform:"lowercase",fontWeight:"600",borderRadius:"4.05px",color:e.palette.text.constant?.white})),K9t=He("div")(()=>({perspective:"1000px","&:hover .flipper":{transform:"rotateY(-180deg)"}})),$9t=He("div")(()=>({transition:"0.6s",transformStyle:"preserve-3d",position:"relative"})),FTe=He("div")(()=>({backfaceVisibility:"hidden",position:"absolute",top:0,left:0,width:"100%",height:"100%"})),Y9t=He(FTe)(()=>({zIndex:2,transform:"rotateY(0deg)"})),Z9t=He("div")(()=>({transform:"rotateY(-180deg)",color:"#fff",display:"inline-flex",flexDirection:"column",padding:"16px",height:"100%",width:"100%",position:"relative",bottom:0,left:0,backfaceVisibility:"hidden"})),Q9t=He("div")(({theme:e})=>({position:"absolute",background:`linear-gradient(to bottom right, black 40%, ${e.palette.background.brand?.default})`,width:"100%",top:0,left:0,display:"flex",flexDirection:"column",alignItems:"left",padding:"16px",boxShadow:"2px 2px 3px 0px black",borderRadius:"1rem"})),AM=He("div")({height:"max-content",display:"flex",marginTop:"1.2rem",flexDirection:"row",padding:"0rem 1rem",justifyContent:"flex-start",alignItems:"center","@media (max-width:1200px)":{height:"max-content"}}),PM=He("div")(()=>({display:"flex",flexDirection:"column",justifyContent:"center",width:"100%",gap:"1rem",alignItems:"flex-start",background:"rgba(231, 239, 243, 0.40)",borderRadius:"0.25rem",padding:"0.5rem 1rem",alignSelf:"stretch"})),X9t=He("div")({display:"flex",alignItems:"center",color:"#fff",margin:"20px 0"}),_M=He("div")(({isCatalog:e})=>({boxShadow:"2px 2px 3px 0px rgba(26, 26, 26, 1)",position:"absolute",width:"100%",height:"100%",WebkitBackfaceVisibility:"hidden",borderRadius:"0.9375rem",backfaceVisibility:"hidden",color:"white",transform:"rotateY(180deg)",...e&&{background:"linear-gradient(335deg, rgba(0, 179, 159, 0.80) -13.6%, rgba(0, 0, 0, 0.68) 66.8%), radial-gradient(3970.04% 147.22% at 47.5% 100%, #000 0%, #395357 100%)"},...!e&&{background:"linear-gradient(250deg, #477e96 0%, #00b39f 35%, rgb(60, 73, 79) 100%)"}})),d2=e=>{let t=`linear-gradient(to left bottom, ${nx}, ${ox},white, white, white, white, white, white, white, white, ${nx}, ${ox})`,r=`linear-gradient(to right top, ${ix}, ${Ae[30]}, ${Ae[20]}, ${Ae[10]}, ${Ae[10]}, ${Ae[10]}, ${Ae[10]}, ${Ae[10]}, ${Ae[10]}, ${ie[20]}, ${ie[10]}, black)`;return e?t:r},o6=He("div")(({shouldFlip:e,isDetailed:t,theme:r})=>{let o=r.palette.mode==="light",a=d2(o),n=`2px 2px 3px 0px ${r.palette.background.brand?.default}`;return{position:"relative",zIndex:1,...e&&{position:"absolute",boxShadow:n,background:a},...t&&{boxShadow:n,background:a},width:"100%",height:"100%",WebkitBackfaceVisibility:"hidden",borderRadius:"0.9375rem",backfaceVisibility:"hidden"}}),IM=He("div")(()=>({fontSize:"0.875rem",textTransform:"capitalize",color:"#eee",margin:"0rem",padding:"0.1rem",fontWeight:"400",lineHeight:"1.5"})),kM=He("p")(()=>({fontSize:"0.876rem",margin:"0rem",lineHeight:"1.5",fontWeight:"400",color:"#eee"})),MM=He("div")(()=>({height:"max-content",display:"flex",margin:"0",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start",fontWeight:"400",textAlign:"right",color:"#E7EFF3",textTransform:"capitalize","@media (max-width:1200px)":{height:"max-content"}})),LM=He("div")(({theme:e})=>{let t=e.palette.mode==="light",r=d2(t),o=`2px 2px 3px 0px ${e.palette.background.brand?.default}`;return{background:r,boxShadow:o,textAlign:"center",borderRadius:"1rem",width:"15rem",height:"18rem",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",[e.breakpoints.down("lg")]:{height:"18.75rem"}}});import{Fragment as a6,jsx as Qe,jsxs as bo}from"react/jsx-runtime";var m3t=L("a")(()=>({textDecoration:"none"}));var HTe=({catalogClassName:e})=>e?Qe(gM,{children:Qe(CM,{catalogClassName:e,children:e})}):Qe(a6,{}),VTe=({pattern:e,patternType:t,cardHeight:r="16.5rem",cardWidth:o="15rem",cardStyles:a,shouldFlip:n=!0,isDetailed:i=!0,cardTechnologies:l=!0,avatarUrl:s,UserName:u,children:f,basePath:d,subBasePath:p,getHostUrl:m,onCardClick:x})=>{let h={height:r,width:o,...a},g=ee(),T=e.catalog_data?.compatibility||[],w=5,[E,I]=BTe([]),D=u2(e);return NTe(()=>{hM({technologies:T,basePath:d,subBasePath:p,setAvailableTechnologies:I})},[]),n?Qe(t6,{shouldFlip:n,isDetailed:i,outerStyles:h,onClick:x,children:bo(r6,{shouldFlip:n,className:"innerCard",children:[bo(o6,{shouldFlip:n,isDetailed:i,children:[i&&bo(a6,{children:[Qe(HTe,{catalogClassName:e?.catalog_data?.content_class??""}),Qe(yM,{children:t}),Qe(vM,{hasRibbon:!!e?.catalog_data?.content_class,children:e.name})]}),Qe(f2,{children:Qe("div",{style:{background:g.palette.mode==="light"?"rgba(231, 239, 243, 0.4)":"transparent",display:"flex",alignItems:"center",justifyContent:"center",padding:"0.5rem",width:"100%",borderRadius:"0.5rem"},children:f})}),i&&Qe(wM,{isDetailed:i,children:[{Icon:fa,count:e.download_count},{Icon:Ad,count:e.clone_count},{Icon:qd,count:e.view_count},{Icon:Nd,count:e.deployment_count},{Icon:wn,count:e.share_count}].map(({Icon:C,count:b},A)=>bo(EM,{children:[Qe(C,{width:18,height:18,fill:g.palette.mode==="light"?gn:Do}),Qe(bM,{children:b})]},A))})]}),n&&bo(_M,{isCatalog:!0,children:[bo(AM,{children:[Qe(Dt,{alt:"Design Author",src:s,sx:{width:"32px",height:"32px",color:"#293B43"}}),Qe(MM,{children:u})]}),Qe(f2,{style:{marginTop:"0.7rem",gap:"5px"},children:l&&bo(PM,{children:[Qe(TM,{children:"Technologies"}),Qe(xe,{container:!0,style:{gap:"4px",alignItems:"flex-start",flexWrap:"nowrap"},children:T.length<1||E.length<1?Qe(SM,{children:"No technologies"}):bo(a6,{children:[E.slice(0,w).map((C,b)=>{let A=(m?m():"")+`${d}/${C.toLowerCase()}/${p}/${C.toLowerCase()}-color.svg`;return Qe(xe,{children:Qe(ge,{title:C.toLowerCase(),children:Qe("img",{height:"24px",width:"24px",alt:C.toLowerCase(),src:A})},b)},b)}),E.length>w&&bo(xe,{sx:{padding:"0 8px 0 4px",borderRadius:"16px",border:"1px solid #C9DBE3",background:"#E7EFF3",color:"#3C494E",fontSize:"14px",lineHeight:"1.5",fontWeight:"600"},children:["+",E.length-w]})]})})]})}),i&&Qe(f2,{style:{marginTop:"20px"},children:Qe(xe,{container:!0,style:{justifyContent:"space-between",alignItems:"center"},children:bo(xe,{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[bo("div",{style:{display:"flex",flexDirection:"row",gap:"0.2rem",alignItems:"center"},children:[Qe(RO,{width:18,height:18}),Qe(kM,{children:"Updated At"})]}),bo(IM,{children:[" ",new Date(e.updated_at.toString().slice(0,10)).toLocaleDateString("en-US",{day:"numeric",month:"long",year:"numeric"})]})]})})}),D&&Qe(RM,{children:bo(OM,{children:["v",D]})})]})]})}):Qe(t6,{shouldFlip:n,isDetailed:i,outerStyles:h,children:Qe(r6,{shouldFlip:n,className:"innerCard",children:Qe(o6,{shouldFlip:n,isDetailed:i,children:f})})})},mf=VTe;import{jsx as DM,jsxs as WTe}from"react/jsx-runtime";var UTe=()=>{let e=ee();return WTe(LM,{children:[DM(k4,{fill:e.palette.text.default,width:"100px",height:"100px"}),DM("h3",{style:{color:e.palette.text.default},children:"No match found"})]})},FM=UTe;import f6 from"react";import{jsx as GTe}from"react/jsx-runtime";function qTe({children:e,open:t,anchorEl:r,placement:o="bottom-end",...a}){return GTe(bd,{open:t,anchorEl:r,placement:o,...a,children:e})}var Ap=qTe;import jTe from"mui-datatables";import s6,{useCallback as KTe}from"react";import{jsx as NM}from"react/jsx-runtime";var zTe=({width:e=V,height:t=U,...r})=>NM("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:e,height:t,fill:r.fill||"currentColor",...r,children:NM("path",{d:"M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z"})}),n6=zTe;var M3t=({kind:e,model:t,color:r})=>!e||!t||!r?null:`/ui/public/static/img/meshmodels/${t}/${r}/${e.toLowerCase()}-${r}.svg`;import HM from"moment";import{jsx as BM}from"react/jsx-runtime";var ol=e=>HM(e).fromNow(),Ts=e=>HM(e).format("ddd, MMM D, YYYY h:mm A"),Ss=e=>{let t={year:"numeric",month:"short",day:"numeric"};return new Date(e).toLocaleDateString("en-US",t)},i6=({date:e})=>BM(ge,{title:Ts(e),disableInteractive:!0,children:BM("div",{children:ol(e)})});import{Fragment as p2,jsx as Lr,jsxs as l6}from"react/jsx-runtime";var lo=L("div",{shouldForwardProp:e=>e!=="disabled"})(({disabled:e=!1})=>({width:"fit-content",cursor:e?"not-allowed":"pointer",opacity:e?"0.5":"1",display:"flex","& svg":{cursor:e?"not-allowed":"pointer"}})),Pp=({actionsList:e})=>{let[t,r]=s6.useState(null),[o,a]=s6.useState(!1),n=ee(),i=u=>{r(u.currentTarget)},l=()=>{r(null),a(!1)},s=u=>{u.type==="share-social"?a(!o):(u.onClick&&u.onClick(),l())};return l6(p2,{children:[Lr(_t,{title:"View Actions",onClick:i,icon:Lr(n6,{fill:n.palette.icon.default}),arrow:!0}),Lr(Gl,{id:"basic-menu",anchorEl:t,open:!!t,onClose:l,sx:{"& .MuiPaper-root":{backgroundColor:n.palette.background.card}},children:e&&e.map((u,f)=>u.type==="share-social"?[l6(xt,{sx:{width:"-webkit-fill-available"},onClick:()=>s(u),disabled:u.disabled,children:[Lr(Fa,{children:Lr(wn,{width:24,height:24,fill:n.palette.text.primary})}),Lr(Gt,{sx:{color:n.palette.text.primary},children:u.title})]},`${f}-menuitem`),Lr(aa,{variant:"submenu",in:o,unmountOnExit:!0,children:u.customComponent},`${f}-collapse`)]:Lr(lo,{disabled:u.disabled,children:l6(xt,{sx:{width:"-webkit-fill-available"},onClick:()=>s(u),disabled:u.disabled,children:[Lr(Fa,{children:u.icon}),Lr(Gt,{sx:{color:n.palette.text.primary},children:u.title})]})},f))})]})},$Te=({data:e,columns:t,options:r={},tableCols:o,updateCols:a,columnVisibility:n,rowsPerPageOptions:i=[10,25,50,100],...l})=>{let s={...r,print:!1,download:!1,search:!1,filter:!1,viewColumns:!1,rowsPerPageOptions:i,onViewColumnsChange:(d,p)=>{switch(p){case"add":{let m=t.find(x=>x.name===d);m&&m.options&&(m.options.display=!0,a&&a([...t]));break}case"remove":{let m=t.find(x=>x.name===d);m&&m.options&&(m.options.display=!1,a&&a([...t]));break}}}},u=KTe(()=>{t?.forEach(d=>{typeof d=="object"&&d!==null&&(d.options||(d.options={}),d.options.display=n&&n[d.name],["updated_at","created_at","deleted_at","last_login_time","joined_at","last_run","next_run"].includes(d.name)&&(d.options.customBodyRender=p=>{if(p==="NA"||p===null||p===void 0)return Lr(p2,{children:p});if(typeof p=="object"&&"Valid"in p){let m=p;return m.Valid&&m.Time?Lr(i6,{date:m.Time}):Lr(p2,{children:"NA"})}else return typeof p=="string"?Lr(i6,{date:p}):Lr(p2,{children:p})}))}),a&&a([...t])},[n,a]);return s6.useEffect(()=>{u()},[u]),Lr(jTe,{columns:o??[],data:e||[],title:void 0,components:{ExpandButton:()=>"",Checkbox:Br},options:{...s,elevation:0,enableNestedDataAccess:"."},...l})},vo=$Te;import{jsx as u6}from"react/jsx-runtime";function YTe({children:e,title:t,onClick:r,icon:o,style:a,arrow:n=!0,disabled:i=!1,iconType:l,id:s,placement:u}){let f=ee();return u6(ge,{title:t,arrow:n,placement:u,id:s,children:u6(lo,{disabled:i,children:u6(Ge,{disabled:i,onClick:r,sx:{"&:hover":{"& svg":{fill:l==="delete"?f.palette.error.main:f.palette.primary.brand?.default}},...a},children:o||e})})})}var _t=YTe;import{jsx as $a,jsxs as ZTe}from"react/jsx-runtime";function VM({columns:e,id:t,customToolsProps:r,style:o}){let[a,n]=f6.useState(!1),[i,l]=f6.useState(null),s=ee(),u=p=>{if(p.stopPropagation(),n(m=>!m),i){l(null);return}l(p.currentTarget)},f=()=>{l(null),n(!1)},d=(p,m)=>{p.stopPropagation(),r.setColumnVisibility(x=>({...x,[m]:p.target.checked}))};return $a(f6.Fragment,{children:ZTe("div",{id:t,children:[$a(_t,{title:"View Columns",onClick:u,icon:$a(b4,{fill:s.palette.icon.default}),arrow:!0}),$a(Ap,{style:{...o,zIndex:1350},open:!!i,anchorEl:i,placement:"bottom-end",modifiers:[{name:"flip",options:{enabled:!1}},{name:"preventOverflow",options:{enabled:!0,boundariesElement:"scrollParent"}}],children:$a(K,{children:$a(xn,{onClickAway:f,children:$a("div",{children:$a(gr,{sx:{display:"flex",flexDirection:"column",padding:"1rem",boxShadow:a?"0px 4px 8px rgba(0, 0, 0, 0.2)":"none",background:s.palette.background.surfaces},children:e.map(p=>$a(Wl,{control:$a(Br,{checked:r.columnVisibility[p.name],onChange:m=>d(m,p.name)}),label:p.label},p.name))})})})})})]})})}var Ta=VM;import{useState as QTe}from"react";import{Fragment as t8e,jsx as m2,jsxs as UM}from"react/jsx-runtime";var XTe=L("figure")(({align:e})=>({margin:"1rem 0",textAlign:e,width:"100%"})),JTe=L("figcaption")(({align:e})=>({fontSize:"0.9rem",color:"#666",marginTop:"0.5rem",textAlign:e})),e8e=({src:e,alt:t,caption:r,align:o="left",...a})=>{let[n,i]=QTe(!1),l=()=>{i(!0)},s=()=>{i(!1)};return UM(t8e,{children:[UM(XTe,{align:o,children:[m2("img",{src:e,alt:t||r||"",loading:"lazy",onClick:l,...a,style:{cursor:"pointer",maxWidth:"100%",height:"auto",boxShadow:"rgba(149, 157, 165, 0.2) 0px 8px 24px",borderRadius:"15px",width:"50%"}}),r&&m2(JTe,{align:o,children:r})]}),m2(na,{open:n,onClose:s,style:{backgroundColor:"rgba(0, 0, 0, 0.8)"},PaperProps:{style:{background:"transparent",boxShadow:"none",overflow:"auto",maxWidth:"100%"}},children:m2("img",{src:e,alt:t||r||"",onClick:s,style:{objectFit:"contain",maxWidth:"100%",maxHeight:"100%"}})})]})},WM=e8e;import{Backdrop as i8e}from"@mui/material";import{jsx as o8e}from"react/jsx-runtime";function r8e({children:e,...t}){return o8e(gd,{...t,children:e})}var c2=r8e;import{jsx as n8e}from"react/jsx-runtime";function a8e({children:e,...t}){return n8e(Hl,{...t,children:e})}var x2=a8e;import{styled as h2}from"@mui/material";var qM=h2("div")(({theme:e})=>{let t=e.palette.mode==="light"?Mu:ir,r=e.palette.mode==="light"?d4:zw;return{display:"flex",justifyContent:"space-between",padding:"1rem",boxShadow:"inset 0px -1px 3px 0px rgba(0,0,0,0.2)",background:`linear-gradient(90deg, ${t}, ${r})`,filter:e.palette.mode==="light"?`progid:DXImageTransform.Microsoft.gradient(startColorstr='${Mu}',endColorstr='${d4}',GradientType=1)`:`progid:DXImageTransform.Microsoft.gradient(startColorstr='${Ed}',GradientType=1)`}}),GM=h2("div")(()=>({zIndex:"100",borderRadius:"5px"})),zM=h2("div")(({theme:e})=>({padding:"1rem 1.5rem",display:"flex",justifyContent:"flex-end",backgroundColor:e.palette.mode==="light"?Mu:Ed,boxShadow:"inset 0px 3px 5px 0px rgba(0,0,0,0.25)"})),jM=h2("div")(({theme:e})=>({padding:"2rem 1rem",backgroundColor:e.palette.mode==="light"?ut:wd}));import{Fragment as s8e,jsx as Sa,jsxs as KM}from"react/jsx-runtime";function l8e({open:e,onClose:t,title:r,leftHeaderIcon:o,helpText:a,helpArea:n,actions:i,hideActions:l=!1,content:s,maxWidth:u="xs",...f}){return Sa(na,{sx:{"& .MuiDialog-paper":{borderRadius:"10px"}},open:e,maxWidth:u,onClose:t,slots:{backdrop:i8e},slotProps:{backdrop:{timeout:500}},...f,children:KM(GM,{children:[KM(qM,{children:[o&&Sa("div",{style:{display:"flex",alignItems:"center"},children:o}),r&&Sa(s8e,{children:Sa("div",{style:{display:"flex",alignItems:"center"},children:Sa(Ul,{children:r})})}),Sa("div",{style:{display:"flex",alignItems:"center"},children:a&&Sa("div",{children:n})})]}),Sa(x2,{children:Sa(jM,{children:s})}),!l&&Sa(c2,{children:Sa(zM,{children:i})})]})})}var $M=l8e;import{jsx as YM}from"react/jsx-runtime";function u8e({children:e,style:t,...r}){return YM(Ul,{sx:t,...r,children:YM(G,{sx:{flexGrow:1,fontSize:"1.25rem",textAlign:"center"},variant:"h6",children:e})})}var g2=u8e;import{jsx as d6,jsxs as p6}from"react/jsx-runtime";function f8e({icon:e,message:t,pointerLabel:r,poiner:o=!1}){return p6("div",{style:{textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",minHeight:"50vh"},children:[o&&p6(xe,{style:{display:"flex",width:"100%",padding:"0 40px"},children:[d6(W4,{}),d6(G,{sx:{fontSize:24,color:"#808080",px:5,py:2,lineHeight:1.5,letterSpacing:"0.15px",display:"flex",alignItems:"flex-end",marginBottom:"-2rem"},children:r})]}),p6(xe,{style:{marginTop:"120px"},children:[e,d6(G,{sx:{fontSize:"1.5rem",color:"#808080",px:5,py:2,lineHeight:1},children:t})]})]})}var ZM=f8e;import{styled as c6}from"@mui/material";import{createContext as d8e,Component as p8e,createElement as QM,useContext as lgt,useState as sgt,useMemo as ugt,forwardRef as fgt}from"react";var m8e=d8e(null),m6={didCatch:!1,error:null},_p=class extends p8e{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=m6}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){let{error:t}=this.state;if(t!==null){for(var r,o,a=arguments.length,n=new Array(a),i=0;i<a;i++)n[i]=arguments[i];(r=(o=this.props).onReset)===null||r===void 0||r.call(o,{args:n,reason:"imperative-api"}),this.setState(m6)}}componentDidCatch(t,r){var o,a;(o=(a=this.props).onError)===null||o===void 0||o.call(a,t,r)}componentDidUpdate(t,r){let{didCatch:o}=this.state,{resetKeys:a}=this.props;if(o&&r.error!==null&&c8e(t.resetKeys,a)){var n,i;(n=(i=this.props).onReset)===null||n===void 0||n.call(i,{next:a,prev:t.resetKeys,reason:"keys"}),this.setState(m6)}}render(){let{children:t,fallbackRender:r,FallbackComponent:o,fallback:a}=this.props,{didCatch:n,error:i}=this.state,l=t;if(n){let s={error:i,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")l=r(s);else if(o)l=QM(o,s);else if(a!==void 0)l=a;else throw i}return QM(m8e.Provider,{value:{didCatch:n,error:i,resetErrorBoundary:this.resetErrorBoundary}},l)}};function c8e(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,o)=>!Object.is(r,t[o]))}import{Fragment as g8e,jsx as wo,jsxs as Ip}from"react/jsx-runtime";var x8e=c6(G)(({theme:e})=>({color:e.palette.text.default,fontWeight:"normal",marginTop:"2px",marginBottom:"2px",fontSize:"1.15rem"})),XM=c6(xo)(({theme:e})=>({color:e.palette.border.brand,textDecoration:"underline",cursor:"pointer"})),h8e=c6("div")(({theme:e})=>({display:"flex",flexDirection:"column",backgroundColor:e.palette.background.code,color:e.palette.text.tertiary,padding:".85rem",borderRadius:".2rem",marginBlock:".5rem"}));function x6({error:e,children:t,showPackageInfo:r,version:o}){return Ip("div",{role:"alert",children:[wo("h2",{children:"Uh-oh!\u{1F614} Please pardon the mesh."}),Ip(h8e,{children:[Ip("code",{children:[wo("strong",{children:"Error: "}),e.message]}),wo("br",{}),r&&Ip(g8e,{children:[wo("strong",{children:"Version:"})," ",o]})]}),Ip(x8e,{children:["We apologize for the inconvenience. The issue may be on our end. If troubleshooting doesn't work, please check out our support channels"," ",wo(XM,{href:"https://discuss.layer5.io/",target:"_blank",rel:"noopener noreferrer",children:"Discuss Forum"})," "," or ",wo(XM,{href:"https://slack.layer5.io/",target:"_blank",rel:"noopener noreferrer",children:"Slack"})]}),wo(K,{children:t})]})}var JM=(e,t)=>{let r=window.location.href,o=new Date().toLocaleString();console.log("Error Caught Inside Boundary --reportError",e,"Info",t,"Page URL:",r,"Timestamp:",o)},Gr=({customFallback:e,children:t,onErrorCaught:r})=>{let o=window.location.href,a=new Date().toLocaleString();return wo(_p,{FallbackComponent:e||(i=>wo(x6,{...i,pageUrl:o,timestamp:a})),onError:(i,l)=>{r?.(i.message),JM(i,l)},children:t})},eL=({Component:e,errorHandlingProps:t={children:null}})=>wo(Gr,{...t,children:wo(e,{})}),tL=({Component:e})=>wo(_p,{FallbackComponent:()=>null,onError:JM,children:wo(e,{})});import y6 from"@mui/material/Typography";import{useState as Dp}from"react";import{styled as qo}from"@mui/material";import{useRef as b8e,useState as S2}from"react";import{useState as T8e}from"react";import{Fragment as C8e,jsx as T2,jsxs as y8e}from"react/jsx-runtime";function S8e({content:e,fontSize:t,fontWeight:r=400,variant:o="standard",bgColor:a="#141414",icon:n=T2(P4,{fontSize:"small"}),...i}){let[l,s]=T8e(null);return y8e(C8e,{children:[T2(Ge,{size:"small",onClick:p=>{s(p.currentTarget)},sx:{color:"inherit",padding:"2px",verticalAlign:"middle"},children:n}),T2(yd,{open:!!l,anchorEl:l,onClose:()=>{s(null)},disablePortal:!0,container:l?.ownerDocument?.body,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},PaperProps:{sx:{background:a,zIndex:1501,opacity:"1",color:ut,maxWidth:"500px",fontSize:t||(o==="standard"?"1rem":"0.75rem"),fontWeight:r,borderRadius:"0.5rem",padding:o==="standard"?"0.9rem":"0.5rem 0.75rem",boxShadow:"rgba(0, 0, 0, 0.6) 0px 4px 10px, rgba(0, 0, 0, 0.5) 0px 2px 4px"}},...i,children:typeof e=="string"?T2(df,{content:e}):e})]})}var h6=S8e;import{jsx as Ya,jsxs as kp}from"react/jsx-runtime";var cf=qo(Ge)`
60
60
  && {
61
61
  & svg {
62
62
  fill: #fff;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sistent/sistent",
3
- "version": "0.14.213",
3
+ "version": "0.14.214",
4
4
  "description": "Reusable React Components and SVG Icons library",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,7 +23,7 @@
23
23
  "format:write": "prettier --write \"**/*.{ts,tsx,md}\" --config ./.prettierrc",
24
24
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
25
25
  "lint:fix": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --fix",
26
- "prepare": "husky install",
26
+ "prepare": "husky",
27
27
  "test": "jest",
28
28
  "versionup:major": "npm version major",
29
29
  "versionup:minor": "npm version minor",