import{u as e,r as n,j as s,M as t}from"./vendor--leCAzSo.js";import{B as a,I as r}from"./c87b7760f-oG193yNp.js";import{a4 as i,a5 as l,a6 as o,a7 as c,a8 as x,a9 as d,aa as p,ab as m}from"./index-DZuQva-j.js";function u(e){return`${e.owner.login}/${e.name}`}const h="inline-flex items-center gap-g2 px-p4 py-p2 rounded-r4 text-footnote text-t6 hover:text-t8 hover:bg-t2 hide-focus-ring ring-focus",f="inline-flex items-center gap-g2 px-p4 py-p2 rounded-r4 border border-dashed border-t4 text-footnote text-t6 hover:text-t8 hover:bg-t1 hide-focus-ring ring-focus";function g({heading:e,children:n}){return s.jsxs("section",{className:"flex flex-col gap-g5",children:[s.jsx("h2",{className:"text-body text-t6",children:e}),n]})}function b({icon:e,children:n}){return s.jsxs("span",{className:"inline-flex items-center gap-g2 px-p4 py-p2 rounded-r4 bg-t1 text-footnote text-t8",children:[e,s.jsx("span",{className:"truncate",children:n})]})}function j({repo:e}){return s.jsx(b,{icon:s.jsx(r,{name:"GitBranch",size:"s"}),children:u(e)})}function v({connector:e}){return s.jsx(b,{icon:s.jsx(m,{type:e.iconType,src:e.iconSrc,size:14,imageSize:12,name:e.name}),children:e.name})}const N=n.memo(function({icon:e,label:n,onRemove:t,removeAriaLabel:a}){return s.jsxs("span",{className:"inline-flex items-center gap-g2 pl-p4 pr-p2 py-p2 rounded-r4 bg-t1 text-footnote text-t8",children:[e,s.jsx("span",{className:"truncate max-w-[200px]",children:n}),s.jsx("button",{type:"button",onClick:t,"aria-label":a,className:"flex items-center justify-center size-[16px] rounded-r4 text-t6 hover:text-t9 hover:bg-t2 hide-focus-ring ring-focus",children:s.jsx(r,{name:"XCrossCloseMedium",size:"s"})})]})});function y({isOpen:t,onClose:r,title:p,width:m="w-[640px]",children:u}){const h=e(),f=n.useCallback(e=>{e||r()},[r]);return s.jsx(i,{open:t,onOpenChange:f,children:s.jsxs(l,{children:[s.jsx(o,{forceRender:!0,className:"fixed inset-0 z-50 bg-always-black/50 backdrop-blur-[2px] draggable-none"}),s.jsx(c,{className:`epitaxy-root fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2 ${m} max-w-[calc(100vw-2rem)] max-h-[calc(100vh-4rem)] draggable-none outline-none`,children:s.jsxs("div",{className:"relative isolate rounded-r6 flex flex-col max-h-[inherit]",children:[s.jsx(x,{elevation:"popover"}),s.jsxs("div",{className:"flex items-center justify-between gap-g4 px-[24px] pt-[24px]",children:[s.jsx(d,{className:"text-heading-semibold text-t9",children:p}),s.jsx(a,{size:"small",variant:"uncontained",icon:"XCrossCloseMedium","aria-label":h.formatMessage({defaultMessage:"Close",id:"rbrahOGMC3"}),onClick:r})]}),s.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto px-[24px] pb-[24px] pt-[16px]",children:u})]})})]})})}function C({onBack:e,title:n,actions:a}){return s.jsxs("div",{"data-top-left":!0,className:"relative flex items-center h-[32px] pl-[16px] pr-[16px]",children:[s.jsx("div",{className:"draggable absolute inset-0 -z-[1]","aria-hidden":!0}),s.jsxs("div",{className:"relative z-[1] flex items-center min-w-0 draggable-none",children:[s.jsxs("button",{type:"button",onClick:e,className:"-ml-[4px] inline-flex items-center gap-g4 h-base px-p3 rounded-base border-0 cursor-default select-none outline-none hide-focus-ring ring-focus min-w-0 bg-fill-uncontained-default text-t9 text-body hover:bg-fill-uncontained-hover",children:[s.jsx(p,{size:16,"aria-hidden":!0}),s.jsx(t,{defaultMessage:"Routines",id:"Dbc6XaCcol"})]}),s.jsx("span",{className:"text-body text-t7 select-none shrink-0 pr-[4px]","aria-hidden":!0,children:"/"}),s.jsx("span",{className:"truncate text-body text-t7 select-none min-w-0",children:n})]}),a&&s.jsx("div",{className:"relative z-[1] ml-auto flex items-center gap-g8 pr-p5 shrink-0 draggable-none",children:a})]})}function w({children:e}){return s.jsx("div",{className:"flex flex-wrap gap-g3",children:e})}export{w as C,f as D,y as E,b as P,C as R,g as S,N as a,h as b,j as c,v as d,u as r};
