1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1127],{127:(t,e,s)=>{s.r(e),s.d(e,{default:()=>o});let n=window.PluginBaseClass;class o extends n{static #t=this.options={selector_btn_consent:".swag-custom-notification-consent-modal__consent-button",class_no_scroll:"no-scroll",storage_key:"sw-consent-manager-accepted",storage_lifetime_days:90};init(){this.initConsentModal()}initConsentModal(){let{storage_key:t,class_no_scroll:e,selector_btn_consent:s}=this.options;window.localStorage.getItem(t)?this.el.style.display="none":window.modalHandler.registerModal({type:"consent",priority:100,openCallback:()=>this.openModal()})}openModal(){this.el.style.display="block",document.querySelector("html").classList.add(this.options.class_no_scroll),this.buttonConsent=this.el.querySelector(this.options.selector_btn_consent),this.buttonConsent.focus(),this.el.addEventListener("keydown",t=>{"Tab"===t.key&&(t.preventDefault(),document.activeElement===this.buttonConsent?this.el.focus():this.buttonConsent.focus())}),this.buttonConsent.addEventListener("click",this.handleClick.bind(this))}handleClick(t){t.preventDefault(),t.stopPropagation(),this.saveConsent(),this.init()}saveConsent(){let{storage_key:t,storage_lifetime_days:e,class_no_scroll:s}=this.options;window.localStorage.setItem(t,"1",e),document.querySelector("html").classList.remove(s)}}}}]);
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.