PageSourceSearch

https://www.tepari.com/_nuxt/sidebar-layout.zVTi539k.js

js tepari.com collected 2026-09-24 12:56:49 UTC 1,746 bytes, 1 lines download raw bytes

1import{_ as x}from"./dialog.Pq96XFSc.js";import{l as h,ar as E,z as H,ax as B,az as N,q as y,n as u,ag as c,at as d,Y as S,p as v,o as $,aJ as z,ad as f,a6 as _}from"./twicpics.kp9y4tDL.js";import{u as C}from"./header.BeIKJF1V.js";import{k as g}from"./index.C6bhZiTs.js";import{a0 as M,f as T}from"./entry.AuT8LTBE.js";import"./lodash.CcdD_bHh.js";import"./floating-ui.Dku9-MRR.js";import"./gsap.D7HWwmoQ.js";import"./mitt.DJ65BbbF.js";function V(m){const{y:n}=g();return h(()=>{const t=E(m);if(!t)return 0;const a=t.offsetTop,s=a+t.offsetHeight,r=n.value,l=r+window.innerHeight,o=r<a?a-r:0,i=l>s?l-s:0;return window.innerHeight-(o+i)})}const q={class:"sidebar-layout__main"},A={key:0,class:"sidebar-layout__aside"},I=H({__name:"sidebar-layout",setup(m){const{$emitter:n}=B(),{headerHeight:t,headerOffset:a}=C(),{y:s}=g(),r=M(),l=N(),o=f(),i=f(),b=f(),p=V(i),k=h(()=>{if(!p.value)return{"max-height":"none"};let e=t.value-Math.abs(a.value);return t.value>s.value&&(e=e-(t.value-s.value)),{"max-height":`${p.value-e}px`}});return n.on("toggle:sidebar",e=>{e?o.value?.open():o.value?.close()}),r.beforeEach(()=>o.value?.close()),(e,J)=>{const w=x;return _(),y("div",{ref_key:"layoutEl",ref:i,class:"sidebar-layout container-fluid relative h-full"},[u("main",q,[c(e.$slots,"default",{},void 0,!0)]),d(l).aside?(_(),y("aside",A,[u("div",{class:"sidebar-layout__sticky",style:S(d(k))},[u("div",{ref_key:"layoutNavEl",ref:b,class:"sidebar-layout__nav py-40 pr-20"},[c(e.$slots,"aside",{},void 0,!0)],512)],4)])):v("",!0),d(l).aside?(_(),$(w,{key:1,id:"sidebar-dialog",ref_key:"dialogEl",ref:o,type:"drawer"},{default:z(()=>[c(e.$slots,"aside",{},void 0,!0)]),_:3},512)):v("",!0)],512)}}}),K=T(I,[["__scopeId","data-v-f9325c4d"]]);export{K as default};

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.