gap-nodejs-sdk 1.0.19 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base_type.d.ts +1 -1
- package/dist/base_type.d.ts.map +1 -1
- package/dist/gap-sdk.js +1 -1
- package/dist/pos_client_api/1.0.0/models/income.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/models/income.js +11 -1
- package/dist/pos_client_api/1.0.0/types/request/order.d.ts +4 -4
- package/dist/pos_client_api/1.0.0/types/request/order.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/check_in.d.ts +8 -8
- package/dist/pos_client_api/1.0.0/types/response/check_in.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/check_out.d.ts +2 -2
- package/dist/pos_client_api/1.0.0/types/response/check_out.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/customer.d.ts +2 -2
- package/dist/pos_client_api/1.0.0/types/response/customer.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/income.d.ts +13 -6
- package/dist/pos_client_api/1.0.0/types/response/income.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/meta.d.ts +2 -2
- package/dist/pos_client_api/1.0.0/types/response/meta.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/order.d.ts +11 -11
- package/dist/pos_client_api/1.0.0/types/response/order.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/payroll.d.ts +4 -4
- package/dist/pos_client_api/1.0.0/types/response/payroll.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/base_type.d.ts
CHANGED
package/dist/base_type.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base_type.d.ts","sourceRoot":"","sources":["../src/base_type.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACrB,EAAE,UAAU;CACf;AAED,oBAAY,SAAS;IACjB,SAAS,eAAe;CAC3B;AAED,oBAAY,SAAS;IACjB,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;CACpB;AAED,iCAAiC;AACjC,oBAAY,QAAQ;IAChB,OAAO,YAAY;IACnB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,MAAM,WAAW;CACpB;AAED,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,CAAC,OAAO,MAAM,eAAe,GAAG;IAClC,MAAM,EAAE,GAAG,CAAA;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,CAAC,OAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"base_type.d.ts","sourceRoot":"","sources":["../src/base_type.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACrB,EAAE,UAAU;CACf;AAED,oBAAY,SAAS;IACjB,SAAS,eAAe;CAC3B;AAED,oBAAY,SAAS;IACjB,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;CACpB;AAED,iCAAiC;AACjC,oBAAY,QAAQ;IAChB,OAAO,YAAY;IACnB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,MAAM,WAAW;CACpB;AAED,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,CAAC,OAAO,MAAM,eAAe,GAAG;IAClC,MAAM,EAAE,GAAG,CAAA;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,CAAC,OAAO,MAAM,QAAQ,CAAC,CAAC,IAAI;KAC7B,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;CAC9B,CAAC"}
|
package/dist/gap-sdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.GapSdk=e():t.GapSdk=e()}(self,(()=>(()=>{var t={669:(t,e,i)=>{t.exports=i(609)},448:(t,e,i)=>{"use strict";var n=i(867),o=i(26),l=i(372),u=i(327),r=i(97),d=i(109),s=i(985),a=i(874),c=i(648),v=i(644),p=i(205);t.exports=function(t){return new Promise((function(e,i){var h,f=t.data,m=t.headers,_=t.responseType;function y(){t.cancelToken&&t.cancelToken.unsubscribe(h),t.signal&&t.signal.removeEventListener("abort",h)}n.isFormData(f)&&n.isStandardBrowserEnv()&&delete m["Content-Type"];var g=new XMLHttpRequest;if(t.auth){var b=t.auth.username||"",x=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";m.Authorization="Basic "+btoa(b+":"+x)}var O=r(t.baseURL,t.url);function w(){if(g){var n="getAllResponseHeaders"in g?d(g.getAllResponseHeaders()):null,l={data:_&&"text"!==_&&"json"!==_?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:n,config:t,request:g};o((function(t){e(t),y()}),(function(t){i(t),y()}),l),g=null}}if(g.open(t.method.toUpperCase(),u(O,t.params,t.paramsSerializer),!0),g.timeout=t.timeout,"onloadend"in g?g.onloadend=w:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(w)},g.onabort=function(){g&&(i(new c("Request aborted",c.ECONNABORTED,t,g)),g=null)},g.onerror=function(){i(new c("Network Error",c.ERR_NETWORK,t,g,g)),g=null},g.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",n=t.transitional||a;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),i(new c(e,n.clarifyTimeoutError?c.ETIMEDOUT:c.ECONNABORTED,t,g)),g=null},n.isStandardBrowserEnv()){var E=(t.withCredentials||s(O))&&t.xsrfCookieName?l.read(t.xsrfCookieName):void 0;E&&(m[t.xsrfHeaderName]=E)}"setRequestHeader"in g&&n.forEach(m,(function(t,e){void 0===f&&"content-type"===e.toLowerCase()?delete m[e]:g.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(g.withCredentials=!!t.withCredentials),_&&"json"!==_&&(g.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&g.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(h=function(t){g&&(i(!t||t&&t.type?new v:t),g.abort(),g=null)},t.cancelToken&&t.cancelToken.subscribe(h),t.signal&&(t.signal.aborted?h():t.signal.addEventListener("abort",h))),f||(f=null);var k=p(O);k&&-1===["http","https","file"].indexOf(k)?i(new c("Unsupported protocol "+k+":",c.ERR_BAD_REQUEST,t)):g.send(f)}))}},609:(t,e,i)=>{"use strict";var n=i(867),o=i(849),l=i(321),u=i(185),r=function t(e){var i=new l(e),r=o(l.prototype.request,i);return n.extend(r,l.prototype,i),n.extend(r,i),r.create=function(i){return t(u(e,i))},r}(i(546));r.Axios=l,r.CanceledError=i(644),r.CancelToken=i(972),r.isCancel=i(502),r.VERSION=i(288).version,r.toFormData=i(675),r.AxiosError=i(648),r.Cancel=r.CanceledError,r.all=function(t){return Promise.all(t)},r.spread=i(713),r.isAxiosError=i(268),t.exports=r,t.exports.default=r},972:(t,e,i)=>{"use strict";var n=i(644);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var i=this;this.promise.then((function(t){if(i._listeners){var e,n=i._listeners.length;for(e=0;e<n;e++)i._listeners[e](t);i._listeners=null}})),this.promise.then=function(t){var e,n=new Promise((function(t){i.subscribe(t),e=t})).then(t);return n.cancel=function(){i.unsubscribe(e)},n},t((function(t){i.reason||(i.reason=new n(t),e(i.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},o.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},644:(t,e,i)=>{"use strict";var n=i(648);function o(t){n.call(this,null==t?"canceled":t,n.ERR_CANCELED),this.name="CanceledError"}i(867).inherits(o,n,{__CANCEL__:!0}),t.exports=o},502:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:(t,e,i)=>{"use strict";var n=i(867),o=i(327),l=i(782),u=i(572),r=i(185),d=i(97),s=i(875),a=s.validators;function c(t){this.defaults=t,this.interceptors={request:new l,response:new l}}c.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=r(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var i=e.transitional;void 0!==i&&s.assertOptions(i,{silentJSONParsing:a.transitional(a.boolean),forcedJSONParsing:a.transitional(a.boolean),clarifyTimeoutError:a.transitional(a.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(o=o&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var l,d=[];if(this.interceptors.response.forEach((function(t){d.push(t.fulfilled,t.rejected)})),!o){var c=[u,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(d),l=Promise.resolve(e);c.length;)l=l.then(c.shift(),c.shift());return l}for(var v=e;n.length;){var p=n.shift(),h=n.shift();try{v=p(v)}catch(t){h(t);break}}try{l=u(v)}catch(t){return Promise.reject(t)}for(;d.length;)l=l.then(d.shift(),d.shift());return l},c.prototype.getUri=function(t){t=r(this.defaults,t);var e=d(t.baseURL,t.url);return o(e,t.params,t.paramsSerializer)},n.forEach(["delete","get","head","options"],(function(t){c.prototype[t]=function(e,i){return this.request(r(i||{},{method:t,url:e,data:(i||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){function e(e){return function(i,n,o){return this.request(r(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}c.prototype[t]=e(),c.prototype[t+"Form"]=e(!0)})),t.exports=c},648:(t,e,i)=>{"use strict";var n=i(867);function o(t,e,i,n,o){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),i&&(this.config=i),n&&(this.request=n),o&&(this.response=o)}n.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var l=o.prototype,u={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(t){u[t]={value:t}})),Object.defineProperties(o,u),Object.defineProperty(l,"isAxiosError",{value:!0}),o.from=function(t,e,i,u,r,d){var s=Object.create(l);return n.toFlatObject(t,s,(function(t){return t!==Error.prototype})),o.call(s,t.message,e,i,u,r),s.name=t.name,d&&Object.assign(s,d),s},t.exports=o},782:(t,e,i)=>{"use strict";var n=i(867);function o(){this.handlers=[]}o.prototype.use=function(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},97:(t,e,i)=>{"use strict";var n=i(793),o=i(303);t.exports=function(t,e){return t&&!n(e)?o(t,e):e}},572:(t,e,i)=>{"use strict";var n=i(867),o=i(527),l=i(502),u=i(546),r=i(644);function d(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new r}t.exports=function(t){return d(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||u.adapter)(t).then((function(e){return d(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return l(e)||(d(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},185:(t,e,i)=>{"use strict";var n=i(867);t.exports=function(t,e){e=e||{};var i={};function o(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function l(i){return n.isUndefined(e[i])?n.isUndefined(t[i])?void 0:o(void 0,t[i]):o(t[i],e[i])}function u(t){if(!n.isUndefined(e[t]))return o(void 0,e[t])}function r(i){return n.isUndefined(e[i])?n.isUndefined(t[i])?void 0:o(void 0,t[i]):o(void 0,e[i])}function d(i){return i in e?o(t[i],e[i]):i in t?o(void 0,t[i]):void 0}var s={url:u,method:u,data:u,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:d};return n.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=s[t]||l,o=e(t);n.isUndefined(o)&&e!==d||(i[t]=o)})),i}},26:(t,e,i)=>{"use strict";var n=i(648);t.exports=function(t,e,i){var o=i.config.validateStatus;i.status&&o&&!o(i.status)?e(new n("Request failed with status code "+i.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):t(i)}},527:(t,e,i)=>{"use strict";var n=i(867),o=i(546);t.exports=function(t,e,i){var l=this||o;return n.forEach(i,(function(i){t=i.call(l,t,e)})),t}},546:(t,e,i)=>{"use strict";var n=i(867),o=i(16),l=i(648),u=i(874),r=i(675),d={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var a,c={transitional:u,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(a=i(448)),a),transformRequest:[function(t,e){if(o(e,"Accept"),o(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t))return t;if(n.isArrayBufferView(t))return t.buffer;if(n.isURLSearchParams(t))return s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var i,l=n.isObject(t),u=e&&e["Content-Type"];if((i=n.isFileList(t))||l&&"multipart/form-data"===u){var d=this.env&&this.env.FormData;return r(i?{"files[]":t}:t,d&&new d)}return l||"application/json"===u?(s(e,"application/json"),function(t,e,i){if(n.isString(t))try{return(0,JSON.parse)(t),n.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||c.transitional,i=e&&e.silentJSONParsing,o=e&&e.forcedJSONParsing,u=!i&&"json"===this.responseType;if(u||o&&n.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(u){if("SyntaxError"===t.name)throw l.from(t,l.ERR_BAD_RESPONSE,this,null,this.response);throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:i(623)},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){c.headers[t]=n.merge(d)})),t.exports=c},874:t=>{"use strict";t.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},288:t=>{t.exports={version:"0.27.2"}},849:t=>{"use strict";t.exports=function(t,e){return function(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];return t.apply(e,i)}}},327:(t,e,i)=>{"use strict";var n=i(867);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,i){if(!e)return t;var l;if(i)l=i(e);else if(n.isURLSearchParams(e))l=e.toString();else{var u=[];n.forEach(e,(function(t,e){null!=t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),u.push(o(e)+"="+o(t))})))})),l=u.join("&")}if(l){var r=t.indexOf("#");-1!==r&&(t=t.slice(0,r)),t+=(-1===t.indexOf("?")?"?":"&")+l}return t}},303:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},372:(t,e,i)=>{"use strict";var n=i(867);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,i,o,l,u){var r=[];r.push(t+"="+encodeURIComponent(e)),n.isNumber(i)&&r.push("expires="+new Date(i).toGMTString()),n.isString(o)&&r.push("path="+o),n.isString(l)&&r.push("domain="+l),!0===u&&r.push("secure"),document.cookie=r.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}},268:(t,e,i)=>{"use strict";var n=i(867);t.exports=function(t){return n.isObject(t)&&!0===t.isAxiosError}},985:(t,e,i)=>{"use strict";var n=i(867);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function o(t){var n=t;return e&&(i.setAttribute("href",n),n=i.href),i.setAttribute("href",n),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return t=o(window.location.href),function(e){var i=n.isString(e)?o(e):e;return i.protocol===t.protocol&&i.host===t.host}}():function(){return!0}},16:(t,e,i)=>{"use strict";var n=i(867);t.exports=function(t,e){n.forEach(t,(function(i,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=i,delete t[n])}))}},623:t=>{t.exports=null},109:(t,e,i)=>{"use strict";var n=i(867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,i,l,u={};return t?(n.forEach(t.split("\n"),(function(t){if(l=t.indexOf(":"),e=n.trim(t.substr(0,l)).toLowerCase(),i=n.trim(t.substr(l+1)),e){if(u[e]&&o.indexOf(e)>=0)return;u[e]="set-cookie"===e?(u[e]?u[e]:[]).concat([i]):u[e]?u[e]+", "+i:i}})),u):u}},205:t=>{"use strict";t.exports=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}},713:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},675:(t,e,i)=>{"use strict";var n=i(867);t.exports=function(t,e){e=e||new FormData;var i=[];function o(t){return null===t?"":n.isDate(t)?t.toISOString():n.isArrayBuffer(t)||n.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(l,u){if(n.isPlainObject(l)||n.isArray(l)){if(-1!==i.indexOf(l))throw Error("Circular reference detected in "+u);i.push(l),n.forEach(l,(function(i,l){if(!n.isUndefined(i)){var r,d=u?u+"."+l:l;if(i&&!u&&"object"==typeof i)if(n.endsWith(l,"{}"))i=JSON.stringify(i);else if(n.endsWith(l,"[]")&&(r=n.toArray(i)))return void r.forEach((function(t){!n.isUndefined(t)&&e.append(d,o(t))}));t(i,d)}})),i.pop()}else e.append(u,o(l))}(t),e}},875:(t,e,i)=>{"use strict";var n=i(288).version,o=i(648),l={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){l[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}}));var u={};l.transitional=function(t,e,i){function l(t,e){return"[Axios v"+n+"] Transitional option '"+t+"'"+e+(i?". "+i:"")}return function(i,n,r){if(!1===t)throw new o(l(n," has been removed"+(e?" in "+e:"")),o.ERR_DEPRECATED);return e&&!u[n]&&(u[n]=!0,console.warn(l(n," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(i,n,r)}},t.exports={assertOptions:function(t,e,i){if("object"!=typeof t)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(t),l=n.length;l-- >0;){var u=n[l],r=e[u];if(r){var d=t[u],s=void 0===d||r(d,u,t);if(!0!==s)throw new o("option "+u+" must be "+s,o.ERR_BAD_OPTION_VALUE)}else if(!0!==i)throw new o("Unknown option "+u,o.ERR_BAD_OPTION)}},validators:l}},867:(t,e,i)=>{"use strict";var n,o=i(849),l=Object.prototype.toString,u=(n=Object.create(null),function(t){var e=l.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())});function r(t){return t=t.toLowerCase(),function(e){return u(e)===t}}function d(t){return Array.isArray(t)}function s(t){return void 0===t}var a=r("ArrayBuffer");function c(t){return null!==t&&"object"==typeof t}function v(t){if("object"!==u(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var p=r("Date"),h=r("File"),f=r("Blob"),m=r("FileList");function _(t){return"[object Function]"===l.call(t)}var y=r("URLSearchParams");function g(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),d(t))for(var i=0,n=t.length;i<n;i++)e.call(null,t[i],i,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}var b,x=(b="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(t){return b&&t instanceof b});t.exports={isArray:d,isArrayBuffer:a,isBuffer:function(t){return null!==t&&!s(t)&&null!==t.constructor&&!s(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){var e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||l.call(t)===e||_(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&a(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:c,isPlainObject:v,isUndefined:s,isDate:p,isFile:h,isBlob:f,isFunction:_,isStream:function(t){return c(t)&&_(t.pipe)},isURLSearchParams:y,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:g,merge:function t(){var e={};function i(i,n){v(e[n])&&v(i)?e[n]=t(e[n],i):v(i)?e[n]=t({},i):d(i)?e[n]=i.slice():e[n]=i}for(var n=0,o=arguments.length;n<o;n++)g(arguments[n],i);return e},extend:function(t,e,i){return g(e,(function(e,n){t[n]=i&&"function"==typeof e?o(e,i):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t},inherits:function(t,e,i,n){t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,i&&Object.assign(t.prototype,i)},toFlatObject:function(t,e,i){var n,o,l,u={};e=e||{};do{for(o=(n=Object.getOwnPropertyNames(t)).length;o-- >0;)u[l=n[o]]||(e[l]=t[l],u[l]=!0);t=Object.getPrototypeOf(t)}while(t&&(!i||i(t,e))&&t!==Object.prototype);return e},kindOf:u,kindOfTest:r,endsWith:function(t,e,i){t=String(t),(void 0===i||i>t.length)&&(i=t.length),i-=e.length;var n=t.indexOf(e,i);return-1!==n&&n===i},toArray:function(t){if(!t)return null;var e=t.length;if(s(e))return null;for(var i=new Array(e);e-- >0;)i[e]=t[e];return i},isTypedArray:x,isFileList:m}},484:function(t){t.exports=function(){"use strict";var t=6e4,e=36e5,i="millisecond",n="second",o="minute",l="hour",u="day",r="week",d="month",s="quarter",a="year",c="date",v="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(t,e,i){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(i)+t},_={s:m,z:function(t){var e=-t.utcOffset(),i=Math.abs(e),n=Math.floor(i/60),o=i%60;return(e<=0?"+":"-")+m(n,2,"0")+":"+m(o,2,"0")},m:function t(e,i){if(e.date()<i.date())return-t(i,e);var n=12*(i.year()-e.year())+(i.month()-e.month()),o=e.clone().add(n,d),l=i-o<0,u=e.clone().add(n+(l?-1:1),d);return+(-(n+(i-o)/(l?o-u:u-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:d,y:a,w:r,d:u,D:c,h:l,m:o,s:n,ms:i,Q:s}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",g={};g[y]=f;var b=function(t){return t instanceof E},x=function t(e,i,n){var o;if(!e)return y;if("string"==typeof e){var l=e.toLowerCase();g[l]&&(o=l),i&&(g[l]=i,o=l);var u=e.split("-");if(!o&&u.length>1)return t(u[0])}else{var r=e.name;g[r]=e,o=r}return!n&&o&&(y=o),o||!n&&y},O=function(t,e){if(b(t))return t.clone();var i="object"==typeof e?e:{};return i.date=t,i.args=arguments,new E(i)},w=_;w.l=x,w.i=b,w.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var E=function(){function f(t){this.$L=x(t.locale,null,!0),this.parse(t)}var m=f.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,i=t.utc;if(null===e)return new Date(NaN);if(w.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(p);if(n){var o=n[2]-1||0,l=(n[7]||"0").substring(0,3);return i?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,l)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,l)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return w},m.isValid=function(){return!(this.$d.toString()===v)},m.isSame=function(t,e){var i=O(t);return this.startOf(e)<=i&&i<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,i){return w.u(t)?this[e]:this.set(i,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var i=this,s=!!w.u(e)||e,v=w.p(t),p=function(t,e){var n=w.w(i.$u?Date.UTC(i.$y,e,t):new Date(i.$y,e,t),i);return s?n:n.endOf(u)},h=function(t,e){return w.w(i.toDate()[t].apply(i.toDate("s"),(s?[0,0,0,0]:[23,59,59,999]).slice(e)),i)},f=this.$W,m=this.$M,_=this.$D,y="set"+(this.$u?"UTC":"");switch(v){case a:return s?p(1,0):p(31,11);case d:return s?p(1,m):p(0,m+1);case r:var g=this.$locale().weekStart||0,b=(f<g?f+7:f)-g;return p(s?_-b:_+(6-b),m);case u:case c:return h(y+"Hours",0);case l:return h(y+"Minutes",1);case o:return h(y+"Seconds",2);case n:return h(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var r,s=w.p(t),v="set"+(this.$u?"UTC":""),p=(r={},r[u]=v+"Date",r[c]=v+"Date",r[d]=v+"Month",r[a]=v+"FullYear",r[l]=v+"Hours",r[o]=v+"Minutes",r[n]=v+"Seconds",r[i]=v+"Milliseconds",r)[s],h=s===u?this.$D+(e-this.$W):e;if(s===d||s===a){var f=this.clone().set(c,1);f.$d[p](h),f.init(),this.$d=f.set(c,Math.min(this.$D,f.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[w.p(t)]()},m.add=function(i,s){var c,v=this;i=Number(i);var p=w.p(s),h=function(t){var e=O(v);return w.w(e.date(e.date()+Math.round(t*i)),v)};if(p===d)return this.set(d,this.$M+i);if(p===a)return this.set(a,this.$y+i);if(p===u)return h(1);if(p===r)return h(7);var f=(c={},c[o]=t,c[l]=e,c[n]=1e3,c)[p]||1,m=this.$d.getTime()+i*f;return w.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,i=this.$locale();if(!this.isValid())return i.invalidDate||v;var n=t||"YYYY-MM-DDTHH:mm:ssZ",o=w.z(this),l=this.$H,u=this.$m,r=this.$M,d=i.weekdays,s=i.months,a=function(t,i,o,l){return t&&(t[i]||t(e,n))||o[i].slice(0,l)},c=function(t){return w.s(l%12||12,t,"0")},p=i.meridiem||function(t,e,i){var n=t<12?"AM":"PM";return i?n.toLowerCase():n},f={YY:String(this.$y).slice(-2),YYYY:this.$y,M:r+1,MM:w.s(r+1,2,"0"),MMM:a(i.monthsShort,r,s,3),MMMM:a(s,r),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:a(i.weekdaysMin,this.$W,d,2),ddd:a(i.weekdaysShort,this.$W,d,3),dddd:d[this.$W],H:String(l),HH:w.s(l,2,"0"),h:c(1),hh:c(2),a:p(l,u,!0),A:p(l,u,!1),m:String(u),mm:w.s(u,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:o};return n.replace(h,(function(t,e){return e||f[t]||o.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(i,c,v){var p,h=w.p(c),f=O(i),m=(f.utcOffset()-this.utcOffset())*t,_=this-f,y=w.m(this,f);return y=(p={},p[a]=y/12,p[d]=y,p[s]=y/3,p[r]=(_-m)/6048e5,p[u]=(_-m)/864e5,p[l]=_/e,p[o]=_/t,p[n]=_/1e3,p)[h]||_,v?y:w.a(y)},m.daysInMonth=function(){return this.endOf(d).$D},m.$locale=function(){return g[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var i=this.clone(),n=x(t,e,!0);return n&&(i.$L=n),i},m.clone=function(){return w.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},f}(),k=E.prototype;return O.prototype=k,[["$ms",i],["$s",n],["$m",o],["$H",l],["$W",u],["$M",d],["$y",a],["$D",c]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,E,O),t.$i=!0),O},O.locale=x,O.isDayjs=b,O.unix=function(t){return O(1e3*t)},O.en=g[y],O.Ls=g,O.p={},O}()},823:t=>{t.exports=function(t,e,i,n){var o=new Blob(void 0!==n?[n,t]:[t],{type:i||"application/octet-stream"});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(o,e);else{var l=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(o):window.webkitURL.createObjectURL(o),u=document.createElement("a");u.style.display="none",u.href=l,u.setAttribute("download",e),void 0===u.download&&u.setAttribute("target","_blank"),document.body.appendChild(u),u.click(),setTimeout((function(){document.body.removeChild(u),window.URL.revokeObjectURL(l)}),200)}}}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var l=e[n]={exports:{}};return t[n].call(l.exports,l,l.exports,i),l.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";i.r(n),i.d(n,{Gap:()=>ot,GapApiVersion:()=>e,GapHeader:()=>o,Method:()=>b,Platform:()=>u,StatusCode:()=>x,UserAgent:()=>l,default:()=>lt});var t={};i.r(t),i.d(t,{GapError:()=>s,HttpInternalError:()=>m,HttpMaxRetriesError:()=>p,HttpRequestError:()=>v,HttpResponseError:()=>h,HttpRetryableError:()=>f,HttpThrottlingError:()=>_,MissingDataContextError:()=>a,RestResourceError:()=>y,UninitializedContextError:()=>c});var e,o,l,u,r={};function d(t,e,i,n){return new(i||(i=Promise))((function(o,l){function u(t){try{d(n.next(t))}catch(t){l(t)}}function r(t){try{d(n.throw(t))}catch(t){l(t)}}function d(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(u,r)}d((n=n.apply(t,e||[])).next())}))}i.r(r),i.d(r,{Appointment:()=>C,BatchHistory:()=>R,Business:()=>A,Call:()=>T,Category:()=>P,CheckIn:()=>D,CheckOut:()=>$,Combo:()=>N,Customer:()=>U,GiftCard:()=>L,Income:()=>j,KeyStorage:()=>M,Order:()=>V,Payroll:()=>W,Printer:()=>z,Service:()=>J,SettingTurn:()=>X,Staff:()=>Q,Ticket:()=>Z,TimeKeeping:()=>tt,UnsubscribeContact:()=>et,User:()=>it}),function(t){t.V1="1.0.0"}(e||(e={})),function(t){t.GClientId="G-ClientID"}(o||(o={})),function(t){t.IOS="IOS",t.ANDROID="ANDROID",t.CHROME="CHROME",t.SAFARI="SAFARI"}(l||(l={})),function(t){t.ANDROID="Android",t.IOS="iOS",t.WEB="Web",t.WINDOW="Window"}(u||(u={})),Object.create,Object.create;class s extends Error{constructor(...t){super(...t),Object.setPrototypeOf(this,new.target.prototype)}}class a extends s{}class c extends s{}class v extends s{}class p extends s{}class h extends s{constructor({message:t,code:e,statusText:i,body:n,headers:o}){super(t),this.response={code:e,statusText:i,body:n,headers:o}}}class f extends h{}class m extends f{}class _ extends f{constructor(t){var{retryAfter:e}=t;super(function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i}(t,["retryAfter"])),this.response.retryAfter=e}}class y extends s{}const g={API_KEY:"",API_SECRET_KEY:"",G_CLIENTID:"",USER_AGENT:"",API_VERSION:e.V1,initialize:function(t){const e=[];if(t.API_KEY.length||e.push("API_KEY"),t.API_SECRET_KEY.length||e.push("API_SECRET_KEY"),t.API_SECRET_KEY.length||e.push("G_CLIENTID"),e.length)throw new a(`Cannot initialize GAP Library. Missing values for: ${e.join(", ")}`);this.API_KEY=t.API_KEY,this.API_SECRET_KEY=t.API_SECRET_KEY,this.G_CLIENTID=t.G_CLIENTID,this.API_VERSION=t.API_VERSION},throwIfUninitialized:function(){if(!this.API_KEY||0===this.API_KEY.length)throw new c("Context has not been properly initialized. Please call the .initialize() method to setup your app context object.")}};var b,x,O=i(669),w=i.n(O);!function(t){t.Get="GET",t.Post="POST",t.Put="PUT",t.Patch="PATCH",t.Delete="DELETE",t.Head="HEAD",t.Options="OPTIONS",t.Connect="CONNECT"}(b||(b={})),function(t){t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.RequestEntityTooLarge=413]="RequestEntityTooLarge",t[t.RequestUriTooLong=414]="RequestUriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RequestedRangeNotSatisfiable=416]="RequestedRangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported"}(x||(x={}));class E{constructor(t,e,i,n){this.RETRY_WAIT_TIME=1e3,this.API_VERSION=n,this.domain=t,this.axios=w().create({headers:{"G-ClientID":e,Authorization:`Bearer ${i}`}})}get(t){return d(this,void 0,void 0,(function*(){return this.request(Object.assign({method:b.Get},t))}))}post(t){return d(this,void 0,void 0,(function*(){return this.request(Object.assign({method:b.Post},t))}))}put(t){return d(this,void 0,void 0,(function*(){return this.request(Object.assign({method:b.Put},t))}))}delete(t){return d(this,void 0,void 0,(function*(){return this.request(Object.assign({method:b.Delete},t))}))}request(t){return d(this,void 0,void 0,(function*(){if(g.API_VERSION!==this.API_VERSION)throw new y(`Current Context.API_VERSION '${g.API_VERSION}' does not match resource version ${this.API_VERSION}`);const e=t.tries?t.tries:1;if(e<=0)throw new v(`Number of tries must be >= 0, got ${e}`);const i={url:`${this.domain}${this.getRequestPath(t.path)}`,params:t.query,method:t.method.toString(),data:t.data};function n(t){return d(this,void 0,void 0,(function*(){return new Promise((e=>setTimeout(e,t)))}))}let o=0;for(;o<e;)try{return yield this.doRequest(i)}catch(t){if(o++,t instanceof f){if(o<e){let e=this.RETRY_WAIT_TIME;t instanceof _&&t.response.retryAfter&&(e=1e3*t.response.retryAfter),yield n(e);continue}if(e>1)throw new p(`Exceeded maximum retry count of ${e}. Last message: ${t.message}`)}throw t}throw new s("Unexpected flow, reached maximum HTTP tries but did not throw an error")}))}getRequestPath(t){return`/${t.replace(/^\//,"")}`}doRequest(t){var e;return d(this,void 0,void 0,(function*(){try{const i=yield this.axios(t);if(i.status&&"OK"===i.data.status&&"OK"===(null===(e=i.data.result)||void 0===e?void 0:e.status))return i.data;{const t=JSON.stringify(i.data.message||i.data.result.message,null,2),e=i.headers,n=i.status,o=i.statusText;switch(!0){case i.status===x.TooManyRequests:{const l=i.headers["Retry-After"];throw new _({message:`GAP is throttling requests ${t}`,code:n,statusText:o,body:i.data,headers:e,retryAfter:l?parseFloat(l):void 0})}case i.status>=x.InternalServerError:throw new m({message:`GAP internal error ${t}`,code:n,statusText:o,body:i.data,headers:e});default:throw new h({message:`Received an error response (${i.status} ${i.statusText}) from GAP ${t}`,code:n,statusText:o,body:i.data,headers:e})}}}catch(t){throw t instanceof s?t:new v(`Failed to make GAP HTTP request: ${t.message}`)}}))}}class k{static setClient(t,e,i,n){if(!t||!e||!i)return console.error(new Error("Missing params init http_client"));this.client=new E(t,e,i,n)}}const S="/v1/pos/printer/site/list";class C extends k{static postCreateAppointment(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/appointment/appointment/form/create",data:t})}))}static getCategoryListAppointment(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/gocheckin/service/site/list-by-category",query:t})}))}static getStaffListAppointment(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/gocheckin/staff/site/list",query:t})}))}}class R extends k{static getBatchHistory(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/history/site/batch-history",query:t})}))}static getBatchDetail(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/history/site/batch-detail",query:t})}))}}class A extends k{static getBusinessInfo(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/business/site/get-info",query:t})}))}static postBusinessUpdateInfo(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/business/form/update",data:t})}))}}class T extends k{static sendSms(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/call/form/send-sms",data:t})}))}}class P extends k{static getCategoryListItem(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/category/site/list-item",query:t})}))}}function I(t){var e,i,n,o,l,u,r,d,s,a,c,v,p,h,f,m,_,y,g,b,x,O,w,E,k,S,C,R,A,T,P,I,D,q,$,N,U,L,j,M,B,F,H,Y,G,V,K,W,z,J,X,Q,Z,tt,et,it,nt,ot,lt,ut,rt,dt,st,at,ct,vt,pt,ht,ft,mt,_t,yt,gt,bt,xt,Ot,wt,Et,kt,St,Ct,Rt,At,Tt,Pt,It,Dt,qt,$t,Nt,Ut,Lt,jt,Mt,Bt,Ft,Ht,Yt,Gt,Vt,Kt,Wt,zt,Jt,Xt,Qt,Zt,te,ee,ie,ne,oe,le,ue,re,de,se,ae;return{id:null!==(e=null==t?void 0:t.id)&&void 0!==e?e:null,customer_id:null!==(i=null==t?void 0:t.customer_id)&&void 0!==i?i:null,customer_name:null!==(n=null==t?void 0:t.customer_name)&&void 0!==n?n:null,customer_phone:null!==(o=null==t?void 0:t.customer_phone)&&void 0!==o?o:null,customer_email:null!==(l=null==t?void 0:t.customer_email)&&void 0!==l?l:null,customer_address:null!==(u=null==t?void 0:t.customer_address)&&void 0!==u?u:null,payment_method:null!==(r=null==t?void 0:t.payment_method)&&void 0!==r?r:null,currency:null!==(d=null==t?void 0:t.currency)&&void 0!==d?d:null,start_time:null!==(s=null==t?void 0:t.start_time)&&void 0!==s?s:null,expected_end_time:null!==(a=null==t?void 0:t.expected_end_time)&&void 0!==a?a:null,end_time:null!==(c=null==t?void 0:t.end_time)&&void 0!==c?c:null,picked_up_time:null!==(v=null==t?void 0:t.picked_up_time)&&void 0!==v?v:null,promotion_code:null!==(p=null==t?void 0:t.promotion_code)&&void 0!==p?p:null,total_before_discount:null!==(h=null==t?void 0:t.total_before_discount)&&void 0!==h?h:null,total_after_discount:null!==(f=null==t?void 0:t.total_after_discount)&&void 0!==f?f:null,employee_id:null!==(m=null==t?void 0:t.employee_id)&&void 0!==m?m:null,employee_name:null!==(_=null==t?void 0:t.employee_name)&&void 0!==_?_:null,type:null!==(y=null==t?void 0:t.type)&&void 0!==y?y:null,note:null!==(g=null==t?void 0:t.note)&&void 0!==g?g:null,owner_note:null!==(b=null==t?void 0:t.owner_note)&&void 0!==b?b:null,order_status:null!==(x=null==t?void 0:t.order_status)&&void 0!==x?x:null,status:null!==(O=null==t?void 0:t.status)&&void 0!==O?O:null,created_at:null!==(w=null==t?void 0:t.created_at)&&void 0!==w?w:null,updated_at:null!==(E=null==t?void 0:t.updated_at)&&void 0!==E?E:null,cancel_reason:null!==(k=null==t?void 0:t.cancel_reason)&&void 0!==k?k:null,delivered_time:null!==(S=null==t?void 0:t.delivered_time)&&void 0!==S?S:null,completed_time:null!==(C=null==t?void 0:t.completed_time)&&void 0!==C?C:null,order_code:null!==(R=null==t?void 0:t.order_code)&&void 0!==R?R:null,checkin_id:null!==(A=null==t?void 0:t.checkin_id)&&void 0!==A?A:null,total_change:null!==(T=null==t?void 0:t.total_change)&&void 0!==T?T:null,tip:{id:null!==(I=null===(P=null==t?void 0:t.tip)||void 0===P?void 0:P.id)&&void 0!==I?I:null,order_id:null!==(q=null===(D=null==t?void 0:t.tip)||void 0===D?void 0:D.order_id)&&void 0!==q?q:null,created_at:null!==(N=null===($=null==t?void 0:t.tip)||void 0===$?void 0:$.created_at)&&void 0!==N?N:null,updated_at:null!==(L=null===(U=null==t?void 0:t.tip)||void 0===U?void 0:U.updated_at)&&void 0!==L?L:null,status:null!==(M=null===(j=null==t?void 0:t.tip)||void 0===j?void 0:j.status)&&void 0!==M?M:null,tip_type:null!==(F=null===(B=null==t?void 0:t.tip)||void 0===B?void 0:B.tip_type)&&void 0!==F?F:null,total_tip:null!==(Y=null===(H=null==t?void 0:t.tip)||void 0===H?void 0:H.total_tip)&&void 0!==Y?Y:null,data:null!==(V=null===(G=null==t?void 0:t.tip)||void 0===G?void 0:G.data)&&void 0!==V?V:null,data_after_charge:null!==(W=null===(K=null==t?void 0:t.tip)||void 0===K?void 0:K.data_after_charge)&&void 0!==W?W:null,payment_method:null!==(J=null===(z=null==t?void 0:t.tip)||void 0===z?void 0:z.payment_method)&&void 0!==J?J:null,giftcard_code:null!==(Q=null===(X=null==t?void 0:t.tip)||void 0===X?void 0:X.giftcard_code)&&void 0!==Q?Q:null,is_updated:null!==(tt=null===(Z=null==t?void 0:t.tip)||void 0===Z?void 0:Z.is_updated)&&void 0!==tt?tt:null},tax:null!==(et=null==t?void 0:t.tax)&&void 0!==et?et:null,is_waiting:null!==(it=null==t?void 0:t.is_waiting)&&void 0!==it?it:null,is_recheck:null!==(nt=null==t?void 0:t.is_recheck)&&void 0!==nt?nt:null,gift_card_price:null!==(ot=null==t?void 0:t.gift_card_price)&&void 0!==ot?ot:null,pax_standalone_active:null!==(lt=null==t?void 0:t.pax_standalone_active)&&void 0!==lt?lt:null,ach_payment_active:null!==(ut=null==t?void 0:t.ach_payment_active)&&void 0!==ut?ut:null,ach_payment_data:null!==(rt=null==t?void 0:t.ach_payment_data)&&void 0!==rt?rt:null,total_cash_discount:null!==(dt=null==t?void 0:t.total_cash_discount)&&void 0!==dt?dt:null,is_tip_on_device:null!==(st=null==t?void 0:t.is_tip_on_device)&&void 0!==st?st:null,tip_by_credit_card:null!==(at=null==t?void 0:t.tip_by_credit_card)&&void 0!==at?at:null,service_fee:null!==(ct=null==t?void 0:t.service_fee)&&void 0!==ct?ct:null,external_credit_card:null!==(vt=null==t?void 0:t.external_credit_card)&&void 0!==vt?vt:null,qr_code:null!==(pt=null==t?void 0:t.qr_code)&&void 0!==pt?pt:null,created_date:null!==(ht=null==t?void 0:t.created_date)&&void 0!==ht?ht:null,created_time:null!==(ft=null==t?void 0:t.created_time)&&void 0!==ft?ft:null,pos_key:null!==(mt=null==t?void 0:t.pos_key)&&void 0!==mt?mt:null,pos_status:null!==(_t=null==t?void 0:t.pos_status)&&void 0!==_t?_t:null,invoice:null!==(yt=null==t?void 0:t.invoice)&&void 0!==yt?yt:null,customer_point:null!==(gt=null==t?void 0:t.customer_point)&&void 0!==gt?gt:null,order_discount:null!==(bt=null==t?void 0:t.order_discount)&&void 0!==bt?bt:null,checkin_services:null!==(xt=null==t?void 0:t.checkin_services)&&void 0!==xt?xt:null,checkin_staffs:null!==(Ot=null==t?void 0:t.checkin_staffs)&&void 0!==Ot?Ot:null,services:(null==t?void 0:t.services)?null==t?void 0:t.services.map((t=>(t=>{var e;return{staff_name:null!==(e=null==t?void 0:t.staff_name)&&void 0!==e?e:null,items:(null==t?void 0:t.items)?null==t?void 0:t.items.map((t=>(t=>{var e,i,n,o,l,u,r,d,s,a,c;return{item_name:null!==(e=null==t?void 0:t.item_name)&&void 0!==e?e:null,quantity:null!==(i=null==t?void 0:t.quantity)&&void 0!==i?i:null,price:null!==(n=null==t?void 0:t.price)&&void 0!==n?n:null,supply_share:null!==(o=null==t?void 0:t.supply_share)&&void 0!==o?o:null,base_service_price:null!==(l=null==t?void 0:t.base_service_price)&&void 0!==l?l:null,card_charge_value:null!==(u=null==t?void 0:t.card_charge_value)&&void 0!==u?u:null,discount_charge_value:null!==(r=null==t?void 0:t.discount_charge_value)&&void 0!==r?r:null,tip_paid:null!==(d=null==t?void 0:t.tip_paid)&&void 0!==d?d:null,tip_on_credit_card_share:null!==(s=null==t?void 0:t.tip_on_credit_card_share)&&void 0!==s?s:null,commission:null!==(a=null==t?void 0:t.commission)&&void 0!==a?a:null,cash_discount:null!==(c=null==t?void 0:t.cash_discount)&&void 0!==c?c:null}})(t))):null}})(t))):null,staffs:(null==t?void 0:t.staffs)?null==t?void 0:t.staffs.map((t=>(t=>{var e,i,n;return{employee_name:null!==(e=null==t?void 0:t.employee_name)&&void 0!==e?e:null,employee_image:null!==(i=null==t?void 0:t.employee_image)&&void 0!==i?i:null,employee_color:null!==(n=null==t?void 0:t.employee_color)&&void 0!==n?n:null}})(t))):null,payment_payment_id:null!==(wt=null==t?void 0:t.payment_payment_id)&&void 0!==wt?wt:null,payment_order_id:null!==(Et=null==t?void 0:t.payment_order_id)&&void 0!==Et?Et:null,order_batch:{card_amount:null!==(St=null===(kt=null==t?void 0:t.order_batch)||void 0===kt?void 0:kt.card_amount)&&void 0!==St?St:null,cash_amount:null!==(Rt=null===(Ct=null==t?void 0:t.order_batch)||void 0===Ct?void 0:Ct.cash_amount)&&void 0!==Rt?Rt:null,check_amount:null!==(Tt=null===(At=null==t?void 0:t.order_batch)||void 0===At?void 0:At.check_amount)&&void 0!==Tt?Tt:null,giftcard_amount:null!==(It=null===(Pt=null==t?void 0:t.order_batch)||void 0===Pt?void 0:Pt.giftcard_amount)&&void 0!==It?It:null,ach_amount:null!==(qt=null===(Dt=null==t?void 0:t.order_batch)||void 0===Dt?void 0:Dt.ach_amount)&&void 0!==qt?qt:null,external_cc_amount:null!==(Nt=null===($t=null==t?void 0:t.order_batch)||void 0===$t?void 0:$t.external_cc_amount)&&void 0!==Nt?Nt:null,subtotal:null!==(Lt=null===(Ut=null==t?void 0:t.order_batch)||void 0===Ut?void 0:Ut.subtotal)&&void 0!==Lt?Lt:null,tax:null!==(Mt=null===(jt=null==t?void 0:t.order_batch)||void 0===jt?void 0:jt.tax)&&void 0!==Mt?Mt:null,tip:null!==(Ft=null===(Bt=null==t?void 0:t.order_batch)||void 0===Bt?void 0:Bt.tip)&&void 0!==Ft?Ft:null,discount:null!==(Yt=null===(Ht=null==t?void 0:t.order_batch)||void 0===Ht?void 0:Ht.discount)&&void 0!==Yt?Yt:null,redeem:null!==(Vt=null===(Gt=null==t?void 0:t.order_batch)||void 0===Gt?void 0:Gt.redeem)&&void 0!==Vt?Vt:null,total_income:null!==(Wt=null===(Kt=null==t?void 0:t.order_batch)||void 0===Kt?void 0:Kt.total_income)&&void 0!==Wt?Wt:null,cash_discount:null!==(Jt=null===(zt=null==t?void 0:t.order_batch)||void 0===zt?void 0:zt.cash_discount)&&void 0!==Jt?Jt:null,change:null!==(Qt=null===(Xt=null==t?void 0:t.order_batch)||void 0===Xt?void 0:Xt.change)&&void 0!==Qt?Qt:null},visit_count:null!==(Zt=null==t?void 0:t.visit_count)&&void 0!==Zt?Zt:null,refund_amount:null!==(te=null==t?void 0:t.refund_amount)&&void 0!==te?te:null,last_four:null!==(ee=null==t?void 0:t.last_four)&&void 0!==ee?ee:null,card_type:null!==(ie=null==t?void 0:t.card_type)&&void 0!==ie?ie:null,entry_type:null!==(ne=null==t?void 0:t.entry_type)&&void 0!==ne?ne:null,payment_history:null!==(oe=null==t?void 0:t.payment_history)&&void 0!==oe?oe:null,amount_info:null!==(le=null==t?void 0:t.amount_info)&&void 0!==le?le:null,customer_type:null!==(ue=null==t?void 0:t.customer_type)&&void 0!==ue?ue:null,order_payment_method:(null==t?void 0:t.order_payment_method)?null==t?void 0:t.order_payment_method.map((t=>(t=>{var e,i,n,o,l,u,r,d;return{id:null!==(e=null==t?void 0:t.id)&&void 0!==e?e:null,order_id:null!==(i=null==t?void 0:t.id)&&void 0!==i?i:null,payment_method_type:null!==(n=null==t?void 0:t.id)&&void 0!==n?n:null,payment_method_name:null!==(o=null==t?void 0:t.id)&&void 0!==o?o:null,total_paid:null!==(l=null==t?void 0:t.id)&&void 0!==l?l:null,created_at:null!==(u=null==t?void 0:t.id)&&void 0!==u?u:null,updated_at:null!==(r=null==t?void 0:t.id)&&void 0!==r?r:null,status:null!==(d=null==t?void 0:t.id)&&void 0!==d?d:null}})(t))):null,deposit:null!==(re=null==t?void 0:t.deposit)&&void 0!==re?re:null,product_subtotal:null!==(de=null==t?void 0:t.product_subtotal)&&void 0!==de?de:null,service_subtotal:null!==(se=null==t?void 0:t.service_subtotal)&&void 0!==se?se:null,staff_code:null!==(ae=null==t?void 0:t.staff_code)&&void 0!==ae?ae:null}}class D extends k{static postCheckInFormSubmit(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkin/form/submit",data:t})}))}static getCheckInReport(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkin/site/report",query:t})}))}static getLastCheckIn(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkin/site/check-update",query:t})}))}static getCheckInList(t){var e,i;return d(this,void 0,void 0,(function*(){const n=yield this.client.get({path:"/v1/pos/checkin/site/list",query:t});return((null===(i=null===(e=null==n?void 0:n.result)||void 0===e?void 0:e.data)||void 0===i?void 0:i.items)||[]).map((t=>I(t)))}))}static getCheckInInfo(t){return d(this,void 0,void 0,(function*(){return I((yield this.client.get({path:"/v1/pos/checkin/site/info",query:t})).result.data)}))}}function q(t){var e,i,n,o;return{totalCount:null!==(e=null==t?void 0:t.totalCount)&&void 0!==e?e:null,pageCount:null!==(i=null==t?void 0:t.pageCount)&&void 0!==i?i:null,currentPage:null!==(n=null==t?void 0:t.currentPage)&&void 0!==n?n:null,perPage:null!==(o=null==t?void 0:t.perPage)&&void 0!==o?o:null}}class $ extends k{static getItemList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/item/site/list",query:t})}))}static getCheckOutHistoryList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkout/history/list",query:t})}))}static getCheckOutInfo(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkout/site/info",query:t})}))}static getCheckOutHistoryInfo(t){var e,i,n,o;return d(this,void 0,void 0,(function*(){const l=yield this.client.get({path:"/v1/pos/checkout/history/info",query:t});return{data:((null===(i=null===(e=null==l?void 0:l.result)||void 0===e?void 0:e.data)||void 0===i?void 0:i.items)||[]).map((t=>function(t){var e,i,n,o,l,u;return{id:null!==(e=null==t?void 0:t.id)&&void 0!==e?e:null,order_code:null!==(i=null==t?void 0:t.order_code)&&void 0!==i?i:null,created_date:null!==(n=null==t?void 0:t.created_date)&&void 0!==n?n:null,created_time:null!==(o=null==t?void 0:t.created_time)&&void 0!==o?o:null,total_after_discount:null!==(l=null==t?void 0:t.total_after_discount)&&void 0!==l?l:null,qr_code:null!==(u=null==t?void 0:t.qr_code)&&void 0!==u?u:null}}(t))),_meta:q(null===(o=null===(n=null==l?void 0:l.result)||void 0===n?void 0:n.data)||void 0===o?void 0:o._meta)}}))}static getCheckOutBatchCloseSummary(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkout/site/get-batch-close-summary",query:t})}))}static postCheckOutAddItem(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/item/add",data:t})}))}static postCheckOutRemoveItem(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/item/remove",data:t})}))}static postCheckOutSubmitOrder(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/payment/submit",data:t})}))}static postCheckOutUpdateStatus(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/update-status",data:t})}))}static postCheckOutUpdateOrderWithCreditCardPayment(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/update-order-with-credit-card-payment",data:t})}))}static postCheckOutDoAuth(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/do-auth",data:t})}))}static postCheckOutVoidPayment(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/void-payment",data:t})}))}static postCheckOutRefundPayment(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/refund-payment",data:t})}))}static postCheckOutAdjustTipPayment(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/adjust-tip",data:t})}))}static postCheckOutCloseOut(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/closeout",data:t})}))}static postCheckOutUpdateIsWaiting(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/update-is-wait",data:t})}))}static postCheckOutDiscountPromotion(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/discount/promotion",data:t})}))}static postCheckOutDiscountRedeem(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/discount/redeem",data:t})}))}static postCheckOutUpdateTipData(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/tip/update",data:t})}))}static postCheckOutItemAdjustPrice(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/item/adjust-price",data:t})}))}static postCheckOutUpdatePaymentData(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/update-payment-data",data:t})}))}static postCheckOutItemAddCombo(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/item/add-combo",data:t})}))}static getCheckoutResendRating(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkout/form/send-mercure",query:t})}))}static postCustomerAchAvailable(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ach/form/check-customer",data:t})}))}static postAchResend(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ach/form/resend-transaction",data:t})}))}static postAchVoid(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ach/form/cancel-transaction",data:t})}))}static postUpdateOrderSuccessToSettled(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/update-success-to-settled",data:t})}))}static postCalculateTax(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/calculate-tax",data:t})}))}static postCalculatePayment(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/calculate-payment",data:t})}))}}class N extends k{static getComboSiteInfo(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/combo/site/info",query:t})}))}}class U extends k{static getCustomerList(t){var e,i;return d(this,void 0,void 0,(function*(){const n=yield this.client.get({path:"/v1/pos/customer/site/list",query:t});return((null===(i=null===(e=null==n?void 0:n.result)||void 0===e?void 0:e.data)||void 0===i?void 0:i.items)||[]).map((t=>function(t){var e,i;return{customer_name:null!==(e=null==t?void 0:t.customer_name)&&void 0!==e?e:null,customer_phone:null!==(i=null==t?void 0:t.customer_phone)&&void 0!==i?i:null}}(t)))}))}static getCustomerDetail(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/customer/site/detail",query:t})}))}}class L extends k{static getCheckGiftCard(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/giftcard/site/check-gift-card",query:t})}))}static postResetGiftCard(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/item/reset-gift-card",data:t})}))}}class j extends k{static getIncomeHistory(t){var e;return d(this,void 0,void 0,(function*(){const i=yield this.client.get({path:"/v1/pos/history/site/income-history",query:t});return((null===(e=null==i?void 0:i.result)||void 0===e?void 0:e.data)||[]).map((t=>function(t){var e,i,n,o,l,u,r,d,s,a,c,v,p,h,f,m,_,y,g,b,x,O,w,E,k,S,C,R,A,T,P,I,D,q,$,N,U,L,j,M,B,F;return{title:null!==(e=null==t?void 0:t.title)&&void 0!==e?e:null,income:null!==(i=null==t?void 0:t.income)&&void 0!==i?i:null,summary:{date:null!==(o=null===(n=null==t?void 0:t.summary)||void 0===n?void 0:n.date)&&void 0!==o?o:null,display_date:null!==(u=null===(l=null==t?void 0:t.summary)||void 0===l?void 0:l.date)&&void 0!==u?u:null,display_date_time:null!==(d=null===(r=null==t?void 0:t.summary)||void 0===r?void 0:r.date)&&void 0!==d?d:null,card_amount:null!==(a=null===(s=null==t?void 0:t.summary)||void 0===s?void 0:s.card_amount)&&void 0!==a?a:null,external_cc_amount:null!==(v=null===(c=null==t?void 0:t.summary)||void 0===c?void 0:c.external_cc_amount)&&void 0!==v?v:null,cash_amount:null!==(h=null===(p=null==t?void 0:t.summary)||void 0===p?void 0:p.cash_amount)&&void 0!==h?h:null,giftcard_amount:null!==(m=null===(f=null==t?void 0:t.summary)||void 0===f?void 0:f.giftcard_amount)&&void 0!==m?m:null,check_amount:null!==(y=null===(_=null==t?void 0:t.summary)||void 0===_?void 0:_.check_amount)&&void 0!==y?y:null,ach_amount:null!==(b=null===(g=null==t?void 0:t.summary)||void 0===g?void 0:g.ach_amount)&&void 0!==b?b:null,subtotal:null!==(O=null===(x=null==t?void 0:t.summary)||void 0===x?void 0:x.subtotal)&&void 0!==O?O:null,tax:null!==(E=null===(w=null==t?void 0:t.summary)||void 0===w?void 0:w.tax)&&void 0!==E?E:null,discount:null!==(S=null===(k=null==t?void 0:t.summary)||void 0===k?void 0:k.discount)&&void 0!==S?S:null,tip:null!==(R=null===(C=null==t?void 0:t.summary)||void 0===C?void 0:C.tip)&&void 0!==R?R:null,redeem:null!==(T=null===(A=null==t?void 0:t.summary)||void 0===A?void 0:A.redeem)&&void 0!==T?T:null,income:null!==(I=null===(P=null==t?void 0:t.summary)||void 0===P?void 0:P.income)&&void 0!==I?I:null,change:null!==(q=null===(D=null==t?void 0:t.summary)||void 0===D?void 0:D.change)&&void 0!==q?q:null,cash_discount:null!==(N=null===($=null==t?void 0:t.summary)||void 0===$?void 0:$.cash_discount)&&void 0!==N?N:null,service_fee:null!==(L=null===(U=null==t?void 0:t.summary)||void 0===U?void 0:U.service_fee)&&void 0!==L?L:null,deposit:null!==(M=null===(j=null==t?void 0:t.summary)||void 0===j?void 0:j.deposit)&&void 0!==M?M:null,total:null!==(F=null===(B=null==t?void 0:t.summary)||void 0===B?void 0:B.total)&&void 0!==F?F:null}}}(t)))}))}static getStaffDailyIncome(t){var e;return d(this,void 0,void 0,(function*(){const i=yield this.client.get({path:"/v1/pos/staff/site/list-income-v1",query:t});return((null===(e=null==i?void 0:i.result)||void 0===e?void 0:e.data)||[]).map((t=>function(t){var e,i,n,o,l,u,r,d,s,a,c,v,p,h,f,m,_,y,g,b,x,O,w,E,k,S,C,R,A,T,P,I,D,q;return{user_id:null!==(e=null==t?void 0:t.user_id)&&void 0!==e?e:null,name:null!==(i=null==t?void 0:t.name)&&void 0!==i?i:null,image_url:null!==(n=null==t?void 0:t.image_url)&&void 0!==n?n:null,color_code:null!==(o=null==t?void 0:t.color_code)&&void 0!==o?o:null,code:null!==(l=null==t?void 0:t.code)&&void 0!==l?l:null,status:null!==(u=null==t?void 0:t.status)&&void 0!==u?u:null,permission:(null==t?void 0:t.permission)?null==t?void 0:t.permission.map((t=>function(t){var e,i,n,o,l,u;return{id:null!==(e=null==t?void 0:t.id)&&void 0!==e?e:null,name:null!==(i=null==t?void 0:t.name)&&void 0!==i?i:null,type:null!==(n=null==t?void 0:t.type)&&void 0!==n?n:null,status:null!==(o=null==t?void 0:t.status)&&void 0!==o?o:null,created_at:null!==(l=null==t?void 0:t.created_at)&&void 0!==l?l:null,updated_at:null!==(u=null==t?void 0:t.updated_at)&&void 0!==u?u:null}}(t))):null,setting_commission:null!==(r=null==t?void 0:t.setting_commission)&&void 0!==r?r:null,income:{commission:null!==(s=null===(d=null==t?void 0:t.income)||void 0===d?void 0:d.commission)&&void 0!==s?s:null,tip:null!==(c=null===(a=null==t?void 0:t.income)||void 0===a?void 0:a.tip)&&void 0!==c?c:null,working_hours:null!==(p=null===(v=null==t?void 0:t.income)||void 0===v?void 0:v.working_hours)&&void 0!==p?p:null,final_salary:null!==(f=null===(h=null==t?void 0:t.income)||void 0===h?void 0:h.final_salary)&&void 0!==f?f:null,income:null!==(_=null===(m=null==t?void 0:t.income)||void 0===m?void 0:m.income)&&void 0!==_?_:null,tip_credit_charge:null!==(g=null===(y=null==t?void 0:t.income)||void 0===y?void 0:y.tip_credit_charge)&&void 0!==g?g:null,card_charge:null!==(x=null===(b=null==t?void 0:t.income)||void 0===b?void 0:b.card_charge)&&void 0!==x?x:null,cash_bonus:null!==(w=null===(O=null==t?void 0:t.income)||void 0===O?void 0:O.cash_bonus)&&void 0!==w?w:null,supply_share:null!==(k=null===(E=null==t?void 0:t.income)||void 0===E?void 0:E.supply_share)&&void 0!==k?k:null,final_commission:null!==(C=null===(S=null==t?void 0:t.income)||void 0===S?void 0:S.final_commission)&&void 0!==C?C:null,cash_income:null!==(A=null===(R=null==t?void 0:t.income)||void 0===R?void 0:R.cash_income)&&void 0!==A?A:null,check_income:null!==(P=null===(T=null==t?void 0:t.income)||void 0===T?void 0:T.check_income)&&void 0!==P?P:null,wage_per_hours:null!==(D=null===(I=null==t?void 0:t.income)||void 0===I?void 0:I.wage_per_hours)&&void 0!==D?D:null},daily_service:null!==(q=null==t?void 0:t.daily_service)&&void 0!==q?q:null}}(t)))}))}}class M extends k{static getKeyStorage(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/user/site/get-key-storage",query:t})}))}}var B=i(823),F=i.n(B);const H=()=>({AU:"DD-MM-YYYY",US:"MM-DD-YYYY",DEFAULT:"DD-MM-YYYY"}[localStorage.getItem("country_code")||"DEFAULT"]);var Y=i(484),G=i.n(Y);class V extends k{static getOrderCheckInList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkin/site/dash-board-list",query:t})}))}static getOrderDetail(t){var e;return d(this,void 0,void 0,(function*(){const i=yield this.client.get({path:"/v1/pos/checkout/site/info",query:t});return function(t){var e,i,n,o,l,u,r,d,s,a,c,v,p,h,f,m,_,y,g,b,x,O,w,E,k,S,C,R,A,T,P,I,D,q,$,N,U,L,j,M,B,F,H,Y,G,V,K,W,z,J,X,Q,Z,tt,et,it,nt,ot,lt,ut,rt,dt,st,at,ct,vt,pt,ht,ft,mt,_t,yt,gt,bt,xt,Ot,wt,Et,kt,St,Ct,Rt,At,Tt,Pt,It,Dt,qt,$t,Nt,Ut,Lt,jt,Mt,Bt,Ft,Ht,Yt,Gt,Vt,Kt,Wt,zt,Jt,Xt,Qt,Zt,te,ee,ie,ne,oe,le,ue,re,de,se,ae,ce,ve,pe,he,fe,me,_e,ye,ge,be,xe,Oe,we,Ee,ke,Se,Ce,Re,Ae,Te,Pe,Ie,De,qe,$e,Ne,Ue,Le,je,Me,Be,Fe,He,Ye,Ge,Ve,Ke,We;return{id:null!==(e=null==t?void 0:t.id)&&void 0!==e?e:null,customer_id:null!==(i=null==t?void 0:t.customer_id)&&void 0!==i?i:null,customer_name:null!==(n=null==t?void 0:t.customer_name)&&void 0!==n?n:null,customer_phone:null!==(o=null==t?void 0:t.customer_phone)&&void 0!==o?o:null,customer_email:null!==(l=null==t?void 0:t.customer_email)&&void 0!==l?l:null,customer_address:null!==(u=null==t?void 0:t.customer_address)&&void 0!==u?u:null,payment_method:null!==(r=null==t?void 0:t.payment_method)&&void 0!==r?r:null,currency:null!==(d=null==t?void 0:t.currency)&&void 0!==d?d:null,start_time:null!==(s=null==t?void 0:t.start_time)&&void 0!==s?s:null,expected_end_time:null!==(a=null==t?void 0:t.expected_end_time)&&void 0!==a?a:null,end_time:null!==(c=null==t?void 0:t.end_time)&&void 0!==c?c:null,picked_up_time:null!==(v=null==t?void 0:t.picked_up_time)&&void 0!==v?v:null,promotion_code:null!==(p=null==t?void 0:t.promotion_code)&&void 0!==p?p:null,total_before_discount:null!==(h=null==t?void 0:t.total_before_discount)&&void 0!==h?h:null,total_after_discount:null!==(f=null==t?void 0:t.total_after_discount)&&void 0!==f?f:null,employee_id:null!==(m=null==t?void 0:t.employee_id)&&void 0!==m?m:null,employee_name:null!==(_=null==t?void 0:t.employee_name)&&void 0!==_?_:null,type:null!==(y=null==t?void 0:t.type)&&void 0!==y?y:null,note:null!==(g=null==t?void 0:t.note)&&void 0!==g?g:null,owner_note:null!==(b=null==t?void 0:t.owner_note)&&void 0!==b?b:null,order_status:null!==(x=null==t?void 0:t.order_status)&&void 0!==x?x:null,status:null!==(O=null==t?void 0:t.status)&&void 0!==O?O:null,created_at:null!==(w=null==t?void 0:t.created_at)&&void 0!==w?w:null,updated_at:null!==(E=null==t?void 0:t.updated_at)&&void 0!==E?E:null,cancel_reason:null!==(k=null==t?void 0:t.cancel_reason)&&void 0!==k?k:null,delivered_time:null!==(S=null==t?void 0:t.delivered_time)&&void 0!==S?S:null,completed_time:null!==(C=null==t?void 0:t.completed_time)&&void 0!==C?C:null,order_code:null!==(R=null==t?void 0:t.order_code)&&void 0!==R?R:null,checkin_id:null!==(A=null==t?void 0:t.checkin_id)&&void 0!==A?A:null,total_change:null!==(T=null==t?void 0:t.total_change)&&void 0!==T?T:null,tip:{id:null!==(I=null===(P=null==t?void 0:t.tip)||void 0===P?void 0:P.id)&&void 0!==I?I:null,order_id:null!==(q=null===(D=null==t?void 0:t.tip)||void 0===D?void 0:D.id)&&void 0!==q?q:null,created_at:null!==(N=null===($=null==t?void 0:t.tip)||void 0===$?void 0:$.id)&&void 0!==N?N:null,updated_at:null!==(L=null===(U=null==t?void 0:t.tip)||void 0===U?void 0:U.id)&&void 0!==L?L:null,status:null!==(M=null===(j=null==t?void 0:t.tip)||void 0===j?void 0:j.id)&&void 0!==M?M:null,tip_type:null!==(F=null===(B=null==t?void 0:t.tip)||void 0===B?void 0:B.id)&&void 0!==F?F:null,total_tip:null!==(Y=null===(H=null==t?void 0:t.tip)||void 0===H?void 0:H.id)&&void 0!==Y?Y:null,data:null!==(V=null===(G=null==t?void 0:t.tip)||void 0===G?void 0:G.id)&&void 0!==V?V:null,data_after_charge:null!==(W=null===(K=null==t?void 0:t.tip)||void 0===K?void 0:K.id)&&void 0!==W?W:null,payment_method:null!==(J=null===(z=null==t?void 0:t.tip)||void 0===z?void 0:z.id)&&void 0!==J?J:null,giftcard_code:null!==(Q=null===(X=null==t?void 0:t.tip)||void 0===X?void 0:X.id)&&void 0!==Q?Q:null,is_updated:null!==(tt=null===(Z=null==t?void 0:t.tip)||void 0===Z?void 0:Z.id)&&void 0!==tt?tt:null},tax:null!==(et=null==t?void 0:t.id)&&void 0!==et?et:null,is_waiting:null!==(it=null==t?void 0:t.id)&&void 0!==it?it:null,is_recheck:null!==(nt=null==t?void 0:t.id)&&void 0!==nt?nt:null,gift_card_price:null!==(ot=null==t?void 0:t.id)&&void 0!==ot?ot:null,pax_standalone_active:null!==(lt=null==t?void 0:t.id)&&void 0!==lt?lt:null,ach_payment_active:null!==(ut=null==t?void 0:t.id)&&void 0!==ut?ut:null,ach_payment_data:null!==(rt=null==t?void 0:t.id)&&void 0!==rt?rt:null,total_cash_discount:null!==(dt=null==t?void 0:t.id)&&void 0!==dt?dt:null,is_tip_on_device:null!==(st=null==t?void 0:t.id)&&void 0!==st?st:null,tip_by_credit_card:null!==(at=null==t?void 0:t.id)&&void 0!==at?at:null,service_fee:null!==(ct=null==t?void 0:t.id)&&void 0!==ct?ct:null,external_credit_card:null!==(vt=null==t?void 0:t.id)&&void 0!==vt?vt:null,qr_code:null!==(pt=null==t?void 0:t.id)&&void 0!==pt?pt:null,created_date:null!==(ht=null==t?void 0:t.id)&&void 0!==ht?ht:null,created_time:null!==(ft=null==t?void 0:t.id)&&void 0!==ft?ft:null,pos_key:null!==(mt=null==t?void 0:t.id)&&void 0!==mt?mt:null,pos_status:null!==(_t=null==t?void 0:t.id)&&void 0!==_t?_t:null,invoice:{id:null!==(gt=null===(yt=null==t?void 0:t.invoice)||void 0===yt?void 0:yt.id)&&void 0!==gt?gt:null,checkout_id:null!==(xt=null===(bt=null==t?void 0:t.invoice)||void 0===bt?void 0:bt.checkout_id)&&void 0!==xt?xt:null,customer_id:null!==(wt=null===(Ot=null==t?void 0:t.invoice)||void 0===Ot?void 0:Ot.customer_id)&&void 0!==wt?wt:null,customer_name:null!==(kt=null===(Et=null==t?void 0:t.invoice)||void 0===Et?void 0:Et.customer_name)&&void 0!==kt?kt:null,customer_phone:null!==(Ct=null===(St=null==t?void 0:t.invoice)||void 0===St?void 0:St.customer_phone)&&void 0!==Ct?Ct:null,promotion_code:null!==(At=null===(Rt=null==t?void 0:t.invoice)||void 0===Rt?void 0:Rt.promotion_code)&&void 0!==At?At:null,redeem_id:null!==(Pt=null===(Tt=null==t?void 0:t.invoice)||void 0===Tt?void 0:Tt.redeem_id)&&void 0!==Pt?Pt:null,total_discount:null!==(Dt=null===(It=null==t?void 0:t.invoice)||void 0===It?void 0:It.total_discount)&&void 0!==Dt?Dt:null,has_tax:null!==($t=null===(qt=null==t?void 0:t.invoice)||void 0===qt?void 0:qt.has_tax)&&void 0!==$t?$t:null,tax_price:null!==(Ut=null===(Nt=null==t?void 0:t.invoice)||void 0===Nt?void 0:Nt.tax_price)&&void 0!==Ut?Ut:null,total_before_discount:null!==(jt=null===(Lt=null==t?void 0:t.invoice)||void 0===Lt?void 0:Lt.total_before_discount)&&void 0!==jt?jt:null,total_after_discount:null!==(Bt=null===(Mt=null==t?void 0:t.invoice)||void 0===Mt?void 0:Mt.total_after_discount)&&void 0!==Bt?Bt:null,total_after_tax:null!==(Ht=null===(Ft=null==t?void 0:t.invoice)||void 0===Ft?void 0:Ft.total_after_tax)&&void 0!==Ht?Ht:null,payment_method:null!==(Gt=null===(Yt=null==t?void 0:t.invoice)||void 0===Yt?void 0:Yt.payment_method)&&void 0!==Gt?Gt:null,employee_id:null!==(Kt=null===(Vt=null==t?void 0:t.invoice)||void 0===Vt?void 0:Vt.employee_id)&&void 0!==Kt?Kt:null,employee_name:null!==(zt=null===(Wt=null==t?void 0:t.invoice)||void 0===Wt?void 0:Wt.employee_name)&&void 0!==zt?zt:null,status:null!==(Xt=null===(Jt=null==t?void 0:t.invoice)||void 0===Jt?void 0:Jt.status)&&void 0!==Xt?Xt:null,created_at:null!==(Zt=null===(Qt=null==t?void 0:t.invoice)||void 0===Qt?void 0:Qt.created_at)&&void 0!==Zt?Zt:null,updated_at:null!==(ee=null===(te=null==t?void 0:t.invoice)||void 0===te?void 0:te.updated_at)&&void 0!==ee?ee:null,type:null!==(ne=null===(ie=null==t?void 0:t.invoice)||void 0===ie?void 0:ie.type)&&void 0!==ne?ne:null},customer_point:null!==(oe=null==t?void 0:t.id)&&void 0!==oe?oe:null,order_discount:(null==t?void 0:t.order_discount)?null==t?void 0:t.order_discount.map((t=>function(t){var e,i,n,o,l,u,r,d,s,a,c;return{id:null!==(e=null==t?void 0:t.id)&&void 0!==e?e:null,order_id:null!==(i=null==t?void 0:t.order_id)&&void 0!==i?i:null,item_type:null!==(n=null==t?void 0:t.item_type)&&void 0!==n?n:null,item_id:null!==(o=null==t?void 0:t.item_id)&&void 0!==o?o:null,discount_type:null!==(l=null==t?void 0:t.discount_type)&&void 0!==l?l:null,discount_value:null!==(u=null==t?void 0:t.discount_value)&&void 0!==u?u:null,created_at:null!==(r=null==t?void 0:t.created_at)&&void 0!==r?r:null,updated_at:null!==(d=null==t?void 0:t.updated_at)&&void 0!==d?d:null,status:null!==(s=null==t?void 0:t.status)&&void 0!==s?s:null,total_value:null!==(a=null==t?void 0:t.total_value)&&void 0!==a?a:null,total_discount:null!==(c=null==t?void 0:t.total_discount)&&void 0!==c?c:null}}(t))):null,checkin_services:null!==(le=null==t?void 0:t.id)&&void 0!==le?le:null,checkin_staffs:null!==(ue=null==t?void 0:t.id)&&void 0!==ue?ue:null,services:(null==t?void 0:t.order_discount)?null==t?void 0:t.order_discount.map((t=>function(t){return{staff_name:null==t?void 0:t.staff_name,items:(null==t?void 0:t.items)?null==t?void 0:t.items.map((t=>function(t){var e,i,n,o,l,u,r,d,s,a,c;return{item_name:null!==(e=null==t?void 0:t.item_name)&&void 0!==e?e:null,quantity:null!==(i=null==t?void 0:t.quantity)&&void 0!==i?i:null,price:null!==(n=null==t?void 0:t.price)&&void 0!==n?n:null,supply_share:null!==(o=null==t?void 0:t.supply_share)&&void 0!==o?o:null,base_service_price:null!==(l=null==t?void 0:t.base_service_price)&&void 0!==l?l:null,card_charge_value:null!==(u=null==t?void 0:t.card_charge_value)&&void 0!==u?u:null,discount_charge_value:null!==(r=null==t?void 0:t.discount_charge_value)&&void 0!==r?r:null,tip_paid:null!==(d=null==t?void 0:t.tip_paid)&&void 0!==d?d:null,tip_on_credit_card_share:null!==(s=null==t?void 0:t.tip_on_credit_card_share)&&void 0!==s?s:null,commission:null!==(a=null==t?void 0:t.commission)&&void 0!==a?a:null,cash_discount:null!==(c=null==t?void 0:t.cash_discount)&&void 0!==c?c:null}}(t))):null}}(t))):null,staffs:(null==t?void 0:t.order_discount)?null==t?void 0:t.order_discount.map((t=>function(t){var e,i,n;return{employee_name:null!==(e=null==t?void 0:t.employee_name)&&void 0!==e?e:null,employee_image:null!==(i=null==t?void 0:t.employee_image)&&void 0!==i?i:null,employee_color:null!==(n=null==t?void 0:t.employee_color)&&void 0!==n?n:null}}(t))):null,payment_payment_id:null!==(re=null==t?void 0:t.id)&&void 0!==re?re:null,payment_order_id:null!==(de=null==t?void 0:t.id)&&void 0!==de?de:null,order_batch:{card_amount:null!==(ae=null===(se=null==t?void 0:t.order_batch)||void 0===se?void 0:se.card_amount)&&void 0!==ae?ae:null,cash_amount:null!==(ve=null===(ce=null==t?void 0:t.order_batch)||void 0===ce?void 0:ce.cash_amount)&&void 0!==ve?ve:null,check_amount:null!==(he=null===(pe=null==t?void 0:t.order_batch)||void 0===pe?void 0:pe.check_amount)&&void 0!==he?he:null,giftcard_amount:null!==(me=null===(fe=null==t?void 0:t.order_batch)||void 0===fe?void 0:fe.giftcard_amount)&&void 0!==me?me:null,ach_amount:null!==(ye=null===(_e=null==t?void 0:t.order_batch)||void 0===_e?void 0:_e.ach_amount)&&void 0!==ye?ye:null,external_cc_amount:null!==(be=null===(ge=null==t?void 0:t.order_batch)||void 0===ge?void 0:ge.external_cc_amount)&&void 0!==be?be:null,subtotal:null!==(Oe=null===(xe=null==t?void 0:t.order_batch)||void 0===xe?void 0:xe.subtotal)&&void 0!==Oe?Oe:null,tax:null!==(Ee=null===(we=null==t?void 0:t.order_batch)||void 0===we?void 0:we.tax)&&void 0!==Ee?Ee:null,tip:null!==(Se=null===(ke=null==t?void 0:t.order_batch)||void 0===ke?void 0:ke.tip)&&void 0!==Se?Se:null,discount:null!==(Re=null===(Ce=null==t?void 0:t.order_batch)||void 0===Ce?void 0:Ce.discount)&&void 0!==Re?Re:null,redeem:null!==(Te=null===(Ae=null==t?void 0:t.order_batch)||void 0===Ae?void 0:Ae.redeem)&&void 0!==Te?Te:null,total_income:null!==(Ie=null===(Pe=null==t?void 0:t.order_batch)||void 0===Pe?void 0:Pe.total_income)&&void 0!==Ie?Ie:null,cash_discount:null!==(qe=null===(De=null==t?void 0:t.order_batch)||void 0===De?void 0:De.cash_discount)&&void 0!==qe?qe:null,change:null!==(Ne=null===($e=null==t?void 0:t.order_batch)||void 0===$e?void 0:$e.change)&&void 0!==Ne?Ne:null},visit_count:null!==(Ue=null==t?void 0:t.id)&&void 0!==Ue?Ue:null,refund_amount:null!==(Le=null==t?void 0:t.id)&&void 0!==Le?Le:null,last_four:null!==(je=null==t?void 0:t.id)&&void 0!==je?je:null,card_type:null!==(Me=null==t?void 0:t.id)&&void 0!==Me?Me:null,entry_type:null!==(Be=null==t?void 0:t.id)&&void 0!==Be?Be:null,payment_history:null!==(Fe=null==t?void 0:t.id)&&void 0!==Fe?Fe:null,amount_info:null!==(He=null==t?void 0:t.id)&&void 0!==He?He:null,customer_type:null!==(Ye=null==t?void 0:t.id)&&void 0!==Ye?Ye:null,order_payment_method:(null==t?void 0:t.order_payment_method)?null==t?void 0:t.order_payment_method.map((t=>function(t){var e,i,n,o,l,u,r,d;return{id:null!==(e=null==t?void 0:t.id)&&void 0!==e?e:null,order_id:null!==(i=null==t?void 0:t.order_id)&&void 0!==i?i:null,payment_method_type:null!==(n=null==t?void 0:t.payment_method_type)&&void 0!==n?n:null,payment_method_name:null!==(o=null==t?void 0:t.payment_method_name)&&void 0!==o?o:null,total_paid:null!==(l=null==t?void 0:t.total_paid)&&void 0!==l?l:null,created_at:null!==(u=null==t?void 0:t.created_at)&&void 0!==u?u:null,updated_at:null!==(r=null==t?void 0:t.updated_at)&&void 0!==r?r:null,status:null!==(d=null==t?void 0:t.status)&&void 0!==d?d:null}}(t))):null,deposit:null!==(Ge=null==t?void 0:t.id)&&void 0!==Ge?Ge:null,product_subtotal:null!==(Ve=null==t?void 0:t.id)&&void 0!==Ve?Ve:null,service_subtotal:null!==(Ke=null==t?void 0:t.id)&&void 0!==Ke?Ke:null,staff_code:null!==(We=null==t?void 0:t.id)&&void 0!==We?We:null}}(null===(e=null==i?void 0:i.result)||void 0===e?void 0:e.data)}))}static getOrderHistoryList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkout/history/info",query:t})}))}static getReportCheckIn(t){return d(this,void 0,void 0,(function*(){return function(t){var e,i,n,o,l,u;return{all:null!==(e=null==t?void 0:t.all)&&void 0!==e?e:null,pending:null!==(i=null==t?void 0:t.pending)&&void 0!==i?i:null,processing:null!==(n=null==t?void 0:t.processing)&&void 0!==n?n:null,cancelled:null!==(o=null==t?void 0:t.cancelled)&&void 0!==o?o:null,done:null!==(l=null==t?void 0:t.done)&&void 0!==l?l:null,settlement_fail:null!==(u=null==t?void 0:t.settlement_fail)&&void 0!==u?u:null}}((yield this.client.get({path:"/v1/pos/checkin/site/dash-board-report",query:t})).result.data)}))}static updateOrderStaff(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/update-staff",data:t})}))}static removeOrder(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/order/remove-order",data:t})}))}static exportOrder(t){return d(this,void 0,void 0,(function*(){const e=yield this.client.get({path:"/v1/pos/checkin/site/export",query:t});let i=H();F()(e,`export-orders-${G()().format(i)}.xls`)}))}}function K(t){var e,i,n,o,l,u,r,d,s,a,c,v,p,h,f;return{user_id:null!==(e=null==t?void 0:t.user_id)&&void 0!==e?e:null,name:null!==(i=null==t?void 0:t.name)&&void 0!==i?i:null,image_url:null!==(n=null==t?void 0:t.image_url)&&void 0!==n?n:null,color_code:null!==(o=null==t?void 0:t.color_code)&&void 0!==o?o:null,income:null!==(l=null==t?void 0:t.income)&&void 0!==l?l:null,commission:null!==(u=null==t?void 0:t.commission)&&void 0!==u?u:null,cash_income:null!==(r=null==t?void 0:t.cash_income)&&void 0!==r?r:null,check_income:null!==(d=null==t?void 0:t.check_income)&&void 0!==d?d:null,card_charge:null!==(s=null==t?void 0:t.card_charge)&&void 0!==s?s:null,supply_share:null!==(a=null==t?void 0:t.supply_share)&&void 0!==a?a:null,salary:null!==(c=null==t?void 0:t.salary)&&void 0!==c?c:null,tip:null!==(v=null==t?void 0:t.tip)&&void 0!==v?v:null,total_commission:null!==(p=null==t?void 0:t.total_commission)&&void 0!==p?p:null,working_hour:null!==(h=null==t?void 0:t.working_hour)&&void 0!==h?h:null,wage_per_hours:null!==(f=null==t?void 0:t.wage_per_hours)&&void 0!==f?f:null,list_detail:(null==t?void 0:t.list_detail)?null==t?void 0:t.list_detail.map((t=>function(t){return{date:null==t?void 0:t.date,final_commission:null==t?void 0:t.final_commission}}(t))):null}}class W extends k{static getPayrollList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"v1/pos/payroll/site/list-payroll",query:t})}))}static getPayrollSetting(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/setting/site/payroll-setting",query:t})}))}static approvePayroll(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/payroll/form/approve-payroll",data:t})}))}static updatePayrollSetting(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/setting/form/update-payroll",data:t})}))}static getDiscountSetting(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/setting/site/discount-setting",query:t})}))}static updateDiscountSetting(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/setting/form/update-discount",data:t})}))}static getCashDiscountSetting(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/cashdiscount/setting/get",query:t})}))}static updateCashDiscountSetting(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/cashdiscount/setting/change",data:t})}))}static getIncomeDetail(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/payroll/staff/income-detail",query:t})}))}static getApprovePayroll(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/payroll/site/approve-period",query:t})}))}static exportPayroll(t){return d(this,void 0,void 0,(function*(){const e=yield this.client.get({path:"v1/pos/payroll/site/export-payroll",query:t}),i=H();F()(e.data,`${G()().format(i)}.xlsx`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")}))}static exportApprovePayroll(t){return d(this,void 0,void 0,(function*(){const e=yield this.client.get({path:"/v1/pos/payroll/site/export-approve-payroll",query:t}),i=H();F()(e.data,`${G()().format(i)}.xlsx`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")}))}static exportIncomeDetail(t){return d(this,void 0,void 0,(function*(){const e=yield this.client.get({path:"/v1/pos/payroll/staff/export-income-detail",query:t}),i=H();F()(e.data,`${G()().format(i)}.xlsx`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")}))}static getSalaryChart(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/payroll/site/salary-chart",query:t})}))}static getAppListPayroll(t){var e;return d(this,void 0,void 0,(function*(){const i=yield this.client.get({path:"/v1/pos/payroll/site/app-list-payroll",query:t});return((null===(e=null==i?void 0:i.result)||void 0===e?void 0:e.data)||[]).map((t=>function(t){var e,i,n,o;return{payroll_id:null!==(e=null==t?void 0:t.payroll)&&void 0!==e?e:null,start_date:null!==(i=null==t?void 0:t.start_date)&&void 0!==i?i:null,end_date:null!==(n=null==t?void 0:t.end_date)&&void 0!==n?n:null,total_income:null!==(o=null==t?void 0:t.total_income)&&void 0!==o?o:null,employee_list:(null==t?void 0:t.employee_list)?null==t?void 0:t.employee_list.map((t=>K(t))):null}}(t)))}))}static getPayrollDetail(t){var e;return d(this,void 0,void 0,(function*(){const i=yield this.client.get({path:"/v1/pos/payroll/site/get-payroll-detail",query:t});return((null===(e=null==i?void 0:i.result)||void 0===e?void 0:e.data)||[]).map((t=>K(t)))}))}}W.API_VERSION=e.V1;class z extends k{static getPrinterList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:S,query:t})}))}static getPrinterDetail(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:S,query:t})}))}static createPrinterInfo(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:S,data:t})}))}static updatePrinterInfo(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:S,query:t})}))}}class J extends k{static getServiceList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/service/site/list",query:t})}))}}class X extends k{static getTurnValue(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/setting/site/get-turn-value",query:t})}))}static postTurnUpdateValue(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/setting/form/update-turn-value",data:t})}))}}class Q extends k{static getStaffList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/staff/site/list",query:t})}))}static getStaffListByCheckout(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/staff/site/list-by-checkout",query:t})}))}}class Z extends k{static getTicketList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/ticket/site/info",query:t})}))}static createTicketTemplate(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ticket/form/create",data:t})}))}static deleteTicketTemplate(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/ticket/form/delete",query:t})}))}static updateTicketTemplate(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ticket/form/update",query:t,data:t})}))}static moveSubject(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ticket/form/subject-move",data:t})}))}static setDefaultTicketTemplate(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ticket/site/set-default-ticket-template",data:t})}))}static getTicketTemplate(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/ticket/site/template",query:t})}))}}class tt extends k{static getTimeKeepingList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/timekeeping/site/list",query:t})}))}static addTimeKeeping(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/timekeeping/form/create",data:t})}))}static updateTimeKeeping(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/timekeeping/form/edit-time",data:t})}))}static removeTimeKeeping(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/timekeeping/form/delete-time",data:t})}))}static getTimeKeepingListStaff(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/timekeeping/site/list-staff",query:t})}))}static postTimeKeepingCheckIn(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/timekeeping/form/add-checkin-time",data:t})}))}static postTimeKeepingCheckOut(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/timekeeping/form/add-checkout-time",data:t})}))}}class et extends k{}class it extends k{static postLogin(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/user/form/login",data:t})}))}}const nt={[e.V1]:r},ot={Context:g,PosClientApi:class{constructor(t,e,i,n){k.setClient(t,e,i,n);const o=(t=>{if(!nt[t])throw new Error("Can't not find API of this version!");return nt[t]})(n);this.appointment=o.Appointment,this.batch_history=o.BatchHistory,this.business=o.Business,this.call=o.Call,this.category=o.Category,this.check_in=o.CheckIn,this.check_out=o.CheckOut,this.combo=o.Combo,this.customer=o.Customer,this.gift_card=o.GiftCard,this.income=o.Income,this.key_storage=o.KeyStorage,this.order=o.Order,this.payroll=o.Payroll,this.printer=o.Printer,this.service=o.Service,this.setting_turn=o.SettingTurn,this.staff=o.Staff,this.ticket=o.Ticket,this.time_keeping=o.TimeKeeping,this.unsubscribe_contact=o.UnsubscribeContact,this.user=o.User}},Errors:t};window.Gap=ot;const lt=ot})(),n})()));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.GapSdk=e():t.GapSdk=e()}(self,(()=>(()=>{var t={669:(t,e,i)=>{t.exports=i(609)},448:(t,e,i)=>{"use strict";var n=i(867),o=i(26),l=i(372),u=i(327),r=i(97),d=i(109),s=i(985),a=i(874),c=i(648),v=i(644),p=i(205);t.exports=function(t){return new Promise((function(e,i){var h,f=t.data,m=t.headers,_=t.responseType;function y(){t.cancelToken&&t.cancelToken.unsubscribe(h),t.signal&&t.signal.removeEventListener("abort",h)}n.isFormData(f)&&n.isStandardBrowserEnv()&&delete m["Content-Type"];var g=new XMLHttpRequest;if(t.auth){var b=t.auth.username||"",x=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";m.Authorization="Basic "+btoa(b+":"+x)}var O=r(t.baseURL,t.url);function w(){if(g){var n="getAllResponseHeaders"in g?d(g.getAllResponseHeaders()):null,l={data:_&&"text"!==_&&"json"!==_?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:n,config:t,request:g};o((function(t){e(t),y()}),(function(t){i(t),y()}),l),g=null}}if(g.open(t.method.toUpperCase(),u(O,t.params,t.paramsSerializer),!0),g.timeout=t.timeout,"onloadend"in g?g.onloadend=w:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(w)},g.onabort=function(){g&&(i(new c("Request aborted",c.ECONNABORTED,t,g)),g=null)},g.onerror=function(){i(new c("Network Error",c.ERR_NETWORK,t,g,g)),g=null},g.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",n=t.transitional||a;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),i(new c(e,n.clarifyTimeoutError?c.ETIMEDOUT:c.ECONNABORTED,t,g)),g=null},n.isStandardBrowserEnv()){var E=(t.withCredentials||s(O))&&t.xsrfCookieName?l.read(t.xsrfCookieName):void 0;E&&(m[t.xsrfHeaderName]=E)}"setRequestHeader"in g&&n.forEach(m,(function(t,e){void 0===f&&"content-type"===e.toLowerCase()?delete m[e]:g.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(g.withCredentials=!!t.withCredentials),_&&"json"!==_&&(g.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&g.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(h=function(t){g&&(i(!t||t&&t.type?new v:t),g.abort(),g=null)},t.cancelToken&&t.cancelToken.subscribe(h),t.signal&&(t.signal.aborted?h():t.signal.addEventListener("abort",h))),f||(f=null);var k=p(O);k&&-1===["http","https","file"].indexOf(k)?i(new c("Unsupported protocol "+k+":",c.ERR_BAD_REQUEST,t)):g.send(f)}))}},609:(t,e,i)=>{"use strict";var n=i(867),o=i(849),l=i(321),u=i(185),r=function t(e){var i=new l(e),r=o(l.prototype.request,i);return n.extend(r,l.prototype,i),n.extend(r,i),r.create=function(i){return t(u(e,i))},r}(i(546));r.Axios=l,r.CanceledError=i(644),r.CancelToken=i(972),r.isCancel=i(502),r.VERSION=i(288).version,r.toFormData=i(675),r.AxiosError=i(648),r.Cancel=r.CanceledError,r.all=function(t){return Promise.all(t)},r.spread=i(713),r.isAxiosError=i(268),t.exports=r,t.exports.default=r},972:(t,e,i)=>{"use strict";var n=i(644);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var i=this;this.promise.then((function(t){if(i._listeners){var e,n=i._listeners.length;for(e=0;e<n;e++)i._listeners[e](t);i._listeners=null}})),this.promise.then=function(t){var e,n=new Promise((function(t){i.subscribe(t),e=t})).then(t);return n.cancel=function(){i.unsubscribe(e)},n},t((function(t){i.reason||(i.reason=new n(t),e(i.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},o.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},644:(t,e,i)=>{"use strict";var n=i(648);function o(t){n.call(this,null==t?"canceled":t,n.ERR_CANCELED),this.name="CanceledError"}i(867).inherits(o,n,{__CANCEL__:!0}),t.exports=o},502:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:(t,e,i)=>{"use strict";var n=i(867),o=i(327),l=i(782),u=i(572),r=i(185),d=i(97),s=i(875),a=s.validators;function c(t){this.defaults=t,this.interceptors={request:new l,response:new l}}c.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=r(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var i=e.transitional;void 0!==i&&s.assertOptions(i,{silentJSONParsing:a.transitional(a.boolean),forcedJSONParsing:a.transitional(a.boolean),clarifyTimeoutError:a.transitional(a.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(o=o&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var l,d=[];if(this.interceptors.response.forEach((function(t){d.push(t.fulfilled,t.rejected)})),!o){var c=[u,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(d),l=Promise.resolve(e);c.length;)l=l.then(c.shift(),c.shift());return l}for(var v=e;n.length;){var p=n.shift(),h=n.shift();try{v=p(v)}catch(t){h(t);break}}try{l=u(v)}catch(t){return Promise.reject(t)}for(;d.length;)l=l.then(d.shift(),d.shift());return l},c.prototype.getUri=function(t){t=r(this.defaults,t);var e=d(t.baseURL,t.url);return o(e,t.params,t.paramsSerializer)},n.forEach(["delete","get","head","options"],(function(t){c.prototype[t]=function(e,i){return this.request(r(i||{},{method:t,url:e,data:(i||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){function e(e){return function(i,n,o){return this.request(r(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}c.prototype[t]=e(),c.prototype[t+"Form"]=e(!0)})),t.exports=c},648:(t,e,i)=>{"use strict";var n=i(867);function o(t,e,i,n,o){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),i&&(this.config=i),n&&(this.request=n),o&&(this.response=o)}n.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var l=o.prototype,u={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(t){u[t]={value:t}})),Object.defineProperties(o,u),Object.defineProperty(l,"isAxiosError",{value:!0}),o.from=function(t,e,i,u,r,d){var s=Object.create(l);return n.toFlatObject(t,s,(function(t){return t!==Error.prototype})),o.call(s,t.message,e,i,u,r),s.name=t.name,d&&Object.assign(s,d),s},t.exports=o},782:(t,e,i)=>{"use strict";var n=i(867);function o(){this.handlers=[]}o.prototype.use=function(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},97:(t,e,i)=>{"use strict";var n=i(793),o=i(303);t.exports=function(t,e){return t&&!n(e)?o(t,e):e}},572:(t,e,i)=>{"use strict";var n=i(867),o=i(527),l=i(502),u=i(546),r=i(644);function d(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new r}t.exports=function(t){return d(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||u.adapter)(t).then((function(e){return d(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return l(e)||(d(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},185:(t,e,i)=>{"use strict";var n=i(867);t.exports=function(t,e){e=e||{};var i={};function o(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function l(i){return n.isUndefined(e[i])?n.isUndefined(t[i])?void 0:o(void 0,t[i]):o(t[i],e[i])}function u(t){if(!n.isUndefined(e[t]))return o(void 0,e[t])}function r(i){return n.isUndefined(e[i])?n.isUndefined(t[i])?void 0:o(void 0,t[i]):o(void 0,e[i])}function d(i){return i in e?o(t[i],e[i]):i in t?o(void 0,t[i]):void 0}var s={url:u,method:u,data:u,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:d};return n.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=s[t]||l,o=e(t);n.isUndefined(o)&&e!==d||(i[t]=o)})),i}},26:(t,e,i)=>{"use strict";var n=i(648);t.exports=function(t,e,i){var o=i.config.validateStatus;i.status&&o&&!o(i.status)?e(new n("Request failed with status code "+i.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):t(i)}},527:(t,e,i)=>{"use strict";var n=i(867),o=i(546);t.exports=function(t,e,i){var l=this||o;return n.forEach(i,(function(i){t=i.call(l,t,e)})),t}},546:(t,e,i)=>{"use strict";var n=i(867),o=i(16),l=i(648),u=i(874),r=i(675),d={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var a,c={transitional:u,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(a=i(448)),a),transformRequest:[function(t,e){if(o(e,"Accept"),o(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t))return t;if(n.isArrayBufferView(t))return t.buffer;if(n.isURLSearchParams(t))return s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var i,l=n.isObject(t),u=e&&e["Content-Type"];if((i=n.isFileList(t))||l&&"multipart/form-data"===u){var d=this.env&&this.env.FormData;return r(i?{"files[]":t}:t,d&&new d)}return l||"application/json"===u?(s(e,"application/json"),function(t,e,i){if(n.isString(t))try{return(0,JSON.parse)(t),n.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||c.transitional,i=e&&e.silentJSONParsing,o=e&&e.forcedJSONParsing,u=!i&&"json"===this.responseType;if(u||o&&n.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(u){if("SyntaxError"===t.name)throw l.from(t,l.ERR_BAD_RESPONSE,this,null,this.response);throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:i(623)},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){c.headers[t]=n.merge(d)})),t.exports=c},874:t=>{"use strict";t.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},288:t=>{t.exports={version:"0.27.2"}},849:t=>{"use strict";t.exports=function(t,e){return function(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];return t.apply(e,i)}}},327:(t,e,i)=>{"use strict";var n=i(867);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,i){if(!e)return t;var l;if(i)l=i(e);else if(n.isURLSearchParams(e))l=e.toString();else{var u=[];n.forEach(e,(function(t,e){null!=t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),u.push(o(e)+"="+o(t))})))})),l=u.join("&")}if(l){var r=t.indexOf("#");-1!==r&&(t=t.slice(0,r)),t+=(-1===t.indexOf("?")?"?":"&")+l}return t}},303:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},372:(t,e,i)=>{"use strict";var n=i(867);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,i,o,l,u){var r=[];r.push(t+"="+encodeURIComponent(e)),n.isNumber(i)&&r.push("expires="+new Date(i).toGMTString()),n.isString(o)&&r.push("path="+o),n.isString(l)&&r.push("domain="+l),!0===u&&r.push("secure"),document.cookie=r.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}},268:(t,e,i)=>{"use strict";var n=i(867);t.exports=function(t){return n.isObject(t)&&!0===t.isAxiosError}},985:(t,e,i)=>{"use strict";var n=i(867);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function o(t){var n=t;return e&&(i.setAttribute("href",n),n=i.href),i.setAttribute("href",n),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return t=o(window.location.href),function(e){var i=n.isString(e)?o(e):e;return i.protocol===t.protocol&&i.host===t.host}}():function(){return!0}},16:(t,e,i)=>{"use strict";var n=i(867);t.exports=function(t,e){n.forEach(t,(function(i,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=i,delete t[n])}))}},623:t=>{t.exports=null},109:(t,e,i)=>{"use strict";var n=i(867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,i,l,u={};return t?(n.forEach(t.split("\n"),(function(t){if(l=t.indexOf(":"),e=n.trim(t.substr(0,l)).toLowerCase(),i=n.trim(t.substr(l+1)),e){if(u[e]&&o.indexOf(e)>=0)return;u[e]="set-cookie"===e?(u[e]?u[e]:[]).concat([i]):u[e]?u[e]+", "+i:i}})),u):u}},205:t=>{"use strict";t.exports=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}},713:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},675:(t,e,i)=>{"use strict";var n=i(867);t.exports=function(t,e){e=e||new FormData;var i=[];function o(t){return null===t?"":n.isDate(t)?t.toISOString():n.isArrayBuffer(t)||n.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(l,u){if(n.isPlainObject(l)||n.isArray(l)){if(-1!==i.indexOf(l))throw Error("Circular reference detected in "+u);i.push(l),n.forEach(l,(function(i,l){if(!n.isUndefined(i)){var r,d=u?u+"."+l:l;if(i&&!u&&"object"==typeof i)if(n.endsWith(l,"{}"))i=JSON.stringify(i);else if(n.endsWith(l,"[]")&&(r=n.toArray(i)))return void r.forEach((function(t){!n.isUndefined(t)&&e.append(d,o(t))}));t(i,d)}})),i.pop()}else e.append(u,o(l))}(t),e}},875:(t,e,i)=>{"use strict";var n=i(288).version,o=i(648),l={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){l[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}}));var u={};l.transitional=function(t,e,i){function l(t,e){return"[Axios v"+n+"] Transitional option '"+t+"'"+e+(i?". "+i:"")}return function(i,n,r){if(!1===t)throw new o(l(n," has been removed"+(e?" in "+e:"")),o.ERR_DEPRECATED);return e&&!u[n]&&(u[n]=!0,console.warn(l(n," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(i,n,r)}},t.exports={assertOptions:function(t,e,i){if("object"!=typeof t)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(t),l=n.length;l-- >0;){var u=n[l],r=e[u];if(r){var d=t[u],s=void 0===d||r(d,u,t);if(!0!==s)throw new o("option "+u+" must be "+s,o.ERR_BAD_OPTION_VALUE)}else if(!0!==i)throw new o("Unknown option "+u,o.ERR_BAD_OPTION)}},validators:l}},867:(t,e,i)=>{"use strict";var n,o=i(849),l=Object.prototype.toString,u=(n=Object.create(null),function(t){var e=l.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())});function r(t){return t=t.toLowerCase(),function(e){return u(e)===t}}function d(t){return Array.isArray(t)}function s(t){return void 0===t}var a=r("ArrayBuffer");function c(t){return null!==t&&"object"==typeof t}function v(t){if("object"!==u(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var p=r("Date"),h=r("File"),f=r("Blob"),m=r("FileList");function _(t){return"[object Function]"===l.call(t)}var y=r("URLSearchParams");function g(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),d(t))for(var i=0,n=t.length;i<n;i++)e.call(null,t[i],i,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}var b,x=(b="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(t){return b&&t instanceof b});t.exports={isArray:d,isArrayBuffer:a,isBuffer:function(t){return null!==t&&!s(t)&&null!==t.constructor&&!s(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){var e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||l.call(t)===e||_(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&a(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:c,isPlainObject:v,isUndefined:s,isDate:p,isFile:h,isBlob:f,isFunction:_,isStream:function(t){return c(t)&&_(t.pipe)},isURLSearchParams:y,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:g,merge:function t(){var e={};function i(i,n){v(e[n])&&v(i)?e[n]=t(e[n],i):v(i)?e[n]=t({},i):d(i)?e[n]=i.slice():e[n]=i}for(var n=0,o=arguments.length;n<o;n++)g(arguments[n],i);return e},extend:function(t,e,i){return g(e,(function(e,n){t[n]=i&&"function"==typeof e?o(e,i):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t},inherits:function(t,e,i,n){t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,i&&Object.assign(t.prototype,i)},toFlatObject:function(t,e,i){var n,o,l,u={};e=e||{};do{for(o=(n=Object.getOwnPropertyNames(t)).length;o-- >0;)u[l=n[o]]||(e[l]=t[l],u[l]=!0);t=Object.getPrototypeOf(t)}while(t&&(!i||i(t,e))&&t!==Object.prototype);return e},kindOf:u,kindOfTest:r,endsWith:function(t,e,i){t=String(t),(void 0===i||i>t.length)&&(i=t.length),i-=e.length;var n=t.indexOf(e,i);return-1!==n&&n===i},toArray:function(t){if(!t)return null;var e=t.length;if(s(e))return null;for(var i=new Array(e);e-- >0;)i[e]=t[e];return i},isTypedArray:x,isFileList:m}},484:function(t){t.exports=function(){"use strict";var t=6e4,e=36e5,i="millisecond",n="second",o="minute",l="hour",u="day",r="week",d="month",s="quarter",a="year",c="date",v="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(t,e,i){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(i)+t},_={s:m,z:function(t){var e=-t.utcOffset(),i=Math.abs(e),n=Math.floor(i/60),o=i%60;return(e<=0?"+":"-")+m(n,2,"0")+":"+m(o,2,"0")},m:function t(e,i){if(e.date()<i.date())return-t(i,e);var n=12*(i.year()-e.year())+(i.month()-e.month()),o=e.clone().add(n,d),l=i-o<0,u=e.clone().add(n+(l?-1:1),d);return+(-(n+(i-o)/(l?o-u:u-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:d,y:a,w:r,d:u,D:c,h:l,m:o,s:n,ms:i,Q:s}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",g={};g[y]=f;var b=function(t){return t instanceof E},x=function t(e,i,n){var o;if(!e)return y;if("string"==typeof e){var l=e.toLowerCase();g[l]&&(o=l),i&&(g[l]=i,o=l);var u=e.split("-");if(!o&&u.length>1)return t(u[0])}else{var r=e.name;g[r]=e,o=r}return!n&&o&&(y=o),o||!n&&y},O=function(t,e){if(b(t))return t.clone();var i="object"==typeof e?e:{};return i.date=t,i.args=arguments,new E(i)},w=_;w.l=x,w.i=b,w.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var E=function(){function f(t){this.$L=x(t.locale,null,!0),this.parse(t)}var m=f.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,i=t.utc;if(null===e)return new Date(NaN);if(w.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(p);if(n){var o=n[2]-1||0,l=(n[7]||"0").substring(0,3);return i?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,l)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,l)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return w},m.isValid=function(){return!(this.$d.toString()===v)},m.isSame=function(t,e){var i=O(t);return this.startOf(e)<=i&&i<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,i){return w.u(t)?this[e]:this.set(i,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var i=this,s=!!w.u(e)||e,v=w.p(t),p=function(t,e){var n=w.w(i.$u?Date.UTC(i.$y,e,t):new Date(i.$y,e,t),i);return s?n:n.endOf(u)},h=function(t,e){return w.w(i.toDate()[t].apply(i.toDate("s"),(s?[0,0,0,0]:[23,59,59,999]).slice(e)),i)},f=this.$W,m=this.$M,_=this.$D,y="set"+(this.$u?"UTC":"");switch(v){case a:return s?p(1,0):p(31,11);case d:return s?p(1,m):p(0,m+1);case r:var g=this.$locale().weekStart||0,b=(f<g?f+7:f)-g;return p(s?_-b:_+(6-b),m);case u:case c:return h(y+"Hours",0);case l:return h(y+"Minutes",1);case o:return h(y+"Seconds",2);case n:return h(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var r,s=w.p(t),v="set"+(this.$u?"UTC":""),p=(r={},r[u]=v+"Date",r[c]=v+"Date",r[d]=v+"Month",r[a]=v+"FullYear",r[l]=v+"Hours",r[o]=v+"Minutes",r[n]=v+"Seconds",r[i]=v+"Milliseconds",r)[s],h=s===u?this.$D+(e-this.$W):e;if(s===d||s===a){var f=this.clone().set(c,1);f.$d[p](h),f.init(),this.$d=f.set(c,Math.min(this.$D,f.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[w.p(t)]()},m.add=function(i,s){var c,v=this;i=Number(i);var p=w.p(s),h=function(t){var e=O(v);return w.w(e.date(e.date()+Math.round(t*i)),v)};if(p===d)return this.set(d,this.$M+i);if(p===a)return this.set(a,this.$y+i);if(p===u)return h(1);if(p===r)return h(7);var f=(c={},c[o]=t,c[l]=e,c[n]=1e3,c)[p]||1,m=this.$d.getTime()+i*f;return w.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,i=this.$locale();if(!this.isValid())return i.invalidDate||v;var n=t||"YYYY-MM-DDTHH:mm:ssZ",o=w.z(this),l=this.$H,u=this.$m,r=this.$M,d=i.weekdays,s=i.months,a=function(t,i,o,l){return t&&(t[i]||t(e,n))||o[i].slice(0,l)},c=function(t){return w.s(l%12||12,t,"0")},p=i.meridiem||function(t,e,i){var n=t<12?"AM":"PM";return i?n.toLowerCase():n},f={YY:String(this.$y).slice(-2),YYYY:this.$y,M:r+1,MM:w.s(r+1,2,"0"),MMM:a(i.monthsShort,r,s,3),MMMM:a(s,r),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:a(i.weekdaysMin,this.$W,d,2),ddd:a(i.weekdaysShort,this.$W,d,3),dddd:d[this.$W],H:String(l),HH:w.s(l,2,"0"),h:c(1),hh:c(2),a:p(l,u,!0),A:p(l,u,!1),m:String(u),mm:w.s(u,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:o};return n.replace(h,(function(t,e){return e||f[t]||o.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(i,c,v){var p,h=w.p(c),f=O(i),m=(f.utcOffset()-this.utcOffset())*t,_=this-f,y=w.m(this,f);return y=(p={},p[a]=y/12,p[d]=y,p[s]=y/3,p[r]=(_-m)/6048e5,p[u]=(_-m)/864e5,p[l]=_/e,p[o]=_/t,p[n]=_/1e3,p)[h]||_,v?y:w.a(y)},m.daysInMonth=function(){return this.endOf(d).$D},m.$locale=function(){return g[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var i=this.clone(),n=x(t,e,!0);return n&&(i.$L=n),i},m.clone=function(){return w.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},f}(),k=E.prototype;return O.prototype=k,[["$ms",i],["$s",n],["$m",o],["$H",l],["$W",u],["$M",d],["$y",a],["$D",c]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,E,O),t.$i=!0),O},O.locale=x,O.isDayjs=b,O.unix=function(t){return O(1e3*t)},O.en=g[y],O.Ls=g,O.p={},O}()},823:t=>{t.exports=function(t,e,i,n){var o=new Blob(void 0!==n?[n,t]:[t],{type:i||"application/octet-stream"});if(void 0!==window.navigator.msSaveBlob)window.navigator.msSaveBlob(o,e);else{var l=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(o):window.webkitURL.createObjectURL(o),u=document.createElement("a");u.style.display="none",u.href=l,u.setAttribute("download",e),void 0===u.download&&u.setAttribute("target","_blank"),document.body.appendChild(u),u.click(),setTimeout((function(){document.body.removeChild(u),window.URL.revokeObjectURL(l)}),200)}}}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var l=e[n]={exports:{}};return t[n].call(l.exports,l,l.exports,i),l.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";i.r(n),i.d(n,{Gap:()=>ot,GapApiVersion:()=>e,GapHeader:()=>o,Method:()=>b,Platform:()=>u,StatusCode:()=>x,UserAgent:()=>l,default:()=>lt});var t={};i.r(t),i.d(t,{GapError:()=>s,HttpInternalError:()=>m,HttpMaxRetriesError:()=>p,HttpRequestError:()=>v,HttpResponseError:()=>h,HttpRetryableError:()=>f,HttpThrottlingError:()=>_,MissingDataContextError:()=>a,RestResourceError:()=>y,UninitializedContextError:()=>c});var e,o,l,u,r={};function d(t,e,i,n){return new(i||(i=Promise))((function(o,l){function u(t){try{d(n.next(t))}catch(t){l(t)}}function r(t){try{d(n.throw(t))}catch(t){l(t)}}function d(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(u,r)}d((n=n.apply(t,e||[])).next())}))}i.r(r),i.d(r,{Appointment:()=>C,BatchHistory:()=>R,Business:()=>A,Call:()=>T,Category:()=>P,CheckIn:()=>D,CheckOut:()=>$,Combo:()=>N,Customer:()=>U,GiftCard:()=>L,Income:()=>j,KeyStorage:()=>M,Order:()=>V,Payroll:()=>W,Printer:()=>z,Service:()=>J,SettingTurn:()=>X,Staff:()=>Q,Ticket:()=>Z,TimeKeeping:()=>tt,UnsubscribeContact:()=>et,User:()=>it}),function(t){t.V1="1.0.0"}(e||(e={})),function(t){t.GClientId="G-ClientID"}(o||(o={})),function(t){t.IOS="IOS",t.ANDROID="ANDROID",t.CHROME="CHROME",t.SAFARI="SAFARI"}(l||(l={})),function(t){t.ANDROID="Android",t.IOS="iOS",t.WEB="Web",t.WINDOW="Window"}(u||(u={})),Object.create,Object.create;class s extends Error{constructor(...t){super(...t),Object.setPrototypeOf(this,new.target.prototype)}}class a extends s{}class c extends s{}class v extends s{}class p extends s{}class h extends s{constructor({message:t,code:e,statusText:i,body:n,headers:o}){super(t),this.response={code:e,statusText:i,body:n,headers:o}}}class f extends h{}class m extends f{}class _ extends f{constructor(t){var{retryAfter:e}=t;super(function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i}(t,["retryAfter"])),this.response.retryAfter=e}}class y extends s{}const g={API_KEY:"",API_SECRET_KEY:"",G_CLIENTID:"",USER_AGENT:"",API_VERSION:e.V1,initialize:function(t){const e=[];if(t.API_KEY.length||e.push("API_KEY"),t.API_SECRET_KEY.length||e.push("API_SECRET_KEY"),t.API_SECRET_KEY.length||e.push("G_CLIENTID"),e.length)throw new a(`Cannot initialize GAP Library. Missing values for: ${e.join(", ")}`);this.API_KEY=t.API_KEY,this.API_SECRET_KEY=t.API_SECRET_KEY,this.G_CLIENTID=t.G_CLIENTID,this.API_VERSION=t.API_VERSION},throwIfUninitialized:function(){if(!this.API_KEY||0===this.API_KEY.length)throw new c("Context has not been properly initialized. Please call the .initialize() method to setup your app context object.")}};var b,x,O=i(669),w=i.n(O);!function(t){t.Get="GET",t.Post="POST",t.Put="PUT",t.Patch="PATCH",t.Delete="DELETE",t.Head="HEAD",t.Options="OPTIONS",t.Connect="CONNECT"}(b||(b={})),function(t){t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.RequestEntityTooLarge=413]="RequestEntityTooLarge",t[t.RequestUriTooLong=414]="RequestUriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RequestedRangeNotSatisfiable=416]="RequestedRangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported"}(x||(x={}));class E{constructor(t,e,i,n){this.RETRY_WAIT_TIME=1e3,this.API_VERSION=n,this.domain=t,this.axios=w().create({headers:{"G-ClientID":e,Authorization:`Bearer ${i}`}})}get(t){return d(this,void 0,void 0,(function*(){return this.request(Object.assign({method:b.Get},t))}))}post(t){return d(this,void 0,void 0,(function*(){return this.request(Object.assign({method:b.Post},t))}))}put(t){return d(this,void 0,void 0,(function*(){return this.request(Object.assign({method:b.Put},t))}))}delete(t){return d(this,void 0,void 0,(function*(){return this.request(Object.assign({method:b.Delete},t))}))}request(t){return d(this,void 0,void 0,(function*(){if(g.API_VERSION!==this.API_VERSION)throw new y(`Current Context.API_VERSION '${g.API_VERSION}' does not match resource version ${this.API_VERSION}`);const e=t.tries?t.tries:1;if(e<=0)throw new v(`Number of tries must be >= 0, got ${e}`);const i={url:`${this.domain}${this.getRequestPath(t.path)}`,params:t.query,method:t.method.toString(),data:t.data};function n(t){return d(this,void 0,void 0,(function*(){return new Promise((e=>setTimeout(e,t)))}))}let o=0;for(;o<e;)try{return yield this.doRequest(i)}catch(t){if(o++,t instanceof f){if(o<e){let e=this.RETRY_WAIT_TIME;t instanceof _&&t.response.retryAfter&&(e=1e3*t.response.retryAfter),yield n(e);continue}if(e>1)throw new p(`Exceeded maximum retry count of ${e}. Last message: ${t.message}`)}throw t}throw new s("Unexpected flow, reached maximum HTTP tries but did not throw an error")}))}getRequestPath(t){return`/${t.replace(/^\//,"")}`}doRequest(t){var e;return d(this,void 0,void 0,(function*(){try{const i=yield this.axios(t);if(i.status&&"OK"===i.data.status&&"OK"===(null===(e=i.data.result)||void 0===e?void 0:e.status))return i.data;{const t=JSON.stringify(i.data.message||i.data.result.message,null,2),e=i.headers,n=i.status,o=i.statusText;switch(!0){case i.status===x.TooManyRequests:{const l=i.headers["Retry-After"];throw new _({message:`GAP is throttling requests ${t}`,code:n,statusText:o,body:i.data,headers:e,retryAfter:l?parseFloat(l):void 0})}case i.status>=x.InternalServerError:throw new m({message:`GAP internal error ${t}`,code:n,statusText:o,body:i.data,headers:e});default:throw new h({message:`Received an error response (${i.status} ${i.statusText}) from GAP ${t}`,code:n,statusText:o,body:i.data,headers:e})}}}catch(t){throw t instanceof s?t:new v(`Failed to make GAP HTTP request: ${t.message}`)}}))}}class k{static setClient(t,e,i,n){if(!t||!e||!i)return console.error(new Error("Missing params init http_client"));this.client=new E(t,e,i,n)}}const S="/v1/pos/printer/site/list";class C extends k{static postCreateAppointment(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/appointment/appointment/form/create",data:t})}))}static getCategoryListAppointment(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/gocheckin/service/site/list-by-category",query:t})}))}static getStaffListAppointment(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/gocheckin/staff/site/list",query:t})}))}}class R extends k{static getBatchHistory(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/history/site/batch-history",query:t})}))}static getBatchDetail(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/history/site/batch-detail",query:t})}))}}class A extends k{static getBusinessInfo(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/business/site/get-info",query:t})}))}static postBusinessUpdateInfo(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/business/form/update",data:t})}))}}class T extends k{static sendSms(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/call/form/send-sms",data:t})}))}}class P extends k{static getCategoryListItem(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/category/site/list-item",query:t})}))}}function I(t){var e,i,n,o,l,u,r,d,s,a,c,v,p,h,f,m,_,y,g,b,x,O,w,E,k,S,C,R,A,T,P,I,D,q,$,N,U,L,j,M,B,F,H,Y,G,V,K,W,z,J,X,Q,Z,tt,et,it,nt,ot,lt,ut,rt,dt,st,at,ct,vt,pt,ht,ft,mt,_t,yt,gt,bt,xt,Ot,wt,Et,kt,St,Ct,Rt,At,Tt,Pt,It,Dt,qt,$t,Nt,Ut,Lt,jt,Mt,Bt,Ft,Ht,Yt,Gt,Vt,Kt,Wt,zt,Jt,Xt,Qt,Zt,te,ee,ie,ne,oe,le,ue,re,de,se,ae;return{id:null!==(e=null==t?void 0:t.id)&&void 0!==e?e:null,customer_id:null!==(i=null==t?void 0:t.customer_id)&&void 0!==i?i:null,customer_name:null!==(n=null==t?void 0:t.customer_name)&&void 0!==n?n:null,customer_phone:null!==(o=null==t?void 0:t.customer_phone)&&void 0!==o?o:null,customer_email:null!==(l=null==t?void 0:t.customer_email)&&void 0!==l?l:null,customer_address:null!==(u=null==t?void 0:t.customer_address)&&void 0!==u?u:null,payment_method:null!==(r=null==t?void 0:t.payment_method)&&void 0!==r?r:null,currency:null!==(d=null==t?void 0:t.currency)&&void 0!==d?d:null,start_time:null!==(s=null==t?void 0:t.start_time)&&void 0!==s?s:null,expected_end_time:null!==(a=null==t?void 0:t.expected_end_time)&&void 0!==a?a:null,end_time:null!==(c=null==t?void 0:t.end_time)&&void 0!==c?c:null,picked_up_time:null!==(v=null==t?void 0:t.picked_up_time)&&void 0!==v?v:null,promotion_code:null!==(p=null==t?void 0:t.promotion_code)&&void 0!==p?p:null,total_before_discount:null!==(h=null==t?void 0:t.total_before_discount)&&void 0!==h?h:null,total_after_discount:null!==(f=null==t?void 0:t.total_after_discount)&&void 0!==f?f:null,employee_id:null!==(m=null==t?void 0:t.employee_id)&&void 0!==m?m:null,employee_name:null!==(_=null==t?void 0:t.employee_name)&&void 0!==_?_:null,type:null!==(y=null==t?void 0:t.type)&&void 0!==y?y:null,note:null!==(g=null==t?void 0:t.note)&&void 0!==g?g:null,owner_note:null!==(b=null==t?void 0:t.owner_note)&&void 0!==b?b:null,order_status:null!==(x=null==t?void 0:t.order_status)&&void 0!==x?x:null,status:null!==(O=null==t?void 0:t.status)&&void 0!==O?O:null,created_at:null!==(w=null==t?void 0:t.created_at)&&void 0!==w?w:null,updated_at:null!==(E=null==t?void 0:t.updated_at)&&void 0!==E?E:null,cancel_reason:null!==(k=null==t?void 0:t.cancel_reason)&&void 0!==k?k:null,delivered_time:null!==(S=null==t?void 0:t.delivered_time)&&void 0!==S?S:null,completed_time:null!==(C=null==t?void 0:t.completed_time)&&void 0!==C?C:null,order_code:null!==(R=null==t?void 0:t.order_code)&&void 0!==R?R:null,checkin_id:null!==(A=null==t?void 0:t.checkin_id)&&void 0!==A?A:null,total_change:null!==(T=null==t?void 0:t.total_change)&&void 0!==T?T:null,tip:{id:null!==(I=null===(P=null==t?void 0:t.tip)||void 0===P?void 0:P.id)&&void 0!==I?I:null,order_id:null!==(q=null===(D=null==t?void 0:t.tip)||void 0===D?void 0:D.order_id)&&void 0!==q?q:null,created_at:null!==(N=null===($=null==t?void 0:t.tip)||void 0===$?void 0:$.created_at)&&void 0!==N?N:null,updated_at:null!==(L=null===(U=null==t?void 0:t.tip)||void 0===U?void 0:U.updated_at)&&void 0!==L?L:null,status:null!==(M=null===(j=null==t?void 0:t.tip)||void 0===j?void 0:j.status)&&void 0!==M?M:null,tip_type:null!==(F=null===(B=null==t?void 0:t.tip)||void 0===B?void 0:B.tip_type)&&void 0!==F?F:null,total_tip:null!==(Y=null===(H=null==t?void 0:t.tip)||void 0===H?void 0:H.total_tip)&&void 0!==Y?Y:null,data:null!==(V=null===(G=null==t?void 0:t.tip)||void 0===G?void 0:G.data)&&void 0!==V?V:null,data_after_charge:null!==(W=null===(K=null==t?void 0:t.tip)||void 0===K?void 0:K.data_after_charge)&&void 0!==W?W:null,payment_method:null!==(J=null===(z=null==t?void 0:t.tip)||void 0===z?void 0:z.payment_method)&&void 0!==J?J:null,giftcard_code:null!==(Q=null===(X=null==t?void 0:t.tip)||void 0===X?void 0:X.giftcard_code)&&void 0!==Q?Q:null,is_updated:null!==(tt=null===(Z=null==t?void 0:t.tip)||void 0===Z?void 0:Z.is_updated)&&void 0!==tt?tt:null},tax:null!==(et=null==t?void 0:t.tax)&&void 0!==et?et:null,is_waiting:null!==(it=null==t?void 0:t.is_waiting)&&void 0!==it?it:null,is_recheck:null!==(nt=null==t?void 0:t.is_recheck)&&void 0!==nt?nt:null,gift_card_price:null!==(ot=null==t?void 0:t.gift_card_price)&&void 0!==ot?ot:null,pax_standalone_active:null!==(lt=null==t?void 0:t.pax_standalone_active)&&void 0!==lt?lt:null,ach_payment_active:null!==(ut=null==t?void 0:t.ach_payment_active)&&void 0!==ut?ut:null,ach_payment_data:null!==(rt=null==t?void 0:t.ach_payment_data)&&void 0!==rt?rt:null,total_cash_discount:null!==(dt=null==t?void 0:t.total_cash_discount)&&void 0!==dt?dt:null,is_tip_on_device:null!==(st=null==t?void 0:t.is_tip_on_device)&&void 0!==st?st:null,tip_by_credit_card:null!==(at=null==t?void 0:t.tip_by_credit_card)&&void 0!==at?at:null,service_fee:null!==(ct=null==t?void 0:t.service_fee)&&void 0!==ct?ct:null,external_credit_card:null!==(vt=null==t?void 0:t.external_credit_card)&&void 0!==vt?vt:null,qr_code:null!==(pt=null==t?void 0:t.qr_code)&&void 0!==pt?pt:null,created_date:null!==(ht=null==t?void 0:t.created_date)&&void 0!==ht?ht:null,created_time:null!==(ft=null==t?void 0:t.created_time)&&void 0!==ft?ft:null,pos_key:null!==(mt=null==t?void 0:t.pos_key)&&void 0!==mt?mt:null,pos_status:null!==(_t=null==t?void 0:t.pos_status)&&void 0!==_t?_t:null,invoice:null!==(yt=null==t?void 0:t.invoice)&&void 0!==yt?yt:null,customer_point:null!==(gt=null==t?void 0:t.customer_point)&&void 0!==gt?gt:null,order_discount:null!==(bt=null==t?void 0:t.order_discount)&&void 0!==bt?bt:null,checkin_services:null!==(xt=null==t?void 0:t.checkin_services)&&void 0!==xt?xt:null,checkin_staffs:null!==(Ot=null==t?void 0:t.checkin_staffs)&&void 0!==Ot?Ot:null,services:(null==t?void 0:t.services)?null==t?void 0:t.services.map((t=>(t=>{var e;return{staff_name:null!==(e=null==t?void 0:t.staff_name)&&void 0!==e?e:null,items:(null==t?void 0:t.items)?null==t?void 0:t.items.map((t=>(t=>{var e,i,n,o,l,u,r,d,s,a,c;return{item_name:null!==(e=null==t?void 0:t.item_name)&&void 0!==e?e:null,quantity:null!==(i=null==t?void 0:t.quantity)&&void 0!==i?i:null,price:null!==(n=null==t?void 0:t.price)&&void 0!==n?n:null,supply_share:null!==(o=null==t?void 0:t.supply_share)&&void 0!==o?o:null,base_service_price:null!==(l=null==t?void 0:t.base_service_price)&&void 0!==l?l:null,card_charge_value:null!==(u=null==t?void 0:t.card_charge_value)&&void 0!==u?u:null,discount_charge_value:null!==(r=null==t?void 0:t.discount_charge_value)&&void 0!==r?r:null,tip_paid:null!==(d=null==t?void 0:t.tip_paid)&&void 0!==d?d:null,tip_on_credit_card_share:null!==(s=null==t?void 0:t.tip_on_credit_card_share)&&void 0!==s?s:null,commission:null!==(a=null==t?void 0:t.commission)&&void 0!==a?a:null,cash_discount:null!==(c=null==t?void 0:t.cash_discount)&&void 0!==c?c:null}})(t))):null}})(t))):null,staffs:(null==t?void 0:t.staffs)?null==t?void 0:t.staffs.map((t=>(t=>{var e,i,n;return{employee_name:null!==(e=null==t?void 0:t.employee_name)&&void 0!==e?e:null,employee_image:null!==(i=null==t?void 0:t.employee_image)&&void 0!==i?i:null,employee_color:null!==(n=null==t?void 0:t.employee_color)&&void 0!==n?n:null}})(t))):null,payment_payment_id:null!==(wt=null==t?void 0:t.payment_payment_id)&&void 0!==wt?wt:null,payment_order_id:null!==(Et=null==t?void 0:t.payment_order_id)&&void 0!==Et?Et:null,order_batch:{card_amount:null!==(St=null===(kt=null==t?void 0:t.order_batch)||void 0===kt?void 0:kt.card_amount)&&void 0!==St?St:null,cash_amount:null!==(Rt=null===(Ct=null==t?void 0:t.order_batch)||void 0===Ct?void 0:Ct.cash_amount)&&void 0!==Rt?Rt:null,check_amount:null!==(Tt=null===(At=null==t?void 0:t.order_batch)||void 0===At?void 0:At.check_amount)&&void 0!==Tt?Tt:null,giftcard_amount:null!==(It=null===(Pt=null==t?void 0:t.order_batch)||void 0===Pt?void 0:Pt.giftcard_amount)&&void 0!==It?It:null,ach_amount:null!==(qt=null===(Dt=null==t?void 0:t.order_batch)||void 0===Dt?void 0:Dt.ach_amount)&&void 0!==qt?qt:null,external_cc_amount:null!==(Nt=null===($t=null==t?void 0:t.order_batch)||void 0===$t?void 0:$t.external_cc_amount)&&void 0!==Nt?Nt:null,subtotal:null!==(Lt=null===(Ut=null==t?void 0:t.order_batch)||void 0===Ut?void 0:Ut.subtotal)&&void 0!==Lt?Lt:null,tax:null!==(Mt=null===(jt=null==t?void 0:t.order_batch)||void 0===jt?void 0:jt.tax)&&void 0!==Mt?Mt:null,tip:null!==(Ft=null===(Bt=null==t?void 0:t.order_batch)||void 0===Bt?void 0:Bt.tip)&&void 0!==Ft?Ft:null,discount:null!==(Yt=null===(Ht=null==t?void 0:t.order_batch)||void 0===Ht?void 0:Ht.discount)&&void 0!==Yt?Yt:null,redeem:null!==(Vt=null===(Gt=null==t?void 0:t.order_batch)||void 0===Gt?void 0:Gt.redeem)&&void 0!==Vt?Vt:null,total_income:null!==(Wt=null===(Kt=null==t?void 0:t.order_batch)||void 0===Kt?void 0:Kt.total_income)&&void 0!==Wt?Wt:null,cash_discount:null!==(Jt=null===(zt=null==t?void 0:t.order_batch)||void 0===zt?void 0:zt.cash_discount)&&void 0!==Jt?Jt:null,change:null!==(Qt=null===(Xt=null==t?void 0:t.order_batch)||void 0===Xt?void 0:Xt.change)&&void 0!==Qt?Qt:null},visit_count:null!==(Zt=null==t?void 0:t.visit_count)&&void 0!==Zt?Zt:null,refund_amount:null!==(te=null==t?void 0:t.refund_amount)&&void 0!==te?te:null,last_four:null!==(ee=null==t?void 0:t.last_four)&&void 0!==ee?ee:null,card_type:null!==(ie=null==t?void 0:t.card_type)&&void 0!==ie?ie:null,entry_type:null!==(ne=null==t?void 0:t.entry_type)&&void 0!==ne?ne:null,payment_history:null!==(oe=null==t?void 0:t.payment_history)&&void 0!==oe?oe:null,amount_info:null!==(le=null==t?void 0:t.amount_info)&&void 0!==le?le:null,customer_type:null!==(ue=null==t?void 0:t.customer_type)&&void 0!==ue?ue:null,order_payment_method:(null==t?void 0:t.order_payment_method)?null==t?void 0:t.order_payment_method.map((t=>(t=>{var e,i,n,o,l,u,r,d;return{id:null!==(e=null==t?void 0:t.id)&&void 0!==e?e:null,order_id:null!==(i=null==t?void 0:t.id)&&void 0!==i?i:null,payment_method_type:null!==(n=null==t?void 0:t.id)&&void 0!==n?n:null,payment_method_name:null!==(o=null==t?void 0:t.id)&&void 0!==o?o:null,total_paid:null!==(l=null==t?void 0:t.id)&&void 0!==l?l:null,created_at:null!==(u=null==t?void 0:t.id)&&void 0!==u?u:null,updated_at:null!==(r=null==t?void 0:t.id)&&void 0!==r?r:null,status:null!==(d=null==t?void 0:t.id)&&void 0!==d?d:null}})(t))):null,deposit:null!==(re=null==t?void 0:t.deposit)&&void 0!==re?re:null,product_subtotal:null!==(de=null==t?void 0:t.product_subtotal)&&void 0!==de?de:null,service_subtotal:null!==(se=null==t?void 0:t.service_subtotal)&&void 0!==se?se:null,staff_code:null!==(ae=null==t?void 0:t.staff_code)&&void 0!==ae?ae:null}}class D extends k{static postCheckInFormSubmit(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkin/form/submit",data:t})}))}static getCheckInReport(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkin/site/report",query:t})}))}static getLastCheckIn(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkin/site/check-update",query:t})}))}static getCheckInList(t){var e,i;return d(this,void 0,void 0,(function*(){const n=yield this.client.get({path:"/v1/pos/checkin/site/list",query:t});return((null===(i=null===(e=null==n?void 0:n.result)||void 0===e?void 0:e.data)||void 0===i?void 0:i.items)||[]).map((t=>I(t)))}))}static getCheckInInfo(t){return d(this,void 0,void 0,(function*(){return I((yield this.client.get({path:"/v1/pos/checkin/site/info",query:t})).result.data)}))}}function q(t){var e,i,n,o;return{totalCount:null!==(e=null==t?void 0:t.totalCount)&&void 0!==e?e:null,pageCount:null!==(i=null==t?void 0:t.pageCount)&&void 0!==i?i:null,currentPage:null!==(n=null==t?void 0:t.currentPage)&&void 0!==n?n:null,perPage:null!==(o=null==t?void 0:t.perPage)&&void 0!==o?o:null}}class $ extends k{static getItemList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/item/site/list",query:t})}))}static getCheckOutHistoryList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkout/history/list",query:t})}))}static getCheckOutInfo(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkout/site/info",query:t})}))}static getCheckOutHistoryInfo(t){var e,i,n,o;return d(this,void 0,void 0,(function*(){const l=yield this.client.get({path:"/v1/pos/checkout/history/info",query:t});return{data:((null===(i=null===(e=null==l?void 0:l.result)||void 0===e?void 0:e.data)||void 0===i?void 0:i.items)||[]).map((t=>function(t){var e,i,n,o,l,u;return{id:null!==(e=null==t?void 0:t.id)&&void 0!==e?e:null,order_code:null!==(i=null==t?void 0:t.order_code)&&void 0!==i?i:null,created_date:null!==(n=null==t?void 0:t.created_date)&&void 0!==n?n:null,created_time:null!==(o=null==t?void 0:t.created_time)&&void 0!==o?o:null,total_after_discount:null!==(l=null==t?void 0:t.total_after_discount)&&void 0!==l?l:null,qr_code:null!==(u=null==t?void 0:t.qr_code)&&void 0!==u?u:null}}(t))),_meta:q(null===(o=null===(n=null==l?void 0:l.result)||void 0===n?void 0:n.data)||void 0===o?void 0:o._meta)}}))}static getCheckOutBatchCloseSummary(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkout/site/get-batch-close-summary",query:t})}))}static postCheckOutAddItem(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/item/add",data:t})}))}static postCheckOutRemoveItem(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/item/remove",data:t})}))}static postCheckOutSubmitOrder(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/payment/submit",data:t})}))}static postCheckOutUpdateStatus(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/update-status",data:t})}))}static postCheckOutUpdateOrderWithCreditCardPayment(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/update-order-with-credit-card-payment",data:t})}))}static postCheckOutDoAuth(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/do-auth",data:t})}))}static postCheckOutVoidPayment(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/void-payment",data:t})}))}static postCheckOutRefundPayment(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/refund-payment",data:t})}))}static postCheckOutAdjustTipPayment(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/adjust-tip",data:t})}))}static postCheckOutCloseOut(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/closeout",data:t})}))}static postCheckOutUpdateIsWaiting(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/update-is-wait",data:t})}))}static postCheckOutDiscountPromotion(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/discount/promotion",data:t})}))}static postCheckOutDiscountRedeem(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/discount/redeem",data:t})}))}static postCheckOutUpdateTipData(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/tip/update",data:t})}))}static postCheckOutItemAdjustPrice(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/item/adjust-price",data:t})}))}static postCheckOutUpdatePaymentData(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/update-payment-data",data:t})}))}static postCheckOutItemAddCombo(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/item/add-combo",data:t})}))}static getCheckoutResendRating(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkout/form/send-mercure",query:t})}))}static postCustomerAchAvailable(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ach/form/check-customer",data:t})}))}static postAchResend(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ach/form/resend-transaction",data:t})}))}static postAchVoid(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ach/form/cancel-transaction",data:t})}))}static postUpdateOrderSuccessToSettled(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/update-success-to-settled",data:t})}))}static postCalculateTax(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/calculate-tax",data:t})}))}static postCalculatePayment(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/calculate-payment",data:t})}))}}class N extends k{static getComboSiteInfo(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/combo/site/info",query:t})}))}}class U extends k{static getCustomerList(t){var e,i;return d(this,void 0,void 0,(function*(){const n=yield this.client.get({path:"/v1/pos/customer/site/list",query:t});return((null===(i=null===(e=null==n?void 0:n.result)||void 0===e?void 0:e.data)||void 0===i?void 0:i.items)||[]).map((t=>function(t){var e,i;return{customer_name:null!==(e=null==t?void 0:t.customer_name)&&void 0!==e?e:null,customer_phone:null!==(i=null==t?void 0:t.customer_phone)&&void 0!==i?i:null}}(t)))}))}static getCustomerDetail(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/customer/site/detail",query:t})}))}}class L extends k{static getCheckGiftCard(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/giftcard/site/check-gift-card",query:t})}))}static postResetGiftCard(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/item/reset-gift-card",data:t})}))}}class j extends k{static getIncomeHistory(t){var e;return d(this,void 0,void 0,(function*(){const i=yield this.client.get({path:"/v1/pos/history/site/income-history",query:t});return((null===(e=null==i?void 0:i.result)||void 0===e?void 0:e.data)||[]).map((t=>function(t){var e,i,n,o,l,u,r,d,s,a,c,v,p,h,f,m,_,y,g,b,x,O,w,E,k,S,C,R,A,T,P,I,D,q,$,N,U,L,j,M,B,F;return{title:null!==(e=null==t?void 0:t.title)&&void 0!==e?e:null,income:null!==(i=null==t?void 0:t.income)&&void 0!==i?i:null,summary:{date:null!==(o=null===(n=null==t?void 0:t.summary)||void 0===n?void 0:n.date)&&void 0!==o?o:null,display_date:null!==(u=null===(l=null==t?void 0:t.summary)||void 0===l?void 0:l.date)&&void 0!==u?u:null,display_date_time:null!==(d=null===(r=null==t?void 0:t.summary)||void 0===r?void 0:r.date)&&void 0!==d?d:null,card_amount:null!==(a=null===(s=null==t?void 0:t.summary)||void 0===s?void 0:s.card_amount)&&void 0!==a?a:null,external_cc_amount:null!==(v=null===(c=null==t?void 0:t.summary)||void 0===c?void 0:c.external_cc_amount)&&void 0!==v?v:null,cash_amount:null!==(h=null===(p=null==t?void 0:t.summary)||void 0===p?void 0:p.cash_amount)&&void 0!==h?h:null,giftcard_amount:null!==(m=null===(f=null==t?void 0:t.summary)||void 0===f?void 0:f.giftcard_amount)&&void 0!==m?m:null,check_amount:null!==(y=null===(_=null==t?void 0:t.summary)||void 0===_?void 0:_.check_amount)&&void 0!==y?y:null,ach_amount:null!==(b=null===(g=null==t?void 0:t.summary)||void 0===g?void 0:g.ach_amount)&&void 0!==b?b:null,subtotal:null!==(O=null===(x=null==t?void 0:t.summary)||void 0===x?void 0:x.subtotal)&&void 0!==O?O:null,tax:null!==(E=null===(w=null==t?void 0:t.summary)||void 0===w?void 0:w.tax)&&void 0!==E?E:null,discount:null!==(S=null===(k=null==t?void 0:t.summary)||void 0===k?void 0:k.discount)&&void 0!==S?S:null,tip:null!==(R=null===(C=null==t?void 0:t.summary)||void 0===C?void 0:C.tip)&&void 0!==R?R:null,redeem:null!==(T=null===(A=null==t?void 0:t.summary)||void 0===A?void 0:A.redeem)&&void 0!==T?T:null,income:null!==(I=null===(P=null==t?void 0:t.summary)||void 0===P?void 0:P.income)&&void 0!==I?I:null,change:null!==(q=null===(D=null==t?void 0:t.summary)||void 0===D?void 0:D.change)&&void 0!==q?q:null,cash_discount:null!==(N=null===($=null==t?void 0:t.summary)||void 0===$?void 0:$.cash_discount)&&void 0!==N?N:null,service_fee:null!==(L=null===(U=null==t?void 0:t.summary)||void 0===U?void 0:U.service_fee)&&void 0!==L?L:null,deposit:null!==(M=null===(j=null==t?void 0:t.summary)||void 0===j?void 0:j.deposit)&&void 0!==M?M:null,total:null!==(F=null===(B=null==t?void 0:t.summary)||void 0===B?void 0:B.total)&&void 0!==F?F:null},batches:(null==t?void 0:t.batches)?null==t?void 0:t.batches.map((t=>function(t){var e,i,n,o;return{order_id:null!==(e=null==t?void 0:t.order_id)&&void 0!==e?e:null,customer_name:null!==(i=null==t?void 0:t.customer_name)&&void 0!==i?i:null,total_income:null!==(n=null==t?void 0:t.total_income)&&void 0!==n?n:null,subtotal:null!==(o=null==t?void 0:t.subtotal)&&void 0!==o?o:null}}(t))):null}}(t)))}))}static getStaffDailyIncome(t){var e;return d(this,void 0,void 0,(function*(){const i=yield this.client.get({path:"/v1/pos/staff/site/list-income-v1",query:t});return((null===(e=null==i?void 0:i.result)||void 0===e?void 0:e.data)||[]).map((t=>function(t){var e,i,n,o,l,u,r,d,s,a,c,v,p,h,f,m,_,y,g,b,x,O,w,E,k,S,C,R,A,T,P,I,D,q;return{user_id:null!==(e=null==t?void 0:t.user_id)&&void 0!==e?e:null,name:null!==(i=null==t?void 0:t.name)&&void 0!==i?i:null,image_url:null!==(n=null==t?void 0:t.image_url)&&void 0!==n?n:null,color_code:null!==(o=null==t?void 0:t.color_code)&&void 0!==o?o:null,code:null!==(l=null==t?void 0:t.code)&&void 0!==l?l:null,status:null!==(u=null==t?void 0:t.status)&&void 0!==u?u:null,permission:(null==t?void 0:t.permission)?null==t?void 0:t.permission.map((t=>function(t){var e,i,n,o,l,u;return{id:null!==(e=null==t?void 0:t.id)&&void 0!==e?e:null,name:null!==(i=null==t?void 0:t.name)&&void 0!==i?i:null,type:null!==(n=null==t?void 0:t.type)&&void 0!==n?n:null,status:null!==(o=null==t?void 0:t.status)&&void 0!==o?o:null,created_at:null!==(l=null==t?void 0:t.created_at)&&void 0!==l?l:null,updated_at:null!==(u=null==t?void 0:t.updated_at)&&void 0!==u?u:null}}(t))):null,setting_commission:null!==(r=null==t?void 0:t.setting_commission)&&void 0!==r?r:null,income:{commission:null!==(s=null===(d=null==t?void 0:t.income)||void 0===d?void 0:d.commission)&&void 0!==s?s:null,tip:null!==(c=null===(a=null==t?void 0:t.income)||void 0===a?void 0:a.tip)&&void 0!==c?c:null,working_hours:null!==(p=null===(v=null==t?void 0:t.income)||void 0===v?void 0:v.working_hours)&&void 0!==p?p:null,final_salary:null!==(f=null===(h=null==t?void 0:t.income)||void 0===h?void 0:h.final_salary)&&void 0!==f?f:null,income:null!==(_=null===(m=null==t?void 0:t.income)||void 0===m?void 0:m.income)&&void 0!==_?_:null,tip_credit_charge:null!==(g=null===(y=null==t?void 0:t.income)||void 0===y?void 0:y.tip_credit_charge)&&void 0!==g?g:null,card_charge:null!==(x=null===(b=null==t?void 0:t.income)||void 0===b?void 0:b.card_charge)&&void 0!==x?x:null,cash_bonus:null!==(w=null===(O=null==t?void 0:t.income)||void 0===O?void 0:O.cash_bonus)&&void 0!==w?w:null,supply_share:null!==(k=null===(E=null==t?void 0:t.income)||void 0===E?void 0:E.supply_share)&&void 0!==k?k:null,final_commission:null!==(C=null===(S=null==t?void 0:t.income)||void 0===S?void 0:S.final_commission)&&void 0!==C?C:null,cash_income:null!==(A=null===(R=null==t?void 0:t.income)||void 0===R?void 0:R.cash_income)&&void 0!==A?A:null,check_income:null!==(P=null===(T=null==t?void 0:t.income)||void 0===T?void 0:T.check_income)&&void 0!==P?P:null,wage_per_hours:null!==(D=null===(I=null==t?void 0:t.income)||void 0===I?void 0:I.wage_per_hours)&&void 0!==D?D:null},daily_service:null!==(q=null==t?void 0:t.daily_service)&&void 0!==q?q:null}}(t)))}))}}class M extends k{static getKeyStorage(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/user/site/get-key-storage",query:t})}))}}var B=i(823),F=i.n(B);const H=()=>({AU:"DD-MM-YYYY",US:"MM-DD-YYYY",DEFAULT:"DD-MM-YYYY"}[localStorage.getItem("country_code")||"DEFAULT"]);var Y=i(484),G=i.n(Y);class V extends k{static getOrderCheckInList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkin/site/dash-board-list",query:t})}))}static getOrderDetail(t){var e;return d(this,void 0,void 0,(function*(){const i=yield this.client.get({path:"/v1/pos/checkout/site/info",query:t});return function(t){var e,i,n,o,l,u,r,d,s,a,c,v,p,h,f,m,_,y,g,b,x,O,w,E,k,S,C,R,A,T,P,I,D,q,$,N,U,L,j,M,B,F,H,Y,G,V,K,W,z,J,X,Q,Z,tt,et,it,nt,ot,lt,ut,rt,dt,st,at,ct,vt,pt,ht,ft,mt,_t,yt,gt,bt,xt,Ot,wt,Et,kt,St,Ct,Rt,At,Tt,Pt,It,Dt,qt,$t,Nt,Ut,Lt,jt,Mt,Bt,Ft,Ht,Yt,Gt,Vt,Kt,Wt,zt,Jt,Xt,Qt,Zt,te,ee,ie,ne,oe,le,ue,re,de,se,ae,ce,ve,pe,he,fe,me,_e,ye,ge,be,xe,Oe,we,Ee,ke,Se,Ce,Re,Ae,Te,Pe,Ie,De,qe,$e,Ne,Ue,Le,je,Me,Be,Fe,He,Ye,Ge,Ve,Ke,We;return{id:null!==(e=null==t?void 0:t.id)&&void 0!==e?e:null,customer_id:null!==(i=null==t?void 0:t.customer_id)&&void 0!==i?i:null,customer_name:null!==(n=null==t?void 0:t.customer_name)&&void 0!==n?n:null,customer_phone:null!==(o=null==t?void 0:t.customer_phone)&&void 0!==o?o:null,customer_email:null!==(l=null==t?void 0:t.customer_email)&&void 0!==l?l:null,customer_address:null!==(u=null==t?void 0:t.customer_address)&&void 0!==u?u:null,payment_method:null!==(r=null==t?void 0:t.payment_method)&&void 0!==r?r:null,currency:null!==(d=null==t?void 0:t.currency)&&void 0!==d?d:null,start_time:null!==(s=null==t?void 0:t.start_time)&&void 0!==s?s:null,expected_end_time:null!==(a=null==t?void 0:t.expected_end_time)&&void 0!==a?a:null,end_time:null!==(c=null==t?void 0:t.end_time)&&void 0!==c?c:null,picked_up_time:null!==(v=null==t?void 0:t.picked_up_time)&&void 0!==v?v:null,promotion_code:null!==(p=null==t?void 0:t.promotion_code)&&void 0!==p?p:null,total_before_discount:null!==(h=null==t?void 0:t.total_before_discount)&&void 0!==h?h:null,total_after_discount:null!==(f=null==t?void 0:t.total_after_discount)&&void 0!==f?f:null,employee_id:null!==(m=null==t?void 0:t.employee_id)&&void 0!==m?m:null,employee_name:null!==(_=null==t?void 0:t.employee_name)&&void 0!==_?_:null,type:null!==(y=null==t?void 0:t.type)&&void 0!==y?y:null,note:null!==(g=null==t?void 0:t.note)&&void 0!==g?g:null,owner_note:null!==(b=null==t?void 0:t.owner_note)&&void 0!==b?b:null,order_status:null!==(x=null==t?void 0:t.order_status)&&void 0!==x?x:null,status:null!==(O=null==t?void 0:t.status)&&void 0!==O?O:null,created_at:null!==(w=null==t?void 0:t.created_at)&&void 0!==w?w:null,updated_at:null!==(E=null==t?void 0:t.updated_at)&&void 0!==E?E:null,cancel_reason:null!==(k=null==t?void 0:t.cancel_reason)&&void 0!==k?k:null,delivered_time:null!==(S=null==t?void 0:t.delivered_time)&&void 0!==S?S:null,completed_time:null!==(C=null==t?void 0:t.completed_time)&&void 0!==C?C:null,order_code:null!==(R=null==t?void 0:t.order_code)&&void 0!==R?R:null,checkin_id:null!==(A=null==t?void 0:t.checkin_id)&&void 0!==A?A:null,total_change:null!==(T=null==t?void 0:t.total_change)&&void 0!==T?T:null,tip:{id:null!==(I=null===(P=null==t?void 0:t.tip)||void 0===P?void 0:P.id)&&void 0!==I?I:null,order_id:null!==(q=null===(D=null==t?void 0:t.tip)||void 0===D?void 0:D.id)&&void 0!==q?q:null,created_at:null!==(N=null===($=null==t?void 0:t.tip)||void 0===$?void 0:$.id)&&void 0!==N?N:null,updated_at:null!==(L=null===(U=null==t?void 0:t.tip)||void 0===U?void 0:U.id)&&void 0!==L?L:null,status:null!==(M=null===(j=null==t?void 0:t.tip)||void 0===j?void 0:j.id)&&void 0!==M?M:null,tip_type:null!==(F=null===(B=null==t?void 0:t.tip)||void 0===B?void 0:B.id)&&void 0!==F?F:null,total_tip:null!==(Y=null===(H=null==t?void 0:t.tip)||void 0===H?void 0:H.id)&&void 0!==Y?Y:null,data:null!==(V=null===(G=null==t?void 0:t.tip)||void 0===G?void 0:G.id)&&void 0!==V?V:null,data_after_charge:null!==(W=null===(K=null==t?void 0:t.tip)||void 0===K?void 0:K.id)&&void 0!==W?W:null,payment_method:null!==(J=null===(z=null==t?void 0:t.tip)||void 0===z?void 0:z.id)&&void 0!==J?J:null,giftcard_code:null!==(Q=null===(X=null==t?void 0:t.tip)||void 0===X?void 0:X.id)&&void 0!==Q?Q:null,is_updated:null!==(tt=null===(Z=null==t?void 0:t.tip)||void 0===Z?void 0:Z.id)&&void 0!==tt?tt:null},tax:null!==(et=null==t?void 0:t.id)&&void 0!==et?et:null,is_waiting:null!==(it=null==t?void 0:t.id)&&void 0!==it?it:null,is_recheck:null!==(nt=null==t?void 0:t.id)&&void 0!==nt?nt:null,gift_card_price:null!==(ot=null==t?void 0:t.id)&&void 0!==ot?ot:null,pax_standalone_active:null!==(lt=null==t?void 0:t.id)&&void 0!==lt?lt:null,ach_payment_active:null!==(ut=null==t?void 0:t.id)&&void 0!==ut?ut:null,ach_payment_data:null!==(rt=null==t?void 0:t.id)&&void 0!==rt?rt:null,total_cash_discount:null!==(dt=null==t?void 0:t.id)&&void 0!==dt?dt:null,is_tip_on_device:null!==(st=null==t?void 0:t.id)&&void 0!==st?st:null,tip_by_credit_card:null!==(at=null==t?void 0:t.id)&&void 0!==at?at:null,service_fee:null!==(ct=null==t?void 0:t.id)&&void 0!==ct?ct:null,external_credit_card:null!==(vt=null==t?void 0:t.id)&&void 0!==vt?vt:null,qr_code:null!==(pt=null==t?void 0:t.id)&&void 0!==pt?pt:null,created_date:null!==(ht=null==t?void 0:t.id)&&void 0!==ht?ht:null,created_time:null!==(ft=null==t?void 0:t.id)&&void 0!==ft?ft:null,pos_key:null!==(mt=null==t?void 0:t.id)&&void 0!==mt?mt:null,pos_status:null!==(_t=null==t?void 0:t.id)&&void 0!==_t?_t:null,invoice:{id:null!==(gt=null===(yt=null==t?void 0:t.invoice)||void 0===yt?void 0:yt.id)&&void 0!==gt?gt:null,checkout_id:null!==(xt=null===(bt=null==t?void 0:t.invoice)||void 0===bt?void 0:bt.checkout_id)&&void 0!==xt?xt:null,customer_id:null!==(wt=null===(Ot=null==t?void 0:t.invoice)||void 0===Ot?void 0:Ot.customer_id)&&void 0!==wt?wt:null,customer_name:null!==(kt=null===(Et=null==t?void 0:t.invoice)||void 0===Et?void 0:Et.customer_name)&&void 0!==kt?kt:null,customer_phone:null!==(Ct=null===(St=null==t?void 0:t.invoice)||void 0===St?void 0:St.customer_phone)&&void 0!==Ct?Ct:null,promotion_code:null!==(At=null===(Rt=null==t?void 0:t.invoice)||void 0===Rt?void 0:Rt.promotion_code)&&void 0!==At?At:null,redeem_id:null!==(Pt=null===(Tt=null==t?void 0:t.invoice)||void 0===Tt?void 0:Tt.redeem_id)&&void 0!==Pt?Pt:null,total_discount:null!==(Dt=null===(It=null==t?void 0:t.invoice)||void 0===It?void 0:It.total_discount)&&void 0!==Dt?Dt:null,has_tax:null!==($t=null===(qt=null==t?void 0:t.invoice)||void 0===qt?void 0:qt.has_tax)&&void 0!==$t?$t:null,tax_price:null!==(Ut=null===(Nt=null==t?void 0:t.invoice)||void 0===Nt?void 0:Nt.tax_price)&&void 0!==Ut?Ut:null,total_before_discount:null!==(jt=null===(Lt=null==t?void 0:t.invoice)||void 0===Lt?void 0:Lt.total_before_discount)&&void 0!==jt?jt:null,total_after_discount:null!==(Bt=null===(Mt=null==t?void 0:t.invoice)||void 0===Mt?void 0:Mt.total_after_discount)&&void 0!==Bt?Bt:null,total_after_tax:null!==(Ht=null===(Ft=null==t?void 0:t.invoice)||void 0===Ft?void 0:Ft.total_after_tax)&&void 0!==Ht?Ht:null,payment_method:null!==(Gt=null===(Yt=null==t?void 0:t.invoice)||void 0===Yt?void 0:Yt.payment_method)&&void 0!==Gt?Gt:null,employee_id:null!==(Kt=null===(Vt=null==t?void 0:t.invoice)||void 0===Vt?void 0:Vt.employee_id)&&void 0!==Kt?Kt:null,employee_name:null!==(zt=null===(Wt=null==t?void 0:t.invoice)||void 0===Wt?void 0:Wt.employee_name)&&void 0!==zt?zt:null,status:null!==(Xt=null===(Jt=null==t?void 0:t.invoice)||void 0===Jt?void 0:Jt.status)&&void 0!==Xt?Xt:null,created_at:null!==(Zt=null===(Qt=null==t?void 0:t.invoice)||void 0===Qt?void 0:Qt.created_at)&&void 0!==Zt?Zt:null,updated_at:null!==(ee=null===(te=null==t?void 0:t.invoice)||void 0===te?void 0:te.updated_at)&&void 0!==ee?ee:null,type:null!==(ne=null===(ie=null==t?void 0:t.invoice)||void 0===ie?void 0:ie.type)&&void 0!==ne?ne:null},customer_point:null!==(oe=null==t?void 0:t.id)&&void 0!==oe?oe:null,order_discount:(null==t?void 0:t.order_discount)?null==t?void 0:t.order_discount.map((t=>function(t){var e,i,n,o,l,u,r,d,s,a,c;return{id:null!==(e=null==t?void 0:t.id)&&void 0!==e?e:null,order_id:null!==(i=null==t?void 0:t.order_id)&&void 0!==i?i:null,item_type:null!==(n=null==t?void 0:t.item_type)&&void 0!==n?n:null,item_id:null!==(o=null==t?void 0:t.item_id)&&void 0!==o?o:null,discount_type:null!==(l=null==t?void 0:t.discount_type)&&void 0!==l?l:null,discount_value:null!==(u=null==t?void 0:t.discount_value)&&void 0!==u?u:null,created_at:null!==(r=null==t?void 0:t.created_at)&&void 0!==r?r:null,updated_at:null!==(d=null==t?void 0:t.updated_at)&&void 0!==d?d:null,status:null!==(s=null==t?void 0:t.status)&&void 0!==s?s:null,total_value:null!==(a=null==t?void 0:t.total_value)&&void 0!==a?a:null,total_discount:null!==(c=null==t?void 0:t.total_discount)&&void 0!==c?c:null}}(t))):null,checkin_services:null!==(le=null==t?void 0:t.id)&&void 0!==le?le:null,checkin_staffs:null!==(ue=null==t?void 0:t.id)&&void 0!==ue?ue:null,services:(null==t?void 0:t.order_discount)?null==t?void 0:t.order_discount.map((t=>function(t){return{staff_name:null==t?void 0:t.staff_name,items:(null==t?void 0:t.items)?null==t?void 0:t.items.map((t=>function(t){var e,i,n,o,l,u,r,d,s,a,c;return{item_name:null!==(e=null==t?void 0:t.item_name)&&void 0!==e?e:null,quantity:null!==(i=null==t?void 0:t.quantity)&&void 0!==i?i:null,price:null!==(n=null==t?void 0:t.price)&&void 0!==n?n:null,supply_share:null!==(o=null==t?void 0:t.supply_share)&&void 0!==o?o:null,base_service_price:null!==(l=null==t?void 0:t.base_service_price)&&void 0!==l?l:null,card_charge_value:null!==(u=null==t?void 0:t.card_charge_value)&&void 0!==u?u:null,discount_charge_value:null!==(r=null==t?void 0:t.discount_charge_value)&&void 0!==r?r:null,tip_paid:null!==(d=null==t?void 0:t.tip_paid)&&void 0!==d?d:null,tip_on_credit_card_share:null!==(s=null==t?void 0:t.tip_on_credit_card_share)&&void 0!==s?s:null,commission:null!==(a=null==t?void 0:t.commission)&&void 0!==a?a:null,cash_discount:null!==(c=null==t?void 0:t.cash_discount)&&void 0!==c?c:null}}(t))):null}}(t))):null,staffs:(null==t?void 0:t.order_discount)?null==t?void 0:t.order_discount.map((t=>function(t){var e,i,n;return{employee_name:null!==(e=null==t?void 0:t.employee_name)&&void 0!==e?e:null,employee_image:null!==(i=null==t?void 0:t.employee_image)&&void 0!==i?i:null,employee_color:null!==(n=null==t?void 0:t.employee_color)&&void 0!==n?n:null}}(t))):null,payment_payment_id:null!==(re=null==t?void 0:t.id)&&void 0!==re?re:null,payment_order_id:null!==(de=null==t?void 0:t.id)&&void 0!==de?de:null,order_batch:{card_amount:null!==(ae=null===(se=null==t?void 0:t.order_batch)||void 0===se?void 0:se.card_amount)&&void 0!==ae?ae:null,cash_amount:null!==(ve=null===(ce=null==t?void 0:t.order_batch)||void 0===ce?void 0:ce.cash_amount)&&void 0!==ve?ve:null,check_amount:null!==(he=null===(pe=null==t?void 0:t.order_batch)||void 0===pe?void 0:pe.check_amount)&&void 0!==he?he:null,giftcard_amount:null!==(me=null===(fe=null==t?void 0:t.order_batch)||void 0===fe?void 0:fe.giftcard_amount)&&void 0!==me?me:null,ach_amount:null!==(ye=null===(_e=null==t?void 0:t.order_batch)||void 0===_e?void 0:_e.ach_amount)&&void 0!==ye?ye:null,external_cc_amount:null!==(be=null===(ge=null==t?void 0:t.order_batch)||void 0===ge?void 0:ge.external_cc_amount)&&void 0!==be?be:null,subtotal:null!==(Oe=null===(xe=null==t?void 0:t.order_batch)||void 0===xe?void 0:xe.subtotal)&&void 0!==Oe?Oe:null,tax:null!==(Ee=null===(we=null==t?void 0:t.order_batch)||void 0===we?void 0:we.tax)&&void 0!==Ee?Ee:null,tip:null!==(Se=null===(ke=null==t?void 0:t.order_batch)||void 0===ke?void 0:ke.tip)&&void 0!==Se?Se:null,discount:null!==(Re=null===(Ce=null==t?void 0:t.order_batch)||void 0===Ce?void 0:Ce.discount)&&void 0!==Re?Re:null,redeem:null!==(Te=null===(Ae=null==t?void 0:t.order_batch)||void 0===Ae?void 0:Ae.redeem)&&void 0!==Te?Te:null,total_income:null!==(Ie=null===(Pe=null==t?void 0:t.order_batch)||void 0===Pe?void 0:Pe.total_income)&&void 0!==Ie?Ie:null,cash_discount:null!==(qe=null===(De=null==t?void 0:t.order_batch)||void 0===De?void 0:De.cash_discount)&&void 0!==qe?qe:null,change:null!==(Ne=null===($e=null==t?void 0:t.order_batch)||void 0===$e?void 0:$e.change)&&void 0!==Ne?Ne:null},visit_count:null!==(Ue=null==t?void 0:t.id)&&void 0!==Ue?Ue:null,refund_amount:null!==(Le=null==t?void 0:t.id)&&void 0!==Le?Le:null,last_four:null!==(je=null==t?void 0:t.id)&&void 0!==je?je:null,card_type:null!==(Me=null==t?void 0:t.id)&&void 0!==Me?Me:null,entry_type:null!==(Be=null==t?void 0:t.id)&&void 0!==Be?Be:null,payment_history:null!==(Fe=null==t?void 0:t.id)&&void 0!==Fe?Fe:null,amount_info:null!==(He=null==t?void 0:t.id)&&void 0!==He?He:null,customer_type:null!==(Ye=null==t?void 0:t.id)&&void 0!==Ye?Ye:null,order_payment_method:(null==t?void 0:t.order_payment_method)?null==t?void 0:t.order_payment_method.map((t=>function(t){var e,i,n,o,l,u,r,d;return{id:null!==(e=null==t?void 0:t.id)&&void 0!==e?e:null,order_id:null!==(i=null==t?void 0:t.order_id)&&void 0!==i?i:null,payment_method_type:null!==(n=null==t?void 0:t.payment_method_type)&&void 0!==n?n:null,payment_method_name:null!==(o=null==t?void 0:t.payment_method_name)&&void 0!==o?o:null,total_paid:null!==(l=null==t?void 0:t.total_paid)&&void 0!==l?l:null,created_at:null!==(u=null==t?void 0:t.created_at)&&void 0!==u?u:null,updated_at:null!==(r=null==t?void 0:t.updated_at)&&void 0!==r?r:null,status:null!==(d=null==t?void 0:t.status)&&void 0!==d?d:null}}(t))):null,deposit:null!==(Ge=null==t?void 0:t.id)&&void 0!==Ge?Ge:null,product_subtotal:null!==(Ve=null==t?void 0:t.id)&&void 0!==Ve?Ve:null,service_subtotal:null!==(Ke=null==t?void 0:t.id)&&void 0!==Ke?Ke:null,staff_code:null!==(We=null==t?void 0:t.id)&&void 0!==We?We:null}}(null===(e=null==i?void 0:i.result)||void 0===e?void 0:e.data)}))}static getOrderHistoryList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/checkout/history/info",query:t})}))}static getReportCheckIn(t){return d(this,void 0,void 0,(function*(){return function(t){var e,i,n,o,l,u;return{all:null!==(e=null==t?void 0:t.all)&&void 0!==e?e:null,pending:null!==(i=null==t?void 0:t.pending)&&void 0!==i?i:null,processing:null!==(n=null==t?void 0:t.processing)&&void 0!==n?n:null,cancelled:null!==(o=null==t?void 0:t.cancelled)&&void 0!==o?o:null,done:null!==(l=null==t?void 0:t.done)&&void 0!==l?l:null,settlement_fail:null!==(u=null==t?void 0:t.settlement_fail)&&void 0!==u?u:null}}((yield this.client.get({path:"/v1/pos/checkin/site/dash-board-report",query:t})).result.data)}))}static updateOrderStaff(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/form/update-staff",data:t})}))}static removeOrder(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/checkout/order/remove-order",data:t})}))}static exportOrder(t){return d(this,void 0,void 0,(function*(){const e=yield this.client.get({path:"/v1/pos/checkin/site/export",query:t});let i=H();F()(e,`export-orders-${G()().format(i)}.xls`)}))}}function K(t){var e,i,n,o,l,u,r,d,s,a,c,v,p,h,f;return{user_id:null!==(e=null==t?void 0:t.user_id)&&void 0!==e?e:null,name:null!==(i=null==t?void 0:t.name)&&void 0!==i?i:null,image_url:null!==(n=null==t?void 0:t.image_url)&&void 0!==n?n:null,color_code:null!==(o=null==t?void 0:t.color_code)&&void 0!==o?o:null,income:null!==(l=null==t?void 0:t.income)&&void 0!==l?l:null,commission:null!==(u=null==t?void 0:t.commission)&&void 0!==u?u:null,cash_income:null!==(r=null==t?void 0:t.cash_income)&&void 0!==r?r:null,check_income:null!==(d=null==t?void 0:t.check_income)&&void 0!==d?d:null,card_charge:null!==(s=null==t?void 0:t.card_charge)&&void 0!==s?s:null,supply_share:null!==(a=null==t?void 0:t.supply_share)&&void 0!==a?a:null,salary:null!==(c=null==t?void 0:t.salary)&&void 0!==c?c:null,tip:null!==(v=null==t?void 0:t.tip)&&void 0!==v?v:null,total_commission:null!==(p=null==t?void 0:t.total_commission)&&void 0!==p?p:null,working_hour:null!==(h=null==t?void 0:t.working_hour)&&void 0!==h?h:null,wage_per_hours:null!==(f=null==t?void 0:t.wage_per_hours)&&void 0!==f?f:null,list_detail:(null==t?void 0:t.list_detail)?null==t?void 0:t.list_detail.map((t=>function(t){return{date:null==t?void 0:t.date,final_commission:null==t?void 0:t.final_commission}}(t))):null}}class W extends k{static getPayrollList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"v1/pos/payroll/site/list-payroll",query:t})}))}static getPayrollSetting(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/setting/site/payroll-setting",query:t})}))}static approvePayroll(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/payroll/form/approve-payroll",data:t})}))}static updatePayrollSetting(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/setting/form/update-payroll",data:t})}))}static getDiscountSetting(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/setting/site/discount-setting",query:t})}))}static updateDiscountSetting(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/setting/form/update-discount",data:t})}))}static getCashDiscountSetting(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/cashdiscount/setting/get",query:t})}))}static updateCashDiscountSetting(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/cashdiscount/setting/change",data:t})}))}static getIncomeDetail(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/payroll/staff/income-detail",query:t})}))}static getApprovePayroll(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/payroll/site/approve-period",query:t})}))}static exportPayroll(t){return d(this,void 0,void 0,(function*(){const e=yield this.client.get({path:"v1/pos/payroll/site/export-payroll",query:t}),i=H();F()(e.data,`${G()().format(i)}.xlsx`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")}))}static exportApprovePayroll(t){return d(this,void 0,void 0,(function*(){const e=yield this.client.get({path:"/v1/pos/payroll/site/export-approve-payroll",query:t}),i=H();F()(e.data,`${G()().format(i)}.xlsx`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")}))}static exportIncomeDetail(t){return d(this,void 0,void 0,(function*(){const e=yield this.client.get({path:"/v1/pos/payroll/staff/export-income-detail",query:t}),i=H();F()(e.data,`${G()().format(i)}.xlsx`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")}))}static getSalaryChart(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/payroll/site/salary-chart",query:t})}))}static getAppListPayroll(t){var e;return d(this,void 0,void 0,(function*(){const i=yield this.client.get({path:"/v1/pos/payroll/site/app-list-payroll",query:t});return((null===(e=null==i?void 0:i.result)||void 0===e?void 0:e.data)||[]).map((t=>function(t){var e,i,n,o;return{payroll_id:null!==(e=null==t?void 0:t.payroll)&&void 0!==e?e:null,start_date:null!==(i=null==t?void 0:t.start_date)&&void 0!==i?i:null,end_date:null!==(n=null==t?void 0:t.end_date)&&void 0!==n?n:null,total_income:null!==(o=null==t?void 0:t.total_income)&&void 0!==o?o:null,employee_list:(null==t?void 0:t.employee_list)?null==t?void 0:t.employee_list.map((t=>K(t))):null}}(t)))}))}static getPayrollDetail(t){var e;return d(this,void 0,void 0,(function*(){const i=yield this.client.get({path:"/v1/pos/payroll/site/get-payroll-detail",query:t});return((null===(e=null==i?void 0:i.result)||void 0===e?void 0:e.data)||[]).map((t=>K(t)))}))}}W.API_VERSION=e.V1;class z extends k{static getPrinterList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:S,query:t})}))}static getPrinterDetail(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:S,query:t})}))}static createPrinterInfo(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:S,data:t})}))}static updatePrinterInfo(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:S,query:t})}))}}class J extends k{static getServiceList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/service/site/list",query:t})}))}}class X extends k{static getTurnValue(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/setting/site/get-turn-value",query:t})}))}static postTurnUpdateValue(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/setting/form/update-turn-value",data:t})}))}}class Q extends k{static getStaffList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/staff/site/list",query:t})}))}static getStaffListByCheckout(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/staff/site/list-by-checkout",query:t})}))}}class Z extends k{static getTicketList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/ticket/site/info",query:t})}))}static createTicketTemplate(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ticket/form/create",data:t})}))}static deleteTicketTemplate(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/ticket/form/delete",query:t})}))}static updateTicketTemplate(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ticket/form/update",query:t,data:t})}))}static moveSubject(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ticket/form/subject-move",data:t})}))}static setDefaultTicketTemplate(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/ticket/site/set-default-ticket-template",data:t})}))}static getTicketTemplate(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/ticket/site/template",query:t})}))}}class tt extends k{static getTimeKeepingList(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/timekeeping/site/list",query:t})}))}static addTimeKeeping(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/timekeeping/form/create",data:t})}))}static updateTimeKeeping(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/timekeeping/form/edit-time",data:t})}))}static removeTimeKeeping(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/timekeeping/form/delete-time",data:t})}))}static getTimeKeepingListStaff(t){return d(this,void 0,void 0,(function*(){return yield this.client.get({path:"/v1/pos/timekeeping/site/list-staff",query:t})}))}static postTimeKeepingCheckIn(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/timekeeping/form/add-checkin-time",data:t})}))}static postTimeKeepingCheckOut(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/timekeeping/form/add-checkout-time",data:t})}))}}class et extends k{}class it extends k{static postLogin(t){return d(this,void 0,void 0,(function*(){return yield this.client.post({path:"/v1/pos/user/form/login",data:t})}))}}const nt={[e.V1]:r},ot={Context:g,PosClientApi:class{constructor(t,e,i,n){k.setClient(t,e,i,n);const o=(t=>{if(!nt[t])throw new Error("Can't not find API of this version!");return nt[t]})(n);this.appointment=o.Appointment,this.batch_history=o.BatchHistory,this.business=o.Business,this.call=o.Call,this.category=o.Category,this.check_in=o.CheckIn,this.check_out=o.CheckOut,this.combo=o.Combo,this.customer=o.Customer,this.gift_card=o.GiftCard,this.income=o.Income,this.key_storage=o.KeyStorage,this.order=o.Order,this.payroll=o.Payroll,this.printer=o.Printer,this.service=o.Service,this.setting_turn=o.SettingTurn,this.staff=o.Staff,this.ticket=o.Ticket,this.time_keeping=o.TimeKeeping,this.unsubscribe_contact=o.UnsubscribeContact,this.user=o.User}},Errors:t};window.Gap=ot;const lt=ot})(),n})()));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"income.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/models/income.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAA;AAE7C,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,2BAA2B,CAsCrF;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,wBAAwB,
|
|
1
|
+
{"version":3,"file":"income.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/models/income.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAA;AAE7C,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,2BAA2B,CAsCrF;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,wBAAwB,CAoC/E"}
|
|
@@ -40,6 +40,15 @@ export function StaffDailyIncomeModel(data) {
|
|
|
40
40
|
}
|
|
41
41
|
export function IncomeHistoryModel(data) {
|
|
42
42
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17;
|
|
43
|
+
function BatchModel(data) {
|
|
44
|
+
var _a, _b, _c, _d;
|
|
45
|
+
return {
|
|
46
|
+
order_id: (_a = data === null || data === void 0 ? void 0 : data.order_id) !== null && _a !== void 0 ? _a : null,
|
|
47
|
+
customer_name: (_b = data === null || data === void 0 ? void 0 : data.customer_name) !== null && _b !== void 0 ? _b : null,
|
|
48
|
+
total_income: (_c = data === null || data === void 0 ? void 0 : data.total_income) !== null && _c !== void 0 ? _c : null,
|
|
49
|
+
subtotal: (_d = data === null || data === void 0 ? void 0 : data.subtotal) !== null && _d !== void 0 ? _d : null,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
43
52
|
return {
|
|
44
53
|
title: (_a = data === null || data === void 0 ? void 0 : data.title) !== null && _a !== void 0 ? _a : null,
|
|
45
54
|
income: (_b = data === null || data === void 0 ? void 0 : data.income) !== null && _b !== void 0 ? _b : null,
|
|
@@ -64,6 +73,7 @@ export function IncomeHistoryModel(data) {
|
|
|
64
73
|
service_fee: (_13 = (_12 = data === null || data === void 0 ? void 0 : data.summary) === null || _12 === void 0 ? void 0 : _12.service_fee) !== null && _13 !== void 0 ? _13 : null,
|
|
65
74
|
deposit: (_15 = (_14 = data === null || data === void 0 ? void 0 : data.summary) === null || _14 === void 0 ? void 0 : _14.deposit) !== null && _15 !== void 0 ? _15 : null,
|
|
66
75
|
total: (_17 = (_16 = data === null || data === void 0 ? void 0 : data.summary) === null || _16 === void 0 ? void 0 : _16.total) !== null && _17 !== void 0 ? _17 : null,
|
|
67
|
-
}
|
|
76
|
+
},
|
|
77
|
+
batches: (data === null || data === void 0 ? void 0 : data.batches) ? data === null || data === void 0 ? void 0 : data.batches.map(item => BatchModel(item)) : null,
|
|
68
78
|
};
|
|
69
79
|
}
|
|
@@ -28,10 +28,10 @@ export declare type RemoveOrderRequest = {
|
|
|
28
28
|
order_id: number;
|
|
29
29
|
page?: number;
|
|
30
30
|
'per-page'?: number;
|
|
31
|
-
type
|
|
32
|
-
from
|
|
33
|
-
to
|
|
34
|
-
payment_type
|
|
31
|
+
type?: string;
|
|
32
|
+
from?: string;
|
|
33
|
+
to?: string;
|
|
34
|
+
payment_type?: number;
|
|
35
35
|
};
|
|
36
36
|
export declare type ExportOrderRequest = {
|
|
37
37
|
type: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/request/order.ts"],"names":[],"mappings":"AAAA,oBAAY,0BAA0B,GAAG;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AACD,oBAAY,qBAAqB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAA;CACb,CAAA;AACD,oBAAY,0BAA0B,GAAG;IACrC,QAAQ,EAAE,MAAM,CAAA;CACnB,CAAA;AACD,oBAAY,uBAAuB,GAAG;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAYD,oBAAY,uBAAuB,GAAG;IAClC,QAAQ,EAAE,MAAM,CAAA;IAChB,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;CACnB,CAAA;AAID,oBAAY,kBAAkB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/request/order.ts"],"names":[],"mappings":"AAAA,oBAAY,0BAA0B,GAAG;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AACD,oBAAY,qBAAqB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAA;CACb,CAAA;AACD,oBAAY,0BAA0B,GAAG;IACrC,QAAQ,EAAE,MAAM,CAAA;CACnB,CAAA;AACD,oBAAY,uBAAuB,GAAG;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAYD,oBAAY,uBAAuB,GAAG;IAClC,QAAQ,EAAE,MAAM,CAAA;IAChB,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;CACnB,CAAA;AAID,oBAAY,kBAAkB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB,CAAA;AACD,oBAAY,kBAAkB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;CACjB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare type GetCheckInInfoResponse =
|
|
1
|
+
import { Nullable } from "../../../../base_type";
|
|
2
|
+
export declare type GetCheckInInfoResponse = Nullable<{
|
|
3
3
|
id: number;
|
|
4
4
|
customer_id?: number;
|
|
5
5
|
customer_name: string;
|
|
@@ -72,7 +72,7 @@ export declare type GetCheckInInfoResponse = PartialNull<{
|
|
|
72
72
|
service_subtotal: number;
|
|
73
73
|
staff_code: number[];
|
|
74
74
|
}>;
|
|
75
|
-
export declare type GetCheckInInfoResponseTip =
|
|
75
|
+
export declare type GetCheckInInfoResponseTip = Nullable<{
|
|
76
76
|
id: number;
|
|
77
77
|
order_id: number;
|
|
78
78
|
created_at: string;
|
|
@@ -86,11 +86,11 @@ export declare type GetCheckInInfoResponseTip = PartialNull<{
|
|
|
86
86
|
giftcard_code: any;
|
|
87
87
|
is_updated: number;
|
|
88
88
|
}>;
|
|
89
|
-
export declare type GetCheckInInfoResponseService =
|
|
89
|
+
export declare type GetCheckInInfoResponseService = Nullable<{
|
|
90
90
|
staff_name: string;
|
|
91
91
|
items: GetCheckInInfoResponseItem[];
|
|
92
92
|
}>;
|
|
93
|
-
export declare type GetCheckInInfoResponseItem =
|
|
93
|
+
export declare type GetCheckInInfoResponseItem = Nullable<{
|
|
94
94
|
item_name: string;
|
|
95
95
|
quantity: number;
|
|
96
96
|
price: number;
|
|
@@ -103,12 +103,12 @@ export declare type GetCheckInInfoResponseItem = PartialNull<{
|
|
|
103
103
|
commission: number;
|
|
104
104
|
cash_discount: number;
|
|
105
105
|
}>;
|
|
106
|
-
export declare type GetCheckInInfoResponseStaff =
|
|
106
|
+
export declare type GetCheckInInfoResponseStaff = Nullable<{
|
|
107
107
|
employee_name: string;
|
|
108
108
|
employee_image: string;
|
|
109
109
|
employee_color: string;
|
|
110
110
|
}>;
|
|
111
|
-
export declare type GetCheckInInfoResponseOrderBatch =
|
|
111
|
+
export declare type GetCheckInInfoResponseOrderBatch = Nullable<{
|
|
112
112
|
card_amount: number;
|
|
113
113
|
cash_amount: number;
|
|
114
114
|
check_amount: number;
|
|
@@ -124,7 +124,7 @@ export declare type GetCheckInInfoResponseOrderBatch = PartialNull<{
|
|
|
124
124
|
cash_discount: number;
|
|
125
125
|
change: number;
|
|
126
126
|
}>;
|
|
127
|
-
export declare type GetCheckInInfoResponseOrderPaymentMethod =
|
|
127
|
+
export declare type GetCheckInInfoResponseOrderPaymentMethod = Nullable<{
|
|
128
128
|
id: number;
|
|
129
129
|
order_id: number;
|
|
130
130
|
payment_method_type: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check_in.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/check_in.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"check_in.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/check_in.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare type GetCheckOutHistoryInfoResponse =
|
|
1
|
+
import { Nullable } from "../../../../base_type";
|
|
2
|
+
export declare type GetCheckOutHistoryInfoResponse = Nullable<{
|
|
3
3
|
id: number;
|
|
4
4
|
order_code: string;
|
|
5
5
|
created_date: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check_out.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/check_out.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"check_out.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/check_out.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAE/C,oBAAY,8BAA8B,GAAG,QAAQ,CAAC;IAClD,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,OAAO,EAAE,GAAG,CAAA;CACf,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare type GetCustomerListResponse =
|
|
1
|
+
import { Nullable } from "../../../../base_type";
|
|
2
|
+
export declare type GetCustomerListResponse = Nullable<{
|
|
3
3
|
customer_name: string;
|
|
4
4
|
customer_phone: string;
|
|
5
5
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/customer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/customer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAE/C,oBAAY,uBAAuB,GAAG,QAAQ,CAAC;IAC3C,aAAa,EAAE,MAAM,CAAA;IACrB,cAAc,EAAE,MAAM,CAAA;CACzB,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare type GetStaffDailyIncomeResponse =
|
|
1
|
+
import { Nullable } from "../../../../base_type";
|
|
2
|
+
export declare type GetStaffDailyIncomeResponse = Nullable<{
|
|
3
3
|
user_id: number;
|
|
4
4
|
name: string;
|
|
5
5
|
image_url?: string;
|
|
@@ -11,7 +11,7 @@ export declare type GetStaffDailyIncomeResponse = PartialNull<{
|
|
|
11
11
|
income: GetStaffDailyIncomeResponseIncome;
|
|
12
12
|
daily_service: any[];
|
|
13
13
|
}>;
|
|
14
|
-
export declare type GetStaffDailyIncomeResponsePermission =
|
|
14
|
+
export declare type GetStaffDailyIncomeResponsePermission = Nullable<{
|
|
15
15
|
id: number;
|
|
16
16
|
name: string;
|
|
17
17
|
type: string;
|
|
@@ -19,7 +19,7 @@ export declare type GetStaffDailyIncomeResponsePermission = PartialNull<{
|
|
|
19
19
|
created_at: string;
|
|
20
20
|
updated_at: string;
|
|
21
21
|
}>;
|
|
22
|
-
export declare type GetStaffDailyIncomeResponseIncome =
|
|
22
|
+
export declare type GetStaffDailyIncomeResponseIncome = Nullable<{
|
|
23
23
|
commission: number;
|
|
24
24
|
tip: number;
|
|
25
25
|
working_hours: number;
|
|
@@ -34,12 +34,13 @@ export declare type GetStaffDailyIncomeResponseIncome = PartialNull<{
|
|
|
34
34
|
check_income: number;
|
|
35
35
|
wage_per_hours: boolean;
|
|
36
36
|
}>;
|
|
37
|
-
export declare type GetIncomeHistoryResponse =
|
|
37
|
+
export declare type GetIncomeHistoryResponse = Nullable<{
|
|
38
38
|
title: string;
|
|
39
39
|
income: number;
|
|
40
40
|
summary: GetIncomeHistoryResponseSummary;
|
|
41
|
+
batches: GetIncomeHistoryResponseBatches[];
|
|
41
42
|
}>;
|
|
42
|
-
export declare type GetIncomeHistoryResponseSummary =
|
|
43
|
+
export declare type GetIncomeHistoryResponseSummary = Nullable<{
|
|
43
44
|
date: any;
|
|
44
45
|
display_date: any;
|
|
45
46
|
display_date_time: any;
|
|
@@ -61,4 +62,10 @@ export declare type GetIncomeHistoryResponseSummary = PartialNull<{
|
|
|
61
62
|
deposit: number;
|
|
62
63
|
total: number;
|
|
63
64
|
}>;
|
|
65
|
+
export declare type GetIncomeHistoryResponseBatches = Nullable<{
|
|
66
|
+
order_id: number;
|
|
67
|
+
customer_name: string;
|
|
68
|
+
total_income: number;
|
|
69
|
+
subtotal: number;
|
|
70
|
+
}>;
|
|
64
71
|
//# sourceMappingURL=income.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"income.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/income.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"income.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/income.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAE/C,oBAAY,2BAA2B,GAAG,QAAQ,CAAC;IAC/C,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,qCAAqC,EAAE,CAAA;IACnD,kBAAkB,EAAE,OAAO,CAAA;IAC3B,MAAM,EAAE,iCAAiC,CAAA;IACzC,aAAa,EAAE,GAAG,EAAE,CAAA;CACvB,CAAC,CAAA;AAEF,oBAAY,qCAAqC,GAAG,QAAQ,CAAC;IACzD,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACrB,CAAC,CAAA;AAEF,oBAAY,iCAAiC,GAAG,QAAQ,CAAC;IACrD,UAAU,EAAE,MAAM,CAAA;IAClB,GAAG,EAAE,MAAM,CAAA;IACX,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,iBAAiB,EAAE,MAAM,CAAA;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,gBAAgB,EAAE,MAAM,CAAA;IACxB,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,OAAO,CAAA;CAC1B,CAAC,CAAA;AAIF,oBAAY,wBAAwB,GAAG,QAAQ,CAAC;IAC5C,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,+BAA+B,CAAC;IACzC,OAAO,EAAE,+BAA+B,EAAE,CAAA;CAC7C,CAAC,CAAA;AAEF,oBAAY,+BAA+B,GAAG,QAAQ,CAAC;IACnD,IAAI,EAAE,GAAG,CAAA;IACT,YAAY,EAAE,GAAG,CAAA;IACjB,iBAAiB,EAAE,GAAG,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,EAAE,MAAM,CAAA;IACvB,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;CAChB,CAAC,CAAA;AAEF,oBAAY,+BAA+B,GAAG,QAAQ,CAAC;IACnD,QAAQ,EAAE,MAAM,CAAA;IAChB,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;CACnB,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare type MetaResponse =
|
|
1
|
+
import { Nullable } from "../../../../base_type";
|
|
2
|
+
export declare type MetaResponse = Nullable<{
|
|
3
3
|
totalCount: number;
|
|
4
4
|
pageCount: number;
|
|
5
5
|
currentPage: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAE/C,oBAAY,YAAY,GAAG,QAAQ,CAAC;IAChC,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;CAClB,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare type GetReportCheckInResponse =
|
|
1
|
+
import { Nullable } from "../../../../base_type";
|
|
2
|
+
export declare type GetReportCheckInResponse = Nullable<{
|
|
3
3
|
all: number;
|
|
4
4
|
pending: number;
|
|
5
5
|
processing: number;
|
|
@@ -7,7 +7,7 @@ export declare type GetReportCheckInResponse = PartialNull<{
|
|
|
7
7
|
done: number;
|
|
8
8
|
settlement_fail: number;
|
|
9
9
|
}>;
|
|
10
|
-
export declare type GetOrderDetailResponse =
|
|
10
|
+
export declare type GetOrderDetailResponse = Nullable<{
|
|
11
11
|
id: number;
|
|
12
12
|
customer_id: any;
|
|
13
13
|
customer_name: string;
|
|
@@ -80,7 +80,7 @@ export declare type GetOrderDetailResponse = PartialNull<{
|
|
|
80
80
|
service_subtotal: number;
|
|
81
81
|
staff_code: number[];
|
|
82
82
|
}>;
|
|
83
|
-
export declare type GetOrderDetailResponseTip =
|
|
83
|
+
export declare type GetOrderDetailResponseTip = Nullable<{
|
|
84
84
|
id: number;
|
|
85
85
|
order_id: number;
|
|
86
86
|
created_at: string;
|
|
@@ -94,7 +94,7 @@ export declare type GetOrderDetailResponseTip = PartialNull<{
|
|
|
94
94
|
giftcard_code: any;
|
|
95
95
|
is_updated: number;
|
|
96
96
|
}>;
|
|
97
|
-
export declare type GetOrderDetailResponseInvoice =
|
|
97
|
+
export declare type GetOrderDetailResponseInvoice = Nullable<{
|
|
98
98
|
id: number;
|
|
99
99
|
checkout_id: number;
|
|
100
100
|
customer_id: any;
|
|
@@ -116,7 +116,7 @@ export declare type GetOrderDetailResponseInvoice = PartialNull<{
|
|
|
116
116
|
updated_at: string;
|
|
117
117
|
type: string;
|
|
118
118
|
}>;
|
|
119
|
-
export declare type GetOrderDetailResponseOrderDiscount =
|
|
119
|
+
export declare type GetOrderDetailResponseOrderDiscount = Nullable<{
|
|
120
120
|
id: number;
|
|
121
121
|
order_id: number;
|
|
122
122
|
item_type: string;
|
|
@@ -129,11 +129,11 @@ export declare type GetOrderDetailResponseOrderDiscount = PartialNull<{
|
|
|
129
129
|
total_value: number;
|
|
130
130
|
total_discount: number;
|
|
131
131
|
}>;
|
|
132
|
-
export declare type GetOrderDetailResponseService =
|
|
132
|
+
export declare type GetOrderDetailResponseService = Nullable<{
|
|
133
133
|
staff_name: string;
|
|
134
134
|
items: GetOrderDetailResponseItem[];
|
|
135
135
|
}>;
|
|
136
|
-
export declare type GetOrderDetailResponseItem =
|
|
136
|
+
export declare type GetOrderDetailResponseItem = Nullable<{
|
|
137
137
|
item_name: string;
|
|
138
138
|
quantity: number;
|
|
139
139
|
price: number;
|
|
@@ -146,12 +146,12 @@ export declare type GetOrderDetailResponseItem = PartialNull<{
|
|
|
146
146
|
commission: number;
|
|
147
147
|
cash_discount: number;
|
|
148
148
|
}>;
|
|
149
|
-
export declare type GetOrderDetailResponseStaff =
|
|
149
|
+
export declare type GetOrderDetailResponseStaff = Nullable<{
|
|
150
150
|
employee_name: string;
|
|
151
151
|
employee_image?: string;
|
|
152
152
|
employee_color: string;
|
|
153
153
|
}>;
|
|
154
|
-
export declare type GetOrderDetailResponseOrderBatch =
|
|
154
|
+
export declare type GetOrderDetailResponseOrderBatch = Nullable<{
|
|
155
155
|
card_amount: number;
|
|
156
156
|
cash_amount: number;
|
|
157
157
|
check_amount: number;
|
|
@@ -167,7 +167,7 @@ export declare type GetOrderDetailResponseOrderBatch = PartialNull<{
|
|
|
167
167
|
cash_discount: number;
|
|
168
168
|
change: number;
|
|
169
169
|
}>;
|
|
170
|
-
export declare type GetOrderDetailResponseOrderPaymentMethod =
|
|
170
|
+
export declare type GetOrderDetailResponseOrderPaymentMethod = Nullable<{
|
|
171
171
|
id: number;
|
|
172
172
|
order_id: number;
|
|
173
173
|
payment_method_type: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/order.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare type GetPayrollDetailResponse =
|
|
1
|
+
import { Nullable } from "../../../../base_type";
|
|
2
|
+
export declare type GetPayrollDetailResponse = Nullable<{
|
|
3
3
|
user_id: number;
|
|
4
4
|
name: string;
|
|
5
5
|
image_url?: string;
|
|
@@ -17,11 +17,11 @@ export declare type GetPayrollDetailResponse = PartialNull<{
|
|
|
17
17
|
wage_per_hours: boolean;
|
|
18
18
|
list_detail: GetPayrollDetailResponseDetail[];
|
|
19
19
|
}>;
|
|
20
|
-
export declare type GetPayrollDetailResponseDetail =
|
|
20
|
+
export declare type GetPayrollDetailResponseDetail = Nullable<{
|
|
21
21
|
date: string;
|
|
22
22
|
final_commission: number;
|
|
23
23
|
}>;
|
|
24
|
-
export declare type GetAppListPayrollResponse =
|
|
24
|
+
export declare type GetAppListPayrollResponse = Nullable<{
|
|
25
25
|
payroll_id: any;
|
|
26
26
|
start_date: string;
|
|
27
27
|
end_date: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payroll.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/payroll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"payroll.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/payroll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAE/C,oBAAY,wBAAwB,GAAG,QAAQ,CAAC;IAC5C,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,gBAAgB,EAAE,MAAM,CAAA;IACxB,YAAY,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,OAAO,CAAA;IACvB,WAAW,EAAE,8BAA8B,EAAE,CAAA;CAChD,CAAC,CAAA;AAEF,oBAAY,8BAA8B,GAAG,QAAQ,CAAC;IAClD,IAAI,EAAE,MAAM,CAAA;IACZ,gBAAgB,EAAE,MAAM,CAAA;CAC3B,CAAC,CAAA;AAEF,oBAAY,yBAAyB,GAAG,QAAQ,CAAC;IAC7C,UAAU,EAAE,GAAG,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,wBAAwB,EAAE,CAAA;CAC5C,CAAC,CAAA"}
|