@sistent/sistent 0.15.2 → 0.15.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -56,7 +56,7 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var se=le(y,R,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 uTe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];tM.peek=pTe;var L8={canContainEols:["delete"],enter:{strikethrough:fTe},exit:{strikethrough:dTe}},D8={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:uTe}],handlers:{delete:tM}};function fTe(e){this.enter({type:"delete",children:[]},e)}function dTe(e){this.exit(e)}function tM(e,t,r,o){let a=hs(o),n=r.enter("strikethrough"),i=a.move("~~");return i+=l2(e,r,{...a.current(),before:i,after:"~"}),i+=a.move("~~"),n(),i}function pTe(){return"~"}F8.peek=mTe;function F8(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=i2(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 mTe(){return"`"}function cTe(e){return e.length}function oM(e,t){let r=t||{},o=(r.align||[]).concat(),a=r.stringLength||cTe,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=xTe(e[f][T]);if(r.alignDelimiters!==!1){let v=a(E);g[T]=v,(s[T]===void 0||v>s[T])&&(s[T]=v)}h.push(E)}i[f]=h,l[f]=g}let d=-1;if(typeof o=="object"&&"length"in o)for(;++d<u;)n[d]=rM(o[d]);else{let h=rM(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),v=g+"-".repeat(E)+T;r.alignDelimiters!==!1&&(E=g.length+E+T.length,E>s[d]&&(s[d]=E),m[d]=E),p[d]=v}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]||"",v="",I="";if(r.alignDelimiters!==!1){let k=s[d]-(g[d]||0),C=n[d];C===114?v=" ".repeat(k):C===99?k%2?(v=" ".repeat(k/2+.5),I=" ".repeat(k/2-.5)):(v=" ".repeat(k/2),I=v):I=" ".repeat(k)}r.delimiterStart!==!1&&!d&&T.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&E==="")&&(r.delimiterStart!==!1||d)&&T.push(" "),r.alignDelimiters!==!1&&T.push(v),T.push(E),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 xTe(e){return e==null?"":String(e)}function rM(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 B8={enter:{table:hTe,tableData:aM,tableHeader:aM,tableRow:TTe},exit:{codeText:STe,table:gTe,tableData:N8,tableHeader:N8,tableRow:N8}};function hTe(e){let t=e._align;this.enter({type:"table",align:t.map(r=>r==="none"?null:r),children:[]},e),this.setData("inTable",!0)}function gTe(e){this.exit(e),this.setData("inTable")}function TTe(e){this.enter({type:"tableRow",children:[]},e)}function N8(e){this.exit(e)}function aM(e){this.enter({type:"tableCell",children:[]},e)}function STe(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,CTe));let r=this.stack[this.stack.length-1];r.value=t,this.exit(e)}function CTe(e,t){return t==="|"?t:e}function H8(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"),v=l2(m,h,{...g,before:n,after:n});return E(),T(),v}function u(m,x){return oM(m,{align:x,alignDelimiters:o,padding:r,stringLength:a})}function f(m,x,h){let g=m.children,T=-1,E=[],v=x.enter("table");for(;++T<g.length;)E[T]=d(g[T],x,h);return v(),E}function d(m,x,h){let g=m.children,T=-1,E=[],v=x.enter("tableRow");for(;++T<g.length;)E[T]=s(g[T],m,x,h);return v(),E}function p(m,x,h){let g=F8(m,x,h);return h.stack.includes("tableCell")&&(g=g.replace(/\|/g,"\\$&")),g}}function nM(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 iM(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 lM(e,t,r,o){let a=iM(r),n=r.bulletCurrent||nM(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 V8={exit:{taskListCheckValueChecked:sM,taskListCheckValueUnchecked:sM,paragraph:yTe}},U8={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:bTe}};function sM(e){let t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function yTe(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 bTe(e,t,r,o){let a=e.children[0],n=typeof e.checked=="boolean"&&a&&a.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",l=hs(o);n&&l.move(i);let s=lM(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 W8(){return[A8,I8(),L8,B8,V8]}function q8(e){return{extensions:[P8,M8(),D8,H8(e),U8]}}function _p(e={}){let t=this.data();r("micromarkExtensions",zI(e)),r("fromMarkdownExtensions",W8()),r("toMarkdownExtensions",q8(e));function r(o,a){(t[o]?t[o]:t[o]=[]).push(a)}}import{styled as vr}from"@mui/material";var s2=vr("a")(({theme:e})=>({color:e.palette.background.brand?.default,textDecoration:"none","&:hover":{textDecoration:"underline"},cursor:"pointer",fontFamily:"inherit"})),uM=vr("a")(()=>({textDecoration:"none","&:hover":{textDecoration:"underline"},cursor:"pointer"})),fM=vr("p")(({theme:e})=>({color:e.palette.text.default,marginBlock:"0px",...e.typography.textB1Regular,fontFamily:"inherit"})),dM=vr("p")(({theme:e})=>({color:e.palette.text.constant?.white||Yw.inverse,marginBlock:"0px",fontFamily:"inherit"})),G8=vr("h1")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),z8=vr("h2")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),j8=vr("h3")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),K8=vr("h4")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),$8=vr("h5")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),Y8=vr("h6")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),Z8=vr("blockquote")(({theme:e})=>({color:e.palette.text.default,borderLeft:`2px solid ${e.palette.text.brand}`,backgroundColor:e.palette.background.tertiary})),Q8=vr("ul")(({theme:e})=>({color:e.palette.text.default})),X8=vr("li")(({theme:e})=>({color:e.palette.text.default,...e.typography.textB1Regular,fontFamily:"inherit"})),J8=vr("th")(({theme:e})=>({color:e.palette.text.default,...e.typography.textH3Medium,marginBlock:"0px",fontFamily:"inherit"})),e6=vr("td")(({theme:e})=>({color:e.palette.text.default,marginBlock:"0px",...e.typography.textB1Regular,fontFamily:"inherit"})),pM=vr("pre")(({theme:e})=>({background:e.palette.background.code,whiteSpace:"pre-line",fontFamily:"inherit"})),mM=vr("code")(({theme:e})=>({background:e.palette.background.code,whiteSpace:"pre-line",padding:"1.5px",paddingInline:"5px",fontFamily:"inherit",borderRadius:3}));import{jsx as Ve}from"react/jsx-runtime";var pf=({content:e})=>Ve(Xu,{remarkPlugins:[_p],rehypePlugins:[c8],components:{p:({...t})=>Ve(fM,{children:t.children}),a:({...t})=>Ve(s2,{onClick:r=>{r.preventDefault(),window.open(t.href,"_blank")},href:t.href,children:t.children}),h1:({...t})=>Ve(G8,{children:t.children}),h2:({...t})=>Ve(z8,{children:t.children}),h3:({...t})=>Ve(j8,{children:t.children}),h4:({...t})=>Ve(K8,{children:t.children}),h5:({...t})=>Ve($8,{children:t.children}),h6:({...t})=>Ve(Y8,{children:t.children}),blockquote:({...t})=>Ve(Z8,{children:t.children}),ul:({...t})=>Ve(Q8,{children:t.children}),li:({...t})=>Ve(X8,{children:t.children}),th:({...t})=>Ve(J8,{children:t.children}),td:({...t})=>Ve(e6,{children:t.children}),pre:({...t})=>Ve(pM,{children:t.children}),code:({...t})=>Ve(mM,{children:t.children})},children:e}),mf=({content:e})=>Ve(Xu,{remarkPlugins:[_p],components:{p:({...r})=>Ve(dM,{children:r.children}),a:({...r})=>Ve(s2,{onClick:o=>{window.open(r.href,"_blank"),o.stopPropagation()},as:"a",children:r.children}),h1:({...r})=>Ve(G8,{children:r.children}),h2:({...r})=>Ve(z8,{children:r.children}),h3:({...r})=>Ve(j8,{children:r.children}),h4:({...r})=>Ve(K8,{children:r.children}),h5:({...r})=>Ve($8,{children:r.children}),h6:({...r})=>Ve(Y8,{children:r.children}),blockquote:({...r})=>Ve(Z8,{children:r.children}),ul:({...r})=>Ve(Q8,{children:r.children}),li:({...r})=>Ve(X8,{children:r.children}),th:({...r})=>Ve(J8,{children:r.children}),td:({...r})=>Ve(e6,{children:r.children})},children:(r=>{if(!r)return r;try{return JSON.parse(`"${r}"`)}catch{return r}})(e)}),vTe=({content:e})=>Ve(Xu,{remarkPlugins:[_p],components:{a:({...t})=>Ve(uM,{onClick:r=>{window.open(t.href,"_blank"),r.stopPropagation()},as:"a",children:t.children})},children:e});import{jsx as cM}from"react/jsx-runtime";function ETe({title:e,onClick:t,placement:r,children:o,fontSize:a,fontWeight:n=400,variant:i="standard",bgColor:l="#141414",componentsProps:s={},...u}){return cM(Kt,{enterDelay:0,leaveDelay:1200,componentsProps:wTe.merge({tooltip:{sx:{background:l,color:Ue,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"?cM(mf,{content:e}):e,placement:r,arrow:!0,onClick:t,...u,children:o})}var ge=ETe;import{jsx as t6}from"react/jsx-runtime";var RTe=({helpText:e,style:t={},...r})=>t6(ge,{title:e,...r,children:t6("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",...t},children:t6(H4,{...Gr})})}),rl=RTe;import{Fragment as MTe,jsx as Ca,jsxs as u2}from"react/jsx-runtime";var xM=D(Nt)(({theme:e,borderColor:t})=>({width:e.spacing(4),height:e.spacing(4),cursor:"pointer",border:`1.5px solid ${t||e.palette.common.white} !important`})),ATe=D("div")(({theme:e})=>({width:e.spacing(4.5),height:e.spacing(4.5),border:`1.5px solid ${e.palette.common.white}`,borderRadius:"50%",background:ox,display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"-10px",zIndex:0,"&:hover":{cursor:"pointer"}})),PTe=D("div")({display:"flex",alignItems:"center",padding:"5px 15px 5px 10px","&:hover":{cursor:"pointer",background:"#cecece80 !important"}}),_Te=D(G)({marginLeft:"10px"}),kTe=D(wd)(()=>({"& .MuiPopover-paper":{marginTop:"10px",maxHeight:"331px"}})),ITe=({users:e,providerUrl:t,onOpenWorkspace:r})=>{let[o,a]=OTe(null),n=d=>{window.open(d,"_blank","noreferrer")},i=d=>{a(d.currentTarget)},l=()=>{a(null)},s=Object.entries(e).length,u=4,f=te();return u2(j3,{max:u+1,children:[Object.entries(e).slice(0,u).map(([d,p])=>Ca(ge,{componentsProps:{tooltip:{sx:{background:f.palette.background.paper,color:f.palette.text.primary,boxShadow:f.shadows[4]}},arrow:{sx:{color:f.palette.background.paper}}},title:u2("div",{style:{display:"flex",justifyContent:"center",flexDirection:"column"},children:[Ca(G,{style:{display:"flex",justifyContent:"center",flexDirection:"column",margin:"auto",fontSize:"1rem"},children:p.name}),Ca(go,{}),Ca(Oe,{size:"small",variant:"outlined",onClick:r,style:{fontSize:"1rem",padding:"2px 8px",minWidth:"auto",marginTop:"8px"},children:"Open Recents"})]}),arrow:!0,children:Ca(xM,{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&&u2(MTe,{children:[Ca(ATe,{onClick:i,"aria-describedby":"user-popover",children:o?Ca(yo,{fill:f.palette.common.white,...Gr,style:{marginLeft:"4px"}}):Ca(G,{variant:"body2",style:{color:f.palette.common.white,fontSize:"12px"},children:`+${s-u}`})}),Ca(kTe,{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])=>u2(PTe,{onClick:()=>n(`${t}/user/${p.user_id}`),children:[Ca(xM,{alt:p.name,src:p.avatar_url,borderColor:p.border_color,imgProps:{referrerPolicy:"no-referrer"}}),Ca(_Te,{variant:"body1",children:p.name})]},d))})]})]})},hM=ITe;import{jsx as gM}from"react/jsx-runtime";function LTe({tooltip:e,tooltipPlacement:t="top",variant:r="filled",label:o,icon:a,onClick:n,onDelete:i,style:l,...s}){return gM(ge,{title:e,placement:t,children:gM(bt,{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 TM=LTe;import{useState as SM}from"react";import{Fragment as CM,jsx as Un,jsxs as FTe}from"react/jsx-runtime";var DTe=({zoomEffect:e=!1,imgURL:t,type:r,width:o,height:a,style:n={}})=>{let[i,l]=SM(!1),[s,u]=SM(!1),f=()=>{e&&u(!0)},d=()=>{u(!1)},p=({type:m})=>m.type==="filter"?Un(z4,{width:o,height:a,style:n}):Un(Ua,{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}):FTe(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(la,{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})})},cf=DTe;import{useEffect as WTe,useState as qTe}from"react";import NTe from"js-yaml";var BTe=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)}}),HTe=async(e,t,r)=>{let o=[];for(let a of e){let n=`${t}/${a.toLowerCase()}/${r}/${a.toLowerCase()}-color.svg`;await BTe(n)&&o.push(a)}return o},yM=e=>{try{return NTe.load(e)?.version||r6}catch(t){return console.error("Failed to parse pattern file to get version:",t),r6}},bM=async({technologies:e,basePath:t="",subBasePath:r="",setAvailableTechnologies:o})=>{let a=await HTe(e,t,r);o(a)},r6="0.0.0",f2=e=>{switch(e.visibility){case"published":return e?.catalog_data?.published_version||r6;case"public":case"private":return yM(e.pattern_file);default:return yM(e.pattern_file)}};import{styled as qe,Typography as VTe}from"@mui/material";var vM=qe("div")(()=>({width:"85px",height:"88px",overflow:"hidden",position:"absolute",top:"-3px",left:"-3px",zIndex:10})),wM=qe("div")(()=>({color:"#eee",fontSize:"0.875rem",lineHeight:"1.5",fontWeight:"600",borderBottom:"1px solid rgba(231, 239, 243, 0.40)"})),EM=qe("div")(()=>({color:"#eee",overflow:"hidden",fontSize:"14px",lineHeight:"24px",fontWeight:"400",marginTop:".8rem"})),RM=qe("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:m4.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})),o6=qe("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})),a6=qe("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"}})),OM=qe("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})),AM=qe("p")(({theme:e})=>({fontSize:"1rem",textTransform:"capitalize",margin:"0rem",lineHeight:"1.5",textAlign:"center",color:e.palette.mode==="light"?ua:No,fontWeight:"600"})),PM=qe(VTe)(({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"}})),_M=qe("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":ua,...e&&{position:"absolute",bottom:"0px"},...!e&&{marginTop:"1.2rem"},borderRadius:"0 0 0.9375rem 0.9375rem",width:"100%"})),kM=qe("div")(()=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.2rem",color:"rgba(26, 26, 26, .8)",margin:"0rem",padding:"0.1rem"})),d2=qe("div")(()=>({height:"max-content",display:"flex",marginTop:"-1rem",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start","@media (max-width:1200px)":{height:"max-content"}})),J9t=qe("div")(({theme:e})=>({background:e.palette.background.surfaces,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.5rem",width:"100%",borderRadius:"0.5rem"})),e3t=qe("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"})),IM=qe("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"})),MM=qe("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})),t3t=qe("div")(()=>({perspective:"1000px","&:hover .flipper":{transform:"rotateY(-180deg)"}})),r3t=qe("div")(()=>({transition:"0.6s",transformStyle:"preserve-3d",position:"relative"})),UTe=qe("div")(()=>({backfaceVisibility:"hidden",position:"absolute",top:0,left:0,width:"100%",height:"100%"})),o3t=qe(UTe)(()=>({zIndex:2,transform:"rotateY(0deg)"})),a3t=qe("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"})),n3t=qe("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"})),LM=qe("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"}}),DM=qe("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"})),i3t=qe("div")({display:"flex",alignItems:"center",color:"#fff",margin:"20px 0"}),FM=qe("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%)"}})),p2=e=>{let t=`linear-gradient(to left bottom, ${lx}, ${nx},white, white, white, white, white, white, white, white, ${lx}, ${nx})`,r=`linear-gradient(to right top, ${sx}, ${Ae[30]}, ${Ae[20]}, ${Ae[10]}, ${Ae[10]}, ${Ae[10]}, ${Ae[10]}, ${Ae[10]}, ${Ae[10]}, ${Q[20]}, ${Q[10]}, black)`;return e?t:r},n6=qe("div")(({shouldFlip:e,isDetailed:t,theme:r})=>{let o=r.palette.mode==="light",a=p2(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"}}),NM=qe("div")(()=>({fontSize:"0.875rem",textTransform:"capitalize",color:"#eee",margin:"0rem",padding:"0.1rem",fontWeight:"400",lineHeight:"1.5"})),BM=qe("p")(()=>({fontSize:"0.876rem",margin:"0rem",lineHeight:"1.5",fontWeight:"400",color:"#eee"})),HM=qe("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"}})),VM=qe("div")(({theme:e})=>{let t=e.palette.mode==="light",r=p2(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 i6,jsx as et,jsxs as wo}from"react/jsx-runtime";var y3t=D("a")(()=>({textDecoration:"none"}));var GTe=({catalogClassName:e})=>e?et(vM,{children:et(RM,{catalogClassName:e,children:e})}):et(i6,{}),zTe=({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=te(),T=e.catalog_data?.compatibility||[],E=5,[v,I]=qTe([]),k=f2(e);return WTe(()=>{bM({technologies:T,basePath:d,subBasePath:p,setAvailableTechnologies:I})},[]),n?et(o6,{shouldFlip:n,isDetailed:i,outerStyles:h,onClick:x,children:wo(a6,{shouldFlip:n,className:"innerCard",children:[wo(n6,{shouldFlip:n,isDetailed:i,children:[i&&wo(i6,{children:[et(GTe,{catalogClassName:e?.catalog_data?.content_class??""}),et(OM,{children:t}),et(PM,{hasRibbon:!!e?.catalog_data?.content_class,children:e.name})]}),et(d2,{children:et("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&&et(_M,{isDetailed:i,children:[{Icon:pa,count:e.download_count},{Icon:kd,count:e.clone_count},{Icon:jd,count:e.view_count},{Icon:Vd,count:e.deployment_count},{Icon:wn,count:e.share_count}].map(({Icon:C,count:b},A)=>wo(kM,{children:[et(C,{width:18,height:18,fill:g.palette.mode==="light"?ua:No}),et(AM,{children:b})]},A))})]}),n&&wo(FM,{isCatalog:!0,children:[wo(LM,{children:[et(Nt,{alt:"Design Author",src:s,sx:{width:"32px",height:"32px",color:"#293B43"}}),et(HM,{children:u})]}),et(d2,{style:{marginTop:"0.7rem",gap:"5px"},children:l&&wo(DM,{children:[et(wM,{children:"Technologies"}),et(xe,{container:!0,style:{gap:"4px",alignItems:"flex-start",flexWrap:"nowrap"},children:T.length<1||v.length<1?et(EM,{children:"No technologies"}):wo(i6,{children:[v.slice(0,E).map((C,b)=>{let A=(m?m():"")+`${d}/${C.toLowerCase()}/${p}/${C.toLowerCase()}-color.svg`;return et(xe,{children:et(ge,{title:C.toLowerCase(),children:et("img",{height:"24px",width:"24px",alt:C.toLowerCase(),src:A})},b)},b)}),v.length>E&&wo(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:["+",v.length-E]})]})})]})}),i&&et(d2,{style:{marginTop:"20px"},children:et(xe,{container:!0,style:{justifyContent:"space-between",alignItems:"center"},children:wo(xe,{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[wo("div",{style:{display:"flex",flexDirection:"row",gap:"0.2rem",alignItems:"center"},children:[et(IO,{width:18,height:18}),et(BM,{children:"Updated At"})]}),wo(NM,{children:[" ",new Date(e.updated_at.toString().slice(0,10)).toLocaleDateString("en-US",{day:"numeric",month:"long",year:"numeric"})]})]})})}),k&&et(IM,{children:wo(MM,{children:["v",k]})})]})]})}):et(o6,{shouldFlip:n,isDetailed:i,outerStyles:h,children:et(a6,{shouldFlip:n,className:"innerCard",children:et(n6,{shouldFlip:n,isDetailed:i,children:f})})})},xf=zTe;import{jsx as UM,jsxs as KTe}from"react/jsx-runtime";var jTe=()=>{let e=te();return KTe(VM,{children:[UM(L4,{fill:e.palette.text.default,width:"100px",height:"100px"}),UM("h3",{style:{color:e.palette.text.default},children:"No match found"})]})},WM=jTe;import p6 from"react";import{jsx as YTe}from"react/jsx-runtime";function $Te({children:e,open:t,anchorEl:r,placement:o="bottom-end",...a}){return YTe(Ed,{open:t,anchorEl:r,placement:o,...a,children:e})}var kp=$Te;import QTe from"mui-datatables";import f6,{useCallback as XTe}from"react";import{jsx as qM}from"react/jsx-runtime";var ZTe=({width:e=V,height:t=U,...r})=>qM("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:e,height:t,fill:r.fill||"currentColor",...r,children:qM("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"})}),l6=ZTe;var U3t=({kind:e,model:t,color:r})=>!e||!t||!r?null:`/ui/public/static/img/meshmodels/${t}/${r}/${e.toLowerCase()}-${r}.svg`;import zM from"moment";import{jsx as GM}from"react/jsx-runtime";var ol=e=>zM(e).fromNow(),gs=e=>zM(e).format("ddd, MMM D, YYYY h:mm A"),Ts=e=>{let t={year:"numeric",month:"short",day:"numeric"};return new Date(e).toLocaleDateString("en-US",t)},s6=({date:e})=>GM(ge,{title:gs(e),disableInteractive:!0,children:GM("div",{children:ol(e)})});import{Fragment as m2,jsx as Fr,jsxs as u6}from"react/jsx-runtime";var uo=D("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"}})),Ip=({actionsList:e})=>{let[t,r]=f6.useState(null),[o,a]=f6.useState(!1),n=te(),i=u=>{r(u.currentTarget)},l=()=>{r(null),a(!1)},s=u=>{u.type==="share-social"?a(!o):(u.onClick&&u.onClick(),l())};return u6(m2,{children:[Fr(Mt,{title:"View Actions",onClick:i,icon:Fr(l6,{fill:n.palette.icon.default}),arrow:!0}),Fr(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"?[u6(gt,{sx:{width:"-webkit-fill-available"},onClick:()=>s(u),disabled:u.disabled,children:[Fr(Ha,{children:Fr(wn,{width:24,height:24,fill:n.palette.text.primary})}),Fr(jt,{sx:{color:n.palette.text.primary},children:u.title})]},`${f}-menuitem`),Fr(ia,{variant:"submenu",in:o,unmountOnExit:!0,children:u.customComponent},`${f}-collapse`)]:Fr(uo,{disabled:u.disabled,children:u6(gt,{sx:{width:"-webkit-fill-available"},onClick:()=>s(u),disabled:u.disabled,children:[Fr(Ha,{children:u.icon}),Fr(jt,{sx:{color:n.palette.text.primary},children:u.title})]})},f))})]})},JTe=({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=XTe(()=>{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 Fr(m2,{children:p});if(typeof p=="object"&&"Valid"in p){let m=p;return m.Valid&&m.Time?Fr(s6,{date:m.Time}):Fr(m2,{children:"NA"})}else return typeof p=="string"?Fr(s6,{date:p}):Fr(m2,{children:p})}))}),a&&a([...t])},[n,a]);return f6.useEffect(()=>{u()},[u]),Fr(QTe,{columns:o??[],data:e||[],title:void 0,components:{ExpandButton:()=>"",Checkbox:Vr},options:{...s,elevation:0,enableNestedDataAccess:"."},...l})},Eo=JTe;import{jsx as d6}from"react/jsx-runtime";function e8e({children:e,title:t,onClick:r,icon:o,style:a,arrow:n=!0,disabled:i=!1,iconType:l,id:s,placement:u}){let f=te();return d6(ge,{title:t,arrow:n,placement:u,id:s,children:d6(uo,{disabled:i,children:d6($e,{disabled:i,onClick:r,sx:{"&:hover":{"& svg":{fill:l==="delete"?f.palette.error.main:f.palette.primary.brand?.default}},...a},children:o||e})})})}var Mt=e8e;import{jsx as Qa,jsxs as t8e}from"react/jsx-runtime";function jM({columns:e,id:t,customToolsProps:r,style:o}){let[a,n]=p6.useState(!1),[i,l]=p6.useState(null),s=te(),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 Qa(p6.Fragment,{children:t8e("div",{id:t,children:[Qa(Mt,{title:"View Columns",onClick:u,icon:Qa(w4,{fill:s.palette.icon.default}),arrow:!0}),Qa(kp,{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:Qa(K,{children:Qa(Tn,{onClickAway:f,children:Qa("div",{children:Qa(Tr,{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=>Qa(Wl,{control:Qa(Vr,{checked:r.columnVisibility[p.name],onChange:m=>d(m,p.name)}),label:p.label},p.name))})})})})})]})})}var ya=jM;import{useState as r8e}from"react";import{Fragment as i8e,jsx as c2,jsxs as KM}from"react/jsx-runtime";var o8e=D("figure")(({align:e})=>({margin:"1rem 0",textAlign:e,width:"100%"})),a8e=D("figcaption")(({align:e})=>({fontSize:"0.9rem",color:"#666",marginTop:"0.5rem",textAlign:e})),n8e=({src:e,alt:t,caption:r,align:o="left",...a})=>{let[n,i]=r8e(!1),l=()=>{i(!0)},s=()=>{i(!1)};return KM(i8e,{children:[KM(o8e,{align:o,children:[c2("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&&c2(a8e,{align:o,children:r})]}),c2(la,{open:n,onClose:s,style:{backgroundColor:"rgba(0, 0, 0, 0.8)"},PaperProps:{style:{background:"transparent",boxShadow:"none",overflow:"auto",maxWidth:"100%"}},children:c2("img",{src:e,alt:t||r||"",onClick:s,style:{objectFit:"contain",maxWidth:"100%",maxHeight:"100%"}})})]})},$M=n8e;import{Backdrop as d8e}from"@mui/material";import{jsx as s8e}from"react/jsx-runtime";function l8e({children:e,...t}){return s8e(Cd,{...t,children:e})}var x2=l8e;import{jsx as f8e}from"react/jsx-runtime";function u8e({children:e,...t}){return f8e(Hl,{...t,children:e})}var h2=u8e;import{styled as g2}from"@mui/material";var YM=g2("div")(({theme:e})=>{let t=e.palette.mode==="light"?Iu:lr,r=e.palette.mode==="light"?p4:Kw;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='${Iu}',endColorstr='${p4}',GradientType=1)`:`progid:DXImageTransform.Microsoft.gradient(startColorstr='${Ad}',GradientType=1)`}}),ZM=g2("div")(()=>({zIndex:"100",borderRadius:"5px"})),QM=g2("div")(({theme:e})=>({padding:"1rem 1.5rem",display:"flex",justifyContent:"flex-end",backgroundColor:e.palette.mode==="light"?Iu:Ad,boxShadow:"inset 0px 3px 5px 0px rgba(0,0,0,0.25)"})),XM=g2("div")(({theme:e})=>({padding:"2rem 1rem",backgroundColor:e.palette.mode==="light"?Ue:Od}));import{Fragment as m8e,jsx as ba,jsxs as JM}from"react/jsx-runtime";function p8e({open:e,onClose:t,title:r,leftHeaderIcon:o,helpText:a,helpArea:n,actions:i,hideActions:l=!1,content:s,maxWidth:u="xs",...f}){return ba(la,{sx:{"& .MuiDialog-paper":{borderRadius:"10px"}},open:e,maxWidth:u,onClose:t,slots:{backdrop:d8e},slotProps:{backdrop:{timeout:500}},...f,children:JM(ZM,{children:[JM(YM,{children:[o&&ba("div",{style:{display:"flex",alignItems:"center"},children:o}),r&&ba(m8e,{children:ba("div",{style:{display:"flex",alignItems:"center"},children:ba(Ul,{children:r})})}),ba("div",{style:{display:"flex",alignItems:"center"},children:a&&ba("div",{children:n})})]}),ba(h2,{children:ba(XM,{children:s})}),!l&&ba(x2,{children:ba(QM,{children:i})})]})})}var eL=p8e;import{jsx as tL}from"react/jsx-runtime";function c8e({children:e,style:t,...r}){return tL(Ul,{sx:t,...r,children:tL(G,{sx:{flexGrow:1,fontSize:"1.25rem",textAlign:"center"},variant:"h6",children:e})})}var T2=c8e;import{jsx as m6,jsxs as c6}from"react/jsx-runtime";function x8e({icon:e,message:t,pointerLabel:r,poiner:o=!1}){return c6("div",{style:{textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",minHeight:"50vh"},children:[o&&c6(xe,{style:{display:"flex",width:"100%",padding:"0 40px"},children:[m6(G4,{}),m6(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})]}),c6(xe,{style:{marginTop:"120px"},children:[e,m6(G,{sx:{fontSize:"1.5rem",color:"#808080",px:5,py:2,lineHeight:1},children:t})]})]})}var rL=x8e;import{styled as h6}from"@mui/material";import{createContext as h8e,Component as g8e,createElement as oL,useContext as xgt,useState as hgt,useMemo as ggt,forwardRef as Tgt}from"react";var T8e=h8e(null),x6={didCatch:!1,error:null},Mp=class extends g8e{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=x6}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(x6)}}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&&S8e(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(x6)}}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=oL(o,s);else if(a!==void 0)l=a;else throw i}return oL(T8e.Provider,{value:{didCatch:n,error:i,resetErrorBoundary:this.resetErrorBoundary}},l)}};function S8e(){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 b8e,jsx as Ro,jsxs as Lp}from"react/jsx-runtime";var C8e=h6(G)(({theme:e})=>({color:e.palette.text.default,fontWeight:"normal",marginTop:"2px",marginBottom:"2px",fontSize:"1.15rem"})),aL=h6(To)(({theme:e})=>({color:e.palette.border.brand,textDecoration:"underline",cursor:"pointer"})),y8e=h6("div")(({theme:e})=>({display:"flex",flexDirection:"column",backgroundColor:e.palette.background.code,color:e.palette.text.tertiary,padding:".85rem",borderRadius:".2rem",marginBlock:".5rem"}));function g6({error:e,children:t,showPackageInfo:r,version:o}){return Lp("div",{role:"alert",children:[Ro("h2",{children:"Uh-oh!\u{1F614} Please pardon the mesh."}),Lp(y8e,{children:[Lp("code",{children:[Ro("strong",{children:"Error: "}),e.message]}),Ro("br",{}),r&&Lp(b8e,{children:[Ro("strong",{children:"Version:"})," ",o]})]}),Lp(C8e,{children:["We apologize for the inconvenience. The issue may be on our end. If troubleshooting doesn't work, please check out our support channels"," ",Ro(aL,{href:"https://discuss.layer5.io/",target:"_blank",rel:"noopener noreferrer",children:"Discuss Forum"})," "," or ",Ro(aL,{href:"https://slack.layer5.io/",target:"_blank",rel:"noopener noreferrer",children:"Slack"})]}),Ro(K,{children:t})]})}var nL=(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)},jr=({customFallback:e,children:t,onErrorCaught:r})=>{let o=window.location.href,a=new Date().toLocaleString();return Ro(Mp,{FallbackComponent:e||(i=>Ro(g6,{...i,pageUrl:o,timestamp:a})),onError:(i,l)=>{r?.(i.message),nL(i,l)},children:t})},iL=({Component:e,errorHandlingProps:t={children:null}})=>Ro(jr,{...t,children:Ro(e,{})}),lL=({Component:e})=>Ro(Mp,{FallbackComponent:()=>null,onError:nL,children:Ro(e,{})});import v6 from"@mui/material/Typography";import{useState as Bp}from"react";import{styled as zo}from"@mui/material";import{useRef as O8e,useState as C2}from"react";import{useState as v8e}from"react";import{Fragment as E8e,jsx as S2,jsxs as R8e}from"react/jsx-runtime";function w8e({content:e,fontSize:t,fontWeight:r=400,variant:o="standard",bgColor:a="#141414",icon:n=S2(k4,{fontSize:"small"}),...i}){let[l,s]=v8e(null);return R8e(E8e,{children:[S2($e,{size:"small",onClick:p=>{s(p.currentTarget)},sx:{color:"inherit",padding:"2px",verticalAlign:"middle"},children:n}),S2(wd,{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:Ue,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"?S2(mf,{content:e}):e})]})}var T6=w8e;import{jsx as Xa,jsxs as Dp}from"react/jsx-runtime";var hf=zo($e)`
|
|
59
|
+
`))}function s(m,x,h,g){let T=h.enter("tableCell"),E=h.enter("phrasing"),v=l2(m,h,{...g,before:n,after:n});return E(),T(),v}function u(m,x){return oM(m,{align:x,alignDelimiters:o,padding:r,stringLength:a})}function f(m,x,h){let g=m.children,T=-1,E=[],v=x.enter("table");for(;++T<g.length;)E[T]=d(g[T],x,h);return v(),E}function d(m,x,h){let g=m.children,T=-1,E=[],v=x.enter("tableRow");for(;++T<g.length;)E[T]=s(g[T],m,x,h);return v(),E}function p(m,x,h){let g=F8(m,x,h);return h.stack.includes("tableCell")&&(g=g.replace(/\|/g,"\\$&")),g}}function nM(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 iM(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 lM(e,t,r,o){let a=iM(r),n=r.bulletCurrent||nM(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 V8={exit:{taskListCheckValueChecked:sM,taskListCheckValueUnchecked:sM,paragraph:yTe}},U8={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:bTe}};function sM(e){let t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function yTe(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 bTe(e,t,r,o){let a=e.children[0],n=typeof e.checked=="boolean"&&a&&a.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",l=hs(o);n&&l.move(i);let s=lM(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 W8(){return[A8,I8(),L8,B8,V8]}function q8(e){return{extensions:[P8,M8(),D8,H8(e),U8]}}function _p(e={}){let t=this.data();r("micromarkExtensions",zI(e)),r("fromMarkdownExtensions",W8()),r("toMarkdownExtensions",q8(e));function r(o,a){(t[o]?t[o]:t[o]=[]).push(a)}}import{styled as vr}from"@mui/material";var s2=vr("a")(({theme:e})=>({color:e.palette.background.brand?.default,textDecoration:"none","&:hover":{textDecoration:"underline"},cursor:"pointer",fontFamily:"inherit"})),uM=vr("a")(()=>({textDecoration:"none","&:hover":{textDecoration:"underline"},cursor:"pointer"})),fM=vr("p")(({theme:e})=>({color:e.palette.text.default,marginBlock:"0px",...e.typography.textB1Regular,fontFamily:"inherit"})),dM=vr("p")(({theme:e})=>({color:e.palette.text.constant?.white||Yw.inverse,marginBlock:"0px",fontFamily:"inherit"})),G8=vr("h1")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),z8=vr("h2")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),j8=vr("h3")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),K8=vr("h4")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),$8=vr("h5")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),Y8=vr("h6")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),Z8=vr("blockquote")(({theme:e})=>({color:e.palette.text.default,borderLeft:`2px solid ${e.palette.text.brand}`,backgroundColor:e.palette.background.tertiary})),Q8=vr("ul")(({theme:e})=>({color:e.palette.text.default})),X8=vr("li")(({theme:e})=>({color:e.palette.text.default,...e.typography.textB1Regular,fontFamily:"inherit"})),J8=vr("th")(({theme:e})=>({color:e.palette.text.default,...e.typography.textH3Medium,marginBlock:"0px",fontFamily:"inherit"})),e6=vr("td")(({theme:e})=>({color:e.palette.text.default,marginBlock:"0px",...e.typography.textB1Regular,fontFamily:"inherit"})),pM=vr("pre")(({theme:e})=>({background:e.palette.background.code,whiteSpace:"pre-line",fontFamily:"inherit"})),mM=vr("code")(({theme:e})=>({background:e.palette.background.code,whiteSpace:"pre-line",padding:"1.5px",paddingInline:"5px",fontFamily:"inherit",borderRadius:3}));import{jsx as Ve}from"react/jsx-runtime";var pf=({content:e})=>Ve(Xu,{remarkPlugins:[_p],rehypePlugins:[c8],components:{p:({...t})=>Ve(fM,{children:t.children}),a:({...t})=>Ve(s2,{onClick:r=>{r.preventDefault(),window.open(t.href,"_blank")},href:t.href,children:t.children}),h1:({...t})=>Ve(G8,{children:t.children}),h2:({...t})=>Ve(z8,{children:t.children}),h3:({...t})=>Ve(j8,{children:t.children}),h4:({...t})=>Ve(K8,{children:t.children}),h5:({...t})=>Ve($8,{children:t.children}),h6:({...t})=>Ve(Y8,{children:t.children}),blockquote:({...t})=>Ve(Z8,{children:t.children}),ul:({...t})=>Ve(Q8,{children:t.children}),li:({...t})=>Ve(X8,{children:t.children}),th:({...t})=>Ve(J8,{children:t.children}),td:({...t})=>Ve(e6,{children:t.children}),pre:({...t})=>Ve(pM,{children:t.children}),code:({...t})=>Ve(mM,{children:t.children})},children:e}),mf=({content:e})=>Ve(Xu,{remarkPlugins:[_p],components:{p:({...r})=>Ve(dM,{children:r.children}),a:({...r})=>Ve(s2,{onClick:o=>{window.open(r.href,"_blank"),o.stopPropagation()},as:"a",children:r.children}),h1:({...r})=>Ve(G8,{children:r.children}),h2:({...r})=>Ve(z8,{children:r.children}),h3:({...r})=>Ve(j8,{children:r.children}),h4:({...r})=>Ve(K8,{children:r.children}),h5:({...r})=>Ve($8,{children:r.children}),h6:({...r})=>Ve(Y8,{children:r.children}),blockquote:({...r})=>Ve(Z8,{children:r.children}),ul:({...r})=>Ve(Q8,{children:r.children}),li:({...r})=>Ve(X8,{children:r.children}),th:({...r})=>Ve(J8,{children:r.children}),td:({...r})=>Ve(e6,{children:r.children})},children:(r=>{if(!r)return r;try{return JSON.parse(`"${r}"`)}catch{return r}})(e)}),vTe=({content:e})=>Ve(Xu,{remarkPlugins:[_p],components:{a:({...t})=>Ve(uM,{onClick:r=>{window.open(t.href,"_blank"),r.stopPropagation()},as:"a",children:t.children})},children:e});import{jsx as cM}from"react/jsx-runtime";function ETe({title:e,onClick:t,placement:r,children:o,fontSize:a,fontWeight:n=400,variant:i="standard",bgColor:l="#141414",componentsProps:s={},...u}){return cM(Kt,{enterTouchDelay:0,leaveTouchDelay:2e3,componentsProps:wTe.merge({tooltip:{sx:{background:l,color:Ue,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"?cM(mf,{content:e}):e,placement:r,arrow:!0,onClick:t,...u,children:o})}var ge=ETe;import{jsx as t6}from"react/jsx-runtime";var RTe=({helpText:e,style:t={},...r})=>t6(ge,{title:e,...r,children:t6("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",...t},children:t6(H4,{...Gr})})}),rl=RTe;import{Fragment as MTe,jsx as Ca,jsxs as u2}from"react/jsx-runtime";var xM=D(Nt)(({theme:e,borderColor:t})=>({width:e.spacing(4),height:e.spacing(4),cursor:"pointer",border:`1.5px solid ${t||e.palette.common.white} !important`})),ATe=D("div")(({theme:e})=>({width:e.spacing(4.5),height:e.spacing(4.5),border:`1.5px solid ${e.palette.common.white}`,borderRadius:"50%",background:ox,display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"-10px",zIndex:0,"&:hover":{cursor:"pointer"}})),PTe=D("div")({display:"flex",alignItems:"center",padding:"5px 15px 5px 10px","&:hover":{cursor:"pointer",background:"#cecece80 !important"}}),_Te=D(G)({marginLeft:"10px"}),kTe=D(wd)(()=>({"& .MuiPopover-paper":{marginTop:"10px",maxHeight:"331px"}})),ITe=({users:e,providerUrl:t,onOpenWorkspace:r})=>{let[o,a]=OTe(null),n=d=>{window.open(d,"_blank","noreferrer")},i=d=>{a(d.currentTarget)},l=()=>{a(null)},s=Object.entries(e).length,u=4,f=te();return u2(j3,{max:u+1,children:[Object.entries(e).slice(0,u).map(([d,p])=>Ca(ge,{componentsProps:{tooltip:{sx:{background:f.palette.background.paper,color:f.palette.text.primary,boxShadow:f.shadows[4]}},arrow:{sx:{color:f.palette.background.paper}}},title:u2("div",{style:{display:"flex",justifyContent:"center",flexDirection:"column"},children:[Ca(G,{style:{display:"flex",justifyContent:"center",flexDirection:"column",margin:"auto",fontSize:"1rem"},children:p.name}),Ca(go,{}),Ca(Oe,{size:"small",variant:"outlined",onClick:r,style:{fontSize:"1rem",padding:"2px 8px",minWidth:"auto",marginTop:"8px"},children:"Open Recents"})]}),arrow:!0,children:Ca(xM,{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&&u2(MTe,{children:[Ca(ATe,{onClick:i,"aria-describedby":"user-popover",children:o?Ca(yo,{fill:f.palette.common.white,...Gr,style:{marginLeft:"4px"}}):Ca(G,{variant:"body2",style:{color:f.palette.common.white,fontSize:"12px"},children:`+${s-u}`})}),Ca(kTe,{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])=>u2(PTe,{onClick:()=>n(`${t}/user/${p.user_id}`),children:[Ca(xM,{alt:p.name,src:p.avatar_url,borderColor:p.border_color,imgProps:{referrerPolicy:"no-referrer"}}),Ca(_Te,{variant:"body1",children:p.name})]},d))})]})]})},hM=ITe;import{jsx as gM}from"react/jsx-runtime";function LTe({tooltip:e,tooltipPlacement:t="top",variant:r="filled",label:o,icon:a,onClick:n,onDelete:i,style:l,...s}){return gM(ge,{title:e,placement:t,children:gM(bt,{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 TM=LTe;import{useState as SM}from"react";import{Fragment as CM,jsx as Un,jsxs as FTe}from"react/jsx-runtime";var DTe=({zoomEffect:e=!1,imgURL:t,type:r,width:o,height:a,style:n={}})=>{let[i,l]=SM(!1),[s,u]=SM(!1),f=()=>{e&&u(!0)},d=()=>{u(!1)},p=({type:m})=>m.type==="filter"?Un(z4,{width:o,height:a,style:n}):Un(Ua,{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}):FTe(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(la,{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})})},cf=DTe;import{useEffect as WTe,useState as qTe}from"react";import NTe from"js-yaml";var BTe=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)}}),HTe=async(e,t,r)=>{let o=[];for(let a of e){let n=`${t}/${a.toLowerCase()}/${r}/${a.toLowerCase()}-color.svg`;await BTe(n)&&o.push(a)}return o},yM=e=>{try{return NTe.load(e)?.version||r6}catch(t){return console.error("Failed to parse pattern file to get version:",t),r6}},bM=async({technologies:e,basePath:t="",subBasePath:r="",setAvailableTechnologies:o})=>{let a=await HTe(e,t,r);o(a)},r6="0.0.0",f2=e=>{switch(e.visibility){case"published":return e?.catalog_data?.published_version||r6;case"public":case"private":return yM(e.pattern_file);default:return yM(e.pattern_file)}};import{styled as qe,Typography as VTe}from"@mui/material";var vM=qe("div")(()=>({width:"85px",height:"88px",overflow:"hidden",position:"absolute",top:"-3px",left:"-3px",zIndex:10})),wM=qe("div")(()=>({color:"#eee",fontSize:"0.875rem",lineHeight:"1.5",fontWeight:"600",borderBottom:"1px solid rgba(231, 239, 243, 0.40)"})),EM=qe("div")(()=>({color:"#eee",overflow:"hidden",fontSize:"14px",lineHeight:"24px",fontWeight:"400",marginTop:".8rem"})),RM=qe("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:m4.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})),o6=qe("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})),a6=qe("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"}})),OM=qe("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})),AM=qe("p")(({theme:e})=>({fontSize:"1rem",textTransform:"capitalize",margin:"0rem",lineHeight:"1.5",textAlign:"center",color:e.palette.mode==="light"?ua:No,fontWeight:"600"})),PM=qe(VTe)(({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"}})),_M=qe("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":ua,...e&&{position:"absolute",bottom:"0px"},...!e&&{marginTop:"1.2rem"},borderRadius:"0 0 0.9375rem 0.9375rem",width:"100%"})),kM=qe("div")(()=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.2rem",color:"rgba(26, 26, 26, .8)",margin:"0rem",padding:"0.1rem"})),d2=qe("div")(()=>({height:"max-content",display:"flex",marginTop:"-1rem",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start","@media (max-width:1200px)":{height:"max-content"}})),J9t=qe("div")(({theme:e})=>({background:e.palette.background.surfaces,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.5rem",width:"100%",borderRadius:"0.5rem"})),e3t=qe("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"})),IM=qe("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"})),MM=qe("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})),t3t=qe("div")(()=>({perspective:"1000px","&:hover .flipper":{transform:"rotateY(-180deg)"}})),r3t=qe("div")(()=>({transition:"0.6s",transformStyle:"preserve-3d",position:"relative"})),UTe=qe("div")(()=>({backfaceVisibility:"hidden",position:"absolute",top:0,left:0,width:"100%",height:"100%"})),o3t=qe(UTe)(()=>({zIndex:2,transform:"rotateY(0deg)"})),a3t=qe("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"})),n3t=qe("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"})),LM=qe("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"}}),DM=qe("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"})),i3t=qe("div")({display:"flex",alignItems:"center",color:"#fff",margin:"20px 0"}),FM=qe("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%)"}})),p2=e=>{let t=`linear-gradient(to left bottom, ${lx}, ${nx},white, white, white, white, white, white, white, white, ${lx}, ${nx})`,r=`linear-gradient(to right top, ${sx}, ${Ae[30]}, ${Ae[20]}, ${Ae[10]}, ${Ae[10]}, ${Ae[10]}, ${Ae[10]}, ${Ae[10]}, ${Ae[10]}, ${Q[20]}, ${Q[10]}, black)`;return e?t:r},n6=qe("div")(({shouldFlip:e,isDetailed:t,theme:r})=>{let o=r.palette.mode==="light",a=p2(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"}}),NM=qe("div")(()=>({fontSize:"0.875rem",textTransform:"capitalize",color:"#eee",margin:"0rem",padding:"0.1rem",fontWeight:"400",lineHeight:"1.5"})),BM=qe("p")(()=>({fontSize:"0.876rem",margin:"0rem",lineHeight:"1.5",fontWeight:"400",color:"#eee"})),HM=qe("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"}})),VM=qe("div")(({theme:e})=>{let t=e.palette.mode==="light",r=p2(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 i6,jsx as et,jsxs as wo}from"react/jsx-runtime";var y3t=D("a")(()=>({textDecoration:"none"}));var GTe=({catalogClassName:e})=>e?et(vM,{children:et(RM,{catalogClassName:e,children:e})}):et(i6,{}),zTe=({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=te(),T=e.catalog_data?.compatibility||[],E=5,[v,I]=qTe([]),k=f2(e);return WTe(()=>{bM({technologies:T,basePath:d,subBasePath:p,setAvailableTechnologies:I})},[]),n?et(o6,{shouldFlip:n,isDetailed:i,outerStyles:h,onClick:x,children:wo(a6,{shouldFlip:n,className:"innerCard",children:[wo(n6,{shouldFlip:n,isDetailed:i,children:[i&&wo(i6,{children:[et(GTe,{catalogClassName:e?.catalog_data?.content_class??""}),et(OM,{children:t}),et(PM,{hasRibbon:!!e?.catalog_data?.content_class,children:e.name})]}),et(d2,{children:et("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&&et(_M,{isDetailed:i,children:[{Icon:pa,count:e.download_count},{Icon:kd,count:e.clone_count},{Icon:jd,count:e.view_count},{Icon:Vd,count:e.deployment_count},{Icon:wn,count:e.share_count}].map(({Icon:C,count:b},A)=>wo(kM,{children:[et(C,{width:18,height:18,fill:g.palette.mode==="light"?ua:No}),et(AM,{children:b})]},A))})]}),n&&wo(FM,{isCatalog:!0,children:[wo(LM,{children:[et(Nt,{alt:"Design Author",src:s,sx:{width:"32px",height:"32px",color:"#293B43"}}),et(HM,{children:u})]}),et(d2,{style:{marginTop:"0.7rem",gap:"5px"},children:l&&wo(DM,{children:[et(wM,{children:"Technologies"}),et(xe,{container:!0,style:{gap:"4px",alignItems:"flex-start",flexWrap:"nowrap"},children:T.length<1||v.length<1?et(EM,{children:"No technologies"}):wo(i6,{children:[v.slice(0,E).map((C,b)=>{let A=(m?m():"")+`${d}/${C.toLowerCase()}/${p}/${C.toLowerCase()}-color.svg`;return et(xe,{children:et(ge,{title:C.toLowerCase(),children:et("img",{height:"24px",width:"24px",alt:C.toLowerCase(),src:A})},b)},b)}),v.length>E&&wo(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:["+",v.length-E]})]})})]})}),i&&et(d2,{style:{marginTop:"20px"},children:et(xe,{container:!0,style:{justifyContent:"space-between",alignItems:"center"},children:wo(xe,{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[wo("div",{style:{display:"flex",flexDirection:"row",gap:"0.2rem",alignItems:"center"},children:[et(IO,{width:18,height:18}),et(BM,{children:"Updated At"})]}),wo(NM,{children:[" ",new Date(e.updated_at.toString().slice(0,10)).toLocaleDateString("en-US",{day:"numeric",month:"long",year:"numeric"})]})]})})}),k&&et(IM,{children:wo(MM,{children:["v",k]})})]})]})}):et(o6,{shouldFlip:n,isDetailed:i,outerStyles:h,children:et(a6,{shouldFlip:n,className:"innerCard",children:et(n6,{shouldFlip:n,isDetailed:i,children:f})})})},xf=zTe;import{jsx as UM,jsxs as KTe}from"react/jsx-runtime";var jTe=()=>{let e=te();return KTe(VM,{children:[UM(L4,{fill:e.palette.text.default,width:"100px",height:"100px"}),UM("h3",{style:{color:e.palette.text.default},children:"No match found"})]})},WM=jTe;import p6 from"react";import{jsx as YTe}from"react/jsx-runtime";function $Te({children:e,open:t,anchorEl:r,placement:o="bottom-end",...a}){return YTe(Ed,{open:t,anchorEl:r,placement:o,...a,children:e})}var kp=$Te;import QTe from"mui-datatables";import f6,{useCallback as XTe}from"react";import{jsx as qM}from"react/jsx-runtime";var ZTe=({width:e=V,height:t=U,...r})=>qM("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:e,height:t,fill:r.fill||"currentColor",...r,children:qM("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"})}),l6=ZTe;var U3t=({kind:e,model:t,color:r})=>!e||!t||!r?null:`/ui/public/static/img/meshmodels/${t}/${r}/${e.toLowerCase()}-${r}.svg`;import zM from"moment";import{jsx as GM}from"react/jsx-runtime";var ol=e=>zM(e).fromNow(),gs=e=>zM(e).format("ddd, MMM D, YYYY h:mm A"),Ts=e=>{let t={year:"numeric",month:"short",day:"numeric"};return new Date(e).toLocaleDateString("en-US",t)},s6=({date:e})=>GM(ge,{title:gs(e),disableInteractive:!0,children:GM("div",{children:ol(e)})});import{Fragment as m2,jsx as Fr,jsxs as u6}from"react/jsx-runtime";var uo=D("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"}})),Ip=({actionsList:e})=>{let[t,r]=f6.useState(null),[o,a]=f6.useState(!1),n=te(),i=u=>{r(u.currentTarget)},l=()=>{r(null),a(!1)},s=u=>{u.type==="share-social"?a(!o):(u.onClick&&u.onClick(),l())};return u6(m2,{children:[Fr(Mt,{title:"View Actions",onClick:i,icon:Fr(l6,{fill:n.palette.icon.default}),arrow:!0}),Fr(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"?[u6(gt,{sx:{width:"-webkit-fill-available"},onClick:()=>s(u),disabled:u.disabled,children:[Fr(Ha,{children:Fr(wn,{width:24,height:24,fill:n.palette.text.primary})}),Fr(jt,{sx:{color:n.palette.text.primary},children:u.title})]},`${f}-menuitem`),Fr(ia,{variant:"submenu",in:o,unmountOnExit:!0,children:u.customComponent},`${f}-collapse`)]:Fr(uo,{disabled:u.disabled,children:u6(gt,{sx:{width:"-webkit-fill-available"},onClick:()=>s(u),disabled:u.disabled,children:[Fr(Ha,{children:u.icon}),Fr(jt,{sx:{color:n.palette.text.primary},children:u.title})]})},f))})]})},JTe=({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=XTe(()=>{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 Fr(m2,{children:p});if(typeof p=="object"&&"Valid"in p){let m=p;return m.Valid&&m.Time?Fr(s6,{date:m.Time}):Fr(m2,{children:"NA"})}else return typeof p=="string"?Fr(s6,{date:p}):Fr(m2,{children:p})}))}),a&&a([...t])},[n,a]);return f6.useEffect(()=>{u()},[u]),Fr(QTe,{columns:o??[],data:e||[],title:void 0,components:{ExpandButton:()=>"",Checkbox:Vr},options:{...s,elevation:0,enableNestedDataAccess:"."},...l})},Eo=JTe;import{jsx as d6}from"react/jsx-runtime";function e8e({children:e,title:t,onClick:r,icon:o,style:a,arrow:n=!0,disabled:i=!1,iconType:l,id:s,placement:u}){let f=te();return d6(ge,{title:t,arrow:n,placement:u,id:s,children:d6(uo,{disabled:i,children:d6($e,{disabled:i,onClick:r,sx:{"&:hover":{"& svg":{fill:l==="delete"?f.palette.error.main:f.palette.primary.brand?.default}},...a},children:o||e})})})}var Mt=e8e;import{jsx as Qa,jsxs as t8e}from"react/jsx-runtime";function jM({columns:e,id:t,customToolsProps:r,style:o}){let[a,n]=p6.useState(!1),[i,l]=p6.useState(null),s=te(),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 Qa(p6.Fragment,{children:t8e("div",{id:t,children:[Qa(Mt,{title:"View Columns",onClick:u,icon:Qa(w4,{fill:s.palette.icon.default}),arrow:!0}),Qa(kp,{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:Qa(K,{children:Qa(Tn,{onClickAway:f,children:Qa("div",{children:Qa(Tr,{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=>Qa(Wl,{control:Qa(Vr,{checked:r.columnVisibility[p.name],onChange:m=>d(m,p.name)}),label:p.label},p.name))})})})})})]})})}var ya=jM;import{useState as r8e}from"react";import{Fragment as i8e,jsx as c2,jsxs as KM}from"react/jsx-runtime";var o8e=D("figure")(({align:e})=>({margin:"1rem 0",textAlign:e,width:"100%"})),a8e=D("figcaption")(({align:e})=>({fontSize:"0.9rem",color:"#666",marginTop:"0.5rem",textAlign:e})),n8e=({src:e,alt:t,caption:r,align:o="left",...a})=>{let[n,i]=r8e(!1),l=()=>{i(!0)},s=()=>{i(!1)};return KM(i8e,{children:[KM(o8e,{align:o,children:[c2("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&&c2(a8e,{align:o,children:r})]}),c2(la,{open:n,onClose:s,style:{backgroundColor:"rgba(0, 0, 0, 0.8)"},PaperProps:{style:{background:"transparent",boxShadow:"none",overflow:"auto",maxWidth:"100%"}},children:c2("img",{src:e,alt:t||r||"",onClick:s,style:{objectFit:"contain",maxWidth:"100%",maxHeight:"100%"}})})]})},$M=n8e;import{Backdrop as d8e}from"@mui/material";import{jsx as s8e}from"react/jsx-runtime";function l8e({children:e,...t}){return s8e(Cd,{...t,children:e})}var x2=l8e;import{jsx as f8e}from"react/jsx-runtime";function u8e({children:e,...t}){return f8e(Hl,{...t,children:e})}var h2=u8e;import{styled as g2}from"@mui/material";var YM=g2("div")(({theme:e})=>{let t=e.palette.mode==="light"?Iu:lr,r=e.palette.mode==="light"?p4:Kw;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='${Iu}',endColorstr='${p4}',GradientType=1)`:`progid:DXImageTransform.Microsoft.gradient(startColorstr='${Ad}',GradientType=1)`}}),ZM=g2("div")(()=>({zIndex:"100",borderRadius:"5px"})),QM=g2("div")(({theme:e})=>({padding:"1rem 1.5rem",display:"flex",justifyContent:"flex-end",backgroundColor:e.palette.mode==="light"?Iu:Ad,boxShadow:"inset 0px 3px 5px 0px rgba(0,0,0,0.25)"})),XM=g2("div")(({theme:e})=>({padding:"2rem 1rem",backgroundColor:e.palette.mode==="light"?Ue:Od}));import{Fragment as m8e,jsx as ba,jsxs as JM}from"react/jsx-runtime";function p8e({open:e,onClose:t,title:r,leftHeaderIcon:o,helpText:a,helpArea:n,actions:i,hideActions:l=!1,content:s,maxWidth:u="xs",...f}){return ba(la,{sx:{"& .MuiDialog-paper":{borderRadius:"10px"}},open:e,maxWidth:u,onClose:t,slots:{backdrop:d8e},slotProps:{backdrop:{timeout:500}},...f,children:JM(ZM,{children:[JM(YM,{children:[o&&ba("div",{style:{display:"flex",alignItems:"center"},children:o}),r&&ba(m8e,{children:ba("div",{style:{display:"flex",alignItems:"center"},children:ba(Ul,{children:r})})}),ba("div",{style:{display:"flex",alignItems:"center"},children:a&&ba("div",{children:n})})]}),ba(h2,{children:ba(XM,{children:s})}),!l&&ba(x2,{children:ba(QM,{children:i})})]})})}var eL=p8e;import{jsx as tL}from"react/jsx-runtime";function c8e({children:e,style:t,...r}){return tL(Ul,{sx:t,...r,children:tL(G,{sx:{flexGrow:1,fontSize:"1.25rem",textAlign:"center"},variant:"h6",children:e})})}var T2=c8e;import{jsx as m6,jsxs as c6}from"react/jsx-runtime";function x8e({icon:e,message:t,pointerLabel:r,poiner:o=!1}){return c6("div",{style:{textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",minHeight:"50vh"},children:[o&&c6(xe,{style:{display:"flex",width:"100%",padding:"0 40px"},children:[m6(G4,{}),m6(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})]}),c6(xe,{style:{marginTop:"120px"},children:[e,m6(G,{sx:{fontSize:"1.5rem",color:"#808080",px:5,py:2,lineHeight:1},children:t})]})]})}var rL=x8e;import{styled as h6}from"@mui/material";import{createContext as h8e,Component as g8e,createElement as oL,useContext as xgt,useState as hgt,useMemo as ggt,forwardRef as Tgt}from"react";var T8e=h8e(null),x6={didCatch:!1,error:null},Mp=class extends g8e{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=x6}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(x6)}}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&&S8e(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(x6)}}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=oL(o,s);else if(a!==void 0)l=a;else throw i}return oL(T8e.Provider,{value:{didCatch:n,error:i,resetErrorBoundary:this.resetErrorBoundary}},l)}};function S8e(){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 b8e,jsx as Ro,jsxs as Lp}from"react/jsx-runtime";var C8e=h6(G)(({theme:e})=>({color:e.palette.text.default,fontWeight:"normal",marginTop:"2px",marginBottom:"2px",fontSize:"1.15rem"})),aL=h6(To)(({theme:e})=>({color:e.palette.border.brand,textDecoration:"underline",cursor:"pointer"})),y8e=h6("div")(({theme:e})=>({display:"flex",flexDirection:"column",backgroundColor:e.palette.background.code,color:e.palette.text.tertiary,padding:".85rem",borderRadius:".2rem",marginBlock:".5rem"}));function g6({error:e,children:t,showPackageInfo:r,version:o}){return Lp("div",{role:"alert",children:[Ro("h2",{children:"Uh-oh!\u{1F614} Please pardon the mesh."}),Lp(y8e,{children:[Lp("code",{children:[Ro("strong",{children:"Error: "}),e.message]}),Ro("br",{}),r&&Lp(b8e,{children:[Ro("strong",{children:"Version:"})," ",o]})]}),Lp(C8e,{children:["We apologize for the inconvenience. The issue may be on our end. If troubleshooting doesn't work, please check out our support channels"," ",Ro(aL,{href:"https://discuss.layer5.io/",target:"_blank",rel:"noopener noreferrer",children:"Discuss Forum"})," "," or ",Ro(aL,{href:"https://slack.layer5.io/",target:"_blank",rel:"noopener noreferrer",children:"Slack"})]}),Ro(K,{children:t})]})}var nL=(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)},jr=({customFallback:e,children:t,onErrorCaught:r})=>{let o=window.location.href,a=new Date().toLocaleString();return Ro(Mp,{FallbackComponent:e||(i=>Ro(g6,{...i,pageUrl:o,timestamp:a})),onError:(i,l)=>{r?.(i.message),nL(i,l)},children:t})},iL=({Component:e,errorHandlingProps:t={children:null}})=>Ro(jr,{...t,children:Ro(e,{})}),lL=({Component:e})=>Ro(Mp,{FallbackComponent:()=>null,onError:nL,children:Ro(e,{})});import v6 from"@mui/material/Typography";import{useState as Bp}from"react";import{styled as zo}from"@mui/material";import{useRef as O8e,useState as C2}from"react";import{useState as v8e}from"react";import{Fragment as E8e,jsx as S2,jsxs as R8e}from"react/jsx-runtime";function w8e({content:e,fontSize:t,fontWeight:r=400,variant:o="standard",bgColor:a="#141414",icon:n=S2(k4,{fontSize:"small"}),...i}){let[l,s]=v8e(null);return R8e(E8e,{children:[S2($e,{size:"small",onClick:p=>{s(p.currentTarget)},sx:{color:"inherit",padding:"2px",verticalAlign:"middle"},children:n}),S2(wd,{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:Ue,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"?S2(mf,{content:e}):e})]})}var T6=w8e;import{jsx as Xa,jsxs as Dp}from"react/jsx-runtime";var hf=zo($e)`
|
|
60
60
|
&& {
|
|
61
61
|
& svg {
|
|
62
62
|
fill: #fff;
|
|
@@ -76,7 +76,7 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var se=le(y,R,L,F,q+"."+
|
|
|
76
76
|
overflow: hidden;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
`,P8e=zo(Ld)(({theme:e})=>({height:"2.25rem",width:"2.25rem",fill:e.palette.common.white,cursor:"pointer"})),_8e=zo(_4)(({theme:e})=>({height:"2.25rem",width:"2.25rem",fill:e.palette.common.white,cursor:"pointer"})),y2=zo("div")(({theme:e})=>({background:e.palette.surface.tint,color:"#eee",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"1rem",textAlign:"center"})),k8e=({headerIcon:e})=>{let[t,r]=C2(!1),[o,a]=C2(""),n=O8e(null),[i,l]=C2(null);return{isOpen:t,open:t,openModal:({title:f,reactNode:d=null,onClose:p})=>{f&&a(f),p&&(n.current=p),r(!0),d&&l(d)},reactNode:i,title:o,headerIcon:e,closeModal:()=>{r(!1),n.current&&n.current(),l(null),a(""),n.current=null}}},wr=zo(Sn)(({theme:e})=>({padding:"1rem",backgroundColor:e.palette.surface.primary,overflowY:"auto",height:"100%",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},"-ms-overflow-style":"none"})),I8e=zo("div",{shouldForwardProp:e=>e!=="variant"})(({theme:e,variant:t,hasHelpText:r})=>({background:t==="filled"?e.palette.surface.tint:"transparent",display:"flex",alignItems:"center",justifyContent:r?"space-between":"end",padding:"1rem",gap:"1rem","&& .InfoCircleIcon":{color:t==="filled"?e.palette.common.white:e.palette.background.info?.default}})),Er=({open:e,closeModal:t,title:r,headerIcon:o,reactNode:a,children:n,maxWidth:i="xs",isFullScreenModeAllowed:l,...s})=>{let[u,f]=C2(!1),d=()=>{f(p=>!p)};return Dp(A8e,{maxWidth:i,open:e,onClose:t,"aria-labelledby":"alert-dialog-slide-title","aria-describedby":"alert-dialog-slide-description",fullScreen:u,fullWidth:!u,...s,children:[r&&Dp(y2,{"data-testid":"modal-header",children:[o&&Xa(K,{"data-testid":"modal-header-icon",children:o}),Xa(G,{component:"div",variant:"h6","data-testid":"modal-title",children:r}),Dp("div",{style:{display:"flex",alignItems:"center",gap:"1rem"},"data-testid":"modal-header-actions",children:[l&&Xa(ge,{title:u?"Exit Fullscreen":"Enter Fullscreen",children:u?Xa(_8e,{onClick:d,"data-testid":"modal-exit-fullscreen-btn"}):Xa(P8e,{onClick:d,"data-testid":"modal-enter-fullscreen-btn"})}),Xa(hf,{onClick:t,"data-testid":"modal-close-btn",children:Xa(vt,{...ju,fill:"#fff"})})]})]}),a&&a,n&&n]})},Kr=({helpText:e,children:t,variant:r})=>Dp(I8e,{variant:r,hasHelpText:!!e,children:[e&&Xa(T6,{content:e}),t]}),Ja=zo(K3)(({theme:e})=>({backgroundColor:e.palette.background.brand?.default,color:e.palette.text.constant?.white,"&:hover":{background:e.palette.background.brand?.hover},"&.MuiButton-contained.Mui-disabled":{color:e.palette.text.constant?.disabled,backgroundColor:e.palette.background.constant?.disabled}})),en=zo(Ow)(({theme:e})=>({"&.MuiButton-outlined":{border:`1px solid ${e.palette.background.constant?.white}`,color:e.palette.text.constant?.white,backgroundColor:"transparent","&:hover":{background:"transparent",color:e.palette.text.constant?.white}},"&.MuiButton-outlined.Mui-disabled":{color:e.palette.text.disabled,border:"none",backgroundColor:e.palette.background.brand?.disabled}})),M8e=zo(Aw)(({theme:e})=>({color:e.palette.text.inverse})),L8e=zo(K3)(({theme:e})=>({backgroundColor:e.palette.background.error?.default,color:e.palette.text.constant?.white,"&:hover":{background:e.palette.background.error?.hover}})),D8e=zo(K)(()=>({width:"100%",display:"flex",justifyContent:"end",gap:"1rem"})),Fp=({primaryText:e,secondaryText:t,primaryButtonProps:r,secondaryButtonProps:o})=>Dp(D8e,{children:[Xa(en,{...o,children:t}),Xa(Ja,{...r,children:e})]});import{styled as Np}from"@mui/material";var sL=Np("div")(({theme:e})=>({backgroundColor:e.palette.background.surfaces})),uL=Np("div")(()=>({zIndex:"100",borderRadius:"5px"})),fL=Np("div")(()=>({padding:"1.25rem 1rem",display:"flex",justifyContent:"flex-end",background:"linear-gradient(90deg, #3B687B 0%, #507D90 100%)",boxShadow:"inset 0px 3px 5px 0px rgba(0,0,0,0.25)",position:"relative",zIndex:"100"})),dL=Np(G)({fontSize:"18px"}),pL=Np("div")(()=>({display:"flex",borderRadius:"5px 5px 0px 0px",justifyContent:"space-between",padding:"11px 16px",height:"52px",fill:Ue,boxShadow:"inset 0px -1px 3px 0px rgba(0,0,0,0.2)",background:"linear-gradient(90deg, #3B687B 0%, #507D90 100%)"}));import{jsx as Ss,jsxs as S6}from"react/jsx-runtime";function F8e({title:e,leftHeaderIcon:t,helpText:r,helpArea:o,actions:a,hideActions:n=!1,content:i,closeComponent:l,"data-testid":s="modal-card-wrapper"}){return S6(uL,{"data-testid":s,children:[S6(pL,{"data-testid":"modal-card-header",children:[t&&Ss("div",{style:{display:"flex",alignItems:"center"},"data-testid":"modal-card-header-icon",children:t}),e&&Ss("div",{style:{display:"flex",alignItems:"center",color:"white"},"data-testid":"modal-card-title",children:Ss(dL,{children:e})}),S6("div",{style:{display:"flex",alignItems:"center"},"data-testid":"modal-card-header-right",children:[r&&Ss("div",{"data-testid":"modal-card-help-area",children:o}),Ss("div",{"data-testid":"modal-card-close-button",children:l})]})]}),Ss(sL,{"data-testid":"modal-card-content",children:i}),!n&&Ss(fL,{"data-testid":"modal-card-actions",children:a})]})}var b2=F8e;import{Box as C6,Button as y6,Checkbox as N8e,styled as Rr}from"@mui/material";var mL=Rr("div")({cursor:"pointer",width:"30px",height:"30px",display:"flex",alignItems:"center",fill:Di}),B8e={"bottom-center":{open:{bottom:"0px",left:"50%",transform:"translateX(-50%)"},closed:{bottom:"-42%",left:"50%",transform:"translateX(-50%)"}},"bottom-right":{open:{bottom:"0px",right:"10px"},closed:{bottom:"-448px",right:"10px"}},"bottom-left":{open:{bottom:"0px",left:"10px"},closed:{bottom:"-448px",left:"10px"}},"right-top":{open:{top:"0px",right:"0px"},closed:{top:"0px",right:"-448px"}},"right-middle":{open:{top:"50%",right:"0px",transform:"translateY(-50%)"},closed:{top:"50%",right:"-448px",transform:"translateY(-50%)"}},"right-bottom":{open:{bottom:"0px",right:"0px"},closed:{bottom:"0px",right:"-448px"}}},cL=Rr(C6)(({isOpen:e,renderPosition:t})=>({position:"fixed",transition:"all 0.5s ease",...B8e[t][e?"open":"closed"]})),xL=Rr("div")({display:"flex",flexDirection:"column",justifyContent:"center",transition:"bottom 0.5s ease",padding:"1.688rem 1.188rem",width:"28rem",height:"12rem"}),hL=Rr("div")({display:"flex",alignItems:"center",paddingTop:"0.5px",height:"20px",width:"21.188rem"}),gL=Rr("div")({width:"24px",height:"24px"}),dTt=Rr(y6)(({isOpen:e})=>({color:"white",width:"4.313rem",height:"2.25rem",textTransform:"none",boxShadow:"0px 1px 8px rgba(0, 0, 0, 0.25)",backgroundColor:e?Mu.main:_e,"&:hover":{backgroundColor:Ww}})),TL=Rr(y6)(({theme:e,renderPosition:t})=>({backgroundColor:Iu,color:Di,borderRadius:"5px",padding:"10px 20px",fontSize:"16px",transition:"bottom 0.5s ease",position:"fixed",...H8e[t],"&:hover":{backgroundColor:e.palette.mode==="dark"?lr:"#213A45"}})),H8e={"bottom-center":{bottom:"-10px",left:"50%",transform:"translateX(-50%)"},"bottom-right":{bottom:"-10px",right:"10px"},"bottom-left":{bottom:"-10px",left:"10px"},"right-top":{top:"8%",right:"-45px",transform:"rotate(-90deg)"},"right-middle":{top:"50%",right:"-45px",transform:"rotate(-90deg)"},"right-bottom":{bottom:"10%",right:"-45px",transform:"rotate(-90deg)"}},SL=Rr("div")(({theme:e})=>({display:"block",right:"0",backgroundColor:e.palette.mode==="dark"?"#333333":Di,bottom:"0",width:"100%",zIndex:"100",position:"relative",height:"100%",alignItems:"center",transition:"bottom 0.5s ease"})),CL=Rr(C6)(({isOpen:e,theme:t})=>({position:"relative",bottom:e?"0px":"-240px",right:"0",color:t.palette.text.default,backgroundColor:t.palette.mode==="dark"?Kl:Ue,border:`1px solid ${$w}`,padding:"20px",width:"28rem",height:"333.5px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",transition:"bottom 0.5s ease",fontSize:"1.5rem",textAlign:"center"})),yL=Rr(C6)({display:"flex",justifyContent:"space-between",alignSelf:"center"}),bL=Rr(y6)(({theme:e,isOpen:t})=>({fontSize:"16px",lineHeight:1,letterSpacing:"0.029em",textTransform:"none",width:"100%",height:"5rem",display:"flex",padding:"0rem",borderRadius:"0px",flexDirection:"column",borderBottom:t?`2px solid ${_e}`:"",background:t?e.palette.mode==="dark"?lr:No:e.palette.mode==="dark"?Kl:Va,color:t?e.palette.mode==="dark"?No:lr:e.palette.mode==="dark"?No:No,fill:t?e.palette.icon.default:No,stroke:t?e.palette.icon.inverse:e.palette.icon.brand,"&:hover":{color:e.palette.text.default,backgroundColor:e.palette.background.hover,fill:e.palette.icon.default}})),vL=Rr("textarea")(({theme:e})=>({width:"100%",background:"transparent",border:`1px solid ${ku}`,borderRadius:"4px",color:e.palette.mode==="dark"?No:lr,fontSize:"16px",paddingTop:"10.5px",paddingBottom:"10.5px",paddingLeft:"0.6rem",paddingRight:"0.6rem",resize:"none",fontFamily:"inherit",fontStyle:"normal","&::placeholder":{color:e.palette.mode==="dark"?No:Kl},"&:focus":{outline:`1px solid ${Co}`}})),wL=Rr("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-between",height:"137px",color:e.palette.text.default})),EL=Rr("a")({textDecoration:"underline",color:"inherit","&:hover":{color:"inherit"}}),RL=Rr(N8e)({color:`${Ue} !important`,marginLeft:"-11px",paddingLeft:"0px"}),OL=Rr("div")({padding:"1.5rem 1rem",width:"28rem",height:"12rem"}),AL=Rr("div")({padding:"0px",width:"30px",height:"30px",display:"flex",alignItems:"center"});import{Fragment as PL,jsx as St,jsxs as al}from"react/jsx-runtime";var V8e="Some account and system information may be sent to Layer5. We will use it to fix problems and improve our services, subject to our [Privacy Policy](https://layer5.io/company/legal/privacy) and [Terms of Service](https://layer5.io/company/legal/terms-of-service). We may email you for more information or updates.",b6=[{icon:St(hx,{}),label:"Issue",placeholder:"I\u2019m having an issue with...",isTextInput:!0},{icon:St(B4,{}),label:"Suggestion",placeholder:"I have a suggestion about...",isTextInput:!0},{icon:St(I4,{}),label:"Meet Request",isTextInput:!1,innerComponent:al(wL,{children:[al(v6,{style:{lineHeight:"2.5",textAlign:"center"},children:["Need help or have more feedback than fits here?",St("br",{})," Meet with us."]}),St(EL,{target:"_blank",href:"https://calendar.google.com/calendar/appointments/schedules/AcZssZ3pmcApaDP4xd8hvG5fy8ylxuFxD3akIRc5vpWJ60q-HemQi80SFFAVftbiIsq9pgiA2o8yvU56",children:"Select a time convenient for you."})]})}],U8e=({onSubmit:e,containerStyles:t,feedbackOptionStyles:r,renderPosition:o,defaultMessage:a=void 0,defaultOpen:n=!1})=>{let[i,l]=Bp(n),[s,u]=Bp(!1),[f,d]=Bp(b6[0]),[p,m]=Bp(a),[x,h]=Bp(!!a);return al(PL,{children:[St(TL,{onClick:()=>{l(!i),d(b6[0]),u(!1),m("")},style:t,renderPosition:o,children:"Feedback"}),St(cL,{isOpen:i,style:t,renderPosition:o,children:s?al(CL,{isOpen:i,children:[St(X4,{width:"32",height:"32"}),"Submitting your feedback..."]}):St(PL,{children:St(b2,{onClose:()=>{},open:!0,closeComponent:St(mL,{onClick:()=>l(!1),children:St(vt,{width:"30",height:"30",fill:Di})}),actions:al("div",{style:{display:"flex",alignItems:"center"},children:[al(hL,{children:[St(RL,{checked:x,onChange:v=>{h(v.target.checked)}}),St(v6,{style:{color:"white",fontSize:"12px",height:"15px"},children:"We may email you for more information or updates"})]}),St(Ja,{type:"submit",disabled:!(p&&x),isOpen:!(p&&x),onClick:()=>{u(!0),p&&x&&e({label:f?.label||"",message:p}),setTimeout(()=>{l(!1),d(void 0),u(!1),m("")},2e3)},children:"Send"})]}),leftHeaderIcon:St(hx,{}),title:"Feedback",helpArea:St(ge,{placement:"top",title:V8e,arrow:!0,children:St(AL,{children:St(Y4,{width:"30",height:"30"})})}),helpText:"Help",content:al(SL,{children:[St(yL,{children:b6?.map(v=>al(bL,{style:r,type:"button",onClick:()=>{d(v)},isOpen:f?.label===v.label,children:[St(gL,{children:v.icon}),St(v6,{children:v.label})]},v.label))}),f?.isTextInput?St(xL,{children:St(vL,{value:p||"",onChange:v=>{m(v.target.value)},required:!0,placeholder:f.placeholder,rows:5,cols:30})}):St(OL,{children:f?.innerComponent})]})})})})]})},_L=U8e;import{styled as w2}from"@mui/material";import gf from"react";import{jsx as v2}from"react/jsx-runtime";function kL(e,t){if(!e||e.length!=2)throw Error("FlipCard requires exactly two child components");return e[t]}var W8e=w2("div")(({theme:e})=>({height:"100%",backgroundColor:"transparent",perspective:e.spacing(125)})),q8e=w2("div")(({theme:e})=>({padding:e.spacing(2),borderRadius:e.spacing(1),transformStyle:"preserve-3d",boxShadow:"0 4px 8px 0 rgba(0,0,0,0.2)",backgroundColor:e.palette.mode==="dark"?Ad:Ue,cursor:"pointer",transformOrigin:"50% 50% 10%"})),G8e=w2("div")({backfaceVisibility:"hidden"}),z8e=w2("div")({backfaceVisibility:"hidden",transform:"scale(-1, 1)",wordBreak:"break-word"});function E2({duration:e=500,onClick:t,onShow:r,children:o,disableFlip:a=!1,padding:n}){let[i,l]=gf.useState(!1),[s,u]=gf.useState(!1),f=gf.useRef(null),d=kL(o,0),p=kL(o,1);return gf.useEffect(()=>{f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{u(i)},e/6)},[i,e]),v2(W8e,{onClick:()=>{a||(l(m=>!m),t&&t(),r&&r())},children:v2(q8e,{style:{transform:i?"scale(-1,1)":void 0,transition:`transform ${e}ms`,padding:n},children:s?v2(z8e,{children:gf.isValidElement(p)?p:null}):v2(G8e,{children:gf.isValidElement(d)?d:null})})})}import{Box as j8e,Tooltip as IL,Typography as K8e}from"@mui/material";import $8e from"lodash";import{useState as Y8e}from"react";import{jsx as Hp,jsxs as Z8e}from"react/jsx-runtime";var R2=({id:e})=>{let[t,r]=Y8e(!1),o=te(),a=i=>{i.stopPropagation(),navigator.clipboard.writeText(e),r(!0),setTimeout(()=>{r(!1)},2e3)},n=$8e.truncate(e,{length:15});return Z8e(j8e,{sx:{display:"flex",alignItems:"center"},children:[Hp(IL,{title:e,placement:"top",children:Hp(K8e,{variant:"body2",style:{cursor:"pointer",textWrap:"nowrap",color:o.palette.text.primary},children:n})}),Hp(IL,{title:t?"Copied!":"Copy",placement:"top",children:Hp("div",{onClick:a,style:{padding:"0.25rem"},children:Hp(da,{width:16,height:16,fill:o.palette.action.active})})})]})};import ML from"react";function LL(){let{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}function jo(){let[e,t]=ML.useState(LL());return ML.useEffect(()=>{let r;function o(){r&&clearTimeout(r),r=window.setTimeout(()=>{t(LL())},500)}return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),r&&clearTimeout(r)}},[]),e}import bf,{useMemo as a6e,forwardRef as $p,useRef as zp,useCallback as I6,useEffect as jp,createElement as Gp,cloneElement as n6e,useLayoutEffect as i6e,memo as e8t,useState as t8t,Component as r8t,isValidElement as o8t,useContext as l6e}from"react";import{createPortal as n8t}from"react-dom";function DL(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=DL(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function Q8e(){for(var e,t,r=0,o="";r<arguments.length;)(e=arguments[r++])&&(t=DL(e))&&(o&&(o+=" "),o+=t);return o}var Vp=Q8e;var X8e={data:""},J8e=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||X8e;var e6e=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,t6e=/\/\*[^]*?\*\/| +/g,FL=/\n+/g,Cs=(e,t)=>{let r="",o="",a="";for(let n in e){let i=e[n];n[0]=="@"?n[1]=="i"?r=n+" "+i+";":o+=n[1]=="f"?Cs(i,n):n+"{"+Cs(i,n[1]=="k"?"":t)+"}":typeof i=="object"?o+=Cs(i,t?t.replace(/([^,])+/g,l=>n.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,s=>/&/.test(s)?s.replace(/&/g,l):l?l+" "+s:s)):n):i!=null&&(n=/^--/.test(n)?n:n.replace(/[A-Z]/g,"-$&").toLowerCase(),a+=Cs.p?Cs.p(n,i):n+":"+i+";")}return r+(t&&a?t+"{"+a+"}":a)+o},Wn={},NL=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+NL(e[r]);return t}return e},r6e=(e,t,r,o,a)=>{let n=NL(e),i=Wn[n]||(Wn[n]=(s=>{let u=0,f=11;for(;u<s.length;)f=101*f+s.charCodeAt(u++)>>>0;return"go"+f})(n));if(!Wn[i]){let s=n!==e?e:(u=>{let f,d,p=[{}];for(;f=e6e.exec(u.replace(t6e,""));)f[4]?p.shift():f[3]?(d=f[3].replace(FL," ").trim(),p.unshift(p[0][d]=p[0][d]||{})):p[0][f[1]]=f[2].replace(FL," ").trim();return p[0]})(e);Wn[i]=Cs(a?{["@keyframes "+i]:s}:s,r?"":"."+i)}let l=r&&Wn.g?Wn.g:null;return r&&(Wn.g=Wn[i]),((s,u,f,d)=>{d?u.data=u.data.replace(d,s):u.data.indexOf(s)===-1&&(u.data=f?s+u.data:u.data+s)})(Wn[i],t,o,l),i},o6e=(e,t,r)=>e.reduce((o,a,n)=>{let i=t[n];if(i&&i.call){let l=i(r),s=l&&l.props&&l.props.className||/^go/.test(l)&&l;i=s?"."+s:l&&typeof l=="object"?l.props?"":Cs(l,""):l===!1?"":l}return o+a+(i??"")},"");function O2(e){let t=this||{},r=e.call?e(t.p):e;return r6e(r.unshift?r.raw?o6e(r,[].slice.call(arguments,1),t.p):r.reduce((o,a)=>Object.assign(o,a&&a.call?a(t.p):a),{}):r,J8e(t.target),t.g,t.o,t.k)}var ZTt=O2.bind({g:1}),QTt=O2.bind({k:1});function BL(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s6e(e,t,r){return t&&BL(e.prototype,t),r&&BL(e,r),e}function nl(){return nl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},nl.apply(this,arguments)}function u6e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function M6(e,t){if(e==null)return{};var r={},o=Object.keys(e),a,n;for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var HL=function(){return""},f6e=bf.createContext({enqueueSnackbar:HL,closeSnackbar:HL}),ys={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"};var A2="unmounted",Tf="exited",Sf="entering",Up="entered",VL="exiting",L6=function(e){u6e(t,e);function t(o){var a;a=e.call(this,o)||this;var n=o.appear,i;return a.appearStatus=null,o.in?n?(i=Tf,a.appearStatus=Sf):i=Up:o.unmountOnExit||o.mountOnEnter?i=A2:i=Tf,a.state={status:i},a.nextCallback=null,a}t.getDerivedStateFromProps=function(a,n){var i=a.in;return i&&n.status===A2?{status:Tf}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var n=null;if(a!==this.props){var i=this.state.status;this.props.in?i!==Sf&&i!==Up&&(n=Sf):(i===Sf||i===Up)&&(n=VL)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,n=a,i=a;return a!=null&&typeof a!="number"&&typeof a!="string"&&(i=a.exit,n=a.enter),{exit:i,enter:n}},r.updateStatus=function(a,n){a===void 0&&(a=!1),n!==null?(this.cancelNextCallback(),n===Sf?this.performEnter(a):this.performExit()):this.props.unmountOnExit&&this.state.status===Tf&&this.setState({status:A2})},r.performEnter=function(a){var n=this,i=this.props.enter,l=a,s=this.getTimeouts();if(!a&&!i){this.safeSetState({status:Up},function(){n.props.onEntered&&n.props.onEntered(n.node,l)});return}this.props.onEnter&&this.props.onEnter(this.node,l),this.safeSetState({status:Sf},function(){n.props.onEntering&&n.props.onEntering(n.node,l),n.onTransitionEnd(s.enter,function(){n.safeSetState({status:Up},function(){n.props.onEntered&&n.props.onEntered(n.node,l)})})})},r.performExit=function(){var a=this,n=this.props.exit,i=this.getTimeouts();if(!n){this.safeSetState({status:Tf},function(){a.props.onExited&&a.props.onExited(a.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:VL},function(){a.props.onExiting&&a.props.onExiting(a.node),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:Tf},function(){a.props.onExited&&a.props.onExited(a.node)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,n){n=this.setNextCallback(n),this.setState(a,n)},r.setNextCallback=function(a){var n=this,i=!0;return this.nextCallback=function(){i&&(i=!1,n.nextCallback=null,a())},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(a,n){this.setNextCallback(n);var i=a==null&&!this.props.addEndListener;if(!this.node||i){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===A2)return null;var n=this.props,i=n.children,l=M6(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return i(a,l)},s6e(t,[{key:"node",get:function(){var a,n=(a=this.props.nodeRef)===null||a===void 0?void 0:a.current;if(!n)throw new Error("notistack - Custom snackbar is not refForwarding");return n}}]),t}(bf.Component);function Cf(){}L6.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Cf,onEntering:Cf,onEntered:Cf,onExit:Cf,onExiting:Cf,onExited:Cf};function UL(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function _6(e,t){return a6e(function(){return e==null&&t==null?null:function(r){UL(e,r),UL(t,r)}},[e,t])}function I2(e){var t=e.timeout,r=e.style,o=r===void 0?{}:r,a=e.mode;return{duration:typeof t=="object"?t[a]||0:t,easing:o.transitionTimingFunction,delay:o.transitionDelay}}var k6={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},KL=function(t){t.scrollTop=t.scrollTop},WL=function(t){return Math.round(t)+"ms"};function yf(e,t){e===void 0&&(e=["all"]);var r=t||{},o=r.duration,a=o===void 0?300:o,n=r.easing,i=n===void 0?k6.easeInOut:n,l=r.delay,s=l===void 0?0:l,u=Array.isArray(e)?e:[e];return u.map(function(f){var d=typeof a=="string"?a:WL(a),p=typeof s=="string"?s:WL(s);return f+" "+d+" "+i+" "+p}).join(",")}function d6e(e){return e&&e.ownerDocument||document}function $L(e){var t=d6e(e);return t.defaultView||window}function p6e(e,t){t===void 0&&(t=166);var r;function o(){for(var a=this,n=arguments.length,i=new Array(n),l=0;l<n;l++)i[l]=arguments[l];var s=function(){e.apply(a,i)};clearTimeout(r),r=setTimeout(s,t)}return o.clear=function(){clearTimeout(r)},o}function m6e(e,t){var r=t.getBoundingClientRect(),o=$L(t),a;if(t.fakeTransform)a=t.fakeTransform;else{var n=o.getComputedStyle(t);a=n.getPropertyValue("-webkit-transform")||n.getPropertyValue("transform")}var i=0,l=0;if(a&&a!=="none"&&typeof a=="string"){var s=a.split("(")[1].split(")")[0].split(",");i=parseInt(s[4],10),l=parseInt(s[5],10)}switch(e){case"left":return"translateX("+(o.innerWidth+i-r.left)+"px)";case"right":return"translateX(-"+(r.left+r.width-i)+"px)";case"up":return"translateY("+(o.innerHeight+l-r.top)+"px)";default:return"translateY(-"+(r.top+r.height-l)+"px)"}}function P2(e,t){if(t){var r=m6e(e,t);r&&(t.style.webkitTransform=r,t.style.transform=r)}}var c6e=$p(function(e,t){var r=e.children,o=e.direction,a=o===void 0?"down":o,n=e.in,i=e.style,l=e.timeout,s=l===void 0?0:l,u=e.onEnter,f=e.onEntered,d=e.onExit,p=e.onExited,m=M6(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),x=zp(null),h=_6(r.ref,x),g=_6(h,t),T=function(b,A){P2(a,b),KL(b),u&&u(b,A)},E=function(b){var A=i?.transitionTimingFunction||k6.easeOut,B=I2({timeout:s,mode:"enter",style:nl({},i,{transitionTimingFunction:A})});b.style.webkitTransition=yf("-webkit-transform",B),b.style.transition=yf("transform",B),b.style.webkitTransform="none",b.style.transform="none"},v=function(b){var A=i?.transitionTimingFunction||k6.sharp,B=I2({timeout:s,mode:"exit",style:nl({},i,{transitionTimingFunction:A})});b.style.webkitTransition=yf("-webkit-transform",B),b.style.transition=yf("transform",B),P2(a,b),d&&d(b)},I=function(b){b.style.webkitTransition="",b.style.transition="",p&&p(b)},k=I6(function(){x.current&&P2(a,x.current)},[a]);return jp(function(){if(!(n||a==="down"||a==="right")){var C=p6e(function(){x.current&&P2(a,x.current)}),b=$L(x.current);return b.addEventListener("resize",C),function(){C.clear(),b.removeEventListener("resize",C)}}},[a,n]),jp(function(){n||k()},[n,k]),Gp(L6,Object.assign({appear:!0,nodeRef:x,onEnter:T,onEntered:f,onEntering:E,onExit:v,onExited:I,in:n,timeout:s},m),function(C,b){return n6e(r,nl({ref:g,style:nl({visibility:C==="exited"&&!n?"hidden":void 0},i,{},r.props.style)},b))})});c6e.displayName="Slide";function M2(e){return Object.entries(e).reduce(function(t,r){var o,a=r[0],n=r[1];return nl({},t,(o={},o[a]=O2(n),o))},{})}var Kp={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},qL=M2({root:{height:0},entered:{height:"auto"}}),w6="0px",E6=175,x6e=$p(function(e,t){var r=e.children,o=e.in,a=e.onExited,n=zp(null),i=zp(null),l=_6(t,i),s=function(){return n.current?n.current.clientHeight:0},u=function(h){h.style.height=w6},f=function(h){var g=s(),T=I2({timeout:E6,mode:"enter"}),E=T.duration,v=T.easing;h.style.transitionDuration=typeof E=="string"?E:E+"ms",h.style.height=g+"px",h.style.transitionTimingFunction=v||""},d=function(h){h.style.height="auto"},p=function(h){h.style.height=s()+"px"},m=function(h){KL(h);var g=I2({timeout:E6,mode:"exit"}),T=g.duration,E=g.easing;h.style.transitionDuration=typeof T=="string"?T:T+"ms",h.style.height=w6,h.style.transitionTimingFunction=E||""};return Gp(L6,{in:o,unmountOnExit:!0,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:a,onExiting:m,nodeRef:i,timeout:E6},function(x,h){return Gp("div",Object.assign({ref:l,className:Vp(qL.root,x==="entered"&&qL.entered),style:nl({pointerEvents:"all",overflow:"hidden",minHeight:w6,transition:yf("height")},x==="entered"&&{overflow:"visible"},{},x==="exited"&&!o&&{visibility:"hidden"})},h),Gp("div",{ref:n,className:Kp.CollapseWrapper,style:{display:"flex",width:"100%"}},r))})});x6e.displayName="Collapse";var h6e=typeof window<"u"?i6e:jp;function GL(e){var t=zp(e);return h6e(function(){t.current=e}),I6(function(){return t.current.apply(void 0,arguments)},[])}var g6e=$p(function(e,t){var r=e.children,o=e.className,a=e.autoHideDuration,n=e.disableWindowBlurListener,i=n===void 0?!1:n,l=e.onClose,s=e.id,u=e.open,f=e.SnackbarProps,d=f===void 0?{}:f,p=zp(),m=GL(function(){l&&l.apply(void 0,arguments)}),x=GL(function(v){!l||v==null||(p.current&&clearTimeout(p.current),p.current=setTimeout(function(){m(null,"timeout",s)},v))});jp(function(){return u&&x(a),function(){p.current&&clearTimeout(p.current)}},[u,a,x]);var h=function(){p.current&&clearTimeout(p.current)},g=I6(function(){a!=null&&x(a*.5)},[a,x]),T=function(I){d.onMouseEnter&&d.onMouseEnter(I),h()},E=function(I){d.onMouseLeave&&d.onMouseLeave(I),g()};return jp(function(){if(!i&&u)return window.addEventListener("focus",g),window.addEventListener("blur",h),function(){window.removeEventListener("focus",g),window.removeEventListener("blur",h)}},[i,g,u]),Gp("div",Object.assign({ref:t},d,{className:Vp(Kp.Snackbar,o),onMouseEnter:T,onMouseLeave:E}),r)});g6e.displayName="Snackbar";var R6,T6e=M2({root:(R6={display:"flex",flexWrap:"wrap",flexGrow:1},R6[ys.upSm]={flexGrow:"initial",minWidth:"288px"},R6)}),YL=$p(function(e,t){var r=e.className,o=M6(e,["className"]);return bf.createElement("div",Object.assign({ref:t,className:Vp(T6e.root,r)},o))});YL.displayName="SnackbarContent";var Wp=M2({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:8*2.5+"px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),zL="notistack-snackbar",S6e=$p(function(e,t){var r=e.id,o=e.message,a=e.action,n=e.iconVariant,i=e.variant,l=e.hideIconVariant,s=e.style,u=e.className,f=n[i],d=a;return typeof d=="function"&&(d=d(r)),bf.createElement(YL,{ref:t,role:"alert","aria-describedby":zL,style:s,className:Vp(Kp.MuiContent,Kp.MuiContentVariant(i),Wp.root,Wp[i],u,!l&&f&&Wp.lessPadding)},bf.createElement("div",{id:zL,className:Wp.message},l?null:f,o),d&&bf.createElement("div",{className:Wp.action},d))});S6e.displayName="MaterialDesignContent";var qp,O6,_2,k2,A6,qn={view:{default:20,dense:4},snackbar:{default:6,dense:2}},jL="."+Kp.CollapseWrapper,P6=16,s8t=M2({root:(qp={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:yf(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},qp[jL]={padding:qn.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},qp.maxWidth="calc(100% - "+qn.view.default*2+"px)",qp[ys.downXs]={width:"100%",maxWidth:"calc(100% - "+P6*2+"px)"},qp),rootDense:(O6={},O6[jL]={padding:qn.snackbar.dense+"px 0px"},O6),top:{top:qn.view.default-qn.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:qn.view.default-qn.snackbar.default+"px",flexDirection:"column-reverse"},left:(_2={left:qn.view.default+"px"},_2[ys.upSm]={alignItems:"flex-start"},_2[ys.downXs]={left:P6+"px"},_2),right:(k2={right:qn.view.default+"px"},k2[ys.upSm]={alignItems:"flex-end"},k2[ys.downXs]={right:P6+"px"},k2),center:(A6={left:"50%",transform:"translateX(-50%)"},A6[ys.upSm]={alignItems:"center"},A6)});var u8t=process.env.NODE_ENV!=="production";var ZL=function(){return l6e(f6e)};import QL from"react";var C6e=()=>{let[e,t]=QL.useState(""),{enqueueSnackbar:r}=ZL();return QL.useEffect(()=>{e&&(r(e),t(""))},[e,r]),(a,n)=>{t(a),n&&r(a,n)}},XL=C6e;var Ko=(e,t)=>{let r={};return e.forEach(o=>{o[1]==="na"?r[o[0]]=!1:t>1140?r[o[0]]=!0:t>=915&&t<1140?["xs","s","m","l","xl"].includes(o[1])?r[o[0]]=!0:r[o[0]]=!1:t>=775&&t<915?["xs","s","m","l"].includes(o[1])?r[o[0]]=!0:r[o[0]]=!1:t>=690&&t<775?["xs","s","m"].includes(o[1])?r[o[0]]=!0:r[o[0]]=!1:t>=585&&t<690?["xs","s"].includes(o[1])?r[o[0]]=!0:r[o[0]]=!1:t<585&&(o[1]==="xs"?r[o[0]]=!0:r[o[0]]=!1)}),r};import{styled as Gn}from"@mui/material/styles";var JL=Gn("div")({width:"100%",maxWidth:"28rem",minWidth:"10rem",height:"16rem",margin:"auto",borderRadius:"1rem"}),eD=Gn("div")(({theme:e})=>({cursor:"pointer",transition:"all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s","&:hover":{boxShadow:`${e.palette.background.brand?.default} 0px 0px 19px 6px`},backgroundColor:e.palette.mode==="light"?Ue:lr})),tD=Gn("a")({color:"black",textDecoration:"none"}),D6=Gn("div")(({theme:e})=>({borderTop:`5px solid ${e.palette.background.brand?.default}`,borderRadius:"0.25rem",minHeight:"16rem",display:"flex",flexDirection:"column",justifyContent:"space-between",boxShadow:"0px 0.75rem 1rem 0.25rem rgba(0, 0, 0, 0.12)",position:"relative",transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"})),rD=Gn("div")(({theme:e})=>({background:e.palette.mode==="light"?u4:Yl,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"})),F6=Gn("div")(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1rem","& span":{border:`1px solid ${e.palette.primary.dark}`,color:e.palette.text.primary,borderRadius:"0.8rem",padding:"0.05rem 0.75rem",fontSize:"1rem",transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"},"& h3":{color:e.palette.text.primary,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"}})),N6=Gn("div")(({theme:e})=>({padding:"0 1rem",".summary":{color:e.palette.grey[700],transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"},p:{fontSize:"1rem"}})),oD=Gn("div")(({theme:e})=>({margin:"0 1rem",display:"flex",justifyContent:"space-between",gap:"0.4rem",p:{fontSize:"1rem",color:e.palette.text.primary,fontWeight:600,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"}})),B6=Gn("div")({textAlign:"center",position:"absolute",bottom:"0.1rem",right:"0.75rem",opacity:.2,img:{height:"8.5rem",width:"8.5rem"}});import{Fragment as v6e,jsx as Rt,jsxs as vf}from"react/jsx-runtime";var y6e=({path:e,children:t})=>e?Rt(tD,{href:e,children:t}):Rt(v6e,{children:t}),b6e=({tutorial:e,path:t,courseCount:r,courseType:o})=>Rt(JL,{children:e.frontmatter.disabled==="yes"?Rt(rD,{children:Rt(D6,{style:{borderTop:`5px solid ${e.frontmatter.themeColor}`},children:vf("div",{children:[vf(F6,{children:[Rt("h3",{children:e.frontmatter.title?e.frontmatter.title:e.frontmatter.courseTitle}),Rt("div",{style:{whiteSpace:"nowrap"},children:Rt("span",{children:"Coming Soon"})})]}),Rt(N6,{children:Rt("p",{className:"summary",children:e.frontmatter.description})}),Rt(B6,{children:Rt("img",{src:e.frontmatter.cardImage,alt:e.frontmatter.title})})]})})}):Rt(y6e,{path:t,children:Rt(eD,{children:Rt(D6,{style:{borderTop:`5px solid ${e.frontmatter.themeColor}`},children:vf("div",{children:[vf(F6,{style:{flexDirection:"column"},children:[Rt(G,{variant:"body1",color:"textSecondary",children:e.frontmatter.type}),Rt("h3",{style:{margin:"0.2rem 0.1rem"},children:e.frontmatter.title?e.frontmatter.title:e.frontmatter.courseTitle}),e.frontmatter.status?Rt("p",{children:Rt("span",{children:"New"})}):null]}),Rt(N6,{children:Rt("p",{className:"summary",children:e.frontmatter.description})}),vf(oD,{className:"card-subdata",children:[vf("p",{children:[r," ",o,r>1?"s":""]}),Rt("p",{children:e?.frontmatter?.level?e.frontmatter.level.charAt(0).toUpperCase()+e.frontmatter.level.slice(1):""})]}),Rt(B6,{children:Rt("img",{src:e.frontmatter.cardImage})})]})})})})}),aD=b6e;import{forwardRef as w6e,useImperativeHandle as E6e,useRef as R6e,useState as O6e}from"react";import{styled as nD}from"@mui/material";var iD=nD(Vl)(()=>({minWidth:400,overflowWrap:"anywhere",textAlign:"center",padding:"5px"})),lD=nD(K)(()=>({display:"flex",justifyContent:"end",width:"100%",gap:"10px"}));import{jsx as il,jsxs as H6}from"react/jsx-runtime";var L2={WARNING:"warning",DANGER:"error",SUCCESS:"success",INFO:"info"},sD=w6e(({variant:e},t)=>{let[r,o]=O6e({isOpen:!1,title:"",subtitle:"",primaryOption:"",showInfoIcon:"",variant:e,headerIcon:void 0,isChecked:!1,showCheckbox:!1}),a=R6e({resolve:()=>{},reject:()=>{}}),n=te(),i=E=>new Promise((v,I)=>{a.current={resolve:v,reject:I},o({...E,isOpen:!0,showInfoIcon:E.showInfoIcon||"",showCheckbox:!!E.showCheckbox})}),l=()=>{o(E=>({...E,isOpen:!1}))},s=()=>{o(E=>({...E,isChecked:!E.isChecked}))},u=()=>!!r.isChecked;E6e(t,()=>({show:i,getCheckboxState:u}));let{isOpen:f,primaryOption:d,title:p,subtitle:m,showInfoIcon:x,headerIcon:h,showCheckbox:g}=r,{resolve:T}=a.current;return H6(Er,{open:f,closeModal:l,title:p,id:"searchClick",headerIcon:h,reactNode:void 0,"data-testid":"prompt-modal",children:[m&&H6(wr,{"data-testid":"prompt-body",children:[il(iD,{id:"alert-dialog-description",variant:"body1",component:"div","data-testid":"prompt-subtitle",children:il(G,{variant:"body1",component:"div",style:{color:n.palette.text.primary},children:m})}),g&&il(Wl,{"data-testid":"prompt-checkbox-label",control:il(Vr,{checked:u(),onChange:s,color:"primary","data-testid":"prompt-checkbox"}),label:il("span",{style:{fontSize:"1rem"},children:"Do not show again"})})]}),il(Kr,{variant:"filled",helpText:x,"data-testid":"prompt-footer",children:H6(lD,{"data-testid":"prompt-actions",children:[il(en,{"data-testid":"prompt-secondary-button",onClick:()=>{l(),T("CANCEL")},children:"Cancel"}),il(Ja,{"data-testid":"prompt-primary-button",onClick:()=>{l(),T(d)},style:r.variant&&{backgroundColor:n.palette.background[r.variant]?.default,textTransform:"capitalize"},type:"submit",children:d})]})})]})});sD.displayName="PromptComponent";var V6=sD;var wf=V6;import{outlinedInputClasses as uD}from"@mui/material/OutlinedInput";import{ThemeProvider as A6e,createTheme as P6e}from"@mui/material/styles";import _6e from"lodash/debounce";import fD,{useCallback as k6e}from"react";import{jsx as bs,jsxs as L6e}from"react/jsx-runtime";var I6e=e=>P6e({typography:{fontFamily:e.typography.fontFamily},components:{MuiTextField:{styleOverrides:{root:{"--TextField-brandBorderColor":e.palette.border.strong,"--TextField-brandBorderHoverColor":e.palette.background.graphics?.default,"--TextField-brandBorderFocusedColor":e.palette.background.graphics?.default,"& label.Mui-focused":{color:"var(--TextField-brandBorderFocusedColor)"}}}},MuiOutlinedInput:{styleOverrides:{notchedOutline:{borderColor:"var(--TextField-brandBorderColor)"},root:{[`&:hover .${uD.notchedOutline}`]:{borderColor:"var(--TextField-brandBorderHoverColor)"},[`&.Mui-focused .${uD.notchedOutline}`]:{borderColor:"var(--TextField-brandBorderFocusedColor)"}}}},MuiInput:{styleOverrides:{root:{color:e.palette.text.default,"&::before":{borderBottom:"2px solid var(--TextField-brandBorderColor)"},"&:hover:not(.Mui-disabled, .Mui-error):before":{borderBottom:"2px solid var(--TextField-brandBorderHoverColor)"},"&.Mui-focused:after":{borderBottom:"2px solid var(--TextField-brandBorderFocusedColor)"}}}},MuiButton:{styleOverrides:{root:{lineHeight:"auto"}}}}});function M6e({onSearch:e,placeholder:t,onClear:r,expanded:o,setExpanded:a,"data-testid":n="search-bar-wrapper"}){let[i,l]=fD.useState(""),s=fD.useRef(null),u=te(),f=k6e(_6e(x=>{e(x)},300),[e]),d=x=>{let h=x.target.value;l(h),f(h)},p=x=>{x.stopPropagation(),f(""),l(""),a(!1),r&&r()},m=x=>{x.stopPropagation(),o?(f(""),l(""),a(!1)):(a(!0),setTimeout(()=>{s.current&&s.current.focus()},300))};return bs(Tn,{onClickAway:x=>{x.stopPropagation();let h=x.target?.closest("#ref");i===""&&h&&p(x)},children:L6e("div",{style:{display:"flex"},"data-testid":n,children:[bs(A6e,{theme:I6e(u),children:bs(Wr,{variant:"standard",value:i,onChange:d,inputRef:s,placeholder:t,"data-testid":"searchbar-input",style:{width:o?"150px":"0",opacity:o?1:0,transition:"width 0.3s ease, opacity 0.3s ease"}})}),o?bs(Mt,{title:"Close",onClick:p,icon:bs(vt,{fill:u.palette.icon.default,"data-testid":"searchbar-clear-button"}),arrow:!0}):bs(Mt,{title:"Search",onClick:m,icon:bs(Zd,{fill:u.palette.icon.default,"data-testid":"searchbar-search-button"}),arrow:!0})]})})}var zn=M6e;import{Grid2 as W6e,TableCell as q6e}from"@mui/material";import{useRef as B6e,useState as Rf}from"react";var D6e="N/A",dD=e=>e&&e.deleted_at&&e.deleted_at.Valid===!0?Ts(e.deleted_at.Time):D6e;import{jsx as ll}from"react/jsx-runtime";var pD=D("div")({display:"flex",gap:"1rem"}),sl=D("div")({display:"flex",justifyContent:"space-between",width:"100%",alignItems:"center"}),D2=D("div")({display:"flex",alignItems:"center",marginRight:"1rem"}),U6=D("div")({boxSizing:"border-box",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),W6=D("div")({position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box",display:"block",width:"100%"}),mD=D("span")(()=>({"& svg":{cursor:"pointer",width:"2rem",height:"2rem"}})),l6t=D("span")(()=>({"& svg":{width:"2rem",height:"2rem"}})),cD=D("span")(({theme:e})=>({"& svg":{color:"#3C494F","&:hover":{color:e.palette.error.error}}})),F2=D("span")(()=>({color:"#455a64",opacity:"0.5","& svg":{cursor:"not-allowed"}})),xD=D("div")(()=>({display:"flex",justifyContent:"space-between",paddingRight:"26px"})),N2=D("div")(()=>({color:"#455a64",display:"flex",cursor:"not-allowed","& svg":{cursor:"pointer"}})),hD=D(Vr)({padding:0,marginRight:"0.5rem",height:"28px","& .MuiSvgIcon-root":{borderColor:"white"},color:"white","&:hover":{color:"white",cursor:"pointer"},"&.Mui-checked":{color:"white"}}),q6=D(G)({fontSize:"1.25rem",fontWeight:800,"&:hover":{cursor:"default"}}),s6t=D(G)({fontSize:"0.9rem",display:"flex",alignItems:"end",padding:"0 5px","&:hover":{cursor:"default"}}),u6t=D("button")({background:"transparent",border:"none","&:hover":{cursor:"default"}}),G6=D(G)({fontStyle:"italic",fontSize:"12px","&:hover":{cursor:"default"}}),z6=D(G)({fontSize:"0.9rem",textAlign:"left",fontStyle:"italic"}),gD=D(z6)({height:"fit-content",fontStyle:"normal","&:hover":{cursor:"default"}}),F6e=D(K)(({theme:e})=>({background:e.palette.background.brand?.default,padding:"10px 10px 1px 10px",borderRadius:"4px",height:"100%",display:"flex",width:"100%"})),Yp=D(F6e)({display:"flex",width:"100%",gap:"10px","@media (min-width : 600px)":{flexDirection:"column",gap:"0"}}),j6=D(Oe)(({theme:e})=>({width:"100%",borderRadius:"4px",background:e.palette.background.brand?.default,boxShadow:"0px 4px 4px 0px rgba(0, 0, 0, 0.25)",display:"flex",flexDirection:"column",marginBottom:"10px",color:e.palette.text.default,"&:hover":{background:e.palette.text.default},padding:"15px 10px"})),K6=D("p")(({theme:e,textColor:t})=>({margin:"0",fontSize:"14px",fontWeight:"400",display:"flex",color:t||e.palette.text.constant?.white})),$6=D("p")(({theme:e,textColor:t})=>({margin:"0",fontSize:"60px",fontWeight:"500",lineHeight:1,marginBottom:"5px",color:t||e.palette.text.constant?.white})),f6t=D(Oe)(({theme:e})=>({width:"100%",borderRadius:"4px",background:e.palette.text.default,boxShadow:"0px 4px 4px 0px rgba(0, 0, 0, 0.25)",display:"flex",flexDirection:"column",marginBottom:"10px",color:`${Q[40]}30 !important`,"&:hover":{background:e.palette.text.default},padding:"15px 10px"})),d6t=D("div")(({disabled:e=!1})=>({cursor:e?"not-allowed":"pointer",opacity:e?"0.5":"1",display:"flex","& svg":{cursor:e?"not-allowed":"pointer"}})),TD=D(xe)(({theme:e})=>({borderBottom:`1px solid ${e.palette.divider}`,display:"flex",flexDirection:"row",padding:"5px 0"})),Y6=({onClick:e,bulk:t,disabled:r,style:o,key:a,title:n="Delete"})=>{let i=te();return ll(ge,{title:n,arrow:!0,children:ll("div",{children:ll($e,{sx:{"&:hover":{"& svg":{fill:r?i.palette.icon.disabled:i.palette.background.error?.hover}},...o},disableRipple:!0,disabled:r,onClick:e,children:ll(oo,{fill:r?i.palette.icon.disabled:i.palette.icon.default,width:t?"28":"24",height:t?"28":"24",style:o})})})},a)},jn=({onClick:e,disabled:t,bulk:r,style:o,title:a="Edit"})=>{let n=te();return ll(ge,{title:a,arrow:!0,children:ll("div",{children:ll($e,{onClick:e,sx:{"&:hover":{"& svg":{fill:t?n.palette.icon.disabled:n.palette.background.brand?.default}},...o},disableRipple:!0,disabled:t,children:ll(Bo,{fill:t?n.palette.icon.disabled:n.palette.icon.default,width:r?"28":"24",height:r?"28":"24",style:o})})})})},SD=D(xe)({display:"flex",flexDirection:"row"}),p6t=D(xe)({display:"flex",alignItems:"center",marginTop:1}),Zp=D(xe)({width:"100%"}),CD=D(Tr)(({theme:e})=>({width:"100%",display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper,padding:e.spacing(2.5),cursor:"pointer"})),yD=D(CD)(({theme:e})=>({minHeight:e.spacing(50),background:"linear-gradient(180deg, #007366 0%, #000 100%)"})),bD=D(CD)(({theme:e})=>({minHeight:e.spacing(50),backgroundColor:e.palette.background.paper,boxShadow:"none"})),vD=D(xe)({display:"flex",flexDirection:"row",justifyContent:"space-between"}),wD=D(xe)({display:"flex",alignItems:"flex-start"}),ED=D(xe)({display:"flex",alignItems:"center",justifyContent:"flex-end"}),RD=D(G)(({theme:e})=>({fontSize:"1.25rem",fontWeight:600,padding:"0.5rem 0",color:e.palette.background.constant?.white})),OD=D(xe)({display:"flex",flexDirection:"column",maxHeight:"14.5rem",overflowY:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},"-ms-overflow-style":"none"}),AD=D(xe)(({theme:e})=>({display:"flex",flexDirection:"row",position:"absolute",bottom:"20px",width:"100%",color:`${e.palette.background.constant?.white}99`,justifyContent:"space-between",paddingRight:"40px"})),Z6=D(xe)({textAlign:"left"});import{jsx as Qp,jsxs as PD}from"react/jsx-runtime";var N6e=({userId:e,userName:t,userEmail:r,profileUrl:o})=>{let a=te(),n=()=>{window.open(`${Fo}/user/${e}`)};return PD(xe,{container:!0,alignItems:"center",children:[Qp(xe,{children:Qp(K,{sx:{color:a.palette.text.default,mr:2,cursor:"pointer"},children:Qp(Nt,{onClick:n,alt:t,src:o,children:o?"":Qp(vn,{})})})}),PD(xe,{size:"grow",children:[t,Qp(G,{variant:"body2",color:a.palette.text.disabled,children:r})]})]})},Ef=N6e;import{Fragment as U6e,jsx as ft,jsxs as vs}from"react/jsx-runtime";var H6e=({tableMeta:e,handleRemoveFromTeam:t,handleEditUser:r,isRemoveFromTeamAllowed:o,isEditUserAllowed:a,theme:n})=>vs(N2,{children:[a?ft(Mt,{id:`edit_user-${e.rowIndex}`,onClick:r(e.rowData),title:"Edit user",iconType:"edit",children:ft(Bo,{fill:n?.palette.text.primary})}):ft(Bo,{style:{marginRight:".5rem"},fill:Cr,height:"30",width:"30"}),o?ft(Mt,{id:`delete_user-${e.rowIndex}`,onClick:t(e.rowData),title:"Remove user membership from team",iconType:"delete",children:ft(Zl,{fill:n?.palette.text.primary})}):ft(Zl,{fill:Cr,secondaryFill:Cr})]}),V6e=({teamID:e,useGetUsersForOrgQuery:t,org_id:r,useRemoveUserFromTeamMutation:o,useNotificationHandlers:a,isRemoveFromTeamAllowed:n,isEditUserAllowed:i,handleEditUser:l,theme:s})=>{let[u,f]=Rf(0),[d,p]=Rf(10),[m,x]=Rf("last_login_time desc"),[h,g]=Rf(""),T=[],{handleError:E,handleSuccess:v,handleInfo:I}=a(),k=B6e(null),{width:C}=jo(),{data:b}=t({page:u,pagesize:d,search:h,order:m,teamId:e,orgId:r}),{data:A}=t({page:0,pagesize:d,search:h,order:m,orgId:r}),[B]=o(),P=b?.data||[],X=A?.data||[],Z=P.map(le=>{let se=X.find(De=>De.user_id===le.user_id),Le=le.role_names||[],Ge=se?.organization_with_user_roles?.role_names||[];return{...le,role_names:[...Le,...Ge]}}),N=b?.total_count||0,W=le=>async()=>{let se=le[0];await k.current?.show({title:"Remove User From Team ?",subtitle:M(le[3],le[2]),primaryOption:"Proceed",variant:L2.DANGER})==="Proceed"&&B({orgId:r,teamId:e,userId:se}).unwrap().then(()=>{v(`${le[4]?le[4]:""} ${le[5]?le[5]:""} removed from team`)}).catch(Ge=>{let De=Ge.response?.data?.message||"Failed to remove user from team";Ge.response.status===404?I(De):E(De)})},H=(le,se,Le)=>{let Ge=Le.findIndex(De=>De.name===se);return le[Ge]},M=(le,se)=>vs(U6e,{children:[ft("p",{children:"Are you sure you want to remove this user? (This action is irreversible)"}),vs("p",{children:["User:"," ",ft("i",{children:ft("b",{children:le})})]}),vs("p",{children:["Email:"," ",ft("i",{children:ft("b",{children:se})})]})]}),L,F={search:!1,viewColumns:!1,filter:!1,rowsPerPageOptions:[10,20,25],responsive:"standard",selectableRows:"none",count:N,rowsPerPage:d,page:u,print:!1,download:!1,elevation:0,serverSide:!0,sortOrder:{name:m.split(" ")[0],direction:m.split(" ")[1]},onTableChange:(le,se)=>{let Le=se.announceText?se.announceText.split(" : "):[],Ge="";switch(se.activeColumn&&(Ge=`${y[se.activeColumn].name} desc`),le){case"changePage":f(se.page);break;case"changeRowsPerPage":p(se.rowsPerPage);break;case"search":L&&clearTimeout(L),L=setTimeout(()=>{h!==se.searchText&&g(se.searchText)},500);break;case"sort":Le.length==2&&(Le[1]==="ascending"?Ge=`${y[se.activeColumn].name} asc`:Ge=`${y[se.activeColumn].name} desc`),Ge!==m&&x(Ge);break}}},q=[["user_id","na"],["avatar_url","xs"],["email","na"],["username","na"],["first_name","na"],["last_name","na"],["role_names","xs"],["status","na"],["joined_at","l"],["last_login_time","l"],["deleted_at","na"]],y=[{name:"user_id",label:"User ID",options:{filter:!1,sort:!1,searchable:!1}},{name:"avatar_url",label:"Team Member",options:{filter:!1,sort:!1,searchable:!1,customBodyRender:(le,se)=>ft(K,{sx:{"& > img":{mr:2,flexShrink:0}},children:ft(Ef,{userId:H(se.rowData,"user_id",y),userName:`${se.rowData[4]} ${se.rowData[5]}`,userEmail:se.rowData[2],profileUrl:le})})}},{name:"email",label:"Email",options:{filter:!1,sort:!0,searchable:!0}},{name:"username",label:"Username",options:{filter:!1,sort:!0,searchable:!0,customBodyRender:(le,se)=>vs("div",{style:{display:"flex"},children:[le,le?.includes("@")?ft(Kt,{title:`Search "${se.rowData[3]} ${se.rowData[4]}" on Google`,children:ft("a",{href:`https://www.google.com/search?q=${se.rowData[3]}+${se.rowData[4]}`,style:{color:"inherit"},target:"_blank",rel:"noreferrer",children:ft("div",{children:ft(F4,{width:20,height:20})})})}):ft(Kt,{title:`Lookup "${le}" on GitHub`,children:ft("a",{href:`https://www.github.com/${le}`,style:{color:"inherit"},target:"_blank",rel:"noreferrer",children:ft("div",{children:ft(Hu,{width:22,height:22})})})})]})}},{name:"first_name",label:"First",options:{filter:!1,sort:!0,searchable:!0}},{name:"last_name",label:"Last",options:{filter:!1,sort:!0,searchable:!0}},{name:"role_names",label:"Roles",options:{filter:!0,sort:!1,searchable:!1,filterOptions:{names:T.concat(T?.map(le=>`!${le}`))},customBodyRender:le=>ft("div",{children:le?.join(", ")})}},{name:"status",label:"Status",options:{filter:!0,sort:!0,searchable:!1}},{name:"joined_at",label:"Joined At",options:{filter:!1,sort:!0,searchable:!1,sortDescFirst:!0}},{name:"last_login_time",label:"Last Active At",options:{filter:!1,sort:!0,searchable:!1,sortDescFirst:!0}},{name:"deleted_at",label:"Deleted At",options:{filter:!0,sort:!0,searchable:!1,sortDescFirst:!0,filterOptions:{names:["Deleted","Not Deleted"],logic:(le,se)=>le!="NA"&&se.indexOf("Deleted")>=0?!0:le=="NA"&&se.indexOf("Not Deleted")>=0,fullWidth:!0},customBodyRender:(le,se)=>{let Le=Z[se.rowIndex];return dD(Le)}}},{name:"actions",label:"Actions",options:{filter:!1,sort:!1,searchable:!1,customBodyRender:(le,se)=>H(se.rowData,"deleted_at",y).Valid!==!1?vs(F2,{children:[ft(Bo,{style:{marginRight:".5rem"},fill:Cr,height:"30",width:"30"}),ft(Zl,{fill:Cr,secondaryFill:Cr,height:30,width:30})]}):ft(H6e,{tableMeta:se,handleRemoveFromTeam:W,handleEditUser:l,isRemoveFromTeamAllowed:n,isEditUserAllowed:i,theme:s})}}],[ae,ie]=Rf(y),[R]=Rf(()=>{let le=Ko(q,C),se={};return y.forEach(Le=>{se[Le.name]=le[Le.name]}),se});return vs(y4,{initialMode:s?.palette.mode,children:[ft("div",{style:{margin:"auto",width:"100%"},children:ft(Eo,{columns:y,data:Z,options:F,colViews:q,tableCols:ae,updateCols:ie,columnVisibility:R})}),ft(wf,{ref:k})]})},B2=V6e;import{jsx as Xp}from"react/jsx-runtime";var G6e=D(W6e)(({theme:e})=>({display:"grid",margin:"auto",paddingLeft:"0.5rem",borderRadius:"0.25rem",width:"inherit",gap:e.spacing(1)})),z6e=({teams:e,tableOptions:t,columnVisibility:r,colViews:o,tableCols:a,columns:n,updateCols:i,isRemoveFromTeamAllowed:l,isEditUserAllowed:s,handleEditUser:u,org_id:f,useGetUsersForOrgQuery:d,useNotificationHandlers:p,useRemoveUserFromTeamMutation:m})=>{let x=te();return Xp(jr,{children:Xp(Eo,{columns:n,data:e,options:{...t,renderExpandableRow:(h,g)=>{let T=e[g.dataIndex].id;return Xp(q6e,{colSpan:6,sx:{paddingInline:"4rem",backgroundColor:`${x.palette.background.secondary} !important`},children:Xp(G6e,{container:!0,size:12,children:Xp(B2,{teamID:T,isRemoveFromTeamAllowed:l,isEditUserAllowed:s,handleEditUser:u,org_id:f,useGetUsersForOrgQuery:d,useNotificationHandlers:p,useRemoveUserFromTeamMutation:m,theme:x})})})}},colViews:o,tableCols:a,updateCols:i,columnVisibility:r})})},H2=z6e;import{useState as _D}from"react";import{jsx as Q6}from"react/jsx-runtime";function j6e({value:e,maxLength:t,...r}){return e.length>t?Q6(Kt,{title:e,arrow:!0,placement:"top",children:Q6("div",{style:{maxWidth:"15rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},...r,children:`${e.slice(0,t)}...`})}):Q6("div",{style:{maxWidth:"15rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},...r,children:e})}var $o=j6e;import{Fragment as $6e,jsx as qt,jsxs as X6}from"react/jsx-runtime";function K6e({selected:e,teams:t,deleteTeamsModalHandler:r}){let o={team_ids:[],team_names:[]};return e?.data.forEach(a=>{let n=a.index;o.team_ids.push(t[n]?.team_id),o.team_names.push(t[n]?.team_name)}),qt(mD,{children:qt(cD,{children:qt(ge,{title:"Delete Teams",children:qt(oo,{height:28,width:28,fill:Cr,onClick:()=>{r(o)}})},"delete_teams")})})}function Jp({teams:e,count:t,page:r,pageSize:o,setPage:a,setPageSize:n,sortOrder:i,setSortOrder:l,bulkSelect:s,setBulkSelect:u,handleTeamView:f,handleDeleteTeam:d,handleRemoveTeamFromWorkspace:p,handleleaveTeam:m,teamId:x,workspace:h=!1,isEditTeamAllowed:g,isLeaveTeamAllowed:T,isRemoveTeamFromWorkspaceAllowed:E,isDeleteTeamAllowed:v,setSearch:I}){let{width:k}=jo(),C=te(),b=[["id","na"],["name","xs"],["description","m"],["owner","l"],["created_at","na"],["updated_at","xl"],["deleted_at","na"],["actions","xs"]],A=[{name:"id",label:"ID",options:{filter:!1,sort:!1,searchable:!1,customBodyRender:H=>qt(R2,{id:H})}},{name:"name",label:"Name",options:{filter:!1,sort:!0,searchable:!0}},{name:"description",label:"Description",options:{filter:!1,sort:!0,searchable:!1,customBodyRender:H=>qt($o,{value:H??"",maxLength:30})}},{name:"owner",label:"Owner",options:{filter:!1,sort:!0,searchable:!0}},{name:"created_at",label:"Created At",options:{filter:!1,sort:!0,searchable:!1,sortDescFirst:!0}},{name:"updated_at",label:"Updated At",options:{filter:!1,sort:!0,searchable:!1,sortDescFirst:!0}},{name:"deleted_at",label:"Deleted At",options:{filter:!0,sort:!0,searchable:!1,sortDescFirst:!0,customBodyRender:H=>JSON.stringify(H),filterOptions:{names:["Deleted","Not Deleted"],logic:(H,M)=>H!="NA"&&M.indexOf("Deleted")>=0?!0:H=="NA"&&M.indexOf("Not Deleted")>=0,fullWidth:!0}}},{name:"actions",label:"Actions",options:{filter:!1,sort:!1,searchable:!1,customBodyRender:(H,M)=>s||M.rowData[4].Valid?X6(F2,{children:[qt(Bo,{style:{marginRight:".5rem"}}),qt(oo,{height:28,width:28,fill:Cr})]}):X6(N2,{children:[!h&&X6($6e,{children:[qt(uo,{disabled:!g,children:qt(Mt,{id:`edit_team-${M.rowIndex}`,title:"Edit Team",onClick:L=>{g&&f(L,M.rowData)},iconType:"edit",children:qt(Bo,{style:{height:28.8,width:28.8},fill:Cr})})}),qt(uo,{disabled:!T,children:qt(Mt,{id:`leave_team-${M.rowIndex}`,title:"Leave Team",onClick:L=>T&&m(L,M.rowData),iconType:"delete",children:qt(Zl,{fill:Cr,secondaryFill:Cr})})})]}),h?qt(uo,{disabled:!E,children:qt(Mt,{id:`remove_team-${M.rowIndex}`,title:"Move Team",onClick:()=>{E&&p&&p(M.rowData[0])},iconType:"delete",children:qt(oo,{height:28,width:28,fill:C.palette.icon.default})})}):qt(uo,{disabled:!v,children:qt(Mt,{id:`delete_team-${M.rowIndex}`,title:"Delete Team",onClick:L=>{v&&d(L,M.rowData)},iconType:"delete",children:qt(oo,{height:28,width:28,fill:Cr})})})]})}}],B=e?.findIndex(H=>H.id===x),P={filter:!1,selectableRows:"none",filterType:"dropdown",expandableRows:!0,expandableRowsHeader:!1,expandableRowsOnClick:!0,responsive:"standard",count:t,rowsPerPage:o,page:r,print:!1,download:!1,elevation:0,serverSide:!0,viewColumns:!1,search:!1,rowsExpanded:[B],customToolbarSelect:H=>qt(xD,{children:qt(K6e,{selected:H,teams:e,deleteTeamsModalHandler:()=>{}})}),textLabels:{selectedRows:{text:"teams(s) selected"}},onTableChange:(H,M)=>{let L=M.announceText?M.announceText.split(" : "):[],F="";switch(M.activeColumn&&(F=`${A[M.activeColumn].name} desc`),H){case"changePage":a(M.page);break;case"changeRowsPerPage":n(M.rowsPerPage);break;case"search":I(M.searchText!==null?M.searchText:"");break;case"sort":L.length==2&&(L[1]==="ascending"?F=`${A[M.activeColumn].name} asc`:F=`${A[M.activeColumn].name} desc`),F!==i&&l(F);break;case"rowSelectionChange":M.selectedRows.data.length?s||u(!0):u(!1);break;default:M.selectedRows.data.length==0&&s&&u(!1)}},isRowSelectable:H=>e[H].deleted_at.Valid!==!0,setRowProps:(H,M,L)=>(L&&L.selectedRows?L.selectedRows.data:[]).includes(M)?{style:{backgroundColor:C.palette.background.hover}}:H[6].Valid?{style:{backgroundColor:C.palette.icon.disabled}}:{style:{backgroundColor:C.palette.background.constant?.table}}},[X,Z]=_D(A),[N,W]=_D(()=>{let H=Ko(b,k),M={};return A.forEach(L=>{M[L.name]=H[L.name]}),M});return{columns:A,tableOptions:P,tableCols:X,updateCols:Z,columnVisibility:N,setColumnVisibility:W,colViews:b}}import va from"react";import{jsx as Ot,jsxs as Z6e}from"react/jsx-runtime";var Y6e=({width:e=V,height:t=U,primaryFill:r="#00B39F",secondaryFill:o="#00D3A9",...a})=>Z6e("svg",{width:e,height:t,viewBox:"0 0 135 135",...a,xmlns:"http://www.w3.org/2000/svg",children:[Ot("path",{d:"M69.5 31.82V64.07L97.45 47.89L69.5 31.82Z",fill:o}),Ot("path",{d:"M69.5 70.81V103.22L97.7 87.09L69.5 70.81Z",fill:o}),Ot("path",{d:"M65.47 63.85V32.09L37.87 47.92L65.47 63.85Z",fill:r}),Ot("path",{d:"M10.1 103.1C15.5182 111.811 22.842 119.179 31.52 124.65V90.71L10.1 103.1Z",fill:r}),Ot("path",{d:"M65.47 103.06V71.05L37.8 87.07L65.47 103.06Z",fill:r}),Ot("path",{d:"M35.54 122.63L63.56 106.61L35.54 90.41V122.63Z",fill:o}),Ot("path",{d:"M99.62 122.8V90.63L71.64 106.63L99.62 122.8Z",fill:r}),Ot("path",{d:"M127.03 99.37C131.817 90.4433 134.524 80.5502 134.95 70.43L105.78 87.11L127.03 99.37Z",fill:r}),Ot("path",{d:"M103.64 83.69L131.76 67.61L103.64 51.45V83.69Z",fill:o}),Ot("path",{d:"M99.62 44.5V12.52L71.77 28.49L99.62 44.5Z",fill:r}),Ot("path",{d:"M99.62 83.55V51.28L71.7 67.44L99.62 83.55Z",fill:r}),Ot("path",{d:"M35.54 51.22V83.73L63.66 67.45L35.54 51.22Z",fill:o}),Ot("path",{d:"M65.47 0C55.1388 0.298791 45.016 2.97835 35.89 7.83L65.52 24.83L65.47 0Z",fill:r}),Ot("path",{d:"M35.54 12.3V44.62L63.69 28.48L35.54 12.3Z",fill:o}),Ot("path",{d:"M31.52 10.34C22.8442 15.8136 15.521 23.1813 10.1 31.89L31.52 44.25V10.34Z",fill:r}),Ot("path",{d:"M99.43 8C90.2123 3.0393 79.9635 0.299881 69.5 0V25.15L99.43 8Z",fill:o}),Ot("path",{d:"M0 69.87C0.348236 80.2825 3.1145 90.4711 8.08 99.63L29.77 87.07L0 69.87Z",fill:o}),Ot("path",{d:"M8.07001 35.37C3.13121 44.4917 0.372439 54.6334 0.0100098 65L29.8 47.91L8.07001 35.37Z",fill:o}),Ot("path",{d:"M35.78 127.13C44.9355 132.013 55.0981 134.706 65.47 135V110.15L35.78 127.13Z",fill:r}),Ot("path",{d:"M124.89 32C119.512 23.3126 112.237 15.9553 103.61 10.48V44.3L124.89 32Z",fill:o}),Ot("path",{d:"M103.64 124.54C112.314 119.022 119.624 111.61 125.02 102.86L103.64 90.52V124.54Z",fill:o}),Ot("path",{d:"M134.96 64.81C134.572 54.5437 131.835 44.5032 126.96 35.46L105.5 47.88L134.96 64.81Z",fill:r}),Ot("path",{d:"M69.5 135C79.845 134.709 89.9825 132.029 99.12 127.17L69.5 110V135Z",fill:o}),Ot("path",{d:"M31.52 83.44V51.56L3.83002 67.43L31.52 83.44Z",fill:r})]}),J6=Y6e;import Q6e from"@mui/material/Tooltip";import X6e from"react";import{jsx as kD}from"react/jsx-runtime";var J6e=X6e.forwardRef((e,t)=>kD(Q6e,{...e,ref:t,children:kD("span",{children:e.children})})),e7=J6e;import{Grid2 as ID,styled as Of}from"@mui/material";var MD=Of(bt)(({theme:e})=>({padding:"5px 6px !important",color:e.palette.text.default,fontSize:"0.875rem",textTransform:"uppercase",fontWeight:400,height:"unset",borderRadius:"100px",border:`0.5px solid ${e.palette.border?.normal}`,background:e.palette.background.default,maxWidth:"14.375rem"})),LD=Of(Sn)(({theme:e})=>({width:300,height:280,overflow:"auto",backgroundColor:e.palette.background.secondary,borderRadius:"10px",boxShadow:"0px 1px 4px 0px rgba(0, 0, 0, 0.25) inset","@media (max-width: 843px)":{width:260},"@media (max-width: 768px)":{width:300},"@media (max-width: 375px)":{width:"100%"}})),t7=Of(G)(({theme:e})=>({paddingBottom:"15px",color:e.palette.text?.default,textAlign:"center",fontSize:"1rem",letterSpacing:"0.15px"})),e1=Of(Oe)(({theme:e})=>({margin:"5px 0",padding:"7px 0",borderRadius:"10px",borderColor:e.palette.border?.strong,boxShadow:"none",display:"flex",flexDirection:"row",fill:e.palette.icon.default,"&:hover":{borderColor:e.palette.border?.brand,backgroundColor:`${_e} !important`,fill:e.palette.icon.inverse}})),r7=Of(ID)({padding:"0 1rem","@media (max-width: 768px)":{padding:"0",display:"flex",alignItems:"center",flexDirection:"column",width:"100%"}}),DD=Of(ID)({padding:"2.5rem 1rem 0 1rem","@media (max-width: 768px)":{padding:"1rem",transform:"rotate(90deg)",height:"6.25rem",marginLeft:"6.25rem"}});import{jsx as Lt,jsxs as wa}from"react/jsx-runtime";var FD={CHIP:"chip",OTHER:"other"};function e7e(e){return e?{meshery:Lt(J6,{}),kubernetes:Lt(qd,{}),github:Lt(Hu,{})}[e]||null:Lt(qd,{})}function V2(e,t){return e.filter(r=>t.indexOf(r)===-1)}function ND(e,t){return e.filter(r=>t.indexOf(r)!==-1)}function t7e({name:e,assignableData:t,assignedData:r,assignablePage:o,assignedPage:a,originalAssignedData:n,emptyStateIconLeft:i,emtyStateMessageLeft:l,emptyStateIconRight:s,emtyStateMessageRight:u,originalLeftCount:f,originalRightCount:d,leftPermission:p=!0,rightPermission:m=!0,transferComponentType:x=FD.OTHER}){let[h,g]=va.useState([]),[T,E]=va.useState([]),[v,I]=va.useState(n),[k,C]=va.useState(0),[b,A]=va.useState(0);va.useEffect(()=>{I(n)},[n]),va.useEffect(()=>{E(t)},[t]),va.useEffect(()=>{C(f),A(d)},[f,d]);let B=ND(h,T),P=ND(h,v);va.useEffect(()=>{r(v)},[v]),va.useEffect(()=>{let L=y=>{y[0].isIntersecting&&o()},F=new IntersectionObserver(L,{threshold:1}),q=document.getElementById("leftList");return q&&F.observe(q),()=>{q&&F.unobserve(q)}},[t]),va.useEffect(()=>{let L=y=>{y[0].isIntersecting&&a()},F=new IntersectionObserver(L,{threshold:1}),q=document.getElementById("rightList");return q&&F.observe(q),()=>{q&&F.unobserve(q)}},[n]);let X=L=>()=>{let F=h.indexOf(L),q=[...h];F===-1?q.push(L):q.splice(F,1),g(q)},Z=L=>{L.stopPropagation(),I(v.concat(T)),E([]),C(0),A(F=>F+k)},N=L=>{L.stopPropagation(),I(v.concat(B)),E(V2(T,B)),g(V2(h,B)),C(F=>F-B.length),A(F=>F+B.length)},W=L=>{L.stopPropagation(),E(T.concat(P)),I(V2(v,P)),g(V2(h,P)),A(F=>F-P.length),C(F=>F+P.length)},H=L=>{L.stopPropagation(),E(T.concat(v)),I([]),A(0),C(F=>F+b)},M=(L,F,q,y)=>wa(LD,{children:[Lt(Ur,{dense:!0,component:"div",role:"list",children:L.length>0?L.map(ae=>{let ie=`transfer-list-item-${ae.name}-label`;return wa(Sr,{role:"listitem",sx:{display:"flex",justifyContent:"space-between","&:hover":{backgroundColor:"#00000010"}},onClick:X(ae),children:[x===FD.CHIP?Lt(e7,{title:ae.name,placement:"top",children:Lt(MD,{sx:{paddingY:"10px"},variant:"outlined",label:ae.name,onDelete:()=>{},deleteIcon:Lt(Q4,{}),icon:e7e(ae?.kind)||Lt(qd,{})})}):Lt(e7,{title:ae.name,placement:"top",children:Lt(G,{sx:{maxWidth:"230px",height:"1.5rem",overflow:"hidden"},children:ae.name})}),Lt(Vr,{checked:h.indexOf(ae)!==-1,tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":ie}})]},ae.id)}):wa("div",{style:{textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"264px"},children:[F,Lt(G,{sx:{color:"#979797",px:5,py:2,lineHeight:1},children:q})]})}),Lt("div",{id:y})]});return wa(xe,{container:!0,justifyContent:"center",alignItems:"center",children:[wa(r7,{children:[wa(t7,{children:["Available ",e," (",T.length,")"]}),M(T,i,l,"leftList")]}),Lt(DD,{children:wa(xe,{container:!0,direction:"column",alignItems:"center",children:[wa(e1,{variant:"outlined",size:"small",onClick:Z,disabled:!m||m&&(T?.length===0||T.length<k),"aria-label":"move all right",children:[Lt(Yd,{width:18,height:18}),Lt(Yd,{style:{position:"absolute",left:"27px"},width:18,height:18})]}),Lt(e1,{variant:"outlined",size:"small",onClick:N,disabled:!m||m&&B.length===0,"aria-label":"move selected right",children:Lt(Yd,{width:18,height:18})}),Lt(e1,{variant:"outlined",size:"small",onClick:W,disabled:!p||p&&P.length===0,"aria-label":"move selected left",children:Lt(Gd,{width:18,height:18})}),wa(e1,{variant:"outlined",size:"small",onClick:H,disabled:!p||p&&(v?.length===0||v.length<b),"aria-label":"move all left",children:[Lt(Gd,{width:18,height:18}),Lt(Gd,{style:{position:"absolute",left:"27px"},width:18,height:18})]})]})}),wa(r7,{children:[wa(t7,{children:["Assigned ",e," (",v.length,")"]}),M(v,s,u,"rightList")]})]})}var t1=t7e;import{Drawer as r7e,styled as o7e,useMediaQuery as a7e}from"@mui/material";import BD from"react";import{Fragment as s7e,jsx as fo,jsxs as U2}from"react/jsx-runtime";var n7e=o7e("div")(({theme:e})=>({background:e.palette.mode==="light"?Fu.header:Du.header,padding:"0.75rem 1rem",margin:"-1rem -1rem 1rem -1rem",display:"flex",justifyContent:"space-between",alignItems:"center"}));function i7e({filters:e,selectedFilters:t,setSelectedFilters:r,variant:o="outlined",handleApplyFilter:a,showAllOption:n=!0,id:i,"data-testid":l="universal-filter"}){let[s,u]=BD.useState(null),[f,d]=BD.useState(!1),p=te(),m=a7e(p.breakpoints.down("sm")),x=v=>{u(v.currentTarget),d(I=>!I)},h=()=>{u(null),d(!1)},g=(v,I)=>{let k=v.target.value;r(C=>({...C,[I]:k}))},T=()=>{h(),a()},E=()=>U2("div",{children:[fo(n7e,{"data-testid":`${l}-header`,children:fo("h3",{children:"Filters: "})}),Object.keys(e).map(v=>{let I=e[v].options;return U2("div",{role:"presentation","data-testid":`${l}-filter-group-${v}`,children:[fo(ql,{id:e[v].name,"data-testid":`${l}-label-${v}`,children:e[v].name}),U2(sa,{defaultValue:"All","data-testid":`${l}-select-${v}`,value:t[v],variant:o,onChange:k=>g(k,v),style:{width:"20rem",marginBottom:"1rem"},inputProps:{"aria-label":"Without label","data-testid":`${l}-select-${v}`},displayEmpty:!0,children:[n&&fo(gt,{value:"All","data-testid":`${l}-option-all`,children:"All"}),I.map(k=>fo(gt,{value:k.value,"data-testid":`${l}-option-${k.value}`,children:k.label},k.value))]},v)]},v)}),fo("div",{style:{display:"flex",justifyContent:"center"},children:fo(Oe,{variant:"contained",onClick:T,"data-testid":`${l}-apply-btn`,children:"Apply"})})]});return fo(s7e,{children:U2("div",{id:i,"data-testid":l,children:[fo(Mt,{title:"Filter",onClick:x,icon:fo(P4,{fill:p.palette.icon.default}),arrow:!0}),m?fo(r7e,{anchor:"bottom",open:f,onClose:h,PaperProps:{style:{padding:"0 1rem 1rem 1rem",backgroundColor:p.palette.background.surfaces}},children:E()}):fo(kp,{id:f&&s?"transition-popper":void 0,open:f,anchorEl:s,placement:"bottom-end",children:fo(Tn,{onClickAway:h,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:fo(Sn,{sx:{padding:"1rem",paddingTop:"1.8rem",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",backgroundColor:p.palette.background.surfaces},children:E()})})})]})})}var l7e=i7e;import{useState as u7e}from"react";import{Fragment as h7e,jsx as Af,jsxs as o7}from"react/jsx-runtime";var Ea={PUBLIC:"public",PRIVATE:"private",PUBLISHED:"published"},f7e=D(Gl)(({theme:e})=>({"& .MuiPaper-root":{backgroundColor:e.palette.mode==="light"?ix:e.palette.background.constant?.table,color:e.palette.text.secondary,border:`1px solid ${e.palette.border.default}`,borderRadius:"0.25rem",padding:"0rem"},"& .MuiMenuItem-root":{fontSize:".9rem",padding:"0.5rem","&:hover":{backgroundColor:e.palette.mode==="light"?ku:"rgba(0, 179, 159, 0.25)"}},"& .Mui-selected":{backgroundColor:e.palette.mode==="light"?ku:"rgba(0, 179, 159, 0.25)"},"& .MuiList-padding":{padding:"0px"}})),d7e=D(Oe)(()=>({padding:"0px"})),p7e=D("div")(({theme:e,enabled:t})=>({paddingLeft:"0.3rem",height:"1.5rem",width:"auto",paddingRight:t?"0":"0.3rem",borderRadius:"0.25rem",border:`1px solid ${Od}`,background:e?.palette.mode==="light"?ix:e?.palette.background.constant?.table,textTransform:"uppercase",color:e?.palette.text.default,display:"flex",justifyContent:"center",alignItems:"center",fontSize:"0.75rem",fontFamily:e?.typography.fontFamily})),m7e=D(gt)(({theme:e})=>({textTransform:"capitalize",color:e.palette.icon.default})),c7e=D("div")({marginRight:"0.5rem"}),x7e=({value:e,onChange:t,options:r,enabled:o})=>{let[a,n]=u7e(null),i=!!a,l=f=>{f.stopPropagation(),n(null)},s=f=>{f.stopPropagation(),o&&n(f.currentTarget)},u=(f,d)=>{f.stopPropagation(),t&&t(d),l(f)};return o7(h7e,{children:[Af(d7e,{disabled:!o,onClick:s,"data-testid":`design-visibility-${e.toLowerCase()}`,children:o7(p7e,{enabled:o,children:[Af("span",{style:{fontSize:"0.85rem"},children:e}),o&&Af(kO,{style:{...bo}})]})}),Af(f7e,{open:i,onClose:l,anchorEl:a,anchorReference:"anchorPosition",anchorPosition:{top:(a?.getBoundingClientRect().bottom??0)+5,left:(a?.getBoundingClientRect().left??0)+5},children:r?.map(([f,d],p)=>o7(m7e,{"data-testid":`visibility-toggle-${f.toLowerCase()}`,onClick:m=>u(m,f),children:[Af(c7e,{children:Af(d,{width:16,height:16})}),f]},p))})]})},ul=x7e;import{styled as T7e}from"@mui/material";import{styled as Ra,Typography as g7e}from"@mui/material";var HD=Ra("div")(()=>({width:"85px",height:"88px",overflow:"hidden",position:"absolute",top:"-3px",left:"-3px"})),VD=Ra("div")(({catalogClassName:e})=>({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:"rgba(122,132,142,.8)",official:"#EBC017",verified:"#00B39F"}[e],color:"#fff"})),UD=Ra("div")(({outerStyles:e})=>({position:"relative",borderRadius:"1rem",textAlign:"center",transformStyle:"preserve-3d",transition:"all .9s ease-out",marginBottom:"1.25rem",display:"inline-flex",perspective:"1000px","&:hover":{cursor:"pointer",transform:"translateY(-2%)"},"@media (max-width:1200px)":{height:"18.75rem"},...e})),WD=Ra("div")(({theme:e})=>({position:"relative",width:"100%",height:"100%",textAlign:"center",transition:"transform 0.6s",background:e.palette.background.default,boxShadow:`2px 2px 3px 0px ${e.palette.background.brand?.default}`,borderRadius:"0.9375rem"})),qD=Ra("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.text.inverse,borderRadius:"0 1rem 0 2rem"})),Pf=Ra("p")(({theme:e})=>({fontSize:"1rem",textTransform:"capitalize",margin:"0rem",lineHeight:"1.5",textAlign:"center",color:e.palette.text.secondary,fontWeight:"600"})),GD=Ra(g7e)(({theme:e})=>({fontWeight:"bold",textTransform:"capitalize",color:e.palette.text.default,fontSize:"1.125rem",marginTop:"2rem",padding:"0rem 1rem",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"center",width:"100%"})),zD=Ra("div")(({theme:e})=>({display:"flex",justifyContent:"space-around",fontSize:"0.2rem",color:e.palette.text.secondary,padding:"0.9rem 0.1rem",background:e.palette.background.secondary,position:"absolute",bottom:"0px",marginTop:"1.2rem",borderRadius:"0 0 0.9375rem 0.9375rem",width:"100%"})),_f=Ra("div")(()=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.2rem",color:"rgba(26, 26, 26, .8)",margin:"0rem",padding:"0.1rem"})),jD=Ra("div")(()=>({height:"max-content",display:"flex",marginTop:"-1rem",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start","@media (max-width:1200px)":{height:"max-content"}})),KD=Ra("div")(({theme:e})=>({background:e.palette.mode==="light"?"rgba(231, 239, 243, 0.40)":"#212121",display:"flex",alignItems:"center",justifyContent:"center",padding:"0.5rem",width:"100%",borderRadius:"0.5rem"}));import{Fragment as y7e,jsx as tr,jsxs as fl}from"react/jsx-runtime";var bSt=T7e("a")(()=>({textDecoration:"none"}));var S7e=({catalogClassName:e})=>e?tr(HD,{children:tr(VD,{catalogClassName:e,children:e})}):tr(y7e,{}),C7e=({pattern:e,patternType:t,cardHeight:r,cardWidth:o,cardStyles:a,onCardClick:n})=>{let i={height:r,width:o,...a};return tr(UD,{outerStyles:i,onClick:n,children:fl(WD,{className:"innerCard",children:[tr(S7e,{catalogClassName:e?.catalog_data?.content_class}),tr(qD,{children:t}),fl(jD,{children:[tr(GD,{style:{margin:"3rem 0 1.59rem 0",textAlign:"center"},children:e.name}),tr(KD,{children:tr(Ua,{height:"118",width:"120"})})]}),fl(zD,{children:[fl(_f,{children:[tr(pa,{width:18,height:18}),tr(Pf,{children:e.download_count})]}),fl(_f,{children:[tr(kd,{width:18,height:18,fill:"#51636B"}),tr(Pf,{children:e.clone_count})]}),fl(_f,{children:[tr(jd,{width:18,height:18,fill:"#51636B"}),tr(Pf,{children:e.view_count})]}),fl(_f,{children:[tr(Vd,{width:18,height:18}),tr(Pf,{children:e.deployment_count})]}),fl(_f,{children:[tr(wn,{width:18,height:18,fill:"#51636B"}),tr(Pf,{children:e.share_count})]})]})]})})},$D=C7e;import{useTheme as M7e}from"@mui/material/styles";import{useCallback as iF,useState as L7e}from"react";import{useCallback as nF,useState as _7e}from"react";import{useCallback as R7e,useState as O7e}from"react";import{debounce as b7e}from"lodash";import{useEffect as XD,useMemo as v7e,useState as w7e}from"react";import{styled as YD}from"@mui/material";var ZD=YD(Eu)(({style:e,theme:t})=>({fontFamily:t.typography.fontFamily,width:"100%","@media (max-width: 590px)":{marginLeft:"0.25rem",paddingLeft:"0.25rem"},display:"flex",backgroundColor:t.palette.mode==="light"?t.palette.common.white:t.palette.background.surfaces,...e})),QD=YD(yd)(({theme:e})=>({borderLeft:`1px solid ${e.palette.background.tertiary}`,height:"30px",paddingLeft:"10px"}));import{jsx as W2}from"react/jsx-runtime";function E7e({onChange:e,value:t="",label:r,sx:o,placeholder:a,endAdornment:n,debounceTime:i=300}){let l=te(),[s,u]=w7e(t);XD(()=>{t!==s&&u(t)},[t]);let f=m=>({target:{value:m},persist:()=>{}}),d=v7e(()=>b7e(m=>{e?.(f(m))},i),[e,i]);return XD(()=>{if(e)return s===""?e(f(s)):d(s),()=>{d.cancel()}},[s,e,d]),W2(ZD,{type:"search",label:r,fullWidth:!0,value:s,onChange:m=>{let x=m.target.value;u(x)},sx:o,placeholder:a??"Search",startAdornment:W2(yd,{position:"start",children:W2(Zd,{fill:l.palette.background.neutral?.default})}),endAdornment:W2(QD,{position:"end",children:n})})}var q2=E7e;import{styled as Kn}from"@mui/material/styles";var JD=Kn(K)(({styleProps:e})=>({padding:"1rem",borderRadius:"1rem",width:"100%",gap:"0.5rem",boxShadow:"0px 2px 10px rgba(0, 0, 0, 0.2)",display:"flex",flexDirection:"column",height:"fit-content",backgroundColor:e.backgroundColor,"@media (max-width:900px)":{display:"none"},fontFamily:e.fontFamily,"&::-webkit-scrollbar":{width:"6px"}})),eF=Kn("div")(()=>({display:"none","@media (max-width:899px)":{display:"block"}})),GSt=Kn("div")(()=>({display:"flex",justifyContent:"space-around",alignItems:"center"})),tF=Kn(Oe)(({theme:e})=>({backgroundColor:e.palette.primary.brand?.default,"&:hover":{backgroundColor:e.palette.background.default},height:"3.75rem","@media (max-width:450px)":{minWidth:"0px"}})),rF=Kn(K)(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0.5rem 1rem",background:e.palette.mode==="light"?Fu.header:Du.header,height:"10vh"})),zSt=Kn(Mi)(({theme:e})=>({padding:"0.25rem 2rem",borderBottom:"1px solid",borderBottomColor:e.palette.text.disabled})),oF=Kn(Mi)(({theme:e})=>({backgroundColor:e.palette.background.surfaces,borderRadius:"0.5rem",marginTop:2,display:"flex",justifyContent:"space-between"})),aF=Kn("p")(({theme:e})=>({color:e.palette.text.tertiary})),jSt=Kn("span")(()=>({marginLeft:"0.5rem",display:"block","@media (max-width: 853px)":{display:"none"}}));import{Fragment as P7e,jsx as Oa,jsxs as ws}from"react/jsx-runtime";var A7e=({filterKey:e,sectionDisplayName:t,options:r=[],filters:o,openSections:a,onCheckboxChange:n,onSectionToggle:i,styleProps:l,customComponent:s})=>{let[u,f]=O7e(""),d=R7e(x=>{f(x.target.value)},[]),p=r.length>10,m=u&&r.length?r.filter(x=>x.label.toLowerCase().includes(u.toLowerCase())):r;return ws(P7e,{children:[ws(oF,{onClick:()=>i(e),style:{backgroundColor:l.sectionTitleBackgroundColor},children:[Oa(G,{sx:{fontSize:"1rem"},fontWeight:"bold",fontFamily:l.fontFamily,children:(t||e).toUpperCase()}),a[e]?Oa(Ui,{}):Oa(yo,{})]}),Oa(ia,{in:a[e],timeout:"auto",unmountOnExit:!0,children:s?Oa(s,{}):ws(Ur,{component:"div",sx:{overflowY:"auto",maxHeight:"25rem",backgroundColor:l.backgroundColor,"&::-webkit-scrollbar":{width:"6px"}},children:[p&&Oa(K,{sx:{px:"0.5rem",mb:"0.5rem"},children:Oa(q2,{value:u,onChange:d,placeholder:"Search",endAdornment:ws(aF,{children:["Total : ",m.length??0]})})}),m.map((x,h)=>ws(Rd,{direction:"row",alignItems:"center",px:"0.5rem",justifyContent:"space-between",children:[ws(Rd,{direction:"row",alignItems:"center",gap:"0.35rem",children:[Oa(Vr,{id:`checkbox-${x.label}`,checked:Array.isArray(o[e])?o[e].includes(x.value):o[e]===x.value,onChange:g=>n&&n(e,x.value,g.target.checked),value:x.value}),x.Icon&&Oa(x.Icon,{width:"20px",height:"20px"}),Oa(G,{fontFamily:l.fontFamily,children:x.label})]}),ws(Rd,{direction:"row",alignItems:"center",gap:"0.35rem",children:[x.totalCount!==void 0&&`(${x.totalCount||0})`,x.description&&Oa(rl,{variant:"standard",helpText:x.description})]})]},`${x.value}-${h}`))]})})]})},a7=A7e;import{Fragment as I7e,jsx as n7}from"react/jsx-runtime";var k7e=({lists:e,onApplyFilters:t,value:r,styleProps:o})=>{let[a,n]=_7e(()=>{let s={};return e.forEach(u=>{s[u.filterKey]=!!u.defaultOpen}),s}),i=nF(s=>{n(u=>({...u,[s]:!u[s]}))},[]),l=nF((s,u,f)=>{t(d=>{let p={...d};if(e.find(x=>x.filterKey===s)?.isMultiSelect!==!1){let x=p[s];Array.isArray(x)||(x=x?[x]:[]),p[s]=f?[...x,u]:x.filter(h=>h!==u)}else p[s]=f?u:"";return p})},[e,t]);return n7(I7e,{children:e.map(s=>s.customComponent?n7(a7,{filterKey:s.filterKey,filters:r,sectionDisplayName:s.sectionDisplayName,onSectionToggle:i,styleProps:o,openSections:a,customComponent:s.customComponent},s.filterKey):n7(a7,{filterKey:s.filterKey,sectionDisplayName:s.sectionDisplayName,options:s.options,filters:r,openSections:a,onCheckboxChange:l,onSectionToggle:i,styleProps:o},s.filterKey))})},i7=k7e;import{Fragment as F7e,jsx as Yo,jsxs as G2}from"react/jsx-runtime";var D7e=({lists:e,setData:t,value:r={},styleProps:o})=>{let a=M7e(),[n,i]=L7e(!1),l=iF(()=>{i(!0)},[]),s=iF(()=>{i(!1)},[]),f={...{backgroundColor:a.palette.mode==="light"?a.palette.background.default:a.palette.background.secondary,sectionTitleBackgroundColor:a.palette.mode==="light"?a.palette.background.surfaces:$l.main,fontFamily:a.typography.fontFamily},...o};return G2(F7e,{children:[Yo(JD,{styleProps:f,children:Yo(i7,{lists:e,onApplyFilters:t,value:r,styleProps:f})}),G2(eF,{children:[Yo(ge,{title:"Filters",placement:"bottom",children:Yo(tF,{variant:"contained",onClick:l,children:Yo(LO,{style:{height:"28px",width:"28px"},fill:a.palette.text.default})})}),Yo(Y3,{anchor:"bottom",open:n,variant:"temporary",onClose:s,style:{zIndex:"1399"},children:G2(K,{sx:{overflowY:"hidden",height:"90vh"},children:[G2(rF,{children:[Yo(G,{variant:"h6",sx:{color:a.palette.text.constant?.white},component:"div",children:"Filters"}),Yo(hf,{onClick:s,children:Yo(vt,{height:"32px",width:"32px"})})]}),Yo(K,{style:{height:"75vh",overflowY:"auto",background:a.palette.background.surfaces,padding:"0 16px"},children:Yo(i7,{lists:e,onApplyFilters:t,value:r,styleProps:f})}),Yo(K,{sx:{background:a.palette.mode==="light"?Fu.fotter:Du.fotter,height:"5vh"}})]})})]})]})},lF=D7e;import{jsx as z2,jsxs as B7e}from"react/jsx-runtime";function N7e({open:e,content:t,title:r,actions:o,onClose:a}){return B7e(la,{open:e,onClose:a,children:[z2(T2,{children:r}),z2(Hl,{children:z2(Vl,{children:t})}),z2(Cd,{children:o})]})}var sF=N7e;import{Autocomplete as H7e,Grid2 as l7}from"@mui/material";import V7e,{useCallback as s7,useEffect as U7e,useState as j2}from"react";import{jsx as fr,jsxs as u7}from"react/jsx-runtime";import{createElement as q7e}from"react";var W7e=({data:e,label:t,fetchSuggestions:r,setFilterData:o,isLoading:a,type:n,disabled:i,selectedData:l,searchValue:s,setSearchValue:u,iconComponent:f=fr(Tx,{...ju})})=>{let[d,p]=j2(""),[m,x]=j2(!1),[h,g]=j2(!1),[T,E]=j2(l);U7e(()=>{E(l)},[l]);let v=s7(C=>{let b=T.filter(A=>A.id!==C);E(b),o(b)},[T,o]),I=s7((C,b)=>{if(!b)return;if(T.some(P=>P.id===b.id)){p(`${n} already selected`);return}let B=[...T,b];E(B),o(B),p(""),u(""),x(!1)},[T,o,n,u]),k=s7((C,b)=>{u(b),b===""?x(!1):(r(b),p(""),x(!0))},[r,u]);return u7(K,{sx:{width:"100%"},children:[fr(H7e,{id:`${n}-search-field`,style:{width:"100%"},options:e,getOptionLabel:()=>s,isOptionEqualToValue:(C,b)=>C.id===b.id,noOptionsText:a?"Loading...":`No ${n} found`,loading:a,open:m,onClose:()=>x(!1),disabled:i,value:void 0,inputValue:s,onChange:I,onInputChange:k,filterOptions:C=>C,disableClearable:!0,includeInputInList:!0,filterSelectedOptions:!0,disableListWrap:!0,clearOnBlur:!0,popupIcon:null,blurOnSelect:!0,forcePopupIcon:!1,renderInput:C=>fr(Wr,{...C,label:t||`Add ${n}`,error:!!d,helperText:d,fullWidth:!0,InputLabelProps:{style:{fontFamily:"inherit"}},InputProps:{...C.InputProps,endAdornment:fr(V7e.Fragment,{children:a?fr(Bt,{color:"inherit",size:20}):null})}}),renderOption:(C,b)=>q7e("li",{...C,key:b.id},fr(K,{component:"li",sx:{"& > img":{mr:2,flexShrink:0}},children:u7(l7,{container:!0,alignItems:"center",children:[fr(l7,{children:fr(K,{sx:{color:"text.secondary",mr:2},children:f})}),fr(l7,{size:"grow",children:fr(G,{variant:"body2",children:b.name})})]})}))}),u7(K,{sx:{display:"flex",flexWrap:"wrap",gap:.5,mt:T?.length>0?"0.5rem":""},children:[!h&&T?.length>0&&fr(bt,{avatar:f,label:T[T.length-1]?.name,size:"small",onDelete:()=>v(T[T.length-1]?.id),deleteIcon:fr(Kt,{title:`Remove ${n}`,children:fr(vt,{style:Gr})})},T[T.length-1]?.id),h&&T?.map(C=>fr(bt,{avatar:fr(Tx,{...Gr}),label:C.name,size:"small",onDelete:()=>v(C.id),deleteIcon:fr(Kt,{title:`Remove ${n}`,children:fr(vt,{style:Gr})})},C.id)),T?.length>1&&fr(G,{onClick:()=>g(!h),sx:{cursor:"pointer"},children:h?"(hide)":`(+${T?.length-1})`})]})]})},uF=W7e;import{styled as K2}from"@mui/material";var fF=K2("div")(({theme:e})=>({padding:"2.5rem",margin:"2rem 0",backgroundColor:e.palette.grey.A400,display:"flex",border:`1px solid ${e.palette.common.black}`,justifyContent:"space-between",transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)","&:hover":{transition:"background 150ms ease-out 0s, border 150ms ease-out 0s, transform 150ms ease-out 0s",transform:"translate3d(0px, -1px, 0px)",boxShadow:`${e.palette.common.black} 0px 8px 16px 0px`},"@media screen and (max-width: 992px)":{padding:"1.5rem"},"@media screen and (max-width: 500px)":{padding:"0.75rem"}})),dF=K2("div")({display:"inline-flex"}),pF=K2("div")(({theme:e})=>({fontSize:"2rem",margin:"0 2rem 0 1rem",color:e.palette.grey[800],alignSelf:"center",transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"})),mF=K2("div")(({theme:e})=>({h2:{margin:"0.25rem 0"},p:{margin:"0.35rem 0",color:e.palette.grey[800],transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"}}));import{jsx as $2,jsxs as cF}from"react/jsx-runtime";var G7e=({chapterNum:e,chapter:t})=>$2(fF,{id:t.frontmatter.courseTitle?t.frontmatter.courseTitle:void 0,children:cF(dF,{children:[$2(pF,{children:e}),cF(mF,{children:[$2("h2",{children:t.frontmatter.chapterTitle?t.frontmatter.chapterTitle:t.frontmatter.courseTitle}),$2("p",{children:t.frontmatter.description})]})]})}),xF=G7e;import{useMediaQuery as z7e,useTheme as j7e}from"@mui/material";import K7e,{useState as $7e}from"react";import{styled as kf}from"@mui/material/styles";var QCt=kf("div")(({theme:e})=>({marginLeft:".5rem",color:e.palette.background.secondary})),hF=kf(vd)({overflowY:"auto",scrollbarWidth:"none","&::-webkit-scrollbar":{width:"0em"}}),gF=kf(Sr)(()=>({pointerEvents:"auto",margin:"0.5rem 0rem 0.5rem 0rem",fontSize:"0.1rem",padding:"0"})),TF=kf(Sr)(()=>({pointerEvents:"auto",margin:"0rem 0rem 0rem 0.5rem",fontSize:"0.1rem"})),SF=kf("div")({marginRight:"0.75rem",marginLeft:"0.5rem"}),CF=kf("div")({marginRight:"0.5rem"});import{jsx as Aa,jsxs as Y2}from"react/jsx-runtime";var Y7e=({navigationItems:e,MenuListProps:t={},ListItemTextProps:r={}})=>{let o=j7e(),a=z7e(o.breakpoints.up("sm")),[n,i]=$7e(null),l=(s,u)=>{u.stopPropagation(),i(f=>f===s?null:s)};return Aa(hF,{...t,dense:!0,children:e.map(s=>{let u=n===s.id,f=s.permission??!0,d=s.addDivider??!1;return!(s.showOnWeb??!0)&&a?null:Y2(K7e.Fragment,{children:[Y2(gt,{disabled:!f,onClick:s.onClick,"data-testid":`nav-item-${s.id}`,children:[Y2(gF,{children:[s.icon&&Aa(SF,{children:s.icon}),Aa(jt,{primary:s.title,...r})]}),s.subItems&&Aa(jt,{"data-testid":`nav-toggle-${s.id}`,children:u?Aa(Ui,{onClick:m=>l(s.id,m)}):Aa(yo,{onClick:m=>l(s.id,m)})})]}),s.subItems&&Aa(ia,{in:u,timeout:"auto",unmountOnExit:!0,variant:"submenu",children:s.subItems.map(m=>Aa(gt,{disabled:!m.permission,onClick:m.onClick,"data-testid":`nav-subitem-${m.id}`,children:Y2(TF,{children:[m.icon&&Aa(CF,{children:m.icon}),Aa(jt,{primary:m.title,...r})]})},m.id))}),d&&Aa(go,{})]},s.id)})})},yF=Y7e;import{styled as d7}from"@mui/material";import{jsx as f7,jsxs as eSe}from"react/jsx-runtime";var Z7e=d7("div")(({type:e,theme:t})=>({fontWeight:500,background:"#212529",color:"inherit",marginTop:"2rem",width:"100%",height:"100%",marginBottom:"2rem",padding:"0.5rem 1rem",borderRadius:0,borderStyle:"solid",borderColor:e==="warning"?t.palette.text.warning:t.palette.background.brand?.default,borderWidth:"0 0 0 4px"})),Q7e=d7("h4")(({type:e,theme:t})=>({color:e==="warning"?t.palette.text.warning:t.palette.background.brand?.default,fontSize:"1.35rem"})),X7e=d7("p")(({theme:e})=>({color:e.palette.text.inverse})),J7e=({type:e="note",title:t,content:r})=>eSe(Z7e,{type:e,children:[f7(Q7e,{type:e,children:t}),f7(X7e,{children:f7(mf,{content:r})})]}),bF=J7e;import{Resizable as oSe}from"re-resizable";import aSe from"react-draggable";import{jsx as r1,jsxs as rSe}from"react/jsx-runtime";var tSe=({height:e=24,width:t=24,fill:r="#E8EFF3",...o})=>rSe("svg",{width:t,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:[r1("g",{clipPath:"url(#clip0_34897_172744)",children:r1("path",{d:"M6 10C4.9 10 4 10.9 4 12C4 13.1 4.9 14 6 14C7.1 14 8 13.1 8 12C8 10.9 7.1 10 6 10ZM18 10C16.9 10 16 10.9 16 12C16 13.1 16.9 14 18 14C19.1 14 20 13.1 20 12C20 10.9 19.1 10 18 10ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10Z",fill:r})}),r1("defs",{children:r1("clipPath",{id:"clip0_34897_172744",children:r1("rect",{width:"24",height:"24",fill:"white"})})})]}),p7=tSe;var Eyt=D(Sr)(({theme:e})=>({padding:e.spacing(.5,.5),marginBlock:e.spacing(1),"& .MuiListItemText-primary":{fontSize:"1rem",textTransform:"capitalize",fontWeight:700},cursor:"pointer","&:hover":{backgroundColor:e.palette.action.hover},"& .MuiSvgIcon-root":{opacity:0,transition:"opacity 0.2s"},"&:hover .MuiSvgIcon-root":{opacity:1}})),Ryt=D(Sr,{shouldForwardProp:e=>e!=="isVisible"})(({theme:e,isVisible:t})=>({padding:e.spacing(.05,.5),fontStyle:t?"normal":"italic",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& .MuiSvgIcon-root":{height:20,width:20},"& .MuiListItemIcon-root":{minWidth:0,opacity:t?.8:.3},"& .MuiTypography-root":{fontSize:"0.9rem",opacity:t?1:.5}})),vF=D("div")(({theme:e})=>({display:"flex",alignItems:"center",padding:e.spacing(4,2),alignContent:"stretch",justifyContent:"space-between",cursor:"move",background:e.palette.mode==="light"?"linear-gradient(90deg, #3B687B 0%, #507D90 100%)":"linear-gradient(90deg, #28353A 0%, #3D4F57 100%)",height:"3rem",flexShrink:0})),wF=D(K)(({theme:e})=>({padding:e.spacing(2),backgroundColor:e.palette.background.surfaces,overflow:"auto",flex:1,minHeight:0})),EF=D("div")({height:"100%",display:"flex",flexDirection:"column",minHeight:"3rem"}),RF=D(K)(({theme:e,intitialPosition:t})=>({borderRadius:"8px",overflow:"hidden",flexShrink:0,zIndex:100,position:"absolute",backgroundColor:e.palette.background.blur?.light,boxShadow:`0 4px 16px ${e.palette.background.blur?.light}`,maxHeight:"80%",display:"flex",boxSizing:"border-box",...t})),OF=D(p7)(({theme:e})=>({fill:e.palette.common.white,position:"absolute",top:"-0.3rem",left:"50%"})),AF=D("div")({display:"flex",gap:"1rem",justifyContent:"flex-end",alignItems:"center"}),PF=D("div")({display:"flex",justifyContent:"end",alignItems:"center",flex:"1"}),Z2=D($e)(({theme:e})=>({color:e.palette.common.white})),_F=D("div")(()=>({position:"absolute",left:"0",right:"0",marginInline:"auto",width:"fit-content"}));import{jsx as rr,jsxs as m7}from"react/jsx-runtime";var nSe=({isOpen:e,id:t="panel",children:r,areAllExpanded:o,toggleExpandAll:a,handleClose:n,defaultSize:i,intitialPosition:l,sx:s,minimizePanel:u,title:f=""})=>{let d=te();return e?rr(aSe,{handle:".drag-handle",children:rr(RF,{intitialPosition:l,sx:s,children:rr(oSe,{defaultSize:{width:i?.width||"18rem",height:i?.height||"auto"},onResize:()=>{window.dispatchEvent(new Event("panel-resize"))},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},children:rr(EF,{children:m7(jr,{children:[rr("div",{className:"drag-handle",children:m7(vF,{children:[rr(K,{display:"flex",justifyContent:"flex-end",padding:"8px",children:a&&rr(Kt,{title:o?"Collapse All":"Expand All",children:rr(Z2,{onClick:a,children:o?rr(v4,{}):rr(A4,{})})})}),rr(OF,{}),m7(PF,{children:[rr(AF,{id:`${t}-panel-header-actions-container`}),rr(_F,{children:f}),u&&rr(Z2,{onClick:u,children:rr(Ld,{fill:d.palette.common.white})}),rr(Z2,{onClick:n,children:rr(vt,{fill:d.palette.common.white})})]})]})}),rr(wF,{className:"panel-body",children:r})]})})})})}):null},kF=({...e})=>rr(nSe,{...e});import{memo as $F,useMemo as lSe}from"react";var qyt=D(K)(()=>({padding:"1rem",borderRadius:"1rem",backgroundColor:"white",width:"100%",alignSelf:"center",height:"20rem",marginBottom:"1rem",boxShadow:"0px 2px 10px rgba(0, 0, 0, 0.2)",display:"block","@media (max-width:900px)":{height:"18rem",marginInline:"0",padding:"0.5rem"}})),Gyt=D("div")(()=>({width:"100%",justifyContent:"center",display:"flex",alignItems:"center",marginTop:"20px"})),zyt=D(K)(()=>({display:"flex",justifyContent:"space-evenly",gap:"2.5rem",width:"100%"})),jyt=D(K)(()=>({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",gap:"2.5rem",width:"100%"})),Kyt=D("div")(({theme:e})=>({backgroundColor:e.palette.common.white,textAlign:"center",borderRadius:"1rem",width:"100%",padding:"1.5rem",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"})),c7=D(K)(({theme:e})=>({background:e.palette.mode==="light"?e.palette.background.default:e.palette.background.secondary,paddingTop:e.spacing(2),borderRadius:"1rem",display:"flex",alignItems:"center",flexDirection:"column"})),IF=D(K)(({theme:e})=>({paddingInline:e.spacing(2),display:"flex",alignItems:"center",placeSelf:"flex-start",justifyContent:"space-between",width:"100%"})),MF=D(G)(({theme:e})=>({fontSize:"1.5rem",fontWeight:600,color:e.palette.text.default})),LF=D(Tr)(({theme:e})=>({width:"200px",margin:"0.5rem",height:"100%",borderRadius:"1rem",position:"relative",overflow:"hidden",transition:"all 0.3s ease-in-out",background:p2(e.palette.mode==="light"),border:"1px solid transparent",boxShadow:"2px 2px 3px 2px rgb(0, 211, 169, 0.5)","&:hover":{transform:"translateY(-4px)",boxShadow:`2px 2px 3px 2px ${e.palette.text.brand}`,cursor:"pointer"}})),DF=D("div")(()=>({display:"flex",gap:"10px",flexWrap:"nowrap",justifyContent:"center",width:"100%"})),FF=D(K)(()=>({width:"2rem",height:"2rem",padding:"0.25rem",borderRadius:"8px",backgroundColor:"#D6FFF7",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease","& svg":{transition:"transform 0.3s ease"},"&:hover svg":{transform:"scale(1.2)"},"& .clone-icon":{width:"20px",height:"20px"}})),NF=D(Ba)(()=>({height:"100%",display:"flex",flexDirection:"column",padding:"12px",paddingBottom:"0px !important"})),BF=D(K)({display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"0.5rem",gap:"0.6rem"}),HF=D(G)(({theme:e})=>({fontSize:"0.85rem",fontWeight:"bold",color:e.palette.text.default,lineHeight:1.2,marginTop:"4px",textTransform:"uppercase",letterSpacing:"0.5px",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"clip",maxWidth:"70%",height:"2.4em"})),VF=D(G)(({theme:e})=>({fontSize:"24px",fontWeight:700,color:e.palette.icon.secondary,marginBottom:"0.5rem",lineHeight:1.2})),$yt=D(K)(({theme:e})=>({marginBottom:"1rem",padding:"8px",borderRadius:"8px",background:e.palette.mode==="light"?"#f8fafc":ua,color:e.palette.mode==="light"?"rgba(26, 26, 26, .8)":e.palette.text.default,transition:"background 0.3s ease, filter 0.3s ease","&:hover":{filter:"brightness(0.98)"}})),UF=D(G)(({theme:e})=>({fontSize:"0.9rem",fontWeight:1e3,color:e.palette.text.default,lineHeight:1.3,marginBottom:"4px",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",minHeight:"fit-content",maxHeight:"2.6em"})),WF=D(G)({fontSize:"0.75rem",marginBottom:"8px"}),qF=D(K)(({theme:e})=>({display:"flex",gap:"15px",width:"100%",padding:"20px",background:e.palette.mode==="light"?e.palette.background.default:e.palette.background.secondary,borderRadius:"12px",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.05)",paddingBottom:e.spacing(3)})),GF=D(K)(({theme:e})=>({padding:"1rem",color:e.palette.text.error,fontSize:"1rem",fontWeight:500}));import{jsx as dl,jsxs as iSe}from"react/jsx-runtime";var zF=({open:e,handleClick:t})=>{let r=te();return dl(ge,{title:e?"Hide Performers":"Show Performers",placement:"bottom",children:dl("span",{children:iSe(Oe,{variant:"contained",onClick:t,sx:{height:"3.7rem",padding:"0.3rem 1rem 0.3rem 0.3rem"},style:{backgroundColor:e?void 0:r.palette.background.constant?.disabled},children:[dl(Ql,{style:{height:"2rem",width:"2rem",marginRight:"10px"}}),e?"Hide Performers":"Show Performers"]})})})},jF=({handleClick:e})=>dl(ge,{title:"Open Leaderboard",placement:"bottom",children:dl(Oe,{variant:"contained",onClick:e,sx:{height:"3.7rem",padding:"0.3rem",display:{xs:"inline-flex",sm:"none"}},children:dl(Ql,{style:{height:"2rem",width:"2rem"}})})}),KF=()=>dl(DF,{children:[...Array(5)].map((e,t)=>dl(X3,{variant:"rounded",height:"13.5rem",width:"inherit",sx:{minWidth:"150px"},style:{borderRadius:"1rem"}},t))});import{jsx as Or,jsxs as $n}from"react/jsx-runtime";var sSe={pathType:"pattern",page:0,pagesize:1,metrics:!0,expandUser:!0,trim:!0},x7={view:{label:"Most Opens",id:"open",countKey:"view_count"},clone:{label:"Most Clones",id:"clone",countKey:"clone_count"},download:{label:"Most Downloads",id:"download",countKey:"download_count"},deployment:{label:"Most Deploys",id:"deployments",countKey:"deployment_count"},share:{label:"Most Shares",id:"share",countKey:"share_count"}},o1=e=>({...sSe,order:`${x7[e].countKey} desc`}),uSe=({label:e,countKey:t,count:r,patternName:o,pattern:a,userName:n,status:i,id:l,onCardClick:s,onIconClick:u})=>{let f=()=>{s(a)},d=(m,x)=>{m.stopPropagation(),u(x)},p=te();return Or(LF,{elevation:0,status:i,onClick:f,children:$n(NF,{cardId:l,children:[$n(BF,{children:[Or(HF,{children:e}),Or(FF,{onClick:m=>d(m,`${t}+desc`),children:Or(W4,{...bo,fill:p.palette.common.black})})]}),Or(VF,{children:r}),$n(K,{children:[Or(UF,{children:o}),$n(WF,{children:["by ",n]})]})]})})},or=(e={})=>({search:e.search??"",order:e.order??"",pagesize:e.pagesize??0,page:e.page??0,...e}),YF=$F(uSe);YF.displayName="StatCard";var fSe=e=>{let t=e(or(o1("view"))),r=e(or(o1("clone"))),o=e(or(o1("download"))),a=e(or(o1("deployment"))),n=e(or(o1("share"))),i={view:t,clone:r,download:o,deployment:a,share:n};return{queries:i,isLoading:Object.values(i).some(l=>l.isLoading),hasError:Object.values(i).some(l=>l.isError)}},dSe=(e,t)=>{let r=e[t],o=x7[t],a=r?.isSuccess&&r.data?.patterns?.[0];return a?{label:o.label,countKey:o.countKey,count:a[o.countKey],patternName:a.name||"Unknown",pattern:a,userName:a.user?.first_name||"Unknown",id:o.id,status:a?.catalog_data?.content_class}:null},pSe=({useGetCatalogFilters:e,onCardClick:t,onIconClick:r,onOpenLeaderboard:o})=>{let a=te(),{queries:n,isLoading:i,hasError:l}=fSe(e),s=OE(a.breakpoints.down("sm")),u=lSe(()=>Object.keys(x7).map(d=>dSe(n,d)).filter(d=>!!d),[n]);if(l)return Or(c7,{children:Or(GF,{children:"Error loading statistics. Please try again later."})});let f=u.map((d,p)=>Or(YF,{...d,onCardClick:t,onIconClick:r},`${d.id}-${p}`));return Or(jr,{children:$n(c7,{children:[$n(IF,{children:[$n(K,{display:"flex",alignItems:"center",gap:1,children:[Or(MF,{children:"Top Performers"}),Or(Ql,{style:{height:"2rem",width:"2rem",color:a.palette.icon.secondary,display:s?"none":"inline-flex"}})]}),o&&Or("div",{children:$n(Oe,{variant:"contained",onClick:()=>o(),children:[Or(Ql,{style:{height:"2rem",width:"2rem",display:s?"inline-flex":"none"}}),Or("p",{style:{margin:0,display:s?"none":"inline-flex"},children:"Open Leaderboard"})]})})]}),$n(qF,{children:[i&&Or(KF,{}),Or(zu,{items:f})]})]})})},ZF=$F(pSe);import{styled as Yn}from"@mui/material";var QF=Yn("div")({padding:"1rem 0","& h2":{margin:"1rem 0"},".get-started-desc":{margin:"1rem"}}),XF=Yn("div")(({theme:e})=>({display:"flex",cursor:"pointer",flexDirection:"row",flexWrap:"wrap","& a":{color:e.palette.text.primary,margin:"1rem"}})),JF=Yn("a")(({theme:e})=>({flex:"1",padding:"2rem",textDecoration:"none",background:e.palette.mode==="light"?"#EEEEEE":"#212121",minHeight:"21.5rem",transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)",borderRadius:"10px","&:hover":{boxShadow:`${e.palette.background.brand?.default} 0px 0px 7px`},"& a":{margin:"0 !important","&:hover":{color:e.palette.background.brand?.default}}})),eN=Yn("div")({display:"flex",alignItems:"center",gap:"1rem"}),Tbt=Yn("div")({flex:"0 0 25%",alignSelf:"center",margin:"0 0.5rem"}),Sbt=Yn("img")({height:"3rem",width:"3rem",maxWidth:"3rem",margin:"auto"}),Cbt=Yn("svg")(({theme:e})=>({fontSize:"4.15rem",alignSelf:"center",flex:"0 0 25%",margin:"0 0.5rem",filter:e.palette.mode==="light"?"0%":"invert(100%)",transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"})),ybt=Yn("h2")({fontSize:"1.75rem",margin:"1rem 0"}),bbt=Yn("p")(({theme:e})=>({color:e.palette.text.primary,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"}));import{jsx as If,jsxs as Q2}from"react/jsx-runtime";var mSe=({Steps:e,PrerequisiteLine:t})=>Q2(QF,{children:[Q2("div",{className:"get-started-desc",id:"pre-requisites",children:[If("h2",{children:"Prerequisites"}),If("p",{children:t})]}),If(XF,{id:"Set up",children:e.map((r,o)=>Q2(JF,{href:r.url,target:"_blank",children:[Q2(eN,{children:[If("h2",{children:r.heading}),typeof r.Icon=="string"?If("img",{src:r.Icon,alt:r.heading,width:"40px",height:"40px"}):r.Icon]}),If("p",{children:r.description})]},o))})]}),tN=mSe;import{styled as cSe}from"@mui/material";var xSe=cSe("div")(({theme:e})=>({color:e.palette.text.primary,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)",".chapter-sub-heading, .chapter-sub-heading a":{color:e.palette.mode==="light"?l4:s4,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"},".chapter-alt-heading, .chapter-alt-heading a":{color:"gray"},"& a":{color:e.palette.background.brand?.default,textDecoration:"underline","&:hover":{color:e.palette.background.brand?.default}},"& p > code":{color:"inherit",padding:".2em .4em",margin:"0",fontSize:"85%",wordBreak:"normal",backgroundColor:e.palette.background.code,borderRadius:".25rem"},"& pre":{backgroundColor:"#011627",padding:"1em",borderRadius:"0.5rem",overflowX:"auto",color:"#d6deeb",position:"relative",textAlign:"left",width:"100%",margin:"1rem auto autocompleteClasses",fontFamily:"Courier New, Courier, monospace"},"& li code":{color:"inherit",padding:".2em .4em",margin:"0",fontSize:"85%",wordBreak:"normal",backgroundColor:e.palette.background.code,borderRadius:".25rem"},"& li a":{color:e.palette.text.default,textDecoration:"underline","&:hover":{color:e.palette.background.brand?.default}}})),rN=xSe;import{Fragment as uN}from"react";import{styled as Es}from"@mui/material";var oN=Es("div")({width:"52rem",maxWidth:"90%"}),aN=Es("div")({display:"flex",alignItems:"center",background:"#323339",width:"100%",height:"2.875rem",borderRadius:"2px 2px 0 0"}),Dbt=Es("div")({color:"#76767d",fontFamily:"'Courier New', Courier, monospace",fontSize:"13.5px",margin:"0 auto"}),nN=Es("ul")({position:"absolute",display:"block",listStyle:"none",marginLeft:"1rem",marginTop:"0",marginBottom:"0",padding:"0","& li":{display:"inline-block",width:"0.875rem",height:"0.875rem",background:"#1d1e23",borderRadius:"0.75rem",marginRight:"7px"}}),iN=Es("div")({width:"100%",height:"100%",background:"#1d1e23",borderRadius:"0 0 2px 2px",padding:"24px 32px"}),lN=Es("div")({width:"100%",height:"100%",position:"relative",overflow:"scroll",msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{WebkitAppearance:"none",width:"0",height:"0"},"&.no-scroll-overflow-wrapper":{"& .code-wrapper":{bottom:"0",position:"absolute",minHeight:"100%"}}}),sN=Es("div")(({theme:e})=>({"& pre":{padding:"0",margin:"0",width:"100%",height:"100%",fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"27px",whiteSpace:"pre-wrap",color:e.palette.info.main,"&.short":{lineHeight:"16px"},"&.navy":{color:"#66a2ff"},"&.gray":{color:"#bdbec2"},"&.white":{color:"#fff"},wrapWord:"normal",[e.breakpoints.up("sm")]:{fontSize:"13.5px",lineHeight:"26px"}}}));import{jsx as Zn,jsxs as X2}from"react/jsx-runtime";var hSe=({lines:e,title:t,noScroll:r})=>X2(oN,{children:[X2(aN,{children:[X2(nN,{children:[Zn("li",{style:{backgroundColor:"red"}}),Zn("li",{style:{backgroundColor:"yellow"}}),Zn("li",{style:{backgroundColor:"green"}})]}),t&&Zn("div",{className:"title",children:t})]}),Zn(iN,{children:Zn(lN,{className:r?"no-scroll-overflow-wrapper":"",children:Zn(sN,{children:e&&e.map((o,a)=>Zn(uN,{children:X2("pre",{className:`${o.short?"short":""}`,style:{color:o.color?o.color:"blue"},children:[o.indent&&new Array(o.indent*2).fill({}).map((n,i)=>Zn(uN,{children:"\xA0"},i)),o.code]})},a))})})})]}),fN=hSe;import{styled as gSe}from"@mui/material";var dN=gSe("div")(({theme:e})=>({".chapter-back":{display:"flex",justifyContent:"space-between",alignItems:"center","& a":{display:"inline-flex","& svg":{alignSelf:"center",fontSize:"1.5rem",color:e.palette.grey[600],width:"100%",maxWidth:"1.5rem"},"& h4":{fontWeight:500,textTransform:"capitalize",fontSize:"1.25rem"},"&:hover":{"& svg, & h4":{color:e.palette.text.primary}}},".toc-toggle-btn":{display:"none"},".toc-menu-icon":{width:"1.5rem",height:"1.5rem",cursor:"pointer",fill:e.palette.secondary.main,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"}},".toc-list":{"& ul":{position:"relative",paddingInlineStart:"2.65rem",MozPaddingStart:"2.65rem","&::after":{position:"absolute",inset:"1rem auto 1rem 1.7rem",width:"auto",height:"auto",borderLeft:"1px solid rgba(177, 182, 184, 0.25)",content:'""',zIndex:0},"& li":{width:"fit-content",margin:"1rem 0","&::marker":{color:"rgba(177, 182, 184, 0.75)"},"& p":{margin:0,fontSize:"1rem","& a":{color:e.palette.mode==="light"?"rgb(0 0 0 / 0.65)":"rgb(255 255 255 / 0.65)",transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"}},"&:hover":{"&::marker, & p, & a":{color:e.palette.background.brand?.default}}},".active-link":{"&::marker, & p, & a":{color:e.palette.background.brand?.default}}}}}));import{jsx as J2,jsxs as SSe}from"react/jsx-runtime";var TSe=({availableChapters:e,currentChapter:t,onClick:r})=>{let o=a=>a.split("-").map(l=>l.charAt(0).toUpperCase()+l.slice(1)).join(" ");return J2(dN,{children:J2("div",{className:"toc-list",children:J2("ul",{className:"toc-ul toc-ul-open",children:e.map(a=>J2("li",{className:a+".mdx"===t?"active-link":"",onClick:n=>{r(a,n)},children:SSe("p",{className:"toc-item",children:[" ",o(a)]})},a))})})})},pN=TSe;import{useState as ySe}from"react";import{styled as CSe}from"@mui/material";var mN=CSe("div")(({theme:e})=>({position:"sticky",top:"10rem",left:0,marginLeft:"-3rem",".go-back":{margin:"1rem 0",display:"flex",justifyContent:"space-between",alignItems:"center","& a":{display:"inline-flex","& svg":{alignSelf:"center",fontSize:"1.5rem",color:e.palette.text.disabled,width:"100%",maxWidth:"1.5rem"},"& h4":{fontWeight:500,textTransform:"capitalize",fontSize:"1.25rem",whiteSpace:"nowrap"},"&:hover":{"& svg, & h4":{color:e.palette.text.primary}}}},".toc-toggle-btn":{display:"none"},".toc-ul-open":{display:"flex",flexDirection:"column",marginTop:"0rem",listStyle:"none",height:"auto !important",opacity:"1 !important",transition:"all .4s !important"},".toc-menu-icon":{width:"1.5rem",height:"1.5rem",cursor:"pointer",fill:e.palette.common.white},".toc-sub-heading":{marginTop:"1rem",fontWeight:500,fontSize:"1.15rem"},".toc-item":{lineHeight:"1.5rem"},".toc-list":{"& ul":{position:"relative",paddingInlineStart:"1.5rem",listStyleType:"none","& li":{margin:"1rem 0 1rem 0.5rem",width:"fit-content","&::marker":{color:"rgba(177, 182, 184, 0.75)"},"& p":{margin:0,fontSize:"1rem","& a":{color:"rgba(0, 0, 0, 0.65)"}},"&:hover":{"&::marker, & p, & a":{color:e.palette.secondary.contrastText}}},".active-link":{"&::marker, & p, & a":{color:e.palette.secondary.contrastText}}}},"@media only screen and (max-width: 991px)":{position:"initial",marginLeft:"-0.5rem",width:"auto",".toc-toggle-btn":{display:"flex"},".go-back":{marginLeft:0},".toc-ul":{opacity:0,height:0,transition:"none",paddingLeft:".8rem !important"},".toc-item":{lineHeight:".8rem"}}}));import{jsx as Nr,jsxs as e5}from"react/jsx-runtime";var bSe=[{name:"Set up",link:"/cloud-native-management/meshery"},{name:"Run Meshery",link:"/cloud-native-management/meshery/getting-started"},{name:"Manage Meshery",link:"/cloud-native-management/meshery/operating-service-meshes"}],vSe=({coursesData:e})=>{let[t,r]=ySe(!1);return e5(mN,{children:[e5("div",{className:"go-back",children:[e5("a",{href:"/learn/learning-paths",children:[Nr(b4,{}),Nr("h4",{children:"Learning Paths"})]}),Nr("div",{className:"toc-toggle-btn",children:t?Nr(vt,{className:"toc-menu-icon",onClick:()=>{r(!t)}}):Nr(Md,{className:"toc-menu-icon",onClick:()=>{r(!t)}})})]}),Nr("div",{className:"toc-list",children:e5("ul",{className:`toc-ul ${t?"toc-ul-open":""}`,children:[Nr("a",{href:"#pre-requisites",children:Nr("h5",{className:"toc-sub-heading",children:"Pre-requisites"})}),bSe.map((o,a)=>Nr("li",{children:Nr("p",{className:"toc-item",children:Nr("a",{href:`#${o.name}`,children:o.name})})},a)),Nr("a",{href:"#courses-list",children:Nr("h5",{className:"toc-sub-heading",children:"Courses"})}),e.map((o,a)=>Nr("li",{children:Nr("p",{className:"toc-item",children:Nr("a",{href:`#${o.frontmatter.courseTitle}`,children:o.frontmatter.courseTitle})})},a))]})})]})},cN=vSe;import{Button as wSe}from"@mui/material";import ESe from"@mui/material/Autocomplete";import xN from"@mui/material/CircularProgress";import{useState as t5}from"react";import{useDebounce as RSe}from"use-debounce";import{Fragment as h7,jsx as Ar,jsxs as a1}from"react/jsx-runtime";var OSe=({usersData:e,disabled:t=!1,shareWithNewUsers:r,useGetAllUsersQuery:o})=>{let[a,n]=t5(!1),[i,l]=t5(""),[s,u]=t5([]),[f,d]=t5(!1),p=te(),[m]=RSe(i,300),{data:x,isLoading:h}=o({search:m,page:0,pagesize:10},{skip:m.trim().length==0}),g=x?.data??[],T=async()=>{console.log("users to share with",s);try{d(!0);let b=await r(s);b.error?n(b.error):u([])}catch(b){console.log("error while sharing",b)}finally{d(!1)}},E=(b,A)=>{A&&(u(A),l(""))},v=(b,A,B)=>{B==="input"?l(A):B==="clear"&&l("")},I=g.filter(b=>!s.concat(e).find(A=>A.email===b.email)),k=t||f||s.length===0,C=({avatarObj:b,...A})=>Ar(bt,{avatar:Ar(Nt,{alt:b.first_name,src:b.avatar_url,children:b.avatar_url?"":b.first_name?.charAt(0)}),label:b.email,size:"small",...A},b.user_id);return Ar(h7,{children:a1(K,{display:"flex",alignItems:"center",justifyContent:"space-between",gap:1,children:[Ar(ESe,{id:"user-search-field",sx:{width:"100%"},filterOptions:b=>b,options:I,renderTags:(b,A)=>b.map((B,P)=>Ar(C,{avatarObj:B,...A({index:P})})),disableClearable:!0,includeInputInList:!0,filterSelectedOptions:!0,multiple:!0,disableListWrap:!0,disabled:f,inputValue:i,loading:h,value:s,getOptionLabel:b=>b.email,noOptionsText:h?"Loading...":i==""?"Search using name or email":"No users found",onChange:E,onInputChange:v,isOptionEqualToValue:(b,A)=>b.email===A.email,renderInput:b=>Ar(Wr,{...b,placeholder:"Add Users",error:!!a,helperText:a,fullWidth:!0,label:"",disabled:k,sx:{"& .MuiOutlinedInput-root":{paddingInline:"0.5rem",paddingBlock:"0.1rem"}},InputProps:{...b.InputProps,endAdornment:Ar(h7,{children:h?Ar(xN,{color:"inherit",size:20}):null})}}),renderOption:(b,A)=>Ar(K,{component:"li",sx:{"& > img":{mr:2,flexShrink:0}},...b,children:a1(xe,{container:!0,alignItems:"center",children:[Ar(xe,{children:Ar(K,{sx:{color:"text.secondary",mr:2},children:Ar(Nt,{alt:A.first_name,src:A.avatar_url,children:A.avatar_url?"":Ar(vn,{})})})}),Ar(xe,{size:"grow",children:A.deleted_at?.Valid?a1(G,{variant:"body2",color:"text.secondary",children:[A.email," (deleted)"]}):a1(h7,{children:[a1(G,{variant:"body2",children:[A.first_name," ",A.last_name]}),Ar(G,{variant:"body2",color:"text.secondary",children:A.email})]})})]})})}),Ar(wSe,{variant:"contained",sx:{"&.Mui-disabled":{color:`${p.palette.text.secondary} !important`,backgroundColor:`${p.palette.action.disabled} !important`}},onClick:T,disabled:k,children:f?Ar(xN,{size:24,sx:{color:"#fff"}}):"Share"})]})})},g7=OSe;import{Autocomplete as ASe}from"@mui/material";import PSe,{useCallback as T7,useEffect as _Se,useMemo as kSe,useState as Mf}from"react";import{Fragment as hN,jsx as At,jsxs as Rs}from"react/jsx-runtime";var ISe=({usersData:e,setUsersData:t,label:r="Add User",setDisableSave:o,handleNotifyPref:a,notifyUpdate:n,isCreate:i,searchType:l,disabled:s=!1,currentUserData:u,searchedUsers:f=[],isUserSearchLoading:d,fetchSearchedUsers:p,usersSearch:m,setUsersSearch:x})=>{let[h,g]=Mf(""),[T,E]=Mf(!1),[v,I]=Mf(!1),[k,C]=Mf(!0),[b,A]=Mf(""),[B,P]=Mf(e||[]);_Se(()=>{P(e||[])},[e]);let X=kSe(()=>{if(k&&!m&&u)return[u];let H=f.filter(M=>M.user_id!==u?.user_id);return!m&&u?[u,...H]:H},[f,u,m,k]),Z=T7((H,M)=>{M.stopPropagation();let L=B.filter(F=>F.user_id!==H);P(L),t(L),o&&o(!1)},[B,t,o,p,b]),N=T7((H,M)=>{if(!M)return;let L=B.some(q=>q.user_id===M.user_id),F=M.deleted_at?.Valid===!0;if(L||F){g(L?"User already selected":"User does not exist");return}A(""),x(""),g(""),E(!1),P(q=>[...q,M]),t(q=>[...q,M]),o&&o(!1)},[B,t,o,x]),W=T7((H,M)=>{if(A(M),M==="")E(!0),x(""),C(!0);else{let L=encodeURIComponent(M);x(M),p(L),g(""),E(!0),C(!1)}},[p,x]);return Rs(hN,{children:[At(ASe,{id:"user-search-field",style:{width:"100%"},open:T,options:X,getOptionLabel:()=>"",isOptionEqualToValue:(H,M)=>H.user_id===M.user_id,onOpen:()=>E(!0),onClose:()=>E(!1),inputValue:b,onChange:N,onInputChange:W,filterOptions:H=>H,loading:d,disabled:s,disableClearable:!0,freeSolo:!1,value:void 0,selectOnFocus:!0,blurOnSelect:!0,clearOnBlur:!0,popupIcon:null,forcePopupIcon:!1,noOptionsText:d?"Loading...":"No users found",renderInput:H=>At(Wr,{...H,label:r,error:!!h,helperText:h,InputLabelProps:{style:{fontFamily:"inherit"}},InputProps:{...H.InputProps,endAdornment:At(PSe.Fragment,{children:d?At(Bt,{color:"inherit",size:20}):null})}}),renderOption:(H,M)=>At("li",{...H,id:M.user_id,children:Rs(K,{sx:{"& > img":{mr:2,flexShrink:0}},children:[" ",Rs(xe,{container:!0,alignItems:"center",children:[At(xe,{children:At(K,{sx:{color:"text.secondary",mr:2},children:At(Nt,{alt:M.first_name,src:M.avatar_url,children:M.avatar_url?"":At(vn,{})})})}),At(xe,{size:"grow",children:M.deleted?Rs(G,{variant:"body2",color:"text.secondary",children:[M.email," (deleted)"]}):Rs(hN,{children:[Rs(G,{variant:"body2",children:[M.first_name," ",M.last_name]}),At(G,{variant:"body2",color:"text.secondary",children:M.email})]})})]})]})})}),!i&&At(Z3,{row:!0,children:At("div",{style:{display:"flex",flexWrap:"nowrap"},children:At(Wl,{control:At(Vr,{checked:n,onChange:a,name:"notify",color:"primary"}),label:`Notify ${l} of membership change`})})}),Rs(K,{sx:{display:"flex",flexWrap:"wrap",gap:.5,mt:e?.length>0?"0.5rem":""},children:[!v&&B?.[0]&&At(bt,{avatar:At(Nt,{alt:B[0].first_name,src:B[0].avatar_url,children:!B[0].avatar_url&&B[0].first_name?.[0]}),label:B[0].email,onDelete:H=>Z(B[0].user_id,H),deleteIcon:At(Kt,{title:"Remove user",children:At(vt,{style:Gr})}),size:"small"},B[0].user_id),v&&B?.map(H=>At(bt,{avatar:At(Nt,{alt:H.first_name,src:H.avatar_url,children:!H.avatar_url&&H.first_name?.[0]}),label:H.email,onDelete:M=>Z(H.user_id,M),deleteIcon:At(Kt,{title:"Remove user",children:At(vt,{style:Gr})}),size:"small"},H.user_id)),B?.length>1&&At(G,{onClick:()=>I(!v),sx:{cursor:"pointer"},children:v?"(hide)":`(+${B.length-1})`})]})]})},gN=ISe;import{Box as GN,Stack as WN,Step as WCe,StepConnector as qCe,StepLabel as GCe,Stepper as zCe}from"@mui/material";import{stepConnectorClasses as Bf}from"@mui/material/StepConnector";function Lf(e,...t){let r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>r.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${r} for the full message.`}import BSe from"@emotion/styled";function TN(e){for(var t=0,r,o=0,a=e.length;a>=4;++o,a-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var SN={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function CN(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var MSe=!1,LSe=/[A-Z]|^ms/g,DSe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wN=function(t){return t.charCodeAt(1)===45},yN=function(t){return t!=null&&typeof t!="boolean"},S7=CN(function(e){return wN(e)?e:e.replace(LSe,"-$&").toLowerCase()}),bN=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(DSe,function(o,a,n){return tn={name:a,styles:n,next:tn},a})}return SN[t]!==1&&!wN(t)&&typeof r=="number"&&r!==0?r+"px":r},FSe="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function n1(e,t,r){if(r==null)return"";var o=r;if(o.__emotion_styles!==void 0)return o;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return tn={name:a.name,styles:a.styles,next:tn},a.name;var n=r;if(n.styles!==void 0){var i=n.next;if(i!==void 0)for(;i!==void 0;)tn={name:i.name,styles:i.styles,next:tn},i=i.next;var l=n.styles+";";return l}return NSe(e,t,r)}case"function":{if(e!==void 0){var s=tn,u=r(e);return tn=s,n1(e,t,u)}break}}var f=r;if(t==null)return f;var d=t[f];return d!==void 0?d:f}function NSe(e,t,r){var o="";if(Array.isArray(r))for(var a=0;a<r.length;a++)o+=n1(e,t,r[a])+";";else for(var n in r){var i=r[n];if(typeof i!="object"){var l=i;t!=null&&t[l]!==void 0?o+=n+"{"+t[l]+"}":yN(l)&&(o+=S7(n)+":"+bN(n,l)+";")}else{if(n==="NO_COMPONENT_SELECTOR"&&MSe)throw new Error(FSe);if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)yN(i[s])&&(o+=S7(n)+":"+bN(n,i[s])+";");else{var u=n1(e,t,i);switch(n){case"animation":case"animationName":{o+=S7(n)+":"+u+";";break}default:o+=n+"{"+u+"}"}}}}return o}var vN=/label:\s*([^\s;{]+)\s*(;|$)/g,tn;function EN(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,a="";tn=void 0;var n=e[0];if(n==null||n.raw===void 0)o=!1,a+=n1(r,t,n);else{var i=n;a+=i[0]}for(var l=1;l<e.length;l++)if(a+=n1(r,t,e[l]),o){var s=n;a+=s[l]}vN.lastIndex=0;for(var u="",f;(f=vN.exec(a))!==null;)u+="-"+f[1];var d=TN(a)+u;return{name:d,styles:a,next:tn}}import{ThemeContext as Wvt,keyframes as qvt,css as Gvt}from"@emotion/react";function C7(e,t){let r=BSe(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{let a=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${a})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
79
|
+
`,P8e=zo(Ld)(({theme:e})=>({height:"2.25rem",width:"2.25rem",fill:e.palette.common.white,cursor:"pointer"})),_8e=zo(_4)(({theme:e})=>({height:"2.25rem",width:"2.25rem",fill:e.palette.common.white,cursor:"pointer"})),y2=zo("div")(({theme:e})=>({background:e.palette.surface.tint,color:"#eee",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"1rem",textAlign:"center"})),k8e=({headerIcon:e})=>{let[t,r]=C2(!1),[o,a]=C2(""),n=O8e(null),[i,l]=C2(null);return{isOpen:t,open:t,openModal:({title:f,reactNode:d=null,onClose:p})=>{f&&a(f),p&&(n.current=p),r(!0),d&&l(d)},reactNode:i,title:o,headerIcon:e,closeModal:()=>{r(!1),n.current&&n.current(),l(null),a(""),n.current=null}}},wr=zo(Sn)(({theme:e})=>({padding:"1rem",backgroundColor:e.palette.surface.primary,overflowY:"auto",height:"100%",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},"-ms-overflow-style":"none"})),I8e=zo("div",{shouldForwardProp:e=>e!=="variant"})(({theme:e,variant:t,hasHelpText:r})=>({background:t==="filled"?e.palette.surface.tint:"transparent",display:"flex",alignItems:"center",justifyContent:r?"space-between":"end",padding:"1rem",gap:"1rem","&& .InfoCircleIcon":{color:t==="filled"?e.palette.common.white:e.palette.background.info?.default}})),Er=({open:e,closeModal:t,title:r,headerIcon:o,reactNode:a,children:n,maxWidth:i="xs",isFullScreenModeAllowed:l,...s})=>{let[u,f]=C2(!1),d=()=>{f(p=>!p)};return Dp(A8e,{maxWidth:i,open:e,onClose:t,"aria-labelledby":"alert-dialog-slide-title","aria-describedby":"alert-dialog-slide-description",fullScreen:u,fullWidth:!u,...s,children:[r&&Dp(y2,{className:"modal-header","data-testid":"modal-header",children:[o&&Xa(K,{"data-testid":"modal-header-icon",children:o}),Xa(G,{component:"div",variant:"h6","data-testid":"modal-title",children:r}),Dp("div",{style:{display:"flex",alignItems:"center",gap:"1rem"},"data-testid":"modal-header-actions",children:[l&&Xa(ge,{title:u?"Exit Fullscreen":"Enter Fullscreen",children:u?Xa(_8e,{onClick:d,"data-testid":"modal-exit-fullscreen-btn"}):Xa(P8e,{onClick:d,"data-testid":"modal-enter-fullscreen-btn"})}),Xa(hf,{onClick:t,className:"modal-close-btn","data-testid":"modal-close-btn",children:Xa(vt,{...ju,fill:"#fff"})})]})]}),a&&a,n&&n]})},Kr=({helpText:e,children:t,variant:r})=>Dp(I8e,{className:"modal-footer",variant:r,hasHelpText:!!e,children:[e&&Xa(T6,{content:e}),t]}),Ja=zo(K3)(({theme:e})=>({backgroundColor:e.palette.background.brand?.default,color:e.palette.text.constant?.white,"&:hover":{background:e.palette.background.brand?.hover},"&.MuiButton-contained.Mui-disabled":{color:e.palette.text.constant?.disabled,backgroundColor:e.palette.background.constant?.disabled}})),en=zo(Ow)(({theme:e})=>({"&.MuiButton-outlined":{border:`1px solid ${e.palette.background.constant?.white}`,color:e.palette.text.constant?.white,backgroundColor:"transparent","&:hover":{background:"transparent",color:e.palette.text.constant?.white}},"&.MuiButton-outlined.Mui-disabled":{color:e.palette.text.disabled,border:"none",backgroundColor:e.palette.background.brand?.disabled}})),M8e=zo(Aw)(({theme:e})=>({color:e.palette.text.inverse})),L8e=zo(K3)(({theme:e})=>({backgroundColor:e.palette.background.error?.default,color:e.palette.text.constant?.white,"&:hover":{background:e.palette.background.error?.hover}})),D8e=zo(K)(()=>({width:"100%",display:"flex",justifyContent:"end",gap:"1rem"})),Fp=({primaryText:e,secondaryText:t,primaryButtonProps:r,secondaryButtonProps:o})=>Dp(D8e,{children:[Xa(en,{...o,children:t}),Xa(Ja,{...r,children:e})]});import{styled as Np}from"@mui/material";var sL=Np("div")(({theme:e})=>({backgroundColor:e.palette.background.surfaces})),uL=Np("div")(()=>({zIndex:"100",borderRadius:"5px"})),fL=Np("div")(()=>({padding:"1.25rem 1rem",display:"flex",justifyContent:"flex-end",background:"linear-gradient(90deg, #3B687B 0%, #507D90 100%)",boxShadow:"inset 0px 3px 5px 0px rgba(0,0,0,0.25)",position:"relative",zIndex:"100"})),dL=Np(G)({fontSize:"18px"}),pL=Np("div")(()=>({display:"flex",borderRadius:"5px 5px 0px 0px",justifyContent:"space-between",padding:"11px 16px",height:"52px",fill:Ue,boxShadow:"inset 0px -1px 3px 0px rgba(0,0,0,0.2)",background:"linear-gradient(90deg, #3B687B 0%, #507D90 100%)"}));import{jsx as Ss,jsxs as S6}from"react/jsx-runtime";function F8e({title:e,leftHeaderIcon:t,helpText:r,helpArea:o,actions:a,hideActions:n=!1,content:i,closeComponent:l,"data-testid":s="modal-card-wrapper"}){return S6(uL,{"data-testid":s,children:[S6(pL,{"data-testid":"modal-card-header",children:[t&&Ss("div",{style:{display:"flex",alignItems:"center"},"data-testid":"modal-card-header-icon",children:t}),e&&Ss("div",{style:{display:"flex",alignItems:"center",color:"white"},"data-testid":"modal-card-title",children:Ss(dL,{children:e})}),S6("div",{style:{display:"flex",alignItems:"center"},"data-testid":"modal-card-header-right",children:[r&&Ss("div",{"data-testid":"modal-card-help-area",children:o}),Ss("div",{"data-testid":"modal-card-close-button",children:l})]})]}),Ss(sL,{"data-testid":"modal-card-content",children:i}),!n&&Ss(fL,{"data-testid":"modal-card-actions",children:a})]})}var b2=F8e;import{Box as C6,Button as y6,Checkbox as N8e,styled as Rr}from"@mui/material";var mL=Rr("div")({cursor:"pointer",width:"30px",height:"30px",display:"flex",alignItems:"center",fill:Di}),B8e={"bottom-center":{open:{bottom:"0px",left:"50%",transform:"translateX(-50%)"},closed:{bottom:"-42%",left:"50%",transform:"translateX(-50%)"}},"bottom-right":{open:{bottom:"0px",right:"10px"},closed:{bottom:"-448px",right:"10px"}},"bottom-left":{open:{bottom:"0px",left:"10px"},closed:{bottom:"-448px",left:"10px"}},"right-top":{open:{top:"0px",right:"0px"},closed:{top:"0px",right:"-448px"}},"right-middle":{open:{top:"50%",right:"0px",transform:"translateY(-50%)"},closed:{top:"50%",right:"-448px",transform:"translateY(-50%)"}},"right-bottom":{open:{bottom:"0px",right:"0px"},closed:{bottom:"0px",right:"-448px"}}},cL=Rr(C6)(({isOpen:e,renderPosition:t})=>({position:"fixed",transition:"all 0.5s ease",...B8e[t][e?"open":"closed"]})),xL=Rr("div")({display:"flex",flexDirection:"column",justifyContent:"center",transition:"bottom 0.5s ease",padding:"1.688rem 1.188rem",width:"28rem",height:"12rem"}),hL=Rr("div")({display:"flex",alignItems:"center",paddingTop:"0.5px",height:"20px",width:"21.188rem"}),gL=Rr("div")({width:"24px",height:"24px"}),dTt=Rr(y6)(({isOpen:e})=>({color:"white",width:"4.313rem",height:"2.25rem",textTransform:"none",boxShadow:"0px 1px 8px rgba(0, 0, 0, 0.25)",backgroundColor:e?Mu.main:_e,"&:hover":{backgroundColor:Ww}})),TL=Rr(y6)(({theme:e,renderPosition:t})=>({backgroundColor:Iu,color:Di,borderRadius:"5px",padding:"10px 20px",fontSize:"16px",transition:"bottom 0.5s ease",position:"fixed",...H8e[t],"&:hover":{backgroundColor:e.palette.mode==="dark"?lr:"#213A45"}})),H8e={"bottom-center":{bottom:"-10px",left:"50%",transform:"translateX(-50%)"},"bottom-right":{bottom:"-10px",right:"10px"},"bottom-left":{bottom:"-10px",left:"10px"},"right-top":{top:"8%",right:"-45px",transform:"rotate(-90deg)"},"right-middle":{top:"50%",right:"-45px",transform:"rotate(-90deg)"},"right-bottom":{bottom:"10%",right:"-45px",transform:"rotate(-90deg)"}},SL=Rr("div")(({theme:e})=>({display:"block",right:"0",backgroundColor:e.palette.mode==="dark"?"#333333":Di,bottom:"0",width:"100%",zIndex:"100",position:"relative",height:"100%",alignItems:"center",transition:"bottom 0.5s ease"})),CL=Rr(C6)(({isOpen:e,theme:t})=>({position:"relative",bottom:e?"0px":"-240px",right:"0",color:t.palette.text.default,backgroundColor:t.palette.mode==="dark"?Kl:Ue,border:`1px solid ${$w}`,padding:"20px",width:"28rem",height:"333.5px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",transition:"bottom 0.5s ease",fontSize:"1.5rem",textAlign:"center"})),yL=Rr(C6)({display:"flex",justifyContent:"space-between",alignSelf:"center"}),bL=Rr(y6)(({theme:e,isOpen:t})=>({fontSize:"16px",lineHeight:1,letterSpacing:"0.029em",textTransform:"none",width:"100%",height:"5rem",display:"flex",padding:"0rem",borderRadius:"0px",flexDirection:"column",borderBottom:t?`2px solid ${_e}`:"",background:t?e.palette.mode==="dark"?lr:No:e.palette.mode==="dark"?Kl:Va,color:t?e.palette.mode==="dark"?No:lr:e.palette.mode==="dark"?No:No,fill:t?e.palette.icon.default:No,stroke:t?e.palette.icon.inverse:e.palette.icon.brand,"&:hover":{color:e.palette.text.default,backgroundColor:e.palette.background.hover,fill:e.palette.icon.default}})),vL=Rr("textarea")(({theme:e})=>({width:"100%",background:"transparent",border:`1px solid ${ku}`,borderRadius:"4px",color:e.palette.mode==="dark"?No:lr,fontSize:"16px",paddingTop:"10.5px",paddingBottom:"10.5px",paddingLeft:"0.6rem",paddingRight:"0.6rem",resize:"none",fontFamily:"inherit",fontStyle:"normal","&::placeholder":{color:e.palette.mode==="dark"?No:Kl},"&:focus":{outline:`1px solid ${Co}`}})),wL=Rr("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-between",height:"137px",color:e.palette.text.default})),EL=Rr("a")({textDecoration:"underline",color:"inherit","&:hover":{color:"inherit"}}),RL=Rr(N8e)({color:`${Ue} !important`,marginLeft:"-11px",paddingLeft:"0px"}),OL=Rr("div")({padding:"1.5rem 1rem",width:"28rem",height:"12rem"}),AL=Rr("div")({padding:"0px",width:"30px",height:"30px",display:"flex",alignItems:"center"});import{Fragment as PL,jsx as St,jsxs as al}from"react/jsx-runtime";var V8e="Some account and system information may be sent to Layer5. We will use it to fix problems and improve our services, subject to our [Privacy Policy](https://layer5.io/company/legal/privacy) and [Terms of Service](https://layer5.io/company/legal/terms-of-service). We may email you for more information or updates.",b6=[{icon:St(hx,{}),label:"Issue",placeholder:"I\u2019m having an issue with...",isTextInput:!0},{icon:St(B4,{}),label:"Suggestion",placeholder:"I have a suggestion about...",isTextInput:!0},{icon:St(I4,{}),label:"Meet Request",isTextInput:!1,innerComponent:al(wL,{children:[al(v6,{style:{lineHeight:"2.5",textAlign:"center"},children:["Need help or have more feedback than fits here?",St("br",{})," Meet with us."]}),St(EL,{target:"_blank",href:"https://calendar.google.com/calendar/appointments/schedules/AcZssZ3pmcApaDP4xd8hvG5fy8ylxuFxD3akIRc5vpWJ60q-HemQi80SFFAVftbiIsq9pgiA2o8yvU56",children:"Select a time convenient for you."})]})}],U8e=({onSubmit:e,containerStyles:t,feedbackOptionStyles:r,renderPosition:o,defaultMessage:a=void 0,defaultOpen:n=!1})=>{let[i,l]=Bp(n),[s,u]=Bp(!1),[f,d]=Bp(b6[0]),[p,m]=Bp(a),[x,h]=Bp(!!a);return al(PL,{children:[St(TL,{onClick:()=>{l(!i),d(b6[0]),u(!1),m("")},style:t,renderPosition:o,children:"Feedback"}),St(cL,{isOpen:i,style:t,renderPosition:o,children:s?al(CL,{isOpen:i,children:[St(X4,{width:"32",height:"32"}),"Submitting your feedback..."]}):St(PL,{children:St(b2,{onClose:()=>{},open:!0,closeComponent:St(mL,{onClick:()=>l(!1),children:St(vt,{width:"30",height:"30",fill:Di})}),actions:al("div",{style:{display:"flex",alignItems:"center"},children:[al(hL,{children:[St(RL,{checked:x,onChange:v=>{h(v.target.checked)}}),St(v6,{style:{color:"white",fontSize:"12px",height:"15px"},children:"We may email you for more information or updates"})]}),St(Ja,{type:"submit",disabled:!(p&&x),isOpen:!(p&&x),onClick:()=>{u(!0),p&&x&&e({label:f?.label||"",message:p}),setTimeout(()=>{l(!1),d(void 0),u(!1),m("")},2e3)},children:"Send"})]}),leftHeaderIcon:St(hx,{}),title:"Feedback",helpArea:St(ge,{placement:"top",title:V8e,arrow:!0,children:St(AL,{children:St(Y4,{width:"30",height:"30"})})}),helpText:"Help",content:al(SL,{children:[St(yL,{children:b6?.map(v=>al(bL,{style:r,type:"button",onClick:()=>{d(v)},isOpen:f?.label===v.label,children:[St(gL,{children:v.icon}),St(v6,{children:v.label})]},v.label))}),f?.isTextInput?St(xL,{children:St(vL,{value:p||"",onChange:v=>{m(v.target.value)},required:!0,placeholder:f.placeholder,rows:5,cols:30})}):St(OL,{children:f?.innerComponent})]})})})})]})},_L=U8e;import{styled as w2}from"@mui/material";import gf from"react";import{jsx as v2}from"react/jsx-runtime";function kL(e,t){if(!e||e.length!=2)throw Error("FlipCard requires exactly two child components");return e[t]}var W8e=w2("div")(({theme:e})=>({height:"100%",backgroundColor:"transparent",perspective:e.spacing(125)})),q8e=w2("div")(({theme:e})=>({padding:e.spacing(2),borderRadius:e.spacing(1),transformStyle:"preserve-3d",boxShadow:"0 4px 8px 0 rgba(0,0,0,0.2)",backgroundColor:e.palette.mode==="dark"?Ad:Ue,cursor:"pointer",transformOrigin:"50% 50% 10%"})),G8e=w2("div")({backfaceVisibility:"hidden"}),z8e=w2("div")({backfaceVisibility:"hidden",transform:"scale(-1, 1)",wordBreak:"break-word"});function E2({duration:e=500,onClick:t,onShow:r,children:o,disableFlip:a=!1,padding:n}){let[i,l]=gf.useState(!1),[s,u]=gf.useState(!1),f=gf.useRef(null),d=kL(o,0),p=kL(o,1);return gf.useEffect(()=>{f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{u(i)},e/6)},[i,e]),v2(W8e,{onClick:()=>{a||(l(m=>!m),t&&t(),r&&r())},children:v2(q8e,{style:{transform:i?"scale(-1,1)":void 0,transition:`transform ${e}ms`,padding:n},children:s?v2(z8e,{children:gf.isValidElement(p)?p:null}):v2(G8e,{children:gf.isValidElement(d)?d:null})})})}import{Box as j8e,Tooltip as IL,Typography as K8e}from"@mui/material";import $8e from"lodash";import{useState as Y8e}from"react";import{jsx as Hp,jsxs as Z8e}from"react/jsx-runtime";var R2=({id:e})=>{let[t,r]=Y8e(!1),o=te(),a=i=>{i.stopPropagation(),navigator.clipboard.writeText(e),r(!0),setTimeout(()=>{r(!1)},2e3)},n=$8e.truncate(e,{length:15});return Z8e(j8e,{sx:{display:"flex",alignItems:"center"},children:[Hp(IL,{title:e,placement:"top",children:Hp(K8e,{variant:"body2",style:{cursor:"pointer",textWrap:"nowrap",color:o.palette.text.primary},children:n})}),Hp(IL,{title:t?"Copied!":"Copy",placement:"top",children:Hp("div",{onClick:a,style:{padding:"0.25rem"},children:Hp(da,{width:16,height:16,fill:o.palette.action.active})})})]})};import ML from"react";function LL(){let{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}function jo(){let[e,t]=ML.useState(LL());return ML.useEffect(()=>{let r;function o(){r&&clearTimeout(r),r=window.setTimeout(()=>{t(LL())},500)}return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),r&&clearTimeout(r)}},[]),e}import bf,{useMemo as a6e,forwardRef as $p,useRef as zp,useCallback as I6,useEffect as jp,createElement as Gp,cloneElement as n6e,useLayoutEffect as i6e,memo as e8t,useState as t8t,Component as r8t,isValidElement as o8t,useContext as l6e}from"react";import{createPortal as n8t}from"react-dom";function DL(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=DL(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function Q8e(){for(var e,t,r=0,o="";r<arguments.length;)(e=arguments[r++])&&(t=DL(e))&&(o&&(o+=" "),o+=t);return o}var Vp=Q8e;var X8e={data:""},J8e=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||X8e;var e6e=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,t6e=/\/\*[^]*?\*\/| +/g,FL=/\n+/g,Cs=(e,t)=>{let r="",o="",a="";for(let n in e){let i=e[n];n[0]=="@"?n[1]=="i"?r=n+" "+i+";":o+=n[1]=="f"?Cs(i,n):n+"{"+Cs(i,n[1]=="k"?"":t)+"}":typeof i=="object"?o+=Cs(i,t?t.replace(/([^,])+/g,l=>n.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,s=>/&/.test(s)?s.replace(/&/g,l):l?l+" "+s:s)):n):i!=null&&(n=/^--/.test(n)?n:n.replace(/[A-Z]/g,"-$&").toLowerCase(),a+=Cs.p?Cs.p(n,i):n+":"+i+";")}return r+(t&&a?t+"{"+a+"}":a)+o},Wn={},NL=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+NL(e[r]);return t}return e},r6e=(e,t,r,o,a)=>{let n=NL(e),i=Wn[n]||(Wn[n]=(s=>{let u=0,f=11;for(;u<s.length;)f=101*f+s.charCodeAt(u++)>>>0;return"go"+f})(n));if(!Wn[i]){let s=n!==e?e:(u=>{let f,d,p=[{}];for(;f=e6e.exec(u.replace(t6e,""));)f[4]?p.shift():f[3]?(d=f[3].replace(FL," ").trim(),p.unshift(p[0][d]=p[0][d]||{})):p[0][f[1]]=f[2].replace(FL," ").trim();return p[0]})(e);Wn[i]=Cs(a?{["@keyframes "+i]:s}:s,r?"":"."+i)}let l=r&&Wn.g?Wn.g:null;return r&&(Wn.g=Wn[i]),((s,u,f,d)=>{d?u.data=u.data.replace(d,s):u.data.indexOf(s)===-1&&(u.data=f?s+u.data:u.data+s)})(Wn[i],t,o,l),i},o6e=(e,t,r)=>e.reduce((o,a,n)=>{let i=t[n];if(i&&i.call){let l=i(r),s=l&&l.props&&l.props.className||/^go/.test(l)&&l;i=s?"."+s:l&&typeof l=="object"?l.props?"":Cs(l,""):l===!1?"":l}return o+a+(i??"")},"");function O2(e){let t=this||{},r=e.call?e(t.p):e;return r6e(r.unshift?r.raw?o6e(r,[].slice.call(arguments,1),t.p):r.reduce((o,a)=>Object.assign(o,a&&a.call?a(t.p):a),{}):r,J8e(t.target),t.g,t.o,t.k)}var ZTt=O2.bind({g:1}),QTt=O2.bind({k:1});function BL(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s6e(e,t,r){return t&&BL(e.prototype,t),r&&BL(e,r),e}function nl(){return nl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},nl.apply(this,arguments)}function u6e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function M6(e,t){if(e==null)return{};var r={},o=Object.keys(e),a,n;for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var HL=function(){return""},f6e=bf.createContext({enqueueSnackbar:HL,closeSnackbar:HL}),ys={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"};var A2="unmounted",Tf="exited",Sf="entering",Up="entered",VL="exiting",L6=function(e){u6e(t,e);function t(o){var a;a=e.call(this,o)||this;var n=o.appear,i;return a.appearStatus=null,o.in?n?(i=Tf,a.appearStatus=Sf):i=Up:o.unmountOnExit||o.mountOnEnter?i=A2:i=Tf,a.state={status:i},a.nextCallback=null,a}t.getDerivedStateFromProps=function(a,n){var i=a.in;return i&&n.status===A2?{status:Tf}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var n=null;if(a!==this.props){var i=this.state.status;this.props.in?i!==Sf&&i!==Up&&(n=Sf):(i===Sf||i===Up)&&(n=VL)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,n=a,i=a;return a!=null&&typeof a!="number"&&typeof a!="string"&&(i=a.exit,n=a.enter),{exit:i,enter:n}},r.updateStatus=function(a,n){a===void 0&&(a=!1),n!==null?(this.cancelNextCallback(),n===Sf?this.performEnter(a):this.performExit()):this.props.unmountOnExit&&this.state.status===Tf&&this.setState({status:A2})},r.performEnter=function(a){var n=this,i=this.props.enter,l=a,s=this.getTimeouts();if(!a&&!i){this.safeSetState({status:Up},function(){n.props.onEntered&&n.props.onEntered(n.node,l)});return}this.props.onEnter&&this.props.onEnter(this.node,l),this.safeSetState({status:Sf},function(){n.props.onEntering&&n.props.onEntering(n.node,l),n.onTransitionEnd(s.enter,function(){n.safeSetState({status:Up},function(){n.props.onEntered&&n.props.onEntered(n.node,l)})})})},r.performExit=function(){var a=this,n=this.props.exit,i=this.getTimeouts();if(!n){this.safeSetState({status:Tf},function(){a.props.onExited&&a.props.onExited(a.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:VL},function(){a.props.onExiting&&a.props.onExiting(a.node),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:Tf},function(){a.props.onExited&&a.props.onExited(a.node)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,n){n=this.setNextCallback(n),this.setState(a,n)},r.setNextCallback=function(a){var n=this,i=!0;return this.nextCallback=function(){i&&(i=!1,n.nextCallback=null,a())},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(a,n){this.setNextCallback(n);var i=a==null&&!this.props.addEndListener;if(!this.node||i){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===A2)return null;var n=this.props,i=n.children,l=M6(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return i(a,l)},s6e(t,[{key:"node",get:function(){var a,n=(a=this.props.nodeRef)===null||a===void 0?void 0:a.current;if(!n)throw new Error("notistack - Custom snackbar is not refForwarding");return n}}]),t}(bf.Component);function Cf(){}L6.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Cf,onEntering:Cf,onEntered:Cf,onExit:Cf,onExiting:Cf,onExited:Cf};function UL(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function _6(e,t){return a6e(function(){return e==null&&t==null?null:function(r){UL(e,r),UL(t,r)}},[e,t])}function I2(e){var t=e.timeout,r=e.style,o=r===void 0?{}:r,a=e.mode;return{duration:typeof t=="object"?t[a]||0:t,easing:o.transitionTimingFunction,delay:o.transitionDelay}}var k6={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},KL=function(t){t.scrollTop=t.scrollTop},WL=function(t){return Math.round(t)+"ms"};function yf(e,t){e===void 0&&(e=["all"]);var r=t||{},o=r.duration,a=o===void 0?300:o,n=r.easing,i=n===void 0?k6.easeInOut:n,l=r.delay,s=l===void 0?0:l,u=Array.isArray(e)?e:[e];return u.map(function(f){var d=typeof a=="string"?a:WL(a),p=typeof s=="string"?s:WL(s);return f+" "+d+" "+i+" "+p}).join(",")}function d6e(e){return e&&e.ownerDocument||document}function $L(e){var t=d6e(e);return t.defaultView||window}function p6e(e,t){t===void 0&&(t=166);var r;function o(){for(var a=this,n=arguments.length,i=new Array(n),l=0;l<n;l++)i[l]=arguments[l];var s=function(){e.apply(a,i)};clearTimeout(r),r=setTimeout(s,t)}return o.clear=function(){clearTimeout(r)},o}function m6e(e,t){var r=t.getBoundingClientRect(),o=$L(t),a;if(t.fakeTransform)a=t.fakeTransform;else{var n=o.getComputedStyle(t);a=n.getPropertyValue("-webkit-transform")||n.getPropertyValue("transform")}var i=0,l=0;if(a&&a!=="none"&&typeof a=="string"){var s=a.split("(")[1].split(")")[0].split(",");i=parseInt(s[4],10),l=parseInt(s[5],10)}switch(e){case"left":return"translateX("+(o.innerWidth+i-r.left)+"px)";case"right":return"translateX(-"+(r.left+r.width-i)+"px)";case"up":return"translateY("+(o.innerHeight+l-r.top)+"px)";default:return"translateY(-"+(r.top+r.height-l)+"px)"}}function P2(e,t){if(t){var r=m6e(e,t);r&&(t.style.webkitTransform=r,t.style.transform=r)}}var c6e=$p(function(e,t){var r=e.children,o=e.direction,a=o===void 0?"down":o,n=e.in,i=e.style,l=e.timeout,s=l===void 0?0:l,u=e.onEnter,f=e.onEntered,d=e.onExit,p=e.onExited,m=M6(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),x=zp(null),h=_6(r.ref,x),g=_6(h,t),T=function(b,A){P2(a,b),KL(b),u&&u(b,A)},E=function(b){var A=i?.transitionTimingFunction||k6.easeOut,B=I2({timeout:s,mode:"enter",style:nl({},i,{transitionTimingFunction:A})});b.style.webkitTransition=yf("-webkit-transform",B),b.style.transition=yf("transform",B),b.style.webkitTransform="none",b.style.transform="none"},v=function(b){var A=i?.transitionTimingFunction||k6.sharp,B=I2({timeout:s,mode:"exit",style:nl({},i,{transitionTimingFunction:A})});b.style.webkitTransition=yf("-webkit-transform",B),b.style.transition=yf("transform",B),P2(a,b),d&&d(b)},I=function(b){b.style.webkitTransition="",b.style.transition="",p&&p(b)},k=I6(function(){x.current&&P2(a,x.current)},[a]);return jp(function(){if(!(n||a==="down"||a==="right")){var C=p6e(function(){x.current&&P2(a,x.current)}),b=$L(x.current);return b.addEventListener("resize",C),function(){C.clear(),b.removeEventListener("resize",C)}}},[a,n]),jp(function(){n||k()},[n,k]),Gp(L6,Object.assign({appear:!0,nodeRef:x,onEnter:T,onEntered:f,onEntering:E,onExit:v,onExited:I,in:n,timeout:s},m),function(C,b){return n6e(r,nl({ref:g,style:nl({visibility:C==="exited"&&!n?"hidden":void 0},i,{},r.props.style)},b))})});c6e.displayName="Slide";function M2(e){return Object.entries(e).reduce(function(t,r){var o,a=r[0],n=r[1];return nl({},t,(o={},o[a]=O2(n),o))},{})}var Kp={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},qL=M2({root:{height:0},entered:{height:"auto"}}),w6="0px",E6=175,x6e=$p(function(e,t){var r=e.children,o=e.in,a=e.onExited,n=zp(null),i=zp(null),l=_6(t,i),s=function(){return n.current?n.current.clientHeight:0},u=function(h){h.style.height=w6},f=function(h){var g=s(),T=I2({timeout:E6,mode:"enter"}),E=T.duration,v=T.easing;h.style.transitionDuration=typeof E=="string"?E:E+"ms",h.style.height=g+"px",h.style.transitionTimingFunction=v||""},d=function(h){h.style.height="auto"},p=function(h){h.style.height=s()+"px"},m=function(h){KL(h);var g=I2({timeout:E6,mode:"exit"}),T=g.duration,E=g.easing;h.style.transitionDuration=typeof T=="string"?T:T+"ms",h.style.height=w6,h.style.transitionTimingFunction=E||""};return Gp(L6,{in:o,unmountOnExit:!0,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:a,onExiting:m,nodeRef:i,timeout:E6},function(x,h){return Gp("div",Object.assign({ref:l,className:Vp(qL.root,x==="entered"&&qL.entered),style:nl({pointerEvents:"all",overflow:"hidden",minHeight:w6,transition:yf("height")},x==="entered"&&{overflow:"visible"},{},x==="exited"&&!o&&{visibility:"hidden"})},h),Gp("div",{ref:n,className:Kp.CollapseWrapper,style:{display:"flex",width:"100%"}},r))})});x6e.displayName="Collapse";var h6e=typeof window<"u"?i6e:jp;function GL(e){var t=zp(e);return h6e(function(){t.current=e}),I6(function(){return t.current.apply(void 0,arguments)},[])}var g6e=$p(function(e,t){var r=e.children,o=e.className,a=e.autoHideDuration,n=e.disableWindowBlurListener,i=n===void 0?!1:n,l=e.onClose,s=e.id,u=e.open,f=e.SnackbarProps,d=f===void 0?{}:f,p=zp(),m=GL(function(){l&&l.apply(void 0,arguments)}),x=GL(function(v){!l||v==null||(p.current&&clearTimeout(p.current),p.current=setTimeout(function(){m(null,"timeout",s)},v))});jp(function(){return u&&x(a),function(){p.current&&clearTimeout(p.current)}},[u,a,x]);var h=function(){p.current&&clearTimeout(p.current)},g=I6(function(){a!=null&&x(a*.5)},[a,x]),T=function(I){d.onMouseEnter&&d.onMouseEnter(I),h()},E=function(I){d.onMouseLeave&&d.onMouseLeave(I),g()};return jp(function(){if(!i&&u)return window.addEventListener("focus",g),window.addEventListener("blur",h),function(){window.removeEventListener("focus",g),window.removeEventListener("blur",h)}},[i,g,u]),Gp("div",Object.assign({ref:t},d,{className:Vp(Kp.Snackbar,o),onMouseEnter:T,onMouseLeave:E}),r)});g6e.displayName="Snackbar";var R6,T6e=M2({root:(R6={display:"flex",flexWrap:"wrap",flexGrow:1},R6[ys.upSm]={flexGrow:"initial",minWidth:"288px"},R6)}),YL=$p(function(e,t){var r=e.className,o=M6(e,["className"]);return bf.createElement("div",Object.assign({ref:t,className:Vp(T6e.root,r)},o))});YL.displayName="SnackbarContent";var Wp=M2({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:8*2.5+"px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),zL="notistack-snackbar",S6e=$p(function(e,t){var r=e.id,o=e.message,a=e.action,n=e.iconVariant,i=e.variant,l=e.hideIconVariant,s=e.style,u=e.className,f=n[i],d=a;return typeof d=="function"&&(d=d(r)),bf.createElement(YL,{ref:t,role:"alert","aria-describedby":zL,style:s,className:Vp(Kp.MuiContent,Kp.MuiContentVariant(i),Wp.root,Wp[i],u,!l&&f&&Wp.lessPadding)},bf.createElement("div",{id:zL,className:Wp.message},l?null:f,o),d&&bf.createElement("div",{className:Wp.action},d))});S6e.displayName="MaterialDesignContent";var qp,O6,_2,k2,A6,qn={view:{default:20,dense:4},snackbar:{default:6,dense:2}},jL="."+Kp.CollapseWrapper,P6=16,s8t=M2({root:(qp={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:yf(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},qp[jL]={padding:qn.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},qp.maxWidth="calc(100% - "+qn.view.default*2+"px)",qp[ys.downXs]={width:"100%",maxWidth:"calc(100% - "+P6*2+"px)"},qp),rootDense:(O6={},O6[jL]={padding:qn.snackbar.dense+"px 0px"},O6),top:{top:qn.view.default-qn.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:qn.view.default-qn.snackbar.default+"px",flexDirection:"column-reverse"},left:(_2={left:qn.view.default+"px"},_2[ys.upSm]={alignItems:"flex-start"},_2[ys.downXs]={left:P6+"px"},_2),right:(k2={right:qn.view.default+"px"},k2[ys.upSm]={alignItems:"flex-end"},k2[ys.downXs]={right:P6+"px"},k2),center:(A6={left:"50%",transform:"translateX(-50%)"},A6[ys.upSm]={alignItems:"center"},A6)});var u8t=process.env.NODE_ENV!=="production";var ZL=function(){return l6e(f6e)};import QL from"react";var C6e=()=>{let[e,t]=QL.useState(""),{enqueueSnackbar:r}=ZL();return QL.useEffect(()=>{e&&(r(e),t(""))},[e,r]),(a,n)=>{t(a),n&&r(a,n)}},XL=C6e;var Ko=(e,t)=>{let r={};return e.forEach(o=>{o[1]==="na"?r[o[0]]=!1:t>1140?r[o[0]]=!0:t>=915&&t<1140?["xs","s","m","l","xl"].includes(o[1])?r[o[0]]=!0:r[o[0]]=!1:t>=775&&t<915?["xs","s","m","l"].includes(o[1])?r[o[0]]=!0:r[o[0]]=!1:t>=690&&t<775?["xs","s","m"].includes(o[1])?r[o[0]]=!0:r[o[0]]=!1:t>=585&&t<690?["xs","s"].includes(o[1])?r[o[0]]=!0:r[o[0]]=!1:t<585&&(o[1]==="xs"?r[o[0]]=!0:r[o[0]]=!1)}),r};import{styled as Gn}from"@mui/material/styles";var JL=Gn("div")({width:"100%",maxWidth:"28rem",minWidth:"10rem",height:"16rem",margin:"auto",borderRadius:"1rem"}),eD=Gn("div")(({theme:e})=>({cursor:"pointer",transition:"all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s","&:hover":{boxShadow:`${e.palette.background.brand?.default} 0px 0px 19px 6px`},backgroundColor:e.palette.mode==="light"?Ue:lr})),tD=Gn("a")({color:"black",textDecoration:"none"}),D6=Gn("div")(({theme:e})=>({borderTop:`5px solid ${e.palette.background.brand?.default}`,borderRadius:"0.25rem",minHeight:"16rem",display:"flex",flexDirection:"column",justifyContent:"space-between",boxShadow:"0px 0.75rem 1rem 0.25rem rgba(0, 0, 0, 0.12)",position:"relative",transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"})),rD=Gn("div")(({theme:e})=>({background:e.palette.mode==="light"?u4:Yl,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"})),F6=Gn("div")(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1rem","& span":{border:`1px solid ${e.palette.primary.dark}`,color:e.palette.text.primary,borderRadius:"0.8rem",padding:"0.05rem 0.75rem",fontSize:"1rem",transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"},"& h3":{color:e.palette.text.primary,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"}})),N6=Gn("div")(({theme:e})=>({padding:"0 1rem",".summary":{color:e.palette.grey[700],transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"},p:{fontSize:"1rem"}})),oD=Gn("div")(({theme:e})=>({margin:"0 1rem",display:"flex",justifyContent:"space-between",gap:"0.4rem",p:{fontSize:"1rem",color:e.palette.text.primary,fontWeight:600,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"}})),B6=Gn("div")({textAlign:"center",position:"absolute",bottom:"0.1rem",right:"0.75rem",opacity:.2,img:{height:"8.5rem",width:"8.5rem"}});import{Fragment as v6e,jsx as Rt,jsxs as vf}from"react/jsx-runtime";var y6e=({path:e,children:t})=>e?Rt(tD,{href:e,children:t}):Rt(v6e,{children:t}),b6e=({tutorial:e,path:t,courseCount:r,courseType:o})=>Rt(JL,{children:e.frontmatter.disabled==="yes"?Rt(rD,{children:Rt(D6,{style:{borderTop:`5px solid ${e.frontmatter.themeColor}`},children:vf("div",{children:[vf(F6,{children:[Rt("h3",{children:e.frontmatter.title?e.frontmatter.title:e.frontmatter.courseTitle}),Rt("div",{style:{whiteSpace:"nowrap"},children:Rt("span",{children:"Coming Soon"})})]}),Rt(N6,{children:Rt("p",{className:"summary",children:e.frontmatter.description})}),Rt(B6,{children:Rt("img",{src:e.frontmatter.cardImage,alt:e.frontmatter.title})})]})})}):Rt(y6e,{path:t,children:Rt(eD,{children:Rt(D6,{style:{borderTop:`5px solid ${e.frontmatter.themeColor}`},children:vf("div",{children:[vf(F6,{style:{flexDirection:"column"},children:[Rt(G,{variant:"body1",color:"textSecondary",children:e.frontmatter.type}),Rt("h3",{style:{margin:"0.2rem 0.1rem"},children:e.frontmatter.title?e.frontmatter.title:e.frontmatter.courseTitle}),e.frontmatter.status?Rt("p",{children:Rt("span",{children:"New"})}):null]}),Rt(N6,{children:Rt("p",{className:"summary",children:e.frontmatter.description})}),vf(oD,{className:"card-subdata",children:[vf("p",{children:[r," ",o,r>1?"s":""]}),Rt("p",{children:e?.frontmatter?.level?e.frontmatter.level.charAt(0).toUpperCase()+e.frontmatter.level.slice(1):""})]}),Rt(B6,{children:Rt("img",{src:e.frontmatter.cardImage})})]})})})})}),aD=b6e;import{forwardRef as w6e,useImperativeHandle as E6e,useRef as R6e,useState as O6e}from"react";import{styled as nD}from"@mui/material";var iD=nD(Vl)(()=>({minWidth:400,overflowWrap:"anywhere",textAlign:"center",padding:"5px"})),lD=nD(K)(()=>({display:"flex",justifyContent:"end",width:"100%",gap:"10px"}));import{jsx as il,jsxs as H6}from"react/jsx-runtime";var L2={WARNING:"warning",DANGER:"error",SUCCESS:"success",INFO:"info"},sD=w6e(({variant:e},t)=>{let[r,o]=O6e({isOpen:!1,title:"",subtitle:"",primaryOption:"",showInfoIcon:"",variant:e,headerIcon:void 0,isChecked:!1,showCheckbox:!1}),a=R6e({resolve:()=>{},reject:()=>{}}),n=te(),i=E=>new Promise((v,I)=>{a.current={resolve:v,reject:I},o({...E,isOpen:!0,showInfoIcon:E.showInfoIcon||"",showCheckbox:!!E.showCheckbox})}),l=()=>{o(E=>({...E,isOpen:!1}))},s=()=>{o(E=>({...E,isChecked:!E.isChecked}))},u=()=>!!r.isChecked;E6e(t,()=>({show:i,getCheckboxState:u}));let{isOpen:f,primaryOption:d,title:p,subtitle:m,showInfoIcon:x,headerIcon:h,showCheckbox:g}=r,{resolve:T}=a.current;return H6(Er,{open:f,closeModal:l,title:p,id:"searchClick",headerIcon:h,reactNode:void 0,"data-testid":"prompt-modal",children:[m&&H6(wr,{"data-testid":"prompt-body",children:[il(iD,{id:"alert-dialog-description",variant:"body1",component:"div","data-testid":"prompt-subtitle",children:il(G,{variant:"body1",component:"div",style:{color:n.palette.text.primary},children:m})}),g&&il(Wl,{"data-testid":"prompt-checkbox-label",control:il(Vr,{checked:u(),onChange:s,color:"primary","data-testid":"prompt-checkbox"}),label:il("span",{style:{fontSize:"1rem"},children:"Do not show again"})})]}),il(Kr,{variant:"filled",helpText:x,"data-testid":"prompt-footer",children:H6(lD,{"data-testid":"prompt-actions",children:[il(en,{"data-testid":"prompt-secondary-button",onClick:()=>{l(),T("CANCEL")},children:"Cancel"}),il(Ja,{"data-testid":"prompt-primary-button",onClick:()=>{l(),T(d)},style:r.variant&&{backgroundColor:n.palette.background[r.variant]?.default,textTransform:"capitalize"},type:"submit",children:d})]})})]})});sD.displayName="PromptComponent";var V6=sD;var wf=V6;import{outlinedInputClasses as uD}from"@mui/material/OutlinedInput";import{ThemeProvider as A6e,createTheme as P6e}from"@mui/material/styles";import _6e from"lodash/debounce";import fD,{useCallback as k6e}from"react";import{jsx as bs,jsxs as L6e}from"react/jsx-runtime";var I6e=e=>P6e({typography:{fontFamily:e.typography.fontFamily},components:{MuiTextField:{styleOverrides:{root:{"--TextField-brandBorderColor":e.palette.border.strong,"--TextField-brandBorderHoverColor":e.palette.background.graphics?.default,"--TextField-brandBorderFocusedColor":e.palette.background.graphics?.default,"& label.Mui-focused":{color:"var(--TextField-brandBorderFocusedColor)"}}}},MuiOutlinedInput:{styleOverrides:{notchedOutline:{borderColor:"var(--TextField-brandBorderColor)"},root:{[`&:hover .${uD.notchedOutline}`]:{borderColor:"var(--TextField-brandBorderHoverColor)"},[`&.Mui-focused .${uD.notchedOutline}`]:{borderColor:"var(--TextField-brandBorderFocusedColor)"}}}},MuiInput:{styleOverrides:{root:{color:e.palette.text.default,"&::before":{borderBottom:"2px solid var(--TextField-brandBorderColor)"},"&:hover:not(.Mui-disabled, .Mui-error):before":{borderBottom:"2px solid var(--TextField-brandBorderHoverColor)"},"&.Mui-focused:after":{borderBottom:"2px solid var(--TextField-brandBorderFocusedColor)"}}}},MuiButton:{styleOverrides:{root:{lineHeight:"auto"}}}}});function M6e({onSearch:e,placeholder:t,onClear:r,expanded:o,setExpanded:a,"data-testid":n="search-bar-wrapper"}){let[i,l]=fD.useState(""),s=fD.useRef(null),u=te(),f=k6e(_6e(x=>{e(x)},300),[e]),d=x=>{let h=x.target.value;l(h),f(h)},p=x=>{x.stopPropagation(),f(""),l(""),a(!1),r&&r()},m=x=>{x.stopPropagation(),o?(f(""),l(""),a(!1)):(a(!0),setTimeout(()=>{s.current&&s.current.focus()},300))};return bs(Tn,{onClickAway:x=>{x.stopPropagation();let h=x.target?.closest("#ref");i===""&&h&&p(x)},children:L6e("div",{style:{display:"flex"},"data-testid":n,children:[bs(A6e,{theme:I6e(u),children:bs(Wr,{variant:"standard",value:i,onChange:d,inputRef:s,placeholder:t,"data-testid":"searchbar-input",style:{width:o?"150px":"0",opacity:o?1:0,transition:"width 0.3s ease, opacity 0.3s ease"}})}),o?bs(Mt,{title:"Close",onClick:p,icon:bs(vt,{fill:u.palette.icon.default,"data-testid":"searchbar-clear-button"}),arrow:!0}):bs(Mt,{title:"Search",onClick:m,icon:bs(Zd,{fill:u.palette.icon.default,"data-testid":"searchbar-search-button"}),arrow:!0})]})})}var zn=M6e;import{Grid2 as W6e,TableCell as q6e}from"@mui/material";import{useRef as B6e,useState as Rf}from"react";var D6e="N/A",dD=e=>e&&e.deleted_at&&e.deleted_at.Valid===!0?Ts(e.deleted_at.Time):D6e;import{jsx as ll}from"react/jsx-runtime";var pD=D("div")({display:"flex",gap:"1rem"}),sl=D("div")({display:"flex",justifyContent:"space-between",width:"100%",alignItems:"center"}),D2=D("div")({display:"flex",alignItems:"center",marginRight:"1rem"}),U6=D("div")({boxSizing:"border-box",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),W6=D("div")({position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box",display:"block",width:"100%"}),mD=D("span")(()=>({"& svg":{cursor:"pointer",width:"2rem",height:"2rem"}})),l6t=D("span")(()=>({"& svg":{width:"2rem",height:"2rem"}})),cD=D("span")(({theme:e})=>({"& svg":{color:"#3C494F","&:hover":{color:e.palette.error.error}}})),F2=D("span")(()=>({color:"#455a64",opacity:"0.5","& svg":{cursor:"not-allowed"}})),xD=D("div")(()=>({display:"flex",justifyContent:"space-between",paddingRight:"26px"})),N2=D("div")(()=>({color:"#455a64",display:"flex",cursor:"not-allowed","& svg":{cursor:"pointer"}})),hD=D(Vr)({padding:0,marginRight:"0.5rem",height:"28px","& .MuiSvgIcon-root":{borderColor:"white"},color:"white","&:hover":{color:"white",cursor:"pointer"},"&.Mui-checked":{color:"white"}}),q6=D(G)({fontSize:"1.25rem",fontWeight:800,"&:hover":{cursor:"default"}}),s6t=D(G)({fontSize:"0.9rem",display:"flex",alignItems:"end",padding:"0 5px","&:hover":{cursor:"default"}}),u6t=D("button")({background:"transparent",border:"none","&:hover":{cursor:"default"}}),G6=D(G)({fontStyle:"italic",fontSize:"12px","&:hover":{cursor:"default"}}),z6=D(G)({fontSize:"0.9rem",textAlign:"left",fontStyle:"italic"}),gD=D(z6)({height:"fit-content",fontStyle:"normal","&:hover":{cursor:"default"}}),F6e=D(K)(({theme:e})=>({background:e.palette.background.brand?.default,padding:"10px 10px 1px 10px",borderRadius:"4px",height:"100%",display:"flex",width:"100%"})),Yp=D(F6e)({display:"flex",width:"100%",gap:"10px","@media (min-width : 600px)":{flexDirection:"column",gap:"0"}}),j6=D(Oe)(({theme:e})=>({width:"100%",borderRadius:"4px",background:e.palette.background.brand?.default,boxShadow:"0px 4px 4px 0px rgba(0, 0, 0, 0.25)",display:"flex",flexDirection:"column",marginBottom:"10px",color:e.palette.text.default,"&:hover":{background:e.palette.text.default},padding:"15px 10px"})),K6=D("p")(({theme:e,textColor:t})=>({margin:"0",fontSize:"14px",fontWeight:"400",display:"flex",color:t||e.palette.text.constant?.white})),$6=D("p")(({theme:e,textColor:t})=>({margin:"0",fontSize:"60px",fontWeight:"500",lineHeight:1,marginBottom:"5px",color:t||e.palette.text.constant?.white})),f6t=D(Oe)(({theme:e})=>({width:"100%",borderRadius:"4px",background:e.palette.text.default,boxShadow:"0px 4px 4px 0px rgba(0, 0, 0, 0.25)",display:"flex",flexDirection:"column",marginBottom:"10px",color:`${Q[40]}30 !important`,"&:hover":{background:e.palette.text.default},padding:"15px 10px"})),d6t=D("div")(({disabled:e=!1})=>({cursor:e?"not-allowed":"pointer",opacity:e?"0.5":"1",display:"flex","& svg":{cursor:e?"not-allowed":"pointer"}})),TD=D(xe)(({theme:e})=>({borderBottom:`1px solid ${e.palette.divider}`,display:"flex",flexDirection:"row",padding:"5px 0"})),Y6=({onClick:e,bulk:t,disabled:r,style:o,key:a,title:n="Delete"})=>{let i=te();return ll(ge,{title:n,arrow:!0,children:ll("div",{children:ll($e,{sx:{"&:hover":{"& svg":{fill:r?i.palette.icon.disabled:i.palette.background.error?.hover}},...o},disableRipple:!0,disabled:r,onClick:e,children:ll(oo,{fill:r?i.palette.icon.disabled:i.palette.icon.default,width:t?"28":"24",height:t?"28":"24",style:o})})})},a)},jn=({onClick:e,disabled:t,bulk:r,style:o,title:a="Edit"})=>{let n=te();return ll(ge,{title:a,arrow:!0,children:ll("div",{children:ll($e,{onClick:e,sx:{"&:hover":{"& svg":{fill:t?n.palette.icon.disabled:n.palette.background.brand?.default}},...o},disableRipple:!0,disabled:t,children:ll(Bo,{fill:t?n.palette.icon.disabled:n.palette.icon.default,width:r?"28":"24",height:r?"28":"24",style:o})})})})},SD=D(xe)({display:"flex",flexDirection:"row"}),p6t=D(xe)({display:"flex",alignItems:"center",marginTop:1}),Zp=D(xe)({width:"100%"}),CD=D(Tr)(({theme:e})=>({width:"100%",display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper,padding:e.spacing(2.5),cursor:"pointer"})),yD=D(CD)(({theme:e})=>({minHeight:e.spacing(50),background:"linear-gradient(180deg, #007366 0%, #000 100%)"})),bD=D(CD)(({theme:e})=>({minHeight:e.spacing(50),backgroundColor:e.palette.background.paper,boxShadow:"none"})),vD=D(xe)({display:"flex",flexDirection:"row",justifyContent:"space-between"}),wD=D(xe)({display:"flex",alignItems:"flex-start"}),ED=D(xe)({display:"flex",alignItems:"center",justifyContent:"flex-end"}),RD=D(G)(({theme:e})=>({fontSize:"1.25rem",fontWeight:600,padding:"0.5rem 0",color:e.palette.background.constant?.white})),OD=D(xe)({display:"flex",flexDirection:"column",maxHeight:"14.5rem",overflowY:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},"-ms-overflow-style":"none"}),AD=D(xe)(({theme:e})=>({display:"flex",flexDirection:"row",position:"absolute",bottom:"20px",width:"100%",color:`${e.palette.background.constant?.white}99`,justifyContent:"space-between",paddingRight:"40px"})),Z6=D(xe)({textAlign:"left"});import{jsx as Qp,jsxs as PD}from"react/jsx-runtime";var N6e=({userId:e,userName:t,userEmail:r,profileUrl:o})=>{let a=te(),n=()=>{window.open(`${Fo}/user/${e}`)};return PD(xe,{container:!0,alignItems:"center",children:[Qp(xe,{children:Qp(K,{sx:{color:a.palette.text.default,mr:2,cursor:"pointer"},children:Qp(Nt,{onClick:n,alt:t,src:o,children:o?"":Qp(vn,{})})})}),PD(xe,{size:"grow",children:[t,Qp(G,{variant:"body2",color:a.palette.text.disabled,children:r})]})]})},Ef=N6e;import{Fragment as U6e,jsx as ft,jsxs as vs}from"react/jsx-runtime";var H6e=({tableMeta:e,handleRemoveFromTeam:t,handleEditUser:r,isRemoveFromTeamAllowed:o,isEditUserAllowed:a,theme:n})=>vs(N2,{children:[a?ft(Mt,{id:`edit_user-${e.rowIndex}`,onClick:r(e.rowData),title:"Edit user",iconType:"edit",children:ft(Bo,{fill:n?.palette.text.primary})}):ft(Bo,{style:{marginRight:".5rem"},fill:Cr,height:"30",width:"30"}),o?ft(Mt,{id:`delete_user-${e.rowIndex}`,onClick:t(e.rowData),title:"Remove user membership from team",iconType:"delete",children:ft(Zl,{fill:n?.palette.text.primary})}):ft(Zl,{fill:Cr,secondaryFill:Cr})]}),V6e=({teamID:e,useGetUsersForOrgQuery:t,org_id:r,useRemoveUserFromTeamMutation:o,useNotificationHandlers:a,isRemoveFromTeamAllowed:n,isEditUserAllowed:i,handleEditUser:l,theme:s})=>{let[u,f]=Rf(0),[d,p]=Rf(10),[m,x]=Rf("last_login_time desc"),[h,g]=Rf(""),T=[],{handleError:E,handleSuccess:v,handleInfo:I}=a(),k=B6e(null),{width:C}=jo(),{data:b}=t({page:u,pagesize:d,search:h,order:m,teamId:e,orgId:r}),{data:A}=t({page:0,pagesize:d,search:h,order:m,orgId:r}),[B]=o(),P=b?.data||[],X=A?.data||[],Z=P.map(le=>{let se=X.find(De=>De.user_id===le.user_id),Le=le.role_names||[],Ge=se?.organization_with_user_roles?.role_names||[];return{...le,role_names:[...Le,...Ge]}}),N=b?.total_count||0,W=le=>async()=>{let se=le[0];await k.current?.show({title:"Remove User From Team ?",subtitle:M(le[3],le[2]),primaryOption:"Proceed",variant:L2.DANGER})==="Proceed"&&B({orgId:r,teamId:e,userId:se}).unwrap().then(()=>{v(`${le[4]?le[4]:""} ${le[5]?le[5]:""} removed from team`)}).catch(Ge=>{let De=Ge.response?.data?.message||"Failed to remove user from team";Ge.response.status===404?I(De):E(De)})},H=(le,se,Le)=>{let Ge=Le.findIndex(De=>De.name===se);return le[Ge]},M=(le,se)=>vs(U6e,{children:[ft("p",{children:"Are you sure you want to remove this user? (This action is irreversible)"}),vs("p",{children:["User:"," ",ft("i",{children:ft("b",{children:le})})]}),vs("p",{children:["Email:"," ",ft("i",{children:ft("b",{children:se})})]})]}),L,F={search:!1,viewColumns:!1,filter:!1,rowsPerPageOptions:[10,20,25],responsive:"standard",selectableRows:"none",count:N,rowsPerPage:d,page:u,print:!1,download:!1,elevation:0,serverSide:!0,sortOrder:{name:m.split(" ")[0],direction:m.split(" ")[1]},onTableChange:(le,se)=>{let Le=se.announceText?se.announceText.split(" : "):[],Ge="";switch(se.activeColumn&&(Ge=`${y[se.activeColumn].name} desc`),le){case"changePage":f(se.page);break;case"changeRowsPerPage":p(se.rowsPerPage);break;case"search":L&&clearTimeout(L),L=setTimeout(()=>{h!==se.searchText&&g(se.searchText)},500);break;case"sort":Le.length==2&&(Le[1]==="ascending"?Ge=`${y[se.activeColumn].name} asc`:Ge=`${y[se.activeColumn].name} desc`),Ge!==m&&x(Ge);break}}},q=[["user_id","na"],["avatar_url","xs"],["email","na"],["username","na"],["first_name","na"],["last_name","na"],["role_names","xs"],["status","na"],["joined_at","l"],["last_login_time","l"],["deleted_at","na"]],y=[{name:"user_id",label:"User ID",options:{filter:!1,sort:!1,searchable:!1}},{name:"avatar_url",label:"Team Member",options:{filter:!1,sort:!1,searchable:!1,customBodyRender:(le,se)=>ft(K,{sx:{"& > img":{mr:2,flexShrink:0}},children:ft(Ef,{userId:H(se.rowData,"user_id",y),userName:`${se.rowData[4]} ${se.rowData[5]}`,userEmail:se.rowData[2],profileUrl:le})})}},{name:"email",label:"Email",options:{filter:!1,sort:!0,searchable:!0}},{name:"username",label:"Username",options:{filter:!1,sort:!0,searchable:!0,customBodyRender:(le,se)=>vs("div",{style:{display:"flex"},children:[le,le?.includes("@")?ft(Kt,{title:`Search "${se.rowData[3]} ${se.rowData[4]}" on Google`,children:ft("a",{href:`https://www.google.com/search?q=${se.rowData[3]}+${se.rowData[4]}`,style:{color:"inherit"},target:"_blank",rel:"noreferrer",children:ft("div",{children:ft(F4,{width:20,height:20})})})}):ft(Kt,{title:`Lookup "${le}" on GitHub`,children:ft("a",{href:`https://www.github.com/${le}`,style:{color:"inherit"},target:"_blank",rel:"noreferrer",children:ft("div",{children:ft(Hu,{width:22,height:22})})})})]})}},{name:"first_name",label:"First",options:{filter:!1,sort:!0,searchable:!0}},{name:"last_name",label:"Last",options:{filter:!1,sort:!0,searchable:!0}},{name:"role_names",label:"Roles",options:{filter:!0,sort:!1,searchable:!1,filterOptions:{names:T.concat(T?.map(le=>`!${le}`))},customBodyRender:le=>ft("div",{children:le?.join(", ")})}},{name:"status",label:"Status",options:{filter:!0,sort:!0,searchable:!1}},{name:"joined_at",label:"Joined At",options:{filter:!1,sort:!0,searchable:!1,sortDescFirst:!0}},{name:"last_login_time",label:"Last Active At",options:{filter:!1,sort:!0,searchable:!1,sortDescFirst:!0}},{name:"deleted_at",label:"Deleted At",options:{filter:!0,sort:!0,searchable:!1,sortDescFirst:!0,filterOptions:{names:["Deleted","Not Deleted"],logic:(le,se)=>le!="NA"&&se.indexOf("Deleted")>=0?!0:le=="NA"&&se.indexOf("Not Deleted")>=0,fullWidth:!0},customBodyRender:(le,se)=>{let Le=Z[se.rowIndex];return dD(Le)}}},{name:"actions",label:"Actions",options:{filter:!1,sort:!1,searchable:!1,customBodyRender:(le,se)=>H(se.rowData,"deleted_at",y).Valid!==!1?vs(F2,{children:[ft(Bo,{style:{marginRight:".5rem"},fill:Cr,height:"30",width:"30"}),ft(Zl,{fill:Cr,secondaryFill:Cr,height:30,width:30})]}):ft(H6e,{tableMeta:se,handleRemoveFromTeam:W,handleEditUser:l,isRemoveFromTeamAllowed:n,isEditUserAllowed:i,theme:s})}}],[ae,ie]=Rf(y),[R]=Rf(()=>{let le=Ko(q,C),se={};return y.forEach(Le=>{se[Le.name]=le[Le.name]}),se});return vs(y4,{initialMode:s?.palette.mode,children:[ft("div",{style:{margin:"auto",width:"100%"},children:ft(Eo,{columns:y,data:Z,options:F,colViews:q,tableCols:ae,updateCols:ie,columnVisibility:R})}),ft(wf,{ref:k})]})},B2=V6e;import{jsx as Xp}from"react/jsx-runtime";var G6e=D(W6e)(({theme:e})=>({display:"grid",margin:"auto",paddingLeft:"0.5rem",borderRadius:"0.25rem",width:"inherit",gap:e.spacing(1)})),z6e=({teams:e,tableOptions:t,columnVisibility:r,colViews:o,tableCols:a,columns:n,updateCols:i,isRemoveFromTeamAllowed:l,isEditUserAllowed:s,handleEditUser:u,org_id:f,useGetUsersForOrgQuery:d,useNotificationHandlers:p,useRemoveUserFromTeamMutation:m})=>{let x=te();return Xp(jr,{children:Xp(Eo,{columns:n,data:e,options:{...t,renderExpandableRow:(h,g)=>{let T=e[g.dataIndex].id;return Xp(q6e,{colSpan:6,sx:{paddingInline:"4rem",backgroundColor:`${x.palette.background.secondary} !important`},children:Xp(G6e,{container:!0,size:12,children:Xp(B2,{teamID:T,isRemoveFromTeamAllowed:l,isEditUserAllowed:s,handleEditUser:u,org_id:f,useGetUsersForOrgQuery:d,useNotificationHandlers:p,useRemoveUserFromTeamMutation:m,theme:x})})})}},colViews:o,tableCols:a,updateCols:i,columnVisibility:r})})},H2=z6e;import{useState as _D}from"react";import{jsx as Q6}from"react/jsx-runtime";function j6e({value:e,maxLength:t,...r}){return e.length>t?Q6(Kt,{title:e,arrow:!0,placement:"top",children:Q6("div",{style:{maxWidth:"15rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},...r,children:`${e.slice(0,t)}...`})}):Q6("div",{style:{maxWidth:"15rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},...r,children:e})}var $o=j6e;import{Fragment as $6e,jsx as qt,jsxs as X6}from"react/jsx-runtime";function K6e({selected:e,teams:t,deleteTeamsModalHandler:r}){let o={team_ids:[],team_names:[]};return e?.data.forEach(a=>{let n=a.index;o.team_ids.push(t[n]?.team_id),o.team_names.push(t[n]?.team_name)}),qt(mD,{children:qt(cD,{children:qt(ge,{title:"Delete Teams",children:qt(oo,{height:28,width:28,fill:Cr,onClick:()=>{r(o)}})},"delete_teams")})})}function Jp({teams:e,count:t,page:r,pageSize:o,setPage:a,setPageSize:n,sortOrder:i,setSortOrder:l,bulkSelect:s,setBulkSelect:u,handleTeamView:f,handleDeleteTeam:d,handleRemoveTeamFromWorkspace:p,handleleaveTeam:m,teamId:x,workspace:h=!1,isEditTeamAllowed:g,isLeaveTeamAllowed:T,isRemoveTeamFromWorkspaceAllowed:E,isDeleteTeamAllowed:v,setSearch:I}){let{width:k}=jo(),C=te(),b=[["id","na"],["name","xs"],["description","m"],["owner","l"],["created_at","na"],["updated_at","xl"],["deleted_at","na"],["actions","xs"]],A=[{name:"id",label:"ID",options:{filter:!1,sort:!1,searchable:!1,customBodyRender:H=>qt(R2,{id:H})}},{name:"name",label:"Name",options:{filter:!1,sort:!0,searchable:!0}},{name:"description",label:"Description",options:{filter:!1,sort:!0,searchable:!1,customBodyRender:H=>qt($o,{value:H??"",maxLength:30})}},{name:"owner",label:"Owner",options:{filter:!1,sort:!0,searchable:!0}},{name:"created_at",label:"Created At",options:{filter:!1,sort:!0,searchable:!1,sortDescFirst:!0}},{name:"updated_at",label:"Updated At",options:{filter:!1,sort:!0,searchable:!1,sortDescFirst:!0}},{name:"deleted_at",label:"Deleted At",options:{filter:!0,sort:!0,searchable:!1,sortDescFirst:!0,customBodyRender:H=>JSON.stringify(H),filterOptions:{names:["Deleted","Not Deleted"],logic:(H,M)=>H!="NA"&&M.indexOf("Deleted")>=0?!0:H=="NA"&&M.indexOf("Not Deleted")>=0,fullWidth:!0}}},{name:"actions",label:"Actions",options:{filter:!1,sort:!1,searchable:!1,customBodyRender:(H,M)=>s||M.rowData[4].Valid?X6(F2,{children:[qt(Bo,{style:{marginRight:".5rem"}}),qt(oo,{height:28,width:28,fill:Cr})]}):X6(N2,{children:[!h&&X6($6e,{children:[qt(uo,{disabled:!g,children:qt(Mt,{id:`edit_team-${M.rowIndex}`,title:"Edit Team",onClick:L=>{g&&f(L,M.rowData)},iconType:"edit",children:qt(Bo,{style:{height:28.8,width:28.8},fill:Cr})})}),qt(uo,{disabled:!T,children:qt(Mt,{id:`leave_team-${M.rowIndex}`,title:"Leave Team",onClick:L=>T&&m(L,M.rowData),iconType:"delete",children:qt(Zl,{fill:Cr,secondaryFill:Cr})})})]}),h?qt(uo,{disabled:!E,children:qt(Mt,{id:`remove_team-${M.rowIndex}`,title:"Move Team",onClick:()=>{E&&p&&p(M.rowData[0])},iconType:"delete",children:qt(oo,{height:28,width:28,fill:C.palette.icon.default})})}):qt(uo,{disabled:!v,children:qt(Mt,{id:`delete_team-${M.rowIndex}`,title:"Delete Team",onClick:L=>{v&&d(L,M.rowData)},iconType:"delete",children:qt(oo,{height:28,width:28,fill:Cr})})})]})}}],B=e?.findIndex(H=>H.id===x),P={filter:!1,selectableRows:"none",filterType:"dropdown",expandableRows:!0,expandableRowsHeader:!1,expandableRowsOnClick:!0,responsive:"standard",count:t,rowsPerPage:o,page:r,print:!1,download:!1,elevation:0,serverSide:!0,viewColumns:!1,search:!1,rowsExpanded:[B],customToolbarSelect:H=>qt(xD,{children:qt(K6e,{selected:H,teams:e,deleteTeamsModalHandler:()=>{}})}),textLabels:{selectedRows:{text:"teams(s) selected"}},onTableChange:(H,M)=>{let L=M.announceText?M.announceText.split(" : "):[],F="";switch(M.activeColumn&&(F=`${A[M.activeColumn].name} desc`),H){case"changePage":a(M.page);break;case"changeRowsPerPage":n(M.rowsPerPage);break;case"search":I(M.searchText!==null?M.searchText:"");break;case"sort":L.length==2&&(L[1]==="ascending"?F=`${A[M.activeColumn].name} asc`:F=`${A[M.activeColumn].name} desc`),F!==i&&l(F);break;case"rowSelectionChange":M.selectedRows.data.length?s||u(!0):u(!1);break;default:M.selectedRows.data.length==0&&s&&u(!1)}},isRowSelectable:H=>e[H].deleted_at.Valid!==!0,setRowProps:(H,M,L)=>(L&&L.selectedRows?L.selectedRows.data:[]).includes(M)?{style:{backgroundColor:C.palette.background.hover}}:H[6].Valid?{style:{backgroundColor:C.palette.icon.disabled}}:{style:{backgroundColor:C.palette.background.constant?.table}}},[X,Z]=_D(A),[N,W]=_D(()=>{let H=Ko(b,k),M={};return A.forEach(L=>{M[L.name]=H[L.name]}),M});return{columns:A,tableOptions:P,tableCols:X,updateCols:Z,columnVisibility:N,setColumnVisibility:W,colViews:b}}import va from"react";import{jsx as Ot,jsxs as Z6e}from"react/jsx-runtime";var Y6e=({width:e=V,height:t=U,primaryFill:r="#00B39F",secondaryFill:o="#00D3A9",...a})=>Z6e("svg",{width:e,height:t,viewBox:"0 0 135 135",...a,xmlns:"http://www.w3.org/2000/svg",children:[Ot("path",{d:"M69.5 31.82V64.07L97.45 47.89L69.5 31.82Z",fill:o}),Ot("path",{d:"M69.5 70.81V103.22L97.7 87.09L69.5 70.81Z",fill:o}),Ot("path",{d:"M65.47 63.85V32.09L37.87 47.92L65.47 63.85Z",fill:r}),Ot("path",{d:"M10.1 103.1C15.5182 111.811 22.842 119.179 31.52 124.65V90.71L10.1 103.1Z",fill:r}),Ot("path",{d:"M65.47 103.06V71.05L37.8 87.07L65.47 103.06Z",fill:r}),Ot("path",{d:"M35.54 122.63L63.56 106.61L35.54 90.41V122.63Z",fill:o}),Ot("path",{d:"M99.62 122.8V90.63L71.64 106.63L99.62 122.8Z",fill:r}),Ot("path",{d:"M127.03 99.37C131.817 90.4433 134.524 80.5502 134.95 70.43L105.78 87.11L127.03 99.37Z",fill:r}),Ot("path",{d:"M103.64 83.69L131.76 67.61L103.64 51.45V83.69Z",fill:o}),Ot("path",{d:"M99.62 44.5V12.52L71.77 28.49L99.62 44.5Z",fill:r}),Ot("path",{d:"M99.62 83.55V51.28L71.7 67.44L99.62 83.55Z",fill:r}),Ot("path",{d:"M35.54 51.22V83.73L63.66 67.45L35.54 51.22Z",fill:o}),Ot("path",{d:"M65.47 0C55.1388 0.298791 45.016 2.97835 35.89 7.83L65.52 24.83L65.47 0Z",fill:r}),Ot("path",{d:"M35.54 12.3V44.62L63.69 28.48L35.54 12.3Z",fill:o}),Ot("path",{d:"M31.52 10.34C22.8442 15.8136 15.521 23.1813 10.1 31.89L31.52 44.25V10.34Z",fill:r}),Ot("path",{d:"M99.43 8C90.2123 3.0393 79.9635 0.299881 69.5 0V25.15L99.43 8Z",fill:o}),Ot("path",{d:"M0 69.87C0.348236 80.2825 3.1145 90.4711 8.08 99.63L29.77 87.07L0 69.87Z",fill:o}),Ot("path",{d:"M8.07001 35.37C3.13121 44.4917 0.372439 54.6334 0.0100098 65L29.8 47.91L8.07001 35.37Z",fill:o}),Ot("path",{d:"M35.78 127.13C44.9355 132.013 55.0981 134.706 65.47 135V110.15L35.78 127.13Z",fill:r}),Ot("path",{d:"M124.89 32C119.512 23.3126 112.237 15.9553 103.61 10.48V44.3L124.89 32Z",fill:o}),Ot("path",{d:"M103.64 124.54C112.314 119.022 119.624 111.61 125.02 102.86L103.64 90.52V124.54Z",fill:o}),Ot("path",{d:"M134.96 64.81C134.572 54.5437 131.835 44.5032 126.96 35.46L105.5 47.88L134.96 64.81Z",fill:r}),Ot("path",{d:"M69.5 135C79.845 134.709 89.9825 132.029 99.12 127.17L69.5 110V135Z",fill:o}),Ot("path",{d:"M31.52 83.44V51.56L3.83002 67.43L31.52 83.44Z",fill:r})]}),J6=Y6e;import Q6e from"@mui/material/Tooltip";import X6e from"react";import{jsx as kD}from"react/jsx-runtime";var J6e=X6e.forwardRef((e,t)=>kD(Q6e,{...e,ref:t,children:kD("span",{children:e.children})})),e7=J6e;import{Grid2 as ID,styled as Of}from"@mui/material";var MD=Of(bt)(({theme:e})=>({padding:"5px 6px !important",color:e.palette.text.default,fontSize:"0.875rem",textTransform:"uppercase",fontWeight:400,height:"unset",borderRadius:"100px",border:`0.5px solid ${e.palette.border?.normal}`,background:e.palette.background.default,maxWidth:"14.375rem"})),LD=Of(Sn)(({theme:e})=>({width:300,height:280,overflow:"auto",backgroundColor:e.palette.background.secondary,borderRadius:"10px",boxShadow:"0px 1px 4px 0px rgba(0, 0, 0, 0.25) inset","@media (max-width: 843px)":{width:260},"@media (max-width: 768px)":{width:300},"@media (max-width: 375px)":{width:"100%"}})),t7=Of(G)(({theme:e})=>({paddingBottom:"15px",color:e.palette.text?.default,textAlign:"center",fontSize:"1rem",letterSpacing:"0.15px"})),e1=Of(Oe)(({theme:e})=>({margin:"5px 0",padding:"7px 0",borderRadius:"10px",borderColor:e.palette.border?.strong,boxShadow:"none",display:"flex",flexDirection:"row",fill:e.palette.icon.default,"&:hover":{borderColor:e.palette.border?.brand,backgroundColor:`${_e} !important`,fill:e.palette.icon.inverse}})),r7=Of(ID)({padding:"0 1rem","@media (max-width: 768px)":{padding:"0",display:"flex",alignItems:"center",flexDirection:"column",width:"100%"}}),DD=Of(ID)({padding:"2.5rem 1rem 0 1rem","@media (max-width: 768px)":{padding:"1rem",transform:"rotate(90deg)",height:"6.25rem",marginLeft:"6.25rem"}});import{jsx as Lt,jsxs as wa}from"react/jsx-runtime";var FD={CHIP:"chip",OTHER:"other"};function e7e(e){return e?{meshery:Lt(J6,{}),kubernetes:Lt(qd,{}),github:Lt(Hu,{})}[e]||null:Lt(qd,{})}function V2(e,t){return e.filter(r=>t.indexOf(r)===-1)}function ND(e,t){return e.filter(r=>t.indexOf(r)!==-1)}function t7e({name:e,assignableData:t,assignedData:r,assignablePage:o,assignedPage:a,originalAssignedData:n,emptyStateIconLeft:i,emtyStateMessageLeft:l,emptyStateIconRight:s,emtyStateMessageRight:u,originalLeftCount:f,originalRightCount:d,leftPermission:p=!0,rightPermission:m=!0,transferComponentType:x=FD.OTHER}){let[h,g]=va.useState([]),[T,E]=va.useState([]),[v,I]=va.useState(n),[k,C]=va.useState(0),[b,A]=va.useState(0);va.useEffect(()=>{I(n)},[n]),va.useEffect(()=>{E(t)},[t]),va.useEffect(()=>{C(f),A(d)},[f,d]);let B=ND(h,T),P=ND(h,v);va.useEffect(()=>{r(v)},[v]),va.useEffect(()=>{let L=y=>{y[0].isIntersecting&&o()},F=new IntersectionObserver(L,{threshold:1}),q=document.getElementById("leftList");return q&&F.observe(q),()=>{q&&F.unobserve(q)}},[t]),va.useEffect(()=>{let L=y=>{y[0].isIntersecting&&a()},F=new IntersectionObserver(L,{threshold:1}),q=document.getElementById("rightList");return q&&F.observe(q),()=>{q&&F.unobserve(q)}},[n]);let X=L=>()=>{let F=h.indexOf(L),q=[...h];F===-1?q.push(L):q.splice(F,1),g(q)},Z=L=>{L.stopPropagation(),I(v.concat(T)),E([]),C(0),A(F=>F+k)},N=L=>{L.stopPropagation(),I(v.concat(B)),E(V2(T,B)),g(V2(h,B)),C(F=>F-B.length),A(F=>F+B.length)},W=L=>{L.stopPropagation(),E(T.concat(P)),I(V2(v,P)),g(V2(h,P)),A(F=>F-P.length),C(F=>F+P.length)},H=L=>{L.stopPropagation(),E(T.concat(v)),I([]),A(0),C(F=>F+b)},M=(L,F,q,y)=>wa(LD,{children:[Lt(Ur,{dense:!0,component:"div",role:"list",children:L.length>0?L.map(ae=>{let ie=`transfer-list-item-${ae.name}-label`;return wa(Sr,{role:"listitem",sx:{display:"flex",justifyContent:"space-between","&:hover":{backgroundColor:"#00000010"}},onClick:X(ae),children:[x===FD.CHIP?Lt(e7,{title:ae.name,placement:"top",children:Lt(MD,{sx:{paddingY:"10px"},variant:"outlined",label:ae.name,onDelete:()=>{},deleteIcon:Lt(Q4,{}),icon:e7e(ae?.kind)||Lt(qd,{})})}):Lt(e7,{title:ae.name,placement:"top",children:Lt(G,{sx:{maxWidth:"230px",height:"1.5rem",overflow:"hidden"},children:ae.name})}),Lt(Vr,{checked:h.indexOf(ae)!==-1,tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":ie}})]},ae.id)}):wa("div",{style:{textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"264px"},children:[F,Lt(G,{sx:{color:"#979797",px:5,py:2,lineHeight:1},children:q})]})}),Lt("div",{id:y})]});return wa(xe,{container:!0,justifyContent:"center",alignItems:"center",children:[wa(r7,{children:[wa(t7,{children:["Available ",e," (",T.length,")"]}),M(T,i,l,"leftList")]}),Lt(DD,{children:wa(xe,{container:!0,direction:"column",alignItems:"center",children:[wa(e1,{variant:"outlined",size:"small",onClick:Z,disabled:!m||m&&(T?.length===0||T.length<k),"aria-label":"move all right",children:[Lt(Yd,{width:18,height:18}),Lt(Yd,{style:{position:"absolute",left:"27px"},width:18,height:18})]}),Lt(e1,{variant:"outlined",size:"small",onClick:N,disabled:!m||m&&B.length===0,"aria-label":"move selected right",children:Lt(Yd,{width:18,height:18})}),Lt(e1,{variant:"outlined",size:"small",onClick:W,disabled:!p||p&&P.length===0,"aria-label":"move selected left",children:Lt(Gd,{width:18,height:18})}),wa(e1,{variant:"outlined",size:"small",onClick:H,disabled:!p||p&&(v?.length===0||v.length<b),"aria-label":"move all left",children:[Lt(Gd,{width:18,height:18}),Lt(Gd,{style:{position:"absolute",left:"27px"},width:18,height:18})]})]})}),wa(r7,{children:[wa(t7,{children:["Assigned ",e," (",v.length,")"]}),M(v,s,u,"rightList")]})]})}var t1=t7e;import{Drawer as r7e,styled as o7e,useMediaQuery as a7e}from"@mui/material";import BD from"react";import{Fragment as s7e,jsx as fo,jsxs as U2}from"react/jsx-runtime";var n7e=o7e("div")(({theme:e})=>({background:e.palette.mode==="light"?Fu.header:Du.header,padding:"0.75rem 1rem",margin:"-1rem -1rem 1rem -1rem",display:"flex",justifyContent:"space-between",alignItems:"center"}));function i7e({filters:e,selectedFilters:t,setSelectedFilters:r,variant:o="outlined",handleApplyFilter:a,showAllOption:n=!0,id:i,"data-testid":l="universal-filter"}){let[s,u]=BD.useState(null),[f,d]=BD.useState(!1),p=te(),m=a7e(p.breakpoints.down("sm")),x=v=>{u(v.currentTarget),d(I=>!I)},h=()=>{u(null),d(!1)},g=(v,I)=>{let k=v.target.value;r(C=>({...C,[I]:k}))},T=()=>{h(),a()},E=()=>U2("div",{children:[fo(n7e,{"data-testid":`${l}-header`,children:fo("h3",{children:"Filters: "})}),Object.keys(e).map(v=>{let I=e[v].options;return U2("div",{role:"presentation","data-testid":`${l}-filter-group-${v}`,children:[fo(ql,{id:e[v].name,"data-testid":`${l}-label-${v}`,children:e[v].name}),U2(sa,{defaultValue:"All","data-testid":`${l}-select-${v}`,value:t[v],variant:o,onChange:k=>g(k,v),style:{width:"20rem",marginBottom:"1rem"},inputProps:{"aria-label":"Without label","data-testid":`${l}-select-${v}`},displayEmpty:!0,children:[n&&fo(gt,{value:"All","data-testid":`${l}-option-all`,children:"All"}),I.map(k=>fo(gt,{value:k.value,"data-testid":`${l}-option-${k.value}`,children:k.label},k.value))]},v)]},v)}),fo("div",{style:{display:"flex",justifyContent:"center"},children:fo(Oe,{variant:"contained",onClick:T,"data-testid":`${l}-apply-btn`,children:"Apply"})})]});return fo(s7e,{children:U2("div",{id:i,"data-testid":l,children:[fo(Mt,{title:"Filter",onClick:x,icon:fo(P4,{fill:p.palette.icon.default}),arrow:!0}),m?fo(r7e,{anchor:"bottom",open:f,onClose:h,PaperProps:{style:{padding:"0 1rem 1rem 1rem",backgroundColor:p.palette.background.surfaces}},children:E()}):fo(kp,{id:f&&s?"transition-popper":void 0,open:f,anchorEl:s,placement:"bottom-end",children:fo(Tn,{onClickAway:h,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:fo(Sn,{sx:{padding:"1rem",paddingTop:"1.8rem",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",backgroundColor:p.palette.background.surfaces},children:E()})})})]})})}var l7e=i7e;import{useState as u7e}from"react";import{Fragment as h7e,jsx as Af,jsxs as o7}from"react/jsx-runtime";var Ea={PUBLIC:"public",PRIVATE:"private",PUBLISHED:"published"},f7e=D(Gl)(({theme:e})=>({"& .MuiPaper-root":{backgroundColor:e.palette.mode==="light"?ix:e.palette.background.constant?.table,color:e.palette.text.secondary,border:`1px solid ${e.palette.border.default}`,borderRadius:"0.25rem",padding:"0rem"},"& .MuiMenuItem-root":{fontSize:".9rem",padding:"0.5rem","&:hover":{backgroundColor:e.palette.mode==="light"?ku:"rgba(0, 179, 159, 0.25)"}},"& .Mui-selected":{backgroundColor:e.palette.mode==="light"?ku:"rgba(0, 179, 159, 0.25)"},"& .MuiList-padding":{padding:"0px"}})),d7e=D(Oe)(()=>({padding:"0px"})),p7e=D("div")(({theme:e,enabled:t})=>({paddingLeft:"0.3rem",height:"1.5rem",width:"auto",paddingRight:t?"0":"0.3rem",borderRadius:"0.25rem",border:`1px solid ${Od}`,background:e?.palette.mode==="light"?ix:e?.palette.background.constant?.table,textTransform:"uppercase",color:e?.palette.text.default,display:"flex",justifyContent:"center",alignItems:"center",fontSize:"0.75rem",fontFamily:e?.typography.fontFamily})),m7e=D(gt)(({theme:e})=>({textTransform:"capitalize",color:e.palette.icon.default})),c7e=D("div")({marginRight:"0.5rem"}),x7e=({value:e,onChange:t,options:r,enabled:o})=>{let[a,n]=u7e(null),i=!!a,l=f=>{f.stopPropagation(),n(null)},s=f=>{f.stopPropagation(),o&&n(f.currentTarget)},u=(f,d)=>{f.stopPropagation(),t&&t(d),l(f)};return o7(h7e,{children:[Af(d7e,{disabled:!o,onClick:s,"data-testid":`design-visibility-${e.toLowerCase()}`,children:o7(p7e,{enabled:o,children:[Af("span",{style:{fontSize:"0.85rem"},children:e}),o&&Af(kO,{style:{...bo}})]})}),Af(f7e,{open:i,onClose:l,anchorEl:a,anchorReference:"anchorPosition",anchorPosition:{top:(a?.getBoundingClientRect().bottom??0)+5,left:(a?.getBoundingClientRect().left??0)+5},children:r?.map(([f,d],p)=>o7(m7e,{"data-testid":`visibility-toggle-${f.toLowerCase()}`,onClick:m=>u(m,f),children:[Af(c7e,{children:Af(d,{width:16,height:16})}),f]},p))})]})},ul=x7e;import{styled as T7e}from"@mui/material";import{styled as Ra,Typography as g7e}from"@mui/material";var HD=Ra("div")(()=>({width:"85px",height:"88px",overflow:"hidden",position:"absolute",top:"-3px",left:"-3px"})),VD=Ra("div")(({catalogClassName:e})=>({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:"rgba(122,132,142,.8)",official:"#EBC017",verified:"#00B39F"}[e],color:"#fff"})),UD=Ra("div")(({outerStyles:e})=>({position:"relative",borderRadius:"1rem",textAlign:"center",transformStyle:"preserve-3d",transition:"all .9s ease-out",marginBottom:"1.25rem",display:"inline-flex",perspective:"1000px","&:hover":{cursor:"pointer",transform:"translateY(-2%)"},"@media (max-width:1200px)":{height:"18.75rem"},...e})),WD=Ra("div")(({theme:e})=>({position:"relative",width:"100%",height:"100%",textAlign:"center",transition:"transform 0.6s",background:e.palette.background.default,boxShadow:`2px 2px 3px 0px ${e.palette.background.brand?.default}`,borderRadius:"0.9375rem"})),qD=Ra("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.text.inverse,borderRadius:"0 1rem 0 2rem"})),Pf=Ra("p")(({theme:e})=>({fontSize:"1rem",textTransform:"capitalize",margin:"0rem",lineHeight:"1.5",textAlign:"center",color:e.palette.text.secondary,fontWeight:"600"})),GD=Ra(g7e)(({theme:e})=>({fontWeight:"bold",textTransform:"capitalize",color:e.palette.text.default,fontSize:"1.125rem",marginTop:"2rem",padding:"0rem 1rem",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"center",width:"100%"})),zD=Ra("div")(({theme:e})=>({display:"flex",justifyContent:"space-around",fontSize:"0.2rem",color:e.palette.text.secondary,padding:"0.9rem 0.1rem",background:e.palette.background.secondary,position:"absolute",bottom:"0px",marginTop:"1.2rem",borderRadius:"0 0 0.9375rem 0.9375rem",width:"100%"})),_f=Ra("div")(()=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.2rem",color:"rgba(26, 26, 26, .8)",margin:"0rem",padding:"0.1rem"})),jD=Ra("div")(()=>({height:"max-content",display:"flex",marginTop:"-1rem",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start","@media (max-width:1200px)":{height:"max-content"}})),KD=Ra("div")(({theme:e})=>({background:e.palette.mode==="light"?"rgba(231, 239, 243, 0.40)":"#212121",display:"flex",alignItems:"center",justifyContent:"center",padding:"0.5rem",width:"100%",borderRadius:"0.5rem"}));import{Fragment as y7e,jsx as tr,jsxs as fl}from"react/jsx-runtime";var bSt=T7e("a")(()=>({textDecoration:"none"}));var S7e=({catalogClassName:e})=>e?tr(HD,{children:tr(VD,{catalogClassName:e,children:e})}):tr(y7e,{}),C7e=({pattern:e,patternType:t,cardHeight:r,cardWidth:o,cardStyles:a,onCardClick:n})=>{let i={height:r,width:o,...a};return tr(UD,{outerStyles:i,onClick:n,children:fl(WD,{className:"innerCard",children:[tr(S7e,{catalogClassName:e?.catalog_data?.content_class}),tr(qD,{children:t}),fl(jD,{children:[tr(GD,{style:{margin:"3rem 0 1.59rem 0",textAlign:"center"},children:e.name}),tr(KD,{children:tr(Ua,{height:"118",width:"120"})})]}),fl(zD,{children:[fl(_f,{children:[tr(pa,{width:18,height:18}),tr(Pf,{children:e.download_count})]}),fl(_f,{children:[tr(kd,{width:18,height:18,fill:"#51636B"}),tr(Pf,{children:e.clone_count})]}),fl(_f,{children:[tr(jd,{width:18,height:18,fill:"#51636B"}),tr(Pf,{children:e.view_count})]}),fl(_f,{children:[tr(Vd,{width:18,height:18}),tr(Pf,{children:e.deployment_count})]}),fl(_f,{children:[tr(wn,{width:18,height:18,fill:"#51636B"}),tr(Pf,{children:e.share_count})]})]})]})})},$D=C7e;import{useTheme as M7e}from"@mui/material/styles";import{useCallback as iF,useState as L7e}from"react";import{useCallback as nF,useState as _7e}from"react";import{useCallback as R7e,useState as O7e}from"react";import{debounce as b7e}from"lodash";import{useEffect as XD,useMemo as v7e,useState as w7e}from"react";import{styled as YD}from"@mui/material";var ZD=YD(Eu)(({style:e,theme:t})=>({fontFamily:t.typography.fontFamily,width:"100%","@media (max-width: 590px)":{marginLeft:"0.25rem",paddingLeft:"0.25rem"},display:"flex",backgroundColor:t.palette.mode==="light"?t.palette.common.white:t.palette.background.surfaces,...e})),QD=YD(yd)(({theme:e})=>({borderLeft:`1px solid ${e.palette.background.tertiary}`,height:"30px",paddingLeft:"10px"}));import{jsx as W2}from"react/jsx-runtime";function E7e({onChange:e,value:t="",label:r,sx:o,placeholder:a,endAdornment:n,debounceTime:i=300}){let l=te(),[s,u]=w7e(t);XD(()=>{t!==s&&u(t)},[t]);let f=m=>({target:{value:m},persist:()=>{}}),d=v7e(()=>b7e(m=>{e?.(f(m))},i),[e,i]);return XD(()=>{if(e)return s===""?e(f(s)):d(s),()=>{d.cancel()}},[s,e,d]),W2(ZD,{type:"search",label:r,fullWidth:!0,value:s,onChange:m=>{let x=m.target.value;u(x)},sx:o,placeholder:a??"Search",startAdornment:W2(yd,{position:"start",children:W2(Zd,{fill:l.palette.background.neutral?.default})}),endAdornment:W2(QD,{position:"end",children:n})})}var q2=E7e;import{styled as Kn}from"@mui/material/styles";var JD=Kn(K)(({styleProps:e})=>({padding:"1rem",borderRadius:"1rem",width:"100%",gap:"0.5rem",boxShadow:"0px 2px 10px rgba(0, 0, 0, 0.2)",display:"flex",flexDirection:"column",height:"fit-content",backgroundColor:e.backgroundColor,"@media (max-width:900px)":{display:"none"},fontFamily:e.fontFamily,"&::-webkit-scrollbar":{width:"6px"}})),eF=Kn("div")(()=>({display:"none","@media (max-width:899px)":{display:"block"}})),GSt=Kn("div")(()=>({display:"flex",justifyContent:"space-around",alignItems:"center"})),tF=Kn(Oe)(({theme:e})=>({backgroundColor:e.palette.primary.brand?.default,"&:hover":{backgroundColor:e.palette.background.default},height:"3.75rem","@media (max-width:450px)":{minWidth:"0px"}})),rF=Kn(K)(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0.5rem 1rem",background:e.palette.mode==="light"?Fu.header:Du.header,height:"10vh"})),zSt=Kn(Mi)(({theme:e})=>({padding:"0.25rem 2rem",borderBottom:"1px solid",borderBottomColor:e.palette.text.disabled})),oF=Kn(Mi)(({theme:e})=>({backgroundColor:e.palette.background.surfaces,borderRadius:"0.5rem",marginTop:2,display:"flex",justifyContent:"space-between"})),aF=Kn("p")(({theme:e})=>({color:e.palette.text.tertiary})),jSt=Kn("span")(()=>({marginLeft:"0.5rem",display:"block","@media (max-width: 853px)":{display:"none"}}));import{Fragment as P7e,jsx as Oa,jsxs as ws}from"react/jsx-runtime";var A7e=({filterKey:e,sectionDisplayName:t,options:r=[],filters:o,openSections:a,onCheckboxChange:n,onSectionToggle:i,styleProps:l,customComponent:s})=>{let[u,f]=O7e(""),d=R7e(x=>{f(x.target.value)},[]),p=r.length>10,m=u&&r.length?r.filter(x=>x.label.toLowerCase().includes(u.toLowerCase())):r;return ws(P7e,{children:[ws(oF,{onClick:()=>i(e),style:{backgroundColor:l.sectionTitleBackgroundColor},children:[Oa(G,{sx:{fontSize:"1rem"},fontWeight:"bold",fontFamily:l.fontFamily,children:(t||e).toUpperCase()}),a[e]?Oa(Ui,{}):Oa(yo,{})]}),Oa(ia,{in:a[e],timeout:"auto",unmountOnExit:!0,children:s?Oa(s,{}):ws(Ur,{component:"div",sx:{overflowY:"auto",maxHeight:"25rem",backgroundColor:l.backgroundColor,"&::-webkit-scrollbar":{width:"6px"}},children:[p&&Oa(K,{sx:{px:"0.5rem",mb:"0.5rem"},children:Oa(q2,{value:u,onChange:d,placeholder:"Search",endAdornment:ws(aF,{children:["Total : ",m.length??0]})})}),m.map((x,h)=>ws(Rd,{direction:"row",alignItems:"center",px:"0.5rem",justifyContent:"space-between",children:[ws(Rd,{direction:"row",alignItems:"center",gap:"0.35rem",children:[Oa(Vr,{id:`checkbox-${x.label}`,checked:Array.isArray(o[e])?o[e].includes(x.value):o[e]===x.value,onChange:g=>n&&n(e,x.value,g.target.checked),value:x.value}),x.Icon&&Oa(x.Icon,{width:"20px",height:"20px"}),Oa(G,{fontFamily:l.fontFamily,children:x.label})]}),ws(Rd,{direction:"row",alignItems:"center",gap:"0.35rem",children:[x.totalCount!==void 0&&`(${x.totalCount||0})`,x.description&&Oa(rl,{variant:"standard",helpText:x.description})]})]},`${x.value}-${h}`))]})})]})},a7=A7e;import{Fragment as I7e,jsx as n7}from"react/jsx-runtime";var k7e=({lists:e,onApplyFilters:t,value:r,styleProps:o})=>{let[a,n]=_7e(()=>{let s={};return e.forEach(u=>{s[u.filterKey]=!!u.defaultOpen}),s}),i=nF(s=>{n(u=>({...u,[s]:!u[s]}))},[]),l=nF((s,u,f)=>{t(d=>{let p={...d};if(e.find(x=>x.filterKey===s)?.isMultiSelect!==!1){let x=p[s];Array.isArray(x)||(x=x?[x]:[]),p[s]=f?[...x,u]:x.filter(h=>h!==u)}else p[s]=f?u:"";return p})},[e,t]);return n7(I7e,{children:e.map(s=>s.customComponent?n7(a7,{filterKey:s.filterKey,filters:r,sectionDisplayName:s.sectionDisplayName,onSectionToggle:i,styleProps:o,openSections:a,customComponent:s.customComponent},s.filterKey):n7(a7,{filterKey:s.filterKey,sectionDisplayName:s.sectionDisplayName,options:s.options,filters:r,openSections:a,onCheckboxChange:l,onSectionToggle:i,styleProps:o},s.filterKey))})},i7=k7e;import{Fragment as F7e,jsx as Yo,jsxs as G2}from"react/jsx-runtime";var D7e=({lists:e,setData:t,value:r={},styleProps:o})=>{let a=M7e(),[n,i]=L7e(!1),l=iF(()=>{i(!0)},[]),s=iF(()=>{i(!1)},[]),f={...{backgroundColor:a.palette.mode==="light"?a.palette.background.default:a.palette.background.secondary,sectionTitleBackgroundColor:a.palette.mode==="light"?a.palette.background.surfaces:$l.main,fontFamily:a.typography.fontFamily},...o};return G2(F7e,{children:[Yo(JD,{styleProps:f,children:Yo(i7,{lists:e,onApplyFilters:t,value:r,styleProps:f})}),G2(eF,{children:[Yo(ge,{title:"Filters",placement:"bottom",children:Yo(tF,{variant:"contained",onClick:l,children:Yo(LO,{style:{height:"28px",width:"28px"},fill:a.palette.text.default})})}),Yo(Y3,{anchor:"bottom",open:n,variant:"temporary",onClose:s,style:{zIndex:"1399"},children:G2(K,{sx:{overflowY:"hidden",height:"90vh"},children:[G2(rF,{children:[Yo(G,{variant:"h6",sx:{color:a.palette.text.constant?.white},component:"div",children:"Filters"}),Yo(hf,{onClick:s,children:Yo(vt,{height:"32px",width:"32px"})})]}),Yo(K,{style:{height:"75vh",overflowY:"auto",background:a.palette.background.surfaces,padding:"0 16px"},children:Yo(i7,{lists:e,onApplyFilters:t,value:r,styleProps:f})}),Yo(K,{sx:{background:a.palette.mode==="light"?Fu.fotter:Du.fotter,height:"5vh"}})]})})]})]})},lF=D7e;import{jsx as z2,jsxs as B7e}from"react/jsx-runtime";function N7e({open:e,content:t,title:r,actions:o,onClose:a}){return B7e(la,{open:e,onClose:a,children:[z2(T2,{children:r}),z2(Hl,{children:z2(Vl,{children:t})}),z2(Cd,{children:o})]})}var sF=N7e;import{Autocomplete as H7e,Grid2 as l7}from"@mui/material";import V7e,{useCallback as s7,useEffect as U7e,useState as j2}from"react";import{jsx as fr,jsxs as u7}from"react/jsx-runtime";import{createElement as q7e}from"react";var W7e=({data:e,label:t,fetchSuggestions:r,setFilterData:o,isLoading:a,type:n,disabled:i,selectedData:l,searchValue:s,setSearchValue:u,iconComponent:f=fr(Tx,{...ju})})=>{let[d,p]=j2(""),[m,x]=j2(!1),[h,g]=j2(!1),[T,E]=j2(l);U7e(()=>{E(l)},[l]);let v=s7(C=>{let b=T.filter(A=>A.id!==C);E(b),o(b)},[T,o]),I=s7((C,b)=>{if(!b)return;if(T.some(P=>P.id===b.id)){p(`${n} already selected`);return}let B=[...T,b];E(B),o(B),p(""),u(""),x(!1)},[T,o,n,u]),k=s7((C,b)=>{u(b),b===""?x(!1):(r(b),p(""),x(!0))},[r,u]);return u7(K,{sx:{width:"100%"},children:[fr(H7e,{id:`${n}-search-field`,style:{width:"100%"},options:e,getOptionLabel:()=>s,isOptionEqualToValue:(C,b)=>C.id===b.id,noOptionsText:a?"Loading...":`No ${n} found`,loading:a,open:m,onClose:()=>x(!1),disabled:i,value:void 0,inputValue:s,onChange:I,onInputChange:k,filterOptions:C=>C,disableClearable:!0,includeInputInList:!0,filterSelectedOptions:!0,disableListWrap:!0,clearOnBlur:!0,popupIcon:null,blurOnSelect:!0,forcePopupIcon:!1,renderInput:C=>fr(Wr,{...C,label:t||`Add ${n}`,error:!!d,helperText:d,fullWidth:!0,InputLabelProps:{style:{fontFamily:"inherit"}},InputProps:{...C.InputProps,endAdornment:fr(V7e.Fragment,{children:a?fr(Bt,{color:"inherit",size:20}):null})}}),renderOption:(C,b)=>q7e("li",{...C,key:b.id},fr(K,{component:"li",sx:{"& > img":{mr:2,flexShrink:0}},children:u7(l7,{container:!0,alignItems:"center",children:[fr(l7,{children:fr(K,{sx:{color:"text.secondary",mr:2},children:f})}),fr(l7,{size:"grow",children:fr(G,{variant:"body2",children:b.name})})]})}))}),u7(K,{sx:{display:"flex",flexWrap:"wrap",gap:.5,mt:T?.length>0?"0.5rem":""},children:[!h&&T?.length>0&&fr(bt,{avatar:f,label:T[T.length-1]?.name,size:"small",onDelete:()=>v(T[T.length-1]?.id),deleteIcon:fr(Kt,{title:`Remove ${n}`,children:fr(vt,{style:Gr})})},T[T.length-1]?.id),h&&T?.map(C=>fr(bt,{avatar:fr(Tx,{...Gr}),label:C.name,size:"small",onDelete:()=>v(C.id),deleteIcon:fr(Kt,{title:`Remove ${n}`,children:fr(vt,{style:Gr})})},C.id)),T?.length>1&&fr(G,{onClick:()=>g(!h),sx:{cursor:"pointer"},children:h?"(hide)":`(+${T?.length-1})`})]})]})},uF=W7e;import{styled as K2}from"@mui/material";var fF=K2("div")(({theme:e})=>({padding:"2.5rem",margin:"2rem 0",backgroundColor:e.palette.grey.A400,display:"flex",border:`1px solid ${e.palette.common.black}`,justifyContent:"space-between",transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)","&:hover":{transition:"background 150ms ease-out 0s, border 150ms ease-out 0s, transform 150ms ease-out 0s",transform:"translate3d(0px, -1px, 0px)",boxShadow:`${e.palette.common.black} 0px 8px 16px 0px`},"@media screen and (max-width: 992px)":{padding:"1.5rem"},"@media screen and (max-width: 500px)":{padding:"0.75rem"}})),dF=K2("div")({display:"inline-flex"}),pF=K2("div")(({theme:e})=>({fontSize:"2rem",margin:"0 2rem 0 1rem",color:e.palette.grey[800],alignSelf:"center",transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"})),mF=K2("div")(({theme:e})=>({h2:{margin:"0.25rem 0"},p:{margin:"0.35rem 0",color:e.palette.grey[800],transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"}}));import{jsx as $2,jsxs as cF}from"react/jsx-runtime";var G7e=({chapterNum:e,chapter:t})=>$2(fF,{id:t.frontmatter.courseTitle?t.frontmatter.courseTitle:void 0,children:cF(dF,{children:[$2(pF,{children:e}),cF(mF,{children:[$2("h2",{children:t.frontmatter.chapterTitle?t.frontmatter.chapterTitle:t.frontmatter.courseTitle}),$2("p",{children:t.frontmatter.description})]})]})}),xF=G7e;import{useMediaQuery as z7e,useTheme as j7e}from"@mui/material";import K7e,{useState as $7e}from"react";import{styled as kf}from"@mui/material/styles";var QCt=kf("div")(({theme:e})=>({marginLeft:".5rem",color:e.palette.background.secondary})),hF=kf(vd)({overflowY:"auto",scrollbarWidth:"none","&::-webkit-scrollbar":{width:"0em"}}),gF=kf(Sr)(()=>({pointerEvents:"auto",margin:"0.5rem 0rem 0.5rem 0rem",fontSize:"0.1rem",padding:"0"})),TF=kf(Sr)(()=>({pointerEvents:"auto",margin:"0rem 0rem 0rem 0.5rem",fontSize:"0.1rem"})),SF=kf("div")({marginRight:"0.75rem",marginLeft:"0.5rem"}),CF=kf("div")({marginRight:"0.5rem"});import{jsx as Aa,jsxs as Y2}from"react/jsx-runtime";var Y7e=({navigationItems:e,MenuListProps:t={},ListItemTextProps:r={}})=>{let o=j7e(),a=z7e(o.breakpoints.up("sm")),[n,i]=$7e(null),l=(s,u)=>{u.stopPropagation(),i(f=>f===s?null:s)};return Aa(hF,{...t,dense:!0,children:e.map(s=>{let u=n===s.id,f=s.permission??!0,d=s.addDivider??!1;return!(s.showOnWeb??!0)&&a?null:Y2(K7e.Fragment,{children:[Y2(gt,{disabled:!f,onClick:s.onClick,"data-testid":`nav-item-${s.id}`,children:[Y2(gF,{children:[s.icon&&Aa(SF,{children:s.icon}),Aa(jt,{primary:s.title,...r})]}),s.subItems&&Aa(jt,{"data-testid":`nav-toggle-${s.id}`,children:u?Aa(Ui,{onClick:m=>l(s.id,m)}):Aa(yo,{onClick:m=>l(s.id,m)})})]}),s.subItems&&Aa(ia,{in:u,timeout:"auto",unmountOnExit:!0,variant:"submenu",children:s.subItems.map(m=>Aa(gt,{disabled:!m.permission,onClick:m.onClick,"data-testid":`nav-subitem-${m.id}`,children:Y2(TF,{children:[m.icon&&Aa(CF,{children:m.icon}),Aa(jt,{primary:m.title,...r})]})},m.id))}),d&&Aa(go,{})]},s.id)})})},yF=Y7e;import{styled as d7}from"@mui/material";import{jsx as f7,jsxs as eSe}from"react/jsx-runtime";var Z7e=d7("div")(({type:e,theme:t})=>({fontWeight:500,background:"#212529",color:"inherit",marginTop:"2rem",width:"100%",height:"100%",marginBottom:"2rem",padding:"0.5rem 1rem",borderRadius:0,borderStyle:"solid",borderColor:e==="warning"?t.palette.text.warning:t.palette.background.brand?.default,borderWidth:"0 0 0 4px"})),Q7e=d7("h4")(({type:e,theme:t})=>({color:e==="warning"?t.palette.text.warning:t.palette.background.brand?.default,fontSize:"1.35rem"})),X7e=d7("p")(({theme:e})=>({color:e.palette.text.inverse})),J7e=({type:e="note",title:t,content:r})=>eSe(Z7e,{type:e,children:[f7(Q7e,{type:e,children:t}),f7(X7e,{children:f7(mf,{content:r})})]}),bF=J7e;import{Resizable as oSe}from"re-resizable";import aSe from"react-draggable";import{jsx as r1,jsxs as rSe}from"react/jsx-runtime";var tSe=({height:e=24,width:t=24,fill:r="#E8EFF3",...o})=>rSe("svg",{width:t,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:[r1("g",{clipPath:"url(#clip0_34897_172744)",children:r1("path",{d:"M6 10C4.9 10 4 10.9 4 12C4 13.1 4.9 14 6 14C7.1 14 8 13.1 8 12C8 10.9 7.1 10 6 10ZM18 10C16.9 10 16 10.9 16 12C16 13.1 16.9 14 18 14C19.1 14 20 13.1 20 12C20 10.9 19.1 10 18 10ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10Z",fill:r})}),r1("defs",{children:r1("clipPath",{id:"clip0_34897_172744",children:r1("rect",{width:"24",height:"24",fill:"white"})})})]}),p7=tSe;var Eyt=D(Sr)(({theme:e})=>({padding:e.spacing(.5,.5),marginBlock:e.spacing(1),"& .MuiListItemText-primary":{fontSize:"1rem",textTransform:"capitalize",fontWeight:700},cursor:"pointer","&:hover":{backgroundColor:e.palette.action.hover},"& .MuiSvgIcon-root":{opacity:0,transition:"opacity 0.2s"},"&:hover .MuiSvgIcon-root":{opacity:1}})),Ryt=D(Sr,{shouldForwardProp:e=>e!=="isVisible"})(({theme:e,isVisible:t})=>({padding:e.spacing(.05,.5),fontStyle:t?"normal":"italic",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& .MuiSvgIcon-root":{height:20,width:20},"& .MuiListItemIcon-root":{minWidth:0,opacity:t?.8:.3},"& .MuiTypography-root":{fontSize:"0.9rem",opacity:t?1:.5}})),vF=D("div")(({theme:e})=>({display:"flex",alignItems:"center",padding:e.spacing(4,2),alignContent:"stretch",justifyContent:"space-between",cursor:"move",background:e.palette.mode==="light"?"linear-gradient(90deg, #3B687B 0%, #507D90 100%)":"linear-gradient(90deg, #28353A 0%, #3D4F57 100%)",height:"3rem",flexShrink:0})),wF=D(K)(({theme:e})=>({padding:e.spacing(2),backgroundColor:e.palette.background.surfaces,overflow:"auto",flex:1,minHeight:0})),EF=D("div")({height:"100%",display:"flex",flexDirection:"column",minHeight:"3rem"}),RF=D(K)(({theme:e,intitialPosition:t})=>({borderRadius:"8px",overflow:"hidden",flexShrink:0,zIndex:100,position:"absolute",backgroundColor:e.palette.background.blur?.light,boxShadow:`0 4px 16px ${e.palette.background.blur?.light}`,maxHeight:"80%",display:"flex",boxSizing:"border-box",...t})),OF=D(p7)(({theme:e})=>({fill:e.palette.common.white,position:"absolute",top:"-0.3rem",left:"50%"})),AF=D("div")({display:"flex",gap:"1rem",justifyContent:"flex-end",alignItems:"center"}),PF=D("div")({display:"flex",justifyContent:"end",alignItems:"center",flex:"1"}),Z2=D($e)(({theme:e})=>({color:e.palette.common.white})),_F=D("div")(()=>({position:"absolute",left:"0",right:"0",marginInline:"auto",width:"fit-content"}));import{jsx as rr,jsxs as m7}from"react/jsx-runtime";var nSe=({isOpen:e,id:t="panel",children:r,areAllExpanded:o,toggleExpandAll:a,handleClose:n,defaultSize:i,intitialPosition:l,sx:s,minimizePanel:u,title:f=""})=>{let d=te();return e?rr(aSe,{handle:".drag-handle",children:rr(RF,{intitialPosition:l,sx:s,children:rr(oSe,{defaultSize:{width:i?.width||"18rem",height:i?.height||"auto"},onResize:()=>{window.dispatchEvent(new Event("panel-resize"))},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},children:rr(EF,{children:m7(jr,{children:[rr("div",{className:"drag-handle",children:m7(vF,{children:[rr(K,{display:"flex",justifyContent:"flex-end",padding:"8px",children:a&&rr(Kt,{title:o?"Collapse All":"Expand All",children:rr(Z2,{onClick:a,children:o?rr(v4,{}):rr(A4,{})})})}),rr(OF,{}),m7(PF,{children:[rr(AF,{id:`${t}-panel-header-actions-container`}),rr(_F,{children:f}),u&&rr(Z2,{onClick:u,children:rr(Ld,{fill:d.palette.common.white})}),rr(Z2,{onClick:n,children:rr(vt,{fill:d.palette.common.white})})]})]})}),rr(wF,{className:"panel-body",children:r})]})})})})}):null},kF=({...e})=>rr(nSe,{...e});import{memo as $F,useMemo as lSe}from"react";var qyt=D(K)(()=>({padding:"1rem",borderRadius:"1rem",backgroundColor:"white",width:"100%",alignSelf:"center",height:"20rem",marginBottom:"1rem",boxShadow:"0px 2px 10px rgba(0, 0, 0, 0.2)",display:"block","@media (max-width:900px)":{height:"18rem",marginInline:"0",padding:"0.5rem"}})),Gyt=D("div")(()=>({width:"100%",justifyContent:"center",display:"flex",alignItems:"center",marginTop:"20px"})),zyt=D(K)(()=>({display:"flex",justifyContent:"space-evenly",gap:"2.5rem",width:"100%"})),jyt=D(K)(()=>({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",gap:"2.5rem",width:"100%"})),Kyt=D("div")(({theme:e})=>({backgroundColor:e.palette.common.white,textAlign:"center",borderRadius:"1rem",width:"100%",padding:"1.5rem",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"})),c7=D(K)(({theme:e})=>({background:e.palette.mode==="light"?e.palette.background.default:e.palette.background.secondary,paddingTop:e.spacing(2),borderRadius:"1rem",display:"flex",alignItems:"center",flexDirection:"column"})),IF=D(K)(({theme:e})=>({paddingInline:e.spacing(2),display:"flex",alignItems:"center",placeSelf:"flex-start",justifyContent:"space-between",width:"100%"})),MF=D(G)(({theme:e})=>({fontSize:"1.5rem",fontWeight:600,color:e.palette.text.default})),LF=D(Tr)(({theme:e})=>({width:"200px",margin:"0.5rem",height:"100%",borderRadius:"1rem",position:"relative",overflow:"hidden",transition:"all 0.3s ease-in-out",background:p2(e.palette.mode==="light"),border:"1px solid transparent",boxShadow:"2px 2px 3px 2px rgb(0, 211, 169, 0.5)","&:hover":{transform:"translateY(-4px)",boxShadow:`2px 2px 3px 2px ${e.palette.text.brand}`,cursor:"pointer"}})),DF=D("div")(()=>({display:"flex",gap:"10px",flexWrap:"nowrap",justifyContent:"center",width:"100%"})),FF=D(K)(()=>({width:"2rem",height:"2rem",padding:"0.25rem",borderRadius:"8px",backgroundColor:"#D6FFF7",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.3s ease","& svg":{transition:"transform 0.3s ease"},"&:hover svg":{transform:"scale(1.2)"},"& .clone-icon":{width:"20px",height:"20px"}})),NF=D(Ba)(()=>({height:"100%",display:"flex",flexDirection:"column",padding:"12px",paddingBottom:"0px !important"})),BF=D(K)({display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"0.5rem",gap:"0.6rem"}),HF=D(G)(({theme:e})=>({fontSize:"0.85rem",fontWeight:"bold",color:e.palette.text.default,lineHeight:1.2,marginTop:"4px",textTransform:"uppercase",letterSpacing:"0.5px",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"clip",maxWidth:"70%",height:"2.4em"})),VF=D(G)(({theme:e})=>({fontSize:"24px",fontWeight:700,color:e.palette.icon.secondary,marginBottom:"0.5rem",lineHeight:1.2})),$yt=D(K)(({theme:e})=>({marginBottom:"1rem",padding:"8px",borderRadius:"8px",background:e.palette.mode==="light"?"#f8fafc":ua,color:e.palette.mode==="light"?"rgba(26, 26, 26, .8)":e.palette.text.default,transition:"background 0.3s ease, filter 0.3s ease","&:hover":{filter:"brightness(0.98)"}})),UF=D(G)(({theme:e})=>({fontSize:"0.9rem",fontWeight:1e3,color:e.palette.text.default,lineHeight:1.3,marginBottom:"4px",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",minHeight:"fit-content",maxHeight:"2.6em"})),WF=D(G)({fontSize:"0.75rem",marginBottom:"8px"}),qF=D(K)(({theme:e})=>({display:"flex",gap:"15px",width:"100%",padding:"20px",background:e.palette.mode==="light"?e.palette.background.default:e.palette.background.secondary,borderRadius:"12px",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.05)",paddingBottom:e.spacing(3)})),GF=D(K)(({theme:e})=>({padding:"1rem",color:e.palette.text.error,fontSize:"1rem",fontWeight:500}));import{jsx as dl,jsxs as iSe}from"react/jsx-runtime";var zF=({open:e,handleClick:t})=>{let r=te();return dl(ge,{title:e?"Hide Performers":"Show Performers",placement:"bottom",children:dl("span",{children:iSe(Oe,{variant:"contained",onClick:t,sx:{height:"3.7rem",padding:"0.3rem 1rem 0.3rem 0.3rem"},style:{backgroundColor:e?void 0:r.palette.background.constant?.disabled},children:[dl(Ql,{style:{height:"2rem",width:"2rem",marginRight:"10px"}}),e?"Hide Performers":"Show Performers"]})})})},jF=({handleClick:e})=>dl(ge,{title:"Open Leaderboard",placement:"bottom",children:dl(Oe,{variant:"contained",onClick:e,sx:{height:"3.7rem",padding:"0.3rem",display:{xs:"inline-flex",sm:"none"}},children:dl(Ql,{style:{height:"2rem",width:"2rem"}})})}),KF=()=>dl(DF,{children:[...Array(5)].map((e,t)=>dl(X3,{variant:"rounded",height:"13.5rem",width:"inherit",sx:{minWidth:"150px"},style:{borderRadius:"1rem"}},t))});import{jsx as Or,jsxs as $n}from"react/jsx-runtime";var sSe={pathType:"pattern",page:0,pagesize:1,metrics:!0,expandUser:!0,trim:!0},x7={view:{label:"Most Opens",id:"open",countKey:"view_count"},clone:{label:"Most Clones",id:"clone",countKey:"clone_count"},download:{label:"Most Downloads",id:"download",countKey:"download_count"},deployment:{label:"Most Deploys",id:"deployments",countKey:"deployment_count"},share:{label:"Most Shares",id:"share",countKey:"share_count"}},o1=e=>({...sSe,order:`${x7[e].countKey} desc`}),uSe=({label:e,countKey:t,count:r,patternName:o,pattern:a,userName:n,status:i,id:l,onCardClick:s,onIconClick:u})=>{let f=()=>{s(a)},d=(m,x)=>{m.stopPropagation(),u(x)},p=te();return Or(LF,{elevation:0,status:i,onClick:f,children:$n(NF,{cardId:l,children:[$n(BF,{children:[Or(HF,{children:e}),Or(FF,{onClick:m=>d(m,`${t}+desc`),children:Or(W4,{...bo,fill:p.palette.common.black})})]}),Or(VF,{children:r}),$n(K,{children:[Or(UF,{children:o}),$n(WF,{children:["by ",n]})]})]})})},or=(e={})=>({search:e.search??"",order:e.order??"",pagesize:e.pagesize??0,page:e.page??0,...e}),YF=$F(uSe);YF.displayName="StatCard";var fSe=e=>{let t=e(or(o1("view"))),r=e(or(o1("clone"))),o=e(or(o1("download"))),a=e(or(o1("deployment"))),n=e(or(o1("share"))),i={view:t,clone:r,download:o,deployment:a,share:n};return{queries:i,isLoading:Object.values(i).some(l=>l.isLoading),hasError:Object.values(i).some(l=>l.isError)}},dSe=(e,t)=>{let r=e[t],o=x7[t],a=r?.isSuccess&&r.data?.patterns?.[0];return a?{label:o.label,countKey:o.countKey,count:a[o.countKey],patternName:a.name||"Unknown",pattern:a,userName:a.user?.first_name||"Unknown",id:o.id,status:a?.catalog_data?.content_class}:null},pSe=({useGetCatalogFilters:e,onCardClick:t,onIconClick:r,onOpenLeaderboard:o})=>{let a=te(),{queries:n,isLoading:i,hasError:l}=fSe(e),s=OE(a.breakpoints.down("sm")),u=lSe(()=>Object.keys(x7).map(d=>dSe(n,d)).filter(d=>!!d),[n]);if(l)return Or(c7,{children:Or(GF,{children:"Error loading statistics. Please try again later."})});let f=u.map((d,p)=>Or(YF,{...d,onCardClick:t,onIconClick:r},`${d.id}-${p}`));return Or(jr,{children:$n(c7,{children:[$n(IF,{children:[$n(K,{display:"flex",alignItems:"center",gap:1,children:[Or(MF,{children:"Top Performers"}),Or(Ql,{style:{height:"2rem",width:"2rem",color:a.palette.icon.secondary,display:s?"none":"inline-flex"}})]}),o&&Or("div",{children:$n(Oe,{variant:"contained",onClick:()=>o(),children:[Or(Ql,{style:{height:"2rem",width:"2rem",display:s?"inline-flex":"none"}}),Or("p",{style:{margin:0,display:s?"none":"inline-flex"},children:"Open Leaderboard"})]})})]}),$n(qF,{children:[i&&Or(KF,{}),Or(zu,{items:f})]})]})})},ZF=$F(pSe);import{styled as Yn}from"@mui/material";var QF=Yn("div")({padding:"1rem 0","& h2":{margin:"1rem 0"},".get-started-desc":{margin:"1rem"}}),XF=Yn("div")(({theme:e})=>({display:"flex",cursor:"pointer",flexDirection:"row",flexWrap:"wrap","& a":{color:e.palette.text.primary,margin:"1rem"}})),JF=Yn("a")(({theme:e})=>({flex:"1",padding:"2rem",textDecoration:"none",background:e.palette.mode==="light"?"#EEEEEE":"#212121",minHeight:"21.5rem",transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)",borderRadius:"10px","&:hover":{boxShadow:`${e.palette.background.brand?.default} 0px 0px 7px`},"& a":{margin:"0 !important","&:hover":{color:e.palette.background.brand?.default}}})),eN=Yn("div")({display:"flex",alignItems:"center",gap:"1rem"}),Tbt=Yn("div")({flex:"0 0 25%",alignSelf:"center",margin:"0 0.5rem"}),Sbt=Yn("img")({height:"3rem",width:"3rem",maxWidth:"3rem",margin:"auto"}),Cbt=Yn("svg")(({theme:e})=>({fontSize:"4.15rem",alignSelf:"center",flex:"0 0 25%",margin:"0 0.5rem",filter:e.palette.mode==="light"?"0%":"invert(100%)",transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"})),ybt=Yn("h2")({fontSize:"1.75rem",margin:"1rem 0"}),bbt=Yn("p")(({theme:e})=>({color:e.palette.text.primary,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"}));import{jsx as If,jsxs as Q2}from"react/jsx-runtime";var mSe=({Steps:e,PrerequisiteLine:t})=>Q2(QF,{children:[Q2("div",{className:"get-started-desc",id:"pre-requisites",children:[If("h2",{children:"Prerequisites"}),If("p",{children:t})]}),If(XF,{id:"Set up",children:e.map((r,o)=>Q2(JF,{href:r.url,target:"_blank",children:[Q2(eN,{children:[If("h2",{children:r.heading}),typeof r.Icon=="string"?If("img",{src:r.Icon,alt:r.heading,width:"40px",height:"40px"}):r.Icon]}),If("p",{children:r.description})]},o))})]}),tN=mSe;import{styled as cSe}from"@mui/material";var xSe=cSe("div")(({theme:e})=>({color:e.palette.text.primary,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)",".chapter-sub-heading, .chapter-sub-heading a":{color:e.palette.mode==="light"?l4:s4,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"},".chapter-alt-heading, .chapter-alt-heading a":{color:"gray"},"& a":{color:e.palette.background.brand?.default,textDecoration:"underline","&:hover":{color:e.palette.background.brand?.default}},"& p > code":{color:"inherit",padding:".2em .4em",margin:"0",fontSize:"85%",wordBreak:"normal",backgroundColor:e.palette.background.code,borderRadius:".25rem"},"& pre":{backgroundColor:"#011627",padding:"1em",borderRadius:"0.5rem",overflowX:"auto",color:"#d6deeb",position:"relative",textAlign:"left",width:"100%",margin:"1rem auto autocompleteClasses",fontFamily:"Courier New, Courier, monospace"},"& li code":{color:"inherit",padding:".2em .4em",margin:"0",fontSize:"85%",wordBreak:"normal",backgroundColor:e.palette.background.code,borderRadius:".25rem"},"& li a":{color:e.palette.text.default,textDecoration:"underline","&:hover":{color:e.palette.background.brand?.default}}})),rN=xSe;import{Fragment as uN}from"react";import{styled as Es}from"@mui/material";var oN=Es("div")({width:"52rem",maxWidth:"90%"}),aN=Es("div")({display:"flex",alignItems:"center",background:"#323339",width:"100%",height:"2.875rem",borderRadius:"2px 2px 0 0"}),Dbt=Es("div")({color:"#76767d",fontFamily:"'Courier New', Courier, monospace",fontSize:"13.5px",margin:"0 auto"}),nN=Es("ul")({position:"absolute",display:"block",listStyle:"none",marginLeft:"1rem",marginTop:"0",marginBottom:"0",padding:"0","& li":{display:"inline-block",width:"0.875rem",height:"0.875rem",background:"#1d1e23",borderRadius:"0.75rem",marginRight:"7px"}}),iN=Es("div")({width:"100%",height:"100%",background:"#1d1e23",borderRadius:"0 0 2px 2px",padding:"24px 32px"}),lN=Es("div")({width:"100%",height:"100%",position:"relative",overflow:"scroll",msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{WebkitAppearance:"none",width:"0",height:"0"},"&.no-scroll-overflow-wrapper":{"& .code-wrapper":{bottom:"0",position:"absolute",minHeight:"100%"}}}),sN=Es("div")(({theme:e})=>({"& pre":{padding:"0",margin:"0",width:"100%",height:"100%",fontStyle:"normal",fontWeight:"normal",fontSize:"12px",lineHeight:"27px",whiteSpace:"pre-wrap",color:e.palette.info.main,"&.short":{lineHeight:"16px"},"&.navy":{color:"#66a2ff"},"&.gray":{color:"#bdbec2"},"&.white":{color:"#fff"},wrapWord:"normal",[e.breakpoints.up("sm")]:{fontSize:"13.5px",lineHeight:"26px"}}}));import{jsx as Zn,jsxs as X2}from"react/jsx-runtime";var hSe=({lines:e,title:t,noScroll:r})=>X2(oN,{children:[X2(aN,{children:[X2(nN,{children:[Zn("li",{style:{backgroundColor:"red"}}),Zn("li",{style:{backgroundColor:"yellow"}}),Zn("li",{style:{backgroundColor:"green"}})]}),t&&Zn("div",{className:"title",children:t})]}),Zn(iN,{children:Zn(lN,{className:r?"no-scroll-overflow-wrapper":"",children:Zn(sN,{children:e&&e.map((o,a)=>Zn(uN,{children:X2("pre",{className:`${o.short?"short":""}`,style:{color:o.color?o.color:"blue"},children:[o.indent&&new Array(o.indent*2).fill({}).map((n,i)=>Zn(uN,{children:"\xA0"},i)),o.code]})},a))})})})]}),fN=hSe;import{styled as gSe}from"@mui/material";var dN=gSe("div")(({theme:e})=>({".chapter-back":{display:"flex",justifyContent:"space-between",alignItems:"center","& a":{display:"inline-flex","& svg":{alignSelf:"center",fontSize:"1.5rem",color:e.palette.grey[600],width:"100%",maxWidth:"1.5rem"},"& h4":{fontWeight:500,textTransform:"capitalize",fontSize:"1.25rem"},"&:hover":{"& svg, & h4":{color:e.palette.text.primary}}},".toc-toggle-btn":{display:"none"},".toc-menu-icon":{width:"1.5rem",height:"1.5rem",cursor:"pointer",fill:e.palette.secondary.main,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"}},".toc-list":{"& ul":{position:"relative",paddingInlineStart:"2.65rem",MozPaddingStart:"2.65rem","&::after":{position:"absolute",inset:"1rem auto 1rem 1.7rem",width:"auto",height:"auto",borderLeft:"1px solid rgba(177, 182, 184, 0.25)",content:'""',zIndex:0},"& li":{width:"fit-content",margin:"1rem 0","&::marker":{color:"rgba(177, 182, 184, 0.75)"},"& p":{margin:0,fontSize:"1rem","& a":{color:e.palette.mode==="light"?"rgb(0 0 0 / 0.65)":"rgb(255 255 255 / 0.65)",transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"}},"&:hover":{"&::marker, & p, & a":{color:e.palette.background.brand?.default}}},".active-link":{"&::marker, & p, & a":{color:e.palette.background.brand?.default}}}}}));import{jsx as J2,jsxs as SSe}from"react/jsx-runtime";var TSe=({availableChapters:e,currentChapter:t,onClick:r})=>{let o=a=>a.split("-").map(l=>l.charAt(0).toUpperCase()+l.slice(1)).join(" ");return J2(dN,{children:J2("div",{className:"toc-list",children:J2("ul",{className:"toc-ul toc-ul-open",children:e.map(a=>J2("li",{className:a+".mdx"===t?"active-link":"",onClick:n=>{r(a,n)},children:SSe("p",{className:"toc-item",children:[" ",o(a)]})},a))})})})},pN=TSe;import{useState as ySe}from"react";import{styled as CSe}from"@mui/material";var mN=CSe("div")(({theme:e})=>({position:"sticky",top:"10rem",left:0,marginLeft:"-3rem",".go-back":{margin:"1rem 0",display:"flex",justifyContent:"space-between",alignItems:"center","& a":{display:"inline-flex","& svg":{alignSelf:"center",fontSize:"1.5rem",color:e.palette.text.disabled,width:"100%",maxWidth:"1.5rem"},"& h4":{fontWeight:500,textTransform:"capitalize",fontSize:"1.25rem",whiteSpace:"nowrap"},"&:hover":{"& svg, & h4":{color:e.palette.text.primary}}}},".toc-toggle-btn":{display:"none"},".toc-ul-open":{display:"flex",flexDirection:"column",marginTop:"0rem",listStyle:"none",height:"auto !important",opacity:"1 !important",transition:"all .4s !important"},".toc-menu-icon":{width:"1.5rem",height:"1.5rem",cursor:"pointer",fill:e.palette.common.white},".toc-sub-heading":{marginTop:"1rem",fontWeight:500,fontSize:"1.15rem"},".toc-item":{lineHeight:"1.5rem"},".toc-list":{"& ul":{position:"relative",paddingInlineStart:"1.5rem",listStyleType:"none","& li":{margin:"1rem 0 1rem 0.5rem",width:"fit-content","&::marker":{color:"rgba(177, 182, 184, 0.75)"},"& p":{margin:0,fontSize:"1rem","& a":{color:"rgba(0, 0, 0, 0.65)"}},"&:hover":{"&::marker, & p, & a":{color:e.palette.secondary.contrastText}}},".active-link":{"&::marker, & p, & a":{color:e.palette.secondary.contrastText}}}},"@media only screen and (max-width: 991px)":{position:"initial",marginLeft:"-0.5rem",width:"auto",".toc-toggle-btn":{display:"flex"},".go-back":{marginLeft:0},".toc-ul":{opacity:0,height:0,transition:"none",paddingLeft:".8rem !important"},".toc-item":{lineHeight:".8rem"}}}));import{jsx as Nr,jsxs as e5}from"react/jsx-runtime";var bSe=[{name:"Set up",link:"/cloud-native-management/meshery"},{name:"Run Meshery",link:"/cloud-native-management/meshery/getting-started"},{name:"Manage Meshery",link:"/cloud-native-management/meshery/operating-service-meshes"}],vSe=({coursesData:e})=>{let[t,r]=ySe(!1);return e5(mN,{children:[e5("div",{className:"go-back",children:[e5("a",{href:"/learn/learning-paths",children:[Nr(b4,{}),Nr("h4",{children:"Learning Paths"})]}),Nr("div",{className:"toc-toggle-btn",children:t?Nr(vt,{className:"toc-menu-icon",onClick:()=>{r(!t)}}):Nr(Md,{className:"toc-menu-icon",onClick:()=>{r(!t)}})})]}),Nr("div",{className:"toc-list",children:e5("ul",{className:`toc-ul ${t?"toc-ul-open":""}`,children:[Nr("a",{href:"#pre-requisites",children:Nr("h5",{className:"toc-sub-heading",children:"Pre-requisites"})}),bSe.map((o,a)=>Nr("li",{children:Nr("p",{className:"toc-item",children:Nr("a",{href:`#${o.name}`,children:o.name})})},a)),Nr("a",{href:"#courses-list",children:Nr("h5",{className:"toc-sub-heading",children:"Courses"})}),e.map((o,a)=>Nr("li",{children:Nr("p",{className:"toc-item",children:Nr("a",{href:`#${o.frontmatter.courseTitle}`,children:o.frontmatter.courseTitle})})},a))]})})]})},cN=vSe;import{Button as wSe}from"@mui/material";import ESe from"@mui/material/Autocomplete";import xN from"@mui/material/CircularProgress";import{useState as t5}from"react";import{useDebounce as RSe}from"use-debounce";import{Fragment as h7,jsx as Ar,jsxs as a1}from"react/jsx-runtime";var OSe=({usersData:e,disabled:t=!1,shareWithNewUsers:r,useGetAllUsersQuery:o})=>{let[a,n]=t5(!1),[i,l]=t5(""),[s,u]=t5([]),[f,d]=t5(!1),p=te(),[m]=RSe(i,300),{data:x,isLoading:h}=o({search:m,page:0,pagesize:10},{skip:m.trim().length==0}),g=x?.data??[],T=async()=>{console.log("users to share with",s);try{d(!0);let b=await r(s);b.error?n(b.error):u([])}catch(b){console.log("error while sharing",b)}finally{d(!1)}},E=(b,A)=>{A&&(u(A),l(""))},v=(b,A,B)=>{B==="input"?l(A):B==="clear"&&l("")},I=g.filter(b=>!s.concat(e).find(A=>A.email===b.email)),k=t||f||s.length===0,C=({avatarObj:b,...A})=>Ar(bt,{avatar:Ar(Nt,{alt:b.first_name,src:b.avatar_url,children:b.avatar_url?"":b.first_name?.charAt(0)}),label:b.email,size:"small",...A},b.user_id);return Ar(h7,{children:a1(K,{display:"flex",alignItems:"center",justifyContent:"space-between",gap:1,children:[Ar(ESe,{id:"user-search-field",sx:{width:"100%"},filterOptions:b=>b,options:I,renderTags:(b,A)=>b.map((B,P)=>Ar(C,{avatarObj:B,...A({index:P})})),disableClearable:!0,includeInputInList:!0,filterSelectedOptions:!0,multiple:!0,disableListWrap:!0,disabled:f,inputValue:i,loading:h,value:s,getOptionLabel:b=>b.email,noOptionsText:h?"Loading...":i==""?"Search using name or email":"No users found",onChange:E,onInputChange:v,isOptionEqualToValue:(b,A)=>b.email===A.email,renderInput:b=>Ar(Wr,{...b,placeholder:"Add Users",error:!!a,helperText:a,fullWidth:!0,label:"",disabled:k,sx:{"& .MuiOutlinedInput-root":{paddingInline:"0.5rem",paddingBlock:"0.1rem"}},InputProps:{...b.InputProps,endAdornment:Ar(h7,{children:h?Ar(xN,{color:"inherit",size:20}):null})}}),renderOption:(b,A)=>Ar(K,{component:"li",sx:{"& > img":{mr:2,flexShrink:0}},...b,children:a1(xe,{container:!0,alignItems:"center",children:[Ar(xe,{children:Ar(K,{sx:{color:"text.secondary",mr:2},children:Ar(Nt,{alt:A.first_name,src:A.avatar_url,children:A.avatar_url?"":Ar(vn,{})})})}),Ar(xe,{size:"grow",children:A.deleted_at?.Valid?a1(G,{variant:"body2",color:"text.secondary",children:[A.email," (deleted)"]}):a1(h7,{children:[a1(G,{variant:"body2",children:[A.first_name," ",A.last_name]}),Ar(G,{variant:"body2",color:"text.secondary",children:A.email})]})})]})})}),Ar(wSe,{variant:"contained",sx:{"&.Mui-disabled":{color:`${p.palette.text.secondary} !important`,backgroundColor:`${p.palette.action.disabled} !important`}},onClick:T,disabled:k,children:f?Ar(xN,{size:24,sx:{color:"#fff"}}):"Share"})]})})},g7=OSe;import{Autocomplete as ASe}from"@mui/material";import PSe,{useCallback as T7,useEffect as _Se,useMemo as kSe,useState as Mf}from"react";import{Fragment as hN,jsx as At,jsxs as Rs}from"react/jsx-runtime";var ISe=({usersData:e,setUsersData:t,label:r="Add User",setDisableSave:o,handleNotifyPref:a,notifyUpdate:n,isCreate:i,searchType:l,disabled:s=!1,currentUserData:u,searchedUsers:f=[],isUserSearchLoading:d,fetchSearchedUsers:p,usersSearch:m,setUsersSearch:x})=>{let[h,g]=Mf(""),[T,E]=Mf(!1),[v,I]=Mf(!1),[k,C]=Mf(!0),[b,A]=Mf(""),[B,P]=Mf(e||[]);_Se(()=>{P(e||[])},[e]);let X=kSe(()=>{if(k&&!m&&u)return[u];let H=f.filter(M=>M.user_id!==u?.user_id);return!m&&u?[u,...H]:H},[f,u,m,k]),Z=T7((H,M)=>{M.stopPropagation();let L=B.filter(F=>F.user_id!==H);P(L),t(L),o&&o(!1)},[B,t,o,p,b]),N=T7((H,M)=>{if(!M)return;let L=B.some(q=>q.user_id===M.user_id),F=M.deleted_at?.Valid===!0;if(L||F){g(L?"User already selected":"User does not exist");return}A(""),x(""),g(""),E(!1),P(q=>[...q,M]),t(q=>[...q,M]),o&&o(!1)},[B,t,o,x]),W=T7((H,M)=>{if(A(M),M==="")E(!0),x(""),C(!0);else{let L=encodeURIComponent(M);x(M),p(L),g(""),E(!0),C(!1)}},[p,x]);return Rs(hN,{children:[At(ASe,{id:"user-search-field",style:{width:"100%"},open:T,options:X,getOptionLabel:()=>"",isOptionEqualToValue:(H,M)=>H.user_id===M.user_id,onOpen:()=>E(!0),onClose:()=>E(!1),inputValue:b,onChange:N,onInputChange:W,filterOptions:H=>H,loading:d,disabled:s,disableClearable:!0,freeSolo:!1,value:void 0,selectOnFocus:!0,blurOnSelect:!0,clearOnBlur:!0,popupIcon:null,forcePopupIcon:!1,noOptionsText:d?"Loading...":"No users found",renderInput:H=>At(Wr,{...H,label:r,error:!!h,helperText:h,InputLabelProps:{style:{fontFamily:"inherit"}},InputProps:{...H.InputProps,endAdornment:At(PSe.Fragment,{children:d?At(Bt,{color:"inherit",size:20}):null})}}),renderOption:(H,M)=>At("li",{...H,id:M.user_id,children:Rs(K,{sx:{"& > img":{mr:2,flexShrink:0}},children:[" ",Rs(xe,{container:!0,alignItems:"center",children:[At(xe,{children:At(K,{sx:{color:"text.secondary",mr:2},children:At(Nt,{alt:M.first_name,src:M.avatar_url,children:M.avatar_url?"":At(vn,{})})})}),At(xe,{size:"grow",children:M.deleted?Rs(G,{variant:"body2",color:"text.secondary",children:[M.email," (deleted)"]}):Rs(hN,{children:[Rs(G,{variant:"body2",children:[M.first_name," ",M.last_name]}),At(G,{variant:"body2",color:"text.secondary",children:M.email})]})})]})]})})}),!i&&At(Z3,{row:!0,children:At("div",{style:{display:"flex",flexWrap:"nowrap"},children:At(Wl,{control:At(Vr,{checked:n,onChange:a,name:"notify",color:"primary"}),label:`Notify ${l} of membership change`})})}),Rs(K,{sx:{display:"flex",flexWrap:"wrap",gap:.5,mt:e?.length>0?"0.5rem":""},children:[!v&&B?.[0]&&At(bt,{avatar:At(Nt,{alt:B[0].first_name,src:B[0].avatar_url,children:!B[0].avatar_url&&B[0].first_name?.[0]}),label:B[0].email,onDelete:H=>Z(B[0].user_id,H),deleteIcon:At(Kt,{title:"Remove user",children:At(vt,{style:Gr})}),size:"small"},B[0].user_id),v&&B?.map(H=>At(bt,{avatar:At(Nt,{alt:H.first_name,src:H.avatar_url,children:!H.avatar_url&&H.first_name?.[0]}),label:H.email,onDelete:M=>Z(H.user_id,M),deleteIcon:At(Kt,{title:"Remove user",children:At(vt,{style:Gr})}),size:"small"},H.user_id)),B?.length>1&&At(G,{onClick:()=>I(!v),sx:{cursor:"pointer"},children:v?"(hide)":`(+${B.length-1})`})]})]})},gN=ISe;import{Box as GN,Stack as WN,Step as WCe,StepConnector as qCe,StepLabel as GCe,Stepper as zCe}from"@mui/material";import{stepConnectorClasses as Bf}from"@mui/material/StepConnector";function Lf(e,...t){let r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>r.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${r} for the full message.`}import BSe from"@emotion/styled";function TN(e){for(var t=0,r,o=0,a=e.length;a>=4;++o,a-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var SN={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function CN(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var MSe=!1,LSe=/[A-Z]|^ms/g,DSe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wN=function(t){return t.charCodeAt(1)===45},yN=function(t){return t!=null&&typeof t!="boolean"},S7=CN(function(e){return wN(e)?e:e.replace(LSe,"-$&").toLowerCase()}),bN=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(DSe,function(o,a,n){return tn={name:a,styles:n,next:tn},a})}return SN[t]!==1&&!wN(t)&&typeof r=="number"&&r!==0?r+"px":r},FSe="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function n1(e,t,r){if(r==null)return"";var o=r;if(o.__emotion_styles!==void 0)return o;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return tn={name:a.name,styles:a.styles,next:tn},a.name;var n=r;if(n.styles!==void 0){var i=n.next;if(i!==void 0)for(;i!==void 0;)tn={name:i.name,styles:i.styles,next:tn},i=i.next;var l=n.styles+";";return l}return NSe(e,t,r)}case"function":{if(e!==void 0){var s=tn,u=r(e);return tn=s,n1(e,t,u)}break}}var f=r;if(t==null)return f;var d=t[f];return d!==void 0?d:f}function NSe(e,t,r){var o="";if(Array.isArray(r))for(var a=0;a<r.length;a++)o+=n1(e,t,r[a])+";";else for(var n in r){var i=r[n];if(typeof i!="object"){var l=i;t!=null&&t[l]!==void 0?o+=n+"{"+t[l]+"}":yN(l)&&(o+=S7(n)+":"+bN(n,l)+";")}else{if(n==="NO_COMPONENT_SELECTOR"&&MSe)throw new Error(FSe);if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)yN(i[s])&&(o+=S7(n)+":"+bN(n,i[s])+";");else{var u=n1(e,t,i);switch(n){case"animation":case"animationName":{o+=S7(n)+":"+u+";";break}default:o+=n+"{"+u+"}"}}}}return o}var vN=/label:\s*([^\s;{]+)\s*(;|$)/g,tn;function EN(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,a="";tn=void 0;var n=e[0];if(n==null||n.raw===void 0)o=!1,a+=n1(r,t,n);else{var i=n;a+=i[0]}for(var l=1;l<e.length;l++)if(a+=n1(r,t,e[l]),o){var s=n;a+=s[l]}vN.lastIndex=0;for(var u="",f;(f=vN.exec(a))!==null;)u+="-"+f[1];var d=TN(a)+u;return{name:d,styles:a,next:tn}}import{ThemeContext as Wvt,keyframes as qvt,css as Gvt}from"@emotion/react";function C7(e,t){let r=BSe(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{let a=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${a})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
80
80
|
`)):o.some(n=>n===void 0)&&console.error(`MUI: the styled(${a})(...args) API requires all its args to be defined.`),r(...o)}:r}function ON(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var RN=[];function y7(e){return RN[0]=e,EN(RN)}var O7=Hr(E7());import*as R7 from"react";function pl(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function _N(e){if(R7.isValidElement(e)||(0,O7.isValidElementType)(e)||!pl(e))return e;let t={};return Object.keys(e).forEach(r=>{t[r]=_N(e[r])}),t}function ml(e,t,r={clone:!0}){let o=r.clone?{...e}:e;return pl(e)&&pl(t)&&Object.keys(t).forEach(a=>{R7.isValidElement(t[a])||(0,O7.isValidElementType)(t[a])?o[a]=t[a]:pl(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&pl(e[a])?o[a]=ml(e[a],t[a],r):r.clone?o[a]=pl(t[a])?_N(t[a]):t[a]:o[a]=t[a]}),o}var USe=e=>{let t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,o)=>r.val-o.val),t.reduce((r,o)=>({...r,[o.key]:o.val}),{})};function A7(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5,...a}=e,n=USe(t),i=Object.keys(n);function l(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function s(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-o/100}${r})`}function u(p,m){let x=i.indexOf(m);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(x!==-1&&typeof t[i[x]]=="number"?t[i[x]]:m)-o/100}${r})`}function f(p){return i.indexOf(p)+1<i.length?u(p,i[i.indexOf(p)+1]):l(p)}function d(p){let m=i.indexOf(p);return m===0?l(i[1]):m===i.length-1?s(i[m]):u(p,i[i.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:i,values:n,up:l,down:s,between:u,only:f,not:d,unit:r,...a}}function P7(e,t){if(!e.containerQueries)return t;let r=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,a)=>{let n=/min-width:\s*([0-9.]+)/;return+(o.match(n)?.[1]||0)-+(a.match(n)?.[1]||0)});return r.length?r.reduce((o,a)=>{let n=t[a];return delete o[a],o[a]=n,o},{...t}):t}function _7(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function k7(e,t){let r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
81
81
|
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Lf(18,`(${t})`));return null}let[,o,a]=r,n=Number.isNaN(+o)?o||0:+o;return e.containerQueries(a).up(n)}function p5(e){let t=(n,i)=>n.replace("@media",i?`@container ${i}`:"@container");function r(n,i){n.up=(...l)=>t(e.breakpoints.up(...l),i),n.down=(...l)=>t(e.breakpoints.down(...l),i),n.between=(...l)=>t(e.breakpoints.between(...l),i),n.only=(...l)=>t(e.breakpoints.only(...l),i),n.not=(...l)=>{let s=t(e.breakpoints.not(...l),i);return s.includes("not all and")?s.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):s}}let o={},a=n=>(r(o,n),o);return r(a),{...e,containerQueries:a}}var WSe={borderRadius:4},kN=WSe;var Df=Hr(oT()),qSe=process.env.NODE_ENV!=="production"?Df.default.oneOfType([Df.default.number,Df.default.string,Df.default.object,Df.default.array]):{},Oo=qSe;function GSe(e,t){return t?ml(e,t,{clone:!1}):e}var Qn=GSe;var i1={xs:0,sm:600,md:900,lg:1200,xl:1536},IN={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${i1[e]}px)`},zSe={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:i1[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function $r(e,t,r){let o=e.theme||{};if(Array.isArray(t)){let n=o.breakpoints||IN;return t.reduce((i,l,s)=>(i[n.up(n.keys[s])]=r(t[s]),i),{})}if(typeof t=="object"){let n=o.breakpoints||IN;return Object.keys(t).reduce((i,l)=>{if(_7(n.keys,l)){let s=k7(o.containerQueries?o:zSe,l);s&&(i[s]=r(t[l],l))}else if(Object.keys(n.values||i1).includes(l)){let s=n.up(l);i[s]=r(t[l],l)}else{let s=l;i[s]=t[s]}return i},{})}return r(t)}function MN(e={}){return e.keys?.reduce((r,o)=>{let a=e.up(o);return r[a]={},r},{})||{}}function LN(e,t){return e.reduce((r,o)=>{let a=r[o];return(!a||Object.keys(a).length===0)&&delete r[o],r},t)}function cl(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Lf(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ff(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){let o=`vars.${t}`.split(".").reduce((a,n)=>a&&a[n]?a[n]:null,e);if(o!=null)return o}return t.split(".").reduce((o,a)=>o&&o[a]!=null?o[a]:null,e)}function l1(e,t,r,o=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||o:a=Ff(e,r)||o,t&&(a=t(a,o,e)),a}function jSe(e){let{prop:t,cssProperty:r=e.prop,themeKey:o,transform:a}=e,n=i=>{if(i[t]==null)return null;let l=i[t],s=i.theme,u=Ff(s,o)||{};return $r(i,l,d=>{let p=l1(u,a,d);return d===p&&typeof d=="string"&&(p=l1(u,a,`${t}${d==="default"?"":cl(d)}`,d)),r===!1?p:{[r]:p}})};return n.propTypes=process.env.NODE_ENV!=="production"?{[t]:Oo}:{},n.filterProps=[t],n}var ht=jSe;function m5(e){let t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}var KSe={m:"margin",p:"padding"},$Se={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},DN={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},YSe=m5(e=>{if(e.length>2)if(DN[e])e=DN[e];else return[e];let[t,r]=e.split(""),o=KSe[t],a=$Se[r]||"";return Array.isArray(a)?a.map(n=>o+n):[o+a]}),c5=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],x5=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],I7=[...c5,...x5];function Os(e,t,r,o){let a=Ff(e,t,!0)??r;return typeof a=="number"||typeof a=="string"?n=>typeof n=="string"?n:(process.env.NODE_ENV!=="production"&&typeof n!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${n}.`),typeof a=="string"?`calc(${n} * ${a})`:a*n):Array.isArray(a)?n=>{if(typeof n=="string")return n;let i=Math.abs(n);process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>a.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${i} > ${a.length-1}, you need to add the missing values.`].join(`
|
|
82
82
|
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|