@sistent/sistent 0.14.203 → 0.14.204
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(H),null," "));var De=we(y,R,k,F,V+"."+
|
|
|
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 tTe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];jk.peek=aTe;var P8={canContainEols:["delete"],enter:{strikethrough:rTe},exit:{strikethrough:oTe}},_8={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:tTe}],handlers:{delete:jk}};function rTe(e){this.enter({type:"delete",children:[]},e)}function oTe(e){this.exit(e)}function jk(e,t,r,o){let a=gs(o),n=r.enter("strikethrough"),i=a.move("~~");return i+=n2(e,r,{...a.current(),before:i,after:"~"}),i+=a.move("~~"),n(),i}function aTe(){return"~"}I8.peek=nTe;function I8(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=a2(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 nTe(){return"`"}function iTe(e){return e.length}function $k(e,t){let r=t||{},o=(r.align||[]).concat(),a=r.stringLength||iTe,n=[],i=[],l=[],s=[],u=0,f=-1;for(;++f<e.length;){let h=[],g=[],T=-1;for(e[f].length>u&&(u=e[f].length);++T<e[f].length;){let w=lTe(e[f][T]);if(r.alignDelimiters!==!1){let E=a(w);g[T]=E,(s[T]===void 0||E>s[T])&&(s[T]=E)}h.push(w)}i[f]=h,l[f]=g}let d=-1;if(typeof o=="object"&&"length"in o)for(;++d<u;)n[d]=Kk(o[d]);else{let h=Kk(o);for(;++d<u;)n[d]=h}d=-1;let p=[],m=[];for(;++d<u;){let h=n[d],g="",T="";h===99?(g=":",T=":"):h===108?g=":":h===114&&(T=":");let w=r.alignDelimiters===!1?1:Math.max(1,s[d]-g.length-T.length),E=g+"-".repeat(w)+T;r.alignDelimiters!==!1&&(w=g.length+w+T.length,w>s[d]&&(s[d]=w),m[d]=w),p[d]=E}i.splice(1,0,p),l.splice(1,0,m),f=-1;let x=[];for(;++f<i.length;){let h=i[f],g=l[f];d=-1;let T=[];for(;++d<u;){let w=h[d]||"",E="",I="";if(r.alignDelimiters!==!1){let D=s[d]-(g[d]||0),C=n[d];C===114?E=" ".repeat(D):C===99?D%2?(E=" ".repeat(D/2+.5),I=" ".repeat(D/2-.5)):(E=" ".repeat(D/2),I=E):I=" ".repeat(D)}r.delimiterStart!==!1&&!d&&T.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&w==="")&&(r.delimiterStart!==!1||d)&&T.push(" "),r.alignDelimiters!==!1&&T.push(E),T.push(w),r.alignDelimiters!==!1&&T.push(I),r.padding!==!1&&T.push(" "),(r.delimiterEnd!==!1||d!==u-1)&&T.push("|")}x.push(r.delimiterEnd===!1?T.join("").replace(/ +$/,""):T.join(""))}return x.join(`
|
|
57
57
|
`)}function lTe(e){return e==null?"":String(e)}function Kk(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 M8={enter:{table:sTe,tableData:Yk,tableHeader:Yk,tableRow:fTe},exit:{codeText:dTe,table:uTe,tableData:k8,tableHeader:k8,tableRow:k8}};function sTe(e){let t=e._align;this.enter({type:"table",align:t.map(r=>r==="none"?null:r),children:[]},e),this.setData("inTable",!0)}function uTe(e){this.exit(e),this.setData("inTable")}function fTe(e){this.enter({type:"tableRow",children:[]},e)}function k8(e){this.exit(e)}function Yk(e){this.enter({type:"tableCell",children:[]},e)}function dTe(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,pTe));let r=this.stack[this.stack.length-1];r.value=t,this.exit(e)}function pTe(e,t){return t==="|"?t:e}function L8(e){let t=e||{},r=t.tableCellPadding,o=t.tablePipeAlign,a=t.stringLength,n=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
58
58
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:i,tableRow:l,tableCell:s,inlineCode:p}};function i(m,x,h,g){return u(f(m,h,g),m.align)}function l(m,x,h,g){let T=d(m,h,g),w=u([T]);return w.slice(0,w.indexOf(`
|
|
59
|
-
`))}function s(m,x,h,g){let T=h.enter("tableCell"),w=h.enter("phrasing"),E=n2(m,h,{...g,before:n,after:n});return w(),T(),E}function u(m,x){return $k(m,{align:x,alignDelimiters:o,padding:r,stringLength:a})}function f(m,x,h){let g=m.children,T=-1,w=[],E=x.enter("table");for(;++T<g.length;)w[T]=d(g[T],x,h);return E(),w}function d(m,x,h){let g=m.children,T=-1,w=[],E=x.enter("tableRow");for(;++T<g.length;)w[T]=s(g[T],m,x,h);return E(),w}function p(m,x,h){let g=I8(m,x,h);return h.stack.includes("tableCell")&&(g=g.replace(/\|/g,"\\$&")),g}}function Zk(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 Qk(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 Xk(e,t,r,o){let a=Qk(r),n=r.bulletCurrent||Zk(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 D8={exit:{taskListCheckValueChecked:Jk,taskListCheckValueUnchecked:Jk,paragraph:mTe}},F8={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:cTe}};function Jk(e){let t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function mTe(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 cTe(e,t,r,o){let a=e.children[0],n=typeof e.checked=="boolean"&&a&&a.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",l=gs(o);n&&l.move(i);let s=Xk(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 N8(){return[v8,O8(),P8,M8,D8]}function B8(e){return{extensions:[w8,A8(),_8,L8(e),F8]}}function wp(e={}){let t=this.data();r("micromarkExtensions",Fk(e)),r("fromMarkdownExtensions",N8()),r("toMarkdownExtensions",B8(e));function r(o,a){(t[o]?t[o]:t[o]=[]).push(a)}}import{styled as yr}from"@mui/material";var i2=yr("a")(({theme:e})=>({color:e.palette.background.brand?.default,textDecoration:"none","&:hover":{textDecoration:"underline"},cursor:"pointer",fontFamily:"inherit"})),eM=yr("a")(()=>({textDecoration:"none","&:hover":{textDecoration:"underline"},cursor:"pointer"})),tM=yr("p")(({theme:e})=>({color:e.palette.text.default,marginBlock:"0px",...e.typography.textB1Regular,fontFamily:"inherit"})),rM=yr("p")(({theme:e})=>({color:e.palette.text.constant?.white||Gw.inverse,marginBlock:"0px",fontFamily:"inherit"})),H8=yr("h1")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),V8=yr("h2")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),U8=yr("h3")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),W8=yr("h4")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),q8=yr("h5")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),G8=yr("h6")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),z8=yr("blockquote")(({theme:e})=>({color:e.palette.text.default,borderLeft:`2px solid ${e.palette.text.brand}`,backgroundColor:e.palette.background.tertiary})),j8=yr("ul")(({theme:e})=>({color:e.palette.text.default})),K8=yr("li")(({theme:e})=>({color:e.palette.text.default,...e.typography.textB1Regular,fontFamily:"inherit"})),$8=yr("th")(({theme:e})=>({color:e.palette.text.default,...e.typography.textH3Medium,marginBlock:"0px",fontFamily:"inherit"})),Y8=yr("td")(({theme:e})=>({color:e.palette.text.default,marginBlock:"0px",...e.typography.textB1Regular,fontFamily:"inherit"})),oM=yr("pre")(({theme:e})=>({background:e.palette.background.code,whiteSpace:"pre-line",fontFamily:"inherit"})),aM=yr("code")(({theme:e})=>({background:e.palette.background.code,whiteSpace:"pre-line",padding:"1.5px",paddingInline:"5px",fontFamily:"inherit",borderRadius:3}));import{jsx as Fe}from"react/jsx-runtime";var sf=({content:e})=>Fe($u,{remarkPlugins:[wp],rehypePlugins:[u8],components:{p:({...t})=>Fe(tM,{children:t.children}),a:({...t})=>Fe(i2,{onClick:r=>{r.preventDefault(),window.open(t.href,"_blank")},href:t.href,children:t.children}),h1:({...t})=>Fe(H8,{children:t.children}),h2:({...t})=>Fe(V8,{children:t.children}),h3:({...t})=>Fe(U8,{children:t.children}),h4:({...t})=>Fe(W8,{children:t.children}),h5:({...t})=>Fe(q8,{children:t.children}),h6:({...t})=>Fe(G8,{children:t.children}),blockquote:({...t})=>Fe(z8,{children:t.children}),ul:({...t})=>Fe(j8,{children:t.children}),li:({...t})=>Fe(K8,{children:t.children}),th:({...t})=>Fe($8,{children:t.children}),td:({...t})=>Fe(Y8,{children:t.children}),pre:({...t})=>Fe(oM,{children:t.children}),code:({...t})=>Fe(aM,{children:t.children})},children:e}),l2=({content:e})=>Fe($u,{remarkPlugins:[wp],components:{p:({...t})=>Fe(rM,{children:t.children}),a:({...t})=>Fe(i2,{onClick:r=>{window.open(t.href,"_blank"),r.stopPropagation()},as:"a",children:t.children}),h1:({...t})=>Fe(H8,{children:t.children}),h2:({...t})=>Fe(V8,{children:t.children}),h3:({...t})=>Fe(U8,{children:t.children}),h4:({...t})=>Fe(W8,{children:t.children}),h5:({...t})=>Fe(q8,{children:t.children}),h6:({...t})=>Fe(G8,{children:t.children}),blockquote:({...t})=>Fe(z8,{children:t.children}),ul:({...t})=>Fe(j8,{children:t.children}),li:({...t})=>Fe(K8,{children:t.children}),th:({...t})=>Fe($8,{children:t.children}),td:({...t})=>Fe(Y8,{children:t.children})},children:e}),xTe=({content:e})=>Fe($u,{remarkPlugins:[wp],components:{a:({...t})=>Fe(eM,{onClick:r=>{window.open(t.href,"_blank"),r.stopPropagation()},as:"a",children:t.children})},children:e});import{jsx as nM}from"react/jsx-runtime";function gTe({title:e,onClick:t,placement:r,children:o,fontSize:a,fontWeight:n=400,variant:i="standard",bgColor:l="#141414",componentsProps:s={},...u}){return nM(Gt,{enterTouchDelay:0,leaveTouchDelay:2e3,componentsProps:hTe.merge({tooltip:{sx:{background:l,color:mt,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"?nM(l2,{content:e}):e,placement:r,arrow:!0,onClick:t,...u,children:o})}var ce=gTe;import{jsx as Z8}from"react/jsx-runtime";var TTe=({helpText:e,style:t={},...r})=>Z8(ce,{title:e,...r,children:Z8("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",...t},children:Z8(L4,{...qr})})}),tl=TTe;import{Fragment as ETe,jsx as rl,jsxs as Q8}from"react/jsx-runtime";var iM=L(Mt)(({theme:e,borderColor:t})=>({width:e.spacing(4),height:e.spacing(4),cursor:"pointer",border:`1.5px solid ${t||e.palette.common.white} !important`})),CTe=L("div")(({theme:e})=>({width:e.spacing(4.5),height:e.spacing(4.5),border:`1.5px solid ${e.palette.common.white}`,borderRadius:"50%",background:ex,display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"-10px",zIndex:0,"&:hover":{cursor:"pointer"}})),yTe=L("div")({display:"flex",alignItems:"center",padding:"5px 15px 5px 10px","&:hover":{cursor:"pointer",background:"#cecece80 !important"}}),bTe=L(G)({marginLeft:"10px"}),vTe=L(K3)(()=>({"& .MuiPopover-paper":{marginTop:"10px",maxHeight:"331px"}})),wTe=({users:e,providerUrl:t})=>{let[r,o]=STe(null),a=f=>{window.open(f,"_blank","noreferrer")},n=f=>{o(f.currentTarget)},i=()=>{o(null)},l=Object.entries(e).length,s=4,u=te();return Q8(U3,{max:s+1,children:[Object.entries(e).slice(0,s).map(([f,d])=>rl(ce,{title:d.name,arrow:!0,children:rl(iM,{alt:d.name,src:d.avatar_url,borderColor:d.border_color,imgProps:{referrerPolicy:"no-referrer"},onClick:()=>a(`${t}/user/${d.user_id}`)},f)},f)),l>s&&Q8(ETe,{children:[rl(CTe,{onClick:n,"aria-describedby":"user-popover",children:r?rl(So,{fill:u.palette.common.white,...qr,style:{marginLeft:"4px"}}):rl(G,{variant:"body2",style:{color:u.palette.common.white,fontSize:"12px"},children:`+${l-s}`})}),rl(vTe,{id:"user-popover",open:!!r,anchorEl:r,onClose:i,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:Object.entries(e).slice(s,l).map(([f,d])=>Q8(yTe,{onClick:()=>a(`${t}/user/${d.user_id}`),children:[rl(iM,{alt:d.name,src:d.avatar_url,borderColor:d.border_color,imgProps:{referrerPolicy:"no-referrer"}}),rl(bTe,{variant:"body1",children:d.name})]},f))})]})]})},lM=wTe;import{jsx as sM}from"react/jsx-runtime";function RTe({tooltip:e,tooltipPlacement:t="top",variant:r="filled",label:o,icon:a,onClick:n,onDelete:i,style:l,...s}){return sM(ce,{title:e,placement:t,children:sM(Tt,{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 uM=RTe;import{useState as fM}from"react";import{Fragment as dM,jsx as Hn,jsxs as ATe}from"react/jsx-runtime";var OTe=({zoomEffect:e=!1,imgURL:t,type:r,width:o,height:a,style:n={}})=>{let[i,l]=fM(!1),[s,u]=fM(!1),f=()=>{e&&u(!0)},d=()=>{u(!1)},p=({type:m})=>m.type==="filter"?Hn(V4,{width:o,height:a,style:n}):Hn(Na,{width:o,height:a,style:n});return Hn(dM,{children:t&&t.length>0?Hn("div",{style:{width:"100%",height:"100%",position:"relative"},children:i?Hn(p,{type:r}):ATe(dM,{children:[Hn("img",{src:t[0],alt:"Design SnapShot",loading:"lazy",onClick:f,onError:()=>l(!0),style:{cursor:"pointer",width:"100%",height:"100%",objectFit:"cover"}}),Hn(aa,{open:s,onClose:d,style:{backgroundColor:"rgba(0, 0, 0, 0.8)"},PaperProps:{style:{background:"transparent",boxShadow:"none",overflow:"hidden",maxWidth:"60vw"}},children:Hn("img",{src:t[0],alt:"Zoomed Design SnapShot",style:{objectFit:"contain",maxWidth:"100%",maxHeight:"100%"}})})]})}):Hn(p,{type:r})})},uf=OTe;import{useEffect as LTe,useState as DTe}from"react";import PTe from"js-yaml";var _Te=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)}}),ITe=async(e,t,r)=>{let o=[];for(let a of e){let n=`${t}/${a.toLowerCase()}/${r}/${a.toLowerCase()}-color.svg`;await _Te(n)&&o.push(a)}return o},pM=e=>{try{return PTe.load(e)?.version||X8}catch(t){return console.error("Failed to parse pattern file to get version:",t),X8}},mM=async({technologies:e,basePath:t="",subBasePath:r="",setAvailableTechnologies:o})=>{let a=await ITe(e,t,r);o(a)},X8="0.0.0",s2=e=>{switch(e.visibility){case"published":return e?.catalog_data?.published_version||X8;case"public":case"private":return pM(e.pattern_file);default:return pM(e.pattern_file)}};import{styled as Ne,Typography as kTe}from"@mui/material";var cM=Ne("div")(()=>({width:"85px",height:"88px",overflow:"hidden",position:"absolute",top:"-3px",left:"-3px",zIndex:10})),xM=Ne("div")(()=>({color:"#eee",fontSize:"0.875rem",lineHeight:"1.5",fontWeight:"600",borderBottom:"1px solid rgba(231, 239, 243, 0.40)"})),hM=Ne("div")(()=>({color:"#eee",overflow:"hidden",fontSize:"14px",lineHeight:"24px",fontWeight:"400",marginTop:".8rem"})),gM=Ne("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:u4.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})),J8=Ne("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})),e6=Ne("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"}})),TM=Ne("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})),SM=Ne("p")(({theme:e})=>({fontSize:"1rem",textTransform:"capitalize",margin:"0rem",lineHeight:"1.5",textAlign:"center",color:e.palette.mode==="light"?xn:Do,fontWeight:"600"})),CM=Ne(kTe)(({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"}})),yM=Ne("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":xn,...e&&{position:"absolute",bottom:"0px"},...!e&&{marginTop:"1.2rem"},borderRadius:"0 0 0.9375rem 0.9375rem",width:"100%"})),bM=Ne("div")(()=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.2rem",color:"rgba(26, 26, 26, .8)",margin:"0rem",padding:"0.1rem"})),u2=Ne("div")(()=>({height:"max-content",display:"flex",marginTop:"-1rem",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start","@media (max-width:1200px)":{height:"max-content"}})),B9t=Ne("div")(({theme:e})=>({background:e.palette.background.surfaces,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.5rem",width:"100%",borderRadius:"0.5rem"})),H9t=Ne("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"})),vM=Ne("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"})),wM=Ne("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})),V9t=Ne("div")(()=>({perspective:"1000px","&:hover .flipper":{transform:"rotateY(-180deg)"}})),U9t=Ne("div")(()=>({transition:"0.6s",transformStyle:"preserve-3d",position:"relative"})),MTe=Ne("div")(()=>({backfaceVisibility:"hidden",position:"absolute",top:0,left:0,width:"100%",height:"100%"})),W9t=Ne(MTe)(()=>({zIndex:2,transform:"rotateY(0deg)"})),q9t=Ne("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"})),G9t=Ne("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"})),EM=Ne("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"}}),RM=Ne("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"})),z9t=Ne("div")({display:"flex",alignItems:"center",color:"#fff",margin:"20px 0"}),OM=Ne("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%)"}})),f2=e=>{let t=`linear-gradient(to left bottom, ${ax}, ${rx},white, white, white, white, white, white, white, white, ${ax}, ${rx})`,r=`linear-gradient(to right top, ${nx}, ${Re[30]}, ${Re[20]}, ${Re[10]}, ${Re[10]}, ${Re[10]}, ${Re[10]}, ${Re[10]}, ${Re[10]}, ${ie[20]}, ${ie[10]}, black)`;return e?t:r},t6=Ne("div")(({shouldFlip:e,isDetailed:t,theme:r})=>{let o=r.palette.mode==="light",a=f2(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"}}),AM=Ne("div")(()=>({fontSize:"0.875rem",textTransform:"capitalize",color:"#eee",margin:"0rem",padding:"0.1rem",fontWeight:"400",lineHeight:"1.5"})),PM=Ne("p")(()=>({fontSize:"0.876rem",margin:"0rem",lineHeight:"1.5",fontWeight:"400",color:"#eee"})),_M=Ne("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"}})),IM=Ne("div")(({theme:e})=>{let t=e.palette.mode==="light",r=f2(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 r6,jsx as $e,jsxs as bo}from"react/jsx-runtime";var i3t=L("a")(()=>({textDecoration:"none"}));var FTe=({catalogClassName:e})=>e?$e(cM,{children:$e(gM,{catalogClassName:e,children:e})}):$e(r6,{}),NTe=({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||[],w=5,[E,I]=DTe([]),D=s2(e);return LTe(()=>{mM({technologies:T,basePath:d,subBasePath:p,setAvailableTechnologies:I})},[]),n?$e(J8,{shouldFlip:n,isDetailed:i,outerStyles:h,onClick:x,children:bo(e6,{shouldFlip:n,className:"innerCard",children:[bo(t6,{shouldFlip:n,isDetailed:i,children:[i&&bo(r6,{children:[$e(FTe,{catalogClassName:e?.catalog_data?.content_class??""}),$e(TM,{children:t}),$e(CM,{hasRibbon:!!e?.catalog_data?.content_class,children:e.name})]}),$e(u2,{children:$e("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&&$e(yM,{isDetailed:i,children:[{Icon:ua,count:e.download_count},{Icon:Ed,count:e.clone_count},{Icon:Vd,count:e.view_count},{Icon:Ld,count:e.deployment_count},{Icon:bn,count:e.share_count}].map(({Icon:C,count:b},A)=>bo(bM,{children:[$e(C,{width:18,height:18,fill:g.palette.mode==="light"?xn:Do}),$e(SM,{children:b})]},A))})]}),n&&bo(OM,{isCatalog:!0,children:[bo(EM,{children:[$e(Mt,{alt:"Design Author",src:s,sx:{width:"32px",height:"32px",color:"#293B43"}}),$e(_M,{children:u})]}),$e(u2,{style:{marginTop:"0.7rem",gap:"5px"},children:l&&bo(RM,{children:[$e(xM,{children:"Technologies"}),$e(me,{container:!0,style:{gap:"4px",alignItems:"flex-start",flexWrap:"nowrap"},children:T.length<1||E.length<1?$e(hM,{children:"No technologies"}):bo(r6,{children:[E.slice(0,w).map((C,b)=>{let A=(m?m():"")+`${d}/${C.toLowerCase()}/${p}/${C.toLowerCase()}-color.svg`;return $e(me,{children:$e(ce,{title:C.toLowerCase(),children:$e("img",{height:"24px",width:"24px",alt:C.toLowerCase(),src:A})},b)},b)}),E.length>w&&bo(me,{sx:{padding:"0 8px 0 4px",borderRadius:"16px",border:"1px solid #C9DBE3",background:"#E7EFF3",color:"#3C494E",fontSize:"14px",lineHeight:"1.5",fontWeight:"600"},children:["+",E.length-w]})]})})]})}),i&&$e(u2,{style:{marginTop:"20px"},children:$e(me,{container:!0,style:{justifyContent:"space-between",alignItems:"center"},children:bo(me,{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[bo("div",{style:{display:"flex",flexDirection:"row",gap:"0.2rem",alignItems:"center"},children:[$e(vO,{width:18,height:18}),$e(PM,{children:"Updated At"})]}),bo(AM,{children:[" ",new Date(e.updated_at.toString().slice(0,10)).toLocaleDateString("en-US",{day:"numeric",month:"long",year:"numeric"})]})]})})}),D&&$e(vM,{children:bo(wM,{children:["v",D]})})]})]})}):$e(J8,{shouldFlip:n,isDetailed:i,outerStyles:h,children:$e(e6,{shouldFlip:n,className:"innerCard",children:$e(t6,{shouldFlip:n,isDetailed:i,children:f})})})},ff=NTe;import{jsx as kM,jsxs as HTe}from"react/jsx-runtime";var BTe=()=>{let e=te();return HTe(IM,{children:[kM(P4,{fill:e.palette.text.default,width:"100px",height:"100px"}),kM("h3",{style:{color:e.palette.text.default},children:"No match found"})]})},MM=BTe;import s6 from"react";import{jsx as UTe}from"react/jsx-runtime";function VTe({children:e,open:t,anchorEl:r,placement:o="bottom-end",...a}){return UTe(Sd,{open:t,anchorEl:r,placement:o,...a,children:e})}var Ep=VTe;import qTe from"mui-datatables";import i6,{useCallback as GTe}from"react";import{jsx as LM}from"react/jsx-runtime";var WTe=({width:e=U,height:t=W,...r})=>LM("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:e,height:t,fill:r.fill||"currentColor",...r,children:LM("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"})}),o6=WTe;var R3t=({kind:e,model:t,color:r})=>!e||!t||!r?null:`/ui/public/static/img/meshmodels/${t}/${r}/${e.toLowerCase()}-${r}.svg`;import FM from"moment";import{jsx as DM}from"react/jsx-runtime";var ol=e=>FM(e).fromNow(),Ts=e=>FM(e).format("ddd, MMM D, YYYY h:mm A"),Ss=e=>{let t={year:"numeric",month:"short",day:"numeric"};return new Date(e).toLocaleDateString("en-US",t)},a6=({date:e})=>DM(ce,{title:Ts(e),disableInteractive:!0,children:DM("div",{children:ol(e)})});import{Fragment as d2,jsx as Lr,jsxs as n6}from"react/jsx-runtime";var lo=L("div",{shouldForwardProp:e=>e!=="disabled"})(({disabled:e=!1})=>({width:"fit-content",cursor:e?"not-allowed":"pointer",opacity:e?"0.5":"1",display:"flex","& svg":{cursor:e?"not-allowed":"pointer"}})),Rp=({actionsList:e})=>{let[t,r]=i6.useState(null),[o,a]=i6.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 n6(d2,{children:[Lr(Ht,{title:"View Actions",onClick:i,icon:Lr(o6,{fill:n.palette.icon.default}),arrow:!0}),Lr(Gl,{id:"basic-menu",anchorEl:t,open:!!t,onClose:l,sx:{"& .MuiPaper-root":{backgroundColor:n.palette.background.card}},children:e&&e.map((u,f)=>u.type==="share-social"?[n6(pt,{sx:{width:"-webkit-fill-available"},onClick:()=>s(u),disabled:u.disabled,children:[Lr(Fa,{children:Lr(bn,{width:24,height:24,fill:n.palette.text.primary})}),Lr(qt,{sx:{color:n.palette.text.primary},children:u.title})]},`${f}-menuitem`),Lr(oa,{variant:"submenu",in:o,unmountOnExit:!0,children:u.customComponent},`${f}-collapse`)]:Lr(lo,{disabled:u.disabled,children:n6(pt,{sx:{width:"-webkit-fill-available"},onClick:()=>s(u),disabled:u.disabled,children:[Lr(Fa,{children:u.icon}),Lr(qt,{sx:{color:n.palette.text.primary},children:u.title})]})},f))})]})},zTe=({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=GTe(()=>{t?.forEach(d=>{typeof d=="object"&&d!==null&&(d.options||(d.options={}),d.options.display=n&&n[d.name],["updated_at","created_at","deleted_at","last_login_time","joined_at","last_run","next_run"].includes(d.name)&&(d.options.customBodyRender=p=>{if(p==="NA"||p===null||p===void 0)return Lr(d2,{children:p});if(typeof p=="object"&&"Valid"in p){let m=p;return m.Valid&&m.Time?Lr(a6,{date:m.Time}):Lr(d2,{children:"NA"})}else return typeof p=="string"?Lr(a6,{date:p}):Lr(d2,{children:p})}))}),a&&a([...t])},[n,a]);return i6.useEffect(()=>{u()},[u]),Lr(qTe,{columns:o??[],data:e||[],title:void 0,components:{ExpandButton:()=>"",Checkbox:Br},options:{...s,elevation:0,enableNestedDataAccess:"."},...l})},vo=zTe;import{jsx as l6}from"react/jsx-runtime";function jTe({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 l6(ce,{title:t,arrow:n,placement:u,id:s,children:l6(lo,{disabled:i,children:l6(tt,{disabled:i,onClick:r,sx:{"&:hover":{"& svg":{fill:l==="delete"?f.palette.error.main:f.palette.primary.brand?.default}},...a},children:o||e})})})}var Ht=jTe;import{jsx as $a,jsxs as KTe}from"react/jsx-runtime";function NM({columns:e,id:t,customToolsProps:r,style:o}){let[a,n]=s6.useState(!1),[i,l]=s6.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 $a(s6.Fragment,{children:KTe("div",{id:t,children:[$a(Ht,{title:"View Columns",onClick:u,icon:$a(S4,{fill:s.palette.icon.default}),arrow:!0}),$a(Ep,{style:{...o,zIndex:1350},open:!!i,anchorEl:i,placement:"bottom-end",modifiers:[{name:"flip",options:{enabled:!1}},{name:"preventOverflow",options:{enabled:!0,boundariesElement:"scrollParent"}}],children:$a(K,{children:$a(mn,{onClickAway:f,children:$a("div",{children:$a(gr,{sx:{display:"flex",flexDirection:"column",padding:"1rem",boxShadow:a?"0px 4px 8px rgba(0, 0, 0, 0.2)":"none",background:s.palette.background.surfaces},children:e.map(p=>$a(Wl,{control:$a(Br,{checked:r.columnVisibility[p.name],onChange:m=>d(m,p.name)}),label:p.label},p.name))})})})})})]})})}var ga=NM;import{useState as $Te}from"react";import{Fragment as XTe,jsx as p2,jsxs as BM}from"react/jsx-runtime";var YTe=L("figure")(({align:e})=>({margin:"1rem 0",textAlign:e,width:"100%"})),ZTe=L("figcaption")(({align:e})=>({fontSize:"0.9rem",color:"#666",marginTop:"0.5rem",textAlign:e})),QTe=({src:e,alt:t,caption:r,align:o="left",...a})=>{let[n,i]=$Te(!1),l=()=>{i(!0)},s=()=>{i(!1)};return BM(XTe,{children:[BM(YTe,{align:o,children:[p2("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&&p2(ZTe,{align:o,children:r})]}),p2(aa,{open:n,onClose:s,style:{backgroundColor:"rgba(0, 0, 0, 0.8)"},PaperProps:{style:{background:"transparent",boxShadow:"none",overflow:"auto",maxWidth:"100%"}},children:p2("img",{src:e,alt:t||r||"",onClick:s,style:{objectFit:"contain",maxWidth:"100%",maxHeight:"100%"}})})]})},HM=QTe;import{Backdrop as o8e}from"@mui/material";import{jsx as e8e}from"react/jsx-runtime";function JTe({children:e,...t}){return e8e(xd,{...t,children:e})}var m2=JTe;import{jsx as r8e}from"react/jsx-runtime";function t8e({children:e,...t}){return r8e(Hl,{...t,children:e})}var c2=t8e;import{styled as x2}from"@mui/material";var VM=x2("div")(({theme:e})=>{let t=e.palette.mode==="light"?Iu:nr,r=e.palette.mode==="light"?s4:Ww;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='${s4}',GradientType=1)`:`progid:DXImageTransform.Microsoft.gradient(startColorstr='${bd}',GradientType=1)`}}),UM=x2("div")(()=>({zIndex:"100",borderRadius:"5px"})),WM=x2("div")(({theme:e})=>({padding:"1rem 1.5rem",display:"flex",justifyContent:"flex-end",backgroundColor:e.palette.mode==="light"?Iu:bd,boxShadow:"inset 0px 3px 5px 0px rgba(0,0,0,0.25)"})),qM=x2("div")(({theme:e})=>({padding:"2rem 1rem",backgroundColor:e.palette.mode==="light"?mt:yd}));import{Fragment as n8e,jsx as Ta,jsxs as GM}from"react/jsx-runtime";function a8e({open:e,onClose:t,title:r,leftHeaderIcon:o,helpText:a,helpArea:n,actions:i,hideActions:l=!1,content:s,maxWidth:u="xs",...f}){return Ta(aa,{sx:{"& .MuiDialog-paper":{borderRadius:"10px"}},open:e,maxWidth:u,onClose:t,slots:{backdrop:o8e},slotProps:{backdrop:{timeout:500}},...f,children:GM(UM,{children:[GM(VM,{children:[o&&Ta("div",{style:{display:"flex",alignItems:"center"},children:o}),r&&Ta(n8e,{children:Ta("div",{style:{display:"flex",alignItems:"center"},children:Ta(Ul,{children:r})})}),Ta("div",{style:{display:"flex",alignItems:"center"},children:a&&Ta("div",{children:n})})]}),Ta(c2,{children:Ta(qM,{children:s})}),!l&&Ta(m2,{children:Ta(WM,{children:i})})]})})}var zM=a8e;import{jsx as jM}from"react/jsx-runtime";function i8e({children:e,style:t,...r}){return jM(Ul,{sx:t,...r,children:jM(G,{sx:{flexGrow:1,fontSize:"1.25rem",textAlign:"center"},variant:"h6",children:e})})}var h2=i8e;import{jsx as u6,jsxs as f6}from"react/jsx-runtime";function l8e({icon:e,message:t,pointerLabel:r,poiner:o=!1}){return f6("div",{style:{textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",minHeight:"50vh"},children:[o&&f6(me,{style:{display:"flex",width:"100%",padding:"0 40px"},children:[u6(H4,{}),u6(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})]}),f6(me,{style:{marginTop:"120px"},children:[e,u6(G,{sx:{fontSize:"1.5rem",color:"#808080",px:5,py:2,lineHeight:1},children:t})]})]})}var KM=l8e;import{styled as p6}from"@mui/material";import{createContext as s8e,Component as u8e,createElement as $M,useContext as egt,useState as tgt,useMemo as rgt,forwardRef as ogt}from"react";var f8e=s8e(null),d6={didCatch:!1,error:null},Op=class extends u8e{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=d6}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(d6)}}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&&d8e(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(d6)}}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=$M(o,s);else if(a!==void 0)l=a;else throw i}return $M(f8e.Provider,{value:{didCatch:n,error:i,resetErrorBoundary:this.resetErrorBoundary}},l)}};function d8e(){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 c8e,jsx as wo,jsxs as Ap}from"react/jsx-runtime";var p8e=p6(G)(({theme:e})=>({color:e.palette.text.default,fontWeight:"normal",marginTop:"2px",marginBottom:"2px",fontSize:"1.15rem"})),YM=p6(xo)(({theme:e})=>({color:e.palette.border.brand,textDecoration:"underline",cursor:"pointer"})),m8e=p6("div")(({theme:e})=>({display:"flex",flexDirection:"column",backgroundColor:e.palette.background.code,color:e.palette.text.tertiary,padding:".85rem",borderRadius:".2rem",marginBlock:".5rem"}));function m6({error:e,children:t,showPackageInfo:r,version:o}){return Ap("div",{role:"alert",children:[wo("h2",{children:"Uh-oh!\u{1F614} Please pardon the mesh."}),Ap(m8e,{children:[Ap("code",{children:[wo("strong",{children:"Error: "}),e.message]}),wo("br",{}),r&&Ap(c8e,{children:[wo("strong",{children:"Version:"})," ",o]})]}),Ap(p8e,{children:["We apologize for the inconvenience. The issue may be on our end. If troubleshooting doesn't work, please check out our support channels"," ",wo(YM,{href:"https://discuss.layer5.io/",target:"_blank",rel:"noopener noreferrer",children:"Discuss Forum"})," "," or ",wo(YM,{href:"https://slack.layer5.io/",target:"_blank",rel:"noopener noreferrer",children:"Slack"})]}),wo(K,{children:t})]})}var ZM=(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)},zr=({customFallback:e,children:t,onErrorCaught:r})=>{let o=window.location.href,a=new Date().toLocaleString();return wo(Op,{FallbackComponent:e||(i=>wo(m6,{...i,pageUrl:o,timestamp:a})),onError:(i,l)=>{r?.(i.message),ZM(i,l)},children:t})},QM=({Component:e,errorHandlingProps:t={children:null}})=>wo(zr,{...t,children:wo(e,{})}),XM=({Component:e})=>wo(Op,{FallbackComponent:()=>null,onError:ZM,children:wo(e,{})});import T6 from"@mui/material/Typography";import{useState as kp}from"react";import{styled as Wo}from"@mui/material";import{useRef as x8e,useState as g2}from"react";import{jsx as Sa,jsxs as Pp}from"react/jsx-runtime";var df=Wo(tt)`
|
|
59
|
+
`))}function s(m,x,h,g){let T=h.enter("tableCell"),w=h.enter("phrasing"),E=n2(m,h,{...g,before:n,after:n});return w(),T(),E}function u(m,x){return $k(m,{align:x,alignDelimiters:o,padding:r,stringLength:a})}function f(m,x,h){let g=m.children,T=-1,w=[],E=x.enter("table");for(;++T<g.length;)w[T]=d(g[T],x,h);return E(),w}function d(m,x,h){let g=m.children,T=-1,w=[],E=x.enter("tableRow");for(;++T<g.length;)w[T]=s(g[T],m,x,h);return E(),w}function p(m,x,h){let g=I8(m,x,h);return h.stack.includes("tableCell")&&(g=g.replace(/\|/g,"\\$&")),g}}function Zk(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 Qk(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 Xk(e,t,r,o){let a=Qk(r),n=r.bulletCurrent||Zk(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 D8={exit:{taskListCheckValueChecked:Jk,taskListCheckValueUnchecked:Jk,paragraph:mTe}},F8={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:cTe}};function Jk(e){let t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function mTe(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 cTe(e,t,r,o){let a=e.children[0],n=typeof e.checked=="boolean"&&a&&a.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",l=gs(o);n&&l.move(i);let s=Xk(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 N8(){return[v8,O8(),P8,M8,D8]}function B8(e){return{extensions:[w8,A8(),_8,L8(e),F8]}}function wp(e={}){let t=this.data();r("micromarkExtensions",Fk(e)),r("fromMarkdownExtensions",N8()),r("toMarkdownExtensions",B8(e));function r(o,a){(t[o]?t[o]:t[o]=[]).push(a)}}import{styled as yr}from"@mui/material";var i2=yr("a")(({theme:e})=>({color:e.palette.background.brand?.default,textDecoration:"none","&:hover":{textDecoration:"underline"},cursor:"pointer",fontFamily:"inherit"})),eM=yr("a")(()=>({textDecoration:"none","&:hover":{textDecoration:"underline"},cursor:"pointer"})),tM=yr("p")(({theme:e})=>({color:e.palette.text.default,marginBlock:"0px",...e.typography.textB1Regular,fontFamily:"inherit"})),rM=yr("p")(({theme:e})=>({color:e.palette.text.constant?.white||Gw.inverse,marginBlock:"0px",fontFamily:"inherit"})),H8=yr("h1")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),V8=yr("h2")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),U8=yr("h3")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),W8=yr("h4")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),q8=yr("h5")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),G8=yr("h6")(({theme:e})=>({color:e.palette.text.default,fontFamily:"inherit"})),z8=yr("blockquote")(({theme:e})=>({color:e.palette.text.default,borderLeft:`2px solid ${e.palette.text.brand}`,backgroundColor:e.palette.background.tertiary})),j8=yr("ul")(({theme:e})=>({color:e.palette.text.default})),K8=yr("li")(({theme:e})=>({color:e.palette.text.default,...e.typography.textB1Regular,fontFamily:"inherit"})),$8=yr("th")(({theme:e})=>({color:e.palette.text.default,...e.typography.textH3Medium,marginBlock:"0px",fontFamily:"inherit"})),Y8=yr("td")(({theme:e})=>({color:e.palette.text.default,marginBlock:"0px",...e.typography.textB1Regular,fontFamily:"inherit"})),oM=yr("pre")(({theme:e})=>({background:e.palette.background.code,whiteSpace:"pre-line",fontFamily:"inherit"})),aM=yr("code")(({theme:e})=>({background:e.palette.background.code,whiteSpace:"pre-line",padding:"1.5px",paddingInline:"5px",fontFamily:"inherit",borderRadius:3}));import{jsx as Fe}from"react/jsx-runtime";var sf=({content:e})=>Fe($u,{remarkPlugins:[wp],rehypePlugins:[u8],components:{p:({...t})=>Fe(tM,{children:t.children}),a:({...t})=>Fe(i2,{onClick:r=>{r.preventDefault(),window.open(t.href,"_blank")},href:t.href,children:t.children}),h1:({...t})=>Fe(H8,{children:t.children}),h2:({...t})=>Fe(V8,{children:t.children}),h3:({...t})=>Fe(U8,{children:t.children}),h4:({...t})=>Fe(W8,{children:t.children}),h5:({...t})=>Fe(q8,{children:t.children}),h6:({...t})=>Fe(G8,{children:t.children}),blockquote:({...t})=>Fe(z8,{children:t.children}),ul:({...t})=>Fe(j8,{children:t.children}),li:({...t})=>Fe(K8,{children:t.children}),th:({...t})=>Fe($8,{children:t.children}),td:({...t})=>Fe(Y8,{children:t.children}),pre:({...t})=>Fe(oM,{children:t.children}),code:({...t})=>Fe(aM,{children:t.children})},children:e}),l2=({content:e})=>Fe($u,{remarkPlugins:[wp],components:{p:({...r})=>Fe(rM,{children:r.children}),a:({...r})=>Fe(i2,{onClick:o=>{window.open(r.href,"_blank"),o.stopPropagation()},as:"a",children:r.children}),h1:({...r})=>Fe(H8,{children:r.children}),h2:({...r})=>Fe(V8,{children:r.children}),h3:({...r})=>Fe(U8,{children:r.children}),h4:({...r})=>Fe(W8,{children:r.children}),h5:({...r})=>Fe(q8,{children:r.children}),h6:({...r})=>Fe(G8,{children:r.children}),blockquote:({...r})=>Fe(z8,{children:r.children}),ul:({...r})=>Fe(j8,{children:r.children}),li:({...r})=>Fe(K8,{children:r.children}),th:({...r})=>Fe($8,{children:r.children}),td:({...r})=>Fe(Y8,{children:r.children})},children:(r=>{if(!r)return r;try{return JSON.parse(`"${r}"`)}catch{return r}})(e)}),xTe=({content:e})=>Fe($u,{remarkPlugins:[wp],components:{a:({...t})=>Fe(eM,{onClick:r=>{window.open(t.href,"_blank"),r.stopPropagation()},as:"a",children:t.children})},children:e});import{jsx as nM}from"react/jsx-runtime";function gTe({title:e,onClick:t,placement:r,children:o,fontSize:a,fontWeight:n=400,variant:i="standard",bgColor:l="#141414",componentsProps:s={},...u}){return nM(Gt,{enterTouchDelay:0,leaveTouchDelay:2e3,componentsProps:hTe.merge({tooltip:{sx:{background:l,color:mt,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"?nM(l2,{content:e}):e,placement:r,arrow:!0,onClick:t,...u,children:o})}var ce=gTe;import{jsx as Z8}from"react/jsx-runtime";var TTe=({helpText:e,style:t={},...r})=>Z8(ce,{title:e,...r,children:Z8("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",...t},children:Z8(L4,{...qr})})}),tl=TTe;import{Fragment as ETe,jsx as rl,jsxs as Q8}from"react/jsx-runtime";var iM=L(Mt)(({theme:e,borderColor:t})=>({width:e.spacing(4),height:e.spacing(4),cursor:"pointer",border:`1.5px solid ${t||e.palette.common.white} !important`})),CTe=L("div")(({theme:e})=>({width:e.spacing(4.5),height:e.spacing(4.5),border:`1.5px solid ${e.palette.common.white}`,borderRadius:"50%",background:ex,display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"-10px",zIndex:0,"&:hover":{cursor:"pointer"}})),yTe=L("div")({display:"flex",alignItems:"center",padding:"5px 15px 5px 10px","&:hover":{cursor:"pointer",background:"#cecece80 !important"}}),bTe=L(G)({marginLeft:"10px"}),vTe=L(K3)(()=>({"& .MuiPopover-paper":{marginTop:"10px",maxHeight:"331px"}})),wTe=({users:e,providerUrl:t})=>{let[r,o]=STe(null),a=f=>{window.open(f,"_blank","noreferrer")},n=f=>{o(f.currentTarget)},i=()=>{o(null)},l=Object.entries(e).length,s=4,u=te();return Q8(U3,{max:s+1,children:[Object.entries(e).slice(0,s).map(([f,d])=>rl(ce,{title:d.name,arrow:!0,children:rl(iM,{alt:d.name,src:d.avatar_url,borderColor:d.border_color,imgProps:{referrerPolicy:"no-referrer"},onClick:()=>a(`${t}/user/${d.user_id}`)},f)},f)),l>s&&Q8(ETe,{children:[rl(CTe,{onClick:n,"aria-describedby":"user-popover",children:r?rl(So,{fill:u.palette.common.white,...qr,style:{marginLeft:"4px"}}):rl(G,{variant:"body2",style:{color:u.palette.common.white,fontSize:"12px"},children:`+${l-s}`})}),rl(vTe,{id:"user-popover",open:!!r,anchorEl:r,onClose:i,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:Object.entries(e).slice(s,l).map(([f,d])=>Q8(yTe,{onClick:()=>a(`${t}/user/${d.user_id}`),children:[rl(iM,{alt:d.name,src:d.avatar_url,borderColor:d.border_color,imgProps:{referrerPolicy:"no-referrer"}}),rl(bTe,{variant:"body1",children:d.name})]},f))})]})]})},lM=wTe;import{jsx as sM}from"react/jsx-runtime";function RTe({tooltip:e,tooltipPlacement:t="top",variant:r="filled",label:o,icon:a,onClick:n,onDelete:i,style:l,...s}){return sM(ce,{title:e,placement:t,children:sM(Tt,{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 uM=RTe;import{useState as fM}from"react";import{Fragment as dM,jsx as Hn,jsxs as ATe}from"react/jsx-runtime";var OTe=({zoomEffect:e=!1,imgURL:t,type:r,width:o,height:a,style:n={}})=>{let[i,l]=fM(!1),[s,u]=fM(!1),f=()=>{e&&u(!0)},d=()=>{u(!1)},p=({type:m})=>m.type==="filter"?Hn(V4,{width:o,height:a,style:n}):Hn(Na,{width:o,height:a,style:n});return Hn(dM,{children:t&&t.length>0?Hn("div",{style:{width:"100%",height:"100%",position:"relative"},children:i?Hn(p,{type:r}):ATe(dM,{children:[Hn("img",{src:t[0],alt:"Design SnapShot",loading:"lazy",onClick:f,onError:()=>l(!0),style:{cursor:"pointer",width:"100%",height:"100%",objectFit:"cover"}}),Hn(aa,{open:s,onClose:d,style:{backgroundColor:"rgba(0, 0, 0, 0.8)"},PaperProps:{style:{background:"transparent",boxShadow:"none",overflow:"hidden",maxWidth:"60vw"}},children:Hn("img",{src:t[0],alt:"Zoomed Design SnapShot",style:{objectFit:"contain",maxWidth:"100%",maxHeight:"100%"}})})]})}):Hn(p,{type:r})})},uf=OTe;import{useEffect as LTe,useState as DTe}from"react";import PTe from"js-yaml";var _Te=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)}}),ITe=async(e,t,r)=>{let o=[];for(let a of e){let n=`${t}/${a.toLowerCase()}/${r}/${a.toLowerCase()}-color.svg`;await _Te(n)&&o.push(a)}return o},pM=e=>{try{return PTe.load(e)?.version||X8}catch(t){return console.error("Failed to parse pattern file to get version:",t),X8}},mM=async({technologies:e,basePath:t="",subBasePath:r="",setAvailableTechnologies:o})=>{let a=await ITe(e,t,r);o(a)},X8="0.0.0",s2=e=>{switch(e.visibility){case"published":return e?.catalog_data?.published_version||X8;case"public":case"private":return pM(e.pattern_file);default:return pM(e.pattern_file)}};import{styled as Ne,Typography as kTe}from"@mui/material";var cM=Ne("div")(()=>({width:"85px",height:"88px",overflow:"hidden",position:"absolute",top:"-3px",left:"-3px",zIndex:10})),xM=Ne("div")(()=>({color:"#eee",fontSize:"0.875rem",lineHeight:"1.5",fontWeight:"600",borderBottom:"1px solid rgba(231, 239, 243, 0.40)"})),hM=Ne("div")(()=>({color:"#eee",overflow:"hidden",fontSize:"14px",lineHeight:"24px",fontWeight:"400",marginTop:".8rem"})),gM=Ne("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:u4.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})),J8=Ne("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})),e6=Ne("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"}})),TM=Ne("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})),SM=Ne("p")(({theme:e})=>({fontSize:"1rem",textTransform:"capitalize",margin:"0rem",lineHeight:"1.5",textAlign:"center",color:e.palette.mode==="light"?xn:Do,fontWeight:"600"})),CM=Ne(kTe)(({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"}})),yM=Ne("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":xn,...e&&{position:"absolute",bottom:"0px"},...!e&&{marginTop:"1.2rem"},borderRadius:"0 0 0.9375rem 0.9375rem",width:"100%"})),bM=Ne("div")(()=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.2rem",color:"rgba(26, 26, 26, .8)",margin:"0rem",padding:"0.1rem"})),u2=Ne("div")(()=>({height:"max-content",display:"flex",marginTop:"-1rem",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start","@media (max-width:1200px)":{height:"max-content"}})),B9t=Ne("div")(({theme:e})=>({background:e.palette.background.surfaces,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.5rem",width:"100%",borderRadius:"0.5rem"})),H9t=Ne("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"})),vM=Ne("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"})),wM=Ne("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})),V9t=Ne("div")(()=>({perspective:"1000px","&:hover .flipper":{transform:"rotateY(-180deg)"}})),U9t=Ne("div")(()=>({transition:"0.6s",transformStyle:"preserve-3d",position:"relative"})),MTe=Ne("div")(()=>({backfaceVisibility:"hidden",position:"absolute",top:0,left:0,width:"100%",height:"100%"})),W9t=Ne(MTe)(()=>({zIndex:2,transform:"rotateY(0deg)"})),q9t=Ne("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"})),G9t=Ne("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"})),EM=Ne("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"}}),RM=Ne("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"})),z9t=Ne("div")({display:"flex",alignItems:"center",color:"#fff",margin:"20px 0"}),OM=Ne("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%)"}})),f2=e=>{let t=`linear-gradient(to left bottom, ${ax}, ${rx},white, white, white, white, white, white, white, white, ${ax}, ${rx})`,r=`linear-gradient(to right top, ${nx}, ${Re[30]}, ${Re[20]}, ${Re[10]}, ${Re[10]}, ${Re[10]}, ${Re[10]}, ${Re[10]}, ${Re[10]}, ${ie[20]}, ${ie[10]}, black)`;return e?t:r},t6=Ne("div")(({shouldFlip:e,isDetailed:t,theme:r})=>{let o=r.palette.mode==="light",a=f2(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"}}),AM=Ne("div")(()=>({fontSize:"0.875rem",textTransform:"capitalize",color:"#eee",margin:"0rem",padding:"0.1rem",fontWeight:"400",lineHeight:"1.5"})),PM=Ne("p")(()=>({fontSize:"0.876rem",margin:"0rem",lineHeight:"1.5",fontWeight:"400",color:"#eee"})),_M=Ne("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"}})),IM=Ne("div")(({theme:e})=>{let t=e.palette.mode==="light",r=f2(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 r6,jsx as $e,jsxs as bo}from"react/jsx-runtime";var i3t=L("a")(()=>({textDecoration:"none"}));var FTe=({catalogClassName:e})=>e?$e(cM,{children:$e(gM,{catalogClassName:e,children:e})}):$e(r6,{}),NTe=({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||[],w=5,[E,I]=DTe([]),D=s2(e);return LTe(()=>{mM({technologies:T,basePath:d,subBasePath:p,setAvailableTechnologies:I})},[]),n?$e(J8,{shouldFlip:n,isDetailed:i,outerStyles:h,onClick:x,children:bo(e6,{shouldFlip:n,className:"innerCard",children:[bo(t6,{shouldFlip:n,isDetailed:i,children:[i&&bo(r6,{children:[$e(FTe,{catalogClassName:e?.catalog_data?.content_class??""}),$e(TM,{children:t}),$e(CM,{hasRibbon:!!e?.catalog_data?.content_class,children:e.name})]}),$e(u2,{children:$e("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&&$e(yM,{isDetailed:i,children:[{Icon:ua,count:e.download_count},{Icon:Ed,count:e.clone_count},{Icon:Vd,count:e.view_count},{Icon:Ld,count:e.deployment_count},{Icon:bn,count:e.share_count}].map(({Icon:C,count:b},A)=>bo(bM,{children:[$e(C,{width:18,height:18,fill:g.palette.mode==="light"?xn:Do}),$e(SM,{children:b})]},A))})]}),n&&bo(OM,{isCatalog:!0,children:[bo(EM,{children:[$e(Mt,{alt:"Design Author",src:s,sx:{width:"32px",height:"32px",color:"#293B43"}}),$e(_M,{children:u})]}),$e(u2,{style:{marginTop:"0.7rem",gap:"5px"},children:l&&bo(RM,{children:[$e(xM,{children:"Technologies"}),$e(me,{container:!0,style:{gap:"4px",alignItems:"flex-start",flexWrap:"nowrap"},children:T.length<1||E.length<1?$e(hM,{children:"No technologies"}):bo(r6,{children:[E.slice(0,w).map((C,b)=>{let A=(m?m():"")+`${d}/${C.toLowerCase()}/${p}/${C.toLowerCase()}-color.svg`;return $e(me,{children:$e(ce,{title:C.toLowerCase(),children:$e("img",{height:"24px",width:"24px",alt:C.toLowerCase(),src:A})},b)},b)}),E.length>w&&bo(me,{sx:{padding:"0 8px 0 4px",borderRadius:"16px",border:"1px solid #C9DBE3",background:"#E7EFF3",color:"#3C494E",fontSize:"14px",lineHeight:"1.5",fontWeight:"600"},children:["+",E.length-w]})]})})]})}),i&&$e(u2,{style:{marginTop:"20px"},children:$e(me,{container:!0,style:{justifyContent:"space-between",alignItems:"center"},children:bo(me,{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[bo("div",{style:{display:"flex",flexDirection:"row",gap:"0.2rem",alignItems:"center"},children:[$e(vO,{width:18,height:18}),$e(PM,{children:"Updated At"})]}),bo(AM,{children:[" ",new Date(e.updated_at.toString().slice(0,10)).toLocaleDateString("en-US",{day:"numeric",month:"long",year:"numeric"})]})]})})}),D&&$e(vM,{children:bo(wM,{children:["v",D]})})]})]})}):$e(J8,{shouldFlip:n,isDetailed:i,outerStyles:h,children:$e(e6,{shouldFlip:n,className:"innerCard",children:$e(t6,{shouldFlip:n,isDetailed:i,children:f})})})},ff=NTe;import{jsx as kM,jsxs as HTe}from"react/jsx-runtime";var BTe=()=>{let e=te();return HTe(IM,{children:[kM(P4,{fill:e.palette.text.default,width:"100px",height:"100px"}),kM("h3",{style:{color:e.palette.text.default},children:"No match found"})]})},MM=BTe;import s6 from"react";import{jsx as UTe}from"react/jsx-runtime";function VTe({children:e,open:t,anchorEl:r,placement:o="bottom-end",...a}){return UTe(Sd,{open:t,anchorEl:r,placement:o,...a,children:e})}var Ep=VTe;import qTe from"mui-datatables";import i6,{useCallback as GTe}from"react";import{jsx as LM}from"react/jsx-runtime";var WTe=({width:e=U,height:t=W,...r})=>LM("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:e,height:t,fill:r.fill||"currentColor",...r,children:LM("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"})}),o6=WTe;var R3t=({kind:e,model:t,color:r})=>!e||!t||!r?null:`/ui/public/static/img/meshmodels/${t}/${r}/${e.toLowerCase()}-${r}.svg`;import FM from"moment";import{jsx as DM}from"react/jsx-runtime";var ol=e=>FM(e).fromNow(),Ts=e=>FM(e).format("ddd, MMM D, YYYY h:mm A"),Ss=e=>{let t={year:"numeric",month:"short",day:"numeric"};return new Date(e).toLocaleDateString("en-US",t)},a6=({date:e})=>DM(ce,{title:Ts(e),disableInteractive:!0,children:DM("div",{children:ol(e)})});import{Fragment as d2,jsx as Lr,jsxs as n6}from"react/jsx-runtime";var lo=L("div",{shouldForwardProp:e=>e!=="disabled"})(({disabled:e=!1})=>({width:"fit-content",cursor:e?"not-allowed":"pointer",opacity:e?"0.5":"1",display:"flex","& svg":{cursor:e?"not-allowed":"pointer"}})),Rp=({actionsList:e})=>{let[t,r]=i6.useState(null),[o,a]=i6.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 n6(d2,{children:[Lr(Ht,{title:"View Actions",onClick:i,icon:Lr(o6,{fill:n.palette.icon.default}),arrow:!0}),Lr(Gl,{id:"basic-menu",anchorEl:t,open:!!t,onClose:l,sx:{"& .MuiPaper-root":{backgroundColor:n.palette.background.card}},children:e&&e.map((u,f)=>u.type==="share-social"?[n6(pt,{sx:{width:"-webkit-fill-available"},onClick:()=>s(u),disabled:u.disabled,children:[Lr(Fa,{children:Lr(bn,{width:24,height:24,fill:n.palette.text.primary})}),Lr(qt,{sx:{color:n.palette.text.primary},children:u.title})]},`${f}-menuitem`),Lr(oa,{variant:"submenu",in:o,unmountOnExit:!0,children:u.customComponent},`${f}-collapse`)]:Lr(lo,{disabled:u.disabled,children:n6(pt,{sx:{width:"-webkit-fill-available"},onClick:()=>s(u),disabled:u.disabled,children:[Lr(Fa,{children:u.icon}),Lr(qt,{sx:{color:n.palette.text.primary},children:u.title})]})},f))})]})},zTe=({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=GTe(()=>{t?.forEach(d=>{typeof d=="object"&&d!==null&&(d.options||(d.options={}),d.options.display=n&&n[d.name],["updated_at","created_at","deleted_at","last_login_time","joined_at","last_run","next_run"].includes(d.name)&&(d.options.customBodyRender=p=>{if(p==="NA"||p===null||p===void 0)return Lr(d2,{children:p});if(typeof p=="object"&&"Valid"in p){let m=p;return m.Valid&&m.Time?Lr(a6,{date:m.Time}):Lr(d2,{children:"NA"})}else return typeof p=="string"?Lr(a6,{date:p}):Lr(d2,{children:p})}))}),a&&a([...t])},[n,a]);return i6.useEffect(()=>{u()},[u]),Lr(qTe,{columns:o??[],data:e||[],title:void 0,components:{ExpandButton:()=>"",Checkbox:Br},options:{...s,elevation:0,enableNestedDataAccess:"."},...l})},vo=zTe;import{jsx as l6}from"react/jsx-runtime";function jTe({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 l6(ce,{title:t,arrow:n,placement:u,id:s,children:l6(lo,{disabled:i,children:l6(tt,{disabled:i,onClick:r,sx:{"&:hover":{"& svg":{fill:l==="delete"?f.palette.error.main:f.palette.primary.brand?.default}},...a},children:o||e})})})}var Ht=jTe;import{jsx as $a,jsxs as KTe}from"react/jsx-runtime";function NM({columns:e,id:t,customToolsProps:r,style:o}){let[a,n]=s6.useState(!1),[i,l]=s6.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 $a(s6.Fragment,{children:KTe("div",{id:t,children:[$a(Ht,{title:"View Columns",onClick:u,icon:$a(S4,{fill:s.palette.icon.default}),arrow:!0}),$a(Ep,{style:{...o,zIndex:1350},open:!!i,anchorEl:i,placement:"bottom-end",modifiers:[{name:"flip",options:{enabled:!1}},{name:"preventOverflow",options:{enabled:!0,boundariesElement:"scrollParent"}}],children:$a(K,{children:$a(mn,{onClickAway:f,children:$a("div",{children:$a(gr,{sx:{display:"flex",flexDirection:"column",padding:"1rem",boxShadow:a?"0px 4px 8px rgba(0, 0, 0, 0.2)":"none",background:s.palette.background.surfaces},children:e.map(p=>$a(Wl,{control:$a(Br,{checked:r.columnVisibility[p.name],onChange:m=>d(m,p.name)}),label:p.label},p.name))})})})})})]})})}var ga=NM;import{useState as $Te}from"react";import{Fragment as XTe,jsx as p2,jsxs as BM}from"react/jsx-runtime";var YTe=L("figure")(({align:e})=>({margin:"1rem 0",textAlign:e,width:"100%"})),ZTe=L("figcaption")(({align:e})=>({fontSize:"0.9rem",color:"#666",marginTop:"0.5rem",textAlign:e})),QTe=({src:e,alt:t,caption:r,align:o="left",...a})=>{let[n,i]=$Te(!1),l=()=>{i(!0)},s=()=>{i(!1)};return BM(XTe,{children:[BM(YTe,{align:o,children:[p2("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&&p2(ZTe,{align:o,children:r})]}),p2(aa,{open:n,onClose:s,style:{backgroundColor:"rgba(0, 0, 0, 0.8)"},PaperProps:{style:{background:"transparent",boxShadow:"none",overflow:"auto",maxWidth:"100%"}},children:p2("img",{src:e,alt:t||r||"",onClick:s,style:{objectFit:"contain",maxWidth:"100%",maxHeight:"100%"}})})]})},HM=QTe;import{Backdrop as o8e}from"@mui/material";import{jsx as e8e}from"react/jsx-runtime";function JTe({children:e,...t}){return e8e(xd,{...t,children:e})}var m2=JTe;import{jsx as r8e}from"react/jsx-runtime";function t8e({children:e,...t}){return r8e(Hl,{...t,children:e})}var c2=t8e;import{styled as x2}from"@mui/material";var VM=x2("div")(({theme:e})=>{let t=e.palette.mode==="light"?Iu:nr,r=e.palette.mode==="light"?s4:Ww;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='${s4}',GradientType=1)`:`progid:DXImageTransform.Microsoft.gradient(startColorstr='${bd}',GradientType=1)`}}),UM=x2("div")(()=>({zIndex:"100",borderRadius:"5px"})),WM=x2("div")(({theme:e})=>({padding:"1rem 1.5rem",display:"flex",justifyContent:"flex-end",backgroundColor:e.palette.mode==="light"?Iu:bd,boxShadow:"inset 0px 3px 5px 0px rgba(0,0,0,0.25)"})),qM=x2("div")(({theme:e})=>({padding:"2rem 1rem",backgroundColor:e.palette.mode==="light"?mt:yd}));import{Fragment as n8e,jsx as Ta,jsxs as GM}from"react/jsx-runtime";function a8e({open:e,onClose:t,title:r,leftHeaderIcon:o,helpText:a,helpArea:n,actions:i,hideActions:l=!1,content:s,maxWidth:u="xs",...f}){return Ta(aa,{sx:{"& .MuiDialog-paper":{borderRadius:"10px"}},open:e,maxWidth:u,onClose:t,slots:{backdrop:o8e},slotProps:{backdrop:{timeout:500}},...f,children:GM(UM,{children:[GM(VM,{children:[o&&Ta("div",{style:{display:"flex",alignItems:"center"},children:o}),r&&Ta(n8e,{children:Ta("div",{style:{display:"flex",alignItems:"center"},children:Ta(Ul,{children:r})})}),Ta("div",{style:{display:"flex",alignItems:"center"},children:a&&Ta("div",{children:n})})]}),Ta(c2,{children:Ta(qM,{children:s})}),!l&&Ta(m2,{children:Ta(WM,{children:i})})]})})}var zM=a8e;import{jsx as jM}from"react/jsx-runtime";function i8e({children:e,style:t,...r}){return jM(Ul,{sx:t,...r,children:jM(G,{sx:{flexGrow:1,fontSize:"1.25rem",textAlign:"center"},variant:"h6",children:e})})}var h2=i8e;import{jsx as u6,jsxs as f6}from"react/jsx-runtime";function l8e({icon:e,message:t,pointerLabel:r,poiner:o=!1}){return f6("div",{style:{textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",minHeight:"50vh"},children:[o&&f6(me,{style:{display:"flex",width:"100%",padding:"0 40px"},children:[u6(H4,{}),u6(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})]}),f6(me,{style:{marginTop:"120px"},children:[e,u6(G,{sx:{fontSize:"1.5rem",color:"#808080",px:5,py:2,lineHeight:1},children:t})]})]})}var KM=l8e;import{styled as p6}from"@mui/material";import{createContext as s8e,Component as u8e,createElement as $M,useContext as egt,useState as tgt,useMemo as rgt,forwardRef as ogt}from"react";var f8e=s8e(null),d6={didCatch:!1,error:null},Op=class extends u8e{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=d6}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(d6)}}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&&d8e(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(d6)}}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=$M(o,s);else if(a!==void 0)l=a;else throw i}return $M(f8e.Provider,{value:{didCatch:n,error:i,resetErrorBoundary:this.resetErrorBoundary}},l)}};function d8e(){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 c8e,jsx as wo,jsxs as Ap}from"react/jsx-runtime";var p8e=p6(G)(({theme:e})=>({color:e.palette.text.default,fontWeight:"normal",marginTop:"2px",marginBottom:"2px",fontSize:"1.15rem"})),YM=p6(xo)(({theme:e})=>({color:e.palette.border.brand,textDecoration:"underline",cursor:"pointer"})),m8e=p6("div")(({theme:e})=>({display:"flex",flexDirection:"column",backgroundColor:e.palette.background.code,color:e.palette.text.tertiary,padding:".85rem",borderRadius:".2rem",marginBlock:".5rem"}));function m6({error:e,children:t,showPackageInfo:r,version:o}){return Ap("div",{role:"alert",children:[wo("h2",{children:"Uh-oh!\u{1F614} Please pardon the mesh."}),Ap(m8e,{children:[Ap("code",{children:[wo("strong",{children:"Error: "}),e.message]}),wo("br",{}),r&&Ap(c8e,{children:[wo("strong",{children:"Version:"})," ",o]})]}),Ap(p8e,{children:["We apologize for the inconvenience. The issue may be on our end. If troubleshooting doesn't work, please check out our support channels"," ",wo(YM,{href:"https://discuss.layer5.io/",target:"_blank",rel:"noopener noreferrer",children:"Discuss Forum"})," "," or ",wo(YM,{href:"https://slack.layer5.io/",target:"_blank",rel:"noopener noreferrer",children:"Slack"})]}),wo(K,{children:t})]})}var ZM=(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)},zr=({customFallback:e,children:t,onErrorCaught:r})=>{let o=window.location.href,a=new Date().toLocaleString();return wo(Op,{FallbackComponent:e||(i=>wo(m6,{...i,pageUrl:o,timestamp:a})),onError:(i,l)=>{r?.(i.message),ZM(i,l)},children:t})},QM=({Component:e,errorHandlingProps:t={children:null}})=>wo(zr,{...t,children:wo(e,{})}),XM=({Component:e})=>wo(Op,{FallbackComponent:()=>null,onError:ZM,children:wo(e,{})});import T6 from"@mui/material/Typography";import{useState as kp}from"react";import{styled as Wo}from"@mui/material";import{useRef as x8e,useState as g2}from"react";import{jsx as Sa,jsxs as Pp}from"react/jsx-runtime";var df=Wo(tt)`
|
|
60
60
|
&& {
|
|
61
61
|
& svg {
|
|
62
62
|
fill: #fff;
|
|
@@ -76,7 +76,7 @@ Valid keys: `+JSON.stringify(Object.keys(H),null," "));var De=we(y,R,k,F,V+"."+
|
|
|
76
76
|
overflow: hidden;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
`,g8e=Wo(Ad)(({theme:e})=>({height:"2.25rem",width:"2.25rem",fill:e.palette.common.white,cursor:"pointer"})),T8e=Wo(E4)(({theme:e})=>({height:"2.25rem",width:"2.25rem",fill:e.palette.common.white,cursor:"pointer"})),T2=Wo("div")(({theme:e})=>({background:e.palette.mode==="light"?gn.header:hn.header,color:"#eee",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"1rem",textAlign:"center"})),S8e=({headerIcon:e})=>{let[t,r]=g2(!1),[o,a]=g2(""),n=x8e(null),[i,l]=g2(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}}},br=Wo(cn)(({theme:e})=>({padding:"1rem",backgroundColor:e.palette.background.surfaces,overflowY:"auto",height:"100%",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},"-ms-overflow-style":"none"})),C8e=Wo("div",{shouldForwardProp:e=>e!=="variant"})(({theme:e,variant:t,hasHelpText:r})=>({background:t==="filled"?e.palette.mode==="light"?gn.fotter:hn.fotter:"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}})),vr=({open:e,closeModal:t,title:r,headerIcon:o,reactNode:a,children:n,maxWidth:i="xs",isFullScreenModeAllowed:l,...s})=>{let[u,f]=g2(!1),d=()=>{f(p=>!p)};return Pp(h8e,{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&&Pp(T2,{children:[o&&o,Sa(G,{component:"div",variant:"h6",children:r}),Pp("div",{style:{display:"flex",alignItems:"center",gap:"1rem"},children:[l&&Sa(ce,{title:u?"Exit Fullscreen":"Enter Fullscreen",children:u?Sa(T8e,{onClick:d}):Sa(g8e,{onClick:d})}),Sa(df,{onClick:t,children:Sa(St,{...Wu,fill:"#fff"})})]})]}),a&&a,n&&n]})},jr=({helpText:e,children:t,variant:r})=>Pp(C8e,{variant:r,hasHelpText:!!e,children:[e&&Sa(ce,{title:e,variant:"standard",placement:"top",children:Sa(tt,{children:Sa(R4,{...Ar,className:"InfoCircleIcon"})})}),t]}),Ya=Wo(W3)(({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}})),Za=Wo(bw)(({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}})),y8e=Wo(vw)(({theme:e})=>({color:e.palette.text.inverse})),b8e=Wo(W3)(({theme:e})=>({backgroundColor:e.palette.background.error?.default,color:e.palette.text.constant?.white,"&:hover":{background:e.palette.background.error?.hover}})),v8e=Wo(K)(()=>({width:"100%",display:"flex",justifyContent:"end",gap:"1rem"})),_p=({primaryText:e,secondaryText:t,primaryButtonProps:r,secondaryButtonProps:o})=>Pp(v8e,{children:[Sa(Za,{...o,children:t}),Sa(Ya,{...r,children:e})]});import{styled as Ip}from"@mui/material";var JM=Ip("div")(({theme:e})=>({backgroundColor:e.palette.background.surfaces})),eL=Ip("div")(()=>({zIndex:"100",borderRadius:"5px"})),tL=Ip("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"})),rL=Ip(G)({fontSize:"18px"}),oL=Ip("div")(()=>({display:"flex",borderRadius:"5px 5px 0px 0px",justifyContent:"space-between",padding:"11px 16px",height:"52px",fill:mt,boxShadow:"inset 0px -1px 3px 0px rgba(0,0,0,0.2)",background:"linear-gradient(90deg, #3B687B 0%, #507D90 100%)"}));import{Fragment as aL,jsx as Cs,jsxs as c6}from"react/jsx-runtime";function w8e({title:e,leftHeaderIcon:t,helpText:r,helpArea:o,actions:a,hideActions:n=!1,content:i,closeComponent:l}){return c6(eL,{children:[c6(oL,{children:[t&&Cs("div",{style:{display:"flex",alignItems:"center"},children:t}),e&&Cs(aL,{children:Cs("div",{style:{display:"flex",alignItems:"center",color:"white"},children:Cs(rL,{children:e})})}),c6("div",{style:{display:"flex",alignItems:"center"},children:[r&&Cs(aL,{children:o}),l]})]}),Cs(JM,{children:i}),!n&&Cs(tL,{children:a})]})}var S2=w8e;import{Box as x6,Button as h6,Checkbox as E8e,styled as wr}from"@mui/material";var nL=wr("div")({cursor:"pointer",width:"30px",height:"30px",display:"flex",alignItems:"center",fill:Li}),R8e={"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"}}},iL=wr(x6)(({isOpen:e,renderPosition:t})=>({position:"fixed",transition:"all 0.5s ease",...R8e[t][e?"open":"closed"]})),lL=wr("div")({display:"flex",flexDirection:"column",justifyContent:"center",transition:"bottom 0.5s ease",padding:"1.688rem 1.188rem",width:"28rem",height:"12rem"}),sL=wr("div")({display:"flex",alignItems:"center",paddingTop:"0.5px",height:"20px",width:"21.188rem"}),uL=wr("div")({width:"24px",height:"24px"}),Vgt=wr(h6)(({isOpen:e})=>({color:"white",width:"4.313rem",height:"2.25rem",textTransform:"none",boxShadow:"0px 1px 8px rgba(0, 0, 0, 0.25)",backgroundColor:e?ku.main:We,"&:hover":{backgroundColor:Nw}})),fL=wr(h6)(({theme:e,renderPosition:t})=>({backgroundColor:Iu,color:Li,borderRadius:"5px",padding:"10px 20px",fontSize:"16px",transition:"bottom 0.5s ease",position:"fixed",...O8e[t],"&:hover":{backgroundColor:e.palette.mode==="dark"?nr:"#213A45"}})),O8e={"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)"}},dL=wr("div")(({theme:e})=>({display:"block",right:"0",backgroundColor:e.palette.mode==="dark"?"#333333":Li,bottom:"0",width:"100%",zIndex:"100",position:"relative",height:"100%",alignItems:"center",transition:"bottom 0.5s ease"})),pL=wr(x6)(({isOpen:e,theme:t})=>({position:"relative",bottom:e?"0px":"-240px",right:"0",color:t.palette.text.default,backgroundColor:t.palette.mode==="dark"?Kl:mt,border:`1px solid ${qw}`,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"})),mL=wr(x6)({display:"flex",justifyContent:"space-between",alignSelf:"center"}),cL=wr(h6)(({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 ${We}`:"",background:t?e.palette.mode==="dark"?nr:Do:e.palette.mode==="dark"?Kl:$l,color:t?e.palette.mode==="dark"?Do:nr:e.palette.mode==="dark"?Do:Do,fill:t?e.palette.icon.default:Do,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}})),xL=wr("textarea")(({theme:e})=>({width:"100%",background:"transparent",border:`1px solid ${_u}`,borderRadius:"4px",color:e.palette.mode==="dark"?Do:nr,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"?Do:Kl},"&:focus":{outline:`1px solid ${go}`}})),hL=wr("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-between",height:"137px",color:e.palette.text.default})),gL=wr("a")({textDecoration:"underline",color:"inherit","&:hover":{color:"inherit"}}),TL=wr(E8e)({color:`${mt} !important`,marginLeft:"-11px",paddingLeft:"0px"}),SL=wr("div")({padding:"1.5rem 1rem",width:"28rem",height:"12rem"}),CL=wr("div")({padding:"0px",width:"30px",height:"30px",display:"flex",alignItems:"center"});import{Fragment as yL,jsx as xt,jsxs as al}from"react/jsx-runtime";var A8e="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.",g6=[{icon:xt(cx,{}),label:"Issue",placeholder:"I\u2019m having an issue with...",isTextInput:!0},{icon:xt(M4,{}),label:"Suggestion",placeholder:"I have a suggestion about...",isTextInput:!0},{icon:xt(O4,{}),label:"Meet Request",isTextInput:!1,innerComponent:al(hL,{children:[al(T6,{style:{lineHeight:"2.5",textAlign:"center"},children:["Need help or have more feedback than fits here?",xt("br",{})," Meet with us."]}),xt(gL,{target:"_blank",href:"https://calendar.google.com/calendar/appointments/schedules/AcZssZ3pmcApaDP4xd8hvG5fy8ylxuFxD3akIRc5vpWJ60q-HemQi80SFFAVftbiIsq9pgiA2o8yvU56",children:"Select a time convenient for you."})]})}],P8e=({onSubmit:e,containerStyles:t,feedbackOptionStyles:r,renderPosition:o,defaultMessage:a=void 0,defaultOpen:n=!1})=>{let[i,l]=kp(n),[s,u]=kp(!1),[f,d]=kp(g6[0]),[p,m]=kp(a),[x,h]=kp(!!a);return al(yL,{children:[xt(fL,{onClick:()=>{l(!i),d(g6[0]),u(!1),m("")},style:t,renderPosition:o,children:"Feedback"}),xt(iL,{isOpen:i,style:t,renderPosition:o,children:s?al(pL,{isOpen:i,children:[xt(K4,{width:"32",height:"32"}),"Submitting your feedback..."]}):xt(yL,{children:xt(S2,{onClose:()=>{},open:!0,closeComponent:xt(nL,{onClick:()=>l(!1),children:xt(St,{width:"30",height:"30",fill:Li})}),actions:al("div",{style:{display:"flex",alignItems:"center"},children:[al(sL,{children:[xt(TL,{checked:x,onChange:E=>{h(E.target.checked)}}),xt(T6,{style:{color:"white",fontSize:"12px",height:"15px"},children:"We may email you for more information or updates"})]}),xt(Ya,{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:xt(cx,{}),title:"Feedback",helpArea:xt(ce,{placement:"top",title:A8e,arrow:!0,children:xt(CL,{children:xt(G4,{width:"30",height:"30"})})}),helpText:"Help",content:al(dL,{children:[xt(mL,{children:g6?.map(E=>al(cL,{style:r,type:"button",onClick:()=>{d(E)},isOpen:f?.label===E.label,children:[xt(uL,{children:E.icon}),xt(T6,{children:E.label})]},E.label))}),f?.isTextInput?xt(lL,{children:xt(xL,{value:p||"",onChange:E=>{m(E.target.value)},required:!0,placeholder:f.placeholder,rows:5,cols:30})}):xt(SL,{children:f?.innerComponent})]})})})})]})},bL=P8e;import{styled as y2}from"@mui/material";import pf from"react";import{jsx as C2}from"react/jsx-runtime";function vL(e,t){if(!e||e.length!=2)throw Error("FlipCard requires exactly two child components");return e[t]}var _8e=y2("div")(({theme:e})=>({height:"100%",backgroundColor:"transparent",perspective:e.spacing(125)})),I8e=y2("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"?bd:mt,cursor:"pointer",transformOrigin:"50% 50% 10%"})),k8e=y2("div")({backfaceVisibility:"hidden"}),M8e=y2("div")({backfaceVisibility:"hidden",transform:"scale(-1, 1)",wordBreak:"break-word"});function b2({duration:e=500,onClick:t,onShow:r,children:o,disableFlip:a=!1,padding:n}){let[i,l]=pf.useState(!1),[s,u]=pf.useState(!1),f=pf.useRef(null),d=vL(o,0),p=vL(o,1);return pf.useEffect(()=>{f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{u(i)},e/6)},[i,e]),C2(_8e,{onClick:()=>{a||(l(m=>!m),t&&t(),r&&r())},children:C2(I8e,{style:{transform:i?"scale(-1,1)":void 0,transition:`transform ${e}ms`,padding:n},children:s?C2(M8e,{children:pf.isValidElement(p)?p:null}):C2(k8e,{children:pf.isValidElement(d)?d:null})})})}import{Box as L8e,Tooltip as wL,Typography as D8e}from"@mui/material";import F8e from"lodash";import{useState as N8e}from"react";import{jsx as Mp,jsxs as B8e}from"react/jsx-runtime";var v2=({id:e})=>{let[t,r]=N8e(!1),o=te(),a=i=>{i.stopPropagation(),navigator.clipboard.writeText(e),r(!0),setTimeout(()=>{r(!1)},2e3)},n=F8e.truncate(e,{length:15});return B8e(L8e,{sx:{display:"flex",alignItems:"center"},children:[Mp(wL,{title:e,placement:"top",children:Mp(D8e,{variant:"body2",style:{cursor:"pointer",textWrap:"nowrap",color:o.palette.text.primary},children:n})}),Mp(wL,{title:t?"Copied!":"Copy",placement:"top",children:Mp("div",{onClick:a,style:{padding:"0.25rem"},children:Mp(sa,{width:16,height:16,fill:o.palette.action.active})})})]})};import EL from"react";function RL(){let{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}function qo(){let[e,t]=EL.useState(RL());return EL.useEffect(()=>{let r;function o(){r&&clearTimeout(r),r=window.setTimeout(()=>{t(RL())},500)}return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),r&&clearTimeout(r)}},[]),e}import gf,{useMemo as j8e,forwardRef as Wp,useRef as Hp,useCallback as O6,useEffect as Vp,createElement as Bp,cloneElement as K8e,useLayoutEffect as $8e,memo as PTt,useState as _Tt,Component as ITt,isValidElement as kTt,useContext as Y8e}from"react";import{createPortal as LTt}from"react-dom";function OL(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=OL(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function H8e(){for(var e,t,r=0,o="";r<arguments.length;)(e=arguments[r++])&&(t=OL(e))&&(o&&(o+=" "),o+=t);return o}var Lp=H8e;var V8e={data:""},U8e=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||V8e;var W8e=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,q8e=/\/\*[^]*?\*\/| +/g,AL=/\n+/g,ys=(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"?ys(i,n):n+"{"+ys(i,n[1]=="k"?"":t)+"}":typeof i=="object"?o+=ys(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+=ys.p?ys.p(n,i):n+":"+i+";")}return r+(t&&a?t+"{"+a+"}":a)+o},Vn={},PL=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+PL(e[r]);return t}return e},G8e=(e,t,r,o,a)=>{let n=PL(e),i=Vn[n]||(Vn[n]=(s=>{let u=0,f=11;for(;u<s.length;)f=101*f+s.charCodeAt(u++)>>>0;return"go"+f})(n));if(!Vn[i]){let s=n!==e?e:(u=>{let f,d,p=[{}];for(;f=W8e.exec(u.replace(q8e,""));)f[4]?p.shift():f[3]?(d=f[3].replace(AL," ").trim(),p.unshift(p[0][d]=p[0][d]||{})):p[0][f[1]]=f[2].replace(AL," ").trim();return p[0]})(e);Vn[i]=ys(a?{["@keyframes "+i]:s}:s,r?"":"."+i)}let l=r&&Vn.g?Vn.g:null;return r&&(Vn.g=Vn[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)})(Vn[i],t,o,l),i},z8e=(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?"":ys(l,""):l===!1?"":l}return o+a+(i??"")},"");function w2(e){let t=this||{},r=e.call?e(t.p):e;return G8e(r.unshift?r.raw?z8e(r,[].slice.call(arguments,1),t.p):r.reduce((o,a)=>Object.assign(o,a&&a.call?a(t.p):a),{}):r,U8e(t.target),t.g,t.o,t.k)}var ETt=w2.bind({g:1}),RTt=w2.bind({k:1});function _L(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 Z8e(e,t,r){return t&&_L(e.prototype,t),r&&_L(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 Q8e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function A6(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 IL=function(){return""},X8e=gf.createContext({enqueueSnackbar:IL,closeSnackbar:IL}),bs={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"};var E2="unmounted",mf="exited",cf="entering",Dp="entered",kL="exiting",P6=function(e){Q8e(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=mf,a.appearStatus=cf):i=Dp:o.unmountOnExit||o.mountOnEnter?i=E2:i=mf,a.state={status:i},a.nextCallback=null,a}t.getDerivedStateFromProps=function(a,n){var i=a.in;return i&&n.status===E2?{status:mf}: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!==cf&&i!==Dp&&(n=cf):(i===cf||i===Dp)&&(n=kL)}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===cf?this.performEnter(a):this.performExit()):this.props.unmountOnExit&&this.state.status===mf&&this.setState({status:E2})},r.performEnter=function(a){var n=this,i=this.props.enter,l=a,s=this.getTimeouts();if(!a&&!i){this.safeSetState({status:Dp},function(){n.props.onEntered&&n.props.onEntered(n.node,l)});return}this.props.onEnter&&this.props.onEnter(this.node,l),this.safeSetState({status:cf},function(){n.props.onEntering&&n.props.onEntering(n.node,l),n.onTransitionEnd(s.enter,function(){n.safeSetState({status:Dp},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:mf},function(){a.props.onExited&&a.props.onExited(a.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:kL},function(){a.props.onExiting&&a.props.onExiting(a.node),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:mf},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===E2)return null;var n=this.props,i=n.children,l=A6(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return i(a,l)},Z8e(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}(gf.Component);function xf(){}P6.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xf,onEntering:xf,onEntered:xf,onExit:xf,onExiting:xf,onExited:xf};function ML(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function E6(e,t){return j8e(function(){return e==null&&t==null?null:function(r){ML(e,r),ML(t,r)}},[e,t])}function P2(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 R6={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)"},HL=function(t){t.scrollTop=t.scrollTop},LL=function(t){return Math.round(t)+"ms"};function hf(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?R6.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:LL(a),p=typeof s=="string"?s:LL(s);return f+" "+d+" "+i+" "+p}).join(",")}function J8e(e){return e&&e.ownerDocument||document}function VL(e){var t=J8e(e);return t.defaultView||window}function e6e(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 t6e(e,t){var r=t.getBoundingClientRect(),o=VL(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 R2(e,t){if(t){var r=t6e(e,t);r&&(t.style.webkitTransform=r,t.style.transform=r)}}var r6e=Wp(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=A6(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),x=Hp(null),h=E6(r.ref,x),g=E6(h,t),T=function(b,A){R2(a,b),HL(b),u&&u(b,A)},w=function(b){var A=i?.transitionTimingFunction||R6.easeOut,B=P2({timeout:s,mode:"enter",style:nl({},i,{transitionTimingFunction:A})});b.style.webkitTransition=hf("-webkit-transform",B),b.style.transition=hf("transform",B),b.style.webkitTransform="none",b.style.transform="none"},E=function(b){var A=i?.transitionTimingFunction||R6.sharp,B=P2({timeout:s,mode:"exit",style:nl({},i,{transitionTimingFunction:A})});b.style.webkitTransition=hf("-webkit-transform",B),b.style.transition=hf("transform",B),R2(a,b),d&&d(b)},I=function(b){b.style.webkitTransition="",b.style.transition="",p&&p(b)},D=O6(function(){x.current&&R2(a,x.current)},[a]);return Vp(function(){if(!(n||a==="down"||a==="right")){var C=e6e(function(){x.current&&R2(a,x.current)}),b=VL(x.current);return b.addEventListener("resize",C),function(){C.clear(),b.removeEventListener("resize",C)}}},[a,n]),Vp(function(){n||D()},[n,D]),Bp(P6,Object.assign({appear:!0,nodeRef:x,onEnter:T,onEntered:f,onEntering:w,onExit:E,onExited:I,in:n,timeout:s},m),function(C,b){return K8e(r,nl({ref:g,style:nl({visibility:C==="exited"&&!n?"hidden":void 0},i,{},r.props.style)},b))})});r6e.displayName="Slide";function _2(e){return Object.entries(e).reduce(function(t,r){var o,a=r[0],n=r[1];return nl({},t,(o={},o[a]=w2(n),o))},{})}var Up={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},DL=_2({root:{height:0},entered:{height:"auto"}}),S6="0px",C6=175,o6e=Wp(function(e,t){var r=e.children,o=e.in,a=e.onExited,n=Hp(null),i=Hp(null),l=E6(t,i),s=function(){return n.current?n.current.clientHeight:0},u=function(h){h.style.height=S6},f=function(h){var g=s(),T=P2({timeout:C6,mode:"enter"}),w=T.duration,E=T.easing;h.style.transitionDuration=typeof w=="string"?w:w+"ms",h.style.height=g+"px",h.style.transitionTimingFunction=E||""},d=function(h){h.style.height="auto"},p=function(h){h.style.height=s()+"px"},m=function(h){HL(h);var g=P2({timeout:C6,mode:"exit"}),T=g.duration,w=g.easing;h.style.transitionDuration=typeof T=="string"?T:T+"ms",h.style.height=S6,h.style.transitionTimingFunction=w||""};return Bp(P6,{in:o,unmountOnExit:!0,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:a,onExiting:m,nodeRef:i,timeout:C6},function(x,h){return Bp("div",Object.assign({ref:l,className:Lp(DL.root,x==="entered"&&DL.entered),style:nl({pointerEvents:"all",overflow:"hidden",minHeight:S6,transition:hf("height")},x==="entered"&&{overflow:"visible"},{},x==="exited"&&!o&&{visibility:"hidden"})},h),Bp("div",{ref:n,className:Up.CollapseWrapper,style:{display:"flex",width:"100%"}},r))})});o6e.displayName="Collapse";var a6e=typeof window<"u"?$8e:Vp;function FL(e){var t=Hp(e);return a6e(function(){t.current=e}),O6(function(){return t.current.apply(void 0,arguments)},[])}var n6e=Wp(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=Hp(),m=FL(function(){l&&l.apply(void 0,arguments)}),x=FL(function(E){!l||E==null||(p.current&&clearTimeout(p.current),p.current=setTimeout(function(){m(null,"timeout",s)},E))});Vp(function(){return u&&x(a),function(){p.current&&clearTimeout(p.current)}},[u,a,x]);var h=function(){p.current&&clearTimeout(p.current)},g=O6(function(){a!=null&&x(a*.5)},[a,x]),T=function(I){d.onMouseEnter&&d.onMouseEnter(I),h()},w=function(I){d.onMouseLeave&&d.onMouseLeave(I),g()};return Vp(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]),Bp("div",Object.assign({ref:t},d,{className:Lp(Up.Snackbar,o),onMouseEnter:T,onMouseLeave:w}),r)});n6e.displayName="Snackbar";var y6,i6e=_2({root:(y6={display:"flex",flexWrap:"wrap",flexGrow:1},y6[bs.upSm]={flexGrow:"initial",minWidth:"288px"},y6)}),UL=Wp(function(e,t){var r=e.className,o=A6(e,["className"]);return gf.createElement("div",Object.assign({ref:t,className:Lp(i6e.root,r)},o))});UL.displayName="SnackbarContent";var Fp=_2({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"}}),NL="notistack-snackbar",l6e=Wp(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)),gf.createElement(UL,{ref:t,role:"alert","aria-describedby":NL,style:s,className:Lp(Up.MuiContent,Up.MuiContentVariant(i),Fp.root,Fp[i],u,!l&&f&&Fp.lessPadding)},gf.createElement("div",{id:NL,className:Fp.message},l?null:f,o),d&&gf.createElement("div",{className:Fp.action},d))});l6e.displayName="MaterialDesignContent";var Np,b6,O2,A2,v6,Un={view:{default:20,dense:4},snackbar:{default:6,dense:2}},BL="."+Up.CollapseWrapper,w6=16,NTt=_2({root:(Np={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:hf(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},Np[BL]={padding:Un.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},Np.maxWidth="calc(100% - "+Un.view.default*2+"px)",Np[bs.downXs]={width:"100%",maxWidth:"calc(100% - "+w6*2+"px)"},Np),rootDense:(b6={},b6[BL]={padding:Un.snackbar.dense+"px 0px"},b6),top:{top:Un.view.default-Un.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:Un.view.default-Un.snackbar.default+"px",flexDirection:"column-reverse"},left:(O2={left:Un.view.default+"px"},O2[bs.upSm]={alignItems:"flex-start"},O2[bs.downXs]={left:w6+"px"},O2),right:(A2={right:Un.view.default+"px"},A2[bs.upSm]={alignItems:"flex-end"},A2[bs.downXs]={right:w6+"px"},A2),center:(v6={left:"50%",transform:"translateX(-50%)"},v6[bs.upSm]={alignItems:"center"},v6)});var BTt=process.env.NODE_ENV!=="production";var WL=function(){return Y8e(X8e)};import qL from"react";var s6e=()=>{let[e,t]=qL.useState(""),{enqueueSnackbar:r}=WL();return qL.useEffect(()=>{e&&(r(e),t(""))},[e,r]),(a,n)=>{t(a),n&&r(a,n)}},GL=s6e;var Go=(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 Wn}from"@mui/material/styles";var zL=Wn("div")({width:"28rem",height:"16rem",margin:"auto",borderRadius:"1rem"}),jL=Wn("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"?mt:nr})),KL=Wn("a")({color:"black",textDecoration:"none"}),_6=Wn("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)"})),$L=Wn("div")(({theme:e})=>({background:e.palette.mode==="light"?n4:Zl,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"})),I6=Wn("div")(({theme:e})=>({display:"flex",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)"}})),k6=Wn("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"}})),YL=Wn("div")(({theme:e})=>({padding:"0 1rem",position:"absolute",bottom:"0rem",p:{fontSize:"1rem",color:e.palette.text.primary,fontWeight:600,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"}})),M6=Wn("div")({textAlign:"center",position:"absolute",bottom:"0.1rem",right:"0.75rem",opacity:.2,img:{height:"8.5rem",width:"8.5rem"}});import{Fragment as d6e,jsx as Pt,jsxs as qp}from"react/jsx-runtime";var u6e=({path:e,children:t})=>e?Pt(KL,{href:e,children:t}):Pt(d6e,{children:t}),f6e=({tutorial:e,path:t,courseCount:r,courseType:o})=>Pt(zL,{children:e.frontmatter.disabled==="yes"?Pt($L,{children:Pt(_6,{style:{borderTop:`5px solid ${e.frontmatter.themeColor}`},children:qp("div",{children:[qp(I6,{children:[Pt("h3",{children:e.frontmatter.title?e.frontmatter.title:e.frontmatter.courseTitle}),Pt("div",{style:{whiteSpace:"nowrap"},children:Pt("span",{children:"Coming Soon"})})]}),Pt(k6,{children:Pt("p",{className:"summary",children:e.frontmatter.description})}),Pt(M6,{children:Pt("img",{src:e.frontmatter.cardImage,alt:e.frontmatter.title})})]})})}):Pt(u6e,{path:t,children:Pt(jL,{children:Pt(_6,{style:{borderTop:`5px solid ${e.frontmatter.themeColor}`},children:qp("div",{children:[qp(I6,{children:[Pt("h3",{children:e.frontmatter.title?e.frontmatter.title:e.frontmatter.courseTitle}),e.frontmatter.status?Pt("p",{children:Pt("span",{children:"New"})}):null]}),Pt(k6,{children:Pt("p",{className:"summary",children:e.frontmatter.description})}),Pt(YL,{className:"card-subdata",children:qp("p",{children:[r," ",o,r>1?"s":""]})}),Pt(M6,{children:Pt("img",{src:e.frontmatter.cardImage})})]})})})})}),ZL=f6e;import{forwardRef as p6e,useImperativeHandle as m6e,useRef as c6e,useState as x6e}from"react";import{styled as QL}from"@mui/material";var XL=QL(Vl)(()=>({minWidth:400,overflowWrap:"anywhere",textAlign:"center",padding:"5px"})),JL=QL(K)(()=>({display:"flex",justifyContent:"end",width:"100%",gap:"10px"}));import{jsx as il,jsxs as L6}from"react/jsx-runtime";var I2={WARNING:"warning",DANGER:"error",SUCCESS:"success",INFO:"info"},eD=p6e(({variant:e},t)=>{let[r,o]=x6e({isOpen:!1,title:"",subtitle:"",primaryOption:"",showInfoIcon:"",variant:e,headerIcon:void 0,isChecked:!1,showCheckbox:!1}),a=c6e({resolve:()=>{},reject:()=>{}}),n=te(),i=w=>new Promise((E,I)=>{a.current={resolve:E,reject:I},o({...w,isOpen:!0,showInfoIcon:w.showInfoIcon||"",showCheckbox:!!w.showCheckbox})}),l=()=>{o(w=>({...w,isOpen:!1}))},s=()=>{o(w=>({...w,isChecked:!w.isChecked}))},u=()=>!!r.isChecked;m6e(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 L6(vr,{open:f,closeModal:l,title:p,id:"searchClick",headerIcon:h,reactNode:void 0,children:[m&&L6(br,{children:[il(XL,{id:"alert-dialog-description",variant:"body1",component:"div",children:il(G,{variant:"body1",component:"div",style:{color:n.palette.text.primary},children:m})}),g&&il(Wl,{control:il(Br,{checked:u(),onChange:s,color:"primary"}),label:il("span",{style:{fontSize:"1rem"},children:"Do not show again"})})]}),il(jr,{variant:"filled",helpText:x,children:L6(JL,{children:[il(Za,{onClick:()=>{l(),T("CANCEL")},children:"Cancel"}),il(Ya,{onClick:()=>{l(),T(d)},style:r.variant&&{backgroundColor:n.palette.background[r.variant]?.default,textTransform:"capitalize"},type:"submit",children:d})]})})]})});eD.displayName="PromptComponent";var D6=eD;var Tf=D6;import{outlinedInputClasses as tD}from"@mui/material/OutlinedInput";import{ThemeProvider as h6e,createTheme as g6e}from"@mui/material/styles";import T6e from"lodash/debounce";import rD,{useCallback as S6e}from"react";import{jsx as vs,jsxs as b6e}from"react/jsx-runtime";var C6e=e=>g6e({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 .${tD.notchedOutline}`]:{borderColor:"var(--TextField-brandBorderHoverColor)"},[`&.Mui-focused .${tD.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 y6e({onSearch:e,placeholder:t,onClear:r,expanded:o,setExpanded:a}){let[n,i]=rD.useState(""),l=rD.useRef(null),s=te(),u=S6e(T6e(m=>{e(m)},300),[e]),f=m=>{let x=m.target.value;i(x),u(x)},d=m=>{m.stopPropagation(),u(""),i(""),a(!1),r&&r()},p=m=>{m.stopPropagation(),o?(u(""),i(""),a(!1)):(a(!0),setTimeout(()=>{l.current&&l.current.focus()},300))};return vs(mn,{onClickAway:m=>{m.stopPropagation();let x=m.target?.closest("#ref");n===""&&x&&d(m)},children:b6e("div",{style:{display:"flex"},children:[vs(h6e,{theme:C6e(s),children:vs(Vr,{variant:"standard",value:n,onChange:f,inputRef:l,placeholder:t,style:{width:o?"150px":"0",opacity:o?1:0,transition:"width 0.3s ease, opacity 0.3s ease"}})}),o?vs(Ht,{title:"Close",onClick:d,icon:vs(St,{fill:s.palette.icon.default}),arrow:!0}):vs(Ht,{title:"Search",onClick:p,icon:vs(Gd,{fill:s.palette.icon.default}),arrow:!0})]})})}var qn=y6e;import{Grid2 as _6e,TableCell as I6e}from"@mui/material";import{useRef as R6e,useState as Cf}from"react";var v6e="N/A",oD=e=>e&&e.deleted_at&&e.deleted_at.Valid===!0?Ss(e.deleted_at.Time):v6e;import{jsx as ll}from"react/jsx-runtime";var aD=L("div")({display:"flex",gap:"1rem"}),sl=L("div")({display:"flex",justifyContent:"space-between",width:"100%",alignItems:"center"}),k2=L("div")({display:"flex",alignItems:"center",marginRight:"1rem"}),F6=L("div")({boxSizing:"border-box",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),N6=L("div")({position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box",display:"block",width:"100%"}),nD=L("span")(()=>({"& svg":{cursor:"pointer",width:"2rem",height:"2rem"}})),D8t=L("span")(()=>({"& svg":{width:"2rem",height:"2rem"}})),iD=L("span")(({theme:e})=>({"& svg":{color:"#3C494F","&:hover":{color:e.palette.error.error}}})),Gp=L("span")(()=>({color:"#455a64",opacity:"0.5","& svg":{cursor:"not-allowed"}})),lD=L("div")(()=>({display:"flex",justifyContent:"space-between",paddingRight:"26px"})),M2=L("div")(()=>({color:"#455a64",display:"flex",cursor:"not-allowed","& svg":{cursor:"pointer"}})),sD=L(Br)({padding:0,marginRight:"0.5rem",height:"28px","& .MuiSvgIcon-root":{borderColor:"white"},color:"white","&:hover":{color:"white",cursor:"pointer"},"&.Mui-checked":{color:"white"}}),B6=L(G)({fontSize:"1.25rem",fontWeight:800,"&:hover":{cursor:"default"}}),F8t=L(G)({fontSize:"0.9rem",display:"flex",alignItems:"end",padding:"0 5px","&:hover":{cursor:"default"}}),N8t=L("button")({background:"transparent",border:"none","&:hover":{cursor:"default"}}),H6=L(G)({fontStyle:"italic",fontSize:"12px","&:hover":{cursor:"default"}}),V6=L(G)({fontSize:"0.9rem",textAlign:"left",fontStyle:"italic"}),uD=L(V6)({height:"fit-content",fontStyle:"normal","&:hover":{cursor:"default"}}),w6e=L(K)(({theme:e})=>({background:e.palette.background.brand?.default,padding:"10px 10px 1px 10px",borderRadius:"4px",height:"100%",display:"flex",width:"100%"})),zp=L(w6e)({display:"flex",width:"100%",gap:"10px","@media (min-width : 600px)":{flexDirection:"column",gap:"0"}}),U6=L(Ae)(({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"})),W6=L("p")(({theme:e,textColor:t})=>({margin:"0",fontSize:"14px",fontWeight:"400",display:"flex",color:t||e.palette.text.constant?.white})),q6=L("p")(({theme:e,textColor:t})=>({margin:"0",fontSize:"60px",fontWeight:"500",lineHeight:1,marginBottom:"5px",color:t||e.palette.text.constant?.white})),B8t=L(Ae)(({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:`${ie[40]}30 !important`,"&:hover":{background:e.palette.text.default},padding:"15px 10px"})),H8t=L("div")(({disabled:e=!1})=>({cursor:e?"not-allowed":"pointer",opacity:e?"0.5":"1",display:"flex","& svg":{cursor:e?"not-allowed":"pointer"}})),fD=L(me)(({theme:e})=>({borderBottom:`1px solid ${e.palette.divider}`,display:"flex",flexDirection:"row",padding:"5px 0"})),G6=({onClick:e,bulk:t,disabled:r,style:o,key:a,title:n="Delete"})=>{let i=te();return ll(ce,{title:n,arrow:!0,children:ll("div",{children:ll(tt,{sx:{"&:hover":{"& svg":{fill:r?i.palette.icon.disabled:i.palette.background.error?.hover}},...o},disableRipple:!0,disabled:r,onClick:e,children:ll(ro,{fill:r?i.palette.icon.disabled:i.palette.icon.default,width:t?"28":"24",height:t?"28":"24",style:o})})})},a)},Gn=({onClick:e,disabled:t,bulk:r,style:o,title:a="Edit"})=>{let n=te();return ll(ce,{title:a,arrow:!0,children:ll("div",{children:ll(tt,{onClick:e,sx:{"&:hover":{"& svg":{fill:t?n.palette.icon.disabled:n.palette.background.brand?.default}},...o},disableRipple:!0,disabled:t,children:ll(Ba,{fill:t?n.palette.icon.disabled:n.palette.icon.default,width:r?"28":"24",height:r?"28":"24",style:o})})})})},dD=L(me)({display:"flex",flexDirection:"row"}),V8t=L(me)({display:"flex",alignItems:"center",marginTop:1}),jp=L(me)({width:"100%"}),pD=L(gr)(({theme:e})=>({width:"100%",display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper,padding:e.spacing(2.5),cursor:"pointer"})),mD=L(pD)(({theme:e})=>({minHeight:e.spacing(50),background:"linear-gradient(180deg, #007366 0%, #000 100%)"})),cD=L(pD)(({theme:e})=>({minHeight:e.spacing(50),backgroundColor:e.palette.background.paper,boxShadow:"none"})),xD=L(me)({display:"flex",flexDirection:"row",justifyContent:"space-between"}),hD=L(me)({display:"flex",alignItems:"flex-start"}),gD=L(me)({display:"flex",alignItems:"center",justifyContent:"flex-end"}),TD=L(G)(({theme:e})=>({fontSize:"1.25rem",fontWeight:600,padding:"0.5rem 0",color:e.palette.background.constant?.white})),SD=L(me)({display:"flex",flexDirection:"column",maxHeight:"14.5rem",overflowY:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},"-ms-overflow-style":"none"}),CD=L(me)(({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=L(me)({textAlign:"left"});import{jsx as Kp,jsxs as yD}from"react/jsx-runtime";var E6e=({userId:e,userName:t,userEmail:r,profileUrl:o})=>{let a=te(),n=()=>{window.open(`${Lo}/user/${e}`)};return yD(me,{container:!0,alignItems:"center",children:[Kp(me,{children:Kp(K,{sx:{color:a.palette.text.default,mr:2,cursor:"pointer"},children:Kp(Mt,{onClick:n,alt:t,src:o,children:o?"":Kp(yn,{})})})}),yD(me,{size:"grow",children:[t,Kp(G,{variant:"body2",color:a.palette.text.disabled,children:r})]})]})},Sf=E6e;import{Fragment as P6e,jsx as nt,jsxs as yf}from"react/jsx-runtime";var O6e=({tableMeta:e,handleRemoveFromTeam:t,isRemoveFromTeamAllowed:r,theme:o})=>nt("div",{children:r?nt(M2,{children:nt(Ht,{id:`delete_user-${e.rowIndex}`,onClick:t(e.rowData),title:"Remove user membership from team",iconType:"delete",children:nt(Ql,{fill:o?.palette.icon.default})})}):nt(Gp,{children:nt(Ql,{fill:o?.palette.icon.disabled,secondaryFill:Ur})})}),A6e=({teamID:e,useGetUsersForOrgQuery:t,org_id:r,useRemoveUserFromTeamMutation:o,useNotificationHandlers:a,isRemoveFromTeamAllowed:n,theme:i})=>{let[l,s]=Cf(0),[u,f]=Cf(10),[d,p]=Cf("last_login_time desc"),[m,x]=Cf(""),h=[],{handleError:g,handleSuccess:T,handleInfo:w}=a(),E=R6e(null),{width:I}=qo(),{data:D}=t({page:l,pagesize:u,search:m,order:d,teamId:e,orgId:r}),[C]=o(),b=D?.data||[],A=D?.total_count||0,B=V=>async()=>{let y=V[0];await E.current?.show({title:"Remove User From Team ?",subtitle:Q(V[3],V[2]),primaryOption:"Proceed",variant:I2.DANGER})==="Proceed"&&C({orgId:r,teamId:e,userId:y}).unwrap().then(()=>{T(`${V[4]?V[4]:""} ${V[5]?V[5]:""} removed from team`)}).catch(oe=>{let R=oe.response?.data?.message||"Failed to remove user from team";oe.response.status===404?w(R):g(R)})},P=(V,y,J)=>{let oe=J.findIndex(R=>R.name===y);return V[oe]},Q=(V,y)=>yf(P6e,{children:[nt("p",{children:"Are you sure you want to remove this user? (This action is irreversible)"}),yf("p",{children:["User:"," ",nt("i",{children:nt("b",{children:V})})]}),yf("p",{children:["Email:"," ",nt("i",{children:nt("b",{children:y})})]})]}),Z,H={search:!1,viewColumns:!1,filter:!1,rowsPerPageOptions:[10,20,25],responsive:"standard",selectableRows:"none",count:A,rowsPerPage:u,page:l,print:!1,download:!1,elevation:0,serverSide:!0,sortOrder:{name:d.split(" ")[0],direction:d.split(" ")[1]},onTableChange:(V,y)=>{let J=y.announceText?y.announceText.split(" : "):[],oe="";switch(y.activeColumn&&(oe=`${N[y.activeColumn].name} desc`),V){case"changePage":s(y.page);break;case"changeRowsPerPage":f(y.rowsPerPage);break;case"search":Z&&clearTimeout(Z),Z=setTimeout(()=>{m!==y.searchText&&x(y.searchText)},500);break;case"sort":J.length==2&&(J[1]==="ascending"?oe=`${N[y.activeColumn].name} asc`:oe=`${N[y.activeColumn].name} desc`),oe!==d&&p(oe);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"]],N=[{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:(V,y)=>nt(K,{sx:{"& > img":{mr:2,flexShrink:0}},children:nt(Sf,{userId:P(y.rowData,"user_id",N),userName:`${y.rowData[4]} ${y.rowData[5]}`,userEmail:y.rowData[2],profileUrl:V})})}},{name:"email",label:"Email",options:{filter:!1,sort:!0,searchable:!0}},{name:"username",label:"Username",options:{filter:!1,sort:!0,searchable:!0,customBodyRender:(V,y)=>yf("div",{style:{display:"flex"},children:[V,V?.includes("@")?nt(Gt,{title:`Search "${y.rowData[3]} ${y.rowData[4]}" on Google`,children:nt("a",{href:`https://www.google.com/search?q=${y.rowData[3]}+${y.rowData[4]}`,style:{color:"inherit"},target:"_blank",rel:"noreferrer",children:nt("div",{children:nt(I4,{width:20,height:20})})})}):nt(Gt,{title:`Lookup "${V}" on GitHub`,children:nt("a",{href:`https://www.github.com/${V}`,style:{color:"inherit"},target:"_blank",rel:"noreferrer",children:nt("div",{children:nt(Du,{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:h.concat(h?.map(V=>`!${V}`))},customBodyRender:V=>nt("div",{children:V?.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:(V,y)=>V!="NA"&&y.indexOf("Deleted")>=0?!0:V=="NA"&&y.indexOf("Not Deleted")>=0,fullWidth:!0},customBodyRender:(V,y)=>{let J=b[y.rowIndex];return oD(J)}}},{name:"actions",label:"Actions",options:{filter:!1,sort:!1,searchable:!1,customBodyRender:(V,y)=>P(y.rowData,"deleted_at",N).Valid!==!1?yf(Gp,{children:[nt(Ba,{style:{marginRight:".5rem"},fill:Ur,height:"30",width:"30"}),nt(Ql,{fill:Ur,secondaryFill:Ur,height:30,width:30})]}):nt(O6e,{tableMeta:y,handleRemoveFromTeam:B,isRemoveFromTeamAllowed:n,theme:i})}}],[M,k]=Cf(N),[F]=Cf(()=>{let V=Go(q,I),y={};return N.forEach(J=>{y[J.name]=V[J.name]}),y});return yf(h4,{initialMode:i?.palette.mode,children:[nt("div",{style:{margin:"auto",width:"100%"},children:nt(vo,{columns:N,data:b,options:H,colViews:q,tableCols:M,updateCols:k,columnVisibility:F})}),nt(Tf,{ref:E})]})},L2=A6e;import{jsx as $p}from"react/jsx-runtime";var k6e=L(_6e)(({theme:e})=>({display:"grid",margin:"auto",paddingLeft:"0.5rem",borderRadius:"0.25rem",width:"inherit",gap:e.spacing(1)})),M6e=({teams:e,tableOptions:t,columnVisibility:r,colViews:o,tableCols:a,columns:n,updateCols:i,isRemoveFromTeamAllowed:l,org_id:s,useGetUsersForOrgQuery:u,useNotificationHandlers:f,useRemoveUserFromTeamMutation:d})=>{let p=te();return $p(zr,{children:$p(vo,{columns:n,data:e,options:{...t,renderExpandableRow:(m,x)=>{let h=e[x.dataIndex].id;return $p(I6e,{colSpan:6,sx:{paddingInline:"4rem",backgroundColor:`${p.palette.background.secondary} !important`},children:$p(k6e,{container:!0,size:12,children:$p(L2,{teamID:h,isRemoveFromTeamAllowed:l,org_id:s,useGetUsersForOrgQuery:u,useNotificationHandlers:f,useRemoveUserFromTeamMutation:d,theme:p})})})}},colViews:o,tableCols:a,updateCols:i,columnVisibility:r})})},D2=M6e;import{useState as bD}from"react";import{jsx as j6}from"react/jsx-runtime";function L6e({value:e,maxLength:t,...r}){return e.length>t?j6(Gt,{title:e,arrow:!0,placement:"top",children:j6("div",{style:{maxWidth:"15rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},...r,children:`${e.slice(0,t)}...`})}):j6("div",{style:{maxWidth:"15rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},...r,children:e})}var zo=L6e;import{Fragment as F6e,jsx as Vt,jsxs as K6}from"react/jsx-runtime";function D6e({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)}),Vt(nD,{children:Vt(iD,{children:Vt(ce,{title:"Delete Teams",children:Vt(ro,{height:28,width:28,fill:Ur,onClick:()=>{r(o)}})},"delete_teams")})})}function Yp({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:w,isDeleteTeamAllowed:E,setSearch:I}){let{width:D}=qo(),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:N=>Vt(v2,{id:N})}},{name:"name",label:"Name",options:{filter:!1,sort:!0,searchable:!0}},{name:"description",label:"Description",options:{filter:!1,sort:!0,searchable:!1,customBodyRender:N=>Vt(zo,{value:N??"",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:N=>JSON.stringify(N),filterOptions:{names:["Deleted","Not Deleted"],logic:(N,M)=>N!="NA"&&M.indexOf("Deleted")>=0?!0:N=="NA"&&M.indexOf("Not Deleted")>=0,fullWidth:!0}}},{name:"actions",label:"Actions",options:{filter:!1,sort:!1,searchable:!1,customBodyRender:(N,M)=>s||M.rowData[4].Valid?K6(Gp,{children:[Vt(Ba,{style:{marginRight:".5rem"}}),Vt(ro,{height:28,width:28,fill:Ur})]}):K6(M2,{children:[!h&&K6(F6e,{children:[Vt(lo,{disabled:!g,children:Vt(Ht,{id:`edit_team-${M.rowIndex}`,title:"Edit Team",onClick:k=>{g&&f(k,M.rowData)},iconType:"edit",children:Vt(Ba,{style:{height:28.8,width:28.8},fill:Ur})})}),Vt(lo,{disabled:!T,children:Vt(Ht,{id:`leave_team-${M.rowIndex}`,title:"Leave Team",onClick:k=>T&&m(k,M.rowData),iconType:"delete",children:Vt(Ql,{fill:Ur,secondaryFill:Ur})})})]}),h?Vt(lo,{disabled:!w,children:Vt(Ht,{id:`remove_team-${M.rowIndex}`,title:"Move Team",onClick:()=>{w&&p&&p(M.rowData[0])},iconType:"delete",children:Vt(ro,{height:28,width:28,fill:C.palette.icon.default})})}):Vt(lo,{disabled:!E,children:Vt(Ht,{id:`delete_team-${M.rowIndex}`,title:"Delete Team",onClick:k=>{E&&d(k,M.rowData)},iconType:"delete",children:Vt(ro,{height:28,width:28,fill:Ur})})})]})}}],B=e?.findIndex(N=>N.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:N=>Vt(lD,{children:Vt(D6e,{selected:N,teams:e,deleteTeamsModalHandler:()=>{}})}),textLabels:{selectedRows:{text:"teams(s) selected"}},onTableChange:(N,M)=>{let k=M.announceText?M.announceText.split(" : "):[],F="";switch(M.activeColumn&&(F=`${A[M.activeColumn].name} desc`),N){case"changePage":a(M.page);break;case"changeRowsPerPage":n(M.rowsPerPage);break;case"search":I(M.searchText!==null?M.searchText:"");break;case"sort":k.length==2&&(k[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:N=>e[N].deleted_at.Valid!==!0,setRowProps:(N,M,k)=>(k&&k.selectedRows?k.selectedRows.data:[]).includes(M)?{style:{backgroundColor:C.palette.background.hover}}:N[6].Valid?{style:{backgroundColor:C.palette.icon.disabled}}:{style:{backgroundColor:C.palette.background.constant?.table}}},[Q,Z]=bD(A),[H,q]=bD(()=>{let N=Go(b,D),M={};return A.forEach(k=>{M[k.name]=N[k.name]}),M});return{columns:A,tableOptions:P,tableCols:Q,updateCols:Z,columnVisibility:H,setColumnVisibility:q,colViews:b}}import Ca from"react";import{jsx as bt,jsxs as B6e}from"react/jsx-runtime";var N6e=({width:e=U,height:t=W,primaryFill:r="#00B39F",secondaryFill:o="#00D3A9",...a})=>B6e("svg",{width:e,height:t,viewBox:"0 0 135 135",...a,xmlns:"http://www.w3.org/2000/svg",children:[bt("path",{d:"M69.5 31.82V64.07L97.45 47.89L69.5 31.82Z",fill:o}),bt("path",{d:"M69.5 70.81V103.22L97.7 87.09L69.5 70.81Z",fill:o}),bt("path",{d:"M65.47 63.85V32.09L37.87 47.92L65.47 63.85Z",fill:r}),bt("path",{d:"M10.1 103.1C15.5182 111.811 22.842 119.179 31.52 124.65V90.71L10.1 103.1Z",fill:r}),bt("path",{d:"M65.47 103.06V71.05L37.8 87.07L65.47 103.06Z",fill:r}),bt("path",{d:"M35.54 122.63L63.56 106.61L35.54 90.41V122.63Z",fill:o}),bt("path",{d:"M99.62 122.8V90.63L71.64 106.63L99.62 122.8Z",fill:r}),bt("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}),bt("path",{d:"M103.64 83.69L131.76 67.61L103.64 51.45V83.69Z",fill:o}),bt("path",{d:"M99.62 44.5V12.52L71.77 28.49L99.62 44.5Z",fill:r}),bt("path",{d:"M99.62 83.55V51.28L71.7 67.44L99.62 83.55Z",fill:r}),bt("path",{d:"M35.54 51.22V83.73L63.66 67.45L35.54 51.22Z",fill:o}),bt("path",{d:"M65.47 0C55.1388 0.298791 45.016 2.97835 35.89 7.83L65.52 24.83L65.47 0Z",fill:r}),bt("path",{d:"M35.54 12.3V44.62L63.69 28.48L35.54 12.3Z",fill:o}),bt("path",{d:"M31.52 10.34C22.8442 15.8136 15.521 23.1813 10.1 31.89L31.52 44.25V10.34Z",fill:r}),bt("path",{d:"M99.43 8C90.2123 3.0393 79.9635 0.299881 69.5 0V25.15L99.43 8Z",fill:o}),bt("path",{d:"M0 69.87C0.348236 80.2825 3.1145 90.4711 8.08 99.63L29.77 87.07L0 69.87Z",fill:o}),bt("path",{d:"M8.07001 35.37C3.13121 44.4917 0.372439 54.6334 0.0100098 65L29.8 47.91L8.07001 35.37Z",fill:o}),bt("path",{d:"M35.78 127.13C44.9355 132.013 55.0981 134.706 65.47 135V110.15L35.78 127.13Z",fill:r}),bt("path",{d:"M124.89 32C119.512 23.3126 112.237 15.9553 103.61 10.48V44.3L124.89 32Z",fill:o}),bt("path",{d:"M103.64 124.54C112.314 119.022 119.624 111.61 125.02 102.86L103.64 90.52V124.54Z",fill:o}),bt("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}),bt("path",{d:"M69.5 135C79.845 134.709 89.9825 132.029 99.12 127.17L69.5 110V135Z",fill:o}),bt("path",{d:"M31.52 83.44V51.56L3.83002 67.43L31.52 83.44Z",fill:r})]}),$6=N6e;import H6e from"@mui/material/Tooltip";import V6e from"react";import{jsx as vD}from"react/jsx-runtime";var U6e=V6e.forwardRef((e,t)=>vD(H6e,{...e,ref:t,children:vD("span",{children:e.children})})),Y6=U6e;import{Grid2 as wD,styled as bf}from"@mui/material";var ED=bf(Tt)(({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"})),RD=bf(cn)(({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%"}})),Z6=bf(G)(({theme:e})=>({paddingBottom:"15px",color:e.palette.text?.default,textAlign:"center",fontSize:"1rem",letterSpacing:"0.15px"})),Zp=bf(Ae)(({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:`${We} !important`,fill:e.palette.icon.inverse}})),Q6=bf(wD)({padding:"0 1rem","@media (max-width: 768px)":{padding:"0",display:"flex",alignItems:"center",flexDirection:"column",width:"100%"}}),OD=bf(wD)({padding:"2.5rem 1rem 0 1rem","@media (max-width: 768px)":{padding:"1rem",transform:"rotate(90deg)",height:"6.25rem",marginLeft:"6.25rem"}});import{jsx as _t,jsxs as ya}from"react/jsx-runtime";var AD={CHIP:"chip",OTHER:"other"};function W6e(e){return e?{meshery:_t($6,{}),kubernetes:_t(Nd,{}),github:_t(Du,{})}[e]||null:_t(Nd,{})}function F2(e,t){return e.filter(r=>t.indexOf(r)===-1)}function PD(e,t){return e.filter(r=>t.indexOf(r)!==-1)}function q6e({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=AD.OTHER}){let[h,g]=Ca.useState([]),[T,w]=Ca.useState([]),[E,I]=Ca.useState(n),[D,C]=Ca.useState(0),[b,A]=Ca.useState(0);Ca.useEffect(()=>{I(n)},[n]),Ca.useEffect(()=>{w(t)},[t]),Ca.useEffect(()=>{C(f),A(d)},[f,d]);let B=PD(h,T),P=PD(h,E);Ca.useEffect(()=>{r(E)},[E]),Ca.useEffect(()=>{let k=y=>{y[0].isIntersecting&&o()},F=new IntersectionObserver(k,{threshold:1}),V=document.getElementById("leftList");return V&&F.observe(V),()=>{V&&F.unobserve(V)}},[t]),Ca.useEffect(()=>{let k=y=>{y[0].isIntersecting&&a()},F=new IntersectionObserver(k,{threshold:1}),V=document.getElementById("rightList");return V&&F.observe(V),()=>{V&&F.unobserve(V)}},[n]);let Q=k=>()=>{let F=h.indexOf(k),V=[...h];F===-1?V.push(k):V.splice(F,1),g(V)},Z=k=>{k.stopPropagation(),I(E.concat(T)),w([]),C(0),A(F=>F+D)},H=k=>{k.stopPropagation(),I(E.concat(B)),w(F2(T,B)),g(F2(h,B)),C(F=>F-B.length),A(F=>F+B.length)},q=k=>{k.stopPropagation(),w(T.concat(P)),I(F2(E,P)),g(F2(h,P)),A(F=>F-P.length),C(F=>F+P.length)},N=k=>{k.stopPropagation(),w(T.concat(E)),I([]),A(0),C(F=>F+b)},M=(k,F,V,y)=>ya(RD,{children:[_t(Hr,{dense:!0,component:"div",role:"list",children:k.length>0?k.map(J=>{let oe=`transfer-list-item-${J.name}-label`;return ya(Tr,{role:"listitem",sx:{display:"flex",justifyContent:"space-between","&:hover":{backgroundColor:"#00000010"}},onClick:Q(J),children:[x===AD.CHIP?_t(Y6,{title:J.name,placement:"top",children:_t(ED,{sx:{paddingY:"10px"},variant:"outlined",label:J.name,onDelete:()=>{},deleteIcon:_t(j4,{}),icon:W6e(J?.kind)||_t(Nd,{})})}):_t(Y6,{title:J.name,placement:"top",children:_t(G,{sx:{maxWidth:"230px",height:"1.5rem",overflow:"hidden"},children:J.name})}),_t(Br,{checked:h.indexOf(J)!==-1,tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":oe}})]},J.id)}):ya("div",{style:{textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"264px"},children:[F,_t(G,{sx:{color:"#979797",px:5,py:2,lineHeight:1},children:V})]})}),_t("div",{id:y})]});return ya(me,{container:!0,justifyContent:"center",alignItems:"center",children:[ya(Q6,{children:[ya(Z6,{children:["Available ",e," (",T.length,")"]}),M(T,i,l,"leftList")]}),_t(OD,{children:ya(me,{container:!0,direction:"column",alignItems:"center",children:[ya(Zp,{variant:"outlined",size:"small",onClick:Z,disabled:!m||m&&(T?.length===0||T.length<D),"aria-label":"move all right",children:[_t(qd,{width:18,height:18}),_t(qd,{style:{position:"absolute",left:"27px"},width:18,height:18})]}),_t(Zp,{variant:"outlined",size:"small",onClick:H,disabled:!m||m&&B.length===0,"aria-label":"move selected right",children:_t(qd,{width:18,height:18})}),_t(Zp,{variant:"outlined",size:"small",onClick:q,disabled:!p||p&&P.length===0,"aria-label":"move selected left",children:_t(Bd,{width:18,height:18})}),ya(Zp,{variant:"outlined",size:"small",onClick:N,disabled:!p||p&&(E?.length===0||E.length<b),"aria-label":"move all left",children:[_t(Bd,{width:18,height:18}),_t(Bd,{style:{position:"absolute",left:"27px"},width:18,height:18})]})]})}),ya(Q6,{children:[ya(Z6,{children:["Assigned ",e," (",E.length,")"]}),M(E,s,u,"rightList")]})]})}var Qp=q6e;import{Drawer as G6e,styled as z6e,useMediaQuery as j6e}from"@mui/material";import _D from"react";import{Fragment as Z6e,jsx as so,jsxs as N2}from"react/jsx-runtime";var K6e=z6e("div")(({theme:e})=>({background:e.palette.mode==="light"?gn.header:hn.header,padding:"0.75rem 1rem",margin:"-1rem -1rem 1rem -1rem",display:"flex",justifyContent:"space-between",alignItems:"center",color:e.palette.text.constant?.white}));function $6e({filters:e,selectedFilters:t,setSelectedFilters:r,variant:o="outlined",handleApplyFilter:a,showAllOption:n=!0,id:i}){let[l,s]=_D.useState(null),[u,f]=_D.useState(!1),d=te(),p=j6e(d.breakpoints.down("sm")),m=w=>{s(w.currentTarget),f(E=>!E)},x=()=>{s(null),f(!1)},h=(w,E)=>{let I=w.target.value;r(D=>({...D,[E]:I}))},g=()=>{x(),a()},T=()=>N2("div",{children:[so(K6e,{children:so("h3",{children:"Filters: "})}),Object.keys(e).map(w=>{let E=e[w].options;return N2("div",{role:"presentation",children:[so(ql,{id:e[w].name,children:e[w].name}),N2(ia,{defaultValue:"All",value:t[w],variant:o,onChange:I=>h(I,w),style:{width:"20rem",marginBottom:"1rem"},inputProps:{"aria-label":"Without label"},displayEmpty:!0,children:[n&&so(pt,{value:"All",children:"All"}),E.map(I=>so(pt,{value:I.value,children:I.label},I.value))]},w)]},w)}),so("div",{style:{display:"flex",justifyContent:"center"},children:so(Ae,{variant:"contained",onClick:g,children:"Apply"})})]});return so(Z6e,{children:N2("div",{id:i,children:[so(Ht,{title:"Filter",onClick:m,icon:so(w4,{fill:d.palette.icon.default}),arrow:!0}),p?so(G6e,{anchor:"bottom",open:u,onClose:x,PaperProps:{style:{padding:"0 1rem 1rem 1rem",backgroundColor:d.palette.background.surfaces}},children:T()}):so(Ep,{id:u&&l?"transition-popper":void 0,open:u,anchorEl:l,placement:"bottom-end",children:so(mn,{onClickAway:x,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:so(cn,{sx:{padding:"1rem",paddingTop:"1.8rem",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",backgroundColor:d.palette.background.surfaces},children:T()})})})]})})}var Y6e=$6e;import{useState as Q6e}from"react";import{Fragment as a7e,jsx as vf,jsxs as X6}from"react/jsx-runtime";var ba={PUBLIC:"public",PRIVATE:"private",PUBLISHED:"published"},X6e=L(Gl)(({theme:e})=>({"& .MuiPaper-root":{backgroundColor:e.palette.mode==="light"?ox: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"?_u:"rgba(0, 179, 159, 0.25)"}},"& .Mui-selected":{backgroundColor:e.palette.mode==="light"?_u:"rgba(0, 179, 159, 0.25)"},"& .MuiList-padding":{padding:"0px"}})),J6e=L(Ae)(()=>({padding:"0px"})),e7e=L("div")(({theme:e,enabled:t})=>({paddingLeft:"0.3rem",height:"1.5rem",width:"auto",paddingRight:t?"0":"0.3rem",borderRadius:"0.25rem",border:`1px solid ${yd}`,background:e?.palette.mode==="light"?ox: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})),t7e=L(pt)(({theme:e})=>({textTransform:"capitalize",color:e.palette.icon.default})),r7e=L("div")({marginRight:"0.5rem"}),o7e=({value:e,onChange:t,options:r,enabled:o})=>{let[a,n]=Q6e(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 X6(a7e,{children:[vf(J6e,{disabled:!o,onClick:s,"data-testid":`design-visibility-${e.toLowerCase()}`,children:X6(e7e,{enabled:o,children:[vf("span",{style:{fontSize:"0.85rem"},children:e}),o&&vf(bO,{style:{...Co}})]})}),vf(X6e,{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)=>X6(t7e,{"data-testid":`visibility-toggle-${f.toLowerCase()}`,onClick:m=>u(m,f),children:[vf(r7e,{children:vf(d,{width:16,height:16})}),f]},p))})]})},ul=o7e;import{styled as i7e}from"@mui/material";import{styled as va,Typography as n7e}from"@mui/material";var ID=va("div")(()=>({width:"85px",height:"88px",overflow:"hidden",position:"absolute",top:"-3px",left:"-3px"})),kD=va("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"})),MD=va("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})),LD=va("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"})),DD=va("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"})),wf=va("p")(({theme:e})=>({fontSize:"1rem",textTransform:"capitalize",margin:"0rem",lineHeight:"1.5",textAlign:"center",color:e.palette.text.secondary,fontWeight:"600"})),FD=va(n7e)(({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%"})),ND=va("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%"})),Ef=va("div")(()=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.2rem",color:"rgba(26, 26, 26, .8)",margin:"0rem",padding:"0.1rem"})),BD=va("div")(()=>({height:"max-content",display:"flex",marginTop:"-1rem",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start","@media (max-width:1200px)":{height:"max-content"}})),HD=va("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 u7e,jsx as Jt,jsxs as fl}from"react/jsx-runtime";var Z7t=i7e("a")(()=>({textDecoration:"none"}));var l7e=({catalogClassName:e})=>e?Jt(ID,{children:Jt(kD,{catalogClassName:e,children:e})}):Jt(u7e,{}),s7e=({pattern:e,patternType:t,cardHeight:r,cardWidth:o,cardStyles:a,onCardClick:n})=>{let i={height:r,width:o,...a};return Jt(MD,{outerStyles:i,onClick:n,children:fl(LD,{className:"innerCard",children:[Jt(l7e,{catalogClassName:e?.catalog_data?.content_class}),Jt(DD,{children:t}),fl(BD,{children:[Jt(FD,{style:{margin:"3rem 0 1.59rem 0",textAlign:"center"},children:e.name}),Jt(HD,{children:Jt(Na,{height:"118",width:"120"})})]}),fl(ND,{children:[fl(Ef,{children:[Jt(ua,{width:18,height:18}),Jt(wf,{children:e.download_count})]}),fl(Ef,{children:[Jt(Ed,{width:18,height:18,fill:"#51636B"}),Jt(wf,{children:e.clone_count})]}),fl(Ef,{children:[Jt(Vd,{width:18,height:18,fill:"#51636B"}),Jt(wf,{children:e.view_count})]}),fl(Ef,{children:[Jt(Ld,{width:18,height:18}),Jt(wf,{children:e.deployment_count})]}),fl(Ef,{children:[Jt(bn,{width:18,height:18,fill:"#51636B"}),Jt(wf,{children:e.share_count})]})]})]})})},VD=s7e;import{useTheme as y7e}from"@mui/material/styles";import{useCallback as XD,useState as b7e}from"react";import{useCallback as QD,useState as T7e}from"react";import{useCallback as c7e,useState as x7e}from"react";import{debounce as f7e}from"lodash";import{useEffect as GD,useMemo as d7e,useState as p7e}from"react";import{styled as UD}from"@mui/material";var WD=UD(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=UD(hd)(({theme:e})=>({borderLeft:`1px solid ${e.palette.background.tertiary}`,height:"30px",paddingLeft:"10px"}));import{jsx as B2}from"react/jsx-runtime";function m7e({onChange:e,value:t="",label:r,sx:o,placeholder:a,endAdornment:n,debounceTime:i=300}){let l=te(),[s,u]=p7e(t);GD(()=>{t!==s&&u(t)},[t]);let f=m=>({target:{value:m},persist:()=>{}}),d=d7e(()=>f7e(m=>{e?.(f(m))},i),[e,i]);return GD(()=>{if(e)return s===""?e(f(s)):d(s),()=>{d.cancel()}},[s,e,d]),B2(WD,{type:"search",label:r,fullWidth:!0,value:s,onChange:m=>{let x=m.target.value;u(x)},sx:o,placeholder:a??"Search",startAdornment:B2(hd,{position:"start",children:B2(Gd,{fill:l.palette.background.neutral?.default})}),endAdornment:B2(qD,{position:"end",children:n})})}var H2=m7e;import{styled as zn}from"@mui/material/styles";var zD=zn(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"}})),jD=zn("div")(()=>({display:"none","@media (max-width:899px)":{display:"block"}})),TSt=zn("div")(()=>({display:"flex",justifyContent:"space-around",alignItems:"center"})),KD=zn(Ae)(({theme:e})=>({backgroundColor:e.palette.primary.brand?.default,"&:hover":{backgroundColor:e.palette.background.default},height:"3.75rem","@media (max-width:450px)":{minWidth:"0px"}})),$D=zn(K)(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0.5rem 1rem",background:e.palette.mode==="light"?gn.header:hn.header,height:"10vh"})),SSt=zn(ki)(({theme:e})=>({padding:"0.25rem 2rem",borderBottom:"1px solid",borderBottomColor:e.palette.text.disabled})),YD=zn(ki)(({theme:e})=>({backgroundColor:e.palette.background.surfaces,borderRadius:"0.5rem",marginTop:2,display:"flex",justifyContent:"space-between"})),ZD=zn("p")(({theme:e})=>({color:e.palette.text.tertiary})),CSt=zn("span")(()=>({marginLeft:"0.5rem",display:"block","@media (max-width: 853px)":{display:"none"}}));import{Fragment as g7e,jsx as wa,jsxs as ws}from"react/jsx-runtime";var h7e=({filterKey:e,sectionDisplayName:t,options:r=[],filters:o,openSections:a,onCheckboxChange:n,onSectionToggle:i,styleProps:l,customComponent:s})=>{let[u,f]=x7e(""),d=c7e(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(g7e,{children:[ws(YD,{onClick:()=>i(e),style:{backgroundColor:l.sectionTitleBackgroundColor},children:[wa(G,{sx:{fontSize:"1rem"},fontWeight:"bold",fontFamily:l.fontFamily,children:(t||e).toUpperCase()}),a[e]?wa(Vi,{}):wa(So,{})]}),wa(oa,{in:a[e],timeout:"auto",unmountOnExit:!0,children:s?wa(s,{}):ws(Hr,{component:"div",sx:{overflowY:"auto",maxHeight:"25rem",backgroundColor:l.backgroundColor,"&::-webkit-scrollbar":{width:"6px"}},children:[p&&wa(K,{sx:{px:"0.5rem",mb:"0.5rem"},children:wa(H2,{value:u,onChange:d,placeholder:"Search",endAdornment:ws(ZD,{children:["Total : ",m.length??0]})})}),m.map((x,h)=>ws(Cd,{direction:"row",alignItems:"center",px:"0.5rem",justifyContent:"space-between",children:[ws(Cd,{direction:"row",alignItems:"center",gap:"0.35rem",children:[wa(Br,{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&&wa(x.Icon,{width:"20px",height:"20px"}),wa(G,{fontFamily:l.fontFamily,children:x.label})]}),ws(Cd,{direction:"row",alignItems:"center",gap:"0.35rem",children:[x.totalCount!==void 0&&`(${x.totalCount||0})`,x.description&&wa(tl,{variant:"standard",helpText:x.description})]})]},`${x.value}-${h}`))]})})]})},J6=h7e;import{Fragment as C7e,jsx as e7}from"react/jsx-runtime";var S7e=({lists:e,onApplyFilters:t,value:r,styleProps:o})=>{let[a,n]=T7e(()=>{let s={};return e.forEach(u=>{s[u.filterKey]=!!u.defaultOpen}),s}),i=QD(s=>{n(u=>({...u,[s]:!u[s]}))},[]),l=QD((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 e7(C7e,{children:e.map(s=>s.customComponent?e7(J6,{filterKey:s.filterKey,filters:r,sectionDisplayName:s.sectionDisplayName,onSectionToggle:i,styleProps:o,openSections:a,customComponent:s.customComponent},s.filterKey):e7(J6,{filterKey:s.filterKey,sectionDisplayName:s.sectionDisplayName,options:s.options,filters:r,openSections:a,onCheckboxChange:l,onSectionToggle:i,styleProps:o},s.filterKey))})},t7=S7e;import{Fragment as w7e,jsx as jo,jsxs as V2}from"react/jsx-runtime";var v7e=({lists:e,setData:t,value:r={},styleProps:o})=>{let a=y7e(),[n,i]=b7e(!1),l=XD(()=>{i(!0)},[]),s=XD(()=>{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:Yl.main,fontFamily:a.typography.fontFamily},...o};return V2(w7e,{children:[jo(zD,{styleProps:f,children:jo(t7,{lists:e,onApplyFilters:t,value:r,styleProps:f})}),V2(jD,{children:[jo(ce,{title:"Filters",placement:"bottom",children:jo(KD,{variant:"contained",onClick:l,children:jo(EO,{style:{height:"28px",width:"28px"},fill:a.palette.text.default})})}),jo(G3,{anchor:"bottom",open:n,variant:"temporary",onClose:s,style:{zIndex:"1399"},children:V2(K,{sx:{overflowY:"hidden",height:"90vh"},children:[V2($D,{children:[jo(G,{variant:"h6",sx:{color:a.palette.text.constant?.white},component:"div",children:"Filters"}),jo(df,{onClick:s,children:jo(St,{height:"32px",width:"32px"})})]}),jo(K,{style:{height:"75vh",overflowY:"auto",background:a.palette.background.surfaces,padding:"0 16px"},children:jo(t7,{lists:e,onApplyFilters:t,value:r,styleProps:f})}),jo(K,{sx:{background:a.palette.mode==="light"?gn.fotter:hn.fotter,height:"5vh"}})]})})]})]})},JD=v7e;import{jsx as U2,jsxs as R7e}from"react/jsx-runtime";function E7e({open:e,content:t,title:r,actions:o,onClose:a}){return R7e(aa,{open:e,onClose:a,children:[U2(h2,{children:r}),U2(Hl,{children:U2(Vl,{children:t})}),U2(xd,{children:o})]})}var eF=E7e;import{Autocomplete as O7e,Grid2 as r7}from"@mui/material";import A7e,{useCallback as o7,useEffect as P7e,useState as W2}from"react";import{jsx as sr,jsxs as a7}from"react/jsx-runtime";import{createElement as I7e}from"react";var _7e=({data:e,label:t,fetchSuggestions:r,setFilterData:o,isLoading:a,type:n,disabled:i,selectedData:l,searchValue:s,setSearchValue:u,iconComponent:f=sr(hx,{...Wu})})=>{let[d,p]=W2(""),[m,x]=W2(!1),[h,g]=W2(!1),[T,w]=W2(l);P7e(()=>{w(l)},[l]);let E=o7(C=>{let b=T.filter(A=>A.id!==C);w(b),o(b)},[T,o]),I=o7((C,b)=>{if(!b)return;if(T.some(P=>P.id===b.id)){p(`${n} already selected`);return}let B=[...T,b];w(B),o(B),p(""),u(""),x(!1)},[T,o,n,u]),D=o7((C,b)=>{if(u(b),b==="")x(!1);else{let A=encodeURIComponent(b);r(A),p(""),x(!0)}},[r,u]);return a7(K,{sx:{width:"100%"},children:[sr(O7e,{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:D,filterOptions:C=>C,disableClearable:!0,includeInputInList:!0,filterSelectedOptions:!0,disableListWrap:!0,clearOnBlur:!0,popupIcon:null,blurOnSelect:!0,forcePopupIcon:!1,renderInput:C=>sr(Vr,{...C,label:t||`Add ${n}`,error:!!d,helperText:d,fullWidth:!0,InputLabelProps:{style:{fontFamily:"inherit"}},InputProps:{...C.InputProps,endAdornment:sr(A7e.Fragment,{children:a?sr(Lt,{color:"inherit",size:20}):null})}}),renderOption:(C,b)=>I7e("li",{...C,key:b.id},sr(K,{component:"li",sx:{"& > img":{mr:2,flexShrink:0}},children:a7(r7,{container:!0,alignItems:"center",children:[sr(r7,{children:sr(K,{sx:{color:"text.secondary",mr:2},children:f})}),sr(r7,{size:"grow",children:sr(G,{variant:"body2",children:b.name})})]})}))}),a7(K,{sx:{display:"flex",flexWrap:"wrap",gap:.5,mt:T?.length>0?"0.5rem":""},children:[!h&&T?.length>0&&sr(Tt,{avatar:f,label:T[T.length-1]?.name,size:"small",onDelete:()=>E(T[T.length-1]?.id),deleteIcon:sr(Gt,{title:`Remove ${n}`,children:sr(St,{style:qr})})},T[T.length-1]?.id),h&&T?.map(C=>sr(Tt,{avatar:sr(hx,{...qr}),label:C.name,size:"small",onDelete:()=>E(C.id),deleteIcon:sr(Gt,{title:`Remove ${n}`,children:sr(St,{style:qr})})},C.id)),T?.length>1&&sr(G,{onClick:()=>g(!h),sx:{cursor:"pointer"},children:h?"(hide)":`(+${T?.length-1})`})]})]})},tF=_7e;import{styled as q2}from"@mui/material";var rF=q2("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"}})),oF=q2("div")({display:"inline-flex"}),aF=q2("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)"})),nF=q2("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 G2,jsxs as iF}from"react/jsx-runtime";var k7e=({chapterNum:e,chapter:t})=>G2(rF,{id:t.frontmatter.courseTitle?t.frontmatter.courseTitle:void 0,children:iF(oF,{children:[G2(aF,{children:e}),iF(nF,{children:[G2("h2",{children:t.frontmatter.chapterTitle?t.frontmatter.chapterTitle:t.frontmatter.courseTitle}),G2("p",{children:t.frontmatter.description})]})]})}),lF=k7e;import{useMediaQuery as M7e,useTheme as L7e}from"@mui/material";import D7e,{useState as F7e}from"react";import{styled as Rf}from"@mui/material/styles";var ECt=Rf("div")(({theme:e})=>({marginLeft:".5rem",color:e.palette.background.secondary})),sF=Rf(Td)({overflowY:"auto",scrollbarWidth:"none","&::-webkit-scrollbar":{width:"0em"}}),uF=Rf(Tr)(()=>({pointerEvents:"auto",margin:"0.5rem 0rem 0.5rem 0rem",fontSize:"0.1rem",padding:"0"})),fF=Rf(Tr)(()=>({pointerEvents:"auto",margin:"0rem 0rem 0rem 0.5rem",fontSize:"0.1rem"})),dF=Rf("div")({marginRight:"0.75rem",marginLeft:"0.5rem"}),pF=Rf("div")({marginRight:"0.5rem"});import{jsx as Ea,jsxs as z2}from"react/jsx-runtime";var N7e=({navigationItems:e,MenuListProps:t={},ListItemTextProps:r={}})=>{let o=L7e(),a=M7e(o.breakpoints.up("sm")),[n,i]=F7e(null),l=(s,u)=>{u.stopPropagation(),i(f=>f===s?null:s)};return Ea(sF,{...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:z2(D7e.Fragment,{children:[z2(pt,{disabled:!f,onClick:s.onClick,children:[z2(uF,{children:[s.icon&&Ea(dF,{children:s.icon}),Ea(qt,{primary:s.title,...r})]}),s.subItems&&Ea(qt,{children:u?Ea(Vi,{onClick:m=>l(s.id,m)}):Ea(So,{onClick:m=>l(s.id,m)})})]}),s.subItems&&Ea(oa,{in:u,timeout:"auto",unmountOnExit:!0,variant:"submenu",children:s.subItems.map(m=>Ea(pt,{disabled:!m.permission,onClick:m.onClick,children:z2(fF,{children:[m.icon&&Ea(pF,{children:m.icon}),Ea(qt,{primary:m.title,...r})]})},m.id))}),d&&Ea(na,{})]},s.id)})})},mF=N7e;import{styled as i7}from"@mui/material";import{jsx as n7,jsxs as W7e}from"react/jsx-runtime";var B7e=i7("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"})),H7e=i7("h4")(({type:e,theme:t})=>({color:e==="warning"?t.palette.text.warning:t.palette.background.brand?.default,fontSize:"1.35rem"})),V7e=i7("p")(({theme:e})=>({color:e.palette.text.inverse})),U7e=({type:e="note",title:t,content:r})=>W7e(B7e,{type:e,children:[n7(H7e,{type:e,children:t}),n7(V7e,{children:n7(l2,{content:r})})]}),cF=U7e;import{Resizable as z7e}from"re-resizable";import j7e from"react-draggable";import{jsx as Xp,jsxs as G7e}from"react/jsx-runtime";var q7e=({height:e=24,width:t=24,fill:r="#E8EFF3",...o})=>G7e("svg",{width:t,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:[Xp("g",{clipPath:"url(#clip0_34897_172744)",children:Xp("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})}),Xp("defs",{children:Xp("clipPath",{id:"clip0_34897_172744",children:Xp("rect",{width:"24",height:"24",fill:"white"})})})]}),l7=q7e;var JCt=L(Tr)(({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}})),eyt=L(Tr,{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}})),xF=L("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})),hF=L(K)(({theme:e})=>({padding:e.spacing(2),backgroundColor:e.palette.background.surfaces,overflow:"auto",flex:1,minHeight:0})),gF=L("div")({height:"100%",display:"flex",flexDirection:"column",minHeight:"3rem"}),TF=L(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})),SF=L(l7)(({theme:e})=>({fill:e.palette.common.white,position:"absolute",top:"-0.3rem",left:"50%"})),CF=L("div")({display:"flex",gap:"1rem",justifyContent:"flex-end",alignItems:"center"}),yF=L("div")({display:"flex",justifyContent:"end",alignItems:"center",flex:"1"}),j2=L(tt)(({theme:e})=>({color:e.palette.common.white})),bF=L("div")(()=>({position:"absolute",left:"0",right:"0",marginInline:"auto",width:"fit-content"}));import{jsx as er,jsxs as s7}from"react/jsx-runtime";var K7e=({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?er(j7e,{handle:".drag-handle",children:er(TF,{intitialPosition:l,sx:s,children:er(z7e,{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:er(gF,{children:s7(zr,{children:[er("div",{className:"drag-handle",children:s7(xF,{children:[er(K,{display:"flex",justifyContent:"flex-end",padding:"8px",children:a&&er(Gt,{title:o?"Collapse All":"Expand All",children:er(j2,{onClick:a,children:o?er(T4,{}):er(v4,{})})})}),er(SF,{}),s7(yF,{children:[er(CF,{id:`${t}-panel-header-actions-container`}),er(bF,{children:f}),u&&er(j2,{onClick:u,children:er(Ad,{fill:d.palette.common.white})}),er(j2,{onClick:n,children:er(St,{fill:d.palette.common.white})})]})]})}),er(hF,{className:"panel-body",children:r})]})})})})}):null},vF=({...e})=>er(K7e,{...e});import{memo as VF,useMemo as Y7e}from"react";var gyt=L(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"}})),Tyt=L("div")(()=>({width:"100%",justifyContent:"center",display:"flex",alignItems:"center",marginTop:"20px"})),Syt=L(K)(()=>({display:"flex",justifyContent:"space-evenly",gap:"2.5rem",width:"100%"})),Cyt=L(K)(()=>({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",gap:"2.5rem",width:"100%"})),yyt=L("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"})),u7=L(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"})),wF=L(K)(({theme:e})=>({paddingInline:e.spacing(2),display:"flex",alignItems:"center",placeSelf:"flex-start",justifyContent:"space-between",width:"100%"})),EF=L(G)(({theme:e})=>({fontSize:"1.5rem",fontWeight:600,color:e.palette.text.default})),RF=L(gr)(({theme:e})=>({width:"200px",margin:"0.5rem",height:"100%",borderRadius:"1rem",position:"relative",overflow:"hidden",transition:"all 0.3s ease-in-out",background:f2(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"}})),OF=L("div")(()=>({display:"flex",gap:"10px",flexWrap:"nowrap",justifyContent:"center",width:"100%"})),AF=L(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"}})),PF=L(Da)(()=>({height:"100%",display:"flex",flexDirection:"column",padding:"12px",paddingBottom:"0px !important"})),_F=L(K)({display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"0.5rem",gap:"0.6rem"}),IF=L(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"})),kF=L(G)(({theme:e})=>({fontSize:"24px",fontWeight:700,color:e.palette.icon.secondary,marginBottom:"0.5rem",lineHeight:1.2})),byt=L(K)(({theme:e})=>({marginBottom:"1rem",padding:"8px",borderRadius:"8px",background:e.palette.mode==="light"?"#f8fafc":xn,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)"}})),MF=L(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"})),LF=L(G)({fontSize:"0.75rem",marginBottom:"8px"}),DF=L(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)})),FF=L(K)(({theme:e})=>({padding:"1rem",color:e.palette.text.error,fontSize:"1rem",fontWeight:500}));import{jsx as dl,jsxs as $7e}from"react/jsx-runtime";var NF=({open:e,handleClick:t})=>{let r=te();return dl(ce,{title:e?"Hide Performers":"Show Performers",placement:"bottom",children:dl("span",{children:$7e(Ae,{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(Xl,{style:{height:"2rem",width:"2rem",marginRight:"10px"}}),e?"Hide Performers":"Show Performers"]})})})},BF=({handleClick:e})=>dl(ce,{title:"Open Leaderboard",placement:"bottom",children:dl(Ae,{variant:"contained",onClick:e,sx:{height:"3.7rem",padding:"0.3rem",display:{xs:"inline-flex",sm:"none"}},children:dl(Xl,{style:{height:"2rem",width:"2rem"}})})}),HF=()=>dl(OF,{children:[...Array(5)].map((e,t)=>dl($3,{variant:"rounded",height:"13.5rem",width:"inherit",sx:{minWidth:"150px"},style:{borderRadius:"1rem"}},t))});import{jsx as Er,jsxs as jn}from"react/jsx-runtime";var Z7e={pathType:"pattern",page:0,pagesize:1,metrics:!0,expandUser:!0,trim:!0},f7={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"}},Jp=e=>({...Z7e,order:`${f7[e].countKey} desc`}),Q7e=({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 Er(RF,{elevation:0,status:i,onClick:f,children:jn(PF,{cardId:l,children:[jn(_F,{children:[Er(IF,{children:e}),Er(AF,{onClick:m=>d(m,`${t}+desc`),children:Er(N4,{...Co,fill:p.palette.common.black})})]}),Er(kF,{children:r}),jn(K,{children:[Er(MF,{children:o}),jn(LF,{children:["by ",n]})]})]})})},tr=(e={})=>({search:e.search??"",order:e.order??"",pagesize:e.pagesize??0,page:e.page??0,...e}),UF=VF(Q7e);UF.displayName="StatCard";var X7e=e=>{let t=e(tr(Jp("view"))),r=e(tr(Jp("clone"))),o=e(tr(Jp("download"))),a=e(tr(Jp("deployment"))),n=e(tr(Jp("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)}},J7e=(e,t)=>{let r=e[t],o=f7[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},eSe=({useGetCatalogFilters:e,onCardClick:t,onIconClick:r,onOpenLeaderboard:o})=>{let a=te(),{queries:n,isLoading:i,hasError:l}=X7e(e),s=TE(a.breakpoints.down("sm")),u=Y7e(()=>Object.keys(f7).map(d=>J7e(n,d)).filter(d=>!!d),[n]);if(l)return Er(u7,{children:Er(FF,{children:"Error loading statistics. Please try again later."})});let f=u.map((d,p)=>Er(UF,{...d,onCardClick:t,onIconClick:r},`${d.id}-${p}`));return Er(zr,{children:jn(u7,{children:[jn(wF,{children:[jn(K,{display:"flex",alignItems:"center",gap:1,children:[Er(EF,{children:"Top Performers"}),Er(Xl,{style:{height:"2rem",width:"2rem",color:a.palette.icon.secondary,display:s?"none":"inline-flex"}})]}),o&&Er("div",{children:jn(Ae,{variant:"contained",onClick:()=>o(),children:[Er(Xl,{style:{height:"2rem",width:"2rem",display:s?"inline-flex":"none"}}),Er("p",{style:{margin:0,display:s?"none":"inline-flex"},children:"Open Leaderboard"})]})})]}),jn(DF,{children:[i&&Er(HF,{}),Er(Uu,{items:f})]})]})})},WF=VF(eSe);import{styled as Kn}from"@mui/material";var qF=Kn("div")({padding:"1rem 0","& h2":{margin:"1rem 0"},".get-started-desc":{margin:"1rem"}}),GF=Kn("div")(({theme:e})=>({display:"flex",cursor:"pointer",flexDirection:"row",flexWrap:"wrap","& a":{color:e.palette.text.primary,margin:"1rem"}})),zF=Kn("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}}})),jF=Kn("div")({display:"flex",alignItems:"center",gap:"1rem"}),jyt=Kn("div")({flex:"0 0 25%",alignSelf:"center",margin:"0 0.5rem"}),Kyt=Kn("img")({height:"3rem",width:"3rem",maxWidth:"3rem",margin:"auto"}),$yt=Kn("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)"})),Yyt=Kn("h2")({fontSize:"1.75rem",margin:"1rem 0"}),Zyt=Kn("p")(({theme:e})=>({color:e.palette.text.primary,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"}));import{jsx as Of,jsxs as K2}from"react/jsx-runtime";var tSe=({Steps:e,PrerequisiteLine:t})=>K2(qF,{children:[K2("div",{className:"get-started-desc",id:"pre-requisites",children:[Of("h2",{children:"Prerequisites"}),Of("p",{children:t})]}),Of(GF,{id:"Set up",children:e.map((r,o)=>K2(zF,{href:r.url,target:"_blank",children:[K2(jF,{children:[Of("h2",{children:r.heading}),typeof r.Icon=="string"?Of("img",{src:r.Icon,alt:r.heading,width:"40px",height:"40px"}):r.Icon]}),Of("p",{children:r.description})]},o))})]}),KF=tSe;import{styled as rSe}from"@mui/material";var oSe=rSe("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"?o4:a4,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}}})),$F=oSe;import{Fragment as tN}from"react";import{styled as Es}from"@mui/material";var YF=Es("div")({width:"52rem",maxWidth:"90%"}),ZF=Es("div")({display:"flex",alignItems:"center",background:"#323339",width:"100%",height:"2.875rem",borderRadius:"2px 2px 0 0"}),ubt=Es("div")({color:"#76767d",fontFamily:"'Courier New', Courier, monospace",fontSize:"13.5px",margin:"0 auto"}),QF=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"}}),XF=Es("div")({width:"100%",height:"100%",background:"#1d1e23",borderRadius:"0 0 2px 2px",padding:"24px 32px"}),JF=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%"}}}),eN=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 $n,jsxs as $2}from"react/jsx-runtime";var aSe=({lines:e,title:t,noScroll:r})=>$2(YF,{children:[$2(ZF,{children:[$2(QF,{children:[$n("li",{style:{backgroundColor:"red"}}),$n("li",{style:{backgroundColor:"yellow"}}),$n("li",{style:{backgroundColor:"green"}})]}),t&&$n("div",{className:"title",children:t})]}),$n(XF,{children:$n(JF,{className:r?"no-scroll-overflow-wrapper":"",children:$n(eN,{children:e&&e.map((o,a)=>$n(tN,{children:$2("pre",{className:`${o.short?"short":""}`,style:{color:o.color?o.color:"blue"},children:[o.indent&&new Array(o.indent*2).fill({}).map((n,i)=>$n(tN,{children:"\xA0"},i)),o.code]})},a))})})})]}),rN=aSe;import{styled as nSe}from"@mui/material";var oN=nSe("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 Y2,jsxs as lSe}from"react/jsx-runtime";var iSe=({availableChapters:e,currentChapter:t,onClick:r})=>{let o=a=>a.split("-").map(l=>l.charAt(0).toUpperCase()+l.slice(1)).join(" ");return Y2(oN,{children:Y2("div",{className:"toc-list",children:Y2("ul",{className:"toc-ul toc-ul-open",children:e.map(a=>Y2("li",{className:a+".mdx"===t?"active-link":"",onClick:n=>{r(a,n)},children:lSe("p",{className:"toc-item",children:[" ",o(a)]})},a))})})})},aN=iSe;import{useState as uSe}from"react";import{styled as sSe}from"@mui/material";var nN=sSe("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 Dr,jsxs as Z2}from"react/jsx-runtime";var fSe=[{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"}],dSe=({coursesData:e})=>{let[t,r]=uSe(!1);return Z2(nN,{children:[Z2("div",{className:"go-back",children:[Z2("a",{href:"/learn/learning-paths",children:[Dr(g4,{}),Dr("h4",{children:"Learning Paths"})]}),Dr("div",{className:"toc-toggle-btn",children:t?Dr(St,{className:"toc-menu-icon",onClick:()=>{r(!t)}}):Dr(Od,{className:"toc-menu-icon",onClick:()=>{r(!t)}})})]}),Dr("div",{className:"toc-list",children:Z2("ul",{className:`toc-ul ${t?"toc-ul-open":""}`,children:[Dr("a",{href:"#pre-requisites",children:Dr("h5",{className:"toc-sub-heading",children:"Pre-requisites"})}),fSe.map((o,a)=>Dr("li",{children:Dr("p",{className:"toc-item",children:Dr("a",{href:`#${o.name}`,children:o.name})})},a)),Dr("a",{href:"#courses-list",children:Dr("h5",{className:"toc-sub-heading",children:"Courses"})}),e.map((o,a)=>Dr("li",{children:Dr("p",{className:"toc-item",children:Dr("a",{href:`#${o.frontmatter.courseTitle}`,children:o.frontmatter.courseTitle})})},a))]})})]})},iN=dSe;import{Button as pSe}from"@mui/material";import mSe from"@mui/material/Autocomplete";import lN from"@mui/material/CircularProgress";import{useState as Q2}from"react";import{useDebounce as cSe}from"use-debounce";import{Fragment as d7,jsx as Rr,jsxs as e1}from"react/jsx-runtime";var xSe=({usersData:e,disabled:t=!1,shareWithNewUsers:r,useGetAllUsersQuery:o})=>{let[a,n]=Q2(!1),[i,l]=Q2(""),[s,u]=Q2([]),[f,d]=Q2(!1),p=te(),[m]=cSe(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)}},w=(b,A)=>{A&&(u(A),l(""))},E=(b,A,B)=>{B==="input"?l(A):B==="clear"&&l("")},I=g.filter(b=>!s.concat(e).find(A=>A.email===b.email)),D=t||f||s.length===0,C=({avatarObj:b,...A})=>Rr(Tt,{avatar:Rr(Mt,{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 Rr(d7,{children:e1(K,{display:"flex",alignItems:"center",justifyContent:"space-between",gap:1,children:[Rr(mSe,{id:"user-search-field",sx:{width:"100%"},filterOptions:b=>b,options:I,renderTags:(b,A)=>b.map((B,P)=>Rr(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:w,onInputChange:E,isOptionEqualToValue:(b,A)=>b.email===A.email,renderInput:b=>Rr(Vr,{...b,placeholder:"Add Users",error:!!a,helperText:a,fullWidth:!0,label:"",disabled:D,sx:{"& .MuiOutlinedInput-root":{paddingInline:"0.5rem",paddingBlock:"0.1rem"}},InputProps:{...b.InputProps,endAdornment:Rr(d7,{children:h?Rr(lN,{color:"inherit",size:20}):null})}}),renderOption:(b,A)=>Rr(K,{component:"li",sx:{"& > img":{mr:2,flexShrink:0}},...b,children:e1(me,{container:!0,alignItems:"center",children:[Rr(me,{children:Rr(K,{sx:{color:"text.secondary",mr:2},children:Rr(Mt,{alt:A.first_name,src:A.avatar_url,children:A.avatar_url?"":Rr(yn,{})})})}),Rr(me,{size:"grow",children:A.deleted_at?.Valid?e1(G,{variant:"body2",color:"text.secondary",children:[A.email," (deleted)"]}):e1(d7,{children:[e1(G,{variant:"body2",children:[A.first_name," ",A.last_name]}),Rr(G,{variant:"body2",color:"text.secondary",children:A.email})]})})]})})}),Rr(pSe,{variant:"contained",sx:{"&.Mui-disabled":{color:`${p.palette.text.secondary} !important`,backgroundColor:`${p.palette.action.disabled} !important`}},onClick:T,disabled:D,children:f?Rr(lN,{size:24,sx:{color:"#fff"}}):"Share"})]})})},p7=xSe;import{Autocomplete as hSe}from"@mui/material";import gSe,{useCallback as m7,useEffect as TSe,useMemo as SSe,useState as Af}from"react";import{Fragment as sN,jsx as vt,jsxs as Rs}from"react/jsx-runtime";var CSe=({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]=Af(""),[T,w]=Af(!1),[E,I]=Af(!1),[D,C]=Af(!0),[b,A]=Af(""),[B,P]=Af(e||[]);TSe(()=>{P(e||[])},[e]);let Q=SSe(()=>{if(D&&!m&&u)return[u];let N=f.filter(M=>M.user_id!==u?.user_id);return!m&&u?[u,...N]:N},[f,u,m,D,B]),Z=m7((N,M)=>{M.stopPropagation();let k=B.filter(F=>F.user_id!==N);P(k),t(k),o&&o(!1)},[B,t,o,p,b]),H=m7((N,M)=>{if(!M)return;let k=B.some(V=>V.user_id===M.user_id),F=M.deleted_at?.Valid===!0;if(k||F){g(k?"User already selected":"User does not exist");return}A(""),x(""),g(""),w(!1),P(V=>[...V,M]),t(V=>[...V,M]),o&&o(!1)},[B,t,o,x]),q=m7((N,M)=>{if(A(M),M==="")w(!0),x(""),C(!0);else{let k=encodeURIComponent(M);p(k),g(""),w(!0),C(!1)}},[p]);return Rs(sN,{children:[vt(hSe,{id:"user-search-field",style:{width:"100%"},open:T,options:Q,getOptionLabel:()=>b,isOptionEqualToValue:(N,M)=>N.user_id===M.user_id,onOpen:()=>w(!0),onClose:()=>w(!1),inputValue:b,onChange:H,onInputChange:q,filterOptions:(N,{inputValue:M})=>N.filter(k=>{let F=M.toLowerCase();return k.first_name?.toLowerCase().includes(F)||k.last_name?.toLowerCase().includes(F)||k.email?.toLowerCase().includes(F)}),loading:d,disabled:s,disableClearable:!0,value:void 0,selectOnFocus:!1,blurOnSelect:!0,clearOnBlur:!0,popupIcon:null,forcePopupIcon:!1,noOptionsText:d?"Loading...":"No users found",renderInput:N=>vt(Vr,{...N,label:r,error:!!h,helperText:h,InputLabelProps:{style:{fontFamily:"inherit"}},InputProps:{...N.InputProps,endAdornment:vt(gSe.Fragment,{children:d?vt(Lt,{color:"inherit",size:20}):null})}}),renderOption:(N,M)=>vt("li",{...N,id:M.user_id,children:Rs(K,{sx:{"& > img":{mr:2,flexShrink:0}},children:[" ",Rs(me,{container:!0,alignItems:"center",children:[vt(me,{children:vt(K,{sx:{color:"text.secondary",mr:2},children:vt(Mt,{alt:M.first_name,src:M.avatar_url,children:M.avatar_url?"":vt(yn,{})})})}),vt(me,{size:"grow",children:M.deleted?Rs(G,{variant:"body2",color:"text.secondary",children:[M.email," (deleted)"]}):Rs(sN,{children:[Rs(G,{variant:"body2",children:[M.first_name," ",M.last_name]}),vt(G,{variant:"body2",color:"text.secondary",children:M.email})]})})]})]})})}),!i&&vt(z3,{row:!0,children:vt("div",{style:{display:"flex",flexWrap:"nowrap"},children:vt(Wl,{control:vt(Br,{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:[!E&&B?.[0]&&vt(Tt,{avatar:vt(Mt,{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:N=>Z(B[0].user_id,N),deleteIcon:vt(Gt,{title:"Remove user",children:vt(St,{style:qr})}),size:"small"},B[0].user_id),E&&B?.map(N=>vt(Tt,{avatar:vt(Mt,{alt:N.first_name,src:N.avatar_url,children:!N.avatar_url&&N.first_name?.[0]}),label:N.email,onDelete:M=>Z(N.user_id,M),deleteIcon:vt(Gt,{title:"Remove user",children:vt(St,{style:qr})}),size:"small"},N.user_id)),B?.length>1&&vt(G,{onClick:()=>I(!E),sx:{cursor:"pointer"},children:E?"(hide)":`(+${B.length-1})`})]})]})},uN=CSe;import{Box as _Ce,Stack as LN,Step as ICe,StepConnector as kCe,StepLabel as MCe,Stepper as LCe}from"@mui/material";import{stepConnectorClasses as Mf}from"@mui/material/StepConnector";function Pf(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 RSe from"@emotion/styled";function fN(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 dN={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 pN(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var ySe=!1,bSe=/[A-Z]|^ms/g,vSe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hN=function(t){return t.charCodeAt(1)===45},mN=function(t){return t!=null&&typeof t!="boolean"},c7=pN(function(e){return hN(e)?e:e.replace(bSe,"-$&").toLowerCase()}),cN=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(vSe,function(o,a,n){return Qa={name:a,styles:n,next:Qa},a})}return dN[t]!==1&&!hN(t)&&typeof r=="number"&&r!==0?r+"px":r},wSe="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function t1(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 Qa={name:a.name,styles:a.styles,next:Qa},a.name;var n=r;if(n.styles!==void 0){var i=n.next;if(i!==void 0)for(;i!==void 0;)Qa={name:i.name,styles:i.styles,next:Qa},i=i.next;var l=n.styles+";";return l}return ESe(e,t,r)}case"function":{if(e!==void 0){var s=Qa,u=r(e);return Qa=s,t1(e,t,u)}break}}var f=r;if(t==null)return f;var d=t[f];return d!==void 0?d:f}function ESe(e,t,r){var o="";if(Array.isArray(r))for(var a=0;a<r.length;a++)o+=t1(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]+"}":mN(l)&&(o+=c7(n)+":"+cN(n,l)+";")}else{if(n==="NO_COMPONENT_SELECTOR"&&ySe)throw new Error(wSe);if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)mN(i[s])&&(o+=c7(n)+":"+cN(n,i[s])+";");else{var u=t1(e,t,i);switch(n){case"animation":case"animationName":{o+=c7(n)+":"+u+";";break}default:o+=n+"{"+u+"}"}}}}return o}var xN=/label:\s*([^\s;{]+)\s*(;|$)/g,Qa;function gN(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="";Qa=void 0;var n=e[0];if(n==null||n.raw===void 0)o=!1,a+=t1(r,t,n);else{var i=n;a+=i[0]}for(var l=1;l<e.length;l++)if(a+=t1(r,t,e[l]),o){var s=n;a+=s[l]}xN.lastIndex=0;for(var u="",f;(f=xN.exec(a))!==null;)u+="-"+f[1];var d=fN(a)+u;return{name:d,styles:a,next:Qa}}import{ThemeContext as hvt,keyframes as gvt,css as Tvt}from"@emotion/react";function x7(e,t){let r=RSe(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
|
+
`,g8e=Wo(Ad)(({theme:e})=>({height:"2.25rem",width:"2.25rem",fill:e.palette.common.white,cursor:"pointer"})),T8e=Wo(E4)(({theme:e})=>({height:"2.25rem",width:"2.25rem",fill:e.palette.common.white,cursor:"pointer"})),T2=Wo("div")(({theme:e})=>({background:e.palette.mode==="light"?gn.header:hn.header,color:"#eee",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"1rem",textAlign:"center"})),S8e=({headerIcon:e})=>{let[t,r]=g2(!1),[o,a]=g2(""),n=x8e(null),[i,l]=g2(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}}},br=Wo(cn)(({theme:e})=>({padding:"1rem",backgroundColor:e.palette.background.surfaces,overflowY:"auto",height:"100%",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},"-ms-overflow-style":"none"})),C8e=Wo("div",{shouldForwardProp:e=>e!=="variant"})(({theme:e,variant:t,hasHelpText:r})=>({background:t==="filled"?e.palette.mode==="light"?gn.fotter:hn.fotter:"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}})),vr=({open:e,closeModal:t,title:r,headerIcon:o,reactNode:a,children:n,maxWidth:i="xs",isFullScreenModeAllowed:l,...s})=>{let[u,f]=g2(!1),d=()=>{f(p=>!p)};return Pp(h8e,{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&&Pp(T2,{children:[o&&o,Sa(G,{component:"div",variant:"h6",children:r}),Pp("div",{style:{display:"flex",alignItems:"center",gap:"1rem"},children:[l&&Sa(ce,{title:u?"Exit Fullscreen":"Enter Fullscreen",children:u?Sa(T8e,{onClick:d}):Sa(g8e,{onClick:d})}),Sa(df,{onClick:t,children:Sa(St,{...Wu,fill:"#fff"})})]})]}),a&&a,n&&n]})},jr=({helpText:e,children:t,variant:r})=>Pp(C8e,{variant:r,hasHelpText:!!e,children:[e&&Sa(ce,{title:e,variant:"standard",placement:"top",children:Sa(tt,{children:Sa(R4,{...Ar,className:"InfoCircleIcon"})})}),t]}),Ya=Wo(W3)(({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}})),Za=Wo(bw)(({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}})),y8e=Wo(vw)(({theme:e})=>({color:e.palette.text.inverse})),b8e=Wo(W3)(({theme:e})=>({backgroundColor:e.palette.background.error?.default,color:e.palette.text.constant?.white,"&:hover":{background:e.palette.background.error?.hover}})),v8e=Wo(K)(()=>({width:"100%",display:"flex",justifyContent:"end",gap:"1rem"})),_p=({primaryText:e,secondaryText:t,primaryButtonProps:r,secondaryButtonProps:o})=>Pp(v8e,{children:[Sa(Za,{...o,children:t}),Sa(Ya,{...r,children:e})]});import{styled as Ip}from"@mui/material";var JM=Ip("div")(({theme:e})=>({backgroundColor:e.palette.background.surfaces})),eL=Ip("div")(()=>({zIndex:"100",borderRadius:"5px"})),tL=Ip("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"})),rL=Ip(G)({fontSize:"18px"}),oL=Ip("div")(()=>({display:"flex",borderRadius:"5px 5px 0px 0px",justifyContent:"space-between",padding:"11px 16px",height:"52px",fill:mt,boxShadow:"inset 0px -1px 3px 0px rgba(0,0,0,0.2)",background:"linear-gradient(90deg, #3B687B 0%, #507D90 100%)"}));import{Fragment as aL,jsx as Cs,jsxs as c6}from"react/jsx-runtime";function w8e({title:e,leftHeaderIcon:t,helpText:r,helpArea:o,actions:a,hideActions:n=!1,content:i,closeComponent:l}){return c6(eL,{children:[c6(oL,{children:[t&&Cs("div",{style:{display:"flex",alignItems:"center"},children:t}),e&&Cs(aL,{children:Cs("div",{style:{display:"flex",alignItems:"center",color:"white"},children:Cs(rL,{children:e})})}),c6("div",{style:{display:"flex",alignItems:"center"},children:[r&&Cs(aL,{children:o}),l]})]}),Cs(JM,{children:i}),!n&&Cs(tL,{children:a})]})}var S2=w8e;import{Box as x6,Button as h6,Checkbox as E8e,styled as wr}from"@mui/material";var nL=wr("div")({cursor:"pointer",width:"30px",height:"30px",display:"flex",alignItems:"center",fill:Li}),R8e={"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"}}},iL=wr(x6)(({isOpen:e,renderPosition:t})=>({position:"fixed",transition:"all 0.5s ease",...R8e[t][e?"open":"closed"]})),lL=wr("div")({display:"flex",flexDirection:"column",justifyContent:"center",transition:"bottom 0.5s ease",padding:"1.688rem 1.188rem",width:"28rem",height:"12rem"}),sL=wr("div")({display:"flex",alignItems:"center",paddingTop:"0.5px",height:"20px",width:"21.188rem"}),uL=wr("div")({width:"24px",height:"24px"}),Vgt=wr(h6)(({isOpen:e})=>({color:"white",width:"4.313rem",height:"2.25rem",textTransform:"none",boxShadow:"0px 1px 8px rgba(0, 0, 0, 0.25)",backgroundColor:e?ku.main:We,"&:hover":{backgroundColor:Nw}})),fL=wr(h6)(({theme:e,renderPosition:t})=>({backgroundColor:Iu,color:Li,borderRadius:"5px",padding:"10px 20px",fontSize:"16px",transition:"bottom 0.5s ease",position:"fixed",...O8e[t],"&:hover":{backgroundColor:e.palette.mode==="dark"?nr:"#213A45"}})),O8e={"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)"}},dL=wr("div")(({theme:e})=>({display:"block",right:"0",backgroundColor:e.palette.mode==="dark"?"#333333":Li,bottom:"0",width:"100%",zIndex:"100",position:"relative",height:"100%",alignItems:"center",transition:"bottom 0.5s ease"})),pL=wr(x6)(({isOpen:e,theme:t})=>({position:"relative",bottom:e?"0px":"-240px",right:"0",color:t.palette.text.default,backgroundColor:t.palette.mode==="dark"?Kl:mt,border:`1px solid ${qw}`,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"})),mL=wr(x6)({display:"flex",justifyContent:"space-between",alignSelf:"center"}),cL=wr(h6)(({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 ${We}`:"",background:t?e.palette.mode==="dark"?nr:Do:e.palette.mode==="dark"?Kl:$l,color:t?e.palette.mode==="dark"?Do:nr:e.palette.mode==="dark"?Do:Do,fill:t?e.palette.icon.default:Do,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}})),xL=wr("textarea")(({theme:e})=>({width:"100%",background:"transparent",border:`1px solid ${_u}`,borderRadius:"4px",color:e.palette.mode==="dark"?Do:nr,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"?Do:Kl},"&:focus":{outline:`1px solid ${go}`}})),hL=wr("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-between",height:"137px",color:e.palette.text.default})),gL=wr("a")({textDecoration:"underline",color:"inherit","&:hover":{color:"inherit"}}),TL=wr(E8e)({color:`${mt} !important`,marginLeft:"-11px",paddingLeft:"0px"}),SL=wr("div")({padding:"1.5rem 1rem",width:"28rem",height:"12rem"}),CL=wr("div")({padding:"0px",width:"30px",height:"30px",display:"flex",alignItems:"center"});import{Fragment as yL,jsx as xt,jsxs as al}from"react/jsx-runtime";var A8e="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.",g6=[{icon:xt(cx,{}),label:"Issue",placeholder:"I\u2019m having an issue with...",isTextInput:!0},{icon:xt(M4,{}),label:"Suggestion",placeholder:"I have a suggestion about...",isTextInput:!0},{icon:xt(O4,{}),label:"Meet Request",isTextInput:!1,innerComponent:al(hL,{children:[al(T6,{style:{lineHeight:"2.5",textAlign:"center"},children:["Need help or have more feedback than fits here?",xt("br",{})," Meet with us."]}),xt(gL,{target:"_blank",href:"https://calendar.google.com/calendar/appointments/schedules/AcZssZ3pmcApaDP4xd8hvG5fy8ylxuFxD3akIRc5vpWJ60q-HemQi80SFFAVftbiIsq9pgiA2o8yvU56",children:"Select a time convenient for you."})]})}],P8e=({onSubmit:e,containerStyles:t,feedbackOptionStyles:r,renderPosition:o,defaultMessage:a=void 0,defaultOpen:n=!1})=>{let[i,l]=kp(n),[s,u]=kp(!1),[f,d]=kp(g6[0]),[p,m]=kp(a),[x,h]=kp(!!a);return al(yL,{children:[xt(fL,{onClick:()=>{l(!i),d(g6[0]),u(!1),m("")},style:t,renderPosition:o,children:"Feedback"}),xt(iL,{isOpen:i,style:t,renderPosition:o,children:s?al(pL,{isOpen:i,children:[xt(K4,{width:"32",height:"32"}),"Submitting your feedback..."]}):xt(yL,{children:xt(S2,{onClose:()=>{},open:!0,closeComponent:xt(nL,{onClick:()=>l(!1),children:xt(St,{width:"30",height:"30",fill:Li})}),actions:al("div",{style:{display:"flex",alignItems:"center"},children:[al(sL,{children:[xt(TL,{checked:x,onChange:E=>{h(E.target.checked)}}),xt(T6,{style:{color:"white",fontSize:"12px",height:"15px"},children:"We may email you for more information or updates"})]}),xt(Ya,{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:xt(cx,{}),title:"Feedback",helpArea:xt(ce,{placement:"top",title:A8e,arrow:!0,children:xt(CL,{children:xt(G4,{width:"30",height:"30"})})}),helpText:"Help",content:al(dL,{children:[xt(mL,{children:g6?.map(E=>al(cL,{style:r,type:"button",onClick:()=>{d(E)},isOpen:f?.label===E.label,children:[xt(uL,{children:E.icon}),xt(T6,{children:E.label})]},E.label))}),f?.isTextInput?xt(lL,{children:xt(xL,{value:p||"",onChange:E=>{m(E.target.value)},required:!0,placeholder:f.placeholder,rows:5,cols:30})}):xt(SL,{children:f?.innerComponent})]})})})})]})},bL=P8e;import{styled as y2}from"@mui/material";import pf from"react";import{jsx as C2}from"react/jsx-runtime";function vL(e,t){if(!e||e.length!=2)throw Error("FlipCard requires exactly two child components");return e[t]}var _8e=y2("div")(({theme:e})=>({height:"100%",backgroundColor:"transparent",perspective:e.spacing(125)})),I8e=y2("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"?bd:mt,cursor:"pointer",transformOrigin:"50% 50% 10%"})),k8e=y2("div")({backfaceVisibility:"hidden"}),M8e=y2("div")({backfaceVisibility:"hidden",transform:"scale(-1, 1)",wordBreak:"break-word"});function b2({duration:e=500,onClick:t,onShow:r,children:o,disableFlip:a=!1,padding:n}){let[i,l]=pf.useState(!1),[s,u]=pf.useState(!1),f=pf.useRef(null),d=vL(o,0),p=vL(o,1);return pf.useEffect(()=>{f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{u(i)},e/6)},[i,e]),C2(_8e,{onClick:()=>{a||(l(m=>!m),t&&t(),r&&r())},children:C2(I8e,{style:{transform:i?"scale(-1,1)":void 0,transition:`transform ${e}ms`,padding:n},children:s?C2(M8e,{children:pf.isValidElement(p)?p:null}):C2(k8e,{children:pf.isValidElement(d)?d:null})})})}import{Box as L8e,Tooltip as wL,Typography as D8e}from"@mui/material";import F8e from"lodash";import{useState as N8e}from"react";import{jsx as Mp,jsxs as B8e}from"react/jsx-runtime";var v2=({id:e})=>{let[t,r]=N8e(!1),o=te(),a=i=>{i.stopPropagation(),navigator.clipboard.writeText(e),r(!0),setTimeout(()=>{r(!1)},2e3)},n=F8e.truncate(e,{length:15});return B8e(L8e,{sx:{display:"flex",alignItems:"center"},children:[Mp(wL,{title:e,placement:"top",children:Mp(D8e,{variant:"body2",style:{cursor:"pointer",textWrap:"nowrap",color:o.palette.text.primary},children:n})}),Mp(wL,{title:t?"Copied!":"Copy",placement:"top",children:Mp("div",{onClick:a,style:{padding:"0.25rem"},children:Mp(sa,{width:16,height:16,fill:o.palette.action.active})})})]})};import EL from"react";function RL(){let{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}function qo(){let[e,t]=EL.useState(RL());return EL.useEffect(()=>{let r;function o(){r&&clearTimeout(r),r=window.setTimeout(()=>{t(RL())},500)}return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),r&&clearTimeout(r)}},[]),e}import gf,{useMemo as j8e,forwardRef as Wp,useRef as Hp,useCallback as O6,useEffect as Vp,createElement as Bp,cloneElement as K8e,useLayoutEffect as $8e,memo as PTt,useState as _Tt,Component as ITt,isValidElement as kTt,useContext as Y8e}from"react";import{createPortal as LTt}from"react-dom";function OL(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=OL(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function H8e(){for(var e,t,r=0,o="";r<arguments.length;)(e=arguments[r++])&&(t=OL(e))&&(o&&(o+=" "),o+=t);return o}var Lp=H8e;var V8e={data:""},U8e=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||V8e;var W8e=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,q8e=/\/\*[^]*?\*\/| +/g,AL=/\n+/g,ys=(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"?ys(i,n):n+"{"+ys(i,n[1]=="k"?"":t)+"}":typeof i=="object"?o+=ys(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+=ys.p?ys.p(n,i):n+":"+i+";")}return r+(t&&a?t+"{"+a+"}":a)+o},Vn={},PL=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+PL(e[r]);return t}return e},G8e=(e,t,r,o,a)=>{let n=PL(e),i=Vn[n]||(Vn[n]=(s=>{let u=0,f=11;for(;u<s.length;)f=101*f+s.charCodeAt(u++)>>>0;return"go"+f})(n));if(!Vn[i]){let s=n!==e?e:(u=>{let f,d,p=[{}];for(;f=W8e.exec(u.replace(q8e,""));)f[4]?p.shift():f[3]?(d=f[3].replace(AL," ").trim(),p.unshift(p[0][d]=p[0][d]||{})):p[0][f[1]]=f[2].replace(AL," ").trim();return p[0]})(e);Vn[i]=ys(a?{["@keyframes "+i]:s}:s,r?"":"."+i)}let l=r&&Vn.g?Vn.g:null;return r&&(Vn.g=Vn[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)})(Vn[i],t,o,l),i},z8e=(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?"":ys(l,""):l===!1?"":l}return o+a+(i??"")},"");function w2(e){let t=this||{},r=e.call?e(t.p):e;return G8e(r.unshift?r.raw?z8e(r,[].slice.call(arguments,1),t.p):r.reduce((o,a)=>Object.assign(o,a&&a.call?a(t.p):a),{}):r,U8e(t.target),t.g,t.o,t.k)}var ETt=w2.bind({g:1}),RTt=w2.bind({k:1});function _L(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 Z8e(e,t,r){return t&&_L(e.prototype,t),r&&_L(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 Q8e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function A6(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 IL=function(){return""},X8e=gf.createContext({enqueueSnackbar:IL,closeSnackbar:IL}),bs={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"};var E2="unmounted",mf="exited",cf="entering",Dp="entered",kL="exiting",P6=function(e){Q8e(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=mf,a.appearStatus=cf):i=Dp:o.unmountOnExit||o.mountOnEnter?i=E2:i=mf,a.state={status:i},a.nextCallback=null,a}t.getDerivedStateFromProps=function(a,n){var i=a.in;return i&&n.status===E2?{status:mf}: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!==cf&&i!==Dp&&(n=cf):(i===cf||i===Dp)&&(n=kL)}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===cf?this.performEnter(a):this.performExit()):this.props.unmountOnExit&&this.state.status===mf&&this.setState({status:E2})},r.performEnter=function(a){var n=this,i=this.props.enter,l=a,s=this.getTimeouts();if(!a&&!i){this.safeSetState({status:Dp},function(){n.props.onEntered&&n.props.onEntered(n.node,l)});return}this.props.onEnter&&this.props.onEnter(this.node,l),this.safeSetState({status:cf},function(){n.props.onEntering&&n.props.onEntering(n.node,l),n.onTransitionEnd(s.enter,function(){n.safeSetState({status:Dp},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:mf},function(){a.props.onExited&&a.props.onExited(a.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:kL},function(){a.props.onExiting&&a.props.onExiting(a.node),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:mf},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===E2)return null;var n=this.props,i=n.children,l=A6(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return i(a,l)},Z8e(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}(gf.Component);function xf(){}P6.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xf,onEntering:xf,onEntered:xf,onExit:xf,onExiting:xf,onExited:xf};function ML(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function E6(e,t){return j8e(function(){return e==null&&t==null?null:function(r){ML(e,r),ML(t,r)}},[e,t])}function P2(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 R6={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)"},HL=function(t){t.scrollTop=t.scrollTop},LL=function(t){return Math.round(t)+"ms"};function hf(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?R6.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:LL(a),p=typeof s=="string"?s:LL(s);return f+" "+d+" "+i+" "+p}).join(",")}function J8e(e){return e&&e.ownerDocument||document}function VL(e){var t=J8e(e);return t.defaultView||window}function e6e(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 t6e(e,t){var r=t.getBoundingClientRect(),o=VL(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 R2(e,t){if(t){var r=t6e(e,t);r&&(t.style.webkitTransform=r,t.style.transform=r)}}var r6e=Wp(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=A6(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),x=Hp(null),h=E6(r.ref,x),g=E6(h,t),T=function(b,A){R2(a,b),HL(b),u&&u(b,A)},w=function(b){var A=i?.transitionTimingFunction||R6.easeOut,B=P2({timeout:s,mode:"enter",style:nl({},i,{transitionTimingFunction:A})});b.style.webkitTransition=hf("-webkit-transform",B),b.style.transition=hf("transform",B),b.style.webkitTransform="none",b.style.transform="none"},E=function(b){var A=i?.transitionTimingFunction||R6.sharp,B=P2({timeout:s,mode:"exit",style:nl({},i,{transitionTimingFunction:A})});b.style.webkitTransition=hf("-webkit-transform",B),b.style.transition=hf("transform",B),R2(a,b),d&&d(b)},I=function(b){b.style.webkitTransition="",b.style.transition="",p&&p(b)},D=O6(function(){x.current&&R2(a,x.current)},[a]);return Vp(function(){if(!(n||a==="down"||a==="right")){var C=e6e(function(){x.current&&R2(a,x.current)}),b=VL(x.current);return b.addEventListener("resize",C),function(){C.clear(),b.removeEventListener("resize",C)}}},[a,n]),Vp(function(){n||D()},[n,D]),Bp(P6,Object.assign({appear:!0,nodeRef:x,onEnter:T,onEntered:f,onEntering:w,onExit:E,onExited:I,in:n,timeout:s},m),function(C,b){return K8e(r,nl({ref:g,style:nl({visibility:C==="exited"&&!n?"hidden":void 0},i,{},r.props.style)},b))})});r6e.displayName="Slide";function _2(e){return Object.entries(e).reduce(function(t,r){var o,a=r[0],n=r[1];return nl({},t,(o={},o[a]=w2(n),o))},{})}var Up={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},DL=_2({root:{height:0},entered:{height:"auto"}}),S6="0px",C6=175,o6e=Wp(function(e,t){var r=e.children,o=e.in,a=e.onExited,n=Hp(null),i=Hp(null),l=E6(t,i),s=function(){return n.current?n.current.clientHeight:0},u=function(h){h.style.height=S6},f=function(h){var g=s(),T=P2({timeout:C6,mode:"enter"}),w=T.duration,E=T.easing;h.style.transitionDuration=typeof w=="string"?w:w+"ms",h.style.height=g+"px",h.style.transitionTimingFunction=E||""},d=function(h){h.style.height="auto"},p=function(h){h.style.height=s()+"px"},m=function(h){HL(h);var g=P2({timeout:C6,mode:"exit"}),T=g.duration,w=g.easing;h.style.transitionDuration=typeof T=="string"?T:T+"ms",h.style.height=S6,h.style.transitionTimingFunction=w||""};return Bp(P6,{in:o,unmountOnExit:!0,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:a,onExiting:m,nodeRef:i,timeout:C6},function(x,h){return Bp("div",Object.assign({ref:l,className:Lp(DL.root,x==="entered"&&DL.entered),style:nl({pointerEvents:"all",overflow:"hidden",minHeight:S6,transition:hf("height")},x==="entered"&&{overflow:"visible"},{},x==="exited"&&!o&&{visibility:"hidden"})},h),Bp("div",{ref:n,className:Up.CollapseWrapper,style:{display:"flex",width:"100%"}},r))})});o6e.displayName="Collapse";var a6e=typeof window<"u"?$8e:Vp;function FL(e){var t=Hp(e);return a6e(function(){t.current=e}),O6(function(){return t.current.apply(void 0,arguments)},[])}var n6e=Wp(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=Hp(),m=FL(function(){l&&l.apply(void 0,arguments)}),x=FL(function(E){!l||E==null||(p.current&&clearTimeout(p.current),p.current=setTimeout(function(){m(null,"timeout",s)},E))});Vp(function(){return u&&x(a),function(){p.current&&clearTimeout(p.current)}},[u,a,x]);var h=function(){p.current&&clearTimeout(p.current)},g=O6(function(){a!=null&&x(a*.5)},[a,x]),T=function(I){d.onMouseEnter&&d.onMouseEnter(I),h()},w=function(I){d.onMouseLeave&&d.onMouseLeave(I),g()};return Vp(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]),Bp("div",Object.assign({ref:t},d,{className:Lp(Up.Snackbar,o),onMouseEnter:T,onMouseLeave:w}),r)});n6e.displayName="Snackbar";var y6,i6e=_2({root:(y6={display:"flex",flexWrap:"wrap",flexGrow:1},y6[bs.upSm]={flexGrow:"initial",minWidth:"288px"},y6)}),UL=Wp(function(e,t){var r=e.className,o=A6(e,["className"]);return gf.createElement("div",Object.assign({ref:t,className:Lp(i6e.root,r)},o))});UL.displayName="SnackbarContent";var Fp=_2({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"}}),NL="notistack-snackbar",l6e=Wp(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)),gf.createElement(UL,{ref:t,role:"alert","aria-describedby":NL,style:s,className:Lp(Up.MuiContent,Up.MuiContentVariant(i),Fp.root,Fp[i],u,!l&&f&&Fp.lessPadding)},gf.createElement("div",{id:NL,className:Fp.message},l?null:f,o),d&&gf.createElement("div",{className:Fp.action},d))});l6e.displayName="MaterialDesignContent";var Np,b6,O2,A2,v6,Un={view:{default:20,dense:4},snackbar:{default:6,dense:2}},BL="."+Up.CollapseWrapper,w6=16,NTt=_2({root:(Np={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:hf(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},Np[BL]={padding:Un.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},Np.maxWidth="calc(100% - "+Un.view.default*2+"px)",Np[bs.downXs]={width:"100%",maxWidth:"calc(100% - "+w6*2+"px)"},Np),rootDense:(b6={},b6[BL]={padding:Un.snackbar.dense+"px 0px"},b6),top:{top:Un.view.default-Un.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:Un.view.default-Un.snackbar.default+"px",flexDirection:"column-reverse"},left:(O2={left:Un.view.default+"px"},O2[bs.upSm]={alignItems:"flex-start"},O2[bs.downXs]={left:w6+"px"},O2),right:(A2={right:Un.view.default+"px"},A2[bs.upSm]={alignItems:"flex-end"},A2[bs.downXs]={right:w6+"px"},A2),center:(v6={left:"50%",transform:"translateX(-50%)"},v6[bs.upSm]={alignItems:"center"},v6)});var BTt=process.env.NODE_ENV!=="production";var WL=function(){return Y8e(X8e)};import qL from"react";var s6e=()=>{let[e,t]=qL.useState(""),{enqueueSnackbar:r}=WL();return qL.useEffect(()=>{e&&(r(e),t(""))},[e,r]),(a,n)=>{t(a),n&&r(a,n)}},GL=s6e;var Go=(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 Wn}from"@mui/material/styles";var zL=Wn("div")({width:"28rem",height:"16rem",margin:"auto",borderRadius:"1rem"}),jL=Wn("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"?mt:nr})),KL=Wn("a")({color:"black",textDecoration:"none"}),_6=Wn("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)"})),$L=Wn("div")(({theme:e})=>({background:e.palette.mode==="light"?n4:Zl,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"})),I6=Wn("div")(({theme:e})=>({display:"flex",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)"}})),k6=Wn("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"}})),YL=Wn("div")(({theme:e})=>({padding:"0 1rem",position:"absolute",bottom:"0rem",p:{fontSize:"1rem",color:e.palette.text.primary,fontWeight:600,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"}})),M6=Wn("div")({textAlign:"center",position:"absolute",bottom:"0.1rem",right:"0.75rem",opacity:.2,img:{height:"8.5rem",width:"8.5rem"}});import{Fragment as d6e,jsx as Pt,jsxs as qp}from"react/jsx-runtime";var u6e=({path:e,children:t})=>e?Pt(KL,{href:e,children:t}):Pt(d6e,{children:t}),f6e=({tutorial:e,path:t,courseCount:r,courseType:o})=>Pt(zL,{children:e.frontmatter.disabled==="yes"?Pt($L,{children:Pt(_6,{style:{borderTop:`5px solid ${e.frontmatter.themeColor}`},children:qp("div",{children:[qp(I6,{children:[Pt("h3",{children:e.frontmatter.title?e.frontmatter.title:e.frontmatter.courseTitle}),Pt("div",{style:{whiteSpace:"nowrap"},children:Pt("span",{children:"Coming Soon"})})]}),Pt(k6,{children:Pt("p",{className:"summary",children:e.frontmatter.description})}),Pt(M6,{children:Pt("img",{src:e.frontmatter.cardImage,alt:e.frontmatter.title})})]})})}):Pt(u6e,{path:t,children:Pt(jL,{children:Pt(_6,{style:{borderTop:`5px solid ${e.frontmatter.themeColor}`},children:qp("div",{children:[qp(I6,{children:[Pt("h3",{children:e.frontmatter.title?e.frontmatter.title:e.frontmatter.courseTitle}),e.frontmatter.status?Pt("p",{children:Pt("span",{children:"New"})}):null]}),Pt(k6,{children:Pt("p",{className:"summary",children:e.frontmatter.description})}),Pt(YL,{className:"card-subdata",children:qp("p",{children:[r," ",o,r>1?"s":""]})}),Pt(M6,{children:Pt("img",{src:e.frontmatter.cardImage})})]})})})})}),ZL=f6e;import{forwardRef as p6e,useImperativeHandle as m6e,useRef as c6e,useState as x6e}from"react";import{styled as QL}from"@mui/material";var XL=QL(Vl)(()=>({minWidth:400,overflowWrap:"anywhere",textAlign:"center",padding:"5px"})),JL=QL(K)(()=>({display:"flex",justifyContent:"end",width:"100%",gap:"10px"}));import{jsx as il,jsxs as L6}from"react/jsx-runtime";var I2={WARNING:"warning",DANGER:"error",SUCCESS:"success",INFO:"info"},eD=p6e(({variant:e},t)=>{let[r,o]=x6e({isOpen:!1,title:"",subtitle:"",primaryOption:"",showInfoIcon:"",variant:e,headerIcon:void 0,isChecked:!1,showCheckbox:!1}),a=c6e({resolve:()=>{},reject:()=>{}}),n=te(),i=w=>new Promise((E,I)=>{a.current={resolve:E,reject:I},o({...w,isOpen:!0,showInfoIcon:w.showInfoIcon||"",showCheckbox:!!w.showCheckbox})}),l=()=>{o(w=>({...w,isOpen:!1}))},s=()=>{o(w=>({...w,isChecked:!w.isChecked}))},u=()=>!!r.isChecked;m6e(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 L6(vr,{open:f,closeModal:l,title:p,id:"searchClick",headerIcon:h,reactNode:void 0,children:[m&&L6(br,{children:[il(XL,{id:"alert-dialog-description",variant:"body1",component:"div",children:il(G,{variant:"body1",component:"div",style:{color:n.palette.text.primary},children:m})}),g&&il(Wl,{control:il(Br,{checked:u(),onChange:s,color:"primary"}),label:il("span",{style:{fontSize:"1rem"},children:"Do not show again"})})]}),il(jr,{variant:"filled",helpText:x,children:L6(JL,{children:[il(Za,{onClick:()=>{l(),T("CANCEL")},children:"Cancel"}),il(Ya,{onClick:()=>{l(),T(d)},style:r.variant&&{backgroundColor:n.palette.background[r.variant]?.default,textTransform:"capitalize"},type:"submit",children:d})]})})]})});eD.displayName="PromptComponent";var D6=eD;var Tf=D6;import{outlinedInputClasses as tD}from"@mui/material/OutlinedInput";import{ThemeProvider as h6e,createTheme as g6e}from"@mui/material/styles";import T6e from"lodash/debounce";import rD,{useCallback as S6e}from"react";import{jsx as vs,jsxs as b6e}from"react/jsx-runtime";var C6e=e=>g6e({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 .${tD.notchedOutline}`]:{borderColor:"var(--TextField-brandBorderHoverColor)"},[`&.Mui-focused .${tD.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 y6e({onSearch:e,placeholder:t,onClear:r,expanded:o,setExpanded:a}){let[n,i]=rD.useState(""),l=rD.useRef(null),s=te(),u=S6e(T6e(m=>{e(m)},300),[e]),f=m=>{let x=m.target.value;i(x),u(x)},d=m=>{m.stopPropagation(),u(""),i(""),a(!1),r&&r()},p=m=>{m.stopPropagation(),o?(u(""),i(""),a(!1)):(a(!0),setTimeout(()=>{l.current&&l.current.focus()},300))};return vs(mn,{onClickAway:m=>{m.stopPropagation();let x=m.target?.closest("#ref");n===""&&x&&d(m)},children:b6e("div",{style:{display:"flex"},children:[vs(h6e,{theme:C6e(s),children:vs(Vr,{variant:"standard",value:n,onChange:f,inputRef:l,placeholder:t,style:{width:o?"150px":"0",opacity:o?1:0,transition:"width 0.3s ease, opacity 0.3s ease"}})}),o?vs(Ht,{title:"Close",onClick:d,icon:vs(St,{fill:s.palette.icon.default}),arrow:!0}):vs(Ht,{title:"Search",onClick:p,icon:vs(Gd,{fill:s.palette.icon.default}),arrow:!0})]})})}var qn=y6e;import{Grid2 as _6e,TableCell as I6e}from"@mui/material";import{useRef as R6e,useState as Cf}from"react";var v6e="N/A",oD=e=>e&&e.deleted_at&&e.deleted_at.Valid===!0?Ss(e.deleted_at.Time):v6e;import{jsx as ll}from"react/jsx-runtime";var aD=L("div")({display:"flex",gap:"1rem"}),sl=L("div")({display:"flex",justifyContent:"space-between",width:"100%",alignItems:"center"}),k2=L("div")({display:"flex",alignItems:"center",marginRight:"1rem"}),F6=L("div")({boxSizing:"border-box",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),N6=L("div")({position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box",display:"block",width:"100%"}),nD=L("span")(()=>({"& svg":{cursor:"pointer",width:"2rem",height:"2rem"}})),D8t=L("span")(()=>({"& svg":{width:"2rem",height:"2rem"}})),iD=L("span")(({theme:e})=>({"& svg":{color:"#3C494F","&:hover":{color:e.palette.error.error}}})),Gp=L("span")(()=>({color:"#455a64",opacity:"0.5","& svg":{cursor:"not-allowed"}})),lD=L("div")(()=>({display:"flex",justifyContent:"space-between",paddingRight:"26px"})),M2=L("div")(()=>({color:"#455a64",display:"flex",cursor:"not-allowed","& svg":{cursor:"pointer"}})),sD=L(Br)({padding:0,marginRight:"0.5rem",height:"28px","& .MuiSvgIcon-root":{borderColor:"white"},color:"white","&:hover":{color:"white",cursor:"pointer"},"&.Mui-checked":{color:"white"}}),B6=L(G)({fontSize:"1.25rem",fontWeight:800,"&:hover":{cursor:"default"}}),F8t=L(G)({fontSize:"0.9rem",display:"flex",alignItems:"end",padding:"0 5px","&:hover":{cursor:"default"}}),N8t=L("button")({background:"transparent",border:"none","&:hover":{cursor:"default"}}),H6=L(G)({fontStyle:"italic",fontSize:"12px","&:hover":{cursor:"default"}}),V6=L(G)({fontSize:"0.9rem",textAlign:"left",fontStyle:"italic"}),uD=L(V6)({height:"fit-content",fontStyle:"normal","&:hover":{cursor:"default"}}),w6e=L(K)(({theme:e})=>({background:e.palette.background.brand?.default,padding:"10px 10px 1px 10px",borderRadius:"4px",height:"100%",display:"flex",width:"100%"})),zp=L(w6e)({display:"flex",width:"100%",gap:"10px","@media (min-width : 600px)":{flexDirection:"column",gap:"0"}}),U6=L(Ae)(({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"})),W6=L("p")(({theme:e,textColor:t})=>({margin:"0",fontSize:"14px",fontWeight:"400",display:"flex",color:t||e.palette.text.constant?.white})),q6=L("p")(({theme:e,textColor:t})=>({margin:"0",fontSize:"60px",fontWeight:"500",lineHeight:1,marginBottom:"5px",color:t||e.palette.text.constant?.white})),B8t=L(Ae)(({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:`${ie[40]}30 !important`,"&:hover":{background:e.palette.text.default},padding:"15px 10px"})),H8t=L("div")(({disabled:e=!1})=>({cursor:e?"not-allowed":"pointer",opacity:e?"0.5":"1",display:"flex","& svg":{cursor:e?"not-allowed":"pointer"}})),fD=L(me)(({theme:e})=>({borderBottom:`1px solid ${e.palette.divider}`,display:"flex",flexDirection:"row",padding:"5px 0"})),G6=({onClick:e,bulk:t,disabled:r,style:o,key:a,title:n="Delete"})=>{let i=te();return ll(ce,{title:n,arrow:!0,children:ll("div",{children:ll(tt,{sx:{"&:hover":{"& svg":{fill:r?i.palette.icon.disabled:i.palette.background.error?.hover}},...o},disableRipple:!0,disabled:r,onClick:e,children:ll(ro,{fill:r?i.palette.icon.disabled:i.palette.icon.default,width:t?"28":"24",height:t?"28":"24",style:o})})})},a)},Gn=({onClick:e,disabled:t,bulk:r,style:o,title:a="Edit"})=>{let n=te();return ll(ce,{title:a,arrow:!0,children:ll("div",{children:ll(tt,{onClick:e,sx:{"&:hover":{"& svg":{fill:t?n.palette.icon.disabled:n.palette.background.brand?.default}},...o},disableRipple:!0,disabled:t,children:ll(Ba,{fill:t?n.palette.icon.disabled:n.palette.icon.default,width:r?"28":"24",height:r?"28":"24",style:o})})})})},dD=L(me)({display:"flex",flexDirection:"row"}),V8t=L(me)({display:"flex",alignItems:"center",marginTop:1}),jp=L(me)({width:"100%"}),pD=L(gr)(({theme:e})=>({width:"100%",display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper,padding:e.spacing(2.5),cursor:"pointer"})),mD=L(pD)(({theme:e})=>({minHeight:e.spacing(50),background:"linear-gradient(180deg, #007366 0%, #000 100%)"})),cD=L(pD)(({theme:e})=>({minHeight:e.spacing(50),backgroundColor:e.palette.background.paper,boxShadow:"none"})),xD=L(me)({display:"flex",flexDirection:"row",justifyContent:"space-between"}),hD=L(me)({display:"flex",alignItems:"flex-start"}),gD=L(me)({display:"flex",alignItems:"center",justifyContent:"flex-end"}),TD=L(G)(({theme:e})=>({fontSize:"1.25rem",fontWeight:600,padding:"0.5rem 0",color:e.palette.background.constant?.white})),SD=L(me)({display:"flex",flexDirection:"column",maxHeight:"14.5rem",overflowY:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},"-ms-overflow-style":"none"}),CD=L(me)(({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=L(me)({textAlign:"left"});import{jsx as Kp,jsxs as yD}from"react/jsx-runtime";var E6e=({userId:e,userName:t,userEmail:r,profileUrl:o})=>{let a=te(),n=()=>{window.open(`${Lo}/user/${e}`)};return yD(me,{container:!0,alignItems:"center",children:[Kp(me,{children:Kp(K,{sx:{color:a.palette.text.default,mr:2,cursor:"pointer"},children:Kp(Mt,{onClick:n,alt:t,src:o,children:o?"":Kp(yn,{})})})}),yD(me,{size:"grow",children:[t,Kp(G,{variant:"body2",color:a.palette.text.disabled,children:r})]})]})},Sf=E6e;import{Fragment as P6e,jsx as nt,jsxs as yf}from"react/jsx-runtime";var O6e=({tableMeta:e,handleRemoveFromTeam:t,isRemoveFromTeamAllowed:r,theme:o})=>nt("div",{children:r?nt(M2,{children:nt(Ht,{id:`delete_user-${e.rowIndex}`,onClick:t(e.rowData),title:"Remove user membership from team",iconType:"delete",children:nt(Ql,{fill:o?.palette.icon.default})})}):nt(Gp,{children:nt(Ql,{fill:o?.palette.icon.disabled,secondaryFill:Ur})})}),A6e=({teamID:e,useGetUsersForOrgQuery:t,org_id:r,useRemoveUserFromTeamMutation:o,useNotificationHandlers:a,isRemoveFromTeamAllowed:n,theme:i})=>{let[l,s]=Cf(0),[u,f]=Cf(10),[d,p]=Cf("last_login_time desc"),[m,x]=Cf(""),h=[],{handleError:g,handleSuccess:T,handleInfo:w}=a(),E=R6e(null),{width:I}=qo(),{data:D}=t({page:l,pagesize:u,search:m,order:d,teamId:e,orgId:r}),[C]=o(),b=D?.data||[],A=D?.total_count||0,B=V=>async()=>{let y=V[0];await E.current?.show({title:"Remove User From Team ?",subtitle:Q(V[3],V[2]),primaryOption:"Proceed",variant:I2.DANGER})==="Proceed"&&C({orgId:r,teamId:e,userId:y}).unwrap().then(()=>{T(`${V[4]?V[4]:""} ${V[5]?V[5]:""} removed from team`)}).catch(oe=>{let R=oe.response?.data?.message||"Failed to remove user from team";oe.response.status===404?w(R):g(R)})},P=(V,y,J)=>{let oe=J.findIndex(R=>R.name===y);return V[oe]},Q=(V,y)=>yf(P6e,{children:[nt("p",{children:"Are you sure you want to remove this user? (This action is irreversible)"}),yf("p",{children:["User:"," ",nt("i",{children:nt("b",{children:V})})]}),yf("p",{children:["Email:"," ",nt("i",{children:nt("b",{children:y})})]})]}),Z,H={search:!1,viewColumns:!1,filter:!1,rowsPerPageOptions:[10,20,25],responsive:"standard",selectableRows:"none",count:A,rowsPerPage:u,page:l,print:!1,download:!1,elevation:0,serverSide:!0,sortOrder:{name:d.split(" ")[0],direction:d.split(" ")[1]},onTableChange:(V,y)=>{let J=y.announceText?y.announceText.split(" : "):[],oe="";switch(y.activeColumn&&(oe=`${N[y.activeColumn].name} desc`),V){case"changePage":s(y.page);break;case"changeRowsPerPage":f(y.rowsPerPage);break;case"search":Z&&clearTimeout(Z),Z=setTimeout(()=>{m!==y.searchText&&x(y.searchText)},500);break;case"sort":J.length==2&&(J[1]==="ascending"?oe=`${N[y.activeColumn].name} asc`:oe=`${N[y.activeColumn].name} desc`),oe!==d&&p(oe);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"]],N=[{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:(V,y)=>nt(K,{sx:{"& > img":{mr:2,flexShrink:0}},children:nt(Sf,{userId:P(y.rowData,"user_id",N),userName:`${y.rowData[4]} ${y.rowData[5]}`,userEmail:y.rowData[2],profileUrl:V})})}},{name:"email",label:"Email",options:{filter:!1,sort:!0,searchable:!0}},{name:"username",label:"Username",options:{filter:!1,sort:!0,searchable:!0,customBodyRender:(V,y)=>yf("div",{style:{display:"flex"},children:[V,V?.includes("@")?nt(Gt,{title:`Search "${y.rowData[3]} ${y.rowData[4]}" on Google`,children:nt("a",{href:`https://www.google.com/search?q=${y.rowData[3]}+${y.rowData[4]}`,style:{color:"inherit"},target:"_blank",rel:"noreferrer",children:nt("div",{children:nt(I4,{width:20,height:20})})})}):nt(Gt,{title:`Lookup "${V}" on GitHub`,children:nt("a",{href:`https://www.github.com/${V}`,style:{color:"inherit"},target:"_blank",rel:"noreferrer",children:nt("div",{children:nt(Du,{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:h.concat(h?.map(V=>`!${V}`))},customBodyRender:V=>nt("div",{children:V?.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:(V,y)=>V!="NA"&&y.indexOf("Deleted")>=0?!0:V=="NA"&&y.indexOf("Not Deleted")>=0,fullWidth:!0},customBodyRender:(V,y)=>{let J=b[y.rowIndex];return oD(J)}}},{name:"actions",label:"Actions",options:{filter:!1,sort:!1,searchable:!1,customBodyRender:(V,y)=>P(y.rowData,"deleted_at",N).Valid!==!1?yf(Gp,{children:[nt(Ba,{style:{marginRight:".5rem"},fill:Ur,height:"30",width:"30"}),nt(Ql,{fill:Ur,secondaryFill:Ur,height:30,width:30})]}):nt(O6e,{tableMeta:y,handleRemoveFromTeam:B,isRemoveFromTeamAllowed:n,theme:i})}}],[M,k]=Cf(N),[F]=Cf(()=>{let V=Go(q,I),y={};return N.forEach(J=>{y[J.name]=V[J.name]}),y});return yf(h4,{initialMode:i?.palette.mode,children:[nt("div",{style:{margin:"auto",width:"100%"},children:nt(vo,{columns:N,data:b,options:H,colViews:q,tableCols:M,updateCols:k,columnVisibility:F})}),nt(Tf,{ref:E})]})},L2=A6e;import{jsx as $p}from"react/jsx-runtime";var k6e=L(_6e)(({theme:e})=>({display:"grid",margin:"auto",paddingLeft:"0.5rem",borderRadius:"0.25rem",width:"inherit",gap:e.spacing(1)})),M6e=({teams:e,tableOptions:t,columnVisibility:r,colViews:o,tableCols:a,columns:n,updateCols:i,isRemoveFromTeamAllowed:l,org_id:s,useGetUsersForOrgQuery:u,useNotificationHandlers:f,useRemoveUserFromTeamMutation:d})=>{let p=te();return $p(zr,{children:$p(vo,{columns:n,data:e,options:{...t,renderExpandableRow:(m,x)=>{let h=e[x.dataIndex].id;return $p(I6e,{colSpan:6,sx:{paddingInline:"4rem",backgroundColor:`${p.palette.background.secondary} !important`},children:$p(k6e,{container:!0,size:12,children:$p(L2,{teamID:h,isRemoveFromTeamAllowed:l,org_id:s,useGetUsersForOrgQuery:u,useNotificationHandlers:f,useRemoveUserFromTeamMutation:d,theme:p})})})}},colViews:o,tableCols:a,updateCols:i,columnVisibility:r})})},D2=M6e;import{useState as bD}from"react";import{jsx as j6}from"react/jsx-runtime";function L6e({value:e,maxLength:t,...r}){return e.length>t?j6(Gt,{title:e,arrow:!0,placement:"top",children:j6("div",{style:{maxWidth:"15rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},...r,children:`${e.slice(0,t)}...`})}):j6("div",{style:{maxWidth:"15rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},...r,children:e})}var zo=L6e;import{Fragment as F6e,jsx as Vt,jsxs as K6}from"react/jsx-runtime";function D6e({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)}),Vt(nD,{children:Vt(iD,{children:Vt(ce,{title:"Delete Teams",children:Vt(ro,{height:28,width:28,fill:Ur,onClick:()=>{r(o)}})},"delete_teams")})})}function Yp({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:w,isDeleteTeamAllowed:E,setSearch:I}){let{width:D}=qo(),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:N=>Vt(v2,{id:N})}},{name:"name",label:"Name",options:{filter:!1,sort:!0,searchable:!0}},{name:"description",label:"Description",options:{filter:!1,sort:!0,searchable:!1,customBodyRender:N=>Vt(zo,{value:N??"",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:N=>JSON.stringify(N),filterOptions:{names:["Deleted","Not Deleted"],logic:(N,M)=>N!="NA"&&M.indexOf("Deleted")>=0?!0:N=="NA"&&M.indexOf("Not Deleted")>=0,fullWidth:!0}}},{name:"actions",label:"Actions",options:{filter:!1,sort:!1,searchable:!1,customBodyRender:(N,M)=>s||M.rowData[4].Valid?K6(Gp,{children:[Vt(Ba,{style:{marginRight:".5rem"}}),Vt(ro,{height:28,width:28,fill:Ur})]}):K6(M2,{children:[!h&&K6(F6e,{children:[Vt(lo,{disabled:!g,children:Vt(Ht,{id:`edit_team-${M.rowIndex}`,title:"Edit Team",onClick:k=>{g&&f(k,M.rowData)},iconType:"edit",children:Vt(Ba,{style:{height:28.8,width:28.8},fill:Ur})})}),Vt(lo,{disabled:!T,children:Vt(Ht,{id:`leave_team-${M.rowIndex}`,title:"Leave Team",onClick:k=>T&&m(k,M.rowData),iconType:"delete",children:Vt(Ql,{fill:Ur,secondaryFill:Ur})})})]}),h?Vt(lo,{disabled:!w,children:Vt(Ht,{id:`remove_team-${M.rowIndex}`,title:"Move Team",onClick:()=>{w&&p&&p(M.rowData[0])},iconType:"delete",children:Vt(ro,{height:28,width:28,fill:C.palette.icon.default})})}):Vt(lo,{disabled:!E,children:Vt(Ht,{id:`delete_team-${M.rowIndex}`,title:"Delete Team",onClick:k=>{E&&d(k,M.rowData)},iconType:"delete",children:Vt(ro,{height:28,width:28,fill:Ur})})})]})}}],B=e?.findIndex(N=>N.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:N=>Vt(lD,{children:Vt(D6e,{selected:N,teams:e,deleteTeamsModalHandler:()=>{}})}),textLabels:{selectedRows:{text:"teams(s) selected"}},onTableChange:(N,M)=>{let k=M.announceText?M.announceText.split(" : "):[],F="";switch(M.activeColumn&&(F=`${A[M.activeColumn].name} desc`),N){case"changePage":a(M.page);break;case"changeRowsPerPage":n(M.rowsPerPage);break;case"search":I(M.searchText!==null?M.searchText:"");break;case"sort":k.length==2&&(k[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:N=>e[N].deleted_at.Valid!==!0,setRowProps:(N,M,k)=>(k&&k.selectedRows?k.selectedRows.data:[]).includes(M)?{style:{backgroundColor:C.palette.background.hover}}:N[6].Valid?{style:{backgroundColor:C.palette.icon.disabled}}:{style:{backgroundColor:C.palette.background.constant?.table}}},[Q,Z]=bD(A),[H,q]=bD(()=>{let N=Go(b,D),M={};return A.forEach(k=>{M[k.name]=N[k.name]}),M});return{columns:A,tableOptions:P,tableCols:Q,updateCols:Z,columnVisibility:H,setColumnVisibility:q,colViews:b}}import Ca from"react";import{jsx as bt,jsxs as B6e}from"react/jsx-runtime";var N6e=({width:e=U,height:t=W,primaryFill:r="#00B39F",secondaryFill:o="#00D3A9",...a})=>B6e("svg",{width:e,height:t,viewBox:"0 0 135 135",...a,xmlns:"http://www.w3.org/2000/svg",children:[bt("path",{d:"M69.5 31.82V64.07L97.45 47.89L69.5 31.82Z",fill:o}),bt("path",{d:"M69.5 70.81V103.22L97.7 87.09L69.5 70.81Z",fill:o}),bt("path",{d:"M65.47 63.85V32.09L37.87 47.92L65.47 63.85Z",fill:r}),bt("path",{d:"M10.1 103.1C15.5182 111.811 22.842 119.179 31.52 124.65V90.71L10.1 103.1Z",fill:r}),bt("path",{d:"M65.47 103.06V71.05L37.8 87.07L65.47 103.06Z",fill:r}),bt("path",{d:"M35.54 122.63L63.56 106.61L35.54 90.41V122.63Z",fill:o}),bt("path",{d:"M99.62 122.8V90.63L71.64 106.63L99.62 122.8Z",fill:r}),bt("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}),bt("path",{d:"M103.64 83.69L131.76 67.61L103.64 51.45V83.69Z",fill:o}),bt("path",{d:"M99.62 44.5V12.52L71.77 28.49L99.62 44.5Z",fill:r}),bt("path",{d:"M99.62 83.55V51.28L71.7 67.44L99.62 83.55Z",fill:r}),bt("path",{d:"M35.54 51.22V83.73L63.66 67.45L35.54 51.22Z",fill:o}),bt("path",{d:"M65.47 0C55.1388 0.298791 45.016 2.97835 35.89 7.83L65.52 24.83L65.47 0Z",fill:r}),bt("path",{d:"M35.54 12.3V44.62L63.69 28.48L35.54 12.3Z",fill:o}),bt("path",{d:"M31.52 10.34C22.8442 15.8136 15.521 23.1813 10.1 31.89L31.52 44.25V10.34Z",fill:r}),bt("path",{d:"M99.43 8C90.2123 3.0393 79.9635 0.299881 69.5 0V25.15L99.43 8Z",fill:o}),bt("path",{d:"M0 69.87C0.348236 80.2825 3.1145 90.4711 8.08 99.63L29.77 87.07L0 69.87Z",fill:o}),bt("path",{d:"M8.07001 35.37C3.13121 44.4917 0.372439 54.6334 0.0100098 65L29.8 47.91L8.07001 35.37Z",fill:o}),bt("path",{d:"M35.78 127.13C44.9355 132.013 55.0981 134.706 65.47 135V110.15L35.78 127.13Z",fill:r}),bt("path",{d:"M124.89 32C119.512 23.3126 112.237 15.9553 103.61 10.48V44.3L124.89 32Z",fill:o}),bt("path",{d:"M103.64 124.54C112.314 119.022 119.624 111.61 125.02 102.86L103.64 90.52V124.54Z",fill:o}),bt("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}),bt("path",{d:"M69.5 135C79.845 134.709 89.9825 132.029 99.12 127.17L69.5 110V135Z",fill:o}),bt("path",{d:"M31.52 83.44V51.56L3.83002 67.43L31.52 83.44Z",fill:r})]}),$6=N6e;import H6e from"@mui/material/Tooltip";import V6e from"react";import{jsx as vD}from"react/jsx-runtime";var U6e=V6e.forwardRef((e,t)=>vD(H6e,{...e,ref:t,children:vD("span",{children:e.children})})),Y6=U6e;import{Grid2 as wD,styled as bf}from"@mui/material";var ED=bf(Tt)(({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"})),RD=bf(cn)(({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%"}})),Z6=bf(G)(({theme:e})=>({paddingBottom:"15px",color:e.palette.text?.default,textAlign:"center",fontSize:"1rem",letterSpacing:"0.15px"})),Zp=bf(Ae)(({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:`${We} !important`,fill:e.palette.icon.inverse}})),Q6=bf(wD)({padding:"0 1rem","@media (max-width: 768px)":{padding:"0",display:"flex",alignItems:"center",flexDirection:"column",width:"100%"}}),OD=bf(wD)({padding:"2.5rem 1rem 0 1rem","@media (max-width: 768px)":{padding:"1rem",transform:"rotate(90deg)",height:"6.25rem",marginLeft:"6.25rem"}});import{jsx as _t,jsxs as ya}from"react/jsx-runtime";var AD={CHIP:"chip",OTHER:"other"};function W6e(e){return e?{meshery:_t($6,{}),kubernetes:_t(Nd,{}),github:_t(Du,{})}[e]||null:_t(Nd,{})}function F2(e,t){return e.filter(r=>t.indexOf(r)===-1)}function PD(e,t){return e.filter(r=>t.indexOf(r)!==-1)}function q6e({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=AD.OTHER}){let[h,g]=Ca.useState([]),[T,w]=Ca.useState([]),[E,I]=Ca.useState(n),[D,C]=Ca.useState(0),[b,A]=Ca.useState(0);Ca.useEffect(()=>{I(n)},[n]),Ca.useEffect(()=>{w(t)},[t]),Ca.useEffect(()=>{C(f),A(d)},[f,d]);let B=PD(h,T),P=PD(h,E);Ca.useEffect(()=>{r(E)},[E]),Ca.useEffect(()=>{let k=y=>{y[0].isIntersecting&&o()},F=new IntersectionObserver(k,{threshold:1}),V=document.getElementById("leftList");return V&&F.observe(V),()=>{V&&F.unobserve(V)}},[t]),Ca.useEffect(()=>{let k=y=>{y[0].isIntersecting&&a()},F=new IntersectionObserver(k,{threshold:1}),V=document.getElementById("rightList");return V&&F.observe(V),()=>{V&&F.unobserve(V)}},[n]);let Q=k=>()=>{let F=h.indexOf(k),V=[...h];F===-1?V.push(k):V.splice(F,1),g(V)},Z=k=>{k.stopPropagation(),I(E.concat(T)),w([]),C(0),A(F=>F+D)},H=k=>{k.stopPropagation(),I(E.concat(B)),w(F2(T,B)),g(F2(h,B)),C(F=>F-B.length),A(F=>F+B.length)},q=k=>{k.stopPropagation(),w(T.concat(P)),I(F2(E,P)),g(F2(h,P)),A(F=>F-P.length),C(F=>F+P.length)},N=k=>{k.stopPropagation(),w(T.concat(E)),I([]),A(0),C(F=>F+b)},M=(k,F,V,y)=>ya(RD,{children:[_t(Hr,{dense:!0,component:"div",role:"list",children:k.length>0?k.map(J=>{let oe=`transfer-list-item-${J.name}-label`;return ya(Tr,{role:"listitem",sx:{display:"flex",justifyContent:"space-between","&:hover":{backgroundColor:"#00000010"}},onClick:Q(J),children:[x===AD.CHIP?_t(Y6,{title:J.name,placement:"top",children:_t(ED,{sx:{paddingY:"10px"},variant:"outlined",label:J.name,onDelete:()=>{},deleteIcon:_t(j4,{}),icon:W6e(J?.kind)||_t(Nd,{})})}):_t(Y6,{title:J.name,placement:"top",children:_t(G,{sx:{maxWidth:"230px",height:"1.5rem",overflow:"hidden"},children:J.name})}),_t(Br,{checked:h.indexOf(J)!==-1,tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":oe}})]},J.id)}):ya("div",{style:{textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"264px"},children:[F,_t(G,{sx:{color:"#979797",px:5,py:2,lineHeight:1},children:V})]})}),_t("div",{id:y})]});return ya(me,{container:!0,justifyContent:"center",alignItems:"center",children:[ya(Q6,{children:[ya(Z6,{children:["Available ",e," (",T.length,")"]}),M(T,i,l,"leftList")]}),_t(OD,{children:ya(me,{container:!0,direction:"column",alignItems:"center",children:[ya(Zp,{variant:"outlined",size:"small",onClick:Z,disabled:!m||m&&(T?.length===0||T.length<D),"aria-label":"move all right",children:[_t(qd,{width:18,height:18}),_t(qd,{style:{position:"absolute",left:"27px"},width:18,height:18})]}),_t(Zp,{variant:"outlined",size:"small",onClick:H,disabled:!m||m&&B.length===0,"aria-label":"move selected right",children:_t(qd,{width:18,height:18})}),_t(Zp,{variant:"outlined",size:"small",onClick:q,disabled:!p||p&&P.length===0,"aria-label":"move selected left",children:_t(Bd,{width:18,height:18})}),ya(Zp,{variant:"outlined",size:"small",onClick:N,disabled:!p||p&&(E?.length===0||E.length<b),"aria-label":"move all left",children:[_t(Bd,{width:18,height:18}),_t(Bd,{style:{position:"absolute",left:"27px"},width:18,height:18})]})]})}),ya(Q6,{children:[ya(Z6,{children:["Assigned ",e," (",E.length,")"]}),M(E,s,u,"rightList")]})]})}var Qp=q6e;import{Drawer as G6e,styled as z6e,useMediaQuery as j6e}from"@mui/material";import _D from"react";import{Fragment as Z6e,jsx as so,jsxs as N2}from"react/jsx-runtime";var K6e=z6e("div")(({theme:e})=>({background:e.palette.mode==="light"?gn.header:hn.header,padding:"0.75rem 1rem",margin:"-1rem -1rem 1rem -1rem",display:"flex",justifyContent:"space-between",alignItems:"center",color:e.palette.text.constant?.white}));function $6e({filters:e,selectedFilters:t,setSelectedFilters:r,variant:o="outlined",handleApplyFilter:a,showAllOption:n=!0,id:i}){let[l,s]=_D.useState(null),[u,f]=_D.useState(!1),d=te(),p=j6e(d.breakpoints.down("sm")),m=w=>{s(w.currentTarget),f(E=>!E)},x=()=>{s(null),f(!1)},h=(w,E)=>{let I=w.target.value;r(D=>({...D,[E]:I}))},g=()=>{x(),a()},T=()=>N2("div",{children:[so(K6e,{children:so("h3",{children:"Filters: "})}),Object.keys(e).map(w=>{let E=e[w].options;return N2("div",{role:"presentation",children:[so(ql,{id:e[w].name,children:e[w].name}),N2(ia,{defaultValue:"All",value:t[w],variant:o,onChange:I=>h(I,w),style:{width:"20rem",marginBottom:"1rem"},inputProps:{"aria-label":"Without label"},displayEmpty:!0,children:[n&&so(pt,{value:"All",children:"All"}),E.map(I=>so(pt,{value:I.value,children:I.label},I.value))]},w)]},w)}),so("div",{style:{display:"flex",justifyContent:"center"},children:so(Ae,{variant:"contained",onClick:g,children:"Apply"})})]});return so(Z6e,{children:N2("div",{id:i,children:[so(Ht,{title:"Filter",onClick:m,icon:so(w4,{fill:d.palette.icon.default}),arrow:!0}),p?so(G6e,{anchor:"bottom",open:u,onClose:x,PaperProps:{style:{padding:"0 1rem 1rem 1rem",backgroundColor:d.palette.background.surfaces}},children:T()}):so(Ep,{id:u&&l?"transition-popper":void 0,open:u,anchorEl:l,placement:"bottom-end",children:so(mn,{onClickAway:x,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:so(cn,{sx:{padding:"1rem",paddingTop:"1.8rem",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",backgroundColor:d.palette.background.surfaces},children:T()})})})]})})}var Y6e=$6e;import{useState as Q6e}from"react";import{Fragment as a7e,jsx as vf,jsxs as X6}from"react/jsx-runtime";var ba={PUBLIC:"public",PRIVATE:"private",PUBLISHED:"published"},X6e=L(Gl)(({theme:e})=>({"& .MuiPaper-root":{backgroundColor:e.palette.mode==="light"?ox: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"?_u:"rgba(0, 179, 159, 0.25)"}},"& .Mui-selected":{backgroundColor:e.palette.mode==="light"?_u:"rgba(0, 179, 159, 0.25)"},"& .MuiList-padding":{padding:"0px"}})),J6e=L(Ae)(()=>({padding:"0px"})),e7e=L("div")(({theme:e,enabled:t})=>({paddingLeft:"0.3rem",height:"1.5rem",width:"auto",paddingRight:t?"0":"0.3rem",borderRadius:"0.25rem",border:`1px solid ${yd}`,background:e?.palette.mode==="light"?ox: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})),t7e=L(pt)(({theme:e})=>({textTransform:"capitalize",color:e.palette.icon.default})),r7e=L("div")({marginRight:"0.5rem"}),o7e=({value:e,onChange:t,options:r,enabled:o})=>{let[a,n]=Q6e(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 X6(a7e,{children:[vf(J6e,{disabled:!o,onClick:s,"data-testid":`design-visibility-${e.toLowerCase()}`,children:X6(e7e,{enabled:o,children:[vf("span",{style:{fontSize:"0.85rem"},children:e}),o&&vf(bO,{style:{...Co}})]})}),vf(X6e,{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)=>X6(t7e,{"data-testid":`visibility-toggle-${f.toLowerCase()}`,onClick:m=>u(m,f),children:[vf(r7e,{children:vf(d,{width:16,height:16})}),f]},p))})]})},ul=o7e;import{styled as i7e}from"@mui/material";import{styled as va,Typography as n7e}from"@mui/material";var ID=va("div")(()=>({width:"85px",height:"88px",overflow:"hidden",position:"absolute",top:"-3px",left:"-3px"})),kD=va("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"})),MD=va("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})),LD=va("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"})),DD=va("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"})),wf=va("p")(({theme:e})=>({fontSize:"1rem",textTransform:"capitalize",margin:"0rem",lineHeight:"1.5",textAlign:"center",color:e.palette.text.secondary,fontWeight:"600"})),FD=va(n7e)(({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%"})),ND=va("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%"})),Ef=va("div")(()=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.2rem",color:"rgba(26, 26, 26, .8)",margin:"0rem",padding:"0.1rem"})),BD=va("div")(()=>({height:"max-content",display:"flex",marginTop:"-1rem",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start","@media (max-width:1200px)":{height:"max-content"}})),HD=va("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 u7e,jsx as Jt,jsxs as fl}from"react/jsx-runtime";var Z7t=i7e("a")(()=>({textDecoration:"none"}));var l7e=({catalogClassName:e})=>e?Jt(ID,{children:Jt(kD,{catalogClassName:e,children:e})}):Jt(u7e,{}),s7e=({pattern:e,patternType:t,cardHeight:r,cardWidth:o,cardStyles:a,onCardClick:n})=>{let i={height:r,width:o,...a};return Jt(MD,{outerStyles:i,onClick:n,children:fl(LD,{className:"innerCard",children:[Jt(l7e,{catalogClassName:e?.catalog_data?.content_class}),Jt(DD,{children:t}),fl(BD,{children:[Jt(FD,{style:{margin:"3rem 0 1.59rem 0",textAlign:"center"},children:e.name}),Jt(HD,{children:Jt(Na,{height:"118",width:"120"})})]}),fl(ND,{children:[fl(Ef,{children:[Jt(ua,{width:18,height:18}),Jt(wf,{children:e.download_count})]}),fl(Ef,{children:[Jt(Ed,{width:18,height:18,fill:"#51636B"}),Jt(wf,{children:e.clone_count})]}),fl(Ef,{children:[Jt(Vd,{width:18,height:18,fill:"#51636B"}),Jt(wf,{children:e.view_count})]}),fl(Ef,{children:[Jt(Ld,{width:18,height:18}),Jt(wf,{children:e.deployment_count})]}),fl(Ef,{children:[Jt(bn,{width:18,height:18,fill:"#51636B"}),Jt(wf,{children:e.share_count})]})]})]})})},VD=s7e;import{useTheme as y7e}from"@mui/material/styles";import{useCallback as XD,useState as b7e}from"react";import{useCallback as QD,useState as T7e}from"react";import{useCallback as c7e,useState as x7e}from"react";import{debounce as f7e}from"lodash";import{useEffect as GD,useMemo as d7e,useState as p7e}from"react";import{styled as UD}from"@mui/material";var WD=UD(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=UD(hd)(({theme:e})=>({borderLeft:`1px solid ${e.palette.background.tertiary}`,height:"30px",paddingLeft:"10px"}));import{jsx as B2}from"react/jsx-runtime";function m7e({onChange:e,value:t="",label:r,sx:o,placeholder:a,endAdornment:n,debounceTime:i=300}){let l=te(),[s,u]=p7e(t);GD(()=>{t!==s&&u(t)},[t]);let f=m=>({target:{value:m},persist:()=>{}}),d=d7e(()=>f7e(m=>{e?.(f(m))},i),[e,i]);return GD(()=>{if(e)return s===""?e(f(s)):d(s),()=>{d.cancel()}},[s,e,d]),B2(WD,{type:"search",label:r,fullWidth:!0,value:s,onChange:m=>{let x=m.target.value;u(x)},sx:o,placeholder:a??"Search",startAdornment:B2(hd,{position:"start",children:B2(Gd,{fill:l.palette.background.neutral?.default})}),endAdornment:B2(qD,{position:"end",children:n})})}var H2=m7e;import{styled as zn}from"@mui/material/styles";var zD=zn(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"}})),jD=zn("div")(()=>({display:"none","@media (max-width:899px)":{display:"block"}})),TSt=zn("div")(()=>({display:"flex",justifyContent:"space-around",alignItems:"center"})),KD=zn(Ae)(({theme:e})=>({backgroundColor:e.palette.primary.brand?.default,"&:hover":{backgroundColor:e.palette.background.default},height:"3.75rem","@media (max-width:450px)":{minWidth:"0px"}})),$D=zn(K)(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0.5rem 1rem",background:e.palette.mode==="light"?gn.header:hn.header,height:"10vh"})),SSt=zn(ki)(({theme:e})=>({padding:"0.25rem 2rem",borderBottom:"1px solid",borderBottomColor:e.palette.text.disabled})),YD=zn(ki)(({theme:e})=>({backgroundColor:e.palette.background.surfaces,borderRadius:"0.5rem",marginTop:2,display:"flex",justifyContent:"space-between"})),ZD=zn("p")(({theme:e})=>({color:e.palette.text.tertiary})),CSt=zn("span")(()=>({marginLeft:"0.5rem",display:"block","@media (max-width: 853px)":{display:"none"}}));import{Fragment as g7e,jsx as wa,jsxs as ws}from"react/jsx-runtime";var h7e=({filterKey:e,sectionDisplayName:t,options:r=[],filters:o,openSections:a,onCheckboxChange:n,onSectionToggle:i,styleProps:l,customComponent:s})=>{let[u,f]=x7e(""),d=c7e(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(g7e,{children:[ws(YD,{onClick:()=>i(e),style:{backgroundColor:l.sectionTitleBackgroundColor},children:[wa(G,{sx:{fontSize:"1rem"},fontWeight:"bold",fontFamily:l.fontFamily,children:(t||e).toUpperCase()}),a[e]?wa(Vi,{}):wa(So,{})]}),wa(oa,{in:a[e],timeout:"auto",unmountOnExit:!0,children:s?wa(s,{}):ws(Hr,{component:"div",sx:{overflowY:"auto",maxHeight:"25rem",backgroundColor:l.backgroundColor,"&::-webkit-scrollbar":{width:"6px"}},children:[p&&wa(K,{sx:{px:"0.5rem",mb:"0.5rem"},children:wa(H2,{value:u,onChange:d,placeholder:"Search",endAdornment:ws(ZD,{children:["Total : ",m.length??0]})})}),m.map((x,h)=>ws(Cd,{direction:"row",alignItems:"center",px:"0.5rem",justifyContent:"space-between",children:[ws(Cd,{direction:"row",alignItems:"center",gap:"0.35rem",children:[wa(Br,{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&&wa(x.Icon,{width:"20px",height:"20px"}),wa(G,{fontFamily:l.fontFamily,children:x.label})]}),ws(Cd,{direction:"row",alignItems:"center",gap:"0.35rem",children:[x.totalCount!==void 0&&`(${x.totalCount||0})`,x.description&&wa(tl,{variant:"standard",helpText:x.description})]})]},`${x.value}-${h}`))]})})]})},J6=h7e;import{Fragment as C7e,jsx as e7}from"react/jsx-runtime";var S7e=({lists:e,onApplyFilters:t,value:r,styleProps:o})=>{let[a,n]=T7e(()=>{let s={};return e.forEach(u=>{s[u.filterKey]=!!u.defaultOpen}),s}),i=QD(s=>{n(u=>({...u,[s]:!u[s]}))},[]),l=QD((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 e7(C7e,{children:e.map(s=>s.customComponent?e7(J6,{filterKey:s.filterKey,filters:r,sectionDisplayName:s.sectionDisplayName,onSectionToggle:i,styleProps:o,openSections:a,customComponent:s.customComponent},s.filterKey):e7(J6,{filterKey:s.filterKey,sectionDisplayName:s.sectionDisplayName,options:s.options,filters:r,openSections:a,onCheckboxChange:l,onSectionToggle:i,styleProps:o},s.filterKey))})},t7=S7e;import{Fragment as w7e,jsx as jo,jsxs as V2}from"react/jsx-runtime";var v7e=({lists:e,setData:t,value:r={},styleProps:o})=>{let a=y7e(),[n,i]=b7e(!1),l=XD(()=>{i(!0)},[]),s=XD(()=>{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:Yl.main,fontFamily:a.typography.fontFamily},...o};return V2(w7e,{children:[jo(zD,{styleProps:f,children:jo(t7,{lists:e,onApplyFilters:t,value:r,styleProps:f})}),V2(jD,{children:[jo(ce,{title:"Filters",placement:"bottom",children:jo(KD,{variant:"contained",onClick:l,children:jo(EO,{style:{height:"28px",width:"28px"},fill:a.palette.text.default})})}),jo(G3,{anchor:"bottom",open:n,variant:"temporary",onClose:s,style:{zIndex:"1399"},children:V2(K,{sx:{overflowY:"hidden",height:"90vh"},children:[V2($D,{children:[jo(G,{variant:"h6",sx:{color:a.palette.text.constant?.white},component:"div",children:"Filters"}),jo(df,{onClick:s,children:jo(St,{height:"32px",width:"32px"})})]}),jo(K,{style:{height:"75vh",overflowY:"auto",background:a.palette.background.surfaces,padding:"0 16px"},children:jo(t7,{lists:e,onApplyFilters:t,value:r,styleProps:f})}),jo(K,{sx:{background:a.palette.mode==="light"?gn.fotter:hn.fotter,height:"5vh"}})]})})]})]})},JD=v7e;import{jsx as U2,jsxs as R7e}from"react/jsx-runtime";function E7e({open:e,content:t,title:r,actions:o,onClose:a}){return R7e(aa,{open:e,onClose:a,children:[U2(h2,{children:r}),U2(Hl,{children:U2(Vl,{children:t})}),U2(xd,{children:o})]})}var eF=E7e;import{Autocomplete as O7e,Grid2 as r7}from"@mui/material";import A7e,{useCallback as o7,useEffect as P7e,useState as W2}from"react";import{jsx as sr,jsxs as a7}from"react/jsx-runtime";import{createElement as I7e}from"react";var _7e=({data:e,label:t,fetchSuggestions:r,setFilterData:o,isLoading:a,type:n,disabled:i,selectedData:l,searchValue:s,setSearchValue:u,iconComponent:f=sr(hx,{...Wu})})=>{let[d,p]=W2(""),[m,x]=W2(!1),[h,g]=W2(!1),[T,w]=W2(l);P7e(()=>{w(l)},[l]);let E=o7(C=>{let b=T.filter(A=>A.id!==C);w(b),o(b)},[T,o]),I=o7((C,b)=>{if(!b)return;if(T.some(P=>P.id===b.id)){p(`${n} already selected`);return}let B=[...T,b];w(B),o(B),p(""),u(""),x(!1)},[T,o,n,u]),D=o7((C,b)=>{if(u(b),b==="")x(!1);else{let A=encodeURIComponent(b);r(A),p(""),x(!0)}},[r,u]);return a7(K,{sx:{width:"100%"},children:[sr(O7e,{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:D,filterOptions:C=>C,disableClearable:!0,includeInputInList:!0,filterSelectedOptions:!0,disableListWrap:!0,clearOnBlur:!0,popupIcon:null,blurOnSelect:!0,forcePopupIcon:!1,renderInput:C=>sr(Vr,{...C,label:t||`Add ${n}`,error:!!d,helperText:d,fullWidth:!0,InputLabelProps:{style:{fontFamily:"inherit"}},InputProps:{...C.InputProps,endAdornment:sr(A7e.Fragment,{children:a?sr(Lt,{color:"inherit",size:20}):null})}}),renderOption:(C,b)=>I7e("li",{...C,key:b.id},sr(K,{component:"li",sx:{"& > img":{mr:2,flexShrink:0}},children:a7(r7,{container:!0,alignItems:"center",children:[sr(r7,{children:sr(K,{sx:{color:"text.secondary",mr:2},children:f})}),sr(r7,{size:"grow",children:sr(G,{variant:"body2",children:b.name})})]})}))}),a7(K,{sx:{display:"flex",flexWrap:"wrap",gap:.5,mt:T?.length>0?"0.5rem":""},children:[!h&&T?.length>0&&sr(Tt,{avatar:f,label:T[T.length-1]?.name,size:"small",onDelete:()=>E(T[T.length-1]?.id),deleteIcon:sr(Gt,{title:`Remove ${n}`,children:sr(St,{style:qr})})},T[T.length-1]?.id),h&&T?.map(C=>sr(Tt,{avatar:sr(hx,{...qr}),label:C.name,size:"small",onDelete:()=>E(C.id),deleteIcon:sr(Gt,{title:`Remove ${n}`,children:sr(St,{style:qr})})},C.id)),T?.length>1&&sr(G,{onClick:()=>g(!h),sx:{cursor:"pointer"},children:h?"(hide)":`(+${T?.length-1})`})]})]})},tF=_7e;import{styled as q2}from"@mui/material";var rF=q2("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"}})),oF=q2("div")({display:"inline-flex"}),aF=q2("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)"})),nF=q2("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 G2,jsxs as iF}from"react/jsx-runtime";var k7e=({chapterNum:e,chapter:t})=>G2(rF,{id:t.frontmatter.courseTitle?t.frontmatter.courseTitle:void 0,children:iF(oF,{children:[G2(aF,{children:e}),iF(nF,{children:[G2("h2",{children:t.frontmatter.chapterTitle?t.frontmatter.chapterTitle:t.frontmatter.courseTitle}),G2("p",{children:t.frontmatter.description})]})]})}),lF=k7e;import{useMediaQuery as M7e,useTheme as L7e}from"@mui/material";import D7e,{useState as F7e}from"react";import{styled as Rf}from"@mui/material/styles";var ECt=Rf("div")(({theme:e})=>({marginLeft:".5rem",color:e.palette.background.secondary})),sF=Rf(Td)({overflowY:"auto",scrollbarWidth:"none","&::-webkit-scrollbar":{width:"0em"}}),uF=Rf(Tr)(()=>({pointerEvents:"auto",margin:"0.5rem 0rem 0.5rem 0rem",fontSize:"0.1rem",padding:"0"})),fF=Rf(Tr)(()=>({pointerEvents:"auto",margin:"0rem 0rem 0rem 0.5rem",fontSize:"0.1rem"})),dF=Rf("div")({marginRight:"0.75rem",marginLeft:"0.5rem"}),pF=Rf("div")({marginRight:"0.5rem"});import{jsx as Ea,jsxs as z2}from"react/jsx-runtime";var N7e=({navigationItems:e,MenuListProps:t={},ListItemTextProps:r={}})=>{let o=L7e(),a=M7e(o.breakpoints.up("sm")),[n,i]=F7e(null),l=(s,u)=>{u.stopPropagation(),i(f=>f===s?null:s)};return Ea(sF,{...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:z2(D7e.Fragment,{children:[z2(pt,{disabled:!f,onClick:s.onClick,"data-testid":`nav-item-${s.id}`,children:[z2(uF,{children:[s.icon&&Ea(dF,{children:s.icon}),Ea(qt,{primary:s.title,...r})]}),s.subItems&&Ea(qt,{"data-testid":`nav-toggle-${s.id}`,children:u?Ea(Vi,{onClick:m=>l(s.id,m)}):Ea(So,{onClick:m=>l(s.id,m)})})]}),s.subItems&&Ea(oa,{in:u,timeout:"auto",unmountOnExit:!0,variant:"submenu",children:s.subItems.map(m=>Ea(pt,{disabled:!m.permission,onClick:m.onClick,"data-testid":`nav-subitem-${m.id}`,children:z2(fF,{children:[m.icon&&Ea(pF,{children:m.icon}),Ea(qt,{primary:m.title,...r})]})},m.id))}),d&&Ea(na,{})]},s.id)})})},mF=N7e;import{styled as i7}from"@mui/material";import{jsx as n7,jsxs as W7e}from"react/jsx-runtime";var B7e=i7("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"})),H7e=i7("h4")(({type:e,theme:t})=>({color:e==="warning"?t.palette.text.warning:t.palette.background.brand?.default,fontSize:"1.35rem"})),V7e=i7("p")(({theme:e})=>({color:e.palette.text.inverse})),U7e=({type:e="note",title:t,content:r})=>W7e(B7e,{type:e,children:[n7(H7e,{type:e,children:t}),n7(V7e,{children:n7(l2,{content:r})})]}),cF=U7e;import{Resizable as z7e}from"re-resizable";import j7e from"react-draggable";import{jsx as Xp,jsxs as G7e}from"react/jsx-runtime";var q7e=({height:e=24,width:t=24,fill:r="#E8EFF3",...o})=>G7e("svg",{width:t,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:[Xp("g",{clipPath:"url(#clip0_34897_172744)",children:Xp("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})}),Xp("defs",{children:Xp("clipPath",{id:"clip0_34897_172744",children:Xp("rect",{width:"24",height:"24",fill:"white"})})})]}),l7=q7e;var JCt=L(Tr)(({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}})),eyt=L(Tr,{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}})),xF=L("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})),hF=L(K)(({theme:e})=>({padding:e.spacing(2),backgroundColor:e.palette.background.surfaces,overflow:"auto",flex:1,minHeight:0})),gF=L("div")({height:"100%",display:"flex",flexDirection:"column",minHeight:"3rem"}),TF=L(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})),SF=L(l7)(({theme:e})=>({fill:e.palette.common.white,position:"absolute",top:"-0.3rem",left:"50%"})),CF=L("div")({display:"flex",gap:"1rem",justifyContent:"flex-end",alignItems:"center"}),yF=L("div")({display:"flex",justifyContent:"end",alignItems:"center",flex:"1"}),j2=L(tt)(({theme:e})=>({color:e.palette.common.white})),bF=L("div")(()=>({position:"absolute",left:"0",right:"0",marginInline:"auto",width:"fit-content"}));import{jsx as er,jsxs as s7}from"react/jsx-runtime";var K7e=({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?er(j7e,{handle:".drag-handle",children:er(TF,{intitialPosition:l,sx:s,children:er(z7e,{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:er(gF,{children:s7(zr,{children:[er("div",{className:"drag-handle",children:s7(xF,{children:[er(K,{display:"flex",justifyContent:"flex-end",padding:"8px",children:a&&er(Gt,{title:o?"Collapse All":"Expand All",children:er(j2,{onClick:a,children:o?er(T4,{}):er(v4,{})})})}),er(SF,{}),s7(yF,{children:[er(CF,{id:`${t}-panel-header-actions-container`}),er(bF,{children:f}),u&&er(j2,{onClick:u,children:er(Ad,{fill:d.palette.common.white})}),er(j2,{onClick:n,children:er(St,{fill:d.palette.common.white})})]})]})}),er(hF,{className:"panel-body",children:r})]})})})})}):null},vF=({...e})=>er(K7e,{...e});import{memo as VF,useMemo as Y7e}from"react";var gyt=L(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"}})),Tyt=L("div")(()=>({width:"100%",justifyContent:"center",display:"flex",alignItems:"center",marginTop:"20px"})),Syt=L(K)(()=>({display:"flex",justifyContent:"space-evenly",gap:"2.5rem",width:"100%"})),Cyt=L(K)(()=>({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",gap:"2.5rem",width:"100%"})),yyt=L("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"})),u7=L(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"})),wF=L(K)(({theme:e})=>({paddingInline:e.spacing(2),display:"flex",alignItems:"center",placeSelf:"flex-start",justifyContent:"space-between",width:"100%"})),EF=L(G)(({theme:e})=>({fontSize:"1.5rem",fontWeight:600,color:e.palette.text.default})),RF=L(gr)(({theme:e})=>({width:"200px",margin:"0.5rem",height:"100%",borderRadius:"1rem",position:"relative",overflow:"hidden",transition:"all 0.3s ease-in-out",background:f2(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"}})),OF=L("div")(()=>({display:"flex",gap:"10px",flexWrap:"nowrap",justifyContent:"center",width:"100%"})),AF=L(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"}})),PF=L(Da)(()=>({height:"100%",display:"flex",flexDirection:"column",padding:"12px",paddingBottom:"0px !important"})),_F=L(K)({display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"0.5rem",gap:"0.6rem"}),IF=L(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"})),kF=L(G)(({theme:e})=>({fontSize:"24px",fontWeight:700,color:e.palette.icon.secondary,marginBottom:"0.5rem",lineHeight:1.2})),byt=L(K)(({theme:e})=>({marginBottom:"1rem",padding:"8px",borderRadius:"8px",background:e.palette.mode==="light"?"#f8fafc":xn,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)"}})),MF=L(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"})),LF=L(G)({fontSize:"0.75rem",marginBottom:"8px"}),DF=L(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)})),FF=L(K)(({theme:e})=>({padding:"1rem",color:e.palette.text.error,fontSize:"1rem",fontWeight:500}));import{jsx as dl,jsxs as $7e}from"react/jsx-runtime";var NF=({open:e,handleClick:t})=>{let r=te();return dl(ce,{title:e?"Hide Performers":"Show Performers",placement:"bottom",children:dl("span",{children:$7e(Ae,{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(Xl,{style:{height:"2rem",width:"2rem",marginRight:"10px"}}),e?"Hide Performers":"Show Performers"]})})})},BF=({handleClick:e})=>dl(ce,{title:"Open Leaderboard",placement:"bottom",children:dl(Ae,{variant:"contained",onClick:e,sx:{height:"3.7rem",padding:"0.3rem",display:{xs:"inline-flex",sm:"none"}},children:dl(Xl,{style:{height:"2rem",width:"2rem"}})})}),HF=()=>dl(OF,{children:[...Array(5)].map((e,t)=>dl($3,{variant:"rounded",height:"13.5rem",width:"inherit",sx:{minWidth:"150px"},style:{borderRadius:"1rem"}},t))});import{jsx as Er,jsxs as jn}from"react/jsx-runtime";var Z7e={pathType:"pattern",page:0,pagesize:1,metrics:!0,expandUser:!0,trim:!0},f7={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"}},Jp=e=>({...Z7e,order:`${f7[e].countKey} desc`}),Q7e=({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 Er(RF,{elevation:0,status:i,onClick:f,children:jn(PF,{cardId:l,children:[jn(_F,{children:[Er(IF,{children:e}),Er(AF,{onClick:m=>d(m,`${t}+desc`),children:Er(N4,{...Co,fill:p.palette.common.black})})]}),Er(kF,{children:r}),jn(K,{children:[Er(MF,{children:o}),jn(LF,{children:["by ",n]})]})]})})},tr=(e={})=>({search:e.search??"",order:e.order??"",pagesize:e.pagesize??0,page:e.page??0,...e}),UF=VF(Q7e);UF.displayName="StatCard";var X7e=e=>{let t=e(tr(Jp("view"))),r=e(tr(Jp("clone"))),o=e(tr(Jp("download"))),a=e(tr(Jp("deployment"))),n=e(tr(Jp("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)}},J7e=(e,t)=>{let r=e[t],o=f7[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},eSe=({useGetCatalogFilters:e,onCardClick:t,onIconClick:r,onOpenLeaderboard:o})=>{let a=te(),{queries:n,isLoading:i,hasError:l}=X7e(e),s=TE(a.breakpoints.down("sm")),u=Y7e(()=>Object.keys(f7).map(d=>J7e(n,d)).filter(d=>!!d),[n]);if(l)return Er(u7,{children:Er(FF,{children:"Error loading statistics. Please try again later."})});let f=u.map((d,p)=>Er(UF,{...d,onCardClick:t,onIconClick:r},`${d.id}-${p}`));return Er(zr,{children:jn(u7,{children:[jn(wF,{children:[jn(K,{display:"flex",alignItems:"center",gap:1,children:[Er(EF,{children:"Top Performers"}),Er(Xl,{style:{height:"2rem",width:"2rem",color:a.palette.icon.secondary,display:s?"none":"inline-flex"}})]}),o&&Er("div",{children:jn(Ae,{variant:"contained",onClick:()=>o(),children:[Er(Xl,{style:{height:"2rem",width:"2rem",display:s?"inline-flex":"none"}}),Er("p",{style:{margin:0,display:s?"none":"inline-flex"},children:"Open Leaderboard"})]})})]}),jn(DF,{children:[i&&Er(HF,{}),Er(Uu,{items:f})]})]})})},WF=VF(eSe);import{styled as Kn}from"@mui/material";var qF=Kn("div")({padding:"1rem 0","& h2":{margin:"1rem 0"},".get-started-desc":{margin:"1rem"}}),GF=Kn("div")(({theme:e})=>({display:"flex",cursor:"pointer",flexDirection:"row",flexWrap:"wrap","& a":{color:e.palette.text.primary,margin:"1rem"}})),zF=Kn("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}}})),jF=Kn("div")({display:"flex",alignItems:"center",gap:"1rem"}),jyt=Kn("div")({flex:"0 0 25%",alignSelf:"center",margin:"0 0.5rem"}),Kyt=Kn("img")({height:"3rem",width:"3rem",maxWidth:"3rem",margin:"auto"}),$yt=Kn("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)"})),Yyt=Kn("h2")({fontSize:"1.75rem",margin:"1rem 0"}),Zyt=Kn("p")(({theme:e})=>({color:e.palette.text.primary,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"}));import{jsx as Of,jsxs as K2}from"react/jsx-runtime";var tSe=({Steps:e,PrerequisiteLine:t})=>K2(qF,{children:[K2("div",{className:"get-started-desc",id:"pre-requisites",children:[Of("h2",{children:"Prerequisites"}),Of("p",{children:t})]}),Of(GF,{id:"Set up",children:e.map((r,o)=>K2(zF,{href:r.url,target:"_blank",children:[K2(jF,{children:[Of("h2",{children:r.heading}),typeof r.Icon=="string"?Of("img",{src:r.Icon,alt:r.heading,width:"40px",height:"40px"}):r.Icon]}),Of("p",{children:r.description})]},o))})]}),KF=tSe;import{styled as rSe}from"@mui/material";var oSe=rSe("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"?o4:a4,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}}})),$F=oSe;import{Fragment as tN}from"react";import{styled as Es}from"@mui/material";var YF=Es("div")({width:"52rem",maxWidth:"90%"}),ZF=Es("div")({display:"flex",alignItems:"center",background:"#323339",width:"100%",height:"2.875rem",borderRadius:"2px 2px 0 0"}),ubt=Es("div")({color:"#76767d",fontFamily:"'Courier New', Courier, monospace",fontSize:"13.5px",margin:"0 auto"}),QF=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"}}),XF=Es("div")({width:"100%",height:"100%",background:"#1d1e23",borderRadius:"0 0 2px 2px",padding:"24px 32px"}),JF=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%"}}}),eN=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 $n,jsxs as $2}from"react/jsx-runtime";var aSe=({lines:e,title:t,noScroll:r})=>$2(YF,{children:[$2(ZF,{children:[$2(QF,{children:[$n("li",{style:{backgroundColor:"red"}}),$n("li",{style:{backgroundColor:"yellow"}}),$n("li",{style:{backgroundColor:"green"}})]}),t&&$n("div",{className:"title",children:t})]}),$n(XF,{children:$n(JF,{className:r?"no-scroll-overflow-wrapper":"",children:$n(eN,{children:e&&e.map((o,a)=>$n(tN,{children:$2("pre",{className:`${o.short?"short":""}`,style:{color:o.color?o.color:"blue"},children:[o.indent&&new Array(o.indent*2).fill({}).map((n,i)=>$n(tN,{children:"\xA0"},i)),o.code]})},a))})})})]}),rN=aSe;import{styled as nSe}from"@mui/material";var oN=nSe("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 Y2,jsxs as lSe}from"react/jsx-runtime";var iSe=({availableChapters:e,currentChapter:t,onClick:r})=>{let o=a=>a.split("-").map(l=>l.charAt(0).toUpperCase()+l.slice(1)).join(" ");return Y2(oN,{children:Y2("div",{className:"toc-list",children:Y2("ul",{className:"toc-ul toc-ul-open",children:e.map(a=>Y2("li",{className:a+".mdx"===t?"active-link":"",onClick:n=>{r(a,n)},children:lSe("p",{className:"toc-item",children:[" ",o(a)]})},a))})})})},aN=iSe;import{useState as uSe}from"react";import{styled as sSe}from"@mui/material";var nN=sSe("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 Dr,jsxs as Z2}from"react/jsx-runtime";var fSe=[{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"}],dSe=({coursesData:e})=>{let[t,r]=uSe(!1);return Z2(nN,{children:[Z2("div",{className:"go-back",children:[Z2("a",{href:"/learn/learning-paths",children:[Dr(g4,{}),Dr("h4",{children:"Learning Paths"})]}),Dr("div",{className:"toc-toggle-btn",children:t?Dr(St,{className:"toc-menu-icon",onClick:()=>{r(!t)}}):Dr(Od,{className:"toc-menu-icon",onClick:()=>{r(!t)}})})]}),Dr("div",{className:"toc-list",children:Z2("ul",{className:`toc-ul ${t?"toc-ul-open":""}`,children:[Dr("a",{href:"#pre-requisites",children:Dr("h5",{className:"toc-sub-heading",children:"Pre-requisites"})}),fSe.map((o,a)=>Dr("li",{children:Dr("p",{className:"toc-item",children:Dr("a",{href:`#${o.name}`,children:o.name})})},a)),Dr("a",{href:"#courses-list",children:Dr("h5",{className:"toc-sub-heading",children:"Courses"})}),e.map((o,a)=>Dr("li",{children:Dr("p",{className:"toc-item",children:Dr("a",{href:`#${o.frontmatter.courseTitle}`,children:o.frontmatter.courseTitle})})},a))]})})]})},iN=dSe;import{Button as pSe}from"@mui/material";import mSe from"@mui/material/Autocomplete";import lN from"@mui/material/CircularProgress";import{useState as Q2}from"react";import{useDebounce as cSe}from"use-debounce";import{Fragment as d7,jsx as Rr,jsxs as e1}from"react/jsx-runtime";var xSe=({usersData:e,disabled:t=!1,shareWithNewUsers:r,useGetAllUsersQuery:o})=>{let[a,n]=Q2(!1),[i,l]=Q2(""),[s,u]=Q2([]),[f,d]=Q2(!1),p=te(),[m]=cSe(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)}},w=(b,A)=>{A&&(u(A),l(""))},E=(b,A,B)=>{B==="input"?l(A):B==="clear"&&l("")},I=g.filter(b=>!s.concat(e).find(A=>A.email===b.email)),D=t||f||s.length===0,C=({avatarObj:b,...A})=>Rr(Tt,{avatar:Rr(Mt,{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 Rr(d7,{children:e1(K,{display:"flex",alignItems:"center",justifyContent:"space-between",gap:1,children:[Rr(mSe,{id:"user-search-field",sx:{width:"100%"},filterOptions:b=>b,options:I,renderTags:(b,A)=>b.map((B,P)=>Rr(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:w,onInputChange:E,isOptionEqualToValue:(b,A)=>b.email===A.email,renderInput:b=>Rr(Vr,{...b,placeholder:"Add Users",error:!!a,helperText:a,fullWidth:!0,label:"",disabled:D,sx:{"& .MuiOutlinedInput-root":{paddingInline:"0.5rem",paddingBlock:"0.1rem"}},InputProps:{...b.InputProps,endAdornment:Rr(d7,{children:h?Rr(lN,{color:"inherit",size:20}):null})}}),renderOption:(b,A)=>Rr(K,{component:"li",sx:{"& > img":{mr:2,flexShrink:0}},...b,children:e1(me,{container:!0,alignItems:"center",children:[Rr(me,{children:Rr(K,{sx:{color:"text.secondary",mr:2},children:Rr(Mt,{alt:A.first_name,src:A.avatar_url,children:A.avatar_url?"":Rr(yn,{})})})}),Rr(me,{size:"grow",children:A.deleted_at?.Valid?e1(G,{variant:"body2",color:"text.secondary",children:[A.email," (deleted)"]}):e1(d7,{children:[e1(G,{variant:"body2",children:[A.first_name," ",A.last_name]}),Rr(G,{variant:"body2",color:"text.secondary",children:A.email})]})})]})})}),Rr(pSe,{variant:"contained",sx:{"&.Mui-disabled":{color:`${p.palette.text.secondary} !important`,backgroundColor:`${p.palette.action.disabled} !important`}},onClick:T,disabled:D,children:f?Rr(lN,{size:24,sx:{color:"#fff"}}):"Share"})]})})},p7=xSe;import{Autocomplete as hSe}from"@mui/material";import gSe,{useCallback as m7,useEffect as TSe,useMemo as SSe,useState as Af}from"react";import{Fragment as sN,jsx as vt,jsxs as Rs}from"react/jsx-runtime";var CSe=({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]=Af(""),[T,w]=Af(!1),[E,I]=Af(!1),[D,C]=Af(!0),[b,A]=Af(""),[B,P]=Af(e||[]);TSe(()=>{P(e||[])},[e]);let Q=SSe(()=>{if(D&&!m&&u)return[u];let N=f.filter(M=>M.user_id!==u?.user_id);return!m&&u?[u,...N]:N},[f,u,m,D,B]),Z=m7((N,M)=>{M.stopPropagation();let k=B.filter(F=>F.user_id!==N);P(k),t(k),o&&o(!1)},[B,t,o,p,b]),H=m7((N,M)=>{if(!M)return;let k=B.some(V=>V.user_id===M.user_id),F=M.deleted_at?.Valid===!0;if(k||F){g(k?"User already selected":"User does not exist");return}A(""),x(""),g(""),w(!1),P(V=>[...V,M]),t(V=>[...V,M]),o&&o(!1)},[B,t,o,x]),q=m7((N,M)=>{if(A(M),M==="")w(!0),x(""),C(!0);else{let k=encodeURIComponent(M);p(k),g(""),w(!0),C(!1)}},[p]);return Rs(sN,{children:[vt(hSe,{id:"user-search-field",style:{width:"100%"},open:T,options:Q,getOptionLabel:()=>b,isOptionEqualToValue:(N,M)=>N.user_id===M.user_id,onOpen:()=>w(!0),onClose:()=>w(!1),inputValue:b,onChange:H,onInputChange:q,filterOptions:(N,{inputValue:M})=>N.filter(k=>{let F=M.toLowerCase();return k.first_name?.toLowerCase().includes(F)||k.last_name?.toLowerCase().includes(F)||k.email?.toLowerCase().includes(F)}),loading:d,disabled:s,disableClearable:!0,value:void 0,selectOnFocus:!1,blurOnSelect:!0,clearOnBlur:!0,popupIcon:null,forcePopupIcon:!1,noOptionsText:d?"Loading...":"No users found",renderInput:N=>vt(Vr,{...N,label:r,error:!!h,helperText:h,InputLabelProps:{style:{fontFamily:"inherit"}},InputProps:{...N.InputProps,endAdornment:vt(gSe.Fragment,{children:d?vt(Lt,{color:"inherit",size:20}):null})}}),renderOption:(N,M)=>vt("li",{...N,id:M.user_id,children:Rs(K,{sx:{"& > img":{mr:2,flexShrink:0}},children:[" ",Rs(me,{container:!0,alignItems:"center",children:[vt(me,{children:vt(K,{sx:{color:"text.secondary",mr:2},children:vt(Mt,{alt:M.first_name,src:M.avatar_url,children:M.avatar_url?"":vt(yn,{})})})}),vt(me,{size:"grow",children:M.deleted?Rs(G,{variant:"body2",color:"text.secondary",children:[M.email," (deleted)"]}):Rs(sN,{children:[Rs(G,{variant:"body2",children:[M.first_name," ",M.last_name]}),vt(G,{variant:"body2",color:"text.secondary",children:M.email})]})})]})]})})}),!i&&vt(z3,{row:!0,children:vt("div",{style:{display:"flex",flexWrap:"nowrap"},children:vt(Wl,{control:vt(Br,{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:[!E&&B?.[0]&&vt(Tt,{avatar:vt(Mt,{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:N=>Z(B[0].user_id,N),deleteIcon:vt(Gt,{title:"Remove user",children:vt(St,{style:qr})}),size:"small"},B[0].user_id),E&&B?.map(N=>vt(Tt,{avatar:vt(Mt,{alt:N.first_name,src:N.avatar_url,children:!N.avatar_url&&N.first_name?.[0]}),label:N.email,onDelete:M=>Z(N.user_id,M),deleteIcon:vt(Gt,{title:"Remove user",children:vt(St,{style:qr})}),size:"small"},N.user_id)),B?.length>1&&vt(G,{onClick:()=>I(!E),sx:{cursor:"pointer"},children:E?"(hide)":`(+${B.length-1})`})]})]})},uN=CSe;import{Box as _Ce,Stack as LN,Step as ICe,StepConnector as kCe,StepLabel as MCe,Stepper as LCe}from"@mui/material";import{stepConnectorClasses as Mf}from"@mui/material/StepConnector";function Pf(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 RSe from"@emotion/styled";function fN(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 dN={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 pN(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var ySe=!1,bSe=/[A-Z]|^ms/g,vSe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hN=function(t){return t.charCodeAt(1)===45},mN=function(t){return t!=null&&typeof t!="boolean"},c7=pN(function(e){return hN(e)?e:e.replace(bSe,"-$&").toLowerCase()}),cN=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(vSe,function(o,a,n){return Qa={name:a,styles:n,next:Qa},a})}return dN[t]!==1&&!hN(t)&&typeof r=="number"&&r!==0?r+"px":r},wSe="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function t1(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 Qa={name:a.name,styles:a.styles,next:Qa},a.name;var n=r;if(n.styles!==void 0){var i=n.next;if(i!==void 0)for(;i!==void 0;)Qa={name:i.name,styles:i.styles,next:Qa},i=i.next;var l=n.styles+";";return l}return ESe(e,t,r)}case"function":{if(e!==void 0){var s=Qa,u=r(e);return Qa=s,t1(e,t,u)}break}}var f=r;if(t==null)return f;var d=t[f];return d!==void 0?d:f}function ESe(e,t,r){var o="";if(Array.isArray(r))for(var a=0;a<r.length;a++)o+=t1(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]+"}":mN(l)&&(o+=c7(n)+":"+cN(n,l)+";")}else{if(n==="NO_COMPONENT_SELECTOR"&&ySe)throw new Error(wSe);if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)mN(i[s])&&(o+=c7(n)+":"+cN(n,i[s])+";");else{var u=t1(e,t,i);switch(n){case"animation":case"animationName":{o+=c7(n)+":"+u+";";break}default:o+=n+"{"+u+"}"}}}}return o}var xN=/label:\s*([^\s;{]+)\s*(;|$)/g,Qa;function gN(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="";Qa=void 0;var n=e[0];if(n==null||n.raw===void 0)o=!1,a+=t1(r,t,n);else{var i=n;a+=i[0]}for(var l=1;l<e.length;l++)if(a+=t1(r,t,e[l]),o){var s=n;a+=s[l]}xN.lastIndex=0;for(var u="",f;(f=xN.exec(a))!==null;)u+="-"+f[1];var d=fN(a)+u;return{name:d,styles:a,next:Qa}}import{ThemeContext as hvt,keyframes as gvt,css as Tvt}from"@emotion/react";function x7(e,t){let r=RSe(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 SN(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var TN=[];function h7(e){return TN[0]=e,gN(TN)}var b7=Nr(C7());import*as y7 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 bN(e){if(y7.isValidElement(e)||(0,b7.isValidElementType)(e)||!pl(e))return e;let t={};return Object.keys(e).forEach(r=>{t[r]=bN(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=>{y7.isValidElement(t[a])||(0,b7.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])?bN(t[a]):t[a]:o[a]=t[a]}),o}var PSe=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 v7(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5,...a}=e,n=PSe(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 w7(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 E7(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function R7(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\`.`:Pf(18,`(${t})`));return null}let[,o,a]=r,n=Number.isNaN(+o)?o||0:+o;return e.containerQueries(a).up(n)}function s5(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 _Se={borderRadius:4},vN=_Se;var _f=Nr(Xg()),ISe=process.env.NODE_ENV!=="production"?_f.default.oneOfType([_f.default.number,_f.default.string,_f.default.object,_f.default.array]):{},Eo=ISe;function kSe(e,t){return t?ml(e,t,{clone:!1}):e}var Yn=kSe;var r1={xs:0,sm:600,md:900,lg:1200,xl:1536},wN={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${r1[e]}px)`},MSe={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:r1[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Kr(e,t,r){let o=e.theme||{};if(Array.isArray(t)){let n=o.breakpoints||wN;return t.reduce((i,l,s)=>(i[n.up(n.keys[s])]=r(t[s]),i),{})}if(typeof t=="object"){let n=o.breakpoints||wN;return Object.keys(t).reduce((i,l)=>{if(E7(n.keys,l)){let s=R7(o.containerQueries?o:MSe,l);s&&(i[s]=r(t[l],l))}else if(Object.keys(n.values||r1).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 EN(e={}){return e.keys?.reduce((r,o)=>{let a=e.up(o);return r[a]={},r},{})||{}}function RN(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.":Pf(7));return e.charAt(0).toUpperCase()+e.slice(1)}function If(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 o1(e,t,r,o=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||o:a=If(e,r)||o,t&&(a=t(a,o,e)),a}function LSe(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=If(s,o)||{};return Kr(i,l,d=>{let p=o1(u,a,d);return d===p&&typeof d=="string"&&(p=o1(u,a,`${t}${d==="default"?"":cl(d)}`,d)),r===!1?p:{[r]:p}})};return n.propTypes=process.env.NODE_ENV!=="production"?{[t]:Eo}:{},n.filterProps=[t],n}var dt=LSe;function u5(e){let t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}var DSe={m:"margin",p:"padding"},FSe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ON={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},NSe=u5(e=>{if(e.length>2)if(ON[e])e=ON[e];else return[e];let[t,r]=e.split(""),o=DSe[t],a=FSe[r]||"";return Array.isArray(a)?a.map(n=>o+n):[o+a]}),f5=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d5=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],O7=[...f5,...d5];function Os(e,t,r,o){let a=If(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(`
|