(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{j as s}from"./c2heove9.js";import{G as n}from"./cf0f6kom.js";import{C as a,a as p,b as m,c as x}from"./dm8eczva.js";import{B as h}from"./cv3g6ht2.js";import{c as f}from"./vztx1043.js";import{V as i,W as j,T as c}from"./la47cm74.js";import{a as b}from"./dlfja1xs.js";import{E as y}from"./m5s21b8a.js";const v="bitbucket",C="github",T="Bitbucket",d="Github";function _({cloudBuildSource:r}){if(!r||!r.provider||!r.repository||!r.owner)return null;const e=f(r.provider,r.repository,r.owner),o=`${r.owner}/${r.repository}`;let t;return r.provider===C||r.provider===d?t=s.jsx(n,{}):(r.provider===v||r.provider===T)&&(t=s.jsx(h,{})),e?s.jsxs(a,{children:[s.jsx(p,{children:s.jsx(m,{children:"Source Repository"})}),s.jsx(x,{children:s.jsxs(i,{direction:"row",spacing:1.5,"data-testid":"source-icon",children:[s.jsx(j,{color:"secondary",children:t}),s.jsxs(i,{children:[s.jsx(c,{children:s.jsx("strong",{children:b(r.provider)})}),s.jsx(y,{href:e,"data-testid":"sourceRepository",children:o})]})]})})]}):null}export{_ as S};