(function(){try{var g=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};g["__faroBundleId_hub-ui"]="1776264056705-b139a53649"}catch(l){}})();import{w as u,o as c,h as l,O as d,m as g}from"./m6px07lc.js";import{j as o}from"./c2heove9.js";import{B as m}from"./mau5ylft.js";import{b as f}from"./g811ww8h.js";import{P as b,W as x}from"./ld5of2yd.js";import{R as e}from"./mapmqsyc.js";import{P}from"./krgqqk0e.js";import{R as y}from"./equtxyjb.js";import{u as h}from"./oif0rpdy.js";import{V as a,ad as R,ae as n}from"./la47cm74.js";import"./jgtt4g2i.js";import"./ipsmdhri.js";import"./gjupmyyj.js";import"./c29hhq2p.js";import"./c2kxmmw2.js";import"./oldsao4z.js";import"./mzimmi6l.js";import"./km2t237d.js";import"./ct82etp1.js";import"./h60ueqql.js";import"./htibg8hi.js";import"./jjx8cjxt.js";import"./dlfja1xs.js";import"./dpn3s6fi.js";import"./mve2tcif.js";import"./hxd38tih.js";import"./g746r0di.js";import"./mr2d4jvr.js";import"./dk14b0s0.js";import"./m7jk15t0.js";import"./b9ro9n1p.js";import"./o48pi9we.js";import"./koie55h9.js";import"./ww3seg97.js";import"./ojjrew8h.js";import"./okji1siu.js";import"./do88pojc.js";import"./n774k9r1.js";import"./e1ed3ype.js";import"./dqt06de9.js";import"./cn2mrooy.js";import"./brik0n97.js";import"./fhfgpx48.js";import"./k5os1d6s.js";import"./ggvbaq4g.js";import"./hzbfainw.js";import"./o5po04y6.js";import"./ffm8a01i.js";import"./dkm2qjw2.js";import"./fkxy32yf.js";import"./i6uxbv1y.js";import"./ixoha9s2.js";import"./dbg4ugqw.js";import"./oe9bg39j.js";import"./rivpgrku.js";import"./iknbvdrh.js";import"./ibwxweb5.js";import"./dgye9qmu.js";import"./dxe5oaxj.js";import"./c2z4eqkk.js";import"./nap984bv.js";import"./j2lum5n5.js";import"./mfz2ggvr.js";import"./gh45y583.js";import"./doouyyoy.js";import"./e4ofqcj1.js";import"./effsgy3n.js";import"./kaho5obd.js";import"./bdg8312i.js";import"./iycpyoal.js";import"./gxr2cae3.js";import"./bwtull1d.js";import"./b81t3sgi.js";import"./gey4cr6o.js";import"./iifpi1iu.js";import"./detkwr9j.js";import"./gczexp56.js";import"./ifdfgrma.js";import"./o58gzn7h.js";import"./f80ft0bu.js";import"./3znfdnzu.js";import"./kl74giwr.js";import"./h6avv8pc.js";import"./cn0mn8n4.js";import"./bj2d3fxd.js";import"./bwgpyml2.js";import"./k46ip8b6.js";import"./o0uozu2i.js";import"./951j84kw.js";import"./ij3umk1y.js";import"./fm0ztcbe.js";import"./e2xumd76.js";import"./fgrh3em6.js";import"./3skcli0z.js";import"./cog875zc.js";import"./bzdgezj1.js";import"./m5s21b8a.js";import"./oat2b3jh.js";import"./k7410zjl.js";import"./evr5wnou.js";import"./d40c3tn9.js";import"./clkkthq4.js";import"./b1b27nrl.js";import"./limpb33f.js";import"./kkeja52t.js";import"./nl33iyi9.js";import"./jf0o1ean.js";import"./oue0wtmj.js";import"./dgvx0slb.js";import"./b2qz6tvq.js";import"./bzboi54p.js";import"./l4momybf.js";import"./iy3smwie.js";import"./fr3stkr3.js";import"./ihq2tdkl.js";import"./hcf58i0r.js";import"./ipu1vast.js";import"./vztx1043.js";import"./haf4pf5b.js";import"./kivoh408.js";import"./judrkj4m.js";import"./d1wwqvb0.js";import"./hb2vd7l6.js";import"./cjh1csys.js";const E="Verified Publisher",U="Community Organization",j="Community User",Gr={sidebar:()=>null},qr=({loaderData:r,params:t})=>r?.profile?[{title:O(r.profile,t.namespace)},{name:"description",content:S(r.profile)},{tagName:"link",rel:"canonical",href:r?.canonicalUrl}]:[],Ar=u(function(){const{namespace:t}=f("/u/:namespace",c()),{profile:i}=l(),s=h()?.username===t;return i?o.jsxs(a,{"data-testid":"page_community_profile",spacing:2,sx:{marginTop:2,marginBottom:2},children:[o.jsxs(a,{spacing:2,children:[o.jsx(_,{namespace:t,profile:i,isCurrentUser:s}),o.jsx(I,{showStarred:i.type==="user"})]}),o.jsx("div",{children:o.jsx(d,{})})]}):o.jsx(y,{})});function _({namespace:r,profile:t,isCurrentUser:i}){let p;return t.type==="organization"&&(t.badge===m.VERIFIED_PUBLISHER||t.badge===m.OPEN_SOURCE)&&(p=o.jsx(P,{badge:t.badge})),o.jsx(b,{displayName:t.full_name||t.company||t.orgname||r,profileUrl:t.profile_url,company:t.company,isCurrentUser:i,profileType:C(t),location:t.location,productBadge:p,avatar:o.jsx(x,{namespace:r,accountDetails:t,size:80})})}function I({showStarred:r}){const t=g("/u/:namespace/:tab")?.params.tab??"repositories";return o.jsxs(R,{value:t,"data-testid":"profileTab",children:[o.jsx(n,{label:"Repositories",value:"repositories",component:e,to:"."}),r&&o.jsx(n,{label:"Starred",value:"starred",component:e,to:"starred"})]})}function C(r){return r.type==="organization"?r.badge===m.VERIFIED_PUBLISHER?E:U:j}function O(r,t){return r.type==="organization"?r.full_name||t:r.full_name?`${t} (${r.full_name})`:t}function S(r){if(r.type==="organization"){let t="";return r.badge===m.VERIFIED_PUBLISHER?t=", a Verified Publisher on Docker Hub":r.badge===m.OPEN_SOURCE&&(t=", an Open Source publisher on Docker Hub"),`Discover official Docker images from ${r.full_name||r.orgname}${t}. Visit their profile and explore images they maintain.`}return`Discover Docker images from ${r.username}. Visit their profile and explore images they maintain.`}export{Ar as default,Gr as handle,qr as meta};