PageSourceSearch

https://demo.sonraisecurity.com/_next/static/chunks/reactPlayerSpotify.f839f23ca65e5d69.js

js sonraisecurity.com collected 2026-10-01 11:35:05 UTC 8,134 bytes, 26 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1a9c525b-43be-5aaa-858b-32360d1dc9bf")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2771],{5821:(e,t,i)=>{i.r(t),i.d(t,{default:()=>g});var s=i(55729);let n=/open\.spotify\.com\/(\w+)\/(\w+)/i;function r(e,t={}){let i={src:o(e,t),scrolling:"no",frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return`
4    <style>
5      :host {
6        display: inline-block;
7        min-width: 160px;
8        min-height: 80px;
9        position: relative;
10      }
11      iframe {
12        position: absolute;
13        top: 0;
14        left: 0;
15        width: 100%;
16        height: 100%;
17        overflow: hidden;
18      }
19      :host(:not([controls])) {
20        display: none !important;
21      }
22    </style>
23    <iframe${function(e){let t="";for(let i in e){let s=e[i];""===s?t+=` ${i}`:t+=` ${i}="${s}"`}return t}(i)}></iframe>
24  `}function o(e,t){var i,s,r;if(!e.src)return;let o=e.src.match(n),a=o&&o[1],l=o&&o[2],u={t:null==(i=t.config)?void 0:i.startAt,theme:(null==(s=t.config)?void 0:s.theme)==="dark"?"0":null},d=(null==(r=t.config)?void 0:r.preferVideo)?"/video":"";return`https://open.spotify.com/embed/${a}/${l}${d}?${String(new URLSearchParams(function(e){let t={};for(let i in e){let s=e[i];!0===s||""===s?t[i]=1:!1===s?t[i]=0:null!=s&&(t[i]=s)}return t}(u)))}`}class a extends(globalThis.HTMLElement??class{}){static getTemplateHTML=r;static shadowRootOptions={mode:"open"};static observedAttributes=["controls","loop","src"];loadComplete=new h;#e;#t;#i;#s=!1;#n=!1;#r=!0;#o=0;#a=NaN;#l=!1;#u=null;constructor(){super(),this.#d("config")}async load(){var e,t,i;if(this.#e)return;this.#t&&(this.loadComplete=new h),this.#t=!0,await (this.#e=Promise.resolve()),this.#e=null,this.#s=!1,this.#n=!1,this.#o=0,this.#a=NaN,this.#l=!1,this.dispatchEvent(new Event("emptied"));let s=this.api;if(this.api=null,!this.src)return;this.dispatchEvent(new Event("loadstart"));let n={t:null==(e=this.config)?void 0:e.startAt,theme:(null==(t=this.config)?void 0:t.theme)==="dark"?"0":null,preferVideo:null==(i=this.config)?void 0:i.preferVideo};if(this.#i)this.api=s,this.api.iframeElement.src=o(l(this.attributes),this);else{this.#i=!0,this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=r(l(this.attributes),this));let e=this.shadowRoot.querySelector("iframe"),t=await d("https://open.spotify.com/embed-podcast/iframe-api/v1","SpotifyIframeApi","onSpotifyIframeApiReady");this.api=await new Promise(i=>t.createController(e,n,i)),this.api.iframeElement=e,this.api.addListener("ready",()=>{this.dispatchEvent(new Event("loadedmetadata")),this.dispatchEvent(new Event("durationchange")),this.dispatchEvent(new Event("volumechange"))}),this.api.addListener("playback_update",e=>{if(this.#n&&this.#r&&(e.data.isBuffering||!e.data.isPaused)){this.#n=!1,this.currentTime=1;return}if(e.data.duration/1e3!==this.#a&&(this.#n=!1,this.#a=e.data.duration/1e3,this.dispatchEvent(new Event("durationchange"))),e.data.position/1e3!==this.#o&&(this.#l=!1,this.#n=!1,this.#o=e.data.position/1e3,this.dispatchEvent(new Event("timeupdate"))),!this.#s&&!this.#r&&e.data.isPaused){this.#r=!0,this.dispatchEvent(new Event("pause"));return}if(this.#r&&(e.data.isBuffering||!e.data.isPaused)){this.#r=!1,this.dispatchEvent(new Event("play")),this.#s=e.data.isBuffering,this.#s?this.dispatchEvent(new Event("waiting")):this.dispatchEvent(new Event("playing"));return}if(this.#s&&!e.data.isPaused){this.#s=!1,this.dispatchEvent(new Event("playing"));return}if(!this.paused&&!this.seeking&&!this.#n&&Math.ceil(this.currentTime)>=this.duration){if(this.#n=!0,this.loop){this.currentTime=1;return}this.continuous||(this.pause(),this.dispatchEvent(new Event("ended")));return}})}this.loadComplete.resolve(),await this.loadComplete}async attributeChangedCallback(e,t,i){if(t!==i&&"src"===e)return void this.load()}async play(){var e;return this.#r=!1,this.#s=!0,this.dispatchEvent(new Event("play")),await this.loadComplete,null==(e=this.api)?void 0:e.resume()}async pause(){var e;return await this.loadComplete,null==(e=this.api)?void 0:e.pause()}get config(){return this.#u}set config(e){this.#u=e}get paused(){return this.#r??!0}get muted(){return!1}set muted(e){}get volume(){return 1}set volume(e){}get ended(){return Math.ceil(this.currentTime)>=this.duration}get seeking(){return this.#l}get loop(){return this.hasAttribute("loop")}set loop(e){this.loop!=e&&this.toggleAttribute("loop",!!e)}get currentTime(){return this.#o}set currentTime(e){if(this.currentTime==e)return;this.#l=!0;let t=this.#o;this.#o=e,this.dispatchEvent(new Event("timeupdate")),this.#o=t,this.loadComplete.then(()=>{var t;null==(t=this.api)||t.seek(e)})}get duration(){return this.#a}get src(){return this.getAttribute("src")}set src(e){this.setAttribute("src",`${e}`)}#d(e){if(Object.prototype.hasOwnProperty.call(this,e)){let t=this[e];delete this[e],this[e]=t}}}function l(e){let t={};for(let i of e)t[i.name]=i.value;return t}let u={};async function d(e,t,i){return u[e]?u[e]:t&&self[t]?Promise.resolve(self[t]):u[e]=new Promise(function(t,s){let n=document.createElement("script");n.src=e;let r=e=>t(e);
24i&&(self[i]=r),n.onload=()=>!i&&r(),n.onerror=s,document.head.append(n)})}class h extends Promise{constructor(e=()=>{}){let t,i;super((s,n)=>{e(s,n),t=s,i=n}),this.resolve=t,this.reject=i}}globalThis.customElements&&!globalThis.customElements.get("spotify-audio")&&globalThis.customElements.define("spotify-audio",a);var c=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),p={className:"class",htmlFor:"for"};function f(e){return e.toLowerCase()}function m(e){return"boolean"==typeof e?e?"":void 0:"function"==typeof e?void 0:"object"!=typeof e||null===e?e:void 0}function v(e,t,i){var s;e[t]=i,null==i&&t in((null==(s=globalThis.HTMLElement)?void 0:s.prototype)??{})&&e.removeAttribute(t)}var g=function({react:e,tagName:t,elementClass:i,events:s,displayName:n,defaultProps:r,toAttributeName:o=f,toAttributeValue:a=m}){let l=Number.parseInt(e.version)>=19,u=e.forwardRef((n,u)=>{var d,h;let f=e.useRef(null),g=e.useRef(new Map),w={},E={},y={},T={};for(let[e,t]of Object.entries(n)){if(c.has(e)){y[e]=t;continue}let s=o(p[e]??e);if(i.prototype&&e in i.prototype&&!(e in((null==(d=globalThis.HTMLElement)?void 0:d.prototype)??{}))&&!(null==(h=i.observedAttributes)?void 0:h.some(e=>e===s))){T[e]=t;continue}if(e.startsWith("on")){w[e]=t;continue}let n=a(t);s&&null!=n&&(E[s]=String(n),l||(y[s]=n)),s&&l&&(n!==m(t)?y[s]=n:y[s]=t)}if("undefined"!=typeof window){for(let t in w){let i=w[t],n=t.endsWith("Capture"),r=((null==s?void 0:s[t])??t.slice(2).toLowerCase()).slice(0,n?-7:void 0);e.useLayoutEffect(()=>{let e=null==f?void 0:f.current;if(e&&"function"==typeof i)return e.addEventListener(r,i,n),()=>{e.removeEventListener(r,i,n)}},[null==f?void 0:f.current,i])}e.useLayoutEffect(()=>{if(null===f.current)return;let e=new Map;for(let t in T)v(f.current,t,T[t]),g.current.delete(t),e.set(t,T[t]);for(let[e,t]of g.current)v(f.current,e,void 0);g.current=e})}if("undefined"==typeof window&&(null==i?void 0:i.getTemplateHTML)&&(null==i?void 0:i.shadowRootOptions)){let{mode:t,delegatesFocus:s}=i.shadowRootOptions;y.children=[e.createElement("template",{shadowrootmode:t,shadowrootdelegatesfocus:s,dangerouslySetInnerHTML:{__html:i.getTemplateHTML(E,n)},key:"ce-la-react-ssr-template-shadow-root"}),y.children]}return e.createElement(t,{...r,...y,ref:e.useCallback(e=>{f.current=e,"function"==typeof u?u(e):null!==u&&(u.current=e)},[u])},y.children)});return u.displayName=n??i.name,u}({react:s,tagName:"spotify-audio",elementClass:a,toAttributeName:e=>"muted"===e?"":"defaultMuted"===e?"muted":f(e)})}}]);
25//# sourceMappingURL=reactPlayerSpotify.f839f23ca65e5d69.js.map
26//# debugId=1a9c525b-43be-5aaa-858b-32360d1dc9bf

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.