"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[62372],{95897:function(e,t,n){n.r(t),n.d(t,{default:function(){return b}});var i=n(85254),r=n(97650),o=n(49995),l=n(396),a=n(31477),c=n(48387),s=n(19843),d=n(19191),_=n(15450),u=n(95049),v=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function l(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,a)}c((i=i.apply(e,t||[])).next())}))};class b{constructor(e){this.initialize=()=>{const e=()=>{var e,t;const n=this.el.getAttribute("data-component"),i=document.querySelector(".web-banner__normal-view"),r=this.el.querySelector(".web-banner-theming");if("WebBanner"===n){const n=document.getElementsByTagName("body")[0];if(i){const r=document.querySelector("#horizontalNavigation"),o=null==i?void 0:i.offsetHeight,l=window.innerWidth>1024?72:46;window.scrollY>o-l?(r&&(null===(e=document.querySelector(".main-content"))||void 0===e||e.classList.add("web-banner-set-top-scroll")),n.classList.add("web-banner-docked-view")):(null===(t=document.querySelector(".main-content"))||void 0===t||t.classList.remove("web-banner-set-top-scroll"),n.classList.remove("web-banner-docked-view"))}else if(r){const e=this.el.querySelector(".web-banner-theming__docked-view"),t=(null==r?void 0:r.offsetHeight)+12;document.documentElement.scrollTop>t?(null==e||e.classList.remove("web-banner-theming__docked-title"),n.classList.add("web-banner-docked-view")):(null==e||e.classList.add("web-banner-theming__docked-title"),n.classList.remove("web-banner-docked-view"))}}},t=()=>{const e=this.el.querySelector(".web-banner-theming"),t=(null==e?void 0:e.offsetHeight)+12;this.el.querySelector(".web-banner-theming-height").style.height=`${t}px`};this.el.querySelector(".web-banner-theming")&&(t(),window.addEventListener("resize",t)),window.onscroll=()=>{e()};const n=this.el.querySelector(".web-banner__normal-view__inner .web-banner__cta-box .btn");n&&(n.onclick=e=>{var t,n,i;e.preventDefault();const r=e.target,l=r.getAttribute("href"),d={targetLink:r,sec_title:null===(t=this.el.querySelector(".web-banner__title"))||void 0===t?void 0:t.textContent.trim(),event_click:"banner_click",component:"desc_banner",target:"desc_banner_cta",cta_text:null==r?void 0:r.textContent.trim()};(0,o.Z)(d);const _=null==r?void 0:r.textContent.trim(),u=`${null===(n=this.el.querySelector(".web-banner__title"))||void 0===n?void 0:n.textContent.trim()}/${(0,a.C2)("tag-3")||"NA"}`,v={EP_COMPONENT_NAME:`${null===(i=this.el.querySelector(".web-banner__title"))||void 0===i?void 0:i.textContent.trim()}/${_}`,EP_CTA:_,EP_ARTICLE_PRODUCT_NAME:u};this.handleCTEvent(v),l&&s.Z.dispatch((0,c.QQ)({url:l}))});const _=()=>{s.Z.dispatch((0,d.g)())},u=this.el.querySelectorAll(".open-raise-issue-modal");null==u||u.forEach((e=>{e.addEventListener("click",_)}));const b=this.el.querySelector(".web-banner__docked-view .web-banner__cta-box .btn");b&&(b.onclick=e=>{var t,n,i;e.preventDefault();const r=e.target,l=r.getAttribute("href"),d={targetLink:r,sec_title:null===(t=this.el.querySelector(".web-banner__docked-title"))||void 0===t?void 0:t.textContent.trim(),event_click:"banner_click",component:"main_banner",target:"main_banner_cta",cta_text:null==r?void 0:r.textContent.trim()};(0,o.Z)(d);const _=null==r?void 0:r.textContent.trim(),u=`${null===(n=this.el.querySelector(".web-banner__docked-title"))||void 0===n?void 0:n.textContent.trim()}/${(0,a.C2)("tag-3")||"NA"}`,v={EP_COMPONENT_NAME:`${null===(i=this.el.querySelector(".web-banner__docked-title"))||void 0===i?void 0:i.textContent.trim()}/${_}`,EP_CTA:_,EP_ARTICLE_PRODUCT_NAME:u};this.handleCTEvent(v),l&&s.Z.dispatch((0,c.QQ)({url:l}))});const h=this.el.querySelector(".web-banner-theming__action .btn");h&&(h.onclick=e=>{var t,n,i;e.preventDefault();const r=e.target,l=r.getAttribute("href"),c={targetLink:r,sec_title:null===(t=this.el.querySelector(".web-banner__title"))||void 0===t?void 0:t.textContent.trim(),event_click:"button_click",targetUrl:l,event:"click",component:"main_banner",target:"main_banner_cta",cta_text:null==r?void 0:r.textContent.trim()};(0,o.Z)(c);const s=null==r?void 0:r.textContent.trim(),d=`${null===(n=this.el.querySelector(".web-banner__title"))||void 0===n?void 0:n.textContent.trim()}/${(0,a.C2)("tag-3")||"NA"}`,_={EP_COMPONENT_NAME:`${null===(i=this.el.querySelector(".web-banner__title"))||void 0===i?void 0:i.textContent.trim()}/${s}`,EP_CTA:s,EP_ARTICLE_PRODUCT_NAME:d};this.handleCTEvent(_)});const w=this.el.querySelector(".web-banner-theming__docked-view .web-banner__cta-box .btn");w&&w.addEventListener("click",(e=>{var t,n,i;e.preventDefault();const r=e.target,l=r.getAttribute("href"),c={targetLink:r,sec_title:null===(t=this.el.querySelector(".web-banner__docked-title"))||void 0===t?void 0:t.textContent.trim(),event_click:"button_click",targetUrl:l,event:"click",component:"main_banner",target:"main_banner_cta",cta_text:null==r?void 0:r.textContent.trim()};(0,o.Z)(c);const s=null==r?void 0:r.textContent.trim(),d=`${null===(n=this.el.querySelector(".web-banner__docked-title"))||void 0===n?void 0:n.textContent.trim()}/${(0,a.C2)("tag-3")||"NA"}`,_={EP_COMPONENT_NAME:`${null===(i=this.el.querySelector(".web-banner__docked-title"))||void 0===i?void 0:i.textContent.trim()}/${s}`,EP_CTA:s,EP_ARTICLE_PRODUCT_NAME:d};this.handleCTEvent(_)}));const m=Array.from(document.getElementsByTagName("meta"));let g="";m.forEach(((e,t)=>{"tag-1"===m[t].getAttribute("name")&&(g=m[t].getAttribute("content"))}));const C=document.querySelector('[data-component="ArticleDetailsCard"]'),y=document.querySelector('[data-component="QuickRead"]'),p=this.el.querySelector(".web-banner .nudge--with-icon");!p||C||y||(p.innerHTML="");const E=[],f=Array.from(document.querySelectorAll(".related-articles .related-articles__lists .related-articles__lists__item"));f&&f.forEach((e=>{E.push({pageUrl:e.querySelector("a").pathname,views:e.querySelector(".view-read-row__view").getAttribute("data-articleViews"),pageType:null==g?void 0:g.toUpperCase()}),e.querySelector(".related-articles__lists__desc .view-read-row .view-read-row__view").innerHTML=""}));const k={pageUrl:window.location.pathname,views:p?p.getAttribute("data-bannerviews"):""},S=(e,t)=>{(null==k?void 0:k.pageUrl)&&k.pageUrl===e.pageUrl&&p&&(p.innerHTML=k.views),f&&f.forEach((e=>{e.querySelector(".related-articles__lists__desc .view-read-row__view").classList.remove("loading");const n=()=>{for(let n=0;nv(this,void 0,void 0,(function*(){let e={};e=p?{method:"POST",url:`${r.$b}/api/v1/dynamicviews`,data:{current:{pageUrl:window.location.pathname,pageType:null==g?void 0:g.toUpperCase(),isIncreased:null},related:E,_csrf:(0,a.ej)("CSRFtoken")},withCredentials:!0}:{method:"POST",url:`${r.$b}/api/v1/dynamicviews`,data:{related:E,_csrf:(0,a.ej)("CSRFtoken")},withCredentials:!0};try{const{data:t}=yield(0,i.default)(e);p&&p.classList.remove("loading"),S(p?t.data.current:{},t.data.related)}catch(e){p&&p.classList.remove("loading"),S(k,E)}})),q=()=>v(this,void 0,void 0,(function*(){try{yield(0,l.Mt)(),A()}catch(e){S(k,E)}}));(p&&!C&&!y||f&&!C&&!y)&&((0,a.ej)("CSRFtoken")?A():q())},this.handleCTEvent=e=>{const t=`ARTICLE_${u.D}`,n=`${window.location.host}${window.location.pathname}`,i=(0,a.C2)("tag-3")||"NA",r=Object.assign({EP_PAGE_URL:n,EP_PRODUCT_NAME:i},e);(0,_.L)(t,r)},this.el=e,this.initialize()}}b.init=e=>new b(e)},19191:function(e,t,n){n.d(t,{g:function(){return r},i:function(){return o}});var i=n(93120);const r=()=>({type:i.W}),o=()=>({type:i._})}}]);