![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mets.corals.io/wp-content/plugins/easy-accordion-free/public/assets/js/ |
!function($){!function(){function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Constructor}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{},ownKeys=Object.keys(source);"function"==typeof Object.getOwnPropertySymbols&&(ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter((function(sym){return Object.getOwnPropertyDescriptor(source,sym).enumerable})))),ownKeys.forEach((function(key){_defineProperty(target,key,source[key])}))}return target}var TRANSITION_END="transitionend",MILLISECONDS_MULTIPLIER=1e3;function getSelectorFromElement(element){var selector=element.getAttribute("data-sptarget");if(!selector||"#"===selector){var hrefAttr=element.getAttribute("href");selector=hrefAttr&&"#"!==hrefAttr?hrefAttr.trim():""}try{return document.querySelector(selector)?selector:null}catch(err){return null}}function reflow(element){return element.offsetHeight}function getTransitionDurationFromElement(element){if(!element)return 0;var transitionDuration=$(element).css("transition-duration"),floatTransitionDuration;return parseFloat(transitionDuration)?(transitionDuration=transitionDuration.split(",")[0],1e3*parseFloat(transitionDuration)):0}function isElement(obj){return(obj[0]||obj).nodeType}function toType(obj){return{}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase()}function typeCheckConfig(componentName,config,configTypes){Object.keys(configTypes).forEach((function(property){var expectedTypes=configTypes[property],value=config[property],valueType=value&&isElement(value)?"element":toType(value);if(!new RegExp(expectedTypes).test(valueType))throw new Error(componentName.toUpperCase()+': Option "'+property+'" provided type "'+valueType+'" but expected type "'+expectedTypes+'".')}))}function triggerTransitionEnd(element){$(element).trigger(TRANSITION_END)}function transitionEndEmulator(duration){var called=!1;return $(this).one(SPCollapse.TRANSITION_END,(function(event){called=!0})),setTimeout((function(){called||triggerTransitionEnd(this)}),duration),this}function setTransitionEndSupport(){$.fn.emulateTransitionEnd=transitionEndEmulator}setTransitionEndSupport();var NAME="spcollapse",VERSION="2.0.2",DATA_KEY="bs.spcollapse",EVENT_KEY="."+DATA_KEY,DATA_API_KEY=".data-api",JQUERY_NO_CONFLICT=$.fn[NAME],Default={toggle:!0,parent:""},DefaultType={toggle:"boolean",parent:"(string|element)"},Event={SHOW:"show"+EVENT_KEY,SHOWN:"shown"+EVENT_KEY,HIDE:"hide"+EVENT_KEY,HIDDEN:"hidden"+EVENT_KEY,CLICK_DATA_API:"click"+EVENT_KEY+".data-api"},ClassName_SHOW="show",ClassName_COLLAPSE="spcollapse",ClassName_COLLAPSING="spcollapsing",ClassName_COLLAPSED="collapsed",Dimension_WIDTH="width",Dimension_HEIGHT="height",Selector_ACTIVES=".show, .spcollapsing",Selector_DATA_TOGGLE='[data-sptoggle="spcollapse"]',SPCollapse=function(){function SPCollapse(element,config){this._isTransitioning=!1,this._element=element,this._config=this._getConfig(config),this._triggerArray=[].slice.call(document.querySelectorAll('[data-sptoggle="spcollapse"][href="#'+element.id+'"],[data-sptoggle="spcollapse"][data-sptarget="#'+element.id+'"]'));for(var toggleList=[].slice.call(document.querySelectorAll(Selector_DATA_TOGGLE)),i=0,len=toggleList.length;i<len;i++){var elem=toggleList[i],selector=getSelectorFromElement(elem),filterElement=[].slice.call(document.querySelectorAll(selector)).filter((function(foundElem){return foundElem===element}));null!==selector&&filterElement.length>0&&(this._selector=selector,this._triggerArray.push(elem))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var _proto=SPCollapse.prototype;return _proto.toggle=function toggle(){$(this._element).hasClass(ClassName_SHOW)?this.hide():this.show()},_proto.show=function show(){var _this=this,actives,activesData;if(!this._isTransitioning&&!$(this._element).hasClass(ClassName_SHOW)&&(this._parent&&0===(actives=[].slice.call(this._parent.querySelectorAll(Selector_ACTIVES)).filter((function(elem){return"string"==typeof _this._config.parent?elem.getAttribute("data-parent")===_this._config.parent:elem.classList.contains(ClassName_COLLAPSE)}))).length&&(actives=null),!(actives&&(activesData=$(actives).not(this._selector).data(DATA_KEY))&&activesData._isTransitioning))){var startEvent=$.Event(Event.SHOW);if($(this._element).trigger(startEvent),!startEvent.isDefaultPrevented()){actives&&(SPCollapse._jQueryInterface.call($(actives).not(this._selector),"hide"),activesData||$(actives).data(DATA_KEY,null));var dimension=this._getDimension();$(this._element).removeClass(ClassName_COLLAPSE).addClass(ClassName_COLLAPSING),this._element.style[dimension]=0,this._triggerArray.length&&$(this._triggerArray).removeClass(ClassName_COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var complete=function complete(){$(_this._element).removeClass(ClassName_COLLAPSING).addClass(ClassName_COLLAPSE).addClass(ClassName_SHOW),_this._element.style[dimension]="",_this.setTransitioning(!1),$(_this._element).trigger(Event.SHOWN)},capitalizedDimension,scrollSize="scroll"+(dimension[0].toUpperCase()+dimension.slice(1)),transitionDuration=getTransitionDurationFromElement(this._element);$(this._element).one(TRANSITION_END,complete).emulateTransitionEnd(transitionDuration),this._element.style[dimension]=this._element[scrollSize]+"px"}}},_proto.hide=function hide(){var _this2=this;if(!this._isTransitioning&&$(this._element).hasClass(ClassName_SHOW)){var startEvent=$.Event(Event.HIDE);if($(this._element).trigger(startEvent),!startEvent.isDefaultPrevented()){var dimension=this._getDimension();this._element.style[dimension]=this._element.getBoundingClientRect()[dimension]+"px",reflow(this._element),$(this._element).addClass(ClassName_COLLAPSING).removeClass(ClassName_COLLAPSE).removeClass(ClassName_SHOW);var triggerArrayLength=this._triggerArray.length;if(triggerArrayLength>0)for(var i=0;i<triggerArrayLength;i++){var trigger=this._triggerArray[i],selector=getSelectorFromElement(trigger),$elem;if(null!==selector)$([].slice.call(document.querySelectorAll(selector))).hasClass(ClassName_SHOW)||$(trigger).addClass(ClassName_COLLAPSED).attr("aria-expanded",!1)}this.setTransitioning(!0);var complete=function complete(){_this2.setTransitioning(!1),$(_this2._element).removeClass(ClassName_COLLAPSING).addClass(ClassName_COLLAPSE).trigger(Event.HIDDEN)};this._element.style[dimension]="";var transitionDuration=getTransitionDurationFromElement(this._element);$(this._element).one(TRANSITION_END,complete).emulateTransitionEnd(transitionDuration)}}},_proto.setTransitioning=function setTransitioning(isTransitioning){this._isTransitioning=isTransitioning},_proto.dispose=function dispose(){$.removeData(this._element,DATA_KEY),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},_proto._getConfig=function _getConfig(config){return(config=_objectSpread({},Default,config)).toggle=Boolean(config.toggle),typeCheckConfig(NAME,config,DefaultType),config},_proto._getDimension=function _getDimension(){var hasWidth;return $(this._element).hasClass(Dimension_WIDTH)?Dimension_WIDTH:Dimension_HEIGHT},_proto._getParent=function _getParent(){var _this3=this,parent;isElement(this._config.parent)?(parent=this._config.parent,void 0!==this._config.parent.jquery&&(parent=this._config.parent[0])):parent=document.querySelector(this._config.parent);var selector='[data-sptoggle="spcollapse"][data-parent="'+this._config.parent+'"]',children=[].slice.call(parent.querySelectorAll(selector));return $(children).each((function(i,element){_this3._addAriaAndCollapsedClass(SPCollapse._getTargetFromElement(element),[element])})),parent},_proto._addAriaAndCollapsedClass=function _addAriaAndCollapsedClass(element,triggerArray){var isOpen=$(element).hasClass(ClassName_SHOW);triggerArray.length&&$(triggerArray).toggleClass(ClassName_COLLAPSED,!isOpen).attr("aria-expanded",isOpen)},SPCollapse._getTargetFromElement=function _getTargetFromElement(element){var selector=getSelectorFromElement(element);return selector?document.querySelector(selector):null},SPCollapse._jQueryInterface=function _jQueryInterface(config){return this.each((function(){var $this=$(this),data=$this.data(DATA_KEY),_config=_objectSpread({},Default,$this.data(),"object"==typeof config&&config?config:{});if(!data&&_config.toggle&&/show|hide/.test(config)&&(_config.toggle=!1),data||(data=new SPCollapse(this,_config),$this.data(DATA_KEY,data)),"string"==typeof config){if(void 0===data[config])throw new TypeError('No method named "'+config+'"');data[config]()}}))},_createClass(SPCollapse,null,[{key:"VERSION",get:function get(){return"2.0.2"}},{key:"Default",get:function get(){return Default}}]),SPCollapse}();$(document).on(Event.CLICK_DATA_API,Selector_DATA_TOGGLE,(function(event){"A"===event.currentTarget.tagName&&event.preventDefault();var $trigger=$(this),selector=getSelectorFromElement(this),selectors=[].slice.call(document.querySelectorAll(selector));$(selectors).each((function(){var $target=$(this),data,config=$target.data(DATA_KEY)?"toggle":$trigger.data();SPCollapse._jQueryInterface.call($target,config)}))})),$.fn[NAME]=SPCollapse._jQueryInterface,$.fn[NAME].Constructor=SPCollapse,$.fn[NAME].noConflict=function(){return $.fn[NAME]=JQUERY_NO_CONFLICT,SPCollapse._jQueryInterface}}()}(jQuery);