1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[35234],{40476:function(e,i,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/area-agente/[id]",function(){return l(80906)}])},80906:function(e,i,l){"use strict";l.r(i),l.d(i,{__N_SSP:function(){return _}});var n=l(858),a=l(53513),o=l(81539),t=l(31635),r=l(74848),u=l(96540),d=l(43170),s=l(96798),c=l(4999),f=l(816),m=l(81051),v=l(5997),p=l(19797),h=l(7629),g=l(6261),b=l(37005),N=l(66318),P=l(36643),y=l(56010),x=l(41152),j=l(95149);l(67187);var k=function(e){var i,l,k=e.agentProfile,_=e.servicesList,L=(0,d.u)().haveFeaturePageAgentArea,A=(0,P.d)().openToast,M=(0,u.useState)(!1),w=M[0],S=M[1],E=(0,u.useState)([]),K=E[0],O=E[1],D=null===(i=(0,u.useMemo)(function(){var e,i,l,n,o;return[{iconName:"WhatsappLight",modalKey:"mobileNumber",data:(null==k?void 0:k.mobileNumber)?(0,f.n4)(null==k?void 0:k.mobileNumber):c.P.pages.userProfile.sideMenu.phone,label:"",filled:!!(null==k?void 0:k.mobileNumber)},{iconName:"PartyLight",modalKey:"birthDate",data:(null==k?void 0:k.birthDate)&&(0,r.jsx)("p",{children:(0,b.aF)(null==k?void 0:k.birthDate)}),label:c.P.pages.userProfile.sideMenu.birthDate,filled:!!(null==k?void 0:k.birthDate)},{iconName:"MaritalStatus",modalKey:"maritalStatus",data:(null==k?void 0:k.maritalStatus)&&(0,r.jsx)("p",{children:g.G[null==k?void 0:k.maritalStatus]}),label:c.P.pages.userProfile.sideMenu.maritalStatus,filled:!!(null==k?void 0:k.maritalStatus)},{iconName:"Maternity",modalKey:"childrenQuantity",data:(0,r.jsx)("p",{children:null==k?void 0:k.childrenQuantity}),label:c.P.pages.userProfile.sideMenu.children,filled:!Number.isNaN(Number(null==k?void 0:k.childrenQuantity))},{iconName:"HeartLight",modalKey:"reallyLike",data:(0,r.jsx)("p",{children:null==k?void 0:k.reallyLike}),label:c.P.pages.userProfile.sideMenu.whatILike,filled:!!(null==k?void 0:k.reallyLike)},{iconName:"GraduationCap",modalKey:"studiedAt",data:(0,r.jsx)("p",{children:null==k?void 0:k.studiedAt}),label:c.P.pages.userProfile.sideMenu.whereDidIStudy,filled:!!(null==k?void 0:k.studiedAt)},{iconName:"Language",modalKey:"spokenLanguages",data:(null==k?void 0:k.spokenLanguages)&&(0,r.jsx)("p",{children:null===(i=null==k?void 0:null===(e=k.spokenLanguages)||void 0===e?void 0:e.map(function(e){return g.D[e]}))||void 0===i?void 0:i.join(", ")}),label:c.P.pages.userProfile.sideMenu.languages,filled:!!(null==k?void 0:null===(l=k.spokenLanguages)||void 0===l?void 0:l.length)},{iconName:"PinLight",modalKey:"workingAt",data:(null==k?void 0:null===(n=k.workingAt)||void 0===n?void 0:n.city)&&(0,r.jsx)("p",{children:(0,m.M0)({address:(0,a.A)({},null==k?void 0:k.workingAt)})}),label:c.P.pages.userProfile.sideMenu.workplace,filled:!!(null==k?void 0:null===(o=k.workingAt)||void 0===o?void 0:o.city)}]},[k]))||void 0===i?void 0:i.filter(function(e){return null==e?void 0:e.filled}),C=(l=(0,n.A)(function(){return(0,t.__generator)(this,function(e){return(0,s.kPR)(k.id).subscribe({next:function(e){e&&O(function(i){return(0,o.A)(i).concat([e])})},error:function(){A({title:c.P.errors.portfolioError,type:y.l.ERROR})}}),[2]})}),function(){return l.apply(this,arguments)});return((0,u.useEffect)(function(){C()},[]),L())?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(x.A,{children:[(0,r.jsx)(p.A,{}),(0,r.jsxs)(j.ls,{children:[(0,r.jsxs)(h.o,{children:[(0,r.jsxs)(h.o.Wrapper,{children:[(0,r.jsx)(h.o.PublicHeader,{profile:k,handleOpenShareProfileModal:function(){return S(!0)},mobileNumber:k.mobileNumber,name:(null==k?void 0:k.socialName)||"".concat((null==k?void 0:k.firstName)||""," ").concat((null==k?void 0:k.lastName)||"")}),(0,r.jsx)(h.o.Menu,{menuItems:D,isLoading:!1})]}),(0,r.jsx)(h.o.PublicFooter,{services:k.services,yearsOfExperience:k.yearsOfExperience,mobileNumber:k.mobileNumber,name:(null==k?void 0:k.socialName)||"".concat((null==k?void 0:k.firstName)||""," ").concat((null==k?void 0:k.lastName)||"")})]}),(0,r.jsx)(v.A,{agentServices:_,portfolioList:K})]})]}),(0,r.jsx)(N.p,{agentProfile:k,isOpen:!!w,handleClose:function(){return S(!1)},setIsOpen:function(){}})]}):null},_=!0;i.default=k}},function(e){e.O(0,[46593,90636,38792,3197,96593,21570,60170,25951,96603,31366,95167,56960,23303,60803,61510,44981,72980,11529,19378,14327,76032,28879],function(){return e(e.s=40476)}),_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.