PageSourceSearch

https://karrotmarket.com/_assets/(_lang).users._user_id-n3yWbwhI.js

js karrotmarket.com collected 2026-09-24 09:12:35 UTC 8,179 bytes, 6 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="34fcedb3-a19b-5333-9351-a35fe855cb3e")}catch(e){}}();
3import{j as e,u as E,K as H,M as F,f as $}from"./constants-psci6gc1.js";import{u as V,i as G}from"./variants-BpGuSOo8.js";import{a as K}from"./IconHeartLine-Bzvg-_bk.js";import{u as O}from"./index-QYIIn1r2.js";import{u as h,T as j,L as v,V as n,l as p}from"./Link-BOm1qwNN.js";import{u as L}from"./useVisibleArticle-RcKaSOmv.js";import{u as Y,g as q}from"./useLocale-BvOEoNgk.js";import{c as Q}from"./canonicalMeta-8i0JAm00.js";import{t as W,d as J,i as X}from"./titleMeta-B7faHupF.js";import{n as Z}from"./noindexMeta-DK5jYImr.js";import{s as ee}from"./safeMeta-D1Yix68w.js";import{B as re}from"./BottomBannerSection-C5QWiQiW.js";import{F as ie}from"./Footer-Cpr5shm-.js";import{V as oe,H as te}from"./Header-BCtZByOG.js";import{K as se}from"./KarrotUserProfileSummary-l99xPYRd.js";import{T as ne,f as ae,g as le}from"./getDateFnsLocale-3Ywmp112.js";import{D as u}from"./DetailGroup-DATYx5MB.js";import{A as ce,i as y,D as de,L as me,a as ue,H as x}from"./useResponsiveClientValue-82rXJak1.js";import{E as b}from"./EmptySection-De1YRmwg.js";import{G as pe}from"./index-CV62XGSl.js";import{g as R}from"./getFleamarketArticlePriceLabel-rvkMtHVw.js";import{F as c}from"./FeedItem-eN5ys786.js";import{B as k}from"./services-VIymWOJT.js";import"./JoinCreatorCommunityBanner-CkP13Yr3.js";import"./IconKarrotSymbol-DjDfRHuS.js";import"./exports-Bqt9E6uA.js";import"./Loader-B6W929u-.js";import"./IconShoppingbagLine-DnkRyOr3.js";import"./KarrotUserAvatar-BOOS6-3D.js";import"./FleamarketArticleStatusV2-jOKjdzCz.js";import"./StatusBadge-D7qWtsQs.js";const he=(i,o)=>{const r=o.find(t=>t.current===i);if(!r)throw new Error("findRegionByLocationCurrent: the region is not found");return r},fe=(i,o)=>{const r=o.find(t=>t.current===i);if(!r)throw new Error("findLocationByRegionCurrent: the location is not found");return r};var xe="_4vq8av0 fzlgmdf",ge="_18bp2v30",je="_18bp2v31",ve="_18bp2v32",Ce="_18bp2v33";const Le={seller:"Seller",buyer:"Buyer"},w=({userProfileHref:i,userProfileImage:o,nickname:r,createdAt:t,regionName:m,content:d,type:a})=>{const{karrotLocalCountryCode:l}=h();return e.jsxs("div",{children:[e.jsxs("div",{className:ge,children:[e.jsx(ce,{src:o,alt:r,size:12}),e.jsxs("div",{className:je,children:[e.jsx(j,{variant:"body-2",weight:"medium",color:"neutral",children:e.jsx(v,{href:i,className:Ce,children:r??"withdrawn user"})}),e.jsxs(u.Root,{nowrap:!0,className:ve,children:[e.jsx(u.Item,{children:Le[a]}),e.jsx(u.Item,{ellipsis:!0,children:m}),e.jsx(u.Item,{children:e.jsx(ne,{dateTime:t,children:ae(new Date(t),{addSuffix:!0,locale:le({karrotLocalCountryCode:l})})})})]})]})]}),e.jsx(j,{variant:"body-3",weight:"regular",color:"neutral",children:d})]})};function ye({open:i,onClose:o,reviews:r}){return e.jsxs(y,{active:i,onClose:o,position:{s:"bottom",m:"center"},className:V,children:[e.jsx(n,{paddingBottom:4,children:e.jsx(de,{onClose:o,closeAriaLabel:"Close review modal",children:e.jsxs(y.Title,{children:[r.length," Reviews"]})})}),e.jsx("div",{className:xe,children:e.jsx(n,{as:"ul",direction:"column",gap:6,children:r.map(t=>e.jsx("li",{children:e.jsx(w,{userProfileHref:t.userProfileHref,userProfileImage:t.profileImageUrl,nickname:t.nickname,createdAt:t.createdAt,regionName:t.locationName,content:t.content,type:t.isSeller?"seller":"buyer"})},t.id))})})]})}var ke="ko6jko0";const Ie=({reviews:i})=>p.isEmpty(i)?e.jsx(b,{title:"There are no reviews",icon:e.jsx(oe,{})}):e.jsx(pe,{as:"ul",columns:{s:1,l:2},gap:6,children:i.map(o=>e.jsx("li",{className:ke,children:e.jsx(w,{userProfileHref:o.userProfileHref,userProfileImage:o.profileImageUrl,nickname:o.nickname,createdAt:o.createdAt,regionName:o.locationName,content:o.content,type:o.isSeller?"seller":"buyer"})},o.id))});var U="l6si5r0",be="l6si5r1 fzlgmd4",Re="l6si5r2 fzlgmd4";function we({articles:i}){const{karrotLocalCountryCode:o}=h();return p.isEmpty(i)?e.jsx(b,{icon:e.jsx(me,{}),title:"No active listings"}):e.jsx("ul",{className:U,children:i.map(r=>e.jsx("li",{children:e.jsx(v,{href:`/${o}
3/buy-sell/${r.nodeId}/`,children:e.jsxs(c.Root,{className:be,children:[e.jsx(c.Image,{thumbnail:r.thumbnailUrl,alt:r.title,status:r.status}),e.jsxs(n,{children:[e.jsx(c.Price,{price:R({karrotLocalCountryCode:o,listingType:r.listingType,price:r.price,priceDescription:r.priceDescription})}),e.jsx("h3",{children:e.jsx(c.Title,{title:r.title})})]})]})})},r.nodeId))})}function Ue({articles:i}){const{karrotLocalCountryCode:o}=h();return e.jsx("ul",{className:U,children:i.map(r=>e.jsx("li",{children:e.jsx(v,{href:`/${o}/buy-sell/${r.nodeId}/`,children:e.jsxs(c.Root,{className:Re,children:[e.jsx(c.Image,{thumbnail:r.thumbnailUrl,alt:r.title,status:r.status}),e.jsxs(n,{children:[e.jsx(c.Price,{price:R({karrotLocalCountryCode:o,listingType:r.listingType,price:r.price,priceDescription:r.priceDescription})}),e.jsx("h3",{children:e.jsx(c.Title,{title:r.title})})]})]})})},r.nodeId))})}const I={Active:we,Sold:Ue},Se=6,lr=({data:i,matches:o})=>{if(!i)return[];const{t:r}=q(i.karrotLang),t=o.flatMap(a=>G(a)?a.meta??[]:[]),d=$(i.stage)({url:`${i.origin}/${i.karrotLocalCountryCode}/users/${i.profileUser.nodeId}/`});return ee([...t,...W(r("UserPage.meta_title",{nickname:i.profileUser.nickname})),...J(r("UserPage.meta_description",{nickname:i.profileUser.nickname})),...X(i.karrotLocalCountryCode),...Q({path:d.normalizedPath,karrotLocalCountryCode:i.karrotLocalCountryCode,stage:i.stage,selfHreflang:!0}),...Z({shouldBlock:i.shouldBlock})])};function cr(){const{karrotLocalCountryCode:i,isBot:o,user:r,regionIdFromURL:t,stage:m}=h(),{activeArticles:d,soldArticles:a,reviews:l,profileUser:s}=E(),{t:S}=Y(),C=r!=null&&r.nodeId===s.nodeId&&i===H.CA?F[m][i]:void 0;O({regionIdFromURL:t});const{hasMore:T,visibleArticleCount:M,onMore:N}
3=L({articles:a,isBot:o,productCountUnit:20}),{hasMore:P,visibleArticleCount:B}=L({articles:l.reviews,isBot:o,productCountUnit:Se}),{active:_,activate:A,deactivate:D}=ue(),f=he(!0,s.userRegions),z=fe(!0,s.userLocations);return e.jsxs(n,{children:[e.jsx(te,{isAuthenticated:!!r}),e.jsxs(n,{as:"main",paddingInline:4,children:[e.jsxs(x,{children:[e.jsx("h1",{children:s.nickname})," profile page"]}),e.jsx(n,{paddingBlock:2,children:e.jsx(se,{karrotUser:{id:`/${i}/users/${s.nodeId}/`,nickname:s.nickname,profileImage:s.profileImageUrl,isPersonaVerified:s.isPersonaVerified,score:s.score,scoreSymbol:s.scoreSymbolImageUrl,reviewCount:s.reviewCount,region:{dbId:String(f.id),name:f.name,countryCode:f.countryCode},locationName:{name:z.name}},size:"xlarge",profileLink:C?{href:C,openInNewTab:!0,ariaLabel:S("UserPage.account_settings_link")}:void 0})}),e.jsxs("section",{children:[e.jsx(g,{children:e.jsxs("h2",{children:["Active Listings by ",s.nickname]})}),e.jsx(I.Active,{articles:d})]}),a.length>0&&e.jsxs("section",{children:[e.jsx(x,{children:e.jsxs("h2",{children:["Sold Listings by ",s.nickname]})}),e.jsx(g,{children:"Sold"}),e.jsx(I.Sold,{articles:p.take(a,M)}),T&&e.jsx(n,{paddingTop:6,paddingBottom:4,textAlign:"center",children:e.jsx(k,{color:"neutral",variant:"solid",size:"medium",rounded:!0,icon:e.jsx(K,{}),onClick:N,children:"Load more"})})]}),e.jsxs("section",{children:[e.jsx(x,{children:e.jsxs("h2",{children:[l.reviews.length," Reviews by ",s.nickname]})}),e.jsxs(g,{children:[l.reviews.length," Reviews"]}),e.jsx(Ie,{reviews:p.take(l.reviews,B)}),P&&e.jsxs(e.Fragment,{children:[e.jsx(n,{paddingTop:6,paddingBottom:4,children:e.jsxs(k,{color:"neutral",variant:"outline",size:"large",onClick:A,children:["Show all ",l.reviews.length," reviews"]})}),e.jsx(ye,{open:_,onClose:D,reviews:l.reviews})]})]})]}),e.jsx(n,{paddingBlock:12,paddingInline:4,children:e.jsx(re,{})}),e.jsx(ie,{})]})}function g({children:i}){return e.jsx(n,{paddingTop:6,paddingBottom:4,children:e.jsx(j,{variant:"featured-3",weight:"bold",color:"neutral",children:i})})}export{cr as default,lr as meta};
4//# sourceMappingURL=(_lang).users._user_id-n3yWbwhI.js.map
5
6//# debugId=34fcedb3-a19b-5333-9351-a35fe855cb3e

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.