1import{_ as w,a as M}from"./B2DXUMEW.js";import{_ as L}from"./CfN5-Jpy.js";import{_ as j}from"./BnWokWVn.js";import{u as C,a as D,o as I,f as N,B as T,r as a,y as A,_ as H,g as l,h as i,i as r,j as t,t as c,q as O,A as f,m as _,C as S,af as V,x as B}from"./D2tAaOhh.js";import{_ as P}from"./ChvAnFfz.js";import"./BQpWWsKh.js";import"./DmwFeCT7.js";const E={setup(){const h=C(),s=a(""),x=D(),e=a([]),m=a(!0),n=a({}),p=a(!1),g=A(()=>{if(n.value){let y=n.value.starts_at_formatted.split(" ");return{date:y[0],hour:y[1]}}else return{}}),u=a(""),d=a(""),v=a(""),b=o=>{e.value=[{name:"InÃcio",link:"/"},{name:"Eventos",link:"/eventos"},{name:o,link:""}]},k=o=>`http://www.google.com/maps/place/${o.lat},${o.lng}`;return I(()=>{setTimeout(()=>{p.value=!0},1e3)}),N(`${h.client.backend}/portal/events/${x.params.id}`,{key:`event_data_${x.params.id}`},"$ZWNhwdCqQ9").then(o=>{o.pending&&(n.value=o.data.value.result,b(n.value.name),s.value=n.value.name,d.value=n.value.description,v.value=n.value.image_url,T({ogType:"website",title:()=>s.value,ogTitle:()=>s.value,description:()=>d.value,ogDescription:()=>d.value,ogImage:()=>v.value,ogUrl:u.value}),m.value=!1)}).catch(o=>{console.log(o),m.value=!0}),{titlePage:s,arrayOfLinks:e,event:n,loading:m,start:g,getMapsUrl:k,isMap:p}}},U={key:0},q={class:"container mx-auto pt-8 pb-4 px-3 h-full"},F={class:"w-12/12 mx-auto h-full"},z={class:"flex flex-col h-full justify-between"},G={class:"flex"},Q={class:"flex px-8"},R={class:"text-4xl font-semibold text-white"},W={class:"container mx-auto py-6 px-3"},Z={class:"w-12/12 mx-auto"},J={class:"grid grid-cols-1"},K={class:"col-span-1 px-2 sm:px-4 md:px-6 lg:px-8"},X={class:"grid grid-cols-12"},Y={class:"col-span-12 md:col-span-9"},$={class:"grid grid-cols-4"},tt={class:"col-span-4 md:col-span-3"},et={class:"flex flex-col"},st={class:"m-0 text-base lg:text-sm xl:text-base"},ot={class:"col-span-12 md:col-span-3"},nt={class:"flex justify-end"},at={class:"flex flex-col"},lt={class:"flex items-center"},it={class:"font-semibold mr-2"},ct={class:"py-1 lg:py-0 xl:py-1 px-2 lg:px-1 xl:px-2 bg-red-500 font-semibold text-white rounded-md"},dt={key:0,class:"col-span-1 px-2 sm:px-4 md:px-6 lg:px-8 mt-4 lg:mt-6"},rt={class:"flex flex-col"},_t={key:0,class:"font-semibold text-lg leading-tight"},mt={key:1,class:"font-semibold text-lg leading-tight"},pt=["innerHTML"],vt={class:"col-span-1 mt-4 lg:mt-6"},xt={class:"grid grid-cols-1"},gt={class:"col-span-1"},ut={class:"flex justify-center"},ft={class:"font-bold text-lg"},ht={key:1,class:"col-span-1 mt-3 lg:mt-4"},yt={class:"flex items-center justify-center"},bt=["href"],kt={key:2,class:"col-span-1 mt-2"},wt={key:1,class:""};function Mt(h,s,x,e,m,n){const p=w,g=M,u=L,d=j,v=V;return l(),i("main",null,[e.loading?(l(),i("div",wt,[...s[6]||(s[6]=[B('<div class="container pt-4 pb-4 mx-auto"><div class="grid grid-cols-1"><div class="col-span-1"><div class="flex justify-center"><img src="'+P+'" alt="Imagem de loading do Placarsoft" class="h-[300px] md:h-[400px]"></div></div></div></div>',1)])])):(l(),i("div",U,[r(p,{title:"Evento"}),t("div",{class:"bg-center bg-no-repeat bg-cover h-[500px]",style:O(`background-image: linear-gradient(rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0.5)100%), url('${e.event.image_url}')`)},[t("div",q,[t("div",F,[t("div",z,[t("div",G,[r(g,{isLight:!0,arrayOfLinks:e.arrayOfLinks},null,8,["arrayOfLinks"])]),t("div",Q,[t("span",R,c(e.event.name),1)])])])])],4),t("div",null,[t("div",W,[t("div",Z,[t("div",J,[t("div",K,[t("div",X,[t("div",Y,[t("div",$,[t("div",tt,[t("div",et,[s[0]||(s[0]=t("span",{class:"font-semibold text-base lg:text-sm xl:text-base"},"Descrição:",-1)),t("p",st,c(e.event.description),1)])])])]),t("div",ot,[t("div",nt,[t("div",at,[t("div",lt,[t("span",it,c(e.start.date),1),t("span",ct,c(e.start.hour),1)]),r(u,{classFather:"justify-end mt-2",classChild:"w-[22px]"})])])])])]),e.event.limit||e.event.price_formatted?(l(),i("div",dt,[t("div",rt,[e.event.limit?(l(),i("span",_t,[s[1]||(s[1]=f("Limite: ",-1)),t("span",null,c(e.event.limit),1)])):_("",!0),e.event.price_formatted&&e.event.price_formatted!=="Grátis"?(l(),i("span",mt,[s[2]||(s[2]=f("Preço: ",
1-1)),t("span",null,c(e.event.price_formatted),1)])):_("",!0)])])):_("",!0),s[5]||(s[5]=t("div",{class:"col-span-1 px-2 sm:px-4 md:px-6 lg:px-8 mt-6 lg:mt-8 2xl:mt-10"},[t("span",{class:"font-semibold text-lg"},"Informação complementar:")],-1)),t("div",{class:"col-span-1 px-2 sm:px-4 md:px-6 lg:px-8 mt-1",innerHTML:e.event.body},null,8,pt),t("div",vt,[t("div",xt,[t("div",gt,[t("div",ut,[s[3]||(s[3]=t("span",{class:"font-medium mr-2 text-lg"},"Local:",-1)),t("span",ft,c(e.event.address),1)])])])]),e.event.location_formatted?(l(),i("div",ht,[t("div",yt,[t("a",{href:e.getMapsUrl(e.event.location_formatted),target:"_blank",class:"no-underline text-base rounded px-3 py-1 rounded bg-gray-600 text-white hover:bg-gray-600/90"},[...s[4]||(s[4]=[t("i",{class:"las la-external-link-alt text-lg"},null,-1),f(" Abrir mapa",-1)])],8,bt)])])):_("",!0),e.event.location_formatted&&e.isMap?(l(),i("div",kt,[r(v,null,{default:S(()=>[r(d,{location:e.event.location_formatted},null,8,["location"])]),_:1})])):_("",!0)])])])])]))])}const At=H(E,[["render",Mt]]);export{At 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.