1import{a as ee}from"./chunk-3AF7CCAV.js";import{b as Ke}from"./chunk-WPA5DIMB.js";import{a as Ve}from"./chunk-H4SFGTFK.js";import"./chunk-S5TORZO5.js";import"./chunk-P64IJOL5.js";import{a as je}from"./chunk-WB4XCREQ.js";import{a as _e}from"./chunk-KTNREL5R.js";import"./chunk-JJR77FN6.js";import{a as We}from"./chunk-ZR4YSEMF.js";import{a as ze}from"./chunk-LREP6QLZ.js";import"./chunk-5MQ3A7PQ.js";import"./chunk-OH46NPCR.js";import"./chunk-QL75DVK6.js";import{a as Q}from"./chunk-DQCLNFTB.js";import{a as ce}from"./chunk-NNT6KFHP.js";import"./chunk-T7E6CVNG.js";import{e as Ye}from"./chunk-AP2MTUVI.js";import"./chunk-VLLT4V5I.js";import"./chunk-ASKZGYYT.js";import{Pa as He,S as ke,T as Ne,U as Ae,W as L,Xa as ge,_a as Fe,db as Ue,i as v,k as K,la as De}from"./chunk-TQKQIXDL.js";import{a as q}from"./chunk-6TSAIAP7.js";import{d as Re,f as Be,g as pe}from"./chunk-HH4F5WQU.js";import"./chunk-6QOTPXF5.js";import{a as Se}from"./chunk-J5XPRXOA.js";import{f as Z}from"./chunk-C2WMWBBB.js";import{d as F}from"./chunk-5IWKRHCW.js";import{a as f,b,g as T}from"./chunk-JDBGKKY2.js";import{Eb as Le,Nb as Ie,_b as H,tb as we}from"./chunk-74E2BIRW.js";import"./chunk-75F4YUTF.js";import{b as Ee,d as M,e as x}from"./chunk-QXWTJOUW.js";import{j as Oe}from"./chunk-GPXJBCTR.js";import{sa as le,ua as Te}from"./chunk-NIZZ5OBZ.js";import{$ as ne,$a as p,$b as l,Ba as j,Cb as xe,Ec as D,Hc as V,I as Pe,Ic as ae,Jc as fe,Tb as u,Ub as P,Vc as ye,Wb as ie,Xb as oe,Yb as re,Zb as s,_b as a,ac as r,ad as c,bc as U,bd as d,cc as G,cd as se,da as he,db as Me,dc as A,ea as m,ed as be,fb as o,jc as z,ka as k,kc as Y,la as N,qc as y,rc as ve,sc as _,wb as h,wc as X,xc as $,yc as J}from"./chunk-A7FDSLSN.js";import{h as S}from"./chunk-O7S4L63H.js";var qe=(()=>{class t{constructor(){this.rewardsService=m(De),this.storageService=m(H),this.jarAnimation="assets/styles/MFDesign/lottie/MF_Jar.json"}ngOnInit(){this.tsysAccountId=this.storageService.get("tsysAccountId")}findOutMore(){this.rewardsService.getTlpUrl(this.tsysAccountId).then(e=>{window.open(e,"_blank")})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=h({type:t,selectors:[["cards-points-tile-first-time"]],decls:13,vars:10,consts:[[1,"points-tile-container"],[1,"points-tile-wrapper"],[1,"empty-state"],[1,"img-container"],["width","140px",3,"src"],[1,"empty-state-text"],[1,"mfd-title-small-500",3,"innerHTML"],[1,"mfd-subtitle-small",3,"innerHTML"],[1,"findout-btn-container"],[1,"mfd-btn-secondary",3,"click","innerHTML"]],template:function(n,i){n&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),r(4,"cards-mfd-animation",4),l(),a(5,"div",5),r(6,"div",6),c(7,"translate"),r(8,"div",7),c(9,"translate"),l()()(),a(10,"div",8)(11,"button",9),c(12,"translate"),y("click",function(){return i.findOutMore()}),l()()()),n&2&&(o(4),s("src",i.jarAnimation),o(2),s("innerHTML",d(7,4,"onceYouStartEarlingPoints"),p),o(2),s("innerHTML",d(9,6,"youEarnOnePointForEvery"),p),o(3),s("innerHTML",d(12,8,"findoutMore"),p))},dependencies:[ee,x,M],styles:[".points-tile-container[_ngcontent-%COMP%]{width:100%;background-color:var(--core-color-mono-white);border-radius:calc(var(--core-border-radius-desktop-default) * 1px);padding:0 32px 32px}.empty-state-text[_ngcontent-%COMP%]{text-align:left}.empty-state[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.empty-state[_ngcontent-%COMP%] .mfd-subtitle-small[_ngcontent-%COMP%]{font-size:12px;line-height:16px;color:var(--core-color-grey-700);margin-top:8px}.mfd-btn-secondary[_ngcontent-%COMP%]{font-size:16px;line-height:20px}@media(max-width:1015px){.points-tile-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding-bottom:0;padding-left:2px}.points-tile-wrapper[_ngcontent-%COMP%]{width:clamp(320px,-40.94px + 61.176vw,580px)}.findout-btn-container[_ngcontent-%COMP%]{width:clamp(150px,-30.47px + 30.588vw,280px)}.img-container[_ngcontent-%COMP%]{margin-top:-10px}}@media(max-width:590px){.points-tile-container[_ngcontent-%COMP%]{z-index:1;position:relative;background:transparent;flex-direction:column;margin-top:-30px;padding-right:0}.points-tile-wrapper[_ngcontent-%COMP%]{width:100%}.empty-state-text[_ngcontent-%COMP%]{text-align:center}.empty-state[_ngcontent-%COMP%]{flex-direction:column}.img-container[_ngcontent-%COMP%]{margin-top:0}.findout-btn-container[_ngcontent-%COMP%]{margin-top:15px;width:100%}}"]})}}return t})();var E={DEFAULT:"DEFAULT",PAYMENT_REQUIRED:"PAYMENT_REQUIRED",INSUFFICIENT_POINTS:"INSUFFICIENT_POINTS",INELIGIBLE:"INELIGIBLE",CLOSED:"CLOSED",PARTNER:"PARTNER",
1ERROR:"ERROR"},R={TLP:"GO_TO_TLP",PAYMENT:"PAYMENT",INSUFFICIENT_POINTS_MODAL:"INSUFFICIENT_POINTS_MODAL",PAY_MY_BILL:"PAY_MY_BILL",PARTNER:"PARTNER",NONE:"NONE"};var w=(function(t){return t.TLP="TLP",t.PARTNER="PARTNER",t.MERCURY="MERCURY",t})(w||{});var B=(function(t){return t.CLOSED="CLOSED",t.ELIGIBLE="ELIGIBLE",t.INELIGIBLE="INELIGIBLE",t.INSUFFICIENT_POINTS="INSUFFICIENT_POINTS",t.PAYMENT_REQUIRED="PAYMENT_REQUIRED",t})(B||{});var Qe=(()=>{class t{constructor(){}getPointsTileDisplayType(e,n){if(e===w.TLP||e===w.MERCURY&&n===B.ELIGIBLE||e===w.MERCURY&&n===B.INSUFFICIENT_POINTS)return E.DEFAULT;if(e===w.MERCURY){if(n===B.PAYMENT_REQUIRED)return E.PAYMENT_REQUIRED;if(n===B.INELIGIBLE)return E.INELIGIBLE;if(n===B.CLOSED)return E.CLOSED}else if(e===w.PARTNER)return E.PARTNER;return E.ERROR}getRedeemButtonNav(e,n){if(e===w.TLP)return R.TLP;if(e===w.MERCURY){if(n===B.ELIGIBLE)return R.PAY_MY_BILL;if(n===B.PAYMENT_REQUIRED)return R.PAYMENT;if(n===B.INSUFFICIENT_POINTS)return R.INSUFFICIENT_POINTS_MODAL}else if(e===w.PARTNER)return R.PARTNER;return R.NONE}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=ne({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ot=t=>({cashValue:t});function rt(t,g){if(t&1){let e=z();U(0,"div",0),A(1,"div",3),U(2,"div",4),A(3,"div",5),c(4,"translate"),A(5,"div",6),c(6,"translate"),U(7,"div",7)(8,"button",8),c(9,"translate"),ve("click",function(){k(e);let i=_();return N(i.gotoPayment())}),G()()()()}if(t&2){let e=_();o(3),Y("innerHTML",d(4,3,"benefitsPointsTile.paymentRequired.title"),p),o(2),Y("innerHTML",se(6,5,"benefitsPointsTile.paymentRequired.subtitle",ye(10,ot,e.cashValue)),p),o(3),Y("innerHTML",d(9,8,"benefitsPointsTile.paymentRequired.buttonCTA"),p)}}function at(t,g){t&1&&(U(0,"div",1),A(1,"div",3),U(2,"div",4),A(3,"div",5),c(4,"translate"),A(5,"div",9),c(6,"translate"),G()()),t&2&&(o(3),Y("innerHTML",d(4,2,"benefitsPointsTile.closed.title"),p),o(2),Y("innerHTML",d(6,4,"benefitsPointsTile.closed.subtitle"),p))}function st(t,g){t&1&&(U(0,"div",2),A(1,"div",3),U(2,"div",4),A(3,"div",5),c(4,"translate"),A(5,"div",9),c(6,"translate"),G()()),t&2&&(o(3),Y("innerHTML",d(4,2,"benefitsPointsTile.ineligible.title"),p),o(2),Y("innerHTML",d(6,4,"benefitsPointsTile.ineligible.subtitle"),p))}var Ge=(()=>{class t{constructor(){this.fullStoryService=m(T),this.router=m(Z),this.DISPLAY_TYPES=E}ngOnChanges(e){e?.displayType?.currentValue===E.INELIGIBLE?this.fullStoryService.logCustomEvent(f.MERCURY_INELIGIBLE_TILE_LOADED):e?.displayType?.currentValue===E.CLOSED?this.fullStoryService.logCustomEvent(f.MERCURY_CLOSED_TILE_LOADED):e?.displayType?.currentValue===E.INSUFFICIENT_POINTS?this.fullStoryService.logCustomEvent(f.MERCURY_INSUFFICIENT_POINTS_LOADED):e?.displayType?.currentValue===E.PAYMENT_REQUIRED&&this.fullStoryService.logCustomEvent(f.MERCURY_PAYMENT_REQUIRED_TILE_LOADED)}gotoPayment(){this.fullStoryService.logCustomEvent(f.PAST_DUE_PAY_NOW),this.router.navigateByUrl("/payment")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=h({type:t,selectors:[["cards-points-tile-no-redemption"]],inputs:{displayType:"displayType",cashValue:"cashValue"},features:[j],decls:3,vars:1,consts:[[1,"payment-required-container","fs-unmask"],[1,"account-closed-container","fs-unmask"],[1,"account-ineligible-container","fs-unmask"],[1,"bg-white"],[1,"exclusion-container"],[1,"mfd-title-large",3,"innerHTML"],[1,"lost-access",3,"innerHTML"],[1,"pay-now-btn-container"],[1,"mfd-btn-primary",3,"click","innerHTML"],[1,"rewards-unavailable",3,"innerHTML"]],template:function(n,i){n&1&&u(0,rt,10,12,"div",0)(1,at,7,6,"div",1)(2,st,7,6,"div",2),n&2&&P(i.displayType===i.DISPLAY_TYPES.PAYMENT_REQUIRED?0:i.displayType===i.DISPLAY_TYPES.CLOSED?1:i.displayType===i.DISPLAY_TYPES.INELIGIBLE?2:-1)},dependencies:[x,M],styles:[".bg-white[_ngcontent-%COMP%]{display:none}.exclusion-container[_ngcontent-%COMP%]{text-align:center;background-color:var(--core-color-mono-white);padding:32px;border-radius:16px}.rewards-unavailable[_ngcontent-%COMP%]{color:var(--mercury-light-variant-color-font-label);font-size:16px}button[_ngcontent-%COMP%]{font-size:16px;line-height:20px}.lost-access[_ngcontent-%COMP%]{color:var(--mercury-light-variant-color-font-label);margin-bottom:16px;font-size:16px}@media(max-width:590px){.bg-white[_ngcontent-%COMP%]{display:block;background-color:var(--core-color-mono-white);position:absolute;
1left:clamp(-24px,3.44px - 4.651vw,-14px);top:-108px;height:380px;z-index:1;border-bottom-left-radius:calc(var(--core-border-radius-mobile-large) * 1px);border-bottom-right-radius:calc(var(--core-border-radius-mobile-large) * 1px);right:clamp(-24px,3.44px - 4.651vw,-14px)}.payment-required-container[_ngcontent-%COMP%] .bg-white[_ngcontent-%COMP%]{height:408px}.account-closed-container[_ngcontent-%COMP%] .bg-white[_ngcontent-%COMP%], .account-ineligible-container[_ngcontent-%COMP%] .bg-white[_ngcontent-%COMP%]{height:340px}}@media(max-width:590px)and (max-width:768px){.exclusion-container[_ngcontent-%COMP%]{padding:16px;position:relative;z-index:2}.lost-access[_ngcontent-%COMP%], .rewards-unavailable[_ngcontent-%COMP%]{font-size:12px}}"]})}}return t})();var O=(function(t){return t.TLP="TLP",t.MERCURY="MERCURY",t.SPIRIT="SPIRIT",t.BEST_WESTERN="BEST_WESTERN",t})(O||{});var lt=["btnRedeem"],ct=["btnPointBreakdown"];function pt(t,g){if(t&1&&(a(0,"div",10)(1,"div",14)(2,"div",15),r(3,"cards-mfd-animation",16),l(),a(4,"div",17),r(5,"div",18)(6,"div",19),c(7,"translate"),l()(),a(8,"div",20)(9,"div",15),r(10,"cards-mfd-animation",16),l(),a(11,"div",17),r(12,"div",18),c(13,"currency"),r(14,"div",19),c(15,"translate"),l()()()),t&2){let e=_(3);o(3),s("src",e.jarAnimation),o(2),s("innerHTML",e.data.accountPoints,p),o(),s("innerHTML",d(7,6,"points"),p),o(4),s("src",e.cashAnimation),o(2),s("innerHTML",d(13,8,e.data.cashValue),p),o(2),s("innerHTML",d(15,10,"cashValue"),p)}}function dt(t,g){t&1&&(a(0,"div",11)(1,"div",15),r(2,"img",21),l(),r(3,"div",22),c(4,"translate"),l()),t&2&&(o(3),s("innerHTML",d(4,1,"weCantAccessYourPoints"),p))}function mt(t,g){if(t&1){let e=z();a(0,"div",13)(1,"button",23,1),c(3,"translate"),y("click",function(){k(e);let i=_(3);return N(i.onClickPointsRedeem())}),l()(),a(4,"div",24)(5,"button",25,2),c(7,"translate"),y("click",function(){k(e);let i=_(3);return N(i.onClickPointsBreakdown())}),l()()}t&2&&(o(),s("innerHTML",d(3,2,"redeem"),p),o(4),s("innerHTML",d(7,4,"pointsBreakdown"),p))}function ft(t,g){if(t&1){let e=z();a(0,"div",13)(1,"button",23,1),c(3,"translate"),y("click",function(){k(e);let i=_(3);return N(i.buttonHandler())})("click",function(){k(e);let i=_(3);return N(i.onClickPointsRedeem())}),l()()}t&2&&(o(),s("innerHTML",d(3,1,"redeem"),p))}function gt(t,g){if(t&1&&(a(0,"div",8)(1,"div",9),u(2,pt,16,12,"div",10)(3,dt,5,3,"div",11),l(),a(4,"div",12),u(5,mt,8,6)(6,ft,4,3,"div",13),l()()),t&2){let e=_(2);D("error_state",!e.data||!e.data.accountPoints),o(2),P(e.isApiError?3:2),o(3),P(e.buttonNav===e.BUTTON_NAV.TLP&&e.tlpURL?5:6)}}function _t(t,g){t&1&&r(0,"cards-points-tile-first-time")}function Ct(t,g){if(t&1&&(a(0,"div",5),r(1,"div",6),u(2,gt,7,4,"div",7),xe(3,_t,1,0,"ng-template",null,0,be),l()),t&2){let e=_();D("empty-state",!e.data||e.data.accountPoints===null)("firsttime-card",(e.data==null?null:e.data.accountPoints)===0),o(2),P(e.isApiLoaded?2:-1)}}function ut(t,g){if(t&1&&r(0,"cards-points-tile-no-redemption",4),t&2){let e=_();s("displayType",e.displayType)("cashValue",e.cashValue)}}var $e=(()=>{class t{constructor(){this.router=m(Z),this.matDialog=m(F),this.redemptionHelper=m(Qe),this.maintenanceWindowService=m(Q),this.storageService=m(H),this.fullStoryService=m(T),this.data={accountPoints:0,cashValue:0},this.isApiError=!1,this.tlpURL="",this.DISPLAY_TYPES=E,this.BUTTON_NAV=R,this.isApiLoaded=!1,this.isRedeemMaintenance=!1,this.isPayMyBillEligible=!1,this.jarAnimation="assets/styles/MFDesign/lottie/MF_Jar.json",this.cashAnimation="assets/styles/MFDesign/lottie/MF_Cash.json"}ngOnInit(){this.isPayMyBillEligible=this.storageService.get("featureEligibleRespResponse").POINTS_REDEMPTION}ngOnChanges(e){e?.data?.firstChange||(this.isApiLoaded=!0,this.redemptionType=this.data.benefitsRedemptionPlatformTypeEnum,this.redemptionStatus=this.data.accountRedemptionStatusTypeEnum,this.redemptionType===w.TLP&&this.redemptionStatus===B.ELIGIBLE?(this.rewardProgramType=O.TLP,this.fullStoryService.logCustomEvent(f.TLP_POINTS_TILE_LOAD_SUCCESS)):this.rewardProgramType=O.MERCURY,this.data.accountPoints===null&&(this.data.accountPoints=0),!this.data.cashValue===null&&(this.data.cashValue=0),this.cashValue=this.data.cashValue,this.displayType=this.redemptionHelper.getPointsTileDisplayType(this.redemptionType,this.redemptionStatus),this.buttonNav=this.redemptionHelper.getRedeemButtonNav(this.redemptionType,this.redemptionStatus))}checkIfRedeemInMaintenance(){return this.maintenanceWindowService.getAllMaintenanceWindows().then(e=>{e&&q.CARDS_REDEEM_POINTS in e?this.isRedeemMaintenance=!0:this.isRedeemMaintenance=!1})}buttonHandler(){this.buttonNav===R.PAYMENT?this.router.navigateByUrl("/payment"):this.buttonNav===R.PAY_MY_BILL?this.checkIfRedeemInMaintenance().then(()=>{this.isRedeemMaintenance?this.openRedemptionErrorModal("maintenance"):this.isPayMyBillEligible?this.router.navigateByUrl("/pay-my-bill"):window.open(this.tlpURL,"_blank")}):this.buttonNav===R.INSUFFICIENT_POINTS_MODAL&&this.openRedemptionErrorModal("insufficient-points")}openRedemptionErrorModal(e){return S(this,null,function*(){let{RoadblockModalComponent:n}=yield import("./chunk-GY2EMBUT.js");this.matDialog.open(n,{panelClass:["mfd-modal-container"],data:e})})}onClickPointsRedeem(){let e=O.MERCURY;this.redemptionType===w.TLP&&this.redemptionStatus===B.ELIGIBLE?(e=O.TLP,this.fullStoryService.logCustomEvent(f.TLP_POINTS_REDEEM)):(e=O.MERCURY,this.fullStoryService.logCustomEvent(f.MERCURY_POINTS_REDEEM)),this.fullStoryService.logCustomEvent(f.BENIFITS_POINTS_REDEEM_SEL,{location_str:b.BENEFITS,rewardProgramType_str:e,buttonText_str:this.btnRedeem?.nativeElement?.innerText}),this.buttonNav===R.TLP&&this.redirectToTLPURL()}onClickPointsBreakdown(){this.fullStoryService.logCustomEvent(f.TLP_POINTS_BREAKDOWN),this.fullStoryService.logCustomEvent(f.BENIFITS_POINTS_BREAKDOWN_SEL,{location_str:b.BENEFITS,rewardProgramType_str:this.rewardProgramType,buttonText_str:this.btnPointBreakdown?.nativeElement?.innerText}),this.redirectToTLPURL()}redirectToTLPURL(){this.checkIfRedeemInMaintenance().then(()=>{this.isRedeemMaintenance?this.openRedemptionErrorModal("maintenance"):window.open(this.tlpURL,"_blank")})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=h({type:t,selectors:[["cards-points-tile"]],viewQuery:function(n,i){if
1(n&1&&X(lt,5)(ct,5),n&2){let C;$(C=J())&&(i.btnRedeem=C.first),$(C=J())&&(i.btnPointBreakdown=C.first)}},inputs:{data:"data",isApiError:"isApiError",tlpURL:"tlpURL"},features:[j],decls:2,vars:1,consts:[["firstTimeCard",""],["btnRedeem",""],["btnPointBreakdown",""],[1,"mfd-relative",3,"empty-state","firsttime-card"],[3,"displayType","cashValue"],[1,"mfd-relative"],[1,"bg-white"],[1,"points-tile-container",3,"error_state"],[1,"points-tile-container"],[1,"points-tile-wrapper"],[1,"points-details"],[1,"failed-state"],[1,"btn-containers"],[1,"redeem-btn-container"],[1,"points"],[1,"img-container"],["width","clamp(11.5rem, 5.529rem + 5.882vw, 14rem)",3,"src"],[1,"points-desc"],[1,"mfd-title-large",3,"innerHTML"],[1,"mfd-title-small-500",3,"innerHTML"],[1,"money"],["cardsImageAssetKey","points_error","alt","points error"],[1,"failed-state-text",3,"innerHTML"],[1,"mfd-btn-secondary",3,"click","innerHTML"],[1,"breakdown-btn-container"],[1,"mfd-btn-tertiary",3,"click","innerHTML"]],template:function(n,i){n&1&&u(0,Ct,5,5,"div",3)(1,ut,1,2,"cards-points-tile-no-redemption",4),n&2&&P(i.displayType===i.DISPLAY_TYPES.DEFAULT?0:1)},dependencies:[ee,qe,x,L,Ge,M,Te],styles:[".bg-white[_ngcontent-%COMP%]{display:none}.points-tile-container[_ngcontent-%COMP%]{width:100%;background-color:var(--core-color-mono-white);border-radius:calc(var(--core-border-radius-desktop-default) * 1px);padding:0 0 32px}.points-tile-container.error_state[_ngcontent-%COMP%]{padding:32px}.points-details[_ngcontent-%COMP%]{display:flex;justify-content:space-around}.points-details[_ngcontent-%COMP%] .points-desc[_ngcontent-%COMP%]{margin-top:20px;margin-left:clamp(-1.2rem,-4.075rem + 2.83vw,0rem)}.points-details[_ngcontent-%COMP%] .points[_ngcontent-%COMP%] .img-container[_ngcontent-%COMP%]{margin-left:-10px}.points-details[_ngcontent-%COMP%] .points[_ngcontent-%COMP%], .points-details[_ngcontent-%COMP%] .money[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:-10px}.points-details[_ngcontent-%COMP%] .mfd-title-large[_ngcontent-%COMP%]{font-size:clamp(22px,17.22px + .471vw,24px)}.points-details[_ngcontent-%COMP%] .mfd-title-small-500[_ngcontent-%COMP%]{color:var(--core-color-grey-700)!important;font-size:clamp(14px,9.22px + .471vw,16px)}.points-details[_ngcontent-%COMP%] .mfd-btn-secondary[_ngcontent-%COMP%], .points-details[_ngcontent-%COMP%] .mfd-btn-tertiary[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}.points-tile-wrapper[_ngcontent-%COMP%]{background-color:var(--core-color-mono-white);border-radius:16px;margin-left:16px;margin-right:16px}.failed-state[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.failed-state[_ngcontent-%COMP%] .failed-state-text[_ngcontent-%COMP%]{font-size:16px;line-height:20px;color:var(--core-color-secondary-cyan-800);width:57%;font-family:var(--satoshi-500)}.failed-state[_ngcontent-%COMP%] .img-container[_ngcontent-%COMP%]{margin-right:32px}.error_state[_ngcontent-%COMP%] .points-tile-wrapper[_ngcontent-%COMP%]{margin-bottom:32px}.redeem-btn-container[_ngcontent-%COMP%]{margin:7px 32px 0}button[_ngcontent-%COMP%]{font-size:16px;line-height:20px}.error_state[_ngcontent-%COMP%] .redeem-btn-container[_ngcontent-%COMP%]{margin:0}.breakdown-btn-container[_ngcontent-%COMP%]{margin-top:calc(var(--core-spacing-tablet-medium) * 1px);font-size:16px;line-height:20px;display:flex;justify-content:center}.exclusion-container[_ngcontent-%COMP%]{text-align:center;background-color:var(--core-color-mono-white);padding:32px;border-radius:16px}.lost-access[_ngcontent-%COMP%]{color:var(--mercury-light-variant-color-font-label);margin-bottom:16px;font-size:16px}.rewards-unavailable[_ngcontent-%COMP%]{color:var(--mercury-light-variant-color-font-label);font-size:16px}@media(max-width:1015px){.points-details[_ngcontent-%COMP%]{justify-content:space-around}.points-details[_ngcontent-%COMP%] .mfd-title-large[_ngcontent-%COMP%]{font-size:24px}.points-details[_ngcontent-%COMP%] .mfd-title-small-500[_ngcontent-%COMP%]{font-size:clamp(12px,9.66px + .625vw,16px);line-height:clamp(16px,13.66px + .625vw,20px)}.points-details[_ngcontent-%COMP%] .points-desc[_ngcontent-%COMP%]{margin-left:0}.points-tile-container.error_state[_ngcontent-%COMP%]{flex-wrap:wrap;display:flex;justify-content:space-between}.points-tile-container.error_state[_ngcontent-%COMP%] .btn-containers[_ngcontent-%COMP%]{width:clamp(161px,66.22px + 16.038vw,229px)}.failed-state[_ngcontent-%COMP%]{justify-content:flex-start}.failed-state[_ngcontent-%COMP%] .failed-state-text[_ngcontent-%COMP%]{width:clamp(197px,-42.75px + 40.566vw,369px)}}@media(max-width:768px){.points-tile-container[_ngcontent-%COMP%]{width:100%}.redeem-btn-container[_ngcontent-%COMP%]{margin-left:clamp(2px,-26.63px + 7.634vw,32px);margin-right:clamp(2px,-26.63px + 7.634vw,32px)}.exclusion-container[_ngcontent-%COMP%]{padding:16px;position:relative;z-index:2}.lost-access[_ngcontent-%COMP%], .rewards-unavailable[_ngcontent-%COMP%]{font-size:12px}}@media(max-width:590px){.bg-white[_ngcontent-%COMP%]{display:block;background-color:var(--core-color-mono-white);position:absolute;
1left:clamp(-24px,3.44px - 4.651vw,-14px);top:-108px;height:380px;z-index:1;border-bottom-left-radius:calc(var(--core-border-radius-mobile-large) * 1px);border-bottom-right-radius:calc(var(--core-border-radius-mobile-large) * 1px);right:clamp(-24px,3.44px - 4.651vw,-14px)}.payment-required-container[_ngcontent-%COMP%] .bg-white[_ngcontent-%COMP%]{height:408px}.account-closed-container[_ngcontent-%COMP%] .bg-white[_ngcontent-%COMP%], .account-ineligible-container[_ngcontent-%COMP%] .bg-white[_ngcontent-%COMP%]{height:340px}.empty-state[_ngcontent-%COMP%] .bg-white[_ngcontent-%COMP%]{top:-92px}.points-tile-wrapper[_ngcontent-%COMP%]{margin-bottom:16px}.points-tile-container[_ngcontent-%COMP%]{position:relative;z-index:1;margin-top:6px;background:transparent}.points-tile-container.error_state[_ngcontent-%COMP%]{flex-direction:column;justify-content:center;align-items:center;padding:0}.points-tile-container.error_state[_ngcontent-%COMP%] .failed-state[_ngcontent-%COMP%] .img-container[_ngcontent-%COMP%]{margin-right:0}.points-tile-container.error_state[_ngcontent-%COMP%] .failed-state[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:132px;height:127px}.points-tile-container.error_state[_ngcontent-%COMP%] .failed-state[_ngcontent-%COMP%] .failed-state-text[_ngcontent-%COMP%]{width:95%;text-align:center}.points-tile-container.error_state[_ngcontent-%COMP%] .btn-containers[_ngcontent-%COMP%]{width:100%}.error_state[_ngcontent-%COMP%] .points-tile-wrapper[_ngcontent-%COMP%]{margin-bottom:16px}.points-details[_ngcontent-%COMP%] .points[_ngcontent-%COMP%], .points-details[_ngcontent-%COMP%] .money[_ngcontent-%COMP%]{flex-direction:column}.points-details[_ngcontent-%COMP%] .points-desc[_ngcontent-%COMP%]{margin-top:-12px;text-align:center}.mfd-title-small-500[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:none}.failed-state[_ngcontent-%COMP%]{flex-direction:column}}@media(max-width:475px){.firsttime-card[_ngcontent-%COMP%] .bg-white[_ngcontent-%COMP%]{top:-86px}}@media(max-width:402px){.empty-state[_ngcontent-%COMP%] .points-tile-wrapper[_ngcontent-%COMP%]{margin-left:0;margin-right:0}}"]})}}return t})();var Pt=["btnRedeem"];function ht(t,g){if(t&1&&(a(0,"div",5)(1,"div",9)(2,"div",10),r(3,"div",11),c(4,"number"),r(5,"div",12),c(6,"translate"),l()(),a(7,"div",13)(8,"div",10),r(9,"div",11),c(10,"number"),r(11,"div",12),c(12,"translate"),l()(),a(13,"div",14)(14,"div",10),r(15,"div",11),c(16,"number"),r(17,"div",12),c(18,"translate"),l()()()),t&2){let e=_();o(3),s("innerHTML",d(4,6,e.data==null?null:e.data.accountPoints),p),o(2),s("innerHTML",d(6,8,"availablePoints"),p),o(4),s("innerHTML",d(10,10,e.data==null?null:e.data.lastCyclePoints),p),o(2),s("innerHTML",d(12,12,"sinceLastBillingPeriod"),p),o(4),s("innerHTML",d(16,14,e.data==null?null:e.data.pointsSinceAccountOpened),p),o(2),s("innerHTML",d(18,16,"lifetimePoints"),p)}}function Mt(t,g){t&1&&(a(0,"div",6)(1,"div",15),r(2,"img",16),l(),r(3,"div",17),c(4,"translate"),l()),t&2&&(o(3),s("innerHTML",d(4,1,"weCantAccessYourPoints"),p))}var Je=(()=>{class t{constructor(){this.fullStoryService=m(T),this.maintenanceWindowService=m(Q),this.matDialog=m(F),this.data={accountPoints:null,lastCyclePoints:null,pointsSinceAccountOpened:null,cashValue:null},this.redeemCTALink=""}redeemBtnClick(){this.fullStoryService.logCustomEvent(f.SPIRIT_POINTS_REDEEM),this.fullStoryService.logCustomEvent(f.BENIFITS_POINTS_REDEEM_SEL,{location_str:b.BENEFITS,rewardProgramType_str:O.SPIRIT,buttonText_str:this.btnRedeem?.nativeElement?.innerText}),this.maintenanceWindowService.getAllMaintenanceWindows().then(e=>{e&&q.CARDS_REDEEM_POINTS in e?this.openRedemptionErrorModal("maintenance"):this.matDialog.open(ce,{panelClass:"mfd-speedbump-modal-container",data:{url:this.redeemCTALink,target:""}})})}openRedemptionErrorModal(e){return S(this,null,function*(){let{RoadblockModalComponent:n}=yield import("./chunk-GY2EMBUT.js");this.matDialog.open(n,{panelClass:["mfd-modal-container"],data:e})})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=h({type:t,selectors:[["cards-points-tile-spirit"]],viewQuery:function(n,i){if
1(n&1&&X(Pt,5),n&2){let C;$(C=J())&&(i.btnRedeem=C.first)}},inputs:{data:"data",redeemCTALink:"redeemCTALink"},decls:10,vars:6,consts:[["btnRedeem",""],[1,"mfd-relative"],[1,"bg-spirit-mobile"],[1,"points-tile-container"],[1,"points-tile-wrapper"],[1,"points-details"],[1,"failed-state"],[1,"redeem-btn-container"],[1,"mfd-btn-secondary",3,"click","innerHTML"],[1,"points"],[1,"points-desc"],[1,"mfd-title-large",3,"innerHTML"],[1,"mfd-title-small-500",3,"innerHTML"],[1,"points-info","last-month-info"],[1,"points-info","lifetime-points"],[1,"img-container"],["cardsImageAssetKey","points_error","alt","points error"],[1,"failed-state-text",3,"innerHTML"]],template:function(n,i){n&1&&(a(0,"div",1),r(1,"div",2),a(2,"div",3)(3,"div",4),u(4,ht,19,18,"div",5)(5,Mt,5,3,"div",6),l(),a(6,"div",7)(7,"button",8,0),c(9,"translate"),y("click",function(){return i.redeemBtnClick()}),l()()()()),n&2&&(o(2),D("error_state",!i.data),o(2),P(i.data?4:5),o(3),s("innerHTML",d(9,4,"redeemWithSpirit"),p))},dependencies:[x,L,M,le],styles:[".bg-spirit-mobile[_ngcontent-%COMP%]{display:none}.points-tile-container[_ngcontent-%COMP%]{width:100%;background-color:#feeb06;border-radius:calc(var(--core-border-radius-desktop-default) * 1px);padding:0 32px 32px;display:flex;flex-direction:column}.points-tile-container.error_state[_ngcontent-%COMP%]{padding-left:32px;padding-right:32px}.points-desc[_ngcontent-%COMP%] .mfd-title-large[_ngcontent-%COMP%]{min-width:100px;min-height:32px}.points-details[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}.points-details[_ngcontent-%COMP%] .points-desc[_ngcontent-%COMP%]{text-align:center}.points-details[_ngcontent-%COMP%] .points-desc[_ngcontent-%COMP%] .mfd-title-large[_ngcontent-%COMP%]{color:var(--core-color-mono-black)}.points-details[_ngcontent-%COMP%] .points-info[_ngcontent-%COMP%] .points-desc[_ngcontent-%COMP%] .mfd-title-large[_ngcontent-%COMP%], .points-details[_ngcontent-%COMP%] .points-info[_ngcontent-%COMP%] .points-desc[_ngcontent-%COMP%] .mfd-title-small-500[_ngcontent-%COMP%]{color:var(--core-color-grey-700)}.points-details[_ngcontent-%COMP%] .points[_ngcontent-%COMP%], .points-details[_ngcontent-%COMP%] .lifetime-points[_ngcontent-%COMP%], .points-details[_ngcontent-%COMP%] .points-info[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:center;width:33.3%}.points-details[_ngcontent-%COMP%] .mfd-title-small-500[_ngcontent-%COMP%]{font-family:var(--satoshi-400);font-weight:400;color:var(--core-color-mono-black)}.points-details[_ngcontent-%COMP%] .mfd-btn-secondary[_ngcontent-%COMP%], .points-details[_ngcontent-%COMP%] .mfd-btn-tertiary[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}.points-tile-wrapper[_ngcontent-%COMP%]{background-color:var(--core-color-mono-white);border-radius:16px;padding:0 16px;margin-bottom:32px;margin-top:32px;height:124px;display:flex;justify-content:space-between;align-items:center;width:100%}.failed-state[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start}.failed-state[_ngcontent-%COMP%] .img-container[_ngcontent-%COMP%]{width:18%;margin-right:32px}.failed-state-text[_ngcontent-%COMP%]{font-size:16px;line-height:20px;color:var(--core-color-secondary-cyan-800);width:52%;font-family:var(--satoshi-500)}.redeem-btn-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:var(--core-color-mono-white);background-color:var(--core-color-mono-black);border:none}@media(max-width:1015px){.points-details[_ngcontent-%COMP%]{justify-content:space-around}.points-tile-container.error_state[_ngcontent-%COMP%]{flex-direction:row;align-items:center;justify-content:space-between;padding:32px}.points-tile-container.error_state[_ngcontent-%COMP%] .points-tile-wrapper[_ngcontent-%COMP%]{width:68%;margin:0}.points-tile-container.error_state[_ngcontent-%COMP%] .redeem-btn-container[_ngcontent-%COMP%]{width:28%}.points-tile-container.error_state[_ngcontent-%COMP%] .img-container[_ngcontent-%COMP%]{width:clamp(72px,30.35px + 7.059vw,102px);margin-right:0}.failed-state-text[_ngcontent-%COMP%]{width:clamp(184px,27.13px + 26.588vw,297px)}}@media(max-width:590px){.points-details[_ngcontent-%COMP%]{justify-content:space-between}.bg-spirit-mobile[_ngcontent-%COMP%]{display:block;position:absolute;background-color:#feeb06;border-bottom-left-radius:calc(var(--core-border-radius-mobile-large) * 1px);border-bottom-right-radius:calc(var(--core-border-radius-mobile-large) * 1px);right:clamp(-24px,3.44px - 4.651vw,-14px);left:clamp(-24px,3.44px - 4.651vw,-14px);top:-30px;height:295px}.points-tile-container[_ngcontent-%COMP%]{background-color:transparent;position:relative;z-index:1;padding:0 0 32px}.points-tile-container.error_state[_ngcontent-%COMP%]{flex-direction:column;padding:0 clamp(0px,10.73px - 1.818vw,5px) 0}.points-tile-container.error_state[_ngcontent-%COMP%] .points-tile-wrapper[_ngcontent-%COMP%]{width:100%;padding:24px 16px;height:auto}.points-tile-container.error_state[_ngcontent-%COMP%] .redeem-btn-container[_ngcontent-%COMP%]{width:100%;height:auto;margin-top:24px}.points-tile-container.error_state[_ngcontent-%COMP%] .points-tile-wrapper[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.failed-state[_ngcontent-%COMP%]{flex-direction:column;width:100%}.failed-state-text[_ngcontent-%COMP%]{width:100%;margin-top:24px}}@media(max-width:350px){.bg-spirit-mobile[_ngcontent-%COMP%]{left:-3px;right:-3px}}"]})}}return t})();var Xe=(()=>{class t{constructor(){this.heartAnimation="assets/styles/MFDesign/lottie/MF_Heart.json"}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=h({type:t,selectors:[["cards-points-tile-nonreward"]],decls:11,vars:7,consts:[[1,"mfd-relative","fs-unmask"],[1,"bg-white"],[1,"points-tile-container"],[1,"points-tile-wrapper"],[1,"img-container"],["width","clamp(11.5rem, 5.529rem + 5.882vw, 14rem)",3,"src"],[1,"points-desc"],[1,"mfd-title-large",3,"innerHTML"],[1,"mfd-title-small-500",3,"innerHTML"]],template:function(n,i){n&1&&(a(0,"div",0),r(1,"div",1),a(2,"div",2)(3,"div",3)(4,"div",4),r(5,"cards-mfd-animation",5),l(),a(6,"div",6),r(7,"div",7),c(8,"translate"),r(9,"div",8),c(10,"translate"),l()()()()),n&2&&(o(5),s("src",i.heartAnimation),o(2),s("innerHTML",d(8,3,"exploreYourCardBenefits"),p),o(2),s("innerHTML",d(10,5,"seeYourBenefitsAndSpecialOffers"),p))},dependencies:[ee,x,M],styles:[".bg-white[_ngcontent-%COMP%]{display:none}.points-tile-container[_ngcontent-%COMP%]{width:100%;background-color:var(--core-color-mono-white);border-radius:calc(var(--core-border-radius-desktop-default) * 1px);padding-top:12px;padding-bottom:24px}.points-tile-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.points-desc[_ngcontent-%COMP%]{width:100%;text-align:center}.mfd-title-small-500[_ngcontent-%COMP%]{color:var(--core-color-grey-700)}@media(max-width:768px){.mfd-title-small-500[_ngcontent-%COMP%]{font-size:clamp(12px,8.18px + 1.018vw,16px);line-height:clamp(16px,12.18px + 1.018vw,20px)}}@media(max-width:590px){.bg-white[_ngcontent-%COMP%]{display:block;background-color:var(--core-color-mono-white);position:absolute;
1left:clamp(-24px,3.44px - 4.651vw,-14px);top:-96px;height:300px;z-index:1;border-bottom-left-radius:calc(var(--core-border-radius-mobile-large) * 1px);border-bottom-right-radius:calc(var(--core-border-radius-mobile-large) * 1px);right:clamp(-24px,3.44px - 4.651vw,-14px)}.points-tile-container[_ngcontent-%COMP%]{position:relative;z-index:1;background-color:transparent}}"]})}}return t})();function xt(t,g){if(t&1&&r(0,"img",6),t&2){let e=_(2);s("cardsImageAssetKey",e.left_pane==null?null:e.left_pane.keyBenefitArt)}}function vt(t,g){if(t&1){let e=z();a(0,"div",4)(1,"div",7),r(2,"span",8),a(3,"div",9),c(4,"translate"),y("click",function(){let i=k(e).$implicit,C=_(2);return N(C.openModal(i))}),l()()()}if(t&2){let e=g.$implicit;o(2),s("innerHTML",e==null?null:e.benefitDescription,p),o(),s("innerHTML",d(4,2,"learnMore"),p)}}function yt(t,g){if(t&1){let e=z();a(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5),u(4,xt,1,1,"img",6),l(),a(5,"div",7),r(6,"span",8),a(7,"div",9),c(8,"translate"),y("click",function(){k(e);let i=_();return N(i.openModal(i.left_pane))}),l()()()(),a(9,"div",10),oe(10,vt,5,4,"div",4,ie),l()()}if(t&2){let e=_();o(3),D("full-width-image",e.partner().key===e.partners.SPIRIT||e.partner().key===e.partners.BEST_WESTERN),o(),P(e.left_pane!=null&&e.left_pane.keyBenefitArt?4:-1),o(2),s("innerHTML",e.left_pane==null?null:e.left_pane.benefitDescription,p),o(),s("innerHTML",d(8,5,"learnMore"),p),o(3),re(e.right_pane)}}function bt(t,g){t&1&&(a(0,"div",11)(1,"div",12),r(2,"span",13),c(3,"translate"),r(4,"p",14),c(5,"translate"),r(6,"div",15),c(7,"translate"),l(),a(8,"div",16),r(9,"div",17),l()()),t&2&&(o(2),s("innerHTML",d(3,3,"keybenefits.error.title"),p),o(2),s("innerHTML",d(5,5,"keybenefits.error.subtitle"),p),o(2),s("innerHTML",d(7,7,"keybenefits.error.buttontext"),p))}function Tt(t,g){if(t&1&&u(0,bt,10,9,"div",11),t&2){let e=_();P(e.benefits===null?0:-1)}}var Ze=(()=>{class t{constructor(){this.matDialog=m(F),this.fullStoryService=m(T),this.partnerHelperService=m(K),this.partners=v,this.partner=this.partnerHelperService.partnerSignal}ngOnChanges(e){e?.benefits?.currentValue&&e?.benefits?.currentValue?.length>2&&([this.left_pane,...this.right_pane]=this.benefits,this.fullStoryService.logCustomEvent(f.KEY_BENEFITS_LOAD_SUCCESS)),(e?.benefits===null||e?.benefits===void 0)&&this.fullStoryService.logCustomEvent(f.KEY_BENEFITS_LOAD_FAIL)}openModal(e){return S(this,null,function*(){this.fullStoryService.logCustomEvent(f.KEY_BENEFITS_LEARN_MORE),this.fullStoryService.logCustomEvent(f.BENEFITS_KEY_BENEFITS_LEARN_MORE_SEL,{location_str:b.BENEFITS,rewardProgramType_str:this.rewardProgramType,benefitCode_str:e?.benefitsKeyId,benefitTitle_str:e?.benefitTitle?.replace(/<\/?[^>]+(>|$)/g,"")});let{BenefitsModalComponent:n}=yield import("./chunk-6KLD4LMD.js");this.matDialog.open(n,{data:{benefit:e,parent:"KeyBenefits",rewardProgramType:this.rewardProgramType},panelClass:"benefits-modal"})})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=h({type:t,selectors:[["cards-key-benefits"]],inputs:{benefits:"benefits",rewardProgramType:"rewardProgramType"},features:[j],decls:5,vars:4,consts:[[1,"key-benefits-container","fs-unmask"],[1,"mfd-title-medium","mfd-margin-t-0",3,"innerHTML"],[1,"flex-container"],[1,"left-pane"],[1,"full-benefits-container"],[1,"image-container"],[1,"image",3,"cardsImageAssetKey"],[1,"description"],[1,"mfd-title-small-500","text-overflow-truncate-4",3,"innerHTML"],[1,"mfd-btn-tertiary",3,"click","innerHTML"],[1,"right-pane"],[1,"benefits-failed","mfd-medium-t"],[1,"empty-state-content"],[1,"mfd-title-small-500",3,"innerHTML"],[1,"mfd-title-small-400","title-small",3,"innerHTML"],[1,"mfd-btn-tertiary",3,"innerHTML"],[1,"error-img-container"],["cardsBackgroundImage","error_img",1,"error-img"]],template:function(n,i){n&1&&(a(0,"div",0),r(1,"h1",1),c(2,"translate"),u(3,yt,12,7,"div",2)(4,Tt,1,1),l()),n&2&&(o(),s("innerHTML",d(2,2,"keybenefits.title"),p),o(2),P(i.benefits&&i.benefits.length>2?3:4))},dependencies:[x,pe,L,M],styles:[".mfd-title-medium[_ngcontent-%COMP%]{margin-bottom:calc(var(--core-spacing-mobile-medium) * 1px)}.text-overflow-truncate-4[_ngcontent-%COMP%]{overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:4;display:-webkit-box}.flex-container[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;gap:8px;justify-content:space-between}.flex-container[_ngcontent-%COMP%] .left-pane[_ngcontent-%COMP%], .flex-container[_ngcontent-%COMP%] .right-pane[_ngcontent-%COMP%]{display:flex;width:50%}.flex-container[_ngcontent-%COMP%] .left-pane[_ngcontent-%COMP%] .full-benefits-container[_ngcontent-%COMP%], .flex-container[_ngcontent-%COMP%] .right-pane[_ngcontent-%COMP%] .full-benefits-container[_ngcontent-%COMP%]{border-radius:16px;background-color:var(--core-color-mono-white);box-shadow:4px 4px 16px #8fd0f214;display:flex;flex-flow:column;flex:1}.flex-container[_ngcontent-%COMP%] .left-pane[_ngcontent-%COMP%] .full-benefits-container[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%], .flex-container[_ngcontent-%COMP%] .right-pane[_ngcontent-%COMP%] .full-benefits-container[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;justify-content:center}.flex-container[_ngcontent-%COMP%] .left-pane[_ngcontent-%COMP%] .full-benefits-container[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%] .image[_ngcontent-%COMP%], .flex-container[_ngcontent-%COMP%] .right-pane[_ngcontent-%COMP%] .full-benefits-container[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{width:187px;height:140px;padding:7px 7px 0}@media(max-width:767px){.flex-container[_ngcontent-%COMP%] .left-pane[_ngcontent-%COMP%] .full-benefits-container[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%] .image[_ngcontent-%COMP%], .flex-container[_ngcontent-%COMP%] .right-pane[_ngcontent-%COMP%] .full-benefits-container[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{padding:6px 0}}@media(max-width:406px){.flex-container[_ngcontent-%COMP%] .left-pane[_ngcontent-%COMP%] .full-benefits-container[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%] .image[_ngcontent-%COMP%], .flex-container[_ngcontent-%COMP%] .right-pane[_ngcontent-%COMP%] .full-benefits-container[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{width:172px}}.flex-container[_ngcontent-%COMP%] .left-pane[_ngcontent-%COMP%] .full-benefits-container[_ngcontent-%COMP%] .full-width-image[_ngcontent-%COMP%], .flex-container[_ngcontent-%COMP%] .right-pane[_ngcontent-%COMP%] .full-benefits-container[_ngcontent-%COMP%] .full-width-image[_ngcontent-%COMP%]{align-items:center;width:100%;height:100%}.flex-container[_ngcontent-%COMP%] .left-pane[_ngcontent-%COMP%] .full-benefits-container[_ngcontent-%COMP%] .full-width-image[_ngcontent-%COMP%] .image[_ngcontent-%COMP%], .flex-container[_ngcontent-%COMP%] .right-pane[_ngcontent-%COMP%] .full-benefits-container[_ngcontent-%COMP%] .full-width-image[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{width:100%;height:100%;padding:0;border-radius:16px 16px 0 0;object-fit:cover}.flex-container[_ngcontent-%COMP%] .left-pane[_ngcontent-%COMP%] .full-benefits-container[_ngcontent-%COMP%] .description[_ngcontent-%COMP%], .flex-container[_ngcontent-%COMP%] .right-pane[_ngcontent-%COMP%] .full-benefits-container[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{padding:32px}@media(max-width:767px){.flex-container[_ngcontent-%COMP%] .left-pane[_ngcontent-%COMP%] .full-benefits-container[_ngcontent-%COMP%] .description[_ngcontent-%COMP%], .flex-container[_ngcontent-%COMP%] .right-pane[_ngcontent-%COMP%] .full-benefits-container[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{padding:16px}}.right-pane[_ngcontent-%COMP%]{flex-flow:column;gap:8px}.mfd-btn-tertiary[_ngcontent-%COMP%]{color:var(--core-color-secondary-cyan-500);font-size:16px;font-weight:500;margin-top:8px;
1cursor:pointer}.benefits-failed[_ngcontent-%COMP%]{display:flex;padding:32px;border-radius:16px;background-color:var(--core-color-mono-white);box-shadow:4px 4px 16px #8fd0f214}.benefits-failed[_ngcontent-%COMP%] .empty-state-content[_ngcontent-%COMP%]{flex:1;margin-right:calc(var(--core-spacing-desktop-large) * 1px);display:flex;flex-direction:column;justify-content:center}.benefits-failed[_ngcontent-%COMP%] .empty-state-content[_ngcontent-%COMP%] .title-small[_ngcontent-%COMP%]{color:var(--core-color-grey-700);margin-top:calc(var(--core-spacing-desktop-x-small) * 1px);margin-bottom:0}.benefits-failed[_ngcontent-%COMP%] .error-img-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:0 18px}.benefits-failed[_ngcontent-%COMP%] .error-img-container[_ngcontent-%COMP%] .error-img[_ngcontent-%COMP%]{width:132px;height:126px}@media(max-width:991px){.benefits-failed[_ngcontent-%COMP%]{flex-direction:column-reverse;text-align:center}.benefits-failed[_ngcontent-%COMP%] .empty-state-content[_ngcontent-%COMP%]{margin-right:0}.benefits-failed[_ngcontent-%COMP%] .error-img-container[_ngcontent-%COMP%]{margin-bottom:calc(var(--core-spacing-tablet-large) * 1px)}.benefits-failed[_ngcontent-%COMP%] .mfd-btn-tertiary[_ngcontent-%COMP%]{margin-top:calc(var(--core-spacing-tablet-large) * 1px)}}"]})}}return t})();var de=(()=>{class t extends Se{constructor(e){super(e),this.http=e,this.baseUrl="/gateway/lending-services/api/v2/triple"}isTripleEnabled(e){return this.get(`${this.baseUrl}/${e}/enabled`)}getTripleUI(e){return this.get(`${this.baseUrl}/${e}/triple-ui`)}static{this.\u0275fac=function(n){return new(n||t)(he(Oe))}}static{this.\u0275prov=ne({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Ot(t,g){t&1&&(a(0,"span"),V(1),c(2,"translate"),l()),t&2&&(o(),fe(" ",d(2,1,"loading3Dots")))}function St(t,g){t&1&&(a(0,"span"),V(1),c(2,"translate"),l()),t&2&&(o(),fe(" ",d(2,1,"viewYourOffers")))}var et=(()=>{class t{constructor(){this.partnerHelperService=m(K),this.fullStoryService=m(T),this.tripleService=m(de),this.storageService=m(H),this.matDialog=m(F),this.translateService=m(Ee),this.partner=this.partnerHelperService.partnerSignal,this.LOC_STR="BENEFITS_PAGE",this.Partners=v}ngOnInit(){this.fullStoryService.logCustomEvent(f.BENEFITS_MERCHANT_OFFERS_TILE_LOADED,{location_str:this.LOC_STR,productCode_str:this.partner().product.product_code})}logClickOnMerchantOffer(){this.isLoadingUrl=!0;let e=this.storageService.get("tsysAccountId");this.tripleService.getTripleUI(e).pipe(Pe(()=>{this.isLoadingUrl=!1,this.fullStoryService.logCustomEvent(f.BENEFITS_MERCHANT_OFFERS_CLICKED,{location_str:this.LOC_STR,productCode_str:this.partner().product.product_code})})).subscribe({next:n=>{let i=document.createElement("a");i.href=n.redirectUrl,i.target="_blank",document.body.appendChild(i),i.click(),document.body.removeChild(i)},error:()=>{let n=new ke;n.header=this.translateService.instant("sorry"),n.text=this.translateService.instant("unableToCompleteYourRequest"),n.buttons.push(new Ne(this.translateService.instant("close"),Ae.RAISED,"NoAction")),this.openPopup(n)}})}openPopup(e){return S(this,null,function*(){let{GenericModalComponent:n}=yield import("./chunk-MIXAY4EZ.js");this.matDialog.open(n,{width:"250px",data:e,panelClass:"generic-modal-container",position:{top:"300px"}})})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=h({type:t,selectors:[["merchant-offers"]],decls:21,vars:11,consts:[[1,"merchant-offers-container","fs-unmask"],[1,"benefits-header"],[1,"title"],[1,"mfd-title-medium","mfd-margin-0",3,"innerHTML"],[1,"flex-container"],[1,"main-pane"],[1,"full-merchant-offers-container"],[1,"image-container"],[1,"image",3,"cardsImageAssetKey"],[1,"description"],[1,"mfd-title-small-400","text-overflow-truncate-4",3,"innerHTML"],[1,"triple-btn-container"],[3,"click"],[1,"mfd-btn-tertiary"],[1,"offers-disclamer"]],template:function(n,i){if(n&1&&(a(0,"div",0)(1,"div",1)(2,"div",2),r(3,"h1",3),c(4,"translate"),l()(),a(5,"div",4)(6,"div",5)(7,"div",6)(8,"div",7),r(9,"img",8),l(),a(10,"div",9),r(11,"span",10),c(12,"translate"),a(13,"div",11)(14,"a",12),y("click",function(){return i.logClickOnMerchantOffer()}),a(15,"button",13),u(16,Ot,3,3,"span")(17,St,3,3,"span"),l()()()()()()(),a(18,"p",14),V(19),c(20,"translate"),l()()),n&2){let C;o(3),s("innerHTML",d(4,5,"merchantOffers"),p),o(6),s("cardsImageAssetKey",((C=i.partner())==null?null:C.key)===i.Partners.BEST_WESTERN?"triple_offer_bw":"triple_offer"),o(2),s("innerHTML",d(12,7,"merchantOffersWithAsterisk"),p),o(5),P(i.isLoadingUrl?16:17),o(3),ae(d(20,9,"offersConsistOfEarningRewardPoints"))}},dependencies:[x,L,M],styles:[".benefits-header[_ngcontent-%COMP%]{display:flex;margin-bottom:calc(var(--core-spacing-tablet-x-small) * 1px)}
1.benefits-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex-grow:1;margin-right:8px}.benefits-header[_ngcontent-%COMP%] .mfd-btn-tertiary[_ngcontent-%COMP%]{cursor:pointer;font-size:16px;font-weight:700;width:unset}.offers-disclamer[_ngcontent-%COMP%]{padding:5px;text-align:center;color:var(--color-font-label, #5B5F60);font-family:var(--satoshi-300);font-size:12px;font-style:normal;font-weight:300;line-height:16px}.text-overflow-truncate-4[_ngcontent-%COMP%]{overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:4;display:-webkit-box}.flex-container[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;gap:8px;justify-content:center}.flex-container[_ngcontent-%COMP%] .main-pane[_ngcontent-%COMP%]{display:flex;width:100%}.flex-container[_ngcontent-%COMP%] .main-pane[_ngcontent-%COMP%] .full-merchant-offers-container[_ngcontent-%COMP%]{border-radius:16px;background-color:var(--core-color-mono-white);box-shadow:4px 4px 16px #8fd0f214;display:flex;flex-flow:column;flex:1;align-items:center;justify-content:center}.flex-container[_ngcontent-%COMP%] .main-pane[_ngcontent-%COMP%] .full-merchant-offers-container[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;justify-content:center;margin-bottom:0;padding-top:32px}.flex-container[_ngcontent-%COMP%] .main-pane[_ngcontent-%COMP%] .full-merchant-offers-container[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{width:60px;height:60px;padding:7px 7px 0}@media(max-width:767px){.flex-container[_ngcontent-%COMP%] .main-pane[_ngcontent-%COMP%] .full-merchant-offers-container[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{padding:6px 0}}@media(max-width:406px){.flex-container[_ngcontent-%COMP%] .main-pane[_ngcontent-%COMP%] .full-merchant-offers-container[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{width:172px}}.flex-container[_ngcontent-%COMP%] .main-pane[_ngcontent-%COMP%] .full-merchant-offers-container[_ngcontent-%COMP%] .full-width-image[_ngcontent-%COMP%]{align-items:center;width:100%;height:100%}.flex-container[_ngcontent-%COMP%] .main-pane[_ngcontent-%COMP%] .full-merchant-offers-container[_ngcontent-%COMP%] .full-width-image[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{width:100%;height:100%;padding:0;border-radius:16px 16px 0 0;object-fit:cover}.flex-container[_ngcontent-%COMP%] .main-pane[_ngcontent-%COMP%] .full-merchant-offers-container[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{width:100%;padding:8px 32px 32px;text-align:center}@media(max-width:767px){.flex-container[_ngcontent-%COMP%] .main-pane[_ngcontent-%COMP%] .full-merchant-offers-container[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{padding:16px}}.mfd-btn-tertiary[_ngcontent-%COMP%]{color:var(--core-color-secondary-cyan-500);font-size:16px;font-weight:500;margin-top:8px;cursor:pointer;-webkit-user-select:none;user-select:none}.triple-btn-container[_ngcontent-%COMP%]{font-size:16px;line-height:20px;display:flex;justify-content:center}.sub-title-container[_ngcontent-%COMP%]{margin-bottom:calc(var(--core-spacing-tablet-x-small) * 1px)}.sub-title-container[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{color:var(--core-color-grey-700)}"]})}}return t})();var me=(()=>{class t{constructor(){this.partnerMemberDetailsDashboardService=m(He),this.storageService=m(H),this.fullStoryService=m(T),this.memberNumber=""}ngOnInit(){this.getMemberDetails(this.storageService.get("tsysAccountId")),this.fullStoryService.logCustomEvent(f.BEST_WESTERN_REWARDS_NUMBER_TILE_LOAD_SUCCESS)}getMemberDetails(e){this.partnerMemberDetailsDashboardService.getMemberDetails(e).then(n=>{this.memberNumber=n?.memberNumber||""}).catch(n=>{this.fullStoryService.logCustomEvent(f.BENEFITS_REWARDS_NUMBER_API_FAIL,{location_str:b.BENEFITS,errorCode_str:n?.data?.errorCode,rewardProgramType_str:O.BEST_WESTERN}),console.log(n),this.fullStoryService.logCustomEvent(f.BEST_WESTERN_REWARDS_NUMBER_TILE_LOAD_FAIL)})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=h({type:t,selectors:[["cards-best-western-rewards-number"]],decls:5,vars:4,consts:[[1,"benefits","mfd-small-r"],[1,"mfd-title-small-500","benefit-title"],[1,"mfd-margin-0","mfd-title-small-400","benefit-description",3,"innerText"]],template:function(n,i){n&1&&(U(0,"div",0)(1,"span",1),V(2),c(3,"translate"),G(),A(4,"p",2),G()),n&2&&(o(2),ae(d(3,2,"bestWesternRewardsNumber")),o(2),Y("innerText",i.memberNumber))},dependencies:[x,M],styles:["[_nghost-%COMP%]{width:100%;display:block}"]})}}return t})();function Et(t,g){t&1&&(a(0,"div",1),r(1,"cards-best-western-rewards-number"),l())}function wt(t,g){t&1&&(r(0,"span",7),c(1,"translate")),t&2&&s("innerHTML",d(1,1,"benefits.mercury.subtitle"),p)}function Lt(t,g){t&1&&(r(0,"span",7),c(1,"translate")),t&2&&s("innerHTML",d(1,1,"benefits.spirit.subtitle"),p)}function It(t,g){t&1&&(r(0,"span",7),c(1,"translate")),t&2&&s("innerHTML",d(1,1,"benefits.bestwestern.subtitle"),p)}function Rt(t,g){if(t&1&&r(0,"img",11),t&2){let e=_(2).$implicit;s("cardsImageAssetKey",e.spiritImage)}}function Bt(t,g){if(t&1&&r(0,"img",11),t&2){let e=_(2).$implicit;s("cardsImageAssetKey",e.bestWesternIcon)}}function kt(t,g){if(t&1&&r(0,"img",11),t&2){let e=_(2).$implicit;s("cardsImageAssetKey",e.benefit_icon)}}function Nt(t,g){if(t&1&&(r(0,"p",14),c(1,"trimHtml")),t&2){let e=_(2).$implicit;s("innerHTML",se(1,1,e==null?null:e.benefitDescription,103),p)}}function At(t,g){if(t&1){let e=z();a(0,"div",9)(1,"div",10),u(2,Rt,1,1,"img",11)(3,Bt,1,1,"img",11)(4,kt,1,1,"img",11),l(),a(5,"div",12),r(6,"span",13),u(7,Nt,2,4,"p",14),l(),a(8,"div",15)(9,"span",16),y("click",function(){k(e);let i=_().$implicit,C=_(2);
1return N(C.openModal(i))}),l()()()}if(t&2){let e,n=_().$implicit,i=_(2);o(2),P(((e=i.partner())==null?null:e.key)===i.partners.SPIRIT?2:((e=i.partner())==null?null:e.key)===i.partners.BEST_WESTERN?3:4),o(4),s("innerHTML",n.benefitTitle,p),o(),P(n.benefitDescription?7:-1)}}function Dt(t,g){if(t&1&&u(0,At,10,3,"div",9),t&2){let e=g.$implicit;P(e.benefitTitle?0:-1)}}function Ht(t,g){if(t&1&&(a(0,"div",8),oe(1,Dt,1,1,null,null,ie),l()),t&2){let e=_();o(),re(e.benefits)}}function Ft(t,g){t&1&&(a(0,"div",17)(1,"div",18),r(2,"span",19),c(3,"translate"),r(4,"p",20),c(5,"translate"),r(6,"div",21),c(7,"translate"),l(),a(8,"div",22),r(9,"div",23),l()()),t&2&&(o(2),s("innerHTML",d(3,3,"keybenefits.error.title"),p),o(2),s("innerHTML",d(5,5,"keybenefits.error.subtitle"),p),o(2),s("innerHTML",d(7,7,"keybenefits.error.buttontext"),p))}function Ut(t,g){if(t&1&&u(0,Ft,10,9,"div",17),t&2){let e=_();P(e.benefits===null?0:-1)}}var tt=(()=>{class t{constructor(){this.router=m(Z),this.matDialog=m(F),this.storageService=m(H),this.fullstoryService=m(T),this.partnerHelperService=m(K),this.partner=this.partnerHelperService.partnerSignal,this.partners=v,this.memberNumber=""}ngOnChanges(e){e?.benefits?.currentValue?.length>0&&this.fullstoryService.logCustomEvent(f.YOUR_BENEFITS_LOAD_SUCCESS),e?.benefits===void 0&&this.fullstoryService.logCustomEvent(f.KEY_BENEFITS_LOAD_FAIL)}seeAllBenefits(){this.fullstoryService.logCustomEvent(f.YOUR_BENEFITS_SEE_ALL),this.fullstoryService.logCustomEvent(f.BENEFITS_SEE_ALL_SEL,{location_str:b.BENEFITS,rewardProgramType_str:this.rewardProgramType}),this.storageService.set("rewardProgramType",this.rewardProgramType),this.router.navigate(["my-benefits/see-all"])}openModal(e){return S(this,null,function*(){let{BenefitsModalComponent:n}=yield import("./chunk-6KLD4LMD.js");this.matDialog.open(n,{data:{benefit:e,parent:"YourBenefits",rewardProgramType:this.rewardProgramType},panelClass:"benefits-modal"}),this.fullstoryService.logCustomEvent(f.BENEFITS_SEL,{location_str:b.BENEFITS,benefitCode_str:e?.benefitsKeyId,rewardProgramType_str:this.rewardProgramType,benefitTitle_str:e?.benefitTitle?.replace(/<\/?[^>]+(>|$)/g,"")}),this.fullstoryService.logCustomEvent(f.YOUR_BENEFITS_THIRD_LEVEL)})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=h({type:t,selectors:[["cards-your-benefits"]],inputs:{benefits:"benefits",rewardProgramType:"rewardProgramType"},features:[j],decls:14,vars:11,consts:[[1,"mfd-small-b","fs-unmask"],[1,"flex-container","mfd-x-small-b","bw-rewards-number","text-center"],[1,"benefits-header"],[1,"title"],[1,"mfd-title-medium","mfd-margin-0",3,"innerHTML"],[1,"mfd-btn-tertiary","mfd-margin-0",3,"click","innerHTML"],[1,"sub-title-container"],[1,"mfd-title-small-500","sub-title",3,"innerHTML"],[1,"fs-unmask"],[1,"flex-container","mfd-x-small-b"],[1,"icon-start","mfd-small-r"],[3,"cardsImageAssetKey"],[1,"benefits","mfd-small-r"],[1,"mfd-title-small-500","benefit-title",3,"innerHTML"],[1,"mfd-margin-0","mfd-title-small-400","benefit-description",3,"innerHTML"],[1,"icon-end"],[1,"mfd-icon","mfd-right-chevron",3,"click"],[1,"benefits-failed","mfd-medium-t","fs-unmask"],[1,"empty-state-content"],[1,"mfd-title-small-500",3,"innerHTML"],[1,"mfd-title-small-400","title-small",3,"innerHTML"],[1,"mfd-btn-tertiary",3,"innerHTML"],[1,"error-img-container"],["cardsBackgroundImage","error_img",1,"error-img"]],template:function(n,i){if(n&1&&(a(0,"div",0),u(1,Et,2,0,"div",1),a(2,"div",2)(3,"div",3),r(4,"h1",4),c(5,"translate"),l(),a(6,"div",5),c(7,"translate"),y("click",function(){return i.seeAllBenefits()}),l()(),a(8,"div",6),u(9,wt,2,3,"span",7),u(10,Lt,2,3,"span",7),u(11,It,2,3,"span",7),l()(),u(12,Ht,3,0,"div",8)(13,Ut,1,1)),n&2){let C,te,Ce,ue;o(),P(((C=i.partner())==null?null:C.key)===i.partners.BEST_WESTERN?1:-1),o(3),s("innerHTML",d(5,7,"benefits.title"),p),o(2),s("innerHTML",d(7,9,"benefits.buttontext"),p),o(3),P(((te=i.partner())==null?null:te.key)===i.partners.MERCURYCARD?9:-1),o(),P(((Ce=i.partner())==null?null:Ce.key)===i.partners.SPIRIT?10:-1),o(),P(((ue=i.partner())==null?null:ue.key)===i.partners.BEST_WESTERN?11:-1),o(),P(i.benefits&&i.benef
1its.length?12:13)}},dependencies:[x,me,pe,L,M,Ye],styles:[".benefits-header[_ngcontent-%COMP%]{display:flex;margin-bottom:calc(var(--core-spacing-tablet-x-small) * 1px)}.benefits-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex-grow:1;margin-right:8px}.benefits-header[_ngcontent-%COMP%] .mfd-btn-tertiary[_ngcontent-%COMP%]{cursor:pointer;font-size:16px;font-weight:700;width:unset}.sub-title-container[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{color:var(--core-color-grey-700)}.flex-container[_ngcontent-%COMP%]{display:flex;padding:16px;border-radius:16px;background-color:var(--core-color-mono-white);box-shadow:4px 4px 16px #8fd0f214}.flex-container[_ngcontent-%COMP%] .icon-start[_ngcontent-%COMP%], .flex-container[_ngcontent-%COMP%] .icon-end[_ngcontent-%COMP%]{display:flex;align-items:center}.flex-container[_ngcontent-%COMP%] .icon-start[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:22px;height:22px}.flex-container[_ngcontent-%COMP%] .benefits[_ngcontent-%COMP%]{flex-grow:1;display:flex;flex-direction:column;justify-content:center;gap:calc(var(--core-spacing-desktop-x-small) * 1px)}.flex-container[_ngcontent-%COMP%] .benefits[_ngcontent-%COMP%] .benefit-title[_ngcontent-%COMP%]{color:var(--core-color-secondary-cyan-800)}.flex-container[_ngcontent-%COMP%] .benefits[_ngcontent-%COMP%] .benefit-description[_ngcontent-%COMP%]{color:var(--core-color-grey-700)}.mfd-btn-tertiary[_ngcontent-%COMP%]{color:var(--core-color-secondary-cyan-500);font-size:16px;font-weight:500;margin-top:8px;cursor:pointer}.benefits-failed[_ngcontent-%COMP%]{display:flex;padding:32px;border-radius:16px;background-color:var(--core-color-mono-white);box-shadow:4px 4px 16px #8fd0f214}.benefits-failed[_ngcontent-%COMP%] .empty-state-content[_ngcontent-%COMP%]{flex:1;margin-right:calc(var(--core-spacing-desktop-large) * 1px);display:flex;flex-direction:column;justify-content:center}.benefits-failed[_ngcontent-%COMP%] .empty-state-content[_ngcontent-%COMP%] .title-small[_ngcontent-%COMP%]{color:var(--core-color-grey-700);margin-top:calc(var(--core-spacing-desktop-x-small) * 1px);margin-bottom:0}.benefits-failed[_ngcontent-%COMP%] .error-img-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:0 18px}.benefits-failed[_ngcontent-%COMP%] .error-img-container[_ngcontent-%COMP%] .error-img[_ngcontent-%COMP%]{width:132px;height:126px}@media(max-width:991px){.benefits-failed[_ngcontent-%COMP%]{flex-direction:column-reverse;text-align:center}.benefits-failed[_ngcontent-%COMP%] .empty-state-content[_ngcontent-%COMP%]{margin-right:0}.benefits-failed[_ngcontent-%COMP%] .error-img-container[_ngcontent-%COMP%]{margin-bottom:calc(var(--core-spacing-tablet-large) * 1px)}.benefits-failed[_ngcontent-%COMP%] .mfd-btn-tertiary[_ngcontent-%COMP%]{margin-top:calc(var(--core-spacing-tablet-large) * 1px)}}@media(max-width:1015px){.bw-rewards-number[_ngcontent-%COMP%]{margin:0;display:none}}.bw-rewards-number[_ngcontent-%COMP%]{margin-bottom:40px}"]})}}return t})();var zt=["btnRedeem"];function Yt(t,g){if(t&1&&(a(0,"div",5)(1,"div",10)(2,"div",11),r(3,"div",12),c(4,"number"),r(5,"div",13),c(6,"translate"),l()(),a(7,"div",10)(8,"div",11),r(9,"div",12),c(10,"number"),r(11,"div",13),c(12,"translate"),l()()()),t&2){let e=_();o(3),s("innerHTML",d(4,4,e.data==null?null:e.data.pointsAccruedSincelastCycle)||0,p),o(2),s("innerHTML",d(6,6,"sinceLastBillingPeriodBestWestern"),p),o(4),s("innerHTML",d(10,8,e.data==null?null:e.data.pointsAccruedSinceAccountOpened)||0,p),o(2),s("innerHTML",d(12,10,"lifetimePointsBestWestern"),p)}}function Wt(t,g){t&1&&(a(0,"div",6)(1,"div",14),r(2,"img",15),l(),r(3,"div",16),c(4,"translate"),l()),t&2&&(o(3),s("innerHTML",d(4,1,"weCantAccessYourPoints"),p))}var nt=(()=>{class t{constructor(){this.fullStoryService=m(T),this.maintenanceWindowService=m(Q),this.matDialog=m(F),this.data={accountPoints:null,lastCyclePoints:null,pointsSinceAccountOpened:null,cashValue:null},this.redeemCTALink=""}redeemBtnClick(){this.fullStoryService.logCustomEvent(f.BEST_WESTERN_POINTS_REDEEM),this.fullStoryService.logCustomEvent(f.BENIFITS_POINTS_REDEEM_SEL,{location_str:b.BENEFITS,rewardProgramType_str:O.BEST_WESTERN,buttonText_str:this.btnRedeem?.nativeElement?.innerText}),this.maintenanceWindowService.getAllMaintenanceWindows().then(e=>{e&&q.CARDS_REDEEM_POINTS in e?this.openRedemptionErrorModal("maintenance"):this.matDialog.open(ce,{panelClass:"mfd-speedbump-modal-container",data:{url:this.redeemCTALink,target:""}})})}openRedemptionErrorModal(e){return S(this,null,function*(){let{RoadblockModalComponent:n}=yield import("./chunk-GY2EMBUT.js");this.matDialog.open(n,{panelClass:["mfd-modal-container"],data:e})})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=h({type:t,selectors:[["cards-points-tile-best-western"]],viewQuery:function(n,i){if
1(n&1&&X(zt,5),n&2){let C;$(C=J())&&(i.btnRedeem=C.first)}},inputs:{data:"data",redeemCTALink:"redeemCTALink"},decls:12,vars:6,consts:[["btnRedeem",""],[1,"mfd-relative"],[1,"bg-bestwestern-mobile"],[1,"points-tile-container"],[1,"points-tile-wrapper"],[1,"points-details"],[1,"failed-state"],[1,"redeem-btn-container"],[1,"mfd-btn-secondary",3,"click","innerHTML"],[1,"flex-container","mfd-x-small-b","bw-rewards-number","text-center"],[1,"points-info"],[1,"points-desc"],[1,"mfd-title-large",3,"innerHTML"],[1,"mfd-title-small-500",3,"innerHTML"],[1,"img-container"],["cardsImageAssetKey","points_error","alt","points error"],[1,"failed-state-text",3,"innerHTML"]],template:function(n,i){n&1&&(a(0,"div",1),r(1,"div",2),a(2,"div",3)(3,"div",4),u(4,Yt,13,12,"div",5)(5,Wt,5,3,"div",6),l(),a(6,"div",7)(7,"button",8,0),c(9,"translate"),y("click",function(){return i.redeemBtnClick()}),l()()(),a(10,"div",9),r(11,"cards-best-western-rewards-number"),l()()),n&2&&(o(2),D("error_state",!i.data),o(2),P(i.data?4:5),o(3),s("innerHTML",d(9,4,"redeemWithBestWestern"),p))},dependencies:[x,me,L,M,le],styles:[".bg-bestwestern-mobile[_ngcontent-%COMP%]{display:none}.points-tile-container[_ngcontent-%COMP%]{width:100%;background:var(--color-co-brand-bw-blue-500, #003C7F);border-radius:calc(var(--core-border-radius-desktop-default) * 1px);padding:0 32px 32px;display:flex;flex-direction:column}.points-tile-container.error_state[_ngcontent-%COMP%]{padding-left:32px;padding-right:32px}.points-desc[_ngcontent-%COMP%] .mfd-title-large[_ngcontent-%COMP%]{min-width:100px;min-height:32px}.points-details[_ngcontent-%COMP%]{display:flex;justify-content:space-around;width:100%}.points-details[_ngcontent-%COMP%] .points-desc[_ngcontent-%COMP%]{text-align:center}.points-details[_ngcontent-%COMP%] .points-desc[_ngcontent-%COMP%] .mfd-title-large[_ngcontent-%COMP%]{color:var(--core-color-mono-black)}.points-details[_ngcontent-%COMP%] .points-info[_ngcontent-%COMP%] .points-desc[_ngcontent-%COMP%] .mfd-title-large[_ngcontent-%COMP%], .points-details[_ngcontent-%COMP%] .points-info[_ngcontent-%COMP%] .points-desc[_ngcontent-%COMP%] .mfd-title-small-500[_ngcontent-%COMP%]{color:var(--core-color-grey-700)}.points-details[_ngcontent-%COMP%] .points[_ngcontent-%COMP%], .points-details[_ngcontent-%COMP%] .lifetime-points[_ngcontent-%COMP%], .points-details[_ngcontent-%COMP%] .points-info[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:center;width:45%}.points-details[_ngcontent-%COMP%] .mfd-title-small-500[_ngcontent-%COMP%]{font-family:var(--satoshi-400);font-weight:400;color:var(--core-color-mono-black);display:inline-block;word-wrap:break-word}.points-details[_ngcontent-%COMP%] .mfd-btn-secondary[_ngcontent-%COMP%], .points-details[_ngcontent-%COMP%] .mfd-btn-tertiary[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}.points-tile-wrapper[_ngcontent-%COMP%]{background-color:var(--core-color-mono-white);border-radius:16px;padding:0 16px;margin-bottom:32px;margin-top:32px;height:124px;display:flex;justify-content:space-between;align-items:center;width:100%}.failed-state[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start}.failed-state[_ngcontent-%COMP%] .img-container[_ngcontent-%COMP%]{width:18%;margin-right:32px}.failed-state-text[_ngcontent-%COMP%]{font-size:16px;line-height:20px;color:var(--core-color-secondary-cyan-800);width:52%;font-family:var(--satoshi-500)}.redeem-btn-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:var(--color-font-variant, #2C2D2E);background:var(--color-co-brand-bw-amber-500, #FC3);border:none}@media(max-width:1015px){.points-details[_ngcontent-%COMP%]{justify-content:space-around}.points-tile-container.error_state[_ngcontent-%COMP%]{flex-direction:row;align-items:center;justify-content:space-between;padding:32px}.points-tile-container.error_state[_ngcontent-%COMP%] .points-tile-wrapper[_ngcontent-%COMP%]{width:68%;margin:0}.points-tile-container.error_state[_ngcontent-%COMP%] .redeem-btn-container[_ngcontent-%COMP%]{width:28%}.points-tile-container.error_state[_ngcontent-%COMP%] .img-container[_ngcontent-%COMP%]{width:clamp(72px,30.35px + 7.059vw,102px);margin-right:0}.failed-state-text[_ngcontent-%COMP%]{width:clamp(184px,27.13px + 26.588vw,297px)}}@media(max-width:590px){.points-details[_ngcontent-%COMP%]{justify-content:space-around}.bg-bestwestern-mobile[_ngcontent-%COMP%]{display:block;position:absolute;background-color:var(--color-co-brand-bw-blue-500, #003C7F);border-bottom-left-radius:calc(var(--core-border-radius-mobile-large) * 1px);border-bottom-right-radius:calc(var(--core-border-radius-mobile-large) * 1px);right:clamp(-24px,3.44px - 4.651vw,-14px);left:clamp(-24px,3.44px - 4.651vw,-14px);top:-30px;height:295px}.points-tile-container[_ngcontent-%COMP%]{background-color:transparent;position:relative;z-index:1;padding:0 0 32px}.points-tile-container.error_state[_ngcontent-%COMP%]{flex-direction:column;padding:0 clamp(0px,10.73px - 1.818vw,5px) 0}.points-tile-container.error_state[_ngcontent-%COMP%] .points-tile-wrapper[_ngcontent-%COMP%]{width:100%;padding:24px 16px;height:auto}.points-tile-container.error_state[_ngcontent-%COMP%] .redeem-btn-container[_ngcontent-%COMP%]{width:100%;height:auto;margin-top:24px}.points-tile-container.error_state[_ngcontent-%COMP%] .points-tile-wrapper[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.failed-state[_ngcontent-%COMP%]{flex-direction:column;width:100%}.failed-state-text[_ngcontent-%COMP%]{width:100%;margin-top:24px}}@media(max-width:350px){.bg-bestwestern-mobile[_ngcontent-%COMP%]{left:-3px;right:-3px}}.flex-container[_ngcontent-%COMP%]{display:flex;padding:16px;border-radius:16px;background-color:var(--core-color-mono-white);box-shadow:4px 4px 16px #8fd0f214}.bw-rewards-number[_ngcontent-%COMP%]{margin-top:40px;margin-bottom:40px}@media(min-width:1016px){.bw-rewards-number[_ngcontent-%COMP%]{margin:0;display:none}}"]})}}return t})();function jt(t,g){t&1&&r(0,"cards-esign-consent")}function Vt(t,g){if(t&1&&r(0,"cards-insight-perso",2),t&2){let e=_(2);s("data",e.insightToast)}}function Kt(t,g){t&1&&r(0,"cards-points-tile-nonreward")}function qt(t,g){t&1&&(a(0,"div",6)(1,"div"),r(2,"img",22),l(),a(3,"div",23),r(4,"div",24),c(5,"translate"),a(6,"div",25),V(7," The rewards point section is currently down for maintenance. "),l()()()),t&2&&(o(4),s("innerHTML",d(5,1,"benefitsRedemption.modalError.generic.title"),p))}function Qt(t,g){if(t&1&&r(0,"cards-points-tile",7),t&2){let e=_(2);s("data",e.pointsTileData)("tlpURL",e.tlpURL)}}function Gt(t,g){if(t&1&&r(0,"cards-points-tile-best-western",8),t&2){let e=_(2);s("data",e.pointsTileData)("redeemCTALink",e.redeemCTALink)}}function $t(t,g){if(t&1&&r(0,"cards-points-tile-spirit",8),t&2){let e=_(2);s("data",e.pointsTileData)("redeemCTALink",e.redeemCTALink)}}function Jt(t,g){if(t&1&&r(0,"cards-insight-perso",10),t&2){let e=_(2);s("data",e.insightToast)}}function Xt(t,g){if(t&1&&(a(0,"div",11),r(1,"cards-carousel-perso",26),l()),t&2){let e=_(2);o(),s("carouselPersoList",e.carouselPersoList)}}function Zt(t,g){if(t&1&&(a(0,"div",27),r(1,"merchant-offers"),l()),t&2){let e=_(2);D("empty-points-tile",!e.pointsTileData||!e.pointsTileData.accountPoints)}}function en(t,g){if(t&1&&(a(0,"div",0)(1,"div",1)(2,"div"),u(3,Vt,1,1,"cards-insight-perso",2),a(4,"div",3)(5,"div",4)(6,"div",5),u(7,Kt,1,0,"cards-points-tile-nonreward")(8,qt,8,3,"div",6)(9,Qt,1,2,"cards-points-tile",7)(10,Gt,1,2,"cards-points-tile-best-western",8)(11,$t,1,2,"cards-points-tile-spirit",8),l(),a(12,"div",9),u(13,Jt,1,1,"cards-insight-perso",10),l(),u(14,Xt,2,1,"div",11),u(15,Zt,2,2,"div",12),a(16,"div",13),r(17,"cards-key-benefits",14),l(),a(18,"div",15),r(19,"cards-faq-opener",16),l()(),a(20,"div",17)(21,"div",18),r(22,"cards-your-benefits",14),l()()(),a(23,"div",19)(24,"div",4)(25,"div",20),r(2
16,"cards-faq-opener",21),l()()()()()()),t&2){let e,n=_();o(3),P(n.insightToast&&!n.isMobileView?3:-1),o(4),P(n.isRewardCard?n.isRewardsMaintenance?8:n.isRewardsMaintenance===!1&&((e=n.partner())==null?null:e.key)!==n.partners.SPIRIT&&((e=n.partner())==null?null:e.key)!==n.partners.BEST_WESTERN?9:n.isRewardsMaintenance===!1&&((e=n.partner())==null?null:e.key)===n.partners.BEST_WESTERN?10:n.isRewardsMaintenance===!1&&((e=n.partner())==null?null:e.key)===n.partners.SPIRIT?11:-1:7),o(6),P(n.insightToast&&n.isMobileView?13:-1),o(),P(n.carouselPersoList.length>0?14:-1),o(),P(n.isTripleEnabled?15:-1),o(),D("empty-points-tile",!n.pointsTileData||!n.pointsTileData.accountPoints),o(),s("benefits",n.keyBenefitsList)("rewardProgramType",n.rewardProgramType),o(2),s("faqList",n.faqList)("topic","BENEFITS")("rewardProgramType",n.rewardProgramType),o(3),s("benefits",n.yourBenefitsList)("rewardProgramType",n.rewardProgramType),o(4),s("faqList",n.faqList)("topic","BENEFITS")}}var it=(()=>{class t{constructor(){this.partnerHelperService=m(K),this.storageService=m(H),this.persoService=m(Fe),this.fullStoryService=m(T),this.benefitsService=m(Ue),this.tripleService=m(de),this.subscriptionService=m(we),this.cmsMapperService=m(Be),this.maintenanceWindowService=m(Q),this.subSink=new Le,this.partner=this.partnerHelperService.partnerSignal,this.pointsTileData={accountPoints:null,lastCyclePoints:null,pointsSinceAccountOpened:null,cashValue:null},this.isRewardCard=!1,this.carouselPersoList=[],this.tlpURL="",this.benefitsList=[],this.yourBenefitsList=[],this.keyBenefitsList=[],this.allBenefitsList=[],this.faqList={},this.redeemCTALink="",this.partners=v,this.isMobileView=!1,this.hasESignConsent=!1,this.isRewardsMaintenance=void 0,this.checkScreenSize()}checkScreenSize(){this.isMobileView=window.innerWidth<1016}ngOnInit(){this.storageService.keyExists("eSignConsent")&&(this.hasESignConsent=this.storageService.get("eSignConsent")),this.subSink.add(this.subscriptionService.on(Ie.ESIGN_CONSENT,()=>{this.hasESignConsent=this.storageService.get("eSignConsent")}));let e=this.storageService.getAccountConfiguration();this.partner().key===v.SPIRIT||this.partner().key===v.BEST_WESTERN?this.isRewardCard=!0:this.isRewardCard=e?.rewardsCard,this.maintenanceWindowService.getAllMaintenanceWindows().then(n=>{n&&q.CARDS_REWARDS in n?this.isRewardsMaintenance=!0:(this.isRewardsMaintenance=!1,this.isRewardCard&&this.getTotalPoints())}),this.fetchTripleUI(),this.getPersoData(),this.fetchBenefitsData(),this.fullStoryService.logCustomEvent(f.BENEFITS_EXP_LOADED,{location_str:b.BENEFITS})}ngOnDestroy(){this.subSink.unsubscribe()}fetchTripleUI(){let e=this.storageService.get("tsysAccountId");this.tripleService.isTripleEnabled(e).subscribe({next:n=>{this.isTripleEnabled=n.enabled},error:n=>{console.log(n)}})}fetchBenefitsData(){this.cmsMapperService.getCMSResponse(Re.BENEFITS).then(e=>{if(e&&Object.keys(e).length>0){let n=e;if(this.benefitsList=n?.benefitsList?.filter(C=>this.partner().key===v.SPIRIT?!!C.spiritImage:!!C.benefit_icon),n?.faQs?.some(C=>C?.cpc.includes(this.partner().product?.product_code)?(this.faqList=C,!0):!1),this.partner().key===v.SPIRIT||this.partner().key===v.BEST_WESTERN){let C=n?.waysToRedeem?.filter(te=>te?.cpc.includes(this.partner().product?.product_code));C&&C.length>0&&(this.redeemCTALink=C[0]?.partnerUrl)}let i={title:n?.viewAllBenefitsTitle,description:n?.seeAllBenefitsDescription,headerImage:n?.viewAllBenefitsHeaderImage[0]?.url};this.storageService.set("allBenefitsData",i)}this.getUserBenefitsFromBackend()}).catch(e=>{console.log(e)})}getUserBenefitsFromBackend(){return S(this,null,function*(){let e=this.storageService.get("tsysAccountId"),n={};yield this.benefitsService.getCustomerBenefits(e).then(i=>{i&&(n=i,this.allBenefitsList=this.benefitsService.filterCustomerBenefits(n,this.benefitsList),this.allBenefitsList.length>0?this.allBenefitsList.length<3?(this.yourBenefitsList=null,this.keyBenefitsList=null):this.allBenefitsList.length===3?(this.yourBenefitsList=null,this.keyBenefitsList=this.allBenefitsList.slice(0,3)):(this.yourBenefitsList=this.allBenefitsList.slice(3,9),this.keyBenefitsList=this.allBenefitsList.slice(0,3)):(this.yourBenefitsList=null,this.keyBenefitsList=null),this.getAllBenefitsData())}).catch(i=>{console.log(i),this.fullStoryService.logCustomEvent(f.BENEFITS_API_FAIL,{location_str:b.BENEFITS,rewardProgramType_str:this.getRewardProgramType(),errorCode_str:i?.data?.errorCode?i?.data?.errorCode:""}),this.allBenefitsList=null,this.yourBenefitsList=null,this.keyBenefitsList=null})})}getAllBenefitsData(){if(this.allBenefitsList){let e=this.storageService.get("allBenefitsData");e.benefitsList=this.allBenefitsList,this.storageService.set("allBenefitsData",e);let n=this.benefitsService.getCategoryList(this.allBenefitsList,this.partner().key);this.storageService.set("benefitsCategories",n)}}getTotalPoints(){let e=this.storageService.get("tsysAccountId"),n=this.storageService.get("partner").key;this.benefitsService.getTotalPoints(e).then(i=>{i?(this.pointsTileData={accountPoints:i?.accountPoints,lastCyclePoints:i?.last
1CyclePoints,pointsSinceAccountOpened:i?.pointsSinceAccountOpened,pointsAccruedSincelastCycle:i?.pointsAccruedSincelastCycle,pointsAccruedSinceAccountOpened:i?.pointsAccruedSinceAccountOpened,cashValue:i?.cashValue,accountRedemptionStatusTypeEnum:i?.accountRedemptionStatusTypeEnum,benefitsRedemptionPlatformTypeEnum:i?.benefitsRedemptionPlatformTypeEnum,tlpURL:i?.tlpURL},this.tlpURL=i?.tlpURL,this.rewardProgramType=this.getRewardProgramType(),n===v.MERCURYCARD?this.fullStoryService.logCustomEvent(f.MERCURY_POINTS_TILE_LOAD_SUCCESS):n===v.SPIRIT?this.fullStoryService.logCustomEvent(f.SPIRIT_POINTS_TILE_LOAD_SUCCESS):n===v.BEST_WESTERN&&this.fullStoryService.logCustomEvent(f.BEST_WESTERN_POINTS_TILE_LOAD_SUCCESS)):(this.fullStoryService.logCustomEvent(f.BENEFITS_POINTS_API_FAIL,{location_str:b.BENEFITS,rewardProgramType_str:this.getRewardProgramType(),errorCode_str:""}),n===v.MERCURYCARD?this.fullStoryService.logCustomEvent(f.MERCURY_POINTS_TILE_LOAD_FAIL):n===v.SPIRIT?this.fullStoryService.logCustomEvent(f.SPIRIT_POINTS_TILE_LOAD_FAIL):n===v.BEST_WESTERN&&this.fullStoryService.logCustomEvent(f.BEST_WESTERN_POINTS_TILE_LOAD_FAIL),this.pointsTileData=null),this.storageService.set("redemptionData",this.pointsTileData)}).catch(i=>{this.fullStoryService.logCustomEvent(f.BENEFITS_POINTS_API_FAIL,{location_str:b.BENEFITS,rewardProgramType_str:this.getRewardProgramType(),errorCode_str:i?.data?.errorCode?i?.data?.errorCode:""}),this.fullStoryService.logCustomEvent(f.SPIRIT_POINTS_TILE_LOAD_FAIL),this.pointsTileData=null,this.storageService.set("redemptionData",this.pointsTileData),console.log(i)})}getPersoData(){return S(this,null,function*(){try{let e=this.storageService.get("tsysAccountId"),n=yield this.persoService.checkForMessages(e);for(let i=0;i<n.length;i++)n[i].triggerEvent===_e.BENEFITS&&(n[i]?.messageType===ge.CAROUSEL&&this.carouselPersoList.push(n[i]),n[i]?.messageType===ge.INSIGHT_TOAST&&(this.insightToast=n[i]));yield this.persoService.checkPersoImageIsValid(this.carouselPersoList)}catch(e){this.fullStoryService.logCustomEvent(f.PERSO_BENEFITS_LOAD_FAIL),this.fullStoryService.logCustomEvent(f.PERSO_LOAD_FAIL,{persoTrigger_str:_e.BENEFITS,location_str:b.PERSO})}})}getRewardProgramType(){let e="",n=this.storageService.get("partner").key;if(this.pointsTileData?.benefitsRedemptionPlatformTypeEnum===w.TLP)e=O.TLP;else switch(n){case v.MERCURYCARD:e=O.MERCURY;break;case v.SPIRIT:e=O.SPIRIT;break;case v.BEST_WESTERN:e=O.BEST_WESTERN;break}return e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=h({type:t,selectors:[["cards-benefits-redesigned"]],hostBindings:function(n,i){n&1&&y("resize",function(){return i.checkScreenSize()},Me)},decls:2,vars:1,consts:[[1,"mfd-rd-page"],[1,"mfd-container","fs-unmask"],[1,"full-width-toast",3,"data"],[1,"mfd-row"],[1,"mfd-rd-left"],[1,"points-tile-container","fs-unmask"],["data-cy","interstitial-pv-dialog",1,"bt-modal-container","fs-unmask"],[3,"data","tlpURL"],[3,"data","redeemCTALink"],[1,"insight-toast-mobile","fs-unmask"],[3,"data"],[1,"carousel-perso-container","fs-unmask"],[1,"merchant-offers-container","fs-unmask",3,"empty-points-tile"],[1,"key-benefits-container","fs-unmask"],[3,"benefits","rewardProgramType"],[1,"benefits-faq-container","mfd-desktop","fs-unmask"],["customClass","benefits-faq-modal",3,"faqList","topic","rewardProgramType"],[1,"mfd-rd-right"],[1,"your-benefits-tile"],[1,"mfd-row","mfd-tablet","fs-unmask"],[1,"benefits-faq-container"],[3,"faqList","topic"],["cardsImageAssetKey","purple_cone"],[1,"text-container"],[1,"modal-heading",3,"innerHTML"],[1,"modal-body-text"],["customClass","benefits-rd",3,"carouselPersoList"],[1,"merchant-offers-container","fs-unmask"]],template:function(n,i){n&1&&u(0,jt,1,0,"cards-esign-consent")(1,en,27,16,"div",0),n&2&&P(i.hasESignConsent?1:0)},dependencies:[$e,Je,Xe,je,Ze,et,tt,Ke,Ve,nt,We,x,L,M],styles:[".mfd-desktop[_ngcontent-%COMP%]{display:block}.mfd-rd-page[_ngcontent-%COMP%]{padding-top:55px}.mfd-tablet[_ngcontent-%COMP%]{display:none}.mfd-row[_ngcontent-%COMP%]{justify-content:space-between;flex-wrap:nowrap}.insight-perso-container[_ngcontent-%COMP%]{margin-bottom:calc(var(--core-spacing-desktop-modules-gap) * 1px);width:100%}.mfd-rd-left[_ngcontent-%COMP%]{width:clamp(405px,180.51px + 22.118vw,499px)}
1.mfd-rd-right[_ngcontent-%COMP%]{width:clamp(525px,104.67px + 41.412vw,701px)}.insight-perso-container[_ngcontent-%COMP%]{width:100%;height:80px;margin-top:19px;margin-bottom:32px;padding:2px}.carousel-perso-container[_ngcontent-%COMP%]{margin-top:32px}.key-benefits-container[_ngcontent-%COMP%], .merchant-offers-container[_ngcontent-%COMP%]{width:100%;margin-top:32px;padding:2px;border-radius:16px}.benefits-faq-container[_ngcontent-%COMP%]{width:100%;border-radius:16px;padding:2px}.your-benefits-tile[_ngcontent-%COMP%]{width:100%;padding:2px}.insight-toast-mobile[_ngcontent-%COMP%]{margin-top:calc(var(--core-spacing-desktop-modules-gap) * 1px)}@media(max-width:1015px){.mfd-row[_ngcontent-%COMP%]{flex-direction:column}.mfd-rd-left[_ngcontent-%COMP%], .mfd-rd-right[_ngcontent-%COMP%]{width:100%}.mfd-desktop[_ngcontent-%COMP%]{display:none}.mfd-tablet[_ngcontent-%COMP%]{display:block}.key-benefits-container[_ngcontent-%COMP%], .merchant-offers-container[_ngcontent-%COMP%]{margin-bottom:32px}.full-width-toast[_ngcontent-%COMP%]{display:none}}@media(max-width:590px){.carousel-perso-container[_ngcontent-%COMP%]{margin-top:57px}.key-benefits-container.empty-points-tile[_ngcontent-%COMP%], .merchant-offers-container.empty-points-tile[_ngcontent-%COMP%]{margin-top:42px}}@media(min-width:1016px){.insight-toast-mobile[_ngcontent-%COMP%]{display:none}}.bt-modal-container[_ngcontent-%COMP%]{padding:calc(var(--core-spacing-desktop-large) * 1px);gap:calc(var(--core-spacing-desktop-small) * 1px);background-color:#fff;border-radius:16px;text-align:center}.bt-modal-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:210px;width:210px}.bt-modal-container[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:calc(var(--core-spacing-desktop-small, 16) * 1px)}.bt-modal-container[_ngcontent-%COMP%] .modal-heading[_ngcontent-%COMP%]{color:var(--mercury-light-main-color-font-primary, #013b65);font-family:var(--satoshi-700);font-size:clamp(20px,18.59px + .376vw,24px);font-style:normal;font-weight:700;line-height:clamp(24px,21.18px + .751vw,32px)}.bt-modal-container[_ngcontent-%COMP%] .modal-body-text[_ngcontent-%COMP%]{color:var(--mercury-light-main-color-font-primary, #013b65);text-align:center;font-family:var(--satoshi-400);font-size:calc(var(--typography-mobile-subtitle-font-size, 16) * 1px);font-style:normal;font-weight:400;line-height:calc(var(--typography-mobile-subtitle-line-height, 20) * 1px)}"]})}}return t})();var ur=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=h({type:t,selectors:[["cards-benefits-redesigned-route"]],decls:4,vars:0,template:function(n,i){n&1&&(r(0,"cards-header"),a(1,"div")(2,"main"),r(3,"cards-benefits-redesigned"),l()())},dependencies:[ze,it],encapsulation:2})}}return t})();export{ur as BenefitsRedesignedRouteComponent};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.