PageSourceSearch

https://uniticket.com.br/_next/static/chunks/3213-63051040ae5c1145.js

js uniticket.com.br collected 2026-09-26 05:59:24 UTC 14,383 bytes, 21 lines download raw bytes

1"use strict";(self.webpackChunkhost=self.webpackChunkhost||[]).push([[3213,7806],{3928:function(e,t,n){n.d(t,{B:function(){return s}});var r=n(59065);function s(e){let{onIntersect:t,options:n,shouldObserve:s}=e,a=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(!a.current||!s)return;let e=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&t()})},n);return e.observe(a.current),()=>{e.disconnect()}},[t,n,s]),{observerRef:a}}},5219:function(e,t,n){n.d(t,{A:function(){return a}});var r=n(23078),s=n(45835);function a(e){let{icon:t,title:n,text:a}=e,l=(0,s.useTranslations)();return(0,r.jsx)("div",{className:"relative w-full min-h-full mx-0 my-auto flex",children:(0,r.jsxs)("div",{className:"bg-white/50 border border-white/50 px-8x py-6x rounded-md max-w-[752px] w-[95vw] md:w-screen mx-auto my-0 mt-16x flex flex-wrap content-center justify-center flex-col",children:[t,(0,r.jsx)("h4",{className:" xs:text-md md:text-lg text-center font-semibold font-brand leading-9 xs:mb-4x md:mb-5x",children:l(n)}),(0,r.jsx)("div",{className:"pb-4x",children:(0,r.jsx)("p",{className:"text-center",children:l(a)})})]})})}},12122:function(e,t,n){n.d(t,{L:function(){return l}});var r=n(40813),s=n(95416),a=n(59065);function l(e){var t;let{params:n,retry:l=!0}=e,{selectedState:i}=(0,s.useLocation)(),{data:o,isLoading:c,isFetching:d,fetchNextPage:u,hasNextPage:x}=(0,r.useInfiniteQuery)({queryKey:["events",n],retry:l,queryFn:e=>{let{pageParam:t}=e;return(0,s.getEvents)({...n,page:t})},initialPageParam:1,getNextPageParam:(e,t)=>{let{meta:n}=e,r=Math.ceil(n.total/n.per_page);return t.length>=r?null:n.current_page+1}}),m=null==o?void 0:o.pages.flatMap(e=>e.data),h=(0,a.useMemo)(()=>(0,s.filterEventsByState)(null!=m?m:[],i),[m,i]);return{events:null!=m?m:[],orderedEvents:h,totalEvents:null!==(t=null==o?void 0:o.pages[0].meta.total)&&void 0!==t?t:0,isLoading:c||d,fetchNextPage:u,hasNextPage:x}}},13372:function(e,t,n){n.d(t,{L:function(){return i}});var r=n(23078),s=n(95416),a=n(71781),l=n(45835);function i(e){let{startDate:t,endDate:n,color:i="",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 |\.|\.&thinsp;–&thinsp;/g," ").trim(),x=d(t),m=d(n);if(!x||!m)return null;let h=x.toDateString()===m.toDateString(),f=m.getTime()-x.getTime()<864e5,p=u(x,{day:"2-digit",month:"short"}),g=u(x,{day:"2-digit",month:"short",year:"numeric"}),v=u(m,{day:"2-digit",month:"short",year:"numeric"});return(0,r.jsx)("time",{className:(0,a.cn)(["uppercase","flex","flex-row","whitespace-nowrap"]),style:{color:i||"#FFFFFF"},children:o||h||f?g:(0,r.jsxs)(r.Fragment,{children:[p,(0,r.jsx)("div",{className:"flex content-center items-center justify-center px-1",children:(0,r.jsx)(s.GreaterThan,{width:5,height:10,color:i||"#FFFFFF"})}),v]})})}},18580:function(e,t,n){n.d(t,{A:function(){return r}});/**
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 r=(0,n(45685).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},42105:function(e,t,n){n.d(t,{e:function(){return a}});var r=n(95416),s=n(59065);function a(e){var t,n;let{slug:a}=e,{selectedState:l}=(0,r.useLocation)(),{data:i}=(0,r.useGlobalData)(),o=(0,s.useMemo)(()=>{var e;return null!==(e=null==i?void 0:i.categories)&&void 0!==e?e:[]},[null==i?void 0:i.categories]),c=(0,s.useMemo)(()=>o.find(e=>(e.name?(0,r.createSlug)(e.name):"")===a),[o,a]),d=(0,s.useMemo)(()=>(0,r.getCategoryIcon)((null==c?void 0:c.name)?(0,r.createSlug)(c.name):""),[null==c?void 0:c.name]),u=(0,s.useMemo)(()=>{if(!c)return[];let e=null==i?void 0:i.events.filter(e=>{let t="category"===c.type?e.event_categories:e.event_subcategories;return null==t?void 0:t.some(e=>e.id===c.id)});return(0,r.filterEventsByState)(e,l)},[null==i?void 0:i.events,c,l]),{paginatedItems:x,hasMorePages:m,nextPage:h}=(0,r.usePagination)({items:u});return{category:c?{...c,icon:null!==(t=null==d?void 0:d.icon)&&void 0!==t?t:""}:void 0,events:u,paginatedItems:x,hasMorePages:m,nextPage:h,totalEvents:null!==(n=u.length)&&void 0!==n?n:0}}},45685:function(e,t,n){n.d(t,{A:function(){return o}});var r=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 s=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=(...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 i=(0,r.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:i="",children:o,iconNode:c,...d},u)=>(0,r.createElement)("svg",{ref:u,...l,width:t,height:t,stroke:e,strokeWidth:s?24*Number(n)/Number(t):n,className:a("lucide",i),...d},[...c.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(o)?o:[o]])),o=(e,t)=>{let n=(0,r.forwardRef)(({className:n,...l},o)=>(0,r.createElement)(i,{ref:o,iconNode:t,className:a(`lucide-${s(e)}`,n),...l}));return n.displayName=`${e}`,n}},46266:function(e,t,n){n.d(t,{n:function(){return f}});var r=n(23078),s=n(95416),a=n(71781),l=n(27103),i=n.n(l),o=n(3085),c=n.n(o),d=n(45835),u=n(59065),x=n(13372),m=n(50816);let h=i()(()=>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:i,banner:o,thumb:f,slug:p,start_date:g,end_date:v,hide_event_end_date:j,event_location:w,is_closed:y,vertical_banner:b,is_online:N}=t,k=(null==w?void 0:w.name)?"".concat(null==w?void 0:w.city,", ").concat(null==w?void 0:w.name):null==w?void 0:w.formatted_address,_=(0,u.useCallback)(()=>{(0,s.sendGTagEvent)("select_content",{content_type:"event_card",content_id:t.id,event_name:t.name})},[t.id,t.name]);return(0,r.jsxs)("div",{id:n,className:(0,a.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":y}]),children:[(0,r.jsxs)(c(),{href:"/eventos/".concat(p),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:_,children:[(0,r.jsx)("div",{className:(0,a.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,r.jsx)(m.Z,{src:b||o,fallback:f,alt:i,width:208,he
21ight:208,className:"w-full object-cover zoom-img shrink-0 aspect-auto"})}),(0,r.jsxs)("div",{className:"label-sm flex flex-col gap-2x text-left justify-center",children:[(0,r.jsx)("strong",{className:"heading-xs-heavy font-brand font-semibold text-grey-900 leading-none line-clamp-2 h-9",children:i}),(0,r.jsx)(x.L,{startDate:g,endDate:v,hideEndDate:j,color:"var(--color-primary-pure)"}),(0,r.jsx)("p",{className:"paragraph-sm text-grey-700 line-clamp-1 h-5x",children:N?l("onlineEvent"):k})]})]}),(0,r.jsx)("div",{className:"absolute left-1 top-1 right-auto sm:left-auto sm:top-2 sm:right-2",children:(0,r.jsx)(h,{isRect:!0,isMobile:!0,eventData:t})})]})})},50816:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(23078),s=n(55491),a=n.n(s),l=n(59065);let i=(0,l.memo)(function(e){let{src:t,fallback:n="",className:s,...i}=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,r.jsx)(a(),{src:c,placeholder:"blur",blurDataURL:o,onError:()=>{d(o)},className:s,...i})})},53213:function(e,t,n){n.d(t,{A:function(){return h}});var r=n(23078),s=n(95416),a=n(55491),l=n.n(a),i=n(45835),o=n(58254),c=n(46266),d=n(42105),u=n(3928),x=n(5219),m=n(73823);function h(e){let{slug:t}=e,n=(0,i.useTranslations)(),a=(0,i.useMessages)(),{category:h,paginatedItems:f,hasMorePages:p,nextPage:g,totalEvents:v}=(0,d.e)({slug:t}),{observerRef:j}=(0,u.B)({onIntersect:g,shouldObserve:p}),w=(null==h?void 0:h.name)||t,y=null==a?void 0:a.Categories;return(y&&y[t]&&(w=y[t]),h&&h.id)?(0,r.jsxs)("div",{className:"flex flex-col gap-10x w-full max-w-[1136px] py-4x px-5x lg:py-10x lg:gap-14x xl:mx-auto xl:px-0 ",children:[(0,r.jsxs)("div",{className:"flex gap-5x",children:[(null==h?void 0:h.icon)&&(0,r.jsx)("div",{className:"flex items-center justify-center size-14 bg-grey-100 rounded-sm",children:(0,r.jsx)(l(),{src:h.icon,alt:w,width:32,height:32})}),(0,r.jsxs)("div",{className:"flex flex-col gap-1x",children:[(0,r.jsx)("h1",{className:"heading-sm font-brand text-grey-900",children:w}),(0,r.jsx)("p",{className:"paragraph-sm",children:"".concat(v," ").concat(n("Home.events"))})]})]}),(0,r.jsx)("div",{className:"grid grid-cols-1 gap-6x sm:grid-cols-4 sm:-mx-2 xl:grid-cols-5",children:f.map((e,t)=>(0,r.jsx)(c.n,{cssId:"card".concat(t),event:e},e.id))}),(0,r.jsx)("div",{ref:j}),(0,r.jsx)(o.default,{})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-10x w-full max-w-[1136px] py-4x px-5x lg:py-10x lg:gap-14x xl:mx-auto xl:px-0",children:[(0,r.jsx)(x.A,{title:"Event.pageNotFound",text:"Event.partyDontStop",icon:(0,r.jsx)(s.NotFoundNewIcon,{className:"mb-4x mx-auto"})}),(0,r.jsx)(m.V,{})]})}},58254:function(e,t,n){n.r(t),n.d(t,{default:function(){return m}});var r=n(23078),s=n(95416),a=n(71781),l=n(18580),i=n(3085),o=n.n(i),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 x(e){let{children:t,...n}=e,{asPath:s}=(0,c.useRouter)(),l=s===n.href;return(0,r.jsx)(o(),{className:(0,a.cn)(u(l)),...n,children:t})}function m(){let e=(0,c.useRouter)(),t=(0,d.useTranslations)(),{asPath:n}=(0,c.useRouter)(),{isAuthenticated:i}=(0,s.useAuth)(),{contentRef:o}=(0,s.useAdjustFooterMargin)(),{open:m,onOpen:h,onToggle:f}=(0,s.useDisclosure)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("nav",{ref:o,className:(0,a.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,r.jsxs)(x,{href:"/",children:[(0,r.jsx)(s.HomeIcon,{height:18}),(0,r.jsx)("span",{className:"paragraph-sm leading-none",children:t("BottomBar.home")})]}),(0,r.jsxs)(x,{href:"/eventos",children:[(0,r.jsx)(l.A,{height:18}),(0,r.jsx)("span",{className:"paragraph-sm leading-none",children:t("BottomBar.search")})]}),(0,r.jsxs)("div",{className:(0,a.cn)([...u("/meus-ingressos"===n),"curs
21or-pointer"]),"aria-hidden":!0,onClick:()=>{if(!i){h();return}e.push("/meus-ingressos")},children:[(0,r.jsx)(s.TicketIcon,{height:18}),(0,r.jsx)("span",{className:"paragraph-sm leading-none",children:t("BottomBar.tickets")})]})]}),(0,r.jsx)(s.LoginModal,{isOpen:m,onToggle:f,nextTo:"/meus-ingressos"})]})}},73823:function(e,t,n){n.d(t,{V:function(){return u}});var r=n(23078),s=n(95416),a=n(45835),l=n(59065),i=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,a.useTranslations)(),{selectedStateAbbreviation:u}=(0,s.useLocation)(),{events:x,isLoading:m,fetchNextPage:h,hasNextPage:f}=(0,o.L)({params:{order_by_state:u,within_past_year:!0,active_or_expired:!0,per_page:15}}),{observerRef:p}=(0,c.B)({onIntersect:h,shouldObserve:f});return(0,r.jsxs)("div",{className:"flex justify-center",children:[x.length>0&&(0,r.jsxs)("div",{className:"flex flex-col lg:gap-14x max-w-screen-xl px-6x",children:[(0,r.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,r.jsx)("div",{className:"grid grid-cols-1 gap-6x sm:grid-cols-4 sm:-mx-2 xl:grid-cols-5",children:x.map((e,t)=>(0,r.jsx)(i.n,{cssId:"card".concat(t),event:e},e.id))})]}),(0,r.jsx)("div",{className:"flex justify-center items-center",children:m&&(0,r.jsx)(d.p,{isLoading:m,variant:"inline"})}),(0,r.jsx)("div",{ref:p})]})})},91402:function(e,t,n){n.d(t,{p:function(){return u}});var r=n(23078),s=n(95416),a=n(27103),l=n.n(a),i=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,r.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,r.jsxs)("g",{children:[(0,r.jsxs)("circle",{cx:"12",cy:"12",r:"9.5",fill:"none",strokeWidth:"3",strokeLinecap:"round",children:[(0,r.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,r.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,r.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,[a,l]=(0,i.useState)(!1),u=(0,s.useIsZigWhitelabel)();return((0,i.useEffect)(()=>
21{l(!0)},[]),a&&t)?(0,r.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,r.jsx)(c,{src:o,autoplay:!0,loop:!0,className:"w-[120px] h-[120px]"}):(0,r.jsx)(d,{})}):null}}}]);

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.