import{bo as a,__tla as r}from"./index.3b792103.js";import{s as _,__tla as o}from"./order.aa8bb685.js";let s,i=Promise.all([(()=>{try{return r}catch{}})(),(()=>{try{return o}catch{}})()]).then(async()=>{s=a("order",{state:()=>({payment:{pay_id:null,pay_code:"",pay_fee:0,extra_data:{}},shipping:{shipping_id:null,shipping_code:"",shipping_fee:0,extra_data:{}},goodsItems:[],discount:0,extension_code:""}),getters:{total_amount(){return this.sum_amount+this.shipping.shipping_fee+this.payment.pay_fee-this.discount},sum_amount(){return this.goodsItems.reduce((t,e)=>t+e.goods_price*e.goods_number,0)}},actions:{async initShippingData(t){this.shipping.extra_data={type:t.type,store_id:t.store_id,store_name:t.store_name,store_address:t.store_address,store_tel:t.store_tel}},async setDefaultStoreID(t){return(await _(t.store_id)).code!==200?!1:(this.shipping.extra_data={type:t.type,store_id:t.store_id,store_name:t.store_name,store_address:t.store_address,store_tel:t.store_tel},!0)}}})});export{i as __tla,s as u};