import{d as v,a,L as g,W as R,af as d,at as h}from"./index-OSKNspXo.js";const S=v("navigation",()=>{const n=a(""),r=a(""),s=a(null),o=a(!1),c=g();async function i(e){var t;await u(e),(t=c.state.global.connectedUser)!=null&&t.device||await R.push({name:"Reference"})}async function u(e){let t=await d.get(e);o.value=!0,s.value=t,await c.dispatch("global/getReference",e)}function l(e){r.value=n.value,n.value=e}function f(e,t){return h("a",{class:"cursor-pointer",style:"text-decoration: underline;",onClick:()=>i(e)},t)}return{currentPath:n,previousPath:r,reference:s,isRefSelect:o,navigateToReference:i,getReference:u,setCurrentPath:l,getReferenceLink:f}});export{S as u};
//# sourceMappingURL=navigationStore-BJ2PnMax.js.map
