PageSourceSearch

https://www.longjianghk.com/static/js/107.2c1144bf.chunk.js

js longjianghk.com collected 2026-10-02 20:07:17 UTC 6,585 bytes, 1 lines download raw bytes

1(this["webpackJsonpnew-era"]=this["webpackJsonpnew-era"]||[]).push([[107,29],{2608:function(e,t,n){},2779:function(e,t,n){"use strict";n.r(t);n(62);var i=n(24),o=n(5),a=n(3),r=n(0),c=n(2453),l=n(312),s=n(570),u=n(821),d=n(43),p=n(50),m=n.n(p),f=n(67),b=n(211),v=n(31),g=n.n(v),h=n(314),y=n(1022),O=n(331),I=n(41),j=n(66),k=(n(2608),n(816)),A=n(2441),E=function(e){var t=!1,n=e.INSURANCE,i=e.SEAT,o=e.BAGGAGE,a=e.MEAL;return(n||i||o||a)&&(t=!0),t};t.default=function(e){var t,n=r.useState([]),v=Object(a.a)(n,2),N=v[0],B=v[1],T=e.location,w=Object(r.useState)(null===T||void 0===T||null===(t=T.state)||void 0===t?void 0:t.type),C=Object(a.a)(w,2),S=C[0],M=C[1],x=Object(r.useState)(""),L=Object(a.a)(x,2),P=L[0],D=L[1],H=Object(r.useState)(""),F=Object(a.a)(H,2),R=F[0],Y=F[1],_=Object(r.useState)(!1),q=Object(a.a)(_,2),G=q[0],W=q[1];r.useEffect((function(){if("MMB"!==S){var e=[],t=d.e.get("ac");t&&(e=K(null===t||void 0===t?void 0:t.externalFlightBookings,"AC"),D(t.id),Y(t.bookingId),J(t,e,"AC")),B(e),M("AC")}else{var n=null===T||void 0===T?void 0:T.state,i=n.externalFlightBookings,o=void 0===i?{}:i,a=n.bookingId;Y(a);var r=K(o,"MMB");J({externalFlightBookings:o},r,"MMB"),B(r),M("MMB")}}),[]);var J=function(e,t,n){if(t&&1===t.length){var i=t[0];U(i[0].productId,i[0].reservationId,e.id,n)}},K=function(e,t){var n=[];if(!e)return I.a.warning({title:"\u63d0\u793a",content:"\u6ca1\u6709\u4efb\u4f55\u53ef\u9009\u822a\u6bb5",okText:"\u786e\u5b9a",onOk:function(){l.a.push("/")}}),[];var i=e.filter((function(e){if(y.i.includes(e.modificationType))return e.originalProductNumber})),a=null===e||void 0===e?void 0:e.sort((function(e,t){return e.modificationType&&t.modificationType?Number(t.productId)-Number(e.productId):e.modificationType?-1:t.modificationType?1:Number(t.productId)-Number(e.productId)}));return null===a||void 0===a||a.forEach((function(e){if(!i.includes(e.productId)&&"BOOKED"===e.bookingStatus){var a=[];e.flightBounds.forEach((function(n){n.boundSegments.forEach((function(n){n.connection&&t===u.a.AC&&delete n.connection,a.push(Object(o.a)(Object(o.a)({},n),{},{productId:e.productId,reservationId:e.reservationId}))}))})),n.push(a)}})),n},U=function(e,t,n,i){if(W(!0),"MMB"!==S){var o={purchaseRequest:{reservationId:t,resultSetId:n||P}};p.Http.external._createBookingWithExternalFlightBooking(o).then((function(t){var n=t.bookingId,o=t.bookingType;Y(n),"INTERNAL_BOOKING_BY_PLATFORM"===o?Object(O.a)("\u60a8\u9009\u62e9\u7684\u884c\u7a0b\u5b58\u5728\u4e8e\u7f51\u7ad9\u5df2\u6709\u8ba2\u5355\u4e2d\uff0c\n\u5373\u5c06\u8df3\u8f6c\u5230\u8ba2\u5355\u8be6\u60c5\u9875\u9762\u9009\u8d2d\u9644\u52a0\u670d\u52a1\u3002\n",(function(){l.a.push({pathname:"/flights/orderDetail",state:{productId:e,bookingId:n,type:"AC"}})})):p.Http.booking._getBookingById(n).then((function(e){var t,o=e.flightProducts,a=null===(t=(void 0===o?[]:o)[0])||void 0===t?void 0:t.productId;m.a.ancillary.checkAncillaryAvailability(n,a).then((function(e){E(e)?l.a.push({pathname:"/ancillary",state:{productId:a,bookingId:n,type:i||S}}):(W(!1),Object(O.a)(Object(j.a)("airlines.airLinesNoAncillary")))})).catch((function(e){Object(O.a)(Object(f.b)(e)),W(!1)}))})).catch((function(e){Object(O.a)(Object(f.b)(e)),W(!1)}))})).catch((function(e){Object(O.a)(Object(f.b)(e),(function(){l.a.push("/")}))}))}else{var a=R||T.state.bookingId;m.a.ancillary.checkAncillaryAvailability(a,e).then((function(t){E(t)?l.a.push({pathname:"/ancillary",state:{productId:e,bookingId:a,type:S}}):(Object(O.a)("\u5f53\u524d\u65e0\u53ef\u9500\u552e\u7684\u9644\u52a0\u670d\u52a1"),W(!1))})).catch((function(e){Object(O.a)(Object(f.b)(e)),W(!1)}))}},z=Object(s.e)(u.a.AC),Q={steps:z.arr,current:z.index};return r.createElement("div",null,r.createElement(b.a,{spinning:G},r.createElement(k.default,{stepsProps:Q}),r.createElement("div",{className:"contain container"},r.createElement(A.a,{title:"\u8bf7\u9009\u62e9\u60a8\u7684\u884c\u7a0b"}),null===N||void 0===N?void 0:N.map((function(e,t){return r.createElement("div",{key:t,className:"segment-context"},r.createElement("div",{className:"segment-items"},null===e||void 0===e?void 0:e.map((function(e){return function(e){var t,n,i=e.flightSegment,a=e.connection,l=Object(o.a)(Object(o.a)({},i),{},{airLineInfos:[{operatingAirlineInfo:i.operatingAirlineInfo,marketingAirlineInfo:i.marketingAirlineInfo,equipmentType:i.equipmentType}],connection:a,numberOfConnect:0}),s=g()(null===i||void 0===i||null===(t=i.departure)||void 0===t?void 0:t.dateTime).format("YYYY\u5e74MM\u6708DD\u65e5"),u=Object(h.b)(null===i||void 0===i||null===(n=i.departure)||void 0===n?void 0:n.dateTime).week;return r.createElement("div",{className:"segment-item"},r.createElement(c.a,Object.assign({},l,{renderTime:r.createElement("span",null,"".concat(s," ").concat(u))})))}(e)}))),r.createElement("div",{className:"segment-button"},r.createElement(i.a,{onClick:function(){var t,n;U(null===(t=e[0])||void 0===t?void 0:t.productId,null===(n=e[0])||void 0===n?void 0:n.reservationId)},type:"primary",className:"choose-bnt"},"\u9009\u62e9")))})))))}},816:function(e,t,n){"use strict";n.r(t);var i=n(0),o=n.n(i),a=n(173);t.default=function(e){var t=e.stepsProps,n=Object(a.loadThemeComponent)('{"id":"progressbar-standard","version":"0.0.9","metaData":{"label":"\u64cd\u4f5c\u6b65\u9aa4\u6761","description":"\u7528\u4e8e\u9500\u552e\u6d41\u7a0b\u8fdb\u5ea6\u5c55\u793a","category":"general","type":"progressbar","apiHost":{"cmsHost":false,"tRtApiHost":false,"locationApiHost":false},"propsSchema":{"type":"object","properties":{"general":{"type":"object","title":"\u901a\u7528\u914d\u7f6e","properties":{"showPosition":{"title":"\u663e\u793a\u4f4d\u7f6e","type":"string","enum":["left","center","right"],"enumNames":["\u9760\u5de6\u4fa7","\u5c45\u4e2d","\u9760\u53f3\u4fa7"]},"containerWidth":{"title":"\u6b65\u9aa4\u6761\u5bbd\u5ea6","type":"number","widget":"slider","min":50,"max":100}
1,"hasLine":{"title":"\u8fde\u63a5\u7ebf","type":"string","enum":["show","hidden"],"enumNames":["\u663e\u793a","\u4e0d\u663e\u793a"]}}},"iconConfig":{"type":"object","title":"\u56fe\u6807\u914d\u7f6e","properties":{"showStyle":{"title":"\u663e\u793a","type":"string","enum":["icon","number"],"enumNames":["\u56fe\u6807","\u6570\u5b57"]}}}}},"defaultFormData":{"general":{"showPosition":"center","containerWidth":100,"hasLine":"show"},"iconConfig":{"showStyle":"icon"}},"i18n":{}},"formData":{"general":{"showPosition":"center","containerWidth":100,"hasLine":"show"},"iconConfig":{"showStyle":"icon"}},"identity":"xivHqjOCgT"}'),i=n.Component,r=n.meta;return o.a.createElement(i,Object.assign({},r,t))}}}]);

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.