(function(){try{var g=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};g["__faroBundleId_hub-ui"]="1776171900957-0cd8d4af42"}catch(l){}})();import{r as s,j as e}from"./c2heove9.js";import{B as n}from"./s386w7ee.js";import{C as u}from"./kivoh408.js";import{W as m,n as x,V as I}from"./la47cm74.js";import{D as O}from"./judrkj4m.js";const l={open_source:"Sponsored OSS",official:"Docker Official Image",verified_publisher:"Verified Publisher",none:"Community",hardened:"Docker Hardened Image"},S=(o,r)=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...o,children:e.jsx("path",{d:"M7.96668 14.7219L7 22L11.5884 19.247C11.7381 19.1572 11.8129 19.1123 11.8928 19.0947C11.9634 19.0792 12.0366 19.0792 12.1072 19.0947C12.1871 19.1123 12.2619 19.1572 12.4116 19.247L17 22L16.0343 14.7212M19 9C19 12.866 15.866 16 12 16C8.13401 16 5 12.866 5 9C5 5.13401 8.13401 2 12 2C15.866 2 19 5.13401 19 9Z",stroke:"currentColor",fill:"none",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})}),w=s.forwardRef(S),f=s.forwardRef((o,r)=>e.jsx(m,{"data-testid":"OfficialIcon",component:w,ref:r,...o}));f.muiName="Official";const E=(o,r)=>e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...o,children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1C11.4477 1 11 1.44772 11 2C11 2.55228 11.4477 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 11.4477 2.55228 11 2 11C1.44772 11 1 11.4477 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM12 18.0435C15.3377 18.0435 18.0435 15.3377 18.0435 12C18.0435 8.66229 15.3377 5.95654 12 5.95654C8.66229 5.95654 5.95654 8.66229 5.95654 12C5.95654 15.3377 8.66229 18.0435 12 18.0435Z",fill:"currentColor"}),e.jsx("circle",{cx:5,cy:5,r:1.5741,fill:"currentColor"})]}),R=s.forwardRef(E),p=s.forwardRef((o,r)=>e.jsx(m,{"data-testid":"OpenSourceIcon",component:R,ref:r,...o}));p.muiName="OpenSource";const v={[n.HARDENED]:{component:O},[n.OPEN_SOURCE]:{component:p},[n.OFFICIAL]:{component:f},[n.VERIFIED_PUBLISHER]:{component:u},[n.COMMUNITY]:null};function B({badge:o,iconOnly:r,size:i="small",customLabel:d,hideTooltip:C=!1}){if(o===null)return null;const c=v[o];if(!c)return null;const a=()=>e.jsxs(I,{"data-testid":"productBadge",direction:"row",spacing:.5,sx:[{alignItems:"center"},o===n.OPEN_SOURCE&&(t=>({color:t.vars.palette.premium.main})),o===n.OFFICIAL&&(t=>({color:t.vars.palette.success.main})),o===n.VERIFIED_PUBLISHER&&(t=>({color:t.vars.palette.primary.main}))],children:[e.jsx(c.component,{sx:[i==="xs"&&{fontSize:"1rem !important"},i==="small"&&{fontSize:"1.4285714285714286rem !important"},i==="medium"&&{fontSize:"1.7142857142857142rem !important"},i==="large"&&{fontSize:"2.5rem !important"}],"data-testid":`${o}-icon`}),!r&&(d??l[o])]});return C?a():e.jsx(x,{title:l[o],placement:"bottom",children:a()})}export{l as C,f as O,B as P,p as a};