import{X as e,bt as t,vt as n}from"./xY0c-UfG.js";import{r}from"./Bym3iIKr.js";import"./_zekciZc.js";import{A as i}from"./BW-sf0N4.js";function a(){let a=t(null),o=t(null),s=t(null),c=t(null),l=t(null),u=t(null),d=t(`entity`),f=t(null),p=t(null),m=t(null),h=t(`team`),g=t(`studiograph`),_=t(!1),v=t(!1),y=t(!1);function b(t,n){e(a)&&(e(a)!==t||e(s)!==n)&&i(e(a)).catch(()=>{})}function x(e,t,r,i){b(e,r),n(a,e,!0),n(o,t,!0),n(s,r,!0),n(c,i??null,!0),n(l,null),n(u,null)}function S(t,r=``){e(a)&&e(a)!==t&&i(e(a)).catch(()=>{}),n(a,t,!0),n(o,null),n(s,null),n(c,null),n(l,null),n(u,r,!0)}function C(){n(d,`entity`)}function w(){n(d,`graph`)}function T(e){n(d,`view`),n(f,e,!0)}function E(e,t,r){n(m,e??`profile`,!0),t&&n(h,t,!0),r&&n(g,r,!0),n(v,!1)}function D(){n(m,null),typeof window<`u`&&window.location.pathname.startsWith(`/settings`)&&r(`/`)}function O(t,r,i){e(s)===i&&e(a)===t?(n(a,null),n(o,null),n(s,null)):(n(a,t,!0),n(o,r,!0),n(s,i,!0)),n(c,null),n(l,null),n(u,null)}function k(e){n(l,e,!0)}function A(){e(a)&&i(e(a)).catch(()=>{}),n(a,null),n(o,null),n(s,null),n(c,null),n(l,null),n(u,null)}return{get selectedRepo(){return e(a)},get selectedType(){return e(o)},get selectedId(){return e(s)},get selectedSubPath(){return e(c)},get selectedArtifactTarget(){return e(l)},get selectedFolderPath(){return e(u)},get activeView(){return e(d)},get entityPath(){return e(a)&&e(o)&&e(s)?`/${e(a)}/${e(o)}/${e(s)}`:null},get hoveredEntityId(){return e(p)},set hoveredEntityId(e){n(p,e,!0)},get settingsPanel(){return e(m)},set settingsPanel(e){n(m,e,!0)},get workspaceTab(){return e(h)},set workspaceTab(e){n(h,e,!0)},get integrationsTab(){return e(g)},set integrationsTab(e){n(g,e,!0)},get hideSidebar(){return e(_)},set hideSidebar(e){n(_,e,!0)},get mobileSidebarOpen(){return e(v)},set mobileSidebarOpen(e){n(v,e,!0)},get backOriginRecapture(){return e(y)},set backOriginRecapture(e){n(y,e,!0)},select:x,selectRepo:S,deselect:A,selectOnGraph:O,setSelectedArtifactTarget:k,showEntity:C,showGraph:w,get activeViewId(){return e(f)},showView:T,showSettings:E,closeSettings:D}}var o=a();export{o as t};