PageSourceSearch

https://www.morphisec.com/wp-content/plugins/airfleet-elements-acc…?ver=1.2.1.1773828768-1790818097

js morphisec.com collected 2026-10-01 10:27:15 UTC 5,343 bytes, 1 lines download raw bytes

1!function(){var o="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},e={},t={},i=o.parcelRequiref0cf;null==i&&((i=function(o){if(o in e)return e[o].exports;if(o in t){var i=t[o];delete t[o];var c={id:o,exports:{}};return e[o]=c,i.call(c.exports,c,c.exports),c.exports}var n=Error("Cannot find module '"+o+"'");throw n.code="MODULE_NOT_FOUND",n}).register=function(o,e){t[o]=e},o.parcelRequiref0cf=i),(0,i.register)("ikAsA",function(o,e){Object.defineProperty(o.exports,"ACCORDION_EVENTS",{get:function(){return t},set:void 0,enumerable:!0,configurable:!0});let t={close:"accordion:close",init:"accordion:init",load:"accordion:load",open:"accordion:open",toggle:"accordion:toggle"}});var c=i("ikAsA");class n{constructor({accordion:o,autoSwitchEnabled:e}){this.classNames={accordion:"afc-accordion",accordionMedia:"afc-accordion__media",accordionPanel:"afc-accordion__panel",accordionSection:"afc-accordion__section",accordionSectionActive:"afc-accordion__section--active",accordionTrigger:"afc-accordion__trigger"},this.accordion=o,this.accordionSections=null,this.accordionPanels=null,this.autoSwitch=e,this.options={closeLast:!0,openFirst:!0,type:"single"},this.dispatchEvent=window._airfleet.elements.core.dispatchEvent}load(){window.addEventListener("load",this.loadWithHash.bind(this),{once:!0});let o=this.accordion;this.getAccordionOptions({accordion:o}),this.storeAccordionPanels({accordion:o}),this.storeAccordionSections({accordion:o}),this.accordionContentHeight({accordionPanels:this.accordionPanels}),this.handleAccordionPanelResize({accordionPanels:this.accordionPanels}),this.initAccordions({accordion:o})}handleAccordionPanelResize({accordionPanels:o}){let e=new ResizeObserver(o=>{for(let e of o){let o=e.target.closest(`.${this.classNames.accordionPanel}`)||e.target;this.accordionPanelHeight({accordionPanel:o})}});for(let t of o){let o=t.querySelector(`.${this.classNames.accordionMedia}`);e.observe(t),o&&e.observe(o)}}toggleAccordion({accordionSection:o,sections:e},t){let{target:i}=t;if(i.matches([`.${this.classNames.accordionTrigger}`,`.${this.classNames.accordionTrigger} *`])){if(!1===this.options.closeLast&&o.classList.contains(this.classNames.accordionSectionActive))return;this.toggleCurrentAccordionItemClass(o),this.toggleOtherAccordionItemsClass(o,e),this.dispatchEvent(this.accordion,o.classList.contains(this.classNames.accordionSectionActive)?c.ACCORDION_EVENTS.open:c.ACCORDION_EVENTS.close,{accordionSection:o,index:e.indexOf(o)})}}toggleCurrentAccordionItemClass(o){let e=this.autoSwitch?"add":"toggle";o.classList[e](this.classNames.accordionSectionActive)}toggleOtherAccordionItemsClass(o,e){if("single"===this.options.type||this.autoSwitch)for(let t of e)t!==o&&(t.classList.contains(this.classNames.accordionSectionActive)&&this.dispatchEvent(t,c.ACCORDION_EVENTS.close,{accordionSection:t,index:e.indexOf(t)}),t.classList.remove(this.classNames.accordionSectionActive))}initAccordions({accordion:o}){let e=this.storeAccordionSections({accordion:o});if(0!==e.length)for(let t of(this.dispatchEvent(o,c.ACCORDION_EVENTS.init,{accordionSections:e}),this.options.openFirst&&(e[0].classList.add(this.classNames.accordionSectionActive),this.dispatchEvent(e[0],c.ACCORDION_EVENTS.open,{accordionSection:e[0],index:e.indexOf(e[0])})),e))t.addEventListener("click",this.toggleAccordion.bind(this,{accordionSection:t,sections:e}))}storeAccordionPanels({accordion:o}){this.accordionPanels=[...o.querySelectorAll(`.${this.classNames.accordionPanel}`)]}storeAccordionSections({accordion:o}){return this.accordionSections=[...o.querySelectorAll(`.${this.classNames.accordionSection}`)],this.accordionSections}accordionContentHeight({accordionPanels:o}){for(let e of o)this.accordionPanelHeight({accordionPanel:e})}accordionPanelHeight({accordionPanel:o}){if(!o)return;let e=[...o.children];if(0===e.length)return;let t=e.reduce((o,e)=>o+e.clientHeight+Number.parseInt(getComputedStyle(e).marginBottom,10),0);t&&o.style.setProperty("--afs-accordion-panel-max-height",`${t}px`)}getAccordionOptions({accordion:o}){return this.options={closeLast:"false"!==o.dataset.closeLast,openFirst:"true"===o.dataset.openFirst,type:o.dataset.type||"single"},this.options}loadWithHash(){let{hash:o}=window.location;if(!o)return;let e=o.slice(1),t=[...document.querySelectorAll(`.${this.classNames.accordionSection}`)];
1if(0!==t.length){for(let o of t)if(o.getAttribute("id")===e){let e=o.querySelector(`.${this.classNames.accordionTrigger}`);if(!e)return;o.classList.contains(this.classNames.accordionSectionActive)||e.click(),setTimeout(()=>{let e=o.getBoundingClientRect().top+window.scrollY-document.documentElement.clientTop-function(){let o=document.querySelector(".afb-header");return o?o.offsetHeight:0}();window.scrollTo({behavior:"smooth",top:e})},500);break}}}}new class{constructor(){this.classNames={accordionComponent:"afc-accordion",autoSwitchComponent:"afc-items-auto-switching"}}initialize(){document.addEventListener(c.ACCORDION_EVENTS.load,o=>{let{accordion:e}=o.detail;if(!e||!e.classList.contains(this.classNames.accordionComponent))return;let t=this.hasAutoSwitchEnabled(e);new n({accordion:e,autoSwitchEnabled:t}).load()})}hasAutoSwitchEnabled(o){return o.closest("section").querySelector(`.${this.classNames.autoSwitchComponent}`)}}().initialize()}();

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.