1import{d as T,p as D,o as F,g as e,s as c,n as G,q as J,r as O,i as S,j as Q,k as b,f as L,c as a,b as y,w as q,S as X,t as Y,B as Z,e as u,l as W,h as $,m as ee}from"./BaseModule-BPNcAUE1.js";import{W as te}from"./bootstrap-BWKiQ3Nh.js";const C=(v,t,r)=>{t.close(),b(r,!1)};var ae=L('<div class="flex flex-1 place-content-between items-center gap-2 svelte-ptcs98"><a class="flex flex-1 items-center gap-3 overflow-hidden lg:gap-4 svelte-ptcs98"><div class="contents svelte-ptcs98"><div class="font-caps-style text-16asrem border-stroke-accent-1 lg:text-20asrem text-text-neutral-def-base border-1 p-2 leading-[100%] whitespace-nowrap lg:p-3 svelte-ptcs98"> </div> <div class="text-13asrem lg:text-15asrem before:from-surface-neutral-def-base after:to-surface-neutral-def-base text-text-neutral-def-base relative -mx-2 w-full overflow-hidden font-medium before:absolute before:left-0 before:z-10 before:block before:h-full before:w-2 before:bg-linear-to-r after:absolute after:top-0 after:right-2 after:z-10 after:block after:h-full after:w-2 after:bg-linear-to-r svelte-ptcs98"><span> </span></div></div> <button class="btn-primary btn-small whitespace-nowrap max-lg:hidden! svelte-ptcs98" type="button"> </button></a> <button type="button" class="btn-tertiary btn-small-square shrink-0 svelte-ptcs98"><!></button></div>'),re=L('<div class="force-dark-theme fixed bottom-0 left-0 z-50 w-full svelte-ptcs98"><div class="border-stroke-accent-1 bg-surface-neutral-def-base relative w-full border-t-1 py-[10px] pb-[calc(10px+env(safe-area-inset-bottom))] svelte-ptcs98"><!></div></div>');function se(v,t){D(t,!0);let r=c(void 0),f=c(void 0),n=c(void 0),g=c(!1),p=c(!0);const o=new ie,w=()=>{if(!e(f)||!e(n))return;const i=e(f).offsetWidth,s=e(n).offsetWidth;if(b(g,i>s),e(g)){const h=i/s,m=Math.max(3,Math.min(10,h*3))*1.25;e(n).setAttribute("style",` 2 --wrapper-width: ${s.toString()}px; 3 --animation-duration: ${m.toString()}s 4 `)}};F(()=>(w(),o.setHeightAsCssVariable(e(r)),window.addEventListener("debouncedResize",()=>{w(),o.setHeightAsCssVariable(e(r))}),()=>{o.setHeightAsCssVariable(e(r)),window.removeEventListener("debouncedResize",w)}));var B=G(),E=J(B);{var I=i=>{var s=re(),h=a(s),m=a(h);te(m,{wrappers:["wrapper-site","wrapper","wrapper-inner"],children:(_,le)=>{var V=ae(),l=a(V);l.__click=[C,o,p];var z=a(l),A=a(z),K=a(A),H=y(A,2),k=a(H);let M;var R=a(k);q(k,d=>b(f,d),()=>e(f)),q(H,d=>b(n,d),()=>e(n));var P=y(z,2),U=a(P),x=y(l,2);x.__click=[C,o,p];var j=a(x);X(j,{icon:"close",size:"16"}),Y((d,N)=>{u(l,"href",t.data.link.url),u(l,"target",t.data.link.target),u(l,"aria-label",t.data.title),W(K,t.data.label),M=$(k,1,"pr-4 pl-2 whitespace-nowrap svelte-ptcs98",null,M,d),W(R,t.data.title),W(U,t.data.link.label),u(x,"aria-label",N)},[()=>({marquee:e(g)}),()=>Z.getInstance().i18n.translate("breakingbar_close")]),S(_,V)},$$slots:{default:!0}}),q(s,_=>b(r,_),()=>e(r)),S(i,s)};O(E,i=>{e(p)&&i(I)})}S(v,B),Q()}T(["click"]);class ie{localStorageKey="domestique-cycling-breakingbar";currentUrl=window.location.href;getStoredLocalStorageValue(){return localStorage.getItem(this.localStorageKey)??""}setHeightAsCssVariable(t){document.documentElement.style.setProperty("--breakingbar-height",`${t?.offsetHeight.toString()??"0"}px`)}validate(){return!window.breaking_bar||this.getStoredLocalStorageValue()===window.breaking_bar.link.url||window.breaking_bar.link.url===this.currentUrl?!1:(this.show(),!0)}close(){window.breaking_bar&&(localStorage.setItem(this.localStorageKey,window.breaking_bar.link.url),this.setHeightAsCssVariable(void 0))}show(){window.breaking_bar&&this.render()}render(){window.breaking_bar&&ee(se,{target:document.body,props:{data:window.breaking_bar}})}}export{ie as BreakingBarService}; 5//# sourceMappingURL=BreakingbarService-Ck_OYH54.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.