PageSourceSearch

https://www.hongkongairlines.com/portal/assets/index-CCfuIPVS.js

js hongkongairlines.com collected 2026-10-02 02:54:07 UTC 7,169 bytes, 1 lines download raw bytes

1/* empty css             *//* empty css                   */import{d as q,c as U,e as f,b as t,Y as te,t as s,o as c,_ as Y,u as J,m as K,r as w,c2 as oe,j as u,i as e,aa as Z,X as Q,w as b,l as z,y as ee,N as G,q as se,C as re,a3 as V,$ as ae,aV as ne,g as B,F as I,f as H,a as R}from"./index-DijmEvPW.js";import{l as W}from"./lodash-D5JqJLrE.js";import{g as ie}from"./personallyInfo-_q1GcLLH.js";import{u as le}from"./cityList-CavXVv3x.js";import{m as M}from"./member-DyCrIeLv.js";import{O as A}from"./OrderItem-DFh4X9q7.js";import"./dayjsFormattedDate-DljkNzeb.js";const ce={class:"circle-container"},ue={class:"circle-box"},de={class:"circle-svg",viewBox:"0 0 100 100"},me={class:"circle-text"},_e={class:"num"},fe={class:"unit"},pe={class:"upgrade"},he=q({__name:"Circle",props:{num:{default:0},maxNum:{default:0},unit:{default:"SQPs"},toFixed:{default:2},nextTierName:{default:""}},setup(j){const o=j,r=U(()=>(o.maxNum-o.num).toFixed(o.toFixed));return(n,x)=>(c(),f("div",ce,[t("div",ue,[(c(),f("svg",de,[x[0]||(x[0]=t("circle",{class:"circle-bg",cx:"50",cy:"50",r:"42"},null,-1)),t("circle",{class:"circle-progress",style:te({strokeDashoffset:`${o.maxNum?264-o.num/o.maxNum*264:1*264}px`}),cx:"50",cy:"50",r:"42"},null,4)])),t("div",me,[t("span",_e,s(o.num.toFixed(o.toFixed)),1),t("span",fe,"/ "+s(o.maxNum)+" "+s(o.unit),1)])]),t("div",pe,s(r.value)+" "+s(o.unit)+" "+s(o.nextTierName),1)]))}}),X=Y(he,[["__scopeId","data-v-7901cfcf"]]),ve={class:"member"},ge={class:"member-left"},xe={class:"member-card"},be=["src"],Ne={class:"member-card-type"},ye={class:"member-card-no"},ke={class:"member-card-points"},Te={class:"points"},$e={key:0,class:"iconfont icon_general_24x24_eye_nor"},Ce={key:1,class:"iconfont icon_general_24x24_eyeclose_nor"},Le={class:"member-card-valid"},Se={class:"member-right"},De={class:"flex-1 flex items-center justify-center"},Oe={class:"flex-1 flex items-center justify-center"},we=q({__name:"Member",setup(j){const{t:o}=J(),r=K(),n=w(!1),x=U(()=>{var p,v;const $=((v=(p=r.pointInfo)==null?void 0:p.points)==null?void 0:v.toFixed(2))||0;return n.value?$:oe($)});return($,p)=>{var N,L,S,E,a,m,_,i,h,d,D,P,y,O,l,g,k,T;const v=ee,C=Z("router-link");return c(),f("div",ve,[t("div",ge,[t("div",xe,[t("img",{class:"member-card-img",src:(S=e(M)[(L=(N=e(r))==null?void 0:N.userInfo)==null?void 0:L.tierName])==null?void 0:S.imgUrlThum,alt:""},null,8,be),t("div",null,[t("div",Ne,s((m=e(M)[(a=(E=e(r))==null?void 0:E.userInfo)==null?void 0:a.tierName])==null?void 0:m.name),1),t("div",ye,s(e(o)("profile.MembershipNo"))+s(e(r).userInfo.cid),1)])]),t("div",ke,[t("span",Te,s(x.value),1),t("span",{class:"show_point_btn",onClick:p[0]||(p[0]=F=>n.value=!n.value)},[n.value?(c(),f("i",$e)):(c(),f("i",Ce))]),t("span",null,s(e(o)("profile.AwardPoints")),1)]),t("div",Le,s(e(o)("profile.PointsValidUntil"))+s((i=(_=e(r))==null?void 0:_.pointInfo)==null?void 0:i.accountExpireDate),1),u(C,{target:"_blank",to:e(Q)("/getEcard"),class:"member-card-link"},{default:b(()=>[z(s(e(o)("profile.GetYourECard"))+" ",1),u(v,null,{default:b(()=>[u(e(G))]),_:1})]),_:1},8,["to"])]),t("div",Se,[t("div",De,[u(X,{num:((h=e(r).memberTier)==null?void 0:h.upgradeQpCurrent)||0,maxNum:((d=e(r).memberTier)==null?void 0:d.upgradeQpTotal)||((D=e(r).memberTier)==null?void 0:D.requalifyGradeQpTotal)||0,unit:"SQPs",nextTierName:((y=e(M)[(P=e(r).memberTier)==null?void 0:P.nextTierName])==null?void 0:y.nextTierName)||""},null,8,["num","maxNum","nextTierName"])]),t("div",Oe,[u(X,{num:((O=e(r).memberTier)==null?void 0:O.upgradeSegCurrent)||0,maxNum:((l=e(r).memberTier)==null?void 0:l.upgradeSegTotal)||((g=e(r).memberTier)==null?void 0:g.requalifyGradeSegTotal)||0,unit:"SQSs",toFixed:1,nextTierName:((T=e(M)[(k=e(r).memberTier)==null?void 0:k.nextTierName])==null?void 0:T.nextTierName)||""},null,8,["num","maxNum","nextTierName"])])])])}}}),Ee=Y(we,[["__scopeId","data-v-733acb9b"]]),Pe={class:"profile-account"},Fe={class:"container"},Ve={class:"profile-account-title"},Be={class:"profile-account-title"},Ie={key:0,class:"upcoming-flight"},Me={class:"upcoming-flight-text"},Qe={key:1,class:"upcoming_item"},ze={class:"profile-account-title"},je={class:"order_list"},Ae={class:"profile-account-title"},Ge={class:"order_list"},qe=q({__name:"index",setup(j){const{t:o,locale:r}=J(),n=K(),x=le(),$=re(),p=w(!1),v=w(null),C=w([]),N=w([]);se(()=>{var a;if(n.isLogin)x.list.length||x.fetchListData(),S();else return $.replace({name:"HomePage"});(a=n==null?void 0:n.pointInfo)!=null&&a.points||(n.getPoint(),n.setMemberTier())});const L=U(()=>{let a=[];return x.list.forEach(m=>
1{m.country.forEach(_=>{a.push(..._.city)})}),a}),S=(a={})=>{const{cid:m=""}=n.userInfo||{};if(!m)return;const _=r.value==="zh-CN"?"zh":"en";p.value=!0,ie({primaryLangId:_,cid:m,...a}).then(i=>{var O;let h=((O=i==null?void 0:i.data)==null?void 0:O.orderList)||[],d=[],D=[];h.forEach(l=>{l!=null&&l.flightSegments&&(l==null||l.flightSegments.forEach(g=>{const k=L.value.find(F=>F.number===g.from),T=L.value.find(F=>F.number===g.to);g.formName=(k==null?void 0:k.name)||g.from,g.toName=(T==null?void 0:T.name)||g.to}))}),h.forEach(l=>{l.statusCode==="pendingPayment"?d.push(l):l.statusCode==="ticketSuccess"&&D.push(l)});const{filterLatestOrder:P=null,filterDoneList:y=[]}=E(D);C.value=d.length>0?d.slice(0,5):W.cloneDeep(d),N.value=y.length>0?y.slice(0,5):W.cloneDeep(y),v.value=P}).finally(()=>{p.value=!1})},E=a=>{const m=a.length>0?a.find(i=>{const h=i.departureDateTime;if(h&&V(h).valueOf()>=V().valueOf()&&V(h).valueOf()<V().add(30,"day").valueOf())return i}):null,_=m?a.filter(i=>i.orderNumber!==m.orderNumber):a;return{filterLatestOrder:m,filterDoneList:_}};return(a,m)=>{const _=Z("router-link"),i=ee,h=ne;return ae((c(),f("div",Pe,[t("div",Fe,[t("div",Ve,s(e(o)("profile.Welcome"))+", "+s(e(n).username),1),u(Ee),t("div",Be,s(e(o)("profile.YourUpcomingFlight")),1),!v.value&&!p.value?(c(),f("div",Ie,[t("div",Me,s(e(o)("profile.NoActiveBooking")),1),u(_,{class:"upcoming-flight-link",target:"_blank",to:e(Q)("/homepage")},{default:b(()=>[z(s(e(o)("profile.CheckOutBestPrice")),1)]),_:1},8,["to"])])):B("",!0),v.value&&!p.value?(c(),f("div",Qe,[u(A,{"order-data":v.value},null,8,["order-data"])])):B("",!0),C.value.length>0?(c(),f(I,{key:2},[t("div",ze,[t("span",null,s(e(o)("order.list.pendingTitle")),1),u(_,{class:"profile-account-title-link",to:e(Q)("/profile/order")},{default:b(()=>[z(s(e(o)("profile.ViewMore"))+" ",1),u(i,{size:"16",color:"#222"},{default:b(()=>[u(e(G))]),_:1})]),_:1},8,["to"])]),t("div",je,[(c(!0),f(I,null,H(C.value,d=>(c(),R(A,{key:d.orderNumber,"order-data":d},null,8,["order-data"]))),128))])],64)):B("",!0),N.value.length>0?(c(),f(I,{key:3},[t("div",Ae,[t("span",null,s(e(o)("profile.ConfirmedOrder")),1),u(_,{class:"profile-account-title-link",to:e(Q)("/profile/order")},{default:b(()=>[z(s(e(o)("profile.ViewMore"))+" ",1),u(i,{size:"16",color:"#222"},{default:b(()=>[u(e(G))]),_:1})]),_:1},8,["to"])]),t("div",Ge,[(c(!0),f(I,null,H(N.value,d=>(c(),R(A,{key:d.orderNumber,"order-data":d},null,8,["order-data"]))),128))])],64)):B("",!0)])])),[[h,p.value,void 0,{fullscreen:!0,lock:!0}]])}}}),et=Y(qe,[["__scopeId","data-v-613e5763"]]);export{et as default};

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.