1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5811],{45811:(e,i,l)=>{l.r(i),l.d(i,{default:()=>C});var s=l(20294),t=l(37876),r=l(15039),a=l.n(r),d=l(80782),n=l.n(d),o=l(14232),c=l(93996),p=l(79514),u=l(43435),f=l(18647),_=l(96505),v=l(54750),x=l(26205),m=l(13403),h=l(50307),j=l(90183),b=l(42642),g=l(80481),N=l(28341),w=l(50075),y=l(2425),A=l(65707),E=l(64948),S=l(66195),k=function(e){return e.PROFILE="profile",e.PRODUCT="product",e.REVIEW="review",e}(k||{});let C=function(e){var i,l,r,d,k,C,B,R,T,I,M,q,L,P,O,V,W,z,D,F,G,H,U=(0,c.u)(),Z=U.user,$=U.isSeller,J=(0,s._)((0,w.Bd)(g.Hr),1)[0],K=(0,s._)((0,o.useState)(!1),2),Q=K[0],X=K[1],Y=(0,s._)((0,o.useState)(!1),2),ee=Y[0],ei=Y[1],el=(null==Z?void 0:Z.seller_verification_status)>0,es=ee&&(null==Z?void 0:Z.id)===(null==(i=e.profile)?void 0:i.id),et=es&⪙(0,o.useEffect)(function(){X(!!e.profile),ei(null!==e.products)},[e.profile,e.products]);var er=(0,s._)((0,o.useState)("profile"),2),ea=er[0],ed=er[1],en=function(e){ed(e)};return(0,o.useLayoutEffect)(function(){var e=[document.querySelector('[id="profile"]'),document.querySelector('[id="product"]'),document.querySelector('[id="review"]')].filter(function(e){return e}).map(function(e){return{top:e.offsetTop,id:e.id}}),i=function(){var i=e.filter(function(e){return(0,N.$V)('[id="'.concat(e.id,'"]'),100)}).slice(-1);(null==i?void 0:i.length)&&ea!==i[0].id?ed(i[0].id):ed("profile")};return window.addEventListener("scroll",n()(i,300)),function(){window.removeEventListener("scroll",i)}},[]),(0,t.jsxs)(p.wW,{isCloseAppBar:e.isCloseAppBar,children:[(0,t.jsxs)("div",{className:"section-tabs",children:[(0,t.jsx)("a",{href:"#profile",onClick:function(){return en("profile")},className:a()("tab-item",{active:"profile"===ea}),"data-selenium":"public-profile.tab.overall",children:J("navigation-tab.profile")}),ee&&!!(null==(l=e.products)?void 0:l.length)&&(0,t.jsx)("a",{href:"#product",onClick:function(){return en("product")},className:a()("tab-item",{active:"product"===ea}),"data-selenium":"public-profile.tab.expertise",children:J("navigation-tab.product")}),(0,t.jsx)("a",{href:"#review",onClick:function(){return en("review")},className:a()("tab-item",{active:"review"===ea}),"data-selenium":"public-profile.tab.work",children:J("navigation-tab.review")})]}),(0,t.jsx)(v.A,{image:(null==(d=e.products)||null==(r=d[0])?void 0:r.image)||"",isMobile:!0}),(0,t.jsxs)("div",{className:"mobile _bgcl-neutral-50 _pdbt-128px _pst-rlt _zid-1",children:[(0,t.jsx)("div",{id:"profile",className:"_pst-asl",style:{marginTop:-255}}),(0,t.jsxs)("div",{className:"lo-12 _gg-0px",children:[(0,t.jsxs)("div",{children:[!Q&&(0,t.jsx)(f.A,{}),Q&&(0,t.jsxs)("div",{className:"_bgcl-white-100 _pdt-32px _pdbt-32px _bdrd-4px _bdw-1px _bdcl-neutral-200 _pst-rlt",style:{width:"unset",marginTop:"-125px"},children:[(0,t.jsxs)("div",{className:"_dp-f _pst-asl _r-16px _t-16px _gg-8px",children:[es&&(0,t.jsx)(y.G,{href:S.Z,children:(0,t.jsx)("div",{className:"_dp-f _jtfct-ct _alit-ct _w-32px _h-32px _bdrd-max _bdcl-neutral-200 _bdw-1px _cur-ptr _bgcl-white-100",children:(0,t.jsx)("i",{className:"far fa-pen-to-square _cl-text-default-200 _fs-500"})})}),!es&&(0,t.jsx)(A.A,{userId:null==(k=e.profile)?void 0:k.id,displayName:null==(C=e.profile)?void 0:C.display_name,isBottomSheet:!0})]}),(0,t.jsx)("div",{className:"_dp-f _jtfct-ct",children:(0,t.jsx)("img",{src:null==(B=e.profile)?void 0:B.image,alt:null==(R=e.profile)?void 0:R.display_name,className:"_bdrd-max _ojf-cv",width:175,height:175})}),(0,t.jsxs)("div",{className:"_pdh-24px _mgt-16px",children:[(0,t.jsx)("div",{className:"_fs-800 _fw-600 _tal-ct _ffml-secondary",children:null==(T=e.profile)?void 0:T.display_name}),(0,t.jsx)("div",{className:"_mgt-12px",children:(0,t.jsx)(x.A,{averageRating:e.averageRating})}),(null==(I=e.profile)?void 0:I.verifications)&&(0,t.jsx)("div",{className:"_dp-f _jtfct-ct _alit-ct _mgt-16px",children:(0,t.jsx)(b.A,{profileId:null==(M=e.profile)?void 0:M.id,verifications:null==(q=e.profile)?void 0:q.verifications})}),(0,t.jsx)("div",{className:"_mgt-24px ",children:(0,t.jsx)(j.A,{stats:null==(L=e.profile)?void 0:L.stats,joinAt:null==(P=e.profile)?void 0:P.created_at})}),(null==(O=e.profile)?void 0:O.about_me)&&(0,t.jsx)("div",{className:"_mgt-24px",children:(0,t.jsx)(u.A,{aboutMe:null==(V=e.profile)?void 0:V.about_me})})]})]}),Q&&es&&$&&!(null==Z||null==(W=Z.national_card)?void 0:W.status)&&(0,t.jsx)("div",{className:"_mgt-24px ",children:(0,t.jsx)(E.B,{})}),Q&&(0,t.jsx)(_.A,{experiences:null==(z=e.profile)?void 0:z.experiences,isMobile:!0,isS
1howEditButton:et})]}),(0,t.jsxs)("div",{className:"_f-1 _pdh-16px",children:[!!(null==(D=e.products)?void 0:D.length)&&(0,t.jsxs)("section",{className:"_mgt-48px",children:[(0,t.jsx)("div",{id:"product",className:"_pst-asl",style:{marginTop:-125}}),(0,t.jsx)(m.A,{isReady:ee,userPublicProfile:e.profile,products:e.products,user:Z,isMobile:!0})]}),(0,t.jsxs)("section",{className:"_mgt-48px",children:[(0,t.jsx)("div",{id:"review",className:"_pst-asl",style:{marginTop:-125}}),(0,t.jsx)(h.A,{userId:null==(F=e.profile)?void 0:F.id,isMobile:!0,isSeller:!!(null==e||null==(H=e.profile)||null==(G=H.seller_profile)?void 0:G.first_approved_at)})]})]})]})]})]})}}}]);
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.