(function(){try{var g=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};g["__faroBundleId_hub-ui"]="1776361634403-2195cb2175"}catch(l){}})();import{w as Q,o as Y,h as q,m as G,O as K}from"./m6px07lc.js";import{j as t}from"./c2heove9.js";import{B as R}from"./mau5ylft.js";import{P as X}from"./jhk54yn3.js";import{b as j,a as p}from"./g811ww8h.js";import{r as Z}from"./hrjiqtyo.js";import{C as tt}from"./h07o3ltl.js";import{D as ot}from"./dicrobty.js";import{R as m}from"./mapmqsyc.js";import{i as rt,g as it}from"./j8acazhz.js";import{P as et}from"./krgqqk0e.js";import{P as st}from"./in46q8il.js";import{E as at}from"./fxs64qpt.js";import{R as mt}from"./mocoezi7.js";import{R as pt}from"./e5l9f1tt.js";import{g as nt}from"./vztx1043.js";import{i as x,g as k}from"./en3tiznl.js";import{m as ct}from"./fy3e5a2o.js";import{M as lt}from"./ybchccbk.js";import{S as dt}from"./g720x6xv.js";import{b as ut}from"./dlfja1xs.js";import{J as gt,w as b,V as e,T as d,_ as xt,l as ft,B as S,ad as ht,ae as u}from"./la47cm74.js";import"./jgtt4g2i.js";import"./ipsmdhri.js";import"./gjupmyyj.js";import"./c29hhq2p.js";import"./c2kxmmw2.js";import"./oldsao4z.js";import"./n0aar0cs.js";import"./d3hkyh18.js";import"./fr3stkr3.js";import"./kivoh408.js";import"./judrkj4m.js";import"./d1wwqvb0.js";import"./hb2vd7l6.js";import"./km2t237d.js";import"./ct82etp1.js";import"./h60ueqql.js";import"./htibg8hi.js";import"./jjx8cjxt.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"./nrsf2txa.js";import"./xo2mv5zh.js";import"./k327hano.js";import"./ik1jhe10.js";import"./hrhvij4l.js";import"./bzboi54p.js";import"./kvsallcf.js";import"./jl5290zo.js";import"./j7144f4p.js";import"./cr3yi9y8.js";import"./dow1lgc8.js";import"./a0widb7c.js";import"./ipu1vast.js";import"./haf4pf5b.js";import"./i1done9i.js";import"./dygtgd0c.js";import"./j9ta78vo.js";import"./i5k57vg2.js";import"./i1xqv3bx.js";import"./ctx6purh.js";import"./oif0rpdy.js";import"./gsyzq037.js";import"./cjh1csys.js";function bt(r){if(!x(r.namespace)||!r.full_description)return`${r.namespace}/${r.name}`;const o=k(r.full_description);return o.title?o.title:o.image?o.image:`${r.namespace}/${r.name}`}function jt(r){if(!r.full_description)return;const o=k(r.full_description);if(o.image&&o.title)return o.image}const g={color:"secondary"},ci={sidebar:()=>null,breadcrumb({params:r}){const{namespace:o,reponame:a}=j("/r/:namespace/:reponame",r),s=[{name:"Explore",to:p("/search")},{name:o,to:p("/u/:namespace",{namespace:o})},a];return t.jsx(tt,{breadcrumbs:s})}},li=({loaderData:r,params:o})=>{const{namespace:a,reponame:s}=j("/r/:namespace/:reponame",o);return[{title:`${ct({namespace:a,reponame:s})} - Docker Image`},{tagName:"link",rel:"canonical",href:r?.canonicalUrl},...r?.isPotentialSpam?[{name:"robots",content:"noindex, nofollow"}]:[]]},di=Q(function(){const{namespace:o,reponame:a}=j("/r/:namespace/:reponame",Y()),{repo:s,orgData:n,mcpServer:y,canSeeDockerfile:C,canSeeAutobuilds:T,cloudBuildSource:B,isAutobuildsAvailable:I,isPotentialSpam:_}=q(),v=!ut(B?.objects?.[0]),M=G("/r/:namespace/:reponame/:tab")?.params.tab??"overview",l=x(o),E=T,$=C,D=!l,O=!l&&v&&E&&I,A=!l&&v&&$,L=n?.badge===R.OPEN_SOURCE||n?.badge===R.VERIFIED_PUBLISHER,U=rt(s.content_types),N=l?bt(s):`${o}/${a}`,w=x(o)?jt(s):null,{categories:f,content_types:F,description:H,last_updated:V,permissions:W,pull_count:z,status:h}=s,c=h===Z.archived,P=U?["Plugin"]:(F??[]).map(it),J=gt(i=>i.breakpoints.down("sm"));return t.jsx(b,{sx:{display:"contents"},children:t.jsxs(e,{spacing:3,"data-testid":"page_community_image_detail",children:[t.jsxs(e,{spacing:4,sx:i=>({bgcolor:i.vars.palette.background.default,borderBottom:`1px solid ${i.vars.palette.divider}`}),children:[t.jsx(b,{children:t.jsxs(e,{direction:{xs:"column",sm:"row"},spacing:3,sx:{flexWrap:"nowrap",justifyContent:"space-between",paddingY:3},children:[t.jsx(b,{sx:{alignSelf:{xs:"center",sm:"flex-start"}},children:t.jsx(at,{namespace:o,reponame:a,size:120,archived:c})}),t.jsx(e,{spacing:1,sx:{flex:1},children:t.jsxs(t.Fragment,{children:[t.jsxs(e,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[t.jsx(d,{variant:"h2","data-testid":"repoName",noWrap:!0,...c&&g,children:N}),n?.badge&&t.jsx(et,{iconOnly:J,badge:n.badge})]}),w?t.jsx(d,{children:w}):null,t.jsxs(e,{direction:"row",spacing:2,children:[t.jsxs(ot,{sx:{alignSelf:"start"},children:[t.jsxs(d,{...c&&g,children:["By"," ",t.jsx(xt,{component:m,to:p("/u/:namespace",{namespace:o}),"data-testid":"org-link",...c&&{underline:"none",...g},children:L&&n?.company||o})]}),t.jsx(mt,{repoStatus:h,lastUpdated:V||"",typographyProps:{color:"secondary.main"}})]}),t.jsx(pt,{status:h})]}),_?null:t.jsx(d,{...c&&g,children:H}),P.length>0?t.jsx(e,{direction:"row",spacing:1,sx:{alignItems:"center"},children:P.map(i=>t.jsx(ft,{label:i},i))}):null,f&&f.length>0?t.jsx(e,{"data-testid":"categories",direction:"row",spacing:1,sx:{alignItems:"center"},children:f.map(i=>t.jsx(st,{label:i.name,route:p("/categories/:category",{category:i.slug})},i.slug))}):null,t.jsxs(e,{direction:"row",spacing:2,sx:{mt:1,flexWrap:"wrap"},children:[t.jsx(dt,{repository:s}),x(o)?null:t.jsx(X,{pullCount:z})]})]})}),t.jsxs(e,{direction:"column",spacing:2,sx:{alignSelf:"start",alignItems:{xs:void 0,sm:"end"},width:"100%",flex:0,display:"flex"},children:[W?.admin&&t.jsx(S,{component:m,to:p("/repository/:registry/:namespace/:name",{namespace:o,registry:nt(),name:a}),variant:"outlined",color:"primary","data-testid":"manageRepository",children:"Manage Repository"}),y&&t.jsx(S,{startIcon:t.jsx(lt,{}),component:m,to:p("/mcp/server/:name",{name:y.name}),color:"primary","data-testid":"viewOnMCPHub",children:"View on MCP:Hub"})]})]})},"header-container"),t.jsx("div",{children:t.jsxs(ht,{value:M,children:[t.jsx(u,{label:"Overview",value:"overview",component:m,to:"."}),D&&t.jsx(u,{label:"Tags",value:"tags",component:m,to:"tags"}),A&&t.jsx(u,{label:"Dockerfile",value:"dockerfile",component:m,to:"dockerfile"}),O&&t.jsx(u,{label:"Builds",value:"builds",component:m,to:"builds"})]})})]}),t.jsx("div",{children:t.jsx(K,{})})]})})});export{di as default,ci as handle,li as meta};