@sistent/sistent 0.14.204 → 0.14.205
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.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -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,"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(`
|
|
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)=>{u(b),b===""?x(!1):(r(b),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(`
|
|
@@ -94,7 +94,7 @@ typed_config:\r
|
|
|
94
94
|
runtime: envoy.wasm.runtime.v8\r
|
|
95
95
|
vmId: example-filter\r
|
|
96
96
|
allow_precompiled: true\r
|
|
97
|
-
name: envoy.filters.http.wasm`,"x-rjsf-grid-area":"12"},uploadType:{title:"Select the Upload Method",enum:["File Upload","URL Upload"],default:"File Upload","x-rjsf-grid-area":"6"}},allOf:[{if:{properties:{uploadType:{const:"File Upload"}}},then:{title:"via File",properties:{file:{type:"string",format:"file",description:"Browse the filter file from your file system","x-rjsf-grid-area":"12"}},required:["file"]}},{if:{properties:{uploadType:{const:"URL Upload"}}},then:{title:"via URL",properties:{url:{type:"string",title:"URL",format:"uri",description:"raw url of the filter file, example: https://raw.github.com/...","x-rjsf-grid-area":"12"}},required:["url"]}}]},ywe=Cwe;var bwe={"ui:order":["name","uploadType","config","file","url"]},vwe=bwe;import{ModelDefinitionV1Beta1OpenApiSchema as wwe}from"@layer5/schemas";var ni=wwe.components.schemas,Ewe={type:"object",required:["uploadType"],properties:{uploadType:{type:ni.ImportRequest.properties.uploadType.type,title:"Upload method",enum:["File Import","URL Import","CSV Import"],enumDescriptions:ni.ImportRequest.properties.uploadType.enumDescriptions,default:"Select the Upload Method","x-rjsf-grid-area":"12",description:ni.ImportRequest.properties.uploadType.description}},allOf:[{if:{properties:{uploadType:{const:"File Import"}}},then:{properties:{file:{type:ni.ImportBody.oneOf[0].properties.modelFile?.type,format:ni.ImportBody.oneOf[0].properties.modelFile?.format,description:ni.ImportBody.oneOf[0].properties.modelFile?.description,"x-rjsf-grid-area":"12"}},required:["file"]}},{if:{properties:{uploadType:{const:"URL Import"}}},then:{properties:{url:{type:ni.ImportBody.oneOf[1].properties.url?.type,format:ni.ImportBody.oneOf[1].properties.url?.format,title:"URL",description:ni.ImportBody.oneOf[1].properties.url?.description,"x-rjsf-grid-area":"12",disabled:!0}},required:["url"]}}]},Rwe=Ewe;var Owe={uploadType:{"ui:widget":"radio"},"ui:order":["uploadType","file","url","csv"]},Awe=Owe;var Pwe={type:"object",properties:{compatibility:{type:"array",title:"Technology",items:{enum:["kubernetes"],type:"string"},uniqueItems:!0,minItems:1,description:"A list of technologies included in or implicated by this design; a list of relevant technology tags.","x-rjsf-grid-area":6},pattern_caveats:{type:"string",title:"Caveats and Considerations",description:"Specific stipulations to consider and known behaviors to be aware of when using this design.",format:"textarea","x-rjsf-grid-area":12,"x-encode-in-uri":!0},pattern_info:{type:"string",title:"Description",description:"Purpose of the design along with its intended and unintended uses.",format:"textarea","x-rjsf-grid-area":12,"x-encode-in-uri":!0},type:{type:"string",title:"Type",enum:["Deployment","Observability","Resiliency","Scaling","Security","Traffic-management","Troubleshooting","Workloads"],default:"Deployment",description:"Categorization of the type of design or operational flow depicted in this design.","x-rjsf-grid-area":6}},required:["compatibility","pattern_caveats","pattern_info","type"]},H5=Pwe;var _we={"ui:order":["type","compatibility","pattern_info","pattern_caveats"]},Iwe=_we;var kwe={type:"object",title:"Kubernetes",properties:{credentialName:{title:"Credential Name",type:"string",description:"Name of your credential"},secret:{type:"object",title:"Credential Secret",description:"Credential secret for the Kubernetes cluster",properties:{clusterName:{type:"string",title:"Cluster Name",description:"Name of the Kubernetes cluster"},clusterServerURL:{type:"string",title:"Server URL",description:"URL of the Kubernetes cluster"},auth:{type:"object",title:"Auth",description:"Kubernetes cluster authentication",properties:{clusterUserName:{type:"string",title:"User Name",description:"Name of the Kubernetes cluster user"},clusterToken:{type:"string",title:"Token",description:"Token of the Kubernetes cluster user"},clusterClientCertificateData:{type:"string",title:"Client Certificate Data",description:"Certificate data of the Kubernetes cluster"},clusterClientKeyData:{type:"string",title:"Client Key Data",description:"Client Key data of the Kubernetes cluster"},clusterCertificateAuthorityData:{type:"string",title:"Certificate Authority Data",description:"Certificate Authority data of the Kubernetes cluster"}},required:["clusterUserName","clusterToken","clusterClientCertificateData","clusterClientKeyData","clusterCertificateAuthorityData"]}},required:["clusterName","clusterServerURL"]}},required:["credentialName"]},Mwe=kwe;var Lwe={},Dwe=Lwe;var Fwe={type:"object",title:"Prometheus",properties:{credentialName:{title:"Credential Name",type:"string",description:"Name of your credential"},secret:{type:"object",title:"Credential Secret",description:"Credential secret for the Prometheus instance",properties:{prometheusURL:{type:"string",title:"URL",description:"URL of the Prometheus instance"}},required:["prometheusURL"]}},required:["credentialName"]},Nwe=Fwe;var Bwe={},Hwe=Bwe;var Vwe={type:"object",title:"Grafana",properties:{credentialName:{title:"Credential Name",type:"string",description:"Name of your credential"},secret:{type:"object",title:"Credential Secret",description:"Credential secret for the Grafana instance",properties:{grafanaURL:{type:"string",title:"URL",description:"URL of the Grafana instance"},grafanaAPIKey:{type:"string",title:"API Key",description:"API Key for the Grafana instance"}},required:["grafanaURL","grafanaAPIKey"]}},required:["credentialName"]},Uwe=Vwe;var Wwe={},qwe=Wwe;import{useEffect as _H,useState as yl}from"react";var Gwe=({workspaceId:e,useGetDesignsOfWorkspaceQuery:t,useAssignDesignToWorkspaceMutation:r,useUnassignDesignFromWorkspaceMutation:o,isDesignsVisible:a})=>{let[n,i]=yl(0),[l,s]=yl([]),u=25,[f,d]=yl(0),[p,m]=yl([]),[x,h]=yl(!1),[g,T]=yl(!0),[w,E]=yl(!0),[I,D]=yl([]),{data:C}=t(tr({workspaceId:e,page:n,pagesize:u,filter:'{"assigned":false}'}),{skip:g||!a}),{data:b}=t(tr({workspaceId:e,page:f,pagesize:u}),{skip:g||!a}),[A]=r(),[B]=o();_H(()=>{let F=C?.designs?C.designs:[];s(V=>[...V,...F])},[C]),_H(()=>{let F=b?.designs?b.designs:[];m(V=>[...V,...F])},[b]);let P=F=>{F?.stopPropagation(),h(!0),T(!1)},Q=F=>{F?.stopPropagation(),h(!1),T(!0)},Z=()=>{let F=Math.ceil(Number(C?.total_count)/u);n<F-1&&i(V=>V+1)},H=()=>{let F=Math.ceil(Number(b?.total_count)/u);f<F-1&&d(V=>V+1)},q=F=>{let V=p.map(R=>R.id),y=F.map(R=>R.id),J=y.filter(R=>!V.includes(R)),oe=V.filter(R=>!y.includes(R));return{addedDesignsIds:J,removedDesignsIds:oe}};return{data:l,workspaceData:p,assignModal:x,handleAssignModal:P,handleAssignModalClose:Q,handleAssignablePage:Z,handleAssignedPage:H,handleAssign:async()=>{let{addedDesignsIds:F,removedDesignsIds:V}=q(I);F.map(y=>A({workspaceId:e,designId:y}).unwrap()),V.map(y=>B({workspaceId:e,designId:y}).unwrap()),s([]),m([]),i(0),d(0),Q()},handleAssignData:F=>{let{addedDesignsIds:V,removedDesignsIds:y}=q(F);E(!(V.length>0||y.length>0)),D(F)},isActivityOccurred:F=>{let{addedDesignsIds:V,removedDesignsIds:y}=q(F);return V.length>0||y.length>0},disableTransferButton:w,assignedItems:I}},gS=Gwe;import{Fragment as Ywe,jsx as on,jsxs as IH}from"react/jsx-runtime";var Kwe=({workspaceId:e,workspaceName:t,meshModelModelsData:r,handleBulkUnpublishModal:o,handleBulkWorkspaceDesignDeleteModal:a,handleClone:n,handleCopyUrl:i,handlePublish:l,handleDownload:s,getDownloadUrl:u,handleShowDetails:f,handleUnpublishModal:d,handleWorkspaceDesignDeleteModal:p,publishModalHandler:m,isCopyLinkAllowed:x,isDeleteAllowed:h,isDownloadAllowed:g,isPublishAllowed:T,isUnpublishAllowed:w,useAssignDesignToWorkspaceMutation:E,useUnassignDesignFromWorkspaceMutation:I,GenericRJSFModal:D,isAssignAllowed:C,isRemoveAllowed:b,useGetWorkspaceDesignsQuery:A,handleOpenInDesigner:B,showPlaygroundActions:P=!0,handleVisibilityChange:Q,currentUserId:Z})=>{let[H,q]=bl({open:!1,pattern:{}}),N=jwe(null),[M,k]=bl(""),[F,V]=bl(0),[y,J]=bl(10),[oe,R]=bl("updated_at desc"),[we,De]=bl(!1),{data:Et,refetch:dr}=A({workspaceId:e,page:F,pagesize:y,search:M,order:oe,expandUser:!0},{skip:!e}),Ve=mr=>{let Aa=m(mr);q({open:!0,pattern:Aa})},pr=te(),Rt=H7({handleDeleteModal:mr=>()=>p(mr.id,e),handlePublishModal:Ve,handleUnpublishModal:mr=>()=>d(mr,N),handleCopyUrl:i,handleClone:n,handleShowDetails:f,handleDownload:s,getDownloadUrl:u,isCopyLinkAllowed:x,isDeleteAllowed:h,isDownloadAllowed:g,isPublishAllowed:T,isUnpublishAllowed:w,isFromWorkspaceTable:!0,isRemoveAllowed:b,theme:pr,handleOpenInDesigner:B,showPlaygroundActions:P,handleVisibilityChange:Q,currentUserId:Z,refetchWorkspaceDesigns:dr}),[Yt,z]=bl({rjsfSchema:{},uiSchema:{}}),{width:Zt}=qo(),[$,fe]=bl(()=>{let mr=Go(S5,Zt),Aa={};return Rt.forEach(Al=>{Aa[Al.name]=mr[Al.name]}),Aa});zwe(()=>{(async()=>{let Aa=TS.uniq(r?.models?.map(M1=>M1.display_name)),Al=TS.set(TS.cloneDeep(H5),"properties.compatibility.items.enum",Aa);z({rjsfSchema:Al,uiSchema:H5})})()},[r]);let pe=gS({workspaceId:e,useAssignDesignToWorkspaceMutation:E,useUnassignDesignFromWorkspaceMutation:I,useGetDesignsOfWorkspaceQuery:A,isDesignsVisible:C||b}),or=on(sl,{style:{padding:"1rem"},children:IH(K,{style:{marginRight:"0rem",width:"100%",justifyContent:"end",display:"flex",alignItems:"center"},children:[on(qn,{onSearch:mr=>{k(mr)},onClear:()=>{k("")},expanded:we,setExpanded:De,placeholder:"Search designs..."}),on(ga,{columns:Rt,customToolsProps:{columnVisibility:$,setColumnVisibility:fe},id:"catalog-table"}),on(Gn,{onClick:pe.handleAssignModal,disabled:!C,title:"Assign Designs"})]})});return IH(Ywe,{children:[or,on(N7,{patterns:Et?.designs||[],totalCount:Et?.total_count,sortOrder:oe,setSortOrder:R,pageSize:y,setPageSize:J,page:F,setPage:V,columnVisibility:$,colViews:S5,columns:Rt,handleBulkpatternsDataUnpublishModal:o,handleBulkDeleteModal:(mr,Aa)=>a(mr,Aa,t,e),filter:"my-designs",setSearch:k}),on(ai,{open:pe.assignModal,onClose:pe.handleAssignModalClose,title:`Assign Designs to ${t}`,headerIcon:on(Na,{height:"40",width:"40"}),name:"Designs",assignableData:pe.data,handleAssignedData:pe.handleAssignData,originalAssignedData:pe.workspaceData,emptyStateIcon:on(Na,{height:"5rem",width:"5rem",secondaryFill:"#808080"}),handleAssignablePage:pe.handleAssignablePage,handleAssignedPage:pe.handleAssignedPage,originalLeftCount:pe.data?.length||0,originalRightCount:pe.assignedItems?.length||0,onAssign:pe.handleAssign,disableTransfer:pe.disableTransferButton,helpText:`Assign Designs to ${t}`,isAssignAllowed:C,isRemoveAllowed:b,showViews:!1}),on(D,{open:H.open,handleClose:()=>q({open:!1,pattern:{}}),schema:Yt?.rjsfSchema,uiSchema:Yt?.uiSchema,handleSubmit:mr=>l(H,mr),title:`Publish ${H?.pattern?.name}`,buttonTitle:"Publish"}),on(Tf,{ref:N})]})},$we=Kwe;import{useState as wl}from"react";import{useEffect as kH,useState as vl}from"react";var Zwe=({workspaceId:e,useGetEnvironmentsOfWorkspaceQuery:t,useAssignEnvironmentToWorkspaceMutation:r,useUnassignEnvironmentFromWorkspaceMutation:o,isEnvironmentsVisible:a})=>{let[n,i]=vl(0),[l,s]=vl([]),u=25,[f,d]=vl(0),[p,m]=vl([]),[x,h]=vl(!1),[g,T]=vl(!0),[w,E]=vl(!0),[I,D]=vl([]),{data:C}=t(tr({workspaceId:e,page:n,pagesize:u,filter:'{"assigned":false}'}),{skip:g||!a}),{data:b}=t(tr({workspaceId:e,page:f,pagesize:u}),{skip:g||!a}),[A]=r(),[B]=o();kH(()=>{let k=C?.environments?C.environments:[];s(F=>[...F,...k])},[C]),kH(()=>{let k=b?.environments?b.environments:[];m(F=>[...F,...k])},[b]);let P=k=>{k?.stopPropagation(),h(!0),T(!1)},Q=k=>{k?.stopPropagation(),h(!1),T(!0)},Z=()=>{let k=Math.ceil(Number(C?.total_count)/u);n<k-1&&i(F=>F+1)},H=()=>{let k=Math.ceil(Number(b?.total_count)/u);f<k-1&&d(F=>F+1)},q=k=>{let F=p.map(oe=>oe.id),V=k.map(oe=>oe.id),y=V.filter(oe=>!F.includes(oe)),J=F.filter(oe=>!V.includes(oe));return{addedEnvironmentsIds:y,removedEnvironmentsIds:J}};return{data:l,workspaceData:p,assignModal:x,handleAssignModal:P,handleAssignModalClose:Q,handleAssignablePage:Z,handleAssignedPage:H,handleAssign:async()=>{let{addedEnvironmentsIds:k,removedEnvironmentsIds:F}=q(I);k.map(V=>A({workspaceId:e,environmentId:V}).unwrap()),F.map(V=>B({workspaceId:e,environmentId:V}).unwrap()),s([]),m([]),i(0),d(0),Q()},handleAssignData:k=>{let{addedEnvironmentsIds:F,removedEnvironmentsIds:V}=q(k);F.length>0||V.length>0?E(!1):E(!0),D(k)},disableTransferButton:w,assignedItems:I}},SS=Zwe;import{Fragment as eEe,jsx as Ut,jsxs as V5}from"react/jsx-runtime";var MH=[["id","na"],["name","xs"],["description","m"],["organization_id","l"],["created_at","na"],["updated_at","xl"],["actions","xs"]],Qwe=({value:e})=>Ut("div",{style:{position:"relative",height:"20px"},children:Ut(N6,{children:Ut(F6,{children:Ut(ce,{title:e,placement:"top-start",children:Ut("span",{style:{cursor:"pointer"},children:e})})})})}),Xwe=({workspaceId:e,workspaceName:t,isRemoveAllowed:r,useGetEnvironmentsOfWorkspaceQuery:o,useUnassignEnvironmentFromWorkspaceMutation:a,useAssignEnvironmentToWorkspaceMutation:n,isAssignAllowed:i})=>{let[l,s]=wl(!1),u=N=>{N.stopPropagation(),s(!l)},[f,d]=wl(""),[p,m]=wl(!1),[x,h]=wl(0),[g,T]=wl(10),[w,E]=wl("updated_at desc"),{data:I}=o({workspaceId:e,page:x,pageSize:g,search:f,order:w}),{width:D}=qo(),C=te(),[b]=a(),A=[{name:"id",label:"ID",options:{filter:!1,customBodyRender:N=>Ut(zo,{value:N,maxLength:10})}},{name:"name",label:"Name",options:{filter:!1,sort:!0,searchable:!0,customBodyRender:N=>Ut(zo,{value:N,maxLength:10})}},{name:"organization_id",label:"Organization ID",options:{filter:!1,sort:!1,searchable:!1}},{name:"description",label:"Description",options:{filter:!1,sort:!0,searchable:!0,customBodyRender:N=>Ut(Qwe,{value:N})}},{name:"created_at",label:"Created At",options:{filter:!1,sort:!0,searchable:!0,setCellHeaderProps:()=>({align:"center"})}},{name:"updated_at",label:"Updated At",options:{filter:!1,sort:!0,searchable:!0,setCellHeaderProps:()=>({align:"center"})}},{name:"actions",label:"Actions",options:{filter:!1,sort:!1,searchable:!1,customBodyRender:(N,M)=>Ut(lo,{disabled:!r,children:Ut(Ht,{id:`delete_team-${M.rowIndex}`,title:"Remove Environment",onClick:()=>{r&&b({workspaceId:e,environmentId:M.rowData[0]})},iconType:"delete",children:Ut(ro,{height:28,width:28,fill:C.palette.icon.default})})})}}],B=SS({workspaceId:e,useGetEnvironmentsOfWorkspaceQuery:o,useUnassignEnvironmentFromWorkspaceMutation:a,useAssignEnvironmentToWorkspaceMutation:n,isEnvironmentsVisible:i||r}),[P,Q]=wl(()=>{let N=Go(MH,D),M={};return A.forEach(k=>{M[k.name]=N[k.name]}),M}),Z={filter:!1,responsive:"standard",selectableRows:"none",count:I?.total_count,rowsPerPage:g,page:x,elevation:0,sortOrder:{name:w.split(" ")[0],direction:w.split(" ")[1]},serverSide:!0,onTableChange:(N,M)=>{let k=M.announceText?M.announceText.split(" : "):[],F="";switch(M.activeColumn&&(F=`${A[M.activeColumn].name} desc`),N){case"changePage":h(M.page);break;case"changeRowsPerPage":T(M.rowsPerPage);break;case"search":d(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!==w&&E(F);break}}},[H,q]=wl(A);return V5(eEe,{children:[V5(N3,{expanded:l,onChange:u,style:{margin:0},children:[Ut(H3,{expandIcon:Ut(So,{}),sx:{backgroundColor:"background.paper"},children:V5(sl,{children:[Ut(G,{variant:"body1",fontWeight:"bold",children:"Assigned Environments"}),V5(k2,{children:[Ut(qn,{onSearch:N=>{d(N)},onClear:()=>{d("")},expanded:p,setExpanded:m,placeholder:"Search workspaces..."}),Ut(ga,{columns:A,customToolsProps:{columnVisibility:P,setColumnVisibility:Q},id:"environments-table"}),Ut(Gn,{onClick:B.handleAssignModal,disabled:!i,title:"Assign Environments"})]})]})}),Ut(B3,{style:{padding:0},children:Ut(vo,{columns:A,data:I?.environments,options:Z,colViews:MH,tableCols:H,updateCols:q,columnVisibility:P})})]}),Ut(ai,{open:B.assignModal,onClose:B.handleAssignModalClose,title:`Assign Environments to ${t}`,headerIcon:Ut(Sn,{height:"40",width:"40",fill:"white"}),name:"Environments",assignableData:B.data,handleAssignedData:B.handleAssignData,originalAssignedData:B.workspaceData,emptyStateIcon:Ut(Sn,{height:"5rem",width:"5rem",fill:"#808080"}),handleAssignablePage:B.handleAssignablePage,handleAssignedPage:B.handleAssignedPage,originalLeftCount:B.data?.length||0,originalRightCount:I?.total_count||0,onAssign:B.handleAssign,disableTransfer:B.disableTransferButton,helpText:`Assign Environments to ${t}`,isAssignAllowed:i,isRemoveAllowed:r})]})},Jwe=Xwe;import{Grid2 as CS,useTheme as tEe}from"@mui/material";import{jsx as _o,jsxs as U5}from"react/jsx-runtime";var _1=({title:e,count:t,onAssign:r,disabled:o})=>{let a=te();return _o(U6,{onClick:r,disabled:o,color:"primary",sx:{color:a.palette.background.neutral?.default,backgroundColor:a.palette.background.constant?.table,margin:"0px 0px 10px",padding:"20px 10px","&:hover":{backgroundColor:a.palette.background.constant?.table,boxShadow:"none"}},children:U5(me,{children:[_o(q6,{textColor:a.palette.text.default,children:t}),_o(W6,{textColor:a.palette.text.default,children:e}),_o(ig,{sx:{position:"absolute",top:"10px",right:"10px"}})]})})},ii=({title:e,count:t,disabled:r=!0})=>_o(U6,{disabled:r,color:"primary",sx:{boxShadow:"none"},children:U5(me,{children:[_o(q6,{children:t}),_o(W6,{children:e})]})}),LH=({title:e,name:t,date:r})=>{let o=te();return U5(fD,{children:[U5(me,{sx:{display:"flex",maxHeight:"140px"},size:10,children:[_o(G,{sx:{fontSize:14,textAlign:"left",color:o.palette.background.constant?.white,maxWidth:"max-content",overflowX:"hidden"},children:e}),_o(G,{sx:{marginInline:"0.5rem",fontStyle:"italic",color:o.palette.background.brand?.default,textWrap:"nowrap"},children:t})]}),_o(me,{sx:{display:"flex",justifyContent:"flex-end"},size:2,children:_o(ce,{title:r?Ts(r):"",placement:"top",children:_o("div",{children:_o(G,{sx:{fontSize:14,fontStyle:"italic",color:`${o.palette.text.disabled}`,paddingRight:"12px",textAlign:"end"},children:r?ol(r):"-"})})})})]})};import{jsx as ke,jsxs as mo}from"react/jsx-runtime";var rEe=({workspaceDetails:e,onDelete:t,onEdit:r,onSelect:o,selectedWorkspaces:a,onAssignTeam:n,onAssignEnvironment:i,onAssignDesign:l,recentActivities:s,onFlip:u,onFlipBack:f,loadingEvents:d,teamsOfWorkspaceCount:p,environmentsOfWorkspaceCount:m,designAndViewOfWorkspaceCount:x,isEnvironmentAllowed:h,isTeamAllowed:g,isDesignAllowed:T,isViewAllowed:w,isDeleteWorkspaceAllowed:E,isEditWorkspaceAllowed:I,isViewsVisible:D,isDesignsVisible:C,isEnvironmentsVisible:b,isTeamsVisible:A})=>{let B=e.deleted_at.Valid;return mo(b2,{disableFlip:!!a.includes(e.id),padding:"0",children:[ke(aEe,{onFlip:u,name:e?.name,description:e?.description,environmentsCount:m,onAssignEnvironment:i,teamsCount:p,onAssignTeam:n,designAndViewOfWorkspaceCount:x,onAssignDesign:l,isEnvironmentAllowed:h,isTeamAllowed:g,isDesignAllowed:T,isViewAllowed:w,isViewsVisible:D,isDesignsVisible:C,isEnvironmentsVisible:b,isTeamsVisible:A}),ke(nEe,{onFlipBack:f,onSelect:o,name:e?.name,onEdit:r,onDelete:t,selectedWorkspaces:a,workspaceId:e?.id,loadingEvents:d,recentActivities:s,updatedDate:e?.updated_at,createdDate:e?.created_at,deleted:B,isDeleteWorkspaceAllowed:E,isEditWorkspaceAllowed:I})]})},oEe=rEe,aEe=({onFlip:e,name:t,description:r,environmentsCount:o,onAssignEnvironment:a,teamsCount:n,onAssignTeam:i,designAndViewOfWorkspaceCount:l,onAssignDesign:s,isEnvironmentAllowed:u,isTeamAllowed:f,isDesignAllowed:d,isViewAllowed:p,isViewsVisible:m,isDesignsVisible:x,isEnvironmentsVisible:h,isTeamsVisible:g})=>mo(cD,{elevation:2,onClick:e,children:[ke(dD,{children:ke(B6,{variant:"body2",onClick:T=>T.stopPropagation(),children:t})}),ke(CS,{children:r?ke(uD,{onClick:T=>T.stopPropagation(),sx:{maxHeight:"105px"},children:r}):ke(V6,{onClick:T=>T.stopPropagation(),children:"No description"})}),mo(CS,{sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},pt:{xs:1,md:2},gap:1},children:[h&&ke(jp,{children:mo(zp,{onClick:T=>T.stopPropagation(),children:[u?ke(_1,{title:"Environments",count:o,onAssign:a,disabled:!u}):ke(ii,{title:"Environment",count:o}),ke(ii,{title:"Connections",count:0})]})}),g&&ke(jp,{children:mo(zp,{onClick:T=>T.stopPropagation(),children:[f?ke(_1,{title:"Teams",count:n,onAssign:i,disabled:!f}):ke(ii,{title:"Teams",count:n}),ke(ii,{title:"Users",count:0})]})}),x&&!m&&ke(jp,{children:mo(zp,{onClick:T=>T.stopPropagation(),children:[d?ke(_1,{title:"Designs",count:l,onAssign:s,disabled:!d}):ke(ii,{title:"Designs",count:l}),ke(ii,{title:"Deploys",count:0})]})}),x&&m&&ke(jp,{children:mo(zp,{onClick:T=>T.stopPropagation(),children:[d&&p?ke(_1,{title:"Designs/Views",count:l,onAssign:s,disabled:!(d&&p)}):ke(ii,{title:"Designs/Views",count:l}),ke(ii,{title:"Deploys",count:0})]})})]})]}),nEe=({onFlipBack:e,onSelect:t,name:r,onEdit:o,onDelete:a,selectedWorkspaces:n,workspaceId:i,loadingEvents:l,recentActivities:s,updatedDate:u,createdDate:f,deleted:d,isDeleteWorkspaceAllowed:p,isEditWorkspaceAllowed:m})=>{let x=n?.includes(i),h=x?!0:!m,g=x?!0:!p,T=tEe();return mo(mD,{elevation:2,onClick:e,children:[mo(xD,{size:12,children:[mo(hD,{size:6,children:[ke(sD,{onClick:w=>w.stopPropagation(),onChange:t,disabled:d?!0:!p}),ke(B6,{sx:{color:T.palette.background.constant?.white},variant:"body2",onClick:w=>w.stopPropagation(),children:r})]}),mo(gD,{size:6,children:[ke(Gn,{onClick:o,disabled:h,style:{fill:T.palette.background.constant?.white},bulk:!0}),ke(G6,{onClick:a,style:{fill:T.palette.background.constant?.white},disabled:g,bulk:!0})]})]}),ke(CS,{sx:{display:"flex",alignItems:"center",flexDirection:"row"},children:ke(TD,{variant:"body2",children:"Recent Activity"})}),ke(SD,{children:l?ke(md,{sx:{zIndex:"2010"},open:l,children:ke(Lt,{color:"inherit",style:{color:T.palette.background.constant?.white}})}):s?.map((w,E)=>ke(LH,{title:w?.description,name:w?.first_name,date:w?.created_at},E))}),mo(CD,{size:12,children:[ke(z6,{size:6,children:mo(H6,{onClick:w=>w.stopPropagation(),children:["Updated At: ",ol(u)]})}),ke(z6,{size:6,children:mo(H6,{onClick:w=>w.stopPropagation(),children:["Created At: ",ol(f)]})})]})]})};import{useContext as iEe,useState as lEe}from"react";import{Fragment as cEe,jsx as Io,jsxs as I1}from"react/jsx-runtime";var sEe=L(ki)({borderRadius:"8px"}),uEe=L(G)(({theme:e})=>({marginBottom:"1rem",color:e.palette.text.secondary})),fEe=L("div")(({theme:e})=>({padding:"1rem",textAlign:"center",color:e.palette.text.secondary,border:`1px dashed ${e.palette.border.strong}`,borderRadius:"8px",margin:"1rem 0",display:"flex",flexDirection:"column",alignItems:"center",gap:"1rem"})),dEe=(e,t,r)=>{let o=r?.length||1,a=t?.name||o,n=e===Au.DESIGN?"Design":"View";return`Move ${a} ${n}${o>1?"s":""}`},pEe=({workspaceContentMoveModal:e,setWorkspaceContentMoveModal:t,currentWorkspace:r,type:o,selectedContent:a,refetch:n,useGetWorkspacesQuery:i,isCreateWorkspaceAllowed:l,isMoveDesignAllowed:s,isMoveViewAllowed:u,assignDesignToWorkspace:f,assignViewToWorkspace:d,WorkspaceModalContext:p,notify:m,router:x,currentOrgId:h})=>{let{setMultiSelectedContent:g,multiSelectedContent:T,closeModal:w}=iEe(p),{data:E,isLoading:I}=i({page:0,pagesize:"all",order:"updated_at desc",orgID:h},{skip:!h}),D=E?.workspaces?.filter(Q=>Q.id!==r.id),[C,b]=lEe(null),A=async()=>{t(!1);try{let Q=async H=>{await f({workspaceId:C.id,designId:H})},Z=async H=>{await d({workspaceId:C.id,viewId:H})};Au.DESIGN===o?(T.length>0&&(await Promise.all(T.map(H=>Q(H.id))),g([])),a&&await Q(a.id)):(T.length>0&&(await Promise.all(T.map(H=>Z(H.id))),g([])),a&&await Z(a.id)),n&&n(),m({message:`Successfully moved ${o===Au.DESIGN?"design":"view"}${T.length>1?"s":""} to ${C.name}`,event_type:Z3.SUCCESS})}catch{m({message:`Failed to move ${o===Au.DESIGN?"design":"view"}. Please try again.`,event_type:Z3.ERROR})}},B=()=>{w(),t(!1),x.push("/management/workspaces")},P=o===Au.DESIGN?s:u;return I1(vr,{open:e,headerIcon:Io(W4,{}),closeModal:()=>t(!1),title:dEe(o,a,T),children:[I1(br,{children:[I1(uEe,{children:["Current Workspace: ",Io("strong",{children:r.name})]}),Io(na,{}),Io(K,{display:"flex",flexDirection:"column",marginTop:"1rem",children:I?Io(Lt,{size:24}):D?.length?I1(cEe,{children:[Io(G,{style:{marginBottom:"0.5rem"},children:"Select destination workspace"}),Io(Hr,{children:D.map(Q=>Io(sEe,{selected:C?.id===Q.id,onClick:()=>P&&b(Q),disabled:!P,children:Io(qt,{primary:Q.name})},Q.id))})]}):I1(fEe,{children:[Io(G,{children:"No other workspaces available to move content to."}),Io(Ae,{variant:"contained",color:"primary",onClick:B,disabled:!l,children:"Create Workspace"})]})})]}),Io(jr,{variant:"filled",children:Io(_p,{primaryText:"Move",secondaryText:"Cancel",primaryButtonProps:{onClick:A,disabled:I||!C||!D?.length||!P},secondaryButtonProps:{onClick:()=>t(!1)}})})]})},mEe=pEe;import{jsx as W5}from"react/jsx-runtime";var xEe=({workspaceId:e,useAssignEnvironmentToWorkspaceMutation:t,useGetEnvironmentsOfWorkspaceQuery:r,useUnassignEnvironmentFromWorkspaceMutation:o,useNotificationHandlers:a,isAssignedEnvironmentAllowed:n})=>{let{handleSuccess:i,handleError:l}=a(),{data:s,isLoading:u}=r({workspaceId:e,page:0,pagesize:"all",filter:'{"assigned":false}'}),{data:f,isLoading:d}=r({workspaceId:e,page:0,pagesize:"all"}),p=s?.environments?.map(w=>({label:w.name,value:w.id}))||[],m=f?.environments?.map(w=>({label:w.name,value:w.id}))||[],[x]=t(),[h]=o(),g=(w,E)=>{let I=w.map(C=>C.value),D=E.map(C=>C.value);if(D.length>0){D.forEach(C=>{let b=f?.environments?.find(A=>A.id===C)?.name||"Unknown";h({workspaceId:e,environmentId:C}).unwrap().then(()=>i(`Environment "${b}" unassigned`)).catch(A=>l(`Environment "${b}" Unassign Error: ${A?.data}`))});return}if(I.length>0){I.forEach(C=>{if(m.find(A=>A.value===C))return;let b=s?.environments?.find(A=>A.id===C)?.name||"Unknown";x({workspaceId:e,environmentId:C}).unwrap().then(()=>i(`Environment "${b}" assigned`)).catch(A=>l(`Environment "${b}" Assign Error: ${A?.data}`))});return}};return W5("div",{onClick:w=>w.stopPropagation(),style:{marginBlock:"1rem",maxWidth:"15rem"},children:W5(V3,{multiple:!0,options:p,value:m,loading:u||d,onChange:(w,E)=>{let I=m||[],D=E||[],C=D.filter(A=>!I.some(B=>B.value===A.value)),b=I.filter(A=>!D.some(B=>B.value===A.value));g(C,b)},size:"small",disableCloseOnSelect:!0,getOptionLabel:w=>w.label,renderTags:w=>w.map(E=>W5(Tt,{label:E.label,size:"small",style:{margin:"0.15rem",borderRadius:"0.2rem"},onDelete:()=>{h({workspaceId:e,environmentId:E.value})}},E.value)),renderInput:w=>W5(Vr,{...w,placeholder:"Assigned Environment"}),popupIcon:null,disabled:!n})})},hEe=xEe;import{useCallback as gEe,useEffect as DH,useRef as FH,useState as yS}from"react";import{Fragment as q5,jsx as ht,jsxs as zf}from"react/jsx-runtime";var TEe=({workspaceId:e,workspaceName:t,open:r,handleClose:o,useGetEventsOfWorkspaceQuery:a})=>{let[n,i]=yS(0),l=25,[s,u]=yS([]),[f,d]=yS(!0),p=FH(null),m=FH(null),{data:x,isLoading:h,isFetching:g}=a({workspaceId:e,page:n,pagesize:l},{skip:!r});DH(()=>{x&&(u(n===0?x.data:I=>[...I,...x.data]),d((x.page+1)*l<x.total_count))},[x,n,l]),DH(()=>{r&&(i(0),u([]),d(!0))},[r]);let T=gEe(I=>{h||g||(p.current&&p.current.disconnect(),p.current=new IntersectionObserver(D=>{D[0].isIntersecting&&f&&i(C=>C+1)}),I&&p.current.observe(I))},[h,g,f]),w=te(),E=I=>{switch(["design","view","environment","team"].find(b=>I.includes(b))){case"design":return ht(Na,{...Co});case"view":return ht(Z4,{...Co});case"environment":return ht(Sn,{...Co,fill:w.palette.icon.default});case"team":return ht(Bu,{...Co,primaryFill:w.palette.icon.default,fill:""});default:return ht(Yd,{...Co,fill:w.palette.icon.default})}};return ht(q5,{children:zf(vr,{title:`"${t}" Recent Activity`,open:r,closeModal:o,headerIcon:ht(CO,{}),maxWidth:"md",children:[ht(br,{style:{maxHeight:"40rem"},children:n===0&&h?ht(K,{display:"flex",justifyContent:"center",padding:4,children:ht(Lt,{})}):s.length>0?zf(q5,{children:[s.map((I,D)=>zf(Hr,{sx:{width:"100%",padding:"0"},children:[zf(Tr,{style:{padding:"0"},alignItems:"flex-start",secondaryAction:zf(K,{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:.2,children:[E(I.description),ht(ce,{title:Ts(I.created_at),children:ht("div",{children:zf(G,{variant:"caption",style:{display:"flex",alignItems:"center",fontStyle:"italic"},children:["Updated At: ",Ss(I.created_at)]})})})]}),children:[ht(gd,{style:{minWidth:"0",marginTop:"0.75rem",marginRight:"1rem"},children:ht(Mt,{alt:I.first_name,src:I.avatar_url,sx:Wu})}),ht(qt,{primary:I.first_name+" "+I.last_name,secondary:ht(q5,{children:I.description})})]}),ht(na,{})]},`${I.created_at}-${I.description}-${D}`)),ht("div",{ref:f?T:null,style:{height:"20px",width:"100%"}}),g&&ht(K,{display:"flex",justifyContent:"center",padding:2,ref:m,children:ht(Lt,{size:24})}),!f&&s.length>0&&ht(G,{variant:"body2",color:"textSecondary",style:{textAlign:"center"},children:"No more activities to load"})]}):ht(K,{display:"flex",justifyContent:"center",padding:4,children:ht(G,{variant:"body2",color:"textSecondary",children:"No recent activity found for this workspace."})})}),ht(jr,{variant:"filled",children:ht(q5,{})})]})})},SEe=TEe;import{useState as jf}from"react";import{useEffect as NH,useState as El}from"react";var CEe=({workspaceId:e,useGetTeamsOfWorkspaceQuery:t,useAssignTeamToWorkspaceMutation:r,useUnassignTeamFromWorkspaceMutation:o,isTeamsVisible:a})=>{let[n,i]=El(0),[l,s]=El([]),u=25,[f,d]=El(0),[p,m]=El([]),[x,h]=El(!1),[g,T]=El(!0),[w]=r(),[E]=o(),[I,D]=El(!0),[C,b]=El([]),{data:A}=t(tr({workspaceId:e,page:n,pagesize:u,filter:'{"assigned":false}'}),{skip:g||!a}),{data:B}=t(tr({workspaceId:e,page:f,pagesize:u}),{skip:g||!a});NH(()=>{let k=A?.teams?A.teams:[];s(F=>[...F,...k])},[A]),NH(()=>{let k=B?.teams?B.teams:[];m(F=>[...F,...k])},[B]);let P=k=>{k?.stopPropagation(),h(!0),T(!1)},Q=k=>{k?.stopPropagation(),h(!1),T(!0)},Z=()=>{let k=Math.ceil(Number(A?.total_count)/u);n<k-1&&i(F=>F+1)},H=()=>{let k=Math.ceil(Number(B?.total_count)/u);f<k-1&&d(F=>F+1)},q=()=>{let{addedTeamsIds:k,removedTeamsIds:F}=N(C);k.map(V=>w({workspaceId:e,teamId:V}).unwrap()),F.map(V=>E({workspaceId:e,teamId:V}).unwrap()),s([]),m([]),Q()},N=k=>{let F=p.map(oe=>oe.id),V=k.map(oe=>oe.id),y=V.filter(oe=>!F.includes(oe)),J=F.filter(oe=>!V.includes(oe));return{addedTeamsIds:y,removedTeamsIds:J}};return{data:l,workspaceData:p,assignModal:x,handleAssignModal:P,handleAssignModalClose:Q,handleAssignablePage:Z,handleAssignedPage:H,handleAssign:q,handleAssignData:k=>{let{addedTeamsIds:F,removedTeamsIds:V}=N(k);F.length>0||V.length>0?D(!1):D(!0),b(k)},disableTransferButton:I,assignedItems:C}},bS=CEe;import{Fragment as vEe,jsx as Rl,jsxs as vS}from"react/jsx-runtime";var yEe=({workspaceId:e,workspaceName:t,useGetTeamsOfWorkspaceQuery:r,useAssignTeamToWorkspaceMutation:o,useUnassignTeamFromWorkspaceMutation:a,isEditTeamAllowed:n,isAssignTeamAllowed:i,isRemoveTeamFromWorkspaceAllowed:l,isLeaveTeamAllowed:s,isDeleteTeamAllowed:u,org_id:f,useGetUsersForOrgQuery:d,useNotificationHandlers:p,useRemoveUserFromTeamMutation:m})=>{let[x,h]=jf(0),[g,T]=jf(10),[w,E]=jf("updated_at desc"),[I,D]=jf(!1),[C,b]=jf(""),[A,B]=jf(!1),{data:P}=r({workspaceId:e,page:x,pageSize:g,order:w,search:C}),[Q]=a(),Z=bS({workspaceId:e,useGetTeamsOfWorkspaceQuery:r,useAssignTeamToWorkspaceMutation:o,useUnassignTeamFromWorkspaceMutation:a,isTeamsVisible:i||l}),H=M=>{Q({workspaceId:e,teamId:M}).unwrap()},q=Yp({teams:P?.teams,count:P?.total_count,page:x,pageSize:g,setPage:h,setPageSize:T,sortOrder:w,setSortOrder:E,bulkSelect:I,setBulkSelect:D,handleRemoveTeamFromWorkspace:H,handleTeamView:()=>{},handleDeleteTeam:()=>{},handleleaveTeam:()=>{},teamId:"",workspace:!0,isEditTeamAllowed:n,isLeaveTeamAllowed:s,isRemoveTeamFromWorkspaceAllowed:l,isDeleteTeamAllowed:u,setSearch:b}),N=te();return vS(vEe,{children:[vS(sl,{children:[Rl(Ae,{variant:"contained",startIcon:Rl(yO,{}),onClick:Z.handleAssignModal,style:{margin:"1rem"},children:"Assign Teams"}),vS(k2,{children:[Rl(qn,{onSearch:M=>{b(M)},onClear:()=>{b("")},expanded:A,setExpanded:B,placeholder:"Search workspaces..."}),Rl(ga,{columns:q.columns,customToolsProps:{columnVisibility:q.columnVisibility,setColumnVisibility:q.setColumnVisibility},id:"teams-table"})]})]}),Rl(D2,{teams:P?.teams,tableOptions:q.tableOptions,columnVisibility:q.columnVisibility,colViews:q.colViews,tableCols:q.tableCols,updateCols:q.updateCols,columns:q.columns,isRemoveFromTeamAllowed:l,org_id:f,useGetUsersForOrgQuery:d,useNotificationHandlers:p,useRemoveUserFromTeamMutation:m}),Rl(ai,{open:Z.assignModal,onClose:Z.handleAssignModalClose,title:`Assign Teams to ${t}`,headerIcon:Rl(Bu,{height:"40",width:"40",primaryFill:N.palette.common.white,fill:N.palette.icon.disabled}),name:"Teams",assignableData:Z.data,handleAssignedData:Z.handleAssignData,originalAssignedData:Z.workspaceData,emptyStateIcon:Rl(Bu,{height:"5rem",width:"5rem",primaryFill:"#808080",secondaryFill:N.palette.icon.disabled,fill:"#808080"}),handleAssignablePage:Z.handleAssignablePage,handleAssignedPage:Z.handleAssignedPage,originalLeftCount:Z.data?.length||0,originalRightCount:P?.total_count||0,onAssign:Z.handleAssign,disableTransfer:Z.disableTransferButton,helpText:`Assign Teams to ${t}`,isAssignAllowed:i,isRemoveAllowed:l})]})},bEe=yEe;import{useState as Bs}from"react";import{useEffect as BH,useState as Ol}from"react";var wEe=({workspaceId:e,useGetViewsOfWorkspaceQuery:t,useAssignViewToWorkspaceMutation:r,useUnassignViewFromWorkspaceMutation:o,isViewsVisible:a})=>{let[n,i]=Ol(0),[l,s]=Ol([]),u=25,[f,d]=Ol(0),[p,m]=Ol([]),[x,h]=Ol(!1),[g,T]=Ol(!0),[w,E]=Ol(!0),[I,D]=Ol([]),{data:C}=t(tr({workspaceId:e,page:n,pagesize:u,filter:'{"assigned":false}'}),{skip:g||!a}),{data:b}=t(tr({workspaceId:e,page:f,pagesize:u}),{skip:g||!a}),[A]=r(),[B]=o();BH(()=>{let F=C?.views?C.views:[];s(V=>[...V,...F])},[C]),BH(()=>{let F=b?.views?b.views:[];m(V=>[...V,...F])},[b]);let P=F=>{F?.stopPropagation(),h(!0),T(!1)},Q=F=>{F?.stopPropagation(),h(!1),T(!0)},Z=()=>{let F=Math.ceil(Number(C?.total_count)/u);n<F-1&&i(V=>V+1)},H=()=>{let F=Math.ceil(Number(b?.total_count)/u);f<F-1&&d(V=>V+1)},q=F=>{let V=p.map(R=>R.id),y=F.map(R=>R.id),J=y.filter(R=>!V.includes(R)),oe=V.filter(R=>!y.includes(R));return{addedviewsIds:J,removedviewsIds:oe}};return{data:l,workspaceData:p,assignModal:x,handleAssignModal:P,handleAssignModalClose:Q,handleAssignablePage:Z,handleAssignedPage:H,handleAssign:async()=>{let{addedviewsIds:F,removedviewsIds:V}=q(I);F.map(y=>A({workspaceId:e,viewId:y}).unwrap()),V.map(y=>B({workspaceId:e,viewId:y}).unwrap()),s([]),m([]),i(0),d(0),Q()},isActivityOccurred:F=>{let{addedviewsIds:V,removedviewsIds:y}=q(F);return V.length>0||y.length>0},handleAssignData:F=>{let{addedviewsIds:V,removedviewsIds:y}=q(F);E(!(V.length>0||y.length>0)),D(F)},disableTransferButton:w,assignedItems:I}},wS=wEe;import{jsx as Qr,jsxs as ES}from"react/jsx-runtime";var HH=[["id","na"],["avatar_url","xs"],["email","na"],["name","xs"],["first_name","na"],["last_name","na"],["organization_id","xl"],["created_at","na"],["updated_at","xl"],["visibility","l"],["actions","xs"]];var EEe=({workspaceId:e,workspaceName:t,isRemoveAllowed:r,useGetViewsOfWorkspaceQuery:o,useUnassignViewFromWorkspaceMutation:a,useAssignViewToWorkspaceMutation:n,isAssignAllowed:i,handleShowDetails:l,handleVisibilityChange:s,currentUserId:u})=>{let f=te(),[d,p]=Bs(""),[m,x]=Bs(!1),[h,g]=Bs(0),[T,w]=Bs(10),[E,I]=Bs("updated_at desc"),{data:D,refetch:C}=o({workspaceId:e,page:h,pagesize:T,search:d,order:E,expandUser:!0},{skip:!e}),{width:b}=qo(),[A]=a(),B=[{name:"id",label:"ID",options:{filter:!1,customBodyRender:M=>Qr(zo,{value:M,maxLength:10})}},{name:"name",label:"Name",options:{filter:!1,sort:!0,searchable:!0,customBodyRender:(M,k)=>{let F=k.tableData[k.rowIndex]?.id??"",V=k.tableData[k.rowIndex]?.name??"";return Qr(Ff,{onClick:()=>l(F,V,u1.VIEW),children:M})}}},{name:"avatar_url",label:"Author",options:{filter:!1,sort:!1,searchable:!1,customBodyRender:(M,k)=>Qr(K,{sx:{"& > img":{mr:2,flexShrink:0}},children:Qr(Sf,{userId:((V,y,J)=>{let oe=J.findIndex(R=>R.name===y);return V[oe]})(k.rowData,"user_id",B),userName:`${k.rowData[4]} ${k.rowData[5]}`,userEmail:k.rowData[3],profileUrl:M})})}},{name:"email",label:"Email",options:{filter:!1,sort:!0,searchable:!0}},{name:"first_name",label:"First Name",options:{filter:!1,sort:!0,searchable:!0}},{name:"last_name",label:"Last Name",options:{filter:!1,sort:!0,searchable:!0}},{name:"created_at",label:"Created At",options:{filter:!1,sort:!0,searchable:!0,setCellHeaderProps:()=>({align:"center"})}},{name:"updated_at",label:"Updated At",options:{filter:!1,sort:!0,searchable:!0,setCellHeaderProps:()=>({align:"center"})}},{name:"visibility",label:"Visibility",options:{filter:!1,sort:!1,searchable:!0,customBodyRender:(M,k)=>{let F=k.rowIndex,V=k.tableData[F]?.id,y=k.tableData[F]?.visibility,oe=k.tableData[F]?.user_id===u,R=y!==ba.PUBLISHED&&oe;return Qr(ul,{value:M,onChange:we=>{s&&(s(V,we),C())},enabled:R,options:[[ba.PUBLIC,Xd],[ba.PRIVATE,Qd]]})}}},{name:"actions",label:"Actions",options:{filter:!1,sort:!1,searchable:!1,customBodyRender:(M,k)=>Qr(lo,{disabled:!r,children:ES(Ht,{id:`delete_view-${k.rowIndex}`,title:"Move View",onClick:()=>{r&&A({workspaceId:e,viewId:k.rowData[0]})},iconType:"delete",children:[Qr(RO,{style:{color:f?.palette.icon.default}})," "]})})}}],P=wS({workspaceId:e,useGetViewsOfWorkspaceQuery:o,useUnassignViewFromWorkspaceMutation:a,useAssignViewToWorkspaceMutation:n,isViewsVisible:i||r}),[Q,Z]=Bs(()=>{let M=Go(HH,b),k={};return B.forEach(F=>{k[F.name]=M[F.name]}),k}),H={filter:!1,responsive:"standard",selectableRows:"none",count:D?.total_count,rowsPerPage:T,serverSide:!0,page:h,elevation:0,sortOrder:{name:E.split(" ")[0],direction:E.split(" ")[1]},onTableChange:(M,k)=>{let F=k.announceText?k.announceText.split(" : "):[],V="";switch(k.activeColumn&&(V=`${B[k.activeColumn].name} desc`),M){case"changePage":g(k.page);break;case"changeRowsPerPage":w(k.rowsPerPage);break;case"sort":F.length==2&&(F[1]==="ascending"?V=`${B[k.activeColumn].name} asc`:V=`${B[k.activeColumn].name} desc`),V!==E&&I(V);break}}},[q,N]=Bs(B);return ES(zr,{children:[Qr(sl,{style:{padding:"1rem"},children:ES(K,{style:{marginRight:"0rem",width:"100%",justifyContent:"end",display:"flex",alignItems:"center"},children:[Qr(qn,{onSearch:M=>{p(M)},onClear:()=>{p("")},expanded:m,setExpanded:x,placeholder:"Search workspaces..."}),Qr(ga,{columns:B,customToolsProps:{columnVisibility:Q,setColumnVisibility:Z},id:"views-table"}),Qr(Gn,{onClick:P.handleAssignModal,disabled:!i,title:"Assign Views"})]})}),Qr(vo,{columns:B,data:D?.views,options:H,colViews:HH,tableCols:q,updateCols:N,columnVisibility:Q}),Qr(ai,{open:P.assignModal,onClose:P.handleAssignModalClose,title:`Assign Views to ${t}`,headerIcon:Qr(Sn,{height:"40",width:"40",fill:"white"}),name:"Views",assignableData:P.data,handleAssignedData:P.handleAssignData,originalAssignedData:P.workspaceData,emptyStateIcon:Qr(Sn,{height:"5rem",width:"5rem",fill:"#808080"}),handleAssignablePage:P.handleAssignablePage,handleAssignedPage:P.handleAssignedPage,originalLeftCount:P.data?.length||0,originalRightCount:D?.total_count||0,onAssign:P.handleAssign,disableTransfer:P.disableTransferButton,helpText:`Assign Views to ${t}`,isAssignAllowed:i,isRemoveAllowed:r})]})},REe=EEe;import{useEffect as OEe,useRef as AEe,useState as PEe}from"react";var _Ee={type:"subscribe_to_rooms_activity"},IEe="user_map",kEe=e=>e===Lo?Y3:e===Pw?_w:e;function MEe(){return window.location.protocol==="https:"?"wss://":"ws://"}var LEe=e=>{let t=new URL(e),r=kEe(t.host);return`${r===Y3?"wss://":MEe()}${r}/collaboration`},DEe=async({provider_url:e,getUserProfile:t,getUserAccessToken:r})=>{let{data:o}=await t(),a=["user_info","user_left","user_joined","user_map"],{data:n}=await r(),i=async()=>(await r()).data;return{signalingUrl:[LEe(e)],user:o,authToken:n,refreshAuthToken:i,websocketCallbacks:a,peerOpts:{config:{iceServers:Aw}}}},FEe=async(e,t,r,o,a)=>{let n=await DEe({provider_url:r,getUserProfile:o,getUserAccessToken:a}),i=new WebSocket(n.signalingUrl[0],["auth",n.authToken]);e.current=i,i.addEventListener("open",()=>{console.log("[RoomActivity] connected to room activity"),i.send(JSON.stringify(_Ee))}),i.addEventListener("message",l=>{console.log("[RoomActivity] new message",l);let s=JSON.parse(l.data);s.type===IEe&&s.user_map&&t(s.user_map)}),i.addEventListener("close",()=>{console.log("[RoomActivity] subscription to room activity closed")}),i.addEventListener("error",l=>{console.error("[RoomActivity] error in room activity subscription",l)})},CHt=({provider_url:e,getUserProfile:t,getUserAccessToken:r})=>{let[o,a]=PEe({}),n=AEe(null);return OEe(()=>{FEe(n,a,e,t,r);let i=n.current;return()=>{i&&(console.log("closing websocket",i),i.close())}},[e,t,r]),[o,n]},yHt=(e,t)=>{e.send(JSON.stringify({type:"subscribe",topic:t}))},bHt=(e,t)=>{e.send(JSON.stringify({type:"unsubscribe",topic:t}))};import RS from"lodash";var VH=Symbol("INVALID_REDUCER_PATH"),UH="REHYDRATE_STATE_ACTION",NEe=(e,t)=>({type:UH,payload:{reducerPath:e,inflatedState:t}}),BEe=(e,t)=>{if(t.type===UH){let r=RS.cloneDeep(e);return RS.set(r,t.payload.reducerPath.split("/"),t.payload.inflatedState),r}return e},OHt=e=>({persistMiddleware:a=>n=>i=>{let l=n(i),s=e[i.type];if(s){let u=a.getState();s.forEach(f=>{let d=f.split("/"),p=RS.get(u,d,VH);if(p===VH)throw new Error(`Reducer Path to Persist Is Invalid: ${f}`);localStorage.setItem(f,JSON.stringify(p))})}return l},createPersistEnhancedReducer:a=>(n,i)=>{let l=BEe(n,i);return a(l,i)},loadPersistedState:()=>a=>{Object.values(e).forEach(n=>{n.forEach(i=>{let l=localStorage.getItem(i);try{l&&(l=JSON.parse(l),a(NEe(i,l)))}catch{console.error(`Error rehydrating state for reducer ${i}`,l)}})})}});import{useEffect as IRe,useState as RV}from"react";var wV=Nr(G5()),EV=Nr(ZH());import{unstable_batchedUpdates as QH}from"react-dom";function rRe(e){e()}var oRe=rRe,XH=e=>oRe=e;import{useCallback as GHt,useDebugValue as zHt,useRef as jHt}from"react";import{useContext as nRe}from"react";import*as k1 from"react";var JH=Symbol.for("react-redux-context"),eV=typeof globalThis<"u"?globalThis:{};function aRe(){var e;if(!k1.createContext)return{};let t=(e=eV[JH])!=null?e:eV[JH]=new Map,r=t.get(k1.createContext);return r||(r=k1.createContext(null),process.env.NODE_ENV!=="production"&&(r.displayName="ReactRedux"),t.set(k1.createContext,r)),r}var Qo=aRe();function j5(e=Qo){return function(){let r=nRe(e);if(process.env.NODE_ENV!=="production"&&!r)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return r}}var _S=j5();var K5=()=>{throw new Error("uSES not initialized!")};var iRe=K5,tV=e=>{iRe=e};var PRe=Nr(pV()),CV=Nr(hV());import*as $f from"react";import*as SV from"react";var NVt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";var _Re=K5,yV=e=>{_Re=e};import*as bV from"react";function c9(e=Qo){let t=e===Qo?_S:j5(e);return function(){let{store:o}=t();return o}}var VS=c9();function vV(e=Qo){let t=e===Qo?VS:c9(e);return function(){return t().dispatch}}var US=vV();tV(EV.useSyncExternalStoreWithSelector);yV(wV.useSyncExternalStore);XH(QH);import{Fragment as kRe,jsx as MRe}from"react/jsx-runtime";var FUt=({children:e,loadPersistedState:t})=>{let[r,o]=RV(!0),[a,n]=RV(null),i=US();return IRe(()=>{if(r){try{i(t())}catch(l){n(l)}o(!1)}},[r,i,t]),a&&console.error("Error Loading Persisted State",a),r?null:MRe(kRe,{children:e})};export{r4 as ALABASTER_WHITE,ox as ALICE_BLUE,Uw as ANAKIWA,N3 as Accordion,Dae as AccordionActions,B3 as AccordionDetails,H3 as AccordionSummary,tg as ActionButton,Xye as ActionButtonCard,q7 as ActionButtons,qde as AddCircleIcon,Q3 as AddIcon,Kae as Alert,Qae as AlertTitle,rne as AppBar,jde as ApplicationIcon,tpe as ArrowCompressIcon,ope as ArrowExpandIcon,ai as AssignmentModal,s1 as AuthorCell,V3 as Autocomplete,Mt as Avatar,U3 as AvatarGroup,gx as BBChart,nr as BLACK,md as Backdrop,bne as Badge,xTe as BasicMarkdown,npe as BellIcon,SO as BookmarkNotification,K as Box,Ine as Breadcrumbs,lpe as BusIcon,Ae as Button,cd as ButtonGroup,go as CARIBBEAN_GREEN,Q0 as CASPER,Ur as CHARCOAL,_u as CHINESE_SILVER,jw as CONNECTED,Li as CULTURED,O4 as CalenderIcon,gr as Card,Ii as CardActions,Da as CardContent,eie as CardHeader,nie as CardMedia,kme as CaretDownIcon,Uu as Carousel,VD as CatalogCard,uf as CatalogCardDesignLogo,N7 as CatalogDesignsTable,vhe as CatalogFilter,JD as CatalogFilterSidebar,Xpe as CatalogIcon,j7 as CaveatsSection,Tn as ChainIcon,A4 as ChallengesIcon,K7 as ChallengesSection,BO as ChapterCard,Fme as CheckCircleIcon,Br as Checkbox,Bme as ChevronLeft,Tt as Chip,r1e as CircleIcon,Lt as CircularProgress,mn as ClickAwayListener,Ed as CloneIcon,df as CloseBtn,St as CloseIcon,u1e as CloudSavedIcon,oi as CodeFormatter,lM as CollaboratorAvatarGroup,oa as Collapse,T4 as CollapseAllIcon,Ms as CollapsibleSection,Bve as CollapsibleSectionFormatter,S4 as ColumnIcon,Id as CommunityClassIcon,c1e as ComponentIcon,g1e as ConfigurationIcon,uM as ConnectionChip,Pie as Container,Fve as ContainerFormatter,B$e as ContentFilterIcon,sa as CopyIcon,y1e as CopyLinkIcon,MB as CreateDesignModal,w1e as CreateNewIcon,O1e as CredentialIcon,LE as CrossCircleIcon,kie as CssBaseline,ff as CustomCatalogCard,NM as CustomColumnVisibilityControl,zM as CustomDialog,HM as CustomImage,ce as CustomTooltip,UCe as CustomizedStepper,l4 as DARK_BLUE_GRAY,nx as DARK_PRIMARY_COLOR,upe as DARK_SHADE_GRAY,$l as DARK_SLATE_GRAY,xn as DARK_TEAL,C9 as DATA_VALIDATOR_COMMANDS,T9 as DATA_VALIDATOR_EVENTS,Ppe as DELETED,Ipe as DISCONNECTED,Ope as DISCOVERED,_1e as DashboardIcon,Rp as DataTableEllipsisMenu,Gme as DatabaseIcon,jV as DeferEvents,ro as DeleteIcon,Ld as DeploymentsIcon,Jbe as DesignCard,Na as DesignIcon,$we as DesignTable,V1e as DesignerBottomRightIcon,BE as DetailIcon,BE as DetailsIcon,aa as Dialog,xd as DialogActions,Hl as DialogContent,Vl as DialogContentText,Ul as DialogTitle,na as Divider,Yme as DocumentIcon,Qme as DoneAllIcon,Jme as DoneIcon,ua as DownloadIcon,rce as DragIcon,G3 as Drawer,Od as DropDownIcon,X0 as EERIE_BLACK,Ba as EditIcon,KM as EmptyState,MM as EmptyStateCard,P4 as EmptyStyleIcon,Sn as EnvironmentIcon,Jwe as EnvironmentTable,zr as ErrorBoundary,VYe as ErrorIcon,yw as EventBus,v4 as ExpandAllIcon,sce as ExportIcon,fce as ExternalLinkIcon,ule as Fab,zd as FacebookIcon,mle as Fade,m6 as Fallback,$1e as FavoriteIcon,bL as FeedbackButton,cx as FeedbackIcon,cce as FileIcon,w4 as FilterIcon,b2 as FlipCard,wu as FormControl,Wl as FormControlLabel,z3 as FormGroup,Rle as FormLabel,v2 as FormatId,a6 as FormattedTime,Ad as FullScreenIcon,E4 as FullScreenIconExit,fpe as GRAY,rx as GRAY97,mpe as GREEN,hce as GetStartedIcon,_be as GetStartedModal,Du as GithubIcon,I4 as GoogleIcon,_le as Grid,me as Grid2,k4 as GridViewIcon,Nle as Grow,yce as HelpOutlinedIcon,Vle as Hidden,Ape as IGNORED,tt as IconButton,M4 as IdeaIcon,R4 as InfoCircleIcon,CZe as InfoIcon,L4 as InfoOutlined,tl as InfoTooltip,Kle as Input,hd as InputAdornment,ese as InputBase,ql as InputLabel,tF as InputSearchField,sme as InsertChartIcon,D4 as InviteUserIcon,lS as JourneyModal,We as KEPPEL,Ni as KanvasIcon,Yde as KeppelApplicationIcon,dme as KeppelRectangleIcon,gme as KeppelTallRoundedRectangleIcon,Wf as KeyValueInRow,Nd as KubernetesIcon,G6 as L5DeleteIcon,Gn as L5EditIcon,dpe as LIGHT_GRAY,Vw as LIGHT_TEAL,ppe as LIMED_SPRUCE,kve as LabelFormatter,N4 as LeaderBoardIcon,ZL as LearningCard,lF as LearningContent,B4 as LearningIcon,$7 as LearningSection,H4 as LeftAngledArrowIcon,Bd as LeftArrowIcon,Eye as LeftPanel,nse as LinearProgress,xo as Link,jd as LinkedinIcon,Hr as List,Ive as ListFormatter,Tr as ListItem,gd as ListItemAvatar,ki as ListItemButton,Fa as ListItemIcon,j3 as ListItemSecondaryAction,qt as ListItemText,Lse as ListSubheader,Hd as LockIcon,Ql as LogoutIcon,_pe as MAINTAINENCE,t4 as MIDNIGHT_BLACK,Mve as MemoryUsage,Wce as MendeleyIcon,Gl as Menu,Gce as MenuIcon,pt as MenuItem,Td as MenuList,V4 as MesheryFilterIcon,$ce as MesheryOperator,Z7 as MetricsDisplay,vr as Modal,br as ModalBody,b8e as ModalButtonDanger,Ya as ModalButtonPrimary,Za as ModalButtonSecondary,y8e as ModalButtonTertiary,S2 as ModalCard,jr as ModalFooter,T2 as ModalStyledHeader,U4 as MoveFileIcon,yd as NOT_FOUND,$se as NativeSelect,mF as NavigationNavbar,Qse as NoSsr,cF as Note,N5 as NumberState,Uve as NumberStateFormatter,Zl as ONYX_BLACK,kd as OfficialClassIcon,W4 as OpenFileIcon,Vd as OpenIcon,Ud as OpenInNewIcon,BF as OpenLeaderBoardButton,Wve as OperatorDataFormatter,F5 as OperatorDynamicFormatter,hx as OrgIcon,Xde as OutlinedApplicationIcon,a1e as OutlinedCircleIcon,F0e as OutlinedCloudSavingIcon,M1e as OutlinedDataObjectIcon,N1e as OutlinedDeployIcon,g4 as OutlinedDoubleChevronIcon,ome as OutlinedHierarchicalIcon,Eu as OutlinedInput,Ome as OutlinedMeshIcon,l0e as OutlinedPatternIcon,f0e as OutlinedPatternSwitchIcon,c0e as OutlinedPodIcon,mme as OutlinedRectangleIcon,y0e as OutlinedRedoIcon,P0e as OutlinedResetIcon,M0e as OutlinedRingIcon,W0e as OutlinedScreenshotIcon,j0e as OutlinedSettingsIcon,rxe as OutlinedStarIcon,Sme as OutlinedTallRoundedRectangleIcon,wxe as OutlinedUndeployIcon,Oxe as OutlinedUndoIcon,_xe as OutlinedValidateIcon,Lxe as OutlinedVisibilityOffIcon,Fxe as OutlinedVisibilityOnIcon,Bxe as OutlinedVisualizerSwitcherIcon,tS as OverviewSection,Hw as PATTERNS_BLUE,Bw as PRIMARY_COLOR,I2 as PROMPT_VARIANTS,iue as Pagination,oue as PaginationItem,a0e as PanToolIcon,vF as Panel,cn as Paper,X7 as PatternInfo,WF as PerformersSection,NF as PerformersSectionButton,FUt as PersistedStateProvider,yn as PersonIcon,Bbe as PlainCard,h0e as PollIcon,K3 as Popover,Sd as Popper,Ep as PopperListener,_p as PrimaryActionButtons,D6 as PromptComponent,Wd as PublicIcon,Ha as PublishIcon,G4 as QuestionIcon,sU as REDUX_COMMANDS,uU as REDUX_EVENTS,AIe as REEE,Rpe as REGISTERED,xU as RTK_EVENTS,yue as Radio,Rue as RadioGroup,frt as ReadIcon,xme as RectangleIcon,R5 as RelatedDesigns,w0e as RemoveDoneIcon,O0e as RemoveIcon,sf as RenderMarkdown,vo as ResponsiveDataTable,qd as RightArrowIcon,Gye as RightPanel,yme as RoundedRectangleShapeIcon,vme as RoundedTriangleShapeIcon,Mi as SAFFRON,n4 as SILVER_GRAY,o4 as SLATE_BLUE,j4 as SMPIcon,H0e as SaveAsIcon,qn as SearchBar,Gd as SearchIcon,Nve as SecretFormatter,ia as Select,KF as SetupPreReq,bn as ShareIcon,Z0e as ShareLineIcon,Yve as ShareModal,Ype as SistentThemeProvider,h4 as SistentThemeProviderWithoutBaseLine,$3 as Skeleton,Hue as Slide,que as Slider,Kue as Snackbar,J7 as SocialSharePopper,Que as SpeedDial,Xue as SpeedDialAction,Cd as Stack,dH as StatusFormatter,ffe as Step,cfe as StepButton,mfe as StepConnector,xfe as StepContent,hfe as StepIcon,pfe as StepLabel,dfe as Stepper,$F as StyledChapter,eF as StyledChartDialog,m2 as StyledDialogActions,c2 as StyledDialogContent,h2 as StyledDialogTitle,i2 as StyledMarkdown,H2 as StyledSearchBar,K4 as SuccessIcon,Sfe as SvgIcon,wfe as Switch,J0 as TEAL_BLUE,aN as TOC,iN as TOCLearning,a4 as TRANSPARENT_WHITE,Pfe as Tab,Mfe as Table,Nfe as TableBody,Ufe as TableCell,zfe as TableContainer,Lve as TableDataFormatter,Yfe as TableHead,Jfe as TableRow,ode as TableSortLabel,$4 as TableViewIcon,lye as TableVisibilityControl,sde as Tabs,sxe as TachographDigitalIcon,fxe as TachometerIcon,Eme as TallRoundedRectangleIcon,aS as TeamSearchField,D2 as TeamTable,Yp as TeamTableConfiguration,Bu as TeamsIcon,Y7 as TechnologySection,rN as Terminal,cxe as TerminalIcon,Vr as TextField,Dve as TextWithLinkFormatter,OKe as ThemeProvider,hde as ToggleButton,yde as ToggleButtonGroup,Rde as Toolbar,hxe as ToolkitIcon,Gt as Tooltip,Ht as TooltipIcon,Txe as TouchAppIcon,Qp as TransferList,yxe as TriangleIcon,Xl as TropyIcon,Kd as TwitterIcon,G as Typography,Y6e as UniversalFilter,eS as UserInfo,P5 as UserInviteModal,uN as UserSearchField,p7 as UserShareSearch,Sf as UserTableAvatarInfo,L2 as UsersTable,Md as VerificationClassIcon,Z4 as ViewIcon,V7 as ViewSwitch,ul as VisibilityChipMenu,mt as WHITE,ax as WHITESMOKE,Vxe as WarningIcon,hve as WorkspaceActivityCard,oEe as WorkspaceCard,mEe as WorkspaceContentMoveModal,hEe as WorkspaceEnvironmentSelection,Yd as WorkspaceIcon,SEe as WorkspaceRecentActivityModal,bEe as WorkspaceTeamsTable,REe as WorkspaceViewsTable,qV as XSTATE_DEBUG_EVENT,i4 as YELLOW_SEA,Nde as Zoom,Re as accentGrey,hpe as actionIcon,AKe as alpha,Mpe as anakiwa,ype as black,Ot as blue,Epe as buttonDelete,ku as buttonDisabled,ix as carribean,Cpe as casper,ie as charcoal,oye as colViews,Hde as colors,la as common,R3t as componentIcon,kpe as connected,Eve as convertToReadableUnit,owe as createAndEditEnvironmentSchema,nwe as createAndEditEnvironmentUiSchema,swe as createAndEditWorkspaceSchema,fwe as createAndEditWorkspaceUiSchema,Rkt as createCanShow,aye as createDesignColumns,H7 as createDesignsColumnsConfig,PKe as createTheme,xpe as cultured,p4 as darkModePalette,Tpe as darkSlateGray,Yl as darkTeal,YV as dataValidatorCommands,S9 as dataValidatorEvents,ZV as dataValidatorMachine,WV as deadLetter,S5 as designColumnsColViews,Spe as eerieBlack,wve as extractPodVolumnTables,UV as forwardToActors,eU as fromWorkerfiedActor,DEe as getCollaborationConfig,Ss as getFormatDate,Ts as getFullFormattedTime,ol as getRelativeTime,MEe as getWebSocketProtocol,qwe as grafanaCredentialSUiSchema,Uwe as grafanaCredentialSchema,vd as gray,to as green,pwe as helmConnectionSchema,cwe as helmConnectionUiSchema,Xve as helpAndSupportModalSchema,ewe as helpAndSupportModalUiSchema,gwe as importDesignSchema,Swe as importDesignUiSchema,ywe as importFilterSchema,vwe as importFilterUiSchema,Rwe as importModelSchema,Awe as importModelUiSchema,OHt as initReduxPersist,bpe as jungleGreen,zt as keppel,_Ke as keyframes,Mwe as kubernetesCredentialSchema,Dwe as kubernetesCredentialUiSchema,d4 as lightModePalette,IKe as lighten,lx as notificationColors,yHe as outlinedInputClasses,cpe as patternsBlue,zw as primaryColor,Nwe as prometheusCredentialSchema,Hwe as prometheusCredentialUiSchema,H5 as publishCatalogItemSchema,Iwe as publishCatalogItemUiSchema,rt as red,tx as redDelete,dU as reduxActor,fU as reduxCommands,jS as reduxEvents,D1 as reply,gU as rtkQueryActor,cU as rtkQueryActorCommands,b9 as rtkQueryActorEvents,To as saffron,XV as selectIsValidating,QV as selectValidationResults,HV as sendToActor,VV as sendToActors,u4 as slateGray,Lpe as socialIcons,Ns as splitCamelCaseString,cUe as stepConnectorClasses,L as styled,yHt as subscribeToRoom,gpe as tabMenu,vpe as tableBackgroundHover,lqe as tooltipClasses,m4 as typography,bHt as unSubscribeRoom,Go as updateVisibleColumns,gS as useDesignAssignment,SS as useEnvironmentAssignment,TE as useMediaQuery,S8e as useModal,GL as useNotificationHandler,Gve as useResourceCleanData,CHt as useRoomActivity,WCe as useStepper,bS as useTeamAssignment,te as useTheme,wS as useViewAssignment,qo as useWindowDimensions,f4 as white,QM as withErrorBoundary,XM as withSuppressedErrorBoundary,aU as workerfyActor,Or as yellow};
|
|
97
|
+
name: envoy.filters.http.wasm`,"x-rjsf-grid-area":"12"},uploadType:{title:"Select the Upload Method",enum:["File Upload","URL Upload"],default:"File Upload","x-rjsf-grid-area":"6"}},allOf:[{if:{properties:{uploadType:{const:"File Upload"}}},then:{title:"via File",properties:{file:{type:"string",format:"file",description:"Browse the filter file from your file system","x-rjsf-grid-area":"12"}},required:["file"]}},{if:{properties:{uploadType:{const:"URL Upload"}}},then:{title:"via URL",properties:{url:{type:"string",title:"URL",format:"uri",description:"raw url of the filter file, example: https://raw.github.com/...","x-rjsf-grid-area":"12"}},required:["url"]}}]},ywe=Cwe;var bwe={"ui:order":["name","uploadType","config","file","url"]},vwe=bwe;import{ModelDefinitionV1Beta1OpenApiSchema as wwe}from"@layer5/schemas";var ni=wwe.components.schemas,Ewe={type:"object",required:["uploadType"],properties:{uploadType:{type:ni.ImportRequest.properties.uploadType.type,title:"Upload method",enum:["File Import","URL Import","CSV Import"],enumDescriptions:ni.ImportRequest.properties.uploadType.enumDescriptions,default:"Select the Upload Method","x-rjsf-grid-area":"12",description:ni.ImportRequest.properties.uploadType.description}},allOf:[{if:{properties:{uploadType:{const:"File Import"}}},then:{properties:{file:{type:ni.ImportBody.oneOf[0].properties.modelFile?.type,format:ni.ImportBody.oneOf[0].properties.modelFile?.format,description:ni.ImportBody.oneOf[0].properties.modelFile?.description,"x-rjsf-grid-area":"12"}},required:["file"]}},{if:{properties:{uploadType:{const:"URL Import"}}},then:{properties:{url:{type:ni.ImportBody.oneOf[1].properties.url?.type,format:ni.ImportBody.oneOf[1].properties.url?.format,title:"URL",description:ni.ImportBody.oneOf[1].properties.url?.description,"x-rjsf-grid-area":"12",disabled:!0}},required:["url"]}}]},Rwe=Ewe;var Owe={uploadType:{"ui:widget":"radio"},"ui:order":["uploadType","file","url","csv"]},Awe=Owe;var Pwe={type:"object",properties:{compatibility:{type:"array",title:"Technology",items:{enum:["kubernetes"],type:"string"},uniqueItems:!0,minItems:1,description:"A list of technologies included in or implicated by this design; a list of relevant technology tags.","x-rjsf-grid-area":6},pattern_caveats:{type:"string",title:"Caveats and Considerations",description:"Specific stipulations to consider and known behaviors to be aware of when using this design.",format:"textarea","x-rjsf-grid-area":12,"x-encode-in-uri":!0},pattern_info:{type:"string",title:"Description",description:"Purpose of the design along with its intended and unintended uses.",format:"textarea","x-rjsf-grid-area":12,"x-encode-in-uri":!0},type:{type:"string",title:"Type",enum:["Deployment","Observability","Resiliency","Scaling","Security","Traffic-management","Troubleshooting","Workloads"],default:"Deployment",description:"Categorization of the type of design or operational flow depicted in this design.","x-rjsf-grid-area":6}},required:["compatibility","pattern_caveats","pattern_info","type"]},H5=Pwe;var _we={"ui:order":["type","compatibility","pattern_info","pattern_caveats"]},Iwe=_we;var kwe={type:"object",title:"Kubernetes",properties:{credentialName:{title:"Credential Name",type:"string",description:"Name of your credential"},secret:{type:"object",title:"Credential Secret",description:"Credential secret for the Kubernetes cluster",properties:{clusterName:{type:"string",title:"Cluster Name",description:"Name of the Kubernetes cluster"},clusterServerURL:{type:"string",title:"Server URL",description:"URL of the Kubernetes cluster"},auth:{type:"object",title:"Auth",description:"Kubernetes cluster authentication",properties:{clusterUserName:{type:"string",title:"User Name",description:"Name of the Kubernetes cluster user"},clusterToken:{type:"string",title:"Token",description:"Token of the Kubernetes cluster user"},clusterClientCertificateData:{type:"string",title:"Client Certificate Data",description:"Certificate data of the Kubernetes cluster"},clusterClientKeyData:{type:"string",title:"Client Key Data",description:"Client Key data of the Kubernetes cluster"},clusterCertificateAuthorityData:{type:"string",title:"Certificate Authority Data",description:"Certificate Authority data of the Kubernetes cluster"}},required:["clusterUserName","clusterToken","clusterClientCertificateData","clusterClientKeyData","clusterCertificateAuthorityData"]}},required:["clusterName","clusterServerURL"]}},required:["credentialName"]},Mwe=kwe;var Lwe={},Dwe=Lwe;var Fwe={type:"object",title:"Prometheus",properties:{credentialName:{title:"Credential Name",type:"string",description:"Name of your credential"},secret:{type:"object",title:"Credential Secret",description:"Credential secret for the Prometheus instance",properties:{prometheusURL:{type:"string",title:"URL",description:"URL of the Prometheus instance"}},required:["prometheusURL"]}},required:["credentialName"]},Nwe=Fwe;var Bwe={},Hwe=Bwe;var Vwe={type:"object",title:"Grafana",properties:{credentialName:{title:"Credential Name",type:"string",description:"Name of your credential"},secret:{type:"object",title:"Credential Secret",description:"Credential secret for the Grafana instance",properties:{grafanaURL:{type:"string",title:"URL",description:"URL of the Grafana instance"},grafanaAPIKey:{type:"string",title:"API Key",description:"API Key for the Grafana instance"}},required:["grafanaURL","grafanaAPIKey"]}},required:["credentialName"]},Uwe=Vwe;var Wwe={},qwe=Wwe;import{useEffect as _H,useState as yl}from"react";var Gwe=({workspaceId:e,useGetDesignsOfWorkspaceQuery:t,useAssignDesignToWorkspaceMutation:r,useUnassignDesignFromWorkspaceMutation:o,isDesignsVisible:a})=>{let[n,i]=yl(0),[l,s]=yl([]),u=25,[f,d]=yl(0),[p,m]=yl([]),[x,h]=yl(!1),[g,T]=yl(!0),[w,E]=yl(!0),[I,D]=yl([]),{data:C}=t(tr({workspaceId:e,page:n,pagesize:u,filter:'{"assigned":false}'}),{skip:g||!a}),{data:b}=t(tr({workspaceId:e,page:f,pagesize:u}),{skip:g||!a}),[A]=r(),[B]=o();_H(()=>{let F=C?.designs?C.designs:[];s(V=>[...V,...F])},[C]),_H(()=>{let F=b?.designs?b.designs:[];m(V=>[...V,...F])},[b]);let P=F=>{F?.stopPropagation(),h(!0),T(!1)},Q=F=>{F?.stopPropagation(),h(!1),T(!0)},Z=()=>{let F=Math.ceil(Number(C?.total_count)/u);n<F-1&&i(V=>V+1)},H=()=>{let F=Math.ceil(Number(b?.total_count)/u);f<F-1&&d(V=>V+1)},q=F=>{let V=p.map(R=>R.id),y=F.map(R=>R.id),J=y.filter(R=>!V.includes(R)),oe=V.filter(R=>!y.includes(R));return{addedDesignsIds:J,removedDesignsIds:oe}};return{data:l,workspaceData:p,assignModal:x,handleAssignModal:P,handleAssignModalClose:Q,handleAssignablePage:Z,handleAssignedPage:H,handleAssign:async()=>{let{addedDesignsIds:F,removedDesignsIds:V}=q(I);F.map(y=>A({workspaceId:e,designId:y}).unwrap()),V.map(y=>B({workspaceId:e,designId:y}).unwrap()),s([]),m([]),i(0),d(0),Q()},handleAssignData:F=>{let{addedDesignsIds:V,removedDesignsIds:y}=q(F);E(!(V.length>0||y.length>0)),D(F)},isActivityOccurred:F=>{let{addedDesignsIds:V,removedDesignsIds:y}=q(F);return V.length>0||y.length>0},disableTransferButton:w,assignedItems:I}},gS=Gwe;import{Fragment as Ywe,jsx as on,jsxs as IH}from"react/jsx-runtime";var Kwe=({workspaceId:e,workspaceName:t,meshModelModelsData:r,handleBulkUnpublishModal:o,handleBulkWorkspaceDesignDeleteModal:a,handleClone:n,handleCopyUrl:i,handlePublish:l,handleDownload:s,getDownloadUrl:u,handleShowDetails:f,handleUnpublishModal:d,handleWorkspaceDesignDeleteModal:p,publishModalHandler:m,isCopyLinkAllowed:x,isDeleteAllowed:h,isDownloadAllowed:g,isPublishAllowed:T,isUnpublishAllowed:w,useAssignDesignToWorkspaceMutation:E,useUnassignDesignFromWorkspaceMutation:I,GenericRJSFModal:D,isAssignAllowed:C,isRemoveAllowed:b,useGetWorkspaceDesignsQuery:A,handleOpenInDesigner:B,showPlaygroundActions:P=!0,handleVisibilityChange:Q,currentUserId:Z})=>{let[H,q]=bl({open:!1,pattern:{}}),N=jwe(null),[M,k]=bl(""),[F,V]=bl(0),[y,J]=bl(10),[oe,R]=bl("updated_at desc"),[we,De]=bl(!1),{data:Et,refetch:dr}=A({workspaceId:e,page:F,pagesize:y,search:M,order:oe,expandUser:!0},{skip:!e}),Ve=mr=>{let Aa=m(mr);q({open:!0,pattern:Aa})},pr=te(),Rt=H7({handleDeleteModal:mr=>()=>p(mr.id,e),handlePublishModal:Ve,handleUnpublishModal:mr=>()=>d(mr,N),handleCopyUrl:i,handleClone:n,handleShowDetails:f,handleDownload:s,getDownloadUrl:u,isCopyLinkAllowed:x,isDeleteAllowed:h,isDownloadAllowed:g,isPublishAllowed:T,isUnpublishAllowed:w,isFromWorkspaceTable:!0,isRemoveAllowed:b,theme:pr,handleOpenInDesigner:B,showPlaygroundActions:P,handleVisibilityChange:Q,currentUserId:Z,refetchWorkspaceDesigns:dr}),[Yt,z]=bl({rjsfSchema:{},uiSchema:{}}),{width:Zt}=qo(),[$,fe]=bl(()=>{let mr=Go(S5,Zt),Aa={};return Rt.forEach(Al=>{Aa[Al.name]=mr[Al.name]}),Aa});zwe(()=>{(async()=>{let Aa=TS.uniq(r?.models?.map(M1=>M1.display_name)),Al=TS.set(TS.cloneDeep(H5),"properties.compatibility.items.enum",Aa);z({rjsfSchema:Al,uiSchema:H5})})()},[r]);let pe=gS({workspaceId:e,useAssignDesignToWorkspaceMutation:E,useUnassignDesignFromWorkspaceMutation:I,useGetDesignsOfWorkspaceQuery:A,isDesignsVisible:C||b}),or=on(sl,{style:{padding:"1rem"},children:IH(K,{style:{marginRight:"0rem",width:"100%",justifyContent:"end",display:"flex",alignItems:"center"},children:[on(qn,{onSearch:mr=>{k(mr)},onClear:()=>{k("")},expanded:we,setExpanded:De,placeholder:"Search designs..."}),on(ga,{columns:Rt,customToolsProps:{columnVisibility:$,setColumnVisibility:fe},id:"catalog-table"}),on(Gn,{onClick:pe.handleAssignModal,disabled:!C,title:"Assign Designs"})]})});return IH(Ywe,{children:[or,on(N7,{patterns:Et?.designs||[],totalCount:Et?.total_count,sortOrder:oe,setSortOrder:R,pageSize:y,setPageSize:J,page:F,setPage:V,columnVisibility:$,colViews:S5,columns:Rt,handleBulkpatternsDataUnpublishModal:o,handleBulkDeleteModal:(mr,Aa)=>a(mr,Aa,t,e),filter:"my-designs",setSearch:k}),on(ai,{open:pe.assignModal,onClose:pe.handleAssignModalClose,title:`Assign Designs to ${t}`,headerIcon:on(Na,{height:"40",width:"40"}),name:"Designs",assignableData:pe.data,handleAssignedData:pe.handleAssignData,originalAssignedData:pe.workspaceData,emptyStateIcon:on(Na,{height:"5rem",width:"5rem",secondaryFill:"#808080"}),handleAssignablePage:pe.handleAssignablePage,handleAssignedPage:pe.handleAssignedPage,originalLeftCount:pe.data?.length||0,originalRightCount:pe.assignedItems?.length||0,onAssign:pe.handleAssign,disableTransfer:pe.disableTransferButton,helpText:`Assign Designs to ${t}`,isAssignAllowed:C,isRemoveAllowed:b,showViews:!1}),on(D,{open:H.open,handleClose:()=>q({open:!1,pattern:{}}),schema:Yt?.rjsfSchema,uiSchema:Yt?.uiSchema,handleSubmit:mr=>l(H,mr),title:`Publish ${H?.pattern?.name}`,buttonTitle:"Publish"}),on(Tf,{ref:N})]})},$we=Kwe;import{useState as wl}from"react";import{useEffect as kH,useState as vl}from"react";var Zwe=({workspaceId:e,useGetEnvironmentsOfWorkspaceQuery:t,useAssignEnvironmentToWorkspaceMutation:r,useUnassignEnvironmentFromWorkspaceMutation:o,isEnvironmentsVisible:a})=>{let[n,i]=vl(0),[l,s]=vl([]),u=25,[f,d]=vl(0),[p,m]=vl([]),[x,h]=vl(!1),[g,T]=vl(!0),[w,E]=vl(!0),[I,D]=vl([]),{data:C}=t(tr({workspaceId:e,page:n,pagesize:u,filter:'{"assigned":false}'}),{skip:g||!a}),{data:b}=t(tr({workspaceId:e,page:f,pagesize:u}),{skip:g||!a}),[A]=r(),[B]=o();kH(()=>{let k=C?.environments?C.environments:[];s(F=>[...F,...k])},[C]),kH(()=>{let k=b?.environments?b.environments:[];m(F=>[...F,...k])},[b]);let P=k=>{k?.stopPropagation(),h(!0),T(!1)},Q=k=>{k?.stopPropagation(),h(!1),T(!0)},Z=()=>{let k=Math.ceil(Number(C?.total_count)/u);n<k-1&&i(F=>F+1)},H=()=>{let k=Math.ceil(Number(b?.total_count)/u);f<k-1&&d(F=>F+1)},q=k=>{let F=p.map(oe=>oe.id),V=k.map(oe=>oe.id),y=V.filter(oe=>!F.includes(oe)),J=F.filter(oe=>!V.includes(oe));return{addedEnvironmentsIds:y,removedEnvironmentsIds:J}};return{data:l,workspaceData:p,assignModal:x,handleAssignModal:P,handleAssignModalClose:Q,handleAssignablePage:Z,handleAssignedPage:H,handleAssign:async()=>{let{addedEnvironmentsIds:k,removedEnvironmentsIds:F}=q(I);k.map(V=>A({workspaceId:e,environmentId:V}).unwrap()),F.map(V=>B({workspaceId:e,environmentId:V}).unwrap()),s([]),m([]),i(0),d(0),Q()},handleAssignData:k=>{let{addedEnvironmentsIds:F,removedEnvironmentsIds:V}=q(k);F.length>0||V.length>0?E(!1):E(!0),D(k)},disableTransferButton:w,assignedItems:I}},SS=Zwe;import{Fragment as eEe,jsx as Ut,jsxs as V5}from"react/jsx-runtime";var MH=[["id","na"],["name","xs"],["description","m"],["organization_id","l"],["created_at","na"],["updated_at","xl"],["actions","xs"]],Qwe=({value:e})=>Ut("div",{style:{position:"relative",height:"20px"},children:Ut(N6,{children:Ut(F6,{children:Ut(ce,{title:e,placement:"top-start",children:Ut("span",{style:{cursor:"pointer"},children:e})})})})}),Xwe=({workspaceId:e,workspaceName:t,isRemoveAllowed:r,useGetEnvironmentsOfWorkspaceQuery:o,useUnassignEnvironmentFromWorkspaceMutation:a,useAssignEnvironmentToWorkspaceMutation:n,isAssignAllowed:i})=>{let[l,s]=wl(!1),u=N=>{N.stopPropagation(),s(!l)},[f,d]=wl(""),[p,m]=wl(!1),[x,h]=wl(0),[g,T]=wl(10),[w,E]=wl("updated_at desc"),{data:I}=o({workspaceId:e,page:x,pageSize:g,search:f,order:w}),{width:D}=qo(),C=te(),[b]=a(),A=[{name:"id",label:"ID",options:{filter:!1,customBodyRender:N=>Ut(zo,{value:N,maxLength:10})}},{name:"name",label:"Name",options:{filter:!1,sort:!0,searchable:!0,customBodyRender:N=>Ut(zo,{value:N,maxLength:10})}},{name:"organization_id",label:"Organization ID",options:{filter:!1,sort:!1,searchable:!1}},{name:"description",label:"Description",options:{filter:!1,sort:!0,searchable:!0,customBodyRender:N=>Ut(Qwe,{value:N})}},{name:"created_at",label:"Created At",options:{filter:!1,sort:!0,searchable:!0,setCellHeaderProps:()=>({align:"center"})}},{name:"updated_at",label:"Updated At",options:{filter:!1,sort:!0,searchable:!0,setCellHeaderProps:()=>({align:"center"})}},{name:"actions",label:"Actions",options:{filter:!1,sort:!1,searchable:!1,customBodyRender:(N,M)=>Ut(lo,{disabled:!r,children:Ut(Ht,{id:`delete_team-${M.rowIndex}`,title:"Remove Environment",onClick:()=>{r&&b({workspaceId:e,environmentId:M.rowData[0]})},iconType:"delete",children:Ut(ro,{height:28,width:28,fill:C.palette.icon.default})})})}}],B=SS({workspaceId:e,useGetEnvironmentsOfWorkspaceQuery:o,useUnassignEnvironmentFromWorkspaceMutation:a,useAssignEnvironmentToWorkspaceMutation:n,isEnvironmentsVisible:i||r}),[P,Q]=wl(()=>{let N=Go(MH,D),M={};return A.forEach(k=>{M[k.name]=N[k.name]}),M}),Z={filter:!1,responsive:"standard",selectableRows:"none",count:I?.total_count,rowsPerPage:g,page:x,elevation:0,sortOrder:{name:w.split(" ")[0],direction:w.split(" ")[1]},serverSide:!0,onTableChange:(N,M)=>{let k=M.announceText?M.announceText.split(" : "):[],F="";switch(M.activeColumn&&(F=`${A[M.activeColumn].name} desc`),N){case"changePage":h(M.page);break;case"changeRowsPerPage":T(M.rowsPerPage);break;case"search":d(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!==w&&E(F);break}}},[H,q]=wl(A);return V5(eEe,{children:[V5(N3,{expanded:l,onChange:u,style:{margin:0},children:[Ut(H3,{expandIcon:Ut(So,{}),sx:{backgroundColor:"background.paper"},children:V5(sl,{children:[Ut(G,{variant:"body1",fontWeight:"bold",children:"Assigned Environments"}),V5(k2,{children:[Ut(qn,{onSearch:N=>{d(N)},onClear:()=>{d("")},expanded:p,setExpanded:m,placeholder:"Search workspaces..."}),Ut(ga,{columns:A,customToolsProps:{columnVisibility:P,setColumnVisibility:Q},id:"environments-table"}),Ut(Gn,{onClick:B.handleAssignModal,disabled:!i,title:"Assign Environments"})]})]})}),Ut(B3,{style:{padding:0},children:Ut(vo,{columns:A,data:I?.environments,options:Z,colViews:MH,tableCols:H,updateCols:q,columnVisibility:P})})]}),Ut(ai,{open:B.assignModal,onClose:B.handleAssignModalClose,title:`Assign Environments to ${t}`,headerIcon:Ut(Sn,{height:"40",width:"40",fill:"white"}),name:"Environments",assignableData:B.data,handleAssignedData:B.handleAssignData,originalAssignedData:B.workspaceData,emptyStateIcon:Ut(Sn,{height:"5rem",width:"5rem",fill:"#808080"}),handleAssignablePage:B.handleAssignablePage,handleAssignedPage:B.handleAssignedPage,originalLeftCount:B.data?.length||0,originalRightCount:I?.total_count||0,onAssign:B.handleAssign,disableTransfer:B.disableTransferButton,helpText:`Assign Environments to ${t}`,isAssignAllowed:i,isRemoveAllowed:r})]})},Jwe=Xwe;import{Grid2 as CS,useTheme as tEe}from"@mui/material";import{jsx as _o,jsxs as U5}from"react/jsx-runtime";var _1=({title:e,count:t,onAssign:r,disabled:o})=>{let a=te();return _o(U6,{onClick:r,disabled:o,color:"primary",sx:{color:a.palette.background.neutral?.default,backgroundColor:a.palette.background.constant?.table,margin:"0px 0px 10px",padding:"20px 10px","&:hover":{backgroundColor:a.palette.background.constant?.table,boxShadow:"none"}},children:U5(me,{children:[_o(q6,{textColor:a.palette.text.default,children:t}),_o(W6,{textColor:a.palette.text.default,children:e}),_o(ig,{sx:{position:"absolute",top:"10px",right:"10px"}})]})})},ii=({title:e,count:t,disabled:r=!0})=>_o(U6,{disabled:r,color:"primary",sx:{boxShadow:"none"},children:U5(me,{children:[_o(q6,{children:t}),_o(W6,{children:e})]})}),LH=({title:e,name:t,date:r})=>{let o=te();return U5(fD,{children:[U5(me,{sx:{display:"flex",maxHeight:"140px"},size:10,children:[_o(G,{sx:{fontSize:14,textAlign:"left",color:o.palette.background.constant?.white,maxWidth:"max-content",overflowX:"hidden"},children:e}),_o(G,{sx:{marginInline:"0.5rem",fontStyle:"italic",color:o.palette.background.brand?.default,textWrap:"nowrap"},children:t})]}),_o(me,{sx:{display:"flex",justifyContent:"flex-end"},size:2,children:_o(ce,{title:r?Ts(r):"",placement:"top",children:_o("div",{children:_o(G,{sx:{fontSize:14,fontStyle:"italic",color:`${o.palette.text.disabled}`,paddingRight:"12px",textAlign:"end"},children:r?ol(r):"-"})})})})]})};import{jsx as ke,jsxs as mo}from"react/jsx-runtime";var rEe=({workspaceDetails:e,onDelete:t,onEdit:r,onSelect:o,selectedWorkspaces:a,onAssignTeam:n,onAssignEnvironment:i,onAssignDesign:l,recentActivities:s,onFlip:u,onFlipBack:f,loadingEvents:d,teamsOfWorkspaceCount:p,environmentsOfWorkspaceCount:m,designAndViewOfWorkspaceCount:x,isEnvironmentAllowed:h,isTeamAllowed:g,isDesignAllowed:T,isViewAllowed:w,isDeleteWorkspaceAllowed:E,isEditWorkspaceAllowed:I,isViewsVisible:D,isDesignsVisible:C,isEnvironmentsVisible:b,isTeamsVisible:A})=>{let B=e.deleted_at.Valid;return mo(b2,{disableFlip:!!a.includes(e.id),padding:"0",children:[ke(aEe,{onFlip:u,name:e?.name,description:e?.description,environmentsCount:m,onAssignEnvironment:i,teamsCount:p,onAssignTeam:n,designAndViewOfWorkspaceCount:x,onAssignDesign:l,isEnvironmentAllowed:h,isTeamAllowed:g,isDesignAllowed:T,isViewAllowed:w,isViewsVisible:D,isDesignsVisible:C,isEnvironmentsVisible:b,isTeamsVisible:A}),ke(nEe,{onFlipBack:f,onSelect:o,name:e?.name,onEdit:r,onDelete:t,selectedWorkspaces:a,workspaceId:e?.id,loadingEvents:d,recentActivities:s,updatedDate:e?.updated_at,createdDate:e?.created_at,deleted:B,isDeleteWorkspaceAllowed:E,isEditWorkspaceAllowed:I})]})},oEe=rEe,aEe=({onFlip:e,name:t,description:r,environmentsCount:o,onAssignEnvironment:a,teamsCount:n,onAssignTeam:i,designAndViewOfWorkspaceCount:l,onAssignDesign:s,isEnvironmentAllowed:u,isTeamAllowed:f,isDesignAllowed:d,isViewAllowed:p,isViewsVisible:m,isDesignsVisible:x,isEnvironmentsVisible:h,isTeamsVisible:g})=>mo(cD,{elevation:2,onClick:e,children:[ke(dD,{children:ke(B6,{variant:"body2",onClick:T=>T.stopPropagation(),children:t})}),ke(CS,{children:r?ke(uD,{onClick:T=>T.stopPropagation(),sx:{maxHeight:"105px"},children:r}):ke(V6,{onClick:T=>T.stopPropagation(),children:"No description"})}),mo(CS,{sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},pt:{xs:1,md:2},gap:1},children:[h&&ke(jp,{children:mo(zp,{onClick:T=>T.stopPropagation(),children:[u?ke(_1,{title:"Environments",count:o,onAssign:a,disabled:!u}):ke(ii,{title:"Environment",count:o}),ke(ii,{title:"Connections",count:0})]})}),g&&ke(jp,{children:mo(zp,{onClick:T=>T.stopPropagation(),children:[f?ke(_1,{title:"Teams",count:n,onAssign:i,disabled:!f}):ke(ii,{title:"Teams",count:n}),ke(ii,{title:"Users",count:0})]})}),x&&!m&&ke(jp,{children:mo(zp,{onClick:T=>T.stopPropagation(),children:[d?ke(_1,{title:"Designs",count:l,onAssign:s,disabled:!d}):ke(ii,{title:"Designs",count:l}),ke(ii,{title:"Deploys",count:0})]})}),x&&m&&ke(jp,{children:mo(zp,{onClick:T=>T.stopPropagation(),children:[d&&p?ke(_1,{title:"Designs/Views",count:l,onAssign:s,disabled:!(d&&p)}):ke(ii,{title:"Designs/Views",count:l}),ke(ii,{title:"Deploys",count:0})]})})]})]}),nEe=({onFlipBack:e,onSelect:t,name:r,onEdit:o,onDelete:a,selectedWorkspaces:n,workspaceId:i,loadingEvents:l,recentActivities:s,updatedDate:u,createdDate:f,deleted:d,isDeleteWorkspaceAllowed:p,isEditWorkspaceAllowed:m})=>{let x=n?.includes(i),h=x?!0:!m,g=x?!0:!p,T=tEe();return mo(mD,{elevation:2,onClick:e,children:[mo(xD,{size:12,children:[mo(hD,{size:6,children:[ke(sD,{onClick:w=>w.stopPropagation(),onChange:t,disabled:d?!0:!p}),ke(B6,{sx:{color:T.palette.background.constant?.white},variant:"body2",onClick:w=>w.stopPropagation(),children:r})]}),mo(gD,{size:6,children:[ke(Gn,{onClick:o,disabled:h,style:{fill:T.palette.background.constant?.white},bulk:!0}),ke(G6,{onClick:a,style:{fill:T.palette.background.constant?.white},disabled:g,bulk:!0})]})]}),ke(CS,{sx:{display:"flex",alignItems:"center",flexDirection:"row"},children:ke(TD,{variant:"body2",children:"Recent Activity"})}),ke(SD,{children:l?ke(md,{sx:{zIndex:"2010"},open:l,children:ke(Lt,{color:"inherit",style:{color:T.palette.background.constant?.white}})}):s?.map((w,E)=>ke(LH,{title:w?.description,name:w?.first_name,date:w?.created_at},E))}),mo(CD,{size:12,children:[ke(z6,{size:6,children:mo(H6,{onClick:w=>w.stopPropagation(),children:["Updated At: ",ol(u)]})}),ke(z6,{size:6,children:mo(H6,{onClick:w=>w.stopPropagation(),children:["Created At: ",ol(f)]})})]})]})};import{useContext as iEe,useState as lEe}from"react";import{Fragment as cEe,jsx as Io,jsxs as I1}from"react/jsx-runtime";var sEe=L(ki)({borderRadius:"8px"}),uEe=L(G)(({theme:e})=>({marginBottom:"1rem",color:e.palette.text.secondary})),fEe=L("div")(({theme:e})=>({padding:"1rem",textAlign:"center",color:e.palette.text.secondary,border:`1px dashed ${e.palette.border.strong}`,borderRadius:"8px",margin:"1rem 0",display:"flex",flexDirection:"column",alignItems:"center",gap:"1rem"})),dEe=(e,t,r)=>{let o=r?.length||1,a=t?.name||o,n=e===Au.DESIGN?"Design":"View";return`Move ${a} ${n}${o>1?"s":""}`},pEe=({workspaceContentMoveModal:e,setWorkspaceContentMoveModal:t,currentWorkspace:r,type:o,selectedContent:a,refetch:n,useGetWorkspacesQuery:i,isCreateWorkspaceAllowed:l,isMoveDesignAllowed:s,isMoveViewAllowed:u,assignDesignToWorkspace:f,assignViewToWorkspace:d,WorkspaceModalContext:p,notify:m,router:x,currentOrgId:h})=>{let{setMultiSelectedContent:g,multiSelectedContent:T,closeModal:w}=iEe(p),{data:E,isLoading:I}=i({page:0,pagesize:"all",order:"updated_at desc",orgID:h},{skip:!h}),D=E?.workspaces?.filter(Q=>Q.id!==r.id),[C,b]=lEe(null),A=async()=>{t(!1);try{let Q=async H=>{await f({workspaceId:C.id,designId:H})},Z=async H=>{await d({workspaceId:C.id,viewId:H})};Au.DESIGN===o?(T.length>0&&(await Promise.all(T.map(H=>Q(H.id))),g([])),a&&await Q(a.id)):(T.length>0&&(await Promise.all(T.map(H=>Z(H.id))),g([])),a&&await Z(a.id)),n&&n(),m({message:`Successfully moved ${o===Au.DESIGN?"design":"view"}${T.length>1?"s":""} to ${C.name}`,event_type:Z3.SUCCESS})}catch{m({message:`Failed to move ${o===Au.DESIGN?"design":"view"}. Please try again.`,event_type:Z3.ERROR})}},B=()=>{w(),t(!1),x.push("/management/workspaces")},P=o===Au.DESIGN?s:u;return I1(vr,{open:e,headerIcon:Io(W4,{}),closeModal:()=>t(!1),title:dEe(o,a,T),children:[I1(br,{children:[I1(uEe,{children:["Current Workspace: ",Io("strong",{children:r.name})]}),Io(na,{}),Io(K,{display:"flex",flexDirection:"column",marginTop:"1rem",children:I?Io(Lt,{size:24}):D?.length?I1(cEe,{children:[Io(G,{style:{marginBottom:"0.5rem"},children:"Select destination workspace"}),Io(Hr,{children:D.map(Q=>Io(sEe,{selected:C?.id===Q.id,onClick:()=>P&&b(Q),disabled:!P,children:Io(qt,{primary:Q.name})},Q.id))})]}):I1(fEe,{children:[Io(G,{children:"No other workspaces available to move content to."}),Io(Ae,{variant:"contained",color:"primary",onClick:B,disabled:!l,children:"Create Workspace"})]})})]}),Io(jr,{variant:"filled",children:Io(_p,{primaryText:"Move",secondaryText:"Cancel",primaryButtonProps:{onClick:A,disabled:I||!C||!D?.length||!P},secondaryButtonProps:{onClick:()=>t(!1)}})})]})},mEe=pEe;import{jsx as W5}from"react/jsx-runtime";var xEe=({workspaceId:e,useAssignEnvironmentToWorkspaceMutation:t,useGetEnvironmentsOfWorkspaceQuery:r,useUnassignEnvironmentFromWorkspaceMutation:o,useNotificationHandlers:a,isAssignedEnvironmentAllowed:n})=>{let{handleSuccess:i,handleError:l}=a(),{data:s,isLoading:u}=r({workspaceId:e,page:0,pagesize:"all",filter:'{"assigned":false}'}),{data:f,isLoading:d}=r({workspaceId:e,page:0,pagesize:"all"}),p=s?.environments?.map(w=>({label:w.name,value:w.id}))||[],m=f?.environments?.map(w=>({label:w.name,value:w.id}))||[],[x]=t(),[h]=o(),g=(w,E)=>{let I=w.map(C=>C.value),D=E.map(C=>C.value);if(D.length>0){D.forEach(C=>{let b=f?.environments?.find(A=>A.id===C)?.name||"Unknown";h({workspaceId:e,environmentId:C}).unwrap().then(()=>i(`Environment "${b}" unassigned`)).catch(A=>l(`Environment "${b}" Unassign Error: ${A?.data}`))});return}if(I.length>0){I.forEach(C=>{if(m.find(A=>A.value===C))return;let b=s?.environments?.find(A=>A.id===C)?.name||"Unknown";x({workspaceId:e,environmentId:C}).unwrap().then(()=>i(`Environment "${b}" assigned`)).catch(A=>l(`Environment "${b}" Assign Error: ${A?.data}`))});return}};return W5("div",{onClick:w=>w.stopPropagation(),style:{marginBlock:"1rem",maxWidth:"15rem"},children:W5(V3,{multiple:!0,options:p,value:m,loading:u||d,onChange:(w,E)=>{let I=m||[],D=E||[],C=D.filter(A=>!I.some(B=>B.value===A.value)),b=I.filter(A=>!D.some(B=>B.value===A.value));g(C,b)},size:"small",disableCloseOnSelect:!0,getOptionLabel:w=>w.label,renderTags:w=>w.map(E=>W5(Tt,{label:E.label,size:"small",style:{margin:"0.15rem",borderRadius:"0.2rem"},onDelete:()=>{h({workspaceId:e,environmentId:E.value})}},E.value)),renderInput:w=>W5(Vr,{...w,placeholder:"Assigned Environment"}),popupIcon:null,disabled:!n})})},hEe=xEe;import{useCallback as gEe,useEffect as DH,useRef as FH,useState as yS}from"react";import{Fragment as q5,jsx as ht,jsxs as zf}from"react/jsx-runtime";var TEe=({workspaceId:e,workspaceName:t,open:r,handleClose:o,useGetEventsOfWorkspaceQuery:a})=>{let[n,i]=yS(0),l=25,[s,u]=yS([]),[f,d]=yS(!0),p=FH(null),m=FH(null),{data:x,isLoading:h,isFetching:g}=a({workspaceId:e,page:n,pagesize:l},{skip:!r});DH(()=>{x&&(u(n===0?x.data:I=>[...I,...x.data]),d((x.page+1)*l<x.total_count))},[x,n,l]),DH(()=>{r&&(i(0),u([]),d(!0))},[r]);let T=gEe(I=>{h||g||(p.current&&p.current.disconnect(),p.current=new IntersectionObserver(D=>{D[0].isIntersecting&&f&&i(C=>C+1)}),I&&p.current.observe(I))},[h,g,f]),w=te(),E=I=>{switch(["design","view","environment","team"].find(b=>I.includes(b))){case"design":return ht(Na,{...Co});case"view":return ht(Z4,{...Co});case"environment":return ht(Sn,{...Co,fill:w.palette.icon.default});case"team":return ht(Bu,{...Co,primaryFill:w.palette.icon.default,fill:""});default:return ht(Yd,{...Co,fill:w.palette.icon.default})}};return ht(q5,{children:zf(vr,{title:`"${t}" Recent Activity`,open:r,closeModal:o,headerIcon:ht(CO,{}),maxWidth:"md",children:[ht(br,{style:{maxHeight:"40rem"},children:n===0&&h?ht(K,{display:"flex",justifyContent:"center",padding:4,children:ht(Lt,{})}):s.length>0?zf(q5,{children:[s.map((I,D)=>zf(Hr,{sx:{width:"100%",padding:"0"},children:[zf(Tr,{style:{padding:"0"},alignItems:"flex-start",secondaryAction:zf(K,{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:.2,children:[E(I.description),ht(ce,{title:Ts(I.created_at),children:ht("div",{children:zf(G,{variant:"caption",style:{display:"flex",alignItems:"center",fontStyle:"italic"},children:["Updated At: ",Ss(I.created_at)]})})})]}),children:[ht(gd,{style:{minWidth:"0",marginTop:"0.75rem",marginRight:"1rem"},children:ht(Mt,{alt:I.first_name,src:I.avatar_url,sx:Wu})}),ht(qt,{primary:I.first_name+" "+I.last_name,secondary:ht(q5,{children:I.description})})]}),ht(na,{})]},`${I.created_at}-${I.description}-${D}`)),ht("div",{ref:f?T:null,style:{height:"20px",width:"100%"}}),g&&ht(K,{display:"flex",justifyContent:"center",padding:2,ref:m,children:ht(Lt,{size:24})}),!f&&s.length>0&&ht(G,{variant:"body2",color:"textSecondary",style:{textAlign:"center"},children:"No more activities to load"})]}):ht(K,{display:"flex",justifyContent:"center",padding:4,children:ht(G,{variant:"body2",color:"textSecondary",children:"No recent activity found for this workspace."})})}),ht(jr,{variant:"filled",children:ht(q5,{})})]})})},SEe=TEe;import{useState as jf}from"react";import{useEffect as NH,useState as El}from"react";var CEe=({workspaceId:e,useGetTeamsOfWorkspaceQuery:t,useAssignTeamToWorkspaceMutation:r,useUnassignTeamFromWorkspaceMutation:o,isTeamsVisible:a})=>{let[n,i]=El(0),[l,s]=El([]),u=25,[f,d]=El(0),[p,m]=El([]),[x,h]=El(!1),[g,T]=El(!0),[w]=r(),[E]=o(),[I,D]=El(!0),[C,b]=El([]),{data:A}=t(tr({workspaceId:e,page:n,pagesize:u,filter:'{"assigned":false}'}),{skip:g||!a}),{data:B}=t(tr({workspaceId:e,page:f,pagesize:u}),{skip:g||!a});NH(()=>{let k=A?.teams?A.teams:[];s(F=>[...F,...k])},[A]),NH(()=>{let k=B?.teams?B.teams:[];m(F=>[...F,...k])},[B]);let P=k=>{k?.stopPropagation(),h(!0),T(!1)},Q=k=>{k?.stopPropagation(),h(!1),T(!0)},Z=()=>{let k=Math.ceil(Number(A?.total_count)/u);n<k-1&&i(F=>F+1)},H=()=>{let k=Math.ceil(Number(B?.total_count)/u);f<k-1&&d(F=>F+1)},q=()=>{let{addedTeamsIds:k,removedTeamsIds:F}=N(C);k.map(V=>w({workspaceId:e,teamId:V}).unwrap()),F.map(V=>E({workspaceId:e,teamId:V}).unwrap()),s([]),m([]),Q()},N=k=>{let F=p.map(oe=>oe.id),V=k.map(oe=>oe.id),y=V.filter(oe=>!F.includes(oe)),J=F.filter(oe=>!V.includes(oe));return{addedTeamsIds:y,removedTeamsIds:J}};return{data:l,workspaceData:p,assignModal:x,handleAssignModal:P,handleAssignModalClose:Q,handleAssignablePage:Z,handleAssignedPage:H,handleAssign:q,handleAssignData:k=>{let{addedTeamsIds:F,removedTeamsIds:V}=N(k);F.length>0||V.length>0?D(!1):D(!0),b(k)},disableTransferButton:I,assignedItems:C}},bS=CEe;import{Fragment as vEe,jsx as Rl,jsxs as vS}from"react/jsx-runtime";var yEe=({workspaceId:e,workspaceName:t,useGetTeamsOfWorkspaceQuery:r,useAssignTeamToWorkspaceMutation:o,useUnassignTeamFromWorkspaceMutation:a,isEditTeamAllowed:n,isAssignTeamAllowed:i,isRemoveTeamFromWorkspaceAllowed:l,isLeaveTeamAllowed:s,isDeleteTeamAllowed:u,org_id:f,useGetUsersForOrgQuery:d,useNotificationHandlers:p,useRemoveUserFromTeamMutation:m})=>{let[x,h]=jf(0),[g,T]=jf(10),[w,E]=jf("updated_at desc"),[I,D]=jf(!1),[C,b]=jf(""),[A,B]=jf(!1),{data:P}=r({workspaceId:e,page:x,pageSize:g,order:w,search:C}),[Q]=a(),Z=bS({workspaceId:e,useGetTeamsOfWorkspaceQuery:r,useAssignTeamToWorkspaceMutation:o,useUnassignTeamFromWorkspaceMutation:a,isTeamsVisible:i||l}),H=M=>{Q({workspaceId:e,teamId:M}).unwrap()},q=Yp({teams:P?.teams,count:P?.total_count,page:x,pageSize:g,setPage:h,setPageSize:T,sortOrder:w,setSortOrder:E,bulkSelect:I,setBulkSelect:D,handleRemoveTeamFromWorkspace:H,handleTeamView:()=>{},handleDeleteTeam:()=>{},handleleaveTeam:()=>{},teamId:"",workspace:!0,isEditTeamAllowed:n,isLeaveTeamAllowed:s,isRemoveTeamFromWorkspaceAllowed:l,isDeleteTeamAllowed:u,setSearch:b}),N=te();return vS(vEe,{children:[vS(sl,{children:[Rl(Ae,{variant:"contained",startIcon:Rl(yO,{}),onClick:Z.handleAssignModal,style:{margin:"1rem"},children:"Assign Teams"}),vS(k2,{children:[Rl(qn,{onSearch:M=>{b(M)},onClear:()=>{b("")},expanded:A,setExpanded:B,placeholder:"Search workspaces..."}),Rl(ga,{columns:q.columns,customToolsProps:{columnVisibility:q.columnVisibility,setColumnVisibility:q.setColumnVisibility},id:"teams-table"})]})]}),Rl(D2,{teams:P?.teams,tableOptions:q.tableOptions,columnVisibility:q.columnVisibility,colViews:q.colViews,tableCols:q.tableCols,updateCols:q.updateCols,columns:q.columns,isRemoveFromTeamAllowed:l,org_id:f,useGetUsersForOrgQuery:d,useNotificationHandlers:p,useRemoveUserFromTeamMutation:m}),Rl(ai,{open:Z.assignModal,onClose:Z.handleAssignModalClose,title:`Assign Teams to ${t}`,headerIcon:Rl(Bu,{height:"40",width:"40",primaryFill:N.palette.common.white,fill:N.palette.icon.disabled}),name:"Teams",assignableData:Z.data,handleAssignedData:Z.handleAssignData,originalAssignedData:Z.workspaceData,emptyStateIcon:Rl(Bu,{height:"5rem",width:"5rem",primaryFill:"#808080",secondaryFill:N.palette.icon.disabled,fill:"#808080"}),handleAssignablePage:Z.handleAssignablePage,handleAssignedPage:Z.handleAssignedPage,originalLeftCount:Z.data?.length||0,originalRightCount:P?.total_count||0,onAssign:Z.handleAssign,disableTransfer:Z.disableTransferButton,helpText:`Assign Teams to ${t}`,isAssignAllowed:i,isRemoveAllowed:l})]})},bEe=yEe;import{useState as Bs}from"react";import{useEffect as BH,useState as Ol}from"react";var wEe=({workspaceId:e,useGetViewsOfWorkspaceQuery:t,useAssignViewToWorkspaceMutation:r,useUnassignViewFromWorkspaceMutation:o,isViewsVisible:a})=>{let[n,i]=Ol(0),[l,s]=Ol([]),u=25,[f,d]=Ol(0),[p,m]=Ol([]),[x,h]=Ol(!1),[g,T]=Ol(!0),[w,E]=Ol(!0),[I,D]=Ol([]),{data:C}=t(tr({workspaceId:e,page:n,pagesize:u,filter:'{"assigned":false}'}),{skip:g||!a}),{data:b}=t(tr({workspaceId:e,page:f,pagesize:u}),{skip:g||!a}),[A]=r(),[B]=o();BH(()=>{let F=C?.views?C.views:[];s(V=>[...V,...F])},[C]),BH(()=>{let F=b?.views?b.views:[];m(V=>[...V,...F])},[b]);let P=F=>{F?.stopPropagation(),h(!0),T(!1)},Q=F=>{F?.stopPropagation(),h(!1),T(!0)},Z=()=>{let F=Math.ceil(Number(C?.total_count)/u);n<F-1&&i(V=>V+1)},H=()=>{let F=Math.ceil(Number(b?.total_count)/u);f<F-1&&d(V=>V+1)},q=F=>{let V=p.map(R=>R.id),y=F.map(R=>R.id),J=y.filter(R=>!V.includes(R)),oe=V.filter(R=>!y.includes(R));return{addedviewsIds:J,removedviewsIds:oe}};return{data:l,workspaceData:p,assignModal:x,handleAssignModal:P,handleAssignModalClose:Q,handleAssignablePage:Z,handleAssignedPage:H,handleAssign:async()=>{let{addedviewsIds:F,removedviewsIds:V}=q(I);F.map(y=>A({workspaceId:e,viewId:y}).unwrap()),V.map(y=>B({workspaceId:e,viewId:y}).unwrap()),s([]),m([]),i(0),d(0),Q()},isActivityOccurred:F=>{let{addedviewsIds:V,removedviewsIds:y}=q(F);return V.length>0||y.length>0},handleAssignData:F=>{let{addedviewsIds:V,removedviewsIds:y}=q(F);E(!(V.length>0||y.length>0)),D(F)},disableTransferButton:w,assignedItems:I}},wS=wEe;import{jsx as Qr,jsxs as ES}from"react/jsx-runtime";var HH=[["id","na"],["avatar_url","xs"],["email","na"],["name","xs"],["first_name","na"],["last_name","na"],["organization_id","xl"],["created_at","na"],["updated_at","xl"],["visibility","l"],["actions","xs"]];var EEe=({workspaceId:e,workspaceName:t,isRemoveAllowed:r,useGetViewsOfWorkspaceQuery:o,useUnassignViewFromWorkspaceMutation:a,useAssignViewToWorkspaceMutation:n,isAssignAllowed:i,handleShowDetails:l,handleVisibilityChange:s,currentUserId:u})=>{let f=te(),[d,p]=Bs(""),[m,x]=Bs(!1),[h,g]=Bs(0),[T,w]=Bs(10),[E,I]=Bs("updated_at desc"),{data:D,refetch:C}=o({workspaceId:e,page:h,pagesize:T,search:d,order:E,expandUser:!0},{skip:!e}),{width:b}=qo(),[A]=a(),B=[{name:"id",label:"ID",options:{filter:!1,customBodyRender:M=>Qr(zo,{value:M,maxLength:10})}},{name:"name",label:"Name",options:{filter:!1,sort:!0,searchable:!0,customBodyRender:(M,k)=>{let F=k.tableData[k.rowIndex]?.id??"",V=k.tableData[k.rowIndex]?.name??"";return Qr(Ff,{onClick:()=>l(F,V,u1.VIEW),children:M})}}},{name:"avatar_url",label:"Author",options:{filter:!1,sort:!1,searchable:!1,customBodyRender:(M,k)=>Qr(K,{sx:{"& > img":{mr:2,flexShrink:0}},children:Qr(Sf,{userId:((V,y,J)=>{let oe=J.findIndex(R=>R.name===y);return V[oe]})(k.rowData,"user_id",B),userName:`${k.rowData[4]} ${k.rowData[5]}`,userEmail:k.rowData[3],profileUrl:M})})}},{name:"email",label:"Email",options:{filter:!1,sort:!0,searchable:!0}},{name:"first_name",label:"First Name",options:{filter:!1,sort:!0,searchable:!0}},{name:"last_name",label:"Last Name",options:{filter:!1,sort:!0,searchable:!0}},{name:"created_at",label:"Created At",options:{filter:!1,sort:!0,searchable:!0,setCellHeaderProps:()=>({align:"center"})}},{name:"updated_at",label:"Updated At",options:{filter:!1,sort:!0,searchable:!0,setCellHeaderProps:()=>({align:"center"})}},{name:"visibility",label:"Visibility",options:{filter:!1,sort:!1,searchable:!0,customBodyRender:(M,k)=>{let F=k.rowIndex,V=k.tableData[F]?.id,y=k.tableData[F]?.visibility,oe=k.tableData[F]?.user_id===u,R=y!==ba.PUBLISHED&&oe;return Qr(ul,{value:M,onChange:we=>{s&&(s(V,we),C())},enabled:R,options:[[ba.PUBLIC,Xd],[ba.PRIVATE,Qd]]})}}},{name:"actions",label:"Actions",options:{filter:!1,sort:!1,searchable:!1,customBodyRender:(M,k)=>Qr(lo,{disabled:!r,children:ES(Ht,{id:`delete_view-${k.rowIndex}`,title:"Move View",onClick:()=>{r&&A({workspaceId:e,viewId:k.rowData[0]})},iconType:"delete",children:[Qr(RO,{style:{color:f?.palette.icon.default}})," "]})})}}],P=wS({workspaceId:e,useGetViewsOfWorkspaceQuery:o,useUnassignViewFromWorkspaceMutation:a,useAssignViewToWorkspaceMutation:n,isViewsVisible:i||r}),[Q,Z]=Bs(()=>{let M=Go(HH,b),k={};return B.forEach(F=>{k[F.name]=M[F.name]}),k}),H={filter:!1,responsive:"standard",selectableRows:"none",count:D?.total_count,rowsPerPage:T,serverSide:!0,page:h,elevation:0,sortOrder:{name:E.split(" ")[0],direction:E.split(" ")[1]},onTableChange:(M,k)=>{let F=k.announceText?k.announceText.split(" : "):[],V="";switch(k.activeColumn&&(V=`${B[k.activeColumn].name} desc`),M){case"changePage":g(k.page);break;case"changeRowsPerPage":w(k.rowsPerPage);break;case"sort":F.length==2&&(F[1]==="ascending"?V=`${B[k.activeColumn].name} asc`:V=`${B[k.activeColumn].name} desc`),V!==E&&I(V);break}}},[q,N]=Bs(B);return ES(zr,{children:[Qr(sl,{style:{padding:"1rem"},children:ES(K,{style:{marginRight:"0rem",width:"100%",justifyContent:"end",display:"flex",alignItems:"center"},children:[Qr(qn,{onSearch:M=>{p(M)},onClear:()=>{p("")},expanded:m,setExpanded:x,placeholder:"Search workspaces..."}),Qr(ga,{columns:B,customToolsProps:{columnVisibility:Q,setColumnVisibility:Z},id:"views-table"}),Qr(Gn,{onClick:P.handleAssignModal,disabled:!i,title:"Assign Views"})]})}),Qr(vo,{columns:B,data:D?.views,options:H,colViews:HH,tableCols:q,updateCols:N,columnVisibility:Q}),Qr(ai,{open:P.assignModal,onClose:P.handleAssignModalClose,title:`Assign Views to ${t}`,headerIcon:Qr(Sn,{height:"40",width:"40",fill:"white"}),name:"Views",assignableData:P.data,handleAssignedData:P.handleAssignData,originalAssignedData:P.workspaceData,emptyStateIcon:Qr(Sn,{height:"5rem",width:"5rem",fill:"#808080"}),handleAssignablePage:P.handleAssignablePage,handleAssignedPage:P.handleAssignedPage,originalLeftCount:P.data?.length||0,originalRightCount:D?.total_count||0,onAssign:P.handleAssign,disableTransfer:P.disableTransferButton,helpText:`Assign Views to ${t}`,isAssignAllowed:i,isRemoveAllowed:r})]})},REe=EEe;import{useEffect as OEe,useRef as AEe,useState as PEe}from"react";var _Ee={type:"subscribe_to_rooms_activity"},IEe="user_map",kEe=e=>e===Lo?Y3:e===Pw?_w:e;function MEe(){return window.location.protocol==="https:"?"wss://":"ws://"}var LEe=e=>{let t=new URL(e),r=kEe(t.host);return`${r===Y3?"wss://":MEe()}${r}/collaboration`},DEe=async({provider_url:e,getUserProfile:t,getUserAccessToken:r})=>{let{data:o}=await t(),a=["user_info","user_left","user_joined","user_map"],{data:n}=await r(),i=async()=>(await r()).data;return{signalingUrl:[LEe(e)],user:o,authToken:n,refreshAuthToken:i,websocketCallbacks:a,peerOpts:{config:{iceServers:Aw}}}},FEe=async(e,t,r,o,a)=>{if(!r||!o||!a){console.warn("Missing required parameters for subscription");return}try{let n=await DEe({provider_url:r,getUserProfile:o,getUserAccessToken:a}),i=new WebSocket(n.signalingUrl[0],["auth",n.authToken]);e.current=i,i.addEventListener("open",()=>{console.log("[RoomActivity] connected to room activity"),i.readyState===WebSocket.OPEN&&i.send(JSON.stringify(_Ee))}),i.addEventListener("message",l=>{console.log("[RoomActivity] new message",l);let s=JSON.parse(l.data);s.type===IEe&&s.user_map&&t(s.user_map)}),i.addEventListener("close",()=>{console.log("[RoomActivity] subscription to room activity closed")}),i.addEventListener("error",l=>{console.error("[RoomActivity] error in room activity subscription",l)})}catch(n){console.error("[RoomActivity] Failed to subscribe to room activity:",n)}},CHt=({provider_url:e,getUserProfile:t,getUserAccessToken:r}={})=>{let[o,a]=PEe({}),n=AEe(null);return OEe(()=>{e&&t&&r&&FEe(n,a,e,t,r);let i=n.current;return()=>{i&&(console.log("closing websocket",i),i.close())}},[e,t,r]),[o,n]},yHt=(e,t)=>{e.readyState===WebSocket.OPEN&&e.send(JSON.stringify({type:"subscribe",topic:t}))},bHt=(e,t)=>{e.send(JSON.stringify({type:"unsubscribe",topic:t}))};import RS from"lodash";var VH=Symbol("INVALID_REDUCER_PATH"),UH="REHYDRATE_STATE_ACTION",NEe=(e,t)=>({type:UH,payload:{reducerPath:e,inflatedState:t}}),BEe=(e,t)=>{if(t.type===UH){let r=RS.cloneDeep(e);return RS.set(r,t.payload.reducerPath.split("/"),t.payload.inflatedState),r}return e},OHt=e=>({persistMiddleware:a=>n=>i=>{let l=n(i),s=e[i.type];if(s){let u=a.getState();s.forEach(f=>{let d=f.split("/"),p=RS.get(u,d,VH);if(p===VH)throw new Error(`Reducer Path to Persist Is Invalid: ${f}`);localStorage.setItem(f,JSON.stringify(p))})}return l},createPersistEnhancedReducer:a=>(n,i)=>{let l=BEe(n,i);return a(l,i)},loadPersistedState:()=>a=>{Object.values(e).forEach(n=>{n.forEach(i=>{let l=localStorage.getItem(i);try{l&&(l=JSON.parse(l),a(NEe(i,l)))}catch{console.error(`Error rehydrating state for reducer ${i}`,l)}})})}});import{useEffect as IRe,useState as RV}from"react";var wV=Nr(G5()),EV=Nr(ZH());import{unstable_batchedUpdates as QH}from"react-dom";function rRe(e){e()}var oRe=rRe,XH=e=>oRe=e;import{useCallback as GHt,useDebugValue as zHt,useRef as jHt}from"react";import{useContext as nRe}from"react";import*as k1 from"react";var JH=Symbol.for("react-redux-context"),eV=typeof globalThis<"u"?globalThis:{};function aRe(){var e;if(!k1.createContext)return{};let t=(e=eV[JH])!=null?e:eV[JH]=new Map,r=t.get(k1.createContext);return r||(r=k1.createContext(null),process.env.NODE_ENV!=="production"&&(r.displayName="ReactRedux"),t.set(k1.createContext,r)),r}var Qo=aRe();function j5(e=Qo){return function(){let r=nRe(e);if(process.env.NODE_ENV!=="production"&&!r)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return r}}var _S=j5();var K5=()=>{throw new Error("uSES not initialized!")};var iRe=K5,tV=e=>{iRe=e};var PRe=Nr(pV()),CV=Nr(hV());import*as $f from"react";import*as SV from"react";var NVt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";var _Re=K5,yV=e=>{_Re=e};import*as bV from"react";function c9(e=Qo){let t=e===Qo?_S:j5(e);return function(){let{store:o}=t();return o}}var VS=c9();function vV(e=Qo){let t=e===Qo?VS:c9(e);return function(){return t().dispatch}}var US=vV();tV(EV.useSyncExternalStoreWithSelector);yV(wV.useSyncExternalStore);XH(QH);import{Fragment as kRe,jsx as MRe}from"react/jsx-runtime";var FUt=({children:e,loadPersistedState:t})=>{let[r,o]=RV(!0),[a,n]=RV(null),i=US();return IRe(()=>{if(r){try{i(t())}catch(l){n(l)}o(!1)}},[r,i,t]),a&&console.error("Error Loading Persisted State",a),r?null:MRe(kRe,{children:e})};export{r4 as ALABASTER_WHITE,ox as ALICE_BLUE,Uw as ANAKIWA,N3 as Accordion,Dae as AccordionActions,B3 as AccordionDetails,H3 as AccordionSummary,tg as ActionButton,Xye as ActionButtonCard,q7 as ActionButtons,qde as AddCircleIcon,Q3 as AddIcon,Kae as Alert,Qae as AlertTitle,rne as AppBar,jde as ApplicationIcon,tpe as ArrowCompressIcon,ope as ArrowExpandIcon,ai as AssignmentModal,s1 as AuthorCell,V3 as Autocomplete,Mt as Avatar,U3 as AvatarGroup,gx as BBChart,nr as BLACK,md as Backdrop,bne as Badge,xTe as BasicMarkdown,npe as BellIcon,SO as BookmarkNotification,K as Box,Ine as Breadcrumbs,lpe as BusIcon,Ae as Button,cd as ButtonGroup,go as CARIBBEAN_GREEN,Q0 as CASPER,Ur as CHARCOAL,_u as CHINESE_SILVER,jw as CONNECTED,Li as CULTURED,O4 as CalenderIcon,gr as Card,Ii as CardActions,Da as CardContent,eie as CardHeader,nie as CardMedia,kme as CaretDownIcon,Uu as Carousel,VD as CatalogCard,uf as CatalogCardDesignLogo,N7 as CatalogDesignsTable,vhe as CatalogFilter,JD as CatalogFilterSidebar,Xpe as CatalogIcon,j7 as CaveatsSection,Tn as ChainIcon,A4 as ChallengesIcon,K7 as ChallengesSection,BO as ChapterCard,Fme as CheckCircleIcon,Br as Checkbox,Bme as ChevronLeft,Tt as Chip,r1e as CircleIcon,Lt as CircularProgress,mn as ClickAwayListener,Ed as CloneIcon,df as CloseBtn,St as CloseIcon,u1e as CloudSavedIcon,oi as CodeFormatter,lM as CollaboratorAvatarGroup,oa as Collapse,T4 as CollapseAllIcon,Ms as CollapsibleSection,Bve as CollapsibleSectionFormatter,S4 as ColumnIcon,Id as CommunityClassIcon,c1e as ComponentIcon,g1e as ConfigurationIcon,uM as ConnectionChip,Pie as Container,Fve as ContainerFormatter,B$e as ContentFilterIcon,sa as CopyIcon,y1e as CopyLinkIcon,MB as CreateDesignModal,w1e as CreateNewIcon,O1e as CredentialIcon,LE as CrossCircleIcon,kie as CssBaseline,ff as CustomCatalogCard,NM as CustomColumnVisibilityControl,zM as CustomDialog,HM as CustomImage,ce as CustomTooltip,UCe as CustomizedStepper,l4 as DARK_BLUE_GRAY,nx as DARK_PRIMARY_COLOR,upe as DARK_SHADE_GRAY,$l as DARK_SLATE_GRAY,xn as DARK_TEAL,C9 as DATA_VALIDATOR_COMMANDS,T9 as DATA_VALIDATOR_EVENTS,Ppe as DELETED,Ipe as DISCONNECTED,Ope as DISCOVERED,_1e as DashboardIcon,Rp as DataTableEllipsisMenu,Gme as DatabaseIcon,jV as DeferEvents,ro as DeleteIcon,Ld as DeploymentsIcon,Jbe as DesignCard,Na as DesignIcon,$we as DesignTable,V1e as DesignerBottomRightIcon,BE as DetailIcon,BE as DetailsIcon,aa as Dialog,xd as DialogActions,Hl as DialogContent,Vl as DialogContentText,Ul as DialogTitle,na as Divider,Yme as DocumentIcon,Qme as DoneAllIcon,Jme as DoneIcon,ua as DownloadIcon,rce as DragIcon,G3 as Drawer,Od as DropDownIcon,X0 as EERIE_BLACK,Ba as EditIcon,KM as EmptyState,MM as EmptyStateCard,P4 as EmptyStyleIcon,Sn as EnvironmentIcon,Jwe as EnvironmentTable,zr as ErrorBoundary,VYe as ErrorIcon,yw as EventBus,v4 as ExpandAllIcon,sce as ExportIcon,fce as ExternalLinkIcon,ule as Fab,zd as FacebookIcon,mle as Fade,m6 as Fallback,$1e as FavoriteIcon,bL as FeedbackButton,cx as FeedbackIcon,cce as FileIcon,w4 as FilterIcon,b2 as FlipCard,wu as FormControl,Wl as FormControlLabel,z3 as FormGroup,Rle as FormLabel,v2 as FormatId,a6 as FormattedTime,Ad as FullScreenIcon,E4 as FullScreenIconExit,fpe as GRAY,rx as GRAY97,mpe as GREEN,hce as GetStartedIcon,_be as GetStartedModal,Du as GithubIcon,I4 as GoogleIcon,_le as Grid,me as Grid2,k4 as GridViewIcon,Nle as Grow,yce as HelpOutlinedIcon,Vle as Hidden,Ape as IGNORED,tt as IconButton,M4 as IdeaIcon,R4 as InfoCircleIcon,CZe as InfoIcon,L4 as InfoOutlined,tl as InfoTooltip,Kle as Input,hd as InputAdornment,ese as InputBase,ql as InputLabel,tF as InputSearchField,sme as InsertChartIcon,D4 as InviteUserIcon,lS as JourneyModal,We as KEPPEL,Ni as KanvasIcon,Yde as KeppelApplicationIcon,dme as KeppelRectangleIcon,gme as KeppelTallRoundedRectangleIcon,Wf as KeyValueInRow,Nd as KubernetesIcon,G6 as L5DeleteIcon,Gn as L5EditIcon,dpe as LIGHT_GRAY,Vw as LIGHT_TEAL,ppe as LIMED_SPRUCE,kve as LabelFormatter,N4 as LeaderBoardIcon,ZL as LearningCard,lF as LearningContent,B4 as LearningIcon,$7 as LearningSection,H4 as LeftAngledArrowIcon,Bd as LeftArrowIcon,Eye as LeftPanel,nse as LinearProgress,xo as Link,jd as LinkedinIcon,Hr as List,Ive as ListFormatter,Tr as ListItem,gd as ListItemAvatar,ki as ListItemButton,Fa as ListItemIcon,j3 as ListItemSecondaryAction,qt as ListItemText,Lse as ListSubheader,Hd as LockIcon,Ql as LogoutIcon,_pe as MAINTAINENCE,t4 as MIDNIGHT_BLACK,Mve as MemoryUsage,Wce as MendeleyIcon,Gl as Menu,Gce as MenuIcon,pt as MenuItem,Td as MenuList,V4 as MesheryFilterIcon,$ce as MesheryOperator,Z7 as MetricsDisplay,vr as Modal,br as ModalBody,b8e as ModalButtonDanger,Ya as ModalButtonPrimary,Za as ModalButtonSecondary,y8e as ModalButtonTertiary,S2 as ModalCard,jr as ModalFooter,T2 as ModalStyledHeader,U4 as MoveFileIcon,yd as NOT_FOUND,$se as NativeSelect,mF as NavigationNavbar,Qse as NoSsr,cF as Note,N5 as NumberState,Uve as NumberStateFormatter,Zl as ONYX_BLACK,kd as OfficialClassIcon,W4 as OpenFileIcon,Vd as OpenIcon,Ud as OpenInNewIcon,BF as OpenLeaderBoardButton,Wve as OperatorDataFormatter,F5 as OperatorDynamicFormatter,hx as OrgIcon,Xde as OutlinedApplicationIcon,a1e as OutlinedCircleIcon,F0e as OutlinedCloudSavingIcon,M1e as OutlinedDataObjectIcon,N1e as OutlinedDeployIcon,g4 as OutlinedDoubleChevronIcon,ome as OutlinedHierarchicalIcon,Eu as OutlinedInput,Ome as OutlinedMeshIcon,l0e as OutlinedPatternIcon,f0e as OutlinedPatternSwitchIcon,c0e as OutlinedPodIcon,mme as OutlinedRectangleIcon,y0e as OutlinedRedoIcon,P0e as OutlinedResetIcon,M0e as OutlinedRingIcon,W0e as OutlinedScreenshotIcon,j0e as OutlinedSettingsIcon,rxe as OutlinedStarIcon,Sme as OutlinedTallRoundedRectangleIcon,wxe as OutlinedUndeployIcon,Oxe as OutlinedUndoIcon,_xe as OutlinedValidateIcon,Lxe as OutlinedVisibilityOffIcon,Fxe as OutlinedVisibilityOnIcon,Bxe as OutlinedVisualizerSwitcherIcon,tS as OverviewSection,Hw as PATTERNS_BLUE,Bw as PRIMARY_COLOR,I2 as PROMPT_VARIANTS,iue as Pagination,oue as PaginationItem,a0e as PanToolIcon,vF as Panel,cn as Paper,X7 as PatternInfo,WF as PerformersSection,NF as PerformersSectionButton,FUt as PersistedStateProvider,yn as PersonIcon,Bbe as PlainCard,h0e as PollIcon,K3 as Popover,Sd as Popper,Ep as PopperListener,_p as PrimaryActionButtons,D6 as PromptComponent,Wd as PublicIcon,Ha as PublishIcon,G4 as QuestionIcon,sU as REDUX_COMMANDS,uU as REDUX_EVENTS,AIe as REEE,Rpe as REGISTERED,xU as RTK_EVENTS,yue as Radio,Rue as RadioGroup,frt as ReadIcon,xme as RectangleIcon,R5 as RelatedDesigns,w0e as RemoveDoneIcon,O0e as RemoveIcon,sf as RenderMarkdown,vo as ResponsiveDataTable,qd as RightArrowIcon,Gye as RightPanel,yme as RoundedRectangleShapeIcon,vme as RoundedTriangleShapeIcon,Mi as SAFFRON,n4 as SILVER_GRAY,o4 as SLATE_BLUE,j4 as SMPIcon,H0e as SaveAsIcon,qn as SearchBar,Gd as SearchIcon,Nve as SecretFormatter,ia as Select,KF as SetupPreReq,bn as ShareIcon,Z0e as ShareLineIcon,Yve as ShareModal,Ype as SistentThemeProvider,h4 as SistentThemeProviderWithoutBaseLine,$3 as Skeleton,Hue as Slide,que as Slider,Kue as Snackbar,J7 as SocialSharePopper,Que as SpeedDial,Xue as SpeedDialAction,Cd as Stack,dH as StatusFormatter,ffe as Step,cfe as StepButton,mfe as StepConnector,xfe as StepContent,hfe as StepIcon,pfe as StepLabel,dfe as Stepper,$F as StyledChapter,eF as StyledChartDialog,m2 as StyledDialogActions,c2 as StyledDialogContent,h2 as StyledDialogTitle,i2 as StyledMarkdown,H2 as StyledSearchBar,K4 as SuccessIcon,Sfe as SvgIcon,wfe as Switch,J0 as TEAL_BLUE,aN as TOC,iN as TOCLearning,a4 as TRANSPARENT_WHITE,Pfe as Tab,Mfe as Table,Nfe as TableBody,Ufe as TableCell,zfe as TableContainer,Lve as TableDataFormatter,Yfe as TableHead,Jfe as TableRow,ode as TableSortLabel,$4 as TableViewIcon,lye as TableVisibilityControl,sde as Tabs,sxe as TachographDigitalIcon,fxe as TachometerIcon,Eme as TallRoundedRectangleIcon,aS as TeamSearchField,D2 as TeamTable,Yp as TeamTableConfiguration,Bu as TeamsIcon,Y7 as TechnologySection,rN as Terminal,cxe as TerminalIcon,Vr as TextField,Dve as TextWithLinkFormatter,OKe as ThemeProvider,hde as ToggleButton,yde as ToggleButtonGroup,Rde as Toolbar,hxe as ToolkitIcon,Gt as Tooltip,Ht as TooltipIcon,Txe as TouchAppIcon,Qp as TransferList,yxe as TriangleIcon,Xl as TropyIcon,Kd as TwitterIcon,G as Typography,Y6e as UniversalFilter,eS as UserInfo,P5 as UserInviteModal,uN as UserSearchField,p7 as UserShareSearch,Sf as UserTableAvatarInfo,L2 as UsersTable,Md as VerificationClassIcon,Z4 as ViewIcon,V7 as ViewSwitch,ul as VisibilityChipMenu,mt as WHITE,ax as WHITESMOKE,Vxe as WarningIcon,hve as WorkspaceActivityCard,oEe as WorkspaceCard,mEe as WorkspaceContentMoveModal,hEe as WorkspaceEnvironmentSelection,Yd as WorkspaceIcon,SEe as WorkspaceRecentActivityModal,bEe as WorkspaceTeamsTable,REe as WorkspaceViewsTable,qV as XSTATE_DEBUG_EVENT,i4 as YELLOW_SEA,Nde as Zoom,Re as accentGrey,hpe as actionIcon,AKe as alpha,Mpe as anakiwa,ype as black,Ot as blue,Epe as buttonDelete,ku as buttonDisabled,ix as carribean,Cpe as casper,ie as charcoal,oye as colViews,Hde as colors,la as common,R3t as componentIcon,kpe as connected,Eve as convertToReadableUnit,owe as createAndEditEnvironmentSchema,nwe as createAndEditEnvironmentUiSchema,swe as createAndEditWorkspaceSchema,fwe as createAndEditWorkspaceUiSchema,Rkt as createCanShow,aye as createDesignColumns,H7 as createDesignsColumnsConfig,PKe as createTheme,xpe as cultured,p4 as darkModePalette,Tpe as darkSlateGray,Yl as darkTeal,YV as dataValidatorCommands,S9 as dataValidatorEvents,ZV as dataValidatorMachine,WV as deadLetter,S5 as designColumnsColViews,Spe as eerieBlack,wve as extractPodVolumnTables,UV as forwardToActors,eU as fromWorkerfiedActor,DEe as getCollaborationConfig,Ss as getFormatDate,Ts as getFullFormattedTime,ol as getRelativeTime,MEe as getWebSocketProtocol,qwe as grafanaCredentialSUiSchema,Uwe as grafanaCredentialSchema,vd as gray,to as green,pwe as helmConnectionSchema,cwe as helmConnectionUiSchema,Xve as helpAndSupportModalSchema,ewe as helpAndSupportModalUiSchema,gwe as importDesignSchema,Swe as importDesignUiSchema,ywe as importFilterSchema,vwe as importFilterUiSchema,Rwe as importModelSchema,Awe as importModelUiSchema,OHt as initReduxPersist,bpe as jungleGreen,zt as keppel,_Ke as keyframes,Mwe as kubernetesCredentialSchema,Dwe as kubernetesCredentialUiSchema,d4 as lightModePalette,IKe as lighten,lx as notificationColors,yHe as outlinedInputClasses,cpe as patternsBlue,zw as primaryColor,Nwe as prometheusCredentialSchema,Hwe as prometheusCredentialUiSchema,H5 as publishCatalogItemSchema,Iwe as publishCatalogItemUiSchema,rt as red,tx as redDelete,dU as reduxActor,fU as reduxCommands,jS as reduxEvents,D1 as reply,gU as rtkQueryActor,cU as rtkQueryActorCommands,b9 as rtkQueryActorEvents,To as saffron,XV as selectIsValidating,QV as selectValidationResults,HV as sendToActor,VV as sendToActors,u4 as slateGray,Lpe as socialIcons,Ns as splitCamelCaseString,cUe as stepConnectorClasses,L as styled,yHt as subscribeToRoom,gpe as tabMenu,vpe as tableBackgroundHover,lqe as tooltipClasses,m4 as typography,bHt as unSubscribeRoom,Go as updateVisibleColumns,gS as useDesignAssignment,SS as useEnvironmentAssignment,TE as useMediaQuery,S8e as useModal,GL as useNotificationHandler,Gve as useResourceCleanData,CHt as useRoomActivity,WCe as useStepper,bS as useTeamAssignment,te as useTheme,wS as useViewAssignment,qo as useWindowDimensions,f4 as white,QM as withErrorBoundary,XM as withSuppressedErrorBoundary,aU as workerfyActor,Or as yellow};
|
|
98
98
|
/*! Bundled license information:
|
|
99
99
|
|
|
100
100
|
is-buffer/index.js:
|