vendor: 2,356 bytes, lines 1-2
1import{J as e,M as t,_t as n,d as r,gt as i,wt as a}from"./runtime-core.esm-bundler-UheJ8LN3.js";import{B as o,ct as s,f as c,l,z as u}from"./tag-Btqo1t2a.js";import{t as d}from"./deepEqual-BCAkay3n.js";var f=[`top`,`bottom`],p=[`start`,`end`,`left`,`right`];function m(e,t){let[n,r]=e.split(` `);return r||=o(f,n)?`start`:o(p,n)?`top`:`center`,{side:h(n,t),align:h(r,t)}}function h(e,t){return e===`start`?t?`right`:`left`:e===`end`?t?`left`:`right`:e}function g(e){return{side:{center:`center`,top:`bottom`,bottom:`top`,left:`right`,right:`left`}[e.side],align:e.align}}function _(e){return{side:e.side,align:{center:`center`,top:`bottom`,bottom:`top`,left:`right`,right:`left`}[e.align]}}function v(e){return{side:e.align,align:e.side}}function y(e){return o(f,e.side)?`y`:`x`}function b(){let e=l(`useRoute`);return r(()=>e?.proxy?.$route)}function x(){return l(`useRouter`)?.proxy?.$router}function S(t,i){let o=e(`RouterLink`),s=a(()=>!!(t.href||t.to)),c=r(()=>s?.value||u(i,`click`)||u(t,`click`));if(typeof o==`string`||!(`useLink`in o)){let e=a(()=>t.href);return{isLink:s,isRouterLink:a(()=>!1),isClickable:c,href:e,linkProps:n({href:e}),route:a(()=>void 0),navigate:a(()=>void 0)}}let l=o.useLink({to:a(()=>t.to||``),replace:a(()=>t.replace)}),f=r(()=>t.to?l:void 0),p=b(),m=r(()=>f.value?t.exact?p.value?f.value.isExactActive?.value&&d(f.value.route.value.query,p.value.query):f.value.isExactActive?.value??!1:f.value.isActive?.value??!1:!1),h=r(()=>t.to?f.value?.route.value.href:t.href);return{isLink:s,isRouterLink:a(()=>!!t.to),isClickable:c,isActive:m,route:a(()=>f.value?.route.value),navigate:a(()=>f.value?.navigate),href:h,linkProps:n({href:h,"aria-current":a(()=>m.value?`page`:void 0),"aria-disabled":a(()=>t.disabled&&s.value?`true`:void 0),tabindex:a(()=>t.disabled&&s.value?`-1`:void 0)})}}var C=c({href:String,replace:Boolean,to:[String,Object],exact:Boolean},`router`),w=!1;function T(e,n){let r=!1,a,o;s&&e?.beforeEach&&(t(()=>{window.addEventListener(`popstate`,c),a=e.beforeEach(()=>w?r?n():void 0:(w=!0,new Promise(e=>{setTimeout(()=>e(r?n():void 0))}))),o=e?.afterEach(()=>{w=!1})}),i(()=>{window.removeEventListener(`popstate`,c),a?.(),o?.()}));function c(e){e.state?.replaced||(r=!0,setTimeout(()=>r=!1))}}export{_ as a,y as c,x as i,m as l,T as n,v as o,S as r,g as s,C as t}; 2//# sourceMappingURL=router-DrvamR54.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.