PageSourceSearch

https://outfit7.com/_nuxt/Kg39893i.js

js outfit7.com collected 2026-10-09 22:41:14 UTC 3,569 bytes, 2 lines download raw bytes

1import{_ as R}from"./CDs_bgk3.js";import{d as I,j as H,x as q,u as z,r as a,o as T,a as i,e as f,b as d,c as L,q as b,w as M,f as p,F as N,y as V,t as F,a4 as C,R as j,v as A}from"./BgOPsrZ5.js";import{u as G}from"./C9X-TiiY.js";import{i as J}from"./C-6AHoV1.js";import{s as K}from"./DCGO9W7S.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new s.Error().stack;c&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[c]="9265f415-d4d1-4d57-89cd-ec32750b9b4d",s._sentryDebugIdIdentifier="sentry-dbid-9265f415-d4d1-4d57-89cd-ec32750b9b4d")}catch{}})();const O={class:"relative my-6 lg:my-24"},P={class:"flex items-center space-x-10"},Q=["href","onClick"],te=I({__name:"sticky-menu",props:{items:{}},setup(s){const c=s,{isDesktop:u}=G(),E=H(),S=q(),{$lenisScroll:_}=z(),v=a(),m=a(),k=a([]),r=a("static");T(()=>{c.items.forEach(e=>{J(e.target,()=>{const t=k.value.find(g=>g.target===e.target);if(t)return l.value={offsetLeft:t.el.offsetLeft,clientWidth:t.el.clientWidth,opacity:1},()=>""})}),K(({y:e})=>{if(!v.value)return;const t=document.querySelector("footer");v.value.getBoundingClientRect().top>=t.getBoundingClientRect().top?(r.value="hidden",l.value.opacity=0):e.current+window.innerHeight-m.value.getBoundingClientRect().height<=m.value.getBoundingClientRect().top+e.current?(r.value="static",l.value.opacity=0):r.value="fixed"})});const W=e=>{S.push({hash:e.key,query:E.query}),_(e.key)},x=a(null),B=a(),l=a({offsetLeft:0,clientWidth:0,opacity:0}),y=a(),o=a({offsetLeft:0,clientWidth:0,opacity:0});function w(e){if(e){clearTimeout(x.value);const t=e.target;o.value.opacity===0?(o.value={offsetLeft:t.offsetLeft,clientWidth:t.clientWidth,opacity:0},setTimeout(()=>{y.value.classList.add("duration-300"),o.value={...o.value,opacity:1}},10)):o.value={offsetLeft:t.offsetLeft,clientWidth:t.clientWidth,opacity:1}}else x.value=setTimeout(()=>{y.value.classList.remove("duration-300"),o.value={...o.value,opacity:0}
1},200)}return(e,t)=>{const g=R,$=A;return i(),f("div",O,[d(u)?b("",!0):(i(),L(g,{key:0,items:e.items.map(n=>({key:n.target,label:n.label})),"model-value":{key:"default",label:"Scroll to"},placeholder:"Scroll to",class:"mx-6",onChange:W},null,8,["items"])),d(u)?(i(),f("div",{key:1,ref_key:"staticEl",ref:m,class:"h-[100px] hidden lg:block"},null,512)):b("",!0),d(u)?(i(),L($,{key:2,class:j(["bottom-0 left-0 right-0 z-50 items-center hidden mx-auto mb-10 duration-500 lg:flex",[r.value==="hidden"?"opacity-0":"",r.value==="static"?"absolute":"fixed"]])},{default:M(()=>[p("div",{ref_key:"fixedEl",ref:v,class:"relative p-2 mx-auto bg-gray-500 bg-opacity-50 rounded-full backdrop-blur-sm"},[p("div",P,[(i(!0),f(N,null,V(e.items,(n,D)=>(i(),f("a",{ref_for:!0,ref:h=>k.value.push({el:h,target:n.target}),key:D,class:"px-4 py-2 text-lg font-normal text-gray-200",href:n.target,onClick:h=>d(_)(n.target),onMouseover:w,onMouseleave:t[0]||(t[0]=h=>w())},F(n.label),41,Q))),128))]),p("div",{ref_key:"submenuHoverElement",ref:y,class:"absolute h-10 -translate-y-1/2 bg-gray-100 rounded-full pointer-events-none top-1/2 bg-opacity-10",style:C({left:`${o.value.offsetLeft}px`,width:`${o.value.clientWidth}px`,opacity:o.value.opacity})},null,4),p("div",{ref_key:"activeElement",ref:B,class:"absolute h-10 duration-300 -translate-y-1/2 bg-gray-100 rounded-full pointer-events-none top-1/2 bg-opacity-10",style:C({left:`${l.value.offsetLeft}px`,width:`${l.value.clientWidth}px`,opacity:l.value.opacity})},null,4)],512)]),_:1},8,["class"])):b("",!0)])}}});export{te as _};
2//# sourceMappingURL=Kg39893i.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.