PageSourceSearch

https://motor-share-dev.web.app/_next/static/chunks/pages/customer-portal/booking/[id]-d751644035dfab21.js

js motor-share-dev.web.app collected 2026-10-03 12:31:26 UTC 23,561 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6156],{20270:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/customer-portal/booking/[id]",function(){return a(79651)}])},95507:function(e,t,a){"use strict";a.d(t,{Z:function(){return g}});var s=a(85893),l=a(76031),i=a(35005),n=a(25675),r=a.n(n),o=a(984),c=a.n(o),d=a(49987),u=a(6466),m={src:"/_next/static/media/icn-refund.15897e7d.svg",height:18,width:15},h=a(10565),p=a(11163);let f=e=>{let{isShow:t,callback:a,amount:n=0,days:o=0}=e;return(0,p.useRouter)(),(0,s.jsx)(l.Z,{show:t,onHide:a,backdrop:"static",keyboard:!1,centered:!0,dialogClassName:c().commonModal,backdropClassName:c().commonBackDrop,children:(0,s.jsxs)(l.Z.Body,{children:[(0,s.jsx)(r(),{src:d.Z,alt:"Close Modal",width:26,height:26,className:c().closeIcon,onClick:a}),(0,s.jsx)("div",{className:c().commonContainer,children:(0,s.jsxs)("div",{className:c().addCommonContainer,children:[(0,s.jsx)(r(),{src:u.Z,width:50,height:50,alt:"KMS",className:c().kmsMainImage}),(0,s.jsx)("h3",{className:c().kmsTitle,children:"Refund complete"}),(0,s.jsx)("p",{className:c().kmsTagline,children:"Your refund request has been processed"}),(0,s.jsxs)("div",{className:c().kmsPairContainer,children:[(0,s.jsxs)("p",{children:[(0,s.jsx)(r(),{src:m,width:15,height:17,alt:"Refund"}),(0,s.jsx)("span",{children:"Refund Summary"})]}),(0,s.jsxs)("div",{className:c().kmsPairContainerInner,children:[(0,s.jsxs)("p",{children:[(0,s.jsx)("span",{children:"Amount"}),(0,s.jsxs)("span",{children:["$",(0,h.T)(n)]})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("span",{children:"Days"}),(0,s.jsx)("span",{children:o})]})]})]}),(0,s.jsx)(i.Z,{onClick:a,children:"Done"})]})})]})})};var g=f},79651:function(e,t,a){"use strict";a.r(t);var s=a(85893),l=a(9008),i=a.n(l),n=a(86826),r=a(88545),o=a(35005),c=a(97346),d=a(25675),u=a.n(d);a(41664);var m=a(11163),h=a(67294);a(72409);var p=a(70098);a(85592);var f=a(19229),g=a(41023),x=a(3655),k=a(41843),j=a(61001),D=a(90718),b=a(75639),v=a(92713),C=a(87370);a(75935);var N=a(25199);a(78260);var w=a(10565),y=a(2040),S=a(61113),P=a(49592),A=a(95507),T=a(69297);let I=["8:00am - 10:00am","10:00am - 12:00pm","12:00pm - 2:00pm","2:00pm - 4:00pm","4:00pm - 6:00pm","6:00pm - 8:00pm","Not sure yet"],L=[{topDetail:"Head Office",bottomDetail:"27 Walls Road, Penrose, Auckland"},{topDetail:"Auckland Airport",bottomDetail:"Free Shuttle Pickup"},{topDetail:"Another Address",bottomDetail:"(+$85 - $210 fee)"}];function Z(e){let t=new Date(e),a=""+(t.getMonth()+1),s=""+t.getDate(),l=t.getFullYear();return a.length<2&&(a="0"+a),s.length<2&&(s="0"+s),[l,a,s].join("-")}let _=()=>{let e;let t=(0,m.useRouter)(),{bookingFields:a,handleChangeBookingFields:l,handleNameEmailChange:n,handleStartAndEndDate:d,handleChangeVehicle:_,clearBookingFields:F,handleChangeVehicleForEdit:R,updateDataForEdit:E}=(0,h.useContext)(b.Z),{customerName:B,vehicle:M,vehicleId:H,pickupDate:O,pickupTime:U,pickupLocation:Y,customPickUpLocation:V,pickupLocationSub:X,returnDate:$,returnTime:q,returnLocation:W,returnLocationSub:K,customReturnLocation:G,status:z,notes:J,isChecked:Q,pickupDriver:ee,pickupFlightNumber:et,pickupArrivalTime:ea,returnFlightNumber:es,returnArrivalTime:el}=a,[ei,en]=(0,h.useState)(null),{vehiclesList:er}=(0,h.useContext)(v.Z),[eo,ec]=(0,h.useState)(null),[ed,eu]=(0,h.useState)(!1),[em,eh]=(0,h.useState)(null),[ep,ef]=(0,h.useState)(null);(0,h.useEffect)(()=>{let{id:e}=t.query;if(er.length>0&&eo){let a=async()=>{let a=await (0,y.sG)({recordId:e});7>(0,w.aS)(a.data.data.fields.PickupDate)&&t.push("/customer-portal/my-bookings"),eh(a.data.data);let s=er.find(e=>e.airtableId==a.data.data.fields.Vehicle[0]);ef(s.code),ey(s.code,s.airtableId);let l=eo,i=l.records.filter((e,t)=>{if(e.id!=a.data.data.id)return e}),n=eR(s.code).booking.memberDayCost;l.records=i;let r=l.forwardBookingsIds.find(e=>e==a.data.data.id);r&&(l.totalForwardBookings=l.totalForwardBookings-1),l.balanceDays=l.balanceDays+a.data.data.fields["Duration (Days)"]*n,l.bookedDays=l.bookedDays-a.data.data.fields["Duration (Days)"]*n,ec(l),eu(!0)};a()}},[t.query,er,eo]),(0,h.useEffect)(()=>
1{if(er.length>0){let e=er.filter((e,t)=>{if(e.isBookable)return e});en(e)}},[er]);let[eg,ex]=(0,h.useState)(""),[ek,ej]=(0,h.useState)(!1),[eD,eb]=(0,h.useState)(null),[ev,eC]=(0,h.useState)(!1),[eN,ew]=(0,h.useState)(null),ey=(e,t)=>{if(eK(e=>e+1),e!==M){ex(""),eX(new Date(Date.now()+864e5)),eq(null),R(e,t),eY(null);let a=[];eo.customerData["Received Intro Briefing"]&&(a=eo.customerData["Received Intro Briefing"]);let s=a.find(e=>e===t);s?ej(!1):ej(!0);let l=eo?eo.planDaysTotal*eo.maxPerDaysOneCar:0,i=eo.records.filter((e,a)=>{if(e.fields.Vehicle[0]===t)return e}),n=i.map((e,t)=>{let a=(0,w.i3)(e.fields.PickupDate,e.fields.ReturnDate);return a}),r=n.flat();r.length>=l?(eC(!0),ew(l)):(eC(!1),ew(null))}},eS=(e,t,a)=>{if(eK(e=>e+1),a>tN){console.log("increase current item index"),console.log("decrease current index");let s=findAbsoluteDifference(a,tN);console.log("difference is",s),tC(e=>e-s),tw(e=>e+s)}else if(a<tN){console.log("decrease current item index"),console.log("increase current index");let l=findAbsoluteDifference(a,tN);console.log("difference is",l),tC(e=>e+l),tw(e=>e-l)}if(ez(!1),e!==M){ex(""),eX(new Date(Date.now()+864e5)),eq(null),_(e,t),eY(null);let i=[];eo.customerData["Received Intro Briefing"]&&(i=eo.customerData["Received Intro Briefing"]);let n=i.find(e=>e===t);n?ej(!1):ej(!0);let r=eo.planDaysTotal*eo.maxPerDaysOneCar,o=eo.records.filter((e,a)=>{if(e.fields.Vehicle[0]===t)return e}),c=o.map((e,t)=>{let a=(0,w.i3)(e.fields.PickupDate,e.fields.ReturnDate);return a}),d=c.flat();d.length>=r?(eC(!0),ew(r)):(eC(!1),ew(null))}},{currentUser:eP}=(0,h.useContext)(C.Z),[eA,eT]=(0,h.useState)(null),[eI,eL]=(0,h.useState)(0),[eZ,e_]=(0,h.useState)([]),eF=(e,t,a)=>{e.preventDefault(),eT(t),eL(a),l("pickupDriver",t)};(0,h.useEffect)(()=>{if(eP){eb(eP.data.user.customerId);let e=async()=>{let e=await (0,y.$3)({customerId:eP.data.user.customerId});console.log("booking details data",e.data),ec(e.data)};e()}},[eP]),(0,h.useEffect)(()=>{if(eD&&em){let e,t,a;if(console.log("pick up driver is ",em.fields.PickupDriver),eT(em.fields.PickupDriver),eP.data.customer.fields.AdditionalDriverName){let s=[eP.data.user.fullName,eP.data.customer.fields.AdditionalDriverName];e_(s),em.fields.PickupDriver!==eP.data.user.fullName&&eL(1)}else console.log("there is no driver");console.log("recordToEdit is",em);let l=-1!=em.fields.PickupLocation.toLowerCase().search("head office"),i=-1!=em.fields.PickupLocation.toLowerCase().search("auckland airport"),n=-1!=em.fields.ReturnLocation.toLowerCase().search("head office"),r=-1!=em.fields.ReturnLocation.toLowerCase().search("auckland airport"),o="",c="",d="",u="",m="",h="",p="",f="";if(l&&(e="Head Office",p="(27 Walls Road, Penrose)"),i){e="Auckland Airport",p="Free Shuttle Pickup";let g=em.fields.PickupLocation.split(",");if(g.length>2){let x=g.slice(-2);d=x[0],u=x[1]}}if(l||i||(e="Another Address",p="(+$85 - $210 fee)",o=em.fields.PickupLocation),n&&(t="Head Office",f="(27 Walls Road, Penrose)"),r){t="Auckland Airport",f="Free Shuttle Pickup";let k=em.fields.ReturnLocation.split(",");if(k.length>2){let j=k.slice(-2);m=j[0],h=j[1]}}n||r||(t="Another Address",f="(+$85 - $210 fee)",c=em.fields.ReturnLocation),console.log("data is ",a=em.fields.PickupLocation==em.fields.ReturnLocation?{customerName:eP.data.user.fullName,customerId:eP.data.user.customerId,email:eP.data.user.email,pickupDate:em.fields.PickupDate,pickupTime:em.fields.PickupTime,pickupLocation:e,customPickUpLocation:o,returnDate:em.fields.ReturnDate,returnTime:em.fields.ReturnTime,returnLocation:t,customReturnLocation:c,isChecked:!0,recordId:em.id,duration:em.fields["Duration (Days)"],pickupFlightNumber:d,pickupArrivalTime:u,returnFlightNumber:m,returnArrivalTime:h,pickupLocationSub:p,pickupDriver:em.fields.PickupDriver?em.fields.PickupDriver:""}:{customerName:eP.data.user.fullName,customerId:eP.data.user.customerId,email:eP.data.user.email,pickupDate:em.fields.PickupDate,pickupTime:em.fields.PickupTime,pickupLocation:e,customPickUpLocation:o,returnDate:em.fields.ReturnDate,returnTime:em.fields.ReturnTime,returnLocation:t,customReturnLocation:c,isChecked:!1,recordId:em.id,duration:em.fields["Duration (Days)"],pickupFlightNumber:d,pickupArrivalTime:u,returnFlightNumber:m,returnArrivalTime:h,returnLocationSub:f,pickupDriver:em.fields.PickupDriver?em.fields.PickupDriver:""}),E(a)}},[eD,em]);let eR=e=>{if(!ei)return null;{let t=ei.find(t=>t.code===e);return t}},[eE,eB]=(0,h.useState)(null),eM=e=>{if(!eE)return!1;{let t=eE.find(t=>t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate());return!!t}},eH=async e=>{let t=await (0,y.f6)({vehicleCode:e}),a=t.data.data.map((e,t)=>new Date(e)),s=(0,w.i3)(em.fields.PickupDate,em.fields.ReturnDate),l=a.filter((e,t)=>
1{let a=s.find(t=>t.getTime()===e.getTime());if(!a)return e}),i=[new Date(s[0].setHours(0,0,0,0)),new Date(s[s.length-1].setHours(0,0,0,0))];e==ep?eY(i):eY(null),eB(l)},eO=e=>{let{activeStartDate:t,date:a,view:s}=e;return!!eM(a)},[eU,eY]=(0,h.useState)(null),[eV,eX]=(0,h.useState)(new Date(Date.now()+864e5)),[e$,eq]=(0,h.useState)(null),[eW,eK]=(0,h.useState)(1),[eG,ez]=(0,h.useState)(!0),eJ=e=>{e.preventDefault(),eQ()},eQ=()=>{ez(!1),eY(null),eX(new Date(Date.now()+864e5)),eq(null),d("",""),eK(e=>e+1),eH(M),ex("")},e0=()=>{d("",""),ex("")},[e1,e5]=(0,h.useState)(!1),[e2,e6]=(0,h.useState)(!1),[e8,e4]=(0,h.useState)(!1),e7=async e=>{let t,a,s;console.log("booking details on set is",eo),e0(),e5(!0),ez(!0);let l=0;Array.isArray(e)?1===e.length?(t=(0,w._X)(e[0],e[0]),a=e[0],s=e[0]):(null===e[1]&&(e[1]=e[0]),t=(0,w._X)(e[0],e[1]),a=e[0],s=e[1]):(t=(0,w._X)(e,e),a=e,s=e);let i=new Date;i.setHours(0,0,0,0);let n=new Date(i);n.setDate(n.getDate()+7);let r=i.getFullYear(),o=new Date(r,0,1);o.setFullYear(o.getFullYear()+1);let c=o.getFullYear(),u=new Date("".concat(r,"-12-20"));u.setHours(0,0,0,0);let m=new Date("".concat(c,"-01-31"));m.setHours(0,0,0,0),(0,w.je)(a,s),eo.planDaysTotal,eo.maxPerDaysOneCar;let h=eo.records.filter((e,t)=>{if(e.fields.Vehicle[0]===H)return e}),p=h.map((e,t)=>{let a=(0,w.i3)(e.fields.PickupDate,e.fields.ReturnDate);return a}),f=p.flat();if(f.length,(0,w.pn)(eo.bookedDays,t,eo.planDaysTotal,eR(M).booking.memberDayCost),Array.isArray(e)){if(1==e.length){if(eE&&eE.length){let g=eE.filter(t=>t>=e[0]),x=Math.abs(g[0]-e[0]),k=Math.floor(x/864e5);if(k>1){let j=new Date(e[0]);j.setDate(j.getDate()+(k-1)),eq(j)}else 1==k?eq(e[0]):0==k&&eq(e[0])}eX(e[0])}else 2==e.length&&eX(e[0])}else{if(console.log("THE VALUE IS NOT AN ARRAY"),eE&&eE.length){let D=eE.filter(t=>t>=e),b=Math.abs(D[0]-e),v=Math.floor(b/864e5);if(v>1){let C=new Date(e);C.setDate(C.getDate()+(v-1)),eq(C)}else 1==v?eq(e):0==v&&eq(e)}eX(e)}eY(e);let N={pickupDate:(0,w.bm)(a),returnDate:(0,w.bm)(s),records:eo.records,currentDate:(0,w.bm)(i),planDaysTotal:eo.planDaysTotal,maxPerDaysOneCar:eo.maxPerDaysOneCar,bookedDays:eo.bookedDays,balanceDays:eo.balanceDays,totalForwardBookings:eo.totalForwardBookings,totalChristmasBookings:eo.totalChristmasBookings,renewalDate:eo.renewalDate,vehicleId:H};try{let S=await (0,y.h4)(N);console.log("check rule is ",S),e6(!0)}catch(T){console.log("error is ",T);let P=T.toString(),A=P.replace("FirebaseError:","").trim();ex(A),l+=1,e6(!0)}Array.isArray(e)?(console.log("the value is an array ",e),console.log("error count ",l),0===l?1===e.length?(d(Z(e[0]),Z(e[0])),e4(!0)):2===e.length&&(d(Z(e[0]),Z(e[1])),e4(!0)):(d("",""),e4(!0))):(console.log("the value is an array ",e),console.log("error count ",l),0===l?(d(Z(e),Z(e)),e4(!0)):(d("",""),e4(!0))),e5(!1)};(0,h.useEffect)(()=>{""==O&&(eY(null),eB(null))},[O]),(0,h.useEffect)(()=>{""!==M&&(console.log("Lets get booking by vehicles"),em&&eH(M))},[M,em]);let[e9,e3]=(0,h.useState)(!1),te=()=>e3(!1),tt=e=>{e.preventDefault(),e3(!0)},ta=()=>{e3(!1),tn()},[ts,tl]=(0,h.useState)(!1),ti=()=>{tl(!1),t.push("/customer-portal/my-bookings")},tn=()=>tl(!0),[tr,to]=(0,h.useState)(""),[tc,td]=(0,h.useState)(!1),tu=()=>{td(!1)},tm=e=>{to(e),td(!0)},th=()=>{l("isChecked",!Q)},tp=(e,t)=>{e.preventDefault(),console.log("pickup time value",t),l("pickupTime",t)},tf=(e,t)=>{e.preventDefault(),l("returnTime",t)},tg=(e,t)=>{e.preventDefault(),l("pickupLocation",t)},tx=(e,t)=>{e.preventDefault(),l("returnLocation",t)},tk=e=>{l("customPickUpLocation",e)},tj=e=>{l("customReturnLocation",e)},[tD,tb]=(0,h.useState)(!1),[tv,tC]=(0,h.useState)(2),[tN,tw]=(0,h.useState)(0),ty=(0,h.createRef)();(0,h.useEffect)(()=>{console.log("current item index is ",tN),console.log("current index is ",tv),tS()},[tN,eo,ei,tD,em]);let tS=()=>{console.log("calling set active item");let e=ty.current;if(e){let t=e.querySelectorAll(".slider-item"),a=t[0].offsetWidth;e.style.transform="translateX(".concat((tv-Math.floor(1.5))*a,"px)"),console.log("transformed")}},tP=()=>{let e=ty.current.querySelectorAll(".slider-item");tv+e.length>3&&(tC(e=>e-1),tw(e=>e+1),ey(ei[tN+1].code,ei[tN+1].airtableId))},tA=()=>{let e=ty.current.querySelectorAll(".slider-item"),t=e.length+2;tv+e.length<t&&(tC(e=>e+1),tw(e=>e-1),ey(ei[tN-1].code,ei[tN-1].airtableId))},tT=()=>{let e=window.innerWidth;console.log("viewport width is",e),e<992&&tb(!tD)},tI=function(){for(var t=arguments.length,a=Array(t),s=0;s<t;s++)a[s]=arguments[s];clearTimeout(e),e=setTimeout(()=>tT.apply(this,a),500)};(0,h.useEffect)(()=>(window.addEventListener("resize",tI),()=>{window.removeEventListener("resize",tI)}),[]);let tL=(0,h.useRef)(null);(0,h.useEffect)(()=>{let e=tL.current;if(e){let t=0,a=0,s=e=>{t=e.touches[0].clientX},l=e=>{a=e.touches[0].clientX},i=()=>{let e=a-t;e>0?(console.log("Swiped right!"),tA()):e<0&&(console.log("Swiped left!"),tP())};return e.addEventListener("touchstart",s),e.addEventListener("touchmove",l),e.addEventListener("touchend",i),()=>{e.removeEventListener("touchstart",s),e.removeEventListener("touchmove",l),e.removeEventListener("touchend",i)}}});let[tZ,t_]=(0,h.useState)(!1),[tF,tR]=(0,h.useState)(0),[tE,tB]=(0,h.useState)(0),tM=(e,t)=>{console.log("amount is ",e),console.log("days is ",t),e3(!1),t_(!0),tR(e),tB(t)},tH=()=>{t.push("/customer-portal/my-bookings")},tO=e=>{let{name:t,value:a}=e.target;l(t,a)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i(),{children:(0,s.jsx)("title",{children:"MotorShare Customer Portal - Edit Booking"})}),(0,s.jsxs)("div",{className:"bookingCustomerPortalPageContainer editContainer",children:[""==M&&(0,s.jsx)(h.Fragment,{children:(0,s.jsx)("div",{className:"customUniqueLoadingContainer",children:(0,s.jsxs)("div",{className:"lds-ring",children:[(0,s.jsx)("div",{}),(0,s.jsx)("div",{}),(0,s.jsx)("div",{}),(0,s.jsx)("div",{})]})})}),""!=M&&(0,s.jsxs)(h.Fragment,{children:[(0,s.jsxs)("div",{className:"bookingPortalHeader",children:[(0,s.jsx)("h1",{children:"View/Edit Booking"}),em&&ei&&(0,s.jsx)(h.Fragment,{children:ei&&eo&&(0,s.jsx)("div",{className:"sliderContainerOutSideWrapper",children:(0,s.jsx)("div",{className:"slider-container",ref:tL,children:(0,s.jsx)("div",{className:"slider-track",ref:ty,children:em&&""!=M&&(0,s.jsx)("div",{className:"slider-item active-item",children:(0,s.jsxs)("div",{className:"sliderItemInner",children:[(0,s.jsx)("div",{className:"itemImageContainer",children:(0,s.jsx)(u(),{src:eR(M).mainTransparentImage,width:70,height:30,alt:eR(M).name})}),(0,s.jsxs)("div",{className:"itemDetailContainer",children:[(0,s.jsx)("p",{children:eR(M).name}),(0,s.jsxs)("p",{children:[eR(M).specs.engine,(0,s.jsx)("span",{children:"|"}),eR(M).specs.transmission]})]})]})})})})})}),em&&""!=M&&(0,s.jsxs)(r.Z,{children:[(0,s.jsxs)(r.Z.Toggle,{id:"dropdown-basic",children:[M&&ei&&""!==M&&(0,s.jsxs)(h.Fragment,{children:[(0,s.jsx)("div",{className:"imageContainer",children:(0,s.jsx)(u(),{src:eR(M).mainTransparentImage,width:75.4,height:34,alt:eR(M).name,style:{objectFit:"fill",objetPosition:"center",width:"auto"}})}),(0,s.jsxs)("div",{className:"vehicleInPortalDetails",children:[(0,s.jsx)("p",{children:eR(M).name}),(0,s.jsxs)("p",{children:[eR(M).specs.engine," ",(0,s.jsx)("span",{children:"|"})," ",eR(M).specs.transmission]})]})]}),""===M&&(0,s.jsx)("span",{children:"Select Vehicle"}),(0,s.jsx)(u(),{src:p.Z,alt:"Dropdown",width:15,height:9,className:"dropdownIcon"})]}),(0,s.jsx)(r.Z.Menu,{children:ei.map((e,t)=>(0,s.jsxs)(r.Z.Item,{as:"button",onClick:a=>eS(e.code,e.airtableId,t),children:[(0,s.jsx)("div",{className:"imageContainer",children:(0,s.jsx)(u(),{src:e.mainTransparentImage,width:75.4,height:34,alt:e.name,style:{objectFit:"fill",objetPosition:"center",width:"auto"}})}),(0,s.jsxs)("div",{className:"vehicleInPortalDetails",children:[(0,s.jsx)("p",{children:e.name}),(0,s.jsxs)("p",{children:[e.specs.engine," ",(0,s.jsx)("span",{children:"|"})," ",e.specs.transmission]})]})]},t))})]})]}),""!=M&&(0,s.jsx)("div",{className:"bookingPortalContent",children:(0,s.jsxs)("form",{onSubmit:tt,children:[(0,s.jsxs)(g.Z,{children:[(0,s.jsxs)("div",{className:""!==eg?"wrapCalendar withError":"wrapCalendar",children:[(0,s.jsx)("div",{className:"wrapCalendarInnerOverlay",style:{display:""===M?"block":"none"}}),(0,s.jsx)(x.ZP,{onChange:e7,value:eU,showNeighboringMonth:!1,locale:"en",calendarType:"US",allowPartialRange:!0,selectRange:eG,tileDisabled:eO,className:["customCalendar"],minDate:eV,maxDate:e$}),(0,s.jsxs)("div",{className:"availabilityContainer",children:[(0,s.jsxs)(h.Fragment,{children:[(0,s.jsxs)("p",{className:"yourBookingSign",children:[(0,s.jsx)("span",{}),"Your Booking"]}),(0,s.jsxs)("p",{className:"availableSign",children:[(0,s.jsx)("span",{}),"Available"]}),(0,s.jsxs)("p",{className:"notAvailableSign",children:[(0,s.jsx)("span",{}),"Not available"]})]}),(0,s.jsx)(o.Z,{disabled:!eo,className:"clearSelection",onClick:eJ,children:"Clear Selection"})]})]}),""!==eg&&(0,s.jsx)("div",{className:"bottomCalendarError",children:(0,s.jsxs)("p",{children:["⚠ ",eg]})})]}),eZ&&eZ.length>0&&eP&&"Casual"!==eP.data.customer.fields.PlanTypeName&&(0,s.jsx)(T.Z,{dropdownItems:eZ,currentDriver:eA,callback:eF,label:"Pickup Driver",isDesktop:!0,currentDriverIndex:eI,isEdit:!0}),(0,s.jsxs)("div",{className:"buttonSelectContainer",children:[(0,s.jsx)("p",{className:"bookingLabel",children:"Pickup Time"}),(0,s.jsx)("div",{className:"buttonsContainer",children:I.map((e,t)=>(0,s.jsxs)(o.Z,{className:U==e?"activeButton":"",onClick:t=>tp(t,e),children:[(0,s.jsx)("span",{children:e}),(0,s.jsx)(u(),{src:f.Z,alt:"check",width:9,height:8})]},t))})]}),(0,s.jsxs)("div",{className:"pickUpAddressContainer",children:[(0,s.jsx)("p",{className:"bookingLabel",children:"Pickup From"}),(0,s.jsx)("div",{className:"buttonsContainer",children:L.map((e,t)=>{let{topDetail:a,bottomDetail:l}=e;return(0,s.jsxs)(o.Z,{className:Y==a?"activeButton":"",onClick:t=>tg(t,e),children:[(0,s.jsx)("span",{className:"topDetail",children:a}),(0,s.jsx)("span",{className:"bottomDetail",children:l}),(0,s.jsx)(u(),{src:f.Z,alt:"check",width:9,height:8})]},t)})}),"Another Address"===Y&&(0,s.jsx)(D.Z,{placeholder:"Enter pickup address",callback:tk,locationValue:V}),"Auckland Airport"===Y&&(0,s.jsxs)(h.Fragment,{children:[(0,s.jsx)(c.Z.Control,{className:"subInput",type:"text",name:"pickupFlightNumber",value:et,onChange:tO,placeholder:"Flight Number"}),(0,s.jsx)(c.Z.Control,{className:"subInput",type:"text",name:"pickupArrivalTime",value:ea,onChange:tO,placeholder:"Arrival Time"})]})]}),(0,s.jsx)(j.Z,{labelText:"Pickup From",placeholder:"Please pick address",dropdownItems:L,theLocation:Y,theCustomLocation:V,theSubLocation:X,
1callbackAddress:tg,callbackAddressCustom:tk}),(0,s.jsxs)(h.Fragment,{children:[(0,s.jsx)(c.Z.Control,{className:"subInput forMobileEdit",type:"text",value:et,name:"pickupFlightNumber",onChange:tO,placeholder:"Flight Number"}),(0,s.jsx)(c.Z.Control,{className:"subInput forMobileEdit",type:"text",value:ea,name:"pickupArrivalTime",onChange:tO,placeholder:"Arrival Time"})]}),(0,s.jsx)(k.Z,{labelText:"Pickup Time",placeholder:"Please select time",dropdownItems:I,type:"time",theDate:O,theTime:U,callback:tp}),(0,s.jsx)("div",{className:"inputCheckContainer",children:(0,s.jsxs)("label",{className:"wrapper",children:[(0,s.jsx)("input",{type:"checkbox",className:"checked",name:"isChecked",checked:Q,onChange:th}),(0,s.jsx)("span",{className:"checkmark",children:"Return to the same location"})]})}),!Q&&(0,s.jsxs)("div",{className:"pickUpAddressContainer",children:[(0,s.jsx)("p",{className:"bookingLabel",children:"Return To"}),(0,s.jsx)("div",{className:"buttonsContainer",children:L.map((e,t)=>{let{topDetail:a,bottomDetail:l}=e;return(0,s.jsxs)(o.Z,{className:W==a?"activeButton":"",onClick:t=>tx(t,e),children:[(0,s.jsx)("span",{className:"topDetail",children:a}),(0,s.jsx)("span",{className:"bottomDetail",children:l}),(0,s.jsx)(u(),{src:f.Z,alt:"check",width:9,height:8})]},t)})}),"Another Address"===W&&(0,s.jsx)(D.Z,{placeholder:"Enter return address",callback:tj,locationValue:G}),"Auckland Airport"===W&&(0,s.jsxs)(h.Fragment,{children:[(0,s.jsx)(c.Z.Control,{className:"subInput",type:"text",name:"returnFlightNumber",value:es,onChange:tO,placeholder:"Flight Number"}),(0,s.jsx)(c.Z.Control,{className:"subInput",type:"text",name:"returnArrivalTime",value:el,onChange:tO,placeholder:"Arrival Time"})]})]}),(0,s.jsxs)("div",{className:"buttonSelectContainer",children:[(0,s.jsx)("p",{className:"bookingLabel",children:"Return Time"}),(0,s.jsx)("div",{className:"buttonsContainer",children:I.map((e,t)=>(0,s.jsxs)(o.Z,{className:q==e?"activeButton":"",onClick:t=>tf(t,e),children:[(0,s.jsx)("span",{children:e}),(0,s.jsx)(u(),{src:f.Z,alt:"check",width:9,height:8})]},t))})]}),!Q&&(0,s.jsx)(j.Z,{labelText:"Return To",placeholder:"Please pick address",dropdownItems:L,theLocation:W,theCustomLocation:G,theSubLocation:K,callbackAddress:tx,callbackAddressCustom:tj}),"Auckland Airport"===W&&(0,s.jsxs)(h.Fragment,{children:[(0,s.jsx)(c.Z.Control,{className:"subInput forMobileEdit",type:"text",value:es,name:"returnFlightNumber",onChange:tO,placeholder:"Flight Number"}),(0,s.jsx)(c.Z.Control,{className:"subInput forMobileEdit",type:"text",value:el,name:"returnArrivalTime",onChange:tO,placeholder:"Arrival Time"})]}),(0,s.jsx)(k.Z,{labelText:"Return Time",placeholder:"Please select time",dropdownItems:I,type:"time",theDate:$,theTime:q,callback:tf}),(0,s.jsx)(o.Z,{disabled:e1||!e2||!e8,className:"bookingButton",type:"submit",children:e1?"Processing...":"Save Changes"})]})})]})]}),(0,s.jsx)(g.Z,{children:(0,s.jsx)(N.Z,{isShow:e9,callback:te,handleSucessModalBooking:ta,handleShowErrorForMobile:tm,isUpdate:!0,handleOpenRefund:tM})}),(0,s.jsxs)(g.Z,{children:[(0,s.jsx)(P.Z,{isShow:ts,callback:ti,isUpdate:!0}),(0,s.jsx)(S.Z,{isShow:tc,callback:tu,message:tr}),(0,s.jsx)(A.Z,{isShow:tZ,callback:tH,amount:tF,days:tE})]})]})};_.layout=n.Z,t.default=_},984:function(e){e.exports={commonBackDrop:"successrefundmodal_commonBackDrop__cNOHD",commonModal:"successrefundmodal_commonModal___e6Ue",closeIcon:"successrefundmodal_closeIcon__guSxH",commonContainer:"successrefundmodal_commonContainer__2wK0r",addCommonContainer:"successrefundmodal_addCommonContainer__H3Hk0",kmsMainImage:"successrefundmodal_kmsMainImage__GrJXf",kmsTitle:"successrefundmodal_kmsTitle__GV7K3",kmsTagline:"successrefundmodal_kmsTagline__YeFSF",kmsPairContainer:"successrefundmodal_kmsPairContainer__FQIZg",kmsPairContainerInner:"successrefundmodal_kmsPairContainerInner___Kef
1i"}}},function(e){e.O(0,[4885,806,3471,1664,6582,4186,6031,4841,8545,3655,4825,6059,8663,7434,6826,8523,9774,2888,179],function(){return e(e.s=20270)}),_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.