1import{aV as T,bm as k,bE as R,a$ as $,bJ as h,bC as C,br as a,bs as g,bt as y,bu as w,bv as r,b2 as _,bR as M,bZ as E,by as d,b6 as I,bF as N,bx as v,bz as D}from"./EBpBARSw.js";import L from"./CbDlNXSx.js";import B from"./CGB6CXIl.js";import F from"./59THdc-D.js";import{b as V}from"./CSLGp06j.js";import{S as O}from"./wYDGVwMj.js";import"./Lmb05Apy.js";import"./DiN8x0mA.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new e.Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="8dcee6ff-4c52-4e2a-86ed-50ef9d096e6e",e._sentryDebugIdIdentifier="sentry-dbid-8dcee6ff-4c52-4e2a-86ed-50ef9d096e6e")}catch{}})();const j=T({name:"Smi2Mobile",emits:["complete"],setup(e,{emit:c}){const f=k(),m=$(),l=h({}),o=h({...V}),u=R(function*(n,t){o.isRendered=!1;try{const s=yield fetch(O);o.isLoaded=!0;const b=s?.headers.get("Content-Type");if(!b||!b.includes("application/json"))return i("Response is not JSON",s);if(!s.ok)return i(`Request is complete with status ${s.status}`,s);const S=yield s.json();m.value=S.news.slice(0,3),o.isRendered=!0}catch(s){i("",s)}finally{o.isCompleted=!0,c("complete",{error:l,state:o}),t.disconnect()}});function p({observer:n}){u.perform(n)}function i(n="",t=""){o.withError=!0,l.message=n,console.error("[Smi2Mobile]",n,t)}return{css:f,error:l,fetchNewsTask:u,handleIntersect:p,news:m,state:o}}}),z="_6wQgS",q="Zc0-q",A="KjLU-",J="SwVce",U="_4Fub7",Z="Yu388",G="LsWzO",H={root:z,header:q,body:A,item:J,image:U,content:Z,loader:G},K=["data-smi2","href"];function Q(e,c,f,m,l,o){const u=M,p=L,i=B,n=F;return a(),g(n,{class:r(e.css.root),options:{rootMargin:"0px 0px 100%"},onIntersect:e.handleIntersect},{default:y(()=>[w("header",{class:r(e.css.header)},[_(u,{name:"smi2"})],2),_(E,{class:r(e.css.body),name:"fade",tag:"div"},{default:y(()=>[(a(!0),d(I,null,N(e.news,(t,s)=>(a(),d(I,null,[!e.fetchNewsTask.isRunning||e.state.isRendered?(a(),d("a",{key:t.id||s,class:r(e.css.item),"data-smi2":s+1,href:t.url,rel:"noopener nofollow",target:"_blank"},[t.img?(a(),g(p,{key:0,alt:t.title,class:r(e.css.image),image:{uri:t.img},"is-blurhash-enabled":!1,"should-crop":!1,"should-use-webp":!1},null,8,["alt","class","image"])):v("",!0),w("div",{class:r(e.css.content)},D(t.title),3)],10,K)):(a(),d("div",{key:s}))],64))),256)),e.fetchNewsTask.isRunning||!e.state.isRendered?(a(),d("div",{key:"loader",class:r(e.css.loader)},[_(i)],2)):v("",!0)]),_:1},8,["class"])]),_:1},8,["class","onIntersect"])}const W={$style:H},ne=C(j,[["render",Q],["__cssModules",W]]);export{ne as default};
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.