import{r as s}from"./index-BP8_t0zE.js";import{s as f,c as d}from"./defaultI18nProvider-C_r1y4tu.js";import{g as y,u as v,s as l}from"./TextField-n0Myx-gm.js";import{C as h}from"./Chip-4IhPI0f3.js";import{T as g}from"./Typography-E7d16C50.js";import{u as O}from"./Button-C3j8Wgdd.js";var o=function(){return o=Object.assign||function(e){for(var a,n=1,r=arguments.length;n<r;n++){a=arguments[n];for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},o.apply(this,arguments)},b=function(e,a){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(n[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])&&(n[r[t]]=e[r[t]]);return n},i,p=function(e){var a=e.className,n=e.emptyText,r=b(e,["className","emptyText"]),t=v(e),u=O();return t==null&&n?s.createElement(g,o({component:"span",variant:"body2",className:a},l(r)),n&&u(n,{_:n})):s.createElement(C,o({className:d(m.chip,a),label:t},l(r)))};p.displayName="ChipFieldImpl";var T=y(p),c="RaChipField",m={chip:"".concat(c,"-chip")},C=f(h,{name:c,overridesResolver:function(e,a){return a.root}})((i={},i["&.".concat(m.chip)]={cursor:"inherit"},i));export{T as C};
