/* empty css            */import{d as m,c as d,o,a as _,b as s,u as a,m as f,t as l,h as p,F as u,r as v,f as b,z as i,_ as g}from"./app-BidmlC59.js";const k={class:"thermal-container px-3"},y={class:"center fs-10 mt-2"},w={class:"fs-10"},F={class:"fs-10"},N={key:0},T={class:"title"},V={key:0,class:"props"},B={key:0,class:"d-inline-block"},C={key:1,class:"d-inline-block"},I={class:"flex-between mt-1"},S={class:"flex-between"},h={class:"fs-12 bold mt-2"},j={class:"flex-between"},z=m({__name:"ThermalSalesFactor",props:{order:{},consignmentItems:{},user_national_number:{}},setup(D){const c=()=>{window.print()};return(t,e)=>(o(),d(u,null,[_(a(f),{title:"فاکتور حرارتی - "+t.order.uuid},null,8,["title"]),s("div",k,[e[2]||(e[2]=s("div",{class:"center bold fs-14 mt-4"},"فاکتور فروش",-1)),s("div",y,l(t.$page.props.appFullName),1),e[3]||(e[3]=s("div",{class:"divider"},null,-1)),s("div",w,[s("div",null,"تاریخ: "+l(t.order.jalali_created_at[1]),1),s("div",null,"کد سفارش: "+l(t.order.uuid),1)]),e[4]||(e[4]=s("div",{class:"divider"},null,-1)),e[5]||(e[5]=s("div",{class:"bold fs-12 mb-1"},"مشخصات خریدار",-1)),s("div",F,[s("div",null,"نام: "+l(t.order.user.get_name),1),t.user_national_number!=null?(o(),d("div",N,"کد ملی: "+l(t.user_national_number),1)):p("",!0),s("div",null,"شهر: "+l(t.order.get_address.address.city),1),s("div",null,"آدرس: "+l(t.order.get_address.address.full_address),1)]),e[6]||(e[6]=s("div",{class:"divider"},null,-1)),e[7]||(e[7]=s("div",{class:"bold fs-12 mb-1"},"اقلام سفارش",-1)),(o(!0),d(u,null,v(t.consignmentItems,n=>(o(),d("div",{key:n.id,class:"item-row fs-10"},[s("div",T,l(n.product?n.product.title:n.title),1),n.get_props.length?(o(),d("div",V,[(o(!0),d(u,null,v(n.get_props,r=>(o(),d("span",{key:r.name},[b(l(r.name)+": ",1),r.type==="color"?(o(),d("span",B,l(r.value.label),1)):(o(),d("span",C,l(r.value),1))]))),128))])):p("",!0),s("div",I,[s("span",null,"تعداد: "+l(n.count),1),s("span",null,"قیمت واحد: "+l(a(i)(n.price+n.discount))+" تومان",1)]),s("div",S,[s("span",null,"تخفیف: "+l(a(i)(n.discount*n.count)),1),s("span",null,"مبلغ نهایی: "+l(a(i)(n.price*n.count)),1)]),e[0]||(e[0]=s("div",{class:"thin-divider"},null,-1))]))),128)),s("div",h,[s("div",j,[e[1]||(e[1]=s("span",null,"جمع کل:",-1)),s("span",null,l(a(i)(t.order.get_total_bill.awaiting.price))+" تومان",1)])]),e[8]||(e[8]=s("div",{class:"divider"},null,-1)),e[9]||(e[9]=s("div",{class:"center fs-10 mt-2"},"با تشکر از خرید شما",-1)),s("button",{class:"print-btn",onClick:c},"چاپ")])],64))}}),$=g(z,[["__scopeId","data-v-71e0646f"]]);export{$ as default};
