1"use strict";(self.webpackChunkupgradedpoints_ts=self.webpackChunkupgradedpoints_ts||[]).push([[521,9056,2959,8202,9767,6991],{45895:function(e,t,a){a.d(t,{A:function(){return l.A}});var l=a(87594)},92473:function(e,t,a){a.r(t),a.d(t,{default:function(){return H}});var l=a(96540),o=a(39708),n=a(63464),r=a(75806),i=a(99470),s=a(55284),d=a(49987),u=(a(45895),a(75616)),p=a(80795),c=a(62799),m=a(74422);var g=e=>{let{data:t,location:a}=e;const{page:{content:o="",cardMentionsAll:n,nonAffiliateAll:r,databaseId:i,title:s}}=t,g=(0,m.sQ)(t);return l.createElement(c.A,{category:p.yE+", Membership",title:s||p.JJ,location:a,postType:p.i1.PAGE,wpTemplate:g.templateName},(0,d._I)(o||""),l.createElement(u.A,{parentId:i,cardMentions:n,nonAffiliate:r}))};var v=a(81534),P=a(1816),f=a(76223),h=a(601),y=a(59510),A=a(17962);const E=o.J1` 2 fragment PostData on Post { 3 ... on Post { 4 id 5 databaseId 6 uri 7 link 8 cardDataJsonPreview 9 author { 10 node { 11 databaseId 12 postsCount 13 description 14 name 15 uri 16 avatar { 17 url 18 } 19 userBios { 20 upgpUserShortBio 21 } 22 userSocials { 23 upgpUserEmail 24 upgpUserSocialLinks { 25 upgpUserSocialLinksName 26 upgpUserSocialLinksUrl 27 } 28 } 29 upgpAuthorDetails { 30 upgpEditorCustomExcerpt 31 upgpCountriesVisited 32 upgpUsStatesVisited 33 upgpEditorJobTitle 34 upgpAuthorCountEditedPosts 35 } 36 } 37 } 38 featuredImage { 39 node { 40 sourceUrl 41 } 42 } 43 featuredImageOptions { 44 imageHorizontalPosition 45 imageVerticalPosition 46 } 47 featureImageCredit { 48 upgpPostFeaturedImageCreditUrl 49 upgpPostFeaturedImageCreditValue 50 } 51 title 52 categories { 53 nodes { 54 name 55 uri 56 slug 57 } 58 } 59 commentCount 60 commentStatus 61 comments { 62 nodes { 63 id 64 parentId 65 author { 66 node { 67 url 68 name 69 email 70 avatar { 71 url 72 } 73 } 74 } 75 date 76 content 77 } 78 } 79 modifiedGmt 80 dateGmt 81 content 82 cardMentionsAll 83 nonAffiliateAll 84 fieldsForPosts { 85 upgpPostFaqs { 86 ... on Post_Fieldsforposts_UpgpPostFaqs_UpgpPostFaq { 87 upgpPostAnswer 88 upgpPostQuestion 89 } 90 } 91 upgpPostRelatedPosts { 92 fieldGroupName 93 upgpGbPostRelatedPostsPostPage { 94 ... on Post { 95 id 96 title 97 uri 98 featuredImage { 99 node { 100 sourceUrl 101 } 102 } 103 } 104 } 105 } 106 upgpUseTrustDropdown 107 upgpPostToggleElements 108 upgpOverrideDefaultSidebar 109 upgpEnableOnThisPostTheMobileAd 110 upgpCategorySidebarBlocks { 111 upgpCategorySibebarBlockName 112 upgpCategorySibebarBlockLinks { 113 customLinkTitle 114 link { 115 ... on Post { 116 databaseId 117 title 118 uri 119 } 120 } 121 } 122 } 123 } 124 postEditorSettings { 125 upgpPostEditor { 126 description 127 databaseId 128 postsCount 129 username 130 name 131 uri 132 avatar { 133 url 134 } 135 userBios { 136 upgpUserShortBio 137 } 138 upgpAuthorDetails { 139 upgpEditorCustomExcerpt 140 upgpCountriesVisited 141 upgpUsStatesVisited 142 upgpEditorJobTitle 143 upgpAuthorCountEditedPosts 144 } 145 } 146 upgpPostEditorTwo { 147 description 148 databaseId 149 postsCount 150 username 151 name 152 uri 153 avatar { 154 url 155 } 156 userBios { 157 upgpUserShortBio 158 } 159 upgpAuthorDetails { 160 upgpEditorCustomExcerpt 161 upgpCountriesVisited 162 upgpUsStatesVisited 163 upgpEditorJobTitle 164 upgpAuthorCountEditedPosts 165 } 166 } 167 secondaryPostAuthor { 168 description 169 databaseId 170 username 171 name 172 uri 173 avatar { 174 url 175 } 176 userBios { 177 upgpUserShortBio 178 } 179 upgpAuthorDetails { 180 upgpEditorCustomExcerpt 181 upgpCountriesVisited 182 upgpUsStatesVisited 183 upgpEditorJobTitle 184 } 185 } 186 } 187 seo { 188 title 189 metaRobotsNofollow 190 metaRobotsNoindex 191 canonical 192 metaDesc 193 opengraphDescription 194 opengraphImage { 195 sourceUrl 196 mediaType 197 mediaDetails { 198 height 199 width 200 } 201 } 202 opengraphType 203 opengraphTitle 204 opengraphUrl 205 opengraphSiteName 206 opengraphPublisher 207 opengraphModifiedTime 208 readingTime 209 schema { 210 raw 211 } 212 } 213 tags { 214 nodes { 215 name 216 slug 217 databaseId 218 } 219 } 220 template { 221 templateName 222 ... on Template_HotelLoyaltyProgram { 223 templateName 224 hotelLoyaltyProgramDetails { 225 upgpHotelLoyaltyProgramEarnPointsmiles 226 upgpHotelLoyaltyProgramBrands 227 upgpHotelLoyaltyProgramAwardChartLink 228 upgpHotelLoyaltyProgramName 229 upgpHotelLoyaltyProgramPointsAreWorth 230 upgpHotelLoyaltyProgramRedeemPointsmiles 231 upgpHotelLoyaltyProgramReview 232 upgpHotelLoyaltyProgramSummaryTableTitle 233 upgpHotelLoyaltyProgramWebsite 234 } 235 } 236 ... on Template_AirlineLoyaltyProgram { 237 templateName 238 airlineLoyaltyProgramDetails { 239 upgpAirlineLoyaltyProgramAirlineAlliance 240 upgpAirlineLoyaltyProgramFees 241 upgpAirlineLoyaltyProgramEarnPointsmiles 242 upgpAirlineLoyaltyProgramHomeCountry 243 upgpAirlineLoyaltyProgramMajorHubs 244 upgpAirlineLoyaltyProgramName 245 upgpAirlineLoyaltyProgramPointsAreWorth 246 upgpAirlineLoyaltyProgramRedeemPointsmiles 247 upgpAirlineLoyaltyProgramReview 248 upgpAirlineLoyaltyProgramSignatureLounge 249 upgpAirlineLoyaltyProgramSummaryTableTitle 250 upgpAirlineLoyaltyProgramWebsite 251 upgpAirlineLoyaltyProgramAwardChartLink 252 } 253 } 254 } 255 fieldsForCreditCards { 256 upgpCreditCardCons 257 upgpCreditCardPros 258 upgpCreditCardQuickSummary 259 upgpCreditCardImageGroup { 260 upgpCreditCardImage { 261 sourceUrl 262 } 263 } 264 upgpCreditCardShortReview 265 upgpCreditCardUpRating 266 } 267 } 268 } 269`,b=o.J1` 270 fragment PageData on Page { 271 ... on Page { 272 databaseId 273 title 274 content 275 featuredImage { 276 node { 277 sourceUrl 278 } 279 } 280 featureImageCredit { 281 upgpPostFeaturedImageCreditUrl 282 upgpPostFeaturedImageCreditValue 283 } 284 uri 285 commentCount 286 commentStatus 287 comments { 288 nodes { 289 id 290 parentId 291 author { 292 node { 293 url 294 name 295 email 296 avatar { 297 url 298 } 299 } 300 } 301 date 302 content 303 } 304 } 305 modifiedGmt 306 dateGmt 307 author { 308 node { 309 databaseId 310 description 311 postsCount 312 name 313 uri 314 avatar { 315 url 316 } 317 userBios { 318 upgpUserShortBio 319 } 320 userSocials { 321 upgpUserEmail 322 upgpUserSocialLinks { 323 upgpUserSocialLinksName
324 upgpUserSocialLinksUrl 325 } 326 } 327 upgpAuthorDetails { 328 upgpEditorCustomExcerpt 329 upgpCountriesVisited 330 upgpUsStatesVisited 331 upgpEditorJobTitle 332 upgpAuthorCountEditedPosts 333 } 334 } 335 } 336 cardMentionsAll 337 nonAffiliateAll 338 fieldsForPosts { 339 upgpPostFaqs { 340 ... on Page_Fieldsforposts_UpgpPostFaqs_UpgpPostFaq { 341 upgpPostAnswer 342 upgpPostQuestion 343 } 344 } 345 upgpPostRelatedPosts { 346 fieldGroupName 347 upgpGbPostRelatedPostsPostPage { 348 ... on Post { 349 id 350 title 351 uri 352 featuredImage { 353 node { 354 sourceUrl 355 } 356 } 357 } 358 } 359 } 360 upgpUseTrustDropdown 361 upgpPostToggleElements 362 upgpOverrideDefaultSidebar 363 upgpEnableOnThisPostTheMobileAd 364 upgpCategorySidebarBlocks { 365 upgpCategorySibebarBlockName 366 upgpCategorySibebarBlockLinks { 367 customLinkTitle 368 link { 369 ... on Post { 370 databaseId 371 title 372 uri 373 } 374 } 375 } 376 } 377 } 378 seo { 379 title 380 metaRobotsNofollow 381 metaRobotsNoindex 382 canonical 383 metaDesc 384 opengraphDescription 385 opengraphImage { 386 sourceUrl 387 mediaType 388 mediaDetails { 389 height 390 width 391 } 392 } 393 opengraphType 394 opengraphTitle 395 opengraphUrl 396 opengraphSiteName 397 opengraphPublisher 398 opengraphModifiedTime 399 readingTime 400 schema { 401 raw 402 } 403 } 404 template { 405 templateName 406 } 407 } 408 } 409`,C=o.J1` 410 fragment PaidLanderData on PaidLander { 411 ... on PaidLander { 412 databaseId 413 title 414 content 415 contentTypeName 416 featuredImage { 417 node { 418 sourceUrl 419 } 420 } 421 uri 422 modifiedGmt 423 dateGmt 424 cardMentionsAll 425 nonAffiliateAll 426 fieldsForPosts { 427 upgpUseTrustDropdown 428 upgpPostToggleElements 429 upgpEnableOnThisPostTheMobileAd 430 } 431 seo { 432 title 433 metaRobotsNofollow 434 metaRobotsNoindex 435 canonical 436 metaDesc 437 opengraphDescription 438 opengraphImage { 439 sourceUrl 440 mediaType 441 mediaDetails { 442 height 443 width 444 } 445 } 446 opengraphType 447 opengraphTitle 448 opengraphUrl 449 opengraphSiteName 450 opengraphPublisher 451 opengraphModifiedTime 452 readingTime 453 schema { 454 raw 455 } 456 } 457 paidLanderAttributes { 458 upgpPaidLanderTemplate 459 upgpPaidLanderUseForTrademarkBiddingCampaign 460 } 461 } 462 } 463`;var I=a(71283);var T=e=>{let{data:t,children:a}=e;return(0,l.useEffect)((()=>{const e=setTimeout((()=>{if(t){(document.querySelectorAll(".tooltipIcon")||[]).forEach((e=>{e.addEventListener("click",(e=>{const t=e.currentTarget.nextSibling;t&&(t.style.display&&"block"===t.style.display?t.style.display="none":t.style.display="block")}))}))}}),500);return()=>clearTimeout(e)}),[t]),l.createElement("div",{className:"upgp-preview-page"},a)},L=a(93564),N=a(25232),w=a(23921),D=a(54551),S=a(28430);var U=e=>{let{cardData:t}=e;const a=(0,S.n)(t,{isTbc:!1,needToAddSource:!1}),{goLink:o,...n}=a;return l.createElement("div",{className:"full-width-template full-width-template-with-sidebar compliance-mocks-page"},o?l.createElement(D.A,Object.assign({},n,{handleIsStickyActive:()=>{},alwaysShow:!0,positionRelative:!0})):l.createElement("div",null,"No go link found for Card Sticky"),l.createElement("div",{className:"site-content with-sidebar"},l.createElement("div",{className:"main main-with-sidebar"},t?l.createElement("div",{className:"article"},l.createElement("section",null,(0,N.Ay)((0,w.renderCardTableContainer)(t,1)||"Failed to render standard card table")),l.createElement("section",null,(0,N.Ay)((0,w.renderCardTableContainer)(t,1,void 0,void 0,void 0,void 0,void 0,void 0,"lite")||"Failed to render lite card table"))):"Failed to render card tables: no card data"),l.createElement("aside",{className:"sidebar"},l.createElement("div",{className:"sidebar-container"},l.createElement("div",{className:"siteSidebar"},l.createElement("div",{className:"top-partner-offers"},l.createElement("div",{className:"offer-list"},l.createElement("div",{className:"offer-list-item"},l.createElement("div",{className:"top-partner-offer"},t?(0,N.Ay)((0,w.renderPartnerOffers)(t)||"Failed to render partner offers"):"Failed to render partner offers: no card data")))))))))};var k=e=>{let{message:t}=e;return l.createElement("h2",null,t)};var H=()=>{const{0:e,1:t}=(0,l.useState)(null),{0:a,1:d}=(0,l.useState)(null),{0:u,1:p}=(0,l.useState)(!1);if((0,l.useEffect)((()=>{const e=new URLSearchParams(window.location.search);p("true"===e.get("mock"));const a=e.get("p"),l=e.get("token")||"";var n;(0,L.I)()&&window.localStorage.setItem("token",l),A.A.query({query:o.J1` 464 ${E} 465 ${b} 466 ${C} 467 query { 468 contentNode(id: ${a}, idType: DATABASE_ID) { 469 ...PostData 470 ...PageData 471 ...PaidLanderData 472 } 473 sidebar: upOption(id: "cG9zdDo0NDExODk=") { 474 ${n=!0,void 0===n&&(n=!1),`\n defaultSidebar {\n upgpCategorySidebarBlocks {\n upgpCategorySibebarBlockName\n upgpCategorySibebarBlockLinks {\n customLinkTitle\n link {\n ... on ${n?"Post":"WpPost"} {\n databaseId\n title\n uri\n }\n }\n }\n upgpCategorySibebarBlockCategory {\n slug\n name\n }\n upgpCategorySibebarBlockTag {\n databaseId\n name\n slug\n }\n }\n }\n overrideSidebar {\n sidebars {\n upgpSidebarOverrideType\n upgpSidebarOverridePostList {\n ... on ${n?"Post":"WpPost"} {\n databaseId\n slug\n }\n }\n upgpSidebarOverrideTagList {\n name\n databaseId\n slug\n }\n upgpSidebarOverrideCatList {\n name\n slug\n }\n upgpSidebarOverrideBlocks {\n upgpCategorySibebarBlockName\n upgpCategorySibebarBlockLinks {\n customLinkTitle\n link {\n ... on ${n?"Post":"WpPost"} {\n databaseId\n uri\n title\n }\n ... on ${n?"Page":"WpPage"} {\n databaseId\n uri\n title\n }\n }\n }\n }\n }\n }\n`} 475 } 476 } 477 `}).then((e=>t(e.data))).catch((e=>{console.log(e),d("Your session has expired. Please re-generate the preview of this post.")}))}),[]),a)return l.createElement(k,{message:a});const c=null==e?void 0:e.contentNode;if(!c)return l.createElement("span",{className:"loadingAnimation"},l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"114.847",height:"66.317"},l.createElement("g",{fill:"#fff"},l.createElement("path",{d:"m55.865 19.693-.06.129h.056Z"}),l.createElement("path",{d:"m60.071 0-6.2 13.388-.06.129-5.646 12.172h5.512v16.669c0 7.487-2.221 13.381-7.185 17.6S35.034 66.32 27.055 66.32q-12.093 0-19.59-6.362T0 42.4V0h15.217v42.4c0 4.028 1.043 7.1 3.151 9.158s4.981 3.1 8.719 3.1c3.672 0 6.554-1.016 8.61-3.071s3.071-5.1 3.071-9.184V0Z"}),l.createElement("path",{d:"M108.024 5.933Q101.198 0 89.57 0h-29.5l4.549 9.825 1.71 3.692 5.645 12.172h-5.545v39.685h13.353V42.949h9.788c7.76 0 13.9-1.946 18.454-5.9s6.823-9.1 6.823-15.546a19.646 19.646 0 0 0-6.823-15.57ZM98.81 28.608c-1.73 1.81-4.25 2.716-7.54 2.716h-9.785V11.691h9.788q4.981 0 7.567 2.8a10 10 0 0 1 2.58 7.129 9.769 9.769 0 0 1-2.61 6.988Z"}))));const m=null==c?void 0:c.__typename;if("Post"===m){var N,w;if(u){const e=c,t="No card data found";if(!e.cardDataJsonPreview)return l.createElement(k,{message:t});try{const a=JSON.parse(e.cardDataJsonPreview);return a?l.createElement(U,{cardData:a}):l.createElement(k,{message:t})}catch(H){return l.createElement(k,{message:"Invalid card data format"})}}const t={Template_AirlineLoyaltyProgram:r.default,Template_HotelLoyaltyProgram:i.default,Template_CreditCardReview:s.default},a=null==e||null===(N=e.contentNode)||void 0===N||null===(w=N.template)||void 0===w?void 0:w.__typename,o="string"==typeof a&&t[a]||n.default,{contentNode:d,sidebar:p}=e;return l.createElement(T,{data:e},l.createElement(o,{data:{post:d,isPreview:!0},pageContext:{sidebar:p}}))}if("Page"===m){var D,S;const t={Template_Membership:g,Template_NoSidebar:v.default,Template_FooterAndHeaderOnly:P.default,DefaultTemplate:I.default},a=null==e||null===(D=e.contentNode)||void 0===D||null===(S=D.template)||void 0===S?void 0:S.__typename,o="string"==typeof a&&t[a]||I.default,{contentNode:n,sidebar:r}=e;return l.createElement(T,{data:e},l.createElement(o,{data:{page:n},pageContext:{sidebar:r}}))}if("PaidLander"===m){const t={Default:f.default,FullWidth:h.default,WithTopNav:y.default}[e.contentNode.paidLanderAttributes.upgpPaidLanderTemplate||"Default"],{contentNode:a}=e;return l.createElement(T,{data:e},l.createElement(t,{data:{page:a}}))}return l.createElement(k,{message:"Unknown content type"})}},1816:function(e,t,a){a.r(t),a.d(t,{Head:function(){return u}});var l=a(96540),o=a(49987),n=a(45895),r=a(14164),i=a(74422),s=a(80795),d=a(62799);t.default=e=>{let{data:t,location:a}=e;const{page:{content:n="",title:u}}=t,p=(0,i.sQ)(t);return l.createElement(d.A,{category:s.yE,title:u||s.JJ,location:a,postType:s.i1.PAGE,wpTemplate:p.templateName},l.createElement(r.A,{context:p}),(0,o._I)(n||""))};const u=e=>{let{data:t}=e;const{title:a,seo:o}=t.page,r="Home"===a;return l.createElement(n.A,{wpSeo:o,needToAddOrgSchema:r})}},81534:function(e,t,a){a.r(t),a.d(t,{Head:function(){return v}});var l=a(96540),o=a(49987),n=a(33842),r=a(45895),i=a(85128),s=a(14164),d=a(75616),u=a(74422),p=a(7651),c=a(25784),m=a(80795),g=a(62799);t.default=e=>{let{data:t,location:a}=e;const{page:{content:r="",title:v,cardMentionsAll:P,nonAffiliateAll:f,databaseId:h}}=t,y=(0,u.sQ)(t),A=(0,p.$)(t);return(0,l.useEffect)((()=>{document.querySelectorAll(".article .infogram-embed").length>0&&(0,c.Z)()}),[]),l.createElement(g.A,{category:m.yE,title:v||m.JJ,location:a,postId:h,postType:m.i1.PAGE,wpTemplate:y.templateName},l.createElement("div",{className:"template_classicNoSidebar"},l.createElement("div",{className:"credit-card-template-header"},l.createElement(s.A,{context:y}),l.createElement("div",{className:"container"},l.createElement(n.A,{title:v||"",featuredImage:null}))),l.createElement("div",{className:"container"},!A&&l.createElement(i.A,null),l.createElement("div",{className:"article"},(0,o._I)(r||"","","No Sidebar"),l.createElement(d.A,{parentId:h,cardMentions:P,
477nonAffiliate:f})))))};const v=e=>{let{data:t}=e;const{title:a,seo:o}=t.page;return l.createElement(l.Fragment,null,l.createElement(r.A,{title:a||"",wpSeo:o}))}},71283:function(e,t,a){a.r(t),a.d(t,{Head:function(){return g}});var l=a(96540),o=a(49987),n=a(45895),r=a(74422),i=a(4338),s=a(82098),d=a(42186),u=a(80795),p=a(62799),c=a(14164),m=a(11702);t.default=e=>{var t,a,n;let{data:g,pageContext:v,location:P}=e;const{page:{content:f="",title:h,author:y,databaseId:A,cardMentionsAll:E,nonAffiliateAll:b,fieldsForPosts:C,featuredImage:I,modifiedGmt:T,dateGmt:L,commentCount:N,commentStatus:w,comments:D,uri:S,postDisclosures:U}}=g,k=null==v?void 0:v.sidebar,H=N||0,M=(0,s.v)(D,A),_=null!=C&&C.upgpPostToggleElements?null==C?void 0:C.upgpPostToggleElements:[],F=null!=I&&null!==(t=I.node)&&void 0!==t&&t.sourceUrl?{src:I.node.sourceUrl,alt:h||""}:null,R=(0,r.gY)(void 0,S,F),{articleContent:x}=(0,o.jj)(f||"","/TE/",R),O=(0,r.Gh)(null==y?void 0:y.node),B=(0,r.k6)(null==C?void 0:C.upgpPostFaqs),J=(0,r.x8)(null==C?void 0:C.upgpPostRelatedPosts),q=null!==(a=null==C?void 0:C.upgpOverrideDefaultSidebar)&&void 0!==a&&a,W=null==C?void 0:C.upgpCategorySidebarBlocks,G=null==C?void 0:C.upgpUseTrustDropdown,j=(0,r.sQ)(g),V={postType:u.i1.PAGE,wpTemplate:j.templateName},$=(0,m.gl)(null!==(n=null==U?void 0:U.upgpPostDisclosures)&&void 0!==n?n:null);return"/testimonials/"===S?l.createElement(p.A,Object.assign({category:u.yE,title:h||u.JJ,location:P},V),l.createElement("main",null,l.createElement(d.A,{title:h||""}),l.createElement("div",{className:"container"},(0,o._I)(f||"")))):"/home/"!==S&&"/"!==S?l.createElement(p.A,Object.assign({category:u.yE,title:h||u.JJ,location:P},V),l.createElement(c.A,{context:j}),l.createElement(i.A,{articleHeader:{title:h||"",author:O,featuredImage:F,dateModified:T||"",datePublished:L||""},articleContent:x,template:R,sidebarData:{articleId:A,sidebar:k,categories:[],overrideSidebarPost:q,sidebarPost:W},authorInfo:{authorName:O.name,content:O.bio||"",link:O.url,socials:O.socials,thumbnail:{src:O.imageUrl,alt:O.imageAlt}},cardMentions:E,nonAffiliate:b,postDisclosures:$,faqs:{faqs:B},pageId:A,comments:{total:H,comments:M,postDatabaseId:A,commentsClosed:"closed"===w},weRecommendCard:null!==(Q=null==v?void 0:v.specialOffer)&&void 0!==Q?Q:null,relatedPosts:{relatedPosts:J},toggleElements:_,showTrustDropdown:G||!1,context:{databaseId:(null==g||null===(Z=g.page)||void 0===Z?void 0:Z.databaseId)||0,tags:null,link:(null==g||null===(z=g.page)||void 0===z?void 0:z.uri)||"",categories:null,templateName:(null==g||null===(Y=g.page)||void 0===Y||null===(X=Y.template)||void 0===X?void 0:X.templateName)||"",displayMobileAd:(null==g||null===(K=g.page)||void 0===K||null===(ee=K.fieldsForPosts)||void 0===ee?void 0:ee.upgpEnableOnThisPostTheMobileAd)||null}})):l.createElement(p.A,Object.assign({category:u.yE,title:h||u.JJ,location:P,postId:A},V),l.createElement(c.A,{context:j}),(0,o._I)(f||""));var Q,Z,z,Y,X,K,ee};const g=e=>{let{data:t}=e;const{seo:a}=t.page;return l.createElement(l.Fragment,null,l.createElement(n.A,{wpSeo:a}))}},76223:function(e,t,a){a.r(t),a.d(t,{Head:function(){return b}});var l=a(96540),o=a(25784),n=a(49987),r=a(33842),i=a(45895),s=a(85128),d=a(80795),u=a(42680),p=a(14164),c=a(75616),m=a(74422),g=a(99210),v=a(7651),P=a(62799),f=a(37376),h=a(32081),y=a(11702),A=a(23921),E=a(69944);t.default=e=>{var t,a,i;let{data:b,location:C}=e;const{page:{content:I="",title:T,featuredImage:L,cardMentionsAll:N,nonAffiliateAll:w,databaseId:D,postDisclosures:S}}=b,U=(0,h.A)(),k=null!==(t=null==U?void 0:U.allUpgpDisclosures)&&void 0!==t?t:[],H=(0,m.sQ)(b),M=(0,v.$)(b),_="Paid Landing Page",{articleContent:F}=(0,n.jj)(I||"","/TE/",_);(0,l.useEffect)((()=>{document.querySelectorAll(".article .infogram-embed").length>0&&(0,o.Z)()}),[]);const R=null!=L&&null!==(a=L.node)&&void 0!==a&&a.sourceUrl?{src:(0,m.YT)(L.node.sourceUrl)||"",alt:T||""}:null,x=[{media:u.LARGE_TAB_MIN_WIDTH_MQ,options:{width:900}},{media:u.MEDIUM_TAB_MIN_WIDTH_MQ,options:{width:740}},{media:u.SMALL_TAB_MIN_WIDTH_MQ,options:{width:620}}],O=(0,y.gl)(null!==(i=null==S?void 0:S.upgpPostDisclosures)&&void 0!==i?i:null),B=null==N?void 0:N.filter(g.Et);return l.createElement(P.A,{category:"Landing Page",title:T||d.JJ,location:C,postId:D,postType:d.i1.PAID_LANDER,wpTemplate:_},l.createElement("article",{className:"template_salesLander"},l.createElement(p.A,{context:H}),l.createElement("div",{className:"credit-card-template-header"},l.createElement("div",{className:"container"},l.createElement(r.A,{title:T||""}))),l.createElement("div",{className:"container"},R&&l.createElement("figure",{className:"template-header__featured-image"},l.createElement("picture",null,l.createElement(A.ResponsiveImage,{image:{...R,options:d.NL,src:R.src||"",alt:R.alt||""},sources:x}
477))),!M&&l.createElement(s.A,null),!(null==B||!B.length)&&l.createElement(E.A,{cardMentions:B}),l.createElement("div",{className:"article"},F,l.createElement(c.A,{parentId:D,cardMentions:N,nonAffiliate:w})),O&&l.createElement(f.A,{postDisclosures:O,allUpgpDisclosures:k}))))};const b=e=>{let{data:t}=e;const{title:a,seo:o}=t.page;return l.createElement(l.Fragment,null,l.createElement(i.A,{title:a||"",wpSeo:o}))}},601:function(e,t,a){a.r(t),a.d(t,{Head:function(){return b}});var l=a(96540),o=a(49987),n=a(33842),r=a(45895),i=a(85128),s=a(42680),d=a(80795),u=a(14164),p=a(75616),c=a(74422),m=a(99210),g=a(7651),v=a(25784),P=a(62799),f=a(37376),h=a(32081),y=a(11702),A=a(23921),E=a(69944);t.default=e=>{var t,a,r;let{data:b,location:C}=e;const{page:{content:I="",title:T,featuredImage:L,cardMentionsAll:N,nonAffiliateAll:w,databaseId:D,postDisclosures:S}}=b,U=(0,h.A)(),k=null!==(t=null==U?void 0:U.allUpgpDisclosures)&&void 0!==t?t:[],H=null!=L&&null!==(a=L.node)&&void 0!==a&&a.sourceUrl?{src:L.node.sourceUrl,alt:T||""}:null,M=[{media:s.MED_DESKTOP_MIN_WIDTH_MQ,options:{width:1420,height:650}},{media:s.SMALL_DESKTOP_MIN_WIDTH_MQ,options:{width:1260,height:650}},{media:s.LARGE_TAB_MIN_WIDTH_MQ,options:{width:1e3,height:650}},{media:s.MEDIUM_TAB_MIN_WIDTH_MQ,options:{width:740,height:463}},{media:s.SMALL_TAB_MIN_WIDTH_MQ,options:{width:620,height:413}}],_="Paid Landing Page - Full Width",{articleContent:F}=(0,o.jj)(I||"","/TE/",_);(0,l.useEffect)((()=>{document.querySelectorAll(".article .infogram-embed").length>0&&(0,v.Z)()}),[]);const R=(0,c.sQ)(b),x=(0,g.$)(b),O=(0,y.gl)(null!==(r=null==S?void 0:S.upgpPostDisclosures)&&void 0!==r?r:null),B=null==N?void 0:N.filter(m.Et);return l.createElement(P.A,{category:"Landing Page",title:T||d.JJ,location:C,postId:D,postType:d.i1.PAID_LANDER,wpTemplate:_},l.createElement("div",{className:"template_paidLander"},l.createElement(u.A,{context:R}),l.createElement("div",{className:"credit-card-template-header"},l.createElement("div",{className:"container-full-width"},l.createElement(n.A,{title:T||""}))),l.createElement("div",{className:"container-full-width"},H&&l.createElement("figure",{className:"template-header__featured-image"},l.createElement(A.ResponsiveImage,{image:{...H,options:d.NL,src:(0,c.YT)(H.src||"")||"",alt:H.alt||""},sources:M})),!x&&l.createElement(i.A,null),!(null==B||!B.length)&&l.createElement(E.A,{cardMentions:B}),l.createElement("div",{className:"article"},F,l.createElement(p.A,{parentId:D,cardMentions:N,nonAffiliate:w})),O&&l.createElement(f.A,{postDisclosures:O,allUpgpDisclosures:k}))))};const b=e=>{let{data:t}=e;const{title:a,seo:o}=t.page;return l.createElement(l.Fragment,null,l.createElement(r.A,{title:a||"",wpSeo:o}))}},59510:function(e,t,a){a.r(t),a.d(t,{Head:function(){return A}});var l=a(96540),o=a(49987),n=a(33842),r=a(45895),i=a(85128),s=a(75616),d=a(14164),u=a(74422),p=a(99210),c=a(7651),m=a(25784),g=a(80795),v=a(62799),P=a(37376),f=a(32081),h=a(11702),y=a(69944);t.default=e=>{var t,a;let{data:r,location:A}=e;const{page:{content:E="",title:b,cardMentionsAll:C,nonAffiliateAll:I,databaseId:T,postDisclosures:L}}=r,N=(0,f.A)(),w=null!==(t=null==N?void 0:N.allUpgpDisclosures)&&void 0!==t?t:[],D="Clean Landing Page With Top Nav",{articleContent:S}=(0,o.jj)(E||"","/TE/",D),U=(0,u.sQ)(r),k=(0,c.$)(r),H=(0,h.gl)(null!==(a=null==L?void 0:L.upgpPostDisclosures)&&void 0!==a?a:null),M=null==C?void 0:C.filter(p.Et);return(0,l.useEffect)((()=>{document.querySelectorAll(".article .infogram-embed").length>0&&(0,m.Z)()}),[]),l.createElement(v.A,{category:"Landing Page",title:b||g.JJ,location:A,postId:T,postType:g.i1.PAID_LANDER,wpTemplate:D},l.createElement("div",{className:"template_landerWIthNav"},l.createElement(d.A,{context:U}),l.createElement("div",{className:"credit-card-template-header"},l.createElement("div",{className:"container"},l.createElement(n.A,{title:b||"",featuredImage:null}))),l.createElement("div",{className:"container"},!k&&l.createElement(i.A,null),!(null==M||!M.length)&&l.createElement(y.A,{cardMentions:M}),l.createElement("div",{className:"article"},S,l.createElement(s.A,{parentId:T,cardMentions:C,nonAffiliate:I})),H&&l.createElement(P.A,{postDisclosures:H,allUpgpDisclosures:w}))))};const A=e=>{let{data:t}=e;const{title:a,seo:o}=t.page;return l.createElement(l.Fragment,null,l.createElement(r.A,{title:a||"",wpSeo:o}))}},75806:function(e,t,a){a.r(t),a.d(t,{Head:function(){return g}});var l=a(54506),o=a(96540),n=a(49987),r=a(74422),i=a(82098),s=a(4338),d=a(45895),u=a(80795),p=a(62799),c=a(84465),m=a(11702);t.default=e=>{var t,a,d,g,v,P,f,h,y,A,E,b,C;let{data:I,pageContext:T,location:L}=e;const{post:{content:N="",author:w,title:D,categories:S,modifiedGmt:U,dateGmt:k,featuredImage:H,featureImageCredit:M,featuredImageOptions:_,commentCount:F,comments:R,commentStatus:x,template:O,cardMentionsAll:B,nonAffiliateAll:J,fieldsForPosts:q,databaseId:W,postEditorSettings:G,uri:j,postDisclosures:V}}=I,$=(null==I||null===(t=I.post)||void 0===t||null===(a=t.template)||void 0===a?void 0:a.templateName)||"",Q={postType:u.i1.POST,wpTemplate:$},Z="/TE/",z="Full Width Hero Image + Sidebar",{articleContent:Y,headings:X}=(0,n.jj)(N||"",Z,z),K=null==T?void 0:T.sidebar,ee=(0,r.Gh)(null==w?void 0:w.node),te=F||0,ae=(0,i.v)(R,W),le=(0,r.k6)(null==q?void 0:q.upgpPostFaqs),oe=(0,r.x8)(null==q?void 0:q.upgpPostRelatedPosts),ne=null!==(d=null==q?void 0:q.upgpOverrideDefaultSidebar)&&void 0!==d&&d,re=null==q?void 0:q.upgpCategorySidebarBlocks,ie=S?S.nodes:[],se=[],de=(0,r.sl)(null==w?void 0:w.node,G),ue=(0,r.Gh)(null==G?void 0:G.secondaryPostAuthor),pe=null==_?void 0:_.imageHorizontalPosition,ce=null==_?void 0:_.imageVerticalPosition,me=null!=H&&null!==(g=H.node)&&void 0!==g&&g.sourceUrl?{src:H.node.sourceUrl,alt:D||"",style:pe&&ce?{objectPosition:`${pe} ${ce}`}:void 0}:null,ge=(0,r.W_)(j||"#");if(O.airlineLoyaltyProgramDetails){const e=O.airlineLoyaltyProgramDetails;
477e.upgpAirlineLoyaltyProgramHomeCountry&&se.push({label:"Home Country",children:(0,n.yH)(e.upgpAirlineLoyaltyProgramHomeCountry,Z)}),e.upgpAirlineLoyaltyProgramWebsite&&se.push({label:"Airline Website",children:(0,n.yH)(e.upgpAirlineLoyaltyProgramWebsite,Z)}),e.upgpAirlineLoyaltyProgramName&&se.push({label:"Loyalty Program",children:(0,n.yH)(e.upgpAirlineLoyaltyProgramName,Z)}),e.upgpAirlineLoyaltyProgramMajorHubs&&se.push({label:"Major Hubs",children:(0,n.yH)(e.upgpAirlineLoyaltyProgramMajorHubs,Z)}),e.upgpAirlineLoyaltyProgramAirlineAllianc&&se.push({label:"Airline Alliance",children:(0,n.yH)(e.upgpAirlineLoyaltyProgramAirlineAllianc,Z)}),e.upgpAirlineLoyaltyProgramAwardChartLink&&se.push({label:"Award Chart Link",children:(0,n.yH)(e.upgpAirlineLoyaltyProgramAwardChartLink,Z)}),e.upgpAirlineLoyaltyProgramPointsAreWorth&&se.push({label:"Points Are Worth",children:(0,n.yH)(e.upgpAirlineLoyaltyProgramPointsAreWorth,Z)}),e.upgpAirlineLoyaltyProgramSignatureLounge&&se.push({label:"Signature Lounge",children:(0,n.yH)(e.upgpAirlineLoyaltyProgramSignatureLounge,Z)}),e.upgpAirlineLoyaltyProgramEarnPointsmiles&&se.push({label:"Earn Points/Miles",children:(0,n.yH)(e.upgpAirlineLoyaltyProgramEarnPointsmiles,Z)}),e.upgpAirlineLoyaltyProgramRedeemPointsmiles&&se.push({label:"Redeem Points/Miles",children:(0,n.yH)(e.upgpAirlineLoyaltyProgramRedeemPointsmiles,Z)}
477),e.upgpAirlineLoyaltyProgramReview&&se.push({label:"Airline Review",children:(0,n.yH)(e.upgpAirlineLoyaltyProgramReview,Z)}),e.upgpAirlineLoyaltyProgramFees&&se.push({label:"Airline Fee",children:(0,n.yH)(e.upgpAirlineLoyaltyProgramFees,Z)})}const ve=void 0!==(null==q||null===(v=q.upgpPostToggleElements)||void 0===v?void 0:v.length)?q.upgpPostToggleElements.map((e=>null!=e?e:"")):[],Pe=(0,m.gl)(null!==(P=null==V?void 0:V.upgpPostDisclosures)&&void 0!==P?P:null);return(0,o.useEffect)((()=>{var e;(0,c.o)("AirlineLoyaltyProgram",j||"unknown",[].concat((0,l.A)(H?[{fieldName:"featuredImage.node.sourceUrl",value:null===(e=H.node)||void 0===e?void 0:e.sourceUrl}]:[]),[{fieldName:"content",value:N},{fieldName:"title",value:D},{fieldName:"airlineLoyaltyProgramDetails",value:null==O?void 0:O.airlineLoyaltyProgramDetails}]))}),[]),o.createElement(p.A,Object.assign({category:"Travel, Airlines, Loyalty",title:D||u.JJ,location:L,postId:W},Q),o.createElement(s.A,{articleHeader:{author:ee,secondaryAuthor:ue,breadCrumbs:[{link:"/travel/airlines/",text:"Airline"},{link:"/travel/airlines/",text:"Rewards"}],dateModified:U||"",datePublished:k||"",title:D||"",featuredImage:me,tooltip:de},tableOfContents:{headings:X,articleLink:ge},articleContent:Y,featuredImageCredit:{creditText:(null==M?void 0:M.upgpPostFeaturedImageCreditValue)||"",creditUrl:(null==M?void 0:M.upgpPostFeaturedImageCreditUrl)||"",creditUrlExternal:(null==M?void 0:M.upgpPostFeaturedImageCreditUrlExternal)||""},authorInfo:{authorName:ee.name,content:ee.bio||"",link:ee.url,socials:ee.socials,thumbnail:{src:ee.imageUrl,alt:ee.imageAlt}},comments:{comments:ae,postDatabaseId:W,total:te,commentsClosed:"closed"===x}
477,cardMentions:B,nonAffiliate:J,postDisclosures:Pe,faqs:{faqs:le},postId:W,relatedPosts:{relatedPosts:oe},sidebarData:{articleId:W,sidebar:K,categories:ie,overrideSidebarPost:ne,sidebarPost:re},template:z,weRecommendCard:null!==(f=null==T?void 0:T.specialOffer)&&void 0!==f?f:null,pulse:{isPopup:!1},quickFacts:{facts:se},toggleElements:ve,context:{databaseId:(null==I||null===(h=I.post)||void 0===h?void 0:h.databaseId)||0,tags:(null==I||null===(y=I.post)||void 0===y?void 0:y.tags)||null,link:(null==I||null===(A=I.post)||void 0===A?void 0:A.uri)||"",categories:(null==I||null===(E=I.post)||void 0===E?void 0:E.categories)||null,templateName:$,displayMobileAd:(null==I||null===(b=I.post)||void 0===b||null===(C=b.fieldsForPosts)||void 0===C?void 0:C.upgpEnableOnThisPostTheMobileAd)||null}}))};const g=e=>{let{data:t}=e;const{title:a,seo:l,fieldsForPosts:n,categories:r}=t.post;return o.createElement(o.Fragment,null,o.createElement(d.A,{title:a||"",wpSeo:l,faqs:null==n?void 0:n.upgpPostFaqs,categories:r}))}},55284:function(e,t,a){a.r(t),a.d(t,{Head:function(){return M},default:function(){return H}});var l=a(96540),o=a(11089),n=a(49987),r=a(14164),i=a(33842),s=a(74422),d=a(99210),u=a(82098),p=a(45895),c=a(57728),m=a(85128),g=a(29084),v=a(45425),P=a(8416),f=a(40250),h=a(23921),y=a(51711),A=a(27282),E=a(80795);var b=e=>{let{cardId:t,cardData:a=null}=e;const o=`hero_table_esi_${t}`,n=[(0,A.i0)()],r={upgpImage:{value:null,description:""},upgpCardName:{value:"Loading...",description:""},cardReviewUrl:"#",welcomeOfferAmountCardTables:"Loading points",upRating:"5",cardId:t,shortReview:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",whyWeLikeThisCardCardTables:"Loading...",pros:"Loading...",cons:"Loading...",moreReadsOverride:[{title:"",uri:"",thumbnailUrl:"",thumbnailAlt:"",categoryName:"",categoryLink:""}],upgpAnnualFee:{value:"N/A",description:""},upgpInterestRate:{value:"N/A",description:""},shortcodes:[{acfFcLayout:"html_shortcode",title:"Dummy - Credit Recommendation",name:"dummy-credit-recommended",code:"",content:"",renderedContent:"Lorem ipsum dolor sit amet"}]},i=`${E.yw}?component=hero_table&card_id=${t}`;return l.createElement(y.A,{cardId:t,containerId:o,className:"ccReview",esiSrc:i,fallbackRenderFunction:h.renderCardReviewHeroTable,dummyCardData:r,extraParams:n,cardDataFromProps:a})},C=a(75616),I=a(65645),T=a(96085),L=a(6249),N=a(62799),w=a(84465),D=a(37376),S=a(32081),U=a(11702),k=a(69944);var H=e=>{var t,a,p,h,y,A,H,M,_,F,R,x;let{data:O,pageContext:B,location:J}=e;const q=(0,S.A)(),W=null!==(t=null==q?void 0:q.allUpgpDisclosures)&&void 0!==t?t:[],{post:{content:G,author:j,title:V,categories:$,modifiedGmt:Q,dateGmt:Z,postEditorSettings:z,tags:Y,cardMentionsAll:X,nonAffiliateAll:K,fieldsForPosts:ee,databaseId:te,commentCount:ae,comments:le,commentStatus:oe,cardDataJsonPreview:ne,postDisclosures:re},isPreview:ie}=O,se=(null==O||null===(a=O.post)||void 0===a||null===(p=a.template)||void 0===p?void 0:p.templateName)||"",{cardDataJson:de}=(0,l.useContext)(o.A),ue=ie?ne&&JSON.parse(ne):(null==de||null===(h=de.data)||void 0===h?void 0:h.find((e=>e.cardId===te)))||null,pe=(0,s.sl)(null==j?void 0:j.node,z),ce=(0,L.lu)(),me=(null==ce||null===(y=ce.creditCardReviewsTopContent)||void 0===y?void 0:y.upgpCcReviewsTopContentVariants)||null;let ge=[];me&&Array.isArray(me)&&(ge=me);let ve=null;const Pe=(null==Y?void 0:Y.nodes)||null;Pe&&null!=Pe&&Pe.length&&Pe.forEach((e=>{if(e){const{name:t}=e;let a="";null!=t&&t.toLowerCase().includes("business")&&(a="business"),null!=t&&t.toLowerCase().includes("personal")&&(a="personal");const l=ge.filter((e=>{var t;return null==e||null===(t=e.upgpCcReviewsTopContentType)||void 0===t?void 0:t.includes(a)}))[0],o=(0,s.el)(l);o&&(ve={categories:o.categories,title:o.title})}}));const fe=(0,s.k6)(null==ee?void 0:ee.upgpPostFaqs),he=ae||0,ye="closed"===oe,Ae=(0,u.v)(le,te),Ee=!(void 0!==(null==ee||null===(A=ee.upgpPostToggleElements)||void 0===A?void 0:A.length)?ee.upgpPostToggleElements.map((e=>null!=e?e:"")):[]).includes(E.vu.DISCLOSURE_TEXT_ABOVE_COMMENTS_DISABLED),be=(0,s.Gh)(null==j?void 0:j.node),Ce=(0,s.Gh)(null==z?void 0:z.secondaryPostAuthor),Ie={src:be.imageUrl,alt:be.imageAlt},Te=(0,s.x8)(null==ee?void 0:ee.upgpPostRelatedPosts),Le=null!=ee&&ee.upgpUseTrustDropdown?(0,I.A)():null,Ne=(0,U.gl)(null!==(H=null==re?void 0:re.upgpPostDisclosures)&&void 0!==H?H:null),we=null==X?void 0:X.filter(d.Et);(0,l.useEffect)((()=>{var e;(0,w.o)("CreditCardReview",(null==O||null===(e=O.post)||void 0===e?void 0:e.uri)||"unknown",[{fieldName:"title",value:V}
477,{fieldName:"cardMentionsAll",value:X},{fieldName:"nonAffiliateAll",value:K}])}),[]);const De={databaseId:(null==O||null===(M=O.post)||void 0===M?void 0:M.databaseId)||0,tags:(null==O||null===(_=O.post)||void 0===_?void 0:_.tags)||null,link:(null==O||null===(F=O.post)||void 0===F?void 0:F.uri)||"",categories:(null==O||null===(R=O.post)||void 0===R?void 0:R.categories)||null,templateName:se,cardDataJsonPreview:(null==O||null===(x=O.post)||void 0===x?void 0:x.cardDataJsonPreview)||"",isPreview:ie};return l.createElement(N.A,{category:"Credit Cards, Reviews",title:V||E.JJ,location:J,postId:te,postType:E.i1.POST,wpTemplate:se},l.createElement(r.A,{context:ie?De:B}),l.createElement("article",null,l.createElement("div",{className:"credit-card-template-header"},l.createElement("div",{className:"container"},l.createElement(i.A,{title:V||"",dateModified:Q||"",datePublished:Z||"",featuredImage:null,author:be,breadCrumbs:(0,s.Xg)($),tooltip:pe,secondaryAuthor:Ce,categories:$}))),l.createElement("div",{className:"credit-card-template"},l.createElement("div",{className:"container"},l.createElement(m.A,null),!(null==we||!we.length)&&l.createElement(k.A,{cardMentions:we}),l.createElement(b,{cardId:te,cardData:ie?ue:null}),Le&&l.createElement(T.A,{upgpTrustDropdownContent:Le.content,upgpTrustDropdownTitle:Le.title})),l.createElement("div",{className:"page-content"},l.createElement("div",{className:"container"},l.createElement("div",{className:"credit-card-review-content"},(0,n._I)((0,s.xl)(G)||"","/TE/","Credit Card Review")),l.createElement("footer",null,fe&&l.createElement(g.A,{faqs:fe}),l.createElement(C.A,{parentId:te,cardMentions:X,nonAffiliate:K}),Ne&&l.createElement(D.A,{postDisclosures:Ne,allUpgpDisclosures:W}),be&&l.createElement(P.A,{authorName:be.name,content:be.bio||"",link:be.url,socials:be.socials,thumbnail:Ie}),Ae&&l.createElement(v.A,{comments:Ae,total:he,postDatabaseId:te,commentsClosed:ye,showCommentsDisclosure:Ee}))),ve&&l.createElement(c.o,ve),Te&&l.createElement(f.A,{relatedPosts:Te})))))};const M=e=>{let{data:t}=e;const{author:a,seo:o,fieldsForPosts:n,fieldsForCreditCards:r,title:i,categories:s}=t.post;let d=null;var u,c;r&&(d={image:(null===(u=r.upgpCreditCardImageGroup)||void 0===u||null===(c=u.upgpCreditCardImage)||void 0===c?void 0:c.sourceUrl)||"",cardName:i||"",pros:r.upgpCreditCardPros||"",cons:r.upgpCreditCardCons||"",quickSummary:r.upgpCreditCardQuickSummary||"",shortReview:r.upgpCreditCardShortReview||"",upRating:r.upgpCreditCardUpRating||""});return l.createElement(l.Fragment,null,l.createElement(p.A,{wpSeo:o,isReviewArticle:!0,faqs:null==n?void 0:n.upgpPostFaqs,author:null==a?void 0:a.node,cardData:d,categories:s}))}},99470:function(e,t,a){a.r(t),a.d(t,{Head:function(){return g}});var l=a(54506),o=a(96540),n=a(49987),r=a(74422),i=a(45895),s=a(82098),d=a(4338),u=a(62799),p=a(84465),c=a(80795),m=a(11702);t.default=e=>{var t,a,i,g,v,P,f,h,y,A,E,b,C;let{data:I,pageContext:T,location:L}=e;const{post:{content:N="",author:w,title:D,categories:S,modifiedGmt:U,dateGmt:k,featuredImage:H,featureImageCredit:M,featuredImageOptions:_,commentCount:F,comments:R,commentStatus:x,template:O,cardMentionsAll:B,nonAffiliateAll:J,fieldsForPosts:q,databaseId:W,postEditorSettings:G,uri:j,postDisclosures:V}}=I,$=(null==I||null===(t=I.post)||void 0===t||null===(a=t.template)||void 0===a?void 0:a.templateName)||"",Q="/TE/",Z="Full Width Hero Image + Sidebar",{articleContent:z,headings:Y}=(0,n.jj)(N||"",Q,Z),X=null==T?void 0:T.sidebar,K=(0,r.Gh)(null==w?void 0:w.node),ee=F||0,te=(0,s.v)(R,W),ae=(0,r.k6)(null==q?void 0:q.upgpPostFaqs),le=(0,r.x8)(null==q?void 0:q.upgpPostRelatedPosts),oe=null!==(i=null==q?void 0:q.upgpOverrideDefaultSidebar)&&void 0!==i&&i,ne=null==q?void 0:q.upgpCategorySidebarBlocks,re=S?S.nodes:[],ie=[],se=(0,r.sl)(null==w?void 0:w.node,G),de=(0,r.Gh)(null==G?void 0:G.secondaryPostAuthor),ue=null==_?void 0:_.imageHorizontalPosition,pe=null==_?void 0:_.imageVerticalPosition,ce=null!=H&&null!==(g=H.node)&&void 0!==g&&g.sourceUrl?{src:H.node.sourceUrl,alt:D||"",style:ue&&pe?{objectPosition:`${ue} ${pe}`}:void 0}:null,me=(0,r.W_)(j||"#");if(O.hotelLoyaltyProgramDetails){const e=O.hotelLoyaltyProgramDetails;e.upgpHotelLoyaltyProgramWebsite&&ie.push({label:"Hotel Website",children:(0,n.yH)(e.upgpHotelLoyaltyProgramWebsite,Q)}),e.upgpHotelLoyaltyProgramName&&ie.push({label:"Loyalty Program",children:(0,n.yH)(e.upgpHotelLoyaltyProgramName,Q)}
477),e.upgpHotelLoyaltyProgramBrands&&ie.push({label:"Hotel Brands",children:(0,n.yH)(e.upgpHotelLoyaltyProgramBrands,Q)}),e.upgpHotelLoyaltyProgramPointsAreWorth&&ie.push({label:"Points Are Worth",children:(0,n.yH)(e.upgpHotelLoyaltyProgramPointsAreWorth,Q)}),e.upgpHotelLoyaltyProgramAwardChartLink&&ie.push({label:"Award Chart Link",children:(0,n.yH)(e.upgpHotelLoyaltyProgramAwardChartLink,Q)}),e.upgpHotelLoyaltyProgramEarnPointsmiles&&ie.push({label:"Earn Points/Miles",children:(0,n.yH)(e.upgpHotelLoyaltyProgramEarnPointsmiles,Q)}),e.upgpHotelLoyaltyProgramRedeemPointsmiles&&ie.push({label:"Redeem Points/Miles",children:(0,n.yH)(e.upgpHotelLoyaltyProgramRedeemPointsmiles,Q)}),e.upgpHotelLoyaltyProgramReview&&ie.push({label:"Hotel Review",children:(0,n.yH)(e.upgpHotelLoyaltyProgramReview,Q)})}const ge=void 0!==(null==q||null===(v=q.upgpPostToggleElements)||void 0===v?void 0:v.length)?q.upgpPostToggleElements.map((e=>null!=e?e:"")):[],ve=(0,m.gl)(null!==(P=null==V?void 0:V.upgpPostDisclosures)&&void 0!==P?P:null);return(0,o.useEffect)((()=>{var e;(0,p.o)("HotelLoyaltyProgram",j||"unknown",[].concat((0,l.A)(H?[{fieldName:"featuredImage.node.sourceUrl",value:null===(e=H.node)||void 0===e?void 0:e.sourceUrl}]:[]),[{fieldName:"content",value:N},{fieldName:"title",value:D},{fieldName:"hotelLoyaltyProgramDetails",value:null==O?void 0:O.hotelLoyaltyProgramDetails}]))}),[]),o.createElement(u.A,{category:"Travel, Hotels, Loyalty",title:D||c.JJ,location:L,postId:W,postType:c.i1.POST,wpTemplate:$},o.createElement(d.A,{articleHeader:{author:K,secondaryAuthor:de,breadCrumbs:[{link:"/travel/hotels/",text:"Hotel"},{link:"/travel/hotels/",text:"Rewards"}],dateModified:U||"",datePublished:k||"",title:D||"",featuredImage:ce,tooltip:se},tableOfContents:{headings:Y,articleLink:me},articleContent:z,featuredImageCredit:{creditText:(null==M?void 0:M.upgpPostFeaturedImageCreditValue)||"",creditUrl:(null==M?void 0:M.upgpPostFeaturedImageCreditUrl)||"",creditUrlExternal:(null==M?void 0:M.upgpPostFeaturedImageCreditUrlExternal)||""},authorInfo:{authorName:K.name,content:K.bio||"",link:K.url,socials:K.socials,thumbnail:{src:K.imageUrl,alt:K.imageAlt}},comments:{comments:te,postDatabaseId:W,total:ee,commentsClosed:"closed"===x},postDisclosures:ve,cardMentions:B,nonAffiliate:J,faqs:{faqs:ae},postId:W,relatedPosts:{relatedPosts:le},sidebarData:{articleId:W,sidebar:X,categories:re,overrideSidebarPost:oe,sidebarPost:ne},template:Z,weRecommendCard:null!==(f=null==T?void 0:T.specialOffer)&&void 0!==f?f:null,pulse:{isPopup:!1},quickFacts:{facts:ie},toggleElements:ge,context:{databaseId:(null==I||null===(h=I.post)||void 0===h?void 0:h.databaseId)||0,tags:(null==I||null===(y=I.post)||void 0===y?void 0:y.tags)||null,link:(null==I||null===(A=I.post)||void 0===A?void 0:A.uri)||"",categories:(null==I||null===(E=I.post)||void 0===E?void 0:E.categories)||null,templateName:$,displayMobileAd:(null==I||null===(b=I.post)||void 0===b||null===(C=b.fieldsForPosts)||void 0===C?void 0:C.upgpEnableOnThisPostTheMobileAd)||null}}))};const g=e=>{let{data:t}=e;const{title:a,seo:l,fieldsForPosts:n,categories:r}=t.post;return o.createElement(o.Fragment,null,o.createElement(i.A,{title:a||"",wpSeo:l,faqs:null==n?void 0:n.upgpPostFaqs,categories:r}))}},63464:function(e,t,a){a.r(t),a.d(t,{Head:function(){return v}});var l=a(54506),o=a(96540),n=a(49987),r=a(4338),i=a(87594),s=a(74422),d=a(82098),u=a(41535),p=a(62799),c=a(84465),m=a(80795),g=a(11702);t.default=e=>{var t,a,i,v,P,f,h,y,A,E,b,C,I,T,L,N;let{data:w,pageContext:D,location:S}=e;const{post:{content:U,author:k,title:H,categories:M,modifiedGmt:_,dateGmt:F,featuredImage:R,commentCount:x,comments:O,commentStatus:B,template:J,cardMentionsAll:q,nonAffiliateAll:W,fieldsForPosts:G,databaseId:j,postEditorSettings:V,featureImageCredit:$,tags:Q,featuredImageOptions:Z,uri:z}}=w,Y=(null==w||null===(t=w.post)||void 0===t||null===(a=t.template)||void 0===a?void 0:a.templateName)||"",X=null==D?void 0:D.sidebar,K=(0,s.Gh)(null==k?void 0:k.node),ee=(0,s.Gh)(null==V?void 0:V.secondaryPostAuthor),te=(0,s.Xg)(M),ae=x||0,le=(0,d.v)(O,j),oe=M?M.nodes:[],ne=(0,s.gY)(null==J?void 0:J.templateName),{articleContent:re,headings:ie}=(0,n.jj)(U||"","/TE/",ne),se=null==Z?void 0:Z.imageHorizontalPosition,de=null==Z?void 0:Z.imageVerticalPosition,ue=null!=R&&null!==(i=R.node)&&void 0!==i&&i.sourceUrl?{src:R.node.sourceUrl,alt:H||"",style:se&&de?{objectPosition:`${se} ${de}`}:void 0}:null,pe=void 0!==(null==G||null===(v=G.upgpPostToggleElements)||void 0===v?void 0:v.length)?G.upgpPostToggleElements.map((e=>null!=e?e:"")):[],ce=(0,s.k6)(null==G?void 0:G.upgpPostFaqs),me=(0,s.x8)(null==G?void 0:G.upgpPostRelatedPosts),ge=null!==(P=null==G?void 0:G.upgpOverrideDefaultSidebar)&&void 0!==P&&P,ve=null==G?void 0:G.upgpCategorySidebarBlocks,Pe=(0,s.sl)(null==k?void 0:k.node,V),fe=(null==Q?void 0:Q.nodes)||null;let he=null;fe&&null!=fe&&fe.length&&fe.forEach((e=>{if(e){const{name:t}=e,a=u.E5.find((e=>e.tagName===t));a&&(he={categories:a.categories,title:"Top Credit Card Content"})}}));const ye=null==G?void 0:G.upgpUseTrustDropdown,Ae=(0,s.W_)(z||"#"),Ee=(null==M||null===(f=M.nodes)||void 0===f?void 0:f.map((e=>(null==e?void 0:e.name)||null)).reduce(((e,t)=>e+", "+t)))||"",be=(0,g.gl)(null!==(h=null===(y=w.post)||void 0===y||null===(A=y.postDisclosures)||void 0===A?void 0:A.upgpPostDisclosures)&&void 0!==h?h:null);return(0,o.useEffect)((()=>{var e;(0,c.o)("WpPost",z||"unknown",[].concat((0,l.A)(R?[{fieldName:"featuredImage.node.sourceUrl",value:null===(e=R.node)||void 0===e?void 0:e.sourceUrl}
477]:[]),[{fieldName:"content",value:U},{fieldName:"title",value:H}]))}),[]),o.createElement(p.A,{category:Ee||"Article",title:H||m.JJ,location:S,postId:j,postType:m.i1.POST,wpTemplate:Y},o.createElement(r.A,{articleHeader:{author:K,secondaryAuthor:ee,breadCrumbs:te,dateModified:_||"",datePublished:F||"",title:H||"",featuredImage:"Full Width (No Hero Image)"!==ne?ue:null,tooltip:Pe},toggleElements:pe,template:ne,tableOfContents:{headings:ie,articleLink:Ae},articleContent:re,featuredImageCredit:{creditText:(null==$?void 0:$.upgpPostFeaturedImageCreditValue)||"",creditUrl:(null==$?void 0:$.upgpPostFeaturedImageCreditUrl)||"",creditUrlExternal:(null==$?void 0:$.upgpPostFeaturedImageCreditUrlExternal)||""},sidebarData:{articleId:j||0,sidebar:X,categories:oe,overrideSidebarPost:ge,sidebarPost:ve,tags:fe},authorInfo:{authorName:K.name,content:K.bio||"",link:K.url,socials:K.socials,thumbnail:{src:K.imageUrl,alt:K.imageAlt}},comments:{total:ae,comments:le,postDatabaseId:j,commentsClosed:"closed"===B},cardMentions:q,nonAffiliate:W,postDisclosures:be,faqs:{faqs:ce},postId:j,weRecommendCard:null!==(E=null==D?void 0:D.specialOffer)&&void 0!==E?E:null,relatedPosts:{relatedPosts:me},topRelatedContent:he,showTrustDropdown:ye||!1,context:{databaseId:(null==w||null===(b=w.post)||void 0===b?void 0:b.databaseId)||0,tags:(null==w||null===(C=w.post)||void 0===C?void 0:C.tags)||null,link:(null==w||null===(I=w.post)||void 0===I?void 0:I.uri)||"",categories:(null==w||null===(T=w.post)||void 0===T?void 0:T.categories)||null,templateName:Y,displayMobileAd:(null==w||null===(L=w.post)||void 0===L||null===(N=L.fieldsForPosts)||void 0===N?void 0:N.upgpEnableOnThisPostTheMobileAd)||null}}))};const v=e=>{var t,a,l,n,r;let{data:s}=e;const{seo:d,author:u,featuredImage:p,fieldsForPosts:c,categories:m,tags:g}=null==s?void 0:s.post,v=!(null==m||null===(t=m.nodes)||void 0===t||!t.find((e=>"News"===(null==e?void 0:e.name)))),P={sourceUrl:(null==p||null===(a=p.node)||void 0===a?void 0:a.sourceUrl)||"",caption:(null==p||null===(l=p.node)||void 0===l?void 0:l.caption)||"",width:(null==p||null===(n=p.node)||void 0===n?void 0:n.width)||0,height:(null==p||null===(r=p.node)||void 0===r?void 0:r.height)||0},f=c;return o.createElement(o.Fragment,null,o.createElement(i.A,{wpSeo:d,author:null==u?void 0:u.node,featuredImageData:P,faqs:null==c?void 0:c.upgpPostFaqs,isNewsArticle:v,tags:g,categories:m,welcomeBonusCard:null==s?void 0:s.wbSchemaCard,welcomeBonusFields:f}))}},84465:function(e,t,a){a.d(t,{o:function(){return l}});const l=(e,t,a)=>{a.forEach((a=>{let{fieldName:l,value:o}=a;null!=o&&""!==o||console.error(`[GraphQL Null Value] ${e} at "${t}": field "${l}" is null or empty`)}))}}}]);
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.