import{r as i,j as t}from"./BL9F-HQ1.js";import{S as s}from"./DlxJrlcA.js";import{S as n}from"./Bgvuxsw7.js";import{r as e}from"./Cu9E-37O.js";import{T as c}from"./DftAxge3.js";import{S as l}from"./C-wObYiq.js";import{C as p}from"./mE0H7OvT.js";const u=(o,r)=>t.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...o,children:t.jsx("path",{d:"M22 8.00004V12M10.25 5.50003H6.8C5.11984 5.50003 4.27976 5.50003 3.63803 5.82701C3.07354 6.11463 2.6146 6.57358 2.32698 7.13806C2 7.7798 2 8.61988 2 10.3L2 11.5C2 12.4319 2 12.8979 2.15224 13.2654C2.35523 13.7555 2.74458 14.1448 3.23463 14.3478C3.60218 14.5 4.06812 14.5 5 14.5V18.75C5 18.9822 5 19.0983 5.00963 19.1961C5.10316 20.1456 5.85441 20.8969 6.80397 20.9904C6.90175 21 7.01783 21 7.25 21C7.48217 21 7.59826 21 7.69604 20.9904C8.64559 20.8969 9.39685 20.1456 9.49037 19.1961C9.5 19.0983 9.5 18.9822 9.5 18.75V14.5H10.25C12.0164 14.5 14.1772 15.4469 15.8443 16.3557C16.8168 16.8858 17.3031 17.1509 17.6216 17.1119C17.9169 17.0757 18.1402 16.9431 18.3133 16.7011C18.5 16.4402 18.5 15.918 18.5 14.8737V5.12632C18.5 4.08203 18.5 3.55988 18.3133 3.29892C18.1402 3.05694 17.9169 2.92433 17.6216 2.88816C17.3031 2.84916 16.8168 3.11423 15.8443 3.64439C14.1772 4.55315 12.0164 5.50003 10.25 5.50003Z",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})}),m=i.forwardRef(u),a=i.forwardRef((o,r)=>t.jsx(s,{"data-testid":"AnnouncementIcon",component:m,ref:r,...o}));a.muiName="Announcement";const C=(o,r)=>t.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...o,children:t.jsx("path",{d:"M12 12L7.72711 8.43926C7.09226 7.91022 6.77484 7.6457 6.54664 7.32144C6.34444 7.03413 6.19429 6.71354 6.10301 6.37428C6 5.99139 6 5.57819 6 4.7518V2M12 12L16.2729 8.43926C16.9077 7.91022 17.2252 7.6457 17.4534 7.32144C17.6556 7.03413 17.8057 6.71354 17.897 6.37428C18 5.99139 18 5.57819 18 4.7518V2M12 12L7.72711 15.5607C7.09226 16.0898 6.77484 16.3543 6.54664 16.6786C6.34444 16.9659 6.19429 17.2865 6.10301 17.6257C6 18.0086 6 18.4218 6 19.2482V22M12 12L16.2729 15.5607C16.9077 16.0898 17.2252 16.3543 17.4534 16.6786C17.6556 16.9659 17.8057 17.2865 17.897 17.6257C18 18.0086 18 18.4218 18 19.2482V22M4 2H20M4 22H20",stroke:"currentColor",fill:"none",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})}),f=i.forwardRef(C),d=i.forwardRef((o,r)=>t.jsx(s,{"data-testid":"HourglassIcon",component:f,ref:r,...o}));d.muiName="Hourglass";const h={[e.initialized]:void 0,[e.active]:void 0,[e.pending_delete]:t.jsx(d,{}),[e.locked]:t.jsx(n,{}),[e.moderated_by_admin]:t.jsx(a,{}),[e.plan_exceeded]:t.jsx(n,{}),[e.archived]:void 0},x={[e.initialized]:"",[e.active]:"",[e.pending_delete]:"Deleting",[e.locked]:"Locked",[e.moderated_by_admin]:"Moderated",[e.plan_exceeded]:"Locked",[e.archived]:"Archived"},g={[e.initialized]:"",[e.active]:"",[e.pending_delete]:"This repository is being deleted.",[e.locked]:"The number of private repositories in your account exceeds the limit of your current subscription. Upgrade to a paid tier to unlock this repository.",[e.moderated_by_admin]:"This repository is locked by content moderators due to irregular activity. Contact support to unlock this repository.",[e.plan_exceeded]:"The number of private repositories in your account exceeds the limit of your current subscription. Upgrade to a paid tier to unlock this repository.",[e.archived]:"This repository is archived. Users can still pull images but they cannot push new ones."},v={[e.initialized]:"default",[e.active]:"default",[e.pending_delete]:"error",[e.locked]:"primary",[e.moderated_by_admin]:"primary",[e.plan_exceeded]:"primary",[e.archived]:"warning"};function R({status:o}){if(!y(o))return null;const r=x[o];return r?t.jsx(c,{title:g[o],children:t.jsxs(l,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[h[o]??null,t.jsx(p,{label:r,color:v[o],"data-testid":"repository-status-chip"})]})}):null}function y(o){return Object.values(e).includes(o)}export{R,g as r};