promogame-player 0.0.16 → 0.0.17

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.
@@ -3415,12 +3415,12 @@ var ks = Be(function() {
3415
3415
  B.variables && !l && (B.variables = Hp(B.variables, p.query));
3416
3416
  var z;
3417
3417
  !M.signal && typeof AbortController < "u" && (z = new AbortController(), M.signal = z.signal);
3418
- var Q = function(Ee) {
3418
+ var G = function(Ee) {
3419
3419
  return Ee.kind === "OperationDefinition" && Ee.operation === "mutation";
3420
3420
  }, ee = function(Ee) {
3421
3421
  return Ee.kind === "OperationDefinition" && Ee.operation === "subscription";
3422
3422
  }, K = ee(or(p.query)), X = Un(["defer"], p.query);
3423
- if (u && !p.query.definitions.some(Q) && (M.method = "GET"), X || K) {
3423
+ if (u && !p.query.definitions.some(G) && (M.method = "GET"), X || K) {
3424
3424
  M.headers = M.headers || {};
3425
3425
  var Pe = "multipart/mixed;";
3426
3426
  K && X && globalThis.__DEV__ !== !1 && L.warn(41), K ? Pe += "boundary=graphql;subscriptionSpec=1.0,application/json" : X && (Pe += "deferSpec=20220824,application/json"), M.headers.accept = Pe;
@@ -4943,9 +4943,9 @@ var Qh = (
4943
4943
  // values before processing nested selection sets.
4944
4944
  O.selectionSet ? vi(S, !1, !1) : S,
4945
4945
  B
4946
- ), Q = void 0;
4947
- O.selectionSet && (se(z) || tn(z)) && (Q = f("__typename", z));
4948
- var ee = u.getMergeFunction(l, O.name.value, Q);
4946
+ ), G = void 0;
4947
+ O.selectionSet && (se(z) || tn(z)) && (G = f("__typename", z));
4948
+ var ee = u.getMergeFunction(l, O.name.value, G);
4949
4949
  ee ? B.info = {
4950
4950
  // TODO Check compatibility against any existing childTree.field?
4951
4951
  field: O,
@@ -5865,7 +5865,7 @@ var Jh = Object.prototype.hasOwnProperty, Xs = /* @__PURE__ */ Object.create(nul
5865
5865
  updateQueries: p,
5866
5866
  update: E,
5867
5867
  keepRootFields: M
5868
- }), this.broadcastQueries(), s = this, [2, new Promise(function(Q, ee) {
5868
+ }), this.broadcastQueries(), s = this, [2, new Promise(function(G, ee) {
5869
5869
  return fi(s.getObservableFromLink(l, b(b({}, B), { optimisticResponse: o ? d : void 0 }), f, {}, !1), function(K) {
5870
5870
  if (br(K) && D === "none")
5871
5871
  throw new Ge({
@@ -5891,7 +5891,7 @@ var Jh = Object.prototype.hasOwnProperty, Xs = /* @__PURE__ */ Object.create(nul
5891
5891
  });
5892
5892
  }).subscribe({
5893
5893
  next: function(K) {
5894
- s.broadcastQueries(), (!("hasNext" in K) || K.hasNext === !1) && Q(b(b({}, K), { data: s.maskOperation({
5894
+ s.broadcastQueries(), (!("hasNext" in K) || K.hasNext === !1) && G(b(b({}, K), { data: s.maskOperation({
5895
5895
  document: l,
5896
5896
  data: K.data,
5897
5897
  fetchPolicy: I,
@@ -6669,8 +6669,8 @@ var Jh = Object.prototype.hasOwnProperty, Xs = /* @__PURE__ */ Object.create(nul
6669
6669
  var n = this, r;
6670
6670
  if (this.resetStoreCallbacks = [], this.clearStoreCallbacks = [], !e.cache)
6671
6671
  throw Ae(16);
6672
- var i = e.uri, a = e.credentials, o = e.headers, s = e.cache, u = e.documentTransform, c = e.ssrMode, l = c === void 0 ? !1 : c, f = e.ssrForceFetchDelay, d = f === void 0 ? 0 : f, p = e.connectToDevTools, y = e.queryDeduplication, g = y === void 0 ? !0 : y, _ = e.defaultOptions, m = e.defaultContext, E = e.assumeImmutableResults, S = E === void 0 ? s.assumeImmutableResults : E, O = e.resolvers, I = e.typeDefs, A = e.fragmentMatcher, D = e.name, M = e.version, B = e.devtools, z = e.dataMasking, Q = e.link;
6673
- Q || (Q = i ? new wh({ uri: i, credentials: a, headers: o }) : En.empty()), this.link = Q, this.cache = s, this.disableNetworkFetches = l || d > 0, this.queryDeduplication = g, this.defaultOptions = _ || /* @__PURE__ */ Object.create(null), this.typeDefs = I, this.devtoolsConfig = b(b({}, B), { enabled: (r = B == null ? void 0 : B.enabled) !== null && r !== void 0 ? r : p }), this.devtoolsConfig.enabled === void 0 && (this.devtoolsConfig.enabled = globalThis.__DEV__ !== !1), d && setTimeout(function() {
6672
+ var i = e.uri, a = e.credentials, o = e.headers, s = e.cache, u = e.documentTransform, c = e.ssrMode, l = c === void 0 ? !1 : c, f = e.ssrForceFetchDelay, d = f === void 0 ? 0 : f, p = e.connectToDevTools, y = e.queryDeduplication, g = y === void 0 ? !0 : y, _ = e.defaultOptions, m = e.defaultContext, E = e.assumeImmutableResults, S = E === void 0 ? s.assumeImmutableResults : E, O = e.resolvers, I = e.typeDefs, A = e.fragmentMatcher, D = e.name, M = e.version, B = e.devtools, z = e.dataMasking, G = e.link;
6673
+ G || (G = i ? new wh({ uri: i, credentials: a, headers: o }) : En.empty()), this.link = G, this.cache = s, this.disableNetworkFetches = l || d > 0, this.queryDeduplication = g, this.defaultOptions = _ || /* @__PURE__ */ Object.create(null), this.typeDefs = I, this.devtoolsConfig = b(b({}, B), { enabled: (r = B == null ? void 0 : B.enabled) !== null && r !== void 0 ? r : p }), this.devtoolsConfig.enabled === void 0 && (this.devtoolsConfig.enabled = globalThis.__DEV__ !== !1), d && setTimeout(function() {
6674
6674
  return n.disableNetworkFetches = !1;
6675
6675
  }, d), this.watchQuery = this.watchQuery.bind(this), this.query = this.query.bind(this), this.mutate = this.mutate.bind(this), this.watchFragment = this.watchFragment.bind(this), this.resetStore = this.resetStore.bind(this), this.reFetchObservableQueries = this.reFetchObservableQueries.bind(this), this.version = wo, this.localState = new Yh({
6676
6676
  cache: s,
@@ -7368,7 +7368,7 @@ var V = { isEmpty: function(t) {
7368
7368
  (function(t) {
7369
7369
  t.REQUEST = "REQUEST", t.MODIFIED_REQUEST = "MODIFIED_REQUEST", t.RESPONSE = "RESPONSE", t.MODIFIED_RESPONSE = "MODIFIED_RESPONSE", t.NOT_FOUND = "NOT_FOUND";
7370
7370
  })(qn || (qn = {}));
7371
- var Xi, Cr, Z = { SUCCESS: 0, UNKNOWN_ERROR: -2e3, BAD_REQUEST: -1400, INTERNAL_SERVER_ERROR: -1500, UNAUTHORIZED: -1401, FORBIDDEN: -1403, CLIENT_NOT_SUPPORT: -1404, TIME_OUT: -1408, FAIL_LIMIT: -1409, DUPLICATE_REQUEST: -1410, DECODE_FAILED: -2001, USER_DENIED: -2002, USER_CANCEL: -2003, MEDIA_PICKER_FAIL: -2004, SAVE_IMAGE_FAIL: -2005, SAVE_VIDEO_FAIL: -2006, SAVE_FILE_FAIL: -2007, DEVICE_NOT_SUPPORT: -600, SCAN_TIMEOUT: -601, SERVICE_NOT_READY: -602, UNREADABLE: -603, INVALID_MRZ: -604, PROCESSING: -605, CANCEL: -606, MPDS_ACTION_INVALID: -3e3, MPDS_SOURCE_INVALID: -3005, MPDS_APPID_INVALID: -3006 }, H = { SUCCESS: "Success", UNKNOWN_ERROR: "Unknown error. Please try again later.", FAIL_LIMIT: "Request limit exceeded. Please try again later.", DUPLICATE_REQUEST: "Duplicate request. Please try again later.", TIME_OUT: "Request timeout. Please try again later.", LOGIN_REQUIRED: "Please login (https://miniapp.zalo.me/docs/api/login) before to call this api", LOGIN_FAILED: "Login failed", NOT_PERMISSION: "You don't have permission to call this api", CLIENT_NOT_SUPPORT: "This API is not supported in this version of Zalo", DECODE_FAILED: "Can not decode id. Please check your params again.", USER_DENIED: "User denied", USER_CANCEL: "User cancel", NEED_USER_AUTH: "User Authentication Required. Please grant User Authentication permission before requesting User Permission", MEDIA_PICKER_FAIL: "Unable to pick media", SAVE_IMAGE_FAIL: "Unable to save image", SAVE_VIDEO_FAIL: "Unable to save video", SAVE_FILE_FAIL: "Unable to save file", DEVICE_NOT_SUPPORT: "This device does not support NFC", SERVICE_NOT_READY: "NFC service is not ready. Please check in your setting", UNREADABLE: "NFC tag is unreadable", INVALID_MRZ: "Invalid MRZ data. Please try again later.", PROCESSING: "Processing NFC tag. Please wait a moment.", CANCEL: "User cancel", SCAN_TIMEOUT: "NFC scan timeout. Please try again later.", MPDS_ACTION_INVALID: "Action name from input data does not match declared API actions", MPDS_SOURCE_INVALID: "This API not called from Mini App", MPDS_APPID_INVALID: "AppId from input data does not match the currently opened AppId" }, $ = { UNKNOWN_ERROR: { code: Z.UNKNOWN_ERROR, message: H.UNKNOWN_ERROR }, UNAUTHORIZED: { code: Z.UNAUTHORIZED, message: H.LOGIN_REQUIRED }, FORBIDDEN: { code: Z.FORBIDDEN, message: H.NOT_PERMISSION }, CLIENT_NOT_SUPPORT: { code: Z.CLIENT_NOT_SUPPORT, message: H.CLIENT_NOT_SUPPORT }, DECODE_FAILED: { code: Z.DECODE_FAILED, message: H.DECODE_FAILED }, TIME_OUT: { code: Z.TIME_OUT, message: H.TIME_OUT }, USER_DENIED: { code: Z.USER_DENIED, message: H.USER_DENIED }, USER_CANCEL: { code: Z.USER_CANCEL, message: H.USER_CANCEL }, DUPLICATE_REQUEST: { code: Z.DUPLICATE_REQUEST, message: H.DUPLICATE_REQUEST }, DEVICE_NOT_SUPPORT: { code: Z.DEVICE_NOT_SUPPORT, message: H.DEVICE_NOT_SUPPORT }, SERVICE_NOT_READY: { code: Z.SERVICE_NOT_READY, message: H.SERVICE_NOT_READY }, UNREADABLE: { code: Z.UNREADABLE, message: H.UNREADABLE }, INVALID_MRZ: { code: Z.INVALID_MRZ, message: H.INVALID_MRZ }, PROCESSING: { code: Z.PROCESSING, message: H.PROCESSING }, CANCEL: { code: Z.CANCEL, message: H.CANCEL }, SCAN_TIMEOUT: { code: Z.SCAN_TIMEOUT, message: H.SCAN_TIMEOUT }, MPDS_ACTION_INVALID: { code: Z.MPDS_ACTION_INVALID, message: H.MPDS_ACTION_INVALID }, MPDS_SOURCE_INVALID: { code: Z.MPDS_SOURCE_INVALID, message: H.MPDS_SOURCE_INVALID }, MPDS_APPID_INVALID: { code: Z.MPDS_APPID_INVALID, message: H.MPDS_APPID_INVALID } }, kl = { addRating: { limit: 1 }, authorize: {}, isAllowedInteractWithOA: {}, favoriteApp: {}, followOA: {}, getLocation: {}, getPhoneNumber: {}, getShareableLink: {}, getSetting: {}, getAppInfo: {}, getUserInfo: {}, interactOA: {}, openProfilePicker: {}, openShareSheet: {}, unfollowOA: {}, checkTransaction: { limit: 5 }, createOrder: { limit: 5 }, createOrderIAP: { limit: 5 }, selectPaymentMethod: {}, requestSendNotification: {} }, Qo = { GET_DOWNLOADED_STICKER: { haveCallback: !0 }, OPEN_SHARE_STICKER: {}, OPEN_PROFILE: { requireAccessToken: !0 }, OPEN_FEED_DETAIL: {}, OPEN_FRIEND_RADA: {}, OPEN_INAPP: {}, OPEN_OUTAPP: { requireAccessToken: !0 }, OPEN_PAGE: {}, OPEN_PHOTODETAIL: {}, OPEN_GALARY: {}, OPEN_GAMECENTER: {}, OPEN_GAMENEWS: {}, OPEN_TAB_CONTACT: {}, OPEN_TAB_SOCIAL: {}, OPEN_FRIENDSUGGEST: {}, OPEN_GROUPLIST: {}, OPEN_NEARBY: {}, OPEN_ROOM: {}, OPEN_STICKERSTORE: {}, OPEN_CREATECHAT: {}, COPY_LINK_CATESTICKER: {}, REQUEST_BUY_STICKER: {}, OPEN_CHAT: { requireAccessToken: !0 }, OPEN_TAB_CHAT: {}, OPEN_CHATGROUP: {}, OPEN_ADDFRIEND: {}, OPEN_TAB_MORE: {}, OPEN_POSTFEED: { requireAccessToken: !0 }, OPEN_LOGINDEVICES: {}, OPEN_SENDSTICKER: {}, REPORT_ABUSE: { haveCallback: !0 }, FOLLOW_OA: { haveCallback: !0, requireAccessToken: !0, errorList: { android: { "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, UNFOLLOW_OA: { haveCallback: !0, requireAccessToken: !0, errorList: { android: { "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, OPEN_GAMEDETAIL: {}, OPEN_SHARESHEET: { haveCallback: !0, requireAccessToken: !0, errorList: { android: { "-101": { mapTo: $.CLIENT_NOT_SUPPORT } }, iOS: { "-101": { mapTo: $.CLIENT_NOT_SUPPORT } } } }, REQUEST_PERMISSION_CAMERA: { errorList: { android: { "-2": { mapTo: $.USER_DENIED } }, iOS: { "-2": { mapTo: $.USER_DENIED } } } }, CHANGE_TITLE_HEADER: { skipJump: !0 }, WEBVIEW_CLEARCACHE: {}, WEBVIEW_CONFIRMCACHE: {}, WEBVIEW_ISVISIBLE: {}, WEBVIEW_NETWORKTYPE: { skipJump: !0 }, CHANGE_BUTTON_HEADER: {}, CREATE_OPTIONS_MENU: { skipJump: !0, haveCallback: !0 }, CREATE_SHORTCUT: { requireAccessToken: !0 }, CHANGE_ACTIONBAR_LEFTBUTTON_TYPE: { skipJump: !0, haveCallback: !0 }, WINDOW_CLOSE: { skipJump: !0, haveCallback: !0 }, WEBVIEW_CHECKRESERROR: {}, IAP_REQUESTPAYMENT: { haveCallback: !0 }, ZBROWSER_GETSTATS: {}, ZBROWSER_JSBRIDGE: { skipJump: !0, haveCallback: !0 }, PROMPT_AUTHENTICATION: {}, CHANGE_ACTIONBAR_COLOR: { skipJump: !0 }, PROMPT_AUTHENTICATION_CHECK_STATE: {}, OPEN_APPSTORE: {}, GET_LOCATION: { haveCallback: !0, errorList: { android: { "-1": { mapTo: $.USER_DENIED }, "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-1": { mapTo: $.USER_DENIED }, "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, QUERY_LOCATION_HIDE: { haveCallback: !0 }, SHOW_TOAST: { haveCallback: !0, timeout: 2 }, OPEN_APP: {}, HIDE_KEYBOARD: {}, OPEN_PHONE: {}, OPEN_QR: {}, OPEN_SMS: { errorList: { iOS: { "-9": { mapTo: $.UNKNOWN_ERROR }, "-10": { mapTo: $.USER_CANCEL } } } }, VIEW_MYQR: { haveCallback: !0, timeout: !0, requireAccessToken: !0 }, KEEP_SCREEN: { haveCallback: !0, timeout: 2 }, CHANGE_AUTOROTATE: { skipJump: !0 }, CHECK_APP_INSTALLED: {}, QUERY_SHOW: {}, QUERY_HIDE: {}, OPEN_INAPPRW: {}, ZALORUN_GETTRACKINGSTATUS: { haveCallback: !0 }, ZALORUN_SETTRACKINGSTATUS: { haveCallback: !0 }, ZALORUN_GETDAYSTEP: { haveCallback: !0 }, ZALORUN_FORCESUBMITDATA: { haveCallback: !0 }, ZALORUN_SETWEIGHT: { haveCallback: !0 }, OPEN_PROFILE_EXT: {}, DOWNLOAD_CATE: { haveCallback: !0 }, JUMP_LOGIN: { skipJump: !0, whiteList: !0 }, OPEN_ADTIMA_ADS_INTERSTITIAL: {}, OPEN_ADTIMA_ADS: {}, GET_ADIDCLIENT: {}, SCAN_IBEACON: {}, SAVE_VIDEO_GALLERY: { versionLive: { iOS: 628 }, errorList: { android: { "-101": { mapTo: { code: Z.SAVE_VIDEO_FAIL, message: H.SAVE_VIDEO_FAIL }, needMoreDetail: !0 }, "-102": { mapTo: { code: Z.SAVE_VIDEO_FAIL, message: H.SAVE_VIDEO_FAIL }, needMoreDetail: !0 } }, iOS: { "-10": { mapTo: { code: Z.SAVE_VIDEO_FAIL, message: H.SAVE_VIDEO_FAIL }, needMoreDetail: !0 } } } }, INTERACTIVE_VIBRATION: {}, SAVE_IMAGE_GALLERY: { versionLive: { iOS: 408 }, errorList: { android: { "-101": { mapTo: { code: Z.SAVE_IMAGE_FAIL, message: H.SAVE_IMAGE_FAIL }, needMoreDetail: !0 }, "-102": { mapTo: { code: Z.SAVE_IMAGE_FAIL, message: H.SAVE_IMAGE_FAIL }, needMoreDetail: !0 } }, iOS: { "-10": { mapTo: { code: Z.SAVE_IMAGE_FAIL, message: H.SAVE_IMAGE_FAIL }, needMoreDetail: !0 } } } }, OPEN_MP: { versionLive: { iOS: 402 } }, CHANGE_ACTIONBAR: { haveCallback: !0, timeout: 2, versionLive: { iOS: 402 }, skipJump: !0 }, ZBROWSER_MPDS: { haveCallback: !0, timeout: 2, versionLive: { iOS: 402 }, errorList: { android: { "-100": { mapTo: $.MPDS_ACTION_INVALID }, "-101": { mapTo: $.UNKNOWN_ERROR }, "-105": { mapTo: $.MPDS_SOURCE_INVALID }, "-106": { mapTo: $.MPDS_APPID_INVALID } }, iOS: { "-10": { mapTo: $.MPDS_ACTION_INVALID }, "-101": { mapTo: $.MPDS_APPID_INVALID }, "-102": { mapTo: $.UNKNOWN_ERROR } } } }, ZBROWSER_MPDS_SYNC: { versionLive: { iOS: 402 }, errorList: { android: { "-100": { mapTo: $.MPDS_ACTION_INVALID }, "-101": { mapTo: $.UNKNOWN_ERROR }, "-105": { mapTo: $.MPDS_SOURCE_INVALID }, "-106": { mapTo: $.MPDS_APPID_INVALID } }, iOS: { "-10": { mapTo: $.MPDS_ACTION_INVALID }, "-101": { mapTo: $.MPDS_APPID_INVALID }, "-102": { mapTo: $.UNKNOWN_ERROR } } } }, WEBVIEW_SET_RESULT: { versionLive: { iOS: 416 } }, MP_GET_NUMBER: { versionLive: { iOS: 416 }, errorList: { android: { "-1": { mapTo: $.USER_DENIED }, "-101": { mapTo: $.USER_DENIED }, "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-1": { mapTo: $.USER_DENIED }, "-10": { mapTo: $.USER_DENIED }, "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, MP_OPEN_PROFILE_PICKER: { requireAccessToken: !0, versionLive: { iOS: 432 }, errorList: { android: { "-101": { mapTo: $.USER_CANCEL } }, iOS: { "-101": { mapTo: $.USER_CANCEL } } } }, GET_SUPPORTED_ACTIONS: { whiteList: !0 }, MP_JOIN_WIFI: { haveCallback: !0, timeout: !0, versionLive: { android: 0, iOS: 0 }, havePermission: !1, whiteList: !1 }, PICK_MEDIA: { requireAccessToken: !0, versionLive: { iOS: 440 }, errorList: { android: { "-101": { mapTo: $.USER_CANCEL }, 999: { mapTo: { code: Z.MEDIA_PICKER_FAIL, message: H.MEDIA_PICKER_FAIL }, needMoreDetail: !0 } }, iOS: { "-10": { mapTo: { code: Z.MEDIA_PICKER_FAIL, message: H.MEDIA_PICKER_FAIL } } } } }, MP_CLOSE_LOADINGVIEW: { skipJump: !0 }, CHANGE_BOTTOMBAR: { haveCallback: !0, timeout: 2, skipJump: !0 }, MA_MENU_MINIMIZE: { skipJump: !1, versionLive: { iOS: 520 } }, MA_MENU_PERMISSION: { skipJump: !1, versionLive: { iOS: 520 } }, MA_MENU_FAVORITES: { skipJump: !1, versionLive: { iOS: 520 } }, MP_SEND_NOTIFICATION: { skipJump: !1, versionLive: { iOS: 530 }, errorList: { android: { "-1": { mapTo: $.USER_DENIED }, "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-1": { mapTo: $.USER_DENIED }, "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, MP_ADD_RATING: { skipJump: !1 }, MP_ADD_MYFAVORITES: { skipJump: !1 }, MP_INTERACT_OA: { skipJump: !1, errorList: { android: { "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, MP_USER_AUTHORIZE: { skipJump: !1, errorList: { android: { "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, MP_SELECT_PAYMENT_METHOD: { skipJump: !1 }, CHECK_NFC: { skipJump: !1, versionLive: { iOS: 626 }, errorList: { all: { "-1": { mapTo: $.UNKNOWN_ERROR }, "-600": { mapTo: $.DEVICE_NOT_SUPPORT }, "-602": { mapTo: $.SERVICE_NOT_READY } } } }, SCAN_NFC: { skipJump: !1, haveCallback: !0, timeout: 65, errorList: { all: { "-1": { mapTo: $.UNKNOWN_ERROR }, "-600": { mapTo: $.DEVICE_NOT_SUPPORT }, "-601": { mapTo: $.SCAN_TIMEOUT }, "-602": { mapTo: $.SERVICE_NOT_READY }, "-603": { mapTo: $.UNREADABLE }, "-604": { mapTo: $.INVALID_MRZ }, "-605": { mapTo: $.PROCESSING }, "-606": { mapTo: $.CANCEL } } } }, MP_CONFIRM_REQUEST_PAYMENT: { skipJump: !1 }, SAVE_FILE: { versionLive: { iOS: 628 }, skipJump: !1, errorList: { android: { "-101": { mapTo: { code: Z.SAVE_FILE_FAIL, message: H.SAVE_FILE_FAIL }, needMoreDetail: !0 }, "-102": { mapTo: { code: Z.SAVE_FILE_FAIL, message: H.SAVE_FILE_FAIL }, needMoreDetail: !0 } }, iOS: { "-10": { mapTo: { code: Z.SAVE_FILE_FAIL, message: H.SAVE_FILE_FAIL }, needMoreDetail: !0 } } } }, MP_APP_LIFECYCLE_TRACKING: { skipJump: !1 } }, Ei = { android: { "-4": $.DECODE_FAILED, "-5": $.CLIENT_NOT_SUPPORT, "-14": $.TIME_OUT }, iOS: { "-9": $.DECODE_FAILED, "-5": $.CLIENT_NOT_SUPPORT, "-14": $.TIME_OUT } }, Pv = { android: 12100615, iOS: 460, wp: 0, unknown: 0 }, Av = { android: 12100571, iOS: 400, wp: 0, unknown: 0 }, $n = 5 * Il, ei = { CREATE_ORDER: "https://payment-mini.zalo.me/api/order/create-v2", CREATE_IAP_ORDER: "https://payment-mini.zalo.me/api/order/iap-create", GET_TRANSACTION: "https://payment-mini.zalo.me/api/transaction", PURCHASE: "https://payment-mini.zalo.me/api/order/purchase" }, kv = "https://payment-mini.zalo.me", du = { DEFERRED: "DEFERRED", IMMEDIATE_AND_CHARGE_FULL_PRICE: "IMMEDIATE_AND_CHARGE_FULL_PRICE" }, mt = { SHOW_BACK: 0, HIDE_BACK: 3, SHOW_HOME: 1, HIDE_HOME: 0 }, wi = 5, hr = 6, Cv = { LEFT: 0 }, Nv = "#1843EF", Dv = Cv.LEFT, Rv = { "-12101": "Invalid params", "-12102": "Session expire", "-12103": "Not permission", "-12104": "Not Authorize", "-12105": "Unknown exception", "-12106": "Cannot create order", "-12107": "Transaction not found", "-12108": "Cannot update order", "-12109": "Cannot decode param", "-12110": "Version not support", "-12111": "Receipt expire", "-12112": "Product not found", "-12113": "Subscription other GW", "-12114": "Product already subcription", "-12115": "Not exist", "-12116": "Already exist", "-12117": "Not allow", "-12118": "Not permit", "-12119": "Internal error", "-2": "Unable to pay", "-6": "Unable to register", "-7": "Registered account", "-832": "Purchased by another account", "-833": "Register for another account", "-834": "Unable to register", "-2010": "System is maintaining", "-3999": "Not in Vietnam", "-12129": "Purchased by another account", 123: "An error has occurred" }, Mv = ["scope.userInfo", "scope.userLocation", "scope.userPhonenumber"];
7371
+ var Xi, Cr, Q = { SUCCESS: 0, UNKNOWN_ERROR: -2e3, BAD_REQUEST: -1400, INTERNAL_SERVER_ERROR: -1500, UNAUTHORIZED: -1401, FORBIDDEN: -1403, CLIENT_NOT_SUPPORT: -1404, TIME_OUT: -1408, FAIL_LIMIT: -1409, DUPLICATE_REQUEST: -1410, DECODE_FAILED: -2001, USER_DENIED: -2002, USER_CANCEL: -2003, MEDIA_PICKER_FAIL: -2004, SAVE_IMAGE_FAIL: -2005, SAVE_VIDEO_FAIL: -2006, SAVE_FILE_FAIL: -2007, DEVICE_NOT_SUPPORT: -600, SCAN_TIMEOUT: -601, SERVICE_NOT_READY: -602, UNREADABLE: -603, INVALID_MRZ: -604, PROCESSING: -605, CANCEL: -606, MPDS_ACTION_INVALID: -3e3, MPDS_SOURCE_INVALID: -3005, MPDS_APPID_INVALID: -3006 }, H = { SUCCESS: "Success", UNKNOWN_ERROR: "Unknown error. Please try again later.", FAIL_LIMIT: "Request limit exceeded. Please try again later.", DUPLICATE_REQUEST: "Duplicate request. Please try again later.", TIME_OUT: "Request timeout. Please try again later.", LOGIN_REQUIRED: "Please login (https://miniapp.zalo.me/docs/api/login) before to call this api", LOGIN_FAILED: "Login failed", NOT_PERMISSION: "You don't have permission to call this api", CLIENT_NOT_SUPPORT: "This API is not supported in this version of Zalo", DECODE_FAILED: "Can not decode id. Please check your params again.", USER_DENIED: "User denied", USER_CANCEL: "User cancel", NEED_USER_AUTH: "User Authentication Required. Please grant User Authentication permission before requesting User Permission", MEDIA_PICKER_FAIL: "Unable to pick media", SAVE_IMAGE_FAIL: "Unable to save image", SAVE_VIDEO_FAIL: "Unable to save video", SAVE_FILE_FAIL: "Unable to save file", DEVICE_NOT_SUPPORT: "This device does not support NFC", SERVICE_NOT_READY: "NFC service is not ready. Please check in your setting", UNREADABLE: "NFC tag is unreadable", INVALID_MRZ: "Invalid MRZ data. Please try again later.", PROCESSING: "Processing NFC tag. Please wait a moment.", CANCEL: "User cancel", SCAN_TIMEOUT: "NFC scan timeout. Please try again later.", MPDS_ACTION_INVALID: "Action name from input data does not match declared API actions", MPDS_SOURCE_INVALID: "This API not called from Mini App", MPDS_APPID_INVALID: "AppId from input data does not match the currently opened AppId" }, $ = { UNKNOWN_ERROR: { code: Q.UNKNOWN_ERROR, message: H.UNKNOWN_ERROR }, UNAUTHORIZED: { code: Q.UNAUTHORIZED, message: H.LOGIN_REQUIRED }, FORBIDDEN: { code: Q.FORBIDDEN, message: H.NOT_PERMISSION }, CLIENT_NOT_SUPPORT: { code: Q.CLIENT_NOT_SUPPORT, message: H.CLIENT_NOT_SUPPORT }, DECODE_FAILED: { code: Q.DECODE_FAILED, message: H.DECODE_FAILED }, TIME_OUT: { code: Q.TIME_OUT, message: H.TIME_OUT }, USER_DENIED: { code: Q.USER_DENIED, message: H.USER_DENIED }, USER_CANCEL: { code: Q.USER_CANCEL, message: H.USER_CANCEL }, DUPLICATE_REQUEST: { code: Q.DUPLICATE_REQUEST, message: H.DUPLICATE_REQUEST }, DEVICE_NOT_SUPPORT: { code: Q.DEVICE_NOT_SUPPORT, message: H.DEVICE_NOT_SUPPORT }, SERVICE_NOT_READY: { code: Q.SERVICE_NOT_READY, message: H.SERVICE_NOT_READY }, UNREADABLE: { code: Q.UNREADABLE, message: H.UNREADABLE }, INVALID_MRZ: { code: Q.INVALID_MRZ, message: H.INVALID_MRZ }, PROCESSING: { code: Q.PROCESSING, message: H.PROCESSING }, CANCEL: { code: Q.CANCEL, message: H.CANCEL }, SCAN_TIMEOUT: { code: Q.SCAN_TIMEOUT, message: H.SCAN_TIMEOUT }, MPDS_ACTION_INVALID: { code: Q.MPDS_ACTION_INVALID, message: H.MPDS_ACTION_INVALID }, MPDS_SOURCE_INVALID: { code: Q.MPDS_SOURCE_INVALID, message: H.MPDS_SOURCE_INVALID }, MPDS_APPID_INVALID: { code: Q.MPDS_APPID_INVALID, message: H.MPDS_APPID_INVALID } }, kl = { addRating: { limit: 1 }, authorize: {}, isAllowedInteractWithOA: {}, favoriteApp: {}, followOA: {}, getLocation: {}, getPhoneNumber: {}, getShareableLink: {}, getSetting: {}, getAppInfo: {}, getUserInfo: {}, interactOA: {}, openProfilePicker: {}, openShareSheet: {}, unfollowOA: {}, checkTransaction: { limit: 5 }, createOrder: { limit: 5 }, createOrderIAP: { limit: 5 }, selectPaymentMethod: {}, requestSendNotification: {} }, Qo = { GET_DOWNLOADED_STICKER: { haveCallback: !0 }, OPEN_SHARE_STICKER: {}, OPEN_PROFILE: { requireAccessToken: !0 }, OPEN_FEED_DETAIL: {}, OPEN_FRIEND_RADA: {}, OPEN_INAPP: {}, OPEN_OUTAPP: { requireAccessToken: !0 }, OPEN_PAGE: {}, OPEN_PHOTODETAIL: {}, OPEN_GALARY: {}, OPEN_GAMECENTER: {}, OPEN_GAMENEWS: {}, OPEN_TAB_CONTACT: {}, OPEN_TAB_SOCIAL: {}, OPEN_FRIENDSUGGEST: {}, OPEN_GROUPLIST: {}, OPEN_NEARBY: {}, OPEN_ROOM: {}, OPEN_STICKERSTORE: {}, OPEN_CREATECHAT: {}, COPY_LINK_CATESTICKER: {}, REQUEST_BUY_STICKER: {}, OPEN_CHAT: { requireAccessToken: !0 }, OPEN_TAB_CHAT: {}, OPEN_CHATGROUP: {}, OPEN_ADDFRIEND: {}, OPEN_TAB_MORE: {}, OPEN_POSTFEED: { requireAccessToken: !0 }, OPEN_LOGINDEVICES: {}, OPEN_SENDSTICKER: {}, REPORT_ABUSE: { haveCallback: !0 }, FOLLOW_OA: { haveCallback: !0, requireAccessToken: !0, errorList: { android: { "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, UNFOLLOW_OA: { haveCallback: !0, requireAccessToken: !0, errorList: { android: { "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, OPEN_GAMEDETAIL: {}, OPEN_SHARESHEET: { haveCallback: !0, requireAccessToken: !0, errorList: { android: { "-101": { mapTo: $.CLIENT_NOT_SUPPORT } }, iOS: { "-101": { mapTo: $.CLIENT_NOT_SUPPORT } } } }, REQUEST_PERMISSION_CAMERA: { errorList: { android: { "-2": { mapTo: $.USER_DENIED } }, iOS: { "-2": { mapTo: $.USER_DENIED } } } }, CHANGE_TITLE_HEADER: { skipJump: !0 }, WEBVIEW_CLEARCACHE: {}, WEBVIEW_CONFIRMCACHE: {}, WEBVIEW_ISVISIBLE: {}, WEBVIEW_NETWORKTYPE: { skipJump: !0 }, CHANGE_BUTTON_HEADER: {}, CREATE_OPTIONS_MENU: { skipJump: !0, haveCallback: !0 }, CREATE_SHORTCUT: { requireAccessToken: !0 }, CHANGE_ACTIONBAR_LEFTBUTTON_TYPE: { skipJump: !0, haveCallback: !0 }, WINDOW_CLOSE: { skipJump: !0, haveCallback: !0 }, WEBVIEW_CHECKRESERROR: {}, IAP_REQUESTPAYMENT: { haveCallback: !0 }, ZBROWSER_GETSTATS: {}, ZBROWSER_JSBRIDGE: { skipJump: !0, haveCallback: !0 }, PROMPT_AUTHENTICATION: {}, CHANGE_ACTIONBAR_COLOR: { skipJump: !0 }, PROMPT_AUTHENTICATION_CHECK_STATE: {}, OPEN_APPSTORE: {}, GET_LOCATION: { haveCallback: !0, errorList: { android: { "-1": { mapTo: $.USER_DENIED }, "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-1": { mapTo: $.USER_DENIED }, "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, QUERY_LOCATION_HIDE: { haveCallback: !0 }, SHOW_TOAST: { haveCallback: !0, timeout: 2 }, OPEN_APP: {}, HIDE_KEYBOARD: {}, OPEN_PHONE: {}, OPEN_QR: {}, OPEN_SMS: { errorList: { iOS: { "-9": { mapTo: $.UNKNOWN_ERROR }, "-10": { mapTo: $.USER_CANCEL } } } }, VIEW_MYQR: { haveCallback: !0, timeout: !0, requireAccessToken: !0 }, KEEP_SCREEN: { haveCallback: !0, timeout: 2 }, CHANGE_AUTOROTATE: { skipJump: !0 }, CHECK_APP_INSTALLED: {}, QUERY_SHOW: {}, QUERY_HIDE: {}, OPEN_INAPPRW: {}, ZALORUN_GETTRACKINGSTATUS: { haveCallback: !0 }, ZALORUN_SETTRACKINGSTATUS: { haveCallback: !0 }, ZALORUN_GETDAYSTEP: { haveCallback: !0 }, ZALORUN_FORCESUBMITDATA: { haveCallback: !0 }, ZALORUN_SETWEIGHT: { haveCallback: !0 }, OPEN_PROFILE_EXT: {}, DOWNLOAD_CATE: { haveCallback: !0 }, JUMP_LOGIN: { skipJump: !0, whiteList: !0 }, OPEN_ADTIMA_ADS_INTERSTITIAL: {}, OPEN_ADTIMA_ADS: {}, GET_ADIDCLIENT: {}, SCAN_IBEACON: {}, SAVE_VIDEO_GALLERY: { versionLive: { iOS: 628 }, errorList: { android: { "-101": { mapTo: { code: Q.SAVE_VIDEO_FAIL, message: H.SAVE_VIDEO_FAIL }, needMoreDetail: !0 }, "-102": { mapTo: { code: Q.SAVE_VIDEO_FAIL, message: H.SAVE_VIDEO_FAIL }, needMoreDetail: !0 } }, iOS: { "-10": { mapTo: { code: Q.SAVE_VIDEO_FAIL, message: H.SAVE_VIDEO_FAIL }, needMoreDetail: !0 } } } }, INTERACTIVE_VIBRATION: {}, SAVE_IMAGE_GALLERY: { versionLive: { iOS: 408 }, errorList: { android: { "-101": { mapTo: { code: Q.SAVE_IMAGE_FAIL, message: H.SAVE_IMAGE_FAIL }, needMoreDetail: !0 }, "-102": { mapTo: { code: Q.SAVE_IMAGE_FAIL, message: H.SAVE_IMAGE_FAIL }, needMoreDetail: !0 } }, iOS: { "-10": { mapTo: { code: Q.SAVE_IMAGE_FAIL, message: H.SAVE_IMAGE_FAIL }, needMoreDetail: !0 } } } }, OPEN_MP: { versionLive: { iOS: 402 } }, CHANGE_ACTIONBAR: { haveCallback: !0, timeout: 2, versionLive: { iOS: 402 }, skipJump: !0 }, ZBROWSER_MPDS: { haveCallback: !0, timeout: 2, versionLive: { iOS: 402 }, errorList: { android: { "-100": { mapTo: $.MPDS_ACTION_INVALID }, "-101": { mapTo: $.UNKNOWN_ERROR }, "-105": { mapTo: $.MPDS_SOURCE_INVALID }, "-106": { mapTo: $.MPDS_APPID_INVALID } }, iOS: { "-10": { mapTo: $.MPDS_ACTION_INVALID }, "-101": { mapTo: $.MPDS_APPID_INVALID }, "-102": { mapTo: $.UNKNOWN_ERROR } } } }, ZBROWSER_MPDS_SYNC: { versionLive: { iOS: 402 }, errorList: { android: { "-100": { mapTo: $.MPDS_ACTION_INVALID }, "-101": { mapTo: $.UNKNOWN_ERROR }, "-105": { mapTo: $.MPDS_SOURCE_INVALID }, "-106": { mapTo: $.MPDS_APPID_INVALID } }, iOS: { "-10": { mapTo: $.MPDS_ACTION_INVALID }, "-101": { mapTo: $.MPDS_APPID_INVALID }, "-102": { mapTo: $.UNKNOWN_ERROR } } } }, WEBVIEW_SET_RESULT: { versionLive: { iOS: 416 } }, MP_GET_NUMBER: { versionLive: { iOS: 416 }, errorList: { android: { "-1": { mapTo: $.USER_DENIED }, "-101": { mapTo: $.USER_DENIED }, "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-1": { mapTo: $.USER_DENIED }, "-10": { mapTo: $.USER_DENIED }, "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, MP_OPEN_PROFILE_PICKER: { requireAccessToken: !0, versionLive: { iOS: 432 }, errorList: { android: { "-101": { mapTo: $.USER_CANCEL } }, iOS: { "-101": { mapTo: $.USER_CANCEL } } } }, GET_SUPPORTED_ACTIONS: { whiteList: !0 }, MP_JOIN_WIFI: { haveCallback: !0, timeout: !0, versionLive: { android: 0, iOS: 0 }, havePermission: !1, whiteList: !1 }, PICK_MEDIA: { requireAccessToken: !0, versionLive: { iOS: 440 }, errorList: { android: { "-101": { mapTo: $.USER_CANCEL }, 999: { mapTo: { code: Q.MEDIA_PICKER_FAIL, message: H.MEDIA_PICKER_FAIL }, needMoreDetail: !0 } }, iOS: { "-10": { mapTo: { code: Q.MEDIA_PICKER_FAIL, message: H.MEDIA_PICKER_FAIL } } } } }, MP_CLOSE_LOADINGVIEW: { skipJump: !0 }, CHANGE_BOTTOMBAR: { haveCallback: !0, timeout: 2, skipJump: !0 }, MA_MENU_MINIMIZE: { skipJump: !1, versionLive: { iOS: 520 } }, MA_MENU_PERMISSION: { skipJump: !1, versionLive: { iOS: 520 } }, MA_MENU_FAVORITES: { skipJump: !1, versionLive: { iOS: 520 } }, MP_SEND_NOTIFICATION: { skipJump: !1, versionLive: { iOS: 530 }, errorList: { android: { "-1": { mapTo: $.USER_DENIED }, "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-1": { mapTo: $.USER_DENIED }, "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, MP_ADD_RATING: { skipJump: !1 }, MP_ADD_MYFAVORITES: { skipJump: !1 }, MP_INTERACT_OA: { skipJump: !1, errorList: { android: { "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, MP_USER_AUTHORIZE: { skipJump: !1, errorList: { android: { "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, MP_SELECT_PAYMENT_METHOD: { skipJump: !1 }, CHECK_NFC: { skipJump: !1, versionLive: { iOS: 626 }, errorList: { all: { "-1": { mapTo: $.UNKNOWN_ERROR }, "-600": { mapTo: $.DEVICE_NOT_SUPPORT }, "-602": { mapTo: $.SERVICE_NOT_READY } } } }, SCAN_NFC: { skipJump: !1, haveCallback: !0, timeout: 65, errorList: { all: { "-1": { mapTo: $.UNKNOWN_ERROR }, "-600": { mapTo: $.DEVICE_NOT_SUPPORT }, "-601": { mapTo: $.SCAN_TIMEOUT }, "-602": { mapTo: $.SERVICE_NOT_READY }, "-603": { mapTo: $.UNREADABLE }, "-604": { mapTo: $.INVALID_MRZ }, "-605": { mapTo: $.PROCESSING }, "-606": { mapTo: $.CANCEL } } } }, MP_CONFIRM_REQUEST_PAYMENT: { skipJump: !1 }, SAVE_FILE: { versionLive: { iOS: 628 }, skipJump: !1, errorList: { android: { "-101": { mapTo: { code: Q.SAVE_FILE_FAIL, message: H.SAVE_FILE_FAIL }, needMoreDetail: !0 }, "-102": { mapTo: { code: Q.SAVE_FILE_FAIL, message: H.SAVE_FILE_FAIL }, needMoreDetail: !0 } }, iOS: { "-10": { mapTo: { code: Q.SAVE_FILE_FAIL, message: H.SAVE_FILE_FAIL }, needMoreDetail: !0 } } } }, MP_APP_LIFECYCLE_TRACKING: { skipJump: !1 } }, Ei = { android: { "-4": $.DECODE_FAILED, "-5": $.CLIENT_NOT_SUPPORT, "-14": $.TIME_OUT }, iOS: { "-9": $.DECODE_FAILED, "-5": $.CLIENT_NOT_SUPPORT, "-14": $.TIME_OUT } }, Pv = { android: 12100615, iOS: 460, wp: 0, unknown: 0 }, Av = { android: 12100571, iOS: 400, wp: 0, unknown: 0 }, $n = 5 * Il, ei = { CREATE_ORDER: "https://payment-mini.zalo.me/api/order/create-v2", CREATE_IAP_ORDER: "https://payment-mini.zalo.me/api/order/iap-create", GET_TRANSACTION: "https://payment-mini.zalo.me/api/transaction", PURCHASE: "https://payment-mini.zalo.me/api/order/purchase" }, kv = "https://payment-mini.zalo.me", du = { DEFERRED: "DEFERRED", IMMEDIATE_AND_CHARGE_FULL_PRICE: "IMMEDIATE_AND_CHARGE_FULL_PRICE" }, mt = { SHOW_BACK: 0, HIDE_BACK: 3, SHOW_HOME: 1, HIDE_HOME: 0 }, wi = 5, hr = 6, Cv = { LEFT: 0 }, Nv = "#1843EF", Dv = Cv.LEFT, Rv = { "-12101": "Invalid params", "-12102": "Session expire", "-12103": "Not permission", "-12104": "Not Authorize", "-12105": "Unknown exception", "-12106": "Cannot create order", "-12107": "Transaction not found", "-12108": "Cannot update order", "-12109": "Cannot decode param", "-12110": "Version not support", "-12111": "Receipt expire", "-12112": "Product not found", "-12113": "Subscription other GW", "-12114": "Product already subcription", "-12115": "Not exist", "-12116": "Already exist", "-12117": "Not allow", "-12118": "Not permit", "-12119": "Internal error", "-2": "Unable to pay", "-6": "Unable to register", "-7": "Registered account", "-832": "Purchased by another account", "-833": "Register for another account", "-834": "Unable to register", "-2010": "System is maintaining", "-3999": "Not in Vietnam", "-12129": "Purchased by another account", 123: "An error has occurred" }, Mv = ["scope.userInfo", "scope.userLocation", "scope.userPhonenumber"];
7372
7372
  (function(t) {
7373
7373
  t.DEV_TRACKING = "devTracking";
7374
7374
  })(Xi || (Xi = {})), function(t) {
@@ -7388,7 +7388,7 @@ var ge = function() {
7388
7388
  return cu(t, ge) ? function(n, r) {
7389
7389
  return n.api = r, n.toJSON();
7390
7390
  }(t, e) : function(n, r) {
7391
- return cu(n, Error) ? new ge(Z.UNKNOWN_ERROR, n.message, r).toJSON() : V.isEmpty(n == null ? void 0 : n.message) || V.isEmpty(n == null ? void 0 : n.code) ? new ge(Z.UNKNOWN_ERROR, H.UNKNOWN_ERROR, r, n).toJSON() : new ge(n.code, n.message, r, n.detail).toJSON();
7391
+ return cu(n, Error) ? new ge(Q.UNKNOWN_ERROR, n.message, r).toJSON() : V.isEmpty(n == null ? void 0 : n.message) || V.isEmpty(n == null ? void 0 : n.code) ? new ge(Q.UNKNOWN_ERROR, H.UNKNOWN_ERROR, r, n).toJSON() : new ge(n.code, n.message, r, n.detail).toJSON();
7392
7392
  }(t, e);
7393
7393
  }, Cl = "2.46.2";
7394
7394
  function ea(t, e) {
@@ -8045,7 +8045,7 @@ var _u = function(t) {
8045
8045
  case 0:
8046
8046
  return u.trys.push([0, 3, , 4]), [4, W.jumpAndGetToken()];
8047
8047
  case 1:
8048
- return u.sent(), (a = (i = W.miniProgramConfig) === null || i === void 0 ? void 0 : i.jwt) || r(new ge(Z.UNAUTHORIZED, H.LOGIN_REQUIRED, "getSetting")), [4, nm(a)];
8048
+ return u.sent(), (a = (i = W.miniProgramConfig) === null || i === void 0 ? void 0 : i.jwt) || r(new ge(Q.UNAUTHORIZED, H.LOGIN_REQUIRED, "getSetting")), [4, nm(a)];
8049
8049
  case 2:
8050
8050
  return (o = u.sent()) && o.err === 0 ? n({ authSetting: o.data }) : r(new ge(o.err, o.msg, "getSetting")), [3, 4];
8051
8051
  case 3:
@@ -8102,19 +8102,19 @@ var _u = function(t) {
8102
8102
  yt = [], He(t);
8103
8103
  }
8104
8104
  }, 5e3), Eu = h(function(t, e, n, r) {
8105
- var i, a, o, s, u, c, l, f, d, p, y, g, _, m, E, S, O, I, A, D, M, B, z, Q, ee, K;
8105
+ var i, a, o, s, u, c, l, f, d, p, y, g, _, m, E, S, O, I, A, D, M, B, z, G, ee, K;
8106
8106
  return v(this, function(X) {
8107
8107
  switch (X.label) {
8108
8108
  case 0:
8109
8109
  return a = Math.floor(1e6 * Math.random()), o = "".concat(t, "_").concat(a), s = dm(t), r != null && r.actionName && r.actionName.length > 0 && (s = r == null ? void 0 : r.actionName), u = (r == null ? void 0 : r.isMultiCallback) || !1, c = (r == null ? void 0 : r.timeout) !== !1 && ((r == null ? void 0 : r.timeout) || !0), l = (r == null ? void 0 : r.haveCallback) || !1, f = (r == null ? void 0 : r.skipJump) || !1, d = (r == null ? void 0 : r.requireAccessToken) || !1, p = lm(s), e && n && (Nt[o] = { options: e, callback: n, isMultiCallback: u }, c && l && (Nt[o].timeout = setTimeout(function() {
8110
- var Pe = { serialId: o, result: { error_code: Z.TIME_OUT, error_message: H.TIME_OUT, data: { timeout: c }, action: t } };
8110
+ var Pe = { serialId: o, result: { error_code: Q.TIME_OUT, error_message: H.TIME_OUT, data: { timeout: c }, action: t } };
8111
8111
  return Cn(Pe), null;
8112
8112
  }, c === !0 ? 8e3 : 1e3 * c))), p ? [4, Go()] : [3, 2];
8113
8113
  case 1:
8114
- if (((g = X.sent()) == null || (y = g.authSetting) === null || y === void 0 ? void 0 : y["scope.userInfo"]) === !1) return m = { serialId: o, result: { error_code: Z.UNAUTHORIZED, error_message: H.NEED_USER_AUTH, data: { isMobile: it == null || (_ = it.platform) === null || _ === void 0 ? void 0 : _.isMobile }, action: t } }, Cn(m), [2];
8114
+ if (((g = X.sent()) == null || (y = g.authSetting) === null || y === void 0 ? void 0 : y["scope.userInfo"]) === !1) return m = { serialId: o, result: { error_code: Q.UNAUTHORIZED, error_message: H.NEED_USER_AUTH, data: { isMobile: it == null || (_ = it.platform) === null || _ === void 0 ? void 0 : _.isMobile }, action: t } }, Cn(m), [2];
8115
8115
  X.label = 2;
8116
8116
  case 2:
8117
- return E = ma(s), !(!(it == null || (i = it.platform) === null || i === void 0) && i.isMobile) || !t || V.isUndefined(ZaloJavaScriptInterface) || it.platform.isIOS && !im(t) || E && E.isSupported === !1 ? (O = { serialId: o, result: { error_code: Z.CLIENT_NOT_SUPPORT, error_message: H.CLIENT_NOT_SUPPORT, data: { isMobile: it == null || (S = it.platform) === null || S === void 0 ? void 0 : S.isMobile }, action: t } }, Cn(O), [2]) : (I = va(e), f ? [3, 4] : [4, W.getJSAccessToken()]);
8117
+ return E = ma(s), !(!(it == null || (i = it.platform) === null || i === void 0) && i.isMobile) || !t || V.isUndefined(ZaloJavaScriptInterface) || it.platform.isIOS && !im(t) || E && E.isSupported === !1 ? (O = { serialId: o, result: { error_code: Q.CLIENT_NOT_SUPPORT, error_message: H.CLIENT_NOT_SUPPORT, data: { isMobile: it == null || (S = it.platform) === null || S === void 0 ? void 0 : S.isMobile }, action: t } }, Cn(O), [2]) : (I = va(e), f ? [3, 4] : [4, W.getJSAccessToken()]);
8118
8118
  case 3:
8119
8119
  return D = X.sent(), [3, 5];
8120
8120
  case 4:
@@ -8130,7 +8130,7 @@ var _u = function(t) {
8130
8130
  case 9:
8131
8131
  return M = B, [3, 11];
8132
8132
  case 10:
8133
- return z = X.sent(), Q = { serialId: o, result: { error_code: z == null ? void 0 : z.code, error_message: z == null ? void 0 : z.message, action: t } }, Cn(Q), [2];
8133
+ return z = X.sent(), G = { serialId: o, result: { error_code: z == null ? void 0 : z.code, error_message: z == null ? void 0 : z.message, action: t } }, Cn(G), [2];
8134
8134
  case 11:
8135
8135
  try {
8136
8136
  e && (e != null && e.onProgress) && (ee = function(Pe) {
@@ -8147,27 +8147,27 @@ var _u = function(t) {
8147
8147
  }), function(t, e, n, r) {
8148
8148
  return Eu.apply(this, arguments);
8149
8149
  }), de = { success: function(t, e) {
8150
- return { code: Z.SUCCESS, message: e || H.SUCCESS, data: t || {} };
8150
+ return { code: Q.SUCCESS, message: e || H.SUCCESS, data: t || {} };
8151
8151
  }, error: { failLimit: function() {
8152
- return new ge(Z.FAIL_LIMIT, H.FAIL_LIMIT);
8152
+ return new ge(Q.FAIL_LIMIT, H.FAIL_LIMIT);
8153
8153
  }, badRequest: function(t) {
8154
- return new ge(Z.BAD_REQUEST, t);
8154
+ return new ge(Q.BAD_REQUEST, t);
8155
8155
  }, loginFailed: function(t) {
8156
- return new ge(Z.UNAUTHORIZED, "".concat(H.LOGIN_FAILED, ": ").concat(t));
8156
+ return new ge(Q.UNAUTHORIZED, "".concat(H.LOGIN_FAILED, ": ").concat(t));
8157
8157
  }, loginRequired: function() {
8158
- return new ge(Z.UNAUTHORIZED, H.LOGIN_REQUIRED);
8158
+ return new ge(Q.UNAUTHORIZED, H.LOGIN_REQUIRED);
8159
8159
  }, cannotGetShareInfo: function() {
8160
- return new ge(Z.INTERNAL_SERVER_ERROR, "Can not get app info to share");
8160
+ return new ge(Q.INTERNAL_SERVER_ERROR, "Can not get app info to share");
8161
8161
  }, createIAPOrderFailed: function(t) {
8162
8162
  var e = Object.keys(Rv).find(function(n) {
8163
8163
  return n === t.toString();
8164
8164
  });
8165
8165
  return new ge(t, e || H.UNKNOWN_ERROR);
8166
8166
  }, clientNotSupport: function() {
8167
- return new ge(Z.CLIENT_NOT_SUPPORT, H.CLIENT_NOT_SUPPORT);
8167
+ return new ge(Q.CLIENT_NOT_SUPPORT, H.CLIENT_NOT_SUPPORT);
8168
8168
  } } }, jl = function(t) {
8169
8169
  var e, n, r, i = (e = le()) === null || e === void 0 ? void 0 : e.platformName, a = fm(t.action), o = Qo[a], s = (o == null ? void 0 : o.skipJump) || !1, u = (o == null ? void 0 : o.errorList) || {};
8170
- if (a === "JUMP_LOGIN") return new ge(Z.UNKNOWN_ERROR, "Can not get auth code: ".concat(t.error_message));
8170
+ if (a === "JUMP_LOGIN") return new ge(Q.UNKNOWN_ERROR, "Can not get auth code: ".concat(t.error_message));
8171
8171
  if (W.jumpStatus !== Ze.DONE && !s) return new ge($.UNAUTHORIZED.code, $.UNAUTHORIZED.message);
8172
8172
  if (String(t.error_message).toLowerCase() === "permission required!" || String(t.error_message).toLowerCase() === "no permission!") return new ge($.FORBIDDEN.code, $.FORBIDDEN.message);
8173
8173
  if (i && (!((n = Ei[i]) === null || n === void 0) && n[t.error_code])) return new ge(Ei[i][t.error_code].code, Ei[i][t.error_code].message);
@@ -8843,7 +8843,7 @@ let De = class Kl {
8843
8843
  static mergeArray(e, n) {
8844
8844
  const r = [];
8845
8845
  for (const i of n) {
8846
- if (i.status === "aborted") return G;
8846
+ if (i.status === "aborted") return Z;
8847
8847
  i.status === "dirty" && e.dirty(), r.push(i.value);
8848
8848
  }
8849
8849
  return { status: e.value, value: r };
@@ -8857,13 +8857,13 @@ let De = class Kl {
8857
8857
  const r = {};
8858
8858
  for (const i of n) {
8859
8859
  const { key: a, value: o } = i;
8860
- if (a.status === "aborted" || o.status === "aborted") return G;
8860
+ if (a.status === "aborted" || o.status === "aborted") return Z;
8861
8861
  a.status === "dirty" && e.dirty(), o.status === "dirty" && e.dirty(), (o.value !== void 0 || i.alwaysSet) && (r[a.value] = o.value);
8862
8862
  }
8863
8863
  return { status: e.value, value: r };
8864
8864
  }
8865
8865
  };
8866
- const G = Object.freeze({ status: "aborted" }), Yl = (t) => ({ status: "dirty", value: t }), Ie = (t) => ({ status: "valid", value: t }), ya = (t) => t.status === "aborted", ga = (t) => t.status === "dirty", $r = (t) => t.status === "valid", jr = (t) => typeof Promise < "u" && t instanceof Promise;
8866
+ const Z = Object.freeze({ status: "aborted" }), Yl = (t) => ({ status: "dirty", value: t }), Ie = (t) => ({ status: "valid", value: t }), ya = (t) => t.status === "aborted", ga = (t) => t.status === "dirty", $r = (t) => t.status === "valid", jr = (t) => typeof Promise < "u" && t instanceof Promise;
8867
8867
  var ne;
8868
8868
  (function(t) {
8869
8869
  t.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, t.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
@@ -9003,7 +9003,7 @@ let hn = class _a extends Y {
9003
9003
  _parse(e) {
9004
9004
  if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== x.string) {
9005
9005
  const a = this._getOrReturnCtx(e);
9006
- return F(a, { code: R.invalid_type, expected: x.string, received: a.parsedType }), G;
9006
+ return F(a, { code: R.invalid_type, expected: x.string, received: a.parsedType }), Z;
9007
9007
  }
9008
9008
  const n = new De();
9009
9009
  let r;
@@ -9109,7 +9109,7 @@ let Zn = class ba extends Y {
9109
9109
  _parse(e) {
9110
9110
  if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== x.number) {
9111
9111
  const i = this._getOrReturnCtx(e);
9112
- return F(i, { code: R.invalid_type, expected: x.number, received: i.parsedType }), G;
9112
+ return F(i, { code: R.invalid_type, expected: x.number, received: i.parsedType }), Z;
9113
9113
  }
9114
9114
  let n;
9115
9115
  const r = new De();
@@ -9182,7 +9182,7 @@ class Gn extends Y {
9182
9182
  _parse(e) {
9183
9183
  if (this._def.coerce && (e.data = BigInt(e.data)), this._getType(e) !== x.bigint) {
9184
9184
  const n = this._getOrReturnCtx(e);
9185
- return F(n, { code: R.invalid_type, expected: x.bigint, received: n.parsedType }), G;
9185
+ return F(n, { code: R.invalid_type, expected: x.bigint, received: n.parsedType }), Z;
9186
9186
  }
9187
9187
  return Ie(e.data);
9188
9188
  }
@@ -9195,7 +9195,7 @@ class Hn extends Y {
9195
9195
  _parse(e) {
9196
9196
  if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== x.boolean) {
9197
9197
  const n = this._getOrReturnCtx(e);
9198
- return F(n, { code: R.invalid_type, expected: x.boolean, received: n.parsedType }), G;
9198
+ return F(n, { code: R.invalid_type, expected: x.boolean, received: n.parsedType }), Z;
9199
9199
  }
9200
9200
  return Ie(e.data);
9201
9201
  }
@@ -9205,10 +9205,10 @@ class zt extends Y {
9205
9205
  _parse(e) {
9206
9206
  if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== x.date) {
9207
9207
  const i = this._getOrReturnCtx(e);
9208
- return F(i, { code: R.invalid_type, expected: x.date, received: i.parsedType }), G;
9208
+ return F(i, { code: R.invalid_type, expected: x.date, received: i.parsedType }), Z;
9209
9209
  }
9210
9210
  if (isNaN(e.data.getTime()))
9211
- return F(this._getOrReturnCtx(e), { code: R.invalid_date }), G;
9211
+ return F(this._getOrReturnCtx(e), { code: R.invalid_date }), Z;
9212
9212
  const n = new De();
9213
9213
  let r;
9214
9214
  for (const i of this._def.checks) i.kind === "min" ? e.data.getTime() < i.value && (r = this._getOrReturnCtx(e, r), F(r, { code: R.too_small, message: i.message, inclusive: !0, exact: !1, minimum: i.value, type: "date" }), n.dirty()) : i.kind === "max" ? e.data.getTime() > i.value && (r = this._getOrReturnCtx(e, r), F(r, { code: R.too_big, message: i.message, inclusive: !0, exact: !1, maximum: i.value, type: "date" }), n.dirty()) : oe.assertNever(i);
@@ -9239,7 +9239,7 @@ let Fr = class extends Y {
9239
9239
  _parse(e) {
9240
9240
  if (this._getType(e) !== x.symbol) {
9241
9241
  const n = this._getOrReturnCtx(e);
9242
- return F(n, { code: R.invalid_type, expected: x.symbol, received: n.parsedType }), G;
9242
+ return F(n, { code: R.invalid_type, expected: x.symbol, received: n.parsedType }), Z;
9243
9243
  }
9244
9244
  return Ie(e.data);
9245
9245
  }
@@ -9249,7 +9249,7 @@ class Jn extends Y {
9249
9249
  _parse(e) {
9250
9250
  if (this._getType(e) !== x.undefined) {
9251
9251
  const n = this._getOrReturnCtx(e);
9252
- return F(n, { code: R.invalid_type, expected: x.undefined, received: n.parsedType }), G;
9252
+ return F(n, { code: R.invalid_type, expected: x.undefined, received: n.parsedType }), Z;
9253
9253
  }
9254
9254
  return Ie(e.data);
9255
9255
  }
@@ -9259,7 +9259,7 @@ let Kn = class extends Y {
9259
9259
  _parse(e) {
9260
9260
  if (this._getType(e) !== x.null) {
9261
9261
  const n = this._getOrReturnCtx(e);
9262
- return F(n, { code: R.invalid_type, expected: x.null, received: n.parsedType }), G;
9262
+ return F(n, { code: R.invalid_type, expected: x.null, received: n.parsedType }), Z;
9263
9263
  }
9264
9264
  return Ie(e.data);
9265
9265
  }
@@ -9286,7 +9286,7 @@ jt.create = (t) => new jt({ typeName: q.ZodUnknown, ...J(t) });
9286
9286
  class st extends Y {
9287
9287
  _parse(e) {
9288
9288
  const n = this._getOrReturnCtx(e);
9289
- return F(n, { code: R.invalid_type, expected: x.never, received: n.parsedType }), G;
9289
+ return F(n, { code: R.invalid_type, expected: x.never, received: n.parsedType }), Z;
9290
9290
  }
9291
9291
  }
9292
9292
  st.create = (t) => new st({ typeName: q.ZodNever, ...J(t) });
@@ -9294,7 +9294,7 @@ class Ur extends Y {
9294
9294
  _parse(e) {
9295
9295
  if (this._getType(e) !== x.undefined) {
9296
9296
  const n = this._getOrReturnCtx(e);
9297
- return F(n, { code: R.invalid_type, expected: x.void, received: n.parsedType }), G;
9297
+ return F(n, { code: R.invalid_type, expected: x.void, received: n.parsedType }), Z;
9298
9298
  }
9299
9299
  return Ie(e.data);
9300
9300
  }
@@ -9303,7 +9303,7 @@ Ur.create = (t) => new Ur({ typeName: q.ZodVoid, ...J(t) });
9303
9303
  class We extends Y {
9304
9304
  _parse(e) {
9305
9305
  const { ctx: n, status: r } = this._processInputParams(e), i = this._def;
9306
- if (n.parsedType !== x.array) return F(n, { code: R.invalid_type, expected: x.array, received: n.parsedType }), G;
9306
+ if (n.parsedType !== x.array) return F(n, { code: R.invalid_type, expected: x.array, received: n.parsedType }), Z;
9307
9307
  if (i.exactLength !== null) {
9308
9308
  const o = n.data.length > i.exactLength.value, s = n.data.length < i.exactLength.value;
9309
9309
  (o || s) && (F(n, { code: o ? R.too_big : R.too_small, minimum: s ? i.exactLength.value : void 0, maximum: o ? i.exactLength.value : void 0, type: "array", inclusive: !0, exact: !0, message: i.exactLength.message }), r.dirty());
@@ -9355,7 +9355,7 @@ class he extends Y {
9355
9355
  _parse(e) {
9356
9356
  if (this._getType(e) !== x.object) {
9357
9357
  const u = this._getOrReturnCtx(e);
9358
- return F(u, { code: R.invalid_type, expected: x.object, received: u.parsedType }), G;
9358
+ return F(u, { code: R.invalid_type, expected: x.object, received: u.parsedType }), Z;
9359
9359
  }
9360
9360
  const { status: n, ctx: r } = this._processInputParams(e), { shape: i, keys: a } = this._getCached(), o = [];
9361
9361
  if (!(this._def.catchall instanceof st && this._def.unknownKeys === "strip")) for (const u in r.data) a.includes(u) || o.push(u);
@@ -9461,7 +9461,7 @@ class Yn extends Y {
9461
9461
  for (const o of i) if (o.result.status === "valid") return o.result;
9462
9462
  for (const o of i) if (o.result.status === "dirty") return n.common.issues.push(...o.ctx.common.issues), o.result;
9463
9463
  const a = i.map((o) => new ot(o.ctx.common.issues));
9464
- return F(n, { code: R.invalid_union, unionErrors: a }), G;
9464
+ return F(n, { code: R.invalid_union, unionErrors: a }), Z;
9465
9465
  });
9466
9466
  {
9467
9467
  let i;
@@ -9473,7 +9473,7 @@ class Yn extends Y {
9473
9473
  }
9474
9474
  if (i) return n.common.issues.push(...i.ctx.common.issues), i.result;
9475
9475
  const o = a.map((s) => new ot(s));
9476
- return F(n, { code: R.invalid_union, unionErrors: o }), G;
9476
+ return F(n, { code: R.invalid_union, unionErrors: o }), Z;
9477
9477
  }
9478
9478
  }
9479
9479
  get options() {
@@ -9485,9 +9485,9 @@ const Tr = (t) => t instanceof er ? Tr(t.schema) : t instanceof ze ? Tr(t.innerT
9485
9485
  class ni extends Y {
9486
9486
  _parse(e) {
9487
9487
  const { ctx: n } = this._processInputParams(e);
9488
- if (n.parsedType !== x.object) return F(n, { code: R.invalid_type, expected: x.object, received: n.parsedType }), G;
9488
+ if (n.parsedType !== x.object) return F(n, { code: R.invalid_type, expected: x.object, received: n.parsedType }), Z;
9489
9489
  const r = this.discriminator, i = n.data[r], a = this.optionsMap.get(i);
9490
- return a ? n.common.async ? a._parseAsync({ data: n.data, path: n.path, parent: n }) : a._parseSync({ data: n.data, path: n.path, parent: n }) : (F(n, { code: R.invalid_union_discriminator, options: Array.from(this.optionsMap.keys()), path: [r] }), G);
9490
+ return a ? n.common.async ? a._parseAsync({ data: n.data, path: n.path, parent: n }) : a._parseSync({ data: n.data, path: n.path, parent: n }) : (F(n, { code: R.invalid_union_discriminator, options: Array.from(this.optionsMap.keys()), path: [r] }), Z);
9491
9491
  }
9492
9492
  get discriminator() {
9493
9493
  return this._def.discriminator;
@@ -9538,9 +9538,9 @@ function Ea(t, e) {
9538
9538
  class Xn extends Y {
9539
9539
  _parse(e) {
9540
9540
  const { status: n, ctx: r } = this._processInputParams(e), i = (a, o) => {
9541
- if (ya(a) || ya(o)) return G;
9541
+ if (ya(a) || ya(o)) return Z;
9542
9542
  const s = Ea(a.value, o.value);
9543
- return s.valid ? ((ga(a) || ga(o)) && n.dirty(), { status: n.value, value: s.data }) : (F(r, { code: R.invalid_intersection_types }), G);
9543
+ return s.valid ? ((ga(a) || ga(o)) && n.dirty(), { status: n.value, value: s.data }) : (F(r, { code: R.invalid_intersection_types }), Z);
9544
9544
  };
9545
9545
  return r.common.async ? Promise.all([this._def.left._parseAsync({ data: r.data, path: r.path, parent: r }), this._def.right._parseAsync({ data: r.data, path: r.path, parent: r })]).then(([a, o]) => i(a, o)) : i(this._def.left._parseSync({ data: r.data, path: r.path, parent: r }), this._def.right._parseSync({ data: r.data, path: r.path, parent: r }));
9546
9546
  }
@@ -9549,8 +9549,8 @@ Xn.create = (t, e, n) => new Xn({ left: t, right: e, typeName: q.ZodIntersection
9549
9549
  class et extends Y {
9550
9550
  _parse(e) {
9551
9551
  const { status: n, ctx: r } = this._processInputParams(e);
9552
- if (r.parsedType !== x.array) return F(r, { code: R.invalid_type, expected: x.array, received: r.parsedType }), G;
9553
- if (r.data.length < this._def.items.length) return F(r, { code: R.too_small, minimum: this._def.items.length, inclusive: !0, exact: !1, type: "array" }), G;
9552
+ if (r.parsedType !== x.array) return F(r, { code: R.invalid_type, expected: x.array, received: r.parsedType }), Z;
9553
+ if (r.data.length < this._def.items.length) return F(r, { code: R.too_small, minimum: this._def.items.length, inclusive: !0, exact: !1, type: "array" }), Z;
9554
9554
  !this._def.rest && r.data.length > this._def.items.length && (F(r, { code: R.too_big, maximum: this._def.items.length, inclusive: !0, exact: !1, type: "array" }), n.dirty());
9555
9555
  const i = [...r.data].map((a, o) => {
9556
9556
  const s = this._def.items[o] || this._def.rest;
@@ -9578,7 +9578,7 @@ class ri extends Y {
9578
9578
  }
9579
9579
  _parse(e) {
9580
9580
  const { status: n, ctx: r } = this._processInputParams(e);
9581
- if (r.parsedType !== x.object) return F(r, { code: R.invalid_type, expected: x.object, received: r.parsedType }), G;
9581
+ if (r.parsedType !== x.object) return F(r, { code: R.invalid_type, expected: x.object, received: r.parsedType }), Z;
9582
9582
  const i = [], a = this._def.keyType, o = this._def.valueType;
9583
9583
  for (const s in r.data) i.push({ key: a._parse(new Xe(r, s, r.path, s)), value: o._parse(new Xe(r, r.data[s], r.path, s)) });
9584
9584
  return r.common.async ? De.mergeObjectAsync(n, i) : De.mergeObjectSync(n, i);
@@ -9593,14 +9593,14 @@ class ri extends Y {
9593
9593
  class Br extends Y {
9594
9594
  _parse(e) {
9595
9595
  const { status: n, ctx: r } = this._processInputParams(e);
9596
- if (r.parsedType !== x.map) return F(r, { code: R.invalid_type, expected: x.map, received: r.parsedType }), G;
9596
+ if (r.parsedType !== x.map) return F(r, { code: R.invalid_type, expected: x.map, received: r.parsedType }), Z;
9597
9597
  const i = this._def.keyType, a = this._def.valueType, o = [...r.data.entries()].map(([s, u], c) => ({ key: i._parse(new Xe(r, s, r.path, [c, "key"])), value: a._parse(new Xe(r, u, r.path, [c, "value"])) }));
9598
9598
  if (r.common.async) {
9599
9599
  const s = /* @__PURE__ */ new Map();
9600
9600
  return Promise.resolve().then(async () => {
9601
9601
  for (const u of o) {
9602
9602
  const c = await u.key, l = await u.value;
9603
- if (c.status === "aborted" || l.status === "aborted") return G;
9603
+ if (c.status === "aborted" || l.status === "aborted") return Z;
9604
9604
  c.status !== "dirty" && l.status !== "dirty" || n.dirty(), s.set(c.value, l.value);
9605
9605
  }
9606
9606
  return { status: n.value, value: s };
@@ -9610,7 +9610,7 @@ class Br extends Y {
9610
9610
  const s = /* @__PURE__ */ new Map();
9611
9611
  for (const u of o) {
9612
9612
  const c = u.key, l = u.value;
9613
- if (c.status === "aborted" || l.status === "aborted") return G;
9613
+ if (c.status === "aborted" || l.status === "aborted") return Z;
9614
9614
  c.status !== "dirty" && l.status !== "dirty" || n.dirty(), s.set(c.value, l.value);
9615
9615
  }
9616
9616
  return { status: n.value, value: s };
@@ -9621,14 +9621,14 @@ Br.create = (t, e, n) => new Br({ valueType: e, keyType: t, typeName: q.ZodMap,
9621
9621
  class Wt extends Y {
9622
9622
  _parse(e) {
9623
9623
  const { status: n, ctx: r } = this._processInputParams(e);
9624
- if (r.parsedType !== x.set) return F(r, { code: R.invalid_type, expected: x.set, received: r.parsedType }), G;
9624
+ if (r.parsedType !== x.set) return F(r, { code: R.invalid_type, expected: x.set, received: r.parsedType }), Z;
9625
9625
  const i = this._def;
9626
9626
  i.minSize !== null && r.data.size < i.minSize.value && (F(r, { code: R.too_small, minimum: i.minSize.value, type: "set", inclusive: !0, exact: !1, message: i.minSize.message }), n.dirty()), i.maxSize !== null && r.data.size > i.maxSize.value && (F(r, { code: R.too_big, maximum: i.maxSize.value, type: "set", inclusive: !0, exact: !1, message: i.maxSize.message }), n.dirty());
9627
9627
  const a = this._def.valueType;
9628
9628
  function o(u) {
9629
9629
  const c = /* @__PURE__ */ new Set();
9630
9630
  for (const l of u) {
9631
- if (l.status === "aborted") return G;
9631
+ if (l.status === "aborted") return Z;
9632
9632
  l.status === "dirty" && n.dirty(), c.add(l.value);
9633
9633
  }
9634
9634
  return { status: n.value, value: c };
@@ -9656,7 +9656,7 @@ class un extends Y {
9656
9656
  }
9657
9657
  _parse(e) {
9658
9658
  const { ctx: n } = this._processInputParams(e);
9659
- if (n.parsedType !== x.function) return F(n, { code: R.invalid_type, expected: x.function, received: n.parsedType }), G;
9659
+ if (n.parsedType !== x.function) return F(n, { code: R.invalid_type, expected: x.function, received: n.parsedType }), Z;
9660
9660
  function r(s, u) {
9661
9661
  return Lr({ data: s, path: n.path, errorMaps: [n.common.contextualErrorMap, n.schemaErrorMap, xr(), Qn].filter((c) => !!c), issueData: { code: R.invalid_arguments, argumentsError: u } });
9662
9662
  }
@@ -9715,7 +9715,7 @@ class tr extends Y {
9715
9715
  _parse(e) {
9716
9716
  if (e.data !== this._def.value) {
9717
9717
  const n = this._getOrReturnCtx(e);
9718
- return F(n, { received: n.data, code: R.invalid_literal, expected: this._def.value }), G;
9718
+ return F(n, { received: n.data, code: R.invalid_literal, expected: this._def.value }), Z;
9719
9719
  }
9720
9720
  return { status: "valid", value: e.data };
9721
9721
  }
@@ -9731,11 +9731,11 @@ class Ct extends Y {
9731
9731
  _parse(e) {
9732
9732
  if (typeof e.data != "string") {
9733
9733
  const n = this._getOrReturnCtx(e), r = this._def.values;
9734
- return F(n, { expected: oe.joinValues(r), received: n.parsedType, code: R.invalid_type }), G;
9734
+ return F(n, { expected: oe.joinValues(r), received: n.parsedType, code: R.invalid_type }), Z;
9735
9735
  }
9736
9736
  if (this._def.values.indexOf(e.data) === -1) {
9737
9737
  const n = this._getOrReturnCtx(e), r = this._def.values;
9738
- return F(n, { received: n.data, code: R.invalid_enum_value, options: r }), G;
9738
+ return F(n, { received: n.data, code: R.invalid_enum_value, options: r }), Z;
9739
9739
  }
9740
9740
  return Ie(e.data);
9741
9741
  }
@@ -9770,11 +9770,11 @@ class nr extends Y {
9770
9770
  const n = oe.getValidEnumValues(this._def.values), r = this._getOrReturnCtx(e);
9771
9771
  if (r.parsedType !== x.string && r.parsedType !== x.number) {
9772
9772
  const i = oe.objectValues(n);
9773
- return F(r, { expected: oe.joinValues(i), received: r.parsedType, code: R.invalid_type }), G;
9773
+ return F(r, { expected: oe.joinValues(i), received: r.parsedType, code: R.invalid_type }), Z;
9774
9774
  }
9775
9775
  if (n.indexOf(e.data) === -1) {
9776
9776
  const i = oe.objectValues(n);
9777
- return F(r, { received: r.data, code: R.invalid_enum_value, options: i }), G;
9777
+ return F(r, { received: r.data, code: R.invalid_enum_value, options: i }), Z;
9778
9778
  }
9779
9779
  return Ie(e.data);
9780
9780
  }
@@ -9789,7 +9789,7 @@ class mn extends Y {
9789
9789
  }
9790
9790
  _parse(e) {
9791
9791
  const { ctx: n } = this._processInputParams(e);
9792
- if (n.parsedType !== x.promise && n.common.async === !1) return F(n, { code: R.invalid_type, expected: x.promise, received: n.parsedType }), G;
9792
+ if (n.parsedType !== x.promise && n.common.async === !1) return F(n, { code: R.invalid_type, expected: x.promise, received: n.parsedType }), Z;
9793
9793
  const r = n.parsedType === x.promise ? n.data : Promise.resolve(n.data);
9794
9794
  return Ie(r.then((i) => this._def.type.parseAsync(i, { path: n.path, errorMap: n.common.contextualErrorMap })));
9795
9795
  }
@@ -9822,9 +9822,9 @@ class ze extends Y {
9822
9822
  };
9823
9823
  if (r.common.async === !1) {
9824
9824
  const s = this._def.schema._parseSync({ data: r.data, path: r.path, parent: r });
9825
- return s.status === "aborted" ? G : (s.status === "dirty" && n.dirty(), o(s.value), { status: n.value, value: s.value });
9825
+ return s.status === "aborted" ? Z : (s.status === "dirty" && n.dirty(), o(s.value), { status: n.value, value: s.value });
9826
9826
  }
9827
- return this._def.schema._parseAsync({ data: r.data, path: r.path, parent: r }).then((s) => s.status === "aborted" ? G : (s.status === "dirty" && n.dirty(), o(s.value).then(() => ({ status: n.value, value: s.value }))));
9827
+ return this._def.schema._parseAsync({ data: r.data, path: r.path, parent: r }).then((s) => s.status === "aborted" ? Z : (s.status === "dirty" && n.dirty(), o(s.value).then(() => ({ status: n.value, value: s.value }))));
9828
9828
  }
9829
9829
  if (i.type === "transform") {
9830
9830
  if (r.common.async === !1) {
@@ -9883,7 +9883,7 @@ class Wr extends Y {
9883
9883
  _parse(e) {
9884
9884
  if (this._getType(e) !== x.nan) {
9885
9885
  const n = this._getOrReturnCtx(e);
9886
- return F(n, { code: R.invalid_type, expected: x.nan, received: n.parsedType }), G;
9886
+ return F(n, { code: R.invalid_type, expected: x.nan, received: n.parsedType }), Z;
9887
9887
  }
9888
9888
  return { status: "valid", value: e.data };
9889
9889
  }
@@ -9905,11 +9905,11 @@ class lr extends Y {
9905
9905
  if (r.common.async)
9906
9906
  return (async () => {
9907
9907
  const i = await this._def.in._parseAsync({ data: r.data, path: r.path, parent: r });
9908
- return i.status === "aborted" ? G : i.status === "dirty" ? (n.dirty(), Yl(i.value)) : this._def.out._parseAsync({ data: i.value, path: r.path, parent: r });
9908
+ return i.status === "aborted" ? Z : i.status === "dirty" ? (n.dirty(), Yl(i.value)) : this._def.out._parseAsync({ data: i.value, path: r.path, parent: r });
9909
9909
  })();
9910
9910
  {
9911
9911
  const i = this._def.in._parseSync({ data: r.data, path: r.path, parent: r });
9912
- return i.status === "aborted" ? G : i.status === "dirty" ? (n.dirty(), { status: "dirty", value: i.value }) : this._def.out._parseSync({ data: i.value, path: r.path, parent: r });
9912
+ return i.status === "aborted" ? Z : i.status === "dirty" ? (n.dirty(), { status: "dirty", value: i.value }) : this._def.out._parseSync({ data: i.value, path: r.path, parent: r });
9913
9913
  }
9914
9914
  }
9915
9915
  static create(e, n) {
@@ -9926,8 +9926,8 @@ var q;
9926
9926
  (function(t) {
9927
9927
  t.ZodString = "ZodString", t.ZodNumber = "ZodNumber", t.ZodNaN = "ZodNaN", t.ZodBigInt = "ZodBigInt", t.ZodBoolean = "ZodBoolean", t.ZodDate = "ZodDate", t.ZodSymbol = "ZodSymbol", t.ZodUndefined = "ZodUndefined", t.ZodNull = "ZodNull", t.ZodAny = "ZodAny", t.ZodUnknown = "ZodUnknown", t.ZodNever = "ZodNever", t.ZodVoid = "ZodVoid", t.ZodArray = "ZodArray", t.ZodObject = "ZodObject", t.ZodUnion = "ZodUnion", t.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", t.ZodIntersection = "ZodIntersection", t.ZodTuple = "ZodTuple", t.ZodRecord = "ZodRecord", t.ZodMap = "ZodMap", t.ZodSet = "ZodSet", t.ZodFunction = "ZodFunction", t.ZodLazy = "ZodLazy", t.ZodLiteral = "ZodLiteral", t.ZodEnum = "ZodEnum", t.ZodEffects = "ZodEffects", t.ZodNativeEnum = "ZodNativeEnum", t.ZodOptional = "ZodOptional", t.ZodNullable = "ZodNullable", t.ZodDefault = "ZodDefault", t.ZodCatch = "ZodCatch", t.ZodPromise = "ZodPromise", t.ZodBranded = "ZodBranded", t.ZodPipeline = "ZodPipeline";
9928
9928
  })(q || (q = {}));
9929
- const Im = (t, e = { message: `Input not instance of ${t.name}` }) => tf((n) => n instanceof t, e, !0), C = hn.create, xe = Zn.create, Pm = Wr.create, Am = Gn.create, dt = Hn.create, km = zt.create, Cm = Fr.create, Nm = Jn.create, Dm = Kn.create, Rm = vn.create, Mm = jt.create, xm = st.create, Lm = Ur.create, nf = We.create, k = he.create, $m = he.strictCreate, jm = Yn.create, Fm = ni.create, Um = Xn.create, Vm = et.create, Bm = ri.create, zm = Br.create, Wm = Wt.create, qm = un.create, Qm = er.create, Zm = tr.create, Gm = Ct.create, Hm = nr.create, Jm = mn.create, Ou = ze.create, Km = ut.create, Ym = qt.create, Xm = ze.createWithPreprocess, ey = lr.create, ty = () => C().optional(), ny = () => xe().optional(), ry = () => dt().optional(), iy = { string: (t) => hn.create({ ...t, coerce: !0 }), number: (t) => Zn.create({ ...t, coerce: !0 }), boolean: (t) => Hn.create({ ...t, coerce: !0 }), bigint: (t) => Gn.create({ ...t, coerce: !0 }), date: (t) => zt.create({ ...t, coerce: !0 }) }, ay = G;
9930
- var T = Object.freeze({ __proto__: null, defaultErrorMap: Qn, setErrorMap: ym, getErrorMap: xr, makeIssue: Lr, EMPTY_PATH: gm, addIssueToContext: F, ParseStatus: De, INVALID: G, DIRTY: Yl, OK: Ie, isAborted: ya, isDirty: ga, isValid: $r, isAsync: jr, get util() {
9929
+ const Im = (t, e = { message: `Input not instance of ${t.name}` }) => tf((n) => n instanceof t, e, !0), C = hn.create, xe = Zn.create, Pm = Wr.create, Am = Gn.create, dt = Hn.create, km = zt.create, Cm = Fr.create, Nm = Jn.create, Dm = Kn.create, Rm = vn.create, Mm = jt.create, xm = st.create, Lm = Ur.create, nf = We.create, k = he.create, $m = he.strictCreate, jm = Yn.create, Fm = ni.create, Um = Xn.create, Vm = et.create, Bm = ri.create, zm = Br.create, Wm = Wt.create, qm = un.create, Qm = er.create, Zm = tr.create, Gm = Ct.create, Hm = nr.create, Jm = mn.create, Ou = ze.create, Km = ut.create, Ym = qt.create, Xm = ze.createWithPreprocess, ey = lr.create, ty = () => C().optional(), ny = () => xe().optional(), ry = () => dt().optional(), iy = { string: (t) => hn.create({ ...t, coerce: !0 }), number: (t) => Zn.create({ ...t, coerce: !0 }), boolean: (t) => Hn.create({ ...t, coerce: !0 }), bigint: (t) => Gn.create({ ...t, coerce: !0 }), date: (t) => zt.create({ ...t, coerce: !0 }) }, ay = Z;
9930
+ var T = Object.freeze({ __proto__: null, defaultErrorMap: Qn, setErrorMap: ym, getErrorMap: xr, makeIssue: Lr, EMPTY_PATH: gm, addIssueToContext: F, ParseStatus: De, INVALID: Z, DIRTY: Yl, OK: Ie, isAborted: ya, isDirty: ga, isValid: $r, isAsync: jr, get util() {
9931
9931
  return oe;
9932
9932
  }, ZodParsedType: x, getParsedType: St, ZodType: Y, ZodString: hn, ZodNumber: Zn, ZodBigInt: Gn, ZodBoolean: Hn, ZodDate: zt, ZodSymbol: Fr, ZodUndefined: Jn, ZodNull: Kn, ZodAny: vn, ZodUnknown: jt, ZodNever: st, ZodVoid: Ur, ZodArray: We, get objectUtil() {
9933
9933
  return Vr;
@@ -9935,12 +9935,12 @@ var T = Object.freeze({ __proto__: null, defaultErrorMap: Qn, setErrorMap: ym, g
9935
9935
  return q;
9936
9936
  }, coerce: iy, any: Rm, array: nf, bigint: Am, boolean: dt, date: km, discriminatedUnion: Fm, effect: Ou, enum: Gm, function: qm, instanceof: Im, intersection: Um, lazy: Qm, literal: Zm, map: zm, nan: Pm, nativeEnum: Hm, never: xm, null: Dm, nullable: Ym, number: xe, object: k, oboolean: ry, onumber: ny, optional: Km, ostring: ty, pipeline: ey, preprocess: Xm, promise: Jm, record: Bm, set: Wm, strictObject: $m, string: C, symbol: Cm, transformer: Ou, tuple: Vm, undefined: Nm, union: jm, unknown: Mm, void: Lm, NEVER: ay, ZodIssueCode: R, quotelessJson: mm, ZodError: ot }), Ne = function() {
9937
9937
  function t() {
9938
- var n, r, i, a, o, s, u, c, l, f, d, p, y, g, _, m, E, S, O, I, A, D, M, B, z, Q, ee;
9938
+ var n, r, i, a, o, s, u, c, l, f, d, p, y, g, _, m, E, S, O, I, A, D, M, B, z, G, ee;
9939
9939
  je(this, t), this.initConfig = window.APP_CONFIG;
9940
9940
  var K = V.isString((n = this.initConfig) === null || n === void 0 || (r = n.app) === null || r === void 0 ? void 0 : r.headerColor) && ((i = this.initConfig) === null || i === void 0 || (a = i.app) === null || a === void 0 || (o = a.headerColor) === null || o === void 0 ? void 0 : o.length) > 0 ? wi : hr;
9941
9941
  this.hideIOSSafeAreaBottom = !!(!((s = this.initConfig) === null || s === void 0 || (u = s.app) === null || u === void 0) && u.hideIOSSafeAreaBottom), this.hideAndroidBottomNavigationBar = !!(!((c = this.initConfig) === null || c === void 0 || (l = c.app) === null || l === void 0) && l.hideAndroidBottomNavigationBar);
9942
9942
  var X, Pe, Fe = ((f = this.initConfig) === null || f === void 0 || (d = f.app) === null || d === void 0 ? void 0 : d.leftButton) === "none" || ((p = this.initConfig) === null || p === void 0 || (y = p.app) === null || y === void 0 ? void 0 : y.leftButton) === "home" ? mt.HIDE_BACK : mt.SHOW_BACK, Qe = ((g = this.initConfig) === null || g === void 0 || (_ = g.app) === null || _ === void 0 ? void 0 : _.leftButton) === "home" || ((m = this.initConfig) === null || m === void 0 || (E = m.app) === null || E === void 0 ? void 0 : E.leftButton) === "both" ? mt.SHOW_HOME : mt.HIDE_HOME, rt = new URL(location.href), Ee = cm((S = this.initConfig) === null || S === void 0 || (O = S.app) === null || O === void 0 ? void 0 : O.statusBar);
9943
- typeof ((I = this.initConfig) === null || I === void 0 || (A = I.app) === null || A === void 0 ? void 0 : A.actionBarHidden) == "boolean" && (K = !((X = this.initConfig) === null || X === void 0 || (Pe = X.app) === null || Pe === void 0) && Pe.actionBarHidden ? hr : wi), this.config = { actionbarType: K, buttonType: Fe, statusbarType: Ee, dataConfig: { backgroundColor: ((D = this.initConfig) === null || D === void 0 || (M = D.app) === null || M === void 0 ? void 0 : M.headerColor) || Nv, textColor: ((B = this.initConfig) === null || B === void 0 || (z = B.app) === null || z === void 0 ? void 0 : z.textColor) || "", textAlign: ((Q = this.initConfig) === null || Q === void 0 || (ee = Q.app) === null || ee === void 0 ? void 0 : ee.textAlign) || Dv, viewInLeftType: Fe, confirmToExit: 1 }, homeConfig: { enable: Qe, url: "".concat(qo, "/").concat(be, "/").concat(rt.search) } };
9943
+ typeof ((I = this.initConfig) === null || I === void 0 || (A = I.app) === null || A === void 0 ? void 0 : A.actionBarHidden) == "boolean" && (K = !((X = this.initConfig) === null || X === void 0 || (Pe = X.app) === null || Pe === void 0) && Pe.actionBarHidden ? hr : wi), this.config = { actionbarType: K, buttonType: Fe, statusbarType: Ee, dataConfig: { backgroundColor: ((D = this.initConfig) === null || D === void 0 || (M = D.app) === null || M === void 0 ? void 0 : M.headerColor) || Nv, textColor: ((B = this.initConfig) === null || B === void 0 || (z = B.app) === null || z === void 0 ? void 0 : z.textColor) || "", textAlign: ((G = this.initConfig) === null || G === void 0 || (ee = G.app) === null || ee === void 0 ? void 0 : ee.textAlign) || Dv, viewInLeftType: Fe, confirmToExit: 1 }, homeConfig: { enable: Qe, url: "".concat(qo, "/").concat(be, "/").concat(rt.search) } };
9944
9944
  }
9945
9945
  var e = t.prototype;
9946
9946
  return e.setNavigationBarTitle = function(n) {
@@ -12446,20 +12446,20 @@ var Xu, Mf = (Xu = h(function(t) {
12446
12446
  return Xu.apply(this, arguments);
12447
12447
  }), ec, F_ = (ec = h(function(t, e, n, r, i, a, o) {
12448
12448
  var s, u, c, l, f, d, p, y, g, _, m, E, S, O, I, A, D, M, B, z;
12449
- return v(this, function(Q) {
12450
- switch (Q.label) {
12449
+ return v(this, function(G) {
12450
+ switch (G.label) {
12451
12451
  case 0:
12452
- s = be, (u = new URLSearchParams()).append("amount", t.toString()), u.append("item", encodeURIComponent(JSON.stringify(e))), u.append("appId", s), u.append("mac", r), n && u.append("desc", encodeURIComponent(n)), i && (c = i, typeof i == "object" && (c = JSON.stringify(i)), u.append("extradata", encodeURIComponent(c))), a && (l = a, typeof a == "object" && (l = JSON.stringify(a)), u.append("payload", encodeURIComponent(l))), o && (typeof o == "string" ? (u.append("method", o), u.append("isCustom", "false")) : typeof o == "object" && (u.append("method", o.id), u.append("isCustom", JSON.stringify(o.isCustom)))), f = { headers: { "Content-Type": "application/x-www-form-urlencoded", authorization: "Bearer " } }, Q.label = 1;
12452
+ s = be, (u = new URLSearchParams()).append("amount", t.toString()), u.append("item", encodeURIComponent(JSON.stringify(e))), u.append("appId", s), u.append("mac", r), n && u.append("desc", encodeURIComponent(n)), i && (c = i, typeof i == "object" && (c = JSON.stringify(i)), u.append("extradata", encodeURIComponent(c))), a && (l = a, typeof a == "object" && (l = JSON.stringify(a)), u.append("payload", encodeURIComponent(l))), o && (typeof o == "string" ? (u.append("method", o), u.append("isCustom", "false")) : typeof o == "object" && (u.append("method", o.id), u.append("isCustom", JSON.stringify(o.isCustom)))), f = { headers: { "Content-Type": "application/x-www-form-urlencoded", authorization: "Bearer " } }, G.label = 1;
12453
12453
  case 1:
12454
- return Q.trys.push([1, 6, , 7]), [4, W.getAccessToken().catch(function() {
12454
+ return G.trys.push([1, 6, , 7]), [4, W.getAccessToken().catch(function() {
12455
12455
  throw de.error.loginRequired;
12456
12456
  })];
12457
12457
  case 2:
12458
- return d = Q.sent(), f.headers.authorization = "Bearer ".concat(d), [4, fetch(ei.CREATE_ORDER, pt(ve({ method: "POST" }, f), { body: u }))];
12458
+ return d = G.sent(), f.headers.authorization = "Bearer ".concat(d), [4, fetch(ei.CREATE_ORDER, pt(ve({ method: "POST" }, f), { body: u }))];
12459
12459
  case 3:
12460
- return [4, Q.sent().json()];
12460
+ return [4, G.sent().json()];
12461
12461
  case 4:
12462
- if (!(p = Q.sent()).data || p.err !== 0) throw de.error.badRequest(p.msg);
12462
+ if (!(p = G.sent()).data || p.err !== 0) throw de.error.badRequest(p.msg);
12463
12463
  return y = p.data.id, g = p.data.jwt, _ = p.data.messageToken || "", m = window.APP_VERSION, E = window.APP_ENV, S = { miniAppId: s, orderId: y }, O = p.data.method, I = p.data.isCustom, g && (S.token = g), m && (S.version = m), E && (S.env = E), O && (S.method = O), I && (S.isCustom = I), A = Ot.encode(S), D = new URL("?".concat(A), kv).toString(), M = Ll(), B = xl() && M < 742 ? "normal" : "bottomSheet", da.enablePaymentDone = _e.getInstance().eventNames().includes(ue.PaymentDone), [4, Sf(D, { style: B }).then(function() {
12464
12464
  var ee = !1;
12465
12465
  _e.getInstance().once(ue.WebviewClosed, function() {
@@ -12483,9 +12483,9 @@ var Xu, Mf = (Xu = h(function(t) {
12483
12483
  });
12484
12484
  })];
12485
12485
  case 5:
12486
- return Q.sent(), [2, { orderId: y, messageToken: _ }];
12486
+ return G.sent(), [2, { orderId: y, messageToken: _ }];
12487
12487
  case 6:
12488
- throw z = Q.sent(), console.log("Internal error"), z;
12488
+ throw z = G.sent(), console.log("Internal error"), z;
12489
12489
  case 7:
12490
12490
  return [2];
12491
12491
  }
@@ -13788,7 +13788,7 @@ var sc, Wb = (sc = h(function(t, e) {
13788
13788
  return n = {}, t === "cccd" && (n = { mrz: e == null ? void 0 : e.mrz }), [2, new Promise(function(i, a) {
13789
13789
  U("SCAN_NFC", { type: ia[t], data: n }, { success: function(o) {
13790
13790
  if (t === "cccd") {
13791
- var s, u, c, l, f, d, p, y, g, _, m, E, S, O, I, A, D, M, B, z, Q, ee = { dg1: (s = o.dg1) !== null && s !== void 0 ? s : "", dg2: (u = o.dg2) !== null && u !== void 0 ? u : "", dg3: (c = o.dg3) !== null && c !== void 0 ? c : "", dg4: (l = o.dg4) !== null && l !== void 0 ? l : "", dg5: (f = o.dg5) !== null && f !== void 0 ? f : "", dg6: (d = o.dg6) !== null && d !== void 0 ? d : "", dg7: (p = o.dg7) !== null && p !== void 0 ? p : "", dg8: (y = o.dg8) !== null && y !== void 0 ? y : "", dg9: (g = o.dg9) !== null && g !== void 0 ? g : "", dg10: (_ = o.dg10) !== null && _ !== void 0 ? _ : "", dg11: (m = o.dg11) !== null && m !== void 0 ? m : "", dg12: (E = o.dg12) !== null && E !== void 0 ? E : "", dg13: (S = o.dg13) !== null && S !== void 0 ? S : "", dg14: (O = o.dg14) !== null && O !== void 0 ? O : "", dg15: (I = o.dg15) !== null && I !== void 0 ? I : "", dg16: (A = o.dg16) !== null && A !== void 0 ? A : "", com: (D = o.com) !== null && D !== void 0 ? D : "", sod: (M = o.sod) !== null && M !== void 0 ? M : "", challenge: (B = o.challenge) !== null && B !== void 0 ? B : "", aAResult: (z = o.aAResult) !== null && z !== void 0 ? z : "", eACCAResult: (Q = o.eACCAResult) !== null && Q !== void 0 ? Q : "" };
13791
+ var s, u, c, l, f, d, p, y, g, _, m, E, S, O, I, A, D, M, B, z, G, ee = { dg1: (s = o.dg1) !== null && s !== void 0 ? s : "", dg2: (u = o.dg2) !== null && u !== void 0 ? u : "", dg3: (c = o.dg3) !== null && c !== void 0 ? c : "", dg4: (l = o.dg4) !== null && l !== void 0 ? l : "", dg5: (f = o.dg5) !== null && f !== void 0 ? f : "", dg6: (d = o.dg6) !== null && d !== void 0 ? d : "", dg7: (p = o.dg7) !== null && p !== void 0 ? p : "", dg8: (y = o.dg8) !== null && y !== void 0 ? y : "", dg9: (g = o.dg9) !== null && g !== void 0 ? g : "", dg10: (_ = o.dg10) !== null && _ !== void 0 ? _ : "", dg11: (m = o.dg11) !== null && m !== void 0 ? m : "", dg12: (E = o.dg12) !== null && E !== void 0 ? E : "", dg13: (S = o.dg13) !== null && S !== void 0 ? S : "", dg14: (O = o.dg14) !== null && O !== void 0 ? O : "", dg15: (I = o.dg15) !== null && I !== void 0 ? I : "", dg16: (A = o.dg16) !== null && A !== void 0 ? A : "", com: (D = o.com) !== null && D !== void 0 ? D : "", sod: (M = o.sod) !== null && M !== void 0 ? M : "", challenge: (B = o.challenge) !== null && B !== void 0 ? B : "", aAResult: (z = o.aAResult) !== null && z !== void 0 ? z : "", eACCAResult: (G = o.eACCAResult) !== null && G !== void 0 ? G : "" };
13792
13792
  i(ee);
13793
13793
  } else i({});
13794
13794
  }, fail: function(o) {
@@ -13968,15 +13968,15 @@ function bo() {
13968
13968
  if (w.isMp) {
13969
13969
  try {
13970
13970
  i = document.getElementById(r.id), a = r.textColor, o = r.fontSize, s = r.buttonHeight, u = r.buttonColor, c = r.buttonTextColor, l = r.buttonRadius, f = r.buttonText, d = r.checkboxBGColor, p = r.checkboxCheckmarkColor, y = r.onStatusChange, g = r.onClick, _ = r.onError, m = Xr(r, ["textColor", "fontSize", "buttonHeight", "buttonColor", "buttonTextColor", "buttonRadius", "buttonText", "checkboxBGColor", "checkboxCheckmarkColor", "onStatusChange", "onClick", "onError"]), i && (E = document.createElement("iframe"), S = "ifCOAF-".concat(r.id, "-").concat(Date.now()), O = new URL("https://h5.zalo.me/widgets/oa_widget_custom.html"), I = { id: S, appId: window.APP_ID, textColor: a, fontSize: o, buttonHeight: s, buttonColor: u, buttonTextColor: c, buttonRadius: l, buttonText: f, checkboxBGColor: d, checkboxCheckmarkColor: p }, Object.entries(m).forEach(function(z) {
13971
- var Q = ft(z, 2), ee = Q[0], K = Q[1];
13971
+ var G = ft(z, 2), ee = G[0], K = G[1];
13972
13972
  K && (I["data-".concat(ee)] = String(K));
13973
13973
  }), A = JSON.stringify(I), D = hm(A), M = encodeURIComponent(D), pm(O.searchParams, "data", M), E.id = S, E.src = O.href, E.style.width = "100%", E.style.height = "100%", E.style.border = "none", i.innerHTML = E.outerHTML, window.addEventListener("message", function() {
13974
- var z = h(function(Q) {
13974
+ var z = h(function(G) {
13975
13975
  var ee, K, X, Pe, Fe, Qe, rt, Ee, wn;
13976
13976
  return v(this, function(Gt) {
13977
13977
  switch (Gt.label) {
13978
13978
  case 0:
13979
- return ee = Q.data, Q.origin.startsWith("https://h5.zalo.me") ? (K = document.getElementById(S), X = ee.type, (Pe = new URL(ee.href)).origin !== O.origin || Pe.pathname !== O.pathname || ee.id !== S ? [3, 3] : X !== "followOA" && X !== "getOAInfo" ? [3, 2] : [4, W.jumpAndGetToken()]) : [3, 3];
13979
+ return ee = G.data, G.origin.startsWith("https://h5.zalo.me") ? (K = document.getElementById(S), X = ee.type, (Pe = new URL(ee.href)).origin !== O.origin || Pe.pathname !== O.pathname || ee.id !== S ? [3, 3] : X !== "followOA" && X !== "getOAInfo" ? [3, 2] : [4, W.jumpAndGetToken()]) : [3, 3];
13980
13980
  case 1:
13981
13981
  return Gt.sent(), rt = (Fe = W.miniProgramConfig) === null || Fe === void 0 ? void 0 : Fe.jwt, K == null || (Qe = K.contentWindow) === null || Qe === void 0 || Qe.postMessage({ type: X, payload: { jwt: rt } }, "*"), [3, 3];
13982
13982
  case 2:
@@ -13986,7 +13986,7 @@ function bo() {
13986
13986
  }
13987
13987
  });
13988
13988
  });
13989
- return function(Q) {
13989
+ return function(G) {
13990
13990
  return z.apply(this, arguments);
13991
13991
  };
13992
13992
  }(), !1));
@@ -14200,11 +14200,11 @@ mutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String,
14200
14200
  const D = Hc({
14201
14201
  uri: n
14202
14202
  }), M = bv((B, { headers: z }) => {
14203
- const Q = window.__PROMOGAME_EXTERNAL_ACCESS_TOKEN;
14204
- return console.log(`token is ${Q}`), Q ? {
14203
+ const G = window.__PROMOGAME_EXTERNAL_ACCESS_TOKEN;
14204
+ return G ? {
14205
14205
  headers: {
14206
14206
  ...z,
14207
- authorization: Q ? `Bearer ${Q}` : ""
14207
+ authorization: G ? `Bearer ${G}` : ""
14208
14208
  }
14209
14209
  } : {
14210
14210
  headers: z
@@ -14226,13 +14226,13 @@ mutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String,
14226
14226
  var D, M, B;
14227
14227
  if (!_ && window)
14228
14228
  try {
14229
- const z = new URLSearchParams(window.location.search), Q = Object.fromEntries(z.entries()), { data: ee, errors: K } = await E({
14229
+ const z = new URLSearchParams(window.location.search), G = Object.fromEntries(z.entries()), { data: ee, errors: K } = await E({
14230
14230
  variables: {
14231
14231
  campaignId: e,
14232
14232
  externalUserId: a,
14233
14233
  checksum: i,
14234
14234
  requestedAt: o,
14235
- parameters: Q
14235
+ parameters: G
14236
14236
  }
14237
14237
  });
14238
14238
  window.__PROMOGAME_CAMPAIGN_ID = e, window.__PROMOGAME_EXTERNAL_ACCESS_TOKEN = ee == null ? void 0 : ee.startAppSession.accessToken, window.__PROMOGAME_ERROR_CODE = (B = (M = (D = K == null ? void 0 : K[0]) == null ? void 0 : D.extensions) == null ? void 0 : M.code) == null ? void 0 : B.toString(), m(!0), S({
@@ -14263,7 +14263,7 @@ mutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String,
14263
14263
  u
14264
14264
  ]);
14265
14265
  const O = (A = (I = y == null ? void 0 : y.getCampaign) == null ? void 0 : I.game) == null ? void 0 : A.gameLink;
14266
- return console.log(O, "gameLink"), console.log(_, "sessionLoaded"), g && console.error(g), O && _ ? /* @__PURE__ */ es(rd, { className: t, ref: f, gameLink: O, loadingComponent: r }) : /* @__PURE__ */ es(td, {});
14266
+ return g && console.error(g), O && _ ? /* @__PURE__ */ es(rd, { className: t, ref: f, gameLink: O, loadingComponent: r }) : /* @__PURE__ */ es(td, {});
14267
14267
  }
14268
14268
  );
14269
14269
  export {
package/package.json CHANGED
@@ -1,18 +1,12 @@
1
1
  {
2
2
  "name": "promogame-player",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "type": "module",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",
7
- "files": ["dist"],
8
- "scripts": {
9
- "build": "tsc --p ./tsconfig.build.json && vite build",
10
- "prepublishOnly": "pnpm run build",
11
- "codegen": "graphql-codegen --config codegen.ts --watch",
12
- "publish-patch": "pnpm version patch && pnpm publish",
13
- "publish-minor": "pnpm version minor && pnpm publish",
14
- "publish-major": "pnpm version major && pnpm publish"
15
- },
7
+ "files": [
8
+ "dist"
9
+ ],
16
10
  "peerDependencies": {
17
11
  "react": "*",
18
12
  "react-dom": "*"
@@ -40,5 +34,12 @@
40
34
  "vite": "^6.3.5",
41
35
  "vite-plugin-dts": "^4.5.4",
42
36
  "vite-plugin-lib-inject-css": "^2.2.2"
37
+ },
38
+ "scripts": {
39
+ "build": "tsc --p ./tsconfig.build.json && vite build",
40
+ "codegen": "graphql-codegen --config codegen.ts --watch",
41
+ "publish-patch": "pnpm version patch && pnpm publish",
42
+ "publish-minor": "pnpm version minor && pnpm publish",
43
+ "publish-major": "pnpm version major && pnpm publish"
43
44
  }
44
- }
45
+ }