Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zmp-sdk

Package Overview
Dependencies
Maintainers
0
Versions
347
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.40.0 to 2.41.0-beta.1

apis/apis/scanNFC.js

2

apis/apis/createCameraContext.js

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

import o,{object as e}from'./../external/zod/lib/index.mjs.js';import{functionHandler as n}from"../utils/decorator.js";import{ZMACameraImp as i}from"../media/zmaCamera.js";var t=e({play:o.function(),pause:o.function()}).refine((function(o){return"play"in o&&"pause"in o}),{message:"Invalid HTMLVideoElement"}),a=[e({videoElement:t,mediaConstraints:o.object({width:o.number().min(100).optional(),height:o.number().min(100).optional(),facingMode:o.string().optional(),audio:o.boolean().optional(),video:o.boolean().optional(),deviceId:o.string().optional(),mirrored:o.boolean().optional()}).nullish()}).optional()];function r(o){return n("createCameraContext",a,[o],(function(o){return console.log("createCameraContext",o),new i(o.videoElement,o.mediaConstraints)}))}export{r as createCameraContext};
import o,{object as n}from'./../external/zod/lib/index.mjs.js';import{functionHandler as e}from"../utils/decorator.js";import{ZMACameraImp as i}from"../media/zmaCamera.js";var t=n({play:o.function(),pause:o.function()}).refine((function(o){return"play"in o&&"pause"in o}),{message:"Invalid HTMLVideoElement"}),a=[n({videoElement:t,mediaConstraints:o.object({width:o.number().min(100).optional(),height:o.number().min(100).optional(),facingMode:o.string().optional(),audio:o.boolean().optional(),video:o.boolean().optional(),deviceId:o.string().optional(),mirrored:o.boolean().optional()}).nullish()}).optional()];function r(o){return e("createCameraContext",a,[o],(function(o){return new i(o.videoElement,o.mediaConstraints)}))}export{r as createCameraContext};

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

