PageSourceSearch

https://www.gran-turismo.com/common/dist/gt7/frame/assets/frame.js?2026050719

js gran-turismo.com collected 2026-09-24 17:15:05 UTC 3,258 bytes, 1 lines download raw bytes

1import"./modulepreload-polyfill.js";const p=()=>{var e;return(e=location.pathname.substring(1).split("/")[0].match(/^[a-z]{2}(-[a-z]{2})?$/))==null?void 0:e[0]},S=()=>{const e=p();return fetch(`/${e}/gt7/info/api/token/`).then(t=>{if(t.ok)return t.json()})},d=".open-profile-popover-button",m=".gt-profile-popover-component",_=".popover-content",g=".arrow",y=".backdrop";let u=!1,v,O;const E=async()=>{const e=p();if(!e)return;const t=await S();if(u=t&&t.is_signed_in,u){const o=new Worker("/common/dist/gt7/frame/user-profile.js");o.onmessage=n=>{const{gt7:l,gt7sp:c}=n.data;v=l,O=c,s(l,c),r()},o.postMessage({locale:e,baseDomain:t.base_domain,stage:t.stage,accessToken:t.access_token,accessTokenExpire:t.access_token_expire})}else i();function r(){for(let o of Array.from(document.querySelectorAll(d)))o.addEventListener("click",L)}function i(){for(let o of Array.from(document.querySelectorAll(d)))o.addEventListener("click",R)}function s(o,n){(o==null?void 0:o.np_online_id)?f(o.np_online_id):(n==null?void 0:n.user_id)&&f(n.user_id),h()}},f=e=>{for(const t of Array.from(document.querySelectorAll(d)))(t.querySelector(".text")?t.querySelector(".text"):t).textContent=e},h=()=>{for(const e of Array.from(document.querySelectorAll(d)))e.classList.add("profile-loaded")},P=()=>{let e=document.querySelector(m),t;if(!e&&(u?t=document.querySelector("#profile-popover-user"):t=document.querySelector("#profile-popover-sign-in"),t)){let r=t.content.cloneNode(!0);document.body.appendChild(r),e=document.querySelector(m)}return e},q=()=>document.documentElement.lang==="ar",L=e=>{var o;const r=e.target.getBoundingClientRect(),i=P();if(!i)return;i.classList.remove("imout"),i.style.setProperty("display","block");const s=i.querySelector(_);if(s){T(s,v,O);const n=s.querySelector(g),l=s.getBoundingClientRect();let c=r.left-l.left+r.width/2;q()&&(c=l.width-c),s.style.setProperty("top",r.bottom+10+"px"),n.style.setProperty("left",c+"px"),n.style.setProperty("right",c+"px"),s.classList.add("hello"),(o=i.querySelector(y))==null||o.addEventListener("click",a),window.addEventListener("resize",a),window.addEventListener("scroll",a)}},a=()=>{var t;const e=P();e&&(e.classList.add("imout"),e.style.setProperty("display","none"),(t=e.querySelector(y))==null||t.removeEventListener("click",a),e.querySelector(_).classList.remove("hello")),window.removeEventListener("resize",a),window.removeEventListener("scroll",a)},R=()=>{location.href=`/${p()}/gt7/user/`},T=(e,t,r)=>{var i,s,o,n;if(t){if(e.querySelector(".gt7 .name-id").textContent=t.is_hidden_nickname?t.np_online_id:t.nick_name||t.np_online_id,(i=e.querySelector(".gt7 .user-unavailable"))==null||i.remove(),t.avatar_image_path&&!t.is_hidden_avatar){const l=e.querySelector(".gt7 .avatar-image");l.src=t.avatar_image_path,l.classList.remove("use-svg")}}else(s=e.querySelector(".gt7 .user-profile-line"))==null||s.remove();if(r){if(e.querySelector(".gtsport .name-id").textContent=r.user_id,(o=e.querySelector(".gtsport .user-unavailable"))==null||o.remove(),r.profile_photo_id){const l=e.querySelector(".gtsport .avatar-image");l.src=`/gtsport/photo/${r.profile_photo_id.replace(/-\d$/,"")}_0.jpg`,l.classList.remove("use-svg")}}else(n=e.querySelector(".gtsport .user-profile-line"))==null||n.remove()};E();

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.