2 lines
21 KiB
JavaScript
2 lines
21 KiB
JavaScript
(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[1955,7923],{92217:function(e,n,t){"use strict";var o=t(93433),i=t(29439),r=t(1413),a=t(72791),c=t(61889),s=(t(2574),t(69874)),l=t(9461),d=t(73975),u=t(80745),m=t(30829),h=t(20068),p=t(64554),f=t(11135),x=t(25787),Z=t(84570),v=t(23814),b=t(93656),j=t(40603),g=t(78029),C=t.n(g),P=t(64294),S=t(80184),y={json:d.AV,yaml:function(){return l.i.define(u.r)}},k=P.tk.theme({"&":{backgroundColor:"#FBFAFA"},".cm-content":{caretColor:"#05122B"},"&.cm-focused .cm-cursor":{borderLeftColor:"#05122B"},".cm-gutters":{backgroundColor:"#FBFAFA",color:"#000000",border:"none"},".cm-gutter.cm-foldGutter":{borderRight:"1px solid #eaeaea"},".cm-gutterElement":{fontSize:"13px"},".cm-line":{fontSize:"13px",color:"#2781B0","& .\u037cc":{color:"#C83B51"}},"& .\u037cb":{color:"#2781B0"},".cm-activeLine":{backgroundColor:"#dde1f1"},".cm-matchingBracket":{backgroundColor:"#05122B",color:"#ffffff"},".cm-selectionMatch":{backgroundColor:"#ebe7f1"},".cm-selectionLayer":{fontWeight:500}," .cm-selectionBackground":{backgroundColor:"#a180c7",color:"#ffffff"}},{dark:!1}),E=P.tk.theme({"&":{backgroundColor:"#282a36",color:"#ffb86c"},".cm-gutter.cm-foldGutter":{borderRight:"1px solid #eaeaea"},".cm-gutterElement":{fontSize:"13px"},".cm-line":{fontSize:"13px","& .\u037cd, & .\u037cc":{color:"#8e6cef"}},"& .\u037cb":{color:"#2781B0"},".cm-activeLine":{backgroundColor:"#44475a"},".cm-matchingBracket":{backgroundColor:"#842de5",color:"#ff79c6"},".cm-selectionLayer .cm-selectionBackground":{backgroundColor:"green"}},{dark:!0});n.Z=(0,x.Z)((function(e){return(0,f.Z)((0,r.Z)({},v.YI))}))((function(e){var n=e.value,t=e.label,r=void 0===t?"":t,l=e.tooltip,d=void 0===l?"":l,u=e.mode,f=void 0===u?"json":u,x=e.classes,v=e.onBeforeChange,g=e.readOnly,P=void 0!==g&&g,F=e.editorHeight,N=void 0===F?"250px":F,A=(0,a.useState)(!1),M=(0,i.Z)(A,2),T=M[0],R=M[1],I=[];return y[f]&&(I=[].concat((0,o.Z)(I),[y[f]()])),(0,S.jsxs)(a.Fragment,{children:[(0,S.jsxs)(m.Z,{className:x.inputLabel,children:[(0,S.jsx)("span",{children:r}),""!==d&&(0,S.jsx)("div",{className:x.tooltipContainer,children:(0,S.jsx)(h.Z,{title:d,placement:"top-start",children:(0,S.jsx)("div",{className:x.tooltip,children:(0,S.jsx)(Z.Z,{})})})})]}),(0,S.jsx)(c.ZP,{item:!0,xs:12,children:(0,S.jsx)("br",{})}),(0,S.jsxs)(c.ZP,{item:!0,xs:12,sx:{border:"1px solid #eaeaea"},children:[(0,S.jsx)(c.ZP,{item:!0,xs:12,children:(0,S.jsx)(s.ZP,{value:n,theme:T?E:k,extensions:I,editable:!P,basicSetup:!0,height:N,onChange:function(e,n){v(null,null,e)}})}),(0,S.jsx)(c.ZP,{item:!0,xs:12,sx:{borderTop:"1px solid #eaeaea",background:T?"#282c34":"#f7f7f7"},children:(0,S.jsxs)(p.Z,{className:T?"dark-theme":"",sx:{display:"flex",alignItems:"center",padding:"2px",paddingRight:"5px",justifyContent:"flex-end","& button":{height:"26px",width:"26px",padding:"2px"," .min-icon":{marginLeft:"0"}},"&.dark-theme button":{background:"#FFFFFF"}},children:[(0,S.jsx)(j.Z,{tooltip:"Change theme",onClick:function(){R(!T)},text:"",icon:(0,S.jsx)(b.EO,{}),color:"primary",variant:"outlined"}),(0,S.jsx)(C(),{text:n,children:(0,S.jsx)(j.Z,{tooltip:"Copy to Clipboard",onClick:function(){},text:"",icon:(0,S.jsx)(b.TI,{}),color:"primary",variant:"outlined"})})]})})]})]})}))},50276:function(e,n,t){"use strict";var o=t(1413),i=t(29439),r=t(72791),a=t(64554),c=t(43896),s=t(83449),l=t(47283),d=t(82851),u=t(25787),m=t(13967),h=t(11135),p=t(95193),f=t(80184),x={minHeight:60};n.Z=(0,u.Z)((function(e){return(0,h.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,h=void 0===u?"0":u,Z=e.routes,v=e.isRouteTabs,b=r.useState(h),j=(0,i.Z)(b,2),g=j[0],C=j[1],P=(0,m.Z)(),S=(0,p.Z)(P.breakpoints.down("md")),y=[],k=[];return n?(n.forEach((function(e){y.push(e.tabConfig),k.push(e.content)})),(0,f.jsx)(s.ZP,{value:"".concat(g),children:(0,f.jsxs)(a.Z,{className:t.tabsContainer,children:[(0,f.jsx)(a.Z,{className:t.tabsHeaderContainer,children:(0,f.jsx)(l.Z,{onChange:function(e,n){C(n)},orientation:S?"horizontal":"vertical",variant:S?"scrollable":"standard",scrollButtons:"auto",className:t.tabList,children:y.map((function(e,n){return e?(0,f.jsx)(c.Z,(0,o.Z)((0,o.Z)({className:t.tabHeader,value:"".concat(n),style:x},e),{},{disableRipple:!0,disableTouchRipple:!0,focusRipple:!0}),"v-tab-".concat(n)):null}))})}),(0,f.jsxs)(a.Z,{className:t.tabContentContainer,children:[v?null:k.map((function(e,n){return(0,f.jsx)(d.Z,{classes:(0,o.Z)({},t.tabPanel),value:"".concat(n),children:e||null},"v-tab-p-".concat(n))})),v?(0,f.jsx)("div",{className:t.tabPanel,children:Z}):null]})]})})):null}))},23533:function(e,n,t){"use strict";t.r(n);var o=t(29439),i=t(1413),r=t(72791),a=t(60364),c=t(11135),s=t(25787),l=t(23814),d=t(10703),u=t(61889),m=t(36151),h=t(40986),p=t(92983),f=t(81207),x=t(32291),Z=t(42649),v=t(92217),b=t(62666),j=t(63466),g=t(27391),C=t(14917),P=t(64244),S=t(28789),y=t(74900),k=t(54599),E=t(74794),F=t(50276),N=t(84669),A=t(56087),M=t(38442),T=t(75578),R=t(40603),I=t(80184),w=(0,T.Z)(r.lazy((function(){return t.e(312).then(t.bind(t,312))}))),B=(0,a.$j)((function(e){return{features:e.console.session.features}}),{setErrorSnackMessage:Z.Ih,setSnackBarMessage:Z.y1});n.default=(0,s.Z)((function(e){return(0,c.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({buttonContainer:{textAlign:"right"},pageContainer:{border:"1px solid #EAEAEA",height:"100%"},paperContainer:{padding:"15px 15px 15px 50px",minHeight:"450px"},breadcrumLink:{textDecoration:"none",color:"black"},statement:{border:"1px solid #DADADA",padding:8,marginBottom:8,borderRadius:4},labelCol:{fontWeight:"bold"}},l.OR),l.qg),l.oO),(0,l.Bz)(e.spacing(4))))}))(B((function(e){var n=e.classes,t=e.match,i=e.setErrorSnackMessage,a=e.setSnackBarMessage,c=e.features,s=(0,r.useState)(null),l=(0,o.Z)(s,2),Z=l[0],T=l[1],B=(0,r.useState)([]),z=(0,o.Z)(B,2),L=z[0],O=z[1],_=(0,r.useState)([]),D=(0,o.Z)(_,2),U=D[0],G=D[1],H=(0,r.useState)([]),V=(0,o.Z)(H,2),Y=V[0],J=V[1],Q=(0,r.useState)(!1),W=(0,o.Z)(Q,2),q=W[0],K=W[1],$=(0,r.useState)(t.params[0]),X=(0,o.Z)($,2),ee=X[0],ne=X[1],te=(0,r.useState)(""),oe=(0,o.Z)(te,2),ie=oe[0],re=oe[1],ae=(0,r.useState)(!0),ce=(0,o.Z)(ae,2),se=ce[0],le=ce[1],de=(0,r.useState)(""),ue=(0,o.Z)(de,2),me=ue[0],he=ue[1],pe=(0,r.useState)(!0),fe=(0,o.Z)(pe,2),xe=fe[0],Ze=fe[1],ve=(0,r.useState)(""),be=(0,o.Z)(ve,2),je=be[0],ge=be[1],Ce=(0,r.useState)(!0),Pe=(0,o.Z)(Ce,2),Se=Pe[0],ye=Pe[1],ke=(0,r.useState)(!1),Ee=(0,o.Z)(ke,2),Fe=Ee[0],Ne=Ee[1],Ae=c&&c.includes("ldap-idp")||!1,Me=(0,M.F)(A.C3,[A.Ft.ADMIN_LIST_GROUPS,A.Ft.ADMIN_GET_GROUP],!0),Te=(0,M.F)(A.C3,[A.Ft.ADMIN_GET_GROUP]),Re=(0,M.F)(A.C3,[A.Ft.ADMIN_LIST_GROUPS]),Ie=(0,M.F)(A.C3,[A.Ft.ADMIN_GET_USER]),we=(0,M.F)(A.C3,[A.Ft.ADMIN_GET_POLICY]),Be=(0,M.F)(A.C3,[A.Ft.ADMIN_CREATE_POLICY]),ze=function(e){e.preventDefault(),q||(K(!0),Be?f.Z.invoke("POST","/api/v1/policies",{name:ee,policy:ie}).then((function(e){K(!1),a("Policy successfully updated")})).catch((function(e){K(!1),i(e)})):K(!1))};(0,r.useEffect)((function(){se&&(se&&(we?f.Z.invoke("GET","/api/v1/policy?name=".concat(encodeURIComponent(ee))).then((function(e){if(e){T(e),re(e?JSON.stringify(JSON.parse(e.policy),null,4):"");var n=JSON.parse(e.policy);O(n.Statement)}le(!1)})).catch((function(e){i(e),le(!1)})):le(!1)),xe&&(Re&&!Ae?f.Z.invoke("GET","/api/v1/policies/".concat(encodeURIComponent(ee),"/users")).then((function(e){G(e),Ze(!1)})).catch((function(e){i(e),Ze(!1)})):Ze(!1)),Se&&(Me&&!Ae?f.Z.invoke("GET","/api/v1/policies/".concat(encodeURIComponent(ee),"/groups")).then((function(e){J(e),ye(!1)})).catch((function(e){i(e),ye(!1)})):ye(!1)))}),[ee,se,xe,Se,i,G,J,re,T,Ze,ye,Re,Me,we,Ae]);var Le=""!==ee.trim(),Oe=[{type:"view",onClick:function(e){b.Z.push("".concat(A.gA.USERS,"/").concat(e))},disableButtonFunction:function(){return!Ie}}],_e=U.filter((function(e){return e.includes(me)})),De=[{type:"view",onClick:function(e){b.Z.push("".concat(A.gA.GROUPS,"/").concat(e))},disableButtonFunction:function(){return!Te}}],Ue=Y.filter((function(e){return e.includes(je)}));return(0,I.jsxs)(r.Fragment,{children:[Fe&&(0,I.jsx)(w,{deleteOpen:Fe,selectedPolicy:ee,closeDeleteModalAndRefresh:function(e){Ne(!1),b.Z.push(A.gA.POLICIES)}}),(0,I.jsx)(x.Z,{label:(0,I.jsx)(r.Fragment,{children:(0,I.jsx)(N.Z,{to:A.gA.POLICIES,label:"Policy"})})}),(0,I.jsxs)(E.Z,{className:n.pageContainer,children:[(0,I.jsx)(u.ZP,{item:!0,xs:12,children:(0,I.jsx)(C.Z,{icon:(0,I.jsx)(r.Fragment,{children:(0,I.jsx)(P.Z,{width:40})}),title:ee,subTitle:(0,I.jsx)(r.Fragment,{children:"IAM Policy"}),actions:(0,I.jsxs)(r.Fragment,{children:[(0,I.jsx)(M.s,{scopes:[A.Ft.ADMIN_DELETE_POLICY],resource:A.C3,errorProps:{disabled:!0},children:(0,I.jsx)(R.Z,{tooltip:"Delete Policy",text:"Delete Policy",variant:"outlined",color:"secondary",icon:(0,I.jsx)(k.Z,{}),onClick:function(){Ne(!0)}})}),(0,I.jsx)(R.Z,{tooltip:"Refresh",text:"Refresh",variant:"outlined",color:"primary",icon:(0,I.jsx)(S.default,{}),onClick:function(){Ze(!0),ye(!0),le(!0)}})]})})}),(0,I.jsxs)(F.Z,{children:[{tabConfig:{label:"Summary",disabled:!we},content:(0,I.jsxs)(r.Fragment,{children:[(0,I.jsx)("div",{className:n.sectionTitle,children:"Policy Summary"}),(0,I.jsx)(d.Z,{className:n.paperContainer,children:(0,I.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){ze(e)},children:(0,I.jsxs)(u.ZP,{container:!0,children:[(0,I.jsx)(u.ZP,{item:!0,xs:8,children:(0,I.jsx)("h4",{children:"Statements"})}),(0,I.jsx)(u.ZP,{item:!0,xs:4}),(0,I.jsx)(r.Fragment,{children:L.map((function(e,t){return(0,I.jsx)(u.ZP,{item:!0,xs:12,className:n.statement,children:(0,I.jsxs)(u.ZP,{container:!0,children:[(0,I.jsx)(u.ZP,{item:!0,xs:2,className:n.labelCol,children:"Effect"}),(0,I.jsx)(u.ZP,{item:!0,xs:4,children:(0,I.jsx)(r.Fragment,{children:e.Effect})}),(0,I.jsx)(u.ZP,{item:!0,xs:2,className:n.labelCol}),(0,I.jsx)(u.ZP,{item:!0,xs:4}),(0,I.jsx)(u.ZP,{item:!0,xs:2,className:n.labelCol,children:"Actions"}),(0,I.jsx)(u.ZP,{item:!0,xs:4,children:(0,I.jsx)("ul",{children:e.Action&&e.Action.map((function(e,n){return(0,I.jsx)("li",{children:e},"".concat(t,"-r-").concat(n))}))})}),(0,I.jsx)(u.ZP,{item:!0,xs:2,className:n.labelCol,children:"Resources"}),(0,I.jsx)(u.ZP,{item:!0,xs:4,children:(0,I.jsx)("ul",{children:e.Resource&&e.Resource.map((function(e,n){return(0,I.jsx)("li",{children:e},"".concat(t,"-r-").concat(n))}))})})]})},"s-".concat(t))}))})]})})})]})},{tabConfig:{label:"Users",disabled:!Re||Ae},content:(0,I.jsxs)(r.Fragment,{children:[(0,I.jsx)("div",{className:n.sectionTitle,children:"Users"}),(0,I.jsxs)(u.ZP,{container:!0,children:[(0,I.jsx)(u.ZP,{item:!0,xs:12,className:n.actionsTray,children:(0,I.jsx)(g.Z,{placeholder:"Search Users",className:n.searchField,id:"search-resource",label:"",onChange:function(e){he(e.target.value)},InputProps:{disableUnderline:!0,startAdornment:(0,I.jsx)(j.Z,{position:"start",children:(0,I.jsx)(y.Z,{})})},variant:"standard"})}),(0,I.jsx)(p.Z,{itemActions:Oe,columns:[{label:"Name",elementKey:"name"}],isLoading:xe,records:_e,entityName:"Users",idField:"name"})]})]})},{tabConfig:{label:"Groups",disabled:!Me||Ae},content:(0,I.jsxs)(r.Fragment,{children:[(0,I.jsx)("div",{className:n.sectionTitle,children:"Groups"}),(0,I.jsxs)(u.ZP,{container:!0,children:[(0,I.jsx)(u.ZP,{item:!0,xs:12,className:n.actionsTray,children:(0,I.jsx)(g.Z,{placeholder:"Search Groups",className:n.searchField,id:"search-resource",label:"",onChange:function(e){ge(e.target.value)},InputProps:{disableUnderline:!0,startAdornment:(0,I.jsx)(j.Z,{position:"start",children:(0,I.jsx)(y.Z,{})})},variant:"standard"})}),(0,I.jsx)(p.Z,{itemActions:De,columns:[{label:"Name",elementKey:"name"}],isLoading:Se,records:Ue,entityName:"Groups",idField:"name"})]})]})},{tabConfig:{label:"Raw Policy",disabled:!we},content:(0,I.jsxs)(r.Fragment,{children:[(0,I.jsx)("div",{className:n.sectionTitle,children:"Raw Policy"}),(0,I.jsx)(d.Z,{className:n.paperContainer,children:(0,I.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){ze(e)},children:(0,I.jsxs)(u.ZP,{container:!0,children:[(0,I.jsx)(u.ZP,{item:!0,xs:12,className:n.formScrollable,children:(0,I.jsx)(v.Z,{readOnly:!Be,value:ie,onBeforeChange:function(e,n,t){re(t)},editorHeight:"350px"})}),(0,I.jsxs)(u.ZP,{item:!0,xs:12,className:n.buttonContainer,children:[!Z&&(0,I.jsx)("button",{type:"button",color:"primary",className:n.clearButton,onClick:function(){ne(""),re("")},children:"Clear"}),(0,I.jsx)(M.s,{scopes:[A.Ft.ADMIN_CREATE_POLICY],resource:A.C3,errorProps:{disabled:!0},children:(0,I.jsx)(m.Z,{type:"submit",variant:"contained",color:"primary",disabled:q||!Le,children:"Save"})})]}),q&&(0,I.jsx)(u.ZP,{item:!0,xs:12,children:(0,I.jsx)(h.Z,{})})]})})})]})}]})]})]})})))},26759:function(e,n,t){"use strict";var o=t(95318);n.Z=void 0;var i=o(t(45649)),r=t(80184),a=(0,i.default)((0,r.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");n.Z=a},70366:function(e,n,t){"use strict";var o=t(95318);n.Z=void 0;var i=o(t(45649)),r=t(80184),a=(0,i.default)((0,r.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");n.Z=a},97911:function(e,n,t){"use strict";var o=t(95318);n.Z=void 0;var i=o(t(45649)),r=t(80184),a=(0,i.default)((0,r.jsx)("path",{d:"M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z"}),"ViewColumn");n.Z=a},83449:function(e,n,t){"use strict";t.d(n,{ZP:function(){return c},_i:function(){return s},pQ:function(){return d},uU:function(){return l}});var o=t(29439),i=t(72791),r=t(80184),a=i.createContext(null);function c(e){var n=e.children,t=e.value,c=function(){var e=i.useState(null),n=(0,o.Z)(e,2),t=n[0],r=n[1];return i.useEffect((function(){r("mui-p-".concat(Math.round(1e5*Math.random())))}),[]),t}(),s=i.useMemo((function(){return{idPrefix:c,value:t}}),[c,t]);return(0,r.jsx)(a.Provider,{value:s,children:n})}function s(){return i.useContext(a)}function l(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 o=t(87462),i=t(63366),r=t(72791),a=t(18073),c=t(83449),s=t(80184),l=["children"],d=r.forwardRef((function(e,n){var t=e.children,d=(0,i.Z)(e,l),u=(0,c._i)();if(null===u)throw new TypeError("No TabContext provided");var m=r.Children.map(t,(function(e){return r.isValidElement(e)?r.cloneElement(e,{"aria-controls":(0,c.uU)(u,e.props.value),id:(0,c.pQ)(u,e.props.value)}):null}));return(0,s.jsx)(a.Z,(0,o.Z)({},d,{ref:n,value:u.value,children:m}))}));n.Z=d},82851:function(e,n,t){"use strict";t.d(n,{Z:function(){return x}});var o=t(87462),i=t(63366),r=t(72791),a=t(28182),c=t(47630),s=t(93736),l=t(90767),d=t(95159);function u(e){return(0,d.Z)("MuiTabPanel",e)}(0,t(30208).Z)("MuiTabPanel",["root"]);var m=t(83449),h=t(80184),p=["children","className","value"],f=(0,c.ZP)("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:function(e,n){return n.root}})((function(e){return{padding:e.theme.spacing(3)}})),x=r.forwardRef((function(e,n){var t=(0,s.Z)({props:e,name:"MuiTabPanel"}),r=t.children,c=t.className,d=t.value,x=(0,i.Z)(t,p),Z=(0,o.Z)({},t),v=function(e){var n=e.classes;return(0,l.Z)({root:["root"]},u,n)}(Z),b=(0,m._i)();if(null===b)throw new TypeError("No TabContext provided");var j=(0,m.uU)(b,d),g=(0,m.pQ)(b,d);return(0,h.jsx)(f,(0,o.Z)({"aria-labelledby":g,className:(0,a.Z)(v.root,c),hidden:d!==b.value,id:j,ref:n,role:"tabpanel",ownerState:Z},x,{children:d===b.value&&r}))}))},94454:function(e,n,t){"use strict";t.d(n,{Z:function(){return k}});var o=t(4942),i=t(63366),r=t(87462),a=t(72791),c=t(90767),s=t(12065),l=t(97278),d=t(76189),u=t(80184),m=(0,d.Z)((0,u.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),h=(0,d.Z)((0,u.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),p=(0,d.Z)((0,u.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),f=t(14036),x=t(93736),Z=t(47630),v=t(95159);function b(e){return(0,v.Z)("MuiCheckbox",e)}var j=(0,t(30208).Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),g=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size"],C=(0,Z.ZP)(l.Z,{shouldForwardProp:function(e){return(0,Z.FO)(e)||"classes"===e},name:"MuiCheckbox",slot:"Root",overridesResolver:function(e,n){var t=e.ownerState;return[n.root,t.indeterminate&&n.indeterminate,"default"!==t.color&&n["color".concat((0,f.Z)(t.color))]]}})((function(e){var n,t=e.theme,i=e.ownerState;return(0,r.Z)({color:t.palette.text.secondary},!i.disableRipple&&{"&:hover":{backgroundColor:(0,s.Fq)("default"===i.color?t.palette.action.active:t.palette[i.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==i.color&&(n={},(0,o.Z)(n,"&.".concat(j.checked,", &.").concat(j.indeterminate),{color:t.palette[i.color].main}),(0,o.Z)(n,"&.".concat(j.disabled),{color:t.palette.action.disabled}),n))})),P=(0,u.jsx)(h,{}),S=(0,u.jsx)(m,{}),y=(0,u.jsx)(p,{}),k=a.forwardRef((function(e,n){var t,o,s=(0,x.Z)({props:e,name:"MuiCheckbox"}),l=s.checkedIcon,d=void 0===l?P:l,m=s.color,h=void 0===m?"primary":m,p=s.icon,Z=void 0===p?S:p,v=s.indeterminate,j=void 0!==v&&v,k=s.indeterminateIcon,E=void 0===k?y:k,F=s.inputProps,N=s.size,A=void 0===N?"medium":N,M=(0,i.Z)(s,g),T=j?E:Z,R=j?E:d,I=(0,r.Z)({},s,{color:h,indeterminate:j,size:A}),w=function(e){var n=e.classes,t=e.indeterminate,o=e.color,i={root:["root",t&&"indeterminate","color".concat((0,f.Z)(o))]},a=(0,c.Z)(i,b,n);return(0,r.Z)({},n,a)}(I);return(0,u.jsx)(C,(0,r.Z)({type:"checkbox",inputProps:(0,r.Z)({"data-indeterminate":j},F),icon:a.cloneElement(T,{fontSize:null!=(t=T.props.fontSize)?t:A}),checkedIcon:a.cloneElement(R,{fontSize:null!=(o=R.props.fontSize)?o:A}),ownerState:I,ref:n},M,{classes:w}))}))},63466:function(e,n,t){"use strict";t.d(n,{Z:function(){return C}});var o=t(4942),i=t(63366),r=t(87462),a=t(72791),c=t(28182),s=t(90767),l=t(14036),d=t(20890),u=t(93840),m=t(52930),h=t(47630),p=t(95159);function f(e){return(0,p.Z)("MuiInputAdornment",e)}var x,Z=(0,t(30208).Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),v=t(93736),b=t(80184),j=["children","className","component","disablePointerEvents","disableTypography","position","variant"],g=(0,h.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:function(e,n){var t=e.ownerState;return[n.root,n["position".concat((0,l.Z)(t.position))],!0===t.disablePointerEvents&&n.disablePointerEvents,n[t.variant]]}})((function(e){var n=e.theme,t=e.ownerState;return(0,r.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:n.palette.action.active},"filled"===t.variant&&(0,o.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=a.forwardRef((function(e,n){var t=(0,v.Z)({props:e,name:"MuiInputAdornment"}),o=t.children,h=t.className,p=t.component,Z=void 0===p?"div":p,C=t.disablePointerEvents,P=void 0!==C&&C,S=t.disableTypography,y=void 0!==S&&S,k=t.position,E=t.variant,F=(0,i.Z)(t,j),N=(0,m.Z)()||{},A=E;E&&N.variant,N&&!A&&(A=N.variant);var M=(0,r.Z)({},t,{hiddenLabel:N.hiddenLabel,size:N.size,disablePointerEvents:P,position:k,variant:A}),T=function(e){var n=e.classes,t=e.disablePointerEvents,o=e.hiddenLabel,i=e.position,r=e.size,a=e.variant,c={root:["root",t&&"disablePointerEvents",i&&"position".concat((0,l.Z)(i)),a,o&&"hiddenLabel",r&&"size".concat((0,l.Z)(r))]};return(0,s.Z)(c,f,n)}(M);return(0,b.jsx)(u.Z.Provider,{value:null,children:(0,b.jsx)(g,(0,r.Z)({as:Z,ownerState:M,className:(0,c.Z)(T.root,h),ref:n},F,{children:"string"!==typeof o||y?(0,b.jsxs)(a.Fragment,{children:["start"===k?x||(x=(0,b.jsx)("span",{className:"notranslate",children:"\u200b"})):null,o]}):(0,b.jsx)(d.Z,{color:"text.secondary",children:o})}))})}))},26769:function(e,n,t){var o=t(39066),i=t(93629),r=t(43141);e.exports=function(e){return"string"==typeof e||!i(e)&&r(e)&&"[object String]"==o(e)}}}]);
|
|
//# sourceMappingURL=1955.27cc0d9b.chunk.js.map
|