????

Your IP : 216.73.216.152


Current Path : C:/inetpub/vhost/tracnghiem.gdtsolutions.vn/wwwroot/assets/
Upload File :
Current File : C:/inetpub/vhost/tracnghiem.gdtsolutions.vn/wwwroot/assets/FormControlLabel-a1a576f7.js

import{a as M,g as O,s as S,c as L,_ as b,b as h,u as U,e as w,b1 as D,b2 as W,T as P,j as C,f as x,p as e,a_ as k,h as q}from"./index-9bcd78a9.js";function z(l){return O("MuiFormControlLabel",l)}const A=M("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),p=A,B=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","slotProps","value"],H=l=>{const{classes:o,disabled:t,labelPlacement:n,error:a}=l,d={root:["root",t&&"disabled",`labelPlacement${L(n)}`,a&&"error"],label:["label",t&&"disabled"]};return q(d,z,o)},I=S("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(l,o)=>{const{ownerState:t}=l;return[{[`& .${p.label}`]:o.label},o.root,o[`labelPlacement${L(t.labelPlacement)}`]]}})(({theme:l,ownerState:o})=>b({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${p.disabled}`]:{cursor:"default"}},o.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},o.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},o.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${p.label}`]:{[`&.${p.disabled}`]:{color:(l.vars||l).palette.text.disabled}}})),T=h.forwardRef(function(o,t){var n;const a=U({props:o,name:"MuiFormControlLabel"}),{className:d,componentsProps:F={},control:c,disabled:v,disableTypography:R,label:j,labelPlacement:$="end",slotProps:N={}}=a,_=w(a,B),m=D();let s=v;typeof s>"u"&&typeof c.props.disabled<"u"&&(s=c.props.disabled),typeof s>"u"&&m&&(s=m.disabled);const u={disabled:s};["checked","name","onChange","value","inputRef"].forEach(i=>{typeof c.props[i]>"u"&&typeof a[i]<"u"&&(u[i]=a[i])});const E=W({props:a,muiFormControl:m,states:["error"]}),y=b({},a,{disabled:s,labelPlacement:$,error:E.error}),g=H(y),f=(n=N.typography)!=null?n:F.typography;let r=j;return r!=null&&r.type!==P&&!R&&(r=C.jsx(P,b({component:"span"},f,{className:x(g.label,f==null?void 0:f.className),children:r}))),C.jsxs(I,b({className:x(g.root,d),ownerState:y,ref:t},_,{children:[h.cloneElement(c,u),r]}))});T.propTypes={checked:e.bool,classes:e.object,className:e.string,componentsProps:e.shape({typography:e.object}),control:e.element.isRequired,disabled:e.bool,disableTypography:e.bool,inputRef:k,label:e.node,labelPlacement:e.oneOf(["bottom","end","start","top"]),name:e.string,onChange:e.func,slotProps:e.shape({typography:e.object}),sx:e.oneOfType([e.arrayOf(e.oneOfType([e.func,e.object,e.bool])),e.func,e.object]),value:e.any};const J=T;export{J as F};