Files
object-browser/portal-ui/build/static/js/1155.77ab901b.chunk.js
2023-05-26 13:42:42 -07:00

2 lines
22 KiB
JavaScript

(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[1155],{92217:function(e,n,t){"use strict";var i=t(1413),r=t(72791),a=t(61889),o=t(30829),s=t(20068),l=t(64554),c=t(11135),d=t(25787),u=t(29945),h=t(23814),f=t(78029),p=t.n(f),x=t(9534),m=t(27454),v=t(80184);n.Z=(0,d.Z)((function(e){return(0,c.Z)((0,i.Z)({},h.YI))}))((function(e){var n=e.value,t=e.label,i=void 0===t?"":t,c=e.tooltip,d=void 0===c?"":c,h=e.mode,f=void 0===h?"json":h,Z=e.classes,g=e.onBeforeChange,j=(e.readOnly,e.editorHeight),b=void 0===j?"250px":j;return(0,v.jsxs)(r.Fragment,{children:[(0,v.jsx)(a.ZP,{item:!0,xs:12,sx:{marginBottom:"10px"},children:(0,v.jsxs)(o.Z,{className:Z.inputLabel,children:[(0,v.jsx)("span",{children:i}),""!==d&&(0,v.jsx)("div",{className:Z.tooltipContainer,children:(0,v.jsx)(s.Z,{title:d,placement:"top-start",children:(0,v.jsx)("div",{className:Z.tooltip,children:(0,v.jsx)(u.byK,{})})})})]})}),(0,v.jsx)(a.ZP,{item:!0,xs:12,style:{maxHeight:b,overflow:"auto",border:"1px solid #eaeaea"},children:(0,v.jsx)(x.Z,{value:n,language:f,onChange:function(e){g(null,null,e.target.value)},id:"code_wrapper",padding:15,style:{fontSize:12,backgroundColor:"#fefefe",fontFamily:"ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace",minHeight:b||"initial",color:"#000000"}})}),(0,v.jsx)(a.ZP,{item:!0,xs:12,sx:{background:"#f7f7f7",border:"1px solid #eaeaea",borderTop:0},children:(0,v.jsx)(l.Z,{sx:{display:"flex",alignItems:"center",padding:"2px",paddingRight:"5px",justifyContent:"flex-end","& button":{height:"26px",width:"26px",padding:"2px"," .min-icon":{marginLeft:"0"}}},children:(0,v.jsx)(m.Z,{tooltip:"Copy to Clipboard",children:(0,v.jsx)(p(),{text:n,children:(0,v.jsx)(u.zxk,{type:"button",id:"copy-code-mirror",icon:(0,v.jsx)(u.TIy,{}),color:"primary",variant:"regular"})})})})})]})}))},14917:function(e,n,t){"use strict";t(72791);var i=t(61889),r=t(72455),a=t(80184),o=(0,r.Z)((function(e){return{headerBarIcon:{marginRight:".7rem",color:e.palette.primary.main,"& .min-icon":{width:44,height:44},"@media (max-width: 600px)":{display:"none"}},headerBarSubheader:{color:"grey","@media (max-width: 900px)":{maxWidth:200}},stContainer:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:8,borderBottom:"1px solid #EAEAEA","@media (max-width: 600px)":{flexFlow:"column"}},titleColumn:{height:"auto",justifyContent:"center",display:"flex",flexFlow:"column",alignItems:"flex-start","& h1":{fontSize:19}},leftItems:{display:"flex",alignItems:"center","@media (max-width: 600px)":{flexFlow:"column",width:"100%"}},rightItems:{display:"flex",alignItems:"center","& button":{marginLeft:8},"@media (max-width: 600px)":{width:"100%"}}}}));n.Z=function(e){var n=e.icon,t=e.title,r=e.subTitle,s=e.actions,l=e.className,c=o();return(0,a.jsx)(i.ZP,{container:!0,children:(0,a.jsxs)(i.ZP,{item:!0,xs:12,className:"".concat(c.stContainer," ").concat(l||""),children:[(0,a.jsxs)("div",{className:c.leftItems,children:[n?(0,a.jsx)("div",{className:c.headerBarIcon,children:n}):null,(0,a.jsxs)("div",{className:c.titleColumn,children:[(0,a.jsx)("h1",{style:{margin:0},children:t}),(0,a.jsx)("span",{className:c.headerBarSubheader,children:r})]})]}),(0,a.jsx)("div",{className:c.rightItems,children:s})]})})}},50276:function(e,n,t){"use strict";var i=t(1413),r=t(29439),a=t(72791),o=t(64554),s=t(43896),l=t(83449),c=t(47283),d=t(82851),u=t(25787),h=t(13967),f=t(11135),p=t(95193),x=t(57689),m=t(80184),v={minHeight:60};n.Z=(0,u.Z)((function(e){return(0,f.Z)({tabsContainer:{display:"flex",height:"100%",width:"100%"},tabsHeaderContainer:{width:"300px",background:"#F8F8F8",borderRight:"1px solid #EAEAEA","& .MuiTabs-root":{"& .MuiTabs-indicator":{display:"none"},"& .MuiTab-root":{display:"flex",flexFlow:"row",alignItems:"center",justifyContent:"flex-start",borderBottom:"1px solid #EAEAEA","& .MuiSvgIcon-root":{marginRight:8,marginBottom:0},"&.Mui-selected":{background:"#E5E5E5",fontWeight:600}},"&. MuiTabs-scroller":{display:"none"}}},tabContentContainer:{width:"100%","& .MuiTabPanel-root":{height:"100%"}},tabPanel:{height:"100%"},"@media (max-width: 900px)":{tabsContainer:{flexFlow:"column",flexDirection:"column"},tabsHeaderContainer:{width:"100%",borderBottom:" 1px solid #EAEAEA","& .MuiTabs-root .MuiTabs-scroller .MuiButtonBase-root":{borderBottom:" 0px"}}}})}))((function(e){var n=e.children,t=e.classes,u=e.selectedTab,f=void 0===u?"0":u,Z=e.routes,g=e.isRouteTabs,j=(0,h.Z)(),b=(0,x.TH)().pathname,y=void 0===b?"":b,C=(0,p.Z)(j.breakpoints.down("md")),E=(0,a.useState)(f),w=(0,r.Z)(E,2),P=w[0],N=w[1],S=[],M=[];if((0,a.useEffect)((function(){if(g){var e=n.find((function(e){return e.tabConfig.to===y}));e&&N(e.tabConfig.value)}}),[g,n,y]),!n)return null;n.forEach((function(e){S.push(e.tabConfig),M.push(e.content)}));return(0,m.jsx)(l.ZP,{value:"".concat(P),children:(0,m.jsxs)(o.Z,{className:t.tabsContainer,children:[(0,m.jsx)(o.Z,{className:t.tabsHeaderContainer,children:(0,m.jsx)(c.Z,{onChange:function(e,n){N(n)},orientation:C?"horizontal":"vertical",variant:C?"scrollable":"standard",scrollButtons:"auto",className:t.tabList,children:S.map((function(e,n){return e?(0,m.jsx)(s.Z,(0,i.Z)((0,i.Z)({className:t.tabHeader,value:"".concat(n),style:v},e),{},{disableRipple:!0,disableTouchRipple:!0,focusRipple:!0}),"v-tab-".concat(n)):null}))})}),(0,m.jsxs)(o.Z,{className:t.tabContentContainer,children:[g?null:M.map((function(e,n){return(0,m.jsx)(d.Z,{classes:(0,i.Z)({},t.tabPanel),value:"".concat(n),children:e||null},"v-tab-p-".concat(n))})),g?(0,m.jsx)("div",{className:t.tabPanel,children:Z}):null]})]})})}))},879:function(e,n,t){"use strict";t.d(n,{D_:function(){return o},Et:function(){return r},GJ:function(){return a},yh:function(){return i}});var i={RED:"#C83B51",GREEN:"#4CCB92",YELLOW:"#E7A219"},r=function(e,n){return e<=n/2?i.RED:2!==n&&e===n/2+1?i.YELLOW:e===n?i.GREEN:void 0},a=function(e){switch(e){case"offline":return i.RED;case"online":return i.GREEN;default:return i.YELLOW}},o=function(e,n){return e<=n/2?i.RED:e===n/2+1?i.YELLOW:e===n?i.GREEN:void 0}},1191:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return H}});var i=t(29439),r=t(1413),a=t(72791),o=t(78687),s=t(57689),l=t(29945),c=t(11135),d=t(25787),u=t(23814),h=t(35527),f=t(61889),p=t(40986),x=t(92983),m=t(92217),v=t(63466),Z=t(27391),g=t(14917),j=t(50276),b=t(56087),y=t(38442),C=t(75578),E=t(64554),w=t(59114),P=t(879),N=t(72455),S=t(80184),M=(0,N.Z)((function(e){return{searchField:(0,r.Z)((0,r.Z)({},u.qg.searchField),{},{maxWidth:380})}})),F={display:"grid",gridTemplateColumns:"60px 1fr",gap:"15px"},L=function(e){var n=e.search,t=void 0===n?"":n,i=e.children,r=void 0===i?"":i,a=new RegExp("(".concat(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}(t),")"),"i"),o=String(r).split(a);return t?o.map((function(e,n){return a.test(e)?(0,S.jsx)("mark",{children:e},n):e})):r},R=function(e){var n=e.policyStatements,t=M(),r=(0,a.useState)(""),o=(0,i.Z)(r,2),s=o[0],c=o[1];return(0,S.jsxs)(f.ZP,{container:!0,children:[(0,S.jsx)(f.ZP,{item:!0,xs:12,children:(0,S.jsxs)(E.Z,{sx:{display:"grid",gridTemplateColumns:{sm:"1fr 1fr",xs:"1fr"},alignItems:"center",justifyContent:"space-between",gap:"15px"},children:[(0,S.jsx)(E.Z,{children:"Statements"}),(0,S.jsx)(w.Z,{placeholder:"Search",onChange:c,overrideClass:t.searchField,value:s})]})}),!n&&(0,S.jsx)(a.Fragment,{children:"Policy has no statements"}),n&&(0,S.jsx)(f.ZP,{item:!0,xs:12,sx:{"& .policy-row":{borderBottom:"1px solid #eaeaea"},"& .policy-row:first-child":{borderTop:"1px solid #eaeaea"},"& .policy-row:last-child":{borderBottom:"0px"},paddingTop:"15px","& mark":{color:"#000000",fontWeight:500}},children:n.map((function(e,n){var t=e.Effect,i="Allow"===t;return(0,S.jsxs)(E.Z,{className:"policy-row",sx:{display:"grid",gridTemplateColumns:"1fr",gap:"15px",fontSize:"14px",padding:"10px 0 10px 0","& .label":{fontWeight:600}},children:[(0,S.jsxs)(E.Z,{sx:F,children:[(0,S.jsx)(E.Z,{className:"label",children:"Effect:"}),(0,S.jsxs)(E.Z,{sx:{display:"flex",alignItems:"center","& .min-icon":{marginRight:"5px",fill:i?P.yh.GREEN:P.yh.RED,height:"14px",width:"14px"}},children:[i?(0,S.jsx)(l.E31,{}):(0,S.jsx)(l.dRf,{}),t]})]}),(0,S.jsxs)(E.Z,{sx:{display:"grid",gridTemplateColumns:{sm:"1fr 1fr",xs:"1fr"},gap:"15px"},children:[(0,S.jsxs)(E.Z,{sx:F,children:[(0,S.jsx)(E.Z,{className:"label",children:"Actions:"}),(0,S.jsx)(E.Z,{children:e.Action&&e.Action.map((function(e,t){return(0,S.jsx)("div",{children:(0,S.jsx)(L,{search:s,children:e})},"".concat(n,"-r-").concat(t))}))})]}),(0,S.jsxs)(E.Z,{sx:F,children:[(0,S.jsx)(E.Z,{className:"label",children:"Resources:"}),(0,S.jsx)(E.Z,{children:e.Resource&&e.Resource.map((function(e,t){return(0,S.jsxs)("div",{children:[" ",(0,S.jsx)(L,{search:s,children:e})]},"".concat(n,"-r-").concat(t))}))})]})]})]},"".concat(n))}))})]})},A=t(45248),I=t(87995),T=t(46078),B=t(81551),k=t(27454),z=t(47974),O=t(25043),D=(0,C.Z)(a.lazy((function(){return t.e(312).then(t.bind(t,312))}))),H=(0,d.Z)((function(e){return(0,c.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({buttonContainer:{display:"flex",justifyContent:"flex-end",paddingTop:16,"& button":{marginLeft:8}},pageContainer:{border:"1px solid #EAEAEA",height:"100%"},paperContainer:{padding:"15px 15px 15px 50px",minHeight:"450px"}},u.OR),u.qg),u.oO),u.Bz))}))((function(e){var n=e.classes,t=(0,B.TL)(),r=(0,s.s0)(),c=(0,s.UO)(),d=(0,o.v9)(T.$4),u=(0,a.useState)(null),C=(0,i.Z)(u,2),E=C[0],w=C[1],P=(0,a.useState)([]),N=(0,i.Z)(P,2),M=N[0],F=N[1],L=(0,a.useState)([]),H=(0,i.Z)(L,2),U=H[0],G=H[1],_=(0,a.useState)([]),W=(0,i.Z)(_,2),K=W[0],Y=W[1],V=(0,a.useState)(!1),J=(0,i.Z)(V,2),Q=J[0],X=J[1],$=(0,A.IO)(c.policyName||""),q=(0,a.useState)(""),ee=(0,i.Z)(q,2),ne=ee[0],te=ee[1],ie=(0,a.useState)(!0),re=(0,i.Z)(ie,2),ae=re[0],oe=re[1],se=(0,a.useState)(""),le=(0,i.Z)(se,2),ce=le[0],de=le[1],ue=(0,a.useState)(!0),he=(0,i.Z)(ue,2),fe=he[0],pe=he[1],xe=(0,a.useState)(""),me=(0,i.Z)(xe,2),ve=me[0],Ze=me[1],ge=(0,a.useState)(!0),je=(0,i.Z)(ge,2),be=je[0],ye=je[1],Ce=(0,a.useState)(!1),Ee=(0,i.Z)(Ce,2),we=Ee[0],Pe=Ee[1],Ne=d&&d.includes("ldap-idp")||!1,Se=(0,y.F)(b.C3,b.K6,!0),Me=(0,y.F)(b.C3,b.k_,!0),Fe=(0,y.F)(b.C3,b.Rs,!0),Le=(0,y.F)(b.C3,b.iw,!0),Re=(0,y.F)(b.C3,b.GD,!0),Ae=(0,y.F)(b.C3,b.bE,!0),Ie=(0,y.F)(b.C3,b.XM,!0);(0,a.useEffect)((function(){ae&&(ae&&(Re?O.h.policy.policyInfo((0,A.LL)($)).then((function(e){if(e.data){var n,t;w(e.data),te(e?JSON.stringify(JSON.parse(null===(n=e.data)||void 0===n?void 0:n.policy),null,4):"");var i=JSON.parse(null===(t=e.data)||void 0===t?void 0:t.policy);F(i.Statement)}oe(!1)})).catch((function(e){t((0,I.Ih)(e)),oe(!1)})):oe(!1)),fe&&(Fe&&!Ne?O.h.policies.listUsersForPolicy((0,A.LL)($)).then((function(e){var n;G(null!==(n=e.data)&&void 0!==n?n:[]),pe(!1)})).catch((function(e){t((0,I.Ih)(e)),pe(!1)})):pe(!1)),be&&(Se&&!Ne?O.h.policies.listGroupsForPolicy((0,A.LL)($)).then((function(e){var n;Y(null!==(n=e.data)&&void 0!==n?n:[]),ye(!1)})).catch((function(e){t((0,I.Ih)(e)),ye(!1)})):ye(!1)))}),[$,ae,fe,be,G,Y,te,w,pe,ye,Fe,Se,Re,Ne,t]);var Te=""!==$.trim(),Be=[{type:"view",onClick:function(e){r("".concat(b.gA.USERS,"/").concat((0,A.LL)(e)))},disableButtonFunction:function(){return!Le}}],ke=U.filter((function(e){return e.includes(ce)})),ze=[{type:"view",onClick:function(e){r("".concat(b.gA.GROUPS,"/").concat((0,A.LL)(e)))},disableButtonFunction:function(){return!Me}}],Oe=K.filter((function(e){return e.includes(ve)})),De=function(){pe(!0),ye(!0),oe(!0)};return(0,S.jsxs)(a.Fragment,{children:[we&&(0,S.jsx)(D,{deleteOpen:we,selectedPolicy:$,closeDeleteModalAndRefresh:function(e){Pe(!1),r(b.gA.POLICIES)}}),(0,S.jsx)(z.Z,{label:(0,S.jsx)(a.Fragment,{children:(0,S.jsx)(l.hbI,{label:"Policy",onClick:function(){return r(b.gA.POLICIES)}})})}),(0,S.jsx)(l.Xgh,{className:n.pageContainer,children:(0,S.jsxs)(f.ZP,{container:!0,spacing:1,children:[(0,S.jsx)(l.rjZ,{item:!0,xs:12,children:(0,S.jsx)(g.Z,{icon:(0,S.jsx)(a.Fragment,{children:(0,S.jsx)(l.v42,{width:40})}),title:$,subTitle:(0,S.jsx)(a.Fragment,{children:"IAM Policy"}),actions:(0,S.jsxs)(a.Fragment,{children:[(0,S.jsx)(y.s,{scopes:[b.Ft.ADMIN_DELETE_POLICY],resource:b.C3,errorProps:{disabled:!0},children:(0,S.jsx)(k.Z,{tooltip:Ae?"":(0,b.MK)(b.bE,"delete Policies"),children:(0,S.jsx)(l.zxk,{id:"delete-policy",label:"Delete Policy",variant:"secondary",icon:(0,S.jsx)(l.XHJ,{}),onClick:function(){Pe(!0)},disabled:!Ae})})}),(0,S.jsx)(k.Z,{tooltip:"Refresh",children:(0,S.jsx)(l.zxk,{id:"refresh-policy",label:"Refresh",variant:"regular",icon:(0,S.jsx)(l.DuK,{}),onClick:function(){De()}})})]})})}),(0,S.jsxs)(j.Z,{children:[{tabConfig:{label:"Summary",disabled:!Re},content:(0,S.jsxs)(a.Fragment,{children:[(0,S.jsx)(l.NZf,{separator:!0,sx:{marginBottom:15},children:"Policy Summary"}),(0,S.jsx)(h.Z,{className:n.paperContainer,children:(0,S.jsx)(R,{policyStatements:M})})]})},{tabConfig:{label:"Users",disabled:!Fe||Ne},content:(0,S.jsxs)(a.Fragment,{children:[(0,S.jsx)(l.NZf,{separator:!0,sx:{marginBottom:15},children:"Users"}),(0,S.jsxs)(l.rjZ,{container:!0,children:[U.length>0&&(0,S.jsx)(l.rjZ,{item:!0,xs:12,className:n.actionsTray,children:(0,S.jsx)(Z.Z,{placeholder:"Search Users",className:n.searchField,id:"search-resource",label:"",onChange:function(e){de(e.target.value)},InputProps:{disableUnderline:!0,startAdornment:(0,S.jsx)(v.Z,{position:"start",children:(0,S.jsx)(l.W1M,{})})},variant:"standard"})}),(0,S.jsx)(x.Z,{itemActions:Be,columns:[{label:"Name",elementKey:"name"}],isLoading:fe,records:ke,entityName:"Users with this Policy associated",idField:"name"})]})]})},{tabConfig:{label:"Groups",disabled:!Se||Ne},content:(0,S.jsxs)(a.Fragment,{children:[(0,S.jsx)(l.NZf,{separator:!0,sx:{marginBottom:15},children:"Groups"}),(0,S.jsxs)(l.rjZ,{container:!0,children:[K.length>0&&(0,S.jsx)(l.rjZ,{item:!0,xs:12,className:n.actionsTray,children:(0,S.jsx)(Z.Z,{placeholder:"Search Groups",className:n.searchField,id:"search-resource",label:"",onChange:function(e){Ze(e.target.value)},InputProps:{disableUnderline:!0,startAdornment:(0,S.jsx)(v.Z,{position:"start",children:(0,S.jsx)(l.W1M,{})})},variant:"standard"})}),(0,S.jsx)(x.Z,{itemActions:ze,columns:[{label:"Name",elementKey:"name"}],isLoading:be,records:Oe,entityName:"Groups with this Policy associated",idField:"name"})]})]})},{tabConfig:{label:"Raw Policy",disabled:!Re},content:(0,S.jsxs)(a.Fragment,{children:[(0,S.jsx)(l.NZf,{separator:!0,sx:{marginBottom:15},children:"Raw Policy"}),(0,S.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){e.preventDefault(),Q||(X(!0),Ie?O.h.policies.addPolicy({name:$,policy:ne}).then((function(e){X(!1),t((0,I.y1)("Policy successfully updated")),De()})).catch((function(e){X(!1),t((0,I.Ih)(e))})):X(!1))},children:(0,S.jsxs)(l.rjZ,{container:!0,children:[(0,S.jsx)(l.rjZ,{item:!0,xs:12,children:(0,S.jsx)(m.Z,{readOnly:!Ie,value:ne,onBeforeChange:function(e,n,t){te(t)},editorHeight:"350px"})}),(0,S.jsxs)(l.rjZ,{item:!0,xs:12,className:n.buttonContainer,children:[!E&&(0,S.jsx)("button",{type:"button",color:"primary",className:n.clearButton,onClick:function(){te("{}")},children:"Clear"}),(0,S.jsx)(y.s,{scopes:[b.Ft.ADMIN_CREATE_POLICY],resource:b.C3,errorProps:{disabled:!0},children:(0,S.jsx)(k.Z,{tooltip:Ie?"":(0,b.MK)(b.XM,"edit a Policy"),children:(0,S.jsx)(l.zxk,{id:"save",type:"submit",variant:"callAction",color:"primary",disabled:Q||!Te||!Ie,label:"Save"})})})]}),Q&&(0,S.jsx)(l.rjZ,{item:!0,xs:12,children:(0,S.jsx)(p.Z,{})})]})})]})}]})]})})]})}))},26759:function(e,n,t){"use strict";var i=t(64836);n.Z=void 0;var r=i(t(45649)),a=t(80184),o=(0,r.default)((0,a.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");n.Z=o},70366:function(e,n,t){"use strict";var i=t(64836);n.Z=void 0;var r=i(t(45649)),a=t(80184),o=(0,r.default)((0,a.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");n.Z=o},97911:function(e,n,t){"use strict";var i=t(64836);n.Z=void 0;var r=i(t(45649)),a=t(80184),o=(0,r.default)((0,a.jsx)("path",{d:"M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z"}),"ViewColumn");n.Z=o},83449:function(e,n,t){"use strict";t.d(n,{ZP:function(){return s},_i:function(){return l},pQ:function(){return d},uU:function(){return c}});var i=t(29439),r=t(72791),a=t(80184),o=r.createContext(null);function s(e){var n=e.children,t=e.value,s=function(){var e=r.useState(null),n=(0,i.Z)(e,2),t=n[0],a=n[1];return r.useEffect((function(){a("mui-p-".concat(Math.round(1e5*Math.random())))}),[]),t}(),l=r.useMemo((function(){return{idPrefix:s,value:t}}),[s,t]);return(0,a.jsx)(o.Provider,{value:l,children:n})}function l(){return r.useContext(o)}function c(e,n){return null===e.idPrefix?null:"".concat(e.idPrefix,"-P-").concat(n)}function d(e,n){return null===e.idPrefix?null:"".concat(e.idPrefix,"-T-").concat(n)}},47283:function(e,n,t){"use strict";var i=t(87462),r=t(63366),a=t(72791),o=t(18073),s=t(83449),l=t(80184),c=["children"],d=a.forwardRef((function(e,n){var t=e.children,d=(0,r.Z)(e,c),u=(0,s._i)();if(null===u)throw new TypeError("No TabContext provided");var h=a.Children.map(t,(function(e){return a.isValidElement(e)?a.cloneElement(e,{"aria-controls":(0,s.uU)(u,e.props.value),id:(0,s.pQ)(u,e.props.value)}):null}));return(0,l.jsx)(o.Z,(0,i.Z)({},d,{ref:n,value:u.value,children:h}))}));n.Z=d},82851:function(e,n,t){"use strict";t.d(n,{Z:function(){return m}});var i=t(87462),r=t(63366),a=t(72791),o=t(28182),s=t(66934),l=t(31402),c=t(94419),d=t(21217);function u(e){return(0,d.Z)("MuiTabPanel",e)}(0,t(75878).Z)("MuiTabPanel",["root"]);var h=t(83449),f=t(80184),p=["children","className","value"],x=(0,s.ZP)("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:function(e,n){return n.root}})((function(e){return{padding:e.theme.spacing(3)}})),m=a.forwardRef((function(e,n){var t=(0,l.Z)({props:e,name:"MuiTabPanel"}),a=t.children,s=t.className,d=t.value,m=(0,r.Z)(t,p),v=(0,i.Z)({},t),Z=function(e){var n=e.classes;return(0,c.Z)({root:["root"]},u,n)}(v),g=(0,h._i)();if(null===g)throw new TypeError("No TabContext provided");var j=(0,h.uU)(g,d),b=(0,h.pQ)(g,d);return(0,f.jsx)(x,(0,i.Z)({"aria-labelledby":b,className:(0,o.Z)(Z.root,s),hidden:d!==g.value,id:j,ref:n,role:"tabpanel",ownerState:v},m,{children:d===g.value&&a}))}))},63466:function(e,n,t){"use strict";t.d(n,{Z:function(){return C}});var i=t(4942),r=t(63366),a=t(87462),o=t(72791),s=t(28182),l=t(94419),c=t(14036),d=t(20890),u=t(93840),h=t(52930),f=t(66934),p=t(75878),x=t(21217);function m(e){return(0,x.Z)("MuiInputAdornment",e)}var v,Z=(0,p.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),g=t(31402),j=t(80184),b=["children","className","component","disablePointerEvents","disableTypography","position","variant"],y=(0,f.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:function(e,n){var t=e.ownerState;return[n.root,n["position".concat((0,c.Z)(t.position))],!0===t.disablePointerEvents&&n.disablePointerEvents,n[t.variant]]}})((function(e){var n=e.theme,t=e.ownerState;return(0,a.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(n.vars||n).palette.action.active},"filled"===t.variant&&(0,i.Z)({},"&.".concat(Z.positionStart,"&:not(.").concat(Z.hiddenLabel,")"),{marginTop:16}),"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})})),C=o.forwardRef((function(e,n){var t=(0,g.Z)({props:e,name:"MuiInputAdornment"}),i=t.children,f=t.className,p=t.component,x=void 0===p?"div":p,Z=t.disablePointerEvents,C=void 0!==Z&&Z,E=t.disableTypography,w=void 0!==E&&E,P=t.position,N=t.variant,S=(0,r.Z)(t,b),M=(0,h.Z)()||{},F=N;N&&M.variant,M&&!F&&(F=M.variant);var L=(0,a.Z)({},t,{hiddenLabel:M.hiddenLabel,size:M.size,disablePointerEvents:C,position:P,variant:F}),R=function(e){var n=e.classes,t=e.disablePointerEvents,i=e.hiddenLabel,r=e.position,a=e.size,o=e.variant,s={root:["root",t&&"disablePointerEvents",r&&"position".concat((0,c.Z)(r)),o,i&&"hiddenLabel",a&&"size".concat((0,c.Z)(a))]};return(0,l.Z)(s,m,n)}(L);return(0,j.jsx)(u.Z.Provider,{value:null,children:(0,j.jsx)(y,(0,a.Z)({as:x,ownerState:L,className:(0,s.Z)(R.root,f),ref:n},S,{children:"string"!==typeof i||w?(0,j.jsxs)(o.Fragment,{children:["start"===P?v||(v=(0,j.jsx)("span",{className:"notranslate",children:"\u200b"})):null,i]}):(0,j.jsx)(d.Z,{color:"text.secondary",children:i})}))})}))},95193:function(e,n,t){"use strict";var i;t.d(n,{Z:function(){return h}});var r=t(29439),a=t(72791),o=t(69120),s=t(33073),l=t(40162);function c(e,n,t,i,o){var s=a.useState((function(){return o&&t?t(e).matches:i?i(e).matches:n})),c=(0,r.Z)(s,2),d=c[0],u=c[1];return(0,l.Z)((function(){var n=!0;if(t){var i=t(e),r=function(){n&&u(i.matches)};return r(),i.addListener(r),function(){n=!1,i.removeListener(r)}}}),[e,t]),d}var d=(i||(i=t.t(a,2))).useSyncExternalStore;function u(e,n,t,i,o){var s=a.useCallback((function(){return n}),[n]),l=a.useMemo((function(){if(o&&t)return function(){return t(e).matches};if(null!==i){var n=i(e).matches;return function(){return n}}return s}),[s,e,i,o,t]),c=a.useMemo((function(){if(null===t)return[s,function(){return function(){}}];var n=t(e);return[function(){return n.matches},function(e){return n.addListener(e),function(){n.removeListener(e)}}]}),[s,t,e]),u=(0,r.Z)(c,2),h=u[0],f=u[1];return d(f,h,l)}function h(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=(0,o.Z)(),i="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,r=(0,s.Z)({name:"MuiUseMediaQuery",props:n,theme:t}),a=r.defaultMatches,l=void 0!==a&&a,h=r.matchMedia,f=void 0===h?i?window.matchMedia:null:h,p=r.ssrMatchMedia,x=void 0===p?null:p,m=r.noSsr,v=void 0!==m&&m;var Z="function"===typeof e?e(t):e;return Z=Z.replace(/^@media( ?)/m,""),(void 0!==d?u:c)(Z,l,f,x,v)}},26769:function(e,n,t){var i=t(39066),r=t(93629),a=t(43141);e.exports=function(e){return"string"==typeof e||!r(e)&&a(e)&&"[object String]"==i(e)}}}]);
//# sourceMappingURL=1155.77ab901b.chunk.js.map