1/*! For license information please see autoviacao.js.LICENSE.txt */ 2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1960],{90620:function(e,t,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(84424));t.default=n.default},34258:(e,t)=>{Object.defineProperty(t,"B",{value:!0}),t.A={name:"AmenitieIcon",props:{amenitie:{type:Object,required:!0}}}},95746:function(e,t,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(8399)),a=o(r(77607));t.default={name:"Amenities",components:{AmenitieIcon:a.default,Tooltip:n.default},props:{result:{type:Object,required:!0},withTooltip:{type:Boolean,required:!1,default:!0}}}},74031:function(e,t,r){function o(e){return o="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},o(e)}function n(){var e,t,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function s(r,o,n,i){var s=o&&o.prototype instanceof c?o:c,u=Object.create(s.prototype);return a(u,"_invoke",function(r,o,n){var a,i,s,c=0,u=n||[],d=!1,p={p:0,n:0,v:e,a:m,f:m.bind(e,4),d:function(t,r){return a=t,i=0,s=e,p.n=r,l}};function m(r,o){for(i=r,s=o,t=0;!d&&c&&!n&&t<u.length;t++){var n,a=u[t],m=p.p,f=a[2];r>3?(n=f===o)&&(s=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=m&&((n=r<2&&m<a[1])?(i=0,p.v=o,p.n=a[1]):m<f&&(n=r<3||a[0]>o||o>f)&&(a[4]=r,a[5]=o,p.n=f,i=0))}if(n||r>1)return l;throw d=!0,o}return function(n,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&m(u,f),i=u,s=f;(t=i<2?e:s)||!d;){a||(i?i<3?(i>1&&(p.n=-1),m(i,s)):p.n=s:p.v=s);try{if(c=2,a){if(i||(n="next"),t=a[n]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(s=TypeError("The iterator does not provide a '"+n+"' method"),i=1);a=e}else if((t=(d=p.n<0)?s:r.call(o,p))!==l)break}catch(t){a=e,i=1,s=t}finally{c=1}}return{value:t,done:d}}}(r,n,i),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var p=[][o]?t(t([][o]())):(a(t={},o,(function(){return this})),t),m=d.prototype=c.prototype=Object.create(p);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,a(e,i,"GeneratorFunction")),e.prototype=Object.create(m),e}return u.prototype=d,a(m,"constructor",d),a(d,"constructor",u),u.displayName="GeneratorFunction",a(d,i,"GeneratorFunction"),a(m),a(m,i,"Generator"),a(m,o,(function(){return this})),a(m,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:s,m:f}})()}function a(e,t,r,o){var n=Object.defineProperty;try{n({},"",{})}catch(e){n=0}a=function(e,t,r,o){if(t)n?n(e,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[t]=r;else{var i=function(t,r){a(e,t,(function(e){return this._invoke(t,r,e)}))};i("next",0),i("throw",1),i("return",2)}},a(e,t,r,o)}function i(e,t,r,o,n,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(o,n)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=p(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,n=function(){};return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw a}}}}function p(e,t){if(e){if("string"==typeof e)return m(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}var f,h=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);
2n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),v=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),g=this&&this.__importStar||(f=function(e){return f=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},f(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=f(e),o=0;o<r.length;o++)"default"!==r[o]&&h(t,e,r[o]);return v(t,e),t}),y=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var b=r(14655),w=y(r(93549)),x=r(20231),k=r(16347),S=r(39973),C=r(14572),B=r(29726),E=r(29645),_=r(54883);t.default={name:"BusSeats",components:{LoaderAnimation:w.default,CardResultado:(0,B.defineAsyncComponent)((function(){return Promise.resolve().then((function(){return g(r(77424))}))})),RadioGroup:(0,B.defineAsyncComponent)((function(){return Promise.resolve().then((function(){return g(r(48855))}))})),PaginationArrow:(0,B.defineAsyncComponent)((function(){return Promise.resolve().then((function(){return g(r(77290))}))}))},props:{result:{type:Object,required:!0},isReturn:{type:Boolean,required:!1,default:!1},seatsButtonType:{type:Number,required:!1,default:1}},data:function(){return{selectedConnection:0,steeringWellAnimated:!1,currentPage:1}},computed:{seatButtonText:function(){var e;return(0,b.isMobile)()&&(null===(e=this.result)||void 0===e||null===(e=e.seats)||void 0===e||null===(e=e.buses)||void 0===e?void 0:e.length)>1&&0==this.selectedConnection?"Escolher próximo trecho":2===this.seatsButtonType?"Continuar":1===this.seatsButtonType?"Ir para o pagamento":""},hasAnyFullBus:function(){var e;return null===(e=this.result.seats)||void 0===e||null===(e=e.buses)||void 0===e?void 0:e.filter((function(e){return e.full})).length},hasAnyBusSearching:function(){var e;return null===(e=this.result.seats)||void 0===e||null===(e=e.buses)||void 0===e?void 0:e.filter((function(e){return e.searching})).length},hasConnections:function(){var e,t;return Boolean(Array.isArray(null===(e=this.result)||void 0===e?void 0:e.connections)&&this.result.connections.length>0||Array.isArray(null===(t=this.result)||void 0===t?void 0:t.Nconnections)&&this.result.Nconnections.length>0)}},methods:{formatCurrency:E.formatCurrency,isMobile:b.isMobile,getStaticUrl:C.getStaticUrl,hasMultiplePrices:function(e){return e.grid&&this.getAvailableSeatPrices(e.grid).length>1},isSeatOccupied:function(e,t){return t.occupied||!this.isCurrentPriceSelected(e,t)},isCurrentPriceSelected:function(e,t){return this.getAvailableSeatPrices(e.grid).length<=1||t.price==e.selectedPrice},shouldShowBusLayout:function(){var e,t,r=!0,o=d((null===(e=this.result.seats)||void 0===e?void 0:e.buses)||[]);try{for(o.s();!(t=o.n()).done;){var n,a=t.value;r=r&&(a.searching||(null===(n=a.grid)||void 0===n?void 0:n.length)||a.withoutSelection)}}catch(e){o.e(e)}finally{o.f()}return r},getConnectionDate:function(e){var t;if(t=Array.isArray(this.result.Nconnections)&&this.result.Nconnections[e]?this.result.Nconnections[e].departure:Array.isArray(this.result.connections)&&this.result.connections[e]?this.result.connections[e].departure:this.result.departure){var r=new Date(t),o=new Intl.DateTimeFormat("pt-BR",{weekday:"long"}).format(r),n=new Intl.DateTimeFormat("pt-BR",{day:"numeric"}).format(r),a=new Intl.DateTimeFormat("pt-BR",{month:"long"}).format(r);return o=o.charAt(0).toUpperCase()+o.slice(1),a=a.charAt(0).toUpperCase()+a.slice(1),o=o.split("-")[0],"".concat(o,", ").concat(n," de ").concat(a)}return""},selectResult:function(){this.$emit("result-selected")},selectedConnectionOnMobile:function(e){return!(0,b.isMobile)()||this.selectedConnection===e},showAlertTooMuchSeatsSelected:function(){(0,x.alerta)('<div class="text-center">Você escolheu mais poltronas do que as disponÃveis em um dos trechos da sua viagem.<br><br>Para continuar, selecione um número de poltronas que corresponda à disponibilidade ou escolha outro ônibus com vagas suficientes.</div>',"O número de poltronas selecionadas excede a disponibilidade em um dos trechos.",null,"uil uil-times-circle c-danger-400")},goToNextSteep:function(){var e,t=this;
2if(this.shouldShowBusLayout())if((0,b.isMobile)()&&(null===(e=this.result)||void 0===e||null===(e=e.seats)||void 0===e||null===(e=e.buses)||void 0===e?void 0:e.length)>1&&0==this.selectedConnection)this.selectedConnection=1;else if(this.result.seats.buses.filter((function(e){return t.selectedSeats(e).length>t.getQtyOfAvailableSeatsOnSmallestBus})).length)this.showAlertTooMuchSeatsSelected();else{var r=u(new Set(this.result.seats.buses.map((function(e){return t.selectedSeats(e).length}))));r.length>1||0===r[0]?this.autoSelectSeatsModal():this.$emit("seats-selected")}},shouldShowInfoCardHeader:function(e){return!(0,b.isMobile)()&&this.hasConnections&&e>0},canDecreaseQuantityOfSeatsSelected:function(e){return e.quantityOfSeatsSelected>1},decreaseQuantityOfSeatsSelected:function(e){this.canDecreaseQuantityOfSeatsSelected(e)&&e.quantityOfSeatsSelected--},canIncreaseQuantityOfSeatsSelected:function(e){return e.maxSeats&&e.quantityOfSeatsSelected>=e.maxSeats?1:e.quantityOfSeatsSelected>=this.getQtyOfAvailableSeatsOnSmallestBus?2:0},increaseQuantityOfSeatsSelected:function(e){var t=this.canIncreaseQuantityOfSeatsSelected(e);1===t?this.alertMaxSeatsLimitReached(e.maxSeats,!1):2===t?this.showAlertTooMuchSeatsSelected():e.quantityOfSeatsSelected++},alertMaxSeatsLimitReached:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r="Caso queira trocar uma poltrona, desmarque ela e selecione a outra que você desejar.",o="Você pode selecionar no máximo ".concat(e," poltronas.");t||(r=o,o="Limite de poltronas atingido"),(0,x.alerta)('<div class="text-center">'.concat(r,"</div>"),o,null,"uil uil-times-circle c-danger-400")},selectSeat:function(e,t){if(!this.isSeatOccupied(t,e)){if(!e.selected){if(null!=t&&t.maxSeats&&this.selectedSeats(t).length>=(null==t?void 0:t.maxSeats))return void this.alertMaxSeatsLimitReached(t.maxSeats);if(this.selectedSeats(t).length>=this.getQtyOfAvailableSeatsOnSmallestBus)return void this.showAlertTooMuchSeatsSelected()}e.selected=!e.selected,e.selected&&_.peopleService.selectSeat(e)}},selectFloorToView:function(){var e,t,r=d((null===(e=this.result.seats)||void 0===e?void 0:e.buses)||[]);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(null===o.selectedFloor){var n,a=this.getMinAvailableSeatPrice(o.grid),i=d(this.getAvailableFloorsBySelectedPrice(o));try{for(i.s();!(n=i.n()).done;){var s,l=n.value,c=d(this.getSeatsByFloor(o,l));try{for(c.s();!(s=c.n()).done;){var u=s.value;if(!u.occupied&&u.price==a)return void(o.selectedFloor=l)}}catch(e){c.e(e)}finally{c.f()}}}catch(e){i.e(e)}finally{i.f()}}}}catch(e){r.e(e)}finally{r.f()}},autoSelectSeatsModal:function(){this.modalAutoSelectId=(0,k.modal)('<div class="text-center">Ao continuar, uma poltrona será selecionada automaticamente para você. Essa escolha não poderá ser alterada após a confirmação do pagamento.</div>',null,null,"Seu lugar está garantido",null,"uil uil-info-circle c-primary-600",!0,[{text:"Escolher Poltrona"},{text:"Continuar",classes:["primary"],action:this.autoSelectSeatsSelection}])},autoSelectSeatsSelection:function(){var e,t=this,r=1,o=d(this.result.seats.buses);try{for(o.s();!(e=o.n()).done;){var n=e.value;r=Math.max(r,this.selectedSeats(n).length)}}catch(e){o.e(e)}finally{o.f()}this.result.seats.buses=this.result.seats.buses.map((function(e){if(e.withoutSelection)t.selectedSeats(e).length<r&&(e.quantityOfSeatsSelected=r);else for(;t.selectedSeats(e).length<r;){var o=e.grid.findIndex((function(r){return!r.selected&&!t.isSeatOccupied(e,r)}));if(!(o>=0))break;e.grid[o].selected=!0}return e})),this.modalAutoSelectId&&(0,k.closeModal)(this.modalAutoSelectId),this.goToNextSteep()},calculateDataDivHeightOnMobile:function(e){return!(0,b.isMobile)()||e.withoutSelection?"auto":35*this.getBusQuantityOfSeatLines(e)+800+"px"},scrollToConnection:function(e){(0,S.scrollToElement)(e,-100)},getConnectionOnIndex:function(e){if(Array.isArray(this.result.connections)&&this.result.connections[e])return this.result.connections[e];if(Array.isArray(this.result.Nconnections)&&this.result.Nconnections[e])return l(l(l({},this.result),this.result.Nconnections[e]),{},{travelDuration:this.result.Nconnections[e].travelDuration||this.result.travelDuration,seats:null});var t=l({},this.result);return t.seats=null,t},selectedSeats:function(e){return e.withoutSelection?Array(e.quantityOfSeatsSelected):(null===(t=e.grid)||void 0===t?void 0:t.filter((function(e){return e.selected})))||[];var t},getAvailableFloors:function(e){var t,r=new Set,o=d((null==e?void 0:e.grid)||[]);try{for(o.s();!(t=o.n()).done;){var n=t.value;r.add(n.z)}}catch(e){o.e(e)}finally{o.f()}return Array.from(r).sort()},getAvailableFloorsBySelectedPrice:function(e){if(void 0===e.selectedPrice)return this.getAvailableFloors(e);var t,r=new Set,o=d((null==e?void 0:e.grid)||[]);try{for(o.s();!(t=o.n()).done;){var n=t.value;n.price!=e.selectedPrice||n.occupied||r.add(n.z)}}catch(e){o.e(e)}finally{o.f()}return Array.from(r).sort()},getMaxBusSize:function(e){var t;return null===(t=e.grid)||void 0===t?void 0:t.reduce((function(e,t){return Math.max(e,t.x)}),0)},getSeatsByFloor:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e&&e.grid?null==e||null===(t=e.grid)||void 0===t?void 0:t.filter((function(t){var o;return t.z===(null!==(o=null!=r?r:e.selectedFloor)&&void 0!==o?o:0)})):[]},getBusQuantityOfSeatLines:function(e){var t,r=new Set,o=d(e.grid||[]);try{for(o.s();!(t=o.n()).done;){var n=t.value;r.add(n.x)}}catch(e){o.e(e)}finally{o.f()}return r.size},getAvailableSeatPrices:function(e){var t,r=[],o=d(e);try{for(o.s();!(t=o.n()).done;){var n=t.value,a=parseFloat(n.price);n.occupied||r.includes(a)||r.push(a)}}catch(e){o.e(e)}finally{o.f()}return r.sort((function(e,t){return e-t})),r},selectPrice:function(e,t){var r,o=this;return(r=n().m((function r(){var a,i,s;return n().w((function(r){for(;;)switch(r.n){case 0:if(a=!0,!o.selectedSeats(t).length){r.n=2;break}return r.n=1,(0,x.alerta)('<div class="text-center">Ao mudar de tarifa, sua seleção de poltronas atual não será mantida. Você poderá escolher novos assentos na nova tarifa selecionada.</div>',"Mudança de tarifa",null,"uil uil-exclamation-circle c-danger-500",!0,"MANTER SELEÃÃO","confirm","CONTINUAR","vertical","tertiary","primary");case 1:a=r.v;case 2:if(a){i=d(t.grid);try{for(i.s();!(s=i.n()).done;)s.value.selected=!1}catch(e){i.e(e)}finally{i.f()}t.selectedPrice=e,t.selectedFloor=o.getFirstAvailableFloorByPrice(t,e)}case 3:return r.a(2)}}),r)})),function(){var e=this,t=arguments;return new Promise((function(o,n){var a=r.apply(e,t);
2function s(e){i(a,o,n,s,l,"next",e)}function l(e){i(a,o,n,s,l,"throw",e)}s(void 0)}))})()},getFirstAvailableFloorByPrice:function(e,t){var r,o=d(this.getAvailableFloorsBySelectedPrice(e));try{for(o.s();!(r=o.n()).done;){var n,a=r.value,i=d(this.getSeatsByFloor(e,a));try{for(i.s();!(n=i.n()).done;){var s=n.value;if(!s.occupied&&s.price==t)return a}}catch(e){i.e(e)}finally{i.f()}}}catch(e){o.e(e)}finally{o.f()}return 0},getMaxSeatPrice:function(e){var t,r=0,o=d(this.getAvailableSeatPrices(e));try{for(o.s();!(t=o.n()).done;){var n=t.value,a=parseFloat(n);a>r&&(r=a)}}catch(e){o.e(e)}finally{o.f()}return r},getMinAvailableSeatPrice:function(e){var t,r=0,o=d(this.getAvailableSeatPrices(e));try{for(o.s();!(t=o.n()).done;){var n=t.value,a=parseFloat(n);if(0==r||a<r){var i,s=d(e);try{for(s.s();!(i=s.n()).done;){if(i.value.price==a){r=a;break}}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){o.e(e)}finally{o.f()}return r},selectBusMinPrice:function(){var e,t,r=d((null===(e=this.result.seats)||void 0===e?void 0:e.buses)||[]);try{for(r.s();!(t=r.n()).done;){var o=t.value;void 0===o.selectedPrice&&Array.isArray(o.grid)&&(o.selectedPrice=this.getMinAvailableSeatPrice(o.grid))}}catch(e){r.e(e)}finally{r.f()}},pageCount:function(e){return Math.ceil(this.getAvailableSeatPrices(e).length/5)},displayedPrices:function(e){if(this.getAvailableSeatPrices(e)<5||(0,b.isMobile)())return this.getAvailableSeatPrices(e);var t=5*(this.currentPage-1),r=t+5;return this.getAvailableSeatPrices(e).slice(t,r)},shouldShowPagination:function(e){return this.getAvailableSeatPrices(e).length>5&&!(0,b.isMobile)()},initBusLayoutMouseScroll:function(){var e=this.$refs.busWrapper;e&&e.querySelectorAll(".busLayout").forEach((function(e){e.addEventListener("mousemove",(function(t){var r=e.getBoundingClientRect(),o=(t.clientX-r.left)/r.width,n=e.scrollWidth-r.width;e.scrollLeft=n*o}))}))}},watch:{"result.seats.buses":{handler:function(){var e=this;this.$nextTick((function(){return e.initBusLayoutMouseScroll()})),this.selectFloorToView(),this.selectBusMinPrice()},deep:!0},"result.seats.open":{handler:function(){(0,b.isMobile)()&&this.result.seats.open?document.body.style.overflow="hidden":document.body.style.overflow="auto"}}}}},64478:function(e,t,r){function o(){var e,t,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function s(r,o,a,i){var s=o&&o.prototype instanceof c?o:c,u=Object.create(s.prototype);return n(u,"_invoke",function(r,o,n){var a,i,s,c=0,u=n||[],d=!1,p={p:0,n:0,v:e,a:m,f:m.bind(e,4),d:function(t,r){return a=t,i=0,s=e,p.n=r,l}};function m(r,o){for(i=r,s=o,t=0;!d&&c&&!n&&t<u.length;t++){var n,a=u[t],m=p.p,f=a[2];r>3?(n=f===o)&&(s=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=m&&((n=r<2&&m<a[1])?(i=0,p.v=o,p.n=a[1]):m<f&&(n=r<3||a[0]>o||o>f)&&(a[4]=r,a[5]=o,p.n=f,i=0))}if(n||r>1)return l;throw d=!0,o}return function(n,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&m(u,f),i=u,s=f;(t=i<2?e:s)||!d;){a||(i?i<3?(i>1&&(p.n=-1),m(i,s)):p.n=s:p.v=s);try{if(c=2,a){if(i||(n="next"),t=a[n]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(s=TypeError("The iterator does not provide a '"+n+"' method"),i=1);a=e}else if((t=(d=p.n<0)?s:r.call(o,p))!==l)break}catch(t){a=e,i=1,s=t}finally{c=1}}return{value:t,done:d}}}(r,a,i),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var p=[][a]?t(t([][a]())):(n(t={},a,(function(){return this})),t),m=d.prototype=c.prototype=Object.create(p);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,n(e,i,"GeneratorFunction")),e.prototype=Object.create(m),e}return u.prototype=d,n(m,"constructor",d),n(d,"constructor",u),u.displayName="GeneratorFunction",n(d,i,"GeneratorFunction"),n(m),n(m,i,"Generator"),n(m,a,(function(){return this})),n(m,"toString",(function(){return"[object Generator]"})),(o=function(){return{w:s,m:f}})()}function n(e,t,r,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}n=function(e,t,r,o){if(t)a?a(e,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[t]=r;else{var i=function(t,r){n(e,t,(function(e){return this._invoke(t,r,e)}))};i("next",0),i("throw",1),i("return",2)}},n(e,t,r,o)}function a(e,t,r,o,n,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(o,n)}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,n=function(){};return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(l)throw a}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}var l,c=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);
2n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),u=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),d=this&&this.__importStar||(l=function(e){return l=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},l(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=l(e),o=0;o<r.length;o++)"default"!==r[o]&&c(t,e,r[o]);return u(t,e),t}),p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var m=r(29645),f=r(14655),h=r(14572),v=r(39973),g=r(29726),y=p(r(8467)),b=p(r(62963)),w=p(r(39068)),x=p(r(444)),k=p(r(61975)),S=p(r(14313)),C=p(r(16338)),B=p(r(92047)),E=p(r(16108)),_=r(65287);t.default={name:"CardResultado",components:{BusSeats:(0,g.defineAsyncComponent)((function(){return Promise.resolve().then((function(){return d(r(61579))}))})),TagSalaVip:y.default,TagCompanyRating:b.default,Logos:w.default,TagHighlight:x.default,TagBoardingType:k.default,TagConnection:S.default,TagDebug:C.default,TagLastSeats:B.default,Amenities:E.default},props:{index:{type:Number},result:{type:Object,required:!0},buttonType:{type:Number,required:!1},seatsButtonType:{type:Number,required:!1,default:1},hoverEffect:{type:Boolean,required:!1,default:!0},withMargin:{type:Boolean,required:!1,default:!0},withPaddingTop:{type:Boolean,required:!1,default:!0},withSeats:{type:Boolean,required:!1,default:!0},withBorder:{type:Boolean,required:!1,default:!0},showCardTags:{type:Boolean,required:!1},showAllCardTags:{type:Boolean,required:!1,default:!0},showPrice:{type:Boolean,required:!1,default:!0},isReturn:{type:Boolean,required:!1,default:!1},includeInsuranceValue:{type:Boolean,required:!1,default:!1},includeTaxValue:{type:Boolean,required:!1,default:!1},validateNearBoarding:{type:Boolean,required:!1,default:!0},showNearBoardingAlert:{type:Boolean,required:!1,default:!1},validateCompanyCancels:{type:Boolean,required:!1,default:!1},showAmenities:{type:Boolean,required:!1,default:!1},customClass:{type:String,required:!1,default:""},highlightTagType:{type:[String,Boolean],required:!1,default:"",validator:function(e){return["lowest_price","favorite","cost_benefit","",!1].includes(e)}}},data:function(){return{logos:[],modalAutoSelectId:null,mobile:!1,confirmedCancellable:!1,confirmedValidateNearBoarding:!1,resizeTimeout:null,_debouncedResize:null}},computed:{activeConnections:function(){return this.result.connections||this.result.Nconnections||[]},hasCompleteConnectionData:function(){return!!this.activeConnections.length&&this.activeConnections.every((function(e){return Boolean(e&&e.from&&e.to&&e.travelDuration)}))},activeSegment:function(){if(!this.isConnectionSeatsOpen||!this.hasCompleteConnectionData)return null;var e="number"==typeof this.index?this.index:0;return this.activeConnections[e]||this.activeConnections[0]},getDurationToShow:function(){return this.activeSegment?this.activeSegment.travelDuration||this.result.travelDuration:this.result.travelDuration||"--"},getArrivalDateToShow:function(){return this.activeSegment?this.activeSegment.arrival:this.result.arrival},getDestinationToShow:function(){return this.activeSegment?this.activeSegment.to:this.result.to},getMaxPriceToShow:function(){return this.shouldShowMaxPrice?null:this.result.maxPrice},getPriceToShow:function(){if(this.activeSegment){var e,t=null!==(e=this.activeSegment.price)&&void 0!==e?e:this.result.price,r=this.activeSegment.tax||0,o=this.activeSegment.insurance||0;return this.includeTaxValue&&(t+=r),this.includeInsuranceValue&&(t+=o),t}var n=this.result.price,a=this.result.tax||0,s=this.result.insurance||0;if(this.activeConnections.length>1&&this.hasAnyFullBus){n=0,a=0,s=0;var l,c=i(this.activeConnections);try{for(c.s();!(l=c.n()).done;){var u=l.value;n+=u.price||0,a+=u.tax||0,s+=u.insurance||0}}catch(e){c.e(e)}finally{c.f()}}return this.includeTaxValue&&(n+=a),this.includeInsuranceValue&&(n+=s),n},isConnectionSeatsOpen:function(){var e,t,r,o=Boolean(this.activeConnections.length)&&Boolean(null===(e=this.result.seats)||void 0===e?void 0:e.open),n=i((null===(t=this.result.seats)||void 0===t?void 0:t.buses)||[]);try{for(n.s();!(r=n.n()).done;){var a,s=r.value;o=o&&(s.searching||(null===(a=s.grid)||void 0===a?void 0:a.length)||s.withoutSelection)}}catch(e){n.e(e)}finally{n.f()}return o},shouldShowMaxPrice:function(){return!this.isConnectionSeatsOpen&&this.result.maxPrice&&!this.includeInsuranceValue&&!this.includeTaxValue},getQtyOfAvailableSeatsOnSmallestBus:function(){return this.result.seats.buses.reduce((function(e,t){var r,o=Math.min(Number(t.maxSeats)||1/0,(null===(r=t.grid)||void 0===r?void 0:r.filter((function(e){return!e.occupied})).length)||0);return Math.min(e,o)}),1/0)},hasAnyFullBus:function(){var e;return null===(e=this.result.seats)||void 0===e||null===(e=e.buses)||void 0===e?void 0:e.filter((function(e){return e.full})).length},getLogosToShow:function(){return this.isConnectionSeatsOpen?[this.logos[0]]:this.logos},getFormatedValueHtml:function(){var e=(0,m.formatCurrency)(this.getPriceToShow).split(/\u00A0/);return'<span class="typo-caption typo-regular">'.concat(e[0],"</span> ").concat(e[1])}},methods:{scrollToElement:v.scrollToElement,formatCurrency:m.formatCurrency,isMobile:f.isMobile,isModalPoltronas:function(){return window.innerWidth<1024},getStaticUrl:h.getStaticUrl,goToNextSteep:function(){this.$emit("seats-selected")},shouldShowBusLayout:function(){var e,t,r=!0,o=i((null===(e=this.result.seats)||void 0===e?void 0:e.buses)||[]);try{for(o.s();!(t=o.n()).done;){var n,a=t.value;
2r=r&&(a.searching||(null===(n=a.grid)||void 0===n?void 0:n.length)||a.withoutSelection)}}catch(e){o.e(e)}finally{o.f()}return r},formatHour:function(e){var t=new Date(e);return(0,m.ensureTwoDigits)(t.getHours())+":"+(0,m.ensureTwoDigits)(t.getMinutes())},selectResult:function(){var e,t=arguments,r=this;return(e=o().m((function e(){var n;return o().w((function(e){for(;;)switch(e.n){case 0:if(n=t.length>0&&void 0!==t[0]&&t[0],!r.hasAnyFullBus||n){e.n=1;break}return e.a(2);case 1:e.n=2;break;case 2:r.$emit("result-selected",r.result,n,!1,r.index,r.isReturn);case 3:return e.a(2)}}),e)})),function(){var t=this,r=arguments;return new Promise((function(o,n){var i=e.apply(t,r);function s(e){a(i,o,n,s,l,"next",e)}function l(e){a(i,o,n,s,l,"throw",e)}s(void 0)}))})()},checkMobileStatus:function(){var e=window.innerWidth;this.$refs.CardResultado&&(e=this.$refs.CardResultado.parentNode.getBoundingClientRect().width),this.mobile=e<640},getLogos:function(){var e=this;if(this.result.Nconnections||this.result.connections){var t,r=i(this.result.Nconnections||this.result.connections);try{var o=function(){var r=t.value;if(e.logos.filter((function(e){return e.image===r.company.logo})).length)return 1;e.logos.push({image:r.company.logo,name:r.company.name,show:!1})};for(r.s();!(t=r.n()).done;)o()}catch(e){r.e(e)}finally{r.f()}}else this.logos.push({image:this.result.company.logo,name:this.result.company.name});this.logos[0].show=!0},rotateLogos:function(){var e=this;setInterval((function(){if(!(e.getLogosToShow.length<=1)){var t=e.logos.findIndex((function(e){return e.show}));e.logos[t].show=!1,t<e.logos.length-1?e.logos[t+1].show=!0:e.logos[0].show=!0}}),5e3)},openConnectionInfo:function(){this.activeConnections.length&&(0,_.openModalResultConnection)(this.result,this.selectResult)}},mounted:function(){var e=this;this.getLogos(),this.rotateLogos(),this.checkMobileStatus(),this._debouncedResize=function(){e.resizeTimeout&&clearTimeout(e.resizeTimeout),e.resizeTimeout=setTimeout((function(){e.checkMobileStatus()}),200)},window.addEventListener("resize",this._debouncedResize)},beforeUnmount:function(){this._debouncedResize&&window.removeEventListener("resize",this._debouncedResize),this.resizeTimeout&&clearTimeout(this.resizeTimeout)}}},24259:(e,t)=>{Object.defineProperty(t,"B",{value:!0}),t.A={name:"TagBoardingType",props:{result:{type:Object,required:!0}}}},44859:(e,t)=>{Object.defineProperty(t,"B",{value:!0}),t.A={name:"TagConnection",props:{result:{type:Object,required:!0}},methods:{openConnectionInfo:function(){this.$emit("open-info")}}}},48098:(e,t)=>{function r(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}Object.defineProperty(t,"B",{value:!0}),t.A={name:"TagDebug",props:{result:{type:Object,required:!0}},computed:{getSourceName:function(){if(sources&&sources[this.result.source]){var e;if(this.result.chanceSort&&null!==(e=this.result.related)&&void 0!==e&&e.length){var t,o,n=null!==(t=sources[this.result.source])&&void 0!==t?t:"",a=r(this.result.related);try{for(a.s();!(o=a.n()).done;){var i=o.value;n=n+","+sources[i.source]}}catch(e){a.e(e)}finally{a.f()}return n}return sources[this.result.source]}return this.result.source}}}},59507:(e,t)=>{Object.defineProperty(t,"B",{value:!0}),t.A={name:"TagHighlight",props:{highlightTagType:{type:[String],required:!1,default:"",validator:function(e){return["lowest_price","favorite","cost_benefit",""].includes(e)}}},data:function(){return{highlightTagTexts:{favorite:"Viação Favorita",cost_benefit:"Custo-benefÃcio"}}}}},15438:function(e,t,r){var o,n=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);
2n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||(o=function(e){return o=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},o(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=o(e),i=0;i<r.length;i++)"default"!==r[i]&&n(t,e,r[i]);return a(t,e),t});Object.defineProperty(t,"__esModule",{value:!0});var s=r(29726);t.default={name:"PaginationArrow",components:{LeftArrow:(0,s.defineAsyncComponent)((function(){return Promise.resolve().then((function(){return i(r(13412))}))})),LeftArrowDisabled:(0,s.defineAsyncComponent)((function(){return Promise.resolve().then((function(){return i(r(63399))}))})),RightArrow:(0,s.defineAsyncComponent)((function(){return Promise.resolve().then((function(){return i(r(17824))}))})),RightArrowDisabled:(0,s.defineAsyncComponent)((function(){return Promise.resolve().then((function(){return i(r(9085))}))}))},props:{direction:{type:String,default:"left"},enabled:{type:Boolean,default:!0}}}},48775:function(e,t,r){function o(){var e,t,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function s(r,o,a,i){var s=o&&o.prototype instanceof c?o:c,u=Object.create(s.prototype);return n(u,"_invoke",function(r,o,n){var a,i,s,c=0,u=n||[],d=!1,p={p:0,n:0,v:e,a:m,f:m.bind(e,4),d:function(t,r){return a=t,i=0,s=e,p.n=r,l}};function m(r,o){for(i=r,s=o,t=0;!d&&c&&!n&&t<u.length;t++){var n,a=u[t],m=p.p,f=a[2];r>3?(n=f===o)&&(s=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=m&&((n=r<2&&m<a[1])?(i=0,p.v=o,p.n=a[1]):m<f&&(n=r<3||a[0]>o||o>f)&&(a[4]=r,a[5]=o,p.n=f,i=0))}if(n||r>1)return l;throw d=!0,o}return function(n,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&m(u,f),i=u,s=f;(t=i<2?e:s)||!d;){a||(i?i<3?(i>1&&(p.n=-1),m(i,s)):p.n=s:p.v=s);try{if(c=2,a){if(i||(n="next"),t=a[n]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(s=TypeError("The iterator does not provide a '"+n+"' method"),i=1);a=e}else if((t=(d=p.n<0)?s:r.call(o,p))!==l)break}catch(t){a=e,i=1,s=t}finally{c=1}}return{value:t,done:d}}}(r,a,i),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var p=[][a]?t(t([][a]())):(n(t={},a,(function(){return this})),t),m=d.prototype=c.prototype=Object.create(p);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,n(e,i,"GeneratorFunction")),e.prototype=Object.create(m),e}return u.prototype=d,n(m,"constructor",d),n(d,"constructor",u),u.displayName="GeneratorFunction",n(d,i,"GeneratorFunction"),n(m),n(m,i,"Generator"),n(m,a,(function(){return this})),n(m,"toString",(function(){return"[object Generator]"})),(o=function(){return{w:s,m:f}})()}function n(e,t,r,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}n=function(e,t,r,o){if(t)a?a(e,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[t]=r;else{var i=function(t,r){n(e,t,(function(e){return this._invoke(t,r,e)}))};i("next",0),i("throw",1),i("return",2)}},n(e,t,r,o)}function a(e,t,r,o,n,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(o,n)}var i,s=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||(i=function(e){return i=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},i(e)}
2,function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=i(e),o=0;o<r.length;o++)"default"!==r[o]&&s(t,e,r[o]);return l(t,e),t});Object.defineProperty(t,"__esModule",{value:!0});var u=r(29726);t.default={name:"RadioGroup",emits:["selected-option"],components:{RadioInput:(0,u.defineAsyncComponent)((function(){return Promise.resolve().then((function(){return c(r(28442))}))}))},props:{selected:{type:Boolean,required:!1,default:!1},value:{type:Number,required:!0},text:{type:String,required:!0}},methods:{selectRadio:function(e){var t,r=this;return(t=o().m((function t(){return o().w((function(t){for(;;)switch(t.n){case 0:r.$emit("selected-option",e);case 1:return t.a(2)}}),t)})),function(){var e=this,r=arguments;return new Promise((function(o,n){var i=t.apply(e,r);function s(e){a(i,o,n,s,l,"next",e)}function l(e){a(i,o,n,s,l,"throw",e)}s(void 0)}))})()}}}},56998:function(e,t,r){var o,n=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||(o=function(e){return o=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},o(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=o(e),i=0;i<r.length;i++)"default"!==r[i]&&n(t,e,r[i]);return a(t,e),t});Object.defineProperty(t,"__esModule",{value:!0});var s=r(29726);t.default={name:"RadioInput",components:{RadioInputSelected:(0,s.defineAsyncComponent)((function(){return Promise.resolve().then((function(){return i(r(10945))}))})),RadioInputUnselected:(0,s.defineAsyncComponent)((function(){return Promise.resolve().then((function(){return i(r(55783))}))}))},props:{selected:{type:Boolean,required:!0}}}},31403:(e,t)=>{Object.defineProperty(t,"B",{value:!0}),t.A={name:"LeftArrow"}},93235:(e,t)=>{Object.defineProperty(t,"B",{value:!0}),t.A={name:"LeftArrowDisabled"}},49492:(e,t)=>{Object.defineProperty(t,"B",{value:!0}),t.A={name:"RightArrow"}},82084:(e,t)=>{Object.defineProperty(t,"B",{value:!0}),t.A={name:"RightArrowDisabled"}},52950:(e,t)=>{Object.defineProperty(t,"B",{value:!0}),t.A={name:"RadioInputSelected"}},63335:(e,t)=>{Object.defineProperty(t,"B",{value:!0}),t.A={name:"RadioInputUnselected"}},64671:(e,t,r)=>{t.X=function(e,t,r,y,b,w){return(0,o.openBlock)(),(0,o.createElementBlock)("div",n,[e.avaliacoes.length>0?((0,o.openBlock)(),(0,o.createElementBlock)("div",a,[(0,o.createElementVNode)("div",i,[(0,o.createElementVNode)("div",s,[(0,o.createElementVNode)("img",{src:e.starWarning500,alt:"estrela laranja"},null,8,l)]),(0,o.createElementVNode)("div",c,(0,o.toDisplayString)(e.avaliacoes[0].top),1)]),(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["nota-bottom d-flex direction-column",{"w-190":e.avaliacoes[0].bottom.length<42}])},[(0,o.createElementVNode)("div",u,(0,o.toDisplayString)(e.avaliacoes[0].bottom),1),(0,o.createElementVNode)("div",{class:"hide-desktop c-primary-600 typo-body-2 typo-regular text-decoration-underline",onClick:t[0]||(t[0]=function(t){return e.showSwiper=!e.showSwiper})},(0,o.toDisplayString)(e.showSwiper?"Fechar":"Ver mais"),1)],2)])):(0,o.createCommentVNode)("",!0),e.avaliacoes.length>1?(0,o.withDirectives)(((0,o.openBlock)(),(0,o.createElementBlock)("div",d,[(0,o.createElementVNode)("div",p,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.avaliacoes.slice(1),(function(t,r){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{key:r+1,class:"viacao-nota swiper-slide"},[(0,o.createElementVNode)("div",m,[(0,o.createElementVNode)("div",f,[(0,o.createElementVNode)("img",{src:e.starWarning500,alt:"estrela laranja"},null,8,h)]),(0,o.createElementVNode)("div",v,(0,o.toDisplayString)(t.top),1)]),(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["nota-bottom",{"w-190":t.bottom.length<42}])},[(0,o.createElementVNode)("div",g,(0,o.toDisplayString)(t.bottom),1)],2)])})),128))])],512)),[[o.vShow,e.mustShowSwiper]]):(0,o.createCommentVNode)("",!0)])};
2var o=r(29726),n={class:"viacao-notas loading container"},a={key:0,class:(0,o.normalizeClass)(["viacao-nota","first"])},i={class:(0,o.normalizeClass)(["nota-top"])},s={class:(0,o.normalizeClass)(["icon","big"])},l=["src"],c={class:(0,o.normalizeClass)(["text","big"])},u={class:"text"},d={key:1,class:"swiper"},p={class:"separation swiper-wrapper"},m={class:(0,o.normalizeClass)(["nota-top","invert-icon"])},f={class:"icon"},h=["src"],v={class:"text"},g={class:"text"}},44081:(e,t,r)=>{t.X=function(e,t,r,s,l,c){return(0,o.openBlock)(),(0,o.createElementBlock)("div",n,["svg"==r.amenitie.type?((0,o.openBlock)(),(0,o.createElementBlock)("img",{key:0,src:r.amenitie.icon,alt:r.amenitie.title},null,8,a)):(0,o.createCommentVNode)("",!0),"material"==r.amenitie.type?((0,o.openBlock)(),(0,o.createElementBlock)("i",i,(0,o.toDisplayString)(r.amenitie.icon),1)):(0,o.createCommentVNode)("",!0)])};var o=r(29726),n={class:"amenitieIcon d-flex itens-center justify-center"},a=["src","alt"],i={key:1,style:{"font-size":"15px"},class:"c-primary-600 material-symbols-outlined"}},80838:(e,t,r)=>{t.X=function(e,t,r,i,s,l){var c=(0,o.resolveComponent)("AmenitieIcon"),u=(0,o.resolveComponent)("Tooltip");return r.result&&r.result.amenities&&r.result.amenities.length?((0,o.openBlock)(),(0,o.createElementBlock)("div",n,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(r.result.amenities,(function(e){return(0,o.openBlock)(),(0,o.createElementBlock)("div",a,[r.withTooltip?((0,o.openBlock)(),(0,o.createBlock)(u,{key:0,text:e.title},{default:(0,o.withCtx)((function(){return[(0,o.createVNode)(c,{amenitie:e},null,8,["amenitie"])]})),_:2},1032,["text"])):((0,o.openBlock)(),(0,o.createBlock)(c,{key:1,amenitie:e},null,8,["amenitie"]))])})),256))])):(0,o.createCommentVNode)("",!0)};
2var o=r(29726),n={key:0,class:"d-flex itens-center justify-center gap-4"},a={class:"p-4 bg-primary-100 rounded-4 d-flex itens-center justify-center"}},85876:(e,t,r)=>{t.X=function(e,t,r,X,U,$){var Q,J,Y,Z,K,ee,te=this,re=(0,o.resolveComponent)("CardResultado"),oe=(0,o.resolveComponent)("PaginationArrow"),ne=(0,o.resolveComponent)("RadioGroup"),ae=(0,o.resolveComponent)("LoaderAnimation");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)([{close:!(null!==(Q=r.result.seats)&&void 0!==Q&&Q.open),searching:$.hasAnyBusSearching},"busWrapper"]),ref:"busWrapper"},[null!==(J=r.result.seats)&&void 0!==J&&J.open?((0,o.openBlock)(),(0,o.createElementBlock)("div",n,[(0,o.createElementVNode)("div",a,[t[7]||(t[7]=(0,o.createElementVNode)("p",{class:"c-primary-900 typo-h5 typo-bold"},"Selecionar poltrona",-1)),(0,o.createElementVNode)("i",{class:"uil uil-multiply c-gray-900",onClick:t[0]||(t[0]=function(e){r.result.seats.open=!1})})]),$.hasAnyFullBus?((0,o.openBlock)(),(0,o.createElementBlock)("div",i,t[8]||(t[8]=[(0,o.createElementVNode)("i",{class:"uil uil-exclamation-triangle c-primary-900",style:{"font-size":"32px"}},null,-1),(0,o.createElementVNode)("div",null,[(0,o.createElementVNode)("p",{class:"c-gray-900 typo-body-1 typo-semi-bold mb-4"},"Esse ônibus lotou!"),(0,o.createElementVNode)("p",{class:"c-gray-900 typo-body-2"},"Mas ainda temos outros horários disponÃveis, confira e garanta sua viagem.")],-1)]))):$.shouldShowBusLayout()?((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:1},[(null===(Y=r.result.seats)||void 0===Y?void 0:Y.buses.length)>1?((0,o.openBlock)(),(0,o.createElementBlock)("div",s,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(null===(Z=r.result.seats)||void 0===Z?void 0:Z.buses,(function(e,t){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)([{selected:U.selectedConnection===t},"p-12 text-center grow-1 c-gray-900 typo-medium typo-body-2"]),onClick:function(e){return U.selectedConnection=t}}," Trecho "+(0,o.toDisplayString)(t+1),11,l)})),256))])):(0,o.createCommentVNode)("",!0),((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(null===(K=r.result.seats)||void 0===K?void 0:K.buses,(function(e,n){return(0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[$.selectedConnectionOnMobile(n)?((0,o.openBlock)(),(0,o.createElementBlock)("div",c,[Number(n)>0?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,class:"connectionHeader d-flex itens-center justify-space-between border-gray-300",onClick:t[1]||(t[1]=(0,o.withModifiers)((function(e){return $.scrollToConnection(e.target)}),["stop"]))},[(0,o.createElementVNode)("p",u,"Trecho "+(0,o.toDisplayString)(n+1),1),t[9]||(t[9]=(0,o.createElementVNode)("div",{class:"p-12 bg-white"},[(0,o.createElementVNode)("p",{class:"c-gray-700 typo-body-2 typo-medium border border-gray-300 p-8 rounded-24 d-flex itens-center justify-space-between gap-8"},[(0,o.createElementVNode)("i",{class:"uil uil-arrow-circle-down",style:{"font-size":"20px"}}),(0,o.createTextVNode)(" Conexão ")])],-1)),(0,o.createElementVNode)("p",d,(0,o.toDisplayString)($.getConnectionDate(n)),1)])):(0,o.createCommentVNode)("",!0),$.shouldShowInfoCardHeader(n)?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:1,class:(0,o.normalizeClass)({"border-b border-gray-300":$.hasConnections})},[(0,o.createVNode)(re,{"show-all-card-tags":!1,"hover-effect":!1,"with-margin":!1,"with-seats":!1,"with-border":!1,result:$.getConnectionOnIndex(n),"button-type":0},null,8,["result"])],2)):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("div",p,[(0,o.createElementVNode)("div",{class:"data p-16 grow-1 shrink-0",style:(0,o.normalizeStyle)({height:$.calculateDataDivHeightOnMobile(e)})},[e.withoutSelection?((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:0},[t[10]||(t[10]=(0,o.createElementVNode)("div",{class:"bg-warning-100 border border-warning rounded-4 py-8 px-16 mb-32 typo-body-2 c-gray-700 text-center"}," Essa viagem opera sem marcação de poltrona. Então, seu número será informado apenas no e-mail de confirmação de compra. ",-1)),t[11]||(t[11]=(0,o.createElementVNode)("div",{class:"explainText d-flex itens-center justify-center gap-8"},[(0,o.createElementVNode)("i",{class:"uil uil-info-circle c-primary-900"}),(0,o.createElementVNode)("p",{class:"text-center typo-body-2 c-primary-900"},"Selecione a quantidade de poltronas que deseja reservar:")],-1)),(0,o.createElementVNode)("div",m,[(0,o.createElementVNode)("i",{class:(0,o.normalizeClass)(["uil uil-minus-circle c-primary-600",{disabled:!$.canDecreaseQuantityOfSeatsSelected(e)}]),onClick:(0,o.withModifiers)((function(t){return $.decreaseQuantityOfSeatsSelected(e)}),["stop"])},null,10,f),(0,o.createElementVNode)("p",h,(0,o.toDisplayString)(e.quantityOfSeatsSelected),1),(0,o.createElementVNode)("i",{class:(0,o.normalizeClass)(["uil uil-plus-circle c-primary-600",{disabled:0!==$.canIncreaseQuantityOfSeatsSelected(e)}]),onClick:(0,o.withModifiers)((function(t){return $.increaseQuantityOfSeatsSelected(e)}),["stop"])},null,10,v)]),t[12]||(t[12]=(0,o.createElementVNode)("p",{class:"typo-caption c-gray-700 text-center mb-16"},"*Cada poltrona corresponde a 1 passageiro.",-1))],64)):((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:1}
2,[$.hasMultiplePrices(e)?((0,o.openBlock)(),(0,o.createElementBlock)("div",g,[(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)([{"justify-center":!$.isMobile()},"d-flex itens-center gap-24 mb-8"]),style:{width:"100%","overflow-x":"auto"}},[te.shouldShowPagination(e.grid)?((0,o.openBlock)(),(0,o.createBlock)(oe,{key:0,direction:"left",enabled:U.currentPage>1,onClick:t[2]||(t[2]=function(){U.currentPage>1&&U.currentPage--})},null,8,["enabled"])):(0,o.createCommentVNode)("",!0),((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(te.displayedPrices(e.grid),(function(t){return(0,o.openBlock)(),(0,o.createBlock)(ne,{value:t,text:$.formatCurrency(t),selected:t==e.selectedPrice,onSelectedOption:(0,o.withModifiers)((function(t){return $.selectPrice(t,e)}),["self"])},null,8,["value","text","selected","onSelectedOption"])})),256)),te.shouldShowPagination(e.grid)?((0,o.openBlock)(),(0,o.createBlock)(oe,{key:1,direction:"right",enabled:U.currentPage<$.pageCount(e.grid),onClick:function(){U.currentPage<$.pageCount(e.grid)&&U.currentPage++}},null,8,["enabled","onClick"])):(0,o.createCommentVNode)("",!0)],2),!e.grid||!e.selectedPrice||e.grid&&te.getAvailableSeatPrices(e.grid).length<3?((0,o.openBlock)(),(0,o.createElementBlock)("p",y," Escolha onde quer viajar! Os preços variam conforme a posição no ônibus. ")):e.grid&&e.selectedPrice==$.getMaxSeatPrice(e.grid)?((0,o.openBlock)(),(0,o.createElementBlock)("p",b," Mais conforto na sua viagem! Experiência mais confortável durante o trajeto. ")):e.grid&&e.selectedPrice==$.getMinAvailableSeatPrice(e.grid)?((0,o.openBlock)(),(0,o.createElementBlock)("p",w," Viaje pagando menos! Esses são os assentos mais econômicos disponÃveis. ")):((0,o.openBlock)(),(0,o.createElementBlock)("p",x," EquilÃbrio entre preço e conforto! Boa posição no ônibus por um preço acessÃvel. ")),(0,o.createElementVNode)("p",k,[t[13]||(t[13]=(0,o.createTextVNode)(" Selecione a quantidade de passageiros marcando as poltronas desejadas")),e.maxSeats?((0,o.openBlock)(),(0,o.createElementBlock)("span",S," (até "+(0,o.toDisplayString)(e.maxSeats)+")",1)):(0,o.createCommentVNode)("",!0),t[14]||(t[14]=(0,o.createTextVNode)(": "))])])):((0,o.openBlock)(),(0,o.createElementBlock)("div",C,[t[17]||(t[17]=(0,o.createElementVNode)("i",{class:"uil uil-info-circle c-primary-900"},null,-1)),(0,o.createElementVNode)("p",B,[t[15]||(t[15]=(0,o.createTextVNode)("Selecione a quantidade de passageiros marcando as poltronas desejadas")),e.maxSeats?((0,o.openBlock)(),(0,o.createElementBlock)("span",E," (até "+(0,o.toDisplayString)(e.maxSeats)+")",1)):(0,o.createCommentVNode)("",!0),t[16]||(t[16]=(0,o.createTextVNode)(":"))])])),$.getAvailableFloorsBySelectedPrice(e).length>1?((0,o.openBlock)(),(0,o.createElementBlock)("ul",_,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)($.getAvailableFloorsBySelectedPrice(e),(function(t,r){return(0,o.openBlock)(),(0,o.createElementBlock)("li",{class:(0,o.normalizeClass)(["border border-gray-300 rounded-4 py-8 px-16 c-gray-700 typo-caption",{selected:e.selectedFloor===t}]),onClick:(0,o.withModifiers)((function(r){return e.selectedFloor=t}),["stop"])},(0,o.toDisplayString)(r+1)+"° andar",11,O)})),256))])):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("div",N,[(0,o.createElementVNode)("div",P,[(0,o.createElementVNode)("img",{src:$.getStaticUrl("Images/volante-poltrona.svg"),alt:"Volante",class:(0,o.normalizeClass)({rotate:U.steeringWellAnimated}),onClick:t[3]||(t[3]=(0,o.withModifiers)((function(e){return U.steeringWellAnimated=!0}),["stop"])),onAnimationend:t[4]||(t[4]=function(e){return U.steeringWellAnimated=!1})},null,42,j)]),(0,o.createElementVNode)("div",A,[e.searching?((0,o.openBlock)(),(0,o.createElementBlock)("div",T,[(0,o.createVNode)(ae,{"loader-style":2}),t[18]||(t[18]=(0,o.createElementVNode)("p",{class:"typo-body-2 c-gray-700"},"Estamos montando os assentos...",-1))])):((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:1,class:"busLayout",style:(0,o.normalizeStyle)({gridTemplateColumns:"repeat("+$.getMaxBusSize(e)+", 1fr)"})},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)($.getSeatsByFloor(e),(function(t){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{style:(0,o.normalizeStyle)({gridColumn:t.x+1+" / "+(t.x+2),gridRow:5-t.y+" / "+(5-t.y+1)}),onClick:(0,o.withModifiers)((function(r){return $.selectSeat(t,e)}),["stop"]),class:(0,o.normalizeClass)(["d-flex itens-center justify-center border rounded-8 typo-body-2 typo-semi-bold p-4",{"border-gray-300 c-gray-400 occupied":$.isSeatOccupied(e,t),"c-primary-600 border-primary-c600":!$.isSeatOccupied(e,t),selected:t.selected}])},(0,o.toDisplayString)($.isSeatOccupied(e,t)?"X":t.label),15,V)})),256))],4))])]),(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["guide d-flex itens-center justify-center gap-32",{"mt-24"
2:!$.isMobile(),multiplePrices:$.hasMultiplePrices(e)}])},t[19]||(t[19]=[(0,o.createStaticVNode)('<div class="d-flex itens-center justify-center gap-8"><div class="rounded-4 p-8 border border-primary-c600"></div><p class="typo-caption c-gray-700">Livre</p></div><div class="d-flex itens-center justify-center gap-8"><div class="rounded-4 p-8 bg-primary-400"></div><p class="typo-caption c-gray-700">Selecionado</p></div><div class="d-flex itens-center justify-center gap-8"><div class="rounded-4 p-2 border border-gray-300 c-gray-400"><i class="uil uil-times"></i></div><p class="typo-caption c-gray-700">Ocupado</p></div>',3)]),2)],64))],4),e.searching?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",D,[(0,o.createElementVNode)("div",R,[e.withoutSelection?((0,o.openBlock)(),(0,o.createElementBlock)("p",I,"Quantidade de poltronas desejadas")):((0,o.openBlock)(),(0,o.createElementBlock)("p",M,"Poltronas selecionadas")),e.maxSeats?((0,o.openBlock)(),(0,o.createElementBlock)("p",L,"("+(0,o.toDisplayString)($.selectedSeats(e).length)+"/"+(0,o.toDisplayString)(e.maxSeats)+")",1)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("div",F,[$.selectedSeats(e).length&&!e.withoutSelection?((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,{key:0},(0,o.renderList)($.selectedSeats(e),(function(e){return(0,o.openBlock)(),(0,o.createElementBlock)("div",W,(0,o.toDisplayString)(e.label),1)})),256)):$.selectedSeats(e).length&&e.withoutSelection?((0,o.openBlock)(),(0,o.createElementBlock)("div",z,(0,o.toDisplayString)($.selectedSeats(e).length),1)):((0,o.openBlock)(),(0,o.createElementBlock)("div",q,"-"))]),Number(n)===r.result.seats.buses.length-1||$.isMobile()?((0,o.openBlock)(),(0,o.createElementBlock)("button",{key:0,class:"success",onClick:t[5]||(t[5]=(0,o.withModifiers)((function(e){return $.goToNextSteep()}),["stop"]))},(0,o.toDisplayString)($.seatButtonText),1)):(0,o.createCommentVNode)("",!0)]))])])):(0,o.createCommentVNode)("",!0)],64)})),256))],64)):((0,o.openBlock)(),(0,o.createElementBlock)("div",H,[t[22]||(t[22]=(0,o.createElementVNode)("i",{class:"uil uil-exclamation-triangle c-primary-900",style:{"font-size":"32px"}},null,-1)),(0,o.createElementVNode)("div",null,[t[21]||(t[21]=(0,o.createElementVNode)("p",{class:"c-gray-900 typo-body-1 typo-semi-bold mb-4"},"Não conseguimos localizar as poltronas desse ônibus.",-1)),(null===(ee=r.result.seats)||void 0===ee?void 0:ee.attempts)<=3?((0,o.openBlock)(),(0,o.createElementBlock)("p",G,[t[20]||(t[20]=(0,o.createTextVNode)("Mas não se preocupe! Você pode atualizar e tentaremos montar os assentos outra vez: ")),(0,o.createElementVNode)("span",{onClick:t[6]||(t[6]=(0,o.withModifiers)((function(e){return $.selectResult()}),["stop"])),class:"pl-2 c-primary-600 typo-body-2 typo-semi-bold",style:{cursor:"pointer"}},"Atualizar poltronas")])):(0,o.createCommentVNode)("",!0)])]))])):(0,o.createCommentVNode)("",!0)],2)};
2var o=r(29726),n={key:0,class:"border-t border-gray-300 bg-white"},a={class:"floatingHeader d-flex itens-center justify-space-between py-16 px-24 border-b border-gray-300"},i={key:0,class:"bg-gray-100 rounded-4 p-16 d-flex itens-center justify-start gap-16 mt-16 mx-16"},s={key:0,class:"connectionToogle d-flex itens-center justify-center rounded-8 border border-gray-300 mx-16 mt-16"},l=["onClick"],c={key:0},u={class:"c-gray-700 typo-body-2 typo-medium p-12 bg-white"},d={class:"c-gray-700 typo-body-2 typo-medium p-12 bg-white"},p={class:"d-flex busBg"},m={class:"selectionWithoutSeats my-40 d-flex itens-center justify-space-around rounded-4 border border-gray-300 gap-32 py-16 px-24"},f=["onClick"],h={class:"c-primary-900 typo-h5 typo-bold"},v=["onClick"],g={key:0},y={key:0,class:"c-primary-900 text-center typo-body-2 typo-semi-bold"},b={key:1,class:"c-primary-900 text-center typo-body-2 typo-semi-bold"},w={key:2,class:"c-primary-900 text-center typo-body-2 typo-semi-bold"},x={key:3,class:"c-primary-900 text-center typo-body-2 typo-semi-bold"},k={class:"c-primary-900 text-center typo-body-2 typo-regular mb-16"},S={key:0,class:"typo-body-2 c-primary-900"},C={key:1,class:"explainText d-flex itens-center justify-center mb-16 gap-8"},B={class:"text-center typo-body-2 c-primary-900"},E={key:0,class:"typo-body-2 c-primary-900"},_={key:2,class:"floors d-flex itens-center justify-center gap-16 mb-16"},O=["onClick"],N={class:"bus bg-white border border-gray-300 p-16 d-flex gap-16 grow-1"},P={class:"driver d-flex itens-end justify-center pb-32 shrink-0"},j=["src"],A={class:"seats grow-1"},T={key:0,class:"load text-center d-flex itens-center justify-center"},V=["onClick"],D={key:0,class:"selection shrink-0 border-l border-gray-300 p-16"},R={class:"d-flex itens-center justify-space-between gap-8"},M={key:0,class:"typo-body-2 typo-medium c-gray-900"},I={key:1,class:"typo-body-2 typo-medium c-gray-900"},L={key:2,class:"typo-body-2 c-gray-900 shrink-0"},F={class:"selecteds d-flex itens-center justify-start wrap my-12"},W={class:"d-flex itens-center justify-center border border-primary-c600 rounded-8 c-white bg-primary-400 typo-caption typo-bold"},z={key:1,class:"d-flex itens-center justify-center border border-primary rounded-8 c-primary-900 typo-caption typo-bold"},q={key:2,class:"d-flex itens-center justify-center border border-primary rounded-8 c-primary-900 typo-caption typo-bold"},H={key:2,class:"bg-gray-100 rounded-4 p-16 d-flex itens-center justify-start gap-16 mt-16 mx-16"},G={key:0,class:"c-gray-900 typo-body-2"}},95768:(e,t,r)=>{function o(e){return o="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},o(e)}function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.X=function(e,t,r,o,Q,J){var Y,Z,K,ee,te=(0,a.resolveComponent)("Logos"),re=(0,a.resolveComponent)("TagCompanyRating"),oe=(0,a.resolveComponent)("TagLastSeats"),ne=((0,a.resolveComponent)("TagSalaVip"),(0,a.resolveComponent)("TagHighlight")),ae=(0,a.resolveComponent)("TagBoardingType"),ie=(0,a.resolveComponent)("Amenities"),se=(0,a.resolveComponent)("TagConnection"),le=(0,a.resolveComponent)("TagDebug"),ce=(0,a.resolveComponent)("BusSeats");return(0,a.openBlock)(),(0,a.createElementBlock)("div",{ref:"CardResultado",onClick:t[3]||(t[3]=function(e){return J.selectResult()})},[r.showNearBoardingAlert?((0,a.openBlock)(),(0,a.createElementBlock)("div",i,t[4]||(t[4]=[(0,a.createElementVNode)("div",{class:"d-flex itens-center justify-start"},[(0,a.createElementVNode)("i",{class:"uil uil-clock mr-8"}),(0,a.createElementVNode)("p",{class:"typo-semi-bold typo-caption"},"PARTIDA PRÃXIMA")],-1),(0,a.createElementVNode)("p",{class:"typo-semi-bold typo-caption"},"Somente PIX ou NuPay",-1)]))):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",{class:(0,a.normalizeClass)(["cardResultado bg-white pb-16 border",n({n
2oHover:!r.hoverEffect,"my-16":r.withMargin,"rounded-8 border-gray-300":r.withBorder&&!r.showNearBoardingAlert,"border-warning-c600":r.withBorder&&r.showNearBoardingAlert,"rounded-8 border-box-aviso-embarque-proximo":r.showNearBoardingAlert&&Q.mobile,"rounded-8-b border-box-aviso-embarque-proximo":r.showNearBoardingAlert&&!Q.mobile,"pt-16":r.withPaddingTop,"embarque-proximo":r.showNearBoardingAlert},r.customClass,!0)])},[(0,a.createElementVNode)("div",s,[(0,a.createElementVNode)("div",l,[(0,a.createVNode)(te,{logos:Q.logos},null,8,["logos"])]),(0,a.createElementVNode)("p",c,"Viação "+(0,a.toDisplayString)(null===(Y=Q.logos.find((function(e){return e.show})))||void 0===Y?void 0:Y.name),1),(0,a.createVNode)(re,{company:r.result.company},null,8,["company"])]),(0,a.createElementVNode)("div",u,[(0,a.createElementVNode)("div",d,[(0,a.createVNode)(te,{logos:Q.logos},null,8,["logos"])]),(0,a.createElementVNode)("div",p,[(0,a.createElementVNode)("div",{class:(0,a.normalizeClass)(["times d-flex itens-center justify-space-between",{"gap-32":Q.mobile,"gap-12":!Q.mobile}])},[(0,a.createElementVNode)("p",m,(0,a.toDisplayString)(J.formatHour(r.result.departure)),1),t[5]||(t[5]=(0,a.createElementVNode)("div",{class:"middle grow-1"},[(0,a.createElementVNode)("i",{class:"uil uil-angle-right-b c-gray-300"})],-1)),(0,a.createElementVNode)("p",f,(0,a.toDisplayString)(J.formatHour(J.getArrivalDateToShow)),1)],2),(0,a.createElementVNode)("p",h,[t[6]||(t[6]=(0,a.createElementVNode)("span",{class:"typo-caption c-gray-500"},"Duração:",-1)),(0,a.createTextVNode)(" "+(0,a.toDisplayString)(J.getDurationToShow),1)])]),(0,a.createElementVNode)("div",v,[(0,a.createElementVNode)("div",g,[t[7]||(t[7]=(0,a.createElementVNode)("i",{class:"uil uil-circle"},null,-1)),(0,a.createElementVNode)("p",y,(0,a.toDisplayString)(r.result.from),1)]),(0,a.createElementVNode)("div",{class:(0,a.normalizeClass)(["d-flex itens-center justify-start gap-8",{"mt-16":Q.mobile,"mt-8":!Q.mobile}])},[t[8]||(t[8]=(0,a.createElementVNode)("i",{class:"uil uil-map-marker"},null,-1)),(0,a.createElementVNode)("p",b,(0,a.toDisplayString)(J.getDestinationToShow),1)],2)]),(0,a.createElementVNode)("div",w,[(0,a.createElementVNode)("div",x,[r.result.seatClassIcon?((0,a.openBlock)(),(0,a.createElementBlock)("img",{key:0,class:"shrink-0 resultClassIcon",src:r.result.seatClassIcon,alt:""},null,8,k)):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("p",S,(0,a.toDisplayString)(r.result.seatClass),1)]),r.result.lastSeats?((0,a.openBlock)(),(0,a.createBlock)(oe,{key:0})):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",C,[(0,a.createCommentVNode)("",!0)])]),r.showPrice?((0,a.openBlock)(),(0,a.createElementBlock)("div",B,[2===r.buttonType?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[t[9]||(t[9]=(0,a.createElementVNode)("p",{class:"typo-caption c-gray-800"},"A partir de",-1)),(0,a.createElementVNode)("p",{class:"c-gray-800 typo-h5 typo-bold",innerHTML:J.getFormatedValueHtml},null,8,E)],64)):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[J.getMaxPriceToShow?((0,a.openBlock)(),(0,a.createElementBlock)("p",_,(0,a.toDisplayString)(J.formatCurrency(J.getMaxPriceToShow)),1)):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("p",{class:"c-gray-800 typo-h5 typo-bold",innerHTML:J.getFormatedValueHtml},null,8,O),J.getMaxPriceToShow?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("p",N,"por pessoa"))],64))])):(0,a.createCommentVNode)("",!0),r.showAllCardTags||!r.showPrice?((0,a.openBlock)(),(0,a.createElementBlock)("div",P,[r.showAllCardTags?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.createVNode)(ne,{highlightTagType:r.highlightTagType},null,8,["highlightTagType"]),(0,a.createVNode)(ae,{result:r.result},null,8,["result"]),r.showAmenities?((0,a.openBlock)(),(0,a.createBlock)(ie,{key:0,withTooltip:!1,result:r.result},null,8,["result"])):(0,a.createCommentVNode)("",!0),(0,a.createCommentVNode)("",!0)],64)):(0,a.createCommentVNode)("",!0),r.showPrice?(0,a.createCommentVNode)("",!0):((0,a.openBlock)(),(0,a.createElementBlock)("div",j,[(0,a.createElementVNode)("img",{class:"shrink-0 resultClassIcon",src:r.result.seatClassIcon||"https://assets.queropassagem.com.br/static/Images/Icones/seat.svg",alt:""},null,8,A),(0,a.createElementVNode)("p",T,(0,a.toDisplayString)(r.result.seatClass),1)])),r.showAllCardTags?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:2},[(0,a.createVNode)(se,{onOpenInfo:J.openConnectionInfo,result:r.result},null,8,["onOpenInfo","result"]),r.showCardTags?((0,a.openBlock)(),(0,a.createBlock)(le,{key:0,result:r.result},null,8,["result"])):(0,a.createCommentVNode)("",!0),r.result.lastSeats?((0,a.openBlock)(),(0,a.createBlock)(oe,{key:1})):(0,a.createCommentVNode)("",!0)],64)):(0,a.createCommentVNode)("",!0)])):(0,a.createCommentVNode)("",!0),r.showPrice?((0,a.openBlock)(),(0,a.createElementBlock)("div",V,[2===r.buttonType?((0,a.openBlock)(),(0,a.createElementBlock)("p",D,"A partir de")):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[(0,a.createElementVNode)("img",{class:"shrink-0 resultClassIcon",src:r.result.seatClassIcon||"https://assets.queropassagem.com.br/static/Images/Icones/seat.svg",alt:""},null,8,R),(0,a.createElementVNode)("p",M,(0,a.toDisplayString)(r.result.seatClass),1)],64)),(0,a.createElementVNode)("p",{class:"grow-1 text-right shrink-0 typo-h5 c-gray-800 typo-bold",innerHTML:J.getFormatedValueHtml},null,8,I),t[10]||(t[10]=(0,a.createElementVNode)("div",{class:"btn bg-primary-600 px-4 d-flex itens-center justify-center"},[(0,a.createElementVNode)("i",{class:"uil uil-angle-right-b c-white"})],-1))])):(0,a.createCommentVNode)("",!0),!Q.mobile&&null!==(Z=r.result.seats)&&void 0!==Z&&Z.open?((0,a.openBlock)(),(0,a.createElementBlock)("button",{key:3,class:"shrink-0 secondary",onClick:t[0]||(t[0]=(0,a.withModifiers)((function(e){return r.result.seats.open=!1}),["stop"]))},"Fechar")):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:4},[J.hasAnyFullBus?((0,a.openBlock)(),(0,a.createElementBlock)("button",L,"Lotado")):1===r.buttonType?((0,a.openBlock)(),(0,a.createElementBlock)("button",F,"Escolher ida")):2===r.buttonType?((0,a.openBlock)(),(0,a.createElementBlock)("button",W,"Ver rota")):3===r.buttonType?((0,a.openBlock)(),(0,a.createElementBlock)("button",z,"Escolher volta")):(0,a.createCommentVNode)("",!0)],64))]),r.showAllCardTags?((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:0,class:(0,a.normalizeClass)(["desktop tags mt-12 pt-12 d-flex itens-center justify-space-between border-t border-gray-300 gap-8",{"mx-16":!Q.mobile,"px-16":Q.mobile}])},[(0,a.createElementVNode)("div",q,[(0,a.createVNode)(re,{company:r.result.company},null,8,["company"]),(0,a.createElementVNode)("p",H,"Viação "+(0,a.toDisplayString)(null===(K=Q.logos.find((function(e){return e.show})))||void 0===K?void 0:K.name),1),(0,a.createElementVNode)("div",G,[(0,a.createVNode)(ne,{highlightTagType:r.highlightTagType},null,8,["highlightTagType"])])]),(0,a.createElementVNode)("div",X,[(0,a.createVNode)(se,{onOpenInfo:J.openConnectionInfo,result:r.result},null,8,["onOpenInfo","result"]),r.showCardTags?((0,a.openBlock)(),(0,a.createBlock)(le,{key:0,result:r.result},null,8,["result"])):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",U,[r.showAmenities?((0,a.openBlock)(),(0,a.createBlock)(ie,{key:0,result:r.result},null,8,["result"])):(0,a.createCommentVNode)("",!0),(0,a.createCommentVNode)("",!0),(0,a.createVNode)(ae,{result:r.result},null,8,["result"])])],2)):(0,a.createCommentVNode)("",!0),r.withSeats?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[J.isModalPoltronas()?((0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{key:1,to:"body"},[(0,a.createElementVNode)("div",{class:(0,a.normalizeClass)(["modalCardResultado",{open:null===(ee=r.result.seats)||void 0===ee?void 0:ee.open}])},[(0,a.createVNode)(ce,{result:r.result,"is-return":r.isReturn,"seats-button-type":r.seatsButtonType,onResultSelected:t[2]||(t[2]=function(e){return J.selectResult(!0)}),onSeatsSelected:J.goToNextSteep},null,8,["result","is-return","seats-button-type","onSeatsSelected"])],2)])):((0,a.openBlock)(),(0,a.createElementBlock)("div",$,[(0,a.createVNode)(ce,{result:r.result,"is-return":r.isReturn,"seats-button-type":r.seatsButtonType,onResultSelected:t[1]||(t[1]=function(e){return J.selectResult(!0)}),onSeatsSelected:J.goToNextSteep},null,8,["result","is-return","seats-button-type","onSeatsSelected"])]))],64)):(0,a.createCommentVNode)("",!0)],2)],512)};
2var a=r(29726),i={key:0,class:"aviso-embarque-proximo c-white bg-warning-600 d-flex itens-center justify-space-between"},s={class:"mobile border-b border-gray-300 d-flex itens-center justify-space-between px-16 gap-12"},l={class:"logoHolder shrink-0"},c={class:"companyName grow-1 text-right typo-caption c-gray-700"},u={class:"main d-flex itens-center justify-space-between gap-24 px-16"},d={class:"logoHolder desktop"},p={class:"timesWrapper shrink-0"},m={class:"typo-h5 typo-bold c-gray-800"},f={class:"typo-h5 typo-medium c-gray-500"},h={class:"duration typo-caption c-gray-500"},v={class:"places grow-1 shrink-0"},g={class:"d-flex itens-center justify-start gap-8"},y={class:"c-gray-800 typo-body-2"},b={class:"c-gray-800 typo-body-2"},w={class:"seatClass desktop d-flex itens-end direction-column"},x={class:"d-flex itens-center justify-center gap-8 grow-1"},k=["src"],S={class:"typo-body-2 c-gray-800 grow-1"},C={class:"mt-8"},B={key:0,class:"desktop price shrink-0 text-right"},E=["innerHTML"],_={key:0,class:"maxPrice typo-caption typo-bold c-gray-500"},O=["innerHTML"],N={key:1,class:"typo-caption c-gray-800"},P={key:1,class:"mobile mobile-tags d-flex itens-center justify-start gap-8 wrap"},j={key:1,class:"p-4 bg-primary-100 rounded-4 d-flex itens-center justify-center gap-4"},A=["src"],T={class:"resultClass c-primary-600 typo-caption typo-medium"},V={key:2,class:"mobile mobile-price bg-primary-100 p-12 pr-40 d-flex itens-center justify-space-between gap-8 border border-primary-c600 rounded-8"},D={key:0,class:"resultClass c-primary-600 typo-body-2 typo-medium"},R=["src"],M={class:"resultClass c-primary-600 typo-body-2 typo-medium"},I=["innerHTML"],L={key:0,class:"shrink-0 success",disabled:""},F={key:1,class:"shrink-0 success"},W={key:2,class:"shrink-0 primary"},z={key:3,class:"shrink-0 success"},q={class:"rating d-flex itens-center justify-space-between"},H={class:"text-left typo-caption c-gray-700 grow-1"},G={class:"ml-12 shrink-0"},X={class:"grow-1 d-flex itens-center justify-start gap-8"},U={class:"d-flex itens-center justify-end gap-8"},$={key:0}},6865:(e,t,r)=>{t.X=function(e,t,r,a,i,s){return(0,o.openBlock)(),(0,o.createElementBlock)("div",n,[r.result.withBPE?((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:0},[t[0]||(t[0]=(0,o.createElementVNode)("i",{class:"uil uil-qrcode-scan c-gray-700"},null,-1)),t[1]||(t[1]=(0,o.createElementVNode)("p",{class:"c-gray-700 typo-caption"},"Embarque direto",-1))],64)):((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:1},[t[2]||(t[2]=(0,o.createElementVNode)("i",{class:"uil uil-ticket c-gray-700"},null,-1)),t[3]||(t[3]=(0,o.createElementVNode)("p",{class:"c-gray-700 typo-caption"},"Retirada guichê",-1))],64))])};
2var o=r(29726),n={class:"p-4 bg-gray-200 rounded-4 d-flex itens-center justify-center gap-4"}},41201:(e,t,r)=>{t.X=function(e,t,r,n,a,i){return r.result.Nconnections||r.result.connections||r.result.connectionTag?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,class:(0,o.normalizeClass)(["p-4 bg-gray-200 c-gray-700 rounded-4 typo-caption",{underline:r.result.connections}]),onClick:t[0]||(t[0]=(0,o.withModifiers)((function(e){return i.openConnectionInfo()}),["stop"]))},[t[1]||(t[1]=(0,o.createElementVNode)("i",{class:"uil uil-exchange"},null,-1)),(0,o.createTextVNode)(" "+(0,o.toDisplayString)(r.result.connections?r.result.connections.length-1:1)+" conexão ",1)],2)):(0,o.createCommentVNode)("",!0)};var o=r(29726)},99476:(e,t,r)=>{t.X=function(e,t,r,c,u,d){return(0,o.openBlock)(),(0,o.createElementBlock)("div",n,[1===r.result.MAO?((0,o.openBlock)(),(0,o.createElementBlock)("div",a,"MAO PRIMÃRIO")):(0,o.createCommentVNode)("",!0),2===r.result.MAO?((0,o.openBlock)(),(0,o.createElementBlock)("div",i,"MAO SECUNDÃRIO")):(0,o.createCommentVNode)("",!0),r.result.source?((0,o.openBlock)(),(0,o.createElementBlock)("div",s,"GDS: "+(0,o.toDisplayString)(d.getSourceName),1)):(0,o.createCommentVNode)("",!0),r.result.recommended?((0,o.openBlock)(),(0,o.createElementBlock)("div",l,t[0]||(t[0]=[(0,o.createElementVNode)("i",{class:"uil uil-star"},null,-1)]))):(0,o.createCommentVNode)("",!0)])};
2var o=r(29726),n={class:"d-flex itens-center justify-start gap-8"},a={key:0,class:"p-4 bg-warning-200 c-warning-600 rounded-4 typo-caption"},i={key:1,class:"p-4 bg-warning-200 c-warning-600 rounded-4 typo-caption"},s={key:2,class:"p-4 bg-warning-200 c-warning-600 rounded-4 typo-caption"},l={key:3,class:"p-4 bg-warning-200 c-warning-600 rounded-4 typo-caption"}},13436:(e,t,r)=>{t.X=function(e,t,r,n,a,i){return r.highlightTagType?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,class:(0,o.normalizeClass)([r.highlightTagType,"p-4 tag-recommended"])},[(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(a.highlightTagTexts[r.highlightTagType]),1)],2)):(0,o.createCommentVNode)("",!0)};var o=r(29726)},81269:(e,t,r)=>{t.X=function(e,t,r,n,a,i){var s=(0,o.resolveComponent)("LeftArrow"),l=(0,o.resolveComponent)("LeftArrowDisabled"),c=(0,o.resolveComponent)("RightArrow"),u=(0,o.resolveComponent)("RightArrowDisabled");return"left"===r.direction&&r.enabled?((0,o.openBlock)(),(0,o.createBlock)(s,{key:0})):"left"!==r.direction||r.enabled?"right"===r.direction&&r.enabled?((0,o.openBlock)(),(0,o.createBlock)(c,{key:2})):"right"!==r.direction||r.enabled?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createBlock)(u,{key:3})):((0,o.openBlock)(),(0,o.createBlock)(l,{key:1}))};
2var o=r(29726)},338:(e,t,r)=>{t.X=function(e,t,r,a,i,s){var l=(0,o.resolveComponent)("RadioInput");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{onClick:t[0]||(t[0]=(0,o.withModifiers)((function(e){return s.selectRadio(r.value)}),["stop","prevent"])),class:"mainBox d-flex itens-center gap-16 p-8 rounded-4 border-gray-200 border text-center typo-body-2 c-primary-900"},[(0,o.createElementVNode)("div",n,[t[1]||(t[1]=(0,o.createElementVNode)("input",{type:"radio",class:"custom-radio"},null,-1)),(0,o.createVNode)(l,{selected:r.selected},null,8,["selected"]),(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(r.text),1)])])};var o=r(29726),n={class:"d-flex gap-8"}},29014:(e,t,r)=>{t.X=function(e,t,r,n,a,i){var s=(0,o.resolveComponent)("RadioInputSelected"),l=(0,o.resolveComponent)("RadioInputUnselected");return r.selected?((0,o.openBlock)(),(0,o.createBlock)(s,{key:0})):((0,o.openBlock)(),(0,o.createBlock)(l,{key:1}))};var o=r(29726)},90199:(e,t,r)=>{t.X=function(e,t,r,a,i,s){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",n,t[0]||(t[0]=[(0,o.createStaticVNode)('<rect width="24" height="24" rx="12" fill="#E6F1FF"></rect><mask id="mask0_3681_7845" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><rect width="24" height="24" fill="#D9D9D9"></rect></mask><g mask="url(#mask0_3681_7845)"><path d="M14 18L8 12L14 6L15.4 7.4L10.8 12L15.4 16.6L14 18Z" fill="#2764C0"></path></g>',3)]))};
2var o=r(29726),n={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},6420:(e,t,r)=>{t.X=function(e,t,r,a,i,s){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",n,t[0]||(t[0]=[(0,o.createStaticVNode)('<rect width="24" height="24" rx="12" fill="#EDF0F7"></rect><mask id="mask0_3681_7845" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><rect width="24" height="24" fill="#B9BCC2"></rect></mask><g mask="url(#mask0_3681_7845)"><path d="M14 18L8 12L14 6L15.4 7.4L10.8 12L15.4 16.6L14 18Z" fill="#B9BCC2"></path></g>',3)]))};var o=r(29726),n={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},51282:(e,t,r)=>{t.X=function(e,t,r,a,i,s){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",n,t[0]||(t[0]=[(0,o.createStaticVNode)('<rect width="24" height="24" rx="12" fill="#E6F1FF"></rect><mask id="mask0_3681_7846" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><rect width="24" height="24" fill="#D9D9D9"></rect></mask><g mask="url(#mask0_3681_7846)"><path d="M12.6 12L8 7.4L9.4 6L15.4 12L9.4 18L8 16.6L12.6 12Z" fill="#2764C0"></path></g>',3)]))};
2var o=r(29726),n={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},24209:(e,t,r)=>{t.X=function(e,t,r,a,i,s){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",n,t[0]||(t[0]=[(0,o.createStaticVNode)('<rect width="24" height="24" rx="12" fill="#EDF0F7"></rect><mask id="mask0_3681_7846" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><rect width="24" height="24" fill="#B9BCC2"></rect></mask><g mask="url(#mask0_3681_7846)"><path d="M12.6 12L8 7.4L9.4 6L15.4 12L9.4 18L8 16.6L12.6 12Z" fill="#B9BCC2"></path></g>',3)]))};var o=r(29726),n={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},67890:(e,t,r)=>{t.X=function(e,t,r,a,i,s){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",n,t[0]||(t[0]=[(0,o.createElementVNode)("g",{"clip-path":"url(#clip0_3589_8096)"},[(0,o.createElementVNode)("path",{d:"M11 1.83333C5.93998 1.83333 1.83331 5.93999 1.83331 11C1.83331 16.06 5.93998 20.1667 11 20.1667C16.06 20.1667 20.1666 16.06 20.1666 11C20.1666 5.93999 16.06 1.83333 11 1.83333ZM8.51581 14.9325L5.22498 11.6417C4.86748 11.2842 4.86748 10.7067 5.22498 10.3492C5.58248 9.99166 6.15998 9.99166 6.51748 10.3492L9.16665 12.9892L15.4733 6.68249C15.8308 6.32499 16.4083 6.32499 16.7658 6.68249C17.1233 7.03999 17.1233 7.61749 16.7658 7.97499L9.80831 14.9325C9.45998 15.29 8.87331 15.29 8.51581 14.9325Z",fill:"#2764C0"})],-1),(0,o.createElementVNode)("defs",null,[(0,o.createElementVNode)("clipPath",{id:"clip0_3589_8096"},[(0,o.createElementVNode)("rect",{width:"22",height:"22",fill:"white"})])],-1)]))};
2var o=r(29726),n={width:"22",height:"22",viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg"}},52224:(e,t,r)=>{t.X=function(e,t,r,a,i,s){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",n,t[0]||(t[0]=[(0,o.createElementVNode)("path",{d:"M11 20.1667C9.73192 20.1667 8.54026 19.926 7.42498 19.4448C6.3097 18.9635 5.33956 18.3104 4.51456 17.4854C3.68956 16.6604 3.03644 15.6903 2.55519 14.575C2.07394 13.4597 1.83331 12.2681 1.83331 11C1.83331 9.73194 2.07394 8.54027 2.55519 7.42499C3.03644 6.30972 3.68956 5.33958 4.51456 4.51458C5.33956 3.68958 6.3097 3.03645 7.42498 2.5552C8.54026 2.07395 9.73192 1.83333 11 1.83333C12.268 1.83333 13.4597 2.07395 14.575 2.5552C15.6903 3.03645 16.6604 3.68958 17.4854 4.51458C18.3104 5.33958 18.9635 6.30972 19.4448 7.42499C19.926 8.54027 20.1666 9.73194 20.1666 11C20.1666 12.2681 19.926 13.4597 19.4448 14.575C18.9635 15.6903 18.3104 16.6604 17.4854 17.4854C16.6604 18.3104 15.6903 18.9635 14.575 19.4448C13.4597 19.926 12.268 20.1667 11 20.1667ZM11 18.3333C13.0472 18.3333 14.7812 17.6229 16.2021 16.2021C17.6229 14.7812 18.3333 13.0472 18.3333 11C18.3333 8.95277 17.6229 7.21875 16.2021 5.79791C14.7812 4.37708 13.0472 3.66666 11 3.66666C8.95276 3.66666 7.21873 4.37708 5.7979 5.79791C4.37706 7.21875 3.66665 8.95277 3.66665 11C3.66665 13.0472 4.37706 14.7812 5.7979 16.2021C7.21873 17.6229 8.95276 18.3333 11 18.3333Z",fill:"#63656B"},null,-1)]))};
2var o=r(29726),n={width:"22",height:"22",viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg"}},20231:function(e,t,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.alerta=function(e,t,r,o){var l=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"Fechar",u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"alert",d=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"Confirmar",p=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"horizontal",m=arguments.length>9?arguments[9]:void 0,f=arguments.length>10?arguments[10]:void 0,h=i+s;s++;var v,g=document.getElementById(h);g||((g=document.createElement("div")).id=h,document.body.append(g));var y=new Promise((function(e){v=e})),b=(0,n.h)(a.default,{message:e,title:t,subtitle:r,icon:o,dismissible:l,type:u,closeText:c,confirmText:d,buttonsDisposition:p,closeButtonType:m,confirmButtonType:f,onEventHandler:function(e){(0,n.render)(null,g),g.remove(),v(e)}});return(0,n.render)(b,g),y};var n=r(29726),a=o(r(59643)),i="alert-vue-app",s=0},84424:function(e,t,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=r(29726),a=o(r(13324)),i=r(93102);r(49865),r(23693),r(96023),t.default=(0,n.defineComponent)({name:"AutoviacaoNotasComponent",data:function(){return{showSwiper:!1,isNotDesktop:!1}},props:{avaliacoes:{type:Array,required:!0},starWarning500:{type:String,default:"https://assets.queropassagem.com.br/static/Images/Icones/star-warning500.svg"}},computed:{mustShowSwiper:function(){return!this.isNotDesktop||this.showSwiper}},methods:{checkIsNotDesktop:function(){this.isNotDesktop=window.innerWidth<1024}},beforeDestroy:function(){window.removeEventListener("resize",this.checkIsNotDesktop)},mounted:function(){var e=this;this.checkIsNotDesktop(),window.addEventListener("resize",this.checkIsNotDesktop),(0,n.nextTick)((function(){var t=e.$el.querySelector(".swiper");if(t){var r=document.createElement("div");r.className="swiper-button-next gray",t.appendChild(r);var o=document.createElement("div");o.className="swiper-button-prev gray",t.appendChild(o),new a.default(t,{modules:[i.Navigation,i.Pagination],slidesPerView:3,loop:!0,navigation:{nextEl:r,prevEl:o},breakpoints:{0:{slidesPerView:1},1024:{slidesPerView:3}}})}}))}})},65287:function(e,t,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.openModalResultConnection=function(e,t){var r=i,o=document.getElementById(i);o||((o=document.createElement("div")).id=r,document.body.append(o));var s=(0,n.h)(a.default,{appRoot:i,result:e,onSelectOption:function(){t(),(0,n.render)(null,o),o.remove()}});(0,n.render)(s,o)};var n=r(29726),a=o(r(83998)),i="modal-connection"},16347:function(e,t,r){function o(e){return o="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},o(e)}function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=this&&this.__importDefault||function(e){return e&&e.__esMo
2dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.modal=function(e,t,r,o,n,i){var s=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],m=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[{text:"Fechar"}],f=arguments.length>8?arguments[8]:void 0,h=arguments.length>9&&void 0!==arguments[9]&&arguments[9],v=u+d;d++;var g=document.getElementById(v);g||((g=document.createElement("div")).id=v,document.body.append(g));var y="string"!=typeof e,b=(0,l.h)(c.default,a(a({},y?{component:(0,l.h)(e,a(a({},t),r))}:{html:e}),{},{title:o,subtitle:n,icon:i,dismissible:s,buttons:m,buttonsColumn:h,afterLoad:f,onDismiss:function(){p(v)}}));return(0,l.render)(b,g),v},t.closeModal=p;var l=r(29726),c=s(r(88450)),u="modal-vue-app",d=0;function p(e){var t=document.getElementById(e);t&&((0,l.render)(null,t),t.remove())}},5729:function(e,t,r){function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(o=a.call(r)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}(e,t)||n(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=r(29726),l=i(r(20657)),c=i(r(13324)),u=r(3632),d=i(r(77424));function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",r=new Date;r.setDate(r.getDate()+e);var o=("0"+r.getDate()).slice(-2),n=("0"+(r.getMonth()+1)).slice(-2),a=r.getFullYear();return"".concat(o).concat(t).concat(n).concat(t).concat(a)}document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll("a[data-get]").forEach((function(e){var t=function(){var t=e.getAttribute("href"),r=e.getAttribute("data-get");if(!t||!r)return null;var a=p(1,"-");(0,u.dataLayerBuscaPassagemPadrao)(e.getAttribute("data-from"),e.getAttribute("data-to"),a);var i=new URL(t,window.location.origin),s=new URLSearchParams(r);s.set("ida",a);var l,c=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=n(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,a=function(){};return{s:a,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw i}}}}(s.entries());try{for(c.s();!(l=c.n()).done;){var d=o(l.value,2),m=d[0],f=d[1];i.searchParams.set(m,f)}}catch(e){c.e(e)}finally{c.f()}return i.toString()},r={mousedown:function(e){var r=e,o=1===r.button,n=r.ctrlKey||r.metaKey;if(o||n){var a=t();a&&(e.preventDefault(),window.open(a,"_blank"))}},click:function(e){var r=e,o=t();o&&(e.preventDefault(),r.ctrlKey||r.metaKey?window.open(o,"_blank"):window.location.href=o)},contextmenu:function(r){var o=t();o&&e.setAttribute("href",o)}};Object.entries(r).forEach((function(t){var r=o(t,2),n=r[0],a=r[1];e.addEventListener(n,a)}))})),(0,u.datalayerScreenView)("viacao");var e=document.querySelector(".swiper.topRoutes");if(e){var t=Number(e.getAttribute("data-qtn-cards"));new c.default(e,{watchOverflow:!0,slidesPerView:"auto",spaceBetween:16,breakpoints:{0:{slidesPerView:1==t?1:1.5},640:{slidesPerView:t<=2?2.5:3==t?3:3.5},1024:{slidesPerView:t<=2?4:t}}})}setTimeout((function(){document.querySelectorAll(".loading").forEach((function(e){e.classList.remove("loading")}))}),30)}));var m=(0,s.createApp)({data:function(){return{result:null}},methods:{getResultFromJSON:function(e){if(!e)return null;try{var t,r,o,n,a,i,s,l,c,u=JSON.parse(e),d={id:u.id,id_grp:u.id_grp,company:{logo:u.company.logo,name:u.company.name,rating:String(u.company.rating)},from:u.from,to:u.to,availableSeats:Number(u.availableSeats),withBPE:Boolean(u.withBPE),departure:u.departure,arrival:u.arrival,travelDuration:u.travelDuration,cancellable:!0,seatClass:u.seatClass,price:Number(u.price),tax:null!==(t=u.tax)&&void 0!==t?t:0,insurance:null!==(r=u.insurance)&&void 0!==r?r:0,loungeVipAvailable:null!==(o=u.loungeVipAvailable)&&void 0!==o&&o,recommended:null!==(n=u.recommended)&&void 0!==n&&n,priority:null!==(a=u.priority)&&void 0!==a?a:1,source:null!==(i=u.source)&&void 0!==i?i:"API",MAO:null!==(s=u.MAO)&&void 0!==s&&s,lastSeats:null!==(l=u.lastSeats)&&void 0!==l&&l,tag:null!==(c=u.tag)&&void 0!==c?c:""};return this.result=d,d}catch(e){return null}},goToSearchAndDL:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";t&&r&&(0,u.dataLayerBuscaPassagemPadrao)(t,r,p(3,"-")),window.location.href=e}},mounted:function(){var e=document.getElementById("seo-data");e&&this.getResultFromJSON(e.getAttribute("data-json")||"")}});m.component("autoviacao-notas-component",l.default),m.component("card-resultado",d.default),m.mount("#pageautoviacao")},85967:(e,t,r)=>{function o(e){return o="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},o(e)}function n(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,i(o.key),o)}}function a(e,t,r){return(t=i(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}
2Object.defineProperty(t,"__esModule",{value:!0}),t.AbTest=void 0;var s=r(3632),l=r(56439),c=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"event",void 0),a(this,"testData",{}),a(this,"startTime",void 0),a(this,"prefix","GB_EVENT_"),a(this,"expirationTime",604800),a(this,"interactionTracked",!1),a(this,"lastSubmitTime",0),a(this,"lastEvent","0"),this.startTime=Date.now(),this.setupDOMInteractionListener(),(0,l.runGrowthbookFeatures)()},t=[{key:"autoMetrics",value:function(){var e=this;return[""].map((function(t){return e.prefix+t}))}},{key:"registerEvent",value:function(e,t,r,o){return e in this.testData||!(0,l.getRunningFeatures)().includes(t)&&"global"!==t?this.testData={}:(this.event=e,this.testData.event=this.prefix+e,this.testData.event_value=!1,this.testData.origin=r||"unknown",this.testData.currentPage=window.location.href,this.testData.pageType=o||"unknown",this.testData.firstContentfulPaint=this.getFirstContentfulPaint(),this.testData.domInteractionTime=this.testData.domInteractionTime||performance.now(),document.cookie="".concat(this.prefix).concat(e,"=false; path=/; max-age=").concat(this.expirationTime)),this}},{key:"markEventTrue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.expirationTime;return this.event&&this.testData.event&&(this.testData.event_value=!0,document.cookie="".concat(this.prefix).concat(this.event,"=true; path=/; max-age=").concat(e)),this}},{key:"addMoreTestData",value:function(e){return this.testData.additionals=JSON.stringify(e).replace("/\\/g",""),this}},{key:"submitEventData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.expirationTime,r=Date.now();if(r-this.lastSubmitTime<100&&this.lastEvent==this.event)return this;this.lastSubmitTime=r,this.lastEvent=this.event,this.markEventTrue(t);for(var o=!0,n=0;n<e.length;n++)if(!this.cookieIsTrue(e[n])){o=!1;break}return this.event&&o&&(this.testData.sessionTime=Date.now()-this.startTime,this.testData.additionals&&(document.cookie="".concat(this.prefix).concat(this.event,"_additionals=").concat(this.testData.additionals,"; path=/; max-age=").concat(t)),(0,s.dataLayerGBAction)(this.testData)),this}},{key:"cookieIsTrue",value:function(e){return"true"===this.getCookie("".concat(e))}},{key:"getCookie",value:function(e){var t=document.cookie.match(new RegExp("(^| )".concat(this.prefix).concat(e,"=([^;]+)")));return t?t[2]:null}},{key:"getCookieNoPrefix",value:function(e){var t=document.cookie.match(new RegExp("(^| )".concat(e,"=([^;]+)")));return t?t[2]:null}},{key:"getCookies",value:function(){var e=this;return document.cookie.split("; ").reduce((function(t,r){var o=r.split("=");if(2===o.length){var n=o[0],a=o[1];n.startsWith(e.prefix)&&"true"===a&&(t[n]=a)}return t}),{})}},{key:"setupDOMInteractionListener",value:function(){for(var e=this,t=function(r){if(!e.interactionTracked&&("keydown"!==r.type||"Tab"===r.key)){e.interactionTracked=!0,e.testData.domInteractionTime=performance.now();for(var o=0,n=["scroll","click","mousedown","keydown","touchstart"];o<n.length;o++){var a=n[o];document.removeEventListener(a,t,{passive:!0})}}},r=0,o=["scroll","click","mousedown","keydown","touchstart"];r<o.length;r++){var n=o[r];document.addEventListener(n,t,{passive:!0})}}},{key:"getFirstContentfulPaint",value:function(){var e=performance.getEntriesByName("first-contentful-paint");return e.length>0&&e[0]&&"number"==typeof e[0].startTime?e[0].startTime:0}},{key:"getExperimentVar",value:function(e){return(0,l.getRunningFeatures)().includes(e)&&"null"!==this.getCookieNoPrefix(e)?this.getCookieNoPrefix(e):null}}],t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();t.AbTest=c},3632:(e,t,r)=>{function o(){var e,t,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function s(r,o,a,i){var s=o&&o.prototype instanceof c?o:c,u=Object.create(s.prototype);return n(u,"_invoke",function(r,o,n){var a,i,s,c=0,u=n||[],d=!1,p={p:0,n:0,v:e,a:m,f:m.bind(e,4),d:function(t,r){return a=t,i=0,s=e,p.n=r,l}};function m(r,o){for(i=r,s=o,t=0;!d&&c&&!n&&t<u.length;t++){var n,a=u[t],m=p.p,f=a[2];r>3?(n=f===o)&&(s=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=m&&((n=r<2&&m<a[1])?(i=0,p.v=o,p.n=a[1]):m<f&&(n=r<3||a[0]>o||o>f)&&(a[4]=r,a[5]=o,p.n=f,i=0))}if(n||r>1)return l;throw d=!0,o}return function(n,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&m(u,f),i=u,s=f;(t=i<2?e:s)||!d;){a||(i?i<3?(i>1&&(p.n=-1),m(i,s)):p.n=s:p.v=s);try{if(c=2,a){if(i||(n="next"),t=a[n]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(s=TypeError("The iterator does not provide a '"+n+"' method"),i=1);a=e}else if((t=(d=p.n<0)?s:r.call(o,p))!==l)break}catch(t){a=e,i=1,s=t}finally{c=1}}return{value:t,done:d}}}(r,a,i),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var p=[][a]?t(t([][a]())):(n(t={},a,(function(){return this})),t),m=d.prototype=c.prototype=Object.create(p);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,n(e,i,"GeneratorFunction")),e.prototype=Object.create(m),e}return u.prototype=d,n(m,"constructor",d),n(d,"constructor",u),u.displayName="GeneratorFunction",n(d,i,"GeneratorFunction"),n(m),n(m,i,"Generator"),n(m,a,(function(){return this})),n(m,"toString",(function(){return"[object Generator]"})),(o=function(){return{w:s,m:f}})()}function n(e,t,r,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}n=function(e,t,r,o){if(t)a?a(e,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[t]=r;else{var i=function(t,r){n(e,t,(function(e){return this._invoke(t,r,e)}))};i("next",0),i("throw",1),i("return",2)}},n(e,t,r,o)}function a(e){return a="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},a(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(o=a.call(r)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function u(e,t,r,o,n,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(o,n)}function d(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,m(o.key),o)}}function p(e,t,r){return(t=m(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.Datalayer=void 0,t.datalayerScreenView=function(e){return y.apply(this,arguments)},t.createTicketItem=function(e,t,r,o,n,a,i,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1;return{item_name:[o,l,e,t,n].join(" x "),item_list_name:[e,t].join(" x "),price:parseFloat(r),item_brand:o,item_category:n,item_category2:a,item_category3:parseInt(i),item_variant:s,quantity:Number(c)}},t.dataLayerCartEvent=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"BRL",o=arguments.length>3?arguments[3]:void 0,n={id_growthbook:localStorage.getItem("id_growthbook"),currency:r,items:t};
2if(o)for(var a in o)n[a]=o[a];window.dataLayer=window.dataLayer||[],window.dataLayer.push((function(){this.reset()})),window.dataLayer.push({event:e,ecommerce:n})},t.datalayerPurchase=function(e){var t=[{item_name:e.ida.nm,item_list_name:e.ida.lsnm,price:e.ida.preco,item_brand:e.ida.brand,item_category:e.ida.classe,item_category2:"ida",item_category3:e.ida.source,item_variant:e.ida.date,quantity:e.ida.quantity}];e.volta&&t.push({item_name:e.volta.nm,item_list_name:e.volta.lsnm,price:e.volta.preco,item_brand:e.volta.brand,item_category:e.volta.classe,item_category2:"volta",item_category3:e.volta.source,item_variant:e.volta.date,quantity:e.volta.quantity});window.dataLayer=window.dataLayer||[],window.dataLayer.push((function(){this.reset()}));var r={currency:"BRL",value:e.total,tax:e.taxa,transaction_id:e.id,coupon:e.cupom,email:e.email,telefone:e.telefone,items:t,id_growthbook:localStorage.getItem("id_growthbook")};window.dataLayer.push({event:"purchase",ecommerce:r}),e.ida.spt&&window.dataLayer.push({event:"purchase-SP",ecommerce:r});var o=new h.AbTest;o.getCookies(),Object.entries(o.getCookies()).forEach((function(e){var t=l(e,2),r=t[0];t[1];o.autoMetrics().includes(r)&&(o.registerEvent(r.replace(/^GB_EVENT_/,"")+"_p","global"),o.getCookie(r.replace(/^GB_EVENT_/,"")+"_additionals")&&o.addMoreTestData(JSON.parse(o.getCookie(r.replace(/^GB_EVENT_/,"")+"_additionals"))),o.submitEventData())})),v.peopleService.purchase(e.total,e.taxa,e.com_id,e.cupom,e.email,e.telefone)},t.Datalayer_growthbook_experiment_viewed=function(e,t,r){var o=parseInt(localStorage.getItem("user_id"));window.dataLayer=window.dataLayer||[];var n={event:"experiment_viewed",event_category:"experiment",experiment_id:e,variation_id:t,id_growthbook:r,user_id:o||void 0};window.dataLayer.push(n)},t.dataLayerGBAction=function(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push((function(){this.reset()}));var t={event:e.event||"unknown",id_growthbook:localStorage.getItem("id_growthbook")||"unknown",event_value:(!1===e.event_value||!0===e.event_value)&&e.event_value,origin:e.origin||"unknown",currentPage:e.currentPage||"unknown",pageType:e.pageType||"unknown",sessionTime:isNaN(e.sessionTime)||void 0===e.sessionTime?0:e.sessionTime,firstContentfulPaint:isNaN(e.firstContentfulPaint)||void 0===e.firstContentfulPaint?0:e.firstContentfulPaint,domInteractionTime:isNaN(e.domInteractionTime)||void 0===e.domInteractionTime?0:e.domInteractionTime,additionals:null!=e.additionals?String(e.additionals):"{}"};window.dataLayer.push(t)},t.resetAndPush=b,t.dataLayerBuscaVazia=function(e,t,r,o){b({passagem:"".concat(e," x ").concat(t),data_saida:r,data_retorno:o,ida_e_volta:!!o,event:"busca_sem_resultados"},!1)},t.dataLayerBuscaPorDistribuidor=function(e,t,r,o,n,a,i){var s=e?{visitorType:"logged-in"}:{visitorType:"not-logged-in"};b({event:"resultados_de_busca_"+t,passagem:"".concat(r.name," x ").concat(o.name),data_saida:n,data_retorno:a,gds:t,numero_resultados:i.count,price_min:i.price_min,price_max:i.price_max,partida_mro:"station"==r.type?1:0,partida_mgds:r.id,indo_para_mro:"station"==o.type?1:0,indo_para_mgds:o.id,user_properties:s})},t.tripItemFormat=w,t.resultToItem=x,t.dataLayerBusca=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ida",r=[];e.forEach((function(e,o){r.push(x(e,o,t))})),b({event:"view_item_list",ecommerce:{items:r.slice(0,27)}})},t.dataLayerPoltrona=function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ida",n=x(e,t,o);b(r?{event:"select_item",ecommerce:{items:[n]}}:s(s({},n),{},{event:"onibus_indisponivel"}))},t.dataLayerAddToCart=function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ida",n=s(s({},x(e,t,o)),{},{quantity:r}),a=[];if("ida"==o)sessionStorage.setItem("add_to_cart_ida",JSON.stringify(n));else{sessionStorage.setItem("add_to_cart_volta",JSON.stringify(n));var i=sessionStorage.getItem("add_to_cart_ida");a.push(JSON.parse(i))}var l=e.departure.split(" ")[0],c=e.departure.split(" ")[1].replace(/:00$/,"");new g("datalayer_"+o).create(l,e.company.name,e.seatClass,e.source,e.company.name,c,n.item_list_name,e.price,"datalayer_"+o,e.from,e.to,!0),a.push(n),b({event:"add_to_cart",ecommerce:{items:a}})},t.registerModalSalaVip=function(e){b({event:"sala_vip_view",tipo:e,id_growthbook:localStorage.getItem("id_growthbook")})},t.dataLayerBuscaPassagemPadrao=function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";v.peopleService.infobipBuscaPassagemEvent(e,t,r,o),window.dataLayer=window.dataLayer||[],window.dataLayer.push((function(){this.reset()}));var n={event:"busca_passagem_padrao ",partida:e,indo_para:t,passagem:e+" x "+t,data_saida:r,data_retorno:o,ida_e_volta:o?"sim":"nao"},a=parseInt(localStorage.getItem("user_id"));
2isNaN(a)||(n.user_id=a);window.dataLayer.push(n)};var f=r(211),h=r(85967),v=r(54883),g=function(){return e=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,"empresa",void 0),p(this,"data",void 0),p(this,"classe",void 0),p(this,"gdsId",void 0),p(this,"viacaoNome",void 0),p(this,"horaSaida",void 0),p(this,"trecho",void 0),p(this,"preco",void 0),p(this,"quantity",void 0),p(this,"purchaseEnviado",!1),p(this,"origem",void 0),p(this,"destino",void 0),p(this,"nomeStorage",void 0),this.nomeStorage=t;var r="";""!=t&&(r=localStorage.getItem(t))&&this.loadStorage(r)},t=[{key:"clearStorage",value:function(e){localStorage.removeItem(e)}},{key:"getPreco",value:function(){return this.preco}},{key:"exists",value:function(){return""!=this.trecho&&void 0!==this.trecho}},{key:"loadStorage",value:function(e){var t=JSON.parse(e);this.data=t.data,this.empresa=t.empresa,this.classe=t.classe,this.gdsId=t.gdsId,this.viacaoNome=t.viacaoNome,this.horaSaida=t.horaSaida,this.trecho=t.trecho,this.prec
2o=t.preco,this.quantity=t.quantity,this.purchaseEnviado=t.purchaseEnviado,this.origem=t.origem,this.destino=t.destino}},{key:"saveStorage",value:function(){localStorage.setItem(this.nomeStorage,JSON.stringify({data:this.data,empresa:this.empresa,classe:this.classe,gdsId:this.gdsId,viacaoNome:this.viacaoNome,horaSaida:this.horaSaida,trecho:this.trecho,preco:this.preco,quantity:this.quantity,purchaseEnviado:this.purchaseEnviado,origem:this.origem,destino:this.destino}))}},{key:"create",value:function(e,t,r,o,n,a,i,s,l,c,u){var d=!(arguments.length>11&&void 0!==arguments[11])||arguments[11];this.data=e,this.empresa=t,this.classe=r,this.gdsId=o,this.viacaoNome=n,this.horaSaida=a,this.trecho=i,this.nomeStorage=l,this.preco=s,this.quantity=0,this.origem=c,this.destino=u,d&&this.saveStorage()}},{key:"buildItemName",value:function(){return this.empresa+" x "+this.horaSaida+" x "+this.trecho+" x "+this.classe}},{key:"buildItemListName",value:function(){return this.origem+" x "+this.destino}}],t&&d(e.prototype,t),r&&d(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function y(){var e;return e=o().m((function e(t){var r,n,a,i,s,l,c,u,d,p,m,h=arguments;return o().w((function(e){for(;;)switch(e.n){case 0:if(null!==(r=(s={compra_finalizada:{stage:4,name:(i=h.length>1&&void 0!==h[1]?h[1]:null)||"Compra finalizada"},poltrona:{stage:2,name:i||"Poltrona"},busca:{stage:1,name:i||"Resultados de busca"},viacao:{stage:0,name:i||"Pagina Viacao"},pagamento:{stage:3,name:i||"Passagens dados"}})[t])&&void 0!==r&&r.name){e.n=1;break}return e.a(2);case 1:return window.dataLayer=window.dataLayer||[],l=window.dataLayer,c=null===(n=s[t])||void 0===n?void 0:n.name,e.n=2,f.Auth.isAuthenticated();case 2:if(!e.v){e.n=3;break}u="logged-in",e.n=4;break;case 3:u="not-logged-in";case 4:d=u,p=null===(a=s[t])||void 0===a?void 0:a.stage,m={event:"screen_view",pageCategory:c,visitorType:d,purchaseStage:p},l.push.call(l,m);case 5:return e.a(2)}}),e)})),y=function(){var t=this,r=arguments;return new Promise((function(o,n){var a=e.apply(t,r);function i(e){u(a,o,n,i,s,"next",e)}function s(e){u(a,o,n,i,s,"throw",e)}i(void 0)}))},y.apply(this,arguments)}function b(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];window.dataLayer=window.dataLayer||[],t&&window.dataLayer.push((function(){this.reset()})),window.dataLayer.push(e)}function w(e,t,r,o,n,a,i,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:"ida";return{item_name:n+" x "+o+" x "+e+" x "+t+" x "+a,price:i.toString(),item_brand:n,item_category:a,item_category2:c,item_category3:s.toString(),item_variant:r,item_list_name:e+" x "+t,index:l}}function x(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ida",o=e.departure.split(" ")[0],n=e.departure.split(" ")[1].replace(/:00$/,"");return w(e.from,e.to,o,n,e.company.name,e.seatClass,e.price,e.source,t,r)}t.Datalayer=g},56439:(e,t,r)=>{function o(){var e,t,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function s(r,o,a,i){var s=o&&o.prototype instanceof c?o:c,u=Object.create(s.prototype);return n(u,"_invoke",function(r,o,n){var a,i,s,c=0,u=n||[],d=!1,p={p:0,n:0,v:e,a:m,f:m.bind(e,4),d:function(t,r){return a=t,i=0,s=e,p.n=r,l}};function m(r,o){for(i=r,s=o,t=0;!d&&c&&!n&&t<u.length;t++){var n,a=u[t],m=p.p,f=a[2];r>3?(n=f===o)&&(s=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=m&&((n=r<2&&m<a[1])?(i=0,p.v=o,p.n=a[1]):m<f&&(n=r<3||a[0]>o||o>f)&&(a[4]=r,a[5]=o,p.n=f,i=0))}if(n||r>1)return l;throw d=!0,o}return function(n,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&m(u,f),i=u,s=f;(t=i<2?e:s)||!d;){a||(i?i<3?(i>1&&(p.n=-1),m(i,s)):p.n=s:p.v=s);try{if(c=2,a){if(i||(n="next"),t=a[n]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(s=TypeError("The iterator does not provide a '"+n+"' method"),i=1);a=e}else if((t=(d=p.n<0)?s:r.call(o,p))!==l)break}catch(t){a=e,i=1,s=t}finally{c=1}}return{value:t,done:d}}}(r,a,i),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var p=[][a]?t(t([][a]())):(n(t={},a,(function(){return this})),t),m=d.prototype=c.prototype=Object.create(p);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,n(e,i,"GeneratorFunction")),e.prototype=Object.create(m),e}return u.prototype=d,n(m,"constructor",d),n(d,"constructor",u),u.displayName="GeneratorFunction",n(d,i,"GeneratorFunction"),n(m),n(m,i,"Generator"),n(m,a,(function(){return this})),n(m,"toString",(function(){return"[object Generator]"})),(o=function(){return{w:s,m:f}})()}function n(e,t,r,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}n=function(e,t,r,o){if(t)a?a(e,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[t]=r;else{var i=function(t,r){n(e,t,(function(e){return this._invoke(t,r,e)}))};i("next",0),i("throw",1),i("return",2)}},n(e,t,r,o)}function a(e,t,r,o,n,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(o,n)}function i(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(o=a.call(r)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,n=e}
2finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}(e,t)||c(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=c(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,n=function(){};return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw a}}}}function c(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}Object.defineProperty(t,"__esModule",{value:!0}),t.getRunningFeatures=void 0,t.runGrowthbookFeatures=function(){return y.apply(this,arguments)};var d=r(200),p=r(3632),m=6048e5,f={"/compra-finalizada":[{key:"opcao-force-app",variants:["0","1"]}]};function h(){var e="id_growthbook",t="id_growthbook_expiry",r=Date.now(),o=m,n=localStorage.getItem(e),a=localStorage.getItem(t);if(n&&a&&r<parseInt(a))return n;var i=r.toString(),s=32-(3+i.length+1),l=Array.from({length:s},(function(){return Math.floor(10*Math.random()).toString()})).join(""),c="".concat("gb_").concat(i,"_").concat(l);return localStorage.setItem(e,c),localStorage.setItem(t,(r+o).toString()),document.cookie="id_growthbook=".concat(encodeURIComponent(c),"; path=/; max-age=").concat(604800,";"),c}function v(){var e=window.location.pathname+window.location.search;if(f[e])return f[e];for(var t=[],r=0,o=Object.entries(f);r<o.length;r++){var n=s(o[r],2),a=n[0],l=n[1];e.startsWith(a)&&(t=[].concat(i(t),i(l)))}return t||null}function g(){return window.location.href.includes("qpab")}function y(){var e;return e=o().m((function e(){var t,r,n,a,i,s,c,u,m,f,y,x,k,S,C;return o().w((function(e){for(;;)switch(e.n){case 0:if((t=v())&&0!==t.length){e.n=1;break}return e.a(2);case 1:if(r=t.every((function(e){var t=e.key,r=e.variants,o=w(t);return null!==o&&(r.includes(o)||"null"===o)})),g()||!r){e.n=2;break}return e.a(2);case 2:return n=h(),a=new d.GrowthBook({apiHost:"https://cdn.growthbook.io",clientKey:"sdk-qrX7mqxq56NW2l2J",trackingCallback:function(e,t){}}),e.n=3,a.setAttributes({id:n,url:window.location.href,deviceId:n});case 3:return e.n=4,a.init({timeout:2e3});case 4:i=!1,s=l(t),e.p=5,s.s();case 6:if((c=s.n()).done){e.n=11;break}if(u=c.value,m=u.key,f=u.variants,y=w(m),!g()||null===y||!f.includes(y)){e.n=7;break}return e.a(3,10);case 7:if(x=a.evalFeature(m),!(k=x.experimentResult)||!k.inExperiment){e.n=9;break}if(S=String(k.variationId),y!==S){e.n=8;break}return e.a(3,10);case 8:b(m,S),(0,p.Datalayer_growthbook_experiment_viewed)(m,S,n),i=!0,e.n=10;break;case 9:b(m,"null");case 10:e.n=6;break;case 11:e.n=13;break;case 12:e.p=12,C=e.v,s.e(C);case 13:return e.p=13,s.f(),e.f(13);case 14:i&&setTimeout((function(){window.location.reload()}),80);case 15:return e.a(2)}}),e,null,[[5,12,13,14]])})),y=function(){var t=this,r=arguments;return new Promise((function(o,n){var i=e.apply(t,r);function s(e){a(i,o,n,s,l,"next",e)}function l(e){a(i,o,n,s,l,"throw",e)}s(void 0)}))},y.apply(this,arguments)}function b(e,t){var r=new Date(Date.now()+m).toUTCString();document.cookie="".concat(e,"=").concat(t,"; expires=").concat(r,"; path=/")}function w(e){var t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t?t[2]:null}t.getRunningFeatures=function(){for(var e=[],t=0,r=Object.values(f);t<r.length;t++){var o,n=l(r[t]);try{for(n.s();!(o=n.n()).done;){var a=o.value;e.push(a.key)}}catch(e){n.e(e)}finally{n.f()}}return e},function(){if(g()){var e=v();if(e){var t=document.createElement("div");t.style.position="fixed",t.style.top="10px",t.style.right="10px",t.style.background="white",t.style.padding="10px",t.style.border="1px solid #ccc",t.style.zIndex="9999",t.style.fontSize="14px",t.style.color="#2D2E30",t.style.fontFamily="sans-serif",t.style.boxShadow="0 0 10px rgba(0,0,0,0.1)",t.style.borderRadius="6px",t.style.maxWidth="300px";var r=document.createElement("button");r.textContent="x",r.style.position="absolute",r.style.top="4px",r.style.right="6px",r.style.border="none",r.style.background="transparent",r.style.fontSize="18px",r.style.cursor="pointer",r.onclick=function(){document.cookie.split(";").forEach((function(e){var t=e.trim().split("=")[0];t.startsWith("opcao-")&&(document.cookie="".concat(t,"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"))})),localStorage.removeItem("id_growthbook"),localStorage.removeItem("id_growthbook_expiry");var e=new URL(window.location.href);e.searchParams.delete("qpab"),window.location.href=e.toString()},t.appendChild(r),e.forEach((function(e){var r=e.key,o=e.variants,n=w(r),a=document.createElement("label");a.textContent="Feature: ".concat(r),a.style.display="block",a.style.marginBottom="4px",a.style.marginTop="10px";var i=document.createElement("select");i.style.marginBottom="10px",i.style.width="100%",o.forEach((function(e){var t=document.createElement("option");t.value=e,t.innerHTML="Variação ".concat(e),e===n&&(t.selected=!0),i.appendChild(t)})),i.onchange=function(){b(r,i.value),window.location.reload()},t.appendChild(a),t.appendChild(i)})),document.body.appendChild(t)}}}()},54883:(e,t)=>
2{function r(e){return r="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(e)}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(o=a.call(r)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function a(){var e,t,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function s(r,o,n,a){var s=o&&o.prototype instanceof c?o:c,u=Object.create(s.prototype);return i(u,"_invoke",function(r,o,n){var a,i,s,c=0,u=n||[],d=!1,p={p:0,n:0,v:e,a:m,f:m.bind(e,4),d:function(t,r){return a=t,i=0,s=e,p.n=r,l}};function m(r,o){for(i=r,s=o,t=0;!d&&c&&!n&&t<u.length;t++){var n,a=u[t],m=p.p,f=a[2];r>3?(n=f===o)&&(s=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=m&&((n=r<2&&m<a[1])?(i=0,p.v=o,p.n=a[1]):m<f&&(n=r<3||a[0]>o||o>f)&&(a[4]=r,a[5]=o,p.n=f,i=0))}if(n||r>1)return l;throw d=!0,o}return function(n,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&m(u,f),i=u,s=f;(t=i<2?e:s)||!d;){a||(i?i<3?(i>1&&(p.n=-1),m(i,s)):p.n=s:p.v=s);try{if(c=2,a){if(i||(n="next"),t=a[n]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(s=TypeError("The iterator does not provide a '"+n+"' method"),i=1);a=e}else if((t=(d=p.n<0)?s:r.call(o,p))!==l)break}catch(t){a=e,i=1,s=t}finally{c=1}}return{value:t,done:d}}}(r,n,a),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var p=[][o]?t(t([][o]())):(i(t={},o,(function(){return this})),t),m=d.prototype=c.prototype=Object.create(p);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,i(e,n,"GeneratorFunction")),e.prototype=Object.create(m),e}return u.prototype=d,i(m,"constructor",d),i(d,"constructor",u),u.displayName="GeneratorFunction",i(d,n,"GeneratorFunction"),i(m),i(m,n,"Generator"),i(m,o,(function(){return this})),i(m,"toString",(function(){return"[object Generator]"})),(a=function(){return{w:s,m:f}})()}function i(e,t,r,o){var n=Object.defineProperty;try{n({},"",{})}catch(e){n=0}i=function(e,t,r,o){if(t)n?n(e,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[t]=r;else{var a=function(t,r){i(e,t,(function(e){return this._invoke(t,r,e)}))};a("next",0),a("throw",1),a("return",2)}},i(e,t,r,o)}function s(e,t,r,o,n,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(o,n)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,p(o.key),o)}}function d(e,t,r){return(t=p(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}
2Object.defineProperty(t,"__esModule",{value:!0}),t.peopleService=t.PeopleService=void 0;var m=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,"debugState",!1)},t=[{key:"track",value:function(e,t){try{this.debugLog(e,t)}catch(e){}}},{key:"setPerson",value:function(e){}},{key:"updatePerson",value:function(e){}},{key:"getStoredEmail",value:function(){var e;return null!==(e=localStorage.getItem("info_bip_user_email"))&&void 0!==e?e:null}},{key:"getStoredUserId",value:function(){var e;return null!==(e=localStorage.getItem("user_id"))&&void 0!==e?e:null}},{key:"setStoredEmail",value:function(e){e&&localStorage.setItem("info_bip_user_email",e)}},{key:"debugLog",value:function(e,t){this.debugState&&alert("[People]"+JSON.stringify({msg:e,bug:t}))}},{key:"normalizePhone",value:function(e){var t=null==e?void 0:e.replace(/\D/g,"");return null!=t&&t.length?t:void 0}},{key:"auth",value:function(e){var t;if(localStorage.getItem("user_id")){var r=Number(null!==(t=localStorage.getItem("infobip_lastlogin"))&&void 0!==t?t:0),o=Date.now();(this.debugState||o-r>18e5)&&(localStorage.setItem("infobip_lastlogin",String(o)),this.login(e)),this.identifyAndSaveProfile(e)}}},{key:"login",value:function(e){this.debugLog("infobip login event data:",e);try{var t=this.identifyAndSaveProfile(e);"success"===t&&this.track("Login",{logged_at:(new Date).toISOString(),source:"web"}),this.debugLog("infobip login event status:",t)}catch(e){}}},{key:"identifyAndSaveProfile",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=null!==(e=null==t?void 0:t.mail)&&void 0!==e?e:this.getStoredEmail();if(!r)return"failed";try{this.setPerson({email:r})}catch(e){return"failed"}try{this.setStoredEmail(r);var o=c(c(c(c({},(null==t?void 0:t.firstName)&&{firstName:null==t?void 0:t.firstName}),(null==t?void 0:t.lastName)&&{lastName:null==t?void 0:t.lastName}),r&&{contactInformation:{email:[{address:r}]}}),this.getStoredUserId()&&{externalId:this.getStoredUserId()});Object.keys(o).length&&this.updatePerson(o)}catch(e){}return"success"}},{key:"selectSeat",value:(n=a().m((function e(t){return a().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,this.track("selectedSeat",{seatLabel:t.label,seatPrice:t.price,seatX:t.x,seatY:t.y,seatZ:t.z});case 1:return e.a(2)}}),e,this)})),i=function(){var e=this,t=arguments;return new Promise((function(r,o){var a=n.apply(e,t);function i(e){s(a,r,o,i,l,"next",e)}function l(e){s(a,r,o,i,l,"throw",e)}i(void 0)}))},function(e){return i.apply(this,arguments)})},{key:"getCheckoutUuidFromUrl",value:function(){return new URLSearchParams(window.location.search).get("uuid")}},{key:"beginCheckout",value:function(e,t){var r=this.getCheckoutUuidFromUrl();if(!r)return null;localStorage.setItem("checkout_uuid",r);var o=t.exists(),n={idOrigem:"",idDestino:"",nomeOrigem:"",nomeDestino:"",tipoOrigem:"",tipoDestino:"",slugOrigem:"",slugDestino:""},a=document.querySelector(".resumo-viagem");if(a&&a.dataset.info)try{var i=JSON.parse(a.dataset.info);n={idOrigem:i.idOrigem.toString()||"",idDestino:i.idDestino.toString()||"",nomeOrigem:i.nomeOrigem||"",nomeDestino:i.nomeDestino||"",tipoOrigem:i.tipoOrigem||"",tipoDestino:i.tipoDestino||"",slugOrigem:i.slugOrigem||"",slugDestino:i.slugDestino||""}}catch(e){}return this.track("checkoutStartedQP",c({checkout_uuid:r,ida_item_name:e.buildItemName(),ida_item_list_name:e.buildItemListName(),ida_price:e.preco,ida_brand:e.empresa,ida_category:e.classe,ida_gds_id:e.gdsId.toString(),ida_variant:new Date(e.data),ida_quantity:e.quantity,volta_exists:!!o,volta_item_name:o?t.buildItemName():null,volta_item_list_name:o?t.buildItemListName():null,volta_price:o?t.preco:null,volta_brand:o?t.empresa:null,volta_category:o?t.classe:null,volta_gds_id:o?t.gdsId.toString():null,volta_variant:o?new Date(t.data):null,volta_quantity:o?t.quantity:null},n)),r}},{key:"purchase",value:function(e,t,r,o,n,a){var i={checkout_uuid:localStorage.getItem("checkout_uuid"),currency:"BRL",value:e,tax:t,transaction_id:r,coupon:o||"",email:n||"",telefone:a||""};this.track("purchaseQP",i),this.identifyAndSaveProfile({mail:n})}},{key:"infobipBuscaPassagemEvent",value:function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",n={partida:e,indo_para:t,passagem:"".concat(e," x ").concat(t),data_saida:this.parseBRDate(r),data_retorno:o?this.parseBRDate(o):null,ida_e_volta:!!o};this.track("buscapassagemQP",n)}},{key:"parseBRDate",value:function(e){if(!e)return null;var t=o(e.split("/"),3),r=t[0],n=t[1],a=t[2];return new Date(Number(a),Number(n)-1,Number(r))}}],t&&u(e.prototype,t),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,n,i}();t.PeopleService=m,t.peopleService=new m},10483:(e,t)=>
2{function r(){var e,t,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(r,n,a,i){var s=n&&n.prototype instanceof c?n:c,u=Object.create(s.prototype);return o(u,"_invoke",function(r,o,n){var a,i,s,c=0,u=n||[],d=!1,p={p:0,n:0,v:e,a:m,f:m.bind(e,4),d:function(t,r){return a=t,i=0,s=e,p.n=r,l}};function m(r,o){for(i=r,s=o,t=0;!d&&c&&!n&&t<u.length;t++){var n,a=u[t],m=p.p,f=a[2];r>3?(n=f===o)&&(s=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=m&&((n=r<2&&m<a[1])?(i=0,p.v=o,p.n=a[1]):m<f&&(n=r<3||a[0]>o||o>f)&&(a[4]=r,a[5]=o,p.n=f,i=0))}if(n||r>1)return l;throw d=!0,o}return function(n,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&m(u,f),i=u,s=f;(t=i<2?e:s)||!d;){a||(i?i<3?(i>1&&(p.n=-1),m(i,s)):p.n=s:p.v=s);try{if(c=2,a){if(i||(n="next"),t=a[n]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(s=TypeError("The iterator does not provide a '"+n+"' method"),i=1);a=e}else if((t=(d=p.n<0)?s:r.call(o,p))!==l)break}catch(t){a=e,i=1,s=t}finally{c=1}}return{value:t,done:d}}}(r,a,i),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var p=[][a]?t(t([][a]())):(o(t={},a,(function(){return this})),t),m=d.prototype=c.prototype=Object.create(p);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,o(e,i,"GeneratorFunction")),e.prototype=Object.create(m),e}return u.prototype=d,o(m,"constructor",d),o(d,"constructor",u),u.displayName="GeneratorFunction",o(d,i,"GeneratorFunction"),o(m),o(m,i,"Generator"),o(m,a,(function(){return this})),o(m,"toString",(function(){return"[object Generator]"})),(r=function(){return{w:s,m:f}})()}function o(e,t,r,n){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}o=function(e,t,r,n){if(t)a?a(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r;else{var i=function(t,r){o(e,t,(function(e){return this._invoke(t,r,e)}))};i("next",0),i("throw",1),i("return",2)}},o(e,t,r,n)}function n(e,t,r,o,n,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(o,n)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(o,a){var i=e.apply(t,r);function s(e){n(i,o,a,s,l,"next",e)}function l(e){n(i,o,a,s,l,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}),t.ajaxHelper=void 0,t.ajaxHelper={post:function(e,t){return a(r().m((function o(){var n;return r().w((function(r){for(;;)switch(r.n){case 0:return r.n=1,fetch(e,{method:"POST",body:JSON.stringify(t),headers:{Accept:"application/json","Content-Type":"application/json"}});case 1:return n=r.v,r.n=2,n.json().catch((function(){return{}}));case 2:return r.a(2,r.v)}}),o)})))()},get:function(e){var t=arguments;return a(r().m((function o(){var n,a;return r().w((function(r){for(;;)switch(r.n){case 0:return n=t.length>1&&void 0!==t[1]?t[1]:{},r.n=1,fetch(e);case 1:return a=r.v,r.n=2,a.json().catch((function(){return n}));case 2:return r.a(2,r.v)}}),o)})))()}}},14572:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getStaticUrl=function(){return"https://assets.queropassagem.com.br/static/"+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")}},211:(e,t,r)=>{function o(e){return o="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},o(e)}function n(){var e,t,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function s(r,o,n,i){var s=o&&o.prototype instanceof c?o:c,u=Object.create(s.prototype);return a(u,"_invoke",function(r,o,n){var a,i,s,c=0,u=n||[],d=!1,p={p:0,n:0,v:e,a:m,f:m.bind(e,4),d:function(t,r){return a=t,i=0,s=e,p.n=r,l}};function m(r,o){for(i=r,s=o,t=0;!d&&c&&!n&&t<u.length;t++){var n,a=u[t],m=p.p,f=a[2];r>3?(n=f===o)&&(s=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=m&&((n=r<2&&m<a[1])?(i=0,p.v=o,p.n=a[1]):m<f&&(n=r<3||a[0]>o||o>f)&&(a[4]=r,a[5]=o,p.n=f,i=0))}if(n||r>1)return l;throw d=!0,o}return function(n,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&m(u,f),i=u,s=f;(t=i<2?e:s)||!d;){a||(i?i<3?(i>1&&(p.n=-1),m(i,s)):p.n=s:p.v=s);try{if(c=2,a){if(i||(n="next"),t=a[n]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;s=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(s=TypeError("The iterator does not provide a '"+n+"' method"),i=1);a=e}else if((t=(d=p.n<0)?s:r.call(o,p))!==l)break}catch(t){a=e,i=1,s=t}finally{c=1}}return{value:t,done:d}}}(r,n,i),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var p=[][o]?t(t([][o]())):(a(t={},o,(function(){return this})),t),m=d.prototype=c.prototype=Object.create(p);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,a(e,i,"GeneratorFunction")),e.prototype=Object.create(m),e}return u.prototype=d,a(m,"constructor",d),a(d,"constructor",u),u.displayName="GeneratorFunction",a(d,i,"GeneratorFunction"),a(m),a(m,i,"Generator"),a(m,o,(function(){return this})),a(m,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:s,m:f}})()}function a(e,t,r,o){var n=Object.defineProperty;try{n({},"",{})}catch(e){n=0}a=function(e,t,r,o){if(t)n?n(e,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[t]=r;else{var i=function(t,r){a(e,t,(function(e){return this._invoke(t,r,e)}))};i("next",0),i("throw",1),i("return",2)}},a(e,t,r,o)}function i(e,t,r,o,n,a,i){try{var s=e[a](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(o,n)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(o,n){var a=e.apply(t,r);function s(e){i(a,o,n,s,l,"next",e)}function l(e){i(a,o,n,s,l,"throw",e)}s(void 0)}))}}function l(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}function c(e,t,r){return(t=u(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.Auth=void 0;var d=r(10483),p=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,r=null,o=[{key:"isAuthenticated",value:(i=s(n().m((function t(){var r;return n().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,e.getAuthData();case 1:return r=t.v,t.a(2,null!==r)}}),t)}))),function(){return i.apply(this,arguments)})},{key:"init",value:function(e){this.peopleService=e}},{key:"getAuthData",value:(a=s(n().m((function t(){var r;return n().w((function(t){for(;;)switch(t.n){case 0:if(!e.initialized){t.n=1;break}return t.a(2,e.userData);case 1:if(!e.userDataPromise){t.n=2;break}return t.a(2,e.userDataPromise);case 2:return e.userDataPromise=d.ajaxHelper.get("/auth/get-data",null),t.p=3,t.n=4,e.userDataPromise;case 4:return r=t.v,e.userData=r,e.userDataPromise=null,e.initialized=!0,e.userData&&e.userData.id&&localStorage.setItem("user_id",e.userData.id),t.n=5,this.peopleService.auth(e.userData);case 5:return t.a(2,r);case 6:t.p=6,t.v,e.userDataPromise=null;case 7:return t.a(2)}}),t,this,[[3,6]])}))),function(){return a.apply(this,arguments)})}],r&&l(t.prototype,r),o&&l(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,o,a,i}();c(p,"userData",null),c(p,"userDataPromise",null),c(p,"initialized",!1),c(p,"peopleService",void 0),t.Auth=p},14655:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isMobile=function(){return window.innerWidth<1024}},39973:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.scrollToElement=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth",o=e.getBoundingClientRect().top+window.scrollY+t;window.scrollTo({top:o,behavior:r})},t.scrollToTop=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";window.scrollTo({top:e,behavior:t})}},29645:(e,t)=>{function r(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,i=e}
2,f:function(){try{s||null==r.return||r.return()}finally{if(l)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}Object.defineProperty(t,"__esModule",{value:!0}),t.findBestMatch=t.getLevenshteinDistance=void 0,t.removeAcentos=function(e){var t=e,r={a:/[\xE0-\xE6]/g,A:/[\xC0-\xC6]/g,e:/[\xE8-\xEB]/g,E:/[\xC8-\xCB]/g,i:/[\xEC-\xEF]/g,I:/[\xCC-\xCF]/g,o:/[\xF2-\xF6]/g,O:/[\xD2-\xD6]/g,u:/[\xF9-\xFC]/g,U:/[\xD9-\xDC]/g,c:/\xE7/g,C:/\xC7/g,n:/\xF1/g,N:/\xD1/g};for(var o in r){var n=r[o];t=t.replace(n,o)}return t.toLocaleLowerCase()},t.formatCurrency=function(e){if("number"!=typeof e)return e;return new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(e)},t.formatDate=function(e,t){if(!e)return"";var r="",o=t.split(/[^-\/: ]/);return t.split(/[-\/: ]/).forEach((function(t,n){var a="";switch(t){case"Y":r+=e.getFullYear();break;case"m":a="0";var i=e.getMonth()+1;r+=i>9?i:a+i;break;case"d":a="0",r+=e.getDate()>9?e.getDate():a+e.getDate();break;case"H":a="0",r+=e.getHours()>9?e.getHours():a+e.getHours();break;case"i":a="0",r+=e.getMinutes()>9?e.getMinutes():a+e.getMinutes();break;case"s":a="0",r+=e.getSeconds()>9?e.getSeconds():a+e.getSeconds()}o[n+1]&&(r+=o[n+1])})),r},t.ensureTwoDigits=function(e){e<10&&(e="0"+e);return e};t.getLevenshteinDistance=function(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;for(var r=Array.from({length:e.length+1},(function(e,t){return[t]})),o=1;o<=t.length;o++)r[0][o]=o;for(var n=1;n<=e.length;n++)for(var a=1;a<=t.length;a++){var i=e[n-1].toLowerCase()===t[a-1].toLowerCase()?0:1;r[n][a]=Math.min(r[n-1][a]+1,r[n][a-1]+1,r[n-1][a-1]+i)}return r[e.length][t.length]};t.findBestMatch=function(e,o){var n,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,i=null,s=99999,l=r(o);try{for(l.s();!(n=l.n()).done;){var c=n.value,u=(0,t.getLevenshteinDistance)(e,c);u<=a&&u<s&&(s=u,i=c)}}catch(e){l.e(e)}finally{l.f()}return i}},46533:(e,t,r)=>{r.d(t,{A:()=>a});var o=r(76314),n=r.n(o)()((function(e){return e[1]}));n.push([e.id,".alert-component-backdrop{background:rgba(0,0,0,.3);height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:1000}.alert-component{background:#fff;left:50%;margin-bottom:-50%;margin-right:-50%;max-height:90vh;max-width:75vw;overflow-x:hidden;overflow-y:auto;position:fixed;top:50%;transform:translate(-50%,-50%);width:500px;z-index:1001}",""]);const a=n},30583:(e,t,r)=>{r.d(t,{A:()=>a});var o=r(76314),n=r.n(o)()((function(e){return e[1]}));n.push([e.id,".underline{text-decoration:underline;transition:.5s;&:hover{scale:1.1}}",""]);const a=n},53206:(e,t,r)=>{r.d(t,{A:()=>a});var o=r(76314),n=r.n(o)()((function(e){return e[1]}));n.push([e.id,".tagVip{img{filter:brightness(0) saturate(100%) invert(71%) sepia(40%) saturate(558%) hue-rotate(342deg) brightness(100%) contrast(103%)}}",""]);const a=n},93376:(e,t,r)=>{r.d(t,{A:()=>a});var o=r(76314),n=r.n(o)()((function(e){return e[1]}));n.push([e.id,".modal-component-backdrop{background:rgba(0,0,0,.3);height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:1000}.modal-component{background:#fff;left:50%;margin-bottom:-50%;margin-right:-50%;max-height:90vh;max-width:95vw;overflow-x:hidden;overflow-y:auto;position:fixed;top:50%;transform:translate(-50%,-50%);width:500px;z-index:1001}.content-container{max-height:340px;overflow-y:auto}",""]);const a=n},9682:(e,t,r)=>{r.d(t,{A:()=>a});var o=r(76314),n=r.n(o)()((function(e){return e[1]}));n.push([e.id,'.rounded{border-radius:12px}.rounded-4{border-radius:4px}.rounded-8{border-radius:8px}.rounded-8-b{border-radius:0 0 8px 8px}.rounded-16{border-radius:16px}.rounded-20{border-radius:20px}.rounded-24{border-radius:24px}.rounded-full{border-radius:999px}.notas.container-wrapper{padding-inline:16px}.viacao-notas{background:#fff;border-radius:12px;box-shadow:2px 2px 10px 1px rgba(0,0,0,.1);display:flex;gap:calc(100% - 1120px);justify-content:space-between;padding:16px}.viacao-notas.loading *{display:none}.viacao-notas .swiper{overflow:hidden;width:100%}.viacao-notas .swiper .swiper-button-next:after,.viacao-notas .swiper .swiper-button-prev:after{background:url(https://assets.queropassagem.com.br/static/Images/Icones/swiper-direction.svg) no-repeat;background-size:cover;content:""!important;height:28px;position:relative;width:27px}.viacao-notas .swiper .swiper-button-next.secondary,.viacao-notas .swiper .swiper-button-prev.secondary{filter:brightness(0) saturate(100%) invert(10%) sepia(39%) saturate(2278%) hue-rotate(193deg) brightness(89%) contrast(97%)}.viacao-notas .swiper .swiper-button-next.gray,.viacao-notas .swiper .swiper-button-prev.gray{filter:brightness(0) saturate(100%) invert(40%) sepia(11%) saturate(150%) hue-rotate(42deg) brightness(92%) contrast(91%)}.viacao-notas .swiper .swiper-button-next:after{transform:rotate(180deg)}@media(max-width:1023px){.viacao-notas .swiper{border-top:1px solid #d5d8de;margin-top:16px;padding-top:16px}}
2.viacao-notas .separation{display:flex;justify-content:space-between;width:100%}.viacao-notas .separation .viacao-nota{flex-direction:column;width:225px}.viacao-notas .viacao-nota{align-content:center;align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;height:70px;justify-content:center}@media(min-width:1024px){.viacao-notas .viacao-nota:not(.viacao-notas .viacao-nota:last-of-type){border-right:1.3px solid #d5d8de}}.viacao-notas .viacao-nota .nota-top{align-items:center;display:flex;gap:8px;justify-content:center}.viacao-notas .viacao-nota .nota-top .icon{display:block;height:24px;position:relative;top:-1px;width:24px}.viacao-notas .viacao-nota .nota-top .icon img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.viacao-notas .viacao-nota .nota-top .text{color:#151618;font-family:Inter,sans-serif;font-size:16px;font-weight:600;line-height:22px}.viacao-notas .viacao-nota .nota-top .text.big{font-family:Sora,sans-serif;font-size:24px;font-weight:700;line-height:26px}.viacao-notas .viacao-nota .nota-top.invert-icon{flex-direction:row-reverse;gap:2px}.viacao-notas .viacao-nota .nota-top.invert-icon .icon{height:12px;width:12px}.viacao-notas .viacao-nota .nota-bottom{width:177px}.viacao-notas .viacao-nota .nota-bottom .text{color:#46484d;font-family:Inter,sans-serif;font-size:14px;line-height:20px;text-align:center}.viacao-notas .viacao-nota .nota-bottom.w-190{width:190px}@media(max-width:1023px){.viacao-notas .viacao-nota .nota-bottom{align-items:flex-end}.viacao-notas .viacao-nota.first{height:-moz-fit-content;height:fit-content;justify-content:space-between}.viacao-notas .viacao-nota.first .nota-top .text{font-family:Sora,sans-serif;font-size:32px;font-weight:700;line-height:36px}.viacao-notas .viacao-nota.first .nota-bottom .text{text-align:right}.viacao-notas{flex-direction:column}.viacao-notas>.spacer{height:.7px;margin-block:16px;width:100%}}',""]);const a=n},26182:(e,t,r)=>{r.d(t,{A:()=>a});var o=r(76314),n=r.n(o)()((function(e){return e[1]}));n.push([e.id,".amenitieIcon{height:16px;width:16px}.amenitieIcon img{filter:brightness(0) saturate(100%) invert(30%) sepia(98%) saturate(920%) hue-rotate(192deg) brightness(93%) contrast(94%);max-height:100%;max-width:100%}",""]);const a=n},24345:(e,t,r)=>{r.d(t,{A:()=>a});var o=r(76314),n=r.n(o)()((function(e){return e[1]}));n.push([e.id,'.busWrapper{cursor:auto;overflow:hidden;transition:.3s}.busWrapper.close{max-height:0!important}.busWrapper .floatingHeader{background:#fff;display:none;justify-content:center;position:sticky;top:0;z-index:1}.busWrapper .floatingHeader i{cursor:pointer;font-size:25px;left:16px;margin-bottom:-50%;position:absolute;top:50%;transform:translateY(-50%)}.busWrapper .connectionToogle{display:none}.busWrapper .connectionHeader{border-bottom-style:solid;border-bottom-width:1px;border-top-style:solid;border-top-width:1px;position:relative}.busWrapper .connectionHeader:before{border-top:2px dashed #d5d8de;content:"";height:1px;left:0;margin-bottom:-50%;position:absolute;top:50%;transform:translateY(-50%);width:100%;z-index:5}.busWrapper .connectionHeader>*{position:relative;z-index:6}.busWrapper .data{max-width:calc(100% - 250px)}.busWrapper .data .selectionWithoutSeats{cursor:auto;margin-left:auto;margin-right:auto;width:-moz-fit-content;width:fit-content}.busWrapper .data .selectionWithoutSeats i{cursor:pointer;font-size:30px}.busWrapper .data .selectionWithoutSeats i.disabled{color:#b9bcc2;cursor:auto}.busWrapper .data .floors{list-style:none}.busWrapper .data .floors li{cursor:pointer}.busWrapper .data .floors li.selected{background-color:#0d2240;color:#fff}.busWrapper .data .bus{border-radius:100px 32px 32px 100px;height:300px;overflow:hidden;transition:.5s;width:100%}.busWrapper .data .bus .driver{height:100%;width:80px}.busWrapper .data .bus .driver img{cursor:pointer;rotate:0deg;transition:.5s}.busWrapper .data .bus .driver img.rotate{animation:steerAnimation 2s ease-in-out 1;transform-origin:center center}.busWrapper .data .bus .seats{overflow:auto;scrollbar-width:none}.busWrapper .data .bus .seats::-webkit-scrollbar{display:none}
2.busWrapper .data .bus .seats .load{flex-direction:column;height:100%}.busWrapper .data .bus .seats .busLayout{display:grid;grid-template-rows:repeat(5,1fr);height:100%;max-width:-moz-fit-content;max-width:fit-content;overflow:auto;scrollbar-width:none;width:100%}.busWrapper .data .bus .seats .busLayout::-webkit-scrollbar{display:none}.busWrapper .data .bus .seats .busLayout div{height:35px;margin:5px;width:35px}.busWrapper .data .bus .seats .busLayout div:not(.occupied){cursor:pointer}.busWrapper .data .bus .seats .busLayout div.selected{background-color:#5790da;color:#fff}.busWrapper .selection{position:relative;width:250px}.busWrapper .selection .selecteds{gap:10px;padding-bottom:40px}.busWrapper .selection .selecteds>div{height:30px;width:30px}.busWrapper .selection button{bottom:16px;left:16px;position:absolute;width:calc(100% - 32px)}@container (max-width: 1023px){.busWrapper{background-color:#fff;bottom:-110%;height:100dvh;padding:0!important;position:fixed;right:0;transition:.5s;width:100%;z-index:70}.busWrapper.close>div .busBg .selection{bottom:-200px;transition:.5s}.busWrapper:not(.close){bottom:0;max-height:none!important}.busWrapper .connectionHeader{display:none}.busWrapper .floatingHeader{display:flex}.busWrapper .connectionToogle{display:flex;overflow:hidden}.busWrapper .connectionToogle div.selected{background-color:#2764c0;color:#fff;cursor:pointer}.busWrapper>div{height:calc(100dvh - 180px);overflow-y:auto;width:100%}.busWrapper>div .busBg{max-height:calc(100dvh - 220px)}.busWrapper>div .busBg .data{max-width:100%;position:relative}.busWrapper>div .busBg .data .explainText{background-color:#f5f5f7;border-radius:4px;padding:8px}.busWrapper>div .busBg .data .explainText p{text-align:left}.busWrapper>div .busBg .data .floors{margin-bottom:-50px;margin-top:75px}.busWrapper>div .busBg .data .floors li{border-radius:999px;flex-grow:1;padding:12px 16px;text-align:center}.busWrapper>div .busBg .data .bus{height:calc(100vw - 32px);margin-top:75px;rotate:90deg;transform:translateY(-100%);transform-origin:0 0;width:-moz-fit-content;width:fit-content}.busWrapper>div .busBg .data .bus .seats .load{transform:rotate(-90deg)}.busWrapper>div .busBg .data .bus .seats .busLayout>div{height:13vw;line-height:13vw;margin:5px;rotate:-90deg;width:13vw}.busWrapper>div .busBg .data .guide{left:50%;margin-right:-50%;position:absolute;top:90px;transform:translate(-50%)}.busWrapper>div .busBg .data .guide.multiplePrices{top:145px}.busWrapper>div .busBg .selection{background-color:#fff;border-top:1px solid #d5d8de;bottom:0;left:0;position:fixed;transition:.2s;width:100%}.busWrapper>div .busBg .selection .selecteds{flex-wrap:nowrap;overflow-x:auto;padding-bottom:15px}.busWrapper>div .busBg .selection .selecteds>div{flex-shrink:0}.busWrapper>div .busBg .selection button{bottom:0;left:0;position:relative;width:100%}.busWrapper.searching>div{height:100%}.busWrapper.searching>div .busBg{height:100%;max-height:none}.busWrapper.searching>div .busBg .data .bus{width:calc(100dvh - 220px)}}@keyframes steerAnimation{0%{transform:rotate(0deg)}25%{transform:rotate(-60deg)}50%{transform:rotate(60deg)}75%{transform:rotate(-15deg)}to{transform:rotate(0deg)}}',""]);const a=n},49979:(e,t,r)=>{r.d(t,{A:()=>a});var o=r(76314),n=r.n(o)()((function(e){return e[1]}));n.push([e.id,'.aviso-embarque-proximo{border-radius:8px 8px 0 0;padding:8px 16px 8px 12px}.modalCardResultado{container-type:inline-size;height:100dvh;opacity:0;position:fixed!important;top:0;visibility:hidden;width:100vw;z-index:999}.modalCardResultado.open{opacity:1;visibility:visible}:has(>.cardResultado){container-type:inline-size}.cardResultado,.modalCardResultado{-webkit-tap-highlight-color:rgba(0,0,0,0);overflow:hidden;position:relative;transition:.5s}.cardResultado.border-box-aviso-embarque-proximo,.modalCardResultado.border-box-aviso-embarque-proximo{box-shadow:0 -10px 0 0 #cf7519}.cardResultado:not(.noHover),.modalCardResultado:not(.noHover){cursor:pointer}
2.cardResultado:not(.noHover):not(:has(.busWrapper:hover)):not(.embarque-proximo):hover,.modalCardResultado:not(.noHover):not(:has(.busWrapper:hover)):not(.embarque-proximo):hover{box-shadow:0 0 0 1.5px #2764c0}.cardResultado .mobile,.modalCardResultado .mobile{display:none}.cardResultado .recommended-card,.modalCardResultado .recommended-card{align-items:flex-start;color:#fff;display:flex;flex-direction:column;font-family:Inter,sans-serif;font-size:12px;font-weight:600;height:30px;justify-content:center;line-height:15px;width:100%}.cardResultado:has(.recommended-card.cost_benefit),.modalCardResultado:has(.recommended-card.cost_benefit){border:1px solid #cf7519}.cardResultado:has(.recommended-card.cost_benefit) .recommended-card.cost_benefit,.modalCardResultado:has(.recommended-card.cost_benefit) .recommended-card.cost_benefit{background:#cf7519}.cardResultado:has(.recommended-card.favorite),.modalCardResultado:has(.recommended-card.favorite){border:1px solid #2764c0}.cardResultado:has(.recommended-card.favorite) .recommended-card.favorite,.modalCardResultado:has(.recommended-card.favorite) .recommended-card.favorite{background:#2764c0}.cardResultado:has(.recommended-card.lowest_price),.modalCardResultado:has(.recommended-card.lowest_price){border:1px solid #046133}.cardResultado:has(.recommended-card.lowest_price) .recommended-card.lowest_price,.modalCardResultado:has(.recommended-card.lowest_price) .recommended-card.lowest_price{background:#046133}.cardResultado .logoHolder,.modalCardResultado .logoHolder{height:50px;width:130px}.cardResultado .timesWrapper .times,.modalCardResultado .timesWrapper .times{width:160px}.cardResultado .timesWrapper .times .middle,.modalCardResultado .timesWrapper .times .middle{align-items:center;display:flex;flex-grow:1;justify-content:flex-end;position:relative}.cardResultado .timesWrapper .times .middle:before,.modalCardResultado .timesWrapper .times .middle:before{background-color:#d5d8de;content:"";height:1px;left:0;margin-bottom:-50%;position:absolute;top:50%;transform:translateY(-50%);width:100%}.cardResultado .timesWrapper .times .middle i,.modalCardResultado .timesWrapper .times .middle i{font-size:20px;margin-right:-10px;margin-top:1px}.cardResultado .places,.modalCardResultado .places{position:relative}.cardResultado .places:before,.modalCardResultado .places:before{background-color:#81848c;content:"";height:100%;left:7px;position:absolute;top:0;width:2px;z-index:1}.cardResultado .places>div,.modalCardResultado .places>div{background-color:#fff;position:relative;z-index:2}.cardResultado .seatClass,.modalCardResultado .seatClass{width:150px}.cardResultado .seatClass .resultClassIcon,.modalCardResultado .seatClass .resultClassIcon{filter:brightness(0) saturate(100%) invert(11%) sepia(1%) saturate(3761%) hue-rotate(181deg) brightness(93%) contrast(80%);height:20px}.cardResultado .seatClass .tagVip,.modalCardResultado .seatClass .tagVip{display:none}.cardResultado .price,.modalCardResultado .price{width:100px}.cardResultado .price .maxPrice,.modalCardResultado .price .maxPrice{text-decoration:line-through}.cardResultado .tags,.modalCardResultado .tags{transition:.5s}.cardResultado .rating,.modalCardResultado .rating{gap:8px;width:325px}.cardResultado .rating p,.modalCardResultado .rating p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@container (max-width: 640px){.cardResultado,.modalCardResultado{display:flex;flex-direction:column;padding:0}.cardResultado .desktop,.modalCardResultado .desktop{display:none}.cardResultado>div,.modalCardResultado>div{padding:12px 16px}.cardResultado>div.mobile,.modalCardResultado>div.mobile{display:flex;width:auto}.cardResultado>div.mobile .logoHolder,.modalCardResultado>div.mobile .logoHolder{height:30px;width:auto}.cardResultado>div:not(.tags):not(.mobile):not(.busWrapper),.modalCardResultado>div:not(.tags):not(.mobile):not(.busWrapper){align-items:flex-start;flex-direction:column;gap:16px;position:relative}.cardResultado>div:not(.tags):not(.mobile):not(.busWrapper) .timesWrapper,.modalCardResultado>div:not(.tags):not(.mobile):not(.busWrapper) .timesWrapper{position:relative;width:100%}
2.cardResultado>div:not(.tags):not(.mobile):not(.busWrapper) .timesWrapper .times,.modalCardResultado>div:not(.tags):not(.mobile):not(.busWrapper) .timesWrapper .times{margin-bottom:3px;width:100%}.cardResultado>div:not(.tags):not(.mobile):not(.busWrapper) .timesWrapper .duration,.modalCardResultado>div:not(.tags):not(.mobile):not(.busWrapper) .timesWrapper .duration{background:#fff;left:50%;margin-right:-50%;padding:0 4px;position:absolute;top:3px;transform:translate(-50%)}.cardResultado>div:not(.tags):not(.mobile):not(.busWrapper) .timesWrapper .duration span,.modalCardResultado>div:not(.tags):not(.mobile):not(.busWrapper) .timesWrapper .duration span{display:none}.cardResultado>div:not(.tags):not(.mobile):not(.busWrapper) .seatClass,.modalCardResultado>div:not(.tags):not(.mobile):not(.busWrapper) .seatClass{position:absolute;right:18px;top:12px;width:auto}.cardResultado>div:not(.tags):not(.mobile):not(.busWrapper) .seatClass .tagVip,.modalCardResultado>div:not(.tags):not(.mobile):not(.busWrapper) .seatClass .tagVip{display:flex;width:-moz-fit-content;width:fit-content}.cardResultado>div:has(>.close.busWrapper),.modalCardResultado>div:has(>.close.busWrapper){display:none}.cardResultado>div .mobile-tags,.modalCardResultado>div .mobile-tags{display:flex}.cardResultado>div .mobile-price,.modalCardResultado>div .mobile-price{display:flex;overflow:hidden;position:relative;width:100%}.cardResultado>div .mobile-price .resultClassIcon,.modalCardResultado>div .mobile-price .resultClassIcon{filter:brightness(0) saturate(100%) invert(30%) sepia(98%) saturate(920%) hue-rotate(192deg) brightness(93%) contrast(94%);height:20px}.cardResultado>div .mobile-price .resultClass,.modalCardResultado>div .mobile-price .resultClass{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cardResultado>div .mobile-price .btn,.modalCardResultado>div .mobile-price .btn{background-color:#2764c0;height:100%;position:absolute;right:0;top:0}.cardResultado>div .mobile-price .btn i,.modalCardResultado>div .mobile-price .btn i{font-size:20px}}@container (max-width: 340px){.cardResultado>div:not(.tags):not(.mobile):not(.busWrapper) .seatClass,.modalCardResultado>div:not(.tags):not(.mobile):not(.busWrapper) .seatClass{align-items:flex-start;position:static}}@container (max-width: 1023px){.cardResultado,.modalCardResultado{position:relative}.cardResultado div.main button,.modalCardResultado div.main button{display:none}}
2@container (min-width: 1024px){.cardResultado:has(.busWrapper:not(.close)):has(.bus),.cardResultado:has(.busWrapper:not(.close)):has(.selectionWithoutSeats),.modalCardResultado:has(.busWrapper:not(.close)):has(.bus),.modalCardResultado:has(.busWrapper:not(.close)):has(.selectionWithoutSeats){padding-bottom:0;transition:none}.cardResultado:has(.busWrapper:not(.close)) .tags,.modalCardResultado:has(.busWrapper:not(.close)) .tags{border:none;max-height:0;overflow:hidden;padding:0;transition:none}.cardResultado .places>div p,.modalCardResultado .places>div p{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}',""]);const a=n},81494:(e,t,r)=>{r.d(t,{A:()=>a});var o=r(76314),n=r.n(o)()((function(e){return e[1]}));n.push([e.id,".logo[data-v-665eeebb],.logo div.images[data-v-665eeebb]{height:100%;position:relative;width:100%}.logo div.images[data-v-665eeebb]{overflow:hidden}.logo div.images img[data-v-665eeebb]{display:none;height:100%;max-height:50px;max-width:120px}.logo div.images img.show[data-v-665eeebb]{display:block}.logo .quantity[data-v-665eeebb]{border-radius:999px;font-size:10px;height:22px;position:absolute;right:-10px;top:-15px;width:22px}@container (max-width: 640px){.logo div.images img[data-v-665eeebb]{display:none;max-height:30px}.logo div.images img.show[data-v-665eeebb]{display:block}.logo .quantity[data-v-665eeebb]{left:0;top:auto}}",""]);const a=n},30681:(e,t,r)=>{r.d(t,{A:()=>a});var o=r(76314),n=r.n(o)()((function(e){return e[1]}));n.push([e.id,".tag-recommended{min-height:24px}.tag-recommended.cost_benefit,.tag-recommended.favorite,.tag-recommended.lowest_price{align-items:center;border-radius:4px;display:flex;gap:4px;padding:2px 4px}.tag-recommended.cost_benefit span,.tag-recommended.favorite span,.tag-recommended.lowest_price span{font-family:Inter,sans-serif;font-size:12px;font-weight:500;line-height:15px}.tag-recommended.favorite{background:#e6f1ff}.tag-recommended.favorite span{color:#2764c0}.tag-recommended.cost_benefit{background:#e5fff3}.tag-recommended.cost_benefit span{color:#0a7943}",""]);const a=n},41564:(e,t,r)=>{r.d(t,{A:()=>a});var o=r(76314),n=r.n(o)()((function(e){return e[1]}));n.push([e.id,'.lastSeats{position:relative}.lastSeats:before{background-color:#cf7519;border-radius:999px;box-shadow:0 0 5px 2px #cf7519;content:"";height:6px;left:0;margin-bottom:-50%;position:absolute;top:50%;transform:translateY(-50%);width:6px}',""]);const a=n},84096:(e,t,r)=>{r.d(t,{A:()=>a});var o=r(76314),n=r.n(o)()((function(e){return e[1]}));n.push([e.id,'.loaderv1{animation:l1 1s linear infinite alternate;aspect-ratio:1;border-radius:50%;margin:15px auto;width:15px}@keyframes l1{0%{background:var(--spinner-color,#2764c0);box-shadow:20px 0 var(--spinner-color,#2764c0),-20px 0 var(--spinner-color-transparency,#2764c0)}33%{background:var(--spinner-color-transparency,#2764c0);box-shadow:20px 0 var(--spinner-color,#2764c0),-20px 0 var(--spinner-color-transparency,#2764c0)}66%{background:var(--spinner-color-transparency,#2764c0);box-shadow:20px 0 var(--spinner-color-transparency,#2764c0),-20px 0 var(--spinner-color,#2764c0)}to{background:var(--spinner-color,#2764c0);box-shadow:20px 0 var(--spinner-color-transparency,#2764c0),-20px 0 var(--spinner-color,#2764c0)}}.loaderv2{animation:l2 1.3s linear infinite;border-radius:50%;color:var(--spinner-color,#2764c0);font-size:6px;height:1em;margin:30px auto;position:relative;text-indent:-9999em;transform:translateZ(0);width:1em}@keyframes l2{0%,to{box-shadow:0 -3em 0 .2em,2em -2em 0 0,3em 0 0 -1em,2em 2em 0 -1em,0 3em 0 -1em,-2em 2em 0 -1em,-3em 0 0 -1em,-2em -2em 0 0}12.5%{box-shadow:0 -3em 0 0,2em -2em 0 .2em,3em 0 0 0,2em 2em 0 -1em,0 3em 0 -1em,-2em 2em 0 -1em,-3em 0 0 -1em,-2em -2em 0 -1em}25%{box-shadow:0 -3em 0 -.5em,2em -2em 0 0,3em 0 0 .2em,2em 2em 0 0,0 3em 0 -1em,-2em 2em 0 -1em,-3em 0 0 -1em,-2em -2em 0 -1em}37.5%{box-shadow:0 -3em 0 -1em,2em -2em 0 -1em,3em 0 0 0,2em 2em 0 .2em,0 3em 0 0,-2em 2em 0 -1em,-3em 0 0 -1em,-2em -2em 0 -1em}50%{box-shadow:0 -3em 0 -1em,2em -2em 0 -1em,3em 0 0 -1em,2em 2em 0 0,0 3em 0 .2em,-2em 2em 0 0,-3em 0 0 -1em,-2em -2em 0 -1em}62.5%{box-shadow:0 -3em 0 -1em,2em -2em 0 -1em,3em 0 0 -1em,2em 2em 0 -1em,0 3em 0 0,-2em 2em 0 .2em,-3em 0 0 0,-2em -2em 0 -1em}75%{box-shadow:0 -3em 0 -1em,2em -2em 0 -1em,3em 0 0 -1em,2em 2em 0 -1em,0 3em 0 -1em,-2em 2em 0 0,-3em 0 0 .2em,-2em -2em 0 0}87.5%{box-shadow:0 -3em 0 0,2em -2em 0 -1em,3em 0 0 -1em,2em 2em 0 -1em,0 3em 0 -1em,-2em 2em 0 0,-3em 0 0 0,-2em -2em 0 .2em}}.loaderv3{animation:l3 1s linear infinite;border:5px solid #edf0f7;border-bottom:5px solid var(--spinner-color,#2764c0);border-radius:50%;box-sizing:border-box;display:block;height:48px;margin:0 auto;width:48px}@keyframes l3{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.loaderv4,.loaderv4:after,.loaderv4:before{animation-fill-mode:both;animation:l4 1.8s ease-in-out infinite;border-radius:50%;height:2.5em;width:2.5em}.loaderv4{animation-delay:-.16s;color:var(--spinner-color,#2764c0);
2font-size:7px;margin:0 auto;position:relative;text-indent:-9999em;transform:translateZ(0)}.loaderv4:after,.loaderv4:before{content:"";position:absolute;top:0}.loaderv4:before{animation-delay:-.32s;left:-3.5em}.loaderv4:after{left:3.5em}@keyframes l4{0%,80%,to{box-shadow:0 2.5em 0 -1.3em}40%{box-shadow:0 2.5em 0 0}}',""]);const a=n},17085:(e,t,r)=>{r.d(t,{A:()=>a});var o=r(76314),n=r.n(o)()((function(e){return e[1]}));n.push([e.id,".modalConnection{background-color:rgba(0,0,0,.2);height:100dvh;left:0;position:fixed;top:0;width:100%;z-index:99999}.modalConnection .box{container-type:inline-size;max-width:500px;overflow:auto;position:relative;width:100%}.modalConnection .box .box-content{max-height:70dvh;overflow-y:auto}@media(max-width:1023px){.modalConnection{align-items:flex-end!important;opacity:0;transition:.5s;visibility:hidden}.modalConnection.show{opacity:1;visibility:visible}.modalConnection.show .box{margin-bottom:0}.modalConnection .box{border-bottom-left-radius:0;border-bottom-right-radius:0;margin-bottom:-1000px;max-width:100%;transition:inherit}}",""]);const a=n},77772:(e,t,r)=>{r.d(t,{A:()=>a});var o=r(76314),n=r.n(o)()((function(e){return e[1]}));n.push([e.id,'.tooltip-container[data-v-3bfe4cbc]{display:inline-block;position:relative}.tooltip-container:hover .tooltip-balloon[data-v-3bfe4cbc]{bottom:190%;opacity:1;transform:translateX(-50%) translateY(0);visibility:visible}.tooltip-balloon[data-v-3bfe4cbc]{word-wrap:break-word;bottom:120%;box-shadow:0 4px 12px rgba(0,0,0,.15);color:#fff;left:50%;max-width:290px;opacity:0;pointer-events:none;text-align:center;transform:translateX(-50%) translateY(8px);transition:opacity .3s ease;visibility:hidden;white-space:normal;width:-moz-max-content;width:max-content;z-index:1000}.tooltip-balloon[data-v-3bfe4cbc]:before{border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #333;bottom:0;content:"";left:50%!important;position:absolute;transform:translateX(-50%) translateY(100%)!important}',""]);const a=n},21287:(e,t,r)=>{r.d(t,{A:()=>a});var o=r(76314),n=r.n(o)()((function(e){return e[1]}));n.push([e.id,".mainBox{cursor:pointer}.mainBox input{display:none}",""]);const a=n},59643:(e,t,r)=>{r.r(t),r.d(t,{default:()=>h});
2var o=r(29726),n={class:"border border-gray-200 rounded-4 shadow alert-component"},a={key:0,class:"p-24 border-b border-gray-300",style:{"text-align":"center"}},i={key:0,class:"mb-12"},s={key:1,class:"typo-h5 typo-bold"},l={key:2,class:"typo-caption mt-4"},c=["innerHTML"];const u={name:"Alert",props:{title:String,subtitle:String,icon:String,message:String,dismissible:Boolean,type:String,confirmText:String,closeText:String,buttonsDisposition:String,closeButtonType:{type:String,required:!1},confirmButtonType:{type:String,required:!1}},computed:{getButtonsDisposition:function(){return"vertical"===this.buttonsDisposition?"direction-column-reverse px-24 gap-12 pb-12":"direction-row"},getCloseButtonType:function(){return this.closeButtonType?this.closeButtonType:"alert"===this.type?"tertiary":"tertiary-danger"},getConfirmButtonType:function(){return this.confirmButtonType?this.confirmButtonType:"tertiary"}},methods:{backDropClick:function(){this.dismissible&&this.$emit("eventHandler")},buttonCloseClick:function(){this.$emit("eventHandler")}}};var d=r(85072),p=r.n(d),m=r(46533),f={insert:"head",singleton:!1};p()(m.A,f);m.A.locals;const h=(0,r(66262).A)(u,[["render",function(e,t,r,u,d,p){return(0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[(0,o.createElementVNode)("div",{onClick:t[0]||(t[0]=function(){return p.backDropClick&&p.backDropClick.apply(p,arguments)}),class:"alert-component-backdrop"}),(0,o.createElementVNode)("div",n,[r.icon||r.title||r.subtitle?((0,o.openBlock)(),(0,o.createElementBlock)("div",a,[r.icon?((0,o.openBlock)(),(0,o.createElementBlock)("div",i,[(0,o.createElementVNode)("i",{class:(0,o.normalizeClass)(r.icon),style:{"font-size":"36px"}},null,2)])):(0,o.createCommentVNode)("",!0),r.title?((0,o.openBlock)(),(0,o.createElementBlock)("div",s,(0,o.toDisplayString)(r.title),1)):(0,o.createCommentVNode)("",!0),r.subtitle?((0,o.openBlock)(),(0,o.createElementBlock)("p",l,(0,o.toDisplayString)(r.subtitle),1)):(0,o.createCommentVNode)("",!0)])):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("div",{class:"pt-32 typo-body-2 px-24 pb-24",innerHTML:r.message},null,8,c),(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["d-flex",p.getButtonsDisposition])},["alert"===r.type?((0,o.openBlock)(),(0,o.createElementBlock)("button",{key:0,onClick:t[1]||(t[1]=function(){return p.buttonCloseClick&&p.buttonCloseClick.apply(p,arguments)}),class:(0,o.normalizeClass)(["tertiary grow-1",p.getCloseButtonType])},(0,o.toDisplayString)(r.closeText),3)):(0,o.createCommentVNode)("",!0),"confirm"===r.type?((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:1},[(0,o.createElementVNode)("button",{onClick:t[2]||(t[2]=function(t){return e.$emit("eventHandler",!1)}),class:(0,o.normalizeClass)(["grow-1",p.getCloseButtonType]),style:{width:"100%"}},(0,o.toDisplayString)(r.closeText),3),(0,o.createElementVNode)("button",{onClick:t[3]||(t[3]=function(t){return e.$emit("eventHandler",!0)}),class:(0,o.normalizeClass)(["grow-1",p.getConfirmButtonType]),style:{width:"100%"}},(0,o.toDisplayString)(r.confirmText),3)],64)):(0,o.createCommentVNode)("",!0)],2)])],64)}]])},20657:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var o=r(52898),n=r(60211),a={};for(const e in n)"default"!==e&&(a[e]=()=>n[e]);r.d(t,a);r(42137);const i=(0,r(66262).A)(n.default,[["render",o.X]])},77607:(e,t,r)=>{r.r(t),r.d(t,{__esModule:()=>n.B,default:()=>c});var o=r(44081),n=r(34258),a=r(85072),i=r.n(a),s=r(26182),l={insert:"head",singleton:!1};i()(s.A,l);s.A.locals;const c=(0,r(66262).A)(n.A,[["render",o.X]])},16108:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var o=r(2061),n=r(32921),a={};for(const e in n)"default"!==e&&(a[e]=()=>n[e]);r.d(t,a);const i=(0,r(66262).A)(n.default,[["render",o.X]])},61579:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var o=r(34353),n=r(46702),a={};for(const e in n)"default"!==e&&(a[e]=()=>n[e]);r.d(t,a);r(75931);const i=(0,r(66262).A)(n.default,[["render",o.X]])},77424:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var o=r(34235),n=r(89145),a={};for(const e in n)"default"!==e&&(a[e]=()=>n[e]);r.d(t,a);r(38038);const i=(0,r(66262).A)(n.default,[["render",o.X]])},39068:(e,t,r)=>{r.r(t),r.d(t,{default:()=>m});
2var o=r(29726),n={class:"logo"},a={class:"images"},i=["src","alt","title"],s={key:0,class:"quantity bg-white typo-caption p-4 border border-gray-300 text-center typo-bold"};const l={name:"Logos",props:["logos"]};var c=r(85072),u=r.n(c),d=r(81494),p={insert:"head",singleton:!1};u()(d.A,p);d.A.locals;const m=(0,r(66262).A)(l,[["render",function(e,t,r,l,c,u){return(0,o.openBlock)(),(0,o.createElementBlock)("div",n,[(0,o.createElementVNode)("div",a,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(r.logos,(function(e){return(0,o.openBlock)(),(0,o.createElementBlock)("img",{class:(0,o.normalizeClass)(["shrink-0",{show:e.show}]),src:e.image,alt:"Logo da "+e.name,title:e.name},null,10,i)})),256))]),r.logos.length>1?((0,o.openBlock)(),(0,o.createElementBlock)("div",s,(0,o.toDisplayString)(r.logos.findIndex((function(e){return e.show}))+1)+"°",1)):(0,o.createCommentVNode)("",!0)])}],["__scopeId","data-v-665eeebb"]])},61975:(e,t,r)=>{r.r(t),r.d(t,{__esModule:()=>n.B,default:()=>a});var o=r(6865),n=r(24259);const a=(0,r(66262).A)(n.A,[["render",o.X]])},62963:(e,t,r)=>{r.r(t),r.d(t,{default:()=>s});
2var o=r(29726),n={class:"py-4 px-8 bg-gray-200 rounded-4 d-flex itens-center justify-center gap-4"},a={class:"c-gray-700 typo-caption"};const i={name:"TagCompanyRating",props:["company"]};const s=(0,r(66262).A)(i,[["render",function(e,t,r,i,s,l){return(0,o.openBlock)(),(0,o.createElementBlock)("div",n,[t[0]||(t[0]=(0,o.createElementVNode)("img",{src:"https://assets.queropassagem.com.br/static/Images/Icones/icon-star-rating-yellow.svg",alt:""},null,-1)),(0,o.createElementVNode)("p",a,(0,o.toDisplayString)(r.company.rating),1)])}]])},14313:(e,t,r)=>{r.r(t),r.d(t,{__esModule:()=>n.B,default:()=>c});var o=r(41201),n=r(44859),a=r(85072),i=r.n(a),s=r(30583),l={insert:"head",singleton:!1};i()(s.A,l);s.A.locals;const c=(0,r(66262).A)(n.A,[["render",o.X]])},16338:(e,t,r)=>{r.r(t),r.d(t,{__esModule:()=>n.B,default:()=>a});var o=r(99476),n=r(48098);const a=(0,r(66262).A)(n.A,[["render",o.X]])},444:(e,t,r)=>{r.r(t),r.d(t,{__esModule:()=>n.B,default:()=>c});var o=r(13436),n=r(59507),a=r(85072),i=r.n(a),s=r(30681),l={insert:"head",singleton:!1};i()(s.A,l);s.A.locals;const c=(0,r(66262).A)(n.A,[["render",o.X]])},92047:(e,t,r)=>{r.r(t),r.d(t,{default:()=>u});
2var o=r(29726),n={class:"lastSeats typo-caption c-warning-600 mt-4 pl-16"};const a={name:"TagLastSeats"};var i=r(85072),s=r.n(i),l=r(41564),c={insert:"head",singleton:!1};s()(l.A,c);l.A.locals;const u=(0,r(66262).A)(a,[["render",function(e,t,r,a,i,s){return(0,o.openBlock)(),(0,o.createElementBlock)("p",n,"Ãltimas poltronas")}]])},8467:(e,t,r)=>{r.r(t),r.d(t,{default:()=>u});var o=r(29726),n={class:"tagVip p-4 bg-primary-900 rounded-4 d-flex itens-center justify-center gap-4"};const a={name:"TagSalaVip"};var i=r(85072),s=r.n(i),l=r(53206),c={insert:"head",singleton:!1};s()(l.A,c);l.A.locals;const u=(0,r(66262).A)(a,[["render",function(e,t,r,a,i,s){return(0,o.openBlock)(),(0,o.createElementBlock)("div",n,t[0]||(t[0]=[(0,o.createElementVNode)("img",{src:"https://assets.queropassagem.com.br/static/Images/Icones/icon-star-rating-green.svg",alt:""},null,-1),(0,o.createElementVNode)("p",{class:"c-warning-400 typo-caption"},"Sala VIP",-1)]))}]])},93549:(e,t,r)=>{r.r(t),r.d(t,{default:()=>c});var o=r(29726);const n={name:"LoaderAnimation",props:{loaderStyle:{required:!1,default:1},color:{type:String,required:!1}},methods:{generateClass:function(){return"loaderv"+this.loaderStyle}}};var a=r(85072),i=r.n(a),s=r(84096),l={insert:"head",singleton:!1};i()(s.A,l);s.A.locals;const c=(0,r(66262).A)(n,[["render",function(e,t,r,n,a,i){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{style:(0,o.normalizeStyle)({"--spinner-color":r.color,"--spinner-color-transparency":r.color+"33"})},[(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["loader",i.generateClass()])},null,2)],4)}]])},83998:(e,t,r)=>{r.r(t),r.d(t,{default:()=>w});
2var o=r(29726),n={class:"box rounded-16 bg-white"},a={class:"px-16 py-8 box-content"},i={key:0,class:"p-8 bg-gray-100 rounded-4 d-flex itens-center justify-space-between"},s={class:"typo-caption c-primary-600"},l={class:"d-flex itens-center justify-space-between p-4 border-b border-gray-300"},c={class:"typo-body-2 c-gray-700 typo-bold"},u={class:"d-flex itens-center justify-space-between p-4"},d={class:"typo-body-2 c-gray-700 typo-bold"},p={class:"d-flex border-t border-gray-300 itens-center p-16 gap-8"};var m=r(29645),f=r(14655);const h={name:"ResultConnection",components:{CardResultado:(0,o.defineAsyncComponent)((function(){return Promise.resolve().then(r.bind(r,77424))}))},props:{appRoot:String,result:Object},methods:{formatCurrency:m.formatCurrency,close:function(){var e=this;(0,f.isMobile)()?(document.getElementById(this.appRoot).querySelector(".modalConnection").classList.remove("show"),setTimeout((function(){e.realClose()}),600)):this.realClose()},realClose:function(){var e=document.getElementById(this.appRoot);e&&e.remove()},selectOption:function(){this.$emit("select-option")},calculateWaitTime:function(e){var t=this.result.connections[e],r=this.result.connections[e+1],o=new Date(t.arrival),n=(new Date(r.departure).getTime()-o.getTime())/1e3,a=Math.floor(n/86400),i=Math.floor(n%86400/3600),s=Math.floor(n%3600/60),l=[];return a&&l.push(a+"d"),i&&l.push(i+"h"),s&&l.push(s+"min"),l.join(" ")}},mounted:function(){var e=this;(0,f.isMobile)()&&setTimeout((function(){document.getElementById(e.appRoot).querySelector(".modalConnection").classList.add("show")}),100)}};var v=r(85072),g=r.n(v),y=r(17085),b={insert:"head",singleton:!1};g()(y.A,b);y.A.locals;const w=(0,r(66262).A)(h,[["render",function(e,t,r,m,f,h){var v=(0,o.resolveComponent)("CardResultado");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"modalConnection d-flex itens-center justify-center",onClick:t[2]||(t[2]=(0,o.withModifiers)((function(e){return h.close()}),["self"]))},[(0,o.createElementVNode)("div",n,[t[6]||(t[6]=(0,o.createElementVNode)("div",{class:"p-16 border-b border-gray-300 text-center"},[(0,o.createElementVNode)("div",{class:"typo-h5"},"Conexão")],-1)),(0,o.createElementVNode)("div",a,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(r.result.connections,(function(e,n){return(0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[(0,o.createVNode)(v,{"show-all-card-tags":!1,"with-seats":!1,"show-price":!1,"hover-effect":!1,result:e,"button-type":0},null,8,["result"]),n<r.result.connections.length-1?((0,o.openBlock)(),(0,o.createElementBlock)("div",i,[t[3]||(t[3]=(0,o.createElementVNode)("p",{class:"typo-caption c-primary-600"},"Conexão com troca de ônibus",-1)),(0,o.createElementVNode)("p",s,"Tempo de espera: "+(0,o.toDisplayString)(h.calculateWaitTime(n)),1)])):(0,o.createCommentVNode)("",!0)],64)})),256)),(0,o.createElementVNode)("div",l,[t[4]||(t[4]=(0,o.createElementVNode)("p",{class:"typo-body-2 c-gray-700"},"Duração da viagem:",-1)),(0,o.createElementVNode)("p",c,(0,o.toDisplayString)(r.result.travelDuration),1)]),(0,o.createElementVNode)("div",u,[t[5]||(t[5]=(0,o.createElementVNode)("p",{class:"typo-body-2 c-gray-700"},"Valor:",-1)),(0,o.createElementVNode)("p",d,(0,o.toDisplayString)(h.formatCurrency(r.result.price)),1)])]),(0,o.createElementVNode)("div",p,[(0,o.createElementVNode)("button",{onClick:t[0]||(t[0]=function(e){return h.close()}),class:"d-flex grow-1 tertiary"},"VOLTAR"),(0,o.createElementVNode)("button",{onClick:t[1]||(t[1]=function(e){return h.selectOption()}),class:"d-flex grow-1 primary"},"ESCOLHER IDA")])])])}]])},88450:(e,t,r)=>{r.r(t),r.d(t,{default:()=>v});
2var o=r(29726),n={class:"border border-gray-200 rounded-4 shadow modal-component"},a={key:0},i={key:1,class:"typo-h5 typo-bold"},s=["innerHTML"],l={class:"pt-24 px-16 pb-16 content-container"},c=["innerHTML"],u=["onClick"];const d={name:"Modal",props:{title:String,subtitle:String,icon:String,html:String,component:Object,dismissible:Boolean,buttons:Array,afterLoad:function(){},onDismiss:Function,buttonsColumn:{type:Boolean,default:!1},topClasses:String,iconSize:String},methods:{backDropClick:function(){this.dismissible&&this.dismiss()},dismiss:function(){this.onDismiss&&this.onDismiss()},actionButton:function(e){e.action?e.action():this.dismiss()}},mounted:function(){this.afterLoad&&this.afterLoad()}};var p=r(85072),m=r.n(p),f=r(93376),h={insert:"head",singleton:!1};m()(f.A,h);f.A.locals;const v=(0,r(66262).A)(d,[["render",function(e,t,r,d,p,m){return(0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[(0,o.createElementVNode)("div",{onClick:t[0]||(t[0]=function(){return m.backDropClick&&m.backDropClick.apply(m,arguments)}),class:"modal-component-backdrop"}),(0,o.createElementVNode)("div",n,[r.icon||r.title||r.subtitle?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,class:(0,o.normalizeClass)([r.topClasses?r.topClasses:"p-24 ","border-b border-gray-200"]),style:{"text-align":"center"}},[r.icon?((0,o.openBlock)(),(0,o.createElementBlock)("div",a,[(0,o.createElementVNode)("i",{class:(0,o.normalizeClass)(r.icon),style:(0,o.normalizeStyle)("font-size: "+(r.iconSize?r.iconSize:"36px"))},null,6)])):(0,o.createCommentVNode)("",!0),r.title?((0,o.openBlock)(),(0,o.createElementBlock)("div",i,(0,o.toDisplayString)(r.title),1)):(0,o.createCommentVNode)("",!0),r.subtitle?((0,o.openBlock)(),(0,o.createElementBlock)("p",{key:2,class:"typo-body-2 typo-medium mt-4",innerHTML:r.subtitle},null,8,s)):(0,o.createCommentVNode)("",!0)],2)):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("div",l,[r.component?((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)(r.component),{key:0})):r.html?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:1,innerHTML:r.html},null,8,c)):(0,o.renderSlot)(e.$slots,"default",{key:2})]),(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["d-flex itens-center",{"direction-column gap-8 px-16 py-12":r.buttonsColumn}])},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(r.buttons,(function(e){return(0,o.openBlock)(),(0,o.createElementBlock)("button",{onClick:function(t){return m.actionButton(e)},class:(0,o.normalizeClass)("d-flex grow-1 "+(e.classes?e.classes.join(" "):"tertiary")),style:(0,o.normalizeStyle)(r.buttonsColumn?"width: 100%":"")},(0,o.toDisplayString)(e.text),15,u)})),256))],2)])],64)}]])},8399:(e,t,r)=>{r.r(t),r.d(t,{default:()=>c});
2var o=r(29726);const n={name:"Tooltip",props:{text:{type:String,required:!0},maxWidth:{type:String}},methods:{resizeTooltip:function(){var e=this.$refs.tooltipBalloon;if(e){var t=e.getBoundingClientRect(),r=window.innerWidth;if(e.style.left="50%",e.style.transform="translateX(-50%)",t.right>r){var o=t.width-2*Math.abs(t.right-r)-4;e.style.width="".concat(o,"px")}if(t.left<0){var n=t.width-2*Math.abs(t.left)-4;e.style.width="".concat(n,"px")}}}}};var a=r(85072),i=r.n(a),s=r(77772),l={insert:"head",singleton:!1};i()(s.A,l);s.A.locals;const c=(0,r(66262).A)(n,[["render",function(e,t,r,n,a,i){return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"tooltip-container",onMouseenter:t[0]||(t[0]=function(){return i.resizeTooltip&&i.resizeTooltip.apply(i,arguments)})},[(0,o.renderSlot)(e.$slots,"default",{},void 0,!0),(0,o.createElementVNode)("span",{class:"tooltip-balloon typo-caption typo-medium bg-gray-800 absolute p-8 border border-gray-800 rounded-8",ref:"tooltipBalloon",style:(0,o.normalizeStyle)({"max-width":r.maxWidth})},(0,o.toDisplayString)(r.text),5)],32)}],["__scopeId","data-v-3bfe4cbc"]])},77290:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var o=r(88664),n=r(70007),a={};for(const e in n)"default"!==e&&(a[e]=()=>n[e]);r.d(t,a);const i=(0,r(66262).A)(n.default,[["render",o.X]])},48855:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var o=r(43743),n=r(80902),a={};for(const e in n)"default"!==e&&(a[e]=()=>n[e]);r.d(t,a);r(48499);const i=(0,r(66262).A)(n.default,[["render",o.X]])},28442:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var o=r(75115),n=r(59055),a={};for(const e in n)"default"!==e&&(a[e]=()=>n[e]);r.d(t,a);const i=(0,r(66262).A)(n.default,[["render",o.X]])},13412:(e,t,r)=>{r.r(t),r.d(t,{__esModule:()=>n.B,default:()=>a});var o=r(90199),n=r(31403);const a=(0,r(66262).A)(n.A,[["render",o.X]])},63399:(e,t,r)=>{r.r(t),r.d(t,{__esModule:()=>n.B,default:()=>a});var o=r(6420),n=r(93235);const a=(0,r(66262).A)(n.A,[["render",o.X]])},17824:(e,t,r)=>{r.r(t),r.d(t,{__esModule:()=>n.B,default:()=>a});var o=r(51282),n=r(49492);const a=(0,r(66262).A)(n.A,[["render",o.X]])},9085:(e,t,r)=>{r.r(t),r.d(t,{__esModule:()=>n.B,default:()=>a});var o=r(24209),n=r(82084);const a=(0,r(66262).A)(n.A,[["render",o.X]])},10945:(e,t,r)=>{r.r(t),r.d(t,{__esModule:()=>n.B,default:()=>a});var o=r(67890),n=r(52950);const a=(0,r(66262).A)(n.A,[["render",o.X]])},55783:(e,t,r)=>{r.r(t),r.d(t,{__esModule:()=>n.B,default:()=>a});var o=r(52224),n=r(63335);const a=(0,r(66262).A)(n.A,[["render",o.X]])},60211:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n.a});var o=r(90620),n=r.n(o),a={};for(const e in o)"default"!==e&&(a[e]=()=>o[e]);r.d(t,a)},32921:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n.a});var o=r(95746),n=r.n(o),a={};for(const e in o)"default"!==e&&(a[e]=()=>o[e]);r.d(t,a)},46702:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n.a});var o=r(74031),n=r.n(o),a={};for(const e in o)"default"!==e&&(a[e]=()=>o[e]);r.d(t,a)},89145:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n.a});var o=r(64478),n=r.n(o),a={};for(const e in o)"default"!==e&&(a[e]=()=>o[e]);r.d(t,a)},70007:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n.a});var o=r(15438),n=r.n(o),a={};for(const e in o)"default"!==e&&(a[e]=()=>o[e]);r.d(t,a)},80902:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n.a});var o=r(48775),n=r.n(o),a={};for(const e in o)"default"!==e&&(a[e]=()=>o[e]);r.d(t,a)},59055:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n.a});var o=r(56998),n=r.n(o),a={};for(const e in o)"default"!==e&&(a[e]=()=>o[e]);r.d(t,a)},52898:(e,t,r)=>{r.d(t,{X:()=>o.X});var o=r(64671)},2061:(e,t,r)=>{r.d(t,{X:()=>o.X});var o=r(80838)},34353:(e,t,r)=>{r.d(t,{X:()=>o.X});var o=r(85876)},34235:(e,t,r)=>{r.d(t,{X:()=>o.X});var o=r(95768)},88664:(e,t,r)=>{r.d(t,{X:()=>o.X});var o=r(81269)},43743:(e,t,r)=>{r.d(t,{X:()=>o.X});var o=r(338)},75115:(e,t,r)=>{r.d(t,{X:()=>o.X});var o=r(29014)},42137:(e,t,r)=>{var o=r(85072),n=r.n(o),a=r(9682),i={insert:"head",singleton:!1};n()(a.A,i);a.A.locals},75931:(e,t,r)=>{var o=r(85072),n=r.n(o),a=r(24345),i={insert:"head",singleton:!1};n()(a.A,i);a.A.locals},38038:(e,t,r)=>{var o=r(85072),n=r.n(o),a=r(49979),i={insert:"head",singleton:!1};n()(a.A,i);a.A.locals},48499:(e,t,r)=>{var o=r(85072),n=r.n(o),a=r(21287),i={insert:"head",singleton:!1};n()(a.A,i);a.A.locals}},e=>{e.O(0,[4892],(()=>{return t=5729,e(e.s=t);var t}));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.