1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[59126],{24291:(e,t,o)=>{o.d(t,{a:()=>i,b:()=>r,c:()=>n,d:()=>l,e:()=>c});var i=e=>t=>"function"==typeof t?(customElements.define(e,t),t):((e,t)=>{let{kind:o,elements:i}=t;return{kind:o,elements:i,finisher(t){customElements.define(e,t)}}})(e,t);function r(e){return(t,o)=>void 0!==o?void t.constructor.createProperty(o,e):"method"!==t.kind||!t.descriptor||"value"in t.descriptor?{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(o){o.createProperty(t.key,e)}}:{...t,finisher(o){o.createProperty(t.key,e)}}}function n(e){return r({...e,state:!0})}var s=({finisher:e,descriptor:t})=>(o,i)=>{var r;if(void 0===i){let i=null!=(r=o.originalKey)?r:o.key,n=null!=t?{kind:"method",placement:"prototype",key:i,descriptor:t(o.key)}:{...o,key:i};return null!=e&&(n.finisher=function(t){e(t,i)}),n}{let r=o.constructor;void 0!==t&&Object.defineProperty(o,i,t(i)),e?.(r,i)}};function l(e,t){return s({descriptor:o=>{let i={get(){var t,o;return null!=(o=null==(t=this.renderRoot)?void 0:t.querySelector(e))?o:null},enumerable:!0,configurable:!0};if(t){let t="symbol"==typeof o?Symbol():"__"+o;i.get=function(){var o,i;return void 0===this[t]&&(this[t]=null!=(i=null==(o=this.renderRoot)?void 0:o.querySelector(e))?i:null),this[t]}}return i}})}var a,d=(null==(a=window.HTMLSlotElement)?void 0:a.prototype.assignedElements)!=null?(e,t)=>e.assignedElements(t):(e,t)=>e.assignedNodes(t).filter(e=>e.nodeType===Node.ELEMENT_NODE);function c(e){let{slot:t,selector:o}=e??{};return s({descriptor:i=>({get(){var i;let r="slot"+(t?`[name=${t}]`:":not([name])"),n=null==(i=this.renderRoot)?void 0:i.querySelector(r),s=null!=n?d(n,e):[];return o?s.filter(e=>e.matches(o)):s},enumerable:!0,configurable:!0})})}},35145:(e,t,o)=>{o.r(t),o.d(t,{GdsStickyBar:()=>a});var i=o(24291),r=o(85065),n=o(40629),s=o(11598),l=(0,n.b)` 2 :host { 3 display: block; 4 left: 0; 5 width: 100%; 6 z-index: 24; 7 margin: 0; 8 padding: var(--sticky-bar-padding); 9 background-color: var(--container-basic-background-color); 10 position: fixed; 11 } 12 13 :host([position^="top"]) { 14 border-bottom: var(--sticky-bar-upper-border-bottom-style); 15 box-shadow: var(--sticky-bar-upper-box-shadow); 16 } 17 18 :host([position="top-below-header"]) { 19 top: 6rem; 20 } 21 22 :host([position="top-above-header"]) { 23 top: 0; 24 } 25 26 :host([position="bottom"]) { 27 bottom: 0; 28 border-top: var(--sticky-bar-lower-border-top-style); 29 box-shadow: var(--sticky-bar-lower-box-shadow); 30 } 31 32 @media (max-width: 480px) { 33 :host { 34 max-height: 50vh; 35 overflow: scroll; 36 padding: var(--sticky-bar-padding-small-only); 37 } 38 } 39`,a=class extends n.g{constructor(){super(),this.position="bottom",this.disableManipulation=!1,this.handleMobileScroll=this.handleMobileScroll.bind(this),this.handleRepositionElements=this.handleRepositionElements.bind(this)}connectedCallback(){super.connectedCallback();let e=new CSSStyleSheet;e.replaceSync(l.cssText),this.shadowRoot.adoptedStyleSheets=[e],window.addEventListener("scroll",this.handleMobileScroll),window.addEventListener("resize",this.handleRepositionElements),this.disableManipulation||this.handleRepositionElements()}disconnectedCallback(){window.removeEventListener("scroll",this.handleMobileScroll),window.removeEventListener("resize",this.handleRepositionElements),super.disconnectedCallback()}updated(e){e.has("position")&&this.position&&(this.disableManipulation||(this.removeManipulationStyles(),this.handleRepositionElements())),e.has("disableManipulation")&&(this.disableManipulation?this.removeManipulationStyles():(this.removeManipulationStyles(),this.handleRepositionElements()))}removeManipulationStyles(){document.querySelector("main").removeAttribute("style"),document.querySelector("header").removeAttribute("style");let e=document.querySelector("gds-drawer");e&&e.removeAttribute("style");let t=document.querySelector("gds-footer"),o=document.querySelector("footer");(t||o)&&(t??o).removeAttribute("style")}handleRepositionElements(){("top-below-header"===this.position||"top-above-header"===this.position)&&(setTimeout(()=>{document.querySelector("main").setAttribute("style","padding-top: "+(this.clientHeight+60)+"px")},100),document.querySelector("gds-drawer")&&"top-below-header"===this.position&&document.querySelector("gds-drawer").classList.add("sticky-bar-top-below-header")),"top-above-header"===this.position&&setTimeout(()=>{document.querySelector("header").setAttribute("style","top: "+this.clientHeight+"px")},100),"bottom"===this.position&&setTimeout(()=>{let e=document.querySelector("gds-footer"),t=document.querySelector("footer");(e||t)&&(e??t).setAttribute("style","padding-bottom: "+(this.clientHeight+40)+"px")},100)}handleMobileScroll(){window.scrollY>=60?this.classList.add("page-scrolled"):window.scrollY<=59&&this.classList.remove("page-scrolled")}render(){return(0,n.c)`<slot></slot>`}};(0,s.c)([(0,i.b)({reflect:!0})],a.prototype,"position",2),(0,s.c)([(0,i.b)({type:Boolean,reflect:!0,attribute:"disable-main-footer-manipulation"})],a.prototype,"disableManipulation",2),a=(0,s.c)([(0,r.a)("gds-sticky-bar")],a),o(8802)}}]);
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.