iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://ecommerceDB.com/_nuxt/BKG-dt3e.js
import{ab as $,r as b,aB as P,a3 as D,j as V,B as j,z,L as G,ah as M,k as q,az as E,d as W,D as A,o as h,G as k,c as F,w as S,v as w,t as I,at as U,e as g,n as O,O as T,f as l,ae as C,V as H,W as Y,_ as y}from"./llFuKhWI.js";import{u as R}from"./BYxIZdj_.js";import{s as J,a as K}from"./BIPg2yNz.js";const Q={ids:[],ignoreBottomIntersections:[],offsetElementSelector:$.sectionNav},L=b(""),X=(v={})=>{const n={...Q,...v},_=R(),{y:u}=P(),d=[...n.ids].reverse(),r=b(),i=b(""),m=D(n.ids.reduce((e,t)=>({...e,[t]:null}),{})),a=V("navbarHeight",()=>0),f=()=>{let e=0;if(n.offsetElementSelector){const t=document.querySelector(n.offsetElementSelector);e=(t==null?void 0:t.offsetHeight)??0}return _.isDesktopOrGreater.value?a.value+e:a.value},p=e=>{e.forEach(o=>{m[o.target.id]=o});const t=Object.values(m).reduce((o,s)=>{var N,B;return s===null||n.ignoreBottomIntersections.includes(s.target.id)&&(((N=s.rootBounds)==null?void 0:N.top)??0)((o==null?void 0:o.intersectionRatio)??0)?s:o},null);i.value=(t==null?void 0:t.target.id)??""},c=()=>{E(()=>{{const e={rootMargin:`-${f()}px 0% -50%`,threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]};r.value=new IntersectionObserver(p,n.observerOptions??e),n.ids.forEach(t=>{var s;const o=document.querySelector(`#${t}`);o&&((s=r.value)==null||s.observe(o))})}})},x=(e,t)=>{e&&(window.addEventListener("scrollend",()=>{L.value=e},{once:!0}),J(`#${e}`,{offset:t??f(),navbarOffset:!1}))};return j(()=>{{const e=window.innerHeight=document.body.offsetHeight-10;e&&t&&i.value!==d[0]&&(i.value=d[0])}}),z(L,e=>{n.ids.includes(e)&&(i.value=e)}),G(()=>{c()}),M(()=>{var e;(e=r.value)==null||e.disconnect()}),{activeId:q(()=>u.value<60?null:i.value),scrollToId:x}},Z={class:"container is-max-widescreen pt-5-mobile pt-5-tablet pt-1-desktop px-3"},ee={class:"is-flex is-flex-direction-column is-flex-direction-row-desktop is-justify-content-flex-start is-flex-wrap-wrap"},te={class:"mr-6 mt-4-desktop"},ie=W({__name:"SectionNav",props:{items:{type:Array,default:()=>[]}},setup(v){const n=v,_=R(),{isNuxtReady:u,isPageLoading:d}=A(),r=X({ids:n.items.map(a=>a.id)}),i=b(),m=()=>{var a;return _.isTouch.value?0:((a=i.value)==null?void 0:a.offsetHeight)??0};return(a,f)=>{const p=y;return h(),k(H,null,[(h(),F(U("style"),null,{default:S(()=>[w(" :root { --sectionnav-height-px: "+I(`${m()}px`)+"; } ",1)]),_:1})),g("div",{ref_key:"refSectionNav",ref:i,"data-section-nav":"",class:"sectionNav has-separator-bottom is-fullwidth has-no-padding"},[g("div",Z,[g("ul",ee,[g("li",te,[O(p,{class:T(["sectionNav__link is-uppercase has-text-weight-bold has-text-blue-800",{"sectionNav__link--active":l(u)&&!l(d)&&!l(r).activeId.value}]),onClick:f[0]||(f[0]=C(c=>("smoothScrollToPosition"in a?a.smoothScrollToPosition:l(K))(0,{navbarOffset:!1}),["prevent"]))},{default:S(()=>[w(" Overview ")]),_:1},8,["class"])]),(h(!0),k(H,null,Y(v.items,c=>(h(),k("li",{key:c.id,class:"mr-6 mt-4-desktop"},[O(p,{class:T(["sectionNav__link",{"sectionNav__link--active":l(u)&&!l(d)&&l(r).activeId.value===c.id}]),onClick:C(x=>l(r).scrollToId(c.id),["prevent"])},{default:S(()=>[w(I(c.label),1)]),_:2},1032,["class","onClick"])]))),128))])])],512)],64)}}});export{ie as _,X as u};