New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

zmp-sdk

Package Overview
Dependencies
Maintainers
0
Versions
355
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zmp-sdk - npm Package Compare versions

Comparing version 2.43.4 to 2.44.0-19

apis/apis/downloadFile.js

2

apis/apis/saveImageToGallery.js

@@ -1,1 +0,1 @@

import e from'./../external/@swc/helpers/src/_async_to_generator.mjs.js';import{object as r,string as o}from'./../external/zod/lib/index.mjs.js';import t from"../appEnv/index.js";import s from"../common/notFound.js";import{functionHandler as n}from"../utils/decorator.js";import a from"../common/apis/general/saveImageToGallery.js";import{__generator as i}from'./../external/tslib/tslib.es6.js';var m=[r({imageBase64Data:o().optional(),imageUrl:o().url().optional()}).optional()];function l(e){return p.apply(this,arguments)}function p(){return p=e((function(r){return i(this,(function(o){return[2,n("saveImageToGallery",m,[r],(l=e((function(e){return i(this,(function(r){switch(r.label){case 0:return t.isMp?[4,a(e.imageBase64Data,e.imageUrl)]:[3,2];case 1:return[2,r.sent()];case 2:return t.isMpWeb?[2,Promise.resolve()]:[2,Promise.reject(s("saveImageToGallery",{}))]}}))})),function(e){return l.apply(this,arguments)}))];var l}))})),p.apply(this,arguments)}export{l as saveImageToGallery};
import e from'./../external/@swc/helpers/src/_async_to_generator.mjs.js';import{object as r,string as o}from'./../external/zod/lib/index.mjs.js';import s from"../appEnv/index.js";import t from"../common/notFound.js";import{functionHandler as n}from"../utils/decorator.js";import a from"../common/apis/general/saveImageToGallery.js";import{__generator as i}from'./../external/tslib/tslib.es6.js';var m=[r({imageBase64Data:o().optional(),imageUrl:o().url().optional()}).optional()];function l(e){return p.apply(this,arguments)}function p(){return p=e((function(r){return i(this,(function(o){return[2,n("saveImageToGallery",m,[r],(l=e((function(e){return i(this,(function(r){switch(r.label){case 0:return s.isMp?[4,a(e.imageBase64Data,e.imageUrl,e.onProgress)]:[3,2];case 1:return[2,r.sent()];case 2:return s.isMpWeb?[2,Promise.resolve()]:[2,Promise.reject(t("saveImageToGallery",{}))]}}))})),function(e){return l.apply(this,arguments)}))];var l}))})),p.apply(this,arguments)}export{l as saveImageToGallery};

@@ -1,1 +0,1 @@

import s from'./../../../external/@swc/helpers/src/_async_to_generator.mjs.js';import e from'./../../../external/@swc/helpers/src/_object_spread.mjs.js';import r from"../../call/index.js";import{__generator as o}from'./../../../external/tslib/tslib.es6.js';var t,n=(t=s((function(s,t){var n;return o(this,(function(o){return n={},s?n={imageBase64Data:s}:t&&(n={imageUrl:t}),[2,new Promise((function(s,o){r("SAVE_IMAGE_GALLERY",e({},n),{success:function(){s()},fail:function(s){o(s)}},{})}))]}))})),function(s,e){return t.apply(this,arguments)});export{n as default};
import s from'./../../../external/@swc/helpers/src/_async_to_generator.mjs.js';import e from'./../../../external/@swc/helpers/src/_object_spread.mjs.js';import r from'./../../../external/@swc/helpers/src/_object_spread_props.mjs.js';import o from"../../call/index.js";import{__generator as t}from'./../../../external/tslib/tslib.es6.js';var n,i=(n=s((function(s,n,i){var m;return t(this,(function(t){return m={},s?m={imageBase64Data:s}:n&&(m={imageUrl:n}),[2,new Promise((function(s,t){o("SAVE_IMAGE_GALLERY",r(e({},m),{onProgress:i}),{success:function(){s()},fail:function(s){t(s)}},{})}))]}))})),function(s,e,r){return n.apply(this,arguments)});export{i as default};

@@ -1,1 +0,1 @@

import o from'./../../external/@swc/helpers/src/_async_to_generator.mjs.js';import{RESPONSE_CODE as e,MESSAGES as a}from"../../constants.js";import t from"../../utils/lodash.js";import{MPEEmitter as r,onActionMessage as i,fireActionMessage as l}from"../eventEmitter.js";import{parseJSON as n,getDynamicAPIByAction as s,checkIOSSupportAction as c,serialize as u,convertSDKActionToJumpAction as d,isRequireUserAuthentication as m}from"../../utils/common.js";import v from"../token.js";import{sendLogData as p}from"../utils.js";import f from"../apis/general/getSetting.js";import _ from"../../appEnv/getEnv.js";import{__generator as g}from'./../../external/tslib/tslib.es6.js';import{Events as h}from"../../types/enum.js";var I,b,T,M,j,E,N=(T=_(),M={},j=r.getInstance(),E=[],!1||(i((function(o){var e=o.serialId,a=n(o.result),r=s(null==a?void 0:a.action),i=t.isEmpty(null==a?void 0:a.error_code)?0:null==a?void 0:a.error_code,l=null==a?void 0:a.error_message,c=(null==a?void 0:a.data)||a;if(r&&0===i){var u=JSON.parse(null==a?void 0:a.data);i=t.isEmpty(null==u?void 0:u.error_code)?0:null==u?void 0:u.error_code,l=null==u?void 0:u.error_message,c=(null==u?void 0:u.data)||u}var d={error_code:i,error_message:l,data:c,action:(null==a?void 0:a.action)||o.actionName};if(e&&M[e]){var m=M[e],v=m.callback,p=m.timeout,f=m.isMultiCallback,_=m.options;!function(o,e){var a=e||{},r=a.success,i=a.fail;0===o.error_code?t.isFunction(r)&&r(o):t.isFunction(i)&&i(o)}(d,v),!f&&delete M[e],p&&clearTimeout(p);var g={action:null==d?void 0:d.action,error:null==d?void 0:d.error_code,message:null==d?void 0:d.error_message,data:{}};try{if("action.open.inapp"===d.action||"action.open.outapp"===d.action){var h=new URL(null==_?void 0:_.url),I="".concat(h.protocol,"//").concat(h.host).concat(h.pathname);g.data={url:I}}if("action.follow.oa"===d.action||"action.unfollow.oa"===d.action){var b=null==_?void 0:_.uid;g.data={uid:b}}if("action.open.chat"===d.action){var T=null==_?void 0:_.uId,j=null==_?void 0:_.type;g.data={uid:T,openChatType:j}}}catch(o){}E.push(g)}})),j.on(h.AppPaused,(function(){if(E.length>0){var o=E;E=[],p(o)}})),I?clearInterval(I):I=setInterval((function(){if(E.length>0){var o=E;E=[],p(o)}}),5e3),!0),b=o((function(o,r,i,n){var p,_,h,I,b,j,E,N,S,k,O,U,w,y,C,A,J,P,R,L,Z,D,F,H,q;return g(this,(function(g){switch(g.label){case 0:return _=Math.floor(1e6*Math.random()),h="".concat(o,"_").concat(_),I=d(o),(null==n?void 0:n.actionName)&&n.actionName.length>0&&(I=null==n?void 0:n.actionName),b=(null==n?void 0:n.isMultiCallback)||!1,j=!1!==(null==n?void 0:n.timeout)&&((null==n?void 0:n.timeout)||!0),E=(null==n?void 0:n.haveCallback)||!1,N=(null==n?void 0:n.skipJump)||!1,S=(null==n?void 0:n.requireAccessToken)||!1,k=m(I),r&&i&&(M[h]={options:r,callback:i,isMultiCallback:b},j&&E&&(M[h].timeout=setTimeout((function(){var t={serialId:h,result:{error_code:e.TIME_OUT,error_message:a.TIME_OUT,data:{timeout:j},action:o}};return l(t),null}),!0===j?8e3:1e3*j))),k?[4,f()]:[3,2];case 1:if(!1===(null==(U=g.sent())||null===(O=U.authSetting)||void 0===O?void 0:O["scope.userInfo"]))return y={serialId:h,result:{error_code:e.UNAUTHORIZED,error_message:a.NEED_USER_AUTH,data:{isMobile:null==T||null===(w=T.platform)||void 0===w?void 0:w.isMobile},action:o}},l(y),[2];g.label=2;case 2:return C=s(I),!(null==T||null===(p=T.platform)||void 0===p?void 0:p.isMobile)||!o||t.isUndefined(ZaloJavaScriptInterface)||T.platform.isIOS&&!c(o)||C&&!1===C.isSupported?(J={serialId:h,result:{error_code:e.CLIENT_NOT_SUPPORT,error_message:a.CLIENT_NOT_SUPPORT,data:{isMobile:null==T||null===(A=T.platform)||void 0===A?void 0:A.isMobile},action:o}},l(J),[2]):(P=u(r),N?[3,4]:[4,v.getJSAccessToken()]);case 3:return L=g.sent(),[3,5];case 4:L="",g.label=5;case 5:R=L,g.label=6;case 6:return g.trys.push([6,10,,11]),N||!S?[3,8]:[4,v.getAccessToken()];case 7:return D=g.sent(),[3,9];case 8:D="",g.label=9;case 9:return Z=D,[3,11];case 10:return F=g.sent(),H={serialId:h,result:{error_code:null==F?void 0:F.code,error_message:null==F?void 0:F.message,action:o}},l(H),[2];case 11:return q=T.platform.isIOS?window.onNativeMessage(h,I):'window.onNativeMessage("'.concat(h,'", "').concat(I,'")'),[2,ZaloJavaScriptInterface.jsCall(R,I,Z,P,q)]}}))})),function(o,e,a,t){return b.apply(this,arguments)});export{N as default};
import o from'./../../external/@swc/helpers/src/_async_to_generator.mjs.js';import{RESPONSE_CODE as e,MESSAGES as r}from"../../constants.js";import a from"../../utils/lodash.js";import{MPEEmitter as t,onActionMessage as n,fireActionMessage as l}from"../eventEmitter.js";import{parseJSON as i,getDynamicAPIByAction as s,checkIOSSupportAction as c,serialize as u,convertSDKActionToJumpAction as d,isRequireUserAuthentication as v}from"../../utils/common.js";import m from"../token.js";import{sendLogData as p}from"../utils.js";import f from"../apis/general/getSetting.js";import _ from"../../appEnv/getEnv.js";import{__generator as g}from'./../../external/tslib/tslib.es6.js';import{Events as h}from"../../types/enum.js";var I,b,T,M,j,w,E=(T=_(),M={},j=t.getInstance(),w=[],!1||(n((function(o){var e=o.serialId,r=i(o.result),t=s(null==r?void 0:r.action),n=a.isEmpty(null==r?void 0:r.error_code)?0:null==r?void 0:r.error_code,l=null==r?void 0:r.error_message,c=(null==r?void 0:r.data)||r;if(t&&0===n){var u=JSON.parse(null==r?void 0:r.data);n=a.isEmpty(null==u?void 0:u.error_code)?0:null==u?void 0:u.error_code,l=null==u?void 0:u.error_message,c=(null==u?void 0:u.data)||u}var d={error_code:n,error_message:l,data:c,action:(null==r?void 0:r.action)||o.actionName};if(e&&M[e]){var v=M[e],m=v.callback,p=v.timeout,f=v.isMultiCallback,_=v.options,g=v.downloadListener;!function(o,e){var r=e||{},t=r.success,n=r.fail;0===o.error_code?a.isFunction(t)&&t(o):a.isFunction(n)&&n(o)}(d,m),!f&&delete M[e],p&&clearTimeout(p);var I={action:null==d?void 0:d.action,error:null==d?void 0:d.error_code,message:null==d?void 0:d.error_message,data:{}};try{if("action.open.inapp"===d.action||"action.open.outapp"===d.action){var b=new URL(null==_?void 0:_.url),T="".concat(b.protocol,"//").concat(b.host).concat(b.pathname);I.data={url:T}}if("action.follow.oa"===d.action||"action.unfollow.oa"===d.action){var E=null==_?void 0:_.uid;I.data={uid:E}}if("action.open.chat"===d.action){var N=null==_?void 0:_.uId,S=null==_?void 0:_.type;I.data={uid:N,openChatType:S}}(null==_?void 0:_.onProgress)&&g&&j.off(h.DownloadProgress,g)}catch(o){}w.push(I)}})),j.on(h.AppPaused,(function(){if(w.length>0){var o=w;w=[],p(o)}})),I?clearInterval(I):I=setInterval((function(){if(w.length>0){var o=w;w=[],p(o)}}),5e3),!0),b=o((function(o,t,n,i){var p,_,I,b,w,E,N,S,k,y,O,P,U,C,A,J,L,R,D,Z,F,H,q,x,z,B;return g(this,(function(g){switch(g.label){case 0:return _=Math.floor(1e6*Math.random()),I="".concat(o,"_").concat(_),b=d(o),(null==i?void 0:i.actionName)&&i.actionName.length>0&&(b=null==i?void 0:i.actionName),w=(null==i?void 0:i.isMultiCallback)||!1,E=!1!==(null==i?void 0:i.timeout)&&((null==i?void 0:i.timeout)||!0),N=(null==i?void 0:i.haveCallback)||!1,S=(null==i?void 0:i.skipJump)||!1,k=(null==i?void 0:i.requireAccessToken)||!1,y=v(b),t&&n&&(M[I]={options:t,callback:n,isMultiCallback:w},E&&N&&(M[I].timeout=setTimeout((function(){var a={serialId:I,result:{error_code:e.TIME_OUT,error_message:r.TIME_OUT,data:{timeout:E},action:o}};return l(a),null}),!0===E?8e3:1e3*E))),y?[4,f()]:[3,2];case 1:if(!1===(null==(P=g.sent())||null===(O=P.authSetting)||void 0===O?void 0:O["scope.userInfo"]))return C={serialId:I,result:{error_code:e.UNAUTHORIZED,error_message:r.NEED_USER_AUTH,data:{isMobile:null==T||null===(U=T.platform)||void 0===U?void 0:U.isMobile},action:o}},l(C),[2];g.label=2;case 2:return A=s(b),!(null==T||null===(p=T.platform)||void 0===p?void 0:p.isMobile)||!o||a.isUndefined(ZaloJavaScriptInterface)||T.platform.isIOS&&!c(o)||A&&!1===A.isSupported?(L={serialId:I,result:{error_code:e.CLIENT_NOT_SUPPORT,error_message:r.CLIENT_NOT_SUPPORT,data:{isMobile:null==T||null===(J=T.platform)||void 0===J?void 0:J.isMobile},action:o}},l(L),[2]):(R=u(t),S?[3,4]:[4,m.getJSAccessToken()]);case 3:return Z=g.sent(),[3,5];case 4:Z="",g.label=5;case 5:D=Z,g.label=6;case 6:return g.trys.push([6,10,,11]),S||!k?[3,8]:[4,m.getAccessToken()];case 7:return H=g.sent(),[3,9];case 8:H="",g.label=9;case 9:return F=H,[3,11];case 10:return q=g.sent(),x={serialId:I,result:{error_code:null==q?void 0:q.code,error_message:null==q?void 0:q.message,action:o}},l(x),[2];case 11:try{t&&(null==t?void 0:t.onProgress)&&(z=function(o){!function(o,e){var r=o.progress;e&&e(r)}(o,null==t?void 0:t.onProgress)},M[I].downloadListener=z,j.on(h.DownloadProgress,z))}catch(o){}return B=T.platform.isIOS?window.onNativeMessage(I,b):'window.onNativeMessage("'.concat(I,'", "').concat(b,'")'),[2,ZaloJavaScriptInterface.jsCall(D,b,F,R,B)]}}))})),function(o,e,r,a){return b.apply(this,arguments)});export{E as default};