import e from'./../../external/@swc/helpers/src/_object_spread.mjs.js';import r from"../../utils/lodash.js";import{logger as o}from"../logger.js";import{AppError as s}from"../../utils/errorHandler.js";import{ACTION as n,ApiCallStage as i,RESPONSE_CODE as t,RESPONSE as a,COMMON_NATIVE_ERROR_CODE as m}from"../../constants.js";import l from"./zaloNative.js";import u from"../token.js";import{convertJumpActionToSDKAction as d}from"../../utils/common.js";import c from"../../appEnv/getEnv.js";import{JumpStatus as f}from"../../types/enum.js";var p,v=(p=function(e){var r,o,i,l=null===(r=c())||void 0===r?void 0:r.platformName,p=d(e.action),v=n[p],g=(null==v?void 0:v.skipJump)||!1,_=(null==v?void 0:v.errorList)||{};if("JUMP_LOGIN"===p)return new s(t.UNKNOWN_ERROR,"Can not get auth code: ".concat(e.error_message));if(u.jumpStatus!==f.DONE&&!g)return new s(a.UNAUTHORIZED.code,a.UNAUTHORIZED.message);if("permission required!"===String(e.error_message).toLowerCase()||"no permission!"===String(e.error_message).toLowerCase())return new s(a.FORBIDDEN.code,a.FORBIDDEN.message);if(l&&(null===(o=m[l])||void 0===o?void 0:o[e.error_code]))return new s(m[l][e.error_code].code,m[l][e.error_code].message);var j=null==_||null===(i=_[l])||void 0===i?void 0:i[String(e.error_code)];if(j){var N,E,O,w=null===(N=j.mapTo)||void 0===N?void 0:N.message;return(null==j?void 0:j.needMoreDetail)&&(w="".concat(null==j||null===(O=j.mapTo)||void 0===O?void 0:O.message,": ").concat(e.error_message)),new s(null===(E=j.mapTo)||void 0===E?void 0:E.code,w)}return new s(e.error_code,e.error_message)},function(s,t,a,m){var u=function(e,s){function n(n){return function(t){var a=r.isEmpty(s)?void 0:s[n];if(a)return o({stage:i.RESPONSE,type:"log",state:n,name:e,response:t}),a("fail"===n?p(t):null==t?void 0:t.data)}}return r.isUndefined(e)&&(e=""),Object.assign({},{success:n("success"),fail:n("fail")})}(s,a),d=n[s],c=(null==m?void 0:m.delay)||0;setTimeout((function(){l(s,t,u,e({},m,d))}),c)});export{v as default};
import e from'./../../external/@swc/helpers/src/_object_spread.mjs.js';import o from"../../utils/lodash.js";import{logger as r}from"../logger.js";import{AppError as n}from"../../utils/errorHandler.js";import{ACTION as s,ApiCallStage as i,RESPONSE_CODE as t,RESPONSE as a,COMMON_NATIVE_ERROR_CODE as l}from"../../constants.js";import m from"./zaloNative.js";import u from"../token.js";import{convertJumpActionToSDKAction as d}from"../../utils/common.js";import c from"../../appEnv/getEnv.js";import{JumpStatus as v}from"../../types/enum.js";var f,p=(f=function(e){var o,r,i,m,f,p=null===(o=c())||void 0===o?void 0:o.platformName,g=d(e.action),_=s[g],j=(null==_?void 0:_.skipJump)||!1,N=(null==_?void 0:_.errorList)||{};if("JUMP_LOGIN"===g)return new n(t.UNKNOWN_ERROR,"Can not get auth code: ".concat(e.error_message));if(u.jumpStatus!==v.DONE&&!j)return new n(a.UNAUTHORIZED.code,a.UNAUTHORIZED.message);if("permission required!"===String(e.error_message).toLowerCase()||"no permission!"===String(e.error_message).toLowerCase())return new n(a.FORBIDDEN.code,a.FORBIDDEN.message);if(p&&(null===(r=l[p])||void 0===r?void 0:r[e.error_code]))return new n(l[p][e.error_code].code,l[p][e.error_code].message);var E=null!==(f=null==N||null===(i=N[p])||void 0===i?void 0:i[String(e.error_code)])&&void 0!==f?f:null==N||null===(m=N.all)||void 0===m?void 0:m[e.error_code];if(E){var O,w,D,R=null===(O=E.mapTo)||void 0===O?void 0:O.message;return(null==E?void 0:E.needMoreDetail)&&(R="".concat(null==E||null===(D=E.mapTo)||void 0===D?void 0:D.message,": ").concat(e.error_message)),new n(null===(w=E.mapTo)||void 0===w?void 0:w.code,R)}return new n(e.error_code,e.error_message)},function(n,t,a,l){var u=function(e,n){function s(s){return function(t){var a=o.isEmpty(n)?void 0:n[s];if(a)return r({stage:i.RESPONSE,type:"log",state:s,name:e,response:t}),a("fail"===s?f(t):null==t?void 0:t.data)}}return o.isUndefined(e)&&(e=""),Object.assign({},{success:s("success"),fail:s("fail")})}(n,a),d=s[n],c=(null==l?void 0:l.delay)||0;setTimeout((function(){m(n,t,u,e({},l,d))}),c)});export{p as default};

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

