1import{_ as E}from"./Y5OzIA9C.js";import{D as N}from"./DqcCjSr_.js";import{m as $}from"./BfTi5GtZ.js";import{C}from"./B2bVAY5H.js";import{b,c as z}from"./x3M7hueC.js";import{d as k,x as B,c as d,r as T,C as V,E as l,B as g,g as t,R as m,a0 as w,a1 as x,S as a,f as c,w as h,o as n,e as D,U as f,Z as S,Q as I}from"./Rn1tUdXN.js";import{g as L}from"./Q-lw_Bwd.js";import{A as M}from"./DPcc2Wy2.js";import{EVENTS_BANNER_COUNT as A}from"./9VjtSTW-.js";import"./Dr3TjFj5.js";import"./C82jo5T_.js";import"./DytJJxyc.js";import"./Ctm8M-j-.js";import"./BWUQLM4E.js";import"./BQA0bEdl.js";import"./_pQ04Iv9.js";import"./B1kG8cP6.js";import"./DbrnNzFw.js";import"./DAMk_uET.js";import"./FUKBWQwh.js";import"./CIwZ0a70.js";import"./ChCPR7IN.js";import"./CcPy5fHj.js";const U=["src"],R=k({__name:"EventsBanner",setup(X){const{data:p}=B(z,{key:b}),r=d(()=>{if(!p.value)return[];const e=new Date;return $(p.value).filter(i=>new Date(i.event.end_time)>=e).slice(0,A)}),s=T(0);V(()=>r.value.length,e=>{e&&s.value>=e&&(s.value=e-1)});const o=d(()=>r.value[s.value]??null);return(e,i)=>{const v=E;return t(r).length?(n(),l("div",{key:0,class:a(e.$style.banner)},[m("div",{class:a(e.$style.left)},[(n(!0),l(w,null,x(t(r),(u,_)=>(n(),D(v,{key:u.event.id,theme:"white",class:a([e.$style.item,{[e.$style.item_active]:_===t(s)}]),onMouseenter:y=>s.value=_,onClick:y=>s.value=_},{default:h(()=>[f(S(u.event.name),1)]),_:2},1032,["class","onMouseenter","onClick"]))),128))],2),t(o)?(n(),l("div",{key:0,class:a(e.$style.right)},[m("div",{class:a(e.$style.photo)},[c(M,{erid:t(o).event.erid,company:t(o).event.company_information},null,8,["erid","company"]),(n(),l("img",{key:t(o).event.id,src:t(o).imageUrl||t(L)(t(o).event.id),alt:"",class:a(e.$style.image)},null,10,U)),m("div",{class:a(e.$style.overlay)},[c(N,{"start-time":t(o).event.start_time,"end-time":t(o).event.end_time,variant:"events-banner"},null,8,["start-time","end-time"])],2),m("div",{class:a(e.$style.action)},[c(v,{theme:"primary",size:"small",class:a(e.$style.action__btn),to:`${t(C)}${t(o).event.id}`},{default:h(()=>i[0]||(i[0]=[f(" ÐÑинÑÑÑ ÑÑаÑÑие ")])),_:1},8,["class","to"])],2)],2)],2)):g("",!0)],2)):g("",!0)}}}),F="_banner_oghzx_1",P="_left_oghzx_6",K="_item_oghzx_15",O="_item_active_oghzx_30",Q="_right_oghzx_34",Y="_photo_oghzx_42",Z="_image_oghzx_50",j="_overlay_oghzx_57",q="_place_oghzx_66",G="_action_oghzx_76",H="_action__btn_oghzx_82",J={banner:F,left:P,item:K,item_active:O,right:Q,photo:Y,image:Z,overlay:j,place:q,action:G,action__btn:H},W={$style:J},Ce=I(R,[["__cssModules",W]]);export{Ce as default}; 2//# sourceMappingURL=BIR8YzCY.js.map
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.