1import A from"./CGB6CXIl.js";import{aV as N,bn as B,bE as P,aX as S,br as s,by as n,b2 as c,bt as f,bw as d,bv as o,bx as p,bA as C,bu as b,b6 as m,bF as w,bY as V,bH as M,bs as x,bR as L,bB as T,bz as D,a$ as _,bC as O}from"./EBpBARSw.js";import{E as F,C as R,M as U}from"./DpZ7f565.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},u=new i.Error().stack;u&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[u]="fcb0e201-d6da-4082-8b97-e1d89c0f3544",i._sentryDebugIdIdentifier="sentry-dbid-fcb0e201-d6da-4082-8b97-e1d89c0f3544")}catch{}})();const X=["data-index"],z={key:2},G=["href"],W=N({__name:"TheCarouselMobile",setup(i){const u=B(),y=_(0),v=_(),l=_([]),g=_(),k=P(function*(){try{l.value=yield u.pub.getPubListById("up-waterfall").then(({data:e})=>e?.articles?.filter(({data:a})=>{const r=a?.brandvoice?.[0]?.url?.replace("brandvoice/","")||"";return!F.includes(r)})?.map(({data:a})=>{const{name:r,url:h}=a?.brandvoice?.[0]||{};return{...a,heading:{title:r||"",to:`/${h||"brandvoice"}`}}})||[])}catch(e){console.error(e)}finally{if(l.value=[...R,...l.value].slice(0,U),yield new Promise(e=>setTimeout(e)),g.value){v.value=new IntersectionObserver(([e])=>{if(e.isIntersecting){const a=e.target,{index:r="0"}=a.dataset;y.value=Number.parseInt(r,10)}},{threshold:1});for(const e of Array.from(g.value.children))v.value.observe(e)}}});function $(e){return e.startsWith("http")}return S(()=>{k.perform()}),(e,a)=>{const r=A,h=L,E=V;return s(),n("div",{class:o(e.$style.root)},[c(C,{name:"fade"},{default:f(()=>[d(l).length===0||d(k).isRunning?(s(),n("div",{key:"loader",class:o(e.$style.loader)},[c(r)],2)):p("",!0)]),_:1}),c(C,{mode:"out-in",name:"fade"},{default:f(()=>[d(l).length?(s(),n("div",{key:0,class:o(e.$style.carousel)},[b("ul",{ref_key:"listEl",ref:g,class:o(e.$style.list)},[(s(!0),n(m,null,w(d(l),(t,I)=>(s(),n("li",{key:I,class:o(e.$style.item),"data-index":I},[b("p",{class:o(e.$style.title)},[c(E,M({ref_for:!0},$(t.heading.to)?{href:t.heading.to,target:"_blank"}:{to:t.heading.to}),{default:f(()=>[t.heading.icon?(s(),x(h,{key:0,name:t.heading.icon},null,8,["name"])):t.heading.title?(s(),n(m,{key:1},[T(D(t.heading.title)+" ",1),a[0]||(a[0]=b("span",null,"Ðлог",-1))],64)):(s(),n("span",z,"Ðлоги"))]),_:2},1040)],2),c(E,M({ref_for:!0},$(t.heading.to)?{href:t.url_alias,target:"_blank"}:{to:`/${t.url_alias}`},{class:e.$style.description,style:{"--waterfall-line-clamp":t.heading.title&&t.heading.title.length>20?2:3}}),{default:f(()=>[T(D(t.title),1)]),_:2},1040,["class","style"]),t.heading.adfoxPixel?(s(),n("a",{key:0,class:o(e.$style.adfoxPixel),href:t.heading.adfoxPixel},null,10,G)):p("",!0)],10,X))),128))],2),b("ul",{class:o(e.$style.dots)},[(s(!0),n(m,null,w(d(l).length,t=>(s(),n("li",{key:t,class:o({[e.$style.dot]:!0,[e.$style.dotActive]:t-1===d(y)})},null,2))),128))],2)],2)):p("",!0)]),_:1})],2)}}}),q="kboIE",H="AGaum",K="G3E-M",Y="wvK6F",j="I-Msi",J="_2PbWA",Q="e-Sq6",Z="CNEkV",ee="mCDap",te={root:q,list:H,item:K,title:Y,description:j,dots:J,dot:Q,dotActive:Z,loader:ee},se={$style:te},le=O(W,[["__cssModules",se]]);export{le 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.