PageSourceSearch

https://nimiq.cafe/assets/FormControlLabel-BXm3v8oR.js

js nimiq.cafe collected 2026-10-07 11:22:44 UTC 2,467 bytes, 1 lines download raw bytes

1import{G as y,bZ as t,ag as L,N as R,r as x,O as A,aw as M,V as U,T as P,j as d,X as v,Y as z,b_ as G}from"./index-BC4ElAqj.js";import{f as H}from"./Select-zOoZZJvW.js";const I=r=>{const{classes:e,disabled:s,labelPlacement:o,error:m,required:b}=r,u={root:["root",s&&"disabled",`labelPlacement${L(o)}`,m&&"error",b&&"required"],label:["label",s&&"disabled"],asterisk:["asterisk",m&&"error"]};return z(u,G,e)},O=y("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:s}=r;return[{[`& .${t.label}`]:e.label},e.root,e[`labelPlacement${L(s.labelPlacement)}`]]}})(R(({theme:r})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${t.disabled}`]:{cursor:"default"},[`& .${t.label}`]:{[`&.${t.disabled}`]:{color:(r.vars||r).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>e==="start"||e==="top"||e==="bottom",style:{marginLeft:16}}]}))),V=y("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(r,e)=>e.asterisk})(R(({theme:r})=>({[`&.${t.error}`]:{color:(r.vars||r).palette.error.main}}))),J=x.forwardRef(function(e,s){const o=A({props:e,name:"MuiFormControlLabel"}),{checked:m,className:b,componentsProps:u={},control:a,disabled:F,disableTypography:T,inputRef:W,label:$,labelPlacement:j="end",name:X,onChange:Y,required:k,slots:q={},slotProps:w={},value:Z,...N}=o,n=M(),h=F??a.props.disabled??(n==null?void 0:n.disabled),f=k??a.props.required,C={disabled:h,required:f};["checked","name","onChange","value","inputRef"].forEach(p=>{typeof a.props[p]>"u"&&typeof o[p]<"u"&&(C[p]=o[p])});const D=H({props:o,muiFormControl:n,states:["error"]}),i={...o,disabled:h,labelPlacement:j,required:f,error:D.error},g=I(i),E={slots:q,slotProps:{...u,...w}},[S,c]=U("typography",{elementType:P,externalForwardedProps:E,ownerState:i});let l=$;return l!=null&&l.type!==P&&!T&&(l=d.jsx(S,{component:"span",...c,className:v(g.label,c==null?void 0:c.className),children:l})),d.jsxs(O,{className:v(g.root,b),ownerState:i,ref:s,...N,children:[x.cloneElement(a,C),f?d.jsxs("div",{children:[l,d.jsxs(V,{ownerState:i,"aria-hidden":!0,className:g.asterisk,children:[" ","*"]})]}):l]}
1)});export{J as F};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.