"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["21833"],{976:function(e,a,t){t.r(a),t.d(a,{HuiIframeCardEditor:function(){return m}});var n,i=t(72153),o=t(44734),r=t(43080),l=t(69683),c=t(6454),u=(t(28706),t(40445)),s=t(96196),d=t(77845),h=t(63533),f=t(1087),p=(t(52763),t(84698)),_=(0,h.kp)(p.H,(0,h.Ik)({title:(0,h.lq)((0,h.Yj)()),url:(0,h.lq)((0,h.Yj)()),aspect_ratio:(0,h.lq)((0,h.Yj)()),allow_open_top_navigation:(0,h.lq)((0,h.zM)()),hide_background:(0,h.lq)((0,h.zM)())})),g=[{name:"title",selector:{text:{}}},{name:"",type:"grid",schema:[{name:"url",required:!0,selector:{text:{}}},{name:"aspect_ratio",selector:{text:{}}}]},{name:"hide_background",selector:{boolean:{}}}],m=function(e){function a(){var e;(0,o.A)(this,a);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=(0,l.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,c.A)(a,e),(0,r.A)(a,[{key:"setConfig",value:function(e){(0,h.vA)(e,_),this._config=e}},{key:"render",value:function(){return this.hass&&this._config?(0,s.qy)(n||(n=(0,i.A)([' <ha-form .hass="','" .data="','" .schema="','" .computeLabel="','" .computeHelper="','" @value-changed="','"></ha-form> '])),this.hass,this._config,g,this._computeLabelCallback,this._computeHelperCallback,this._valueChanged):s.s6}},{key:"_valueChanged",value:function(e){(0,f.r)(this,"config-changed",{config:e.detail.value})}}])}(s.WF);(0,u.Cg)([(0,d.MZ)({attribute:!1})],m.prototype,"hass",void 0),(0,u.Cg)([(0,d.wk)()],m.prototype,"_config",void 0),m=(0,u.Cg)([(0,d.EM)("hui-iframe-card-editor")],m)},84698:function(e,a,t){t.d(a,{H:function(){return i}});var n=t(63533),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)())})}}]);
//# sourceMappingURL=21833.108107b74fe23b68.js.map