PageSourceSearch

https://www.vrijemeradar.hr/chunk-WYPL7IVM.js

js vrijemeradar.hr collected 2026-09-25 08:08:08 UTC 2,883 bytes, 1 lines download raw bytes

1import{a as O}from"./chunk-EEENA2KR.js";import{a as E}from"./chunk-PPP7Q7OG.js";import{b as c}from"./chunk-RPN6GABN.js";import{t as A,v as I}from"./chunk-KISWCNUT.js";import{$ as w,A as g,E as d,Fa as b,J as S,T as v,c as f,e as h,ga as n,ja as s,la as r,m,s as u,t as a,va as l}from"./chunk-GU52UVA3.js";var T=new s("common-editorial-DIMENSIONS");var D=new s("common-editorial-BREAKPOINT");var y=new s("app-shell-selector"),N=(()=>{let e=class e{constructor(){this.doc=r(l),this.selector=r(y,{optional:!0}),this.logger=c().makeChild("[ResizeObserverService]")}appShell$(){if(this.selector===null)return this.logger.error("Token APP_SHELL_SELECTOR is not provided."),m();let t=this.doc.querySelector(this.selector);return new f(o=>{let p=new ResizeObserver(()=>{o.next()});return p.observe(t),()=>p.unobserve(t)})}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=n({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var G=(()=>{let e=class e{constructor(){this.win=r(E),this.doc=r(l),this.platformId=r(b),this.dimensions=r(T,{optional:!0}),this.breakpointSvc=r(D,{optional:!0}),this.viewportScrl=r(I),this.resize=r(N),this.routerHistory=r(O),this.logger=c().makeChild("[ScrollService]"),this.lastYPos=0,this.scrollPosition$=A(this.platformId)?g(this.win,"scroll",{passive:!0}).pipe(w(()=>this.setScrollingDownState(this.win.scrollY)),a(()=>[this.win.scrollX,this.win.scrollY]),v({bufferSize:1,refCount:!1})):d,this.scrollingDown$=new h(!1),this.lastScrollingAnchorHash$=new h(null),this.routerHistory.history$.pipe(a(t=>t[t.length-1])).subscribe(t=>{this.logger.debug(t.scrollingAnchor!=null?`Will scroll to ${t.scrollingAnchor}`:"No scrolling anchor set"),t.scrollingAnchor!=null&&this.scrollToLastAnchor({url:t.navStartEvent.url,scrollingAnchor:t.scrollingAnchor})})}setScrollingDownState(t){this.lastYPos<t&&this.lastYPos>=0?this.scrollingDown$.next(!0):this.scrollingDown$.next(!1),this.lastYPos=t}setLastScrollingAnchor(t,o){this.routerHistory.registerNextScrollingAnchor(t),o!==void 0&&this.lastScrollingAnchorHash$.next(`article-${o}-${t??""}`)}scrollToLastAnchor(t){this.resize.appShell$().pipe(S(50),u(1e3)).subscribe({next:()=>{if(t.scrollingAnchor==null||this.doc.getElementById(t.scrollingAnchor)==null){this.viewportScrl.scrollToPosition([0,0]);return}this.viewportScrl.setOffset([0,this.getAnchorOffset(t.url)]),this.viewportScrl.scrollToAnchor(t.scrollingAnchor)},error:()=>{}})}getAnchorOffset(t){let o=16;return this.dimensions&&(o+=t==="/"?this.dimensions.largeHeaderHeight+this.dimensions.searchHeight/2:this.dimensions.headerHeight),this.breakpointSvc&&(this.breakpointSvc.matches(1)&&!this.breakpointSvc.matches(2)?o*=1/1.1:this.breakpointSvc.matches(2)&&(o*=1/1.2)),o}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=n({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();export{T as a,D as b,y as c,G as d};

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.