uawdijnntqw1x1x1
IP : 3.17.76.126
Hostname : ns1.eurodns.top
Kernel : Linux ns1.eurodns.top 4.18.0-553.5.1.lve.1.el7h.x86_64 #1 SMP Fri Jun 14 14:24:52 UTC 2024 x86_64
Disable Function : mail,sendmail,exec,passthru,shell_exec,system,popen,curl_multi_exec,parse_ini_file,show_source,eval,open_base,symlink
OS : Linux
PATH:
/
home
/
sudancam
/
.trash
/
wp-content
/
..
/
.
/
quran
/
includes
/
..
/
..
/
updraftplus
/
..
/
js.1
/
..
/
src
/
js
/
autoinit
/
init.js
/
/
import SelectorEngine from '../mdb/dom/selector-engine'; import { defineJQueryPlugin } from '../mdb/util/index'; const mapComponentsData = (() => { const componentsData = []; return { set(componentName) { componentsData.push(componentName); }, get(componentName) { return componentsData.includes(componentName); }, }; })(); export const InitializedComponents = { set(componentName) { mapComponentsData.set(componentName); }, get(componentName) { return mapComponentsData.get(componentName); }, }; const isInitialized = (componentName) => { return InitializedComponents.get(componentName); }; export const bindCallbackEventsIfNeeded = (component) => { if (!isInitialized(component.NAME)) { const manualInit = true; initComponent(component, manualInit); } }; const initComponent = (component, manualInit = false) => { if (!component || InitializedComponents.get(component.NAME)) { return; } InitializedComponents.set(component.NAME); const thisComponent = _defaultInitSelectors[component.NAME] || null; const isToggler = thisComponent?.isToggler || false; defineJQueryPlugin(component); if (thisComponent?.advanced) { thisComponent.advanced(component, thisComponent?.selector); return; } if (isToggler) { thisComponent.callback(component, thisComponent?.selector); return; } if (manualInit) { return; } SelectorEngine.find(thisComponent?.selector).forEach((element) => { let instance = component.getInstance(element); if (!instance) { instance = new component(element); // eslint-disable-line if (thisComponent?.onInit) { instance[thisComponent.onInit](); } } }); }; let _defaultInitSelectors; export class InitMDB { constructor(defaultInitSelectors) { _defaultInitSelectors = defaultInitSelectors; } init = (components) => { components.forEach((component) => initComponent(component)); }; initMDB = (components, checkOtherImports = false) => { const componentList = Object.keys(_defaultInitSelectors).map((element) => { const requireAutoInit = Boolean( document.querySelector(_defaultInitSelectors[element].selector) ); if (requireAutoInit) { const component = components[_defaultInitSelectors[element].name]; if (!component && !InitializedComponents.get(element) && checkOtherImports) { // eslint-disable-next-line no-console console.warn( `Please import ${_defaultInitSelectors[element].name} from "MDB" package and add it to a object parameter inside "initMDB" function` ); } return component; } return null; }); this.init(componentList); }; }
/home/sudancam/.trash/wp-content/.././quran/includes/../../updraftplus/../js.1/../src/js/autoinit/init.js