export const __rspack_esm_id="15106";export const __rspack_esm_ids=["15106"];export const __webpack_modules__={52943(e,i,a){a.d(i,{Z:()=>t});const t=e=>e.charAt(0).toUpperCase()+e.slice(1)},7382(e,i,a){a.d(i,{U:()=>t});const t=a(96196).AH`.card-config{overflow:auto}ha-switch{padding:16px 6px}.side-by-side{display:flex;align-items:flex-end}.side-by-side>*{flex:1;padding-right:8px;padding-inline-end:8px;padding-inline-start:initial}.side-by-side>:last-child{flex:1;padding-right:0;padding-inline-end:0;padding-inline-start:initial}.suffix{margin:0 8px}ha-icon-picker,ha-select,ha-textfield,hui-action-editor{margin-top:8px;display:block}ha-expansion-panel{display:block;--expansion-panel-content-padding:0;border-radius:var(--ha-border-radius-md);--ha-card-border-radius:var(--ha-border-radius-md)}ha-expansion-panel .content{padding:12px}ha-expansion-panel>[slot=header]{margin:0;font-size:inherit;font-weight:inherit}ha-expansion-panel ha-svg-icon{color:var(--secondary-text-color)}`},15737(e,i,a){a.r(i),a.d(i,{HuiFormEditor:()=>l});var t=a(62826),s=a(96196),o=a(44457),n=a(1087),r=a(52943),d=(a(52763),a(7382));class l extends s.WF{assertConfig(e){}setConfig(e){this.assertConfig(e),this._config=e}render(){return this._config?s.qy` <ha-form .hass="${this.hass}" .data="${this._config}" .schema="${this.schema}" .computeLabel="${this._computeLabelCallback}" .computeHelper="${this._computeHelperCallback}" @value-changed="${this._valueChanged}"></ha-form> `:s.s6}_valueChanged(e){const i=e.detail.value;(0,n.r)(this,"config-changed",{config:i})}constructor(...e){super(...e),this.computeLabel=(e,i)=>{},this.computeHelper=(e,i)=>{},this._computeLabelCallback=e=>this.computeLabel(e,this.hass.localize)||this.hass.localize(`ui.panel.lovelace.editor.card.generic.${e.name}`)||(0,r.Z)(e.name.split("_").join(" ")),this._computeHelperCallback=e=>this.computeHelper(e,this.hass.localize)}}l.styles=d.U,(0,t.Cg)([(0,o.MZ)({attribute:!1})],l.prototype,"hass",void 0),(0,t.Cg)([(0,o.MZ)({attribute:!1})],l.prototype,"schema",void 0),(0,t.Cg)([(0,o.wk)()],l.prototype,"_config",void 0),l=(0,t.Cg)([(0,o.EM)("hui-form-editor")],l)}};
//# sourceMappingURL=15106.c38c0e7f10eb1e9f.js.map