PageSourceSearch

https://fontedavida.com.br/assets/EventCarousel-DlsR3kYv.js

js fontedavida.com.br collected 2026-09-26 18:05:55 UTC 2,230 bytes, 1 lines download raw bytes

1import{_ as B,ac as V,af as c,aj as X,ad as w,aZ as N,c as r,o as i,a as g,F as P,s as b,n as x,g as O,e as _,t as y,ag as v}from"./index-sUPB-bMu.js";import $ from"./ImageComponent-BxbTJZig.js";import"./optimizedImage-CqToSDpL.js";const j={class:"carousel-container"},q=["onClick"],F={key:0,class:"carousel-item__info"},z=["textContent"],G=["textContent"],I=20,R={__name:"EventCarousel",props:{eventsHighlighted:{type:Array,required:!0,validator:n=>n.length>=1},isEmbed:{type:Boolean,required:!1,default:()=>!1}},setup(n){const{t:T}=V(),m=c(Array(n.eventsHighlighted.length).fill(!1)),o=c(1),f=c(0),l=c(0),H=e=>{h(),l.value=0,f.value=e.touches[0].clientX},k=e=>{l.value=e.touches[0].clientX},S=()=>{if(!!!l.value)return;const t=f.value-l.value;t>I?o.value=(o.value+1)%n.eventsHighlighted.length:t<-I&&(o.value=(o.value-1+n.eventsHighlighted.length)%n.eventsHighlighted.length),u()},C=e=>{const t=n.eventsHighlighted.length,a=o.value;if(e===a||t===1)return"center";if(t===2)return"right";const s=(a-1+t)%t,d=(a+1)%t;return e===s?"left":e===d?"right":"hidden"},A=X();let E;const u=()=>{n.eventsHighlighted.length<=1||(E=setInterval(()=>{o.value=(o.value+1)%n.eventsHighlighted.length},5e3))},h=()=>{clearInterval(E)};w(()=>{u()}),N(()=>{h()});const L=(e,t)=>{C(t)==="center"?M(e):D(t)},M=e=>{A.push({name:"eventsSingle",params:{eventId:e.id}})},D=e=>{h(),o.value=e,u()},p=e=>{const t=v(e).format("D"),a=v(e).format("MMMM"),s=v(e).format("LT");return T("EVENT.GLOBAL.TEXT.DATES.SAME",{day:t,month:a,hour:s}).replace(".","")};return(e,t)=>(i(),r("div",j,[g("div",{class:"carousel-wrapper",onTouchstart:H,onTouchmove:k,onTouchend:S},[(i(!0),r(P,null,b(n.eventsHighlighted,(a,s)=>(i(),r("div",{key:s,class:x(["carousel-item",`carousel-item--${C(s)}`,{"carousel-item--full":n.eventsHighlighted.length===1},{"carousel-item--full--embed":n.eventsHighlighted.length===1&&n.isEmbed}]),onClick:d=>L(a,s)},[O($,{src:a.image.url,class:"carousel-image",onLoad:d=>m.value[s]=!0},null,8,["src","onLoad"]),m.value[s]?(i(),r("div",F,[g("p",{class:"name",textContent:y(a.name)},null,8,z),g("p",{class:"date",textContent:y(p(a.startDate))},null,8,G)])):_("",!0)],10,q))),128))],32)]))}},K=B(R,[["__scopeId","data-v-9337e49f"]]);export{K 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.