1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1317],{391:(e,t,s)=>{"use strict";s.d(t,{A:()=>a,m:()=>n});var l=s(37876),i=s(68635);s(14232);var r=s(42546);let n=({showModal:e,close:t,children:s,size:n="md",className:a="text-black"})=>(0,l.jsxs)(i.Dialog,{size:n||void 0,open:e,handler:t??(()=>{}),dismiss:{enabled:!1},className:a,children:[t&&(0,l.jsx)("div",{className:"flex justify-end pe-1 pt-2",children:(0,l.jsx)("section",{className:"cursor-pointer",onClick:t,children:(0,l.jsx)(r.A,{})})}),(0,l.jsx)(i.DialogBody,{className:"max-h-[40rem] overflow-scroll p-3 text-black",children:s})]}),a=({showModal:e,children:t,close:s,width:i="max-w-[500px]"})=>e?(0,l.jsx)("div",{className:"fixed inset-0 z-50 flex h-screen bg-modal transition duration-1000 ease-in-out",children:(0,l.jsx)("div",{className:"flex h-screen w-full items-center justify-center",children:(0,l.jsxs)("div",{className:`relative w-[95%] ${i} max-h-[40rem] overflow-scroll rounded-[16px] bg-white p-4`,children:[s&&(0,l.jsx)("div",{className:"absolute right-2 top-2 cursor-pointer",onClick:s,children:(0,l.jsx)(r.A,{})}),(0,l.jsx)("section",{className:"mt-2",children:t})]})})}):null},3630:(e,t,s)=>{"use strict";s.d(t,{JB:()=>k,Se:()=>f,Tg:()=>y,W8:()=>j,Y9:()=>g,YZ:()=>v,ak:()=>b,cY:()=>A,dK:()=>O,p$:()=>F,tr:()=>m,u$:()=>N});var l,i,r,n,a,o,c,d,u,p,x,h,m=((l={}).IdType="IDTYPE",l.Profession="PROFESSION",l.Title="TITLE",l.MaritalStatus="MARITALSTATUS",l.Country="COUNTRY",l),b=((i={}).LocalTransfer="localtransfer",i.Nip="nip",i.Bills="bills",i.Airtime="airtime",i),v=((r={}).Monthly="DAY_OF_THE_MONTH",r.Weekly="DAY_OF_THE_WEEK",r.Daily="DAILY",r.OneTime="ONE_OFF",r),f=((n={}).Transfer="Transfer",n.BillPayment="BillPayment",n),g=((a={}).Mtn="MTN",a.Airtel="AIRTEL",a.Glo="GLO",a.NineMobile="9MOBILE",a),j=((o={}).Pickup="pickup",o.Delivery="delivery",o),F=((c={}).changeStatus="changeStatus",c.changePin="changePin",c.retrievePin="retrievePin",c.activatePin="activatePin",c),N=((d={}).Domestic="Domestic",d.International="International",d),y=((u={}).RoundTrip="Round trip",u.OneWay="One-Way Ticket",u),k=((p={}).Activation="Soft Token Activation",p.Reactivation="Soft Token Reactivation",p),A=((x={}).AuthData="authData",x),O=((h={}).PageSize="20",h)},12998:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var l=s(37876),i=s(15039),r=s.n(i),n=s(14232),a=s(50705),o=s(75862);function c({isClearable:e=!0,isDisabled:t=!1,isLoading:s=!1,isRtl:i=!1,isSearchable:c=!0,options:d,label:u,name:p,formik:x,containerStyle:h,isMulti:m=!1,handleChange:b,placeholder:v,bg:f="white",isSelectArrayItem:g,formikName:j,selectIndex:F,selectName:N,selectComponent:y,formatOptionLabel:k,inputPlaceholder:A="",...O}){let D=(0,n.useRef)(),S=e=>{x.setFieldValue(p,e)},w={control:e=>({...e,border:0,boxShadow:"none",backgroundColor:f,fontSize:14}),containerStyle:e=>({...e,backgroundColor:f}),input:e=>({...e,padding:11,outline:"none",border:0,backgroundColor:"inherit"}),menu:e=>({...e,zIndex:9999}),menuPortal:e=>({...e,zIndex:9999})},T=e=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("label",{htmlFor:p,className:r()("mb-3 absolute left-2.5 z-10 origin-[0] -translate-y-1 scale-75 text-sm text-gray-500 duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75",""),style:{left:10,pointerEvents:"none",position:"absolute",transition:"0.2s ease all",MozTransition:"0.2s ease all",WebkitTransition:"0.2s ease all",top:e.isFocused||e.hasValue?"0":"40%",fontSize:(e.isFocused||e.hasValue,"1rem")},children:v}),(0,l.jsx)(a.c.Control,{...e})]});return g&&j&&N&&void 0!==F&&!Number.isNaN(F)?(0,l.jsxs)("div",{className:r()("py-1",h),children:[u&&(0,l.jsx)("label",{className:"mb-3 block text-dark",htmlFor:p,children:u}),x?.values?.[j]?.[F]?.[N]?.value&&y,(0,l.jsx)(o.Ay,{ref:D,className:r()("rounded-md border border-[#E3E6EA] px-3 py-1",f&&`bg-[${f}]`),classNamePrefix:"select",isDisabled:t,isLoading:s,isClearable:e,isRtl:i,isSearchable:c,options:d,onChange:e=>{let t=e||{label:"",value:""};b?b(t):S(t)},styles:w,isMulti:m,value:x?.values?.[j]?.[F]?.[N]?.value?x?.values?.[j]?.[F]?.[N]:"",components:v?{Control:T}:void 0,placeholder:"",instanceId:p,...O}),x.touched?.[j]?.[F]?.[N]?.value&&x.errors?.[j]?.[F]?.[N]?.value&&(0,l.jsx)("p",{className:"mt-2 text-xs italic text-red-400",children:x.errors?.[j]?.[F]?.[N]?.value})]}):m?(0,l.jsxs)("div",{className:r()("py-1",h),children:[u&&(0,l.jsx)("label",{className:"mb-1 block text-xs text-dark",htmlFor:p,children:u}),x?.values[p]?.value&&y,(0,l.jsx)(o.Ay,{ref:D,className:r()("rounded-md border border-[#
1E3E6EA] px-3 py-1",f&&`bg-[${f}]`),classNamePrefix:"select",isDisabled:t,isLoading:s,isClearable:e,isRtl:i,isSearchable:c,options:d,styles:w,isMulti:m,components:v?{Control:T}:void 0,formatOptionLabel:k,placeholder:A,instanceId:p,...O}),x.touched[p]?.value&&x.errors[p]?.value&&(0,l.jsx)("p",{className:"mt-2 text-xs italic text-red-400",children:x.errors[p]?.value})]}):(0,l.jsxs)("div",{className:r()("py-1",h),children:[u&&(0,l.jsx)("label",{className:"mb-1 block text-xs text-dark",htmlFor:p,children:u}),x?.values[p]?.value&&y,(0,l.jsx)(o.Ay,{ref:D,className:r()("rounded-md border border-[#E3E6EA] px-3 py-1",f&&`bg-[${f}]`,x?.touched[p]&&x?.errors[p]?" border border-red-400":"border border-[#E3E6EA]"),classNamePrefix:"select",isDisabled:t,isLoading:s,isClearable:e,isRtl:i,isSearchable:c,options:d,onChange:e=>{let t=e||{label:"",value:""};b?b(t):S(t)},styles:w,isMulti:m,value:x?.values[p]?.value?x?.values[p]:"",components:v?{Control:T}:void 0,formatOptionLabel:k,placeholder:A,instanceId:p,...O}),x.touched[p]?.value&&x.errors[p]?.value&&(0,l.jsx)("p",{className:"mt-2 text-xs italic text-red-400",children:x.errors[p]?.value})]})}},13547:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var l=s(37876);s(14232);let i=()=>(0,l.jsx)("svg",{width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M5.99998 10.6666L1.33331 5.99998L5.99998 1.33331",stroke:"#7C7D7E",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});var r=s(55726);let n=({linkTitle:e="Back to login",link:t="/auth/login",title:s})=>(0,l.jsxs)("div",{className:"my-4 flex flex-col sm:flex-row sm:items-center sm:space-x-12",children:[(0,l.jsx)(r.A,{link:t,children:(0,l.jsxs)("section",{className:"flex cursor-pointer items-center space-x-2",children:[(0,l.jsx)(i,{}),(0,l.jsx)("span",{children:e})]})}),(0,l.jsx)("h2",{className:"text-[32px]",children:s})]})},26181:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>T});var l,i=s(37876),r=s(15039),n=s.n(r),a=s(56557),o=s.n(a),c=s(74691),d=s(89099),u=s.n(d),p=s(14232),x=s(55351),h=s(24264),m=s(92163),b=s(391),v=s(13547),f=s(36315),g=s(93871),j=s(12998);let F=e=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",...e,children:[(0,i.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M15.75 5.25h-7.5"}),(0,i.jsx)("circle",{cx:1.5,cy:1.5,r:1.5,stroke:"currentColor",strokeWidth:1.5,transform:"matrix(-1 0 0 1 5.25 3.75)"}),(0,i.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M2.25 12.75h7.5"}),(0,i.jsx)("circle",{cx:14.25,cy:12.75,r:1.5,stroke:"currentColor",strokeWidth:1.5})]});var N=s(80107),y=s(69061),k=s(66933),A=s(3630),O=s(12989),D=s(82255),S=((l=S||{}).Outbound="Outbound",l.Inbound="Inbound",l);let w=({flight:e,onFlightSelect:t,selected:s})=>(0,i.jsxs)("section",{onClick:t,className:n()("cursor-pointer space-y-4 rounded-[10px] p-[24px]",s?"bg-[#FFD7AA]":"bg-[#F6F6F6]"),children:[(0,i.jsxs)("div",{className:"flex items-start justify-between",children:[(0,i.jsxs)("div",{className:n()(s?"text-[#363A43]":"text-[#667085]"),children:[(0,i.jsx)("h3",{className:n()("mb-1 text-[16px]"),children:e.FlightDetails&&e.FlightDetails[0]?.FlightEntries&&e.FlightDetails[0]?.FlightEntries[0]?.MarketingAirlineName}),(0,i.jsx)("span",{className:"block text-[10px]",children:e.FlightDetails&&e.FlightDetails[0]?.FlightEntries&&e.FlightDetails[0]?.FlightEntries[0]?.FlightClass})]}),(0,i.jsx)("h3",{className:"text-[16px] font-[700] text-primary",children:(0,O.aL)(e.TotalFare)})]}),(0,i.jsx)("section",{className:"space-y-3",children:e?.FlightDetails?.map((t,l)=>(0,i.jsxs)("section",{children:[(0,i.jsxs)("div",{className:"flex items-center justify-center",children:[(0,i.jsxs)("div",{className:"text-center",children:[(0,i.jsx)("h4",{className:"mb-1 text-[16px] font-bold",children:o()(t?.DepartureDate).format("HH:mm")}),(0,i.jsx)("span",{className:"text-[10px] font-[400]",children:t?.DepartureAirportCode})]}),(0,i.jsx)(m.A,{color:s?"bg-[#363A43]":"bg-[#D0D0D0]",direction:"left"}),(0,i.jsxs)("div",{className:"text-center",children:[(0,i.jsx)("h4",{children:t?.Duration}),(0,i.jsxs)("span",{className:"text-[8px]",children:[" ",e.FlightDetails.length>0&&t?.StopOvers&&t?.FlightEntries.length>1?(0,i.jsxs)("span",{children:[t?.StopOvers," ",(0,i.jsx)("span",{className:"mr-1",children:"stop"}),(0,i.jsx)("span",{className:"space-x-2",children:t?.FlightEntries.slice(0,t.FlightEntries.length-1).map((e,s)=>s===t.FlightEntries.slice(0,t.FlightEntries.length-1).length-1?(0,i.jsx)("span",{children:e.ArrivalAirportCode},s):(0,i.jsxs)("span",{children:[e.ArrivalAirportCode,","]},s))})]}):" Non-stop"]})]}),(0,i.jsx)(m.A,{color:s?"bg-[#363A43]":"bg-[#D0D0D0]",direction:"right"}),(0,i.jsxs)("div",{className:"text-center",children:[(0,i.jsx)("h4",{className:"mb-1 text-[16px] font-bold",children:o()(t?.ArrivalDate).format("HH:mm")}
1),(0,i.jsx)("span",{className:"text-[10px] font-[400]",children:t?.ArrivalAirportCode})]})]}),(0,i.jsx)("h3",{className:n()("text-[16px]",s?"text-[#363A43]":"text-[#667085]"),children:(0,i.jsx)("span",{className:"block",children:o()(t?.DepartureDate).format("DD MMM")})})]},l))})]});function T(){let[e,t]=(0,p.useState)("Outbound"),[s,l]=(0,p.useState)(),[r,n]=(0,p.useState)(),[a,o]=(0,p.useState)({inbounds:[],outbonds:[],inboundAirlines:[],outboundAirlines:[]});(0,p.useEffect)(()=>{let e=(0,D.s)("searchFlight","lifeStyle"),t=(0,D.s)("selectedFlight","lifeStyle");e?(l({...e,returnFlight:e?.type===A.u$.Domestic&&e?.tripType===A.Tg.RoundTrip?e?.data[1]?.ResultList:[],data:e?.type===A.u$.International?e?.data:e?.data[0]?.ResultList}),o(t=>({...t,outbonds:e?.type===A.u$.International?e?.data:e?.data[0]?.ResultList,inbounds:e?.type===A.u$.Domestic&&e?.tripType===A.Tg.RoundTrip?e?.data[1]?.ResultList:[],outboundAirlines:e?.type===A.u$.International?e?.data?.map(e=>e?.FlightDetails?.map(e=>e.MarketingAirlineName))?.map(e=>e[0]):e?.data[0]?.ResultList?.map(e=>e?.FlightDetails?.map(e=>e.MarketingAirlineName))?.map(e=>e[0]),inboundAirlines:e?.type===A.u$.Domestic&&e?.tripType===A.Tg.RoundTrip?e?.data[1]?.ResultList?.map(e=>e?.FlightDetails?.map(e=>e.MarketingAirlineName))?.map(e=>e[0]):[]})),t&&e?.type===A.u$.Domestic&&e?.tripType===A.Tg.RoundTrip&&n(t?.flights[0])):u().push(k.J.lifeStyle.bookMyFlight)},[]);let d=(e,l="Outbound")=>{if(s?.type===A.u$.Domestic&&s?.tripType===A.Tg.RoundTrip){if(r){if(e.flightTripType===r.flightTripType){n(e),t(l);return}(0,D.xF)("selectedFlight",{flights:[{...r},{...e}]},"lifeStyle"),u().push(k.J.lifeStyle.selectedFlights);return}n(e),t(l)}else(0,D.xF)("selectedFlight",{flights:[e],RecommendationID:e.Properties?.RecommendationID?.toString(),CombinationID:e.Properties?.CombinationID?.toString(),AgentId:e.AgentId?.toString(),GdsId:e.GDSId?.toString()},"lifeStyle"),u().push(k.J.lifeStyle.selectedFlights)},[m,O]=(0,p.useState)({inboundFilter:!1,outBoundFilter:!1,isInboundFiltered:!1,isOutBoundFiltered:!1}),S={stopOvers:(0,y.LJ)(),airlines:[]},T=(0,c.Wx)({enableReinitialize:!0,initialValues:S,onSubmit:e=>{if(e.airlines&&e.stopOvers.value){o(t=>({...t,inbounds:s?.returnFlight?.filter(t=>t.FlightDetails.filter(t=>e.airlines.some(s=>s?.value===t.MarketingAirlineName&&e?.stopOvers?.value==="None"?t.StopOvers<1:1===parseInt(e?.stopOvers?.value)?1===t.StopOvers:t.StopOvers>1)).length>0)})),O(e=>({...e,isInboundFiltered:!0,inboundFilter:!1}));return}if(e.airlines){o(t=>({...t,inbounds:s?.returnFlight?.filter(t=>t.FlightDetails.filter(t=>e.airlines.some(e=>e?.value===t.MarketingAirlineName)).length>0)})),O(e=>({...e,isInboundFiltered:!0,inboundFilter:!1}));return}e.stopOvers.label&&(o(t=>({...t,inbounds:s?.returnFlight?.filter(t=>t.FlightDetails.filter(t=>e?.stopOvers?.value==="None"?t.StopOvers<1:1===parseInt(e?.stopOvers?.value)?1===t.StopOvers:t.StopOvers>1).length>0)})),O(e=>({...e,isInboundFiltered:!0,inboundFilter:!1})))}}),C=(0,c.Wx)({initialValues:S,onSubmit:e=>{if(e.airlines&&e.stopOvers.value){o(t=>({...t,outbonds:s?.data.filter(t=>t.FlightDetails.filter(t=>e.airlines.some(s=>s?.value===t.MarketingAirlineName&&(e?.stopOvers?.value==="None"?t.StopOvers<1:1===parseInt(e?.stopOvers?.value)?1===t.StopOvers:t.StopOvers>1))).length>0)})),O(e=>({...e,isOutBoundFiltered:!0,outBoundFilter:!1}));return}if(e.airlines){o(t=>({...t,outbonds:s?.data.filter(t=>t.FlightDetails.filter(t=>e.airlines.some(e=>e?.value===t.MarketingAirlineName)).length>0)})),O(e=>({...e,isOutBoundFiltered:!0,outBoundFilter:!1}));return}e.stopOvers.label&&(o(t=>({...t,outbonds:s?.data.filter(t=>t.FlightDetails.filter(t=>e?.stopOvers?.value==="None"?t.StopOvers<1:1===parseInt(e?.stopOvers?.value)?1===t.StopOvers:t.StopOvers>1).length>0)})),O(e=>({...e,isOutBoundFiltered:!0,outBoundFilter:!1})))}}),E=e=>s?.tripType===A.Tg.RoundTrip&&r&&r?.id===e;return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(h.A,{children:(0,i.jsxs)(N.A,{children:[(0,i.jsx)(v.A,{link:k.J.lifeStyle.bookMyFlight,linkTitle:"Back"}),(0,i.jsx)("h1",{className:"mb-[24px] font-bold",children:"Book flights"}),(0,i.jsx)("section",{className:"rounded bg-white px-[32px] py-[24px]",children:(0,i.jsx)("section",{className:"w-full max-w-[611px]",children:s?.type===A.u$.Domestic&&s?.tripType===A.Tg.RoundTrip?(0,i.jsx)(f.A,{handleTabChange:e=>{t(e)},activeTab:e,sections:[{title:"Outbound",component:(0,i.jsxs)("div",{children:[(0,i.jsxs)("section",{className:"my-4 flex items-center justify-between",children:[(0,i.jsxs)("h3",{className:"",children:[a?.outbonds?.length," flights found"]}
1),(0,i.jsxs)("span",{className:`flex items-center space-x-3 rounded-[10px] ${m.isOutBoundFiltered?"bg-primary text-white":"bg-[#F1F1F1] text-[#363A43]"} p-1 px-3 text-xs`,children:[(0,i.jsxs)("span",{className:"flex cursor-pointer items-center space-x-1",onClick:()=>O(e=>({...e,outBoundFilter:!0})),children:[(0,i.jsx)("span",{className:"",children:"Filters"}),(0,i.jsx)(F,{})]}),m.isOutBoundFiltered&&(0,i.jsx)(x.uDv,{className:"cursor-pointer",onClick:()=>{o(e=>({...e,outbonds:s?.data})),O(e=>({...e,isOutBoundFiltered:!1})),C.resetForm({values:S})}})]})]}),(0,i.jsx)("section",{className:"space-y-4",children:a.outbonds&&a.outbonds?.map((e,t)=>(0,i.jsx)(w,{flight:e,onFlightSelect:()=>d(e,"Inbound"),selected:E(e.id)},t))})]})},{title:"Inbound",component:(0,i.jsxs)("div",{children:[(0,i.jsx)("h2",{className:"text-[14px] text-[#979797]",children:"Please select your return flight"}),(0,i.jsxs)("section",{className:"my-4 flex items-center justify-between",children:[(0,i.jsxs)("h3",{className:"",children:[a?.inbounds?.length," flights found"]}),(0,i.jsxs)("span",{className:`flex items-center space-x-3 rounded-[10px] ${m.isInboundFiltered?"bg-primary text-white":"bg-[#F1F1F1] text-[#363A43]"} p-1 px-3 text-xs`,children:[(0,i.jsxs)("span",{className:"flex cursor-pointer items-center space-x-1",onClick:()=>O(e=>({...e,inboundFilter:!0})),children:[(0,i.jsx)("span",{className:"",children:"Filters"}),(0,i.jsx)(F,{})]}),m.isInboundFiltered&&(0,i.jsx)(x.uDv,{className:"cursor-pointer",onClick:()=>{o(e=>({...e,inbounds:s?.returnFlight})),O(e=>({...e,isInboundFiltered:!1})),T.resetForm({values:S})}})]})]}),(0,i.jsx)("section",{className:"space-y-4",children:a.inbounds&&a.inbounds?.map((e,t)=>(0,i.jsx)(w,{flight:e,onFlightSelect:()=>d(e,"Outbound"),selected:E(e.id)},t))})]})}]}):(0,i.jsxs)("div",{children:[(0,i.jsxs)("section",{className:"my-4 flex items-center justify-between",children:[(0,i.jsxs)("h3",{className:"",children:[a?.outbonds?.length," flights found"]}),(0,i.jsxs)("span",{className:`flex items-center space-x-3 rounded-[10px] ${m.isOutBoundFiltered?"bg-primary text-white":"bg-[#F1F1F1] text-[#363A43]"} p-1 px-3 text-xs`,children:[(0,i.jsxs)("span",{className:"flex cursor-pointer items-center space-x-1",onClick:()=>O(e=>({...e,outBoundFilter:!0})),children:[(0,i.jsx)("span",{className:"",children:"Filters"}),(0,i.jsx)(F,{})]}),m.isOutBoundFiltered&&(0,i.jsx)(x.uDv,{className:"cursor-pointer",onClick:()=>{o(e=>({...e,outbonds:s?.data})),O(e=>({...e,isOutBoundFiltered:!1})),C.resetForm({values:S})}})]})]}),(0,i.jsx)("section",{className:"space-y-4",children:a?.outbonds&&a?.outbonds?.map((e,t)=>(0,i.jsx)(w,{flight:e,onFlightSelect:()=>d(e),selected:E(e.id)},t))})]})})}),(0,i.jsx)(b.A,{showModal:m.inboundFilter,close:()=>O(e=>({...e,inboundFilter:!1})),children:(0,i.jsxs)("form",{autoComplete:"off",noValidate:!0,onSubmit:T.handleSubmit,className:"space-y-6",children:[(0,i.jsx)("h1",{className:"border-b pb-2 text-[24px] font-bold",children:"Filter Flights"}),(0,i.jsx)(j.A,{options:a.inboundAirlines.reduce((e,t)=>(e.includes(t)||e.push(t),e),[]).map(e=>({label:e,value:e})),label:"Airlines",name:"airlines",bg:"#F8F8F8",formik:T,onChange:e=>T.setFieldValue("airlines",e),isMulti:!0,value:T.values.airlines}),(0,i.jsx)(j.A,{options:[{label:"None",value:"None"},{label:"1",value:1},{label:"2+",value:2}],label:"Stop Overs",name:"stopOvers",bg:"#F8F8F8",formik:T,value:T.values.stopOvers}),(0,i.jsx)(g.A,{title:"Filter",type:"submit"})]})}),(0,i.jsx)(b.A,{showModal:m.outBoundFilter,close:()=>O(e=>({...e,outBoundFilter:!1})),children:(0,i.jsxs)("form",{autoComplete:"off",noValidate:!0,onSubmit:C.handleSubmit,className:"space-y-6",children:[(0,i.jsx)("h1",{className:"border-b pb-2 text-[24px] font-bold",children:"Filter Flights"}),(0,i.jsx)(j.A,{options:a.outboundAirlines.reduce((e,t)=>(e.includes(t)||e.push(t),e),[]).map(e=>({label:e,value:e})),label:"Airlines",name:"airlines",bg:"#F8F8F8",formik:C,onChange:e=>C.setFieldValue("airlines",e),isMulti:!0,value:C.values.airlines}),(0,i.jsx)(j.A,{options:[{label:"None",value:"None"},{label:"1",value:1},{label:"2+",value:2}],label:"Stop Overs",name:"stopOvers",bg:"#F8F8F8",formik:C,value:C.values.stopOvers}),(0,i.jsx)(g.A,{title:"Filter",type:"submit"})]})})]})})})}},35604:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/lifestyle/flights",function(){return s(26181)}])},36315:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(37876);s(14232);let i=({title:e,activeTab:t,setActiveTab:s})=>(0,l.jsx)("section",{onClick:()=>
1s(e),className:`cursor-pointer whitespace-nowrap pb-1 text-center text-[16px] font-semibold ${t===e?"border-b-2 border-primary font-bold":"text-[#747474]"}`,children:e}),r=({sections:e,activeTab:t,handleTabChange:s})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("section",{className:"flex space-x-8 overflow-x-scroll border-b border-gray-400",children:e.map((e,r)=>(0,l.jsx)(i,{title:e.title,activeTab:t,setActiveTab:s},r))}),e.map((e,s)=>(0,l.jsx)("section",{className:"mt-3",children:e.title===t&&e.component},s))]})},51729:(e,t,s)=>{"use strict";s.d(t,{k5:()=>o});var l=s(14232),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},r=l.createContext&&l.createContext(i),n=function(){return(n=Object.assign||function(e){for(var t,s=1,l=arguments.length;s<l;s++)for(var i in t=arguments[s])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a=function(e,t){var s={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&0>t.indexOf(l)&&(s[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,l=Object.getOwnPropertySymbols(e);i<l.length;i++)0>t.indexOf(l[i])&&Object.prototype.propertyIsEnumerable.call(e,l[i])&&(s[l[i]]=e[l[i]]);return s};function o(e){return function(t){return l.createElement(c,n({attr:n({},e.attr)},t),function e(t){return t&&t.map(function(t,s){return l.createElement(t.tag,n({key:s},t.attr),e(t.child))})}(e.child))}}function c(e){var t=function(t){var s,i=e.attr,r=e.size,o=e.title,c=a(e,["attr","size","title"]),d=r||t.size||"1em";return t.className&&(s=t.className),e.className&&(s=(s?s+" ":"")+e.className),l.createElement("svg",n({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,c,{className:s,style:n(n({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),o&&l.createElement("title",null,o),e.children)};return void 0!==r?l.createElement(r.Consumer,null,function(e){return t(e)}):t(i)}},92163:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var l=s(37876);function i({color:e="bg-[#D0D0D0]",direction:t,width:s="w-[20%]"}){return"left"===t?(0,l.jsxs)("div",{className:`mx-2 flex ${s} items-center`,children:[(0,l.jsx)("span",{className:`block h-[5px] w-[5px] rounded-full ${e}`}),(0,l.jsx)("div",{className:`h-[1px] w-[100%] ${e}`})]}):(0,l.jsxs)("div",{className:`mx-2 flex ${s} items-center`,children:[(0,l.jsx)("div",{className:`h-[1px] w-[100%] ${e}`}),(0,l.jsx)("span",{className:`block h-[5px] w-[5px] rounded-full ${e}`})]})}s(14232)},93871:(e,t,s)=>{"use strict";s.d(t,{A:()=>a,r:()=>n});var l=s(37876),i=s(15039),r=s.n(i);let n=({action:e,title:t,color:s,bg:i,icon:n})=>(0,l.jsxs)("button",{onClick:e,className:r()("flex cursor-pointer items-center justify-center space-x-2 rounded-[6px] p-2 px-3 text-[12px]",s,i),children:[(0,l.jsx)("span",{children:t}),n]}),a=({title:e,showRightIcon:t,outlined:s,containerClass:i,padding:r="py-4",containedClass:n="bg-primary text-white",outlinedClass:a="border border-primary text-primary",leftIcon:o,rightIcon:c,type:d="submit",loading:u,disabled:p,...x})=>(0,l.jsx)("section",{className:`${i} rounded font-semibold `,children:(0,l.jsxs)("button",{disabled:p||u,type:d,className:`flex w-full items-center shadow-md ${t?"justify-between":"justify-center "} rounded-[8px] ${s?a:n} ${r} text-base focus:outline-none`,...x,children:[o&&o,(0,l.jsx)("span",{className:"flex items-center",children:e}),t&&c]})})}},e=>{e.O(0,[9923,1167,9593,7100,8230,4691,2068,5862,4356,9086,636,6593,8792],()=>e(e.s=35604)),_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.