PageSourceSearch

https://www.trillertv.com/static/assets/v/trl-app-0.4.18-7d9ee56d3/app.js

js trillertv.com collected 2026-10-01 11:29:20 UTC 13,510 bytes, 2 lines download raw bytes

1(function(){"use strict";var e={140:function(e,t,n){n(669),n(3894),n(6909),n(8992);const r=()=>{document.getElementById("js-nav-search")&&Promise.all([n.e(272),n.e(469),n.e(89)]).then(n.bind(n,1287)).then(e=>{e.initApp()})};n(8044),n(7825);class o{constructor(e=null,t=null){this._targetEl=e,this._triggerEl=t,this._visible=!1,this._init()}_init(){this._triggerEl&&this._triggerEl.addEventListener("click",e=>{e.preventDefault(),this.toggle()})}_handleClickOutside(e,t){const n=e.target;n===t||t.contains(n)||this._triggerEl.contains(n)||!this._visible||this.hide(),document.body.removeEventListener("click",this._handleClickOutside,!0)}toggle(){this._visible?(this.hide(),document.body.removeEventListener("click",this._handleClickOutside,!0)):this.show()}show(){this._triggerEl.classList.contains("no-transform")||this._triggerEl.querySelectorAll("svg").forEach(e=>{e.style.transform="rotate(180deg)"}),this._targetEl.classList.remove("hidden"),document.body.addEventListener("click",e=>{this._handleClickOutside(e,this._targetEl)},!0),this._visible=!0}hide(){this._triggerEl.querySelectorAll("svg").forEach(e=>{e.style.transform=null}),this._targetEl.classList.add("hidden"),this._visible=!1}}function i(){document.querySelectorAll("[data-dropdown-toggle]").forEach(e=>{const t=document.getElementById(e.getAttribute("data-dropdown-toggle"));new o(t,e)})}var s=n(3808);n(1340);function c(){const e=new URL(document.location.href),t=e.searchParams?e.searchParams:new URLSearchParams(e.search);t.has("cjevent")&&(0,s.TV)("cjevent",t.get("cjevent")||"",365)}const a=function(e){return e.split("").reduce(function(e,t){return e=(e<<5)-e+t.charCodeAt(0),e&e},0)};function u(){const e=new URL(document.location.href),t=new URLSearchParams,n=["page","categories"];n.forEach(n=>{e.searchParams.get(n)&&t.set(n,e.searchParams.get(n))});let r=e.pathname;t.sort();const o=t.toString();return""!==o&&(r=`${r}?${o}`),r}function l(){const e="fite-up",t=u(),n=a(t),r=(0,s.JT)(document.cookie);let o=[];if(e in r&&(o=JSON.parse(r[e])),!o.includes(n)){o.push(n);const t=new Date;t.setTime(t.getTime()+18e5);const r="; expires="+t.toUTCString();document.cookie=e+"="+encodeURIComponent(JSON.stringify(o))+r+"; SameSite=None; path=/; Secure",window.dataLayer&&window.dataLayer.push({event:"unique_page_view",page_location:location.href,page_referrer:document.referrer})}}n(9967);var d=n(910);const f=60,h=60*f,p=24*h,m=7*p,g=30*p,v=365*p,b=[{unit:"years",symbol:"Y",multiplier:v},{unit:"months",symbol:"M",multiplier:g},{unit:"weeks",symbol:"W",multiplier:m},{unit:"days",symbol:"D",multiplier:p},{unit:"hours",symbol:"H",multiplier:h},{unit:"minutes",symbol:"M",multiplier:f},{unit:"seconds",symbol:"S"}],y=(e,t)=>`((?<${e}>-?\\d*[\\.,]?\\d+)${t})?`,w=new RegExp(["(?<negative>-)?P",y("years","Y"),y("months","M"),y("weeks","W"),y("days","D"),"(T",y("hours","H"),y("minutes","M"),y("seconds","S"),")?"].join(""));function E(e){if(""!==e&&void 0!==e&&null!==e)return parseFloat(e.replace(",","."))}const _=new Error("Invalid duration");function S(e){const t=w.exec(e);if(!t||!t.groups)throw _;let n=!0;const r={};for(const{unit:i}of b)t.groups[i]&&(n=!1,r[i]=E(t.groups[i]));if(n)throw _;const o=r;return t.groups.negative&&(o.negative=!0),o}function j(e){const t=S(e);let n=0;for(const{unit:r,multiplier:o}of b)t[r]&&(n+=o?t[r]*o:t[r]);return n}const k=e=>{const t=document.querySelectorAll(".progress-overlay");if(t)for(const n of t){const t=n.querySelector(".progress-bar");if(n.parentElement&&n.parentElement.dataset.vvid&&t){const r=parseInt(n.parentElement.dataset.vvid),o=parseInt(n.parentElement.dataset.duration||""),i=n.parentElement.dataset.datetime||"";if(r<1||o<1)return;const s=e.filter(e=>{const t=new Date(e.created_at);return e.video_id===r&&e.position>0&&(!i||new Date(i)<t)}).shift();if(s){n.classList.remove("hidden"),n.classList.add("block");const e=Math.round(s.position/o*100);t.style.width=e+"%"}}}},O=()=>{const e=document.querySelector("body");if(!e||!e.dataset.cw||"true"!==e.dataset.cw)return;const t=(0,d.P)("fite.pbp");t?k(t):fetch("/api/_v2/users/me/playbacks/",{credentials:"include"}).then(e=>{if(e.status>=200&&e.status<300)return e.json();throw new Error(e.statusText)}).then(e=>{const t=[];
1return e.forEach(e=>{t.push({video_id:e.video_id,created_at:e.created_at,position:j(e.start_position)})}),(0,d.P)("fite.pbp",t,60),t}).then(k).catch(()=>null)};n(2707);var P=n(3989),A=n(5092);function T(){let e="[email protected]";P.Ts({dsn:"https://[email protected]/6039907",release:e,integrations:[A.dp()],tracesSampleRate:.03,tracePropagationTargets:[/https?:\/\/((www|stats|dev|ims-gw-dev-cf)\.)?trillertv\.com/]})}function C(){const e=document.querySelector("#js-value-prop");if(e&&!(0,s.Hr)("uid",document.cookie)){e.classList.remove("hidden");const t=document.querySelector("main");t&&(t.style.paddingTop="28px")}}function L(){const e=document.querySelector(".page-header");e&&e.firstElementChild&&(window.onscroll=function(){window.scrollY>0?e.classList.add("scrolled"):e.classList.remove("scrolled")})}function x(){const e=new URL(window.location.href),t=[],n=[];e.searchParams.has("categories")&&e.searchParams.get("categories")?.split(",").forEach(e=>{t.push(e)});const r=(0,d.P)("fite.cf");r&&r.forEach(e=>{n.push(e)}),document.querySelectorAll("a[data-schedule]").forEach(e=>{const r=new URL(e.href);"nav"===e.dataset.schedule&&n.length>0?(r.searchParams.set("categories",n.join(",")),e.href=r.href):t.length>0&&(r.searchParams.set("categories",t.join(",")),e.href=r.href)})}const I=()=>{const e=document.getElementById("js-nav-account");if(!e)return!1;const t=[{url:"/account/info/",name:"Manage Account",classes:"hidden lg:block py-3.5 text-mono-ps-100 hover:text-mono-white"},{url:"/account/menu/",name:"Manage Account",classes:"block lg:hidden py-3.5 text-mono-ps-100 hover:text-mono-white"},{url:"/account/logout/",name:"Log Out",classes:"block py-3.5 text-mono-ps-100 hover:text-mono-white"}];if((0,s.Hr)("eid",document.cookie)){const n=e.dataset;if(n&&n.profileMenu){const n=document.createElement("ul");n.setAttribute("id","account-options"),n.setAttribute("class","hidden absolute top-14 right-4 bg-mono-ns-200 text-center rounded-lg w-52"),t.forEach(e=>{const t=document.createElement("li"),r=document.createElement("a");r.setAttribute("href",e.url),r.setAttribute("class",e.classes),r.textContent=e.name,t.appendChild(r),n.appendChild(t)}),e.parentElement?.insertBefore(n,e),e.setAttribute("data-dropdown-toggle","account-options"),e.setAttribute("href","#"),new o(n,e)}else n&&n.urlProfile&&e.setAttribute("href",n.urlProfile);e.querySelector("svg use")?.setAttribute("xlink:href","#user-profile")}else e.setAttribute("href",e.getAttribute("href")+`?return_to=${encodeURIComponent(window.location.href)}`)};T();const U=[];if(window.URLSearchParams||U.push(n.e(606).then(n.t.bind(n,7069,23))),String.prototype.includes||U.push(n.e(799).then(n.t.bind(n,1446,23))),Promise.all(U).then(()=>{c(),l()}),(document.querySelector(".swiper-container")||document.querySelector(".featured"))&&Promise.all([n.e(805),n.e(141)]).then(n.bind(n,3456)).then(e=>{e.initFeatured(),e.initCarousels(".swiper-container")}),""!==document.referrer&&!document.referrer.includes("fite.tv")){const e=document.createElement("a");e.href=document.referrer;const t=new Date;t.setTime(t.getTime()+24192e5);const n="; expires="+t.toUTCString();document.cookie="_rfd="+encodeURIComponent(e.hostname)+n+"; path=/"}x(),L(),C(),i(),I(),(0,s.Hr)("eid",document.cookie)&&O(),window.addEventListener("load",()=>{r()}),document.getElementById("js-player-page")?Promise.all([n.e(272,"high"),n.e(469,"high"),n.e(807,"high")]).then(n.bind(n,4132)).then(e=>{e.initApp()}):document.getElementById("js-subs-page")?n.e(545,"high").then(n.bind(n,1788)).then(e=>{e.initApp()}):document.getElementById("js-account-page")?n.e(573,"high").then(n.bind(n,2802)).then(e=>{e.initApp()}):document.getElementById("js-account-categories")?n.e(906,"high").then(n.bind(n,2564)).then(e=>{e.initApp()}):document.getElementById("js-profile-page")&&n.e(529,"high").then(n.bind(n,7271)).then(e=>{e.initApp()}),document.getElementById("js-channel-epg")&&Promise.all([n.e(272,"high"),n.e(805,"high"),n.e(530,"high")]).then(n.bind(n,4914)).then(e=>{e.initApp()})},910:function(e,t,n){n.d(t,{P:function(){return r}});const r=function(e,t=null,n=0){try{if(t){n&&n>0?n=60*n*1e3:0!==n&&n||(n=36e5);const r={ttl:n,createdAt:(new Date).getTime(),data:t};localStorage.setItem(e,JSON.stringify(r))}else{const t=localStorage.getItem(e);if(!t)return null;const n=JSON.parse(t),r=(new Date).getTime();if(Object.prototype.hasOwnProperty.call(n,"ttl")&&(-1===n["ttl"]||n["createdAt"]+n["ttl"]>r))return n["data"]}return null}catch(r){return null}}},3808:function(e,t,n){n.d(t,{Hr:function(){return i},JT:function(){return r},TV:function(){return o}});n(8044),n(2786),n(1340);function r(e){return e.split(";").map(e=>{const t=e.indexOf("="),n=e.slice(0,t).trim();let r=e.slice(t+1,e.length).trim();return'"'===r[0]&&(r=r.slice(1,-1)),[n,r]}).reduce((e,t)=>
1t[0]&&1!==t.length?(e[decodeURIComponent(t[0].trim())]=decodeURIComponent(t[1].trim()),e):e,{})}function o(e,t,n){let r="";if(n){const e=new Date;e.setTime(e.getTime()+24*n*60*60*1e3),r="; expires="+e.toUTCString()}document.cookie=e+"="+encodeURIComponent(t||"")+r+"; path=/"}function i(e,t){return e in r(t)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.m=e,function(){var e=[];n.O=function(t,r,o,i){if(!r){var s=1/0;for(l=0;l<e.length;l++){r=e[l][0],o=e[l][1],i=e[l][2];for(var c=!0,a=0;a<r.length;a++)(!1&i||s>=i)&&Object.keys(n.O).every(function(e){return n.O[e](r[a])})?r.splice(a--,1):(c=!1,i<s&&(s=i));if(c){e.splice(l--,1);var u=o();void 0!==u&&(t=u)}}return t}i=i||0;for(var l=e.length;l>0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[r,o,i]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var c=2&o&&r;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach(function(e){s[e]=function(){return r[e]}});return s["default"]=function(){return r},n.d(i,s),i}}(),function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){n.f={},n.e=function(e,t){return Promise.all(Object.keys(n.f).reduce(function(r,o){return n.f[o](e,r,t),r},[]))}}(),function(){n.u=function(e){return({89:"trl-ns",141:"trl-sl",275:"trl-jwp",303:"trl-cv",330:"ima",336:"trl-videojs",529:"trl-account-profile",530:"trl-epg",545:"trl-subs",573:"trl-account",600:"trl-analytics",606:"polyfill-url",799:"polyfill-incl",807:"trl-player",906:"trl-account-categories"}[e]||e)+".js"}}(),function(){n.miniCssF=function(e){}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="fite-app-base:";n.l=function(r,o,i,s,c){if(e[r])e[r].push(o);else{var a,u;if(void 0!==i)for(var l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var f=l[d];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+i){a=f;break}}a||(u=!0,a=document.createElement("script"),a.charset="utf-8",a.timeout=120,n.nc&&a.setAttribute("nonce",n.nc),a.setAttribute("data-webpack",t+i),c&&a.setAttribute("fetchpriority",c),a.src=r),e[r]=[o];var h=function(t,n){a.onerror=a.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach(function(e){return e(n)}),t)return t(n)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=h.bind(null,a.onerror),a.onload=h.bind(null,a.onload),u&&document.head.appendChild(a)}}}(),function(){n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){n.j=524}(),function(){n.p="https://www.trillertv.com/static/assets/v/trl-app-0.4.18-7d9ee56d3/"}(),function(){var e={524:0};n.f.j=function(t,r,o){var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var s=new Promise(function(n,r){i=e[t]=[n,r]});r.push(i[2]=s);var c=n.p+n.u(t),a=new Error,u=function(r){if(n.o(e,t)&&(i=e[t],0!==i&&(e[t]=void 0),i)){var o=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+s+")",a.name="ChunkLoadError",a.type=o,a.request=s,i[1](a)}};n.l(c,u,"chunk-"+t,t,o)}},n.O.j=function(t){return 0===e[t]};var t=function(t,r){var o,i,s=r[0],c=r[1],a=r[2],u=0;if(s.some(function(t){return 0!==e[t]})){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);if(a)var l=a(n)}for(t&&t(r);u<s.length;u++)i=s[u],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(l)},r=self["webpackChunkfite_app_base"]=self["webpackChunkfite_app_base"]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var r=n.O(void 0,[504],function(){return n(140)});r=n.O(r)})();
2//# sourceMappingURL=app.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.