import{s as c,ao as v,y as i,bO as l,ay as f,t as S,f as p,bP as b,z as u,P as y,Q as s,a1 as g}from"./index-DT8qTvyx.js";var P=function(n){c(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.normalizePlaceholder=function(){var t=this.props.placeholder;return v(t)?i(i({},l),f(t,["key","title","description","default","empty"])):l},e.prototype.renderModalProps=function(t,d){var o=this.props,r=o.render,a=o.advancedSettings,m=(a==null?void 0:a[t==null?void 0:t.type])||[];return r("modal",{type:"form",wrapWithPanel:!1,body:m,submitOnChange:!0},{data:t,onSubmit:function(h){return d(h)}})},e.prototype.render=function(){var t=this.props,d=t.enableAdvancedSetting,o=t.mobileUI,r=t.env,a=S(t,["enableAdvancedSetting","mobileUI","env"]);return p.createElement(b,i({},a,{mobileUI:o,placeholder:this.normalizePlaceholder(),enableAdvancedSetting:d,renderModalProps:this.renderModalProps,popOverContainer:o?r==null?void 0:r.getModalContainer:a.popOverContainer||r.getModalContainer}))},e.defaultProps={enableAdvancedSetting:!1,placeholder:l},u([y,s("design:type",Function),s("design:paramtypes",[Object,Function]),s("design:returntype",void 0)],e.prototype,"renderModalProps",null),e}(p.PureComponent),_=function(n){c(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e=u([g({type:"json-schema-editor"})],e),e}(P);export{_ as JSONSchemaEditorRenderer,P as default};
