import{d as y,aJ as k,a3 as l,aw as v,bm as b,c as x,e as c,o as u,bL as _,j as t,T as g,I as U,aR as B,w as p,U as C,S,d3 as j,y as w}from"./DPurtOtd.js";const M=y({__name:"UiPartsStickyNavigation",props:{modelValue:{type:Boolean,default:!1},mobileUnsticky:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(a,{emit:d}){const m=a,r=d,o=k(),f=j("positionY"),n=l(null),i=l();v(()=>{b(()=>{i.value=n.value.$el.getBoundingClientRect().top})});const s=x(()=>{const e=m.mobileUnsticky&&o.value?!1:f.value>=i.value;return r("update:modelValue",e),e});return(e,T)=>(u(),c(_(t(s)?g:U),{ref_key:"el",ref:n,class:B(["ui-parts-sticky-navigation",{sticky:t(s),"is-sticky":!(a.mobileUnsticky&&t(o))}]),padding:"0"},{default:p(()=>[(u(),c(_(t(s)?C:"div"),null,{default:p(()=>[S(e.$slots,"default",{},void 0,!0)]),_:3}))]),_:3},8,["class"]))}}),h=Object.assign(w(M,[["__scopeId","data-v-468d3569"]]),{__name:"UiPartsStickyNavigation"});export{h as _};

AltStyle によって変換されたページ (->オリジナル) /