PageSourceSearch

https://www.hamrah-mechanic.com/_next/static/chunks/pages/leasing/…/check-information-0788d30fca23fe25.js

js hamrah-mechanic.com collected 2026-10-01 13:03:28 UTC 9,940 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8408],{64717:function(f,b,a){"use strict";a.r(b);var g=a(59499),h=a(50029),c=a(87794),i=a.n(c),j=a(11163),k=a(25675),l=a(67294),m=a(42283),n=a(2497),o=a(87226),p=a(71762),q=a(22258),r=a(86515),s=a(60629),t=a(73550),u=a(63763),v=a(72238),w=a(99560),x=a(22452),d=a(81531),y=a.n(d),e=a(94174),z=a.n(e),A=a(74251),B=a(20068),C=a(98517),D=a(6693),E=a(21534),F=a(85893);function G(c,d){var a=Object.keys(c);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(c);d&&(b=b.filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable})),a.push.apply(a,b)}return a}function H(c){for(var a=1;a<arguments.length;a++){var b=null!=arguments[a]?arguments[a]:{};a%2?G(Object(b),!0).forEach(function(a){(0,g.Z)(c,a,b[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(b)):G(Object(b)).forEach(function(a){Object.defineProperty(c,a,Object.getOwnPropertyDescriptor(b,a))})}return c}b.default=function(){var V,W,ba=(0,j.useRouter)(),ca=(0,n.I0)(),f=(0,n.v9)(function(a){return a.LongTermLeasing}),da=f.leasingData,c=f.leasingFormData,ea=c.trackingCode,g=c.typeOfCheck,G=c.numberOfCheck,I=(0,l.useState)(null),a=I[0],fa=I[1],J=(0,l.useState)(!1),X=J[0],ga=J[1],K=(0,l.useState)(""),Y=K[0],ha=K[1],L=(0,l.useState)(!1),Z=L[0],ia=L[1],M=(0,l.useState)([]),ja=M[0],ka=M[1],N=(0,l.useState)(!1),la=N[0],ma=N[1],O=(0,l.useState)(g.id),na=O[0],oa=O[1],P=(0,l.useState)(g.name),pa=P[0],qa=P[1],Q=(0,l.useState)([]),ra=Q[0],sa=Q[1],R=(0,l.useState)(G.id),ta=R[0],ua=R[1],S=(0,l.useState)(G.name),va=S[0],wa=S[1],T=(0,l.useState)(!1),xa=T[0],ya=T[1],d=(0,E.Z)("divarLeasingToken"),$="/leasing/?post_token=".concat(d),b=(0,m.cI)({reValidateMode:"onBlur",mode:"onBlur"}),_=b.handleSubmit,e=b.errors,U=b.control,za=b.setValue,Aa=b.clearErrors,Ba=(V=(0,h.Z)(i().mark(function a(){var b;return i().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,(0,B.bm)(d);case 3:fa(b=a.sent),a.next=9;break;case 7:a.prev=7,a.t0=a.catch(0);case 9:case"end":return a.stop()}},a,null,[[0,7]])})),function(){return V.apply(this,arguments)}),aa=(W=(0,h.Z)(i().mark(function a(){var b;return i().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return ca((0,C.U5)({type:"typeOfCheck",message:{id:na,name:pa}})),ca((0,C.U5)({type:"numberOfCheck",message:{id:ta,name:va}})),za("typeOfCheck",{id:g.id,name:g.name}),za("numberOfCheck",{id:G.id,name:G.name}),a.prev=4,ga(!0),ha(""),a.next=9,(0,A.BP)({trackingCode:ea,typeOfCheck:na,numberOfCheck:ta});case 9:(b=a.sent).trackingCode&&ba.push({pathname:"/leasing/long-term/leasing-result",query:H({},b)},"/leasing/leasing-result"),a.next=17;break;case 13:a.prev=13,a.t0=a.catch(4),ga(!1),ha(a.t0.message);case 17:case"end":return a.stop()}}
1,a,null,[[4,13]])})),function(){return W.apply(this,arguments)}),Ca=function(){ka(da.typeOfCheck),sa(da.numberOfCheck)};return(0,l.useEffect)(function(){!Boolean(ea)&&d&&ba.push($)},[$,d]),(0,l.useEffect)(function(){d&&Ba()},[d]),(0,l.useEffect)(function(){Ca(),g.id&&za("typeOfCheck",{id:g.id,name:g.name}),g.id&&za("numberOfCheck",{id:G.id,name:G.name})},[]),(0,F.jsxs)("div",{className:y()["main-container"],children:[(0,F.jsx)(q.Z,{title:"خرید اقساطی بلند مدت خودرو",backBtn:function(){return ba.push("/leasing/long-term/location-information")},className:y().header}),(0,F.jsx)("div",{className:"container",children:(0,F.jsx)(o.Z,{layoutTitle:"خرید اقساطی بلند مدت خودرو",backButtonFunction:function(){return ba.push("/leasing/long-term/location-information")},rightChild:(0,F.jsx)("div",{className:y().content,children:(0,F.jsxs)("div",{className:y().content__box,children:[a&&(0,F.jsx)(x.Z,{image:null==a?void 0:a.imageUrl,title:a.carBrand+" "+a.carModel,imageWidth:71,imageHeight:39,detail:(null==a?void 0:a.gearBox)+" "+(null==a?void 0:a.carType)}),(0,F.jsx)(r.Z,{currentStep:3,maxSteps:3,wizardHeader:"اطلاعات چک",wizardSubheader:"",className:y().wizard,showCheck:!1}),(0,F.jsx)("div",{className:y().content__desc,children:"اطلاعات دسته چک خود را وارد کنید."}),(0,F.jsxs)("form",{onSubmit:_(aa),className:y().form,children:[(0,F.jsxs)("div",{className:"".concat(y().form__item," mt-4 "),children:[(0,F.jsx)(m.Qr,{name:"typeOfCheck",control:U,rules:{required:!0},defaultValue:"",render:function(){return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(u.Z,{placeholder:"انتخاب نوع دسته چک",leftIcon:(0,F.jsx)(v.Z,{name:"chevronletf",fontSize:16,color:e.typeOfCheck?z().color_youngBlood_5:z().color_carbon_3}),hasError:e.typeOfCheck,onClick:function(){return ma(!0)},value:pa,animatable:!0,inputmode:"none",readOnly:!0}),ja&&(0,F.jsx)(w.Z,{title:"انتخاب نوع دسته چک",description:"نوع دسته چک خود را انتخاب کنید.",open:la,close:function(){return ma(!1)},list:ja,selectItemId:function(a){oa(a),za("typeOfCheck",{id:a}),Aa("typeOfCheck")},selectItemText:function(a){qa(a)},selectedItem:na,backButton:function(){return ma(!1)},closeClassName:y()["close-modal"],returnArrowClassName:y()["back-modal"]})]})}}),e.typeOfCheck&&(0,F.jsx)(s.Z,{colorType:"error",text:"نوع دسته چک خود را انتخاب کنید.",iconName:"information"}),(0,F.jsx)(p.z,{buttonType:"arrowlink",type:"button",label:"راهنمای چک صیادی",onClick:function(){return ia(!0)},arrowLinkIconSize:12,className:y()["info-button"]})]}),(0,F.jsxs)("div",{className:"".concat(y().form__item," mt-3 mb-4"),children:[(0,F.jsx)(m.Qr,{name:"numberOfCheck",control:U,rules:{required:!0},validation:!!e.numberOfCheck,defaultValue:"",render:function(){return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(u.Z,{placeholder:"تعداد برگ چک خام",leftIcon:(0,F.jsx)(v.Z,{name:"chevronletf",fontSize:16,color:e.numberOfCheck?z().color_youngBlood_5:z().color_carbon_3}),hasError:e.numberOfCheck,onClick:function(){return ya(!0)},value:va,animatable:!0,inputmode:"none",readOnly:!0}),ra&&(0,F.jsx)(w.Z,{title:"انتخاب تعداد برگِ چک خام",description:"تعداد برگِ چک خام دسته چک خود را انتخاب کنید.",open:xa,close:function(){return ya(!1)},list:ra,selectItemId:function(a){ua(a),za("numberOfCheck",{id:a}),Aa("numberOfCheck")},selectItemText:function(a){wa(a)},selectedItem:ta,backButton:function(){return ya(!1)},closeClassName:y()["close-modal"],returnArrowClassName:y()["back-modal"]})]})}}),e.numberOfCheck&&(0,F.jsx)(s.Z,{colorType:"error",text:"تعداد برگ چک خام خود را انتخاب کنید.",iconName:"information"}),(0,F.jsx)(s.Z,{colorType:"default",text:" با توجه به تعداد برگ‌ چک صیادی که در اختیار دارید، بهترین شرایط به شما پیشنهاد می‌شود.",iconName:"information",size:12})]}),(0,F.jsxs)("div",{className:y()["button-container"],children:[(0,F.jsx)(s.Z,{colorType:"error",text:Y,iconName:"information"}),(0,F.jsx)(p.z,{type:"submit",label:"تایید و ثبت نهایی ",block:!0,isLoading:{loadingStatus:X}})]})]}),(0,F.jsx)(t.Z,{title:"راهنمای چک صیادی",data:D,openModal:Z,closeModal:function(){return ia(!1)},backModal:function(){return ia(!1)},closeClass:y()["close-modal"],returnArrowClass:y()["back-modal"]})]})}),leftChild:(0,F.jsxs)("div",{className:"".concat(y().box," py-9 px-8"),children:[(0,F.jsx)(k.default,{src:"/next-statics/images/cars-for-sale/detail/leasing-document.svg",width:320,height:250,alt:"leasing"}),(0,F.jsxs)("div",{className:y().box__info,children:[(0,F.jsx)("div",{className:y().box__title,children:"نصفش با تو نصفش با همراه مکانیک!"}),(0,F.jsx)("div",{className:y().box__description,children:"جهت خرید اقساط خودرو با همراه ‌مکانیک فرم مقابل را پر کنید."})]})]}),mainContainerClassName:y()["funnel-layout"],rightContainerContentClassName:y()["right-content"]})})]})}},20068:function(h,d,a){"use strict";a.d(d,{bm:function(){return j},UQ:function(){return k}});var e,f,b=a(50029),g=a(87794),c=a.n(g),i=a(85680),j=(e=(0,b.Z)(c().mark(function a(b){var d,e;return c().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,i.Z.get("/businessorder/leasing/car-details?token="+b);case 2:return e=(d=a.sent).data,a.abrupt("return",e);case 5:case"end":return a.stop()}},a)})),function(a){return e.apply(this,arguments)}),k=(f=(0,b.Z)(c().mark(function a(b){var d,e;return c().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,i.Z.post("/businessorder/submit-leasing",b,{isAuthenticated:!0});case 2:return e=(d=a.sent).data,a.abrupt("return",e);case 5:case"end":return a.stop()}},a)})),function(a){return f.apply(this,arguments)})},54438:function(a,b,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/leasing/long-term/check-information",function(){return c(64717)}])},81531:function(a){a.exports={"main-container":"checkInformation_main-container__K6U9C",header:"checkInformation_header__sYOX9",wizard:"checkInformation_wizard__CKl2f",box:"checkInformation_box__wSz_1",box__info:"checkInformation_box__info__xtV6W",box__title:"checkInformation_box__title__9n_L0",box__description:"checkInformation_box__description__pLpF3","title-card":"checkInformation_title-card__feRNn","title-card__title":"checkInformation_title-card__title__h_UUb","title-card__sub-title":"checkInformation_title-card__sub-title__99igs",content:"checkInformation_content__aVxtS",content__box:"checkInformation_content__box__zLnKU",content__desc:"checkInformation_content__desc__nqI18","button-container":"checkInformation_button-container__raRjW","funnel-layout":"checkInformation_funnel-layout__fBqos","close-modal":"checkInformation_close-modal__1Zshf","back-modal":"checkInformation_back-modal__4X6Jg","info-button":"checkInformation_info-button__XbYsP"}}},function(a){a.O(0,[5935,9238,2283,4251,8038,9774,2888,179],function(){return a(a.s=54438)}),_N_E=a.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.