PageSourceSearch

https://www.plataforma10.com.br/_next/static/chunks/02aoahujm7uh6.js

js plataforma10.com.br collected 2026-10-08 20:28:10 UTC 28,410 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,214861,58364,e=>{"use strict";var t=e.i(382216),r=e.i(522876);function n(e,t=0,i=1){return(0,r.default)(e,t,i)}function i(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function a(e){let r;if(e.type)return e;if("#"===e.charAt(0))return a(i(e));let n=e.indexOf("("),o=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(o))throw Error((0,t.default)(9,e));let l=e.substring(n+1,e.length-1);if("color"===o){if(r=(l=l.split(" ")).shift(),4===l.length&&"/"===l[3].charAt(0)&&(l[3]=l[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw Error((0,t.default)(10,r))}else l=l.split(",");return{type:o,values:l=l.map(e=>parseFloat(e)),colorSpace:r}}function o(e){let{type:t,colorSpace:r}=e,{values:n}=e;return -1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function l(e){let{values:t}=e=a(e),r=t[0],n=t[1]/100,i=t[2]/100,l=n*Math.min(i,1-i),s=(e,t=(e+r/30)%12)=>i-l*Math.max(Math.min(t-3,9-t,1),-1),u="rgb",d=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(u+="a",d.push(t[3])),o({type:u,values:d})}function s(e){let t="hsl"===(e=a(e)).type||"hsla"===e.type?a(l(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){if(e=a(e),t=n(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return o(e)}function d(e,t){if(e=a(e),t=n(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return o(e)}function c(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function f(e){return parseFloat(e)}e.s(["alpha",0,function(e,t){return e=a(e),t=n(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,o(e)},"darken",0,u,"decomposeColor",0,a,"emphasize",0,function(e,t=.15){return s(e)>.5?u(e,t):d(e,t)},"getContrastRatio",0,function(e,t){let r=s(e),n=s(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},"getLuminance",0,s,"hexToRgb",0,i,"hslToRgb",0,l,"lighten",0,d,"recomposeColor",0,o,"rgbToHex",0,function(e){if(0===e.indexOf("#"))return e;let{values:t}=a(e);return`#${t.map((e,t)=>{let r;return 1===(r=(3===t?Math.round(255*e):e).toString(16)).length?`0${r}`:r}).join("")}`}],214861),e.s(["alignProperty",0,function({size:e,grid:t}){let r=e-e%t,n=r+t;return e-r<n-e?r:n},"convertLength",0,function(e){return(t,r)=>{let n=c(t);if(n===r)return t;let i=f(t);"px"!==n&&("em"===n?i=f(t)*f(e):"rem"===n&&(i=f(t)*f(e)));let a=i;if("px"!==r)if("em"===r)a=i/f(e);else{if("rem"!==r)return t;a=i/f(e)}return parseFloat(a.toFixed(5))+r}},"fontGrid",0,function({lineHeight:e,pixels:t,htmlFontSize:r}){return t/(e*r)},"getUnit",0,c,"isUnitless",0,function(e){return String(parseFloat(e)).length===String(e).length},"responsiveProperty",0,function({cssProperty:e,min:t,max:r,unit:n="rem",breakpoints:i=[600,900,1200],transform:a=null}){let o={[e]:`${t}${n}`},l=(r-t)/i[i.length-1];return i.forEach(r=>{let i=t+l*r;null!==a&&(i=a(i)),o[`@media (min-width:${r}px)`]={[e]:`${Math.round(1e4*i)/1e4}${n}`}}),o},"toUnitless",0,f],58364)},757022,e=>{"use strict";var t=e.i(140671),r=e.i(419389);e.s(["default",0,function({props:e,name:n,defaultTheme:i,themeId:a}){let o=(0,r.default)(i);return a&&(o=o[a]||o),(0,t.default)({theme:o,name:n,props:e})}])},591772,e=>{"use strict";var t=e.i(703316);e.s(["createTheme",()=>t.default])},309885,(e,t,r)=>{"use strict";function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}
1Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return n}})},667585,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return i}});let n=e.r(132061);function i({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new n.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},869093,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return u}});let n=e.r(843476),i=e.r(271645),a=e.r(667585),o=e.r(652157);function l(e){return{default:e&&"default"in e?e.default:e}}let s={loader:()=>Promise.resolve(l(()=>null)),loading:null,ssr:!0},u=function(e){let t={...s,...e},r=(0,i.lazy)(()=>t.loader().then(l)),u=t.loading;function d(e){let l=u?(0,n.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,s=!t.ssr||!!t.loading,d=s?i.Suspense:i.Fragment,c=t.ssr?(0,n.jsxs)(n.Fragment,{children:["u"<typeof window?(0,n.jsx)(o.PreloadChunks,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(a.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(d,{...s?{fallback:l}:{},children:c})}return d.displayName="LoadableComponent",d}},770703,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}});let n=e.r(555682)._(e.r(869093));function i(e,t){let r={};"function"==typeof e&&(r.loader=e);let i={...r,...t};return(0,n.default)({...i,modules:i.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},652157,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return s}});let n=e.r(843476),i=e.r(174080),a=e.r(563599),o=e.r(309885),l=e.r(543369);function s({moduleIds:e}){if("u">typeof window)return null;let t=a.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;r.push(...e)}}if(0===r.length)return null;let u=(0,l.getAssetTokenQuery)();return(0,n.jsx)(n.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,o.encodeURIPath)(e)}${u}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,i.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},290571,e=>{"use strict";var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)},r=function(){return(r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError,e.s(["__assign",()=>r,"__awaiter",0,function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function o(e){try{s(n.next(e))}catch(e){a(e)}}function l(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,l)}s((n=n.apply(e,t||[])).next())})},"__extends",0,function(e,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)},"__generator",0,function(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=l(0),o.throw=l(1),o.return=l(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
1function l(l){return function(s){var u=[l,s];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},"__read",0,function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},"__rest",0,function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},"__spreadArray",0,function(e,t,r){if(r||2==arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},"__values",0,function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}])},32592,e=>{"use strict";var t=e.i(843476),r=e.i(770703);let n=(0,r.default)(()=>e.A(174559).then(e=>({default:e.AmplitudeUserTracker})),{loadableGenerated:{modules:[470796]},ssr:!1}),i=(0,r.default)(()=>e.A(792600),{loadableGenerated:{modules:[421534]},ssr:!1}),a=(0,r.default)(()=>e.A(29424),{loadableGenerated:{modules:[605783]},ssr:!1}),o=(0,r.default)(()=>e.A(232538),{loadableGenerated:{modules:[453051]},ssr:!1}),l=(0,r.default)(()=>e.A(527121),{loadableGenerated:{modules:[91392]},ssr:!1}),s=(0,r.default)(()=>e.A(1197),{loadableGenerated:{modules:[620062]},ssr:!1}),u=(0,r.default)(()=>e.A(291786),{loadableGenerated:{modules:[547397]},ssr:!1}),d=(0,r.default)(()=>e.A(625436),{loadableGenerated:{modules:[783638]},ssr:!1}),c=(0,r.default)(()=>e.A(134416),{loadableGenerated:{modules:[292505]},ssr:!1}),f=(0,r.default)(()=>e.A(288929),{loadableGenerated:{modules:[421272]},ssr:!1}),p=(0,r.default)(()=>e.A(214129),{loadableGenerated:{modules:[510101]},ssr:!1}),m=(0,r.default)(()=>e.A(751344),{loadableGenerated:{modules:[654044]},ssr:!1}),g=(0,r.default)(()=>e.A(977118),{loadableGenerated:{modules:[674459]},ssr:!1}),y=(0,r.default)(()=>e.A(309719),{loadableGenerated:{modules:[253823]},ssr:!1}),h=(0,r.default)(()=>e.A(477378),{loadableGenerated:{modules:[19891]},ssr:!1}),v=(0,r.default)(()=>e.A(380940),{loadableGenerated:{modules:[320312]},ssr:!1}),b=(0,r.default)(()=>e.A(272304),{loadableGenerated:{modules:[723321]},ssr:!1});e.s(["default",0,function({hotjarId:e,showCookieConsent:r}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a,{}),(0,t.jsx)(d,{}),(0,t.jsx)(i,{}),(0,t.jsx)(h,{}),(0,t.jsx)(v,{}),(0,t.jsx)(n,{}),(0,t.jsx)(y,{}),(0,t.jsx)(b,{}),(0,t.jsx)(l,{}),(0,t.jsx)(s,{}),r&&(0,t.jsx)(o,{}),(0,t.jsx)(u,{}),(0,t.jsx)(c,{hotjarId:e}),(0,t.jsx)(f,{}),(0,t.jsx)(p,{}),(0,t.jsx)(m,{}),(0,t.jsx)(g,{})]})}])},659093,e=>{"use strict";var t=e.i(843476),r=e.i(770703),n=e.i(572048);let i=(0,r.default)(()=>e.A(895187),{loadableGenerated:{modules:[430302]},ssr:!1});e.s(["default",0,()=>{let{isEnabled:e}=(0,n.useDevTools)();return e?(0,t.jsx)(i,{}):null}])},875095,e=>{"use strict";var t=e.i(126647);let r=(e,r,n)=>!e.reviewSubmitted&&!e.reviewSuppressed&&!e.reviewDismissed&&new Date(e.arrivalDate)<r&&e.saleID&&e.originId&&e.destinationId&&e.transporterId&&!n[(0,t.reviewKey)(e.saleID,!1)]?{email:e.email,saleId:e.saleID,origin:e.origin,destination:e.destination,originId:e.originId,destinationId:e.destinationId,transporterId:e.transporterId,transporterName:e.transporterName||"",quality:e.quality,departureDate:e.departureDate,arrivalDate:e.arrivalDate,isReturnLeg:!1}:null,n=(e,r,n)=>e.isReturn&&e.returnLeg&&!e.returnReviewSubmitted&&!e.returnReviewSuppressed&&!e.returnReviewDismissed&&new Date(e.returnLeg.arrivalDate)<r&&e.saleID&&e.returnLeg.originId&&e.returnLeg.destinationId&&e.returnLeg.transporterId&&!n[(0,t.reviewKey)(e.saleID,!0)]?{email:e.email,saleId:e.saleID,origin:e.returnLeg.origin,destination:e.returnLeg.destination,originId:e.returnLeg.originId,destinationId:e.returnLeg.destinationId,transporterId:e.returnLeg.transporterId,transporterName:e.returnLeg.transporterName||"",quality:e.returnLeg.quality,departureDate:e.returnLeg.departureDate,arrivalDate:e.returnLeg.arrivalDate,isReturnLeg:!0}:null;e.s(["deriveAllEligibleLegs",0,(e,t,i)=>[r(e,t,i),n(e,t,i)].filter(e=>null!==e),"deriveEligibleLegFromLastPurchase",0,(e,t,i)=>r(e,t,i)??n(e,t,i)])},373904,e=>{"use strict";e.i(247167);var t=e.i(843476),r=e.i(760573),n=e.i(271645),i=e.i(189911);let a=(0,n.createContext)(null);function o(){{let e=window.location.hostname;return!(e.includes("localhost")||(0,i.isFeatureBranch)(e)||e.startsWith("feature-"))}}e.s(["default",0,function({children:e,fallbackApiKey:i,siteConfig:l}
1){let s=(0,n.useRef)(!0),[u,d]=(0,n.useState)(()=>{let e=o();if(l?.tracking?.amplitude){let t=e?l.tracking.amplitude.production:l.tracking.amplitude.testing;return{apiKey:t.apiKey,secretKey:t.secretKey||"",environment:e?"production":"testing",source:"siteConfig"}}return i?{apiKey:i,secretKey:"",environment:e?"production":"testing",source:"env"}:{apiKey:"6d2ca00d0e47fe652c1519cc8761724b",secretKey:"",environment:e?"production":"testing",source:"env"}});return(0,n.useEffect)(()=>{let e;if(!s.current)return;s.current=!1;let t=o();(async()=>{if(l?.tracking?.amplitude){let r=t?l.tracking.amplitude.production:l.tracking.amplitude.testing;e={apiKey:r.apiKey,secretKey:r.secretKey,environment:t?"production":"testing",source:"siteConfig"}}else e={apiKey:i||"6d2ca00d0e47fe652c1519cc8761724b",secretKey:"",environment:t?"production":"testing",source:"env"};d(e)})()},[l,i]),(0,t.jsx)(a.Provider,{value:u,children:(0,t.jsx)(r.AmplitudeProvider,{apiKey:u.apiKey,sessionReplayConfig:l?.sessionReplay,children:e})})},"useSmartAmplitude",0,function(){let e=(0,n.useContext)(a);if(!e)throw Error("useSmartAmplitude must be used within a SmartAmplitudeProvider");return e}])},232438,e=>{"use strict";var t=e.i(744705);let r=["/","/ferries"],n=["/pasajes-en-micro/","/pasajes-en-micro/[desde]","/pasajes-en-micro/[desde]/[destino]","/desde-[origen]/pasajes-en-micro-a-[destino]","/terminales-de-omnibus","/empresas-de-micro/[companyProfile]","/rutas-populares","/destinos-destacados","/p10-corporativo","/p10-para-agencias","/p10-para-prestadores","/beneficio-estudiantes"],i=(e,r)=>{let n=t.routing.pathnames[e];return n?"string"==typeof n?n:n[r]??e:e},a=e=>e.length>1&&e.endsWith("/")?e.slice(0,-1):e,o=e=>{let t=e.indexOf("[");return a(-1===t?e:e.slice(0,t))},l=null;e.s(["isWebVitalsScopedPath",0,e=>{if(!e)return!1;let s=a(e);return!!r.includes(s)||(()=>{if(l)return l;let e=new Set;for(let r of t.routing.locales)for(let t of n){let n=o(i(t,r));n.length>1&&e.add(n)}return l=[...e]})().some(e=>s.startsWith(e))}])},559794,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(713975),i=e.i(189911),a=e.i(370024);let o=(0,r.createContext)({isEnabled:!1,isOpen:!1,selectedCountry:"",whiteLabels:[],selectedWhiteLabel:"",togglePanel:()=>{},closePanel:()=>{},setSelectedCountry:()=>{},setSelectedWhiteLabel:()=>{},applyCountry:()=>{},applyWhiteLabel:()=>{},clearAll:()=>{}}),l=e=>{let t=a.configCountry[e];if(!t)return;let r=t.locale[0].defaultLocale,i=t.config[n.ConfigTypeEnum.CURRENCY_VALUE]??"",o=encodeURIComponent(JSON.stringify({codigo:i,codigoAMostrar:i}));document.cookie=`NEXT_COUNTRY=${e}; path=/; max-age=31536000`,document.cookie=`NEXT_LOCALE=${r}; path=/; max-age=31536000`,document.cookie=`moneda=${o}; path=/; max-age=31536000`},s=e=>{let t=e?.countryCode?.toLowerCase();return t&&t in a.configCountry?t:void 0};e.s(["DevToolsContext",0,o,"DevToolsProvider",0,({children:e})=>{let[n,u]=(0,r.useState)(!1),[d,c]=(0,r.useState)(!1),[f,p]=(0,r.useState)(""),[m,g]=(0,r.useState)([]),[y,h]=(0,r.useState)("");return(0,r.useEffect)(()=>{let e,t,r,n=(e="1"===new URLSearchParams(window.location.search).get("enabled_dev_tools"),t=document.cookie.split(";").some(e=>"devtools_enabled=1"===e.trim()),(0,i.isFeatureBranch)()||e||t);u(n),n&&(document.cookie="devtools_enabled=1; path=/"),p((r=document.cookie.split(";").map(e=>e.trim()).find(e=>e.startsWith("NEXT_COUNTRY="))?.split("=")[1])&&a.configCountry[r]?r:""),h(new URLSearchParams(window.location.search).get("preview_id")??"")},[]),(0,r.useEffect)(()=>{if(!n)return;let e=!1;return(async()=>{try{let t=await fetch("/api/sites/preview-dev");if(!t.ok)return;let r=await t.json();if(e)return;g(Array.isArray(r)?r:[])}catch{}})(),()=>{e=!0}},[n]),(0,t.jsx)(o.Provider,{value:{isEnabled:n,isOpen:d,selectedCountry:f,whiteLabels:m,selectedWhiteLabel:y,togglePanel:()=>c(e=>!e),closePanel:()=>c(!1),setSelectedCountry:p,setSelectedWhiteLabel:e=>{h(e);let t=s(m.find(t=>t.previewId===e));t&&p(t)},applyCountry:()=>{if(f){if(!a.configCountry[f])return void p("");l(f),window.location.reload()}},applyWhiteLabel:()=>{let e;if(!y)return;let t=s(m.find(e=>e.previewId===y));t&&l(t),(e=new URL(window.location.href)).searchParams.set("utm_source","p10-devtools"),e.searchParams.set("utm_medium","white-label"),e.searchParams.set("enabled_dev_tools","1"),e.searchParams.set("preview_id",y),window.location.href=e.toString()},clearAll:()=>{document.cookie="NEXT_COUNTRY=; path=/; max-age=0",document.cookie="NEXT_LOCALE=; path=/; max-age=0",document.cookie="moneda=; path=/; max-age=0",document.cookie="devtools_ff_overrides=; path=/; max-age=0",document.cookie="devtools_pase_p10_scenario=; path=/; max-age=0",document.cookie="devtools_enabled=; path=/; max-age=0",u(!1),c(!1);let e=new URL(window.location.href);e.searchParams.delete("enabled_dev_tools"),e.searchParams.delete("utm_source"),e.searchParams.delete("utm_medium"),e.searchParams.delete("preview_id"),e.searchParams.set("enabled_dev_tools","0"),window.location.href=e.toString()}},children:e})}])},507843,8011,947740,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(283599),i=e.i(948148),a=e.i(493606),o=e.i(932341),l=e.i(135132),s=e.i(713975),u=e.i(89636),d=e.i(484086),c=e.i(875095),f=e.i(494182),p=e.i(822315);let m=e=>{if("string"!=typeof e)return null;let t=/^\d{4}-\d{2}-\d{2}/.exec(e.trim());if(!t)return null;let r=(0,p.default)(t[0]);return r.isValid()&&r.format("YYYY-MM-DD")===t[0]?r:null};e.s(["toServiceCalendarDate",0,m],8011);var g=e.i(710698),y=e.i(154206),h=e.i(520418),v=e.i(914234);let b=new Set(["stay22-accommodation","stay22-car-rental","return-trip"]),w=e=>"string"==typeof e&&b.has(e),_=(e,t)=>
1"return-trip"===e||t.isArgentina&&!t.isWhiteLabel,S=e=>!!e.link||!!e.externalUrl||"trip-review"===e.type||"transfer-cross-sell"===e.type||w(e.type);e.s(["isLocalNotificationType",0,w,"isLocalNotificationTypeEnabled",0,_,"staysUnreadUntilClicked",0,S],947740);var x=e.i(913370),I=e.i(897443);let j=null,D=[],O=()=>{let e=(0,x.readLocalNotifications)(),t=JSON.stringify(e);return t!==j&&(j=t,D=e),D},P=()=>D,C=()=>!1,L=async(e,t,r)=>{let n="https://p10-stops-api-net.prd.plataforma10.com";if(n&&e&&Number.isFinite(t))try{let i,o=await (0,a.unifiedFetcher)({url:`${n}/stops/stops/search?term=${encodeURIComponent(e)}&idCountry=${r}`,method:"GET",logOptions:{name:"fetchStopGeoById",component:"stopSearch",severity:"warning"}}),l=(i=o?.items,i?.find(e=>e.id===t&&!!e.latitude&&!!e.longitude));if(!l)return;return{latitude:l.latitude,longitude:l.longitude,countryId:l.countryId}}catch{return}},A="p10:notifications:read-ids",N=(0,r.createContext)(void 0),R=e=>{try{window.localStorage.setItem(A,JSON.stringify(e))}catch{}},T=async([e,t,r])=>{try{return await (0,a.unifiedFetcher)({url:e,method:"POST",body:t?{email:t}:{insiderId:r},logOptions:{name:"fetchNotifications",component:"NotificationsContext",severity:"warning"}})??[]}catch{return[]}},E={notifications:[],readIds:new Set,unreadCount:0,isOpen:!1,enabled:!1,isLoading:!1,hasError:!1,openDrawer:()=>void 0,closeDrawer:()=>void 0,markAsRead:()=>void 0};e.s(["NotificationsProvider",0,({children:e,enabled:a=!0})=>{let{state:{userProfile:p,isLogged:b}}=(0,o.useAuth)(),w=(0,i.useTranslations)("Notifications"),{configCountry:j,whiteLabelIdSite:D}=(0,l.useConfig)(),E=p?.email??null,[M,k]=(0,r.useState)(new Set),[U,$]=(0,r.useState)(!1),[G,F]=(0,r.useState)(null),[Y,K]=(0,r.useState)(null),[W,B]=(0,r.useState)(null),X=(0,f.useSubmittedReviews)(),q=(0,r.useSyncExternalStore)(x.subscribeLocalNotifications,O,P),H=j?.country===s.CountryTypeEnum.ARGENTINA,J=!!D;(0,r.useEffect)(()=>{if(!a||!b||E)return void K(null);let e=!0;return(0,d.getUserEmailCookie)().then(t=>{e&&K(t)}),()=>{e=!1}},[a,b,E]);let V=E??Y;(0,r.useEffect)(()=>{if(!a)return;let e=(0,u.getInsiderAnonymousId)();if(e)return void F(e);let t=Date.now(),r=setInterval(()=>{let e=(0,u.getInsiderAnonymousId)();e?(F(e),clearInterval(r)):Date.now()-t>=1e4&&clearInterval(r)},300);return()=>clearInterval(r)},[a]);let z="/api/notifications/message-center",Q=a&&V?[z,V,null]:a&&G?[z,null,G]:null,{data:Z,isLoading:ee,error:et}=(0,n.default)(Q,T,{revalidateOnFocus:!1,revalidateOnReconnect:!1}),er=(0,r.useSyncExternalStore)(I.subscribeUpcomingTripsSync,I.isUpcomingTripsSyncInFlight,C),en=ee||er;(0,r.useEffect)(()=>{a&&k(new Set((()=>{try{let e=window.localStorage.getItem(A);if(!e)return[];let t=JSON.parse(e);return Array.isArray(t)?t.filter(e=>"string"==typeof e):[]}catch{return[]}})()))},[a]),(0,r.useEffect)(()=>{if(!a||!H)return;let e=!0;return(0,d.getLastPurchaseCookie)().then(t=>{e&&B(t)}),()=>{e=!1}},[a,H]);let ei=(0,r.useMemo)(()=>{if(!a||!H||!W)return[];let e=new Date;return(0,c.deriveAllEligibleLegs)(W,e,X).filter(t=>e.getTime()-new Date(t.arrivalDate).getTime()<=2592e6).map(e=>({id:`trip-review_${e.saleId}_${e.isReturnLeg?"return":"outbound"}`,type:"trip-review",title:w("trip_review_title",{origin:e.origin,destination:e.destination}),description:w("trip_review_description"),date:e.arrivalDate,tripReview:e}))},[a,H,W,X,w]),ea=(0,r.useMemo)(()=>a&&H&&W?((e,t)=>{let r;if(!e)return[];let n=Number.isInteger(e.totalPassenger)&&(e.totalPassenger??0)>0?e.totalPassenger:1;return(r=[{arrivalStopId:e.destinationId,departureDate:e.departureDate,arrivalDate:e.arrivalDate,isReturnLeg:!1,refunded:!!e.reviewSuppressed}],e.isReturn&&e.returnLeg&&r.push({arrivalStopId:e.returnLeg.destinationId,departureDate:e.returnLeg.departureDate,arrivalDate:e.returnLeg.arrivalDate,isReturnLeg:!0,refunded:!!e.returnReviewSuppressed}),r).flatMap(r=>{var i;let a;if(r.refunded)return[];let o=(i=r.departureDate,Number.isNaN(a=new Date(i).getTime())?null:a-t.getTime());if(null===o||o<=0||o>864e5)return[];let l=(0,g.getTransferRoutesForArrival)(r.arrivalStopId);if(0===l.length)return[];let s=m(r.arrivalDate)??m(r.departureDate);if(!s)return[];let u=new Date(new Date(r.departureDate).getTime()-864e5).toISOString(),d=r.isReturnLeg?"return":"outbound";return l.map(t=>({id:`transfer-cross-sell_${e.saleID??"no-sale"}_${d}_${t.originId}-${t.destinationId}`,route:t,href:((e,t,r)=>{if(e.useBusSearch){let n=[(0,h.toSearchUrlSlug)(e.originName),(0,h.toSearchUrlSlug)(e.destinationName),e.originId,e.destinationId,t.format("DD-MM-YYYY"),"_",r.toString(),"0/0"].join("/");return`/servicios/buscar-pasajes/${n}`}return(0,y.buildTransferSearchHref)({originId:e.originId.toString(),originName:e.originName,destinationId:e.destinationId.toString(),destinationName:e.destinationName,departureDate:t,returnDate:null,passengers:r})})(t,s,n),notifiedAt:u,isReturnLeg:r.isReturnLeg}))})})(W,new Date).map(e=>({id:e.id,type:"transfer-cross-sell",title:w("transfer_cross_sell_title",{origin:e.route.shortOriginName,destination:e.route.shortDe
1stinationName}),description:w("transfer_cross_sell_description"),date:e.notifiedAt,transferHref:e.href,transferRoute:{originName:e.route.originName,destinationName:e.route.destinationName}})):[],[a,H,W,w]);(0,r.useEffect)(()=>{a&&(0,x.pruneExpiredLocalNotifications)()},[a]);let eo=(0,r.useMemo)(()=>a?q.filter(e=>_(e.type,{isArgentina:H,isWhiteLabel:J})).map(e=>((e,t)=>{let{trip:r}=e,n={origin:r.origin.name,destination:r.destination.name},i={id:e.id,type:e.type,date:e.date,local:{saleId:r.saleId,originName:r.origin.name,destinationName:r.destination.name}},a=m(r.outboundArrival)??void 0,o=m(r.returnDeparture)??void 0,l={destinationName:r.destination.name,country:r.destination.country,latitude:r.destination.latitude,longitude:r.destination.longitude,checkin:a,checkout:o};switch(e.type){case"stay22-accommodation":return{...i,title:t("stay22_accommodation_title",n),description:t("stay22_accommodation_description",n),externalUrl:(0,v.buildStay22AccommodationUrl)({...l,totalPassengers:r.passengers,campaign:"notification_hotels"})};case"stay22-car-rental":return{...i,title:t("stay22_car_rental_title",n),description:t("stay22_car_rental_description",n),externalUrl:(0,v.buildStay22CarRentalUrl)({...l,campaign:"notification_car"})};case"return-trip":return{...i,title:t("return_trip_title",n),description:t("return_trip_description",n),returnTrip:{originName:r.destination.name,destinationName:r.origin.name,originId:r.destination.id??0,destinationId:r.origin.id??0,outboundArrival:r.outboundArrival,passengers:r.passengers}}}})(e,w)):[],[a,q,H,J,w]);(0,r.useEffect)(()=>{if(!a||!b)return;let e=j?.config[s.ConfigTypeEnum.API_STOPS_ID_COUNTRY],t=H&&!J&&!!e;(0,I.syncLocalNotificationsFromUpcomingTrips)({includeStopGeo:t,resolveStopGeo:t?(t,r)=>L(t,r,e):void 0})},[a,b,H,J,j]);let el=(0,r.useMemo)(()=>a?[...eo,...ea,...ei,...Z??[]].sort((e,t)=>new Date(t.date).getTime()-new Date(e.date).getTime()):[],[a,Z,eo,ei,ea]),es=(0,r.useMemo)(()=>el.filter(e=>!M.has(e.id)).length,[el,M]),eu=(0,r.useCallback)(()=>{a&&$(!0)},[a]),ed=(0,r.useCallback)(()=>{$(!1),k(e=>{let t=new Set(e),r=!1;return el.forEach(e=>{!S(e)&&(t.has(e.id)||(t.add(e.id),r=!0))}),r&&R(Array.from(t)),r?t:e})},[el]),ec=(0,r.useCallback)(e=>{k(t=>{if(t.has(e))return t;let r=new Set(t);return r.add(e),R(Array.from(r)),r})},[]),ef=(0,r.useMemo)(()=>({notifications:el,readIds:M,unreadCount:es,isOpen:U,enabled:a,isLoading:en,hasError:!!et,openDrawer:eu,closeDrawer:ed,markAsRead:ec}),[el,M,es,U,a,en,et,eu,ed,ec]);return(0,t.jsx)(N.Provider,{value:ef,children:e})},"useNotifications",0,function(){return(0,r.useContext)(N)??E}],507843)},170928,e=>{"use strict";var t=e.i(843476),r=e.i(271645);let n=(0,r.createContext)({reviewModalState:null,openReviewModal:()=>{},closeReviewModal:()=>{}});e.s(["ReviewModalProvider",0,({children:e})=>{let[i,a]=(0,r.useState)(null),o=(0,r.useCallback)((e,t)=>{a({trip:e,surface:t.surface,initialScore:t.initialScore})},[]),l=(0,r.useCallback)(()=>{a(null)},[]),s=(0,r.useMemo)(()=>({reviewModalState:i,openReviewModal:o,closeReviewModal:l}),[i,o,l]);return(0,t.jsx)(n.Provider,{value:s,children:e})},"useReviewModal",0,()=>(0,r.useContext)(n)])},572048,e=>{"use strict";var t=e.i(271645),r=e.i(559794);e.s(["useDevTools",0,()=>(0,t.useContext)(r.DevToolsContext)])},154206,e=>{"use strict";var t=e.i(520418),r=e.i(426562);e.s(["buildTransferSearchHref",0,e=>{let n=e.departureDate.format("DD-MM-YYYY"),i=e.returnDate?e.returnDate.format("DD-MM-YYYY"):"_",a=[(0,t.toSearchUrlSlug)(e.originName),(0,t.toSearchUrlSlug)(e.destinationName),e.originId,e.destinationId,n,i,e.passengers.toString(),"0/0"].join("/");return`${r.TRANSFERS_PREFIX}/servicios/buscar-pasajes/${a}`}])}]);

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.