"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8235],{60762:function(e,n,r){r.d(n,{Z:function(){return a}});var t=r(40139),o=r(35756),i=r(54775);function a(){var e,n;if((0,i.Z)()){var r,a,l=null!==(r=decodeURIComponent(null===(a=(0,t.parse)(window.location.search))||void 0===a?void 0:a[o.ZP.conversionReferrer]))&&void 0!==r?r:"";if(l.length>0)return l}return null===(e=window)||void 0===e||null===(n=e.location)||void 0===n?void 0:n.href}},77070:function(e,n,r){var t=r(81333),o=r(28879),i=r.n(o),a=r(77485),l=r.n(a),u=r(27877),s=r.n(u),c=r(92602),d=r(1554),v=r(33924);function p(e){return!!e&&e.match(/\${_rh\.(.+?)}/)}function f(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if(e){var r=/format\((.*)\)/g.exec(e),t=null===r||void 0===r?void 0:r[1];return"date"===n&&t?t:t?c.Z.number[t]:void 0}}function E(e,n,r){return"percent"===(null===r||void 0===r?void 0:r.style)&&(e/=100),e.toLocaleString(n,r)}function y(e,n){var r,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.pageSettings||{},a=o.modifiedDate,l=o.publishedDate;return"modifiedDate"===e?r=a:"publishedDate"===e?r=l:"today"===e&&(r=i()().format()),r?A(t.locale,r,f(n,"date")):((0,d.Z)("[replaceShortcodes] unexpected date selector: \u201c".concat(e,"\u201d")),"")}var R="MMMM D, YYYY",m="D MMMM YYYY";function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s().ENGLISH,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,t=r||(e===s().FRENCH?m:R);return i()(n).locale(e).format(t)}n.Z=function(e){for(var n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{locale:s().ENGLISH},a=e,u=function(){var e=r[1].split("|").map((function(e){return e.trim()})),u=(0,t.Z)(e,2),s=u[0],c=u[1],p=(s=s.split(".")).shift(),R=o.find((function(e){return e.key===p}));if(n="","date"===p)n=y(s[0],c,i);else if(R){var m=f(c);if(""===(n=l()(null===R||void 0===R?void 0:R.data,s.join("."),""))){var A="[replaceShortcodes] could not find value: \u201c".concat(r[0],"\u201d");if((0,v.Z)())throw new Error(A);(0,d.Z)(A,{dataSourceKey:p,dataSourceKeys:"[ \u201c".concat(o.map((function(e){return e.key})).join("\u201d, \u201c"),"\u201d ]")})}else m&&(n=E(n,i.locale,m))}else{var _="[replaceShortcodes] could not find matching dataSource";if((0,v.Z)())throw new Error(_);(0,d.Z)(_,{dataSourceKey:p,dataSourceKeys:"[ \u201c".concat(o.map((function(e){return e.key})).join("\u201d, \u201c"),"\u201d ]")})}a=a.replace(r[0],n)};r=p(a);)u();return a}},8287:function(e,n,r){var t=r(84207);n.Z=t.Z},54183:function(e,n,r){var t=r(40419);n.Z=t.Z},72271:function(e,n,r){var t=r(553);n.Z=t.Z},34712:function(e,n,r){var t=r(48110);n.Z=t.Z},1129:function(e,n,r){var t=r(48777);n.Z=t.Z},80394:function(e,n,r){var t=r(69774);n.Z=t.Z},133:function(e,n,r){r.d(n,{Z:function(){return U}});var t,o=r(12741),i=r(81333),a=r(95235),l=r(1554),u=r(34712),s={REWARDS:"rewards",LOW_INTEREST:u.Z.LOW_INTEREST,BALANCE_TRANSFER:u.Z.BALANCE_TRANSFER,SECURED:u.Z.SECURED},c=r(1129),d=r(80394),v=r(72271),p=r(88241),f=r(54183),E=(t={},(0,a.Z)(t,f.Z.EXCELLENT,{min:760,max:760}),(0,a.Z)(t,f.Z.VERY_GOOD,{min:725,max:759}),(0,a.Z)(t,f.Z.GOOD,{min:660,max:724}),(0,a.Z)(t,f.Z.FAIR,{min:560,max:659}),(0,a.Z)(t,f.Z.POOR,{min:300,max:559}),(0,a.Z)(t,f.Z.NONE,{min:0,max:299}),t);var y=function(e){return E[e]},R=r(25872),m=r(8287),A=r(48110),_=[m.Z.UNKNOWN,m.Z.POOR,m.Z.FAIR,m.Z.GOOD];var g=function(e,n){return n.includes(A.Z.SECURED)&&0===e?m.Z.GOOD:_[e]};function b(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function T(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?b(Object(r),!0).forEach((function(n){(0,a.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var Z={rewards:s.REWARDS,"low-interest":s.LOW_INTEREST,"balance-transfer":s.BALANCE_TRANSFER,secured:s.SECURED},O={travel:c.Z.TRAVEL,"cash-back":c.Z.CASH_BACK,"store-credit":c.Z.STORE_CREDIT},S={"baggage-delay":d.Z.BAGGAGE_DELAY,"baggage-loss":d.Z.BAGGAGE_LOSS,"car-rental":d.Z.CAR_RENTAL,"extended-warranty":d.Z.EXTENDED_WARRANTY,"flight-delay":d.Z.FLIGHT_DELAY,"lounge-access":d.Z.LOUNGE_ACCESS,"mobile-insurance":d.Z.MOBILE_INSURANCE,"no-forex":d.Z.NO_FOREX,"price-protection":d.Z.PRICE_PROTECTION,"purchase-assurance":d.Z.PURCHASE_ASSURANCE,"travel-accident":d.Z.TRAVEL_ACCIDENT,"travel-emergency":d.Z.TRAVEL_EMERGENCY,"trip-cancellation":d.Z.TRIP_CANCELLATION,"trip-interruption":d.Z.TRIP_INTERRUPTION,"hotel-motel-burglary":d.Z.HOTEL_MOTEL_BURGLARY};function h(e){var n=e.pointRedemption,r=e.features,t=void 0===r?[]:r,o=e.chosenFeatures,i=t.map((function(e){return S[e]}));return{redemptionFlexibility:{level:null===n||void 0===n?void 0:n.flexibility_level,description:(null===n||void 0===n?void 0:n.copy.travel)||""},features:o?o.filter((function(e){return i.includes(e)}))||[]:i}}function w(e){var n=e.apiFeaturesList;if(!n)return{featureDescriptions:[]};var r=[];return Object.entries(n).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0],o=n[1];o.active&&r.push({featureAPIKey:t.toUpperCase(),description:o.description||""})})),{featureDescriptions:r}}function C(e){var n,r=((null===(n=e.types)||void 0===n?void 0:n.primary)||[]).map((function(e){return Z[e]}));if(r.some((function(e){return!e}))){var t,o,i,a=null===(t=e.ids)||void 0===t?void 0:t.primary;(0,l.Z)(new RangeError("[".concat(a," \u2022 ").concat(e.name,"]\n\t\u2022 Unrecognized card type in [").concat(null===(o=e.types)||void 0===o?void 0:o.primary,"]")),{cardId:a,cardTypes:null===(i=e.types)||void 0===i?void 0:i.primary,targetKeys:Object.keys(Z)})}return r.filter((function(e){return e}))}function N(e){var n,r=((null===(n=e.types)||void 0===n?void 0:n.rewards)||[]).map((function(e){return O[e]}));if(r.some((function(e){return!e}))){var t,o,i,a=null===(t=e.ids)||void 0===t?void 0:t.primary;(0,l.Z)(new RangeError("[".concat(a," \u2022 ").concat(e.name,"]\n\t\u2022 Unrecognized reward type in [").concat(null===(o=e.types)||void 0===o?void 0:o.rewards,"]")),{cardId:a,rewardTypes:null===(i=e.types)||void 0===i?void 0:i.rewards,targetKeys:Object.keys(O)})}return r.filter((function(e){return e}))}function I(e){var n=null===e||void 0===e?void 0:e[0];return null!==n&&void 0!==n&&n.description&&null!==n&&void 0!==n&&n.amount&&(null!==n&&void 0!==n&&n.name||null!==n&&void 0!==n&&n.offer_type)?{giftCardOffer:T(T({promoDetailsHTML:n.description,maxDollarValue:n.amount,offerTypeName:n.name,offerType:n.offer_type},(null===n||void 0===n?void 0:n.expiry_date)&&{expiryDate:new Date(n.expiry_date)}),{},{giftCards:e.map((function(e){return T({offerTypeName:e.name,offerType:e.offer_type,amount:e.amount},(null===e||void 0===e?void 0:e.expiry_date)&&{expiryDate:new Date(e.expiry_date)})}))})}:void 0}function L(e){var n,r,t,i,a=e.calculatedRewards,l=e.pointSystem,u=e.monthlySpendingAverage;return void 0===a?{netFirstYearValue:null,netSubsequentYearValue:null,totalSubsequentYearPoints:null,welcomeSignUp:null,welcomeSpending:null,firstYearPointsInDollars:null,firstYearRewardPoints:null,averagePointValue:null,monthlySpendingAverage:u}:{netFirstYearValue:a.first_year.net_value,netSubsequentYearValue:a.subsequent_years.net_value,totalSubsequentYearPoints:Math.floor(a.subsequent_years.tiers.reduce((function(e,n){return e+n.points}),0)),welcomeSignUp:{points:null===(n=a.bonuses)||void 0===n?void 0:n.welcome_signup.points,value:Math.floor(null===(r=a.bonuses)||void 0===r?void 0:r.welcome_signup.value)},welcomeSpending:{points:null===(t=a.bonuses)||void 0===t?void 0:t.welcome_spending.points,value:Math.floor(null===(i=a.bonuses)||void 0===i?void 0:i.welcome_spending.value)},firstYearPointsInDollars:Math.floor(a.first_year.tiers.reduce((function(e,n){return e+n.value}),0)),firstYearRewardPoints:Math.floor(a.first_year.tiers.reduce((function(e,n){return e+n.points}),0)),averagePointValue:Math.max.apply(Math,(0,o.Z)(Object.values(l.dollar_values))),monthlySpendingAverage:u}}function D(e){return e?{signUpBonusPoints:e.welcome_signup.points+e.welcome_spending.points,signUpBonusDollars:Math.floor(e.welcome_signup.value+e.welcome_spending.value),welcomeBonus:e.details}:void 0}function P(e){var n;return null!=(null===(n=e.ratehub_review)||void 0===n?void 0:n.content)?{ratehubReview:{rating:e.ratehub_review.rating,content:(0,R.Z)(e)}}:void 0}function M(e){var n=e.purchaseInterest,r=e.lowInterestMonthlyBalance;if(null!==n&&n>=0&&r>=0){var t=r*n/100;return{lowInterestAnnualInterestFee:t,lowInterestMonthlyInterestFee:t/12,lowInterestMonthlyBalance:r}}return{}}function B(e){var n,r,t=e.balanceTransferFee,o=e.balanceTransferAmount,i=e.balanceTransferInterestPromotional,a=i.term,l=a?i.rate||0:void 0;return o>=0&&l>=0&&a>0&&(n=null!==t&&void 0!==t?t:3,r=o*(l/100/12)),T(T({},"undefined"!==typeof a&&{balanceTransferPromoInterest:l,balanceTransferPromoMonths:a}),"undefined"!==typeof n&&{balanceTransferAmount:o,balanceTransferFeeRate:n,balanceTransferFee:o*n/100,balanceTransferMonthlyPayment:o/a+r})}function F(e){var n=e.purchaseInterest,r=e.securedMonthlyBalance;return T(T({},n>=0&&r>=0&&{securedMonthlyInterestFee:r*n/100/12}),r>=0&&{securedMonthlyBalance:parseFloat(r)})}var U=function(e){var n,r,t,o,i,a,l,u,s,c,d,f,E,R,m,A,_,b,Z,O,S,U,Y,G,j,k,H,x,V,K,W,q,z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.Z,X=z.monthlySpendingAverage,$=z.lowInterestMonthlyBalance,J=z.balanceTransferAmount,Q=z.securedMonthlyBalance,ee=z.chosenFeatures,ne=(0,p.Z)(e.types.comparison),re=e.fees.subsequent_year_annual,te=e.fees.first_year_annual,oe=null!==(n=null===(r=e.purchase_interest)||void 0===r?void 0:r.rate)&&void 0!==n?n:null,ie=L({calculatedRewards:e.calculated_rewards,pointSystem:e.point_system,monthlySpendingAverage:X});return T(T(T(T(T(T(T(T(T(T({id:null===(t=e.ids)||void 0===t?void 0:t.primary,primaryId:null===(o=e.ids)||void 0===o?void 0:o.primary,name:e.name,slug:e.slug,bank:e.provider.ids.primary,providerName:e.provider.name,network:e.network,productType:ne,displayType:null!==(i=null===(a=e.types)||void 0===a?void 0:a.display)&&void 0!==i?i:ne,rank:null!==(l=e.rank)&&void 0!==l?l:0,isMonetized:!!e.monetized,isSponsored:"boolean"===typeof e.sponsored?e.sponsored:!!e.sponsored.table,cardImageURL:null===(u=e.urls)||void 0===u?void 0:u.image,detailsURL:null===(s=e.urls)||void 0===s?void 0:s.details,applyRedirectURL:null===(c=e.urls)||void 0===c?void 0:c.apply_redirect,purchaseInterest:oe,cashAdvanceInterest:null!==(d=null===(f=e.cash_advance_interest)||void 0===f?void 0:f.rate)&&void 0!==d?d:null,balanceTransferInterest:null!==(E=null===(R=e.balance_transfer_interest)||void 0===R?void 0:R.rate)&&void 0!==E?E:null,approvalLikelihood:g(e.approval_likelihood,C(e)),approvalLikelihoodScore:"number"===typeof e.approval_likelihood_raw?Math.min(e.approval_likelihood_raw,100):null},I(e.gift_cards)),{},{earningsDescription:Array.isArray(null===(m=e.descriptions)||void 0===m?void 0:m.rewards)?e.descriptions.rewards.map((function(e){return{rate:e.rate,types:e.categories,description:e.copy}})):[]},(null===e||void 0===e?void 0:e.eligibility)&&(null===e||void 0===e||null===(A=e.eligibility)||void 0===A?void 0:A.deposit)>=0&&{minimumDeposit:parseFloat(e.eligibility.deposit)}),{},{annualFee:re,firstYearFee:te,isFirstYearFeeWaived:!(!re||te),bestUsedFor:null===(_=e.descriptions)||void 0===_||null===(b=_.best_used_for)||void 0===b?void 0:b.trim(),description:null===(Z=e.descriptions)||void 0===Z||null===(O=Z.badge)||void 0===O?void 0:O.trim(),welcomeBonusDescription:null===(S=e.descriptions)||void 0===S||null===(U=S.badge_bonus)||void 0===U?void 0:U.trim(),anniversaryBonusDescription:null===(Y=e.descriptions)||void 0===Y||null===(G=Y.badge_anniversary_bonus)||void 0===G?void 0:G.trim(),anniversaryBonus:{points:null===(j=e.calculated_rewards)||void 0===j||null===(k=j.bonuses)||void 0===k?void 0:k.anniversary.points,value:null===(H=e.calculated_rewards)||void 0===H||null===(x=H.bonuses)||void 0===x?void 0:x.anniversary.value},cardTypes:C(e),rewardTypes:N(e),userCategory:e.user_category},ie),{},{subsequentYearPointsInDollars:Math.floor(ie.totalSubsequentYearPoints*ie.averagePointValue)},D(null===e||void 0===e||null===(V=e.calculated_rewards)||void 0===V?void 0:V.bonuses)),P(e)),{},{minimumCreditScore:null!==(K=null===(W=y(e.eligibility.credit_score.public))||void 0===W?void 0:W.min)&&void 0!==K?K:null,minimumIncome:e.eligibility.income.minimum.public||0,bonusDescriptionMarkup:e.descriptions.bonus},h({pointRedemption:e.point_redemption,features:e.features,chosenFeatures:ee})),w({apiFeaturesList:e.features_table})),M({purchaseInterest:oe,lowInterestMonthlyBalance:$})),B({balanceTransferFee:null===(q=e.fees)||void 0===q?void 0:q.balance_transfer,balanceTransferAmount:J,balanceTransferInterestPromotional:e.balance_transfer_interest.promotional})),F({purchaseInterest:oe,securedMonthlyBalance:Q}))}},29362:function(e,n,r){r.d(n,{k:function(){return s}});var t=r(95235),o=r(8878),i=r.n(o);function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function l(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?a(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var u={BASE:{en:"/credit-cards",fr:"/cartes-de-credit"},REWARDS_CALCULATOR:{en:"/rewards-calculator",fr:"/calculatrice-de-recompenses"},SCENARIO_CHOOSER:{en:"/scenario-chooser",fr:"/selecteur-de-scenario"},CARDFINDER:{en:"/cardfinder",fr:"/chercheur-des-cartes"},ELIGIBILITY_CHECKER:{en:"/cardfinder/eligibility-checker",fr:"/chercheur-des-cartes/controleur-d-eligibilite"},APPLY:{en:"/apply",fr:"/demande"},DETAILS:{en:"/card",fr:"/carte"},CARD_COMPARE:{en:"/card-compare",fr:"/comparaison-cartes"}},s=Object.keys(u).reduce((function(e,n){return l(l({},e),{},(0,t.Z)({},n,n))}),{});n.Z=function(e){var n,r,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.BASE,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(e=null===(n=e)||void 0===n?void 0:n.slice(0,2),![i().ENGLISH,i().FRENCH].includes(e))throw new RangeError("getCreditCardURL: unrecognized language code \u201c".concat(e,"\u201d"));var a=null===(r=u[t])||void 0===r?void 0:r[e];if(!a)throw new RangeError("getCreditCardURL: unrecognized CC slug \u201c".concat(t,"\u201d \u2022 ").concat(typeof t));return o=(o&&"/"!==o.slice(0,1)?"/":"")+o,(t!==s.BASE?u[s.BASE][e]:"")+a+o}},88241:function(e,n,r){var t=r(34712),o={travel:t.Z.TRAVEL,"cash-back":t.Z.CASH_BACK,"low-interest":t.Z.LOW_INTEREST,"balance-transfer":t.Z.BALANCE_TRANSFER,"store-credit":t.Z.STORE_CREDIT,secured:t.Z.SECURED,all:t.Z.ANY_REWARDS};n.Z=function(e){return o[e]}},25872:function(e,n,r){var t=r(95235),o=r(77070);n.Z=function(e){var n,r;return(0,o.Z)(null===(n=e.ratehub_review)||void 0===n?void 0:n.content,[{key:"creditCards",data:(0,t.Z)({},null===(r=e.ids)||void 0===r?void 0:r.primary,e)},{key:"credit-card",data:e}])}},84207:function(e,n){n.Z={UNKNOWN:"unknown",POOR:"poor",FAIR:"fair",GOOD:"good"}},40419:function(e,n){n.Z={EXCELLENT:"5-excellent",VERY_GOOD:"4-very-good",GOOD:"3-good",FAIR:"2-fair",POOR:"1-poor",NONE:"0-no"}},553:function(e,n,r){var t=r(68882);n.Z={monthlySpendingAverage:t.K,monthlySpending:t.Z,lowInterestMonthlyBalance:500,balanceTransferAmount:3900,securedMonthlyBalance:500,income:8e4,noAnnualFee:!1,requiresGiftOffer:!1,features:[]}},48110:function(e,n,r){var t=r(48777);n.Z={TRAVEL:t.Z.TRAVEL,CASH_BACK:t.Z.CASH_BACK,STORE_CREDIT:t.Z.STORE_CREDIT,ANY_REWARDS:t.Z.ALL,LOW_INTEREST:"low-interest",BALANCE_TRANSFER:"balance-transfer",SECURED:"secured"}},48777:function(e,n){n.Z={ALL:"all",CASH_BACK:"cash-back",STORE_CREDIT:"store-credit",TRAVEL:"travel"}},91665:function(e,n){n.Z={REWARDS:"rewards",LOW_INTEREST:"low-interest",BALANCE_TRANSFER:"balance-transfer",SECURED:"secured"}},86550:function(e,n){n.Z={GROCERIES:"groceries",GAS:"gas",RESTAURANTS:"restaurants",BILLS:"bills",TRAVEL:"travel",ENTERTAINMENT:"entertainment",PHARMACY:"pharmacy",OTHER:"other"}},68882:function(e,n,r){r.d(n,{K:function(){return l}});var t,o=r(95235),i=r(86550),a=(t={},(0,o.Z)(t,i.Z.GROCERIES,341),(0,o.Z)(t,i.Z.GAS,255),(0,o.Z)(t,i.Z.RESTAURANTS,355),(0,o.Z)(t,i.Z.BILLS,284),(0,o.Z)(t,i.Z.TRAVEL,142),(0,o.Z)(t,i.Z.ENTERTAINMENT,85),(0,o.Z)(t,i.Z.PHARMACY,28),(0,o.Z)(t,i.Z.OTHER,710),t),l=Object.values(a).reduce((function(e,n){return e+n}));n.Z=a},69774:function(e,n){n.Z={BAGGAGE_DELAY:"Baggage delay",BAGGAGE_LOSS:"Baggage loss",CAR_RENTAL:"Car rental collision / loss damage waiver",EXTENDED_WARRANTY:"Extended warranty",FLIGHT_DELAY:"Flight delay",LOUNGE_ACCESS:"Lounge access",MOBILE_INSURANCE:"Mobile insurance",NO_FOREX:"No foreign exchange fees",PRICE_PROTECTION:"Price protection",PURCHASE_ASSURANCE:"Purchase assurance",TRAVEL_ACCIDENT:"Travel accident insurance",TRAVEL_EMERGENCY:"Travel emergency medical",TRIP_CANCELLATION:"Trip cancellation",TRIP_INTERRUPTION:"Trip interruption",HOTEL_MOTEL_BURGLARY:"Hotel/motel burglary"}},26940:function(e,n){n.Z={BUSINESS:"business",PERSONAL:"personal",STUDENT:"student"}}}]);
//# sourceMappingURL=8235-1221ae357035ccfb.js.map