1 line
34 KiB
Plaintext
1 line
34 KiB
Plaintext
var ModernRewards;(function(n){var t="redDotDisplay",e="redDotDisplayFill",f="rewards_header_icon serp",o="rewards_header_icon hp",s="/red-dot-24.png",h="AutoOpenFlyoutFired",c="bfbNotificationShown",l="BNPNotificationShown",a="ChatVerticalShown",v="CookieDisabled",y="IsAADUser",p="MissingModel",w="_RwBf",b="rwmrst",i=!0,u="",r="//rewards.bing.com/rewardscdn/images/rewards/membercenter/missions/redDotImage.png",k=function(){function n(n){this.reportActivityModel=n;this.rewardsReadyEventArgs={isAuthenticated:n&&n.IsAuthenticated,isRebatesUser:n&&n.RewardsSessionData&&n.RewardsSessionData.IsRebatesUser,isRewardsUser:n&&n.RewardsSessionData&&n.RewardsSessionData.IsRewardUser,isTrialUser:n&&n.RewardsSessionData&&!n.RewardsSessionData.IsRewardUser&&n.RewardsSessionData.IsTrialUser,waitlist:n&&n.RewardsSessionData&&n.RewardsSessionData.Waitlist,isCcpEligible:n&&n.RewardsSessionData&&n.RewardsSessionData.IsCcpEligible,hasUsedCcpTrial:n&&n.RewardsSessionData&&n.RewardsSessionData.HasUsedCcpTrial}}return n.prototype.initialize=function(){var f=this,o,s,w,n;if(this.reportActivityModel){if(this.sendReportActivityModelToWidget(),this.updateDashboardHeader(),this.updateMobileHeader(),this.updateRebatesHeader(),this.updateBalanceMessage(),(((o=this.reportActivityModel.RewardsSessionData)===null||o===void 0?void 0:o.IsGiveModeOn)||this.reportActivityModel.IsGiveSerpHeaderTealHeartEnabled||this.reportActivityModel.IsDailyCheckInMedallionAnimationEnabled||this.reportActivityModel.IsRewardsEntryPointEnabled)&&!this.reportActivityModel.IsGiveHeaderTextEnabled&&this.updateIdentityHeader(!1),this.reportActivityModel.IsGiveHeaderTextEnabled)this.updatePointsCounter();else if(_ge("givemuid_heart")||_ge("rh_meter_leaf_homepage")){s=_ge("id_r");s&&(s.style.display="block");var t=this.reportActivityModel.RewardsSessionData,b=t.Balance>0||t.IsRewardUser,e=b?t.Balance.toString():this.reportActivityModel.RewardsHeader,k=_ge("id_rc");k&&e&&(k.innerHTML=e,this.reportActivityModel.AnimateHeader&&b&&(this.reportActivityModel.IsMobileClient?RewardsCreditRefresh.RewardsHeaderAnim(t.PreviousBalance,t.Balance,t.GoalTrackBalance,this.reportActivityModel.RewardsIncrement):sj_evt.bind("identityHeaderShown",function(){return RewardsCreditRefresh.RewardsHeaderAnim(t.PreviousBalance,t.Balance,t.GoalTrackBalance,f.reportActivityModel.RewardsIncrement)},1)));w=_ge("ic_rcep");w&&e&&(w.innerHTML=e)}this.reportActivityModel.LogWaitlistAutoJoin&&typeof LightLogger!="undefined"&&LightLogger&&LightLogger.logInstrumentationV2(null,LightLogger.InstrumentationEventType.Init,"WaitlistAutoJoin",!0,{})}var d=this.reportActivityModel&&this.reportActivityModel.RewardsSessionData?this.reportActivityModel.RewardsSessionData.IsRewardUser:!1,r=this.reportActivityModel&&this.reportActivityModel.AutoOpenGoBigL2Scenario,g=this.reportActivityModel&&this.reportActivityModel.IsAutoOpenGoBigL2Treatment;r&&typeof LightLogger!="undefined"&&LightLogger&&(g?LightLogger.logInstrumentationV2(null,LightLogger.InstrumentationEventType.Init,r,!0,{}):(LightLogger.logInstrumentationV2(null,LightLogger.InstrumentationEventType.Init,"Control-".concat(r),!0,{}),r=""));n=!1;this.reportActivityModel?navigator.cookieEnabled?(n=this.reportActivityModel.AutoOpenFlyout,n||(u="NoTrigger:"+this.reportActivityModel.AutoOpenFlyoutSuppressionReason)):(n=d?this.reportActivityModel.AutoOpenFlyout:!1,n||(u=v)):u=p;sj_evt.bind("bnp.notif.shown",function(){n&&(u=l);n=!1;sj_evt.fire("AutoOpenFlyoutHide")},!0);sj_evt.bind("showSydFSC",function(){n&&(u=a);n=!1;sj_evt.fire("AutoOpenFlyoutHide")},!0);sj_evt.bind("bfbNotificationShown",function(){n&&(u=c);n=!1;sj_evt.fire("AutoOpenFlyoutHide")},!0);sj_evt.bind("aad:signedin",function(){n&&(u=y);n=!1;sj_evt.fire("AutoOpenFlyoutHide")},!0);sj_evt.bind("onP1",function(){n?sj_evt.fire("AutoOpenFlyout"):r&&sj_evt.fire("OpenGoBigFlyoutL2",r);typeof LightLogger!="undefined"&&LightLogger&&LightLogger.logInstrumentationV2(null,LightLogger.InstrumentationEventType.Init,h,!0,{IsRewardUser:d,IsAutoOpenFlyout:n,SuppressionReason:u})},1);sj_evt.fire("RewardsCookieUpdated");sj_evt.fire("rewready",this.rewardsReadyEventArgs);sj_evt.bind("redDotControl",function(){f.hideRedDot()});sj_evt.bind("rewardsRedDot",function(){return i=!1,f.updateIdentityHeader(!0),i},1);sj_evt.bind("redDotAnimation",function(){return i=!0,f.updateIdentityHeader(!0),i},1)},n.prototype.updatePointsCounter=function(){var u=this,n=this.reportActivityModel.RewardsSessionData,t=n.Balance>0||n.IsRewardUser,i=t?n.Balance.toString():this.reportActivityModel.RewardsHeader,r=_ge("id_rc");r&&i&&(r.innerHTML=i,this.reportActivityModel.AnimateHeader&&t&&(this.reportActivityModel.IsMobileClient?RewardsCreditRefresh.RewardsHeaderAnim(n.PreviousBalance,n.Balance,n.GoalTrackBalance,this.reportActivityModel.RewardsIncrement):sj_evt.bind("identityHeaderShown",function(){return RewardsCreditRefresh.RewardsHeaderAnim(n.PreviousBalance,n.Balance,n.GoalTrackBalance,u.reportActivityModel.RewardsIncrement)},1)))},n.prototype.updateIdentityHeader=function(n){var st=this,v,y,p,k,c,ft,h,g,nt;if(this.reportActivityModel){if(!this.reportActivityModel.RewardsSessionData||this.reportActivityModel.IsGiveHeaderTextEnabled)return;var u=this.reportActivityModel.RewardsSessionData,l=this.reportActivityModel.AnimationAltText,tt=_ge("id_r");if(tt&&(tt.style.display="block"),this.reportActivityModel.UseRedDotFromBingDomain&&(r=s),this.reportActivityModel.RewardsSessionData.IsGiveModeOn)h=_ge(o),h&&(h.innerHTML="".concat(u.ShowAnimation?'<img id = "'.concat(t,'" src="').concat(r,'" alt="').concat(l,'" class = "" width = "8px" height = "8px" style="float:right;margin-right:-1px;margin-top:-1px" />'):"")+'<svg width="30" height="30" style="'.concat(u.ShowAnimation?"margin-left: 1px":"",'" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">')+'<rect width="30" height="30" fill="none"><\/rect><circle cx="15" cy="15" r="14" stroke="white" stroke-opacity="0.8" stroke-width="2"><\/circle><path d="M15 11.412L15.9463 11.7354C15.808 12.1401 15.4276 12.412 15 12.412C14.5723 12.412 14.192 12.1401 14.0537 11.7354L15 11.412ZM21.9309 12.3022L21.8452 13.2985C21.3557 13.2564 20.9693 12.865 20.9335 12.375L21.9309 12.3022ZM21.9411 12.303L22.0268 11.3067C22.4831 11.346 22.8545 11.6903 22.9281 12.1424L21.9411 12.303ZM17.6248 19.5469L17.0304 18.7427L17.0304 18.7427L17.6248 19.5469ZM15 20.6418L14.8739 19.6498C14.9576 19.6391 15.0423 19.6391 15.1261 19.6498L15 20.6418ZM12.3752 19.5469L12.9696 18.7427L12.9696 18.7427L12.3752 19.5469ZM8.05891 12.303L7.0719 12.1424C7.1455 11.6903 7.51684 11.346 7.9732 11.3067L8.05891 12.303ZM8.06909 12.3022L9.06643 12.375C9.03065 12.865 8.64426 13.2564 8.1548 13.2985L8.06909 12.3022ZM14.0537 11.0886C14.6673 9.29326 16.3687 8 18.3749 8V10C17.25 10 16.2917 10.7246 15.9463 11.7354L14.0537 11.0886ZM18.3749 8C20.7834 8 22.7555 9.86433 22.9282 12.2293L20.9335 12.375C20.8366 11.0476 19.7276 10 18.3749 10V8ZM22.0166 11.3058L22.0268 11.3067L21.8554 13.2994L21.8452 13.2985L22.0166 11.3058ZM22.9281 12.1424C23.252 14.132 22.44 15.8965 21.4296 17.2539C20.4155 18.6163 19.1155 19.6885 18.2192 20.3511L17.0304 18.7427C17.8606 18.1291 18.9815 17.1933 19.8253 16.0597C20.6727 14.9212 21.1556 13.7019 20.9541 12.4637L22.9281 12.1424ZM18.2192 20.3511C16.7902 21.4072 15.5844 21.7241 14.8739 21.6338L15.1261 19.6498C15.1153 19.6484 15.8058 19.6478 17.0304 18.7427L18.2192 20.3511ZM12.9696 18.7427C14.1942 19.6478 14.8846 19.6484 14.8739 19.6498L15.1261 21.6338C14.4156 21.7241 13.2098 21.4072 11.7808 20.3511L12.9696 18.7427ZM9.04591 12.4637C8.84434 13.7019 9.32726 14.9212 10.1747 16.0597C11.0185 17.1933 12.1394 18.1291 12.9696 18.7427L11.7808 20.3511C10.8844 19.6885 9.58447 18.6163 8.57039 17.2539C7.55998 15.8965 6.74801 14.132 7.0719 12.1424L9.04591 12.4637ZM8.1548 13.2985L8.14462 13.2994L7.9732 11.3067L7.98338 11.3058L8.1548 13.2985ZM11.6251 10C10.2724 10 9.16338 11.0476 9.06643 12.375L7.07175 12.2293C7.24447 9.86433 9.21662 8 11.6251 8V10ZM14.0537 11.7354C13.7083 10.7246 12.75 10 11.6251 10V8C13.6312 8 15.3327 9.29326 15.9463 11.0886L14.0537 11.7354Z" fill="white"><\/path> <\/svg>'),c=_ge(f),c&&(c.innerHTML="".concat(u.ShowAnimation?'<img id = "'.concat(t,'" src="').concat(r,'" alt="').concat(l,'" class = "" width = "8px" height = "8px" style="float: right;margin-right:-1px;margin-top:-1px;" />'):"")+'<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg" '+'style="'.concat(u.ShowAnimation?"margin-bottom: -2px; margin-left: 4px;":"margin-bottom: -2px; margin-left: 4px;",'">')+'<rect width = "30" height = "30" fill = "none" /><\/rect><circle cx="15" cy="15" r="14" stroke="#00809d" stroke-opacity="0.8" stroke-width="2" /><path id="rh_animpath" class="serp anim" d="M15 11.412L15.9463 11.7354C15.808 12.1401 15.4276 12.412 15 12.412C14.5723 12.412 14.192 12.1401 14.0537 11.7354L15 11.412ZM21.9309 12.3022L21.8452 13.2985C21.3557 13.2564 20.9693 12.865 20.9335 12.375L21.9309 12.3022ZM21.9411 12.303L22.0268 11.3067C22.4831 11.346 22.8545 11.6903 22.9281 12.1424L21.9411 12.303ZM17.6248 19.5469L17.0304 18.7427L17.0304 18.7427L17.6248 19.5469ZM15 20.6418L14.8739 19.6498C14.9576 19.6391 15.0423 19.6391 15.1261 19.6498L15 20.6418ZM12.3752 19.5469L12.9696 18.7427L12.9696 18.7427L12.3752 19.5469ZM8.05891 12.303L7.0719 12.1424C7.1455 11.6903 7.51684 11.346 7.9732 11.3067L8.05891 12.303ZM8.06909 12.3022L9.06643 12.375C9.03065 12.865 8.64426 13.2564 8.1548 13.2985L8.06909 12.3022ZM14.0537 11.0886C14.6673 9.29326 16.3687 8 18.3749 8V10C17.25 10 16.2917 10.7246 15.9463 11.7354L14.0537 11.0886ZM18.3749 8C20.7834 8 22.7555 9.86433 22.9282 12.2293L20.9335 12.375C20.8366 11.0476 19.7276 10 18.3749 10V8ZM22.0166 11.3058L22.0268 11.3067L21.8554 13.2994L21.8452 13.2985L22.0166 11.3058ZM22.9281 12.1424C23.252 14.132 22.44 15.8965 21.4296 17.2539C20.4155 18.6163 19.1155 19.6885 18.2192 20.3511L17.0304 18.7427C17.8606 18.1291 18.9815 17.1933 19.8253 16.0597C20.6727 14.9212 21.1556 13.7019 20.9541 12.4637L22.9281 12.1424ZM18.2192 20.3511C16.7902 21.4072 15.5844 21.7241 14.8739 21.6338L15.1261 19.6498C15.1153 19.6484 15.8058 19.6478 17.0304 18.7427L18.2192 20.3511ZM12.9696 18.7427C14.1942 19.6478 14.8846 19.6484 14.8739 19.6498L15.1261 21.6338C14.4156 21.7241 13.2098 21.4072 11.7808 20.3511L12.9696 18.7427ZM9.04591 12.4637C8.84434 13.7019 9.32726 14.9212 10.1747 16.0597C11.0185 17.1933 12.1394 18.1291 12.9696 18.7427L11.7808 20.3511C10.8844 19.6885 9.58447 18.6163 8.57039 17.2539C7.55998 15.8965 6.74801 14.132 7.0719 12.1424L9.04591 12.4637ZM8.1548 13.2985L8.14462 13.2994L7.9732 11.3067L7.98338 11.3058L8.1548 13.2985ZM11.6251 10C10.2724 10 9.16338 11.0476 9.06643 12.375L7.07175 12.2293C7.24447 9.86433 9.21662 8 11.6251 8V10ZM14.0537 11.7354C13.7083 10.7246 12.75 10 11.6251 10V8C13.6312 8 15.3327 9.29326 15.9463 11.0886L14.0537 11.7354Z" /><\/svg>');else if(this.reportActivityModel.IsGiveSerpHeaderTealHeartEnabled&&(u.IsGiveModeOn||!u.IsRewardUser))h=_ge(o),h&&(h.innerHTML="".concat(u.ShowAnimation?'<img id = "'.concat(t,'" src="').concat(r,'" alt="').concat(l,'" class = "" width = "8px" height = "8px" style="float:right;margin-right:-1px;margin-top:-1px" />'):"")+' <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="none" viewBox="0 0 32 32"> <circle cx="16" cy="16" r="15" stroke="white" stroke-width="2" /> <path fill="white" fill-rule="evenodd" d="M16.002 12.7c-.545-1.57-2.066-2.7-3.858-2.7-2.148 0-3.907 1.625-4.062 3.685l-.015.001c-.6 3.602 2.958 6.66 4.93 8.084 1.52 1.097 2.604 1.273 3.002 1.222.394.052 1.48-.121 3.004-1.221 1.972-1.425 5.53-4.482 4.93-8.085h-.011C23.768 11.625 22.008 10 19.86 10c-1.792 0-3.313 1.13-3.858 2.7z" clip-rule="evenodd" /><\/svg>'),c=_ge(f),c&&(c.innerHTML="".concat(u.ShowAnimation?'<img id = "'.concat(t,'" src="').concat(r,'" alt="').concat(l,'" class = "" width = "8px" height = "8px" style="float: right;margin-right:-1px;margin-top:-1px;" />'):"")+'<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="none" viewBox="0 0 32 32"> <circle cx="16" cy="16" r="15" stroke="#00809D" stroke-width="2" /><path fill="#00809D" fill-rule="evenodd" d="M16.002 12.7c-.545-1.57-2.066-2.7-3.858-2.7-2.148 0-3.907 1.625-4.062 3.685l-.015.001c-.6 3.602 2.958 6.66 4.93 8.084 1.52 1.097 2.604 1.273 3.002 1.222.394.052 1.48-.121 3.004-1.221 1.972-1.425 5.53-4.482 4.93-8.085h-.011C23.768 11.625 22.008 10 19.86 10c-1.792 0-3.313 1.13-3.858 2.7z" clip-rule="evenodd" /><\/svg>');else if(u.IsRedemptionReadyAndAnimationEnabled&&(u.IsUserFirstMedallionImpressionToday||u.ShowMedallionFadeAnimation)){var c=_ge(f),it="".concat(u.ShowAnimation?i?'<img id = "'.concat(t,'" src="').concat(r,'" alt="').concat(l,'" width = "8px" height = "8px" style="position: absolute;top: -4px;right: -3px;" />'):'<svg id = "'.concat(t,'" width = "6px" height = "6px" style="position: absolute;top: -1px;right: -3px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 6" enable-background="new 0 0 6 6"><circle cx="3" cy="3" r="3" fill="#C80000"><\/circle><\/svg>'):""),rt="M23 9h-14c-.552 0-1 .448-1 1v3.71c0 .538.288 1.034.756 1.303l4.877 2.778c-1.206.891-1.905 2.43-1.532 4.115.323 1.461 1.501 2.655 2.96 2.987 2.617.596 4.939-1.378 4.939-3.893 0-1.32-.647-2.481-1.633-3.209l4.877-2.779-.002.001c.471-.268.758-.767.758-1.303v-3.71c0-.552-.448-1-1-1zm-12 4.991l-1-.571v-2.42h1v2.991zm5 9.009c-1.103 0-2-.897-2-2s.897-2 2-2 2 .897 2 2-.897 2-2 2zm3-7.866l-2.472 1.537c-.323.201-.733.201-1.056 0l-2.472-1.537v-4.134h6v4.134zm3-1.714l-1 .571v-2.991h1v2.42z",ut="M15.4622 16.35V24H12.0622C10.5365 24 9.29971 22.7632 9.29971 21.2375V16.35H15.4622ZM22.8997 16.35V21.2375C22.8997 22.7632 21.6629 24 20.1372 24H16.7372V16.35H22.8997ZM18.2247 7C19.7504 7 20.9872 8.23681 20.9872 9.7625C20.9872 10.3107 20.8275 10.8217 20.5521 11.2513L22.6872 11.25C23.274 11.25 23.7497 11.6464 23.7497 12.1354V14.1432C23.7497 14.6322 23.274 15.0286 22.6872 15.0286L16.7372 15.0278V11.25H15.4622V15.0278L9.51221 15.0286C8.9254 15.0286 8.44971 14.6322 8.44971 14.1432V12.1354C8.44971 11.6464 8.9254 11.25 9.51221 11.25L11.6473 11.2513C11.3719 10.8217 11.2122 10.3107 11.2122 9.7625C11.2122 8.23681 12.449 7 13.9747 7C14.8294 7 15.5934 7.38816 16.1002 7.99782C16.606 7.38816 17.37 7 18.2247 7ZM13.9747 8.275C13.1532 8.275 12.4872 8.94097 12.4872 9.7625C12.4872 10.5429 13.0883 11.183 13.8527 11.2451L13.9747 11.25H15.4622V9.7625L15.4573 9.6405C15.3952 8.87604 14.7552 8.275 13.9747 8.275ZM18.2247 8.275C17.4032 8.275 16.7372 8.94097 16.7372 9.7625V11.25H18.2247C19.0462 11.25 19.7122 10.584 19.7122 9.7625C19.7122 8.94097 19.0462 8.275 18.2247 8.275Z",d="";u.IsUserFirstMedallionImpressionToday?(d=this.getMedallionRedemptionAnimation(u,it,rt,ut),ft=this.getCurrentISODateTimeWithTimezoneOffset(),sj_cook.set(w,b,ft,!0,"/")):u.ShowMedallionFadeAnimation&&(d=this.getMedallionGiftBoxTransition(u,it,rt,ut));c&&(c.innerHTML=d)}else if(this.reportActivityModel.IsDailyCheckInMedallionAnimationEnabled&&this.reportActivityModel.RewardsSessionData.DailyCheckInProgress){var c=_ge(f),ht=(y=(v=this.reportActivityModel)===null||v===void 0?void 0:v.RewardsSessionData)===null||y===void 0?void 0:y.DailyCheckInProgress,ct=((k=(p=this.reportActivityModel)===null||p===void 0?void 0:p.RewardsSessionData)===null||k===void 0?void 0:k.DailyCheckInAnimate)||0;c&&(c.innerHTML=this.getDailyCheckInAnimation(ct,ht,n,l,u))}else h=_ge(o),h&&(h.innerHTML='<span class="rhlined hp">'.concat(u.ShowAnimation?i?'<img id = "'.concat(t,'" src="').concat(r,'" alt="').concat(l,'" width = "8px" height = "8px" style="margin-top:6px" />'):'<svg id = "'.concat(t,'" class = "" width = "6px" height = "6px" style="float:right;margin-right:-3px;margin-top:-1px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 6" enable-background="new 0 0 6 6">')+'<circle cx="3" cy="3" r="3" fill="#C80000"><\/circle><\/svg>':"")+'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" enable-background="new 0 0 32 32"><path class="medal" d="M23 9h-14c-.552 0-1 .448-1 1v3.71c0 .538.288 1.034.756 1.303l4.877 2.778c-1.206.891-1.905 2.43-1.532 4.115.323 1.461 1.501 2.655 2.96 2.987 2.617.596 4.939-1.378 4.939-3.893 0-1.32-.647-2.481-1.633-3.209l4.877-2.779-.002.001c.471-.268.758-.767.758-1.303v-3.71c0-.552-.448-1-1-1zm-12 4.991l-1-.571v-2.42h1v2.991zm5 9.009c-1.103 0-2-.897-2-2s.897-2 2-2 2 .897 2 2-.897 2-2 2zm3-7.866l-2.472 1.537c-.323.201-.733.201-1.056 0l-2.472-1.537v-4.134h6v4.134zm3-1.714l-1 .571v-2.991h1v2.42z"><\/path><path d="M.018 0h32v32h-32v-32z" fill="none"><\/path><circle class="meter" stroke="#000" stroke-width="2" stroke-miterlimit="10" cx="16" cy="16" r="14" fill="none"><\/circle><\/svg><\/span>'+'<span class="rhfill hp">'.concat(u.ShowAnimation?i?'<img id = "'.concat(e,'" src="').concat(r,'" alt="').concat(l,'" width = "8px" height = "8px" style="float:right;margin-right:-3px;margin-top:-5px" />'):'<svg id = "'.concat(e,'" class = "" width = "6px" height = "6px" style="float:right;margin-right:-3px;margin-top:-3px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 6" enable-background="new 0 0 6 6">')+'<circle cx="3" cy="3" r="3" fill="#C80000"><\/circle><\/svg>':"")+'<svg style="'.concat(u.ShowAnimation?"margin-top:-3px;":"",'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" enable-background="new 0 0 32 32">')+'<path class="medal" d="M12 16.006l2.554 1.28c-1.492.581-2.554 2.023-2.554 3.72 0 2.209 1.791 4 4 4s4-1.791 4-4c0-1.696-1.06-3.138-2.551-3.719l2.551-1.281v-7h-8v7zm-4-6.5v4.183c0 .189.106.362.275.447l1.725.87v-6h-1.5c-.276 0-.5.224-.5.5zm15.5-.5h-1.5v6l1.725-.87c.169-.085.275-.258.275-.447v-4.183c0-.276-.224-.5-.5-.5z"><\/path><path d="M.018 0h32v32h-32v-32z" fill="none"><\/path><circle class="meter" stroke="#000" stroke-width="2" stroke-miterlimit="10" cx="16" cy="16" r="14" fill="none"><\/circle><\/svg><\/span><svg xmlns="http://www.w3.org/2000/svg" id="rh_meter"><circle cx="20" cy="20" r="14" id="rh_animcrcl" class="hp" stroke-dasharray="88, 88" transform="rotate(-90,20,20)"><\/circle><\/svg>'),h=_ge(f),h&&(h.innerHTML="".concat(u.ShowAnimation?i?'<span style="float:right;display:inline-block;vertical-align:top;margin:-25px 0 0 -5px;">'+'<img id = "'.concat(t,'" src="').concat(r,'" alt="').concat(l,'" width = "8px" height = "8px"/>')+"<\/span>":'<svg id = "'.concat(t,'" class = "" width = "6px" height = "6px" style="float:right;margin-right:-3px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 6" enable-background="new 0 0 6 6">')+'<circle cx="3" cy="3" r="3" fill="#C80000"><\/circle><\/svg>':"")+'<span class="rhlined serp"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" enable-background="new 0 0 32 32"><path class="medal" d="M23 9h-14c-.552 0-1 .448-1 1v3.71c0 .538.288 1.034.756 1.303l4.877 2.778c-1.206.891-1.905 2.43-1.532 4.115.323 1.461 1.501 2.655 2.96 2.987 2.617.596 4.939-1.378 4.939-3.893 0-1.32-.647-2.481-1.633-3.209l4.877-2.779-.002.001c.471-.268.758-.767.758-1.303v-3.71c0-.552-.448-1-1-1zm-12 4.991l-1-.571v-2.42h1v2.991zm5 9.009c-1.103 0-2-.897-2-2s.897-2 2-2 2 .897 2 2-.897 2-2 2zm3-7.866l-2.472 1.537c-.323.201-.733.201-1.056 0l-2.472-1.537v-4.134h6v4.134zm3-1.714l-1 .571v-2.991h1v2.42z"><\/path><path d="M.018 0h32v32h-32v-32z" fill="none"><\/path><circle class="meter" stroke="#000" stroke-width="2" stroke-miterlimit="10" cx="16" cy="16" r="14" fill="none"><\/circle><\/svg><\/span><span class="rhfill serp"><svg id = "serp_medal_svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" enable-background="new 0 0 32 32"><path class="medal" d="M12 16.006l2.554 1.28c-1.492.581-2.554 2.023-2.554 3.72 0 2.209 1.791 4 4 4s4-1.791 4-4c0-1.696-1.06-3.138-2.551-3.719l2.551-1.281v-7h-8v7zm-4-6.5v4.183c0 .189.106.362.275.447l1.725.87v-6h-1.5c-.276 0-.5.224-.5.5zm15.5-.5h-1.5v6l1.725-.87c.169-.085.275-.258.275-.447v-4.183c0-.276-.224-.5-.5-.5z"><\/path><path d="M.018 0h32v32h-32v-32z" fill="none"><\/path><circle class="meter" stroke="#000" stroke-width="2" stroke-miterlimit="10" cx="16" cy="16" r="14" fill="none"><\/circle><\/svg><\/span><svg xmlns="http://www.w3.org/2000/svg" id = "rh_meter">'+'<circle cx="20" cy="20" r="14" id="rh_animcrcl" class="serp anim" stroke-dasharray="'.concat(this.reportActivityModel.IsMobileClient?"88,88":"0,88",'" transform="rotate(-90,20,20)"><\/circle>')+"<\/svg>");g=null;u.IsRedemptionReadyAndAnimationEnabled&&(u.IsUserFirstMedallionImpressionToday||u.ShowMedallionFadeAnimation)&&typeof LightLogger!="undefined"&&LightLogger&&(g=u.IsUserFirstMedallionImpressionToday?"RedemptionPopAnim":"RedemptionReplaceAnim");typeof LightLogger!="undefined"&&LightLogger&&LightLogger.logInstrumentationV2(null,LightLogger.InstrumentationEventType.Load,"AnimationLoad",!0,{ShowAnimation:u.ShowAnimation,RedDotAnimation:i,RedemptionAnimationState:g});var et=u.Balance>0||u.IsRewardUser,a=et?u.Balance.toString():this.reportActivityModel.RewardsHeader,ot=_ge("id_rc");ot&&a&&(ot.innerHTML=a,this.reportActivityModel.AnimateHeader&&et&&(this.reportActivityModel.IsMobileClient?RewardsCreditRefresh.RewardsHeaderAnim(u.PreviousBalance,u.Balance,u.GoalTrackBalance,this.reportActivityModel.RewardsIncrement):sj_evt.bind("identityHeaderShown",function(){return RewardsCreditRefresh.RewardsHeaderAnim(u.PreviousBalance,u.Balance,u.GoalTrackBalance,st.reportActivityModel.RewardsIncrement)},1)));nt=_ge("ic_rcep");nt&&a&&(nt.innerHTML=a)}sj_evt.fire("RewardsIdentityHeaderUpdated")},n.prototype.updateMobileHeader=function(){var t,n;!this.reportActivityModel.IsMobileClient||this.reportActivityModel.RewardsSessionData.Balance<0||(t=_ge("id_rwds_r"),t&&(t.style.display="inline"),n=_ge("id_rwds_b"),n||(n=_ge("fly_id_rwds_b")),n&&(n.href=this.reportActivityModel.DashboardUrl))},n.prototype.sendReportActivityModelToWidget=function(){var n=this;sj_evt.bind("RewardsWidgetReportActivityReady",function(){return _w.postMessage({action:"rewardsWidgetReportActivityReady",reportActivityModel:n.reportActivityModel},"*")});sj_evt.fire("RewardsWidgetReportActivityReady")},n.prototype.updateDashboardHeader=function(){if(this.reportActivityModel.NeedUpdateRewardsHeaderLink){var n=_ge("id_rh");n&&(n.href=this.reportActivityModel.DashboardUrl,typeof bepns!="undefined"&&bepns.ubc())}},n.prototype.updateRebatesHeader=function(){var n=_ge("id_rbh"),t=_ge("id_rbc"),i;n&&t&&this.reportActivityModel.RewardsSessionData&&this.reportActivityModel.RewardsSessionData.RebatesBalance>0&&(i=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}),t.innerHTML=i.format(this.reportActivityModel.RewardsSessionData.RebatesBalance),n.style.display=null)},n.prototype.hideRedDot=function(){var n=_ge(t),i=_ge(e);n&&Lib.CssClass.add(n,"rd_hide");i&&Lib.CssClass.add(i,"rd_hide")},n.prototype.updateBalanceMessage=function(){var i,r,u,f,e,o,h=((i=this.reportActivityModel)===null||i===void 0?void 0:i.BalanceMessage)||"",c=((r=this.reportActivityModel)===null||r===void 0?void 0:r.ShowNonMemberUpsellMessage)||!1,t=_ge&&_ge("messageContainer"),s=_ge&&_ge("messageContainerNonMember"),n=_ge&&_ge("pointsContainer");c&&(t||s)&&(((f=(u=this.reportActivityModel)===null||u===void 0?void 0:u.RewardsSessionData)===null||f===void 0?void 0:f.IsRewardUser)||((o=(e=this.reportActivityModel)===null||e===void 0?void 0:e.RewardsSessionData)===null||o===void 0?void 0:o.IsTrialUser)?(h?(t.innerHTML=h,t.style.display="block",n===null||n===void 0?void 0:n.classList.add("hasMessage")):(t.style.display="none",n===null||n===void 0?void 0:n.classList.remove("hasMessage")),s.style.display="none"):(s.style.display="block",n.classList.add("hasMessage"),t.style.display="none"))},n.prototype.getMedallionRedemptionAnimation=function(n,t,i,r){return'<span class="medallionTooltipTrigger serp" style="padding-right:4px">\n\t <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">\n\t\t <path class="giftFill serp" opacity="1" d="'.concat(i,'">\n <animate attributetype="CSS" attributename="opacity" from="1" to="0" dur="0.5s" begin="0s" fill="freeze"><\/animate>\n <\/path>\n\n <path opacity="0" class="giftFill serp" d="').concat(r,'">\n <animate attributetype="CSS" attributename="opacity" from="0" to="1" dur="0.5s" begin="0.5s" fill="freeze"><\/animate>\n <\/path>\n\n <circle class="giftStr" cx="16" cy="16" r="14" stroke-width="2" fill-opacity="0">\n\t\t <animate attributeName="stroke-dasharray" from="0 100" to="100 100" dur="0.5s" fill="freeze" begin="0s" calcMode="spline" keyTimes="0; 1" keySplines=".5 0 1 .5" stroke-dasharray="100.53"/>\n\t <\/circle>\n \n <animateTransform attributeName="transform" attributeType="XML" type="scale" values="1; 1.2; 1" dur=".5s" begin="0.7s" repeatCount="1" />\n\n ').concat(t,'\n\t <\/svg>\n <div class="medallionTooltip" style:"visibility:hidden;">').concat(n.MedallionGiftHoverTooltipText,"<\/div>\n <\/span>")},n.prototype.getMedallionGiftBoxTransition=function(n,t,i,r){return'<span class="medallionTooltipTrigger serp" style="padding-right:4px">\n <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">\n\n <path class="giftFill serp" opacity="1" d="'.concat(i,'">\n <animate attributetype="CSS" attributename="opacity" from="1" to="0" dur="0.5s" begin="0s" fill="freeze"><\/animate>\n <\/path>\n\n <path opacity="0" class="giftFill serp" d="').concat(r,'">\n <animate attributetype="CSS" attributename="opacity" from="0" to="1" dur="0.5s" begin="0.5s" fill="freeze"><\/animate>\n <\/path>\n\n <circle stroke-width="2" stroke-miterlimit="10" cx="16" cy="16" r="14" fill="none" class="giftStr serp"/>\n\n ').concat(t,'\n <\/svg>\n <div class="medallionTooltip" style:"visibility:hidden;">').concat(n.MedallionGiftHoverTooltipText,"<\/div>\n <\/span>")},n.prototype.getDailyCheckInAnimation=function(n,u,f,e,o){var s='<span class="serp">'.concat(o.ShowAnimation?i?'<img id = "'.concat(t,'" src="').concat(r,'" alt="').concat(e,'" width = "8px" height = "8px" style="float:right;margin-right:-3px;margin-top:-4px" />'):'<svg id = "'.concat(t,'" class = "" width = "6px" height = "6px" style="float:right;margin-right:-3px;margin-top:-1px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 6" enable-background="new 0 0 6 6"><circle cx="3" cy="3" r="3" fill="#C80000"><\/circle><\/svg>'):"");if(n==1&&f){if(u==1||u==2)return s+'<div class="medallionAnimationContainer">\n <svg id="serp_medal_svg1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" enable-background="new 0 0 32 32">\n <circle class="dmeter" stroke-width="2" stroke-miterlimit="10" cx="16" cy="16" r="14" fill="none"><\/circle>\n <circle class="progress" stroke="#00b7ab" stroke-width="2" stroke-dasharray="'.concat(u==1?"0 88":u==2?"29.32 58.64":"0 88",'" stroke-dashoffset="109" stroke-linecap="round" cx="16" cy="16" r="14" fill="none">\n <animate attributeName="stroke-dasharray" from="').concat(u==1?"0 88":u==2?"29.32 58.64":"0 88",'" to="').concat(u==1?"29.32 58.64":u==2?"58.64 29.32":"",'" dur=".5s" fill="freeze" begin=".4s" calcMode="spline" keyTimes="0; 1" keySplines=".5 0 1 .5"/>\n <\/circle>\n <\/svg>\n <svg id="serp_medal_svg12" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" enable-background="new 0 0 32 32" class="overlapWithAbove">\n <path class="medal" d="M12 16.006l2.554 1.28c-1.492.581-2.554 2.023-2.554 3.72 0 2.209 1.791 4 4 4s4-1.791 4-4c0-1.696-1.06-3.138-2.551-3.719l2.551-1.281v-7h-8v7zm-4-6.5v4.183c0 .189.106.362.275.447l1.725.87v-6h-1.5c-.276 0-.5.224-.5.5zm15.5-.5h-1.5v6l1.725-.87c.169-.085.275-.258.275-.447v-4.183c0-.276-.224-.5-.5-.5z">\n <animate attributeName="fill" from="#174AE4" to="#00b7ab" dur=".2s" begin="0s" fill="freeze"/>\n <animate attributeName="fill" from="#00b7ab" to="#174AE4" dur=".2s" begin=".2s" fill="freeze"/> \n <\/path>\n <animateTransform attributeName="transform" attributeType="XML" type="scale" values="1; 1.2; 1" dur=".5s" repeatCount="1" />\n <\/svg>\n <\/div>\n <\/span>');if(u==3)return s+'<div class="parentcontainer" >\n <div class="firework"><\/div>\n <div class="medallionAnimationContainer">\n <svg id="serp_medal_svg3" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" enable-background="new 0 0 32 32">\n <circle class="dmeter" stroke-width="2" stroke-miterlimit="10" cx="16" cy="16" r="14" fill="none"><\/circle>\n <circle class="progress" stroke="#00b7ab" stroke-width="2" stroke-dasharray="58.64 29.32" stroke-dashoffset="109" stroke-linecap="round" cx="16" cy="16" r="14" fill="none">\n <animate attributeName="stroke-dasharray" from="58.64 29.32" to="88 0" dur=".5s" fill="freeze" begin=".4s" calcMode="spline" keyTimes="0; 1" keySplines=".5 0 1 .5"/>\n <\/circle>\n <circle class="meter" stroke-width="2" stroke-miterlimit="10" cx="16" cy="16" r="14" fill="none">\n <animate dur="2.5s" attributeName="opacity" from="0" to="0" begin="0s" repeatCount="1" fill="freeze"/>\n <animate dur="0.5s" attributeName="opacity" from="0" to="1" begin="2.5s" repeatCount="1" fill="freeze"/> \n <\/circle>\n <\/svg>\n <svg id="serp_medal_svg32" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" enable-background="new 0 0 32 32" class="overlapWithAbove">\n <path class="medal" d="M12 16.006l2.554 1.28c-1.492.581-2.554 2.023-2.554 3.72 0 2.209 1.791 4 4 4s4-1.791 4-4c0-1.696-1.06-3.138-2.551-3.719l2.551-1.281v-7h-8v7zm-4-6.5v4.183c0 .189.106.362.275.447l1.725.87v-6h-1.5c-.276 0-.5.224-.5.5zm15.5-.5h-1.5v6l1.725-.87c.169-.085.275-.258.275-.447v-4.183c0-.276-.224-.5-.5-.5z">\n <animate attributeName="fill" from="#174AE4" to="#00b7ab" dur=".2s" begin="0s" fill="freeze"/>\n <animate attributeName="fill" from="#00b7ab" to="#174AE4" dur=".2s" begin=".2s" fill="freeze"/> \n <animate dur="0.4s" attributeName="opacity" from="1" to="0" begin="0.4s" repeatCount="0" fill="freeze"/>\n <animate dur="0.5s" attributeName="opacity" from="0" to="1" begin="2.5s" repeatCount="0" fill="freeze"/>\n <\/path>\n <animateTransform attributeName="transform" attributeType="XML" type="scale" values="1; 1.2; 1" dur="0.4s" repeatCount="1" />\n <\/svg>\n <svg width="18" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg" class="overlapWithAbove2"> \n <path d="M37.7778 2.22222C38.3111 2.83951 38.3037 4.1679 37.6296 4.44444L14.1975 27.5309C13.5185 27.9012 12.5691 27.9012 11.9012 27.5309L2.23457 18.1481C1.55556 17.7778 1.54321 16.4198 2.22222 15.7407C2.90123 15.0617 4.23457 15.0617 4.91358 15.4321L13.037 23.7531L35.4321 2.22222C36.1111 1.85185 37.4444 1.85185 37.7778 2.22222Z" stroke="#00b7ab" stroke-width="4" visibility="hidden">\n <animate attributeName="visibility" attributeType="XML" from="hidden" to="visible" begin=".4s" dur="0.5s" fill="freeze"/>\n <animate dur="0.5s" attributeName="opacity" from="1" to="0" begin="2.5s" repeatCount="0" fill="freeze"/>\n <\/path>\n <animateTransform attributeName="transform" attributeType="XML" type="skewX" begin="0.4s" from="90" to="0" dur="0.5s" fill="freeze" />\n <\/svg>\n <\/div>\n <\/div>\n <\/span>'}else return n!=1||f||(u=u-1),u==3?s+'<div class="medallionAnimationContainer">\n <svg id="serp_medal_svg2" style="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" enable-background="new 0 0 32 32">\n <circle stroke="#174AE4" stroke-width="2" cx="16" cy="16" r="14" fill="none"><\/circle>\n <\/svg>\n <svg id="serp_medal_svg22" style="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" enable-background="new 0 0 32 32" class="overlapWithAbove">\n <path class="medal" d="M12 16.006l2.554 1.28c-1.492.581-2.554 2.023-2.554 3.72 0 2.209 1.791 4 4 4s4-1.791 4-4c0-1.696-1.06-3.138-2.551-3.719l2.551-1.281v-7h-8v7zm-4-6.5v4.183c0 .189.106.362.275.447l1.725.87v-6h-1.5c-.276 0-.5.224-.5.5zm15.5-.5h-1.5v6l1.725-.87c.169-.085.275-.258.275-.447v-4.183c0-.276-.224-.5-.5-.5z"><\/path>\n <\/svg>\n <\/div>\n <\/span>':s+'<div class="medallionAnimationContainer">\n <svg id="serp_medal_svg2" style="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" enable-background="new 0 0 32 32">\n <circle class="dmeter" stroke-width="2" stroke-miterlimit="10" cx="16" cy="16" r="14" fill="none"><\/circle>\n <circle class="progress" stroke="#00b7ab" stroke-width="2" stroke-dasharray="'.concat(u==1?"29.32 58.64":u==2?"58.64 29.32":"0 88",'" stroke-dashoffset="109" stroke-linecap="round" cx="16" cy="16" r="14" fill="none"><\/circle>\n <\/svg>\n <svg id="serp_medal_svg22" style="" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" enable-background="new 0 0 32 32" class="overlapWithAbove">\n <path class="medal" d="M12 16.006l2.554 1.28c-1.492.581-2.554 2.023-2.554 3.72 0 2.209 1.791 4 4 4s4-1.791 4-4c0-1.696-1.06-3.138-2.551-3.719l2.551-1.281v-7h-8v7zm-4-6.5v4.183c0 .189.106.362.275.447l1.725.87v-6h-1.5c-.276 0-.5.224-.5.5zm15.5-.5h-1.5v6l1.725-.87c.169-.085.275-.258.275-.447v-4.183c0-.276-.224-.5-.5-.5z"><\/path>\n <\/svg>\n <\/div>\n <\/span>')},n.prototype.getCurrentISODateTimeWithTimezoneOffset=function(){var n=new Date,i=-n.getTimezoneOffset(),r=i>=0?"+":"-",t=function(n,t){return t===void 0&&(t=2),n.toString().padStart(t,"0")},u=n.getFullYear()+"-"+t(n.getMonth()+1)+"-"+t(n.getDate())+"T"+t(n.getHours())+":"+t(n.getMinutes())+":"+t(n.getSeconds()),f=r+t(Math.floor(Math.abs(i)/60))+":"+t(Math.abs(i)%60);return u+f},n}();n.ReportActivity=k})(ModernRewards||(ModernRewards={})),function(){sj_evt&&sj_evt.fire("onRALoad")}() |