"use strict";(self.webpackChunkknx_frontend=self.webpackChunkknx_frontend||[]).push([[6048],{66048:function(n,e,a){a.r(e),a.d(e,{HaFormExpendable:function(){return f}});var t,i,o,d,r=a(6238),s=a(36683),c=a(89231),l=a(29864),h=a(83647),u=a(8364),p=(a(77052),a(68113),a(58971),a(98597)),v=a(196),f=(a(93259),(0,u.A)([(0,v.EM)("ha-form-expandable")],(function(n,e){var a=function(e){function a(){var e;(0,c.A)(this,a);for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return e=(0,l.A)(this,a,[].concat(i)),n(e),e}return(0,h.A)(a,e),(0,s.A)(a)}(e);return{F:a,d:[{kind:"field",decorators:[(0,v.MZ)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,v.MZ)({attribute:!1})],key:"data",value:void 0},{kind:"field",decorators:[(0,v.MZ)({attribute:!1})],key:"schema",value:void 0},{kind:"field",decorators:[(0,v.MZ)({type:Boolean})],key:"disabled",value:function(){return!1}},{kind:"field",decorators:[(0,v.MZ)({attribute:!1})],key:"computeLabel",value:void 0},{kind:"field",decorators:[(0,v.MZ)({attribute:!1})],key:"computeHelper",value:void 0},{kind:"method",key:"render",value:function(){var n,e;return(0,p.qy)(t||(t=(0,r.A)(["\n      <ha-expansion-panel outlined .expanded=",'>\n        <div\n          slot="header"\n          role="heading"\n          aria-level=',"\n        >\n          ","\n          ",'\n        </div>\n        <div class="content">\n          <ha-form\n            .hass=',"\n            .data=","\n            .schema=","\n            .disabled=","\n            .computeLabel=","\n            .computeHelper=","\n          ></ha-form>\n        </div>\n      </ha-expansion-panel>\n    "])),Boolean(this.schema.expanded),null!==(n=null===(e=this.schema.headingLevel)||void 0===e?void 0:e.toString())&&void 0!==n?n:"3",this.schema.icon?(0,p.qy)(i||(i=(0,r.A)([" <ha-icon .icon=","></ha-icon> "])),this.schema.icon):this.schema.iconPath?(0,p.qy)(o||(o=(0,r.A)(["\n                  <ha-svg-icon .path=","></ha-svg-icon>\n                "])),this.schema.iconPath):p.s6,this.schema.title,this.hass,this.data,this.schema.schema,this.disabled,this.computeLabel,this.computeHelper)}},{kind:"get",static:!0,key:"styles",value:function(){return(0,p.AH)(d||(d=(0,r.A)(["\n      :host {\n        display: flex !important;\n        flex-direction: column;\n      }\n      :host ha-form {\n        display: block;\n      }\n      .content {\n        padding: 12px;\n      }\n      ha-expansion-panel {\n        display: block;\n        --expansion-panel-content-padding: 0;\n        border-radius: 6px;\n        --ha-card-border-radius: 6px;\n      }\n      ha-svg-icon,\n      ha-icon {\n        color: var(--secondary-text-color);\n      }\n    "])))}}]}}),p.WF))}}]);