1import{a as B,b as f}from"./chunk-OGG4A2QW.js";import{a as E}from"./chunk-DAAXSM72.js";import{c as y}from"./chunk-DZFR5FMO.js";import{g as S}from"./chunk-GUVLWF6N.js";import{B as v,Ba as m,Da as D,Ea as c,F as w,Me as T,Rb as O,Ta as p,gb as o,ib as F,ob as h,pb as x,qb as R,sb as M,t as b,ta as I,wa as l}from"./chunk-ZIECK5QA.js";import{m as g}from"./chunk-3JMZ37NM.js";var W=(()=>{let i=class i{set sipReplaceWith(e){e.forEach(t=>{this.replace(t)})}constructor(e){this.renderer=e}replace({container:e,replace:t,replaceWith:s}){let n=e.querySelector(":scope div[hidden]");n?n.textContent.trim()===t&&(this.renderer.removeAttribute(n,"hidden"),n.replaceWith(s)):s.remove()}};i.\u0275fac=function(t){return new(t||i)(o(h))},i.\u0275dir=c({type:i,selectors:[["","sipReplaceWith",""]],inputs:{sipReplaceWith:"sipReplaceWith"}});let r=i;return r})();var Y=(()=>{let i=class i{constructor(e){this.element=e}observe(e={root:null,rootMargin:"0px",threshold:.5}){typeof IntersectionObserver<"u"&&(this.observer=new IntersectionObserver(t=>{t.forEach(s=>{s.isIntersecting&&(this.handleComponentVisible?.(),this.unobserve())})},e),this.observer.observe(this.element.nativeElement))}unobserve(){this.observer&&this.observer.disconnect()}ngAfterViewInit(){this.observe()}ngOnDestroy(){this.unobserve()}};i.\u0275fac=function(t){return new(t||i)(o(p))},i.\u0275dir=c({type:i,selectors:[["","sipObserve",""]],inputs:{handleComponentVisible:[m.None,"sipObserve","handleComponentVisible"]}});let r=i;return r})();var U=(()=>{let i=class i extends B{constructor(e,t,s,n){super(e,t,s,[],n),this.ariaService=e,this.el=t,this.renderer=s,this.layoutService=n}handleKeydown(e){e.key==="ArrowLeft"?(this.closeMenu(),e.preventDefault()):e.key==="ArrowRight"&&(this.openNextMenu(),e.preventDefault())}openNextMenu(){if(!this.layoutService.isMobile&&(this.ariaService.setState(this.selector,!1),this.selector)){let e=`[id='${this.selector}'] li:first-child a`,t=document.querySelector(e);t&&t.focus()}}closeMenu(){if(!this.layoutService.isMobile)if(this._parentSelector){let e=`[aria-controls='${this._parentSelector}']`,t=document.querySelector(e);t&&t.focus(),this.ariaService.toggleState(this._parentSelector)}else this.ariaService.toggleState(this.selector)}ngOnInit(){this.selector&&(this.renderer.setAttribute(this.el.nativeElement,"aria-controls",this.selector),super.ngOnInit(),this._parentSelector=this.selectorObject===void 0||typeof this.selectorObject=="string"?"":String(this.selectorObject.parentSelector))}};i.\u0275fac=function(t){return new(t||i)(o(E),o(p),o(h),o(f))},i.\u0275dir=c({type:i,selectors:[["","sip-menu-arrow-navigation",""]],hostBindings:function(t,s){t&1&&O("keydown",function(a){return s.handleKeydown(a)})},inputs:{selectorObject:[m.None,"sip-menu-arrow-navigation","selectorObject"]},features:[M]});let r=i;return r})();var K=(()=>{let i=class i{constructor(e,t,s){this.layoutService=e,this.templateRef=t,this.vcr=s,this.deviceType="default"}set sipDisplayForDevice(e){this.deviceType=e?.toLowerCase()}ngOnInit(){let e=this.vcr.createEmbeddedView(this.templateRef);this.subscription=this.layoutService.isMobile$.subscribe(t=>{let s=(this.deviceType==="default"||this.deviceType==="tablet"||this.deviceType==="mobile")&&t||this.deviceType==="desktop"&&!t;e.rootNodes.forEach(n=>{n.style.display=s?"":"none"})})}ngOnDestroy(){this.subscription?.unsubscribe()}};i.\u0275fac=function(t){return new(t||i)(o(f),o(F),o(R))},i.\u0275dir=c({type:i,selectors:[["","sipDisplayForDevice",""]],inputs:{sipDisplayForDevice:"sipDisplayForDevice"}});let r=i;return r})();var re=(()=>{let i=class i{constructor(){this.sipFixOnScrollTopMargin=S(y.spaceMd),this.sipFixOnScrollBottomMargin=S(y.spaceMd),this.translateY=0,this.el=l(p),this.renderer=l(h),this.ngZone=l(x),this.winRef=l(T),this.layoutService=l(f)}ngAfterViewInit(){let e=this.winRef.nativeWindow;!this.winRef.isBrowser()||!e||this.ngZone.runOutsideAngular(()=>{this.subscription=w(v(e,"scroll",{passive:!0}),v(e,"resize",{passive:!0})).subscribe(()=>this.scheduleUpdate()),this.scheduleUpdate()})}ngOnDestroy(){this.subscription?.unsubscribe(),this.frameId!==void 0&&this.winRef.nativeWindow?.cancelAnimationFrame(this.frameId)}scheduleUpdate(){let e=this.winRef.nativeWindow;!e||this.frameId!==void 0||(this.frameId=e.requestAnimationFrame(()=>{this.frameId=void 0,this.update()}))}update(){return g(this,null,function*(){let e=this.winRef.nativeWindow;if(!e)return;let t=this.el.nativeElement,s=t.getBoundingClientRect();(yield b(this.layoutService.isMobile$))&&this.applyTransform(t,0);
1let n=s.top-this.getAppliedTranslateY(t,e),a=e.innerHeight,j=this.sipFixOnScrollTopMargin-n,A=a-this.sipFixOnScrollBottomMargin-s.height-n,N=(t.parentElement?.getBoundingClientRect().bottom??Number.POSITIVE_INFINITY)-s.height-n,H=Math.min(A,N),d=Math.max(0,Math.min(j,H));d!==this.translateY&&(this.translateY=d,this.applyTransform(t,d))})}applyTransform(e,t){this.renderer.setStyle(e,"transform",`translateY(${t}px)`)}getAppliedTranslateY(e,t){let s=t.getComputedStyle(e).transform;if(!s||s==="none")return 0;let n=s.match(/matrix3d\((.+)\)/);if(n)return parseFloat(n[1].split(",")[13])||0;let a=s.match(/matrix\((.+)\)/);return a&&parseFloat(a[1].split(",")[5])||0}};i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=c({type:i,selectors:[["","sipFixOnScroll",""]],inputs:{sipFixOnScrollTopMargin:"sipFixOnScrollTopMargin",sipFixOnScrollBottomMargin:"sipFixOnScrollBottomMargin"}});let r=i;return r})();var Be=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=D({type:i}),i.\u0275inj=I({});let r=i;return r})();export{U as a,K as b,W as c,Y as d,re as e,Be as f};
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.