1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7192],{73471:function(e,r,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/[id]",function(){return i(40275)}])},40275:function(e,r,i){"use strict";i.r(r),i.d(r,{__N_SSP:function(){return ek},default:function(){return eS}});var t=i(85893),a=i(81794),s=i(9008),l=i.n(s);let n=e=>(0,t.jsxs)(l(),{children:[(0,t.jsxs)("title",{children:[e.title," "]}),(0,t.jsx)("meta",{name:"viewport",content:"initial-scale=1.0, width=device-width"}),(0,t.jsx)("meta",{property:"og:title",content:"My page title"},"title"),e.children]});var c=i(67294),o=i(87357),d=i(86886),h=i(60802),x=i(94020),j=i(63546),_=i(25084),m=i(64871),p=i(60845),g=i(11163);i(72132),i(64213);var u=JSON.parse('{"qv":"https://www.facebook.com/casacoroficial/","km":"https://twitter.com/casacor","CR":"https://www.instagram.com/casacor_oficial/","ZB":"https://www.youtube.com/casacoroficial","Ws":"https://www.pinterest.com/casacor/"}'),f=i(89755),v=i.n(f),b=i(19470),N=i.n(b),w=i(35773),P=i.n(w);let y=e=>{let{width:r,height:i}=e;return(0,t.jsx)(N(),{children:(0,t.jsx)("div",{className:P().logo,children:(0,t.jsx)(v(),{src:"/img/logo-casacor.svg",width:r,height:i,layout:"responsive",objectFit:"contain",priority:!0,alt:"CASACOR Logo"})})})};var k=i(2073),S=i.n(k);let Z=()=>{let{t:e,i18n:r}=(0,p.$G)("profile");return(0,g.useRouter)(),(0,t.jsx)("div",{className:S().topbar,children:(0,t.jsx)(o.Z,{sx:{flexGrow:1},children:(0,t.jsxs)(d.ZP,{container:!0,spacing:1,children:[(0,t.jsx)(d.ZP,{item:!0,md:4,xs:1}),(0,t.jsx)(d.ZP,{item:!0,md:4,xs:1,children:(0,t.jsx)(y,{width:100,height:5})}),(0,t.jsx)(d.ZP,{item:!0,md:4,className:S()["grid-social"],children:(0,t.jsxs)("div",{className:S().socials,children:[(0,t.jsx)("a",{href:u.qv,target:"_blank",rel:"noreferrer",children:(0,t.jsx)("div",{className:S().social,children:(0,t.jsx)(h.Z,{})})}),(0,t.jsx)("a",{href:u.km,target:"_blank",rel:"noreferrer",children:(0,t.jsx)("div",{className:S().social,children:(0,t.jsx)(_.Z,{})})}),(0,t.jsx)("a",{href:u.CR,target:"_blank",rel:"noreferrer",children:(0,t.jsx)("div",{className:S().social,children:(0,t.jsx)(x.Z,{})})}),(0,t.jsx)("a",{href:u.ZB,target:"_blank",rel:"noreferrer",children:(0,t.jsx)("div",{className:S().social,children:(0,t.jsx)(m.Z,{})})}),(0,t.jsx)("a",{href:u.Ws,target:"_blank",rel:"noreferrer",children:(0,t.jsx)("div",{className:S().social,children:(0,t.jsx)(j.Z,{})})})]})})]})})})};var T=i(55125),I=i.n(T);let C={state:{hide:!1,searchDisplay:!1,inputValue:""}},A=(0,c.createContext)({}),F=e=>{let[r,i]=(0,c.useState)(C);return(0,t.jsx)(A.Provider,{value:{...r,setContextState:i},children:e.children})},G=()=>{let{state:e}=(0,c.useContext)(A);return(0,t.jsx)("header",{className:I().header,children:(0,t.jsx)("div",{className:I().headerNavBar,children:(0,t.jsx)(o.Z,{sx:{flexGrow:1,backgroundColor:"#fafafa"},children:(0,t.jsx)(d.ZP,{container:!0,spacing:2,children:(0,t.jsx)(d.ZP,{item:!0,md:12,xs:12,sx:{display:"flex"},children:(0,t.jsx)(Z,{})})})})})})};var M=i(15861),R=i(58467),B=i(62048),E=i.n(B),H=i(84546),L=i.n(H),D=i(96027),O=i.n(D);let $=e=>{let{width:r,height:i}=e;return(0,t.jsx)(N(),{children:(0,t.jsx)("div",{className:O().incon,children:(0,t.jsx)(v(),{src:"/img/Iconoir.svg",width:r,height:i,objectFit:"contain",priority:!0,alt:"icon"})})})},q=e=>{let{profileCurrent:r}=e;return(0,t.jsx)(o.Z,{sx:{flexGrow:1},children:(0,t.jsx)(d.ZP,{container:!0,spacing:2,children:(0,t.jsxs)(d.ZP,{item:!0,md:12,xs:12,children:[(0,t.jsxs)(L(),{children:[r.data.backgroundThumbnail?(0,t.jsx)("div",{className:E().bgProfile,style:{backgroundImage:"url(".concat(R.F4+r.data.backgroundThumbnail,")")}}):(0,t.jsx)("div",{className:E().bgProfile,style:{backgroundImage:"url(/img/placeholder.png)"}}),r.data.avatar?(0,t.jsx)("div",{className:E().peopleProfilePhoto,style:{backgroundImage:"url(".concat(R.F4+r.data.avatar,")")}}):(0,t.jsx)("div",{className:E().peopleProfilePhoto,style:{backgroundImage:"url(/img/placeholder.png)"}})]}),(0,t.jsx)("div",{className:E().profileDescription,children:(0,t.jsxs)(d.ZP,{item:!0,xs:10,children:[(0,t.jsx)(L(),{children:r.data.name?(0,t.jsxs)("div",{className:E()["content-name"],children:[(0,t.jsx)("h2",{children:r.data.name}),(0,t.jsx)($,{width:60,height:45})]}):(0,t.jsxs)("div",{className:E()["content-name"],children:[(0,t.jsx)("h2",{}),(0,t.jsx)($,{width:60,height:45})]})}),(0,t.jsx)("br",{}),(0,t.jsx)(L(),{children:r.data.description?(0,t.jsx)(M.Z,{variant:"h6",component:"h4",children:r.data.description}):(0,t.jsx)(M.Z,{variant:"h6",component:"h4"})}),(0,t.jsx)("br",{}),(0,t.jsx)("br",{}),(0,t.jsx)("hr",{style:{color:"#b4b4b4",backgroundColor:"#b4b4b4",height:4,width:"100%",margin:"auto"}})]})})]})})})};var U=i(29127),V=i.n(U),K=i(86961),X=i.n(K);let z=e=>{let{bioText:r}=e;return(0,t.jsx)("div",{className:X().bio,children:(0,t.jsx)(L(),{children:(0,t.jsx)("div",{className:X().bioText,dangerouslySetInnerHTML:{__html:r}}
1)})})};var Q=i(93322),W=i.n(Q);let Y=e=>{let{profileContact:r,email:i}=e,{t:a}=(0,p.$G)("profile");return(0,t.jsxs)("div",{className:W().learnMore,children:[(0,t.jsx)("br",{}),(0,t.jsx)(L(),{children:(0,t.jsx)("div",{className:W().learMoreSocials,children:r&&(0,t.jsx)(t.Fragment,{children:Object.keys(r).map((e,i)=>(0,t.jsxs)(t.Fragment,{children:["website"===e&&(0,t.jsxs)("a",{href:r[e],children:[(0,t.jsx)(v(),{src:"/img/languageIcon.svg",width:30,height:25,alt:"icon",className:W().icon}),r[e]]},i),"instagram"===e&&(0,t.jsxs)("a",{href:r[e],children:[(0,t.jsx)(v(),{src:"/img/instagranIcon.svg",width:30,height:25,alt:"icon",className:W().icon}),r[e]]},i),"celphone"===e&&(0,t.jsxs)("a",{href:r[e],children:[(0,t.jsx)(v(),{src:"/img/telphoneIcon.svg",width:30,height:25,alt:"icon",className:W().icon}),r[e]]},i),"email"===e&&(0,t.jsxs)("a",{href:r[e],children:[(0,t.jsx)(v(),{src:"/img/emailIcon.svg",width:30,height:25,alt:"icon",className:W().icon}),r[e]]},i)]}))})})})]})},J=e=>{var r,i,a,s;let{profileCurrent:l}=e,n=e=>{let{src:r}=e;return"".concat(R.F4).concat(l.data.biography.image)};return(0,t.jsx)("div",{className:V().info,children:(0,t.jsxs)(d.ZP,{container:!0,spacing:8,children:[(0,t.jsx)(d.ZP,{item:!0,xs:5,className:V()["first-content-grid"],children:(null==l?void 0:null===(r=l.data)||void 0===r?void 0:null===(i=r.biography)||void 0===i?void 0:i.image)?(0,t.jsx)(v(),{src:R.F4+l.data.biography.image,width:600,height:750,unoptimized:!0,loader:n,alt:"Leo Romano"}):(0,t.jsx)("div",{className:V().bgProfile,style:{backgroundImage:"url(/img/placeholder.png)",width:600,height:750}})}),(0,t.jsxs)(d.ZP,{item:!0,xs:7,children:[(0,t.jsx)("h1",{children:"BIO"}),(null==l?void 0:null===(a=l.data)||void 0===a?void 0:null===(s=a.biography)||void 0===s?void 0:s.text)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(z,{bioText:l.data.biography.text}),(0,t.jsx)(Y,{profileContact:l.data.contacts})]}):(0,t.jsx)(z,{bioText:""})]})]})})};var ee=i(57314),er=i.n(ee);i(11835);var ei=i(44040);i(21082),i(7053),i(36797),i(21669);var et=i(98352),ea=i(58231),es=i.n(ea),el=i(83321);let en=e=>{let{images:r}=e,[i,a]=(0,c.useState)(-1),{t:s}=(0,p.$G)("profile");return(0,t.jsxs)("div",{className:es().slider,children:[(0,t.jsx)(et.tq,{effect:"coverflow",centeredSlides:!0,slidesPerView:"auto",navigation:!0,loop:!0,autoplay:{delay:6e3,disableOnInteraction:!1},style:{"--swiper-navigation-color":"#fff","--swiper-pagination-color":"#fff"},coverflowEffect:{rotate:0,stretch:100,depth:100,modifier:1,slideShadows:!0},pagination:{el:".swiper-pagination"},modules:[ei.pt,ei.lI,ei.W_],className:es().mySwiper,children:null==r?void 0:r.map((e,r)=>(0,t.jsx)(et.o5,{className:es().swiperSlide,children:(0,t.jsx)("div",{className:es().bg,style:{backgroundImage:"url(".concat(R.F4).concat(e.image,")")},children:(0,t.jsxs)("div",{className:es()["container-button-hover"],children:[(0,t.jsx)("p",{className:es()["description-image"],children:e.title}),(0,t.jsx)(el.Z,{className:es()["btn-see-more"],component:"a",href:e.link,target:"_blank",children:(0,t.jsx)("p",{children:"Ver mais"})})]})})},r))}),i>-1&&(0,t.jsx)(er(),{image:r[i],title:s("slider.details"),onClose:()=>a(-1)})]})};var ec=i(61944),eo=i.n(ec);let ed=e=>{let{profileImages:r}=e,{t:i}=(0,p.$G)("profile");return(0,t.jsx)("div",{className:eo().participations,children:r.data.participations.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:eo().title,children:(0,t.jsx)(L(),{children:(0,t.jsx)("h2",{children:i("participation.title")})})}),(0,t.jsx)("br",{}),(0,t.jsx)(L(),{children:(0,t.jsx)(en,{images:r.data.participations})}),(0,t.jsx)("br",{})]})})};var eh=i(87563),ex=i.n(eh);let ej=e=>{let{content:r}=e,{t:i}=(0,p.$G)("profile");return(0,t.jsx)("div",{className:ex().article,children:(0,t.jsx)(o.Z,{sx:{flexGrow:1},children:(0,t.jsxs)(d.ZP,{container:!0,spacing:3,children:[(0,t.jsx)(d.ZP,{item:!0,xl:3,children:(0,t.jsx)("a",{href:r.link,target:"_blank",rel:"noreferrer",children:(0,t.jsx)("img",{src:r.featured_media_url,alt:r.title.rendered,width:"320px",height:"80px"})})}),(0,t.jsxs)(d.ZP,{item:!0,xl:3,children:[(0,t.jsx)("div",{className:ex().category,children:r.categories_data.map((e,i)=>(0,t.jsx)("a",{href:r.link,target:"_blank",rel:"noreferrer",children:e.name},i))}),(0,t.jsx)("div",{className:ex().Atitle,children:(0,t.jsx)("h3",{children:(0,t.jsx)("a",{href:r.link,target:"_blank",rel:"noreferrer",children:r.title.rendered})})}),(0,t.jsx)("div",{className:ex().date,children:(0,t.jsx)("a",{href:r.link,target:"_blank",rel:"noreferrer",children:(0,t.jsxs)("span",{children:[i("article.by")," ",(0,t.jsx)("strong",{children:"CASACOR"})," | ",new Intl.DateTimeFormat(i("article.dateFormat"),{day:"numeric",month:"short",year:"numeric"}).format(new Date(r.date)).replace("de","").replace("de","").replace("."," ")," "]})})})]}),(0,t.jsx)(d.ZP,{item:!0,xl:2}),(0,t.jsx)(d.ZP,{item:!0,xl:4,children:(0,t.jsx)("div",{className:ex().excerpt,dangerouslySetInnerHTML:{__html:r.excerpt.rendered}})})]})})})};var e_=i(31419),em=i.n(e_),ep=i(9669),eg=i.n(ep),eu=i(88767);let ef=e=>{let r=(0,eu.useQueryClient)(),i=encodeURI(e),[t,a]=(0,c.useState)([]),[s,l]=(0,c.useState)(3),[n,o]=(0,c.useState)([]),[d,h]=(0,c.useState)(!0),{data:x,isFetching:j}=(0,eu.useQuery)("articlesProfile",async()=>{let e=await eg().get("https://casacor.abril.com.br/wp-json/wp/v2/posts?search=".concat(i));return e.data},{staleTime:6e4}),_=r.getQueriesData("articlesProfile"),m=void 0!==_&&void 0!==_[1]?_[1]:x,p=(0,c.useCallback)(()=>{void 0!==m&&(a(m),o(t.slice(0,s)))},[]),g=()=>{s<=t.length?(o(t.slice(0,s)),s===t.length&&h(!d)):(h(!d),o(t))},u=()=>{l(e=>e+3)},f=()=>{void 0!==x&&x.length>0&&(a(x),o(x.slice(0,s)))};return{posts:n,page:s,handleLoadPosts:p,handleUpdatePosts:g,handleSumPage:u,handleLoadPostQuery:f,isFetching:j,disable:d}},ev=e=>{let{name:r}=e,{t:i}=(0,p.$G)("profile"),{posts:a,page:s,handleLoadPosts:l,handleUpdatePosts:n,handleSumPage:o,handleLoadPostQuery:d,isFetching:h,disable:x}=ef(r);return(0,c.useEffect)(()=>
1{l()},[]),(0,c.useEffect)(()=>{d()},[h]),(0,c.useEffect)(()=>{n()},[s]),(0,t.jsxs)(t.Fragment,{children:[h&&(0,t.jsx)("div",{className:em().loading,children:"Carregando..."}),(null==a?void 0:a.length)>0?(0,t.jsxs)("div",{className:em().articles,children:[(0,t.jsx)("div",{className:em().articlesTitle,children:(0,t.jsxs)("h2",{children:[i("articles.title")," ",r]})}),null==a?void 0:a.map((e,r)=>(0,t.jsx)(ej,{content:e},r)),(0,t.jsx)("div",{className:em().loadMore,children:(0,t.jsx)("button",{hidden:x,onClick:o,children:i("articles.loadMore")})})]}):null]})};var eb=i(27609),eN=i.n(eb);let ew=e=>{let{t:r}=(0,p.$G)("profile"),{profileCopyrights:i}=e;return i.data.copyright.length>0?(0,t.jsx)("div",{className:eN()["container-other-projects"],children:i.data.copyright.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:eN().title,children:(0,t.jsx)("h2",{children:r("others.title")})}),(0,t.jsx)("div",{className:eN()["content-carousel"],children:(0,t.jsx)(L(),{children:(0,t.jsx)(en,{images:i.data.participations})})})]})}):(0,t.jsx)(t.Fragment,{})},eP=e=>{let{profileCurrent:r}=e;return(0,t.jsxs)("div",{className:"profilePublic",children:[(0,t.jsx)(q,{profileCurrent:r}),(0,t.jsx)(J,{profileCurrent:r}),(0,t.jsx)(ed,{profileImages:r}),(0,t.jsx)("br",{}),(0,t.jsx)(ew,{profileCopyrights:r}),(0,t.jsx)(ev,{name:r.data.name})]})},ey=e=>{let{profile:r}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n,{title:"Profile - CASACOR"}),(0,t.jsxs)("main",{children:[(0,t.jsx)(F,{children:(0,t.jsx)(G,{})}),(0,t.jsx)(eP,{profileCurrent:r}),(0,t.jsx)(a.Z,{})]})]})};var ek=!0,eS=ey},55125:function(e){e.exports={header:"Header_header__NLhag",headerNavBar:"Header_headerNavBar__6t_pd",headerSearch:"Header_headerSearch__GaU8d"}},35773:function(e){e.exports={logo:"Logo_logo__zKKvy"}},2073:function(e){e.exports={topbar:"Topbar_topbar__ZbGvo","grid-social":"Topbar_grid-social__1luTu",socials:"Topbar_socials__PrAE4",social:"Topbar_social__luntK",languages:"Topbar_languages__dBWrg",img:"Topbar_img__SDeYb"}},87563:function(e){e.exports={article:"Article_article__2G4FU",category:"Article_category__lk_NY",Atitle:"Article_Atitle__3H_aR",date:"Article_date__xNbgX",excerpt:"Article_excerpt__gEdMu"}},31419:function(e){e.exports={articles:"Articles_articles__pPpGp",articlesTitle:"Articles_articlesTitle__SfewV",loadMore:"Articles_loadMore__Ihhbb",loading:"Articles_loading__qAoQM"}},96027:function(e){e.exports={incon:"iconoir_incon__wR07z"}},86961:function(e){e.exports={bio:"Bio_bio__ja3zY",bioText:"Bio_bioText__txtxb"}},29127:function(e){e.exports={info:"Info_info__cGT_7","first-content-grid":"Info_first-content-grid__TiBvl",bioTitle:"Info_bioTitle__UXHbN"}},93322:function(e){e.exports={learnMore:"LearnMore_learnMore__bPOgS",icon:"LearnMore_icon___JVu5"}},27609:function(e){e.exports={"container-other-projects":"otherProjects_container-other-projects__FBU4M",title:"otherProjects_title__9simY"}},61944:function(e){e.exports={participations:"Participation_participations__T0Bnh",title:"Participation_title__1rLLH"}},62048:function(e){e.exports={bgProfile:"Resume_bgProfile__x_6gN",peopleProfilePhoto:"Resume_peopleProfilePhoto__L_HUk",profileDescription:"Resume_profileDescription__xKI4g","content-name":"Resume_content-name__ZRkID"}},58231:function(e){e.exports={slider:"Slider_slider__F1dGe",bg:"Slider_bg__9ZHRo",mySwiper:"Slider_mySwiper__MXDVc",swiperSlide:"Slider_swiperSlide__rTqps","container-button-hover":"Slider_container-button-hover__85EiH","btn-see-more":"Slider_btn-see-more__v1v69","down-up":"Slider_down-up__qZRjx","description-image":"Slider_description-image__NKn9u"}}},function(e){e.O(0,[9755,2571,9774,2888,179],function(){return e(e.s=73471)}),_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.