PageSourceSearch

https://alpha-beds.com/2057.d56b5b53.async.js

js alpha-beds.com collected 2026-10-09 01:03:02 UTC 13,937 bytes, 1 lines download raw bytes

1(self.webpackChunk=self.webpackChunk||[]).push([[2057,2957,2319,9006],{52957:function(n,e,r){"use strict";r.r(e),r.d(e,{transformCarrierNameByMarketingCarrier:function(){return g},transformCountryNameByCityCode:function(){return v},transformAriportNameByAirportCode:function(){return k}});r(71373);var t=r(78640),a=(r(25356),r(3645)),c=r(78646),i=r(82005),o=r(42273),s=r(12924),u=r(399),d=r.n(u),l=r(11834),f=r(13273),m=r(2319),h=r(4637),p="KLmn",g=function(n){try{var e=localStorage.getItem("app-airCompanyList"),r=JSON.parse(e||"{}"),t=r[n];if(t&&Reflect.has(r,n)){var a="";switch((0,f.Kd)()){case"en-US":a=t.enname;break;case"zh-CN":a=t.zhname;break;default:a=t.zhChineseName}return a}return""}catch(n){return""}},v=function(n){try{var e=localStorage.getItem("app-cityList"),r=JSON.parse(e||"{}"),t=r[n];if(t&&Reflect.has(r,n)){var a="";switch((0,f.Kd)()){case"en-US":a=t.countryEnname;break;case"zh-CN":a=t.countryZhname;break;default:a=t.zhCountryName}return a}return""}catch(n){return""}},k=function(n){try{var e=localStorage.getItem("app-airportList"),r=JSON.parse(e||"{}"),t=r[n];if(t&&Reflect.has(r,n)){var a="";switch((0,f.Kd)()){case"en-US":a=t.enname;break;case"zh-CN":a=t.zhname;break;default:a=t.zhChineseName}return a}return""}catch(n){return""}};e.default=function(n){var e=(0,s.useState)("".concat(v(n.origin),"(").concat(n.origin,")")||0),r=(0,o.Z)(e,2),u=r[0],g=r[1],k=(0,s.use
1State)("".concat(v(n.destination),"(").concat(n.destination,")")||0),b=(0,o.Z)(k,2),x=b[0],N=b[1],j=(0,s.useState)(!1),_=(0,o.Z)(j,2),w=_[0],Y=_[1],C=(0,s.useState)(!1),y=(0,o.Z)(C,2),S=y[0],D=y[1],M=(0,s.useState)([]),Z=(0,o.Z)(M,2),A=Z[0],T=Z[1],F=(0,s.useState)([]),z=(0,o.Z)(F,2),O=z[0],B=z[1],H=(0,s.useRef)(null),R=(0,s.useRef)(null),L=function(n){if(!n)return"";var e=n.match(/\(((?:(?!\))[\s\S])+)\)[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*$/);return e?e[1]:n.trim()},K=(0,s.useRef)({origin:n.origin||L(u),destination:n.destination||L(x)}),U=function(n,e){"from"===n?g(e):N(e)},E=function(){n.disabled||setTimeout(function(){var e,r={origin:u,destination:x},t=L(r.origin),a=L(r.destination),c=K.current.origin,i=K.current.destination;t===c&&a===i||(null===(e=n.onChange)||void 0===e||e.call(n,{origin:t,destination:a}),K.current={origin:t,destination:a})})},I=function(){var n=(0,i.Z)((0,c.Z)().mark(function n(e,r){var t,a,i;return(0,c.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(t=function(n){var e="";switch((0,f.Kd)()){case"en-US":e=n.enname;break;case"zh-CN":e=n.zhname;break;default:e=n.zhChineseName}return e},e){n.next=3;break}return n.abrupt("return",[]);case 3:return n.prev=3,n.next=6,(0,l.Z)("/search_hint/searchWord",{method:"get",params:{word:e,type:"en-US"===(0,f.Kd)()?2:1},signal:r});case 6:if((a=n.sent).success){n.next=9;break}return n.abrupt("return",[]);case 9:return i=Array.isArray(a.data)?a.data:[],n.abrupt("return",i.reduce(function(n,e){var r=t(e),a="".concat(r,"(").concat(e.code,")"),c="1"===e.type?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("span",{_nk:"".concat(p,"11"),children:[e.code,"  ",r]}),(0,h.jsx)("span",{_nk:"".concat(p,"12"),children:(0,m.ho)("bingtrip.page.home.word.all_airports")}),(0,h.jsxs)("div",{_nk:"".concat(p,"21"),children:[v(e.code),"  ",r]})]}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("span",{_nk:"".concat(p,"13"),children:[e.code,"  ",r]}),(0,h.jsxs)("div",{_nk:"".concat(p,"22"),children:[v(e.code),"  ",r]})]});return n.push({value:a,label:c}),Array.isArray(e.airportList)&&e.airportList.length>0&&e.airportList.forEach(function(r){return n.push({value:"".concat(t(r),"(").concat(r.code,")"),label:(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("span",{_nk:"".concat(p,"14"),children:[r.code,"  ",t(r)]}),(0,h.jsxs)("div",{_nk:"".concat(p,"23"),children:[v(e.code),"  ",t(r)]})]})})}),n},[]));case 13:return n.prev=13,n.t0=n.catch(3),n.abrupt("return",[]);case 16:case"end":return n.stop()}},n,null,[[3,13]])}));return function(e,r){return n.apply(this,arguments)}}(),J=function(){var e=(0,i.Z)((0,c.Z)().mark(function e(r){var t,a,i,o;return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.disabled){e.next=2;break}return e.abrupt("return");case 2:return null===(t=H.current)||void 0===t||t.abort(),a=new AbortController,H.current=a,Y(!0),i=n.fetchOptions||I,e.next=9,i(r,a.signal);case 9:o=e.sent,a.signal.aborted||(T(o),Y(!1));case 11:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}(),G=function(){var e=(0,i.Z)((0,c.Z)().mark(function e(r){var t,a,i,o;return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.disabled){e.next=2;break}return e.abrupt("return");case 2:return null===(t=R.current)||void 0===t||t.abort(),a=new AbortController,R.current=a,D(!0),i=n.fetchOptions||I,e.next=9,i(r,a.signal);case 9:o=e.sent,a.signal.aborted||(B(o),D(!1));case 11:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}();return(0,h.jsxs)("div",{className:d().areaContainer,_nk:"".concat(p,"24"),children:[(0,h.jsxs)("div",{className:d().side,_nk:"".concat(p,"25"),children:[(0,h.jsx)("div",{className:d().label,_nk:"".concat(p,"26"),children:(0,m.ho)("bingtrip.page.search.word.from")}),(0,h.jsx)(t.Z,{value:u,bordered:!1,options:A,placeholder:(0,m.ho)("bingtrip.page.home.word.city"),onSearch:J,onSelect:function(n){U("from",String(n)),E()},onChange:function(n){return U("from",String(n))},disabled:n.disabled,className:d().input,notFoundContent:w?(0,h.jsx)(a.Z,{size:"small",_nk:"".concat(p,"41")}):null,filterOption:!1,_nk:"".concat(p,"31")})]}),(0,h.jsxs)("div",{className:d().middle,_nk:"".concat(p,"27"),children:[(0,h.jsx)("div",{className:d().centerDivi
1der,_nk:"".concat(p,"28")}),(0,h.jsx)("button",{type:"button",className:d().swapBtn,onClick:function(){var e;if(!n.disabled){var r={origin:x,destination:u};g(r.origin),N(r.destination);var t=L(r.origin),a=L(r.destination);null===(e=n.onChange)||void 0===e||e.call(n,{origin:t,destination:a}),K.current={origin:t,destination:a}}},"aria-label":"swap",_nk:"".concat(p,"51"),children:"↔"})]}),(0,h.jsxs)("div",{className:d().side,_nk:"".concat(p,"29"),children:[(0,h.jsx)("div",{className:d().label,_nk:"".concat(p,"2a"),children:(0,m.ho)("bingtrip.page.search.word.to")}),(0,h.jsx)(t.Z,{value:x,bordered:!1,options:O,placeholder:(0,m.ho)("bingtrip.page.home.word.city"),onSearch:G,onSelect:function(n){U("to",String(n)),E()},onChange:function(n){return U("to",String(n))},disabled:n.disabled,className:d().input,notFoundContent:S?(0,h.jsx)(a.Z,{size:"small",_nk:"".concat(p,"42")}):null,filterOption:!1,_nk:"".concat(p,"32")})]})]})}},22057:function(n,e,r){"use strict";r.r(e);var t=r(12924),a=r(11333),c=r.n(a),i=r(19455),o=r.n(i),s=r(2319),u=r(52957),d=r(4637),l="T1TS",f=function(n){return n?c()(n,"YYYYMMDDHHmm").format("MM-DD"):""},m=function(n){return n?c()(n,"YYYYMMDDHHmm").format("HH:mm"):""};function h(n,e,r){if(!e||0===e.length)return null;var t=e[0],a=e[e.length-1],c=function(n,e){if(!n||0===n.length)return"";var r=n.reduce(function(n,e){return n+((null==e?void 0:e.duration)||0)},0)+e.transfer.reduce(function(n,e){return n+((null==e?void 0:e.transferDuration)||0)},0),t=Math.floor(r/60),a=r%60;return"".concat(t,"h").concat(a,"m")}(e,r),i="".concat((0,u.transformAriportNameByAirportCode)(t.depAirport)," - ").concat((0,u.transformAriportNameByAirportCode)(a.arrAirport)),s=e.reduce(function(n,e){return"".concat(n," ").concat(e.flightNumber)},""),h=window.routerBase||"/";return(0,d.jsxs)("div",{className:o().legWrapper,_nk:"".concat(l,"11"),children:[(0,d.jsxs)("div",{className:o().legHeader,_nk:"".concat(l,"12"),children:[(0,d.jsx)("span",{className:o().flag,_nk:"".concat(l,"21"),children:n}),(0,d.jsx)("span",{className:o().title,_nk:"".concat(l,"22"),children:f(e[0].depTime)}),(0,d.jsx)("span",{className:o().title,_nk:"".concat(l,"23"),children:i}),(0,d.jsx)("span",{className:o().duration,_nk:"".concat(l,"24"),children:c})]}),(0,d.jsx)("div",{className:o().timeline,_nk:"".concat(l,"13"),children:e.map(function(n,e){return(0,d.jsxs)("div",{className:o().segmentRow,_nk:"iAr".concat(l,"14"),children:[(0,d.jsxs)("div",{className:o().carrierBox,_nk:"".concat(l,"15"),children:[(0,d.jsx)("img",{className:o().carrierLogo,src:"".concat(h,"carrier/").concat(n.marketingCarrier,".png"),_nk:"".concat(l,"31")}),(0,d.jsxs)("div",{className:o().carrierText,_nk:"".concat(l,"16"),children:[(0,d.jsx)("div",{className:o().carrierName,_nk:"".concat(l,"17"),children:(0,u.transformCarrierNameByMarketingCarrier)(n.marketingCarrier)}),(0,d.jsx)("div",{className:o().flightNo,_nk:"".concat(l,"18"),children:n.flightNumber||s})]})]}),(0,d.jsxs)("div",{className:o().timePlace,_nk:"".concat(l,"19"),children:[(0,d.jsxs)("div",{className:o().timeCol,_nk:"".concat(l,"1a"),children:[(0,d.jsx)("div",{className:o().date,_nk:"".concat(l,"1b"),children:f(n.depTime)}),(0,d.jsx)("div",{className:o().time,_nk:"".concat(l,"1c"),children:m(n.depTime)}),(0,d.jsxs)("div",{className:o().airport,_nk:"".concat(l,"1d"),children:[(0,u.transformAriportNameByAirportCode)(n.depAirport)," ",n.depTerminal]})]}),(0,d.jsxs)("div",{className:o().axis,_nk:"".concat(l,"1e"),children:[(0,d.jsx)("span",{className:o().dot,_nk:"".concat(l,"25")}),(0,d.jsx)("span",{className:o().line,_nk:"".concat(l,"26")}),(0,d.jsx)("span",{className:o().dot,_nk:"".concat(l,"27")})]}),(0,d.jsxs)("div",{className:o().timeCol,_nk:"".concat(l,"1f"),children:[(0,d.jsx)("div",{className:o().date,_nk:"".concat(l,"1g"),children:f(n.arrTime)}),(0,d.jsx)("div",{className:o().time,_nk:"".concat(l,"1h"),children:m(n.arrTime)}),(0,d.jsxs)("div",{className:o().airport,_nk:"".concat(l,"1i"),children:[(0,u.transformAriportNameByAirportCode)(n.arrAirport)," ",n.arrTerminal]})]})]})]},"".concat(n.marketingCarrier,"-").concat(n.flightNumber,"-").concat(e))})})]})}e.default=function(n){var e=n.outbound,r=n.inbound,a=n.flight,c=(0,t.useMemo)(function(){return Boolean(r&&r.length>0)},[r]);return(0,d.jsxs)("div",{className:o().tripDetail,_nk:"".concat(l,"1j"),children:[h((0,s.ho)("bingtrip.page.passenger.word.newOutbound"),e,a[0]),c&&h((0,s.ho)("bingtrip.page.passenger.word.inbound"),r,a[1])]})}},2319:function(n,e,r){"use strict";r.d(e,{nO:function(){return d},ho:function(){return l},oA:function(){return f},q8:function(){return m},KV:function(){return h},cY:function(){return p},mu:function(){return g},O7:function(){return v},GL:function(){return k},xC:function(){return b},ib:function(){return x},Ze:function(){return N},Vd:function(){return j},Zz:function(){return _},Gd:function(){return w},p6:function(){return Y}
1,LY:function(){return C},Rt:function(){return y}});var t=r(78646),a=(r(9613),r(17148)),c=r(82005),i=r(11333),o=r.n(i),s=r(13273),u=(r(31223),(0,s.Kd)());o().locale(u);var d=function(n){return(0,s.YB)().formatMessage({id:n})},l=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return e?(0,s.lw)().formatMessage({id:n},e):(0,s.lw)().formatMessage({id:n})===n?"":(0,s.lw)().formatMessage({id:n})},f=function(n,e){var r=o().monthsShort(),t=o().weekdaysShort(),a="";switch(n){case"YYYY":a=o()(e).format("YYYY");break;case"MM":a=o()(e).format("MM");break;case"DD":a=o()(e).format("DD");break;case"dddd":a=o()(e).format("dddd");break;case"day":a=t[o()(e).day()];break;case"month":a=r[o()(e).month()];break;default:a="Selete Date"}return a},m=function(n){return["".concat(f("DD",n)," ").concat(f("month",n)),"".concat(f("dddd",n)),"".concat(f("YYYY",n))]},h=function(n){return"".concat(f("day",n),", ").concat(f("DD",n)," ").concat(f("month",n)," ").concat(f("YYYY",n))},p=function(n){return n&&n<o()().startOf("day")},g=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new Date;r.setDate(r.getDate()+n);var t=r.getFullYear(),a=r.getMonth()+1,c=r.getDate();return"".concat(t,"-").concat(a<10?"0".concat(a):a,"-").concat(c<10?"0".concat(c):c).concat(e?" 00:00:00":"")},v=function(n){var e=0;return Object.keys(n).forEach(function(r){e+=n[r]}),e},k=function(n,e){var r=new Date(n),t=new Date(e).getTime()-r.getTime();return Math.floor(t/864e5)},b=function(n){return JSON.parse(localStorage.getItem("cacheAccountName")||"")[n]};var x=function(n){return n?function(n){var e=parseFloat(n);if(isNaN(e))return alert("传递参数错误,请检查!"),!1;var r=(e=Math.round(100*n)/100).toString(),t=r.indexOf(".");for(t<0&&(t=r.length,r+=".");r.length<=t+2;)r+="0";return r}(parseFloat(n)):n},N=function(n,e){var r=new Date(n),t=new Date(e).getTime()-r.getTime();return Math.floor(t/864e5)},j=function(n,e){for(var r=0,t=1;t<n.length;){var a=n.slice(r,r+1)[0];a["".concat(e,"RowSpan")]||(a["".concat(e,"RowSpan")]=1),a[e]===n[t][e]?(a["".concat(e,"RowSpan")]++,n[t]["".concat(e,"RowSpan")]=0):r=t,t++}return n},_=function(n){return new Date(n).getTime()<Date.now()},w=function(){var n=(0,c.Z)((0,t.Z)().mark(function n(e,r){var c,i,o,s,u,d,l,f;return(0,t.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return c={data:[],success:!0,total:0},n.prev=2,n.next=5,e(r);case 5:(i=n.sent)?200===i.code&&(o=i.data,s=o.rows,u=void 0===s?[]:s,d=o.total,l=void 0===d?0:d,f=i.success,c={data:u||[],success:f,total:l}):a.default.error({message:"Failed",description:i.msg}),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),a.default.error({message:"Failed",description:"Failed"});case 12:return n.abrupt("return",c);case 13:case"end":return n.stop()}},n,null,[[2,9]])}));return function(e,r){return n.apply(this,arguments)}}(),Y=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return n?o()(n).format(e):""},C=function(n,e){return n.every(function(n){return e.includes(n)})},y=function(n,e){if(n.length!==e.length)return!1;for(var r=0;r<n.length;r++){var t=n[r],a=e[r];if(o()(t.depDateTime).format("YYYY-MM-dd HH:mm")!==o()(a.depDateTime).format("YYYY-MM-dd HH:mm")||t.flightNum!==a.flightNum)return!1}return!0}}}]);

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.