PageSourceSearch

https://www.flytap.com/_next/static/chunks/4793.eeeebcd1d748c25f.js

js flytap.com collected 2026-10-01 10:17:27 UTC 6,190 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4793],{64793:(e,l,n)=>{n.r(l),n.d(l,{default:()=>P});var t=n(28888),s=n(37876),a=n(91722),c=n(86360),r=n(58880),o=n(59481),i=n(14315),u=n(26825),d=n(11913),f=n(14232),x=n(99765),m=n(33993),b=n(37431),p=n(95715),y=n(6910),g=n(85819),h=n(77199),j=n(61864),w=n(12309),_=n(97993);function v(){let e=(0,t._)(["[&>path]:fill-miles-tier-miles-basic"]);return v=function(){return e},e}function A(){let e=(0,t._)(["[&>path]:fill-blue-extra"]);return A=function(){return e},e}function N(){let e=(0,t._)(["[&>path]:fill-red-top"]);return N=function(){return e},e}function I(){let e=(0,t._)(["[&>path]:fill-gray-platinum"]);return I=function(){return e},e}function T(){let e=(0,t._)(["[&>path]:fill-gray-platinum-plus"]);return T=function(){return e},e}let P=e=>{var l,n,t,P,M,O,B;let{section:L,variant:C}=e,{customerDetails:E}=(0,c.E1)(e=>e),{pageUrl:R}=(0,r.on)(e=>e),{t:k}=(0,d.Bd)(["account","common"]),D=()=>{var e;switch(null==E||null==(e=E.LoyaltyAccount)?void 0:e.MemberAccountInfo.LoyaltyPack){case"1_PT":case"I1_BR":case"1_AO":case"1_OT":case"1_US":return"Basic";case"2_PT":case"I2_BR":case"2_AO":case"2_OT":case"2_US":return"Extra";case"3_PT":case"I3_BR":case"3_AO":case"3_OT":case"3_US":return"Top";case"4_PT":case"I4_BR":case"4_AO":case"4_OT":case"4_US":return"Platinum";case"5_PT":case"I5_BR":case"5_AO":case"5_OT":case"5_US":return"Diamond";case"6_PT":case"I6_BR":case"6_AO":case"6_OT":case"6_US":return"Platinum+";default:return"N"}},S=null==L||null==(l=L.clubInfo)?void 0:l.find(e=>e.type===D().toLowerCase()),U=(0,f.useMemo)(()=>{switch(D()){case"N":default:return{clubVariant:"Basic",clubIcon:(0,s.jsx)(y.A,{})};case"Basic":return{clubVariant:"Basic",arrowClasses:(0,a.tw)(v()),clubIcon:(0,s.jsx)(b.A,{})};case"Extra":return{clubVariant:"Extra",arrowClasses:(0,a.tw)(A()),clubIcon:(0,s.jsx)(p.A,{})};case"Top":return{clubVariant:"Top",arrowClasses:(0,a.tw)(N()),clubIcon:(0,s.jsx)(j.A,{})};case"Platinum":return{clubVariant:"Platinum",arrowClasses:(0,a.tw)(I()),clubIcon:(0,s.jsx)(g.A,{})};case"Platinum+":return{clubVariant:"Platinum+",arrowClasses:(0,a.tw)(T()),clubIcon:(0,s.jsx)(h.A,{})}}},[E]),V=null!=E&&null!=(t=E.LoyaltyAccount)&&null!=(n=t.MemberAccountInfo)&&!!n.isAdvanceRenewal&&(null==E||null==(M=E.LoyaltyAccount)||null==(P=M.MemberAccountInfo)?void 0:P.isAdvanceRenewal),F=()=>{let e=(()=>{var e,l;let n=(null==E||null==(l=E.LoyaltyAccount)||null==(e=l.MemberAccountInfo)?void 0:e.ExpireDate)?(0,o.GP)((0,i.o)(E.LoyaltyAccount.MemberAccountInfo.ExpireDate),"yyyy-MM-dd"):(0,o.GP)((0,i.o)(new Date),"yyyy-MM-dd"),t=(0,i.o)(new Date);return(0,u.c)(n,t)})();if(!(e>0))return(0,s.jsx)(s.Fragment,{children:k("expired")});{let l=Math.floor(e/30);return l>0?(0,s.jsx)("span",{children:"".concat(k("expires-in")," ").concat(l," ").concat(1===l?k("month"):k("months",{ns:"common"}))}):(0,s.jsx)("span",{children:"".concat(k("expires-in")," ").concat(e," ").concat(1===e?k("day"):k("days"))})}};return(0,s.jsx)(s.Fragment,{children:E&&(0,s.jsx)(_.n,{variant:C||(null==(O=E.LoyaltyAccount)?void 0:O.MemberAccountInfo.LoyalLevel),size:"full",borderPosition:"top",children:(0,s.jsxs)("div",{className:"flex flex-col gap-6 lg:flex-row lg:gap-4",children:[(0,s.jsxs)("div",{className:"relative flex flex-col gap-6 lg:pr-20",children:[(0,s.jsx)("div",{className:" flex  items-center   justify-between lg:justify-start",children:"N"!==D()&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"flex items-center rounded-full bg-surface-strong p-3",children:(0,s.jsx)("span",{className:"text-center font-sans text-body-s font-semibold text-content-neutral",children:k("your-club")})}),(0,s.jsx)("div",{className:"flex justify-end lg:hidden",children:(0,s.jsx)("span",{className:"font-sans text-body-s font-semibold text-danger lg:text-body-m",children:F()})})]})}),null==U?void 0:U.clubIcon]}),(0,s.jsxs)("div",{className:"flex flex-col gap-6 lg:w-full lg:flex-row lg:gap-16",children:[(0,s.jsxs)("div",{className:"flex w-full flex-col gap-6 lg:w-2/3",children:[(0,s.jsx)("div",{className:"flex w-full justify-between",children:(0,s.jsx)("span",{className:"font-sans text-body-s font-semibold text-content-neutral lg:text-body-l",children:"N"===D()?k("title-club-join"):k("discover-some-of-the-benefits-of-your-club")})}),"N"===D()?(0,s.jsx)("div",{className:"flex w-full flex-col  gap-2 lg:gap-4",children:(0,s.jsx)("span",{className:"w-4/5 font-sans text-body-s font-normal text-content-neutral lg:text-body-m",children:k("no-club")})}):(0,s.jsx)("div",{className:"flex flex-col gap-2 lg:flex-row lg:gap-2",children:S&&(null==(B=S.items)?void 0:B.map((e,l)=>(0,s.jsxs)("div",{className:"flex items-start gap-2",children:[(0,s.jsx)(m.A,{className:(0,a.cn)("size-icons-m shrink-0",null==U?void 0:U.arrowClasse
1s)}),(0,s.jsx)("span",{className:"font-sans text-body-s font-normal text-content-neutral lg:text-body-m",children:e.description})]},l)))})]}),(0,s.jsxs)("div",{className:"flex w-full flex-col justify-between lg:right-0 lg:top-0 lg:flex lg:h-full lg:w-1/3  lg:items-end",children:[(0,s.jsx)("div",{className:"hidden justify-end lg:flex",children:"N"!==D()&&(0,s.jsx)("span",{className:" font-sans text-body-s font-semibold text-danger lg:text-body-m",children:F()})}),(0,s.jsx)("div",{className:"flex flex-col-reverse  gap-5 lg:flex-row",children:(()=>{var e,l;return V?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(w.A,{href:R("miles-and-go-club"),children:(0,s.jsx)(x.A,{buttonType:"outline",type:"button",className:"w-full lg:w-fit",label:k("view-more")})}),(0,s.jsx)(w.A,{href:R("account-miles-club"),children:(0,s.jsx)(x.A,{buttonType:"solid",type:"button",className:"w-full bg-primary-press lg:w-fit",label:k("renew")})})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(w.A,{href:R("miles-and-go-club"),children:(0,s.jsx)(x.A,{buttonType:"outline",type:"button",className:"w-full lg:w-fit",label:k("view-more")})}),!(null==E||null==(l=E.LoyaltyAccount)||null==(e=l.MemberAccountInfo)?void 0:e.ExpireDate)&&(0,s.jsx)(w.A,{href:R("account-miles-club"),children:(0,s.jsx)(x.A,{buttonType:"solid",type:"button",className:"w-full bg-primary-press lg:w-fit",label:k("join")})})]})})()})]})]})]})})})}}}]);

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.