PageSourceSearch

https://yanok.ai/_app/immutable/nodes/39.BlfBpspD.js

js yanok.ai collected 2026-10-05 14:40:42 UTC 11,168 bytes, 1 lines download raw bytes

1import{l as Ye,g as M}from"../chunks/BKknxEG5.js";import"../chunks/DsnmJJEf.js";import{p as It,d as Lt,e as R,g as e,a as h,b as Dt,ap as Tt,I as Ht,u as o,s as i,c as a,r,t as P,f as A}from"../chunks/CYGRAPIB.js";import{s as n}from"../chunks/D9UuDnCi.js";import{i as _}from"../chunks/nU4rHKDQ.js";import{e as Nt}from"../chunks/DTvJC0Jp.js";import{h as Ut}from"../chunks/DUu1U6v-.js";import{s as l,b as Et}from"../chunks/BEZvtooX.js";import{b as Ot,A as Bt,p as Ft,S as Yt,a as we}from"../chunks/DrDqatGg.js";import{a as qt}from"../chunks/BvKBMFba.js";import{B as Gt,b as Jt}from"../chunks/CpWhE398.js";import{n as Ue,a as Ee,b as Kt,c as Qt,d as Rt,e as Vt,f as Wt}from"../chunks/BOaRkzI8.js";import{n as Xt,a as Zt,b as er,c as tr,d as rr,e as ar,f as sr,g as ir,s as or,h as nr}from"../chunks/B3XTwqpL.js";import{N as lr}from"../chunks/DZPQBCwR.js";import{S as Oe}from"../chunks/D0T9t0sD.js";import{P as Be}from"../chunks/CtgGnEb9.js";import{P as S,h as C}from"../chunks/T8_RqQZ_.js";import{r as V}from"../chunks/kaiQ09si.js";import{f as Fe}from"../chunks/ww51vty2.js";import{U as cr}from"../chunks/D5TAtFOS.js";import{C as dr}from"../chunks/BlZDJl1O.js";import{C as vr}from"../chunks/BKx4uG-s.js";const mr=!0;async function pr(){return(await Ye()).map(b=>({slug:M(b)}))}async function ur({params:D}){const b=await Ye();let s=b.find(v=>M(v)===D.slug);if(!s){const v=D.slug.match(/^(\d+)/);if(v){const q=parseInt(v[1],10);s=b.find(G=>G.id===q)}}const Y=s?b.filter(v=>v.category===s.category&&v.id!==s.id).slice(0,3).map(v=>({...v,slug:M(v)})):[];return{article:s??null,relatedArticles:Y}}const Jr=Object.freeze(Object.defineProperty({__proto__:null,entries:pr,load:ur,prerender:mr},Symbol.toStringTag,{value:"Module"}));var _r=A('<span class="text-xs font-medium px-3 py-1 rounded-full bg-[hsl(var(--a11y-warning)/0.1)] text-[hsl(var(--a11y-warning))]"> </span>'),gr=A('<div class="aspect-video rounded-xl overflow-hidden mb-10"><picture><source type="image/avif"/> <source type="image/webp"/> <img sizes="(max-width: 1024px) 100vw, 1024px" class="w-full h-full object-cover" width="1024" height="576" loading="lazy" decoding="async"/></picture></div>'),fr=A('<div class="aspect-video overflow-hidden"><picture><source type="image/avif"/> <source type="image/webp"/> <img sizes="(max-width: 1024px) 100vw, 1024px" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-300" width="1024" height="576" loading="lazy" decoding="async"/></picture></div>'),xr=A('<a class="block card-pixel overflow-hidden hover:border-border/80 transition-all duration-300 group"><article><!> <div class="p-5"><span class="inline-block text-xs font-medium px-2 py-0.5 bg-primary/10 text-primary border border-primary/20 rounded-full mb-3"> </span> <h3 class="text-lg font-semibold text-foreground leading-snug mb-2 line-clamp-2 font-pixel"> </h3> <p class="text-sm text-muted-foreground line-clamp-2 mb-3"> </p> <div class="flex items-center justify-between text-xs text-muted-foreground"><span> </span> <time> </time></div></div></article></a>'),wr=A('<section class="py-12 border-t border-border"><div class="max-w-6xl mx-auto px-4 sm:px-6"><h2 class="text-2xl font-bold text-foreground mb-8 font-pixel"> </h2> <div class="grid sm:grid-cols-2 lg:grid-cols-3 gap-6"></div></div></section>'),hr=A('<article class="py-12"><div class="max-w-4xl mx-auto px-4 sm:px-6"><a class="inline-flex items-center gap-2 btn-pixel-outline text-sm mb-8"><!> </a> <header class="mb-8"><div class="flex items-center gap-3 mb-4"><span class="text-xs font-medium px-3 py-1 rounded-full bg-primary/10 text-primary"> </span> <!></div> <h1 class="text-3xl sm:text-4xl font-bold text-foreground leading-tight mb-4 font-pixel"> </h1> <p class="text-lg text-muted-foreground mb-6"> </p> <div class="flex flex-wrap items-center gap-4 text-sm text-muted-foreground"><span class="flex items-center gap-1.5"><!> </span> <span class="flex items-center gap-1.5"><!> </span> <span class="flex items-center gap-1.5"><!> </span></div></header> <!> <div class="prose prose-invert max-w-none prose-headings:text-foreground prose-p:text-muted-foreground prose-a:text-primary prose-strong:text-foreground prose-code:text-primary"></div> <div class="mt-10 pt-8 border-t border-border"><p class="text-sm font-medium text-muted-foreground mb-3"> </p> <!></div> <div class="mt-8 pt-8 border-t border-border"><a class="inline-flex items-center gap-2 btn-pixel-outline text-sm"><!> </a></div></div></article> <section class="py-10 border-t border-border"><div class="max-w-2xl mx-auto px-4 sm:px-6"><div class="card-pixel p-6 sm:p-8 text-center"><div class="flex justify-center mb-3"><!></div> <h3 class="text-xl font-bold text-foreground mb-1.5 font-pixel"> </h3> <p class="text-sm text-muted-foreground mb-5"> </p> <!></div></div></section> <!>',1),br=A('<div class="fixed top-14 left-0 h-0.5 bg-primary z-40 transition-[width] duration-150 ease-out" role="progressbar"></div> <!> <!> <!> <!>',1),yr=A('<section class="py-16"><div class="max-w-2xl mx-auto px-4 sm:px-6 text-center"><h1 class="text-2xl font-bold text-foreground mb-3 font-pixel"> </h1> <p class="text-muted-foreground mb-6"> </p> <a class="btn-pixel inline-flex items-center gap-2 text-sm"><!> </a></div></section>
1'),$r=A("<!> <!>",1);function Kr(D,b){It(b,!0);const s=o(()=>b.data.article),Y=o(()=>b.data.relatedArticles);let v=Tt(0),q=o(()=>{const g=document.documentElement.scrollHeight-document.documentElement.clientHeight;return g<=0?0:Math.min(100,Math.max(0,e(v)/g*100))});var G=Lt(),qe=R(G);{var Ge=g=>{var T=br(),y=R(T);l(y,"aria-valuemin",0),l(y,"aria-valuemax",100);var J=i(y,2);{let m=o(()=>M(e(s))),x=o(()=>({publishedTime:e(s).publishDate,author:e(s).author,section:e(s).category}));Oe(J,{get title(){return e(s).title},get description(){return e(s).excerpt},get keywords(){return`AI news, ${e(s).category??""}, AI research`},get canonicalPath(){return`/news/${e(m)??""}`},ogType:"article",get ogImage(){return e(s).image},get article(){return e(x)}})}var I=i(J,2);{let m=o(()=>[{name:Jt(),url:"https://www.yanok.ai/"},{name:Wt(),url:"https://www.yanok.ai/news"},{name:e(s).title,url:`https://www.yanok.ai/news/${M(e(s))}`}]);Gt(I,{get items(){return e(m)}})}var H=i(I,2);{let m=o(()=>e(s).image||"https://www.yanok.ai/images/brand/yanok-icon.png"),x=o(()=>({name:e(s).author})),L=o(()=>`https://www.yanok.ai/news/${M(e(s))}`);Bt(H,{get headline(){return e(s).title},get description(){return e(s).excerpt},get image(){return e(m)},get datePublished(){return e(s).publishDate},get author(){return e(x)},get url(){return e(L)},get section(){return e(s).category},articleType:"NewsArticle"})}var N=i(H,2);Be(N,{children:(m,x)=>{var L=hr(),j=R(L),K=a(j),k=a(K),U=a(k);{var W=t=>{S(t,{icon:"ArrowLeft",size:"sm"})},X=o(()=>C("ArrowLeft")),Z=t=>{we(t,{class:"w-4 h-4"})};_(U,t=>{e(X)?t(W):t(Z,-1)})}var ee=i(U);r(k);var p=i(k,2),E=a(p),O=a(E),te=a(O,!0);r(O);var Ke=i(O,2);{var Qe=t=>{var d=_r(),f=a(d,!0);r(d),P(u=>n(f,u),[()=>tr()]),h(t,d)};_(Ke,t=>{e(s).featured&&t(Qe)})}r(E);var re=i(E,2),Re=a(re,!0);r(re);var ae=i(re,2),Ve=a(ae,!0);r(ae);var he=i(ae,2),se=a(he),be=a(se);{var We=t=>{S(t,{icon:"User",size:"sm"})},Xe=o(()=>C("User")),Ze=t=>{cr(t,{class:"w-4 h-4"})};_(be,t=>{e(Xe)?t(We):t(Ze,-1)})}var et=i(be);r(se);var ie=i(se,2),ye=a(ie);{var tt=t=>{S(t,{icon:"Calendar",size:"sm"})},rt=o(()=>C("Calendar")),at=t=>{dr(t,{class:"w-4 h-4"})};_(ye,t=>{e(rt)?t(tt):t(at,-1)})}var st=i(ye);r(ie);var $e=i(ie,2),Ae=a($e);{var it=t=>{S(t,{icon:"Clock",size:"sm"})},ot=o(()=>C("Clock")),nt=t=>{vr(t,{class:"w-4 h-4"})};_(Ae,t=>{e(ot)?t(it):t(nt,-1)})}var lt=i(Ae);r($e),r(he),r(p);var ke=i(p,2);{var ct=t=>{var d=gr(),f=a(d),u=a(f),z=i(u,2),w=i(z,2);r(f),r(d),P(($,c)=>{l(u,"srcset",$),l(z,"srcset",c),l(w,"src",e(s).image),l(w,"srcset",`${e(s).image} 1024w`),l(w,"alt",e(s).title)},[()=>`${e(s).image.replace(".jpg",".avif")} 1024w`,()=>`${e(s).image.replace(".jpg",".webp")} 1024w`]),h(t,d)};_(ke,t=>{e(s).image&&t(ct)})}var oe=i(ke,2);Ut(oe,()=>Ft.sanitize(e(s).content),!0),r(oe);var ne=i(oe,2),le=a(ne),dt=a(le,!0);r(le);var vt=i(le,2);{let t=o(()=>`https://www.yanok.ai/news/${M(e(s))}`);Yt(vt,{get url(){return e(t)},get title(){return e(s).title}})}r(ne);var ze=i(ne,2),ce=a(ze),Pe=a(ce);{var mt=t=>{S(t,{icon:"ArrowLeft",size:"sm"})},pt=o(()=>C("ArrowLeft")),ut=t=>{we(t,{class:"w-4 h-4"})};_(Pe,t=>{e(pt)?t(mt):t(ut,-1)})}var _t=i(Pe);r(ce),r(ze),r(K),r(j);var de=i(j,2),je=a(de),Se=a(je),ve=a(Se),gt=a(ve);{var ft=t=>{S(t,{icon:"Mail",size:"md",class:"text-primary"})},xt=o(()=>C("Mail"));_(gt,t=>{e(xt)&&t(ft)})}r(ve);var me=i(ve,2),wt=a(me,!0);r(me);var pe=i(me,2),ht=a(pe,!0);r(pe);var bt=i(pe,2);{let t=o(()=>Ue()),d=o(()=>Ee()),f=o(()=>Kt()),u=o(()=>Qt()),z=o(()=>Rt()),w=o(()=>Vt());lr(bt,{get title(){return e(t)},get description(){return e(d)},get successMessage(){return e(f)},get errorMessage(){return e(u)},get placeholder(){return e(z)},get submitLabel(){return e(w)},variant:"compact"})}r(Se),r(je),r(de);var yt=i(de,2);{var $t=t=>{var d=wr(),f=a(d),u=a(f),z=a(u,!0);r(u);var w=i(u,2);Nt(w,21,()=>e(Y),$=>$.id,($,c)=>{var Q=xr(),Ce=a(Q),Me=a(Ce);{var At=B=>{var F=fr(),Te=a(F),He=a(Te),Ne=i(He,2),xe=i(Ne,2);r(Te),r(F),P((Ct,Mt)=>{l(He,"srcset",Ct),l(Ne,"srcset",Mt),l(xe,"src",e(c).image),l(xe,"srcset",`${e(c).image} 1024w`),l(xe,"alt",e(c).title)},[()=>`${e(c).image.replace(".jpg",".avif")} 1024w`,()=>`${e(c).image.replace(".jpg",".webp")} 1024w`]),h(B,F)};_(Me,B=>{e(c).image&&B(At)})}var Ie=i(Me,2),ue=a(Ie),kt=a(ue,!0);r(ue);var _e=i(ue,2),zt=a(_e,!0);r(_e);var ge=i(_e,2),Pt=a(ge,!0);r(ge);var Le=i(ge,2),fe=a(Le),jt=a(fe,!0);r(fe);var De=i(fe,2),St=a(De,!0);r(De),r(Le),r(Ie),r(Ce),r(Q),P((B,F)=>{l(Q,"href",B),n(kt,e(c).category),n(zt,e(c).title),n(Pt,e(c).excerpt),n(jt,e(c).author),n(St,F)},[()=>V(`/news/${e(c).slug}`),()=>Fe(e(c).publishDate)]),h($,Q)}),r(w),r(f),r(d),P($=>n(z,$),[()=>rr()]),h(t,d)};_(yt,t=>{e(Y).length>0&&t($t)})}P((t,d,f,u,z,w,$,c)=>{l(k,"href",t),n(ee,` ${d??""}`),n(te,e(s).category),n(Re,e(s).title),n(Ve,e(s).excerpt),n(et,` ${e(s).author??""}`),n(st,` ${f??""}`),n(lt,` ${e(s).readTime??""} min read`),n(dt,u),l(ce,"href",z),n(_t,` ${w??""}`),n(wt,$),n(ht,c)},[()=>V("/news"),()=>Xt(),()=>Fe(e(s).publishDate,{month:"long",day:"numeric",year:"numeric"}),()=>Zt(),()=>V("/news"),()=>er(),()=>Ue(),()=>Ee()]),h(m,L)},$$slots:{default:!0}}),P((m,x)=>{Et(y,`width: ${e(q)??""}%`),l(y,"aria-valuenow",m),l(y,"aria-label",x)},[()=>Math.round(e(q)),()=>qt()]),h(g,T)},Je=g=>{var T=$r(),y=R(T);{let I=o(()=>nr()),H=o(()=>
1or());Oe(y,{get title(){return e(I)},get description(){return e(H)},canonicalPath:"/news",noIndex:!0})}var J=i(y,2);Be(J,{children:(I,H)=>{var N=yr(),m=a(N),x=a(m),L=a(x,!0);r(x);var j=i(x,2),K=a(j,!0);r(j);var k=i(j,2),U=a(k);{var W=p=>{S(p,{icon:"ArrowLeft",size:"sm"})},X=o(()=>C("ArrowLeft")),Z=p=>{we(p,{class:"w-4 h-4"})};_(U,p=>{e(X)?p(W):p(Z,-1)})}var ee=i(U);r(k),r(m),r(N),P((p,E,O,te)=>{n(L,p),n(K,E),l(k,"href",O),n(ee,` ${te??""}`)},[()=>ar(),()=>sr(),()=>V("/news"),()=>ir()]),h(I,N)},$$slots:{default:!0}}),h(g,T)};_(qe,g=>{e(s)?g(Ge):g(Je,-1)})}Ot("y",()=>e(v),g=>Ht(v,g,!0)),h(D,G),Dt()}export{Kr as component,Jr as universal};

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.