1/*! For license information please see GoRewards.c2d698f6.bundle.js.LICENSE.txt */ 2"use strict";(self.webpackChunkroxana=self.webpackChunkroxana||[]).push([[4935],{83060(e,t,r){r.d(t,{A:()=>a});var n,o=r(96540);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(null,arguments)}const a=function(e){return o.createElement("svg",i({viewBox:"0 0 9 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 4.5C8.32843 4.5 9 5.17157 9 6V9.5C9 10.3284 8.32843 11 7.5 11H1.5C0.671573 11 0 10.3284 0 9.5V6C0 5.17157 0.671573 4.5 1.5 4.5V3C1.5 1.34315 2.84315 0 4.5 0C6.15685 0 7.5 1.34315 7.5 3V4.5ZM1.5 5.5C1.22386 5.5 1 5.72386 1 6V9.5C1 9.77614 1.22386 10 1.5 10H7.5C7.77614 10 8 9.77614 8 9.5V6C8 5.72386 7.77614 5.5 7.5 5.5H1.5ZM5 8.36622V9C5 9.27614 4.77614 9.5 4.5 9.5C4.22386 9.5 4 9.27614 4 9V8.36622C3.7011 8.19331 3.5 7.87014 3.5 7.5C3.5 6.94772 3.94772 6.5 4.5 6.5C5.05228 6.5 5.5 6.94772 5.5 7.5C5.5 7.87014 5.2989 8.19331 5 8.36622ZM6.5 4.5V3C6.5 1.89543 5.60457 1 4.5 1C3.39543 1 2.5 1.89543 2.5 3V4.5H6.5Z",fill:"currentColor"})))}},18913(e,t,r){r.d(t,{f:()=>n});var n="/yorktown/bookings"},28140(e,t,r){r.r(t),r.d(t,{default:()=>ie}),r(27495),r(5746);var n=r(44016),o=r(75904),i=r(56095),a=r(75743),l=r(96540),s=r(71468),c=r(78106),u=r(49922),d=r(52e3),f=r(43405),y=r(19649),m=r(24375);const h="gzMn8xPpYSad3vf0QhcS";r(52675),r(89463),r(2259),r(16280),r(76918),r(28706),r(2008),r(50113),r(23418),r(64346),r(23792),r(48598),r(62062),r(44114),r(34782),r(26910),r(23288),r(62010),r(36033),r(40150),r(26099),r(90906),r(38781),r(31415),r(47764),r(98992),r(72577),r(81454),r(62953);var v=r(10619),p=r(75993),b=r(48009),_=r(16131),g=r(4925),j=r(39176),x=(r(45700),r(51629),r(89572),r(94170),r(2892),r(59904),r(67945),r(84185),r(83851),r(81278),r(40875),r(79432),r(10287),r(3362),r(54520),r(3949),r(23500),r(72505)),N=r.n(x),w=r(18913),O=r(39384),S=r(98062);function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function A(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var s=n&&n.prototype instanceof l?n:l,c=Object.create(s.prototype);return k(c,"_invoke",function(r,n,o){var i,l,s,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(t,r){return i=t,l=0,s=e,f.n=r,a}};function y(r,n){for(l=r,s=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],y=f.p,m=i[2];r>3?(o=m===n)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=r<2&&y<i[1])?(l=0,f.v=n,f.n=i[1]):y<m&&(o=r<3||i[0]>n||n>m)&&(i[4]=r,i[5]=n,f.n=m,l=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&y(u,m),l=u,s=m;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(f.n=-1),y(l,s)):f.n=s:f.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?s:r.call(n,f))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(k(t={},n,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,k(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,k(d,"constructor",c),k(c,"constructor",s),s.displayName="GeneratorFunction",k(c,o,"GeneratorFunction"),k(d),k(d,o,"Generator"),k(d,n,function(){return this}),k(d,"toString",function(){return"[object Generator]"}),(A=function(){return{w:i,m:f}})()}function k(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}k=function(e,t,r,n){function i(t,r){k(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},k(e,t,r,n)}function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?T(Object(r),!0).forEach(function(t){q(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function q(e,t,r){return(t=function(e){var t=function(e){if("object"!=C(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==C(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E(e,t,r,n,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,o)}var P=function(){var e,t=(e=A().m(function e(t,r){var n,o;return A().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,N().get("".concat((0,O.X)(t)).concat(w.f),{headers:I({"Accept-Language":r},(0,S.z)()),withCredentials:!0});case 1:if(200!==(n=e.v).status){e.n=2;break}return e.a(2,null!==(o=n.data.data)&&void 0!==o?o:[]);case 2:throw new Error("Failed to fetch user hotel bookings: ".concat(n.statusText));case 3:return e.a(2)}},e)}),function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){E(i,n,o,a,l,"next",e)}function l(e){E(i,n,o,a,l,"throw",e)}a(void 0)})});return function(e,r){return t.apply(this,arguments)}}();const M="WU4snyxH1ms7g2Sd7oHI",F="NVlVBqJLW2p6VpL8og2O",D="tQVfGxLRcwNDEp6X7m_f",H="kP90bk__MqM1MkAPH0zU",K="rAFnn2fbLNqp4rXYcRXJ";var R=r(74848);function V(e){return function(e){if(Array.isArray(e))return W(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||L(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){if(e){if("string"==typeof e)return W(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?W(e,t):void 0}}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var B=function(e,t){try{var r=new Date(e);return Number.isNaN(r.getTime())?"":new Intl.DateTimeFormat(t,{day:"numeric",month:"short",year:"numeric",timeZone:"UTC"}).format(r)}catch(e){return""}};const Z=function(e){var t,r,o=e.membership,i=(0,s.d4)(m.YH),a=(0,s.d4)(m.MS),c=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).enabled,t=void 0===e||e,r=(0,s.d4)(m.rX),n=(0,s.d4)(m.h2),o=(0,s.d4)(m.MS);return(0,j.I)({queryKey:["user-hotel-bookings",null==n?void 0:n.userHash,o],queryFn:function(){return P(r,o)},enabled:!!n&&t,staleTime:3e5})}(),u=c.data,f=c.isLoading,y=(t=(0,l.useState)(new Set),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(t,r)||L(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=y[0],x=y[1],N=(0,l.useCallback)(function(e){x(function(t){if(t.has(e))return t;var r=new Set(t);return r.add(e),r})},[]),w=(0,l.useMemo)(function(){var e;return V(null!==(e=o.allBookings)&&void 0!==e?e:[]).sort(function(e,t){return new Date(t.serviceDate).getTime()-new Date(e.serviceDate).getTime()})},[o.allBookings]),O=(0,l.useMemo)(function(){return new Map((null!=u?u:[]).map(function(e){return[e.booking_id,e]}))},[u]),S=f&&0===w.length,C=!S&&0===w.length;return(0,R.jsxs)("section",{className:"XTLYtNWj7VBURBhokdD7",children:[(0,R.jsx)("h3",{className:"qgkdyITNODBq4qeI7a6w",children:i.go_loyalty_count_progress_t
2itle}),(0,R.jsxs)("div",{className:"NXyTfKcAVRWiNoolX36q",children:[(0,R.jsxs)("div",{className:"yRc2R91vewm4Pki53W2t",children:[(0,R.jsx)("p",{className:"BHmjZ509pO4DFHpB7NJW",children:w.length>0?(0,n.sS)(i.go_loyalty_all_bookings_with_count,a,w.length):i.go_loyalty_all_bookings}),w.length>0&&(0,R.jsx)("p",{className:"WXMgOpBjtROngvJ3nliQ",children:i.go_loyalty_bookings_window_note})]}),S?(0,R.jsxs)("div",{className:"MkV0osi66eWIo5fcSN6T",children:[(0,R.jsx)(p.A,{width:"100%",height:72,borderRadius:8}),(0,R.jsx)(p.A,{width:"100%",height:72,borderRadius:8})]}):C?(0,R.jsx)("p",{className:"T79WNqcStTcs4ZXgVaYt",children:i.go_loyalty_bookings_empty_state}):(0,R.jsx)("ul",{className:"qewOZhBfelztorWXbt_l",children:w.map(function(e,t){var r,n=t===w.length-1,s="FLIGHT"===e.productType,c=s?void 0:O.get(e.bookingRef),u=c?function(e){var t,r,n,o=null!==(t=null===(r=e.images)||void 0===r?void 0:r.find(function(e){return e.primary}))&&void 0!==t?t:null===(n=e.images)||void 0===n?void 0:n[0];return null!=o&&o.url?(0,b.bq)(o.url):null}(c):null,f=s?function(e,t){var r,n,o,i,a=null!==(r=null===(n=e.route)||void 0===n?void 0:n.legs)&&void 0!==r?r:[];if(0===a.length)return[];var l,s=function(e){var r,n,o,i,a;return null!==(r=null!==(n=null!==(o=null==t||null===(i=t.cities)||void 0===i?void 0:i[e.cityCode])&&void 0!==o?o:null==t||null===(a=t.airports)||void 0===a?void 0:a[e.airportCode])&&void 0!==n?n:e.cityCode)&&void 0!==r?r:e.airportCode},c=null!==(o=a[0])&&void 0!==o&&o.from?s(a[0].from):"";return"ROUND_TRIP"===(null===(i=e.route)||void 0===i?void 0:i.tripType)?[c,null!==(l=a[
20])&&void 0!==l&&l.to?s(a[0].to):""].filter(Boolean):[c].concat(V(a.map(function(e){return null!=e&&e.to?s(e.to):""}))).filter(Boolean)}(e,o.appendices):[],y="ROUND_TRIP"===(null===(r=e.route)||void 0===r?void 0:r.tripType),m=s?i.go_loyalty_booking_flight_fallback:i.go_loyalty_booking_hotel_fallback,p=(0,d.FD)(e),j=c?function(e,t,r){try{var n=new Date(e),o=new Date(t);if(Number.isNaN(n.getTime())||Number.isNaN(o.getTime()))return"";var i=new Intl.DateTimeFormat(r,{day:"numeric",month:"short",year:"numeric",timeZone:"UTC"});return"function"!=typeof i.formatRange?"".concat(B(e,r)," - ").concat(B(t,r)):i.formatRange(n,o)}catch(e){return""}}(c.checkin_date,c.checkout_date,a):p.map(function(e){return B(e,a)}).join(" - "),x=function(e){switch(null==e?void 0:e.toUpperCase()){case"CONFIRMED":return{label:i.confirmed,className:"s8yzPAjRyrnUJGb33V1z"};case"COMPLETED":return{label:i.completed,className:K};case"CANCELLED":case"CANCELED":return{label:i.cancelled,className:H};case"FAILED":return{label:i.failed,className:H};case"NO_SHOW":return{label:i.no_show,className:H};default:return{label:i.processing,className:K}}}(e.status),S=s?(0,d.MH)(e.route):null,C=S&&!h.has(S)?(0,d.IH)(S):null;return(0,R.jsxs)("li",{className:(0,v.$)("VepRTZAxnjGBeqpxzXYr",!n&&"pG18hIWfHsLT0QJ31q2y"),children:[(0,R.jsx)("div",{className:"b1qpuFv2X5W2yzSOKITo",children:u?(0,R.jsx)("img",{src:u,alt:"",className:F}):C&&S?(0,R.jsx)("img",{src:C,alt:"",className:F,onError:function(){return N(S)}}):s?(0,R.jsx)(_.A,{className:M,"aria-hidden":!0}):(0,R.jsx)(g.A,{className:M,"aria-hidden":!0})}),(0,R.jsxs)("div",{className:"tMJcP8iKkHWArLpEYMF1",children:[f.length>1?(0,R.jsx)("p",{className:D,children:f.map(function(t,r){return(0,R.jsxs)(l.Fragment,{children:[r>0&&(0,R.jsx)("span",{className:"akFkt8pIk9g3IOEircMd","aria-hidden":!0,children:y?"â":"â"}),(0,R.jsx)("span",{children:t})]},"".concat(e.bookingRef,"-").concat(t,"-").concat(r))})}):(0,R.jsx)("p",{className:D,children:(null==c?void 0:c.hotel_name)||m}),(0,R.jsx)("p",{className:"QAeEOlIPs5Pw61jGw7il",children:j})]}),(0,R.jsx)("span",{className:(0,v.$)("vgcibAvtYMWegFqj5mcz",x.className),children:x.label})]},e.bookingRef)})})]})]})};var X=r(93317);function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var U=[{questionKey:"what_go",answerKey:"what_is_go"},{questionKey:"go_signup",answerKey:"do_i_need_to_sign_up_for_go"},{questionKey:"earn_tier",answerKey:"how_to_earn_your_tier"},{questionKey:"claim_rewards",answerKey:"how_do_i_claim_discounts_and_travel_rewards"},{questionKey:"tier_last",answerKey:"how_long_does_my_tier_last"},{questionKey:"properties_rewards",answerKey:"which_properties_offer_go_discounts_and_travel_rewards"},{questionKey:"transfer_tier",answerKey:"can_i_share_transfer_or_sell_my_tier_status"},{questionKey:"count_tiers",answerKey:"what_does_not_count_toward_my_tier"}];const Y=function(){var e,t,r=(0,s.d4)(m.YH),n=(e=(0,l.useState)(function(){return new Set}),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return z(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?z(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=n[0],i=n[1];return(0,R.jsxs)("section",{className:"c5dj6fv9ct6ahUOeOOKZ",children:[(0,R.jsx)("h3",{className:"h05KTN89P_HjmmvcN76U",children:r.go_loyalty_faqs_title}
2),(0,R.jsx)("div",{className:"vuwpbHHcp0S3Xp2J6ZxD",children:U.map(function(e,t){var n=o.has(t);return(0,R.jsxs)("div",{className:"jXJ_B1att60UB5oAgKA_",children:[(0,R.jsxs)("button",{type:"button",className:"r0Lyng80WWQd0G9jKAZt","aria-expanded":n,onClick:function(){return function(e){i(function(t){var r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r})}(t)},children:[(0,R.jsx)("span",{className:"jUmGUgKyskn254FpQ6bn",children:r[e.questionKey]}),(0,R.jsx)(X.A,{className:(0,v.$)("CXxC1sPtL51Z6cMXteEO",n&&"xuaD8d0qG4xxJr9nFKlb")})]}),n?(0,R.jsx)("div",{className:"YSQVwdEycHA6G57eWdgp",children:(0,R.jsx)("p",{children:r[e.answerKey]})}):null]},e.questionKey)})})]})};r(42762);var G=r(978),J=r(83060),Q=r(63592);const $="JqYqUdasxB_IQ3zvCB8A";function ee(e,t){if(e){if("string"==typeof e)return te(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?te(e,t):void 0}}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var re="go-tier-tab-",ne="go-tier-benefits-panel";const oe=function(e){var t,r,o,i,a,c,u,f,y,h,p=e.membership,b=(0,s.d4)(m.YH),_=(0,s.d4)(m.MS),g=(0,Q.r)().data,j=(0,l.useMemo)(function(){return g?(e=g,function(e){if(Array.isArray(e))return te(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ee(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).sort(function(e,t){return e.id-t.id}):[];var e},[g]),x=null!==(t=null!==(r=null===(o=p.currentTier)||void 0===o?void 0:o.id)&&void 0!==r?r:null===(i=j[0])||void 0===i?void 0:i.id)&&void 0!==t?t:1,N=(y=(0,l.useState)(x),h=2,function(e){if(Array.isArray(e))return e}(y)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(y,h)||ee(y,h)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),w=N[0],O=N[1];(0,l.useEffect)(function(){O(x)},[x]);var S=(0,d.Im)(p.demotesAt,_,"dayMonthYear"),C=j.find(function(e){return e.id===w}),A=w>x,k=w===x?null===(a=p.currentTier)||void 0===a?void 0:a.benefits:void 0,T=null===(c=j[j.length-1])||void 0===c?void 0:c.id,I=!0===p.isTopTier||void 0!==T&&x===T,q=(0,d.lz)(null==C?void 0:C.benefits,k).map(function(e,t){var r,o,i,a,l,s,c=(0,d.r8)(e),u=(0,d.tX)(e),f=u?b.go_loyalty_benefit_special_discount:(null===(r=e.name)||void 0===r?void 0:r.trim())||(null!==c?(0,n.sS)(b.go_loyalty_benefit_member_discount,_,c):""),y=(0,d.DV)(e),m=u?b.go_loyalty_benefit_eligible_flights:(null===(o=e.description)||void 0===o?void 0:o.trim())||("FLIGHT"===(a=e.productType)?b.go_loyalty_benefit_flights_subtitle:"HOTEL"===a?b.go_loyalty_benefit_discount_subtitle:"");return{key:"".concat(null!==(i=e.productType)&&void 0!==i?i:"ALL","-").concat(e.key,"-").concat(t),title:f,isClaimed:y,subtitle:y&&(l=e.nextAvailableAt,s=(0,d.Im)(l,_,"dayMonthYear"),s?(0,n.sS)(I?b.go_loyalty_benefit_back_on:b.go_loyalty_benefit_back_on_or_tier,_,s):"")||m}}).filter(function(e){return!!e.title});return 0===j.length?null:(0,R.jsxs)("section",{className:"ZWbrabstO8zYfOUiHFGs",children:[(0,R.jsx)("h3",{className:"lH0rjVU2LsFUy_7IG9QS",children:b.go_loyalty_travel_more_save_more}),(0,R.jsxs)("div",{className:"VdGj4gFOIThZ_RWJPVkQ",children:[(0,R.jsx)("div",{className:"rgCDFEpRhzbFnNZ1ZsCX",role:"tablist",children:j.map(function(e){var t=e.id===w,r=e.id<=x;return(0,R.jsxs)("button",{type:"button",role:"tab",id:"".concat(re).concat(e.id),"aria-selected":t,"aria-controls":ne,className:(0,v.$)("bWJuV5Iz54mckOURGDq9",t&&"c4rfnYwMN0VL9J8vNsce"),onClick:function(){return O(e.id)},children:[(0,R.jsx)("span",{className:"Sk_IuU84ZsbyRrFy5ou_",children:e.subTitle||e.title}),r?null:(0,R.jsx)(J.A,{className:"LCAKZi6m9yiL9XqeCx3E","aria-hidden":!0})]},e.id)})}),(0,R.jsxs)("div",{className:"pJRCVo2W2YWD6z2Ad0p9",id:ne,role:"tabpanel","aria-labelledby":"".concat(re).concat(w),children:[(0,R.jsxs)("div",{className:"IclPY2qN0_qcuPa_8bOT",children:[(0,R.jsxs)("div",{className:"M0logHSmW8ofI0TcjoNi",children:[(0,R.jsx)("p",{className:"lVbg72LmHSWcIqa6ji13",children:A?(0,n.sS)(b.go_loyalty_tier_x_benefits,_,null!==(u=null!==(f=null==C?void 0:C.subTitle)&&void 0!==f?f:null==C?void 0:C.title)&&void 0!==u?u:""):b.go_loyalty_your_benefits}),A?(0,R.jsxs)("span",{className:"X54gzvn4gtxoDm4a5W0d","aria-hidden":!0,
2children:[(0,R.jsx)(J.A,{className:"hO3YvE6bVsDZmwCD8M3A"}),(0,R.jsx)("span",{children:b.go_loyalty_locked_badge})]}):null]}),A&&null!=C&&C.requiredBookingCount?(0,R.jsx)("p",{className:$,children:(0,n.sS)(b.go_loyalty_redeem_after_x,_,C.requiredBookingCount)}):null,!A&&w===x&&S?(0,R.jsx)("p",{className:$,children:(0,n.sS)(b.go_loyalty_valid_until_x,_,S)}):null]}),q.length>0&&(0,R.jsx)("ul",{className:"o4ySyiq4RXbpAutioBiI",children:q.map(function(e){var t=e.key,r=e.title,n=e.subtitle,o=e.isClaimed;return(0,R.jsxs)("li",{className:"bb0l_qCbLv8Fyxab2bHu",children:[(0,R.jsx)(G.A,{className:(0,v.$)("feV8JelRzzEMrzjQEmTc",(A||o)&&"PtrSqDswGyHIYGCjNZlw"),"aria-hidden":!0}),(0,R.jsxs)("div",{className:(0,v.$)("p5JynWiMRK_XNuEOG6_q",o&&"xkhQKrEfpThVgBs39MPA"),children:[(0,R.jsx)("p",{className:"dxp8cZvZKvOqLocFpq6X",children:r}),!!n&&(0,R.jsx)("p",{className:"NdJsoCVmlW1qi2m4zZT6",children:n})]}),o&&(0,R.jsx)("span",{className:"BWftI_fSBSAghCXc1489",children:b.go_loyalty_benefit_claimed_badge})]},t)})})]})]})]})},ie=function(){var e,t=(0,s.d4)(m.YH),r=(0,s.d4)(m.MS),v=(0,s.d4)(m.h2),p=(0,y.Nc)().isActive,b=(0,l.useContext)(u.F).isUserCentricCoreConfigsLoading,_=(0,f.y)(),g=_.data,j=_.isLoading,x=_.isError,N=_.refetch,w=(0,c.Zp)(),O=(0,c.zy)(),S=O.pathname,C=O.search,A=!b,k=A&&!p,T=!(!v||j||void 0===g||null!=g&&g.currentTier),I=k||T;if((0,l.useEffect)(function(){I&&w((0,d.fO)(S,C),{replace:!0})},[w,S,C,I]),!v||!A||!p||j)return null;if(x)return(0,R.jsx)("div",{className:h,children:(0,R.jsxs)("div",{className:"I1poeMzkdbBP87aId6nj",role:"alert",children:[(0,R.jsx)("p",{className:"uOwTpaoSI_6QxwWHFQ4v",children:t.error_no_results}),(0,R.jsx)(a.$,{variant:"secondary-medium",onClick:function(){return N()},children:t.try_again_no_results})]})});if(null==g||!g.currentTier)return null;var q=null!==(e=null==v?void 0:v.firstName)&&void 0!==e?e:"",E=(0,n.sS)(t.go_loyalty_welcome_with_name,r,q);return(0,R.jsxs)("div",{className:h,children:[(0,R.jsxs)("header",{className:"CoPcBiOrZVwRKTUkYNCX",children:[(0,R.jsx)("h2",{className:"Ol8FY_7FYkrF2lwz_sFf",children:E}),(0,R.jsx)("p",{className:"rX6SLeYWpW0zu9FbzRmQ",children:t.go_loyalty_welcome_subtitle})]}),(0,R.jsxs)("div",{className:"eLB3c9BRkalI2Hz9ZPxj",children:[(0,R.jsx)(o.A,{membership:g}),(0,R.jsx)(i.A,{membership:g})]}),(0,R.jsx)(oe,{membership:g}),(0,R.jsx)(Z,{membership:g}),(0,R.jsx)(Y,{})]})}}}]);
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.