PageSourceSearch

https://spike-vue-main.netlify.app/assets/VNavigationDrawer-ssRDqp-o.js

js spike-vue-main.netlify.app collected 2026-10-03 11:27:32 UTC 9,644 bytes, 1 lines download raw bytes

1import{C as e,H as t,Ir as n,J as r,Jn as i,Lr as a,Qn as o,Y as s,Yn as c,_ as l,a as u,b as d,d as f,di as p,dn as m,en as h,f as g,fi as _,hi as v,i as y,jt as b,m as x,nr as S,p as C,si as w,un as T,vi as E,w as D,xn as O}from"./resizeObserver-BbJgXUjD.js";import{A as k,C as A,D as j,E as ee,F as te,I as M,O as ne,T as N,X as re,Y as ie,a as ae,w as P}from"./ripple-Bb3WkOsC.js";import{a as F,c as I,o as L,s as R}from"./VOverlay-COXy4JZD.js";import{r as oe}from"./VAvatar-sTStluqN.js";import{a as se,i as z}from"./display-ChLgcmqu.js";import{o as ce,r as B}from"./layout-Bah6Enxx.js";import{t as le}from"./ssrBoot-DMnbXmIj.js";import{t as ue}from"./scopeId-B2iGown_.js";function de({rootEl:e,isSticky:t,layoutItemStyles:r}){let i=v(!1),a=v(0),c=T(()=>{let e=typeof i.value==`boolean`?`top`:i.value;return[t.value?{top:`auto`,bottom:`auto`,height:void 0}:void 0,i.value?{[e]:s(a.value)}:{top:r.value.top}]});S(()=>{n(t,e=>{e?window.addEventListener(`scroll`,u,{passive:!0}):window.removeEventListener(`scroll`,u)},{immediate:!0})}),o(()=>{window.removeEventListener(`scroll`,u)});let l=0;function u(){let t=l>window.scrollY?`up`:`down`,n=e.value.getBoundingClientRect(),o=parseFloat(r.value.top??0),s=window.scrollY-Math.max(0,a.value-o),c=n.height+Math.max(a.value,o)-window.scrollY-window.innerHeight,u=parseFloat(getComputedStyle(e.value).getPropertyValue(`--v-body-scroll-y`))||0;n.height<window.innerHeight-o?(i.value=`top`,a.value=o):t===`up`&&i.value===`bottom`||t===`down`&&i.value===`top`?(a.value=window.scrollY+n.top-u,i.value=!0):t===`down`&&c<=0?(a.value=0,i.value=`bottom`):t===`up`&&s<=0&&(u?i.value!==`top`&&(a.value=-s+u+o,i.value=`top`):(a.value=n.top+s,i.value=`top`)),l=window.scrollY}return{isStuck:i,stickyStyles:c}}var V=100,H=20;function U(e){return(e<0?-1:1)*Math.sqrt(Math.abs(e))*1.41421356237}function W(e){if(e.length<2)return 0;if(e.length===2)return e[1].t===e[0].t?0:(e[1].d-e[0].d)/(e[1].t-e[0].t);let t=0;for(let n=e.length-1;n>0;n--){if(e[n].t===e[n-1].t)continue;let r=U(t),i=(e[n].d-e[n-1].d)/(e[n].t-e[n-1].t);t+=(i-r)*Math.abs(i),n===e.length-1&&(t*=.5)}return U(t)*1e3}function G(){let e={};function n(n){Array.from(n.changedTouches).forEach(r=>{(e[r.identifier]??(e[r.identifier]=new t(H))).push([n.timeStamp,r])})}function r(t){Array.from(t.changedTouches).forEach(t=>{delete e[t.identifier]})}function i(t){let n=e[t]?.values().reverse();if(!n)throw Error(`No samples for touch id ${t}`);let r=n[0],i=[],a=[];for(let e of n){if(r[0]-e[0]>V)break;i.push({t:e[0],d:e[1].clientX}),a.push({t:e[0],d:e[1].clientY})}return{x:W(i),y:W(a),get direction(){let{x:e,y:t}=this,[n,r]=[Math.abs(e),Math.abs(t)];return n>r&&e>=0?`right`:n>r&&e<=0?`left`:r>n&&t>=0?`down`:r>n&&t<=0?`up`:K()}}}return{addMovement:n,endTouch:r,getVelocity:i}}function K(){throw Error()}function fe({el:e,isActive:t,isTemporary:n,width:i,touchless:s,position:c}){S(()=>{window.addEventListener(`touchstart`,x,{passive:!0}),window.addEventListener(`touchmove`,E,{passive:!1}),window.addEventListener(`touchend`,D,{passive:!0})}),o(()=>{window.removeEventListener(`touchstart`,x),window.removeEventListener(`touchmove`,E),window.removeEventListener(`touchend`,D)});let l=T(()=>[`left`,`right`].includes(c.value)),{addMovement:u,endTouch:d,getVelocity:f}=G(),p=!1,m=v(!1),h=v(0),g=v(0),_;function y(e,t){return(c.value===`left`?e:c.value===`right`?document.documentElement.clientWidth-e:c.value===`top`?e:c.value===`bottom`?document.documentElement.clientHeight-e:q())-(t?i.value:0)}function b(e,t=!0){let n=c.value===`left`?(e-g.value)/i.value:c.value===`right`?(document.documentElement.clientWidth-e-g.value)/i.value:c.value===`top`?(e-g.value)/i.value:c.value===`bottom`?(document.documentElement.clientHeight-e-g.value)/i.value:q();return t?r(n):n}function x(e){if(s.value)return;let r=e.changedTouches[0].clientX,a=e.changedTouches[0].clientY,o=c.value===`left`?r<25:c.value===`right`?r>document.documentElement.clientWidth-25:c.value===`top`?a<25:c.value===`bottom`?a>document.documentElement.clientHeight-25:q(),f=t.value&&(c.value===`left`?r<i.value:c.value===`right`?r>document.documentElement.clientWidth-i.value:c.value===`top`?a<i.value:c.value===`bottom`?a>document.documentElement.clientHeight-i.value:q());
1(o||f||t.value&&n.value)&&(_=[r,a],g.value=y(l.value?r:a,t.value),h.value=b(l.value?r:a),p=g.value>-20&&g.value<80,d(e),u(e))}function E(e){let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(p){if(!e.cancelable){p=!1;return}let r=Math.abs(t-_[0]),i=Math.abs(n-_[1]);(l.value?r>i&&r>3:i>r&&i>3)?(m.value=!0,p=!1):(l.value?i:r)>3&&(p=!1)}if(!m.value)return;e.preventDefault(),u(e);let r=b(l.value?t:n,!1);h.value=Math.max(0,Math.min(1,r)),r>1?g.value=y(l.value?t:n,!0):r<0&&(g.value=y(l.value?t:n,!1))}function D(e){if(p=!1,!m.value)return;u(e),m.value=!1;let n=f(e.changedTouches[0].identifier),r=Math.abs(n.x),i=Math.abs(n.y);t.value=(l.value?r>i&&r>400:i>r&&i>3)?n.direction===({left:`right`,right:`left`,top:`down`,bottom:`up`}[c.value]||q()):h.value>.5}let O=T(()=>m.value?{transform:c.value===`left`?`translateX(calc(-100% + ${h.value*i.value}px))`:c.value===`right`?`translateX(calc(100% - ${h.value*i.value}px))`:c.value===`top`?`translateY(calc(-100% + ${h.value*i.value}px))`:c.value===`bottom`?`translateY(calc(100% - ${h.value*i.value}px))`:q(),transition:`none`}:void 0);return C(m,()=>{let t=e.value?.style.transform??null,n=e.value?.style.transition??null;a(()=>{e.value?.style.setProperty(`transform`,O.value?.transform||`none`),e.value?.style.setProperty(`transition`,O.value?.transition||null)}),w(()=>{e.value?.style.setProperty(`transform`,t),e.value?.style.setProperty(`transition`,n)})}),{isDragging:m,dragProgress:h,dragStyles:O}}function q(){throw Error()}var J=[`start`,`end`,`left`,`right`,`top`,`bottom`],Y=D({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:`start`,validator:e=>J.includes(e)},sticky:Boolean,...N(),...e(),...R(),...z({mobile:null}),...A(),...B(),...j(),...b(F(),[`disableInitialFocus`]),...M({tag:`nav`}),...y()},`VNavigationDrawer`),X=l()({name:`VNavigationDrawer`,props:Y(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,{attrs:t,emit:r,slots:a}){let{isRtl:o}=f(),{themeClasses:s}=u(e),{borderClasses:l}=ee(e),{backgroundColorClasses:y,backgroundColorStyles:b}=k(()=>e.color),{elevationClasses:S}=P(e),{displayClasses:w,mobile:D}
1=se(e),{roundedClasses:A,roundedStyles:j}=ne(e),M=ae(),N=g(e,`modelValue`,null,e=>!!e),{ssrBootStyles:F}=le(),{scopeId:R}=ue(),z=_(),B=v(!1),{runOpenDelay:V,runCloseDelay:H}=I(e,e=>{B.value=e}),U=T(()=>e.rail&&e.expandOnHover&&B.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),W=T(()=>ie(e.location,o.value)),G=E(()=>e.persistent),K=T(()=>!e.permanent&&(D.value||e.temporary)),q=T(()=>e.sticky&&!K.value&&W.value!==`bottom`);L(e,{isActive:N,localTop:K,contentEl:z}),C(()=>e.expandOnHover&&e.rail!=null,()=>{n(B,e=>r(`update:rail`,!e))}),C(()=>!e.disableResizeWatcher,()=>{n(K,t=>!e.permanent&&c(()=>N.value=!t))}),C(()=>!e.disableRouteWatcher&&!!M,()=>{n(M.currentRoute,()=>K.value&&(N.value=!1))}),n(()=>e.permanent,e=>{e&&(N.value=!0)}),e.modelValue==null&&!K.value&&(N.value=e.permanent||!D.value);let{isDragging:J,dragProgress:Y}=fe({el:z,isActive:N,isTemporary:K,width:U,touchless:E(()=>e.touchless),position:W}),X=T(()=>{let t=K.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):U.value;return J.value?t*Y.value:t}),{layoutItemStyles:Z,layoutItemScrimStyles:pe}=ce({id:e.name,order:T(()=>parseInt(e.order,10)),position:W,layoutSize:X,elementSize:U,active:p(N),disableTransitions:E(()=>J.value),absolute:T(()=>e.absolute||q.value&&typeof Q.value!=`string`)}),{isStuck:Q,stickyStyles:me}=de({rootEl:z,isSticky:q,layoutItemStyles:Z}),$=k(()=>typeof e.scrim==`string`?e.scrim:null),he=T(()=>({...J.value?{opacity:Y.value*.2,transition:`none`}:void 0,...pe.value}));return d({VList:{bgColor:`transparent`}}),x(()=>{let n=a.image||e.image;return m(h,null,[O(e.tag,i({ref:z,onMouseenter:V,onMouseleave:H,class:[`v-navigation-drawer`,`v-navigation-drawer--${W.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":B.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":K.value,"v-navigation-drawer--persistent":G.value,"v-navigation-drawer--active":N.value,"v-navigation-drawer--sticky":q.value},s.value,y.value,l.value,w.value,S.value,A.value,e.class],style:[b.value,Z.value,F.value,me.value,j.value,e.style],inert:!N.value},R,t),{default:()=>[n&&m(`div`,{key:`image`,class:`v-navigation-drawer__img`},[a.image?O(te,{key:`image-defaults`,disabled:!e.image,defaults:{VImg:{alt:``,cover:!0,height:`inherit`,src:e.image}}},a.image):O(oe,{key:`image-img`,alt:``,cover:!0,height:`inherit`,src:e.image},null)]),a.prepend&&m(`div`,{class:`v-navigation-drawer__prepend`},[a.prepend?.()]),m(`div`,{class:`v-navigation-drawer__content`},[a.default?.()]),a.append&&m(`div`,{class:`v-navigation-drawer__append`},[a.append?.()])]}),O(re,{name:`fade-transition`},{default:()=>[K.value&&(J.value||N.value)&&!!e.scrim&&m(`div`,i({class:[`v-navigation-drawer__scrim`,$.backgroundColorClasses.value],style:[he.value,$.backgroundColorStyles.value],onClick:()=>{G.value||(N.value=!1)}},R),null)]})])}),{isStuck:Q}}});export{X as t};

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.