/*@preserve ***Version 2.56.0*** */ /*@license * Copyright 2002 - 2018 Qualtrics, LLC. * All rights reserved. * * Notice: All code, text, concepts, and other information herein (collectively, the * "Materials") are the sole property of Qualtrics, LLC, except to the extent * otherwise indicated. The Materials are proprietary to Qualtrics and are protected * under all applicable laws, including copyright, patent (as applicable), trade * secret, and contract law. Disclosure or reproduction of any Materials is strictly * prohibited without the express prior written consent of an authorized signatory * of Qualtrics. For disclosure requests, please contact notice@qualtrics.com. */ try { !function(){var e={295:function(){"use strict";function e(){return window.innerWidth<=768}function t(){return QSI.Browser.name}var i="left",n="right",o="bottom-left",a="slider",s="pull-up",r="overlay",l=400;function d(e){switch(e.LookAndFeel.ButtonPosition){case i:case n:return"rotate(90deg)";default:return"rotate(0deg)"}}function u(e){switch(e.LookAndFeel.ButtonPosition){case i:case n:return"0";default:return"2px"}}function c(e){switch(e.LookAndFeel.ButtonPosition){case i:case n:return"0 0 5px 0";default:return"0 5px 0 0"}}function p(e,t){var i=document.createElementNS("http://www.w3.org/2000/svg",e);for(var n in t)i.setAttribute(n,t[n]);return i}function h(e){return{offsetWidth:e.offsetWidth,offsetHeight:e.offsetHeight}}function m(){return QSI.util.getPageSize()}function g(e){return function(e){return!!e.LookAndFeel.CustomButton.CustomButtonImageId}(e)?e.LookAndFeel.CustomButton:e.LookAndFeel}function S(e){return-1!==e.LookAndFeel.ButtonPosition.indexOf("bottom")}function T(e){return e.HowItDisplays.DisplayType}function b(e){return e.HowItDisplays.IFrameTitle}function f(e){return Object.prototype.hasOwnProperty.call(e.HowItDisplays,"OpacityLevel")?e.HowItDisplays.OpacityLevel:.25}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,o,a,s,r=[],l=!0,d=!1;try{if(a=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=a.call(i)).done)&&(r.push(n.value),r.length!==t);l=!0);}catch(e){d=!0,o=e}finally{try{if(!l&&null!=i.return&&(s=i.return(),Object(s)!==s))return}finally{if(d)throw o}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?v(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i2&&void 0!==arguments[2]&&arguments[2],s=t.childNodes[0];Object.assign(t.style,function(e,t){var a,s=e.ButtonPosition,r=e.UseCustomButtonPosition,l=e.ButtonPositionBottomAdjustment,d=e.ButtonPositionLeftAdjustment,u=m(),c=function(e){return{clientWidth:e.clientWidth,clientHeight:e.clientHeight}}(t),p=u.width-c.clientWidth,h=u.height-c.clientHeight,g=0,S=0;if(s===i||s===n)a=r?l:50,g=Math.round(a*h/100)+"px";else if(s===o||"bottom-right"===s){var T;T=r?d:s===o?10:90,S=Math.round(T*p/100)+"px"}return s===n?{bottom:g,right:"-1px"}:{bottom:g,left:S}}(e,s)),a&&Object.assign(t.style,function(e){var t=e.ButtonPosition,o={};return t===i?o.left="".concat(l,"px"):t===n?o.right="".concat(399,"px"):o.bottom="40%",o}(e))}var C=[];function N(e){C.push(e)}window.addEventListener("resize",function(){C.forEach(function(e){e()})},!0);var w={};function L(e,t){w[e]||(w[e]=[]),w[e].push(t)}function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function O(e,t,i){return(t=function(e){var t=function(e){if("object"!=x(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=x(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==x(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function B(e,o,d,u,c,p,h,S,E){switch(T(d)){case s:return function(e,i,n,o,a,r,l,d){var u,c=k(),p=!1,h=!1,m=((u=document.createElement("div")).id="QSIFeedbackButton-pullup-container",u.classList.add("QSIFeedbackButton"),u.setAttribute("role","dialog"),u.setAttribute("aria-modal",!0),u.setAttribute("aria-hidden",!0),Object.assign(u.style,{position:"fixed",left:0,width:"100%",height:0,top:"100%",overflow:"hidden",color:"#000",margin:0,padding:0,backgroundColor:"transparent",zIndex:QSI.global.currentZIndex+1}),u);a.setAttribute("aria-expanded",!1),a.setAttribute("aria-controls",m.id);var g=P(f,s);m.appendChild(g),document.body.appendChild(m);var S=R(function(){h&&f()});window.addEventListener("message",S);var T=U([m,c]);return L(_,function(){h&&f()}),{onclickHandler:function(){if(!p){var s=b(n),u=Q(e,i,s,o,r);if("Mobile Safari"===t()){var S=F(u);g.appendChild(S)}else g.appendChild(u);QSI.global.featureFlags["DX.StatsAccuracy"]?o():u.onload=function(){o()},W(r)&&(G(e,i,l,d),window.QSI.targetWindows.push(u)),p=!0}document.body.appendChild(c),Object.assign(m.style,{transition:D,top:"20%",height:"80%"}),m.setAttribute("aria-hidden",!1),a.setAttribute("aria-expanded",!0),M(m),h=!0},setAnimationVisibility:T,cleanupAnimation:function(){window.removeEventListener("message",S),m.parentNode.removeChild(m),c.parentNode&&c.parentNode.removeChild(c)}};function f(){Object.assign(m.style,{transition:"none",top:"100%",height:0}),m.setAttribute("aria-hidden",!0),c.parentNode.removeChild(c),h=!1,a.setAttribute("aria-expanded",!1),a.focus()}}(e,o,d,c,u,p,h,E);case"new-tab":return function(e,t,i,n,o,a){var s=function(){window.open(e),t()};return W(n)&&(s=window.QSI.WindowUtils.getOpenNewWindowOnclickHandler(e,i,o,"",t,"",a).onclickHandler),{onclickHandler:s,setAnimationVisibility:function(){},cleanupAnimation:function(){}}}(o,c,e,p,h,E);case a:return function(e,o,s,r,d,u,c,p){var h=!1,S=!1,T=g(s),f=function(e){var t={},o=e.ButtonPosition;return o===i?t.left="-".concat(l,"px"):o===n?t.left="100%":t.bottom="-40%",t}(T),E=function(e,t){var o={};t===n||t===i?(o.height="".concat(e,"%"),o.borderRadius=t===i?"0px 2px 2px 0px":"2px 0px 0px 2px"):(o.height="40%",o.borderRadius="2px 2px 0px 0px"),o.maxWidth="".concat(l,"px"),o.width="100vw";var a=document.createElement("div");a.id="QSIFeedbackButton-target-container",a.classList.add("QSIFeedbackButton");var s="border-bottom";switch(t){case i:s="border-left";break;case n:s="border-right"}return Object.assign(a.style,O(O(O(O(O(O({position:"fixed",overflow:"hidden",color:"#000",backgroundColor:"#EDEDED",border:"2px solid #A6A6A6"},s,"none"),"boxSizing","border-box"),"transition",D),"margin",0),"padding",0),"zIndex",QSI.global.currentZIndex+1),o),a}(function(e){return e.HowItDisplays.SurveySize}(s),T.ButtonPosition);E.setAttribute("role","dialog"),E.setAttribute("aria-modal",!1),E.setAttribute("aria-hidden",!0),r.setAttribute("aria-expanded",!1),r.setAttribute("aria-controls",E.id);var v=b(s),I=Q(e,o,v,d,u),y=I;E.setAttribute("aria-labelledby",r.id),"Mobile Safari"===t()&&(I=F(I)),document.body.appendChild(E),Object.assign(E.style,f);var C=function(){!function(e,t,o,a){var s,r,l={};o===i||o===n?(r="offsetHeight",s="bottom"):(r="offsetWidth",s="left");var d=t[r],u=0;0!==a[s]&&(u=parseInt(a[s]));var c,p=u+d/2,h=e[r]/2,m=Math.round(p-h);m<0&&(m=0),m>(c="left"===s?window.innerWidth-e.offsetWidth:window.innerHeight-e.offsetHeight)&&(m=c),"left"===s?l.left="".concat(m,"px"):l.bottom="".concat(m,"px"),Object.assign(e.style,l)}(E,r,T.ButtonPosition,r.style)};C();var w=function(){j(r),j(E)};w(),N(function(){z(r),z(E),A(T,r,h),h&&Object.assign(E.style,V(T)),C(),setTimeout(function(){w()})});var x=R(function(){h&&(Y(p),r.focus())});window.addEventListener("message",x);L(_,function(){h&&Y(p)});var B,P=function(e){return!!e.HowItDisplays.ShowCloseButton}(s),k=function(e){return e.HowItDisplays.CloseButtonBehavior?e.HowItDisplays.CloseButtonBehavior:"remove"}(s);P&&(B=H("collapse"===k?function(){return Y(p)}:function(){r.parentNode.removeChild(r),E.parentNode.removeChild(E)},a),E.appendChild(B));return{onclickHandler:function(){return Y(p)},setAnimationVisibility:U([E]),cleanupAnimation:function(){E&&E.parentNode&&E.parentNode.removeChild(E),window.removeEventListener("message",x)}};function z(e){Object.assign(e.style,{transition:"none"})}function j(e){Object.assign(e.style,{transition:D})}function V(e){var t={},o=e.ButtonPosition;if(o===i)t.left=0;else if(o===n){var a=m().width;t.left=a>l?"".concat(a-l,"px"):"0px"}else t.bottom=0;return t}function Y(t){var i=document.getElementById("QSIFeedbackButton-close-btn");h?(A(T,r,h=!1),Object.assign(E.style,f),y.tabIndex=-1,i&&i.setAttribute("tabindex",-1),E.setAttribute("aria-hidden",!0),r.setAttribute("aria-expanded",!1),r.focus()):(S||(E.appendChild(I),QSI.global.featureFlags["DX.StatsAccuracy"]?d():I.onload=function(){d()},i&&M(E,!1),W(u)&&(G(e,o,c,t),window.QSI.targetWindows.push(y)),S=!0),Object.assign(E.style,V(T)),A(T,r,h=!0),y.tabIndex=0,QSI.util.isIE()||y.contentWindow.focus(),i&&i.removeAttribute("tabindex"),E.setAttribute("aria-hidden",!1),r.setAttribute("aria-expanded",!0))}}(e,o,d,u,c,p,h,E);case r:return window.QSI.global.featureFlags["DX.CustomCSSChanges"]?function(e,t,i,n,o,a,s,r){var l="WebResponsiveDialog",d=!1;i.Animation=function(e){var t={Type:"fade",BackgroundScreen:"medium",ShouldAutoClose:!1};switch(e){case.5:t.BackgroundScreen="dark";break;case.25:t.BackgroundScreen="medium";break;case.1:t.BackgroundScreen="light"}return t}(f(i)),i.SizeAndStyle={EmbeddedTargetIFrameTitle:b(i),ContentSpacing:"medium",InterceptColor:"#ffffff",BorderRadius:"slightly-rounded",DropShadow:"light",UseEmbeddedTarget:!0,ResizeForEmbeddedTargets:i.HowItDisplays.ResizeForEmbeddedTargets||!1,SurveyPreview:""};var u=new window.QSI.WebResponsive[l].Layout1({requestId:s,id:e,type:l,targetURL:t,targetURLType:a,hasCreativeEmbeddedTarget:i.HowItDisplays.UseEmbeddedTarget,actionOptions:r,elements:i,displayOnDefault:!1,logImpressions:!1});return{onclickHandler:function(){u.preloadLogoAndDisplay(),d||(n(),d=!0)},setAnimationVisibility:function(e){u.container.style.visibility=e},cleanupAnimation:function(){o.focus()}}}(e,o,d,c,u,p,h,S):function(e,i,n,o,a,s,l,d){var u=k();u.style.opacity=f(n);var c=!1,p=!1,h=function(){var e=document.createElement("div");return e.id="QSIFeedbackButton-flex-container",QSI.util.isIE(10)?Object.assign(e.style,{display:"-ms-flexbox","-ms-flex-pack":"center","-ms-flex-align":"center"}):Object.assign(e.style,{display:"flex",justifyContent:"center",alignItems:"center"}),Object.assign(e.style,{position:"fixed",top:0,right:0,bottom:0,left:0,height:"100%",width:"100%",visibility:"hidden",zIndex:QSI.global.currentZIndex+1}),e}(),m=function(){var e=document.createElement("div");return e.id="QSIFeedbackButton-overlay-container",e.classList.add("QSIFeedbackButton"),e.setAttribute("role","dialog"),Object.assign(e.style,{width:"50%",height:"50%",margin:0,padding:0,zIndex:QSI.global.currentZIndex+1}),e}(),g=P(T,r);m.appendChild(g),h.appendChild(m),document.body.appendChild(h);var S=R(function(){p&&T()});window.addEventListener("message",S);return L(_,function(){p&&T()}),{onclickHandler:function(){if(!c){var a=b(n),r=Q(e,i,a,o,s);"Mobile Safari"===t()&&(r=F(r)),g.appendChild(r),QSI.global.featureFlags["DX.StatsAccuracy"]?o():r.onload=function(){o()},c=!0,"Survey"!==s&&"Agent"!==s||window.QSI.targetWindows.push(r)}document.body.appendChild(u),Object.assign(h.style,{opacity:1,visibility:"visible"}),M(m),W(s)&&G(e,i,l,d),p=!0},setAnimationVisibility:U([h,u]),cleanupAnimation:function(){window.removeEventListener("message",S),h.parentNode.removeChild(h),u.parentNode&&u.parentNode.removeChild(u)}};function T(){Object.assign(h.style,{transition:"none",opacity:0,visibility:"hidden"}),u.parentNode.removeChild(u),p=!1,a.focus()}}(e,o,d,c,u,p,h,E);default:return function(e,t,i,n,o,a){var s=Math.min(Math.round(.9*window.innerWidth),1e3),r=Math.min(Math.round(.8*window.innerHeight),800),l="width=".concat(s,"px, height=").concat(r,"px, scrollbars=yes"),d=function(){window.open(e,"",l),t()};return W(n)&&(d=window.QSI.WindowUtils.getOpenNewWindowOnclickHandler(e,i,o,l,t,"",a).onclickHandler),{onclickHandler:d,setAnimationVisibility:function(){},cleanupAnimation:function(){}}}(o,c,e,p,h,E)}}document.onkeydown=function(e){e&&e.keyCode&&w[e.keyCode]&&w[e.keyCode].forEach(function(t){t(e)})};var D="all 0.5s",_=27;function R(e){return function(t){var i=window.QSI.Orchestrator;if(i&&i.isMessageEventOriginAllowed&&i.isMessageEventOriginAllowed(t.origin)){var n=QSI.util.safeJSONParse(t.data);n&&"EscapeKeyPress"===n.event&&"JFE"===n.from&&e()}}}function M(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=document.createElement("div");i.id="QSIFeedbackButton-invisible-div",i.onfocus=function(){n.focus()},Object.assign(i.style,{width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"}),i.setAttribute("tabindex",0),i.setAttribute("aria-hidden",!0),e.appendChild(i);var n=e.querySelectorAll("button")[0];t&&n.focus(),QSI.util.observe(window,"keydown",function(e){9===e.which&&e.target===n&&e.shiftKey&&e.preventDefault()})}function P(e,t){var i=document.createElement("div");Object.assign(i.style,{display:"flex",flexDirection:"column",height:"100%"});var n=H(e,t);return i.appendChild(n),i}function H(e,t){var i,n=document.createElement("div");return n.id="QSIFeedbackButton-close-btn-container",Object.assign(n.style,{backgroundColor:"transparent",paddingBottom:"10px"}),t===s&&Object.assign(n.style,{paddingRight:"10px"}),t===a&&Object.assign(n.style,{right:"10px",top:"10px",position:"absolute"}),QSI.util.isIE(10)?Object.assign(n.style,{textAlign:"right"}):Object.assign(n.style,{display:"flex",justifyContent:"flex-end"}),n.appendChild(function(e,t){var i=document.createElement("button");i.setAttribute("role","button"),i.id="QSIFeedbackButton-close-btn",t!==r&&i.setAttribute("tabindex",-1);var n=document.createElement("img");switch(n.src=QSI.global.baseURL+"/WRSiteInterceptEngine/../WRQualtricsShared/Graphics/siteintercept/",t){case r:n.src+="bwc_close.png";break;case a:n.src+="wr-dialog-close-btn-black.png";break;default:n.src+="wr-dialog-close-btn-white.png"}return n.alt=QSI.LocalizationModule.getLocalizedString("Close"),i.appendChild(n),Object.assign(n.style,{height:"17px",width:"17px"}),Object.assign(i.style,{cursor:"pointer",border:0,padding:0,backgroundColor:"transparent",zIndex:QSI.global.currentZIndex+1}),i.onclick=e,i.onkeydown=function(i){13!==i.which&&32!==i.which||(i.preventDefault(),e(),t===a&&QSI.util.sendFocusToFirstTabbableElement())},t===a&&(i.style.margin="0"),i}(e,t)),t===a&&n.appendChild(((i=document.createElement("div")).id="QSIFeedbackButton-close-btn-background",Object.assign(i.style,{position:"absolute",width:"28px",height:"28px",borderRadius:"14px",top:"-5px",right:"-5px",backgroundColor:"#FFF",opacity:"0.5"}),i)),n}function Q(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>4?arguments[4]:void 0,o=document.createElement("iframe");return o.id="QSIFeedbackButton-survey-iframe",i&&(o.title=i),Object.assign(o.style,{height:"100%",width:"100%",border:"none"}),W(n)||(o.src=t),o.setAttribute("data-interceptId",e),o.setAttribute("name","survey-iframe-".concat(e)),o.setAttribute("allow","local-network-access"),o}function k(){var e=document.createElement("div");return e.id="QSIFeedbackButton-shadowbox",Object.assign(e.style,{position:"fixed",backgroundColor:"#000",left:"0",top:"0",width:"100%",height:"100%",margin:0,padding:0,opacity:"0.5",zIndex:QSI.global.currentZIndex}),e}function F(e){var t=document.createElement("div");return t.id="QSIFeedbackButton-ios-scroll",Object.assign(t.style,{"-webkit-overflow-scrolling":"touch",overflow:"auto",height:"100%"}),t.appendChild(e),t}function U(e){return function(t){for(var i=0;ie.length)&&(t=e.length);for(var i=0,n=Array(t);i0&&(i=1e3*t.DisplayAfter),this.isPreview)t.LivePreviewerRun||(i=0),setTimeout(this._displayForLivePreviewer.bind(this,e,t),i);else{var n=setTimeout(this._display.bind(this,e,t),i);QSI.util.pushTimeout(n)}},_display:function(e,t){!this.isPreview&&this.options.logImpressions&&this.impress(),this.previouslyFocussedElement=document.activeElement,this.container=QSI.BuildResponsiveElementModule.buildParentContainer();var i=this.buildCreativeContainer(e,t);i.appendChild(e),this.Animation[t.Type].setInitialCreativeStyles(e,t),(t.Type===this.Animation.TYPES.FADE||t.Type===this.Animation.TYPES.SLIDE_IN&&this.isMobileViewport())&&(this.shadowBox=QSI.BuildResponsiveElementModule.buildShadowBox(),i.style.zIndex=this.shadowBox.style.zIndex,this.container.appendChild(this.shadowBox),this.setInitialShadowBoxStyles(this.shadowBox)),this.container.appendChild(i),document.body.appendChild(this.container),this.addAccessibilityFunctionality(i,t,this.previouslyFocussedElement);var n=!1;if(this.options&&(n=QSI.util.usePostToStart(this.options.targetURLType)),n&&this.hasCreativeEmbeddedTarget){var o=this.getTarget();o=QSI.util.addScreenCaptureParameterToTarget(o);var a=QSI.EmbeddedData.getEmbeddedDataAsArray(this.options.id,this.options.requestId,null,null,this.options);QSI.WindowUtils.postToIframe("survey-iframe-"+this.options.id,o,a)}(t.Type===this.Animation.TYPES.FADE||t.Type===this.Animation.TYPES.SLIDE_IN&&this.isMobileViewport())&&this.setShadowBoxAnimationStyles(this.shadowBox,t),this.Animation[t.Type].addCreativeTransitionEndListener(e,this);var s=this.Animation;if(setTimeout(function(){s[t.Type].setCreativeAnimationStyles(e,t)},100),QSI.global.currentZIndex++,t.ShouldAutoClose)if(t.CloseAfter>0){var r=1e3*t.CloseAfter;setTimeout(this.close.bind(this),r)}else this.close();var l=this;this.options.actionOptions&&this.options.actionOptions.autoCloseTarget&&QSI.util.observe(window,"message",function(e){try{var t=QSI.Orchestrator;if(!t||!t.isMessageEventOriginAllowed||!t.isMessageEventOriginAllowed(e.origin))return;"closeQSIWindow"!==e.data&&"endOfSurvey"!==e.data||l.close()}catch(e){"undefined"!=typeof QSI&&QSI.dbg&&QSI.dbg.e&&QSI.dbg.e(e)}})},_displayForLivePreviewer:function(e,t){var i=!0===t.LivePreviewerRun;this.container=QSI.BuildResponsiveElementModule.buildParentContainer();var n=this.buildCreativeContainer(e,t);if(n.appendChild(e),i?(this.Animation[t.Type].initLivePreviewerCreativeAnimationStyles(e,t),(t.Type===this.Animation.TYPES.FADE||t.Type===this.Animation.TYPES.SLIDE_IN&&this.isMobileViewportForLivePreviewer())&&(this.shadowBox=QSI.BuildResponsiveElementModule.buildShadowBox(),n.style.zIndex=this.shadowBox.style.zIndex,this.container.appendChild(this.shadowBox),this.setInitialShadowBoxStyles(this.shadowBox))):this.initLivePreviewerCreativeStyles(e),this.container.appendChild(n),document.body.appendChild(this.container),i){(t.Type===this.Animation.TYPES.FADE||t.Type===this.Animation.TYPES.SLIDE_IN&&this.isMobileViewportForLivePreviewer())&&this.setShadowBoxAnimationStyles(this.shadowBox,t),this.Animation[t.Type].addCreativeTransitionEndListener(e,this);var o=this.Animation;setTimeout(function(){o[t.Type].updateLivePreviewerCreativeAnimationStyles(e,t)},100)}if(QSI.global.currentZIndex++,i&&t.ShouldAutoClose)if(t.CloseAfter>0){var a=1e3*t.CloseAfter;setTimeout(this.close.bind(this),a)}else this.close()},impress:function(){},buildCreativeContainer:function(e,t){var i=this.CREATIVE_CONTAINER_CLASS+"-"+t.Type;return QSI.BuildResponsiveElementModule.buildHTMLElement({elementType:QSI.BuildResponsiveElementModule.HTML_ELEMENT_TYPES.CONTAINER,content:e,className:i})},setInitialShadowBoxStyles:function(e){e.style.opacity=0},setShadowBoxAnimationStyles:function(e,t){"dark"===t.BackgroundScreen||t.Type===this.Animation.TYPES.SLIDE_IN?e.style.opacity=.5:"medium"===t.BackgroundScreen?e.style.opacity=.25:"light"===t.BackgroundScreen?e.style.opacity=.1:"none"===t.BackgroundScreen&&(e.style.opacity=0),e.style.transition="transform 0.5s, opacity 0.5s"},shouldDisplayCloseButton:function(e){return!!e.Buttons.UseCloseButton},shouldDisplayLogo:function(e){if(void 0===e.Logos||void 0===e.Logos.Desktop||void 0===e.Logos.Mobile)return!1;if(!e.Logos.Desktop.ImageId&&!e.Logos.Mobile.ImageId)return!1;var t=this.isPreview?this.isMobileViewportForLivePreviewer():this.isMobileViewport();return!(!e.Logos.Mobile.ImageId&&t)},isMobileViewportForLivePreviewer:function(){return window.innerWidth<=QSI.WebResponsiveDialog.smallLivePreviewerViewportBreakpoint},isMobileViewport:function(){return window.innerWidth<=QSI.WebResponsiveDialog.smallViewportBreakpoint},buildModalContentStyle:function(e){var t={};return t["background-color"]=e,t},buildTextStyle:function(e,t){return{"font-size":e,color:t}},buildButtonStyle:function(e){return{"font-size":e}},addStandardButtonStyle:function(e,t){var i=this;t.style.color=e.LabelColor,t.style["background-color"]=e.BackgroundColor,t.style["border-color"]=e.BorderColor,t.addEventListener("focus",function(){i.addFocusStyles(t)}),t.addEventListener("blur",function(){i.removeFocusStyles(t)})},addFocusStyles:function(e){e.style["box-shadow"]="0 0 0 2px #fff, 0 0 0 4px #0a3f88"},removeFocusStyles:function(e){e.style["box-shadow"]=""},addAccessibilityFunctionality:function(e,t,i){t.Type===this.Animation.TYPES.FADE&&(e.tabIndex=0);var n=e.querySelectorAll("[tabindex]");if(n&&n.length>0){this.firstTabbableElement=n[0],this.lastTabbableElement=n[n.length-1];var o=this,a=function(){o.close?o.close():QSI.util.closeResponsiveEmbeddedTarget(e,i)};window.addEventListener("message",function(e){var t=QSI.Orchestrator;if(t&&t.isMessageEventOriginAllowed&&t.isMessageEventOriginAllowed(e.origin)){var i=QSI.util.safeJSONParse(e.data);i&&"EscapeKeyPress"===i.event&&"JFE"===i.from&&a()}}),QSI.util.observe(e,"keydown",function(i){try{(t.Type===o.Animation.TYPES.FADE||t.Type===o.Animation.TYPES.SLIDE_IN&&o.isMobileViewport())&&9===i.which&&(i.target!==o.lastTabbableElement||i.shiftKey?i.target===o.firstTabbableElement&&i.shiftKey?(i.preventDefault(),o.lastTabbableElement.focus()):i.target!==e||i.shiftKey?i.target===e&&i.shiftKey&&(i.preventDefault(),o.lastTabbableElement.focus()):(i.preventDefault(),o.firstTabbableElement.focus()):(i.preventDefault(),o.firstTabbableElement.focus()))}catch(e){"undefined"!=typeof QSI&&QSI.dbg&&QSI.dbg.e&&QSI.dbg.e(e)}}),QSI.util.observe(document,"keyup",function(e){try{27===e.which&&(e.preventDefault(),a())}catch(e){"undefined"!=typeof QSI&&QSI.dbg&&QSI.dbg.e&&QSI.dbg.e(e)}}),!this.firstTabbableElement||this.isPreview||t.Type===this.Animation.TYPES.SLIDE_IN&&!this.isMobileViewport()||this.firstTabbableElement.focus()}},getCreativeContainerStylesheetString:function(){return" ."+this.CREATIVE_CONTAINER_CLASS+"-fade { outline: none; position: fixed; z-index: "+QSI.global.currentZIndex+"; left: 0; top: 0; width: 100%; height: 100%; padding: 0px; margin: 0px; display: -ms-flexbox; display: flex; flex-wrap: wrap; -ms-flex-pack: center; justify-content: center; -ms-flex-align: center; align-items: center; -webkit-text-size-adjust: 100%; -moz-text-size-adjust: 100%; -ms-text-size-adjust: 100%; overflow: auto; } ."+this.CREATIVE_CONTAINER_CLASS+"-slide-in { outline: none; z-index:"+QSI.global.currentZIndex+"; position: relative; } "}})},61:function(e,t,i){"use strict";i(840),i(901);var n="377px",o="276px",a="173px",s="339px";function r(e){return"."+window.QSI.BuildResponsiveElementModule.PARENT_CONTAINER_CLASS+" ."+e}function l(e,t,i,o,a){var s=e?"and (min-height: "+e+") ":"",l=t?"and (max-height: "+t+") ":"";return"60vh"===a||"490px"!==e&&"610px"!==e||parseInt(a)