PageSourceSearch

https://tokentails.com/_next/static/chunks/3201.a515b06c7944fe3c.js

js tokentails.com collected 2026-10-01 15:59:59 UTC 7,153 bytes, 6 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3201],{1355:(e,l,t)=>{t.d(l,{Z:()=>o});var a=t(7876),s=t(1827),r=t(4933),n=t(4232);let o=({text:e,subtext:l,active:t,onClick:o,isBig:i,isMedium:c,isWidthFull:d,isDisabled:u,isSmall:m,className:p,id:f})=>{let[h,v]=(0,r.Mk)(),b=(0,n.useRef)({click:null,hover:null});return(0,n.useEffect)(()=>{let e={click:new Audio((0,s.Uu)("audio/button/click-close.wav")),hover:new Audio((0,s.Uu)("audio/button/modern-mix.wav"))};e.click.volume=.04,e.hover.volume=.5,b.current=e},[]),(0,n.useEffect)(()=>{if(v&&!u)try{let e=b.current.hover?.play();e&&e.catch(()=>{})}catch{}},[v,u]),(0,a.jsxs)("button",{id:f,onClick:()=>{if(!u){o?.();try{let e=b.current.click?.play();e&&e.catch(()=>{})}catch{}}},ref:h,disabled:u,style:{...d?{width:"100% !important"}:{},filter:u?"brightness(0.7)":"none",cursor:u?"not-allowed":"pointer"},className:`flex justify-center relative items-center m-auto h-12 ${p} ${d&&"w-full"}
2            ${m&&"scale-[0.675] hover:scale-75"}
3            ${c&&"scale-[1.35] hover:scale-100"}
4            ${i&&"glow-box scale-125 md:scale-[2] hover:scale-150 md:hover:scale-[2.5]"}
5            ${!i&&!m&&"hover:scale-105"}
6         ${!t&&!u?"hover:brightness-125 hover:pb-1 transition-all":""}`,children:[(0,a.jsx)("img",{src:(0,s.Uu)("landing/button-bg.webp"),draggable:!1,className:"absolute inset-0 h-full w-full object-cover mix-blend-darken brightness-125 rounded-xl animate-pulseWeak"}),(0,a.jsx)("div",{className:"h-8 w-1 bg-yellow-900"}),(0,a.jsxs)("div",{className:"h-10 w-1 flex flex-col bg-yellow-300 border-y-4 border-yellow-900",children:[(0,a.jsx)("div",{className:"h-6 bg-yellow-300"}),(0,a.jsx)("div",{className:"h-1 bg-yellow-900"}),!t&&(0,a.jsx)("div",{className:"h-2 bg-[#e2c05a]"})]}),(0,a.jsx)("div",{className:`${d&&"w-full"}`,children:(0,a.jsxs)("div",{className:`h-12 flex flex-col border-y-4 border-yellow-900 bg-yellow-300 ${d&&"w-full"}'`,children:[(0,a.jsxs)("div",{className:`h-9 bg-yellow-300 px-4 font-primary font-normal uppercase ${d&&"w-full justify-center items-center"} ${i?"text-p3":"text-p4"} flex items-center gap-2`,children:[(0,a.jsx)("p",{className:"text-yellow-900 whitespace-nowrap",children:e}),l&&(0,a.jsx)("p",{className:"text-yellow-800",children:l})]}),(0,a.jsx)("div",{className:"h-1 bg-yellow-900"}),!t&&(0,a.jsx)("div",{className:"h-2 bg-[#e2c05a]"})]})}),(0,a.jsxs)("div",{className:"h-10 w-1 flex flex-col bg-yellow-300 border-y-4 border-yellow-800",children:[(0,a.jsx)("div",{className:"h-8 bg-yellow-900"}),!t&&(0,a.jsx)("div",{className:"h-2 bg-[#e2c05a]"})]}),(0,a.jsx)("div",{className:"h-8 w-1 bg-yellow-900"})]})}},3201:(e,l,t)=>{t.r(l),t.d(l,{AnalyticsConsentBanner:()=>o,AnalyticsSettingsButton:()=>i,AnalyticsSettingsLink:()=>c,default:()=>d});var a=t(7876),s=t(9444),r=t(1355),n=t(4232);let o=()=>{let[e,l]=(0,n.useState)(()=>s.zS.enabled&&"unset"===s.zS.getConsent());if((0,n.useEffect)(()=>{if(!s.zS.enabled)return;let e=()=>l(!0);return window.addEventListener(s.Ri,e),()=>window.removeEventListener(s.Ri,e)},[]),!e)return null;let t=e=>{s.zS.setConsent(e),l(!1)},o=s.zS.getConsent();return(0,a.jsx)("div",{role:"dialog","aria-live":"polite","aria-label":"Analytics consent",className:"fixed inset-x-0 bottom-0 z-[200] flex justify-center p-3 pb-safe",children:(0,a.jsxs)("div",{className:"max-w-xl w-full rounded-xl border-4 border-yellow-300 bg-yellow-50 shadow-lg p-4 font-secondary text-p5 text-yellow-900",children:[(0,a.jsxs)("p",{children:["Can we count game starts and finishes to make Token Tails better? It is anonymous: no email, name or wallet, and it never touches your scores. You can change this any time in your profile."," ",(0,a.jsx)("a",{href:"https://docs.tokentails.com/community-and-social-impact/privacy-policy",target:"_blank",rel:"noreferrer",className:"text-blue-700 underline",children:"Privacy Policy"})]}),"unset"!==o&&(0,a.jsxs)("p",{className:"mt-1 text-p6",children:["Current choice: ","granted"===o?"allowed":"not allowed"]}),(0,a.jsxs)("div",{className:"mt-3 flex flex-wrap gap-2 justify-end",children:[(0,a.jsx)(r.Z,{isSmall:!0,text:"NO THANKS",onClick:()=>t("denied")}),(0,a.jsx)(r.Z,{isSmall:!0,text:"ACCEPT",onClick:()=>t("granted")})]})]})})},i=()=>s.zS.enabled?(0,a.jsx)(r.Z,{isSmall:!0,text:"ANALYTICS",onClick:s.Ej}):null,c=({className:e="text-blue-700"})=>s.zS.enabled?(0,a.jsx)("button",{type:"button",onClick:s.Ej,className:e,children:"Analytics settings"}):null,d=o},9444:(e,l,t)=>{let a,s,r,n,o,i,c,d,u,m;t.d(l,{Ri:()=>f.Ri,zS:()=>g,ye:()=>y,Ej:()=>f.Ej});var p,f=t(433);let h=new Set(["CATNIP_CHAOS"]),v=e=>"number"==typeof e&&Number.isFinite(e)&&e>=0?Math.round(e/100)/10:null;var b=t(3830),w=t(9742);let x=async(e,l)=>{let{default:a}=await t.e(3674).then(t.bind(t,2845));return a.init(e,{api_host:l,persistence:"localStorage",person_profiles:"never",autocapture:!1,capture_pageview:!1,capture_pageleave:!1,capture_performance:!1,capture_exceptions:!1,capture_dead_clicks:!1,capture_heatmaps:!1,rageclick:!1,disable_session_recording:!0,disable_surveys:!0,disable_web_experiments:!0,disable_external_dependency_loading:!0,advanced_disable_flags:!0,save_referrer:!1,mask_personal_data_properties:!0}),a},g=(p={apiKey:w.env.NEXT_PUBLIC_POSTHOG_KEY,load:x,superProperties:()=>({app:"core",platform:(0,b.u)(),device_tier:(0,b.z)()})},a=p.apiKey?.trim()||"",s=p.host||"https://eu.i.posthog.com",r=p.readConsent??f.Xj,n=p.writeConsent??f.eD,o=a.length>0,i=null,c=null,d=()=>(null===i&&(i=r()),i),u=()=>(c||(c=p.load(a,s).then(e=>(e.register({...p.superProperties()}),e)).catch(e=>(console.warn("Analytics failed to load",e),c=null,null))),c),m=async e=>
6{if(i=e,n(e),!o)return;if("granted"===e){let e=await u();e?.has_opted_out_capturing()&&e.opt_in_capturing({captureEventName:null});return}let l=c?await c:null;l&&(l.reset(),l.opt_out_capturing())},{enabled:o,getConsent:d,setConsent:m,track:e=>{o&&"granted"===d()&&u().then(l=>{l&&"granted"===d()&&l.capture(e.name,{...e.properties})})}}),y=function(e,l,t=Date.now){let a=null,s=null,r=e=>null===e?null:t()-e;return{select(){a=t()},start(a){var r;s=t(),e({name:"game_start",properties:{mode:(r={...a,platform:l()}).mode,level:r.level,platform:r.platform,is_restart:!!r.isRestart}})},loaded(t){if(null!==a){var s;let n;e((n="number"==typeof(s={...t,platform:l(),loadMs:r(a)}).loadMs&&s.loadMs>=0?Math.round(s.loadMs):null,{name:"game_loaded",properties:{mode:s.mode,level:s.level,platform:s.platform,load_ms:n}})),a=null}},stop(t,a){var n,o,i,c;let d,u,m,p;e((o=(n={...t,...a,stopOutcome:a.outcome,platform:l(),durationMs:r(s)}).mode,i=n.completedLevel,c=n.stopOutcome,d=i?"win":h.has(o)?"won"===c?"win":"died"===c||"quit"===c?"fail":"run_end":"fail",u=Number(n.catnipEarned??n.score??0)||0,m=Number(n.rawScore??n.score??0)||0,p={mode:n.mode,level:n.level,platform:n.platform,outcome:d,duration_s:v(n.durationMs),score:m,catnip:u},"fail"===d?{name:"game_fail",properties:p}:{name:"game_finish",properties:p})),s=null},leave(t){var n;null!==s&&e({name:"game_quit",properties:{mode:(n={...t,platform:l(),durationMs:r(s)}).mode,level:n.level,platform:n.platform,duration_s:v(n.durationMs)}}),s=null,a=null}}}(g.track,b.u)}}]);

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.