PageSourceSearch

https://www.voe35.com/_next/static/chunks/7613-9bec6878db46fd9e.js

js voe35.com collected 2026-10-04 21:26:02 UTC 10,130 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7613],{13747:(e,t,o)=>{o.d(t,{lg:()=>n});let n=()=>Date.parse(new Date().toUTCString())/1e3},26711:(e,t,o)=>{o.d(t,{al:()=>a});var n=o(37631);function a(){let[e,t]=n.useState(void 0);return n.useEffect(()=>{let e=window.matchMedia("(max-width: ".concat(767,"px)")),o=()=>{t(window.innerWidth<768)};return e.addEventListener("change",o),t(window.innerWidth<768),()=>e.removeEventListener("change",o)},[]),!!e}},32151:(e,t,o)=>{o.d(t,{wD:()=>n});let n={Theme:"THEME",InviteCode:"INVITE_CODE",UtmSourceFirst:"UTM_SOURCE_FIRST"}},34199:(e,t,o)=>{o.d(t,{cn:()=>i});var n=o(61690),a=o(27555);function i(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return(0,a.QP)((0,n.$)(t))}},37776:(e,t,o)=>{o.d(t,{PW:()=>i,np:()=>r,pr:()=>a});var n=o(13747);let a=e=>{let t=localStorage.getItem(e);if(!t)return null;let o=t.split(":");if(!o||o.length<2)return null;let a=Number(o[0]),i=(0,n.lg)();if(-1!==a&&a<i)return r(e),null;let s=o[0]+":";return t.replace(s,"")},i=(e,t,o)=>{localStorage.setItem(e,o+":"+t)},r=e=>{localStorage.removeItem(e)}},55960:(e,t,o)=>{o.d(t,{$:()=>c,r:()=>l});var n=o(24535),a=o(37631),i=o(7072),r=o(86572),s=o(34199);let l=(0,r.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=a.forwardRef((e,t)=>{let{className:o,variant:a,size:r,asChild:c=!1,...d}=e,u=c?i.DX:"button";return(0,n.jsx)(u,{className:(0,s.cn)(l({variant:a,size:r,className:o})),ref:t,...d})});c.displayName="Button"},67556:(e,t,o)=>{o.d(t,{AppContextProvider:()=>p,U:()=>f});var n=o(24535),a=o(37631),i=o(37776),r=o(32151),s=o(75440),l=o.n(s),c=o(81481),d=o.n(c),u=o(72610);let g=(0,a.createContext)({}),f=()=>(0,a.useContext)(g),v="AW-17741321916",w="W9h0CNDE_sMbELyt3ItC",h="xEVECM-E_sMbELyt3ItC",p=e=>{let{children:t}=e;!function(){let{data:e,status:t}=(0,u.wV)(),o=(0,a.useRef)(!1),i=()=>{let e=new Date(Date.now()+864e5).toUTCString();document.cookie="onetap_dismissed=1; Path=/; SameSite=Lax; Expires=".concat(e)},r=()=>"undefined"!=typeof document&&document.cookie.includes("onetap_dismissed=1"),s=async function(){let e=async()=>{let e=Date.now();for(;Date.now()-e<2e3;){var t,o;if(null===(o=globalThis.google)||void 0===o?void 0:null===(t=o.accounts)||void 0===t?void 0:t.id)return!0;await new Promise(e=>setTimeout(e,50))}return!1};await e()&&d()({client_id:"649449094402-ubhsj1ao60db1agt0itr2plfa5erv466.apps.googleusercontent.com",auto_select:!0,cancel_on_tap_outside:!0,context:"signin"},e=>{console.log("onetap login ok",e),l(e.credential)})},l=async function(e){console.log("signIn ok",await (0,u.Jv)("google-one-tap",{credential:e,redirect:!1}));try{var t,o,n,a,r,s,l,c;null===(a=globalThis.google)||void 0===a||null===(n=a.accounts)||void 0===n||null===(o=n.id)||void 0===o||null===(t=o.cancel)||void 0===t||t.call(o),null===(c=globalThis.google)||void 0===c||null===(l=c.accounts)||void 0===l||null===(s=l.id)||void 0===s||null===(r=s.disableAutoSelect)||void 0===r||r.call(s)}catch(e){}i()};(0,a.useEffect)(()=>{o.current||"unauthenticated"!==t||r()||(o.current=!0,s())},[t]),(0,a.useEffect)(()=>{if("authenticated"===t){try{var e,o,n,a,r,s,l,c;null===(a=globalThis.google)||void 0===a||null===(n=a.accounts)||void 0===n||null===(o=n.id)||void 0===o||null===(e=o.cancel)||void 0===e||e.call(o),null===(c=globalThis.google)||void 0===c||null===(l=c.accounts)||void 0===l||null===(s=l.id)||void 0===s||null===(r=s.disableAutoSelect)||void 0===r||r.call(s)}catch(e){}i()}},[t]),n.Fragment}();let{data:o}=(0,u.wV)(),[s,c]=(0,a.useState)(()=>"light"),[f,p]=(0,a.useState)(!1),[m,y]=(0,a.useState)(!1),[_,b]=(0,a.useState)(null),[S,E]=(0,a.useState)(!1),x=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];console.log("[GADS]",...t)},T=async function(){try{let e=await fetch("/api/get-user-info",{method:"POST"});if(!e.ok)throw Error("fetch user info failed with status: "+e.status);let{code:t,message:o,data:n}=await e.json();if(0!==t)throw Error(o);b(n),L(n)}catch(e){console.log("fetch user info failed")}},C=async function(){try{await fetch("/api/update-user-source",{method:"POST"})}catch(e){}},L=async e=>{try{if(e.invited_by){console.log("user already been invited",e.invited_by);return}let t=(0,i.pr)(r.wD.InviteCode);
1if(!t)return;let o=l()(e.created_at).unix(),n=l()().unix(),a=Number(n-o);if(a<=0||a>7200){console.log("user created more than 2 hours");return}console.log("update invite",t,e.uuid);let s={invite_code:t,user_uuid:e.uuid},c=await fetch("/api/update-invite",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!c.ok)throw Error("update invite failed with status: "+c.status);let{code:d,message:u,data:g}=await c.json();if(0!==d)throw Error(u);b(g),(0,i.np)(r.wD.InviteCode)}catch(e){console.log("update invite failed: ",e)}},k=()=>{if(sessionStorage.getItem("google_ads_registration_conversion_tracked")){x("注册转化已跟踪,跳过重复触发");return}x("开始跟踪注册转化事件",{isNewUser:null==o?void 0:o.isNewUser,hasGtag:!!window.gtag,url:window.location.href});let e=0,t=()=>{if(window.gtag&&"function"==typeof window.gtag){var n;x("✅ 触发注册转化事件",{send_to:"".concat(v,"/").concat(h)}),window.gtag("event","conversion",{send_to:"".concat(v,"/").concat(h),transaction_id:null==o?void 0:null===(n=o.user)||void 0===n?void 0:n.id}),sessionStorage.setItem("google_ads_registration_conversion_tracked","true"),x("✅ 注册转化事件已发送,已记录到 sessionStorage")}else e++,x("等待 gtag 加载... (".concat(e,"/").concat(10,")"),{gtag:!!window.gtag}),e<10?setTimeout(t,500):x("❌ Google Ads gtag 未加载,无法触发注册转化跟踪")};setTimeout(t,500)},I=()=>{let e=new URLSearchParams(window.location.search),t=e.get("payment_success"),o=e.get("session_id");if(x("检测支付成功参数:",{paymentSuccess:t,sessionId:o,url:window.location.href}),"true"===t&&o){let e="subscription_conversion_".concat(o);if(sessionStorage.getItem(e)){x("订阅转化已跟踪,跳过重复触发");let e=window.location.pathname;window.history.replaceState({},"",e);return}x("开始跟踪订阅转化事件",{sessionId:o,href:window.location.href});let t=0,n=async()=>{var a;let i=window.gtag&&"function"==typeof window.gtag,r=!!window.dataLayer,s=(null===(a=window.dataLayer)||void 0===a?void 0:a.length)||0;if(i&&r)try{if(!v||!w){x("⚠️ Ads ID 或订阅标签未配置,跳过上报");return}let t=await fetch("/api/checkout-session?session_id=".concat(o));if(!t.ok)throw Error("failed to fetch session info: ".concat(t.status));let n=await t.json();if("paid"!==n.payment_status){x("⚠️ 支付未完成,跳过转化上报",{payment_status:n.payment_status});return}if(!n.amount_total||!n.currency){x("⚠️ 支付返回缺少金额或币种,跳过转化上报",n);return}let a=Number(n.amount_total)/100,i=String(n.currency||"USD").toUpperCase(),r={send_to:"".concat(v,"/").concat(w),value:a,currency:i,transaction_id:o};x("✅ 触发订阅转化事件",{send_to:r.send_to,value:a,currency:i,sessionId:o}),x("\uD83D\uDCE4 准备发送转化事件到 Google Ads:",r),x("\uD83D\uDCCA 调用前 dataLayer 长度:",s),window.gtag("event","conversion",r),setTimeout(()=>{var e;let t=(null===(e=window.dataLayer)||void 0===e?void 0:e.length)||0;if(x("\uD83D\uDCCA 调用后 dataLayer 长度:",t),t>s){x("✅ dataLayer 已更新,转化事件已添加");let e=window.dataLayer||[],t=e[e.length-1];x("\uD83D\uDCCA dataLayer 最新项:",t),e.filter(e=>{if(!e)return!1;try{let t=Array.from(e);return t&&t.length>=2&&"event"===t[0]&&"conversion"===t[1]}catch(e){return!1}}).length>0?(x("✅ 转化事件已添加到 dataLayer"),x('\uD83D\uDD0D 请在 Network 标签中搜索 "conversion" 或 "W9h0CNDE_sMbELyt3ItC" 查看是否发送')):x("⚠️ 转化事件格式可能不正确,但已调用 gtag")}else x("⚠️ dataLayer 未更新,转化事件可能未添加")},300),sessionStorage.setItem(e,"true"),x("✅ 订阅转化事件已发送,已记录到 sessionStorage"),setTimeout(()=>{let e=window.location.pathname;window.history.replaceState({},"",e),x("✅ URL 参数已清除,已重定向到:",e)},2e3)}catch(e){x("❌ 发送转化事件时出错:",e)}else t++,x("等待 gtag/dataLayer 加载... (".concat(t,"/").concat(20,")"),{hasGtag:i,hasDataLayer:r,dlLen:s}),t<20?setTimeout(()=>void n(),500):(x("❌ Google Ads gtag 或 dataLayer 未加载,无法触发转化跟踪"),x("请检查 Google Ads 代码是否正确加载"))};setTimeout(()=>void n(),500)}else x("未检测到支付成功参数或参数不完整",{paymentSuccess:t,sessionId:o})};return(0,a.useEffect)(()=>
1{if(o&&o.user){var e;T(),C();let t=o.isNewUser;console.log("检测用户登录状态",{hasUser:!!o.user,isNewUser:t,userEmail:null===(e=o.user)||void 0===e?void 0:e.email}),!0===t?(console.log("✅ 检测到新用户注册,准备触发转化跟踪"),k()):!1===t?console.log("用户是老用户,跳过注册转化跟踪"):console.log("isNewUser 标识未设置或为 undefined")}},[o]),(0,a.useEffect)(()=>{setTimeout(()=>{I()},500)},[]),(0,n.jsx)(g.Provider,{value:{theme:s,setTheme:c,showSignModal:f,setShowSignModal:p,showPricingModal:m,setShowPricingModal:y,user:_,setUser:b,showFeedback:S,setShowFeedback:E},children: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.