var E,e=1048576,_=1*e,T=window.zAppID,a=window.APP_ID,i="https://zalo.me/s",o="https://h5.zdn.vn/zapps",O="h5.zdn.vn",A="/zapps",I={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 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},t={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"},S={SUCCESS:{code:R.SUCCESS,message:t.SUCCESS},UNKNOWN_ERROR:{code:R.UNKNOWN_ERROR,message:t.UNKNOWN_ERROR},UNAUTHORIZED:{code:R.UNAUTHORIZED,message:t.LOGIN_REQUIRED},FORBIDDEN:{code:R.FORBIDDEN,message:t.NOT_PERMISSION},CLIENT_NOT_SUPPORT:{code:R.CLIENT_NOT_SUPPORT,message:t.CLIENT_NOT_SUPPORT},DECODE_FAILED:{code:R.DECODE_FAILED,message:t.DECODE_FAILED},TIME_OUT:{code:R.TIME_OUT,message:t.TIME_OUT},USER_DENIED:{code:R.USER_DENIED,message:t.USER_DENIED},USER_CANCEL:{code:R.USER_CANCEL,message:t.USER_CANCEL},DUPLICATE_REQUEST:{code:R.DUPLICATE_REQUEST,message:t.DUPLICATE_REQUEST}},s={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:{}},r={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:t.SAVE_IMAGE_FAIL},needMoreDetail:!0},"-102":{mapTo:{code:R.SAVE_IMAGE_FAIL,message:t.SAVE_IMAGE_FAIL},needMoreDetail:!0}},iOS:{"-10":{mapTo:{code:R.SAVE_IMAGE_FAIL,message:t.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}},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:t.MEDIA_PICKER_FAIL},needMoreDetail:!0}},iOS:{"-10":{mapTo:{code:R.MEDIA_PICKER_FAIL,message:t.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},MP_CONFIRM_REQUEST_PAYMENT:{skipJump:!1}},n={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}},C={android:12100615,iOS:460,wp:0,unknown:0},P={android:12100571,iOS:400,wp:0,unknown:0},p=5*e,D={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"},U="https://payment-mini.zalo.me",L={UNKNOW:"UNKNOW",DEFERRED:"DEFERRED",IMMEDIATE_AND_CHARGE_FULL_PRICE:"IMMEDIATE_AND_CHARGE_FULL_PRICE"},c={SHOW_BACK:0,HIDE_BACK:3,SHOW_HOME:1,HIDE_HOME:0},m=5,l=6,d={LEFT:0,CENTER:1},h="#1843EF",M=d.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{r as ACTION,c as ACTION_LEFT_BUTTON_TYPE,s as API,N as APIS,a as APP_ID,v as AUTHEN_SCOPE_VALUES,E as ApiCallStage,n as COMMON_NATIVE_ERROR_CODE,I as COOKIE_NAME,h as DEFAULT_HEADER_COLOR,M as DEFAULT_TEXT_ALIGN,l as HIDE_ACTION_BAR,u as IAP_ERROR,_ as MEDIA_PICKER_LIMIT,t as MESSAGES,o as MINI_APP_INTERNAL_LINK,i as MINI_APP_LINK,D as PAYMENT_APIS,U as PAYMENT_H5_URL,L as PRORATION_MODE,S as RESPONSE,R as RESPONSE_CODE,m as SHOW_ACTION_BAR,p as STORAGE_LIMIT,d as TEXT_ALIGN_TYPE,C as ZALO_SUPPORT_SHARE_MULTI_IMAGE_VERSION,P as ZALO_SUPPORT_STORAGE_VERSION,T as ZAPP_ID,O as mpDomain,A as mpPath};
var E,e=1048576,_=1*e,a=window.zAppID,T=window.APP_ID,A="https://zalo.me/s",I="https://h5.zdn.vn/zapps",i="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"},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 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},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."},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}},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:{}},C={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}},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},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}},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},D=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"},U="https://payment-mini.zalo.me",L={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,l=6,d={LEFT:0,CENTER:1},h="#1843EF",M=d.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{C as ACTION,m as ACTION_LEFT_BUTTON_TYPE,t as API,N as APIS,T as APP_ID,v as AUTHEN_SCOPE_VALUES,E as ApiCallStage,r as COMMON_NATIVE_ERROR_CODE,o as COOKIE_NAME,h as DEFAULT_HEADER_COLOR,M as DEFAULT_TEXT_ALIGN,l as HIDE_ACTION_BAR,u as IAP_ERROR,_ as MEDIA_PICKER_LIMIT,S as MESSAGES,I as MINI_APP_INTERNAL_LINK,A as MINI_APP_LINK,p as PAYMENT_APIS,U as PAYMENT_H5_URL,L as PRORATION_MODE,s as RESPONSE,R as RESPONSE_CODE,c as SHOW_ACTION_BAR,D as STORAGE_LIMIT,d as TEXT_ALIGN_TYPE,n as ZALO_SUPPORT_SHARE_MULTI_IMAGE_VERSION,P as ZALO_SUPPORT_STORAGE_VERSION,a as ZAPP_ID,i as mpDomain,O 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";import{createOrder as r}from"./apis/createOrder.js";export{createOrder}from"./apis/createOrder.js";import{checkTransaction as s}from"./apis/checkTransaction.js";export{checkTransaction}from"./apis/checkTransaction.js";import{createOrderIAP as a}from"./apis/createOrderIAP.js";export{createOrderIAP}from"./apis/createOrderIAP.js";import{selectPaymentMethod as p}from"./apis/selectPaymentMethod.js";export{selectPaymentMethod}from"./apis/selectPaymentMethod.js";import{purchase as i}from"./apis/purchase.js";export{purchase}from"./apis/purchase.js";export{AndroidBottomNavigationBarType,ChatType,Events as EventName,Events,IAPPayType,IOSSafeAreaBottomType,JumpStatus,MediaPickerType,NetworkType,OrientationType,PlatformType,PostFeedType,ProfileType,ProrationMode,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{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{ZMACameraImp}from"./media/zmaCamera.js";var n,m,f=r,c=s,x=a,j=p,d=i,g=e(o,["createOrder","checkTransaction","createOrderIAP","selectPaymentMethod","purchase"]),h={createOrder:f,checkTransaction:c,createOrderIAP:x,selectPaymentMethod:j},A={selectPaymentMethod:j,purchase:d};(null==(m=null===(n=t())||void 0===n?void 0:n.appEnv)?void 0:m.isMp)&&(window.ZaloMiniAppSDK={},Object.assign(window.ZaloMiniAppSDK,o));export{A as CheckoutSDK,h as Payment,g 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";import{createOrder as r}from"./apis/createOrder.js";export{createOrder}from"./apis/createOrder.js";import{checkTransaction as s}from"./apis/checkTransaction.js";export{checkTransaction}from"./apis/checkTransaction.js";import{createOrderIAP as a}from"./apis/createOrderIAP.js";export{createOrderIAP}from"./apis/createOrderIAP.js";import{selectPaymentMethod as p}from"./apis/selectPaymentMethod.js";export{selectPaymentMethod}from"./apis/selectPaymentMethod.js";import{purchase as i}from"./apis/purchase.js";export{purchase}from"./apis/purchase.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{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{ZMACameraImp}from"./media/zmaCamera.js";var n,m,f=r,c=s,x=a,j=p,d=i,g=e(o,["createOrder","checkTransaction","createOrderIAP","selectPaymentMethod","purchase"]),h={createOrder:f,checkTransaction:c,createOrderIAP:x,selectPaymentMethod:j},A={selectPaymentMethod:j,purchase:d};(null==(m=null===(n=t())||void 0===n?void 0:n.appEnv)?void 0:m.isMp)&&(window.ZaloMiniAppSDK={},Object.assign(window.ZaloMiniAppSDK,o));export{A as CheckoutSDK,h as Payment,g 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/createOrder.js";export{purchase}from"./apis/purchase.js";export{selectPaymentMethod}from"./apis/selectPaymentMethod.js";export{checkTransaction}from"./apis/checkTransaction.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{createOrderIAP}from"./apis/createOrderIAP.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{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{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/createOrder.js";export{purchase}from"./apis/purchase.js";export{selectPaymentMethod}from"./apis/selectPaymentMethod.js";export{checkTransaction}from"./apis/checkTransaction.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{createOrderIAP}from"./apis/createOrderIAP.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{ZMACameraImp}from"./media/zmaCamera.js";window.ZaloMiniAppSDK={getVersion:e},o();

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

var r="2.40.0";export{r as version};
var a="2.41.0-beta.1";export{a as version};

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

var e,n,o,a,i,t,c,l,u,p,r,d,m,s,f,h,_;!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.link=4]="link",e[e.profile=5]="profile"}(c||(c={})),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"}(l||(l={})),function(e){e[e.auto=1]="auto",e[e.portrait=2]="portrait",e[e.landscape=3]="landscape"}(u||(u={})),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"}(r||(r={})),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"}(m||(m={})),function(e){e[e.normal=1]="normal",e[e.hidden=0]="hidden",e[e.transparent=2]="transparent"}(s||(s={})),function(e){e[e.show=1]="show",e[e.hide=0]="hide"}(f||(f={})),function(e){e[e.show=1]="show",e[e.hide=0]="hide"}(h||(h={})),function(e){e[e.left=0]="left",e[e.center=1]="center"}(_||(_={}));export{f as AndroidBottomNavigationBarType,t as ChatType,o as Events,d as IAPPayType,h as IOSSafeAreaBottomType,a as JumpStatus,r as MediaPickerType,e as NetworkType,u as OrientationType,n as PlatformType,c as PostFeedType,i as ProfileType,m as ProrationMode,l as ShareSheetType,s as StatusBarType,_ as TextAlignType,p as VibrateType};
var e,n,o,a,i,t,c,l,u,p,r,d,m,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.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"}(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"}(_||(_={})),function(e){e[e.left=0]="left",e[e.center=1]="center"}(E||(E={}));export{h as AndroidBottomNavigationBarType,t as ChatType,o as Events,m as IAPPayType,_ as IOSSafeAreaBottomType,a as JumpStatus,d 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};
{
"name": "zmp-sdk",
"version": "2.40.0",
"version": "2.41.0-beta.1",
"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