1import{Dt as e,Kt as t,Xt as n,ot as r,qt as i,wt as a}from"./BuilderType.context-BFA6N7DT.js";import{_ as o,g as s,v as c}from"./GetCurrency.util-DdfKARlw.js";var l=class{constructor(e){if(this.courier_started_at=``,this.delivery_round=``,this.estimated_travel_time=0,this.orders_before_yours=0,this.other_orders=[],this.undelivered_orders_before_yours=0,!e)return;let t=e;a(t,this),this.center=new u(t.center),this.order=new d(t.order),t.other_orders instanceof Array&&(this.other_orders=t.other_orders.map(e=>new d(e)))}},u=class{constructor(e){this.coord_lat=``,this.coord_lng=``,this.lat=0,this.lng=0,e&&(a(e,this),this.init())}init(){this.lat=parseFloat(this.coord_lat),this.lng=parseFloat(this.coord_lng)}},d=class extends u{constructor(e){super(),this.accepted_at=``,this.archived_at=``,this.auto_done=!1,this.auto_kitchen=!1,this.bell=``,this.change_status_at=``,this.city=``,this.comment=``,this.counter=``,this.courier_turn_id=``,this.created_at=``,this.delay_at=``,this.delivery_price=0,this.delivery_round_id=``,this.descriptor=``,this.distance=``,this.door=``,this.email=``,this.estimated_travel_time=``,this.expected_at=``,this.first_name=``,this.floor=``,this.house_number=``,this.id=``,this.is_email_sent=!1,this.is_paid=!1,this.is_preorder=!1,this.is_revoked=!1,this.is_round_started=!1,this.last_name=``,this.location=``,this.order_scheme_id=``,this.payment_method=``,this.products_price=0,this.progress=``,this.real_travel_time=``,this.restaurant_id=``,this.sequence=``,this.shadow_customer_id=``,this.show_at=``,this.stand_by=!1,this.stand_by_at=``,this.status=`order_created`,this.street=``,this.synced_at=``,this.synched_status_1=``,this.synched_status_2=``,this.tel=``,this.total_price=0,this.updated_at=``,this.zipcode=``,this.statusIndex=0,e&&(a(e,this),this.init(),this.setStatusIndex())}setStatusIndex(){switch(this.status){case`order_accepted`:this.statusIndex=1;break;case`in_progress`:this.statusIndex=2;break;case`done`:this.statusIndex=3;break;case`assigned_to_courier`:this.statusIndex=4;break;case`courier_started`:this.statusIndex=5;break;case`order_delivered`:this.statusIndex=6;break;default:this.statusIndex=0}}},f=class extends c{constructor(t){var n,r,i;super(t),this.product={name:``,id:``,image:new s},t&&(this.product.image=new s((n=t.product)==null?void 0:n.image),this.product.name=e((r=t.product)==null?void 0:r.name),this.product.id=e((i=t.product)==null?void 0:i.id))}},p=class extends n{static loadOrderById(e,n,a){var s=this;return t(function*(){let t=yield r.instance(i.DEFAULT).get(`${s.v3url()}/orders/${e}?token=${n}`);return new o(t,a)})()}static loadLCTOrderById(e){return t(function*(){return new l(yield r.instance(i.LCT).get(`/api/orders/${e}/public`))})()}static loadCustomerOrders(e,n){var a=this;return t(function*(){return(yield r.instance(i.DEFAULT).get(`${a.customers}/orders?page=${e}&limit=5`)).map(e=>new o(e,n))})()}static loadFailedCustomerOrders(e,n){var a=this;return t(function*(){return(yield r.instance(i.DEFAULT).get(`${a.customers}/orders/failed?page=${e}&limit=5`)).map(e=>new o(e,n))})()}static loadLastSuccededOrder(e){var n=this;return t(function*(){let t=yield r.instance(i.DEFAULT).get(`${n.customers}/orders/last`);return t?new o(t,e):null})()}static loadOrderItems(e){var n=this;return t(function*(){return(yield r.instance(i.DEFAULT).get(`${n.customers}/orders/items?page=${e}&limit=4`)).map(e=>new f(e))})()}};export{u as n,p as t};
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.