PageSourceSearch

https://www.swk.de/geschaeftskunden/_next/static/chunks/reactPlayerYouTube.1228868fdd50fcbd.js

js swk.de collected 2026-09-24 10:13:49 UTC 14,170 bytes, 17 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8446],{77744:(e,t,i)=>{function n(e){return class extends e{_playedRanges=[];_currentPlayedRange=null;_RANGE_EPSILON=.5;_seeking=!1;connectedCallback(){super.connectedCallback&&super.connectedCallback(),this.addEventListener("play",()=>this.onPlaybackStart({time:this.currentTime})),this.addEventListener("pause",()=>this.onPlaybackStop({time:this.currentTime})),this.addEventListener("ended",()=>this.onPlaybackStop({time:this.currentTime})),this.addEventListener("seeking",()=>this.onSeeking()),this.addEventListener("seeked",()=>this.onSeeked({time:this.currentTime}))}onPlaybackStart(e={}){this._seeking=!1;let{time:t}=e,i="number"==typeof t?t:this.currentTime;this._currentPlayedRange||(this._currentPlayedRange={start:i,end:i})}onSeeking(){this._seeking=!0,this._commitCurrentRange()}onSeeked(e={}){this._seeking=!1;let{time:t}=e,i="number"==typeof t?t:this.currentTime;this._currentPlayedRange={start:i,end:i}}onPlaybackStop(e={}){let{time:t}=e,i="number"==typeof t?t:this.currentTime;this._commitCurrentRange(i)}_commitCurrentRange(e){if(!this._currentPlayedRange)return;"number"==typeof e&&(this._currentPlayedRange.end=e);let{start:t,end:i}=this._currentPlayedRange;this._currentPlayedRange=null,this.addPlayedRange(t,i)}addPlayedRange(e,t){if(e>=t)return;let i=this._RANGE_EPSILON,n=[...this._playedRanges,{start:e,end:t}];n.sort((e,t)=>e.start-t.start);let s=[];for(let e of n){if(!s.length){s.push({...e});continue}let t=s[s.length-1];e.start<=t.end+i?(t.start=Math.min(t.start,e.start),t.end=Math.max(t.end,e.end)):s.push({...e})}this._playedRanges=s}get played(){let e=this.currentTime;return(this.paused||this._currentPlayedRange||"number"!=typeof e||(this._currentPlayedRange={start:e,end:e}),this._currentPlayedRange&&"number"==typeof e&&(e>this._currentPlayedRange.end&&(this._currentPlayedRange.end=e),this.addPlayedRange(this._currentPlayedRange.start,this._currentPlayedRange.end)),this._playedRanges.length)?s(this._playedRanges.map(e=>[e.start,e.end])):s([[0,0]])}}}function s(e){return Object.defineProperties(e,{start:{value:t=>e[t][0]},end:{value:t=>e[t][1]}}),e}i.d(t,{j:()=>n})},96394:(e,t,i)=>{i.r(t),i.d(t,{default:()=>T});var n=i(29168),s=i(77744);let a=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})/,r=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/.*?[?&]list=)([\w_-]+)/;function l(e,t={}){var i;let n={src:o(e,t),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return(null==(i=t.config)?void 0:i.referrerpolicy)&&(n.referrerpolicy=t.config.referrerpolicy),t.config&&(n["data-config"]=JSON.stringify(t.config)),`
2    <style>
3      :host {
4        display: inline-block;
5        line-height: 0;
6        position: relative;
7        min-width: 300px;
8        min-height: 150px;
9      }
10      iframe {
11        position: absolute;
12        top: 0;
13        left: 0;
14      }
15    </style>
16    <iframe${function(e){let t="";for(let i in e){let n=e[i];""===n?t+=` ${d(i)}`:t+=` ${d(i)}="${d(`${n}`)}"`}return t}(n)}></iframe>
17  `}function o(e,t){if(!e.src)return;let i=e.src.includes("-nocookie")?"https://www.youtube-nocookie.com/embed":"https://www.youtube.com/embed",n={controls:""===e.controls?null:0,autoplay:e.autoplay,loop:e.loop,mute:e.muted,playsinline:e.playsinline,preload:e.preload??"metadata",enablejsapi:1,cc_load_policy:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1,start:function(e){if(!e)return;let t=e.match(/[?&]t=([\dms]+)/i);if(!t)return;let i=t[1].toLowerCase(),n=0,s=!1,a=i.match(/(\d+)m/);a&&(n+=60*parseInt(a[1],10),s=!0);let r=i.match(/(\d+)s?$/);return r&&(n+=parseInt(r[1],10),s=!0),s?n:void 0}(e.src),...t.config};if(a.test(e.src)){let t=e.src.match(a),s=t&&t[1];return`${i}/${s}?${h(n)}`}let s=e.src.match(r),l={listType:"playlist",list:s&&s[1],...n};return`${i}?${h(l)}`}class u extends(0,s.j)(globalThis.HTMLElement??class{}){static getTemplateHTML=l;static shadowRootOptions={mode:"open"};static observedAttributes=["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src"];loadComplete=new m;#e;#t;#i=0;#n=!1;#s;isLoaded=!1;#a=null;#r=null;#l=null;#o=1;constructor(){super(),this.#u("config")}get config(){return this.#r}set config(e){this.#r=e}async load(){let e;if(this.#e)return;this.shadowRoot||this.attachShadow({mode:"open"});let t=!this.#t;this.#t&&(this.loadComplete=new m,this.isLoaded=!1),this.#t=!0,await (this.#e=Promise.resolve()),this.#e=null,this.#i=0,this.dispatchEvent(new Event("emptied"));let i=this.api;if(this.api=null,!this.src){null==i||i.destroy();return}this.#l=document.createElement("video"),this.textTracks=this.#l.textTracks,this.textTracks.addEventListener("change",()=>{var e;let t=Array.from(this.textTracks).find(e=>"showing"===e.mode);null==(e=this.api)||e.setOption("captions","track",t?{languageCode:t.language}:{})}),this.dispatchEvent(new Event("loadstart"));let n=this.shadowRoot.querySelector("iframe"),s=function(e){let t={};for(let i of e)t[i.name]=i.value;return t}(this.attributes);t&&n&&(this.#r=JSON.parse(n.getAttribute("data-config")||"{}")),(null==n?void 0:n.src)&&n.src===o(s,this)||(this.shadowRoot.innerHTML=l(s,this),n=this.shadowRoot.querySelector("iframe"));let a=await p("https://www.youtube.com/iframe_api","YT","onYouTubeIframeAPIReady");this.api=new a.Player(n,{events:{onReady:()=>{var e;this.#i=1,this.dispatchEvent(new Event("loadedmetadata")),this.dispatchEvent(new Event("durationchange")),1!==this.#o&&(null==(e=this.api)||e.setVolume(100*this.#o)),this.dispatchEvent(new Event("volumechange")),this.dispatchEvent(new Event("loadcomplete")),this.isLoaded=!0,this.loadComplete.resolve()},onError:e=>{console.error(e),this.#a={code:e.data,message:`YouTube iframe player error #${e.data}; visit https://developers.google.com/youtube/iframe_api_reference#onError for the full error message.`},this.dispatchEvent(new Event("error"))}}});let r=!1;this.api.addEventListener("onStateChange",e=>{var t;let i=e.data;if((i===a.PlayerState.PLAYING||i===a.PlayerState.BUFFERING)&&(r||(r=!0,this.dispatchEvent(new Event("play"))),(this.api.getOption("captions","tracklist")||[]).forEac
17h(e=>{[...this.textTracks].some(t=>t.language===e.languageCode)||this.#l.addTextTrack("subtitles",e.displayName,e.languageCode),this.textTracks=this.#l.textTracks}),this.dispatchEvent(new Event("loadstart"))),i===a.PlayerState.PLAYING)this.seeking&&(this.#n=!1,null==(t=this.#s)||t.resolve(),this.dispatchEvent(new Event("seeked"))),this.#i=3,this.dispatchEvent(new Event("playing"));else if(i===a.PlayerState.PAUSED){let e=Math.abs(this.currentTime-u);!this.seeking&&e>.1&&(this.#n=!0,this.dispatchEvent(new Event("seeking"))),r=!1,this.dispatchEvent(new Event("pause"))}i===a.PlayerState.ENDED&&(r=!1,this.dispatchEvent(new Event("pause")),this.dispatchEvent(new Event("ended")),this.loop&&this.play())}),this.api.addEventListener("onPlaybackRateChange",()=>{this.dispatchEvent(new Event("ratechange"))}),this.api.addEventListener("onVolumeChange",()=>{var e;let t=(null==(e=this.api)?void 0:e.getVolume())/100;this.#o=t,this.dispatchEvent(new Event("volumechange"))}),this.api.addEventListener("onVideoProgress",()=>{this.dispatchEvent(new Event("timeupdate"))}),await this.loadComplete;let u=0;setInterval(()=>{var e;let t=Math.abs(this.currentTime-u),i=this.buffered.end(this.buffered.length-1);this.seeking&&i>.1?(this.#n=!1,null==(e=this.#s)||e.resolve(),this.dispatchEvent(new Event("seeked"))):!this.seeking&&t>.1&&(this.#n=!0,this.dispatchEvent(new Event("seeking"))),u=this.currentTime},50);let d=setInterval(()=>{let t=this.buffered.end(this.buffered.length-1);t>=this.duration&&(clearInterval(d),this.#i=4),e!=t&&(e=t,this.dispatchEvent(new Event("progress")))},100)}async attributeChangedCallback(e,t,i){if(t!==i)switch(e){case"src":case"autoplay":case"controls":case"loop":case"playsinline":this.load()}}async play(){var e,t,i;return this.#s=null,await this.loadComplete,null==(e=this.api)||e.playVideo(),t=this,(i=(e,i)=>{let n;t.addEventListener(e,n=()=>{t.removeEventListener(e,n),i()})},(...e)=>new Promise(t=>{i(...e,(...e)=>{e.length>1?t(e):t(e[0])})}))("playing")}async pause(){var e;return await this.loadComplete,null==(e=this.api)?void 0:e.pauseVideo()}get seeking(){return this.#n}get readyState(){return this.#i}get src(){return this.getAttribute("src")}set src(e){this.src!=e&&this.setAttribute("src",e)}get error(){return this.#a}get paused(){var e,t;return this.isLoaded?[-1,0,2,5].includes(null==(t=null==(e=this.api)?void 0:e.getPlayerState)?void 0:t.call(e)):!this.autoplay}get duration(){var e,t;return(null==(t=null==(e=this.api)?void 0:e.getDuration)?void 0:t.call(e))??NaN}get autoplay(){return this.hasAttribute("autoplay")}set autoplay(e){this.autoplay!=e&&this.toggleAttribute("autoplay",!!e)}get buffered(){var e,t;if(!this.isLoaded)return v();let i=(null==(e=this.api)?void 0:e.getVideoLoadedFraction())*(null==(t=this.api)?void 0:t.getDuration());return i>0?v(0,i):v()}get controls(){return this.hasAttribute("controls")}set controls(e){this.controls!=e&&this.toggleAttribute("controls",!!e)}get currentTime(){var e,t;return(null==(t=null==(e=this.api)?void 0:e.getCurrentTime)?void 0:t.call(e))??0}set currentTime(e){this.currentTime!=e&&(this.#s=new m,this.loadComplete.then(()=>{var t,i;null==(t=this.api)||t.seekTo(e,!0),this.paused&&(null==(i=this.#s)||i.then(()=>{var e;this.#s&&(null==(e=this.api)||e.pauseVideo())}))}))}set defaultMuted(e){this.defaultMuted!=e&&this.toggleAttribute("muted",!!e)}get defaultMuted(){return this.hasAttribute("muted")}get loop(){return this.hasAttribute("loop")}set loop(e){this.loop!=e&&this.toggleAttribute("loop",!!e)}set muted(e){this.muted!=e&&this.loadComplete.then(()=>{var t,i;e?null==(t=this.api)||t.mute():null==(i=this.api)||i.unMute()})}get muted(){var e,t;return this.isLoaded?null==(t=null==(e=this.api)?void 0:e.isMuted)?void 0:t.call(e):this.defaultMuted}get playbackRate(){var e,t;return(null==(t=null==(e=this.api)?void 0:e.getPlaybackRate)?void 0:t.call(e))??1}set playbackRate(e){this.playbackRate!=e&&this.loadComplete.then(()=>{var t;null==(t=this.api)||t.setPlaybackRate(e)})}get playsInline(){return this.hasAttribute("playsinline")}set playsInline(e){this.playsInline!=e&&this.toggleAttribute("playsinline",!!e)}get poster(){return this.getAttribute("poster")}set poster(e){this.poster!=e&&this.setAttribute("poster",`${e}`)}set volume(e){this.volume!=e&&(this.#o=e,this.loadComplete.then(()=>{var t;null==(t=this.api)||t.setVolume(100*e)}))}get volume(){var e;return this.isLoaded?(null==(e=this.api)?void 0:e.getVolume())/100:this.#o}#u(e){if(Object.prototype.hasOwnProperty.call(this,e)){let t=this[e];delete this[e],this[e]=t}}}function d(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/`/g,"&#x60;")}function h(e){return String(new URLSearchParams(function(e){let t={};for(let i in e){let n=e[i];!0===n||""===n?t[i]=1:!1===n?t[i]=0:null!=n&&(t[i]=n)}return t}(e)))}let c={};async function p(e,t,i){return c[e]?c[e]:t&&self[t]?(await g(0),self[t]):c[e]=new Promise(function(n,s){let a=document.createElement("script");a.src=e;let r=()=>n(self[t]);i&&(self[i]=r),a.onload=()=>!i&&r(),a.onerror=s,document.head.append(a)})}let g=e=>new Promise(t=>setTimeout(t,e));class m extends Promise{constructor(e=()=>{}){let t,i;super((n,s)=>{e(n,s),t=n,i=s}),this.resolve=t,this.reject=i}}function v(e,t){return Array.isArray(e)?y(e):null==e||null==t||0===e&&0===t?y([[0,0]]):y([[e,t]])}function y(e){return Object.defineProperties(e,{start:{value:t=>e[t][0]},end:{value:t=>e[t][1]}}),e}globalThis.customElements&&!globalThis.customElements.get("youtube-video")&&globalThis.customElements.define("youtube-video",u);var f=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),b={className:"class",htmlFor:"for"};function E(e){return e.toLowerCase()}function w(e){return"boolean"==typeof e?e?"":void 0:"function"==typeof e?void 0:"object"!=typeof e||null===e?e:void 0}function k(e,t,i){var n,s;e[t]=i,null==i&&t in(null!=(s=null==(n=globalThis.HTMLElement)?void 0:n.prototype)?s:{})&&e.removeAttribute(t)}var T=function(e){let{react:t,tagName:i,elementClass:n,events:s,displayName:a,defaultProps:r,toAttributeName:l=E,toAttributeValue:o=w}=e,u=Number.parseInt(t.version)>=19,d=t.forwardRef((e,a)=>{var d,h,c,p,g;let m=t.useRef(null),v=t.useRef(new Map),y={},E={},T={},R={};for(let[t,i]of Object.entries(e)){if(f.has(t)){T[t]=i;continue}let e=l(null!=(c=b[t])?c:t);if(n.prototype&&t in n.prototype&&!(t in(null!=(p=null==(d=globalThis.HTMLElement)?void 0:d.prototype)?p:{}))&&!(null==(h=n.observedAttributes)?void 0:h.some(t=>t===e))){R[t]=i;continue}if(t.startsWith("on")){y[t]=i;continue}let s=o(i);e&&null!=s&&(E[e]=String(s),u||(T[e]=s)),e&&u&&(s!==w(i)?T[e]=s:T[e]=i)}if("undefined"!=typeof window){for(let e in y){let i=y[e],n=e.endsWith("Capture"),a=(null!=(g=null==s?void 0:s[e])?g:e.slice(2).toLowerCase()).slice(0,n?-7:void 0);t.useLayoutEffect(()=>{let e=null==m?void 0:m.current;if(e&&"function"==typeof i)return e.addEventListener(a,i,n),()=>{e.removeEventListener(a,i,n)}},[null==m?void 0:m.current,i])}t.useLayoutEffect(()=>{if(null===m.current)return;let e=new Map;for(let t in R)k(m.current,t,R[t]),v.current.delete(t),e.set(t,R[t]);for(let[e,t]of v.current)k(m.current,e,void 0);v.current=e})}if("undefined"==typeof window&&(null==n?void 0:n.getTemplateHTML)&&(null==n?void 0:n.shadowRootOptions)){let{mode:i,delegatesFocus:s}=n.shadowRootOptions;T.children=[t.createElement("template",{shadowrootmode:i,shadowrootdelegatesfocus:s,dangerouslySetInnerHTML:{__html:n.getTemplateHTML(E,e)},key:"ce-la-react-ssr-template-shadow-root"}),T.children]}return t.createElement(i,{...r,...T,ref:t.useCallback(e=>{m.current=e,"function"==typeof a?a(e):null!==a&&(a.current=e)},[a])},T.children)});return d.displayName=null!=a?a:n.name,d}({react:n,tagName:"youtube-video",elementClass:u,toAttributeName:e=>"muted"===e?"":"defaultMuted"===e?"muted":E(e)})}}]);

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.