1import{Component}from"@theme/component";class TestAblaufComponent extends Component{togglePanel(event){const next=this.dataset.expanded==="false";this.dataset.expanded=String(next),event.target instanceof HTMLButtonElement&&event.target.setAttribute("aria-expanded",String(next))}}customElements.get("test-ablauf-component")||customElements.define("test-ablauf-component",TestAblaufComponent);function buildEmbedUrl(raw){if(!raw)return null;let url;try{url=new URL(raw)}catch{return null}const host=url.hostname.replace(/^www\.|^m\./,"");if(host==="youtu.be"){const id=url.pathname.split("/").filter(Boolean)[0];return id?`https://www.youtube.com/embed/${id}?autoplay=1&rel=0`:null}if(host==="youtube.com"||host==="youtube-nocookie.com"){let id=url.searchParams.get("v");if(!id){const match=url.pathname.match(/\/(?:embed|shorts|v)\/([^/?#]+)/);match&&(id=match[1])}return id?`https://www.youtube.com/embed/${id}?autoplay=1&rel=0`:null}if(host==="vimeo.com"){const id=url.pathname.split("/").filter(Boolean).pop();return id&&/^\d+$/.test(id)?`https://player.vimeo.com/video/${id}?autoplay=1`:null}return host==="player.vimeo.com"?raw:null}class TestAblaufVideo extends Component{requiredRefs=["frame"];#dialog=null;connectedCallback(){super.connectedCallback(),this.#dialog=this.closest("dialog-component"),this.#dialog&&(this.#dialog.addEventListener("dialog:open",this.#mount),this.#dialog.addEventListener("dialog:close",this.#unmount))}disconnectedCallback(){super.disconnectedCallback(),this.#dialog&&(this.#dialog.removeEventListener("dialog:open",this.#mount),this.#dialog.removeEventListener("dialog:close",this.#unmount))}#mount=()=>{const embed=buildEmbedUrl(this.dataset.videoUrl??"");if(!embed)return;const iframe=document.createElement("iframe");iframe.src=embed,iframe.allow="autoplay; encrypted-media; picture-in-picture",iframe.allowFullscreen=!0,iframe.title=this.dataset.videoTitle??"",this.refs.frame.replaceChildren(iframe)};#unmount=()=>{this.refs.frame.replaceChildren()}}customElements.get("test-ablauf-video")||customElements.define("test-ablauf-video",TestAblaufVideo); 2//# sourceMappingURL=/cdn/shop/t/19/assets/test-ablauf.js.map?v=139724747298575153911790838923
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.