2 lines
20 KiB
JavaScript
2 lines
20 KiB
JavaScript
(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[5643],{23804:function(e,t,n){"use strict";n(72791);var o=n(11135),r=n(25787),i=n(61889),a=n(80184);t.Z=(0,r.Z)((function(e){return(0,o.Z)({root:{border:"1px solid #E2E2E2",borderRadius:2,backgroundColor:"#FBFAFA",paddingLeft:25,paddingTop:31,paddingBottom:21,paddingRight:30},leftItems:{fontSize:16,fontWeight:"bold",marginBottom:15,display:"flex",alignItems:"center","& .min-icon":{marginRight:15,height:28,width:38}},helpText:{fontSize:16,paddingLeft:5}})}))((function(e){var t=e.classes,n=e.iconComponent,o=e.title,r=e.help;return(0,a.jsx)("div",{className:t.root,children:(0,a.jsxs)(i.ZP,{container:!0,children:[(0,a.jsxs)(i.ZP,{item:!0,xs:12,className:t.leftItems,children:[n,o]}),(0,a.jsx)(i.ZP,{item:!0,xs:12,className:t.helpText,children:r})]})})}))},81806:function(e,t,n){"use strict";var o=n(1413),r=n(45987),i=(n(72791),n(11135)),a=n(25787),l=n(80184),s=["classes","children"];t.Z=(0,a.Z)((function(e){return(0,i.Z)({root:{padding:0,margin:0,border:0,backgroundColor:"transparent",textDecoration:"underline",cursor:"pointer",fontSize:"inherit",color:e.palette.info.main,fontFamily:"Lato, sans-serif"}})}))((function(e){var t=e.classes,n=e.children,i=(0,r.Z)(e,s);return(0,l.jsx)("button",(0,o.Z)((0,o.Z)({},i),{},{className:t.root,children:n}))}))},59114:function(e,t,n){"use strict";var o=n(4942),r=n(1413),i=(n(72791),n(63466)),a=n(74900),l=n(27391),s=n(25787),c=n(11135),d=n(23814),p=n(80184);t.Z=(0,s.Z)((function(e){return(0,c.Z)({searchField:(0,r.Z)({},d.qg.searchField),adornment:{}})}))((function(e){var t=e.placeholder,n=void 0===t?"":t,r=e.classes,s=e.onChange,c=e.adornmentPosition,d=void 0===c?"end":c,u=e.overrideClass,m=e.value,f=(0,o.Z)({disableUnderline:!0},"".concat(d,"Adornment"),(0,p.jsx)(i.Z,{position:d,className:r.adornment,children:(0,p.jsx)(a.Z,{})}));return(0,p.jsx)(l.Z,{placeholder:n,className:u||r.searchField,id:"search-resource",label:"",InputProps:f,onChange:function(e){s(e.target.value)},variant:"standard",value:m})}))},27454:function(e,t,n){"use strict";var o=n(1413),r=n(72791),i=n(20068),a=n(80184);t.Z=function(e){var t=e.tooltip,n=e.children,l=e.errorProps,s=void 0===l?null:l;return(0,a.jsx)(i.Z,{title:t,children:(0,a.jsx)("span",{children:s?(0,r.cloneElement)(n,(0,o.Z)({},s)):n})})}},11111:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return N}});var o=n(29439),r=n(1413),i=n(72791),a=n(75952),l=n(16871),s=n(11135),c=n(25787),d=n(40986),p=n(82460),u=n(61889),m=n(37267),f=n(15514),h=n(38734),g=n(92983),v=n(23814),y=n(81207),b=n(28789),S=n(23804),x=n(81806),T=n(74794),k=n(59114),Z=n(56087),_=n(87995),j=n(25469),A=n(23508),E=n(51691),C=n(80184),w=function(e){var t=e.onConfirm,n=e.onClose,o=e.serviceName,r=e.status;return(0,C.jsx)(A.Z,{title:"Delete Endpoint",confirmText:"Delete",isOpen:!0,titleIcon:(0,C.jsx)(h.EjK,{}),isLoading:!1,onConfirm:t,onClose:n,confirmationContent:(0,C.jsx)(i.Fragment,{children:(0,C.jsxs)(E.Z,{children:["Are you sure you want to delete the notification endpoint ?",(0,C.jsx)("br",{}),(0,C.jsx)("b",{children:o})," which is ",(0,C.jsx)("b",{children:r})]})})})},L=n(27454),N=(0,c.Z)((function(e){return(0,s.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},v.OR),v.Je),(0,v.Bz)(e.spacing(4))),{},{twHeight:{minHeight:400},tableBlock:(0,r.Z)({},v.VX.tableBlock),rightActionItems:{display:"flex",alignItems:"center","& button":{whiteSpace:"nowrap"}},searchField:(0,r.Z)((0,r.Z)({},v.qg.searchField),{},{maxWidth:380})}))}))((function(e){var t=e.classes,n=(0,j.TL)(),r=(0,l.s0)(),s=(0,i.useState)([]),c=(0,o.Z)(s,2),v=c[0],A=c[1],E=(0,i.useState)(""),N=(0,o.Z)(E,2),q=N[0],I=N[1],P=(0,i.useState)(!1),M=(0,o.Z)(P,2),F=M[0],R=M[1],z=(0,i.useState)(!1),D=(0,o.Z)(z,2),Q=D[0],K=D[1],O=(0,i.useState)(),B=(0,o.Z)(O,2),U=B[0],V=B[1];(0,i.useEffect)((function(){if(F){y.Z.invoke("GET","/api/v1/admin/notification_endpoints").then((function(e){var t=[];null!==e.notification_endpoints&&(t=e.notification_endpoints),A((0,f.fk)(t)),R(!1)})).catch((function(e){n((0,_.Ih)(e)),R(!1)}))}}),[F,n]),(0,i.useEffect)((function(){R(!0)}),[]);var H=[{type:"delete",onClick:function(e){V(e),K(!0)}}],W=v.filter((function(e){return""===q||e.service_name.indexOf(q)>=0}));return(0,C.jsx)(i.Fragment,{children:(0,C.jsxs)(T.Z,{children:[(0,C.jsxs)(u.ZP,{item:!0,xs:12,className:t.actionsTray,children:[(0,C.jsx)(k.Z,{placeholder:"Search target",onChange:I,overrideClass:t.searchField,value:q}),(0,C.jsxs)("div",{className:t.rightActionItems,children:[(0,C.jsx)(L.Z,{tooltip:"Refresh List",children:(0,C.jsx)(a.z,{id:"reload-notification-endpoints",label:"Refresh",variant:"regular",icon:(0,C.jsx)(b.default,{}),onClick:function(){R(!0)}})}),(0,C.jsx)(L.Z,{tooltip:"Add Notification Target",children:(0,C.jsx)(a.z,{id:"add-notification-target",label:" Add Notification Target",variant:"callAction",icon:(0,C.jsx)(h.dtP,{}),onClick:function(){r(Z.gA.NOTIFICATIONS_ENDPOINTS_ADD)}})})]})]}),F&&(0,C.jsx)(d.Z,{}),!F&&(0,C.jsxs)(i.Fragment,{children:[v.length>0&&(0,C.jsxs)(i.Fragment,{children:[(0,C.jsx)(u.ZP,{item:!0,xs:12,className:t.tableBlock,children:(0,C.jsx)(g.Z,{itemActions:H,columns:[{label:"Status",elementKey:"status",renderFunction:function(e){return(0,C.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,C.jsx)(m.Z,{style:"Offline"===e?{color:p.Z[500]}:{}}),e]})},width:150},{label:"Service",elementKey:"service_name"}],isLoading:F,records:W,entityName:"Notification Endpoints",idField:"service_name",customPaperHeight:t.twHeight})}),(0,C.jsx)(u.ZP,{item:!0,xs:12,children:(0,C.jsx)(S.Z,{title:"Notification Endpoints",iconComponent:(0,C.jsx)(h.cCG,{}),help:(0,C.jsxs)(i.Fragment,{children:["MinIO bucket notifications allow administrators to send notifications to supported external services on certain object or bucket events. MinIO supports bucket and object-level S3 events similar to the Amazon S3 Event Notifications.",(0,C.jsx)("br",{}),(0,C.jsx)("br",{}),"You can learn more at our"," ",(0,C.jsx)("a",{href:"https://min.io/docs/minio/linux/administration/monitoring/bucket-notifications.html?ref=con",target:"_blank",rel:"noreferrer",children:"documentation"}),"."]})})})]}),0===v.length&&(0,C.jsx)(u.ZP,{container:!0,justifyContent:"center",alignContent:"center",alignItems:"center",children:(0,C.jsx)(u.ZP,{item:!0,xs:8,children:(0,C.jsx)(S.Z,{title:"Notification Targets",iconComponent:(0,C.jsx)(h.cCG,{}),help:(0,C.jsxs)(i.Fragment,{children:["MinIO bucket notifications allow administrators to send notifications to supported external services on certain object or bucket events. MinIO supports bucket and object-level S3 events similar to the Amazon S3 Event Notifications.",(0,C.jsx)("br",{}),(0,C.jsx)("br",{}),"To get started,"," ",(0,C.jsx)(x.Z,{onClick:function(){r(Z.gA.NOTIFICATIONS_ENDPOINTS_ADD)},children:"Add a Notification Target"}),"."]})})})})]}),Q?(0,C.jsx)(w,{onConfirm:function(){!function(e){if(null!==e&&void 0!==e&&e.name){var t=(0,f.L)(e.name),o=":".concat(e.account_id);t?y.Z.invoke("POST","/api/v1/configs/".concat(t).concat(o,"/reset")).then((function(e){n((0,_.cN)(!0)),V(null),K(!1)})).catch((function(e){K(!1),n((0,_.Ih)(e))})):(V(null),K(!1),console.log("Unable to find Config key for ".concat(e.name)))}}(U)},status:"".concat(null===U||void 0===U?void 0:U.status),serviceName:"".concat(null===U||void 0===U?void 0:U.service_name),onClose:function(){K(!1)}}):null]})})}))},15514:function(e,t,n){"use strict";n.d(t,{BR:function(){return g},DD:function(){return y},L:function(){return x},dM:function(){return a},ee:function(){return i},fk:function(){return h},oj:function(){return b}});var o,r=n(4942),i="notify_postgres",a="notify_mysql",l="notify_kafka",s="notify_amqp",c="notify_mqtt",d="notify_redis",p="notify_nats",u="notify_elasticsearch",m="notify_webhook",f="notify_nsq",h=function(e){return e.map((function(e){return{service_name:"".concat(e.service,":").concat(e.account_id),name:e.service,account_id:e.account_id,status:e.status}}))},g=[{actionTrigger:i,targetTitle:"PostgreSQL",logo:"/postgres-logo.svg"},{actionTrigger:l,targetTitle:"Kafka",logo:"/kafka-logo.svg"},{actionTrigger:s,targetTitle:"AMQP",logo:"/amqp-logo.svg"},{actionTrigger:c,targetTitle:"MQTT",logo:"/mqtt-logo.svg"},{actionTrigger:d,targetTitle:"Redis",logo:"/redis-logo.svg"},{actionTrigger:p,targetTitle:"NATS",logo:"/nats-logo.svg"},{actionTrigger:a,targetTitle:"Mysql",logo:"/mysql-logo.svg"},{actionTrigger:u,targetTitle:"Elastic Search",logo:"/elasticsearch-logo.svg"},{actionTrigger:m,targetTitle:"Webhook",logo:"/webhooks-logo.svg"},{actionTrigger:f,targetTitle:"NSQ",logo:"/nsq-logo.svg"}],v=[{name:"queue_dir",label:"Queue Directory",required:!1,tooltip:"staging dir for undelivered messages e.g. '/home/events'",type:"string",placeholder:"Enter Queue Directory"},{name:"queue_limit",label:"Queue Limit",required:!1,tooltip:"maximum limit for undelivered messages, defaults to '10000'",type:"number",placeholder:"Enter Queue Limit"},{name:"comment",label:"Comment",required:!1,type:"comment",placeholder:"Enter custom notes if any"}],y=function(e){return e.filter((function(e){return""!==e.value}))},b=(o={},(0,r.Z)(o,l,[{name:"brokers",label:"Brokers",required:!0,tooltip:"Comma separated list of Kafka broker addresses",type:"string",placeholder:"Enter Brokers"},{name:"topic",label:"Topic",tooltip:"Kafka topic used for bucket notifications",type:"string",placeholder:"Enter Topic"},{name:"sasl_username",label:"SASL Username",tooltip:"Username for SASL/PLAIN or SASL/SCRAM authentication",type:"string",placeholder:"Enter SASL Username"},{name:"sasl_password",label:"SASL Password",tooltip:"Password for SASL/PLAIN or SASL/SCRAM authentication",type:"string",placeholder:"Enter SASL Password"},{name:"sasl_mechanism",label:"SASL Mechanism",tooltip:"SASL authentication mechanism, default 'PLAIN'",type:"string"},{name:"tls_client_auth",label:"TLS Client Auth",tooltip:"Client Auth determines the Kafka server's policy for TLS client auth",type:"string",placeholder:"Enter TLS Client Auth"},{name:"sasl",label:"SASL",tooltip:"Set to 'on' to enable SASL authentication",type:"on|off"},{name:"tls",label:"TLS",tooltip:"Set to 'on' to enable TLS",type:"on|off"},{name:"tls_skip_verify",label:"TLS skip verify",tooltip:'Trust server TLS without verification, defaults to "on" (verify)',type:"on|off"},{name:"client_tls_cert",label:"client TLS cert",tooltip:"Path to client certificate for mTLS auth",type:"path",placeholder:"Enter TLS Client Cert"},{name:"client_tls_key",label:"client TLS key",tooltip:"Path to client key for mTLS auth",type:"path",placeholder:"Enter TLS Client Key"},{name:"version",label:"Version",tooltip:"Specify the version of the Kafka cluster e.g '2.2.0'",type:"string",placeholder:"Enter Kafka Version"}].concat(v)),(0,r.Z)(o,s,[{name:"url",required:!0,label:"URL",tooltip:"AMQP server endpoint e.g. `amqp://myuser:mypassword@localhost:5672`",type:"url"},{name:"exchange",label:"Exchange",tooltip:"Name of the AMQP exchange",type:"string",placeholder:"Enter Exchange"},{name:"exchange_type",label:"Exchange Type",tooltip:"AMQP exchange type",type:"string",placeholder:"Enter Exchange Type"},{name:"routing_key",label:"Routing Key",tooltip:"Routing key for publishing",type:"string",placeholder:"Enter Routing Key"},{name:"mandatory",label:"Mandatory",tooltip:"Quietly ignore undelivered messages when set to 'off', default is 'on'",type:"on|off"},{name:"durable",label:"Durable",tooltip:"Persist queue across broker restarts when set to 'on', default is 'off'",type:"on|off"},{name:"no_wait",label:"No Wait",tooltip:"Non-blocking message delivery when set to 'on', default is 'off'",type:"on|off"},{name:"internal",label:"Internal",tooltip:"Set to 'on' for exchange to be not used directly by publishers, but only when bound to other exchanges",type:"on|off"},{name:"auto_deleted",label:"Auto Deleted",tooltip:"Auto delete queue when set to 'on', when there are no consumers",type:"on|off"},{name:"delivery_mode",label:"Delivery Mode",tooltip:"Set to '1' for non-persistent or '2' for persistent queue",type:"number",placeholder:"Enter Delivery Mode"}].concat(v)),(0,r.Z)(o,d,[{name:"address",required:!0,label:"Address",tooltip:"Redis server's address. For example: `localhost:6379`",type:"address",placeholder:"Enter Address"},{name:"key",required:!0,label:"Key",tooltip:"Redis key to store/update events, key is auto-created",type:"string",placeholder:"Enter Key"},{name:"password",label:"Password",tooltip:"Redis server password",type:"string",placeholder:"Enter Password"}].concat(v)),(0,r.Z)(o,c,[{name:"broker",required:!0,label:"Broker",tooltip:"MQTT server endpoint e.g. `tcp://localhost:1883`",type:"uri",placeholder:"Enter Brokers"},{name:"topic",required:!0,label:"Topic",tooltip:"name of the MQTT topic to publish",type:"string",placeholder:"Enter Topic"},{name:"username",label:"Username",tooltip:"MQTT username",type:"string",placeholder:"Enter Username"},{name:"password",label:"Password",tooltip:"MQTT password",type:"string",placeholder:"Enter Password"},{name:"qos",label:"QOS",tooltip:"Set the quality of service priority, defaults to '0'",type:"number",placeholder:"Enter QOS"},{name:"keep_alive_interval",label:"Keep Alive Interval",tooltip:"Keep-alive interval for MQTT connections in s,m,h,d",type:"duration",placeholder:"Enter Keep Alive Internal"},{name:"reconnect_interval",label:"Reconnect Interval",tooltip:"Reconnect interval for MQTT connections in s,m,h,d",type:"duration",placeholder:"Enter Reconnect Interval"}].concat(v)),(0,r.Z)(o,p,[{name:"address",required:!0,label:"Address",tooltip:"NATS server address e.g. '0.0.0.0:4222'",type:"address",placeholder:"Enter Address"},{name:"subject",required:!0,label:"Subject",tooltip:"NATS subscription subject",type:"string",placeholder:"Enter NATS Subject"},{name:"username",label:"Username",tooltip:"NATS username",type:"string",placeholder:"Enter NATS Username"},{name:"password",label:"Password",tooltip:"NATS password",type:"string",placeholder:"Enter NATS password"},{name:"token",label:"Token",tooltip:"NATS token",type:"string",placeholder:"Enter NATS token"},{name:"tls",label:"TLS",tooltip:"Set to 'on' to enable TLS",type:"on|off"},{name:"tls_skip_verify",label:"TLS Skip Verify",tooltip:'Trust server TLS without verification, defaults to "on" (verify)',type:"on|off"},{name:"ping_interval",label:"Ping Interval",tooltip:"Client ping commands interval in s,m,h,d. Disabled by default",type:"duration",placeholder:"Enter Ping Interval"},{name:"streaming",label:"Streaming",tooltip:"Set to 'on', to use streaming NATS server",type:"on|off"},{name:"streaming_async",label:"Streaming async",tooltip:"Set to 'on', to enable asynchronous publish",type:"on|off"},{name:"streaming_max_pub_acks_in_flight",label:"Streaming max publish ACKS in flight",tooltip:"Number of messages to publish without waiting for ACKs",type:"number",placeholder:"Enter Streaming in flight value"},{name:"streaming_cluster_id",label:"Streaming Cluster ID",tooltip:"Unique ID for NATS streaming cluster",type:"string",placeholder:"Enter Streaming Cluster ID"},{name:"cert_authority",label:"Cert Authority",tooltip:"Path to certificate chain of the target NATS server",type:"string",placeholder:"Enter Cert Authority"},{name:"client_cert",label:"Client Cert",tooltip:"Client cert for NATS mTLS auth",type:"string",placeholder:"Enter Client Cert"},{name:"client_key",label:"Client Key",tooltip:"Client cert key for NATS mTLS auth",type:"string",placeholder:"Enter Client Key"}].concat(v)),(0,r.Z)(o,u,[{name:"url",required:!0,label:"URL",tooltip:"Elasticsearch server's address, with optional authentication info",type:"url",placeholder:"Enter URL"},{name:"index",required:!0,label:"Index",tooltip:"Elasticsearch index to store/update events, index is auto-created",type:"string",placeholder:"Enter Index"},{name:"format",required:!0,label:"Format",tooltip:"'namespace' reflects current bucket/object list and 'access' reflects a journal of object operations, defaults to 'namespace'",type:"enum",placeholder:"Enter Format"}].concat(v)),(0,r.Z)(o,m,[{name:"endpoint",required:!0,label:"Endpoint",tooltip:"webhook server endpoint e.g. http://localhost:8080/minio/events",type:"url",placeholder:"Enter Endpoint"},{name:"auth_token",label:"Auth Token",tooltip:"opaque string or JWT authorization token",type:"string",placeholder:"Enter auth_token"}].concat(v)),(0,r.Z)(o,f,[{name:"nsqd_address",required:!0,label:"NSQD Address",tooltip:"NSQ server address e.g. '127.0.0.1:4150'",type:"address",placeholder:"Enter nsqd_address"},{name:"topic",required:!0,label:"Topic",tooltip:"NSQ topic",type:"string",placeholder:"Enter Topic"},{name:"tls",label:"TLS",tooltip:"set to 'on' to enable TLS",type:"on|off"},{name:"tls_skip_verify",label:"TLS Skip Verify",tooltip:'trust server TLS without verification, defaults to "on" (verify)',type:"on|off"}].concat(v)),o),S={webhook:"notify_webhook",amqp:"notify_amqp",kafka:"notify_kafka",mqtt:"notify_mqtt",nats:"notify_nats",nsq:"notify_nsq",mysql:"notify_mysql",postgresql:"notify_postgres",elasticsearch:"notify_elasticsearch",redis:"notify_redis"},x=function(e){return S[e]}},26759:function(e,t,n){"use strict";var o=n(64836);t.Z=void 0;var r=o(n(45649)),i=n(80184),a=(0,r.default)((0,i.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");t.Z=a},70366:function(e,t,n){"use strict";var o=n(64836);t.Z=void 0;var r=o(n(45649)),i=n(80184),a=(0,r.default)((0,i.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");t.Z=a},37267:function(e,t,n){"use strict";var o=n(64836);t.Z=void 0;var r=o(n(45649)),i=n(80184),a=(0,r.default)((0,i.jsx)("circle",{cx:"12",cy:"12",r:"8"}),"FiberManualRecord");t.Z=a},97911:function(e,t,n){"use strict";var o=n(64836);t.Z=void 0;var r=o(n(45649)),i=n(80184),a=(0,r.default)((0,i.jsx)("path",{d:"M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z"}),"ViewColumn");t.Z=a},94454:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var o=n(4942),r=n(63366),i=n(87462),a=n(72791),l=n(94419),s=n(12065),c=n(97278),d=n(76189),p=n(80184),u=(0,d.Z)((0,p.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"),m=(0,d.Z)((0,p.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"),f=(0,d.Z)((0,p.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"),h=n(14036),g=n(31402),v=n(66934),y=n(21217);function b(e){return(0,y.Z)("MuiCheckbox",e)}var S=(0,n(75878).Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),x=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size"],T=(0,v.ZP)(c.Z,{shouldForwardProp:function(e){return(0,v.FO)(e)||"classes"===e},name:"MuiCheckbox",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t["color".concat((0,h.Z)(n.color))]]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,i.Z)({color:(n.vars||n).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:n.vars?"rgba(".concat("default"===r.color?n.vars.palette.action.activeChannel:n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,s.Fq)("default"===r.color?n.palette.action.active:n.palette[r.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&(t={},(0,o.Z)(t,"&.".concat(S.checked,", &.").concat(S.indeterminate),{color:(n.vars||n).palette[r.color].main}),(0,o.Z)(t,"&.".concat(S.disabled),{color:(n.vars||n).palette.action.disabled}),t))})),k=(0,p.jsx)(m,{}),Z=(0,p.jsx)(u,{}),_=(0,p.jsx)(f,{}),j=a.forwardRef((function(e,t){var n,o,s=(0,g.Z)({props:e,name:"MuiCheckbox"}),c=s.checkedIcon,d=void 0===c?k:c,u=s.color,m=void 0===u?"primary":u,f=s.icon,v=void 0===f?Z:f,y=s.indeterminate,S=void 0!==y&&y,j=s.indeterminateIcon,A=void 0===j?_:j,E=s.inputProps,C=s.size,w=void 0===C?"medium":C,L=(0,r.Z)(s,x),N=S?A:v,q=S?A:d,I=(0,i.Z)({},s,{color:m,indeterminate:S,size:w}),P=function(e){var t=e.classes,n=e.indeterminate,o=e.color,r={root:["root",n&&"indeterminate","color".concat((0,h.Z)(o))]},a=(0,l.Z)(r,b,t);return(0,i.Z)({},t,a)}(I);return(0,p.jsx)(T,(0,i.Z)({type:"checkbox",inputProps:(0,i.Z)({"data-indeterminate":S},E),icon:a.cloneElement(N,{fontSize:null!=(n=N.props.fontSize)?n:w}),checkedIcon:a.cloneElement(q,{fontSize:null!=(o=q.props.fontSize)?o:w}),ownerState:I,ref:t},L,{classes:P}))}))},26769:function(e,t,n){var o=n(39066),r=n(93629),i=n(43141);e.exports=function(e){return"string"==typeof e||!r(e)&&i(e)&&"[object String]"==o(e)}}}]);
|
|
//# sourceMappingURL=5643.bca52423.chunk.js.map
|