PageSourceSearch

https://haivan.com/_next/static/chunks/pages/xe-san-bay/tim-chuyen-car-airport-c4fb0a777f18f376f077.js

js haivan.com collected 2026-10-04 20:34:52 UTC 65,738 bytes, 1 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[143],{"1VNF":function(e,t,n){"use strict";(function(e){var o=n("q1tI"),i=n.n(o),r=n("17x9"),a=n.n(r),s=n("9rZX"),l=n.n(s);function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){d(e,t,n[t])}))}return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(l){i=!0,r=l}finally{try{o||null==s.return||s.return()}finally{if(i)throw r}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function g(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return"";var n=e;return t&&Object.keys(t).forEach((function(e){n=n.replace(e,t[e])})),n}function _(){return"undefined"!==typeof e.window?e.window.innerWidth:0}var O=27,w=37,S=39,C=function(t){function n(e){var t,o,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),o=this,(t=!(r=f(n).call(this,e))||"object"!==typeof r&&"function"!==typeof r?v(o):r).state={isClosing:!e.animationDisabled,shouldAnimate:!1,zoomLevel:0,offsetX:0,offsetY:0,loadErrorStatus:{}},t.outerEl=i.a.createRef(),t.zoomInBtn=i.a.createRef(),t.zoomOutBtn=i.a.createRef(),t.caption=i.a.createRef(),t.closeIfClickInner=t.closeIfClickInner.bind(v(v(t))),t.handleImageDoubleClick=t.handleImageDoubleClick.bind(v(v(t))),t.handleImageMouseWheel=t.handleImageMouseWheel.bind(v(v(t))),t.handleKeyInput=t.handleKeyInput.bind(v(v(t))),t.handleMouseUp=t.handleMouseUp.bind(v(v(t))),t.handleMouseDown=t.handleMouseDown.bind(v(v(t))),t.handleMouseMove=t.handleMouseMove.bind(v(v(t))),t.handleOuterMousewheel=t.handleOuterMousewheel.bind(v(v(t))),t.handleTouchStart=t.handleTouchStart.bind(v(v(t))),t.handleTouchMove=t.handleTouchMove.bind(v(v(t))),t.handleTouchEnd=t.handleTouchEnd.bind(v(v(t))),t.handlePointerEvent=t.handlePointerEvent.bind(v(v(t))),t.handleCaptionMousewheel=t.handleCaptionMousewheel.bind(v(v(t))),t.handleWindowResize=t.handleWindowResize.bind(v(v(t))),t.handleZoomInButtonClick=t.handleZoomInButtonClick.bind(v(v(t))),t.handleZoomOutButtonClick=t.handleZoomOutButtonClick.bind(v(v(t))),t.requestClose=t.requestClose.bind(v(v(t))),t.requestMoveNext=t.requestMoveNext.bind(v(v(t))),t.requestMovePrev=t.requestMovePrev.bind(v(v(t))),t}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(n,t),c(n,null,[{key:"isTargetMatchImage",value:function(e){return e&&/ril-image-current/.test(e.className)}},{key:"parseMouseEvent",value:function(e){return{id:"mouse",source:1,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"parseTouchPointer",value:function(e){return{id:e.identifier,source:2,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"parsePointerEvent",value:function(e){return{id:e.pointerId,source:3,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"getTransform",value:function(e){var t=e.x,n=void 0===t?0:t,o=e.y,i=void 0===o?0:o,r=e.zoom,a=void 0===r?1:r,s=e.width,l=e.targetWidth,u=n,c=_();s>c&&(u+=(c-s)/2);var d=a*(l/s);return{transform:"translate3d(".concat(u,"px,").concat(i,"px,0) scale3d(").concat(d,",").concat(d,",1)")}}}
1]),c(n,[{key:"componentWillMount",value:function(){this.timeouts=[],this.currentAction=0,this.eventsSource=0,this.pointerList=[],this.preventInnerClose=!1,this.preventInnerCloseTimeout=null,this.keyPressed=!1,this.imageCache={},this.lastKeyDownTime=0,this.resizeTimeout=null,this.wheelActionTimeout=null,this.resetScrollTimeout=null,this.scrollX=0,this.scrollY=0,this.moveStartX=0,this.moveStartY=0,this.moveStartOffsetX=0,this.moveStartOffsetY=0,this.swipeStartX=0,this.swipeStartY=0,this.swipeEndX=0,this.swipeEndY=0,this.pinchTouchList=null,this.pinchDistance=0,this.keyCounter=0,this.moveRequested=!1,this.props.animationDisabled||this.setState({isClosing:!1})}},{key:"componentDidMount",value:function(){var t=this;this.windowContext=function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.window.self,o=n.document.referrer;if(n===e.window.top||!o)return n;var i=function(e){return e.match(/(.*\/\/.*?)(\/|$)/)[1]};return i(n.location.href)===i(o)?t(n.parent):n}(),this.listeners={resize:this.handleWindowResize,mouseup:this.handleMouseUp,touchend:this.handleTouchEnd,touchcancel:this.handleTouchEnd,pointerdown:this.handlePointerEvent,pointermove:this.handlePointerEvent,pointerup:this.handlePointerEvent,pointercancel:this.handlePointerEvent},Object.keys(this.listeners).forEach((function(e){t.windowContext.addEventListener(e,t.listeners[e])})),this.loadAllImages()}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=!1,o={},i={};this.getSrcTypes().forEach((function(r){t.props[r.name]!==e[r.name]&&(n=!0,o[t.props[r.name]]=!0,i[e[r.name]]=!0)})),(n||this.moveRequested)&&(Object.keys(o).forEach((function(e){!(e in i)&&e in t.imageCache&&(t.imageCache[e].loaded=!1)})),this.moveRequested=!1,this.loadAllImages(e))}},{key:"shouldComponentUpdate",value:function(){return!this.moveRequested}},{key:"componentWillUnmount",value:function(){var e=this;this.didUnmount=!0,Object.keys(this.listeners).forEach((function(t){e.windowContext.removeEventListener(t,e.listeners[t])})),this.timeouts.forEach((function(e){return clearTimeout(e)}))}},{key:"setTimeout",value:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){var n=this,o=setTimeout((function(){n.timeouts=n.timeouts.filter((function(e){return e!==o})),e()}),t);return this.timeouts.push(o),o}))},{key:"setPreventInnerClose",value:function(){var e=this;this.preventInnerCloseTimeout&&this.clearTimeout(this.preventInnerCloseTimeout),this.preventInnerClose=!0,this.preventInnerCloseTimeout=this.setTimeout((function(){e.preventInnerClose=!1,e.preventInnerCloseTimeout=null}),100)}},{key:"getBestImageForType",value:function(e){var t=this.props[e],n={};if(this.isImageLoaded(t))n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height);else{if(!this.isImageLoaded(this.props["".concat(e,"Thumbnail")]))return null;t=this.props["".concat(e,"Thumbnail")],n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height,!0)}return{src:t,height:this.imageCache[t].height,width:this.imageCache[t].width,targetHeight:n.height,targetWidth:n.width}}},{key:"getFitSizes",value:function(e,t,n){var o=this.getLightboxRect(),i=o.height-2*this.props.imagePadding,r=o.width-2*this.props.imagePadding;return n||(i=Math.min(i,t),r=Math.min(r,e)),r/i>e/t?{width:e*i/t,height:i}:{width:r,height:t*r/e}}},{key:"getMaxOffsets",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel,t=this.getBestImageForType("mainSrc");if(null===t)return{maxX:0,minX:0,maxY:0,minY:0};var n=this.getLightboxRect(),o=this.getZoomMultiplier(e),i=0,r=0;return{maxX:i=o*t.width-n.width<0?(n.width-o*t.width)/2:(o*t.width-n.width)/2,maxY:r=o*t.height-n.height<0?(n.height-o*t.height)/2:(o*t.height-n.height)/2,minX:-1*i,minY:-1*r}}},{key:"getSrcTypes",value:function(){return[{name:"mainSrc",keyEnding:"i".concat(this.keyCounter)},{name:"mainSrcThumbnail",keyEnding:"t".concat(this.keyCounter)},{name:"nextSrc",keyEnding:"i".concat(this.keyCounter+1)},{name:"nextSrcThumbnail",keyEnding:"t".concat(this.keyCounter+1)},{name:"prevSrc",keyEnding:"i".concat(this.keyCounter-1)},{name:"prevSrcThumbnail",keyEnding:"t".concat(this.keyCounter-1)}]}},{key:"getZoomMultiplier",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel;return Math.pow(1.007,e)}},{key:"getLightboxRect",value:function(){return this.outerEl.current?this.outerEl.current.getBoundingClientRect():{width:_(),height:"undefined"!==typeof e.window?e.window.innerHeight:0,top:0,right:0,bottom:0,left:0}}},{key:"clearTimeout",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){this.timeouts=this.timeouts.filter((function(t){return t!==e})),clearTimeout(e)}))},{key:"changeZoom",value:function(e,t,n){if(this.props.enableZoom){var o=Math.max(0,Math.min(300,e));if(o!==this.state.zoomLevel)if(0!==o){var i=this.getBestImageForType("mainSrc");if(null!==i){var r=this.getZoomMultiplier(),a=this.getZoomMultiplier(o),s=this.getLightboxRect(),l="undefined"!==typeof t?t-s.left:s.width/2,u="undefined"!==typeof n?n-s.top:s.height/2,c=(s.width-i.width*r)/2,d=(s.height-i.height*r)/2,h=l-(l-(c-this.state.offsetX))/r*a,p=u-(u-(d-this.state.offsetY))/r*a,f=(s.width-i.width*a)/2-h,m=(s.height-i.height*a)/2-p;if(3!==this.currentAction){var v=this.getMaxOffsets();this.state.zoomLevel>o&&(f=Math.max(v.minX,Math.min(v.maxX,f)),m=Math.max(v.minY,Math.min(v.maxY,m)))}this.setState({zoomLevel:o,offsetX:f,offsetY:m})}}else this.setState({zoomLevel:o,offsetX:0,offsetY:0})}}},{key:"closeIfClickInner",value:function(e){!this.preventInnerClose&&e.target.className.search(/\bril-inner\b/)>-1&&this.requestClose(e)}},{key:"handleKeyInput",value:function(e){if(e.stopPropagation(),!this.isAnimating())if("keyup"!==e.type){var t=e.which||e.keyCode,n=new Date;if(!(n.getTime()-this.lastKeyDownTime<this.props.keyRepeatLimit&&t!==O))switch(this.lastKeyDownTime=n.getTime(),t){case O:e.preventDefault(),this.requestClose(e);break;case w:if(!this.props.prevSrc)return;e.preventDefault(),this.keyPressed=!0,this.requestMovePrev(e);break;case S:if(!this.props.nextSrc)return;e.preventDefault(),this.keyPressed=!0,this.requestMoveNext(e)}}else this.lastKeyDownTime-=this.props.keyRepeatKeyupBonus}},{key:"handleOuterMousewheel",value:function(e){var t=this;e.stopPropagation();var n=0;if(this.clearTimeout(this.resetScrollTimeout),this.resetScrollTimeout=this.setTimeout((function(){t.scrollX=0,t.scrollY=0}),300),null===this.wheelActionTimeout&&!this.isAnimating()){if(Math.abs(e.deltaY)<Math.abs(e.deltaX)){this.scrollY=0,this.scrollX+=e.deltaX;this.scrollX>=200||e.deltaX>=100?(this.requestMoveNext(e),n=500,this.scrollX=0):(this.scrollX<=-200||e.deltaX<=-100)&&(this.requestMovePrev(e),n=500,this.scrollX=0)}0!==n&&(this.wheelActionTimeout=this.setTimeout((function(){t.wheelActionTimeout=null}),n))}}}
1,{key:"handleImageMouseWheel",value:function(e){if(Math.abs(e.deltaY)>=Math.abs(e.deltaX)){if(e.stopPropagation(),Math.abs(e.deltaY)<1)return;this.scrollX=0,this.scrollY+=e.deltaY,this.changeZoom(this.state.zoomLevel-e.deltaY,e.clientX,e.clientY)}}},{key:"handleImageDoubleClick",value:function(e){this.state.zoomLevel>0?this.changeZoom(0,e.clientX,e.clientY):this.changeZoom(this.state.zoomLevel+100,e.clientX,e.clientY)}},{key:"shouldHandleEvent",value:function(e){if(this.eventsSource===e)return!0;if(0===this.eventsSource)return this.eventsSource=e,!0;switch(e){case 1:return!1;case 2:return this.eventsSource=2,this.filterPointersBySource(),!0;case 3:return 1===this.eventsSource&&(this.eventsSource=3,this.filterPointersBySource(),!0);default:return!1}}},{key:"addPointer",value:function(e){this.pointerList.push(e)}},{key:"removePointer",value:function(e){this.pointerList=this.pointerList.filter((function(t){return t.id!==e.id}))}},{key:"filterPointersBySource",value:function(){var e=this;this.pointerList=this.pointerList.filter((function(t){return t.source===e.eventsSource}))}},{key:"handleMouseDown",value:function(e){this.shouldHandleEvent(1)&&n.isTargetMatchImage(e.target)&&(this.addPointer(n.parseMouseEvent(e)),this.multiPointerStart(e))}},{key:"handleMouseMove",value:function(e){this.shouldHandleEvent(1)&&this.multiPointerMove(e,[n.parseMouseEvent(e)])}},{key:"handleMouseUp",value:function(e){this.shouldHandleEvent(1)&&(this.removePointer(n.parseMouseEvent(e)),this.multiPointerEnd(e))}},{key:"handlePointerEvent",value:function(e){if(this.shouldHandleEvent(3))switch(e.type){case"pointerdown":n.isTargetMatchImage(e.target)&&(this.addPointer(n.parsePointerEvent(e)),this.multiPointerStart(e));break;case"pointermove":this.multiPointerMove(e,[n.parsePointerEvent(e)]);break;case"pointerup":case"pointercancel":this.removePointer(n.parsePointerEvent(e)),this.multiPointerEnd(e)}}},{key:"handleTouchStart",value:function(e){var t=this;this.shouldHandleEvent(2)&&n.isTargetMatchImage(e.target)&&([].forEach.call(e.changedTouches,(function(e){return t.addPointer(n.parseTouchPointer(e))})),this.multiPointerStart(e))}},{key:"handleTouchMove",value:function(e){this.shouldHandleEvent(2)&&this.multiPointerMove(e,[].map.call(e.changedTouches,(function(e){return n.parseTouchPointer(e)})))}},{key:"handleTouchEnd",value:function(e){var t=this;this.shouldHandleEvent(2)&&([].map.call(e.changedTouches,(function(e){return t.removePointer(n.parseTouchPointer(e))})),this.multiPointerEnd(e))}},{key:"decideMoveOrSwipe",value:function(e){this.state.zoomLevel<=0?this.handleSwipeStart(e):this.handleMoveStart(e)}},{key:"multiPointerStart",value:function(e){switch(this.handleEnd(null),this.pointerList.length){case 1:e.preventDefault(),this.decideMoveOrSwipe(this.pointerList[0]);break;case 2:e.preventDefault(),this.handlePinchStart(this.pointerList)}}},{key:"multiPointerMove",value:function(e,t){switch(this.currentAction){case 1:e.preventDefault(),this.handleMove(t[0]);break;case 2:e.preventDefault(),this.handleSwipe(t[0]);break;case 3:e.preventDefault(),this.handlePinch(t)}}},{key:"multiPointerEnd",value:function(e){switch(0!==this.currentAction&&(this.setPreventInnerClose(),this.handleEnd(e)),this.pointerList.length){case 0:this.eventsSource=0;break;case 1:e.preventDefault(),this.decideMoveOrSwipe(this.pointerList[0]);break;case 2:e.preventDefault(),this.handlePinchStart(this.pointerList)}}},{key:"handleEnd",value:function(e){switch(this.currentAction){case 1:this.handleMoveEnd(e);break;case 2:this.handleSwipeEnd(e);break;case 3:this.handlePinchEnd(e)}}},{key:"handleMoveStart",value:function(e){var t=e.x,n=e.y;this.props.enableZoom&&(this.currentAction=1,this.moveStartX=t,this.moveStartY=n,this.moveStartOffsetX=this.state.offsetX,this.moveStartOffsetY=this.state.offsetY)}},{key:"handleMove",value:function(e){var t=e.x,n=e.y,o=this.moveStartX-t+this.moveStartOffsetX,i=this.moveStartY-n+this.moveStartOffsetY;this.state.offsetX===o&&this.state.offsetY===i||this.setState({offsetX:o,offsetY:i})}},{key:"handleMoveEnd",value:function(){var e=this;this.currentAction=0,this.moveStartX=0,this.moveStartY=0,this.moveStartOffsetX=0,this.moveStartOffsetY=0;var t=this.getMaxOffsets(),n=Math.max(t.minX,Math.min(t.maxX,this.state.offsetX)),o=Math.max(t.minY,Math.min(t.maxY,this.state.offsetY));n===this.state.offsetX&&o===this.state.offsetY||(this.setState({offsetX:n,offsetY:o,shouldAnimate:!0}),this.setTimeout((function(){e.setState({shouldAnimate:!1})}),this.props.animationDuration))}},{key:"handleSwipeStart",value:function(e){var t=e.x,n=e.y;this.currentAction=2,this.swipeStartX=t,this.swipeStartY=n,this.swipeEndX=t,this.swipeEndY=n}},{key:"handleSwipe",value:function(e){var t=e.x,n=e.y;this.swipeEndX=t,this.swipeEndY=n}},{key:"handleSwipeEnd",value:function(e){var t=this.swipeEndX-this.swipeStartX,n=Math.abs(t),o=Math.abs(this.swipeEndY-this.swipeStartY);if(this.currentAction=0,this.swipeStartX=0,this.swipeStartY=0,this.swipeEndX=0,this.swipeEndY=0,!(!e||this.isAnimating()||n<1.5*o)){if(n<200)if(n<this.getLightboxRect().width/4)return;t>0&&this.props.prevSrc?(e.preventDefault(),this.requestMovePrev()):t<0&&this.props.nextSrc&&(e.preventDefault(),this.requestMoveNext())}}},{key:"calculatePinchDistance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pinchTouchList,t=y(e,2),n=t[0],o=t[1];return Math.sqrt(Math.pow(n.x-o.x,2)+Math.pow(n.y-o.y,2))}},{key:"calculatePinchCenter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pinchTouchList,t=y(e,2),n=t[0],o=t[1];return{x:n.x-(n.x-o.x)/2,y:n.y-(n.y-o.y)/2}}},{key:"handlePinchStart",value:function(e){this.props.enableZoom&&(this.currentAction=3,this.pinchTouchList=e.map((function(e){return{id:e.id,x:e.x,y:e.y}})),this.pinchDistance=this.calculatePinchDistance())}},{key:"handlePinch",value:function(e){this.pinchTouchList=this.pinchTouchList.map((function(t){for(var n=0;n<e.length;n+=1)if(e[n].id===t.id)return e[n];return t}));var t=this.calculatePinchDistance(),n=this.state.zoomLevel+t-this.pinchDistance;this.pinchDistance=t;var o=this.calculatePinchCenter(this.pinchTouchList),i=o.x,r=o.y;this.changeZoom(n,i,r)}},{key:"handlePinchEnd",value:function(){this.currentAction=0,this.pinchTouchList=null,this.pinchDistance=0}},{key:"handleWindowResize",value:function(){this.clearTimeout(this.resizeTimeout),this.resizeTimeout=this.setTimeout(this.forceUpdate.bind(this),100)}},{key:"handleZoomInButtonClick",value:function(){var e=this.state.zoomLevel+100;this.changeZoom(e),300===e&&this.zoomOutBtn.current.focus()}},{key:"handleZoomOutButtonClick",value:function(){var e=this.state.zoomLevel-100;this.changeZoom(e),0===e&&this.zoomInBtn.current.focus()}},{key:"handleCaptionMousewheel",value:function(e){if(e.stopPropagation(),this.caption.current){var t=this.caption.current.getBoundingClientRect().height,n=this.caption.current,o=n.scrollHeight,i=n.scrollTop;(e.deltaY>0&&t+i>=o||e.deltaY<0&&i<=0)&&e.preventDefault()}}},{key:"isAnimating",value:function(){return this.state.shouldAnimate||this.state.isClosing}},{key:"isImageLoaded",value:function(e){return e&&e in this.imageCache&&this.imageCache[e].loaded}},{key:"loadImage",value:function(t,n,o){var i=this;if(this.isImageLoaded(n))this.setTimeout((function(){o()}),1);else{var r=new e.Image;this.props.imageCrossOrigin&&(r.crossOrigin=this.props.imageCrossOrigin),r.onerror=function(e){i.props.onImageLoadError(n,t,e),i.setState((function(e){return{loadErrorStatus:p({},e.loadErrorStatus,d({},t,!0))}})),o(e)},r.onload=function(){i.props.onImageLoad(n,t,r),i.imageCache[n]={loaded:!0,width:r.width,height:r.height},o()},r.src=n}}},{key:"loadAllImages",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=function(t,n){return function(o){o||e.props[t]!==n||e.didUnmount||e.forceUpdate()}};
1this.getSrcTypes().forEach((function(o){var i=o.name;t[i]&&e.state.loadErrorStatus[i]&&e.setState((function(e){return{loadErrorStatus:p({},e.loadErrorStatus,d({},i,!1))}})),t[i]&&!e.isImageLoaded(t[i])&&e.loadImage(i,t[i],n(i,t[i]))}))}},{key:"requestClose",value:function(e){var t=this,n=function(){return t.props.onCloseRequest(e)};this.props.animationDisabled||"keydown"===e.type&&!this.props.animationOnKeyInput?n():(this.setState({isClosing:!0}),this.setTimeout(n,this.props.animationDuration))}},{key:"requestMove",value:function(e,t){var n=this,o={zoomLevel:0,offsetX:0,offsetY:0};this.props.animationDisabled||this.keyPressed&&!this.props.animationOnKeyInput||(o.shouldAnimate=!0,this.setTimeout((function(){return n.setState({shouldAnimate:!1})}),this.props.animationDuration)),this.keyPressed=!1,this.moveRequested=!0,"prev"===e?(this.keyCounter-=1,this.setState(o),this.props.onMovePrevRequest(t)):(this.keyCounter+=1,this.setState(o),this.props.onMoveNextRequest(t))}},{key:"requestMoveNext",value:function(e){this.requestMove("next",e)}},{key:"requestMovePrev",value:function(e){this.requestMove("prev",e)}},{key:"render",value:function(){var t=this,o=this.props,r=o.animationDisabled,a=o.animationDuration,s=o.clickOutsideToClose,u=o.discourageDownloads,c=o.enableZoom,d=o.imageTitle,f=o.nextSrc,m=o.prevSrc,v=o.toolbarButtons,y=o.reactModalStyle,_=o.onAfterOpen,O=o.imageCrossOrigin,w=o.reactModalProps,S=this.state,C=S.zoomLevel,j=S.offsetX,
1k=S.offsetY,x=S.isClosing,E=S.loadErrorStatus,M=this.getLightboxRect(),T={};!r&&this.isAnimating()&&(T=p({},T,{transition:"transform ".concat(a,"ms")}));var P={};this.getSrcTypes().forEach((function(e){var t=e.name,n=e.keyEnding;P[t]=n}));var D=[],I=function(e,o,r){if(t.props[e]){var a=t.getBestImageForType(e),s=p({},T,n.getTransform(p({},r,a)));C>0&&(s.cursor="move");var l;if(null===a&&(l=E,Object.keys(l).some((function(e){return l[e]}))))D.push(i.a.createElement("div",{className:"".concat(o," ril__image ril-errored"),style:s,key:t.props[e]+P[e]},i.a.createElement("div",{className:"ril__errorContainer"},t.props.imageLoadErrorMessage)));else if(null!==a){var c=a.src;u?(s.backgroundImage="url('".concat(c,"')"),D.push(i.a.createElement("div",{className:"".concat(o," ril__image ril__imageDiscourager"),onDoubleClick:t.handleImageDoubleClick,onWheel:t.handleImageMouseWheel,style:s,key:c+P[e]},i.a.createElement("div",{className:"ril-download-blocker ril__downloadBlocker"})))):D.push(i.a.createElement("img",h({},O?{crossOrigin:O}:{},{className:"".concat(o," ril__image"),onDoubleClick:t.handleImageDoubleClick,onWheel:t.handleImageMouseWheel,onDragStart:function(e){return e.preventDefault()},style:s,src:c,key:c+P[e],alt:"string"===typeof d?d:b("Image"),draggable:!1})))}else{var f=i.a.createElement("div",{className:"ril-loading-circle ril__loadingCircle ril__loadingContainer__icon"},g(new Array(12)).map((function(e,t){return i.a.createElement("div",{key:t,className:"ril-loading-circle-point ril__loadingCirclePoint"})})));D.push(i.a.createElement("div",{className:"".concat(o," ril__image ril-not-loaded"),style:s,key:t.props[e]+P[e]},i.a.createElement("div",{className:"ril__loadingContainer"},f)))}}},N=this.getZoomMultiplier();I("nextSrc","ril-image-next ril__imageNext",{x:M.width}),I("mainSrc","ril-image-current",{x:-1*j,y:-1*k,zoom:N}),I("prevSrc","ril-image-prev ril__imagePrev",{x:-1*M.width});var L={overlay:p({zIndex:1e3,backgroundColor:"transparent"},y.overlay),content:p({backgroundColor:"transparent",overflow:"hidden",border:"none",borderRadius:0,padding:0,top:0,left:0,right:0,bottom:0},y.content)};return i.a.createElement(l.a,h({isOpen:!0,onRequestClose:s?this.requestClose:void 0,onAfterOpen:function(){t.outerEl.current&&t.outerEl.current.focus(),_()},style:L,contentLabel:b("Lightbox"),appElement:"undefined"!==typeof e.window?e.window.document.body:void 0},w),i.a.createElement("div",{className:"ril-outer ril__outer ril__outerAnimating ".concat(this.props.wrapperClassName," ").concat(x?"ril-closing ril__outerClosing":""),style:{transition:"opacity ".concat(a,"ms"),animationDuration:"".concat(a,"ms"),animationDirection:x?"normal":"reverse"},ref:this.outerEl,onWheel:this.handleOuterMousewheel,onMouseMove:this.handleMouseMove,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,tabIndex:"-1",onKeyDown:this.handleKeyInput,onKeyUp:this.handleKeyInput},i.a.createElement("div",{className:"ril-inner ril__inner",onClick:s?this.closeIfClickInner:void 0},D),m&&i.a.createElement("button",{type:"button",className:"ril-prev-button ril__navButtons ril__navButtonPrev",key:"prev","aria-label":this.props.prevLabel,onClick:this.isAnimating()?void 0:this.requestMovePrev}),f&&i.a.createElement("button",{type:"button",className:"ril-next-button ril__navButtons ril__navButtonNext",key:"next","aria-label":this.props.nextLabel,onClick:this.isAnimating()?void 0:this.requestMoveNext}),i.a.createElement("div",{className:"ril-toolbar ril__toolbar"},i.a.createElement("ul",{className:"ril-toolbar-left ril__toolbarSide ril__toolbarLeftSide"},i.a.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},i.a.createElement("span",{className:"ril-toolbar__item__child ril__toolbarItemChild"},d))),i.a.createElement("ul",{className:"ril-toolbar-right ril__toolbarSide ril__toolbarRightSide"},v&&v.map((function(e,t){return i.a.createElement("li",{key:"button_".concat(t+1),className:"ril-toolbar__item ril__toolbarItem"},e)})),c&&i.a.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},i.a.createElement("button",{type:"button",key:"zoom-in","aria-label":this.props.zoomInLabel,className:["ril-zoom-in","ril__toolbarItemChild","ril__builtinButton","ril__zoomInButton"].concat(g(300===C?["ril__builtinButtonDisabled"]:[])).join(" "),ref:this.zoomInBtn,disabled:this.isAnimating()||300===C,onClick:this.isAnimating()||300===C?void 0:this.handleZoomInButtonClick})),c&&i.a.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},i.a.createElement("button",{type:"button",key:"zoom-out","aria-label":this.props.zoomOutLabel,className:["ril-zoom-out","ril__toolbarItemChild","ril__builtinButton","ril__zoomOutButton"].concat(g(0===C?["ril__builtinButtonDisabled"]:[])).join(" "),ref:this.zoomOutBtn,disabled:this.isAnimating()||0===C,onClick:this.isAnimating()||0===C?void 0:this.handleZoomOutButtonClick})),i.a.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},i.a.createElement("button",{type:"button",key:"close","aria-label":this.props.closeLabel,className:"ril-close ril-toolbar__item__child ril__toolbarItemChild ril__builtinButton ril__closeButton",onClick:this.isAnimating()?void 0:this.requestClose})))),this.props.imageCaption&&i.a.createElement("div",{onWheel:this.handleCaptionMousewheel,onMouseDown:function(e){return e.stopPropagation()},className:"ril-caption ril__caption",ref:this.caption},i.a.createElement("div",{className:"ril-caption-content ril__captionContent"},this.props.imageCaption))))}}]),n}(o.Component);C.propTypes={mainSrc:a.a.string.isRequired,prevSrc:a.a.string,nextSrc:a.a.string,mainSrcThumbnail:a.a.string,prevSrcThumbnail:a.a.string,nextSrcThumbnail:a.a.string,onCloseRequest:a.a.func.isRequired,onMovePrevRequest:a.a.func,onMoveNextRequest:a.a.func,onImageLoadError:a.a.func,onImageLoad:a.a.func,onAfterOpen:a.a.func,discourageDownloads:a.a.bool,animationDisabled:a.a.bool,animationOnKeyInput:a.a.bool,animationDuration:a.a.number,keyRepeatLimit:a.a.number,keyRepeatKeyupBonus:a.a.number,imageTitle:a.a.node,imageCaption:a.a.node,imageCrossOrigin:a.a.string,reactModalStyle:a.a.shape({}),imagePadding:a.a.number,wrapperClassName:a.a.string,toolbarButtons:a.a.arrayOf(a.a.node),clickOutsideToClose:a.a.bool,enableZoom:a.a.bool,reactModalProps:a.a.shape({}),nextLabel:a.a.string,prevLabel:a.a.string,zoomInLabel:a.a.string,zoomOutLabel:a.a.string,closeLabel:a.a.string,imageLoadErrorMessage:a.a.node},C.defaultProps={imageTitle:null,imageCaption:null,toolbarButtons:null,reactModalProps:{},animationDisabled:!1,animationDuration:300,animationOnKeyInput:!1,clickOutsideToClose:!0,closeLabel:"Close lightbox",discourageDownloads:!1,enableZoom:!0,imagePadding:10,imageCrossOrigin:null,keyRepeatKeyupBonus:40,keyRepeatLimit:180,mainSrcThumbnail:null,nextLabel:"Next image",nextSrc:null,nextSrcThumbnail:null,onAfterOpen:function(){},onImageLoadError:function(){},onImageLoad:function(){},onMoveNextRequest:function(){},onMovePrevRequest:function(){},prevLabel:"Previous image",prevSrc:null,prevSrcThumbnail:null,reactModalStyle:{},wrapperClassName:"",zoomInLabel:"Zoom in",zoomOutLabel:"Zoom out",imageLoadErrorMessage:"This image failed to load"},t.a=C}).call(this,n("yLpj"))},"2W6z":function(e,t,n){"use strict";var o=function(){};e.exports=o},"2rMq":function(e,t,n){var o;!function(){"use strict";var i=!("undefined"===typeof window||!window.document||!window.document.createElement),r={canUseDOM:i,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseVie
1wport:i&&!!window.screen};void 0===(o=function(){return r}.call(t,n,t,e))||(e.exports=o)}()},"2zs7":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=void 0;var o,i=n("2rMq");var r=((o=i)&&o.__esModule?o:{default:o}).default,a=r.canUseDOM?window.HTMLElement:{};t.canUseDOM=r.canUseDOM;t.default=a},"9rZX":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n("qFS3"),r=(o=i)&&o.__esModule?o:{default:o};t.default=r.default,e.exports=t.default},QEso:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n("q1tI"),s=m(n("17x9")),l=f(n("VKEO")),u=m(n("S1to")),c=f(n("Ye7m")),d=f(n("fbhf")),h=m(n("2zs7")),p=m(n("UIKY"));function f(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function m(e){return e&&e.__esModule?e:{default:e}}n("WkvU");var v={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},y=0,g=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,o=e.ariaHideApp,i=e.htmlOpenClassName,r=e.bodyOpenClassName;r&&d.remove(document.body,r),i&&d.remove(document.getElementsByTagName("html")[0],i),o&&y>0&&0===(y-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),p.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){9===e.keyCode&&(0,u.default)(n.content,e),n.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1}
1,n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===("undefined"===typeof t?"undefined":i(t))?t:{base:v[e],afterOpen:v[e]+"--after-open",beforeClose:v[e]+"--before-close"},r=o.base;return n.state.afterOpen&&(r=r+" "+o.afterOpen),n.state.beforeClose&&(r=r+" "+o.beforeClose),"string"===typeof t&&t?r+" "+t:r},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,o){return n[e+"-"+o]=t[o],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,i=e.bodyOpenClassName;i&&d.add(document.body,i),o&&d.add(document.getElementsByTagName("html")[0],o),n&&(y+=1,c.hide(t)),p.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,i=e.overlayClassName,r=e.defaultStyles,a=e.children,s=n?{}:r.content,l=i?{}:r.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",i),style:o({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=o({id:t,ref:this.setContentRef,style:o({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(c,a);return this.props.overlayElement(u,d)}}]),t}(a.Component);g.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},g.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.instanceOf(h.default),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=g,e.exports=t.default},S1to:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,r.default)(e);if(!n.length)return void t.preventDefault();var o=void 0,i=t.shiftKey,a=n[0],s=n[n.length-1];if(e===document.activeElement){if(!i)return;o=s}s!==document.activeElement||i||(o=a);a===document.activeElement&&i&&(o=s);if(o)return t.preventDefault(),void o.focus();var l=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==l||"Chrome"==l[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var u=n.indexOf(document.activeElement);u>-1&&(u+=i?-1:1);if("undefined"===typeof(o=n[u]))return t.preventDefault(),void(o=i?s:a).focus();t.preventDefault(),o.focus()};var o,i=n("ZDLa"),r=(o=i)&&o.__esModule?o:{default:o};e.exports=t.default},"T/n7":function(e,t,n){"use strict";n.r(t),n.d(t,"__N_SSG",(function(){return D}));var o=n("H+61"),i=n("UlJF"),r=n("+Css"),a=n("7LId"),s=n("VIvw"),l=n("iHvq"),u=n("cpVT"),c=n("nKUr"),d=n("q1tI"),h=n("e+cM"),p=n("JnuR"),f=(n("xEQ+"),n("/MKj")),m=n("2fM7"),v=n("BMrR"),y=n("kPKH"),g=n("2/Rp"),b=(n("Y9L4"),n("TOkq")),_=n("BXF7"),O=n("nOHt"),w=n.n(O),S=(m.a.Option,Object(d.memo)((function(e){var t=e.list_trips,n=e.pick_up,o=e.drop_off,i=e.pick_up_lat,r=e.pick_up_lng,a=e.drop_off_lat,s=e.drop_off_lng,l=e.departure_date,h=e.departure_time,p=e.quantity,m=e.type_movement,O=e.des_start,S=e.des_end,C=Object(f.d)(),j=Object(d.useState)(!1),k=j[0],x=j[1],E=Object(f.e)((function(e){return e.user_info}),f.c),M=function(e,t){return Object(c.jsxs)("div",{className:"car_airport",children:[Object(c.jsx)("div",{className:"d-none d-md-block",children:Object(c.jsxs)(v.a,{boundaryElement:".block",children:[Object(c.jsx)(y.a,{lg:4,md:24,sm:24,xs:24,children:Object(c.jsx)("img",{src:null===e||void 0===e?void 0:e.image,className:"img-car_airport",alt:null===e||void 0===e?void 0:e.name,style:{width:"100%"}})}),Object(c.jsx)(y.a,{lg:1,md:24,sm:24,xs:24}),Object(c.jsx)(y.a,{lg:15,style:{alignSelf:"center"},children:Object(c.jsx)("div",{style:{fontWeight:700,fontSize:18},children:null===e||void 0===e?void 0:e.name})}),Object(c.jsx)(y.a,{span:24,style:{height:10}}),Object(c.jsxs)(y.a,{lg:9,md:24,sm:24,xs:24,children:[Object(c.jsxs)("div",{children:[Object(c.jsx)("img",{src:"/assets/images/gps.png"}),"\xa0",Object(c.jsx)("span",{style:{fontSize:16,fontWeight:700},children:"\u0110i\u1ec3m \u0111i"})]}),Object(c.jsx)("div",{style:{fontWeight:400,fontSize:14},children:null===e||void 0===e?void 0:e.pick_up})]}),Object(c.jsxs)(y.a,{lg:6,md:24,sm:24,xs:24,style:{alignSelf:"end",textAlign:"end"},children:[Object(c.jsxs)("div",{style:Object(u.a)({textAlign:"center",marginBottom:-10,fontWeight:16,color:"#6E6E6E"},"fontWeight",600),children:[null===e||void 0===e?void 0:e.distance," km"]}),Object(c.jsx)("div",{style:{marginBottom:10},children:Object(c.jsx)("img",{src:"/assets/images/line_arrow.png",style:{width:"-webkit-fill-available"}})})]}),Object(c.jsxs)(y.a,{lg:9,style:{alignSelf:"end",textAlign:"end"},children:[Object(c.jsxs)("div",{children:[Object(c.jsx)("span",{style:{fontSize:16,fontWeight:700},children:"\u0110i\u1ec3m \u0111\u1ebfn"}),"\xa0",Object(c.jsx)("img",{src:"/assets/images/location.png"})]}),Object(c.jsx)("div",{style:{fontWeight:400,fontSize:14},children:null===e||void 0===e?void 0:e.drop_off})]})]})}),Object(c.jsx)("div",{className:"d-block d-md-none",children:Object(c.jsxs)(v.a,{gutter:[0,16],children:[Object(c.jsx)(y.a,{span:8,children:Object(c.jsx)("img",{src:null===e||void 0===e?void 0:e.image,className:"img-car_airport",alt:null===e||void 0===e?void 0:e.name,style:{width:"100%"}})}),Object(c.jsx)(y.a,{span:2}),Object(c.jsx)(y.a,{span:14,style:{alignSelf:"center"},children:Object(c.jsx)("div",{style:{fontWeight:700,fontSize:16},children:null===e||void 0===e?void 0:e.name})})]})}),Object(c.jsx)("hr",{}),Object(c.jsx)("div",{children:Object(c.jsxs)(v.a,{gutter:[0,16],children:[Object(c.jsxs)(y.a,{span:12,children:[Object(c.jsx)("div",{style:{fontWeight:400,fontSize:14,color:"#6E6E6E"},children:"Gi\xe1 v\xe9"}),Object(c.jsxs)("div",{style:{fontWeight:700,fontSize:16,color:"#FFC20E"},children:[parseInt(null===e||void 0===e?void 0:e.price).toLocaleStr
1ing("vi"),"\u0111"]})]}),Object(c.jsx)(y.a,{span:12,style:{textAlign:"end"},children:Object(c.jsx)(g.a,{onClick:function(){return function(e){if(!E)return x(!0);var t={pick_up:{address:n,pick_up_lat:i,pick_up_lng:r},drop_off:{address:o,drop_off_lat:a,drop_off_lng:s},trip:{departure_date:l,departure_time:h,quantity:p,type_movement:m,detail_trip:e,des_start:O,des_end:S}};C(Object(_.b)(t)),setTimeout((function(){w.a.push("/xe-san-bay/xac-nhan").then((function(){return window.scrollTo(0,0)}))}),50)}(e)},style:{height:40,backgroundColor:"#FFC20E",borderRadius:6,color:"#050505",fontWeight:600,fontSize:16,width:150},children:"\u0110\u1eb7t ngay"})})]})})]})};return Object(c.jsxs)(c.Fragment,{children:[Object(c.jsx)("div",{children:t.map((function(e,t){return M(e)}))}),Object(c.jsx)(b.a,{visible:k,callback:function(){x(!1)}})]})}))),C=n("W9HT"),j=n("wd/R"),k=n.n(j),x=n("1VNF"),E=n("9kay");function M(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(l.a)(e);if(t){var i=Object(l.a)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Object(s.a)(this,n)}}m.a.Option;var T=function(e){Object(a.a)(n,e);var t=M(n);function n(e){var i,a,s,l,c;Object(o.a)(this,n),i=t.call(this,e),Object(u.a)(Object(r.a)(i),"callbackTrip",(function(e,t){i.setState({trip_select:null===t&&e===i.state.trip_select?0:e,points:t})})),Object(u.a)(Object(r.a)(i),"callbackPoint",(function(e){i.setState({points:e})}));try{var d=e.router.query.from.split(",");i.location_start_lat=parseFloat(d[d.length-2]),i.location_start_lng=parseFloat(d[d.length-1]),a=d[d.length-2]+","+d[d.length-1],l=d[0];var h=e.router.query.to.split(",");i.location_end_lat=parseFloat(h[h.length-2]),i.location_end_lng=parseFloat(h[h.length-1]),c=h[0],s=h[h.length-2]+","+h[h.length-1]}catch(p){}return i.state={from:"10.3391989,107.0710401",to:"10.8184631,106.6588245",meta:{},list_trips:[],location_start:a,location_end:s,address_start:l,address_end:c,departure_date:e.router.query&&e.router.query.date?k()(e.router.query.date,"DD-MM-YYYY").format("YYYY-MM-DD"):k()().format("YYYY-MM-DD"),departure_time:e.router.query&&e.router.query.date?k()(e.router.query.date,"DD-MM-YYYY HH:mm:ss").format("HH:mm:ss"):k()().format("HH:mm:ss"),process:!0,numberGuest:e.router.query&&e.router.query.numberGuest?e.router.query.numberGuest:1,type_movement:e.router.query&&e.router.query.type_movement?e.router.query.type_movement:1,des_start:e.router.query&&e.router.query.des_start?e.router.query.des_start:"",des_end:e.router.query&&e.router.query.des_end?e.router.query.des_end:"",photoIndex:0,isOpen:!1,trip_select:0,points:[],detail_info:"",car_airport_define:e.car_airport_define,car_company:e.car_company,car_company_id:10,showAll:1,range_vehicle:void 0},i}return Object(i.a)(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this;if(JSON.stringify(this.props.router.query)!==JSON.stringify(e.router.query)){var n,o,i,r,a,s,l,u,c,d,h=JSON.parse(JSON.stringify(e.car_company)),p=JSON.parse(JSON.stringify(e.car_airport_define));try{var f=e.router.query,m=f.from.split(",");this.location_start_lat=parseFloat(m[m.length-2]),this.location_start_lng=parseFloat(m[m.length-1]),n=m[m.length-2]+","+m[m.length-1],i=m[0];var v=f.to.split(",");this.location_end_lat=parseFloat(v[v.length-2]),this.location_end_lng=parseFloat(v[v.length-1]),r=v[0],o=v[v.length-2]+","+v[v.length-1],a=f&&f.date?k()(f.date,"DD-MM-YYYY").format("YYYY-MM-DD"):k()().format("YYYY-MM-DD"),u=f&&f.date?k()(f.date,"DD-MM-YYYY HH:mm:ss").format("HH:mm:ss"):k()().format("HH:mm:ss"),l=f&&(null===f||void 0===f?void 0:f.type_movement)?null===f||void 0===f?void 0:f.type_movement:1,c=f&&(null===f||void 0===f?void 0:f.des_start)?null===f||void 0===f?void 0:f.des_start:"",d=f&&(null===f||void 0===f?void 0:f.des_end)?null===f||void 0===f?void 0:f.des_end:"",s=f&&(null===f||void 0===f?void 0:f.numberGuest)?null===f||void 0===f?void 0:f.numberGuest:1}catch(y){console.log(y)}this.setState({location_start:n,location_end:o,address_start:i,address_end:r,departure_date:a,departure_time:u,numberGuest:s,type_movement:l,des_start:c,des_end:d,car_airport_define:p,c
1ar_company:h,list_trips:[]},(function(){return t.getListCar()}))}}},{key:"componentDidMount",value:function(){this.getListCar()}},{key:"componentDidUpdate",value:function(e,t){t.car_company_id===this.state.car_company_id&&t.showAll===this.state.showAll&&t.range_vehicle===this.state.range_vehicle||this.getListCar()}},{key:"getListCar",value:function(){var e=this;this.setState({process:!0});var t=this.state,n=t.location_start,o=t.location_end,i=t.departure_date,r=t.numberGuest,a=t.departure_time,s=t.type_movement,l=t.des_start,u=t.des_end,c=t.car_company_id,d=t.address_start,h=t.address_end,f=t.range_vehicle;(n||o)&&p.a.getTripsAirport({pick_up:d,drop_off:h,pick_up_lat:this.location_start_lat,pick_up_lng:this.location_start_lng,drop_off_lat:this.location_end_lat,drop_off_lng:this.location_end_lng,quantity:r,car_company_id:c,range_vehicle:f,departure_date:k()(i).format("YYYY-MM-DD"),sort_by:"time",sort_mode:"asc",departure_time:a,type_movement:s,pickup_address_description:l,drop_off_address_description:u}).then((function(t){if(console.log(t),200===t.status)if(e.setState({process:!1}),t.data&&t.data.data){e.props.setCarAirport({});var n=t.data.data;e.setState({list_trips:n,process:!1,meta:t.data.meta}),n[0].journey&&n[0].journey.length>0&&setTimeout((function(){e.setState({points:n[0].journey})}),1500)}else e.setState({list_trips:[],process:!1})})).catch((function(t){e.setState({process:!1}),console.log(t.response)}))}},{key:"handleLoadMore",value:function(e){var t=this,n=this.state,o=n.departure_date,i=n.meta,r=n.numberGuest,a=n.car_company_id,s=n.departure_time,l=n.address_start,u=n.address_end,c=n.range_vehicle;if(!this.loading){e?this.setState({list_trips:null,meta:{},process:!0}):this.setState({process:!0});var d=1;try{if(i.current_page&&!e){if(!(i.current_page<i.last_page))return;d=i.current_page+1}}catch(h){}this.loading=!0,p.a.getTripsAirport({pick_up:l,drop_off:u,pick_up_lat:this.location_start_lat,pick_up_lng:this.location_start_lng,drop_off_lat:this.location_end_lat,drop_off_lng:this.location_end_lng,quantity:r,departure_date:k()(o).format("YYYY-MM-DD"),departure_time:s,type_movement:type_movement,pickup_address_description:des_start,drop_off_address_description:des_end,car_company_id:a,range_vehicle:c,page:d,sort_by:"time",sort_mode:"asc"}).then((function(n){if(console.log(n),200===n.status){if(n.data&&n.data.data){t.props.setCarAirport({});var o=n.data.data;t.loading=!1,t.setState({list_trips:e?o:t.state.list_trips.concat(o),process:!1,meta:n.data.meta})}}else t.loading=!1})).catch((function(e){t.loading=!1,console.log(e.response)}))}}},{key:"renderImageShow",value:function(e){var t,n=this;if((null===e||void 0===e||null===(t=e.images)||void 0===t?void 0:t.length)>0)return Object(c.jsx)(v.a,{style:{marginBottom:16},gutter:[2,2],children:e.images.map((function(t,o){return 0===o?Object(c.jsx)(y.a,{span:24,onClick:function(){return n.setState({isOpen:!0,photoIndex:o})},children:Object(c.jsx)("img",{src:t,style:{width:"100%",height:"auto"},className:"noselect"})},o):o>4?null:4===o?Object(c.jsxs)(y.a,{span:6,style:{position:"relative"},onClick:function(){return n.setState({isOpen:!0,photoIndex:o})},children:[Object(c.jsx)("img",{src:t,style:{width:"100%",height:"auto"}}),Object(c.jsx)("div",{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,padding:1},children:Object(c.jsx)("div",{className:"d-flex justify-content-center align-items-center noselect",style:{width:"100%",height:"100%",backgroundColor:"#333",opacity:.8},children:Object(c.jsxs)("div",{style:{fontSize:12,color:"#fff"},children:[e.images.length-4," \u1ea3nh kh\xe1c"]})})})]},o):Object(c.jsx)(y.a,{span:6,onClick:function(){return n.setState({isOpen:!0,photoIndex:o})},children:Object(c.jsx)("img",{src:t,style:{width:"100%",height:"auto"},className:"noselect"})},o)}))})}},{key:"someFunct",value:function(e){this.setState({car_company_id:e})}},{key:"fillterRange",value:function(e){this.setState({range_vehicle:e})}},{key:"render",value:function(){var e=this,t=this.state,n=t.isOpen,o=t.photoIndex,i=t.list_trips,r=t.process,a=t.address_start,s=t.address_end,l=t.numberGuest,u=t.departure_date,d=t.departure_time,p=(t.meta,t.trip_select,t.points,t.detail_info),f=(t.car_airport_define,t.car_company,t.car_company_id,t.showAll,t.type_movement),m=t.des_start,g=t.des_end,b=this.props.t;return Object(c.jsx)("div",{style:{minHeight:"100vh",flexDirection:"column",display:"flex"},children:Object(c.jsxs)(h.c,{children:[Object(c.jsx)("div",{style:{marginTop:24},children:Object(c.jsx)(h.d,{query:this.props.router.query})}),Object(c.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:Object(c.jsxs)("div",{style:{flex:1,maxWidth:1200},className:"d-flex flex-column",children:[Object(c.jsx)("h1",{className:"px-3 px-xl-0",style:{fontSize:32,fontWeight:"bold",marginTop:32,marginBottom:0,color:"#58595B"},children:a&&s?"".concat(null===a||void 0===a?void 0:a.split("(")[0]," - ").concat(null===s||void 0===s?void 0:s.split("(")[0]):""}),Object(c.jsx)("div",{className:"px-3 px-xl-0",style:{marginTop:30},children:Object(c.jsxs)(v.a,{gutter:[16,16],children:[Object(c.jsxs)(c.Fragment,{children:[Object(c.jsx)(y.a,{lg:3,md:24,sm:24,xs:24}),Object(c.jsx)(y.a,{lg:18,md:24,sm:24,xs:24,children:Object(c.jsx)(v.a,{children:Object(c.jsx)(y.a,{lg:24,md:24,sm:24,xs:24,children:r?Object(c.jsx)("div",{style:{height:52},className:"d-flex justify-content-center align-items-center",children:Object(c.jsx)(C.a,{})}):Object(c.jsx)(S,{list_trips:i,pick_up:a,drop_off:s,pick_up_lat:this.location_start_lat,pick_up_lng:this.location_start_lng,drop_off_lat:this.location_end_lat,drop_off_lng:this.location_end_lng,departure_date:k()(u).format("YYYY-MM-DD"),departure_time:d,des_start:m,des_end:g,quantity:l,type_movement:f})})})})]}),Object(c.jsx)(y.a,{lg:3,md:24,sm:24,xs:24}),Object(c.jsx)(y.a,{span:24,children:i&&0===i.length&&!r?Object(c.jsxs)("div",{className:"d-flex flex-column justify-content-center align-items-center",children:[Object(c.jsx)("img",{src:"/assets/images/notfound.png",style:{width:262,height:128,marginTop:80}}),Object(c.jsxs)("div",{style:{fontSize:20,fontWeight:"bold",marginTop:46,marginBottom:24},children:[b("not_found.search.oops"),"!"]}),Object(c.jsxs)("div",{style:{textAlign:"center",marginBottom:60},children:[b("not_found.search.not_found1"),Object(c.jsx)("br",{}),b("not_found.search.not_found2"),"\xa0",Object(c.jsx)("a",{style:{fontWeight:"700",fontSize:16},href:"tel:19006763",children:"1900 6763"})," ",b("not_found.search.not_found3"),"."]})]}):null})]})})]})}),n&&Object(c.jsx)(x.a,{mainSrc:p.images[o],nextSrc:p.images[(o+1)%p.images.length],prevSrc:p.images[(o+p.images.length-1)%p.images.length],onCloseRequest:function(){return e.setState({isOpen:!1})},onMovePrevRequest:function(){return e.setState({photoIndex:(o+p.images.length-1)%p.images.length})},onMoveNextRequest:function(){return e.setState({photoIndex:(o+1)%p.images.length})}})]})})}}]),n}(d.Component),P={setCarAirportDefine:_.c,setUserInfo:_.p,setCarAirport:_.b},D=!0;t.default=Object(O.withRouter)(Object(E.c)()(Object(f.b)((function(e){return{user_info:e.user_info,car_airport_define:e.car_airport_define,car_company:e.car_company}}),P)(T)))},UIKY:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var o=new function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]};t.default=o,e.exports=t.default},VCL8:function(e,t,n){"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function i(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function r(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?s="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var l=e.displayName||e.name,u="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==a?"\n  "+a:"")+(null!==s?"\n  "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=i),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=r;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,o)}}return e}n.r(t),n.d(t,"polyfill",(function(){return a})),o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0},VKEO:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleBlur=u,t.handleFocus=c,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==a.length&&(t=a.pop()).focus({preventScroll:e}))}catch(n){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",c))};var o,i=n("ZDLa"),r=(o=i)&&o.__esModule?o:{default:o};var a=[],s=null,l=!1;function u(){l=!0}function c(){if(l){if(l=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,r.default)(s)[0]||s).focus()}),0)}}},WkvU:function(e,t,n){"use strict";var o,i=n("UIKY"),r=(o=i)&&o.__esModule?o:{default:o};var a=void 0,s=void 0,l=[];function u(){0!==l.length&&l[l.length-1].focusContent()}r.default.subscribe((function(e,t){a&&s||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",u),(s=a.cloneNode()).addEventListener("focus",u)),(l=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))}))},Y9L4:function(e,t,n){},Ye7m:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"===typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t="length"in n?n[0]:n}return s=t||s},t.validateElement=u,t.hide=function(e){u(e)&&(e||s).setAttribute("aria-hidden","true")},t.show=function(e){u(e)&&(e||s).removeAttribute("aria-hidden")},t.documentNotReadyOrSSRTesting=function(){s=null},t.resetForTesting=function(){s=null};var o,i=n("2W6z"),r=(o=i)&&o.__esModule?o:{default:o},a=n("2zs7");var s=null;function l(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function u(e){return!(!e&&!s)||((0,r.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),!1)}},ZDLa:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return[].slice.call(e.querySelectorAll("*"),0).filter(a)};var o=/input|select|textarea|button|object/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==n.getPropertyValue("display")}function r(e,t){var n=e.nodeName.toLowerCase();return(o.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e;t&&t!==document.body;){if(i(t))return!1;t=t.parentNode}return!0}(e)}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&r(e,!n)}e.exports=t.default},fbhf:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dumpClassLists=function(){0};var o={},i={};t.add=function(e,t){return n=e.classList,r="html"==e.nodeName.toLowerCase()?o:i,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(r,e),n.add(e)}));var n,r},t.remove=function(e,t){return n=e.classList,r="html"==e.nodeName.toLowerCase()?o:i,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(r,e),0===r[e]&&n.remove(e)}));var n,r}},qFS3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n("q1tI"),a=f(r),s=f(n("i8i4")),l=f(n("17x9")),u=f(n("QEso")),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n("Ye7m")),d=n("2zs7"),h=f(d),p=n("VCL8");function f(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var y=t.portalClassName="ReactModalPortal",g=t.bodyOpenClassName="ReactModal__Body--open",b=d.canUseDOM&&void 0!==s.default.createPortal,_=function(){return b?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function O(e){return e()}var w=function(e){function t(){var e,n,i;m(this,t);for(var r=arguments.length,l=Array(r),c=0;c<r;c++)l[c]=arguments[c];return n=i=v(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),i.removePortal=function(){!b&&s.default.unmountComponentAtNode(i.node);var e=O(i.props.parentSelector);e&&e.contains(i.node)?e.removeChild(i.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},i.portalRef=function(e){i.portal=e},i.renderPortal=function(e){var n=_()(i,a.default.createElement(u.default,o({defaultStyles:t.defaultStyles},e)),i.node);i.portalRef(n)},v(i,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
vendor: 3,500 bytes, line 1
1(t,e),i(t,[{key:"componentDidMount",value:function(){d.canUseDOM&&(b||(this.node=document.createElement("div")),this.node.className=this.props.portalClassName,O(this.props.parentSelector).appendChild(this.node),!b&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:O(e.parentSelector),nextParent:O(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(d.canUseDOM){var o=this.props,i=o.isOpen,r=o.portalClassName;e.portalClassName!==r&&(this.node.className=r);var a=n.prevParent,s=n.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||i)&&!b&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&b?(!this.node&&b&&(this.node=document.createElement("div")),_()(a.default.createElement(u.default,o({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){c.setElement(e)}}]),t}(r.Component);w.propTypes={isOpen:l.default.bool.isRequired,style:l.default.shape({content:l.default.object,overlay:l.default.object}),portalClassName:l.default.string,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,className:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),overlayClassName:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),appElement:l.default.instanceOf(h.default),onAfterOpen:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,ariaHideApp:l.default.bool,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,parentSelector:l.default.func,aria:l.default.object,data:l.default.object,role:l.default.string,contentLabel:l.default.string,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func},w.defaultProps={isOpen:!1,portalClassName:y,bodyOpenClassName:g,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return a.default.createElement("div",e,t)},contentElement:function(e,t){return a.default.createElement("div",e,t)}},w.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,p.polyfill)(w),t.default=w},yhq7:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/xe-san-bay/tim-chuyen-car-airport",function(){return n("T/n7")}])}},[["yhq7",1,0,3,11,2,4,5,6,7,8,9,10,12,13,14,15,17,16,18,20,19,21,22,23]]]);

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.