0&&(t[h-1]={element:g,intro:g.getAttribute("data-intro"),step:parseInt(g.getAttribute("data-step"),10),tooltipClass:g.getAttribute("data-tooltipClass"),highlightClass:g.getAttribute("data-highlightClass"),position:g.getAttribute("data-position")||this._options.tooltipPosition})}var v=0;for(a=0,p=r.length;a0?u.call(i):o&&o.className.indexOf("introjs-skipbutton")>0?(i._introItems.length-1===i._currentStep&&"function"==typeof i._introCompleteCallback&&i._introCompleteCallback.call(i),i._introItems.length-1!==i._currentStep&&"function"==typeof i._introExitCallback&&i._introExitCallback.call(i),d.call(i,e)):l.call(i),t.preventDefault?t.preventDefault():t.returnValue=!1}else if(9===t.keyCode&&!i._options.overrideTabbing){var r=n(".introjs-tooltip"),a=r.find("*").filter("a, button, :input, [tabindex]").not("[tabIndex=-1]").filter(":visible"),s=r.find(":focus"),c=a.length,m=a.index(s);t.shiftKey?0===m&&(a.get(c-1).focus(),t.preventDefault()):m===c-1&&(a.get(0).focus(),t.preventDefault())}},i._onResize=function(e){y.call(i,document.querySelector(".introjs-helperLayer")),y.call(i,document.querySelector(".introjs-tooltipReferenceLayer"))},window.addEventListener?(this._options.keyboardNavigation&&window.addEventListener("keydown",i._onKeyDown,!0),window.addEventListener("resize",i._onResize,!0)):document.attachEvent&&(this._options.keyboardNavigation&&document.attachEvent("onkeydown",i._onKeyDown),document.attachEvent("onresize",i._onResize))}return!1,o=!1,!1}function s(e){if(null==e||"object"!=typeof e||void 0!==e.nodeType)return e;var t={};for(var n in e)t[n]=s(e[n]);return t}function c(e){this._currentStep=e-2,void 0!==this._introItems&&l.call(this)}function l(){if(this._direction="forward",void 0===this._currentStep?this._currentStep=0:++this._currentStep,this._introItems.length<=this._currentStep)return"function"==typeof this._introCompleteCallback&&this._introCompleteCallback.call(this),void d.call(this,this._targetElement);var e=this._introItems[this._currentStep];void 0!==this._introBeforeChangeCallback&&this._introBeforeChangeCallback.call(this,e.element),v.call(this,e)}function u(){if(this._direction="backward",0===this._currentStep)return!1;var e=this._introItems[--this._currentStep];void 0!==this._introBeforeChangeCallback&&this._introBeforeChangeCallback.call(this,e.element),v.call(this,e)}function d(e){e||(e=document.getElementsByTagName("body")[0]);var t=e.querySelector(".introjs-overlay");if(null!=t){t.style.opacity=0,setTimeout((function(){t.parentNode&&t.parentNode.removeChild(t)}),500);var n=e.querySelector(".introjs-helperLayer");n&&n.parentNode.removeChild(n);var i=e.querySelector(".introjs-tooltipReferenceLayer");i&&(document.querySelector("#dashboard-content").removeAttribute("aria-hidden"),i.parentNode.removeChild(i),this._lastFocusedElement&&this._lastFocusedElement.focus());var o=e.querySelector(".introjs-disableInteraction");o&&o.parentNode.removeChild(o);var r=document.querySelector(".introjsFloatingElement");r&&r.parentNode.removeChild(r);var a=document.querySelector(".introjs-showElement");a&&(a.className=a.className.replace(/introjs-[a-zA-Z]+/g,"").replace(/^\s+|\s+$/g,""));var s=document.querySelectorAll(".introjs-fixParent");if(s&&s.length>0)for(var c=s.length-1;c>=0;c--)s[c].className=s[c].className.replace(/introjs-fixParent/g,"").replace(/^\s+|\s+$/g,"");window.removeEventListener?window.removeEventListener("keydown",this._onKeyDown,!0):document.detachEvent&&document.detachEvent("onkeydown",this._onKeyDown),this._currentStep=void 0}}function m(e,t,n,i){var o,r,a,s="";if(t.style.top=null,t.style.right=null,t.style.bottom=null,t.style.left=null,t.style.marginLeft=null,t.style.marginTop=null,n.style.display="inherit",void 0!==i&&null!=i&&(i.style.top=null,i.style.left=null),this._introItems[this._currentStep]){s="string"==typeof(o=this._introItems[this._currentStep]).tooltipClass?o.tooltipClass:this._options.tooltipClass,t.className=("introjs-tooltip "+s).replace(/^\s+|\s+$/g,"");s=this._options.tooltipClass;currentTooltipPosition=this._introItems[this._currentStep].position,"auto"!=currentTooltipPosition&&"auto"!=this._options.tooltipPosition||"floating"!=currentTooltipPosition&&(currentTooltipPosition=f.call(this,e,t,currentTooltipPosition));var c=T(e),l=T(t).height,u=A();switch(t.className="introjs-tooltip introjs-tooltip-"+currentTooltipPosition,currentTooltipPosition){case"top":t.style.left="15px",t.style.top="-"+(l+10)+"px",n.className="introjs-arrow bottom";break;case"right":t.style.left=T(e).width+20+"px",c.top+l>u.height&&(n.className="introjs-arrow left-bottom",t.style.top="-"+(l-c.height-20)+"px"),n.className="introjs-arrow left";break;case"right-middle":t.style.left=T(e).width+"px",t.style.top=c.height/2+"px",n.className="introjs-arrow left";break;case"left":1==this._options.showStepNumbers&&(t.style.top="15px"),c.top+l>u.height?(t.style.top="-"+(l-c.height-20)+"px",n.className="introjs-arrow right-bottom"):n.className="introjs-arrow right",t.style.right=c.width+20+"px";break;case"left-middle":t.style.right=c.width+20+"px",t.style.top=c.height/2-5+"px",n.className="introjs-arrow right";break;case"floating":n.style.display="none",r=T(t),t.style.left="50%",t.style.top="50%",t.style.marginLeft="-"+r.width/2+"px",t.style.marginTop="-"+r.height/2+"px",void 0!==i&&null!=i&&(i.style.left="-"+(r.width/2+18)+"px",i.style.top="-"+(r.height/2+18)+"px");break;case"bottom-right-aligned":n.className="introjs-arrow top-right",t.style.right="0px",t.style.bottom="-"+(T(t).height+10)+"px";break;case"bottom-middle-aligned":a=T(e),r=T(t),n.className="introjs-arrow top-middle",t.style.left=a.width/2-r.width/2+"px",t.style.bottom="-"+(r.height+120)+"px";break;case"bottom-left-aligned":case"bottom":default:t.style.bottom="-"+(T(t).height+10)+"px",t.style.left=T(e).width/2-T(t).width/2+"px",n.className="introjs-arrow top"}document.querySelector(".introjs-tooltiptext").focus()}}function f(e,t,n){var i=this._options.positionPrecedence.slice(),o=A(),r=T(t).height+10,a=T(t).width+20,s=T(e),c="floating";return s.left+a>o.width||s.left+s.width/2-a<0?(p(i,"bottom"),p(i,"top")):(s.height+s.top+r>o.height&&p(i,"bottom"),s.top-r<0&&p(i,"top")),s.width+s.left+a>o.width&&p(i,"right"),s.left-a<0&&p(i,"left"),i.length>0&&(c=i[0]),n&&"auto"!=n&&i.indexOf(n)>-1&&(c=n),c}function p(e,t){e.indexOf(t)>-1&&e.splice(e.indexOf(t),1)}function g(){setTimeout((function(){n(".introjs-overlay").remove(),n(".introjs-helperLayer").remove(),n(".introjs-tooltipReferenceLayer").remove(),n("body").removeClass("disableScrolling"),n(".introjs-showElement").removeClass("introjs-showElement"),n("#site-tour-wrapper").remove(),n("#site-tour-overlay").remove()}),0)}function y(e){if(this._introItems&&this._introItems[this._currentStep]){try{var t=this._introItems[this._currentStep].element,n=this._introItems[this._currentStep].position,o=document.querySelector(".introjs-tooltip")}catch(e){return i.log("tour failed with error",e),void g()}if(e){var r=this._introItems[this._currentStep],a=T(r.element),s=10;"floating"==r.position&&(s=0),e.setAttribute("style","width: "+(a.width+s)+"px; height:"+(a.height+s)+"px; top:"+(a.top-5)+"px;left: "+(a.left-5)+"px;")}if(o)switch(n){case"right-middle":o.style.left=T(t).width+20+"px"}}}function h(){var e=document.querySelector(".introjs-disableInteraction");null===e&&((e=document.createElement("div")).className="introjs-disableInteraction",this._targetElement.appendChild(e)),y.call(this,e)}function v(e){void 0!==this._introChangeCallback&&this._introChangeCallback.call(this,e.element);var t=this,n=document.querySelector(".introjs-helperLayer"),o=document.querySelector(".introjs-tooltipReferenceLayer"),r="introjs-helperLayer";T(e.element);if(this._options.exitSiteTourAda){var a=document.createElement("span");a.className="util accessible-text",a.innerHTML=this._options.exitSiteTourAda?this._options.exitSiteTourAda:""}var s=document.createElement("span");if(s.className="util accessible-text",s.id="tooltip-content-ada","string"==typeof e.highlightClass&&(r+=" "+e.highlightClass),"string"==typeof this._options.highlightClass&&(r+=" "+this._options.highlightClass),null!=n){var c=o.querySelector(".introjs-helperNumberLayer"),f=o.querySelector(".introjs-tooltiptext"),p=o.querySelector(".introjs-arrow"),v=o.querySelector(".introjs-tooltip"),E=o.querySelector("#tooltip-content-ada"),S=o.querySelector(".introjs-skipbutton"),_=o.querySelector(".introjs-prevbutton"),O=o.querySelector(".introjs-nextbutton");if(n.className=r,v.style.opacity=0,v.style.display="none",null!=c){var D=this._introItems[e.step-2>=0?e.step-2:0];(null!=D&&"forward"==this._direction&&"floating"==D.position||"backward"==this._direction&&"floating"==e.position)&&(c.style.opacity=0)}y.call(t,n),y.call(t,o);var I=document.querySelectorAll(".introjs-fixParent");if(I&&I.length>0)for(var N=I.length-1;N>=0;N--)I[N].className=I[N].className.replace(/introjs-fixParent/g,"").replace(/^\s+|\s+$/g,"");var L=document.querySelector(".introjs-showElement");L.className=L.className.replace(/introjs-[a-zA-Z]+/g,"").replace(/^\s+|\s+$/g,""),t._lastShowElementTimer&&clearTimeout(t._lastShowElementTimer),t._lastShowElementTimer=setTimeout((function(){null!=c&&(c.innerHTML=e.step),f.innerHTML=e.intro,E.innerHTML=e.ada,v.style.display="block",m.call(t,e.element,v,p,c),o.querySelector(".introjs-bullets li > a.active").className="",o.querySelector('.introjs-bullets li > a[data-stepnumber="'+e.step+'"]').className="active",o.querySelector(".introjs-progress .introjs-progressbar").setAttribute("style","width:"+C.call(t)+"%;"),v.style.opacity=1,c&&(c.style.opacity=1),O.tabIndex}),350)}else{var M=document.createElement("div"),P=document.createElement("div"),w=document.createElement("div"),R=document.createElement("div"),x=document.createElement("h1"),k=document.createElement("div"),F=document.createElement("div"),U=document.createElement("div");M.className=r,P.className="introjs-tooltipReferenceLayer",document.querySelector("#dashboard-content").setAttribute("aria-hidden","true"),this._lastFocusedElement=document.activeElement,y.call(t,M),y.call(t,P),this._targetElement.appendChild(M),this._targetElement.appendChild(P),w.className="introjs-arrow",x.className="introjs-tooltiptext",x.innerHTML=e.intro,x.tabIndex=-1,k.className="introjs-bullets",!1===this._options.showBullets&&(k.style.display="none");for(var V=document.createElement("ul"),B=(N=0,this._introItems.length);N1&&(U.appendChild(_),U.appendChild(O)),R.appendChild(U),m.call(t,e.element,R,w,j)}!0===this._options.disableInteraction&&h.call(t),0==this._currentStep&&this._introItems.length>1?(_.className="introjs-button introjs-prevbutton introjs-disabled",O.className="introjs-button introjs-nextbutton focus whiteOutline",S.innerHTML=this._options.skipLabel,a&&S.appendChild(a)):1==this._introItems.length?(S.innerHTML=e.exitLabel,a&&S.appendChild(a),_.className="introjs-button introjs-prevbutton focus whiteOutline",O.className="introjs-button introjs-nextbutton introjs-disabled"):this._introItems.length-1==this._currentStep?(S.innerHTML=this._options.doneLabel,a&&S.appendChild(a),_.className="introjs-button introjs-prevbutton focus whiteOutline",O.className="introjs-button introjs-nextbutton introjs-disabled"):(_.className="introjs-button introjs-prevbutton focus whiteOutline",O.className="introjs-button introjs-nextbutton focus whiteOutline",S.innerHTML=this._options.skipLabel,a&&S.appendChild(a)),e.element.className+=" introjs-showElement";var G=b(e.element,"position");"absolute"!==G&&"relative"!==G&&(e.element.className+=" introjs-relativePosition");for(var K=e.element.parentNode;null!=K&&"body"!==K.tagName.toLowerCase();){var W=b(K,"z-index"),z=parseFloat(b(K,"opacity")),X=b(K,"transform")||b(K,"-webkit-transform")||b(K,"-moz-transform")||b(K,"-ms-transform")||b(K,"-o-transform");(/[0-9]+/.test(W)||z<1||"none"!==X)&&(K.className+=" introjs-fixParent"),K=K.parentNode}if(!function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom+80<=window.innerHeight&&t.right<=window.innerWidth}(e.element)&&!0===this._options.scrollToElement){var J=e.element.getBoundingClientRect(),$=A().height,Z=J.bottom-(J.bottom-J.top),Q=J.bottom-$;Z<0||e.element.clientHeight>$?window.scrollBy(0,Z-130):window.scrollBy(0,Q+100)}void 0!==this._introAfterChangeCallback&&this._introAfterChangeCallback.call(this,e.element)}function b(e,t){var n="";return e.currentStyle?n=e.currentStyle[t]:document.defaultView&&document.defaultView.getComputedStyle&&(n=document.defaultView.getComputedStyle(e,null).getPropertyValue(t)),n&&n.toLowerCase?n.toLowerCase():n}function A(){if(null!=window.innerWidth)return{width:window.innerWidth,height:window.innerHeight};var e=document.documentElement;return{width:e.clientWidth,height:e.clientHeight}}function E(e){var t=document.createElement("div"),n="",i=this;if(t.className="introjs-overlay","body"===e.tagName.toLowerCase())n+="top: 0;bottom: 0; left: 0;right: 0;position: fixed;",t.setAttribute("style",n);else{var o=T(e);o&&(n+="width: "+o.width+"px; height:"+o.height+"px; top:"+o.top+"px;left: "+o.left+"px;",t.setAttribute("style",n))}return e.appendChild(t),t.onclick=function(){1==i._options.exitOnOverlayClick&&(d.call(i,e),null!=i._introExitCallback&&i._introExitCallback.call(i))},setTimeout((function(){n+="opacity: "+i._options.overlayOpacity.toString()+";",t.setAttribute("style",n)}),10),!0}function T(e){var t={};t.width=e.offsetWidth,t.height=e.offsetHeight;for(var n=0,i=0;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)n+=e.offsetLeft,i+=e.offsetTop,e=e.offsetParent;return t.top=i,t.left=n,t}function C(){return parseInt(this._currentStep+1,10)/this._introItems.length*100}var S=function(e){if("object"==typeof e)return new r(e);if("string"==typeof e){var t=document.querySelector(e);if(t)return new r(t);throw new Error("There is no element with given selector.")}return new r(document.body)};return S.version="1.0.0",S.fn=r.prototype={clone:function(){return new r(this)},setOption:function(e,t){return this._options[e]=t,this},setOptions:function(e){return this._options=function(e,t){var n={};for(var i in e)n[i]=e[i];for(var i in t)n[i]=t[i];return n}(this._options,e),this},start:function(){return a.call(this,this._targetElement),this},goToStep:function(e){return c.call(this,e),this},nextStep:function(){return l.call(this),this},previousStep:function(){return u.call(this),this},cancel:function(){o=!0},exit:function(){return d.call(this,this._targetElement),this},refresh:function(){return y.call(this,document.querySelector(".introjs-helperLayer")),y.call(this,document.querySelector(".introjs-tooltipReferenceLayer")),this},onbeforechange:function(e){if("function"!=typeof e)throw new Error("Provided callback for onbeforechange was not a function");return this._introBeforeChangeCallback=e,this},onchange:function(e){if("function"!=typeof e)throw new Error("Provided callback for onchange was not a function.");return this._introChangeCallback=e,this},onafterchange:function(e){if("function"!=typeof e)throw new Error("Provided callback for onafterchange was not a function");return this._introAfterChangeCallback=e,this},oncomplete:function(e){if("function"!=typeof e)throw new Error("Provided callback for oncomplete was not a function.");return this._introCompleteCallback=e,this},onexit:function(e){if("function"!=typeof e)throw new Error("Provided callback for onexit was not a function.");return this._introExitCallback=e,this}},e.introJs=S,S})),define("common/tours/singleTour",["require","common/lib/inview","blue/$","analytics/event/decisionedContentEvent","blue/event/channel/component","appkit-utilities/common/mediaQueryListener","blue/siteMode","common/tours/intro"],(function(e){"use strict";e("common/lib/inview");var t,n,i=e("blue/$"),o=e("analytics/event/decisionedContentEvent"),r=e("blue/event/channel/component"),a=e("appkit-utilities/common/mediaQueryListener"),s=!1,c=e("blue/siteMode"),l=c.isModeEnabled("ecdStandIn"),u=c.isModeEnabled("readOnly"),d=e("common/tours/intro")(),m={showStepNumbers:!1,overlayOpacity:1,showBullets:!1,inview:!0,disableScrolling:!0,disableAnalytics:!1,customAnalyticsEvent:!1,delayTime:1e3,delay:!0,exitOnOverlayClick:!1,onShow:null,onClose:null},f=i("body"),p=i(window),g={};return function(e,c){return function(e,c){if(e){var y={},h={};e.component&&(y=e.component,h=y.context.application,delete e.component);var v=function(e){if(!E()&&!u&&!l){var t=i(m.steps[0].element),a=i("#header-outer-container");setTimeout((function(){if(!s){if(t.unbind("inview"),m.disableScrolling&&f.addClass("disableScrolling"),n="body-"+m.highlightClass,f.addClass(n),m.disableAnalytics||!y&&!m.customAnalyticsEvent||(m.customAnalyticsEvent?m.customAnalyticsEvent():(g.toolTipElementSelector=m.steps[0].element,r.emit(new o(y,g)))),e&&e0&&d.refresh()}))}))).observe(i("#content")[0],{attributes:!0,childList:!0,characterData:!0})};return m.steps=[e],c&&(m=i.extend(m,c)),d.setOptions(m).oncomplete(b).onexit(b),m.inview&&i(m.steps[0].element).unbind("inview").one("inview",(function(e,t,n,i,o){v(o)})),{start:v}}}(e,c)}})),define("common/oobe/singleTooltipUtil",["require","blue/$","blue/util","common/oobe/controllerMap","common/oobe/elements","common/tours/singleTour"],(function(e){"use strict";var t=null,n=e("blue/$"),i=e("blue/util"),o=e("common/oobe/controllerMap"),r={},a=e("common/oobe/elements"),s=e("common/tours/singleTour"),c={},l={},u={},d=!1,m=["singleDoor/singleDoorController"];function f(e){return n(e).length>0}function p(e,t){return e[t]}function g(e,n){for(var i in t.on("hasCampaignMessage",(function(){d=!0})),t.on("oobeRequest",(function(e){l[e.route]&&0===o[e.route].length?y(e):(u={})[e.route]=e})),e){if(e.hasOwnProperty(i))o[i].indexOf(n)<0?(delete l[i],o[i]=r[i]):o[i].splice(o[i].indexOf(n),1),l[i]||(l[i]={},l[i].components=[],l[i].types=[]),e[i].forEach((function(e){var t=e.component,n=e.types?e.types:["Global"];t&&(l[i].components.push(t),Array.isArray(n)&&n.length&&(l[i].types=l[i].types.concat(n),n.forEach((function(e){c[e]=t}))))}))}!function(){if(Object.keys(u).length)for(var e in l)if(u[e]){0===o[e].length&&y(u[e]);break}}()}function y(e){if(e&&e.route&&l[e.route])for(var n=l[e.route],i=n.components.length-1,o=i,r=function(){--o<0&&(!function(e){var n,i;if(d)return;for(var o=0;o=0;)!(m=n.components[i])||m.destroyed||m.__hasView||"undefined"===m.output?r():n.components[i].output.on("ready",r),i--;var m}function h(){t.broadcast("oobeInitiated")}return r=i.object.merge(o),{register:function(e,n,i){t=i,e&&n&&-1!==m.indexOf(n)&&g(e,n)}}})),define("common/service/helpers/serviceHelper",[],(function(){"use strict";return{getServiceList:function(e,t,n){var i={};return Object.keys(e).forEach((function(o){i[o]=function(e,t,n){var i={settings:{}};"string"==typeof e&&(e={url:e});e.isMock&&n&&(t=n);return i.settings=e,i.settings.url=t+e.url,i}(e[o],t,n)})),i}}})),define("common/service/interceptor/filterRequestParams",[],(function(){"use strict";return{around:function(e){var t,n={};e.args.length&&(n=e.args[0],"object"==typeof(t=n.data)&&Object.keys(t).forEach((function(e){void 0===t[e]&&delete t[e]})));return e.proceed(n)}}})),define("common/service/interceptor/loggedOffInterceptor",[],(function(){"use strict";return{around:function(e){var t=this,n=this.context.logger;return new Promise((function(i,o){t.context.application.userLoggedOff?(n.debug("401 UNAUTHORIZED: skipping secure service call"),o()):e.proceed().then((function(e){i(e)})).catch((function(e){401===e.status&&(t.context.application.userLoggedOff=!0,n.debug("401 UNAUTHORIZED: skipping future secure service calls")),o(e)}))}))}}})),define("common/service/interceptor/mspIntercept",["require","blue/util","blue/is","common/lib/mspUrlConfig"],(function(e){var t=e("blue/util"),n=e("blue/is"),i=e("common/lib/mspUrlConfig"),o=i.urlObj,r=i.detailType,a=function(e){return e.replace(domainUrl,"")},s=function(e,t){var i=o[t].properties?o[t].properties:[],a=Object.keys(r);return n.object(e)?Object.keys(e).forEach((function(n){i.indexOf(n)>=0?a.indexOf(e[n])>=0&&(e[n]=r[e[n]]):e[n]=s(e[n],t)})):n.array(e)?e.forEach((function(n,i){e[i]=s(n,t)})):r[e]&&(e=r[e]),e};return{around:function(e){var n;return new Promise((function(i,c){var l;e.args[0].url&&t.object.has(o,a(e.args[0].url))&&(l=a(e.args[0].url)),n=e.proceed();var u=function(e,n){var a=e?i:c;l?o[l].hasArray?a(s(n,l)):(o[l].properties.forEach((function(e){var i=t.object.get(n,e);r[i]&&t.object.set(n,e,r[i])})),a(n)):a(n)};n.then((function(e){u(!0,e)}),(function(e){u(!1,e)}))}))}}})),define("common/service/interceptor/retryOnError",[],(function(){return{around:function(e){var t=function(){},n=0,i=0,o="",r=[];return new Promise((function(a,s){var c=e.args.length&&e.args[0];n=c.retryLimit||n,i=c.retryBufferInterval||i,o=c.retryHeader||o,r=c.retryStatusCodes||r;var l=function(){e.proceed().then(a).catch((function(e){var a,c=e||{getResponseHeader:t};o&&(a=c.getResponseHeader(o),i=/^([1-9]|[1-9][0-9]|1[0-1][0-9]|120)$/.test(a)?1e3*a:0),n>0&&i>0&&function(e,t){return!(!Array.isArray(e)||!e.length)&&e.indexOf(t)>-1}(r,c.status)?setTimeout((function(){n--,l()}),i):s(e)}))};l()}))}}})),define("common/service/interceptor/spinner",["require","blue/$","blue/util"],(function(e){"use strict";var t=e("blue/$"),n=e("blue/util").lang.defaults;return{around:function(e){var i,o,r,a=(new Date).getTime()+Math.floor(100*Math.random()+1),s=e.args[0];i="spinner_"+a;var c=s.data&&("string"==typeof s.data&&{target:"#content"}||s.data.spinner);return c&&(r=!0,"object"==typeof c?(n(c.type,""),c.name=n(c.name,"interceptor."+i),o=c.focusId):c={name:"interceptor."+i,type:""}),delete s.data.spinner,new Promise((function(n,i){r&&e.target.context.application.emit("spinner:on",c),e.proceed().then((function(i){try{n(i)}catch(e){}r&&(e.target.context.application.emit("spinner:off",c),"string"==typeof o?t("#"+o).focus():o&&"function"==typeof o.focus&&(o.focus(),o=void 0))}),(function(t){try{i(t)}catch(e){}r&&e.target.context.application.emit("spinner:off",c),o=void 0})).catch((function(t){try{i(t)}catch(e){}r&&e.target.context.application.emit("spinner:off",c),o=void 0}))}))}}})),define("common/service/interceptor/userProfileComplete",[],(function(){"use strict";return{around:function(e){var t,n,i=this;return e.args.length&&(n=(t=i.context.util.object.deepClone(e.args[0]))||{}),n.byPassUserProfileService?e.proceed():new Promise((function(n,o){i.context.application.userProfileComplete.then((function(){t&&(e.args[0]=e.target.prerequest(t,t.data)),e.proceed().then((function(e){n(e)})).catch((function(e){o(e)}))})).catch((function(e){o(e)}))}))}}})),define("common/service/keepAlive",[],(function(){"use strict";return function(){var e={settings:{url:authUrl+"/svc/wr/accounts/secure/v1/user/session/extend",type:"POST",dataType:"json"}};this.serviceCalls={userSessionExtend:e}}})),define("common/service/signOut",["require","exports","module"],(function(e,t,n){"use strict";return function(){var e,t=n.config();t.authServiceCrossDomain?e=t.authServiceCrossDomain:this.context&&this.context.config&&(e=this.context.config.authServiceCrossDomain);var i=function(t){this.type="POST",this.dataType="json",this.crossDomain=!1!==e,this.url=t},o={settings:new i(authUrl+"/svc/wl/auth/signout")},r={settings:new i(domainUrl+"/svc/rr/accounts/secure/v1/signout")};this.serviceCalls={authSignout:o,accountsSignout:r}}})),define("common/service/siteAvailability",["require","exports","module"],(function(e,t,n){"use strict";return function(){var e,t=n.config();t.authServiceCrossDomain?e=t.authServiceCrossDomain:this.context&&this.context.config&&(e=this.context.config.authServiceCrossDomain);var i={settings:new function(){this.type="POST",this.dataType="json",this.crossDomain=!1!==e,this.url=domainUrl+"/svc/rl/accounts/public/v1/site/availability/list"}};this.serviceCalls={siteAvailability:i}}})),define("common/stickyTitle/headerUtility",[],(function(){"use strict";var e;return{adjustHeight:function(){"function"==typeof e&&e()},onAdjustHeight:function(t){e=t}}})),define("common/template/stickyTitle/stickyTitle",[],(function(){return{v:4,t:[{t:4,f:[{t:7,e:"blueInlineModalHeader",m:[{n:"id",f:[{t:2,r:"id"}],t:13},{n:"title",f:[{t:2,r:"title"}],t:13},{n:"adaCloseText",f:[{t:4,f:[{t:2,r:"adaCloseText"}],n:50,r:"adaCloseText"}],t:13},{n:"classes",f:[{t:4,f:[{t:2,r:"classes"}],n:50,r:"classes"}],t:13},{n:"type",f:[{t:2,r:"type"}],t:13},{n:"secondaryText",f:[{t:4,f:[{t:2,r:"secondaryText"}],n:50,r:"secondaryText"}],t:13},{n:"rClick",f:[{t:4,f:[{t:2,r:"rClick"}],n:50,r:"rClick"}],t:13},{n:"rChange",f:[{t:4,f:[{t:2,r:"rChange"}],n:50,r:"rChange"}],t:13},{n:"rMouseover",f:[{t:4,f:["r",{t:2,r:"Mouseover"}],n:50,r:"rMouseover"}],t:13},{n:"rMouseleave",f:[{t:4,f:[{t:2,r:"rMouseleave"}],n:50,r:"rMouseleave"}],t:13},{n:"rKeydown",f:[{t:4,f:[{t:2,r:"rKeydown"}],n:50,r:"rKeydown"}],t:13},{n:"rKeyup",f:[{t:4,f:[{t:2,r:"rKeyup"}],n:50,r:"rKeyup"}],t:13},{n:"rBlur",f:[{t:4,f:[{t:2,r:"rBlur"}],n:50,r:"rBlur"}],t:13},{n:"rFocus",f:[{t:4,f:[{t:2,r:"rFocus"}],n:50,r:"rFocus"}],t:13},{n:"blueOnComplete",f:[{t:4,f:[{t:2,r:"blueOnComplete"}],n:50,r:"blueOnComplete"}],t:13},{n:"attributes",f:[{t:2,r:"attributes"}],t:13}]}],n:50,x:{r:["show","byPassGlobalNavigation"],s:"_0||_1"}}],e:{}}})),define("common/stickyTitle/webspec/stickyTitle",{name:"STICKY_TITLE",bindings:{},triggers:{teardown:{action:"view.onDestroy"}}}),define("common/stickyTitle/stickyTitle",["require","common/lib/menu/menuState","common/lib/menu/menuUtility","common/stickyTitle/headerUtility","common/template/stickyTitle/stickyTitle","blue-ui/view/elements/inlinemodalheader","common/stickyTitle/webspec/stickyTitle"],(function(e){"use strict";var t=e("common/lib/menu/menuState"),n=e("common/lib/menu/menuUtility"),i=e("common/stickyTitle/headerUtility");return function(){this.template=e("common/template/stickyTitle/stickyTitle"),this.views={blueInlineModalHeader:e("blue-ui/view/elements/inlinemodalheader")},this.onReady=function(){i.adjustHeight(),t.stickyHeaderActive=!t.globalNavigationIsShowing,n.checkKeyAndReset("smoothStickyTransition")},this.init=function(){this.bridge=e("common/stickyTitle/webspec/stickyTitle"),this.model.show=!t.globalNavigationIsShowing},this.onDestroy=function(){t.stickyHeaderActive&&n.registerAction("smoothStickyTransition",!0)}}})),define("common/timeout/component/timeout",["require","appkit-utilities/analytics/overlay"],(function(e){"use strict";var t=e("appkit-utilities/analytics/overlay");return{init:function(){},requestSessionExtension:function(){t.hideOverlay(this,"sessionTimeoutOverlay","requestSessionExtension"),this.destroyView(),this.context.bubble("timeoutComponent:requestSessionExtension")},proceedToLogoff:function(e){this.context.proceedToLogoff(e)}}})),define("bluespec/session_timeout",[],(function(){return{name:"SESSION_TIMEOUT",actions:{requestSessionExtension:!0,proceedToLogoff:!0,returnToChaseOnline:!0},states:{sessionTimeoutOverlay:!0},settings:{sessionTimeoutHeader:!0,sessionTimeoutMessage:!0,requestSessionExtensionLabel:!0,proceedToLogoffLabel:!0,returnToChaseOnlineLabel:!0,closeSessionTimeoutNavigation:!0,closeSessionTimeoutNavigationAda:!0}}})),define("common/timeout/controller/timeout",["require","bluespec/session_timeout","common/timeout/component/timeout","appkit-utilities/analytics/overlay","blue-app/settings","common/lib/accountInfo"],(function(e){"use strict";return function(t){var n=this,i=e("bluespec/session_timeout"),o=e("common/timeout/component/timeout"),r=e("appkit-utilities/analytics/overlay"),a=e("blue-app/settings"),s=new(e("common/lib/accountInfo"));this.init=function(){this.logoff.setAppContext(t.application),this.accountInfo=s,t.on({"timeout:showModal":this.showModal,"timeout:extendSession":this.extendSession,"timeout:proceedToLogoff":this.proceedToLogoff}),this.context.proceedToLogoff=this.proceedToLogoff},this.showModal=function(){n.components&&n.components.timeout?(r.showOverlay(n.components.timeout,"sessionTimeoutOverlay"),n.executeCAV([n.components.timeout,"timeout/timeout",{target:"#sessionTimeoutModal",append:!1}])):(n.register.components(n,[{name:"timeout",model:{},spec:i,methods:o}]),r.showOverlay(n.components.timeout,"sessionTimeoutOverlay"),n.executeCAV([n.components.timeout,"timeout/timeout",{target:"#sessionTimeoutModal",append:!1}]))},this.extendSession=function(){n.context.services.userSessionExtendSvc.userSessionExtend().then((function(e){t.logger.debug("Extend service called, result "+e.status),a.set({lastServiceCallTime:Date.now()?Date.now():(new Date).getTime()},a.Type.USER)}),(function(e){var i=e?e.status:"?",o=e?e.statusText:"Unknown";t.logger.debug("Error from service, logging off, status "+i+" message: "+o),n.proceedToLogoff({isSessionTimeout:!1,needToHideOverlay:!1})}))},this.proceedToLogoff=function(e){n.context.bubble("timeoutComponent:proceedToLogoff"),n.logOffThirdParty&&n.logOffThirdParty.signOutAndRedirect?n.logOffThirdParty.signOutAndRedirect():(n.logoff.signOutAndRedirect(e.isSessionTimeout),n.context.is.defined(e.needToHideOverlay)&&!e.needToHideOverlay||n.components&&n.components.timeout&&r.hideOverlay(n.components.timeout,"sessionTimeoutOverlay","proceedToLogoff"),n.components&&n.components.timeout&&n.components.timeout.destroyView())}}})),define("common/template/sessionTimeout",[],(function(){return{v:4,t:[{t:7,e:"blueModal",m:[{n:"id",f:"sessionTimeoutDialog",t:13},{n:"beginModalAdaText",f:"beginModalAdaText",t:13},{n:"endModalAdaText",f:"endModalAdaText",t:13},{n:"cancelButtonId",f:"proceedToLogoff",t:13},{n:"modalWindow",f:"",t:13},{n:"cancelButtonClasses",f:"cancelButtonClasses",t:13},{n:"cancelButtonText",f:[{t:2,r:"proceedToLogoffLabel"}],t:13},{n:"cancelButtonAdaText",f:[{t:2,r:"cancelButtonAdaText"}],t:13},{n:"cancelButtonClick",f:"proceedToLogoff",t:13},{n:"confirmationButtonId",f:"requestSessionExtension",t:13},{n:"confirmationButtonClasses",f:["confirmationButtonClasses ",{t:4,f:["jpmorgan"],n:50,r:".isGWMUser"}],t:13},{n:"confirmationButtonText",f:[{t:2,r:"requestSessionExtensionLabel"}],t:13},{n:"confirmationButtonAdaText",f:[{t:2,r:"confirmationButtonAdaText"}],t:13},{n:"confirmationButtonClick",f:"requestSessionExtension",t:13},{n:"dialogText",f:[{t:3,r:"sessionTimeoutMessage"}],t:13},{n:"title",f:[{t:2,r:"sessionTimeoutHeader"}],t:13}]}]}})),define("common/timeout/view/webspec/timeout",{name:"SESSION_TIMEOUT",bindings:{},triggers:{teardown:{action:"view.teardown"}}}),define("common/timeout/view/timeout",["require","blue/$","common/lib/accountInfo","common/template/sessionTimeout","blue-ui/view/modules/modal","common/timeout/view/webspec/timeout"],(function(e){"use strict";return function(){var t,n,i=e("blue/$"),o=new(e("common/lib/accountInfo"));this.template=e("common/template/sessionTimeout"),this.init=function(){(n=this).views={blueModal:e("blue-ui/view/modules/modal")},n.bridge=e("common/timeout/view/webspec/timeout"),t=document.activeElement?i(document.activeElement):i("body"),i("body").addClass("util no-scroll"),n.onReady=function(){n.onData("sessionTimeoutHeader",(function(e){e&&n.context.$("h1").focus()}))},n.model.isGWMUser=!!o.isGWMUser()},this.teardown=function(){var e,n=i("body");n.removeClass("util no-scroll"),t.length?t.focus():(e=i("h1").first()).length>0?e.focus():n.focus()}}})),define("common/utility/accountsUtility",["require","common/lib/constants"],(function(e){"use strict";var t=e("common/lib/constants"),n=t.ACCOUNT_FILTERING.CBO_FILTER_CRITERIA_ID,i=t.ACCOUNT_FILTERING.CBO_ACCOUNTS_FILTER_CRITERIA_TYPE;function o(e,t,o){var r=!1;return e===n.ALL_ACCOUNTS&&(r=!0),t.isBusiness&&e===n.ALL_BUSINESS&&(r=!0),t.isBusiness||e!==n.ALL_PERSONAL||(r=!0),e===t.accountCategoryId&&o===i.BUSINESS&&(r=!0),r}function r(e){var t=[];return Object.keys(e).forEach((function(n){e[n]&&t.push(e[n])})),t}function a(e,t,n){var i=[];return e.forEach((function(e){e.accountType===t&&(e.allAccounts?e.allAccounts.forEach((function(e){n[e]&&i.push(n[e])})):e.accountCategories.forEach((function(e){e.accounts.forEach((function(e){n[e]&&i.push(n[e])}))})))})),i}function s(e,t,n){var i=[];return e.forEach((function(e){e.id===t&&e.customGroupAccountIds.forEach((function(e){n[e]&&i.push(n[e])}))})),i}function c(e){var t=[];return e.favorites.forEach((function(n){t.push(e.accounts[n])})),t}function l(e,t,n){var i=[],r=t.filterId||t.filterCriteriaId;return e.forEach((function(e){o(r,e,t.filterType)&&e.accountGroups.forEach((function(e){e.accounts.forEach((function(e){n[e]&&i.push(n[e])}))}))})),i}var u=function(e){return e.filterType===n.ALL_ACCOUNTS||e.filterCriteriaId===n.ALL_ACCOUNTS},d=function(e){return e.filterType===n.ACCOUNT_GROUP},m=function(e,t){return(e.filterType===n.CUSTOM_GROUP||e.filterType===n.CUSTOM_ACCOUNTS)&&t.customGroups},f=function(e){return e.filterCriteriaId===n.FAVORITES};return{getVisibleAccounts:function(e,t){var n;t||(t={filterId:(n=e).filterId||n.accountFilterId,filterCriteriaId:n.filterCriteriaId,filterType:n.accountFilterType||n.defaultGroupName});var i={ALL_ACCOUNTS:[r,e.accounts],ACCOUNT_GROUP:[a,e.accountGroups,t.filterId,e.accounts],CUSTOM_GROUP:[s,e.customGroups,t.filterId,e.accounts],FAVORITES:[c,e],DEFAULT:[l,e.accountCategories,t,e.accounts]}[function(e,t){return[{key:"ALL_ACCOUNTS",condition:u(e)},{key:"ACCOUNT_GROUP",condition:d(e)},{key:"CUSTOM_GROUP",condition:m(e,t)},{key:"FAVORITES",condition:f(e)},{key:"DEFAULT",condition:!0}].find((function(e){return e.condition})).key}(t,e)];return i[0](i[1],i[2],i[3])},isGroupVisible:function(e,t,o){var r=!1;return e===n.ALL_ACCOUNTS&&(r=!0),o===i.ACCOUNT_GROUP&&e===t.accountType&&(r=!0),e===t.id&&(r=!0),r},isCategoryVisible:o,getFirstMortgageApplication:function(e){var n={};return e.pendingApplications&&e.pendingApplications.length&&(n=e.pendingApplications.find((function(e){return e.accountType===t.DETAIL_TYPE.HMG}))),n&&"0"!==n.applicationId?n:void 0}}})),define("common/utility/alertUtility",["require","blue-ui/utilities/common"],(function(e){"use strict";var t=e("blue-ui/utilities/common");return{getFocusElementId:function(e){return(t.isApple()&&t.isTouch()?"icon":"inner")+"-"+e}}})),define("common/utility/brandedFaviconUtil",["require","common/lib/constants","appkit-utilities/common/mediaQueryListener"],(function(e){"use strict";var t=e("common/lib/constants").BRAND_ID,n=e("appkit-utilities/common/mediaQueryListener");return{displayBrandedFavicon:function(e,i){if(e===t.JPMORGAN){var o=i+"/content/dam/cpo-static/images/jpm-favicon.ico";n.currentBreakpoint===n.BREAKPOINT.XS&&(o=i+"/content/dam/cpo-static/images/jpmorgan-76x76.png"),document.querySelector('link[rel*="shortcut icon"]').href=o}}}})),define("common/utility/canadaProvinceUtil",[],(function(){"use strict";return{mapCanadaProvince:function(e){return"QC"===e?e="PQ":"PQ"===e&&(e="QC"),"YT"===e?e="YK":"YK"===e&&(e="YT"),e}}})),define("common/utility/classicResourceUtil",["require","appkit-utilities/language/helper","blue/root"],(function(e){var t=e("appkit-utilities/language/helper"),n=e("blue/root");return{classicUtils:{getLanguage:function(){return t.getLanguage()},getResourceUrl:function(e,t,n){var i,o,r={};return t&&e&&(o=t.CLASSIC_RESOURCE_URL||t.get("CLASSIC_RESOURCE_URL"))&&(r=o[e])?(i=this.getConfiguredDomain(r,n),this.appendCipDomain(i)):""},getResourceUrlWithParams:function(e,t,n){var i,o,r,a,s,c={};return t&&e&&e[0]&&(c=(t.CLASSIC_RESOURCE_URL||t.get("CLASSIC_RESOURCE_URL"))[e[0]])?(i=this.getConfiguredDomain(c,n),o=c.paramName,a=c.addlParamName,r=e[1],o||(o="AI"),s=e[2],i=this.appendQueryParameter(i,o,r),i=this.appendQueryParameter(i,a,s),this.appendCipDomain(i)):""},getIframeUrl:function(e,t,n){var i,o={};return t&&e&&(o=t.get("IFRAME_URL")[e])&&(i=this.getConfiguredDomain(o,n)),i},getConfiguredDomain:function(e,t){if(t&&t.classicDomains&&e&&e.domain){var n=t.classicDomains[e.domain.spanish],i=t.classicDomains[e.domain.english];return(n&&"es-us"===this.getLanguage()?n:i)+e.path}return""},stringEndsWith:function(e,t){return!!e&&-1!==e.indexOf(t,e.length-t.length)},appendQueryParameter:function(e,t,n){if(e&&t&&n){var i=-1!==e.indexOf("?")?"&":"?";e+=i+t+"="+encodeURI(n)}return e},appendCipDomain:function(e){if(e){var t=-1!==e.indexOf("?")?"&":"?";e+=t+"cipDomain="+this.getCipDomain()}return e},getCipDomain:function(){return n.location.host},getRandom:function(){var e=new Int32Array(1);return(n.crypto||n.msCrypto).getRandomValues(e),e[0]}}}})),define("common/utility/webNativeMessenger",["require","appkit-utilities/jsBridge/index","common/lib/jsBridge","common/utility/rapidash","common/lib/utility/hybridMixin"],(function(e){"use strict";return function(t,n){var i={},o=e("appkit-utilities/jsBridge/index"),r=e("common/lib/jsBridge"),a=e("common/utility/rapidash"),s=n.application.config;function c(e,t){return t&&a.isObject(e)&&(e.oldJsBridgeMessage=t),e}function l(e,t,i){n.logger.info("WebNativeMessenger : Eventname ="+e+" OldMessage ="+JSON.stringify(t)+" payLoad ="+JSON.stringify(i))}return e("common/lib/utility/hybridMixin").call(i),i.refreshProfile=function(e){if(l("refreshProfile",e),!e||t("CR0420_releaseVersion")&&s.enableRefreshProfile){var r=c({},e);o.messageToNative({command:"refreshProfile",params:r})}else i.dispatchHybridEvent(e,n)},i.addCardToWallet=function(e){l("addCardToWallet","",e),t("CR0420_releaseVersion")&&s.enableAddCardToWallet?o.messageToNative({command:"addCardToWallet",params:e}):i.dispatchHybridEvent("addCardToWallet",n,e)},i.goToNativePage=function(e,r){l("goToNativePage",r,e),!r||t("CR0420_releaseVersion")&&s.enableGoToNativePage?(e=function(e,t){if(t){if(!a.isObject(e))return{navKey:e,oldJsBridgeMessage:t};e.oldJsBridgeMessage=t}return e}(e,r),o.messageToNative({command:"goToNativePage",params:e})):i.dispatchHybridEvent(r,n,e)},i.notifyToNative=function(e,r){l("notifyToNative",r,e),!r||t("CR0420_releaseVersion")&&s.enableNotifyToNative?(e=c(e,r),o.messageToNative({command:"notifyToNative",params:e})):r&&i.dispatchHybridEvent(r,n,e)},i.updateNativeNavigationBar=function(e){l("updateNativeNavigationBar","",e),r.updateCurrentNativeNavigationBarButtons(e),e.isUsingAppkitJsBridge=!1,t("CR0420_releaseVersion")&&s.enableUpdateNativeNavigationBar?(e=function(e){return e&&e.pageTitle&&(e=c(e,"changeScreenTitle")),e}(e)).isUsingAppkitJsBridge=!0:e&&e.pageTitle&&i.dispatchHybridEvent("changeScreenTitle",n,e.pageTitle),o.messageToNative({command:"updateNativeNavigationBarButtons",params:e})},i.setShouldNativeHandleButtonPressedCallBack=function(e,n){for(var i in l("setShouldNativeHandleButtonPressedCallBack",n,e),(!n||t("CR0420_releaseVersion")&&s.enableShouldNativeHandleButtonPressed)&&o.jsHandlers.setShouldNativeHandleButtonPressedCallBack(e),n)n.hasOwnProperty(i)&&(r[i]=n[i])},i.getPDFDocument=function(e,r){l("getPDFDocument",r,e),!r||t("CR0420_releaseVersion")&&s.enableGetPdfDocument?(e=c(e,r),o.messageToNative({command:"getPDFDocument",params:e})):i.dispatchHybridEvent(r,n,e)},i.externalBrowser=function(e,r){l("externalBrowser",r,e),!r||t("CR0420_releaseVersion")&&s.enableExternalBrowser?(e=c(e,r),o.messageToNative({command:"externalBrowser",params:e})):i.dispatchHybridEvent(r,n,e)},i.onFinish=function(e){l("onFinish","",e),t("CR0420_releaseVersion")&&s.enableOnFinish?o.messageToNative({command:"onFinish",params:e}):e?i.dispatchHybridEvent("onFinish",n,"",e.requireRefresh,e.nativeHamburgerMenuSelectedOption,e.exitToNativeEntryPoint):i.dispatchHybridEvent("onFinish",n)},i.releaseSpinner=function(){o.messageToNative({command:"releaseSpinner"})},i}})),define("common/utility/hybridHelper",["require","common/utility/rapidash","common/utility/webNativeMessenger"],(function(e){"use strict";var t=e("common/utility/rapidash"),n={MOD:"android",MON:"ios"},i={ios:{CR0120_releaseVersion:"4.100",CR0320_releaseVersion:"4.150",MR1020_releaseVersion:"4.160",CR0420_releaseVersion:"4.170"},android:{CR0120_releaseVersion:"4.100",CR0320_releaseVersion:"4.150",MR1020_releaseVersion:"4.160",CR0420_releaseVersion:"4.170"}};return function(o,r){var a={};return a.isMobileVersionAtOrAbove=function(e){var a,s=function(e){return e&&n[e]}(r);return o.logger.info("isMobileVersionAtOrAbove: channel = "+r),!!s&&(a=t.isObject(e)?i[s][e[s]]:i[s][e],o.application.nativeAppVer>=a)},a.webNativeMessenger=e("common/utility/webNativeMessenger")(a.isMobileVersionAtOrAbove,o),a}})),define("common/utility/printUtil",["require","blue/log","blue/$"],(function(e){var t=e("blue/log")("[printUtil]"),n=e("blue/$"),i="",o="",r=[".jpui.checkbox",".jpui.radiobutton",".jpui.select",".jpui.dropdown",".jpui.error alert",".jpui.inverted dark alert",".jpui.button",".jpui.angledown icon",".jpui.angleup icon",".jpui.angle right icon",".jpui.angle left icon",".jpui.link",".jpui.navbar",".jpui.tooltip",".jpui.fieldgroup",".jpui.datepicker",".jpui.styledselect",".field>.labelWrap"],a=[];function s(e){return e.domEvent.srcElement?e.domEvent.srcElement:e.domEvent.target}function c(e){n(n(e).find(r.toString(","))).hide(),n(n(e).find(a.toString(","))).show(),n(n(e).find("th>a")).show(),o=e?e.outerHTML:"",n(n(e).find(r.toString(","))).show()}function l(e,t){var i,s,c,l;if(t=t.length?t:"print-util",!(i=n(e).closest("tr").length?n(e).closest("tr"):n(e).closest(t).length?n(e).closest(t).parent():null))return!1;s=n(i).clone(),n(n(s[0]).find(r.toString(","))).hide(),n(n(s[0]).find(a.toString(","))).show(),c=document.createElement("div"),l=document.createElement("br"),c.appendChild(s[0]?s[0]:""),c.appendChild(l),o=c?c.outerHTML:"",n(n(s[0]).find(r.toString(","))).show()}function u(e,t){var i,o=n(e).closest("tbody"),r=n(o).closest("table"),a=n(r).clone(),s=n(o).clone();n(a[0]).find("tbody").remove(),a.append(s),n(a).find(".util.accessible-text").addClass("print-hide"),t?((i=n("."+t).clone()).empty(),n(i)[0].appendChild(a[0]),c(i[0])):c(a[0])}function d(e,i){var o,r,a,s=document.createElement("div"),l=function(t){var o,r,a,c,l,u,d,m,f,p={},g=[];if(n(t+" :checkbox:checked").each((function(){g.push(n(this))})),0!==n(t+" :checkbox").length&&0===g.length)return!1;if(0===i.targetIds.length?(p=n(t).closest("table").clone(),i.targetClass&&(p=n(t).closest("."+i.targetClass).clone())):(o=n(n(t).parent()[0].parentNode.previousElementSibling).clone(),n(s).append(o),p=n(t).clone()),n(p).find(".util.accessible-text").addClass("print-hide"),0!==n(t+" :checkbox").length){for(n(p[0]).find("tbody").remove(),f=0;f10)window.print();else{if(!(u.length<=10))return t.info("Error: give a unique selector to print."),!1;if(l=u.clone(),n(l[0]).find(r.toString(",")).hide(),n(l[0]).find(a.toString(",")).show(),s=document.createElement("br"),c=document.createElement("div"),!l[0])return t.info("Error: invalid selector."),!1;c.appendChild(l[0]?l[0]:""),c.appendChild(s),o=c?c.outerHTML:"",n(l[0]).find(r.toString(",")).show()}}function p(e){if(!e.targetIds)return t.info("Error: give at least one valid selector to print."),!1;var i,s,c=e.printDivId?e.printDivId:"printView",l=document.createElement("div"),u=document.createElement("table"),d=document.createElement("tbody");for(u.appendChild(d),l.appendChild(u),l.setAttribute("class","multiple-target-selector-print-view"),l.setAttribute("id",c),i=0;i0&&(r=r.concat(g.ignoreClasses)),g.ignoreInputClasses&&(r=[]),g.addClasses&&g.addClasses.length>0&&(a=a.concat(g.addClasses)),c=c.toLowerCase();var v={dataset:l.bind(null,y,g.targetClass),transaction:d.bind(this,y,g),datasetwithtransaction:u.bind(null,y,g.targetClass),createtransactionpreviewwithtr:m.bind(null,e,g.targetClass,g.dataSet),selector:f.bind(null,y,g),selectorwithmultipletargets:p.bind(null,g)};return v[c]?(v[c]&&v[c](),o.length>0?new Promise((function(t){!function(e,t,r){var a,c,l,u;(a=document.createElement("iframe")).name="frame1",a.style.position="absolute",a.style.top="-1000000px",document.body.appendChild(a),(c=a.contentWindow?a.contentWindow:a.contentDocument.document?a.contentDocument.document:a.contentDocument).document.open(),c.document.write(""),c.document.write(i),c.document.write(""),(l=n("#header-outer-container").clone()).css("align:center"),l.addClass("util print-background-none segment-bpl"),l.find(".print-logo ").css("margin","auto"),r.targetIds&&r.targetIds.length&&-1!==r.targetIds.indexOf("collections-payment-table")?l.find("#header-container").css("padding-left","0"):l.find("#header-container").css("padding-left",n(a).width()-n(a).width()/4),l.css("display","block"),u=l[0]?l[0].outerHTML:"",c.document.write(u),c.document.write(o+""),c.document.close(),-1!==c.document.documentElement.innerHTML.search("