1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[422],{4392:e=>{e.exports={radioItem:"ScheduledServicesElement_radioItem__aY4OL"}},5422:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>tF});var n=t(37876),i=t(26256),a=t(87679),l=t(56144),o=t(68763),s=t(14232),c=t(2935),d=t(43995),u=t(93450),m=t(87174),p=t.n(m);let h="VehicleAlertsElement",v=(0,l.Hc7)(2,(0,l.LqE)(h)),x=e=>!!(e&&(0,d.i5)(e,"warningCode")&&(0,d.i5)(e,"warningType")&&(0,d.i5)(e,"description")&&(0,d.i5)(e,"ownersManual")),y=(0,u.A)(e=>{var r,t,l;let{uischema:u,uischema:{nextDayBookingHeading:m,nextDayBookingText:v}}=e,{core:y}=(0,i.Xh)(),{setValue:g}=(0,c.A)(e),[f,j]=(0,s.useState)(e.data),[b,C]=(0,s.useState)(!0),E=null==y?void 0:y.data,S=((null==(r=E.vehicleAlerts)?void 0:r.alerts)||[]).filter(x),A=E.selectedDealer,_=null!=(l=null!=(t=null==A?void 0:A.locations[0].phone.service)?t:null==A?void 0:A.phone)?l:"";if(!(e=>e&&e.type===h&&(0,d.i5)(e,"nextDayBookingHeading")&&(0,d.i5)(e,"nextDayBookingText"))(u))throw Error("uischema for VehicleAlertsElement is not a ".concat(h," element"));return Array.isArray(S)&&0!==S.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.BJc,{direction:"column",spacing:"s",children:[(0,n.jsx)(a.FcD,{type:"warning",children:(0,n.jsxs)(a.BJc,{direction:"column",spacing:"s",children:[(0,n.jsxs)(a.BJc,{spacing:"2xs",children:[(0,n.jsx)(a.o5u,{variant:"h6",fontWeight:"regular",children:"We've detected the following vehicle alert(s)"}),(0,n.jsx)(a.dmR,{ariaLabel:"tooltip",pointerPosition:"bottom-middle",addShadow:!1,children:"At your preferred dealership, a Lexus technician will evaluate your vehicle alert(s), determine the cause and advise any repairs."})]}),(0,n.jsx)(a.BJc,{component:"ul",direction:"column",spacing:"4xs",className:p().alertsList,children:S.map(e=>(0,n.jsx)("li",{children:e.description},e.warningCode))}),(0,n.jsx)(a.KtJ,{className:p().inspectionDetailsLink,onClick:()=>{C(!0)},children:"View inspection details"})]})}),(0,n.jsx)(a.Sc0,{"aria-label":"Add vehicle alert inspection to my booking",isSelected:f,isFramed:!0,onChange:function(e){j(e),g(e)},children:(0,n.jsx)(a.o5u,{variant:"h6",fontWeight:"regular",children:"Add vehicle alert inspection to my booking"})}),!f&&(0,n.jsx)(a.FcD,{type:"info",children:(0,n.jsx)(a.o5u,{variant:"b1",children:"We recommend a Vehicle Alert Inspection to evaluate the cause of your vehicle alert(s), so we can help ensure your continued safety and vehicle performance."})})]}),(0,n.jsxs)(o.A,{isOpen:b,heading:"Vehicle Alerts Inspection Details",onClose:()=>{C(!1)},children:[(0,n.jsx)(a.azJ,{className:p().modalBorder,pt:"xs",children:(0,n.jsx)(a.o5u,{variant:"s1",children:"Your vehicle alert(s)"})}),(0,n.jsx)(a.BJc,{direction:"column",spacing:"xs",children:S.map(e=>(0,n.jsxs)(a.BJc,{direction:"column",spacing:"3xs",children:[(0,n.jsx)(a.o5u,{variant:"l1",fontWeight:"bold",children:e.description}),(0,n.jsx)(a.o5u,{variant:"b1",children:e.ownersManual})]},e.warningCode))}),(0,n.jsx)(a.o5u,{variant:"s1",children:"How it works"}),(0,n.jsx)(a.o5u,{variant:"b1",children:"During your Vehicle Alert Inspection, a Lexus-trained technician will evaluate your vehicle, diagnose the cause of alerts, and recommend any necessary repairs."}),(0,n.jsxs)(a.BJc,{direction:"column",spacing:"3xs",children:[(0,n.jsx)(a.o5u,{variant:"l1",fontWeight:"bold",children:"Costs involved"}),(0,n.jsxs)(a.o5u,{variant:"b1",children:["Vehicle Alert Inspections are provided at no cost. However, resulting repairs may incur service charges if the defect is not covered by your current warranty. For more details, see\xa0",(0,n.jsx)("a",{href:"https://www.lexus.com.au/smallprint/warranty",children:"lexus.com.au/smallprint/warranty"}),". This does not limit and may not necessarily exceed your rights under Australian Consumer Law."]})]}),(0,n.jsxs)(a.BJc,{direction:"column",spacing:"3xs",children:[(0,n.jsx)(a.o5u,{variant:"l1",fontWeight:"bold",children:m}),(0,n.jsx)(a.o5u,{variant:"b1",children:v})]}),(0,n.jsxs)(a.BJc,{direction:"column",spacing:"3xs",children:[(0,n.jsx)(a.o5u,{variant:"l1",fontWeight:"bold",children:"Contact"}
1),(0,n.jsx)(a.o5u,{variant:"b1",children:"If you require immediate assistance, please contact your preferred Lexus dealer via the telephone number below:"}),(0,n.jsxs)(a.BJc,{spacing:"xs",children:[(0,n.jsx)(a.vUD,{}),(0,n.jsx)(a.o5u,{variant:"b1",children:(0,n.jsx)("a",{href:"tel:".concat(_.replace(/\s+/g,"")),children:_})})]})]})]})]}):null});var g=t(10084),f=t(85696),j=t.n(f),b=t(88229),C=t(76609);let E=(0,s.memo)(e=>{let{serviceDetail:r}=e;return(0,n.jsxs)(a.BJc,{direction:"column",spacing:"s",children:[(0,n.jsx)(a.o5u,{variant:"s1",children:r.section}),(0,C.Ef)(r.serviceDescription,"action").map((e,r)=>(0,n.jsxs)(a.BJc,{spacing:"4xs",direction:"column",children:[(0,n.jsx)(a.o5u,{variant:"l2",fontWeight:"regular",children:e.key}),e.values.map((r,t)=>(0,n.jsxs)(a.o5u,{variant:"b1",children:["- ",r.description]},e.key+r.description+t))]},e.key+r))]},r.section)});E.displayName="ServiceDetailItem";let S=e=>{var r;let{service:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.cGx,{}),null==(r=t.serviceDetails)?void 0:r.map((e,r)=>(0,n.jsx)(E,{serviceDetail:e},e.section+r))]})};var A=t(24515),_=t(52602);let L=e=>{let{isTmcaVehicle:r,service:t,poaTextLabel:i="POA",viewMoreLabel:l="View service details",serviceRecommendationChip:c="Recommended",nonTmcaVehicleServiceLabel:d=_.sl}=e,[u,m]=(0,s.useState)(!1),p=(0,s.useMemo)(()=>(0,A.C8)(t,r,d),[t,r,d]);if(!p)return null;let h=r?"Service details for ".concat(p):p;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.sxL,{value:t.code,"aria-label":"Please select a service",isFramed:!0,children:(0,n.jsxs)(a.BJc,{direction:"row",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",className:j().serviceDetail,children:[(0,n.jsxs)(a.BJc,{direction:"column",spacing:"3xs",children:[(0,n.jsxs)(a.BJc,{spacing:"3xs",alignItems:"center",flexWrap:"wrap",children:[(0,n.jsx)(a.o5u,{variant:"h6",fontWeight:"regular",children:p}),t.recommended&&(0,n.jsx)(a.vu3,{variant:"ghost",size:"small",children:c})]}),(0,n.jsx)(b.z,{onClick:()=>m(!0),children:(0,n.jsx)(a.o5u,{fontWeight:"regular",children:l})})]}),(0,n.jsx)(a.o5u,{variant:"s1",children:t.price!==_.Eo?"$".concat(t.price):i})]})}),(0,n.jsx)(o.A,{isOpen:u,heading:h,onClose:()=>m(!1),children:(0,n.jsx)(S,{service:t})})]})};var w=t(31668),B=t.n(w),N=t(60949);let k="ServiceIntervalElement",T=[g.h,g.q],P=(0,l.Hc7)(2,(0,l.LqE)(k)),I=e=>!!(e&&(0,d.i5)(e,"code")&&(0,d.i5)(e,"name")&&(0,d.i5)(e,"price")&&(0,d.i5)(e,"duration")),D=(0,u.A)(e=>{var r,t;let{core:l}=(0,i.Xh)(),{uischema:o,data:u,path:m}=e,{setValue:p}=(0,c.A)(e),h=((null==l||null==(r=l.data.scheduledServices)?void 0:r.service)||[]).filter(I),v=T.includes((null==l||null==(t=l.data.vehicleInfo)?void 0:t.manufacturer)||""),[x,y]=(0,s.useState)(!1),[g,f]=(0,s.useState)(((e,r)=>{if(!Array.isArray(r)||0===r.length)return;if(!Array.isArray(e)||0===e.length)return r[0];let t=e.find(e=>(0,N.N2)(e)&&"Scheduled"===e.type),n=t&&(0,N.N2)(t)?t.code:null;return r.find(e=>e.code===n)})(u,h));if((0,s.useEffect)(()=>{h.length>0&&!(0,d.sx)(u)&&C(h[0].code)},[]),!(e=>e&&e.type===k&&(0,d.i5)(e,"serviceMoreOptionLabel")&&"string"==typeof e.serviceMoreOptionLabel)(o))throw Error("uischema for ServiceIntervalElement is not a ".concat(k," element"));if(!Array.isArray(h)||0===h.length)return null;let j=x?h:[g||h[0]],C=e=>{let r=h.find(r=>r.code===e);if(!r)return;let t=(0,A.C8)(r,v,_.sl);f(r),p([...((null==l?void 0:l.data[m])||[]).filter(e=>"Scheduled"!==e.type),{type:"Scheduled",code:r.code||"",duration:r.duration||"",price:parseFloat(r.price||"NaN"),name:r.name,description:t}])},{serviceRecommendationChip:E,serviceMoreOptionLabel:S,serviceDetailLabel:w,poaTextLabel:P,ariaLabel:D="Select service interval",nonTmcaVehicleServiceLabel:O=_.sl,cpsLabel:F="Capped Price Service",lseLabel:R="Lexus Service Experience"}=o,J=((e,r,t)=>(null==e?void 0:e.servicePricingType)===_.Xk.CAPPED_PRICE_SERVICE?r:(null==e?void 0:e.servicePricingType)===_.Xk.LEXUS_SERVICE_EXPERIENCE?t:"")(g,F,R);return(0,n.jsxs)(a.BJc,{direction:"column",spacing:"2xs",children:[J&&(0,n.jsx)(a.vu3,{icon:(0,n.jsx)(a.cDy,{}),variant:"ghost",className:B().serviceIntervalChip,children:J}),(0,n.jsx)(a.z6M,{"aria-label":D,value:(null==g?void 0:g.code)||h[0].code||"",onChange:C,children:j.map(e=>
1(0,n.jsx)(L,{isTmcaVehicle:v,service:e,viewMoreLabel:w,poaTextLabel:P,serviceRecommendationChip:E,nonTmcaVehicleServiceLabel:O},e.code))}),h.length>1&&!x&&v&&(0,n.jsx)(b.z,{onClick:()=>y(!0),children:(0,n.jsx)(a.o5u,{fontWeight:"regular",children:S})})]})}),O=e=>{let{service:r,poaTextLabel:t="POA",complimentaryServiceTextLabel:i="Complimentary",durationTextLabel:l="Duration"}=e,o=(0,A.ez)(r.price,t,i);return(0,n.jsx)(a.Sc0,{value:r.code,isFramed:!0,children:(0,n.jsxs)(a.BJc,{direction:"row",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",className:j().serviceDetail,children:[(0,n.jsxs)(a.BJc,{direction:"column",spacing:"3xs",children:[(0,n.jsx)(a.o5u,{variant:"h6",fontWeight:"regular",children:r.name}),(0,n.jsx)(a.o5u,{variant:"b2",fontWeight:"regular",children:"".concat(l,": ").concat((0,A.Jm)(r.duration))})]}),(0,n.jsx)(a.o5u,{variant:"s1",children:o})]})})},F="ValueAddedServicesElement",R=(0,l.Hc7)(2,(0,l.LqE)(F)),J=(0,u.A)(e=>{let{uischema:r,data:t,path:l}=e,{core:o}=(0,i.Xh)(),{setValue:u}=(0,c.A)(e),m=(null==o?void 0:o.data.valueAddedServices)||[],[p,h]=(0,s.use
1State)(!1),[v,x]=(0,s.useState)(((e,r)=>{if(!Array.isArray(e)||0===e.length)return[];let t=e.reduce((e,r)=>((0,N.N2)(r)&&"ValueAdded"===r.type&&e.push(r.code),e),[]);return r.filter(e=>t.includes(e.code))})(t,m));if(!(e=>e&&e.type===F&&(0,d.i5)(e,"serviceMoreOptionLabel")&&"string"==typeof e.serviceMoreOptionLabel)(r))throw Error("uischema for ValueAddedServicesElement is not a ".concat(F," element"));if(!Array.isArray(m)||0===m.length)return null;let{maxServicesToShow:y,durationTextLabel:g,serviceMoreOptionLabel:f,ariaLabel:j="Select value added services"}=r,C=p?m:m.slice(0,y||3);return(0,n.jsxs)(a.BJc,{direction:"column",spacing:"2xs",children:[(0,n.jsx)(a.$QX,{"aria-label":j,value:v.map(e=>e.code),onChange:e=>{let r=m.filter(r=>e.includes(r.code));x(r),u([...((null==o?void 0:o.data[l])||[]).filter(e=>"ValueAdded"!==e.type),...r.length>0?r.map(e=>{var r;return{type:"ValueAdded",code:e.code,duration:e.duration||"",price:parseFloat(e.price||"NaN"),name:e.name,description:null!=(r=e.name||e.description)?r:""}}):[]])},children:C.map(e=>(0,n.jsx)(O,{service:e,durationTextLabel:g},e.code))}),m.length>C.length&&!p&&(0,n.jsx)(b.z,{onClick:()=>h(!0),children:(0,n.jsx)(a.o5u,{fontWeight:"regular",children:f})})]})});var q=t(51483),M=t(88827),H=t(5811),V=t(70148),U=t(74713),X=t(80035);let G=(0,s.createContext)(void 0);var W=t(75370);let z=(0,s.createContext)(null),$=(0,X.XI)("SetGlobalApiErrors",(e,r)=>{null==e||e.action(U.X.SET_GLOBAL_API_ERROR,{globalApiError:r})}),Y=e=>100*e.year+e.month,K=async(e,r,t)=>{var n;let i=null==(n=r.selectedDealer)?void 0:n.dealerCodes,a=i?(0,W.N)(i,!0):void 0;if(!a||!r.selectedServices)return[];let l={startDateRange:e.toString(),endDateRange:(0,V.p9)(e).toString(),dealerCode:a.dealerCode,locationCode:a.sapCode,serviceDuration:(0,A.S1)(r),...r.isVehicleAlertsInspectionOnly&&{operationCode:"SVC-FIR"}};return null==t?void 0:t.fetchDropOffsSchedule(l)};var Q=t(60219);let Z="ServiceDateElement",ee=(0,l.Hc7)(2,(0,l.LqE)(Z)),er=(0,H.PA)(e=>{let{core:r}=(0,i.Xh)(),{uischema:t,data:a,label:l}=e,{setValue:o}=(0,c.A)(e),[d,u]=(0,s.useState)(void 0),m=a&&(e=>null!==e&&"object"==typeof e&&"date"in e&&"times"in e&&Array.isArray(e.times)&&e.times.length>0)(a)?(0,M._U)(a.date):void 0,{getAvailableTimeSlotsAsync:p,tryGetDatesOrRunFetch:h,isLoading:v}=(e=>{let r=(0,s.useContext)(z),t=(0,s.useContext)(G),[n,i]=(0,s.useState)(!1),a=(0,s.useRef)(new Map),l=(0,s.useRef)(new Map),o=(0,s.useCallback)(async n=>{let o,s=(0,V.wH)(n),c=(0,V.Ec)((0,V.Xj)());if(0>n.compare(c))return;let d=0>s.compare(c)?c:s,u=Y(d);if(a.current.has(u))return;if(l.current.has(u))return l.current.get(u);let m=new Promise(e=>{o=e});l.current.set(u,m),i(!0);try{let r=e?await K(d,e,t):[];a.current.set(u,new Map((r||[]).map(e=>[e.date,e])))}catch(e){a.current.set(u,new Map),$(r,e)}finally{l.current.delete(u),null==o||o(),l.current.size||i(!1)}},[e,r,t]),c=(0,s.useCallback)(e=>{let r=Y((0,V.wH)(e)),t=a.current.get(r);return t||o(e),t},[o]);return{getAvailableTimeSlotsAsync:(0,s.useCallback)(async e=>{await o(e);let r=Y((0,V.wH)(e)),t=a.current.get(r);return null==t?void 0:t.get(null==e?void 0:e.toString())},[o]),tryGetDatesOrRunFetch:c,isLoading:n}})(null==r?void 0:r.data);if(!(e=>e&&e.type===Z)(t))throw Error("uischema for ServiceDateElement is not a ".concat(Z," element"));let x=(0,s.useCallback)(e=>{let r=h(e),t=null==e?void 0:e.toString();return!r||!r.has(t)},[h]),y=(0,s.useCallback)(async e=>{if(!e||e.year<1e3||e.year>9999)return void o(null);let r=await p(e);o(r||null),r?u(void 0):u(t.errorMessage||"Please select a another date.")},[p,o,t.errorMessage]);return(0,n.jsx)(Q.A,{isLoading:v,label:l,defaultValue:m,isDateUnavailable:x,onChange:y,errorMessage:d})}),et=(0,u.A)(er);var en=t(64063),ei=t.n(en);let ea=e=>(0,n.jsx)(a.o5u,{variant:"l1",className:ei().serviceName,children:e}),el=e=>{let{services:r,title:t,complimentaryPriceLabel:i}=e;return(0,n.jsxs)(a.BJc,{direction:"column",spacing:"4xs",children:[ea(t),r.map(e=>(0,n.jsxs)(a.BJc,{direction:"row",spacing:"3xs",justifyContent:"space-between",children:[(0,n.jsx)(a.o5u,{variant:"b1",children:e.description}
1),(0,n.jsx)(a.o5u,{className:ei().servicePrice,variant:"b1",children:(0,A.ez)(e.price,_.Eo,i)})]},e.code))]})},eo=e=>{let{recalls:r,recallTitle:t,complimentaryPriceLabel:i}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.BJc,{direction:"column",spacing:"4xs",children:[ea(t),(0,n.jsxs)(a.BJc,{direction:"row",spacing:"3xs",className:ei().serviceBlock,children:[(0,n.jsx)(a.BJc,{component:"ul",direction:"column",spacing:"xs",className:ei().serviceDescriptionBlock,children:r.map(e=>(0,n.jsx)("li",{className:ei().listItem,children:(0,n.jsx)(a.azJ,{children:(0,n.jsx)(a.o5u,{variant:"b1",children:"".concat(e.sapOperationCode," - ").concat(e.guestDescription)})})},e.serviceCode))}),(0,n.jsx)(a.o5u,{className:ei().servicePrice,variant:"b1",children:i})]})]}),(0,n.jsx)(a.cGx,{})]})},es=e=>{let{alerts:r}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.BJc,{direction:"column",spacing:"4xs",children:[(0,n.jsxs)(a.BJc,{spacing:"4xs",alignItems:"center",children:[ea("Vehicle Alert Inspection"),(0,n.jsxs)(a.dmR,{ariaLabel:"tooltip",pointerPosition:"bottom-middle",addShadow:!1,className:ei().tooltip,children:["Vehicle Alert Inspections are provided at no cost. However, resulting repairs may incur service charges if the defect is not covered by your current warranty. For more details, see"," ",(0,n.jsx)("a",{href:"https://www.lexus.com.au/smallprint/warranty",children:"lexus.com.au/smallprint/warranty"}),". This does not limit and may not necessarily exceed your rights under Australian Consumer Law."]})]}),(0,n.jsx)(a.BJc,{direction:"row",spacing:"3xs",className:ei().serviceBlock,children:(0,n.jsxs)(a.BJc,{component:"ul",direction:"column",spacing:"xs",className:ei().serviceDescriptionBlock,children:[r.map(e=>(0,n.jsx)("li",{className:ei().listItem,children:(0,n.jsx)(a.azJ,{children:(0,n.jsx)(a.o5u,{variant:"b1",children:e.description})})},e.warningCode)),(0,n.jsx)(a.FcD,{type:"info",children:(0,n.jsxs)(a.BJc,{spacing:"xs",alignItems:"center",children:[(0,n.jsx)(a.azJ,{children:"(\xa0\xa0!\xa0\xa0) "}),(0,n.jsx)(a.o5u,{variant:"b1",children:"Note: resulting repairs may incur service charges if the defect is not covered by your current warranty."})]})})]})})]}),(0,n.jsx)(a.cGx,{})]})},ec=e=>{let{cartTotal:r,cartSummaryTitle:t,additionalServiceRequestsLabel:i,additionalServiceRequests:l,services:{safetyRecalls:o,serviceCampaigns:s,scheduledService:c,alerts:d,valueAddedServices:u},servicesTitles:{scheduledServiceTitle:m,valueAddedServicesTitle:p,safetyRecallsTitle:h,serviceCampaignsTitle:v},priceLabel:{complimentaryPriceLabel:x,cartTotalPriceLabel:y,cartTotalPriceSubLabel:g}}=e,f=d&&d.length>0;return(0,n.jsxs)(a.BJc,{spacing:"s",direction:"column",children:[t&&(0,n.jsx)(a.o5u,{variant:"s1",children:t}),(0,n.jsx)(a.cGx,{}),o.length>0&&(0,n.jsx)(eo,{recalls:o,recallTitle:h,complimentaryPriceLabel:x}),f&&(0,n.jsx)(es,{alerts:d}),s.length>0&&(0,n.jsx)(eo,{recalls:s,recallTitle:v,complimentaryPriceLabel:x}),c&&(0,n.jsx)(el,{services:[c],title:m,complimentaryPriceLabel:x}),u.length>0&&(0,n.jsx)(el,{services:u,title:p,complimentaryPriceLabel:x}),(0,n.jsxs)(a.BJc,{direction:"column",spacing:"4xs",children:[(0,n.jsx)(a.BJc,{className:ei().serviceName,children:(0,n.jsx)(a.o5u,{variant:"l1",children:i})}),(0,n.jsx)(a.BJc,{children:(0,n.jsx)(a.o5u,{className:ei().serviceDescription,variant:"b1",children:l||"None"})})]}),(0,n.jsx)(a.cGx,{}),(0,n.jsxs)(a.BJc,{direction:"row",justifyContent:"space-between",children:[(0,n.jsx)(a.o5u,{className:ei().serviceDescription,variant:"s1",children:y}),(0,n.jsx)(a.o5u,{className:ei().servicePrice,variant:"h4",children:(0,n.jsxs)(a.BJc,{direction:"column",spacing:"4xs",alignItems:"flex-end",children:[r,f&&"*",f&&(0,n.jsx)(a.o5u,{variant:"b2",children:"Final price subject to change"})]})})]}),(0,n.jsxs)(a.BJc,{direction:"column",spacing:"s",children:[(0,n.jsx)(a.o5u,{variant:"b2",children:g}),f&&(0,n.jsxs)(a.azJ,{children:["*Vehicle Alert Inspections are provided at no cost. However, resulting repairs may incur service charges if the defect is not covered by your current warranty. For more details, see"," ",(0,n.jsx)("a",{href:"https://www.lexus.com.au/smallprint/warranty",children:"lexus.com.au/smallprint/warranty"}),". This does not limit and may not necessarily exceed your rights under Australian Consumer Law."]})]})]})};var ed=t(82241);let eu=()=>{let{core:e}=(0,i.Xh)(),{cartTotal:r,selectedServices:t=[],recallServices:n=null,vehicleAlerts:a=null,isVehicleAlertsInspectionSelected:l,selectedServiceCampaigns:o=[],additionalServiceRequest:s="",shouldScheduleService:c}=(null==e?void 0:e.data)||{},d=(0,N.Ig)(o)?o:[],u=(0,N.b$)(n)?n.safetyRecallsNotificationAndBooking:[],m=e=>(0,N.SF)(t)?t.filter(r=>r.type===e):[],p=m("Scheduled")[0];return"string"==typeof c&&c===N.dU.no&&(p=void 0),{cartAmount:"string"==typeof r?r:void 0,scheduledService:p,valueAddedServices:m("ValueAdded"),safetyRecalls:u,serviceCampaigns:d,alerts:l&&(null==a?void 0:a.alerts)||[],additionalServiceRequests:"string"==typeof s?s:""}},em="ServiceSummaryElement",ep=(0,l.Hc7)(3,(0,l.LqE)(em)),eh=["cartTotalPriceLabel","cartTotalPriceSubLabel","additionalServiceRequestsLabel","scheduledServiceTitle","valueAddedServicesTitle","safetyRecallsTitle","serviceCampaignsTitle"],ev=e=>{let{uischema:r}=e,{cartAmount:t,scheduledService:i,valueAddedServices:a,safetyRecalls:l,serviceCampaigns:o,additionalServiceRequests:s,alerts:c}=eu();if(!(e=>e&&e.type===em&&eh.every(r=>(0,d.i5)(e,r)))(r))throw Error("uischema for ServiceSummaryElement is not a ".concat(em," element"));if(!t)return null;if(!i&&(!l||0===l.length)&&(!o||0===o.length)&&(!c||0===c.length))return(0,ed.v)("".concat(ev," - Invalid services data ").concat(i," ").concat(l," ").concat(o)),null;let{complimentaryPriceLabel:u="Complimentary",cartTotalPriceLabel:m,cartTotalPriceSubLabel:p,additionalServiceRequestsLabel:h,scheduledServiceTitle:v,valueAddedServicesTitle:x,safetyRecallsTitle:y,serviceCampaignsTitle:g}=r;return(0,n.jsx)(ec,{cartTotal:t,additionalServiceRequestsLabel:h,additionalServiceRequests:s,services:{safetyRecalls:l,serviceCampaigns:o,scheduledService:i,valueAddedServices:a,alerts:c},servicesTitles:{scheduledServiceTitle:v,valueAddedServicesTitle:x,safetyRecallsTitle:y,serviceCampaignsTitle:g},priceLabel:{complimentaryPriceLabel:u,cartTotalPriceLabel:m,cartTotalPriceSubLabel:p}})},ex=(0,u.A)(ev),ey="TransportOptionsElement",eg=(0,l.Hc7)(2,(0,l.LqE)(ey)),ef=(0,H.PA)(e=>{let{uischema:r,data:t}=e,{core:l}=(0,i.Xh)(),{setValue:o}=(0,c.A)(e);if(!(e=>e&&e.type===ey)(e.uischema))throw Error("uischema for TransportOptionsElement is not a ".concat(ey," element"));let s=(null==l?void 0:l.data.transportOptions)||[],u=(e=>(0,d.i5)(e,"transportOptionCode")&&"string"==typeof e.transportOptionCode&&(0,d.i5)(e,"displayValue")&&"string"==typeof e.displayValue)(t)?t.transportOptionCode:void 0;return s.length?(0,n.jsx)(a.BJc,{direction:"row",spacing:"3xs",flexWrap:"wrap",children:(0,n.jsx)(a.z6M,{"aria-label":r.ariaLabel||"Select Transport Option",orientation:"horizontal",value:u,onChange:e=>{let r=s.find(r=>r.transportOptionCode===e);r&&o(r)},children:s.map(e=>(0,n.jsx)(a.sxL,{value:e.transportOptionCode,isDisabled:!e.enabled,children:(0,n.jsxs)(a.o5u,{variant:"h6",fontWeight:"regular",children:[" ",e.displayValue]})},e.transportOptionCode))})}):null}),ej=(0,u.A)(ef),eb="CartTotalElement",eC=(0,l.Hc7)(3,(0,l.LqE)(eb)),eE=(0,H.PA)(e=>{let{uischema:r,data:t}=e;if(r.type!==eb)throw Error("uischema for CartTotalElement is not a ".concat(eb," element"));let{alerts:i}=eu(),l=i&&i.length>0,{cartTotalLabel:o,cartTotalPriceLabel:s}=r;return(0,n.jsxs)(a.BJc,{direction:"column",spacing:"xs",children:[(0,n.jsx)(a.o
15u,{variant:"h6",children:o}),(0,n.jsx)(a.o5u,{variant:"h4",children:(0,n.jsxs)(a.BJc,{direction:"column",spacing:"4xs",alignItems:"flex-start",children:[t,l&&"*"]})}),(0,n.jsx)(a.o5u,{variant:"b2",children:s}),l&&(0,n.jsxs)(a.o5u,{variant:"b2",children:["*Vehicle Alert Inspections are provided at no cost. However, resulting repairs may incur service charges if the defect is not covered by your current warranty. For more details, see"," ",(0,n.jsx)("a",{href:"https://www.lexus.com.au/smallprint/warranty",children:"lexus.com.au/smallprint/warranty"}),". This does not limit and may not necessarily exceed your rights under Australian Consumer Law."]})]})}),eS=(0,u.A)(eE);var eA=t(32688),e_=t(43949);let eL="CartSummaryButtonElement",ew=(0,l.Hc7)(3,(0,l.LqE)(eL)),eB=(0,H.PA)(e=>{let{uischema:r,label:t}=e;if(r.type!==eL)throw Error("uischema for CartSummaryButtonElement is not a ".concat(eL," element"));let i=(0,s.useContext)(z),{revalidate:l}=(0,c.A)(e),o=e_.a[r.icon];return(0,n.jsx)(eA.G,{variant:"buttonWrapper",children:(0,n.jsx)(a.$nd,{variant:"secondary","aria-describedby":t,onClick:()=>{null==i||i.action(r.actionType),l()},children:o?(0,n.jsx)(o,{width:"20",height:"20"}):t})})}),eN=(0,u.A)(eB),ek="CartSummaryModalElement",eT=(0,l.Hc7)(3,(0,l.LqE)(ek)),eP=["cartSummaryTitle","cartTotalPriceLabel","cartTotalPriceSubLabel","additionalServiceRequestsLabel","scheduledServiceTitle","valueAddedServicesTitle","safetyRecallsTitle","serviceCampaignsTitle"],eI=(0,H.PA)(e=>{let{uischema:r,data:t}=e,{setValue:i}=(0,c.A)(e),{cartAmount:a,scheduledService:l,valueAddedServices:s,safetyRecalls:u,serviceCampaigns:m,additionalServiceRequests:p,alerts:h}=eu();if(!(e=>e.type===ek&&eP.every(r=>(0,d.i5)(e,r)))(r))throw Error("uischema for CartSummaryModalElement is not a ".concat(ek," element"));if("boolean"!=typeof t)throw Error("".concat(t," for CartSummaryModalElement is not a valid one"));if(!a)return null;if(!l&&(!u||0===u.length)&&(!m||0===m.length)&&(!h||0===h.length))return(0,ed.v)("".concat(eI," - Invalid services data ").concat(l," ").concat(u," ").concat(m)),null;let{complimentaryPriceLabel:v="Complimentary",cartSummaryTitle:x,cartTotalPriceLabel:y,cartTotalPriceSubLabel:g,additionalServiceRequestsLabel:f,scheduledServiceTitle:j,valueAddedServicesTitle:b,safetyRecallsTitle:C,serviceCampaignsTitle:E}=r;return(0,n.jsx)(o.A,{isOpen:t,heading:x,onClose:()=>{i(!1)},children:(0,n.jsx)(ec,{cartTotal:a,additionalServiceRequestsLabel:f,additionalServiceRequests:p,services:{safetyRecalls:u,serviceCampaigns:m,scheduledService:l,valueAddedServices:s,alerts:h},servicesTitles:{scheduledServiceTitle:j,valueAddedServicesTitle:b,safetyRecallsTitle:C,serviceCampaignsTitle:E},priceLabel:{complimentaryPriceLabel:v,cartTotalPriceLabel:y,cartTotalPriceSubLabel:g}})})}),eD=(0,u.A)(eI);var eO=t(74331),eF=t.n(eO);let eR="CommunicationPreferencesElement",eJ=(0,l.Hc7)(3,(0,l.LqE)(eR)),eq=(0,H.PA)(e=>{var r,t;let{core:l}=(0,i.Xh)(),{setValue:o}=(0,c.A)(e),{uischema:u,data:m}=e,{availableOptions:p,ariaLabel:h="Select communication preference",errorMessage:v="Please select your preferred method of communication",landlineSMSErrorMessage:x="If you provide a mobile number, we can send you SMS notifications. Please provide a valid mobile number."}=u,[y,g]=(0,s.useState)(!1),[f,j]=(0,s.useState)(v),b="boolean"==typeof(null==l||null==(r=l.data)?void 0:r.isCommunicationsPreferenceSectionDisabled)&&l.data.isCommunicationsPreferenceSectionDisabled,C="boolean"==typeof(null==l||null==(t=l.data)?void 0:t.isLandLineNumber)&&l.data.isLandLineNumber;if(!(e=>e.type===eR&&(0,d.i5)(e,"availableOptions")&&"string"==typeof e.availableOptions)(e.uischema))throw Error("uischema for CommunicationPreferencesElement is not a ".concat(eR," element"));let E=(0,A.h_)(p);return(0,n.jsx)(a.$QX,{"aria-label":h,onChange:e=>{g(0===e.length),j(v),e.includes(_.UG)&&C?(g(!0),j(x)):o(e)},isInvalid:y,isDisabled:b,errorMessage:y?f:void 0,defaultValue:m,children:(0,n.jsx)(a.BJc,{spacing:"3xs",flexWrap:"wrap",children:E.map(e=>(0,n.jsx)(a.BJc,{className:eF().checkboxContainer,children:(0,n.jsx)(eA.G,{variant:"inputWrapper",children:(0,n.jsx)(a.Sc0,{value:e,isFramed:!0,children:(0,n.jsx)(a.BJc,{direction:"column",spacing:"3xs",children:(0,n.jsx)(a.o
15u,{variant:"s1",children:e})})})},e)},e))})})}),eM=(0,u.A)(eq);var eH=t(40655),eV=t.n(eH);let eU="PaymentOptionsElement",eX=(0,l.Hc7)(3,(0,l.LqE)(eU)),eG=(0,H.PA)(e=>{let{core:r}=(0,i.Xh)(),{setValue:t}=(0,c.A)(e);if(!(e=>e&&e.type===eU&&(0,d.i5)(e,"payNowHeading")&&"string"==typeof e.payNowHeading&&(0,d.i5)(e,"payNowDescription")&&"string"==typeof e.payNowDescription&&(0,d.i5)(e,"payNowValue")&&"string"==typeof e.payNowValue&&(0,d.i5)(e,"payLaterHeading")&&"string"==typeof e.payLaterHeading&&(0,d.i5)(e,"payLaterDescription")&&"string"==typeof e.payLaterDescription&&(0,d.i5)(e,"payLaterValue")&&"string"==typeof e.payLaterValue)(e.uischema))throw Error("uischema for PaymentOptionsElement is not a ".concat(eU," element"));let{uischema:l,path:o}=e,{payNowHeading:s,payNowDescription:u,payNowValue:m,payLaterHeading:p,payLaterDescription:h,payLaterValue:v,ariaLabel:x="Select Payment Option"}=l,y=(0,X.Jt)(null==r?void 0:r.data,o),g=null==r?void 0:r.data.cartTotal,f=null==r?void 0:r.data.totalCharge,j=[{heading:s,description:u,totalPrice:"$".concat(f),value:m},{heading:p,description:h,totalPrice:"".concat(g),value:v}];return(0,n.jsx)(a.z6M,{"aria-label":x,onChange:t,defaultValue:y,children:(0,n.jsx)(a.BJc,{spacing:"3xs",flexWrap:"wrap",className:eV().radioGroupContainer,children:j&&j.map((e,r)=>(0,n.jsx)(a.BJc,{className:eV().radioContainer,children:(0,n.jsx)(eA.G,{variant:"inputWrapper",children:(0,n.jsx)(a.BJc,{className:eV().radioItem,children:(0,n.jsxs)(a.sxL,{value:e.value,isFramed:!0,children:[(0,n.jsxs)(a.BJc,{direction:"column",spacing:"3xs",children:[(0,n.jsx)(a.o5u,{variant:"h6",className:eV().heading,children:e.heading}),(0,n.jsx)(a.o5u,{variant:"s1",children:e.description})]}),(0,n.jsx)(a.BJc,{children:(0,n.jsx)(a.o5u,{variant:"h6",children:e.totalPrice})})]})})})},e.value+r))})})}),eW=(0,u.A)(eG);var ez=t(61902),e$=t(22427),eY=t(22566),eK=t.n(eY),eQ=t(15039),eZ=t.n(eQ);let e0={style:{base:{fontSize:"16px",color:"#232632","::placeholder":{color:"#9e9fa1",fontSize:"14px",fontWeight:300}},invalid:{color:"#232632"}}},e5=(e,r,t,n)=>{e?(t(!0),n("")):!e&&r?(t(!1),n(r)):(t(!1),n(""))},e1=(e,r,t,i,l)=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.o5u,{variant:"l1",children:r}),(0,n.jsx)(e,{onChange:t,options:e0,onReady:()=>{null==l||l.action(U.X.SET_READY_PAYMENT_FORM_ELEMENT_NUMBER)}}),i&&(0,n.jsx)(a.o5u,{variant:"b2",className:eK().errorMessage,children:i})]}),e3=e=>{let{cardHolderName:r,cardNumberLabel:t,cardExpiryDateLabel:l,cardCvcLabel:o,tooltipContent:c,payButtonLabel:d,readyPaymentFormElementNumber:u}=e,m=(0,ez.useStripe)(),p=(0,ez.useElements)(),h=(0,s.useContext)(z),[v,x]=(0,s.use
1State)(!1),[y,g]=(0,s.useState)(""),[f,j]=(0,s.useState)(!1),[b,C]=(0,s.useState)(""),[E,S]=(0,s.useState)(!1),[A,_]=(0,s.useState)(""),{core:L}=(0,i.Xh)(),w=(()=>{let e=(0,ez.useStripe)(),r=(0,ez.useElements)(),t=null==r?void 0:r.getElement(ez.CardNumberElement),n=(0,s.useContext)(z);return async()=>{let i;if(!e||!r)return;let a=await (null==n?void 0:n.createPaymentIntent()),l=null==a?void 0:a.payment.clientSecret;l&&(t&&(i=await (null==n?void 0:n.confirmStripeCardPayment(e,l,{payment_method:{card:t}}))),(null==i?void 0:i.paymentIntent)&&await (null==n?void 0:n.confirmPayment(null==i?void 0:i.paymentIntent)))}})();(0,s.useEffect)(()=>{if(!m)return},[m]),(0,s.useEffect)(()=>()=>{(0,X.h5)(()=>{(0,X.hZ)(null==L?void 0:L.data,u,0)})},[null==L?void 0:L.data,u]);let B=async e=>{e.preventDefault(),w()},N=e=>{var r;let t=e.elementType,n=e.complete,i=null==(r=e.error)?void 0:r.message;switch(t){case"cardNumber":e5(n,i,x,g);break;case"cardExpiry":e5(n,i,j,C);break;case"cardCvc":e5(n,i,S,_)}};return(0,n.jsxs)("form",{id:"paymentForm",onSubmit:B,className:eK().paymentFormContainer,children:[(0,n.jsxs)(a.BJc,{direction:"column",spacing:"s",children:[(0,n.jsx)(a.BJc,{direction:"column",spacing:"3xs",className:eZ()(eK().cardNumber,{[eK().errorState]:y}),children:e1(ez.CardNumberElement,t,N,y,h)}),(0,n.jsxs)(a.BJc,{spacing:"3xs",children:[(0,n.jsx)(a.BJc,{direction:"column",spacing:"3xs",className:eZ()(eK().cardExpiry,{[eK().errorState]:b}),children:e1(ez.CardExpiryElement,l,N,b,h)}),(0,n.jsx)(a.BJc,{direction:"column",spacing:"3xs",className:eZ()(eK().cardCvc,{[eK().errorState]:A}),children:e1(ez.CardCvcElement,o,N,A,h)})]})]}),(0,n.jsx)(a.azJ,{px:"3xs",py:"s",className:eK().toolTip,children:(0,n.jsx)(a.dmR,{addShadow:!1,ariaLabel:"tooltip-stripe-form",pointerPosition:"bottom-middle",children:c})}),(0,n.jsx)(a.$nd,{className:eK().paymentButton,variant:"primary",isDisabled:!m||!p||!(v&&f&&E&&r),children:d})]})};var e2=t(33732),e7=t.n(e2),e6=t(67728),e4=function(e){return e.PAY_NOW="PayNow",e.PAY_LATER="PayLater",e}(e4||{});let e9="PaymentDetailElement",e8=(0,l.Hc7)(3,(0,l.LqE)(e9)),re=(0,H.PA)(e=>{let{core:r}=(0,i.Xh)(),t=(0,s.useContext)(z),{stripePublishableKey:l}=(0,s.useContext)(e6.a)||{},[o,c]=(0,s.useState)(null);if(!(e=>e&&e.type===e9&&(0,d.i5)(e,"readyPaymentFormElementNumberPath")&&"string"==typeof e.readyPaymentFormElementNumberPath&&(0,d.i5)(e,"cardNumberLabel")&&"string"==typeof e.cardNumberLabel&&(0,d.i5)(e,"cardExpiryDateLabel")&&"string"==typeof e.cardExpiryDateLabel&&(0,d.i5)(e,"cardCvcLabel")&&"string"==typeof e.cardCvcLabel&&(0,d.i5)(e,"tooltipContent")&&"string"==typeof e.tooltipContent&&(0,d.i5)(e,"payButtonLabel")&&"string"==typeof e.payButtonLabel)(e.uischema))throw Error("uischema for PaymentDetailElement is not a ".concat(e9," element"));let{path:u,uischema:m}=e,{readyPaymentFormElementNumberPath:p,cardNumberLabel:h,cardExpiryDateLabel:v,cardCvcLabel:x,tooltipContent:y,payButtonLabel:g}=m,f=(0,X.Jt)(null==r?void 0:r.data,u),j=null==r?void 0:r.data.cardHolderName,b=null==r?void 0:r.data.dealerInfoFromOsb.locations[0].osbConnectId,C=null==r?void 0:r.data.readyPaymentFormElementNumber,E=null==r?void 0:r.data.totalCharge;(0,s.useEffect)(()=>{!async function(){try{let e=await (0,e$.c)(null!=l?l:"",{stripeAccount:b});c(e)}catch(e){null==t||t.action(U.X.SET_GLOBAL_API_ERROR,{globalApiError:"Fail to load stripe element"})}}()},[c,b,t,l]);let S={mode:"payment",currency:"aud",amount:100*Number(E)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:eZ()(e7().paymentFormLoaderContainer,{[e7().hideLoader]:3===C||"PayNow"!==f}),children:(0,n.jsx)(a.kt7,{size:32,className:e7().loadingSpinner})}),"PayNow"===f&&(0,n.jsx)(ez.Elements,{stripe:o,options:S,children:(0,n.jsx)(e3,{cardHolderName:j,cardNumberLabel:h,cardExpiryDateLabel:v,cardCvcLabel:x,tooltipContent:y,payButtonLabel:g,readyPaymentFormElementNumber:p})})]})}),rr=(0,u.A)(re),rt=e=>{let{body:r,expandCta:t,heading:i,children:l}=e,[o,c]=(0,s.useState)(!1);return(0,n.jsxs)(a.BJc,{direction:"column",spacing:"xs",children:[i?(0,n.jsx)(a.o5u,{variant:"h6",component:"p",children:i}):null,(0,n.jsxs)(a.BJc,{direction:"column",spacing:"m",children:[(0,n.jsx)(a.o
15u,{variant:"b1",component:"p",children:r}),o?l:(0,n.jsx)(b.z,{onClick:()=>c(e=>!e),children:(0,n.jsx)(a.o5u,{variant:"b1",component:"p",fontWeight:"bold",children:t})})]})]})};var rn=t(83790),ri=t.n(rn);let ra=e=>{let{recallsType:r,ariaLabel:t,notificationAndBookingRecalls:i,notificationOnlyRecalls:l,notificationOnlyRecallsCopy:{heading:o,body:s,cta:c},selected:d,handleCheckboxChange:u}=e;return(0,n.jsxs)(a.BJc,{direction:"column",spacing:"s",children:[i.length?(0,n.jsx)(a.$QX,{"aria-label":t,value:d,isDisabled:!u,onChange:u,children:i.map(e=>{let{serviceCode:t,guestDescription:i,sapOperationCode:l}=e;return(0,n.jsx)(a.Sc0,{value:t,isFramed:!0,children:(0,n.jsxs)(a.BJc,{direction:"column",spacing:"3xs",children:[(0,n.jsx)(a.o5u,{variant:"h6",fontWeight:"regular",children:l}),(0,n.jsx)(a.o5u,{variant:"SSR"===r?"b1":"b2",fontWeight:"book",className:ri().description,children:i})]})},t)})}):null,l.length?(0,n.jsx)(a.FcD,{type:"error",children:(0,n.jsx)(rt,{body:s,expandCta:c,heading:o,children:(0,n.jsx)("ul",{className:ri().list,children:l.map(e=>{let{serviceCode:r,guestDescription:t,sapOperationCode:i}=e;return(0,n.jsx)("li",{children:(0,n.jsx)(a.o5u,{isSpecialTextDisabled:!0,children:"[".concat(i,"] ").concat(t)})},r)})})})}):null]})},rl="SafetyRecallsElement",ro=(0,l.Hc7)(2,(0,l.LqE)(rl)),rs=(0,i.JP)(e=>{let{uischema:r,data:t}=e;if(!(e=>e&&e.type===rl)(r))throw Error("uischema for SafetyRecallsElement is not a ".concat(rl," element"));if(!(0,N.b$)(t)||[t.safetyRecallsNotificationAndBooking,t.safetyRecallsNotificationOnly].every(e=>!e.length))return null;let{ariaLabel:i="Safety recall services",notificationOnlyRecalls:a}=r,{safetyRecallsNotificationAndBooking:l,safetyRecallsNotificationOnly:o}=t,s=l.map(e=>{let{serviceCode:r}=e;return r});return(0,n.jsx)(ra,{notificationAndBookingRecalls:l,notificationOnlyRecalls:o,notificationOnlyRecallsCopy:a,ariaLabel:i,selected:s,recallsType:"SSR"})}),rc="ServiceCampaignsElement",rd=["modalTitle","modalDescription","noThanksCtaText","yesRemoveCtaText","removalNotice"],ru=(0,l.Hc7)(2,(0,l.LqE)(rc)),rm=e=>Array.isArray(e),rp=(0,u.A)(e=>{let{uischema:r,data:t}=e,{core:l}=(0,i.Xh)(),{setValue:u}=(0,c.A)(e),[m,p]=(0,s.useState)((e=>rm(e)?e.map(e=>e.serviceCode):[])(t)),[h,v]=(0,s.useState)(null),[x,y]=(0,s.useState)(!1),g=null==l?void 0:l.data.recallServices;if(!(e=>e&&e.type===rc&&rd.every(r=>(0,d.i5)(e,r)))(r))throw Error("uischema for ServiceCampaignsElement is not a ".concat(rc," element"));if(!(0,N.b$)(g)||[g.serviceCampaignsNotificationAndBooking,g.serviceCampaignsNotificationOnly].every(e=>!e.length))return null;if(!rm(t))throw Error("Invalid data type for ServiceCampaignsElement");let f=t.map(e=>e.serviceCode),{ariaLabel:j="Recommended service campaign services",modalTitle:b,modalDescription:C,noThanksCtaText:E,yesRemoveCtaText:S,removalNotice:A,notificationOnlyRecalls:_}=r,{serviceCampaignsNotificationAndBooking:L,serviceCampaignsNotificationOnly:w}=g,B=()=>{y(!1),v(null)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ra,{notificationAndBookingRecalls:L,notificationOnlyRecalls:w,notificationOnlyRecallsCopy:_,ariaLabel:j,handleCheckboxChange:e=>{if(e.length<m.length){let r=m.find(r=>!e.includes(r)),t=L.find(e=>e.serviceCode===r);t&&(v(t),y(!0))}else u(L.filter(r=>{let{serviceCode:t}=r;return e.includes(t)})),p(e)},selected:f,recallsType:"CSE"}),(0,n.jsxs)(o.A,{isOpen:x,isPopover:!0,heading:b,onClose:B,children:[(0,n.jsx)(a.o5u,{variant:"b2",children:"".concat(A,' "').concat(null==h?void 0:h.guestDescription,'"')}),(0,n.jsx)(a.o5u,{variant:"b2",children:C}),(0,n.jsxs)(a.BJc,{direction:"column",spacing:"3xs",children:[(0,n.jsx)(a.$nd,{variant:"secondary",onClick:B,children:E}),(0,n.jsx)(a.$nd,{variant:"primary",onClick:()=>{u(t.filter(e=>e.serviceCode!==(null==h?void 0:h.serviceCode))),p(f.filter(e=>e!==(null==h?void 0:h.serviceCode))),B()},children:S})]})]})]})});var rh=t(4392),rv=t.n(rh);let rx="ScheduledServicesElement",ry=(0,l.Hc7)(2,(0,l.LqE)(rx)),rg=(0,u.A)(e=>{let{uischema:r,data:t}=e,{setValue:i}=(0,c.A)(e);if(!(e=>e&&e.type===rx&&(0,d.i5)(e,"yesLabel")&&(0,d.i5)(e,"noLabel"))(r))throw Error("uischema for ScheduledServicesElement is not a ".concat(rx," element"));if(!(e=>"string"==typeof e&&["yes","no"].includes(e))(t))return null;let{yesLabel:l,noLabel:o,ariaLabel:s="Select scheduled service"}=r;return(0,n.jsxs)(a.z6M,{value:t,"aria-label":s,onChange:e=>{i(e)},orientation:"horizontal",children:[(0,n.jsx)(a.sxL,{value:N.dU.yes,className:rv().radioItem,isFramed:!0,children:l}),(0,n.jsx)(a.sxL,{value:N.dU.no,className:rv().radioItem,isFramed:!0,children:o})]})}),rf=(0,s.createContext)(void 0);
1var rj=t(80950),rb=t(4479);let rC="UpcomingBookingLayoutElement",rE=(0,l.Hc7)(1,(0,l.LqE)(rC)),rS=e=>!!(e&&(0,d.i5)(e,"uuid")&&(0,d.i5)(e,"bookingRequestId")&&(0,d.i5)(e,"dealer")&&(0,d.i5)(e,"vehicle")),rA=(0,H.PA)(e=>{let{uischema:r,schema:t,enabled:l,renderers:o}=e,{core:s}=(0,i.Xh)();if(!(e=>e&&e.type===rC)(r))throw Error("uischema for ArrayLayoutElement is not a ".concat(rC," element"));let c={elements:r.elements,schema:t,enabled:l},d=null==s?void 0:s.data.upcomingBookings;return(e=>Array.isArray(e)&&e.length>0&&e.every(rS))(d)?(0,n.jsx)(a.BJc,{direction:"column",children:d.map((e,r)=>(0,n.jsx)(rf.Provider,{value:r,children:(0,n.jsx)(rj.k,{...c,renderers:o})},r))}):null}),r_=(0,rb.A)(rA),rL=e=>{let r,t,{core:n}=(0,i.Xh)(),a=(0,s.useContext)(rf),l=null==n?void 0:n.data.selectedUpcomingBooking,o=void 0!==a&&e.indexOf(_.Y$)>-1;return o?(r=e.replace(_.Y$,a.toString()),t=(0,A.F2)(r,null==n?void 0:n.data)):t=l,[t,l,o]},rw="UpcomingBookingServiceSummaryElement",rB=(0,l.Hc7)(3,(0,l.LqE)(rw)),rN=["cartTotalPriceLabel","cartTotalPriceSubLabel","additionalServiceRequestsLabel","scheduledServiceTitle","valueAddedServicesTitle","safetyRecallsTitle","serviceCampaignsTitle"],rk=(e,r)=>e.filter(e=>e.recallType===r),rT=e=>{var r;let{cartSummaryTitle:t,scheduledServiceTitle:i,valueAddedServicesTitle:a,safetyRecallsTitle:l,serviceCampaignsTitle:o,upcomingBooking:s,cartTotalPriceLabel:c,cartTotalPriceSubLabel:d,additionalServiceRequestsLabel:u,additionalServiceRequests:m,complimentaryPriceLabel:p="Complimentary"}=e,{recalls:h,vehicleDiagnosticsAlerts:v,service:x,additionalServices:y,retailCategoryCode:g,fleetPricingApplied:f}=s;return(0,n.jsx)(ec,{cartSummaryTitle:t,servicesTitles:{scheduledServiceTitle:i,valueAddedServicesTitle:a,safetyRecallsTitle:l,serviceCampaignsTitle:o},services:{safetyRecalls:rk(h,_.ej),serviceCampaigns:rk(h,_.Sf),scheduledService:(0,A.hg)(x),valueAddedServices:(0,A.d0)(y),alerts:null!=(r=null==v?void 0:v.alerts)?r:[]},cartTotal:(0,A.jm)("yes",{service:[x],retailCategoryCode:null!=g?g:null,fleetPricingApplied:null!=f?f:null},[(0,A.hg)(x),...(0,A.d0)(y)]),priceLabel:{cartTotalPriceLabel:c,cartTotalPriceSubLabel:d,complimentaryPriceLabel:p},additionalServiceRequestsLabel:u,additionalServiceRequests:m})},rP=(0,H.PA)(e=>{let{uischema:r,path:t}=e,[i,l,o]=rL(t);if(!(e=>e&&e.type===rw&&rN.every(r=>(0,d.i5)(e,r)))(r))throw Error("uischema for ServiceSummaryElement is not a ".concat(rw," element"));let{cartSummaryTitle:s,cartTotalPriceLabel:c,cartTotalPriceSubLabel:u,additionalServiceRequestsLabel:m,scheduledServiceTitle:p,valueAddedServicesTitle:h,safetyRecallsTitle:v,serviceCampaignsTitle:x,complimentaryPriceLabel:y="Complimentary"}=r;if(!i)return null;let{totalPrice:g,service:f,uuid:j}=i,b=f.vehicleConcernsComment||"None";if(!g||"string"!=typeof g)return(0,ed.v)("Cart total ".concat(g," is not a valid amount.")),null;let C={cartSummaryTitle:s,scheduledServiceTitle:p,valueAddedServicesTitle:h,safetyRecallsTitle:v,serviceCampaignsTitle:x,upcomingBooking:i,cartTotalPriceLabel:c,cartTotalPriceSubLabel:u,additionalServiceRequestsLabel:m,additionalServiceRequests:b,complimentaryPriceLabel:y};return l.uuid===j?o?(0,n.jsx)(a.y9U,{children:rT(C)}):rT(C):null}),rI=(0,u.A)(rP);var rD=t(29881),rO=t.n(rD),rF=t(83897);let rR="UpcomingBookingHeaderElement",rJ=(0,l.Hc7)(3,(0,l.LqE)(rR)),rq={year:"numeric",month:"short",day:"numeric"},rM=(0,H.PA)(e=>{let{uischema:r,path:t}=e,{osbActions:i}=(0,rF.A)(),l=(0,s.useContext)(rf),[o,c]=rL(t);if(!(e=>e&&e.type===rR&&(0,d.i5)(e,"lessChipLabel")&&"string"==typeof e.lessChipLabel&&(0,d.i5)(e,"viewChipLabel")&&"string"==typeof e.viewChipLabel)(r))throw Error("uischema for UpcomingBookingServiceSummaryElement is not a ".concat(rR," element"));if(void 0===l)throw Error("Array index is not available");let{lessChipLabel:u,viewChipLabel:m}=r;if(!o)return null;let p=o.appointment.dropOffDate,h=o.service.name;return(0,n.jsxs)(a.BJc,{justifyContent:"space-between",children:[(0,n.jsxs)(a.BJc,{direction:"column",spacing:"4xs",children:[(0,n.jsx)(a.o5u,{variant:"l1",className:rO().label,children:p&&new Intl.DateTimeFormat("en-AU",rq).format(new Date(p))}
1),(0,n.jsx)(a.o5u,{variant:"b1",children:h})]}),(0,n.jsx)(a.vu3,{variant:"ghost",size:"small",onClick:()=>{null==i||i.action(U.X.SET_SELECTED_UPCOMING_BOOKING,{selectedUpcomingBooking:o})},children:c.uuid===o.uuid?u:m})]})}),rH=(0,u.A)(rM);var rV=t(6876),rU=t.n(rV);let rX="UpcomingBookingDetailsElement",rG=(0,l.Hc7)(3,(0,l.LqE)(rX)),rW=(e,r)=>(0,n.jsxs)(a.BJc,{direction:"column",spacing:"s",children:[e&&(0,n.jsx)(a.o5u,{variant:"s1",children:e}),(0,n.jsx)(a.cGx,{}),(0,n.jsx)(a.BJc,{className:rU().bookingDetails,children:r.slice(0,2).map(e=>rz(e))}),(0,n.jsx)(a.BJc,{className:rU().bookingDetails,children:r.slice(2,4).map(e=>rz(e))})]}),rz=e=>(0,n.jsxs)(a.BJc,{direction:"column",spacing:"4xs",className:rU().bookingDetailsItem,children:[(0,n.jsx)(a.o5u,{variant:"l1",className:rU().label,children:e.label}),(0,n.jsx)(a.o5u,{variant:"b1",children:e.value})]},e.label),r$=(0,H.PA)(e=>{let{uischema:r,path:t}=e,[i,l,o]=rL(t);if(!(e=>e&&e.type===rX&&(0,d.i5)(e,"servicingDateLabel")&&"string"==typeof e.servicingDateLabel&&(0,d.i5)(e,"preferredTransportOptionLabel")&&"string"==typeof e.preferredTransportOptionLabel&&(0,d.i5)(e,"pickupTimeLabel")&&"string"==typeof e.pickupTimeLabel&&(0,d.i5)(e,"dropoffTimeLabel")&&"string"==typeof e.dropoffTimeLabel)(r))throw Error("uischema for UpcomingBookingServiceSummaryElement is not a ".concat(rX," element"));if(!i)return null;let s=i.appointment.dropOffDate,c=i.appointment.pickUpTime,u=i.appointment.dropOffTime,m=i.transportOption,{heading:p,servicingDateLabel:h,preferredTransportOptionLabel:v,pickupTimeLabel:x,dropoffTimeLabel:y}=r,g=[{label:h,value:new Intl.DateTimeFormat("en-AU",A.Sc).format(new Date(s))},{label:v,value:m},{label:y,value:(0,A.pj)(u)},{label:x,value:(0,A.pj)(c)}];return l.uuid===i.uuid?o?(0,n.jsx)(a.y9U,{children:rW(p,g)}):rW(p,g):null}),rY=(0,u.A)(r$),rK="UpcomingBookingAlertElement",rQ=(0,l.Hc7)(3,(0,l.LqE)(rK)),rZ=(0,H.PA)(e=>{let{uischema:r,path:t}=e,[i,l]=rL(t);if(!(e=>e&&e.type===rK&&(0,d.i5)(e,"alertText")&&"string"==typeof e.alertText)(r))throw Error("uischema for UpcomingBookingAlertElement is not a ".concat(rK," element"));let{alertText:o}=r;return i&&l.uuid===i.uuid?(0,n.jsx)(a.FcD,{type:"warning",children:(0,n.jsx)(a.o5u,{variant:"b1",children:o})}):null}),r0=(0,u.A)(rZ);var r5=t(34801),r1=t.n(r5);let r3="UpcomingBookingButtonGroupElement",r2=(0,l.Hc7)(3,(0,l.LqE)(r3)),r7=(0,H.PA)(e=>{let{uischema:r,path:t}=e,i=(0,s.useContext)(z),l=(0,s.useContext)(rf),[o,c]=rL(t);if(!(e=>e&&e.type===r3)(r))throw Error("uischema for UpcomingBookingButtonGroupElement is not a ".concat(r3," element"));if(void 0===l)throw Error("Array index is not available");let{cancelServiceButtonLabel:d,manageBookingButtonLabel:u}=r;return o&&c.uuid===o.uuid?(0,n.jsxs)(a.BJc,{spacing:"3xs",className:r1().buttonGroup,children:[(0,n.jsx)(a.$nd,{variant:"secondary",onClick:()=>{null==i||i.action(U.X.OPEN_CANCEL_BOOKING_MODAL)},children:d}),(0,n.jsx)(a.$nd,{onClick:()=>{null==i||i.action(U.X.OPEN_MANAGE_BOOKING_MODAL)},children:u})]}):null}),r6=(0,u.A)(r7),r4="RecallsNotificationElement",r9=(0,l.Hc7)(2,(0,l.LqE)(r4)),r8=(0,u.A)(e=>{let{uischema:r,data:t}=e,{notificationType:i,notificationTitle:l,notificationHelpText:o}=r,s="safetyRecalls"===i?"safetyRecallsNotificationOnly":"serviceCampaignsNotificationOnly";if(!(0,N.b$)(t)||0===t[s].length)return null;if(!(e=>e&&e.type===r4&&(0,d.i5)(e,"notificationTitle")&&(0,d.i5)(e,"notificationType")&&("safetyRecalls"===e.notificationType||"serviceCampaigns"===e.n
1otificationType))(r))throw Error("uischema for RecallsNotificationElement is not a ".concat(r4," element"));return(0,n.jsxs)(a.BJc,{direction:"column",spacing:"s",children:[(0,n.jsx)(a.o5u,{variant:"h5",children:l}),t[s].map(e=>(0,n.jsx)(a.o5u,{variant:"b1",children:(0,A.KQ)(e.guestDescription)},e.serviceCode)),o&&(0,n.jsx)(a.o5u,{variant:"b1",children:o})]})}),te="BookingNotFoundModalElement",tr=(0,l.Hc7)(2,(0,l.LqE)(te)),tt=(0,H.PA)(e=>{let{uischema:r,data:t}=e,i=(0,s.useContext)(z);if(!(e=>e&&e.type===te&&(0,d.i5)(e,"heading")&&"string"==typeof e.heading&&(0,d.i5)(e,"buttonLabel")&&"string"==typeof e.buttonLabel)(r))throw Error("uischema for BookingNotFoundModalElement is not a ".concat(te," element"));if(!(0,d.sx)(t))return null;let{heading:l,buttonLabel:c}=r;return(0,n.jsx)(o.A,{isOpen:!0,heading:l,isPopover:!0,children:(0,n.jsx)(a.$nd,{onClick:()=>{null==i||i.action(U.X.BOOK_A_SERVICE_FROM_MANAGE_BOOKING)},children:c})})}),tn=(0,u.A)(tt),ti="CancelBookingModalElement",ta=(0,l.Hc7)(2,(0,l.LqE)(ti)),tl=(0,u.A)(e=>{let{uischema:r,data:t}=e,{setValue:i}=(0,c.A)(e),l=(0,s.useContext)(z);if(!(e=>e&&e.type===ti&&(0,d.i5)(e,"title")&&"string"==typeof e.title&&(0,d.i5)(e,"cancelButtonLabel")&&"string"==typeof e.cancelButtonLabel&&(0,d.i5)(e,"keepBookingButtonLabel")&&"string"==typeof e.keepBookingButtonLabel)(r))throw Error("uischema for CancelBookingModalElement is not a ".concat(ti," element"));if(!(0,d.sx)(t))return null;let{title:u,cancelButtonLabel:m,keepBookingButtonLabel:p}=r;return(0,n.jsx)(o.A,{isOpen:!0,isPopover:!0,heading:u,onClose:()=>i(!1),children:(0,n.jsxs)(a.BJc,{direction:"column",spacing:"3xs",children:[(0,n.jsx)(a.$nd,{onClick:()=>{null==l||l.action(U.X.CANCEL_BOOKING)},children:m}),(0,n.jsx)(a.$nd,{variant:"secondary",onClick:()=>i(!1),children:p})]})})});var to=t(9665);let ts="BookingModificationErrorModalElement",tc=(0,l.Hc7)(2,(0,l.LqE)(ts)),td=(0,u.A)(e=>{let{uischema:r,data:t}=e,{setValue:i}=(0,c.A)(e);if(!(e=>e&&e.type===ts&&(0,d.i5)(e,"title")&&"string"==typeof e.title&&(0,d.i5)(e,"description")&&"string"==typeof e.description&&(0,d.i5)(e,"closeCtaLabel")&&"string"==typeof e.closeCtaLabel)(r))throw Error("uischema for BookingModificationErrorModalElement is not a ".concat(ts," element"));let{title:l,description:s,closeCtaLabel:u}=r,m=(0,to.A)()(s);return(0,d.sx)(t)?(0,n.jsxs)(o.A,{isOpen:!0,heading:l,isPopover:!0,onClose:()=>i(!1),children:[(0,n.jsx)(a.sDQ,{html:m}),(0,n.jsx)(a.$nd,{onClick:()=>i(!1),children:u})]}):null});var tu=t(33716);let tm="ManageBookingModalElement",tp=(0,l.Hc7)(2,(0,l.LqE)(tm)),th=(0,u.A)(e=>{let{uischema:r,data:t}=e,{setValue:i}=(0,c.A)(e),l=(0,s.useContext)(z);if(!(e=>e&&e.type===tm&&(0,d.i5)(e,"title")&&"string"==typeof e.title&&(0,d.i5)(e,"manageCTALabel")&&"string"==typeof e.manageCTALabel&&(0,d.i5)(e,"keepMyBookingCTALabel")&&"string"==typeof e.keepMyBookingCTALabel)(r))throw Error("uischema for ManageBookingModalElement is not a ".concat(tm," element"));if(!(0,d.sx)(t))return null;let{title:u,manageCTALabel:m,keepMyBookingCTALabel:p}=r;return(0,n.jsx)(o.A,{isOpen:!0,isPopover:!0,heading:u,onClose:()=>i(!1),children:(0,n.jsxs)(a.BJc,{direction:"column",spacing:"3xs",children:[(0,n.jsx)(a.$nd,{onClick:()=>{null==l||l.action(tu.p.NAVIGATE_NEXT)},children:m}),(0,n.jsx)(a.$nd,{variant:"secondary",onClick:()=>i(!1),children:p})]})})}),tv="VehicleNotSupportedModalElement",tx=(0,l.Hc7)(3,(0,l.LqE)(tv)),ty=(0,u.A)(e=>{let{uischema:r,data:t}=e,{core:l}=(0,i.Xh)(),s=null==l?void 0:l.data.selectedDealer;if(!(e=>e.type===tv&&(0,d.i5)(e,"title")&&(0,d.i5)(e,"contactUsCtaLabel")&&(0,d.i5)(e,"otherRegoCtaLabel"))(r))throw Error("uischema for VehicleNotSupportedModalElement is not a ".concat(tv," element"));if(!s||!(0,d.sx)(t))return null;let{title:c,contactUsCtaLabel:u,otherRegoCtaLabel:m}=r;return(0,n.jsx)(o.A,{isOpen:t,heading:c,isPopover:!0,children:(0,n.jsxs)(a.BJc,{spacing:"3xs",direction:"column",children:[(0,n.jsx)(a.$nd,{onClick:()=>{var e,r;let t=null==s||null==(r=s.locations)||null==(e=r[0])?void 0:e.webSite;t&&(e=>{try{return new URL(e),!0}catch(e){return!1}})(t)||(t=_.br),(0,A.g)(t,_.Xo)},children:u}),(0,n.jsx)(a.$nd,{onClick:()=>{window.location.reload()},variant:"secondary",children:m})]})})}),tg=[...q.K,{tester:v,renderer:y},{tester:P,renderer:D},{tester:ee,renderer:et},{tester:R,renderer:J},{tester:ep,renderer:ex},{tester:eg,renderer:ej},{tester:eC,renderer:eS},{tester:ew,renderer:eN},{tester:eT,renderer:eD},{tester:eJ,renderer:eM},{tester:eX,renderer:eW},{tester:e8,renderer:rr},{tester:ro,renderer:rs},{tester:ru,renderer:rp},{tester:ry,renderer:rg},{tester:rE,renderer:r_},{tester:rB,renderer:rI},{tester:rJ,renderer:rH},{tester:rG,renderer:rY},{tester:rQ,renderer:r0},{tester:r2,renderer:r6},{tester:tc,renderer:td},{tester:tr,renderer:tn},{tester:r9,renderer:r8},{tester:tx,renderer:ty},{tester:ta,renderer:tl},{tester:tp,renderer:th}];var tf=t(70288),tj=t.n(tf),tb=t(18529),tC=t.n(tb),tE=t(74365),tS=t(14500),tA=t(6259),t_=t(75690),tL=t(89099),tw=t(65671),tB=t(40001),tN=t(1609),tk=t(65254);let tT=e=>({firstname:e.guestfirstname,lastname:e.guestlastname,email:e.guestemail,mobileNumber:e.guestphone,dealer:e.dealerCode&&e.branchCode?{dealerCode:e.dealerCode,locationCode:e.branchCode}:void 0,vehicle:{vin:e.vin},osbView:e.osbMode,isQueryParamAuthenticated:!0,isIframe:"true"===e.iframe,connectedId:e.connectedId});var tP=t(7218),tI=t(69639),tD=t(68024),tO=t(14230);let tF=(0,H.PA)(e=>{var r;let{isEE:t,rendering:o,formConfig:c}=e,d=(0,tL.useRouter)(),u=(0,s.useContext)(tw.C),{registerEvent:m}=(0,tD.u)(),{formDataSchema:p,uiSchema:h,dealers:v,manageBookingToggle:x,pilotDealers:y,defaultRedirectURL:g}=c,f=!!p&&!!h,{bookingSource:j}=(0,tS.A)(),{status:b,availableDealers:C,defaultLocation:E}=(0,tA.A)({preSetDealerCodes:v,filterByType:tO.Sj.Service}),{osbActions:S,osbApiService:A}=(0,rF.A)(),{status:_}=(e=>{let{data:r,status:t}=(()=>{let e=(0,tL.useRouter)(),r=(0,tk.qn)(e.query.data),t=(0,tk.qn)(e.query.osbMode),n=(0,s.useContext)(tw.C),[i,a]=(0,s.useReducer)(tN.f,{data:void 0,status:t_.R.Idle}),l=(0,s.useCallback)(()=>{var r,t;a({type:"FETCH_INIT"}),a({type:"FETCH_SUCCESS",payload:tT({guestfirstname:(0,tk.qn)(e.query.guestfirstname)||"",guestlastname:(0,tk.qn)(e.query.guestlastname)||"",guestemail:(null==(r=(0,tk.qn)(e.query.guestemail))?void 0:r.replaceAll(" ","+"))||"",guestphone:(0,tk.qn)(e.query.guestphone)||"",dealerCode:(0,tk.qn)(e.query.dealerCode)||"",branchCode:(0,tk.qn)(e.query.branchCode)||"",bookingsource:(0,tk.qn)(e.query.bookingsource)||"",connectedId:(0,tk.qn)(e.query.connectedId)||"",supressp
1opup:(0,tk.qn)(e.query.supresspopup)||"",brand:(null==(t=(0,tk.qn)(e.query.brand))?void 0:t.toUpperCase())==="TOYOTA"?"TOYOTA":"LEXUS",timestamp:(0,tk.qn)(e.query.timestamp)||"",vin:(0,tk.qn)(e.query.vin)||"",osbMode:"view"===(0,tk.qn)(e.query.osbMode)?"view":"new",iframe:(0,tk.qn)(e.query.iframe)||""})})},[e.query]),o=(0,s.useCallback)(async e=>{let r=tB.A.instance;a({type:"FETCH_INIT"});try{let t=await r.decryptMessage(e),n=tT(t);a({type:"FETCH_SUCCESS",payload:n})}catch(e){(0,ed.v)("Error decrypting customer details: ".concat(e)),a({type:"FETCH_FAILURE"})}},[]),c=(0,s.useCallback)(async()=>{if(null==n?void 0:n.customerService){a({type:"FETCH_INIT"});try{let e=await n.customerService.getAuthenticatedCustomerInformation();a({type:"FETCH_SUCCESS",payload:e})}catch(e){(0,ed.v)("Error fetching customer details: ".concat(e)),a({type:"FETCH_FAILURE"})}}},[null==n?void 0:n.customerService]);return(0,s.useEffect)(()=>{r?o(r):t?l():c()},[r,t,c,o,l]),i})();return(0,s.useEffect)(()=>{(null==r?void 0:r.vehicle)&&e&&e.action(U.X.SET_AUTHENTICATED_CUSTOMER_DETAILS,{authenticatedCustomerInfo:r})},[r,e]),{status:t}})(S),L=(()=>{let[e,r]=(0,s.useState)({});return(0,s.useEffect)(()=>(0,X.fm)(()=>{let{takata:e}=tE.A.vehicleInfo||{};e&&e.takataStatus&&r({recalls:e.takataStatus})}),[]),e})();(()=>{let e=(0,s.useRef)(null);(0,s.useEffect)(()=>{let r=(0,X.mJ)(()=>tE.A.osbStepInfo.currentStep,async(r,t)=>{if(r===t)return;let{focusSectionId:n}=tE.A.osbStepInfo;if(e.current&&clearInterval(e.current),n)e.current=setInterval(()=>{let r=document.getElementById(n);r&&(r.scrollIntoView({behavior:"smooth"}),e.current&&clearInterval(e.current),(0,X.h5)(()=>{tE.A.osbStepInfo.focusSectionId=void 0}))},100);else window.scrollTo(0,0)});return()=>{r(),e.current&&clearInterval(e.current)}},[])})();let w=(0,s.useMemo)(()=>({rendering:o}),[o]);if((0,s.useEffect)(()=>{S&&(S.setupFormData({manageBookingToggle:x,pilotDealers:y,bookingSource:j,customerService:null==u?void 0:u.customerService,defaultRedirectURL:g,availableDealers:C,selectedLocation:E}),S.registerEvent=m)},[j,S,null==u?void 0:u.customerService,x,y,m,g,C,E]),!S||!A)return(0,n.jsx)("div",{children:(0,n.jsx)("span",{children:"Site configs not available required for Osb Form"})});(b===t_.R.Error||_===t_.R.Error)&&S.action(U.X.SET_GLOBAL_API_ERROR,{globalApiError:"Missing required site configs for OsbForm"});let B=(0,l.grE)({allErrors:!0,verbose:!0,strict:!1});return(tC()(B),t&&!f)?(0,n.jsx)("div",{children:"Lexus OSB Form require a correct data source at Data/Forms/OnlineServiceBooking"}):(0,n.jsx)(tI.u.Provider,{value:w,children:(0,n.jsx)(z.Provider,{value:S,children:(0,n.jsx)(G.Provider,{value:A,children:(0,n.jsx)("div",{className:(null===tE.A||void 0===tE.A||null==(r=tE.A.authenticatedCustomerInfo)?void 0:r.isIframe)?tj().osbFormIframed:void 0,children:(0,n.jsxs)(a.MG2,{children:[(_===t_.R.Loading||!d.isReady)&&(0,n.jsx)("div",{className:tj().osbFormSpinner,children:(0,n.jsx)(a.kt7,{size:32})}),(0,n.jsx)(tP.tR,{buckets:L,children:(0,n.jsx)(i._f,{ajv:B,data:tE.A,schema:p,uischema:h,renderers:tg,validationMode:"ValidateAndShow",additionalErrors:tE.A.formErrors})})]})})})})})})},6876:e=>{e.exports={bookingDetails:"UpcomingBookingDetailsElement_bookingDetails__awohR",bookingDetailsItem:"UpcomingBookingDetailsElement_bookingDetailsItem__9bqFH",label:"UpcomingBookingDetailsElement_label__Tsiqe"}},22566:e=>{e.exports={paymentFormContainer:"StripeForm_paymentFormContainer__yeVme",cardNumber:"StripeForm_cardNumber__Ab1Nm",cardExpiry:"StripeForm_cardExpiry__Ktbhw",cardCvc:"StripeForm_cardCvc__SxRAP",errorState:"StripeForm_errorState__iUScE",errorMessage:"StripeForm_errorMessage__KWHzP",toolTip:"StripeForm_toolTip__YRybl",paymentButton:"StripeForm_paymentButton__kL9iI"}},29881:e=>{e.exports={label:"UpcomingBookingHeaderElement_label___aX7J"}},31668:e=>{e.exports={serviceIntervalChip:"ServiceInterval_serviceIntervalChip___q3TQ"}},33732:e=>{e.exports={paymentFormLoaderContainer:"PaymentDetailElement_paymentFormLoaderContainer__rsPa9",loadingSpinner:"PaymentDetailElement_loadingSpinner__hYpts",hideLoader:"PaymentDetailElement_hideLoader__IYDdM"}},34801:e=>{e.exports={buttonGroup:"UpcomingBookingButtonGroupElement_buttonGroup__2K_ix"}},40655:e=>{e.exports={ldForm:"PaymentOptionsElement_ldForm__9sFgv",radioGroupContainer:"PaymentOptionsElement_radioGroupContainer__2xe8O",radioContainer:"PaymentOptionsElement_radioContainer__01Kl4",radioItem:"PaymentOptionsElement_radioItem__FQrcV",heading:"PaymentOptionsElement_heading__cRe9p"}},60219:(e,r,t)=>{"use strict";t.d(r,{A:()=>l});var n=t(37876),i=t(87679),a=t(70148);let l=e=>{let{isLoading:r,label:t,defaultValue:l,isDateUnavailable:o,onChange:s,errorMessage:c,showAsterisk:d}=e;return(0,n.jsx)(i.lrV,{isLoading:r,label:t,defaultValue:l,minValue:(0,a.Ec)((0,a.Xj)()),isDateUnavailable:o,onChange:s,errorMessage:c,isInvalid:!!c||void 0,showAsterisk:d})}},64063:e=>{e.exports={serviceName:"CartSummary_serviceName___ATc7",serviceBlock:"CartSummary_serviceBlock__s_o4F",serviceDescriptionBlock:"CartSummary_serviceDescriptionBlock__HkCb2",listItem:"CartSummary_listItem__eLxhq",servicePrice:"CartSummary_servicePrice__Bu9Bl",tooltip:"
1CartSummary_tooltip__qkkcz"}},70288:e=>{e.exports={ldSurface:"OsbForm_ldSurface__cFUBi",osbFormIframed:"OsbForm_osbFormIframed__ni9lY",osbFormSpinner:"OsbForm_osbFormSpinner__FnF7s",osbFormDynamicLoading:"OsbForm_osbFormDynamicLoading__8EjD4"}},74331:e=>{e.exports={checkboxContainer:"CommunicationPreferencesElement_checkboxContainer__X1zdX"}},83790:e=>{e.exports={list:"RecallsElement_list__G5L1D",description:"RecallsElement_description__hxtaE"}},85696:e=>{e.exports={serviceDetail:"ServiceDetail_serviceDetail__hW0ZC"}},87174:e=>{e.exports={alertsList:"VehicleAlerts_alertsList__6LO79",inspectionDetailsLink:"VehicleAlerts_inspectionDetailsLink__dzHZJ",modalBorder:"VehicleAlerts_modalBorder__Pe0MF"}}}]);
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.