PageSourceSearch

https://www.imperva.com/blog/wp-content/themes/impv/dist/js/impv-n…ign-header-4d04c033d4.min.js?ver=4d04c033d4

js imperva.com collected 2026-09-24 06:45:10 UTC 78,887 bytes, 2 lines download raw bytes

1!function i(r,s,l){function c(t,e){if(!s[t]){if(!r[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(u)return u(t,!0);var o=new Error("Cannot find module '"+t+"'");throw o.code="MODULE_NOT_FOUND",o}var a=s[t]={exports:{}};r[t][0].call(a.exports,function(e){return c(r[t][1][e]||e)},a,a.exports,i,r,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){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"download";fetch(e).then(function(e){return e.blob().then(function(e){var t=document.createElement("a");t.href=URL.createObjectURL(e),t.setAttribute("download",n),t.click()})})}},{}],2:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;function o(){var l=document.querySelector("#dropdownMenuButton-choose-lang .name"),e=document.getElementById("choose-lang");if(l){var t=function(){var e=document.querySelectorAll("#choose-lang a"),t="",n=!0,o=!1,a=void 0;try{for(var i,r=e[Symbol.iterator]();!(n=(i=r.next()).done);n=!0){var s=i.value;s.firstChild.data==l.innerHTML&&(t=s.firstElementChild.innerHTML)}}catch(e){o=!0,a=e}finally{try{n||null==r.return||r.return()}finally{if(o)throw a}}l.innerHTML=t};$(e).on("select_changed",function(){t()}),t()}}n.default=o},{}],3:[function(e,t,n){"use strict";function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;function o(){var i=document.querySelector("#header"),e=document.querySelectorAll("#header .top-nav-items"),r="item-with-full-width-drop",s="item-with-full-width-drop-hovered";function t(e){var t=e.target,n=t===e.currentTarget,o=t.closest(".".concat(r));(n||o)&&(i.classList.contains(s)||i.classList.add(s))}function n(e){var t=e.relatedTarget,n=e.currentTarget,o=t?t!==n:null,a=t?!t.closest(".".concat(r)):null;(!t||o&&a)&&i.classList.contains(s)&&i.classList.remove(s)}a(e).forEach(function(e){e.querySelector(".full-width-drop")&&e.classList.add(r)});var o=document.querySelectorAll(".".concat(r));return{init:function(){i&&a(o).forEach(function(e){e.addEventListener("mouseover",t),e.addEventListener("mouseout",n)})},destroy:function(){i&&(a(o).forEach(function(e){e.removeEventListener("mouseover",t),e.removeEventListener("mouseout",n)}),i.classList.remove(s))}}}n.default=o},{}],4:[function(e,t,n){"use strict";function c(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;function o(e){function o(e){e.preventDefault();var t=e.currentTarget.accrodionDrop;t&&$(t).collapse("toggle")}function a(e){e.stopPropagation();var t=e.currentTarget.accrodionOpener;t&&t.setAttribute("aria-expanded",!0)}function i(e){e.stopPropagation();var t=e.currentTarget.accrodionOpener;t&&t.setAttribute("aria-expanded",!1)}var r=e.accParent,t=e.accItems,s=e.openerSelector,l=e.dropSelector;return{init:function(){r&&t&&c(t).forEach(function(e){if(!e.classList.contains("without-mobile-collapse")){var t=e.querySelector(s),n=e.querySelector(l);t&&n&&(n.style.display="",n.classList.add("collapse"),(n.accrodionOpener=t).accrodionDrop=n,t.originalHref=t.getAttribute("href"),t.setAttribute("href","javascript:void(0)"),t.setAttribute("aria-expanded","false"),$(n).collapse({parent:r,toggle:!1}),$(n).on("hide.bs.collapse",i),$(n).on("show.bs.collapse",a),t.addEventListener("click",o),e.accordionInited=!0)}})},destroy:function(){r&&t&&c(t).forEach(function(e){if(e.accordionInited){e.accordionInited=!1;var t=e.querySelector(s),n=e.querySelector(l);t&&n&&(t.removeEventListener("click",o),t.originalHref&&t.setAttribute("href",t.originalHref),$(n).off("hidden.bs.collapse",i),$(n).off("shown.bs.collapse",a),n.classList.remove("collapse"),n.accrodionOpener=null,$(n).collapse("dispose"),t.accrodionDrop=null,t.removeAttribute("aria-expanded"))}})}}}n.default=o},{}],5:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"makeResponsiveHeaderTemplateNew",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(n,"setHeaderHeight",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"fullNameToLangCode",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"makeHoverTBDropdown",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,"setNavHeight",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(n,"isTouchDevice",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(n,"handleHeaderHovering",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(n,"navBarItemsClick",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(n,"headerAccordion",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(n,"setScreenWidth",{enumerable:!0,get:function(){return f.default}});var o=m(e("./make-responsive-header-template-2")),a=m(e("./set-header-height")),i=m(e("./fullname-to-lang-code")),r=m(e("./make-hover-tb-dropdown")),s=m(e("./set-nav-height")),l=m(e("./is-touch-device")),c=m(e("./handle-header-hovering")),u=m(e("./nav-bar-items-click")),d=m(e("./header-accordion")),f=m(e("./set-screen-width"));
1function m(e){return e&&e.__esModule?e:{default:e}}},{"./fullname-to-lang-code":2,"./handle-header-hovering":3,"./header-accordion":4,"./is-touch-device":6,"./make-hover-tb-dropdown":7,"./make-responsive-header-template-2":8,"./nav-bar-items-click":9,"./set-header-height":10,"./set-nav-height":11,"./set-screen-width":12}],6:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){return"ontouchstart"in window||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints}},{}],7:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;function o(e){function i(e){var t=e.currentTarget,n=e.relatedTarget,o=(e.target,t.classList.contains("show")),a=t.querySelector(".dropdown-btn");o&&a&&(n&&(n===t||n.closest("#".concat(t.id)))||(a.click(),t.removeEventListener("mouseout",i)))}function t(e){var t=e.currentTarget,n=t.classList.contains("show"),o=t.querySelector(".dropdown-btn");!n&&o&&(o.click(),t.removeEventListener("mouseout",i),t.addEventListener("mouseout",i))}var n=!1;return{init:function(){e&&"function"==typeof $.fn.dropdown&&(n=!0,e.addEventListener("mouseover",t))},destroy:function(){e&&n&&(n=!1,e.removeEventListener("mouseover",t),e.removeEventListener("mouseout",i))}}}n.default=o},{}],8:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;function o(){function e(e,t,n){e.forEach(function(e){e&&t&&t.insertAdjacentElement(n,e)})}!function(){var e=document.getElementById("login-icon");if(e){var t=document.querySelector("#choose-login .dropdown-btn");t&&t.insertAdjacentElement("afterbegin",e)}}();var t=document.getElementById("choose-login"),n=document.getElementById("choose-lang"),o=document.getElementById("under-attack-link"),a=document.getElementById("phone-number-link"),i=document.querySelector("#header .header-btns-div"),r=document.querySelector("#header .holder-right-bar"),s=document.querySelector("#header .sub-nav"),l=document.querySelector("#header .nav-holder .wrap"),c=document.querySelector("#header .nav-holder .wrap .sub-nav-container");u.ResponsiveHelper.addRange({"..767":{on:function(){e([s,i],l,"beforeend"),e([o,a],s,"beforeend"),e([t,n],r,"beforeend")}},"768..1199":{on:function(){e([s,i],l,"beforeend"),e([t,n],s,"beforeend"),e([o,a],r,"beforeend")}},"1200..":{on:function(){e([s],c,"beforeend"),e([o,a,t,n],s,"beforeend")}}})}var u=e("../../main/helpers");n.default=o},{"../../main/helpers":19}],9:[function(e,t,n){"use strict";function m(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;function o(){function o(){clearTimeout(a),i.removeEventListener("click",f)}function t(e){var t=e.currentTarget,n=t.querySelector(".full-width-drop");t.classList.toggle(u),n&&t.classList.contains(u)?r.classList.add(d):r.classList.remove(d),o(),a=setTimeout(function(){i.addEventListener("click",f)},100)}function e(t){s&&m(s).forEach(function(e){e.querySelector(".drop, .full-width-drop")&&t&&"function"==typeof t&&t(e)})}var a=null,i=document.documentElement,r=document.querySelector("#header"),n=document.getElementById("nav-main"),s=n&&n.querySelectorAll(".top-nav-items"),l="#nav-main .drop, #nav-main .full-width-drop",c=document.querySelectorAll(l),u="open",d="full-width-drop-click-opened",f=function(e){var t=e.target;if(c){var n=m(c);
1n.indexOf(t)<0&&!t.closest(l)&&(o(),n.forEach(function(e){var t=e.closest("li");t&&t.classList.remove(u)}),r.classList.remove(d))}};return{init:function(){e(function(e){e.addEventListener("click",t)})},destroy:function(){o(),r.classList.remove(d),e(function(e){e.removeEventListener("click",t),e.classList.remove(u)})}}}n.default=o},{}],10:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;function o(){var t=document.getElementById("header"),n=document.querySelector(".header-placeholder"),o="";if(t&&n){var e=function(){var e=window.getComputedStyle(t).getPropertyValue("height");o!==e&&(o=e,n.style.height=e)},a=function(){e()};e(),window.addEventListener("resize",(0,i.throttle)(a,400)),window.addEventListener("orientationchange",a)}}var i=e("../../main/helpers");n.default=o},{"../../main/helpers":19}],11:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;function o(){function e(){s=document.querySelector(".cookie-consent-banner"),l=document.querySelector(".cookie-consent-banner .close-btn-consent")}function t(){window.addEventListener("resize",d),window.addEventListener("orientationchange",d),l&&l.addEventListener("click",f),u()}function n(){e(),window.removeEventListener("resize",d),window.removeEventListener("orientationchange",d),l&&l.removeEventListener("click",f),s||document.removeEventListener("cookieconsentbannerinserted",m),o.style.setProperty(a,"")}var o=document.documentElement,a="--nav-height",i=getComputedStyle(o).getPropertyValue(a),r=document.querySelector("#header"),s=null,l=null,c=!1,u=function(){var e=s?s.offsetHeight:0,t=r?r.offsetHeight:0,n="calc(var(--screen-height) - ".concat(t+e,"px)");n!==i&&o.style.setProperty(a,n)},d=function(){u()},f=function(){n()};function m(){e(),c&&t()}function h(){document.documentElement.style.setProperty("--screen-height","".concat(window.innerHeight,"px"))}return h(),window.addEventListener("resize",h),window.addEventListener("orientaionchange",h),{init:function(){c=!0,e(),s?t():document.addEventListener("cookieconsentbannerinserted",m)},destroy:function(){c=!1,n()}}}n.default=o},{}],12:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;function o(){function e(){t.style.setProperty("--screen-width","".concat(t.clientWidth,"px"))}var t=document.documentElement;return{init:function(){e(),window.addEventListener("resize",e),window.addEventListener("orientaionchange",e)},destroy:function(){window.removeEventListener("resize",e),window.removeEventListener("orientaionchange",e),t.style.setProperty("--screen-width","")}}}n.default=o},{}],13:[function(e,t,n){"use strict";function l(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=function(){function n(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),e&&(this.holder=e,this.options=Object.assign({itemsSelector:"li",dropSelector:".drop",activeClass:"opened"},t),this.init())}var e,t,o;return e=n,(t=[{key:"init",value:function(){this.findElements(),this.attachEvents()}},{key:"findElements",value:function(){this.items=this.holder.querySelectorAll(this.options.itemsSelector)}},{key:"attachEvents",value:function(){var s=this;this.mouseoverFn=function(e){var t=e.target;if(t){var n=l(s.items).filter(function(e){return e.classList.contains(s.options.activeClass)});if(n.length){var o=t===n[0],a=t.closest(s.options.itemsSelector+"."+s.options.activeClass),i=t.classList.contains(s.options.itemsSelector),r=t.closest(s.options.itemsSelector);
1o||a||!i&&!r||n.forEach(function(e){var t=e.querySelector(s.options.dropSelector);e.classList.remove(s.options.activeClass),t&&(t.style.display="none")})}}},this.holder.addEventListener("mouseover",this.mouseoverFn)}},{key:"destroy",value:function(){this.holder.removeEventListener("mouseover",this.mouseoverFn)}}])&&a(e.prototype,t),o&&a(e,o),n}();n.default=o},{}],14:[function(e,t,n){"use strict";function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(i){function r(e){this.options=i.extend({holder:null,popup:".popup",btnOpen:".open",btnClose:".close",openClass:"popup-active",clickEvent:"click",mode:"click",hideOnClickLink:!0,hideOnClickOutside:!0,delay:50},e),this.options.holder&&(this.holder=i(this.options.holder),this.init())}r.prototype={init:function(){this.findElements(),this.attachEvents(),this.makeCallback("onInit",this)},findElements:function(){this.popup=this.holder.find(this.options.popup),this.btnOpen=this.holder.find(this.options.btnOpen),this.btnClose=this.holder.find(this.options.btnClose)},attachEvents:function(){var t=this;if(this.clickMode=o||t.options.mode===t.options.clickEvent,this.clickMode)this.btnOpen.bind(t.options.clickEvent+".popup",function(e){t.holder.hasClass(t.options.openClass)?t.options.hideOnClickLink&&t.hidePopup():t.showPopup(),e.preventDefault()}),this.outsideClickHandler=this.bind(this.outsideClickHandler,this);else{var n,e=function(e){clearTimeout(n),n=setTimeout(function(){e.call(t)},t.options.delay)};this.btnOpen.on("mouseover.popup",function(){e(t.showPopup)}).on("mouseout.popup",function(){e(t.hidePopup)}),this.popup.on("mouseover.popup",function(){e(t.showPopup)}).on("mouseout.popup",function(){e(t.hidePopup)})}this.btnClose.on(t.options.clickEvent+".popup",function(e){t.hidePopup(),e.preventDefault()})},outsideClickHandler:function(e){var t=i((e.changedTouches?e.changedTouches[0]:e).target);t.closest(this.popup).length||t.closest(this.btnOpen).length||this.hidePopup()},showPopup:function(){this.holder.addClass(this.options.openClass),this.makeCallback("onShow",!0,this),this.popup.css({display:"block"}),this.clickMode&&this.options.hideOnClickOutside&&!this.outsideHandlerActive&&(this.outsideHandlerActive=!0,i(document).on("click touchstart",this.outsideClickHandler))},hidePopup:function(){this.holder.removeClass(this.options.openClass),this.makeCallback("onHide",!0,this),this.popup.css({display:"none"}),this.clickMode&&this.options.hideOnClickOutside&&this.outsideHandlerActive&&(this.outsideHandlerActive=!1,i(document).off("click touchstart",this.outsideClickHandler))},bind:function(e,t,n){return function(){return e.apply(t,n?[n]:arguments)}},destroy:function(){this.makeCallback("onHide",!0,this),this.popup.removeAttr("style"),this.holder.removeClass(this.options.openClass),this.btnOpen.add(this.btnClose).add(this.popup).off(".popup"),i(document).off("click touchstart",this.outsideClickHandler),this.makeCallback("onDestroy",this)},makeCallback:function(e){if("function"==typeof this.options[e]){var t=Array.prototype.slice.call(arguments);t.shift(),this.options[e].apply(this,t)}}};var o=/Windows Phone/.test(navigator.userAgent)||"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch;i.fn.contentPopupDrop=function(n){var o=Array.prototype.slice.call(arguments),a=o[0];return this.each(function(){var e=jQuery(this),t=e.data("ContentPopupDrop");"object"===s(n)||void 0===n?e.data("ContentPopupDrop",new r(i.extend({holder:this},n))):"string"==typeof a&&t&&"function"==typeof t[a]&&(o.shift(),t[a].apply(t,o))})}}(jQuery)},{}],15:[function(e,t,n){"use strict";!function(l){l.fn.sameHeight=function(e){var r=l.extend({skipClass:"same-height-ignore",leftEdgeClass:"same-height-left",rightEdgeClass:"same-height-right",elements:">*",flexible:!1,multiLine:!1,useMinHeight:!1,biggestHeight:!1},e);return this.each(function(){var e,t,n=l(this),o=n.find(r.elements).not("."+r.skipClass);if(o.length){i();var a=function(){t||(t=!0,i(),clearTimeout(e),e=setTimeout(function(){i(),setTimeout(function(){t=!1},10)},100))};r.flexible&&l(window).bind("resize orientationchange fontresize",a),l(window).bind("load",a)}function i(){o.css(r.useMinHeight&&c?"minHeight":"height",""),r.multiLine?function(e,n){var o,a=l(),i=0,r=e.eq(0).offset().top;e.each(function(e){var t=l(this);Math.trunc(Math.abs(t.offset().top-r))<3?a=a.add(this):(o=s(a),i=Math.max(i,u(a,o,n)),r=(a=t).offset().top)}),a.length&&(o=s(a),i=Math.max(i,u(a,o,n)));n.biggestHeight&&e.css(n.useMinHeight&&c?"minHeight":"height",i)}(o,r):u(o,n,r)}})};var c=void 0!==document.documentElement.style.maxHeight;function s(e){var t=0;return e.each(function(){t=Math.max(t,l(this).outerHeight())}),t}function u(e,a,i){var r,s="number"==typeof a?a:a.height();return e.removeClass(i.leftEdgeClass).removeClass(i.rightEdgeClass).each(function(e){var t=l(this),n=0,o="border-box"===t.css("boxSizing")||"border-box"===t.css("-moz-box-sizing")||"border-box"===t.css("-webkit-box-sizing");"number"!=typeof a&&t.parents().each(function(){var e=l(this);if(a.is(this))return!1;n+=e.outerHeight()-e.height()}),r=s-n,0<(r-=o?0:t.outerHeight()-t.height())&&t.css(i.useMinHeight&&c?"minHeight":"height",r)}),e.filter(":first").addClass(i.leftEdgeClass),e.filter(":last").addClass(i.rightEdgeClass),r}}(jQuery)},{}],16:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){this.$holder=e,this.options=t,this.init()}var l,a,c,i,o,u;function d(){var e=o.width();e!==c&&(c=e,a.each(i,function(e,t){a.each(t.data,function(e,t){t.currentActive&&!f(t.range[0],t.range[1])&&(t.currentActive=!1,"function"==typeof t.disableCallback&&t.disableCallback())}),a.each(t.data,function(e,t){!t.currentActive&&f(t.range[0],t.range[1])&&(t.currentActive=!0,"function"==typeof t.enableCallback&&t.enableCallback())})}))}function f(e,t){var n,o,a,i="";return 0<e&&(i+="(min-width: "+e+"px)"),t<1/0&&(i+=(i?" and ":"")+"(max-width: "+t+"px)"),n=i,o=e,a=t,window.matchMedia&&u?matchMedia(n).matches:window.styleMedia?styleMedia.matchMedium(n):window.media?media.matchMedium(n):o<=c&&
1c<=a}l=jQuery,jQuery(window),s.prototype={init:function(){this.$tabLinks=this.$holder.find(this.options.tabLinks),this.setStartActiveIndex(),this.setActiveTab(),this.options.autoHeight&&(this.$tabHolder=l(this.$tabLinks.eq(0).attr(this.options.attrib)).parent()),this.makeCallback("onInit",this)},setStartActiveIndex:function(){var e,t=this.getClassTarget(this.$tabLinks),n=t.filter("."+this.options.activeClass),o=this.$tabLinks.filter("["+this.options.attrib+'="'+location.hash+'"]');this.options.checkHash&&o.length&&(n=o),e=t.index(n),this.activeTabIndex=this.prevTabIndex=-1===e?this.options.defaultTab?0:null:e},setActiveTab:function(){var i=this,r=!!this.options.tabUnderlineClass&&l(".".concat(this.options.tabUnderlineClass));this.$tabLinks.each(function(e,t){var n=l(t),o=i.getClassTarget(n),a=l(n.attr(i.options.attrib));e!==i.activeTabIndex?(o.removeClass(i.options.activeClass),a.addClass(i.options.tabHiddenClass).removeClass(i.options.activeClass)):(o.addClass(i.options.activeClass),a.removeClass(i.options.tabHiddenClass).addClass(i.options.activeClass),r&&r.css({left:this.offsetLeft,width:this.offsetWidth})),i.attachTabLink(n,e)})},attachTabLink:function(e,n){var o=this,a=this.options.tabUnderlineClass;e.on(this.options.event+".tabset",function(e){e.preventDefault(),o.activeTabIndex===o.prevTabIndex&&o.activeTabIndex!==n&&(o.activeTabIndex=n,o.switchTabs()),o.options.checkHash&&(location.hash=jQuery(this).attr("href").split("#")[1]);var t=this.parentElement.parentElement.querySelectorAll(".".concat(a));t&&jQuery(t[0]).css({left:this.offsetLeft,width:this.offsetWidth})})},resizeHolder:function(e){var t=this;e?(this.$tabHolder.height(e),setTimeout(function(){t.$tabHolder.addClass("transition")},10)):t.$tabHolder.removeClass("transition").height("")},switchTabs:function(){var e=this,t=this.$tabLinks.eq(this.prevTabIndex),n=this.$tabLinks.eq(this.activeTabIndex),o=this.getTab(t),a=this.getTab(n);o.removeClass(this.options.activeClass),e.haveTabHolder()&&this.resizeHolder(o.outerHeight()),setTimeout(function(){e.getClassTarget(t).removeClass(e.options.activeClass),o.addClass(e.options.tabHiddenClass),a.removeClass(e.options.tabHiddenClass).addClass(e.options.activeClass),e.getClassTarget(n).addClass(e.options.activeClass),e.haveTabHolder()?(e.resizeHolder(a.outerHeight()),setTimeout(function(){e.resizeHolder(),e.prevTabIndex=e.activeTabIndex,e.makeCallback("onChange",e)},e.options.animSpeed)):e.prevTabIndex=e.activeTabIndex},this.options.autoHeight?this.options.animSpeed:1)},getClassTarget:function(e){return this.options.addToParent?e.parent():e},getActiveTab:function(){return this.getTab(this.$tabLinks.eq(this.activeTabIndex))},getTab:function(e){return l(e.attr(this.options.attrib))},haveTabHolder:function(){return this.$tabHolder&&this.$tabHolder.length},destroy:function(){var t=this;this.$tabLinks.off(".tabset").each(function(){var e=l(this);t.getClassTarget(e).removeClass(t.options.activeClass),l(e.attr(t.options.attrib)).removeClass(t.options.activeClass+" "+t.options.tabHiddenClass)}),this.$holder.removeData("Tabset")},makeCallback:function(e){if("function"==typeof this.options[e]){var t=Array.prototype.slice.call(arguments);t.shift(),this.options[e].apply(this,t)}}},l.fn.tabset=function(n){var o=Array.prototype.slice.call(arguments),a=o[0],i=l.extend({activeClass:"active",addToParent:!1,autoHeight:!1,checkHash:!1,defaultTab:!0,animSpeed:500,tabLinks:"a",attrib:"href",event:"click",tabHiddenClass:"js-tab-hidden",tabUnderlineClass:!1},n);return i.autoHeight=i.autoHeight,this.each(function(){var e=jQuery(this),t=e.data("Tabset");"object"===r(n)||void 0===n?e.data("Tabset",new s(e,i)):"string"==typeof a&&t&&"function"==typeof t[a]&&(o.shift(),t[a].apply(t,o))})},window.ResponsiveHelper=(a=jQuery,i=[],o=a(window),u=!1,window.matchMedia&&(window.Window&&window.matchMedia===Window.prototype.matchMedia?u=!0:-1<window.matchMedia.toString().indexOf("native")&&(u=!0)),o.bind("load resize orientationchange",d),{addRange:function(e){var o={data:{}};a.each(e,function(e,t){var n;o.data[e]={range:(n=e.split(".."),[parseInt(n[0],10)||-1/0,parseInt(n[1],10)||1/0].sort(function(e,t){return e-t})),enableCallback:t.on,disableCallback:t.off}}),i.push(o),c=null,d()}})},{}],17:[function(e,t,d){(function(a){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.findById=d.createForm=d.default=void 0;var l=e("impv/src/js/services/geo-location-service"),b=e("impv/src/js/services/translate-service");function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],o=!0,a=!1,i=void 0;try{for(var r,s=e[Symbol.iterator]();!(o=(r=s.next()).done)&&(n.push(r.value),!t||n.length!==t);o=!0);}catch(e){a=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(a)throw i}}return n}
1(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function c(e,t,n,o,a,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,a)}function k(s){return function(){var e=this,r=arguments;return new Promise(function(t,n){var o=s.apply(e,r);function a(e){c(o,t,n,a,i,"next",e)}function i(e){c(o,t,n,a,i,"throw",e)}a(void 0)})}}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function g(t){return Object.keys(n).find(function(e){return n[e]===t})}var n={af:"afghanistan",ax:"aland islands",al:"albania",dz:"algeria",as:"american samoa",ad:"andorra",ao:"angola",ai:"anguilla",aq:"antarctica",ag:"antigua and barbuda",ar:"argentina",am:"armenia",aw:"aruba",asc:"ascension island",au:"australia",at:"austria",az:"azerbaijan",bs:"bahamas",bh:"bahrain",bd:"bangladesh",bb:"barbados",by:"belarus",be:"belgium",bz:"belize",bj:"benin",bm:"bermuda",bt:"bhutan",bo:"bolivia",bq:"bonaire",ba:"bosnia and herzegovina",bw:"botswana",bv:"bouvet island",br:"brazil",io:"british indian ocean territory",bn:"brunei darussalam",bg:"bulgaria",bf:"burkina faso",bi:"burundi",kh:"cambodia",cm:"cameroon",ca:"canada",cv:"cape verde",ky:"cayman islands",cf:"central african republic",td:"chad",cl:"chile",cn:"china",cx:"christmas island",cc:"cocos (keeling) islands",co:"colombia",km:"comoros",cg:"congo",cd:"congo, dem. rep. of the",ck:"cook islands",cr:"costa rica",ci:"ivory coast",hr:"croatia",cu:"cuba",cuw:"curacao",cy:"cyprus",cz:"czech republic",dk:"denmark",dj:"djibouti",dm:"dominica",do:"dominican republic",ec:"ecuador",eg:"egypt",sv:"el salvador",gq:"equatorial guinea",er:"eritrea",ee:"estonia",et:"ethiopia",fk:"falkland islands (malvinas)",fo:"faroe islands",fj:"fiji",fi:"finland",fr:"france",gf:"french guiana",pf:"french polynesia",tf:"french southern territories",ga:"gabon",gm:"gambia",ge:"georgia",de:"germany",gh:"ghana",gi:"gibraltar",gr:"greece",gl:"greenland",gd:"grenada",gp:"guadeloupe",gu:"guam",gt:"guatemala",gg:"guernsey",gn:"guinea",gw:"guinea-bissau",gy:"guyana",ht:"haiti",hm:"heard island & mcdonald islands",va:"holy see (vatican city state)",hn:"honduras",hk:"hong kong",hu:"hungary",is:"iceland",in:"india",id:"indonesia",ir:"iran, islamic republic of",iq:"iraq",ie:"ireland",im:"isle of man",il:"israel",it:"italy",jm:"jamaica",jp:"japan",je:"jersey",jo:"jordan",kz:"kazakhstan",ke:"kenya",ki:"kiribati",xk:"kosovo",kw:"kuwait",kg:"kyrgyzstan",la:"lao",lv:"latvia",lb:"lebanon",ls:"lesotho",lr:"liberia",ly:"libyan arab jamahiriya",li:"liechtenstein",lt:"lithuania",lu:"luxembourg",mo:"macao",mk:"macedonia",mg:"madagascar",mw:"malawi",my:"malaysia",mv:"maldives",ml:"mali",mt:"malta",mh:"marshall islands",mq:"martinique",mr:"mauritania",mu:"mauritius",yt:"mayotte",mx:"mexico",fm:"micronesia, federated states of",md:"moldova",mc:"monaco",mn:"mongolia",me:"montenegro",ms:"montserrat",ma:"morocco",mz:"mozambique",mm:"myanmar",na:"namibia",nr:"nauru",np:"nepal",nl:"netherlands",an:"netherlands antilles",nc:"new caledonia",nz:"new zealand",ni:"nicaragua",ne:"niger",ng:"nigeria",nu:"niue",nf:"norfolk island",kr:"north norea",mp:"northern mariana islands",no:"norway",om:"oman",pk:"pakistan",pw:"palau",ps:"palestinian territory",pa:"panama",pg:"papua new guinea",py:"paraguay",pe:"peru",ph:"philippines",pn:"pitcairn",pl:"poland",pt:"portugal",pr:"puerto rico",qa:"qatar",re:"reunion",ro:"romania",ru:"russian federation",rw:"rwanda",bl:"saint barthelemy",sh:"saint helena",kn:"saint kitts and nevis",lc:"saint lucia",mf:"saint martin",pm:"saint pierre and miquelon",vc:"saint vincent and grenadines",ws:"samoa",sm:"san marino",st:"sao tome and principe",sa:"saudi arabia",sn:"senegal",rs:"serbia",sc:"seychelles",sl:"sierra leone",sg:"singapore",sx:"sint maartin (dutch part)",sk:"slovakia",si:"slovenia",sb:"solomon islands",so:"somalia",za:"south africa",gs:"south georgia and sandwich islands",kp:"south korea",sd:"sudan",es:"spain",lk:"sri lanka",sr:"suriname",sj:"svalbard and jan mayen",sz:"swaziland",se:"sweden",ch:"switzerland",sy:"syrian arab republic",tw:"taiwan",tj:"tajikistan",tz:"tanzania",th:"thailand",tl:"timor-leste",tg:"togo",tk:"tokelau",to:"tonga",tt:"trinidad and tobago",tn:"tunisia",tr:"turkey",tm:"turkmenistan",tc:"turks and caicos islands",tv:"tuvalu",ug:"uganda",ua:"ukraine",ae:"united arab emirates",gb:"united kingdom",us:"united states",um:"united states minor outlying islands",uy:"uruguay",uz:"uzbekistan",vu:"vanuatu",ve:"venezuela",vn:"vietnam",vg:"virgin islands, british",vi:"virgin islands, u.s.",wf:"wallis and futuna",eh:"western sahara",ye:"yemen",zm:"zambia",zw:"zimbabwe"},w=["gamil.com","gmail.co","gmail.org","gmail.com","aol.com","att.net","comcast.net","facebook.com","gmx.com","googlemail.com","google.com","hotmail.com","hotmail.co.uk","mac.com","me.com","mail.com","msn.com","live.com","sbcglobal.net","verizon.net","yahoo.com","yahoo.co.uk","email.com","fastmail.fm","games.com ","gmx.net","hush.com","hushmail.com","icloud.com","iname.com","inbox.com","lavabit.com","love.com ","outlook.com","pobox.com","protonmail.ch","protonmail.com","tutanota.de","tutanota.com","tutamail.com","tuta.io","keemail.me","rocketmail.com ","safe-mail.net","wow.com ","ygm.com ","ymail.com ","zoho.com","yandex.com","bellsouth.net","charter.net","cox.net","earthlink.net","juno.com","btinternet.com","virginmedia.com","blueyonder.co.uk","freeserve.co.uk","live.co.uk","ntlworld.com","o2.co.uk","orange.net","sky.com","talktalk.co.uk","tiscali.co.uk","virgin.net","wanadoo.co.uk","bt.com","sina.com","sina.cn","qq.com","naver.com","hanmail.net","daum.
1net","nate.com","yahoo.co.jp","yahoo.co.kr","yahoo.co.id","yahoo.co.in","yahoo.com.sg","yahoo.com.ph","163.com","yeah.net","126.com","21cn.com","aliyun.com","foxmail.com","hotmail.fr","live.fr","laposte.net","yahoo.fr","wanadoo.fr","orange.fr","gmx.fr","sfr.fr","neuf.fr","free.fr","gmx.de","hotmail.de","live.de","online.de","t-online.de ","web.de","yahoo.de","libero.it","virgilio.it","hotmail.it","aol.it","tiscali.it","alice.it","live.it","yahoo.it","email.it","tin.it","poste.it","teletu.it","mail.ru","rambler.ru","yandex.ru","ya.ru","list.ru","hotmail.be","live.be","skynet.be","voo.be","tvcablenet.be","telenet.be","hotmail.com.ar","live.com.ar","yahoo.com.ar","fibertel.com.ar","speedy.com.ar","arnet.com.ar","yahoo.com.mx","live.com.mx","hotmail.es","hotmail.com.mx","prodigy.net.mx","yahoo.ca","hotmail.ca","bell.net","shaw.ca","sympatico.ca","rogers.com","yahoo.com.br","hotmail.com.br","outlook.com.br","uol.com.br","bol.com.br","terra.com.br","ig.com.br","itelefonica.com.br","r7.com","zipmail.com.br","globo.com","globomail.com","oi.com.br"],u=a.marketoForms=a.marketoForms||{},C=location.protocol+"//"+location.host,o=function(){function c(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length?arguments[2]:void 0,o=3<arguments.length?arguments[3]:void 0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),this.uuid=t.uuid||parseInt(1e4*Math.random()),this.uniqueIdPostfix="_"+this.uuid,this.formId=e,this.formArgs=t,this.runNextFormFn=o,this.cbs=[],this.onSubmitCbs=[],this.onValidateCbs=[],this.pressOnEnterTimer=null,this.clickOnSubmitTimer=null,this.keyEnterPressed=!1,this.submitBtnClicked=!1,this.elem=n,this.buttonText=this.getFormElem(this.form).find('.mktoButtonWrap button[type="submit"]').text(),this.elem||console.error("MarketoForm:constructor missing elem param for form ID ",this.formId),this.modifyElementsId(),this.setupMarketoForm(t),this.createForm(),this.sendValidate(),this.sendSubmit()}var e,t,n,o;return e=c,t=[{key:"createForm",value:(o=k(regeneratorRuntime.mark(function e(){var n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.elem&&$(this.elem).attr("id","mktoForm_".concat(this.formId));try{"MktoForms2"in window?MktoForms2.loadForm("//go.imperva.com","727-WRL-406",this.formId,function(e){n.form=e,n.formElem=n.getFormElem(e),n.formElem.attr("id",""),n.formElem.addClass("mkto-loaded"),n.isHtmlTemplate=0<$(".mktoTemplateBox",n.formElem).length,n.isHtmlTemplate&&n.setHtmlTemplate(),n.fireEvent(),"function"==typeof n.runNextFormFn&&n.runNextFormFn();var t=new CustomEvent("mktoFormLoaded",{detail:n.formElem.attr("data-form-id")});$(n.formElem).length&&$(n.formElem)[0].dispatchEvent(t)}):console.error("MktoForms2 is not define")}catch(e){console.error("Error in class MarketoForm",e)}case 2:case"end":return e.stop()}},e,this)})),function(){return o.apply(this,arguments)})},{key:"snapShotValidation",value:function(){var l=this;this.onSuccess(function(e){var t={},n=$(e.formElem),o=n.find("#FirstName".concat(l.uniqueIdPostfix)).val(),a=n.find("#LastName".concat(l.uniqueIdPostfix)).val();t.name=(void 0!==n.find("#fullNameTrendemon".concat(l.uniqueIdPostfix)).val()?n.find("#fullNameTrendemon".concat(l.uniqueIdPostfix)).val():o+"-"+a).split(" ").join("-"),t.telephone=void 0!==n.find("#Phone".concat(l.uniqueIdPostfix)).val()?n.find("#Phone".concat(l.uniqueIdPostfix)).val():"",t.email=n.find("#Email".concat(l.uniqueIdPostfix)).val(),t.state=void 0!==n.find("#State".concat(l.uniqueIdPostfix)).val()?"&state="+n.find("#State".concat(l.uniqueIdPostfix)).val():"",t.jobTitle=n.find("#Title".concat(l.uniqueIdPostfix)).val(),t.company=n.find("#Company".concat(l.uniqueIdPostfix)).val();var i=n.find($('[name="eULAConsent"]'));t.eULAConsent=i.prop("checked"),t.eULAConsent_copy=i.next().html();var r,s=n.find("#Country".concat(l.uniqueIdPostfix));return s.length&&(r="cote d'ivoire"==s.val().toLowerCase()?"ivory coast":"south sudan"==s.val().toLowerCase()?"sudan":s.val().toLowerCase()),t.country=void 0!==g(r)?g(r):r,$.ajax({type:"POST",url:C+"/wp-json/imperva_snapshot/v1/register/",data:t,async:!1,dataType:"json",success:function(e){$.parseJSON(e)[0].includes("200")?window.location.assign("/resources/snapshot-thank-you/"):window.location.assign("/resources/snapshot-problem/")},error:function(){window.location.assign("/resources/snapshot-problem/")}}),!1})}},{key:"modifyElementsId",value:function(){var a=this;this.onLoad(function(e){var t=a.getFormElem(e);if(t.length){var n=t.find("input, select, textarea"),o=t.find("label");n.each(function(e,t){var n=$(t),o=n.attr("id");o&&n.attr("id",o+a.uniqueIdPostfix)}),o.each(function(e,t){var n=$(t),o=n.attr("for");o&&n.attr("for",o+a.uniqueIdPostfix)})}})}},{key:"eCustomsValidation",value:function(e){var p=this,y=0<arguments.length&&void 0!==e?e:null;this.onSubmit(function(e){var t=$(e.formElem),n=t.find("#FirstName".concat(p.uniqueIdPostfix)).val(),o=t.find("#LastName".concat(p.uniqueIdPostfix)).val();if("1"!=$("#allow_spaces").val()&&"2143"==p.formId&&(n.includes(" ")||n.includes("test")))return e.setErrorMessage("FirstName","please enter a valid name"),!1;if("1"!=$("#allow_spaces").val()&&"2143"==p.formId&&(o.includes(" ")||o.includes("test")))return e.setErrorMessage("LastName","please enter a valid name"),!1;var a,i=(void 0!==t.find("#fullNameTrendemon".concat(p.uniqueIdPostfix)).val()?t.find("#fullNameTrendemon".concat(p.uniqueIdPostfix)).val():n+"-"+o).split(" ").join("-"),r=void 0!==t.find("#Phone".concat(p.uniqueIdPostfix)).val()?t.find("#Phone".concat(p.uniqueIdPostfix)).val().split("-").join(""):"",s=t.find("#Email".concat(p.uniqueIdPostfix)).val(),l=void 0!==t.find("#State".concat(p.uniqueIdPostfix)).val()?"&state="+t.find("#State".concat(p.uniqueIdPostfix)).val():"",c=t.find("#Title".concat(p.uniqueIdPostfix)).val(),u=t.find("#Company".concat(p.uniqueIdPostfix)).val().replace(" ","%20"),d=t.find("#Country".concat(p.uniqueIdPostfix));
1d.length&&(a="cote d'ivoire"==d.val().toLowerCase()?"ivory coast":"south sudan"==d.val().toLowerCase()?"sudan":d.val().toLowerCase());var f=void 0!==g(a)?g(a):a,m=C+"/wp-json/ecustoms_screening/v1/formID/".concat(p.formId,"?email=").concat(s,"&name=").concat(i,"&telephone=").concat(r,"&jobTitle=").concat(c,"&country=").concat(f).concat(l,"&company=").concat(u),h=!1,v=!1;return $.ajax({url:m,async:!1,dataType:"json",success:function(e){null!=e&&e.approved?(h=!0,null!=y&&(v=y)):(null===e&&console.log("eCustoms not available"),h=!(v="/resources/free-tools-thank-you/"))}}),p.location_assign=v,h})}},{key:"fireEvent",value:function(){var t=this;this.cbs&&this.cbs.forEach(function(e){return e(t.form)})}},{key:"onLoad",value:function(e){return"function"==typeof e&&(this.form?e(this.form):(this.cbs||(this.cbs=[]),this.cbs.push(e))),this}},{key:"registerEvent",value:function(n,o,a){var i=this;return"function"==typeof o?(a=o,this.onLoad(function(e){var t=i.getFormElem(e);n&&n.split(" ").filter(function(e){return!!e}).forEach(function(e){$(t).on(e,"input, textarea, select",a)})})):o&&"function"==typeof a&&this.onLoad(function(e){var t=i.getFormElem(e);n&&n.split(" ").filter(function(e){return!!e}).forEach(function(e){$(t).on(e,'input[name="'.concat(o,'"], textarea[name="').concat(o,'"], select[name="').concat(o,'"]'),a)})}),this}},{key:"onSuccess",value:function(a){var i=this;return"function"==typeof a&&this.onLoad(function(e){return e.onSuccess(function(e,t){var n=document.querySelector(".form-block"),o=document.querySelector(".form-section .form-wrapper");return o&&o.classList.contains("form-block-class")&&n.classList.add("form-block-success"),a(i,e,t)})}),this}},{key:"onSubmit",value:function(e){return"function"==typeof e&&this.onSubmitCbs.push(e),this}},{key:"sendSubmit",value:function(){var a=this;this.onLoad(function(o){return o.onSubmit(function(e){var t=a.getButtonText(o);a.changeButtonText("Please wait",o),a.setButtonDisabled(o);var n=[];return a.onSubmitCbs.forEach(function(e){n.push(e(a))}),!n.includes(!1)&&e?(o.submittable(!0),a.location_assign&&window.location.assign(a.location_assign),!0):(a.changeButtonText(t,o),a.setButtonEnable(o),o.submittable(!1),a.location_assign&&window.location.assign(a.location_assign),!1)})})}},{key:"onValidate",value:function(e){return"function"==typeof e&&this.onValidateCbs.push(e),this}},{key:"sendValidate",value:function(){var o=this;this.onLoad(function(n){return n.onValidate(function(e){var t=[];return o.onValidateCbs.forEach(function(e){t.push(e(o))}),!t.includes(!1)&&e?(n.submittable(!0),!0):(n.submittable(!1),!1)})})}},{key:"setGDPR",value:function(t){var n=this;return this.onLoad(function(e){return n.getFormElem(e).find("#InstructOpt_in_Explicit_Consent__c").parent().find("label").text(t)}),this}},{key:"setButtonText",value:function(t){var n=this;return this.onLoad(function(e){return n.getFormElem(e).find('.mktoButtonWrap button[type="submit"]').text(t)}),this}},{key:"setButtonDisabled",value:function(e){this.getFormElem(e).find('.mktoButtonWrap button[type="submit"]').attr("disabled",!0)}},{key:"setButtonEnable",value:function(e){this.getFormElem(e).find('.mktoButtonWrap button[type="submit"]').removeAttr("disabled")}},{key:"changeButtonText",value:function(e,t){this.getFormElem(t).find('.mktoButtonWrap button[type="submit"]').html(e)}},{key:"getButtonText",value:function(e){return this.getFormElem(e).find('.mktoButtonWrap button[type="submit"]').html()}},{key:"setButtonClasses",value:function(t){var n=this;return t&&this.onLoad(function(e){return n.getFormElem(e).find('.mktoButtonWrap button[type="submit"]').removeClass("mktoButton").addClass(t)}),this}},{key:"setButtonEvents",value:function(e){var i=this;return e&&this.onLoad(function(a){Object.entries(e).forEach(function(e){var t=r(e,2),n=t[0],o=t[1];console.log(o),i.getFormElem(a).find('.mktoButtonWrap button[type="submit"]').attr(n,o)})}),this}},{key:"setButtonTarget",value:function(t){var n=this;return t&&this.onLoad(function(e){return n.getFormElem(e).find('.mktoButtonWrap button[type="submit"]').attr("target",t)}),this}},{key:"setValues",value:function(t,n){return this.onLoad(function(e){e.setValues(t),"function"==typeof n&&n()}),this}},{key:"hasOption",value:function(e,t){var n=this.formElem;return!!n&&0<n.find('[name="'.concat(e,'"] option[value="').concat(t,'"]')).length}},{key:"updateFieldValue",value:function(e,t){e.val(t)}},{key:"setValue",value:function(s,l,c){var u=this;return this.onLoad(function(e){try{e.setValues((o=l,(n=s)in(t={})?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t))}catch(e){console.error("Faild to set form field value",{field:s,value:l})}var t,n,o,a=u.getFormElem(e),i=$('[name="'.concat(s,'"]'),a);if(i&&i.is("select")){var r=i.find('option[value="'.concat(l,'"]'));0<r.length&&r.attr("selected","selected")}i&&i.is(":visible")&&(i.change(),i.blur()),"function"==typeof c&&c()}),this}},{key:"setThankyouText",value:function(n){var o=this;n&&this.onSuccess(function(){var e=o.getFormElem();$(e).hide();var t='\n          <div id="marketo_form_thankyou_'.concat(o.formId,'" class="marketo-form-thankyou-message">\n            ').concat(n,"\n          </div>\n        ");return $(e).parent().append(t),!1})}},{key:"setThankyouUrl",value:function(e){return e&&this.onSuccess(function(){return window.location.assign(e),!1}),this}},{key:"getFormElem",value:function(e){return this.elem?$(this.elem):e?e.getFormElem():this.form?this.form.getFormElem():null}},{key:"getField",value:function(a){var i=this;return new Promise(function(o){i.onLoad(function(e){var t=i.getFormElem(e),n=$('[name="'.concat(a,'"]'),t);o(n)})})}},{key:"getValue",value:function(n){var e=this;return new Promise(function(t){e.getValues().then(function(e){t(e[n])})})}},{key:"getValues",value:function(){var e=this;return new Promise(function(t){e.onLoad(function(e){t(e.getValues())})})}},{key:"setLables",value:function(t){var n=this;
1return Object.keys(t).forEach(function(e){n.setLable(e,t[e])}),this}},{key:"setAutoLables",value:function(){var o=this;return this.onLoad(function(e){var t=o.getFormElem(e),n=$("[name]",t),i={};n&&n.each(function(e,t){if("SELECT"!==$(t).prop("nodeName")&&"checkbox"!==$(t).attr("type")&&"false"!==$(t).attr("autoLables")){var n=$(t).attr("name"),o=$(t).attr("id"),a=$(t).attr("placeholder")||n;o&&a&&(i[o]=a,$(t).attr("placeholder","FirstName"===a?"First name":"LastName"===a?"Last name":a))}}),i&&o.setLables(i)}),this}},{key:"setLable",value:function(n,o){var a=this;return this.onLoad(function(e){var t=a.getFormElem(e);$('label[for="'.concat(n,'"]'),t).text(o)}),this}},{key:"hideField",value:function(o,a){var i=this;return this.onLoad(function(e){var t=i.getFormElem(e),n=$('[name="'.concat(o,'"]'),t).parents(".mktoFormRow:first");n&&n.hide(a)}),this}},{key:"hasField",value:function(e){return this.getField(e).then(function(e){return 0<e.length})}},{key:"showField",value:function(o,a){var i=this;return this.onLoad(function(e){var t=i.getFormElem(e),n=$('[name="'.concat(o,'"]'),t).parents(".mktoFormRow:first");n&&n.show(a)}),this}},{key:"setErrorMessage",value:function(i,r,e){var s=this,l=!(2<arguments.length&&void 0!==e)||e;return this.onLoad(function(e){var t=s.getFormElem(e),n=$('[name="'.concat(i,'"]'),t),o=$(n).parents(".mktoFieldWrap:first");if(r?(n.removeClass("mktoValid"),n.addClass("mktoInvalid"),n.siblings(".mktoError").show(),o.addClass("mktoInvalidField")):(n.removeClass("mktoInvalid"),o.removeClass("mktoInvalidField")),e.submittable(!1),e.showErrorMessage(r,n?MktoForms2.$(n.get(0)):null),l&&!s.formArgs.doNotScrollOnError){var a=$(t).offset().top;if(!t.closest(".modal").length)a-=$("#header").outerHeight(),window.scroll({top:a,left:0,behavior:"smooth"})}}),this}},{key:"splitFullName",value:function(e){function t(e){return e.toLowerCase().split(" ").map(function(e){return e.charAt(0).toUpperCase()+e.substring(1)}).join(" ")}if(!(e=e.trim()))return{};var n="";if((n=(e=e.replace(/\s{2,}/g," ")).includes(" ")?e.split(" "):e.split(" ")).length){var o=n[0],a=n[1]?n.slice(1).join(" "):"";return{firstName:o=t(o),lastName:a=t(a)}}return{}}},{key:"sendEventOnNoCountry",value:function(){a.dataLayer||(a.dataLayer=[]),a.dataLayer.push({event:"GAevent",eventCategory:"country field",eventAction:"view",eventLabel:"request demo form"})}},{key:"prePopulatedCountry",value:function(){var s=this;this.hideField("Country").registerEvent("change","Country",function(e){var t=$(e.target),n=t.val();t.is("select")&&(n=t.val()),n&&(s.setLable("State","State"),s.getField("State").then(function(e){$(e).parents(".mktoFieldWrap:first").addClass("inputType_".concat("select"))}))}),(0,l.getGeoLocationData)().then(function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.state,n=e.error,o=e.status,a=e.country,i=e.stateCode,r=e.postalcode;!n&&o==l.FINISH_STATUS&&a?s.onLoad(function(){s.isHtmlTemplate||(a&&(s.hasOption("Country",a)?s.setValue("Country",a,function(){s.hideField("Country"),0<s.formElem.find('[name="State"]').length&&(i||t)&&(s.hasOption("State",i)?s.setValue("State",i,function(){return s.hideField("State")}):s.hasOption("State",t)?s.setValue("State",t,function(){return s.hideField("State")}):(s.showField("State"),s.showField("Country"),s.sendEventOnNoCountry(),console.error("Failed to set State from GeoLocation service")))}):(s.sendEventOnNoCountry(),s.showField("Country"),console.error("Failed to set Country from GeoLocation service"))),r&&"0000"!=r&&s.setValue("PostalCode",r))}):(s.sendEventOnNoCountry(),s.showField("Country"),console.error("Failed to set Country from GeoLocation service"))},function(e){s.sendEventOnNoCountry(),console.error("Failed to get country from GeoLocation Service",e),s.showField("Country")})}},{key:"setHiddenFields",value:function(e){var o=this;e&&$.each(e,function(e,t){var n="form_type"==e?"formType":e;o.setValue(n,t)})}},{key:"setupMarketoForm",value:function(c){var u=this,e="",t="Must be valid email. [email protected]",n="Must be a phone number. 503-555-1212",o="This field is required.",a="This field is required.",i="This field is required.",r="Must be a phone number. 503-555-1212",s="This field is required.",l="This field is required.";"undefined"!=typeof error_messages&&(e=void 0!==error_messages.full_name_error_message?error_messages.full_name_error_message:"",t=error_messages.email_error,n=error_messages.phone_error,o=error_messages.company_error,a=error_messages.title_error,
1i=error_messages.department_error,r=error_messages.mobilephone_error,s=error_messages.firstname_error,l=error_messages.lastname_error);var d=e||(0,b.translate)("marketo_form.full_name_error_message","First Name and Last Name required");c.no_auto_label||this.setAutoLables(),c.pre_populated_country&&this.prePopulatedCountry(),c.gdpr_consent&&this.setGDPR(c.gdpr_consent),c.button_label&&this.setButtonText(c.button_label),c.button_class&&this.setButtonClasses(c.button_class),c.button_events&&this.setButtonEvents(c.button_events),c.thankyou_url&&(this.thankyouPageUrl=c.thankyou_url,this.setThankyouUrl(c.thankyou_url)),c.hidden_fields&&this.setHiddenFields(c.hidden_fields),c.validate_fullname&&(this.registerEvent("input","fullNameTrendemon",function(e){var t=e.target.value,n=u.splitFullName(t),o=n.firstName,a=n.lastName;u.setValue("FirstName",o),u.setValue("LastName",a)}),this.onSubmit(function(e){var t=e.form,n=u.getFormElem(t);return!!$('[name="LastName"]',n).val()||(e.setErrorMessage("fullNameTrendemon",d),!1)}).onValidate(function(e){var t=e.form,n=u.getFormElem(t);return!!$('[name="LastName"]',n).val()||(e.setErrorMessage("fullNameTrendemon",d),!1)}).registerEvent("blur","fullNameTrendemon",function(){var t=k(regeneratorRuntime.mark(function e(t){var n,o,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u.getField("fullNameTrendemon");case 2:return n=e.sent,o=n.parents(".mktoFieldWrap:first"),e.next=6,u.getField("LastName");case 6:a=e.sent,a.val()?setTimeout(function(){n.removeClass("mktoInvalid"),o.removeClass("mktoInvalidField")},0):setTimeout(function(){n.addClass("mktoInvalid"),n.removeClass("mktoValid"),o.addClass("mktoInvalidField"),u.setErrorMessage("fullNameTrendemon",d,!1)},0);case 9:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}()).registerEvent("focusin","fullNameTrendemon",function(){var t=k(regeneratorRuntime.mark(function e(t){var n,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u.getField("fullNameTrendemon");case 2:n=e.sent,o=n.parents(".mktoFieldWrap:first"),n.removeClass("mktoInvalid"),o.removeClass("mktoInvalidField"),"undefined"!=typeof error_messages&&u.onLoad(function(e){e.showErrorMessage(d,n?MktoForms2.$(n.get(0)):null)});case 7:case"end":return e.stop()}},e)}));return function(e){return t.apply(this,arguments)}}())),c.validate_private_email_domain&&this.onSubmit(function(e){var t=e.form,n=u.getFormElem(t),o=$('[name="Email"]',n).val().toLowerCase().split("@");return-1===$.inArray(o[1],w)||(e.setErrorMessage("Email",c.email_domain_error),!1)}).onValidate(function(e){var t=e.form,n=u.getFormElem(t),o=$('[name="Email"]',n).val().toLowerCase().split("@");return-1===$.inArray(o[1],w)||(e.setErrorMessage("Email",c.email_domain_error),!1)}).registerEvent("blur","Email",k(regeneratorRuntime.mark(function e(){var t,n,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u.getField("Email");case 2:t=e.sent,n=t.val().toLowerCase(),o=n.split("@"),-1!==$.inArray(o[1],w)?setTimeout(function(){t.addClass("mktoInvalid"),t.removeClass("mktoValid"),u.setErrorMessage("Email",c.email_domain_error,!1)},0):setTimeout(function(){t.removeClass("mktoInvalid")},0);case 6:case"end":return e.stop()}},e)}))).registerEvent("focusin","Email",k(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u.getField("Email");case 2:e.sent.removeClass("mktoInvalid");case 4:case"end":return e.stop()}},e)})));function f(e){return e.length}function m(e){return/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/.test(String(e).toLowerCase())}function h(e){return f(e)&&/^((\+[1-9]{1,4}[ \-]*)|(\([0-9]{2,3}\)[ \-]*)|([0-9]{2,4})[ \-]*)*?[0-9]{3,4}?[ \-]*[0-9]{3,4}?$/.test(e)}function v(e,t){var n,o=jQuery(e.target),a=o.parents(".mktoFieldWrap:first"),i=o.val();(n=o.attr("name"),{Email:m,Phone:h,Company:f,Title:f,MobilePhone:h}[n]||f)(i)?setTimeout(function(){o.removeClass("mktoInvalid"),a.removeClass("mktoInvalidField")},0):setTimeout(function(){o.addClass("mktoInvalid"),o.removeClass("mktoValid"),a.addClass("mktoInvalidField"),u.setErrorMessage(o.attr("name"),t,!1)},0)}var p=function(){var n=k(regeneratorRuntime.mark(function e(t,n){var o,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:o=jQuery(t.target),a=o.parents(".mktoFieldWrap:first"),o.removeClass("mktoInvalid"),a.removeClass("mktoInvalidField"),"undefined"!=typeof error_messages&&u.onLoad(function(e){e.showErrorMessage(n,o?MktoForms2.$(o.get(0)):null)});case 5:case"end":return e.stop()}},e)}));return function(e,t){return n.apply(this,arguments)}}();[["Email",""!==c.email_invalid_error?c.email_invalid_error:t],["Phone",n],["Company",o],["Title",a],["Department",i],["MobilePhone",r],["FirstName",s],["LastName",l]].forEac
1h(function(e){var n=e[0],o=e[1];u.registerEvent("blur",n,function(e){v(e,o)}),u.registerEvent("focusin",n,function(e){p(e,o)}),u.onLoad(function(e){var t=u.getFormElem(e);t.on("submit",{name:n,formElem:t,msg:o},function(e){!function(e,t,n){if("undefined"!=typeof error_messages){var o=$('[name="'.concat(e,'"]'),t).parent();o.hasClass("mktoFieldTouched")&&o.hasClass("mktoInvalidField")&&u.setErrorMessage(e,n,!1)}}(e.data.name,e.data.formElem,e.data.msg)})})});function y(e){"ENTER"===e.key.toUpperCase().trim()&&(u.keyEnterPressed=!0,clearTimeout(u.pressOnEnterTimer),u.pressOnEnterTimer=setTimeout(function(){u.keyEnterPressed=!1},1e3))}function g(){u.submitBtnClicked=!0,clearTimeout(u.clickOnSubmitTimer),u.clickOnSubmitTimer=setTimeout(function(){u.submitBtnClicked=!1},1e3)}this.onLoad(function(e){var t=u.getFormElem(e);t.length&&t.find('button[type="submit"]').on("click",g);document.addEventListener("keypress",y)}),this.onValidate(function(e){setTimeout(function(e){function t(e){return u.setErrorMessage(e,"  ",!1)}var n=u.getFormElem(e),o=n.find('[name="fullNameTrendemon"]'),a=$(document.activeElement);if(a.length&&u.keyEnterPressed){var i=a[0].tagName.toUpperCase();if(!a.val().length&&("INPUT"===i||"SELECT"===i||"TEXTAREA"===i)){var r=a.attr("name");return void(c.validate_fullname&&o.val()||t(r))}}if(c.validate_fullname&&u.submitBtnClicked&&!u.keyEnterPressed){var s=n.find('[name="LastName"]');if(!o.val()||!s.val()){var l=o.parents(".mktoFieldWrap:first");o.addClass("mktoInvalid"),o.removeClass("mktoValid"),l.addClass("mktoInvalidField"),l.addClass("mktoFieldTouched"),u.setErrorMessage("fullNameTrendemon",d,!1)}}u.submitBtnClicked=!1,u.keyEnterPressed=!1},30,e)}),this.onLoad(function(e){var t=u.getFormElem(e);"undefined"!=typeof field_labels&&$("label",t).each(function(e,t){var n=$(t);void 0!==field_labels[n.text()]&&n.text(field_labels[n.text()])}),$("input,textarea",t).each(function(e,t){var n=$(t).parents(".mktoFieldWrap:first"),o=$(t).attr("type");if(n.addClass("inputType_".concat(o)),"undefined"!=typeof field_labels){var a=t;void 0!==field_labels[a.getAttribute("placeholder")]&&a.setAttribute("placeholder",field_labels[a.getAttribute("placeholder")])}}),$("textarea",t).each(function(e,t){$(t).parents(".mktoFieldWrap:first").addClass("inputType_".concat("textarea"))}),$("select",t).each(function(e,t){var n=$(t).parents(".mktoFieldWrap:first");n.addClass("inputType_".concat("select")),"false"!==$(t).attr("autoLables")&&n.find(".mktoLabel").text(n.find("option:first").text()),n.find("option:first").text("Please choose")})}).registerEvent("focus blur",function(e){var t=$(e.target),n=t.parents(".mktoFieldWrap:first");t.is(":focus")||t.is(document.activeElement)?n.addClass("mktoFieldFocus"):n.removeClass("mktoFieldFocus"),setTimeout(function(){t.hasClass("mktoInvalid")?n.addClass("mktoInvalidField"):n.removeClass("mktoInvalidField")},0)}).registerEvent("focusin keyup",function(e){var t=$(e.target),n=t.parents(".mktoFieldWrap:first");t.hasClass("mktoInvalid")?n.addClass("mktoInvalidField"):n.removeClass("mktoInvalidField")}).registerEvent("focusout",function(e){$(e.target).parents(".mktoFieldWrap:first").addClass("mktoFieldTouched")}).registerEvent("change",function(e){var t=$(e.target),n=t.parents(".mktoFieldWrap:first"),o=t.val();t.is("select")&&(o=t.val()),o?n.addClass("mktoFieldFill"):n.removeClass("mktoFieldFill")})}},{key:"setHtmlTemplate",value:function(){$(this.formElem).addClass("html-template")}}],n=[{key:"register",value:function(){var a=i(document.querySelectorAll("form.marketo-form"));this.formIds=a.reduce(function(e,t){var n=t.dataset.formId;return n&&-1===e.indexOf(n)&&e.push(n),e},[]),this.formIds.forEach(function(e){!function e(t){if(t.length){var n=t.shift(),o=e.bind(null,i(t));!function(e,t,n){var a={};$(t).data("index",e);try{var o=$(t).data("form-args");o&&o in window&&(a=window[o])}catch(e){console.error("Faild to parse form args from element data",e)}var i=function(e){if(a&&a.form_id)return a.form_id;var t=$(e).data("form-id");if(!t){var n=$(e).attr("id");if(n){var o=n.split("_");1<o.length&&(t=o.pop())}}return t}(t);
1console.info("register marketo form",i),a.uuid||(a.uuid=parseInt(1e4*Math.random()));if(i){var r=a.uuid;$(t).attr("data-uuid",r);var s=new c(i,a,t,n);if("function"==typeof u[i]){var l=u[i];u[r]=s,l(s)}else u[r]=s}}(a.indexOf(n),n,o)}}(i(document.querySelectorAll('form.marketo-form[data-form-id="'.concat(e,'"]'))))})}},{key:"findById",value:function(n){return new Promise(function(e){var t=Object.values(u).filter(function(e){return e.formId==n});t&&0<t.length?e(t[0]):u[n]=e})}}],t&&s(e.prototype,t),n&&s(e,n),c}();d.default=o;d.createForm=function(e,t,n){return new o(e,1<arguments.length&&void 0!==t?t:{},2<arguments.length?n:void 0)};d.findById=function(e){return o.findById(e)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"impv/src/js/services/geo-location-service":21,"impv/src/js/services/translate-service":24}],18:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o={API_KEY:window.pageGlobalData.GOOGLE_GEOCODE_CLIENT_API_KEY,BASE_URL:"https://www.googleapis.com/geolocation/v1/geolocate"};n.default=o},{}],19:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.throttle=function(n,o,a){var i,r,s,l=null,c=0;a=a||{};function u(){c=!1===a.leading?0:Date.now(),l=null,s=n.apply(i,r),l||(i=r=null)}return function(){var e=Date.now();c||!1!==a.leading||(c=e);var t=o-(e-c);return i=this,r=arguments,t<=0||o<t?(l&&(clearTimeout(l),l=null),c=e,s=n.apply(i,r),l||(i=r=null)):l||!1===a.trailing||(l=setTimeout(u,t)),s}},n.ResponsiveHelper=n.toggleBetweenClass=void 0;n.toggleBetweenClass=function(e,t,n){e.hasClass(t)?e.removeClass(t).addClass(n):e.hasClass(n)?e.removeClass(n).addClass(t):console.info("None of the provided Classes is set for this element",e)};var r,a,s,o=(s=!(a=[]),window.matchMedia&&(window.Window&&window.matchMedia===Window.prototype.matchMedia?s=!0:-1<window.matchMedia.toString().indexOf("native")&&(s=!0)),["load","resize","orientationchange"].forEach(function(e){window.addEventListener(e,i)}),{addRange:function(n){var o={data:{}};Object.keys(n).map(function(e){var t;o.data[e]={range:(t=e.split(".."),[parseInt(t[0],10)||-1/0,parseInt(t[1],10)||1/0].sort(function(e,t){return e-t})),enableCallback:n[e].on,disableCallback:n[e].off}}),a.push(o),r=null,i()}});function i(){var e=window.innerWidth;e!==r&&(r=e,a.forEach(function(n){Object.keys(n.data).map(function(e){var t=n.data[e];t.currentActive&&!l(t.range[0],t.range[1])&&(t.currentActive=!1,"function"==typeof t.disableCallback&&t.disableCallback())}),Object.keys(n.data).map(function(e){var t=n.data[e];!t.currentActive&&l(t.range[0],t.range[1])&&(t.currentActive=!0,"function"==typeof t.enableCallback&&t.enableCallback())})}))}function l(e,t){var n,o,a,i="";return 0<e&&(i+="(min-width: "+e+"px)"),t<1/0&&(i+=(i?" and ":"")+"(max-width: "+t+"px)"),n=i,o=e,a=t,window.matchMedia&&s?matchMedia(n).matches:window.styleMedia?styleMedia.matchMedium(n):window.media?media.matchMedium(n):o<=r&&r<=a}n.ResponsiveHelper=o},{}],20:[function(r,e,t){(function(a){"use strict";var n=r("impv/src/js/components/marketo-form"),f=e(r("./components/header-hover-helper")),u=e(r("./components/download-helper")),m=r("./components/header-helpers");r("./components/jquery-tabs"),r("./components/jquery-sameheight"),r("./components/jquery-popup");var h=r("./main/helpers");function e(e){return e&&e.__esModule?e:{default:e}}function v(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t,n,o,a,i,r){try{var s=e[i](r),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,a)}function o(s){return function(){var e=this,r=arguments;return new Promise(function(t,n){var o=s.apply(e,r);function a(e){l(o,t,n,a,i,"next",e)}function i(e){l(o,t,n,a,i,"throw",e)}a(void 0)})}}document.addEventListener("form2init",function(){$(o(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=$(".modalformselements"),$.each(t,function(e,l){var c=$(l).val();$(o(regeneratorRuntime.mark(function e(){var s;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n.findById)(c);case 2:(s=e.sent).hideField("Policy_Consent__c").registerEvent("focusout","fullNameTrendemon",function(){s.visited||(s.visited=!0,s.showField("Policy_Consent__c",400))}),s.onSuccess(function(e){var n=s.form.getFormElem(),t=$(n).closest(".modal");if(t.length){var o=t.attr("data-success-download-file"),a=t.attr("data-success-file-name"),i=t.attr("data-success-redirect");o?(0,u.default)(o,a):i?window.location.href=i:r()}else r();function r(){$(n).hide();
1var e=$(n).parents(".form-side"),t="#"+$(l).attr("thankyoutarget");$(t).show(),e.find(".pre-text").hide()}return"dataLayer"in window&&window.dataLayer.push({event:"VirtualPageview",virtualPageURL:"'"+$(l).attr("virtualpageurl")+"'",virtualPageTitle:"'"+$(l).attr("virtualpagetitle")+"'"}),"hj"in window&&hj("vpv","form-id "+c+"submited"+$(l).attr("thankyoutarget")),!1});case 5:case"end":return e.stop()}},e)})))});case 2:case"end":return e.stop()}},e)})))}),document.addEventListener("DOMContentLoaded",function(){(0,m.makeResponsiveHeaderTemplateNew)(),(0,m.fullNameToLangCode)(),(0,m.setHeaderHeight)(),(0,m.setScreenWidth)().init(),new t});var t=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=this;jQuery(window).ready(function(){e.$winWidth=jQuery(window).width()}),this.init()}var e,n,o;return e=t,(n=[{key:"init",value:function(){this.initIsIOS()&&document.documentElement.classList.add("is-ios"),this.addClssWithDrop(),this.bigDropHelper(),this.initMenu(),this.initAffix(),this.initLangSelect(),this.setReadyState(),this.initTabsDrop(),this.initSameHeight(),this.initPopupsDrop()}},{key:"initMenu",value:function(){var e,t,n,o=document.documentElement,a=document.getElementById("nav-main"),i=(a&&a.querySelectorAll(".top-nav-items"),document.querySelectorAll(".mobile-menu")),r="menu-open",s=(document.querySelectorAll("#nav-main .drop .col, #nav-main .full-width-drop .col"),null),l=(0,m.setNavHeight)(),c=(0,m.makeHoverTBDropdown)(document.getElementById("choose-login")),u=(0,m.handleHeaderHovering)(),d=(0,m.navBarItemsClick)();h.ResponsiveHelper.addRange((n={on:function(){(0,m.isTouchDevice)()||c.init()},off:function(){c.destroy()}},(t="1200..")in(e={"1200..":{on:function(){s=new f.default(a,{itemsSelector:".top-nav-items",dropSelector:".drop, .full-width-drop",activeClass:"open"}),d.init(),u.init()},off:function(){s&&"destroy"in s&&s.destroy(),d.destroy(),u.destroy()}},"..767":{on:function(){l.init()},off:function(){l.destroy()}}})?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e)),i&&v(i).forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),o.classList.toggle(r)})}),window.innerWidth<1200&&(jQuery("#nav-main .tabbed-content").each(function(e,t){jQuery(t).attr("style","height:auto!important;");var n=jQuery(t).height();0<n&&jQuery(t).attr("style","height:"+n+"px;")}),jQuery(".top-nav-items.has-active-link").on("click",function(e){var t=jQuery(this).find("a").attr("href");window.location.href=t}),jQuery(".mobile-menu").on("click",function(){!1===jQuery("html").hasClass("menu-open")&&(jQuery("#nav-main .nav-list > li").removeClass("popup-active"),jQuery("#nav-main .nav-list .full-width-drop .mobile-nav-tab").removeClass("active"),jQuery("#nav-main .nav-list .full-width-drop .tabbed-content").addClass("hidden"),jQuery("#nav-main .nav-list .full-width-drop .container-fluid > .row").each(function(){jQuery(this).find("> div").each(function(e,t){var n=jQuery(t);n.find(".mobile-nav-tab").data("tab-id")&&0==e?n.find(".mobile-nav-tab").addClass("active"):n.data("tab-name")&&1==e&&n.removeClass("hidden")})}))}),jQuery(window).on("click",function(e){$(e.target).hasClass("nav-holder")&&(o.classList.toggle(r),jQuery(".mobile-menu").trigger("click"))})),jQuery(".js-nav-tab").on("mouseover",function(e){var t=jQuery(this).data("tab-id"),n=jQuery(this).data("tab-parent-id");jQuery(this).hasClass("active")&&window.innerWidth<1200?(jQuery(this).removeClass("active"),jQuery("div[data-tab-family-id=".concat(n,"] div[data-tab-name=").concat(t,"]")).addClass("hidden")):(jQuery("a[data-tab-parent-id=".concat(n,"]")).removeClass("active"),jQuery(this).addClass("active"),jQuery("div[data-tab-family-id=".concat(n,"] div[data-tab-name]")).addClass("hidden"),jQuery("div[data-tab-family-id=".concat(n,"] div[data-tab-name=").concat(t,"]")).removeClass("hidden"));var o=jQuery(this).parent().parent().children("li.footer-tab");o.length&&jQuery(this).hasClass("js-exclude-footer")?o.hide():o.length&&o.show()}),jQuery(".top-nav-items:not(.has-active-link)").on("mouseover",function(e){jQuery(".top-nav-items").removeClass("nav-active"),jQuery(this).addClass("nav-active"),jQuery("#header, .nav-modal-background").addClass("nav-active")}),jQuery("#navModal").on("mouseover",function(e){jQuery("#header, .top-nav-items, .nav-modal-background").removeClass("nav-active"),jQuery(this).removeClass("nav-active")})}},{key:"addClssWithDrop",value:function(){v(document.querySelectorAll("#header .top-nav-items")).forEac
1h(function(e){e.querySelector(".drop, .full-width-drop")&&e.classList.add("has-drop")})}},{key:"bigDropHelper",value:function(){v(document.querySelectorAll("#header .full-width-drop")).forEach(function(e){var t=e.querySelectorAll(".container-fluid > .row > .col").length;e.classList.add("drop-with-".concat(t,"-cols"))})}},{key:"initAffix",value:function(){var r=new Event("affixHeaderHeightChanged");try{jQuery(document).ready(function(){function a(e,t,n){var o=e.outerHeight(),a=n.offset().top+55;t.scrollTop()>=a?(n.height(o),e.addClass("affix")):(e.removeClass("affix"),n.height("auto"),(0,m.setHeaderHeight)()),i!==o&&(i=o,document.dispatchEvent(r))}var i=0;jQuery('[data-spy="affix"]').each(function(e,t){var n=jQuery(t),o=jQuery("<div></div>");n.before(o),jQuery(window).on("scroll resize",function(e){a(n,jQuery(e.currentTarget),o)}),a(n,jQuery(window),o)})})}catch(e){console.error("Error in Header:initAffix function",e)}}},{key:"initLangSelect",value:function(){function e(t,n){t.on("select_changed",function(){window.location=t.find(".dropdown-select-btn").attr("data-value");var e={event:"GAevent",eventCategory:n,eventAction:"click",eventLabel:t.find(".name").text()};a.dataLayer||(a.dataLayer=[]),a.dataLayer.push(e)})}e($("#choose-login"),"Top menu login"),e($("#choose-lang"),"Top menu lang"),e($("#choose-lang-footer"),"Bottom menu lang"),e($("#choose-lang-footer-privacy"),"Bottom menu lang")}},{key:"initTabsDrop",value:function(){h.ResponsiveHelper.addRange({"1200..":{on:function(){jQuery(".drop-tabset").tabset({tabLinks:"a",addToParent:!0,event:"mouseenter",defaultTab:!0})},off:function(){jQuery(".drop-tabset").tabset("destroy")}}})}},{key:"initSameHeight",value:function(){jQuery(".nav-top .drop").sameHeight({elements:".subtitle",flexible:!0,multiLine:!0,biggestHeight:!0}),jQuery(".collapse-element").sameHeight({elements:".subtitle",flexible:!0,multiLine:!0,biggestHeight:!0})}},{key:"initPopupsDrop",value:function(){h.ResponsiveHelper.addRange({"..1199":{on:function(){jQuery(".top-nav-items").contentPopupDrop({mode:"click",popup:".full-width-drop, .drop-more",btnOpen:".opener",btnClose:".back-btn",hideOnClickLink:!1,hideOnClickOutside:!1}),jQuery(".subdrop").contentPopupDrop({mode:"click",popup:".collapse-element",btnOpen:".sub-opener",btnClose:".back-sub-btn",openClass:"sub-active",hideOnClickLink:!1,hideOnClickOutside:!1,onShow:function(e,t){t.holder.closest(".drop-more").addClass("subdrop-opened")},onHide:function(e,t){t.holder.closest(".drop-more").removeClass("subdrop-opened")},onDestroy:function(e){e.holder.closest(".drop-more").removeClass("subdrop-opened")}})},off:function(){jQuery(".top-nav-items").contentPopupDrop("destroy"),jQuery(".subdrop").contentPopupDrop("destroy")}}})}},{key:"setReadyState",value:function(){document.querySelector("#header").classList.add("is-ready-to-show")}},{key:"initIsIOS",value:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}}])&&i(e.prototype,n),o&&i(e,o),t}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./components/download-helper":1,"./components/header-helpers":5,"./components/header-hover-helper":13,"./components/jquery-popup":14,"./components/jquery-sameheight":15,"./components/jquery-tabs":16,"./main/helpers":19,"impv/src/js/components/marketo-form":17}],21:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.ERROR_STATUS=n.FINISH_STATUS=n.IN_PROGRESS_STATUS=n.INITIAL_STATUS=n.getGeoLocationData=n.GeoLocationService=void 0;var o=i(e("../services/google-geolocation-api")),a=i(e("./session-storage-service"));function i(e){return e&&e.__esModule?e:{default:e}}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){c(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEac
1h(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=Symbol(),f=function(){function c(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),this.sessionStorageService=a.default,this.googleGeolocationAPI=o.default,this.baseURL="/wp-json/geoLocationData/v1/geo",this.state={status:c.INITIAL},this.init()}return l(c,null,[{key:"instance",get:function(){return this[d]||(this[d]=new c),this[d]}}]),l(c,[{key:"setState",value:function(e){var t=this.state;if(this.state=u({},t,{},e),this.state.status==c.ERROR)console.error("GeoLocationService: An error occurred while trying to get user country",this.state.error),this.fireEvent(this.state);else if(this.state.status==c.FINISH){var n=this.state,o=n.country,a=n.countryCode,i=n.state,r=n.stateCode,s=n.city,l=n.postalcode;this.sessionStorageService.setItem(c.CACHE_KEY,{country:o,countryCode:a,state:i,stateCode:r,city:s,postalcode:l}),this.onFinish()}}},{key:"getState",value:function(){return this.state}},{key:"fireEvent",value:function(e){$(document).trigger(c.GEO_LOCTION_FINISHED_EVENT,e)}},{key:"onFinish",value:function(){this.fireEvent(this.state)}},{key:"getUserData",value:function(){var e=this;return new Promise(function(n,o){$.get(e.baseURL).then(function(e){if(e&&e.success&&e.result){var t=e.result;if(t.country_name)return n({country:t.country_name,countryCode:t.country_code,state:t.state_name,stateCode:t.state_code,city:t.city_name,postalcode:t.postal_code})}return o("No data recived")},function(e){o(e)})})}},{key:"getUserDataUsingLocation",value:function(e){var t=this;return new Promise(function(n,o){$.post(t.baseURL,e).then(function(e){if(e&&e.success&&e.result){var t=e.result;return t.country_name?n({country:t.country_name,countryCode:t.country_code,state:t.state_name,stateCode:t.state_code,city:t.city_name,postalcode:t.postal_code}):o("No data provided, no country name was return")}return o("No data provided, failed")},function(e){o("request to server failed "+e)})})}},{key:"getLatLan",value:function(){return this.googleGeolocationAPI.getLatLan()}},{key:"init",value:function(){var t=this;this.setState({status:c.IN_PROGRESS});var e=this.sessionStorageService.getItem(c.CACHE_KEY);e?this.setState(u({status:c.FINISH},e)):this.getUserData().then(function(e){t.setState(u({status:c.FINISH},e))},function(e){t.getLatLan().then(function(e){t.getUserDataUsingLocation(e).then(function(e){t.setState(u({status:c.FINISH},e))},function(e){t.setState({status:c.ERROR,error:e})})},function(e){t.setState({status:c.ERROR,error:e})})})}}],[{key:"getGeoLocationData",value:function(){var t=c.instance;return new Promise(function(e,o){if(t.getState().status==c.FINISH)e(t.getState());else{o("No country data found"),$(document).on(c.GEO_LOCTION_FINISHED_EVENT,function e(t,n){o(n.error),$(document).off(c.GEO_LOCTION_FINISHED_EVENT,e)})}})}}]),c}();c(n.GeoLocationService=f,"INITIAL","INITIAL"),c(f,"IN_PROGRESS","IN_PROGRESS"),c(f,"FINISH","FINISH"),c(f,"ERROR","ERROR"),c(f,"CACHE_KEY","GEO_LOCATION_DATA"),c(f,"GEO_LOCTION_FINISHED_EVENT","GEO_LOCTION_FINISHED");var m=f.getGeoLocationData;n.getGeoLocationData=m;var h=f.INITIAL;n.INITIAL_STATUS=h;var v=f.IN_PROGRESS;n.IN_PROGRESS_STATUS=v;var p=f.FINISH;n.FINISH_STATUS=p;var y=f.ERROR;n.ERROR_STATUS=y;var g=f.instance;n.default=g},{"../services/google-geolocation-api":22,"./session-storage-service":23}],22:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,a=(o=e("../config/google-api"))&&o.__esModule?o:{default:o};function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}
1var r=a.default.API_KEY,s=a.default.BASE_URL,l=Symbol(),c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,o=[{key:"instance",get:function(){return this[l]||(this[l]=new e),this[l]}}],(n=[{key:"createRequest",value:function(n){return new Promise(function(e,t){$.post(n).done(e).fail(t)})}},{key:"getLatLan",value:function(){var e="".concat(s,"?key=").concat(r);return this.createRequest(e).then(function(e){var t=e.location;return{lat:t.lat,lan:t.lng}}).catch(function(e){return console.error("Faild to request lan - lat from google api")})}}])&&i(t.prototype,n),o&&i(t,o),e}().instance;n.default=c},{"../config/google-api":18}],23:[function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function i(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=Symbol(),s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isSupported="sessionStorage"in window,this.isSupported&&(this.sessionStorage=window.sessionStorage)}return i(e,null,[{key:"instance",get:function(){return this[r]||(this[r]=new e),this[r]}}]),i(e,[{key:"getItem",value:function(e){try{if(!this.isSupported)return null;var t=this.sessionStorage.getItem(e);return t?JSON.parse(t):null}catch(e){console.log("An error occurred in SessionStorageService:getItem",e)}}},{key:"setItem",value:function(e,t){try{return!!this.isSupported&&this.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){console.log("An error occurred in SessionStorageService:setItem",e)}}},{key:"removeItem",value:function(e){try{return!!this.isSupported&&this.sessionStorage.removeItem(e)}catch(e){console.log("An error occurred in SessionStorageService:removeItem",e)}}},{key:"clear",value:function(){try{return!!this.isSupported&&this.sessionStorage.clear()}catch(e){console.log("An error occurred in SessionStorageService:clear",e)}}},{key:"generateKey",value:function(t){var n=this;return t?Array.isArray(t)?t.map(function(e){return n.generateKey(e)}).join("_"):"object"===o(t)?Object.keys(t).map(function(e){return e+"_"+n.generateKey(t[e])}).join("_"):t:""}}]),e}().instance;n.default=s},{}],24:[function(e,t,r){(function(t){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function n(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}Object.defineProperty(r,"__esModule",{value:!0}),r.translate=r.default=void 0;var e=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.translate=this.translate.bind(this)}return n(e,null,[{key:"instance",get:function(){return t.TranslateService||(t.TranslateService=new e),t.TranslateService}}]),n(e,[{key:"getTranlateMap",value:function(){return this.tranlateMap||(this.tranlateMap=window.TranslateMap),this.tranlateMap}},{key:"translate",value:function(e,t){var n=0<arguments.length&&void 0!==e&&e,o=1<arguments.length&&void 0!==t?t:"",a=this.getTranlateMap();return n&&a&&function(e,t){try{for(var n=(t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),o=0,a=n.length;o<a;++o){var i=n[o];if(!(i in e))return;e=e[i]}return e}catch(e){return}}(a,n)||o}}]),e}(),a=e.instance;r.default=a;var i=e.instance.translate;r.translate=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[20]);
2//# sourceMappingURL=maps/impv-new-design-header-4d04c033d4.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.