PageSourceSearch

https://uniticket.com.br/_next/static/chunks/pages/organizacoes/[slug]-f7e7d640ed2ccaa3.js

js uniticket.com.br collected 2026-09-26 06:00:01 UTC 13,718 bytes, 1 lines download raw bytes

1(self.webpackChunkhost=self.webpackChunkhost||[]).push([[2541,3919],{3928:function(e,t,n){"use strict";n.d(t,{B:function(){return r}});var a=n(59065);function r(e){let{onIntersect:t,options:n,shouldObserve:r}=e,s=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(!s.current||!r)return;let e=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&t()})},n);return e.observe(s.current),()=>{e.disconnect()}},[t,n,r]),{observerRef:s}}},12122:function(e,t,n){"use strict";n.d(t,{L:function(){return l}});var a=n(40813),r=n(95416),s=n(59065);function l(e){var t;let{params:n,retry:l=!0}=e,{selectedState:i}=(0,r.useLocation)(),{data:o,isLoading:c,isFetching:d,fetchNextPage:x,hasNextPage:u}=(0,a.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,a=Math.ceil(n.total/n.per_page);return t.length>=a?null:n.current_page+1}}),m=null==o?void 0:o.pages.flatMap(e=>e.data),p=(0,s.useMemo)(()=>(0,r.filterEventsByState)(null!=m?m:[],i),[m,i]);return{events:null!=m?m:[],orderedEvents:p,totalEvents:null!==(t=null==o?void 0:o.pages[0].meta.total)&&void 0!==t?t:0,isLoading:c||d,fetchNextPage:x,hasNextPage:u}}},13372:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var a=n(23078),r=n(95416),s=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},x=(e,t)=>c.dateTime(e,t).replace(/ de |\.|\.&thinsp;–&thinsp;/g," ").trim(),u=d(t),m=d(n);if(!u||!m)return null;let p=u.toDateString()===m.toDateString(),f=m.getTime()-u.getTime()<864e5,g=x(u,{day:"2-digit",month:"short"}),h=x(u,{day:"2-digit",month:"short",year:"numeric"}),v=x(m,{day:"2-digit",month:"short",year:"numeric"});return(0,a.jsx)("time",{className:(0,s.cn)(["uppercase","flex","flex-row","whitespace-nowrap"]),style:{color:i||"#FFFFFF"},children:o||p||f?h:(0,a.jsxs)(a.Fragment,{children:[g,(0,a.jsx)("div",{className:"flex content-center items-center justify-center px-1",children:(0,a.jsx)(r.GreaterThan,{width:5,height:10,color:i||"#FFFFFF"})}),v]})})}},22493:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return g},default:function(){return h}});var a=n(23078),r=n(95416),s=n(39829),l=n.n(s),i=n(56171),o=n(45835),c=n(71781),d=n(46266),x=n(73823);function u(){let e=(0,o.useTranslations)("Organization.NotFound");return(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"relative w-full h-[300px] bg-gray-200"}),(0,a.jsxs)("div",{className:"w-full flex flex-col max-w-[1136px] py-4x px-5x lg:py-10x gap-20 xl:mx-auto xl:px-0",children:[(0,a.jsx)("div",{className:"w-full flex justify-center",children:(0,a.jsx)("div",{className:"object-fill rounded-full h-[120px] w-[120px] absolute top-[300px] bg-gray-200 border border-[#D3D2D9]"})}),(0,a.jsxs)("div",{className:"flex flex-col gap-5 p-6 justify-center items-center",children:[(0,a.jsx)(r.DisconnectIcon,{}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("h4",{className:"text-md text-center font-semibold leading-[28.8px] font-brand",children:e("title")}),(0,a.jsx)("p",{className:"text-xs text-center font-normal leading-6",children:e("description")})]})]}),(0,a.jsx)(x.V,{title:e("otherExperiences"),titleClassName:"text-md font-semibold leading-[28.8px] mb-6 font-brand"})]})]})}function m(e){let{events:t,isLoading:n,producer:s,observerRef:l,gAnalyticsCode:i=null}=e,x=(0,o.useTranslations)("Organization");return(0,a.jsxs)("div",{children:[i&&(0,a.jsx)(r.GoogleAnalytics,{id:"ga-init-org-".concat(i),gaId:i}),(0,a.jsx)("div",{className:"flex justify-center items-center",children:n&&(0,a.jsx)(r.Spinner,{})}),0!==t.length||n?(0,a.jsxs)("div",{className:"flex flex-col gap-20",children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(null==s?void 0:s.banner)?(0,a.jsx)("div",{className:"w-full h-[300px] bg-cover bg-no-repeat",style:{backgroundImage:'url("'.concat(s.banner,'")'),backgroundPosition:"50%"}}):(0,a.jsx)("div",{className:"relative w-full h-[300px] bg-gray-200"}),(null==s?void 0:s.logo)?(0,a.jsx)("div",{className:"relative left-[calc(50%-55px)] mt-[-60px] h-[120px] w-[120px] border border-[#D3D2D9] rounded-full bg-cover bg-no-repeat",style:{backgroundImage:'url("'.concat(s.logo,'")'),backgroundPosition:"50%"}}):(0,a.jsx)("div",{className:"relative left-[calc(50%-55px)] mt-[-60px] h-[120px] w-[120px] border border-[#D3D2D9] rounded-full bg-cover bg-no-repeat bg-gray-200",style:{backgroundPosition:"50%"}}),(0,a.jsx)("h2",{className:"text-center font-semibold text-md leading-[28.8px] text-[#171719] font-brand mt-4",children:s.name})]}),(0,a.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:[t.length>0&&(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("h2",{className:"font-semibold text-md leading-[28.8px] text-[#171719] font-brand",children:x("upcomingEvents")}),(0,a.jsx)(c.Divider,{})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 gap-y-8 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 lg:gap-x-6 lg:gap-y-8",children:t.map((e,t)=>(0,a.jsx)(d.n,{cssId:"card".concat(t),event:e},e.id))})]}),(0,a.jsx)("div",{ref:l})]})]}):(0,a.jsx)(u,{})]})}var p=n(12122),f=n(3928),g=!0;function h(e){var t;let{host:n}=e,{slug:s}=(0,i.useRouter)().query,c=(0,o.useTranslations)("seo"),{events:d,isLoading:x,fetchNextPage:u,hasNextPage:g}=(0,p.L)({params:{by_organization_slug:s,per_page:25},retry:!1}),{observerRef:h}=(0,f.B)({onIntersect:u,shouldObserve:g}),v=(null===(t=d[0])||void 0===t?void 0:t.organization)||{},j=d.length>0,y=Array.from(new Set(d.filter(e=>"ativo"===e.event_status).map(e=>e.g_analytics_code))),b=1===y.length&&y[0]?y[0]:null,w=(0,r.shouldNoIndexByEnvironment)(),{siteName:N}=(0,r.useWhitelabel)(),_=j?c("organizationTitle",{organization_name:v.name,siteName:N}):"",k=j?c("organizationDescription",{organization_name:v.name,siteName:N}):"";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l(),{children:[j&&!x&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:_}),(0,a.jsx)("meta",{name:"description",content:k}),(0,a.jsx)("meta",{property:"og:title",content:_}),(0,a.jsx)("meta",{property:"og:description",content:k}),(0,a.jsx)("meta",{property:"og:url",content:"".concat(n,"/organizacoes/").concat(s)}),(0,a.jsx)("meta",{property:"og:image",content:v.logo||""}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{name:"twitter:title",content:_}),(0,a.jsx)("meta",{name:"twitter:description",content:k}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:image",content:v.logo||""}),(0,a.jsx)("link",{rel:"canonical",href:"".concat(n,"/organizacoes/").concat(s)}),(0,a.jsx)("link",{rel:"alternate",hrefLang:"en-US",href:"".concat(n,"/en-US/organizacoes/").concat(s)}),(0,a.jsx)("link",{rel:"alternate",hrefLang:"es-ES",href:"".concat(n,"/es-ES/organizacoes/").concat(s)}),(0,a.jsx)("link",{rel:"alternate",hrefLang:"pt-BR",href:"".concat(n,"/pt-BR/organizacoes/").concat(s)}),(0,a.jsx)("link",{rel:"alternate",hrefLang:"x-default",href:"".concat(n,"/organizacoes/").concat(s)}),(0,a.jsx)("meta",{property:"fb:app_id",content:"1545281089655185"}),(0,a.jsx)("meta",{name:"apple-itunes-app",content:"app-id=1154643255"}),(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify((0,r.OrganizationStructuredData)(v,d,s))}})]}),w&&(0,a.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,a.jsx)(m,{events:d,isLoading:x,observerRef:h,producer:v,gAnalyticsCode:b})]})}},46266:function(e,t,n){"use strict";n.d(t,{n:function(){return f}});var a=n(23078),r=n(95416),s=n(71781),l=n(27103),i=n.n(l),o=n(3085),c=n.n(o),d=n(45835),x=n(59065),u=n(13372),m=n(50816);let p=i()(()=>Promise.all([n.e(1918),n.e(6834)]).then(n.bind(n,34453)),{loadableGenerated:{webpack:()=>[34453]}
1,ssr:!1}),f=(0,x.memo)(function(e){let{event:t,cssId:n}=e,l=(0,d.useTranslations)("Producers"),{name:i,banner:o,thumb:f,slug:g,start_date:h,end_date:v,hide_event_end_date:j,event_location:y,is_closed:b,vertical_banner:w,is_online:N}=t,_=(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,x.useCallback)(()=>{(0,r.sendGTagEvent)("select_content",{content_type:"event_card",content_id:t.id,event_name:t.name})},[t.id,t.name]);return(0,a.jsxs)("div",{id:n,className:(0,s.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":b}]),children:[(0,a.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,a.jsx)("div",{className:(0,s.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,a.jsx)(m.Z,{src:w||o,fallback:f,alt:i,width:208,he
1ight:208,className:"w-full object-cover zoom-img shrink-0 aspect-auto"})}),(0,a.jsxs)("div",{className:"label-sm flex flex-col gap-2x text-left justify-center",children:[(0,a.jsx)("strong",{className:"heading-xs-heavy font-brand font-semibold text-grey-900 leading-none line-clamp-2 h-9",children:i}),(0,a.jsx)(u.L,{startDate:h,endDate:v,hideEndDate:j,color:"var(--color-primary-pure)"}),(0,a.jsx)("p",{className:"paragraph-sm text-grey-700 line-clamp-1 h-5x",children:N?l("onlineEvent"):_})]})]}),(0,a.jsx)("div",{className:"absolute left-1 top-1 right-auto sm:left-auto sm:top-2 sm:right-2",children:(0,a.jsx)(p,{isRect:!0,isMobile:!0,eventData:t})})]})})},50816:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(23078),r=n(55491),s=n.n(r),l=n(59065);let i=(0,l.memo)(function(e){let{src:t,fallback:n="",className:r,...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,a.jsx)(s(),{src:c,placeholder:"blur",blurDataURL:o,onError:()=>{d(o)},className:r,...i})})},60447:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/organizacoes/[slug]",function(){return n(22493)}])},73823:function(e,t,n){"use strict";n.d(t,{V:function(){return x}});var a=n(23078),r=n(95416),s=n(45835),l=n(59065),i=n(46266),o=n(12122),c=n(3928),d=n(91402);let x=(0,l.memo)(function(e){let{title:t="",titleClassName:n=""}=e,l=(0,s.useTranslations)(),{selectedStateAbbreviation:x}=(0,r.useLocation)(),{events:u,isLoading:m,fetchNextPage:p,hasNextPage:f}=(0,o.L)({params:{order_by_state:x,within_past_year:!0,active_or_expired:!0,per_page:15}}),{observerRef:g}=(0,c.B)({onIntersect:p,shouldObserve:f});return(0,a.jsxs)("div",{className:"flex justify-center",children:[u.length>0&&(0,a.jsxs)("div",{className:"flex flex-col lg:gap-14x max-w-screen-xl px-6x",children:[(0,a.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,a.jsx)("div",{className:"grid grid-cols-1 gap-6x sm:grid-cols-4 sm:-mx-2 xl:grid-cols-5",children:u.map((e,t)=>(0,a.jsx)(i.n,{cssId:"card".concat(t),event:e},e.id))})]}),(0,a.jsx)("div",{className:"flex justify-center items-center",children:m&&(0,a.jsx)(d.p,{isLoading:m,variant:"inline"})}),(0,a.jsx)("div",{ref:g})]})})},91402:function(e,t,n){"use strict";n.d(t,{p:function(){return x}});var a=n(23078),r=n(95416),s=n(27103),l=n.n(s),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,a.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,a.jsxs)("g",{children:[(0,a.jsxs)("circle",{cx:"12",cy:"12",r:"9.5",fill:"none",strokeWidth:"3",strokeLinecap:"round",children:[(0,a.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,a.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,a.jsx)("animateTransform",{attributeName:"transform",type:"rotate",dur:"2s",values:"0 12 12;360 12 12",repeatCount:"indefinite"})]})})}function x(e){let{isLoading:t,variant:n="full-screen"}=e,[s,l]=(0,i.useState)(!1),x=(0,r.useIsZigWhitelabel)();return((0,i.useEffect)(()=>
1{l(!0)},[]),s&&t)?(0,a.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:x?(0,a.jsx)(c,{src:o,autoplay:!0,loop:!0,className:"w-[120px] h-[120px]"}):(0,a.jsx)(d,{})}):null}}},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("3919",e),e},[])).then(function(){return e.X(0,[636,8792,1781,7103,9829,5470,5491,3085],function(){return e(e.s=60447)})})}]);

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.