1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([["components-faqs-faqs-js"],{65142:function(t,e,n){n.r(e),n.d(e,{default:function(){return l}});var i=n(83020);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function c(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}function r(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}var l=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.element=e,this.$element=$(this.element),this._animatingAll=!1,this._modalAnimating=!1,this.init()},e=[{key:"init",value:function(){var t=this;this.ui={$headers:this.$element.find(".cmp-faqmodel__accordion__header"),$sections:this.$element.find(".cmp-faqmodel__accordion__section"),$contents:this.$element.find(".cmp-faqmodel__accordion__content"),$links:this.$element.find(".cmp-faqmodel__list__link"),$modal:this.$element.find(".cmp-faqmodel__modal"),$modalBackdrop:this.$element.find(".cmp-faqmodel__modal-backdrop"),$modalContent:this.$element.find(".cmp-faqmodel__modal__content"),$modalClose:this.$element.find(".cmp-faqmodel__modal__icon-close"),$modalTitle:this.$element.find(".cmp-faqmodel__modal__title"),$toggle:this.$element.find(".cmp-faqmodel__toggle"),$toggleClose:this.$element.find(".cmp-faqmodel__toggle__close"),$toggleOpen:this.$element.find(".cmp-faqmodel__toggle__open")},this.hasResized=!1,this._updateOpenAllText(),this.$lastActiveSection=this.ui.$sections.first(),this.ui.$headers.on("click tap",this._onHeaderClick.bind(this)),this.ui.$sections.on("click tap",this._onSectionClick.bind(this)),this.ui.$sections.on("transitionend",this.onSectionTransitionEnd.bind(this)),this.ui.$links.on("click tap",this._onListLinkClick.bind(this)),this.ui.$modalBackdrop.on("click tap",this._onModalcloseClick.bind(this)),this.ui.$modalClose.on("click tap",this._onModalcloseClick.bind(this)),this.ui.$toggle.on("click tap",this._onToggleAllClick.bind(this));var e=(0,i.sg)(this._onWindowResize.bind(this),250);window.addEventListener("resize",e.bind(this)),$(window).width()<750&&$(window).on("orientationchange",this._onOrientationChange.bind(this));var n=$(".active .cmp-faqmodel__accordion__header"),o=$(".active .cmp-faqmodel__accordion__content");n.attr("aria-expanded","true"),o.attr("aria-hidden","false");var a=this.$element.attr("id");this.ui.$sections.each(function(e,n){var i=$(n).find(".cmp-faqmodel__accordion__header"),o=$(n).find(".cmp-faqmodel__accordion__content"),c="cmp-faqmodel__accordion-button-".concat(a,"-").concat(e),s="cmp-faqmodel__accordion-content-".concat(a,"-").concat(e),r=t._getContentHeight(o);o.css("max-height",$(n).attr("open")?r:0),o.attr("data-max-height",r),i.attr("id",c),i.attr("aria-controls",s),o.attr("aria-labelledby",c),o.attr("id",s)}),this._addTrackingToContentLinks()}},{key:"_addTrackingToContentLinks",value:function(){var t=this;this.ui.$contents.find("a").each(function(e,n){var i=$(n),o=i.text().trim();i.on("click contextmenu",function(){t._trackEvent(o,{link_url:i.attr("href")})})})}},{key:"_toggleTranslated3dIos",value:function(t){site.utils.isIOS()&&site.utils.isMobileDevice()&&$("#content").css("transform",!0===t?"translate3d(0,
10,0)":"")}},{key:"_onHeaderClick",value:function(t){t.preventDefault();var e=$(t.currentTarget),n=e.find("span").text().trim();this._trackEvent(n);var i=e.closest(".cmp-faqmodel__accordion__section"),o=i.find(".cmp-faqmodel__accordion__content");i.attr("open")?(o.css("max-height",0),i.addClass("closing")):this._openAccordion(i)}},{key:"onSectionTransitionEnd",value:function(t){var e=$(t.currentTarget),n=e.find(".cmp-faqmodel__accordion__content");"max-height"===t.originalEvent.propertyName&&0===parseInt(n.css("max-height"),10)&&(e.removeAttr("open"),e.removeClass("closing"),n.css("max-height",parseInt(n.attr("data-max-height"),10))),this._updateOpenAllText()}},{key:"_onSectionClick",value:function(t){this.$lastActiveSection=$(t.currentTarget)}},{key:"_onListLinkClick",value:function(t){var e=this;t.preventDefault(),this._toggleTranslated3dIos(!1);var n=$(t.currentTarget),i=n.parent().find(".cmp-faqmodel__list__modal-content").html();this.ui.$modalTitle.html(n.html()),this.ui.$modalContent.html(i),this.ui.$modal.css({display:"block"}),this.ui.$modalBackdrop.css({display:"block"}),this._modalAnimating=!0,$(window).width()>=900?this.ui.$modalBackdrop.fadeTo(300,.5,function(){e.ui.$modal.fadeTo(300,1,function(){e._modalAnimating=!1})}):this.ui.$modal.fadeTo(300,1,function(){e.ui.$modalBackdrop.css({display:"block",opacity:.5}),e._modalAnimating=!1})}},{key:"_onModalcloseClick",value:function(t){this._toggleTranslated3dIos(!0),t.preventDefault(),this._modalAnimating||(this.ui.$modal.css({display:"none",opacity:0}),this.ui.$modalBackdrop.css({display:"none",opacity:0}))}},{key:"_onWindowResize",value:function(){var t=this;this.ui.$sections.each(function(e,n){var i=$(n),o=i.find(".cmp-faqmodel__accordion__content"),a=t._getContentHeight(o);i.attr("open")&&o.css({maxHeight:parseInt(a,10)}),o.attr("data-max-height",a)})}},{key:"_onOrientationChange",value:function(){var t=this;this.ui.$sections.each(function(e,n){return t._closeAccordion($(n))}),this._openAccordion(this.$lastActiveSection)}},{key:"_trackEvent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};window.dataLayer?t?window.dataLayer.push(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){c(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({interaction_hit:"yes",click_text:t},e)):console.warn("No click text provided"):console.warn("dataLayer not found")}},{key:"_onToggleAllClick",value:function(t){var e=this;t.preventDefault();var n=this.ui.$sections.filter(":not([open])").length?"open":"close",i="open"===n?this.ui.$toggleOpen.text().trim():this.ui.$toggleClose.text().trim();this._trackEvent(i),this.ui.$sections.each(function(t,i){var o=$(i);o.hasClass("closing")||("open"===n?e._openAccordion(o):e._closeAccordion(o))})}},{key:"_onWindowScroll",value:function(){$(window).width()<640&&this.ui.$sections.filter("[open]").length&&this._fadeFixedHeader()}},{key:"_closeAccordion",value:function(t){t.find(".cmp-faqmodel__accordion__content").css("max-height",0),t.addClass("closing")}},{key:"_fadeFixedHeader",value:function(){var t=parseInt($("body").css("paddingTop").split("px")[0],10)||0,e=$(window).scrollTop()+t;this.ui.$sections.filter(".active").each(function(t,n){var i=$(n),o=i.find(".cmp-faqmodel__accordion__fixed-header"),a=i.find(".cmp-faqmodel__accordion__header"),c=i.offset().top+a.outerHeight(),s=i.offset().top+i.outerHeight();e>c&&e<s?(o.addClass("visible"),o.css({top:$("body").css("paddingTop")})):o.removeClass("visible")})}},{key:"_getContentHeight",value:function(t){var e,n=t.clone();return n.removeAttr("style").css({transition:"none",position:"absolute",width:this.$element.width()}).addClass("slideClone").appendTo(t.parent()),e=n.outerHeight(),n.remove(),e}},{key:"_openAccordion",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t.find(".cmp-faqmodel__accordion__content");i.css({maxHeight:0,transition:"none"}),t.attr("open",!0),n&&t.attr("data-max-height",this._getContentHeight(i)),setTimeout(function(){var t,n=null!==(t=i.attr("data-max-height"))&&void 0!==t?t:e._getContentHeight(i);i.removeAttr("style"),i.css("max-height",parseInt(n,10))},1)}},{key:"_scrollToElement",value:function(t,e,n){return 0!==t.length&&(e=e||{},(e=Object.assign({adjustment:0,ease:"easeOutSine",duration:800,container:$("body, html")},e)).container.stop().animate({scrollTop:t.offset().top-e.adjustment},e.duration,e.ease,function(){n&&n()}),e)}},{key:"_updateOpenAllText",value:function(){this.ui.$sections.filter(":not([open])").length?(this.ui.$toggleClose.addClass("hide"),this.ui.$toggleOpen.removeClass("hide")):(this.ui.$toggleOpen.addClass("hide"),this.ui.$toggleClose.removeClass("hide"))}}],e&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()}}]);
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.