PageSourceSearch

https://www.imperva.com/blog/wp-content/themes/impv/dist/js/impv-i…t-collapse-9ceab1220e.min.js?ver=9ceab1220e

js imperva.com collected 2026-09-24 06:45:04 UTC 11,489 bytes, 2 lines download raw bytes

1!function i(a,s,l){function c(t,e){if(!s[t]){if(!a[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(u)return u(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var o=s[t]={exports:{}};a[t][0].call(o.exports,function(e){return c(a[t][1][e]||e)},o,o.exports,i,a,s,l)}return s[t].exports}for(var u="function"==typeof require&&require,e=0;e<l.length;e++)c(l[e]);return c}({1:[function(e,t,n){var r,o;r=this,o=function(l,c){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function i(o){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?t(Object(i),!0).forEach(function(e){var t,n,r;t=o,r=i[n=e],n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(i,e))})}return o}l=l&&l.hasOwnProperty("default")?l.default:l,c=c&&c.hasOwnProperty("default")?c.default:c;var a="collapse",u="bs.collapse",e="."+u,n=l.fn[a],d={toggle:!0,parent:""},f={toggle:"boolean",parent:"(string|element)"},p={SHOW:"show"+e,SHOWN:"shown"+e,HIDE:"hide"+e,HIDDEN:"hidden"+e,CLICK_DATA_API:"click"+e+".data-api"},g="show",h="collapse",m="collapsing",v="collapsed",y="width",_="height",w=".show, .collapsing",b='[data-toggle="collapse"]',s=function(){function s(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(b)),r=0,o=n.length;r<o;r++){var i=n[r],a=c.getSelectorFromElement(i),s=[].slice.call(document.querySelectorAll(a)).filter(function(e){return e===t});null!==a&&0<s.length&&(this._selector=a,this._triggerArray.push(i))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e,t,n,r=s.prototype;return r.toggle=function(){l(this._element).hasClass(g)?this.hide():this.show()},r.show=function(){var e,t,n=this;if(!this._isTransitioning&&!l(this._element).hasClass(g)&&(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(w)).filter(function(e){return"string"==typeof n._config.parent?e.getAttribute("data-parent")===n._config.parent:e.classList.contains(h)})).length&&(e=null),!(e&&(t=l(e).not(this._selector).data(u))&&t._isTransitioning))){var r=l.Event(p.SHOW);if(l(this._element).trigger(r),!r.isDefaultPrevented()){e&&(s._jQueryInterface.call(l(e).not(this._selector),"hide"),t||l(e).data(u,null));var o=this._getDimension();l(this._element).removeClass(h).addClass(m),this._element.style[o]=0,this._triggerArray.length&&l(this._triggerArray).removeClass(v).attr("aria-expanded",!0),this.setTransitioning(!0);var i="scroll"+(o[0].toUpperCase()+o.slice(1)),a=c.getTransitionDurationFromElement(this._element);l(this._element).one(c.TRANSITION_END,function(){l(n._element).removeClass(m).addClass(h).addClass(g),n._element.style[o]="",n.setTransitioning(!1),l(n._element).trigger(p.SHOWN)}).emulateTransitionEnd(a),this._element.style[o]=this._element[i]+"px"}}},r.hide=function(){var e=this;if(!this._isTransitioning&&l(this._element).hasClass(g)){var t=l.Event(p.HIDE);if(l(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",c.reflow(this._element),l(this._element).addClass(m).removeClass(h).removeClass(g);var r=this._triggerArray.length;if(0<r)for(var o=0;o<r;o++){var i=this._triggerArray[o],a=c.getSelectorFromElement(i);if(null!==a)l([].slice.call(document.querySelectorAll(a))).hasClass(g)||l(i).addClass(v).attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[n]="";var s=c.getTransitionDurationFromElement(this._element);l(this._element).one(c.TRANSITION_END,function(){e.setTransitioning(!1),l(e._element).removeClass(m).addClass(h).trigger(p.HIDDEN)}).emulateTransitionEnd(s)}}},r.setTransitioning=function(e){this._isTransitioning=e},r.dispose=function(){l.removeData(this._element,u),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},r._getConfig=function(e){return(e=i({},d,{}
1,e)).toggle=Boolean(e.toggle),c.typeCheckConfig(a,e,f),e},r._getDimension=function(){return l(this._element).hasClass(y)?y:_},r._getParent=function(){var e,n=this;c.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var t='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',r=[].slice.call(e.querySelectorAll(t));return l(r).each(function(e,t){n._addAriaAndCollapsedClass(s._getTargetFromElement(t),[t])}),e},r._addAriaAndCollapsedClass=function(e,t){var n=l(e).hasClass(g);t.length&&l(t).toggleClass(v,!n).attr("aria-expanded",n)},s._getTargetFromElement=function(e){var t=c.getSelectorFromElement(e);return t?document.querySelector(t):null},s._jQueryInterface=function(r){return this.each(function(){var e=l(this),t=e.data(u),n=i({},d,{},e.data(),{},"object"==typeof r&&r?r:{});if(!t&&n.toggle&&/show|hide/.test(r)&&(n.toggle=!1),t||(t=new s(this,n),e.data(u,t)),"string"==typeof r){if(void 0===t[r])throw new TypeError('No method named "'+r+'"');t[r]()}})},e=s,n=[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return d}}],(t=null)&&o(e.prototype,t),n&&o(e,n),s}();return l(document).on(p.CLICK_DATA_API,b,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var n=l(this),t=c.getSelectorFromElement(this),r=[].slice.call(document.querySelectorAll(t));l(r).each(function(){var e=l(this),t=e.data(u)?"toggle":n.data();s._jQueryInterface.call(e,t)})}),l.fn[a]=s._jQueryInterface,l.fn[a].Constructor=s,l.fn[a].noConflict=function(){return l.fn[a]=n,s._jQueryInterface},s},"object"==typeof n&&void 0!==t?t.exports=o("undefined"!=typeof window?window.jQuery:void 0!==r?r.jQuery:null,e("./util.js")):"function"==typeof define&&define.amd?define(["jquery","./util.js"],o):(r=r||self).Collapse=o(r.jQuery,r.Util)},{"./util.js":2}],2:[function(e,t,n){var r,o;r=this,o=function(i){"use strict";i=i&&i.hasOwnProperty("default")?i.default:i;var t="transitionend";function e(e){var t=this,n=!1;return i(this).one(l.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||l.triggerTransitionEnd(t)},e),this}var l={TRANSITION_END:"bsTransitionEnd",getUID:function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");if(!t||"#"===t){var n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var t=i(e).css("transition-duration"),n=i(e).css("transition-delay"),r=parseFloat(t),o=parseFloat(n);return r||o?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){i(e).trigger(t)},supportsTransitionEnd:function(){return Boolean(t)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var o=n[r],i=t[r],a=i&&l.isElement(i)?"element":(s=i,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(o).test(a))throw new Error(e.toUpperCase()+': Option "'+r+'" provided type "'+a+'" but expected type "'+o+'".')}var s},findShadowRoot:function(e){if(!document.documentElement.attachShadow)return null;if("function"!=typeof e.getRootNode)return e instanceof ShadowRoot?e:e.parentNode?l.findShadowRoot(e.parentNode):null;var t=e.getRootNode();return t instanceof ShadowRoot?t:null},jQueryDetection:function(){if(void 0===i)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=i.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||4<=e[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};return l.jQueryDetection(),i.fn.emulateTransitionEnd=e,i.event.special[l.TRANSITION_END]={bindType:t,delegateType:t,handle:function(e){if(i(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}},l},"object"==typeof n&&void 0!==t?t.exports=o("undefined"!=typeof window?window.jQuery:void 0!==r?r.jQuery:null):"function"==typeof define&&define.amd?define(["jquery"],o):(r=r||self).Util=o(r.jQuery)},{}],3:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;function r(r,e){"bootstrap"in r||(r.bootstrap={}),e.forEach(function(e){var t=e[0],n=e[1];r.bootstrap[t]=n})}n.default=r},{}],4:[function(e,t,n){"use strict";
1e("../imports/import-bootstrap-collapse"),$(function(){var e=$(".dropdown");e.on("shown.bs.dropdown",function(e){$(e.currentTarget).find(".impv-icon").addClass("drop-up-icon").removeClass("drop-down-icon"),$(e.currentTarget).parents(".round-filters-div").find(".hp-filter-btn").find(".impv-icon").addClass("drop-up-icon").removeClass("drop-down-icon")}),e.on("hidden.bs.dropdown",function(e){$(e.currentTarget).find(".impv-icon").addClass("drop-down-icon").removeClass("drop-up-icon"),$(e.currentTarget).parents(".round-filters-div").find(".hp-filter-btn").find(".impv-icon").addClass("drop-down-icon").removeClass("drop-up-icon")});var t=$(".faqs-collapse"),o=!1;t.on("show.bs.collapse",function(e){n(e)}),t.on("hide.bs.collapse",function(e){r(e)});var n=function t(n){var r=$(n.currentTarget),e="regular"===r.data("style")?0:300;setTimeout(function(){if(o)t(n);else{o=!0,r.hasClass("radio")&&i(n),r.parent().is($(".highlights:last"))&&$(".collapse-div").animate({scrollTop:$(".collapse-div")[0].scrollHeight},"slow");var e=$(n.currentTarget).attr("id").toString();$('a[data-target="#'+e+'"].collapse-button').children(".impv-icon").addClass("collapse-icon").removeClass("expand-icon"),n.stopPropagation(),o=!1}},e)},r=function(e){var t=$(e.currentTarget).attr("id").toString();$('a[data-target="#'+t+'"].collapse-button').children(".impv-icon").addClass("expand-icon").removeClass("collapse-icon"),e.stopPropagation()},i=function(e){$(e.currentTarget).closest(".collapse-div").find(".collapse-button").not($(e.currentTarget)).each(function(e,t){$(t).addClass("collapsed").parent().children(".collapse").collapse("hide")})}})},{"../imports/import-bootstrap-collapse":6}],5:[function(e,t,n){"use strict";e("./components/collapse")},{"./components/collapse":4}],6:[function(e,t,n){"use strict";var r=o(e("bootstrap/js/dist/collapse"));function o(e){return e&&e.__esModule?e:{default:e}}(0,o(e("impv/src/js/components/add-bootstrap-module")).default)(window,[["Collapse",r.default]])},{"bootstrap/js/dist/collapse":1,"impv/src/js/components/add-bootstrap-module":3}]},{},[5]);
2//# sourceMappingURL=maps/impv-import-collapse-9ceab1220e.min.js.map

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.