PageSourceSearch

https://www.longjianghk.com/static/js/77.fd64b8e5.chunk.js

js longjianghk.com collected 2026-10-02 20:06:42 UTC 34,732 bytes, 2 lines download raw bytes

1/*! For license information please see 77.fd64b8e5.chunk.js.LICENSE.txt */
2(this["webpackJsonpnew-era"]=this["webpackJsonpnew-era"]||[]).push([[77],{2450:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return i}));var r=n(3),o=function(t,e){var n=t.penalties,o=t.fareInfos,i=Object(r.a)(t.priceBreakdowns,1)[0].passengerType;if(!n)return null;var a={penalties:{amendment:[],cancellation:[]},fareBreakdowns:[],status:"",type:"",passengerType:i};if((null===n||void 0===n?void 0:n.amendment)&&(a.penalties.amendment=null===n||void 0===n?void 0:n.amendment.filter((function(t){return t.flightSegmentId===e}))),(null===n||void 0===n?void 0:n.cancellation)&&(a.penalties.cancellation=null===n||void 0===n?void 0:n.cancellation.filter((function(t){return t.flightSegmentId===e}))),o){var u=o.find((function(t){return t.flightSegmentId===e}));a.fareBreakdowns=null===u||void 0===u?void 0:u.fareBreakdowns,a.status=(null===u||void 0===u?void 0:u.voluntaryEndorsement)||"",a.type=(null===u||void 0===u?void 0:u.fareFamilyCode)||""}return a},i=function(t,e,n){if(n){var r=n.find((function(t){return t.flightProductId.toString()===e}));return r&&r.fareRules?r.fareRules.find((function(e){return e.boundIndex===t+1})):null}return null}},2452:function(t,e,n){"use strict";n.d(e,"n",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"g",(function(){return a})),n.d(e,"k",(function(){return u})),n.d(e,"m",(function(){return c})),n.d(e,"h",(function(){return l})),n.d(e,"e",(function(){return s})),n.d(e,"d",(function(){return d})),n.d(e,"b",(function(){return f})),n.d(e,"l",(function(){return m})),n.d(e,"a",(function(){return p})),n.d(e,"i",(function(){return v})),n.d(e,"f",(function(){return h})),n.d(e,"j",(function(){return g}));var r=n(48),o=function(t){var e="/tRtApi"+"/bookings/".concat(t,"/qpons");return r.a.get(e,{params:{searchType:"TO_REDEEM_QPON"}})},i=function(t){var e="/tRtApi"+"/bookings/".concat(t,"/payments");return r.a.post(e,{isQpon:!0})},a=function(t){return r.a.post("/tRtApi/qpons/resultSets",t)},u=function(t){return r.a.post("/tRtApi/coupons/register",{customId:t})},c=function(t,e){var n="/tRtApi"+"/qpons/resultSets/".concat(t);return r.a.get(n,{params:e})},l=function(t){var e="/tRtApi"+"/bookings/".concat(t,"/payments");return r.a.delete(e)},s=function(){return r.a.post("/tRtApi/bookings")},d=function(t,e){var n="/tRtApi"+"/bookings/".concat(t,"/products/qpon");return r.a.post(n,e)},f=function(t,e){var n="/tRtApi"+"/bookings/".concat(t,"/beneficiaries");return r.a.post(n,e)},m=function(t){return r.a.post("/tRtApi/qpons/details",t)},p=function(t,e){var n="/tRtApi"+"/bookings/".concat(t,"/payments");return r.a.post(n,e)},v=function(t,e){var n="/tRtApi"+"/bookings/".concat(t,"/products/cost/cancellation/").concat(e);return r.a.get(n)},h=function(t,e){var n="/tRtApi"+"/bookings/".concat(t,"/products/cancellation");return r.a.post(n,e)},g=function(t){return r.a.get("/tRtApi/profile/myCoupons",{params:t})}},2456:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return u}));var r=n(34),o=function(t){return t.GRADINGSECTION="GRADINGSECTION",t.GRADINGEARN="GRADINGEARN",t.BASICEARN="BASICEARN",t.BONUSEARN="BONUSEARN",t.VEARN="VEARN",t.GEARN="GEARN",t.FEARN="FEARN",t.SEARN="SEARN",t.CEARN="CEARN",t.LEVELBONUSEARN="LEVELBONUSEARN",t.INTEGRAL="INTEGRAL",t}({}),i=function(t,e){var n=[],o=[];if(e.some((function(t){return t.modificationType}))){for(var i=function(){var t=e[a].originalProductNumber,r=e.filter((function(e){return e.productId===t}));if(r.length>0){var o=r[0].productId;n.push(o)}},a=0;a<e.length;a++)i();o=e.filter((function(t){if(!n.includes(t.productId))return t}))}else o=e;var u,c=[],l=Object(r.a)(o);try{for(l.s();!(u=l.n()).done;){var s,d=u.value,f=Object(r.a)(d.totalEarns||[]);try{for(f.s();!(s=f.n()).done;){var m=s.value;m.customerId===t&&c.push(m.earns)}}catch(p){f.e(p)}finally{f.f()}}}catch(p){l.e(p)}finally{l.f()}return c},a=function(t,e){var n=[];return t.forEach((function(t){if(t){var r=t.reduce((function(t,n){return e.includes(n.t
2ype)?t+Number(n.quantity):t+0}),0);n.push(r)}})),n},u=function(t){return t.length>0?t.reduce((function(t,e){return t+e})):0}},2460:function(t,e,n){"use strict";n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return d})),n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return m}));var r=n(3),o=n(570),i=n(53),a=n.n(i),u=n(37),c=n(61),l=function(t,e){for(var n=!1,r=0;r<t.length;r++){t[r].products.includes(e)&&(n=!0)}return n},s=function(t,e){var n=Object(o.g)(e).map((function(t){return t.id})),r=[];return t.forEach((function(t){var e=t.qpons;(void 0===e?[]:e).forEach((function(t){n.includes(t.flightSegmentId)&&r.push(t)}))})),r},d=function(t,e,n,r){var i=a.a.cloneDeep(e),u=[],c=[];null===n||void 0===n||n.forEach((function(t){var e=t.customerId,n=t.flightSegmentIds;(void 0===n?[]:n).forEach((function(t){c.push({flightSegmentId:t,customerId:e}),u.push(t)}))})),i.length&&!r||(i=c);for(var s=t.flightProducts,d=void 0===s?[]:s,m=t.customers,p=(void 0===m?[]:m).filter((function(t){for(var e=null,n=0;n<(null===(r=i)||void 0===r?void 0:r.length);n++){var r;if(i[n].customerId===t.id){e=t;break}}return e})),v=a.a.cloneDeep(d),h=[],g=0;g<v.length;g++){var E,b=v[g],I=b.productId,y=b.bookingStatus,N=b.modifyTypes,A=null;if(N&&N.modifyType&&(null===N||void 0===N||null===(E=N.modifyType[0])||void 0===E?void 0:E.oldMPNum)){var R,O,S=N.modifyType,k=void 0===S?[]:S;"DateChange"!==(null===(R=k[0])||void 0===R?void 0:R.type)&&"Upgrade"!==(null===(O=k[0])||void 0===O?void 0:O.type)||(A=parseInt(N.modifyType[0].oldMPNum))}var j=l(p,I);if("CANCELLED"!==y&&j){for(var T=Object(o.d)(t,I),w=0;w<T.length;w++){var C=T[w];if(C.productId===I){C.modifyProductId=A;break}}h=h.concat(T)}}return h.filter((function(e){for(var n=null,r=0;r<i.length;r++){var o=i[r];if(n=e,o.flightSegmentId===e.id){var a=o.productId;if(a!==n.productId){var c=f(a,t);n.products?c&&n.products.push(c):n.products=c?[c]:null}}}if(u.includes(e.id))return n}))},f=function(t,e){var n=e.ancillaryProducts,r=void 0===n?[]:n,o=e.baggageProducts,i=void 0===o?[]:o,u=e.insuranceProducts,c=void 0===u?[]:u,l=e.seatProducts,s=void 0===l?[]:l,d=e.flightProducts,f=a.a.find(i,{productId:t});if(f)return f;var m=a.a.find(c,{productId:t});if(m)return m;var p=a.a.find(r,{productId:t});if(p)return p;var v=a.a.find(s,{productId:t});if(v)return v;var h=a.a.find(d,{productId:t});return h||null},m=function(t,e,n,o,i){if(t.find((function(n){if(n.passengerType===u.i.ADT&&n.flightDetails.accompaniers&&n.flightDetails.accompaniers.length>0){var r=String(n.flightDetails.accompaniers[0].accompanierId),o=String(n.id);if(e.includes(o)&&t.find((function(t){return String(t.id)===r}))&&!e.includes(r))return!0}return!1})))return"\u6b64\u6210\u4eba\u643a\u5e26\u5a74\u513f/\u513f\u7ae5\uff0c\u4e0d\u5f97\u5355\u72ec\u5148\u9000";var a=t.filter((function(t){var n=String(t.id);return!e.includes(n)}));if(a&&a.length>0){var l=[];o.forEach((function(t){a.forEach((function(e){e.products.forEach((function(e){l.push("".concat(e,"-").concat(t))}))}))}));var s=l.some((function(t){var e=t.split("-"),n=Object(r.a)(e,2),o=n[0],a=n[1];return!0===i(Number(o),a)})),d=a.some((function(t){return t.passengerType===u.i.ADT&&Object(c.c)(t.dateOfBirth,n,"years")>17})),f=a.some((function(t){return t.passengerType===u.i.CHD||t.passengerType===u.i.INF}));if(!d&&f&&s)return 1===e.length?"\u6b64\u6210\u4eba\u643a\u5e26\u5a74\u513f/\u513f\u7ae5\uff0c\u4e0d\u5f97\u5355\u72ec\u5148\u9000":"\u5728\u5b58\u5728\u513f\u7ae5\u4e58\u673a\u4eba\u7684\u60c5\u51b5\u4e0b\uff0c\u552f\u4e00\u5e74\u6ee118\u5c81\u6210\u4eba\u65c5\u5ba2\u4e0d\u80fd\u5148\u9000";if(!a.some((function(t){return t.passengerType===u.i.ADT&&s}))&&s)return"\u513f\u7ae5\u4e0d\u80fd\u6ca1\u6709\u966a\u540c\u4eba";var m=a.filter((function(t){return t.passengerType===u.i.ADT})),p=a.filter((function(t){return t.passengerType===u.i.CHD}));if(p&&p.length>=3&&m.length<2)return"\u4e00\u4e2a\u6210\u4eba\u6700\u591a\u53ef\u4ee5\u643a\u5e26\u4e24\u4e2a\u513f\u7ae5"}return""}},2461:function(t,e,n){"use strict";n(332);var r=n(129),o=n(3),i=n(0),a=n.n(i),u=n(37),c=n(2444),l=n(2445),s=n(42),d=n(2459),f=n(53),m=n.n(f),p=n(61),v=n(228),h=n(2469),g=n(2456),E=n(64),b=(n(2478),n(529)),I=n(148),y=function(t){return t.GRADINGSECTION="GRADINGSECTION",t.GRADINGEARN="GRADINGEARN",t.BASICEARN="BASICEARN",t.BONUSEARN="BONUSEARN",t.VEARN="VEARN",t.GEARN="GEARN",t.FEARN="FEARN",t.SEARN="SEARN",t.CEARN="CEARN",t.LEVELBONUSEARN="LEVELBONUSEARN",t.INTEGRAL="INTEGRAL",t}(y||{});e.a=function(t){var e=t.passenger,n=t.isSensitive,f=void 0===n||n,N=t.bookingDetail,A=e.customerId,R=Object(I.e)(e),O=((null===N||void 0===N?void 0:N.flightProducts.filter((function(t){return"BOOKED"===t.bookingStatus})))||[]).filter((function(t){var n;return null===(n=e.products)||void 0===n?void 0:n.includes(t.productId)})),S=function(t,e,n){var r=t.name,o=t.type,i=t.customerId,a=Object(g.b)(i,n)||[],c=[y.BASICEARN,y.LEVELBONUSEARN],l=Object(g.c)(a,c),d=Object(g.d)(l).toString(),f={name:r,type:o,showInfos:[]},m=t.birthDay,v=t.travelDocument,h=void 0===v?{}:v,b=h.docId,I=h.docType,N=h.additionalDocument;if(f.showInfos.push({title:"\u51fa\u751f\u65e5\u671f",content:m}),t.type!==u.i.INF&&f.showInfos.push({title:I?s.j[I]:"\u8bc1\u4ef6\u53f7",content:e?Object(p.e)(b):b}),t.type===u.i.ADT&&Object(E.c)("REACT_APP_SWITCH_REQUIRE_PASSENGERMOBILE")){var A=t.mobilePhone;f.showInfos.push({title:"\u624b\u673a\u53f7\u7801",content:e?Object(p.e)(A):A})}if(t.type!==u.i.DISABLED_MILITARY&&t.type!==u.i.DISABLED_POLICE||f.showInfos.push({title:"\u519b/\u8b66\u6b8b\u8bc1\u4ef6\u53f7",content:N.docId}),t.type!==u.i.INF&&Object(E.c)("REACT_APP_SWITCH_JINPENG_USER_MANANGEMENT")&&f.showInfos.push({title:"\u79ef\u5206\u5c0f\u8ba1",content:d}),t.type===u.i.INF){var R=t.carryPerson;f.showInfos.push({title:"\u5a74\u513f\u643a\u5e26\u4eba",content:R}
2),b&&f.showInfos.push({title:s.j[I],content:e?Object(p.e)(b):b})}return t.originalTicketNumber&&f.showInfos.push({title:"\u539f\u7968\u53f7",content:t.originalTicketNumber}),f}(e,f,O),k=S.name,j=S.type,T=S.showInfos,w=s.a[j],C=s.m[j],P=Object(i.useState)(!1),D=Object(o.a)(P,2),x=D[0],G=D[1],B=Object(i.useState)(!1),_=Object(o.a)(B,2),L=_[0],F=_[1],M=function(t,e){var n=m.a.cloneDeep(t),r=Object(i.useState)(n),a=Object(o.a)(r,2),u=a[0],c=a[1];return Object(i.useEffect)((function(){if(t){var n=(t.customers||[]).filter((function(t){return t.id===e}));c((function(t){return t&&(t.customers=n),t}))}}),[t,e]),u}(N,e.customerId),U=M&&Object(v.b)(M,"orderDetail"),Y=(null===U||void 0===U?void 0:U.isChargeBaggageExist)||(null===U||void 0===U?void 0:U.isChargeMealExist)||(null===U||void 0===U?void 0:U.isChargeSeatExist)||(null===U||void 0===U?void 0:U.isFreeMealExist)||(null===U||void 0===U?void 0:U.isFreeSeatExist)||(null===U||void 0===U?void 0:U.isInsuranceExist),V=function(){F(!0)},H=T.map((function(t){return"\u79ef\u5206\u5c0f\u8ba1"===t.title?{value:t.content,label:t.title,onClick:V,className:"integral"}:{value:t.content,label:t.title}}));return a.a.createElement(c.a,null,a.a.createElement(l.a,{icon:w,text:k,passengerText:C,chooseAncillary:function(){G(!0)},showAncillary:Y,cyAuthPsgCard:R&&a.a.createElement(b.b,{name:k})}),!R&&a.a.createElement(l.b,{options:H}),a.a.createElement(r.a,{title:"\u5df2\u8d2d\u4e70\u7684\u9644\u52a0\u670d\u52a1",visible:x,width:900,onCancel:function(t){t.stopPropagation(),G(!1)},footer:null},a.a.createElement("div",{className:"passengerInfo-ancillary"},M&&a.a.createElement(d.b,{isCheck:!1,orderDetail:M,showTitle:!1,isSensitive:f}))),a.a.createElement(r.a,{title:"\u79ef\u5206\u5c0f\u8ba1",visible:L,width:900,onCancel:function(t){t.stopPropagation(),F(!1)},footer:null},N&&A&&a.a.createElement(h.a,{bookingDetail:N,passenger:e,customerId:A})))}},2469:function(t,e,n){"use strict";n(453);var r=n(190),o=n(12),i=n(0),a=n.n(i),u=n(2456),c=(n(2477),[{title:"\u5b9a\u7ea7\u6807\u51c6",children:[{title:"\u5b9a\u7ea7\u79ef\u5206",dataIndex:[u.a.GRADINGEARN],align:"center"},{title:"\u5b9a\u7ea7\u822a\u6bb5",dataIndex:[u.a.GRADINGSECTION],align:"center"}]},{title:"\u6d88\u8d39\u79ef\u5206\u79ef\u7d2f",dataIndex:"\u6d88\u8d39\u79ef\u5206\u79ef\u7d2f",children:[{title:"\u57fa\u7840\u6d88\u8d39\u79ef\u5206",dataIndex:[u.a.BASICEARN],align:"center"},{title:"\u7b49\u7ea7\u5956\u52b1\u79ef\u5206",dataIndex:[u.a.LEVELBONUSEARN],align:"center"},{title:"\u603b\u79ef\u5206",dataIndex:[u.a.INTEGRAL],align:"center"}]}]);e.a=function(t){var e=t.passenger,n=t.bookingDetail,i=t.customerId,l=n.flightProducts.filter((function(t){return"BOOKED"===t.bookingStatus})).filter((function(t){var n;return null===(n=e.products)||void 0===n?void 0:n.includes(t.productId)})),s=Object(u.b)(i,l)||[],d=[Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({key:"1"},u.a.GRADINGEARN,Object(u.d)(Object(u.c)(s,[u.a.GRADINGEARN]))),u.a.GRADINGSECTION,Object(u.d)(Object(u.c)(s,[u.a.GRADINGSECTION]))),u.a.BASICEARN,Object(u.d)(Object(u.c)(s,[u.a.BASICEARN]))),u.a.LEVELBONUSEARN,Object(u.d)(Object(u.c)(s,[u.a.LEVELBONUSEARN]))),u.a.INTEGRAL,Object(u.d)(Object(u.c)(s,[u.a.BASICEARN,u.a.LEVELBONUSEARN])))];return a.a.createElement("div",{className:"integral-wrapper"},a.a.createElement(r.a,{dataSource:d,columns:c,bordered:!0,pagination:!1}),a.a.createElement("p",{className:"table-tips"},a.a.createElement("i",{className:"icon-info-fill"}),"\u6ce8\uff1a\u8868\u683c\u4e2d\u7684\u5185\u5bb9\u4ec5\u4f9b\u53c2\u8003\uff0c\u8bf7\u4ee5\u5b9e\u9645\u79ef\u7d2f\u4e3a\u51c6\u3002",a.a.createElement("span",null,a.a.createElement("a",{className:"link",target:"_blank",href:"https://ffp.hnair.com/FFPClub/cn/hqjf/index.html?gszl"},"\u70b9\u51fb\u6b64\u5904\u4e86\u89e3\u91d1\u9e4f\u79ef\u5206\u7d2f\u8ba1\u89c4\u5219"))))}},2477:function(t,e,n){},2478:function(t,e,n){},2491:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var r=n(37),o=function(t,e){var n,o=(null===t||void 0===t?void 0:t.payments)&&t.payments.sort((function(t,e){return e.id-t.id}))[0].amount,i=[];null===t||void 0===t||null===(n=t.payments)||void 0===n||n.forEac
2h((function(t){t.qpons&&(i=i.concat(t.qpons))}));i.reduce((function(t,e){return t+e.amount}),0);return"INPATH"===e&&(o=(null===t||void 0===t?void 0:t.additionalBookingStatus)===r.a.TICKET_SUCCESS||t.additionalBookingStatus===r.a.PENDING_TICKET?t.totalPrice.amount:t.additionalBookingStatus===r.a.PENDING_PAYMENT?null===t||void 0===t?void 0:t.currentPayableAmount.amount:null===t||void 0===t?void 0:t.totalFlightPriceAmount.amount),o||0},i=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[r.i.DISABLED_POLICE,r.i.DISABLED_MILITARY];return n.includes(null===(t=e[0])||void 0===t?void 0:t.passengerType)}},2607:function(t,e,n){},2778:function(t,e,n){"use strict";n.r(e);n(332);var r=n(129),o=n(5),i=n(19),a=n(3),u=n(30),c=n(29),l=n(0),s=n(31),d=n.n(s),f=n(48),m=n(2445),p=n(2556),v=n(78),h=n(67),g=n(456),E=n(113),b=n(1022),I=n(2461),y=n(42),N=n(2460),A=n(61),R=n(212),O=n(2453),S=n(50),k=n(2452),j=n(259),T=n(2491),w=n(211),C=n(2444),P=n(1019),D=n(312),x=n(1024),G=n(2450),B=n(41),_=n(66),L=n(64),F=n(2441);n(2607);function M(){M=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n,r){return Object.defineProperty(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(e,n,r,o){var i=n&&n.prototype instanceof f?n:f,a=Object.create(i.prototype);return c(a,"_invoke",function(e,n,r){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var u=r.delegate;if(u){var c=y(u,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var l=s(e,n,r);if("normal"===l.type){if(o=r.done?4:2,l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=4,r.method="throw",r.arg=l.arg)}}}(e,r,new R(o||[])),!0),a}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d={};function f(){}function m(){}function p(){}var v={};c(v,i,(function(){return this}));var h=Object.getPrototypeOf,g=h&&h(h(O([])));g&&g!==n&&r.call(g,i)&&(v=g);var E=p.prototype=f.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function I(t,e){function n(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(d).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var o;c(this,"_invoke",(function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}),!0)}function y(e,n){var r=n.method,o=e.i[r];if(o===t)return n.delegate=null,"throw"===r&&e.i.return&&(n.method="return",n.arg=t,y(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var i=s(o,e.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,d;var a=i.arg;return a?a.done?(n[e.r]=a.value,n.next=e.n,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,d):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function N(t){this.tryEntries.push(t)}function A(e){var n=e[4]||{};n.type="normal",n.arg=t,e[4]=n}function R(t){this.tryEntries=[[-1]],t.forEach(N,this),this.reset(!0)}function O(e){if(null!=e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return m.prototype=p,c(E,"constructor",p),c(p,"constructor",m),m.displayName=c(p,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},b(I.prototype),c(I.prototype,a,(function(){return this})),e.AsyncIterator=I,e.async=function(t,n,r,o,i){void 0===i&&(i=Prom
2ise);var a=new I(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(E),c(E,u,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.unshift(r);return function t(){for(;n.length;)if((r=n.pop())in e)return t.value=r,t.done=!1,t;return t.done=!0,t}},e.values=O,R.prototype={constructor:R,reset:function(e){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0][4];if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(t){a.type="throw",a.arg=e,n.next=t}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],u=this.prev,c=i[1],l=i[2];if(-1===i[0])return r("end"),!1;if(!c&&!l)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=u){if(u<c)return this.method="next",this.arg=t,r(c),!0;if(u<l)return r(l),!1}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===t||"continue"===t)&&o[0]<=e&&e<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o[2],d):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n[2]===t)return this.complete(n[4],n[3]),A(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n[0]===t){var r=n[4];if("throw"===r.type){var o=r.arg;A(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={i:O(e),r:n,n:r},"next"===this.method&&(this.arg=t),d}},e}var U=Object(u.a)((function t(){Object(c.a)(this,t),this.name={firstName:"",surname:""},this.phone=null,this.comment=void 0,this.reasonType=null,this.fileResultSetId=void 0,this.email=null})),Y=Object(u.a)((function t(){Object(c.a)(this,t),this.type="flight",this.productId=null,this.bookingId=null,this.refundForm=new U})),V=Object(u.a)((function t(){Object(c.a)(this,t),this.customerPartialFlightReferences=[]})),H={BAGGAGE:"\u884c\u674e",INSURANCE:"\u4fdd\u9669",SEAT:"\u9009\u5ea7",ANCILLARY:"\u9910\u98df"};e.default=function(){var t,e,n,u,c,s,U,q,z,K,J,Q,W=Object(v.g)(),X=(null===(t=W.state.pramas)||void 0===t?void 0:t.customerAndSegmentIds[0])&&(null===(e=W.state.pramas)||void 0===e?void 0:e.customerAndSegmentIds[0].flightSegmentIds),Z=W.state.isCouponsOrder,$=l.useState(),tt=Object(a.a)($,2),et=tt[0],nt=tt[1],rt=l.useState(!1),ot=Object(a.a)(rt,2),it=ot[0],at=ot[1],ut=l.useState(""),ct=Object(a.a)(ut,2),lt=ct[0],st=ct[1],dt=l.useState(""),ft=Object(a.a)(dt,2),mt=ft[0],pt=ft[1],vt=l.useState(null),ht=Object(a.a)(vt,2),gt=ht[0],Et=ht[1],bt=l.useState(),It=Object(a.a)(bt,2),yt=It[0],Nt=It[1],At=W.state.orderDetails,Rt="DOMESTIC"===(null===At||void 0===At?void 0:At.bookingChannel);l.useEffect((function(){at(!0),f.c.booking.refund.getRefundApplication(W.state.pramas).then((function(t){nt(t),at(!1)})).catch((function(t){at(!1)}))}),[W.state.pramas]);var Ot=function(t,e,n,r,o){var i=n.refunds,a=void 0===i?[]:i,u=t.arrival,c=void 0===u?{}:u,s=t.departure,f=void 0===s?{}:s,m=t.operatingAirlineInfo,p=void 0===m?{}:m,v=t.products,h=t.productId,g=t.modifyProductId,E=function(t){var e,n=null===(e=et.flightProduct.price)||void 0===e?void 0:e.fareInfos.find((function(e){return e.flightSegmentId===t}));return{rbdInfo:n.fareFamilyName,rbd:n.rbd?"".concat(n.rbd,"\u8231"):""}}(t.id),b=function(t){var e=et.customers.find((function(e){return e.id===t}))||{};return{passengerType:y.m[e.passengerType],name:e.name}}(r),I=a.length?function(t,e,n,r,o){var i,a,u,c,l=n.refunds,s=void 0===l?[]:l,d=n.costs,f=void 0===d?[]:d,m=s.find((function(n){return n.customerId===t&&n.flightSegmentId===e&&n.productId===r})),p=f.find((function(n){return n.customerId===t&&n.flightSegmentId===e&&n.productId===r})),v=null,h=null;return o&&(v=s.find((function(n){return n.customerId===t&&n.flightSegmentId===e&&n.productId===o})),h=f.find((function(n){return n.customerId===t&&n.flightSegmentId===e&&n.productId===o}))),m&&p?((v||h)&&(m.fee.amount=(null===(i=v)||void 0===i||null===(a=i.fee)||void 0===a?void 0:a.amount)+m.fee.amount,p.fee.amount=(null===(u=h)||void 0===u||null===(c=u.fee)||void 0===c?void 0:c.amount)+p.fee.amount),{refund:"\xa5".concat(Math.floor(Math.abs(m.fee.amount))),cost:"\xa5".concat(Math.ceil(Math.abs(p.fee.amount)))}):null}(r,t.id,n,h,g):{};return l.createElement("div",{key:e},l.createElement("span",null,d()(f.dateTime).format("YYYY-MM-DD"),"/"),l.createElement("span",null,f.name,"-"),l.createElement("span",null,c.name),l.createElement("span",null,p.airlineCode),l.createElement("span",null,p.flightNumber,"/"),l.createElement("span",null,E.rbdInfo,E.rbd,"/"),l.createElement("span",null,b.passengerType,"-"),l.createElement("span",null,Object(A.b)(b.name,o)," "),a.length?l.createElement(l.Fragment,null,l.createElement("span",null,I&&"\u9000\u6b3e".concat(I.refund,"\uff0c")),l.createElement("span",null,I&&"\u6263\u6536\u9000\u7968\u8d39".concat(I.cost)),l.createElement("div",{className:"refund-ancillary"}
2,v&&function(t,e,n){var r=e.refunds,o=void 0===r?[]:r,i=e.costs,a=void 0===i?[]:i;return t.map((function(t,e){if(n!==parseInt(t.customerId))return"";var r=H[t.productType],i=o.find((function(e){return e.productId===t.productId})),u=a.find((function(e){return e.productId===t.productId}));return l.createElement("div",{key:e},"\u9884\u4ed8\u8d39  ",r,"\u4ea7\u54c1 \u9000\u6b3e\uff1a\xa5",Math.round(Math.abs(i.fee.amount)),"\uff0c\u6263\u6536 ",r,"\u624b\u7eed\u8d39\uff1a\xa5",Math.round(Math.abs(u.fee.amount)))}))}(v,n,r))):"")},St=function(){var t=Object(i.a)(M().mark((function t(e){var n,r,o,i,a,u,c,s,d,m,p,v,g,E;return M().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=new Y).bookingId=W.state.pramas.bookingId,n.productId=W.state.pramas.flightProductId,n.type=Z?"ancillary":"flight",n.refundForm.name=e.name,n.refundForm.phone=e.phone,n.refundForm.comment=e.comment,n.refundForm.reasonType=e.reasonType,n.refundForm.email="[email protected]",e.fileResultSetId&&(n.refundForm.fileResultSetId=e.fileResultSetId),(r=new V).customerPartialFlightReferences=W.state.pramas.customerAndSegmentIds,at(!0),!W.state.isRefundAgain){t.next=16;break}return t.abrupt("return",S.Http.booking.management._createRefundRemarks(W.state.pramas.bookingId,n.refundForm).then((function(t){return S.Http.booking.management._cancelBookingProduct(W.state.pramas.bookingId,W.state.pramas.flightProductId,{refundRemarksId:t.refundRemarksId})})).then((function(){D.a.push({state:{bookingReference:W.state.pramas.bookingReference},pathname:"/flights/orderDetail"})})).catch((function(t){B.a.warning({content:Object(h.b)(t),okText:"\u786e\u8ba4"})})));case 16:if(o="INTERNATIONAL"===(null===et||void 0===et?void 0:et.bookingChannel),i="PERSONAL"===e.reasonType,!Z){t.next=46;break}return t.prev=19,t.next=22,S.Http.booking.management._createRefundRemarks(W.state.pramas.bookingId,n.refundForm);case 22:return a=t.sent,t.next=25,S.Http.booking.management._createProductsCancellationCost(W.state.pramas.bookingId,{productIds:W.state.pramas.flightProductId});case 25:return u=t.sent,t.next=28,Object(k.i)(W.state.pramas.bookingId,u.cancellationCostId);case 28:c=t.sent,s=c.refunds,d=void 0===s?[]:s,m=c.costs,p=void 0===m?[]:m,v=Math.abs(d.reduce((function(t,e){return t+e.fee.amount}),0)),g=p.reduce((function(t,e){return t+e.fee.amount}),0),st(a.refundRemarksId),pt(u.cancellationCostId),E=l.createElement("div",null,l.createElement("p",null,"\u60a8\u63d0\u4ea4\u7684\u662f".concat(i?"\u81ea\u613f":"\u975e\u81ea\u613f","\u9000\u7968"),o||i?"":"\uff0c\u6211\u4eec\u5c06\u8fdb\u884c\u4eba\u5de5\u5ba1\u6838:"),kt(o,i),"\u672c\u6b21\u9000\u5238\uff0c\u624b\u7eed\u8d39\u4e3a\uff1a".concat(g," \u5143\uff0c \u53ef\u9000\u6b3e\uff1a ").concat(v," \u5143\u3002 \u7cfb\u7edf\u5c06\u6309\u7167\u6b64\u91d1\u989d\u81ea\u52a8\u9000\u6b3e\uff0c\u8bf7\u786e\u8ba4\u662f\u5426\u9000\u5238\uff0c\u4e00\u65e6\u63d0\u4ea4\uff0c\u5238\u5c06\u7acb\u5373\u9000\u5238\uff0c\u4e0d\u53ef\u6062\u590d"),l.createElement("p",{className:"refund-tip-bottom"},"(\u6700\u7ec8\u9000\u6b3e\u4ee5\u5b9e\u9645\u5ba1\u6838\u7ed3\u679c\u4e3a\u51c6)")),Et(E),t.next=41;break;case 38:t.prev=38,t.t0=t.catch(19),B.a.warning({content:Object(h.b)(t.t0),okText:"\u786e\u8ba4"});case 41:return t.prev=41,at(!1),t.finish(41);case 44:t.next=47;break;case 46:f.c.booking.refund.getCancellationCost(n,r).then((function(t){at(!1);var e=t.refunds,n=void 0===e?[]:e,r=W.state.pramas.customerAndSegmentIds,a=Object(N.d)(At,n,r,o),u=o?[]:Object(R.b)(n.map((function(t){return t.customerId})));u.length||(u=r.map((function(t){return t.customerId})));var c=l.createElement("div",null,l.createElement("p",{className:"refund-tip"},"\u786e\u5b9a\u8981\u63d0\u4ea4\u9000\u7968\u7533\u8bf7\u5417\uff1f\u9000\u7968\u524d\u8bf7\u5148\u786e\u8ba4\u5df2\u53d6\u6d88\u7f51\u4e0a\u503c\u673a\uff0c\u5426\u5219\u65e0\u6cd5\u9000\u6389\u5df2\u503c\u673a\u822a\u6bb5\u5ba2\u7968\u3002\u60a8\u7684\u5ea7\u4f4d\u5c06\u7acb\u5373\u91ca\u653e\uff0c\u6b64\u64cd\u4f5c\u4e0d\u80fd\u64a4\u9500\u3002"),l.createElement("p",null,"\u60a8\u63d0\u4ea4\u7684\u662f".concat(i?"\u81ea\u613f":"\u975e\u81ea\u613f","\u9000\u7968"),o||i?"":"\uff0c\u6211\u4eec\u5c06\u8fdb\u884c\u4eba\u5de5\u5ba1\u6838:"),kt(o,i),(i||Object(L.c)("REACT_APP_SWITCH_DISPLAY_REFUNDFEE_IN_INVOLUNTARY_CONFIRM_POPUP"))&&u.map((function(e){return a.map((function(n,r){return l.createElement("div",{key:r},Ot(n,r,t,e,o))}))})),l.createElement("p",{className:"refund-tip-bottom"},"(\u6700\u7ec8\u9000\u6b3e\u4ee5\u5b9e\u9645\u5ba1\u6838\u7ed3\u679c\u4e3a\u51c6)"));Et(c),Nt(t)}
2)).catch((function(t){at(!1),B.a.warning({content:Object(h.b)(t),okText:"\u786e\u8ba4"})}));case 47:case"end":return t.stop()}}),t,null,[[19,38,41,44]])})));return function(e){return t.apply(this,arguments)}}(),kt=function(t,e){return t||e?"":l.createElement(l.Fragment,null,l.createElement("p",null,Object(_.a)("airlines.airLinesApplyRefundText1")),l.createElement("p",null,Object(_.a)("airlines.airLinesApplyRefundText2")))},jt=et&&Object(E.b)(At),Tt=et&&At.customers&&Object(b.b)(At),wt=Object(T.b)(null===et||void 0===et?void 0:et.customers),Ct="INTERNATIONAL"===(null===et||void 0===et?void 0:et.bookingChannel);return l.createElement(w.a,{spinning:it},l.createElement("div",{className:"container"},(null===et||void 0===et||null===(n=et.flightProduct)||void 0===n?void 0:n.flightBounds)&&l.createElement(F.a,{title:"\u673a\u7968\u884c\u7a0b\u4fe1\u606f"}),null===et||void 0===et||null===(u=et.flightProduct)||void 0===u||null===(c=u.flightBounds)||void 0===c?void 0:c.map((function(t,e){return t.boundSegments.map((function(n,r){var i,a,u,c,s=n.flightSegment,f=s.id,m=Object(o.a)(Object(o.a)({},s),{},{airLineInfos:[{operatingAirlineInfo:s.operatingAirlineInfo,marketingAirlineInfo:s.marketingAirlineInfo,equipmentType:s.equipmentType}],numberOfConnect:0,mealCode:null===et||void 0===et||null===(i=et.flightProduct.price)||void 0===i||null===(a=i.fareInfos[0])||void 0===a?void 0:a.mealCode});return(null===X||void 0===X?void 0:X.includes(f))?l.createElement("div",{key:r,className:"select-segment"},l.createElement("div",{className:"air-time"},l.createElement("div",null,l.createElement(P.a,{message:Object(E.j)(t,e,r,et.flightProduct.direction),size:"small"}),l.createElement("div",{className:"time"},d()(s.departure.dateTime).format("YYYY-MM-DD HH:mm:ss")))),l.createElement("div",{className:"select-segment-info"},l.createElement(O.a,m),((null===(u=et.flightProduct.price)||void 0===u||null===(c=u.penalties)||void 0===c?void 0:c.amendment)||At.internationalFareRules)&&l.createElement(P.a,{onClick:function(){B.a.info({title:"\u9000\u6539\u7b7e\u89c4\u5219",width:880,okText:"\u786e\u8ba4",content:l.createElement(x.a,{visible:!0,cssMode:!1,isDomestic:Rt,penalties:Rt?Object(G.b)(null===et||void 0===et?void 0:et.flightProduct.price,f):Object(G.a)(e,null===et||void 0===et?void 0:et.flightProduct.productId.toString(),At.internationalFareRules),flight:m,routeType:et.flightProduct.direction,isSerialCouponBooking:At.isSerialCouponBooking})})},type:"none",message:"\u9000\u6539\u7b7e\u89c4\u5219",size:"small"}))):null}))})),Tt&&Tt.length>0&&l.createElement(F.a,{title:"\u4e58\u673a\u4eba\u4fe1\u606f"}),Tt&&Tt.length>0&&Tt.map((function(t,e){return W.state.pramas.customerAndSegmentIds.some((function(e){return e.customerId===t.customerId}))?l.createElement(I.a,{key:e,passenger:t,bookingDetail:At,isSensitive:!1}):null})),l.createElement(F.a,{title:"\u8054\u7cfb\u4eba\u4fe1\u606f"}),l.createElement(C.a,null,l.createElement(m.a,{icon:"icon-person-contact-line",text:Object(A.b)({surname:null===et||void 0===et?void 0:et.contactDetails.name.surname,firstName:null===et||void 0===et?void 0:et.contactDetails.name.firstName},Ct)}),l.createElement(m.b,{options:[{label:"\u624b\u673a\u53f7\u7801",value:jt&&jt.mobilePhone||"--"},{label:"\u56fa\u5b9a\u7535\u8bdd",value:jt&&Object(E.a)(jt.homePhone)||"--"},{label:"\u90ae\u7bb1",value:jt&&jt.email||"--"}]})),l.createElement(F.a,{title:"\u652f\u4ed8\u4fe1\u606f"}),null===(s=Object(j.b)(null===et||void 0===et?void 0:et.payments))||void 0===s?void 0:s.map((function(t){if("DEBIT"===t.transactionType&&!t.errorRefundTracking){var e=t.redirectToken,n=Object(j.k)(t),r=g.a.get(e);return t.qpons&&(r="\u5361\u5238"),l.createElement(C.a,{key:t.id},l.createElement("div",{className:"pay-num"},l.createElement("span",null,"\u652f\u4ed8\u5355\u53f7\uff1a",t.paymentReference),l.createElement(P.a,{message:n.statusMsg,type:n.statusType})),l.createElement(m.b,{options:[{label:"\u652f\u4ed8\u65b9\u5f0f",value:r||"--"},{label:"\u652f\u4ed8\u65f6\u95f4",value:d()(t.dateTime).format("YYYY-MM-DD HH:mm:ss")},{label:"\u652f\u4ed8\u91d1\u989d",value:t.amount&&"\xa5 ".concat(t.amount)}]}))}})),l.createElement(F.a,{title:"\u9000\u7968\u7533\u8bf7\u586b\u5199"}),l.createElement(p.a,{defaultValue:{name:{firstName:null===et||void 0===et||null===(U=et.contactDetails)||void 0===U||null===(q=U.name)||void 0===q?void 0:q.firstName,surname:null===et||void 0===et||null===(z=et.contactDetails)||void 0===z||null===(K=z.name)||void 0===K?void 0:K.surname},phone:(null===jt||void 0===jt?void 0:jt.mobilePhone)||""},confirmRefund:St,productId:(null===(J=W.state)||void 0===J?void 0:J.pramas.flightProductId)||0,bookingId:(null===(Q=W.state)||void 0===Q?void 0:Q.pramas.bookingId)||"",isMilitary:wt})),l.createElement(r.a,{title:l.createElement("div",{className:"model-title"}," ",l.createElement("i",{className:"icon-info-fill"})," \u63d0\u793a\u4fe1\u606f"),visible:!!gt,maskClosable:!1,onCancel:function(){Et(null)},onOk:function(){!function(){var t=yt;at(!0),Z?Object(k.f)(W.state.pramas.bookingId,{refundRemarksId:lt,cancellationCostId:mt}).then((function(t){D.a.push({state:{bookingReference:t.bookingReference},pathname:"/flights/orderDetail"})})).catch((function(t){at(!1),B.a.warning({content:Object(h.b)(t),okText:"\u786e\u8ba4"})})):f.c.booking.refund.confirmRefund({cancellationCostId:t.cancellationCostId,bookingId:W.state.pramas.bookingId,productId:W.state.pramas.flightProductId,type:"flight"}).then((function(t){D.a.push({state:{bookingReference:t.bookingReference},pathname:"/flights/orderDetail"})})).catch((function(t){at(!1),B.a.warning({content:Object(h.b)(t),okText:"\u786e\u8ba4"})}))}()},cancelButtonProps:{disabled:it},okButtonProps:{loading:it},closable:!1},gt))}}}]);

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.