PageSourceSearch

https://assets.worldstar.com/production/f2180f3c9170665840d513a5a2…/static/chunks/8606.33b5d15ca0f55777.js

js worldstar.com collected 2026-10-03 19:49:00 UTC 6,740 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8606],{8606:(e,t,o)=>{o.r(t),o.d(t,{default:()=>x});var s=o(37876),r=o(49096),a=o.n(r),n=o(14232);let d=(0,n.createContext)({spotId:null}),i=({authentication:e})=>((e=>{let{userId:t,performBEDHandshakeCallback:o,onUserChanged:s,onError:r}=e;(0,n.useEffect)(()=>{t&&o?(({performBEDHandshakeCallback:e,userId:t})=>new Promise((o,s)=>{let r=async()=>{let r=async(t,o)=>{try{let s=await e(t);s&&await o(s)}catch(e){throw console.error("startTTH - error with performBEDHandshakeCallback",e),e}};try{if(window?.SPOTIM?.startTTH){let e=await window.SPOTIM.startTTH({callback:r,userId:t});return void o(e)}throw Error("startTTH - window.SPOTIM.startTTH is not visible on window")}catch(e){console.error("startTTH - client side start sso failed with",e),s(e)}};if(window?.SPOTIM?.startTTH)r();else{let e=async()=>{r(),document.removeEventListener("spot-im-api-ready",e)};document.addEventListener("spot-im-api-ready",e,!1)}}))({performBEDHandshakeCallback:o,userId:t}).then(s).catch(r):new Promise((e,t)=>{let o=async()=>{try{if(window.SPOTIM&&window.SPOTIM.logout){let t=await window.SPOTIM.logout();return void e(t)}throw Error("logout TTH  - window.SPOTIM.logout is not visible on window")}catch(e){console.error("logout TTH - logout failed",e),t(e)}};if(window.SPOTIM&&window.SPOTIM.logout)o();else{let e=async()=>{o(),document.removeEventListener("spot-im-api-ready",e)};document.addEventListener("spot-im-api-ready",e,!1)}}).then(s).catch(r)},[t])})(e),null),l=({spotId:e,children:t,...o})=>{var r;let a=((e=e=>e)=>e((0,n.useContext)(d)))(),i=e||a.spotId;return i?(r={...a,...o,spotId:i},(0,n.useEffect)(()=>{(({spotId:e,hostEl:t,autoRun:o=!1,onLoad:s=()=>{},onError:r=()=>{},...a})=>{if(document.querySelector('script[data-spotim-module="spotim-launcher"]'))return;let n=t||document.body,d=document.createElement("script");d.src=`https://launcher.spot.im/spot/${e}`,d.async=!0,d.onload=s,d.onerror=r,d.dataset.spotimModule="spotim-launcher",d.dataset.spotimAutorun=String(o),Object.entries(a).forEach(([e,t])=>{t&&(d.dataset[e]=String(t))}),n.appendChild(d)})(r)},[]),(0,s.jsx)(s.Fragment,{children:t})):(document.dispatchEvent(new CustomEvent("ow-event",{detail:{type:"error",payload:{msg:"[OpenWeb] Couldn't find spot-id for OpenWeb products."}}})),null)},c=({spotId:e,authentication:t,tracking:o={},children:r})=>((0,n.useEffect)(()=>((e={})=>{let t=t=>{let{type:o}=t.detail;e[o]?.(t)};return document.addEventListener("ow-sdk-event",t),()=>document.removeEventListener("ow-sdk-event",t)})(o),[o]),(0,s.jsxs)(d.Provider,{value:{spotId:e},children:[!!t&&(0,s.jsx)(i,{authentication:t}),(0,s.jsx)(l,{children:r})]})),p=({spotId:e,postId:t,postUrl:o,articleTags:r,socialReviews:a,theme:n,authorId:d,scrollToComment:i,scrollToReply:c,...p})=>{let u=r?Array.isArray(r)?r.join(","):r:null;return(0,s.jsx)(l,{spotId:e,children:(0,s.jsx)("div",{...p,"data-spotim-module":"conversation","data-post-id":t,"data-post-url":o,"data-article-tags":u,"data-social-reviews":a,"data-theme":n,"data-author-id":d,"data-spot-im-scroll-to-comment":i,"data-spot-im-scroll-to-reply":c})})};var u=o(17754),m=o(33793),h=o(63261),w=o(97964),b=o(5068);let x=e=>{var t;let{setShowDisqus:o}=e,{videoData:r}=(0,u.s)();(()=>{let e=(0,w.Z)(),t=null==e?void 0:e.user;(0,n.useEffect)(()=>{t&&!t.isAnonymous&&(async()=>{await new Promise(e=>{var t;if(null==(t=window.SPOTIM)?void 0:t.startTTH)e();else{let t=()=>{var o;(null==(o=window.SPOTIM)?void 0:o.startTTH)&&(document.removeEventListener("spot-im-api-ready",t),e())};document.addEventListener("spot-im-api-ready",t)}});try{await window.SPOTIM.startTTH({userId:t.uid,callback:async(e,o)=>{try{let s=await t.getIdToken(),r=await b.A.post("https://api-mobile.worldstar.com/auth/openweb/sso",{code_a:e},{headers:{Session_token:s}});if(r.data.success&&r.data.code_b)o(r.data.code_b);else throw console.error("SSO handshake failed - response:",r.data),Error("SSO handshake failed: ".concat(JSON.stringify(r.data)))}catch(e){throw console.error("SSO handshake error:",e),e}}})}catch(e){console.error("OpenWeb SSO initialization error:",e)}})()},[t])})();let d="sp_f6NxHUDT",i=(null==r||null==(t=r.videoUniqueId)?void 0:t.toString())||(null==r?void 0:r.encryptedVCode)||"",l=window.location.href;return((0,n.useEffect)(()=>
1{if(!r)return;let e=e=>{var t;if(!e.target.closest("#comments"))return;let o=e.composedPath().find(e=>"BUTTON"===e.tagName);if(!o)return;let s=(null==(t=o.textContent)?void 0:t.toLowerCase())||"";(s.includes("log in")||s.includes("sign up"))&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),window.location.href="/signup-options")};return window.addEventListener("click",e,!0),()=>{window.removeEventListener("click",e,!0)}},[r]),r)?(d||console.error("OpenWeb: Missing spotId. Set NEXT_PUBLIC_OPENWEB_SPOT_ID in config/.env.local"),i||console.error("OpenWeb: Missing postId from video data"),(0,s.jsxs)("div",{className:"jsx-e10d121c17db1bbc w-full h-full box-border px-6",children:[(0,s.jsx)(a(),{id:"e10d121c17db1bbc",children:'[data-spotim-module="conversation"]{background:white;border-radius:5px}#comments{padding:0}'}),(0,s.jsxs)("button",{type:"button",onClick:()=>o(!1),className:"jsx-e10d121c17db1bbc flex items-center",children:[(0,s.jsx)("div",{className:"jsx-e10d121c17db1bbc pr-2 py-3",children:(0,s.jsx)("svg",{width:"14",height:"28",viewBox:"0 0 9 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"jsx-e10d121c17db1bbc",children:(0,s.jsx)("path",{d:"M8.1001 1.1001L1.9001 7.2519L8.1001 13.1001",stroke:"white",strokeWidth:"1.5",className:"jsx-e10d121c17db1bbc"})})}),(0,s.jsx)("div",{className:"jsx-e10d121c17db1bbc space-x-1 font-bold text-xl text-white",children:"Post"})]}),(0,s.jsx)("h1",{className:"jsx-e10d121c17db1bbc space-x-1 px-7 font-bold text-xl text-white",children:r.title+" Comments"}),(0,s.jsx)("h2",{className:"jsx-e10d121c17db1bbc px-7 py-3 text-white",children:(0,h.Ay)(r.description)}),(0,s.jsx)(m.A,{}),(0,s.jsx)("div",{className:"jsx-e10d121c17db1bbc w-full content-center bg-black",children:(0,s.jsx)("div",{id:"comments",className:"jsx-e10d121c17db1bbc p-8 bg-black text-white max-h-screen overflow-y-auto",children:d&&i?(0,s.jsx)(c,{spotId:d,children:(0,s.jsx)(p,{spotId:d,postId:i,postUrl:l,articleTags:r.tags.map(e=>e.tagName)})}):(0,s.jsxs)("div",{className:"jsx-e10d121c17db1bbc text-center text-gray-400 py-8",children:[(0,s.jsx)("p",{className:"jsx-e10d121c17db1bbc",children:"Comments are currently unavailable."}),!d&&(0,s.jsx)("p",{className:"jsx-e10d121c17db1bbc text-sm mt-2",children:"OpenWeb integration needs configuration."}),!i&&(0,s.jsx)("p",{className:"jsx-e10d121c17db1bbc text-sm mt-2",children:"Video ID is missing."})]})})})]})):null}}}]);

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.