import{r as s}from"./index-76fb7be0.js";import{c as R,F as x,S as L}from"./clsx.m-a48b126d.js";import{T,s as W}from"./dataProvider-3f13e24d.js";var c=globalThis&&globalThis.__assign||function(){return c=Object.assign||function(e){for(var o,t=1,l=arguments.length;t<l;t++){o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},c.apply(this,arguments)},j=globalThis&&globalThis.__rest||function(e,o){var t={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&o.indexOf(l)<0&&(t[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,l=Object.getOwnPropertySymbols(e);r<l.length;r++)o.indexOf(l[r])<0&&Object.prototype.propertyIsEnumerable.call(e,l[r])&&(t[l[r]]=e[l[r]]);return t},a,E=function(e){var o,t,l,r=e.children,d=e.className,f=d===void 0?"":d,p=e.color,b=p===void 0?"text.secondary":p,u=e.component,v=u===void 0?"span":u,y=e.fullWidth,h=e.isRequired,m=e.label,g=e.resource,O=e.source,N=j(e,["children","className","color","component","fullWidth","isRequired","label","resource","source"]);return s.createElement(_,c({component:v,className:R(f,(o={},o[n.fullWidth]=y,o))},N),m!==!1&&r.props.label!==!1&&typeof r.type!="string"&&((t=r.type)===null||t===void 0?void 0:t.displayName)!=="Labeled"&&((l=r.type)===null||l===void 0?void 0:l.displayName)!=="Labeled"?s.createElement(T,{color:b,className:n.label},s.createElement(x,{label:m||r.props.label,source:O||r.props.source,resource:g,isRequired:h})):null,r)};E.displayName="Labeled";var i="RaLabeled",n={label:"".concat(i,"-label"),fullWidth:"".concat(i,"-fullWidth")},_=W(L,{name:i,overridesResolver:function(e,o){return o.root}})((a={display:"inline-flex",marginBottom:"0.2em"},a["&.".concat(n.fullWidth)]={width:"100%"},a["& .".concat(n.label)]={fontSize:"0.75em",marginBottom:"0.2em"},a));export{E as L};
