import{r as f}from"./index-76fb7be0.js";import{g as u}from"./_baseAssignValue-4b27bc5d.js";import{f as y,s as g}from"./sanitizeFieldRestProps-fb2f7069.js";import{g as v}from"./genericMemo-8de5a1aa.js";import{T as i,c as T}from"./dataProvider-3f13e24d.js";import{u as b}from"./useRecordContext-3e1d0ecf.js";var n=globalThis&&globalThis.__assign||function(){return n=Object.assign||function(e){for(var a,o=1,r=arguments.length;o<r;o++){a=arguments[o];for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},n.apply(this,arguments)},d=globalThis&&globalThis.__rest||function(e,a){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,r=Object.getOwnPropertySymbols(e);t<r.length;t++)a.indexOf(r[t])<0&&Object.prototype.propertyIsEnumerable.call(e,r[t])&&(o[r[t]]=e[r[t]]);return o},l=function(e){var a,o=e.className,r=e.source,t=e.emptyText,m=d(e,["className","source","emptyText"]),p=b(e),s=(a=u(p,r))===null||a===void 0?void 0:a.toString(),c=T();return f.createElement(i,n({component:"span",variant:"body2",className:o},g(m)),s!=null&&typeof s!="string"?JSON.stringify(s):s||(t?c(t,{_:t}):null))};l.propTypes=n(n({},i.propTypes),y);l.displayName="TextFieldImpl";var P=v(l);export{P as T};
