PageSourceSearch

https://north-server.ru/frontend_latest/85223.db09709e5c5c95b1.js

js north-server.ru collected 2026-10-08 16:53:53 UTC 2,688 bytes, 2 lines download raw bytes

1export const __rspack_esm_id=85223;export const __rspack_esm_ids=[85223];export const __webpack_modules__={91386(t,o,i){i.a(t,async function(t,e){try{i.r(o);var r=i(28861),a=i(7400),n=i(11467),s=i(82476),l=i(5633),c=i(16635),d=i(52973),h=i(41293),p=i(52937),_=(i(30753),i(21129)),f=t([p]);p=(f.then?(await f)():f)[0];class u extends n.WF{static async getConfigElement(){return await i.e(37256).then(i.bind(i,71611)),document.createElement("hui-iframe-card-editor")}static getStubConfig(){return{type:"iframe",url:"https://www.home-assistant.io",aspect_ratio:"50%"}}getCardSize(){if(!this._config)return 5;return 1+(this._config.aspect_ratio?Number(this._config.aspect_ratio.replace("%","")):50)/25}setConfig(t){if(!t.url)throw new Error("URL required");if("about:blank"===(0,a.J)(t.url))throw new Error("Invalid URL");this._config=t}render(){if(!this._config||!this.hass)return n.s6;let t="";if(!("panel"===this.layout||"grid"===this.layout))if(this._config.aspect_ratio){const o=(0,h.A)(this._config.aspect_ratio);o&&o.w>0&&o.h>0&&(t=`${(100*o.h/o.w).toFixed(2)}%`)}else t="50%";const o=new URL(this._config.url,location.toString()).protocol;if("https:"===location.protocol&&"https:"!==o)return n.qy` <ha-alert alert-type="error"> ${this.hass.localize("ui.panel.lovelace.cards.iframe.error_secure_context",{target_protocol:o,context_protocol:location.protocol})} </ha-alert> `;let i="";this._config.allow_open_top_navigation&&(i+="allow-top-navigation-by-user-activation");const e=this._config.disable_sandbox?void 0:`${i} ${_.D}`;return n.qy` <ha-card class=${(0,l.H)({"hide-background":this._config.hide_background})} .header=${this._config.title}> <div id="root" style=${(0,d.W)({"padding-top":t})};> <iframe title=${(0,c.J)(this._config.title)} src=${this._config.url} sandbox=${(0,c.J)(e)} allow=${this._config.allow??"fullscreen"}></iframe> </div> </ha-card> `}getGridOptions(){return{columns:"full",rows:4,min_columns:3,min_rows:2}}}u.styles=n.AH`ha-card{flex-direction:column;width:100%;height:100%;display:flex;overflow:hidden}ha-card.hide-background{box-shadow:none;background:0 0;border:none}#root{width:100%;height:100%;position:relative}iframe{border:none;width:100%;height:100%;position:absolute;top:0;left:0}`,(0,r.Cg)([(0,s.MZ)({attribute:!1})],u.prototype,"layout",void 0),(0,r.Cg)([(0,s.MZ)({attribute:!1})],u.prototype,"hass",void 0),(0,r.Cg)([(0,s.wk)()],u.prototype,"_config",void 0),u=(0,r.Cg)([(0,s.EM)("hui-iframe-card")],u),i.d(o,{HuiIframeCard:()=>u}),e()}catch(t){e(t)}})},21129(t,o,i){i.d(o,{},{D:"allow-forms allow-popups allow-pointer-lock allow-same-origin allow-scripts allow-modals allow-downloads"})}};
2//# sourceMappingURL=85223.db09709e5c5c95b1.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.