1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7420,9641],{12881:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(37876);a(14232);var s=a(95062),l=a.n(s);let r=e=>{let{close:t}=e;return(0,n.jsx)("div",{className:"h-full bg-overlay-modal",role:"presentation",onClick:t})};r.propTypes={close:l().func},r.defaultProps={close:void 0};let i=r},15039:(e,t)=>{var a;!function(){"use strict";var n={}.hasOwnProperty;function s(){for(var e="",t=0;t<arguments.length;t++){var a=arguments[t];a&&(e=l(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return s.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var a in e)n.call(e,a)&&e[a]&&(t=l(t,a));return t}(a)))}return e}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(s.default=s,e.exports=s):void 0===(a=(function(){return s}).apply(t,[]))||(e.exports=a)}()},21671:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var n=a(14232);let s=n.forwardRef(function(e,t){let{title:a,titleId:s,...l}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":s},l),a?n.createElement("title",{id:s},a):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))})},22905:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/instantcashbooking/[uuid]",function(){return a(64611)}])},34969:(e,t,a)=>{"use strict";a.d(t,{R:()=>l});var n=a(14232),s=a(61011);let l=()=>({apiClient:(0,n.useContext)(s.z)})},45224:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n,s,l=a(14232);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}let i=function(e){return l.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48.722 18.765"},e),n||(n=l.createElement("defs",null,l.createElement("linearGradient",{id:"logo_svg__a",x1:.017,x2:.743,y1:.57,y2:.405,gradientUnits:"objectBoundingBox"},l.createElement("stop",{offset:.204,stopColor:"#333836"}),l.createElement("stop",{offset:.544,stopColor:"#2e7459"}),l.createElement("stop",{offset:.849,stopColor:"#2aa474"}),l.createElement("stop",{offset:1,stopColor:"#29b67f"})))),s||(s=l.createElement("g",{"data-name":"OTO Logo_1-03"},l.createElement("g",{"data-name":"Group 10879"},l.createElement("path",{fill:"#333836",d:"M0 10.198a9.9 9.9 0 0 1 2.86-7.2 9.52 9.52 0 0 1 7.1-2.93 9.88 9.88 0 0 1 6.893 2.4 8 8 0 0 1 2.653 6.219 9.78 9.78 0 0 1-2.889 7.158 9.64 9.64 0 0 1-7.13 2.916 9.73 9.73 0 0 1-6.879-2.414A8.01 8.01 0 0 1 0 10.198m9.824-5.33a3.92 3.92 0 0 0-3.056 1.409 5.18 5.18 0 0 0-1.242 3.558 4.06 4.06 0 0 0 1.144 2.958 3.88 3.88 0 0 0 2.9 1.172 4.03 4.03 0 0 0 3.2-1.4 5.2 5.2 0 0 0 1.21-3.539 4.1 4.1 0 0 0-1.144-2.986 4.03 4.03 0 0 0-3.012-1.172","data-name":"Path 14066"})),l.createElement("path",{fill:"#29b67f",d:"M29.215 10.198a9.9 9.9 0 0 1 2.861-7.2 9.52 9.52 0 0 1 7.1-2.93 9.88 9.88 0 0 1 6.893 2.4 8 8 0 0 1 2.651 6.223 9.78 9.78 0 0 1-2.888 7.158 10.56 10.56 0 0 1-14.01.5 8.01 8.01 0 0 1-2.607-6.151m9.823-5.33a3.92 3.92 0 0 0-3.056 1.409 5.18 5.18 0 0 0-1.242 3.558 4.06 4.06 0 0 0 1.144 2.958 3.88 3.88 0 0 0 2.9 1.172 4.03 4.03 0 0 0 3.2-1.4 5.2 5.2 0 0 0 1.214-3.544 4.1 4.1 0 0 0-1.144-2.986 4.02 4.02 0 0 0-3.016-1.167","data-name":"Path 14067"}),l.createElement("path",{fill:"#29b67f",d:"m18.94 18.431 2.64-13.593-7.143-.028.992-4.722L26.861.075l-1.064 4.763h1.073l-2.639 13.591Z","data-name":"Path 14068"}),l.createElement("g",{"data-name":"Group 10880"},l.createElement("path",{fill:"url(#logo_svg__a)",d:"M128.665 39.4s-1.117-.017-1.633-.006c-2.689.055-5.29-.452-6.881.753l-2.031-4.52c2.6-1.45 6.909-.977 9.9-.955 1.273.009 2.195.05 2.195.05","data-name":"Path 14069",transform:"translate(-112.595 -34.579)"}),l.createElement("path",{fill:"#29b67f",d:"M31.582 2.122a15 15 0 0 1 2.59-2.044H20.316l-1.067 4.76 10.345.028a10.3 10.3 0 0 1 1.988-2.744","data-name":"Path 14070"})))))}},64611:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>M});var n,s,l,r,i=a(37876),o=a(15039),c=a.n(o),d=a(14232),u=a(55202),m=a(45224),x=a(95062),f=a.n(x),h=a(12881),p=a(21671);let v=e=>{let{show:t,children:a,close:n,overlay:s,title:l,required:r}=e;return(0,i.jsxs)("div",{className:"animated fixed inset-0 z-50 w-full overflow-y-auto ".concat(t?"fadeIn block":"fadeOut hidden"," faster"),style:{height:"95vh"},role:"presentation",children:[s&&(0,i.jsx)(h.A,{...!r?{close:n}:{}}),(0,i.jsxs)("div",{className:"fixed bottom-0 w-full rounded-t-xl bg-[#272c2a] px-4 pt-4 text-white",children:[(0,i.jsxs)("div",{className:"mb-2 flex justify-between",children:[(0,i.jsx)("div",{className:"font-GingerProBold",children:l}),!r&&(0,i.jsx)("button",{type:"button",className:"bg-transparent",onClick:n,children:(0,i.jsx)(p.A,{className:"w-6 text-white"})})]}),(0,i.jsx)("hr",{border:!0,className:"-mx-4 border-secondary-400"}),(0,i.jsx)("div",{className:"overflow-y-auto",style:{maxHeight:"calc(95vh - 92px)"},children:a})]})]})};v.propTypes={children:f().oneOfType([f().arrayOf(f().node),f().node]).isRequired,show:f().bool,close:f().func,overlay:f().bool,title:f().string,required:f().bool},v.defaultProps={show:!1,overlay:!0,title:"",required:!1,close:void 0};var b=a(68827),g=a.n(b),j=a(93334);function _(){return(_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}let N=function(e){return d.createElement("svg",_({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 80 16"},e),n||(n=d.createElement("g",{clipPath:"url(#xpress-logo_svg__a)"},d.createElement("path",{fill:"#1B1C1E",d:"M52.889 8.087c0 2.142-1.773 3.807-3.777 3.807a3.4 3.4 0 0 1-2.127-.725v4.486h-1.942V4.435h1.942v.585a3.4 3.4 0 0 1 2.127-.724c2.004 0 3.777 1.649 3.777 3.791m-1.973 0c0-1.063-.895-1.973-1.958-1.973s-1.973.909-1.973 1.973.863 1.988 1.973 1.988 1.958-.91 1.958-1.988M58.93 4.296v1.85h-.138c-1.633 0-2.512.431-2.512 1.772v3.838h-1.942V4.434h1.942v.647c.509-.524 1.357-.786 2.342-.786h.309M66.76 8.117c0 .155-.016.4-.03.601H61.21c.216.895.895 1.511 1.974 1.511.755 0 1.403-.308 1.787-.817l1.31 1.049c-.631.847-1.587 1.495-3.051 1.495-2.59 0-3.946-1.881-3.946-3.869s1.526-3.791 3.73-3.791c2.358 0 3.745 1.68 3.745 3.822m-1.927-.786c-.154-.801-.725-1.295-1.773-1.295-.863 0-1.557.478-1.82 1.295h3.592M70.582 10.214c.663 0 .879-.262.879-.524 0-1.079-3.575-.416-3.575-3.052 0-1.357.97-2.342 2.636-2.342 1.186 0 2.22.354 2.836.909l-1.003 1.387a3.1 3.1 0 0 0-1.819-.555c-.586 0-.74.2-.74.447 0 1.017 3.514.524 3.514 3.144 0 1.341-.986 2.328-2.836 2.328-1.371 0-2.25-.524-2.928-1.033l1.002-1.464a3.2 3.2 0 0 0 2.034.755
1M77.226 10.214c.662 0 .878-.262.878-.524 0-1.079-3.575-.416-3.575-3.052 0-1.357.97-2.342 2.636-2.342 1.187 0 2.22.354 2.836.909l-1.002 1.387a3.1 3.1 0 0 0-1.82-.555c-.586 0-.74.2-.74.447 0 1.017 3.515.524 3.515 3.144 0 1.341-.987 2.328-2.836 2.328-1.372 0-2.25-.524-2.929-1.033l1.003-1.464a3.2 3.2 0 0 0 2.034.755"}),d.createElement("path",{fill:"#1B1C1E",fillRule:"evenodd",d:"M43.999 12.49h-2.552L38.13 8.343 34.81 12.49h-2.552l4.598-5.745-4.6-5.746h2.553c3.316 4.146 5.201 6.499 9.19 11.49m-4.706-8.793h2.552L44 .999h-2.552z",clipRule:"evenodd"}),d.createElement("path",{fill:"#333836",d:"M0 7.157q0-2.658 1.78-4.481Q3.56.85 6.2.852q2.641 0 4.291 1.494t1.65 3.874q0 2.64-1.798 4.455-1.797 1.814-4.438 1.814c-1.76 0-3.199-.5-4.282-1.502Q0 9.485 0 7.157m6.114-3.318q-1.13 0-1.902.878-.774.877-.773 2.214 0 1.112.712 1.842t1.806.73q1.233 0 1.99-.869.755-.868.755-2.206 0-1.129-.712-1.859t-1.875-.73z"}),d.createElement("path",{fill:"#29B67F",d:"M18.15 7.127q0-2.673 1.79-4.507T24.386.786 28.7 2.29t1.66 3.895q0 2.656-1.808 4.48-1.809 1.826-4.463 1.826c-1.77 0-3.217-.504-4.306-1.511q-1.635-1.511-1.634-3.852m6.148-3.337q-1.136 0-1.913.882t-.777 2.227q.001 1.117.716 1.852.716.735 1.817.734 1.24.001 2-.874.76-.872.76-2.218 0-1.135-.715-1.87-.717-.733-1.886-.734z"}),d.createElement("path",{fill:"url(#xpress-logo_svg__b)",d:"m3.438 1.46 1.265 2.813c.99-.75 2.61-.434 4.283-.468L9.64.81c-1.891 0-4.605-.216-6.203.65"}),d.createElement("path",{fill:"#29B67F",d:"M16.634.81H9.642l-.657 2.995c.318-.006 1.005.004 1.016.004l1.98.007v.006l1.45.004-1.642 8.455h3.29l1.64-8.447 1.743.004q.436-.93 1.196-1.709c.441-.453 1.38-1.02 1.871-1.32z"}),d.createElement("path",{fill:"#29B67F",d:"M11.747 12.488h3.294l.036-.207h-3.29z"}))),s||(s=d.createElement("defs",null,d.createElement("linearGradient",{id:"xpress-logo_svg__b",x1:3.559,x2:9.084,y1:2.741,y2:2.162,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:.2,stopColor:"#333836"}),d.createElement("stop",{offset:.54,stopColor:"#2E7458"}),d.createElement("stop",{offset:.85,stopColor:"#2AA374"}),d.createElement("stop",{offset:1,stopColor:"#29B67F"})),d.createElement("clipPath",{id:"xpress-logo_svg__a"},d.createElement("path",{fill:"#fff",d:"M0 .786h80v14.868H0z"})))))};function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}let w=function(e){return d.createElement("svg",y({xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"none"},e),l||(l=d.createElement("g",{clipPath:"url(#fire-icon_svg__a)"},d.createElement("path",{fill:"#F3705A",d:"M4.393 15.447c-.734-.834-1.468-1.702-1.936-2.737a6.2 6.2 0 0 1-.367-3.572 7.7 7.7 0 0 1 1.536-3.304 3.18 3.18 0 0 0 .8 2.336c-.333-1.602.201-3.338 1.27-4.606C6.762 2.295 8.231 1.46 9.767.894 9 1.693 8.9 2.962 9.2 4.03s.935 2.003 1.503 2.97c.567.969 1.101 1.97 1.134 3.072.3-.568.635-1.135.835-1.77.2-.634.3-1.301.133-1.935.601.734.935 1.468 1.102 2.403s.134 1.903.034 2.837c-.134 1.035-.401 2.103-.969 2.971-.667 1.035-1.735 1.77-2.904 2.17-2.07.367-4.106.067-5.675-1.302"}),d.createElement("path",{fill:"#FFD15C",d:"M6.93 16.682c2.736 1.069 5.44-2.17 3.938-4.673 0-.033-.033-.033-.033-.067.133 1.369-.2 2.37-.835 2.938.334-.801.1-1.736-.3-2.537-.4-.768-.968-1.469-1.402-2.203-.434-.768-.768-1.636-.568-2.504-.8.6-1.368 1.502-1.602 2.47s-.1 2.037.334 2.938c-.501-.367-.868-.968-.902-1.603-.534.635-.867 1.47-.834 2.304 0 1.302 1.035 2.47 2.203 2.937"}))),r||(r=d.createElement("defs",null,d.createElement("clipPath",{id:"fire-icon_svg__a"},d.createElement("path",{fill:"#fff",d:"M0 .893h16v16H0z"})))))};var k=a(89099),E=a(34969);let P=e=>{let{randomNumber:t}=e;return(0,i.jsx)("div",{className:"flex items-center",children:(0,i.jsx)("p",{children:"".concat(t," ").concat("Xpress Inventory left")})})};var O=a(45105),C=a.n(O);let M=()=>{var e,t,a,n,s,l;let r=(0,k.useRouter)(),{apiClient:o}=(0,E.R)(),[x,f]=(0,d.useState)(1800),[h,p]=(0,d.useState)(!1),[b,_]=(0,d.useState)(null),[y,O]=(0,d.useState)(!0),M=["Booked","Delivered","Cancelled"],G=(null==b?void 0:b.booking_data.on_road_price)-(null==b?void 0:b.outlet.offer),F=new Date,q="".concat(F.getDate(),"/").concat(F.getMonth()+1,"/").concat(F.getFullYear()),R=null==b?void 0:b.booking_data.on_road_price.toString()[0],[B,A]=(0,d.useState)(!1);(0,d.useEffect)(()=>{let e=async()=>{try{let e=await o.get("/api/v1/order/instant-booking/",{baseURL:"https://api-services.otocapital.in/commerceservice",params:{booking_uuid:r.query.uuid}});if(M.includes(e.data.data.status)||e.data.data.amount_paid)return void r.push("/instantcashbooking/".concat(r.query.uuid,"/status"));_(e.data.data),O(!1)}catch(e){_(null)}};r.query.uuid&&e()},[o,r.query.uuid]);let D=(0,d.useCallback)(()=>{let[e,...t]=document.getAnimations().filter(e=>"blinking"===e.animationName);t.forEach(t=>{t.currentTime=e.currentTime})},[]),S=(0,u.p5)(x);(0,d.useEffect)(()=>{x>0&&setTimeout(()=>f(x-1),1e3),D()},[x,D]);let z=(0,d.useCallback)(async()=>{var e;if(!B)return;let t=window.location.href,a={order_uuid:null==b?void 0:b.uuid,amount:null==b||null==(e=b.booking_data)?void 0:e.booking_amount,payment_redirect_url:"".concat(t.replace("/instantcashbooking/".concat(r.query.uuid),"/instantcashbooking/".concat(r.query.uuid,"/status"))),failed_redirect_url:t},n=await o.post("/api/v1/order/instant-payment/",a,{baseURL:"https://api-services.otocapital.in/commerceservice",headers:{"X-ID-KEY":"2022-09-01"}});new window.Cashfree(n.data.data.data.payment_session_id).redirect()},[o,null==b||null==(e=b.booking_data)?void 0:e.booking_amount,null==b?void 0:b.uuid,r.query.uuid,B]);return y?null:(0,i.jsxs)(i.Fragment,{children:[["staging","localhost"].includes("production")&&(0,i.jsx)(C(),{src:"https://sdk.cashfree.com/js/ui/2.0.0/cashfree.sandbox.js",onReady:()=>{A(!0)}}),(0,i.jsx)(C(),{src:"https://sdk.cashfree.com/js/ui/2.0.0/cashfree.prod.js",onReady:()=>{A(!0)}}),(0,i.jsx)("div",{className:"relative z-10 flex h-14 items-center justify-between bg-[#F8F8F8] px-4 shadow-header",children:(0,i.jsx)(m.A,{className:"w-16"})}),(0,i.jsx)("div",{className:" mx-3 my-4 rounded bg-primary-dark1 font-GingerPro text-white",children:(0,i.jsxs)("div",{className:" flex items-center justify-between p-2",children:[(0,i.jsx)("span",{className:" font-bold",children:"Booking Confirmation"}),(0,i.jsxs)("span",{className:" text-10",children:["Date: ",q]})]})}),(0,i.jsx)("div",{className:" mx-3 rounded border border-[#F1F1F1]",children:(0,i.jsxs)("div",{className:" mt-3 space-y-6 font-GingerPro",children:[(0,i.jsxs)("div",{className:"flex justify-between px-3 text-xs",children:[(0,i.jsxs)("div",{className:"flex w-1/2 shrink-0 break-words pr-4",children:[(0,i.jsx)("span",{className:" shrink-0 text-placeholder-2
100",children:"Name: "}),(0,i.jsx)("span",{className:"inline-block pl-1 font-bold text-[#585858]",children:null==b?void 0:b.account.first_name})]}),(0,i.jsx)("hr",{className:"h-8 border border-[#E9E9E9]"}),(0,i.jsxs)("div",{className:"flex w-1/2 shrink-0 pl-4",children:[(0,i.jsx)("span",{className:" shrink-0 text-placeholder-200",children:"Number: "}),(0,i.jsx)("span",{className:" pl-1 font-bold text-[#585858]",children:"".concat(null==b?void 0:b.account.contact_number.substr(0,3),"XXXX").concat(null==b?void 0:b.account.contact_number.substr(7))})]})]}),(0,i.jsxs)("div",{className:" mx-3 flex justify-between text-xs",children:[(0,i.jsxs)("div",{className:"flex w-1/2 shrink-0 pr-4",children:[(0,i.jsx)("span",{className:" shrink-0 text-placeholder-200",children:"Bike Details: "}),(0,i.jsx)("br",{}),(0,i.jsx)("span",{className:"pl-1 font-bold text-[#585858]",children:"".concat(null==b?void 0:b.make.name," ").concat(null==b?void 0:b.model.name)})]}),(null==b||null==(t=b.variant_color)?void 0:t.hexcode)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("hr",{className:"h-8 border border-[#E9E9E9]"}),(0,i.jsxs)("div",{className:"flex w-1/2 shrink-0 pl-4",children:[(0,i.jsx)("span",{className:"shrink-0 text-placeholder-200",children:"Color: "}),(0,i.jsxs)("div",{className:"flex w-full pl-1 pt-[2px] font-bold text-[#585858]",children:[(0,i.jsx)("span",{"aria-label":null==b||null==(a=b.variant_color)?void 0:a.hexcode,className:"inline-block h-3 w-3 shrink-0 rounded-full",style:{backgroundColor:(null==b||null==(n=b.variant_color)?void 0:n.hexcode)||"transparent"}}),(0,i.jsx)("span",{className:"ml-2 block max-w-[60%] break-words",children:null==b||null==(s=b.variant_color)?void 0:s.name})]})]})]})]}),(0,i.jsx)("div",{className:"bg-[#F6F6F6] py-2 text-xs",children:(0,i.jsxs)("div",{className:"mx-3",children:[(0,i.jsx)("span",{className:" text-placeholder-200",children:"Available at your preferred showroom:"}),(0,i.jsxs)("span",{className:"font-bold text-[#585858]",children:[" ",null==b?void 0:b.outlet.name]})]})})]})}),(0,i.jsx)("div",{className:" mx-3 my-1",children:(0,i.jsx)(g(),{unoptimized:!0,width:"337",height:"196",src:null==b?void 0:b.variant_color.default_img,layout:"responsive",alt:"bike_image"})}),(0,i.jsxs)("div",{className:"m-3 rounded-xl border bg-white shadow-lg",children:[(0,i.jsxs)("div",{className:"mx-3 flex items-center justify-between text-center font-GingerProDemi text-sm",children:[(0,i.jsxs)("span",{className:"flex text-[#585858]",children:[(0,i.jsx)(w,{className:"mr-2"}),(null==b?void 0:b.booking_data.inventory_count)?(0,i.jsxs)("div",{children:[null==b?void 0:b.booking_data.inventory_count," ",(0,i.jsx)("span",{children:"Xpress Inventory left"})]}):(0,i.jsx)(P,{randomNumber:R})]}),(0,i.jsx)("hr",{className:"h-8 border border-[#E9E9E9]"}),(0,i.jsxs)("div",{className:"text-[#585858]",children:["Offer Expires :",(0,i.jsx)("div",{className:c()("ml-3 inline-flex items-center",0===x?"blink-text":""),children:Object.keys(S).map(e=>"hour"===e?null:"min"===e?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"relative font-bold text-black",children:[(0,i.jsx)("p",{className:"",children:S[e]>9?S[e]:"0".concat(S[e])}),(0,i.jsx)("p",{className:"absolute -bottom-4 left-1/2 -translate-x-1/2 text-8",children:"MIN"})]},e),(0,i.jsx)("span",{className:"px-1 text-8",children:":"})]}):(0,i.jsxs)("div",{className:"relative font-bold text-black",children:[(0,i.jsx)("p",{className:"",children:S[e]>9?S[e]:"0".concat(S[e])}),(0,i.jsx)("p",{className:"absolute -bottom-4 left-1/2 -translate-x-1/2 text-8",children:"SEC"})]},e))})]})]}),(0,i.jsxs)("div",{className:" mx-3 my-5 rounded bg-[#F6F6F6]",children:[(0,i.jsx)("div",{className:"flex text-center font-GingerPro font-bold",children:(0,i.jsxs)("div",{className:" mx-3 mt-4 inline-flex",children:[(0,i.jsx)(N,{className:"mr-2 h-4"}),(0,i.jsx)("span",{className:" text-xs",children:"Benefits"})]})}),(0,i.jsxs)("div",{className:"space-y-3 p-2 font-GingerPro text-xs text-[#585858]",children:[(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)(j.A,{className:" mr-2 w-3"}),(0,i.jsx)("span",{children:"Fastest Delivery Date, Lowest Waiting Perio
1d"})]}),(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)(j.A,{className:" mr-2 w-3"}),(0,i.jsx)("span",{children:"Doorstep Delivery (Optional)"})]})]})]}),(0,i.jsxs)("div",{className:" mx-4 mt-3 space-y-1 font-GingerPro",children:[(null==b?void 0:b.booking_data.on_road_price)&&(0,i.jsxs)("div",{className:" flex justify-between",children:[(0,i.jsx)("span",{className:" text-xs text-[#585858]",children:"On Road Price"}),(0,i.jsxs)("span",{className:" font-semibold",children:["â¹ ",null==b?void 0:b.booking_data.on_road_price]})]}),(0,i.jsxs)("div",{className:" flex justify-between",children:[(0,i.jsx)("span",{className:" text-xs text-[#585858]",children:"Offer On Road Price"}),(0,i.jsxs)("span",{className:" font-semibold",children:["â¹ ",G]})]})]}),(0,i.jsx)("div",{className:"flex justify-end p-2",children:(0,i.jsx)("button",{className:"justify-end font-GingerPro text-xs text-primary-base",onClick:()=>{p(!0)},children:"Show Price break-up"})}),h&&(0,i.jsx)(v,{overlay:!1,title:"PRICE BREAK-UP",show:!0,close:()=>{p(!1)},children:(0,i.jsxs)("div",{className:"rounded-md pb-8 pt-3",children:[(null==b?void 0:b.booking_data.ex_showroom_price)&&(0,i.jsxs)("div",{className:"mb-2 flex justify-between text-sm",children:[(0,i.jsx)("div",{className:"font-GingerPro",children:"Ex - Showroom"}),(0,i.jsxs)("div",{className:"font-GingerProDemi text-base",children:["â¹ ",null==b?void 0:b.booking_data.ex_showroom_price]})]}),(null==b?void 0:b.booking_data.temp_reg_price)&&"0"!==b.booking_data.temp_reg_price?(0,i.jsxs)("div",{className:"mb-2 flex justify-between text-sm",children:[(0,i.jsx)("div",{className:"font-GingerPro",children:"Temporary Registration"}),(0,i.jsxs)("div",{className:"font-GingerProDemi text-base",children:["â¹ ",null==b?void 0:b.booking_data.temp_reg_price]})]}):null,(null==b?void 0:b.booking_data.registration_tax)&&"0"!==b.booking_data.registration_tax?(0,i.jsxs)("div",{className:"mb-2 flex justify-between text-sm",children:[(0,i.jsx)("div",{className:"font-GingerPro",children:"Registration Tax"}),(0,i.jsxs)("div",{className:"font-GingerProDemi text-base",children:["â¹ ",null==b?void 0:b.booking_data.registration_tax]})]}):null,(null==b?void 0:b.booking_data.insurance_charge)&&(null==b?void 0:b.booking_data.insurance_charge)!=="0"?(0,i.jsxs)("div",{className:"mb-2 flex justify-between text-sm",children:[(0,i.jsx)("div",{className:"font-GingerPro",children:"Insurance"}),(0,i.jsxs)("div",{className:"font-GingerProDemi text-base",children:["â¹ ",null==b?void 0:b.booking_data.insurance_charge]})]}):null,(null==b?void 0:b.booking_data.other_charge)&&"0"!==b.booking_data.other_charge?(0,i.jsxs)("div",{className:"mb-2 flex justify-between text-sm",children:[(0,i.jsx)("div",{className:"font-GingerPro",children:" Other Charges"}),(0,i.jsxs)("div",{className:"font-GingerProDemi text-base",children:["â¹ ",b.booking_data.other_charge]})]}):null,(0,i.jsx)("div",{className:"my-3 border-b border-secondary-400"}),(0,i.jsx)("div",{className:"font-GingerProDemi text-primary-base",children:(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)("div",{children:"On Road Price *"}),(0,i.jsxs)("div",{className:"text-lg text-white",children:["â¹ ",null==b?void 0:b.booking_data.on_road_price]})]})}),(0,i.jsx)("div",{className:"my-3 border-b border-secondary-400"}),(0,i.jsx)("div",{className:"text-left font-GingerPro text-xs italic leading-none text-white",children:"Price may change if you add accessories at time of purchase"})]})})]}),(0,i.jsxs)("div",{className:"text-center font-GingerPro",children:[(0,i.jsx)("div",{className:"text-10 text-primary-base",children:"*Fully refundable if cancelled anytime"}),(0,i.jsx)("div",{className:" mx-4 my-2",children:(0,i.jsxs)("button",{className:"animate-approved-button w-full rounded-lg py-3 text-center font-GingerPro text-sm font-bold uppercase text-white",onClick:z,children:["Pay Rs. ",null==b||null==(l=b.booking_data)?void 0:l.booking_amount," to get express price"]})})]})]})}},81312:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return o}});let n=a(14232),s=a(16959),l="function"==typeof IntersectionObserver,r=new Map,i=[];function o(e){let{rootRef:t,rootMargin:a,disabled:o}
1=e,c=o||!l,[d,u]=(0,n.useState)(!1),m=(0,n.useRef)(null),x=(0,n.useCallback)(e=>{m.current=e},[]);return(0,n.useEffect)(()=>{if(l){if(c||d)return;let e=m.current;if(e&&e.tagName)return function(e,t,a){let{id:n,observer:s,elements:l}=function(e){let t,a={root:e.root||null,margin:e.rootMargin||""},n=i.find(e=>e.root===a.root&&e.margin===a.margin);if(n&&(t=r.get(n)))return t;let s=new Map;return t={id:a,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=s.get(e.target),a=e.isIntersecting||e.intersectionRatio>0;t&&a&&t(a)})},e),elements:s},i.push(a),r.set(a,t),t}(a);return l.set(e,t),s.observe(e),function(){if(l.delete(e),s.unobserve(e),0===l.size){s.disconnect(),r.delete(n);let e=i.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&i.splice(e,1)}}}(e,e=>e&&u(e),{root:null==t?void 0:t.current,rootMargin:a})}else if(!d){let e=(0,s.requestIdleCallback)(()=>u(!0));return()=>(0,s.cancelIdleCallback)(e)}},[c,a,t,d,m.current]),[x,d,(0,n.useCallback)(()=>{u(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},89099:(e,t,a)=>{e.exports=a(84294)},93334:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n,s,l,r=a(14232);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(null,arguments)}let o=function(e){return r.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 12"},e),n||(n=r.createElement("rect",{width:12,height:12,fill:"#2BB780",rx:2})),s||(s=r.createElement("g",{clipPath:"url(#square-tick_svg__a)"},r.createElement("path",{fill:"#fff",d:"M5.251 7.043 4.209 6.001l-.355.352L5.25 7.751l3-3-.352-.353z"}))),l||(l=r.createElement("defs",null,r.createElement("clipPath",{id:"square-tick_svg__a"},r.createElement("path",{fill:"#fff",d:"M3 3h6v6H3z"})))))}}},e=>{e.O(0,[8827,636,6593,8792],()=>e(e.s=22905)),_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.