1(()=>{(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[9133],{48257:(T=>{T.exports={ArrowType2SVG:"ArrowType2SVG-module__ArrowType2SVG"}}),11130:(T=>{T.exports={container:"MobileHeader1-module__container"}}),33852:(T=>{T.exports={fileUploaderContainer:"FileUploader_V2-module__fileUploaderContainer",nameContainer:"FileUploader_V2-module__nameContainer",name:"FileUploader_V2-module__name",placeholder:"FileUploader_V2-module__placeholder",hasFile:"FileUploader_V2-module__hasFile",hasFileGreen:"FileUploader_V2-module__hasFileGreen",relocateUpload:"FileUploader_V2-module__relocateUpload",err:"FileUploader_V2-module__err",hasErrSpan:"FileUploader_V2-module__hasErrSpan",readingOnly:"FileUploader_V2-module__readingOnly",inputContainer:"FileUploader_V2-module__inputContainer",showDoc:"FileUploader_V2-module__showDoc",BottomSheetPopup:"FileUploader_V2-module__BottomSheetPopup",popupContent:"FileUploader_V2-module__popupContent",buttonsCtaContainer:"FileUploader_V2-module__buttonsCtaContainer",ctaButton:"FileUploader_V2-module__ctaButton",cancelButton:"FileUploader_V2-module__cancelButton",pointerEvents:"FileUploader_V2-module__pointerEvents",hasErrorInput:"FileUploader_V2-module__hasErrorInput"}}),17372:(T=>{T.exports={markitingLabel:"MarkitingLabel-module__markitingLabel"}}),6412:(T=>{T.exports={deliveryDataContainer:"DeliveryData-module__deliveryDataContainer",wayBill:"DeliveryData-module__wayBill",deliverDetails:"DeliveryData-module__deliverDetails",agentDetails:"DeliveryData-module__agentDetails",location:"DeliveryData-module__location",flex:"DeliveryData-module__flex",call:"DeliveryData-module__call",DTCallInfo:"DeliveryData-module__DTCallInfo",wts:"DeliveryData-module__wts"}}),52242:(T=>{T.exports={popUpContTm:"FinanceOfferDetails-module__popUpContTm",innerContainerTm:"FinanceOfferDetails-module__innerContainerTm",HeadingTm:"FinanceOfferDetails-module__HeadingTm",headContr:"FinanceOfferDetails-module__headContr",pointer:"FinanceOfferDetails-module__pointer",headData:"FinanceOfferDetails-module__headData",title:"FinanceOfferDetails-module__title",value:"FinanceOfferDetails-module__value",flxRow:"FinanceOfferDetails-module__flxRow",imgContainer:"FinanceOfferDetails-module__imgContainer",imgTm:"FinanceOfferDetails-module__imgTm",rowTm:"FinanceOfferDetails-module__rowTm",bankTm:"FinanceOfferDetails-module__bankTm",transition:"FinanceOfferDetails-module__transition",rotateArrow:"FinanceOfferDetails-module__rotateArrow",removeFixed:"FinanceOfferDetails-module__removeFixed"}}),83367:(T=>{T.exports={stepDescriptionContainer:"StepBody-module__stepDescriptionContainer",title:"StepBody-module__title",customTitle:"StepBody-module__customTitle",desc:"StepBody-module__desc",buttonContainer:"StepBody-module__buttonContainer",backButton:"StepBody-module__backButton",surveyButton:"StepBody-module__surveyButton",mt32:"StepBody-module__mt32",boxShadow:"StepBody-module__boxShadow",marginTopZero:"StepBody-module__marginTopZero",customMarginTop:"StepBody-module__customMarginTop",flexDate:"StepBody-module__flexDate",timeStamp:"StepBody-module__timeStamp",date:"StepBody-module__date",time:"StepBody-module__time",bold:"StepBody-module__bold",customMargin:"StepBody-module__customMargin",customContainer:"StepBody-module__customContainer",customButtonContainer:"StepBody-module__customButtonContainer"}}),14658:(T=>{T.exports={uploadContainer:"UploadOfferAttachments-module__uploadContainer",uploadDocTitle:"UploadOfferAttachments-module__uploadDocTitle",uploadDocButton:"UploadOfferAttachments-module__uploadDocButton",sendFilesButton:"UploadOfferAttachments-module__sendFilesButton",saveButton:"UploadOfferAttachments-module__saveButton",conditionsList:"UploadOfferAttachments-module__conditionsList",uploadCondition:"UploadOfferAttachments-module__uploadCondition",hasRejected:"UploadOfferAttachments-module__hasRejected",freeFinanceFunctionalityDivider:"UploadOfferAttachments-module__freeFinanceFunctionalityDivider",hasUpcomingFilesContainer:"UploadOfferAttachments-module__hasUpcomingFilesContainer",submintButtonsContainer:"UploadOfferAttachments-module__submintButtonsContainer",freeFinancePopUpContainer:"UploadOfferAttachments-module__freeFinancePopUpContainer",freeFinanceIcon:"UploadOfferAttachments-module__freeFinanceIcon"}}),5379:(T=>{T.exports={filePreviewContainer:"FilePreview-module__filePreviewContainer","rpv-core__text-layer":"FilePreview-module__rpv-core__text-layer",headContainer:"FilePreview-module__headContainer",contentContainer:"FilePreview-module__contentContainer",iframe:"FilePreview-module__iframe",buttonsContainer:"FilePreview-module__buttonsContainer",flex:"FilePreview-module__flex",gap:"FilePreview-module__gap",redButton:"FilePreview-module__redButton",transButton:"FilePreview-module__transButton",whtButton:"FilePreview-module__whtButton",pdfNotSupportedContainer:"FilePreview-module__pdfNotSupportedContainer",customButton:"FilePreview-module__customButton",imageContainer:"FilePreview-module__imageContainer",customOneButton:"FilePreview-module__customOneButton",OneButton:"FilePreview-module__OneButton"}}),81768:(T=>{T.exports={offeredDocs:"ViewOfferedDocuments-module__offeredDocs",documentContainer:"ViewOfferedDocuments-module__documentContainer",headerContainer:"ViewOfferedDocuments-module__headerContainer",download:"ViewOfferedDocuments-module__download",timeStamp:"ViewOfferedDocuments-module__timeStamp"}}),4017:(T=>{T.exports={stepBodyContainer:"StepDescription-module__stepBodyContainer",title:"StepDescription-module__title",sub_title:"StepDescription-module__sub_title",desc:"StepDescription-module__desc",timeStamp:"StepDescription-module__timeStamp",date:"StepDescription-module__date",time:"StepDescription-module__time",bold:"StepDescription-module__bold",note:"StepDescription-module__note",customFontSize:"StepDescription-module__customFontSize",animatedContainer:"StepDescription-module__animatedContainer",carImage:"StepDescription-module__carImage",noBotPadding:"StepDescription-module__noBotPadding",whiteBackgroun
1d:"StepDescription-module__whiteBackground",bgDiv:"StepDescription-module__bgDiv"}}),60216:((T,te,a)=>{"use strict";a.d(te,{A:()=>k});var s=a(96540),l=a(48257),i=a.n(l),t=s.createElement,Z=function(R){var h=R.filledColor,B=h===void 0?"#154F9C":h,_=R.onClick,b=_===void 0?function(){}:_,o=R.className,r=o===void 0?"":o,f=R.id;return s.createElement(s.Fragment,null,s.createElement("svg",{id:f,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:b,className:"".concat(i().ArrowType2SVG," ").concat(r||"")},s.createElement("path",{d:"M14.7099 15.88L10.8299 12L14.7099 8.11998C15.0999 7.72998 15.0999 7.09998 14.7099 6.70998C14.3199 6.31998 13.6899 6.31998 13.2999 6.70998L8.70994 11.3C8.31994 11.69 8.31994 12.32 8.70994 12.71L13.2999 17.3C13.6899 17.69 14.3199 17.69 14.7099 17.3C15.0899 16.91 15.0999 16.27 14.7099 15.88Z",fill:B})))};const k=Z}),63763:((T,te,a)=>{"use strict";a.d(te,{A:()=>oe});var s=a(96540),l=a(60216),i=a(11130),t=a.n(i),Z=s.createElement,k=function(h){return s.createElement(s.Fragment,null,s.createElement("div",{className:"".concat(t().container," ").concat(h.className?h.className:""),style:{backgroundColor:h.backgroundColor}},s.createElement("strong",{style:{color:h.color}},h.title),!h.NoBack&&s.createElement("span",{className:t().fixDir},s.createElement(l.A,{filledColor:h.color,onClick:function(){return h.buttonFunction()}}))))};const oe=k}),57940:((T,te,a)=>{"use strict";a.d(te,{C2:()=>oe,Lo:()=>t,VP:()=>Z});var s=a(91212),l=a(10467),i=a(96966),t=function(h){var B,_,b,o,r,f,c={};return h!=null&&(B=h.step_body)!==null&&B!==void 0&&(_=B.data)!==null&&_!==void 0&&(b=_.remaining_data)!==null&&b!==void 0&&b.paymentOptions&&(c={sadad:h.step_body.data.remaining_data.paymentOptions.sadad,hasSadad:h.step_body.data.remaining_data.paymentOptions.sadad.is_enabled,sadadError:""}),h!=null&&(o=h.step_body)!==null&&o!==void 0&&(r=o.data)!==null&&r!==void 0&&(f=r.remaining_sections)!==null&&f!==void 0&&f.paymentOptions&&(c={sadad:h.step_body.data.remaining_sections.paymentOptions.sadad,hasSadad:h.step_body.data.remaining_sections.paymentOptions.sadad.is_enabled,sadadError:""}),h!=null&&h.paymentOptions&&(c={sadad:h.paymentOptions.sadad,hasSadad:h.paymentOptions.sadad.is_enabled,sadadError:""}),c};function Z(R){return k.apply(this,arguments)}function k(){return k=(0,l.A)((0,s.A)().m(function R(h){var B,_,b;return(0,s.A)().w(function(o){for(;;)switch(o.p=o.n){case 0:return o.p=0,o.n=1,(0,i.Ay)().post("/order/send-sadad-invoice",h);case 1:return _=o.v,o.a(2,_==null||(B=_.data)===null||B===void 0?void 0:B.data);case 2:return o.p=2,b=o.v,console.error(b),o.a(2,null)}},R,null,[[0,2]])})),k.apply(this,arguments)}var oe=(function(){var R=(0,l.A)((0,s.A)().m(function h(B,_){var b,o,r,f,c=arguments;return(0,s.A)().w(function(y){for(;;)switch(y.n){case 0:return o=c.length>2&&c[2]!==void 0?c[2]:0,r=new FormData,r.append("order_uuid",B),r.append("is_finance",o),Object.keys(_).length>0&&Object.keys(_).forEach(function(E){r.append("image[".concat(E,"]"),_[E])}),y.n=1,(0,i.Ay)().post("/order/add-payment",r);case 1:return f=y.v,y.a(2,f==null||(b=f.data)===null||b===void 0?void 0:b.data)}},h)}));return function(B,_){return R.apply(this,arguments)}})()}),59786:((T,te,a)=>{"use strict";a.d(te,{SD:()=>B,U9:()=>oe,bm:()=>R,hP:()=>h});var s=a(89379),l=a(91212),i=a(10467),t=a(96966),Z=a(57940),k=a(64721),oe=(function(){var _=(0,i.A)((0,l.A)().m(function b(o){var r,f,c;return(0,l.A)().w(function(y){for(;;)switch(y.n){case 0:return y.n=1,(0,t.Ay)().get("/order-tracking/get-order-details-sections",{params:{id:o}});case 1:return c=y.v,y.a(2,(r=c==null||(f=c.data)===null||f===void 0?void 0:f.data)!==null&&r!==void 0?r:null)}},b)}));return function(o){return _.apply(this,arguments)}})(),R=(function(){var _=(0,i.A)((0,l.A)().m(function b(o){var r,f,c,y,E,z,S,U,_e;return(0,l.A)().w(function(X){for(;;)switch(X.p=X.n){case 0:return X.p=0,X.n=1,(0,t.Ay)().post("/order-tracking/cancel-warranty",{order_uuid:o});case 1:if(U=X.v,U!=null&&(r=U.data)!==null&&r!==void 0&&r.success){X.n=2;break}return X.a(2,null);case 2:return X.a(2,{warrantyV2:(f=U==null||(c=U.data)===null||c===void 0||(y=c.data)===null||y===void 0?void 0:y.warrantyV2)!==null&&f!==void 0?f:null,warrantyPriceDetailsV3:(E=U==null||(z=U.data)===null||z===void 0||(S=z.data)===null||S===void 0?void 0:S.warrantyPriceDetailsV3)!==null&&E!==void 0?E:null});case 3:return X.p=3,_e=X.v,k.oR.error("\u062D\u062F\u062B \u062E\u0637\u0623\u060C \u064A\u0631\u062C\u0649 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649"),X.a(2,null)}},b,null,[[0,3]])}
1));return function(o){return _.apply(this,arguments)}})(),h=(function(){var _=(0,i.A)((0,l.A)().m(function b(o,r){var f,c,y,E,z;return(0,l.A)().w(function(S){for(;;)switch(S.p=S.n){case 0:return S.p=0,S.n=1,(0,t.Ay)().get("/order-tracking/get-warranty-details",{params:{order_id:o,warranty_id:r}});case 1:if(E=S.v,E!=null&&(f=E.data)!==null&&f!==void 0&&f.success){S.n=2;break}return S.a(2,null);case 2:return S.a(2,(c=E==null||(y=E.data)===null||y===void 0?void 0:y.data)!==null&&c!==void 0?c:null);case 3:return S.p=3,z=S.v,S.a(2,null)}},b,null,[[0,3]])}));return function(o,r){return _.apply(this,arguments)}})(),B=(function(){var _=(0,i.A)((0,l.A)().m(function b(o){var r,f,c,y,E,z,S;return(0,l.A)().w(function(U){for(;;)switch(U.n){case 0:return f=o.orderId,c=o.stepNum,y=o.isFinance,E=y?"/finance-tracking/view-step?order_id=".concat(f,"&step=").concat(c,"&include=remainingBnplOptions"):"/order-tracking/view-step?order_id=".concat(f,"&step=").concat(c,"&include=remainingBnplOptions,warrantyV2"),U.n=1,(0,t.Ay)().get(E);case 1:if(z=U.v,S=(z==null||(r=z.data)===null||r===void 0?void 0:r.data)||{},!y){U.n=2;break}return U.a(2,S);case 2:return U.a(2,(0,s.A)((0,s.A)({},S),(0,Z.Lo)(S)));case 3:return U.a(2)}},b)}));return function(o){return _.apply(this,arguments)}})()}),71831:((T,te,a)=>{"use strict";a.d(te,{A:()=>$});var s=a(91212),l=a(10467),i=a(96540),t=a(20892),Z=a(2338),k=a(99489);function oe(N){(0,i.useEffect)(function(){var p=function(x){N()};return window.addEventListener("popstate",p),function(){window.removeEventListener("popstate",p)}},[N])}const R=oe;var h=a(89379),B=i.createElement,_=function(p){var D=p.filledColor,x=D===void 0?"white":D,P=p.className,W=P===void 0?"":P,fe=p.onClick;return i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:W||"",onClick:function(){fe()}},i.createElement("mask",{id:"mask0_4795_351",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},i.createElement("rect",{width:"24",height:"24",fill:"#D9D9D9"})),i.createElement("g",{mask:"url(#mask0_4795_351)"},i.createElement("path",{d:"M12.0008 13.3998L7.10078 18.2998C6.91745 18.4831 6.68411 18.5748 6.40078 18.5748C6.11745 18.5748 5.88411 18.4831 5.70078 18.2998C5.51745 18.1165 5.42578 17.8831 5.42578 17.5998C5.42578 17.3165 5.51745 17.0831 5.70078 16.8998L10.6008 11.9998L5.70078 7.0998C5.51745 6.91647 5.42578 6.68314 5.42578 6.3998C5.42578 6.11647 5.51745 5.88314 5.70078 5.6998C5.88411 5.51647 6.11745 5.4248 6.40078 5.4248C6.68411 5.4248 6.91745 5.51647 7.10078 5.6998L12.0008 10.5998L16.9008 5.6998C17.0841 5.51647 17.3174 5.4248 17.6008 5.4248C17.8841 5.4248 18.1174 5.51647 18.3008 5.6998C18.4841 5.88314 18.5758 6.11647 18.5758 6.3998C18.5758 6.68314 18.4841 6.91647 18.3008 7.0998L13.4008 11.9998L18.3008 16.8998C18.4841 17.0831 18.5758 17.3165 18.5758 17.5998C18.5758 17.8831 18.4841 18.1165 18.3008 18.2998C18.1174 18.4831 17.8841 18.5748 17.6008 18.5748C17.3174 18.5748 17.0841 18.4831 16.9008 18.2998L12.0008 13.3998Z",fill:x})))};const b=_;var o=i.createElement,r=function(p){var D=p.filledColor,x=D===void 0?"white":D,P=p.className,W=P===void 0?"":P;return i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:W||""},i.createElement("mask",{id:"mask0_4786_245",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},i.createElement("rect",{width:"24",height:"24",fill:"#D9D9D9"})),i.createElement("g",{mask:"url(#mask0_4786_245)"},i.createElement("path",{d:"M7 21C6.45 21 5.97917 20.8042 5.5875 20.4125C5.19583 20.0208 5 19.55 5 19V6C4.71667 6 4.47917 5.90417 4.2875 5.7125C4.09583 5.52083 4 5.28333 4 5C4 4.71667 4.09583 4.47917 4.2875 4.2875C4.47917 4.09583 4.71667 4 5 4H9C9 3.71667 9.09583 3.47917 9.2875 3.2875C9.47917 3.09583 9.71667 3 10 3H14C14.2833 3 14.5208 3.09583 14.7125 3.2875C14.9042 3.47917 15 3.71667 15 4H19C19.2833 4 19.5208 4.09583 19.7125 4.2875C19.9042 4.47917 20 4.71667 20 5C20 5.28333 19.9042 5.52083 19.7125 5.7125C19.5208 5.90417 19.2833 6 19 6V19C19 19.55 18.8042 20.0208 18.4125 20.4125C18.0208 20.8042 17.55 21 17 21H7ZM17 6H7V19H17V6ZM10 17C10.2833 17 10.5208 16.9042 10.7125 16.7125C10.9042 16.5208 11 16.2833 11 16V9C11 8.71667 10.9042 8.47917 10.7125 8.2875C10.5208 8.09583 10.2833 8 10 8C9.71667 8 9.47917 8.09583 9.2875 8.2875C9.09583 8.47917 9 8.71667 9 9V16C9 16.2833 9.09583 16.5208 9.2875 16.7125C9.47917 16.9042 9.71667 17 10 17ZM14 17C14.2833 17 14.5208 16.9042 14.7125 16.7125C14.9042 16.5208 15 16.2833 15 16V9C15 8.71667 14.9042 8.47917 14.7125 8.2875C14.5208 8.09583 14.2833 8 14 8C13.7167 8 13.4792 8.09583 13.2875 8.2875C13.0958 8.47917 13 8.71667 13 9V16C13 16.2833 13.0958 16.5208 13.2875 16.7125C13.4792 16.9042 13.7167 17 14 17Z",fill:x})))};const f=r;var c=i.createElement,y=function(p){var D=p.filledColor,x=D===void 0?"#154F9C":D,P=p.className,W=P===void 0?"":P;return i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:W||""},i.createElement("path",{d:"M19.897 7.21208L19.8971 7.21205L19.8948 7.20972L14.9674 2.0408C14.9674 2.04076 14.9674 2.04073 14.9674 2.0407C14.8584 1.92603 14.7072 1.85508 14.5472 1.85508H6.74521C5.25055 1.85508 4.01719 3.08324 4.01719 4.57822V19.3318C4.01719 20.8269 5.25055 22.0551 6.74521 22.0551H17.3345C18.8292 22.0551 20.0625 20.8269 20.0625 19.3318V7.61685C20.0625 7.46092 19.9912 7.31746 19.897 7.21208ZM15.135 5.9744V3.91036L18.1012 7.02415H16.1896C1
15.6066 7.02415 15.135 6.55628 15.135 5.9744ZM17.3345 20.8889H6.74521C5.89655 20.8889 5.18337 20.1843 5.18337 19.3318V4.57822C5.18337 3.73032 5.89204 3.02126 6.74521 3.02126H13.9688V5.9744C13.9688 7.20378 14.9609 8.19033 16.1896 8.19033H18.8963V19.3318C18.8963 20.1845 18.1879 20.8889 17.3345 20.8889Z",fill:x,stroke:x,strokeWidth:"0.2"}),i.createElement("path",{d:"M16.0168 17.5548H8.06512C7.74426 17.5548 7.48203 17.8168 7.48203 18.1379C7.48203 18.4588 7.74424 18.721 8.06512 18.721H16.0217C16.3426 18.721 16.6048 18.4588 16.6048 18.1379C16.6048 17.8162 16.3419 17.5548 16.0168 17.5548Z",fill:x,stroke:x,strokeWidth:"0.2"}),i.createElement("path",{d:"M11.6129 15.991L11.6129 15.991L11.6137 15.9918C11.7231 16.1068 11.8743 16.1775 12.0388 16.1775C12.2033 16.1775 12.3546 16.1069 12.4639 15.9917L12.4646 15.991L15.2949 12.9531C15.295 12.953 15.2951 12.9528 15.2953 12.9527C15.5175 12.7182 15.4992 12.3458 15.2666 12.1301C15.0321 11.9079 14.6594 11.9261 14.4438 12.1592C14.4438 12.1592 14.4437 12.1593 14.4437 12.1593L12.6219 14.1133V9.09198C12.6219 8.77092 12.3596 8.50889 12.0388 8.50889C11.7179 8.50889 11.4557 8.77092 11.4557 9.09198V14.1129L9.63855 12.1591L9.63855 12.1591L9.63781 12.1583C9.41799 11.927 9.05035 11.9072 8.81529 12.1306C8.58409 12.3503 8.56423 12.7176 8.78718 12.9527C8.78731 12.9529 8.78744 12.953 8.78757 12.9531L11.6129 15.991Z",fill:x,stroke:x,strokeWidth:"0.2"}))};const E=y;var z=i.createElement,S=function(p){var D=p.filledColor,x=D===void 0?"white":D,P=p.className,W=P===void 0?"":P;return i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:W||""},i.createElement("path",{d:"M19.2727 12.7275C19.0798 12.7275 18.8949 12.8042 18.7585 12.9405C18.6221 13.0769 18.5455 13.2619 18.5455 13.4548V16.5187C18.5449 17.0561 18.3311 17.5713 17.9511 17.9513C17.5712 18.3313 17.0559 18.545 16.5185 18.5456H7.48145C6.94406 18.545 6.42885 18.3313 6.04885 17.9513C5.66886 17.5713 5.45512 17.0561 5.45455 16.5187V13.4548C5.45455 13.2619 5.37792 13.0769 5.24153 12.9405C5.10514 12.8042 4.92016 12.7275 4.72727 12.7275C4.53439 12.7275 4.3494 12.8042 4.21301 12.9405C4.07662 13.0769 4 13.2619 4 13.4548V16.5187C4.00096 17.4418 4.36807 18.3267 5.02076 18.9794C5.67345 19.6321 6.55841 19.9991 7.48145 20.0001H16.5185C17.4416 19.9991 18.3266 19.6321 18.9792 18.9794C19.6319 18.3267 19.999 17.4418 20 16.5187V13.4548C20 13.2619 19.9234 13.0769 19.787 12.9405C19.6506 12.8042 19.4656 12.7275 19.2727 12.7275Z",fill:x}),i.createElement("path",{d:"M8.14267 8.60481L11.2649 5.4827V14.636C11.2649 14.8288 11.3415 15.0138 11.4779 15.1502C11.6143 15.2866 11.7992 15.3632 11.9921 15.3632C12.185 15.3632 12.37 15.2866 12.5064 15.1502C12.6428 15.0138 12.7194 14.8288 12.7194 14.636V5.4827L15.8416 8.60481C15.9787 8.73729 16.1625 8.81059 16.3531 8.80894C16.5438 8.80728 16.7262 8.7308 16.8611 8.59596C16.9959 8.46112 17.0724 8.27871 17.0741 8.08803C17.0757 7.89734 17.0024 7.71364 16.8699 7.57647L12.5063 3.21293C12.3699 3.07659 12.185 3 11.9921 3C11.7993 3 11.6143 3.07659 11.4779 3.21293L7.11431 7.57647C6.98183 7.71364 6.90853 7.89734 6.91018 8.08803C6.91184 8.27871 6.98833 8.46112 7.12317 8.59596C7.25801 8.7308 7.44042 8.80728 7.63111 8.8
10894C7.8218 8.81059 8.00551 8.73729 8.14267 8.60481Z",fill:x}))};const U=S;var _e=a(59718),X=a(5379),L=a.n(X),Ge=a(37274),q=a(86096),Ie=i.createElement,$e="3.11.174",v=function(p){var D;return p!=null&&(D=p.file)!==null&&D!==void 0&&D.startsWith("http")?p.file:URL.createObjectURL(new Blob([p]))},V=function(p){var D=p.fileUrl,x=(0,k.A)();return i.createElement(i.Fragment,null,i.createElement("br",null),i.createElement("br",null),i.createElement("br",null),i.createElement(q.Worker,{workerUrl:"https://unpkg.com/pdfjs-dist@".concat($e,"/build/pdf.worker.min.js")},i.createElement(q.Viewer,{viewMode:q.ViewMode.SinglePage,initialPage:1,position:q.Position.TopCenter,defaultScale:x?q.SpecialZoomLevel.PageFit:q.SpecialZoomLevel.ActualSize,fileUrl:D,theme:{direction:q.TextDirection.LeftToRight}})))},d=function(p){var D=p.imageUrl;return i.createElement("div",{className:L().imageContainer},i.createElement("img",{src:D,alt:"Uploaded",style:{maxWidth:"100%"}}))},u=function(p){var D,x=p.domInMemoryFile,P=p.dbFile,W=p.onClose,fe=p.setShowDeletePopup,Ae=p.stepStatus,be=p.hideButtons,F=p.orginalInput,m=p.g4_data,w=(0,t.A)(),g=x||P,A=(0,Z.B)(),O=A.t;return i.createElement(i.Fragment,null,i.createElement("div",{className:L().filePreviewContainer,onClick:function(C){C.target===C.currentTarget&&(W(),document.body.style.overflow="")}},i.createElement("div",{className:L().headContainer},i.createElement(b,{onClick:W}),i.createElement("p",null,g==null?void 0:g.name)),i.createElement("div",{className:L().contentContainer},i.createElement(i.Fragment,null,(P==null?void 0:P.file)&&i.createElement(d,{imageUrl:P==null?void 0:P.file}),(g==null||(D=g.type)===null||D===void 0?void 0:D.includes("image"))&&i.createElement(d,{imageUrl:URL.createObjectURL(g)}),(g==null?void 0:g.type)==="application/pdf"&&i.createElement(V,{fileUrl:v(g)})),i.createElement("div",{className:"".concat(L().buttonsContainer," ").concat(g.file?"":L().customOneButton," ").concat(Ae==="approved"||Ae==="pending"||be?L().customButton:"")},be?"":(Ae==="unaddressed"||Ae==="rejected")&&i.createElement("div",{className:"".concat(L().flex," ").concat(g!=null&&g.file?"":L().OneButton)},i.createElement(_e.A,{onClick:function(){F.click()},className:L().transButton},i.createElement(U,{className:L().gap})," ",O("reload",{ns:"web_tracking"})),i.createElement(_e.A,{onClick:function(){fe(!0)},className:L().redButton},i.createElement(f,{className:L().gap})," ",O("delete_document",{ns:"web_tracking"}))),g.file&&i.createElement("a",{href:"/download?url=".concat(g.file?encodeURIComponent(g.file):URL.createObjectURL(g)),rel:"noopener noreferrer",target:"_blank",download:!0},i.createElement(_e.A,{className:L().whtButton,onClick:function(){(0,Ge.X)("order_document_download",(0,h.A)((0,h.A)({},m),{},{document_id_type:g==null?void 0:g.document_key})),g.file?w.openFile(g.file).catch(function(C){document.location="/download?url=".concat(encodeURIComponent(g.file))}).finally(W):W()}},i.createElement(E,{className:L().gap})," ",O("download_document_2",{ns:"web_tracking"})))))))};const H=u;var j=a(42560),J=i.createElement,de=function(p,D){var x;return(p==null||(x=p.name)===null||x===void 0?void 0:x.indexOf(".pdf"))>-1||(D==null?void 0:D.indexOf(".pdf"))>-1};function se(N){return ae.apply(this,arguments)}function ae(){return ae=(0,l.A)((0,s.A)().m(function N(p){return(0,s.A)().w(function(D){for(;;)if(D.n===0)return D.a(2,new Promise(function(x,P){var W=new FileReader;W.onload=function(){var fe=W.result.split(",")[1];x(fe)},W.onerror=function(fe){P(fe)},W.readAsDataURL(p)}))},N)})),ae.apply(this,arguments)}var re=function(p){var D=p.setShowDeletePopup,x=p.originalInputRef,P=p.dbFile,W=p.stepStatus,fe=p.g4_data,Ae=fe===void 0?{}:fe,be=p.domInMemoryFile,F=p.fileUri,m=p.renderFunc,w=(0,Z.B)(),g=w.t,A=(0,t.A)(),O=(0,j.A)(),G=(0,k.A)(),C=(0,i.useState)(!1),n=C[0],K=C[1];R(function(){K(!1)});var Q=de(be,F),I=!Q,we=function(){return O||Q&&be?!0:I},le=function(){return we()?Q?g("show_file",{ns:"web_tracking"}):g("show_image",{ns:"web_tracking"}):g("download_document_2",{ns:"web_tracking"})},Pe=(function(){var Ce=(0,l.A)((0,s.A)().m(function Be(){var ne,ie;return(0,s.A)().w(function(ue){for(;;)switch(ue.n){case 0:if(we()){ue.n=1;break}return document.location="/download?url=".concat(encodeURIComponent(F)),ue.a(2);case 1:if(ne=function(){K(!0),window.history.pushState({},"",window.location.pathname+"#preview")},!Q){ue.n=5;break}if(!F){ue.n=2;break}A.openFile(F).catch(function(pe){ne()}),ue.n=4;break;case 2:return ue.n=3,se(be);case 3:ie=ue.v,A.openBase64File(ie,be.name,"application/pdf").catch(function(pe){ne()});case 4:G||K(!0),ue.n=6;break;case 5:ne();case 6:return ue.a(2)}},Be)}));return function(){return Ce.apply(this,arguments)}})(),Me=function(){K(!1),window.location.hash==="#preview"&&window.history.replaceState({},"",window.location.pathname)};return i.createElement(i.Fragment,null,n&&i.createElement(H,{orginalInput:x,domInMemoryFile:be,dbFile:P,onClose:Me,setShowDeletePopup:D,stepStatus:W,g4_data:Ae,hideButtons:!F||(P==null?void 0:P.status)!=="rejected"}),m(le(),Pe))};const $=re}),79935:((T,te,a)=>{"use strict";a.d(te,{A:()=>Ie});var s=a(58168),l=a(64467),i=a(80296),t=a(96540),Z=a(47767),k=a(84976),oe=a(47964),R=a(93355),h=a(4222),B=a(55494),_=a(1705),b=a(43385),o=a(31164),r=a(99489),f=a(2338),
1c=a(32149),y=a(47550),E=a(50856),z=a(17372),S=a.n(z),U=t.createElement,_e=function(v){var V=v.campaign,d=v.HorizontalCarCardDesignClasses;return t.createElement("div",{className:d!=null?d:S().markitingLabel,style:{backgroundColor:V.bg_color}},t.createElement("span",null,V.txt))};const X=_e;var L=a(73604),Ge=t.createElement,q=function(v){var V,d=v.post,u=v.showGrantedPopup,H=v.metaData,j=v.isEager,J=v.hideFooterDeskMob,de=v.className,se=v.wrapperClassName,ae=v.hideFavIcon,re=v.rank,$=v.page,N=v.isRecommendations,p=v.hideGrantedLabel,D=v.hideMarkitingLabel,x=v.hideDiscountLabel,P=v.CustomTag,W=P===void 0?"h2":P,fe=v.is_rec,Ae=fe===void 0?!1:fe,be=v.isAnchor,F=be===void 0?!1:be,m=v.fromHomePage,w=m===void 0?!1:m,g=v.referralLocation,A=g===void 0?null:g,O=v.addCarCustomClass,G=v.onClick,C=G===void 0?function(){}:G,n=v.enableLinkClick,K=n===void 0?!0:n,Q=(0,f.B)(["web_common"]),I=Q.t,we=(0,c.uU)(),le=(0,Z.zy)(),Pe=(0,k.ok)(),Me=(0,i.A)(Pe,1),Ce=Me[0],Be=(0,h.Ay)(),ne=Be.createUrl,ie=le.pathname.includes("/autos")||w,ue=(0,B.wV)(),pe=ue.isLoggedIn,xe=(0,_.o)(),ce=xe.isCarIncluded,he=xe.bigData,ke=(0,r.A)();le.pathname.includes("/deal")&&(A="offerpage");var me=F?"a":k.N_;K||(me="div");var Ve=F?"href":"to",Oe=A||(Ce.get("text")?"search":ie?"browse":"filter"),et=ne(d==null?void 0:d.product_url);return t.createElement("div",{className:["relative w-full",se!=null?se:void 0].join(" ")},t.createElement(me,(0,s.A)({},(0,l.A)({},Ve,"".concat(et).concat(N?"&rank=".concat(re):"").concat($&&re&&Oe?"#page_number=".concat($,"&product_position=").concat(re,"&listing_type=").concat(Oe,"&logged_in=").concat(pe):"").concat(Ae?"#is_rec=1&product_position=".concat(re,"&logged_in=").concat(pe):"")),{onClick:function(){var ee={action:"click",query:Ce.get("text")||"",pid:d.uniqueId,url:R.Vd+le.pathname+le.search,page:(H==null?void 0:H.category_path)||"",page_type:H!=null&&H.category_path?"BOOLEAN":""};(!ie||!(H!=null&&H.category_path))&&(delete ee.page,delete ee.page_type),ie&&H!==null&&H!==void 0&&H.category_path&&delete ee.query,(0,oe.CW)(ee),C&&C()},className:["flex flex-col items-start p-3 rounded-lg border bg-white border-solid relative",ce(d.id)?"border-[#3C56D4] border-2":"border-[#
1E9E9E9]",de?(0,E.QP)(de):void 0,d.campaign_id&&!d.limited_quantity&&!D?(0,E.QP)("pb-[28px]"):void 0].join(" ")}),t.createElement("div",{className:"flex gap-2 w-full"},t.createElement("div",{className:"relative aspect-[4/3] m-w-[132px] h-[96px]"},t.createElement("div",{className:"rounded overflow-hidden "},d.is_booked&&t.createElement("div",{className:"absolute inset-0 rounded-t opacity-[0.5993] bg-[#6f6e6e] flex items-center justify-center z-30"},t.createElement("span",{className:"absolute ar:right-0 en:left-0 bottom-0 rounded-tr-lg bg-[#4a4d51] w-[74px] h-[24px] flex justify-center items-center text-white text-center text-xs font-bold"},I("reserved",{ns:"web_search"}))),!d.is_booked&&d!==null&&d!==void 0&&d.discount&&!x?t.createElement("div",{className:"bg-[#FF6029] absolute min-w-[50px] flex items-center justify-start",style:{borderRadius:"4px 4px 0 4px"}},t.createElement("img",{className:"absolute -top-[6px] ar:right-[5px] en:left-[5px]",src:we=="ar"?R.DZ+"/assets/images/discount-ar.svg":R.DZ+"/assets/images/discount-en.svg",width:"25px",height:"16px",alt:"discount"}),t.createElement("strong",{className:"text-white text-[8px] font-bold leading-[12px] pt-[8px] pb-[3px] px-[5px]"},d.discount," ",t.createElement("span",{className:`text-white text-xs font-normal 2`},I("sar",{ns:"web_sell_trade"})))):null,t.createElement(b.A,{imageClassName:"rounded w-full h-full object-cover",alt:d!=null&&d.title?d==null?void 0:d.title:"car",src:(0,o.O)(d.image_url||(d==null?void 0:d.img_url),"online-v1","0x426"),loading:j?"eager":"lazy",fetchpriority:j?"high":"low",progressiveSmallImage:(0,o.O)(d==null?void 0:d.image_url,"online-v1",ke?"0x99":"0x154"),width:132,height:96}))),t.createElement("div",{className:"w-full flex flex-col justify-between"},t.createElement("div",{className:"flex items-start justify-between"},t.createElement(W,{className:"text-[#484848] text-[13px] font-bold leading-[24px] overflow-hidden text-ellipsis max-w-[145px] line-clamp-2 h-[48px]"},d==null?void 0:d.title)),t.createElement("div",{className:"flex items-end justify-between"},t.createElement("div",{className:""},parseInt(d.monthly_installment)>0&&t.createElement("div",{className:"flex flex-col items-start"},t.createElement("span",{className:"text-[#697A8F] text-[8px] font-semibold leading-[12px]"},I("installment_starts",{ns:"web_search"})),t.createElement("div",{className:"flex items-center gap-2 text-[#3C56D4] text-xs font-bold leading-4"},t.createElement("strong",null,d.monthly_installment),t.createElement("span",{className:"text-[#3C56D4] text-xs font-normal leading-4"},I("sar",{ns:"web_search"})," /"," ",I("monthly",{ns:"web_search"}))))),t.createElement("div",{className:"flex flex-col items-end gap-[2px]"},t.createElement("span",{className:"text-[#697A8F] text-[8px] font-semibold leading-[12px]"},I("vat_inclusive",{ns:"web_search"})),t.createElement("div",{className:"text-[#00B362] text-sm font-bold leading-4"},t.createElement("strong",null,d.sellingprice)," ",t.createElement("span",{className:"text-[#00B362] text-sm font-normal leading-4"},I("sar",{ns:"web_search"}))),d.drop_price&&t.createElement("div",{className:"text-[#697A8F] text-xs font-bold leading-4 line-through"},t.createElement("strong",null,d.drop_price)," ",t.createElement("span",{className:"text-[#697A8F] text-xs font-normal leading-4"},I("sar",{ns:"web_search"}))))))),t.createElement("div",{className:"w-full"},t.createElement("div",{className:"flex items-center justify-between border-t border-[#E9E9E9] mt-2 pt-2 border-solid"},t.createElement("div",{className:"flex gap-[4px]"},!J&&(d==null||(V=d.tags)===null||V===void 0?void 0:V.map(function(Ue,ee){var Re={backgroundColor:Ue.color?Ue.color:"#f1f6fc"};return t.createElement("span",{style:Re,className:"flex p-[2px] px-2 justify-center items-center rounded text-[#4B5A6B] text-[10px] font-medium leading-[16px]",key:ee},Ue.text)}))),d.condition_id=="0"&&!p?t.createElement("div",{className:"flex items-center gap-[2px] bg-[#eff6ff] w-fit p-1 rounded cursor-pointer min-h-[20px]",onClick:function(ee){ee.preventDefault(),ee.stopPropagation(),u()}},t.createElement("img",{src:R.DZ+"/assets/images/garnteed.svg",width:10,height:10,alt:"garnteed","aria-label":"garnteed"}
2),t.createElement("strong",{className:"text-[8px] leading-[16px] text-[#154f9c]"},I("inspected_guaranteed",{ns:"web_search"}))):null)),t.createElement("div",{className:"w-full",onClick:function(ee){ee.preventDefault(),ee.stopPropagation()}},!(he!=null&&he.showComparison)&&t.createElement("div",{className:"mt-2"}),(he==null?void 0:he.showComparison)&&t.createElement("div",{className:"border-t border-[#E9E9E9] mt-2 pt-2 border-solid"},t.createElement(L.A,{car:d,className:(0,E.QP)(["!px-0 !pt-[5px]",d.campaign_id&&!d.limited_quantity&&!D?"!pb-[5px]":"!pb-[0px]","[border:none!important]",O].join(" "))}))),d.campaign_id&&!d.limited_quantity&&!D?t.createElement(X,{HorizontalCarCardDesignClasses:"absolute bottom-0 left-0 w-full rounded-bl-lg rounded-br-lg p-2 px-3 text-white text-[10px] font-medium leading-[12px] h-[28px]",campaign:{id:d.campaign_id,txt:d.campaign_txt,bg_color:d.campaign_bg_color_hex}}):null),!ae&&t.createElement(y.default,{postId:+(d.uniqueId||d.id),className:"absolute top-[8px] en:right-[5px] ar:left-[5px] z-9",g4_data:d.g4_data_layer}))};const Ie=q}),43385:((T,te,a)=>{"use strict";a.d(te,{A:()=>o});var s=a(58168),l=a(80045),i=a(96540),t=a(3165),Z=a(93355),k=["progressiveSmallImage","waitUntilInteractive","noInitialDiv","errorImage","src","loading","imageClassName"],oe=i.createElement,R=Z.DZ+"/assets/images/no_img.jpg",h=3,B={},_=function(f,c){return function(y){var E=y.currentTarget;B[f]=B[f]||0,!(B[f]>=h)&&(B[f]++,E.onerror=null,E.src=c||R)}},b=function(f){var c=f.progressiveSmallImage,y=c===void 0?null:c,E=f.waitUntilInteractive,z=E===void 0?!1:E,S=f.noInitialDiv,U=S===void 0?!1:S,_e=f.errorImage,X=f.src,L=f.loading,Ge=f.imageClassName,q=(0,l.A)(f,k),Ie=z?null:X,$e=(0,i.useState)(Ie),v=$e[0],V=$e[1],d=(0,i.useState)(L),u=d[0],H=d[1],j=(0,t.Ay)();return(0,i.useEffect)(function(){z&&j&&V(X)},[j]),(0,i.useEffect)(function(){V(X)},[X]),v?i.createElement("img",(0,s.A)({alt:"Image",src:v,className:Ge,style:{backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundImage:y?'url("'.concat(y,'")'):"none",backgroundColor:"transparent",backgroundPosition:"center"},loading:u},q)):q.width&&q.height?i.createElement("div",{className:q.className,style:{width:U?"auto":q.width+"px",height:U?"auto":q.height+"px",backgroundColor:"transparent",display:"inline-block"}}):null};const o=b}),99390:((T,te,a)=>{"use strict";a.d(te,{A:()=>Ie});var s=a(89379),l=a(96540),i=a(84976),t=a(30556),Z=a(6412),k=a.n(Z),oe=a(2338),R=l.createElement,h=function(v){var V,d,u,H,j,J,de,se,ae,re,$=v.deliveryData,N=v.offered_documents,p=N===void 0?{}:N,D=(0,oe.B)(),x=D.t;return l.createElement(l.Fragment,null,l.createElement("div",{className:"".concat(k().deliveryDataContainer,` 3 `)},p&&(p==null?void 0:p.file)&&l.createElement("div",{className:"".concat(k().wayBill," ").concat(k().flex)},l.createElement("strong",null,x("shipping_policy",{ns:"web_tracking"})),l.createElement("a",{href:p.file,rel:"noopener noreferrer",target:"_blank",download:!0},l.createElement("p",null,x("download_document",{ns:"web_tracking"})))),l.createElement("div",{className:k().deliverDetails},l.createElement("div",{className:k().flex},l.createElement("div",null,l.createElement("p",null,$==null||(V=$.delivery_company)===null||V===void 0?void 0:V.title),l.createElement("strong",null,$==null||(d=$.delivery_company)===null||d===void 0?void 0:d.value)),l.createElement("div",null,l.createElement("p",null,$==null||(u=$.delivery_date)===null||u===void 0?void 0:u.title),l.createElement("strong",null,$==null||(H=$.delivery_date)===null||H===void 0?void 0:H.value))),l.createElement("div",{className:"".concat(k().flex)},l.createElement("div",null,l.createElement("p",null,$==null||(j=$.delivery_location)===null||j===void 0?void 0:j.title),l.createElement("div",{className:k().location},l.createElement("strong",null,$==null||(J=$.delivery_location)===null||J===void 0?void 0:J.value))),l.createElement("div",null,l.createElement("p",null,$==null||(de=$.delivery_address)===null||de===void 0?void 0:de.title),l.createElement("div",null,l.createElement("strong",null,($==null||(se=$.delivery_address)===null||se===void 0?void 0:se.value.length)>20?($==null||(ae=$.delivery_address)===null||ae===void 0?void 0:ae.value.substring(0,20))+"...":$==null||(re=$.delivery_address)===null||re===void 0?void 0:re.value)))))))};const B=h;
3var _=a(40740),b=a(1469),o=a(83367),r=a.n(o),f=a(52242),c=a.n(f),y=l.createElement,E=function(v){var V=v.filledColor,d=V===void 0?"#154F9C":V,u=v.className;return l.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:u||""},l.createElement("path",{d:"M8.11953 14.7099L11.9995 10.8299L15.8795 14.7099C16.2695 15.0999 16.8995 15.0999 17.2895 14.7099C17.6795 14.3199 17.6795 13.6899 17.2895 13.2999L12.6995 8.70994C12.3095 8.31994 11.6795 8.31994 11.2895 8.70994L6.69953 13.2999C6.30953 13.6899 6.30953 14.3199 6.69953 14.7099C7.08953 15.0899 7.72953 15.0999 8.11953 14.7099Z",fill:d}))};const z=E;var S=l.createElement,U=function(v){var V,d,u,H,j=v.headDetails,J=v.details,de=(0,oe.B)(),se=de.t,ae=(0,l.useState)(!1),re=ae[0],$=ae[1];return l.createElement(l.Fragment,null,l.createElement("div",{className:[c().innerContainerTm,re?c().removeFixed:void 0].join(" ")},l.createElement("div",{className:"".concat(c().headContr," ").concat(J?c().pointer:""),onClick:function(){$(!re)}},l.createElement("div",{className:c().headData},l.createElement("p",{className:c().title},J?(V=J[0])===null||V===void 0?void 0:V.title:j==null?void 0:j.title),l.createElement("p",{className:c().value},J?(d=J[0])===null||d===void 0?void 0:d.value:j==null?void 0:j.value)),J&&l.createElement("div",{className:c().flxRow},l.createElement("p",{className:c().title},se("financing_offer_details",{ns:"web_tracking_finance"})),l.createElement(z,{className:"".concat(re?"":c().rotateArrow," ").concat(c().transition)}))),J&&re?l.createElement(l.Fragment,null,l.createElement("div",{className:c().imgContainer},l.createElement("strong",null,se("details_financing_offer_syarah",{ns:"web_tracking_finance"})),l.createElement("div",{className:c().imgTm},l.createElement("img",{width:"90px",height:"67px",src:j==null||(u=j.car_details)===null||u===void 0?void 0:u.image,alt:"car"}),l.createElement("strong",null,j==null||(H=j.car_details)===null||H===void 0?void 0:H.title))),J==null?void 0:J.map(function(N,p){return l.createElement("div",{key:p,className:"".concat(c().rowTm," ").concat(p===0?c().bankTm:"")},l.createElement("span",null,N==null?void 0:N.title),l.createElement("strong",null,l.createElement("span",null,N==null?void 0:N.value,l.createElement("span",null,N==null?void 0:N.text_value))))})):""))};const _e=U;var X=a(32149),L=a(4222),Ge=l.createElement,q=function(v){var V,d,u,H,j,J,de,se,ae,re,$,N,p,D,x,P,W,fe,Ae,be,F,m,w,g,A,O,G,C,n,K,Q,I,we,le,Pe,Me,Ce,Be,ne,ie,ue,pe,xe,ce,he,ke,me,Ve,Oe,et,Ue,ee,Re,Je,Ke,He,tt,ge,Le,Fe,Ee,Ne,Ze,Ye,ze,je,dt,bt,Ct,st,rt,ht,Et,ut,ct,Dt,vt,mt,$t,wt,Ft,qe,At,pt,_t,Bt,ve,M,Y,ye,De,Se,Xe,We,at,lt,nt,it,St,ot,ft,xt,Ot,Nt,Pt,Qe,Ut,Lt,jt,Tt,It,Mt,kt,Vt,Ht=v.isFinance,Rt=Ht===void 0?!1:Ht,e=v.details,Wt=v.orderId,zt=v.onFileChange,Xt=v.preSignData,Qt=v.fileObjects,Jt=v.uploadDocumentsData,Yt=v.buttonLoading,qt=v.deleteFileObject,ea=v.deleteDocuments,ta=v.stepNum,aa=v.setFileObjects,Gt=(0,X.uU)(),la=(0,oe.B)(),Kt=la.t,na=(0,L.Ay)(),Zt=na.createUrl,gt=(0,t.qS)(new Date(e==null||(V=e.step_desc)===null||V===void 0?void 0:V.date),Gt,!0),yt=(0,t.n9)(new Date(e==null||(d=e.step_desc)===null||d===void 0?void 0:d.date),Gt);return l.createElement(l.Fragment,null,l.createElement("div",{className:"".concat(r().stepDescriptionContainer)},((e==null||(u=e.step_body)===null||u===void 0||(H=u.offered_documents)===null||H===void 0||(j=H.values)===null||j===void 0?void 0:j.length)>0||(e==null||(J=e.step_body)===null||J===void 0||(de=J.fields)===null||de===void 0?void 0:de.values.every(function(Te){return Te.file!==null}))===!0&&(e==null||(se=e.step_body)===null||se===void 0||(ae=se.fields)===null||ae===void 0?void 0:ae.values.every(function(Te){return Te.status!=="rejected"})))&&l.createElement(l.Fragment,null,l.createElement(b.A,{title:e!=null&&(re=e.step_body)!==null&&re!==void 0&&($=re.offered_documents)!==null&&$!==void 0&&$.title?e==null||(N=e.step_body)===null||N===void 0||(p=N.offered_documents)===null||p===void 0?void 0:p.title:e==null||(D=e.step_body)===null||D===void 0||(x=D.fields)===null||x===void 0?void 0:x.title,offered_documents:(e==null||(P=e.step_body)===null||P===void 0||(W=P.offered_documents)===null||W===void 0||(fe=W.values)===null||fe===void 0?void 0:fe.length)>0?e==null||(Ae=e.step_body)===null||Ae===void 0||(be=Ae.offered_documents)===null||be===void 0?void 0:be.values:e==null||(F=e.step_body)===null||F===void 0||(m=F.fields)===null||m===void 0?void 0:m.values,g4_data:e==null?void 0:e.g4_data,hideDate:!0}),(e==null||(w=e.step_body)===null||w===void 0||(g=w.data)===null||g===void 0?void 0:g.finance_offer)||(e==null||(A=e.step_body)===null||A===void 0||(O=A.data)===null||O===void 0?void 0:O.contract_offer)&&l.createElement("hr",null),(e==null||(G=e.step_body)===null||G===void 0||(C=G.data)===null||C===void 0?void 0:C.car_reception)&&(e==null||(n=e.step_body)===null||n===void 0?void 0:n.offered_documents.values.length)>0&&l.createElement("hr",{className:r().mt32})),(e==null||(K=e.step_body)===null||K===void 0?void 0:K.title)&&(e==null||(Q=e.step_body)===null||Q===void 0?void 0:Q.title)!==""&&l.createElement("strong",{className:"".concat(r().title," ").concat(e!=null&&(I=e.step_body)!==null&&I!==void 0&&(we=I.data)!==null&&we!==void 0&&we.car_reception?r().customTitle:"")},e==null||(le=e.step_body)===null||le===void 0?void 0:le.title),(e==null||(Pe=e.step_desc)===null||Pe===void 0?void 0:Pe.status)!=="approved"&&e!==null&&e!==void 0&&(Me=e.step_body)!==null&&Me!==void 0&&(Ce=Me.fields)!==null&&Ce!==void 0&&Ce.values.some(function(Te){return Te.file===null})||(e==null||(Be=e.step_desc)===null||Be===void 0?void 0:Be.status)==="rejected"&&e!==null&&e!==void 0&&(ne=e.step_body)!==null&&ne!==void 0&&(ie=ne.fields)!==null&&ie!==void 0&&ie.values.some(function(Te){return Te.status==="rejected"})?l.createElement(_.A,{details:e,onFileChange:zt,preSignData:Xt,fileObjects:Qt,uploadDocumentsData:Jt,orderId:Wt,buttonLoading:Yt,deleteFileObject:qt,setFileObjects:aa,deleteDocuments:ea,stepNum:ta,isFinance:Rt,g4_data:(0,s.A)((0,s.A)({},e==null?void 0:e.g4_data),{},{status:"false",platform:navigator.userAgent.includes("iPhone")?"ios":navigator.userAgent.includes("Android")?"android":"web"})}):null,((e==null||(ue=e.step_body)===null||ue===void 0||(pe=ue.data)===null||pe===void 0||(xe=pe.car_reception)===null||xe===void 0?void 0:xe.description)||(e==null||(ce
3=e.step_body)===null||ce===void 0||(he=ce.data)===null||he===void 0||(ke=he.cancelled_survey)===null||ke===void 0?void 0:ke.description))&&l.createElement("p",{className:"".concat(r().desc," ").concat(e!=null&&(me=e.step_body)!==null&&me!==void 0&&(Ve=me.data)!==null&&Ve!==void 0&&(Oe=Ve.cancelled_survey)!==null&&Oe!==void 0&&Oe.description?r().customMargin:"")},e!=null&&(et=e.step_body)!==null&&et!==void 0&&(Ue=et.data)!==null&&Ue!==void 0&&(ee=Ue.car_reception)!==null&&ee!==void 0&&ee.description?e==null||(Re=e.step_body)===null||Re===void 0||(Je=Re.data)===null||Je===void 0||(Ke=Je.car_reception)===null||Ke===void 0?void 0:Ke.description:e==null||(He=e.step_body)===null||He===void 0||(tt=He.data)===null||tt===void 0||(ge=tt.cancelled_survey)===null||ge===void 0?void 0:ge.description),(e==null||(Le=e.step_body)===null||Le===void 0||(Fe=Le.data)===null||Fe===void 0?void 0:Fe.car_reception)&&(e==null||(Ee=e.step_desc)===null||Ee===void 0?void 0:Ee.date)&&l.createElement("div",{className:r().flexDate},l.createElement("p",{className:r().date},Kt("car_delivered",{ns:"web_tracking_finance"})," "),l.createElement("div",{className:r().timeStamp},l.createElement("p",{className:r().date},gt==null?void 0:gt.day,","," ",l.createElement("span",{className:r().bold},gt==null?void 0:gt.date)),l.createElement("p",{className:r().time},l.createElement("span",{className:r().bold},yt==null?void 0:yt.time," "),yt==null?void 0:yt.format))),e!=null&&(Ne=e.step_body)!==null&&Ne!==void 0&&(Ze=Ne.data)!==null&&Ze!==void 0&&Ze.finance_offer||e!=null&&(Ye=e.step_body)!==null&&Ye!==void 0&&(ze=Ye.data)!==null&&ze!==void 0&&ze.contract_offer?l.createElement(_e,{headDetails:e!=null&&(je=e.step_body)!==null&&je!==void 0&&(dt=je.data)!==null&&dt!==void 0&&dt.finance_offer?e==null||(bt=e.step_body)===null||bt===void 0||(Ct=bt.data)===null||Ct===void 0?void 0:Ct.finance_offer:e==null||(st=e.step_body)===null||st===void 0||(rt=st.data)===null||rt===void 0?void 0:rt.contract_offer,details:e==null||(ht=e.step_body)===null||ht===void 0||(Et=ht.data)===null||Et===void 0||(ut=Et.contract_offer)===null||ut===void 0?void 0:ut.financial_details}):"",(e==null||(ct=e.step_body)===null||ct===void 0||(Dt=ct.data)===null||Dt===void 0?void 0:Dt.delivery_data)&&l.createElement(B,{deliveryData:e==null||(vt=e.step_body)===null||vt===void 0||(mt=vt.data)===null||mt===void 0?void 0:mt.delivery_data,offered_documents:Array.isArray(e==null||($t=e.step_body)===null||$t===void 0||(wt=$t.offered_documents)===null||wt===void 0?void 0:wt.values)?e==null||(Ft=e.step_body)===null||Ft===void 0||(qe=Ft.offered_documents)===null||qe===void 0||(At=qe.values)===null||At===void 0?void 0:At.find(function(Te){return Te.is_way_bill===!0}):null}),(e==null||(pt=e.step_desc)===null||pt===void 0?void 0:pt.status)!=="approved"&&e!==null&&e!==void 0&&(_t=e.step_body)!==null&&_t!==void 0&&(Bt=_t.fields)!==null&&Bt!==void 0&&Bt.values.some(function(Te){return Te.file===null})||(e==null||(ve=e.step_desc)===null||ve===void 0?void 0:ve.status)==="rejected"&&e!==null&&e!==void 0&&(M=e.step_body)!==null&&M!==void 0&&(Y=M.fields)!==null&&Y!==void 0&&Y.values.some(function(Te){return Te.status==="rejected"})?"":l.createElement("div",{className:"".concat(r().buttonContainer," ").concat(e!=null&&(ye=e.step_body)!==null&&ye!==void 0&&(De=ye.data)!==null&&De!==void 0&&De.car_reception||e!=null&&(Se=e.step_body)!==null&&Se!==void 0&&(Xe=Se.data)!==null&&Xe!==void 0&&Xe.cancelled_survey?r().customButtonContainer:"")},((e==null||(We=e.step_body)===null||We===void 0||(at=We.data)===null||at===void 0||(lt=at.car_reception)===null||lt===void 0?void 0:lt.cta)||(e==null||(nt=e.step_body)===null||nt===void 0||(it=nt.data)===null||it===void 0||(St=it.cancelled_survey)===null||St===void 0?void 0:St.cta))&&l.createElement(i.N_,{to:Zt("/orders/".concat(e!=null&&(ot=e.step_body)!==null&&ot!==void 0&&(ft=ot.data)!==null&&ft!==void 0&&(xt=ft.car_reception)!==null&&xt!==void 0&&xt.cta?"customer-survey":"customer-cancelled-survey","/").concat(e==null?void 0:e.order_uuid).concat(Rt?"?finance=1":"")),className:r().surveyButton},(e==null||(Ot=e.step_body)===null||Ot===void 0||(Nt=Ot.data)===null||Nt===void 0||(Pt=Nt.car_reception)===null||Pt===void 0?void 0:Pt.cta)&&(e==null||(Qe=e.step_body)===null||Qe===void 0||(Ut=Qe.data)===null||Ut===void 0||(Lt=Ut.car_reception)===null||Lt===void 0?void 0:Lt.cta),(e==null||(jt=e.step_body)===null||jt===void 0||(Tt=jt.data)===null||Tt===void 0||(It=Tt.cancelled_survey)===null||It===void 0?void 0:It.cta)&&(e==null||(Mt=e.step_body)===null||Mt===void 0||(kt=Mt.data)===null||kt===void 0||(Vt=kt.cancelled_survey)===null||Vt===void 0?void 0:Vt.cta)),l.createElement(i.N_,{to:Zt("/".concat(Rt?"tracking-finance-details":"tracking-checkout-details","/").concat(Wt)),className:r().backButton},Kt("return",{ns:"web_tracking"})))))};const Ie=q}),40740:((T,te,a)=>{"use strict";a.d(te,{A:()=>be});var s=a(89379),l=a(91212),i=a(10467),t=a(96540),Z=a(19999),k=t.createElement,oe
3=function(){return t.createElement(t.Fragment,null,t.createElement("svg",{className:"UploadSvg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.41 7.41L14.58 2.58C14.21 2.21 13.7 2 13.17 2H6C4.9 2 4.01 2.9 4.01 4L4 20C4 21.1 4.89 22 5.99 22H18C19.1 22 20 21.1 20 20V8.83C20 8.3 19.79 7.79 19.41 7.41ZM14.8 15H13V18C13 18.55 12.55 19 12 19C11.45 19 11 18.55 11 18V15H9.21C8.76 15 8.54 14.46 8.86 14.15L11.66 11.36C11.86 11.17 12.17 11.17 12.37 11.36L15.16 14.15C15.46 14.46 15.24 15 14.8 15ZM13 8C13 8.55 13.45 9 14 9H18.5L13 3.5V8Z",fill:"#ABB9CC"})))};const R=oe;var h=t.createElement,B=function(m){var w=m.onClick;return t.createElement("svg",{style:{cursor:"pointer"},onClick:w&&w,className:"DelSVG",width:"16",height:"18",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M3 18C2.45 18 1.97917 17.8042 1.5875 17.4125C1.19583 17.0208 1 16.55 1 16V3C0.716667 3 0.479167 2.90417 0.2875 2.7125C0.0958333 2.52083 0 2.28333 0 2C0 1.71667 0.0958333 1.47917 0.2875 1.2875C0.479167 1.09583 0.716667 1 1 1H5C5 0.716667 5.09583 0.479167 5.2875 0.2875C5.47917 0.0958333 5.71667 0 6 0H10C10.2833 0 10.5208 0.0958333 10.7125 0.2875C10.9042 0.479167 11 0.716667 11 1H15C15.2833 1 15.5208 1.09583 15.7125 1.2875C15.9042 1.47917 16 1.71667 16 2C16 2.28333 15.9042 2.52083 15.7125 2.7125C15.5208 2.90417 15.2833 3 15 3V16C15 16.55 14.8042 17.0208 14.4125 17.4125C14.0208 17.8042 13.55 18 13 18H3ZM13 3H3V16H13V3ZM6 14C6.28333 14 6.52083 13.9042 6.7125 13.7125C6.90417 13.5208 7 13.2833 7 13V6C7 5.71667 6.90417 5.47917 6.7125 5.2875C6.52083 5.09583 6.28333 5 6 5C5.71667 5 5.47917 5.09583 5.2875 5.2875C5.09583 5.47917 5 5.71667 5 6V13C5 13.2833 5.09583 13.5208 5.2875 13.7125C5.47917 13.9042 5.71667 14 6 14ZM10 14C10.2833 14 10.5208 13.9042 10.7125 13.7125C10.9042 13.5208 11 13.2833 11 13V6C11 5.71667 10.9042 5.47917 10.7125 5.2875C10.5208 5.09583 10.2833 5 10 5C9.71667 5 9.47917 5.09583 9.2875 5.2875C9.09583 5.47917 9 5.71667 9 6V13C9 13.2833 9.09583 13.5208 9.2875 13.7125C9.47917 13.9042 9.71667 14 10 14Z",fill:"#92A5C1"}))};const _=B;var b=a(33852),o=a.n(b),r=a(98321),f=a(2338),c=a(37274),y=a(93355),E=a(60799),z=a(96966);function S(F,m,w){return U.apply(this,arguments)}function U(){return U=(0,i.A)((0,l.A)().m(function F(m,w,g){var A,O,G;return(0,l.A)().w(function(C){for(;;)switch(C.n){case 0:return A=new FormData,A.append("document_key",m),A.append("order_id",w),O=g?"/finance-tracking/delete-document":"/order-tracking/delete-document",C.n=1,(0,z.Ay)().post(O,A);case 1:if(G=C.v,G.data.code===200){C.n=2;break}throw new Error("Failed to delete documents");case 2:return C.a(2,G.data)}},F)})),U.apply(this,arguments)}function _e(F){var m,w,g,A;return F?(F==null?void 0:F.type)||(F!=null&&(m=F.name)!==null&&m!==void 0&&(w=m.toLowerCase)!==null&&w!==void 0&&(g=w.call(m))!==null&&g!==void 0&&(A=g.includes)!==null&&A!==void 0&&A.call(g,"heic")?"image/heic":""):""}var X=a(71831),L=a(27807),Ge=t.createElement,q=function(m){var w,g,A,O,G=m.g4_data,C=m.onFileChange,n=m.dbFile,K=m.details,Q=m.deleteFileObject,I=m.deleteDocuments,we=m.orderId,le=m.buttonLoading,Pe=m.isFinance,Me=m.setFileObjects,Ce=m.isPreFilledData,Be=(0,f.B)(),ne=Be.t,ie=(0,t.useState)(!1),ue=ie[0],pe=ie[1],xe=(0,t.useState)(void 0),ce=xe[0],he=xe[1],ke=(0,t.useState)(!1),me=ke[0],Ve=ke[1],Oe=(0,t.useState)(!1),et=Oe[0],Ue=Oe[1],ee=(0,L.A)(),Re=(0,t.useRef)(),Je=(0,t.useState)((n==null?void 0:n.status)==="rejected"?n!=null&&n.reject_reason?n==null?void 0:n.reject_reason:ne("re_upload_image",{ns:"web_tracking"}):void 0),Ke=Je[0],He=Je[1],tt=function(){(n==null?void 0:n.file)===null||(n==null?void 0:n.status)==="rejected"&&n!==null&&n!==void 0&&n.file?(Ve(!0),he(void 0),Q(n),I(n),pe(!1)):((0,L.X)(!0),S(n==null?void 0:n.document_key,we,Pe).then(function(Fe){he(void 0),Q(n),Me({}),I(n),pe(!1)}).catch(function(Fe){E.Ay.dismiss(),E.Ay.error(Fe.message)}).finally(function(){(0,L.X)(!1)}))},ge=function(Fe,Ee){He(void 0);var Ne=Fe.target.files[0];if(Ue(!0),Ne){if(Ne.size>5*1024*1024){var Ze=ne("validation_file_size_exceed_5_mb",{ns:"web_tracking"});He(Ze),(0,c.X)("validation_error",{document_id_type:Ee==null?void 0:Ee.path,error_description:Ze});return}var Ye=["image/jpeg","image/jpg","image/png","application/pdf"];if(!Ye.includes(_e(Ne))){var ze=ne("accepted_extensions_pdf_jpeg_png",{ns:"web_tracking"});He(ze),(0,c.X)("validation_error",{document_id_type:Ee==null?void 0:Ee.path,error_description:ze});return}var je=new File([Ne],Ne.name,{type:Ne.type,lastModified:Ne.lastModified});C(je,Ee),he(je)}};return(0,t.useEffect)(function(){me&&Ve(!1)},[me]),t.createElement(t.Fragment,null,t.createElement("div",{className:[o().fileUploaderContainer,ce!=null||(n==null?void 0:n.status)!=="rejected"&&n!==null&&n!==void 0&&n.file?o().hasFile:void 0,n!=null&&n.file&&(n==null?void 0:n.status)==="approved"?o().hasFileGreen:void 0,ce!=null?o().hasFileGreen:void 0,(n==null?void 0:n.status)==="rejected"&&ce==null||Ke?o().hasErrorInput:"",le?o().pointerEvents:""].join(" ")},t.createElement("label",null,n.label),t.createElement("div",{className:[o().upperwrpper,ce!==void 0||(n==null?void 0:n.status)!=="rejected"&&n!==null&&n!==void 0&&n.file?o().smallerSize:"",(n==null?void 0:n.status)==="approved"&&(K==null||(w=K.step_desc)===null||w===void 0?void 0:w.status)==="rejected"?o().readingOnly:""].join(" ")},!me&&t.createElement("input",{ref:Re,type:"file",accept:".jpg, .jpeg, .png, .pdf",onChange:function(Fe){ge(Fe,n)},placeholder:n.placeholder,name:n==null?void 0:n.name_en}),t.createElement("div",{className:"".concat(o().nameContainer," ")},ce!=null&&ce.name?t.createElement("span",{className:o().name},ce==null?void 0:ce.name):(n==null?void 0:n.status)!=="rejected"&&n!==null&&n!==void 0&&n.file?t.createElement("span",{className:o().name},n==null||(g=n.file)===null||g===void 0?void 0:g.split("?")[0].split("/").slice(-3).join("/")):t.createElement("span",{className:o().placeholder},n==null?void 0:n.placeholder),(n==null?void 0:n.status)==="approved"&&(K==null||(A=K.step_desc)===null||A===void 0?void 0:A.status)==="rejected"?"":ce!==void 0||(n==null?void 0:n.status)==="pending"&&n!==null&&n!==void 0&&n.file?t.createElement(t.Fragment,null,t.createElement(X.A,{dbFile:n,setShowDeletePopup:pe,originalInputRef:Re,stepStatus:K==null||(O=K.step_desc)===null||O===void 0?void 0:O.status,g4_data:G,fileUri:n==null?void 0:n.file,domInMemoryFile:ce,renderFunc:function(Fe,Ee){return t.createElement("span",{className:o().showDoc,onClick:Ee},Fe)}}),(!Ce||(n==null?void 0:n.status)==="rejected")&&t.createElement("span",{className:o().icon},t.createElement(_,{onClick:function(){pe(!0)}}))):t.createElement("span",{className:o().icon},t.createElement(R,null)))),Ke&&t.createElement("span",{className:o().hasErrSpan}
3,Ke)),t.createElement(r.default,{noX:!0,showXMob:!0,className:o().BottomSheetPopup,show:ue,onClose:function(){return pe(!1)}},t.createElement("div",{className:o().popupContent},t.createElement("img",{src:y.DZ+"/assets/images/finance_delete.svg",alt:"delete"}),t.createElement("strong",null,ne("sure_want_delete_document",{ns:"web_tracking"})),t.createElement("p",null,ne("validation_cannot_proceed_next_step_until",{ns:"web_tracking"})),t.createElement("div",{className:o().buttonsCtaContainer},t.createElement(Z.A,{onClick:function(){pe(!1),tt(),he(void 0)},loading:ee,disabled:ee,className:o().ctaButton},ne("delete_document",{ns:"web_tracking"})),t.createElement(Z.A,{onClick:function(){return pe(!1)},loading:ee,disabled:ee,className:o().cancelButton},ne("return",{ns:"web_tracking"}))))))};const Ie=q;var $e=a(14658),v=a.n($e),V=a(67331);function d(F,m,w,g,A,O){return u.apply(this,arguments)}function u(){return u=(0,i.A)((0,l.A)().m(function F(m,w,g,A,O,G){var C,n;return(0,l.A)().w(function(K){for(;;)switch(K.n){case 0:return Object.keys(w).forEac
3h(function(Q){var I,we=(I=w[Q])!==null&&I!==void 0?I:{},le=we.path;if(le){var Pe=function(Ce){return Ce.path===le};g.filter(Pe).length===0&&(console.log("api__uploadAttachments__delete/preSignData",Q,w[Q]),delete w[Q])}}),C=[],Object.values(w||[]).forEach(function(Q){var I=g.find(function(we){return we.path===Q.path});I&&C.push(I)}),K.n=1,se(w,G);case 1:return n=K.v,K.a(2,H(m,n).then(function(){J(C,A,O,G)}))}},F)})),u.apply(this,arguments)}function H(F,m){return j.apply(this,arguments)}function j(){return j=(0,i.A)((0,l.A)().m(function F(m,w){return(0,l.A)().w(function(g){for(;;)if(g.n===0)return g.a(2,Promise.all(Object.keys(m).map((function(){var A=(0,i.A)((0,l.A)().m(function O(G){var C,n,K;return(0,l.A)().w(function(Q){for(;;)switch(Q.n){case 0:return C=m[G],n=w[G],Q.n=1,V.A.put(n,C,{headers:{"Content-Type":C.type}});case 1:if(K=Q.v,K.status===200){Q.n=2;break}throw new Error("File upload failed");case 2:return Q.a(2)}},O)}));return function(O){return A.apply(this,arguments)}})())))},F)})),j.apply(this,arguments)}function J(F,m,w,g){return de.apply(this,arguments)}function de(){return de=(0,i.A)((0,l.A)().m(function F(m,w,g,A){var O,G,C;return(0,l.A)().w(function(n){for(;;)switch(n.n){case 0:return O=A?"/finance-tracking/upload-document":"/order-tracking/upload-document",G={order_id:w,documents:m,step:g},n.n=1,(0,z.Ay)(null,!0).post(O,G);case 1:if(C=n.v,C.data.code===200){n.n=2;break}throw new Error("Failed to upload documents");case 2:return n.a(2,C.data)}},F)})),de.apply(this,arguments)}function se(F,m){return ae.apply(this,arguments)}function ae(){return ae=(0,i.A)((0,l.A)().m(function F(m,w){var g,A;return(0,l.A)().w(function(O){for(;;)switch(O.n){case 0:return g=w?"/finance-tracking/get-presigned-url":"/order-tracking/get-presigned-url",O.n=1,(0,z.Ay)(null,!0).post(g,{documents:m});case 1:if(A=O.v,A.data.code!==200){O.n=2;break}return O.a(2,A.data.data);case 2:throw new Error("Failed to get pre-signed URLs");case 3:return O.a(2)}},F)})),ae.apply(this,arguments)}var re=a(4222),$=a(55635),N=a(26930),p=a(79935),D=a(9581),x=a(88289),P=a(92164),W=a(50856),fe=t.createElement,Ae=function(m){var w,g,A,O,G,C=m.details,n=m.fileObjects,K=m.preSignData,Q=m.uploadDocumentsData,I=m.orderId,we=m.onFileChange,le=m.buttonLoading,Pe=m.deleteFileObject,Me=m.setFileObjects,Ce=m.deleteDocuments,Be=m.stepNum,ne=m.isFinance,ie=m.g4_data,ue=m.dontCheckFiles,pe=ue===void 0?!1:ue,xe=m.customText,ce=m.hideTitle,he=ce===void 0?!1:ce,ke=m.freeFinanceFunctionality,me=ke===void 0?!1:ke,Ve=m.upcomingFiles,Oe=Ve===void 0?[]:Ve,et=m.updateLoader,Ue=m.mobileNUmberForEvent,ee=m.sendFormSubmitEvent,Re=ee===void 0?!1:ee,Je=m.InformParentPopUpIsOpen,Ke=m.isArib,He=Ke===void 0?!1:Ke,tt=(0,f.B)(["web_tracking"]),ge=tt.t,Le=(0,re.Ay)(),Fe=Le.navigateTo,Ee=(0,L.A)(),Ne=(0,t.useState)(!1),Ze=Ne[0],Ye=Ne[1],ze=(0,t.useState)(!1),je=ze[0],dt=ze[1],bt=(0,N.A)(),Ct=bt.getSubmissionSource,st=(0,x.u)().actions,rt=st.action__getPostID,ht=st.action__updateDataAfterSubmit,Et=(0,x.u)().helpers.helper__paymentEnabled,ut=(0,t.useState)(null),ct=ut[0],Dt=ut[1];(0,t.useEffect)(function(){Ze===!0&&Je(!0)},[Ze]),(0,t.useEffect)(function(){var ve={post_id:rt(),view_date:"12356"};(0,D.w)([ve],1).then(function(M){Dt(M==null?void 0:M.data[0])})},[]);var vt=function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;Re&&mt(),(0,L.X)(!0),d(n,K,Q,I,Be,ne).then((0,i.A)((0,l.A)().m(function Y(){var ye;return(0,l.A)().w(function(De){for(;;)switch(De.n){case 0:return $t(),typeof M!="string"&&(M=""),De.n=1,new Promise(function(Se){return setTimeout(Se,500)});case 1:me?(Ye(!0),(0,L.X)(!1)):(ye=ne?"/tracking-finance-details/".concat(I).concat(M):"/tracking-checkout-details/".concat(I),Fe(ye));case 2:return De.a(2)}},Y)}))).catch(function(Y){(0,L.X)(!1),E.Ay.dismiss(),E.Ay.error(Y.message)})},mt=function(){var M,Y=Ct(),ye=(0,s.A)((0,s.A)({},ie),{},{inventory_type_string:(M=ie)===null||M===void 0?void 0:M.inventory_type_string,order_id:I,payment_option:"finance",payment_status:null,response_message:null,response_code:null,referral_location:Y,finance_type:"free"});(He&&!Et()||!He)&&(0,c.X)("finance_order_submit",(0,s.A)({},ye))},$t=function(){var M,Y,ye,De,Se,Xe=Object.keys(n).length===(C==null||(M=C.step_body)===null||M===void 0||(Y=M.fields)===null||Y===void 0?void 0:Y.values.filter(function(We){return We.file===null}).length)&&(C==null||(ye=C.step_body)===null||ye===void 0||(De=ye.fields)===null||De===void 0?void 0:De.values.every(function(We){return We.file!==null}))===!1?(0,s.A)((0,s.A)({},ie),{},{status:"true"}):ie;ie=pe?ie:Xe,(0,c.X)("order_document_upload",(0,s.A)((0,s.A)({},(Se=ie)!==null&&Se!==void 0?Se:C==null?void 0:C.g4_data),{},{document_id_type:Object.keys(K)}))},wt=function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;!me&&vt(M),!me&&Re&&mt()},Ft=function(M,Y){var ye,De,Se,Xe,We,at,lt,nt,it,St=Y==null||(ye=Y.step_body)===null||ye===void 0||(De=ye.fields)===null||De===void 0||(Se=De.values)===null||Se===void 0?void 0:Se.filter(function(Qe){return Qe.file===null}).length,ot=Y==null||(Xe=Y.step_body)===null||Xe===void 0||(We=Xe.fields)===null||We===void 0||(at=We.values)===null||at===void 0?void 0:at.filter(function(Qe){return Qe.status==="rejected"}).length,ft=Object.keys(M).length===St&&(Y==null||(lt=Y.step_body)===null||lt===void 0||(nt=lt.fields)===null||nt===void 0||(it=nt.values)===null||it===void 0?void 0:it.every(function(Qe){return Qe.file!==null}))===!1,xt=Object.keys(M).length===ot,Ot=ft||ot?xe||ge("upload_files",{ns:"web_tracking"}):xe||ge("upload_files",{ns:"web_tracking"}),Nt=ft||xt?"".concat(v().uploadDocButton," ").concat(v().sendFilesButton," text-center"):"".concat(v().uploadDocButton," ").concat(v().saveButton," text-center"),Pt=Object.keys(M).length===0;return{text:Ot,className:Nt,isDisabled:Pt,hasRejectedFiles:ot}},qe=Ft(n,C),At=qe.text,pt=qe.className,_t=qe.isDisabled,Bt=qe.hasRejectedFiles;return t.createElement(t.Fragment,null,t.createElement("div",{className:v().uploadContainer},!he&&t.createElement("h3",{className:v().uploadDocTitle},C==null||(w=C.step_body)===null||w===void 0||(g=w.fields)===null||g===void 0?void 0:g.title),C==null||(A=C.step_body)===null||A===void 0||(O=A.fields)===null||O===void 0||(G=O.values)===null||G===void 0?void 0:G.map(function(ve,M){return t.createElement(Ie,{key:M,onFileChange:we,dbFile:ve,details:C,index:M,deleteFileObject:Pe,setFileObjects:Me,deleteDocuments:Ce,orderId:I,stepNum:Be,buttonLoading:le,isFinance:ne,g4_data:ie,isPreFilledData:(ve==null?void 0:ve.file)!=null})}),!me&&t.createElement("div",{className:v().conditionsList},t.createElement("p",{className:v().uploadCondition},"- ",ge("accepted_formats_pdf_jpeg_png",{ns:"web_tracking"})),t.createElement("p",{className:v().uploadCondition},"-"," ",ge("validation_file_size_exceed_5_mb",{ns:"web_tracking"}))),me&&t.createElement("hr",{className:v().freeFinanceFunctionalityDivider}),me&&(Oe==null?void 0:Oe.length)>0&&t.createElement("div",{className:v().hasUpcomingFilesContainer},t.createElement("div",null,t.createElement("div",null,t.createElement("span",null),t.createElement("strong",null,ge("validation_documents_required_later",{ns:"web_tracking"}))),t.createElement("ul",null,Oe.map(function(ve,M){return t.createElement("li",{key:M},"- ",ve)})))),!me&&t.createElement(Z.A,{onClick:wt,type:"submit",disabled:_t||le,loading:le,className:pt},At),me&&t.createElement("div",{className:v().submintButtonsContainer},t.createElement("button",{onClick:function(){vt("?showmyAcc=1"),dt(!0),document.body.style.overflow="hidden"},className:[pt,"relative"].join(" "),disabled:_t||le,loading:le},ge("submit_request",{ns:"web_tracking"})),t.createElement("button",{className:(0,W.QP)("w-[318px] p-3 h-auto text-[#6c7a8d] text-base font-bold leading-6 border border-[#6c7a8d] bg-white relative text-center",He&&"border border-primary border-solid text-primary"),onClick:function(){dt(!1),document.body.style.overflow="hidden",Ye(!0)},disabled:le,loading:le},ge("attach_files_later",{ns:"web_tracking"})))),me&&Ze&&t.createElement("div",{className:"fixed flex flex-col sm:flex-row items-start justify-start sm:justify-center pb-10 gap-[22px] w-full h-full left-0 top-0 z-[9] bg-[#fafcff] py-10"},t.createElement("div",{className:"pb-10 md:shadow-[0_0_10px_rgb(188_188_188_/_0.4)] flex flex-col gap-[24px] items-center justify-center w-[85%] mt-[90px] relative p-0 border-none sm:w-full sm:p-[32px_24px] sm:rou
3nded-xl sm:border sm:border-solid sm:border-[#EBF0F7] sm:bg-white sm:min-w-[520px] sm:max-w-[520px] mx-auto"},t.createElement("img",{src:y.DZ+"/assets/images/GreenTickIcon.svg",width:"98px",height:"81px",alt:"icon"}),t.createElement("strong",{className:"text-[#0d0db5] text-center text-2xl font-bold leading-8"},je&&ge("congrats_application_submitted",{ns:"web_tracking"}),!je&&ge("request_information_filled",{ns:"web_tracking"})),t.createElement("p",{className:"text-[#0d0db5] text-center text-base font-medium leading-6 w-[85%]"},je&&ge("follow_request_attach_remaining_documents",{ns:"web_tracking"}),!je&&ge("validation_track_request_attach_required_documents",{ns:"web_tracking"})),ct&&t.createElement(p.A,{isEager:!1,post:ct,wrapperClassName:"pointer-events-none [&>*]:pointer-events-none",showGrantedPopup:function(){return!1},hideMarkitingLabel:!0,hideFavIcon:!0}),t.createElement("button",{className:["relative flex w-full items-center justify-center h-12 rounded text-white text-base font-bold leading-6",Ee?"pointer-events-none bg-[#EBF0F7] border-0":"blueBtn"].join(" "),onClick:function(){if((0,L.X)(!0),ht({postId:rt(),isOrderSubmited:!0}),je){var M=(0,$.A)(),Y=M.getLocalStorage,ye=M.removeLocalStorage,De=Y("referral_location")||"",Se=De==="car_comparison";Se&&ye("referral_location"),Fe("/tracking-finance-details/".concat(I))}else je||((0,L.X)(!1),Fe("/tracking-finance-details/".concat(I)))}},ge("proceed_track_request",{ns:"web_tracking"}),Ee&&t.createElement(P.A,{className:"!bg-transparent !absolute w-full h-full m-0 [zoom:0.6] [backdrop-filter:blur(1px)]"})))),Ee&&t.createElement(P.A,null))};const be=Ae}),1469:((T,te,a)=>{"use strict";a.d(te,{A:()=>h});var s=a(96540),l=a(32149),i=a(30556),t=a(81768),Z=a.n(t),k=a(71831),oe=s.createElement,R=function(_){var b=_.title,o=_.offered_documents,r=_.hideDate,f=_.g4_data,c=(0,l.uU)();return s.createElement(s.Fragment,null,s.createElement("div",{className:Z().offeredDocs},b&&s.createElement("h3",null,b),o==null?void 0:o.map(function(y,E){var z={},S={};return y!=null&&y.date_time&&(z=(0,i.qS)(new Date(y==null?void 0:y.date_time),c,!0),S=(0,i.n9)(new Date(y==null?void 0:y.date_time),c)),s.createElement("div",{className:Z().documentContainer,key:E},s.createElement("div",{className:Z().headerContainer},s.createElement("p",null,y.name),s.createElement(k.A,{fileUri:y==null?void 0:y.file,g4_data:f,dbFile:y,renderFunc:function(_e,X){return s.createElement("button",{type:"button",className:Z().download,onClick:X},_e)}})),(y==null?void 0:y.date_time)&&!r&&s.createElement("div",{className:Z().timeStamp},s.createElement("p",null,z.day," ",z.date),s.createElement("p",null,S.time," ",S.format)))})))};const h=R}),79224:((T,te,a)=>{"use strict";a.d(te,{A:()=>h});var s=a(96540),l=a(30556),i=a(4017),t=a.n(i),Z=a(93355),k=a(32149),oe=s.createElement,R=function(_){var b,o,r,f,c,y,E,z,S,U,_e,X,L,Ge,q,Ie,$e,v,V,d,u=_.details,H=_.stepNum,j=_.isFinance,J=j===void 0?!1:j,de=(0,k.uU)(),se=(0,l.qS)(new Date(u==null||(b=u.step_desc)===null||b===void 0?void 0:b.date),de,!0),ae=(0,l.n9)(new Date(u==null||(o=u.step_desc)===null||o===void 0?void 0:o.date),de);return s.createElement(s.Fragment,null,s.createElement("div",{className:[t().bgDiv,"m-show"].join(" ")}),s.createElement("div",{className:"".concat(t().stepBodyContainer," ").concat(u!=null&&(r=u.step_body)!==null&&r!==void 0&&(f=r.data)!==null&&f!==void 0&&f.car_reception?t().noBotPadding:""," ").concat(u!=null&&(c=u.step_body)!==null&&c!==void 0&&(y=c.data)!==null&&y!==void 0&&y.car_reception?t().whiteBackground:"")},(u==null||(E=u.step_desc)===null||E===void 0?void 0:E.title)&&s.createElement("p",{className:"".concat(t().title," m-hide")},u==null||(z=u.step_desc)===null||z===void 0?void 0:z.title),u!=null&&(S=u.step_body)!==null&&S!==void 0&&(U=S.data)!==null&&U!==void 0&&U.car_reception?s.createElement("div",{className:t().animatedContainer},s.createElement("img",{src:Z.DZ+"/assets/images/celebration.gif",alt:"gif"}),s.createElement("img",{className:t().carImage,src:Z.DZ+"/assets/images/tracking-car.svg",alt:"car"})):(u==null||(_e=u.step_desc)===null||_e===void 0?void 0:_e.img)&&s.createElement("img",{src:u==null||(X=u.step_desc)===null||X===void 0?void 0:X.img,alt:u==null||(L=u.step_desc)===null||L===void 0?void 0:L.title}),(u==null||(Ge=u.step_desc)===null||Ge===void 0?void 0:Ge.sub_title)&&s.createElement("h3",{className:t().sub_title},u==null||(q=u.step_desc)===null||q===void 0?void 0:q.sub_title),(u==null||(Ie=u.step_desc)===null||Ie===void 0?void 0:Ie.description)&&s.createElement("p",{className:"".concat(t().desc)},u==null||($e=u.step_desc)===null||$e===void 0?void 0:$e.description),(u==null||(v=u.step_desc)===null||v===void 0?void 0:v.date)&&!(u!=null&&(V=u.step_body)!==null&&V!==void 0&&(d=V.data)!==null&&d!==void 0&&d.car_reception)&&s.createElement(s.Fragment,null,J&&H==4?"":s.createElement("div",{className:t().timeStamp},s.createElement("p",{className:t().date},se.day,","," ",s.createElement("span",{className:t().bold},se.date)),s.createElement("p",{className:t().time},s.createElement("span",{className:t().bold},ae.time," "),ae.format)))))};const h=R}),33344:((T,te,a)=>{"use strict";a.d(te,{Is:()=>Z,Ww:()=>R,XA:()=>t,Zn:()=>oe,fZ:()=>h,fp:()=>k});var s=a(45458),l=a(64467),i=a(89379),t=function(_){return _.cancelled?"cancelled":_.completed?"done":_.current?"current":"pending"},Z=function(_){var b;return _==null||(b=_.steps)===null||b===void 0?void 0:b.find(function(o){return t(o)==="current"})},k=function(_,b,o,r,f){var c=b.document_key,y=_==null?void 0:_.name.split(".").pop();o(function(E){return(0,i.A)((0,i.A)({},E),{},(0,l.A)({},c,_))}),r(function(E){return(0,i.A)((0,i.A)({},E),{},(0,l.A)({},c,{path:b.path,extension:y}))}),f(function(E){return[].concat((0,s.A)(E),[{path:b.path,extension:y,name_ar:b.name_ar,name_en:b.name_en}])})},oe=function(_,b){var o=_.document_key;b(function(r){var f=(0,i.A)({},r);return delete f[o],f})},R=function(_,b){var o=_.path;b(function(r){var f=r.filter(function(c){return c.path!==o});return f})},h=function(_){var b,o;return _!=null&&(b=_.step_body)!==null&&b!==void 0&&(o=b.fields)!==null&&o!==void 0&&o.values?_.step_body.fields.values.filter(function(r){return(r==null?void 0:r.file)!==null&&r.status!=="rejected"}).map(function(r){var f=r==null?void 0:r.file.split("?")[0],c=f.split("."),y=c[c.length-1];return{path:r.path,extension:y,name_ar:r.name_ar,name_en:r.name_en}}):[]}}),17640:(()=>{}),23237:(()=>{}),97492:(()=>{}),31815:(()=>{}),66671:(()=>{}),82787:(()=>{})}]);})(); 4 5//# sourceMappingURL=9133.f326e88b.chunk.js.map
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.