PageSourceSearch

https://p-bandai.com/assets/termsService-BZOip-5F.js

js p-bandai.com collected 2026-09-24 22:01:22 UTC 1,454 bytes, 1 lines download raw bytes

1import{G as c}from"./FooterGlobal-CMwk0n_C.js";const p=()=>{const o=m("OptanonConsent");if(!o)return null;const e=o.split("&");let t={performanceCookies:!1,functionalCookies:!1,targetingCookies:!1,cookieConsentChangeDate:""};try{const s=e.find(n=>n.startsWith("groups="));s&&(t={...t,...l(s)});const r=e.find(n=>n.startsWith("datestamp="));return r&&(t={...t,...u(r)}),t}catch(s){return console.error("Failed to parse OptanonConsent:",s),null}},l=o=>{const e={};return o.replace("groups=","").split(",").forEach(r=>{const[n,i]=r.split(":");if(!n||i===void 0)return;const a=i==="1";switch(n){case"C0002":e.performanceCookies=a;break;case"C0003":e.functionalCookies=a;break;case"C0004":e.targetingCookies=a;break}}),e},u=o=>{let e=o.replace("datestamp=","").replace(/\+/g," ").replace("GMT ","+").replace(/\(.*\)/,"");try{const t=new Date(e.trim());if(!isNaN(t.getTime()))return{cookieConsentChangeDate:t.toISOString()}}catch{console.warn("Failed to parse datestamp:",o)}return{}},m=o=>{const e=new RegExp(`${o}=([^;]*)`),t=document.cookie.match(e);return t?decodeURIComponent(t[1]):void 0};class C{async getTermsContent(e){var t;return(t=window.PRELOAD_DATA)!=null&&t.terms?window.PRELOAD_DATA.terms:(await c.get(`/api/terms/${e}`)).data}async termsConsent(e){await c.post("/api/terms/consent",e)}async modifyCookieConsent(){const e=p();if(!e){console.log("OptanonConsent empty");return}await c.put("/api/cookie/consent",e)}}const f=new C;export{f as 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.