PageSourceSearch

https://mytour.vn/_next/static/chunks/pages/payment/transportation…/[transactionId]-811ff3fa78bc59c5.js

js mytour.vn collected 2026-09-24 21:25:45 UTC 16,837 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6660],{10249:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});let o=(0,n(84439).n9)()(e=>({wrapperContainer:{[e.breakpoints.down("xl")]:{maxWidth:450,margin:"0 auto"}},container:{fontSize:14,lineHeight:"17px",color:e.palette.black.black3,border:"1px solid #EDF2F7",[e.breakpoints.down("lg")]:{border:"none"}},infoTransport:{borderTop:"1px solid #EDF2F7",padding:"16px 16px 12px 16px"},topInfo:{display:"flex",alignItems:"center",justifyContent:"space-between"},leftTopInfo:{display:"flex",flexDirection:"column",gap:"4px",color:e.palette.gray.grayDark8},imgTransport:{height:94,width:135},car_model:{fontSize:16,lineHeight:"20px",fontWeight:600,color:e.palette.black.black3},addressItem:{display:"flex",alignItems:"center",gap:"6px"},addressText:{flex:"1"},diverAddress:{borderLeft:"1px solid #718096",height:6,marginLeft:10},infoCustomer:{marginTop:12,paddingTop:12,borderTop:"1px solid #EDF2F7",display:"flex",gap:"4px",flexDirection:"column"},emailCustomer:{color:"#4A5568",fontSize:12,lineHeight:"14px"},diverBlock:{height:6,backgroundColor:"#EDF2F7"},paymentBlock:{display:"flex",gap:"8px",flexDirection:"column",padding:"16px 16px 0 16px"},titleText:{fontSize:16,lineHeight:"20px",fontWeight:600},subTitlePayment:{fontSize:12,lineHeight:"14px",color:"#48BB78",[e.breakpoints.up("md")]:{display:"none"}},promotionBox:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"10px 16px"},leftPromotion:{display:"flex",alignItems:"center",gap:"12px",fontSize:16,fontWeight:600},rightPromotion:{display:"flex",alignItems:"center",gap:"2px",color:"#00B6F3"},textPromo:{display:"flex"},promo:{border:"1px solid ".concat(e.palette.gray.grayLight24),padding:"4px 6px",marginLeft:8,borderRadius:8,fontSize:12,lineHeight:"14px",display:"flex",alignItems:"center",gap:"4px"}}))},20014:(e,t,n)=>{"use strict";n.d(t,{$2:()=>Y,B7:()=>y,Bb:()=>Z,CP:()=>W,D0:()=>c,Fe:()=>d,Ig:()=>$,Ii:()=>V,J5:()=>C,Jt:()=>I,NA:()=>F,NB:()=>N,P$:()=>Q,PJ:()=>g,SE:()=>D,Tl:()=>q,VV:()=>O,Vh:()=>f,Vq:()=>a,WH:()=>K,X$:()=>S,Z8:()=>U,Z_:()=>h,_5:()=>et,d5:()=>M,fG:()=>J,gy:()=>X,hH:()=>B,i0:()=>G,jT:()=>p,jY:()=>u,jn:()=>ee,k0:()=>w,lC:()=>H,lw:()=>A,mz:()=>T,nG:()=>P,oJ:()=>v,od:()=>s,oj:()=>b,q3:()=>L,qq:()=>R,rY:()=>j,tD:()=>_,ts:()=>k,vh:()=>z,xD:()=>E,y0:()=>x,yN:()=>m});var o=n(34321),i=n(52804),r=n(93172),l=n(4110);let a=e=>{let t={method:"post",url:"/travel-options/hot-tickets",data:e,noAuthentication:!1,severVice:i.zpK};return(0,o.A)(t)},s=e=>{let t={method:"post",url:"/flight-cache/hot-ticket/seo-travel-option",data:e,noAuthentication:!1,severVice:i.D0c};return(0,o.A)(t)},c=(e,t)=>{let n={method:"post",url:"/travel-options/hot-tickets",data:e,noAuthentication:!1,severVice:i.zpK,cancelToken:t};return(0,o.A)(n)},d=e=>{let t={method:"get",url:"/guru/airports",params:e,noAuthentication:!1,severVice:i.zpK};return(0,o.A)(t)},u=e=>{let t={method:"post",url:"/flights/searchOneDirectionTickets",data:e,headers:(0,l.EJ)(e),noAuthentication:!1,severVice:i.D0c};return(0,o.A)(t)},p=e=>{let t={method:"post",url:"/flights/searchRoundTripTickets",data:e,headers:(0,l.EJ)(e),noAuthentication:!1,severVice:i.D0c};return(0,o.A)(t)},h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={method:"get",params:e,url:"/flights/getGeneralInformation",noAuthentication:!1,severVice:i.D0c};return(0,o.A)(t)},g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={method:"get",params:e,url:"/account/getFlightBookingDetail",noAuthentication:!1,severVice:i.D0c};return(0,o.A)(t)},m=e=>{let t={method:"post",url:"/flights/getTicketDetail",data:e,noAuthentication:!1,severVice:i.D0c};return(0,o.A)(t)},v=e=>{let t={method:"post",url:"/flights/check-ticket-price",data:e,noAuthentication:!1,severVice:i.D0c};return(0,o.A)(t)},f=e=>{let t={method:"post",url:"/account/getRewardsHistory",data:e,noAuthentication:!1,severVice:i.D0c};return(0,o.A)(t)},A=e=>{let t={method:"post",url:"/account/getRewardsHistory",data:e,noAuthentication:!1,severVice:i.D0c};return(0,r.A)(t)},x=e=>{let t={method:"post",url:"/utils/getEnterpriseInfo",data:e,noAuthentication:!1,severVice:i.D0c};return(0,o.A)(t)},y=e=>{let t={method:"post",url:"/insurance/getInsurancePackage",data:e,noAuthentication:!1,severVice:i.D0c};return(0,o.A)(t)},D=e=>{let t={method:"post",url:"/smartlink/displayResult",data:e,noAuthentication:!1,severVice:i.D0c};return(0,o.A)(t)},T=e=>{let t={method:"post",data:e,url:"payment/payments/info",noAuthentication:!1,severVice:i.yUp};return(0,o.A)(t)},k=e=>{let t={method:"post",url:"/booker/getPaymentMethodOfHoldingBooking",data:e,noAuthentication:!1,severVice:i.D0c};return(0,o.A)(t)},_=e=>{let t={method:"post",url:"/booker/paymentForHoldingBookingV2",data:e,noAuthentication:!1,severVice:i.D0c};return(0,o.A)(t)},b=e=>{let t={method:"get",url:"/account/getAllCountries",params:e,severVice:i.D0c};return(0,o.A)(t)},I=e=>{let t={method:"get",url:"/ancillary-options",params:e,severVice:i.zpK};return(0,o.A)(t)},E=e=>{let t={method:"post",url:"/ancillary-options",data:e,severVice:i.zpK};return(0,o.A)(t)},V=e=>{let t={method:"get",url:"/channels/public/bookings",params:e,severVice:i.zpK};return(0,o.A)(t)},N=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={method:"post",url:"/payments",data:e,headers:t,noAuthentication:!1,severVice:i.$D2};return(0,o.A)(n)},F=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={method:"post",url:"/bookings/create",data:e,headers:(null==t?void 0:t.kayakclickid)?t:{},noAuthentication:!1,severVice:i.zpK};return(0,o.A)(n)},S=e=>{let t={method:"post",url:"/check-code",data:e,noAuthentication:!1,severVice:i.cM0};return(0,o.A)(t)},z=e=>{let t={method:"post",url:"/promotion-codes",data:e,noAuthentication:!1,severVice:i.cM0};return(0,o.A)(t)},C=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={method:"post",url:"/payment-methods",data:e,headers:t,noAuthentication:!1,severVice:i.$D2};return(0,o.A)(n)},P=e=>{let t={method:"get",url:"/channels/bookings",params:e,noAuthentication:!1,severVice:i.zpK};return(0,o.A)(t)},Y=e=>{let t={method:"get",url:"/channels/bookings/".concat(e),noAuthentication:!1,severVice:i.zpK};return(0,o.A)(t)},K=e=>{let t={method:"get",url:"/booker/booking-invoices/".concat(e),noAuthentication:!1,severVice:i.yUp};return(0,o.A)(t)},w=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={method:"get",params:e,url:"/guru/general-infos",noAuthentication:!1,severVice:i.zpK};return(0,o.A)(t)},R=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={method:"get",params:e,url:"/guru/general-infos",noAuthentication:!1,severVice:i.zpK,...t};return(0,r.A)(n)},B=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={method:"get",params:e,url:"/vat-books",severVice:i.yUp};return(0,o.A)(t)},L=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={method:"get",params:e,url:"/guru/airports",severVice:i.zpK};return(0,o.A)(t)},M=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={method:"get",params:e,url:"/airline-alliance",severVice:i.zpK};return(0,o.A)(t)},H=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={method:"get",params:e,url:"/channels/public/manual-post-booking",severVice:i.zpK};return(0,o.A)(t)},O=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={method:"post",url:"/hot-ticket/statistic/route",data:e,severVice:i.K5Z};return(0,o.A)(t)},U=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={method:"get",url:"/detail-policy/get-policy",params:e,severVice:i.NA$};return(0,o.A)(t)},W=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={method:"get",url:"/channels/bookings/baggage-options",params:e,severVice:i.zpK};return(0,o.A)(t)},X=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={method:"post",url:"/channels/bookings/change-baggage-requests",data:e,severVice:i.zpK};return(0,o.A)(t)},j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={method:"get",url:"/travel-options",params:e,severVice:i.zpK};return(0,o.A)(t)},q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={method:"get",url:"/channels/bookings/itineraries/change-itinerary-conditions",params:e,severVice:i.zpK};return(0,o.A)(t)},G=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={method:"post",url:"/channels/bookings/change-itinerary-requests",data:e,headers:(null==t?void 0:t.kayakclickid)?t:{},noAuthentication:!1,severVice:i.zpK};return(0,o.A)(n)},$=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={method:"get",url:"/channels/bookings/assets/eticket",params:e,severVice:i.zpK};return(0,o.A)(t)},J=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={method:"post",url:"/bookings/check-in",data:e,severVice:i.zpK};return(0,o.A)(t)},Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={method:"get",url:"/channels/bookings/cancellations/conditions",params:e,severVice:i.zpK};return(0,o.A)(t)},Q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={method:"get",url:"/channels/bookings/cancellations",params:e,severVice:i.zpK};return(0,o.A)(t)},ee=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={method:"get",url:"/channels/bookings/cancellations/charges",params:e,severVice:i.zpK};return(0,o.A)(t)},et=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={method:"post",url:"/channels/bookings/cancellations",data:e,severVice:i.zpK};return(0,o.A)(t)}},33156:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var o=n(18153),i=n(78224),r=n(84439),l=n(66703),a=n(89099),s=n(14232),c=n(43371),d=n(50308),u=n(50927),p=n(
152804),h=n(901),g=n(81034),m=n(72201),v=n(12116),f=n(95955),A=n(4110);let x=null,y=(0,r.n9)()(e=>({containerTransaction:{maxWidth:450,margin:"0 auto"},container:{fontSize:14,color:e.palette.black.black3,padding:"42px 16px 38px"},divider:{height:6,backgroundColor:e.palette.gray.grayLight22,margin:"0 -16px"},boxHotline:{margin:"16px 0 40px 0"},boxFotter:{position:"fixed",opacity:1,display:"flex",justifyContent:"space-between",alignItems:"center",zIndex:1e3,bottom:0,left:0,color:"#000",background:"#fff",width:"100%",borderTop:"2px solid #EDF2F7"},containerReceipt:{margin:"32px 0px 16px",borderRadius:8},iconLeft:{marginRight:12,display:"flex",alignItems:"center"},title:{paddingBottom:6},desc:{fontWeight:400},wrapBtn:{maxWidth:450,margin:"0 auto"},detailPrice:{padding:16,display:"flex",flexDirection:"column"},titleText:{fontSize:16,lineHeight:"20px",fontWeight:600},itemPrice:{height:44,display:"flex",alignItems:"center",justifyContent:"space-between",borderBottom:"1px solid #EDF2F7"},totalPayment:{display:"flex",justifyContent:"space-between",marginTop:12},leftTotalPayment:{display:"flex",flexDirection:"column"},totalPrice:{fontSize:18,fontWeight:600,lineHeight:"22px"},policyPayment:{padding:"16px 46px 136px",backgroundColor:"#EDF2F7",textAlign:"center"}})),D=0,T={PENDING:"PENDING",SETTLED:"SETTLED",FAILED:"FAILED"},k=()=>{let e=(0,h.A)(),{classes:t}=y(),n=(0,l.A)(),r=(0,a.useRouter)(),k=(0,d.Te)(),[_,b]=(0,s.useState)(T.FAILED),[I,E]=(0,s.useState)({}),[V,N]=(0,s.useState)({}),[F,S]=(0,s.useState)({}),[z,C]=(0,s.useState)([]),[P,Y]=(0,s.useState)(0);(0,s.useEffect)(()=>(r.query.transactionId&&(K(),x=setInterval(()=>{K()},1500)),()=>{clearInterval(x),D=0}),[r.query]);let K=async()=>{try{var e,t,n;0===P&&k({type:u.xF,payload:!0}),D+=1,console.log("router",r);let{data:o}=await (0,c.dp)({transactionId:r.query.transactionId,gatewayParams:r.asPath.split("?")[1]});Y(1);let i=(null==o||null==(e=o.data)?void 0:e.transactionInfo)||{};if(N(i),(null==i?void 0:i.paymentMethodInfo.code)===p.HS$.BANK_TRANSFER_2&&(S((null==o||null==(t=o.data)?void 0:t.transferInfo)||{}),C((null==o||null==(n=o.data)?void 0:n.transferOptions)||{})),i.status.toUpperCase()===T.SETTLED||i.status.toUpperCase()===T.FAILED||(null==i?void 0:i.paymentMethodInfo.code)===p.HS$.BANK_TRANSFER_2||(null==i?void 0:i.paymentMethodInfo.code.toUpperCase())==="PR"){b((null==i?void 0:i.paymentMethodInfo.code.toUpperCase())==="PR"?T.SETTLED:i.status.toUpperCase()),clearInterval(x);let e={tripi_ticket_code:null==i?void 0:i.bookingCode};w(e)}else{b(T.PENDING);let e={tripi_ticket_code:null==i?void 0:i.bookingCode};w(e)}k({type:u.xF,payload:!1}),10===D&&x&&clearInterval(x)}catch(e){k({type:u.xF,payload:!1})}},w=async e=>{try{let{data:t}=await (0,c.Sc)(e);(null==t?void 0:t.code)===200&&E(null==t?void 0:t.data)}catch(e){}};return(0,o.Y)(m.A,{title:"Đặt xe th\xe0nh c\xf4ng | Mytour.vn đảm bảo gi\xe1 tốt nhất!",children:0===P?"":(0,o.FD)(i.A,{className:t.containerTransaction,children:[(0,o.FD)(i.A,{className:t.container,children:[(0,o.Y)(v.A,{status:_,LIST_STATUS:T,transactionInfo:V,transferInfo:F,transferOptions:z,bookingDetail:I,isTransportation:!0}),(0,o.Y)("div",{style:{margin:"0 -16px"},children:(0,o.Y)(g.A,{bookingDetail:I})}),(0,o.Y)(i.A,{className:t.divider}),(0,o.Y)("div",{style:{margin:"0 -16px"},children:(0,o.FD)("div",{className:t.detailPrice,children:[(0,o.Y)("span",{className:t.titleText,children:e.IDS_MT_TEXT_PRICE_DETAIL}),(0,o.FD)("div",{className:t.itemPrice,children:[(0,o.Y)("span",{children:null==I?void 0:I.car_model}),(0,o.Y)("span",{style:{fontWeight:600},children:(0,A.pc)(null==V?void 0:V.bookingAmount)})]}),(null==V?void 0:V.paymentFee)>0&&(0,o.FD)("div",{className:t.itemPrice,children:[(0,o.Y)("span",{children:e.IDS_MT_TEXT_SURCHARGE}),(0,o.Y)("span",{children:"".concat((0,A.pc)(null==V?void 0:V.paymentFee,"",!1))})]}),(null==V?void 0:V.discount)>0&&(0,o.FD)("div",{className:t.itemPrice,children:[(0,o.Y)("span",{children:e.IDS_MT_TEXT_DISCOUNT_CODE}),(0,o.Y)("span",{style:{color:"#48BB78"},children:"-".concat((0,A.pc)(null==V?void 0:V.discount,"",!1))})]}),(0,o.FD)("div",{className:t.totalPayment,children:[(0,o.FD)("div",{className:t.leftTotalPayment,children:[(0,o.Y)("span",{style:{fontWeight:600},children:e.IDS_TEXT_ORDER_PAYMENT_TOTAL_PRICE}),(0,o.Y)("span",{className:t.desPaymentCompany,children:e.IDS_MT_TEXT_INCLUDE_TAX_FEE_VAT})]}),(0,o.Y)("span",{className:t.totalPrice,children:(0,A.pc)(null==V?void 0:V.amount)})]})]})}),(0,o.Y)(i.A,{className:t.divider})]}),(0,o.Y)(i.A,{className:t.boxFotter,children:(0,o.Y)(f.A,{className:t.wrapBtn,color:"#fff",backgroundColor:n.palette.secondary.main,borderRadius:8,height:48,padding:"16px 40px",fontSize:16,fontWeight:600,handleClick:()=>{r.push({pathname:p.GEI.HOME.href})},children:e.IDS_MT_TEXT_NOT_FOUND_403_DES_3})})]})})}},38186:(e,t,n)=>{"use strict";var o=n(29563);t.A=void 0;var i=o(n(59628)),r=n(37876);t.A=(0,i.default)((0,r.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")}
1,77328:(e,t,n)=>{e.exports=n(29269)},81034:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var o=n(18153),i=n(901),r=n(10249),l=n(26943),a=n(10841),s=n.n(a),c=n(94606);let d=e=>{var t,n;let{bookingDetail:a={}}=e,d=(0,i.A)(),{classes:u}=(0,r.A)();return(0,o.FD)("div",{className:u.infoTransport,children:[(0,o.FD)("div",{className:u.topInfo,children:[(0,o.FD)("div",{className:u.leftTopInfo,children:[(0,o.Y)("span",{className:u.car_model,children:null==a?void 0:a.car_model}),(0,o.Y)("span",{children:"".concat(d.IDS_TEXT_DAY_OUT,": ").concat(null==(t=s()(null==a?void 0:a.time_pick_customer,l.fL))?void 0:t.format("ddd,".concat(l.w5)))}),(0,o.Y)("span",{children:"".concat(d.IDS_MT_TEXT_TIME_PICK_CUSTOMER,": ").concat(null==(n=s()(null==a?void 0:a.time_pick_customer,l.fL))?void 0:n.format("".concat(l.O)))})]}),(0,o.Y)("img",{className:u.imgTransport,src:"https://storage.googleapis.com/tripi-assets/mytour/images/img_transport.png"})]}),(0,o.FD)("div",{className:u.addressItem,children:[(0,o.Y)(c.REg,{}),(0,o.Y)("span",{className:u.addressText,children:null==a?void 0:a.from_address})]}),(0,o.Y)("div",{className:u.diverAddress}),(0,o.FD)("div",{className:u.addressItem,children:[(0,o.Y)(c.qsb,{}),(0,o.Y)("span",{className:u.addressText,children:null==a?void 0:a.to_address})]}),(0,o.FD)("div",{className:u.infoCustomer,children:[(0,o.Y)("span",{style:{fontWeight:600},children:null==a?void 0:a.passenger_name}),(0,o.Y)("span",{className:u.emailCustomer,children:"".concat(null==a?void 0:a.passenger_phone,", ").concat((null==a?void 0:a.passenger_email)||"")})]})]})}},85072:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/payment/transportation/payment-result/[transactionId]",function(){return n(33156)}])}},e=>{e.O(0,[2038,3506,1515,126,9984,8409,2259,3371,2201,1695,636,6593,8792],()=>e(e.s=85072)),_N_E=e.O()}]);

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.