"use strict";require("../common/vendor.js");const e=require("../utils/http.js");exports.payOrder=r=>{return t=exports,o=null,n=function*(){return yield e.httpPost("/order/pay/"+r,{})},new Promise(((e,r)=>{var s=e=>{try{a(n.next(e))}catch(t){r(t)}},u=e=>{try{a(n.throw(e))}catch(t){r(t)}},a=r=>r.done?e(r.value):Promise.resolve(r.value).then(s,u);a((n=n.apply(t,o)).next())}));var t,o,n};