1"use strict";(self.webpackChunkrevier=self.webpackChunkrevier||[]).push([[88276],{276(s,t,i){i.r(t),i.d(t,{default:()=>e});class e extends window.PluginBaseClass{init(){this.SELECTORS={listItem:".js-rev4-list-item"},this.STATE_CLASSES={isOpen:"is-open",isHidden:"is-hidden"},this.CLASSES={moreBtn:"js-rev4-list-more-btn",list:"js-rev4-list"},this.DATA_ATTRIBUTES={maxItems:"data-max-items",labelExpand:"data-label-expand",labelShrink:"data-label-shrink"},this.el.classList.contains(this.CLASSES.moreBtn)&&(this.listEl=this.el.previousElementSibling,this.listEl.classList.contains(this.CLASSES.list)&&(this.maxItems=parseInt(this.listEl.getAttribute(this.DATA_ATTRIBUTES.maxItems)),this.labelExpand=this.el.getAttribute(this.DATA_ATTRIBUTES.labelExpand),this.labelShrink=this.el.getAttribute(this.DATA_ATTRIBUTES.labelShrink),this.listItems=this.listEl.querySelectorAll(this.SELECTORS.listItem),this._registerEvents()))}_registerEvents(){this.el.addEventListener("click",this._onClick.bind(this))}_onClick(s){s.preventDefault(),this.el.classList.contains(this.STATE_CLASSES.isOpen)?(this._setInactive(),this._hideListItems()):(this._setActive(),this._showAllListItems())}_setActive(){this.el.classList.add(this.STATE_CLASSES.isOpen),this.el.setAttribute("aria-label",this.labelShrink)}_setInactive(){this.el.classList.remove(this.STATE_CLASSES.isOpen),this.el.setAttribute("aria-label",this.labelExpand)}_showAllListItems(){this.listItems.forEach((s,t)=>{s.classList.remove(this.STATE_CLASSES.isHidden)})}_hideListItems(){this.listItems.forEach((s,t)=>{t>=this.maxItems&&s.classList.add(this.STATE_CLASSES.isHidden)})}}}}]);
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.