1import{r as e,j as s,c as a,a as t,L as i,a1 as l,bC as r,P as n,b as c,u as o,U as d}from"./index-dqSqdwqf.js";import{H as _}from"./heroBanner-DWSoG-ge.js";import{M as m}from"./metaTags-6qm7SYm7.js";import{H as h}from"./HtmlParser-B1fQvXur.js";import"./react-tooltip.min-bpjbbSNY.js";import"./floating-ui.dom-B8bHMvy1.js";import"./index-AEDesM2K.js";import"./index-BaqZIR9i.js";import"./index-BmL2jti6.js";function p(a){const[t,i]=e.useState(!1);return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:`search__by__route__results search__by__route__results_${a.index+1}`,children:[s.jsx("div",{className:"row showhide",children:s.jsxs("div",{className:"col-12",children:[s.jsxs("p",{className:"search__by__route__originText",children:[s.jsx("span",{className:"originTxt__width",children:"Origin"}),s.jsx("span",{children:a.item.origin})]}),s.jsxs("p",{className:"search__by__route__destinationText",children:[s.jsx("span",{children:"Destination"}),s.jsx("span",{children:a.item.destination})]}),s.jsx("p",{className:"search__by__route__timeGap",children:`Next bus from origin in ${Math.floor(a.item.closestTime[0]/60)>0?`${Math.floor(a.item.closestTime[0]/60)} hour(s)`:""} ${Math.floor(a.item.closestTime[0]%60)} min(s)`})]})}),s.jsxs("div",{className:"row showhide bmtcSection",children:[s.jsxs("div",{className:"col-12 col-md-12 col-lg-6",children:[s.jsxs("table",{className:"search__by__route__timetable_1 timetable__styling",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:"Departure"}),s.jsx("th",{children:"Arrival"})]})}),s.jsx("tbody",{children:a.item.departureTime.map((e,t)=>s.jsxs("tr",{children:[s.jsx("td",{children:e}),s.jsx("td",{children:a.item.arrivalTime[t]})]},t))})]}),s.jsxs("table",{className:"search__by__route__numbers mobile__hide",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:"No. Of Stops"}),s.jsx("th",{children:"Journey distance"}),s.jsx("th",{children:"Fare"})]})}),s.jsx("tbody",{children:s.jsxs("tr",{children:[s.jsxs("td",{className:"no__of__routes_1",children:[s.jsx("p",{children:s.jsx("span",{children:a.item.viastations.length})}),s.jsx("a",{className:"view__routes",onClick:()=>i(!0),children:"View all stops"})]}),s.jsxs("td",{children:[a.item.distance,"km"]}),s.jsxs("td",{children:["Rs. ",a.item.fare]})]})})]}),s.jsxs("div",{className:"col-12 search__by__route__numbers__mobile mobile__show",children:[s.jsx("p",{children:"No. Of Stops"}),s.jsxs("p",{className:"no__of__routes_1",children:[s.jsx("span",{children:s.jsx("span",{children:a.item.viastations.length})}),s.jsx("a",{onClick:()=>i(!0),className:"view__routes",children:"View all stops"})]}),s.jsx("p",{children:"Journey distance"}),s.jsxs("p",{children:[a.item.distance," km"]}),s.jsx("p",{children:"Fare"}),s.jsxs("p",{children:["Rs. ",a.item.fare]})]})]}),s.jsx("div",{className:"col-12 col-md-12 col-lg-6 vayu__vajra__contact__details",children:s.jsxs("div",{className:"vayu__vajra__contact__heading",children:[s.jsx("p",{children:" BMTC Contact Details"}),s.jsxs("div",{className:"vayu__vajra__contact__info contact__info__1",children:[s.jsx("p",{className:"vayu__vajra__contact__text title__text__1",children:s.jsx("span",{children:"BMTC airport kiosk information"})}),s.jsxs("p",{className:"vayu__vajra__phone__details__1 phone__numbers",children:[s.jsx("p",{children:"+91-8027607989"}),s.jsx("p",{children:"+91-7760991269"})]}),s.jsx("p",{className:"vayu__vajra__contact__email",children:"[email protected]"})]}),s.jsxs("div",{className:"vayu__vajra__contact__info contact__info__2",children:[s.jsx("p",{className:"vayu__vajra__contact__text title__text__2",children:s.jsx("span",{children:"BMTC, Kempegowda Bus Stand"})}),s.jsxs("p",{className:"vayu__vajra__phone__details__2 phone__numbers",children:[s.jsx("p",{children:"+91-8022952311"}),s.jsx("p",{children:"+91-8022952314"})]})]}),s.jsxs("div",{className:"vayu__vajra__contact__info contact__info__3",children:[s.jsx("p",{className:"vayu__vajra__contact__text title__text__3",children:s.jsx("span",{children:"BMTC, Shivajinagar Bus Stand"})}),s.jsxs("p",{className:"vayu__vajra__phone__details__3 phone__numbers",children:[s.jsx("p",{children:"+91-8022952321"}),s.jsx("p",{children:"+91-8022952324"})]})]})]})})]})]}),s.jsx("div",{className:t?"modal modal__show":"modal",style:{zIndex:"9999"},id:"vayuVajraSearchByRoute",tabindex:"-1",role:"dialog","aria-labelledby":"mySmallMod
1alLabel","aria-hidden":"true",children:s.jsx("div",{className:"modal-dialog modal-dialog-centered modal-dialog-scrollable",children:s.jsx("div",{className:"modal-content",children:s.jsxs("div",{className:"modal-body",children:[s.jsxs("div",{className:"modal-body-header",children:[s.jsx("button",{type:"button",className:"close","data-dismiss":"modal",onClick:()=>i(!1),children:"Ã"}),s.jsxs("p",{className:"search__by__route__originText",children:[s.jsx("span",{className:"originTxt__width",children:"Origin"})," ",s.jsx("span",{children:a.item.origin})]}),s.jsxs("p",{className:"search__by__route__destinationText",children:[s.jsx("span",{children:"Destination"})," ",s.jsx("span",{children:a.item.destination})]})]}),s.jsx("p",{className:"modal-body-bus-routes",children:"Bus Stops"}),s.jsx("div",{className:"all__bus__routes all__bus__routes__1",children:a.item.origin===a.item.viastations[0].stopName?a.item.viastations.map((e,t)=>s.jsx("p",{className:0===t||t===a.item.viastations.length-1?"blue__dot":"",children:s.jsx("span",{children:e.stopName})},t)):a.item.viastations.slice(0).reverse().map((e,t)=>s.jsx("p",{className:0===t||t===a.item.viastations.length-1?"blue__dot":"",children:s.jsx("span",{children:e.stopName})},t))})]})})})})]})}function x(a){const[t,i]=e.useState(!1),[l,r]=e.useState(!1);return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:`search__by__stop__results search__by__stop__results_${a.index+1}`,children:[s.jsx("div",{className:"row result__header",children:s.jsx("div",{className:"col-12",children:s.jsxs("a",{className:"search__by__stop__heading search__by__route__heading__opened",children:["Route - ",a.item.serviceName,s.jsx("span",{className:l?"faq__toggle--arrow faq__icons-up":"faq__toggle--arrow faq__icons-down","aria-hidden":"true",onClick:()=>r(!l)})]})})}),s.jsx("div",{className:"row showhide",style:l?{display:"none"}:{},children:s.jsxs("div",{className:"col-12",children:[s.jsxs("p",{className:"search__by__stop__originText faq__inner",children:[s.jsx("span",{className:"originTxt__width",children:"Origin"}),s.jsx("span",{children:a.item.origin})]}),s.jsxs("p",{className:"search__by__stop__destinationText faq__inner",children:[s.jsx("span",{children:"Destination"}),s.jsx("span",{children:a.item.destination})]})]})}),s.jsxs("div",{className:"row faq__inner showhide bmtcSection",style:l?{display:"none"}:{},children:[s.jsxs("div",{className:"col-12 col-md-12 col-lg-6 ",children:[s.jsxs("table",{className:"search__by__stop__timetable_1 timetable__styling",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:"Departure"}),s.jsx("th",{children:"Arrival"})]})}),s.jsx("tbody",{children:a.item.departureTime.map((e,t)=>s.jsxs("tr",{children:[s.jsx("td",{children:e}),s.jsx("td",{children:a.item.arrivalTime[t]})]},t))})]}),s.jsxs("table",{className:"search__by__stop__numbers mobile__hide",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:"No. Of Stops"}),s.jsx("th",{children:"Journey distance"}),s.jsx("th",{children:"Fare"})]})}),s.jsx("tbody",{children:s.jsxs("tr",{children:[s.jsxs("td",{className:"no__of__stops_1",children:[s.jsx("p",{children:s.jsx("span",{children:a.item.viastations.length})}),s.jsx("a",{className:"view__stops",onClick:()=>i(!0),children:"View all stops"})]}),s.jsxs("td",{children:[a.item.distance," km"]}),s.jsxs("td",{children:["Rs. ",a.item.fare]})]})})]})]}),s.jsxs("div",{className:"col-12 search__by__stop__numbers__mobile mobile__show",children:[s.jsx("p",{children:"No. Of Stops"}),s.jsxs("p",{className:"no__of__stops_1",children:[s.jsx("span",{children:s.jsx("span",{children:a.item.viastations.length})}),s.jsx("a",{className:"view__stops",onClick:()=>i(!0),children:"View all stops"})]}),s.jsx("p",{children:"Journey distance"}),s.jsxs("p",{children:[a.item.distance," km"]}),s.jsx("p",{children:"Fare"}),s.jsxs("p",{children:["Rs. ",a.item.fare]})]}),s.jsx("div",{className:"col-12 col-md-12 col-lg-6 vayu__vajra__contact__details",children:s.jsxs("div",{className:"vayu__vajra__contact__heading",children:[s.jsx("p",{children:"BMTC Contact Details"}),s.jsxs("div",{className:"vayu__vajra__contact__info contact__info__1",children:[s.jsx("p",{className:"vayu__vajra__contact__text title__text__1",children:s.jsx("span",{children:"BMTC airport kiosk information"})}),s.jsxs("p",{className:"vayu__vajra__phone__details__1 phone__numbers",children:[s.jsx("p",{children:"+91-7760991269"}),s.jsx("p",{children:"+91-8027607989"})]}),s.jsx("p",{className:"vayu__vajra__contact__email",children:"[email protected]"})]}),s.jsxs("div",{className:"vayu__vajra__contact__info contact__info__2",children:[s.jsx("p",{className:"vayu__vajra__contact__text title__text__2",children:s.jsx("span",{children:"BMTC, Kempegowda Bus Stand"})}),s.jsxs("p",{className:"vayu__vajra__phone__details__2 phone__numbers",children:[s.jsx("p",{children:"+91-8022952311"}),s.jsx("p",{children:"+91-8022952314"})]})]}),s.jsxs("div",{className:"vayu__vajra__contact__info contact__info__3",children:[s.jsx("p",{className:"vayu__vajra__contact__text title__text__3",children:s.jsx("span",{children:"BMTC, Shivajinagar Bus Stand"})}),s.jsxs("p",{className:"vayu__vajra__phone__details__3 phone__numbers",children:[s.jsx("p",{children:"+91-8022952321"}),s.jsx("p",{children:"+91-8022952324"})]})]})]})})]})]}),s.jsx("div",{className:t?"modal modal__show":"modal",id:"vayuVajraSearchByStop",style:{zIndex:"9999"},children:s.jsx("div",{className:"modal-dialog modal-dialog-centered modal
1-dialog-scrollable",children:s.jsx("div",{className:"modal-content",children:s.jsxs("div",{className:"modal-body",children:[s.jsxs("div",{className:"modal-body-header",children:[s.jsx("button",{type:"button",className:"close","data-dismiss":"modal",onClick:()=>i(!1),children:"Ã"}),s.jsxs("p",{className:"search__by__stop__originText faq__inner",children:[s.jsx("span",{className:"originTxt__width",children:"Origin"}),s.jsx("span",{children:a.item.origin})]}),s.jsxs("p",{className:"search__by__stop__destinationText faq__inner",children:[s.jsx("span",{children:"Destination"})," ",s.jsx("span",{children:a.item.destination})]}),s.jsxs("p",{className:"modelNoOfStops_1",children:[s.jsx("span",{className:"stopTxt__width",children:"No. Of Stops"}),s.jsx("span",{children:a.item.viastations.length})]})]}),s.jsx("p",{className:"modal-body-bus-stops",children:"Bus Stops"}),s.jsx("div",{className:"all__bus__stops all__bus__stops__1",children:a.item.origin===a.item.viastations[0].stopName?a.item.viastations.map((e,t)=>s.jsx("p",{className:a.origin===e.stopId||a.destination===e.stopId?"blue__dot":"",children:s.jsx("span",{children:e.stopName})},t)):a.item.viastations.slice(0).reverse().map((e,t)=>s.jsx("p",{className:a.origin===e.stopId||a.destination===e.stopId?"blue__dot":"",children:s.jsx("span",{children:e.stopName})},t))})]})})})})]})}function u(c){const[o,d]=e.useState("Stop"),[_,u]=e.useState([]),[j,v]=e.useState([]),[N,b]=e.useState(""),[f,g]=e.useState(""),[y,w]=e.useState({}),[S,C]=e.useState(!1),[k,L]=e.useState({}),[G,T]=e.useState(!1),[q,I]=e.useState([]),[B,D]=e.useState(""),[F,O]=e.useState(!1),[R,E]=e.useState({});e.useEffect(()=>{M(),H()},[]);const M=async()=>{try{let e=a.api.vayuVajraStops,s=await t.get(e),i=await s.json();200===s.status&&(u(i.stops),i.root.length>0&&w({stopId:i.root[0].stopId,stopName:i.root[0].stopName}))}catch(e){console.log(e)}},H=async()=>{try{let e=a.api.vayuVajraServices,s=await t.get(e),i=await s.json();200===s.status&&(i.services.splice(0,0,"Choose Route"),I(i.services))}catch(e){console.log(e)}},V=e=>{const s=_;let a=[];const t=e.target.value;t.length>0&&void 0!==s&&(a=s.filter(e=>e.stopName.toLowerCase().includes(t.toLowerCase()))),v(a),b(t)},W=()=>{const e=j;return 0===e.length?null:s.jsx("ul",{style:{backgroundColor:"#fff",border:"1px solid #c5c5c5",zIndex:"100",position:"absolute",width:"100%",listStyle:"none",outline:"0px",paddingLeft:"10px",margin:"0px"},children:e.map(e=>s.jsx("li",{onClick:s=>(e=>{if(e===y.stopName)return n.error("Origin & Destination should not be same"),b(""),v([]),!1;v([]),b(e)})(e.stopName),children:A(e.stopName,N)},e.stopName))})};function A(e,a){const t=e.split(new RegExp(`(${a})`,"gi"));return s.jsxs("span",{children:[" ",t.map((e,t)=>s.jsx("span",{style:e.toLowerCase()===a.toLowerCase()?{fontWeight:"bold"}:{},children:e},t))," "]})}return s.jsxs(s.Fragment,{children:[s.jsx(m,{data:null==c?void 0:c.item,url:window.location.href}),_&&q?s.jsx("div",{children:s.jsxs("div",{className:"aem-Grid aem-Grid--12 aem-Grid--default--12 ",children:[c.item?h(c.item.content_blocks[0].html):null,s.jsx("div",{className:"tabs aem-GridColumn aem-GridColumn--default--12",children:s.jsx("div",{className:"tab-capsule",children:s.jsx("div",{className:"component tabs__component",children:s.jsx("div",{className:"container-fluid tabs__component--fullWidth",children:s.jsx("div",{className:"row",children:s.jsx("div",{className:"col-12",children:s.jsxs("div",{className:"tabs",children:[s.jsx("div",{className:"tabs--rowShadow",children:s.jsxs("ul",{className:"tabs__menu",role:"tablist",children:[s.jsx("li",{className:"Stop"===o?"tabs__item active":"tabs__item",role:"tab",onClick:()=>d("Stop"),style:{cursor:"pointer"},children:s.jsx("a",{className:"tabs__link",children:"Search By Stop"})}),s.jsx("li",{className:"Route"===o?"tabs__item active":"tabs__item",role:"tab",onClick:()=>d("Route"),style:{cursor:"pointer"},children:s.jsx("a",{className:"tabs__link",children:"Search By Route"})})]})}),s.jsxs("div",{className:"tabs__content",children:[s.jsx("div",{id:"searchByStop",className:"tabs__pane",style:"Stop"===o?{}:{display:"none"},children:s.jsx("div",{children:s.jsxs("div",{className:"aem-Grid aem-Grid--12 aem-Grid--default--12 ",children:[s.jsx("div",{className:"searchbystop aem-GridColumn aem-GridColumn--default--12",children:s.jsx("div",{className:"component vayu__vajra__search__by__stop","data-link":"/travellers/transport-parking/jcr:content/root/responsivegrid/tabs/item0/tabs/item0/searchbystop.allStops.json","data-airport":"Kempegowda International Airport",children:s.jsxs("div",{className:"container",children:[s.jsxs("form",{className:"",noValidate:!0,children:[s.jsx("div",{className:"form-row",children:s.jsxs("div",{className:"col-md-6 col-lg-4 text_field_alignment",children:[s.jsx("input",{type:"typeahead",id:"stop__origin",className:"form-control stop__origin",autoComplete:"off",value:G?y.stopName:N,onChange:e=>G?null:V(e),disabled:!!G,required:!0}),G?null:W(),s.jsx("label",{htmlFor:"stop__origin",children:"Origin"}),s.jsx("a",{role:"button",className:"swapping__text__fields","aria-label":"swapping arrow",onClick:()=>{T(!G),C(!1)},children:s.jsx("span",{className:"swapping__arrows"})})]})}),s.jsx("div",{className:"form-row",children:s.jsxs("div",{className:"col-md-6 col-lg-4 text_field_alignment",children:[s.jsx("input",{type:"typeahead",id:"stop__destination",value:G?N:y.stopName,disabled:!G,onChange:e=>G?V(e):null,className:"form-control stop__destination",required:!0}
1),G?W():null,s.jsx("label",{htmlFor:"stop__destination",children:"Destination"})]})}),s.jsx("div",{className:"form-row",children:s.jsx("div",{className:"col-md-6 col-lg-4",children:s.jsx("a",{style:{color:"#fff"},className:""===N?"search__by__stop__button link__disabled":"search__by__stop__button",onClick:()=>""!==N?(async()=>{try{let e="";_.forEach(s=>{s.stopName===N&&(e=s.stopId,g(e))});let s=`${a.api.vayuVajraServicesSearch}`,i=await t.get(s,{origin:G?y.stopId:e,destination:G?e:y.stopId,ap:G?"o":"d"}),l=await i.json();200===i.status&&"data could not be fetched"!==l.message&&(L(l),C(!0))}catch(e){console.log(e)}})():null,children:"Search"})})}),S?k.routes.map((e,a)=>s.jsx(x,{item:e,index:a,origin:G?y.stopId:f,destination:G?f:y.stopId},a)):null]}),s.jsxs("div",{className:"search__by__stop__static__text hide",children:[s.jsx("p",{className:"origin",children:"Origin"}),s.jsx("p",{className:"destination",children:"Destination"}),s.jsx("p",{className:"departure",children:"Departure"}),s.jsx("p",{className:"arrival",children:"Arrival"}),s.jsx("p",{className:"noOfStops",children:"No. Of Stops"}),s.jsx("p",{className:"journeyDistance",children:"Journey distance"}),s.jsx("p",{className:"fare",children:"Fare"}),s.jsx("p",{className:"viewAllStp",children:"View all stops"}),s.jsx("p",{className:"busStpTxt",children:"Bus Stops"}),s.jsxs("p",{className:"RouteHeadingTxt",children:["Route -"," "]})]}),s.jsx("div",{children:s.jsxs("div",{className:"no__results",children:[s.jsxs("div",{className:"error__heading",children:[s.jsx("div",{className:"error__image"}),s.jsx("p",{className:"error__title",children:"Clear Skies Here!"})]}),s.jsxs("div",{className:"error__body",children:[s.jsx("p",{className:"error__subtitle"}),s.jsx("p",{className:"error__description"})]})]})})]})})}),s.jsx("div",{className:"text aem-GridColumn aem-GridColumn--default--12",children:s.jsx("div",{className:"cmp-text",children:s.jsx("p",{children:s.jsx("span",{className:"rte__body-text",children:c.item?c.item.content_blocks[0].disclaimer:""})})})})]})})}),s.jsx("div",{id:"searchByRoute",className:"tabs__pane",style:"Route"===o?{}:{display:"none"},children:s.jsx("div",{children:s.jsxs("div",{className:"aem-Grid aem-Grid--12 aem-Grid--default--12 ",children:[s.jsx("div",{className:"searchbyroute aem-GridColumn aem-GridColumn--default--12",children:s.jsx("div",{className:"component vayu__vajra__search__by__route","data-link":"/travellers/transport-parking/jcr:content/root/responsivegrid/tabs/item0/tabs/item1/searchbyroute.allServices.json","data-airport":"Kempegowda International Airport",children:s.jsxs("div",{className:"container",children:[s.jsxs("form",{className:"",noValidate:!0,children:[s.jsxs("div",{className:"form-row",children:[s.jsx("div",{className:"col-12 col-md-6 col-lg-4 text__field__alignment bial--dropdown arrow__down",children:s.jsx("select",{"aria-label":"select route",id:"route__dropdown",style:{backgroundColor:"#fff"},value:B,onChange:e=>D(e.target.value),children:q.map((e,a)=>s.jsx("option",{value:e,children:e},a))})}),s.jsx("div",{className:"col-12 col-md-6 col-lg-4",children:s.jsx("a",{className:""===B||"Choose Route"===B?"search__by__route__button link__disabled":"search__by__route__button",onClick:()=>""!==B&&"Choose Route"!==B?(async()=>{try{let e=`${a.api.vayuVajraServicesSearch}`,s=await t.get(e,{servicename:B}),i=await s.json();if(200===s.status){const e=l();i.routes.forEach(s=>{let a=[];s.departureTime.forEach(t=>{if(l(t,"HH:mm").isAfter(e)){var i=r(l(t,"HH:mm").diff(e)).asMinutes();a.push(i)}s.closestTime=a})}),E(i),O(!0)}}catch(e){console.log(e)}})():null,style:{color:"#fff"},children:"Search"})})]}),F?R.routes.map((e,a)=>s.jsx(p,{item:e,index:a},a)):null]}),s.jsxs("div",{className:"search__by__route__static__text hide",children:[s.jsx("p",{className:"origin",children:"Origin"}),s.jsx("p",{className:"destination",children:"Destination"}),s.jsx("p",{className:"departure",children:"Departure"}),s.jsx("p",{className:"arrival",children:"Arrival"}),s.jsx("p",{className:"noOfStops",children:"No. Of Stops"}),s.jsx("p",{className:"journeyDistance",children:"Journey distance"}),s.jsx("p",{className:"fare",children:"Fare"}),s.jsx("p",{className:"viewAllStp",children:"View all stops"}),s.jsx("p",{className:"busStpTxt",children:"Bus Stops"})]}),s.jsx("div",{children:s.jsxs("div",{className:"no__results",children:[s.jsxs("div",{className:"error__heading",children:[s.jsx("div",{className:"error__image"}),s.jsx("p",{className:"error__title",children:"Clear Skies Here!"})]}),s.jsxs("div",{className:"error__body",children:[s.jsx("p",{className:"error__subtitle"}),s.jsx("p",{className:"error__description"})]})]})})]})})}),s.jsx("div",{className:"text aem-GridColumn aem-GridColumn--default--12",children:s.jsx("div",{className:"cmp-text",children:s.jsx("p",{children:s.jsx("span",{className:"rte__body-text",children:c.item?c.item.content_blocks[0].disclaimer:""})})})})]})})})]})]})})})})})})})]})}):s.jsx(i,{})]})}function j(a){const[t,i]=e.useState(a.item?a.item.content_blocks[0].header:"");return e.useEffect(()=>{if(window.innerWidth<=992){let e=document.querySelector(".tabs--rowShadow .active").innerText;"car rentals"==e.toLowerCase()&&(document.querySelector(".tabs__menu").scrollLeft=170),"airport taxi"==e.toLowerCase()&&(document.querySelector(".tabs__menu").scrollLeft=330),"app taxis"==e.toLowerCase()&&(document.querySelector(".tabs__menu").scrollLeft=470),"parking"==e.toLowerCase()&&(document.querySelector(".tabs__menu").scrollLeft=630),"trains"==e.toLowerCase()&&(document.querySelector(".tabs__menu").scrollLeft=830)}},[]),s.jsxs(s.Fragment,{children:[s.jsx(m,{data:null==a?void 0:a.item,url:window.location.href}),s.jsx("div",{children:s.jsxs("div",{className:"aem-Grid aem-Grid--12 aem-Grid--default--12 ",children:[s.jsx("div",{className:"richtext aem-GridColumn aem-GridColumn--default--12",children:s.jsx("div",{className:"component rich-text side-padding ",children:s.jsx("div",{className:"container",children:s.jsx("div",{className:"row",children:s.jsx("div",{className:"rte_wrapper",children:s.jsx("div",{className:"rich-text-wrapper",children:a.item?h(a.item.html):null})})})})})}),s.jsx("div",{className:"tabs aem-GridColumn aem-GridColumn--default--12",children:s.jsx("div",{children:s.jsx("div",{className:"component tabs__component",children:s.jsx("div",{className:"container-fluid tabs__component--fullWidth",children:s.jsx("div",{className:"row",children:s.jsx("div",{className:"col-12",children:s.jsxs("div",{className:"tabs",children:[s.jsx("div",{className:"tabs--rowShadow",style:{height:"auto"},children:s.jsx("ul",{className:"tabs__menu",role:"tablist",style:{overflowX:"hidden"},children:a.item&&a.item.content_blocks.map((e,a)=>s.jsx("li",{className:t===e.header?"tabs__item active":"tabs__item",role:"tab",tabIndex:"0",onClick:()=>i(e.header),style:{cursor:"pointer",flex:"1"},children:s.jsx("a",{className:"tabs__link",style:{minWidth:"auto",padding:"4px 5px"},children:e.header})},a))})}),s.jsx("div",{className:"tabs__content",children:a.item&&a.item.content_blocks.map((e,a)=>s.jsx("div",{id:"carzonrent",className:"tabs__pane",style:t===e.header?{}:{display:"none"},children:h(e.html)},a))})]})})})})})})})]})})]})}function v(a){const[t,i]=e.useState(a.item?a.item.content_blocks[0].header:"");return e.useEffect(()=>{if(window.innerWidth<=992){let e=document.querySelector(".tabs--rowShadow .active").innerText;"car rentals"==e.toLowerCase()&&(document.querySelector(".tabs__menu").scrollLeft=170),"airport taxi"==e.toLowerCase()&&(document.querySelector(".tabs__menu").scrollLeft=330),"app taxis"==e.toLowerCase()&&(document.querySelector(".tabs__menu").scrollLeft=470),"parking"==e.toLowerCase()&&(document.querySelector(".tabs__menu").scrollLeft=630),"trains"==e.toLowerCase()&&(document.querySelector(".tabs__menu").scrollLeft=830)}},[]),s.jsxs(s.Fragment,{children:[s.jsx(m,{data:a.item,url:window.location.href}),s.jsx("div",{children:s.jsxs("div",{className:"aem-Grid aem-Grid--12 aem-Grid--default--12 ",children:[s.jsx("div",{className:"richtext aem-GridColumn aem-GridColumn--default--12",children:s.jsx("div",{className:"component rich-text side-padding ",children:s.jsx("div",{className:"container",children:s.jsx("div",{className:"row",children:s.jsx("div",{className:"rte_wrapper",children:s.jsx("div",{className:"rich-text-wrapper",children:a.item?h(a.item.html):null})})})})})}),s.jsx("div",{className:"tabs aem-GridColumn aem-GridColumn--default--12",children:s.jsx("div",{children:s.jsx("div",{className:"component tabs__component",children:s.jsx("div",{className:"container-fluid tabs__component--fullWidth",children:s.jsx("div",{className:"row",children:s.jsx("div",{className:"col-12",children:s.jsxs("div",{className:"tabs",children:[s.jsx("div",{className:"tabs--rowShadow",children:s.jsx("ul",{className:"tabs__menu",role:"tablist",children:a.item&&a.item.content_blocks.map((e,a)=>s.jsx("li",{className:t===e.header?"tabs__item active":"tabs__item",role:"tab",onClick:()=>i(e.header),style:{cursor:"pointer"},children:s.jsx("a",{className:"tabs__link",children:e.header})},a))})}),s.jsx("div",{className:"tabs__content",children:a.item&&a.item.content_blocks.map((e,a)=>s.jsx("div",{id:"carzonrent",className:"tabs__pane",style:t===e.header?{}:{display:"none"},children:h(e.html)},a))})]})})})})})})})]})})]})}function N(a){const[t,i]=e.useState(a.item?a.item.content_blocks[0].header:"");return e.useEffect(()=>{if(window.innerWidth<=992){let e=document.querySelector(".tabs--rowShadow .active").innerText;"car rentals"==e.toLowerCase()&&(document.querySelector(".tabs__menu").scrollLeft=170),"airport taxi"==e.toLowerCase()&&(document.querySelector(".tabs__menu").scrollLeft=330),"app taxis"==e.toLowerCase()&&(document.querySelector(".tabs__menu").scrollLeft=470),"parking"==e.toLowerCase()&&(document.querySelector(".tabs__menu").scrollLeft=630),"trains"==e.toLowerCase()&&(document.querySelector(".tabs__menu").scrollLeft=830)}},[]),s.jsxs(s.Fragment,{children:[s.jsx(m,{data:a.item,url:window.location.href}),s.jsx("div",{children:s.jsxs("div",{className:"aem-Grid aem-Grid--12 aem-Grid--default--12 ",children:[s.jsx("div",{className:"richtext aem-GridColumn aem-GridColumn--default--12",children:s.jsx("div",{className:"component rich-text side-padding ",children:s.jsx("div",{className:"container",children:s.jsx("div",{className:"row",children:s.jsx("div",{className:"rte_wrapper",children:s.jsx("div",{className:"rich-text-wrapper",children:a.item?h(a.item.html):null})})})})})}),s.jsx("div",{className:"tabs aem-GridColumn aem-GridColumn--default--12",children:s.jsx("div",{children:s.jsx("div",{className:"component tabs__component",children:s.jsx("div",{className:"container-fluid tabs__component--fullWidth",children:s.jsx("div",{className:"row",children:s.jsx("div",{className:"col-12",children:s.jsxs("div",{className:"tabs",children:[s.jsx("div",{className:"tabs--rowShadow",children:s.jsx("ul",{className:"tabs__menu",role:"tablist",children:a.item&&a.item.content_blocks.map((e,a)=>s.jsx("li",{className:t===e.header?"tabs__item active":"tabs__item",role:"tab",onClick:()=>i(e.header),style:{cursor:"pointer"},children:s.jsx("a",{className:"tabs__link",children:e.header})},a))})}),s.jsx("div",{className:"tabs__content",children:a.item&&a.item.content_blocks.map((e,a)=>s.jsx("div",{id:"carzonrent",className:"tabs__pane",style:t===e.header?{}:{display:"none"},children:h(e.html)},a))})]})})})})})})})]})})]})}function b(l){const[r,n]=e.useState(!0),[c,o]=e.useState([]),[d,_]=e.useState({stopId:"",stopName:""}),[p,x]=e.useState({}),[u,j]=e.useState([]),[v,N]=e.useState([]),[b,f]=e.useState(!1),[g,y]=e.useState(!1),[w,S]=e.useState(!1);e.useEffect(()=>{C()},[]);const C=async()=>{try{let e=a.api.flyBusStops,s=await t.get(e),i=await s.json();200===s.status&&(o(i.stops),i.root.length>0&&x({stopId:i.root[0].stopId,stopName:i.root[0].stopName}),n(!1))}catch(e){console.log(e)}};e.useEffect(()=>{""!==d.stopId&&k()},[d,w]);const k=async()=>{try{let e=`${a.api.flyBusSearch}`,s=await t.get(e,{origin:w?p.stopId:d.stopId,destination:w?d.stopId:p.stopId}),i=await s.json();200===s.status&&(j(i.arrivalTime),N(i.departureTime),f(!0))}catch(e){console.log(e)}};return s.jsx(s.Fragment,{children:r?s.jsx(i,{}):s.jsxs(s.Fragment,{children:[s.jsx(m,{data:l.item,url:window.location.href}),s.jsx("div",{children:s.jsxs("div",{className:"aem-Grid aem-Grid--12 aem-Grid--default--12 ",children:[l.item?h(l.item.content_blocks[0].html):null,s.jsx("div",{className:"flybussearch aem-GridColumn aem-GridColumn--default--12",children:s.jsx("div",{className:"component flybus__search",children:s.jsx("div",{className:"container",children:s.jsxs("div",{className:"row",children:[s.jsx("div",{className:"flybus__search__filter",children:s.jsxs("div",{className:"flybus__search__filter__dropdown_wrapper",children:[s.jsxs("div",{className:"flybus__search__filter__origin_heading_content_wrapper",children:[s.jsx("label",{className:"flybus__search__filter__origin__headings",children:"Origin"}),s.jsxs("div",{className:"flybus__search__filter__switchable_div_1",children:[s.jsxs("button",{className:w?"flybus__search__filter__dropdown__destination":"flybus__search__filter__dropdown__origin","aria-label":"origin placeholder",onClick:()=>w?null:y(!g),children:[s.jsx("p",{className:"flybus__search__filter__dropdown__origin_button_text",children:w?p.stopName:d.stopName}),w?null:s.jsx("span",{className:"flybus_dropdown-toggle-origin-arrow "}),s.jsx("span",{className:"offscreen",children:"origin placeholder"})]}),s.jsx("div",{className:"flybus__search__filter__dropdown__origin__items "+(g&&!w?"show":""),children:c.map((e,a)=>s.jsx("span",{className:"flybus_dropdown-item",id:e.stopId,title:e.stopName,onClick:()=>{_({stopId:e.stopId,stopName:e.stopName}),y(!1)},children:e.stopName},a))})]})]}),s.jsx("span",{className:"flybus__search__filter_toggle_image",alt:"toggle image",onClick:()=>{S(!w)}}),s.jsxs("div",{className:"flybus__search__filter__destination_heading_content_wrapper",children:[s.jsx("label",{className:"flybus__search__filter__destination__headings",children:"Destination"}),s.jsxs("div",{className:"flybus__search__filter__switchable_div_2",children:[s.jsxs("button",{className:w?"flybus__search__filter__dropdown__origin":"flybus__search__filter__dropdown__destination","aria-label":"destination placeholder",onClick:()=>w?y(!g):null,children:[s.jsx("p",{className:"flybus__search__filter__dropdown__destination_button_text",children:w?d.stopName:p.stopName}),w?s.jsx("span",{className:"flybus_dropdown-toggle-origin-arrow "}):null,s.jsx("span",{className:"offscreen",children:"destination placeholder"})]}),s.jsx("div",{className:"flybus__search__filter__dropdown__origin__items "+(g&&w?"show":""),children:c.map((e,a)=>s.jsx("span",{className:"flybus_dropdown-item",id:e.stopId,title:e.stopName,onClick:()=>{_({stopId:e.stopId,stopName:e.stopName}),y(!1)},children:e.stopName},a))})]})]})]})}),s.jsxs("div",{className:"flybus__search__result",style:b?{display:"flex",padding:"0px"}:{padding:"0px"},children:[s.jsxs("div",{className:"flybus__search__result--header",children:[s.jsx("p",{children:"Departure Time"}),s.jsx("p",{children:"Arrival Time"})]}),s.jsxs("div",{className:"flybus__search__result--content",children:[s.jsx("div",{className:"flybus__search__result--content--departure",children:v&&v.map((e,a)=>s.jsx("span",{className:"flybus__search__result--list",children:e},a))}),s.jsx("div",{className:"flybus__search__result--content--arrival",children:u&&u.map((e,a)=>s.jsx("span",{className:"flybus__search__result--list",children:e},a))})]})]}),s.jsx("div",{className:"flybus__no__results",children:s.jsx("div",{children:s.jsxs("div",{className:"no__results",children:[s.jsxs("div",{className:"error__heading",children:[s.jsx("div",{className:"error__image"}),s.jsx("p",{className:"error__title",children:"Clear Skies Here!"})]}),s.jsxs("div",{className:"error__body",children:[s.jsx("p",{className:"error__subtitle"}),s.jsx("p",{className:"error__description"})]})]})})})]})})})}),l.item?h(l.item.content_blocks[0].body):null]})})]})})}function f(a){var t,i,l,r;const[n,c]=e.useState(-1),[o,d]=e.useState(-1),_=e=>{c(e!==n?e:-1)},p=e=>{d(e!==o?e:-1)};return e.useEffect(()=>{if(window.innerWidth<=992){let e=document.querySelector(".tabs--rowShadow .active").innerText;"car rentals"==e.toLowerCase()&&(document.qu
1erySelector(".tabs__menu").scrollLeft=170),"airport taxi"==e.toLowerCase()&&(document.querySelector(".tabs__menu").scrollLeft=330),"app taxis"==e.toLowerCase()&&(document.querySelector(".tabs__menu").scrollLeft=470),"parking"==e.toLowerCase()&&(document.querySelector(".tabs__menu").scrollLeft=630),"trains"==e.toLowerCase()&&(document.querySelector(".tabs__menu").scrollLeft=830)}},[]),s.jsxs(s.Fragment,{children:[s.jsx(m,{data:a.item,url:window.location.href}),s.jsx("div",{children:s.jsxs("div",{className:"aem-Grid aem-Grid--12 aem-Grid--default--12 ",children:[a.item?h(a.item.Body):null,s.jsx("div",{className:"parkingoptions aem-GridColumn aem-GridColumn--default--12",children:s.jsx("div",{className:"component transport__parking",children:s.jsx("div",{className:"container",children:s.jsx("div",{className:"row",children:a.item&&(null==(i=null==(t=a.item)?void 0:t.content_blocks)?void 0:i.map((e,a)=>s.jsx(g,{data:e,index:a,accordionId:a,open:n,handleClick:_},a)))})})})}),s.jsx("p",{children:"Â "}),s.jsx("div",{children:a.item.article_container?h(a.item.article_container.HTML):null}),s.jsx("div",{className:"parkingoptions aem-GridColumn aem-GridColumn--default--12",children:s.jsx("div",{className:"component transport__parking",children:s.jsx("div",{className:"container",children:s.jsx("div",{className:"row",children:a.item.article_container&&(null==(r=null==(l=a.item.article_container)?void 0:l.content_blocks)?void 0:r.map((e,a)=>s.jsx(g,{data:e,index:a,accordionId:a,open:o,handleClick:p},a)))})})})}),a.item?h(a.item.html):null]})})]})}function g(e){return s.jsx("div",{className:"col-12 col-md-4 col-lg-4",children:s.jsxs("div",{className:e.accordionId===e.open?"transport__parking__heading":"transport__parking__heading mobile__container--height",style:{minHeight:"auto"},onClick:()=>e.handleClick(e.index),children:[s.jsxs("div",{className:"row",children:[s.jsx("div",{className:"col-3 col-sm-2 col-md-3 col-lg-3",children:null!==e.data.images?s.jsx("img",{src:e.data.images.length>0?a.imageUrlDomain.imageURL+e.data.images[0].url:"",style:"P4 Electric Car Parking"===e.data.header?{marginLeft:"32px"}:{width:"23px",height:"24px",marginLeft:"32px"},alt:"vehicle-type"}):null}),s.jsx("div",{className:"col-8 col-sm-9 col-md-9 col-lg-9",children:e.data.header}),s.jsx("div",{className:e.accordionId===e.open?"col-1 col-sm-1 arrow__up mobile__only__arrow--up":"col-1 col-sm-1 arrow__up mobile__only__arrow--down"})]}),s.jsx("div",{className:e.accordionId===e.open?"":"parking__table--hide",style:{margin:"0px",padding:"0px"},children:e.data.html?h(e.data.html):null})]})},e.index)}function y(a){return e.useEffect(()=>{if(window.innerWidth<=992){let e=document.querySelector(".tabs--rowShadow .active").innerText;"car rentals"==e.toLowerCase()&&(document.querySelector(".tabs__menu").scrollLeft=170),"airport taxi"==e.toLowerCase()&&(document.querySelector(".tabs__menu").scrollLeft=330),"app taxis"==e.toLowerCase()&&(document.querySelector(".tabs__menu").scrollLeft=470),"parking"==e.toLowerCase()&&(document.querySelector(".tabs__menu").scrollLeft=630),"trains"==e.toLowerCase()&&(document.querySelector(".tabs__menu").scrollLeft=830)}},[]),s.jsxs(s.Fragment,{children:[s.jsx(m,{data:a.item,url:window.location.href}),a.item?h(a.item.content_blocks[0].html):null]})}function w(l){c();const{pushHistory:r}=o(),[n,h]=e.useState("500px"),[p,x]=e.useState(!0),[g,w]=e.useState(""),[S,C]=e.useState([]),[k,L]=e.useState(),[G,T]=e.useState(!0),q=()=>{window.innerWidth<=992?h("278px"):h("500px")};e.useEffect(()=>{q(),I()},[]),e.useEffect(()=>{g&&B(g)},[g]);const I=async()=>{try{let e=a.api.pages.replace("{{pageId}}","transport-parking"),s=await t.get(e),i=await s.json();if(200===s.status){C(i);let e=((e,s)=>{let a="";return void 0===e||"transport-parking"===e?a=s[0].name:s.map(s=>{var t;(null==(t=s.pages.find(e=>e.header===s.name))?void 0:t.slug)===e&&(a=s.name)}),a})(d.getSlug(l.location.pathname),i.page_sub_menus);w(e),x(!1)}}catch(e){console.log(e)}},B=async e=>{var s,i;if(T(!0),e&&S)try{let l=a.api.pages.replace("{{pageId}}",null==(i=null==(s=S.page_sub_menus.find(s=>s.name===e))?void 0:s.pages.find(s=>s.header===e))?void 0:i.slug),r=await t.get(l),n=await r.json();200===r.status&&(L(n),T(!1))}catch(l){console.log(l)}};return window.addEventListener("resize",q),s.jsx(s.Fragment,{children:!p&&S?s.jsxs(s.Fragment,{children:[s.jsx(m,{data:k,url:window.location.href}),s.jsx(_,{isHomePage:!1,heroBannerImageMobile:"/assets/Transportation-Mobile-Banner-cXUDHXY0.jpg",heroBannerImage:"/assets/Transportion-Page-Banner-new-D7iA1A8C.jpg",height:n,pageTitle:"Efficient Travel Choices"}),s.jsx("div",{className:"custom-separator"}),s.jsx("div",{className:"responsivegrid aem-GridColumn aem-GridColumn--default--12",children:s.jsxs("div",{className:"aem-Grid aem-Grid--12 aem-Grid--default--12 ",children:[s.jsx("div",{className:"containercomponent aem-GridColumn aem-GridColumn--default--12",children:s.jsx("div",{className:"component container__component ",children:s.jsx("div",{className:"container__content ",children:s.jsx("div",{className:"aem-Grid aem-Grid--12 aem-Grid--default--12 "})})})}),s.jsx("div",{className:"tabs aem-GridColumn--default--none aem-GridColumn aem-GridColumn--default--12 aem-GridColumn--offset--default--0",children:s.jsx("div",{children:s.jsx("div",{className:"component tabs__component",children:s.jsx("div",{className:"container-fluid tabs__component--fullWidth",children:s.jsx("div",{className:"row",children:s.jsx("div",{className:"col-12",children:s.jsxs("div",{className:"tabs",children:[s.jsx("div",{className:"tabs--rowShadow",children:s.jsx("ul",{className:"tabs__menu",role:"tablist",children:S.page_sub_menus.map((e,a)=>s.jsx("li",{className:g===e.name?"tabs__item active":"tabs__item",role:"tab",tabIndex:"0",onClick:()=>{var s;w(e.name),r(`/travellers/transport-parking/${null==(s=e.pages.find(s=>s.header===e.name))?void 0:s.slug}`)},style:{cursor:"pointer"},children:s.jsx("div",{role:"none presentation",className:"tabs__link",scroll:e=>null,children:e.name})},a))})}),G?s.jsx(i,{}):s.jsx("div",{className:"tabs__content",children:S.page_sub_menus.map((e,a)=>s.jsx("div",{id:e.name.replace(/ +/g,""),className:"tabs__pane",style:g===e.name?{}:{display:"none"},children:"airport-vayuvajra"===e.name.toLowerCase().replace(/ /g,"")?s.jsx(u,{item:k}):"intercity bus"===e.name.toLowerCase()?s.jsx(b,{item:k}):"car rentals"===e.name.toLowerCase()?s.jsx(N,{item:k}):"airport taxi"===e.name.toLowerCase()?s.jsx(j,{item:k}):"app taxis"===e.name.toLowerCase()?s.jsx(v,{item:k}):"parking"===e.name.toLowerCase()?s.jsx(f,{item:k}):"trains"===e.name.toLowerCase()?s.jsx(y,{item:k}):null},a))})]})})})})})})})]})})]}):s.jsx(i,{})})}
1export{w 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.