"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[15816],{69019:function(e,a,t){t.a(e,async function(e,n){try{t.r(a);var i,o=t(28430),r=t(57567),c=t(25979),l=t(12463),s=t(16472),u=(t(28706),t(15697)),h=t(57527),d=t(51209),f=t(49588),p=t(148),_=t(55682),g=t(30013),m=e([_]);_=(m.then?(await m)():m)[0];var b=(0,f.kp)(g.H,(0,f.Ik)({title:(0,f.lq)((0,f.Yj)()),url:(0,f.lq)((0,f.Yj)()),aspect_ratio:(0,f.lq)((0,f.Yj)()),allow_open_top_navigation:(0,f.lq)((0,f.zM)()),hide_background:(0,f.lq)((0,f.zM)())})),k=[{name:"title",selector:{text:{}}},{name:"",type:"grid",schema:[{name:"url",required:!0,selector:{text:{}}},{name:"aspect_ratio",selector:{text:{}}}]},{name:"hide_background",selector:{boolean:{}}}],v=function(e){function a(){var e;(0,r.A)(this,a);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=(0,s.A)(this,a,[].concat(n)))._computeLabelCallback=function(a){return"hide_background"===a.name?e.hass.localize("ui.panel.lovelace.editor.card.iframe.hide_background"):e.hass.localize("ui.panel.lovelace.editor.card.generic.".concat(a.name))},e._computeHelperCallback=function(a){return"hide_background"===a.name?e.hass.localize("ui.panel.lovelace.editor.card.iframe.hide_background_helper"):""},e}return(0,l.A)(a,e),(0,c.A)(a,[{key:"setConfig",value:function(e){(0,f.vA)(e,b),this._config=e}},{key:"render",value:function(){return this.hass&&this._config?(0,h.qy)(i||(i=(0,o.A)([" <ha-form .hass="," .data="," .schema="," .computeLabel="," .computeHelper="," @value-changed=","></ha-form> "])),this.hass,this._config,k,this._computeLabelCallback,this._computeHelperCallback,this._valueChanged):h.s6}},{key:"_valueChanged",value:function(e){(0,p.r)(this,"config-changed",{config:e.detail.value})}}])}(h.WF);(0,u.Cg)([(0,d.MZ)({attribute:!1})],v.prototype,"hass",void 0),(0,u.Cg)([(0,d.wk)()],v.prototype,"_config",void 0),v=(0,u.Cg)([(0,d.EM)("hui-iframe-card-editor")],v),t.d(a,{HuiIframeCardEditor:function(){return v}}),n()}catch(y){n(y)}})},30013:function(e,a,t){var n=t(49588),i=(0,n.Ik)({type:(0,n.Yj)(),view_layout:(0,n.bz)(),layout_options:(0,n.bz)(),grid_options:(0,n.bz)(),visibility:(0,n.bz)(),disabled:(0,n.lq)((0,n.zM)())});t.d(a,{H:function(){return i}})}}]);
//# sourceMappingURL=15816.c4c3408435500b01.js.map