PageSourceSearch

https://snstracker.com/_next/static/chunks/3b5687226e328d52.js

js snstracker.com collected 2026-09-24 13:49:03 UTC 11,890 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,549101,e=>{"use strict";var t=e.i(466471),r=e.i(884702),s=e.i(319609),a=e.i(779342),l=e.i(638678);function n({tool:e,tools:n,locale:i,langPrefix:o}){let[d,c]=(0,r.useState)("All"),[m,x]=(0,r.useState)(""),[h,u]=(0,r.useState)(e.input.step2.options.map(e=>e[0])),[p,g]=(0,r.useState)(!1),[b,f]=(0,r.useState)([]),j=async t=>{if(t.preventDefault(),b.length>0)return void f([]);if(!m.trim())return void a.toast.error("Input text is empty");try{g(!0);let t="";e.name.endsWith("bio-generator")&&h.length>=3?t=`Write three personal bios for ${e.type}, reference "${m}", in ${h[0]} and ${h[1]} style, including ${h[2]}, output one per line (without numbering), each no more than 50 characters, only output result without any other text, in ${"zh"===i?"Chinese":"English"} language`:e.name.endsWith("caption-generator")&&h.length>=3?t=`Write three video captions for ${e.type}, reference "${m}", in ${h[0]} and ${h[1]} style, including ${h[2]}, output one per line (without numbering), each no more than 50 characters, only output result without any other text, in ${"zh"===i?"Chinese":"English"} language`:e.name.endsWith("idea-generator")&&h.length>=3?t=`Write three video ideas for ${e.type}, reference "${m}", in ${h[0]} and ${h[1]} style, including ${h[2]}, output one per line (without numbering), each no more than 50 characters, only output result without any other text, in ${"zh"===i?"Chinese":"English"} language`:e.name.endsWith("username-generator")&&h.length>=1?t=`Write three usernames for ${e.type}, reference "${m}", in ${h[0]} style, output one per line (without numbering), each no more than 20 characters, only output result without any other text, in ${"zh"===i?"Chinese":"English"} language`:e.name.endsWith("emoji-translator")&&h.length>=1&&(t=`Translate "${m}" to emoji with ${h[0]} style, output three examples and one per line, only output result without any other text`);let r=await fetch("/api/ai/text_generator",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:t})});if(!r.ok)throw Error("Failed to generate text");let s=await r.json();if(0===s.code&&s.data?.text){let e=s.data.text.split(/[\n]+/).filter(e=>e.trim());f(e)}else a.toast.error(s.message||"Generate error!")}catch(e){a.toast.error("Generate error: "+(e.message||"Unknown error"))}finally{g(!1)}};return(0,t.jsxs)(r.Fragment,{children:[(0,t.jsx)("section",{className:"section bg-gradient-to-b from-background to-muted/20",style:{paddingTop:"120px",paddingBottom:"80px"},children:(0,t.jsx)("div",{className:"container main-banner-container",children:(0,t.jsx)("div",{className:"grid grid-cols-12 gap-6",children:(0,t.jsx)("div",{className:"xxl:col-span-12 xl:col-span-12 lg:col-span-12 col-span-12",children:(0,t.jsxs)("div",{className:"xl:py-[3rem] flex flex-col items-center justify-center",children:[(0,t.jsxs)("div",{className:"text-center mb-6",children:[(0,t.jsx)("h1",{className:"text-4xl md:text-5xl font-bold mb-4 bg-gradient-to-r from-primary to-primary/60 bg-clip-text text-transparent",children:e.title}),(0,t.jsx)("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:e.tips})]}),0===b.length?(0,t.jsx)("div",{className:"mb-[3rem] w-full max-w-4xl",children:(0,t.jsxs)("div",{className:"bg-card rounded-xl shadow-lg border border-border/50 p-6 space-y-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-sm font-semibold text-foreground mb-3 block",children:e.input.step1.title}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("textarea",{className:"w-full p-4 border border-border/50 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/30 transition-all bg-background text-foreground placeholder:text-muted-foreground resize-none",placeholder:e.input.step1.placeholder,rows:6,onChange:e=>{x(e.target.value)},value:m}),(0,t.jsx)("button",{className:"absolute bottom-3 right-3 bg-muted hover:bg-muted/80 text-muted-foreground hover:text-foreground p-2.5 rounded-lg transition-all shadow-sm hover:shadow-md",onClick:()=>{let t=e.input.step1.examples||[];t.length>0&&(x(t[Math.floor(Math.random()*t.length)]),a.toast.success("Random example loaded!"))},title:"Random example",children:(0,t.jsx)("i",{className:"ri-refresh-line text-lg"})})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-sm font-semibold text-foreground mb-3 block",children:e.input.step2.title}),(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-3",children:e.input.step2.options.map((e,r)=>(0,t.jsx)("div",{className:"flex-1 min-w-[200px]",children:(0,t.jsxs)(l.Select,{value:h[r],onValueChange:e=>{let t;(t=[...h])[r]=e,u(t)},children:[(0,t.jsx)(l.SelectTrigger,{className:"w-full border-border/50 bg-background hover:border-primary/30 focus:ring-primary/20",children:(0,t.jsx)(l.SelectValue,{placeholder:e[0]})}),(0,t.jsx)(l.SelectContent,{className:"bg-card border-border/50",children:e.map(e=>(0,t.jsx)(l.SelectItem,{value:e,children:e},e))})]})},r))})]})]})}):(0,t.jsx)("div",{className:"mb-[3rem] w-full max-w-4xl space-y-4",children:b.map((e,r)=>(0,t.jsxs)("div",{className:"group relative bg-card border border-border/50 rounded-xl p-6 shadow-md hover:shadow-lg transition-all hover:border-primary/30",children:[(0,t.jsx)("div",{className:"pr-12 text-foreground text-base leading-relaxed",children:e}),(0,t.jsx)("button",{className:"absolute top-4 right-4 text-muted-foreground hover:text-primary p-2 rounded-lg hover:bg-muted transition-all opacity-0 group-hover:opacity-100",onClick:async()=>{try{await navigator.clipboard.writeText(e),a.toast.success("Copied to clipboard!")}catch(e){a.toast.error("Failed to copy")}},title:"Copy to clipboard",children:(0,t.jsx)("i",{className:"ri-file-copy-line text-xl"})})]},r))}),(0,t.jsx)("button",{className:"w-full max-w-4xl px-8 py-4 bg-primary hover:bg-primary/90 text-primary-foreground font-semibold rounded-lg shadow-lg hover:shadow-xl transition-all transform hover:scale-[1.02] disabled:opacity-50 disabled:cursor-not-allowed disabled:transform-none text-lg",disabled:p,onClick:j,children:p?(0,t.jsxs)("div",{className:"flex items-center justify-center gap-3",children:[(0,t.jsx)("div",{className:"w-5 h-5 border-2 border-primary-foreground
1/30 border-t-primary-foreground rounded-full animate-spin"}),(0,t.jsx)("span",{children:"Generating..."})]}):b.length>0?(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,t.jsx)("i",{className:"ri-refresh-line"}),(0,t.jsx)("span",{children:"Generate Again"})]}):(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,t.jsx)("i",{className:"ri-magic-line"}),(0,t.jsx)("span",{children:e.button})]})})]})})})})}),(0,t.jsx)("section",{className:"section bg-muted/30 py-16",children:(0,t.jsxs)("div",{className:"container",children:[(0,t.jsx)("div",{className:"text-center mb-12",children:(0,t.jsx)("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:e.more_tool})}),(0,t.jsx)("div",{className:"flex flex-col items-center w-full mb-8",children:(0,t.jsx)("nav",{"aria-label":"Tabs",className:"flex flex-wrap justify-center gap-2 bg-card p-2 rounded-lg border border-border shadow-sm",children:["All","TikTok","Youtube","Instagram","Facebook","General"].map(r=>(0,t.jsx)("button",{className:`px-4 py-2 rounded-md font-medium text-sm transition-all ${d===r?"bg-primary text-primary-foreground shadow-md":"text-muted-foreground hover:text-foreground hover:bg-muted"}`,onClick:()=>c(r),children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("i",{className:`ri-${"All"===r?"apps":r.toLowerCase()}-line`}),"All"===r?e.all_text:r]})},r))})}),(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:n.filter(e=>"All"===d||("General"===d?"General"===e.type:e.type===d)).map((e,r)=>(0,t.jsx)(s.default,{href:`${o}${e.url}`,className:"group block",children:(0,t.jsx)("div",{className:"bg-card border border-border/50 rounded-xl p-6 h-full transition-all hover:shadow-lg hover:border-primary/30 hover:-translate-y-1",children:(0,t.jsxs)("div",{className:"flex flex-col h-full",children:[(0,t.jsx)("h3",{className:"font-semibold text-lg mb-2 group-hover:text-primary transition-colors",children:e.title}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm mb-4 flex-grow line-clamp-2",children:e.description}),(0,t.jsx)("div",{className:"mt-auto",children:(0,t.jsx)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-xs font-medium bg-primary/10 text-primary",children:e.type})})]})})},r))})]})}),(0,t.jsx)("section",{className:"section bg-background py-16",children:(0,t.jsxs)("div",{className:"container",children:[(0,t.jsx)("div",{className:"text-center mb-12",children:(0,t.jsx)("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:e.instructions.title})}),(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-12",children:e.instructions.steps.map((e,r)=>(0,t.jsx)("div",{className:"bg-card border border-border/50 rounded-xl p-6 shadow-sm hover:shadow-md transition-all",children:(0,t.jsxs)("div",{className:"flex flex-col items-center text-center",children:[(0,t.jsx)("div",{className:"w-12 h-12 rounded-full bg-primary/10 text-primary flex items-center justify-center text-xl font-bold mb-4",children:r+1}),(0,t.jsx)("h3",{className:"font-semibold text-lg mb-3",children:e.title}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed",children:e.description})]})},r))}),(0,t.jsxs)("div",{className:"text-center max-w-3xl mx-auto",children:[(0,t.jsxs)("h3",{className:"text-2xl font-bold mb-4",children:[e.free_text," ",e.title]}),(0,t.jsx)("p",{className:"text-muted-foreground text-base leading-relaxed",children:e.instructions.description})]})]})}),(0,t.jsx)("section",{className:"section bg-muted/30 py-16",children:(0,t.jsxs)("div",{className:"container",children:[(0,t.jsxs)("div",{className:"text-center mb-12",children:[(0,t.jsx)("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:e.faq.title}),(0,t.jsx)("p",{className:"text-muted-foreground text-base max-w-2xl mx-auto",children:e.faq.description})]}),(0,t.jsx)("div",{className:"max-w-3xl mx-auto",children:(0,t.jsx)("div",{className:"space-y-3",children:e.faq.items.map((e,r)=>(0,t.jsxs)("details",{className:"group bg-card border border-border/50 rounded-lg overflow-hidden hover:border-primary/30 transition-all",children:[(0,t.jsxs)("summary",{className:"flex items-center justify-between p-5 cursor-pointer list-none font-semibold text-foreground hover:text-primary transition-colors",children:[(0,t.jsx)("span",{className:"flex-1 pr-4",children:e.question}),(0,t.jsx)("i",{className:"ri-arrow-down-s-line text-xl transition-transform group-open:rotate-180"})]}),(0,t.jsx)("div",{className:"px-5 pb-5 pt-0 text-muted-foreground leading-relaxed",children:e.answer})]},r))})})]})}),(0,t.jsx)("section",{className:"section bg-gradient-to-br from-primary/10 via-primary/5 to-background py-20",children:(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)("div",{className:"max-w-3xl mx-auto text-center",children:[(0,t.jsxs)("h2",{className:"text-4xl md:text-5xl font-bold mb-6 bg-gradient-to-r from-primary to-primary/60 bg-clip-text text-transparent",children:[e.cta.title," ",e.title]}),(0,t.jsx)("p",{className:"text-lg text-muted-foreground mb-8 leading-relaxed",children:e.cta.description}),(0,t.jsxs)(s.default,{href:e.cta.button.url,className:"inline-flex items-center gap-2 px-8 py-4 bg-primary hover:bg-primary/90 text-primary-foreground font-semibold rounded-lg shadow-lg hover:shadow-xl transition-all transform hover:scale-105",children:[(0,t.jsx)("span",{children:e.cta.button.title}),(0,t.jsx)("i",{className:"ri-arrow-right-line"})]})]})})})]})}e.s(["default",()=>n])}]);

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.