(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{j as r}from"./c2heove9.js";import{i as C,a as g,b as y,c as k,d as x}from"./j8acazhz.js";import{u as R}from"./n7yw5je2.js";import{g as P}from"./vztx1043.js";import{e as h}from"./kvh1z45i.js";import{g as j}from"./e5oar9b4.js";import{m as A}from"./fy3e5a2o.js";import{V as N}from"./la47cm74.js";import{N as v}from"./dpn3s6fi.js";function _({contentTypes:l,fullCommand:m,instruction:t,namespace:a,onCopy:n,reponame:p,tag:s,tagPullDesign:f=!1}){const u=R(h.repository.copyPullCommand),$=()=>{n?.(),u({namespace:a,repo:p,tag:s})},e=A({namespace:a,reponame:p}),i=!s||!f&&s==="latest"?"":`:${s}`;let o;if(m)o=m;else if(C(l))o=`docker plugin install ${e}${i}`;else if(g(l))o=`helm pull oci://${j()}/${e}${s?` --version ${s}`:""}`;else if(y(l)){const d=P();o=`docker compose -f oci://${d==="docker"?`${e}${i}`:`${d}/${e}${i}`} up`}else k(l)?o=`docker model pull ${e}${i}`:x(l)?o=`docker agent run ${e}${i}`:o=`docker pull ${e}${i}`;let c;return t&&(c=r.jsx("div",{children:t})),r.jsxs(N,{spacing:1,"data-testid":"copyPullCommandPullCommand",children:[c,r.jsx(v,{copyable:!0,onCopy:$,textToCopy:o,children:o})]})}export{_ as C};