1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8450],{11647:(e,t,s)=>{"use strict";s.d(t,{E:()=>i});var a=s(95155);s(12115);var r=s(83101),l=s(64269);let o=(0,r.F)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function i(e){let{className:t,variant:s,...r}=e;return(0,a.jsx)("div",{className:(0,l.cn)(o({variant:s}),t),...r})}},13673:()=>{},44300:(e,t,s)=>{"use strict";s.d(t,{default:()=>J});var a=s(95155),r=s(34663),l=s(3998),o=s(6259),i=s(68854),n=s(60890),c=s(95740),d=s(17666),m=s(42024),h=s(7596),x=s(27209),p=s(5208),g=s(67733),u=s(26667),b=s(42196),f=s(60952),v=s(37586),w=s(45221),j=s(34604),N=s(98599),y=s(39926),_=s(78192),k=s(84382),S=s(91169),A=s(55275),C=s(79451),I=s(95322),K=s(91456),E=s(24033),P=s(20508),L=s(89715),W=s(54485),O=s(15870),T=s(84926),U=s(65229),M=s(9540),R=s(11647),z=s(12115),D=s(57020),F=s(71129),q=s(18955),H=s(20063),B=s(71626),G=s(52923),V=s(39068);function $(){let e=(0,B.Ym)(),t=(0,r.a8)(),s=(0,r.rd)();return(0,a.jsxs)(o.rI,{modal:!1,children:[(0,a.jsx)(o.ty,{asChild:!0,children:(0,a.jsxs)(l.$,{variant:"ghost",size:"sm",className:"gap-1.5 px-2 h-8 sm:h-9 rounded-xl hover:bg-slate-100 transition-all duration-300 min-w-[60px]",title:"忢è¯è¨ / Switch Language",children:[(0,a.jsx)(V.A,{className:"w-4 h-4"}),(0,a.jsx)("span",{className:"hidden sm:inline text-xs sm:text-sm font-medium",children:G._o[e]}),(0,a.jsx)("span",{className:"inline sm:hidden text-base",children:G.Rl[e]})]})}),(0,a.jsx)(o.SQ,{align:"end",className:"min-w-[140px]",children:G.IB.map(r=>(0,a.jsxs)(o._2,{onClick:()=>{s.replace(t,{locale:r})},className:"flex items-center gap-2 cursor-pointer ".concat(r===e?"bg-slate-100 font-medium":""),children:[(0,a.jsx)("span",{className:"text-base",children:G.Rl[r]}),(0,a.jsx)("span",{children:G.L$[r]}),r===e&&(0,a.jsx)("span",{className:"ml-auto text-violet-600",children:"â"})]},r))})]})}function J(){let[e,t]=(0,z.useState)(!1),{user:s,logout:B,isAuthenticated:G}=(0,D.A)(),{membershipInfo:V}=function(){let[e,t]=(0,z.useState)(null),[s,a]=(0,z.useState)(!1),{isAuthenticated:r}=(0,D.A)(),l=async()=>{if(!r)return void t(null);try{a(!0);let e=await fetch("/api/membership/status",{credentials:"include"});if(e.ok){let s=await e.json();s.success&&t(s.data.membership)}}catch(e){console.error("è·åä¼åç¶æå¤±è´¥:",e)}finally{a(!1)}};return(0,z.useEffect)(()=>
1{l()},[r]),{membershipInfo:e,loading:s,refreshMembership:l}}(),{onLabMenuClicked:J,isOnboarding:Q,currentStep:Y}=(0,F.z)(),X=(0,q.c)("nav"),Z=((0,H.usePathname)()||"").replace(/^\/(zh|en)(?=\/|$)/,"")||"/",ee=async()=>{try{await B()}catch(e){console.error("ç»åºå¤±è´¥:",e)}},et=e=>Z===e||Z.startsWith("".concat(e,"/")),es=[{href:"/video2prompt",label:X("video2prompt"),icon:n.A,highlight:!0},{href:"/prompt-enhance",label:X("promptEnhance"),icon:c.A},{href:"/snippets",label:X("snippets"),icon:d.A}],ea=[{href:"/storyboard-extractor",label:X("storyboardExtractor"),icon:m.A},{href:"/video-grayscale",label:X("videoGrayscale"),icon:h.A},{href:"/assets-market",label:X("aiHengdian"),icon:x.A},{href:"/character-gen",label:X("characterDesign"),icon:p.A},{href:"/pose-snatcher",label:X("poseSnatcher"),icon:g.A},{href:"/lab/face-tools",label:X("faceTools"),icon:u.A},{href:"/ai-image-cutter",label:X("aiImageCutter"),icon:b.A}],er=[{href:"/ai-image/studio",label:X("aiImageStudio"),icon:u.A,highlight:!0},{href:"/ai-video/studio",label:X("aiVideoStudio"),icon:n.A,highlight:!0},{href:"/poster",label:X("aiPoster"),icon:f.A},{href:"/video-script-video",label:X("talkingVideoBeta"),icon:x.A},{href:"/ai-chat",label:X("chat"),icon:v.A}],el=[{label:X("reverseAndImprove"),items:es},{label:X("referenceAndPrepare"),items:ea},{label:X("testAndGenerate"),items:er}],eo=el.flatMap(e=>e.items),ei=[{href:"/prompts",label:X("promptLibrary"),icon:w.A},{href:"/skills",label:X("skillLibrary"),icon:j.A},{href:"/plugins",label:X("dshPluginLibrary"),icon:N.A},{href:"/solutions",label:X("promptEngineering"),icon:d.A}],en=[{href:"/columns/nanobanana",label:"Nano Banana Pro",icon:b.A},{href:"/columns/seedance",label:"Seedance 2.0",icon:x.A},{href:"/columns/omni",label:"Google Gemini Omni",icon:h.A},{href:"/columns/opus-5-5",label:"Claude Opus 5.5",icon:h.A,highlight:!0},{href:"/columns/midjourney",label:"Midjourney",icon:y.A},{href:"/columns/gpt-image",label:"GPT Image 2.5",icon:_.A,highlight:!0}],ec=[{href:"/ai-news",label:X("aiNews"),icon:k.A},{href:"/for",label:X("careers"),icon:S.A}],ed=[{label:X("discoverAndLearn"),items:ei},{label:X("modelColumns"),items:en},{label:X("newsAndCareers"),items:ec}],em=ed.flatMap(e=>e.items),eh=[{href:"/mcp",label:X("mcpIntegration"),icon:A.A},{href:"/extension",label:X("browserExtension"),icon:N.A},{href:"/extensions/ai-video-monitor#pricing",label:X("seedanceAIAssistant"),icon:n.A},{href:"/desktop",label:X("desktopApp"),icon:C.A}],ex=[{href:"/gallery",label:X("gallery"),icon:y.A},{href:"/pricing",label:X("pricing"),icon:I.A}],ep=[{label:X("promptWorkspace"),href:"/video2prompt",icon:c.A,items:eo,onboardingTarget:!0,sections:el},{label:X("promptCollections"),href:"/prompts",icon:y.A,items:em,sections:ed},{label:X("integrations"),href:"/extension",icon:K.A,items:eh}],eg=function(e,s){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"w-4 h-4",o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.icon,n=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i,{className:l}),(0,a.jsx)("span",{children:e.label}),e.highlight&&(0,a.jsx)("span",{className:"w-2 h-2 rounded-full bg-violet-500 animate-pulse"})]}),c=()=>{o&&t(!1)};return e.external?(0,a.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:s,onClick:c,children:n},e.href):e.href.includes("#")?(0,a.jsx)("a",{href:e.href,className:s,onClick:c,children:n},e.href):(0,a.jsx)(r.N_,{href:e.href,className:s,onClick:c,children:n},e.href)};return Z.includes("/prompts/123/trial")?null:(0,a.jsxs)("header",{className:"sticky top-0 z-[10001] w-full border-b border-slate-200/50 bg-white/80 backdrop-blur-md shadow-sm supports-[backdrop-filter]:bg-white/60",children:[(0,a.jsxs)("div",{className:"w-full max-w-[100rem] mx-auto flex h-16 items-center px-4 sm:px-6 xl:px-8 min-[1440px]:justify-center",children:[(0,a.jsxs)(r.N_,{href:"/",className:"flex items-center space-x-1.5 sm:space-x-2 lg:space-x-3 mr-2 sm:mr-4 flex-shrink-0",children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"w-8 h-8 sm:w-10 sm:h-10 bg-gradient-to-br from-violet-600 to-cyan-600 rounded-xl flex items-center justify-center",children:(0,a.jsx)(c.A,{className:"w-4 h-4 sm:w-6 sm:h-6 text-white"})}),(0,a.jsx)("div",{className:"absolute -top-0.5 -right-0.5 sm:-top-1 sm:-right-1 w-3 h-3 sm:w-4 sm:h-4 bg-green-500 rounded-full border-2 border-white"})]}),(0,a.jsxs)("div",{className:"hidden sm:block",children:[(0,a.jsx)("span",{className:"text-xl sm:text-2xl font-bold bg-gradient-to-r from-violet-600 to-cyan-600 bg-clip-text text-transparent",children:"PromptHub"}),(0,a.jsx)("div",{className:"text-xs text-slate-500 font-medium",children:X("tagline")})]}),(0,a.jsx)("div",{className:"block sm:hidden",children:(0,a.jsx)("span",{className:"text-base sm:text-lg font-bold bg-gradient-to-r from-violet-600 to-cyan-600 bg-clip-text text-transparent",children:"PromptHub"})})]}),(0,a.jsxs)("nav",{className:"hidden min-[1440px]:flex items-center gap-3 2xl:gap-5 text-sm 2xl:text-base font-medium",children:[ex.slice(0,1).map(e=>{let t=e.icon;return(0,a.jsxs)(r.N_,{href:e.href,className:"font-medium transition-colors flex items-center space-x-1 whitespace-nowrap ".concat(et(e.href)?"text-violet-600":"text-slate-600 hover:text-violet-600"),children:[(0,a.jsx)(t,{className:"w-4 h-4"}),(0,a.jsx)("span",{children:e.label}),e.highlight&&(0,a.jsx)("span",{className:"w-2 h-2 rounded-full bg-violet-500 animate-pulse"})]},e.href)}),ep.map(e=>{let t=e.icon,s=e.items,l=!!e.sections,o=!!e.onboardingTarget,i=s.length>5,n=e.items.some(e=>et(e.href));return(0,a.jsxs)("div",{className:"relative group ".concat(o?"lab-menu-group":""),onMouseEnter:()=>
1{o&&Q&&2===Y&&J()},children:[(0,a.jsxs)(r.N_,{href:e.href,className:"".concat(o?"lab-menu-trigger":""," font-medium transition-colors flex items-center space-x-1 whitespace-nowrap ").concat(n?"text-violet-600":"text-slate-600 hover:text-violet-600"),"data-menu-type":o?"lab":"other",onClick:e=>{o&&Q&&2===Y&&e.preventDefault()},children:[(0,a.jsx)(t,{className:"w-4 h-4"}),(0,a.jsx)("span",{children:e.label}),(0,a.jsx)(E.A,{className:"w-4 h-4 transition-transform group-hover:rotate-180"})]}),(0,a.jsx)("div",{className:"absolute left-1/2 -translate-x-1/2 top-full pt-2 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 ".concat(o?"lab-dropdown-menu z-[10000]":""),children:(0,a.jsx)("div",{className:"p-2 border-0 shadow-lg rounded-xl bg-white/95 backdrop-blur-sm",children:l&&e.sections?(0,a.jsx)("div",{className:"grid grid-cols-3 gap-2 p-1 min-w-[44rem]",children:e.sections.map(e=>(0,a.jsxs)("div",{className:"min-w-0 px-2 py-1",children:[(0,a.jsx)("div",{className:"px-2 pb-2 text-xs font-semibold text-slate-400 uppercase",children:e.label}),(0,a.jsx)("div",{className:"space-y-0.5",children:e.items.map(e=>eg(e,"px-2.5 py-2 text-sm text-slate-600 hover:text-slate-900 hover:bg-slate-100 rounded-md transition-colors whitespace-nowrap flex items-center gap-2","w-4 h-4"))})]},e.label))}):(0,a.jsx)("div",{className:"gap-1 ".concat(i?"grid grid-rows-2 grid-flow-col auto-cols-max":"flex items-center"),children:s.map(e=>eg(e,"px-3 py-2 text-sm text-slate-600 hover:text-slate-900 hover:bg-slate-100 rounded-full transition-colors whitespace-nowrap flex items-center gap-1.5","w-3.5 h-3.5"))})})})]},e.label)}),eg(ex[1],"font-medium transition-colors flex items-center space-x-1 whitespace-nowrap ".concat(et(ex[1].href)?"text-violet-600":"text-slate-600 hover:text-violet-600"))]}),(0,a.jsxs)("div",{className:"ml-auto min-[1440px]:ml-3 flex items-center space-x-1.5 sm:space-x-2 2xl:space-x-3",children:[(0,a.jsx)($,{}),G?(0,a.jsxs)("div",{className:"flex items-center space-x-1.5 sm:space-x-2 2xl:space-x-3",children:[((null==s?void 0:s.email)==="[email protected]"||(null==s?void 0:s.role)==="admin")&&(0,a.jsx)(r.N_,{href:"/admin",children:(0,a.jsx)(l.$,{variant:"outline",className:"text-orange-600 border-orange-200 hover:bg-orange-50 px-2 h-9 rounded-xl",title:"管ç颿¿",children:(0,a.jsx)("span",{children:"âï¸"})})}),(0,a.jsxs)(o.rI,{modal:!1,children:[(0,a.jsx)(o.ty,{asChild:!0,children:(0,a.jsxs)(l.$,{variant:"outline",className:"gap-1 sm:gap-2 px-2 sm:px-3 lg:px-4 h-8 sm:h-9 lg:h-10 rounded-xl bg-white border-slate-200 text-slate-700 hover:bg-slate-50 shadow-sm transition-all duration-300",children:[(0,a.jsx)(P.A,{className:"w-4 h-4"}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("span",{className:"hidden max-w-[50px] truncate text-xs sm:inline sm:text-sm",children:((null==s?void 0:s.username)||(null==s?void 0:s.email)||X("user")).slice(0,5)}),(0,a.jsx)("span",{className:"hidden lg:inline",children:V&&V.isPro?(0,a.jsxs)(R.E,{className:"bg-gradient-to-r from-yellow-500 to-orange-500 text-white shadow-sm border-0 text-xs px-2 py-0.5 ml-2 gap-1 font-medium",children:[(0,a.jsx)(i.A,{className:"w-3 h-3"}),"Pro"]}):null})]}),(0,a.jsx)(E.A,{className:"w-3 h-3 sm:w-4 sm:h-4 hidden sm:inline"})]})}),(0,a.jsxs)(o.SQ,{align:"end",className:"w-56",children:[(0,a.jsxs)("div",{className:"px-3 py-3 border-b border-slate-100",children:[(0,a.jsx)("div",{className:"text-xs text-slate-500 mb-1",children:"å½åç»å½"}),(0,a.jsx)("div",{className:"text-sm font-medium text-slate-900 truncate",children:(null==s?void 0:s.email)||(null==s?void 0:s.username)||X("user")})]}),(0,a.jsx)(o._2,{asChild:!0,children:(0,a.jsxs)(r.N_,{href:"/user/".concat(null==s?void 0:s.username),className:"flex items-center gap-2 w-full",children:[(0,a.jsx)(P.A,{className:"w-4 h-4"}),X("profile")]})}),(0,a.jsx)(o._2,{asChild:!0,children:(0,a.jsxs)(r.N_,{href:"/my-prompts",className:"flex items-center gap-2 w-full",children:[(0,a.jsx)(L.A,{className:"w-4 h-4"}),X("myPrompts")]})}),(0,a.jsx)(o._2,{asChild:!0,children:(0,a.jsxs)(r.N_,{href:"/my-assets",className:"flex items-center gap-2 w-full",children:[(0,a.jsx)(b.A,{className:"w-4 h-4"}),X("myAssetsNav")]})}),(0,a.jsx)(o._2,{asChild:!0,children:(0,a.jsxs)(r.N_,{href:"/ai-history",className:"flex items-center gap-2 w-full",children:[(0,a.jsx)(W.A,{className:"w-4 h-4"}),"AI使ç¨åå²"]})}),(0,a.jsx)(o._2,{asChild:!0,children:(0,a.jsxs)(r.N_,{href:"/account/membership",className:"flex items-center gap-2 w-full",children:[(0,a.jsx)(i.A,{className:"w-4 h-4"}),X("membership")]})}),(0,a.jsx)(o._2,{asChild:!0,children:(0,a.jsxs)(r.N_,{href:"/account/orders",className:"flex items-center gap-2 w-full",children:[(0,a.jsx)(L.A,{className:"w-4 h-4"}),X("orders")]})}),(0,a.jsx)(o.mB,{}),(0,a.jsx)(o._2,{asChild:!0,children:(0,a.jsxs)(r.N_,{href:"/account/settings",className:"flex items-center gap-2 w-full",children:[(0,a.jsx)(O.A,{className:"w-4 h-4"}),X("settings")]})}),(0,a.jsx)(o.mB,{}),(0,a.jsxs)(o._2,{onClick:ee,className:"flex items-center gap-2 text-red-600",children:[(0,a.jsx)(T.A,{className:"w-4 h-4"}),X("logout")]})]})]})]}):(0,a.jsx)("div",{className:"flex items-center space-x-1.5 sm:space-x-2",children:(0,a.jsx)(r.N_,{href:"/auth/login",children:(0,a.jsxs)(l.$,{variant:"outline",size:"sm",className:"gap-1 sm:gap-2 px-2 sm:px-4 h-8 sm:h-9 rounded-xl bg-white border-slate-200 text-slate-700 hover:bg-slate-50 shadow-sm transition-all duration-300",children:[(0,a.jsx)(P.A,{className:"w-4 h-4"}),(0,a.jsx)("span",{className:"text-xs sm:text-sm",children:X("login")})]})})}),(0,a.jsx)("div",{className:"min-[1440px]:hidden",children:(0,a.jsx)(l.$,{variant:"ghost",size:"sm",onClick:()=>t(!e),"aria-label":X(e?"closeMenu":"openMenu"),className:"p-2",children:e?(0,a.jsx)(U.A,{className:"w-5 h-5"}):(0,a.jsx)(M.A,{className:"w-5 h-5"})})})]})]}),e&&(0,a.jsx)("div",{className:"min-[1440px]:hidden border-t bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:(0,a.jsx)("div",{className:"container max-h-[calc(100vh-7.75rem)] overflow-y-auto overscroll-y-contain px-4 py-4",children:(0,a.jsxs)("nav",{className:"space-y-4 pb-4",children:[ex.map(e=>eg(e,"flex items-center space-x-2 font-medium transition-colors py-2 ".concat(e.external?"text-gray-700 hover:text-violet-600":et(e.href)?"text-violet-600":"text-gray-700 hover:text-violet-600"),"w-4 h-4",!0)),ep.map(e=>{let t=e.icon,s=!!e.onboardingTarget;return(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"".concat(s?"lab-menu-trigger-mobile":""," flex items-center space-x-2 text-gray-700 font-medium py-2 ").concat(s&&Q&&2===Y?"cursor-pointer":""),onClick:()=>
1{s&&Q&&2===Y&&J()},children:[(0,a.jsx)(t,{className:"w-4 h-4"}),(0,a.jsx)("span",{children:e.label})]}),(0,a.jsx)("div",{className:"pl-6 space-y-3",children:(e.sections||[{label:"",items:e.items}]).map(t=>(0,a.jsxs)("div",{className:"space-y-1.5",children:[t.label&&(0,a.jsx)("div",{className:"text-xs font-semibold text-slate-400",children:t.label}),t.items.map(e=>eg(e,"flex items-center space-x-2 transition-colors py-1 ".concat(e.external?"text-gray-600 hover:text-violet-600":et(e.href)?"text-violet-600":"text-gray-600 hover:text-violet-600"),"w-4 h-4",!0))]},t.label||e.label))})]},e.label)}),(0,a.jsx)("div",{className:"pt-3 mt-3 border-t border-slate-200",children:(0,a.jsx)($,{})})]})})})]})}},45710:(e,t,s)=>{"use strict";s.d(t,{Yk:()=>o,default:()=>l});var a=s(12115),r=s(20063);function l(){let e=(0,r.usePathname)(),t=(0,r.useSearchParams)();return(0,r.useRouter)(),(0,a.useEffect)(()=>{try{let e=new URLSearchParams(window.location.search),t=e.get("source")||e.get("ref")||e.get("utm_source")||e.get("referral"),s=e.get("utm_campaign"),a=e.get("utm_medium"),r=e.get("utm_content"),l=e.get("utm_term"),o=e.get("invite");if(t){console.log("\uD83D\uDCCA [æ¸ é追踪] æ£æµå°æ¸ 鿥æº:",t);let e={source:t,campaign:s||"",medium:a||"",content:r||"",term:l||"",timestamp:new Date().toISOString(),landingPage:window.location.pathname+window.location.search};localStorage.setItem("referral_source",t),localStorage.setItem("referral_data",JSON.stringify(e));let o=new Date;o.setDate(o.getDate()+30),document.cookie="referral_source=".concat(t,"; expires=").concat(o.toUTCString(),"; path=/; SameSite=Lax"),document.cookie="referral_data=".concat(encodeURIComponent(JSON.stringify(e)),"; expires=").concat(o.toUTCString(),"; path=/; SameSite=Lax"),console.log("â
[æ¸ é追踪] æ¸ éä¿¡æ¯å·²ä¿å:",e)}else{let e=localStorage.getItem("referral_source");e&&console.log("\uD83D\uDCCA [æ¸ é追踪] 使ç¨å·²ä¿åçæ¸ 鿥æº:",e)}if(o){console.log("\uD83D\uDCE8 [é请追踪] æ£æµå°é请ç :",o),localStorage.setItem("invite_code",o);let e=new Date;e.setDate(e.getDate()+30),document.cookie="invite_code=".concat(o,"; expires=").concat(e.toUTCString(),"; path=/; SameSite=Lax"),console.log("â
[é请追踪] é请ç å·²ä¿å:",o)}else{let e=localStorage.getItem("invite_code");e&&console.log("\uD83D\uDCE8 [é请追踪] 使ç¨å·²ä¿åçé请ç :",e)}}catch(e){console.error("â [æ¸ é追踪] ä¿åæ¸ éä¿¡æ¯å¤±è´¥:",e)}},[t]),(0,a.useEffect)(()=>{let t=localStorage.getItem("referral_source"),s=localStorage.getItem("invite_code");if(!t&&!s)return;let a=new URLSearchParams(window.location.search),r=a.has("ref")||a.has("source")||a.has("utm_source"),l=a.has("invite");if(t&&!r||s&&!l){let a=new URLSearchParams(window.location.search);t&&!r&&(a.set("ref",t),console.log("\uD83D\uDD04 [æ¸ é追踪] èªå¨æ·»å æ¸ éåæ°å°URL:",t)),s&&!l&&(a.set("invite",s),console.log("\uD83D\uDD04 [é请追踪] èªå¨æ·»å é请ç å°URL:",s));let o="".concat(e,"?").concat(a.toString());window.history.replaceState(null,"",o)}},[e,t]),null}function o(){try{let e=localStorage.getItem("referral_data");return e?JSON.parse(e):null}catch(e){return null}}},71129:(e,t,s)=>{"use strict";s.d(t,{z:()=>l});var a=s(12115),r=s(57020);function l(){let{user:e}=(0,r.A)(),[t,s]=(0,a.useState)("not_started"),[l,o]=(0,a.useState)(0),[i,n]=(0,a.useState)(!1),[c,d]=(0,a.useState)(!1),[m,h]=(0,a.useState)(!1);(0,a.useEffect)(()=>{h(!0);let e=localStorage.getItem("onboarding_status"),t=localStorage.getItem("onboarding_step"),a="true"===localStorage.getItem("onboarding_show_completion");e&&(s(e),t&&"in_progress"===e&&o(parseInt(t))),a&&d(!0);let r=e=>{d(e.detail.showCompletion),console.log("\uD83D\uDD04 [useOnboarding] èªå®ä¹äºä»¶è§¦åï¼showCompletion =",e.detail.showCompletion)};window.addEventListener("onboarding-completion-changed",r);let l=e=>{"onboarding_show_completion"===e.key&&(d("true"===e.newValue),console.log("\uD83D\uDD04 [useOnboarding] localStorage ååï¼showCompletion =","true"===e.newValue))};return window.addEventListener("storage",l),()=>{window.removeEventListener("onboarding-completion-changed",r),window.removeEventListener("storage",l)}},[]),(0,a.useEffect)(()=>
1{if(!e||!m)return;let t=localStorage.getItem("onboarding_status"),a=localStorage.getItem("onboarding_step");t?(s(t),a&&"in_progress"===t&&o(parseInt(a))):(s("not_started"),localStorage.setItem("onboarding_status","not_started"))},[e,m]);let x=()=>!!e&&"not_started"===t;return{status:t,currentStep:l,showWelcome:i,showCompletion:c,setShowWelcome:n,setShowCompletion:d,startOnboarding:()=>{console.log("\uD83D\uDE80 [startOnboarding] ç¹å»äºå¼å§å¼å¯¼æé®"),console.log("\uD83D\uDE80 [startOnboarding] è®¾ç½®ç¶æ: in_progress, step: 1"),s("in_progress"),o(1),localStorage.setItem("onboarding_status","in_progress"),localStorage.setItem("onboarding_step","1"),n(!1),console.log("â
[startOnboarding] localStorage å·²æ´æ°:",{status:localStorage.getItem("onboarding_status"),step:localStorage.getItem("onboarding_step")}),console.log("â
[startOnboarding] React state å·²æ´æ°ï¼ç¶æåºè¯¥ä¼ä¼ éå° PromptCard")},skipOnboarding:()=>{s("skipped"),o(0),localStorage.setItem("onboarding_status","skipped"),localStorage.removeItem("onboarding_step"),n(!1)},completeOnboarding:async()=>{try{var e;let t=await fetch("/api/user/complete-onboarding",{method:"POST",credentials:"include"}),a=await t.json();if(a.success)return s("completed"),localStorage.setItem("onboarding_status","completed"),localStorage.removeItem("onboarding_show_completion"),a.data;if(null==(e=a.data)?void 0:e.alreadyClaimed)return console.log("â
å·²å®æè¿æ°æå¼å¯¼ï¼ç´æ¥æ è®°ä¸ºå®æ"),s("completed"),localStorage.setItem("onboarding_status","completed"),localStorage.removeItem("onboarding_show_completion"),a.data;return console.error("è®°å½å¼å¯¼å®æç¶æå¤±è´¥:",a.message),null}catch(e){return console.error("宿å¼å¯¼å¤±è´¥:",e),null}},nextStep:()=>{let e=localStorage.getItem("onboarding_step"),t=e?parseInt(e):1,s=t+1;console.log("\uD83D\uDD27 [nextStep] æ´æ°æ¥éª¤:",{from:t,to:s,reactState:l}),o(s),localStorage.setItem("onboarding_step",s.toString()),console.log("â
[nextStep] localStorage å·²æ´æ° step =",s)},onLabMenuClicked:()=>{2===l&&(console.log("\uD83C\uDF89 å®éªå®¤èåå·²å±å¼ï¼æ¾ç¤ºå®æå¼¹çª"),console.log("\uD83D\uDCCA å½å showCompletion ç¶æ:",c),d(!0),localStorage.setItem("onboarding_show_completion","true"),window.dispatchEvent(new CustomEvent("onboarding-completion-changed",{detail:{showCompletion:!0}})),console.log("â
å·²è°ç¨ setShowCompletion(true) å¹¶åå¨å° localStorage"))},checkShouldShowWelcome:x,triggerWelcome:()=>{x()&&n(!0)},isOnboarding:"in_progress"===t}}},71912:(e,t,s)=>{Promise.resolve().then(s.bind(s,3809)),Promise.resolve().then(s.t.bind(s,41402,23)),Promise.resolve().then(s.t.bind(s,76076,23)),Promise.resolve().then(s.t.bind(s,13673,23)),Promise.resolve().then(s.bind(s,75711)),Promise.resolve().then(s.bind(s,44300)),Promise.resolve().then(s.bind(s,92671)),Promise.resolve().then(s.bind(s,90432)),Promise.resolve().then(s.bind(s,77718)),Promise.resolve().then(s.bind(s,94791)),Promise.resolve().then(s.bind(s,45710)),Promise.resolve().then(s.bind(s,57020))},75711:(e,t,s)=>{"use strict";s.d(t,{FooterWrapper:()=>w});var a=s(95155),r=s(20063),l=s(34663),o=s(95740),i=s(24033),n=s(39068),c=s(5937),d=s(23664),m=s(83457),h=s(12115),x=s(90960),p=s(18955);let g=[{name:"å°çº¢ä¹¦",emoji:"\uD83D\uDCF1",color:"from-red-400 to-pink-500",bgColor:"bg-red-500",qrCode:"/images/social/xiaohongshu-qr.png",icon:"/images/social/xiaohongshu-icon.png",profileUrl:"https://www.xiaohongshu.com/user/profile/5aea7f504eacab64a90e6fed"},{name:"æé³",emoji:"\uD83C\uDFB5",color:"from-black to-gray-700",bgColor:"bg-gray-800",qrCode:"/images/social/douyin-qr.png",icon:"/images/social/douyin-icon.png",profileUrl:"https://www.douyin.com/user/MS4wLjABAAAAhYryCppE36QBd2080nJr5Yu0gOAIeAyROpt1FVDcIfM"},{name:"Bç«",emoji:"\uD83D\uDCFA",color:"from-pink-400 to-blue-500",bgColor:"bg-pink-500",qrCode:"/images/social/bilibili-qr.png",icon:"/images/social/bilibili-icon.png",profileUrl:"https://space.bilibili.com/3546555153910411"},{name:"微信",emoji:"\uD83D\uDCAC",color:"from-green-400 to-green-600",bgColor:"bg-green-500",qrCode:"/images/social/wechat-qr.png",icon:"/images/social/wechat-icon.png",profileUrl:"#"}];function u(e){let{sectionTitle:t}=e,[s,r]=(0,h.useState)([]),[l,o]=(0,h.useState)(!0);(0,h.useEffect)(()=>{(async()=>{try{let e=await fetch(x.FH.friendlyLinks.list);if(e.ok){let t=await e.json();r(t)}else r([{id:"1",name:"OpenAI",url:"https://openai.com",description:"AI Leader"},{id:"2",name:"Anthropic",url:"https://anthropic.com",description:"AI Safety"},{id:"3",name:"Hugging Face",url:"https://huggingface.co",description:"AI Community"},{id:"4",name:"GitHub",url:"https://github.com",description:"Code Platform"},{id:"5",name:"Vercel",url:"https://vercel.com",description:"Deployment"},{id:"6",name:"Next.js",url:"https://nextjs.org",description:"React Framework"},{id:"7",name:"Tailwind CSS",url:"https://tailwindcss.com",description:"CSS Framework"}])}catch(e){console.error("Failed to fetch friendly links:",e),r([{id:"1",name:"OpenAI",url:"https://openai.com",description:"AI Leader"},{id:"2",name:"Anthropic",url:"https://anthropic.com",description:"AI Safety"},{id:"3",name:"Hugging Face",url:"https://huggingface.co",description:"AI Community"},{id:"4",name:"GitHub",url:"https://github.com",description:"Code Platform"},{id:"5",name:"Vercel",url:"https://vercel.com",description:"Deployment"},{id:"6",name:"Next.js",url:"https://nextjs.org",description:"React Framework"},{id:"7",name:"Tailwind CSS",url:"https://tailwindcss.com",description:"CSS Framework"}])}finally{o(!1)}})()},[]);let i=Math.ceil(s.length/5);if(l)return(0,a.jsxs)("div",{className:"lg:col-span-1",children:[(0,a.jsx)("h4",{className:"text-sm font-semibold text-white mb-2",children:t}),(0,a.jsx)("div",{className:"space-y-1.5",children:[1,2,3,4,5,6].map(e=>(0,a.jsx)("div",{className:"h-3.5 bg-white/5 rounded animate-pulse"},e))})]});if(i<=1)return(0,a.jsxs)("div",{className:"lg:col-span-1",children:[(0,a.jsx)("h4",{className:"text-sm font-semibold text-white mb-2",children:t}),(0,a.jsx)("div",{className:"space-y-1.5",children:s.map(e=>(0,a.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"block text-slate-400 text-sm transition-all duration-300 hover:text-cyan-300 hover:shadow-[0_0_10px_rgba(34,211,238,0.3)]",title:e.description,children:e.name},e.id))})]});let n=[];for(let e=0;e<i;e++){let t=5*e,a=Math.min(t+5,s.length);n.push(s.slice(t,a))}return(0,a.jsxs)("div",{className:"lg:col-span-1",children:[(0,a.jsx)("h4",{className:"text-sm font-semibold text-white mb-2",children:t}),(0,a.jsx)("div",{className:"grid gap-1 ".concat(2===i?"grid-cols-2":"grid-cols-1"),children:n.map((e,t)=>(0,a.jsx)("div",{className:"space-y-1",children:e.map(e=>(0,a.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"block text-slate-400 text-sm transition-all duration-300 hover:text-cyan-300 hover:shadow-[0_0_10px_rgba(34,211,238,0.3)]",title:e.description,children:e.name},e.id))},t))})]})}function b(){let[e,t]=(0,h.useState)(null),s=(0,p.c)("footer"),r=s=>{t(e===s?null:s)},x={å°çº¢ä¹¦:s("social.xiaohongshu"),æé³:s("social.douyin"),Bç«:s("social.bilibili"),微信:s("social.wechat")};return(0,a.jsxs)("footer",{className:"relative bg-slate-950 text-white overflow-hidden",children:[(0,a.jsxs)("div",{className:"absolute inset-0 pointer-events-none",children:[(0,a.jsx)("div",{className:"absolute top-[-50%] left-[-20%] w-[80%] h-[80%
1] bg-violet-600/10 rounded-full blur-[120px] animate-pulse"}),(0,a.jsx)("div",{className:"absolute bottom-[-20%] right-[-20%] w-[60%] h-[60%] bg-cyan-600/10 rounded-full blur-[100px] animate-pulse delay-1000"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-white/5 backdrop-blur-3xl"})]}),(0,a.jsxs)("div",{className:"relative px-4 py-6 z-10",children:[(0,a.jsxs)("div",{className:"text-center mb-6",children:[(0,a.jsxs)("div",{className:"flex items-center justify-center space-x-3 mb-3",children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-gradient-to-r from-violet-600 to-cyan-600 shadow-[0_0_15px_rgba(124,58,237,0.5)]",children:(0,a.jsx)(o.A,{className:"h-5 w-5 text-white"})}),(0,a.jsx)("div",{className:"absolute -top-1 -right-1 w-3 h-3 bg-green-500 rounded-full border border-slate-900 shadow-[0_0_8px_rgba(34,197,94,0.8)]"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-lg font-bold text-white drop-shadow-md",children:"PromptHub"}),(0,a.jsx)("p",{className:"text-violet-200 text-xs font-medium",children:s("brand.tagline")})]})]}),(0,a.jsxs)("p",{className:"text-slate-300 text-sm leading-relaxed",children:[(0,a.jsx)("span",{className:"text-cyan-300 font-semibold drop-shadow-[0_0_5px_rgba(34,211,238,0.5)]",children:s("brand.description")}),"ï¼",s("brand.subDescription")]})]}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"border-b border-white/10 pb-4",children:[(0,a.jsxs)("button",{onClick:()=>r("main"),className:"flex items-center justify-between w-full text-left",children:[(0,a.jsx)("h4",{className:"text-base font-semibold text-white",children:s("sections.mainFeatures")}),(0,a.jsx)(i.A,{className:"h-5 w-5 text-slate-400 transform transition-transform duration-200 ".concat("main"===e?"rotate-180":"")})]}),"main"===e&&(0,a.jsx)("div",{className:"mt-3 space-y-3",children:[{labelKey:"promptLibrary",href:"/prompts"},{labelKey:"skillLibrary",href:"/skills"},{labelKey:"dshPluginLibrary",href:"/plugins"},{labelKey:"gallery",href:"/gallery"},{labelKey:"aiNews",href:"/ai-news"},{labelKey:"aiImage",href:"/ai-image"},{labelKey:"promptEngineering",href:"/solutions"},{labelKey:"careers",href:"/for"},{labelKey:"pricing",href:"/pricing"}].map((e,t)=>(0,a.jsx)(l.N_,{href:e.href,className:"block text-slate-200 py-2 px-3 rounded-lg bg-white/5 border border-white/5 transition-all duration-300 hover:bg-white/10 hover:border-cyan-500/30 hover:text-cyan-300 hover:shadow-[0_0_10px_rgba(34,211,238,0.2)]",children:s("links.".concat(e.labelKey))},t))})]}),(0,a.jsxs)("div",{className:"border-b border-white/10 pb-4",children:[(0,a.jsxs)("button",{onClick:()=>r("tools"),className:"flex items-center justify-between w-full text-left",children:[(0,a.jsx)("h4",{className:"text-base font-semibold text-white",children:s("sections.tools")}),(0,a.jsx)(i.A,{className:"h-5 w-5 text-slate-400 transform transition-transform duration-200 ".concat("tools"===e?"rotate-180":"")})]}),"tools"===e&&(0,a.jsx)("div",{className:"mt-3 space-y-3",children:[{labelKey:"mcpIntegration",href:"/mcp"},{labelKey:"video2prompt",href:"/video2prompt"},{labelKey:"aiImageCutter",href:"/ai-image-cutter"},{labelKey:"browserExtension",href:"/extension"},{labelKey:"desktopApp",href:"/desktop"}].map((e,t)=>(0,a.jsx)(l.N_,{href:e.href,className:"block text-slate-200 py-2 px-3 rounded-lg bg-white/5 border border-white/5 transition-all duration-300 hover:bg-white/10 hover:border-cyan-500/30 hover:text-cyan-300 hover:shadow-[0_0_10px_rgba(34,211,238,0.2)]",children:s("links.".concat(e.labelKey))},t))})]}),(0,a.jsxs)("div",{className:"border-b border-white/10 pb-4",children:[(0,a.jsxs)("button",{onClick:()=>r("links"),className:"flex items-center justify-between w-full text-left",children:[(0,a.jsx)("h4",{className:"text-base font-semibold text-white",children:s("sections.friendlyLinks")}),(0,a.jsx)(i.A,{className:"h-5 w-5 text-slate-400 transform transition-transform duration-200 ".concat("links"===e?"rotate-180":"")})]}),"links"===e&&(0,a.jsx)("div",{className:"mt-3 space-y-3",children:[{name:"AI Nav",url:"https://ai-nav.com"},{name:"AI Findr Tools Directory",url:"https://aifindr.com"},{name:"RightAI Tools Directory",url:"https://rightai.com"},{name:"GitHub",url:"https://github.com"}].map((e,t)=>(0,a.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"block text-slate-200 py-2 px-3 rounded-lg bg-white/5 border border-white/5 transition-all duration-300 hover:bg-white/10 hover:border-cyan-500/30 hover:text-cyan-300 hover:shadow-[0_0_10px_rgba(34,211,238,0.2)
1]",children:e.name},t))})]}),(0,a.jsxs)("div",{className:"pb-4",children:[(0,a.jsxs)("button",{onClick:()=>r("social"),className:"flex items-center justify-between w-full text-left",children:[(0,a.jsx)("h4",{className:"text-base font-semibold text-white",children:s("sections.followUs")}),(0,a.jsx)(i.A,{className:"h-5 w-5 text-slate-400 transform transition-transform duration-200 ".concat("social"===e?"rotate-180":"")})]}),"social"===e&&(0,a.jsxs)("div",{className:"mt-3",children:[(0,a.jsx)("div",{className:"grid grid-cols-4 gap-4 mb-4",children:g.map((e,t)=>(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsxs)("div",{className:"w-12 h-12 bg-white/5 backdrop-blur-md border border-white/10 rounded-xl flex items-center justify-center cursor-pointer transition-all duration-300 hover:scale-105 hover:bg-white/10 hover:border-white/20 hover:shadow-[0_0_15px_rgba(255,255,255,0.1)] mx-auto",onClick:()=>{e.profileUrl&&"#"!==e.profileUrl&&window.open(e.profileUrl,"_blank","noopener noreferrer")},title:"".concat(s("social.clickToVisit")," ").concat(x[e.name]||e.name),children:[(0,a.jsx)("img",{src:e.icon,alt:x[e.name]||e.name,className:"w-6 h-6 drop-shadow-md",onError:e=>{e.currentTarget.style.display="none";let t=e.currentTarget.nextElementSibling;t&&(t.style.display="block")}}),(0,a.jsx)("span",{className:"text-white text-lg",style:{display:"none"},children:e.emoji})]}),(0,a.jsx)("p",{className:"text-xs text-slate-400 mt-1",children:x[e.name]||e.name})]},t))}),(0,a.jsxs)("div",{className:"flex items-center justify-center space-x-3",children:[(0,a.jsx)("span",{className:"text-sm text-slate-400",children:s("sections.contactUs")}),[{icon:n.A,href:"#",labelKey:"officialWebsite",color:"hover:bg-blue-600"},{icon:c.A,href:"#",labelKey:"community",color:"hover:bg-green-600"},{icon:d.A,href:"mailto:[email protected]",labelKey:"email",color:"hover:bg-purple-600"},{icon:m.A,href:"#",labelKey:"favorite",color:"hover:bg-red-600"}].map((e,t)=>(0,a.jsx)("a",{href:e.href,title:s("social.".concat(e.labelKey)),className:"flex h-8 w-8 items-center justify-center rounded-lg bg-white/5 border border-white/5 text-slate-400 transition-all duration-300 ".concat(e.color," hover:text-white hover:border-white/20 hover:shadow-lg"),children:(0,a.jsx)(e.icon,{className:"h-3 w-3"})},t))]})]})]})]}),(0,a.jsxs)("div",{className:"pt-4 border-t border-white/10 text-center space-y-3",children:[(0,a.jsx)("p",{className:"text-slate-400 text-sm",children:s("legal.copyright")}),(0,a.jsx)("div",{className:"flex flex-wrap items-center justify-center gap-4 text-sm",children:[{labelKey:"about",href:"/about"},{labelKey:"terms",href:"/terms"},{labelKey:"privacy",href:"/privacy"}].map((e,t)=>(0,a.jsx)(l.N_,{href:e.href,className:"text-slate-400 transition-all duration-300 hover:text-cyan-300 hover:drop-shadow-[0_0_5px_rgba(34,211,238,0.5)]",children:s("legal.".concat(e.labelKey))},t))}),(0,a.jsx)("p",{className:"text-slate-500 text-xs",children:(0,a.jsx)("a",{href:"https://beian.miit.gov.cn",target:"_blank",rel:"noopener noreferrer",className:"hover:text-cyan-300 transition-colors duration-300",children:s("legal.icp")})})]})]})]})}function f(){let e=(0,p.c)("footer"),t={å°çº¢ä¹¦:e("social.xiaohongshu"),æé³:e("social.douyin"),Bç«:e("social.bilibili"),微信:e("social.wechat")};return(0,a.jsxs)("footer",{className:"relative bg-slate-950 text-white overflow-visible",children:[(0,a.jsxs)("div",{className:"absolute inset-0 pointer-events-none overflow-hidden",children:[(0,a.jsx)("div",{className:"absolute top-[-20%] left-[10%] w-[600px] h-[600px] bg-violet-600/20 rounded-full blur-[120px] animate-pulse"}),(0,a.jsx)("div",{className:"absolute bottom-[-20%] right-[10%] w-[500px] h-[500px] bg-cyan-600/15 rounded-full blur-[100px] animate-pulse delay-700"}),(0,a.jsx)("div",{className:"absolute top-[40%] left-[40%] w-[300px] h-[300px] bg-fuchsia-500/10 rounded-full blur-[80px] animate-pulse delay-1000"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-slate-950/60 backdrop-blur-3xl"}),(0,a.jsx)("div",{className:"absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-white/10 to-transparent"})]}),(0,a.jsxs)("div",{className:"relative mx-auto max-w-7xl px-2 pt-12 pb-16 sm:px-3 lg:px-4 z-10",children:[(0,a.jsxs)("div",{className:"grid gap-8 lg:grid-cols-5 lg:items-start",children:[(0,a.jsxs)("div",{className:"lg:col-span-2 text-left",children:[(0,a.jsxs)("div",{className:"mb-8",children:[(0,a.jsxs)("div",{className:"flex items-center space-x-3 mb-5",children:[(0,a.jsxs)("div",{className:"relative group",children:[(0,a.jsx)("div",{className:"absolute -inset-1 bg-gradient-to-r from-violet-600 to-cyan-600 rounded-xl blur opacity-40 group-hover:opacity-70 transition duration-500"}),(0,a.jsx)("div",{className:"relative flex h-12 w-12 items-center justify-center rounded-xl bg-slate-900/90 border border-white/10 shadow-xl",children:(0,a.jsx)(o.A,{className:"h-6 w-6 text-white drop-shadow-[0_0_5px_rgba(255,255,255,0.5)]"})}),(0,a.jsx)("div",{className:"absolute -top-1 -right-1 w-4 h-4 bg-green-500 rounded-full border-2 border-slate-900 flex items-center justify-center shadow-[0_0_8px_rgba(34,197,94,0.8)]",children:(0,a.jsx)("div",{className:"w-1.5 h-1.5 bg-white rounded-full"})})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-2xl font-bold bg-gradient-to-r from-white via-slate-200 to-slate-400 bg-clip-text text-transparent drop-shadow-sm",children:"PromptHub"}),(0,a.jsx)("p",{className:"text-violet-200/80 font-medium text-sm tracking-wide",children:e("brand.tagline")})]})]}),(0,a.jsxs)("div",{className:"space-y-4 max-w-xl",children:[(0,a.jsxs)("p",{className:"text-slate-300 leading-relaxed text-base",children:[(0,a.jsx)("span",{className:"text-cyan-300 font-semibold drop-shadow-[0_0_8px_rgba(34,211,238,0.4)]",children:e("brand.description")}),"ï¼",e("brand.subDescription")]}),(0,a.jsx)("p",{className:"text-slate-400 leading-relaxed text-sm",children:e("brand.communityDesc")})]})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,a.jsx)("span",{className:"text-sm text-slate-400 mr-2 font-medium",children:e("sections.contactUs")}),[{icon:n.A,href:"#",labelKey:"officialWebsite",color:"hover:bg-blue-500"},{icon:c.A,href:"#",labelKey:"community",color:"hover:bg-green-500"},{icon:d.A,href:"mailto:[email protected]",labelKey:"email",color:"hover:bg-purple-500"},{icon:m.A,href:"#",labelKey:"favorite",color:"hover:bg-red-500"}].map((t,s)=>(0,a.jsx)("a",{href:t.href,title:e("social.".concat(t.labelKey)),className:"group flex h-10 w-10 items-center justify-center rounded-xl bg-white/5 border border-white/5 text-slate-400 transition-all duration-300 ".concat(t.color," hover:text-white hover:border-white/20 hover:scale-110 hover:shadow-[0_0_15px_rgba(255,255,255,0.15)] backdrop-blur-sm"),children:(0,a.jsx)(t.icon,{className:"h-4 w-4 group-hover:scale-110 transition-transform duration-300"})},s))]})]}),(0,a.jsxs)("div",{className:"lg:col-span-1 grid grid-cols-2 gap-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"text-sm font-bold text-white mb-4 tracking-wide",children:e("sections.mainFeatures")}),(0,a.jsx)("div",{className:"space-y-2",children:[{labelKey:"promptLibrary",href:"/prompts"},{labelKey:"skillLibrary",href:"/skills"},{labelKey:"dshPluginLibrary",href:"/plugins"},{labelKey:"gallery",href:"/gallery"},{labelKey:"aiNews",href:"/ai-news"},{labelKey:"promptEngineering",href:"/solutions"},{labelKey:"careers",href:"/for"},{labelKey:"pricing",href:"/pricing"}].map((t,s)=>(0,a.jsx)(l.N_,{href:t.href,className:"block text-slate-400 text-sm transition-all duration-300 hover:text-cyan-300 hover:translate-x-1 hover:drop-shadow-[0_0_5px_rgba(34,211,238,0.5)]",children:e("links.".concat(t.labelKey))},s))})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"text-sm font-bold text-white mb-4 tracking-wide",children:e("sections.tools")}),(0,a.jsx)("div",{className:"space-y-2",children:[{labelKey:"mcpIntegration",href:"/mcp"},{labelKey:"video2prompt",href:"/video2prompt"},{labelKey:"aiImageCutter",href:"/ai-image-cutter"},{labelKey:"browserExtension",href:"/extension"},{labelKey:"desktopApp",href:"/desktop"}].map((t,s)=>(0,a.jsx)(l.N_,{href:t.href,className:"block text-slate-400 text-sm transition-all duration-300 hover:text-cyan-300 hover:translate-x-1 hover:drop-shadow-[0_0_5px_rgba(34,211,238,0.5)]",children:e("links.".concat(t.labelKey))},s))})]})]}),(0,a.jsx)(u,{sectionTitle:e("sections.friendlyLinks")}),(0,a.jsx)("div",{className:"lg:col-span-1 flex flex-col justify-self-end",children:(0,a.jsxs)("div",{className:"w-full text-center",children:[(0,a.jsx)("h4",{className:"mb-6 text-lg font-bold text-white tracking-wide",children:e("sections.followUs")}),(0,a.jsx)("div",{className:"flex items-center justify-center space-x-5",children:g.map((s,r)=>(0,a.jsxs)("div",{className:"relative group",children:[(0,a.jsxs)("div",{className:"w-12 h-12 bg-white/5 backdrop-blur-md border border-white/10 rounded-2xl flex items-center justify-center cursor-pointer transition-all duration-300 group-hover:scale-110 group-hover:bg-white/10 group-hover:border-white/20 group-hover:shadow-[0_0_20px_rgba(255,255,255,0.15)]",onClick:()=>{s.profileUrl&&"#"!==s.profileUrl&&window.open(s.profileUrl,"_blank","noopener noreferrer")},title:"".concat(e("social.clickToVisit")," ").concat(t[s.name]||s.name),children:[(0,a.jsx)("img",{src:s.icon,alt:t[s.name]||s.name,className:"w-6 h-6 drop-shadow-md",onError:e=>{e.currentTarget.style.display="none";let t=e.currentTarget.nextElementSibling;t&&(t.style.display="block")}}),(0,a.jsx)("span",{className:"text-white text-lg",style:{display:"none"},children:s.emoji})]}),(0,a.jsx)("div",{className:"absolute bottom-full mb-4 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-300 z-[9999] pointer-events-none group-hover:pointer-events-auto ".concat(r===g.length-1?"right-0":"left-1/2 -translate-x-1/2"),children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("div",{className:"bg-slate-900/80 backdrop-blur-xl rounded-2xl p-3 shadow-[0_0_30px_rgba(0,0,0,0.5)] border border-white/10 min-w-[140px]",children:[(0,a.jsxs)("div",{className:"mb-2 bg-white p-2 rounded-xl",children:[(0,a.jsx)("img",{src:s.qrCode,alt:"".concat(t[s.name]||s.name," ").concat(e("social.qrCode")),className:"mx-auto rounded-lg",style:{width:"100px",height:"100px"},onError:e=>{var t;console.warn("â ï¸ QR code image failed to load: ".concat(s.qrCode));let a=e.currentTarget;a.style.display="none";let r=null==(t=a.parentElement)?void 0:t.querySelector(".qr-fallback");r&&(r.style.display="flex")}}),(0,a.jsx)("div",{className:"qr-fallback mx-auto bg-gradient-to-br ".concat(s.color," rounded-lg flex flex-col items-center justify-center shadow-lg"),style:{display:"none",width:"100px",height:"100px"},children:(0,a.jsxs)("div",{className:"text-white text-center",children:[(0,a.jsx)("div",{className:"text-xl mb-1",children:s.emoji}),(0,a.jsx)("div",{className:"text-xs font-bold",children:t[s.name]||s.name})]})})]}),(0,a.jsxs)("p",{className:"text-xs text-slate-300 text-center font-medium tracking-wide",children:[t[s.name]||s.name," ",e("social.qrCode")]})]}),(0,a.jsx)("div",{className:"absolute top-full left-1/2 transform -translate-x-1/2 -mt-1",children:(0,a.jsx)("div",{className:"w-0 h-0 border-l-[8px] border-r-[8px] border-t-[8px] border-transparent border-t-slate-900/80 backdrop-blur-xl"})})]})}),(0,a.jsx)("p",{className:"text-xs text-slate-400 text-center mt-2 font-medium opacity-0 group-hover:opacity-100 transition-opacity duration-300 absolute -bottom-6 left-1/2 -translate-x-1/2 whitespace-nowrap",children:t[s.name]||s.name})]},r))})]})})]}),(0,a.jsx)("div",{className:"mt-8 pt-6 border-t border-white/5",children:(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row items-center justify-center space-y-3 sm:space-y-0 sm:space-x-6 text-center",children:[(0,a.jsx)("p",{className:"text-slate-500 text-sm",children:e("legal.copyright")}),(0,a.jsx)("div",{className:"flex items-center space-x-6 text-sm",children:[{labelKey:"about",href:"/about"},{labelKey:"terms",href:"/terms"},{labelKey:"privacy",href:"/privacy"}].map((t,s)=>(0,a.jsx)(l.N_,{href:t.href,className:"text-slate-500 transition-all duration-300 hover:text-cyan-400 hover:drop-shadow-[0_0_5px_rgba(34,211,238,0.5)]",children:e("legal.".concat(t.labelKey))},s))}),(0,a.jsx)("p",{className:"text-slate-600 text-xs",children:(0,a.jsx)("a",{href:"https://beian.miit.gov.cn",target:"_blank",rel:"noopener noreferrer",className:"hover:text-cyan-400 transition-colors duration-300",children:e("legal.icp")})})]})})]})]})}function v(){let[e,t]=(0,h.useState)(!1);return(0,h.useEffect)(()=>{let e=()=>{t(window.innerWidth<1024)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e?(0,a.jsx)(b,{}):(0,a.jsx)(f,{})}function w(){let e=(0,r.usePathname)(),t=(null==e?void 0:e.replace(/^\/(zh|en)(?=\/|$)/,""))||"/";return t.includes("/trial")||t.includes("/ai-chat")?null:(0,a.jsx)(v,{})}},77718:(e,t,s)=>{"use strict";s.d(t,{default:()=>l});var a=s(95155),r=s(22663);function l(){return(0,a.jsx)(r.l$,{position:"top-right",containerStyle:{to
1p:80,zIndex:999999},toastOptions:{duration:4e3,style:{background:"#fff",color:"#333",border:"1px solid #e5e7eb",borderRadius:"12px",fontSize:"14px",padding:"12px 16px",boxShadow:"0 10px 25px rgba(0, 0, 0, 0.1)",maxWidth:"400px"},success:{duration:3e3,iconTheme:{primary:"#10b981",secondary:"#fff"}},error:{duration:5e3,iconTheme:{primary:"#ef4444",secondary:"#fff"}},loading:{duration:0}}})}},90432:(e,t,s)=>{"use strict";s.d(t,{default:()=>l});var a=s(12115),r=s(20063);function l(){let e=(0,r.usePathname)(),t=e.includes("/video2prompt");return(0,a.useEffect)(()=>{navigator.serviceWorker&&(t?(console.log("[SW-Manager] \uD83D\uDCE1 video2prompt 页é¢ï¼å¼å§æ³¨å Service Worker..."),navigator.serviceWorker.register("/coi-serviceworker.js",{scope:"/"}).then(e=>{console.log("[SW-Manager] â Service Worker 注åæå:",e.scope),e.addEventListener("updatefound",()=>{console.log("[SW-Manager] \uD83D\uDD04 åç° Service Worker æ´æ°")})}).catch(e=>{console.error("[SW-Manager] â Service Worker 注å失败:",e)})):navigator.serviceWorker.getRegistrations().then(e=>{if(e.length>0){console.log("[SW-Manager] \uD83D\uDDD1ï¸ é video2prompt 页é¢ï¼åç°",e.length,"个 Service Workerï¼æ£å¨æ³¨é...");let t=!1;e.forEach(e=>{e.unregister().then(()=>{t||(t=!0,console.log("[SW-Manager] â Service Worker 已注éï¼å·æ°é¡µé¢ä»¥æ¸ é¤ç¼å"),setTimeout(()=>{window.location.reload()},100))})})}else console.log("[SW-Manager] â¹ï¸ å½å页颿 Service Worker")}))},[e,t]),null}},92671:(e,t,s)=>{"use strict";s.d(t,{IntlClientProvider:()=>o});var a=s(95155),r=s(3809),l=s(16754);function o(e){let{messages:t,locale:s,children:o}=e;return(0,a.jsx)(r.default,{messages:t,locale:s,onError:e=>{},getMessageFallback:e=>{let{namespace:t,key:s,error:a}=e;return a.code===l.a.MISSING_MESSAGE,t?"".concat(t,".").concat(s):s},children:o})}},94791:(e,t,s)=>{"use strict";s.d(t,{default:()=>l});var a=s(20063),r=s(12115);function l(){let e=(0,a.usePathname)(),t=(0,r.useRef)(e),s="f3c3a42759be618fdacc1e261ee8787a".trim(),l=/^\/(?:[a-z-]+\/)?admin(?:\/|$)/i.test(e),o=!!s&&!l;return(0,r.useEffect)(()=>{o&&e!==t.current&&window._hmt&&window._hmt.push(["_trackPageview",e])},[e,o]),null}}},e=>{e.O(0,[1844,2978,2619,1626,4909,2663,1221,4127,4205,6093,5153,6545,7020,9753,8441,1255,7358],()=>e(e.s=71912)),_N_E=e.O()}]); 2//# sourceMappingURL=layout-37fce38b0adbb273.js.map
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.