PageSourceSearch

https://www.rookvrijegeneratie.nl/wp-content/themes/rookvrijegeneratie/dist/assets/index-BSEpAMf6.js

js rookvrijegeneratie.nl collected 2026-10-02 03:41:51 UTC 2,242 bytes, 1 lines download raw bytes

1var i=Object.defineProperty;var o=(s,e,t)=>e in s?i(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var n=(s,e,t)=>o(s,typeof e!="symbol"?e+"":e,t);import r from"./index--tuMZ6u5.js";import{g as l}from"./main-BThlQzEG.js";import"./_commonjsHelpers-D6Ya60D-.js";class d{constructor(e,t){n(this,"init",()=>{this.setValues(),this.bindEvents()});n(this,"setValues",()=>{l.set(this.element,{xPercent:100,autoAlpha:1})});n(this,"bindEvents",()=>{this.closePanelEl.addEventListener("click",this.handleClosePanel),this.closeMenuEl.addEventListener("click",this.handleCloseMenu)});n(this,"handleTriggerClick",e=>{this.currentTrigger=e,this.currentMenu=this.currentTrigger.parentElement.querySelector(".js-menu"),this.updateMenuContent(),this.accordionItems=[...this.currentClonedMenu.querySelectorAll(".js-accordion-item")],this.bindAccordionItems(),this.showPanel()});n(this,"handleClosePanel",()=>{this.panelOpen&&this.closePanel()});n(this,"handleCloseMenu",()=>{this.panelOpen&&(this.closePanel(),this.callback())});n(this,"updateMenuContent",()=>{this.clear(),this.insertMenu()});n(this,"insertMenu",()=>{if(!this.slot)return;const e=this.currentMenu.cloneNode(!0);l.set(e,{display:"block"}),this.slot.appendChild(e),this.currentClonedMenu=e});n(this,"clear",()=>{this.slot.innerHTML=""});n(this,"bindAccordionItems",()=>{var e;this.accordionInstances=(e=this.accordionItems)==null?void 0:e.map(t=>new r(t))});n(this,"unbindAccordionItems",()=>{var e;(e=this.accordionInstances)==null||e.forEach(t=>{t==null||t.destroy()}),this.accordionInstances=[]});n(this,"showPanel",()=>{this.panelOpen=!0,l.to(this.element,{xPercent:0,duration:.3,ease:"power3.out"})});n(this,"closePanel",()=>{this.panelOpen=!1,l.to(this.element,{xPercent:100,duration:.3,ease:"power3.out"})});n(this,"destroy",()=>{var e,t;(e=this.closePanelEl)==null||e.removeEventListener("click",this.handleClosePanel),(t=this.closeMenuEl)==null||t.removeEventListener("click",this.handleCloseMenu)});this.element=e,this.slot=this.element.querySelector(".js-slot"),this.closePanelEl=this.element.querySelector(".js-close-panel"),this.closeMenuEl=this.element.querySelector(".js-close-menu"),this.panelOpen=!1,this.callback=t||(()=>{}),this.init()}}export{d 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.