(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2993],{63276:function(e,t,n){Promise.resolve().then(n.t.bind(n,36924,23)),Promise.resolve().then(n.t.bind(n,7431,23)),Promise.resolve().then(n.t.bind(n,75799,23)),Promise.resolve().then(n.t.bind(n,42405,23)),Promise.resolve().then(n.t.bind(n,70350,23)),Promise.resolve().then(n.t.bind(n,45331,23)),Promise.resolve().then(n.t.bind(n,75725,23)),Promise.resolve().then(n.t.bind(n,69063,23)),Promise.resolve().then(n.t.bind(n,57149,23)),Promise.resolve().then(n.t.bind(n,62847,23)),Promise.resolve().then(n.t.bind(n,92915,23)),Promise.resolve().then(n.t.bind(n,47409,23)),Promise.resolve().then(n.t.bind(n,62186,23)),Promise.resolve().then(n.t.bind(n,978,23)),Promise.resolve().then(n.t.bind(n,23250,23)),Promise.resolve().then(n.t.bind(n,76555,23)),Promise.resolve().then(n.t.bind(n,32303,23)),Promise.resolve().then(n.t.bind(n,48073,23)),Promise.resolve().then(n.t.bind(n,56608,23)),Promise.resolve().then(n.t.bind(n,1774,23)),Promise.resolve().then(n.t.bind(n,18572,23)),Promise.resolve().then(n.t.bind(n,48976,23)),Promise.resolve().then(n.t.bind(n,14685,23)),Promise.resolve().then(n.t.bind(n,13947,23)),Promise.resolve().then(n.t.bind(n,58860,23)),Promise.resolve().then(n.t.bind(n,98562,23)),Promise.resolve().then(n.t.bind(n,5463,23)),Promise.resolve().then(n.t.bind(n,45046,23)),Promise.resolve().then(n.t.bind(n,74300,23)),Promise.resolve().then(n.t.bind(n,95009,23)),Promise.resolve().then(n.t.bind(n,63958,23)),Promise.resolve().then(n.t.bind(n,77682,23)),Promise.resolve().then(n.t.bind(n,38007,23)),Promise.resolve().then(n.t.bind(n,76214,23)),Promise.resolve().then(n.t.bind(n,67247,23)),Promise.resolve().then(n.t.bind(n,53930,23)),Promise.resolve().then(n.t.bind(n,9827,23)),Promise.resolve().then(n.t.bind(n,48536,23)),Promise.resolve().then(n.t.bind(n,93965,23)),Promise.resolve().then(n.t.bind(n,27878,23)),Promise.resolve().then(n.t.bind(n,40866,23)),Promise.resolve().then(n.t.bind(n,67810,23)),Promise.resolve().then(n.t.bind(n,39210,23)),Promise.resolve().then(n.t.bind(n,59087,23)),Promise.resolve().then(n.t.bind(n,8636,23)),Promise.resolve().then(n.t.bind(n,38909,23)),Promise.resolve().then(n.t.bind(n,23916,23)),Promise.resolve().then(n.t.bind(n,1991,23)),Promise.resolve().then(n.t.bind(n,19531,23)),Promise.resolve().then(n.t.bind(n,23413,23)),Promise.resolve().then(n.t.bind(n,95096,23)),Promise.resolve().then(n.t.bind(n,39721,23)),Promise.resolve().then(n.t.bind(n,11111,23)),Promise.resolve().then(n.t.bind(n,22846,23)),Promise.resolve().then(n.t.bind(n,44879,23)),Promise.resolve().then(n.t.bind(n,4567,23)),Promise.resolve().then(n.t.bind(n,14983,23)),Promise.resolve().then(n.t.bind(n,92103,23)),Promise.resolve().then(n.t.bind(n,21779,23)),Promise.resolve().then(n.t.bind(n,97765,23)),Promise.resolve().then(n.t.bind(n,82413,23)),Promise.resolve().then(n.t.bind(n,80796,23)),Promise.resolve().then(n.t.bind(n,58810,23)),Promise.resolve().then(n.t.bind(n,16547,23)),Promise.resolve().then(n.t.bind(n,54202,23)),Promise.resolve().then(n.t.bind(n,61306,23)),Promise.resolve().then(n.t.bind(n,71749,23)),Promise.resolve().then(n.t.bind(n,71613,23)),Promise.resolve().then(n.t.bind(n,60946,23)),Promise.resolve().then(n.t.bind(n,79205,23)),Promise.resolve().then(n.t.bind(n,37496,23)),Promise.resolve().then(n.t.bind(n,41365,23)),Promise.resolve().then(n.t.bind(n,19984,23)),Promise.resolve().then(n.t.bind(n,77800,23)),Promise.resolve().then(n.t.bind(n,56671,23)),Promise.resolve().then(n.t.bind(n,61229,23)),Promise.resolve().then(n.t.bind(n,51448,23)),Promise.resolve().then(n.t.bind(n,65878,23)),Promise.resolve().then(n.t.bind(n,72972,23)),Promise.resolve().then(n.bind(n,55919)),Promise.resolve().then(n.bind(n,91618)),Promise.resolve().then(n.bind(n,54226)),Promise.resolve().then(n.bind(n,99734)),Promise.resolve().then(n.bind(n,43594)),Promise.resolve().then(n.bind(n,52803)),Promise.resolve().then(n.bind(n,93068)),Promise.resolve().then(n.bind(n,8004)),Promise.resolve().then(n.bind(n,78386)),Promise.resolve().then(n.bind(n,55786)),Promise.resolve().then(n.t.bind(n,95722,23)),Promise.resolve().then(n.t.bind(n,49145,23)),Promise.resolve().then(n.t.bind(n,99658,23)),Promise.resolve().then(n.t.bind(n,21781,23)),Promise.resolve().then(n.t.bind(n,82002,23)),Promise.resolve().then(n.t.bind(n,84731,23)),Promise.resolve().then(n.t.bind(n,52184,23)),Promise.resolve().then(n.t.bind(n,69995,23)),Promise.resolve().then(n.t.bind(n,24780,23)),Promise.resolve().then(n.t.bind(n,7040,23)),Promise.resolve().then(n.t.bind(n,33261,23)),Promise.resolve().then(n.t.bind(n,6632,23)),Promise.resolve().then(n.t.bind(n,86688,23)),Promise.resolve().then(n.t.bind(n,47848,23)),Promise.resolve().then(n.t.bind(n,38717,23)),Promise.resolve().then(n.t.bind(n,27708,23)),Promise.resolve().then(n.t.bind(n,15467,23)),Promise.resolve().then(n.t.bind(n,38270,23)),Promise.resolve().then(n.t.bind(n,6942,23)),Promise.resolve().then(n.t.bind(n,64401,23)),Promise.resolve().then(n.t.bind(n,81455,23)),Promise.resolve().then(n.t.bind(n,5665,23)),Promise.resolve().then(n.t.bind(n,51044,23)),Promise.resolve().then(n.t.bind(n,21699,23)),Promise.resolve().then(n.t.bind(n,48254,23)),Promise.resolve().then(n.t.bind(n,20646,23)),Promise.resolve().then(n.t.bind(n,12351,23)),Promise.resolve().then(n.t.bind(n,60779,23)),Promise.resolve().then(n.t.bind(n,69849,23)),Promise.resolve().then(n.t.bind(n,75064,23)),Promise.resolve().then(n.t.bind(n,36713,23)),Promise.resolve().then(n.t.bind(n,42910,23)),Promise.resolve().then(n.t.bind(n,20509,23)),Promise.resolve().then(n.t.bind(n,9446,23)),Promise.resolve().then(n.t.bind(n,42271,23)),Promise.resolve().then(n.t.bind(n,92254,23)),Promise.resolve().then(n.t.bind(n,53842,23)),Promise.resolve().then(n.t.bind(n,77089,23)),Promise.resolve().then(n.t.bind(n,78552,23)),Promise.resolve().then(n.t.bind(n,72329,23)),Promise.resolve().then(n.t.bind(n,52583,23))},64805:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var r=n(57437),s=n(2265);function i(e){let{children:t,value:n}=e;return n?"function"==typeof t?t():t:(0,r.jsx)(s.Fragment,{})}},55919:function(e,t,n){"use strict";n.d(t,{default:function(){return m}});var r=n(57437),s=n(2265),i=n(29258),o=n(4241),a=n(71661),l=n.n(a),c=n(91869),d=n(48591),u=n(71096),h=n.n(u);function _(e){return["Y","S","C","F"].includes(e)}function p(e){return"object"==typeof e&&null!==e?["departure","arrival","departureDate","returnDate","type","class","adults","children"].every(t=>void 0!==e[t])?h().isDayjs(e.departureDate)&&h().isDayjs(e.returnDate)?["economic","premium_economic","executive","first_class"].includes(e.class)?!!["round-trip","one-way","multi-trip"].includes(e.type)||(console.error("AirSearch travel type is not valid:",e),!1):(console.error("AirSearch travel class value is not valid:",e),!1):(console.error("AirSearch object has not valid dates:",e),!1):(console.error("AirSearch object has not required properties:",e),!1):(console.error("Invalid AirSearch object:",e),!1)}var m=e=>{let{title:t="Passagens a\xe9reas na promo\xe7\xe3o",size:n="h1"}=e,[a,u]=(0,s.useState)(void 0),[m,v]=(0,s.useState)({});(0,s.useEffect)(()=>{var e;let t=function(){if("undefined"==typeof localStorage)return;let e=(0,o.rV)("airSearch");if(!e)return;let t=JSON.parse(e),n={...t,departureDate:h()(null==t?void 0:t.departureDate),returnDate:h()(null==t?void 0:t.returnDate)};return p(n)?n:void 0}(),n=null!==(e=function(){var e;let{pathname:t,search:n}=window.location,r=(null==t?void 0:t.match(/\/([A-Z]{3})([A-Z]{3})?(\d{6})(?:-([A-Z]{3})([A-Z]{3})(\d{6}))?\/(\d+)\/(\d+)\/(\d+)\/([A-Z])/))||null;if(!r)return{};let s=parseInt(r[8],10),i=parseInt(r[9],10),o={departure:r[1],arrival:r[2],departureDate:(0,d.lq)(r[3]),returnDate:r[6]?(0,d.lq)(r[6]):null,type:r[6]?"round-trip":"one-way",adults:parseInt(r[7],10),children:[...Array.from({length:s},()=>({type:"CHD"})),...Array.from({length:i},()=>({type:"INF"}))],class:_(e=r[10])?({Y:"economic",S:"premium_economic",C:"executive",F:"first_class"})[e]:(console.error("Invalid travel class initial:",e),"economic")},a=new URLSearchParams(n).get("p");if(a){let e=a.split("-");o.adults-=e.filter(e=>"ADT"===e).length,o.children=e.map(e=>["INF","CHD","ADT"].includes(e)?{type:e}:{type:""})}return p(o)?o:{}}())&&void 0!==e?e:{};u(t),v(n)},[]);let f=(0,s.useCallback)(e=>{let t={...e,departure:(0,c.kB)(e.departure),arrival:(0,c.kB)(e.arrival)},n=JSON.stringify(a),r=JSON.stringify(t);n!==r&&(0,o.LS)("airSearch",r,604800);let s=function(e){let{departure:t,arrival:n,departureDate:r,returnDate:s,type:i,adults:o,children:a,class:l}=e,d=(0,c.kB)(t),u=(0,c.kB)(n),h=null==r?void 0:r.format("YYMMDD"),p=null==s?void 0:s.format("YYMMDD"),m="".concat(d).concat(u).concat(h),v="".concat(u).concat(d).concat(p),f="round-trip"===i?"".concat(m,"-").concat(v):m,y=o+a.filter(e=>"ADT"===e.type).length,x=a.filter(e=>"CHD"===e.type).length,b=a.filter(e=>"INF"===e.type).length,g=a.map(e=>e.type).join("-"),j=[f,y,x,b,_(l)?({economic:"Y",premium_economic:"S",executive:"C",first_class:"F"})[l]:(console.error("Invalid travel class value:",l),"Y")];return"/passagens-aereas/pesquisa/".concat(j.join("/"),"/?p=").concat(g)}(e);window.location.href=s},[a]),y={...a,...m};return(0,r.jsx)("div",{className:l().container,children:(0,r.jsx)(i.F,{title:{text:t,element:n},defaultValues:y,onSubmit:f})})}},91618:function(e,t,n){"use strict";var r=n(16958);t.default=r.z},54226:function(e,t,n){"use strict";n.d(t,{default:function(){return l}});var r=n(57437),s=n(2265),i=n(97169),o=n(20717);async function a(e,t){try{let n=await fetch("".concat("https://site.aereo.vaidepromo.com.br","/api/air/fare/").concat(e,"/").concat(t,"/"));return await n.json()}catch(e){throw e}}var l=()=>{let[e,t]=(0,s.useState)(null),[n,l]=(0,s.useState)(void 0),c=()=>{let e=(0,o.T)();if(void 0!=e&&new Date(e.departureTrip.date)<=new Date){localStorage.removeItem("cartData");return}l(e)},d=async()=>{if(!n||e)return;let r=new Date;if(!(new Date(n.departureTrip.date)<=r))try{var s;let e=await a(n.journeySellKey,n.pricingSellKey);e&&Object.keys(e).length>0&&(null===(s=e.errors)||void 0===s?void 0:s.length)===0?t({...n,totalPrice:e.pricing.total,onBuyClick:()=>{window.location.href="".concat("https://www.vaidepromo.com.br","/passagens-aereas/pagamento/").concat(n.journeySellKey,"/").concat(n.pricingSellKey)}}):t({...n,onBuyClick:()=>{window.location.href="".concat("https://www.vaidepromo.com.br").concat(n.searchUrl)}})}catch(e){console.error("Erro ao buscar a tarifa de voo:",e)}};return((0,s.useEffect)(()=>{c()},[]),(0,s.useEffect)(()=>{d()},[n]),e)?(0,r.jsx)("div",{children:(0,r.jsx)(i.h,{...e,deleteFare:()=>{localStorage.removeItem("cartData"),t(null)}})}):null}},99734:function(e,t,n){"use strict";n.d(t,{default:function(){return y}});var r=n(57437),s=n(2265),i=n(33283),o=n(81817),a=n(36760),l=n.n(a),c=n(96188),d=n(64805),u=n(99658),h=n.n(u),_=e=>{let{title:t,description:n,descriptionClassName:s}=e;return(0,r.jsxs)("div",{className:h().container,children:[(0,r.jsx)(c.D,{title:t}),(0,r.jsx)(d.n,{value:n,children:"string"==typeof n?(0,r.jsx)(o.U,{"data-testid":"header-description",className:l()(h().description,s),children:n}):(0,r.jsx)("div",{"data-testid":"header-description",className:l()(h().description,s),children:n})})]})},p=n(6410),m=n(94021),v=n.n(m);let f=e=>{let{isNational:t,togglePrefix:n,onToggleClick:s}=e,o=(0,r.jsx)(i.Z,{variant:"blue",label:(0,r.jsxs)("h3",{className:v().toggleOption,children:[n," Internacionais"]}),selected:!t,onClick:()=>s(!1)}),a=(0,r.jsx)(i.Z,{variant:"blue",label:(0,r.jsxs)("h3",{className:v().toggleOption,children:[n," Nacionais"]}),selected:t,onClick:()=>s(!0)});return t?(0,r.jsxs)("div",{className:v().reverseToggle,children:[o,a]}):(0,r.jsxs)("div",{className:v().toggle,children:[a,o]})};var y=e=>{let{destinationRelation:t,text:n,prefix:i="Passagem para",path:o="/passagens-aereas",togglePrefix:a="Passagens A\xe9reas"}=e,[l,c]=(0,s.useState)(!0),u=(0,s.useMemo)(()=>((null==t?void 0:t.data)||[]).filter(e=>l===e.attributes.isNational),[t,l]);return(0,r.jsxs)(p.Z,{children:[(0,r.jsx)(_,{title:(null==n?void 0:n.title)||"",description:(0,r.jsx)(f,{togglePrefix:a,isNational:l,onToggleClick:c}),descriptionClassName:v().toggleContainer}),(0,r.jsx)(d.n,{value:t&&t.data&&t.data.length,children:(0,r.jsx)("div",{className:v().content,children:u.map(e=>{let{attributes:{slug:t,name:n}}=e;return(0,r.jsx)("a",{href:"".concat(o,"/").concat(t),className:v().link,children:(0,r.jsx)("h4",{children:i+" "+n})},n)})})})]})}},43594:function(e,t,n){"use strict";var r=n(57437),s=n(24507),i=n(22379),o=n(91910),a=n(78705),l=n(84731),c=n.n(l);t.default=e=>{let{cards:t}=e,{width:n}=(0,o.i)(),l=n<a.Su;return(0,r.jsx)(i.q,{children:l&&(0,r.jsx)(s.i,{slides:t,className:c().slider})})}},52803:function(e,t,n){"use strict";var r=n(57437),s=n(14150);t.default=e=>{let{footerItems:t}=e;return(0,r.jsx)(s.$,{footerItems:t})}},93068:function(e,t,n){"use strict";var r=n(49099);t.default=r.h},8004:function(e,t,n){"use strict";n.d(t,{Hero:function(){return y}});var r=n(57437),s=n(2265),i=n(36760),o=n.n(i),a=n(81817),l=n(91869),c=n(1018),d=n.n(c),u=n(6690),h=n.n(u),_=n(43746);async function p(e){try{let t="".concat("https://hotel.go.vaidepromo.com.br","/api/v1/hotel/coupon/").concat(e),n=await fetch(t,{method:"GET",headers:{"Content-Type":"application/json","Elq-Tka":"".concat("449f2754-e70f-46b1-bdc7-d89e1956bd57")}});if(!n.ok)throw Error("Erro ao buscar informa\xe7\xf5es do cupom.");return await n.json()}catch(e){throw Error("Erro ao buscar informa\xe7\xf5es do cupom: ".concat(e))}}function m(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t));if(n.expires){if("number"==typeof n.expires){let e=new Date;e.setTime(e.getTime()+864e5*n.expires),r+="; expires=".concat(e.toUTCString())}else"string"==typeof n.expires?r+="; expires=".concat(new Date(n.expires).toUTCString()):r+="; expires=".concat(n.expires.toUTCString())}r+="; path=".concat(n.path||"/"),n.domain&&(r+="; domain=".concat(n.domain)),n.secure&&(r+="; secure"),n.sameSite&&(r+="; samesite=".concat(n.sameSite)),document.cookie=r}let v=e=>{let{code:t,discount:n,discountType:i}=e,[o,a]=(0,s.useState)(!1),l=async()=>{if(o)a(!1),m("cupom","",{expires:-1,path:"/"});else try{let e=await p(t);e&&e.Available&&(m("cupom",e.CouponCode,{expires:7,path:"/"}),a(!0))}catch(e){console.error("Erro ao aplicar o cupom: ",e)}};return(0,r.jsxs)("div",{className:h().container,children:[(0,r.jsx)(_.X,{id:"",className:h().checkbox,checked:o,onChange:l}),!o&&(0,r.jsxs)("span",{className:h().text,children:["Aplicar cupom"," ",(0,r.jsxs)("span",{className:h().highlightText,children:['"',t,'"'," "]}),"com"," ",(0,r.jsxs)("span",{className:h().highlightText,children:["P"===i?"".concat(n,"%"):"R$".concat(n)," OFF"]})]}),o&&(0,r.jsx)("span",{className:h().text,children:(0,r.jsx)("span",{className:h().highlightText,children:"Cupom aplicado com sucesso!"})})]})},f=e=>[{width:375,path:"/images/hero/".concat(e,"/375x162.webp"),className:d().sm},{width:768,path:"/images/hero/".concat(e,"/768x279.webp"),className:d().md},{width:992,path:"/images/hero/".concat(e,"/992x380.webp"),className:d().lg},{width:1280,path:"/images/hero/".concat(e,"/1280x380.webp"),className:d().xl},{width:1512,path:"/images/hero/".concat(e,"/1512x380.webp"),className:d().xl2},{width:1920,path:"/images/hero/".concat(e,"/1920x380.webp"),className:d().xl3}],y=e=>{var t,n;let{title:s="",description:i="",children:c,background:u,icon:h,type:_="aereo",variant:p="primary",className:m,coupon:y}=e;return(0,r.jsx)(r.Fragment,{children:"secondary"==p?(0,r.jsxs)("div",{className:o()(d().container,d()[p],m),style:{backgroundImage:"url(".concat((0,l.$u)((null==u?void 0:null===(t=u.data)||void 0===t?void 0:t.attributes.url)||""),")")},children:[(0,r.jsx)("div",{className:o()(d().content),style:{backgroundImage:"url(".concat((0,l.$u)((null==h?void 0:null===(n=h.data)||void 0===n?void 0:n.attributes.url)||""),")")},children:(0,r.jsxs)("div",{className:d().column,children:[(0,r.jsx)(a.U,{className:d().heroTitle,"data-testid":"heroTitle",children:s}),(0,r.jsx)(a.U,{className:d().heroDescription,"data-testid":"heroDescription",children:i})]})}),(0,r.jsx)("div",{className:o()(d().content,d().formContainer),children:c})]}):(0,r.jsxs)("div",{className:o()(m),children:[f(_).map(e=>(0,r.jsx)("img",{className:o()(d().heroImage,e.className),src:e.path,alt:"".concat(e.width)},e.width)),(0,r.jsxs)("div",{className:d().iterativeContent,children:["hotel"==_&&(null==y?void 0:y.code)!=null&&(null==y?void 0:y.discount)!=null&&(null==y?void 0:y.discountType)!=null&&(0,r.jsx)("div",{className:d().couponApply,children:(0,r.jsx)(v,{code:null==y?void 0:y.code,discount:null==y?void 0:y.discount,discountType:null==y?void 0:y.discountType})}),(0,r.jsx)("div",{className:o()(d().searchContent),children:c})]})]})})}},78386:function(e,t,n){"use strict";n.r(t);var r=n(24507);t.default=r.i},91910:function(e,t,n){"use strict";n.d(t,{i:function(){return s}});var r=n(2265);function s(){let[e,t]=(0,r.useState)({width:0,height:0});return(0,r.useEffect)(()=>{function e(){t({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),e}},78705:function(e,t,n){"use strict";n.d(t,{Su:function(){return r}});let r=1280},20609:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});let r=[{state:"S\xe3o Paulo",capital:"S\xe3o Paulo",code:"SP"},{state:"Rio de Janeiro",capital:"Rio de Janeiro",code:"RJ"},{state:"Bahia",capital:"Salvador",code:"BA"},{state:"Pernambuco",capital:"Recife",code:"PE"},{state:"Cear\xe1",capital:"Fortaleza",code:"CE"},{state:"Rio Grande do Sul",capital:"Porto Alegre",code:"RS"},{state:"Paran\xe1",capital:"Curitiba",code:"PR"},{state:"Minas Gerais",capital:"Belo Horizonte",code:"MG"},{state:"Santa Catarina",capital:"Florian\xf3polis",code:"SC"},{state:"Par\xe1",capital:"Bel\xe9m",code:"PA"},{state:"Goi\xe1s",capital:"Goi\xe2nia",code:"GO"},{state:"Esp\xedrito Santo",capital:"Vit\xf3ria",code:"ES"},{state:"Alagoas",capital:"Macei\xf3",code:"AL"},{state:"Para\xedba",capital:"Jo\xe3o Pessoa",code:"PB"},{state:"Rio Grande do Norte",capital:"Natal",code:"RN"},{state:"Maranh\xe3o",capital:"S\xe3o Lu\xeds",code:"MA"},{state:"Mato Grosso",capital:"Cuiab\xe1",code:"MT"},{state:"Amazonas",capital:"Manaus",code:"AM"},{state:"Acre",capital:"Rio Branco",code:"AC"},{state:"Amap\xe1",capital:"Macap\xe1",code:"AP"},{state:"Distrito Federal",capital:"Bras\xedlia",code:"DF"},{state:"Mato Grosso do Sul",capital:"Campo Grande",code:"MS"},{state:"Piau\xed",capital:"Teresina",code:"PI"},{state:"Rond\xf4nia",capital:"Porto Velho",code:"RO"},{state:"Roraima",capital:"Boa Vista",code:"RR"},{state:"Sergipe",capital:"Aracaju",code:"SE"},{state:"Tocantins",capital:"Palmas",code:"TO"}]},56251:function(e,t,n){"use strict";async function r(){let e=new Promise((e,t)=>{setTimeout(()=>{t(Error("Request timed out"))},5e3)}),t=fetch("https://www.vaidepromo.com.br/geoip/json/").then(e=>{if(!e.ok)throw Error("Error fetching user geolocation");return e.json()});return await Promise.race([t,e])}n.d(t,{Y:function(){return r}})},27589:function(e,t,n){"use strict";async function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Promise((e,t)=>{setTimeout(()=>{t(Error("Request timed out"))},5e4)});try{let r=fetch("".concat("https://www.vaidepromo.com.br","/cheap/catalog/").concat(e)).then(async e=>{if(!e.ok){let n=await e.text(),r="Error fetching offers @ services/getOffers: ".concat(e.status," ").concat(e.statusText," - ").concat(n);if(console.error("Fetch error:",r),t)throw Error(r);return[]}try{return e.json()}catch(n){let e="Response decode error @ services/getOffers: ".concat(n);if(console.error("Response decode error:",e),t)throw Error(e);return[]}});return await Promise.race([r,n])}catch(e){if(t)throw e;return[]}}n.d(t,{R:function(){return r}})},60312:function(e,t,n){"use strict";var r=n(57437),s=n(5179),i=n(68713),o=n(91869),a=n(78386),l=n(64805),c=n(19462),d=n(75769),u=n.n(d);t.Z=e=>{let{offers:t,titleLevel:n="h3"}=e;return(0,r.jsx)(a.default,{className:u().slider,slides:t.map(e=>(0,r.jsx)(i.f,{"data-testid":"airline-offer-card",className:u().card,image:(0,r.jsx)("img",{src:e.image.url,alt:e.image.tag,loading:"lazy"}),title:(0,r.jsx)(c.Z,{titleLevel:n,title:e.destination_city}),description:(0,r.jsxs)("div",{className:u().cardDescription,children:[(0,r.jsxs)("div",{className:u().dateContainer,children:[(0,r.jsxs)("div",{className:u().label,children:[(0,r.jsx)("span",{children:"Ida:"}),(0,r.jsx)(l.n,{value:e.destination_date,children:(0,r.jsx)("span",{children:"Volta:"})})]}),(0,r.jsxs)("div",{className:u().dates,children:[(0,r.jsx)("span",{"data-testid":"origin-date",children:e.origin_date&&(0,o.Am)(e.origin_date)}),(0,r.jsx)(l.n,{value:e.destination_date,children:(0,r.jsx)("span",{"data-testid":"return-date",children:(0,o.Am)(e.destination_date)})})]})]}),(0,r.jsxs)("div",{className:u().originContainer,children:[(0,r.jsx)(s.b,{size:16}),(0,r.jsxs)("span",{children:["Saindo de ",(0,r.jsx)("b",{children:e.origin_city})]})]}),(0,r.jsx)("div",{className:u().priceContainer,children:(0,r.jsxs)("span",{children:["A partir de"," ",(0,r.jsx)("b",{"data-testid":"offer-price",children:(0,o.xG)(parseFloat(e.price))})]})})]}),link:{label:"Comprar agora",builder:t=>(0,r.jsx)("a",{href:e.url,target:"_blank",children:t})}},"".concat(e.origin_airport,"_").concat(e.destination_airport)))})}},66347:function(e,t,n){"use strict";var r=n(57437),s=n(36760),i=n.n(s),o=n(49122),a=n(92675),l=n(20609),c=n(96188),d=n(17536),u=n.n(d),h=n(64805),_=n(81817);t.Z=e=>{let{title:t,description:n,placeholder:s,selectedOption:d,handleOriginChange:p,className:m,options:v=l.t.map(e=>({value:e.code,label:e.capital}))}=e;return(0,r.jsxs)("div",{className:i()(u().header,m),children:[(0,r.jsxs)("div",{className:u().headerMain,children:[(0,r.jsx)(c.D,{title:t}),(0,r.jsx)(a.P,{role:"combobox",placeholder:s,options:v,optionBuilder:e=>(0,r.jsx)("span",{children:e.label}),onOptionSelect:p,leftIcon:(0,r.jsx)(o.bS,{size:24}),value:d})]}),(0,r.jsx)(h.n,{value:n,children:(0,r.jsx)(_.U,{className:u().description,children:n})})]})}},55786:function(e,t,n){"use strict";n.d(t,{default:function(){return P}});var r=n(57437),s=n(2265),i=n(71193),o=n(70541),a=n(364),l=n(56251),c=n(27589),d=n(20609);let u=e=>{let{isNational:t,maxOffers:n=4,destination:r,args:s}=e;return"?is_inter=".concat(!t,"&limit=").concat(n).concat(r?"&destination=".concat(r):"").concat(s||"")};var h=n(66347),_=n(60312),p=n(6410),m=n(68713),v=n(91869),f=n(19462),y=n(78386),x=n(65494),b=n.n(x),g=e=>{let{offers:t}=e;return(0,r.jsx)(y.default,{className:b().slider,slides:t.map(e=>{var t,n;return(0,r.jsx)(m.f,{className:b().card,"data-testid":"offer",image:(0,r.jsx)("img",{className:b().cardImage,"data-testid":"offer-image-to-".concat(e.destination_city),src:(null===(t=e.image)||void 0===t?void 0:t.url)||"",alt:(null===(n=e.image)||void 0===n?void 0:n.tag)||""}),title:(0,r.jsx)(f.Z,{titleLevel:"h3",title:e.destination_city}),link:{variant:"link",label:(0,r.jsxs)("span",{className:b().cardLink,children:["A partir de ",(0,r.jsx)("b",{"data-testid":"offer-price",children:(0,v.xG)(parseFloat(e.price))})]}),builder:t=>(0,r.jsx)("a",{href:e.url,target:"_blank","data-testid":"link-to-offer-".concat(e.destination_city),children:t})}},"".concat(e.origin_airport,"_").concat(e.destination_airport))})})},j=n(33410),C=n.n(j),P=e=>{let{title:t="Promo\xe7\xf5es saindo de",isNational:n=!0,defaultOffers:m=[],args:v="",maxOffers:f=4,destination:y="",offerSlider:x="default",placeholder:b="Selecione sua origem",description:j="Seu pr\xf3ximo destino com o Vai de Promo"}=e,P=(0,s.useMemo)(()=>n?"VDPNationalOffersOrigin":"VDPInternationalOffersOrigin",[n]),w=(0,s.useMemo)(()=>u({isNational:n,maxOffers:f,destination:y,args:v}),[n,f,y,v]),[S,k]=(0,s.useState)(d.t[0].capital),[N,D]=(0,s.useState)(m),[M,O]=(0,s.useState)(!1),[$,T]=(0,s.useState)({[d.t[0].capital]:m});(0,s.useEffect)(()=>{(async()=>{let e=(0,a.rV)("geolocationData"),t=e?JSON.parse(e):await (0,l.Y)(),n=(0,a.rV)(P);if(n)k(n.label);else{let n=d.t.find(e=>e.code===t.region_code);n&&(k(n.capital),e||(0,a.LS)("geolocationData",JSON.stringify(t),2629743))}})()},[P]);let I=(0,s.useCallback)((e,t)=>{T(n=>({...n,[e]:t}))},[T]),R=(0,s.useCallback)(async e=>{let t=$[e];if(t){D(t);return}O(!0);let n=await (0,c.R)("".concat(w,"&origins=").concat(e));I(e,n),D(n),O(!1)},[$]);(0,s.useEffect)(()=>{R(S)},[S]);let E=(0,s.useMemo)(()=>"airline"===x?_.Z:g,[x]);return(0,r.jsxs)(p.Z,{children:[(0,r.jsx)(h.Z,{title:t,className:C().header,placeholder:b,description:j,selectedOption:S,handleOriginChange:e=>k(e.label)}),M?(0,r.jsx)("div",{className:C().loadingContainer,children:(0,r.jsx)(i.$,{color:"#373737"})}):(0,r.jsx)(r.Fragment,{children:N.length>0?(0,r.jsx)(E,{offers:N.slice(0,f)}):(0,r.jsx)("div",{className:C().error,children:(0,r.jsx)(o.b,{title:"Ops... N\xe3o encontramos nenhuma promo saindo de ".concat(S," :("),description:"N\xe3o existem voos dispon\xedveis. Tente trocar a sua origem ou confira outras promos em nosso site!"})})})]})}},19462:function(e,t,n){"use strict";var r=n(57437),s=n(286),i=n(15467),o=n.n(i);t.Z=e=>{let{titleLevel:t,title:n}=e;return(0,r.jsxs)(t||"h3",{className:o().container,children:[(0,r.jsxs)("span",{className:o().title,children:[(0,r.jsx)(s.j,{}),"Voos para"]}),(0,r.jsx)("span",{className:o().city,children:n})]})}},6410:function(e,t,n){"use strict";var r=n(57437),s=n(95722),i=n.n(s);t.Z=e=>{let{children:t}=e;return(0,r.jsx)("section",{className:i().wrapper,children:t})}},96188:function(e,t,n){"use strict";n.d(t,{D:function(){return o}});var r=n(57437),s=n(49145),i=n.n(s);let o=e=>{let{title:t}=e;return(0,r.jsx)("h2",{className:i().title,children:t})}},91869:function(e,t,n){"use strict";n.d(t,{$u:function(){return c},Am:function(){return d},kB:function(){return a},xG:function(){return l}}),n(57437);var r=n(71096),s=n.n(r),i=n(95904),o=n.n(i);function a(e){let t=e.indexOf("(")+1,n=e.indexOf(")");return e.substring(t,n)}function l(e){return void 0==e?"":new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(e)}let c=e=>{let t=(null==e?void 0:e.match(/uploads\/(.+)/))||null;return"https://cdn.vaidepromo.com.br/"+(t?t[1]:"")},d=e=>s()(e).isValid()?s()(e).locale(o()).format("DD MMM. [de] YYYY"):""},364:function(e,t,n){"use strict";n.d(t,{rV:function(){return i},LS:function(){return s}});let r=()=>Date.now()/1e3;function s(e,t,n){localStorage.setItem(e,JSON.stringify({object:t,expires:n?r()+n:null}))}function i(e){let t="undefined"!=typeof localStorage&&null!==localStorage&&localStorage.getItem(e)?localStorage.getItem(e):null;if(!t)return null;let{expires:n,object:s}=JSON.parse(t);return null!==n&&r()>n?(localStorage.removeItem(e),null):s}},27708:function(e){e.exports={offerDescription:"styles_offerDescription__r8YUI",highlightSectionCard:"styles_highlightSectionCard__WgrmF",actionButton:"styles_actionButton___zEvA"}},71661:function(e){e.exports={container:"styles_container__c8AtI"}},21781:function(e){e.exports={open:"styles_open__VDsWo",slider:"styles_slider__18kWg",airlineCard:"styles_airlineCard__yrwMP",airlineCardOpen:"styles_airlineCardOpen__DkAUz"}},82002:function(e){e.exports={noImageContainer:"styles_noImageContainer__EMv_i",goToBlogLink:"styles_goToBlogLink__ItfoM",exploreMoreText:"styles_exploreMoreText__Viwor",roundButton:"styles_roundButton__XsG6r",morePosts:"styles_morePosts__OTjhr",slider:"styles_slider__J4K1N",post:"styles_post__KUkx1",noImageMainText:"styles_noImageMainText__EEDF8"}},52184:function(e){e.exports={container:"styles_container__kEQtP",imageContainer:"styles_imageContainer__KBwq1"}},65494:function(e){e.exports={slider:"styles_slider__Gd5GE",card:"styles_card__ymAUf",cardImage:"styles_cardImage__22TTK",cardLink:"styles_cardLink__RlCNC"}},94021:function(e){e.exports={toggleContainer:"styles_toggleContainer__w8qQq",content:"styles_content__CfclE",link:"styles_link__5RANe",toggleOption:"styles_toggleOption__xx14H",toggle:"styles_toggle__tIC4z",reverseToggle:"styles_reverseToggle__wMT7l"}},84731:function(e){e.exports={deskContainer:"styles_deskContainer__KQzGb",markdown:"styles_markdown__12fXK",slider:"styles_slider__y1n18",content:"styles_content__yOYDw",card:"styles_card__nKaQ_"}},6690:function(e){e.exports={container:"styles_container__MDPq6",checkbox:"styles_checkbox__R1dCF",text:"styles_text__533sm",highlightText:"styles_highlightText__x9RSl"}},1018:function(e){e.exports={fligthSearchContainer:"styles_fligthSearchContainer__Fno_F",secondary:"styles_secondary__6NwJS",content:"styles_content__Wf16f",column:"styles_column__jDLcc",iterativeContent:"styles_iterativeContent__zHKKA",heroDescription:"styles_heroDescription__cGJcs",heroTitle:"styles_heroTitle__huPsG",container:"styles_container__FTmfP",primary:"styles_primary__QJCu6",backgroundImage:"styles_backgroundImage__CMky5",heroImage:"styles_heroImage__d_qKP",sm:"styles_sm__E9M9t",md:"styles_md__LuSpQ",lg:"styles_lg__oJq6u",xl:"styles_xl__Bv40q",xl2:"styles_xl2__Hr504",xl3:"styles_xl3__y8jo2",formContainer:"styles_formContainer__wIFSu",icon:"styles_icon__DyHPZ",desktopBackgroundImage:"styles_desktopBackgroundImage__MKa3j",mobileBackgroundImage:"styles_mobileBackgroundImage__IfZsg",searchContent:"styles_searchContent__BE2Sw",couponApply:"styles_couponApply__5pA33"}},69995:function(e){e.exports={container:"styles_container__pXXV_",index:"styles_index__ms0UN",title:"styles_title__A2LM1"}},24780:function(e){e.exports={slider:"styles_slider__O_XET"}},7040:function(e){e.exports={signIn:"styles_signIn__zFF9z",mobileDrawer:"styles_mobileDrawer__iOjU1",redirect:"styles_redirect__bomrc"}},75769:function(e){e.exports={originContainer:"styles_originContainer__bfto8",dateContainer:"styles_dateContainer___g4Wr",dates:"styles_dates__Tve8U",label:"styles_label__5KISe",cardDescription:"styles_cardDescription__BoBEv",slider:"styles_slider__zAGbu",card:"styles_card__BYekf",priceContainer:"styles_priceContainer__oGlRz"}},33261:function(e){e.exports={content:"styles_content__M7GOk",header:"styles_header__W4IQK",markdown:"styles_markdown__KxhEm",container:"styles_container__IJzqA",cols3:"styles_cols3__SOsnO",cols2:"styles_cols2__VOi2G"}},17536:function(e){e.exports={headerMain:"styles_headerMain__A6TyS",header:"styles_header__B1yOU",description:"styles_description__93n0P"}},33410:function(e){e.exports={loadingContainer:"styles_loadingContainer__c1Oau",container:"styles_container__WYfot",header:"styles_header__V5Fmi",error:"styles_error__lei4z"}},15467:function(e){e.exports={title:"styles_title__4PQO7",container:"styles_container__SHpHZ",city:"styles_city__3pGmO"}},6632:function(e){e.exports={contentText:"styles_contentText__EUpJj",content:"styles_content__Wya6e",markdown:"styles_markdown__MF4Vh",container:"styles_container__eJ0if",imageContainer:"styles_imageContainer__6S6cc",imageGrid:"styles_imageGrid__8Lwtu",title:"styles_title__U8Rzl",card:"styles_card__caj_l",innerBorder:"styles_innerBorder__CX1n1"}},38717:function(e){e.exports={container:"styles_container__4OGos"}},99658:function(e){e.exports={container:"styles_container__xSn9_",description:"styles_description__kPCFl"}},95722:function(e){e.exports={wrapper:"styles_wrapper__ZH91U"}},38270:function(e){e.exports={highlight:"styles_highlight__M1gmW",header:"styles_header__S304l",subtitle:"styles_subtitle__v9DGi",slider:"styles_slider__k8Ck8",card:"styles_card__lnMYX",offerCard:"styles_offerCard__QWMoc"}},86688:function(e){e.exports={author:"styles_author__LODlp",profile:"styles_profile__H9NdQ",container:"styles_container__DPLSu",avatar:"styles_avatar__ObVoK"}},47848:function(e){e.exports={slider:"styles_slider__og4tG"}},49145:function(e){e.exports={title:"styles_title__WAz2X"}},97169:function(e,t,n){"use strict";let r;n.d(t,{h:function(){return et}}),n(41365);var s,i,o,a,l=n(57437),c=n(2265);n(18572);var d=n(14312);n(1774);let u={"vdp-palette":"_vdp-palette_1xp33_1","seguro-chip-pallete":"_seguro-chip-pallete_1xp33_109",container:"_container_1xp33_217"},h=({children:e,className:t,palette:n="vdp-palette"})=>(0,l.jsx)("div",{className:(0,d.c)(u.container,t,u[n]),children:e});var _=n(28605);let p={},m=e=>{let t;let n=new Set,r=(e,r)=>{let s="function"==typeof e?e(t):e;if(!Object.is(s,t)){let e=t;t=r??("object"!=typeof s||null===s)?s:Object.assign({},t,s),n.forEach(n=>n(t,e))}},s=()=>t,i={setState:r,getState:s,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{(p?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},o=t=e(r,s,i);return i},v=e=>e?m(e):m;var f={exports:{}},y={},x={exports:{}},b={};f.exports=function(){if(a)return y;a=1;var e=(o||(o=1,x.exports=function(){if(i)return b;i=1;var e="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},t=c.useState,n=c.useEffect,r=c.useLayoutEffect,s=c.useDebugValue;function o(t){var n=t.getSnapshot;t=t.value;try{var r=n();return!e(t,r)}catch{return!0}}var a=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?function(e,t){return t()}:function(e,i){var a=i(),l=t({inst:{value:a,getSnapshot:i}}),c=l[0].inst,d=l[1];return r(function(){c.value=a,c.getSnapshot=i,o(c)&&d({inst:c})},[e,a,i]),n(function(){return o(c)&&d({inst:c}),e(function(){o(c)&&d({inst:c})})},[e]),s(a),a};return b.useSyncExternalStore=void 0!==c.useSyncExternalStore?c.useSyncExternalStore:a,b}()),x.exports),t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useSyncExternalStore,r=c.useRef,s=c.useEffect,l=c.useMemo,d=c.useDebugValue;return y.useSyncExternalStoreWithSelector=function(e,i,o,a,c){var u=r(null);if(null===u.current){var h={hasValue:!1,value:null};u.current=h}else h=u.current;var _=n(e,(u=l(function(){function e(e){if(!s){if(s=!0,n=e,e=a(e),void 0!==c&&h.hasValue){var i=h.value;if(c(i,e))return r=i}return r=e}if(i=r,t(n,e))return i;var o=a(e);return void 0!==c&&c(i,o)?i:(n=e,r=o)}var n,r,s=!1,l=void 0===o?null:o;return[function(){return e(i())},null===l?void 0:function(){return e(l())}]},[i,o,a,c]))[0],u[1]);return s(function(){h.hasValue=!0,h.value=_},[_]),d(_),_},y}();var g=f.exports;let j=(0,_.g)(g),C={},{useDebugValue:P}=c,{useSyncExternalStoreWithSelector:w}=j,S=!1,k=e=>e,N=e=>{(C?"production":void 0)!=="production"&&"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t="function"==typeof e?v(e):e,n=(e,n)=>(function(e,t=k,n){(C?"production":void 0)!=="production"&&n&&!S&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),S=!0);let r=w(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return P(r),r})(t,e,n);return Object.assign(n,t),n},D=(r=e=>({isOpen:!1,setIsOpen:t=>e(()=>({isOpen:t}))}))?N(r):N,M={"vdp-palette":"_vdp-palette_qdh9z_1","seguro-chip-pallete":"_seguro-chip-pallete_qdh9z_109",content:"_content_qdh9z_217",container:"_container_qdh9z_441",overlay:"_overlay_qdh9z_451",body:"_body_qdh9z_478",bodyInner:"_bodyInner_qdh9z_498"},O=({tabContent:e,children:t,className:n,bottomSheetClassName:r,palette:s="vdp-palette"})=>{var i,o;let{isOpen:a,setIsOpen:u}=D(),_=(0,c.useRef)(null),p=(0,c.useRef)(null),[m,v]=(0,c.useState)((null==(i=p.current)?void 0:i.clientHeight)??0),f=m+((null==(o=null==_?void 0:_.current)?void 0:o.clientHeight)??0)+64>window.innerHeight?"70svh":m;return(0,c.useEffect)(()=>{var e;v((null==(e=p.current)?void 0:e.clientHeight)??m)},[p,m,v,a]),(0,l.jsxs)("div",{className:(0,d.c)(M.container,n,M[s]),children:[(0,l.jsx)("button",{type:"button",tabIndex:-1,"aria-hidden":!a,onClick:()=>u(!1),className:M.overlay}),(0,l.jsxs)("div",{className:M.content,children:[(0,l.jsx)("div",{ref:_,children:(0,l.jsx)(h,{className:(0,d.c)(r),palette:s,children:e})}),(0,l.jsx)("div",{className:M.body,style:a?{maxHeight:f}:{},children:(0,l.jsx)("div",{ref:p,className:M.bodyInner,children:t})})]})]})};n(19984);let $=({size:e=24,color:t})=>(0,l.jsxs)("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:t,xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.04 2.49139H1.96045V1.49139H14.04V2.49139Z"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.55078 13.8563V1.99139H3.55078V13.8563C3.55078 13.9292 3.60989 13.9883 3.6828 13.9883H12.3168C12.3898 13.9883 12.4489 13.9292 12.4489 13.8563V1.99139H13.4489V13.8563C13.4489 14.4815 12.942 14.9883 12.3168 14.9883H3.6828C3.0576 14.9883 2.55078 14.4815 2.55078 13.8563Z"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.91455 11.9441V4.47168H6.91455V11.9441H5.91455Z",fill:"#005AA3"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.07275 11.9441V4.47168H10.0728V11.9441H9.07275Z",fill:"#005AA3"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5721 1.87964H5.42773V0.879639H10.5721V1.87964Z"})]}),T=({size:e=24,color:t})=>(0,l.jsx)("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:t,xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4837 10.9186C13.2884 11.1138 12.9718 11.1138 12.7766 10.9186L8.00023 6.14224L3.22391 10.9186C3.02865 11.1138 2.71207 11.1138 2.51681 10.9186C2.32155 10.7233 2.32155 10.4067 2.51681 10.2114L8.00022 4.72803L13.4837 10.2114C13.6789 10.4067 13.6789 10.7233 13.4837 10.9186Z"})}),I=({iata:e,city:t,isCalloutOpen:n,onOpenCalloutClick:r,onDeleteFareClick:s})=>(0,l.jsxs)("div",{className:"_container_1i6j2_217",children:[(0,l.jsxs)("div",{className:"_content_1i6j2_217",onClick:r,children:[(0,l.jsx)("button",{"data-testid":"open-callout-button",className:(0,d.c)({_open_1i6j2_278:n}),children:(0,l.jsx)(T,{})}),(0,l.jsxs)("p",{children:[(0,l.jsx)("b",{children:"Continue sua compra"}),(0,l.jsxs)("span",{children:["Sua viagem para ",t," (",e,")"]})]})]}),(0,l.jsx)("button",{"data-testid":"delete-fare-button",onClick:s,className:"_delete_1i6j2_217",children:(0,l.jsx)($,{})})]});n(77800),n(39721);var R=n(88657),E=n(24551),A=n(29165),B=n(61432),L=n(53090);let F={actions:"_actions_psk5o_1",header:"_header_psk5o_1",content:"_content_psk5o_1",container:"_container_psk5o_1",overlay:"_overlay_psk5o_25",title:"_title_psk5o_59",closeIcon:"_closeIcon_psk5o_69",body:"_body_psk5o_75",withHeader:"_withHeader_psk5o_91",withActions:"_withActions_psk5o_94"},H=({title:e,status:t,children:n,actions:r,hasHeader:s=!0,displayCloseButton:i=!0,onClose:o,className:a,zIndex:d=999})=>{var u,h,_,p;return(0,c.useEffect)(()=>{"u">typeof document&&document.body&&(t?document.body.style.overflow="hidden":document.body.style.overflow="auto")},[t]),"u">typeof document&&document.body?R.B.createPortal((0,l.jsxs)("div",{"aria-hidden":!t,style:{zIndex:d},className:F.container,children:[(0,l.jsx)("button",{type:"button",tabIndex:-1,"aria-hidden":!t,onClick:o,className:F.overlay}),(0,l.jsxs)("div",{className:(0,E.l)(F.content,a),children:[(0,l.jsx)(A.f,{value:s,children:(0,l.jsxs)("div",{className:F.header,children:[(0,l.jsx)(A.f,{value:!!e,children:(0,l.jsx)("strong",{className:F.title,children:e})}),(0,l.jsx)(A.f,{value:i,children:(0,l.jsx)("button",{type:"button","data-testid":"modal-close-button",onClick:o,className:F.closeIcon,children:(0,l.jsx)(B.r,{})})})]})}),(0,l.jsx)("div",{className:(0,E.l)(F.body,{[F.withHeader]:s,[F.withActions]:!!r}),children:n}),(0,l.jsx)(A.f,{value:!!r,children:(0,l.jsxs)("div",{className:F.actions,children:[(0,l.jsx)(A.f,{value:null==r?void 0:r.primary,children:(0,l.jsx)(L.B,{variant:"solid",label:(null==(u=null==r?void 0:r.primary)?void 0:u.label)??"Label",onClick:null==(h=null==r?void 0:r.primary)?void 0:h.action})}),(0,l.jsx)(A.f,{value:null==r?void 0:r.secondary,children:(0,l.jsx)(L.B,{variant:"link",label:(null==(_=null==r?void 0:r.secondary)?void 0:_.label)??"Label",onClick:null==(p=null==r?void 0:r.secondary)?void 0:p.action})})]})})]})]}),document.body):(0,l.jsx)(l.Fragment,{})},z=({Fare:e,isOpen:t,closeModal:n,deleteFare:r})=>(0,l.jsx)(H,{zIndex:100001,onClose:n,status:t,title:"Abandonar pesquisa",children:(0,l.jsxs)("div",{className:"_content_634z6_217",children:[(0,l.jsx)("span",{children:"Tem certeza que deseja abandonar essa pesquisa?"}),e]}),className:"_abandonFareModal_634z6_217",actions:{primary:{label:"Cancelar",action:n},secondary:{label:"Excluir",action:()=>{r(),n()}}}});n(56671);let Y=({size:e=24,color:t})=>(0,l.jsxs)("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:t,xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsxs)("g",{clipPath:"url(#clip0_2318_136)",children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00012 1.36377C4.33497 1.36377 1.36377 4.33497 1.36377 8.00012C1.36377 11.6653 4.33497 14.6365 8.00012 14.6365C11.6653 14.6365 14.6365 11.6653 14.6365 8.00012C14.6365 4.33497 11.6653 1.36377 8.00012 1.36377ZM0.36377 8.00012C0.36377 3.78268 3.78268 0.36377 8.00012 0.36377C12.2176 0.36377 15.6365 3.78268 15.6365 8.00012C15.6365 12.2176 12.2176 15.6365 8.00012 15.6365C3.78268 15.6365 0.36377 12.2176 0.36377 8.00012Z"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5129 4.12178C7.78904 4.12178 8.0129 4.34564 8.0129 4.62178V8.4823L10.1668 9.8008C10.4023 9.94498 10.4763 10.2528 10.3322 10.4883C10.188 10.7238 9.88018 10.7979 9.64467 10.6537L7.0129 9.04263V4.62178C7.0129 4.34564 7.23676 4.12178 7.5129 4.12178Z"})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_2318_136",children:(0,l.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]});var V=n(7124),Z={exports:{}};_.c,s=function(){var e="millisecond",t="second",n="minute",r="hour",s="week",i="month",o="quarter",a="year",l="date",c="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},_="en",p={};p[_]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||"th")+"]"}};var m="$isDayjsObject",v=function(e){return e instanceof b||!(!e||!e[m])},f=function e(t,n,r){var s;if(!t)return _;if("string"==typeof t){var i=t.toLowerCase();p[i]&&(s=i),n&&(p[i]=n,s=i);var o=t.split("-");if(!s&&o.length>1)return e(o[0])}else{var a=t.name;p[a]=t,s=a}return!r&&s&&(_=s),s||!r&&_},y=function(e,t){if(v(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new b(n)},x={s:h,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+h(Math.floor(n/60),2,"0")+":"+h(n%60,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),s=t.clone().add(r,i),o=n-s<0,a=t.clone().add(r+(o?-1:1),i);return+(-(r+(n-s)/(o?s-a:a-s))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return({M:i,y:a,w:s,d:"day",D:l,h:r,m:n,s:t,ms:e,Q:o})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};x.l=f,x.i=v,x.w=function(e,t){return y(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var b=function(){function h(e){this.$L=f(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[m]=!0}var _=h.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(x.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(d);if(r){var s=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return x},_.isValid=function(){return this.$d.toString()!==c},_.isSame=function(e,t){var n=y(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return y(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<y(e)},_.$g=function(e,t,n){return x.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,o){var c=this,d=!!x.u(o)||o,u=x.p(e),h=function(e,t){var n=x.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return d?n:n.endOf("day")},_=function(e,t){return x.w(c.toDate()[e].apply(c.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},p=this.$W,m=this.$M,v=this.$D,f="set"+(this.$u?"UTC":"");switch(u){case a:return d?h(1,0):h(31,11);case i:return d?h(1,m):h(0,m+1);case s:var y=this.$locale().weekStart||0,b=(p<y?p+7:p)-y;return h(d?v-b:v+(6-b),m);case"day":case l:return _(f+"Hours",0);case r:return _(f+"Minutes",1);case n:return _(f+"Seconds",2);case t:return _(f+"Milliseconds",3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(s,o){var c,d=x.p(s),u="set"+(this.$u?"UTC":""),h=((c={}).day=u+"Date",c[l]=u+"Date",c[i]=u+"Month",c[a]=u+"FullYear",c[r]=u+"Hours",c[n]=u+"Minutes",c[t]=u+"Seconds",c[e]=u+"Milliseconds",c)[d],_="day"===d?this.$D+(o-this.$W):o;if(d===i||d===a){var p=this.clone().set(l,1);p.$d[h](_),p.init(),this.$d=p.set(l,Math.min(this.$D,p.daysInMonth())).$d}else h&&this.$d[h](_);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[x.p(e)]()},_.add=function(e,o){var l,c=this;e=Number(e);var d=x.p(o),u=function(t){var n=y(c);return x.w(n.date(n.date()+Math.round(t*e)),c)};if(d===i)return this.set(i,this.$M+e);if(d===a)return this.set(a,this.$y+e);if("day"===d)return u(1);if(d===s)return u(7);var h=((l={})[n]=6e4,l[r]=36e5,l[t]=1e3,l)[d]||1,_=this.$d.getTime()+e*h;return x.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||c;var r=e||"YYYY-MM-DDTHH:mm:ssZ",s=x.z(this),i=this.$H,o=this.$m,a=this.$M,l=n.weekdays,d=n.months,h=n.meridiem,_=function(e,n,s,i){return e&&(e[n]||e(t,r))||s[n].slice(0,i)},p=function(e){return x.s(i%12||12,e,"0")},m=h||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(u,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return x.s(t.$y,4,"0");case"M":return a+1;case"MM":return x.s(a+1,2,"0");case"MMM":return _(n.monthsShort,a,d,3);case"MMMM":return _(d,a);case"D":return t.$D;case"DD":return x.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return _(n.weekdaysMin,t.$W,l,2);case"ddd":return _(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return x.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return m(i,o,!0);case"A":return m(i,o,!1);case"m":return String(o);case"mm":return x.s(o,2,"0");case"s":return String(t.$s);case"ss":return x.s(t.$s,2,"0");case"SSS":return x.s(t.$ms,3,"0");case"Z":return s}return null}(e)||s.replace(":","")})},_.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},_.diff=function(e,l,c){var d,u=this,h=x.p(l),_=y(e),p=(_.utcOffset()-this.utcOffset())*6e4,m=this-_,v=function(){return x.m(u,_)};switch(h){case a:d=v()/12;break;case i:d=v();break;case o:d=v()/3;break;case s:d=(m-p)/6048e5;break;case"day":d=(m-p)/864e5;break;case r:d=m/36e5;break;case n:d=m/6e4;break;case t:d=m/1e3;break;default:d=m}return c?d:x.a(d)},_.daysInMonth=function(){return this.endOf(i).$D},_.$locale=function(){return p[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=f(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return x.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},h}(),g=b.prototype;return y.prototype=g,[["$ms",e],["$s",t],["$m",n],["$H",r],["$W","day"],["$M",i],["$y",a],["$D",l]].forEach(function(e){g[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),y.extend=function(e,t){return e.$i||(e(t,b,y),e.$i=!0),y},y.locale=f,y.isDayjs=v,y.unix=function(e){return y(1e3*e)},y.en=p[_],y.Ls=p,y.p={},y},Z.exports=s();var q=Z.exports;let G=(0,_.g)(q);var W=n(9461);let U=({size:e=24,color:t})=>(0,l.jsxs)("svg",{width:e,height:e,viewBox:"0 0 16 17",fill:t,xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.1753 8.69293C13.1753 8.96907 12.9514 9.19293 12.6753 9.19293L3.32479 9.19293C3.04865 9.19293 2.82479 8.96908 2.82479 8.69293C2.82479 8.41679 3.04864 8.19293 3.32479 8.19293L12.6753 8.19293C12.9514 8.19293 13.1753 8.41679 13.1753 8.69293Z"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.03918 13.3287C7.84392 13.1335 7.84392 12.8169 8.03918 12.6216L12.3215 8.33929C12.5168 8.14403 12.8333 8.14403 13.0286 8.33929C13.2239 8.53455 13.2239 8.85114 13.0286 9.0464L8.74629 13.3287C8.55103 13.524 8.23444 13.524 8.03918 13.3287Z"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.03951 4.05707C8.23477 3.8618 8.55136 3.8618 8.74662 4.05706L13.0289 8.33938C13.2242 8.53464 13.2242 8.85122 13.0289 9.04649C12.8337 9.24175 12.5171 9.24175 12.3218 9.04649L8.03951 4.76417C7.84425 4.56891 7.84425 4.25233 8.03951 4.05707Z"})]}),J=({size:e=24,color:t})=>(0,l.jsxs)("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:t,xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.0261 5.23752C3.0261 4.98899 3.22758 4.78752 3.4761 4.78752L13.1742 4.78752C13.4228 4.78752 13.6242 4.98899 13.6242 5.23752C13.6242 5.48605 13.4228 5.68752 13.1742 5.68752L3.4761 5.68752C3.22757 5.68752 3.0261 5.48605 3.0261 5.23752Z"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.55693 2.15689C6.73266 2.33262 6.73266 2.61755 6.55693 2.79328L3.79443 5.55578C3.6187 5.73151 3.33377 5.73151 3.15804 5.55578C2.9823 5.38004 2.9823 5.09511 3.15804 4.91938L5.92053 2.15689C6.09627 1.98115 6.38119 1.98115 6.55693 2.15689Z"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.55682 8.31821C6.38108 8.49395 6.09615 8.49395 5.92042 8.31821L3.15804 5.55578C2.9823 5.38004 2.9823 5.09511 3.15804 4.91938C3.33377 4.74364 3.61859 4.74359 3.79432 4.91932L6.55682 7.68182C6.73255 7.85755 6.73255 8.14248 6.55682 8.31821Z"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.9741 10.7625C12.9741 11.011 12.7726 11.2125 12.5241 11.2125L2.82598 11.2125C2.57745 11.2125 2.37598 11.011 2.37598 10.7625C2.37598 10.514 2.57745 10.3125 2.82598 10.3125L12.5241 10.3125C12.7726 10.3125 12.9741 10.514 12.9741 10.7625Z"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.44327 13.8431C9.26754 13.6674 9.26754 13.3825 9.44327 13.2068L12.2058 10.4443C12.3815 10.2685 12.6664 10.2685 12.8422 10.4443C13.0179 10.62 13.0179 10.9049 12.8422 11.0807L10.0797 13.8431C9.90393 14.0189 9.61901 14.0189 9.44327 13.8431Z"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.44338 7.68182C9.61912 7.50609 9.90404 7.50609 10.0798 7.68182L12.8422 10.4443C13.0179 10.62 13.0179 10.9049 12.8422 11.0807C12.6664 11.2564 12.3816 11.2564 12.2059 11.0807L9.44338 8.31822C9.26765 8.14248 9.26765 7.85756 9.44338 7.68182Z"})]}),K=({departureTrip:e,returnTrip:t,isRoundTrip:n,passengers:r,totalPrice:s,storedDate:i,showPriceAdjustWarning:o=!0})=>(0,l.jsxs)("div",{className:"_container_11k5y_217",children:[(0,l.jsxs)("p",{className:"_cities_11k5y_217",children:[(0,l.jsx)("b",{children:e.origin}),n?(0,l.jsx)(J,{color:"#373737"}):(0,l.jsx)(U,{color:"#373737"}),(0,l.jsx)("b",{children:t.origin})]}),(0,l.jsxs)("p",{className:"_tripDetails_11k5y_217",children:[(0,l.jsxs)("span",{children:[G(e.date).format("DD/MM/YYYY"),(0,l.jsxs)(W.n,{value:n,children:[" - ",G(t.date).format("DD/MM/YYYY")]})]}),(0,l.jsxs)("span",{children:[(0,l.jsx)(V.i,{size:16,color:"#373737"})," ",r.adult," adulto",r.adult>1&&"s",(0,l.jsxs)(W.n,{value:r.child,children:[", ",r.child," crian\xe7a",r.child&&r.child>1&&"s"]}),(0,l.jsxs)(W.n,{value:r.infant,children:[", ",r.infant," beb\xea",r.infant&&r.infant>1&&"s"]})]})]}),(0,l.jsxs)("div",{className:"_price_11k5y_217",children:[(0,l.jsx)("span",{children:"Pre\xe7o total"}),(0,l.jsx)("b",{children:void 0===s?"":new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(s).replace("-","- ")})]}),(0,l.jsxs)("p",{className:"_search_11k5y_274",children:["Pesquisado dia ",G(i).format("DD/MM/YYYY")," \xe0s"," ",G(i).format("HH:mm")]}),(0,l.jsx)(W.n,{value:o,children:(0,l.jsxs)("div",{className:"_priceAdjustWarning_11k5y_217",children:[(0,l.jsx)(Y,{color:"#c12828",size:18}),"O pre\xe7o da passagem pode variar, corra!"]})})]});n(61229);let Q=({onBuyClick:e,onCancelClick:t})=>(0,l.jsxs)("div",{className:"_actionButtons_79jo1_217",children:[(0,l.jsx)(L.B,{onClick:e,label:"Comprar"}),(0,l.jsx)(L.B,{onClick:t,label:"Cancelar",variant:"link",className:"_cancelButton_79jo1_231"})]});n(51448);let X={overlayButton:"_overlayButton_vk27d_217",expanded:"_expanded_vk27d_230",overlayHeader:"_overlayHeader_vk27d_235",overlayHeaderExpanded:"_overlayHeaderExpanded_vk27d_243",modalContent:"_modalContent_vk27d_248",show:"_show_vk27d_256",overlayFuss:"_overlayFuss_vk27d_261"},ee=({onClick:e,isExpanded:t,children:n,header:r})=>(0,l.jsxs)(l.Fragment,{children:[t&&(0,l.jsx)("div",{className:X.overlayFuss,"data-testid":"button-overlay-fuss",onClick:()=>e()}),(0,l.jsxs)("div",{className:(0,d.c)(X.overlayButton,{[X.expanded]:t}),children:[(0,l.jsx)("div",{className:(0,d.c)(X.overlayHeader,{[X.overlayHeaderExpanded]:t}),children:r}),(0,l.jsx)("div",{"aria-hidden":!t,"data-testid":"button-overlay-content",className:(0,d.c)(X.modalContent,{[X.show]:t}),children:n})]})]}),et=({iata:e,deleteFare:t,onBuyClick:n,...r})=>{let[s,i]=(0,c.useState)(!1),[o,a]=(0,c.useState)(!1),{isOpen:d,setIsOpen:u}=D();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(z,{isOpen:s,closeModal:()=>i(!1),deleteFare:()=>{a(!1),t()},Fare:(0,l.jsx)(K,{...r,showPriceAdjustWarning:!1})}),(0,l.jsx)("div",{className:"_mobile_1enjq_217",children:(0,l.jsx)(O,{bottomSheetClassName:"_bottomSheet_1enjq_235",tabContent:(0,l.jsx)(I,{city:r.returnTrip.origin,iata:e,isCalloutOpen:d,onOpenCalloutClick:()=>u(!d),onDeleteFareClick:()=>i(!0)}),children:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(K,{...r,showPriceAdjustWarning:!1}),(0,l.jsx)(Q,{onBuyClick:()=>{u(!1),n()},onCancelClick:()=>u(!1)})]})})}),(0,l.jsx)("div",{className:"_desktop_1enjq_226",children:(0,l.jsx)(ee,{isExpanded:o,onClick:()=>a(e=>!e),header:(0,l.jsx)(I,{city:r.returnTrip.origin,iata:e,isCalloutOpen:o,onOpenCalloutClick:()=>a(e=>!e),onDeleteFareClick:()=>i(!0)}),children:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(K,{...r,showPriceAdjustWarning:!1}),(0,l.jsx)(Q,{onBuyClick:()=>{a(!1),n()},onCancelClick:()=>a(!1)})]})})})]})}},16958:function(e,t,n){"use strict";n.d(t,{z:function(){return a}}),n(6942);var r=n(57437),s=n(4043),i=n(48033);let o={container:"_container_pqe63_1","vdp-palette":"_vdp-palette_pqe63_9","seguro-chip-pallete":"_seguro-chip-pallete_pqe63_117",solid:"_solid_pqe63_239",primary:"_primary_pqe63_242",secondary:"_secondary_pqe63_271",outline:"_outline_pqe63_300",link:"_link_pqe63_363"},a=({leftIcon:e,rightIcon:t,label:n,className:a,theme:l="primary",variant:c="solid",palette:d="vdp-palette",onClick:u=()=>{},...h})=>(0,r.jsxs)("button",{type:"button",className:(0,s.c)(o.container,o[l],o[c],a,o[d]),onClick:e=>{u(e),e.currentTarget.blur()},...h,children:[(0,r.jsx)(i.n,{value:e,children:e}),n,(0,r.jsx)(i.n,{value:t,children:t})]})},20717:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var r=n(56857),s=n(4241);function i(){var e;if(typeof localStorage>"u")return;let t=(0,s.rV)("cartData");return!t||("object"==typeof(e={...t})&&null!==e?["iata","departureTrip","returnTrip","isRoundTrip","passengers","totalPrice","storedDate","pricingSellKey","journeySellKey","searchUrl"].every(t=>void 0!==e[t])?e.returnTrip.date<(0,r.d)().format("YYYY-MM-DD"):(console.error("CartData object has not required properties:",e),1):(console.error("Invalid CartData object:",e),1))?void 0:t}}},function(e){e.O(0,[8385,6230,3321,3831,5961,9473,9873,1915,9043,9607,2050,4168,2973,7493,3991,5434,8676,2633,9810,8780,4145,2100,7374,2646,3606,1959,2075,5988,4934,5528,3361,7268,5008,2041,153,8737,4484,5493,7673,313,6943,8874,3257,295,1500,93,2971,2117,1744],function(){return e(e.s=63276)}),_N_E=e.O()}]);