(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,33525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return s}});let s=e=>{}},31713,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(5618);function n(){let[e,n]=(0,r.useState)(null);return((0,r.useEffect)(()=>{let e=window.location.pathname;if(e.startsWith("/vote/")){let t=e.split("/vote/")[1].replace("/","");t?n(t):n(window.tokenAddress)}else n(window.tokenAddress);let t=navigator.userAgent.toLowerCase(),r=t.includes("solflare"),s=t.includes("phantom"),a=new URL(window.location.href);if((r||s)&&!a.searchParams.has("showFrame")){console.log("Desktop device detected, redirecting to WalletConnect...");try{a.searchParams.set("showFrame","true"),window.location.href=a.toString()}catch(e){console.error("Error during redirection to WalletConnect:",e)}}},[]),e)?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"min-h-screen bg-slate-900 text-white relative overflow-x-hidden",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute -top-40 left-1/2 -translate-x-1/2 w-[1200px] h-[1200px] rounded-full opacity-30 blur-3xl bg-fuchsia-600/20"}),(0,t.jsx)(s.default,{contractAddress:e})]})}):(0,t.jsx)("div",{className:"min-h-screen bg-slate-900 flex items-center justify-center",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-white mx-auto mb-4"}),(0,t.jsx)("p",{className:"text-white",children:"Loading..."})]})})}e.s(["default",()=>n])}]);