1globalThis.process??={},globalThis.process.env??={};import{o as e}from"./rolldown-runtime.DIol1n-R.js";import{jt as t}from"./a-withfaye-ui-core.CjHharLG.js";import{S as n,a as r,v as i,w as a}from"./misc.BsptW5zG.js";import{j as o}from"./visually-hidden.css.ts.vanilla.C-6dzN_-.js";import{t as s}from"./compiler-runtime.C3XETJ2Y.js";var c={destination:{event:"Click Submit Destinations",page:"Destinations",cta:"Continue",region:"destination form",form:"Destinations Form"},duration:{event:"Click Submit Dates",page:"Dates",cta:"Continue",region:"dates form",form:"Dates Form"},residency:{event:"Click Submit State",page:"State",cta:"Continue",region:"state form",form:"State Form"},travelers:{event:"Click Travelers CTA",page:"Travelers",cta:"See pricing",region:"travelers form",form:"Travelers Form"}};function l(e,t){let n=c[e];r.track(n.event,{name_of_page:n.page,page_type:"ob",interaction_type:"button",interaction_text:n.cta,interaction_region:n.region,component_name:n.form,is_invalid:!0,validation_error_count:t.count,validation_error_fields:t.fields,validation_errors:t.errors},{eventType:"interaction"})}function u(e,t={}){let n=e.map(e=>e.name),i=o(e);a({searched_destinations:n}),r.track("Click Submit Destinations",{destinations:n,is_multiple_destinations:e.length>1,is_domestic_destination:i,name_of_page:"Destinations",page_type:"ob",interaction_type:"button",interaction_text:"Continue",interaction_region:"destination form",component_name:"Destinations Form",selected_destinations_count:e.length,selected_destinations_names:n,selected_destinations_place_id:e.map(e=>e.key??e.name),...t},{eventType:"interaction"})}function d(e,t,n={}){let o={trip_start_date:e,trip_end_date:t};a(o),r.track("Click Submit Dates",{...o,name_of_page:"Dates",page_type:"ob",interaction_type:"button",interaction_text:"Continue",interaction_region:"dates form",component_name:"Dates Form",...n},{eventType:"interaction"})}function f(e){a({state:e}),n(e),r.track("Click Submit State",{residence_state:e,name_of_page:"State",page_type:"ob",interaction_type:"button",interaction_text:"Continue",interaction_region:"state form",component_name:"State Form"},{eventType:"interaction"})}function p(e,t,n,a={}){r.track("Click Travelers CTA",{name_of_page:"Travelers",page_type:"ob",interaction_type:"button",interaction_text:"See pricing",interaction_region:"travelers form",component_name:"Travelers Form",total_travelers_count:t,main_traveler_email:e?.email,...a},{eventType:"interaction"}),e&&e.email&&e.firstName&&e.lastName?i({email:e.email,firstName:e.firstName,lastName:e.lastName,dateOfBirth:e.dateOfBirth??"",travelersCount:t},n):n?.()}function m(e){let t="increase"===e.action?"Increase travelers":"Decrease travelers";r.track("Click Traveler Count Control",{name_of_page:"Travelers",page_type:"ob",interaction_type:"button",interaction_text:t,interaction_region:"travelers count selector",component_name:"Numerical Travelers Field",control_source:e.source,previous_travelers_count:e.previousCount,total_travelers_count:e.nextCount},{eventType:"interaction"})}function h(e){r.track("Click Add Traveler Details",{name_of_page:"Travelers",page_type:"ob",interaction_type:"button",interaction_text:"Add traveler details",interaction_region:"travelers details accordion",component_name:"Numerical Travelers Field",is_expanded:e},{eventType:"interaction"})}var g=e(t(),1),_=s(),v="nk35om0";function y(e){if(!(e instanceof Element))return null;let t=e.closest('[role="listbox"]'),n=(t?.closest(`.${v}`))?.querySelector('input[role="searchbox"]');return t&&n&&document.activeElement===n?{listbox:t,searchInput:n,didScroll:!1}:null}function b(){let e,t=(0,_.c)(9),n=(0,g.useRef)(null),r=(0,g.useRef)(!1),a=(0,g.useRef)(null);t[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{null!==a.current&&(window.clearTimeout(a.current),a.current=null)},t[0]=e):e=t[0];let o,i=e;if(t[1]===Symbol.for("react.memo_cache_sentinel")){let e=()=>{i();let e=n.current;n.current=null,e?.didScroll&&document.activeElement===e.searchInput&&e.searchInput.blur()};o=()=>{i(),a.current=window.setTimeout(e,150)},t[1]=o}else o=t[1];let c,s,l,m=o;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=()=>i,s=[],t[2]=c,t[3]=s):(c=t[2],s=t[3]),(0,g.useEffect)(c,s),t[4]===Symbol.for("react.memo_cache_sentinel")?(l=e=>{n.current=y(e),i()},t[4]=l):l=t[4];let u,p=l;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=e=>{p(e.target),r.current=!!n.current},t[5]=u):u=t[5];let d,f=u;t[6]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{r.current=!1,n.current?.didScroll&&m()},t[6]=d):d=t[6];let v,b=d;t[7]===Symbol.for("react.memo_cache_sentinel")?(v=e=>{p(e.target),r.current=!1},t[7]=v):v=t[7];let C,S=v;return t[8]===Symbol.for("react.memo_cache_sentinel")?(C={onClick:x,onTouchStartCapture:f,onTouchEndCapture:b,onTouchCancelCapture:b,onWheelCapture:S,onScrollCapture:e=>{let t=n.current;!t||e.target!==t.listbox||(t.didScroll=!0,r.current||m())}},t[8]=C):C=t[8],C}function x(e){let t=e.target;!(t instanceof Element)||!t.closest('[role="option"][aria-selected="true"]')||y(t)?.searchInput.blur()}export{u as a,m as c,d as i,h as l,v as n,f as o,l as r,p as s,b as t};
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.