1import{S as s}from"./Special-hash-DI3AjpH-.js";import"./index-hash-C_PDOCQt.js";class r extends s{element;slides;constructor(e){super(e),this.element=e,this.slides=[]}get _dismissalKey(){return"announcement_dismissed"}_carouselOptions(){return{adaptiveHeight:!0,transition:"slide",infinite:!0,Autoplay:{autoStart:!0,pauseOnHover:!0,showProgressbar:!1,timeout:5e3},on:{ready:()=>{this.slides=Array.from(this.element.querySelectorAll("[data-ll-announcement]")),this.element.dataset.loaded="true",this.#s(),this.#n(),this.#a()}}}}_carouselPlugins(){return{Arrows:!1}}#s(){this.slides.forEach(e=>{const t=e.querySelector("[data-ll-special-expand]");t?.addEventListener("click",()=>this.#e(t))})}#n(){const e=()=>this.carousel?.carousel?.getPlugins()?.Autoplay?.stop();this.element.addEventListener("pointerdown",e,{once:!0}),this.element.addEventListener("keydown",e,{once:!0})}#a(){const e=this.element.dataset.expandOnLoad==="true",t=this.dismissed;!e||t||("scrollRestoration"in history&&(history.scrollRestoration="manual"),window.scrollTo({top:0,behavior:"instant"}),this.#e(this.slides[0].querySelector("[data-ll-special-expand]")),this._rememberDismissal())}#e(e){if(this.element.hasAttribute("data-ll-announcement-expanded")){this.#t();return}this.#i(e)}#i(e){window.requestIdleCallback(()=>{e.setAttribute("aria-expanded","true"),e.textContent="Hide Details",this.element.setAttribute("data-ll-announcement-expanded","")})}#t(){window.requestIdleCallback(()=>{this.slides.forEach(e=>{const t=e.querySelector("[data-ll-special-expand]");t&&(t.setAttribute("aria-expanded","false"),t.textContent="View Details")}),this.element.removeAttribute("data-ll-announcement-expanded")})}dismiss(){this._rememberDismissal(),this.#t()}}export{r as default};
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.