@terra-js/terra-kit 1.5.0 → 1.6.0

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/bundle/terra.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,(()=>(()=>{"use strict";var e={106:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(194),u=n(314),a=n(397),s=n(99),c=n(663),l=n(734),f=n(691),p=n(839),d=n(157),h=n(783),v=n(852),y=n(646),w=n(431),b=function(){function e(){var e=this;this.wrappedModule=null,this.getInitParams=function(){return r(e,void 0,void 0,(function(){var e,t,n,r;return o(this,(function(o){switch(o.label){case 0:return t=v.mapResponseToResult,[4,this.wrappedModule.invoke("getInitParams")];case 1:return(e=t.apply(void 0,[o.sent()])).isSuccess()?[2,e]:(n=new URLSearchParams(window.location.search),r={},n.forEach((function(e,t,n){r[t]=e})),[2,(0,v.success)(r)])}}))}))},this.share=function(t){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(n){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("shareContent",t)}))]}))}))},this.authKit=new u.default,this.erpKit=new a.default,this.userKit=new s.default,this.apolloKit=new c.default,this.commonKit=new l.default,this.loyaltyKit=new f.default,this.orderKit=new p.default,this.discoveryKit=new h.default,this.deviceKit=new d.default,this.cartKit=new y.default,this.trackerKit=new w.default,this.wrappedModule=new i.ModuleWrapper("TerraModule")}return e.prototype.isAvailable=function(){return n.g.isTerraAvailable&&n.g.isTerraAvailable()||!1},e.prototype.finish=function(){this.wrappedModule.invoke("finish").then()},e.prototype.finishWithResult=function(e){var t=this;this.wrappedModule.invoke("sendFinishResult",{resultCode:e.resultCode,data:JSON.stringify(e.data)}).then((function(){t.wrappedModule.invoke("finish").then()}))},e.prototype.auth=function(){return this.authKit},e.prototype.erp=function(){return this.erpKit},e.prototype.user=function(){return this.userKit},e.prototype.apollo=function(){return this.apolloKit},e.prototype.common=function(){return this.commonKit},e.prototype.loyalty=function(){return this.loyaltyKit},e.prototype.order=function(){return this.orderKit},e.prototype.discovery=function(){return this.discoveryKit},e.prototype.device=function(){return this.deviceKit},e.prototype.cart=function(){return this.cartKit},e.prototype.tracker=function(){return this.trackerKit},e}();t.default=b},663:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=n(194);t.default=function(){var e=this;this.appName="",this.wrappedModule=null,this.getConfig=function(){return e.wrappedModule.invoke("getConfig")},this.wrappedModule=new r.ModuleWrapper("ApolloKitModule")}},314:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(194),u=n(852),a=function(){function e(){this.wrappedModule=null,this.accessToken=null,this.user=null,this.wrappedModule=new i.ModuleWrapper("AuthKitModule")}return e.prototype.isLoggedIn=function(){return null!=this.user},e.prototype.login=function(){return r(this,void 0,void 0,(function(){var e=this;return o(this,(function(t){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("login")}))]}))}))},e.prototype.logout=function(){throw Error("Should not call logout within a WebView scope")},e.prototype.getAccessToken=function(){return this.accessToken},e.prototype.getAccessTokenAsync=function(){return r(this,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return[4,this.wrappedModule.invoke("getAccessToken")];case 1:return e=t.sent().result,this.accessToken=null==e?void 0:e.accessToken,[2,this.accessToken]}}))}))},e.prototype.refreshAccessToken=function(){return r(this,void 0,void 0,(function(){var e,t,n=this;return o(this,(function(r){switch(r.label){case 0:return[4,(0,i.toResult)((function(){return n.wrappedModule.invoke("refreshAccessToken")}))];case 1:return(e=r.sent()).isSuccess()?(t=e.getValue().accessToken,this.accessToken=t,[2,(0,u.success)(t)]):[2,(0,u.failure)(e.getError())]}}))}))},e.prototype.getUserInfo=function(){return this.user},e.prototype.getFullUserInfo=function(){return r(this,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return[4,this.wrappedModule.invoke("getUserInfo")];case 1:return e=t.sent().result,this.user=e,[2,this.user]}}))}))},e}();t.default=a},646:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(194),u=function(){function e(){this.wrappedModule=new i.ModuleWrapper("CartKitModule")}return e.prototype.getCartToken=function(){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.wrappedModule.invoke("getCartToken")];case 1:return[2,e.sent().result]}}))}))},e.prototype.updateCartSuccess=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.wrappedModule.invoke("updateCartSuccess",{cart:e})];case 1:return[2,t.sent().result]}}))}))},e}();t.default=u},734:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScanResultAction=t.ScanResultCode=t.SourceGetPhotoType=t.ScanningType=void 0;var i,u,a,s=n(194),c=n(194);!function(e){e.PRODUCT_SERIAL="serial",e.PRODUCT_BARCODE="barcode",e.PRODUCT_QR="qr",e.PRODUCT_ALL_TYPE="allType"}(i=t.ScanningType||(t.ScanningType={})),(a=t.SourceGetPhotoType||(t.SourceGetPhotoType={})).CAMERA="camera",a.LIBRARY="library",a.BOTH="both",(u=t.ScanResultCode||(t.ScanResultCode={}))[u.ERROR=0]="ERROR",u[u.SUCCESS=1]="SUCCESS",(t.ScanResultAction||(t.ScanResultAction={})).FORCE_CLOSE_SCAN="forceCloseScan";var l=function(){function e(){var e=this;this.wrappedModule=null,this.deviceID="",this.accessToken=null,this.user=null,this.getPrintConfig=function(){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(t){return[2,(0,c.toResult)((function(){return e.wrappedModule.invoke("getPrintConfig")}))]}))}))},this.printImage=function(t){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(n){return[2,(0,c.toResult)((function(){return e.wrappedModule.invoke("printImage",t)}))]}))}))},this.getPhoto=function(t){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(n){return[2,(0,c.toResult)((function(){return e.wrappedModule.invoke("getPhoto",t)}))]}))}))},this.printDocument=function(t){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(n){return[2,(0,c.toResult)((function(){return e.wrappedModule.invoke("printDocument",{documentUrl:t})}))]}))}))},this.observeScanResult=function(t){var n;n=null==t.scanningTypes||1!=t.scanningTypes.length?i.PRODUCT_ALL_TYPE:t.scanningTypes[0];var r={continuous:t.continuous,scanningType:n,scanningTypes:t.scanningTypes};return e.wrappedModule.invoke("observeScanResult",r)},this.processScanResult=function(t){return r(e,void 0,void 0,(function(){return o(this,(function(e){return this.wrappedModule.invoke("processScanResult",t).then(),[2]}))}))},this.wrappedModule=new s.ModuleWrapper("CommonKitModule")}return e.prototype.scan=function(){return{observeScanResult:this.observeScanResult,processScanResult:this.processScanResult}},e}();t.default=l},157:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(194),u=function(){function e(){this.wrappedModule=new i.ModuleWrapper("DeviceKitModule")}return e.prototype.hasPermission=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,i.toResult)((function(){return t.wrappedModule.invoke("hasPermission",e)}))]}))}))},e.prototype.turnOnGps=function(){return r(this,void 0,void 0,(function(){var e=this;return o(this,(function(t){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("turnOnGps")}))]}))}))},e.prototype.getLocation=function(e){return void 0===e&&(e=null),r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,i.toResult)((function(){return t.wrappedModule.invoke("getLocation",e)}))]}))}))},e}();t.default=u},783:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(194),u=function(){function e(){this.wrappedModule=null,this.wrappedModule=new i.ModuleWrapper("DiscoveryKitModule")}return e.prototype.onStockRequestFinish=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.wrappedModule.invoke("onStockRequestFinish",{isSuccess:e})];case 1:return[2,t.sent().result]}}))}))},e.prototype.getProduct=function(){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.wrappedModule.invoke("getProduct")];case 1:return[2,e.sent().result]}}))}))},e}();t.default=u},397:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(194),u=function(){function e(){this.terminal=null,this.terraConfig=null,this.wrappedModule=null,this.wrappedModule=new i.ModuleWrapper("ErpKitModule")}return e.prototype.getSellerId=function(){var e;return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return null==this.terminal?[3,1]:[2,null===(e=this.terminal)||void 0===e?void 0:e.sellerID];case 1:return[4,this.getTerminal()];case 2:return[2,t.sent().sellerID]}}))}))},e.prototype.getPlatformId=function(){var e;return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return null==this.terminal?[3,1]:[2,null===(e=this.terminal)||void 0===e?void 0:e.platformId];case 1:return[4,this.getTerminal()];case 2:return[2,t.sent().platformId]}}))}))},e.prototype.getPlatformCode=function(){var e;return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return null==this.terminal?[3,1]:[2,null===(e=this.terminal)||void 0===e?void 0:e.platformCode];case 1:return[4,this.getTerminal()];case 2:return[2,t.sent().platformCode]}}))}))},e.prototype.getTerminal=function(){return r(this,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return[4,this.wrappedModule.invoke("getTerminal")];case 1:return e=t.sent().result,this.terminal=e,[2,e]}}))}))},e.prototype.getTerraConfig=function(){return r(this,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return[4,this.wrappedModule.invoke("getTerraConfig")];case 1:return e=t.sent().result,this.terraConfig=e,[2,e]}}))}))},e.prototype.getLanguage=function(){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.wrappedModule.invoke("getLanguage")];case 1:return[2,e.sent().result]}}))}))},e.prototype.getDetailPickingListId=function(){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.wrappedModule.invoke("getDetailPickingListId")];case 1:return[2,e.sent().result]}}))}))},e}();t.default=u},691:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(194),u=n(126),a=function(){function e(){this.wrappedModule=null,this.wrappedModule=new i.ModuleWrapper("LoyaltyKitModule")}return e.prototype.getMemberInfo=function(e){return void 0===e&&(e=u.GetMemberInfoRequestFactory.currentUser()),r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,this.mapResult((function(){return t.wrappedModule.invoke("getMemberInfo",e)}))]}))}))},e.prototype.openAssignMemberCard=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,this.mapResult((function(){return t.wrappedModule.invoke("openAssignMemberCard",{memberId:e})}))]}))}))},e.prototype.getNetworkConfig=function(){return r(this,void 0,void 0,(function(){var e=this;return o(this,(function(t){return[2,this.mapResult((function(){return e.wrappedModule.invoke("getNetworkConfig")}))]}))}))},e.prototype.getLoyaltyConfig=function(){return r(this,void 0,void 0,(function(){var e=this;return o(this,(function(t){return[2,this.mapResult((function(){return e.wrappedModule.invoke("getLoyaltyConfig")}))]}))}))},e.prototype.mapResult=function(e){return new Promise((function(t){(0,i.toResult)(e).then((function(e){e.isSuccess()?t(e.getValue()):t({resultCode:u.LoyaltyResultCode.Unexpected,message:e.getError().message})}))}))},e}();t.default=a},126:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.LoyaltyResultCode=t.GetMemberInfoRequestFactory=void 0,t.GetMemberInfoRequestFactory={currentUser:function(){return{type:"currentUser"}},phone:function(e){return{type:"phone",phone:e}},memberQrCode:function(e){return{type:"memberQrCode",memberQrCode:e}}},(n=t.LoyaltyResultCode||(t.LoyaltyResultCode={})).Success="Success",n.Cancelled="Cancelled",n.CannotCallLoyaltyService="CannotCallLoyaltyService",n.DataInactive="DataInactive",n.DuplicateMemberCardId="DuplicateMemberCardId",n.DuplicatePhone="DuplicatePhone",n.InvalidParam="InvalidParam",n.InvalidParamFormat="InvalidParamFormat",n.MemberInactive="MemberInactive",n.MemberQrInactive="MemberQrInactive",n.MissingParam="MissingParam",n.ParamOutOfRange="ParamOutOfRange",n.PermissionDenied="PermissionDenied",n.RedemptionCodeExpired="RedemptionCodeExpired",n.SubjectNotFound="SubjectNotFound",n.SystemError="SystemError",n.Unauthorized="Unauthorized",n.Unexpected="Unexpected",n.MemberNotMatchMerchant="MemberNotMatchMerchant"},839:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(194),u=n(194),a=function(){function e(){this.wrappedModule=null,this.wrappedModule=new i.ModuleWrapper("OrderKitModule")}return e.prototype.requestReturn=function(){return r(this,void 0,void 0,(function(){var e=this;return o(this,(function(t){return[2,(0,u.toResult)((function(){return e.wrappedModule.invoke("requestReturn")}))]}))}))},e.prototype.navigateToCart=function(e,t){return void 0===t&&(t=null),r(this,void 0,void 0,(function(){var n=this;return o(this,(function(r){return[2,(0,u.toResult)((function(){return n.wrappedModule.invoke("navigateToCart",{cartToken:e,detailPickingListId:t})}))]}))}))},e.prototype.repaymentOrder=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,u.toResult)((function(){return t.wrappedModule.invoke("repaymentOrder",{orderId:e})}))]}))}))},e.prototype.navigateToProductDetail=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,u.toResult)((function(){return t.wrappedModule.invoke("navigateToProductDetail",{sku:e})}))]}))}))},e.prototype.onReturnFinish=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,u.toResult)((function(){return t.wrappedModule.invoke("onReturnFinish",{reload:e})}))]}))}))},e.prototype.printReceipt=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,u.toResult)((function(){return t.wrappedModule.invoke("printReceipt",{orderId:e})}))]}))}))},e.prototype.payForOrder=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,u.toResult)((function(){return t.wrappedModule.invoke("payForOrder",{orderId:e})}))]}))}))},e.prototype.openOrderManagement=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,u.toResult)((function(){return t.wrappedModule.invoke("openOrderManagement",e)}))]}))}))},e.prototype.reloadOrders=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,u.toResult)((function(){return t.wrappedModule.invoke("reloadOrders",e)}))]}))}))},e.prototype.requestCancel=function(){return r(this,void 0,void 0,(function(){var e=this;return o(this,(function(t){return[2,(0,u.toResult)((function(){return e.wrappedModule.invoke("requestCancel")}))]}))}))},e.prototype.onCancelFinish=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,u.toResult)((function(){return t.wrappedModule.invoke("onCancelFinish",{reload:e})}))]}))}))},e.prototype.navigateToWmsProcessOrder=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,u.toResult)((function(){return t.wrappedModule.invoke("navigateToWmsProcessOrder",{documentId:e})}))]}))}))},e.prototype.onWmsProcessOrderFinish=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,u.toResult)((function(){return t.wrappedModule.invoke("onWmsProcessOrderFinish",{reload:e})}))]}))}))},e.prototype.openOrderDetail=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,u.toResult)((function(){return t.wrappedModule.invoke("openOrderDetail",{orderId:e})}))]}))}))},e}();t.default=a},431:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(194),u=function(){function e(){this.wrappedModule=new i.ModuleWrapper("TrackerKitModule")}return e.prototype.getTrackingAppId=function(){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.wrappedModule.invoke("getTrackingAppId")];case 1:return[2,e.sent().result]}}))}))},e}();t.default=u},99:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(194);t.default=function(){var e=this;this.wrappedModule=null,this.getUserProfile=function(){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(t){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("getUserProfile")}))]}))}))},this.updateUserProfile=function(t){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(n){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("updateUserProfile",t)}))]}))}))},this.searchProfile=function(t){return(0,i.toResult)((function(){return e.wrappedModule.invoke("searchProfile",t)}))},this.upsertProfile=function(t){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(n){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("upsertProfile",t)}))]}))}))},this.registerProfile=function(t){return(0,i.toResult)((function(){return e.wrappedModule.invoke("registerProfile",t)}))},this.createNewAddress=function(t){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(n){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("createNewAddress",t)}))]}))}))},this.updateAddress=function(t){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(n){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("updateAddress",t)}))]}))}))},this.deleteAddress=function(t){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(n){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("deleteAddress",t)}))]}))}))},this.getOperationFlowConfig=function(){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(t){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("getOperationFlowConfig")}))]}))}))},this.changeDealer=function(t){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(n){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("changeDealer",t)}))]}))}))},this.fetchUserAddressList=function(){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(t){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("fetchUserAddress")}))]}))}))},this.getDetailProfile=function(t){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(n){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("getDetailProfile",t)}))]}))}))},this.publishCustomer=function(t){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(n){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("publishCustomer",t)}))]}))}))},this.fetchCustomerTypes=function(){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(t){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("fetchCustomerTypes")}))]}))}))},this.wrappedModule=new i.ModuleWrapper("UserKitModule")}},206:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ModuleWrapper=void 0;var r=n(39),o=function(){function e(e){this.moduleName="",this.wrappedModuleName="",this.moduleName=e,this.wrappedModuleName=(0,r.wrapModuleName)(e)}return e.prototype.getWrappedModule=function(){return window[this.wrappedModuleName]||(0,r.wrapModule)(window,this.moduleName),window[this.wrappedModuleName]},e.prototype.invoke=function(e,t){var n=this;return void 0===t&&(t={}),{subscribe:function(r){var o=r.next,i=r.complete,u=n.getWrappedModule().invoke(e,t).subscribe({next:o,complete:i});return{unsubscribe:function(){null==u||u.unsubscribe()}}},then:function(r){n.getWrappedModule().invoke(e,t).then(r)}}},e}();t.ModuleWrapper=o},951:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TerraAppBasedModuleWrapper=void 0;var i=function(e){function t(t,n){var r=e.call(this,n)||this;return r.appName="",r.appName=t,r}return o(t,e),t.prototype.invoke=function(t,n){return void 0===n&&(n={}),e.prototype.invoke.call(this,t,{params:n,appName:this.appName})},t}(n(206).ModuleWrapper);t.TerraAppBasedModuleWrapper=i},194:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TerraAppBasedModuleWrapper=t.Result=t.toResult=t.ModuleWrapper=void 0;var r=n(206);Object.defineProperty(t,"ModuleWrapper",{enumerable:!0,get:function(){return r.ModuleWrapper}});var o=n(852);Object.defineProperty(t,"toResult",{enumerable:!0,get:function(){return o.toResult}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return o.Result}});var i=n(951);Object.defineProperty(t,"TerraAppBasedModuleWrapper",{enumerable:!0,get:function(){return i.TerraAppBasedModuleWrapper}})},852:function(e,t){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.toResult=t.mapResponseToResult=t.failure=t.success=t.Failure=t.Success=t.Result=void 0;var o=function(){function e(e,t,n){this.success=e,this.value=n,this.error=t}return e.prototype.isSuccess=function(){return this.success},e.prototype.isFailure=function(){return!this.success},e.prototype.getValue=function(){return this.value},e.prototype.getError=function(){return this.error},e}();t.Result=o;var i=function(e){function t(t){return e.call(this,!0,null,t)||this}return r(t,e),t}(o);t.Success=i;var u=function(e){function t(t){return e.call(this,!1,t)||this}return r(t,e),t}(o);t.Failure=u,t.success=function(e){return new i(e)},t.failure=function(e){return new u(e)},t.mapResponseToResult=function(e){return 200===e.status_code?new i(e.result):new u(new Error(e.error))},t.toResult=function(e){return new Promise((function(t){e().then((function(e){200===e.status_code?t(new i(e.result)):t(new u(new Error(e.error)))}))}))}},39:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wrapModuleName=t.wrapModule=void 0,t.wrapModule=function(e,t){var n=e.wrapModule;if(null!=n)return n(e,t);throw"undefined"!=typeof document?Error("Please install @terra-js/web-bridge before using any feature of terra-js"):navigator&&"ReactNative"===navigator.product?Error("Please install @terra-js/react-native-bridge before using any feature of terra-js"):new Error("Unsupported environment")},t.wrapModuleName=function(e){return"Wrapped".concat(e)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var r={};return(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0});var t=new(n(106).default);n.g.terraKit=t,e.default=t})(),r})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,(()=>(()=>{"use strict";var e={106:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(194),u=n(314),a=n(397),s=n(99),c=n(663),l=n(734),f=n(691),p=n(839),d=n(157),h=n(783),v=n(852),y=n(646),w=n(431),b=function(){function e(){var e=this;this.wrappedModule=null,this.getInitParams=function(){return r(e,void 0,void 0,(function(){var e,t,n,r;return o(this,(function(o){switch(o.label){case 0:return t=v.mapResponseToResult,[4,this.wrappedModule.invoke("getInitParams")];case 1:return(e=t.apply(void 0,[o.sent()])).isSuccess()?[2,e]:(n=new URLSearchParams(window.location.search),r={},n.forEach((function(e,t,n){r[t]=e})),[2,(0,v.success)(r)])}}))}))},this.share=function(t){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(n){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("shareContent",t)}))]}))}))},this.authKit=new u.default,this.erpKit=new a.default,this.userKit=new s.default,this.apolloKit=new c.default,this.commonKit=new l.default,this.loyaltyKit=new f.default,this.orderKit=new p.default,this.discoveryKit=new h.default,this.deviceKit=new d.default,this.cartKit=new y.default,this.trackerKit=new w.default,this.wrappedModule=new i.ModuleWrapper("TerraModule")}return e.prototype.isAvailable=function(){return n.g.isTerraAvailable&&n.g.isTerraAvailable()||!1},e.prototype.finish=function(){this.wrappedModule.invoke("finish").then()},e.prototype.finishWithResult=function(e){var t=this;this.wrappedModule.invoke("sendFinishResult",{resultCode:e.resultCode,data:JSON.stringify(e.data)}).then((function(){t.wrappedModule.invoke("finish").then()}))},e.prototype.auth=function(){return this.authKit},e.prototype.erp=function(){return this.erpKit},e.prototype.user=function(){return this.userKit},e.prototype.apollo=function(){return this.apolloKit},e.prototype.common=function(){return this.commonKit},e.prototype.loyalty=function(){return this.loyaltyKit},e.prototype.order=function(){return this.orderKit},e.prototype.discovery=function(){return this.discoveryKit},e.prototype.device=function(){return this.deviceKit},e.prototype.cart=function(){return this.cartKit},e.prototype.tracker=function(){return this.trackerKit},e}();t.default=b},663:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=n(194);t.default=function(){var e=this;this.appName="",this.wrappedModule=null,this.getConfig=function(){return e.wrappedModule.invoke("getConfig")},this.wrappedModule=new r.ModuleWrapper("ApolloKitModule")}},314:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(194),u=n(852),a=function(){function e(){this.wrappedModule=null,this.accessToken=null,this.user=null,this.wrappedModule=new i.ModuleWrapper("AuthKitModule")}return e.prototype.isLoggedIn=function(){return null!=this.user},e.prototype.login=function(){return r(this,void 0,void 0,(function(){var e=this;return o(this,(function(t){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("login")}))]}))}))},e.prototype.logout=function(){throw Error("Should not call logout within a WebView scope")},e.prototype.getAccessToken=function(){return this.accessToken},e.prototype.getAccessTokenAsync=function(){return r(this,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return[4,this.wrappedModule.invoke("getAccessToken")];case 1:return e=t.sent().result,this.accessToken=null==e?void 0:e.accessToken,[2,this.accessToken]}}))}))},e.prototype.refreshAccessToken=function(){return r(this,void 0,void 0,(function(){var e,t,n=this;return o(this,(function(r){switch(r.label){case 0:return[4,(0,i.toResult)((function(){return n.wrappedModule.invoke("refreshAccessToken")}))];case 1:return(e=r.sent()).isSuccess()?(t=e.getValue().accessToken,this.accessToken=t,[2,(0,u.success)(t)]):[2,(0,u.failure)(e.getError())]}}))}))},e.prototype.getUserInfo=function(){return this.user},e.prototype.getFullUserInfo=function(){return r(this,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return[4,this.wrappedModule.invoke("getUserInfo")];case 1:return e=t.sent().result,this.user=e,[2,this.user]}}))}))},e}();t.default=a},646:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(194),u=function(){function e(){this.wrappedModule=new i.ModuleWrapper("CartKitModule")}return e.prototype.getCartToken=function(){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.wrappedModule.invoke("getCartToken")];case 1:return[2,e.sent().result]}}))}))},e.prototype.updateCartSuccess=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.wrappedModule.invoke("updateCartSuccess",{cart:e})];case 1:return[2,t.sent().result]}}))}))},e}();t.default=u},734:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScanResultAction=t.ScanResultCode=t.SourceGetPhotoType=t.ScanningType=void 0;var i,u,a,s=n(194),c=n(194);!function(e){e.PRODUCT_SERIAL="serial",e.PRODUCT_BARCODE="barcode",e.PRODUCT_QR="qr",e.PRODUCT_ALL_TYPE="allType"}(i=t.ScanningType||(t.ScanningType={})),(a=t.SourceGetPhotoType||(t.SourceGetPhotoType={})).CAMERA="camera",a.LIBRARY="library",a.BOTH="both",(u=t.ScanResultCode||(t.ScanResultCode={}))[u.ERROR=0]="ERROR",u[u.SUCCESS=1]="SUCCESS",(t.ScanResultAction||(t.ScanResultAction={})).FORCE_CLOSE_SCAN="forceCloseScan";var l=function(){function e(){var e=this;this.wrappedModule=null,this.deviceID="",this.accessToken=null,this.user=null,this.getPrintConfig=function(){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(t){return[2,(0,c.toResult)((function(){return e.wrappedModule.invoke("getPrintConfig")}))]}))}))},this.printImage=function(t){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(n){return[2,(0,c.toResult)((function(){return e.wrappedModule.invoke("printImage",t)}))]}))}))},this.getPhoto=function(t){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(n){return[2,(0,c.toResult)((function(){return e.wrappedModule.invoke("getPhoto",t)}))]}))}))},this.printDocument=function(t){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(n){return[2,(0,c.toResult)((function(){return e.wrappedModule.invoke("printDocument",{documentUrl:t})}))]}))}))},this.observeScanResult=function(t){var n;n=null==t.scanningTypes||1!=t.scanningTypes.length?i.PRODUCT_ALL_TYPE:t.scanningTypes[0];var r={continuous:t.continuous,scanningType:n,scanningTypes:t.scanningTypes};return e.wrappedModule.invoke("observeScanResult",r)},this.processScanResult=function(t){return r(e,void 0,void 0,(function(){return o(this,(function(e){return this.wrappedModule.invoke("processScanResult",t).then(),[2]}))}))},this.wrappedModule=new s.ModuleWrapper("CommonKitModule")}return e.prototype.scan=function(){return{observeScanResult:this.observeScanResult,processScanResult:this.processScanResult}},e}();t.default=l},157:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(194),u=function(){function e(){this.wrappedModule=new i.ModuleWrapper("DeviceKitModule")}return e.prototype.hasPermission=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,i.toResult)((function(){return t.wrappedModule.invoke("hasPermission",e)}))]}))}))},e.prototype.turnOnGps=function(){return r(this,void 0,void 0,(function(){var e=this;return o(this,(function(t){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("turnOnGps")}))]}))}))},e.prototype.getLocation=function(e){return void 0===e&&(e=null),r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,i.toResult)((function(){return t.wrappedModule.invoke("getLocation",e)}))]}))}))},e}();t.default=u},783:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(194),u=function(){function e(){this.wrappedModule=null,this.wrappedModule=new i.ModuleWrapper("DiscoveryKitModule")}return e.prototype.onStockRequestFinish=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.wrappedModule.invoke("onStockRequestFinish",{isSuccess:e})];case 1:return[2,t.sent().result]}}))}))},e.prototype.getProduct=function(){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.wrappedModule.invoke("getProduct")];case 1:return[2,e.sent().result]}}))}))},e}();t.default=u},397:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(194),u=function(){function e(){this.terminal=null,this.terraConfig=null,this.wrappedModule=null,this.wrappedModule=new i.ModuleWrapper("ErpKitModule")}return e.prototype.getSellerId=function(){var e;return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return null==this.terminal?[3,1]:[2,null===(e=this.terminal)||void 0===e?void 0:e.sellerID];case 1:return[4,this.getTerminal()];case 2:return[2,t.sent().sellerID]}}))}))},e.prototype.getPlatformId=function(){var e;return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return null==this.terminal?[3,1]:[2,null===(e=this.terminal)||void 0===e?void 0:e.platformId];case 1:return[4,this.getTerminal()];case 2:return[2,t.sent().platformId]}}))}))},e.prototype.getPlatformCode=function(){var e;return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return null==this.terminal?[3,1]:[2,null===(e=this.terminal)||void 0===e?void 0:e.platformCode];case 1:return[4,this.getTerminal()];case 2:return[2,t.sent().platformCode]}}))}))},e.prototype.getTerminal=function(){return r(this,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return[4,this.wrappedModule.invoke("getTerminal")];case 1:return e=t.sent().result,this.terminal=e,[2,e]}}))}))},e.prototype.getTerraConfig=function(){return r(this,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return[4,this.wrappedModule.invoke("getTerraConfig")];case 1:return e=t.sent().result,this.terraConfig=e,[2,e]}}))}))},e.prototype.getLanguage=function(){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.wrappedModule.invoke("getLanguage")];case 1:return[2,e.sent().result]}}))}))},e.prototype.getDetailPickingListId=function(){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.wrappedModule.invoke("getDetailPickingListId")];case 1:return[2,e.sent().result]}}))}))},e.prototype.isSupportOmniApp=function(){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.wrappedModule.invoke("isSupportOmniApp")];case 1:return[2,e.sent().result]}}))}))},e}();t.default=u},691:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(194),u=n(126),a=function(){function e(){this.wrappedModule=null,this.wrappedModule=new i.ModuleWrapper("LoyaltyKitModule")}return e.prototype.getMemberInfo=function(e){return void 0===e&&(e=u.GetMemberInfoRequestFactory.currentUser()),r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,this.mapResult((function(){return t.wrappedModule.invoke("getMemberInfo",e)}))]}))}))},e.prototype.openAssignMemberCard=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,this.mapResult((function(){return t.wrappedModule.invoke("openAssignMemberCard",{memberId:e})}))]}))}))},e.prototype.getNetworkConfig=function(){return r(this,void 0,void 0,(function(){var e=this;return o(this,(function(t){return[2,this.mapResult((function(){return e.wrappedModule.invoke("getNetworkConfig")}))]}))}))},e.prototype.getLoyaltyConfig=function(){return r(this,void 0,void 0,(function(){var e=this;return o(this,(function(t){return[2,this.mapResult((function(){return e.wrappedModule.invoke("getLoyaltyConfig")}))]}))}))},e.prototype.mapResult=function(e){return new Promise((function(t){(0,i.toResult)(e).then((function(e){e.isSuccess()?t(e.getValue()):t({resultCode:u.LoyaltyResultCode.Unexpected,message:e.getError().message})}))}))},e}();t.default=a},126:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.LoyaltyResultCode=t.GetMemberInfoRequestFactory=void 0,t.GetMemberInfoRequestFactory={currentUser:function(){return{type:"currentUser"}},phone:function(e){return{type:"phone",phone:e}},memberQrCode:function(e){return{type:"memberQrCode",memberQrCode:e}}},(n=t.LoyaltyResultCode||(t.LoyaltyResultCode={})).Success="Success",n.Cancelled="Cancelled",n.CannotCallLoyaltyService="CannotCallLoyaltyService",n.DataInactive="DataInactive",n.DuplicateMemberCardId="DuplicateMemberCardId",n.DuplicatePhone="DuplicatePhone",n.InvalidParam="InvalidParam",n.InvalidParamFormat="InvalidParamFormat",n.MemberInactive="MemberInactive",n.MemberQrInactive="MemberQrInactive",n.MissingParam="MissingParam",n.ParamOutOfRange="ParamOutOfRange",n.PermissionDenied="PermissionDenied",n.RedemptionCodeExpired="RedemptionCodeExpired",n.SubjectNotFound="SubjectNotFound",n.SystemError="SystemError",n.Unauthorized="Unauthorized",n.Unexpected="Unexpected",n.MemberNotMatchMerchant="MemberNotMatchMerchant"},839:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(194),u=n(194),a=function(){function e(){this.wrappedModule=null,this.wrappedModule=new i.ModuleWrapper("OrderKitModule")}return e.prototype.requestReturn=function(){return r(this,void 0,void 0,(function(){var e=this;return o(this,(function(t){return[2,(0,u.toResult)((function(){return e.wrappedModule.invoke("requestReturn")}))]}))}))},e.prototype.navigateToCart=function(e,t){return void 0===t&&(t=null),r(this,void 0,void 0,(function(){var n=this;return o(this,(function(r){return[2,(0,u.toResult)((function(){return n.wrappedModule.invoke("navigateToCart",{cartToken:e,detailPickingListId:t})}))]}))}))},e.prototype.repaymentOrder=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,u.toResult)((function(){return t.wrappedModule.invoke("repaymentOrder",{orderId:e})}))]}))}))},e.prototype.navigateToProductDetail=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,u.toResult)((function(){return t.wrappedModule.invoke("navigateToProductDetail",{sku:e})}))]}))}))},e.prototype.onReturnFinish=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,u.toResult)((function(){return t.wrappedModule.invoke("onReturnFinish",{reload:e})}))]}))}))},e.prototype.printReceipt=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,u.toResult)((function(){return t.wrappedModule.invoke("printReceipt",{orderId:e})}))]}))}))},e.prototype.payForOrder=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,u.toResult)((function(){return t.wrappedModule.invoke("payForOrder",{orderId:e})}))]}))}))},e.prototype.openOrderManagement=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,u.toResult)((function(){return t.wrappedModule.invoke("openOrderManagement",e)}))]}))}))},e.prototype.reloadOrders=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,u.toResult)((function(){return t.wrappedModule.invoke("reloadOrders",e)}))]}))}))},e.prototype.requestCancel=function(){return r(this,void 0,void 0,(function(){var e=this;return o(this,(function(t){return[2,(0,u.toResult)((function(){return e.wrappedModule.invoke("requestCancel")}))]}))}))},e.prototype.onCancelFinish=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,u.toResult)((function(){return t.wrappedModule.invoke("onCancelFinish",{reload:e})}))]}))}))},e.prototype.navigateToWmsProcessOrder=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,u.toResult)((function(){return t.wrappedModule.invoke("navigateToWmsProcessOrder",{documentId:e})}))]}))}))},e.prototype.onWmsProcessOrderFinish=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,u.toResult)((function(){return t.wrappedModule.invoke("onWmsProcessOrderFinish",{reload:e})}))]}))}))},e.prototype.openOrderDetail=function(e){return r(this,void 0,void 0,(function(){var t=this;return o(this,(function(n){return[2,(0,u.toResult)((function(){return t.wrappedModule.invoke("openOrderDetail",{orderId:e})}))]}))}))},e}();t.default=a},431:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(194),u=function(){function e(){this.wrappedModule=new i.ModuleWrapper("TrackerKitModule")}return e.prototype.getTrackingAppId=function(){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this.wrappedModule.invoke("getTrackingAppId")];case 1:return[2,e.sent().result]}}))}))},e}();t.default=u},99:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(194);t.default=function(){var e=this;this.wrappedModule=null,this.getUserProfile=function(){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(t){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("getUserProfile")}))]}))}))},this.updateUserProfile=function(t){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(n){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("updateUserProfile",t)}))]}))}))},this.searchProfile=function(t){return(0,i.toResult)((function(){return e.wrappedModule.invoke("searchProfile",t)}))},this.upsertProfile=function(t){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(n){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("upsertProfile",t)}))]}))}))},this.registerProfile=function(t){return(0,i.toResult)((function(){return e.wrappedModule.invoke("registerProfile",t)}))},this.createNewAddress=function(t){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(n){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("createNewAddress",t)}))]}))}))},this.updateAddress=function(t){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(n){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("updateAddress",t)}))]}))}))},this.deleteAddress=function(t){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(n){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("deleteAddress",t)}))]}))}))},this.getOperationFlowConfig=function(){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(t){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("getOperationFlowConfig")}))]}))}))},this.changeDealer=function(t){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(n){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("changeDealer",t)}))]}))}))},this.fetchUserAddressList=function(){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(t){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("fetchUserAddress")}))]}))}))},this.getDetailProfile=function(t){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(n){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("getDetailProfile",t)}))]}))}))},this.publishCustomer=function(t){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(n){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("publishCustomer",t)}))]}))}))},this.fetchCustomerTypes=function(){return r(e,void 0,void 0,(function(){var e=this;return o(this,(function(t){return[2,(0,i.toResult)((function(){return e.wrappedModule.invoke("fetchCustomerTypes")}))]}))}))},this.wrappedModule=new i.ModuleWrapper("UserKitModule")}},206:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ModuleWrapper=void 0;var r=n(39),o=function(){function e(e){this.moduleName="",this.wrappedModuleName="",this.moduleName=e,this.wrappedModuleName=(0,r.wrapModuleName)(e)}return e.prototype.getWrappedModule=function(){return window[this.wrappedModuleName]||(0,r.wrapModule)(window,this.moduleName),window[this.wrappedModuleName]},e.prototype.invoke=function(e,t){var n=this;return void 0===t&&(t={}),{subscribe:function(r){var o=r.next,i=r.complete,u=n.getWrappedModule().invoke(e,t).subscribe({next:o,complete:i});return{unsubscribe:function(){null==u||u.unsubscribe()}}},then:function(r){n.getWrappedModule().invoke(e,t).then(r)}}},e}();t.ModuleWrapper=o},951:function(e,t,n){var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TerraAppBasedModuleWrapper=void 0;var i=function(e){function t(t,n){var r=e.call(this,n)||this;return r.appName="",r.appName=t,r}return o(t,e),t.prototype.invoke=function(t,n){return void 0===n&&(n={}),e.prototype.invoke.call(this,t,{params:n,appName:this.appName})},t}(n(206).ModuleWrapper);t.TerraAppBasedModuleWrapper=i},194:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TerraAppBasedModuleWrapper=t.Result=t.toResult=t.ModuleWrapper=void 0;var r=n(206);Object.defineProperty(t,"ModuleWrapper",{enumerable:!0,get:function(){return r.ModuleWrapper}});var o=n(852);Object.defineProperty(t,"toResult",{enumerable:!0,get:function(){return o.toResult}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return o.Result}});var i=n(951);Object.defineProperty(t,"TerraAppBasedModuleWrapper",{enumerable:!0,get:function(){return i.TerraAppBasedModuleWrapper}})},852:function(e,t){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.toResult=t.mapResponseToResult=t.failure=t.success=t.Failure=t.Success=t.Result=void 0;var o=function(){function e(e,t,n){this.success=e,this.value=n,this.error=t}return e.prototype.isSuccess=function(){return this.success},e.prototype.isFailure=function(){return!this.success},e.prototype.getValue=function(){return this.value},e.prototype.getError=function(){return this.error},e}();t.Result=o;var i=function(e){function t(t){return e.call(this,!0,null,t)||this}return r(t,e),t}(o);t.Success=i;var u=function(e){function t(t){return e.call(this,!1,t)||this}return r(t,e),t}(o);t.Failure=u,t.success=function(e){return new i(e)},t.failure=function(e){return new u(e)},t.mapResponseToResult=function(e){return 200===e.status_code?new i(e.result):new u(new Error(e.error))},t.toResult=function(e){return new Promise((function(t){e().then((function(e){200===e.status_code?t(new i(e.result)):t(new u(new Error(e.error)))}))}))}},39:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wrapModuleName=t.wrapModule=void 0,t.wrapModule=function(e,t){var n=e.wrapModule;if(null!=n)return n(e,t);throw"undefined"!=typeof document?Error("Please install @terra-js/web-bridge before using any feature of terra-js"):navigator&&"ReactNative"===navigator.product?Error("Please install @terra-js/react-native-bridge before using any feature of terra-js"):new Error("Unsupported environment")},t.wrapModuleName=function(e){return"Wrapped".concat(e)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var r={};return(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0});var t=new(n(106).default);n.g.terraKit=t,e.default=t})(),r})()));
@@ -13,4 +13,5 @@ export default class ErpModule implements BaseModule {
13
13
  getTerraConfig(): Promise<TerraExtraConfig>;
14
14
  getLanguage(): Promise<Language>;
15
15
  getDetailPickingListId(): Promise<string>;
16
+ isSupportOmniApp(): Promise<boolean>;
16
17
  }
@@ -149,6 +149,19 @@ var ErpModule = /** @class */ (function () {
149
149
  });
150
150
  });
151
151
  };
152
+ ErpModule.prototype.isSupportOmniApp = function () {
153
+ return __awaiter(this, void 0, void 0, function () {
154
+ var result;
155
+ return __generator(this, function (_a) {
156
+ switch (_a.label) {
157
+ case 0: return [4 /*yield*/, this.wrappedModule.invoke('isSupportOmniApp')];
158
+ case 1:
159
+ result = (_a.sent()).result;
160
+ return [2 /*return*/, result];
161
+ }
162
+ });
163
+ });
164
+ };
152
165
  return ErpModule;
153
166
  }());
154
167
  exports.default = ErpModule;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@terra-js/terra-kit",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "SDK for mobile bridge to offer unified method signatures for Android/iOS.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.js",