"use strict";(self.webpackChunkhacs_frontend=self.webpackChunkhacs_frontend||[]).push([["9823"],{78446:function(e,a,t){t.r(a),t.d(a,{HaFormExpendable:function(){return u}});var i=t(73577),o=(t(71695),t(19423),t(11740),t(47021),t(57243)),n=t(50778);t(42877);let s,d,l,c,r,h=e=>e,u=(0,i.Z)([(0,n.Mo)("ha-form-expandable")],(function(e,a){return{F:class extends a{constructor(...a){super(...a),e(this)}},d:[{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"data",value:void 0},{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"schema",value:void 0},{kind:"field",decorators:[(0,n.Cb)({type:Boolean})],key:"disabled",value(){return!1}},{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"computeLabel",value:void 0},{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"computeHelper",value:void 0},{kind:"field",decorators:[(0,n.Cb)({attribute:!1})],key:"localizeValue",value:void 0},{kind:"method",key:"_renderDescription",value:function(){var e;const a=null===(e=this.computeHelper)||void 0===e?void 0:e.call(this,this.schema);return a?(0,o.dy)(s||(s=h`

${0}

`),a):o.Ld}},{kind:"field",key:"_computeLabel",value(){return(e,a,t)=>this.computeLabel?this.computeLabel(e,a,Object.assign(Object.assign({},t),{},{path:[...(null==t?void 0:t.path)||[],this.schema.name]})):this.computeLabel}},{kind:"field",key:"_computeHelper",value(){return(e,a)=>this.computeHelper?this.computeHelper(e,Object.assign(Object.assign({},a),{},{path:[...(null==a?void 0:a.path)||[],this.schema.name]})):this.computeHelper}},{kind:"method",key:"render",value:function(){var e,a,t;return(0,o.dy)(d||(d=h`
${0} ${0}
${0}
`),Boolean(this.schema.expanded),null!==(e=null===(a=this.schema.headingLevel)||void 0===a?void 0:a.toString())&&void 0!==e?e:"3",this.schema.icon?(0,o.dy)(l||(l=h` `),this.schema.icon):this.schema.iconPath?(0,o.dy)(c||(c=h` `),this.schema.iconPath):o.Ld,this.schema.title||(null===(t=this.computeLabel)||void 0===t?void 0:t.call(this,this.schema)),this._renderDescription(),this.hass,this.data,this.schema.schema,this.disabled,this._computeLabel,this._computeHelper,this.localizeValue)}},{kind:"get",static:!0,key:"styles",value:function(){return(0,o.iv)(r||(r=h`:host{display:flex!important;flex-direction:column}:host ha-form{display:block}.content{padding:12px}.content p{margin:0 0 24px}ha-expansion-panel{display:block;--expansion-panel-content-padding:0;border-radius:6px;--ha-card-border-radius:6px}ha-icon,ha-svg-icon{color:var(--secondary-text-color)}`))}}]}}),o.oi)}}]); //# sourceMappingURL=9823.f563060692862b76.js.map