PageSourceSearch

https://www.gonew.co/_next/static/chunks/pages/evento/[slug]-8299a7abdd38838f.js

js gonew.co collected 2026-10-09 04:58:36 UTC 14,371 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6837],{16706:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/evento/[slug]",function(){return n(8238)}])},26959:function(e,t,n){"use strict";n.d(t,{f:function(){return a}});var s=n(85893);function a(){return(0,s.jsx)("div",{className:"grid grid-cols-6 gap-2 mt-5",children:l.map(e=>(0,s.jsxs)("div",{className:"bg-white/10 border-[#cccccc] border customblur p-4 text-black/80 rounded-md col-span-6 md:col-span-2",children:[(0,s.jsxs)("div",{className:"flex justify-start  items-center gap-2 col-span",children:[(0,s.jsx)("div",{className:"p-1 flex justify-center items-center rounded-md bg-[#cccccc90] customblur w-8 h-8",children:e.icon}),(0,s.jsx)("p",{className:"font-bold text-base",children:e.title})]}),(0,s.jsx)("p",{className:"text-sm opacity-70 mt-2",children:e.description})]}))})}let l=[{icon:"\uD83E\uDE99",title:"Token de Conhecimento",description:"Receba de 100 a 250 Tokens ao participar de eventos, vestir a camisa e compartilhar novos conhecimentos com a comunidade!"},{icon:"\uD83C\uDF1F",title:"Branding Pessoal",description:"Seja protagonista ao liderar eventos e estudos da Comunidade Gonew, destacando seus achados e conhecimentos."},{icon:"\uD83C\uDF10",title:"Destaque na Comunidade",description:"Coloque-se em evid\xeancia na comunidade mais cool e genu\xedna da alta gest\xe3o, ganhando reconhecimento e conex\xf5es exclusivas."}]},29455:function(e,t,n){"use strict";n.d(t,{h:function(){return l}});var s=n(85893),a=n(881);function l(e){let{name:t}=e,{color:n}=(0,a.Fg)();return(0,s.jsx)("div",{className:"bg-black/10 px-2 py-1 rounded-full text-xs font-normal tracking-wide text-black/70 ",children:(0,s.jsx)("span",{children:t})})}},8238:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return P},default:function(){return R}});var s=n(85893),a=n(86730),l=n(67294);let o=l.forwardRef(function({title:e,titleId:t,...n},s){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},n),e?l.createElement("title",{id:t},e):null,l.createElement("g",{clipPath:"url(#a)"},l.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.25-7.25a.75.75 0 0 0 0-1.5H8.66l2.1-1.95a.75.75 0 1 0-1.02-1.1l-3.5 3.25a.75.75 0 0 0 0 1.1l3.5 3.25a.75.75 0 0 0 1.02-1.1l-2.1-1.95h4.59Z",clipRule:"evenodd"})),l.createElement("defs",null,l.createElement("clipPath",{id:"a"},l.createElement("path",{d:"M0 0h20v20H0z"}))))});var r=n(82850),c=n(17684),i=n(49308),d=n(49852),m=n(61120),u=n.n(m),x=n(41664),p=n.n(x),f=n(80521),h=n(60268),g=n(26959);function j(e){let{showConfirmation:t,setShowConfirmation:n,handleConfirmation:a,className:o}=e;return((0,l.useEffect)(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]),t)?(0,s.jsx)("div",{className:"fixed inset-0 overflow-y-auto flex items-center justify-center bg-gray-900 bg-opacity-50 z-[60] ".concat(o),children:(0,s.jsxs)("div",{className:"bg-white p-8 rounded-lg shadow-lg lg:w-[30%] md:w-[50%] w-[90%]",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 justify-center items-center mb-8",children:[(0,s.jsx)("p",{className:" text-slate-900 text-xl mb-4 text-center",children:(0,s.jsx)("b",{children:"Pronto para participar?"})}),(0,s.jsxs)("p",{className:" text-slate-900 text-base text-center",children:["Ao confirmar, voc\xea se une a outros membros da comunidade para compartilhar, inspirar, e construir saberes em rede! ",(0,s.jsx)("br",{})]}),(0,s.jsx)("p",{className:"opacity-40 text-slate-900 text-sm text-center",children:"*Lembre-se de n\xe3o confirmar sua presen\xe7a perante a comunidade, antes de garantir o seu ingresso neste evento."})]}),(0,s.jsxs)("div",{className:"flex justify-center",children:[(0,s.jsx)("button",{className:"mr-4 px-4 py-2 bg-gray-300 text-gray-800 rounded-md",onClick:()=>n(!1),children:"Cancelar"}),(0,s.jsx)("button",{className:"px-4 py-2 bg-[#238636] hover:bg-[#1c6b2b] text-white rounded-md",onClick:()=>{n(!1),a()},children:"Confirmar"})]})]})}):null}var v=n(34572),w=n(29455),b=n(9669),y=n.n(b);function N(e){let{event:t}=e,[n,a]=(0,l.useState)(null),[m,x]=(0,l.useState)(!1),[b,N]=(0,l.useState)(null),{user:E}=(0,d.S)();async function C(){try{let{data:e}=await h.$.get("/event/list-event-participation?slug=".concat(t.slug));a(e.response)}catch(e){console.log(e)}}async function k(){let e=null==document?void 0:document.querySelector("#capture"),n=await u()(e,{useCORS:!0,scale:3,allowTaint:!0,backgroundColor:"#ececec"});n.toBlob(async function(e){let n=new File([e],"nomeDaImagem.png",{type:"image/png"});if(n){let e=await h.$.post("aws/s3/signUrl/events",{fileName:"".concat(t.slug,"-").concat(E._id),fileType:"image/png",folder:"metaImagesEvents"});await y().put(e.data.signedRequest,n,{headers:{"Content-Type":"image/png"}})}})}async function _(){try{await h.$.post("/event/create-event-participation",{slugEvent:t.slug,titleEvent:t.title,startsEvent:t.startsEvent});let e=new URL(window.location.href),n=e.searchParams.get("indicator");n&&h.$.post("/product/purchaseIndication",{indicatorId:n,productTitle:t.title,productSlug:t.slug,producerExternal:!0,amount:50}).catch(e=>{console.error("Error posting purchase indication:",e)}),C(),setTimeout(()=>{k()},5e3)}catch(e){console.log("Error handling new participation event:",e)}k()}return(0,l.useEffect)(()=>{C()},[]),(0,s.jsxs)("main",{className:"min-h-screen w-full bg-[#f7f7f7] pb-[3rem]",children:[(0,s.jsxs)("div",{className:"w-full h-[250px] md:h-[350px] relative",children:[(0,s.jsx)(p(),{href:"/eventos",children:(0,s.jsxs)("div",{className:"bg-white/20 hover:bg-white/30 hovergonew w-fit flex gap-1 pl-2 pr-3 py-[0.4rem] absolute top-3 left-3 z-[50] text-white  rounded-full text-sm customblur justify-center items-center cursor-pointer",children:[(0,s.jsx)(o,{className:"w-4 h-4"})," voltar"]})}),(0,s.jsx)("div",{className:"bg-[#36363620] customblur w-full h-full absolute left-0 top-0"}),(0,s.jsx)("img",{src:t.image,className:"w-full h-full object-cover"}),(0,s.jsx)("div",{style:{boxShadow:"0px 4px 100px rgba(0, 0, 0, 0.50)"},className:"w-[90%] h-full object-cover z-20 absolute top-5 left-1/2 transform -translate-x-1/2  max-w-3xl overflow-hidden rounded-md",children:(0,s.jsx)("img",{src:t.image,className:"w-full h-full object-cover"})}),n&&E&&n.some(e=>e.idUser===E._id)?(0,s.jsx)(f.u,{data:{text:t.title||"",title:t.title||"",url:"".concat(window.location.href.substring(0,window.location.href.indexOf("/evento")),"/evento/").concat(t.slug,"?indicator=").concat(E._id)},children:(0,s.jsxs)("div",{style:{boxShadow:"0px 4px 40px rgba(0, 0, 0, 0.10)"},onClick:()=>{window.location.href="/evento/ticket/"+t.slug},className:"w-fit h-fit object-cover hover:bg-gray-200 z-50 absolute -bottom-[2rem] left-1/2 transform -translate-x-1/2  max-w-3xl overflow-hidden flex justify-center items-center gap-2 rounded-full py-1 pl-3 pr-4 bg-white text-sm cursor-pointer",children:[(0,s.jsx)("p",{children:" "}),(0,s.jsxs)("p",{className:"text-base text-[#238636] w-[10rem]",children:["Compartilhe seu link"," "]}),(0,s.jsx)(r.Z,{color:"#238636"})]})}):(0,s.jsxs)("div",{style:{boxShadow:"0px 4px 40px rgba(0, 0, 0, 0.10)"},onClick:()=>x(!0),className:"w-fit h-fit object-cover hover:bg-gray-200 z-50 absolute -bottom-[2rem] left-1/2 transform -translate-x-1/2  max-w-3xl overflow-hidden flex justify-center items-center rounded-full py-1 pl-3 pr-4 bg-white text-sm cursor-pointer",children:[(0,s.jsx)("p",{children:" "}),(0,s.jsxs)("p",{className:"text-base text-[#238636] w-[12rem]",children:["Confirme sua presen\xe7a!"," "]}),(0,s.jsx)(c.Z,{color:"#238636",className:"text-base"})]})]}),(0,s.jsxs)("div",{className:"w-full container flex flex-col gap-6 justify-center items-center py-16",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 items-center justify-center mb-2 max-w-full",children:[(0,s.jsx)("h2",{className:"text-black  text-center text-3xl font-bold w-full ",children:t.title}),(0,s.jsxs)("div",{className:"flex flex-row flex-wrap w-full gap-1 justify-center items-center mt-2",children:[(null==t?void 0:t.date)?(0,s.jsx)(w.h,{name:"\uD83D\uDDD3️ ".concat(t.date)}):null,(null==t?void 0:t.location)?(0,s.jsx)(w.h,{name:"\uD83D\uDCCD ".concat(t.location)}):null]}),(0,s.jsx)("p",{className:"text-black/60 mt-4 text-base text-center cursor-pointer",children:(0,s.jsx)(i.rJ,{forceColor:"black",charLimit:400,readMoreText:"Ler mais",readLessText:"Ler menos",children:t.description})})," "]}),(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:"flex flex-col justify-center items-center w-full ",children:[n&&n.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"text-black  text-center text-xl font-semibold w-full mb-6",children:"Quem est\xe1 indo da nossa comunidade?"}),(0,s.jsx)("div",{className:"w-fit h-fit flex justify-center items-center gap-2 mb-3",children:(0,s.jsxs)("div",{className:"flex",children:[n.map((e,t)=>(0,s.jsxs)("div",{className:"hover:-translate-y-3 z-[50]",onMouseEnter:()=>N(t),onMouseLeave:()=>N(null),style:{position:"relative"},children:[b===t&&(0,s.jsx)("div",{className:"absolute w-full right-2 top-16",children:(0,s.jsx)("p",{className:" text-center text-gray-500 font-semibold",children:e.name.split(" ").slice(0,2).join(" ")})}),(0,s.jsx)("div",{className:"w-[4rem] h-[4rem] border border-black/05 -ml-3 rounded-full overflow-hidden ".concat(t>6?"hidden":"flex"," hover:-translate-y-3 transition-transform cursor-pointer duration-200 flex justify-center items-center text-xl bg-[#848283] font-bold"),style:{zIndex:50-t},children:(null==e?void 0:e.photoURL)?(0,s.jsx)("img",{src:null==e?void 0:e.photoURL,className:"w-full h-full object-cover object-top",alt:e.name}
1):(0,s.jsx)("p",{"data-tooltip":e.name,children:e.name[0]})},t)]})),(0,s.jsx)("div",{className:"w-[4rem] h-[4rem] border border-black/05 -ml-3 rounded-full overflow-hidden  hover:-translate-y-3 bg-[#19151750] text-white/50 transition-transform cursor-pointer duration-200 flex justify-center items-center text-xl font-bold p-1",children:"+"})]})})]}):null,n&&E&&n.some(e=>e.idUser===E._id)&&(0,s.jsxs)("div",{className:"w-full flex flex-col justify-center items-center",children:[(0,s.jsxs)("div",{className:"w-fit gap-2 flex items-center min-w-[200px] mt-6 justify-between",children:[(0,s.jsx)("p",{children:" "}),(0,s.jsxs)("p",{className:"text-sm md:text-base text-[#238636] text-center",children:["Voc\xea confirmou sua presen\xe7a neste evento!"," "]})," ",(0,s.jsx)(c.Z,{color:"#238636",className:"text-base"})]}),(0,s.jsx)(v.h,{event:t})]}),n&&E&&!n.some(e=>e.idUser===E._id)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex flex-col justify-center items-center z-50 mb-10 mt-8",children:[(0,s.jsx)("p",{className:"text-black  text-center text-xl font-semibold w-full mb-3",children:"Por que participar?"}),(0,s.jsx)("p",{className:"text-base text-left md:text-center max-w-5xl z-50 mb-2 text-black/60 w-full",children:"A Gonew incentiva sua participa\xe7\xe3o nos maiores eventos para constru\xe7\xe3o de novos saberes."}),(0,s.jsx)(g.f,{})]}),(0,s.jsxs)("div",{style:{boxShadow:"0px 4px 40px rgba(0, 0, 0, 0.10)"},onClick:()=>x(!0),className:"w-fit h-fit object-cover hover:bg-gray-200 z-50  max-w-3xl overflow-hidden flex justify-center items-center gap-2 rounded-full py-1 pl-3 pr-4 bg-white text-sm cursor-pointer",children:[(0,s.jsx)("p",{children:" "}),(0,s.jsxs)("p",{className:"text-base text-[#238636]",children:["Confirme sua presen\xe7a!"," "]}),(0,s.jsx)(c.Z,{color:"#238636",className:"text-base"})]})]})]})})]}),(0,s.jsx)(j,{showConfirmation:m,setShowConfirmation:x,handleConfirmation:_})]})}var E=n(25225),C=n(881),k=n(18017),_=n(9008),D=n.n(_),S=n(11163),L=n(95092);let z=e=>{var t,n;let o=(0,S.useRouter)(),{data:r,loading:c}=(0,k.UE)(),i=null==r?void 0:null===(t=r.me)||void 0===t?void 0:null===(n=t.user)||void 0===n?void 0:n.email,{slug:d,indicator:m}=(0,S.useRouter)().query,u=[...L.A],x=u.find(e=>e.slug===d),p=null==x?void 0:x.color;return(0,l.useEffect)(()=>{c||i||!d||o.push("https://community.gonew.co/auth/login?redirect=https://gonew.co/evento/".concat(d))},[c,r]),(0,s.jsxs)(C.f6,{color:p,children:[(0,s.jsxs)(D(),{children:[(0,s.jsxs)("title",{children:["Let’s Gonew - ",null==x?void 0:x.title]}),m?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("meta",{property:"og:image",content:"https://community-gonew-public.s3.sa-east-1.amazonaws.com/metaImagesEvents/".concat(x.slug,"-").concat(m)}),(0,s.jsx)("meta",{property:"twitter:image",content:"https://community-gonew-public.s3.sa-east-1.amazonaws.com/metaImagesEvents/".concat(x.slug,"-").concat(m)})]}):(0,s.jsxs)(s.Fragment,{children:[(null==x?void 0:x.image)?(0,s.jsx)("meta",{property:"og:image",content:"https://gonew.co/".concat(x.image)}):null,(null==x?void 0:x.image)?(0,s.jsx)("meta",{property:"twitter:image",content:"https://gonew.co/".concat(null==x?void 0:x.image)}):null]}),(0,s.jsx)("meta",{name:"description",content:"Participe do ".concat(null==x?void 0:x.title," com a nossa comunidade!")}),(0,s.jsx)("meta",{name:"title",content:"Let’s Gonew - ".concat(null==x?void 0:x.title)}),(0,s.jsx)("meta",{property:"og:site_name",content:"Let’s Gonew - ".concat(null==x?void 0:x.title)}),(0,s.jsx)("meta",{property:"og:title",content:"Let’s Gonew - ".concat(null==x?void 0:x.title)}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{property:"og:description",content:"Participe do ".concat(null==x?void 0:x.title," com a nossa comunidade!")}),(0,s.jsx)("meta",{property:"twitter:card",content:"summary_large_image"}),(0,s.jsx)("meta",{property:"twitter:title",content:"Let’s Gonew - ".concat(null==x?void 0:x.title)}),(0,s.jsx)("meta",{property:"twitter:description",content:"Participe do ".concat(null==x?void 0:x.title," com a nossa comunidade!")})]}),(0,s.jsx)("main",{className:" bg-".concat(p,"-bg relative"),children:(0,s.jsx)(E.Z,{children:(0,s.jsxs)(C.f6,{color:p,children:[(0,s.jsx)(a.h4,{}),(0,s.jsx)(N,{event:x})]})})}),(0,s.jsx)("footer",{children:(0,s.jsx)(a.g_,{white:!0})})]})};var P=!0,R=z},9008:function(e,t,n){e.exports=n(42636)}},function(e){e.O(0,[2678,4885,8802,5443,3760,3124,3070,8031,1830,6646,7798,5675,990,5459,1523,6546,6344,8017,5188,9308,6730,4112,9774,2888,179],function(){return e(e.s=16706)}),_N_E=e.O()}]);

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.