PageSourceSearch

https://www.wibu.care/assets/3e297ef11dce1a1914a5493913494f7f71cda…/js/yves_default.toggler-accordion.js

js wibu.care collected 2026-10-01 02:23:53 UTC 2,223 bytes, 1 lines download raw bytes

1"use strict";(self.webpackJsonp_yves_default=self.webpackJsonp_yves_default||[]).push([[3163],{3253(t,e,s){s.r(e);var i=s(86947);class r extends i.A{readyCallback(){}init(){this.wrap=document.getElementsByClassName(this.wrapClassName)[0],this.triggers=Array.from(document.getElementsByClassName(this.triggerClassName)),this.isTouch="ontouchstart"in window,this.mapEvents(),this.openAccordionOnHashMatch()}mapEvents(){this.wrap.addEventListener("click",t=>this.onTriggerClick(t))}openAccordionOnHashMatch(){let t=window.location.hash;if(!t)return;let e=this.triggers.find(e=>{let s=e.closest("li");return s&&s.id===t.substring(1)});if(e){let t=e.getAttribute("data-toggle-target"),s=document.querySelector(t);s&&(e.classList.add(this.triggerActiveClass),s.classList.remove(this.classToToggle))}}onTriggerClick(t){this.isTouchScreen?this.isTouch&&this.initializeClick(t):this.initializeClick(t)}initializeClick(t){this.triggers.some(e=>{let s=t.target;for(;s!==this.wrap;){if(s===e){t.preventDefault();let s=t.target;return s.hasAttribute("href")?window.location.href=s.getAttribute("href"):this.toggle(e),!0}s=s.parentNode}})}toggle(t){let e=t.classList.contains(this.triggerActiveClass);t.classList.toggle(this.triggerActiveClass,!e),this.targetToggle(t)}targetToggle(t){Array.from(document.querySelectorAll(t.dataset.toggleTarget)).forEach(t=>{let e=!t.classList.contains(this.classToToggle);t.classList.toggle(this.classToToggle,e),this.uniqueToggler&&this.onlyOneOpen(t)})}onlyOneOpen(t){t.previousElementSibling.classList.add("unique"),this.triggers.forEach(t=>{t.classList.contains("unique")||(t.nextElementSibling.classList.add("is-hidden"),t.classList.remove("toggler-accordion__item--active"))}),t.previousElementSibling.classList.remove("unique")}get wrapClassName(){return this.getAttribute("wrap-class-name")}get triggerClassName(){return this.getAttribute("trigger-class-name")}get classToToggle(){return this.getAttribute("class-to-toggle")}get triggerActiveClass(){return this.getAttribute("active-class")}get isTouchScreen(){return"true"===this.touchRules}get touchRules(){return this.getAttribute("active-on-touch")}get uniqueToggler(){return this.getAttribute("unique-toggler")}}s.d(e,{default:()=>r})}}]);

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.