PageSourceSearch

https://www.victoriassecret.com/assets/m6558-avAhhUxTTXulCorAUtEdCg/desktop/reactPlayerTiktok.js

js victoriassecret.com collected 2026-09-24 08:32:25 UTC 9,735 bytes, 3 lines download raw bytes

1/*! For license information please see reactPlayerTiktok.js.LICENSE.txt */
2try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5745997a-9f03-4a1c-a75d-89f9f069bcd5",e._sentryDebugIdIdentifier="sentry-dbid-5745997a-9f03-4a1c-a75d-89f9f069bcd5")}()}catch(e){}!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var o in n)n.hasOwnProperty(o)&&(e[o]=n[o])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:fewd-flagship":!0})}(),("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"flagship-m6558"},(self.webpackChunk_vsdp_flagship=self.webpackChunk_vsdp_flagship||[]).push([[8085],{48749:(e,t,n)=>{n.r(t),n.d(t,{default:()=>U});var o=n(78090);function i(e,t,n){s(e,t),t.set(e,n)}function s(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function r(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t,n){return e.set(u(e,t),n),n}function l(e,t){return e.get(u(e,t))}function u(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const c=/tiktok\.com\/(?:player\/v1\/|share\/video\/|@[^/]+\/video\/)([0-9]+)/,d={INIT:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3},h={[d.INIT]:"emptied",[d.PAUSED]:"pause",[d.ENDED]:"ended",[d.PLAYING]:"play",[d.BUFFERING]:"waiting"};function f(e,t={}){const n={src:p(e,t),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; autoplay; fullscreen; encrypted-media; gyroscope; picture-in-picture"};return t.config&&(n["data-config"]=JSON.stringify(t.config)),`\n    <style>\n      :host {\n        display:inline-block;\n        min-width: 300px;\n        min-height: 150px;\n        position: relative;\n      }\n      iframe {\n        position:absolute;\n        top:0;\n        left:0;\n        width:100%;\n        height:100%;\n        border:0;\n      }\n    </style>\n    <iframe ${function(e){let t="";for(const n in e){const o=e[n];t+=""===o?` ${P(n)}`:` ${P(n)}="${P(`${o}`)}"`}return t}(n)} title="TikTok video"></iframe>\n  `}function p(e,t={}){if(!e.src)return;const n=e.src.match(c);return`https://www.tiktok.com/player/v1/${n&&n[1]}?${function(e){return String(new URLSearchParams(function(e){let t={};for(let n in e){let o=e[n];!0===o||""===o?t[n]=1:!1===o?t[n]=0:null!=o&&(t[n]=o)}return t}(e)))}({controls:""===e.controls?null:0,autoplay:e.autoplay,muted:e.muted,loop:e.loop,rel:0,...t.config})}`}var m=new WeakMap,v=new WeakMap,g=new WeakMap,w=new WeakMap,y=new WeakMap,b=new WeakMap,k=new WeakMap,E=new WeakMap,T=new WeakMap,M=new WeakMap,C=new WeakSet;class L extends(globalThis.HTMLElement??class{}){static get observedAttributes(){return["src","controls","loop","autoplay","muted"]}constructor(){var e;super(),s(this,e=C),e.add(this),r(this,"loadComplete",new W),i(this,m,void 0),i(this,v,void 0),i(this,g,!1),i(this,w,0),i(this,y,!0),i(this,b,null),i(this,k,100),i(this,E,0),i(this,T,void 0),i(this,M,(e=>{var t;if(e.source!==(null==(t=l(T,this))?void 0:t.contentWindow))return;const n=e.data;if(null==n?void 0:n["x-tiktok-player"])switch(n.type){case"onPlayerReady":this.loadComplete.resolve();break;case"onStateChange":{a(y,this,[d.INIT,d.PAUSED,d.ENDED].includes(n.value));const e=h[n.value];e&&this.dispatchEvent(new Event(e));break}case"onCurrentTime":a(w,this,n.value.currentTime),a(E,this,n.value.duration),this.dispatchEvent(new Event("durationchange")),this.dispatchEvent(new Event("timeupdate"));break;case"onVolumeChange":a(k,this,n.value),this.dispatchEvent(new Event("volumechange"));break;
2case"onMute":a(g,this,!!n.value),a(k,this,n.value?0:l(k,this)),this.dispatchEvent(new Event("volumechange"));break;case"onError":this.dispatchEvent(new Event("error"));break;default:console.warn("Unhandled TikTok player message:",n)}})),u(C,this,R).call(this,"config")}async load(){if(l(m,this))return;this.shadowRoot||this.attachShadow(L.shadowRootOptions);const e=!l(v,this);if(l(v,this)&&(this.loadComplete=new W),a(v,this,!0),await a(m,this,Promise.resolve()),a(m,this,null),a(w,this,0),a(g,this,!1),a(y,this,!0),!this.src)return this.shadowRoot.innerHTML="",void globalThis.removeEventListener("message",l(M,this));let t=this.shadowRoot.querySelector("iframe");const n=function(e){let t={};for(let n of e)t[n.name]=n.value;return t}(this.attributes);e&&t&&a(b,this,JSON.parse(t.getAttribute("data-config")||"{}")),(null==t?void 0:t.src)&&t.src===p(n,this)||(this.shadowRoot.innerHTML=f(n,this),t=this.shadowRoot.querySelector("iframe")),a(T,this,t),globalThis.addEventListener("message",l(M,this))}async attributeChangedCallback(e,t,n){if(t!==n)switch(e){case"muted":await this.loadComplete,this.muted=null!=n;break;case"autoplay":case"controls":case"loop":case"src":return void this.load()}}get config(){return l(b,this)}set config(e){a(b,this,e)}async play(){await this.loadComplete,u(C,this,N).call(this,"play")}async pause(){await this.loadComplete,u(C,this,N).call(this,"pause")}get volume(){return l(k,this)/100}set volume(e){console.warn("Volume control is not supported for TikTok videos.")}get currentTime(){return l(w,this)}set currentTime(e){u(C,this,S).call(this,e)}get muted(){return l(g,this)}set muted(e){a(g,this,e),e?u(C,this,A).call(this):u(C,this,I).call(this)}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(e){this.toggleAttribute("muted",!!e)}get paused(){return l(y,this)}get duration(){return l(E,this)}get src(){return this.getAttribute("src")}set src(e){this.setAttribute("src",e??"")}}function N(e,t){var n;if(!(null==(n=l(T,this))?void 0:n.contentWindow))return;const o={"x-tiktok-player":!0,type:e,...void 0!==t?{value:t}:{}};l(T,this).contentWindow.postMessage(o,"*")}async function S(e){await this.loadComplete,u(C,this,N).call(this,"seekTo",Number(e))}async function A(){await this.loadComplete,u(C,this,N).call(this,"mute")}async function I(){await this.loadComplete,u(C,this,N).call(this,"unMute")}function R(e){if(Object.prototype.hasOwnProperty.call(this,e)){const t=this[e];delete this[e],this[e]=t}}r(L,"getTemplateHTML",f),r(L,"shadowRootOptions",{mode:"open"});class W extends Promise{constructor(e=()=>{}){let t,n;super(((o,i)=>{e(o,i),t=o,n=i})),this.resolve=t,this.reject=n}}function P(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/`/g,"&#x60;")}globalThis.customElements&&!globalThis.customElements.get("tiktok-video")&&globalThis.customElements.define("tiktok-video",L);var _=L,D=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),H={className:"class",htmlFor:"for"};function O(e){return e.toLowerCase()}function j(e){return"boolean"==typeof e?e?"":void 0:"function"==typeof e||"object"==typeof e&&null!==e?void 0:e}function x(e,t,n){var o;e[t]=n,null==n&&t in((null==(o=globalThis.HTMLElement)?void 0:o.prototype)??{})&&e.removeAttribute(t)}var U=function({react:e,tagName:t,elementClass:n,events:o,displayName:i,defaultProps:s,toAttributeName:r=O,toAttributeValue:a=j}){const l=Number.parseInt(e.version)>=19,u=e.forwardRef(((i,u)=>{var c,d;const h=e.useRef(null),f=e.useRef(new Map),p={},m={},v={},g={};for(const[e,t]of Object.entries(i)){if(D.has(e)){v[e]=t;continue}const o=r(H[e]??e);if(n.prototype&&e in n.prototype&&!(e in((null==(c=globalThis.HTMLElement)?void 0:c.prototype)??{}))&&!(null==(d=n.observedAttributes)?void 0:d.some((e=>e===o)))){g[e]=t;continue}if(e.startsWith("on")){p[e]=t;continue}const i=a(t);if(o&&null!=i&&(m[o]=String(i),l||(v[o]=i)),o&&l){const e=j(t);v[o]=i!==e?i:t}}if("undefined"!=typeof window){for(const t in p){const n=p[t],i=t.endsWith("Capture"),s=((null==o?void 0:o[t])??t.slice(2).toLowerCase()).slice(0,i?-7:void 0);e.useLayoutEffect((()=>{const e=null==h?void 0:h.current;if(e&&"function"==typeof n)return e.addEventListener(s,n,i),()=>{e.removeEventListener(s,n,i)}}),[null==h?void 0:h.current,n])}e.useLayoutEffect((()=>
2{if(null===h.current)return;const e=new Map;for(const t in g)x(h.current,t,g[t]),f.current.delete(t),e.set(t,g[t]);for(const[e,t]of f.current)x(h.current,e,void 0);f.current=e}))}if("undefined"==typeof window&&(null==n?void 0:n.getTemplateHTML)&&(null==n?void 0:n.shadowRootOptions)){const{mode:t,delegatesFocus:o}=n.shadowRootOptions,s=e.createElement("template",{shadowrootmode:t,shadowrootdelegatesfocus:o,dangerouslySetInnerHTML:{__html:n.getTemplateHTML(m,i)}});v.children=[s,v.children]}return e.createElement(t,{...s,...v,ref:e.useCallback((e=>{h.current=e,"function"==typeof u?u(e):null!==u&&(u.current=e)}),[u])})}));return u.displayName=i??n.name,u}({react:o,tagName:"tiktok-video",elementClass:_,toAttributeName:e=>"muted"===e?"":"defaultMuted"===e?"muted":O(e)})}}]);
3//# sourceMappingURL=reactPlayerTiktok.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.