"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44],{80433:function(n,e,t){t.d(e,{Z:function(){return l}});var o=t(85893),r=t(29222),c=t(295);t(67294);var i=t(22120);function l(n){let{isLoading:e,isLock:t,children:l,...x}=n,{t:a}=(0,i.$G)(["global"]);return(0,o.jsxs)(r.z,{isDisabled:e||t,cursor:e||t?"not-allowed":"pointer",...x,children:[e&&(0,o.jsx)(c.$,{}),!e&&a("".concat(l))]})}},97834:function(n,e,t){t.d(e,{Z:function(){return c}});var o=t(85893),r=t(23100);function c(n){let{children:e,...t}=n;return(0,o.jsx)(r.xu,{w:{base:"full",lg:"285px"},minH:"324px",shadow:"md",alignItems:"center",display:"flex",justifyContent:"center",borderRadius:"10px",bg:"white",...t,children:e})}t(67294)},36725:function(n,e,t){t.d(e,{Z:function(){return a}});var o=t(85893),r=t(5979),c=t(13470),i=t(24804),l=t(84416);t(67294);var x=t(66050);function a(n){let{label:e,checked:t,onChange:a}=n;return(0,o.jsxs)(i.U,{onClick:a,cursor:"pointer",children:[(0,o.jsx)(l.E,{src:"/checkboxs/".concat(t?"":"un-","active.svg"),w:"".concat((0,c.ou)(21),"px"),h:"".concat((0,c.ou)(21),"px")}),e&&(0,o.jsx)(x.r8,{variant:r.qO.WITH_400_14,fontSize:"".concat((0,c.ou)(16),"px"),children:e})]})}},55083:function(n,e,t){t.d(e,{Z:function(){return i}});var o=t(85893),r=t(9564);t(67294);var c=t(22120);function i(n){let{children:e,...t}=n,{t:i}=(0,c.$G)(["global"]);return(0,o.jsx)(r.x,{...t,children:i("".concat(e))})}},66050:function(n,e,t){t.d(e,{vp:function(){return V},xx:function(){return Z.Z},Zb:function(){return x.Z},Jg:function(){return z},gj:function(){return X.Z},W2:function(){return l},Mt:function(){return w},Lt:function(){return W},M5:function(){return G},h_:function(){return Q},Jd:function(){return J},AJ:function(){return K},Ee:function(){return R},D_:function(){return B},r8:function(){return U.Z},fb:function(){return S}});var o=t(85893),r=t(85721),c=t(204),i=t(67294);function l(n){let{children:e,contentStyle:t,...i}=n;return(0,o.jsx)(c.k,{w:"full",justifyContent:"center",...i,children:(0,o.jsx)(c.k,{w:"full",maxW:"".concat(r.yV,"px"),alignSelf:"center",flexDirection:"column",...t,children:e})})}var x=t(97834),a=t(5979),s=t(24804),u=t(84416),p=t(90634),d=t(9564),h=t(9198),f=t.n(h),j=t(34215),g=t(95826),m=t(52838),b=t(29636),v=t(13470),y=t(22120);function w(n){let{date:e,children:t,...r}=n,{currentLanguage:l}=(0,m.O)(),{t:x}=(0,y.$G)("global"),{t:h}=(0,y.$G)("home"),[w,C]=(0,i.useState)(e||new Date),_=(0,i.useRef)(null),E=(0,i.useMemo)(()=>l&&l!==b.$.vi?g.Z:j.Z,[l]);return(0,o.jsxs)(s.U,{borderRadius:"8px",border:"1px solid #D0D5DD",p:"10px 22px",h:"".concat((0,v.ou)(66),"px"),cursor:"pointer",onClick:()=>{var n;return null==_?void 0:null===(n=_.current)||void 0===n?void 0:n.setFocus()},...r,children:[(0,o.jsx)(u.E,{src:"/date.svg",alt:"date",w:"24px"}),(0,o.jsxs)(p.g,{ml:"5px !important",alignItems:"flex-start",justifyContent:"center",children:[(0,o.jsx)(c.k,{h:"12px",mt:"5px",children:(0,o.jsx)(d.x,{variant:a.qO.WITH_400_14,children:h("Ng\xe0y Khởi h\xe0nh")})}),(0,o.jsx)(c.k,{h:"22px",children:(0,o.jsx)(f(),{minDate:new Date,ref:_,locale:E,selected:w,dateFormat:"d MMMM, yyyy",onChange:n=>C(n),className:"pick-date-13",popperClassName:"pick-date-custom-global",todayButton:x("H\xf4m nay"),useWeekdaysShort:!0,formatWeekDay:n=>(0,v.sE)(n,l)})})]})]})}var C=t(62723),_=t(89076),E=t(53948),T=t(44416),D=t(20623),I=t(29222),k=t(95034);function S(n){let{onPick:e,children:t,...r}=n,{t:c}=(0,y.$G)("home"),{onOpen:l,onClose:x,isOpen:h}=(0,C.q)(),[f,j]=(0,i.useState)(1),[g,m]=(0,i.useState)(0),b=n=>{let e=n+f;e<1&&(e=1),j(e)},w=n=>{let e=n+g;e<1&&(e=0),m(e)},S=()=>(x(),e&&e(f,g));return(0,o.jsxs)(_.J,{isOpen:h,onOpen:l,onClose:x,closeOnBlur:!0,children:[(0,o.jsx)(E.x,{children:(0,o.jsx)(s.U,{borderRadius:"8px",border:"1px solid #D0D5DD",p:"10px 22px",h:"".concat((0,v.ou)(66),"px"),cursor:"pointer",onClick:()=>{},...r,children:t})}),(0,o.jsx)(T.y,{border:"none",borderRadius:"0px 0px 8px 8px",minH:"200px",borderTop:"4px solid #39ACE7",boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.25)",mt:"-7px",w:{base:"300px",md:"255px"},children:(0,o.jsxs)(D.b,{px:"5px",py:"10px",children:[(0,o.jsxs)(p.g,{alignItems:"flex-start",children:[(0,o.jsxs)(s.U,{w:"full",justifyContent:"space-between",children:[(0,o.jsx)(d.x,{variant:a.qO.WITH_400_14,fontStyle:"normal",color:"#141414",fontSize:"".concat((0,v.ou)(16),"px"),children:c("Người lớn/Trẻ em")}),(0,o.jsxs)(s.U,{children:[(0,o.jsx)(I.z,{w:"30px",h:"30px",bg:"#EDF3FD",boxShadow:"0px 2px 0px rgba(0, 0, 0, 0.016)",onClick:()=>b(-1),children:(0,o.jsx)(u.E,{src:"/minus.svg"})}),(0,o.jsx)(d.x,{variant:a.qO.WITH_400_14,fontSize:"".concat((0,v.ou)(16),"px"),children:f}),(0,o.jsx)(I.z,{w:"30px",h:"30px",bg:"#EDF3FD",boxShadow:"0px 2px 0px rgba(0, 0, 0, 0.016)",onClick:()=>b(1),children:(0,o.jsx)(u.E,{src:"/plus.svg"})})]})]}),(0,o.jsx)(d.x,{variant:a.qO.WITH_300_12,fontSize:11.5,color:"#767676",children:c("Từ đ\xfang 5 tuổi trở l\xean v\xe0o ng\xe0y khởi h\xe0nh")})]}),(0,o.jsxs)(p.g,{alignItems:"flex-start",my:"20px",children:[(0,o.jsxs)(s.U,{w:"full",children:[(0,o.jsx)(d.x,{variant:a.qO.WITH_400_14,fontStyle:"normal",color:"#141414",fontSize:"".concat((0,v.ou)(16),"px"),children:c("Em b\xe9")}),(0,o.jsx)(k.L,{}),(0,o.jsxs)(s.U,{children:[(0,o.jsx)(I.z,{w:"30px",h:"30px",bg:"#EDF3FD",boxShadow:"0px 2px 0px rgba(0, 0, 0, 0.016)",onClick:()=>w(-1),children:(0,o.jsx)(u.E,{src:"/minus.svg"})}),(0,o.jsx)(d.x,{variant:a.qO.WITH_400_14,fontSize:"".concat((0,v.ou)(16),"px"),children:g}),(0,o.jsx)(I.z,{w:"30px",h:"30px",bg:"#EDF3FD",boxShadow:"0px 2px 0px rgba(0, 0, 0, 0.016)",onClick:()=>w(1),children:(0,o.jsx)(u.E,{src:"/plus.svg"})})]})]}),(0,o.jsx)(d.x,{variant:a.qO.WITH_300_12,fontSize:11.5,color:"#767676",children:c("Từ 1 th\xe1ng đến 5 tuổi")})]}),(0,o.jsx)(I.z,{w:"full",color:"#39ACE7",fontSize:14,fontWeight:700,onClick:S,children:c("Xong")})]})})]})}t(19902);var O=t(1078),q=t(96118),W=(0,i.memo)(function(n){let{data:e,selectedValue:t,label:r,placeholder:l,showIcon:x=!0,contentHeight:p=100,onSelectItem:d,itemComponent:h,popoverContentProps:f,overflowYScroll:j=!0,children:g,...m}=n,{onOpen:b,onClose:v,isOpen:y}=(0,C.q)(),w=(0,i.useMemo)(()=>{let n=e.find(n=>n.value===t);return n?n.lable:l},[t]);return(0,o.jsxs)(_.J,{isOpen:y,onOpen:b,onClose:v,closeOnBlur:!0,children:[(0,o.jsx)(E.x,{children:(0,o.jsxs)(c.k,{borderRadius:"8px",bg:"#F2F4F7",h:"41px",cursor:"pointer",px:"10px",alignItems:"center",...m,children:[!h&&(0,o.jsxs)(s.U,{justifyContent:"space-around",w:"full",children:[(0,o.jsx)(U.Z,{variant:a.qO.WITH_400_14,color:w===l?"#BFBFBF":"#000",children:w}),(0,o.jsx)(k.L,{}),(0,o.jsx)(u.E,{src:"/dropdown.svg"})]}),h]})}),(0,o.jsxs)(T.y,{border:"none",borderRadius:"0px 0px 8px 8px",borderTop:"4px solid #39ACE7",boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.25)",w:{base:"305px",md:"305px"},padding:0,...f,children:[r&&(0,o.jsx)(O.Y,{borderBottom:"none",p:"15px",children:(0,o.jsx)(U.Z,{variant:a.qO.WITH_400_14,fontWeight:700,children:r})}),(0,o.jsx)(D.b,{p:0,h:"".concat(p,"px"),overflowY:j?"scroll":"hidden",children:e.map(n=>(0,o.jsx)(q.K,{my:"5px",cursor:"pointer",onClick:()=>{d&&d(n),v()},children:(0,o.jsx)(c.k,{py:2,align:"center",w:"full",bg:t===n.value?"#E4E7EC":"#fff",px:"15px",_hover:{bg:"#E4E7EC"},children:(0,o.jsx)(U.Z,{variant:a.qO.WITH_400_14,children:n.lable})})},"".concat(n.value,"-").concat(n.lable)))})]})]})}),F=t(23100),H=(0,i.memo)(function(n){let{label:e,isActive:t,isBold:r,labelStyle:c,onValueChange:i}=n;return(0,o.jsxs)(s.U,{py:"5px",cursor:"pointer",w:"fit-content",onClick:i,children:[(0,o.jsx)(F.xu,{w:"19px",h:"19px",bgRepeat:"no-repeat",bgImage:"/radio".concat(t?"-active":"",".svg")}),(0,o.jsx)(U.Z,{ml:"5px",variant:t?a.qO.WITH_700_18:a.qO.WITH_400_14,fontWeight:!t&&r?"700":void 0,fontSize:"16px",...c,children:e})]})}),R=(0,i.memo)(function(n){let{data:e,selectedValue:t,isBold:r,labelStyle:c,onValueChange:i,...l}=n;return(0,o.jsx)(q.K,{w:"fit-content",...l,children:e.map(n=>(0,o.jsx)(H,{isActive:t===n.value,label:n.lable,isBold:r,labelStyle:c,onValueChange:()=>i&&i(n)},n.value))})}),z=(0,i.memo)(function(n){let{item:e,spacer:t,checked:r,isShowTotal:c,onChange:i,...l}=n;return(0,o.jsxs)(s.U,{w:"full",py:"5px",onClick:i,cursor:"pointer",...l,children:[(0,o.jsx)(F.xu,{w:"".concat((0,v.ou)(16),"px"),h:"".concat((0,v.ou)(16),"px"),bg:a.O9.white,borderRadius:"2px",border:"1px solid #667085",alignItems:"center",display:"flex",justifyContent:"center",children:r&&(0,o.jsx)(u.E,{src:"/done.svg",alt:"done"})}),t&&(0,o.jsx)(k.L,{}),(0,o.jsx)(U.Z,{variant:a.qO.WITH_400_14,fontSize:"".concat((0,v.ou)(13),"px"),children:e.lable}),(0,o.jsx)(d.x,{variant:a.qO.WITH_400_14,fontSize:"".concat((0,v.ou)(13),"px"),children:c&&" (".concat(e.totalRecord||0,")")})]})}),Z=t(80433);function B(n){let{label:e,active:t,...c}=n;return(0,o.jsx)(Z.Z,{display:"inline-block",bgColor:t?"#39ACE7":"#FFFFFF",border:"1px solid ".concat(t?"#39ACE7":"#D0D5DD"),h:"".concat((0,v.ou)(42),"px"),minW:"".concat((0,v.ou)(173),"px"),borderRadius:"".concat((0,v.ou)(8),"px"),color:"".concat(t?"#fff":"#4D4D4D"),fontFamily:r.Rq.Inter,fontSize:"".concat((0,v.ou)(18),"px"),fontWeight:"500",p:"".concat((0,v.ou)(10),"px ").concat((0,v.ou)(19),"px"),...c,children:e})}var A=t(70654),M=t(96177),N=t(28129),U=t(55083);function G(n){let{lable:e,placeholder:t,inputProps:c,...i}=n,{t:l}=(0,y.$G)(["global"]);return(0,o.jsxs)(A.NI,{...i,children:[(0,o.jsx)(M.l,{variant:a.qO.WITH_400_14,fontSize:"".concat((0,v.ou)(14),"px"),fontFamily:r.Rq.Inter,children:(0,o.jsx)(U.Z,{display:"inline-block",w:"fit-content",children:e})}),(0,o.jsx)(N.I,{placeholder:l(t)||"Vui l\xf2ng nhập nội dung",focusBorderColor:a.O9.primary,boxShadow:"none",borderColor:"#CACBCD",fontSize:"".concat((0,v.ou)(16),"px"),fontFamily:r.Rq.Inter,borderRadius:"".concat((0,v.ou)(8),"px"),_placeholder:{color:"#9E9E9E"},mt:"-5px",className:"input-custom",...c})]})}var X=t(36725),$=t(38820);function K(n){let{reverse:e,text:t,phone:i,onPhoneChange:l,...x}=n,{t:p}=(0,y.$G)(["global"]);return(0,o.jsxs)(A.NI,{isRequired:!0,...x,children:[(0,o.jsx)(M.l,{variant:a.qO.WITH_400_14,fontSize:"".concat((0,v.ou)(14),"px"),fontFamily:r.Rq.Inter,children:p("".concat(null!=t?t:"Số điện thoại"))}),(0,o.jsxs)(c.k,{w:"full",children:[(0,o.jsx)(N.I,{placeholder:p("Nhập số điện thoại")||$.DI,focusBorderColor:a.O9.primary,borderColor:"#CACBCD",fontSize:"".concat((0,v.ou)(16),"px"),fontFamily:r.Rq.Inter,borderRadius:"".concat((0,v.ou)(8),"px"),pl:"".concat((0,v.ou)(97),"px"),_placeholder:{color:"#9E9E9E"},value:i,onChange:n=>{l&&l(n.target.value)}}),(0,o.jsxs)(s.U,{position:"absolute",w:"".concat((0,v.ou)(92),"px"),h:"40px",px:"10px",borderRight:"1px solid #CACBCD",flexDirection:e?"row-reverse":"row",children:[(0,o.jsx)(u.E,{src:"/tickets/vi.png"}),(0,o.jsx)(d.x,{variant:a.qO.WITH_400_14,color:"#9E9E9E",children:"+84"})]})]})]})}function V(n){let{data:e,pageSize:t=70,onDataPaging:r,...l}=n,[x,s]=(0,i.useState)(1),p=(0,i.useMemo)(()=>{let n=e.length,o=Math.floor(n/t);return n%t>0?o+1:o},[e,t]),h=(0,i.useCallback)(n=>{s(n);let o=e.slice((n-1)*t,n*t);r&&r(o)},[e,r]);return((0,i.useEffect)(()=>{h(1)},[e]),p<2)?null:(0,o.jsxs)(c.k,{justifyContent:"flex-end",gap:"10px",mt:"20px",...l,children:[(0,o.jsx)(F.xu,{w:"29px",h:"29px",borderRadius:"8px",display:"flex",justifyContent:"center",alignItems:"center",p:"5px",cursor:"pointer",children:(0,o.jsx)(u.E,{src:"/pre.svg"})}),Array(p).fill(0).map((n,e)=>(0,o.jsx)(F.xu,{w:"29px",h:"29px",borderRadius:"8px",border:"1px solid #D0D5DD",display:"flex",justifyContent:"center",alignItems:"center",p:"5px",bg:x===e+1?"#39ACE7":"#fff",cursor:"pointer",onClick:()=>h(e+1),children:(0,o.jsx)(d.x,{variant:a.qO.WITH_400_16,color:x===e+1?"#fff":"#000",fontWeight:x===e+1?700:400,children:e+1})},e)),(0,o.jsx)(F.xu,{w:"29px",h:"29px",borderRadius:"8px",display:"flex",justifyContent:"center",alignItems:"center",p:"5px",transform:"rotate(180deg)",cursor:"pointer",children:(0,o.jsx)(u.E,{src:"/pre.svg"})})]})}function J(n){let{...e}=n;return(0,o.jsxs)(c.k,{flexDirection:"column",w:"fit-content",position:"absolute",top:0,left:0,right:0,bottom:0,margin:"auto auto",h:"fit-content",...e,children:[(0,o.jsx)(u.E,{src:"/no-data.svg"}),(0,o.jsx)(U.Z,{variant:a.qO.WITH_500_18,color:a.O9.gray_98,children:"Kh\xf4ng c\xf3 dữ liệu"})]})}var L=t(9008),P=t.n(L);let Y=n=>{let{title:e,description:t,keywords:r,imageUrl:c,url:i,isNoIndex:l=!1,canonical:x}=n;return(0,o.jsxs)(P(),{children:[(0,o.jsx)("title",{children:e}),(0,o.jsx)("meta",{name:"description",content:t}),(0,o.jsx)("meta",{name:"keywords",content:r}),c&&(0,o.jsx)("meta",{property:"og:image",content:c}),i&&(0,o.jsx)("meta",{property:"og:url",content:i}),(0,o.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),c&&(0,o.jsx)("meta",{name:"twitter:image",content:c}),!l&&(0,o.jsx)("meta",{name:"robots",content:"index, follow"}),l&&(0,o.jsx)("meta",{name:"robots",content:"noindex, follow"}),(0,o.jsx)("link",{rel:"canonical",href:x})]})};Y.defaultProps={title:"Xe To\xe0n Thắng - C\xf4ng ty TNHH TM DV Xe Kh\xe1ch To\xe0n Thắng",description:"Xe To\xe0n Thắng — Xe đi Vũng T\xe0u từ S\xe0i G\xf2n chất lượng cao. Kh\xf4ng cần thanh to\xe1n trước, chọn được chỗ ngồi. Nh\xe0 Xe To\xe0n Thắng, chuy\xean c\xe1c tuyến S\xe0i G\xf2n, Bi\xean H\xf2a, Vũng T\xe0u, B\xe0 Rịa, Hồ Ch\xed Minh",keywords:"Xe, Xe To\xe0n Th\xe1ng, Vũng T\xe0u, Xe Kh\xe1ch"};var Q=Y},19902:function(n,e,t){t.d(e,{G:function(){return c}});var o=t(60024);let r=o.h.enhanceEndpoints({addTagTypes:["TT-Station"]}).injectEndpoints({endpoints:n=>({getAllStation:n.query({query:()=>"".concat("station"),keepUnusedDataFor:36e5})})}),{useGetAllStationQuery:c}=r},71707:function(n,e,t){t.d(e,{C9:function(){return i},IE:function(){return r},LP:function(){return o},_O:function(){return l},od:function(){return c},wB:function(){return x}});let o=()=>"https://newsapi.toanthangcar.com/",r=()=>!0,c=n=>"".concat(o()).concat(n),i=n=>"".concat("https://webapi.toanthangcar.com/").concat(n),l="https://webapi.toanthangcar.com",x=!0}}]);