1(self.webpackChunkhost=self.webpackChunkhost||[]).push([[936,7806,8454],{3928:function(e,t,n){"use strict";n.d(t,{B:function(){return r}});var s=n(59065);function r(e){let{onIntersect:t,options:n,shouldObserve:r}=e,i=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(!i.current||!r)return;let e=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&t()})},n);return e.observe(i.current),()=>{e.disconnect()}},[t,n,r]),{observerRef:i}}},12122:function(e,t,n){"use strict";n.d(t,{L:function(){return l}});var s=n(40813),r=n(95416),i=n(59065);function l(e){var t;let{params:n,retry:l=!0}=e,{selectedState:a}=(0,r.useLocation)(),{data:o,isLoading:c,isFetching:d,fetchNextPage:u,hasNextPage:h}=(0,s.useInfiniteQuery)({queryKey:["events",n],retry:l,queryFn:e=>{let{pageParam:t}=e;return(0,r.getEvents)({...n,page:t})},initialPageParam:1,getNextPageParam:(e,t)=>{let{meta:n}=e,s=Math.ceil(n.total/n.per_page);return t.length>=s?null:n.current_page+1}}),x=null==o?void 0:o.pages.flatMap(e=>e.data),m=(0,i.useMemo)(()=>(0,r.filterEventsByState)(null!=x?x:[],a),[x,a]);return{events:null!=x?x:[],orderedEvents:m,totalEvents:null!==(t=null==o?void 0:o.pages[0].meta.total)&&void 0!==t?t:0,isLoading:c||d,fetchNextPage:u,hasNextPage:h}}},13372:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var s=n(23078),r=n(95416),i=n(71781),l=n(45835);function a(e){let{startDate:t,endDate:n,color:a="",hideEndDate:o=!1}=e,c=(0,l.useFormatter)(),d=e=>{let t=new Date(e);return Number.isNaN(t.getTime())?(console.error("Invalid date provided: ".concat(e)),null):t},u=(e,t)=>c.dateTime(e,t).replace(/ de |\.|\. â /g," ").trim(),h=d(t),x=d(n);if(!h||!x)return null;let m=h.toDateString()===x.toDateString(),f=x.getTime()-h.getTime()<864e5,g=u(h,{day:"2-digit",month:"short"}),p=u(h,{day:"2-digit",month:"short",year:"numeric"}),v=u(x,{day:"2-digit",month:"short",year:"numeric"});return(0,s.jsx)("time",{className:(0,i.cn)(["uppercase","flex","flex-row","whitespace-nowrap"]),style:{color:a||"#FFFFFF"},children:o||m||f?p:(0,s.jsxs)(s.Fragment,{children:[g,(0,s.jsx)("div",{className:"flex content-center items-center justify-center px-1",children:(0,s.jsx)(r.GreaterThan,{width:5,height:10,color:a||"#FFFFFF"})}),v]})})}},18580:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});/** 2 * @license lucide-react v0.436.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */let s=(0,n(45685).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},23359:function(e,t,n){"use strict";n.d(t,{Am:function(){return i},di:function(){return s},rm:function(){return r}});let s=(e,t,n=!1)=>e?e.slice().sort(!0===n?(e,n)=>t(n)-t(e):(e,n)=>t(e)-t(n)):[],r=(e,t,n="asc")=>e?e.slice().sort("desc"===n?(e,n)=>`${t(n)}`.localeCompare(t(e)):(e,n)=>`${t(e)}`.localeCompare(t(n))):[],i=(e,t)=>Object.values(e.reduce((e,n)=>{let s=t?t(n):n;return e[s]||(e[s]=n),e},{}))},42116:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var s=n(23078),r=n(95416),i=n(45835),l=n(59065),a=n(46266);let o=(0,l.memo)(function(e){let{events:t,hasMorePages:n,onNextPage:o,isSearchScreen:c,isLoading:d}=e,u=(0,i.useTranslations)();return(0,l.useEffect)(()=>{let e=()=>{let e=window.scrollY,t=window.innerHeight,{scrollHeight:s}=document.documentElement;s-e<=1.5*t&&n&&!d&&o()};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[n,d,o]),(0,s.jsxs)("section",{className:"flex flex-col gap-6x md:gap-8x",children:[!c&&(0,s.jsx)("h2",{className:"heading-sm font-brand text-grey-900",children:u("Index.upcomingEvents")}),(0,s.jsx)("div",{className:"grid grid-cols-1 gap-6 lg:gap-y-8 sm:grid-cols-3 md:grid-cols-4 xl:grid-cols-5",children:t.map((e,t)=>(0,s.jsx)(a.n,{cssId:"card".concat(t),event:e},e.id))}),(0,s.jsx)("div",{className:"flex justify-center",children:d&&(0,s.jsx)(r.Spinner,{})})]})})},45685:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var s=n(59065);/** 7 * @license lucide-react v0.436.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */let r=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=(...e)=>
11e.filter((e,t,n)=>!!e&&n.indexOf(e)===t).join(" ");/** 12 * @license lucide-react v0.436.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 17 * @license lucide-react v0.436.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */let a=(0,s.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:c,...d},u)=>(0,s.createElement)("svg",{ref:u,...l,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:i("lucide",a),...d},[...c.map(([e,t])=>(0,s.createElement)(e,t)),...Array.isArray(o)?o:[o]])),o=(e,t)=>{let n=(0,s.forwardRef)(({className:n,...l},o)=>(0,s.createElement)(a,{ref:o,iconNode:t,className:i(`lucide-${r(e)}`,n),...l}));return n.displayName=`${e}`,n}},46266:function(e,t,n){"use strict";n.d(t,{n:function(){return f}});var s=n(23078),r=n(95416),i=n(71781),l=n(27103),a=n.n(l),o=n(3085),c=n.n(o),d=n(45835),u=n(59065),h=n(13372),x=n(50816);let m=a()(()=>Promise.all([n.e(1918),n.e(6834)]).then(n.bind(n,34453)),{loadableGenerated:{webpack:()=>[34453]},ssr:!1}),f=(0,u.memo)(function(e){let{event:t,cssId:n}=e,l=(0,d.useTranslations)("Producers"),{name:a,banner:o,thumb:f,slug:g,start_date:p,end_date:v,hide_event_end_date:j,event_location:y,is_closed:w,vertical_banner:_,is_online:b}=t,N=(null==y?void 0:y.name)?"".concat(null==y?void 0:y.city,", ").concat(null==y?void 0:y.name):null==y?void 0:y.formatted_address,k=(0,u.useCallback)(()=>{(0,r.sendGTagEvent)("select_content",{content_type:"event_card",content_id:t.id,event_name:t.name})},[t.id,t.name]);return(0,s.jsxs)("div",{id:n,className:(0,i.cn)(["flex","flex-row","gap-4x","w-full","h-[120px]","rounded-sm","relative","sm:flex-col","sm:w-[164px]","sm:h-[296px]","lg:w-52","lg:h-[342px]","transition-shadow","duration-500",{"opacity-50":w}]),children:[(0,s.jsxs)(c(),{href:"/eventos/".concat(g),className:"flex flex-row gap-4x w-full h-[120px] rounded-sm relative sm:flex-col sm:w-[164px] sm:h-[296px] lg:w-52 lg:h-[342px] hover:shadow-level1 transition-shadow duration-500",onClick:k,children:[(0,s.jsx)("div",{className:(0,i.cn)(["flex","min-w-[120px]","min-h-[120px]","w-[120px]","h-[120px]","sm:w-[164px]","sm:h-[164px]","lg:w-52","lg:h-52","rounded-sm","overflow-hidden"]),children:(0,s.jsx)(x.Z,{src:_||o,fallback:f,alt:a,width:208,he
21ight:208,className:"w-full object-cover zoom-img shrink-0 aspect-auto"})}),(0,s.jsxs)("div",{className:"label-sm flex flex-col gap-2x text-left justify-center",children:[(0,s.jsx)("strong",{className:"heading-xs-heavy font-brand font-semibold text-grey-900 leading-none line-clamp-2 h-9",children:a}),(0,s.jsx)(h.L,{startDate:p,endDate:v,hideEndDate:j,color:"var(--color-primary-pure)"}),(0,s.jsx)("p",{className:"paragraph-sm text-grey-700 line-clamp-1 h-5x",children:b?l("onlineEvent"):N})]})]}),(0,s.jsx)("div",{className:"absolute left-1 top-1 right-auto sm:left-auto sm:top-2 sm:right-2",children:(0,s.jsx)(m,{isRect:!0,isMobile:!0,eventData:t})})]})})},50816:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var s=n(23078),r=n(55491),i=n.n(r),l=n(59065);let a=(0,l.memo)(function(e){let{src:t,fallback:n="",className:r,...a}=e,o="/imgs/empty-state.png",[c,d]=(0,l.useState)((e=>{if(!e)return!1;if("string"==typeof e){if(e.startsWith("/"))return!0;try{let t=new URL(e);return"https:"===t.protocol||"http:"===t.protocol}catch(e){return!1}}})(t)?t:o);return(0,l.useEffect)(()=>{d(t||n||o)},[t,n]),(0,s.jsx)(i(),{src:c,placeholder:"blur",blurDataURL:o,onError:()=>{d(o)},className:r,...a})})},58254:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return x}});var s=n(23078),r=n(95416),i=n(71781),l=n(18580),a=n(3085),o=n.n(a),c=n(56171),d=n(45835);let u=e=>["flex","flex-col","items-center","w-full","max-w-28","rounded-pill","gap-1x","p-1x","text-grey-900","stroke-grey-900",{"bg-primary-light text-white stroke-white":e}];function h(e){let{children:t,...n}=e,{asPath:r}=(0,c.useRouter)(),l=r===n.href;return(0,s.jsx)(o(),{className:(0,i.cn)(u(l)),...n,children:t})}function x(){let e=(0,c.useRouter)(),t=(0,d.useTranslations)(),{asPath:n}=(0,c.useRouter)(),{isAuthenticated:a}=(0,r.useAuth)(),{contentRef:o}=(0,r.useAdjustFooterMargin)(),{open:x,onOpen:m,onToggle:f}=(0,r.useDisclosure)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("nav",{ref:o,className:(0,i.cn)("fixed","left-0","bottom-0","flex","justify-between","items-center","w-full","h-18x","rounded-t-3xl","border-t-hairline","border-grey-300/medium","bg-white/90","px-3x","pt-1x","pb-2x","shadow-level1","z-50","lg:hidden"),children:[(0,s.jsxs)(h,{href:"/",children:[(0,s.jsx)(r.HomeIcon,{height:18}),(0,s.jsx)("span",{className:"paragraph-sm leading-none",children:t("BottomBar.home")})]}),(0,s.jsxs)(h,{href:"/eventos",children:[(0,s.jsx)(l.A,{height:18}),(0,s.jsx)("span",{className:"paragraph-sm leading-none",children:t("BottomBar.search")})]}),(0,s.jsxs)("div",{className:(0,i.cn)([...u("/meus-ingressos"===n),"curs
21or-pointer"]),"aria-hidden":!0,onClick:()=>{if(!a){m();return}e.push("/meus-ingressos")},children:[(0,s.jsx)(r.TicketIcon,{height:18}),(0,s.jsx)("span",{className:"paragraph-sm leading-none",children:t("BottomBar.tickets")})]})]}),(0,s.jsx)(r.LoginModal,{isOpen:x,onToggle:f,nextTo:"/meus-ingressos"})]})}},73823:function(e,t,n){"use strict";n.d(t,{V:function(){return u}});var s=n(23078),r=n(95416),i=n(45835),l=n(59065),a=n(46266),o=n(12122),c=n(3928),d=n(91402);let u=(0,l.memo)(function(e){let{title:t="",titleClassName:n=""}=e,l=(0,i.useTranslations)(),{selectedStateAbbreviation:u}=(0,r.useLocation)(),{events:h,isLoading:x,fetchNextPage:m,hasNextPage:f}=(0,o.L)({params:{order_by_state:u,within_past_year:!0,active_or_expired:!0,per_page:15}}),{observerRef:g}=(0,c.B)({onIntersect:m,shouldObserve:f});return(0,s.jsxs)("div",{className:"flex justify-center",children:[h.length>0&&(0,s.jsxs)("div",{className:"flex flex-col lg:gap-14x max-w-screen-xl px-6x",children:[(0,s.jsx)("h4",{className:n||"xs:text-md md:text-lg font-semibold font-brand leading-9 xs:mb-4x md:mb-5x",children:t||l("Event.nearbyExperiences")}),(0,s.jsx)("div",{className:"grid grid-cols-1 gap-6x sm:grid-cols-4 sm:-mx-2 xl:grid-cols-5",children:h.map((e,t)=>(0,s.jsx)(a.n,{cssId:"card".concat(t),event:e},e.id))})]}),(0,s.jsx)("div",{className:"flex justify-center items-center",children:x&&(0,s.jsx)(d.p,{isLoading:x,variant:"inline"})}),(0,s.jsx)("div",{ref:g})]})})},74140:function(e,t,n){"use strict";n.d(t,{z:function(){return l}});var s=n(95416),r=n(23359),i=n(59065);function l(e){var t,n,l,a,o,c,d;let{selectedState:u,selectedStateAbbreviation:h}=(0,s.useLocation)(),{newEvents:x,isLoading:m}=(0,s.useWhitelabel)(),f=(null!==(l=null==x?void 0:null===(t=x.events)||void 0===t?void 0:t.length)&&void 0!==l?l:0)>0||(null!==(a=null==x?void 0:null===(n=x.top_highlights)||void 0===n?void 0:n.length)&&void 0!==a?a:0)>0||Object.keys(null!==(o=null==x?void 0:x.middle_highlights_by_state)&&void 0!==o?o:{}).length>0?x:null!==(c=null==e?void 0:e.initialData)&&void 0!==c?c:x,g=(0,i.useMemo)(()=>{var e,t,n;let i=null!==(e=null==f?void 0:f.top_highlights)&&void 0!==e?e:[],l=null!==(t=null==f?void 0:f.middle_highlights_by_state)&&void 0!==t?t:{},a=(0,r.rm)((0,r.Am)(Object.values(l).flat(),e=>e.id),e=>e.event_location.state,"asc"),o=null!==(n=null==f?void 0:f.events)&&void 0!==n?n:[];return{top_highlights:(0,s.filterEventsByState)(i,u),middle_highlights:h?l[h]:a,events:(0,s.filterEventsByState)(o,u)}},[null==f?void 0:f.top_highlights,null==f?void 0:f.middle_highlights_by_state,null==f?void 0:f.events,u,h]),{paginatedItems:p,hasMorePages:v,nextPage:j}=(0,s.usePagination)({items:g.events});return{data:f,paginatedItems:p,hasMorePages:v,nextPage:j,filteredAndSortedCategories:null!==(d=null==f?void 0:f.categories)&&void 0!==d?d:[],filteredEvents:g,isLoading:m}}},90623:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/eventos",function(){return n(94309)}])},91402:function(e,t,n){"use strict";n.d(t,{p:function(){return u}});var s=n(23078),r=n(95416),i=n(27103),l=n.n(i),a=n(59065),o=n(5470);let c=l()(()=>n.e(1918).then(n.bind(n,62361)).then(e=>e.Player),{loadableGenerated:{webpack:()=>[62361]},ssr:!1});function d(){return(0,s.jsx)("svg",{stroke:"var(--color-primary-pure)",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"w-[120px] h-[120px]",children:(0,s.jsxs)("g",{children:[(0,s.jsxs)("circle",{cx:"12",cy:"12",r:"9.5",fill:"none",strokeWidth:"3",strokeLinecap:"round",children:[(0,s.jsx)("animate",{attributeName:"stroke-dasharray",dur:"1.5s",calcMode:"spline",values:"0 150;42 150;42 150;42 150",keyTimes:"0;0.475;0.95;1",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-dashoffset",dur:"1.5s",calcMode:"spline",values:"0;-16;-59;-59",keyTimes:"0;0.475;0.95;1",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1",repeatCount:"indefinite"})]}),(0,s.jsx)("animateTransform",{attributeName:"transform",type:"rotate",dur:"2s",values:"0 12 12;360 12 12",repeatCount:"indefinite"})]})})}function u(e){let{isLoading:t,variant:n="full-screen"}=e,[i,l]=(0,a.useState)(!1),u=(0,r.useIsZigWhitelabel)();return((0,a.useEffect)(()=>
21{l(!0)},[]),i&&t)?(0,s.jsx)("div",{className:"full-screen"===n?"fixed inset-0 z-[60] flex items-center justify-center bg-white opacity-95":"flex items-center justify-center",children:u?(0,s.jsx)(c,{src:o,autoplay:!0,loop:!0,className:"w-[120px] h-[120px]"}):(0,s.jsx)(d,{})}):null}},94309:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return w},default:function(){return _}});var s=n(23078),r=n(95416),i=n(39829),l=n.n(i),a=n(56171),o=n(45835),c=n(58254),d=n(59065),u=n(46266),h=n(12122),x=n(3928),m=n(91402),f=n(73823);function g(e){let{search:t}=e,n=(0,o.useTranslations)("SearchResults");return(0,s.jsxs)("div",{className:"flex flex-col gap-16",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("h1",{className:"heading-sm font-brand text-center",children:[n("noEventsFound")," ",(0,s.jsxs)("span",{style:{color:"var(--color-primary-light)"},children:["â",t,"â"]})]}),(0,s.jsx)("p",{className:"paragraph-md text text-grey-grey-600 text-center",children:n("noEventsFoundDescription")})]}),(0,s.jsx)(f.V,{})]})}let p=(0,d.memo)(function(e){let{search:t}=e,n=(0,o.useTranslations)(),{selectedStateAbbreviation:i,userIpLocation:a}=(0,r.useLocation)(),{events:c,totalEvents:f,isLoading:p,fetchNextPage:v,hasNextPage:j}=(0,h.L)({params:{by_name:t,order_by_state:i,latitude:null==a?void 0:a.lat,longitude:null==a?void 0:a.lon,within_past_year:!0,active_or_expired:!0,per_page:15}}),{observerRef:y}=(0,x.B)({onIntersect:v,shouldObserve:j});return(0,d.useEffect)(()=>{t&&((0,r.dataLayerEvent)({search_term:t,search_total_results:f}),(0,r.sendGTagEvent)("search",{search_term:t}))},[t,f]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l(),{children:(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify((0,r.SearchStructuredData)(c,t))}})}),0===c.length&&!p&&(0,s.jsx)(g,{search:t}),c.length>0&&(0,s.jsxs)("div",{className:"flex flex-col gap-10x lg:gap-14x",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("h1",{className:"heading-md font-brand",children:["â",t,"â"]}),(0,s.jsx)("p",{className:"paragraph-md text-grey-grey-600",children:"".concat(f," ").concat(n("Home.events"))})]}),(0,s.jsx)("div",{className:"grid grid-cols-1 gap-6x sm:grid-cols-4 sm:-mx-2 lg:gap-y-8 xl:grid-cols-5",children:c.map((e,t)=>(0,s.jsx)(u.n,{cssId:"card".concat(t),event:e},e.id))})]}),(0,s.jsx)("div",{className:"flex justify-center items-center",children:p&&(0,s.jsx)(m.p,{isLoading:p,variant:"inline"})}),(0,s.jsx)("div",{ref:y})]})});function v(){return(0,s.jsx)("div",{className:"lg:sr-only lg:hidden mb-6x",children:(0,s.jsx)(r.SearchInput,{})})}var j=n(42116),y=n(74140),w=!0;function _(){let e=(0,a.useRouter)(),t=(0,o.useTranslations)(),{search:n}=e.query,{paginatedItems:i,hasMorePages:d,nextPage:u,isLoading:h}=(0,y.z)(),x=(0,r.shouldNoIndexByEnvironment)(),{siteName:m}=(0,r.useWhitelabel)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l(),{children:[(0,s.jsx)("title",{children:t("seo.metaTitle",{siteName:m})}),x&&(0,s.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,s.jsxs)("div",{className:"w-full max-w-[1136px] py-4x px-5x lg:py-10x xl:mx-auto xl:px-0",children:[(0,s.jsx)(v,{}),n?(0,s.jsx)(p,{search:n}):(0,s.jsx)(j.n,{events:i,hasMorePages:d,onNextPage:u,isLoading:h,isSearchScreen:!0}),(0,s.jsx)(c.default,{})]})]})}}},function(e){"function"==typeof e.x?e.x():console.warn("[Module Federation] __webpack_require__.x is not a function, skipping startup extension"),_N_E=Promise.all([e.f.consumes||function(e,t){},e.f.remotes||function(e,t){}].reduce(function(e,t){return t("8454",e),e},[])).then(function(){return e.X(0,[636,8792,1781,7103,9829,5470,5491,3085],function(){return e(e.s=90623)})})}]);
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.