<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">define(["plus","underscore","handlebars","personalizationUtils","cqservice","common-utils","helpers"],function(o,i,e,r,t,n,s){function a(e){var t=this;t.element=o(e),t.showPromo=window.kpmgPersonalize.isSitePersonalize&amp;&amp;r.privacyUtils.isAccepted(),t.isLoggedIn=r.accountUtils.isLoggedIn(),t.articles=t.getLastReadFlexTemplates(),t.links={},t.metaObject=r.commonUtils.getMetaObject(),t.showPromo?t.initialize():5===n.getPrivacyPolicyOption()&amp;&amp;n.getUserConsent().then(function(e){t.handleUserConsent(e)}),o(document).trigger("template.loaded")}return a.prototype.handleUserConsent=function(e){var t=this,e=e||[];t.showPromo=window.kpmgPersonalize.isSitePersonalize&amp;&amp;-1&lt;e.indexOf("C0001"),t.showPromo&amp;&amp;t.initialize()},a.prototype.initialize=function(){var t=this;r.myKpmgFlyoutUtils.getLinksJson().done(function(e){t.links=e.links,t.element.attr("href",n.CONSTANTS.DOMAIN+t.links.register.url)}),null!==sessionStorage.getItem("smartLogicTags")&amp;&amp;""!==sessionStorage.getItem("smartLogicTags")||o.ajax({url:r.constants.interestsServiceURL.replace(/&lt;countryCode&gt;/g,window.kpmgPersonalize.snp.params.countryCode).replace(/&lt;languageCode&gt;/g,window.kpmgPersonalize.snp.params.languageCode).replace(/&lt;boolean&gt;/g,"false"),success:function(e){e=r.commonUtils.processInterestsJson(e),sessionStorage.setItem("smartLogicTags",JSON.stringify(e)),e=document.createEvent("CustomEvent");e.initCustomEvent("smartLogicTags",!1,!1,{}),document.dispatchEvent(e)}}),t.metaObject.KPMG_Template_Type&amp;&amp;-1&lt;t.metaObject.KPMG_Template_Type.indexOf("flexible-template")&amp;&amp;t.handleOnFlexTemplate(),t.element.on("click",function(){s.triggerSatteliteTracking("onClickFlexCTA")})},a.prototype.getLastReadFlexTemplates=function(){var e=r.accountUtils.getLocale(),e="/"+e.countryCode+"/"+e.languageCode;return JSON.parse(sessionStorage.lastReadFlexTemplates||"{}")[e]||[]},a.prototype.handleOnFlexTemplate=function(){var t=this,e=t.articles.filter(function(e){if(e.KPMG_URL===t.metaObject.KPMG_URL)return!0}),o=t.getCommonTags();t.showPromo&amp;&amp;o.length&amp;&amp;3&lt;=t.articles.length&amp;&amp;0===e.length&amp;&amp;!r.accountUtils.isLoggedIn()&amp;&amp;!sessionStorage.getItem("registrationPromoOnFlexTemplate")&amp;&amp;(sessionStorage.setItem("registrationPromoOnFlexTemplate",!0),null!==sessionStorage.getItem("smartLogicTags")&amp;&amp;""!==sessionStorage.getItem("smartLogicTags")?t.showPromoComponent():document.addEventListener("smartLogicTags",function(){t.showPromoComponent()}))},a.prototype.getCommonTags=function(){var t,o=this,n=r.commonUtils.getMetaObject(),s={KPMG_Industry_ID_Loc:"sl-industry-id-local",KPMG_Topic_ID:"sl-topics-id",KPMG_Service_ID_Loc:"sl-service-id-local"},a=[];return o.commonTagsArray=[],Object.keys(s).forEach(function(e){n[e]&amp;&amp;(t=n[e].split(","),a=a.concat(t))}),a=i.uniq(a),o.articles.forEach(function(t,e){Object.keys(s).forEach(function(e){t[e]&amp;&amp;(e=t[e].split(","),e=i.intersection(e,a),o.commonTagsArray=o.commonTagsArray.concat(e))})}),o.commonTagsArray=o.getMostRepeatedTags(o.commonTagsArray),o.commonTagsArray},a.prototype.getMostRepeatedTags=function(e){var t,o,n,s=[],a=[];for(e.forEach(function(){a.push(0)}),o=0;o&lt;e.length;o++)for(n=0;n&lt;e.length;n++)e[o]===e[n]&amp;&amp;a[o]++;for(t=(e=&gt;{for(var t=e.length,o=-1/0;t--;)e[t]&gt;o&amp;&amp;(o=e[t]);return o})(a),o=0;o&lt;e.length;o++)a[o]===t&amp;&amp;s.push(e[o]);return s.filter(function(e,t,o){return o.indexOf(e)===t})},a.prototype.getRandomTag=function(e){e=e||this.commonTagsArray;return e[Math.floor(Math.random()*e.length)]},a.prototype.getSmartLogicTag=function(s){var a="";return function e(t){for(var o,n=0;n&lt;t.length;n++)(o=t[n])["zthes-id"]===s&amp;&amp;(a=o.name),o.tags&amp;&amp;o.tags.length&amp;&amp;e(o.tags)}((sessionStorage.getItem("smartLogicTags")?JSON.parse(sessionStorage.getItem("smartLogicTags")):{}).tags||[]),a},a.prototype.updatePromoWithSmartlogicTag=function(e){this.element.find(".heading").text(this.element.find(".heading").text().replace("{tag_name}",e)),this.element.find(".description").text(this.element.find(".description").text().replace("{tag_name}",e))},a.prototype.showPromoComponent=function(){var e=this,t=e.getRandomTag(e.commonTagsArray),t=e.getSmartLogicTag(t);e.updatePromoWithSmartlogicTag(t),o(".registrationpromo-row").show(),e.element.removeClass("hidden"),s.triggerSatteliteTracking("flexCTA")},a});</pre></body></html>