PageSourceSearch

https://www.vaidepromo.com.br/_next/static/chunks/app/(templates)/(cover)/page-968c32c6368bfe60.js

js vaidepromo.com.br collected 2026-09-25 20:48:10 UTC 9,988 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3291],{63317:function(e,t,n){Promise.resolve().then(n.t.bind(n,72972,23)),Promise.resolve().then(n.t.bind(n,88003,23)),Promise.resolve().then(n.bind(n,81523)),Promise.resolve().then(n.bind(n,70049)),Promise.resolve().then(n.bind(n,45373)),Promise.resolve().then(n.bind(n,14517)),Promise.resolve().then(n.t.bind(n,94935,23)),Promise.resolve().then(n.bind(n,54226)),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,50028,23)),Promise.resolve().then(n.t.bind(n,39648,23)),Promise.resolve().then(n.bind(n,8004)),Promise.resolve().then(n.bind(n,19879)),Promise.resolve().then(n.bind(n,13611)),Promise.resolve().then(n.bind(n,5888)),Promise.resolve().then(n.bind(n,35908)),Promise.resolve().then(n.bind(n,23393)),Promise.resolve().then(n.bind(n,2439)),Promise.resolve().then(n.bind(n,15147)),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,95722,23)),Promise.resolve().then(n.t.bind(n,38717,23)),Promise.resolve().then(n.t.bind(n,80835,23))},54226:function(e,t,n){"use strict";n.d(t,{default:function(){return d}});var r=n(57437),s=n(2265),o=n(62465),i=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=n(18462);let c=(e,t,n,r)=>{var s,o,i,a;return{product_area:"air",has_checkout_fare:t,has_journey_sell_key:!!e.journeySellKey,has_pricing_sell_key:!!e.pricingSellKey,origin_city:null===(s=e.departureTrip)||void 0===s?void 0:s.origin,destination_city:null===(o=e.returnTrip)||void 0===o?void 0:o.origin,destination_airport:e.iata,departure_date:null===(i=e.departureTrip)||void 0===i?void 0:i.date,return_date:null===(a=e.returnTrip)||void 0===a?void 0:a.date,search_url:e.searchUrl,target_url:n,target:r}};var d=()=>{let[e,t]=(0,s.useState)(null),[n,d]=(0,s.useState)(void 0),u=(0,s.useRef)(null),_=(e,t,n,r)=>{let s="".concat(e.journeySellKey||"",":").concat(e.pricingSellKey||"",":").concat(r||"");u.current!==s&&(u.current=s,(0,l.Wf)(c(e,t,n,r)))},h=()=>{let e=(0,i.T)();if(void 0!=e&&new Date(e.departureTrip.date)<=new Date){localStorage.removeItem("cartData");return}d(e)},v=async()=>{if(!n||e)return;let r=new Date;if(new Date(n.departureTrip.date)<=r)return;let s=window.location.search;s=s.includes("?")?s.concat("&carthistory=1"):s.concat("?carthistory=1");try{var o;let e=await a(n.journeySellKey,n.pricingSellKey);if(e&&Object.keys(e).length>0&&(null===(o=e.errors)||void 0===o?void 0:o.length)===0){let r="".concat("https://www.vaidepromo.com.br","/passagens-aereas/pagamento/").concat(n.journeySellKey,"/").concat(n.pricingSellKey).concat(s);_(n,!0,void 0,"checkout"),t({...n,totalPrice:e.pricing.total,onBuyClick:()=>{(0,l.vY)(c(n,!0,void 0,"checkout")),window.location.href=r}})}else{let e="".concat("https://www.vaidepromo.com.br").concat(n.searchUrl).concat(s);_(n,!1,e,"search"),t({...n,onBuyClick:()=>{(0,l.vY)(c(n,!1,e,"search")),window.location.href=e}})}}catch(r){let e="".concat("https://www.vaidepromo.com.br").concat(n.searchUrl).concat(s);_(n,!1,e,"search"),t({...n,onBuyClick:()=>{(0,l.vY)(c(n,!1,e,"search")),window.location.href=e}})}};return((0,s.useEffect)(()=>{h()},[]),(0,s.useEffect)(()=>{v()},[n]),(0,s.useEffect)(()=>{!e&&"undefined"!=typeof document&&document.body&&(console.log("Setting overflow to 'auto'"),document.body.style.overflow="auto")},[e]),e)?(0,r.jsx)("div",{children:(0,r.jsx)(o.h,{...e,deleteFare:()=>{e&&(0,l.RY)(c(e,!!e.totalPrice)),localStorage.removeItem("cartData"),t(null)}})}):null}},13611:function(e,t,n){"use strict";n.r(t);var r=n(57437),s=n(2265),o=n(90749),i=n(69899),a=n(91910),l=n(78705),c=n(27105),d=n.n(c);t.default=()=>{let{width:e}=(0,a.i)(),t=e<l.Su,{user:n}=(0,o.T)(),[c,u]=(0,s.useState)(!1);return((0,s.useEffect)(()=>{let e=setTimeout(()=>{u(!0)},1e4);return()=>clearTimeout(e)},[]),t&&c&&!n)?(0,r.jsx)(i.w,{className:d().dropdown}):null}},35908:function(e,t,n){"use strict";n.d(t,{SearchHistory:function(){return S}});var r=n(57437),s=n(27648),o=n(12197),i=n.n(o),a=n(36760),l=n.n(a),c=n(56314),d=n(96446),u=n(78526),_=n(77764),h=n.n(_),v=n(71096),m=n.n(v);let p=e=>{var t,n;let{search:s}=e,o="DD/MM/YYYY";return(0,r.jsxs)("div",{className:h().title,children:[(0,r.jsx)("span",{className:h().titleText,children:null==s?void 0:s.destination}),(0,r.jsxs)("span",{className:h().datesText,children:[null===(t=m()(null==s?void 0:s.departureDate))||void 0===t?void 0:t.format(o)," - ",null===(n=m()(null==s?void 0:s.returnDate))||void 0===n?void 0:n.format(
1o)]})]})};var y=n(79571),f=n.n(y);function x(e){let t=e.match(/^([^,]+).*?\((\w+)\)$/);if(t){let e=t[1].trim(),n=t[2].trim();return"".concat(e," (").concat(n,")")}return e}let b=e=>{let{search:t}=e,n="DD/MM/YYYY";return(0,r.jsxs)("div",{className:f().title,children:[(0,r.jsxs)("section",{className:f().topSection,children:[(0,r.jsx)("span",{className:f().titleText,children:x(null==t?void 0:t.arrival)}),(0,r.jsxs)("span",{className:f().departingFrom,children:["Saindo de ",x(null==t?void 0:t.departure)]})]}),(0,r.jsxs)("section",{className:f().bottomSection,children:[(0,r.jsxs)("span",{className:f().datesText,children:[m()(null==t?void 0:t.departureDate).format(n)," ",(null==t?void 0:t.returnDate)?"- ".concat(m()(null==t?void 0:t.returnDate).format(n)):""]}),(0,r.jsxs)("span",{className:f().datesText,children:[null==t?void 0:t.adults," ",(null==t?void 0:t.adults)>1?"adultos":"adulto"]})]})]})};var w=n(364),g=n(27517),j=n(50872);let S=e=>{let{className:t}=e,n=(0,w.rV)(j.f)||[],o=m()().startOf("day"),a=n.filter(e=>{var t;if(!(null==e?void 0:null===(t=e.search)||void 0===t?void 0:t.departureDate))return!1;let n=m()(e.search.departureDate).startOf("day");return n.isAfter(o)||n.isSame(o)});if((null==a?void 0:a.length)===0)return;let _=[...a.slice(0,4),...Array(Math.max(0,4-a.length)).fill(null)],h=null==_?void 0:_.map((e,t)=>{var n,o;let a;if(!e)return(0,r.jsx)("div",{className:l()(i().searchContainer,i().emptySearch)},t);let _={...null==e?void 0:e.search,departureDate:m()(null==e?void 0:null===(n=e.search)||void 0===n?void 0:n.departureDate),returnDate:m()(null==e?void 0:null===(o=e.search)||void 0===o?void 0:o.returnDate)};return(0,r.jsxs)(s.default,{href:(a="",a=window.location.search.includes("?")?"&searchhistory=1":"?searchhistory=1",a=(null==e?void 0:e.type)==="hotel"?function(e){let{returnDate:t,departureDate:n,destination:r,destinationKey:s,rooms:o}=e,i=o.map(e=>{let t=e.adults,n=e.childAges.join(",");return"".concat(t).concat(n?","+n:"")}).join("|"),a=window.location.search;return"/hoteis/pesquisa/".concat(null==n?void 0:n.format("YYYY-MM-DD"),"/").concat(null==t?void 0:t.format("YYYY-MM-DD"),"/").concat(s,"/").concat(r,"/").concat(o.length,"/").concat(i,"/").concat(a)}(_)+a:(0,g.Pr)(_)+a),target:"_blank",rel:"noopener noreferrer",className:i().searchContainer,title:(null==e?void 0:e.type)==="hotel"&&"destination"in _?"Hospedagens em ".concat(_.destination):(null==e?void 0:e.type)==="aereo"&&"arrival"in _?"Passagens para ".concat(_.arrival):"Busca recente",children:[(0,r.jsxs)("div",{className:i().topCard,children:[(0,r.jsx)(P,{children:(null==e?void 0:e.type)==="hotel"?(0,r.jsx)(c.Y,{size:32,color:"white"}):(0,r.jsx)(d.e,{size:32})}),(0,r.jsxs)("div",{className:i().content,children:[(null==e?void 0:e.type)==="hotel"&&(0,r.jsx)(p,{search:null==e?void 0:e.search}),(null==e?void 0:e.type)==="aereo"&&(0,r.jsx)(b,{search:null==e?void 0:e.search})]})]}),(0,r.jsxs)("div",{className:i().link,children:[(0,r.jsx)("span",{children:"Continuar pesquisa"}),(0,r.jsx)(u._,{color:"#005AA3",size:24})]})]},t)});return(0,r.jsxs)("div",{className:i().section,children:[(0,r.jsx)("h2",{className:i().sectionTitle,children:"Suas buscas recentes"}),(0,r.jsx)("div",{className:l()(i().container,t),children:h})]})},P=e=>{let{children:t}=e;return(0,r.jsx)("div",{className:i().iconContainer,children:t})}},94935:function(e){e.exports={container:"styles_container__KmPli",benefit:"styles_benefit__OnWsY"}},52184:function(e){e.exports={container:"styles_container__kEQtP",imageContainer:"styles_imageContainer__KBwq1"}},50028:function(e){e.exports={user:"styles_user__gNVCT",reviewContainer:"styles_reviewContainer__zjR29",containerGoogleSummary:"styles_containerGoogleSummary__5YplU",button:"styles_button__zOQZZ",content:"styles_content__Mu1pK",wrapper:"styles_wrapper__KZD0r",description:"styles_description__n2eUX",username:"styles_username__W_ZxC",profile:"styles_profile__SUbya"}},39648:function(e){e.exports={summaryStars:"styles_summaryStars__U4JxD",googleSummary:"styles_googleSummary__rNG1o",summaryRating:"styles_summaryRating__SXBxw",summaryTotal:"styles_summaryTotal__VzyES"}},27105:function(e){e.exports={modal:"styles_modal__gsd1A",dropdown:"styles_dropdown__6IpyD"}},79571:function(e){e.exports={title:"styles_title__51HMy",topSection:"styles_topSection__equsL",titleText:"styles_titleText__BTM6i",departingFrom:"styles_departingFrom__e83iz",bottomSection:"styles_bottomSection__qeqwb",datesText:"styles_datesText__19hl_"}},77764:function(e){e.exports={title:"styles_title__P_9hd",titleText:"styles_titleText__Q7m5W",datesText:"styles_datesText__Y_oP1"}},12197:function(e){e.exports={container:"styles_container__t716j",section:"styles_section__rAAtG",sectionTitle:"styles_sectionTitle__fDAdI",searchContainer:"styles_searchContainer__v6bvT",topCard:"styles_topCard__Q3r09",content:"styles_content__cSO64",link:"styles_link__VQteI",emptySearch:"styles_emptySearch__ptobL",iconContainer:"styles_iconContainer__Up852"}},80835:function(e){e.exports={descriptionStars:"styles_descriptionStars__wUJ60"}}},function(e){e.O(0,[4081,5922,5597,1136,2033,1299,5522,9707,7037,7569,9170,7814,9037,3746,8837,3528,2510,2287,4168,5086,3831,8432,740,7119,203,5064,6891,2892,2435,5810,7352,3838,6737,1464,5877,2241,4748,2971,2117,1744],function(){return e(e.s=63317)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.