import{a7 as m,j as e,a8 as x,bf as j,bh as h,S as c,h as v,T as S}from"./vendor-ClLR6ncd.js";import{y as g,p as b,m as _,b as I,W as T}from"./index-OtVJl4GC.js";import{f as C}from"./lodash-ZyeDnt0e.js";import{d as M}from"./Person-UulRDhfg.js";import{d as R}from"./Storage-DvymGqui.js";import{M as y}from"./MenuItem-CCerWMyq.js";var t={},D=x;Object.defineProperty(t,"__esModule",{value:!0});var u=t.default=void 0,L=D(m()),P=e;u=t.default=(0,L.default)((0,P.jsx)("path",{d:"M12 11.55C9.64 9.35 6.48 8 3 8v11c3.48 0 6.64 1.35 9 3.55 2.36-2.19 5.52-3.55 9-3.55V8c-3.48 0-6.64 1.35-9 3.55M12 8c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3"}),"LocalLibrary");const V=(s,o)=>r=>({...r,name:e.jsxs(c,{component:"span",sx:{margin:0},spacing:1,alignItems:"center",direction:"row",children:[e.jsx(S,{title:o(r),children:e.jsx(s,{})}),e.jsx(T,{label:r.name})]})});function W({type:s}){if(s==="default"||s==="site")return e.jsx(u,{});if(s==="user")return e.jsx(M,{});if(s==="repository")return e.jsx(R,{})}const n="user";function q({type:s}){return e.jsxs(c,{direction:"row",spacing:1,alignItems:"center",children:[e.jsx(W,{type:s}),e.jsx(v,{fontSize:"inherit",children:C(s)})]})}function $({value:s,setter:o,globalScopeLabel:r="default"}){const l=g(b.super),d=_(),{repoConnection:p}=I(),i=[n,...d||!p?[]:["repository"],...l?[r]:[]],f=i.includes(s)?s:n;return e.jsx(j,{variant:"standard",fullWidth:!0,children:e.jsx(h,{value:f,onChange:a=>o(a.target.value),children:i.map(a=>e.jsx(y,{value:a,children:e.jsx(q,{type:a})},a))})})}export{$ as S,q as a,V as b,u as c,n as d};
