PageSourceSearch

https://www.vinci-autoroutes.com/reactPlayerSpotify-586c547c05e6ab759dca.js

js vinci-autoroutes.com collected 2026-09-24 15:35:02 UTC 7,955 bytes, 2 lines download raw bytes

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

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.