1import{a as d,f}from"./disclose-version.BOFe-roe.js";import{o as H}from"./index-client.CNEhrgGV.js";import{t as b,p as J,a as K,D as a,F as _,J as U,at as j,c as r,b as i,r as t,n as C,f as W,as as q}from"./runtime.BaRtt0z-.js";import{s as P}from"./render.WmbLxtsc.js";import{i as z,b as B}from"./this.CEattmGB.js";import{e as E,i as N}from"./each.D7bTiVt6.js";import{a as h,b as Q}from"./toast-state.svelte.LLFxWZ9K.js";var R=f('<span class="svelte-j1opff"> </span><span class="animate-blink text-primary svelte-j1opff">|</span>',1),V=f('<span class="text-muted-foreground svelte-j1opff">Write your prompt...</span>'),X=f('<span class="px-2 py-0.5 rounded-full bg-primary/10 text-primary text-xs svelte-j1opff"> </span>'),Y=f('<div class="w-full max-w-2xl mx-auto select-none rounded-2xl border border-border bg-card overflow-hidden min-h-[320px] svelte-j1opff"><div class="border-b border-border p-4 svelte-j1opff"><div class="flex items-center gap-2 mb-2 svelte-j1opff"><div class="w-2 h-2 rounded-full bg-primary svelte-j1opff"></div> <span class="text-xs font-medium text-muted-foreground svelte-j1opff">Custom Prompt</span></div> <div class="rounded-lg bg-muted/50 p-3 min-h-[52px] text-sm font-mono svelte-j1opff"><!></div></div> <div class="p-4 flex flex-col gap-3 svelte-j1opff"><div class="flex items-center gap-2 svelte-j1opff"><div></div> <span class="text-xs font-medium text-muted-foreground svelte-j1opff">Generated Output</span></div> <div><span class="text-[10px] font-medium text-muted-foreground uppercase tracking-wider svelte-j1opff">Title</span> <span class="text-sm font-medium svelte-j1opff">Serene Mountain Lake at Golden Hour Sunrise</span></div> <div><span class="text-[10px] font-medium text-muted-foreground uppercase tracking-wider svelte-j1opff">Keywords</span> <div class="flex flex-wrap gap-1.5 svelte-j1opff"></div></div></div></div>');function ne(A,F){K(F,!0);let v=j(!1),n=j(0),m;const y="Focus on nature and travel keywords. Use emotional, descriptive language.";let u=j(0);H(()=>{const e=new IntersectionObserver(s=>{s[0].isIntersecting&&!a(v)&&(_(v,!0),G())},{threshold:.3});return e.observe(m),()=>e.disconnect()});function G(){const e=setInterval(()=>{U(u),a(u)>=y.length&&(clearInterval(e),setTimeout(()=>{_(n,1)},400),setTimeout(()=>{_(n,2)},1e3))},25)}const L=q(()=>y.slice(0,a(u)));var p=Y(),c=r(p),w=i(r(c),2),M=r(w);{var O=e=>{var s=R(),l=W(s),o=r(l,!0);t(l),C(),b(()=>P(o,a(L))),d(e,s)},S=e=>{var s=V();d(e,s)};z(M,e=>{a(v)?e(O):e(S,-1)})}t(w),t(c);var k=i(c,2),x=r(k),$=r(x);C(2),t(x);var I=i(x,2),g=i(I,2),T=i(r(g),2);E(T,20,()=>["mountain","lake","sunrise","golden hour","nature","travel","serene","alpine","landscape"],N,(e,s,l)=>{var o=X();Q(o,`animation-delay: ${l*80}ms`);var D=r(o,!0);t(o),b(()=>P(D,s)),d(e,o)}),t(T),t(g),t(k),t(p),B(p,e=>m=e,()=>m),b(()=>{h($,1,`w-2 h-2 rounded-full ${a(n)>=1?"bg-cyan-500":"bg-muted-foreground/30"}`,"svelte-j1opff"),h(I,1,`flex flex-col gap-1 ${a(n)>=1?"animate-fade-up":"opacity-0"}`,"svelte-j1opff"),h(g,1,`flex flex-col gap-1.5 ${a(n)>=2?"animate-fade-up":"opacity-0"}`,"svelte-j1opff")}),d(A,p),J()}export{ne as C};
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.