PageSourceSearch

https://iranecar.com/_nuxt/ByOCK8lA.js

js iranecar.com collected 2026-10-05 02:02:56 UTC 9,472 bytes, 1 lines download raw bytes

1import{_ as T}from"./DmEB-bXL.js";import{_ as P}from"./DlAUqK2U.js";import{c as d,o,i as e,j as s,t as g,B as V,F as $,a as I,h as B,b as i,r as x,n as E,S as G,z as D,C as J,d as M,k as z}from"./CInxtUI7.js";import{_ as N}from"./Bl7s21py.js";import{_ as F,a as K}from"./DyrphhLp.js";import{_ as W}from"./kY-fc0gm.js";import{_ as X}from"./Cdei-m-4.js";import{_ as Q}from"./CMtfh8gU.js";import{u as Y}from"./BHZ_7wDh.js";import{g as H}from"./_MmH6BCU.js";const q={},Z={class:"flex w-full flex-col items-center justify-center px-2 pb-24 pt-24 lg:px-0 lg:pb-8"},ee={class:"flex w-full flex-col gap-8 lg:container 2xl:px-16"},te={class:"flex justify-end pt-4"},ae={class:"flex flex-col gap-8 lg:flex-row"},se={class:"flex flex-col items-center justify-start gap-8 lg:items-start"};function le(l,t){const a=T;return o(),d("main",Z,[e("div",ee,[e("section",te,[s(a,{id:"backButton",customClass:"!h-12 !w-36"})]),e("div",ae,[s(a,{id:"userInfoProfile",customClass:"!h-60"}),s(a,{id:"userInfoProfile",customClass:"!h-60"})]),s(a,{id:"orderInfo",customClass:"!h-[420px]"}),s(a,{id:"invoice",customClass:"!h-80"}),s(a,{id:"paymentGatewaySelector",customClass:"!h-96"}),e("div",se,[s(a,{id:"captchaCheckbox",customClass:"!h-20 !w-80"}),e("div",null,[s(a,{id:"handleSubmitOrder",customClass:"!h-12 !w-64"})])])])])}const oe=P(q,[["render",le]]),ne={class:"flex w-full items-center justify-between pt-2"},re={class:"text-[14px] text-brand-gray"},ce={class:"text-[14px] text-black"},ie={__name:"InfoRow",props:{label:{type:String,default:""},value:{type:[String,Number],default:""}},setup(l){return(t,a)=>(o(),d("section",ne,[e("p",re,g(l.label),1),e("p",ce,g(l.value),1)]))}},de={class:"grid w-full grid-cols-1 md:grid-cols-2 gap-8 farsi-num"},ue={class:"flex flex-col items-start justify-start border-2 border-brand-gray-lighter p-6 rounded-xl"},pe={class:"flex w-full flex-col gap-2"},me={__name:"index",props:{data:{type:Object,default:()=>{}}},setup(l){const t=l,a=V(()=>({userInfo:{title:"اطلاعات مشتری",data:[{label:"نام",value:t.data.customerInfo.firstName},{label:"نام خانوادگی",value:t.data.customerInfo.lastName},{label:"نام پدر",value:t.data.customerInfo.fatherName},{label:"شماره شناسنامه",value:t.data.customerInfo.certificateNumber},{label:"کد ملی",value:t.data.customerInfo.nationalCode}]},userCallInfo:{title:"اطلاعات تماس",data:[{label:"شماره تلفن ثابت",value:t.data.contactInfo.phoneNumber},{label:"شماره تلفن همراه",value:t.data.contactInfo.mobile},{label:"استان و شهر محل سکونت",value:t.data.contactInfo.city},{label:"آدرس",value:t.data.contactInfo.address},{label:"کد پستی",value:t.data.contactInfo.postalCode}]}}));return(c,_)=>{const u=N,m=ie;return o(),d("section",de,[(o(!0),d($,null,I(i(a),f=>(o(),d("div",ue,[s(u,{title:f.title},null,8,["title"]),e("div",pe,[(o(!0),d($,null,I(f.data,(n,k)=>(o(),B(m,{key:k,label:n.label,value:n.value},null,8,["label","value"]))),128))])]))),256))])}}},fe={class:"flex flex-col items-start justify-start gap-8 rounded-xl border-2 border-brand-gray-lighter p-6 farsi-num"},_e={class:"grid w-full grid-cols-1 border-b-4 border-dashed border-brand-gray-lighter pb-8 lg:grid-cols-6"},xe={class:"col-span-1 flex flex-col items-start lg:items-center justify-center gap-4"},ve=["src"],be={class:"text-sm text-brand-black"},ge={class:"col-span-5 grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3"},he={class:"flex flex-col justify-start"},ye={class:"flex w-full flex-col justify-start pt-6"},Ae={class:"flex flex-col items-start gap-1 pr-9 pt-0 farsi-num"},ke={class:"text-[14px] text-brand-black"},Se={class:"text-[14px] text-brand-black"},we={__name:"index",props:{data:{type:Array,default:[]}},setup(l){const t=l,a=x([{key:"saleType",value:{value:t.data.order.saleType,title:"نوع فروش"}},{key:"salePlanNumber",value:{value:t.data.order.salePlanNumber,title:"شماره بخشنامه"}},{key:"color",value:{value:t.data.order.color,title:"رنگ"}},{key:"insurer",value:{value:t.data.order.insurer,title:"بیمه گر"}}
1,{key:"options",value:{value:t.data.order.options,title:"تجهیزات"}},{key:"services",value:{value:t.data.order.services,title:"بسته خدماتی"}}]);return(c,_)=>{const u=N,m=F;return o(),d("section",fe,[s(u,{title:"اطلاعات سفارش"}),e("div",_e,[e("div",xe,[e("img",{class:"w-36",src:l.data.order.imageUrl,alt:""},null,8,ve),e("p",be,g(l.data.order.name),1)]),e("div",ge,[(o(!0),d($,null,I(i(a),f=>(o(),B(m,{key:f.key,option:f.value},null,8,["option"]))),128))])]),e("div",he,[s(u,{title:"نمایندگی منتخب"}),e("div",ye,[_[0]||(_[0]=e("div",{class:"flex flex-row items-center gap-2"},[e("img",{src:W,alt:""}),e("p",{class:"text-[14px] text-brand-black"},"نمایندگی انتخاب شده")],-1)),e("div",Ae,[e("p",ke,g(l.data.dealer.title)+" ( "+g(l.data.dealer.code)+" ) ",1),e("p",Se,g(l.data.dealer.address),1)])])])])}}},Ce={class:"flex flex-col items-start justify-start gap-8 rounded-xl border-2 border-brand-gray-lighter p-6"},$e={class:"flex w-full flex-col gap-4"},Ie={class:"grid grid-cols-2 sm:grid-cols-4 lg:grid-cols-6 xl:grid-cols-8 gap-4 2xl:gap-4"},Be=["onClick"],je=["src"],Ue={__name:"PaymentGatewaySelector",props:{options:{type:Array,default:[]},label:{type:String,default:"انتخاب درگاه پرداخت"},title:{type:String,default:"درگاه بانک مورد نظر خود را انتخاب کنید."}},emits:"modelUpdate",setup(l,{emit:t}){const a=t,c=x(null),_=u=>{c.value===u?c.value=null:c.value=u,a("modelUpdate",c.value)};return(u,m)=>{const f=N;return o(),d("div",Ce,[s(f,{title:l.label},null,8,["title"]),e("div",$e,[e("div",Ie,[(o(!0),d($,null,I(l.options,n=>(o(),d("div",{onClick:k=>_(n),class:"flex cursor-pointer flex-col items-center justify-start gap-2"},[e("div",{class:E(["rounded-[5px] border-2 p-4 transition-all duration-300",i(c)===n?"border-brand-blue-active":"border-brand-gray-lighter"])},[e("img",{src:n.icon,alt:"لوگو بانک"},null,8,je)],2),e("span",{class:E(["text-[13px] transition-all duration-300",i(c)===n?"text-brand-blue-active":"text-brand-gray-light"])},g("بانک "+n.title),3)],8,Be))),256))])])])}}},Ne="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAASCAYAAAC9+TVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADESURBVHgBtZOBDcIgEEW/pgN0EzsCG+gGuoFuUDqJbiJuoBM4Qt1AOXsXiL1SUuJLftLmLp8PB0A+LWsxjdebVWR0+KtRpTTWXgbDFjTuXLP83/02HL36aLUcmTjJmeMSzuvh9cKYLULKjnu/tOza81am2EcJbFygM3hKtCUGxI4L14RBkzKoEPZ3S5jQRGQKVjMRaqSxU4U1r0JsUAAlkLthUMAJeSNWWUXfFwxjJBzSBy09TitYhDszJ6slEeYe4CjJB+hZRyKqWCGOAAAAAElFTkSuQmCC",Ee={key:1,class:"flex w-full flex-col items-center justify-center px-2 pb-24 pt-24 lg:px-0 lg:pb-8"},Ve={class:"flex w-full flex-col gap-8 lg:container 2xl:px-16"},Le={class:"flex justify-end pt-4"},Re={class:"flex flex-col items-center justify-start gap-8 lg:items-start"},Oe=["disabled"],Xe={__name:"[id]",setup(l){G({title:"صورتحساب",meta:[{name:"description",content:"صورتحساب"}]});const t=D(),a=Y(),c=x(!1);J(()=>{f()});const{$businessPartner:_}=M(),u=x(!0),m=x(null),f=async()=>{try{const p=await _.getOrder(t.params.id);m.value=p.data,u.value=!1}catch(p){console.error("خطا در دریافت اطلاعات سفارش:",p)}},n=x({token:null,key:1}),k=p=>{n.value.token=p},L=()=>{n.value.key++,n.value.token=null},S=x(null),j=x(!1),R=async()=>{if(S.value){j.value=!0;try{const p={orderId:t.params.id,bankGatewayId:S.value.id},r=H(n.value.token),y=await _.confirm(p,r);if(y.isSuccess){a.setOrderId(t.params.id);const w=document.createElement("div");w.innerHTML=y.data.content;const C=w.querySelector("form"),U=C.getAttribute("action"),v=document.createElement("form");v.method=y.data.method,v.action=U,Array.from(C.elements).forEach(A=>{const h=document.createElement("input");h.type=A.type,h.name=A.name,h.value=A.value,v.appendChild(h)}),document.body.appendChild(v),v.submit()}}catch(p){console.error("خطا در ایجاد معامله:",p)}finally{j.value=!1}}},O=V(()=>!n.value.token||!S.value||j.value||!c.value);return(p,r)=>{const y=oe,w=me,C=we,U=K,v=Ue,A=X,h=Q;return i(u)?(o(),B(y,{key:0})):(o(),d("main",Ee,[e("div",Ve,[e("section",Le,[e("button",{onClick:r[0]||(r[0]=b=>p.$router.back()),class:"flex flex-row items-center gap-1"},r[5]||(r[5]=[e("span",{class:"text-lg"},"بازگشت",-1),e("img",{src:Ne,alt:"بازگشت"},null,-1)]))]),s(w,{data:i(m)},null,8,["data"]),s(C,{data:i(m)},null,8,["data"]),s(U,{data:i(m).invoice},null,8,["data"]),s(v,{options:i(m).bankGateways,onModelUpdate:r[1]||(r[1]=b=>S.value=b)},null,8,["options"]),e("div",Re,[(o(),B(A,{key:i(n).key,onVerify:r[2]||(r[2]=b=>k(b)),onExpired:r[3]||(r[3]=b=>L())})),s(h,{class:"px-2",modelValue:i(c),"onUpdate:modelValue":r[4]||(r[4]=b=>z(c)?c.value=b:null),label:"اینجانب متعهد می‌شوم که تمام اØ
1·Ù„اعات فوق را بدرستی وارد نموده ام و در صورتی که اطلاعات فوق ناقص و یا فاقد صحت باشد، اساسا قراردادی بین متقاضی و ایرانی‌کار منعقد نشده و ایرانی کار تعهدی در خصوص واگذاری خودرو ندارد و مجاز به عودت وجه به حساب مبدا خواهد بود."},null,8,["modelValue"]),e("div",null,[e("button",{onClick:R,class:"btn-tritery h-12 rounded-[10px] px-20 text-sm",disabled:i(O)}," تایید و پرداخت ",8,Oe)])])])]))}}};export{Xe as default};

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.