1import{e as N,s as B,j as h,c as o,o as a,a as t,i as w,z as m,A as b,h as s,a5 as C,q as _,F as f,k,t as g,g as S,w as V,a1 as P,_ as T,b as U,bf as M,x as R}from"./DuNswFfk.js";import{_ as j}from"./CofN-Yin.js";import{u as q}from"./BAegRKQR.js";import{u as z}from"./D7zb68Us.js";import{_ as I}from"./DlAUqK2U.js";import"./Dk6SVRAV.js";import"./B7SFJ4ud.js";import"./C21NUi_A.js";const K={class:"mx-auto max-w-1580px px-40px lt-lg-w-auto xxl:max-w-1518px lt-md-px-20px"},$={class:"grid grid-cols-1 mt-50px gap-8 lg:grid-cols-[75%_25%]"},G={class:"order-1 pb-100px pr-15px lt-lg:order-2"},O={class:"mb-40px flex flex-wrap items-end gap-16px b-b-1 b-neutral200 b-solid pb-30px"},H={class:"flex flex-col gap-4px"},J={class:"flex flex-col gap-4px"},Q={class:"flex flex-col gap-4px"},W={key:0,class:"py-40px text-center text-neutral400"},X={key:0,class:"py-40px text-center text-neutral400"},Y={class:"mb-12px text-14px fw-700 tracking-wider uppercase"},Z={class:"flex flex-col"},tt={class:"shrink-0 c-neutral600 fw-400 tabular-nums"},et={class:"group-hover:underline"},st={key:0,class:"order-2 h-min border-5px border-neutral100 border-solid px-15px lt-md:z-1 lt-md:bg-secondary lt-lg:order-1"},nt=N({__name:"index",async setup(at){let l,r;const p=q(),{textFilter:d,startDateFilter:u,endDateFilter:c,groupedByMonth:v}=B(p),{applyFilters:i,getEventDateRange:E,getEventLink:A}=p,{data:y}=([l,r]=h(()=>z("/api/strapi/find",{params:{contentType:"menu-lateral-paginas",populate:M,"filters[titulo][$eq]":"Eventos"}},"$0hfcbk87b4")),l=await l,r(),l),{pending:D}=([l,r]=h(async()=>R("listagem-eventos",async()=>(await Promise.all([p.fetchEventsAll(),p.fetchSearchEvents()]),!0))),l=await l,r(),l);return(lt,e)=>{const L=T,F=j;return a(),o("div",null,[e[8]||(e[8]=t("div",{class:"mx-auto h-270px gradiente-pagina lt-md-h-auto"},[t("div",{class:"mx-auto h-full max-w-1518px px-30px xxl:max-w-1
1518px lt-lg-px-45px lt-md-px-20px lt-md-pt-80px",flex:"~ col justify-end"},[t("h1",{class:"m-0 pb-35px color-primaryLight fw-300 !text-48px !lt-lg-text-38px"}," Listagem ")])],-1)),t("div",K,[t("div",$,[t("div",G,[t("div",O,[t("div",H,[e[5]||(e[5]=t("label",{class:"text-13px text-neutral500 fw-400"},"Evento",-1)),m(t("input",{"onUpdate:modelValue":e[0]||(e[0]=n=>_(d)?d.value=n:null),type:"text",placeholder:"Evento",class:"h-40px min-w-180px b-0 b-b-1 b-neutral300 b-solid bg-transparent px-0 text-15px outline-none focus:b-b-site placeholder-neutral400",onKeyup:e[1]||(e[1]=C((...n)=>s(i)&&s(i)(...n),["enter"]))},null,544),[[b,s(d)]])]),t("div",J,[e[6]||(e[6]=t("label",{class:"text-13px text-neutral500 fw-400"},"Data de inÃcio",-1)),m(t("input",{"onUpdate:modelValue":e[2]||(e[2]=n=>_(u)?u.value=n:null),type:"date",class:"h-40px min-w-180px b-0 b-b-1 b-neutral300 b-solid bg-transparent px-0 text-15px text-neutral700 outline-none focus:b-b-site"},null,512),[[b,s(u)]])]),t("div",Q,[e[7]||(e[7]=t("label",{class:"text-13px text-neutral500 fw-400"},"Data de fim",-1)),m(t("input",{"onUpdate:modelValue":e[3]||(e[3]=n=>_(c)?c.value=n:null),type:"date",class:"h-40px min-w-180px b-0 b-b-1 b-neutral300 b-solid bg-transparent px-0 text-15px text-neutral700 outline-none focus:b-b-site"},null,512),[[b,s(c)]])]),t("button",{type:"button",class:"h-38px cursor-pointer border-1.5px border-site rounded-full bg-transparent px-22px text-14px c-site fw-600 transition hover:bg-site hover:c-secondary",onClick:e[4]||(e[4]=(...n)=>s(i)&&s(i)(...n))}," Buscar ")]),s(D)?(a(),o("div",W," Carregando eventos... ")):(a(),o(f,{key:1},[s(v).length===0?(a(),o("div",X," Nenhum evento encontrado. ")):w("",!0),(a(!0),o(f,null,k(s(v),n=>(a(),o("div",{key:n.label,class:"mb-32px"},[t("p",Y,g(n.label),1),t("div",Z,[(a(!0),o(f,null,k(n.items,x=>(a(),S(L,P({key:String(x._date)},{ref_for:!0},s(A)(x),{class:"group flex items-baseline gap-12px py-6px text-15px text-neutral800 leading-snug decoration-none transition-colors hover:c-site"}),{default:V(()=>[t("span",tt,g(s(E)(x)),1),t("span",et,g(x.titulo),1)]),_:2},1040))),128))])]))),128))],64))]),s(y)?.data[0]?(a(),o("div",st,[U(F,{menu:s(y).data[0]},null,8,["menu"])])):w("",!0)])])])}}}),mt=I(nt,[["__scopeId","data-v-57a5c26a"]]);export{mt 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.