PageSourceSearch

https://www.sla.se/assets/rev/js/iframe-embed-module-TAQETVLN.js

js sla.se collected 2026-10-02 10:02:36 UTC 1,780 bytes, 2 lines download raw bytes

1import{a as n}from"./chunk-UOEFDBHP.js";import{a as d}from"./chunk-JPF3YUDE.js";import{B as l}from"./chunk-VJGBCIFP.js";import"./chunk-XCPXRTXT.js";import"./chunk-XJLSI5BW.js";import"./chunk-ZOYOJ6FT.js";import"./chunk-6KHOHYTW.js";var c=new Map;function u(i,e){let t=i.src;clearTimeout(c.get(t)),c.set(t,setTimeout(()=>{try{if(!document.body.contains(i))return;let r=i.getBoundingClientRect().width;if(r>e){i.classList.remove("ratio-portrait"),i.style.removeProperty("--aspect-ratio");return}let s=Math.round(r/e*100)/100;s&&(i.classList.add("ratio-portrait"),i.style.setProperty("--aspect-ratio",s.toString()))}finally{c.delete(t)}},120))}var o=class i extends d{static _findOwnIframe(e){return Array.prototype.find.call(document.querySelectorAll("lcl-iframe-embed iframe"),t=>t.contentWindow===e.source)}static _handleResizeMessage(e){let t=e.data;if(typeof t=="string")try{t=JSON.parse(t)}catch{return}if(!t)return;let r=i._findOwnIframe(e);if(r){if(t.location&&t.ratio){r.clientWidth>0&&n(r,Math.round(r.clientWidth*t.ratio));return}t.height&&(n(r,t.height),u(r,t.height))}}get _iframe(){return this._element.querySelector("iframe")}get source(){return this._withProviderParams(this._iframe.dataset.src||this._iframe.src)}_withProviderParams(e){let{darkModeParameter:t,darkModeValues:r}=this._element.dataset;if(!t)return e;let s=r.split(",")[0],m=r.split(",")[1],a;try{a=new URL(e)}catch{return e}let f=!!document.querySelector("#storytelling-switch-article-color-scheme:not(:checked)"),h=l()||f;return a.searchParams.set(t,h?s:m),a.toString()}_activate(){super._activate();let e=this.source;e!==this._iframe.src&&(this._iframe.src=e)}};window.addEventListener("message",o._handleResizeMessage);export{o as default};
2//# sourceMappingURL=iframe-embed-module-TAQETVLN.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.