1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{88169:function(e,n,t){"use strict";t.d(n,{Z:function(){return g}});var r=t(87462),i=t(67294),o=t(63366),l=t(86010),a=t(27192),s=t(98216),c=t(33616),u=t(11496),d=t(28979);function m(e){return(0,d.Z)("MuiSvgIcon",e)}(0,t(76087).Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var v=t(85893);let f=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],h=e=>{let{color:n,fontSize:t,classes:r}=e,i={root:["root","inherit"!==n&&`color${(0,s.Z)(n)}`,`fontSize${(0,s.Z)(t)}`]};return(0,a.Z)(i,m,r)},N=(0,u.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,n)=>{let{ownerState:t}=e;return[n.root,"inherit"!==t.color&&n[`color${(0,s.Z)(t.color)}`],n[`fontSize${(0,s.Z)(t.fontSize)}`]]}})(({theme:e,ownerState:n})=>{var t,r,i,o,l,a,s,c,u,d,m,v,f,h,N,x,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(t=e.transitions)?void 0:null==(r=t.create)?void 0:r.call(t,"fill",{duration:null==(i=e.transitions)?void 0:null==(o=i.duration)?void 0:o.shorter}),fontSize:({inherit:"inherit",small:(null==(l=e.typography)?void 0:null==(a=l.pxToRem)?void 0:a.call(l,20))||"1.25rem",medium:(null==(s=e.typography)?void 0:null==(c=s.pxToRem)?void 0:c.call(s,24))||"1.5rem",large:(null==(u=e.typography)?void 0:null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875"})[n.fontSize],color:null!=(m=null==(v=e.palette)?void 0:null==(f=v[n.color])?void 0:f.main)?m:({action:null==(h=e.palette)?void 0:null==(N=h.action)?void 0:N.active,disabled:null==(x=e.palette)?void 0:null==(g=x.action)?void 0:g.disabled,inherit:void 0})[n.color]}}),x=i.forwardRef(function(e,n){let t=(0,c.Z)({props:e,name:"MuiSvgIcon"}),{children:i,className:a,color:s="inherit",component:u="svg",fontSize:d="medium",htmlColor:m,inheritViewBox:x=!1,titleAccess:g,viewBox:p="0 0 24 24"}=t,j=(0,o.Z)(t,f),S=(0,r.Z)({},t,{color:s,component:u,fontSize:d,inheritViewBox:x,viewBox:p}),y={};x||(y.viewBox=p);let b=h(S);return(0,v.jsxs)(N,(0,r.Z)({as:u,className:(0,l.default)(b.root,a),ownerState:S,focusable:"false",color:m,"aria-hidden":!g||void 0,role:g?"img":void 0,ref:n},y,j,{children:[i,g?(0,v.jsx)("title",{children:g}):null]}))});function g(e,n){let t=(t,i)=>(0,v.jsx)(x,(0,r.Z)({"data-testid":`${n}Icon`,ref:i},t,{children:e}));return t.muiName=x.muiName,i.memo(i.forwardRef(t))}x.muiName="SvgIcon"},48312:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(89237)}])},89237:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return x},default:function(){return g}});var r=t(85893);t(67294);var i=(0,t(88169).Z)((0,r.jsx)("path",{d:"M7 11h2v2H7v-2zm14-5v14c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2l.01-14c0-1.1.88-2 1.99-2h1V2h2v2h8V2h2v2h1c1.1 0 2 .9 2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"}),"DateRangeOutlined"),o=t(801),l=t(45332),a=t(11163),s=t(46870),c=t(83321),u=t(3151);let d=(e,n)=>{var t,i,o,l;if("related"===n){let n=null===(i=e.parentEvent)||void 0===i?void 0:i.title;if(n)return(0,r.jsxs)(r.Fragment,{children:[e.title," ",(0,r.jsxs)("b",{children:["\xb7 ",n]})]});let t=null===(o=e.title)||void 0===o?void 0:o.match(/^(.*?):\s*(.*?)\s*[-ââ]\s*(\d{4})$/);if(t)return(0,r.jsxs)(r.Fragment,{children:[t[2]," ",(0,r.jsxs)("b",{children:["\xb7 ",t[1]]})]});let a=null===(l=e.title)||void 0===l?void 0:l.match(/^(.*?)\s*[-ââ]\s*(\d{4})$/);return a?(0,r.jsxs)(r.Fragment,{children:[a[1]," ",(0,r.jsxs)("b",{children:["\xb7 ",a[2]]})]}):(0,r.jsx)(r.Fragment,{children:e.title})}let a=null===(t=e.title)||void 0===t?void 0:t.match(/^(.*?)\s*[-ââ]\s*(\d{4})$/);return a?(0,r.jsxs)(r.Fragment,{children:["CASACOR ",(0,r.jsx)("b",{children:a[1]})," \xb7 ",a[2]]}):(0,r.jsxs)(r.Fragment,{children:["CASACOR ",(0,r.jsx)("b",{children:e.title})]})},m=e=>{let{events:n,variant:t="default"}=e,m=(0,a.useRouter)();return(0,r.jsx)("div",{className:"next-events",children:null==n?void 0:n.map(e=>(0,r.jsx)("div",{className:"event-container",children:(0,r.jsxs)("div",{className:"event",onClick:()=>
1m.push("events/".concat(e.slug)),children:[(0,r.jsxs)("div",{className:"event-infos",children:[(0,r.jsx)("h3",{className:"name",children:d(e,t)}),(0,r.jsxs)("div",{className:"info",children:[(0,r.jsx)(i,{className:"icon-calendar"}),(0,r.jsxs)("div",{children:[(0,u.Z)(new Date(e.startAt),new Date(e.endAt))?"".concat((0,s.p6)(e.endAt,"dd 'de' MMMM 'de' yyyy",m.locale)):"".concat((0,s.p6)(e.startAt,"dd 'de' MMMM",m.locale)," ").concat((0,s.p6)(e.endAt,"' a' dd 'de' MMMM 'de' yyyy",m.locale))," | "+(0,l.Cy)(e.address)]})]})]}),(0,r.jsx)("div",{className:"event-btn",onClick:e=>e.stopPropagation(),children:(0,r.jsxs)(c.Z,{className:"see-tickets btn-primary",variant:"contained",onClick:()=>m.push("events/".concat(e.slug)),children:[(0,r.jsx)(o.jH,{className:"icon-text"}),(0,r.jsxs)("h5",{children:[e.isLecture?"Reservar ingresso":"Comprar ingressos",e.sellGivexGiftCard?" / Cart\xe3o presente":""]})]})})]})},e.id))})};var v=t(96248),f=t(95444);let h=e=>{let{events:n=[],sponsors:t=[]}=(null==e?void 0:e.eventsData)||{},i=n.filter(e=>"default"===e.type)||[],o=n.filter(e=>"related"===e.type)||[];return(0,r.jsxs)("div",{className:"events",children:[(0,r.jsx)(v.Z,{infoEvents:i}),(0,r.jsxs)("div",{className:"content",children:[(0,r.jsxs)("section",{className:"events-section",children:[(0,r.jsxs)("div",{className:"sec-head",children:[(0,r.jsx)("h2",{className:"title",children:"MOSTRAS CASACOR"}),(0,r.jsx)("span",{className:"rule","aria-hidden":"true"})]}),(0,r.jsx)(m,{events:i,variant:"default"})]}),o.length>0&&(0,r.jsxs)("section",{className:"events-section events-block",children:[(0,r.jsxs)("div",{className:"sec-head",children:[(0,r.jsx)("h2",{className:"title",children:"EVENTOS"}),(0,r.jsx)("span",{className:"rule","aria-hidden":"true"})]}),(0,r.jsx)(m,{events:o,variant:"related"})]})]}),(0,r.jsx)(f.Z,{sponsors:t})]})},N=e=>(0,r.jsx)(h,{...e});var x=!0,g=N},95444:function(e,n,t){"use strict";var r=t(85893),i=t(45332);t(67294);let o=e=>{let n=e.sponsors;return(0,r.jsx)("div",{className:"sponsors-events",children:null==n?void 0:n.map(e=>(0,r.jsxs)("div",{className:"sponsor",children:[(0,r.jsx)("h3",{className:"title",children:e.title}),(0,r.jsx)("a",{className:"logo-sponsor-master",href:function(e){let n=(e||"").trim();if(n)return/^[a-z][a-z0-9+.-]*:\/\//i.test(n)?n:"https://".concat(n.replace(/^\/+/,""))}(e.link),style:{backgroundImage:"url(".concat((0,i.e6)(e.image),")"),backgroundSize:e.backgroundSize?"".concat(e.backgroundSize,"%"):"contain"}})]},e.id))})};n.Z=o},46870:function(e,n,t){"use strict";t.d(n,{Au:function(){return g},GT:function(){return b},MQ:function(){return N},O:function(){return m},Rg:function(){return j},U6:function(){return w},Y5:function(){return d},YR:function(){return c},j9:function(){return D},mX:function(){return v},mr:function(){return p},nv:function(){return f},oJ:function(){return S},p6:function(){return u},qb:function(){return M},tE:function(){return x},uP:function(){return h},y5:function(){return y}});var r=t(61436),i=t(32912),o=t(29081),l=t(95826),a=t(99490);let s={pt:o.Z,en:l.Z},c="America/Sao_Paulo";function u(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"PPPP",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"pt";if(!e)return;if(!(0,r.Z)(new Date(e)))return"".concat(e);let o=(0,i.Z)(new Date(e),n,{locale:s[t]});return o}function d(){return new Date().getTimezoneOffset()}function m(e){let n=new Date(e);if(Number.isNaN(n.getTime()))return{year:NaN,month:NaN,day:NaN};if(0===n.getHours()&&0===n.getMinutes()&&0===n.getSeconds()&&0===n.getMilliseconds())return{year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate()};let t=a.ou.fromJSDate(n,{zone:c});return t.isValid?{year:t.year,month:t.month,day:t.day}:{year:NaN,month:NaN,day:NaN}}function v(e){let{year:n,month:t,day:r}=m(e);return Number.isNaN(n)?"":"".concat(n,"-").concat(String(t).padStart(2,"0"),"-").concat(String(r).padStart(2,"0"))}function f(e,n){let t=v(e),r=v(n);return Boolean(t&&r&&t===r)}function h(e){let{year:n,month:t,day:r}=m(e);return Number.isNaN(n)?"NaN":new Date(Date.UTC(n,t-1,r,12)).getUTCDay().toString()}function N(e,n){let t=v(e),r=v(n);return!!t&&!!r&&t>r}function x(e){let{year:n,month:t,day:r}=m(e);return Number.isNaN(n)?new Date(NaN):new Date(n,t-1,r)}
1function g(){return a.ou.now().toJSDate()}function p(e,n){let{year:t,month:r,day:i}=m(e);if(Number.isNaN(t))return new Date(NaN);let[o="0",l="0"]=n.split(":");return a.ou.fromObject({year:t,month:r,day:i,hour:Number(o)||0,minute:Number(l)||0,second:0,millisecond:0},{zone:c}).toJSDate()}function j(e,n){let[t="00:00",r="23:00"]=(n||"").split("-");return{start:p(e,t),end:p(e,r)}}function S(e){let n=a.ou.fromJSDate(new Date(e));return!n.isValid||n.toMillis()<a.ou.now().toMillis()}function y(e,n){return new Date(e).getTime()>new Date(n).getTime()}function b(e,n){return new Date(e).getTime()<new Date(n).getTime()}function w(e,n){return(null==n?void 0:n.onlyToday)?x(g()):x(e)}function D(e,n){return(null==n?void 0:n.onlyToday)?x(g()):x(e)}function M(e){return(0,r.Z)(new Date(e))}}},function(e){e.O(0,[9809,9774,2888,179],function(){return e(e.s=48312)}),_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.