1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,691236,(e,t,a)=>{"use strict";var l=e.r(13451);Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var s=l(e.r(813579)),i=e.r(843476);a.default=(0,s.default)((0,i.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check")},405122,(e,t,a)=>{"use strict";var l=e.r(13451);Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var s=l(e.r(813579)),i=e.r(843476);a.default=(0,s.default)((0,i.jsx)("path",{d:"M20 12c0-1.1.9-2 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2m-4.42 4.8L12 14.5l-3.58 2.3 1.08-4.12-3.29-2.69 4.24-.25L12 5.8l1.54 3.95 4.24.25-3.29 2.69z"}),"LocalActivity")},671780,e=>{e.v({action:"ResultsAppModal-module__6bs_EG__action",actions:"ResultsAppModal-module__6bs_EG__actions",body:"ResultsAppModal-module__6bs_EG__body",closeButton:"ResultsAppModal-module__6bs_EG__closeButton",codeChip:"ResultsAppModal-module__6bs_EG__codeChip",codeChipCopied:"ResultsAppModal-module__6bs_EG__codeChipCopied",codeIcon:"ResultsAppModal-module__6bs_EG__codeIcon",dialog:"ResultsAppModal-module__6bs_EG__dialog",headline:"ResultsAppModal-module__6bs_EG__headline",headlineSegment:"ResultsAppModal-module__6bs_EG__headlineSegment",hero:"ResultsAppModal-module__6bs_EG__hero",heroImage:"ResultsAppModal-module__6bs_EG__heroImage",sheet:"ResultsAppModal-module__6bs_EG__sheet",srOnly:"ResultsAppModal-module__6bs_EG__srOnly",subline:"ResultsAppModal-module__6bs_EG__subline",sublineStrong:"ResultsAppModal-module__6bs_EG__sublineStrong",textBlock:"ResultsAppModal-module__6bs_EG__textBlock"})},672385,e=>{"use strict";var t=e.i(843476),a=e.i(271645),l=e.i(725576),s=e.i(90591),i=e.i(880892);e.i(853207);var n=e.i(835427),r=e.i(657688),o=e.i(301568),u=e.i(44198),d=e.i(691236),c=e.i(343794),_=e.i(226109),p=e.i(170586),m=e.i(969354),E=e.i(676785),f=e.i(42582),h=e.i(135132),N=e.i(487121),S=e.i(227205),g=e.i(671780),A=e.i(155532);e.i(36389),e.i(557124);var b=e.i(109427);let R={[b.PageViewEnum.HOME]:s.ONELINK_RESULTS_MODAL_ORIGIN_HOME,[b.PageViewEnum.LANDING]:s.ONELINK_RESULTS_MODAL_ORIGIN_LANDING,[b.PageViewEnum.RESULTS]:s.ONELINK_RESULTS_MODAL_ORIGIN_RESULTS,[b.PageViewEnum.SEAT_SELECTION]:s.ONELINK_RESULTS_MODAL_ORIGIN_OTHER,[b.PageViewEnum.CHECKOUT]:s.ONELINK_RESULTS_MODAL_ORIGIN_OTHER,[b.PageViewEnum.OTHER_INTERNAL_PAGE]:s.ONELINK_RESULTS_MODAL_ORIGIN_OTHER},T=({offer:e,onDismiss:l})=>{let{trackEvent:i}=(0,E.useAmplitude)(),{funnelStep:n}=(0,h.useConfig)(),b=(0,f.useAmplitudeSite)(),[T,L]=(0,a.useState)(!1),O=(0,a.useMemo)(()=>(0,A.resolveResultsAppModalCopy)(e),[e]),[P,C]=(0,a.useState)(!1),I=(0,a.useRef)(null),v=(0,a.useRef)(null),M=(0,a.useRef)(null),w=(0,a.useMemo)(()=>({business_unit:N.BusinessUnitTypeEnum.BUSES,site:b,funnel_step:n||null,banner_type:A.RESULTS_APP_MODAL_BANNER_TYPE,step:"results",...e&&{discount_code:e.discountCode,discount_percentage:e.discountPercentage}}),[b,n,e]),y=(0,a.useCallback)((e={})=>({...w,...(0,S.getPageViewTrail)(),url:location.href,...e}),[w]),x=async()=>{!O.discountCode||await (0,_.copyTextToClipboard)(O.discountCode)&&(C(!0),I.current&&clearTimeout(I.current),I.current=setTimeout(()=>C(!1),_.COPIED_FEEDBACK_MS),i?.({name:N.EventNameEnum.COPY_DISCOUNT_CODE,data:y()}))},j=(0,a.useCallback)(e=>{T||(L(!0),document.cookie=`${s.RESULTS_APP_MODAL_DISMISSED_COOKIE}=true; path=/; max-age=${s.RESULTS_APP_MODAL_DISMISSED_MAX_AGE_SECONDS}; SameSite=Lax${"https:"===window.location.protocol?"; Secure":""}`,i?.({name:N.EventNameEnum.BANNER_CLOSED,data:y({dismiss_method:e})}),v.current=setTimeout(l,window.matchMedia("(prefers-reduced-motion: reduce)").matches?100:150))},[T,l,i,y]);return(0,a.useEffect)(()=>()=>{I.current&&clearTimeout(I.current),v.current&&clearTimeout(v.current)},[]),(0,a.useEffect)(()=>{let{overflow:e}=document.body.style;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[]),(0,a.useEffect)(()=>{M.current?.focus()},[]),(0,t.jsx)(m.default,{isOpen:!T,id:"results-app-modal",className:g.default.dialog,onCancel:()=>j("escape"),children:(0,t.jsxs)("div",{ref:M,className:g.default.sheet,"data-testid":"results-app-modal",tabIndex:-1,
1children:[(0,t.jsxs)("div",{className:g.default.hero,children:[(0,t.jsx)(r.default,{src:A.RESULTS_APP_MODAL_HERO_IMAGE,alt:"",fill:!0,loading:"eager",quality:75,sizes:"(min-width: 768px) 560px, 100vw",className:g.default.heroImage}),(0,t.jsx)("button",{type:"button",className:g.default.closeButton,onClick:()=>j("close_button"),"aria-label":O.closeLabel,"data-testid":"results-app-modal-close",children:(0,t.jsx)(o.default,{fontSize:"medium"})})]}),(0,t.jsx)("div",{className:g.default.body,children:(0,t.jsxs)("div",{className:g.default.textBlock,children:[(0,t.jsx)("h2",{className:g.default.headline,children:O.headlineSegments.map((e,l)=>(0,t.jsxs)(a.default.Fragment,{children:[l>0&&" ",(0,t.jsx)("span",{className:g.default.headlineSegment,children:e})]},e))}),(0,t.jsxs)("p",{className:g.default.subline,children:[O.sublineBefore,O.sublineBold&&(0,t.jsx)("strong",{className:g.default.sublineStrong,children:O.sublineBold}),O.sublineAfter,O.discountCode&&(0,t.jsxs)("button",{type:"button",className:(0,c.default)(g.default.codeChip,{[g.default.codeChipCopied]:P}),onClick:x,"aria-label":`${O.copyCodeLabel} ${O.discountCode}`,"data-testid":"results-app-modal-copy-code",children:[(0,t.jsx)("span",{className:g.default.codeText,children:O.discountCode}),P?(0,t.jsx)(d.default,{className:g.default.codeIcon,fontSize:"inherit"}):(0,t.jsx)(u.default,{className:g.default.codeIcon,fontSize:"inherit"})]})]}),(0,t.jsx)("span",{"aria-live":"polite",className:g.default.srOnly,children:P?O.codeCopiedLabel:""})]})}),(0,t.jsxs)("div",{className:g.default.actions,children:[(0,t.jsx)(p.default,{type:"primary",size:"large",className:g.default.action,onClick:()=>{i?.({name:N.EventNameEnum.APP_BANNER_CLICKED,data:y()}),window.open(R[(0,S.getPageViewTrail)()?.initial_page_view]||s.ONELINK_RESULTS_MODAL_TREATMENT,"_blank","noopener,noreferrer")},"data-testid":"results-app-modal-cta",children:O.ctaLabel}),(0,t.jsx)(p.default,{type:"tertiary",color:"alternative",size:"large",className:g.default.action,onClick:()=>j("secondary_link"),"data-testid":"results-app-modal-secondary",children:O.secondaryLinkLabel})]})]})})};e.s(["default",0,({eligible:e,offer:r,dismissedWithinWindow:o,fallback:u,reducedBannerCouponExperiment:d})=>{let[c,_]=(0,a.useState)(!1),p=(({eligible:e,dismissedWithinWindow:t,dismissedNow:a})=>e?t?"post-dismiss-banner":a?"none":"modal":"fallback")({eligible:e,dismissedWithinWindow:o,dismissedNow:c});return((0,a.useEffect)(()=>{"none"===p&&(0,i.setBannerTelemetry)({app_banner_type:null,is_app_banner_shown:!1,app_banner_dismissed_type:s.ABAppBannersEnum.APP_MODAL})},[p]),"fallback"===p)?(0,t.jsx)(t.Fragment,{children:u}):"none"===p?null:"post-dismiss-banner"===p?d?(0,t.jsx)(n.ReducedBannerCouponBanner,{step:"results",experiment:d}):(0,t.jsx)(l.default,{step:"results",bannerType:s.ABAppBannersEnum.REDUCED_BANNER,oneLinkOverride:s.ONELINK_RESULTS_POST_DISMISS_BANNER}):(0,t.jsx)(T,{offer:r,onDismiss:()=>_(!0)})}],672385)},434703,e=>{e.v({dialogBasic:"Modal-module__GKiJOG__dialogBasic"})},969354,e=>{"use strict";var t=e.i(843476),a=e.i(271645),l=e.i(174080),s=e.i(434703),i=e.i(343794);e.s(["default",0,e=>{let{isOpen:n,children:r,id:o,domReference:u,className:d,onBackdropClick:c,onCancel:_}=e,[p,m]=a.default.useState(!1);a.default.useEffect(()=>{m(!0)},[]);let E=p?u||document.body:null,f=a.default.useRef(null);return(a.default.useEffect(()=>{f.current?.open&&!n?f.current?.close():!f.current?.open&&n&&f.current?.showModal()},[n,p]),a.default.useEffect(()=>{let e=f.current;if(!e||!_)return;let t=()=>_();return e.addEventListener("cancel",t),()=>e.removeEventListener("cancel",t)},[_,p]),E)?l.default.createPortal((0,t.jsx)("dialog",{role:"dialog","aria-modal":"true","aria-label":`modal-${o}`,ref:f,className:(0,i.default)(s.default.dialogBasic,d),onClick:e=>{e.target===e.currentTarget&&c&&c()},children:r}),E):null}])},375221,e=>{"use strict";var t=e.i(271645),a=e.i(109427),l=e.i(227205),s=e.i(840614);e.s(["default",0,({trail:e})=>{let{initialPath:i,lastPath:n}=e,r=(0,s.usePageViewTrailEnabled)();return(0,t.useEffect)(()=>{if(r)return(0,l.setPageViewTrail)((0,a.buildPageViewTrailProps)({trail:{initialPath:i,lastPath:n},currentPath:window.location.pathname,referrer:document.referrer,currentHost:window.location.host})),()=>(0,l.clearPageViewTrail)()},[i,n,r]),null}])},840614,e=>{"use strict";var t=e.i(135132),a=e.i(790948),l=e.i(713975);e.s(["usePageViewTrailEnabled",0,function(){let{configCountry:e}=(0,t.useConfig)();return e.country===l.CountryTypeEnum.ARGENTINA&&!(0,a.detectWhiteLabelFromHost)(window.location.host).isWhiteLabel}])},557124,e=>{"use strict";let t=["brand1","brand2"];
1e.s(["isCampaignVisit",0,e=>!!(e.utm_source||e.sub_id||e.gclid||e.gbraid||e.gad_source),"isPaidNonBrandSearch",0,e=>{var a;let l;return e.utm_medium?.trim().toLowerCase()==="cpc"&&(a=e.utm_campaign,!((l=a?.trim().toLowerCase())&&t.includes(l)))}])},109427,e=>{"use strict";var t,a,l=e.i(426562),s=((t={}).HOME="home",t.LANDING="landing",t.RESULTS="results",t.SEAT_SELECTION="seat selection",t.CHECKOUT="checkout",t.OTHER_INTERNAL_PAGE="other internal page",t.EXTERNAL_SITE="external site",t.UNKNOWN="unknown",t),i=((a={}).ROUTES="pasajes-en-micro",a.COMPANIES="empresas-de-micro",a.TERMINALS="terminales-de-omnibus",a.POPULAR_ROUTES="rutas-populares",a.TRANSFERS="traslados",a.TRAVEL_SALE="travel-sale",a.DESTINATIONS="destinos-destacados",a);let n=["/servicios/buscar-pasajes"],r=["/servicios/Taquilla"],o=["/checkout"],u=new Map(Object.values(i).map(e=>[e,e])),d=e=>(0,l.matchVerticalPrefix)(e)?.stripped??e,c=e=>{try{let t=decodeURIComponent(e);return t.includes("/")?e:t}catch{return e}},_=e=>{if(!e)return null;let t=e.split("?")[0].split("#")[0].trim();return!t.startsWith("/")||/^\/[/\\]/.test(t)||t.length>512?null:(e=>{let t=d(e),a=e.endsWith(t)?e.slice(0,e.length-t.length):"",l=n.find(e=>t===e||t.startsWith(`${e}/`));if(!l)return e;let s=t.slice(l.length).replace(/^\//,"").split("/").slice(0,4);for(;s.length&&!s[s.length-1];)s.pop();return s.length?`${a}${l}/${s.join("/")}`:`${a}${l}`})((t.replace(/\/+$/,"")||"/").split("/").map(c).join("/"))},p=(e,t)=>t.some(t=>e===t||e.startsWith(`${t}/`)),m=e=>{let t=_(e);if(!t)return null;let a=d(t);if("/"===a||""===a)return"home";if(p(a,n))return"results";if(p(a,r))return"seat selection";if(p(a,o))return"checkout";let[l]=a.split("/").filter(Boolean);return u.has(l)?"landing":"other internal page"};e.s(["PAGE_VIEW_TRAIL_COOKIE",0,"p10_page_view_trail","PAGE_VIEW_TRAIL_MAX_AGE_SECONDS",0,1800,"PageViewEnum",()=>s,"advancePageViewTrail",0,(e,t)=>{let a=_(t);return a?{initialPath:e.initialPath??a,lastPath:a}:e},"buildPageViewTrailProps",0,({trail:e,currentPath:t,referrer:a,currentHost:l})=>{let s=_(e.initialPath)??_(t),i=m(s)??"other internal page",n=_(e.lastPath),r=m(n),o=r||(a?a&&l&&URL.canParse(a)&&new URL(a).hostname.toLowerCase()===l.toLowerCase()?"other internal page":"external site":"unknown");return{initial_page_view:i,initial_page_view_path:s,initial_page_view_landing_type:"landing"===i?(e=>{let t=_(e);if(!t)return null;let[a]=d(t).split("/").filter(Boolean);return u.get(a)??null})(s):null,last_page_view:o,last_page_view_path:r?n:null}},"parsePageViewTrail",0,e=>{if(!e)return{initialPath:null,lastPath:null};let[t,a]=e.split("|"),l=e=>{if(!e)return null;let t=e;try{t=decodeURIComponent(e)}catch{t=e}return _(t)};return void 0===a?{initialPath:null,lastPath:l(t)}:{initialPath:l(t),lastPath:l(a)}},"serializePageViewTrail",0,({initialPath:e,lastPath:t})=>[e??"",t??""].map(e=>encodeURIComponent(e)).join("|")])}]);
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.