1import D from"./CGB6CXIl.js";import{aV as L,bn as S,bE as V,aY as F,aX as N,br as a,by as o,b2 as d,bt as _,bw as i,bv as l,bx as g,bA as A,b6 as m,bF as C,bM as P,bu as h,bY as H,bH as T,bs as R,bR as G,bB as O,bz as U,c7 as z,bP as X,bZ as q,a$ as M,bC as K}from"./EBpBARSw.js";import{_ as Y}from"./Dy2xinyL.js";import{T as Z,E as x,C as J,M as W}from"./DpZ7f565.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},b=new u.Error().stack;b&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[b]="abca7d22-de4a-4e70-a2f4-a36e1780fe31",u._sentryDebugIdIdentifier="sentry-dbid-abca7d22-de4a-4e70-a2f4-a36e1780fe31")}catch{}})();const j={key:2},Q=["innerHTML"],ee=["href"],te=["onClick"],ne=L({__name:"TheCarousel",setup(u){const b=S();let r=0;const s=M([]),n=M(0);function v(){return window.setInterval(()=>{n.value<s.value.length-1?n.value++:n.value=0},Z)}const w=V(function*(){window.clearInterval(r);try{s.value=yield b.pub.getPubListById("up-waterfall").then(({data:e})=>e?.articles?.filter(({data:c})=>{const f=c?.brandvoice?.[0]?.url?.replace("brandvoice/","")||"";return!x.includes(f)})?.map(({data:c})=>{const{name:f,url:y}=c?.brandvoice?.[0]||{};return{...c,heading:{title:f||"",to:`/${y||"brandvoice"}`}}})||[])}catch(e){console.error(e)}finally{s.value=[...J,...s.value].slice(0,W),r=v()}});function B(){window.clearInterval(r),n.value=n.value>0?n.value-1:s.value.length-1,r=v()}function E(){window.clearInterval(r),n.value=n.value<s.value.length-1?n.value+1:0,r=v()}function k(e){return e.startsWith("http")}return F(()=>{window.clearInterval(r)}),N(()=>{w.perform()}),(e,c)=>{const f=D,y=G,$=H,I=Y;return a(),o("div",{class:l(e.$style.root)},[d(A,{name:"fade"},{default:_(()=>[i(s).length===0||i(w).isRunning?(a(),o("div",{key:"loader",class:l(e.$style.loader)},[d(f)],2)):g("",!0)]),_:1}),d(q,{mode:"out-in",name:"fade",tag:"div"},{default:_(()=>[(a(!0),o(m,null,C(i(s),(t,p)=>P((a(),o("div",{key:p,class:l(e.$style.item)},[h("p",{class:l(e.$style.title)},[d($,T({ref_for:!0},k(t.heading.to)?{href:t.heading.to,target:"_blank"}:{to:t.heading.to}),{default:_(()=>[t.heading.icon?(a(),R(y,{key:0,name:t.heading.icon},null,8,["name"])):t.heading.title?(a(),o(m,{key:1},[O(U(t.heading.title)+" ",1),c[0]||(c[0]=h("span",null,"Ðлог",-1))],64)):(a(),o("span",j,"Ðлоги"))]),_:2},1040)],2),d($,T({ref_for:!0},k(t.heading.to)?{href:t.url_alias,target:"_blank"}:{to:`/${t.url_alias}`},{class:e.$style.description}),{default:_(()=>[h("span",{style:z({"--waterfall-line-clamp":t.heading.title&&t.heading.title.length>18?2:3}),innerHTML:t.title},null,12,Q)]),_:2},1040,["class"]),t.heading.adfoxPixel?(a(),o("a",{key:0,class:l(e.$style.adfoxPixel),href:t.heading.adfoxPixel},null,10,ee)):g("",!0)],2)),[[X,p===i(n)]])),128))]),_:1}),i(s).length?(a(),o("div",{key:0,class:l(e.$style.controls)},[h("ul",{class:l(e.$style.dots)},[(a(!0),o(m,null,C(i(s).length,t=>(a(),o("li",{key:t,class:l({[e.$style.dot]:!0,[e.$style.dotActive]:t-1===i(n)}),onClick:p=>n.value=t-1},null,10,te))),128))],2),i(s).length>1?(a(),o("div",{key:0,class:l(e.$style.buttons)},[d(I,{class:l(e.$style.buttonBackward),"is-disabled":!1,name:"chevron-2",theme:"light",onClick:B},null,8,["class"]),d(I,{class:l(e.$style.buttonForward),"is-disabled":!1,name:"chevron-2",theme:"light",onClick:E},null,8,["class"])],2)):g("",!0)],2)):g("",!0)],2)}}}),ae="GCEqf",se="vZ3Cc",oe="VKwep",le="HOLIK",re="_0rg-F",ie="o7PDC",ce="SGqBM",de="u39pb",ue="HOoLy",fe="DVn-J",be="FMaMB",_e="ylbH-",ge={root:ae,item:se,description:oe,title:le,controls:re,dots:ie,dot:ce,dotActive:de,buttons:ue,buttonBackward:fe,buttonForward:be,loader:_e},he={$style:ge},we=K(ne,[["__cssModules",he]]);export{we 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.