PageSourceSearch

https://yanok.ai/_app/immutable/chunks/DZPQBCwR.js

js yanok.ai collected 2026-10-05 14:39:43 UTC 2,758 bytes, 1 lines download raw bytes

1import"./DsnmJJEf.js";import{p as H,t as x,a as p,b as J,g as a,f as _,ap as q,c,s as h,r as m,e as K,I as n,u as j,aq as Q}from"./CYGRAPIB.js";import{s as y}from"./D9UuDnCi.js";import{p as z,i as w}from"./nU4rHKDQ.js";import{a as R}from"./BvFEN88R.js";import{a as k,c as U,r as V,s as M}from"./BEZvtooX.js";import{b as W}from"./CYiapCR7.js";import{e as X}from"./CmEtZuts.js";import{P as Y,h as Z}from"./T8_RqQZ_.js";import{C as $}from"./B35AJUqw.js";var ee=_('<div class="flex items-center justify-center gap-2 text-green-500"><!> <span class="font-medium"> </span></div>'),ae=_('<span class="inline-block w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"></span>'),re=_('<p id="newsletter-error" role="alert" class="text-sm text-red-500 mt-3 text-center"> </p>'),te=_('<form method="POST" action="/newsletter?/subscribe"><label for="newsletter-email" class="sr-only"> </label> <input id="newsletter-email" name="email" type="email" required="" aria-label="Email address"/> <button type="submit"><!></button></form> <!>',1),se=_("<div><!></div>");function ve(E,o){H(o,!0);let F=z(o,"class",3,""),L=z(o,"variant",3,"default"),C=q(""),t=q("idle"),v=q("");const P=j(()=>L()==="compact");var g=se(),O=c(g);{var S=u=>{var f=ee(),i=c(f);{var b=l=>{Y(l,{icon:"Check",size:"sm"})},I=j(()=>Z("Check")),s=l=>{$(l,{class:"w-5 h-5"})};w(i,l=>{a(I)?l(b):l(s,-1)})}var d=h(i,2),N=c(d,!0);m(d),m(f),x(()=>y(N,o.successMessage)),p(u,f)},T=u=>{var f=te(),i=K(f),b=c(i),I=c(b,!0);m(b);var s=h(b,2);V(s);var d=h(s,2),N=c(d);{var l=e=>{var r=ae();p(e,r)},A=e=>{var r=Q();x(()=>y(r,o.submitLabel)),p(e,r)};w(N,e=>{a(t)==="loading"?e(l):e(A,-1)})}m(d),m(i),R(i,(e,r)=>X?.(e,r),()=>()=>(n(t,"loading"),n(v,""),async({result:e})=>{if(e.type==="success")n(t,"success"),n(C,"");else if(e.type==="failure"){const r=e.data;n(v,r?.error??o.errorMessage,!0),n(t,"error")}else n(t,"idle")}));var B=h(i,2);{var D=e=>{var r=re(),G=c(r,!0);m(r),x(()=>y(G,a(v))),p(e,r)};w(B,e=>{a(t)==="error"&&a(v)&&e(D)})}x(()=>{k(i,1,`flex flex-col sm:flex-row gap-3 ${a(P)?"max-w-sm":"max-w-md"} mx-auto`),y(I,o.title),M(s,"placeholder",o.placeholder),s.disabled=a(t)==="loading",M(s,"aria-invalid",a(t)==="error"),M(s,"aria-describedby",a(t)==="error"&&a(v)?"newsletter-error":void 0),k(s,1,`flex-1 px-4 ${a(P)?"py-2 text-sm":"py-2.5"} rounded-lg border border-border bg-background text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/50 disabled:opacity-50`),d.disabled=a(t)==="loading",k(d,1,`btn-pixel ${a(P)?"px-5 py-2 text-sm":"px-6 py-2.5"} disabled:opacity-50 disabled:cursor-not-allowed`)}),W(s,()=>a(C),e=>n(C,e)),p(u,f)};w(O,u=>{a(t)==="success"?u(S):u(T,-1)})}m(g),x(()=>k(g,1,U(F()))),p(E,g),J()}export{ve as 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.