1import{m as H,r as n,S as R,E as w,u as q,c as C,j as e,L as r,a as U,y as l}from"./app-BH2aA9za.js";import{I as W}from"./IconSidebar-Dx5v_epy.js";import{S as V}from"./SendEnquiry-BhPywX6w.js";import"./recaptcha-wrapper-_zRl_3i1.js";import"./index-1korm-XT.js";import"./hoist-non-react-statics.cjs-CLGUCK8Q.js";import"./index-CQs01UJ0.js";/* empty css */import"./FloatingInput-gEwVTnQ7.js";import"./CustomCaptcha-BwX9sb28.js";function oe({user:c}){const{url:S}=H(),x=S==="/",i=typeof window<"u"?window.location.origin+"/":"/",{search:Z,setSearch:D}=n.useContext(R),{Envpro:f}=n.useContext(w),[g,d]=n.useState(""),[p,j]=n.useState(!1),[b,m]=n.useState(!1),[E,P]=n.useState(""),[k,T]=n.useState(!1),{processing:B}=q(),[h,v]=n.useState(""),[Y,$]=n.useState([]),[z,N]=n.useState(1),{FooterData:F}=n.useContext(w),u=F?.contact;n.useEffect(()=>{typeof document<"u"&&I(`${i}images/${f}/favicon.png`),M()},[]);const I=s=>{let a=document.querySelector("link[rel~='icon']");a||(a=document.createElement("link"),a.rel="icon",document.getElementsByTagName("head")[0].appendChild(a)),a.href=s},M=async s=>{const a={CurrencyIds:s};try{const t=await C.post("/getcurrency",a),{data:o}=t;o.status&&o.status.success&&$(o.MasterData),N(o.CurrencyId),s>0&&typeof window<"u"}catch(t){console.error(t)}},L=s=>{x||U.get("/"),D(s),j(!1),d("")},y=s=>{d(g===s?"":s)},_=()=>{d(""),setTimeout(()=>{m(!1)},1e4)},A=async s=>{if(s.preventDefault(),!h)return l.error("Please Select Booking Type",{autoClose:2e3}),!1;const a={bookingid:s.target.bookingid.value,bookemail:s.target.bookemail.value,type:h};if(a.bookingid=="")return l.error("Please Enter Booking ID",{autoClose:2e3}),!1;if(a.bookemail=="")return l.error("Please Enter email ID",{autoClose:2e3}),!1;if(!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(a.bookemail))return l.error("Please Enter Valid Email ID",{autoClose:2e3}),!1;C.post("/check-booking-status",a).then(t=>{const{data:o}=t;o.status&&o.bookingstatus=="found"?(P(o.DURL),setTimeout(()=>{m(!0)},100),l.success(o.message,{autoClose:2e3})):(l.error(o.message,{autoClose:2e3}),m(!1))}).catch(t=>{m(!1),t.response||(t.request?l.error(t.request,{autoClose:2e3}):l.error(t.message,{autoClose:2e3}))})};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"landing-header",children:e.jsx("nav",{className:"navbar navbar-expand-lg navbar-light bg-light py-0",children:e.jsxs("div",{className:"container",children:[e.jsx(r,{href:"/",className:"navbar-brand",onClick:()=>L("Flights"),children:e.jsx("img",{src:`${i}
1images/crossworldonline/logo.png`,alt:"Crossworldonline logo",className:"img-fluid",width:"200"})}),e.jsx("button",{className:"navbar-toggler",type:"button",onClick:()=>j(!p),children:e.jsx("span",{className:"navbar-toggler-icon"})}),e.jsx("div",{className:`collapse navbar-collapse ${p?"show":""}`,id:"navbarSupportedContent",children:e.jsxs("ul",{className:"navbar-nav ml-auto right-link",children:[u?.mobile&&e.jsx("li",{className:"nav-item right-custom-link",children:e.jsxs("a",{href:`tel:${u.mobile}`,className:"d-flex align-items-center",style:{gap:"5px",color:"white"},children:[e.jsx("div",{className:"rounded-full themeBackground icon text-white d-grid place-items-center",children:e.jsx("i",{className:"fa fa-phone"})}),e.jsx("div",{className:"font-weight-bold text-white",children:u.mobile})]})}),e.jsxs("li",{className:"nav-item dropdown lastnav nav-item-booking",children:[e.jsxs("a",{className:"nav-link font-weight-bold rounded",href:"#",id:"navbardrop",onClick:()=>y("booking"),children:[e.jsx("i",{className:"fa fa-calendar"}),"  Booking Status  ",e.jsx("i",{className:"fa fa-angle-down"})]}),e.jsx("div",{className:`shadow dropdown-menu cancellation-menu ${g==="booking"?"show":""}`,children:e.jsx("form",{id:"bookingFlight",method:"post",onSubmit:A,children:e.jsx("div",{className:"cancellation",children:e.jsxs("div",{children:[e.jsxs("div",{className:"mb-2",children:[e.jsxs("div",{className:"form-check form-check-inline",children:[e.jsx("input",{className:"form-check-input",type:"radio",name:"booking_type",id:"flight",value:"flight",checked:h==="flight",onChange:s=>v(s.target.value)}),e.jsx("label",{className:"form-check-label",htmlFor:"flight",children:"Flight"})]}),e.jsxs("div",{className:"form-check form-check-inline",children:[e.jsx("input",{className:"form-check-input",type:"radio",name:"booking_type",id:"hotel",value:"hotel",checked:h==="hotel",onChange:s=>v(s.target.value)}),e.jsx("label",{className:"form-check-label",htmlFor:"hotel",children:"Hotel"})]})]}),e.jsx("div",{className:"booking-status",children:e.jsx("h3",{children:"Enter your Booking Reference number"})}),e.jsx("div",{className:"form-group",children:e.jsx("input",{type:"text",className:"form-control",name:"bookingid",id:"bookingid",placeholder:"Eg. ATxxxxxxxxxx"})}),e.jsx("div",{className:"form-group m-0",children:e.jsx("input",{type:"text",className:"form-control",name:"bookemail",id:"bookemail",placeholder:"Enter your email"})}),e.jsxs("div",{children:[e.jsx("p",{className:"mesg",style:{color:"green"}}),b&&e.jsx("a",{type:"button",href:`${i}${E}
1`,target:"__BLANK",className:"btn btn-sm themeBackground text-white mr-2 cancellation-close-btn",children:"Print Ticket"}),!b&&e.jsx("button",{type:"submit",className:"btn btn-sm themeBackground text-white cancellation-btn mr-2",disabled:B,children:"Check Status"}),e.jsx("button",{type:"button",className:"btn btn-sm themeBackground text-white cancellation-close-btn",onClick:()=>_(),children:"Close"})]})]})})})})]}),c&&c.is_admin?e.jsx(e.Fragment,{}):e.jsx(e.Fragment,{children:c?e.jsxs("li",{className:"nav-item dropdown",children:[e.jsxs("a",{className:"nav-link text-capitalize font-weight-bold",href:"#",role:"button",id:"navbarProfileDrop",onClick:()=>y("profile"),children:[e.jsx("i",{className:"fa fa-user-circle"}),"Â ",c.name,"Â Â ",e.jsx("i",{className:"fa fa-angle-down"})]}),e.jsx("div",{className:`dropdown-menu loginnew-dropdown ${g==="profile"?"show":""}`,children:e.jsxs("div",{className:"login-dropdown",children:[e.jsx(r,{href:"/profile",children:e.jsxs("div",{className:"login-dropdowmmenu",children:[e.jsx("span",{className:"loginimage",children:e.jsx("img",{src:`${i}images/login-profile.png`,alt:"My Profile",className:"img-fluid"})}),e.jsxs("h2",{children:["My Profile",e.jsx("span",{className:"d-block",children:"Manage Your Profile, Traveller Detail, Login Detail, Password"})]})]})}),e.jsx("hr",{}),e.jsx(r,{href:"/mytrip",children:e.jsxs("div",{className:"login-dropdowmmenu",children:[e.jsx("span",{className:"loginimage",children:e.jsx("img",{src:`${i}images/my-trip.png`,alt:"My Trips",className:"img-fluid"})}),e.jsxs("h2",{children:["My Trips",e.jsx("span",{className:"d-block",children:"See Booking Details, Print E-ticket, Cancel Booking, Check Refund & More"})]})]})}),e.jsx("hr",{}),e.jsx(r,{href:"/mywallet",children:e.jsxs("div",{className:"login-dropdowmmenu",children:[e.jsx("span",{className:"loginimage",children:e.jsx("img",{src:`${i}images/wallet.png`,alt:"My Wallet",className:"img-fluid"})}),e.jsxs("h2",{children:["My Wallet",e.jsx("span",{className:"d-block",children:"Use Your Wallet money to avail even greater discounts"})]})]})}),e.jsx("hr",{}),e.jsx(r,{href:"/customer/logout",method:"post",as:"button",className:"w-100 bg-white border-0 text-left",children:e.jsxs("div",{className:"login-dropdowmmenu",children:[e.jsx("span",{className:"loginimage text-muted",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"27",height:"27",viewBox:"0 0 512 512",children:e.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M304 336v40a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V136a40 40 0 0 1 40-40h152c22.09 0 48 17.91 48 40v40m64 160l80-80l-80-80m-192 80h256"})})}),e.jsxs("h2",{className:"mb-0",children:["Log Out",e.jsx("span",{className:"d-block",children:"Signing off, have a great day"})]})]})})]})})]}):e.jsx("li",{className:"nav-item",children:e.jsxs(r,{href:"/customer/login",className:"nav-link font-weight-bold rounded",children:[e.jsx("i",{className:"fa fa-user-circle"})," Login/SignUp"]})})})]})})]})})}),f!=="aerobide"&&e.jsx(W,{}),k&&e.jsx(V,{open:k,closeModal:()=>T(!1)})]})}export{oe as default};
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.