@@ -1,1 +0,1 @@

var E,e=1048576,_=1*e,a=window.zAppID,T=window.APP_ID,I="https://zalo.me/s",A="https://h5.zdn.vn/zapps",N="h5.zdn.vn",o="/zapps",O={ZOAUTH:"h5.zdn.vn_zoauth",ZACC_SESSION:"h5.zdn.vn_zacc_session",JS_TOKEN:"h5.zdn.vn_zlink3rd",ZOAUTH_VRF:"h5.zdn.vn_zoauth_vrf",DEVICE_ID:"h5.zdn.vn_deviceID",CONTEXT_ID:"h5.zdn.vn_contextID",CONTEXT_TYPE:"h5.zdn.vn_contextType",UTOKEN_ZPI:"h5.zdn.vn_utoken_zpi",GTOKEN_ZPI:"h5.zdn.vn_gtoken_zpi",ZPP_ZPI:"h5.zdn.vn_zpp_zpi",ZPT_ZPI:"h5.zdn.vn_zpt_zpi"},i={GET_USER_INFO:"https://graph.zalo.me/v2.0/me",GET_ACCESS_TOKEN:"https://h5.zalo.me/openapi/access_token",GET_ACCESS_TOKEN_V3:"https://oauth.zaloapp.com/v3/access_token",GET_LIST_USER_INFO:"https://graph.zalo.me/v2.0/me/friends/list",CREATE_ORDER:"https://payment-mini.zalo.me/api/order/create",GET_APP_INFO:"https://h5.zalo.me/apps/get-info",SEND_ACTION_LOG:"https://h5.zalo.me/log/async",CREATE_SHARE_LINK:"https://h5.zalo.me/openapi/create-sharelink",CHECK_INTERACT_OA:"https://h5.zalo.me/openapi/check-interact-oa",GET_AUTH_SETTING:"https://h5.zalo.me/apis/users/auth-settings"};!function(E){E.REQUEST="REQUEST",E.MODIFIED_REQUEST="MODIFIED_REQUEST",E.RESPONSE="RESPONSE",E.MODIFIED_RESPONSE="MODIFIED_RESPONSE",E.NOT_FOUND="NOT_FOUND"}(E||(E={}));var R={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,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},S={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.",INVALID_PARAM:"Invalid parameter",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",ANDROID_ONLY:"This API only works on android device",IOS_ONLY:"This API only works on iOS device",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"},s={SUCCESS:{code:R.SUCCESS,message:S.SUCCESS},UNKNOWN_ERROR:{code:R.UNKNOWN_ERROR,message:S.UNKNOWN_ERROR},UNAUTHORIZED:{code:R.UNAUTHORIZED,message:S.LOGIN_REQUIRED},FORBIDDEN:{code:R.FORBIDDEN,message:S.NOT_PERMISSION},CLIENT_NOT_SUPPORT:{code:R.CLIENT_NOT_SUPPORT,message:S.CLIENT_NOT_SUPPORT},DECODE_FAILED:{code:R.DECODE_FAILED,message:S.DECODE_FAILED},TIME_OUT:{code:R.TIME_OUT,message:S.TIME_OUT},USER_DENIED:{code:R.USER_DENIED,message:S.USER_DENIED},USER_CANCEL:{code:R.USER_CANCEL,message:S.USER_CANCEL},DUPLICATE_REQUEST:{code:R.DUPLICATE_REQUEST,message:S.DUPLICATE_REQUEST},DEVICE_NOT_SUPPORT:{code:R.DEVICE_NOT_SUPPORT,message:S.DEVICE_NOT_SUPPORT},SERVICE_NOT_READY:{code:R.SERVICE_NOT_READY,message:S.SERVICE_NOT_READY},UNREADABLE:{code:R.UNREADABLE,message:S.UNREADABLE},INVALID_MRZ:{code:R.INVALID_MRZ,message:S.INVALID_MRZ},PROCESSING:{code:R.PROCESSING,message:S.PROCESSING},CANCEL:{code:R.CANCEL,message:S.CANCEL},SCAN_TIMEOUT:{code:R.SCAN_TIMEOUT,message:S.SCAN_TIMEOUT},MPDS_ACTION_INVALID:{code:R.MPDS_ACTION_INVALID,message:S.MPDS_ACTION_INVALID},MPDS_SOURCE_INVALID:{code:R.MPDS_SOURCE_INVALID,message:S.MPDS_SOURCE_INVALID},MPDS_APPID_INVALID:{code:R.MPDS_APPID_INVALID,message:S.MPDS_APPID_INVALID}},D={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:{}},t={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:s.DUPLICATE_REQUEST}},iOS:{"-400":{mapTo:s.DUPLICATE_REQUEST}}}},UNFOLLOW_OA:{haveCallback:!0,requireAccessToken:!0,errorList:{android:{"-400":{mapTo:s.DUPLICATE_REQUEST}},iOS:{"-400":{mapTo:s.DUPLICATE_REQUEST}}}},OPEN_GAMEDETAIL:{},OPEN_SHARESHEET:{haveCallback:!0,requireAccessToken:!0,errorList:{android:{"-101":{mapTo:s.CLIENT_NOT_SUPPORT}},iOS:{"-101":{mapTo:s.CLIENT_NOT_SUPPORT}}}},REQUEST_PERMISSION_CAMERA:{errorList:{android:{"-2":{mapTo:s.USER_DENIED}},iOS:{"-2":{mapTo:s.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:s.USER_DENIED},"-400":{mapTo:s.DUPLICATE_REQUEST}},iOS:{"-1":{mapTo:s.USER_DENIED},"-400":{mapTo:s.DUPLICATE_REQUEST}}}},QUERY_LOCATION_HIDE:{haveCallback:!0},SHOW_TOAST:{haveCallback:!0,timeout:2},OPEN_APP:{},HIDE_KEYBOARD:{},OPEN_PHONE:{},OPEN_QR:{},OPEN_SMS:{},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:{},INTERACTIVE_VIBRATION:{},SAVE_IMAGE_GALLERY:{versionLive:{iOS:408},errorList:{android:{"-101":{mapTo:{code:R.SAVE_IMAGE_FAIL,message:S.SAVE_IMAGE_FAIL},needMoreDetail:!0},"-102":{mapTo:{code:R.SAVE_IMAGE_FAIL,message:S.SAVE_IMAGE_FAIL},needMoreDetail:!0}},iOS:{"-10":{mapTo:{code:R.SAVE_IMAGE_FAIL,message:S.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:s.MPDS_ACTION_INVALID},"-101":{mapTo:s.UNKNOWN_ERROR},"-105":{mapTo:s.MPDS_SOURCE_INVALID},"-106":{mapTo:s.MPDS_APPID_INVALID}},iOS:{"-10":{mapTo:s.MPDS_ACTION_INVALID},"-101":{mapTo:s.MPDS_APPID_INVALID},"-102":{mapTo:s.UNKNOWN_ERROR}}}},ZBROWSER_MPDS_SYNC:{versionLive:{iOS:402},errorList:{android:{"-100":{mapTo:s.MPDS_ACTION_INVALID},"-101":{mapTo:s.UNKNOWN_ERROR},"-105":{mapTo:s.MPDS_SOURCE_INVALID},"-106":{mapTo:s.MPDS_APPID_INVALID}},iOS:{"-10":{mapTo:s.MPDS_ACTION_INVALID},"-101":{mapTo:s.MPDS_APPID_INVALID},"-102":{mapTo:s.UNKNOWN_ERROR}}}},WEBVIEW_SET_RESULT:{versionLive:{iOS:416}},MP_GET_NUMBER:{versionLive:{iOS:416},errorList:{android:{"-1":{mapTo:s.USER_DENIED},"-101":{mapTo:s.USER_DENIED},"-400":{mapTo:s.DUPLICATE_REQUEST}},iOS:{"-1":{mapTo:s.USER_DENIED},"-10":{mapTo:s.USER_DENIED},"-400":{mapTo:s.DUPLICATE_REQUEST}}}},MP_OPEN_PROFILE_PICKER:{requireAccessToken:!0,versionLive:{iOS:432},errorList:{android:{"-101":{mapTo:s.USER_CANCEL}},iOS:{"-101":{mapTo:s.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:s.USER_CANCEL},999:{mapTo:{code:R.MEDIA_PICKER_FAIL,message:S.MEDIA_PICKER_FAIL},needMoreDetail:!0}},iOS:{"-10":{mapTo:{code:R.MEDIA_PICKER_FAIL,message:S.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:s.USER_DENIED},"-400":{mapTo:s.DUPLICATE_REQUEST}},iOS:{"-1":{mapTo:s.USER_DENIED},"-400":{mapTo:s.DUPLICATE_REQUEST}}}},MP_ADD_RATING:{skipJump:!1},MP_ADD_MYFAVORITES:{skipJump:!1},MP_INTERACT_OA:{skipJump:!1,errorList:{android:{"-400":{mapTo:s.DUPLICATE_REQUEST}},iOS:{"-400":{mapTo:s.DUPLICATE_REQUEST}}}},MP_USER_AUTHORIZE:{skipJump:!1,errorList:{android:{"-400":{mapTo:s.DUPLICATE_REQUEST}},iOS:{"-400":{mapTo:s.DUPLICATE_REQUEST}}}},MP_SELECT_PAYMENT_METHOD:{skipJump:!1},CHECK_NFC:{skipJump:!1,versionLive:{iOS:626},errorList:{all:{"-1":{mapTo:s.UNKNOWN_ERROR},"-600":{mapTo:s.DEVICE_NOT_SUPPORT},"-602":{mapTo:s.SERVICE_NOT_READY}}}},SCAN_NFC:{skipJump:!1,haveCallback:!0,timeout:65,errorList:{all:{"-1":{mapTo:s.UNKNOWN_ERROR},"-600":{mapTo:s.DEVICE_NOT_SUPPORT},"-601":{mapTo:s.SCAN_TIMEOUT},"-602":{mapTo:s.SERVICE_NOT_READY},"-603":{mapTo:s.UNREADABLE},"-604":{mapTo:s.INVALID_MRZ},"-605":{mapTo:s.PROCESSING},"-606":{mapTo:s.CANCEL}}}},MP_CONFIRM_REQUEST_PAYMENT:{skipJump:!1}},C={android:{"-4":s.DECODE_FAILED,"-5":s.CLIENT_NOT_SUPPORT,"-14":s.TIME_OUT},iOS:{"-9":s.DECODE_FAILED,"-5":s.CLIENT_NOT_SUPPORT,"-14":s.TIME_OUT}},P={android:12100615,iOS:460,wp:0,unknown:0},r={android:12100571,iOS:400,wp:0,unknown:0},n=5*e,p={CREATE_ORDER:"https://payment-mini.zalo.me/api/order/create",CREATE_IAP_ORDER:"https://payment-mini.zalo.me/api/order/iap-create",GET_TRANSACTION:"https://payment-mini.zalo.me/api/transaction",GET_ORDER_STATUS:"https://payment-mini.zalo.me/api/transaction/get-status",PURCHASE:"https://payment-mini.zalo.me/api/order/purchase"},L="https://payment-mini.zalo.me",U={UNKNOW:"UNKNOW",DEFERRED:"DEFERRED",IMMEDIATE_AND_CHARGE_FULL_PRICE:"IMMEDIATE_AND_CHARGE_FULL_PRICE"},m={SHOW_BACK:0,HIDE_BACK:3,SHOW_HOME:1,HIDE_HOME:0},c=5,d=6,l={LEFT:0,CENTER:1},M="#1843EF",h=l.LEFT,u={"-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"},v=["scope.userInfo","scope.userLocation","scope.userPhonenumber"];export{t as ACTION,m as ACTION_LEFT_BUTTON_TYPE,D as API,i as APIS,T as APP_ID,v as AUTHEN_SCOPE_VALUES,E as ApiCallStage,C as COMMON_NATIVE_ERROR_CODE,O as COOKIE_NAME,M as DEFAULT_HEADER_COLOR,h as DEFAULT_TEXT_ALIGN,d as HIDE_ACTION_BAR,u as IAP_ERROR,_ as MEDIA_PICKER_LIMIT,S as MESSAGES,A as MINI_APP_INTERNAL_LINK,I as MINI_APP_LINK,p as PAYMENT_APIS,L as PAYMENT_H5_URL,U as PRORATION_MODE,s as RESPONSE,R as RESPONSE_CODE,c as SHOW_ACTION_BAR,n as STORAGE_LIMIT,l as TEXT_ALIGN_TYPE,P as ZALO_SUPPORT_SHARE_MULTI_IMAGE_VERSION,r as ZALO_SUPPORT_STORAGE_VERSION,a as ZAPP_ID,N as mpDomain,o as mpPath};
var E,e=1048576,_=1*e,a=window.zAppID,I=window.APP_ID,A="https://zalo.me/s",T="https://h5.zdn.vn/zapps",o="h5.zdn.vn",i="/zapps",O={ZOAUTH:"h5.zdn.vn_zoauth",ZACC_SESSION:"h5.zdn.vn_zacc_session",JS_TOKEN:"h5.zdn.vn_zlink3rd",ZOAUTH_VRF:"h5.zdn.vn_zoauth_vrf",DEVICE_ID:"h5.zdn.vn_deviceID",CONTEXT_ID:"h5.zdn.vn_contextID",CONTEXT_TYPE:"h5.zdn.vn_contextType",UTOKEN_ZPI:"h5.zdn.vn_utoken_zpi",GTOKEN_ZPI:"h5.zdn.vn_gtoken_zpi",ZPP_ZPI:"h5.zdn.vn_zpp_zpi",ZPT_ZPI:"h5.zdn.vn_zpt_zpi"},N={GET_USER_INFO:"https://graph.zalo.me/v2.0/me",GET_ACCESS_TOKEN:"https://h5.zalo.me/openapi/access_token",GET_ACCESS_TOKEN_V3:"https://oauth.zaloapp.com/v3/access_token",GET_LIST_USER_INFO:"https://graph.zalo.me/v2.0/me/friends/list",CREATE_ORDER:"https://payment-mini.zalo.me/api/order/create",GET_APP_INFO:"https://h5.zalo.me/apps/get-info",SEND_ACTION_LOG:"https://h5.zalo.me/log/async",CREATE_SHARE_LINK:"https://h5.zalo.me/openapi/create-sharelink",CHECK_INTERACT_OA:"https://h5.zalo.me/openapi/check-interact-oa",GET_AUTH_SETTING:"https://h5.zalo.me/apis/users/auth-settings"};!function(E){E.REQUEST="REQUEST",E.MODIFIED_REQUEST="MODIFIED_REQUEST",E.RESPONSE="RESPONSE",E.MODIFIED_RESPONSE="MODIFIED_RESPONSE",E.NOT_FOUND="NOT_FOUND"}(E||(E={}));var S={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},R={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.",INVALID_PARAM:"Invalid parameter",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",ANDROID_ONLY:"This API only works on android device",IOS_ONLY:"This API only works on iOS device",LFS_REACH_STORAGE_LIMIT:"Your max 5MB of local storage data is reached",DEVICE_STORAGE_FULL:"Your device run out of storage",INVALID_FILE_PATH:"File cannot be found. Please check your param again.",FILE_DOWNLOADING:"Please wait... We're still download the file.",NO_INTERNET:"No Internet connection. Please check your network settings.",DOWNLOAD_FAIL:"Download failed. Please check your network or file path again.",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"},s={SUCCESS:{code:S.SUCCESS,message:R.SUCCESS},UNKNOWN_ERROR:{code:S.UNKNOWN_ERROR,message:R.UNKNOWN_ERROR},UNAUTHORIZED:{code:S.UNAUTHORIZED,message:R.LOGIN_REQUIRED},FORBIDDEN:{code:S.FORBIDDEN,message:R.NOT_PERMISSION},CLIENT_NOT_SUPPORT:{code:S.CLIENT_NOT_SUPPORT,message:R.CLIENT_NOT_SUPPORT},DECODE_FAILED:{code:S.DECODE_FAILED,message:R.DECODE_FAILED},TIME_OUT:{code:S.TIME_OUT,message:R.TIME_OUT},USER_DENIED:{code:S.USER_DENIED,message:R.USER_DENIED},USER_CANCEL:{code:S.USER_CANCEL,message:R.USER_CANCEL},DUPLICATE_REQUEST:{code:S.DUPLICATE_REQUEST,message:R.DUPLICATE_REQUEST},DEVICE_NOT_SUPPORT:{code:S.DEVICE_NOT_SUPPORT,message:R.DEVICE_NOT_SUPPORT},SERVICE_NOT_READY:{code:S.SERVICE_NOT_READY,message:R.SERVICE_NOT_READY},UNREADABLE:{code:S.UNREADABLE,message:R.UNREADABLE},INVALID_MRZ:{code:S.INVALID_MRZ,message:R.INVALID_MRZ},PROCESSING:{code:S.PROCESSING,message:R.PROCESSING},CANCEL:{code:S.CANCEL,message:R.CANCEL},SCAN_TIMEOUT:{code:S.SCAN_TIMEOUT,message:R.SCAN_TIMEOUT},MPDS_ACTION_INVALID:{code:S.MPDS_ACTION_INVALID,message:R.MPDS_ACTION_INVALID},MPDS_SOURCE_INVALID:{code:S.MPDS_SOURCE_INVALID,message:R.MPDS_SOURCE_INVALID},MPDS_APPID_INVALID:{code:S.MPDS_APPID_INVALID,message:R.MPDS_APPID_INVALID}},t={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:{}},D={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:s.DUPLICATE_REQUEST}},iOS:{"-400":{mapTo:s.DUPLICATE_REQUEST}}}},UNFOLLOW_OA:{haveCallback:!0,requireAccessToken:!0,errorList:{android:{"-400":{mapTo:s.DUPLICATE_REQUEST}},iOS:{"-400":{mapTo:s.DUPLICATE_REQUEST}}}},OPEN_GAMEDETAIL:{},OPEN_SHARESHEET:{haveCallback:!0,requireAccessToken:!0,errorList:{android:{"-101":{mapTo:s.CLIENT_NOT_SUPPORT}},iOS:{"-101":{mapTo:s.CLIENT_NOT_SUPPORT}}}},REQUEST_PERMISSION_CAMERA:{errorList:{android:{"-2":{mapTo:s.USER_DENIED}},iOS:{"-2":{mapTo:s.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:s.USER_DENIED},"-400":{mapTo:s.DUPLICATE_REQUEST}},iOS:{"-1":{mapTo:s.USER_DENIED},"-400":{mapTo:s.DUPLICATE_REQUEST}}}},QUERY_LOCATION_HIDE:{haveCallback:!0},SHOW_TOAST:{haveCallback:!0,timeout:2},OPEN_APP:{},HIDE_KEYBOARD:{},OPEN_PHONE:{},OPEN_QR:{},OPEN_SMS:{},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:S.SAVE_VIDEO_FAIL,message:R.SAVE_VIDEO_FAIL},needMoreDetail:!0},"-102":{mapTo:{code:S.SAVE_VIDEO_FAIL,message:R.SAVE_VIDEO_FAIL},needMoreDetail:!0}},iOS:{"-10":{mapTo:{code:S.SAVE_VIDEO_FAIL,message:R.SAVE_VIDEO_FAIL},needMoreDetail:!0}}}},INTERACTIVE_VIBRATION:{},SAVE_IMAGE_GALLERY:{versionLive:{iOS:408},errorList:{android:{"-101":{mapTo:{code:S.SAVE_IMAGE_FAIL,message:R.SAVE_IMAGE_FAIL},needMoreDetail:!0},"-102":{mapTo:{code:S.SAVE_IMAGE_FAIL,message:R.SAVE_IMAGE_FAIL},needMoreDetail:!0}},iOS:{"-10":{mapTo:{code:S.SAVE_IMAGE_FAIL,message:R.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:s.MPDS_ACTION_INVALID},"-101":{mapTo:s.UNKNOWN_ERROR},"-105":{mapTo:s.MPDS_SOURCE_INVALID},"-106":{mapTo:s.MPDS_APPID_INVALID}},iOS:{"-10":{mapTo:s.MPDS_ACTION_INVALID},"-101":{mapTo:s.MPDS_APPID_INVALID},"-102":{mapTo:s.UNKNOWN_ERROR}}}},ZBROWSER_MPDS_SYNC:{versionLive:{iOS:402},errorList:{android:{"-100":{mapTo:s.MPDS_ACTION_INVALID},"-101":{mapTo:s.UNKNOWN_ERROR},"-105":{mapTo:s.MPDS_SOURCE_INVALID},"-106":{mapTo:s.MPDS_APPID_INVALID}},iOS:{"-10":{mapTo:s.MPDS_ACTION_INVALID},"-101":{mapTo:s.MPDS_APPID_INVALID},"-102":{mapTo:s.UNKNOWN_ERROR}}}},WEBVIEW_SET_RESULT:{versionLive:{iOS:416}},MP_GET_NUMBER:{versionLive:{iOS:416},errorList:{android:{"-1":{mapTo:s.USER_DENIED},"-101":{mapTo:s.USER_DENIED},"-400":{mapTo:s.DUPLICATE_REQUEST}},iOS:{"-1":{mapTo:s.USER_DENIED},"-10":{mapTo:s.USER_DENIED},"-400":{mapTo:s.DUPLICATE_REQUEST}}}},MP_OPEN_PROFILE_PICKER:{requireAccessToken:!0,versionLive:{iOS:432},errorList:{android:{"-101":{mapTo:s.USER_CANCEL}},iOS:{"-101":{mapTo:s.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:s.USER_CANCEL},999:{mapTo:{code:S.MEDIA_PICKER_FAIL,message:R.MEDIA_PICKER_FAIL},needMoreDetail:!0}},iOS:{"-10":{mapTo:{code:S.MEDIA_PICKER_FAIL,message:R.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:s.USER_DENIED},"-400":{mapTo:s.DUPLICATE_REQUEST}},iOS:{"-1":{mapTo:s.USER_DENIED},"-400":{mapTo:s.DUPLICATE_REQUEST}}}},MP_ADD_RATING:{skipJump:!1},MP_ADD_MYFAVORITES:{skipJump:!1},MP_INTERACT_OA:{skipJump:!1,errorList:{android:{"-400":{mapTo:s.DUPLICATE_REQUEST}},iOS:{"-400":{mapTo:s.DUPLICATE_REQUEST}}}},MP_USER_AUTHORIZE:{skipJump:!1,errorList:{android:{"-400":{mapTo:s.DUPLICATE_REQUEST}},iOS:{"-400":{mapTo:s.DUPLICATE_REQUEST}}}},MP_SELECT_PAYMENT_METHOD:{skipJump:!1},CHECK_NFC:{skipJump:!1,versionLive:{iOS:626},errorList:{all:{"-1":{mapTo:s.UNKNOWN_ERROR},"-600":{mapTo:s.DEVICE_NOT_SUPPORT},"-602":{mapTo:s.SERVICE_NOT_READY}}}},SCAN_NFC:{skipJump:!1,haveCallback:!0,timeout:65,errorList:{all:{"-1":{mapTo:s.UNKNOWN_ERROR},"-600":{mapTo:s.DEVICE_NOT_SUPPORT},"-601":{mapTo:s.SCAN_TIMEOUT},"-602":{mapTo:s.SERVICE_NOT_READY},"-603":{mapTo:s.UNREADABLE},"-604":{mapTo:s.INVALID_MRZ},"-605":{mapTo:s.PROCESSING},"-606":{mapTo:s.CANCEL}}}},MP_CONFIRM_REQUEST_PAYMENT:{skipJump:!1},SAVE_FILE:{versionLive:{iOS:628},skipJump:!1,errorList:{android:{"-101":{mapTo:{code:S.SAVE_FILE_FAIL,message:R.SAVE_FILE_FAIL},needMoreDetail:!0},"-102":{mapTo:{code:S.SAVE_FILE_FAIL,message:R.SAVE_FILE_FAIL},needMoreDetail:!0}},iOS:{"-10":{mapTo:{code:S.SAVE_FILE_FAIL,message:R.SAVE_FILE_FAIL},needMoreDetail:!0}}}}},r={android:{"-4":s.DECODE_FAILED,"-5":s.CLIENT_NOT_SUPPORT,"-14":s.TIME_OUT},iOS:{"-9":s.DECODE_FAILED,"-5":s.CLIENT_NOT_SUPPORT,"-14":s.TIME_OUT}},n={android:12100615,iOS:460,wp:0,unknown:0},P={android:12100571,iOS:400,wp:0,unknown:0},C=5*e,L={CREATE_ORDER:"https://payment-mini.zalo.me/api/order/create",CREATE_IAP_ORDER:"https://payment-mini.zalo.me/api/order/iap-create",GET_TRANSACTION:"https://payment-mini.zalo.me/api/transaction",GET_ORDER_STATUS:"https://payment-mini.zalo.me/api/transaction/get-status",PURCHASE:"https://payment-mini.zalo.me/api/order/purchase"},p="https://payment-mini.zalo.me",U={UNKNOW:"UNKNOW",DEFERRED:"DEFERRED",IMMEDIATE_AND_CHARGE_FULL_PRICE:"IMMEDIATE_AND_CHARGE_FULL_PRICE"},m={SHOW_BACK:0,HIDE_BACK:3,SHOW_HOME:1,HIDE_HOME:0},c=5,d=6,l={LEFT:0,CENTER:1},M="#1843EF",h=l.LEFT,u={"-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"},V=["scope.userInfo","scope.userLocation","scope.userPhonenumber"];export{D as ACTION,m as ACTION_LEFT_BUTTON_TYPE,t as API,N as APIS,I as APP_ID,V as AUTHEN_SCOPE_VALUES,E as ApiCallStage,r as COMMON_NATIVE_ERROR_CODE,O as COOKIE_NAME,M as DEFAULT_HEADER_COLOR,h as DEFAULT_TEXT_ALIGN,d as HIDE_ACTION_BAR,u as IAP_ERROR,_ as MEDIA_PICKER_LIMIT,R as MESSAGES,T as MINI_APP_INTERNAL_LINK,A as MINI_APP_LINK,L as PAYMENT_APIS,p as PAYMENT_H5_URL,U as PRORATION_MODE,s as RESPONSE,S as RESPONSE_CODE,c as SHOW_ACTION_BAR,C as STORAGE_LIMIT,l as TEXT_ALIGN_TYPE,n as ZALO_SUPPORT_SHARE_MULTI_IMAGE_VERSION,P as ZALO_SUPPORT_STORAGE_VERSION,a as ZAPP_ID,o as mpDomain,i as mpPath};

@@ -1,1 +0,1 @@

import e from'./external/@swc/helpers/src/_object_without_properties.mjs.js';import*as o from"./index.js";import t from"./appEnv/getEnv.js";export{AndroidBottomNavigationBarType,ChatType,Events as EventName,Events,IAPPayType,IOSSafeAreaBottomType,JumpStatus,MediaPickerType,NetworkType,OrientationType,PlatformType,PostFeedType,ProfileType,ProrationMode,ScanNFCType,ShareSheetType,StatusBarType,TextAlignType,VibrateType}from"./types/enum.js";export{CameraEvents,FacingMode,PhotoFormat,PhotoQuality,StreamType}from"./types/media.js";export{login}from"./apis/login.js";export{getAccessToken}from"./apis/getAccessToken.js";export{getVersion}from"./apis/getVersion.js";export{getSystemInfo}from"./apis/getSystemInfo.js";export{setNavigationBarTitle}from"./apis/setNavigationBarTitle.js";export{setNavigationBarColor}from"./apis/setNavigationBarColor.js";export{setNavigationBarLeftButton}from"./apis/setNavigationBarLeftButton.js";export{setStorage}from"./apis/setStorage.js";export{getStorage}from"./apis/getStorage.js";export{getStorageInfo}from"./apis/getStorageInfo.js";export{removeStorage}from"./apis/removeStorage.js";export{clearStorage}from"./apis/clearStorage.js";export{getUserInfo}from"./apis/getUserInfo.js";export{getNetworkType}from"./apis/getNetworkType.js";export{onNetworkStatusChange}from"./apis/onNetworkStatusChange.js";export{startBeaconDiscovery}from"./apis/startBeaconDiscovery.js";export{stopBeaconDiscovery}from"./apis/stopBeaconDiscovery.js";export{getBeacons}from"./apis/getBeacons.js";export{closeApp}from"./apis/closeApp.js";export{scanQRCode}from"./apis/scanQRCode.js";export{openProfile}from"./apis/openProfile.js";export{openChat}from"./apis/openChat.js";export{openPostFeed}from"./apis/openPostFeed.js";export{followOA}from"./apis/followOA.js";export{unfollowOA}from"./apis/unfollowOA.js";export{openShareSheet}from"./apis/openShareSheet.js";export{requestCameraPermission}from"./apis/requestCameraPermission.js";export{createShortcut}from"./apis/createShortcut.js";export{openBioAuthentication}from"./apis/openBioAuthentication.js";export{checkStateBioAuthentication}from"./apis/checkStateBioAuthentication.js";export{showToast}from"./apis/showToast.js";export{hideKeyboard}from"./apis/hideKeyboard.js";export{openPhone}from"./apis/openPhone.js";export{openSMS}from"./apis/openSMS.js";export{viewOAQr}from"./apis/viewOAQr.js";export{keepScreen}from"./apis/keepScreen.js";export{onKeepScreen}from"./apis/onKeepScreen.js";export{offKeepScreen}from"./apis/offKeepScreen.js";export{saveImageToGallery}from"./apis/saveImageToGallery.js";export{openMiniApp}from"./apis/openMiniApp.js";export{vibrate}from"./apis/vibrate.js";export{openWebview}from"./apis/openWebview.js";export{getRouteParams}from"./apis/getRouteParams.js";export{getAppInfo}from"./apis/getAppInfo.js";export{sendDataToPreviousMiniApp}from"./apis/sendDataToPreviousMiniApp.js";export{getPhoneNumber}from"./apis/getPhoneNumber.js";export{openProfilePicker}from"./apis/openProfilePicker.js";export{connectWifi}from"./apis/connectWifi.js";export{openMediaPicker}from"./apis/openMediaPicker.js";export{getShareableLink}from"./apis/getShareableLink.js";export{closeLoading}from"./apis/closeLoading.js";export{requestUpdateZalo}from"./apis/requestUpdateZalo.js";export{onConfirmToExit}from"./apis/onConfirmToExit.js";export{offConfirmToExit}from"./apis/offConfirmToExit.js";export{getDeviceId}from"./apis/getDeviceId.js";export{getDeviceIdAsync}from"./apis/getDeviceIdAsync.js";export{getContext}from"./apis/getContext.js";export{getContextAsync}from"./apis/getContextAsync.js";export{getAuthCode}from"./apis/getAuthCode.js";export{getZPIToken}from"./apis/getZPIToken.js";export{setAccessToken}from"./apis/setAccessToken.js";export{openOutApp}from"./apis/openOutApp.js";export{chooseImage}from"./apis/chooseImage.js";export{getLocation}from"./apis/getLocation.js";export{onCallbackData}from"./apis/onCallbackData.js";export{createOrder}from"./apis/payment/createOrder.js";export{purchase}from"./apis/payment/purchase.js";export{selectPaymentMethod}from"./apis/payment/selectPaymentMethod.js";export{checkTransaction}from"./apis/payment/checkTransaction.js";export{createOrderIAP}from"./apis/payment/createOrderIAP.js";export{events}from"./apis/events.js";export{setAndroidBottomNavigationBar}from"./apis/setAndroidBottomNavigationBar.js";export{setIOSBottomSafeArea}from"./apis/setIOSBottomSafeArea.js";export{setStatusBar}from"./apis/setStatusBar.js";export{configAppView}from"./apis/configAppView.js";export{minimizeApp}from"./apis/minimizeApp.js";export{openPermissionSetting}from"./apis/openPermissionSetting.js";export{favoriteApp}from"./apis/favoriteApp.js";export{openGroupList}from"./apis/openGroupList.js";export{requestSendNotification}from"./apis/requestSendNotification.js";export{addRating}from"./apis/addRating.js";export{interactOA,interactOA as interactOa}from"./apis/interactOA.js";export{checkIsAllowedInteractWithOA as isAllowedInteractWithOA}from"./apis/checkIsAllowedInteractWithOA.js";export{getSetting}from"./apis/getSetting.js";export{authorize}from"./apis/authorize.js";export{checkZaloCameraPermission}from"./apis/checkZaloCameraPermission.js";export{getUserID}from"./apis/getUserID.js";export{getIDToken}from"./apis/getIDToken.js";export{createCameraContext}from"./apis/createCameraContext.js";export{setupAd}from"./apis/adtimaAd/setup.js";export{loadAd}from"./apis/adtimaAd/load.js";export{displayAd}from"./apis/adtimaAd/display.js";export{refreshAd}from"./apis/adtimaAd/refresh.js";export{showOAWidget}from"./apis/showOAWidget.js";export{showFunctionButtonWidget}from"./apis/showFunctionButtonWidget.js";export{scanNFC}from"./apis/scanNFC.js";export{checkNFC}from"./apis/checkNFC.js";export{nativeStorage}from"./apis/native-storage/index.js";export{CheckoutSDK,Payment}from"./apis/payment/index.js";export{ZMACameraImp}from"./media/zmaCamera.js";var r,s,a=e(o,["createOrder","checkTransaction","createOrderIAP","selectPaymentMethod","purchase"]);(null==(s=null===(r=t())||void 0===r?void 0:r.appEnv)?void 0:s.isMp)&&(window.ZaloMiniAppSDK={},Object.assign(window.ZaloMiniAppSDK,o));export{a as default};
import e from'./external/@swc/helpers/src/_object_without_properties.mjs.js';import*as o from"./index.js";import t from"./appEnv/getEnv.js";export{AndroidBottomNavigationBarType,ChatType,Events as EventName,Events,IAPPayType,IOSSafeAreaBottomType,JumpStatus,MediaPickerType,NetworkType,OrientationType,PlatformType,PostFeedType,ProfileType,ProrationMode,ScanNFCType,ShareSheetType,StatusBarType,TextAlignType,VibrateType}from"./types/enum.js";export{CameraEvents,FacingMode,PhotoFormat,PhotoQuality,StreamType}from"./types/media.js";export{login}from"./apis/login.js";export{getAccessToken}from"./apis/getAccessToken.js";export{getVersion}from"./apis/getVersion.js";export{getSystemInfo}from"./apis/getSystemInfo.js";export{setNavigationBarTitle}from"./apis/setNavigationBarTitle.js";export{setNavigationBarColor}from"./apis/setNavigationBarColor.js";export{setNavigationBarLeftButton}from"./apis/setNavigationBarLeftButton.js";export{setStorage}from"./apis/setStorage.js";export{getStorage}from"./apis/getStorage.js";export{getStorageInfo}from"./apis/getStorageInfo.js";export{removeStorage}from"./apis/removeStorage.js";export{clearStorage}from"./apis/clearStorage.js";export{getUserInfo}from"./apis/getUserInfo.js";export{getNetworkType}from"./apis/getNetworkType.js";export{onNetworkStatusChange}from"./apis/onNetworkStatusChange.js";export{startBeaconDiscovery}from"./apis/startBeaconDiscovery.js";export{stopBeaconDiscovery}from"./apis/stopBeaconDiscovery.js";export{getBeacons}from"./apis/getBeacons.js";export{closeApp}from"./apis/closeApp.js";export{scanQRCode}from"./apis/scanQRCode.js";export{openProfile}from"./apis/openProfile.js";export{openChat}from"./apis/openChat.js";export{openPostFeed}from"./apis/openPostFeed.js";export{followOA}from"./apis/followOA.js";export{unfollowOA}from"./apis/unfollowOA.js";export{openShareSheet}from"./apis/openShareSheet.js";export{requestCameraPermission}from"./apis/requestCameraPermission.js";export{createShortcut}from"./apis/createShortcut.js";export{openBioAuthentication}from"./apis/openBioAuthentication.js";export{checkStateBioAuthentication}from"./apis/checkStateBioAuthentication.js";export{showToast}from"./apis/showToast.js";export{hideKeyboard}from"./apis/hideKeyboard.js";export{openPhone}from"./apis/openPhone.js";export{openSMS}from"./apis/openSMS.js";export{viewOAQr}from"./apis/viewOAQr.js";export{keepScreen}from"./apis/keepScreen.js";export{onKeepScreen}from"./apis/onKeepScreen.js";export{offKeepScreen}from"./apis/offKeepScreen.js";export{saveImageToGallery}from"./apis/saveImageToGallery.js";export{saveVideoToGallery}from"./apis/saveVideoToGallery.js";export{openMiniApp}from"./apis/openMiniApp.js";export{vibrate}from"./apis/vibrate.js";export{openWebview}from"./apis/openWebview.js";export{getRouteParams}from"./apis/getRouteParams.js";export{getAppInfo}from"./apis/getAppInfo.js";export{sendDataToPreviousMiniApp}from"./apis/sendDataToPreviousMiniApp.js";export{getPhoneNumber}from"./apis/getPhoneNumber.js";export{openProfilePicker}from"./apis/openProfilePicker.js";export{connectWifi}from"./apis/connectWifi.js";export{openMediaPicker}from"./apis/openMediaPicker.js";export{getShareableLink}from"./apis/getShareableLink.js";export{closeLoading}from"./apis/closeLoading.js";export{requestUpdateZalo}from"./apis/requestUpdateZalo.js";export{onConfirmToExit}from"./apis/onConfirmToExit.js";export{offConfirmToExit}from"./apis/offConfirmToExit.js";export{getDeviceId}from"./apis/getDeviceId.js";export{getDeviceIdAsync}from"./apis/getDeviceIdAsync.js";export{getContext}from"./apis/getContext.js";export{getContextAsync}from"./apis/getContextAsync.js";export{getAuthCode}from"./apis/getAuthCode.js";export{getZPIToken}from"./apis/getZPIToken.js";export{setAccessToken}from"./apis/setAccessToken.js";export{openOutApp}from"./apis/openOutApp.js";export{chooseImage}from"./apis/chooseImage.js";export{getLocation}from"./apis/getLocation.js";export{onCallbackData}from"./apis/onCallbackData.js";export{createOrder}from"./apis/payment/createOrder.js";export{purchase}from"./apis/payment/purchase.js";export{selectPaymentMethod}from"./apis/payment/selectPaymentMethod.js";export{checkTransaction}from"./apis/payment/checkTransaction.js";export{createOrderIAP}from"./apis/payment/createOrderIAP.js";export{events}from"./apis/events.js";export{setAndroidBottomNavigationBar}from"./apis/setAndroidBottomNavigationBar.js";export{setIOSBottomSafeArea}from"./apis/setIOSBottomSafeArea.js";export{setStatusBar}from"./apis/setStatusBar.js";export{configAppView}from"./apis/configAppView.js";export{minimizeApp}from"./apis/minimizeApp.js";export{openPermissionSetting}from"./apis/openPermissionSetting.js";export{favoriteApp}from"./apis/favoriteApp.js";export{openGroupList}from"./apis/openGroupList.js";export{requestSendNotification}from"./apis/requestSendNotification.js";export{addRating}from"./apis/addRating.js";export{interactOA,interactOA as interactOa}from"./apis/interactOA.js";export{checkIsAllowedInteractWithOA as isAllowedInteractWithOA}from"./apis/checkIsAllowedInteractWithOA.js";export{getSetting}from"./apis/getSetting.js";export{authorize}from"./apis/authorize.js";export{checkZaloCameraPermission}from"./apis/checkZaloCameraPermission.js";export{getUserID}from"./apis/getUserID.js";export{getIDToken}from"./apis/getIDToken.js";export{createCameraContext}from"./apis/createCameraContext.js";export{setupAd}from"./apis/adtimaAd/setup.js";export{loadAd}from"./apis/adtimaAd/load.js";export{displayAd}from"./apis/adtimaAd/display.js";export{refreshAd}from"./apis/adtimaAd/refresh.js";export{showOAWidget}from"./apis/showOAWidget.js";export{showFunctionButtonWidget}from"./apis/showFunctionButtonWidget.js";export{scanNFC}from"./apis/scanNFC.js";export{checkNFC}from"./apis/checkNFC.js";export{nativeStorage}from"./apis/native-storage/index.js";export{CheckoutSDK,Payment}from"./apis/payment/index.js";export{downloadFile}from"./apis/downloadFile.js";export{ZMACameraImp}from"./media/zmaCamera.js";var r,s,a=e(o,["createOrder","checkTransaction","createOrderIAP","selectPaymentMethod","purchase"]);(null==(s=null===(r=t())||void 0===r?void 0:r.appEnv)?void 0:s.isMp)&&(window.ZaloMiniAppSDK={},Object.assign(window.ZaloMiniAppSDK,o));export{a as default};

@@ -1,1 +0,1 @@

export{CameraEvents,FacingMode,PhotoFormat,PhotoQuality,StreamType}from"./types/media.js";import{getVersion as e}from"./apis/getVersion.js";export{getVersion}from"./apis/getVersion.js";import{login as o}from"./apis/login.js";export{login}from"./apis/login.js";export{Events as EventName,Events}from"./types/enum.js";export{getAccessToken}from"./apis/getAccessToken.js";export{getSystemInfo}from"./apis/getSystemInfo.js";export{setNavigationBarTitle}from"./apis/setNavigationBarTitle.js";export{setNavigationBarColor}from"./apis/setNavigationBarColor.js";export{setNavigationBarLeftButton}from"./apis/setNavigationBarLeftButton.js";export{setStorage}from"./apis/setStorage.js";export{getStorage}from"./apis/getStorage.js";export{getStorageInfo}from"./apis/getStorageInfo.js";export{removeStorage}from"./apis/removeStorage.js";export{clearStorage}from"./apis/clearStorage.js";export{getUserInfo}from"./apis/getUserInfo.js";export{getNetworkType}from"./apis/getNetworkType.js";export{onNetworkStatusChange}from"./apis/onNetworkStatusChange.js";export{startBeaconDiscovery}from"./apis/startBeaconDiscovery.js";export{stopBeaconDiscovery}from"./apis/stopBeaconDiscovery.js";export{getBeacons}from"./apis/getBeacons.js";export{closeApp}from"./apis/closeApp.js";export{scanQRCode}from"./apis/scanQRCode.js";export{openProfile}from"./apis/openProfile.js";export{openChat}from"./apis/openChat.js";export{openPostFeed}from"./apis/openPostFeed.js";export{followOA}from"./apis/followOA.js";export{unfollowOA}from"./apis/unfollowOA.js";export{openShareSheet}from"./apis/openShareSheet.js";export{requestCameraPermission}from"./apis/requestCameraPermission.js";export{createShortcut}from"./apis/createShortcut.js";export{openBioAuthentication}from"./apis/openBioAuthentication.js";export{checkStateBioAuthentication}from"./apis/checkStateBioAuthentication.js";export{showToast}from"./apis/showToast.js";export{hideKeyboard}from"./apis/hideKeyboard.js";export{openPhone}from"./apis/openPhone.js";export{openSMS}from"./apis/openSMS.js";export{viewOAQr}from"./apis/viewOAQr.js";export{keepScreen}from"./apis/keepScreen.js";export{onKeepScreen}from"./apis/onKeepScreen.js";export{offKeepScreen}from"./apis/offKeepScreen.js";export{saveImageToGallery}from"./apis/saveImageToGallery.js";export{openMiniApp}from"./apis/openMiniApp.js";export{vibrate}from"./apis/vibrate.js";export{openWebview}from"./apis/openWebview.js";export{getRouteParams}from"./apis/getRouteParams.js";export{getAppInfo}from"./apis/getAppInfo.js";export{sendDataToPreviousMiniApp}from"./apis/sendDataToPreviousMiniApp.js";export{getPhoneNumber}from"./apis/getPhoneNumber.js";export{openProfilePicker}from"./apis/openProfilePicker.js";export{connectWifi}from"./apis/connectWifi.js";export{openMediaPicker}from"./apis/openMediaPicker.js";export{getShareableLink}from"./apis/getShareableLink.js";export{closeLoading}from"./apis/closeLoading.js";export{requestUpdateZalo}from"./apis/requestUpdateZalo.js";export{onConfirmToExit}from"./apis/onConfirmToExit.js";export{offConfirmToExit}from"./apis/offConfirmToExit.js";export{getDeviceId}from"./apis/getDeviceId.js";export{getDeviceIdAsync}from"./apis/getDeviceIdAsync.js";export{getContext}from"./apis/getContext.js";export{getContextAsync}from"./apis/getContextAsync.js";export{getAuthCode}from"./apis/getAuthCode.js";export{getZPIToken}from"./apis/getZPIToken.js";export{setAccessToken}from"./apis/setAccessToken.js";export{openOutApp}from"./apis/openOutApp.js";export{chooseImage}from"./apis/chooseImage.js";export{getLocation}from"./apis/getLocation.js";export{onCallbackData}from"./apis/onCallbackData.js";export{createOrder}from"./apis/payment/createOrder.js";export{purchase}from"./apis/payment/purchase.js";export{selectPaymentMethod}from"./apis/payment/selectPaymentMethod.js";export{checkTransaction}from"./apis/payment/checkTransaction.js";export{createOrderIAP}from"./apis/payment/createOrderIAP.js";export{events}from"./apis/events.js";export{setAndroidBottomNavigationBar}from"./apis/setAndroidBottomNavigationBar.js";export{setIOSBottomSafeArea}from"./apis/setIOSBottomSafeArea.js";export{setStatusBar}from"./apis/setStatusBar.js";export{configAppView}from"./apis/configAppView.js";export{minimizeApp}from"./apis/minimizeApp.js";export{openPermissionSetting}from"./apis/openPermissionSetting.js";export{favoriteApp}from"./apis/favoriteApp.js";export{openGroupList}from"./apis/openGroupList.js";export{requestSendNotification}from"./apis/requestSendNotification.js";export{addRating}from"./apis/addRating.js";export{interactOA,interactOA as interactOa}from"./apis/interactOA.js";export{checkIsAllowedInteractWithOA as isAllowedInteractWithOA}from"./apis/checkIsAllowedInteractWithOA.js";export{getSetting}from"./apis/getSetting.js";export{authorize}from"./apis/authorize.js";export{checkZaloCameraPermission}from"./apis/checkZaloCameraPermission.js";export{getUserID}from"./apis/getUserID.js";export{getIDToken}from"./apis/getIDToken.js";export{createCameraContext}from"./apis/createCameraContext.js";export{setupAd}from"./apis/adtimaAd/setup.js";export{loadAd}from"./apis/adtimaAd/load.js";export{displayAd}from"./apis/adtimaAd/display.js";export{refreshAd}from"./apis/adtimaAd/refresh.js";export{showOAWidget}from"./apis/showOAWidget.js";export{showFunctionButtonWidget}from"./apis/showFunctionButtonWidget.js";export{scanNFC}from"./apis/scanNFC.js";export{checkNFC}from"./apis/checkNFC.js";export{nativeStorage}from"./apis/native-storage/index.js";export{CheckoutSDK,Payment}from"./apis/payment/index.js";export{ZMACameraImp}from"./media/zmaCamera.js";window.ZaloMiniAppSDK={getVersion:e},o();
export{CameraEvents,FacingMode,PhotoFormat,PhotoQuality,StreamType}from"./types/media.js";import{getVersion as e}from"./apis/getVersion.js";export{getVersion}from"./apis/getVersion.js";import{login as o}from"./apis/login.js";export{login}from"./apis/login.js";export{Events as EventName,Events}from"./types/enum.js";export{getAccessToken}from"./apis/getAccessToken.js";export{getSystemInfo}from"./apis/getSystemInfo.js";export{setNavigationBarTitle}from"./apis/setNavigationBarTitle.js";export{setNavigationBarColor}from"./apis/setNavigationBarColor.js";export{setNavigationBarLeftButton}from"./apis/setNavigationBarLeftButton.js";export{setStorage}from"./apis/setStorage.js";export{getStorage}from"./apis/getStorage.js";export{getStorageInfo}from"./apis/getStorageInfo.js";export{removeStorage}from"./apis/removeStorage.js";export{clearStorage}from"./apis/clearStorage.js";export{getUserInfo}from"./apis/getUserInfo.js";export{getNetworkType}from"./apis/getNetworkType.js";export{onNetworkStatusChange}from"./apis/onNetworkStatusChange.js";export{startBeaconDiscovery}from"./apis/startBeaconDiscovery.js";export{stopBeaconDiscovery}from"./apis/stopBeaconDiscovery.js";export{getBeacons}from"./apis/getBeacons.js";export{closeApp}from"./apis/closeApp.js";export{scanQRCode}from"./apis/scanQRCode.js";export{openProfile}from"./apis/openProfile.js";export{openChat}from"./apis/openChat.js";export{openPostFeed}from"./apis/openPostFeed.js";export{followOA}from"./apis/followOA.js";export{unfollowOA}from"./apis/unfollowOA.js";export{openShareSheet}from"./apis/openShareSheet.js";export{requestCameraPermission}from"./apis/requestCameraPermission.js";export{createShortcut}from"./apis/createShortcut.js";export{openBioAuthentication}from"./apis/openBioAuthentication.js";export{checkStateBioAuthentication}from"./apis/checkStateBioAuthentication.js";export{showToast}from"./apis/showToast.js";export{hideKeyboard}from"./apis/hideKeyboard.js";export{openPhone}from"./apis/openPhone.js";export{openSMS}from"./apis/openSMS.js";export{viewOAQr}from"./apis/viewOAQr.js";export{keepScreen}from"./apis/keepScreen.js";export{onKeepScreen}from"./apis/onKeepScreen.js";export{offKeepScreen}from"./apis/offKeepScreen.js";export{saveImageToGallery}from"./apis/saveImageToGallery.js";export{saveVideoToGallery}from"./apis/saveVideoToGallery.js";export{openMiniApp}from"./apis/openMiniApp.js";export{vibrate}from"./apis/vibrate.js";export{openWebview}from"./apis/openWebview.js";export{getRouteParams}from"./apis/getRouteParams.js";export{getAppInfo}from"./apis/getAppInfo.js";export{sendDataToPreviousMiniApp}from"./apis/sendDataToPreviousMiniApp.js";export{getPhoneNumber}from"./apis/getPhoneNumber.js";export{openProfilePicker}from"./apis/openProfilePicker.js";export{connectWifi}from"./apis/connectWifi.js";export{openMediaPicker}from"./apis/openMediaPicker.js";export{getShareableLink}from"./apis/getShareableLink.js";export{closeLoading}from"./apis/closeLoading.js";export{requestUpdateZalo}from"./apis/requestUpdateZalo.js";export{onConfirmToExit}from"./apis/onConfirmToExit.js";export{offConfirmToExit}from"./apis/offConfirmToExit.js";export{getDeviceId}from"./apis/getDeviceId.js";export{getDeviceIdAsync}from"./apis/getDeviceIdAsync.js";export{getContext}from"./apis/getContext.js";export{getContextAsync}from"./apis/getContextAsync.js";export{getAuthCode}from"./apis/getAuthCode.js";export{getZPIToken}from"./apis/getZPIToken.js";export{setAccessToken}from"./apis/setAccessToken.js";export{openOutApp}from"./apis/openOutApp.js";export{chooseImage}from"./apis/chooseImage.js";export{getLocation}from"./apis/getLocation.js";export{onCallbackData}from"./apis/onCallbackData.js";export{createOrder}from"./apis/payment/createOrder.js";export{purchase}from"./apis/payment/purchase.js";export{selectPaymentMethod}from"./apis/payment/selectPaymentMethod.js";export{checkTransaction}from"./apis/payment/checkTransaction.js";export{createOrderIAP}from"./apis/payment/createOrderIAP.js";export{events}from"./apis/events.js";export{setAndroidBottomNavigationBar}from"./apis/setAndroidBottomNavigationBar.js";export{setIOSBottomSafeArea}from"./apis/setIOSBottomSafeArea.js";export{setStatusBar}from"./apis/setStatusBar.js";export{configAppView}from"./apis/configAppView.js";export{minimizeApp}from"./apis/minimizeApp.js";export{openPermissionSetting}from"./apis/openPermissionSetting.js";export{favoriteApp}from"./apis/favoriteApp.js";export{openGroupList}from"./apis/openGroupList.js";export{requestSendNotification}from"./apis/requestSendNotification.js";export{addRating}from"./apis/addRating.js";export{interactOA,interactOA as interactOa}from"./apis/interactOA.js";export{checkIsAllowedInteractWithOA as isAllowedInteractWithOA}from"./apis/checkIsAllowedInteractWithOA.js";export{getSetting}from"./apis/getSetting.js";export{authorize}from"./apis/authorize.js";export{checkZaloCameraPermission}from"./apis/checkZaloCameraPermission.js";export{getUserID}from"./apis/getUserID.js";export{getIDToken}from"./apis/getIDToken.js";export{createCameraContext}from"./apis/createCameraContext.js";export{setupAd}from"./apis/adtimaAd/setup.js";export{loadAd}from"./apis/adtimaAd/load.js";export{displayAd}from"./apis/adtimaAd/display.js";export{refreshAd}from"./apis/adtimaAd/refresh.js";export{showOAWidget}from"./apis/showOAWidget.js";export{showFunctionButtonWidget}from"./apis/showFunctionButtonWidget.js";export{scanNFC}from"./apis/scanNFC.js";export{checkNFC}from"./apis/checkNFC.js";export{nativeStorage}from"./apis/native-storage/index.js";export{CheckoutSDK,Payment}from"./apis/payment/index.js";export{downloadFile}from"./apis/downloadFile.js";export{ZMACameraImp}from"./media/zmaCamera.js";window.ZaloMiniAppSDK={getVersion:e},o();

@@ -1,1 +0,1 @@

var r="2.43.4";export{r as version};
var r="2.44.0-19";export{r as version};

@@ -1,1 +0,1 @@

var e,n,o,a,i,t,c,l,u,p,r,m,d,s,f,h,_,E;!function(e){e.none="none",e.wifi="wifi",e.cellular="cellular",e.unknown="unknown"}(e||(e={})),function(e){e.wp="wp",e.android="android",e.iOS="iOS",e.unknown="unknown"}(n||(n={})),function(e){e.AppPaused="h5.event.paused",e.AppResumed="h5.event.resumed",e.NetworkChanged="h5.event.connection.changed",e.OnDataCallback="h5.event.webview.result",e.WebviewClosed="h5.event.webview.close",e.OpenApp="h5.event.open.mp",e.AppClose="h5.event.action.close",e.PaymentCallback="payment.callback",e.PaymentResult="action.payment.result",e.PaymentClose="action.payment.close"}(o||(o={})),function(e){e.DOING="doing",e.DONE="done"}(a||(a={})),function(e){e[e.user=1]="user",e[e.oa=0]="oa",e[e.aliasOA=2]="aliasOA"}(i||(i={})),function(e){e[e.user=1]="user",e[e.oa=0]="oa"}(t||(t={})),function(e){e[e.image=1]="image",e[e.multi_image=2]="multi_image",e[e.link=4]="link",e[e.profile=5]="profile"}(c||(c={})),function(e){e[e.cccd=1]="cccd"}(l||(l={})),function(e){e[e.image=1]="image",e[e.gif=11]="gif",e[e.video=12]="video",e[e.link=4]="link",e[e.oa=5]="oa",e[e.zmp=20]="zmp",e[e.multi_image=21]="multi_image",e[e.zmp_deep_link=4]="zmp_deep_link",e[e.text=22]="text"}(u||(u={})),function(e){e[e.auto=1]="auto",e[e.portrait=2]="portrait",e[e.landscape=3]="landscape"}(p||(p={})),function(e){e[e.oneShot=0]="oneShot"}(r||(r={})),function(e){e[e.zcamera=3]="zcamera",e[e.zcamera_photo=1]="zcamera_photo",e[e.zcamera_video=2]="zcamera_video",e[e.zcamera_scan=7]="zcamera_scan",e[e.photo=4]="photo",e[e.video=5]="video",e[e.file=6]="file"}(m||(m={})),function(e){e.SUBSCRIPTION="SUBSCRIPTION",e.ONETIME="ONETIME"}(d||(d={})),function(e){e[e.UNKNOW=0]="UNKNOW",e[e.DEFERRED=1]="DEFERRED",e[e.IMMEDIATE_AND_CHARGE_FULL_PRICE=2]="IMMEDIATE_AND_CHARGE_FULL_PRICE"}(s||(s={})),function(e){e[e.normal=1]="normal",e[e.hidden=0]="hidden",e[e.transparent=2]="transparent"}(f||(f={})),function(e){e[e.show=1]="show",e[e.hide=0]="hide"}(h||(h={})),function(e){e[e.show=1]="show",e[e.hide=0]="hide"}(_||(_={})),function(e){e[e.left=0]="left",e[e.center=1]="center"}(E||(E={}));export{h as AndroidBottomNavigationBarType,t as ChatType,o as Events,d as IAPPayType,_ as IOSSafeAreaBottomType,a as JumpStatus,m as MediaPickerType,e as NetworkType,p as OrientationType,n as PlatformType,c as PostFeedType,i as ProfileType,s as ProrationMode,l as ScanNFCType,u as ShareSheetType,f as StatusBarType,E as TextAlignType,r as VibrateType};
var e,n,o,a,i,t,c,l,u,r,p,d,m,s,f,h,w,_;!function(e){e.none="none",e.wifi="wifi",e.cellular="cellular",e.unknown="unknown"}(e||(e={})),function(e){e.wp="wp",e.android="android",e.iOS="iOS",e.unknown="unknown"}(n||(n={})),function(e){e.AppPaused="h5.event.paused",e.AppResumed="h5.event.resumed",e.NetworkChanged="h5.event.connection.changed",e.OnDataCallback="h5.event.webview.result",e.WebviewClosed="h5.event.webview.close",e.OpenApp="h5.event.open.mp",e.AppClose="h5.event.action.close",e.PaymentCallback="payment.callback",e.PaymentResult="action.payment.result",e.PaymentClose="action.payment.close",e.DownloadProgress="h5.event.webview.download.progress"}(o||(o={})),function(e){e.DOING="doing",e.DONE="done"}(a||(a={})),function(e){e[e.user=1]="user",e[e.oa=0]="oa",e[e.aliasOA=2]="aliasOA"}(i||(i={})),function(e){e[e.user=1]="user",e[e.oa=0]="oa"}(t||(t={})),function(e){e[e.image=1]="image",e[e.multi_image=2]="multi_image",e[e.link=4]="link",e[e.profile=5]="profile"}(c||(c={})),function(e){e[e.cccd=1]="cccd"}(l||(l={})),function(e){e[e.image=1]="image",e[e.gif=11]="gif",e[e.video=12]="video",e[e.link=4]="link",e[e.oa=5]="oa",e[e.zmp=20]="zmp",e[e.multi_image=21]="multi_image",e[e.zmp_deep_link=4]="zmp_deep_link",e[e.text=22]="text"}(u||(u={})),function(e){e[e.auto=1]="auto",e[e.portrait=2]="portrait",e[e.landscape=3]="landscape"}(r||(r={})),function(e){e[e.oneShot=0]="oneShot"}(p||(p={})),function(e){e[e.zcamera=3]="zcamera",e[e.zcamera_photo=1]="zcamera_photo",e[e.zcamera_video=2]="zcamera_video",e[e.zcamera_scan=7]="zcamera_scan",e[e.photo=4]="photo",e[e.video=5]="video",e[e.file=6]="file"}(d||(d={})),function(e){e.SUBSCRIPTION="SUBSCRIPTION",e.ONETIME="ONETIME"}(m||(m={})),function(e){e[e.UNKNOW=0]="UNKNOW",e[e.DEFERRED=1]="DEFERRED",e[e.IMMEDIATE_AND_CHARGE_FULL_PRICE=2]="IMMEDIATE_AND_CHARGE_FULL_PRICE"}(s||(s={})),function(e){e[e.normal=1]="normal",e[e.hidden=0]="hidden",e[e.transparent=2]="transparent"}(f||(f={})),function(e){e[e.show=1]="show",e[e.hide=0]="hide"}(h||(h={})),function(e){e[e.show=1]="show",e[e.hide=0]="hide"}(w||(w={})),function(e){e[e.left=0]="left",e[e.center=1]="center"}(_||(_={}));export{h as AndroidBottomNavigationBarType,t as ChatType,o as Events,m as IAPPayType,w as IOSSafeAreaBottomType,a as JumpStatus,d as MediaPickerType,e as NetworkType,r as OrientationType,n as PlatformType,c as PostFeedType,i as ProfileType,s as ProrationMode,l as ScanNFCType,u as ShareSheetType,f as StatusBarType,_ as TextAlignType,p as VibrateType};

@@ -1,1 +0,1 @@

import r from'./../external/@swc/helpers/src/_async_to_generator.mjs.js';import n from'./../external/@swc/helpers/src/_type_of.mjs.js';import{ACTION as t}from"../constants.js";import e from"./debug.js";import o from"./lodash.js";import{StatusBarType as i}from"../types/enum.js";import u from"../common/token.js";import a from"../appEnv/getEnv.js";import{__generator as c}from'./../external/tslib/tslib.es6.js';var s=e("zmp:utils:common"),p=function(r){if(o.isObject(JSON)&&JSON.stringify)return JSON.stringify(r);if(void 0===r)return"undefined";if(null===r)return"null";try{if("string"==typeof r||null!==r.constructor.toString().match(/string/i))return'"'+r.replace(/"/g,'\\"')+'"'}catch(r){console.log(r)}var n;if(null!==Object.prototype.toString.call(r).match(/array/i)){n=[];for(var t=r.length,e=0;e<t;e++)n.push(p(r[e]));return"["+n.join(",")+"]"}if("object"==typeof r){for(var i in n=[],r)n.push('"'+i+'":'+p(r[i]));return"{"+n.join(",")+"}"}return r.toString()},l=function(r){var n,e,o=t[r],i=(null===(n=a())||void 0===n?void 0:n.zaloVersion)||0,u="versionLive"in o&&(null==o||null===(e=o.versionLive)||void 0===e?void 0:e.iOS)||0;return!!(Array.isArray(window.ignoreCheckSupport)&&window.ignoreCheckSupport.length>0&&window.ignoreCheckSupport.includes(r))||Number(i)>=u},f=function(r){try{if(r){s(r);var t=r.replace(/\\/g,"").replace(/&#39;/g,"'");try{t=decodeURIComponent(atob(r))}catch(r){}return s("formattedValue",t,JSON.parse(t),n(JSON.parse(t))),JSON.parse(t)}return null}catch(n){return s("parse json error:",n),r}},m=function(r){if(o.isObject(JSON)&&JSON.parse&&o.isString(r)){var n=r.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\x00/g,"");return JSON.parse(n,(function(r,n){return n}))}return o.isObject(r)?r:new Function("return "+r)()},d=function(r){for(var n=document.getElementsByTagName("meta"),t=0;t<n.length;t++)if(n[t].getAttribute("name")===r||n[t].getAttribute("property")===r)return n[t].getAttribute("content");return""},g=function(r){return btoa(encodeURIComponent(JSON.stringify(r)))},h=function(r,n){var t,e=0;for(t in r){var o=t.split("_")[0];r.hasOwnProperty(t)&&(n&&o!==n||(e+=2*(r[t].length+t.length)))}return e};function v(r){return r.map((function(r,n){var t=r.path.length>0?r.path.map((function(r,n){return n>0?"[".concat(r,"]"):r})).join(""):"arg";return"Error ".concat(n+1,": Code: ").concat(r.code," ~ Path: ").concat(t," ~ Message: ").concat(r.message)})).join(" | ")}var y,j=function(r){return r===i.hidden?"hidden":r===i.transparent?"transparent":"normal"},S=function(r){return"hidden"===r?i.hidden:"transparent"===r?i.transparent:i.normal},O=function(r){if(void 0!==r){var n=u.miniProgramConfig;return((null==n?void 0:n.dynamicApis)||[]).find((function(n){return n.action===r&&!1===n.clientHandle}))}},b=function(r){if(void 0===r)return!1;var n=u.miniProgramConfig;return((null==n?void 0:n.requiredAuthenList)||[]).indexOf(r)>=0},w=(y=r((function(){return c(this,(function(n){return[2,new Promise(function(){var n=r((function(r,n){var t;return c(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,u.jumpAndGetToken()];case 1:return n.sent(),t=u.miniProgramConfig,r(!0===(null==t?void 0:t.canUseAccessTokenByDefault)),[3,3];case 2:return n.sent(),r(!1),[3,3];case 3:return[2]}}))}));return function(r,t){return n.apply(this,arguments)}}())]}))})),function(){return y.apply(this,arguments)}),N=function(r){return r.replace("action.","").replace(/\./g,"_").toUpperCase()},C=function(r){return"action.".concat(r.replace(/\_/g,".").toLowerCase())};export{h as calcLocalStorageSize,w as canUseAccessTokenByDefault,l as checkIOSSupportAction,N as convertJumpActionToSDKAction,C as convertSDKActionToJumpAction,S as convertStatusBarTypeToNumber,v as generateErrorMessage,O as getDynamicAPIByAction,d as getMetaValue,j as getStatusbarType,b as isRequireUserAuthentication,m as parseJSON,p as serialize,f as stringToData,g as stringifyData};
import n from'./../external/@swc/helpers/src/_async_to_generator.mjs.js';import r from'./../external/@swc/helpers/src/_type_of.mjs.js';import{ACTION as t}from"../constants.js";import e from"./debug.js";import o from"./lodash.js";import{StatusBarType as i}from"../types/enum.js";import u from"../common/token.js";import a from"../appEnv/getEnv.js";import{__generator as c}from'./../external/tslib/tslib.es6.js';var s=e("zmp:utils:common"),p=function(n){if(o.isObject(JSON)&&JSON.stringify)return JSON.stringify(n);if(void 0===n)return"undefined";if(null===n)return"null";try{if("string"==typeof n||null!==n.constructor.toString().match(/string/i))return'"'+n.replace(/"/g,'\\"')+'"'}catch(n){console.log(n)}var r;if(null!==Object.prototype.toString.call(n).match(/array/i)){r=[];for(var t=n.length,e=0;e<t;e++)r.push(p(n[e]));return"["+r.join(",")+"]"}if("object"==typeof n){for(var i in r=[],n)r.push('"'+i+'":'+p(n[i]));return"{"+r.join(",")+"}"}return n.toString()},l=function(n){var r,e,o=t[n],i=(null===(r=a())||void 0===r?void 0:r.zaloVersion)||0,u="versionLive"in o&&(null==o||null===(e=o.versionLive)||void 0===e?void 0:e.iOS)||0;return!!(Array.isArray(window.ignoreCheckSupport)&&window.ignoreCheckSupport.length>0&&window.ignoreCheckSupport.includes(n))||Number(i)>=u},f=function(n){try{if(n){s(n);var t=n.replace(/\\/g,"").replace(/&#39;/g,"'");try{t=decodeURIComponent(atob(n))}catch(n){}var e=JSON.parse(t);return s("formattedValue",t,e,void 0===e?"undefined":r(e)),e}return null}catch(r){return s("parse json error:",r),n}},m=function(n){if(o.isObject(JSON)&&JSON.parse&&o.isString(n)){var r=n.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\x00/g,"");return JSON.parse(r,(function(n,r){return r}))}return o.isObject(n)?n:new Function("return "+n)()},d=function(n){for(var r=document.getElementsByTagName("meta"),t=0;t<r.length;t++)if(r[t].getAttribute("name")===n||r[t].getAttribute("property")===n)return r[t].getAttribute("content");return""},g=function(n){return btoa(encodeURIComponent(JSON.stringify(n)))},h=function(n,r){var t,e=0;for(t in n){var o=t.split("_")[0];n.hasOwnProperty(t)&&(r&&o!==r||(e+=2*(n[t].length+t.length)))}return e};function v(n){return n.map((function(n,r){var t=n.path.length>0?n.path.map((function(n,r){return r>0?"[".concat(n,"]"):n})).join(""):"arg";return"Error ".concat(r+1,": Code: ").concat(n.code," ~ Path: ").concat(t," ~ Message: ").concat(n.message)})).join(" | ")}var y,j=function(n){return n===i.hidden?"hidden":n===i.transparent?"transparent":"normal"},S=function(n){return"hidden"===n?i.hidden:"transparent"===n?i.transparent:i.normal},b=function(n){if(void 0!==n){var r=u.miniProgramConfig;return((null==r?void 0:r.dynamicApis)||[]).find((function(r){return r.action===n&&!1===r.clientHandle}))}},O=function(n){if(void 0===n)return!1;var r=u.miniProgramConfig;return((null==r?void 0:r.requiredAuthenList)||[]).indexOf(n)>=0},w=(y=n((function(){return c(this,(function(r){return[2,new Promise(function(){var r=n((function(n,r){var t;return c(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,u.jumpAndGetToken()];case 1:return r.sent(),t=u.miniProgramConfig,n(!0===(null==t?void 0:t.canUseAccessTokenByDefault)),[3,3];case 2:return r.sent(),n(!1),[3,3];case 3:return[2]}}))}));return function(n,t){return r.apply(this,arguments)}}())]}))})),function(){return y.apply(this,arguments)}),C=function(n){return n.replace("action.","").replace(/\./g,"_").toUpperCase()},_=function(n){return"action.".concat(n.replace(/\_/g,".").toLowerCase())};export{h as calcLocalStorageSize,w as canUseAccessTokenByDefault,l as checkIOSSupportAction,C as convertJumpActionToSDKAction,_ as convertSDKActionToJumpAction,S as convertStatusBarTypeToNumber,v as generateErrorMessage,b as getDynamicAPIByAction,d as getMetaValue,j as getStatusbarType,O as isRequireUserAuthentication,m as parseJSON,p as serialize,f as stringToData,g as stringifyData};
{
"name": "zmp-sdk",
"version": "2.43.4",
"version": "2.44.0-19",
"description": "Zalo Mini App SDK",

@@ -5,0 +5,0 @@ "license": "MIT",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc