/* empty css            */import{d as m,c as o,o as d,a as _,b as s,u as a,m as b,t as l,h as p,F as u,r as v,f,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:"mb-1"},N={class:"mb-1"},h={class:"mb-1"},T={class:"fs-10"},V={key:0},B={class:"title"},C={key:0,class:"props"},I={key:0,class:"d-inline-block"},S={key:1,class:"d-inline-block"},j={class:"flex-between mt-1"},z={class:"flex-between"},D={class:"fs-12 bold mt-2"},E={class:"flex-between"},L=m({__name:"ThermalSalesFactor",props:{store:{},order:{},consignmentItems:{},user_national_number:{}},setup($){const c=()=>{window.print()};return(t,e)=>(d(),o(u,null,[_(a(b),{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",F,"فروشنده: "+l(t.store.name),1),s("div",N,"تاریخ: "+l(t.order.jalali_created_at[1]),1),s("div",h,"کد سفارش: "+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",T,[s("div",null,"نام: "+l(t.order.user.get_name),1),t.user_national_number!=null?(d(),o("div",V,"کد ملی: "+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)),(d(!0),o(u,null,v(t.consignmentItems,n=>(d(),o("div",{key:n.id,class:"item-row fs-10"},[s("div",B,l(n.product?n.product.title:n.title),1),n.get_props.length?(d(),o("div",C,[(d(!0),o(u,null,v(n.get_props,r=>(d(),o("span",{key:r.name},[f(l(r.name)+": ",1),r.type==="color"?(d(),o("span",I,l(r.value.label),1)):(d(),o("span",S,l(r.value),1))]))),128))])):p("",!0),s("div",j,[s("span",null,"تعداد: "+l(n.count),1),s("span",null,"قیمت واحد: "+l(a(i)(n.price+n.discount))+" تومان",1)]),s("div",z,[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",D,[s("div",E,[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=g(L,[["__scopeId","data-v-02597d8b"]]);export{G as default};
