1var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(d){return d.raw=d};$jscomp.createTemplateTagFirstArgWithRaw=function(d,a){d.raw=a;return d};$jscomp.arrayIteratorImpl=function(d){var a=0;return function(){return a<d.length?{done:!1,value:d[a++]}:{done:!0}}};$jscomp.arrayIterator=function(d){return{next:$jscomp.arrayIteratorImpl(d)}};$jscomp.makeIterator=function(d){var a="undefined"!=typeof Symbol&&Symbol.iterator&&d[Symbol.iterator];return a?a.call(d):$jscomp.arrayIterator(d)}; 2$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(d,a,b){if(d==Array.prototype||d==Object.prototype)return d;d[a]=b.value;return d}; 3$jscomp.getGlobal=function(d){d=["object"==typeof globalThis&&globalThis,d,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var a=0;a<d.length;++a){var b=d[a];if(b&&b.Math==Math)return b}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={}; 4$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(d,a){var b=$jscomp.propertyToPolyfillSymbol[a];if(null==b)return d[a];b=d[b];return void 0!==b?b:d[a]};$jscomp.polyfill=function(d,a,b,c){a&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(d,a,b,c):$jscomp.polyfillUnisolated(d,a,b,c))}; 5$jscomp.polyfillUnisolated=function(d,a,b,c){b=$jscomp.global;d=d.split(".");for(c=0;c<d.length-1;c++){var e=d[c];if(!(e in b))return;b=b[e]}d=d[d.length-1];c=b[d];a=a(c);a!=c&&null!=a&&$jscomp.defineProperty(b,d,{configurable:!0,writable:!0,value:a})}; 6$jscomp.polyfillIsolated=function(d,a,b,c){var e=d.split(".");d=1===e.length;c=e[0];c=!d&&c in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var f=0;f<e.length-1;f++){var g=e[f];if(!(g in c))return;c=c[g]}e=e[e.length-1];b=$jscomp.IS_SYMBOL_NATIVE&&"es6"===b?c[e]:null;a=a(b);null!=a&&(d?$jscomp.defineProperty($jscomp.polyfills,e,{configurable:!0,writable:!0,value:a}):a!==b&&(void 0===$jscomp.propertyToPolyfillSymbol[e]&&($jscomp.propertyToPolyfillSymbol[e]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(e): 7$jscomp.POLYFILL_PREFIX+e),e=$jscomp.propertyToPolyfillSymbol[e],$jscomp.defineProperty(c,e,{configurable:!0,writable:!0,value:a})))};$jscomp.underscoreProtoCanBeSet=function(){var d={a:!0},a={};try{return a.__proto__=d,a.a}catch(b){}return!1};$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(d,a){d.__proto__=a;if(d.__proto__!==a)throw new TypeError(d+" is not extensible");return d}:null; 8$jscomp.generator={};$jscomp.generator.ensureIteratorResultIsObject_=function(d){if(!(d instanceof Object))throw new TypeError("Iterator result "+d+" is not an object");};$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null}; 9$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(d){this.yieldResult=d}; 10$jscomp.generator.Context.prototype.throw_=function(d){this.abruptCompletion_={exception:d,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(d){this.abruptCompletion_={return:d};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(d){this.abruptCompletion_={jumpTo:d};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(d,a){this.nextAddress=a;return{value:d}}; 11$jscomp.generator.Context.prototype.yieldAll=function(d,a){d=$jscomp.makeIterator(d);var b=d.next();$jscomp.generator.ensureIteratorResultIsObject_(b);if(b.done)this.yieldResult=b.value,this.nextAddress=a;else return this.yieldAllIterator_=d,this.yield(b.value,a)};$jscomp.generator.Context.prototype.jumpTo=function(d){this.nextAddress=d};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0}; 12$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(d,a){this.catchAddress_=d;void 0!=a&&(this.finallyAddress_=a)};$jscomp.generator.Context.prototype.setFinallyBlock=function(d){this.catchAddress_=0;this.finallyAddress_=d||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(d,a){this.nextAddress=d;this.catchAddress_=a||0}; 13$jscomp.generator.Context.prototype.enterCatchBlock=function(d){this.catchAddress_=d||0;d=this.abruptCompletion_.exception;this.abruptCompletion_=null;return d};$jscomp.generator.Context.prototype.enterFinallyBlock=function(d,a,b){b?this.finallyContexts_[b]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=d||0;this.finallyAddress_=a||0}; 14$jscomp.generator.Context.prototype.leaveFinallyBlock=function(d,a){a=this.finallyContexts_.splice(a||0)[0];if(a=this.abruptCompletion_=this.abruptCompletion_||a){if(a.isException)return this.jumpToErrorHandler_();void 0!=a.jumpTo&&this.finallyAddress_<a.jumpTo?(this.nextAddress=a.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=d};$jscomp.generator.Context.prototype.forIn=function(d){return new $jscomp.generator.Context.PropertyIterator(d)}; 15$jscomp.generator.Context.PropertyIterator=function(d){this.object_=d;this.properties_=[];for(var a in d)this.properties_.push(a);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var d=this.properties_.pop();if(d in this.object_)return d}return null};$jscomp.generator.Engine_=function(d){this.context_=new $jscomp.generator.Context;this.program_=d}; 16$jscomp.generator.Engine_.prototype.next_=function(d){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,d,this.context_.next_);this.context_.next_(d);return this.nextStep_()}; 17$jscomp.generator.Engine_.prototype.return_=function(d){this.context_.start_();var a=this.context_.yieldAllIterator_;if(a)return this.yieldAllStep_("return"in a?a["return"]:function(b){return{value:b,done:!0}},d,this.context_.return);this.context_.return(d);return this.nextStep_()}; 18$jscomp.generator.Engine_.prototype.throw_=function(d){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],d,this.context_.next_);this.context_.throw_(d);return this.nextStep_()}; 19$jscomp.generator.Engine_.prototype.yieldAllStep_=function(d,a,b){try{var c=d.call(this.context_.yieldAllIterator_,a);$jscomp.generator.ensureIteratorResultIsObject_(c);if(!c.done)return this.context_.stop_(),c;var e=c.value}catch(f){return this.context_.yieldAllIterator_=null,this.context_.throw_(f),this.nextStep_()}this.context_.yieldAllIterator_=null;b.call(this.context_,e);return this.nextStep_()}; 20$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var d=this.program_(this.context_);if(d)return this.context_.stop_(),{value:d.value,done:!1}}catch(a){this.context_.yieldResult=void 0,this.context_.throw_(a)}this.context_.stop_();if(this.context_.abruptCompletion_){d=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(d.isException)throw d.exception;return{value:d.return,done:!0}}return{value:void 0,done:!0}}; 21$jscomp.generator.Generator_=function(d){this.next=function(a){return d.next_(a)};this.throw=function(a){return d.throw_(a)};this.return=function(a){return d.return_(a)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(d,a){a=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(a));$jscomp.setPrototypeOf&&d.prototype&&$jscomp.setPrototypeOf(a,d.prototype);return a}; 22$jscomp.asyncExecutePromiseGenerator=function(d){function a(c){return d.next(c)}function b(c){return d.throw(c)}return new Promise(function(c,e){function f(g){g.done?c(g.value):Promise.resolve(g.value).then(a,b).then(f,e)}f(d.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(d){return $jscomp.asyncExecutePromiseGenerator(d())};$jscomp.asyncExecutePromiseGeneratorProgram=function(d){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(d)))}; 23Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);Element.prototype.closest||(Element.prototype.closest=function(d){var a=this;if(!document.documentElement.contains(a))return null;do{if(a.matches(d))return a;a=a.parentElement||a.parentNode}while(null!==a&&1===a.nodeType);return null}); 24(function(){function d(p){function w(u){t._config=u;u.element.removeAttribute("data-cmp-is");L(u.options);G(u.element);t._elements.item&&(t._elements.item=Array.isArray(t._elements.item)?t._elements.item:[t._elements.item],t._elements.button=Array.isArray(t._elements.button)?t._elements.button:[t._elements.button],t._elements.panel=Array.isArray(t._elements.panel)?t._elements.panel:[t._elements.panel],t._properties.singleExpansion&&(u=N(),1<u.length&&A(u.length-1)),H(),B(),z());window.Granite&&window.Granite.author&& 25window.Granite.author.MessageChannel&&(window.CQ.CoreComponents.MESSAGE_CHANNEL=window.CQ.CoreComponents.MESSAGE_CHANNEL||new window.Granite.author.MessageChannel("cqauthor",window),window.CQ.CoreComponents.MESSAGE_CHANNEL.subscribeRequestMessage("cmp.panelcontainer",function(x){if(x.data&&"cmp-accordion"===x.data.type&&x.data.id===t._elements.self.dataset.cmpPanelcontainerId&&"navigate"===x.data.operation){var I=t._properties.singleExpansion;t._properties.singleExpansion=!0;A(x.data.index);t._properties.singleExpansion= 26I}}))}function z(){if(e){var u=e.getDeepLinkItemIdx(t,"item","item");if(-1<u){if((u=t._elements.item[u])&&!u.hasAttribute(m.item.expanded)){if(t._properties.singleExpansion)for(var x=0;x<t._elements.item.length;x++)t._elements.item[x].hasAttribute(m.item.expanded)&&q(t._elements.item[x],!1,!0);q(u,!0,!0)}(u=window.location.hash.substring(1))&&(u=document.querySelector("[id\x3d'"+u+"']"))&&u.scrollIntoView()}}}function G(u){t._elements={};t._elements.self=u;u=t._elements.self.querySelectorAll("[data-cmp-hook-accordion]"); 27for(var x=0;x<u.length;x++){var I=u[x];if(I.closest(".cmp-accordion")===t._elements.self){var r="accordion";r=r.charAt(0).toUpperCase()+r.slice(1);r=I.dataset["cmpHook"+r];t._elements[r]?(Array.isArray(t._elements[r])||(t._elements[r]=[t._elements[r]]),t._elements[r].push(I)):t._elements[r]=I}}}function L(u){t._properties={};for(var x in n)if(Object.prototype.hasOwnProperty.call(n,x)){var I=n[x],r=null;
27u&&null!=u[x]&&(r=u[x],I&&"function"===typeof I.transform&&(r=I.transform(r)));null===r&&(r=n[x]["default"]); 28t._properties[x]=r}}function B(){window.addEventListener("hashchange",z,!1);var u=t._elements.button;if(u)for(var x=0;x<u.length;x++)(function(I){u[x].addEventListener("click",function(r){A(I);D(I)});u[x].addEventListener("keydown",function(r){var v=t._elements.button.length-1;switch(r.keyCode){case k.ARROW_LEFT:case k.ARROW_UP:r.preventDefault();0<I&&D(I-1);break;case k.ARROW_RIGHT:case k.ARROW_DOWN:r.preventDefault();I<v&&D(I+1);break;case k.HOME:r.preventDefault();D(0);break;case k.END:r.preventDefault(); 29D(v);break;case k.ENTER:case k.SPACE:r.preventDefault(),A(I),D(I)}})})(x)}function A(u){if(u=t._elements.item[u]){if(t._properties.singleExpansion)for(var x=0;x<t._elements.item.length;x++)t._elements.item[x]!==u&&E(t._elements.item[x])&&q(t._elements.item[x],!1);q(u,!E(u));if(f){u=t._elements.self.id;var I=N().map(function(r){return b(r)});x={component:{}};x.component[u]={shownItems:I};I={component:{}};I.component[u]={shownItems:void 0};g.push(I);g.push(x)}}}function q(u,x,I){x?(u.setAttribute(m.item.expanded, 30""),x=t._elements.item.indexOf(u),!I&&e&&e.updateUrlHash(t,"item",x),f&&g.push({event:"cmp:show",eventInfo:{path:"component."+b(u)}})):(u.removeAttribute(m.item.expanded),!I&&e&&e.removeUrlHash(),f&&g.push({event:"cmp:hide",eventInfo:{path:"component."+b(u)}}));E(u)?y(u):C(u)}function E(u){return u&&u.dataset&&void 0!==u.dataset.cmpExpanded}function H(){for(var u=0;u<t._elements.item.length;u++){var x=t._elements.item[u];E(x)?y(x):C(x)}}function N(){for(var u=[],x=0;x<t._elements.item.length;x++){var I= 31t._elements.item[x];E(I)&&u.push(I)}return u}function y(u){u=t._elements.item.indexOf(u);if(-1<u){var x=t._elements.button[u];u=t._elements.panel[u];x.classList.add(h.button.expanded);setTimeout(function(){x.setAttribute("aria-expanded",!0)},100);u.classList.add(h.panel.expanded);u.classList.remove(h.panel.hidden);u.setAttribute("aria-hidden",!1)}}function C(u){u=t._elements.item.indexOf(u);if(-1<u){var x=t._elements.button[u];u=t._elements.panel[u];x.classList.remove(h.button.expanded);setTimeout(function(){x.setAttribute("aria-expanded", 32!1)},100);u.classList.add(h.panel.hidden);u.classList.remove(h.panel.expanded);u.setAttribute("aria-hidden",!0)}}function D(u){t._elements.button[u].focus()}var t=this;p&&p.element&&w(p)}function a(p){p=p.dataset;var w=[],z="accordion";z=z.charAt(0).toUpperCase()+z.slice(1);z=["is","hook"+z];for(var G in p)if(Object.prototype.hasOwnProperty.call(p,G)){var L=p[G];0===G.indexOf("cmp")&&(G=G.slice(3),G=G.charAt(0).toLowerCase()+G.substring(1),-1===z.indexOf(G)&&(w[G]=L))}return w}function b(p){return p? 33p.dataset.cmpDataLayer?Object.keys(JSON.parse(p.dataset.cmpDataLayer))[0]:p.id:null}function c(){g=(f=document.body.hasAttribute("data-cmp-data-layer-enabled"))?window.adobeDataLayer=window.adobeDataLayer||[]:void 0;for(var p=document.querySelectorAll(l.self),w=0;w<p.length;w++)new d({element:p[w],options:a(p[w])});p=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;w=document.querySelector("body");(new p(function(z){z.forEach(function(G){G=[].slice.call(G.addedNodes); 340<G.length&&G.forEach(function(L){L.querySelectorAll&&[].slice.call(L.querySelectorAll(l.self)).forEac
34h(function(B){new d({element:B,options:a(B)})})})})})).observe(w,{subtree:!0,childList:!0,characterData:!0})}var e=window.CQ&&window.CQ.CoreComponents&&window.CQ.CoreComponents.container&&window.CQ.CoreComponents.container.utils?window.CQ.CoreComponents.container.utils:void 0;e||console.warn("Accordion: container utilities at window.CQ.CoreComponents.container.utils are not available. This can lead to missing features. Ensure the core.wcm.components.commons.site.container client library is included on the page."); 35var f,g,k={ENTER:13,SPACE:32,END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40},l={self:'[data-cmp-is\x3d"accordion"]'},h={button:{disabled:"cmp-accordion__button--disabled",expanded:"cmp-accordion__button--expanded"},panel:{hidden:"cmp-accordion__panel--hidden",expanded:"cmp-accordion__panel--expanded"}},m={item:{expanded:"data-cmp-expanded"}},n={singleExpansion:{"default":!1,transform:function(p){return!(null===p||"undefined"===typeof p)}}};"loading"!==document.readyState?c(): 36document.addEventListener("DOMContentLoaded",c);e&&window.addEventListener("load",e.scrollToAnchor,!1)})();Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);Element.prototype.closest||(Element.prototype.closest=function(d){var a=this;if(!document.documentElement.contains(a))return null;do{if(a.matches(d))return a;a=a.parentElement||a.parentNode}while(null!==a&&1===a.nodeType);return null}); 37(function(){function d(h){function m(A){B._config=A;A.element.removeAttribute("data-cmp-is");w(A.element);B._active=p(B._elements.tab);B._elements.tabpanel&&(G(),z(),n());window.Granite&&window.Granite.author&&window.Granite.author.MessageChannel&&(CQ.CoreComponents.MESSAGE_CHANNEL=CQ.CoreComponents.MESSAGE_CHANNEL||new window.Granite.author.MessageChannel("cqauthor",window),CQ.CoreComponents.MESSAGE_CHANNEL.subscribeRequestMessage("cmp.panelcontainer",function(q){q.data&&"cmp-tabs"===q.data.type&& 38q.data.id===B._elements.self.dataset.cmpPanelcontainerId&&"navigate"===q.data.operation&&(B._active=q.data.index,G())}))}function n(){if(e){var A=e.getDeepLinkItemIdx(B,"tab","tabpanel");if(-1<A){var q=B._elements.tab[A];q&&B._elements.tab[B._active].id!==q.id&&L(A,!0);(A=window.location.hash.substring(1))&&(A=document.querySelector("[id\x3d'"+A+"']"))&&A.scrollIntoView()}}}function p(A){if(A)for(var q=0;q<A.length;q++)if(A[q].classList.contains(l.active.tab))return q;return 0}function w(A){B._elements= 39{};B._elements.self=A;A=B._elements.self.querySelectorAll("[data-cmp-hook-tabs]");for(var q=0;q<A.length;q++){var E=A[q];if(E.closest(".cmp-tabs")===B._elements.self){var H="tabs";H=H.charAt(0).toUpperCase()+H.slice(1);H=E.dataset["cmpHook"+H];B._elements[H]?(Array.isArray(B._elements[H])||(B._elements[H]=[B._elements[H]]),B._elements[H].push(E)):B._elements[H]=E}}}function z(){window.addEventListener("hashchange",n,!1);var A=B._elements.tab;if(A)for(var q=0;q<A.length;q++)(function(E){A[q].addEventListener("click", 40function(H){L(E)});A[q].addEventListener("keydown",function(H){var N=B._active,y=B._elements.tab.length-1;switch(H.keyCode){case k.ARROW_LEFT:case k.ARROW_UP:H.preventDefault();0<N&&L(N-1);break;case k.ARROW_RIGHT:case k.ARROW_DOWN:H.preventDefault();N<y&&L(N+1);break;case k.HOME:H.preventDefault();L(0);break;case k.END:H.preventDefault(),L(y)}})})(q)}function G(){var A=B._elements.tabpanel,q=B._elements.tab;if(A)if(Array.isArray(A))for(var E=0;E<A.length;E++)E===parseInt(B._active)?(A[E].classList.add(l.active.tabpanel), 41A[E].removeAttribute("aria-hidden"),q[E].classList.add(l.active.tab),q[E].setAttribute("aria-selected",!0),q[E].setAttribute("tabindex","0")):(A[E].classList.remove(l.active.tabpanel),A[E].setAttribute("aria-hidden",!0),q[E].classList.remove(l.active.tab),q[E].setAttribute("aria-selected",!1),q[E].setAttribute("tabindex","-1"));else A.classList.add(l.active.tabpanel),q.classList.add(l.active.tab)}function L(A,q){var E=B._active;!q&&e&&e.updateUrlHash(B,"tab",A);B._active=A;G();q=window.scrollX||window.pageXOffset; 42var H=window.scrollY||window.pageYOffset;B._elements.tab[A].focus();window.scrollTo(q,H);f&&(A=b(B._elements.tabpanel[A]),E=b(B._elements.tabpanel[E]),g.pu
42sh({event:"cmp:show",eventInfo:{path:"component."+A}}),g.push({event:"cmp:hide",eventInfo:{path:"component."+E}}),E=B._elements.self.id,q={component:{}},q.component[E]={shownItems:[A]},A={component:{}},A.component[E]={shownItems:void 0},g.push(A),g.push(q))}var B=this;h&&h.element&&m(h)}function a(h){h=h.dataset;var m=[],n="tabs";n=n.charAt(0).toUpperCase()+ 43n.slice(1);n=["is","hook"+n];for(var p in h)if(Object.prototype.hasOwnProperty.call(h,p)){var w=h[p];0===p.indexOf("cmp")&&(p=p.slice(3),p=p.charAt(0).toLowerCase()+p.substring(1),-1===n.indexOf(p)&&(m[p]=w))}return m}function b(h){return h?h.dataset.cmpDataLayer?Object.keys(JSON.parse(h.dataset.cmpDataLayer))[0]:h.id:null}function c(){g=(f=document.body.hasAttribute("data-cmp-data-layer-enabled"))?window.adobeDataLayer=window.adobeDataLayer||[]:void 0;for(var h=document.querySelectorAll(l.self), 44m=0;m<h.length;m++)new d({element:h[m],options:a(h[m])});h=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;m=document.querySelector("body");(new h(function(n){n.forEach(function(p){p=[].slice.call(p.addedNodes);0<p.length&&p.forEach(function(w){w.querySelectorAll&&[].slice.call(w.querySelectorAll(l.self)).forEac
44h(function(z){new d({element:z,options:a(z)})})})})})).observe(m,{subtree:!0,childList:!0,characterData:!0})}var e=window.CQ&&window.CQ.CoreComponents&&window.CQ.CoreComponents.container&& 45window.CQ.CoreComponents.container.utils?window.CQ.CoreComponents.container.utils:void 0;e||console.warn("Tabs: container utilities at window.CQ.CoreComponents.container.utils are not available. This can lead to missing features. Ensure the core.wcm.components.commons.site.container client library is included on the page.");var f,g,k={END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40},l={self:'[data-cmp-is\x3d"tabs"]',active:{tab:"cmp-tabs__tab--active",tabpanel:"cmp-tabs__tabpanel--active"}}; 46"loading"!==document.readyState?c():document.addEventListener("DOMContentLoaded",c);e&&window.addEventListener("load",e.scrollToAnchor,!1)})(); 47(function(){function d(h){function m(v){r._config=v;v.element.removeAttribute("data-cmp-is");w(v.options);p(v.element);r._active=0;r._paused=!1;r._elements.item&&(y(),z(),u(),N(),n());window.Granite&&window.Granite.author&&window.Granite.author.MessageChannel&&(window.CQ=window.CQ||{},window.CQ.CoreComponents=window.CQ.CoreComponents||{},window.CQ.CoreComponents.MESSAGE_CHANNEL=window.CQ.CoreComponents.MESSAGE_CHANNEL||new window.Granite.author.MessageChannel("cqauthor",window),window.CQ.CoreComponents.MESSAGE_CHANNEL.subscribeRequestMessage("cmp.panelcontainer", 48function(F){F.data&&"cmp-carousel"===F.data.type&&F.data.id===r._elements.self.dataset.cmpPanelcontainerId&&"navigate"===F.data.operation&&D(F.data.index)}))}function n(){if(b){var v=b.getDeepLinkItemIdx(r,"item","item");if(-1<v){var F=r._elements.item[v];F&&r._elements.item[r._active].id!==F.id&&(t(v,!0),E());(v=window.location.hash.substring(1))&&(v=document.querySelector("[id\x3d'"+v+"']"))&&v.scrollIntoView()}}}function p(v){r._elements={};r._elements.self=v;v=r._elements.self.querySelectorAll("[data-cmp-hook-carousel]"); 49for(var F=0;F<v.length;F++){var J=v[F],K="carousel";K=K.charAt(0).toUpperCase()+K.slice(1);K=J.dataset["cmpHook"+K];r._elements[K]?(Array.isArray(r._elements[K])||(r._elements[K]=[r._elements[K]]),r._elements[K].push(J)):r._elements[K]=J}}function w(v){r._properties={};for(var F in g)if(Object.prototype.hasOwnProperty.call(g,F)){var J=g[F],K=null;v&&null!=v[F]&&(K=v[F],J&&"function"===typeof J.transform&&(K=J.transform(K)));null===K&&(K=g[F]["default"]);r._properties[F]=K}}function z(){window.addEventListener("hashchange", 50n,!1);r._elements.previous&&r._elements.previous.addEventListener("click",function(){var M=0===r._active?r._elements.item.length-1:r._active-1;D(M);c&&e.push({event:"cmp:show",eventInfo:{path:"component."+a(r._elements.item[M])}})});r._elements.next&&r._elements.next.addEventListener("click",function(){var M=C();D(M);c&&e.push({event:"cmp:show",eventInfo:{path:"component."+a(r._elements.item[M])}})});var v=r._elements.indicator;if(v)for(var F=0;F<v.length;F++)(function(M){v[F].addEventListener("click", 51function(O){t(M);E()})})(F);r._elements.pause&&r._properties.autoplay&&r._elements.pause.addEventListener("click",A);r._elements.play&&r._properties.autoplay&&r._elements.play.addEventListener("click",q);r._elements.self.addEventListener("keydown",G);r._properties.autopauseDisabled||(r._elements.self.addEventListener("mouseenter",L),r._elements.self.addEventListener("mouseleave",B));var J=r._elements.item;if(J)for(var K=0;K<J.length;K++)J[K].addEventListener("focusin",L),J[K].addEventListener("focusout", 52B)}function G(v){var F=r._active,J=r._elements.indicator.length-1;switch(v.keyCode){case f.ARROW_LEFT:case f.ARROW_UP:v.preventDefault();0<F&&t(F-1);break;case f.ARROW_RIGHT:case f.ARROW_DOWN:v.preventDefault();F<J&&t(F+1);break;case f.HOME:v.preventDefault();t(0);break;case f.END:v.preventDefault();t(J);break;case f.SPACE:r._properties.autoplay&&v.target!==r._elements.previous&&v.target!==r._elements.next&&(v.preventDefault(),r._paused?H():E()),v.target===r._elements.pause&&r._elements.play.focus(), 53v.target===r._elements.play&&r._elements.pause.focus()}}function L(v){x()}function B(v){u()}function A(v){E();r._elements.play.focus()}function q(){H();r._elements.pause.focus()}function E(){r._paused=!0;x();N()}function H(){var v=r._paused=!1;r._elements.self.parentElement&&(v=r._elements.self.parentElement.querySelector(":hover")===r._elements.self);!r._properties.autopauseDisabled&&v||u();N()}function N(){I(r._elements.pause,r._paused);I(r._elements.play,!r._paused)}function y(){var v=r._elements.item; 54if(v&&Array.isArray(v))for(var F=0;F<v.length;F++)if(v[F].classList.contains("cmp-carousel__item--active")){r._active=F;break}}function C(){return r._active===r._elements.item.length-1?0:r._active+1}function D(v,F){if(!(0>v||v>r._elements.item.length-1)){r._active=v;var J=r._elements.item,K=r._elements.indicator;if(J)if(Array.isArray(J))for(var M=0;M<J.length;M++)M===parseInt(r._active)?(J[M].classList.add("cmp-carousel__item--active"),J[M].removeAttribute("aria-hidden"),K[M].classList.add("cmp-carousel__indicator--active"), 55K[M].setAttribute("aria-selected",!0),K[M].setAttribute("tabindex","0")):(J[M].classList.remove("cmp-carousel__item--active"),J[M].setAttribute("aria-hidden",!0),K[M].classList.remove("cmp-carousel__indicator--active"),K[M].setAttribute("aria-selected",!1),K[M].setAttribute("tabindex","-1"));else J.classList.add("cmp-carousel__item--active"),K.classList.add("cmp-carousel__indicator--active");!F&&b&&b.updateUrlHash(r,"item",v);c&&(F=r._elements.self.id,J=a(r._elements.item[v]),v={component:{}},v.component[F]= 56{shownItems:[J]},J={component:{}},J.component[F]={shownItems:void 0},e.push(J),e.push(v));r._elements.self.parentElement&&r._elements.self.parentElement.querySelector(":hover")!==r._elements.self&&u()}}function t(v,F){D(v,F);F=window.scrollX||window.pageXOffset;var J=window.scrollY||window.pageYOffset;r._elements.indicator[v].focus();window.scrollTo(F,J);c&&e.push({event:"cmp:show",eventInfo:{path:"component."+a(r._elements.item[v])}})}function u(){!r._paused&&r._properties.autoplay&&(x(),r._autoplayIntervalId= 57window.setInterval(function(){if(!document.visibilityState||!document.hidden){var v=r._elements.indicators;v!==document.activeElement&&v.contains(document.activeElement)?t(C(),!0):D(C(),!0)}},r._properties.delay))}function x(){window.clearInterval(r._autoplayIntervalId);r._autoplayIntervalId=null}function I(v,F){v&&(!1!==F?(v.disabled=!0,v.classList.add("cmp-carousel__action--disabled")):(v.disabled=!1,v.classList.remove("cmp-carousel__action--disabled")))}var r=this;h&&h.element&&m(h)}function a(h){return h? 58h.dataset.cmpDataLayer?Object.keys(JSON.parse(h.dataset.cmpDataLayer))[0]:h.id:null}var b=window.CQ&&window.CQ.CoreComponents&&window.CQ.CoreComponents.c
58ontainer&&window.CQ.CoreComponents.container.utils?window.CQ.CoreComponents.container.utils:void 0;b||console.warn("Tabs: container utilities at window.CQ.CoreComponents.container.utils are not available. This can lead to missing features. Ensure the core.wcm.components.commons.site.container client library is included on the page.");var c,e,f={SPACE:32, 59END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40},g={autoplay:{"default":!1,transform:function(h){return!(null===h||"undefined"===typeof h)}},delay:{"default":5E3,transform:function(h){h=parseFloat(h);return isNaN(h)?null:h}},autopauseDisabled:{"default":!1,transform:function(h){return!(null===h||"undefined"===typeof h)}}},k="loading"!==document.readyState?Promise.resolve():new Promise(function(h){document.addEventListener("DOMContentLoaded",h)}),l=window.CMP&&window.CMP.utils? 60Promise.resolve():new Promise(function(h){document.addEventListener("core.wcm.components.commons.site.utils.loaded",h)});Promise.all([k,l]).then(function(){e=(c=document.body.hasAttribute("data-cmp-data-layer-enabled"))?window.adobeDataLayer=window.adobeDataLayer||[]:void 0;for(var h=document.querySelectorAll('[data-cmp-is\x3d"carousel"]'),m=0;m<h.length;m++)new d({element:h[m],options:CMP.utils.readData(h[m],"carousel")});h=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver; 61m=document.querySelector("body");(new h(function(n){n.forEach(function(p){p=[].slice.call(p.addedNodes);0<p.length&&p.forEach(function(w){w.querySelectorAll&&[].slice.call(w.querySelectorAll('[data-cmp-is\x3d"carousel"]')).forEach(function(z){new d({element:z,options:CMP.utils.readData(z,"carousel")})})})})})).observe(m,{subtree:!0,childList:!0,characterData:!0})});b&&window.addEventListener("load",b.scrollToAnchor,!1)})(); 62window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(d){d=(this.document||this.ownerDocument).querySelectorAll(d);var a=this,b;do for(b=d.length;0<=--b&&d.item(b)!==a;);while(0>b&&(a=a.parentElement));return a}); 63window.Element&&!Element.prototype.matches&&(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(d){d=(this.document||this.ownerDocument).querySelectorAll(d);for(var a=d.length;0<=--a&&d.item(a)!==this;);return-1<a}); 64Object.assign||(Object.assign=function(d,a){if(null===d)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(d),c=1;c<arguments.length;c++){var e=arguments[c];if(null!==e)for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(b[f]=e[f])}return b}); 65(function(d){d.forEach(function(a){Object.prototype.hasOwnProperty.call(a,"remove")||Object.defineProperty(a,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})})})([Element.prototype,CharacterData.prototype,DocumentType.prototype]); 66(function(){function d(l){function h(y){y.element.removeAttribute("data-cmp-is");y.options.src&&0<=y.options.src.indexOf("width\x3d{width}")&&(H=!0,N="width\x3d{width}");q._properties=CMP.utils.setupProperties(y.options,c);L(y.element);y.options.src&&Object.prototype.hasOwnProperty.call(y.options,"dmimage")&&"SmartCrop:Auto"===y.options.smartcroprendition&&(E=CMP.image.dynamicMedia.getAutoSmartCrops(y.options.src));q._elements.noscript&&(q._elements.container=q._elements.link?q._elements.link:q._elements.self, 67w(),q._properties.lazy&&p(),q._elements.map&&q._elements.image.addEventListener("load",A),window.addEventListener("resize",B),"focus click load transitionend animationend scroll".split(" ").forEach(function(C){document.addEventListener(C,q.update)}),q._elements.image.addEventListener("cmp-image-redraw",q.update),q._interSectionObserver=new IntersectionObserver(function(C,D){C.forEach(function(t){0<t.intersectionRatio&&q.update()})}),q._interSectionObserver.observe(q._elements.self),q.update())}function m(){var y= 68q._properties.widths&&0<q._properties.widths.length||0<Object.keys(E).length;if(0<Object.keys(E).length){var C=n(Object.keys(E),!1);C=E[C]}else C=y?(q._properties.dmimage?"":".")+n(q._properties.widths,!0):"";H&&(C=""!==C?"width\x3d"+C.substring(1):"");C=q._properties.src.replace(N,C);C=C.replace("{dpr}",e);var D=q._elements.image.getAttribute("src");if(C!==D)if(null===D||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"===D)q._elements.image.setAttribute("src",C);else{var t= 69q._properties.src.split(N),u=D.startsWith(t[0]);u&&1<t.length&&(u=D.endsWith(t[t.length-1]));u&&(q._elements.image.setAttribute("src",C),y||window.removeEventListener("scroll",q.update))}q._lazyLoaderShowing&&q._elements.image.addEventListener("load",z);q._interSectionObserver.unobserve(q._elements.self)}function n(y,C){for(var D=q._elements.self,t=D.clientWidth;0===t&&D.parentNode;)D=D.parentNode,t=D.clientWidth;C=t*(C?e:1);D=y.length;for(t=0;t<D-1&&y[t]<C;)t++;return y[t].toString()}function p(){var y= 70q._elements.image.getAttribute("width"),C=q._elements.image.getAttribute("height");if(y&&C){var D=b.style;D["padding-bottom"]=C/y*100+"%";for(var t in D)Object.prototype.hasOwnProperty.call(D,t)&&(q._elements.image.style[t]=D[t])}q._elements.image.setAttribute("src","data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");q._elements.image.classList.add(b.cssClass);q._lazyLoaderShowing=!0}function w(){var y=q._elements.noscript.textContent.trim();y=y.replace(/&(amp;)*lt;/g, 71"\x3c");y=y.replace(/&(amp;)*gt;/g,"\x3e");y=(new DOMParser).parseFromString(y,"text/html");var C=y.querySelector(a.image);C.removeAttribute("src");q._elements.container.insertBefore(C,q._elements.noscript);(y=y.querySelector(a.map))&&q._elements.container.insertBefore(y,q._elements.noscript);q._elements.noscript.parentNode.removeChild(q._elements.noscript);q._elements.container.matches(a.image)?q._elements.image=q._elements.container:q._elements.image=q._elements.container.querySelector(a.image); 72q._elements.map=q._elements.container.querySelector(a.map);q._elements.areas=q._elements.container.querySelectorAll(a.area)}function z(){q._elements.image.classList.remove(b.cssClass);for(var y in b.style)Object.prototype.hasOwnProperty.call(b.style,y)&&(q._elements.image.style[y]="");q._elements.image.removeEventListener("load",z);q._lazyLoaderShowing=!1}function G(){if(q._elements.areas&&0<q._elements.areas.length)for(var y=0;y<q._elements.areas.length;y++){var C=q._elements.image.width,D=q._elements.image.height; 73if(C&&D){var t=q._elements.areas[y].dataset.cmpRelcoords;if(t){t=t.split(",");for(var u=Array(t.length),x=0;x<u.length;x++)u[x]=0===x%2?parseInt(t[x]*C):parseInt(t[x]*D);q._elements.areas[y].coords=u}}}}function L(y){q._elements={};q._elements.self=y;y=q._elements.self.querySelectorAll("[data-cmp-hook-image]");for(var C=0;C<y.length;C++){var D=y[C],t="image";t=t.charAt(0).toUpperCase()+t.slice(1);q._elements[D.dataset["cmpHook"+t]]=D}}
73function B(){q.update();G()}function A(){G()}var q=this,E={},H= 74!1,N="{.width}";q.update=function(){if(q._properties.lazy){if(null===q._elements.container.offsetParent)var y=!1;else{y=window.pageYOffset;var C=y+document.documentElement.clientHeight,D=q._elements.container.getBoundingClientRect().top+y;y=D+q._elements.container.clientHeight>=y-q._properties.lazythreshold&&D<=C+q._properties.lazythreshold}y&&m()}else m()};l&&l.element&&h(l)}var a={self:'[data-cmp-is\x3d"image"]',image:'[data-cmp-hook-image\x3d"image"]',map:'[data-cmp-hook-image\x3d"map"]',area:'[data-cmp-hook-image\x3d"area"]'}, 75b={cssClass:"cmp-image__image--is-loading",style:{height:0,"padding-bottom":""}},c={widths:{"default":[],transform:function(l){var h=[];l.split(",").forEach(function(m){m=parseFloat(m);isNaN(m)||h.push(m)});return h}},lazy:{"default":!1,transform:function(l){return!(null===l||"undefined"===typeof l)}},dmimage:{"default":!1,transform:function(l){return!(null===l||"undefined"===typeof l)}},lazythreshold:{"default":0,transform:function(l){l=parseInt(l);return isNaN(l)?0:l}},src:{transform:function(l){return decodeURIComponent(l)}}}, 76e=window.devicePixelRatio||1,f="loading"!==document.readyState?Promise.resolve():new Promise(function(l){document.addEventListener("DOMContentLoaded",l)}),g=window.CMP&&window.CMP.utils?Promise.resolve():new Promise(function(l){document.addEventListener("core.wcm.components.commons.site.utils.loaded",l)}),k=window.CMP&&window.CMP.image&&window.CMP.image.dynamicMedia?Promise.resolve():new Promise(function(l){document.addEventListener("core.wcm.components.commons.site.image.dynamic-media.loaded",l)}); 77Promise.all([f,g,k]).then(function(){for(var l=document.querySelectorAll(a.self),h=0;h<l.length;h++)new d({element:l[h],options:CMP.utils.readData(l[h],"image")});l=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;h=document.querySelector("body");(new l(function(m){m.forEach(function(n){n=[].slice.call(n.addedNodes);0<n.length&&n.forEach(function(p){p.querySelectorAll&&[].slice.call(p.querySelectorAll(a.self)).forEac
77h(function(w){new d({element:w,options:CMP.utils.readData(w, 78"image")})})})})})).observe(h,{subtree:!0,childList:!0,characterData:!0})})})(); 79(function(){function d(h){h=h.dataset;var m=[],n="search";n=n.charAt(0).toUpperCase()+n.slice(1);n=["is","hook"+n];for(var p in h)if(Object.prototype.hasOwnProperty.call(h,p)){var w=h[p];0===p.indexOf("cmp")&&(p=p.slice(3),p=p.charAt(0).toLowerCase()+p.substring(1),-1===n.indexOf(p)&&(m[p]=w))}return m}function a(h,m){h&&(!1!==m?(h.style.display="block",h.setAttribute("aria-hidden",!1)):(h.style.display="none",h.setAttribute("aria-hidden",!0)))}function b(h){var m=[];if(h&&h.elements)for(var n=0;n< 80h.elements.length;n++){var p=h.elements[n];!p.disabled&&p.name&&(p=[p.name,encodeURIComponent(p.value)],m.push(p.join("\x3d")))}return m.join("\x26")}function c(h,m){if(h&&m)if(3===h.nodeType){var n=h.nodeValue;m=m.exec(n);if(n&&m){n=document.createElement("mark");n.className="cmp-search__item-mark";n.appendChild(document.createTextNode(m[0]));var p=h.splitText(m.index);p.nodeValue=p.nodeValue.substring(m[0].length);h.parentNode.insertBefore(n,p)}}else if(h.hasChildNodes())for(n=0;n<h.childNodes.length;n++)c(h.childNodes[n], 81m)}function e(h){h.element&&h.element.removeAttribute("data-cmp-is");this._cacheElements(h.element);this._setupProperties(h.options);this._action=this._elements.form.getAttribute("action");this._resultsOffset=0;this._hasMoreResults=!0;this._elements.input.addEventListener("input",this._onInput.bind(this));this._elements.input.addEventListener("focus",this._onInput.bind(this));this._elements.input.addEventListener("keydown",this._onKeydown.bind(this));this._elements.clear.addEventListener("click", 82this._onClearClick.bind(this));document.addEventListener("click",this._onDocumentClick.bind(this));this._elements.results.addEventListener("scroll",this._onScroll.bind(this));this._makeAccessible()}function f(){for(var h=document.querySelectorAll(g.self),m=0;m<h.length;m++)new e({element:h[m],options:d(h[m])});h=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;m=document.querySelector("body");(new h(function(n){n.forEach(function(p){p=[].slice.call(p.addedNodes); 830<p.length&&p.forEach(function(w){w.querySelectorAll&&[].slice.call(w.querySelectorAll(g.self)).forEac
83h(function(z){new e({element:z,options:d(z)})})})})})).observe(m,{subtree:!0,childList:!0,characterData:!0})}var g={self:'[data-cmp-is\x3d"search"]',item:{self:'[data-cmp-hook-search\x3d"item"]',title:'[data-cmp-hook-search\x3d"itemTitle"]',focused:".cmp-search__item--is-focused"}},k={minLength:{"default":3,transform:function(h){h=parseFloat(h);return isNaN(h)?null:h}},resultsSize:{"default":10,transform:function(h){h= 84parseFloat(h);return isNaN(h)?null:h}}},l=0;e.prototype._displayResults=function(){0===this._elements.input.value.length?(a(this._elements.clear,!1),this._cancelResults()):(this._elements.input.value.length<this._properties.minLength||this._updateResults(),a(this._elements.clear,!0))};e.prototype._onScroll=function(h){this._elements.results.scrollTop+2*this._elements.results.clientHeight>=this._elements.results.scrollHeight&&(this._resultsOffset+=this._properties.resultsSize,this._displayResults())}; 85e.prototype._onInput=function(h){var m=this;m._cancelResults();this._timeout=setTimeout(function(){m._displayResults()},300)};e.prototype._onKeydown=function(h){switch(h.keyCode){case 9:this._resultsOpen()&&(a(this._elements.results,!1),this._elements.input.setAttribute("aria-expanded","false"));break;case 13:h.preventDefault();this._resultsOpen()&&(h=this._elements.results.querySelector(g.item.focused))&&h.click();break;case 27:this._cancelResults();break;case 38:this._resultsOpen()&&(h.preventDefault(), 86this._stepResultFocus(!0));break;case 40:this._resultsOpen()?(h.preventDefault(),this._stepResultFocus()):this._onInput()}};e.prototype._onClearClick=function(h){h.preventDefault();this._elements.input.value="";a(this._elements.clear,!1);a(this._elements.results,!1);this._elements.input.setAttribute("aria-expanded","false")};e.prototype._onDocumentClick=function(h){var m=this._elements.input.contains(h.target);h=this._elements.results.contains(h.target);m||h||(a(this._elements.results,!1),this._elements.input.setAttribute("aria-expanded", 87"false"))};e.prototype._resultsOpen=function(){return"none"!==this._elements.results.style.display};e.prototype._makeAccessible=function(){var h="cmp-search-results-"+l;this._elements.input.setAttribute("aria-owns",h);this._elements.results.id=h;l++};e.prototype._generateItems=function(h,m){var n=this;h.forEach(function(p){var w=document.createElement("span");w.innerHTML=n._elements.itemTemplate.innerHTML;w.querySelectorAll(g.item.title)[0].appendChild(document.createTextNode(p.title));w.querySelectorAll(g.item.self)[0].setAttribute("href", 88p.url);m.innerHTML+=w.innerHTML})};e.prototype._markResults=function(){var h=this._elements.results.querySelectorAll(g.item.self),m=this._elements.input.value.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$\x26");m=new RegExp("("+m+")","gi");for(var n=this._resultsOffset-1;n<h.length;++n)c(h[n],m)};e.prototype._stepResultFocus=function(h){var m=this._elements.results.querySelectorAll(g.item.self),n=this._elements.results.querySelector(g.item.focused);n=Array.prototype.indexOf.call(m,n);if(0<m.length)if(h){if(1<= 89n&&(m[n].classList.remove("cmp-search__item--is-focused"),m[n].setAttribute("aria-selected","false"),m[n-1].classList.add("cmp-search__item--is-focused"),m[n-1].setAttribute("aria-selected","true")),h=this._elements.results.querySelector(g.item.focused))h=this._elements.results.scrollTop-h.offsetTop,0<h&&(this._elements.results.scrollTop-=h)}else if(0>n?(m[0].classList.add("cmp-search__item--is-focused"),m[0].setAttribute("aria-selected","true")):n+1<m.length&&(m[n].classList.remove("cmp-search__item--is-focused"), 90m[n].setAttribute("aria-selected","false"),m[n+1].classList.add("cmp-search__item--is-focused"),m[n+1].setAttribute("aria-selected","true")),h=this._elements.results.querySelector(g.item.focused))h=h.offsetTop+h.offsetHeight-this._elements.results.scrollTop-this._elements.results.clientHeight,0<h?this._elements.results.scrollTop+=h:this._onScroll()};e.prototype._updateResults=function(){var h=this;if(h._hasMoreResults){var m=new XMLHttpRequest,n=h._action+"?"+b(h._elements.form)+"\x26resultsOffset\x3d"+ 91h._resultsOffset;m.open("GET",n,!0);m.onload=function(){setTimeout(function(){a(h._elements.loadingIndicator,!1);a(h._elements.icon,!0)},300);if(200<=m.status&&400>m.status){var p=JSON.parse(m.responseText);0<p.length?(h._generateItems(p,h._elements.results),h._markResults(),a(h._elements.results,!0),h._elements.input.setAttribute("aria-expanded","true")):h._hasMoreResults=!1;0<h._elements.results.querySelectorAll(g.item.self).length%h._properties.resultsSize&&(h._hasMoreResults=!1)}};a(h._elements.loadingIndicator, 92!0);a(h._elements.icon,!1);m.send()}};e.prototype._cancelResults=function(){clearTimeout(this._timeout);this._resultsOffset=this._elements.results.scrollTop=0;this._hasMoreResults=!0;this._elements.results.innerHTML="";
92this._elements.input.setAttribute("aria-expanded","false")};e.prototype._cacheElements=function(h){this._elements={};this._elements.self=h;h=this._elements.self.querySelectorAll("[data-cmp-hook-search]");for(var m=0;m<h.length;m++){var n=h[m],p="search";p=p.charAt(0).toUpperCase()+ 93p.slice(1);this._elements[n.dataset["cmpHook"+p]]=n}};e.prototype._setupProperties=function(h){this._properties={};for(var m in k)if(Object.prototype.hasOwnProperty.call(k,m)){var n=k[m];this._properties[m]=h&&null!=h[m]?n&&"function"===typeof n.transform?n.transform(h[m]):h[m]:k[m]["default"]}};"loading"!==document.readyState?f():document.addEventListener("DOMContentLoaded",f)})(); 94(function(){function d(f){f=f.dataset;var g=[],k="formText";k=k.charAt(0).toUpperCase()+k.slice(1);k=["is","hook"+k];for(var l in f)if(Object.prototype.hasOwnProperty.call(f,l)){var h=f[l];0===l.indexOf("cmp")&&(l=l.slice(3),l=l.charAt(0).toLowerCase()+l.substring(1),-1===k.indexOf(l)&&(g[l]=h))}return g}function a(f){f.element&&f.element.removeAttribute("data-cmp-is");this._cacheElements(f.element);this._setupProperties(f.options);this._elements.input.addEventListener("invalid",this._onInvalid.bind(this)); 95this._elements.input.addEventListener("input",this._onInput.bind(this))}function b(){for(var f=document.querySelectorAll(c.self),g=0;g<f.length;g++)new a({element:f[g],options:d(f[g])});f=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;g=document.querySelector("body");(new f(function(k){k.forEach(function(l){l=[].slice.call(l.addedNodes);0<l.length&&l.forEach(function(h){h.querySelectorAll&&[].slice.call(h.querySelectorAll(c.self)).forEac
95h(function(m){new a({element:m, 96options:d(m)})})})})})).observe(g,{subtree:!0,childList:!0,characterData:!0})}var c={self:'[data-cmp-is\x3d"formText"]'},e={constraintMessage:"",requiredMessage:""};a.prototype._onInvalid=function(f){f.target.setCustomValidity("");f.target.validity.typeMismatch?this._properties.constraintMessage&&f.target.setCustomValidity(this._properties.constraintMessage):f.target.validity.valueMissing&&this._properties.requiredMessage&&f.target.setCustomValidity(this._properties.requiredMessage)};a.prototype._onInput= 97function(f){f.target.setCustomValidity("")};a.prototype._cacheElements=function(f){this._elements={};this._elements.self=f;f=this._elements.self.querySelectorAll("[data-cmp-hook-form-text]");for(var g=0;g<f.length;g++){var k=f[g],l="formText";l=l.charAt(0).toUpperCase()+l.slice(1);this._elements[k.dataset["cmpHook"+l]]=k}};a.prototype._setupProperties=function(f){this._properties={};for(var g in e)if(Object.prototype.hasOwnProperty.call(e,g)){var k=e[g];this._properties[g]=f&&null!=f[g]?k&&"function"=== 98typeof k.transform?k.transform(f[g]):f[g]:e[g]["default"]}};"loading"!==document.readyState?b():document.addEventListener("DOMContentLoaded",b)})();var AEM=AEM||{};AEM.namespace=function(d,a){a=a.split(".");var b;"AEM"===a[0]&&(a=a.slice(1));var c=a.length;for(b=0;b<c;b++)"undefined"===typeof d[a[b]]&&(d[a[b]]={}),d=d[a[b]];return d}; 99AEM.Class=function(d){var a=function(){var c=this.init.apply(this,arguments);a.parent=d;return c?c:{}};if(d){var b={};b.prototype=d.prototype;a.prototype=new b}a.prototype.init={};a.fn=a.prototype;a.fn.parent=a;a.extend=function(c){var e=c.extended,f;for(f in c)({}).hasOwnProperty.call(c,f)&&(a[f]=c[f]);e&&e(a)};a.include=function(c){var e=c.included,f;for(f in c)({}).hasOwnProperty.call(c,f)&&(a.fn[f]=c[f]);e&&e(a)};return a};var RocheDialogo=RocheDialogo||{}; 100RocheDialogo.Utils=RocheDialogo.Utils||{};RocheDialogo.Components=RocheDialogo.Components||{};RocheDialogo.Profile=RocheDialogo.Profile||{}; 101(function(d){d.namespace(d,"RocheDialogo.Utils.TabUrlActions");d.RocheDialogo.Utils.TabUrlActions=new d.Class;d.RocheDialogo.Utils.TabUrlActions.extend({init:function(){this.isUpdateUnlocked=!0;this.checkUrlForTabs()},checkUrlForTabs:function(){var a=this,b=new URLSearchParams(window.location.search);if(b.has("tab-ref")){this.isUpdateUnlocked=!1;var c=b.get("tab-ref");$(document).on("loader-delete",function(){a.openActiveTabs(c)})}},openActiveTabs:function(a){var b=this;a=$("[data-url-id\x3d"+a+"]"); 102if(0<a.length){var c=this.getAncestorsArr(a);1<c.length?$(c).each(function(e,f){e===c.length-1?b.handleTabs(f,!0):b.handleTabs(f)}):this.handleTabs(c[0],!0)}else a=$("html").attr("lang"),(new Toastify({text:{en:"Could not find the reference contained in the URL.",es:"No se ha podido encontrar la referencia contenida en la URL",pt:"N\u00e3o foi poss\u00edvel encontrar a refer\u00eancia contida no URL"}[a],gravity:"top",position:"center",backgroundColor:"#ff5e70",duration:3E3})).showToast(),this.updateUrl(null, 103"invalid-tab-id"),this.isUpdateUnlocked=!0},handleTabs:function(a,b){b=void 0===b?!1:b;if(a[0]&&a[1]){var c=$(a[0]),e=this.returnClickableElement(c);a=$(a[1]);var f=this.returnClickableElement(a);b?993<$(document).width()?(this.scrollToTab(a,f),e.trigger("click")):(this.scrollToTab(c,e),f.trigger("click")):(e.trigger("click"),f.trigger("click"))}else c=$(a[0]),e=this.returnClickableElement(c),b?this.scrollToTab(c,e):e.trigger("click")},scrollToTab:function(a,b){var c=this;a.hasClass("anchor-component__link")? 104(b.trigger("click"),this.isUpdateUnlocked=!0):($("html, body").stop(!0),setTimeout(function(){$("html, body").scrollTop(a.offset().top-150);setTimeout(function(){b.trigger("click");c.isUpdateUnlocked=!0},200)},400))},returnClickableElement:function(a){return a.hasClass("dialogo-accordion__tab")?a.find("button").first():a},handleUrlUpdate:function(a,b){this.isUpdateUnlocked&&((void 0===b?0:b)?this.isElementVisible(a)&&this.updateUrl(a):this.updateUrl(a))},updateUrl:function(a,b){b=void 0===b?!1:b; 105var c=window.location.href,e=new URLSearchParams(window.location.search),f=window.location.href.split("#");1<f.length&&(c=f[0]);c=c.split("?")[0];$("header").hasClass("author")||(b?e.delete("tab-ref"):(a=""+a.data("url-id"),e.set("tab-ref",a)),e=e.toString(),a="",0<e.length&&(a="?"),history.pushState({},"",""+c+a+e))}
105,isElementVisible:function(a){a=""+a.data("component-id");a=$("#"+a);for(var b=!0,c=0;5>c;c++)"none"===a.css("display")&&(b=!1),a=a.parent();return b},getAncestorsArr:function(a){for(var b= 106[a];0<a.length;){var c=a.closest("[data-button-url-id]");0<c.length?(a=c.data("button-url-id"),a=$("[data-url-id\x3d"+a+"]"),b.unshift(a)):a.length=0}return b},getClickableElement:function(a){var b=a;a[0].onclick?b=a:(a=a.find("a, button").first(),0<a.length&&(b=a));return b}});d.RocheDialogo.Utils.TabUrlActions.init()})(AEM,$); 107(function(d,a){d.namespace(d,"RocheDialogo.Utils.DialogoAutoComplete");d.RocheDialogo.Utils.DialogoAutoComplete=new d.Class;d.RocheDialogo.Utils.DialogoAutoComplete.include({init:function(b,c,e,f){this.element=b;this.elementName=f||"dialogo-search-field";this.minLength=e||2;this.bindDOM();this.bindAutocomplete(c);this.bindEvents()},bindDOM:function(){this.input=this.element.querySelector("."+this.elementName+"__input");this.autocompleteElement=this.element.querySelector(".dialogo-autocomplete");this.autocompleteList= 108this.element.querySelector(".dialogo-autocomplete__results");this.noResults=this.element.querySelector(".dialogo-autocomplete__no-results")},bindAutocomplete:function(b){var c=this;(b=a(this.input).autocomplete({search:function(){c.autocompleteList.innerHTML=""},source:b,minLength:this.minLength,response:function(e,f){0===f.content.length?c.noResults.classList.add("dialogo-autocomplete__no-results--is-active"):c.noResults.classList.remove("dialogo-autocomplete__no-results--is-active")}}))&&b.autocomplete("instance")&& 109(b.autocomplete("instance")._renderItem=function(e,f){e=c.input.value.trim();e=String(f.value).replace(new RegExp(e,"ugi"),'\x3cspan class\x3d"dialogo-autocomplete__highlight"\x3e$\x26\x3c/span\x3e');var g=document.createElement("li");g.innerHTML='\x3ca href\x3d"'+f.url+'" class\x3d"dialogo-autocomplete__link"\x3e'+e+"\x3c/a\x3e";g.classList.add("dialogo-autocomplete__result");c.autocompleteList.appendChild(g);return a(g).data("item.autocomplete",f)})},bindEvents:function(){var b=this;this.input.addEventListener("change", 110this.onChange.bind(this));this.input.addEventListener("keyup",this.onChange.bind(this));this.input.addEventListener("keypress",this.onChange.bind(this));this.input.addEventListener("blur",function(){b.autocompleteElement.classList.remove("dialogo-autocomplete--is-active")})},onChange:function(){this.input.value.trim().toLowerCase().length>=this.minLength?this.autocompleteElement.classList.add("dialogo-autocomplete--is-active"):(this.autocompleteElement.classList.remove("dialogo-autocomplete--is-active"), 111this.autocompleteList.innerHTML="")}})})(AEM,$);document.addEventListener("click",function(d){var a=d.target;a.classList.contains("dialogo-back-to-top__link")&&(d.preventDefault(),document.body.scrollTop=0,document.documentElement.scrollTop=0,a.blur())}); 112(function(){var d=document.querySelector(".dialogo-scroll-down");if(d){var a=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/iu.test(navigator.userAgent),b=navigator.userAgent.includes("Mac")&&"ontouchend"in document,c=window.matchMedia("(max-width: 992.9px)");if(a||b||c.matches){var e;document.querySelector("#chat-bot")&&d.classList.add("is-chatbox");var f=function(){window.scrollY+window.innerHeight>=document.documentElement.scrollHeight?d.classList.add("hide-scroll-down"):d.classList.remove("hide-scroll-down")}; 113d.addEventListener("click",function(g){g.preventDefault();window.scrollBy({top:window.innerHeight-118,behavior:"smooth"})});window.addEventListener("scroll",function(){clearTimeout(e);e=setTimeout(f,200)})}else d.classList.add("disable")}})(); 114(function(){function d(a,b){b=b||{bubbles:!1,cancelable:!1,detail:void 0};var c=document.createEvent("CustomEvent");c.initCustomEvent(a,b.bubbles,b.cancelable,b.detail);return c}if("function"===typeof window.CustomEvent)return!1;d.prototype=window.Event.prototype;window.CustomEvent=d})(); 115(function(d){d.namespace(d,"AEM.RocheDialogo.Utils.Constants");d.RocheDialogo.Utils.Constants=new d.Class;d.RocheDialogo.Utils.Constants.extend({SHADOW_PULSE_CSS_CLASS:"shadow-pulse",AUTOCOMPLETE_SEARCH_INPUT_FIELD_CLASS:".search-autocomplete-fields__input--search-field",AUTOCOMPLETE_SEARCH_INPUT_FIELD_ID:"search-text",AUTOCOMPLETE_SEARCH_BTN_CLASS:".search-autocomplete__form-search-btn",AUTOCOMPLETE_SEARCH_FORM_CLASS:".search-autocomplete__form",AUTOCOMPLETE_OPTIONS_LIST_CLASS:".autocomplete-items", 116AUTOCOMPLETE_ITEM_LABEL:"searchLabel",AUTOCOMPLETE_ITEM_TARGET:"targetUrl",AUTOCOMPLETE_ITEM_TYPE:"searchTermType",ANALYTICS:{ROCHE_DIALOGO_SEARCH_PAGE_TYPE:"searchresults",ROCHE_DIALOGO_FORM_PAGE_TYPE:"form",ROCHE_DIALOGO_ARTICLE_PAGE_TYPE:"article",ROCHE_DIALOGO_JOURNAL_PAGE_TYPE:"journal",ROCHE_DIALOGO_ERROR_404_PAGE_TYPE:"error404",ROCHE_DIALOGO_PRODUCT_VIEW_PAGE_TYPE:"product_view",ROCHE_DIALOGO_GLOSSARY_PAGE_TYPE:"glossary",ROCHE_DIALOGO_OTHER_PAGE_TYPE:"other"},DEBUG:!1,ENDPOINTS:{AUTOCOMPLETE_SEARCH:"/search.search-autocomplete.json", 117NAVIGATION_ITEMS:".header-navigation.json"}
117,BREAKPOINTS:{SM:"576px",MD:"768px",LG:"992px",XL:"1200px"},BREAKPOINTS_NUM:{SM:576,MD:767,LG:992,XL:1200}})})(AEM||{}); 118(function(d){d.namespace(d,"AEM.RocheDialogo.Utils.DigitalDataInterface");d.RocheDialogo.Utils.DigitalDataInterface=new d.Class;d.RocheDialogo.Utils.DigitalDataInterface.extend({setStatusLoading:function(){digitalData.status="loading"},setStatusComplete:function(){digitalData.status="completed"},setInitialStatus:function(){digitalData=JSON.parse(initialDigitalData)},setPageType:function(a){digitalData.page.pageInfo.pageType=a}})})(AEM); 119(function(d){d.namespace(d,"AEM.RocheDialogo.Utils.EventUtils");d.RocheDialogo.Utils.EventUtils=new d.Class;d.RocheDialogo.Utils.EventUtils.extend({getEventStatus:function(a,b,c,e){b=void 0===b?"":b;e=void 0===e?"":e;var f=new Date;c=new Date(void 0===c?"":c);a=new Date(void 0===a?"":a);c.setHours(a.getHours());c.setMinutes(a.getMinutes());e=new Date(e);b=new Date(b);e.setHours(b.getHours());e.setMinutes(b.getMinutes());return f>c&&f<e?"live":f<c?"future":c<f?"past":""}})})(AEM); 120$(document).ready(function(){var d=digitalData.page.attributes.country,a=window.location.href.includes("-ofta");if("CU"===d||a)$("header .anonymousUserBar button").hide(),$("header .dialogoHeader__search-separator").hide()}); 121(function(d){d.namespace(d,"AEM.RocheDialogo.Utils.Search");d.RocheDialogo.Utils.Search=new d.Class;d.RocheDialogo.Utils.Search.extend({init:function(){this.urlSearch="";this.observers=[];this.DEBUG=d.RocheDialogo.Utils.Constants.DEBUG;this.setUrlFlag=!0;this.searchEndpoint=$("header.dialogoHeader").attr("data-search-endpoint");this.behaviourPersonalization=$("section.search").attr("data-behaviourPersonalization");this.query="";this.filters=[];this.tab=this.searchText=this.offset=this.limit=this.sorting= 122""},doSearch:function(a,b){d.RocheDialogo.Utils.DigitalDataInterface.setInitialStatus();var c=this,e=window.location.search.substring(1);c.urlSearch=window.location.href.split("?")[0]+"?"+e;a=c.searchEndpoint+"?"+e+(b?"\x26limit\x3d"+b:"")+(c.behaviourPersonalization?"\x26behaviourPersonalization\x3d"+c.behaviourPersonalization:"");b=$(".search-wrapper").data("location");if(window.ContextHub&&ContextHub.SegmentEngine&&b){var f=ContextHub.SegmentEngine.getResolvedSegments()[0]?ContextHub.SegmentEngine.getResolvedSegments()[0].path: 123"";a+="\x26segmentPath\x3d"+f+"\x26location\x3d"+b}(b=new URLSearchParams(window.location.search),b.get("tab"))?sessionStorage.setItem("selectedTab",b.get("tab")):sessionStorage.setItem("selectedTab","");b=$(".searchFilterTabs").data("tabs-type");axios.get(a,{params:{tabFilterType:b}}).then(function(g){c.getParams(g);c.notifyAll(g);c.markSelectedSortingDropdown();window.digitalData.page.attributes.onsiteSearch.term=g.data.query;window.digitalData.page.attributes.onsiteSearch.results=g.data.totalResults.toString(); 124window.digitalData.page.attributes.onsiteSearch.filter=g.data.filters||[];0<g.data.totalResults?window.digitalData.page.attributes.onsiteSearch.searchesWithResults++:window.digitalData.page.attributes.onsiteSearch.searchesWithoutResults++}).catch(function(g){c.DEBUG&&(g.response?(console.error(g.response.data),console.error(g.response.status),console.error(g.response.headers)):g.request?console.error(g.request):console.error("Error",g.message),console.error(g.config))}).finally(function(){e&&d.RocheDialogo.Utils.DigitalDataInterface.setPageType(d.RocheDialogo.Utils.Constants.ANALYTICS.ROCHE_DIALOGO_SEARCH_PAGE_TYPE); 125d.RocheDialogo.Utils.DigitalDataInterface.setStatusComplete()})},doSearchWParam:function(a,b,c){d.RocheDialogo.Utils.DigitalDataInterface.setInitialStatus();var e=this,f=!1;e.offset="";e.searchText="";var g=$(".search-wrapper--fake");g.show();switch(a){case "filters":f=!0;e.filters=b;e.tab="";sessionStorage.setItem("searchType","filters");sessionStorage.setItem("selectedTab","");break;case "tab":f=!0;e.filters=b;e.tab=c;sessionStorage.setItem("searchType","tab");sessionStorage.setItem("selectedTab", 126c);break;case "filtersWAutocomplete":f=!0;e.filters=b;e.query="";e.tab="";e.searchText=c;e.cleanCheckedFilters();sessionStorage.setItem("searchType","query");sessionStorage.setItem("selectedTab","");break;case "queryWCleanFilters":f=!0;e.filters=[];e.query=b;e.tab="";e.cleanCheckedFilters();sessionStorage.setItem("searchType","filters");sessionStorage.setItem("selectedTab","");break;case "query":f=!0;e.query=b;sessionStorage.setItem("searchType","query");sessionStorage.setItem("selectedTab","");break; 127case "sorting":e.sorting=b;break;case "limit":e.limit=b;break;case "offset":e.offset=b;break;default:return}var k=e.getQueryString();e.urlSearch=window.location.href.split("?")[0]+"?"+k;a=e.searchEndpoint+"?"+k+(e.behaviourPersonalization?"\x26behaviourPersonalization\x3d"+e.behaviourPersonalization:"");b=$(".search-wrapper").data("location");
127window.ContextHub&&ContextHub.SegmentEngine&&b&&(c=ContextHub.SegmentEngine.getResolvedSegments()[0]?ContextHub.SegmentEngine.getResolvedSegments()[0].path: 128"",a+="\x26segmentPath\x3d"+c+"\x26location\x3d"+b);b=$(".searchFilterTabs").data("tabs-type");axios.get(a,{params:{tabFilterType:b}}).then(function(l){e.getParams(l);e.notifyAll(l);e.markSelectedSortingDropdown();f&&(window.digitalData.page.attributes.onsiteSearch.term=l.data.query,window.digitalData.page.attributes.onsiteSearch.results=l.data.totalResults.toString(),window.digitalData.page.attributes.onsiteSearch.filter=l.data.filters||[],0<l.data.totalResults?window.digitalData.page.attributes.onsiteSearch.searchesWithResults++: 129window.digitalData.page.attributes.onsiteSearch.searchesWithoutResults++)}).catch(function(l){g.hide();e.DEBUG&&(l.response?(console.error(l.response.data),console.error(l.response.status),console.error(l.response.headers)):l.request?console.error(l.request):console.error("Error",l.message),console.error(l.config))}).finally(function(){g.hide();k&&d.RocheDialogo.Utils.DigitalDataInterface.setPageType(d.RocheDialogo.Utils.Constants.ANALYTICS.ROCHE_DIALOGO_SEARCH_PAGE_TYPE);d.RocheDialogo.Utils.DigitalDataInterface.setStatusComplete()})}, 130getParams:function(a){a.data.query&&""!==a.query&&(this.query=a.data.query);a.data.sorting&&""!==a.sorting&&(this.sorting=a.data.sorting);a.data.filters&&(this.filters=a.data.filters,0<this.filters.length?($(".search-filters__wrapper .search__delete").addClass("active"),$.each(this.filters,function(){var b=(".searchFilters__taxonomy--item input#"+this).replace("/","\\/").replace(":","\\:");$(b).prop("checked",!0)})):$(".search-filters__wrapper .search__delete").removeClass("active"));a.data.limit&& 131(this.limit=a.data.limit);a.data.offset&&(this.offset=a.data.offset)},markSelectedSortingDropdown:function(){if(this.sorting){var a=$(".search-wrapper__dropdown-sort-label"),b=$('.search-wrapper__dropdown-item[data-sorting\x3d"'+this.sorting+'"]').text();a.html(b)}},getQueryString:function(){var a="";this.searchText&&""!==this.searchText&&(""!==a&&(a+="\x26"),a+="search-text\x3d"+this.searchText);this.query&&""!==this.query&&(""!==a&&(a+="\x26"),a+="query\x3d"+this.query);this.sorting&&""!==this.sorting&& 132(""!==a&&(a+="\x26"),a+="sorting\x3d"+this.sorting);this.limit&&""!==this.limit&&(""!==a&&(a+="\x26"),a+="limit\x3d"+this.limit);this.offset&&""!==this.offset&&(""!==a&&(a+="\x26"),a+="offset\x3d"+this.offset);this.filters&&""!==this.filters&&$.each(this.filters,function(){""!==a&&(a+="\x26");a+="filters\x3d"+this});this.tab&&""!==this.tab&&(""!==a&&(a+="\x26"),a+="tab\x3d"+this.tab);return a},getActiveFilters:function(){var a=[];$(".search-filters__wrapper .searchFilters__taxonomy--item input:checked").each(function(){a.push($(this).val())}); 133return a},cleanCheckedFilters:function(){$(".search-filters__wrapper .searchFilters__taxonomy--item input").prop("checked",!1);var a=$(".searchFilterTabs .nav-item");a.removeClass("active");a.first().addClass("active")},getSelectedTab:function(){var a=$(".searchFilterTabs .tabs__button.active");return a&&"all"!==a.data("type")?a.data("type"):""},registerObserver:function(a,b){this.observers.push({element:a,callback:b})},notifyAll:function(a){this.observers.forEach(function(b){b.callback(a)});this.setUrlFlag&& 134this.pushUrl()},pushUrl:function(){history.pushState("","",this.urlSearch.length?this.urlSearch:"")}});d.RocheDialogo.Utils.Search.init()})(AEM); 135(function(d){d.filter("formatDate",function(a,b){if(a){var c=document.documentElement.lang||[],e={year:"numeric",month:"long",day:"numeric"};b&&(e.timeZone=b);try{return(new Intl.DateTimeFormat(c,e)).format(new Date(a))}catch(f){if(f instanceof RangeError)return console.warn(f),delete e.timeZone,(new Intl.DateTimeFormat(c,e)).format(new Date(a));throw f;}}return!1});d.filter("truncate",function(a,b,c){return a&&a.length>b?a.substring(0,b)+c:a});d.filter("tagsConcat",function(a,b,c){a&&0<a.length&& 1360>a.indexOf("#")&&(a="#"+a);return b&&0<b.length?(b="#"+b,0<a.length?(b=a+" "+b,b.length<c?b:a):b):a});d.filter("calculateTimeInWeeks",function(a,b,c,e,f){var g=(new Date).setHours(0,0,0,0),k=(new Date(Number(a))).setHours(0,0,0,0);g!==k&&(a=(new Date).getTime()-a,a=Math.round(a/6048E5),f=a+" "+c,0===a?f=e+" "+b:1===a&&(f="1 "+b));return f})})(Vue); 137(function(d,a){d.namespace(d,"RocheDialogo.Utils.AutoComplete");d.RocheDialogo.Utils.AutoComplete=new d.Class;d.RocheDialogo.Utils.AutoComplete.include({init:function(b){this.consts=d.RocheDialogo.Utils.Constants;this.$Component=b;this.DEBUG=d.RocheDialogo.Utils.Constants.DEBUG;this.mql=window.matchMedia("(max-width: "+this.consts.BREAKPOINTS.LG+")");
137this.$FiltersInput=a("input#filters",this.$Component);this.$QueryInput=a("input#query",this.$Component);this.currentFocus=0;this.$searchInput=a(this.consts.AUTOCOMPLETE_SEARCH_INPUT_FIELD_CLASS, 138this.$Component);this.bindEvents();this.lblSeeThe=a(".dialogoHeader").data("lbl-see-the");this.lblResultsOf=a(".dialogoHeader").data("lbl-results-of")},bindEvents:function(){var b=this;b.$searchInput.on("input",function(c){var e=a(this);c.originalEvent.inputType.includes("delete")&&b.closeAllLists();4>e.val().trim().length||(c=b.$Component.data("autocomplete-endpoint")+"?query\x3d"+e.val(),axios.get(c).then(function(f){0<f.data.length?b.populateAutocomplete(e,f):b.closeAllLists();"undefined"!==typeof _satellite&& 139_satellite.track("track_searchlayer",{searchlayer_results:e.val(),searchlayer_term:f.data.length})}).catch(function(f){b.DEBUG&&(f.response?(console.error(f.response.data),console.error(f.response.status),console.error(f.response.headers)):f.request?console.error(f.request):console.error("Error",f.message),console.error(f.config))}))})},populateAutocomplete:function(b,c){if(!b.val())return!1;this.closeAllLists();this.mql.matches&&a("body,html").css({"overflow-y":"hidden",height:"100%"});this.currentFocus= 140-1;b='\x3cdiv id\x3d"'+b.attr("id")+'autocomplete-list" class\x3d"autocomplete-items" ';this.$container=a(b+"\x3e\x3c/div\x3e");var e=document.createElement("div");e.className="autocomplete-container-links";b=document.createElement("div");b.className="autocomplete-container-group-links";this.$container.append(e);this.$container.append(b);device.mobile()?(this.$Component.parent().parent().append(this.$container),a("html").addClass("is-mobile-menu")):this.$Component.append(this.$container);var f=[], 141g=[];c.data.forEach(function(m){if("tag"===m.searchTermType){if(m.hintSecondLine){var n=parseInt(m.hintSecondLine.replace(/.*\(([0-9]+)\)/u,"$1"),10);isNaN(n)||1>n||f.push(m)}}else g.push(m)});a.each(f,this.populateAutocompleteItem.bind(this));a.each(g,this.populateAutocompleteItem.bind(this));c=a(window).height()-a(b).outerHeight()-175;a(e).css("height",c+"px");var k=document.createElement("div"),l=document.createElement("div");k.className="autocomplete-container-shadow autocomplete-container-shadow--top"; 142this.$container.prepend(k);l.className="autocomplete-container-shadow autocomplete-container-shadow--bottom";b.prepend(l);var h=e.scrollHeight-e.clientHeight;1<h-e.scrollTop&&(a(l).css("opacity","1"),e.addEventListener("scroll",function(m){m=e.scrollTop;148>m||148>h-m?(148>m&&a(k).css("opacity",""+m/148),148>h-m&&a(l).css("opacity",""+(h-m)/148)):(a(k).css("opacity","1"),a(l).css("opacity","1"))}));return!0},populateAutocompleteItem:function(b,c){var e=this;b=e.generateHintMkp(c.iconPath,c.label, 143c.hintFirstLine,c.hintSecondLine,c.searchTerm,c.searchTermType);b=a(b);b.click(function(g){var k=a(this).find("input#"+e.consts.AUTOCOMPLETE_ITEM_TYPE).val();if("tag"!==k){var l=a(this).find("input#"+e.consts.AUTOCOMPLETE_ITEM_TARGET).val();"external-page"===k?(k=document.createElement("a"),k.setAttribute("data-toggle","modal"),k.setAttribute("data-keyboard","false"),k.setAttribute("data-target","#exitRoche"),k.style.display="none",document.body.appendChild(k),k.click(),document.body.removeChild(k), 144d.RocheDialogo.Utils.ExitPageButton.exitPageButtonClick(g,"",l)):window.location.href=l}else g=a(this).find("input#"+e.consts.AUTOCOMPLETE_ITEM_LABEL).val(),l=a(this).find("input#"+e.consts.AUTOCOMPLETE_ITEM_TARGET).val(),e.$searchInput.val(g),e.$QueryInput.val(""),e.$FiltersInput.val(l),e.$searchInput.focus(),e.$searchInput.trigger(new a.Event("keydown",{keyCode:13}));e.closeAllLists()});c=e.$container.find(".autocomplete-container-links");var f=e.$container.find(".autocomplete-container-group-links"); 145b.hasClass("tag-item")?a(f).append(b):a(c).append(b)},generateHintMkp:function(b,c,e,f,g,k){b="tag"===k?'\x3cdiv class\x3d"autocomplete-items__autocompleteHint tag-item container-fluid"':'\x3cdiv class\x3d"autocomplete-items__autocompleteHint container-fluid text-left"';"tag"!==k&&(b+='data-analytics-link-searchresult\x3d"'+e+'"');b+='\x3e\x3cdiv class\x3d"row row-items"\x3e';b=this.mql.matches?b+'\x3cdiv class\x3d"col-12 d-flex autocomplete-items__text"\x3e':"tag"===k?b+'\x3cdiv class\x3d"col-12 d-flex autocomplete-items__text"\x3e': 146b+'\x3cdiv class\x3d"col-11 d-flex autocomplete-items__text"\x3e';"tag"!==k?(b=b+'\x3cdiv class\x3d"text-left"\x3e\x3cdiv class\x3d"row"\x3e\x3cdiv class\x3d"col first-line text-truncate newlook look-cta-tags look-light"\x3e'+f+"\x3c/div\x3e\x3c/div\x3e",b+='\x3cdiv class\x3d"row"\x3e',b+='\x3cdiv class\x3d"col second-line text-truncate newlook look-cta-tags look-regular"\x3e',b+=e):(b+='\x3cdiv class\x3d"text-left"\x3e',b+='\x3cdiv class\x3d"row"\x3e',b=this.mql.matches?b+'\x3cdiv class\x3d"col tag-line text-truncate newlook look-label look-medium"\x3e': 147b+'\x3cdiv class\x3d"col tag-line text-truncate newlook look-label look-regular"\x3e',b+=this.lblSeeThe+" "+f.replace(/.*\(([0-9]+)\)/u,"$1")+" "+this.lblResultsOf+" "+e,b+='\x3cimg src\x3d"/etc.clientlibs/roche
147-dialogo/clientlibs/site/resources/new-look/fi-rs-angle-small-right-blue-40.svg" alt\x3d""\x3e');b+="\x3c/div\x3e";b+="\x3c/div\x3e";b+="\x3c/div\x3e";b+='\x3cinput type\x3d"hidden" id\x3d"'+this.consts.AUTOCOMPLETE_ITEM_LABEL+'" value\x3d"'+c+'"\x3e';b+='\x3cinput type\x3d"hidden" id\x3d"'+ 148this.consts.AUTOCOMPLETE_ITEM_TARGET+'" value\x3d"'+g+'"\x3e';b+='\x3cinput type\x3d"hidden" id\x3d"'+this.consts.AUTOCOMPLETE_ITEM_TYPE+'" value\x3d"'+k+'"\x3e';b+="\x3c/div\x3e";b+="\x3c/div\x3e";return b+="\x3c/div\x3e"},hideSearch:function(b){try{device.ipad()}catch(c){}finally{this.closeAllLists(),this.$QueryInput&&this.$FiltersInput&&""===this.$QueryInput.val()&&""===this.$FiltersInput.val()&&a(this.consts.AUTOCOMPLETE_SEARCH_INPUT_FIELD_CLASS).val("")}},closeAllLists:function(b){a("html").removeClass("is-mobile-menu"); 149a("body,html").css({overflowY:"auto",height:"auto"});b?(b=a(b),a(d.RocheDialogo.Utils.Constants.AUTOCOMPLETE_OPTIONS_LIST_CLASS,b).remove()):a(d.RocheDialogo.Utils.Constants.AUTOCOMPLETE_OPTIONS_LIST_CLASS).remove()}});a(function(){var b=a(d.RocheDialogo.Utils.Constants.AUTOCOMPLETE_SEARCH_FORM_CLASS);b.length&&b.each(function(){new d.RocheDialogo.Utils.AutoComplete(a(this))})})})(AEM,$); 150(function(d,a){d.namespace(d,"RocheDialogo.Utils.DialogoSearchField");d.RocheDialogo.Utils.DialogoSearchField=new d.Class;d.RocheDialogo.Utils.DialogoSearchField.include({init:function(b){this.element=b;this.bindDOM();this.bindEvents()},bindDOM:function(){this.input=this.element.querySelector(".dialogo-search-field__input");this.button=this.element.querySelector(".dialogo-search-field__button")},bindEvents:function(){var b=this;this.input.addEventListener("change",this.onChange.bind(this));this.input.addEventListener("keyup", 151this.onChange.bind(this));this.input.addEventListener("keypress",this.onChange.bind(this));this.button.addEventListener("click",function(c){c.preventDefault();b.clearInput()});this.button.addEventListener("keydown",function(c){c.preventDefault();"enter"!==c.key&&"space"!==c.key||b.clearInput()})},clearInput:function(){this.input.value="";this.button.classList.remove("dialogo-search-field__button--is-active");this.input.focus();var b=new Event("input");this.input.dispatchEvent(b)},onChange:function(){0< 152this.input.value.trim().length?this.button.classList.add("dialogo-search-field__button--is-active"):this.button.classList.remove("dialogo-search-field__button--is-active")}})})(AEM); 153(function(d,a){d.namespace(d,"AEM.RocheDialogo.Utils.Url");d.RocheDialogo.Utils.Url=new d.Class;d.RocheDialogo.Utils.Url.extend({getCurrentPageParams:function(){var b=window.location.pathname.replace(".html","");if("/"!==b)return b;var c=a(".dialogoHeader").attr("data-page");return b+c},getParams:function(b){var c=0,e={};var f=document.createElement("a");f.href=b;f=f.search.substring(1).split("\x26");for(c;c<f.length;c++)b=f[c].split("\x3d"),e[b[0]]=decodeURIComponent(b[1]);return e},getParameterByName:function(b, 154c){var e=window.location.href;c&&(e=c);return getParams(e)[b]},getUrlVars:function(){var b={};window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/giu,function(c,e,f){b[e]=f});return b}})})(AEM,$);AEM.RocheDialogo.Utils.LoginUtils=function(){return{redirectToLoginPage:function(){var d=$(".anonymousUserBar__signin");0<d.length&&(d=d.data("page-path"),""!==d&&(window.location=d))}}}(); 155(function(d,a){d.namespace(d,"RocheDialogo.Utils.BgImageHelper");d.RocheDialogo.Utils.BgImageHelper=new d.Class;d.RocheDialogo.Utils.BgImageHelper.extend({bindEvents:function(b){var c=this;c.BREAKPOINTS_NUM=d.RocheDialogo.Utils.Constants.BREAKPOINTS_NUM;var e=b.data("image-src"),f=b.data("image-srcset");b.data("background-gradient")?b.css("background-image",'linear-gradient(135deg, rgba(0, 102, 204, 0.2) 0%, rgba(0, 51, 102, 0.66) 57%, #003366 100%), url("'+e+'")'):f?(c.setBackgroundImg(b,f,c.BREAKPOINTS_NUM), 156a(window).resize(function(){c.setBackgroundImg(b,f,c.BREAKPOINTS_NUM)})):b.css("background-image",'url("'+e+'")');b.css("background-repeat","no-repeat");a(".bg-image-helper--cover").each(function(){a(this).css("background-size","cover")})}
156,setBackgroundImg:function(b,c,e){var f=window.innerWidth;switch(!0){case f<e.MD&&""!==c[0]:b.css("background-image",'url("'+c[0]+'")');break;case f<e.XL&&""!==c[1]:b.css("background-image",'url("'+c[1]+'")');break;default:b.css("background-image",'url("'+c[2]+'")')}}})})(AEM, 157$);(function(d){d.namespace(d,"AEM.RocheDialogo.Utils.TargetedUtils");d.RocheDialogo.Utils.TargetedUtils=new d.Class;d.RocheDialogo.Utils.TargetedUtils.extend({isTargeted:function(a){return $(a).parent().parent().hasClass("campaign")},getTargetedElements:function(a){var b=this;return $(a).filter(function(c,e){return b.isTargeted(e)})},getNotTargetedElements:function(a){var b=this;return $(a).filter(function(c,e){return!b.isTargeted(e)})}})})(AEM); 158(function(d,a){d.namespace(d,"RocheDialogo.Components.Header");d.RocheDialogo.Components.Header=new d.Class;d.RocheDialogo.Components.Header.include({init:function(b){this.component=b[0];this.consts=d.RocheDialogo.Utils.Constants;this.mql=window.matchMedia("(max-width: "+this.consts.BREAKPOINTS.LG+")");this.DEBUG=d.RocheDialogo.Utils.Constants.DEBUG;this.$Component=b;this.SEARCH_FILLED_CLASS="searchBarFilled";this.searchInputState="";this.isSearchOpen=!1;this.$Form=a(this.consts.AUTOCOMPLETE_SEARCH_FORM_CLASS, 159this.$Component);this.$SearchBtn=a(".search-autocomplete__form-search-btn",this.$Component);this.$sitelogo=a(".js-sitelogo",this.$Component);this.$parentHeaderElement=a(".header");this.$searchSeparator=a(".dialogoHeader__search-separator",this.$Component);this.$bottomBar=a(".dialogoHeader__bottom-bar",this.$Component);this.$filtersInput=a("input#filters",this.$Component);this.$queryInput=a("input#query",this.$Component);this.$searchAutocomplete=a(".search-autocomplete",this.$Component);this.$searchAutocompleteInput= 160a(".search-autocomplete-fields__input",this.$Component);this.$searchAutocompleteSearchField=a(".search-autocomplete-fields__input--search-field",this.$Component);this.$searchAutocompleteCloseBtn=a(".search-autocomplete-fields__actions--close",this.$Component);this.$searchAutocompleteFilterBtn=a(".search-autocomplete-fields__actions--filters",this.$Component);this.isAlwaysOpen="true"===this.$Component.attr("data-search-bar-visible");this.lastScrollTop=window.pageYOffset||document.documentElement.scrollTop; 161this.bindUserMenuDOM();this.bindAnonymousDOM();this.Profile={};this.UserData={};this.requestUserInfo();this.bindEvents();this.setAlwaysOpenOptions();this.handleAnonymousMenu();this.handleUserMenu();this.checkSearchText();this.searchPageTopOffset()},bindAnonymousDOM:function(){this.anonymousBar=this.component.querySelector(".anonymousUserBar");this.anonymousButtons=this.anonymousBar.querySelectorAll(".js-anonymous-btn")},checkSearchText:function(){var b=(new URLSearchParams(window.location.search)).get("query"); 162b&&this.$searchAutocompleteSearchField.val(b)},handleAnonymousMenu:function(){this.anonymousButtons&&this.anonymousButtons.forEach(function(b){b.addEventListener("click",function(c){c.preventDefault();window.location=b.dataset.pagePath})})},bindUserMenuDOM:function(){this.userMenu=this.component.querySelector(".dialogo-user-menu");this.logoutLink=this.userMenu.querySelector(".dialogo-user-menu__dropdown--logout");this.editProfileLink=this.userMenu.querySelector(".dialogo-user-menu__item--editprofile"); 163this.userNameLabel=this.userMenu.querySelector(".dialogo-user-menu__name")},handleUserMenu:function(){var b=this;this.logoutLink.setAttribute("href",this.getLogoutLink());this.isRocheUser()&&this.editProfileLink.classList.add("dialogo-user-menu__item--hidden");this.userMenu.addEventListener("click",function(c){b.userMenu.classList.toggle("dialogo-user-menu--is-open")});document.addEventListener("click",function(c){b.userMenu.contains(c.target)||b.userMenu.classList.remove("dialogo-user-menu--is-open")})}, 164requestUserInfo:function(){var b=this;return a.ajax({type:"GET",url:"/bin/roche/commons/services/userinfo.dialogo.json",cache:!1,async:!1}).done(function(c,e,f){f="anonymous"===c.userId;var g=c.memberOf.includes("dialogo-autologin-users");digitalData.user.profile.profileInfo.salesforceID=window.undefined;digitalData.user.profile.profileInfo.organization=window.undefined;e="";f||g?(b.Profile.userID=c.userName,RocheDialogo.Profile.userID=c.userName,b.showAnonymousBar(
164),digitalData.user.profile.profileInfo.userName= 165"logged_out",digitalData.user.profile.profileInfo.loggedIn="false",digitalData.user.profile.profileInfo.specialty="",digitalData.user.profile.profileInfo.profession=""):(e=Array.isArray(c.profile.professionCode)?c.profile.professionCode[0]:c.profile.professionCode,f=Array.isArray(c.profile.email)&&c.profile.email.length?c.profile.email[0]:"",g=b.$sitelogo.attr("href").replace(".html","/home.html"),b.$sitelogo.attr("href",g),b.Profile.userID=c.userId,RocheDialogo.Profile.userID=c.userId,b.Profile.userEmail= 166f,digitalData.user.profile.profileInfo.loggedIn="true",digitalData.user.profile.profileInfo.userName=f,digitalData.user.profile.profileInfo.specialty=Array.isArray(c.profile.specialtyCode)?c.profile.specialtyCode[0]:c.profile.specialtyCode,digitalData.user.profile.profileInfo.areasOfInterest=Array.isArray(c.profile.areaOfInterest)?c.profile.areaOfInterest.join("~").split("~"):[],digitalData.user.profile.profileInfo.profession=e,digitalData.user.profile.profileInfo.fullName=c.userName,digitalData.user.profile.profileInfo.uci= 167Array.isArray(c.profile.uci)?c.profile.uci[0]:c.profile.uci,digitalData.user.profile.address.country=Array.isArray(c.profile.countryCode)?c.profile.countryCode[0]:c.profile.countryCode,digitalData.user.profile.memberOf=c.memberOf,b.setLoggedInBar(c.userName));e?d.RocheDialogo.Utils.NavigationBar.refershNavigation(e.toLowerCase()):d.RocheDialogo.Utils.NavigationBar.refershNavigation("");b.Profile.memberOf=c.memberOf;b.UserData=c}).fail(function(c,e,f){b.showAnonymousBar()}).always(function(c,e,f){d.RocheDialogo.Utils.DigitalDataInterface.setStatusComplete()})}, 168showAnonymousBar:function(){this.$Component.removeClass("logged");this.$Component.addClass("anonymousUser");this.$parentHeaderElement.addClass("anonymousUser");this.$searchSeparator.addClass("anonymousUser");this.$bottomBar.addClass("anonymousUser");this.anonymousBar.classList.remove("d-none")},calcNavWidth:function(){if(!this.mql.matches){var b=a(".dialogoHeader__optionsBar").outerWidth();a(".dialogoNavigation.desktop").css("width","calc(100% - "+b+"px)")}},setLoggedInBar:function(b){this.$Component.removeClass("anonymousUser"); 169this.$Component.addClass("logged");this.$searchSeparator.removeClass("anonymousUser");this.$bottomBar.removeClass("anonymousUser");this.anonymousBar.classList.add("d-none");this.userNameLabel.innerText=b?b.trim():""},setAlwaysOpenOptions:function(){this.isAlwaysOpen&&(this.mql.matches?this.showMobileSearch():this.showSearch(),this.isSearchOpen=!0)},getLogoutLink:function(){var b=a(".dialogoHeader").data("logout-url"),c=a(".dialogoHeader").data("logout-attr"),e=a(".dialogoHeader").data("logout-attr-sso"); 170return this.isRocheUser()&&e?b+"?resource\x3d"+e:c?b+"?resource\x3d"+c:b},isRocheUser:function(){return this.Profile.memberOf.includes("dialogo-roche-employees")},bindEvents:function(){var b=this;this.$Component.on("navigation-loaded",function(){window.setTimeout(b.calcNavWidth(),100);b.checkThumbnails()});this.mql.addEventListener("change",function(c){b.resetSearchState();b.searchPageTopOffset()});this.$SearchBtn.on("click",function(){b.isSearchOpen||(993>a(window).width()?b.isAlwaysOpen||b.showMobileSearch(): 171b.showSearch());b.isSearchOpen=!0});this.$searchAutocompleteCloseBtn.on("click",function(){b.handleClose()});this.$searchAutocompleteFilterBtn.on("click",function(){b.doSearch()});this.$searchAutocompleteSearchField.on("input focusin",function(){b.$searchAutocompleteSearchField.val().length?b.$Component.addClass(b.SEARCH_FILLED_CLASS):b.$Component.removeClass(b.SEARCH_FILLED_CLASS)});this.$searchAutocompleteSearchField.on("focusout",function(){b.$Component.removeClass(b.SEARCH_FILLED_CLASS)});this.$searchAutocompleteSearchField.keydown(function(c){switch(c.keyCode? 172c.keyCode:c.which){case 27:b.handleClose();break;case 13:c.preventDefault();b.doSearch();b.mql.matches&&b.$searchAutocompleteSearchField.blur();break;default:b.$filtersInput.val(""),b.$queryInput.val("")}})},handleClose:function(){this.$searchAutocompleteSearchField.val("");this.isSearchOpen&&(993>a(window).width()?this.isAlwaysOpen||this.hideMobileSearch():this.hideSearch());this.removeSearchDropdown();this.isSearchOpen=!1},doSearch:function(){""===this.$filtersInput.val()&&""===this.$queryInput.val()&& 173this.$queryInput.val(this.$searchAutocompleteSearchField.val());this.isAlwaysOpen?""!==this.$filtersInput.val()?d.RocheDialogo.Utils.Search.doSearchWParam("filtersWAutocomplete",[this.$filtersInput.val()],this.$searchAutocompleteSearchField.val()):d.RocheDialogo.Utils.Search.doSearchWParam("queryWCleanFilters",this.$queryInput.val()):this.$Form.submit();d.RocheDialogo.Utils.AutoComplete.prototype.hideSearch()},toggleNavigationAndLinks:function(){var b=window.pageYOffset||document.documentElement.scrollTop; 174this.lastScrollTop=0>=b?0:b},searchSeparatorAction:function(b){this.mql.matches||this.$searchSeparator.css("background-color","hide"===b?"#FFF":"")}
174,convertRemToPixels:function(b){return b*parseFloat(getComputedStyle(document.documentElement).fontSize)},calculateSearchDropdown:function(){var b=this.calculatePositionOfSearch()+6,c=document.styleSheets;c=c[c.length-1];c.insertRule(".dialogoHeader.searchBarInActive .autocomplete-items { right: "+(b+"px }"),c.cssRules.length)},calculatePositionOfSearch:function(){return this.$Component.find(".dialogoHeader__optionsBar").width()+ 17575},showSearch:function(){this.$searchAutocomplete.addClass("is-open");this.$searchAutocompleteSearchField.addClass("is-open");this.$SearchBtn.addClass("is-hidden");this.$searchAutocompleteCloseBtn.removeClass("is-hidden");this.searchInputState="";this.$searchAutocompleteInput.css("height","50px");this.$searchAutocompleteInput.animate({width:501},300,function(){a(".search-wrapper,.section-listing").addClass("header-search--opened")});this.isAlwaysOpen&&!this.detectMobile()||this.$searchAutocompleteSearchField.focus()}, 176hideSearch:function(){var b=this;this.$searchAutocompleteInput.animate({width:0},300,function(){b.$searchAutocomplete.removeClass("is-open");b.$searchAutocompleteSearchField.removeClass("is-open");b.$searchAutocompleteCloseBtn.addClass("is-hidden");b.$SearchBtn.removeClass("is-hidden");b.searchInputState="";a(".search-wrapper,.section-listing").removeClass("header-search--opened")})},showMobileSearch:function(){var b=this;this.$searchAutocompleteInput.css({width:"100%",height:"0"});this.$searchAutocompleteInput.animate({height:65}, 177400,function(){b.$searchAutocompleteCloseBtn.removeClass("is-hidden");a(".search-wrapper,.section-listing").addClass("header-search--opened")});this.$searchAutocompleteSearchField.focus()},hideMobileSearch:function(){a("body,html").css({overflowY:"auto",height:"auto"});a("html").removeClass("is-mobile-menu");this.$searchAutocompleteCloseBtn.addClass("is-hidden");this.$searchAutocompleteInput.animate({height:0},400,function(){a(".search-wrapper,.section-listing").removeClass("header-search--opened")})}, 178removeSearchDropdown:function(){var b=a(".autocomplete-items",this.$Component);0<b.length&&b.remove()},resetSearchState:function(){this.$searchAutocompleteInput.css({width:"0",height:"0"});this.$searchAutocompleteCloseBtn.addClass("is-hidden");this.$searchAutocomplete.removeClass("is-open");this.$SearchBtn.removeClass("is-hidden");this.$searchAutocompleteSearchField.removeClass("is-open");this.removeSearchDropdown();this.calcNavWidth();this.isSearchOpen=!1;this.checkSearchText();this.setAlwaysOpenOptions()}, 179detectMobile:function(){var b=window.matchMedia||window.msMatchMedia;return b?b("(pointer:coarse)").matches:!1},searchPageTopOffset:function(){d.RocheDialogo.Utils.Url.getCurrentPageParams().includes("search")&&this.mql.matches?this.$parentHeaderElement.addClass("is-search"):this.$parentHeaderElement.removeClass("is-search")},checkThumbnails:function(){this.$Component.find(".navigation__dropdown__list-container").each(function(b,c){b=a(c);2<b.find(".navigation__dropdown__thumbnails-wrapper").children().length&& 180b.find(".navigation__dropdown__link-list-container").css("max-height","100%")})},progress:function(){var b=document.documentElement,c=document.body,e=document.querySelector(".progress"),f=0;e&&document.addEventListener("scroll",function(){f=(b.scrollTop||c.scrollTop)/((b.scrollHeight||c.scrollHeight)-b.clientHeight)*100;e.style.setProperty("--scroll",f+"%")})}});a(function(){var b=a(".dialogoHeader");b.length&&a.each(b,function(){new d.RocheDialogo.Components.Header(a(this))})})})(AEM,$); 181(function(d){d.namespace(d,"AEM.RocheDialogo.Utils.BookmarkAction");d.RocheDialogo.Utils.BookmarkAction=new d.Class;d.RocheDialogo.Utils.BookmarkAction.extend({init:function(){document.body.addEventListener("bookmark",this.bookmark,!1);document.body.addEventListener("unbookmark",this.unbookmark,!1);this.bindBookmarks();this.bindBookmarkAction();this.bindBookmarkModals()},bindBookmarkAction:function(){var a=this;$(".bookmark-action").on("click",function(b){b.preventDefault();d.RocheDialogo.Utils.BookmarkAction.checkRegisteredUser()&& 182$(this).addClass("disabled");a.bookmarkAction($(this))})},bookmarkAction:function(a){var b=a.attr("data-bookmark-id"),c=a.attr("data-bookmark-resource"),e=a.attr("data-bookmark-path");c={bookmarkId:b,bookmarkResource:c,selector:a,bookmarkPath:e};b="bookmark";a.hasClass("bookmarked")&&(b="unbookmark");"function"===typeof window.CustomEvent?a=new CustomEvent(b,{detail:c}):(a=document.createEvent("CustomEvent",{detail:c}),a.initCustomEvent(b,!0,!1,null));document.body.dispatchEvent(a)},setBookmarks:function(){$(window).on("load", 183function(){if(ContextHub&&ContextHub.getStore("dialogo-bookmarks")){var a=ContextHub.getStore("dialogo-bookmarks").getTree(!1);
183Object.keys(a).forEach(function(b){$("[data-bookmark-id\x3d"+a[b].id+"]").each(function(){$(this).hasClass("bookmarked")||$(this).addClass("bookmarked dialogo-bookmark-action--is-bookmarked")})})}})},checkRegisteredUser:function(){return"anonymous"!==RocheDialogo.Profile.userID?!0:!1},bindBookmarks:function(){if(ContextHub&&ContextHub.getStore("dialogo-bookmarks")){var a= 184ContextHub.getStore("dialogo-bookmarks");if(a)a.eventing.on(ContextHub.Constants.EVENT_ALL_STORES_READY,this.setBookmarks,"setBookmarks",!0)}},bookmark:function(a){a.stopPropagation();d.RocheDialogo.Utils.BookmarkAction.checkRegisteredUser()?!a.detail.selector.hasClass("bookmarked")&&a.detail.bookmarkId&&a.detail.bookmarkPath&&a.detail.bookmarkResource&&dialogoSiteId&&$.ajax({method:"POST",contentType:"application/json;charset\x3dutf-8",url:a.detail.bookmarkResource+".bookmark.json",data:JSON.stringify({id:a.detail.bookmarkId, 185path:a.detail.bookmarkPath,siteId:dialogoSiteId}),cache:!1,async:!1,dataType:"json"}).done(function(){d.RocheDialogo.Utils.BookmarkAction.updateView(a.detail.bookmarkId,"bookmarked");d.RocheDialogo.Utils.BookmarkAction.bookmarkedItem("done",a.detail.bookmarkId);(new Toastify({text:bookmarkMessages.bookmarkSuccess,gravity:"top",position:"center",backgroundColor:"#a731ad",className:"bookmark-notification notification",duration:3E3})).showToast()}).fail(function(b){403===b.status&&"limit_reached"=== 186b.responseJSON.status&&$("#bookmark-error").modal();d.RocheDialogo.Utils.BookmarkAction.bookmarkedItem("fail",a.detail.bookmarkId);(new Toastify({text:bookmarkMessages.bookmarkError,gravity:"top",position:"center",backgroundColor:"#ff5e70",className:"bookmark-notification notification",duration:3E3})).showToast()}).always(function(){$(a.detail.selector).removeClass("disabled dialogo-bookmark-action--is-disabled")}):d.RocheDialogo.Utils.LoginUtils.redirectToLoginPage()},bookmarkedItem:function(a,b){a= 187{bookmarkId:b,status:a};"function"===typeof window.CustomEvent?a=new CustomEvent("bookmarkedItem",{detail:a}):(a=document.createEvent("CustomEvent",{detail:a}),a.initCustomEvent("bookmarkedItem",!0,!1,null));document.body.dispatchEvent(a)},unbookmark:function(a){a.stopPropagation();d.RocheDialogo.Utils.BookmarkAction.checkRegisteredUser()?a.detail.selector.hasClass("bookmarked")&&a.detail.bookmarkId&&a.detail.bookmarkResource&&dialogoSiteId&&$.ajax({method:"DELETE",contentType:"application/json;charset\x3dutf-8", 188url:a.detail.bookmarkResource+".bookmark.json",data:JSON.stringify({id:a.detail.bookmarkId,siteId:dialogoSiteId}),cache:!1,async:!1,dataType:"json"}).done(function(){d.RocheDialogo.Utils.BookmarkAction.updateView(a.detail.bookmarkId,"unbookmarked");(new Toastify({text:bookmarkMessages.unbookmarkSuccess,gravity:"top",position:"center",backgroundColor:"#a731ad",className:"bookmark-notification notification",duration:3E3})).showToast()}).fail(function(){(new Toastify({text:bookmarkMessages.unbookmarkError, 189gravity:"top",position:"center",backgroundColor:"#ff5e70",className:"bookmark-notification notification",duration:3E3})).showToast()}).always(function(){setTimeout(function(){$(a.detail.selector).removeClass("disabled")},1E4)}):d.RocheDialogo.Utils.LoginUtils.redirectToLoginPage()},bindBookmarkModals:function(){var a=$(".bookmark-link"),b=$("#bookmark-error"),c=$("#bookmark-limit-to-reach-error"),e=$("#bookmark-redirect");0<a.length&&(0<e.length&&e.find(".redirectAction").attr("href",a.attr("href")), 1900<b.length&&b.find(".errorAction").attr("href",a.attr("href")),0<c.length&&c.find(".limitAction").attr("href",a.attr("href")))},updateView:function(a,b){$("[data-bookmark-id\x3d"+a+"]").each(function(){d.RocheDialogo.Utils.BookmarkAction.changeButtonLook($(this),b)})},changeButtonLook:function(a,b){a.toggleClass("bookmarked");a.toggleClass("dialogo-bookmark-action--is-bookmarked");a.addClass("disabled dialogo-bookmark-action--is-disabled");"bookmarked"===b?a.removeClass("disabled dialogo-bookmark-action--is-disabled"): 191setTimeout(function(){a.removeClass("disabled dialogo-bookmark-action--is-disabled")},1E4)},nextTickHelper:function(a){ContextHub.getStore("dialogo-bookmarks").reset(!0);var b="",c="";ContextHub&&ContextHub.getStore("dialogo-bookmarks")&&($("button.bookmark-action",a).removeClass("bookmarked dialogo-bookmark-action--is-bookmarked"),b=ContextHub.getStore("dialogo-bookmarks").getTree(!1),c=Object.keys(b),c.forEac
191h(function(e){a.find("[data-bookmark-id\x3d"+b[e].id+"]").each(function(){$(this).addClass("bookmarked dialogo-bookmark-action--is-bookmarked")})}))}, 192fireEvent:function(a){a.preventDefault();if(d.RocheDialogo.Utils.BookmarkAction.checkRegisteredUser()){a=$(a.currentTarget);a.addClass("disabled dialogo-bookmark-action--is-disabled");var b=a.data("bookmark-id"),c=a.data("bookmark-resource"),e=a.data("bookmark-path").replace(".html","");c={bookmarkId:b,bookmarkResource:c,selector:a,bookmarkPath:e};b="bookmark";a.hasClass("bookmarked")&&(b="unbookmark");"function"===typeof window.CustomEvent?a=new CustomEvent(b,{detail:c}):(a=document.createEvent("CustomEvent", 193{detail:c}),a.initCustomEvent(b,!0,!1,null));document.body.dispatchEvent(a)}else d.RocheDialogo.Utils.LoginUtils.redirectToLoginPage()}});d.RocheDialogo.Utils.BookmarkAction.init()})(AEM,$); 194(function(d){d.namespace(d,"AEM.RocheDialogo.Utils.NotificationAction");d.RocheDialogo.Utils.NotificationAction=new d.Class;d.RocheDialogo.Utils.NotificationAction.extend({markRead:function(a,b){var c,e;return $jscomp.asyncExecutePromiseGeneratorProgram(function(f){if(1==f.nextAddress)return c=d.RocheDialogo.Utils.Url.getCurrentPageParams(),e={notifications:[{status:"READ",timestamp:a,toast:"false"}]},f.yield($.ajax({method:"POST",contentType:"application/json;charset\x3dutf-8",url:c+".notifications.json", 195data:JSON.stringify(e),cache:!1,async:!1,dataType:"json"}),2);window.location.href=b;f.jumpToEnd()})},toastDismiss:function(a){var b,c;return $jscomp.asyncExecutePromiseGeneratorProgram(function(e){b=d.RocheDialogo.Utils.Url.getCurrentPageParams();c={notifications:[{status:"UNREAD",toast:"false",timestamp:a}]};return e.yield($.ajax({method:"POST",contentType:"application/json;charset\x3dutf-8",url:b+".notifications.json",data:JSON.stringify(c),cache:!1,async:!1,dataType:"json"}),0)})}})})(AEM,$); 196(function(d){d.namespace(d,"AEM.RocheDialogo.Utils.PageViewed");d.RocheDialogo.Utils.PageViewed=new d.Class;d.RocheDialogo.Utils.PageViewed.extend({markViewed:function(){var a=d.RocheDialogo.Utils.Url.getCurrentPageParams();$.ajax({method:"POST",contentType:"application/json;charset\x3dutf-8",url:a+".bookmark-status.json",data:JSON.stringify({path:currentPagePath,siteId:dialogoSiteId}),cache:!1,async:!1,dataType:"json"})}})})(AEM,$); 197$(function(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(function(c){c.pushManager&&c.pushManager.getSubscription().then(function(e){var f=ContextHub.getStore("dialogo-profile").getTree(!1).authorizableId;e||"anonymous"===f?e&&"anonymous"===f&&(e.unsubscribe(),b("DELETE",e)):a(c)})});var d=function(c){var e="\x3d".repeat((4-c.length%4)%4);c=(c+e).replace(/\-/g,"+").replace(/_/g,"/");c=window.atob(c);e=new Uint8Array(c.length);for(var f=0;f<c.length;++f)e[f]=c.charCodeAt(f);return e}, 198a=function(c){c.pushManager&&c.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:d(applicationServerKey)}).then(function(e){b("POST",e)})},b=function(c,e){var f=AEM.RocheDialogo.Utils.Url.getCurrentPageParams(),g=e.getKey?e.getKey("p256dh"):"",k=e.getKey?e.getKey("auth"):"";$.ajax({method:c,contentType:"application/json;charset\x3dutf-8",url:f+".subscriptions.json",data:JSON.stringify({endpoint:e.endpoint,keys:{p256dh:g?btoa(String.fromCharCode.apply(null,new Uint8Array(g))):"",auth:k? 199btoa(String.fromCharCode.apply(null,new Uint8Array(k))):""}}),cache:!1,async:!1,dataType:"json"})}}); 200(function(d){d.namespace(d,"AEM.RocheDialogo.Utils.ColorBinding");d.RocheDialogo.Utils.ColorBinding=new d.Class;d.RocheDialogo.Utils.ColorBinding.extend({setCSSVariable:function(a,b,c,e){e=void 0===e?"--background-color":e;b=this.getVariableName(b,void 0===c?10:c);a.style.setProperty(e,b)},getVariableName:function(a,b){a="--dialogo-c-specialty-"+a+"-"+(void 0===b?10:b);return""!==getComputedStyle(document.documentElement).getPropertyValue(a).trim()?"var("+a+")":"var(--dialogo-c-primary-blue-20)"}})})(AEM); 201(function(d,a){d.namespace(d,"AEM.RocheDialogo.Utils.Carousel");d.RocheDialogo.Utils.Carousel=new d.Class;d.RocheDialogo.Utils.Carousel.include({init:function(b){this.$carousel=b;b=this.$carousel.find(".slider-slick");var c=0<this.$carousel.closest(".dialogo-accordion").length,e=0<this.$carousel.closest(".dialogo-accordion__container--two-columns").length,f=function(l,h){return{breakpoint:l,settings:{arrows:!0,slidesToShow:h,infinite:!1,slidesToScroll:h}}},g=4,k=[f(1800,3),f(1300,2),f(767,1)];c&& 202e&&(g=2,k=[f(1800,1)]);c={prevArrow:a(".dialogo-carousel__arrow--prev",this.$carousel),nextArrow:a(".dialogo-carousel__arrow--next",this.$carousel),arrows:!0,slidesToShow:g,responsive:k,slidesToScroll:g,infinite:!1};this.$carousel.hasClass("in-edit-mode")||(b.show(),b.not(".slick-initialized").slick(c),this.mobileDotsHandler())},mobileDotsHandler:function(){var b=this;a(".dialogo-carousel__cards",this.$carousel).on("afterChange",function(){b.updateCounter()});this.updateCounter()},createCounterItem:function(b){return'\x3cspan tabindex\x3d"1" role\x3d"button" class\x3d"dialogo-carousel__counter-item newlook look-body"\x3e'+ 203(b+1)+"\x3c/span\x3e"},createDots:function(){return'\x3cdiv class\x3d"dots dialogo-carousel__counter-dots newlook look-body"\x3e...\x3c/div\x3e'},updateCounter:function(){var b=a(".dialogo-carousel__cards",this.$carousel),c=a(".dialogo-carousel__numbers",this.$carousel),e=a(".dialogo-carousel__counter",this.$carousel),f=b.slick("getSlick").slideCount,g=b.slick("slickCurrentSlide");e.empty();e.append(this.createCounterItem(0));1===f?c.addClass("dialogo-carousel__numbers--single"):c.removeClass("dialogo-carousel__numbers--single"); 204if(3>f)for(c=1;c<f;c++)e.append(this.createCounterItem(c));else{2<g&&e.append(this.createDots());for(c=g-1;
204c<=g+1;c++)1<=c&&c<f-1&&e.append(this.createCounterItem(c));g<f-3&&e.append(this.createDots());e.append(this.createCounterItem(f-1))}e.find(".dialogo-carousel__counter-item:contains("+(g+1)+")").eq(0).addClass("active");e.find(".dialogo-carousel__counter-item").on("click",function(){var k=+a(this).text()-1;b.slick("slickGoTo",k)})}})})(AEM,$); 205var scrollHelper=function(){var d=$(location.hash);if(0<d.length){var a=$(".header").outerHeight();$("html, body").stop(!0);$("html, body").scrollTop(d.offset().top-a)}}; 206$(document).on("loader-delete",function(){performance.getEntriesByType("navigation").forEach(function(d){"reload"!==d.type&&""!==window.location.hash&&scrollHelper()});window.addEventListener("hashchange",function(){var d=new URLSearchParams(window.location.search);if(d.has("tab-ref")){var a=window.location.href.split("?")[0],b=window.location.hash,c="";d.delete("tab-ref");0<d.toString().length&&(c="?");history.pushState({},"",""+a+c+d.toString()+b)}scrollHelper()},!1)}); 207RocheDialogo.completeRegistrationCounter=0; 208RocheDialogo.Components.GigyaWrapper=function(d){var a=function(){if("function"===typeof fbq){var b=XMLHttpRequest.prototype,c=b.open;b.open=function(e,f){var g=this;-1!==f.indexOf("accounts.finalizeRegistration")&&this.addEventListener("load",function(){(200===g.status||206===g.status)&&1>RocheDialogo.completeRegistrationCounter++&&(fbq("track","CompleteRegistration",{content_name:"registration_of_user",status:!0}),window.lintrk("track",{conversion_id:9432329}))});return c.apply(this,arguments)}}}; 209return{init:function(){a();Vue.config.devtools=!0;Vue.component("gigya-login",{props:{countryCode:{type:String},languageCode:{type:String}}});try{var b=window.location.href,c=d.find(".roche-employee-login").find("a");if(c.length){var e=c.attr("href");if("undefined"!==typeof e&&!1!==e){var f=b.replace(/.*\/public\/login\.html\?resource=%2Fcontent%2Fwebsites%2Froche-dialogo%2F(mx|ce|cu|co|ec|pe|cl|py|bo|uy|ar|br|aet)([^&]*)&.*/g,"$2"),g=e.replace(/(.*?saml_request_path=).*/g,"$1");c.attr("href",g+f)}}}catch(k){console.error(k)}}}}; 210$(document).ready(function(){$("div.gigya-wrapper").each(function(d,a){(new RocheDialogo.Components.GigyaWrapper($(a))).init()});if(0!==$("div.gigya-wrapper").length)$(window).on("scroll",function(){try{document.querySelector("#hcoDropdown").previousElementSibling.blur()}catch(d){}})});var hideLoader=function(){setTimeout(function(){$(".roche-loader").fadeOut("slow",function(){$(this).remove();$("body").removeClass("loading");$(document).trigger("loader-delete")})},1E3)}; 211"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?hideLoader():document.addEventListener("DOMContentLoaded",hideLoader); 212(function(d){d.namespace(d,"AEM.RocheDialogo.Utils.NavigationBar");d.RocheDialogo.Utils.NavigationBar=new d.Class;d.RocheDialogo.Utils.NavigationBar.extend({init:function(){this.DEBUG=d.RocheDialogo.Utils.Constants.DEBUG},refershNavigation:function(a){var b=$(".dialogoNavigation");b.length&&$.each(b,function(){new Vue({el:this,data:function(){return{navItems:[],contactLinks:[],languages:[],userType:"anonymous",userProfession:"anonymous"}},mounted:function(){var c=this;this.$component=$(this.$el); 213this.consts=d.RocheDialogo.Utils.Constants;this.DEBUG=d.RocheDialogo.Utils.Constants.DEBUG;this.mql=window.matchMedia("(max-width: "+this.consts.BREAKPOINTS.LG+")");this.mqx=window.matchMedia("(max-width: "+this.consts.BREAKPOINTS.XL+")");var e=ContextHub.getStore("dialogo-profile").getTree(!1);this.$navbarMenuTitle=$(".js-navbar-menu-title");this.$mobileNavigation=$("#navbarContent");this.$sitelogo=$(".dialogoHeader__logos");this.$siteHtml=$("html");this.$buttonToggleMobile=$(".js-navbar-toggler"); 214this.$mobileTitle=$(".navigation-mobile__menu-title");this.$collapseContainer=$(".collapse__container");this.$navigationMobile=$(".js-navigation-mobile");e&&(this.userType=e.authorizableId,this.userProfession=a?a:"anonymous");this.getNavItems();this.mql.addEventListener("change",function(f){c.resetState()})},updated:function(){$(".dialogoHeader").trigger("navigation-loaded")},methods:{getNavItems:function(){var c=this,e=d.RocheDialogo.Utils.Url.getCurrentPageParams();axios.get(e+this.consts.ENDPOINTS.NAVIGATION_ITEMS).then(function(f){c.navItems= 215f.data;
215c.navItems.forEach(function(g){g.thumbnailChildrens.forEach(function(k){if(k&&k.title){var l=k.title.split("|");Array.isArray(l)&&0<l.length&&(k.titles=l.map(function(h){return h.trim()}))}})});c.contactLinks=c.getContactLinks();c.languages=c.getLanguages();$(".js-navigation",c.$component).removeClass("d-none")}).then(function(){$(c.$el).hasClass("mobile")&&c.bindMobileEvents();$(c.$el).hasClass("desktop")&&c.bindDesktopEvents()}).catch(function(f){c.DEBUG&&(f.response?(console.error(f.response.data), 216console.error(f.response.status),console.error(f.response.headers)):f.request?console.error(f.request):console.error("Error",f.message),console.error(f.config))})},bindMobileEvents:function(){var c=this;this.$buttonToggleMobile.on("click",function(){var e=$(".navigation-mobile__control"),f=$(".navigation-mobile__content"),g=c.$mobileNavigation.hasClass("is-open");c.$navigationMobile.toggleClass("full-width");c.$navbarMenuTitle.addClass("mobile-menu");c.$sitelogo.addClass("mobile-menu");c.$buttonToggleMobile.toggleClass("is-open"); 217c.$mobileTitle.toggleClass("is-open");c.$collapseContainer.toggleClass("is-open");c.$buttonToggleMobile.addClass("is-disabled");g?(c.$sitelogo.removeClass("mobile-menu"),c.$siteHtml.removeClass("is-mobile-menu"),setTimeout(function(){c.$mobileNavigation.removeClass("is-open");c.$navbarMenuTitle.removeClass("mobile-menu")},600)):(c.$siteHtml.addClass("is-mobile-menu"),c.$mobileNavigation.addClass("is-open"),c.$navbarMenuTitle.addClass("mobile-menu"),c.$sitelogo.addClass("mobile-menu"));setTimeout(function(){c.$buttonToggleMobile.removeClass("is-disabled")}, 218600);e.each(function(k,l){var h=$(l),m=h.attr("collapse-id");l.onclick=function(){var n=h.parent().find(".navigation-mobile__link"),p=f.find(m),w=p.attr("data-status");h.toggleClass("close-icon");n.toggleClass("look-regular");"closed"===w?(p.height(p.prop("scrollHeight")+"px"),p.attr("data-status","open")):(p.height("0px"),p.attr("data-status","closed"))}})})},bindDesktopEvents:function(){var c=this,e=$(".navigation__wrapper"),f=$(".navigation__btn-prev"),g=$(".navigation__btn-next"),k=$(".navigation__end"), 219l=$(".navigation__content"),h=l[0].children,m=0,n=0,p=!1;0<e.outerWidth()-l[0].scrollWidth?k.hide():(g.removeClass("nav-end"),f.on("click",function(){c.btnShiftState(f);--m;if(0===n)m=0;else{if(1>m)n=m=0,f.addClass("nav-end");else if(p){var w=$(h[m]).position().left;n-=w;p=!1}else w=$(h[m]).outerWidth(),n+=w;l.attr("style","margin-left: "+n+"px");g.removeClass("nav-end")}}),g.on("click",function(){c.btnShiftState(g);var w=$(h[h.length-2]).outerWidth(),z=g.position().left;z=k.position().left-z;m+= 2201;1>z||(z<w?(n-=z,g.addClass("nav-end"),p=!0):(w=$(h[m]).outerWidth(),n-=w),l.attr("style","margin-left: "+n+"px"),f.removeClass("nav-end"))}))},btnShiftState:function(c){$(c).addClass("disabled");setTimeout(function(){$(c).removeClass("disabled")},351)},getContactLinks:function(){return $(".js-top-contactLink-link").map(function(c,e){return{contactLinkUrl:e.getAttribute("data-contactLink-url"),contactLinkDescription:e.getAttribute("data-contactLink-description")}})},getLanguages:function(){return $(".js-top-languages-link").map(function(c, 221e){return{languageUrl:e.getAttribute("data-languages-url"),languageIcon:e.getAttribute("data-languages-icon"),languageLabel:e.getAttribute("data-languages-label").trim()}})},resetState:function(){this.$sitelogo.removeClass("mobile-menu");this.$siteHtml.removeClass("is-mobile-menu");this.$mobileNavigation.removeClass("is-open");this.$navbarMenuTitle.removeClass("mobile-menu");this.$buttonToggleMobile.removeClass("is-disabled");this.$buttonToggleMobile.removeClass("is-open");this.$mobileTitle.removeClass("is-open"); 222this.$collapseContainer.removeClass("is-open");this.$navigationMobile.removeClass("full-width")}}})})}});d.RocheDialogo.Utils.NavigationBar.init()})(AEM); 223AEM.RocheDialogo.Components.OutdatedBrowserWarning=function(d){return{init:function(){var a=bowser.getParser(window.navigator.userAgent),b=d.data("firefoxVersion"),c=d.data("edgeVersion"),e=d.data("safariVersion"),f=d.data("chromeVersion"),g=$(".close-action",d),k=0;a.satisfies({windows:{"microsoft edge":"\x3e"+c},macos:{safari:"\x3e"+e},mobile:{safari:"\x3e"+e},chrome:"\x3e"+f,firefox:"\x3e"+b})||(k=d.outerHeight(),d.parent().height(k),$(".dialogoHeader").css("top",k),d.show());g.click(function(){d.parent().height(0); 224$(".dialogoHeader").css("top",0);d.hide()});$(window).resize(function(){d.is(":visible")&&(k=d.outerHeight(),d.parent().height(k),$(".dialogoHeader").css("top",k))})}}};$(document).ready(function(){$(".outdated-browser--warning").each(function(d,a){(new AEM.RocheDialogo.Components.OutdatedBrowserWarning($(a))).init()})});$(document).ready(function(){$(".outdated-browser--warning").each(function(d,a){(new AEM.RocheDialogo.Components.OutdatedBrowserWarning($(a))).init()})}); 225(function(){var d=!1,a=function(e){return new Vue({el:e,data:function(){return{notifications:[],notificationQuantity:0,toastIndex:0,host:window.location.host}},mounted:function(){var f=this;this.$el.classList.add("dialogo-notifications--initialized");this.button=this.$el.querySelector(".dialogo-notifications__button");this.quantity=this.$el.querySelector(".dialogo-notifications__button__quantity");this.notificationsReceived=!1;if(window.ContextHub&&ContextHub.SegmentEngine){var g=ContextHub.getStore("dialogo-notifications"); 226g&&(g.eventing.on(ContextHub.Constants.EVENT_ALL_STORES_READY,this.getNotifications,"getNotifications",!0),window.setTimeout(function(){f.getNotifications()},1500))}this.bindEvents()},methods:{bindEvents:function(){var f=this;this.button.addEventListener("click",function(g){g.preventDefault();f.$el.classList.toggle("dialogo-notifications--is-open")})},getNotifications:function(){var f=this;if(!1===this.notificationsReceived){this.notificationsReceived=!0;var g=Object.values(ContextHub.getStore("dialogo-notifications").getTree(!1)); 227this.toastNotifications=g;this.notifications=g.reverse();this.notificationQuantity=this.notifications.length;0<this.notificationQuantity&&(this.notifications.forEach(function(k){k.url.includes(f.host)||(k.isExternal=!0)}),this.$el.classList.add("dialogo-notifications--has-notifications"),this.createToast())}},onNotificationClick:function(f,g){var k=this;f.preventDefault();--this.notificationQuantity;this.quantity.classList.add("dialogo-notifications__button__quantity--pop");f.target.closest(".dialogo-notifications__item")&& 228f.target.closest(".dialogo-notifications__item").classList.add("dialogo-notifications__item--read");window.setTimeout(function(){k.quantity.classList.remove("dialogo-notifications__button__quantity--pop");AEM.RocheDialogo.Utils.NotificationAction.markRead(g,f.target.href)},300)},createToast:function(){var f=this,g="right";window.matchMedia("(max-width: 600px)").matches&&(g="center");if(this.toastIndex<=this.notifications.length-1)if("true"===this.notifications[this.toastIndex].toast){var k=this.notifications[this.toastIndex]; 229(new Toastify({text:'\x3cdiv class\x3d"dialogo-toast-notification__wrapper"\x3e\n \x3ch2 class\x3d"dialogo-toast-notification__title"\x3e'+k.subject+'\x3c/h2\x3e\n \x3cp class\x3d"dialogo-toast-notification__content"\x3e'+k.title+"\x3c/p\x3e\n \x3ca "+(k.isExternal?'data-target\x3d"#exitRoche" data-toggle\x3d"modal"':"")+' class\x3d"dialogo-toast-notification__link"\x3e'+k.linkLabel+"\x3c/a\x3e\n \x3c/div\x3e", 230gravity:"bottom",position:g,close:!0,duration:-1,backgroundColor:"#306FEB",className:"dialogo-toast-notification",callback:function(){f.toastDissmiss(k.timestamp)},onClick:function(){AEM.RocheDialogo.Utils.NotificationAction.markRead(k.timestamp,k.url)}})).showToast()}else this.toastIndex+=1,this.createToast()},toastDissmiss:function(f){AEM.RocheDialogo.Utils.NotificationAction.toastDismiss(f);this.toastIndex+=1;this.createToast()}}})},b=function(e){window.ContextHub?a(e):window.setTimeout(function(){b(e)}, 231100)},c=new MutationObserver(function(e){e.forEach(function(f){f.addedNodes.length&&(f=document.querySelectorAll(".dialogo-notifications:not(.dialogo-notifications--initialized)"))&&f.forEach(function(g){d||(d=!0,b(g));c.disconnect()})})});c.observe(document.body,{childList:!0,characterData:!0,subtree:!0})})(); 232(function(d,a){d.namespace(d,"RocheDialogo.Components.PageDisclaimer");d.RocheDialogo.Components.PageDisclaimer=new d.Class;d.RocheDialogo.Components.PageDisclaimer.include({isDeactivated:function(){var b=this.component.getAttribute("id");return{"page-load":!1,once:"deactivated"===window.localStorage.getItem(b),"once-per-session":"deactivated"===window.sessionStorage.getItem(b)}[this.component.dataset.once]},bindExitButtons:function(){var b=this,c=this.component.querySelectorAll('[data-target\x3d"#exitRoche"]'); 233if(c&&c.length){var e=document.querySelector(".dialogo-exit-modal"),f=e?e.querySelectorAll(".dialogo-modal__close, .dialogo-button"):null;
233c.forEach(function(g){g.addEventListener("click",function(){window.setTimeout(function(){a(e).modal("show",{keyboard:!1});e.removeAttribute("inert")},300)})});f&&f.length&&f.forEach(function(g){g.addEventListener("click",function(){b.isDeactivated()||(a(b.component).modal("show",{keyboard:!1}),document.body.classList.add("modal-open"))})})}},init:function(b){this.component= 234b;if(!this.component.classList.contains("dialogoPageDisclaimerEdit")){if(!this.isDeactivated()){var c=this.component.getAttribute("id");this.component.removeAttribute("inert");a(this.component).modal("show",{keyboard:!1});a(this.component).on("click",'[data-dismiss\x3d"modal"]',function(){window.localStorage.setItem(c,"deactivated");window.sessionStorage.setItem(c,"deactivated")})}this.bindExitButtons()}}});a(function(){var b=document.querySelectorAll(".dialogoPageDisclaimer, .dialogoPopUp");b&&b.length&& 235b.forEach(function(c){new d.RocheDialogo.Components.PageDisclaimer(c)})})})(AEM,$); 236(function(d,a){d.namespace(d,"RocheDialogo.Components.Carousel");d.RocheDialogo.Components.Carousel=new d.Class;d.RocheDialogo.Components.Carousel.include({init:function(b){this.$Component=b;this.bindDom();this.bindData();this.initCarousel()},bindData:function(){this.autoplay=this.$Component.data("cmpAutoplay");this.autoplaySpeed=this.$Component.data("cmpDelay");this.itemsLength=this.$heroList.length;this.emptyHeroButtonsLength=this.$heroList.find(".hero-content__button-container--empty-button").length; 237this.carouselParams={prevArrow:"",nextArrow:"",autoplay:"",autoplaySpeed:"",responsive:[{breakpoint:1200,settings:{arrows:!1,slidesToShow:1,infinite:!1,slidesToScroll:1}}]}},bindDom:function(){this.$carousel=this.$Component.find(".dialogo-carousel__items");this.$heroList=this.$carousel.find(".re-hero")},initCarousel:function(){this.handleButtons();this.handleAutoplay();1===this.itemsLength?this.$Component.addClass("dialogo-carousel--single-element"):this.itemsLength===this.emptyHeroButtonsLength&& 238this.$Component.addClass("dialogo-carousel--no-hero-buttons");this.$carousel.slick(this.carouselParams)},handleButtons:function(){var b=function(c){return"/etc.clientlibs/roche-dialogo/clientlibs/site/resources/new-look/fi-rs-angle-small-"+c+".svg"};this.carouselParams.prevArrow="\x3cimg class\x3d'prev dialogo-carousel__arrow dialogo-carousel__arrow--prev' src\x3d"+b("left")+' alt\x3d"left arrow"\x3e';this.carouselParams.nextArrow="\x3cimg class\x3d'next dialogo-carousel__arrow dialogo-carousel__arrow--next' src\x3d"+ 239b("right")+' alt\x3d"right arrow"\x3e'},handleAutoplay:function(){""===this.autoplay&&(this.carouselParams.autoplay=!0,this.carouselParams.autoplaySpeed=this.autoplaySpeed)}})})(AEM,$);initCarousel=function(d){0<d.length&&$.each(d,function(){new AEM.RocheDialogo.Components.Carousel($(this))})}; 240$(document).ready(function(){if(window.ContextHub&&ContextHub.SegmentEngine)ContextHub.eventing.on(ContextHub.Constants.EVENT_TEASER_LOADED,function(a,b){b.data.forEach(function(c){c=$("#"+c.key).children().children();c.hasClass("dialogo-carousel--hero")&&initCarousel(c)})});var d=AEM.RocheDialogo.Utils.TargetedUtils.getNotTargetedElements(".dialogo-carousel--hero");initCarousel(d)}); 241(function(d,a){d.namespace(d,"RocheDialogo.Utils.HeroVideoHelper");d.RocheDialogo.Utils.HeroVideoHelper=new d.Class;d.RocheDialogo.Utils.HeroVideoHelper.extend({initVideo:function(b){var c=this,e=a(".embed-player:not(.no-resizing)",b);c.resizePlayer(e,b);a(window).on("resize",function(){c.resizePlayer(e,b)})},resizePlayer:function(b,c){if(b[0]){var e=a(document).width();c=c.innerHeight();var f=16/9;e/f<c?(e=Math.ceil(c*f),b.width(e).height(c)):(c=Math.ceil(e/f),b.width(e).height(c))}}})})(AEM,$); 242(function(d,a){d.namespace(d,"RocheDialogo.Components.Hero");d.RocheDialogo.Components.Hero=new d.Class;d.RocheDialogo.Components.Hero.include({init:function(b){this.$Component=b;this.bindData();this.bindDom();this.bindEvents();this.setImage();this.checkCarouselParent()},bindData:function(){this.imageSrc=this.$Component.data("image")},bindDom:function(){this.$image=this.$Component.find(".hero-content__image img")},bindEvents:function(){var b=this;this.$Component.on("click",function(){var c=a(".hero-content-cmp a.h1", 243b.$Component).attr("href");
243device.mobile()&&c&&(window.location.href=c)})},setImage:function(){this.$image.attr("src",this.imageSrc)},checkCarouselParent:function(){this.$Component.closest(".dialogo-carousel").length||this.$Component.addClass("hero--standalone-component")}})})(AEM,$); 244$(document).ready(function(){$(".re-hero").each(function(d,a){d=$(a);if(0<d.closest(".target").length){if(window.ContextHub&&ContextHub.SegmentEngine)ContextHub.eventing.on(ContextHub.Constants.EVENT_TEASER_LOADED,function(b,c){c.data.forEach(function(e){e=$("#"+e.key).find(".re-hero");0<e.length&&e.each(function(f,g){f=$(g);new AEM.RocheDialogo.Components.Hero(f)})})})}else new AEM.RocheDialogo.Components.Hero(d)})}); 245var buildFilterString=function(d,a,b){var c=a;a||(c=b);return d+"."+encodeURIComponent(c)},buildFilteredCarouselURL=function(d,a,b,c){a=buildFilterString("",a,"sp");a=buildFilterString(a,b,"li");a=buildFilterString(a,c,"st");return d+".carousel-feed"+a+".json"}; 246$(document).ready(function(){if(0===$(".dialogo-carousel--filtered").closest(".target").find(".dialogo-carousel--filtered").length){var d=$(".dialogo-carousel--filtered");0<d.length&&$.each(d,function(){filteredCarouselInit(this)})}else if(window.ContextHub&&ContextHub.SegmentEngine)ContextHub.eventing.on(ContextHub.Constants.EVENT_TEASER_LOADED,function(a,b){b.data.forEach(function(c){c=$("#"+c.key).children().children();c.hasClass("dialogo-carousel--filtered")&&filteredCarouselInit(c[0])})})}); 247var filteredCarouselInit=function(d){new Vue({el:d,data:function(){return{cards:[],tabTitle:"",tabDesc:"",viewStatus:"private",renderComponent:!0,axiosHeaderProps:{"Cache-Control":"no-cache",Pragma:"no-cache",Expires:"0"}}},mounted:function(){var a=this;this.$component=$(this.$el);var b=$(".dialogo-tabs__tablist .dialogo-tabs__tab",this.$component).first(),c=$(".dialogo-tabs__tablist .dialogo-tabs__tab .active",this.$component).parent(),e=c.find("button")[0],f=this.$component.data("personalized-tag"); 248b=f?f:b.data("type");f=AEM.RocheDialogo.Utils.Url.getCurrentPageParams();var g=this.$component.data("view-limit"),k=0<document.querySelectorAll("[data-bookmark-disable]").length?"true":"false";b=buildFilteredCarouselURL(f,b,g,this.viewStatus);this.viewStatus=this.$component.data("view-status");this.tabTitle=c.data("title");this.tabDesc=c.data("desc");axios.defaults.headers=this.axiosHeaderProps;axios.get(b).then(function(l){if(l=l.data.results)a.cards=l,a.cards.forEach(function(h){h.disableBookmark= 249k})}).finally(function(){a.noCardsMsgHander();a.cards&&a.initCarousel();e&&a.setBackgroundColor(e)})},methods:{getResults:function(a,b,c,e){var f=this,g=new $.Deferred;a=buildFilteredCarouselURL(a,b,c,e);axios.defaults.headers=this.axiosHeaderProps;axios.get(a).then(function(k){f.slickClean();f.cards=k.data.results;f.noCardsMsgHander();g.resolve(k)}).catch(function(k){console.error(k);g.reject(k)});return g.promise()},forceRerender:function(a){var b=this;this.$nextTick(function(){b.$nextTick(function(){$(".dialogo-tabs__tablist .dialogo-tabs__tab .active", 250b.$component).removeClass("active");$(a).addClass("active");b.tabTitle=$(a).parent().data("title");b.tabDesc=$(a).parent().data("desc");b.initCarousel()})})},noCardsMsgHander:function(){var a=$(".dialogo-carousel__no-cards-msg",this.$component);0===this.cards.length?a.show():a.hide()},setTab:function(a){var b=this,c=a.target,e=$(c).parent().data("type"),f=AEM.RocheDialogo.Utils.Url.getCurrentPageParams(),g=this.$component.data("view-limit");a=a.target.dataset.tagName;this.tabTitle=$(c).parent().data("title"); 251this.tabDesc=$(c).parent().data("desc");this.setBackgroundColor(c,a);$(".slider-slick",this.$component).hide();this.getResults(f,e,g,this.viewStatus).then(function(){b.forceRerender(c)})},setBackgroundColor:function(a){AEM.RocheDialogo.Utils.ColorBinding.setCSSVariable(a,a.dataset.tagName)},slickClean:function(){$(".slider-slick",this.$component).slick("unslick")},initCarousel:function(){var a=this;new AEM.RocheDialogo.Utils.Carousel(this.$component);setTimeout(function(){new AEM.RocheDialogo.Utils.Carousel(a.$component)}, 252100)}},updated:function(){var a=this;a.$nextTick(function(){AEM.RocheDialogo.Utils.BookmarkAction.nextTickHelper($(a.$el))})}})}; 253$(function(){var d=$(".js-downloable-material");d.length&&$.each(d,function(){new Vue({el:this,data:function(){return{cards:[],viewStatus:"private",resourcePath:""}},mounted:function(){var a=this,b=$(this.$el).attr("data-cards-json"),
253c=0<document.querySelectorAll("[data-bookmark-disable]").length?"true":"false";b&&"{}"!==b&&(this.cards=JSON.parse(b).map(function(e){return Object.assign({},e,{isDownloadableItem:!0,disableBookmark:c})}));this.$el=$(this.$el);this.resourcePath=this.$el.attr("data-bookmark-resource"); 254this.$el.show();$(window).on("load",function(){$(a.$el).find("video").each(function(e,f){f.pause();f.currentTime=0})})},methods:{toggleButtonClick:function(){$(".show-more-txt",this.$el).toggle();$(".hide-txt",this.$el).toggle()},updated:function(){var a=this;a.$nextTick(function(){AEM.RocheDialogo.Utils.BookmarkAction.nextTickHelper($(a.$el))})}}})})}); 255$(function(){var d=$(".js-custom-dropdown");d.length&&$.each(d,function(){new Vue({el:this,data:function(){return{dropdownText:"",selectedItem:"",selectedValue:"",dataDropdown:""}},mounted:function(){this.selectedItem=$(this.$el).find("a[data-is-selected]")[0];this.dataDropdown=$(this.$el).siblings("select.cmp-form-options__field")[0];this.dropdownText=this.selectedItem?this.selectedItem.innerText:$(this.$el).find("a")[0].innerText},methods:{handleChoose:function(a){this.selectedItem=$(a.target)[0]; 256this.selectedItem.classList.contains("disabled")||(this.selectedValue=this.selectedItem.getAttribute("data-value-target"),this.dropdownText=this.selectedItem.innerText,$(this.dataDropdown).val(this.selectedValue).change())}}})})}); 257(function(d,a){d.namespace(d,"RocheDialogo.Components.BucketVideo");d.RocheDialogo.Components.BucketVideo=new d.Class;d.RocheDialogo.Components.BucketVideo.include({init:function(b){this.$component=b;this.allBucketVideos=a(".dialogoBucketVideo video");this.videoPlayer=a("video",this.$component)[0];this.videoPlayerId=a("video",this.$component).attr("id");this.videoJs=videojs(this.videoPlayerId);this.isSafari=this.detectSafari();this.bindEvents();this.setupViewer()},bindEvents:function(){var b=this; 258if(device.mobile())this.videoJs.muted(!1),device.onChangeOrientation(function(c){b.videoJs.paused()||"landscape"!==c||b.videoJs.isFullscreen()||b.videoJs.requestFullscreen()});else a(document).one("click",function(){b.videoJs.muted(!1)})},setupViewer:function(){"disabled"===this.$component.data("cmpAutoplay")||this.isSafari||device.mobile()||this.checkOnWindowVideo();this.setTextContentColors();this.setBackgroundImg()},checkOnWindowVideo:function(){var b=this;new Waypoint.Inview({element:b.videoPlayer, 259entered:function(){b.allBucketVideos.each(function(c,e){e.pause()});b.videoJs.play()},exited:function(){b.videoJs.pause()}})},detectSafari:function(){var b=navigator.userAgent,c=-1<b.indexOf("Chrome");b=-1<b.indexOf("Safari");c&&b&&(b=!1);return b},setBackgroundImg:function(){var b=a(".background-img",this.$component),c=b.attr("data-background-img");if(c){var e=b.attr("data-blur"),f=b.attr("data-opacity");b.css({"background-image":"url('"+c+"')",filter:"blur("+e+")",opacity:""+f})}},setTextContentColors:function(){var b= 260a(".dialogo-content",this.$component),c=b.attr("data-title-color"),e=b.attr("data-text-color");c&&b.find("a").css("color","var(--dialogo-c-primary-"+c+")");e&&b.find("p").css("color","var(--dialogo-c-primary-"+e+")")}});a(function(){var b=a(".dialogoBucketVideo");b.length&&a.each(b,function(){new d.RocheDialogo.Components.BucketVideo(a(this))})})})(AEM,$); 261(function(d,a){d.namespace(d,"RocheDialogo.Components.DialogoEventsCongressCarousel");d.RocheDialogo.Components.DialogoEventsCongressCarousel=new d.Class;d.RocheDialogo.Components.DialogoEventsCongressCarousel.include({init:function(b){setTimeout(function(){new d.RocheDialogo.Utils.Carousel(a(b))})}});a(function(){var b=a(".dialogo-carousel--event-carousel");b.length&&a.each(b,function(){new d.RocheDialogo.Components.DialogoEventsCongressCarousel(a(this))})})})(AEM,$); 262$(document).ready(function(){var d=$(".dialogo-carousel--calculator");0<d.length&&$.each(d,function(){calculatorCarouselInit(this)})});var calculatorCarouselInit=function(d){new Vue({el:d,mounted:function(){var a=this;this.$component=$(this.$el);setTimeout(function(){a.initCarousel()})},methods:{initCarousel:function(){new AEM.RocheDialogo.Utils.Carousel(this.$component)}},updated:function(){var a=this;a.$nextTick(function(){AEM.RocheDialogo.Utils.BookmarkAction.nextTickHelper($(a.$el))})}})}; 263(function(){var d=function(){if(document.body.classList.contains("modal-open"))document.documentElement.classList.contains("modal-open-html")||document.documentElement.classList.add("modal-open-html");else{var e=0;document.body.querySelectorAll(".modal").forEach(function(f){!0===f.classList.contains("show")&&(document.body.classList.add("modal-open"),document.documentElement.classList.add("modal-open-html"),e+=1)});1>e&&document.documentElement.classList.remove("modal-open-html")}},a=function(){document.body.querySelectorAll(".modal").forEach(function(e){!0!== 264e.classList.contains("show")&&e.setAttribute("inert","")})},b=function(){document.body.querySelectorAll(".modal").forEach(function(e){!0===e.classList.contains("show")&&e.removeAttribute("inert")})};(new MutationObserver(function(e){e.forEach(function(f){f.target.classList.contains("modal-open")?(initialPosition=document.documentElement.scrollTop,b()):a()});d()})).observe(document.body,{attributes:!0,attributeFilter:["style","class"]});var c=function(){if(!device.ios()){var e=window.innerWidth-document.documentElement.clientWidth; 265document.body.classList.add("dialogo-modal__scrollbar-measure");document.documentElement.style.setProperty("--dialogo-scrollbar-width",e+"px");document.body.classList.remove("dialogo-modal__scrollbar-measure")}};c();document.addEventListener("load",function(){c()})})(); 266$(document).ready(function(){if(window.ContextHub&&ContextHub.SegmentEngine)ContextHub.eventing.on(ContextHub.Constants.EVENT_TEASER_LOADED,function(a,b){b.data.forEach(function(c){c=$("#"+c.key).children().children();c.hasClass("search-wrapper")&&resultsCardsInit(c[0])})});var d=AEM.RocheDialogo.Utils.TargetedUtils.getNotTargetedElements(".search-wrapper");d.length&&$.each(d,function(){resultsCardsInit(this)})}); 267var resultsCardsInit=function(d){new Vue({el:d,data:function(){return{cards:[],searchTerm:"",totalResults:0,groups:[],showCards:!1,showRecommendations:!1,resourcePath:""}},mounted:function(){var a=this;a.$Component=$(this.$el);this.resourcePath=this.$Component.attr("data-bookmark-resource");AEM.RocheDialogo.Utils.Search.registerObserver(a,function(c){a.setResults(c)});var b=a.$Component.data("page-size");AEM.RocheDialogo.Utils.Search.doSearch(window.location.search.substring(1),b)},methods:{setResults:function(a){var b= 2680<document.querySelectorAll("[data-bookmark-disable]").length;a.data.results&&0<a.data.results.length?(this.showCards=!0,this.showRecommendations=!1,this.cards=a.data.results):(this.showCards=!1,a.data.recommendations&&0<a.data.recommendations.length?(this.showRecommendations=!0,this.cards=a.data.recommendations):(this.showRecommendations=!1,this.cards=[]));0<this.cards.length&&this.cards.forEach(function(c){c.disableBookmark=b});this.searchTerm='"'+a.data.searchTerm+'"';this.totalResults=a.data.totalResults; 269this.groups=a.data.groups;this.$Component.removeClass("hidden")}},updated:function(){var a=this;a.$nextTick(function(){AEM.RocheDialogo.Utils.BookmarkAction.nextTickHelper($(a.$el))})}})}; 270(function(d,a){d.namespace(d,"RocheDialogo.Components.ResultsFilters");d.RocheDialogo.Components.ResultsFilters=new d.Class;d.RocheDialogo.Components.ResultsFilters.include({init:function(b){this.$component=b;this.bindData();this.bindDom();this.bindEvents()},bindDom:function(){this.$container=a(".dialogo-search-filters__filters",this.$component);this.$filtersContainer=a(".search-wrapper__filters-list");this.$appliedFilters=a();this.$deleteFiltersBtn=a(".dialogo-search-filters__delete-btn",this.$component)},
271bindData:function(){this.imgurl="/etc.clientlibs/roche-dialogo/clientlibs/site/resources/images/";this.url=d.RocheDialogo.Utils.Url.getCurrentPageParams()},bindEvents:function(){var b=this;this.$deleteFiltersBtn.on("click",function(){b.deleteFilters()});this.getItems();d.RocheDialogo.Utils.Search.registerObserver(this,function(c){b.setAppliedFilters(c)})},getItems:function(){var b=this;axios.get(this.url+".get-filters.json").then(function(c){b.generateFilterItems(c)}).catch(function(c){b.DEBUG&&(c.response? 272(console.error(c.response.data),console.error(c.response.status),console.error(c.response.headers)):c.request?console.error(c.request):console.error("Error",c.message),console.error(c.config))})},generateFilterItems:function(b){var c=this;a.each(b.data,function(e,f){var g="";g+='\x3cdiv data-toggle\x3d"collapse" class\x3d"dialogo-search-filters__filter collapsed"\x3e';g+='\x3cdiv class\x3d"dialogo-search-filters__tab"\x3e';g+='\x3cdiv class\x3d"dialogo-search-filters__name look-body"\x3e '+f.label; 273g+="\x3c/div\x3e";g+='\x3cdiv class\x3d"dialogo-search-filters__icons"\x3e';g+='\x3cimg class\x3d"dialogo-search-filters__icon open-icon" src\x3d"'+c.imgurl+'more-icon.svg" alt\x3d"more-icon"\x3e';g+='\x3cimg class\x3d"dialogo-search-filters__icon close-icon" src\x3d"'+c.imgurl+'minus-icon.svg" alt\x3d"minus-icon"\x3e';g+="\x3c/div\x3e";g+="\x3c/div\x3e";g+='\x3cdiv class\x3d"dialogo-search-filters__items collapse"\x3e';a.each(f.filterOptions,function(k,l){g+='\x3clabel class\x3d"dialogo-check-button dialogo-search-filters__item searchFilters__taxonomy--item"\x3e'; 274g+='\x3cdiv class\x3d"dialogo-check-button__input-container"\x3e';g+='\x3cinput class\x3d"dialogo-check-button__input" type\x3d"checkbox" id\x3d"'+l[0]+'" name\x3d"'+l[1]+'" value\x3d"'+l[0]+'"\x3e';g+="\x3c/div\x3e";g+='\x3cdiv class\x3d"dialogo-check-button__label-container"\x3e';g+='\x3cspan class\x3d"dialogo-check-button__label look-body"\x3e'+l[1]+"\x3c/span\x3e";g+="\x3c/div\x3e";g+="\x3c/label\x3e"});g+="\x3c/div\x3e";g+="\x3c/div\x3e";c.$container.append(g);c.$appliedFilters=a(".dialogo-search-filters__item input", 275c.$component);c.$filtersList=a(".dialogo-search-filters__tab",c.$container);c.$filtersList.off("click").on("click",function(k){k=a(k.currentTarget);var l=k.closest(".dialogo-search-filters__filter").find(".dialogo-search-filters__items");c.$filtersList.not(k).closest(".dialogo-search-filters__filter").find(".dialogo-search-filters__items").slideUp(function(){a(this).closest(".dialogo-search-filters__filter").addClass("collapsed")});l.slideToggle(function(){a(this).closest(".dialogo-search-filters__filter").toggleClass("collapsed")})}); 276c.$appliedFilters.on("change",function(){var k=d.RocheDialogo.Utils.Search.getActiveFilters();d.RocheDialogo.Utils.Search.doSearchWParam("filters",k)})});this.setAppliedFilters()},setAppliedFilters:function(){for(var b=this,c=d.RocheDialogo.Utils.Search.getActiveFilters(),e="",f=0;f<c.length;f++){var g=c[f].replace("/","\\/").replace(":","\\:");g=a("#"+g).attr("name");e+='\n \x3cspan class\x3d"dialogo-filter-tag search-wrapper__filter" data-filter-id\x3d"'+c[f]+'"\x3e\n \x3cspan class\x3d"dialogo-filter-tag__label"\x3e'+ 277g+'\x3c/span\x3e\n \x3cspan class\x3d"dialogo-filter-tag__icon"\x3e\x3c/span\x3e\n \x3c/span\x3e\n '}this.$filtersContainer.html(e);a(".search-wrapper__filter",this.$filtersContainer).click(function(k){b.deleteOneFilter(k.currentTarget)})},deleteFilters:function(){a(".dialogo-search-filters__item input",this.$component).prop("checked",!1);this.$filtersContainer.empty();d.RocheDialogo.Utils.Search.doSearchWParam("filters",[])},deleteOneFilter:function(b){var c=a(b).data("filter-id").replace("/", 278"\\/").replace(":","\\:");a(b).remove();a("#"+c,this.$component).prop("checked",!1);b=d.RocheDialogo.Utils.Search.getActiveFilters();0===b.length&&this.$filtersContainer.empty();d.RocheDialogo.Utils.Search.doSearchWParam("filters",b)}})})(AEM,$);var resultsFiltersInit=function(d){new AEM.RocheDialogo.Components.ResultsFilters($(d))}; 279$(document).ready(function(){if(window.ContextHub&&ContextHub.SegmentEngine)ContextHub.eventing.on(ContextHub.Constants.EVENT_TEASER_LOADED,function(a,b){b.data.forEach(function(c){c=$("#"+c.key).children().children();c.hasClass("search-wrapper")&&resultsFiltersInit(c.find(".dialogo-search-filters__wrapper")[0])})});var d=$(".dialogo-search-filters__wrapper");d.length&&$.each(d,function(){resultsFiltersInit(this)})}); 280(function(d,a){d.namespace(d,"RocheDialogo.Components.ResultsSorting");d.RocheDialogo.Components.ResultsSorting=new d.Class;d.RocheDialogo.Components.ResultsSorting.include({init:function(b){this.$component=b;this.bindDom();this.bindEvents();this.$dropdownItem.parents(".campaign").length&&this.bindEventsWhenTargeting()},bindDom:function(){this.$dropdown=a(".search-wrapper__dropdown",this.$component);this.$dropdownBtn=a(".js-dropdown-toggle",this.$component);this.$dropdownBtnLabel=a(".search-wrapper__dropdown-sort-label", 281this.$component);this.$dropdownItem=a(".js-dropdown-item",this.$component)},bindEvents:function(){var b=this;this.$dropdownBtn.on("click",function(){b.$dropdown.toggleClass("show")});a(document).on("click",function(c){var e=a(c.target);c=!e.closest(".search-wrapper__dropdown").length&&!e.is(".js-dropdown-toggle");e=e.is(".search-wrapper__dropdown-item");(c||e)&&b.$dropdown.removeClass("show")});this.$dropdownItem.click(function(c){c=a(c.currentTarget);var e=c.data("sorting");b.$dropdownBtnLabel.html(c.text()); 282d.RocheDialogo.Utils.Search.doSearchWParam("sorting",e)})},populateHeader:function(b){0<b.data.results.length?this.$SearchTerm.text(b.data.searchTerm):(this.$Intro.text(this.noresultsIntro),this.$SearchTerm.text(this.noresultsSearchterm))},bindEventsWhenTargeting:function(){var b=!1;
282a("body").click(function(){b||(a(".js-dropdown-item").click(function(){var c=a(this).data("sorting");a(this).parent().siblings().html(a(this).text());d.RocheDialogo.Utils.Search.doSearchWParam("sorting",c)}),b=!0)})}})})(AEM, 283$);var resultsSortingInit=function(d){new AEM.RocheDialogo.Components.ResultsSorting($(d));AEM.RocheDialogo.Utils.BookmarkAction.nextTickHelper($(".search-wrapper__cards"))}; 284$(document).ready(function(){if(window.ContextHub&&ContextHub.SegmentEngine)ContextHub.eventing.on(ContextHub.Constants.EVENT_TEASER_LOADED,function(a,b){b.data.forEach(function(c){c=$("#"+c.key).children().children();c.hasClass("search-wrapper")&&resultsSortingInit(c.find(".search__orderby")[0])})});var d=$(".search__orderby");d.length&&$.each(d,function(){resultsSortingInit(this)})}); 285(function(d,a){d.namespace(d,"RocheDialogo.Components.ResultsPages");d.RocheDialogo.Components.ResultsPages=new d.Class;d.RocheDialogo.Components.ResultsPages.include({init:function(b){this.$component=b;this.$linksbar=a(".resultsPane__pages--linksBar",this.$component);this.label=this.$component.data("pages-reading");this.getI18n();this.bindDom();this.bindEvents();this.handleMobileWrapper();this.checkHeroOnPage()},bindDom:function(){this.$wrapper=a(".dialogo-search-filters");this.$mobileOpenFiltersButton= 286this.$wrapper.find(".dialogo-search-filters__top-panel--mobile");this.$mobileCloseFiltersButton=this.$mobileOpenFiltersButton.find(".dialogo-search-filters__close-btn")},bindEvents:function(){var b=this;d.RocheDialogo.Utils.Search.registerObserver(this,function(c){b.populatePagination(c)});a(window).on("resize",function(){b.handleMobileWrapper()});this.$mobileOpenFiltersButton.on("click",function(){b.$wrapper.addClass("opened");a("body,html").css("overflow","hidden")});this.$mobileCloseFiltersButton.on("click", 287function(c){b.$wrapper.removeClass("opened");a("body,html").css("overflow","auto");c.stopPropagation()})},checkHeroOnPage:function(){0<a(document).find(".hero,.hero-embedded,.hero-banner").length&&this.$component.closest(".search-wrapper").addClass("search-container--with-hero")},handleMobileWrapper:function(){1300<window.innerWidth&&(this.$wrapper.removeClass("opened"),a("body,html").css("overflow","auto"))},i18n:{},getI18n:function(){var b=document.querySelector(".searchPaginationI18n");b&&(this.i18n= 288JSON.parse(b.textContent))},populatePagination:function(b){var c=this,e=b.data.limit,f=Math.ceil(Number(b.data.totalResults)/e);if(b.data.totalResults>e&&0<f){var g=Math.floor(b.data.offset/e+1),k=function(h){return"/etc.clientlibs/roche-dialogo/clientlibs/site/resources/new-look/fi-rs-angle-small-"+h+".svg"};var l="\x3cli class\x3d'page-item "+(1===g?"disabled":"")+"'\x3e\x3ca href\x3d'#' data-offset\x3d"+(b.data.offset-e+"\x3e");l+='\x3cimg class\x3d"dialogo-carousel__arrow--mobile dialogo-carousel__arrow--prev" src\x3d"'+ 289k("left")+'" alt\x3d"left arrow"\x3e';l=a(l+"\x3c/a\x3e\x3c/li\x3e");b="\x3cli class\x3d'page-item "+(g===f?"disabled":"")+"'\x3e\x3ca href\x3d'#' data-offset\x3d"+(b.data.offset+e+"\x3e");b+='\x3cimg class\x3d"dialogo-carousel__arrow--mobile dialogo-carousel__arrow--next" src\x3d"'+k("right")+'" alt\x3d"right arrow"\x3e';k=a(b+"\x3c/a\x3e\x3c/li\x3e");c.$linksbar.empty();c.$linksbar.append(l);l=function(h,m){h=a('\n \x3cli class\x3d"page-item"\x3e\n \x3ca class\x3d"dialogo-carousel__counter-item newlook look-body '+ 290((void 0===m?0:m)?"active":"")+'" href\x3d"#" data-offset\x3d"'+(1===h?1:(h-1)*e)+'"\x3e\n '+h+'\n \x3c/a\x3e\n \x3c/li\x3e"');c.$linksbar.append(h)};l(1,1===g);1<g-2&&c.$linksbar.append('\x3cdiv class\x3d"dots dialogo-carousel__counter-dots newlook look-body"\x3e...\x3c/div\x3e');1<g-1&&l(g-1);1!==g&&g!==f&&l(g,!0);g+1<f&&l(g+1);g+2<f&&c.$linksbar.append('\x3cdiv class\x3d"dots dialogo-carousel__counter-dots newlook look-body"\x3e...\x3c/div\x3e');1<f&&l(f, 291g===f);c.$linksbar.append(k);a(".resultsPane__pages--linksBar .page-item a",c.$component).on("click",function(h){var m=a(h.currentTarget);m.parent().hasClass("disabled")||(m=m.data("offset"),1===m&&(m=0),d.RocheDialogo.Utils.Search.doSearchWParam("offset",m),a("html, body").stop().animate({scrollTop:a(".search-wrapper__container").offset().top},300));h.preventDefault()})}else c.$linksbar.empty()}})})(AEM,$);var resultsPageInit=function(d){new AEM.RocheDialogo.Components.ResultsPages($(d))}; 292$(document).ready(function(){if(window.ContextHub&&ContextHub.SegmentEngine)ContextHub.eventing.on(ContextHub.Constants.EVENT_TEASER_LOADED,function(a,b){b.data.forEach(function(c){c=$("#"+c.key).children().children();c.hasClass("search-wrapper")&&(c=c.find(".resultsPane__pages"),$.each(c,function(){resultsPageInit(this)}))})});var d=$(".resultsPane__pages");d.length&&$.each(d,function(){resultsPageInit(this)})}); 293(function(d,a){d.namespace(d,"RocheDialogo.Components.SearchFilterTabs");d.RocheDialogo.Components.SearchFilterTabs=new d.Class;d.RocheDialogo.Components.SearchFilterTabs.include({init:function(b){this.$Component=b;this.$ApplyFilters=a(".nav-item",this.$Component);this.bindEvents()},bindEvents:function(){var b=this;b.$ApplyFilters.click(function(){b.$ApplyFilters.removeClass("active");a(this).addClass("active");var c=a(this).data("type"),e=d.RocheDialogo.Utils.Search.getActiveFilters();d.RocheDialogo.Utils.Search.doSearchWParam("tab", 294e,c)});d.RocheDialogo.Utils.Search.registerObserver(b,function(c){b.setDisable(c)})},setDisable:function(b){var c=sessionStorage.getItem("searchType");var e=sessionStorage.getItem("selectedTab");this.$ApplyFilters.prop("disabled",!0).removeClass("active");if(0<b.data.results.length)for(a('.nav-item[data-type\x3d"all"]',this.$Component).prop("disabled",!1),c&&"tab"===c?c=JSON.parse(sessionStorage.getItem("tabsActivos")):(c=b.data.groups,sessionStorage.setItem("tabsActivos",JSON.stringify(b.data.groups))), 2950<e.length?(e=e.replace("/","\\/").replace(":","\\:"),a('.nav-item[data-type\x3d"'+e+'"]').addClass("active")):a('.nav-item[data-type\x3d"all"]',this.$Component).addClass("active"),b=0;b<c.length;b++)a('.nav-item[data-type\x3d"'+c[b].tagId+'"]',this.$Component).prop("disabled",!1)}})})(AEM,$);var resultsTabsInit=function(d){new AEM.RocheDialogo.Components.SearchFilterTabs($(d))}; 296$(document).ready(function(){if(window.ContextHub&&ContextHub.SegmentEngine)ContextHub.eventing.on(ContextHub.Constants.EVENT_TEASER_LOADED,function(a,b){b.data.forEach(function(c){c=$("#"+c.key).children().children();c.hasClass("search-wrapper")&&resultsTabsInit(c.find(".searchFilterTabs")[0])})});var d=$(".searchFilterTabs");d.length&&$.each(d,function(){resultsTabsInit(this)})}); 297(function(d,a){d.namespace(d,"RocheDialogo.Components.Sharing");d.RocheDialogo.Components.Sharing=new d.Class;d.RocheDialogo.Components.Sharing.include({init:function(b){this.component=b;this.DOMElements={};this.FACEBOOK_API="https://www.facebook.com/sharer/sharer.php";this.TWITTER_API="https://twitter.com/intent/tweet";this.LINKEDIN_API="https://www.linkedin.com/shareArticle";
297this.WHATSAPP_API="https://api.whatsapp.com/send";this.cacheDOMElements();this.bindEvents()},cacheDOMElements:function(){this.facebookButton= 298this.component.querySelector(".dialogo-sharing-modal__button--facebook");this.linkedinButton=this.component.querySelector(".dialogo-sharing-modal__button--linkedin");this.twitterButton=this.component.querySelector(".dialogo-sharing-modal__button--twitter");this.whatsappButton=this.component.querySelector(".dialogo-sharing-modal__button--whatsapp");this.copyButton=this.component.querySelector(".dialogo-sharing-modal__button--copy");this.copyMessage=this.component.querySelector(".dialogo-sharing-modal__copy-message"); 299this.closeButton=this.component.querySelector(".dialogo-sharing-modal__close");this.modalContent=this.component.querySelector(".dialogo-sharing-modal__content");this.sharingEmailButton=this.component.querySelector(".dialogo-sharing-modal__button--email");this.modalContentEmail=this.component.querySelector(".dialogo-sharing-modal__email-form");this.sendEmailButton=this.component.querySelector(".dialogo-sharing-modal__send-email-button");this.modalSharingBackButton=this.component.querySelector(".dialogo-sharing-modal__go-back-button"); 300this.emailToInput=this.component.querySelector(".dialogo-sharing-modal__email-form__input-email-to");this.messageInput=this.component.querySelector(".dialogo-sharing-modal__email-form__input-message");this.inputErrorEmpty=this.component.querySelector(".dialogo-sharing-modal__email-form__error--empty");this.inputErrorNoEmail=this.component.querySelector(".dialogo-sharing-modal__email-form__error--no-email");this.inputErrorEmptyMessage=this.component.querySelector(".dialogo-sharing-modal__email-form__error--no-message")}, 301bindEvents:function(){var b=this;this.handleFacebook();this.handleLinkedIn();this.handleTwitter();this.handleWhatsapp();this.handleCopying();this.handleBackButton();this.handleModalClosing();this.component.addEventListener("modal-open",function(){b.openModal()})},showNoEmailError:function(){this.inputErrorNoEmail.classList.add("dialogo-form__input-error--is-visible")},showEmptyError:function(){this.inputErrorEmpty.classList.add("dialogo-form__input-error--is-visible")},showEmptyMessageError:function(){this.inputErrorEmptyMessage.classList.add("dialogo-form__input-error--is-visible")}, 302hideNoEmailError:function(){this.inputErrorNoEmail.classList.remove("dialogo-form__input-error--is-visible")},hideEmptyError:function(){this.inputErrorEmpty.classList.remove("dialogo-form__input-error--is-visible")},hideEmptyMessageError:function(){this.inputErrorEmptyMessage.classList.remove("dialogo-form__input-error--is-visible")},isEmailValid:function(){var b=!1,c=this.emailToInput.value;""===c?(this.showEmptyError(),this.hideNoEmailError(),this.addErrorClass(this.emailToInput)):c.match(/^([\w.%+-]+)@([\w-]+\.)+([\w]{2,})$/iu)? 303(this.hideNoEmailError(),this.hideEmptyError(),this.removeErrorClass(this.emailToInput),b=!0):(this.showNoEmailError(),this.hideEmptyError(),this.addErrorClass(this.emailToInput));return b},isMessageNotEmpty:function(){var b=!1,c=this.messageInput.value;c&&""!==c.trim()?(this.hideEmptyMessageError(),this.removeErrorClass(this.messageInput),b=!0):(this.showEmptyMessageError(),this.addErrorClass(this.messageInput));return b},addErrorClass:function(b){b.classList.add("dialogo-form__input--is-invalid")}, 304removeErrorClass:function(b){b.classList.remove("dialogo-form__input--is-invalid")},hideContent:function(){this.modalContent.classList.add("dialogo-sharing-modal__content--is-hidden")},showContent:function(){this.modalContent.classList.remove("dialogo-sharing-modal__content--is-hidden")},showEmailForm:function(){this.modalContentEmail.classList.remove("dialogo-sharing-modal__content--is-hidden")},hideEmailForm:function(){this.modalContentEmail.classList.add("dialogo-sharing-modal__content--is-hidden")}, 305handleShareEmail:function(){var b=this,c=document.documentElement.lang;2<c.length&&(c=c.split("-")[0]);this.emailToInput.addEventListener("change",function(){b.isEmailValid()});this.messageInput.addEventListener("change",function(){b.isMessageNotEmpty()});this.sharingEmailButton.addEventListener("click",function(e){e.preventDefault();b.hideContent();b.showEmailForm();b.setDigitalData()});this.sendEmailButton.addEventListener("click",function(e){e.preventDefault();var f=b.emailToInput.value;e=b.messageInput.value; 306var g=b.isEmailValid(),k=b.isMessageNotEmpty();g&&k&&(g=encodeURI(b.component.dataset.shareUrl),k=encodeURI(b.component.dataset.shareTitle),f=window.btoa(f),e="/bin/roche/dialogo/email/share?articleUrl\x3d"+g+"\x26articleTitle\x3d"+k+"\x26emailMessage\x3d"+e+"\x26emailTo\x3d"+f+"\x26locale\x3d"+c,digitalData.page.attributes.formInfo.formProgress.isSubmitted=!0,b.makeAxiosCall(e))})},makeAxiosCall:function(b){var c=this,e=this.component.dataset.emailSentSuccess,f=this.component.dataset.emailSentFailure; 307axios.get(b).then(function(){(new Toastify({text:e,gravity:"top",position:"center",backgroundColor:"rgb(167, 49, 173)",className:"notification",duration:3E3})).showToast();digitalData.page.attributes.formInfo.formProgress.isConfirmed=!0;digitalData.page.attributes.formInfo.formProgress.isError=!1}
307).catch(function(g){(new Toastify({text:f,gravity:"top",position:"center",backgroundColor:"rgb(229, 29, 69)",className:"notification",duration:3E3})).showToast();c.DEBUG&&(g.response?(console.error(g.response.data), 308console.error(g.response.status),console.error(g.response.headers)):g.request?console.error(g.request):console.error("Error",g.message),console.error(g.config));digitalData.page.attributes.formInfo.formProgress.isConfirmed=!1;digitalData.page.attributes.formInfo.formProgress.isError=!0}).finally(this.closeModal.bind(this))},resetForms:function(){this.emailToInput.value="";this.messageInput.value="";this.removeErrorClass(this.emailToInput);this.removeErrorClass(this.messageInput);this.hideEmailForm(); 309this.showContent();this.hideEmptyError();this.hideNoEmailError();this.hideEmptyMessageError()},openModal:function(){this.component.classList.remove("dialogo-modal--is-hidden");this.component.setAttribute("tabindex","0");this.component.setAttribute("aria-hidden","false");this.component.removeAttribute("inert");this.component.focus();document.body.classList.add("modal-open");this.isOpen=!0},closeModal:function(){this.resetForms();this.component.classList.add("dialogo-modal--is-hidden");this.component.setAttribute("tabindex", 310"-1");this.component.setAttribute("aria-hidden","true");this.component.setAttribute("inert","");d.RocheDialogo.Utils.DigitalDataInterface.setInitialStatus();d.RocheDialogo.Utils.DigitalDataInterface.setStatusComplete();document.body.classList.remove("modal-open");this.isOpen=!1},handleBackButton:function(){var b=this;this.modalSharingBackButton.addEventListener("click",function(c){c.preventDefault();b.showContent();b.hideEmailForm();b.resetForms();d.RocheDialogo.Utils.DigitalDataInterface.setInitialStatus(); 311d.RocheDialogo.Utils.DigitalDataInterface.setStatusComplete()})},setDigitalData:function(){d.RocheDialogo.Utils.DigitalDataInterface.setInitialStatus();var b=this.component.dataset.shareTitle;d.RocheDialogo.Utils.DigitalDataInterface.setPageType(d.RocheDialogo.Utils.Constants.ANALYTICS.ROCHE_DIALOGO_FORM_PAGE_TYPE);digitalData.page.pageInfo.pageName=b+" - email share";digitalData.page.attributes.formInfo.formName="emailSharing";digitalData.page.attributes.formInfo.formProgress.totalSteps=1;digitalData.page.attributes.formInfo.formProgress.step= 3121;d.RocheDialogo.Utils.DigitalDataInterface.setStatusComplete()},handleModalClosing:function(){var b=this;this.closeButton.addEventListener("click",function(c){c.preventDefault();b.closeModal()})},handleLink:function(b,c,e){b&&b.addEventListener("click",function(f){f.preventDefault();e&&device.ios()&&/CriOS/u.test(navigator.userAgent)?window.location.assign(c(b)):window.open(c(b),"_blank","location\x3dyes,height\x3d570,width\x3d520,scrollbars\x3dyes,status\x3dyes")})},handleFacebook:function(){var b= 313this;this.handleLink(this.facebookButton,function(){var c=encodeURI(b.component.dataset.shareUrl);return b.FACEBOOK_API+"?u\x3d"+c})},handleTwitter:function(){var b=this;this.handleLink(this.twitterButton,function(){var c=encodeURI(b.component.dataset.shareUrl),e=encodeURI(b.component.dataset.shareTitle),f=document.getElementById("sharing-modal");f=(f=f?f.dataset.twitterText:"")?encodeURI(f):"";return b.TWITTER_API+"?url\x3d"+c+"\x26text\x3d"+e+"%0A"+f})},handleLinkedIn:function(){var b=this;this.handleLink(this.linkedinButton, 314function(){var c=encodeURI(b.component.dataset.shareUrl),e=encodeURI(b.component.dataset.shareTitle),f=encodeURI(b.component.dataset.shareDesc);return b.LINKEDIN_API+"?mini\x3dtrue\x26url\x3d"+c+"\x26title\x3d"+e+"\x26summary\x3d"+f+"\x26source\x3d'"})},handleWhatsapp:function(){var b=this;this.handleLink(this.whatsappButton,function(){var c=encodeURIComponent(b.component.dataset.shareUrl),e=encodeURIComponent(b.component.dataset.shareDesc);e="undefined"!==e?e+"%0A":"";var f=document.getElementById("sharing-modal"); 315f=(f=f?f.dataset.whatsappText:"")?encodeURI(f):"";return b.WHATSAPP_API+"?text\x3d"+e+f+" "+c},!0)},handleCopying:function(){var b=this;this.copyButton&&this.copyButton.addEventListener("click",function(c){c.preventDefault();c=encodeURI(b.component.dataset.shareUrl);navigator.clipboard&&navigator.clipboard.writeText(c).then(function(){b.showCopiedText()},function(){console.error("Unable to copy")})})},showCopiedText:function(){var b=this.copyMessage?this.copyMessage.innerText.trim():"Link copiado"; 316(new Toastify({text:b,gravity:"top",position:"center",backgroundColor:"rgb(167, 49, 173)",className:"notification",duration:3E3})).showToast()}});a(function(){document.querySelectorAll(".dialogo-sharing-modal").forEach(function(b){new d.RocheDialogo.Components.Sharing(b)})})})(AEM,$); 317(function(d){d.namespace(d,"AEM.RocheDialogo.Utils.SharingButton");d.RocheDialogo.Utils.SharingButton=new d.Class;d.RocheDialogo.Utils.SharingButton.extend({init:function(){this.shareDesc=this.shareTitle=this.shareUrl="";this.bindButton()},bindButton:function(){var a=this;document.body.addEventListener("click",function(b){if(b.target.classList.contains("dialogo-sharing-button"))a.onClick(b)})},openModal:function(){var a=new CustomEvent("modal-open");if(this.sharingModal=document.getElementById("sharing-modal"))this.setData(), 318this.sharingModal.dispatchEvent(a)},setData:function(){this.shareUrl=this.dataSource.dataset.shareUrl;this.sharingModal.dataset.shareUrl=this.shareUrl;this.sharingModal.dataset.shareTitle=this.dataSource.dataset.shareTitle;this.sharingModal.dataset.shareDesc=this.dataSource.dataset.shareDesc},onClick:function(a){var b=this;a.preventDefault();this.dataSource=a.target.parentElement;this.openModal();this.sharingModal.querySelectorAll(".dialogo-sharing-modal__sharing-button").forEach(function(c){c.dataset.analyticsLinkShare= 319b.shareTitle})}});d.RocheDialogo.Utils.SharingButton.init()})(AEM); 320(function(d,a){d.namespace(d,"RocheDialogo.Components.Article");d.RocheDialogo.Components.Article=new d.Class;d.RocheDialogo.Components.Article.include({init:function(b){this.DEBUG=d.RocheDialogo.Utils.Constants.DEBUG;this.$Component=b;this.$Authors=a(".author__name",this.$Component);this.$Authors.length&&a(".collapse-item",this.$Authors).detach().appendTo("#author__name_collapse-list");this.bindEvents();d.RocheDialogo.Utils.PageViewed.markViewed()},bindEvents:function(){var b=a(".article__external-actions", 321this.$Component),c=a(".article__introduction",this.$Component),e=c.offset().top+c.height(),f=a(".articles-citation",this.$Component).last();f=0<f.length?f.offset().top+f.height():0;var g=a(".roche-rte",this.$Component).last();g=0<g.length?g.offset().top+g.height():0;c=parseInt(c.css("margin-top").replace(/[^-\d\.]/gu,""),10);var k=Math.max(f,g);k+=c-b.height();b.fadeOut();a(window).on("scroll",function(){var l=a(this).scrollTop();l>e&&l<k?b.fadeIn():b.fadeOut()})}});a(function(){var b=a(".articlepage"); 322b.length&&a.each(b,function(){new d.RocheDialogo.Components.Article(a(this))})})})(AEM,$); 323var calculatorsListInit=function(d){new Vue({el:d,data:function(){return{calculators:[],calculatorsAutocomplete:[],searchQuery:"",resourcePath:""}},mounted:function(){var a=this,b,c,e,f,g;return $jscomp.asyncExecutePromiseGeneratorProgram(function(k){if(1==k.nextAddress)return a.resourcePath=a.$el.dataset.bookmarkResource,b=AEM.RocheDialogo.Utils.Url.getCurrentPageParams(),c="",e=0<document.querySelectorAll("[data-bookmark-disable]").length,window.ContextHub&&ContextHub.SegmentEngine&&(f=ContextHub.SegmentEngine.getResolvedSegments()[0]? 324ContextHub.SegmentEngine.getResolvedSegments()[0].path:"",g=a.$el.dataset.location,c="?segmentPath\x3d"+f+"\x26location\x3d"+g),k.yield(axios.get(b+".calculators-feed.json"+c).then(function(l){a.calculators=l.data;
324a.calculators.forEach(function(h){h.disableBookmark=e});a.setAutocompleteData()}).finally(function(){a.$el.classList.add("dialogo-calculators-list--is-initialized")}),2);a.bindAutocomplete();a.bindSearchField();k.jumpToEnd()})},methods:{setAutocompleteData:function(){var a=this;this.calculators.forEach(function(b){a.calculatorsAutocomplete.push({label:b.specialty? 325b.specialty.title+" "+b.title:b.title,value:b.title,url:b.url})})},bindAutocomplete:function(){new AEM.RocheDialogo.Utils.DialogoAutoComplete(this.$el,this.calculatorsAutocomplete)},bindSearchField:function(){new AEM.RocheDialogo.Utils.DialogoSearchField(this.$el.querySelector(".dialogo-search-field"))}},computed:{resultQuery:function(){var a=this;return 1<this.searchQuery.length?this.calculators.filter(function(b){return a.searchQuery.toLowerCase().split(" ").every(function(c){return b.specialty&& 326b.specialty.title.toLowerCase().includes(c)||b.title.toLowerCase().includes(c)})}):this.calculators.sort(function(b,c){return c.pinned-b.pinned})}},updated:function(){this.$nextTick(function(){AEM.RocheDialogo.Utils.BookmarkAction.nextTickHelper($(this.$el))})}})}; 327(function(d){"loading"!==document.readyState?d():document.addEventListener("DOMContentLoaded",d)})(function(){var d=document.querySelectorAll(".dialogo-calculators-list");d.length&&d.forEach(function(a){return calculatorsListInit(a)});if(window.ContextHub&&ContextHub.SegmentEngine)ContextHub.eventing.on(ContextHub.Constants.EVENT_TEASER_LOADED,function(a,b){b.data.forEach(function(c){(c=document.getElementById(c.key))&&c.querySelectorAll(".dialogo-calculators-list").forEach(function(e){return calculatorsListInit(e)})})})}); 328$(function(){var d=$(".calculator-sidelist");d.length&&$.each(d,function(){new Vue({el:this,data:function(){return{items:[]}},mounted:function(){var a=this,b,c;return $jscomp.asyncExecutePromiseGeneratorProgram(function(e){if(1==e.nextAddress)return b=a,b.$Component=$(b.$el),c=AEM.RocheDialogo.Utils.Url.getCurrentPageParams(),new $.Deferred,e.yield(axios.get(c+".siblings.json").then(function(f){b.items=f.data;b.setPrevNext()}),2);b.$Component.show();b.$nextTick(function(){b.setMobileDrop()});AEM.RocheDialogo.Utils.PageViewed.markViewed(); 329e.jumpToEnd()})},methods:{setPrevNext:function(){var a=this.items.find(function(c){return!0===c.next}),b=this.items.find(function(c){return!0===c.previous});a&&a.url?$(".calculators__navs .nav-item--next").attr("href",a.url):$(".calculators__navs .nav-item--next").hide();b&&b.url?$(".calculators__navs .nav-item--prev").attr("href",b.url):$(".calculators__navs .nav-item--prev").hide()},setMobileDrop:function(){var a=$(".calculator-sidelist .mobile-wrapper").html();$(".calc-sidelist-drop-js").html(a)}}})})}); 330(function(d){d.namespace(d,"AEM.RocheDialogo.Utils.CalendarButton");d.RocheDialogo.Utils.CalendarButton=new d.Class;d.RocheDialogo.Utils.CalendarButton.extend({init:function(){var a=this;this.calText=this.location=this.description=this.title=this.timezone=this.endTime=this.endDate=this.startTime=this.startDate=this.calSingle="";setTimeout(function(){a.bindSlyButton();a.checkIfPastEventSly()},1E3)},checkIfPastEventSly:function(){var a=$(".js-calendar-button-sly").parent(),b=a.data("calendar-start-time"), 331c=a.data("calendar-end-time"),e=a.data("calendar-start-date"),f=a.data("calendar-end-date");b=d.RocheDialogo.Utils.EventUtils.getEventStatus(b,c,e,f);"past"!==b&&""!==b||a.hide()},bindSlyButton:function(){var a=this;$(".js-calendar-button-sly").click(function(b){a.calendarButtonClick(b)});$("#addevent-outlook, #addevent-appleical").click(function(b){a.icsDownload(b)})},formatDate:function(a){var b=new Date(a);a=String(b.getDate()).padStart(2,"0");var c=String(b.getMonth()+1).padStart(2,"0");b=b.getFullYear(); 332return c+"/"+a+"/"+b},formatHour:function(a){var b=new Date(a);a=String(b.getHours()).padStart(2,"0");b=String(b.getMinutes()).padStart(2,"0");return a+":"+b},calendarButtonClick:function(a){a.preventDefault();a=$(a.currentTarget).parent();var b=a[0].baseURI;this.startDate=this.formatDate(a.data("calendar-start-date"));this.startTime=this.formatHour(a.data("calendar-start-time"));this.endDate=this.formatDate(a.data("calendar-end-date"));this.endTime=this.formatHour(a.data("calendar-end-time"));this.timezone= 333a.data("calendar-timezone");this.title=a.data("calendar-title");this.calText=a.data("calendar-button-text");var c=this.startDate+" "+this.startTime,e=this.endDate+" "+this.endTime;"undefined"===typeof this.calText&&(this.calText="Link para la p\u00e1gina del evento");this.description=(a.data("calendar-description")?a.data("calendar-description")+" ":"")+this.calText+": "+b;this.location=a.data("calendar-location");this.calSingle=ics();this.calSingle.addEvent(this.title,this.description,this.location, 334c,e);a=this.startDate.substring(6,10);b=this.startDate.substring(0,2);c=this.startDate.substring(3,5);e=this.startTime.split(":").join("")+"00";var f=this.endDate.substring(6,10),g=this.endDate.substring(0,2),k=this.endDate.substring(3,5),l=this.endTime.split(":").join("")+"00";a="https://calendar.google.com/calendar/event?action\x3dTEMPLATE\x26dates\x3d"
334+a+b+c+"T"+e+"/"+f+g+k+"T"+l+"\x26text\x3d"+this.title.split(" ").join("+")+"\x26details\x3d"+this.description.split(" ").join("+");$("#addevent-google").attr("href", 335a)},icsDownload:function(a){a.preventDefault();this.calSingle.download(this.title)}});d.RocheDialogo.Utils.CalendarButton.init()})(AEM); 336(function(d,a){d.namespace(d,"RocheDialogo.Components.Event");d.RocheDialogo.Components.Event=new d.Class;d.RocheDialogo.Components.Event.include({init:function(b){this.$component=b;this.$eventComponent=a(".events__detail",this.$component);this.$tabContent=a(".tab-content-vertical--event",this.$component);this.bindEvents();this.setSelectedTab();d.RocheDialogo.Utils.PageViewed.markViewed()},bindEvents:function(){this.bindShareURL();this.bindEventsTabsStripsClick()},bindShareURL:function(){a(".event-share-btn-js", 337this.$component).attr("data-share-url",window.location.href)},bindEventsTabsStripsClick:function(){var b=this,c=a(".events-nav__list-item-page",this.$eventComponent),e=a(".dropdown-link-page",this.$eventComponent);c.click(function(f){f.preventDefault();b.treatTabClick(f.target)});e.click(function(f){f.preventDefault();b.treatTabClick(f.target)})},treatTabClick:function(b){var c=a(b),e=c.data("url-id"),f=a(".dropdown-no-title",this.$eventComponent).find("span"),g=a(".events-nav__list-item-page.selected", 338this.$eventComponent),k=a(".dropdown-link-page.selected",this.$eventComponent),l=a(".events-nav__list-item-page[data-url-id\x3d"+e+"]",this.$eventComponent);e=a(".dropdown-link-page[data-url-id\x3d"+e+"]",this.$eventComponent);this.activeTabId=c.data("content-id");f.text(b.innerText);a(".tab-content-vertical--event.selected",this.$component).removeClass("selected");g.removeClass("selected");g.children().first().removeClass("look-regular");k.removeClass("selected look-regular");l.addClass("selected"); 339l.children().first().addClass("look-regular");e.addClass("selected look-regular");a("#"+this.activeTabId,this.$component).addClass("selected");d.RocheDialogo.Utils.TabUrlActions.handleUrlUpdate(c)},setSelectedTab:function(){var b=a(".events-nav__list-item-page",this.$component),c=b.data("content-id"),e=a(".dropdown-link-page",this.$component),f=a(".dropdown-no-title",this.$component).find("span");if(0<b.length||0<e.length)f.text(b.first()[0].innerText),b.first().addClass("selected look-regular"), 340b.first().children().first().addClass("look-regular"),e.first().addClass("selected look-regular"),a("#"+c,this.$component).first().addClass("selected look-regular")}});a(function(){var b=a(".eventpage");b.length&&a.each(b,function(){new d.RocheDialogo.Components.Event(a(this))})})})(AEM,$); 341(function(d,a){d.namespace(d,"RocheDialogo.Components.Speakers");d.RocheDialogo.Components.Speakers=new d.Class;d.RocheDialogo.Components.Speakers.include({init:function(b){this.DEBUG=d.RocheDialogo.Utils.Constants.DEBUG;this.$Component=b;this.$Speakers=a(".speakers__item",this.$Component);this.$Speakers.length&&a(".collapse-item",this.$Speakers).detach().appendTo("#event__speakers_collapse-list")}});a(function(){var b=a(".speakers");b.length&&a.each(b,function(){new d.RocheDialogo.Components.Speakers(a(this))})})})(AEM, 342$); 343$(window).on("load",function(){var d=0,a=!1,b=function(){$(".card__actions-toggle").each(function(){var e=$
343(this);e.attr("data-actions-toggle-check")||(e.parent().parent().find(".card__body").addClass("card__body-with-actions-toggle"),e.click(function(){var f=$(this).parent(),g=f.find(".card__actions-toggle-menu"),k=f.parent().find(".card__container");g.toggleClass("opened");f.toggleClass("opened");k.toggleClass("opened")}),e.attr("data-actions-toggle-check",1))})},c=function(){b();46<++d?$("body").click(function(){a||(b(), 344a=!0)}):setTimeout(c,11>d?200:500)};c()});$(document).ready(function(){var d=$(".dialogo-carousel--cards-grid");0<d.length&&$.each(d,function(){cardsInit(this)});if(window.ContextHub&&ContextHub.SegmentEngine)ContextHub.eventing.on(ContextHub.Constants.EVENT_TEASER_LOADED,function(a,b){b.data.forEach(function(c){c=$("#"+c.key).children().children();c.hasClass("dialogo-carousel--cards-grid")&&cardsInit(c[0])})})}); 345var cardsInit=function(d){new Vue({el:d,data:function(){return{cards:[],viewStatus:"private",layout:"GRID",resourcePath:"",isEditor:!1,loading:!1,isInsideAccordion:!1,isInsideVerticalTabsStrip:!1,isInsideEventPage:!1,setSmallContainer:!1,axiosHeaderProps:{"Cache-Control":"no-cache",Pragma:"no-cache",Expires:"0"}}},mounted:function(){var a=this;this.$component=$(this.$el);this.listingPage=this.$component.data("list-listing-page");this.resourcePath=this.$component.attr("data-bookmark-resource");this.layout= 346this.$component.data("list-layout");this.isEditor=""===this.$component.data("is-editor");this.isInsideAccordion=0<this.$component.closest(".dialogo-accordion").length;this.isInsideVerticalTabsStrip=0<this.$component.closest(".js-tabstrip-vertical").length;this.isInsideEventPage=0<this.$component.closest(".eventpage").length;this.setSmallContainer=this.isInsideAccordion||this.isInsideVerticalTabsStrip||this.isInsideEventPage;var b=this.$component.data("list-base-path"),c=this.$component.data("list-limit"), 347e="\x26sorting\x3d"+(this.$component.data("list-sorting")?this.$component.data("list-sorting"):"date_desc"),f=AEM.RocheDialogo.Utils.Url.getCurrentPageParams(),g=this.$component.data("list-addassets")?"\x26addAssets\x3d"+this.$component.data("list-addassets"):"",k=this.$component.data("personalized-tag")?this.$component.data("personalized-tag"):"",l=""!==k?"\x26personTag\x3d"+k:"",h=0<document.querySelectorAll("[data-bookmark-disable]").length?"true":"false",m=this.$component.data("scap-info");axios.defaults.headers= 348this.axiosHeaderProps;if(m){var n=this.$component.data("external-label");
348b=this.$component.data("only-upcoming")?this.$component.data("only-upcoming"):"false";this.isEditor||(this.loading=!0,axios.post(f+".scap-congresses.json",{specialty:k,limit:c,isUpcoming:b}).then(function(w){a.cards=w.data;a.cards.forEach(function(z){z.disableBookmark="true";z.externalLabel=n})}).finally(function(){0<a.cards.length?(a.$component.find(".card__empty").hide(),"CAROUSEL"===a.layout&&(a.initCarousel(),a.bindEvents())): 349a.$component.find(".card__empty").show();a.loading=!1}))}else{k=(k=this.$component.data("list-filters"))?k.split(","):"";var p="";k&&""!==k&&$.each(k,function(){""!==p&&(p+="\x26");p+="filter\x3d"+this});""===k||this.isEditor||(this.loading=!0,axios.get(f+".cards-grid-feed.json?"+p+"\x26basePath\x3d"+b+"\x26limit\x3d"+c+e+g+l).then(function(w){a.cards=w.data;a.cards.forEach(function(z){z.disableBookmark=h})}).finally(function(){"CAROUSEL"===a.layout&&(a.initCarousel(),a.bindEvents());a.loading=!1}))}}, 350methods:{bindEvents:function(){var a=this;$(document).on("accordion:change-state",function(){a.forceRerender()})},forceRerender:function(){var a=this;$(".slider-slick",this.$component).slick("unslick");this.$nextTick(function(){a.$nextTick(function(){a.initCarousel()})})},redirectButton:function(a){a.preventDefault();window.location.href=this.listingPage},initCarousel:function(){new AEM.RocheDialogo.Utils.Carousel(this.$component)}},updated:function(){var a=this;a.$nextTick(function(){AEM.RocheDialogo.Utils.BookmarkAction.nextTickHelper($(a.$el))})}})}; 351$(document).ready(function(){var d=$(".dialogo-carousel--personalized-cards-grid");0<d.length&&$.each(d,function(){personalisedCardsInit(this)});if(window.ContextHub&&ContextHub.SegmentEngine)ContextHub.eventing.on(ContextHub.Constants.EVENT_TEASER_LOADED,function(a,b){b.data.forEach(function(c){c=$("#"+c.key).children().children();c.hasClass("dialogo-carousel--personalized-cards-grid")&&personalisedCardsInit(c[0])})})}); 352var personalisedCardsInit=function(d){new Vue({el:d,data:function(){return{cards:[],layout:"GRID",isEditor:!1,resourcePath:"",setSmallContainer:!1}},mounted:function(){var a=this,b,c,e,f,g,k,l,h;return $jscomp.asyncExecutePromiseGeneratorProgram(function(m){a.$component=$(a.$el);a.resourcePath=a.$component.attr("data-bookmark-resource");a.isEditor=""===a.$component.data("is-editor");a.layout=a.$component.data("list-layout");a.isInsideEventPage=0<a.$component.closest(".eventpage").length;a.isInsideArticlePage= 3530<a.$component.closest(".articlepage").length;a.setSmallContainer=a.isInsideEventPage||a.isInsideArticlePage;b=a.$component.data("list-limit");c=a.$component.data("list-base-path");e=a.$component.data("list-content-types");f=AEM.RocheDialogo.Utils.Url.getCurrentPageParams();g=0<document.querySelectorAll("[data-bookmark-disable]").length;k=c?"\x26bp\x3d"+c:"";l=e?"\x26ct\x3d"+e:"";h=f+".personalised-cards-grid-feed.json?limit\x3d"+b+k+l;return m.yield(axios.get(h).then(function(n){a.cards=n.data;a.cards.forEach(function(p){p.disableBookmark= 354g})}).finally(function(){"CAROUSEL"===a.layout&&a.initCarousel()}),0)})},methods:{initCarousel:function(){new AEM.RocheDialogo.Utils.Carousel(this.$component)}},updated:function(){var a=this;a.$nextTick(function(){AEM.RocheDialogo.Utils.BookmarkAction.nextTickHelper($(a.$el))})}})}; 355$(document).ready(function(){var d=$(".dialogo-carousel--related-content");0<d.length&&$.each(d,function(){carouselInit(this)});if(window.ContextHub&&ContextHub.SegmentEngine)ContextHub.eventing.on(ContextHub.Constants.EVENT_TEASER_LOADED,function(a,b){b.data.forEach(function(c){c=$("#"+c.key).children().children();c.hasClass("dialogo-carousel--related-content")&&carouselInit(c[0])})})}); 356var carouselInit=function(d){var a=$(".dialogo-carousel--related-content");0<a.length&&$.each(a,function(){new Vue({el:d,data:function(){return{cards:[],resourcePath:""}},mounted:function(){var b=this,c,e,f,g,k;return $jscomp.asyncExecutePromiseGeneratorProgram(function(l){b.$component=$(b.$el);b.resourcePath=b.$component.data("bookmark-resource");c=AEM.RocheDialogo.Utils.Url.getCurrentPageParams();e=b.$component.data("list-base-path");f="basePath\x3d"+e;g=c+".related-content-feed.json?";k=0<document.querySelectorAll("[data-bookmark-disable]").length; 357return l.yield(axios.get(g+f).then(function(h){b.cards=h.data;b.cards.forEach(function(m){m.disableBookmark=k})}).finally(function(){b.initCarousel()}),0)})},methods:{initCarousel:function(){new AEM.RocheDialogo.Utils.Carousel(this.$component)}}})})}; 358(function(d){d.namespace(d,"AEM.RocheDialogo.Utils.SectionListing");d.RocheDialogo.Utils.SectionListing=new d.Class;d.RocheDialogo.Utils.SectionListing.extend({init:function(){this.urlSectionListing="";this.observers=[];this.DEBUG=d.RocheDialogo.Utils.Constants.DEBUG;this.setUrlFlag=!0;this.query=this.sectionListingEndpoint="";this.filters=[];this.sorting="";this.limit="10";this.tab=this.searchText=this.offset=""},doSectionListing:function(a){d.RocheDialogo.Utils.DigitalDataInterface.setInitialStatus(); 359var b=this,c=window.location.search.substring(1);b.urlSectionListing=window.location.href.split("?")[0]+(c?"?":"")+c;b.sectionListingEndpoint=d.RocheDialogo.Utils.Url.getCurrentPageParams()+".listing-search.json";axios.get(b.sectionListingEndpoint+"?"+c+(a?(c?"\x26":"")+"limit\x3d"+a:"")).then(function(e){b.getParams(e);b.notifyAll(e);b.markSelectedSortingDropdown();var f=e.data.query;f&&f.length?window.digitalData.page.attributes.onsiteSearch.term=f:delete window.digitalData.page.attributes.onsiteSearch.term; 360window.digitalData.page.attributes.onsiteSearch.results=e.data.totalResults.toString();window.digitalData.page.attributes.onsiteSearch.filter=e.data.filters||[];0<e.data.totalResults?window.digitalData.page.attributes.onsiteSearch.searchesWithResults++:window.digitalData.page.attributes.onsiteSearch.searchesWithoutResults++}).catch(function(e){b.DEBUG&&(e.response?(console.error(e.response.data),console.error(e.response.status),console.error(e.response.headers)):e.request?c
360onsole.error(e.request): 361console.error("Error",e.message),console.error(e.config))}).finally(function(){d.RocheDialogo.Utils.DigitalDataInterface.setStatusComplete();setTimeout(function(){$(document.body).addClass("section-listing-complete");$(document).trigger("section-listing-complete")},0)})},doSectionListingWParam:function(a,b,c,e){d.RocheDialogo.Utils.DigitalDataInterface.setInitialStatus();this.setUrlFlag=!e;var f=this,g=!1;f.offset="";f.searchText="";var k=$(".search-wrapper--fake");k.show();switch(a){case "filters":g= 362!0;f.filters=b;sessionStorage.setItem("searchType","filters");sessionStorage.setItem("selectedTab","");break;case "tab":g=!0;f.filters=b;f.tab=c;sessionStorage.setItem("searchType","tab");sessionStorage.setItem("selectedTab",c);break;case "filtersWAutocomplete":g=!0;f.filters=b;f.query="";f.tab="";f.searchText=c;f.cleanCheckedFilters();sessionStorage.setItem("searchType","query");sessionStorage.setItem("selectedTab","");break;case "queryWCleanFilters":g=!0;f.filters=[];f.query=b;f.tab="";f.cleanCheckedFilters(); 363sessionStorage.setItem("searchType","filters");sessionStorage.setItem("selectedTab","");break;case "query":g=!0;f.query=b;sessionStorage.setItem("searchType","query");sessionStorage.setItem("selectedTab","");break;case "sorting":f.sorting=b;break;case "limit":f.limit=b;break;case "offset":f.offset=b;break;default:return}a=f.getQueryString();f.urlSectionListing=window.location.href.split("?")[0]+"?"+a;axios.get(f.sectionListingEndpoint+"?"+a).then(function(l){f.cleanCheckedFilters();f.getParams(l); 364f.notifyAll(l);f.markSelectedSortingDropdown();if(g){var h=l.data.query;h&&h.length?window.digitalData.page.attributes.onsiteSearch.term=h:delete window.digitalData.page.attributes.onsiteSearch.term;window.digitalData.page.attributes.onsiteSearch.results=l.data.totalResults.toString();window.digitalData.page.attributes.onsiteSearch.filter=l.data.filters||[];0<l.data.totalResults?window.digitalData.page.attributes.onsiteSearch.searchesWithResults++:window.digitalData.page.attributes.onsiteSearch.searchesWithoutResults++}}).catch(function(l){k.hide(); 365f.DEBUG&&(l.response?(console.error(l.response.data),console.error(l.response.status),console.error(l.response.headers)):l.request?console.error(l.request):console.error("Error",l.message),console.error(l.config))}).finally(function(){d.RocheDialogo.Utils.DigitalDataInterface.setStatusComplete();k.hide()})},getParams:function(a){a.data.query&&""!==a.query&&(this.query=a.data.query);a.data.sorting&&""!==a.sorting&&(this.sorting=a.data.sorting);a.data.filters&&(this.filters=a.data.filters,0<this.filters.length? 366($(".section-listing-filters__wrapper .search__delete").addClass("active"),$.each(this.filters,function(){var b=(".searchFilters__taxonomy--item input#"+this).replace("/","\\/").replace(":","\\:");$(b).prop("checked",!0)})):$(".section-listing-filters__wrapper .search__delete").removeClass("active"));0<a.data.tabFilters.length&&($(".tabs__button").removeClass("active"),this.tab=a.data.tabFilters[0],$("[data-type\x3d'"+this.tab+"']").addClass("active"));a.data.limit&&(this.limit=a.data.limit);a.data.offset&& 367(this.offset=a.data.offset)},markSelectedSortingDropdown:function(){if(this.sorting){var a=$(".search-wrapper__dropdown-sort-label"),b=$('.search-wrapper__dropdown-item[data-sorting\x3d"'+this.sorting+'"]').text();a.html(b)}},getQueryString:function(){var a="";this.searchText&&""!==this.searchText&&(""!==a&&(a+="\x26"),a+="search-text\x3d"+this.searchText);this.query&&""!==this.query&&(""!==a&&(a+="\x26"),a+="query\x3d"+this.query);this.sorting&&""!==this.sorting&&(""!==a&&(a+="\x26"),a+="sorting\x3d"+ 368this.sorting);this.limit&&""!==this.limit&&(""!==a&&(a+="\x26"),a+="limit\x3d"+this.limit);this.offset&&""!==this.offset&&(""!==a&&(a+="\x26"),a+="offset\x3d"+this.offset);this.filters&&""!==this.filters&&$.each(this.filters,function(){""!==a&&(a+="\x26");a+="filters\x3d"+this});this.tab&&""!==this.tab&&(""!==a&&(a+="\x26"),a+="tab\x3d"+this.tab);return a},getActiveFilters:function(){var a=[];$(".section-listing-filters__wrapper .searchFilters__taxonomy--item input:checked").each(function(){a.push($(this).val())}); 369return a},getActiveTabs:function(){return this.tab},cleanCheckedFilters:function(){$(".section-listing-filters__wrapper .searchFilters__taxonomy--item input").prop("checked",!1)},registerObserver:function(a,b){this.observers.push({element:a,callback:b})}
369,notifyAll:function(a){this.observers.forEach(function(b){b.callback(a)});this.setUrlFlag&&this.pushUrl()},showHideTherapeuticGroup:function(a){var b=$(".dialogo-search-filters__filter--therapeutic-area"),c=$('[data-group-id\x3d"'+a+'"'),e=b.find(".dialogo-search-filters__item").not(c); 370c.find("input").prop("checked",!1);"all"===a&&(c=b.find(".dialogo-search-filters__item"),e=$());0<c.length?(b.show(),c.show(),e.hide()):b.hide()},pushUrl:function(){history.pushState("","",this.urlSectionListing.length?this.urlSectionListing:"")}});d.RocheDialogo.Utils.SectionListing.init()})(AEM); 371$(function(){var d=$(".section-listing");0<d.length&&$.each(d,function(){new Vue({el:this,data:function(){return{cards:[],searchTerm:"",totalResults:0,groups:[],showCards:!0,showRecommendations:!1,viewStatus:"private",resourcePath:""}},mounted:function(){var a=this;this.$elem=$(this.$el);this.resourcePath=this.$elem.attr("data-bookmark-resource");AEM.RocheDialogo.Utils.SectionListing.registerObserver(a,function(c){a.setResults(c)});var b=$(this.$el).data("page-size");AEM.RocheDialogo.Utils.SectionListing.doSectionListing(b)}, 372methods:{setResults:function(a){var b=0<document.querySelectorAll("[data-bookmark-disable]").length;a.data.results&&0<a.data.results.length?(a.data.results.forEach(function(c){c.disableBookmark=b}),this.showCards=!0,this.showRecommendations=!1,this.cards=a.data.results):(this.showCards=!1,a.data.recommendations&&0<a.data.recommendations.length?(this.showRecommendations=!0,this.cards=a.data.recommendations):(this.showRecommendations=!1,this.cards=[]));this.searchTerm=a.data.searchTerm;this.totalResults= 373a.data.totalResults;this.groups=a.data.groups;this.$el.classList.remove("hidden")}},updated:function(){var a=this;a.$nextTick(function(){AEM.RocheDialogo.Utils.BookmarkAction.nextTickHelper($(a.$el))})}})})}); 374(function(d,a){d.namespace(d,"RocheDialogo.Components.SectionListingSorting");d.RocheDialogo.Components.SectionListingSorting=new d.Class;d.RocheDialogo.Components.SectionListingSorting.include({init:function(b){this.$component=b;this.bindDom();this.bindEvents()},bindDom:function(){this.$dropdown=a(".search-wrapper__dropdown",this.$component);this.$dropdownBtn=a(".js-dropdown-toggle",this.$component);this.$dropdownBtnLabel=a(".search-wrapper__dropdown-sort-label",this.$component);this.$dropdownItem= 375a(".js-dropdown-item",this.$component)},bindEvents:function(){var b=this;a(document).on("click",function(c){var e=a(c.target);c=!e.closest(".search-wrapper__dropdown").length&&!e.is(".js-dropdown-toggle");e=e.is(".search-wrapper__dropdown-item");(c||e)&&b.$dropdown.removeClass("show")});this.$dropdownBtn.on("click",function(){b.$dropdown.toggleClass("show")});this.$dropdownItem.click(function(c){c=a(c.currentTarget);var e=c.data("sorting");b.$dropdownBtnLabel.html(c.text());d.RocheDialogo.Utils.SectionListing.doSectionListingWParam("sorting", 376e)})}});a(function(){var b=a(".section-result__search");b.length&&a.each(b,function(){new d.RocheDialogo.Components.SectionListingSorting(a(this))})})})(AEM,$); 377(function(d,a){d.namespace(d,"RocheDialogo.Components.SectionListingPages");d.RocheDialogo.Components.SectionListingPages=new d.Class;d.RocheDialogo.Components.SectionListingPages.include({init:function(b){this.$component=b;this.$linksbar=a(".resultsPane__pages--linksBar",this.$component);this.label=this.$component.data("pages-reading");this.getI18n();this.bindDom();this.bindEvents();this.handleMobileWrapper();this.checkHeroOnPage()},bindDom:function(){this.$wrapper=a(".dialogo-search-filters");this.$mobileOpenFiltersButton= 378this.$wrapper.find(".dialogo-search-filters__top-panel--mobile");this.$mobileCloseFiltersButton=this.$mobileOpenFiltersButton.find(".dialogo-search-filters__close-btn")},bindEvents:function(){var b=this;d.RocheDialogo.Utils.SectionListing.registerObserver(this,function(c){b.populatePagination(c)});a(window).on("resize",function(){b.handleMobileWrapper()});this.$mobileOpenFiltersButton.on("click",function(){b.$wrapper.addClass("opened");a("body,html").css("overflow","hidden")});this.$mobileCloseFiltersButton.on("click", 379function(c){b.$wrapper.removeClass("opened");a("body,html").css("overflow","auto");c.stopPropagation()})},checkHeroOnPage:function(){0<a(document).find(".hero,.hero-embedded,.hero-banner").length&&this.$component.closest(".section-listing").addClass("search-container--with-hero")},handleMobileWrapper:function(){1300<window.innerWidth&&(this.$wrapper.removeClass("opened"),a("body,html").css("overflow","auto"))},i18n:{},getI18n:function(){var b=document.querySelector(".selectionListingPaginationI18n"); 380b&&(this.i18n=JSON.parse(b.textContent))}
380,populatePagination:function(b){var c=this,e=b.data.limit,f=Math.ceil(Number(b.data.totalResults)/e);if(b.data.totalResults>e&&0<f){var g=Math.floor(b.data.offset/e+1),k=function(h){return"/etc.clientlibs/roche-dialogo/clientlibs/site/resources/new-look/fi-rs-angle-small-"+h+".svg"};var l="\x3cli class\x3d'page-item "+(1===g?"disabled":"")+"'\x3e\x3ca href\x3d'#' data-offset\x3d"+(b.data.offset-e+"\x3e");l+='\x3cimg class\x3d"dialogo-carousel__arrow--mobile dialogo-carousel__arrow--prev" src\x3d"'+ 381k("left")+'" alt\x3d"left arrow"\x3e';l=a(l+"\x3c/a\x3e\x3c/li\x3e");b="\x3cli class\x3d'page-item "+(g===f?"disabled":"")+"'\x3e\x3ca href\x3d'#' data-offset\x3d"+(b.data.offset+e+"\x3e");b+='\x3cimg class\x3d"dialogo-carousel__arrow--mobile dialogo-carousel__arrow--next" src\x3d"'+k("right")+'" alt\x3d"right arrow"\x3e';k=a(b+"\x3c/a\x3e\x3c/li\x3e");this.$linksbar.empty();this.$linksbar.append(l);l=function(h,m){h=a('\n \x3cli class\x3d"page-item"\x3e\n \x3ca class\x3d"dialogo-carousel__counter-item newlook look-body '+ 382((void 0===m?0:m)?"active":"")+'" href\x3d"#" data-offset\x3d"'+(1===h?1:(h-1)*e)+'"\x3e\n '+h+'\n \x3c/a\x3e\n \x3c/li\x3e"');c.$linksbar.append(h)};l(1,1===g);1<g-2&&this.$linksbar.append('\x3cdiv class\x3d"dots dialogo-carousel__counter-dots newlook look-body"\x3e...\x3c/div\x3e');1<g-1&&l(g-1);1!==g&&g!==f&&l(g,!0);g+1<f&&l(g+1);g+2<f&&this.$linksbar.append('\x3cdiv class\x3d"dots dialogo-carousel__counter-dots newlook look-body"\x3e...\x3c/div\x3e');1< 383f&&l(f,g===f);this.$linksbar.append(k);a(".resultsPane__pages--linksBar .page-item a",this.$component).on("click",function(h){var m=a(h.currentTarget);m.parent().hasClass("disabled")||(m=m.data("offset"),1===m&&(m=0),d.RocheDialogo.Utils.SectionListing.doSectionListingWParam("offset",m),a("html, body").stop().animate({scrollTop:a(".search-wrapper__container").offset().top-100},300));h.preventDefault()})}else this.$linksbar.empty()}});a(function(){var b=a(".section-listing__pages");b.length&&a.each(b, 384function(){new d.RocheDialogo.Components.SectionListingPages(a(this))})})})(AEM,$); 385(function(d,a){d.namespace(d,"RocheDialogo.Components.SectionListingFilters");d.RocheDialogo.Components.SectionListingFilters=new d.Class;d.RocheDialogo.Components.SectionListingFilters.include({init:function(b){this.$component=b;this.bindData();this.bindDom();this.bindEvents();(this.isIphone||this.isIpad)&&this.$filtersContainer.addClass("mobile-safari")},bindDom:function(){this.$container=a(".dialogo-search-filters__filters",this.$component);this.$filtersContainer=a(".search-wrapper__filters-list"); 386this.$appliedFilters=a(".dialogo-search-filters__item input",this.$component);this.$deleteFiltersBtn=a(".dialogo-search-filters__delete-btn",this.$component);this.$filtersList=a(".dialogo-search-filters__tab",this.$container)},bindData:function(){this.imgurl="/etc.clientlibs/roche-dialogo/clientlibs/site/resources/images/";this.url=d.RocheDialogo.Utils.Url.getCurrentPageParams();this.isIphone=navigator.platform?/iPhone/.test(navigator.platform):!1;this.isIpad=navigator.platform?/iPad/.test(navigator.platform)|| 387"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints:!1},bindEvents:function(){var b=this;this.$deleteFiltersBtn.on("click",function(){b.deleteFilters()});this.getItems();d.RocheDialogo.Utils.SectionListing.registerObserver(this,function(c){b.setAppliedFilters(c)});this.$filtersList.off("click").on("click",function(c){c=a(c.currentTarget);var e=c.closest(".dialogo-search-filters__filter").find(".dialogo-search-filters__items");b.$filtersList.not(c).closest(".dialogo-search-filters__filter").find(".dialogo-search-filters__items").slideUp(function(){a(this).closest(".dialogo-search-filters__filter").addClass("collapsed")}); 388e.slideToggle(function(){a(this).closest(".dialogo-search-filters__filter").toggleClass("collapsed")})});this.$appliedFilters.on("change",function(){var c=d.RocheDialogo.Utils.Search.getActiveFilters();d.RocheDialogo.Utils.SectionListing.doSectionListingWParam("filters",c)})},getItems:function(){var b=this;axios.get(this.url+".get-filters.json").then(function(c){b.generateFilterItems(c)}).catch(function(c){b.DEBUG&&(c.response?(console.error(c.response.data),console.error(c.response.status),console.error(c.response.headers)):
389c.request?console.error(c.request):console.error("Error",c.message),console.error(c.config))})},setAppliedFilters:function(b){var c=this;b=b.data.filters;for(var e="",f=0;f<b.length;f++){var g=b[f],k=a('input[value\x3d"'+g+'"]').attr("name");k&&(e+='\n \x3cspan class\x3d"dialogo-filter-tag search-wrapper__filter" data-filter-id\x3d"'+g+'"\x3e\n \x3cspan class\x3d"dialogo-filter-tag__label"\x3e'+k+'\x3c/span\x3e\n \x3cspan class\x3d"dialogo-filter-tag__icon"\x3e\x3c/span\x3e\n \x3c/span\x3e\n ')}this.$filtersContainer.html(e); 390a(".search-wrapper__filter",this.$filtersContainer).on("click",function(l){c.deleteOneFilter(l.currentTarget)})},deleteFilters:function(){a(".dialogo-search-filters__item input",this.$component).prop("checked",!1);this.$filtersContainer.empty();d.RocheDialogo.Utils.SectionListing.doSectionListingWParam("filters",[])},deleteOneFilter:function(b){var c=a(b).data("filter-id").replace("/","\\/").replace(":","\\:");setTimeout(function(){a(b).remove()});a("#"+c,this.$component).prop("checked",!1);c=d.RocheDialogo.Utils.SectionListing.getActiveFilters(); 3910===c.length&&this.$filtersContainer.empty();d.RocheDialogo.Utils.SectionListing.doSectionListingWParam("filters",c)}});a(function(){var b=a(".section-listing-filters__wrapper");b.length&&a.each(b,function(){new d.RocheDialogo.Components.SectionListingFilters(a(this))})})})(AEM,$); 392(function(d,a){d.namespace(d,"RocheDialogo.Components.SectionListingTabs");d.RocheDialogo.Components.SectionListingTabs=new d.Class;d.RocheDialogo.Components.SectionListingTabs.include({init:function(b){this.$component=b;this.$filters=a(".dialogo-tabs__button",this.$component);this.$scrollableWrapper=a(".dialogo-tabs__tablist",this.$component);this.selectedTab="";this.bindEvents();this.checkInitTab();this.selectedTab?this.selectActiveTab():(this.selectedTab=this.getUrlParam("tab"))?this.selectActiveTab(): 393this.selectedTab="all";d.RocheDialogo.Utils.SectionListing.showHideTherapeuticGroup(this.selectedTab)},bindEvents:function(){var b=this;this.$filters.on("click",function(c){c=a(c.currentTarget);var e=c.data("type");b.$filters.removeClass("active");c.addClass("active");b.setActiveTab(e);b.showfullTab(c)})},selectActiveTab:function(){var b=a('[data-type\x3d"'+this.selectedTab+'"]',this.$component);this.$filters.removeClass("active");b.addClass("active");this.showfullTab(b)},setActiveTab:function(b){var c= 394d.RocheDialogo.Utils.SectionListing.getActiveFilters();c=this.removeTherapeuticFilters(c);d.RocheDialogo.Utils.SectionListing.showHideTherapeuticGroup(b);d.RocheDialogo.Utils.SectionListing.doSectionListingWParam("tab",c,b)},checkInitTab:function(){var b=this.$component.data("init-tab");if(window.location.search.substring(1).includes("tab\x3d")){var c=d.RocheDialogo.Utils.SectionListing.getActiveTabs();a('[data-type\x3d"'+c+'"]',this.$component).addClass("active")}else if(b){var e=d.RocheDialogo.Utils.SectionListing.getActiveFilters(); 395this.selectedTab=b;c=function(){d.RocheDialogo.Utils.SectionListing.doSectionListingWParam("tab",e,b,!0)};if(a(document.body).hasClass("section-listing-complete"))c();else a(document).on("section-listing-complete",c)}else this.$filters.first().addClass("active")},removeTherapeuticFilters:function(b){var c=[];a.each(b,function(e,f){this.includes("dialogo-roche:therapeutic-areas")||c.push(f)});return c},getUrlParam:function(b){return(new URLSearchParams(window.location.href)).get(b)},showfullTab:function(b){var c= 396this.$component.width(),e=b.position().left;b=b.outerWidth();var f=this.$scrollableWrapper.scrollLeft();0>e||c<b?f+=e:e+b>c&&(f+=e+b-c);this.$scrollableWrapper.animate({scrollLeft:f},100)}})})(AEM,$);var sectionListingTabInit=function(d){new AEM.RocheDialogo.Components.SectionListingTabs($(d))}; 397$(document).ready(function(){if(0<$(".js-section-listing-tabs").closest(".campaign").length){if(window.ContextHub&&ContextHub.SegmentEngine)ContextHub.eventing.on(ContextHub.Constants.EVENT_TEASER_LOADED,function(a,b){b.data.forEach(function(c){c=$("#"+c.key).children().children();c.hasClass("js-section-listing-tabs")&§ionListingTabInit(c[0])})})}else{var d=$(".js-section-listing-tabs");d.length&&$.each(d,function(){sectionListingTabInit(this)})}}); 398(function(d,a){d.namespace(d,"RocheDialogo.Components.EventTopics");d.RocheDialogo.Components.EventTopics=new d.Class;d.RocheDialogo.Components.EventTopics.include({init:function(b){this.DEBUG=d.RocheDialogo.Utils.Constants.DEBUG;this.$Component=b;this.$EventTopics=a(".event-topics",this.$EventTopics);this.$EventTopics.length&&a(".collapse-item",this.$EventTopics).detach().appendTo("#event-topics_collapse-list")}});a(function(){var b=a(".event-topics");b.length&&a.each(b,function(){new d.RocheDialogo.Components.EventTopics(a(this))})})})(AEM, 399$); 400(function(d,a){d.namespace(d,"RocheDialogo.Components.CollapsableList");d.RocheDialogo.Components.CollapsableList=new d.Class;d.RocheDialogo.Components.CollapsableList.include({init:function(b){this.DEBUG=d.RocheDialogo.Utils.Constants.DEBUG;this.$Component=b;b=a(".questions__more-items",this.$Component);this.$questions=a(".questions",this.$Component);this.$questions.length&&a(".collapse-item",this.$Component).detach().appendTo(b);this.bindEvents()},bindEvents:function(){var b=a(".questions__item-header",this.$Component), 401c=a(".questions__more-items",this.$Component),e=a(".questions__toggle-more",this.$Component);b.on("click",function(){a(this).parent().toggleClass("open").children(".questions__item-hidden").slideToggle()});e.on("click",function(){a(this).toggleClass("open");c.slideToggle()})}});a(function(){var b=a(".collapsable-list");b.length&&a.each(b,function(){new d.RocheDialogo.Components.CollapsableList(a(this))})})})(AEM,$); 402(function(d,a){d.namespace(d,"RocheDialogo.Components.AccordionWithFilter");d.RocheDialogo.Components.AccordionWithFilter=new d.Class;d.RocheDialogo.Components.AccordionWithFilter.include({init:function(b){this.$Component=a(b);this.emptyLabel=this.$Component.find(".dialogo-accordion__no-results");this.accordionTabs=this.$Component.find(".dialogo-accordion__tab");this.visibleEl=0;this.filterMedicine();this.bindEvent()},handleSearch:function(b){var c=this;this.visibleEl=0;a.each(this.accordionTabs, 403function(e,f){""===b?c.showElement(f):-1===a(f).find("a").html().toLowerCase().indexOf(b.toLowerCase())?a(f).hide():c.showElement(f)});this.toggleEmptyLabel()},showElement:function(b){a(b).show();this.visibleEl+=1},toggleEmptyLabel:function(){0===this.visibleEl?this.emptyLabel.show():this.emptyLabel.hide()},filterMedicine:function(){var b=this;this.$Component.find(".form-filter-medicines").on("submit",function(c){c.preventDefault();c=b.$Component.find('[name\x3d"search-medicine"]').val();b.handleSearch(c)})}, 404bindEvent:function(){var b=this,c=a(".dialogo-accordion__search-btn--clear",this.$Component),e=a(".dialogo-accordion__button",this.$Component),f=!1,g=this.$Component.find(".dialogo-accordion__tab");this.emptyLabel.hide();c.on("click",function(){b.$Component.find('[name\x3d"search-medicine"]').val("");b.handleSearch("")});2===g.length&&(this.$Component.find(".dialogo-accordion__column--right").remove(),this.$Component.find(".dialogo-accordion__column--left").css("width","100%"));e.off().on("click", 405function(k){k=a(k.currentTarget);var l=k.parent(),h=l.children(".dialogo-accordion__collapse");d.RocheDialogo.Utils.TabUrlActions.handleUrlUpdate(l);f||(f=!0,k.toggleClass("selected"),l.toggleClass("selected"),h.slideToggle(500,function(){f=!1;a(document).trigger("accordion:change-state")}))})}});a(function(){var b=a(".js-accordion");b.length&&a.each(b,function(){new d.RocheDialogo.Components.AccordionWithFilter(a(this))})})})(AEM,$); 406(function(d,a){function b(){var e=c();d.cookie.match(/^(.*;)?\s*login-token\s*=\s*[^;]+(.*)?$/)&&(window.location.href.endsWith("login.html")?window.location.href=e:setTimeout(function(){window.location.href=e},5E3))}function c(){var e=a(".dialogoHeader").data("logout-url"),f=a(".dialogoHeader").data("logout-attr"),g=a(".dialogoHeader").data("logout-attr-sso");return digitalData.user.profile.memberOf.includes("dialogo-roche-employees")&&g?e+"?resource\x3d"+g:f?e+"?resource\x3d"+f:e}a(d).ready(function(){window.addEventListener("load", 407function(){"undefined"!==typeof gigya&&gigya.accounts.addEventHandlers({onLogout:b})})})})(document,Granite.$); 408(function(d,a){d.namespace(d,"RocheDialogo.Components.AnchorComponent");d.RocheDialogo.Components.AnchorComponent=new d.Class;d.RocheDialogo.Components.AnchorComponent.include({init:function(b){this.DEBUG=d.RocheDialogo.Utils.Constants.DEBUG;this.$Component=b;this.bindEvents()},bindEvents:function(){var b=this,c=a(".anchor-component__link",this.$Component);b.$topOfStaticMenu=a(".anchor-component__top-of-static-menu",this.$Component);b.$anchorHeader=a(".anchor-component__header",this.$Component);b.$scrollableWrapper= 409b.$anchorHeader.children().first();c.first().addClass("look-medium active first");c.click(function(e){var f=a(this),g=f.hasClass("first");b.isFixedMenu=b.$anchorHeader.hasClass("position-fixed");var k=a(".anchor-component__link.active",this.$Component);e.preventDefault();k.removeClass("look-medium active");f.addClass("look-medium active");d.RocheDialogo.Utils.TabUrlActions.handleUrlUpdate(f);var l=a(a(this).attr("href"),b.$Component).offset().top;e=b.$anchorHeader.outerHeight();f=a("header.dialogoHeader").height(); 410k=b.$topOfStaticMenu.offset().top;l-=e+f;g?l=k-f:b.isFixedMenu||(l-=e);b.setCarouselTabPosition();a("html, body").stop().animate({scrollTop:l},300,function(){setTimeout(function(){b.setCarouselTabPosition()},250)})});a(window).on("scroll",function(){var e=a(window).scrollTop();110>b.$topOfStaticMenu.offset().top-e?(b.$anchorHeader.addClass("position-fixed"),993>a(window).width()?b.$anchorHeader.css("top","117px"):b.$anchorHeader.css("top","115px")):(b.$anchorHeader.removeClass("position-fixed"),b.$anchorHeader.css("top", 4110))})},setCarouselTabPosition:function(){var b=a(".anchor-component__link.active",this.$Component),c=this.$anchorHeader.width(),e=b.position(),f=this.$scrollableWrapper.scrollLeft();16>e.left||c<b.outerWidth()?f=f+e.left-25:e.left+b.outerWidth()>c&&(f+=e.left+b.outerWidth()-c);this.$scrollableWrapper.animate({scrollLeft:f},100)}});a(function(){var b=a(".js-anchor-component");b.length&&a.each(b,function(){new d.RocheDialogo.Components.AnchorComponent(a(this))})})})(AEM,$); 412(function(d,a){d.namespace(d,"RocheDialogo.Components.ProductTabsStrip");d.RocheDialogo.Components.ProductTabsStrip=new d.Class;d.RocheDialogo.Components.ProductTabsStrip.include({init:function(b){this.$component=b;this.bindEvents();this.setTabs()},bindEvents:function(){this.bindTabsStripsClick()},bindTabsStripsClick:function(){var b=this;a(".tabs__button",this.$component).click(function(c){c.preventDefault();b.treatTabClick(c.target)})},treatTabClick:function(b){var c=a(".tabs__button",this.$component); 413b=a(b);var e=b.data("content-id");e=a("#"+e,this.$component);var f=e.find(".dialogo-carousel");c.removeClass("selected look-regular");c.parent().removeClass("selected look-regular");a(".product-tabstrip__tab-content",this.$component).removeClass("selected look-regular");b.addClass("selected look-regular");b.parent().addClass("selected look-regular");e.addClass("selected");d.RocheDialogo.Utils.TabUrlActions.handleUrlUpdate(b);if(0<f.length){var g=f.find(".slider-slick");setTimeout(function(){200>f.find(".slick-track").width()&& 414(g.slick("unslick"),new d.RocheDialogo.Utils.Carousel(f))},50)}},setTabs:function(){var b=this.$component.data("horizontal-tabs-strip-id"),c=a("li",this.$component).first(),e=a(".tab-content",this.$component).children().first(),f="; "+document.cookie,g=0;this.$component.hasClass("author-mode")&&(g=f.split("; horizontalTab_"+b+"\x3d").pop().split(";").shift());f=a("[data-tab-id\x3did_"+b+"_index_"+g+"]",this.$component).first();0<f.length?(b=a("[data-container-id\x3did_"+b+"_index_"+g+"]"),f.addClass("look-regular selected"), 415f.parent().addClass("selected"),b.addClass("selected")):(c.addClass("selected"),e.addClass("selected"),c.find(".nav-link").addClass("look-regular selected"))}});a(function(){var b=a(".product-tabstrip");b.length&&a.each(b,function(){new d.RocheDialogo.Components.ProductTabsStrip(a(this))})})})(AEM,$); 416(function(d,a){d.namespace(d,"RocheDialogo.Components.VerticalTabsStrip");d.RocheDialogo.Components.VerticalTabsStrip=new d.Class;d.RocheDialogo.Components.VerticalTabsStrip.include({init:function(b){this.$component=b;this.bindEvents();this.setSelectedTab()},bindEvents:function(){this.bindTabsStripsClick()},bindTabsStripsClick:function(){var b=this,c=a(".events-nav__list-item",this.$component),e=a(".dropdown-link",this.$component);c.click(function(f){f.preventDefault();b.treatTabClick(f.target)}); 417e.click(function(f){f.preventDefault();b.treatTabClick(f.target)})},treatTabClick:function(b){var c=a(".events-nav__list-item.selected",this.$component),e=a(".dropdown-link.selected",this.$component),f=a(".dropdown-display",this.$component).find("span"),g=a(b),k=g.data("content-id"),l=g.data("url-id");f.text(b.innerText);c.removeClass("selected look-regular");c.find("a").removeClass("selected look-regular");e.removeClass("selected look-regular");a(".tab-content-vertical",this.$component).removeClass("selected look-regular"); 418b=a("[data-url-id\x3d"+l+"]",this.$component);b.addClass("selected look-regular");b.find("a").addClass("look-regular");a("#"+k,this.$component).addClass("selected look-regular");d.RocheDialogo.Utils.TabUrlActions.handleUrlUpdate(g)},setSelectedTab:function(){var b=a(".events-nav__list-item",this.$component),c=b.data("content-id"),e=a(".dropdown-link",this.$component),f=a(".dropdown-no-title",this.$component).find("span");0<b.length&&0<e.length&&(b=b.first(),f.text(b[0].innerText),b.addClass("selected look-regular"), 419b.find("a").addClass("look-regular"),e.first().addClass("selected look-regular"),e.first().find("a").addClass("look-regular"),a("#"+c,this.$component).first().addClass("selected look-regular"))}});a(function(){var b=a(".js-tabstrip-vertical");b.length&&a.each(b,function(){new d.RocheDialogo.Components.VerticalTabsStrip(a(this))})})})(AEM,$); 420(function(d,a){d.namespace(d,"RocheDialogo.Components.VideoList");d.RocheDialogo.Components.VideoList=new d.Class;d.RocheDialogo.Components.VideoList.include({init:function(b){this.$Component=b;this.videoListId=b.data("videolistid");this.componentPath=b.data("component");d.RocheDialogo.Utils.Url.getCurrentPageParams();this.createNameAndDurationDisplayers();this.makeAxiosCall(this.componentPath+".videos-collection.json")},makeAxiosCall:function(b){var c=this;axios.get(b).then(function(e){c.componentPath.includes("accordion")? 421c.$Component.find("video").each(function(f,g){c.createPlayList(e.data,g)}):c.createPlayList(e.data,c.videoListId)}).catch(function(e){c.DEBUG&&(e.response?(console.error(e.response.data),console.error(e.response.status),console.error(e.response.headers)):e.request?c
421onsole.error(e.request):console.error("Error",e.message),console.error(e.config))})},createPlayList:function(b,c){c=videojs(c);c.playlist(b);c.playlist.autoadvance(0);c.playlistUi();var e=this.$Component.find(".vjs-playlist-amount");"string"=== 422typeof b?e.text("Videos (0)"):e.text("Videos ("+b.length+")");e=Math.floor(b[0].duration);var f="--:-- min";e&&(e=new Date(1E3*e),f=e.getSeconds(),10>f&&(f="0"+f),f=e.getMinutes()+":"+f+" min");this.$videoName.text(b[0].name);this.$videoName.prop("title",b[0].name);this.$time.text(f);this.addAnalyticsAttr(b,c.children()[0])},setNameAndDuration:function(b){var c=a(b).find(".vjs-playlist-name").text();b=a(b).find(".vjs-playlist-duration").text()+" min";this.$videoName.text(c);this.$videoName.prop("title", 423c);this.$time.text(b)},addAnalyticsAttr:function(b,c){var e=this;b=b[0].name;a(c).attr("data-analytics-video-name",b);this.$playlistElements=this.$Component.find(".vjs-playlist-item-list li");this.$playlistElements.each(function(f,g){var k=a(g).find(".vjs-playlist-name").text();a(g).on("click tap touchstart",function(){a(c).attr("data-analytics-video-name",k);e.setNameAndDuration(g);e.$Component.find(".video-js").hasClass("vjs-paused")&&e.$displayer.show()})})},createNameAndDurationDisplayers:function(){var b= 424this;this.$displayer=this.$Component.find(".js-video-list-displayer");this.$video=this.$Component.find("video");if(this.$displayer.find("h5")){var c=document.createElement("h5");c.className="video-footer-title list-video-title look-regular";this.$displayer.append(c);this.$videoName=this.$displayer.find(".list-video-title")}this.$displayer.find("time")&&(c=document.createElement("time"),c.className="list-footer-time look-regular",this.$displayer.append(c),this.$time=this.$displayer.find(".list-footer-time")); 425this.$Component.click(function(e){e.target.className.includes("vjs-playlist")||b.$displayer.hide()})}});a(function(){var b=a(".js-video-list");b.length&&a.each(b,function(){new d.RocheDialogo.Components.VideoList(a(this))})})})(AEM,$); 426(function(d){var a=function(){d(".js-video-list").each(function(b,c){var e=d(c)[0].dataset.component.includes("accordion"),f=d(c).find("video"),g=d(c).find(".js-video-list-displayer");b=function(){g.css("height",f[0].scrollHeight+"px")};e?(c=d(c).closest(".dialogo-accordion__collapse"),c.show(),b(),c.hasClass("author")||c.parent().hasClass("open")||(c.hide(),c.parent().removeClass("open"),c.next().removeClass("open"))):b()})};a();d(window).on("resize",function(){a()})})($); 427(function(d,a){d.namespace(d,"RocheDialogo.Components.ArticleCitation");d.RocheDialogo.Components.ArticleCitation=new d.Class;d.RocheDialogo.Components.ArticleCitation.include({init:function(b){var c=b.attr("data-article-citation-id");a(".collapse-item",b).detach().appendTo("#"+c)}});a(function(){var b=a(".article__references");b.length&&a.each(b,function(){new d.RocheDialogo.Components.ArticleCitation(a(this))})})})(AEM,$); 428var deferredPrompt=null,installButton=document.getElementById("butInstall"),installWraper=document.getElementById("app-disclaimer"),installSafari=document.getElementById("ios-disclaimer"),isChrome=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor),isiosChrome=/CriOS/i.test(navigator.userAgent)&&/iphone|ipod|ipad/i.test(navigator.userAgent),isInStandaloneMode=function(){return"standalone"in window.navigator&&window.navigator.standalone}; 429document.getElementById("app-close")&&document.getElementById("app-close").addEventListener("click",hideInstallPromotion);document.getElementById("ios-close")&&document.getElementById("ios-close").addEventListener("click",hideInstallPromotion);window.addEventListener("beforeinstallprompt",function(d){d.preventDefault();deferredPrompt=d;d=sessionStorage.getItem("roche-dialogo-pwa");device.desktop()||d||installWraper.classList.add("visible")}); 430installButton&&installButton.addEventListener("click",function(){installWraper.classList.remove("visible");installSafari&&installSafari.classList.remove("visible");transitionEnd();deferredPrompt.prompt();deferredPrompt.userChoice.then(function(d){"accepted"===d.outcome?console.log("User accepted the install prompt"):console.log("User dismissed the install prompt")})}); 431function hideInstallPromotion(){sessionStorage.setItem("roche-dialogo-pwa",!0);installWraper.classList.remove("visible");installSafari&&installSafari.classList.remove("visible");transitionEnd()}function transitionEnd(){installSafari&&(installSafari.addEventListener("webkitTransitionEnd",function(){installSafari.remove()},!1),installWraper.addEventListener("webkitTransitionEnd",function(d){installSafari.remove()},!1))} 432window.addEventListener("appinstalled",function(d){sessionStorage.setItem("roche-dialogo-pwa",!0);showMessage()});function showMessage(){if(installSafari){installSafari.remove();$("#butInstall").remove();var d=installWraper.getAttribute("data-success-msg");$(".app-install__content--text p").text(d)}} 433if(device.ios()&&!isInStandaloneMode()){var rocheBanner=sessionStorage.getItem("roche-dialogo-pwa");!installSafari||isChrome||rocheBanner||isiosChrome||(installSafari.classList.add("visible"),768<=window.innerWidth?installSafari.classList.add("wide-screen"):null)} 434$(function(){var d=$(".bookmarks-list-js");0<d.length&&$.each(d,function(){new Vue({el:this,data:function(){return{cards:[],resourcePath:"",page:1,perPage:10,pages:[],sortBy:"title",sortDirection:"asc",selectedBookmarks:"",groups:[],searchQuery:"",bookmarksAutocomplete:[],cardsAux:[],cardsDisplay:[]}},mounted:function(){var a=this,b,c;return $jscomp.asyncExecutePromiseGeneratorProgram(function(e){if(1==e.nextAddress){a.$component=$(".bookmarks-list-js");b=0<document.querySelectorAll("[data-bookmark-disable]").length; 435document.body.addEventListener("unbookmark",a.removeItem,!1);a.$component=$(a.$el);a.resourcePath=a.$component.attr("data-bookmark-resource");a.perPage=a.$component.data("page-size");if(!dialogoSiteId)return e.jumpTo(0);c=a.resourcePath+".bookmark."+dialogoSiteId+".json";return e.yield(axios.get(c).then(function(f){f.data&&0<f.data.results.length&&(a.cards=f.data.results,a.totalResults=f.data.results.length,a.groups=f.data.groups,a.cards.forEach(function(g){g.disableBookmark=b}),a.setAutocompleteData())}), 4363)}a.bindAutocomplete();a.bindHandleDropdowns();a.setPages();e.jumpToEnd()})},methods:{setAutocompleteData:function(){var a=this;this.bookmarksAutocomplete=[];this.$select=$(".bookmarks__select");this.$orderby=$(".bookmarks__orderby");$.each(this.cardsAux,function(b,c){a.bookmarksAutocomplete.push({label:c.title,value:c.title,url:c.url})})},bindAutocomplete:function(){var a=this,b=$(".bookmarks__input",this.$component),c=$("input",b),e=$(".bookmarks__select-dropdown",b),f=$(".with-results",e),g=$(".bookmarks__hint", 437e),k=$(".no-results",e);this.setAutocompleteData();e.hide();c.autocomplete({search:function(){f.empty()},source:this.bookmarksAutocomplete,minLength:2,response:function(l,h){0===h.content.length?(g.hide(),k.show()):(k.hide(),g.show())}}).autocomplete("instance")._renderItem=function(l,h){return a.bookmarksAutocomplete.some(function(m){return m.value===h.value&&m.url===h.url&&m.label===h.label})?(l=String(h.value).replace(new RegExp(a.term,"gi"),"\x3cspan class\x3d'ui-state-highlight'\x3e$\x26\x3c/span\x3e"), 438$("\x3cli\x3e\x3c/li\x3e").data("item.autocomplete",h).append('\x3ca href\x3d"'+h.url+'"\x3e'+l+"\x3c/a\x3e").appendTo(f)):$('\x3cli class\x3d"d-none"\x3e\x3c/li\x3e')};c.on("change keyup keypress",function(){1<=$(this).val().length?e.fadeIn():e.fadeOut().children("ul.with-results").empty()}).on("blur",function(){e.fadeOut()})},removeItem:function(a){var b=this;setTimeout(function(){a.stopPropagation();if(a.detail.bookmarkId){var c=$(b.$el).find("[data-bookmark-id\x3d"
438+a.detail.bookmarkId+"]").closest(".bookmark-card-item").data("itemindex")+ 439b.bookmarksOffset;b.$delete(b.cards,c)}},10100)},setPages:function(){this.pages=[];for(var a=Math.ceil(this.cardsAux.length/this.perPage),b=1;b<=a;b++)this.pages.push(b);1===a&&(this.page=1);this.paginate(this.cardsAux)},paginate:function(a){this.bookmarksOffset=this.page*this.perPage-this.perPage;this.cardsDisplay=a.slice(this.bookmarksOffset,this.page*this.perPage)},sort:function(a,b,c){this.sortDirection=b;this.sortBy=a;$(".js-dropdown-toggle").find(".search-wrapper__dropdown-sort-label").text(c.currentTarget.textContent)}, 440bindHandleDropdowns:function(){var a=this;this.$orderby.find(".search-wrapper__order-label").on("click",function(){a.$orderby.find(".search-wrapper__dropdown").toggleClass("show");a.$select.removeClass("show")});var b=this.$select.find(".bookmarks__select-button");b.on("click",function(){a.$select.toggleClass("show");a.$orderby.find(".search-wrapper__dropdown").removeClass("show")});$(document).on("click",function(c){$(c.target).hasClass("bookmarks__select-item")?(b.find("div").text($(c.target).first().text()), 441a.$select.removeClass("show")):$(c.target).hasClass("bookmarks__select-button")||$(c.target).hasClass("search-wrapper__order-label")||(a.$select.removeClass("show"),a.$orderby.find(".search-wrapper__dropdown").removeClass("show"))})}},updated:function(){var a=this;this.$nextTick(function(){AEM.RocheDialogo.Utils.BookmarkAction.nextTickHelper($(a.$el))})},computed:{displayedBookmarks:function(){var a=this;this.cardsAux=this.cards;""!==this.selectedBookmarks&&(this.cardsAux=this.cards.filter(function(b){return b.contentTypeId=== 442a.selectedBookmarks}));1<this.searchQuery.length&&(this.cardsAux=this.cardsAux.filter(function(b){return a.searchQuery.toLowerCase().split(" ").every(function(c){return b.title.toLowerCase().includes(c)||(b.specialty?b.specialty.title.toLowerCase().includes(c):!1)})}));this.cardsAux.sort(function(b,c){b=Object.assign({},b);c=Object.assign({},c);b.title=b.title.toString().toLowerCase();c.title=c.title.toString().toLowerCase();var e=1;"desc"===a.sortDirection&&(e=-1);return b[a.sortBy]<c[a.sortBy]? 443-1*e:b[a.sortBy]>c[a.sortBy]?e:0});return this.setPages()}},watch:{displayedBookmarks:function(){this.setPages()}}})})}); 444(function(d,a){d.namespace(d,"RocheDialogo.Components.SegregationComponent");d.RocheDialogo.Components.SegregationComponent=new d.Class;d.RocheDialogo.Components.SegregationComponent.include({init:function(b){this.$Component=a(b);this.bindHomeButton()},bindHomeButton:function(){var b=a(".home-button-segregation",this.$Component);axios.get("/bin/roche/dialogo/services/user/homepage-link.json").then(function(c){var e=c.data.url;b.click(function(){window.location.href=e})})}});a(function(){var b=a(".segregation"); 445b.length&&a.each(b,function(){new d.RocheDialogo.Components.SegregationComponent(a(this))})})})(AEM,$); 446(function(d,a){d.namespace(d,"RocheDialogo.Components.WalkMe");d.RocheDialogo.Components.WalkMe=new d.Class;d.RocheDialogo.Components.WalkMe.include({init:function(b){this.$Component=b[0];b=this.$Component.dataset.cfpath;this.getI18n();b&&(b=b.substring(0,b.lastIndexOf("/")+1),this.fetchStep(b))},walkMeFragments:"step1 step2 step3 step4 step5 step6 step7 step8".split(" "),i18n:{},getI18n:function(){var b=document.querySelector(".walkMeI18n");b&&(this.i18n=JSON.parse(b.textContent))},walkMeGuide:function(){function b(){var f= 447introJs();f.setOptions({nextLabel:c.i18n.lblIntroJsNext+" \x3csvg xmlns\x3d'http://www.w3.org/2000/svg' viewBox\x3d'0 0 64 64'\x3e\x3cpath d\x3d'M34,32L12,10L22,0L53,32L22,64L12,54L34,32Z'/\x3e\x3c/svg\x3e",prevLabel:"\x3csvg xmlns\x3d'http://www.w3.org/2000/svg' viewBox\x3d'0 0 64 64'\x3e\x3cpath d\x3d'M34,32L12,10L22,0L53,32L22,64L12,54L34,32Z'/\x3e\x3c/svg\x3e "+c.i18n.lblIntroJsPrevious,doneLabel:""+c.i18n.lblIntroJsFinalize,showBullets:!0,exitOnOverlayClick:!1,exitOnEsc:!0,showProgress:!1,showButtons:!1, 448overlayOpacity:"0.5",tooltipClass:"tooltip-big tooltip-card",scrollToElement:!0,scrollTo:"element",buttonClass:"introjs-button",hidePrev:!0,steps:[{element:document.querySelector(".events .card__slide.slick-current"),intro:'\n \x3cdiv class\x3d"introjs-body"\x3e\n '+c.walkMeFragments[6]+"\n \x3c/div\x3e",position:device.mobile()?"center":"right"},{element:document.querySelector(".events .card__slide.slick-current"),intro:'\n \x3cdiv class\x3d"introjs-body"\x3e\n '+ 449c.walkMeFragments[7]+"\n \x3c/div\x3e",position:device.mobile()?"center":"right"}]}).start();a(".tooltip-card .introjs-tooltipbuttons").show();a(".introjs-tooltipbuttons").addClass("final-step");f.onbeforechange(function(g){f.refresh();switch(f._currentStep){case 0:a(".introjs-tooltipbuttons").addClass("final-step");break;case 1:a(".introjs-tooltipbuttons").removeClass("final-step")}});f.oncomplete(function(){window.localStorage.setItem("walkmeGuide","deactivated")})}var c=this,e=introJs(); 450e.setOptions({nextLabel:""+c.i18n.lblIntroJsBegin,prevLabel:"\x3csvg xmlns\x3d'http://www.w3.org/2000/svg' viewBox\x3d'0 0 64 64'\x3e\x3cpath d\x3d'M34,32L12,10L22,0L53,32L22,64L12,54L34,32Z'/\x3e\x3c/svg\x3e "+c.i18n.lblIntroJsPrevious,doneLabel:c.i18n.lblIntroJsNext+" \x3csvg xmlns\x3d'http://www.w3.org/2000/svg' viewBox\x3d'0 0 64 64'\x3e\x3cpath d\x3d'M34,32L12,10L22,0L53,32L22,64L12,54L34,32Z'/\x3e\x3c/svg\x3e",showBullets:!0,exitOnOverlayClick:!1,exitOnEsc:!0,showProgress:!1,showButtons:!1, 451overlayOpacity:"0.5",tooltipClass:"tooltip-big tooltip-header",scrollToElement:!0,scrollTo:"element",buttonClass:"introjs-button",hidePrev:!0,steps:[{intro:'\n \x3cdiv class\x3d"introjs-body"\x3e\n '+c.walkMeFragments[0]+'\n \x3cdiv class\x3d"introjs-body__buttons"\x3e\n \x3cbutton class\x3d"finish-tour button-primary"\x3e\n '+c.i18n.lblIntroJsExitTheTutorial+'\n \x3c/button\x3e\n \x3cbutton class\x3d"goToStep button-tertiary" step\x3d"2"\x3e\n '+ 452c.i18n.lblIntroJsReturn+"\n \x3c/button\x3e\n \x3c/div\x3e\n \x3c/div\x3e"},{intro:'\n \x3cdiv class\x3d"introjs-body"\x3e\n \x3csvg viewBox\x3d"0 0 480 470" xmlns\x3d"http://www.w3.org/2000/svg" class\x3d"introjs-body__hello" \x3e\n \x3cpath d\x3d"m452.16 250.28c8.9-8.46 13.8-19.72 13.81-31.7 0-11.98-4.89-23.25-13.78-31.72-4.53-4.31-9.77-7.56-15.36-9.74l19.31-18.33c34.68-45.2-11.96-79.11-24.67-76.22.54-2.72.9-26.27-13.43-40.21-20.26-19.71-50.02-11.46-57.15-7.48-2.32-5.98-11.26-16.5-11.26-16.5-18.34-17.48-48.19-17.48-66.53 0l-125.7 119.77 15.62-61.44c6.16-24.27-7.76-49.02-32.39-57.58-13.86-4.8-29.24-3.71-42.2 3-12.96 6.74-22.28 18.44-25.56 32.14-4.84 17.38-28.79 93.6-52.46 136.61-17.31 31.46-23.35 68.22-18.01 103.55 5.53 36.56 22.39 69.72 49.87 95.9 33.74 32.15 78.58 49.85 126.28 49.85h.12c47.75-.03 92.62-17.79 126.34-50l147.14-139.91zm-167.6 120.45c-28.27 27-65.87 41.88-105.9 41.9h-.1c-39.98 0-77.56-14.83-105.84-41.77-23.03-21.95-37.66-49.74-42.3-80.36-4.49-29.63 1.05-60.46 15.58-86.81 24.31-44.08 42.11-89.28 52.91-134.35 2.93-12.24 8.56-29 31.82-24.33 11.19 2.25 16.88 14.6 14.18 25.22l-27.72 109.08c-3.3 11.24 11.91 23.77 24.26 12.98l162.1-154.44c21.96-21.63 44.34 6.47 26.04 24.81l-99.61 94.9c-5.65 5.38-5.65 14.1 0 19.48 5.64 5.38 14.8 5.38 20.44
4520l121.4-115.67c19.27-19.1 43.65 7.81 26.23 25.05-35.52 35.15-85.81 81.42-121.69 115.49-5.66 5.36-5.67 14.08-.04 19.47 2.82 2.7 12.13 7.25 20.44.04l112.9-107.13c21.37-16.05 40.39 8.45 26.09 24.98-14.21 16.42-76.47 72.67-125.68 119.3-5.66 5.36-5.68 14.08-.04 19.47 2.82 2.7 11.9 7.24 20.44.04l75.7-71.8c20.34-18.73 43.71 7.86 25.57 24.5l-147.19 139.95zm151.74-26.05c3.27-6.88-.27-14.86-7.92-17.8-7.65-2.96-16.5.24-19.77 7.13-5.06 10.63-12.27 20.2-21.44 28.46-11.2 10.1-24.44 17.48-39.35 21.96-7.89 2.37-12.15 10.05-9.52 17.16 2.1 5.68 8.14 10.67 14.29 9.28 12.94-2.93 41.34-16.12 55.88-29.21 11.9-10.72 21.26-23.16 27.83-36.98zm32.89 10.56c-6.98-2.96-15.05.24-18.04 7.14-6.42 14.8-15.58 28.15-27.21 39.66-13.54 13.38-29.45 23.38-47.31 29.71-7.15 2.54-10.86 10.32-8.3 17.38 2.01 5.55 7.45 10.27 12.94 9 23.22-5.37 45.68-20.63 62.1-36.87 14.12-13.96 25.23-30.17 33.03-48.17 3-6.9-.24-14.9-7.21-17.85z" fill\x3d"#5c93ff"/\x3e\n \x3c/svg\x3e\n '+ 453c.walkMeFragments[1]+'\n \x3cdiv class\x3d"introjs-body__buttons"\x3e\n \x3cbutton class\x3d"goToStep button-primary" step\x3d"3"\x3e\n '+c.i18n.lblIntroJsBegin+"\x3csvg xmlns\x3d'http://www.w3.org/2000/svg' viewBox\x3d'0 0 64 64'\x3e\x3cpath d\x3d'M34,32L12,10L22,0L53,32L22,64L12,54L34,32Z'/\x3e\x3c/svg\x3e\n \x3c/button\x3e\n \x3cbutton class\x3d\"goToStep button-tertiary\" step\x3d\"1\"\x3e"+c.i18n.lblIntroJsSkipTutorial+ 454"\x3c/button\x3e\n \x3c/div\x3e\n \x3c/div\x3e"},{element:document.querySelector(".search-autocomplete__form-search-btn"),intro:'\n \x3cdiv class\x3d"introjs-body"\x3e\n '+c.walkMeFragments[2]+"\n \x3c/div\x3e",position:"center"},{element:device.mobile()?document.querySelector(".navigation-mobile"):document.querySelector(".navbar-nav.navigation__content"),intro:'\n \x3cdiv class\x3d"introjs-body"\x3e\n '+ 455c.walkMeFragments[3]+"\n \x3c/div\x3e",position:"center"},{element:document.querySelector(".dialogo-user-menu__name"),intro:'\n \x3cdiv class\x3d"introjs-body"\x3e\n '+c.walkMeFragments[4]+"\n \x3c/div\x3e",position:"bottom"},{element:document.querySelector(".dialogo-notifications"),intro:'\n \x3cdiv class\x3d"introjs-body"\x3e\n '+c.walkMeFragments[5]+"\n \x3c/div\x3e",position:"bottom"}]}).start().goToStep(2); 456a(".introjs-bullets").hide();a(document).on("click",".goToStep",function(){var f=a(this).attr("step");e.goToStep(f)});a(document).on("click",".finish-tour",function(){window.localStorage.setItem("walkmeGuide","deactivated");e.exit()});e.onbeforechange(function(f){e.refresh();switch(e._currentStep){case 0:a(".introjs-tooltipbuttons, .introjs-bullets").hide();break;case 1:a(".introjs-tooltipbuttons, .introjs-bullets").hide();break;case 2:e.setOptions({nextLabel:c.i18n.lblIntroJsNext+" \x3csvg xmlns\x3d'http://www.w3.org/2000/svg' viewBox\x3d'0 0 64 64'\x3e\x3cpath d\x3d'M34,32L12,10L22,0L53,32L22,64L12,54L34,32Z'/\x3e\x3c/svg\x3e", 457prevLabel:"\x3csvg xmlns\x3d'http://www.w3.org/2000/svg' viewBox\x3d'0 0 64 64'\x3e\x3cpath d\x3d'M34,32L12,10L22,0L53,32L22,64L12,54L34,32Z'/\x3e\x3c/svg\x3e "+c.i18n.lblIntroJsPrevious});a(".introjs-tooltipbuttons, .introjs-bullets").show();break;case 4:a(".introjs-bullets, .introjs-prevbutton").show(),a(".introjs-tooltipbuttons").removeClass("final-step")}});e.oncomplete(function(){setTimeout(function(){b()},700)})},handleErrors:function(b){if(!b.ok)throw Error(b.statusText);return b},showStatus:function(b){this.$Component.dataset.inactive&& 458(this.$Component.innerHTML=b)},fetchStep:function(b,c){c=void 0===c?0:c;var e=this;e.showStatus("\x3cp\x3eFetching steps\u2026\x3c/p\x3e");fetch(b+"step"+(c+1)).then(e.handleErrors).then(function(f){return f.text()}).then(function(f){e.walkMeFragments[c]=f;e.walkMeFragments.length===c+1?(e.showStatus("\x3cp\x3e\u2705 All content fragments fetched properly\x3c/p\x3e"),e.$Component.dataset.inactive||e.walkMeGuide()):e.fetchStep(b,c+1)}).catch(function(f){e.showStatus("\x3cp\x3e\u274c An error occurred while fetching resources.\x3c/p\x3e")})}}); 459a(function(){var b=document.querySelector("[data-module\x3dintrojs]"),c=window.localStorage.getItem("walkmeGuide");b&&("deactivated"!==c||b.dataset.inactive)&&new d.RocheDialogo.Components.WalkMe(a(b))})})(AEM,$); 460$(function(){var d=$(".recommendationsComponent");if(0<d.length){var a=d.attr("data-site-id");$.each(d,function(){new Vue({el:this,data:function(){return{recommendations:[],viewStatus:"private",resourcePath:""}},mounted:function(){var b=this,c,e,f,g;return $jscomp.asyncExecutePromiseGeneratorProgram(function(k){b.$component=$(b.$el);b.resourcePath=b.$component.data("bookmark-resource");c=AEM.RocheDialogo.Utils.Url.getCurrentPageParams();e=$(b.$component).attr("data-items-count");f=0<document.querySelectorAll("[data-bookmark-disable]").length; 461g=c+"/_jcr_content.personalisedsearch.json";return k.yield(axios.get(g+"?siteId\x3d"+a+"\x26ic\x3d"+e).then(function(l){b.recommendations=l.data;b.recommendations.forEach(function(h){h.disableBookmark=f});e&&b.recommendations.length>e&&b.recommendations.splice(e)}),0)})}})})}}); 462(function(d,a){d.namespace(d,"RocheDialogo.Components.PIDAccordionWithFilter");d.RocheDialogo.Components.PIDAccordionWithFilter=new d.Class;d.RocheDialogo.Components.PIDAccordionWithFilter.include({init:function(b){this.$Component=a(b);this.componentID=this.$Component.attr("id");this.$emptyLabel=this.$Component.find(".dialogo-accordion__no-results");this.$accordionContainer=this.$Component.find(".dialogo-accordion__container");this.visibleEl=0;this.filterMedicine();this.searchMedicine("")},handleSearch:function(b){var c= 463this;this.visibleEl=0;var e=this.$accordionContainer.find(".dialogo-accordion__tab");a.each(e,function(f,g){""===b?c.showElement(g):-1===a(g).find("a").html().toLowerCase().indexOf(b.toLowerCase())?a(g).hide():c.showElement(g)});this.toggleEmptyLabel()},showElement:function(b){a(b).show();this.visibleEl+=1},toggleEmptyLabel:function(){0===this.visibleEl?this.$emptyLabel.show():this.$emptyLabel.hide()},filterMedicine:function(){var b=this;this.$Component.find(".form-filter-medicines").on("submit", 464function(c){c.preventDefault();c=b.$Component.find('[name\x3d"search-medicine"]').val();b.handleSearch(c)})},searchMedicine:function(b){var c=this,e,f,g,k,l,h;return $jscomp.asyncExecutePromiseGeneratorProgram(function(m){e=c;f=e.$Component.attr("country-code");
464g=e.$Component.attr("language-code");k='{ \n documents(name: "'+b+'", languageCode: "'+g+'", countryCode: "'+f+'") {\n documents {\n id\n roId\n localId\n dtype\n link\n country {\n name\n code\n }\n language {\n code\n name\n }\n product {\n name\n activeIngredient\n formulationsMetadata {\n name\n }\n }\n localLanguageTitle\n }\n totalCount\n }\n }'; 465l=e.$Component.find(".dialogo-accordion__container");a(l).find("li").remove(".pid__item");return(h=c.$Component.attr("endpoint"))&&f?m.yield(axios.post(h,{query:k}).then(function(n){if(n.data&&n.data.data.documents.documents){n=e.generateMap(n.data.data.documents.documents);var p=e.$Component.attr("download-label"),w=e.$Component.attr("active-substance-label"),z=e.$Component.attr("presentation-label");n.forEach(function(G){a(l).append(e.getAccordionItem(G,p,w,z,f,g))})}}).finally(function(){e.checkIfEmpty(); 466e.bindEvent()}),0):m.jumpTo(0)})},getUrlPart:function(b){return window.location.pathname.split("/")[b]},getAccordionItem:function(b,c,e,f,g,k){var l=this,h="";a.each(b.sections,function(n,p){var w="";a.each(p.documentFiles,function(z,G){z=l.downloadButtonMsg(g,k,c,G.dtype);G.link&&z&&(G='\n \x3cdiv class\x3d"dialogo-accordion__download"\x3e\n \x3ca href\x3d"{{documentLink}}" class\x3d"newlook dialogo-accordion__button--pid" target\x3d"_blank"\x3e\n \x3cdiv class\x3d"dialogo-accordion__button-icon"\x3e\x3c/div\x3e\n \x3cspan class\x3d"newlook dialogo-accordion__button-text"\x3e{{download}}\x3c/span\x3e\n \x3c/a\x3e\n \x3c/div\x3e\n '.replace("{{documentLink}}", 467G.link),G=G.replace("{{download}}",z),w+=G)});n='\n \x3cdiv class\x3d"roche-rte change-font-size"\x3e\n \x3cdiv class\x3d"text-container"\x3e\n \x3cp\x3e\x3cb\x3e{{presentation}}:\x3c/b\x3e {{formulations}}\x3c/p\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3cdiv class\x3d"dialogo-accordion__buttons--pid"\x3e\n {{buttons}}\n \x3c/div\x3e\n '.replace("{{presentation}}",f);n=n.replace("{{formulations}}",p.localLanguageTitle?p.localLanguageTitle: 468function(){var z="";p.formulations.forEach(function(G){z=""+z+G.name+", "});return z.slice(0,-2)});n=n.replace("{{buttons}}",w);h+=n});var m='\n \x3cli class\x3d"dialogo-accordion__tab pid__item" data-medicine\x3d"{{productName}}" \n data-component-id\x3d"{{this.componentID}}"\n data-url-id\x3d"{{itemId}}"\x3e\n \x3cdiv class\x3d"dialogo-accordion__tab-header newlook look-h5"\x3e\n \x3ca class\x3d"dialogo-accordion__tab-link capitalize"\x3e{{productName}}\x3c/a\x3e\n \x3c/div\x3e\n \x3cdiv class\x3d"newlook look-h5 dialogo-accordion__collapse dialogo-accordion__collapse--pid hidden" id\x3d"collapsable-{{itemId}}"\x3e\n \x3cdiv class\x3d"roche-rte change-font-size"\x3e\n \x3cdiv class\x3d"text-container"\x3e\n \x3cp\x3e\x3cb\x3e{{activeSubstance}}:\x3c/b\x3e {{activeIngredient}}\x3c/p\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n {{sections}}\n \x3c/div\x3e\n \x3cbutton class\x3d"dialogo-accordion__button"\x3e\x3c/button\x3e\n \x3c/li\x3e\n '.replaceAll("{{productName}}", 469b.productName.toLowerCase());m=m.replaceAll("{{itemId}}",b.id);m=m.replaceAll("{{activeSubstance}}",e);m=m.replaceAll("{{activeIngredient}}",b.activeIngredient);return m=m.replace("{{sections}}",h)},downloadButtonMsg:function(b,c,e,f){var g={ar:{argentinapil:"Descargar - Prospecto"},bo:{packaginginformation:"Descargar - Prospecto"},br:{brazillianhealthcareprofessionalleaflet:"Baixar - Bula para Profissionais da Sa\u00fade",brazillianpatientleaflet:"Baixar - Bula para Pacientes",brazilianhealthcareprofessionalleaflet:"Baixar - Bula para Profissionais da Sa\u00fade", 470brazilianpatientleaflet:"Baixar - Bula para Pacientes"},cl:{packageinformation:"Descargar - Folleto M\u00e9dico",patientinformation:""},co:{packageinformation:"Descargar - Prospecto"},ec:{packageinformation:"Descargar - Prospecto"},mx:{mexicanpackageinsert:"Descargar - Prospecto",mexicanprescribinginformation:"Descargar - Informacion de prescripci\u00f3n"},py:{packaginginformation:"Descargar - Prospecto"},pe:{packageinformation:"Descargar - Prospecto"},uy:{packaginginformation:"Descargar - Prospecto", 471packageinformation:"Descargar - Prospecto"},ce:{}
471,cu:{},aet:{}};b=b.toLowerCase();c=c.toLowerCase();e=e+" - "+f;f=f.toLowerCase().replace(/\s/gu,"");return g[b]&&g[b][f]?"en"===c?g[b][f]?e:"":g[b][f]:e},generateMapItem:function(b){return{id:b.roId,productName:b.product.name,activeIngredient:b.product.activeIngredient,sections:[{formulations:b.product.formulationsMetadata,localLanguageTitle:b.localLanguageTitle,documentFiles:[{dtype:b.dtype,link:b.link}]}]}},generateMap:function(b){var c=this,e=new Map; 472b.sort(function(f,g){return f.product.name.localeCompare(g.product.name)});a.each(b,function(f,g){if(f=e.get(g.roId)){for(var k=g.product.formulationsMetadata,l=g.localLanguageTitle,h=f.sections,m=h.length,n=!1,p={dtype:g.dtype,link:g.link},w=0;w<m;w++)if(h[w].localLanguageTitle===l){f.sections[w].documentFiles.push(p);n=!0;break}n||f.sections.push({formulations:k,localLanguageTitle:l,documentFiles:[p]})}else f=c.generateMapItem(g);e.set(g.roId,f)});return e},arrayEquals:function(b,c){return Array.isArray(b)&& 473Array.isArray(c)&&b.length===c.length&&b.every(function(e,f){return e===c[f]})},checkIfEmpty:function(){var b=this.$Component.find(".dialogo-accordion__tab").map(function(){return"none"!==this.style.display?a(this).data("medicine").toLowerCase():null}).get(),c=this.$Component.find(".dialogo-accordion__empty");0<b.length?c.hide():c.show()},bindEvent:function(){var b=this,c=a(".dialogo-accordion__search-btn--clear",this.$Component),e=a(".dialogo-accordion__button",this.$Component),f=!1;this.$emptyLabel.hide(); 474c.on("click",function(){b.$Component.find('[name\x3d"search-medicine"]').val("");b.handleSearch("")});e.off().on("click",function(g){g=a(g.currentTarget);var k=g.parent(),l=k.children(".dialogo-accordion__collapse");d.RocheDialogo.Utils.TabUrlActions.handleUrlUpdate(k);f||(f=!0,g.toggleClass("selected"),k.toggleClass("selected"),l.slideToggle(500,function(){f=!1;a(document).trigger("accordion:change-state")}))})}});a(function(){var b=a(".js-pid-accordion");b.length&&a.each(b,function(){new d.RocheDialogo.Components.PIDAccordionWithFilter(a(this))})})})(AEM, 475$); 476(function(d){d.namespace(d,"AEM.RocheDialogo.Utils.SubmitButton");d.RocheDialogo.Utils.SubmitButton=new d.Class;d.RocheDialogo.Utils.SubmitButton.extend({init:function(){this.bindSlyButton()},bindSlyButton:function(){var a=this;$(".js-submit-button-sly").click(function(b){a.submitButtonClick(b)})},submitButtonClick:function(a){a.preventDefault();var b=$(a.currentTarget).parent().parent(),c=$(a.currentTarget).parent().parent().parent();a=c.parent().data("form-container-path");var e=c.parent().data("form-succes-message"),f= 477c.parent().data("form-error-message"),g=c.parent().data("form-validation-message");c.parent().data("form-email-field");c={};"undefined"==typeof e&&(e="Form submited!");"undefined"==typeof f&&(f="An error occured during sending!");"undefined"==typeof g&&(g="Please correct field : ");c.succesMessage=e;c.errorMessage=f;c.badValidation=g;b=this.collectFormData(b[0].children,c);b.includes("error")||this.submitEmailForm(b,a,c)},showToastMessage:function(a,b){b?(new Toastify({text:a,gravity:"top",position:"center", 478backgroundColor:"rgb(229, 29, 69)",className:"notification",duration:3E3})).showToast():(new Toastify({text:a,gravity:"top",position:"center",backgroundColor:"rgb(167, 49, 173)",className:"notification",duration:3E3})).showToast()},checkValidity:function(a,b){return"email"===a.type&&""!==a.value&&!a.value.includes("@")||a.name===b.emailFieldName&&""===a.value||a.name===b.emailFieldName&&!a.value.includes("@")||"tel"===a.type&&""!==a.value&&!String(a.value).toLowerCase().match(/^[0-9]+$/u)||a.required&& 479""===a.value?(this.showToastMessage(b.badValidation+" : "+a.labels[0].innerText,!0),!1):!0},getAndAddFieldData:function(a,b){var c={};if("checkbox"===a.type||"radio"===a.type||"option"===a.type)c.name=window.btoa(unescape(encodeURIComponent(a.name))),c.value=window.btoa(unescape(encodeURIComponent(a.value)));else if("hidden"===a.type){var e=d.RocheDialogo.Utils.FormHidden.getProperty(a.value);c.name=window.btoa(unescape(encodeURIComponent(a.name)));c.value=window.btoa(unescape(encodeURIComponent(e)))}else c.name= 480"OPTION"===a.nodeName?window.btoa(unescape(encodeURIComponent(a.parentElement.name))):window.btoa(unescape(encodeURIComponent(a.name))),c.value=window.btoa(unescape(encodeURIComponent(a.value)));b.push(c)},collectValuesRecursive:function(a,b,c){if("undefined"!==typeof a.type)switch(a.type){case "text":if(!this.checkValidity(a,c)){b.push("error");break}this.getAndAddFieldData(a,b);break;case "email":if(!this.checkValidity(a,c)){b.push("error");break}this.getAndAddFieldData(a,b);break;case "textarea":if(!this.checkValidity(a, 481c)){b.push("error");break}this.getAndAddFieldData(a,b);break;case "tel":if(!this.checkValidity(a,c)){b.push("error");break}this.getAndAddFieldData(a,b);break;case "date":if(!this.checkValidity(a,c)){b.push("error");break}this.getAndAddFieldData(a,b);break;case "number":if(!this.checkValidity(a,c)){b.push("error");break}this.getAndAddFieldData(a,b);break;case "hidden":if(!this.checkValidity(a,c)){b.push("error");break}this.getAndAddFieldData(a,b);break;case "option":if(!this.checkValidity(a,c)){b.push("error"); 482break}this.getAndAddFieldData(a,b);break;case "checkbox":if(!this.checkValidity(a,c)){b.push("error");break}a.checked&&this.getAndAddFieldData(a,b);break;case "radio":if(!this.checkValidity(a,c)){b.push("error");break}a.checked&&this.getAndAddFieldData(a,b);break;case "button":if(!this.checkValidity(a,c)){b.push("error");break}this.getAndAddFieldData(a,b);break;case "password":if(!this.checkValidity(a,c)){b.push("error");break}this.getAndAddFieldData(a,b);break;default:if(0<a.children.length){var e= 483$jscomp.makeIterator(a.children);for(a=e.next();!a.done;a=e.next())this.collectValuesRecursive(a.value,b,c)}}else if("undefined"!==typeof a.nodeName&&"OPTION"===a.nodeName)a.selected&&this.getAndAddFieldData(a,b);else if(0<a.children.length)for(e=$jscomp.makeIterator(a.children),a=e.next();!a.done;a=e.next())this.collectValuesRecursive(a.value,b,c)},collectFormData:function(a,b){var c=[];a=$jscomp.makeIterator(a);for(var e=a.next();!e.done;e=a.next())this.collectValuesRecursive(e.value,c,b);return c}, 484submitEmailForm:function(a,b,c){var e=d.RocheDialogo.Utils.Url.getCurrentPageParams();this.makeAxiosCall(e,a,b,c)},makeAxiosCall:function(a,b,c,e){var f=this;$(".js-submit-button-sly").prop("disabled",!0);axios.post(a+".email-form-submit.json",{formField:b,componentPath:c}).then(function(g){f.showToastMessage(e.succesMessage,!1)}).finally(function(){$(".js-submit-button-sly").prop("disabled",!1)}).catch(function(g){return f.showToastMessage(e.errorMessage,!0)})}});d.RocheDialogo.Utils.SubmitButton.init()})(AEM); 485(function(d){d.namespace(d,"AEM.RocheDialogo.Utils.FormHidden");d.RocheDialogo.Utils.FormHidden=new d.Class;d.RocheDialogo.Utils.FormHidden.extend({getProperty:function(a){var b=ContextHub.getStore("dialogo-profile").getTree(!1);if(b.path.startsWith("/home/users/gigya")){if(!Object.prototype.hasOwnProperty.call(b,a))return"";switch(a){case "uci":return b.uci[0];case "specialtyCode":return b.specialtyCode[0];case "professionCode":return b.professionCode[0];case "givenName":return b.givenName[0];case "familyName":return b.familyName[0]; 486case "email":return b.email[0];default:return""}}else switch(a){case "uci":return b.uci[0];case "specialtyCode":return Object.prototype.hasOwnProperty.call(b,"specialty")?b.specialty[0]:"";case "professionCode":return Object.prototype.hasOwnProperty.call(b,"profession")?b.profession[0]:"";case "givenName":return Object.prototype.hasOwnProperty.call(b,"givenName")?b.givenName[0]:"";case "familyName":return Object.prototype.hasOwnProperty.call(b,"familyName")?b.familyName[0]:"";case "email":return Object.prototype.hasOwnProperty.call(b, 487"email")?b.email[0]:"";default:return""}}})})(AEM); 488$(window).on("load",function(){var d=$(".js-standalone-button");AEM.namespace(AEM,"RocheDialogo.Components.StandaloneButton");AEM.RocheDialogo.Components.StandaloneButton=new AEM.Class;AEM.RocheDialogo.Components.StandaloneButton.include({init:function(b){var c=$(".
488standalone-button__default",b),e=$(".standalone-button__simple",b),f=navigator.userAgent;f=device.ios()&&!/CriOS/iu.test(f)&&!/FxiOS/iu.test(f)&&!/Opera|OPR\//iu.test(f);$("#landing-page").length&&f&&(e.click(function(){window.location.assign(c.attr("href"))}), 489c.hide(),e.show());b.show(50)}});var a=function(){var b=window.matchMedia||window.msMatchMedia;return b?b("(pointer:coarse)").matches:!1};d.length&&d.each(function(b,c){b=$(c);c=b.find("a");var e=c.attr("download"),f="_blank"===c.attr("target");new AEM.RocheDialogo.Components.StandaloneButton(b);a()||e&&f&&c.click(function(){window.open()})})}); 490(function(d,a){d.namespace(d,"RocheDialogo.Components.IframeAuth");d.RocheDialogo.Components.IframeAuth=new d.Class;d.RocheDialogo.Components.IframeAuth.include({init:function(b){this.initialize(b)},initialize:function(b){this.$component=b;this.iframeContentEl=this.$component.get(0).contentWindow;this.model=this.$component.data("model");this.sendPostMessage="postMessage"===this.model.sharing;this.sendParameters="urlParameters"===this.model.sharing;this.resourcePath=this.$component.data("iframe-auth-resource"); 491(this.url=this.model.url?new URL(this.model.url):null)&&this.url.protocol&&"https:"===this.url.protocol&&this.url&&this.url.hostname&&(this.sendParameters||this.sendPostMessage?this.waitForLogin():this.$component.attr("src",this.model.url))},waitForLogin:function(){var b=this;b.counter=0;var c=function(){++b.counter;var e=Cookies.get("SessionPersistence");e&&-1===e.indexOf("anonymous")?setTimeout(b.userSender.bind(b),200):400<++b.counter?b.userSender():setTimeout(c,50)};c()},getUserName:function(){var b= 492function(e){return Array.isArray(e)?e.join(" "):e},c="";this.profileInfo.givenName&&this.profileInfo.familyName?c=b(this.profileInfo.givenName)+" "+b(this.profileInfo.familyName):this.profileInfo.givenName?c=b(this.profileInfo.givenName):this.profileInfo.familyName&&(c=b(this.profileInfo.familyName));return c},getUserEmail:function(){var b="";this.profileInfo&&this.profileInfo.email&&(b=Array.isArray(this.profileInfo.email)?this.profileInfo.email[0]:this.profileInfo.email);return b},prepareEncryptUser:function(){this.encryptUserUrl= 493this.resourcePath+".encryptuser.json";this.encryptUserPayload={userPath:this.profileInfo.path||"",iframeHostname:this.url.hostname||"",userEmail:this.getUserEmail()||"",userFullName:this.getUserName()||""}},userSender:function(){var b=this;b.profileInfo=ContextHub.getStore("dialogo-profile").getTree(!1);b.profileInfo&&b.profileInfo.authorizableId&&"anonymous"!==b.profileInfo.authorizableId?(b.prepareEncryptUser(),axios.post(b.encryptUserUrl,b.encryptUserPayload).then(function(c){if(c.data&&c.data.status&& 494"success"===c.data.status&&(b.sendParameters?(b.url.searchParams.append("language",c.data.language||""),b.url.searchParams.append("user",c.data.user||""),b.$component.attr("src",b.url.href)):b.sendPostMessage&&b.$component.attr("src",b.model.url),b.sendPostMessage)){var e={language:c.data.language||"",user:c.data.user||""},f=b.url.protocol+"//"+b.url.hostname;setTimeout(function(){try{b.iframeContentEl.postMessage(e,f)}catch(g){}},500);setInterval(function(){try{b.iframeContentEl.postMessage(e,f)}catch(g){}}, 4951E3)}})):b.$component.attr("src",b.model.url)}});a(function(){var b=a(".iframe-auth-dialogo");b.length&&a.each(b,function(){new d.RocheDialogo.Components.IframeAuth(a(this))})})})(AEM,$); 496(function(d,a){a(document).ready(function(){a(document).find(".video-js").each(function(b,c){var e=a(c).parent();b=e.parent().find(".video-footer-title");var f=document.createElement("time");0===e.find("time").length&&(f.className="video-footer-time look-regular",e.parent()[0].append(f));c=e.find(".vjs-duration-display")[0];var g=new MutationObserver(function(k){k.forEach(function(l){f.innerText=l.target.innerText})});c&&g.observe(c,{childList:!0});b.click(function(){e.find(".vjs-poster").trigger("click")})})})})(AEM, 497$);$(document).ready(function(){var d=$(".js-photo__gallery");0<d.length&&$.each(d,function(){photoGalleryInit(this)})}); 498var photoGalleryInit=function(d){new Vue({el:d,data:function(){return{slidesData:[],usedSlidesArray:[],slideOrderArray:[],carouselArray:[],activeImageIndex:0,isCarouselSlided:!1,isDownload:!0,isSliding:!1,isCarousel:!0,staticCarousel:!0,slideTitle:"",slideDescription:"",screenWidthDebounce:!1,imageUrl:""}}
498,mounted:function(){this.$photoGallery=$(this.$el);this.$html=$(document).find("html");this.$fullScreen=this.$photoGallery.find(".photo__gallery-full-screen");this.$fullScreenClose=this.$photoGallery.find(".dialogo-modal__close"); 499this.$navigationContainer=this.$photoGallery.find(".photo__gallery-navigation");this.$prev=this.$photoGallery.find(".btn-prev");this.$next=this.$photoGallery.find(".btn-next");this.$textElement=this.$photoGallery.find(".photo__gallery-text");this.slideOrderArray=Array.from(this.$photoGallery[0].querySelectorAll(".photo__slide"));this.slidingTime=300;this.isSliding=!1;this.getSlidesData()},methods:{resizeHandler:function(){var a=this;this.screenWidthDebounce||(this.screenWidthDebounce=!0,this.calculateCarousel(), 500setTimeout(function(){a.screenWidthDebounce=!1},200))},getSlidesData:function(){var a=this,b,c,e,f;return $jscomp.asyncExecutePromiseGeneratorProgram(function(g){if(1==g.nextAddress)return b=a.$photoGallery.data("photo-gallery-resource"),c=b+".photo-gallery-feed.json",g.setCatchFinallyBlocks(2),g.yield(axios.get(c),4);if(2!=g.nextAddress)return e=g.yieldResult,a.slidesData=e.data,0<a.slidesData.length?a.initPhotoGallery():a.$photoGallery.hide(),g.leaveTryBlock(0);f=g.enterCatchBlock();window.console.error("Error while fetching data", 501f);g.jumpToEnd()})},initPhotoGallery:function(){this.hoverToggleFullScreenButton(this.$navigationContainer);this.generateSlides();this.calculateCounterWidth();this.$photoGallery.hasClass("carousel")?(this.isCarousel=!0,this.initCarouselLayout(),window.addEventListener("resize",this.resizeHandler)):this.isCarousel=!1},calculateCounterWidth:function(){var a=this.$photoGallery.find(".photo__gallery-counter"),b=0;99<this.slidesData.length?b=103:9<this.slidesData.length&&(b=78);0<b&&a.each(function(c, 502e){$(e).css("width",b+"px")})},generateSlides:function(){var a=this;this.usedSlidesArray=[];for(var b=[],c=-2;3>c;c++)b.push(this.calculateIndex(this.activeImageIndex,c));b.forEach(function(e){a.usedSlidesArray.push(a.slidesData.slice(e)[0])});this.setImagesSrc();this.setSlideContent()},generateSlideData:function(a){a=this.activeImageIndex+a;this.slidesData.length-1<a&&(a-=this.slidesData.length);return this.slidesData.slice(a)[0]},setImagesSrc:function(){var a=this;$(this.slideOrderArray).each(function(b, 503c){a.usedSlidesArray[b]&&$(c).find("img").attr("src",a.usedSlidesArray[b].image)})},setSlideContent:function(){this.isDownload=this.usedSlidesArray[2].download;this.slideTitle=this.usedSlidesArray[2].imageTitle;this.slideDescription=this.usedSlidesArray[2].description;this.imageUrl=this.usedSlidesArray[2].image;this.$textElement.scrollTop(0)},closeFullScreen:function(){this.$photoGallery.removeClass("full-screen");this.$html.css("overflow","visible");$(document).unbind("keydown",this.keyboardSupport)}, 504openFullScreen:function(){var a=this;this.$prev.addClass("no-transition");this.$next.addClass("no-transition");setTimeout(function(){a.$prev.removeClass("no-transition");a.$next.removeClass("no-transition")},50);this.$photoGallery.addClass("full-screen");this.$html.css("overflow","hidden");$(document).keydown(this.keyboardSupport)},keyboardSupport:function(a){switch(a.which){case 37:this.openPreviousSlide();break;case 39:this.openNextSlide();break;case 27:this.closeFullScreen();break;default:return}a.preventDefault()}, 505hoverToggleFullScreenButton:function(a){var b=this;a.hover(function(){b.$fullScreen.addClass("hidden")},function(){b.$fullScreen.removeClass("hidden")})},openPreviousSlide:function(){var a=this;if(!this.isSliding){this.isSliding=!0;var b=$(this.slideOrderArray[1]),c=$(this.slideOrderArray[2]);b.addClass("animate");c.addClass("animate");c.addClass("to-right");setTimeout(function(){b.removeClass("to-left")},this.slidingTime/2);setTimeout(function(){b.removeClass("animate");c.removeClass("animate")}, 5061.5*this.slidingTime);setTimeout(function(){a.isSliding=!1},1.75*this.slidingTime);var e=this.activeImageIndex-1;this.activeImageIndex=0>e?this.slidesData.length-1:e;e=this.calculateIndex(this.activeImageIndex,-2);this.usedSlidesArray.pop();this.usedSlidesArray.unshift(this.slidesData.slice(e)[0]);e=this.slideOrderArray.pop();var f=$(e);f.removeClass("to-right");f.addClass("to-left");f.find("img").attr("src",this.usedSlidesArray[0].image);this.slideOrderArray.unshift(e);this.setSlideContent();this.isCarousel&& 507(this.staticCarousel?this.setActiveImageInCarousel():this.isCarouselSlided?(this.generateCarousel(),this.isCarouselSlided=!1):(this.slideBack(),this.setActiveImageInCarousel()))}},openNextSlide:function(){var a=this;if(!this.isSliding){this.isSliding=!0;var b=$(this.slideOrderArray[3]),c=$(this.slideOrderArray[2]);b.addClass("animate");c.addClass("animate");c.addClass("to-left");setTimeout(function(){b.removeClass("to-right")},this.slidingTime/2);setTimeout(function(){b.removeClass("animate");c.removeClass("animate")}, 5081.5*this.slidingTime);setTimeout(function(){a.isSliding=!1},1.75*this.slidingTime);var e=this.activeImageIndex+1;this.activeImageIndex=e>this.slidesData.length-1?0:e;e=this.calculateIndex(this.activeImageIndex,2);this.usedSlidesArray.shift();this.usedSlidesArray.push(this.slidesData.slice(e)[0]);e=this.slideOrderArray.shift();var f=$(e);f.removeClass("to-left");f.addClass("to-right");f.find("img").attr("src",this.usedSlidesArray[4].image);this.slideOrderArray.push(e);this.setSlideContent();this.isCarousel&& 509(this.staticCarousel?this.setActiveImageInCarousel():this.isCarouselSlided?(this.generateCarousel(),this.isCarouselSlided=!1):(this.slideNext(),this.setActiveImageInCarousel()))}},initCarouselLayout:function(){this.$carousel=this.$photoGallery.find(".photo__gallery-carousel");this.$carouselWrapper=this.$photoGallery.find(".photo__gallery-carousel-wrapper");this.$carouselDisplayer=this.$photoGallery.find(".photo__gallery-carousel-displayer");this.$arrowsWrappers=this.$photoGallery.find(".photo__gallery-arrow-wrapper"); 510this.hoverToggleFullScreenButton(this.$carousel);this.calculateCarousel()},calculateCarousel:function(){var a=this;this.$carouselDisplayer.removeClass("arrows");this.$carouselDisplayer.removeAttr("style");this.$arrowsWrappers.each(function(c,e){$(e).addClass("hidden")});var b=(this.$carouselDisplayer.width()+20)/210;this.slidesData.length<b?(this.staticCarousel=!0,this.$carouselWrapper.removeClass("offset"),this.carouselArray=[],this.slidesData.forEach(function(c,e){a.carouselArray.push({index:e, 511data:c})}),this.fillCarousel()):(this.staticCarousel=!1,this.$carouselDisplayer.addClass("arrows"),b=(this.$carouselDisplayer.width()+20)/210,this.visibleImages=Math.floor(b),this.$carouselDisplayer.css("width",210*this.visibleImages),this.generateCarousel())},generateCarousel:function(){var a=this;this.carouselArray=[];this.$arrowsWrappers.each(function(e,f){e=$(f);e.removeClass("hidden");e.on("click",function(){a.isCarouselSlided=!0});a.$carouselWrapper.addClass("offset")});for(var b=[this.calculateIndex(this.activeImageIndex, 512-2),this.calculateIndex(this.activeImageIndex,-1)],c=0;c<this.visibleImages+2;c++)b.push(this.calculateIndex(this.activeImageIndex,c));b.forEach(function(e){a.carouselArray.push({index:e,data:a.slidesData.slice(e)[0]})});this.fillCarousel();this.leftIndex=b[0];this.rightIndex=b.slice(-1)[0]},fillCarousel:function(){var a=this;this.$carouselWrapper.empty();
512$(this.carouselArray).each(function(b,c){b=a.generateThumbnail(c.data,c.index);a.$carouselWrapper.append(b[0])});this.setActiveImageInCarousel()}, 513generateThumbnail:function(a,b){var c=this,e=$($.parseHTML('\x3cbutton class\x3d"photo__gallery-carousel-thumbnail"\x3e\x3c/button\x3e'));a=$.parseHTML('\x3cimg src\x3d"'+a.thumbnail+'" alt\x3d"thumbnail"/\x3e');e.attr("data-photo-gallery-thumbnail-index",b);e.append(a);e.on("click",function(){var f=e.data("photo-gallery-thumbnail-index");c.activeImageIndex=f;c.generateSlides();c.setActiveImageInCarousel()});return e},setActiveImageInCarousel:function(){var a=this.$photoGallery.find(".photo__gallery-carousel-thumbnail.active"), 514b=this.$photoGallery.find('[data-photo-gallery-thumbnail-index\x3d"'+this.activeImageIndex+'"]');a.removeClass("active");b.addClass("active")},slideBack:function(){this.leftIndex=this.calculateIndex(this.leftIndex,-1);this.rightIndex=this.calculateIndex(this.rightIndex,-1);var a=this.$carouselWrapper.children().last(),b=this.slidesData.slice(this.leftIndex)[0],c=this.generateThumbnail(b,this.leftIndex);c.addClass("to-left");this.$carouselWrapper.prepend(c[0]);a.remove();setTimeout(function(){c.removeClass("to-left")}, 51510);this.leftIndex===this.activeImageIndex&&this.setActiveImageInCarousel()},slideNext:function(){this.leftIndex=this.calculateIndex(this.leftIndex,1);this.rightIndex=this.calculateIndex(this.rightIndex,1);var a=this.$carouselWrapper.children().first(),b=this.slidesData.slice(this.rightIndex)[0];b=this.generateThumbnail(b,this.rightIndex);a.addClass("to-left");this.$carouselWrapper.append(b[0]);setTimeout(function(){a.remove()},300);this.rightIndex===this.activeImageIndex&&this.setActiveImageInCarousel()}, 516calculateIndex:function(a,b){a+=b;0>a?a=this.slidesData.length+a:a>this.slidesData.length-1&&(a-=this.slidesData.length);return a}}})};$(document).ready(function(){var d=$(".js-error-component");if(0<d.length){var a=$(".js-sitelogo").attr("href");d.attr("href",a)}}); 517(function(d,a){d.namespace(d,"RocheDialogo.Components.Tabs");d.RocheDialogo.Components.TabNavigation=new d.Class;d.RocheDialogo.Components.TabNavigation.include({init:function(b){this.element=b;this.tablist=b.querySelector(".dialogo-tabs__tablist");this.element.classList.contains("dialogo-tabs--no-shadow")||(this.createShadowElements(),this.handleShadowsOnScroll(),window.addEventListener("resize",this.handleShadowsOnScroll.bind(this)));this.scrollByDrag();this.scrollByMouseWheel();this.scrollToActiveTab(); 518this.setColors()},createShadowElements:function(){this.shadowLeft=document.createElement("span");this.shadowRight=document.createElement("span");this.shadowLeft.classList.add("dialogo-tabs__shadow");this.shadowRight.classList.add("dialogo-tabs__shadow");this.element.appendChild(this.shadowLeft);this.element.appendChild(this.shadowRight)},handleShadowsOnScroll:function(){var b=this,c=this.element.querySelector(".dialogo-tabs__tablist"),e=c.scrollWidth-c.offsetWidth;c.addEventListener("scroll",function(){var f= 519c.scrollLeft/e;b.shadowLeft.style.opacity=0<f?1:0;b.shadowRight.style.opacity=1===f?0:1})},scrollByDrag:function(){var b=this,c=!1,e=0,f=0;this.tablist.addEventListener("mousedown",function(g){c=!0;e=g.pageX-b.tablist.offsetLeft;f=b.tablist.scrollLeft});this.tablist.addEventListener("mouseleave",function(){c=!1});this.tablist.addEventListener("mouseup",function(){c=!1});this.tablist.addEventListener("mousemove",function(g){c&&(g.preventDefault(),b.tablist.scrollLeft=f-1.5*(g.pageX-b.tablist.offsetLeft- 520e))})},scrollByMouseWheel:function(){var b=this;this.tablist.addEventListener("wheel",function(c){c.preventDefault();b.tablist.scrollLeft+=c.deltaY})},scrollToActiveTab:function(){var b=this.element.querySelector(".dialogo-tabs__tab .active");b&&b.offsetLeft+b.offsetWidth>this.tablist.offsetWidth&&(this.tablist.scrollLeft=b.offsetLeft-b.offsetWidth/2)},getSpecialityName:function(b){var c=b.dataset.type;"neurology rheumatology hematology hemophilia neumology ophthalmology diabetes oncology".split(" ").forEach(function(e){return c&& 521c.includes(e)?e:null});return null},setColors:function(){var b=this;this.element.querySelectorAll(".dialogo-tabs__tab .dialogo-tabs__button").forEach(function(c){var e=c.getAttribute("data-tag-name")||b.getSpecialityName(c);d.RocheDialogo.Utils.ColorBinding.setCSSVariable(c,e)})}})})(AEM,$); 522$(document).ready(function(){document.body.querySelectorAll(".dialogo-tabs").forEach(function(d){if(d.closest(".campaign")){if(window.ContextHub&&ContextHub.SegmentEngine)ContextHub.eventing.on(ContextHub.Constants.EVENT_TEASER_LOADED,function(a,b){b.data.forEach(function(c){c=$("#"+c.key).find(".dialogo-tabs");0<c.length&&c.each(function(e,f){new AEM.RocheDialogo.Components.TabNavigation(f)})})})}else new AEM.RocheDialogo.Components.TabNavigation(d)})}); 523(function(d){d.namespace(d,"AEM.RocheDialogo.Utils.ExitPageButton");d.RocheDialogo.Utils.ExitPageButton=new d.Class;d.RocheDialogo.Utils.ExitPageButton.extend({init:function(){var a=this;document.body.addEventListener("click",function(b){var c=b.target.closest("a");if(c&&"A"===c.nodeName&&"#exitRoche"===c.dataset.target)a.onClick(b,c)})},onClick:function(a,b){a.preventDefault();b=b.getAttribute("href");b.startsWith("/")&&(b=b.split(".html")[0]);this.exitPageButtonClick(a,"",b)},exitPageButtonClick:function(a, 524b,c){a.preventDefault();"dialogo-landing"===document.head.querySelector("[name~\x3dtemplate][content]").content?document.location=c:(a=$("#anchorExitModal"),b?(a.attr("href",b),a.on("click",function(){return $("#exitRoche").modal("hide")})):c&&(a.attr("href",c),a.on("click",function(){return $("#exitRoche").modal("hide")})))}});d.RocheDialogo.Utils.ExitPageButton.init()})(AEM); 525(function(){function d(){$(".s7dm-dynamic-media").each(function(){var e=$
525(this),f=e.attr("id"),g=S7dmUtils[f],k=e.data("asset-type"),l=e.data("mode"),h=e.data("stagesize");"undefined"!=typeof g&&null!=g&&(g.dispose(),S7dmUtils[f]=null,e.removeClass("s7responsiveViewer"));e.html("");if(g=e.data("viewer-type")){k=e.data("asset-path");l=e.data("asset-type");var m=e.data("viewer-type"),n=e.data("imageserver"),p=e.data("videoserver"),w=e.data("contenturl"),z=e.data("config"),G=e.data("wcmdisabled"),L= 526e.data("stagesize"),B=e.data("viewermodifiers"),A=e.data("dms7");n={asset:k,serverurl:n,contenturl:w};if(B){w=$;var q=w.extend,E={};if(B){B=B.split("\x26");for(var H=0;H<B.length;H++)if(0<B[H].indexOf("\x3d")){var N=B[H].substring(0,B[H].indexOf("\x3d")),y=B[H].substring(B[H].indexOf("\x3d")+1);E[N]=y}}q.call(w,n,E)}(G=!G&&""!=G)&&(n.asset+="?cache\x3doff");L&&(n.stagesize=L);"FlyoutViewer"==m&&(n.imagereload="1,breakpoint,100;320;480");0!=k.indexOf("/")&&(n.aemmode="0");if(0<=m.indexOf("Video")|| 5270<=m.indexOf("Mixed"))if(n.videoserverurl=p,"video"==l||"undefined"!=typeof A&&G)n.playback="native",n.progressivebitrate="20000";"undefined"!=typeof z&&0<z.length&&(k=z.split("|")[0],n.config=k);k={containerId:e.attr("id"),params:n};"FlyoutViewer"==g&&h||e.addClass("s7responsiveViewer");g=new s7viewers[g](k);if("undefined"!=typeof Granite&&"undefined"!=typeof Granite.I18n){e=g;h=e.setLocalizedTexts;k={};l=Granite.I18n.getLocale();m=s7sdk_i18n.localizedText;p={};for(var C in m){z=m[C];for(var D in z)p[C+ 528"."+D]=z[D]}k[l]=p;k.defaultLocale=Granite.I18n.getLocale();h.call(e,k)}S7dmUtils[f]=g;g.init()}else"image"===k&&(e.data("breakpoints")||"smartcrop"==l?(l=e.data("imagepreset"),p=e.data("imageserver"),g=e.data("linkurl"),k=e.data("linktarget"),D=e.data("title"),h=e.data("alt"),m=e.data("urlmodifiers"),f=$("\x3cdiv\x3e",{"class":"s7responsiveContainer"}),C=e.attr("id")+"_resp",p={id:C,src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7","data-src":p+e.data("asset-path"), 529"class":"fluidimage","data-mode":e.data("mode"),"data-breakpoints":e.data("breakpoints")},l&&(p["data-src"]+="?$"+l+"$"),m&&(p["data-src"]+=(l?"\x26":"?")+m),l=$("\x3cimg\x3e",p),g?(g={href:g,target:k},h&&(g.alt=h,g.title=h,l.attr("alt",h)),D&&(g.title=D),D=$("\x3ca\x3e",g),D.append(l),f.append(D)):(h&&l.attr("alt",h),f.append(l)),e.append(f),s7responsiveImage(document.getElementById(C))):a(e));e=$(this);if(f=e.data("title"))C=$("\x3cspan\x3e",{"class":"spects"}),C.text(f),e.append(C)})}function a(e){var f= 530e.data("stagesize"),g=e.data("linkurl"),k=e.data("linktarget"),l=e.data("title"),h=e.data("alt"),m=e.data("imagepreset"),n=e.data("imageserver"),p=e.data("urlmodifiers"),w=e.data("external-url");n={src:n+e.data("asset-path")};m&&(n.src+="?$"+m+"$");p&&(n.src+=(m?"\x26":"?")+p);f&&(f=f.split(","),n.width=f[0],1<f.length&&(n.height=f[1]));f=$("\x3cimg\x3e",n);if(g){k={href:g,target:k};h&&(k.alt=h,k.title=h,f.attr("alt",h));l&&(k.title=l);w&&(k["data-toggle"]="modal",k["data-target"]="#exitRoche");l= 531$("\x3ca\x3e",k);if(w)l.on("click",function(z){AEM.RocheDialogo.Utils.ExitPageButton.exitPageButtonClick(z,void 0,g)});l.append(f);e.append(l)}else h&&f.attr("alt",h),e.append(f)}function b(){console.log("S7Viewer is missing")}var c={BasicZoomViewer:"html5/js/BasicZoomViewer.js",FlyoutViewer:"html5/js/FlyoutViewer.js",MixedMediaViewer:"html5/js/MixedMediaViewer.js",SpinViewer:"html5/js/SpinViewer.js",VideoViewer:"html5/js/VideoViewer.js",ZoomViewer:"html5/js/ZoomViewer.js",ZoomVerticalViewer:"html5/js/ZoomVerticalViewer.js", 532Responsive:"libs/responsive_image.js"};$(document).ready(function(){if(0<$(".s7dm-dynamic-media").length){var e=new S7dmUtils.Viewer,f=$(".s7dm-dynamic-media").data("viewer-path"),g=$(".s7dm-dynamic-media").data("page-locale"),k="/libs/dam/components/scene7/common/clientlibs/i18n.js";"undefined"!=typeof Granite&&"undefined"!=typeof Granite.I18n&&(Granite.I18n.setLocale(g),k=Granite.HTTP.externalize(k));$("head").append('\x3cscript type\x3d"text/javascript" src\x3d"'+k+'"\x3e\x3c/script\x3e');e.load(c, 533f).ready({success:d,fail:b})}})}).call(this);
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.