1 line
13 KiB
JavaScript
1 line
13 KiB
JavaScript
module.exports=[14599,64753,a=>{"use strict";function b(){return null}function c(a,b,c){}function d(){return new Set}function e(a,b){}function f(a){let b=d().size;return{completed:b,percent:a>0?Math.round(b/a*100):0}}function g(){return new Set}function h(a,b){return!1}function i(a,b){return g().has(`${a}-${b}`)}a.s(["getBookmarks",()=>g,"getCompletedLessons",()=>d,"getLastWatched",()=>b,"getProgress",()=>f,"isBookmarked",()=>i,"markCompleted",()=>e,"setLastWatched",()=>c,"toggleBookmark",()=>h],14599);var j=a.i(81629);function k(){let a=Array.from({length:30},(a,b)=>b);return(0,j.jsx)("div",{className:"absolute inset-0 pointer-events-none overflow-hidden","aria-hidden":!0,children:a.map(a=>(0,j.jsx)("div",{className:"absolute rounded-full bg-[var(--accent)] opacity-[0.08] animate-pulse",style:{width:`${2+a%4}px`,height:`${2+a%4}px`,left:`${7*a%100}%`,top:`${11*a%100}%`,animationDelay:`${a%5*.5}s`,animationDuration:`${2+a%3}s`}},a))})}a.s(["ParticleBackground",()=>k],64753)},57178,a=>{"use strict";var b=a.i(81629),c=a.i(4911);let d=()=>(0,b.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,b.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,b.jsx)("path",{d:"M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"})]}),e=()=>(0,b.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,b.jsx)("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})});function f(){let{resolvedTheme:a,setTheme:f}=(0,c.useTheme)();return(0,b.jsx)("button",{type:"button",onClick:()=>{f("dark"===a?"light":"dark")},className:"flex items-center justify-center rounded-full p-2 text-[var(--muted-foreground)] transition hover:bg-[var(--muted)] hover:text-[var(--foreground)]","aria-label":"dark"===a?"切换至日间模式":"切换至夜间模式",title:"dark"===a?"日间":"夜间",children:"dark"===a?(0,b.jsx)(d,{}):(0,b.jsx)(e,{})})}a.s(["ThemeToggle",()=>f])},65205,a=>{"use strict";a.s(["AUDIENCE_CONFIG",0,{title:"这门课适合谁?",subtitle:"向往低成本自建,想用开源硬件实现无人直播的人",items:[{emoji:"💻",title:"无人直播创业者",desc:"想用低成本硬件搭建 TikTok/Youtube 直播矩阵"},{emoji:"⚙️",title:"技术极客",desc:"想自建云手机、Redroid、ARM 开发板玩转自动化"},{emoji:"📱",title:"出海副业者",desc:"想摆脱云手机平台高额月费,自建开箱即用"},{emoji:"🌴",title:"工作室搭建者",desc:"想低成本打造无人值守 24 小时赚美金"}]},"BENEFITS_CONFIG",0,{title:"学完你将获得",subtitle:"5大核心能力,助你自建云手机工作室",items:[{num:"1",title:"云手机自建方案",desc:"Redroid、AOSP 安卓、ARM 开发板,从零搭建云手机"},{num:"2",title:"无人直播技术栈",desc:"ffmpeg、SRS、油猴脚本,实现 24 小时自动化推流"},{num:"3",title:"软路由与网络",desc:"科学上网、静态住宅 IP,出海必备基础设施"},{num:"4",title:"硬件选型与成本",desc:"开发板、采集卡、配件,一套成本不过千"},{num:"5",title:"VIP 社群支持",desc:"加入异度星球,获取部署教程与即时答疑"}]},"CURRICULUM_CONFIG",0,{title:"实战课程",subtitle:"从入门到进阶,完整搭建云手机工作室",modules:[{emoji:"🚀",title:"基础篇 · 云手机入门",lessons:[{name:"01 什么是云手机?自建 vs 商业平台",duration:"08:32"},{name:"02 低成本工作室硬件选型",duration:"12:15"}]},{emoji:"⚙️",title:"技术篇 · Redroid 与 AOSP",lessons:[{name:"03 Docker 虚拟化安卓 - Redroid",duration:"15:20"},{name:"04 ARM 开发板 AOSP 系统",duration:"18:00"},{name:"05 相机与推流配置",duration:"14:30"}]},{emoji:"📺",title:"直播篇 · 无人推流",lessons:[{name:"06 ffmpeg 拉流转推",duration:"16:00"},{name:"07 SRS 直播服务器",duration:"12:45"},{name:"08 油猴脚本自动化",duration:"11:20"},{name:"09 TikTok/Youtube 实战",duration:"20:00"}]},{emoji:"🌐",title:"网络篇 · 出海基础",lessons:[{name:"10 软路由与科学上网",duration:"13:00"},{name:"11 静态住宅 IP 配置",duration:"10:30"}]},{emoji:"🏆",title:"进阶篇 · 产品化",lessons:[{name:"12 HDMI 辅助板方案",duration:"15:00"},{name:"13 多设备群控与远控",duration:"12:00"}]}]},"DOWNLOAD_CONFIG",0,{enabled:!0,url:"https://pan.baidu.com/s/example",title:"课程资料下载",buttonText:"前往网盘下载"},"HERO_CONFIG",0,{title:"云手机实战课",subtitle:"低成本工作室搭建指南 · TikTok/Youtube 无人直播,开启 24 小时赚美金",stats:[{value:"13",label:"节实战课程"},{value:"170+",label:"分钟视频"},{value:"1",label:"位资深导师"}]},"SITE_CONFIG",0,{brand:"🌍 云手机",ctaUrl:"/",footer:"🌍 云手机 · 低成本工作室搭建指南"}])},97399,a=>{"use strict";function b(){return{url:"https://pocketbase.hackrobot.cn"}}function c(){return{apiUrl:function(){let a=process.env.PAYMENT_API_INTERNAL_URL?.trim();if(a)return a.replace(/\/$/,"");let b=process.env.PAYMENT_API_URL||"http://127.0.0.1:8007";return/^(https?:\/\/)?(127\.0\.0\.1|localhost)(:\d+)?(\/|$)/i.test(b)?"https://api.hackrobot.cn":b}(),provider:process.env.PAYMENT_PROVIDER||"zpay",zpaySubmitUrl:process.env.ZPAY_SUBMIT_URL||"https://zpayz.cn/submit.php",defaultAmount:Number(process.env.PAYMENT_DEFAULT_AMOUNT)||18800,nomadvipPayPath:"/nomadvip/payh5"}}process.env.PAYJSAPI_PORT,a.s(["getPaymentConfig",()=>c,"getPocketBaseConfig",()=>b])},13049,80048,a=>{"use strict";function b(){return!("u"<typeof navigator)&&/MicroMessenger/i.test(navigator.userAgent)?"wechat":!("u"<typeof navigator)&&/AppleWebKit.*Mobile|Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?"h5":"pc"}function c(a){return"wechat"===a?"wechat":"pc"===a?"pc":"h5"}a.s(["getDeviceFromEnv",()=>c,"getPayEnv",()=>b],80048);var d=a.i(97399);let e="nomadvip_anon_uid",f="nomadvip_pay_order";function g(a,b){}function h(a){if("u"<typeof document||!/^user\d+$/.test(a))return;let b="https:"===window.location.protocol?"; Secure":"";document.cookie=`${e}=${encodeURIComponent(a)}; Path=/; Max-Age=2592000; SameSite=Lax${b}`}function i(){let a=function(){let a=null;if(a&&/^user\d+$/.test(a))return a;let b=null;if(b&&/^user\d+$/.test(b))return b;let c=function(a){if("u"<typeof document)return null;let b=document.cookie.match(RegExp(`(?:^|; )${a}=([^;]*)`));return b?decodeURIComponent(b[1]):null}(e);return c&&/^user\d+$/.test(c)?(g("memosAccount",c),c):null}();if(a)return g("userId",a),h(a),a;let b=null;if(b?.startsWith("{")&&b.includes("data"))try{let a=JSON.parse(b);a?.data&&(b=a.data,g("userId",b))}catch{b=null}return b||g("userId",b=`user${Date.now()}`),b}async function j(){let a=i();if(a&&!a.startsWith("user"))return a;try{let a=await fetch("/api/auth/me",{credentials:"include",cache:"no-store"}),b=await a.json();if(b?.user?.id)return g("userId",b.user.id),b.user.id}catch{}return a}async function k(a,b){let c=await fetch("/api/pay",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...a,device:"h5",provider:"zpay",html:"0"})}),d=await c.json().catch(()=>({}));if(!d?.ok)return alert(d?.error||"支付发起失败"),null;let e=!!d?.redirect_url,h=!!d?.params&&!!d?.payUrl;if(!e&&!h)return alert(d?.error||"支付发起失败"),null;let i=d?.order_id?.trim()||null;if(i){let a;(a=i.trim())&&(!function(a){if("u"<typeof document)return;let b=a.trim();if(!b)return;let c="https:"===window.location.protocol?"; Secure":"";document.cookie=`${f}=${encodeURIComponent(`${b}|${Date.now()}`)}; Path=/; Max-Age=900; SameSite=Lax${c}`}(a),g(f,`${a}|${Date.now()}`)),b?.(i)}if(d?.redirect_url)return window.location.href=d.redirect_url,i;let j=document.createElement("form");for(let[a,b]of(j.method="POST",j.action=d.payUrl,j.target="_self",j.style.display="none",Object.entries(d.params))){if(null==b)continue;let c=document.createElement("input");c.type="hidden",c.name=a,c.value=String(b),j.appendChild(c)}return document.body.appendChild(j),j.submit(),document.body.removeChild(j),i}async function l(a){var e;let f="u">typeof navigator&&/MicroMessenger/i.test(navigator.userAgent)?i():await j();/^user\d+$/.test(f)&&(g("memosAccount",f),g("userId",f),h(f));let l=`${window.location.origin}/paid`,m=c(b()),n={user_id:f,return_url:l,total_fee:(0,d.getPaymentConfig)().defaultAmount??8800,type:"vip",channel:"wxpay"};if("wechat"===m){let a;(a=document.createElement("form")).method="POST",a.action="/api/pay",a.target="_self",a.style.display="none",[["user_id",n.user_id],["return_url",n.return_url],["total_fee",String(n.total_fee)],["type",n.type],["channel",n.channel],["device","wechat"],["provider","xorpay"],["html","1"]].forEach(([b,c])=>{let d=document.createElement("input");d.type="hidden",d.name=b,d.value=c,a.appendChild(d)}),document.body.appendChild(a),a.submit()}else if("h5"===m)await k(n,a);else{let a;e={...n,device:m},(a=document.createElement("form")).method="POST",a.action="/api/pay",a.target="_self",a.style.display="none",[["user_id",e.user_id],["return_url",e.return_url],["total_fee",String(e.total_fee)],["type",e.type],["channel",e.channel],["device",e.device],["provider","zpay"],["html","1"]].forEach(([b,c])=>{let d=document.createElement("input");d.type="hidden",d.name=b,d.value=c,a.appendChild(d)}),document.body.appendChild(a),a.submit()}}a.s(["triggerPay",()=>l],13049)},91536,a=>{a.v({bigNumber:"vip-module__C0jyLa__bigNumber",bigNumberLabel:"vip-module__C0jyLa__bigNumberLabel",btnLarge:"vip-module__C0jyLa__btnLarge",btnPrimary:"vip-module__C0jyLa__btnPrimary",btnSecondary:"vip-module__C0jyLa__btnSecondary",card:"vip-module__C0jyLa__card",freeBadge:"vip-module__C0jyLa__freeBadge",header:"vip-module__C0jyLa__header",heroSection:"vip-module__C0jyLa__heroSection",loading:"vip-module__C0jyLa__loading",loadingSpinner:"vip-module__C0jyLa__loadingSpinner",loginCard:"vip-module__C0jyLa__loginCard",loginCardLabel:"vip-module__C0jyLa__loginCardLabel",loginCardLink:"vip-module__C0jyLa__loginCardLink",loginCardRow:"vip-module__C0jyLa__loginCardRow",loginCardTitle:"vip-module__C0jyLa__loginCardTitle",loginCardValue:"vip-module__C0jyLa__loginCardValue",loginLink:"vip-module__C0jyLa__loginLink",logo:"vip-module__C0jyLa__logo",main:"vip-module__C0jyLa__main",nav:"vip-module__C0jyLa__nav",root:"vip-module__C0jyLa__root",section:"vip-module__C0jyLa__section",sectionDesc:"vip-module__C0jyLa__sectionDesc",sectionTitle:"vip-module__C0jyLa__sectionTitle",spin:"vip-module__C0jyLa__spin",statsGrid:"vip-module__C0jyLa__statsGrid",statsGrid4:"vip-module__C0jyLa__statsGrid4",statsSection:"vip-module__C0jyLa__statsSection",topicCard:"vip-module__C0jyLa__topicCard",topicCardInner:"vip-module__C0jyLa__topicCardInner",topicDesc:"vip-module__C0jyLa__topicDesc",topicGrid:"vip-module__C0jyLa__topicGrid",topicIcon:"vip-module__C0jyLa__topicIcon",topicLock:"vip-module__C0jyLa__topicLock",topicTitle:"vip-module__C0jyLa__topicTitle",topicsSection:"vip-module__C0jyLa__topicsSection",userBadge:"vip-module__C0jyLa__userBadge",vipTag:"vip-module__C0jyLa__vipTag"})},26043,67690,a=>{"use strict";function b(){return!1}function c(a,b){return!1}a.s(["canWatchLesson",()=>c,"isPaid",()=>b],26043);var d=a.i(81629),e=a.i(84365),f=a.i(13049),g=a.i(91536);function h({open:a,onClose:b}){return((0,e.useEffect)(()=>(a?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[a]),(0,e.useEffect)(()=>{if(!a)return;let c=a=>{"Escape"===a.key&&b()};return window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)},[a,b]),a)?(0,d.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",role:"dialog","aria-modal":"true","aria-labelledby":"qa-vip-modal-title",children:[(0,d.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:b}),(0,d.jsxs)("div",{className:"relative w-full max-w-[360px] rounded-2xl border border-[var(--border)] bg-[var(--card)] p-6 shadow-2xl animate__animated animate__fadeIn animate__faster",onClick:a=>a.stopPropagation(),children:[(0,d.jsxs)("div",{className:"mb-4 flex items-center gap-3",children:[(0,d.jsx)("span",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-[var(--accent)]/20 text-xl",children:"💬"}),(0,d.jsx)("h2",{id:"qa-vip-modal-title",className:"text-lg font-semibold text-[var(--foreground)]",style:{margin:0},children:"即时问答"})]}),(0,d.jsx)("p",{className:"mb-6 text-sm leading-relaxed text-[var(--muted-foreground)]",children:"即时问答是会员专享的贴心服务,开通后即可获得一对一技术咨询支持,随时解答你的疑问~"}),(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsx)("button",{type:"button",onClick:()=>{b(),(0,f.triggerPay)()},className:`${g.default.btnPrimary} ${g.default.btnLarge} w-full`,children:"立即开通 →"}),(0,d.jsx)("button",{type:"button",onClick:b,className:"w-full rounded-full border border-[var(--border)] py-2.5 text-sm text-[var(--muted-foreground)] transition hover:bg-[var(--muted)] hover:text-[var(--foreground)]",children:"稍后再说"})]})]})]}):null}a.s(["InstantQaVipModal",()=>h],67690)}]; |