import{t as e}from"./jsx-runtime-CiQ1k8xo.js";import{lt as t}from"./vscode-api-DjORcpSo.js";import{r as n}from"./lib-MoKmYgcO.js";import{t as r}from"./globe-oc2o98t5.js";import{t as i}from"./building-8ziqs-Lq.js";import{t as a}from"./lock-CqRxeatR.js";import{p as o}from"./appgen-url-CLpbcJhA.js";import{t as s}from"./members-a_ywYb_D.js";var c=t(),l=e();function u(e){let t=(0,c.c)(13),n,u;t[0]===e?(n=t[1],u=t[2]):({accessPolicy:n,...u}=e,t[0]=e,t[1]=n,t[2]=u);let d;t[3]===n?d=t[4]:(d=o(n),t[3]=n,t[4]=d);let{accessMode:f,groupCount:p,userCount:m}=d;switch(f){case`admins_only`:case`custom`:{let e;return t[5]!==p||t[6]!==u||t[7]!==m?(e=m>0||p>0?(0,l.jsx)(s,{...u}):(0,l.jsx)(a,{...u}),t[5]=p,t[6]=u,t[7]=m,t[8]=e):e=t[8],e}case`workspace_all`:{let e;return t[9]===u?e=t[10]:(e=(0,l.jsx)(i,{...u}),t[9]=u,t[10]=e),e}case`public`:{let e;return t[11]===u?e=t[12]:(e=(0,l.jsx)(r,{...u}),t[11]=u,t[12]=e),e}}}var d=n({groups:{id:`appgenAccess.state.visibleToGroups`,defaultMessage:`Visible to {groupCount, plural, one {# group} other {# groups}}`,description:`Label for a site shared with one or more groups`},owner_only:{id:`appgenAccess.state.onlyVisibleToYou`,defaultMessage:`Only visible to you`,description:`Label for a site whose access is limited to its owner`},people:{id:`appgenAccess.state.visibleToPeople`,defaultMessage:`Visible to {userCount, plural, one {# person} other {# people}}`,description:`Label for a site shared with one or more people`},people_and_groups:{id:`appgenAccess.state.visibleToPeopleAndGroups`,defaultMessage:`Visible to people and groups`,description:`Label for a site shared with both people and groups`},public:{id:`appgenAccess.state.visibleToEveryone`,defaultMessage:`Visible to everyone`,description:`Label for a site shared publicly on the internet`},workspace_all:{id:`appgenAccess.state.visibleToWorkspace`,defaultMessage:`Visible to your workspace`,description:`Label for a site shared with anyone in the workspace`}}),f=n({groups:{id:`appgenAccess.shortState.groups`,defaultMessage:`{groupCount, plural, one {# group} other {# groups}}`,description:`Concise label for a site shared with one or more groups`},owner_only:{id:`appgenAccess.shortState.ownerOnly`,defaultMessage:`Only you`,description:`Concise label for a site whose access is limited to its owner`},people:{id:`appgenAccess.shortState.people`,defaultMessage:`{userCount, plural, one {# person} other {# people}}`,description:`Concise label for a site shared with one or more people`},people_and_groups:{id:`appgenAccess.shortState.peopleAndGroups`,defaultMessage:`People and groups`,description:`Concise label for a site shared with both people and groups`},public:{id:`appgenAccess.shortState.public`,defaultMessage:`Everyone`,description:`Concise label for a site shared publicly on the internet`},workspace_all:{id:`appgenAccess.shortState.workspace`,defaultMessage:`Your workspace`,description:`Concise label for a site shared with anyone in the workspace`}}),p=n({groups:{id:`appgenAccess.siteState.visibleToGroups`,defaultMessage:`This site is visible to {groupCount, plural, one {# group} other {# groups}}`,description:`Tooltip for a site link shared with one or more groups`},owner_only:{id:`appgenAccess.siteState.onlyVisibleToYou`,defaultMessage:`This site is only visible to you`,description:`Tooltip for a site link whose access is limited to its owner`},people:{id:`appgenAccess.siteState.visibleToPeople`,defaultMessage:`This site is visible to {userCount, plural, one {# person} other {# people}}`,description:`Tooltip for a site link shared with one or more people`},people_and_groups:{id:`appgenAccess.siteState.visibleToPeopleAndGroups`,defaultMessage:`This site is visible to people and groups`,description:`Tooltip for a site link shared with both people and groups`},public:{id:`appgenAccess.siteState.visibleToEveryone`,defaultMessage:`This site is visible to everyone`,description:`Tooltip for a site link shared publicly on the internet`},workspace_all:{id:`appgenAccess.siteState.visibleToWorkspace`,defaultMessage:`This site is visible to your workspace`,description:`Tooltip for a site link shared with anyone in the workspace`}});function m(e){return d[_(e)]}function h(e){return f[_(e)]}function g(e){return p[_(e)]}function _({accessMode:e,groupCount:t,userCount:n}){switch(e){case`admins_only`:case`custom`:return n>0&&t>0?`people_and_groups`:n>0?`people`:t>0?`groups`:`owner_only`;case`public`:case`workspace_all`:return e}}export{u as i,h as n,g as r,m as t};
//# sourceMappingURL=appgen-access-state-messages-D3WpalAC.js.map