PageSourceSearch

https://www.bitsintravelsandtours.com/_next/static/chunks/3761-b578672401cb1890.js

js bitsintravelsandtours.com collected 2026-10-09 03:49:24 UTC 20,013 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3761],{33761:(e,t,r)=>{r.d(t,{A:()=>M});var a=r(84680),l=r(55396),s=r(53389),n=r(98360),o=r(57618),i=r(82766),c=r(4456),d=r(26587),x=r(27003),p=r(20303),u=r.n(p),h=r(63807),m=r(6051),f=r(76851),j=r(4924),g=r(68354),v=r(78930),b=r(34012),w=r(23287),y=r(51410),N=r(82708);let A={loaderSubText:"Searching Flight Deals..."};function C(e){let{open:t}=e;return(0,a.jsx)(N.lG,{open:t,children:(0,a.jsxs)(N.Cf,{className:"w-[90%] max-w-[350px] p-0 rounded-[18px] overflow-hidden border-none bg-transparent",showCloseButton:!1,children:[(0,a.jsx)(N.L3,{className:"sr-only",children:"Flight Search Loader"}),(0,a.jsx)(N.rr,{className:"sr-only",children:"Loader for Searching For Flights"}),(0,a.jsxs)("div",{className:"w-full max-w-[350px] relativeshadow-md bg-white p-[24px] rounded-[34px] flex flex-col gap-[16px] items-center justify-center",children:[(0,a.jsxs)("div",{className:"w-full h-[244px] relative rounded-[24px] overflow-hidden flex items-center justify-center",children:[(0,a.jsx)("div",{className:"absolute w-32 h-32 border-8 border-[#435ABF] border-t-transparent rounded-full animate-spin"}),(0,a.jsx)("div",{className:"absolute w-24 h-24 border-8 border-[#283673] border-t-transparent rounded-full animate-[spin_1s_linear_infinite_reverse]"}),(0,a.jsx)("div",{className:"absolute w-16 h-16 border-8 border-[#1A36AF] border-t-transparent rounded-full animate-spin"})]}),(0,a.jsx)("h6",{className:"font-medium text-[#435ABF] text-[16px]",children:A.loaderSubText})]})]})})}var F=r(19745),D=r(144),B=r(22347),k=r(4427),_=r(44127),E=r(30143);let T={adult:"ADT",child:"CNN",infant:"INF"};function M(e){let{onCloseDialog:t}=e,[r,c]=(0,l.useState)(!1),[x,p]=(0,l.useState)(""),[m,v]=(0,l.useState)([]),[y,N]=(0,l.useState)(!1),{formValues:A,setFormValues:M,setTotalPassengers:S}=(0,F.d)(),V=(0,s.useRouter)(),{handleGetFlights:z,loading:L}=(0,B.Bl)(()=>{null==t||t(),V.push(_.tl.SEARCH)}),W=(0,o.mN)({defaultValues:A,resolver:(0,n.u)(F.a)}),{fields:O}=(0,o.jz)({control:W.control,name:"passengers"}),{fields:H}=(0,o.jz)({control:W.control,name:"legs"}),Y=(0,l.useRef)(new Map),$=async e=>{N(!0);let t="airports-".concat(e);if(Y.current.has(t)){v(Y.current.get(t)||[]),N(!1);return}try{let r=await D.I.getAirports(e||""),a=r.data.data;Y.current.set(t,a),v(r.data.data)}catch(e){console.log("error",e),v(e=>e)}finally{N(!1)}},J=W.watch("passengers").reduce((e,t)=>e+t.count,0);return(0,l.useEffect)(()=>{let e=u()(e=>{e.length>=3&&$(e)},1e3);return e(x),()=>{e.cancel()}},[x]),(0,l.useEffect)(()=>{let e=W.watch(e=>{M(e)});return()=>e.unsubscribe()},[W.watch]),(0,l.useEffect)(()=>{S(J)},[J]),(0,l.useEffect)(()=>{let e=W.getValues("tripType"),t=W.getValues("legs");e===_._i.MULTI_CITY&&1===t.length?W.setValue("legs",[_.fT,_.fT]):e!==_._i.MULTI_CITY&&t.length>1&&W.setValue("legs",[_.fT])},[W.watch("tripType")]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g.lV,{...W,children:(0,a.jsx)("form",{onSubmit:W.handleSubmit(e=>{let t=new Date;t.setHours(0,0,0,0);let r=new Date(t);r.setDate(r.getDate()+1);for(let r=0;r<e.legs.length;r++){let a=e.legs[r],l=new Date(a.departureDate);if(l.setHours(0,0,0,0),l<=t){d.Ay.error("Invalid departure date for ".concat(a.from.city," → ").concat(a.to.city,". Departure date must be at least tomorrow. Same-day or past bookings are not allowed."),{duration:5e3,position:"top-center",style:{background:"#EF4444",color:"#FFFFFF",fontWeight:"600"}});return}}z({flightClass:e.class,passengers:e.passengers.filter(e=>e.count>0).map(e=>({type:T[e.type],value:e.count})),legs:E.A.constructLegs(e.tripType,e.legs)})}),className:"w-full relative bg-white py-[30px] px-[20px] rounded-[18px] max-h-[600px] overflow-y-auto",children:(0,a.jsxs)("div",{className:"w-full relative flex flex-col gap-[24px]",children:[(0,a.jsxs)("div",{className:"w-full relative flex flex-col md:flex-row gap-[24px] items-center",children:[(0,a.jsx)(g.zB,{control:W.control,name:"tripType",render:e=>{let{field:t}=e;return(0,a.jsxs)(g.eI,{children:[(0,a.jsx)(h.z,{defaultValue:_._i.ONE_WAY,value:t.value,onValueChange:t.onChange,orientation:"horizontal",className:"flex flex-wrap items-center gap-[1rem]",children:_.wJ.map((e,t)=>(0,a.jsxs)(g.eI,{className:"flex justify-center items-center space-x-2",children:[(0,a.jsx)(g.MJ,{children:(0,a.jsx)(h.C,{value:e.value,id:e.value,className:"w-[16px] h-[16px] md:w-[20px] md:h-[20px] border-[#435ABF] text-[#435ABF] flex-shrink-0",disabled:2===t})}),(0,a.jsx)(g.lR,{className:"text-[13px] md:text-[14px] flex-shrink-0",children:e.name})]},t))}),(0,a.jsx)(g.C5,{})]})}}),(0,a.jsxs)("div",{className:"w-full md:w-auto relative flex flex-col md:flex-row gap-[12px]",children:[(0,a.jsxs)(f.AM,{open:r,onOpenChange:c,children:[(0,a.jsx)(f.Wv,{asChild:!0,children:(0,a.jsxs)("div",{className:"h-[40px] w-full md:w-[180px] relative border-[0.5px] border-solid border-[#D2D4E0] p-[8px] rounded-[8px] bg-[#F8F8FA] flex justify-between items-center cursor-pointer",children:[(0,a.jsxs)("div",{className:"flex gap-[4px] items-center",children:[(0,a.jsx)("i",{className:"person-solid w-[25px] h-[25px] text-[#6E7491]"}),(0,a.jsx)("span",{className:"font-normal text-[14px] text-[#263238]",children:"".concat(J," Passengers")})]}),(0,a.jsx)(i.A,{className:"h-4 w-4 opacity-50"})]})}),(0,a.jsx)(f.hl,{className:"w-48 md:w-[180px] p-0 relative",children:(0,a.jsxs)("div",{className:"w-full relative bg-white border-[0.7
1px] border-solid border-[#D2D4E0] shadow-sm pt-[8px] px-[12px] pb-[12px] rounded-b-[7px] flex flex-col gap-[0.5rem]",children:[O.map((e,t)=>(0,a.jsx)(g.zB,{control:W.control,name:"passengers.".concat(t,".count"),render:e=>{let{field:r}=e;return(0,a.jsx)(g.eI,{children:(0,a.jsx)(g.MJ,{children:(0,a.jsxs)("div",{className:"w-full flex justify-between items-center gap-[12px]",children:[(0,a.jsx)("span",{className:"font-normal text-[12px] text-[#263238]",children:0===t?"Adult":1===t?"Child":"Infant"}),(0,a.jsxs)("div",{className:"flex gap-[6.2px] items-center",children:[(0,a.jsx)(b.$,{size:"icon",className:"w-[24px] h-[24px] bg-[#FAFAFA] hover:bg-[#FAFAFA] flex items-center justify-center rounded-[3px] text-[#435ABF] text-[14px]",disabled:0===r.value,onClick:()=>{if(r.value>0)return r.onChange(r.value-1);d.Ay.error("Minimum 0 ".concat(0===t?"Adults":1===t?"Children":"Infants"," allowed"))},children:"-"}),(0,a.jsx)("span",{className:"w-[24px] h-[24px] flex items-center justify-center text-[#63767E] font-normal text-[14px]",children:r.value}),(0,a.jsx)(b.$,{size:"icon",className:"w-[24px] h-[24px] bg-[#FAFAFA] hover:bg-[#FAFAFA] flex items-center justify-center rounded-[3px] text-[#435ABF] text-[14px]",onClick:()=>{let e;switch(t){case 0:e=9;break;case 1:e=2;break;case 2:e=4;break;default:e=10}if(r.value<e)return r.onChange(r.value+1);d.Ay.error("Maximum ".concat(e," ").concat(0===t?"Adults":1===t?"Children":"Infants"," allowed"))},children:"+"})]})]})})})}},e.id)),(0,a.jsx)(b.$,{className:"w-full bg-[#435ABF] hover:bg-[#435ABF] font-medium text-[16px] mt-2",onClick:()=>c(!1),children:"Apply"})]})})]}),(0,a.jsx)(g.zB,{control:W.control,name:"class",render:e=>{var t;let{field:r}=e,{ref:l,...s}=r;return(0,a.jsxs)(g.eI,{children:[(0,a.jsx)(g.MJ,{children:(0,a.jsxs)(j.l6,{...s,onValueChange:s.onChange,value:s.value,children:[(0,a.jsx)(j.bq,{className:"w-full md:w-[200px] bg-[#F8F8FA]",children:(0,a.jsxs)("div",{className:"flex gap-[0.5rem] items-center",children:[(0,a.jsx)("i",{className:"star w-[18px] h-[18px] text-[#6E7491]"}),(0,a.jsx)("span",{className:"capitalize text-[14px] truncate",children:null===(t=s.value)||void 0===t?void 0:t.split("-").join(" ")})]})}),(0,a.jsx)(j.gC,{children:_.Rq.map((e,t)=>(0,a.jsx)(j.eb,{value:e.value,children:e.name},t))})]})}),(0,a.jsx)(g.C5,{})]})}})]})]}),(0,a.jsx)("div",{className:(0,k.cn)("w-full relative grid grid-cols-1 gap-y-[12px] md:gap-x-[12px]",{"md:grid-cols-3":W.getValues("tripType")===_._i.ONE_WAY,"md:grid-cols-4":W.getValues("tripType")!==_._i.ONE_WAY}),children:(0,a.jsx)(I,{fields:H,form:W,searchQuery:x,setSearchQuery:p,isLoading:y,airports:m,tripType:W.getValues("tripType")})}),(0,a.jsx)(g.zB,{control:W.control,name:"isFlexible",render:e=>{let{field:t}=e;return(0,a.jsxs)(g.eI,{className:"flex items-center gap-[10px] space-y-0",children:[(0,a.jsx)(g.MJ,{children:(0,a.jsx)(w.S,{checked:t.value,onCheckedChange:t.onChange,className:"w-[20px] h-[20px] border-[#D2D4E0] data-[state=checked]:bg-[#435ABF] data-[state=checked]:border-[#435ABF] data-[state=checked]:text-white"})}),(0,a.jsx)(g.lR,{className:"text-[#263238] text-[14px] font-medium",children:"My dates are flexible(+/- 3days)"})]})}}),(0,a.jsx)(b.$,{variant:"secondary",size:"lg",className:"w-full h-[60px] font-medium text-[16px] text-white bg-gradient-to-r from-[#283673] to-[#1A36AF] ",children:"Search Flights"})]})})}),(0,a.jsx)(C,{open:L})]})}function S(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"hidden absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-[36px] h-[36px] md:flex items-center justify-center border-[1px] border-[#A0F1C0] bg-[#F0FFF9] rounded-lg z-10",children:(0,a.jsx)("i",{className:"swap-icon w-[18px] h-[16px] text-[#5BB590] font-bold"})}),(0,a.jsx)("div",{className:"md:hidden absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-[36px] h-[36px] flex items-center justify-center border-[1px] border-[#A0F1C0] bg-[#F0FFF9] rounded-lg z-10",children:(0,a.jsx)("i",{className:"swap-mobile-icon w-[23px] h-[24px] text-[#5BB590] font-bold"})})]})}let I=e=>{let{fields:t,form:r,searchQuery:s,setSearchQuery:n,isLoading:o,airports:i,tripType:p}=e,[u,h]=(0,l.useState)([]),[j,w]=(0,l.useState)([]),[N,A]=(0,l.useState)([]),[C,F]=(0,l.useState)([]),D=(e,t,r)=>{t(t=>{let a=[...t];return a[e]=r,a})},B=(e,t)=>{r.getValues("legs[".concat(t,"].from")).country===e.Country?d.Ay.error("No local flights currently available"):(r.setValue("legs[".concat(t,"].to"),{airportCode:e.AirportCode,city:e.City,country:e.Country,description:e.Description}),D(t,w,!1),n(""))};return t.map((e,t)=>(0,a.jsxs)(l.Fragment,{children:[(0,a.jsxs)("div",{className:"w-full relative col-span-2 grid grid-cols-1 md:grid-cols-2 gap-[12px]",children:[(0,a.jsx)(g.zB,{control:r.control,name:"legs[".concat(t,"].from"),render:e=>{let{field:l}=e;return(0,a.jsxs)(g.eI,{className:"w-full relative flex flex-col",children:[(0,a.jsxs)(f.AM,{open:u[t],onOpenChange:e=>D(t,h,e),modal:!1,children:[(0,a.jsx)(f.Wv,{asChild:!0,children:(0,a.jsx)(g.MJ,{children:(0,a.jsxs)(b.$,{role:"combobox",className:"w-full h-[80px] border-[1px] border-[#D2D4E0] bg-[#F8F8FA] p-[20px] flex items-center justify-start rounded-[10px] gap-[20px] hover:border-[2.5px] hover:border-[#1A36AF] hover:shadow-xl cursor-pointer hover:bg-transparent",children:[(0,a.jsx)("i",{className:(0,k.cn)("min-w-[20px] min-h-[20px] text-[#B6B9C9]","from-icon")}),(0,a.jsxs)("div",{className:"flex flex-col items-start gap-[4px] relative truncate",children:[(0,a.jsx)("h3",{className:"text-[#63767E] font-medium text-[14px] leading-[17px]",children:"From"}),(0,a.jsx)("h1",{className:"text-[#263238] font-medium text-[16px]",children:"".concat(l.value.city,", ").concat(l.value.country)})]})]})})}),(0,a.jsx)(f.hl,{className:"p-0",children:(0,a.jsxs)(m.uB,{shouldFilter:!1,children:[(0,a.jsx)(m.G7,{placeholder:"From...",value:s,onValueChange:e=>n(e),disabled:o}),o?(0,a.jsx)("div",{className:"w-full relative p-4 flex items-center justify-center",children:(0,a.jsx)(y.A,{})}):(0,a.jsxs)(m.oI,{children:[(0,a.jsx)(m.xL,{children:"Location not found."}),(0,a.jsx)(m.L$,{children:i.map(e=>(0,a.jsxs)(m.h_,{value:e.AirportCode,onSelect:()=>{r.setValue("legs[".concat(t,"].from"),{airportCode:e.AirportCode,city:e.City,country:e.Country,description:e.Description}),D(t,h,!1),n("")},children:[e.CityCountry,(0,a.jsx)(c.A,{className:(0,k.cn)("ml-auto",e.AirportCode===l.value.airportCode?"opacity-100":"opacity-0")})]},e._id))},i.length)]})]})})]}),(0,a.jsx)(g.C5,{})]})}}),(0,a.jsx)(S,{}),(0,a.jsx)(g.zB,{control:r.control,name:"legs[".concat(t,"].to"),render:e=>{let{field:r}=e;return(0,a.jsxs)(g.eI,{className:"w-full relative flex flex-col",children:[(0,a.jsxs)(f.AM,{open:j[t],onOpenChange:e=>D(t,w,e),children:[(0,a.jsx)(f.Wv,{asChild:!0,children:(0,a.jsx)(g.MJ,{children:(0,a.jsxs)(b.$,{role:"combobox",className:"w-full h-[80px] border-[1px] border-[#D2D4E0] bg-[#F8F8FA] p-[20px] flex items-center justify-start rounded-[10px] gap-[20px] hover:border-[2.5px] hover:border-[#1A36AF] hover:shadow-xl cursor-pointer hover:bg-transparent",children:[(0,a.jsx)("i",{className:(0,k.cn)("w-[20px] h-[20px] text-[#B6B9C9]","to-icon")}),(0,a.jsxs)("div",{className:"flex flex-col items-start gap-[4px] relative",children:[(0,a.jsx)("h3",{className:"text-[#63767E] font-medium text-[14px] leading-[17px]",children:"To"}),(0,a.jsx)("h1",{className:"text-[#263238] font-medium text-[16px]",children:"".concat(r.value.city,", ").concat(r.value.airportCode)})]})]})})}),(0,a.jsx)(f.hl,{className:"p-0",children:(0,a.jsxs)(m.uB,{shouldFilter:!1,children:[(0,a.jsx)(m.G7,{placeholder:"To...",value:s,onValueChange:e=>n(e),disabled:o}),o?(0,a.jsx)("div",{className:"w-full relative p-4 flex items-center justify-center",children:(0,a.jsx)(y.A,{})}):(0,a.jsxs)(m.oI,{children:[(0,a.jsx)(m.xL,{children:"Location not found."}),(0,a.jsx)(m.L$,{children:i.map(e=>(0,a.jsxs)(m.h_,{value:e.AirportCode,onSelect:()=>B(e,t),children:[e.CityCountry,(0,a.jsx)(c.A,{className:(0,k.cn)("ml-auto",e.AirportCode===r.value.airportCode?"opacity-100":"opacity-0")})]},e._id))},i.length)]})]})})]}),(0,a.jsx)(g.C5,{})]})}})]}),(0,a.jsxs)("div",{className:(0,k.cn)("w-full relative grid grid-cols-1 gap-[12px]",{"col-span-1":p===_._i.ONE_WAY,"col-span-2 md:grid-cols-2":p!==_._i.ONE_WAY}),children:[(0,a.jsx)(g.zB,{control:r.control,name:"legs[".concat(t,"].departureDate"),render:e=>{let{field:r}=e;return(0,a.jsxs)(g.eI,{className:"flex flex-col",children:[(0,a.jsxs)(f.AM,{open:N[t],onOpenChange:e=>D(t,A,e),children:[(0,a.jsx)(f.Wv,{asChild:!0,children:(0,a.jsx)(g.MJ,{children:(0,a.jsxs)(b.$,{role:"combobox",className:"w-full h-[80px] border-[1px] border-[#D2D4E0] bg-[#F8F8FA] p-[20px] flex items-center justify-start rounded-[10px] gap-[20px] hover:border-[2.5px] hover:border-[#1A36AF] hover:shadow-xl cursor-pointer hover:bg-transparent",children:[(0,a.jsx)("i",{className:(0,k.cn)("w-[20px] h-[20px] text-[#B6B9C9]","calendar-icon")}),(0,a.jsxs)("div",{className:"flex flex-col items-start gap-[4px] relative",children:[(0,a.jsx)("h3",{className:"text-[#63767E] font-medium text-[14px] leading-[17px]",children:"Departure"}),(0,a.jsx)("h1",{className:"text-[#263238] font-medium text-[16px]",children:r.value})]})]})})}),(0,a.jsx)(f.hl,{className:"w-auto p-0",align:"start",children:(0,a.jsx)(v.V,{mode:"single",selected:r.value?new Date(r.value):void 0,onSelect:e=>{r.onChange(e?(0,x.GP)(e,"yyyy-MM-dd"):""),D(t,A,!1)},disabled:e=>{let t=new Date;t.setHours(0,0,0,0);let r=new Date(e);return r.setHours(0,0,0,0),r<=t},classNames:{weekdays:"text-[#63767E] font-normal text-[14px] leading-[17px] text-red flex flex-row my-2",weekday:"flex justify-center items-center flex-grow w-[36px] h-[36px]",disabled:"text-[#D2D4E0] font-normal text-[14px] leading-[17px] flex justify-center items-center w-[36px] h-[36px] cursor-not-allowed not-allowed",outside:"text-[#aaaaaa] font-normal text-[14px] leading-[17px] flex justify-center items-center w-[36px] h-[36px] invisible",selected:"text-white font-normal text-[14px] leading-[17px] flex justify-center items-center w-[36px] h-[36px] bg-[#435ABF] rounded-full"}})})]}),(0,a.jsx)(g.C5,{})]})}}),p!==_._i.ONE_WAY&&(0,a.jsx)(g.zB,{control:r.control,name:"legs[".concat(t,"].arrivalDate"),render:e=>{let{field:r}=e;return(0,a.jsxs)(g.eI,{className:"flex flex-col",children:[(0,a.jsxs)(f.AM,{open:C[t],onOpenChange:e=>D(t,F,e),children:[(0,a.jsx)(f.Wv,{asChild:!0,children:(0,a.jsx)(g.MJ,{children:(0,a.jsxs)(b.$,{role:"combobox",className:"w-full h-[80px] border-[1px] border-[#D2D4E0] bg-[#F8F8FA] p-[20px] flex items-center justify-start rounded-[10px] gap-[20px] hover:border-[2.5px] hover:border-[#1A36AF] hover:shadow-xl cursor-pointer hover:bg-transparent",children:[(0,a.jsx)("i",{className:(0,k.cn)("w-[20px] h-[20px] text-[#B6B9C9]","calendar-icon")}),(0,a.jsxs)("div",{className:"flex flex-col items-start gap-[4px] relative",children:[(0,a.jsx)("h3",{className:"text-[#63767E] font-medium text-[14px] leading-[17px]",children:"Arrival"}),(0,a.jsx)("h1",{className:"text-[#263238] font-medium text-[16px]",children:r.value})]})]})})}),(0,a.jsx)(f.hl,{className:"w-auto p-0",align:"start",children:(0,a.jsx)(v.V,{mode:"single",selected:r.value?new Date(r.value):void 0,onSelect:e=>{r.onChange(e?(0,x.GP)(e,"yyyy-MM-dd"):""),D(t,F,!1)},disabled:e=>{let t=new Date;t.setHours(0,0,0,0);let r=new Date(e);return r.setHours(0,0,0,0),r<=t},classNames:{weekdays:"text-[#63767E] font-normal text-[14px] leading-[17px] text-red flex flex-row my-2",weekday:"flex justify-center items-center flex-grow w-[36px] h-[36px]",disabled:"text-[#D2D4E0] font-normal text-[14px] leading-[17px] flex justify-center items-center w-[36px] h-[36px] cursor-not-allowed not-allowed",outside:"text-[#aaaaaa] font-normal text-[14px] leading-[17px] flex justify-center items-center w-[36px] h-[36px] invisible",selected:"text-white font-normal text-[14px] leading-[17px] flex justify-center items-center w-[36px] h-[36px] bg-[#435ABF] rounded-full"}})})]}),(0,a.jsx)(g.C5,{})]})}})]})]},e.id))}},51410:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(84680);function l(){return(0,a.jsxs)("svg",{className:"animate-spin h-5 w-5 mr-3 ...",viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,a.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}},23287:(e,t,r)=>{r.d(t,{S:()=>i});var a=r(84680),l=r(55396),s=r(98930),n=r(4456),o=r(4427);let i=l.forwardRef((e,t)=>
1{let{className:r,...l}=e;return(0,a.jsx)(s.bL,{ref:t,className:(0,o.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-slate-200 ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-950 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-slate-900 data-[state=checked]:text-slate-50 dark:border-slate-50 dark:ring-offset-slate-950 dark:focus-visible:ring-slate-300 dark:data-[state=checked]:bg-slate-50 dark:data-[state=checked]:text-slate-900",r),...l,children:(0,a.jsx)(s.C1,{className:(0,o.cn)("flex items-center justify-center text-current"),children:(0,a.jsx)(n.A,{className:"h-3 w-3"})})})});i.displayName=s.bL.displayName},30143:(e,t,r)=>{r.d(t,{A:()=>i});var a=r(42690),l=r(63928),s=r(16769),n=r(44127);let o={formatPrice:e=>"".concat(e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")),calculateTravelTime:(e,t)=>{let r=(0,l.H)(e),a=(0,l.H)(t);return(0,s.o)(r,a)},formatTravelTime:e=>{let t=Math.floor(e/60);return"".concat(t,"h ").concat(e%60,"m")},validatePhoneNumber:e=>{var t,r;return null!==(r=null===(t=(0,a.l)(e))||void 0===t?void 0:t.isValid())&&void 0!==r&&r},flattenArray:e=>e.reduce((e,t)=>Array.isArray(t)?e.concat(o.flattenArray(t)):e.concat(t),[]),constructLegs:(e,t)=>{let r=[];return e===n._i.ONE_WAY&&(r=t.map(e=>({origin:e.from.airportCode,destination:e.to.airportCode,departureDate:e.departureDate}))),e===n._i.ROUND_TRIP&&(r=t.map(e=>[{origin:e.from.airportCode,destination:e.to.airportCode,departureDate:e.departureDate},{origin:e.to.airportCode,destination:e.from.airportCode,departureDate:e.arrivalDate}])),e===n._i.MULTI_CITY&&(r=t.map(e=>[{origin:e.from.airportCode,destination:e.to.airportCode,departureDate:e.departureDate},{origin:e.to.airportCode,destination:e.from.airportCode,departureDate:e.arrivalDate}])),o.flattenArray(r)},extractAndFormatPrice:e=>{let t=e?e.replace(/[^0-9]/g,""):"";return new Intl.NumberFormat().format(Number(t))}},i=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.