@sistent/sistent 0.14.216 → 0.14.217

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -76,7 +76,7 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var ue=se(b,O,L,F,q+"."+
76
76
  overflow: hidden;
77
77
  }
78
78
  }
79
- `,Uge=(0,Jo.styled)(ld)(({theme:e})=>({height:"2.25rem",width:"2.25rem",fill:e.palette.common.white,cursor:"pointer"})),Wge=(0,Jo.styled)(G2)(({theme:e})=>({height:"2.25rem",width:"2.25rem",fill:e.palette.common.white,cursor:"pointer"})),Fm=(0,Jo.styled)("div")(({theme:e})=>({background:e.palette.mode==="light"?Si.header:Ti.header,color:"#eee",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"1rem",textAlign:"center"})),tq=({headerIcon:e})=>{let[t,r]=(0,Ou.useState)(!1),[o,a]=(0,Ou.useState)(""),n=(0,Ou.useRef)(null),[i,l]=(0,Ou.useState)(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}}},Dr=(0,Jo.styled)(An)(({theme:e})=>({padding:"1rem",backgroundColor:e.palette.background.surfaces,overflowY:"auto",height:"100%",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},"-ms-overflow-style":"none"})),qge=(0,Jo.styled)("div",{shouldForwardProp:e=>e!=="variant"})(({theme:e,variant:t,hasHelpText:r})=>({background:t==="filled"?e.palette.mode==="light"?Si.fotter:Ti.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}})),Fr=({open:e,closeModal:t,title:r,headerIcon:o,reactNode:a,children:n,maxWidth:i="xs",isFullScreenModeAllowed:l,...s})=>{let[u,f]=(0,Ou.useState)(!1),d=()=>{f(p=>!p)};return(0,$r.jsxs)(Vge,{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&&(0,$r.jsxs)(Fm,{"data-testid":"modal-header",children:[o&&(0,$r.jsx)(K,{"data-testid":"modal-header-icon",children:o}),(0,$r.jsx)(z,{component:"div",variant:"h6","data-testid":"modal-title",children:r}),(0,$r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"1rem"},"data-testid":"modal-header-actions",children:[l&&(0,$r.jsx)(ge,{title:u?"Exit Fullscreen":"Enter Fullscreen",children:u?(0,$r.jsx)(Wge,{onClick:d,"data-testid":"modal-exit-fullscreen-btn"}):(0,$r.jsx)(Uge,{onClick:d,"data-testid":"modal-enter-fullscreen-btn"})}),(0,$r.jsx)(Au,{onClick:t,"data-testid":"modal-close-btn",children:(0,$r.jsx)(Bt,{...kd,fill:"#fff"})})]})]}),a&&a,n&&n]})},io=({helpText:e,children:t,variant:r})=>(0,$r.jsxs)(qge,{variant:r,hasHelpText:!!e,children:[e&&(0,$r.jsx)(gC,{content:e}),t]}),un=(0,Jo.styled)(bT)(({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}})),fn=(0,Jo.styled)(RA)(({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}})),rq=(0,Jo.styled)(OA)(({theme:e})=>({color:e.palette.text.inverse})),oq=(0,Jo.styled)(bT)(({theme:e})=>({backgroundColor:e.palette.background.error?.default,color:e.palette.text.constant?.white,"&:hover":{background:e.palette.background.error?.hover}})),Gge=(0,Jo.styled)(K)(()=>({width:"100%",display:"flex",justifyContent:"end",gap:"1rem"})),tp=({primaryText:e,secondaryText:t,primaryButtonProps:r,secondaryButtonProps:o})=>(0,$r.jsxs)(Gge,{children:[(0,$r.jsx)(fn,{...o,children:t}),(0,$r.jsx)(un,{...r,children:e})]});var rp=require("@mui/material");var aq=(0,rp.styled)("div")(({theme:e})=>({backgroundColor:e.palette.background.surfaces})),nq=(0,rp.styled)("div")(()=>({zIndex:"100",borderRadius:"5px"})),iq=(0,rp.styled)("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"})),lq=(0,rp.styled)(z)({fontSize:"18px"}),sq=(0,rp.styled)("div")(()=>({display:"flex",borderRadius:"5px 5px 0px 0px",justifyContent:"space-between",padding:"11px 16px",height:"52px",fill:Tt,boxShadow:"inset 0px -1px 3px 0px rgba(0,0,0,0.2)",background:"linear-gradient(90deg, #3B687B 0%, #507D90 100%)"}));var Pa=require("react/jsx-runtime");function zge({title:e,leftHeaderIcon:t,helpText:r,helpArea:o,actions:a,hideActions:n=!1,content:i,closeComponent:l,"data-testid":s="modal-card-wrapper"}){return(0,Pa.jsxs)(nq,{"data-testid":s,children:[(0,Pa.jsxs)(sq,{"data-testid":"modal-card-header",children:[t&&(0,Pa.jsx)("div",{style:{display:"flex",alignItems:"center"},"data-testid":"modal-card-header-icon",children:t}),e&&(0,Pa.jsx)("div",{style:{display:"flex",alignItems:"center",color:"white"},"data-testid":"modal-card-title",children:(0,Pa.jsx)(lq,{children:e})}),(0,Pa.jsxs)("div",{style:{display:"flex",alignItems:"center"},"data-testid":"modal-card-header-right",children:[r&&(0,Pa.jsx)("div",{"data-testid":"modal-card-help-area",children:o}),(0,Pa.jsx)("div",{"data-testid":"modal-card-close-button",children:l})]})]}),(0,Pa.jsx)(aq,{"data-testid":"modal-card-content",children:i}),!n&&(0,Pa.jsx)(iq,{"data-testid":"modal-card-actions",children:a})]})}var Nm=zge;var yt=require("@mui/material");var uq=(0,yt.styled)("div")({cursor:"pointer",width:"30px",height:"30px",display:"flex",alignItems:"center",fill:gi}),jge={"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"}}},fq=(0,yt.styled)(yt.Box)(({isOpen:e,renderPosition:t})=>({position:"fixed",transition:"all 0.5s ease",...jge[t][e?"open":"closed"]})),dq=(0,yt.styled)("div")({display:"flex",flexDirection:"column",justifyContent:"center",transition:"bottom 0.5s ease",padding:"1.688rem 1.188rem",width:"28rem",height:"12rem"}),pq=(0,yt.styled)("div")({display:"flex",alignItems:"center",paddingTop:"0.5px",height:"20px",width:"21.188rem"}),mq=(0,yt.styled)("div")({width:"24px",height:"24px"}),yut=(0,yt.styled)(yt.Button)(({isOpen:e})=>({color:"white",width:"4.313rem",height:"2.25rem",textTransform:"none",boxShadow:"0px 1px 8px rgba(0, 0, 0, 0.25)",backgroundColor:e?Ys.main:et,"&:hover":{backgroundColor:KM}})),cq=(0,yt.styled)(yt.Button)(({theme:e,renderPosition:t})=>({backgroundColor:ed,color:gi,borderRadius:"5px",padding:"10px 20px",fontSize:"16px",transition:"bottom 0.5s ease",position:"fixed",...Kge[t],"&:hover":{backgroundColor:e.palette.mode==="dark"?Sr:"#213A45"}})),Kge={"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)"}},xq=(0,yt.styled)("div")(({theme:e})=>({display:"block",right:"0",backgroundColor:e.palette.mode==="dark"?"#333333":gi,bottom:"0",width:"100%",zIndex:"100",position:"relative",height:"100%",alignItems:"center",transition:"bottom 0.5s ease"})),hq=(0,yt.styled)(yt.Box)(({isOpen:e,theme:t})=>({position:"relative",bottom:e?"0px":"-240px",right:"0",color:t.palette.text.default,backgroundColor:t.palette.mode==="dark"?Ks:Tt,border:`1px solid ${eL}`,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"})),gq=(0,yt.styled)(yt.Box)({display:"flex",justifyContent:"space-between",alignSelf:"center"}),Tq=(0,yt.styled)(yt.Button)(({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 ${et}`:"",background:t?e.palette.mode==="dark"?Sr:ga:e.palette.mode==="dark"?Ks:Hl,color:t?e.palette.mode==="dark"?ga:Sr:e.palette.mode==="dark"?ga:ga,fill:t?e.palette.icon.default:ga,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}})),Sq=(0,yt.styled)("textarea")(({theme:e})=>({width:"100%",background:"transparent",border:`1px solid ${$s}`,borderRadius:"4px",color:e.palette.mode==="dark"?ga:Sr,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"?ga:Ks},"&:focus":{outline:`1px solid ${Io}`}})),Cq=(0,yt.styled)("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-between",height:"137px",color:e.palette.text.default})),yq=(0,yt.styled)("a")({textDecoration:"underline",color:"inherit","&:hover":{color:"inherit"}}),bq=(0,yt.styled)(yt.Checkbox)({color:`${Tt} !important`,marginLeft:"-11px",paddingLeft:"0px"}),vq=(0,yt.styled)("div")({padding:"1.5rem 1rem",width:"28rem",height:"12rem"}),wq=(0,yt.styled)("div")({padding:"0px",width:"30px",height:"30px",display:"flex",alignItems:"center"});var Fe=require("react/jsx-runtime"),$ge="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.",TC=[{icon:(0,Fe.jsx)(k1,{}),label:"Issue",placeholder:"I\u2019m having an issue with...",isTextInput:!0},{icon:(0,Fe.jsx)(Q2,{}),label:"Suggestion",placeholder:"I have a suggestion about...",isTextInput:!0},{icon:(0,Fe.jsx)(j2,{}),label:"Meet Request",isTextInput:!1,innerComponent:(0,Fe.jsxs)(Cq,{children:[(0,Fe.jsxs)(p3.default,{style:{lineHeight:"2.5",textAlign:"center"},children:["Need help or have more feedback than fits here?",(0,Fe.jsx)("br",{})," Meet with us."]}),(0,Fe.jsx)(yq,{target:"_blank",href:"https://calendar.google.com/calendar/appointments/schedules/AcZssZ3pmcApaDP4xd8hvG5fy8ylxuFxD3akIRc5vpWJ60q-HemQi80SFFAVftbiIsq9pgiA2o8yvU56",children:"Select a time convenient for you."})]})}],Yge=({onSubmit:e,containerStyles:t,feedbackOptionStyles:r,renderPosition:o,defaultMessage:a=void 0,defaultOpen:n=!1})=>{let[i,l]=(0,op.useState)(n),[s,u]=(0,op.useState)(!1),[f,d]=(0,op.useState)(TC[0]),[p,m]=(0,op.useState)(a),[x,h]=(0,op.useState)(!!a);return(0,Fe.jsxs)(Fe.Fragment,{children:[(0,Fe.jsx)(cq,{onClick:()=>{l(!i),d(TC[0]),u(!1),m("")},style:t,renderPosition:o,children:"Feedback"}),(0,Fe.jsx)(fq,{isOpen:i,style:t,renderPosition:o,children:s?(0,Fe.jsxs)(hq,{isOpen:i,children:[(0,Fe.jsx)(s5,{width:"32",height:"32"}),"Submitting your feedback..."]}):(0,Fe.jsx)(Fe.Fragment,{children:(0,Fe.jsx)(Nm,{onClose:()=>{},open:!0,closeComponent:(0,Fe.jsx)(uq,{onClick:()=>l(!1),children:(0,Fe.jsx)(Bt,{width:"30",height:"30",fill:gi})}),actions:(0,Fe.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,Fe.jsxs)(pq,{children:[(0,Fe.jsx)(bq,{checked:x,onChange:R=>{h(R.target.checked)}}),(0,Fe.jsx)(p3.default,{style:{color:"white",fontSize:"12px",height:"15px"},children:"We may email you for more information or updates"})]}),(0,Fe.jsx)(un,{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:(0,Fe.jsx)(k1,{}),title:"Feedback",helpArea:(0,Fe.jsx)(ge,{placement:"top",title:$ge,arrow:!0,children:(0,Fe.jsx)(wq,{children:(0,Fe.jsx)(i5,{width:"30",height:"30"})})}),helpText:"Help",content:(0,Fe.jsxs)(xq,{children:[(0,Fe.jsx)(gq,{children:TC?.map(R=>(0,Fe.jsxs)(Tq,{style:r,type:"button",onClick:()=>{d(R)},isOpen:f?.label===R.label,children:[(0,Fe.jsx)(mq,{children:R.icon}),(0,Fe.jsx)(p3.default,{children:R.label})]},R.label))}),f?.isTextInput?(0,Fe.jsx)(dq,{children:(0,Fe.jsx)(Sq,{value:p||"",onChange:R=>{m(R.target.value)},required:!0,placeholder:f.placeholder,rows:5,cols:30})}):(0,Fe.jsx)(vq,{children:f?.innerComponent})]})})})})]})},SC=Yge;var Hm=require("@mui/material"),Pu=G(require("react"));var Bm=require("react/jsx-runtime");function Eq(e,t){if(!e||e.length!=2)throw Error("FlipCard requires exactly two child components");return e[t]}var Zge=(0,Hm.styled)("div")(({theme:e})=>({height:"100%",backgroundColor:"transparent",perspective:e.spacing(125)})),Qge=(0,Hm.styled)("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"?p1:Tt,cursor:"pointer",transformOrigin:"50% 50% 10%"})),Xge=(0,Hm.styled)("div")({backfaceVisibility:"hidden"}),Jge=(0,Hm.styled)("div")({backfaceVisibility:"hidden",transform:"scale(-1, 1)",wordBreak:"break-word"});function Vm({duration:e=500,onClick:t,onShow:r,children:o,disableFlip:a=!1,padding:n}){let[i,l]=Pu.default.useState(!1),[s,u]=Pu.default.useState(!1),f=Pu.default.useRef(null),d=Eq(o,0),p=Eq(o,1);return Pu.default.useEffect(()=>{f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{u(i)},e/6)},[i,e]),(0,Bm.jsx)(Zge,{onClick:()=>{a||(l(m=>!m),t&&t(),r&&r())},children:(0,Bm.jsx)(Qge,{style:{transform:i?"scale(-1,1)":void 0,transition:`transform ${e}ms`,padding:n},children:s?(0,Bm.jsx)(Jge,{children:Pu.default.isValidElement(p)?p:null}):(0,Bm.jsx)(Xge,{children:Pu.default.isValidElement(d)?d:null})})})}var _u=require("@mui/material"),Rq=G(require("lodash")),Oq=require("react");var cs=require("react/jsx-runtime"),Um=({id:e})=>{let[t,r]=(0,Oq.useState)(!1),o=(0,y.useTheme)(),a=i=>{i.stopPropagation(),navigator.clipboard.writeText(e),r(!0),setTimeout(()=>{r(!1)},2e3)},n=Rq.default.truncate(e,{length:15});return(0,cs.jsxs)(_u.Box,{sx:{display:"flex",alignItems:"center"},children:[(0,cs.jsx)(_u.Tooltip,{title:e,placement:"top",children:(0,cs.jsx)(_u.Typography,{variant:"body2",style:{cursor:"pointer",textWrap:"nowrap",color:o.palette.text.primary},children:n})}),(0,cs.jsx)(_u.Tooltip,{title:t?"Copied!":"Copy",placement:"top",children:(0,cs.jsx)("div",{onClick:a,style:{padding:"0.25rem"},children:(0,cs.jsx)(Sa,{width:16,height:16,fill:o.palette.action.active})})})]})};var CC=G(require("react"));function Aq(){let{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}function ea(){let[e,t]=CC.default.useState(Aq());return CC.default.useEffect(()=>{let r;function o(){r&&clearTimeout(r),r=window.setTimeout(()=>{t(Aq())},500)}return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),r&&clearTimeout(r)}},[]),e}var Re=G(require("react")),lTe=require("react-dom");function Pq(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=Pq(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function eTe(){for(var e,t,r=0,o="";r<arguments.length;)(e=arguments[r++])&&(t=Pq(e))&&(o&&(o+=" "),o+=t);return o}var Wm=eTe;var tTe={data:""},rTe=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||tTe;var oTe=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,aTe=/\/\*[^]*?\*\/| +/g,_q=/\n+/g,Iu=(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"?Iu(i,n):n+"{"+Iu(i,n[1]=="k"?"":t)+"}":typeof i=="object"?o+=Iu(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+=Iu.p?Iu.p(n,i):n+":"+i+";")}return r+(t&&a?t+"{"+a+"}":a)+o},Gi={},Iq=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+Iq(e[r]);return t}return e},nTe=(e,t,r,o,a)=>{let n=Iq(e),i=Gi[n]||(Gi[n]=(s=>{let u=0,f=11;for(;u<s.length;)f=101*f+s.charCodeAt(u++)>>>0;return"go"+f})(n));if(!Gi[i]){let s=n!==e?e:(u=>{let f,d,p=[{}];for(;f=oTe.exec(u.replace(aTe,""));)f[4]?p.shift():f[3]?(d=f[3].replace(_q," ").trim(),p.unshift(p[0][d]=p[0][d]||{})):p[0][f[1]]=f[2].replace(_q," ").trim();return p[0]})(e);Gi[i]=Iu(a?{["@keyframes "+i]:s}:s,r?"":"."+i)}let l=r&&Gi.g?Gi.g:null;return r&&(Gi.g=Gi[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)})(Gi[i],t,o,l),i},iTe=(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?"":Iu(l,""):l===!1?"":l}return o+a+(i??"")},"");function m3(e){let t=this||{},r=e.call?e(t.p):e;return nTe(r.unshift?r.raw?iTe(r,[].slice.call(arguments,1),t.p):r.reduce((o,a)=>Object.assign(o,a&&a.call?a(t.p):a),{}):r,rTe(t.target),t.g,t.o,t.k)}var Yut=m3.bind({g:1}),Zut=m3.bind({k:1});function kq(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 sTe(e,t,r){return t&&kq(e.prototype,t),r&&kq(e,r),e}function xs(){return xs=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},xs.apply(this,arguments)}function uTe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function PC(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 Mq=function(){return""},fTe=Re.default.createContext({enqueueSnackbar:Mq,closeSnackbar:Mq}),ku={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"};var c3="unmounted",ap="exited",np="entering",qm="entered",Lq="exiting",_C=function(e){uTe(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=ap,a.appearStatus=np):i=qm:o.unmountOnExit||o.mountOnEnter?i=c3:i=ap,a.state={status:i},a.nextCallback=null,a}t.getDerivedStateFromProps=function(a,n){var i=a.in;return i&&n.status===c3?{status:ap}: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!==np&&i!==qm&&(n=np):(i===np||i===qm)&&(n=Lq)}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===np?this.performEnter(a):this.performExit()):this.props.unmountOnExit&&this.state.status===ap&&this.setState({status:c3})},r.performEnter=function(a){var n=this,i=this.props.enter,l=a,s=this.getTimeouts();if(!a&&!i){this.safeSetState({status:qm},function(){n.props.onEntered&&n.props.onEntered(n.node,l)});return}this.props.onEnter&&this.props.onEnter(this.node,l),this.safeSetState({status:np},function(){n.props.onEntering&&n.props.onEntering(n.node,l),n.onTransitionEnd(s.enter,function(){n.safeSetState({status:qm},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:ap},function(){a.props.onExited&&a.props.onExited(a.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:Lq},function(){a.props.onExiting&&a.props.onExiting(a.node),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:ap},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===c3)return null;var n=this.props,i=n.children,l=PC(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return i(a,l)},sTe(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}(Re.default.Component);function ip(){}_C.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ip,onEntering:ip,onEntered:ip,onExit:ip,onExiting:ip,onExited:ip};function Dq(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function OC(e,t){return(0,Re.useMemo)(function(){return e==null&&t==null?null:function(r){Dq(e,r),Dq(t,r)}},[e,t])}function T3(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 AC={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)"},Uq=function(t){t.scrollTop=t.scrollTop},Fq=function(t){return Math.round(t)+"ms"};function lp(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?AC.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:Fq(a),p=typeof s=="string"?s:Fq(s);return f+" "+d+" "+i+" "+p}).join(",")}function dTe(e){return e&&e.ownerDocument||document}function Wq(e){var t=dTe(e);return t.defaultView||window}function pTe(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 mTe(e,t){var r=t.getBoundingClientRect(),o=Wq(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 x3(e,t){if(t){var r=mTe(e,t);r&&(t.style.webkitTransform=r,t.style.transform=r)}}var cTe=(0,Re.forwardRef)(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=PC(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),x=(0,Re.useRef)(null),h=OC(r.ref,x),g=OC(h,t),T=function(v,P){x3(a,v),Uq(v),u&&u(v,P)},E=function(v){var P=i?.transitionTimingFunction||AC.easeOut,B=T3({timeout:s,mode:"enter",style:xs({},i,{transitionTimingFunction:P})});v.style.webkitTransition=lp("-webkit-transform",B),v.style.transition=lp("transform",B),v.style.webkitTransform="none",v.style.transform="none"},R=function(v){var P=i?.transitionTimingFunction||AC.sharp,B=T3({timeout:s,mode:"exit",style:xs({},i,{transitionTimingFunction:P})});v.style.webkitTransition=lp("-webkit-transform",B),v.style.transition=lp("transform",B),x3(a,v),d&&d(v)},k=function(v){v.style.webkitTransition="",v.style.transition="",p&&p(v)},D=(0,Re.useCallback)(function(){x.current&&x3(a,x.current)},[a]);return(0,Re.useEffect)(function(){if(!(n||a==="down"||a==="right")){var C=pTe(function(){x.current&&x3(a,x.current)}),v=Wq(x.current);return v.addEventListener("resize",C),function(){C.clear(),v.removeEventListener("resize",C)}}},[a,n]),(0,Re.useEffect)(function(){n||D()},[n,D]),(0,Re.createElement)(_C,Object.assign({appear:!0,nodeRef:x,onEnter:T,onEntered:f,onEntering:E,onExit:R,onExited:k,in:n,timeout:s},m),function(C,v){return(0,Re.cloneElement)(r,xs({ref:g,style:xs({visibility:C==="exited"&&!n?"hidden":void 0},i,{},r.props.style)},v))})});cTe.displayName="Slide";function S3(e){return Object.entries(e).reduce(function(t,r){var o,a=r[0],n=r[1];return xs({},t,(o={},o[a]=m3(n),o))},{})}var jm={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},Nq=S3({root:{height:0},entered:{height:"auto"}}),yC="0px",bC=175,xTe=(0,Re.forwardRef)(function(e,t){var r=e.children,o=e.in,a=e.onExited,n=(0,Re.useRef)(null),i=(0,Re.useRef)(null),l=OC(t,i),s=function(){return n.current?n.current.clientHeight:0},u=function(h){h.style.height=yC},f=function(h){var g=s(),T=T3({timeout:bC,mode:"enter"}),E=T.duration,R=T.easing;h.style.transitionDuration=typeof E=="string"?E:E+"ms",h.style.height=g+"px",h.style.transitionTimingFunction=R||""},d=function(h){h.style.height="auto"},p=function(h){h.style.height=s()+"px"},m=function(h){Uq(h);var g=T3({timeout:bC,mode:"exit"}),T=g.duration,E=g.easing;h.style.transitionDuration=typeof T=="string"?T:T+"ms",h.style.height=yC,h.style.transitionTimingFunction=E||""};return(0,Re.createElement)(_C,{in:o,unmountOnExit:!0,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:a,onExiting:m,nodeRef:i,timeout:bC},function(x,h){return(0,Re.createElement)("div",Object.assign({ref:l,className:Wm(Nq.root,x==="entered"&&Nq.entered),style:xs({pointerEvents:"all",overflow:"hidden",minHeight:yC,transition:lp("height")},x==="entered"&&{overflow:"visible"},{},x==="exited"&&!o&&{visibility:"hidden"})},h),(0,Re.createElement)("div",{ref:n,className:jm.CollapseWrapper,style:{display:"flex",width:"100%"}},r))})});xTe.displayName="Collapse";var hTe=typeof window<"u"?Re.useLayoutEffect:Re.useEffect;function Bq(e){var t=(0,Re.useRef)(e);return hTe(function(){t.current=e}),(0,Re.useCallback)(function(){return t.current.apply(void 0,arguments)},[])}var gTe=(0,Re.forwardRef)(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=(0,Re.useRef)(),m=Bq(function(){l&&l.apply(void 0,arguments)}),x=Bq(function(R){!l||R==null||(p.current&&clearTimeout(p.current),p.current=setTimeout(function(){m(null,"timeout",s)},R))});(0,Re.useEffect)(function(){return u&&x(a),function(){p.current&&clearTimeout(p.current)}},[u,a,x]);var h=function(){p.current&&clearTimeout(p.current)},g=(0,Re.useCallback)(function(){a!=null&&x(a*.5)},[a,x]),T=function(k){d.onMouseEnter&&d.onMouseEnter(k),h()},E=function(k){d.onMouseLeave&&d.onMouseLeave(k),g()};return(0,Re.useEffect)(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]),(0,Re.createElement)("div",Object.assign({ref:t},d,{className:Wm(jm.Snackbar,o),onMouseEnter:T,onMouseLeave:E}),r)});gTe.displayName="Snackbar";var vC,TTe=S3({root:(vC={display:"flex",flexWrap:"wrap",flexGrow:1},vC[ku.upSm]={flexGrow:"initial",minWidth:"288px"},vC)}),qq=(0,Re.forwardRef)(function(e,t){var r=e.className,o=PC(e,["className"]);return Re.default.createElement("div",Object.assign({ref:t,className:Wm(TTe.root,r)},o))});qq.displayName="SnackbarContent";var Gm=S3({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"}}),Hq="notistack-snackbar",STe=(0,Re.forwardRef)(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)),Re.default.createElement(qq,{ref:t,role:"alert","aria-describedby":Hq,style:s,className:Wm(jm.MuiContent,jm.MuiContentVariant(i),Gm.root,Gm[i],u,!l&&f&&Gm.lessPadding)},Re.default.createElement("div",{id:Hq,className:Gm.message},l?null:f,o),d&&Re.default.createElement("div",{className:Gm.action},d))});STe.displayName="MaterialDesignContent";var zm,wC,h3,g3,EC,zi={view:{default:20,dense:4},snackbar:{default:6,dense:2}},Vq="."+jm.CollapseWrapper,RC=16,eft=S3({root:(zm={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:lp(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},zm[Vq]={padding:zi.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},zm.maxWidth="calc(100% - "+zi.view.default*2+"px)",zm[ku.downXs]={width:"100%",maxWidth:"calc(100% - "+RC*2+"px)"},zm),rootDense:(wC={},wC[Vq]={padding:zi.snackbar.dense+"px 0px"},wC),top:{top:zi.view.default-zi.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:zi.view.default-zi.snackbar.default+"px",flexDirection:"column-reverse"},left:(h3={left:zi.view.default+"px"},h3[ku.upSm]={alignItems:"flex-start"},h3[ku.downXs]={left:RC+"px"},h3),right:(g3={right:zi.view.default+"px"},g3[ku.upSm]={alignItems:"flex-end"},g3[ku.downXs]={right:RC+"px"},g3),center:(EC={left:"50%",transform:"translateX(-50%)"},EC[ku.upSm]={alignItems:"center"},EC)});var tft=process.env.NODE_ENV!=="production";var Gq=function(){return(0,Re.useContext)(fTe)};var IC=G(require("react")),CTe=()=>{let[e,t]=IC.default.useState(""),{enqueueSnackbar:r}=Gq();return IC.default.useEffect(()=>{e&&(r(e),t(""))},[e,r]),(a,n)=>{t(a),n&&r(a,n)}},kC=CTe;var ta=(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};var zn=require("@mui/material/styles");var zq=(0,zn.styled)("div")({width:"100%",maxWidth:"28rem",minWidth:"10rem",height:"16rem",margin:"auto",borderRadius:"1rem"}),jq=(0,zn.styled)("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"?Tt:Sr})),Kq=(0,zn.styled)("a")({color:"black",textDecoration:"none"}),MC=(0,zn.styled)("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)"})),$q=(0,zn.styled)("div")(({theme:e})=>({background:e.palette.mode==="light"?A2:Ul,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"})),LC=(0,zn.styled)("div")(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1rem","& span":{border:`1px solid ${e.palette.primary.dark}`,color:e.palette.text.primary,borderRadius:"0.8rem",padding:"0.05rem 0.75rem",fontSize:"1rem",transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"},"& h3":{color:e.palette.text.primary,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"}})),DC=(0,zn.styled)("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"}})),Yq=(0,zn.styled)("div")(({theme:e})=>({padding:"0 1rem",position:"absolute",display:"flex",gap:"0.4rem",bottom:"0rem",p:{fontSize:"1rem",color:e.palette.text.primary,fontWeight:600,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"}})),FC=(0,zn.styled)("div")({textAlign:"center",position:"absolute",bottom:"0.1rem",right:"0.75rem",opacity:.2,img:{height:"8.5rem",width:"8.5rem"}});var $e=require("react/jsx-runtime"),yTe=({path:e,children:t})=>e?(0,$e.jsx)(Kq,{href:e,children:t}):(0,$e.jsx)($e.Fragment,{children:t}),bTe=({tutorial:e,path:t,courseCount:r,courseType:o})=>(0,$e.jsx)(zq,{children:e.frontmatter.disabled==="yes"?(0,$e.jsx)($q,{children:(0,$e.jsx)(MC,{style:{borderTop:`5px solid ${e.frontmatter.themeColor}`},children:(0,$e.jsxs)("div",{children:[(0,$e.jsxs)(LC,{children:[(0,$e.jsx)("h3",{children:e.frontmatter.title?e.frontmatter.title:e.frontmatter.courseTitle}),(0,$e.jsx)("div",{style:{whiteSpace:"nowrap"},children:(0,$e.jsx)("span",{children:"Coming Soon"})})]}),(0,$e.jsx)(DC,{children:(0,$e.jsx)("p",{className:"summary",children:e.frontmatter.description})}),(0,$e.jsx)(FC,{children:(0,$e.jsx)("img",{src:e.frontmatter.cardImage,alt:e.frontmatter.title})})]})})}):(0,$e.jsx)(yTe,{path:t,children:(0,$e.jsx)(jq,{children:(0,$e.jsx)(MC,{style:{borderTop:`5px solid ${e.frontmatter.themeColor}`},children:(0,$e.jsxs)("div",{children:[(0,$e.jsxs)(LC,{style:{flexDirection:"column"},children:[(0,$e.jsx)(z,{variant:"body1",color:"textSecondary",children:e.frontmatter.type}),(0,$e.jsx)("h3",{style:{margin:"0.2rem 0.1rem"},children:e.frontmatter.title?e.frontmatter.title:e.frontmatter.courseTitle}),e.frontmatter.status?(0,$e.jsx)("p",{children:(0,$e.jsx)("span",{children:"New"})}):null]}),(0,$e.jsx)(DC,{children:(0,$e.jsx)("p",{className:"summary",children:e.frontmatter.description})}),(0,$e.jsxs)(Yq,{className:"card-subdata",children:[(0,$e.jsxs)("p",{children:[r," ",o,r>1?"s":""]}),(0,$e.jsxs)("p",{children:["Level:"," ",e?.frontmatter?.level?e.frontmatter.level.charAt(0).toUpperCase()+e.frontmatter.level.slice(1):""]})]}),(0,$e.jsx)(FC,{children:(0,$e.jsx)("img",{src:e.frontmatter.cardImage})})]})})})})}),NC=bTe;var hs=require("react");var BC=require("@mui/material");var Zq=(0,BC.styled)(kl)(()=>({minWidth:400,overflowWrap:"anywhere",textAlign:"center",padding:"5px"})),Qq=(0,BC.styled)(K)(()=>({display:"flex",justifyContent:"end",width:"100%",gap:"10px"}));var ra=require("react/jsx-runtime"),Km={WARNING:"warning",DANGER:"error",SUCCESS:"success",INFO:"info"},Xq=(0,hs.forwardRef)(({variant:e},t)=>{let[r,o]=(0,hs.useState)({isOpen:!1,title:"",subtitle:"",primaryOption:"",showInfoIcon:"",variant:e,headerIcon:void 0,isChecked:!1,showCheckbox:!1}),a=(0,hs.useRef)({resolve:()=>{},reject:()=>{}}),n=(0,y.useTheme)(),i=E=>new Promise((R,k)=>{a.current={resolve:R,reject:k},o({...E,isOpen:!0,showInfoIcon:E.showInfoIcon||"",showCheckbox:!!E.showCheckbox})}),l=()=>{o(E=>({...E,isOpen:!1}))},s=()=>{o(E=>({...E,isChecked:!E.isChecked}))},u=()=>!!r.isChecked;(0,hs.useImperativeHandle)(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(0,ra.jsxs)(Fr,{open:f,closeModal:l,title:p,id:"searchClick",headerIcon:h,reactNode:void 0,"data-testid":"prompt-modal",children:[m&&(0,ra.jsxs)(Dr,{"data-testid":"prompt-body",children:[(0,ra.jsx)(Zq,{id:"alert-dialog-description",variant:"body1",component:"div","data-testid":"prompt-subtitle",children:(0,ra.jsx)(z,{variant:"body1",component:"div",style:{color:n.palette.text.primary},children:m})}),g&&(0,ra.jsx)(Ll,{"data-testid":"prompt-checkbox-label",control:(0,ra.jsx)(Qr,{checked:u(),onChange:s,color:"primary","data-testid":"prompt-checkbox"}),label:(0,ra.jsx)("span",{style:{fontSize:"1rem"},children:"Do not show again"})})]}),(0,ra.jsx)(io,{variant:"filled",helpText:x,"data-testid":"prompt-footer",children:(0,ra.jsxs)(Qq,{"data-testid":"prompt-actions",children:[(0,ra.jsx)(fn,{"data-testid":"prompt-secondary-button",onClick:()=>{l(),T("CANCEL")},children:"Cancel"}),(0,ra.jsx)(un,{"data-testid":"prompt-primary-button",onClick:()=>{l(),T(d)},style:r.variant&&{backgroundColor:n.palette.background[r.variant]?.default,textTransform:"capitalize"},type:"submit",children:d})]})})]})});Xq.displayName="PromptComponent";var C3=Xq;var sp=C3;var HC=require("@mui/material/OutlinedInput"),y3=require("@mui/material/styles"),Jq=G(require("lodash/debounce")),$m=G(require("react"));var jn=require("react/jsx-runtime"),vTe=e=>(0,y3.createTheme)({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 .${HC.outlinedInputClasses.notchedOutline}`]:{borderColor:"var(--TextField-brandBorderHoverColor)"},[`&.Mui-focused .${HC.outlinedInputClasses.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 wTe({onSearch:e,placeholder:t,onClear:r,expanded:o,setExpanded:a,"data-testid":n="search-bar-wrapper"}){let[i,l]=$m.default.useState(""),s=$m.default.useRef(null),u=(0,y.useTheme)(),f=(0,$m.useCallback)((0,Jq.default)(x=>{e(x)},300),[e]),d=x=>{let h=x.target.value;l(h),f(h)},p=x=>{x.stopPropagation(),f(""),l(""),a(!1),r&&r()},m=x=>{x.stopPropagation(),o?(f(""),l(""),a(!1)):(a(!0),setTimeout(()=>{s.current&&s.current.focus()},300))};return(0,jn.jsx)(On,{onClickAway:x=>{x.stopPropagation();let h=x.target?.closest("#ref");i===""&&h&&p(x)},children:(0,jn.jsxs)("div",{style:{display:"flex"},"data-testid":n,children:[(0,jn.jsx)(y3.ThemeProvider,{theme:vTe(u),children:(0,jn.jsx)(Jr,{variant:"standard",value:i,onChange:d,inputRef:s,placeholder:t,"data-testid":"searchbar-input",style:{width:o?"150px":"0",opacity:o?1:0,transition:"width 0.3s ease, opacity 0.3s ease"}})}),o?(0,jn.jsx)(Wt,{title:"Close",onClick:p,icon:(0,jn.jsx)(Bt,{fill:u.palette.icon.default,"data-testid":"searchbar-clear-button"}),arrow:!0}):(0,jn.jsx)(Wt,{title:"Search",onClick:m,icon:(0,jn.jsx)(bd,{fill:u.palette.icon.default,"data-testid":"searchbar-search-button"}),arrow:!0})]})})}var Kn=wTe;var R3=require("@mui/material");var $i=require("react");var ETe="N/A",eG=e=>e&&e.deleted_at&&e.deleted_at.Valid===!0?ps(e.deleted_at.Time):ETe;var ji=require("react/jsx-runtime"),tG=(0,y.styled)("div")({display:"flex",gap:"1rem"}),gs=(0,y.styled)("div")({display:"flex",justifyContent:"space-between",width:"100%",alignItems:"center"}),b3=(0,y.styled)("div")({display:"flex",alignItems:"center",marginRight:"1rem"}),VC=(0,y.styled)("div")({boxSizing:"border-box",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),UC=(0,y.styled)("div")({position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box",display:"block",width:"100%"}),rG=(0,y.styled)("span")(()=>({"& svg":{cursor:"pointer",width:"2rem",height:"2rem"}})),Wft=(0,y.styled)("span")(()=>({"& svg":{width:"2rem",height:"2rem"}})),oG=(0,y.styled)("span")(({theme:e})=>({"& svg":{color:"#3C494F","&:hover":{color:e.palette.error.error}}})),v3=(0,y.styled)("span")(()=>({color:"#455a64",opacity:"0.5","& svg":{cursor:"not-allowed"}})),aG=(0,y.styled)("div")(()=>({display:"flex",justifyContent:"space-between",paddingRight:"26px"})),w3=(0,y.styled)("div")(()=>({color:"#455a64",display:"flex",cursor:"not-allowed","& svg":{cursor:"pointer"}})),nG=(0,y.styled)(Qr)({padding:0,marginRight:"0.5rem",height:"28px","& .MuiSvgIcon-root":{borderColor:"white"},color:"white","&:hover":{color:"white",cursor:"pointer"},"&.Mui-checked":{color:"white"}}),WC=(0,y.styled)(z)({fontSize:"1.25rem",fontWeight:800,"&:hover":{cursor:"default"}}),qft=(0,y.styled)(z)({fontSize:"0.9rem",display:"flex",alignItems:"end",padding:"0 5px","&:hover":{cursor:"default"}}),Gft=(0,y.styled)("button")({background:"transparent",border:"none","&:hover":{cursor:"default"}}),qC=(0,y.styled)(z)({fontStyle:"italic",fontSize:"12px","&:hover":{cursor:"default"}}),GC=(0,y.styled)(z)({fontSize:"0.9rem",textAlign:"left",fontStyle:"italic"}),iG=(0,y.styled)(GC)({height:"fit-content",fontStyle:"normal","&:hover":{cursor:"default"}}),RTe=(0,y.styled)(K)(({theme:e})=>({background:e.palette.background.brand?.default,padding:"10px 10px 1px 10px",borderRadius:"4px",height:"100%",display:"flex",width:"100%"})),Ym=(0,y.styled)(RTe)({display:"flex",width:"100%",gap:"10px","@media (min-width : 600px)":{flexDirection:"column",gap:"0"}}),zC=(0,y.styled)(ke)(({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"})),jC=(0,y.styled)("p")(({theme:e,textColor:t})=>({margin:"0",fontSize:"14px",fontWeight:"400",display:"flex",color:t||e.palette.text.constant?.white})),KC=(0,y.styled)("p")(({theme:e,textColor:t})=>({margin:"0",fontSize:"60px",fontWeight:"500",lineHeight:1,marginBottom:"5px",color:t||e.palette.text.constant?.white})),zft=(0,y.styled)(ke)(({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:`${ne[40]}30 !important`,"&:hover":{background:e.palette.text.default},padding:"15px 10px"})),jft=(0,y.styled)("div")(({disabled:e=!1})=>({cursor:e?"not-allowed":"pointer",opacity:e?"0.5":"1",display:"flex","& svg":{cursor:e?"not-allowed":"pointer"}})),lG=(0,y.styled)(he)(({theme:e})=>({borderBottom:`1px solid ${e.palette.divider}`,display:"flex",flexDirection:"row",padding:"5px 0"})),E3=({onClick:e,bulk:t,disabled:r,style:o,key:a,title:n="Delete"})=>{let i=(0,y.useTheme)();return(0,ji.jsx)(ge,{title:n,arrow:!0,children:(0,ji.jsx)("div",{children:(0,ji.jsx)(Xe,{sx:{"&:hover":{"& svg":{fill:r?i.palette.icon.disabled:i.palette.background.error?.hover}},...o},disableRipple:!0,disabled:r,onClick:e,children:(0,ji.jsx)(co,{fill:r?i.palette.icon.disabled:i.palette.icon.default,width:t?"28":"24",height:t?"28":"24",style:o})})})},a)},$n=({onClick:e,disabled:t,bulk:r,style:o,title:a="Edit"})=>{let n=(0,y.useTheme)();return(0,ji.jsx)(ge,{title:a,arrow:!0,children:(0,ji.jsx)("div",{children:(0,ji.jsx)(Xe,{onClick:e,sx:{"&:hover":{"& svg":{fill:t?n.palette.icon.disabled:n.palette.background.brand?.default}},...o},disableRipple:!0,disabled:t,children:(0,ji.jsx)($o,{fill:t?n.palette.icon.disabled:n.palette.icon.default,width:r?"28":"24",height:r?"28":"24",style:o})})})})},sG=(0,y.styled)(he)({display:"flex",flexDirection:"row"}),Kft=(0,y.styled)(he)({display:"flex",alignItems:"center",marginTop:1}),Zm=(0,y.styled)(he)({width:"100%"}),uG=(0,y.styled)(Ar)(({theme:e})=>({width:"100%",display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper,padding:e.spacing(2.5),cursor:"pointer"})),fG=(0,y.styled)(uG)(({theme:e})=>({minHeight:e.spacing(50),background:"linear-gradient(180deg, #007366 0%, #000 100%)"})),dG=(0,y.styled)(uG)(({theme:e})=>({minHeight:e.spacing(50),backgroundColor:e.palette.background.paper,boxShadow:"none"})),pG=(0,y.styled)(he)({display:"flex",flexDirection:"row",justifyContent:"space-between"}),mG=(0,y.styled)(he)({display:"flex",alignItems:"flex-start"}),cG=(0,y.styled)(he)({display:"flex",alignItems:"center",justifyContent:"flex-end"}),xG=(0,y.styled)(z)(({theme:e})=>({fontSize:"1.25rem",fontWeight:600,padding:"0.5rem 0",color:e.palette.background.constant?.white})),hG=(0,y.styled)(he)({display:"flex",flexDirection:"column",maxHeight:"14.5rem",overflowY:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},"-ms-overflow-style":"none"}),gG=(0,y.styled)(he)(({theme:e})=>({display:"flex",flexDirection:"row",position:"absolute",bottom:"20px",width:"100%",color:`${e.palette.background.constant?.white}99`,justifyContent:"space-between",paddingRight:"40px"})),$C=(0,y.styled)(he)({textAlign:"left"});var Ki=require("react/jsx-runtime"),OTe=({userId:e,userName:t,userEmail:r,profileUrl:o})=>{let a=(0,y.useTheme)(),n=()=>{window.open(`${ha}/user/${e}`)};return(0,Ki.jsxs)(he,{container:!0,alignItems:"center",children:[(0,Ki.jsx)(he,{children:(0,Ki.jsx)(K,{sx:{color:a.palette.text.default,mr:2,cursor:"pointer"},children:(0,Ki.jsx)(zt,{onClick:n,alt:t,src:o,children:o?"":(0,Ki.jsx)(Mn,{})})})}),(0,Ki.jsxs)(he,{size:"grow",children:[t,(0,Ki.jsx)(z,{variant:"body2",color:a.palette.text.disabled,children:r})]})]})},Mu=OTe;var Le=require("react/jsx-runtime"),ATe=({tableMeta:e,handleRemoveFromTeam:t,handleEditUser:r,isRemoveFromTeamAllowed:o,isEditUserAllowed:a,theme:n})=>(0,Le.jsxs)(w3,{children:[a?(0,Le.jsx)(Wt,{id:`edit_user-${e.rowIndex}`,onClick:r(e.rowData),title:"Edit user",iconType:"edit",children:(0,Le.jsx)($o,{fill:n?.palette.text.primary})}):(0,Le.jsx)($o,{style:{marginRight:".5rem"},fill:Ir,height:"30",width:"30"}),o?(0,Le.jsx)(Wt,{id:`delete_user-${e.rowIndex}`,onClick:t(e.rowData),title:"Remove user membership from team",iconType:"delete",children:(0,Le.jsx)(jl,{fill:n?.palette.text.primary})}):(0,Le.jsx)(jl,{fill:Ir,secondaryFill:Ir})]}),PTe=({teamID:e,useGetUsersForOrgQuery:t,org_id:r,useRemoveUserFromTeamMutation:o,useNotificationHandlers:a,isRemoveFromTeamAllowed:n,isEditUserAllowed:i,handleEditUser:l,theme:s})=>{let[u,f]=(0,$i.useState)(0),[d,p]=(0,$i.useState)(10),[m,x]=(0,$i.useState)("last_login_time desc"),[h,g]=(0,$i.useState)(""),T=[],{handleError:E,handleSuccess:R,handleInfo:k}=a(),D=(0,$i.useRef)(null),{width:C}=ea(),{data:v}=t({page:u,pagesize:d,search:h,order:m,teamId:e,orgId:r}),{data:P}=t({page:0,pagesize:d,search:h,order:m,orgId:r}),[B]=o(),_=v?.data||[],J=P?.data||[],X=_.map(se=>{let ue=J.find(Ue=>Ue.user_id===se.user_id),Ve=se.role_names||[],Qe=ue?.organization_with_user_roles?.role_names||[];return{...se,role_names:[...Ve,...Qe]}}),N=v?.total_count||0,W=se=>async()=>{let ue=se[0];await D.current?.show({title:"Remove User From Team ?",subtitle:M(se[3],se[2]),primaryOption:"Proceed",variant:Km.DANGER})==="Proceed"&&B({orgId:r,teamId:e,userId:ue}).unwrap().then(()=>{R(`${se[4]?se[4]:""} ${se[5]?se[5]:""} removed from team`)}).catch(Qe=>{let Ue=Qe.response?.data?.message||"Failed to remove user from team";Qe.response.status===404?k(Ue):E(Ue)})},H=(se,ue,Ve)=>{let Qe=Ve.findIndex(Ue=>Ue.name===ue);return se[Qe]},M=(se,ue)=>(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)("p",{children:"Are you sure you want to remove this user? (This action is irreversible)"}),(0,Le.jsxs)("p",{children:["User:"," ",(0,Le.jsx)("i",{children:(0,Le.jsx)("b",{children:se})})]}),(0,Le.jsxs)("p",{children:["Email:"," ",(0,Le.jsx)("i",{children:(0,Le.jsx)("b",{children:ue})})]})]}),L,F={search:!1,viewColumns:!1,filter:!1,rowsPerPageOptions:[10,20,25],responsive:"standard",selectableRows:"none",count:N,rowsPerPage:d,page:u,print:!1,download:!1,elevation:0,serverSide:!0,sortOrder:{name:m.split(" ")[0],direction:m.split(" ")[1]},onTableChange:(se,ue)=>{let Ve=ue.announceText?ue.announceText.split(" : "):[],Qe="";switch(ue.activeColumn&&(Qe=`${b[ue.activeColumn].name} desc`),se){case"changePage":f(ue.page);break;case"changeRowsPerPage":p(ue.rowsPerPage);break;case"search":L&&clearTimeout(L),L=setTimeout(()=>{h!==ue.searchText&&g(ue.searchText)},500);break;case"sort":Ve.length==2&&(Ve[1]==="ascending"?Qe=`${b[ue.activeColumn].name} asc`:Qe=`${b[ue.activeColumn].name} desc`),Qe!==m&&x(Qe);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"]],b=[{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:(se,ue)=>(0,Le.jsx)(K,{sx:{"& > img":{mr:2,flexShrink:0}},children:(0,Le.jsx)(Mu,{userId:H(ue.rowData,"user_id",b),userName:`${ue.rowData[4]} ${ue.rowData[5]}`,userEmail:ue.rowData[2],profileUrl:se})})}},{name:"email",label:"Email",options:{filter:!1,sort:!0,searchable:!0}},{name:"username",label:"Username",options:{filter:!1,sort:!0,searchable:!0,customBodyRender:(se,ue)=>(0,Le.jsxs)("div",{style:{display:"flex"},children:[se,se?.includes("@")?(0,Le.jsx)(Jt,{title:`Search "${ue.rowData[3]} ${ue.rowData[4]}" on Google`,children:(0,Le.jsx)("a",{href:`https://www.google.com/search?q=${ue.rowData[3]}+${ue.rowData[4]}`,style:{color:"inherit"},target:"_blank",rel:"noreferrer",children:(0,Le.jsx)("div",{children:(0,Le.jsx)(Y2,{width:20,height:20})})})}):(0,Le.jsx)(Jt,{title:`Lookup "${se}" on GitHub`,children:(0,Le.jsx)("a",{href:`https://www.github.com/${se}`,style:{color:"inherit"},target:"_blank",rel:"noreferrer",children:(0,Le.jsx)("div",{children:(0,Le.jsx)(tu,{width:22,height:22})})})})]})}},{name:"first_name",label:"First",options:{filter:!1,sort:!0,searchable:!0}},{name:"last_name",label:"Last",options:{filter:!1,sort:!0,searchable:!0}},{name:"role_names",label:"Roles",options:{filter:!0,sort:!1,searchable:!1,filterOptions:{names:T.concat(T?.map(se=>`!${se}`))},customBodyRender:se=>(0,Le.jsx)("div",{children:se?.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:(se,ue)=>se!="NA"&&ue.indexOf("Deleted")>=0?!0:se=="NA"&&ue.indexOf("Not Deleted")>=0,fullWidth:!0},customBodyRender:(se,ue)=>{let Ve=X[ue.rowIndex];return eG(Ve)}}},{name:"actions",label:"Actions",options:{filter:!1,sort:!1,searchable:!1,customBodyRender:(se,ue)=>H(ue.rowData,"deleted_at",b).Valid!==!1?(0,Le.jsxs)(v3,{children:[(0,Le.jsx)($o,{style:{marginRight:".5rem"},fill:Ir,height:"30",width:"30"}),(0,Le.jsx)(jl,{fill:Ir,secondaryFill:Ir,height:30,width:30})]}):(0,Le.jsx)(ATe,{tableMeta:ue,handleRemoveFromTeam:W,handleEditUser:l,isRemoveFromTeamAllowed:n,isEditUserAllowed:i,theme:s})}}],[oe,ie]=(0,$i.useState)(b),[O]=(0,$i.useState)(()=>{let se=ta(q,C),ue={};return b.forEach(Ve=>{ue[Ve.name]=se[Ve.name]}),ue});return(0,Le.jsxs)(N2,{initialMode:s?.palette.mode,children:[(0,Le.jsx)("div",{style:{margin:"auto",width:"100%"},children:(0,Le.jsx)(Vo,{columns:b,data:X,options:F,colViews:q,tableCols:oe,updateCols:ie,columnVisibility:O})}),(0,Le.jsx)(sp,{ref:D})]})},Qm=PTe;var up=require("react/jsx-runtime"),_Te=(0,y.styled)(R3.Grid2)(({theme:e})=>({display:"grid",margin:"auto",paddingLeft:"0.5rem",borderRadius:"0.25rem",width:"inherit",gap:e.spacing(1)})),ITe=({teams:e,tableOptions:t,columnVisibility:r,colViews:o,tableCols:a,columns:n,updateCols:i,isRemoveFromTeamAllowed:l,isEditUserAllowed:s,handleEditUser:u,org_id:f,useGetUsersForOrgQuery:d,useNotificationHandlers:p,useRemoveUserFromTeamMutation:m})=>{let x=(0,y.useTheme)();return(0,up.jsx)(no,{children:(0,up.jsx)(Vo,{columns:n,data:e,options:{...t,renderExpandableRow:(h,g)=>{let T=e[g.dataIndex].id;return(0,up.jsx)(R3.TableCell,{colSpan:6,sx:{paddingInline:"4rem",backgroundColor:`${x.palette.background.secondary} !important`},children:(0,up.jsx)(_Te,{container:!0,size:12,children:(0,up.jsx)(Qm,{teamID:T,isRemoveFromTeamAllowed:l,isEditUserAllowed:s,handleEditUser:u,org_id:f,useGetUsersForOrgQuery:d,useNotificationHandlers:p,useRemoveUserFromTeamMutation:m,theme:x})})})}},colViews:o,tableCols:a,updateCols:i,columnVisibility:r})})},Xm=ITe;var YC=require("react");var O3=require("react/jsx-runtime");function kTe({value:e,maxLength:t,...r}){return e.length>t?(0,O3.jsx)(Jt,{title:e,arrow:!0,placement:"top",children:(0,O3.jsx)("div",{style:{maxWidth:"15rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},...r,children:`${e.slice(0,t)}...`})}):(0,O3.jsx)("div",{style:{maxWidth:"15rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},...r,children:e})}var _a=kTe;var dt=require("react/jsx-runtime");function MTe({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)}),(0,dt.jsx)(rG,{children:(0,dt.jsx)(oG,{children:(0,dt.jsx)(ge,{title:"Delete Teams",children:(0,dt.jsx)(co,{height:28,width:28,fill:Ir,onClick:()=>{r(o)}})},"delete_teams")})})}function fp({teams:e,count:t,page:r,pageSize:o,setPage:a,setPageSize:n,sortOrder:i,setSortOrder:l,bulkSelect:s,setBulkSelect:u,handleTeamView:f,handleDeleteTeam:d,handleRemoveTeamFromWorkspace:p,handleleaveTeam:m,teamId:x,workspace:h=!1,isEditTeamAllowed:g,isLeaveTeamAllowed:T,isRemoveTeamFromWorkspaceAllowed:E,isDeleteTeamAllowed:R,setSearch:k}){let{width:D}=ea(),C=(0,y.useTheme)(),v=[["id","na"],["name","xs"],["description","m"],["owner","l"],["created_at","na"],["updated_at","xl"],["deleted_at","na"],["actions","xs"]],P=[{name:"id",label:"ID",options:{filter:!1,sort:!1,searchable:!1,customBodyRender:H=>(0,dt.jsx)(Um,{id:H})}},{name:"name",label:"Name",options:{filter:!1,sort:!0,searchable:!0}},{name:"description",label:"Description",options:{filter:!1,sort:!0,searchable:!1,customBodyRender:H=>(0,dt.jsx)(_a,{value:H??"",maxLength:30})}},{name:"owner",label:"Owner",options:{filter:!1,sort:!0,searchable:!0}},{name:"created_at",label:"Created At",options:{filter:!1,sort:!0,searchable:!1,sortDescFirst:!0}},{name:"updated_at",label:"Updated At",options:{filter:!1,sort:!0,searchable:!1,sortDescFirst:!0}},{name:"deleted_at",label:"Deleted At",options:{filter:!0,sort:!0,searchable:!1,sortDescFirst:!0,customBodyRender:H=>JSON.stringify(H),filterOptions:{names:["Deleted","Not Deleted"],logic:(H,M)=>H!="NA"&&M.indexOf("Deleted")>=0?!0:H=="NA"&&M.indexOf("Not Deleted")>=0,fullWidth:!0}}},{name:"actions",label:"Actions",options:{filter:!1,sort:!1,searchable:!1,customBodyRender:(H,M)=>s||M.rowData[4].Valid?(0,dt.jsxs)(v3,{children:[(0,dt.jsx)($o,{style:{marginRight:".5rem"}}),(0,dt.jsx)(co,{height:28,width:28,fill:Ir})]}):(0,dt.jsxs)(w3,{children:[!h&&(0,dt.jsxs)(dt.Fragment,{children:[(0,dt.jsx)(Ho,{disabled:!g,children:(0,dt.jsx)(Wt,{id:`edit_team-${M.rowIndex}`,title:"Edit Team",onClick:L=>{g&&f(L,M.rowData)},iconType:"edit",children:(0,dt.jsx)($o,{style:{height:28.8,width:28.8},fill:Ir})})}),(0,dt.jsx)(Ho,{disabled:!T,children:(0,dt.jsx)(Wt,{id:`leave_team-${M.rowIndex}`,title:"Leave Team",onClick:L=>T&&m(L,M.rowData),iconType:"delete",children:(0,dt.jsx)(jl,{fill:Ir,secondaryFill:Ir})})})]}),h?(0,dt.jsx)(Ho,{disabled:!E,children:(0,dt.jsx)(Wt,{id:`remove_team-${M.rowIndex}`,title:"Move Team",onClick:()=>{E&&p&&p(M.rowData[0])},iconType:"delete",children:(0,dt.jsx)(co,{height:28,width:28,fill:C.palette.icon.default})})}):(0,dt.jsx)(Ho,{disabled:!R,children:(0,dt.jsx)(Wt,{id:`delete_team-${M.rowIndex}`,title:"Delete Team",onClick:L=>{R&&d(L,M.rowData)},iconType:"delete",children:(0,dt.jsx)(co,{height:28,width:28,fill:Ir})})})]})}}],B=e?.findIndex(H=>H.id===x),_={filter:!1,selectableRows:"none",filterType:"dropdown",expandableRows:!0,expandableRowsHeader:!1,expandableRowsOnClick:!0,responsive:"standard",count:t,rowsPerPage:o,page:r,print:!1,download:!1,elevation:0,serverSide:!0,viewColumns:!1,search:!1,rowsExpanded:[B],customToolbarSelect:H=>(0,dt.jsx)(aG,{children:(0,dt.jsx)(MTe,{selected:H,teams:e,deleteTeamsModalHandler:()=>{}})}),textLabels:{selectedRows:{text:"teams(s) selected"}},onTableChange:(H,M)=>{let L=M.announceText?M.announceText.split(" : "):[],F="";switch(M.activeColumn&&(F=`${P[M.activeColumn].name} desc`),H){case"changePage":a(M.page);break;case"changeRowsPerPage":n(M.rowsPerPage);break;case"search":k(M.searchText!==null?M.searchText:"");break;case"sort":L.length==2&&(L[1]==="ascending"?F=`${P[M.activeColumn].name} asc`:F=`${P[M.activeColumn].name} desc`),F!==i&&l(F);break;case"rowSelectionChange":M.selectedRows.data.length?s||u(!0):u(!1);break;default:M.selectedRows.data.length==0&&s&&u(!1)}},isRowSelectable:H=>e[H].deleted_at.Valid!==!0,setRowProps:(H,M,L)=>(L&&L.selectedRows?L.selectedRows.data:[]).includes(M)?{style:{backgroundColor:C.palette.background.hover}}:H[6].Valid?{style:{backgroundColor:C.palette.icon.disabled}}:{style:{backgroundColor:C.palette.background.constant?.table}}},[J,X]=(0,YC.useState)(P),[N,W]=(0,YC.useState)(()=>{let H=ta(v,D),M={};return P.forEach(L=>{M[L.name]=H[L.name]}),M});return{columns:P,tableOptions:_,tableCols:J,updateCols:X,columnVisibility:N,setColumnVisibility:W,colViews:v}}var Ia=G(require("react"));var Ot=require("react/jsx-runtime"),LTe=({width:e=V,height:t=U,primaryFill:r="#00B39F",secondaryFill:o="#00D3A9",...a})=>(0,Ot.jsxs)("svg",{width:e,height:t,viewBox:"0 0 135 135",...a,xmlns:"http://www.w3.org/2000/svg",children:[(0,Ot.jsx)("path",{d:"M69.5 31.82V64.07L97.45 47.89L69.5 31.82Z",fill:o}),(0,Ot.jsx)("path",{d:"M69.5 70.81V103.22L97.7 87.09L69.5 70.81Z",fill:o}),(0,Ot.jsx)("path",{d:"M65.47 63.85V32.09L37.87 47.92L65.47 63.85Z",fill:r}),(0,Ot.jsx)("path",{d:"M10.1 103.1C15.5182 111.811 22.842 119.179 31.52 124.65V90.71L10.1 103.1Z",fill:r}),(0,Ot.jsx)("path",{d:"M65.47 103.06V71.05L37.8 87.07L65.47 103.06Z",fill:r}),(0,Ot.jsx)("path",{d:"M35.54 122.63L63.56 106.61L35.54 90.41V122.63Z",fill:o}),(0,Ot.jsx)("path",{d:"M99.62 122.8V90.63L71.64 106.63L99.62 122.8Z",fill:r}),(0,Ot.jsx)("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}),(0,Ot.jsx)("path",{d:"M103.64 83.69L131.76 67.61L103.64 51.45V83.69Z",fill:o}),(0,Ot.jsx)("path",{d:"M99.62 44.5V12.52L71.77 28.49L99.62 44.5Z",fill:r}),(0,Ot.jsx)("path",{d:"M99.62 83.55V51.28L71.7 67.44L99.62 83.55Z",fill:r}),(0,Ot.jsx)("path",{d:"M35.54 51.22V83.73L63.66 67.45L35.54 51.22Z",fill:o}),(0,Ot.jsx)("path",{d:"M65.47 0C55.1388 0.298791 45.016 2.97835 35.89 7.83L65.52 24.83L65.47 0Z",fill:r}),(0,Ot.jsx)("path",{d:"M35.54 12.3V44.62L63.69 28.48L35.54 12.3Z",fill:o}),(0,Ot.jsx)("path",{d:"M31.52 10.34C22.8442 15.8136 15.521 23.1813 10.1 31.89L31.52 44.25V10.34Z",fill:r}),(0,Ot.jsx)("path",{d:"M99.43 8C90.2123 3.0393 79.9635 0.299881 69.5 0V25.15L99.43 8Z",fill:o}),(0,Ot.jsx)("path",{d:"M0 69.87C0.348236 80.2825 3.1145 90.4711 8.08 99.63L29.77 87.07L0 69.87Z",fill:o}),(0,Ot.jsx)("path",{d:"M8.07001 35.37C3.13121 44.4917 0.372439 54.6334 0.0100098 65L29.8 47.91L8.07001 35.37Z",fill:o}),(0,Ot.jsx)("path",{d:"M35.78 127.13C44.9355 132.013 55.0981 134.706 65.47 135V110.15L35.78 127.13Z",fill:r}),(0,Ot.jsx)("path",{d:"M124.89 32C119.512 23.3126 112.237 15.9553 103.61 10.48V44.3L124.89 32Z",fill:o}),(0,Ot.jsx)("path",{d:"M103.64 124.54C112.314 119.022 119.624 111.61 125.02 102.86L103.64 90.52V124.54Z",fill:o}),(0,Ot.jsx)("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}),(0,Ot.jsx)("path",{d:"M69.5 135C79.845 134.709 89.9825 132.029 99.12 127.17L69.5 110V135Z",fill:o}),(0,Ot.jsx)("path",{d:"M31.52 83.44V51.56L3.83002 67.43L31.52 83.44Z",fill:r})]}),ZC=LTe;var TG=G(require("@mui/material/Tooltip")),SG=G(require("react")),QC=require("react/jsx-runtime"),DTe=SG.default.forwardRef((e,t)=>(0,QC.jsx)(TG.default,{...e,ref:t,children:(0,QC.jsx)("span",{children:e.children})})),XC=DTe;var Yn=require("@mui/material");var CG=(0,Yn.styled)(Nt)(({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"})),yG=(0,Yn.styled)(An)(({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%"}})),JC=(0,Yn.styled)(z)(({theme:e})=>({paddingBottom:"15px",color:e.palette.text?.default,textAlign:"center",fontSize:"1rem",letterSpacing:"0.15px"})),Jm=(0,Yn.styled)(ke)(({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:`${et} !important`,fill:e.palette.icon.inverse}})),ey=(0,Yn.styled)(Yn.Grid2)({padding:"0 1rem","@media (max-width: 768px)":{padding:"0",display:"flex",alignItems:"center",flexDirection:"column",width:"100%"}}),bG=(0,Yn.styled)(Yn.Grid2)({padding:"2.5rem 1rem 0 1rem","@media (max-width: 768px)":{padding:"1rem",transform:"rotate(90deg)",height:"6.25rem",marginLeft:"6.25rem"}});var qe=require("react/jsx-runtime"),vG={CHIP:"chip",OTHER:"other"};function FTe(e){return e?{meshery:(0,qe.jsx)(ZC,{}),kubernetes:(0,qe.jsx)(md,{}),github:(0,qe.jsx)(tu,{})}[e]||null:(0,qe.jsx)(md,{})}function A3(e,t){return e.filter(r=>t.indexOf(r)===-1)}function wG(e,t){return e.filter(r=>t.indexOf(r)!==-1)}function NTe({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=vG.OTHER}){let[h,g]=Ia.default.useState([]),[T,E]=Ia.default.useState([]),[R,k]=Ia.default.useState(n),[D,C]=Ia.default.useState(0),[v,P]=Ia.default.useState(0);Ia.default.useEffect(()=>{k(n)},[n]),Ia.default.useEffect(()=>{E(t)},[t]),Ia.default.useEffect(()=>{C(f),P(d)},[f,d]);let B=wG(h,T),_=wG(h,R);Ia.default.useEffect(()=>{r(R)},[R]),Ia.default.useEffect(()=>{let L=b=>{b[0].isIntersecting&&o()},F=new IntersectionObserver(L,{threshold:1}),q=document.getElementById("leftList");return q&&F.observe(q),()=>{q&&F.unobserve(q)}},[t]),Ia.default.useEffect(()=>{let L=b=>{b[0].isIntersecting&&a()},F=new IntersectionObserver(L,{threshold:1}),q=document.getElementById("rightList");return q&&F.observe(q),()=>{q&&F.unobserve(q)}},[n]);let J=L=>()=>{let F=h.indexOf(L),q=[...h];F===-1?q.push(L):q.splice(F,1),g(q)},X=L=>{L.stopPropagation(),k(R.concat(T)),E([]),C(0),P(F=>F+D)},N=L=>{L.stopPropagation(),k(R.concat(B)),E(A3(T,B)),g(A3(h,B)),C(F=>F-B.length),P(F=>F+B.length)},W=L=>{L.stopPropagation(),E(T.concat(_)),k(A3(R,_)),g(A3(h,_)),P(F=>F-_.length),C(F=>F+_.length)},H=L=>{L.stopPropagation(),E(T.concat(R)),k([]),P(0),C(F=>F+v)},M=(L,F,q,b)=>(0,qe.jsxs)(yG,{children:[(0,qe.jsx)(Xr,{dense:!0,component:"div",role:"list",children:L.length>0?L.map(oe=>{let ie=`transfer-list-item-${oe.name}-label`;return(0,qe.jsxs)(Pr,{role:"listitem",sx:{display:"flex",justifyContent:"space-between","&:hover":{backgroundColor:"#00000010"}},onClick:J(oe),children:[x===vG.CHIP?(0,qe.jsx)(XC,{title:oe.name,placement:"top",children:(0,qe.jsx)(CG,{sx:{paddingY:"10px"},variant:"outlined",label:oe.name,onDelete:()=>{},deleteIcon:(0,qe.jsx)(l5,{}),icon:FTe(oe?.kind)||(0,qe.jsx)(md,{})})}):(0,qe.jsx)(XC,{title:oe.name,placement:"top",children:(0,qe.jsx)(z,{sx:{maxWidth:"230px",height:"1.5rem",overflow:"hidden"},children:oe.name})}),(0,qe.jsx)(Qr,{checked:h.indexOf(oe)!==-1,tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":ie}})]},oe.id)}):(0,qe.jsxs)("div",{style:{textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"264px"},children:[F,(0,qe.jsx)(z,{sx:{color:"#979797",px:5,py:2,lineHeight:1},children:q})]})}),(0,qe.jsx)("div",{id:b})]});return(0,qe.jsxs)(he,{container:!0,justifyContent:"center",alignItems:"center",children:[(0,qe.jsxs)(ey,{children:[(0,qe.jsxs)(JC,{children:["Available ",e," (",T.length,")"]}),M(T,i,l,"leftList")]}),(0,qe.jsx)(bG,{children:(0,qe.jsxs)(he,{container:!0,direction:"column",alignItems:"center",children:[(0,qe.jsxs)(Jm,{variant:"outlined",size:"small",onClick:X,disabled:!m||m&&(T?.length===0||T.length<D),"aria-label":"move all right",children:[(0,qe.jsx)(yd,{width:18,height:18}),(0,qe.jsx)(yd,{style:{position:"absolute",left:"27px"},width:18,height:18})]}),(0,qe.jsx)(Jm,{variant:"outlined",size:"small",onClick:N,disabled:!m||m&&B.length===0,"aria-label":"move selected right",children:(0,qe.jsx)(yd,{width:18,height:18})}),(0,qe.jsx)(Jm,{variant:"outlined",size:"small",onClick:W,disabled:!p||p&&_.length===0,"aria-label":"move selected left",children:(0,qe.jsx)(xd,{width:18,height:18})}),(0,qe.jsxs)(Jm,{variant:"outlined",size:"small",onClick:H,disabled:!p||p&&(R?.length===0||R.length<v),"aria-label":"move all left",children:[(0,qe.jsx)(xd,{width:18,height:18}),(0,qe.jsx)(xd,{style:{position:"absolute",left:"27px"},width:18,height:18})]})]})}),(0,qe.jsxs)(ey,{children:[(0,qe.jsxs)(JC,{children:["Assigned ",e," (",R.length,")"]}),M(R,s,u,"rightList")]})]})}var dp=NTe;var pp=require("@mui/material"),ty=G(require("react"));var ir=require("react/jsx-runtime"),BTe=(0,pp.styled)("div")(({theme:e})=>({background:e.palette.mode==="light"?Si.header:Ti.header,padding:"0.75rem 1rem",margin:"-1rem -1rem 1rem -1rem",display:"flex",justifyContent:"space-between",alignItems:"center"}));function HTe({filters:e,selectedFilters:t,setSelectedFilters:r,variant:o="outlined",handleApplyFilter:a,showAllOption:n=!0,id:i}){let[l,s]=ty.default.useState(null),[u,f]=ty.default.useState(!1),d=(0,y.useTheme)(),p=(0,pp.useMediaQuery)(d.breakpoints.down("sm")),m=E=>{s(E.currentTarget),f(R=>!R)},x=()=>{s(null),f(!1)},h=(E,R)=>{let k=E.target.value;r(D=>({...D,[R]:k}))},g=()=>{x(),a()},T=()=>(0,ir.jsxs)("div",{children:[(0,ir.jsx)(BTe,{children:(0,ir.jsx)("h3",{children:"Filters: "})}),Object.keys(e).map(E=>{let R=e[E].options;return(0,ir.jsxs)("div",{role:"presentation",children:[(0,ir.jsx)(Dl,{id:e[E].name,children:e[E].name}),(0,ir.jsxs)(xa,{defaultValue:"All",value:t[E],variant:o,onChange:k=>h(k,E),style:{width:"20rem",marginBottom:"1rem"},inputProps:{"aria-label":"Without label"},displayEmpty:!0,children:[n&&(0,ir.jsx)(It,{value:"All",children:"All"}),R.map(k=>(0,ir.jsx)(It,{value:k.value,children:k.label},k.value))]},E)]},E)}),(0,ir.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,ir.jsx)(ke,{variant:"contained",onClick:g,children:"Apply"})})]});return(0,ir.jsx)(ir.Fragment,{children:(0,ir.jsxs)("div",{id:i,children:[(0,ir.jsx)(Wt,{title:"Filter",onClick:m,icon:(0,ir.jsx)(q2,{fill:d.palette.icon.default}),arrow:!0}),p?(0,ir.jsx)(pp.Drawer,{anchor:"bottom",open:u,onClose:x,PaperProps:{style:{padding:"0 1rem 1rem 1rem",backgroundColor:d.palette.background.surfaces}},children:T()}):(0,ir.jsx)(Xd,{id:u&&l?"transition-popper":void 0,open:u,anchorEl:l,placement:"bottom-end",children:(0,ir.jsx)(On,{onClickAway:x,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:(0,ir.jsx)(An,{sx:{padding:"1rem",paddingTop:"1.8rem",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",backgroundColor:d.palette.background.surfaces},children:T()})})})]})})}var EG=HTe;var RG=require("react");var oa=require("react/jsx-runtime"),dn={PUBLIC:"public",PRIVATE:"private",PUBLISHED:"published"},VTe=(0,y.styled)(Fl)(({theme:e})=>({"& .MuiPaper-root":{backgroundColor:e.palette.mode==="light"?u1: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"?$s:"rgba(0, 179, 159, 0.25)"}},"& .Mui-selected":{backgroundColor:e.palette.mode==="light"?$s:"rgba(0, 179, 159, 0.25)"},"& .MuiList-padding":{padding:"0px"}})),UTe=(0,y.styled)(ke)(()=>({padding:"0px"})),WTe=(0,y.styled)("div")(({theme:e,enabled:t})=>({paddingLeft:"0.3rem",height:"1.5rem",width:"auto",paddingRight:t?"0":"0.3rem",borderRadius:"0.25rem",border:`1px solid ${Jf}`,background:e?.palette.mode==="light"?u1: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})),qTe=(0,y.styled)(It)(({theme:e})=>({textTransform:"capitalize",color:e.palette.icon.default})),GTe=(0,y.styled)("div")({marginRight:"0.5rem"}),zTe=({value:e,onChange:t,options:r,enabled:o})=>{let[a,n]=(0,RG.useState)(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(0,oa.jsxs)(oa.Fragment,{children:[(0,oa.jsx)(UTe,{disabled:!o,onClick:s,"data-testid":`design-visibility-${e.toLowerCase()}`,children:(0,oa.jsxs)(WTe,{enabled:o,children:[(0,oa.jsx)("span",{style:{fontSize:"0.85rem"},children:e}),o&&(0,oa.jsx)(SF,{style:{...Zo}})]})}),(0,oa.jsx)(VTe,{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)=>(0,oa.jsxs)(qTe,{"data-testid":`visibility-toggle-${f.toLowerCase()}`,onClick:m=>u(m,f),children:[(0,oa.jsx)(GTe,{children:(0,oa.jsx)(d,{width:16,height:16})}),f]},p))})]})},Yi=zTe;var FG=require("@mui/material");var Uo=require("@mui/material"),OG=(0,Uo.styled)("div")(()=>({width:"85px",height:"88px",overflow:"hidden",position:"absolute",top:"-3px",left:"-3px"})),AG=(0,Uo.styled)("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"})),PG=(0,Uo.styled)("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})),_G=(0,Uo.styled)("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"})),IG=(0,Uo.styled)("span")(({theme:e})=>({position:"absolute",top:"0",right:"0",minWidth:"3rem",padding:"0 0.75rem",fontSize:"0.875rem",textTransform:"capitalize",background:e.palette.background.brand?.default,color:e.palette.text.inverse,borderRadius:"0 1rem 0 2rem"})),mp=(0,Uo.styled)("p")(({theme:e})=>({fontSize:"1rem",textTransform:"capitalize",margin:"0rem",lineHeight:"1.5",textAlign:"center",color:e.palette.text.secondary,fontWeight:"600"})),kG=(0,Uo.styled)(Uo.Typography)(({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%"})),MG=(0,Uo.styled)("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%"})),cp=(0,Uo.styled)("div")(()=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.2rem",color:"rgba(26, 26, 26, .8)",margin:"0rem",padding:"0.1rem"})),LG=(0,Uo.styled)("div")(()=>({height:"max-content",display:"flex",marginTop:"-1rem",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start","@media (max-width:1200px)":{height:"max-content"}})),DG=(0,Uo.styled)("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"}));var Ze=require("react/jsx-runtime"),Lpt=(0,FG.styled)("a")(()=>({textDecoration:"none"}));var jTe=({catalogClassName:e})=>e?(0,Ze.jsx)(OG,{children:(0,Ze.jsx)(AG,{catalogClassName:e,children:e})}):(0,Ze.jsx)(Ze.Fragment,{}),KTe=({pattern:e,patternType:t,cardHeight:r,cardWidth:o,cardStyles:a,onCardClick:n})=>{let i={height:r,width:o,...a};return(0,Ze.jsx)(PG,{outerStyles:i,onClick:n,children:(0,Ze.jsxs)(_G,{className:"innerCard",children:[(0,Ze.jsx)(jTe,{catalogClassName:e?.catalog_data?.content_class}),(0,Ze.jsx)(IG,{children:t}),(0,Ze.jsxs)(LG,{children:[(0,Ze.jsx)(kG,{style:{margin:"3rem 0 1.59rem 0",textAlign:"center"},children:e.name}),(0,Ze.jsx)(DG,{children:(0,Ze.jsx)(Ja,{height:"118",width:"120"})})]}),(0,Ze.jsxs)(MG,{children:[(0,Ze.jsxs)(cp,{children:[(0,Ze.jsx)(Ca,{width:18,height:18}),(0,Ze.jsx)(mp,{children:e.download_count})]}),(0,Ze.jsxs)(cp,{children:[(0,Ze.jsx)(od,{width:18,height:18,fill:"#51636B"}),(0,Ze.jsx)(mp,{children:e.clone_count})]}),(0,Ze.jsxs)(cp,{children:[(0,Ze.jsx)(Td,{width:18,height:18,fill:"#51636B"}),(0,Ze.jsx)(mp,{children:e.view_count})]}),(0,Ze.jsxs)(cp,{children:[(0,Ze.jsx)(dd,{width:18,height:18}),(0,Ze.jsx)(mp,{children:e.deployment_count})]}),(0,Ze.jsxs)(cp,{children:[(0,Ze.jsx)(Ln,{width:18,height:18,fill:"#51636B"}),(0,Ze.jsx)(mp,{children:e.share_count})]})]})]})})},ry=KTe;var jG=require("@mui/material/styles"),oc=require("react");var rc=require("react");var P3=require("react");var HG=require("lodash"),Lu=require("react");var oy=require("@mui/material");var NG=(0,oy.styled)(js)(({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})),BG=(0,oy.styled)(Uf)(({theme:e})=>({borderLeft:`1px solid ${e.palette.background.tertiary}`,height:"30px",paddingLeft:"10px"}));var ec=require("react/jsx-runtime");function $Te({onChange:e,value:t="",label:r,sx:o,placeholder:a,endAdornment:n,debounceTime:i=300}){let l=(0,y.useTheme)(),[s,u]=(0,Lu.useState)(t);(0,Lu.useEffect)(()=>{t!==s&&u(t)},[t]);let f=m=>({target:{value:m},persist:()=>{}}),d=(0,Lu.useMemo)(()=>(0,HG.debounce)(m=>{e?.(f(m))},i),[e,i]);return(0,Lu.useEffect)(()=>{if(e)return s===""?e(f(s)):d(s),()=>{d.cancel()}},[s,e,d]),(0,ec.jsx)(NG,{type:"search",label:r,fullWidth:!0,value:s,onChange:m=>{let x=m.target.value;u(x)},sx:o,placeholder:a??"Search",startAdornment:(0,ec.jsx)(Uf,{position:"start",children:(0,ec.jsx)(bd,{fill:l.palette.background.neutral?.default})}),endAdornment:(0,ec.jsx)(BG,{position:"end",children:n})})}var tc=$Te;var Zn=require("@mui/material/styles");var VG=(0,Zn.styled)(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"}})),UG=(0,Zn.styled)("div")(()=>({display:"none","@media (max-width:899px)":{display:"block"}})),Zpt=(0,Zn.styled)("div")(()=>({display:"flex",justifyContent:"space-around",alignItems:"center"})),WG=(0,Zn.styled)(ke)(({theme:e})=>({backgroundColor:e.palette.primary.brand?.default,"&:hover":{backgroundColor:e.palette.background.default},height:"3.75rem","@media (max-width:450px)":{minWidth:"0px"}})),qG=(0,Zn.styled)(K)(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0.5rem 1rem",background:e.palette.mode==="light"?Si.header:Ti.header,height:"10vh"})),Qpt=(0,Zn.styled)(ci)(({theme:e})=>({padding:"0.25rem 2rem",borderBottom:"1px solid",borderBottomColor:e.palette.text.disabled})),GG=(0,Zn.styled)(ci)(({theme:e})=>({backgroundColor:e.palette.background.surfaces,borderRadius:"0.5rem",marginTop:2,display:"flex",justifyContent:"space-between"})),zG=(0,Zn.styled)("p")(({theme:e})=>({color:e.palette.text.tertiary})),Xpt=(0,Zn.styled)("span")(()=>({marginLeft:"0.5rem",display:"block","@media (max-width: 853px)":{display:"none"}}));var lr=require("react/jsx-runtime"),YTe=({filterKey:e,sectionDisplayName:t,options:r=[],filters:o,openSections:a,onCheckboxChange:n,onSectionToggle:i,styleProps:l,customComponent:s})=>{let[u,f]=(0,P3.useState)(""),d=(0,P3.useCallback)(x=>{f(x.target.value)},[]),p=r.length>10,m=u&&r.length?r.filter(x=>x.label.toLowerCase().includes(u.toLowerCase())):r;return(0,lr.jsxs)(lr.Fragment,{children:[(0,lr.jsxs)(GG,{onClick:()=>i(e),style:{backgroundColor:l.sectionTitleBackgroundColor},children:[(0,lr.jsx)(z,{sx:{fontSize:"1rem"},fontWeight:"bold",fontFamily:l.fontFamily,children:(t||e).toUpperCase()}),a[e]?(0,lr.jsx)(Yl,{}):(0,lr.jsx)(Yo,{})]}),(0,lr.jsx)(ma,{in:a[e],timeout:"auto",unmountOnExit:!0,children:s?(0,lr.jsx)(s,{}):(0,lr.jsxs)(Xr,{component:"div",sx:{overflowY:"auto",maxHeight:"25rem",backgroundColor:l.backgroundColor,"&::-webkit-scrollbar":{width:"6px"}},children:[p&&(0,lr.jsx)(K,{sx:{px:"0.5rem",mb:"0.5rem"},children:(0,lr.jsx)(tc,{value:u,onChange:d,placeholder:"Search",endAdornment:(0,lr.jsxs)(zG,{children:["Total : ",m.length??0]})})}),m.map((x,h)=>(0,lr.jsxs)(jf,{direction:"row",alignItems:"center",px:"0.5rem",justifyContent:"space-between",children:[(0,lr.jsxs)(jf,{direction:"row",alignItems:"center",gap:"0.35rem",children:[(0,lr.jsx)(Qr,{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&&(0,lr.jsx)(x.Icon,{width:"20px",height:"20px"}),(0,lr.jsx)(z,{fontFamily:l.fontFamily,children:x.label})]}),(0,lr.jsxs)(jf,{direction:"row",alignItems:"center",gap:"0.35rem",children:[x.totalCount!==void 0&&`(${x.totalCount||0})`,x.description&&(0,lr.jsx)(Ui,{variant:"standard",helpText:x.description})]})]},`${x.value}-${h}`))]})})]})},ay=YTe;var xp=require("react/jsx-runtime"),ZTe=({lists:e,onApplyFilters:t,value:r,styleProps:o})=>{let[a,n]=(0,rc.useState)(()=>{let s={};return e.forEach(u=>{s[u.filterKey]=!!u.defaultOpen}),s}),i=(0,rc.useCallback)(s=>{n(u=>({...u,[s]:!u[s]}))},[]),l=(0,rc.useCallback)((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(0,xp.jsx)(xp.Fragment,{children:e.map(s=>s.customComponent?(0,xp.jsx)(ay,{filterKey:s.filterKey,filters:r,sectionDisplayName:s.sectionDisplayName,onSectionToggle:i,styleProps:o,openSections:a,customComponent:s.customComponent},s.filterKey):(0,xp.jsx)(ay,{filterKey:s.filterKey,sectionDisplayName:s.sectionDisplayName,options:s.options,filters:r,openSections:a,onCheckboxChange:l,onSectionToggle:i,styleProps:o},s.filterKey))})},ny=ZTe;var cr=require("react/jsx-runtime"),QTe=({lists:e,setData:t,value:r={},styleProps:o})=>{let a=(0,jG.useTheme)(),[n,i]=(0,oc.useState)(!1),l=(0,oc.useCallback)(()=>{i(!0)},[]),s=(0,oc.useCallback)(()=>{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:Vl.main,fontFamily:a.typography.fontFamily},...o};return(0,cr.jsxs)(cr.Fragment,{children:[(0,cr.jsx)(VG,{styleProps:f,children:(0,cr.jsx)(ny,{lists:e,onApplyFilters:t,value:r,styleProps:f})}),(0,cr.jsxs)(UG,{children:[(0,cr.jsx)(ge,{title:"Filters",placement:"bottom",children:(0,cr.jsx)(WG,{variant:"contained",onClick:l,children:(0,cr.jsx)(PF,{style:{height:"28px",width:"28px"},fill:a.palette.text.default})})}),(0,cr.jsx)(x2,{anchor:"bottom",open:n,variant:"temporary",onClose:s,style:{zIndex:"1399"},children:(0,cr.jsxs)(K,{sx:{overflowY:"hidden",height:"90vh"},children:[(0,cr.jsxs)(qG,{children:[(0,cr.jsx)(z,{variant:"h6",sx:{color:a.palette.text.constant?.white},component:"div",children:"Filters"}),(0,cr.jsx)(Au,{onClick:s,children:(0,cr.jsx)(Bt,{height:"32px",width:"32px"})})]}),(0,cr.jsx)(K,{style:{height:"75vh",overflowY:"auto",background:a.palette.background.surfaces,padding:"0 16px"},children:(0,cr.jsx)(ny,{lists:e,onApplyFilters:t,value:r,styleProps:f})}),(0,cr.jsx)(K,{sx:{background:a.palette.mode==="light"?Si.fotter:Ti.fotter,height:"5vh"}})]})})]})]})},iy=QTe;var Du=require("react/jsx-runtime");function XTe({open:e,content:t,title:r,actions:o,onClose:a}){return(0,Du.jsxs)(ca,{open:e,onClose:a,children:[(0,Du.jsx)(Lm,{children:r}),(0,Du.jsx)(Il,{children:(0,Du.jsx)(kl,{children:t})}),(0,Du.jsx)(Vf,{children:o})]})}var ly=XTe;var hp=require("@mui/material"),aa=G(require("react"));var Kt=require("react/jsx-runtime"),KG=require("react"),JTe=({data:e,label:t,fetchSuggestions:r,setFilterData:o,isLoading:a,type:n,disabled:i,selectedData:l,searchValue:s,setSearchValue:u,iconComponent:f=(0,Kt.jsx)(V1,{...kd})})=>{let[d,p]=(0,aa.useState)(""),[m,x]=(0,aa.useState)(!1),[h,g]=(0,aa.useState)(!1),[T,E]=(0,aa.useState)(l);(0,aa.useEffect)(()=>{E(l)},[l]);let R=(0,aa.useCallback)(C=>{let v=T.filter(P=>P.id!==C);E(v),o(v)},[T,o]),k=(0,aa.useCallback)((C,v)=>{if(!v)return;if(T.some(_=>_.id===v.id)){p(`${n} already selected`);return}let B=[...T,v];E(B),o(B),p(""),u(""),x(!1)},[T,o,n,u]),D=(0,aa.useCallback)((C,v)=>{u(v),v===""?x(!1):(r(v),p(""),x(!0))},[r,u]);return(0,Kt.jsxs)(K,{sx:{width:"100%"},children:[(0,Kt.jsx)(hp.Autocomplete,{id:`${n}-search-field`,style:{width:"100%"},options:e,getOptionLabel:()=>s,isOptionEqualToValue:(C,v)=>C.id===v.id,noOptionsText:a?"Loading...":`No ${n} found`,loading:a,open:m,onClose:()=>x(!1),disabled:i,value:void 0,inputValue:s,onChange:k,onInputChange:D,filterOptions:C=>C,disableClearable:!0,includeInputInList:!0,filterSelectedOptions:!0,disableListWrap:!0,clearOnBlur:!0,popupIcon:null,blurOnSelect:!0,forcePopupIcon:!1,renderInput:C=>(0,Kt.jsx)(Jr,{...C,label:t||`Add ${n}`,error:!!d,helperText:d,fullWidth:!0,InputLabelProps:{style:{fontFamily:"inherit"}},InputProps:{...C.InputProps,endAdornment:(0,Kt.jsx)(aa.default.Fragment,{children:a?(0,Kt.jsx)(jt,{color:"inherit",size:20}):null})}}),renderOption:(C,v)=>(0,KG.createElement)("li",{...C,key:v.id},(0,Kt.jsx)(K,{component:"li",sx:{"& > img":{mr:2,flexShrink:0}},children:(0,Kt.jsxs)(hp.Grid2,{container:!0,alignItems:"center",children:[(0,Kt.jsx)(hp.Grid2,{children:(0,Kt.jsx)(K,{sx:{color:"text.secondary",mr:2},children:f})}),(0,Kt.jsx)(hp.Grid2,{size:"grow",children:(0,Kt.jsx)(z,{variant:"body2",children:v.name})})]})}))}),(0,Kt.jsxs)(K,{sx:{display:"flex",flexWrap:"wrap",gap:.5,mt:T?.length>0?"0.5rem":""},children:[!h&&T?.length>0&&(0,Kt.jsx)(Nt,{avatar:f,label:T[T.length-1]?.name,size:"small",onDelete:()=>R(T[T.length-1]?.id),deleteIcon:(0,Kt.jsx)(Jt,{title:`Remove ${n}`,children:(0,Kt.jsx)(Bt,{style:To})})},T[T.length-1]?.id),h&&T?.map(C=>(0,Kt.jsx)(Nt,{avatar:(0,Kt.jsx)(V1,{...To}),label:C.name,size:"small",onDelete:()=>R(C.id),deleteIcon:(0,Kt.jsx)(Jt,{title:`Remove ${n}`,children:(0,Kt.jsx)(Bt,{style:To})})},C.id)),T?.length>1&&(0,Kt.jsx)(z,{onClick:()=>g(!h),sx:{cursor:"pointer"},children:h?"(hide)":`(+${T?.length-1})`})]})]})},sy=JTe;var ac=require("@mui/material"),$G=(0,ac.styled)("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"}})),YG=(0,ac.styled)("div")({display:"inline-flex"}),ZG=(0,ac.styled)("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)"})),QG=(0,ac.styled)("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)"}}));var Ts=require("react/jsx-runtime"),e8e=({chapterNum:e,chapter:t})=>(0,Ts.jsx)($G,{id:t.frontmatter.courseTitle?t.frontmatter.courseTitle:void 0,children:(0,Ts.jsxs)(YG,{children:[(0,Ts.jsx)(ZG,{children:e}),(0,Ts.jsxs)(QG,{children:[(0,Ts.jsx)("h2",{children:t.frontmatter.chapterTitle?t.frontmatter.chapterTitle:t.frontmatter.courseTitle}),(0,Ts.jsx)("p",{children:t.frontmatter.description})]})]})}),uy=e8e;var _3=require("@mui/material"),I3=G(require("react"));var Fu=require("@mui/material/styles");var W1t=(0,Fu.styled)("div")(({theme:e})=>({marginLeft:".5rem",color:e.palette.background.secondary})),XG=(0,Fu.styled)(qf)({overflowY:"auto",scrollbarWidth:"none","&::-webkit-scrollbar":{width:"0em"}}),JG=(0,Fu.styled)(Pr)(()=>({pointerEvents:"auto",margin:"0.5rem 0rem 0.5rem 0rem",fontSize:"0.1rem",padding:"0"})),ez=(0,Fu.styled)(Pr)(()=>({pointerEvents:"auto",margin:"0rem 0rem 0rem 0.5rem",fontSize:"0.1rem"})),tz=(0,Fu.styled)("div")({marginRight:"0.75rem",marginLeft:"0.5rem"}),rz=(0,Fu.styled)("div")({marginRight:"0.5rem"});var Yr=require("react/jsx-runtime"),t8e=({navigationItems:e,MenuListProps:t={},ListItemTextProps:r={}})=>{let o=(0,_3.useTheme)(),a=(0,_3.useMediaQuery)(o.breakpoints.up("sm")),[n,i]=(0,I3.useState)(null),l=(s,u)=>{u.stopPropagation(),i(f=>f===s?null:s)};return(0,Yr.jsx)(XG,{...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:(0,Yr.jsxs)(I3.default.Fragment,{children:[(0,Yr.jsxs)(It,{disabled:!f,onClick:s.onClick,"data-testid":`nav-item-${s.id}`,children:[(0,Yr.jsxs)(JG,{children:[s.icon&&(0,Yr.jsx)(tz,{children:s.icon}),(0,Yr.jsx)(Xt,{primary:s.title,...r})]}),s.subItems&&(0,Yr.jsx)(Xt,{"data-testid":`nav-toggle-${s.id}`,children:u?(0,Yr.jsx)(Yl,{onClick:m=>l(s.id,m)}):(0,Yr.jsx)(Yo,{onClick:m=>l(s.id,m)})})]}),s.subItems&&(0,Yr.jsx)(ma,{in:u,timeout:"auto",unmountOnExit:!0,variant:"submenu",children:s.subItems.map(m=>(0,Yr.jsx)(It,{disabled:!m.permission,onClick:m.onClick,"data-testid":`nav-subitem-${m.id}`,children:(0,Yr.jsxs)(ez,{children:[m.icon&&(0,Yr.jsx)(rz,{children:m.icon}),(0,Yr.jsx)(Xt,{primary:m.title,...r})]})},m.id))}),d&&(0,Yr.jsx)(Oo,{})]},s.id)})})},fy=t8e;var k3=require("@mui/material");var gp=require("react/jsx-runtime"),r8e=(0,k3.styled)("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"})),o8e=(0,k3.styled)("h4")(({type:e,theme:t})=>({color:e==="warning"?t.palette.text.warning:t.palette.background.brand?.default,fontSize:"1.35rem"})),a8e=(0,k3.styled)("p")(({theme:e})=>({color:e.palette.text.inverse})),n8e=({type:e="note",title:t,content:r})=>(0,gp.jsxs)(r8e,{type:e,children:[(0,gp.jsx)(o8e,{type:e,children:t}),(0,gp.jsx)(a8e,{children:(0,gp.jsx)(Qd,{content:r})})]}),dy=n8e;var dz=require("re-resizable"),pz=G(require("react-draggable"));var Ss=require("react/jsx-runtime"),i8e=({height:e=24,width:t=24,fill:r="#E8EFF3",...o})=>(0,Ss.jsxs)("svg",{width:t,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:[(0,Ss.jsx)("g",{clipPath:"url(#clip0_34897_172744)",children:(0,Ss.jsx)("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})}),(0,Ss.jsx)("defs",{children:(0,Ss.jsx)("clipPath",{id:"clip0_34897_172744",children:(0,Ss.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]}),py=i8e;var fmt=(0,y.styled)(Pr)(({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}})),dmt=(0,y.styled)(Pr,{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}})),oz=(0,y.styled)("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})),az=(0,y.styled)(K)(({theme:e})=>({padding:e.spacing(2),backgroundColor:e.palette.background.surfaces,overflow:"auto",flex:1,minHeight:0})),nz=(0,y.styled)("div")({height:"100%",display:"flex",flexDirection:"column",minHeight:"3rem"}),iz=(0,y.styled)(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})),lz=(0,y.styled)(py)(({theme:e})=>({fill:e.palette.common.white,position:"absolute",top:"-0.3rem",left:"50%"})),sz=(0,y.styled)("div")({display:"flex",gap:"1rem",justifyContent:"flex-end",alignItems:"center"}),uz=(0,y.styled)("div")({display:"flex",justifyContent:"end",alignItems:"center",flex:"1"}),M3=(0,y.styled)(Xe)(({theme:e})=>({color:e.palette.common.white})),fz=(0,y.styled)("div")(()=>({position:"absolute",left:"0",right:"0",marginInline:"auto",width:"fit-content"}));var qt=require("react/jsx-runtime"),l8e=({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=(0,y.useTheme)();return e?(0,qt.jsx)(pz.default,{handle:".drag-handle",children:(0,qt.jsx)(iz,{intitialPosition:l,sx:s,children:(0,qt.jsx)(dz.Resizable,{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:(0,qt.jsx)(nz,{children:(0,qt.jsxs)(no,{children:[(0,qt.jsx)("div",{className:"drag-handle",children:(0,qt.jsxs)(oz,{children:[(0,qt.jsx)(K,{display:"flex",justifyContent:"flex-end",padding:"8px",children:a&&(0,qt.jsx)(Jt,{title:o?"Collapse All":"Expand All",children:(0,qt.jsx)(M3,{onClick:a,children:o?(0,qt.jsx)(H2,{}):(0,qt.jsx)(W2,{})})})}),(0,qt.jsx)(lz,{}),(0,qt.jsxs)(uz,{children:[(0,qt.jsx)(sz,{id:`${t}-panel-header-actions-container`}),(0,qt.jsx)(fz,{children:f}),u&&(0,qt.jsx)(M3,{onClick:u,children:(0,qt.jsx)(ld,{fill:d.palette.common.white})}),(0,qt.jsx)(M3,{onClick:n,children:(0,qt.jsx)(Bt,{fill:d.palette.common.white})})]})]})}),(0,qt.jsx)(az,{className:"panel-body",children:r})]})})})})}):null},my=({...e})=>(0,qt.jsx)(l8e,{...e});var ic=require("react");var Emt=(0,y.styled)(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"}})),Rmt=(0,y.styled)("div")(()=>({width:"100%",justifyContent:"center",display:"flex",alignItems:"center",marginTop:"20px"})),Omt=(0,y.styled)(K)(()=>({display:"flex",justifyContent:"space-evenly",gap:"2.5rem",width:"100%"})),Amt=(0,y.styled)(K)(()=>({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",gap:"2.5rem",width:"100%"})),Pmt=(0,y.styled)("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"})),cy=(0,y.styled)(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"})),mz=(0,y.styled)(K)(({theme:e})=>({paddingInline:e.spacing(2),display:"flex",alignItems:"center",placeSelf:"flex-start",justifyContent:"space-between",width:"100%"})),cz=(0,y.styled)(z)(({theme:e})=>({fontSize:"1.5rem",fontWeight:600,color:e.palette.text.default})),xz=(0,y.styled)(Ar)(({theme:e})=>({width:"200px",margin:"0.5rem",height:"100%",borderRadius:"1rem",position:"relative",overflow:"hidden",transition:"all 0.3s ease-in-out",background:n3(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"}})),hz=(0,y.styled)("div")(()=>({display:"flex",gap:"10px",flexWrap:"nowrap",justifyContent:"center",width:"100%"})),gz=(0,y.styled)(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"}})),Tz=(0,y.styled)(Ya)(()=>({height:"100%",display:"flex",flexDirection:"column",padding:"12px",paddingBottom:"0px !important"})),Sz=(0,y.styled)(K)({display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"0.5rem",gap:"0.6rem"}),Cz=(0,y.styled)(z)(({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"})),yz=(0,y.styled)(z)(({theme:e})=>({fontSize:"24px",fontWeight:700,color:e.palette.icon.secondary,marginBottom:"0.5rem",lineHeight:1.2})),_mt=(0,y.styled)(K)(({theme:e})=>({marginBottom:"1rem",padding:"8px",borderRadius:"8px",background:e.palette.mode==="light"?"#f8fafc":Pn,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)"}})),bz=(0,y.styled)(z)(({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"})),vz=(0,y.styled)(z)({fontSize:"0.75rem",marginBottom:"8px"}),wz=(0,y.styled)(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)})),Ez=(0,y.styled)(K)(({theme:e})=>({padding:"1rem",color:e.palette.text.error,fontSize:"1rem",fontWeight:500}));var pn=require("react/jsx-runtime"),xy=({open:e,handleClick:t})=>{let r=(0,y.useTheme)();return(0,pn.jsx)(ge,{title:e?"Hide Performers":"Show Performers",placement:"bottom",children:(0,pn.jsx)("span",{children:(0,pn.jsxs)(ke,{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:[(0,pn.jsx)($l,{style:{height:"2rem",width:"2rem",marginRight:"10px"}}),e?"Hide Performers":"Show Performers"]})})})},hy=({handleClick:e})=>(0,pn.jsx)(ge,{title:"Open Leaderboard",placement:"bottom",children:(0,pn.jsx)(ke,{variant:"contained",onClick:e,sx:{height:"3.7rem",padding:"0.3rem",display:{xs:"inline-flex",sm:"none"}},children:(0,pn.jsx)($l,{style:{height:"2rem",width:"2rem"}})})}),Rz=()=>(0,pn.jsx)(hz,{children:[...Array(5)].map((e,t)=>(0,pn.jsx)(T2,{variant:"rounded",height:"13.5rem",width:"inherit",sx:{minWidth:"150px"},style:{borderRadius:"1rem"}},t))});var bt=require("react/jsx-runtime"),s8e={pathType:"pattern",page:0,pagesize:1,metrics:!0,expandUser:!0,trim:!0},gy={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"}},nc=e=>({...s8e,order:`${gy[e].countKey} desc`}),u8e=({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=(0,y.useTheme)();return(0,bt.jsx)(xz,{elevation:0,status:i,onClick:f,children:(0,bt.jsxs)(Tz,{cardId:l,children:[(0,bt.jsxs)(Sz,{children:[(0,bt.jsx)(Cz,{children:e}),(0,bt.jsx)(gz,{onClick:m=>d(m,`${t}+desc`),children:(0,bt.jsx)(e5,{...Zo,fill:p.palette.common.black})})]}),(0,bt.jsx)(yz,{children:r}),(0,bt.jsxs)(K,{children:[(0,bt.jsx)(bz,{children:o}),(0,bt.jsxs)(vz,{children:["by ",n]})]})]})})},wr=(e={})=>({search:e.search??"",order:e.order??"",pagesize:e.pagesize??0,page:e.page??0,...e}),Oz=(0,ic.memo)(u8e);Oz.displayName="StatCard";var f8e=e=>{let t=e(wr(nc("view"))),r=e(wr(nc("clone"))),o=e(wr(nc("download"))),a=e(wr(nc("deployment"))),n=e(wr(nc("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)}},d8e=(e,t)=>{let r=e[t],o=gy[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},p8e=({useGetCatalogFilters:e,onCardClick:t,onIconClick:r,onOpenLeaderboard:o})=>{let a=(0,y.useTheme)(),{queries:n,isLoading:i,hasError:l}=f8e(e),s=(0,y.useMediaQuery)(a.breakpoints.down("sm")),u=(0,ic.useMemo)(()=>Object.keys(gy).map(d=>d8e(n,d)).filter(d=>!!d),[n]);if(l)return(0,bt.jsx)(cy,{children:(0,bt.jsx)(Ez,{children:"Error loading statistics. Please try again later."})});let f=u.map((d,p)=>(0,bt.jsx)(Oz,{...d,onCardClick:t,onIconClick:r},`${d.id}-${p}`));return(0,bt.jsx)(no,{children:(0,bt.jsxs)(cy,{children:[(0,bt.jsxs)(mz,{children:[(0,bt.jsxs)(K,{display:"flex",alignItems:"center",gap:1,children:[(0,bt.jsx)(cz,{children:"Top Performers"}),(0,bt.jsx)($l,{style:{height:"2rem",width:"2rem",color:a.palette.icon.secondary,display:s?"none":"inline-flex"}})]}),o&&(0,bt.jsx)("div",{children:(0,bt.jsxs)(ke,{variant:"contained",onClick:()=>o(),children:[(0,bt.jsx)($l,{style:{height:"2rem",width:"2rem",display:s?"inline-flex":"none"}}),(0,bt.jsx)("p",{style:{margin:0,display:s?"none":"inline-flex"},children:"Open Leaderboard"})]})})]}),(0,bt.jsxs)(wz,{children:[i&&(0,bt.jsx)(Rz,{}),(0,bt.jsx)(au,{items:f})]})]})})},Ty=(0,ic.memo)(p8e);var Qn=require("@mui/material"),Az=(0,Qn.styled)("div")({padding:"1rem 0","& h2":{margin:"1rem 0"},".get-started-desc":{margin:"1rem"}}),Pz=(0,Qn.styled)("div")(({theme:e})=>({display:"flex",cursor:"pointer",flexDirection:"row",flexWrap:"wrap","& a":{color:e.palette.text.primary,margin:"1rem"}})),_z=(0,Qn.styled)("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}}})),Iz=(0,Qn.styled)("div")({display:"flex",alignItems:"center",gap:"1rem"}),Zmt=(0,Qn.styled)("div")({flex:"0 0 25%",alignSelf:"center",margin:"0 0.5rem"}),Qmt=(0,Qn.styled)("img")({height:"3rem",width:"3rem",maxWidth:"3rem",margin:"auto"}),Xmt=(0,Qn.styled)("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)"})),Jmt=(0,Qn.styled)("h2")({fontSize:"1.75rem",margin:"1rem 0"}),ect=(0,Qn.styled)("p")(({theme:e})=>({color:e.palette.text.primary,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"}));var ka=require("react/jsx-runtime"),m8e=({Steps:e,PrerequisiteLine:t})=>(0,ka.jsxs)(Az,{children:[(0,ka.jsxs)("div",{className:"get-started-desc",id:"pre-requisites",children:[(0,ka.jsx)("h2",{children:"Prerequisites"}),(0,ka.jsx)("p",{children:t})]}),(0,ka.jsx)(Pz,{id:"Set up",children:e.map((r,o)=>(0,ka.jsxs)(_z,{href:r.url,target:"_blank",children:[(0,ka.jsxs)(Iz,{children:[(0,ka.jsx)("h2",{children:r.heading}),typeof r.Icon=="string"?(0,ka.jsx)("img",{src:r.Icon,alt:r.heading,width:"40px",height:"40px"}):r.Icon]}),(0,ka.jsx)("p",{children:r.description})]},o))})]}),Sy=m8e;var kz=require("@mui/material");var c8e=(0,kz.styled)("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"?R2:O2,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}}})),Cy=c8e;var yy=require("react");var Cs=require("@mui/material"),Mz=(0,Cs.styled)("div")({width:"52rem",maxWidth:"90%"}),Lz=(0,Cs.styled)("div")({display:"flex",alignItems:"center",background:"#323339",width:"100%",height:"2.875rem",borderRadius:"2px 2px 0 0"}),fct=(0,Cs.styled)("div")({color:"#76767d",fontFamily:"'Courier New', Courier, monospace",fontSize:"13.5px",margin:"0 auto"}),Dz=(0,Cs.styled)("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"}}),Fz=(0,Cs.styled)("div")({width:"100%",height:"100%",background:"#1d1e23",borderRadius:"0 0 2px 2px",padding:"24px 32px"}),Nz=(0,Cs.styled)("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%"}}}),Bz=(0,Cs.styled)("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"}}}));var yo=require("react/jsx-runtime"),x8e=({lines:e,title:t,noScroll:r})=>(0,yo.jsxs)(Mz,{children:[(0,yo.jsxs)(Lz,{children:[(0,yo.jsxs)(Dz,{children:[(0,yo.jsx)("li",{style:{backgroundColor:"red"}}),(0,yo.jsx)("li",{style:{backgroundColor:"yellow"}}),(0,yo.jsx)("li",{style:{backgroundColor:"green"}})]}),t&&(0,yo.jsx)("div",{className:"title",children:t})]}),(0,yo.jsx)(Fz,{children:(0,yo.jsx)(Nz,{className:r?"no-scroll-overflow-wrapper":"",children:(0,yo.jsx)(Bz,{children:e&&e.map((o,a)=>(0,yo.jsx)(yy.Fragment,{children:(0,yo.jsxs)("pre",{className:`${o.short?"short":""}`,style:{color:o.color?o.color:"blue"},children:[o.indent&&new Array(o.indent*2).fill({}).map((n,i)=>(0,yo.jsx)(yy.Fragment,{children:"\xA0"},i)),o.code]})},a))})})})]}),by=x8e;var Hz=require("@mui/material"),Vz=(0,Hz.styled)("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}}}}}));var Nu=require("react/jsx-runtime"),h8e=({availableChapters:e,currentChapter:t,onClick:r})=>{let o=a=>a.split("-").map(l=>l.charAt(0).toUpperCase()+l.slice(1)).join(" ");return(0,Nu.jsx)(Vz,{children:(0,Nu.jsx)("div",{className:"toc-list",children:(0,Nu.jsx)("ul",{className:"toc-ul toc-ul-open",children:e.map(a=>(0,Nu.jsx)("li",{className:a+".mdx"===t?"active-link":"",onClick:n=>{r(a,n)},children:(0,Nu.jsxs)("p",{className:"toc-item",children:[" ",o(a)]})},a))})})})},vy=h8e;var qz=require("react");var Uz=require("@mui/material"),Wz=(0,Uz.styled)("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"}}}));var sr=require("react/jsx-runtime"),g8e=[{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"}],T8e=({coursesData:e})=>{let[t,r]=(0,qz.useState)(!1);return(0,sr.jsxs)(Wz,{children:[(0,sr.jsxs)("div",{className:"go-back",children:[(0,sr.jsxs)("a",{href:"/learn/learning-paths",children:[(0,sr.jsx)(B2,{}),(0,sr.jsx)("h4",{children:"Learning Paths"})]}),(0,sr.jsx)("div",{className:"toc-toggle-btn",children:t?(0,sr.jsx)(Bt,{className:"toc-menu-icon",onClick:()=>{r(!t)}}):(0,sr.jsx)(id,{className:"toc-menu-icon",onClick:()=>{r(!t)}})})]}),(0,sr.jsx)("div",{className:"toc-list",children:(0,sr.jsxs)("ul",{className:`toc-ul ${t?"toc-ul-open":""}`,children:[(0,sr.jsx)("a",{href:"#pre-requisites",children:(0,sr.jsx)("h5",{className:"toc-sub-heading",children:"Pre-requisites"})}),g8e.map((o,a)=>(0,sr.jsx)("li",{children:(0,sr.jsx)("p",{className:"toc-item",children:(0,sr.jsx)("a",{href:`#${o.name}`,children:o.name})})},a)),(0,sr.jsx)("a",{href:"#courses-list",children:(0,sr.jsx)("h5",{className:"toc-sub-heading",children:"Courses"})}),e.map((o,a)=>(0,sr.jsx)("li",{children:(0,sr.jsx)("p",{className:"toc-item",children:(0,sr.jsx)("a",{href:`#${o.frontmatter.courseTitle}`,children:o.frontmatter.courseTitle})})},a))]})})]})},wy=T8e;var Gz=require("@mui/material"),zz=G(require("@mui/material/Autocomplete")),Ey=G(require("@mui/material/CircularProgress")),lc=require("react"),jz=require("use-debounce");var vt=require("react/jsx-runtime"),S8e=({usersData:e,disabled:t=!1,shareWithNewUsers:r,useGetAllUsersQuery:o})=>{let[a,n]=(0,lc.useState)(!1),[i,l]=(0,lc.useState)(""),[s,u]=(0,lc.useState)([]),[f,d]=(0,lc.useState)(!1),p=(0,y.useTheme)(),[m]=(0,jz.useDebounce)(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 v=await r(s);v.error?n(v.error):u([])}catch(v){console.log("error while sharing",v)}finally{d(!1)}},E=(v,P)=>{P&&(u(P),l(""))},R=(v,P,B)=>{B==="input"?l(P):B==="clear"&&l("")},k=g.filter(v=>!s.concat(e).find(P=>P.email===v.email)),D=t||f||s.length===0,C=({avatarObj:v,...P})=>(0,vt.jsx)(Nt,{avatar:(0,vt.jsx)(zt,{alt:v.first_name,src:v.avatar_url,children:v.avatar_url?"":v.first_name?.charAt(0)}),label:v.email,size:"small",...P},v.user_id);return(0,vt.jsx)(vt.Fragment,{children:(0,vt.jsxs)(K,{display:"flex",alignItems:"center",justifyContent:"space-between",gap:1,children:[(0,vt.jsx)(zz.default,{id:"user-search-field",sx:{width:"100%"},filterOptions:v=>v,options:k,renderTags:(v,P)=>v.map((B,_)=>(0,vt.jsx)(C,{avatarObj:B,...P({index:_})})),disableClearable:!0,includeInputInList:!0,filterSelectedOptions:!0,multiple:!0,disableListWrap:!0,disabled:f,inputValue:i,loading:h,value:s,getOptionLabel:v=>v.email,noOptionsText:h?"Loading...":i==""?"Search using name or email":"No users found",onChange:E,onInputChange:R,isOptionEqualToValue:(v,P)=>v.email===P.email,renderInput:v=>(0,vt.jsx)(Jr,{...v,placeholder:"Add Users",error:!!a,helperText:a,fullWidth:!0,label:"",disabled:D,sx:{"& .MuiOutlinedInput-root":{paddingInline:"0.5rem",paddingBlock:"0.1rem"}},InputProps:{...v.InputProps,endAdornment:(0,vt.jsx)(vt.Fragment,{children:h?(0,vt.jsx)(Ey.default,{color:"inherit",size:20}):null})}}),renderOption:(v,P)=>(0,vt.jsx)(K,{component:"li",sx:{"& > img":{mr:2,flexShrink:0}},...v,children:(0,vt.jsxs)(he,{container:!0,alignItems:"center",children:[(0,vt.jsx)(he,{children:(0,vt.jsx)(K,{sx:{color:"text.secondary",mr:2},children:(0,vt.jsx)(zt,{alt:P.first_name,src:P.avatar_url,children:P.avatar_url?"":(0,vt.jsx)(Mn,{})})})}),(0,vt.jsx)(he,{size:"grow",children:P.deleted_at?.Valid?(0,vt.jsxs)(z,{variant:"body2",color:"text.secondary",children:[P.email," (deleted)"]}):(0,vt.jsxs)(vt.Fragment,{children:[(0,vt.jsxs)(z,{variant:"body2",children:[P.first_name," ",P.last_name]}),(0,vt.jsx)(z,{variant:"body2",color:"text.secondary",children:P.email})]})})]})})}),(0,vt.jsx)(Gz.Button,{variant:"contained",sx:{"&.Mui-disabled":{color:`${p.palette.text.secondary} !important`,backgroundColor:`${p.palette.action.disabled} !important`}},onClick:T,disabled:D,children:f?(0,vt.jsx)(Ey.default,{size:24,sx:{color:"#fff"}}):"Share"})]})})},L3=S8e;var Kz=require("@mui/material"),Zr=G(require("react"));var Ge=require("react/jsx-runtime"),C8e=({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]=(0,Zr.useState)(""),[T,E]=(0,Zr.useState)(!1),[R,k]=(0,Zr.useState)(!1),[D,C]=(0,Zr.useState)(!0),[v,P]=(0,Zr.useState)(""),[B,_]=(0,Zr.useState)(e||[]);(0,Zr.useEffect)(()=>{_(e||[])},[e]);let J=(0,Zr.useMemo)(()=>{if(D&&!m&&u)return[u];let H=f.filter(M=>M.user_id!==u?.user_id);return!m&&u?[u,...H]:H},[f,u,m,D]),X=(0,Zr.useCallback)((H,M)=>{M.stopPropagation();let L=B.filter(F=>F.user_id!==H);_(L),t(L),o&&o(!1)},[B,t,o,p,v]),N=(0,Zr.useCallback)((H,M)=>{if(!M)return;let L=B.some(q=>q.user_id===M.user_id),F=M.deleted_at?.Valid===!0;if(L||F){g(L?"User already selected":"User does not exist");return}P(""),x(""),g(""),E(!1),_(q=>[...q,M]),t(q=>[...q,M]),o&&o(!1)},[B,t,o,x]),W=(0,Zr.useCallback)((H,M)=>{if(P(M),M==="")E(!0),x(""),C(!0);else{let L=encodeURIComponent(M);x(M),p(L),g(""),E(!0),C(!1)}},[p,x]);return(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsx)(Kz.Autocomplete,{id:"user-search-field",style:{width:"100%"},open:T,options:J,getOptionLabel:()=>"",isOptionEqualToValue:(H,M)=>H.user_id===M.user_id,onOpen:()=>E(!0),onClose:()=>E(!1),inputValue:v,onChange:N,onInputChange:W,filterOptions:H=>H,loading:d,disabled:s,disableClearable:!0,freeSolo:!1,value:void 0,selectOnFocus:!0,blurOnSelect:!0,clearOnBlur:!0,popupIcon:null,forcePopupIcon:!1,noOptionsText:d?"Loading...":"No users found",renderInput:H=>(0,Ge.jsx)(Jr,{...H,label:r,error:!!h,helperText:h,InputLabelProps:{style:{fontFamily:"inherit"}},InputProps:{...H.InputProps,endAdornment:(0,Ge.jsx)(Zr.default.Fragment,{children:d?(0,Ge.jsx)(jt,{color:"inherit",size:20}):null})}}),renderOption:(H,M)=>(0,Ge.jsx)("li",{...H,id:M.user_id,children:(0,Ge.jsxs)(K,{sx:{"& > img":{mr:2,flexShrink:0}},children:[" ",(0,Ge.jsxs)(he,{container:!0,alignItems:"center",children:[(0,Ge.jsx)(he,{children:(0,Ge.jsx)(K,{sx:{color:"text.secondary",mr:2},children:(0,Ge.jsx)(zt,{alt:M.first_name,src:M.avatar_url,children:M.avatar_url?"":(0,Ge.jsx)(Mn,{})})})}),(0,Ge.jsx)(he,{size:"grow",children:M.deleted?(0,Ge.jsxs)(z,{variant:"body2",color:"text.secondary",children:[M.email," (deleted)"]}):(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsxs)(z,{variant:"body2",children:[M.first_name," ",M.last_name]}),(0,Ge.jsx)(z,{variant:"body2",color:"text.secondary",children:M.email})]})})]})]})})}),!i&&(0,Ge.jsx)(h2,{row:!0,children:(0,Ge.jsx)("div",{style:{display:"flex",flexWrap:"nowrap"},children:(0,Ge.jsx)(Ll,{control:(0,Ge.jsx)(Qr,{checked:n,onChange:a,name:"notify",color:"primary"}),label:`Notify ${l} of membership change`})})}),(0,Ge.jsxs)(K,{sx:{display:"flex",flexWrap:"wrap",gap:.5,mt:e?.length>0?"0.5rem":""},children:[!R&&B?.[0]&&(0,Ge.jsx)(Nt,{avatar:(0,Ge.jsx)(zt,{alt:B[0].first_name,src:B[0].avatar_url,children:!B[0].avatar_url&&B[0].first_name?.[0]}),label:B[0].email,onDelete:H=>X(B[0].user_id,H),deleteIcon:(0,Ge.jsx)(Jt,{title:"Remove user",children:(0,Ge.jsx)(Bt,{style:To})}),size:"small"},B[0].user_id),R&&B?.map(H=>(0,Ge.jsx)(Nt,{avatar:(0,Ge.jsx)(zt,{alt:H.first_name,src:H.avatar_url,children:!H.avatar_url&&H.first_name?.[0]}),label:H.email,onDelete:M=>X(H.user_id,M),deleteIcon:(0,Ge.jsx)(Jt,{title:"Remove user",children:(0,Ge.jsx)(Bt,{style:To})}),size:"small"},H.user_id)),B?.length>1&&(0,Ge.jsx)(z,{onClick:()=>k(!R),sx:{cursor:"pointer"},children:R?"(hide)":`(+${B.length-1})`})]})]})},Ry=C8e;var qo=require("@mui/material"),Wu=require("@mui/material/StepConnector");function Tp(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.`}var oj=G(require("@emotion/styled"));function $z(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 Yz={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 Zz(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var y8e=!1,b8e=/[A-Z]|^ms/g,v8e=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ej=function(t){return t.charCodeAt(1)===45},Qz=function(t){return t!=null&&typeof t!="boolean"},Oy=Zz(function(e){return ej(e)?e:e.replace(b8e,"-$&").toLowerCase()}),Xz=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(v8e,function(o,a,n){return Xn={name:a,styles:n,next:Xn},a})}return Yz[t]!==1&&!ej(t)&&typeof r=="number"&&r!==0?r+"px":r},w8e="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function sc(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 Xn={name:a.name,styles:a.styles,next:Xn},a.name;var n=r;if(n.styles!==void 0){var i=n.next;if(i!==void 0)for(;i!==void 0;)Xn={name:i.name,styles:i.styles,next:Xn},i=i.next;var l=n.styles+";";return l}return E8e(e,t,r)}case"function":{if(e!==void 0){var s=Xn,u=r(e);return Xn=s,sc(e,t,u)}break}}var f=r;if(t==null)return f;var d=t[f];return d!==void 0?d:f}function E8e(e,t,r){var o="";if(Array.isArray(r))for(var a=0;a<r.length;a++)o+=sc(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]+"}":Qz(l)&&(o+=Oy(n)+":"+Xz(n,l)+";")}else{if(n==="NO_COMPONENT_SELECTOR"&&y8e)throw new Error(w8e);if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)Qz(i[s])&&(o+=Oy(n)+":"+Xz(n,i[s])+";");else{var u=sc(e,t,i);switch(n){case"animation":case"animationName":{o+=Oy(n)+":"+u+";";break}default:o+=n+"{"+u+"}"}}}}return o}var Jz=/label:\s*([^\s;{]+)\s*(;|$)/g,Xn;function tj(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="";Xn=void 0;var n=e[0];if(n==null||n.raw===void 0)o=!1,a+=sc(r,t,n);else{var i=n;a+=i[0]}for(var l=1;l<e.length;l++)if(a+=sc(r,t,e[l]),o){var s=n;a+=s[l]}Jz.lastIndex=0;for(var u="",f;(f=Jz.exec(a))!==null;)u+="-"+f[1];var d=$z(a)+u;return{name:d,styles:a,next:Xn}}var _y=require("@emotion/react");function Ay(e,t){let r=(0,oj.default)(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
+ `,Uge=(0,Jo.styled)(ld)(({theme:e})=>({height:"2.25rem",width:"2.25rem",fill:e.palette.common.white,cursor:"pointer"})),Wge=(0,Jo.styled)(G2)(({theme:e})=>({height:"2.25rem",width:"2.25rem",fill:e.palette.common.white,cursor:"pointer"})),Fm=(0,Jo.styled)("div")(({theme:e})=>({background:e.palette.mode==="light"?Si.header:Ti.header,color:"#eee",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"1rem",textAlign:"center"})),tq=({headerIcon:e})=>{let[t,r]=(0,Ou.useState)(!1),[o,a]=(0,Ou.useState)(""),n=(0,Ou.useRef)(null),[i,l]=(0,Ou.useState)(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}}},Dr=(0,Jo.styled)(An)(({theme:e})=>({padding:"1rem",backgroundColor:e.palette.background.surfaces,overflowY:"auto",height:"100%",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},"-ms-overflow-style":"none"})),qge=(0,Jo.styled)("div",{shouldForwardProp:e=>e!=="variant"})(({theme:e,variant:t,hasHelpText:r})=>({background:t==="filled"?e.palette.mode==="light"?Si.fotter:Ti.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}})),Fr=({open:e,closeModal:t,title:r,headerIcon:o,reactNode:a,children:n,maxWidth:i="xs",isFullScreenModeAllowed:l,...s})=>{let[u,f]=(0,Ou.useState)(!1),d=()=>{f(p=>!p)};return(0,$r.jsxs)(Vge,{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&&(0,$r.jsxs)(Fm,{"data-testid":"modal-header",children:[o&&(0,$r.jsx)(K,{"data-testid":"modal-header-icon",children:o}),(0,$r.jsx)(z,{component:"div",variant:"h6","data-testid":"modal-title",children:r}),(0,$r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"1rem"},"data-testid":"modal-header-actions",children:[l&&(0,$r.jsx)(ge,{title:u?"Exit Fullscreen":"Enter Fullscreen",children:u?(0,$r.jsx)(Wge,{onClick:d,"data-testid":"modal-exit-fullscreen-btn"}):(0,$r.jsx)(Uge,{onClick:d,"data-testid":"modal-enter-fullscreen-btn"})}),(0,$r.jsx)(Au,{onClick:t,"data-testid":"modal-close-btn",children:(0,$r.jsx)(Bt,{...kd,fill:"#fff"})})]})]}),a&&a,n&&n]})},io=({helpText:e,children:t,variant:r})=>(0,$r.jsxs)(qge,{variant:r,hasHelpText:!!e,children:[e&&(0,$r.jsx)(gC,{content:e}),t]}),un=(0,Jo.styled)(bT)(({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}})),fn=(0,Jo.styled)(RA)(({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}})),rq=(0,Jo.styled)(OA)(({theme:e})=>({color:e.palette.text.inverse})),oq=(0,Jo.styled)(bT)(({theme:e})=>({backgroundColor:e.palette.background.error?.default,color:e.palette.text.constant?.white,"&:hover":{background:e.palette.background.error?.hover}})),Gge=(0,Jo.styled)(K)(()=>({width:"100%",display:"flex",justifyContent:"end",gap:"1rem"})),tp=({primaryText:e,secondaryText:t,primaryButtonProps:r,secondaryButtonProps:o})=>(0,$r.jsxs)(Gge,{children:[(0,$r.jsx)(fn,{...o,children:t}),(0,$r.jsx)(un,{...r,children:e})]});var rp=require("@mui/material");var aq=(0,rp.styled)("div")(({theme:e})=>({backgroundColor:e.palette.background.surfaces})),nq=(0,rp.styled)("div")(()=>({zIndex:"100",borderRadius:"5px"})),iq=(0,rp.styled)("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"})),lq=(0,rp.styled)(z)({fontSize:"18px"}),sq=(0,rp.styled)("div")(()=>({display:"flex",borderRadius:"5px 5px 0px 0px",justifyContent:"space-between",padding:"11px 16px",height:"52px",fill:Tt,boxShadow:"inset 0px -1px 3px 0px rgba(0,0,0,0.2)",background:"linear-gradient(90deg, #3B687B 0%, #507D90 100%)"}));var Pa=require("react/jsx-runtime");function zge({title:e,leftHeaderIcon:t,helpText:r,helpArea:o,actions:a,hideActions:n=!1,content:i,closeComponent:l,"data-testid":s="modal-card-wrapper"}){return(0,Pa.jsxs)(nq,{"data-testid":s,children:[(0,Pa.jsxs)(sq,{"data-testid":"modal-card-header",children:[t&&(0,Pa.jsx)("div",{style:{display:"flex",alignItems:"center"},"data-testid":"modal-card-header-icon",children:t}),e&&(0,Pa.jsx)("div",{style:{display:"flex",alignItems:"center",color:"white"},"data-testid":"modal-card-title",children:(0,Pa.jsx)(lq,{children:e})}),(0,Pa.jsxs)("div",{style:{display:"flex",alignItems:"center"},"data-testid":"modal-card-header-right",children:[r&&(0,Pa.jsx)("div",{"data-testid":"modal-card-help-area",children:o}),(0,Pa.jsx)("div",{"data-testid":"modal-card-close-button",children:l})]})]}),(0,Pa.jsx)(aq,{"data-testid":"modal-card-content",children:i}),!n&&(0,Pa.jsx)(iq,{"data-testid":"modal-card-actions",children:a})]})}var Nm=zge;var yt=require("@mui/material");var uq=(0,yt.styled)("div")({cursor:"pointer",width:"30px",height:"30px",display:"flex",alignItems:"center",fill:gi}),jge={"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"}}},fq=(0,yt.styled)(yt.Box)(({isOpen:e,renderPosition:t})=>({position:"fixed",transition:"all 0.5s ease",...jge[t][e?"open":"closed"]})),dq=(0,yt.styled)("div")({display:"flex",flexDirection:"column",justifyContent:"center",transition:"bottom 0.5s ease",padding:"1.688rem 1.188rem",width:"28rem",height:"12rem"}),pq=(0,yt.styled)("div")({display:"flex",alignItems:"center",paddingTop:"0.5px",height:"20px",width:"21.188rem"}),mq=(0,yt.styled)("div")({width:"24px",height:"24px"}),yut=(0,yt.styled)(yt.Button)(({isOpen:e})=>({color:"white",width:"4.313rem",height:"2.25rem",textTransform:"none",boxShadow:"0px 1px 8px rgba(0, 0, 0, 0.25)",backgroundColor:e?Ys.main:et,"&:hover":{backgroundColor:KM}})),cq=(0,yt.styled)(yt.Button)(({theme:e,renderPosition:t})=>({backgroundColor:ed,color:gi,borderRadius:"5px",padding:"10px 20px",fontSize:"16px",transition:"bottom 0.5s ease",position:"fixed",...Kge[t],"&:hover":{backgroundColor:e.palette.mode==="dark"?Sr:"#213A45"}})),Kge={"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)"}},xq=(0,yt.styled)("div")(({theme:e})=>({display:"block",right:"0",backgroundColor:e.palette.mode==="dark"?"#333333":gi,bottom:"0",width:"100%",zIndex:"100",position:"relative",height:"100%",alignItems:"center",transition:"bottom 0.5s ease"})),hq=(0,yt.styled)(yt.Box)(({isOpen:e,theme:t})=>({position:"relative",bottom:e?"0px":"-240px",right:"0",color:t.palette.text.default,backgroundColor:t.palette.mode==="dark"?Ks:Tt,border:`1px solid ${eL}`,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"})),gq=(0,yt.styled)(yt.Box)({display:"flex",justifyContent:"space-between",alignSelf:"center"}),Tq=(0,yt.styled)(yt.Button)(({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 ${et}`:"",background:t?e.palette.mode==="dark"?Sr:ga:e.palette.mode==="dark"?Ks:Hl,color:t?e.palette.mode==="dark"?ga:Sr:e.palette.mode==="dark"?ga:ga,fill:t?e.palette.icon.default:ga,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}})),Sq=(0,yt.styled)("textarea")(({theme:e})=>({width:"100%",background:"transparent",border:`1px solid ${$s}`,borderRadius:"4px",color:e.palette.mode==="dark"?ga:Sr,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"?ga:Ks},"&:focus":{outline:`1px solid ${Io}`}})),Cq=(0,yt.styled)("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-between",height:"137px",color:e.palette.text.default})),yq=(0,yt.styled)("a")({textDecoration:"underline",color:"inherit","&:hover":{color:"inherit"}}),bq=(0,yt.styled)(yt.Checkbox)({color:`${Tt} !important`,marginLeft:"-11px",paddingLeft:"0px"}),vq=(0,yt.styled)("div")({padding:"1.5rem 1rem",width:"28rem",height:"12rem"}),wq=(0,yt.styled)("div")({padding:"0px",width:"30px",height:"30px",display:"flex",alignItems:"center"});var Fe=require("react/jsx-runtime"),$ge="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.",TC=[{icon:(0,Fe.jsx)(k1,{}),label:"Issue",placeholder:"I\u2019m having an issue with...",isTextInput:!0},{icon:(0,Fe.jsx)(Q2,{}),label:"Suggestion",placeholder:"I have a suggestion about...",isTextInput:!0},{icon:(0,Fe.jsx)(j2,{}),label:"Meet Request",isTextInput:!1,innerComponent:(0,Fe.jsxs)(Cq,{children:[(0,Fe.jsxs)(p3.default,{style:{lineHeight:"2.5",textAlign:"center"},children:["Need help or have more feedback than fits here?",(0,Fe.jsx)("br",{})," Meet with us."]}),(0,Fe.jsx)(yq,{target:"_blank",href:"https://calendar.google.com/calendar/appointments/schedules/AcZssZ3pmcApaDP4xd8hvG5fy8ylxuFxD3akIRc5vpWJ60q-HemQi80SFFAVftbiIsq9pgiA2o8yvU56",children:"Select a time convenient for you."})]})}],Yge=({onSubmit:e,containerStyles:t,feedbackOptionStyles:r,renderPosition:o,defaultMessage:a=void 0,defaultOpen:n=!1})=>{let[i,l]=(0,op.useState)(n),[s,u]=(0,op.useState)(!1),[f,d]=(0,op.useState)(TC[0]),[p,m]=(0,op.useState)(a),[x,h]=(0,op.useState)(!!a);return(0,Fe.jsxs)(Fe.Fragment,{children:[(0,Fe.jsx)(cq,{onClick:()=>{l(!i),d(TC[0]),u(!1),m("")},style:t,renderPosition:o,children:"Feedback"}),(0,Fe.jsx)(fq,{isOpen:i,style:t,renderPosition:o,children:s?(0,Fe.jsxs)(hq,{isOpen:i,children:[(0,Fe.jsx)(s5,{width:"32",height:"32"}),"Submitting your feedback..."]}):(0,Fe.jsx)(Fe.Fragment,{children:(0,Fe.jsx)(Nm,{onClose:()=>{},open:!0,closeComponent:(0,Fe.jsx)(uq,{onClick:()=>l(!1),children:(0,Fe.jsx)(Bt,{width:"30",height:"30",fill:gi})}),actions:(0,Fe.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,Fe.jsxs)(pq,{children:[(0,Fe.jsx)(bq,{checked:x,onChange:R=>{h(R.target.checked)}}),(0,Fe.jsx)(p3.default,{style:{color:"white",fontSize:"12px",height:"15px"},children:"We may email you for more information or updates"})]}),(0,Fe.jsx)(un,{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:(0,Fe.jsx)(k1,{}),title:"Feedback",helpArea:(0,Fe.jsx)(ge,{placement:"top",title:$ge,arrow:!0,children:(0,Fe.jsx)(wq,{children:(0,Fe.jsx)(i5,{width:"30",height:"30"})})}),helpText:"Help",content:(0,Fe.jsxs)(xq,{children:[(0,Fe.jsx)(gq,{children:TC?.map(R=>(0,Fe.jsxs)(Tq,{style:r,type:"button",onClick:()=>{d(R)},isOpen:f?.label===R.label,children:[(0,Fe.jsx)(mq,{children:R.icon}),(0,Fe.jsx)(p3.default,{children:R.label})]},R.label))}),f?.isTextInput?(0,Fe.jsx)(dq,{children:(0,Fe.jsx)(Sq,{value:p||"",onChange:R=>{m(R.target.value)},required:!0,placeholder:f.placeholder,rows:5,cols:30})}):(0,Fe.jsx)(vq,{children:f?.innerComponent})]})})})})]})},SC=Yge;var Hm=require("@mui/material"),Pu=G(require("react"));var Bm=require("react/jsx-runtime");function Eq(e,t){if(!e||e.length!=2)throw Error("FlipCard requires exactly two child components");return e[t]}var Zge=(0,Hm.styled)("div")(({theme:e})=>({height:"100%",backgroundColor:"transparent",perspective:e.spacing(125)})),Qge=(0,Hm.styled)("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"?p1:Tt,cursor:"pointer",transformOrigin:"50% 50% 10%"})),Xge=(0,Hm.styled)("div")({backfaceVisibility:"hidden"}),Jge=(0,Hm.styled)("div")({backfaceVisibility:"hidden",transform:"scale(-1, 1)",wordBreak:"break-word"});function Vm({duration:e=500,onClick:t,onShow:r,children:o,disableFlip:a=!1,padding:n}){let[i,l]=Pu.default.useState(!1),[s,u]=Pu.default.useState(!1),f=Pu.default.useRef(null),d=Eq(o,0),p=Eq(o,1);return Pu.default.useEffect(()=>{f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{u(i)},e/6)},[i,e]),(0,Bm.jsx)(Zge,{onClick:()=>{a||(l(m=>!m),t&&t(),r&&r())},children:(0,Bm.jsx)(Qge,{style:{transform:i?"scale(-1,1)":void 0,transition:`transform ${e}ms`,padding:n},children:s?(0,Bm.jsx)(Jge,{children:Pu.default.isValidElement(p)?p:null}):(0,Bm.jsx)(Xge,{children:Pu.default.isValidElement(d)?d:null})})})}var _u=require("@mui/material"),Rq=G(require("lodash")),Oq=require("react");var cs=require("react/jsx-runtime"),Um=({id:e})=>{let[t,r]=(0,Oq.useState)(!1),o=(0,y.useTheme)(),a=i=>{i.stopPropagation(),navigator.clipboard.writeText(e),r(!0),setTimeout(()=>{r(!1)},2e3)},n=Rq.default.truncate(e,{length:15});return(0,cs.jsxs)(_u.Box,{sx:{display:"flex",alignItems:"center"},children:[(0,cs.jsx)(_u.Tooltip,{title:e,placement:"top",children:(0,cs.jsx)(_u.Typography,{variant:"body2",style:{cursor:"pointer",textWrap:"nowrap",color:o.palette.text.primary},children:n})}),(0,cs.jsx)(_u.Tooltip,{title:t?"Copied!":"Copy",placement:"top",children:(0,cs.jsx)("div",{onClick:a,style:{padding:"0.25rem"},children:(0,cs.jsx)(Sa,{width:16,height:16,fill:o.palette.action.active})})})]})};var CC=G(require("react"));function Aq(){let{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}function ea(){let[e,t]=CC.default.useState(Aq());return CC.default.useEffect(()=>{let r;function o(){r&&clearTimeout(r),r=window.setTimeout(()=>{t(Aq())},500)}return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),r&&clearTimeout(r)}},[]),e}var Re=G(require("react")),lTe=require("react-dom");function Pq(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=Pq(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function eTe(){for(var e,t,r=0,o="";r<arguments.length;)(e=arguments[r++])&&(t=Pq(e))&&(o&&(o+=" "),o+=t);return o}var Wm=eTe;var tTe={data:""},rTe=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||tTe;var oTe=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,aTe=/\/\*[^]*?\*\/| +/g,_q=/\n+/g,Iu=(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"?Iu(i,n):n+"{"+Iu(i,n[1]=="k"?"":t)+"}":typeof i=="object"?o+=Iu(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+=Iu.p?Iu.p(n,i):n+":"+i+";")}return r+(t&&a?t+"{"+a+"}":a)+o},Gi={},Iq=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+Iq(e[r]);return t}return e},nTe=(e,t,r,o,a)=>{let n=Iq(e),i=Gi[n]||(Gi[n]=(s=>{let u=0,f=11;for(;u<s.length;)f=101*f+s.charCodeAt(u++)>>>0;return"go"+f})(n));if(!Gi[i]){let s=n!==e?e:(u=>{let f,d,p=[{}];for(;f=oTe.exec(u.replace(aTe,""));)f[4]?p.shift():f[3]?(d=f[3].replace(_q," ").trim(),p.unshift(p[0][d]=p[0][d]||{})):p[0][f[1]]=f[2].replace(_q," ").trim();return p[0]})(e);Gi[i]=Iu(a?{["@keyframes "+i]:s}:s,r?"":"."+i)}let l=r&&Gi.g?Gi.g:null;return r&&(Gi.g=Gi[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)})(Gi[i],t,o,l),i},iTe=(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?"":Iu(l,""):l===!1?"":l}return o+a+(i??"")},"");function m3(e){let t=this||{},r=e.call?e(t.p):e;return nTe(r.unshift?r.raw?iTe(r,[].slice.call(arguments,1),t.p):r.reduce((o,a)=>Object.assign(o,a&&a.call?a(t.p):a),{}):r,rTe(t.target),t.g,t.o,t.k)}var Yut=m3.bind({g:1}),Zut=m3.bind({k:1});function kq(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 sTe(e,t,r){return t&&kq(e.prototype,t),r&&kq(e,r),e}function xs(){return xs=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},xs.apply(this,arguments)}function uTe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function PC(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 Mq=function(){return""},fTe=Re.default.createContext({enqueueSnackbar:Mq,closeSnackbar:Mq}),ku={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"};var c3="unmounted",ap="exited",np="entering",qm="entered",Lq="exiting",_C=function(e){uTe(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=ap,a.appearStatus=np):i=qm:o.unmountOnExit||o.mountOnEnter?i=c3:i=ap,a.state={status:i},a.nextCallback=null,a}t.getDerivedStateFromProps=function(a,n){var i=a.in;return i&&n.status===c3?{status:ap}: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!==np&&i!==qm&&(n=np):(i===np||i===qm)&&(n=Lq)}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===np?this.performEnter(a):this.performExit()):this.props.unmountOnExit&&this.state.status===ap&&this.setState({status:c3})},r.performEnter=function(a){var n=this,i=this.props.enter,l=a,s=this.getTimeouts();if(!a&&!i){this.safeSetState({status:qm},function(){n.props.onEntered&&n.props.onEntered(n.node,l)});return}this.props.onEnter&&this.props.onEnter(this.node,l),this.safeSetState({status:np},function(){n.props.onEntering&&n.props.onEntering(n.node,l),n.onTransitionEnd(s.enter,function(){n.safeSetState({status:qm},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:ap},function(){a.props.onExited&&a.props.onExited(a.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:Lq},function(){a.props.onExiting&&a.props.onExiting(a.node),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:ap},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===c3)return null;var n=this.props,i=n.children,l=PC(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return i(a,l)},sTe(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}(Re.default.Component);function ip(){}_C.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ip,onEntering:ip,onEntered:ip,onExit:ip,onExiting:ip,onExited:ip};function Dq(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function OC(e,t){return(0,Re.useMemo)(function(){return e==null&&t==null?null:function(r){Dq(e,r),Dq(t,r)}},[e,t])}function T3(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 AC={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)"},Uq=function(t){t.scrollTop=t.scrollTop},Fq=function(t){return Math.round(t)+"ms"};function lp(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?AC.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:Fq(a),p=typeof s=="string"?s:Fq(s);return f+" "+d+" "+i+" "+p}).join(",")}function dTe(e){return e&&e.ownerDocument||document}function Wq(e){var t=dTe(e);return t.defaultView||window}function pTe(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 mTe(e,t){var r=t.getBoundingClientRect(),o=Wq(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 x3(e,t){if(t){var r=mTe(e,t);r&&(t.style.webkitTransform=r,t.style.transform=r)}}var cTe=(0,Re.forwardRef)(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=PC(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),x=(0,Re.useRef)(null),h=OC(r.ref,x),g=OC(h,t),T=function(v,P){x3(a,v),Uq(v),u&&u(v,P)},E=function(v){var P=i?.transitionTimingFunction||AC.easeOut,B=T3({timeout:s,mode:"enter",style:xs({},i,{transitionTimingFunction:P})});v.style.webkitTransition=lp("-webkit-transform",B),v.style.transition=lp("transform",B),v.style.webkitTransform="none",v.style.transform="none"},R=function(v){var P=i?.transitionTimingFunction||AC.sharp,B=T3({timeout:s,mode:"exit",style:xs({},i,{transitionTimingFunction:P})});v.style.webkitTransition=lp("-webkit-transform",B),v.style.transition=lp("transform",B),x3(a,v),d&&d(v)},k=function(v){v.style.webkitTransition="",v.style.transition="",p&&p(v)},D=(0,Re.useCallback)(function(){x.current&&x3(a,x.current)},[a]);return(0,Re.useEffect)(function(){if(!(n||a==="down"||a==="right")){var C=pTe(function(){x.current&&x3(a,x.current)}),v=Wq(x.current);return v.addEventListener("resize",C),function(){C.clear(),v.removeEventListener("resize",C)}}},[a,n]),(0,Re.useEffect)(function(){n||D()},[n,D]),(0,Re.createElement)(_C,Object.assign({appear:!0,nodeRef:x,onEnter:T,onEntered:f,onEntering:E,onExit:R,onExited:k,in:n,timeout:s},m),function(C,v){return(0,Re.cloneElement)(r,xs({ref:g,style:xs({visibility:C==="exited"&&!n?"hidden":void 0},i,{},r.props.style)},v))})});cTe.displayName="Slide";function S3(e){return Object.entries(e).reduce(function(t,r){var o,a=r[0],n=r[1];return xs({},t,(o={},o[a]=m3(n),o))},{})}var jm={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},Nq=S3({root:{height:0},entered:{height:"auto"}}),yC="0px",bC=175,xTe=(0,Re.forwardRef)(function(e,t){var r=e.children,o=e.in,a=e.onExited,n=(0,Re.useRef)(null),i=(0,Re.useRef)(null),l=OC(t,i),s=function(){return n.current?n.current.clientHeight:0},u=function(h){h.style.height=yC},f=function(h){var g=s(),T=T3({timeout:bC,mode:"enter"}),E=T.duration,R=T.easing;h.style.transitionDuration=typeof E=="string"?E:E+"ms",h.style.height=g+"px",h.style.transitionTimingFunction=R||""},d=function(h){h.style.height="auto"},p=function(h){h.style.height=s()+"px"},m=function(h){Uq(h);var g=T3({timeout:bC,mode:"exit"}),T=g.duration,E=g.easing;h.style.transitionDuration=typeof T=="string"?T:T+"ms",h.style.height=yC,h.style.transitionTimingFunction=E||""};return(0,Re.createElement)(_C,{in:o,unmountOnExit:!0,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:a,onExiting:m,nodeRef:i,timeout:bC},function(x,h){return(0,Re.createElement)("div",Object.assign({ref:l,className:Wm(Nq.root,x==="entered"&&Nq.entered),style:xs({pointerEvents:"all",overflow:"hidden",minHeight:yC,transition:lp("height")},x==="entered"&&{overflow:"visible"},{},x==="exited"&&!o&&{visibility:"hidden"})},h),(0,Re.createElement)("div",{ref:n,className:jm.CollapseWrapper,style:{display:"flex",width:"100%"}},r))})});xTe.displayName="Collapse";var hTe=typeof window<"u"?Re.useLayoutEffect:Re.useEffect;function Bq(e){var t=(0,Re.useRef)(e);return hTe(function(){t.current=e}),(0,Re.useCallback)(function(){return t.current.apply(void 0,arguments)},[])}var gTe=(0,Re.forwardRef)(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=(0,Re.useRef)(),m=Bq(function(){l&&l.apply(void 0,arguments)}),x=Bq(function(R){!l||R==null||(p.current&&clearTimeout(p.current),p.current=setTimeout(function(){m(null,"timeout",s)},R))});(0,Re.useEffect)(function(){return u&&x(a),function(){p.current&&clearTimeout(p.current)}},[u,a,x]);var h=function(){p.current&&clearTimeout(p.current)},g=(0,Re.useCallback)(function(){a!=null&&x(a*.5)},[a,x]),T=function(k){d.onMouseEnter&&d.onMouseEnter(k),h()},E=function(k){d.onMouseLeave&&d.onMouseLeave(k),g()};return(0,Re.useEffect)(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]),(0,Re.createElement)("div",Object.assign({ref:t},d,{className:Wm(jm.Snackbar,o),onMouseEnter:T,onMouseLeave:E}),r)});gTe.displayName="Snackbar";var vC,TTe=S3({root:(vC={display:"flex",flexWrap:"wrap",flexGrow:1},vC[ku.upSm]={flexGrow:"initial",minWidth:"288px"},vC)}),qq=(0,Re.forwardRef)(function(e,t){var r=e.className,o=PC(e,["className"]);return Re.default.createElement("div",Object.assign({ref:t,className:Wm(TTe.root,r)},o))});qq.displayName="SnackbarContent";var Gm=S3({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"}}),Hq="notistack-snackbar",STe=(0,Re.forwardRef)(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)),Re.default.createElement(qq,{ref:t,role:"alert","aria-describedby":Hq,style:s,className:Wm(jm.MuiContent,jm.MuiContentVariant(i),Gm.root,Gm[i],u,!l&&f&&Gm.lessPadding)},Re.default.createElement("div",{id:Hq,className:Gm.message},l?null:f,o),d&&Re.default.createElement("div",{className:Gm.action},d))});STe.displayName="MaterialDesignContent";var zm,wC,h3,g3,EC,zi={view:{default:20,dense:4},snackbar:{default:6,dense:2}},Vq="."+jm.CollapseWrapper,RC=16,eft=S3({root:(zm={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:lp(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},zm[Vq]={padding:zi.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},zm.maxWidth="calc(100% - "+zi.view.default*2+"px)",zm[ku.downXs]={width:"100%",maxWidth:"calc(100% - "+RC*2+"px)"},zm),rootDense:(wC={},wC[Vq]={padding:zi.snackbar.dense+"px 0px"},wC),top:{top:zi.view.default-zi.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:zi.view.default-zi.snackbar.default+"px",flexDirection:"column-reverse"},left:(h3={left:zi.view.default+"px"},h3[ku.upSm]={alignItems:"flex-start"},h3[ku.downXs]={left:RC+"px"},h3),right:(g3={right:zi.view.default+"px"},g3[ku.upSm]={alignItems:"flex-end"},g3[ku.downXs]={right:RC+"px"},g3),center:(EC={left:"50%",transform:"translateX(-50%)"},EC[ku.upSm]={alignItems:"center"},EC)});var tft=process.env.NODE_ENV!=="production";var Gq=function(){return(0,Re.useContext)(fTe)};var IC=G(require("react")),CTe=()=>{let[e,t]=IC.default.useState(""),{enqueueSnackbar:r}=Gq();return IC.default.useEffect(()=>{e&&(r(e),t(""))},[e,r]),(a,n)=>{t(a),n&&r(a,n)}},kC=CTe;var ta=(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};var zn=require("@mui/material/styles");var zq=(0,zn.styled)("div")({width:"100%",maxWidth:"28rem",minWidth:"10rem",height:"16rem",margin:"auto",borderRadius:"1rem"}),jq=(0,zn.styled)("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"?Tt:Sr})),Kq=(0,zn.styled)("a")({color:"black",textDecoration:"none"}),MC=(0,zn.styled)("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)"})),$q=(0,zn.styled)("div")(({theme:e})=>({background:e.palette.mode==="light"?A2:Ul,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"})),LC=(0,zn.styled)("div")(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1rem","& span":{border:`1px solid ${e.palette.primary.dark}`,color:e.palette.text.primary,borderRadius:"0.8rem",padding:"0.05rem 0.75rem",fontSize:"1rem",transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"},"& h3":{color:e.palette.text.primary,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"}})),DC=(0,zn.styled)("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"}})),Yq=(0,zn.styled)("div")(({theme:e})=>({margin:"0 1rem",display:"flex",justifyContent:"space-between",gap:"0.4rem",p:{fontSize:"1rem",color:e.palette.text.primary,fontWeight:600,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"}})),FC=(0,zn.styled)("div")({textAlign:"center",position:"absolute",bottom:"0.1rem",right:"0.75rem",opacity:.2,img:{height:"8.5rem",width:"8.5rem"}});var $e=require("react/jsx-runtime"),yTe=({path:e,children:t})=>e?(0,$e.jsx)(Kq,{href:e,children:t}):(0,$e.jsx)($e.Fragment,{children:t}),bTe=({tutorial:e,path:t,courseCount:r,courseType:o})=>(0,$e.jsx)(zq,{children:e.frontmatter.disabled==="yes"?(0,$e.jsx)($q,{children:(0,$e.jsx)(MC,{style:{borderTop:`5px solid ${e.frontmatter.themeColor}`},children:(0,$e.jsxs)("div",{children:[(0,$e.jsxs)(LC,{children:[(0,$e.jsx)("h3",{children:e.frontmatter.title?e.frontmatter.title:e.frontmatter.courseTitle}),(0,$e.jsx)("div",{style:{whiteSpace:"nowrap"},children:(0,$e.jsx)("span",{children:"Coming Soon"})})]}),(0,$e.jsx)(DC,{children:(0,$e.jsx)("p",{className:"summary",children:e.frontmatter.description})}),(0,$e.jsx)(FC,{children:(0,$e.jsx)("img",{src:e.frontmatter.cardImage,alt:e.frontmatter.title})})]})})}):(0,$e.jsx)(yTe,{path:t,children:(0,$e.jsx)(jq,{children:(0,$e.jsx)(MC,{style:{borderTop:`5px solid ${e.frontmatter.themeColor}`},children:(0,$e.jsxs)("div",{children:[(0,$e.jsxs)(LC,{style:{flexDirection:"column"},children:[(0,$e.jsx)(z,{variant:"body1",color:"textSecondary",children:e.frontmatter.type}),(0,$e.jsx)("h3",{style:{margin:"0.2rem 0.1rem"},children:e.frontmatter.title?e.frontmatter.title:e.frontmatter.courseTitle}),e.frontmatter.status?(0,$e.jsx)("p",{children:(0,$e.jsx)("span",{children:"New"})}):null]}),(0,$e.jsx)(DC,{children:(0,$e.jsx)("p",{className:"summary",children:e.frontmatter.description})}),(0,$e.jsxs)(Yq,{className:"card-subdata",children:[(0,$e.jsxs)("p",{children:[r," ",o,r>1?"s":""]}),(0,$e.jsx)("p",{children:e?.frontmatter?.level?e.frontmatter.level.charAt(0).toUpperCase()+e.frontmatter.level.slice(1):""})]}),(0,$e.jsx)(FC,{children:(0,$e.jsx)("img",{src:e.frontmatter.cardImage})})]})})})})}),NC=bTe;var hs=require("react");var BC=require("@mui/material");var Zq=(0,BC.styled)(kl)(()=>({minWidth:400,overflowWrap:"anywhere",textAlign:"center",padding:"5px"})),Qq=(0,BC.styled)(K)(()=>({display:"flex",justifyContent:"end",width:"100%",gap:"10px"}));var ra=require("react/jsx-runtime"),Km={WARNING:"warning",DANGER:"error",SUCCESS:"success",INFO:"info"},Xq=(0,hs.forwardRef)(({variant:e},t)=>{let[r,o]=(0,hs.useState)({isOpen:!1,title:"",subtitle:"",primaryOption:"",showInfoIcon:"",variant:e,headerIcon:void 0,isChecked:!1,showCheckbox:!1}),a=(0,hs.useRef)({resolve:()=>{},reject:()=>{}}),n=(0,y.useTheme)(),i=E=>new Promise((R,k)=>{a.current={resolve:R,reject:k},o({...E,isOpen:!0,showInfoIcon:E.showInfoIcon||"",showCheckbox:!!E.showCheckbox})}),l=()=>{o(E=>({...E,isOpen:!1}))},s=()=>{o(E=>({...E,isChecked:!E.isChecked}))},u=()=>!!r.isChecked;(0,hs.useImperativeHandle)(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(0,ra.jsxs)(Fr,{open:f,closeModal:l,title:p,id:"searchClick",headerIcon:h,reactNode:void 0,"data-testid":"prompt-modal",children:[m&&(0,ra.jsxs)(Dr,{"data-testid":"prompt-body",children:[(0,ra.jsx)(Zq,{id:"alert-dialog-description",variant:"body1",component:"div","data-testid":"prompt-subtitle",children:(0,ra.jsx)(z,{variant:"body1",component:"div",style:{color:n.palette.text.primary},children:m})}),g&&(0,ra.jsx)(Ll,{"data-testid":"prompt-checkbox-label",control:(0,ra.jsx)(Qr,{checked:u(),onChange:s,color:"primary","data-testid":"prompt-checkbox"}),label:(0,ra.jsx)("span",{style:{fontSize:"1rem"},children:"Do not show again"})})]}),(0,ra.jsx)(io,{variant:"filled",helpText:x,"data-testid":"prompt-footer",children:(0,ra.jsxs)(Qq,{"data-testid":"prompt-actions",children:[(0,ra.jsx)(fn,{"data-testid":"prompt-secondary-button",onClick:()=>{l(),T("CANCEL")},children:"Cancel"}),(0,ra.jsx)(un,{"data-testid":"prompt-primary-button",onClick:()=>{l(),T(d)},style:r.variant&&{backgroundColor:n.palette.background[r.variant]?.default,textTransform:"capitalize"},type:"submit",children:d})]})})]})});Xq.displayName="PromptComponent";var C3=Xq;var sp=C3;var HC=require("@mui/material/OutlinedInput"),y3=require("@mui/material/styles"),Jq=G(require("lodash/debounce")),$m=G(require("react"));var jn=require("react/jsx-runtime"),vTe=e=>(0,y3.createTheme)({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 .${HC.outlinedInputClasses.notchedOutline}`]:{borderColor:"var(--TextField-brandBorderHoverColor)"},[`&.Mui-focused .${HC.outlinedInputClasses.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 wTe({onSearch:e,placeholder:t,onClear:r,expanded:o,setExpanded:a,"data-testid":n="search-bar-wrapper"}){let[i,l]=$m.default.useState(""),s=$m.default.useRef(null),u=(0,y.useTheme)(),f=(0,$m.useCallback)((0,Jq.default)(x=>{e(x)},300),[e]),d=x=>{let h=x.target.value;l(h),f(h)},p=x=>{x.stopPropagation(),f(""),l(""),a(!1),r&&r()},m=x=>{x.stopPropagation(),o?(f(""),l(""),a(!1)):(a(!0),setTimeout(()=>{s.current&&s.current.focus()},300))};return(0,jn.jsx)(On,{onClickAway:x=>{x.stopPropagation();let h=x.target?.closest("#ref");i===""&&h&&p(x)},children:(0,jn.jsxs)("div",{style:{display:"flex"},"data-testid":n,children:[(0,jn.jsx)(y3.ThemeProvider,{theme:vTe(u),children:(0,jn.jsx)(Jr,{variant:"standard",value:i,onChange:d,inputRef:s,placeholder:t,"data-testid":"searchbar-input",style:{width:o?"150px":"0",opacity:o?1:0,transition:"width 0.3s ease, opacity 0.3s ease"}})}),o?(0,jn.jsx)(Wt,{title:"Close",onClick:p,icon:(0,jn.jsx)(Bt,{fill:u.palette.icon.default,"data-testid":"searchbar-clear-button"}),arrow:!0}):(0,jn.jsx)(Wt,{title:"Search",onClick:m,icon:(0,jn.jsx)(bd,{fill:u.palette.icon.default,"data-testid":"searchbar-search-button"}),arrow:!0})]})})}var Kn=wTe;var R3=require("@mui/material");var $i=require("react");var ETe="N/A",eG=e=>e&&e.deleted_at&&e.deleted_at.Valid===!0?ps(e.deleted_at.Time):ETe;var ji=require("react/jsx-runtime"),tG=(0,y.styled)("div")({display:"flex",gap:"1rem"}),gs=(0,y.styled)("div")({display:"flex",justifyContent:"space-between",width:"100%",alignItems:"center"}),b3=(0,y.styled)("div")({display:"flex",alignItems:"center",marginRight:"1rem"}),VC=(0,y.styled)("div")({boxSizing:"border-box",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),UC=(0,y.styled)("div")({position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box",display:"block",width:"100%"}),rG=(0,y.styled)("span")(()=>({"& svg":{cursor:"pointer",width:"2rem",height:"2rem"}})),Wft=(0,y.styled)("span")(()=>({"& svg":{width:"2rem",height:"2rem"}})),oG=(0,y.styled)("span")(({theme:e})=>({"& svg":{color:"#3C494F","&:hover":{color:e.palette.error.error}}})),v3=(0,y.styled)("span")(()=>({color:"#455a64",opacity:"0.5","& svg":{cursor:"not-allowed"}})),aG=(0,y.styled)("div")(()=>({display:"flex",justifyContent:"space-between",paddingRight:"26px"})),w3=(0,y.styled)("div")(()=>({color:"#455a64",display:"flex",cursor:"not-allowed","& svg":{cursor:"pointer"}})),nG=(0,y.styled)(Qr)({padding:0,marginRight:"0.5rem",height:"28px","& .MuiSvgIcon-root":{borderColor:"white"},color:"white","&:hover":{color:"white",cursor:"pointer"},"&.Mui-checked":{color:"white"}}),WC=(0,y.styled)(z)({fontSize:"1.25rem",fontWeight:800,"&:hover":{cursor:"default"}}),qft=(0,y.styled)(z)({fontSize:"0.9rem",display:"flex",alignItems:"end",padding:"0 5px","&:hover":{cursor:"default"}}),Gft=(0,y.styled)("button")({background:"transparent",border:"none","&:hover":{cursor:"default"}}),qC=(0,y.styled)(z)({fontStyle:"italic",fontSize:"12px","&:hover":{cursor:"default"}}),GC=(0,y.styled)(z)({fontSize:"0.9rem",textAlign:"left",fontStyle:"italic"}),iG=(0,y.styled)(GC)({height:"fit-content",fontStyle:"normal","&:hover":{cursor:"default"}}),RTe=(0,y.styled)(K)(({theme:e})=>({background:e.palette.background.brand?.default,padding:"10px 10px 1px 10px",borderRadius:"4px",height:"100%",display:"flex",width:"100%"})),Ym=(0,y.styled)(RTe)({display:"flex",width:"100%",gap:"10px","@media (min-width : 600px)":{flexDirection:"column",gap:"0"}}),zC=(0,y.styled)(ke)(({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"})),jC=(0,y.styled)("p")(({theme:e,textColor:t})=>({margin:"0",fontSize:"14px",fontWeight:"400",display:"flex",color:t||e.palette.text.constant?.white})),KC=(0,y.styled)("p")(({theme:e,textColor:t})=>({margin:"0",fontSize:"60px",fontWeight:"500",lineHeight:1,marginBottom:"5px",color:t||e.palette.text.constant?.white})),zft=(0,y.styled)(ke)(({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:`${ne[40]}30 !important`,"&:hover":{background:e.palette.text.default},padding:"15px 10px"})),jft=(0,y.styled)("div")(({disabled:e=!1})=>({cursor:e?"not-allowed":"pointer",opacity:e?"0.5":"1",display:"flex","& svg":{cursor:e?"not-allowed":"pointer"}})),lG=(0,y.styled)(he)(({theme:e})=>({borderBottom:`1px solid ${e.palette.divider}`,display:"flex",flexDirection:"row",padding:"5px 0"})),E3=({onClick:e,bulk:t,disabled:r,style:o,key:a,title:n="Delete"})=>{let i=(0,y.useTheme)();return(0,ji.jsx)(ge,{title:n,arrow:!0,children:(0,ji.jsx)("div",{children:(0,ji.jsx)(Xe,{sx:{"&:hover":{"& svg":{fill:r?i.palette.icon.disabled:i.palette.background.error?.hover}},...o},disableRipple:!0,disabled:r,onClick:e,children:(0,ji.jsx)(co,{fill:r?i.palette.icon.disabled:i.palette.icon.default,width:t?"28":"24",height:t?"28":"24",style:o})})})},a)},$n=({onClick:e,disabled:t,bulk:r,style:o,title:a="Edit"})=>{let n=(0,y.useTheme)();return(0,ji.jsx)(ge,{title:a,arrow:!0,children:(0,ji.jsx)("div",{children:(0,ji.jsx)(Xe,{onClick:e,sx:{"&:hover":{"& svg":{fill:t?n.palette.icon.disabled:n.palette.background.brand?.default}},...o},disableRipple:!0,disabled:t,children:(0,ji.jsx)($o,{fill:t?n.palette.icon.disabled:n.palette.icon.default,width:r?"28":"24",height:r?"28":"24",style:o})})})})},sG=(0,y.styled)(he)({display:"flex",flexDirection:"row"}),Kft=(0,y.styled)(he)({display:"flex",alignItems:"center",marginTop:1}),Zm=(0,y.styled)(he)({width:"100%"}),uG=(0,y.styled)(Ar)(({theme:e})=>({width:"100%",display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper,padding:e.spacing(2.5),cursor:"pointer"})),fG=(0,y.styled)(uG)(({theme:e})=>({minHeight:e.spacing(50),background:"linear-gradient(180deg, #007366 0%, #000 100%)"})),dG=(0,y.styled)(uG)(({theme:e})=>({minHeight:e.spacing(50),backgroundColor:e.palette.background.paper,boxShadow:"none"})),pG=(0,y.styled)(he)({display:"flex",flexDirection:"row",justifyContent:"space-between"}),mG=(0,y.styled)(he)({display:"flex",alignItems:"flex-start"}),cG=(0,y.styled)(he)({display:"flex",alignItems:"center",justifyContent:"flex-end"}),xG=(0,y.styled)(z)(({theme:e})=>({fontSize:"1.25rem",fontWeight:600,padding:"0.5rem 0",color:e.palette.background.constant?.white})),hG=(0,y.styled)(he)({display:"flex",flexDirection:"column",maxHeight:"14.5rem",overflowY:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},"-ms-overflow-style":"none"}),gG=(0,y.styled)(he)(({theme:e})=>({display:"flex",flexDirection:"row",position:"absolute",bottom:"20px",width:"100%",color:`${e.palette.background.constant?.white}99`,justifyContent:"space-between",paddingRight:"40px"})),$C=(0,y.styled)(he)({textAlign:"left"});var Ki=require("react/jsx-runtime"),OTe=({userId:e,userName:t,userEmail:r,profileUrl:o})=>{let a=(0,y.useTheme)(),n=()=>{window.open(`${ha}/user/${e}`)};return(0,Ki.jsxs)(he,{container:!0,alignItems:"center",children:[(0,Ki.jsx)(he,{children:(0,Ki.jsx)(K,{sx:{color:a.palette.text.default,mr:2,cursor:"pointer"},children:(0,Ki.jsx)(zt,{onClick:n,alt:t,src:o,children:o?"":(0,Ki.jsx)(Mn,{})})})}),(0,Ki.jsxs)(he,{size:"grow",children:[t,(0,Ki.jsx)(z,{variant:"body2",color:a.palette.text.disabled,children:r})]})]})},Mu=OTe;var Le=require("react/jsx-runtime"),ATe=({tableMeta:e,handleRemoveFromTeam:t,handleEditUser:r,isRemoveFromTeamAllowed:o,isEditUserAllowed:a,theme:n})=>(0,Le.jsxs)(w3,{children:[a?(0,Le.jsx)(Wt,{id:`edit_user-${e.rowIndex}`,onClick:r(e.rowData),title:"Edit user",iconType:"edit",children:(0,Le.jsx)($o,{fill:n?.palette.text.primary})}):(0,Le.jsx)($o,{style:{marginRight:".5rem"},fill:Ir,height:"30",width:"30"}),o?(0,Le.jsx)(Wt,{id:`delete_user-${e.rowIndex}`,onClick:t(e.rowData),title:"Remove user membership from team",iconType:"delete",children:(0,Le.jsx)(jl,{fill:n?.palette.text.primary})}):(0,Le.jsx)(jl,{fill:Ir,secondaryFill:Ir})]}),PTe=({teamID:e,useGetUsersForOrgQuery:t,org_id:r,useRemoveUserFromTeamMutation:o,useNotificationHandlers:a,isRemoveFromTeamAllowed:n,isEditUserAllowed:i,handleEditUser:l,theme:s})=>{let[u,f]=(0,$i.useState)(0),[d,p]=(0,$i.useState)(10),[m,x]=(0,$i.useState)("last_login_time desc"),[h,g]=(0,$i.useState)(""),T=[],{handleError:E,handleSuccess:R,handleInfo:k}=a(),D=(0,$i.useRef)(null),{width:C}=ea(),{data:v}=t({page:u,pagesize:d,search:h,order:m,teamId:e,orgId:r}),{data:P}=t({page:0,pagesize:d,search:h,order:m,orgId:r}),[B]=o(),_=v?.data||[],J=P?.data||[],X=_.map(se=>{let ue=J.find(Ue=>Ue.user_id===se.user_id),Ve=se.role_names||[],Qe=ue?.organization_with_user_roles?.role_names||[];return{...se,role_names:[...Ve,...Qe]}}),N=v?.total_count||0,W=se=>async()=>{let ue=se[0];await D.current?.show({title:"Remove User From Team ?",subtitle:M(se[3],se[2]),primaryOption:"Proceed",variant:Km.DANGER})==="Proceed"&&B({orgId:r,teamId:e,userId:ue}).unwrap().then(()=>{R(`${se[4]?se[4]:""} ${se[5]?se[5]:""} removed from team`)}).catch(Qe=>{let Ue=Qe.response?.data?.message||"Failed to remove user from team";Qe.response.status===404?k(Ue):E(Ue)})},H=(se,ue,Ve)=>{let Qe=Ve.findIndex(Ue=>Ue.name===ue);return se[Qe]},M=(se,ue)=>(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)("p",{children:"Are you sure you want to remove this user? (This action is irreversible)"}),(0,Le.jsxs)("p",{children:["User:"," ",(0,Le.jsx)("i",{children:(0,Le.jsx)("b",{children:se})})]}),(0,Le.jsxs)("p",{children:["Email:"," ",(0,Le.jsx)("i",{children:(0,Le.jsx)("b",{children:ue})})]})]}),L,F={search:!1,viewColumns:!1,filter:!1,rowsPerPageOptions:[10,20,25],responsive:"standard",selectableRows:"none",count:N,rowsPerPage:d,page:u,print:!1,download:!1,elevation:0,serverSide:!0,sortOrder:{name:m.split(" ")[0],direction:m.split(" ")[1]},onTableChange:(se,ue)=>{let Ve=ue.announceText?ue.announceText.split(" : "):[],Qe="";switch(ue.activeColumn&&(Qe=`${b[ue.activeColumn].name} desc`),se){case"changePage":f(ue.page);break;case"changeRowsPerPage":p(ue.rowsPerPage);break;case"search":L&&clearTimeout(L),L=setTimeout(()=>{h!==ue.searchText&&g(ue.searchText)},500);break;case"sort":Ve.length==2&&(Ve[1]==="ascending"?Qe=`${b[ue.activeColumn].name} asc`:Qe=`${b[ue.activeColumn].name} desc`),Qe!==m&&x(Qe);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"]],b=[{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:(se,ue)=>(0,Le.jsx)(K,{sx:{"& > img":{mr:2,flexShrink:0}},children:(0,Le.jsx)(Mu,{userId:H(ue.rowData,"user_id",b),userName:`${ue.rowData[4]} ${ue.rowData[5]}`,userEmail:ue.rowData[2],profileUrl:se})})}},{name:"email",label:"Email",options:{filter:!1,sort:!0,searchable:!0}},{name:"username",label:"Username",options:{filter:!1,sort:!0,searchable:!0,customBodyRender:(se,ue)=>(0,Le.jsxs)("div",{style:{display:"flex"},children:[se,se?.includes("@")?(0,Le.jsx)(Jt,{title:`Search "${ue.rowData[3]} ${ue.rowData[4]}" on Google`,children:(0,Le.jsx)("a",{href:`https://www.google.com/search?q=${ue.rowData[3]}+${ue.rowData[4]}`,style:{color:"inherit"},target:"_blank",rel:"noreferrer",children:(0,Le.jsx)("div",{children:(0,Le.jsx)(Y2,{width:20,height:20})})})}):(0,Le.jsx)(Jt,{title:`Lookup "${se}" on GitHub`,children:(0,Le.jsx)("a",{href:`https://www.github.com/${se}`,style:{color:"inherit"},target:"_blank",rel:"noreferrer",children:(0,Le.jsx)("div",{children:(0,Le.jsx)(tu,{width:22,height:22})})})})]})}},{name:"first_name",label:"First",options:{filter:!1,sort:!0,searchable:!0}},{name:"last_name",label:"Last",options:{filter:!1,sort:!0,searchable:!0}},{name:"role_names",label:"Roles",options:{filter:!0,sort:!1,searchable:!1,filterOptions:{names:T.concat(T?.map(se=>`!${se}`))},customBodyRender:se=>(0,Le.jsx)("div",{children:se?.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:(se,ue)=>se!="NA"&&ue.indexOf("Deleted")>=0?!0:se=="NA"&&ue.indexOf("Not Deleted")>=0,fullWidth:!0},customBodyRender:(se,ue)=>{let Ve=X[ue.rowIndex];return eG(Ve)}}},{name:"actions",label:"Actions",options:{filter:!1,sort:!1,searchable:!1,customBodyRender:(se,ue)=>H(ue.rowData,"deleted_at",b).Valid!==!1?(0,Le.jsxs)(v3,{children:[(0,Le.jsx)($o,{style:{marginRight:".5rem"},fill:Ir,height:"30",width:"30"}),(0,Le.jsx)(jl,{fill:Ir,secondaryFill:Ir,height:30,width:30})]}):(0,Le.jsx)(ATe,{tableMeta:ue,handleRemoveFromTeam:W,handleEditUser:l,isRemoveFromTeamAllowed:n,isEditUserAllowed:i,theme:s})}}],[oe,ie]=(0,$i.useState)(b),[O]=(0,$i.useState)(()=>{let se=ta(q,C),ue={};return b.forEach(Ve=>{ue[Ve.name]=se[Ve.name]}),ue});return(0,Le.jsxs)(N2,{initialMode:s?.palette.mode,children:[(0,Le.jsx)("div",{style:{margin:"auto",width:"100%"},children:(0,Le.jsx)(Vo,{columns:b,data:X,options:F,colViews:q,tableCols:oe,updateCols:ie,columnVisibility:O})}),(0,Le.jsx)(sp,{ref:D})]})},Qm=PTe;var up=require("react/jsx-runtime"),_Te=(0,y.styled)(R3.Grid2)(({theme:e})=>({display:"grid",margin:"auto",paddingLeft:"0.5rem",borderRadius:"0.25rem",width:"inherit",gap:e.spacing(1)})),ITe=({teams:e,tableOptions:t,columnVisibility:r,colViews:o,tableCols:a,columns:n,updateCols:i,isRemoveFromTeamAllowed:l,isEditUserAllowed:s,handleEditUser:u,org_id:f,useGetUsersForOrgQuery:d,useNotificationHandlers:p,useRemoveUserFromTeamMutation:m})=>{let x=(0,y.useTheme)();return(0,up.jsx)(no,{children:(0,up.jsx)(Vo,{columns:n,data:e,options:{...t,renderExpandableRow:(h,g)=>{let T=e[g.dataIndex].id;return(0,up.jsx)(R3.TableCell,{colSpan:6,sx:{paddingInline:"4rem",backgroundColor:`${x.palette.background.secondary} !important`},children:(0,up.jsx)(_Te,{container:!0,size:12,children:(0,up.jsx)(Qm,{teamID:T,isRemoveFromTeamAllowed:l,isEditUserAllowed:s,handleEditUser:u,org_id:f,useGetUsersForOrgQuery:d,useNotificationHandlers:p,useRemoveUserFromTeamMutation:m,theme:x})})})}},colViews:o,tableCols:a,updateCols:i,columnVisibility:r})})},Xm=ITe;var YC=require("react");var O3=require("react/jsx-runtime");function kTe({value:e,maxLength:t,...r}){return e.length>t?(0,O3.jsx)(Jt,{title:e,arrow:!0,placement:"top",children:(0,O3.jsx)("div",{style:{maxWidth:"15rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},...r,children:`${e.slice(0,t)}...`})}):(0,O3.jsx)("div",{style:{maxWidth:"15rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},...r,children:e})}var _a=kTe;var dt=require("react/jsx-runtime");function MTe({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)}),(0,dt.jsx)(rG,{children:(0,dt.jsx)(oG,{children:(0,dt.jsx)(ge,{title:"Delete Teams",children:(0,dt.jsx)(co,{height:28,width:28,fill:Ir,onClick:()=>{r(o)}})},"delete_teams")})})}function fp({teams:e,count:t,page:r,pageSize:o,setPage:a,setPageSize:n,sortOrder:i,setSortOrder:l,bulkSelect:s,setBulkSelect:u,handleTeamView:f,handleDeleteTeam:d,handleRemoveTeamFromWorkspace:p,handleleaveTeam:m,teamId:x,workspace:h=!1,isEditTeamAllowed:g,isLeaveTeamAllowed:T,isRemoveTeamFromWorkspaceAllowed:E,isDeleteTeamAllowed:R,setSearch:k}){let{width:D}=ea(),C=(0,y.useTheme)(),v=[["id","na"],["name","xs"],["description","m"],["owner","l"],["created_at","na"],["updated_at","xl"],["deleted_at","na"],["actions","xs"]],P=[{name:"id",label:"ID",options:{filter:!1,sort:!1,searchable:!1,customBodyRender:H=>(0,dt.jsx)(Um,{id:H})}},{name:"name",label:"Name",options:{filter:!1,sort:!0,searchable:!0}},{name:"description",label:"Description",options:{filter:!1,sort:!0,searchable:!1,customBodyRender:H=>(0,dt.jsx)(_a,{value:H??"",maxLength:30})}},{name:"owner",label:"Owner",options:{filter:!1,sort:!0,searchable:!0}},{name:"created_at",label:"Created At",options:{filter:!1,sort:!0,searchable:!1,sortDescFirst:!0}},{name:"updated_at",label:"Updated At",options:{filter:!1,sort:!0,searchable:!1,sortDescFirst:!0}},{name:"deleted_at",label:"Deleted At",options:{filter:!0,sort:!0,searchable:!1,sortDescFirst:!0,customBodyRender:H=>JSON.stringify(H),filterOptions:{names:["Deleted","Not Deleted"],logic:(H,M)=>H!="NA"&&M.indexOf("Deleted")>=0?!0:H=="NA"&&M.indexOf("Not Deleted")>=0,fullWidth:!0}}},{name:"actions",label:"Actions",options:{filter:!1,sort:!1,searchable:!1,customBodyRender:(H,M)=>s||M.rowData[4].Valid?(0,dt.jsxs)(v3,{children:[(0,dt.jsx)($o,{style:{marginRight:".5rem"}}),(0,dt.jsx)(co,{height:28,width:28,fill:Ir})]}):(0,dt.jsxs)(w3,{children:[!h&&(0,dt.jsxs)(dt.Fragment,{children:[(0,dt.jsx)(Ho,{disabled:!g,children:(0,dt.jsx)(Wt,{id:`edit_team-${M.rowIndex}`,title:"Edit Team",onClick:L=>{g&&f(L,M.rowData)},iconType:"edit",children:(0,dt.jsx)($o,{style:{height:28.8,width:28.8},fill:Ir})})}),(0,dt.jsx)(Ho,{disabled:!T,children:(0,dt.jsx)(Wt,{id:`leave_team-${M.rowIndex}`,title:"Leave Team",onClick:L=>T&&m(L,M.rowData),iconType:"delete",children:(0,dt.jsx)(jl,{fill:Ir,secondaryFill:Ir})})})]}),h?(0,dt.jsx)(Ho,{disabled:!E,children:(0,dt.jsx)(Wt,{id:`remove_team-${M.rowIndex}`,title:"Move Team",onClick:()=>{E&&p&&p(M.rowData[0])},iconType:"delete",children:(0,dt.jsx)(co,{height:28,width:28,fill:C.palette.icon.default})})}):(0,dt.jsx)(Ho,{disabled:!R,children:(0,dt.jsx)(Wt,{id:`delete_team-${M.rowIndex}`,title:"Delete Team",onClick:L=>{R&&d(L,M.rowData)},iconType:"delete",children:(0,dt.jsx)(co,{height:28,width:28,fill:Ir})})})]})}}],B=e?.findIndex(H=>H.id===x),_={filter:!1,selectableRows:"none",filterType:"dropdown",expandableRows:!0,expandableRowsHeader:!1,expandableRowsOnClick:!0,responsive:"standard",count:t,rowsPerPage:o,page:r,print:!1,download:!1,elevation:0,serverSide:!0,viewColumns:!1,search:!1,rowsExpanded:[B],customToolbarSelect:H=>(0,dt.jsx)(aG,{children:(0,dt.jsx)(MTe,{selected:H,teams:e,deleteTeamsModalHandler:()=>{}})}),textLabels:{selectedRows:{text:"teams(s) selected"}},onTableChange:(H,M)=>{let L=M.announceText?M.announceText.split(" : "):[],F="";switch(M.activeColumn&&(F=`${P[M.activeColumn].name} desc`),H){case"changePage":a(M.page);break;case"changeRowsPerPage":n(M.rowsPerPage);break;case"search":k(M.searchText!==null?M.searchText:"");break;case"sort":L.length==2&&(L[1]==="ascending"?F=`${P[M.activeColumn].name} asc`:F=`${P[M.activeColumn].name} desc`),F!==i&&l(F);break;case"rowSelectionChange":M.selectedRows.data.length?s||u(!0):u(!1);break;default:M.selectedRows.data.length==0&&s&&u(!1)}},isRowSelectable:H=>e[H].deleted_at.Valid!==!0,setRowProps:(H,M,L)=>(L&&L.selectedRows?L.selectedRows.data:[]).includes(M)?{style:{backgroundColor:C.palette.background.hover}}:H[6].Valid?{style:{backgroundColor:C.palette.icon.disabled}}:{style:{backgroundColor:C.palette.background.constant?.table}}},[J,X]=(0,YC.useState)(P),[N,W]=(0,YC.useState)(()=>{let H=ta(v,D),M={};return P.forEach(L=>{M[L.name]=H[L.name]}),M});return{columns:P,tableOptions:_,tableCols:J,updateCols:X,columnVisibility:N,setColumnVisibility:W,colViews:v}}var Ia=G(require("react"));var Ot=require("react/jsx-runtime"),LTe=({width:e=V,height:t=U,primaryFill:r="#00B39F",secondaryFill:o="#00D3A9",...a})=>(0,Ot.jsxs)("svg",{width:e,height:t,viewBox:"0 0 135 135",...a,xmlns:"http://www.w3.org/2000/svg",children:[(0,Ot.jsx)("path",{d:"M69.5 31.82V64.07L97.45 47.89L69.5 31.82Z",fill:o}),(0,Ot.jsx)("path",{d:"M69.5 70.81V103.22L97.7 87.09L69.5 70.81Z",fill:o}),(0,Ot.jsx)("path",{d:"M65.47 63.85V32.09L37.87 47.92L65.47 63.85Z",fill:r}),(0,Ot.jsx)("path",{d:"M10.1 103.1C15.5182 111.811 22.842 119.179 31.52 124.65V90.71L10.1 103.1Z",fill:r}),(0,Ot.jsx)("path",{d:"M65.47 103.06V71.05L37.8 87.07L65.47 103.06Z",fill:r}),(0,Ot.jsx)("path",{d:"M35.54 122.63L63.56 106.61L35.54 90.41V122.63Z",fill:o}),(0,Ot.jsx)("path",{d:"M99.62 122.8V90.63L71.64 106.63L99.62 122.8Z",fill:r}),(0,Ot.jsx)("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}),(0,Ot.jsx)("path",{d:"M103.64 83.69L131.76 67.61L103.64 51.45V83.69Z",fill:o}),(0,Ot.jsx)("path",{d:"M99.62 44.5V12.52L71.77 28.49L99.62 44.5Z",fill:r}),(0,Ot.jsx)("path",{d:"M99.62 83.55V51.28L71.7 67.44L99.62 83.55Z",fill:r}),(0,Ot.jsx)("path",{d:"M35.54 51.22V83.73L63.66 67.45L35.54 51.22Z",fill:o}),(0,Ot.jsx)("path",{d:"M65.47 0C55.1388 0.298791 45.016 2.97835 35.89 7.83L65.52 24.83L65.47 0Z",fill:r}),(0,Ot.jsx)("path",{d:"M35.54 12.3V44.62L63.69 28.48L35.54 12.3Z",fill:o}),(0,Ot.jsx)("path",{d:"M31.52 10.34C22.8442 15.8136 15.521 23.1813 10.1 31.89L31.52 44.25V10.34Z",fill:r}),(0,Ot.jsx)("path",{d:"M99.43 8C90.2123 3.0393 79.9635 0.299881 69.5 0V25.15L99.43 8Z",fill:o}),(0,Ot.jsx)("path",{d:"M0 69.87C0.348236 80.2825 3.1145 90.4711 8.08 99.63L29.77 87.07L0 69.87Z",fill:o}),(0,Ot.jsx)("path",{d:"M8.07001 35.37C3.13121 44.4917 0.372439 54.6334 0.0100098 65L29.8 47.91L8.07001 35.37Z",fill:o}),(0,Ot.jsx)("path",{d:"M35.78 127.13C44.9355 132.013 55.0981 134.706 65.47 135V110.15L35.78 127.13Z",fill:r}),(0,Ot.jsx)("path",{d:"M124.89 32C119.512 23.3126 112.237 15.9553 103.61 10.48V44.3L124.89 32Z",fill:o}),(0,Ot.jsx)("path",{d:"M103.64 124.54C112.314 119.022 119.624 111.61 125.02 102.86L103.64 90.52V124.54Z",fill:o}),(0,Ot.jsx)("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}),(0,Ot.jsx)("path",{d:"M69.5 135C79.845 134.709 89.9825 132.029 99.12 127.17L69.5 110V135Z",fill:o}),(0,Ot.jsx)("path",{d:"M31.52 83.44V51.56L3.83002 67.43L31.52 83.44Z",fill:r})]}),ZC=LTe;var TG=G(require("@mui/material/Tooltip")),SG=G(require("react")),QC=require("react/jsx-runtime"),DTe=SG.default.forwardRef((e,t)=>(0,QC.jsx)(TG.default,{...e,ref:t,children:(0,QC.jsx)("span",{children:e.children})})),XC=DTe;var Yn=require("@mui/material");var CG=(0,Yn.styled)(Nt)(({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"})),yG=(0,Yn.styled)(An)(({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%"}})),JC=(0,Yn.styled)(z)(({theme:e})=>({paddingBottom:"15px",color:e.palette.text?.default,textAlign:"center",fontSize:"1rem",letterSpacing:"0.15px"})),Jm=(0,Yn.styled)(ke)(({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:`${et} !important`,fill:e.palette.icon.inverse}})),ey=(0,Yn.styled)(Yn.Grid2)({padding:"0 1rem","@media (max-width: 768px)":{padding:"0",display:"flex",alignItems:"center",flexDirection:"column",width:"100%"}}),bG=(0,Yn.styled)(Yn.Grid2)({padding:"2.5rem 1rem 0 1rem","@media (max-width: 768px)":{padding:"1rem",transform:"rotate(90deg)",height:"6.25rem",marginLeft:"6.25rem"}});var qe=require("react/jsx-runtime"),vG={CHIP:"chip",OTHER:"other"};function FTe(e){return e?{meshery:(0,qe.jsx)(ZC,{}),kubernetes:(0,qe.jsx)(md,{}),github:(0,qe.jsx)(tu,{})}[e]||null:(0,qe.jsx)(md,{})}function A3(e,t){return e.filter(r=>t.indexOf(r)===-1)}function wG(e,t){return e.filter(r=>t.indexOf(r)!==-1)}function NTe({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=vG.OTHER}){let[h,g]=Ia.default.useState([]),[T,E]=Ia.default.useState([]),[R,k]=Ia.default.useState(n),[D,C]=Ia.default.useState(0),[v,P]=Ia.default.useState(0);Ia.default.useEffect(()=>{k(n)},[n]),Ia.default.useEffect(()=>{E(t)},[t]),Ia.default.useEffect(()=>{C(f),P(d)},[f,d]);let B=wG(h,T),_=wG(h,R);Ia.default.useEffect(()=>{r(R)},[R]),Ia.default.useEffect(()=>{let L=b=>{b[0].isIntersecting&&o()},F=new IntersectionObserver(L,{threshold:1}),q=document.getElementById("leftList");return q&&F.observe(q),()=>{q&&F.unobserve(q)}},[t]),Ia.default.useEffect(()=>{let L=b=>{b[0].isIntersecting&&a()},F=new IntersectionObserver(L,{threshold:1}),q=document.getElementById("rightList");return q&&F.observe(q),()=>{q&&F.unobserve(q)}},[n]);let J=L=>()=>{let F=h.indexOf(L),q=[...h];F===-1?q.push(L):q.splice(F,1),g(q)},X=L=>{L.stopPropagation(),k(R.concat(T)),E([]),C(0),P(F=>F+D)},N=L=>{L.stopPropagation(),k(R.concat(B)),E(A3(T,B)),g(A3(h,B)),C(F=>F-B.length),P(F=>F+B.length)},W=L=>{L.stopPropagation(),E(T.concat(_)),k(A3(R,_)),g(A3(h,_)),P(F=>F-_.length),C(F=>F+_.length)},H=L=>{L.stopPropagation(),E(T.concat(R)),k([]),P(0),C(F=>F+v)},M=(L,F,q,b)=>(0,qe.jsxs)(yG,{children:[(0,qe.jsx)(Xr,{dense:!0,component:"div",role:"list",children:L.length>0?L.map(oe=>{let ie=`transfer-list-item-${oe.name}-label`;return(0,qe.jsxs)(Pr,{role:"listitem",sx:{display:"flex",justifyContent:"space-between","&:hover":{backgroundColor:"#00000010"}},onClick:J(oe),children:[x===vG.CHIP?(0,qe.jsx)(XC,{title:oe.name,placement:"top",children:(0,qe.jsx)(CG,{sx:{paddingY:"10px"},variant:"outlined",label:oe.name,onDelete:()=>{},deleteIcon:(0,qe.jsx)(l5,{}),icon:FTe(oe?.kind)||(0,qe.jsx)(md,{})})}):(0,qe.jsx)(XC,{title:oe.name,placement:"top",children:(0,qe.jsx)(z,{sx:{maxWidth:"230px",height:"1.5rem",overflow:"hidden"},children:oe.name})}),(0,qe.jsx)(Qr,{checked:h.indexOf(oe)!==-1,tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":ie}})]},oe.id)}):(0,qe.jsxs)("div",{style:{textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"264px"},children:[F,(0,qe.jsx)(z,{sx:{color:"#979797",px:5,py:2,lineHeight:1},children:q})]})}),(0,qe.jsx)("div",{id:b})]});return(0,qe.jsxs)(he,{container:!0,justifyContent:"center",alignItems:"center",children:[(0,qe.jsxs)(ey,{children:[(0,qe.jsxs)(JC,{children:["Available ",e," (",T.length,")"]}),M(T,i,l,"leftList")]}),(0,qe.jsx)(bG,{children:(0,qe.jsxs)(he,{container:!0,direction:"column",alignItems:"center",children:[(0,qe.jsxs)(Jm,{variant:"outlined",size:"small",onClick:X,disabled:!m||m&&(T?.length===0||T.length<D),"aria-label":"move all right",children:[(0,qe.jsx)(yd,{width:18,height:18}),(0,qe.jsx)(yd,{style:{position:"absolute",left:"27px"},width:18,height:18})]}),(0,qe.jsx)(Jm,{variant:"outlined",size:"small",onClick:N,disabled:!m||m&&B.length===0,"aria-label":"move selected right",children:(0,qe.jsx)(yd,{width:18,height:18})}),(0,qe.jsx)(Jm,{variant:"outlined",size:"small",onClick:W,disabled:!p||p&&_.length===0,"aria-label":"move selected left",children:(0,qe.jsx)(xd,{width:18,height:18})}),(0,qe.jsxs)(Jm,{variant:"outlined",size:"small",onClick:H,disabled:!p||p&&(R?.length===0||R.length<v),"aria-label":"move all left",children:[(0,qe.jsx)(xd,{width:18,height:18}),(0,qe.jsx)(xd,{style:{position:"absolute",left:"27px"},width:18,height:18})]})]})}),(0,qe.jsxs)(ey,{children:[(0,qe.jsxs)(JC,{children:["Assigned ",e," (",R.length,")"]}),M(R,s,u,"rightList")]})]})}var dp=NTe;var pp=require("@mui/material"),ty=G(require("react"));var ir=require("react/jsx-runtime"),BTe=(0,pp.styled)("div")(({theme:e})=>({background:e.palette.mode==="light"?Si.header:Ti.header,padding:"0.75rem 1rem",margin:"-1rem -1rem 1rem -1rem",display:"flex",justifyContent:"space-between",alignItems:"center"}));function HTe({filters:e,selectedFilters:t,setSelectedFilters:r,variant:o="outlined",handleApplyFilter:a,showAllOption:n=!0,id:i}){let[l,s]=ty.default.useState(null),[u,f]=ty.default.useState(!1),d=(0,y.useTheme)(),p=(0,pp.useMediaQuery)(d.breakpoints.down("sm")),m=E=>{s(E.currentTarget),f(R=>!R)},x=()=>{s(null),f(!1)},h=(E,R)=>{let k=E.target.value;r(D=>({...D,[R]:k}))},g=()=>{x(),a()},T=()=>(0,ir.jsxs)("div",{children:[(0,ir.jsx)(BTe,{children:(0,ir.jsx)("h3",{children:"Filters: "})}),Object.keys(e).map(E=>{let R=e[E].options;return(0,ir.jsxs)("div",{role:"presentation",children:[(0,ir.jsx)(Dl,{id:e[E].name,children:e[E].name}),(0,ir.jsxs)(xa,{defaultValue:"All",value:t[E],variant:o,onChange:k=>h(k,E),style:{width:"20rem",marginBottom:"1rem"},inputProps:{"aria-label":"Without label"},displayEmpty:!0,children:[n&&(0,ir.jsx)(It,{value:"All",children:"All"}),R.map(k=>(0,ir.jsx)(It,{value:k.value,children:k.label},k.value))]},E)]},E)}),(0,ir.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,ir.jsx)(ke,{variant:"contained",onClick:g,children:"Apply"})})]});return(0,ir.jsx)(ir.Fragment,{children:(0,ir.jsxs)("div",{id:i,children:[(0,ir.jsx)(Wt,{title:"Filter",onClick:m,icon:(0,ir.jsx)(q2,{fill:d.palette.icon.default}),arrow:!0}),p?(0,ir.jsx)(pp.Drawer,{anchor:"bottom",open:u,onClose:x,PaperProps:{style:{padding:"0 1rem 1rem 1rem",backgroundColor:d.palette.background.surfaces}},children:T()}):(0,ir.jsx)(Xd,{id:u&&l?"transition-popper":void 0,open:u,anchorEl:l,placement:"bottom-end",children:(0,ir.jsx)(On,{onClickAway:x,mouseEvent:"onMouseDown",touchEvent:"onTouchStart",children:(0,ir.jsx)(An,{sx:{padding:"1rem",paddingTop:"1.8rem",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",backgroundColor:d.palette.background.surfaces},children:T()})})})]})})}var EG=HTe;var RG=require("react");var oa=require("react/jsx-runtime"),dn={PUBLIC:"public",PRIVATE:"private",PUBLISHED:"published"},VTe=(0,y.styled)(Fl)(({theme:e})=>({"& .MuiPaper-root":{backgroundColor:e.palette.mode==="light"?u1: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"?$s:"rgba(0, 179, 159, 0.25)"}},"& .Mui-selected":{backgroundColor:e.palette.mode==="light"?$s:"rgba(0, 179, 159, 0.25)"},"& .MuiList-padding":{padding:"0px"}})),UTe=(0,y.styled)(ke)(()=>({padding:"0px"})),WTe=(0,y.styled)("div")(({theme:e,enabled:t})=>({paddingLeft:"0.3rem",height:"1.5rem",width:"auto",paddingRight:t?"0":"0.3rem",borderRadius:"0.25rem",border:`1px solid ${Jf}`,background:e?.palette.mode==="light"?u1: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})),qTe=(0,y.styled)(It)(({theme:e})=>({textTransform:"capitalize",color:e.palette.icon.default})),GTe=(0,y.styled)("div")({marginRight:"0.5rem"}),zTe=({value:e,onChange:t,options:r,enabled:o})=>{let[a,n]=(0,RG.useState)(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(0,oa.jsxs)(oa.Fragment,{children:[(0,oa.jsx)(UTe,{disabled:!o,onClick:s,"data-testid":`design-visibility-${e.toLowerCase()}`,children:(0,oa.jsxs)(WTe,{enabled:o,children:[(0,oa.jsx)("span",{style:{fontSize:"0.85rem"},children:e}),o&&(0,oa.jsx)(SF,{style:{...Zo}})]})}),(0,oa.jsx)(VTe,{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)=>(0,oa.jsxs)(qTe,{"data-testid":`visibility-toggle-${f.toLowerCase()}`,onClick:m=>u(m,f),children:[(0,oa.jsx)(GTe,{children:(0,oa.jsx)(d,{width:16,height:16})}),f]},p))})]})},Yi=zTe;var FG=require("@mui/material");var Uo=require("@mui/material"),OG=(0,Uo.styled)("div")(()=>({width:"85px",height:"88px",overflow:"hidden",position:"absolute",top:"-3px",left:"-3px"})),AG=(0,Uo.styled)("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"})),PG=(0,Uo.styled)("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})),_G=(0,Uo.styled)("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"})),IG=(0,Uo.styled)("span")(({theme:e})=>({position:"absolute",top:"0",right:"0",minWidth:"3rem",padding:"0 0.75rem",fontSize:"0.875rem",textTransform:"capitalize",background:e.palette.background.brand?.default,color:e.palette.text.inverse,borderRadius:"0 1rem 0 2rem"})),mp=(0,Uo.styled)("p")(({theme:e})=>({fontSize:"1rem",textTransform:"capitalize",margin:"0rem",lineHeight:"1.5",textAlign:"center",color:e.palette.text.secondary,fontWeight:"600"})),kG=(0,Uo.styled)(Uo.Typography)(({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%"})),MG=(0,Uo.styled)("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%"})),cp=(0,Uo.styled)("div")(()=>({display:"flex",alignItems:"center",gap:"4px",fontSize:"0.2rem",color:"rgba(26, 26, 26, .8)",margin:"0rem",padding:"0.1rem"})),LG=(0,Uo.styled)("div")(()=>({height:"max-content",display:"flex",marginTop:"-1rem",flexDirection:"column",padding:"0rem 1rem",justifyContent:"start",alignItems:"start","@media (max-width:1200px)":{height:"max-content"}})),DG=(0,Uo.styled)("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"}));var Ze=require("react/jsx-runtime"),Lpt=(0,FG.styled)("a")(()=>({textDecoration:"none"}));var jTe=({catalogClassName:e})=>e?(0,Ze.jsx)(OG,{children:(0,Ze.jsx)(AG,{catalogClassName:e,children:e})}):(0,Ze.jsx)(Ze.Fragment,{}),KTe=({pattern:e,patternType:t,cardHeight:r,cardWidth:o,cardStyles:a,onCardClick:n})=>{let i={height:r,width:o,...a};return(0,Ze.jsx)(PG,{outerStyles:i,onClick:n,children:(0,Ze.jsxs)(_G,{className:"innerCard",children:[(0,Ze.jsx)(jTe,{catalogClassName:e?.catalog_data?.content_class}),(0,Ze.jsx)(IG,{children:t}),(0,Ze.jsxs)(LG,{children:[(0,Ze.jsx)(kG,{style:{margin:"3rem 0 1.59rem 0",textAlign:"center"},children:e.name}),(0,Ze.jsx)(DG,{children:(0,Ze.jsx)(Ja,{height:"118",width:"120"})})]}),(0,Ze.jsxs)(MG,{children:[(0,Ze.jsxs)(cp,{children:[(0,Ze.jsx)(Ca,{width:18,height:18}),(0,Ze.jsx)(mp,{children:e.download_count})]}),(0,Ze.jsxs)(cp,{children:[(0,Ze.jsx)(od,{width:18,height:18,fill:"#51636B"}),(0,Ze.jsx)(mp,{children:e.clone_count})]}),(0,Ze.jsxs)(cp,{children:[(0,Ze.jsx)(Td,{width:18,height:18,fill:"#51636B"}),(0,Ze.jsx)(mp,{children:e.view_count})]}),(0,Ze.jsxs)(cp,{children:[(0,Ze.jsx)(dd,{width:18,height:18}),(0,Ze.jsx)(mp,{children:e.deployment_count})]}),(0,Ze.jsxs)(cp,{children:[(0,Ze.jsx)(Ln,{width:18,height:18,fill:"#51636B"}),(0,Ze.jsx)(mp,{children:e.share_count})]})]})]})})},ry=KTe;var jG=require("@mui/material/styles"),oc=require("react");var rc=require("react");var P3=require("react");var HG=require("lodash"),Lu=require("react");var oy=require("@mui/material");var NG=(0,oy.styled)(js)(({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})),BG=(0,oy.styled)(Uf)(({theme:e})=>({borderLeft:`1px solid ${e.palette.background.tertiary}`,height:"30px",paddingLeft:"10px"}));var ec=require("react/jsx-runtime");function $Te({onChange:e,value:t="",label:r,sx:o,placeholder:a,endAdornment:n,debounceTime:i=300}){let l=(0,y.useTheme)(),[s,u]=(0,Lu.useState)(t);(0,Lu.useEffect)(()=>{t!==s&&u(t)},[t]);let f=m=>({target:{value:m},persist:()=>{}}),d=(0,Lu.useMemo)(()=>(0,HG.debounce)(m=>{e?.(f(m))},i),[e,i]);return(0,Lu.useEffect)(()=>{if(e)return s===""?e(f(s)):d(s),()=>{d.cancel()}},[s,e,d]),(0,ec.jsx)(NG,{type:"search",label:r,fullWidth:!0,value:s,onChange:m=>{let x=m.target.value;u(x)},sx:o,placeholder:a??"Search",startAdornment:(0,ec.jsx)(Uf,{position:"start",children:(0,ec.jsx)(bd,{fill:l.palette.background.neutral?.default})}),endAdornment:(0,ec.jsx)(BG,{position:"end",children:n})})}var tc=$Te;var Zn=require("@mui/material/styles");var VG=(0,Zn.styled)(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"}})),UG=(0,Zn.styled)("div")(()=>({display:"none","@media (max-width:899px)":{display:"block"}})),Zpt=(0,Zn.styled)("div")(()=>({display:"flex",justifyContent:"space-around",alignItems:"center"})),WG=(0,Zn.styled)(ke)(({theme:e})=>({backgroundColor:e.palette.primary.brand?.default,"&:hover":{backgroundColor:e.palette.background.default},height:"3.75rem","@media (max-width:450px)":{minWidth:"0px"}})),qG=(0,Zn.styled)(K)(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0.5rem 1rem",background:e.palette.mode==="light"?Si.header:Ti.header,height:"10vh"})),Qpt=(0,Zn.styled)(ci)(({theme:e})=>({padding:"0.25rem 2rem",borderBottom:"1px solid",borderBottomColor:e.palette.text.disabled})),GG=(0,Zn.styled)(ci)(({theme:e})=>({backgroundColor:e.palette.background.surfaces,borderRadius:"0.5rem",marginTop:2,display:"flex",justifyContent:"space-between"})),zG=(0,Zn.styled)("p")(({theme:e})=>({color:e.palette.text.tertiary})),Xpt=(0,Zn.styled)("span")(()=>({marginLeft:"0.5rem",display:"block","@media (max-width: 853px)":{display:"none"}}));var lr=require("react/jsx-runtime"),YTe=({filterKey:e,sectionDisplayName:t,options:r=[],filters:o,openSections:a,onCheckboxChange:n,onSectionToggle:i,styleProps:l,customComponent:s})=>{let[u,f]=(0,P3.useState)(""),d=(0,P3.useCallback)(x=>{f(x.target.value)},[]),p=r.length>10,m=u&&r.length?r.filter(x=>x.label.toLowerCase().includes(u.toLowerCase())):r;return(0,lr.jsxs)(lr.Fragment,{children:[(0,lr.jsxs)(GG,{onClick:()=>i(e),style:{backgroundColor:l.sectionTitleBackgroundColor},children:[(0,lr.jsx)(z,{sx:{fontSize:"1rem"},fontWeight:"bold",fontFamily:l.fontFamily,children:(t||e).toUpperCase()}),a[e]?(0,lr.jsx)(Yl,{}):(0,lr.jsx)(Yo,{})]}),(0,lr.jsx)(ma,{in:a[e],timeout:"auto",unmountOnExit:!0,children:s?(0,lr.jsx)(s,{}):(0,lr.jsxs)(Xr,{component:"div",sx:{overflowY:"auto",maxHeight:"25rem",backgroundColor:l.backgroundColor,"&::-webkit-scrollbar":{width:"6px"}},children:[p&&(0,lr.jsx)(K,{sx:{px:"0.5rem",mb:"0.5rem"},children:(0,lr.jsx)(tc,{value:u,onChange:d,placeholder:"Search",endAdornment:(0,lr.jsxs)(zG,{children:["Total : ",m.length??0]})})}),m.map((x,h)=>(0,lr.jsxs)(jf,{direction:"row",alignItems:"center",px:"0.5rem",justifyContent:"space-between",children:[(0,lr.jsxs)(jf,{direction:"row",alignItems:"center",gap:"0.35rem",children:[(0,lr.jsx)(Qr,{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&&(0,lr.jsx)(x.Icon,{width:"20px",height:"20px"}),(0,lr.jsx)(z,{fontFamily:l.fontFamily,children:x.label})]}),(0,lr.jsxs)(jf,{direction:"row",alignItems:"center",gap:"0.35rem",children:[x.totalCount!==void 0&&`(${x.totalCount||0})`,x.description&&(0,lr.jsx)(Ui,{variant:"standard",helpText:x.description})]})]},`${x.value}-${h}`))]})})]})},ay=YTe;var xp=require("react/jsx-runtime"),ZTe=({lists:e,onApplyFilters:t,value:r,styleProps:o})=>{let[a,n]=(0,rc.useState)(()=>{let s={};return e.forEach(u=>{s[u.filterKey]=!!u.defaultOpen}),s}),i=(0,rc.useCallback)(s=>{n(u=>({...u,[s]:!u[s]}))},[]),l=(0,rc.useCallback)((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(0,xp.jsx)(xp.Fragment,{children:e.map(s=>s.customComponent?(0,xp.jsx)(ay,{filterKey:s.filterKey,filters:r,sectionDisplayName:s.sectionDisplayName,onSectionToggle:i,styleProps:o,openSections:a,customComponent:s.customComponent},s.filterKey):(0,xp.jsx)(ay,{filterKey:s.filterKey,sectionDisplayName:s.sectionDisplayName,options:s.options,filters:r,openSections:a,onCheckboxChange:l,onSectionToggle:i,styleProps:o},s.filterKey))})},ny=ZTe;var cr=require("react/jsx-runtime"),QTe=({lists:e,setData:t,value:r={},styleProps:o})=>{let a=(0,jG.useTheme)(),[n,i]=(0,oc.useState)(!1),l=(0,oc.useCallback)(()=>{i(!0)},[]),s=(0,oc.useCallback)(()=>{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:Vl.main,fontFamily:a.typography.fontFamily},...o};return(0,cr.jsxs)(cr.Fragment,{children:[(0,cr.jsx)(VG,{styleProps:f,children:(0,cr.jsx)(ny,{lists:e,onApplyFilters:t,value:r,styleProps:f})}),(0,cr.jsxs)(UG,{children:[(0,cr.jsx)(ge,{title:"Filters",placement:"bottom",children:(0,cr.jsx)(WG,{variant:"contained",onClick:l,children:(0,cr.jsx)(PF,{style:{height:"28px",width:"28px"},fill:a.palette.text.default})})}),(0,cr.jsx)(x2,{anchor:"bottom",open:n,variant:"temporary",onClose:s,style:{zIndex:"1399"},children:(0,cr.jsxs)(K,{sx:{overflowY:"hidden",height:"90vh"},children:[(0,cr.jsxs)(qG,{children:[(0,cr.jsx)(z,{variant:"h6",sx:{color:a.palette.text.constant?.white},component:"div",children:"Filters"}),(0,cr.jsx)(Au,{onClick:s,children:(0,cr.jsx)(Bt,{height:"32px",width:"32px"})})]}),(0,cr.jsx)(K,{style:{height:"75vh",overflowY:"auto",background:a.palette.background.surfaces,padding:"0 16px"},children:(0,cr.jsx)(ny,{lists:e,onApplyFilters:t,value:r,styleProps:f})}),(0,cr.jsx)(K,{sx:{background:a.palette.mode==="light"?Si.fotter:Ti.fotter,height:"5vh"}})]})})]})]})},iy=QTe;var Du=require("react/jsx-runtime");function XTe({open:e,content:t,title:r,actions:o,onClose:a}){return(0,Du.jsxs)(ca,{open:e,onClose:a,children:[(0,Du.jsx)(Lm,{children:r}),(0,Du.jsx)(Il,{children:(0,Du.jsx)(kl,{children:t})}),(0,Du.jsx)(Vf,{children:o})]})}var ly=XTe;var hp=require("@mui/material"),aa=G(require("react"));var Kt=require("react/jsx-runtime"),KG=require("react"),JTe=({data:e,label:t,fetchSuggestions:r,setFilterData:o,isLoading:a,type:n,disabled:i,selectedData:l,searchValue:s,setSearchValue:u,iconComponent:f=(0,Kt.jsx)(V1,{...kd})})=>{let[d,p]=(0,aa.useState)(""),[m,x]=(0,aa.useState)(!1),[h,g]=(0,aa.useState)(!1),[T,E]=(0,aa.useState)(l);(0,aa.useEffect)(()=>{E(l)},[l]);let R=(0,aa.useCallback)(C=>{let v=T.filter(P=>P.id!==C);E(v),o(v)},[T,o]),k=(0,aa.useCallback)((C,v)=>{if(!v)return;if(T.some(_=>_.id===v.id)){p(`${n} already selected`);return}let B=[...T,v];E(B),o(B),p(""),u(""),x(!1)},[T,o,n,u]),D=(0,aa.useCallback)((C,v)=>{u(v),v===""?x(!1):(r(v),p(""),x(!0))},[r,u]);return(0,Kt.jsxs)(K,{sx:{width:"100%"},children:[(0,Kt.jsx)(hp.Autocomplete,{id:`${n}-search-field`,style:{width:"100%"},options:e,getOptionLabel:()=>s,isOptionEqualToValue:(C,v)=>C.id===v.id,noOptionsText:a?"Loading...":`No ${n} found`,loading:a,open:m,onClose:()=>x(!1),disabled:i,value:void 0,inputValue:s,onChange:k,onInputChange:D,filterOptions:C=>C,disableClearable:!0,includeInputInList:!0,filterSelectedOptions:!0,disableListWrap:!0,clearOnBlur:!0,popupIcon:null,blurOnSelect:!0,forcePopupIcon:!1,renderInput:C=>(0,Kt.jsx)(Jr,{...C,label:t||`Add ${n}`,error:!!d,helperText:d,fullWidth:!0,InputLabelProps:{style:{fontFamily:"inherit"}},InputProps:{...C.InputProps,endAdornment:(0,Kt.jsx)(aa.default.Fragment,{children:a?(0,Kt.jsx)(jt,{color:"inherit",size:20}):null})}}),renderOption:(C,v)=>(0,KG.createElement)("li",{...C,key:v.id},(0,Kt.jsx)(K,{component:"li",sx:{"& > img":{mr:2,flexShrink:0}},children:(0,Kt.jsxs)(hp.Grid2,{container:!0,alignItems:"center",children:[(0,Kt.jsx)(hp.Grid2,{children:(0,Kt.jsx)(K,{sx:{color:"text.secondary",mr:2},children:f})}),(0,Kt.jsx)(hp.Grid2,{size:"grow",children:(0,Kt.jsx)(z,{variant:"body2",children:v.name})})]})}))}),(0,Kt.jsxs)(K,{sx:{display:"flex",flexWrap:"wrap",gap:.5,mt:T?.length>0?"0.5rem":""},children:[!h&&T?.length>0&&(0,Kt.jsx)(Nt,{avatar:f,label:T[T.length-1]?.name,size:"small",onDelete:()=>R(T[T.length-1]?.id),deleteIcon:(0,Kt.jsx)(Jt,{title:`Remove ${n}`,children:(0,Kt.jsx)(Bt,{style:To})})},T[T.length-1]?.id),h&&T?.map(C=>(0,Kt.jsx)(Nt,{avatar:(0,Kt.jsx)(V1,{...To}),label:C.name,size:"small",onDelete:()=>R(C.id),deleteIcon:(0,Kt.jsx)(Jt,{title:`Remove ${n}`,children:(0,Kt.jsx)(Bt,{style:To})})},C.id)),T?.length>1&&(0,Kt.jsx)(z,{onClick:()=>g(!h),sx:{cursor:"pointer"},children:h?"(hide)":`(+${T?.length-1})`})]})]})},sy=JTe;var ac=require("@mui/material"),$G=(0,ac.styled)("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"}})),YG=(0,ac.styled)("div")({display:"inline-flex"}),ZG=(0,ac.styled)("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)"})),QG=(0,ac.styled)("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)"}}));var Ts=require("react/jsx-runtime"),e8e=({chapterNum:e,chapter:t})=>(0,Ts.jsx)($G,{id:t.frontmatter.courseTitle?t.frontmatter.courseTitle:void 0,children:(0,Ts.jsxs)(YG,{children:[(0,Ts.jsx)(ZG,{children:e}),(0,Ts.jsxs)(QG,{children:[(0,Ts.jsx)("h2",{children:t.frontmatter.chapterTitle?t.frontmatter.chapterTitle:t.frontmatter.courseTitle}),(0,Ts.jsx)("p",{children:t.frontmatter.description})]})]})}),uy=e8e;var _3=require("@mui/material"),I3=G(require("react"));var Fu=require("@mui/material/styles");var W1t=(0,Fu.styled)("div")(({theme:e})=>({marginLeft:".5rem",color:e.palette.background.secondary})),XG=(0,Fu.styled)(qf)({overflowY:"auto",scrollbarWidth:"none","&::-webkit-scrollbar":{width:"0em"}}),JG=(0,Fu.styled)(Pr)(()=>({pointerEvents:"auto",margin:"0.5rem 0rem 0.5rem 0rem",fontSize:"0.1rem",padding:"0"})),ez=(0,Fu.styled)(Pr)(()=>({pointerEvents:"auto",margin:"0rem 0rem 0rem 0.5rem",fontSize:"0.1rem"})),tz=(0,Fu.styled)("div")({marginRight:"0.75rem",marginLeft:"0.5rem"}),rz=(0,Fu.styled)("div")({marginRight:"0.5rem"});var Yr=require("react/jsx-runtime"),t8e=({navigationItems:e,MenuListProps:t={},ListItemTextProps:r={}})=>{let o=(0,_3.useTheme)(),a=(0,_3.useMediaQuery)(o.breakpoints.up("sm")),[n,i]=(0,I3.useState)(null),l=(s,u)=>{u.stopPropagation(),i(f=>f===s?null:s)};return(0,Yr.jsx)(XG,{...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:(0,Yr.jsxs)(I3.default.Fragment,{children:[(0,Yr.jsxs)(It,{disabled:!f,onClick:s.onClick,"data-testid":`nav-item-${s.id}`,children:[(0,Yr.jsxs)(JG,{children:[s.icon&&(0,Yr.jsx)(tz,{children:s.icon}),(0,Yr.jsx)(Xt,{primary:s.title,...r})]}),s.subItems&&(0,Yr.jsx)(Xt,{"data-testid":`nav-toggle-${s.id}`,children:u?(0,Yr.jsx)(Yl,{onClick:m=>l(s.id,m)}):(0,Yr.jsx)(Yo,{onClick:m=>l(s.id,m)})})]}),s.subItems&&(0,Yr.jsx)(ma,{in:u,timeout:"auto",unmountOnExit:!0,variant:"submenu",children:s.subItems.map(m=>(0,Yr.jsx)(It,{disabled:!m.permission,onClick:m.onClick,"data-testid":`nav-subitem-${m.id}`,children:(0,Yr.jsxs)(ez,{children:[m.icon&&(0,Yr.jsx)(rz,{children:m.icon}),(0,Yr.jsx)(Xt,{primary:m.title,...r})]})},m.id))}),d&&(0,Yr.jsx)(Oo,{})]},s.id)})})},fy=t8e;var k3=require("@mui/material");var gp=require("react/jsx-runtime"),r8e=(0,k3.styled)("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"})),o8e=(0,k3.styled)("h4")(({type:e,theme:t})=>({color:e==="warning"?t.palette.text.warning:t.palette.background.brand?.default,fontSize:"1.35rem"})),a8e=(0,k3.styled)("p")(({theme:e})=>({color:e.palette.text.inverse})),n8e=({type:e="note",title:t,content:r})=>(0,gp.jsxs)(r8e,{type:e,children:[(0,gp.jsx)(o8e,{type:e,children:t}),(0,gp.jsx)(a8e,{children:(0,gp.jsx)(Qd,{content:r})})]}),dy=n8e;var dz=require("re-resizable"),pz=G(require("react-draggable"));var Ss=require("react/jsx-runtime"),i8e=({height:e=24,width:t=24,fill:r="#E8EFF3",...o})=>(0,Ss.jsxs)("svg",{width:t,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:[(0,Ss.jsx)("g",{clipPath:"url(#clip0_34897_172744)",children:(0,Ss.jsx)("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})}),(0,Ss.jsx)("defs",{children:(0,Ss.jsx)("clipPath",{id:"clip0_34897_172744",children:(0,Ss.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]}),py=i8e;var fmt=(0,y.styled)(Pr)(({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}})),dmt=(0,y.styled)(Pr,{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}})),oz=(0,y.styled)("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})),az=(0,y.styled)(K)(({theme:e})=>({padding:e.spacing(2),backgroundColor:e.palette.background.surfaces,overflow:"auto",flex:1,minHeight:0})),nz=(0,y.styled)("div")({height:"100%",display:"flex",flexDirection:"column",minHeight:"3rem"}),iz=(0,y.styled)(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})),lz=(0,y.styled)(py)(({theme:e})=>({fill:e.palette.common.white,position:"absolute",top:"-0.3rem",left:"50%"})),sz=(0,y.styled)("div")({display:"flex",gap:"1rem",justifyContent:"flex-end",alignItems:"center"}),uz=(0,y.styled)("div")({display:"flex",justifyContent:"end",alignItems:"center",flex:"1"}),M3=(0,y.styled)(Xe)(({theme:e})=>({color:e.palette.common.white})),fz=(0,y.styled)("div")(()=>({position:"absolute",left:"0",right:"0",marginInline:"auto",width:"fit-content"}));var qt=require("react/jsx-runtime"),l8e=({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=(0,y.useTheme)();return e?(0,qt.jsx)(pz.default,{handle:".drag-handle",children:(0,qt.jsx)(iz,{intitialPosition:l,sx:s,children:(0,qt.jsx)(dz.Resizable,{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:(0,qt.jsx)(nz,{children:(0,qt.jsxs)(no,{children:[(0,qt.jsx)("div",{className:"drag-handle",children:(0,qt.jsxs)(oz,{children:[(0,qt.jsx)(K,{display:"flex",justifyContent:"flex-end",padding:"8px",children:a&&(0,qt.jsx)(Jt,{title:o?"Collapse All":"Expand All",children:(0,qt.jsx)(M3,{onClick:a,children:o?(0,qt.jsx)(H2,{}):(0,qt.jsx)(W2,{})})})}),(0,qt.jsx)(lz,{}),(0,qt.jsxs)(uz,{children:[(0,qt.jsx)(sz,{id:`${t}-panel-header-actions-container`}),(0,qt.jsx)(fz,{children:f}),u&&(0,qt.jsx)(M3,{onClick:u,children:(0,qt.jsx)(ld,{fill:d.palette.common.white})}),(0,qt.jsx)(M3,{onClick:n,children:(0,qt.jsx)(Bt,{fill:d.palette.common.white})})]})]})}),(0,qt.jsx)(az,{className:"panel-body",children:r})]})})})})}):null},my=({...e})=>(0,qt.jsx)(l8e,{...e});var ic=require("react");var Emt=(0,y.styled)(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"}})),Rmt=(0,y.styled)("div")(()=>({width:"100%",justifyContent:"center",display:"flex",alignItems:"center",marginTop:"20px"})),Omt=(0,y.styled)(K)(()=>({display:"flex",justifyContent:"space-evenly",gap:"2.5rem",width:"100%"})),Amt=(0,y.styled)(K)(()=>({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",gap:"2.5rem",width:"100%"})),Pmt=(0,y.styled)("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"})),cy=(0,y.styled)(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"})),mz=(0,y.styled)(K)(({theme:e})=>({paddingInline:e.spacing(2),display:"flex",alignItems:"center",placeSelf:"flex-start",justifyContent:"space-between",width:"100%"})),cz=(0,y.styled)(z)(({theme:e})=>({fontSize:"1.5rem",fontWeight:600,color:e.palette.text.default})),xz=(0,y.styled)(Ar)(({theme:e})=>({width:"200px",margin:"0.5rem",height:"100%",borderRadius:"1rem",position:"relative",overflow:"hidden",transition:"all 0.3s ease-in-out",background:n3(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"}})),hz=(0,y.styled)("div")(()=>({display:"flex",gap:"10px",flexWrap:"nowrap",justifyContent:"center",width:"100%"})),gz=(0,y.styled)(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"}})),Tz=(0,y.styled)(Ya)(()=>({height:"100%",display:"flex",flexDirection:"column",padding:"12px",paddingBottom:"0px !important"})),Sz=(0,y.styled)(K)({display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"0.5rem",gap:"0.6rem"}),Cz=(0,y.styled)(z)(({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"})),yz=(0,y.styled)(z)(({theme:e})=>({fontSize:"24px",fontWeight:700,color:e.palette.icon.secondary,marginBottom:"0.5rem",lineHeight:1.2})),_mt=(0,y.styled)(K)(({theme:e})=>({marginBottom:"1rem",padding:"8px",borderRadius:"8px",background:e.palette.mode==="light"?"#f8fafc":Pn,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)"}})),bz=(0,y.styled)(z)(({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"})),vz=(0,y.styled)(z)({fontSize:"0.75rem",marginBottom:"8px"}),wz=(0,y.styled)(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)})),Ez=(0,y.styled)(K)(({theme:e})=>({padding:"1rem",color:e.palette.text.error,fontSize:"1rem",fontWeight:500}));var pn=require("react/jsx-runtime"),xy=({open:e,handleClick:t})=>{let r=(0,y.useTheme)();return(0,pn.jsx)(ge,{title:e?"Hide Performers":"Show Performers",placement:"bottom",children:(0,pn.jsx)("span",{children:(0,pn.jsxs)(ke,{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:[(0,pn.jsx)($l,{style:{height:"2rem",width:"2rem",marginRight:"10px"}}),e?"Hide Performers":"Show Performers"]})})})},hy=({handleClick:e})=>(0,pn.jsx)(ge,{title:"Open Leaderboard",placement:"bottom",children:(0,pn.jsx)(ke,{variant:"contained",onClick:e,sx:{height:"3.7rem",padding:"0.3rem",display:{xs:"inline-flex",sm:"none"}},children:(0,pn.jsx)($l,{style:{height:"2rem",width:"2rem"}})})}),Rz=()=>(0,pn.jsx)(hz,{children:[...Array(5)].map((e,t)=>(0,pn.jsx)(T2,{variant:"rounded",height:"13.5rem",width:"inherit",sx:{minWidth:"150px"},style:{borderRadius:"1rem"}},t))});var bt=require("react/jsx-runtime"),s8e={pathType:"pattern",page:0,pagesize:1,metrics:!0,expandUser:!0,trim:!0},gy={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"}},nc=e=>({...s8e,order:`${gy[e].countKey} desc`}),u8e=({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=(0,y.useTheme)();return(0,bt.jsx)(xz,{elevation:0,status:i,onClick:f,children:(0,bt.jsxs)(Tz,{cardId:l,children:[(0,bt.jsxs)(Sz,{children:[(0,bt.jsx)(Cz,{children:e}),(0,bt.jsx)(gz,{onClick:m=>d(m,`${t}+desc`),children:(0,bt.jsx)(e5,{...Zo,fill:p.palette.common.black})})]}),(0,bt.jsx)(yz,{children:r}),(0,bt.jsxs)(K,{children:[(0,bt.jsx)(bz,{children:o}),(0,bt.jsxs)(vz,{children:["by ",n]})]})]})})},wr=(e={})=>({search:e.search??"",order:e.order??"",pagesize:e.pagesize??0,page:e.page??0,...e}),Oz=(0,ic.memo)(u8e);Oz.displayName="StatCard";var f8e=e=>{let t=e(wr(nc("view"))),r=e(wr(nc("clone"))),o=e(wr(nc("download"))),a=e(wr(nc("deployment"))),n=e(wr(nc("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)}},d8e=(e,t)=>{let r=e[t],o=gy[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},p8e=({useGetCatalogFilters:e,onCardClick:t,onIconClick:r,onOpenLeaderboard:o})=>{let a=(0,y.useTheme)(),{queries:n,isLoading:i,hasError:l}=f8e(e),s=(0,y.useMediaQuery)(a.breakpoints.down("sm")),u=(0,ic.useMemo)(()=>Object.keys(gy).map(d=>d8e(n,d)).filter(d=>!!d),[n]);if(l)return(0,bt.jsx)(cy,{children:(0,bt.jsx)(Ez,{children:"Error loading statistics. Please try again later."})});let f=u.map((d,p)=>(0,bt.jsx)(Oz,{...d,onCardClick:t,onIconClick:r},`${d.id}-${p}`));return(0,bt.jsx)(no,{children:(0,bt.jsxs)(cy,{children:[(0,bt.jsxs)(mz,{children:[(0,bt.jsxs)(K,{display:"flex",alignItems:"center",gap:1,children:[(0,bt.jsx)(cz,{children:"Top Performers"}),(0,bt.jsx)($l,{style:{height:"2rem",width:"2rem",color:a.palette.icon.secondary,display:s?"none":"inline-flex"}})]}),o&&(0,bt.jsx)("div",{children:(0,bt.jsxs)(ke,{variant:"contained",onClick:()=>o(),children:[(0,bt.jsx)($l,{style:{height:"2rem",width:"2rem",display:s?"inline-flex":"none"}}),(0,bt.jsx)("p",{style:{margin:0,display:s?"none":"inline-flex"},children:"Open Leaderboard"})]})})]}),(0,bt.jsxs)(wz,{children:[i&&(0,bt.jsx)(Rz,{}),(0,bt.jsx)(au,{items:f})]})]})})},Ty=(0,ic.memo)(p8e);var Qn=require("@mui/material"),Az=(0,Qn.styled)("div")({padding:"1rem 0","& h2":{margin:"1rem 0"},".get-started-desc":{margin:"1rem"}}),Pz=(0,Qn.styled)("div")(({theme:e})=>({display:"flex",cursor:"pointer",flexDirection:"row",flexWrap:"wrap","& a":{color:e.palette.text.primary,margin:"1rem"}})),_z=(0,Qn.styled)("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}}})),Iz=(0,Qn.styled)("div")({display:"flex",alignItems:"center",gap:"1rem"}),Zmt=(0,Qn.styled)("div")({flex:"0 0 25%",alignSelf:"center",margin:"0 0.5rem"}),Qmt=(0,Qn.styled)("img")({height:"3rem",width:"3rem",maxWidth:"3rem",margin:"auto"}),Xmt=(0,Qn.styled)("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)"})),Jmt=(0,Qn.styled)("h2")({fontSize:"1.75rem",margin:"1rem 0"}),ect=(0,Qn.styled)("p")(({theme:e})=>({color:e.palette.text.primary,transition:"0.8s cubic-bezier(0.2, 0.8, 0.2, 1)"}));var ka=require("react/jsx-runtime"),m8e=({Steps:e,PrerequisiteLine:t})=>(0,ka.jsxs)(Az,{children:[(0,ka.jsxs)("div",{className:"get-started-desc",id:"pre-requisites",children:[(0,ka.jsx)("h2",{children:"Prerequisites"}),(0,ka.jsx)("p",{children:t})]}),(0,ka.jsx)(Pz,{id:"Set up",children:e.map((r,o)=>(0,ka.jsxs)(_z,{href:r.url,target:"_blank",children:[(0,ka.jsxs)(Iz,{children:[(0,ka.jsx)("h2",{children:r.heading}),typeof r.Icon=="string"?(0,ka.jsx)("img",{src:r.Icon,alt:r.heading,width:"40px",height:"40px"}):r.Icon]}),(0,ka.jsx)("p",{children:r.description})]},o))})]}),Sy=m8e;var kz=require("@mui/material");var c8e=(0,kz.styled)("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"?R2:O2,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}}})),Cy=c8e;var yy=require("react");var Cs=require("@mui/material"),Mz=(0,Cs.styled)("div")({width:"52rem",maxWidth:"90%"}),Lz=(0,Cs.styled)("div")({display:"flex",alignItems:"center",background:"#323339",width:"100%",height:"2.875rem",borderRadius:"2px 2px 0 0"}),fct=(0,Cs.styled)("div")({color:"#76767d",fontFamily:"'Courier New', Courier, monospace",fontSize:"13.5px",margin:"0 auto"}),Dz=(0,Cs.styled)("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"}}),Fz=(0,Cs.styled)("div")({width:"100%",height:"100%",background:"#1d1e23",borderRadius:"0 0 2px 2px",padding:"24px 32px"}),Nz=(0,Cs.styled)("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%"}}}),Bz=(0,Cs.styled)("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"}}}));var yo=require("react/jsx-runtime"),x8e=({lines:e,title:t,noScroll:r})=>(0,yo.jsxs)(Mz,{children:[(0,yo.jsxs)(Lz,{children:[(0,yo.jsxs)(Dz,{children:[(0,yo.jsx)("li",{style:{backgroundColor:"red"}}),(0,yo.jsx)("li",{style:{backgroundColor:"yellow"}}),(0,yo.jsx)("li",{style:{backgroundColor:"green"}})]}),t&&(0,yo.jsx)("div",{className:"title",children:t})]}),(0,yo.jsx)(Fz,{children:(0,yo.jsx)(Nz,{className:r?"no-scroll-overflow-wrapper":"",children:(0,yo.jsx)(Bz,{children:e&&e.map((o,a)=>(0,yo.jsx)(yy.Fragment,{children:(0,yo.jsxs)("pre",{className:`${o.short?"short":""}`,style:{color:o.color?o.color:"blue"},children:[o.indent&&new Array(o.indent*2).fill({}).map((n,i)=>(0,yo.jsx)(yy.Fragment,{children:"\xA0"},i)),o.code]})},a))})})})]}),by=x8e;var Hz=require("@mui/material"),Vz=(0,Hz.styled)("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}}}}}));var Nu=require("react/jsx-runtime"),h8e=({availableChapters:e,currentChapter:t,onClick:r})=>{let o=a=>a.split("-").map(l=>l.charAt(0).toUpperCase()+l.slice(1)).join(" ");return(0,Nu.jsx)(Vz,{children:(0,Nu.jsx)("div",{className:"toc-list",children:(0,Nu.jsx)("ul",{className:"toc-ul toc-ul-open",children:e.map(a=>(0,Nu.jsx)("li",{className:a+".mdx"===t?"active-link":"",onClick:n=>{r(a,n)},children:(0,Nu.jsxs)("p",{className:"toc-item",children:[" ",o(a)]})},a))})})})},vy=h8e;var qz=require("react");var Uz=require("@mui/material"),Wz=(0,Uz.styled)("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"}}}));var sr=require("react/jsx-runtime"),g8e=[{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"}],T8e=({coursesData:e})=>{let[t,r]=(0,qz.useState)(!1);return(0,sr.jsxs)(Wz,{children:[(0,sr.jsxs)("div",{className:"go-back",children:[(0,sr.jsxs)("a",{href:"/learn/learning-paths",children:[(0,sr.jsx)(B2,{}),(0,sr.jsx)("h4",{children:"Learning Paths"})]}),(0,sr.jsx)("div",{className:"toc-toggle-btn",children:t?(0,sr.jsx)(Bt,{className:"toc-menu-icon",onClick:()=>{r(!t)}}):(0,sr.jsx)(id,{className:"toc-menu-icon",onClick:()=>{r(!t)}})})]}),(0,sr.jsx)("div",{className:"toc-list",children:(0,sr.jsxs)("ul",{className:`toc-ul ${t?"toc-ul-open":""}`,children:[(0,sr.jsx)("a",{href:"#pre-requisites",children:(0,sr.jsx)("h5",{className:"toc-sub-heading",children:"Pre-requisites"})}),g8e.map((o,a)=>(0,sr.jsx)("li",{children:(0,sr.jsx)("p",{className:"toc-item",children:(0,sr.jsx)("a",{href:`#${o.name}`,children:o.name})})},a)),(0,sr.jsx)("a",{href:"#courses-list",children:(0,sr.jsx)("h5",{className:"toc-sub-heading",children:"Courses"})}),e.map((o,a)=>(0,sr.jsx)("li",{children:(0,sr.jsx)("p",{className:"toc-item",children:(0,sr.jsx)("a",{href:`#${o.frontmatter.courseTitle}`,children:o.frontmatter.courseTitle})})},a))]})})]})},wy=T8e;var Gz=require("@mui/material"),zz=G(require("@mui/material/Autocomplete")),Ey=G(require("@mui/material/CircularProgress")),lc=require("react"),jz=require("use-debounce");var vt=require("react/jsx-runtime"),S8e=({usersData:e,disabled:t=!1,shareWithNewUsers:r,useGetAllUsersQuery:o})=>{let[a,n]=(0,lc.useState)(!1),[i,l]=(0,lc.useState)(""),[s,u]=(0,lc.useState)([]),[f,d]=(0,lc.useState)(!1),p=(0,y.useTheme)(),[m]=(0,jz.useDebounce)(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 v=await r(s);v.error?n(v.error):u([])}catch(v){console.log("error while sharing",v)}finally{d(!1)}},E=(v,P)=>{P&&(u(P),l(""))},R=(v,P,B)=>{B==="input"?l(P):B==="clear"&&l("")},k=g.filter(v=>!s.concat(e).find(P=>P.email===v.email)),D=t||f||s.length===0,C=({avatarObj:v,...P})=>(0,vt.jsx)(Nt,{avatar:(0,vt.jsx)(zt,{alt:v.first_name,src:v.avatar_url,children:v.avatar_url?"":v.first_name?.charAt(0)}),label:v.email,size:"small",...P},v.user_id);return(0,vt.jsx)(vt.Fragment,{children:(0,vt.jsxs)(K,{display:"flex",alignItems:"center",justifyContent:"space-between",gap:1,children:[(0,vt.jsx)(zz.default,{id:"user-search-field",sx:{width:"100%"},filterOptions:v=>v,options:k,renderTags:(v,P)=>v.map((B,_)=>(0,vt.jsx)(C,{avatarObj:B,...P({index:_})})),disableClearable:!0,includeInputInList:!0,filterSelectedOptions:!0,multiple:!0,disableListWrap:!0,disabled:f,inputValue:i,loading:h,value:s,getOptionLabel:v=>v.email,noOptionsText:h?"Loading...":i==""?"Search using name or email":"No users found",onChange:E,onInputChange:R,isOptionEqualToValue:(v,P)=>v.email===P.email,renderInput:v=>(0,vt.jsx)(Jr,{...v,placeholder:"Add Users",error:!!a,helperText:a,fullWidth:!0,label:"",disabled:D,sx:{"& .MuiOutlinedInput-root":{paddingInline:"0.5rem",paddingBlock:"0.1rem"}},InputProps:{...v.InputProps,endAdornment:(0,vt.jsx)(vt.Fragment,{children:h?(0,vt.jsx)(Ey.default,{color:"inherit",size:20}):null})}}),renderOption:(v,P)=>(0,vt.jsx)(K,{component:"li",sx:{"& > img":{mr:2,flexShrink:0}},...v,children:(0,vt.jsxs)(he,{container:!0,alignItems:"center",children:[(0,vt.jsx)(he,{children:(0,vt.jsx)(K,{sx:{color:"text.secondary",mr:2},children:(0,vt.jsx)(zt,{alt:P.first_name,src:P.avatar_url,children:P.avatar_url?"":(0,vt.jsx)(Mn,{})})})}),(0,vt.jsx)(he,{size:"grow",children:P.deleted_at?.Valid?(0,vt.jsxs)(z,{variant:"body2",color:"text.secondary",children:[P.email," (deleted)"]}):(0,vt.jsxs)(vt.Fragment,{children:[(0,vt.jsxs)(z,{variant:"body2",children:[P.first_name," ",P.last_name]}),(0,vt.jsx)(z,{variant:"body2",color:"text.secondary",children:P.email})]})})]})})}),(0,vt.jsx)(Gz.Button,{variant:"contained",sx:{"&.Mui-disabled":{color:`${p.palette.text.secondary} !important`,backgroundColor:`${p.palette.action.disabled} !important`}},onClick:T,disabled:D,children:f?(0,vt.jsx)(Ey.default,{size:24,sx:{color:"#fff"}}):"Share"})]})})},L3=S8e;var Kz=require("@mui/material"),Zr=G(require("react"));var Ge=require("react/jsx-runtime"),C8e=({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]=(0,Zr.useState)(""),[T,E]=(0,Zr.useState)(!1),[R,k]=(0,Zr.useState)(!1),[D,C]=(0,Zr.useState)(!0),[v,P]=(0,Zr.useState)(""),[B,_]=(0,Zr.useState)(e||[]);(0,Zr.useEffect)(()=>{_(e||[])},[e]);let J=(0,Zr.useMemo)(()=>{if(D&&!m&&u)return[u];let H=f.filter(M=>M.user_id!==u?.user_id);return!m&&u?[u,...H]:H},[f,u,m,D]),X=(0,Zr.useCallback)((H,M)=>{M.stopPropagation();let L=B.filter(F=>F.user_id!==H);_(L),t(L),o&&o(!1)},[B,t,o,p,v]),N=(0,Zr.useCallback)((H,M)=>{if(!M)return;let L=B.some(q=>q.user_id===M.user_id),F=M.deleted_at?.Valid===!0;if(L||F){g(L?"User already selected":"User does not exist");return}P(""),x(""),g(""),E(!1),_(q=>[...q,M]),t(q=>[...q,M]),o&&o(!1)},[B,t,o,x]),W=(0,Zr.useCallback)((H,M)=>{if(P(M),M==="")E(!0),x(""),C(!0);else{let L=encodeURIComponent(M);x(M),p(L),g(""),E(!0),C(!1)}},[p,x]);return(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsx)(Kz.Autocomplete,{id:"user-search-field",style:{width:"100%"},open:T,options:J,getOptionLabel:()=>"",isOptionEqualToValue:(H,M)=>H.user_id===M.user_id,onOpen:()=>E(!0),onClose:()=>E(!1),inputValue:v,onChange:N,onInputChange:W,filterOptions:H=>H,loading:d,disabled:s,disableClearable:!0,freeSolo:!1,value:void 0,selectOnFocus:!0,blurOnSelect:!0,clearOnBlur:!0,popupIcon:null,forcePopupIcon:!1,noOptionsText:d?"Loading...":"No users found",renderInput:H=>(0,Ge.jsx)(Jr,{...H,label:r,error:!!h,helperText:h,InputLabelProps:{style:{fontFamily:"inherit"}},InputProps:{...H.InputProps,endAdornment:(0,Ge.jsx)(Zr.default.Fragment,{children:d?(0,Ge.jsx)(jt,{color:"inherit",size:20}):null})}}),renderOption:(H,M)=>(0,Ge.jsx)("li",{...H,id:M.user_id,children:(0,Ge.jsxs)(K,{sx:{"& > img":{mr:2,flexShrink:0}},children:[" ",(0,Ge.jsxs)(he,{container:!0,alignItems:"center",children:[(0,Ge.jsx)(he,{children:(0,Ge.jsx)(K,{sx:{color:"text.secondary",mr:2},children:(0,Ge.jsx)(zt,{alt:M.first_name,src:M.avatar_url,children:M.avatar_url?"":(0,Ge.jsx)(Mn,{})})})}),(0,Ge.jsx)(he,{size:"grow",children:M.deleted?(0,Ge.jsxs)(z,{variant:"body2",color:"text.secondary",children:[M.email," (deleted)"]}):(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsxs)(z,{variant:"body2",children:[M.first_name," ",M.last_name]}),(0,Ge.jsx)(z,{variant:"body2",color:"text.secondary",children:M.email})]})})]})]})})}),!i&&(0,Ge.jsx)(h2,{row:!0,children:(0,Ge.jsx)("div",{style:{display:"flex",flexWrap:"nowrap"},children:(0,Ge.jsx)(Ll,{control:(0,Ge.jsx)(Qr,{checked:n,onChange:a,name:"notify",color:"primary"}),label:`Notify ${l} of membership change`})})}),(0,Ge.jsxs)(K,{sx:{display:"flex",flexWrap:"wrap",gap:.5,mt:e?.length>0?"0.5rem":""},children:[!R&&B?.[0]&&(0,Ge.jsx)(Nt,{avatar:(0,Ge.jsx)(zt,{alt:B[0].first_name,src:B[0].avatar_url,children:!B[0].avatar_url&&B[0].first_name?.[0]}),label:B[0].email,onDelete:H=>X(B[0].user_id,H),deleteIcon:(0,Ge.jsx)(Jt,{title:"Remove user",children:(0,Ge.jsx)(Bt,{style:To})}),size:"small"},B[0].user_id),R&&B?.map(H=>(0,Ge.jsx)(Nt,{avatar:(0,Ge.jsx)(zt,{alt:H.first_name,src:H.avatar_url,children:!H.avatar_url&&H.first_name?.[0]}),label:H.email,onDelete:M=>X(H.user_id,M),deleteIcon:(0,Ge.jsx)(Jt,{title:"Remove user",children:(0,Ge.jsx)(Bt,{style:To})}),size:"small"},H.user_id)),B?.length>1&&(0,Ge.jsx)(z,{onClick:()=>k(!R),sx:{cursor:"pointer"},children:R?"(hide)":`(+${B.length-1})`})]})]})},Ry=C8e;var qo=require("@mui/material"),Wu=require("@mui/material/StepConnector");function Tp(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.`}var oj=G(require("@emotion/styled"));function $z(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 Yz={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 Zz(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var y8e=!1,b8e=/[A-Z]|^ms/g,v8e=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ej=function(t){return t.charCodeAt(1)===45},Qz=function(t){return t!=null&&typeof t!="boolean"},Oy=Zz(function(e){return ej(e)?e:e.replace(b8e,"-$&").toLowerCase()}),Xz=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(v8e,function(o,a,n){return Xn={name:a,styles:n,next:Xn},a})}return Yz[t]!==1&&!ej(t)&&typeof r=="number"&&r!==0?r+"px":r},w8e="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function sc(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 Xn={name:a.name,styles:a.styles,next:Xn},a.name;var n=r;if(n.styles!==void 0){var i=n.next;if(i!==void 0)for(;i!==void 0;)Xn={name:i.name,styles:i.styles,next:Xn},i=i.next;var l=n.styles+";";return l}return E8e(e,t,r)}case"function":{if(e!==void 0){var s=Xn,u=r(e);return Xn=s,sc(e,t,u)}break}}var f=r;if(t==null)return f;var d=t[f];return d!==void 0?d:f}function E8e(e,t,r){var o="";if(Array.isArray(r))for(var a=0;a<r.length;a++)o+=sc(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]+"}":Qz(l)&&(o+=Oy(n)+":"+Xz(n,l)+";")}else{if(n==="NO_COMPONENT_SELECTOR"&&y8e)throw new Error(w8e);if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)Qz(i[s])&&(o+=Oy(n)+":"+Xz(n,i[s])+";");else{var u=sc(e,t,i);switch(n){case"animation":case"animationName":{o+=Oy(n)+":"+u+";";break}default:o+=n+"{"+u+"}"}}}}return o}var Jz=/label:\s*([^\s;{]+)\s*(;|$)/g,Xn;function tj(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="";Xn=void 0;var n=e[0];if(n==null||n.raw===void 0)o=!1,a+=sc(r,t,n);else{var i=n;a+=i[0]}for(var l=1;l<e.length;l++)if(a+=sc(r,t,e[l]),o){var s=n;a+=s[l]}Jz.lastIndex=0;for(var u="",f;(f=Jz.exec(a))!==null;)u+="-"+f[1];var d=$z(a)+u;return{name:d,styles:a,next:Xn}}var _y=require("@emotion/react");function Ay(e,t){let r=(0,oj.default)(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 aj(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var rj=[];function Py(e){return rj[0]=e,tj(rj)}var Dy=G(require("react")),Fy=G(Ly());function ys(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 lj(e){if(Dy.isValidElement(e)||(0,Fy.isValidElementType)(e)||!ys(e))return e;let t={};return Object.keys(e).forEach(r=>{t[r]=lj(e[r])}),t}function bs(e,t,r={clone:!0}){let o=r.clone?{...e}:e;return ys(e)&&ys(t)&&Object.keys(t).forEach(a=>{Dy.isValidElement(t[a])||(0,Fy.isValidElementType)(t[a])?o[a]=t[a]:ys(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&ys(e[a])?o[a]=bs(e[a],t[a],r):r.clone?o[a]=ys(t[a])?lj(t[a]):t[a]:o[a]=t[a]}),o}var A8e=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 Ny(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5,...a}=e,n=A8e(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 By(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 Hy(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function Vy(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\`.`:Tp(18,`(${t})`));return null}let[,o,a]=r,n=Number.isNaN(+o)?o||0:+o;return e.containerQueries(a).up(n)}function z3(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 P8e={borderRadius:4},sj=P8e;var Sp=G(J6()),_8e=process.env.NODE_ENV!=="production"?Sp.default.oneOfType([Sp.default.number,Sp.default.string,Sp.default.object,Sp.default.array]):{},na=_8e;function I8e(e,t){return t?bs(e,t,{clone:!1}):e}var Zi=I8e;var uc={xs:0,sm:600,md:900,lg:1200,xl:1536},uj={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${uc[e]}px)`},k8e={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:uc[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function bo(e,t,r){let o=e.theme||{};if(Array.isArray(t)){let n=o.breakpoints||uj;return t.reduce((i,l,s)=>(i[n.up(n.keys[s])]=r(t[s]),i),{})}if(typeof t=="object"){let n=o.breakpoints||uj;return Object.keys(t).reduce((i,l)=>{if(Hy(n.keys,l)){let s=Vy(o.containerQueries?o:k8e,l);s&&(i[s]=r(t[l],l))}else if(Object.keys(n.values||uc).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 fj(e={}){return e.keys?.reduce((r,o)=>{let a=e.up(o);return r[a]={},r},{})||{}}function dj(e,t){return e.reduce((r,o)=>{let a=r[o];return(!a||Object.keys(a).length===0)&&delete r[o],r},t)}function vs(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Tp(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Cp(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 fc(e,t,r,o=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||o:a=Cp(e,r)||o,t&&(a=t(a,o,e)),a}function M8e(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=Cp(s,o)||{};return bo(i,l,d=>{let p=fc(u,a,d);return d===p&&typeof d=="string"&&(p=fc(u,a,`${t}${d==="default"?"":vs(d)}`,d)),r===!1?p:{[r]:p}})};return n.propTypes=process.env.NODE_ENV!=="production"?{[t]:na}:{},n.filterProps=[t],n}var Lt=M8e;function j3(e){let t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}var L8e={m:"margin",p:"padding"},D8e={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},pj={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},F8e=j3(e=>{if(e.length>2)if(pj[e])e=pj[e];else return[e];let[t,r]=e.split(""),o=L8e[t],a=D8e[r]||"";return Array.isArray(a)?a.map(n=>o+n):[o+a]}),K3=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$3=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Uy=[...K3,...$3];function Bu(e,t,r,o){let a=Cp(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(`