hylid-bridge 4.1.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +495 -495
- package/lib/bridges.d.ts +260 -260
- package/lib/bridges.js +969 -260
- package/lib/clients/mp_web/hipay/addPhoneContact.d.ts +2 -0
- package/lib/clients/mp_web/hipay/addPhoneContact.js +3 -0
- package/lib/clients/mp_web/hipay/alert.d.ts +2 -0
- package/lib/clients/mp_web/hipay/alert.js +3 -0
- package/lib/clients/mp_web/hipay/chooseFileFromDisk.d.ts +2 -0
- package/lib/clients/mp_web/hipay/chooseFileFromDisk.js +3 -0
- package/lib/clients/mp_web/hipay/chooseImage.d.ts +2 -0
- package/lib/clients/mp_web/hipay/chooseImage.js +3 -0
- package/lib/clients/mp_web/hipay/choosePhoneContact.d.ts +2 -0
- package/lib/clients/mp_web/hipay/choosePhoneContact.js +3 -0
- package/lib/clients/mp_web/hipay/chooseVideo.d.ts +2 -0
- package/lib/clients/mp_web/hipay/chooseVideo.js +3 -0
- package/lib/clients/mp_web/hipay/clearStorage.d.ts +2 -0
- package/lib/clients/mp_web/hipay/clearStorage.js +3 -0
- package/lib/clients/mp_web/hipay/closeBluetoothAdapter.d.ts +2 -0
- package/lib/clients/mp_web/hipay/closeBluetoothAdapter.js +3 -0
- package/lib/clients/mp_web/hipay/closeSocket.d.ts +2 -0
- package/lib/clients/mp_web/hipay/closeSocket.js +3 -0
- package/lib/clients/mp_web/hipay/compressImage.d.ts +2 -0
- package/lib/clients/mp_web/hipay/compressImage.js +3 -0
- package/lib/clients/mp_web/hipay/confirm.d.ts +2 -0
- package/lib/clients/mp_web/hipay/confirm.js +3 -0
- package/lib/clients/mp_web/hipay/connectBLEDevice.d.ts +2 -0
- package/lib/clients/mp_web/hipay/connectBLEDevice.js +3 -0
- package/lib/clients/mp_web/hipay/connectSocket.d.ts +2 -0
- package/lib/clients/mp_web/hipay/connectSocket.js +3 -0
- package/lib/clients/mp_web/hipay/datePicker.d.ts +2 -0
- package/lib/clients/mp_web/hipay/datePicker.js +3 -0
- package/lib/clients/mp_web/hipay/disconnectBLEDevice.d.ts +2 -0
- package/lib/clients/mp_web/hipay/disconnectBLEDevice.js +3 -0
- package/lib/clients/mp_web/hipay/downloadFile.d.ts +2 -0
- package/lib/clients/mp_web/hipay/downloadFile.js +3 -0
- package/lib/clients/mp_web/hipay/exitApp.d.ts +2 -0
- package/lib/clients/mp_web/hipay/exitApp.js +3 -0
- package/lib/clients/mp_web/hipay/getAppId.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getAppId.js +3 -0
- package/lib/clients/mp_web/hipay/getAppToken.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getAppToken.js +3 -0
- package/lib/clients/mp_web/hipay/getAuthCode.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getAuthCode.js +3 -0
- package/lib/clients/mp_web/hipay/getBLEDeviceCharacteristics.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getBLEDeviceCharacteristics.js +3 -0
- package/lib/clients/mp_web/hipay/getBLEDeviceServices.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getBLEDeviceServices.js +3 -0
- package/lib/clients/mp_web/hipay/getBackgroundFetchData.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getBackgroundFetchData.js +3 -0
- package/lib/clients/mp_web/hipay/getBatteryInfo.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getBatteryInfo.js +3 -0
- package/lib/clients/mp_web/hipay/getBluetoothAdapterState.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getBluetoothAdapterState.js +3 -0
- package/lib/clients/mp_web/hipay/getBluetoothDevices.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getBluetoothDevices.js +3 -0
- package/lib/clients/mp_web/hipay/getClipboard.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getClipboard.js +3 -0
- package/lib/clients/mp_web/hipay/getConnectedBluetoothDevices.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getConnectedBluetoothDevices.js +3 -0
- package/lib/clients/mp_web/hipay/getCurrentPages.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getCurrentPages.js +3 -0
- package/lib/clients/mp_web/hipay/getEnterOptionsSync.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getEnterOptionsSync.js +3 -0
- package/lib/clients/mp_web/hipay/getFileInfo.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getFileInfo.js +3 -0
- package/lib/clients/mp_web/hipay/getImageInfo.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getImageInfo.js +3 -0
- package/lib/clients/mp_web/hipay/getLocation.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getLocation.js +3 -0
- package/lib/clients/mp_web/hipay/getNetworkType.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getNetworkType.js +3 -0
- package/lib/clients/mp_web/hipay/getOpenUserInfo.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getOpenUserInfo.js +3 -0
- package/lib/clients/mp_web/hipay/getRunScene.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getRunScene.js +3 -0
- package/lib/clients/mp_web/hipay/getSDKVersion.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getSDKVersion.js +3 -0
- package/lib/clients/mp_web/hipay/getSavedFileInfo.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getSavedFileInfo.js +3 -0
- package/lib/clients/mp_web/hipay/getSavedFileList.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getSavedFileList.js +3 -0
- package/lib/clients/mp_web/hipay/getScreenBrightness.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getScreenBrightness.js +3 -0
- package/lib/clients/mp_web/hipay/getServerTime.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getServerTime.js +3 -0
- package/lib/clients/mp_web/hipay/getSetting.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getSetting.js +3 -0
- package/lib/clients/mp_web/hipay/getSiteInfo.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getSiteInfo.js +3 -0
- package/lib/clients/mp_web/hipay/getStorage.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getStorage.js +3 -0
- package/lib/clients/mp_web/hipay/getSystemInfo.d.ts +2 -0
- package/lib/clients/mp_web/hipay/getSystemInfo.js +3 -0
- package/lib/clients/mp_web/hipay/hideBackHome.d.ts +2 -0
- package/lib/clients/mp_web/hipay/hideBackHome.js +3 -0
- package/lib/clients/mp_web/hipay/hideKeyboard.d.ts +2 -0
- package/lib/clients/mp_web/hipay/hideKeyboard.js +3 -0
- package/lib/clients/mp_web/hipay/hideLoading.d.ts +2 -0
- package/lib/clients/mp_web/hipay/hideLoading.js +3 -0
- package/lib/clients/mp_web/hipay/hideNavigationBarLoading.d.ts +2 -0
- package/lib/clients/mp_web/hipay/hideNavigationBarLoading.js +3 -0
- package/lib/clients/mp_web/hipay/hideTabBar.d.ts +2 -0
- package/lib/clients/mp_web/hipay/hideTabBar.js +3 -0
- package/lib/clients/mp_web/hipay/hideToast.d.ts +2 -0
- package/lib/clients/mp_web/hipay/hideToast.js +3 -0
- package/lib/clients/mp_web/hipay/index.d.ts +451 -0
- package/lib/clients/mp_web/hipay/index.js +261 -0
- package/lib/clients/mp_web/hipay/makePhoneCall.d.ts +2 -0
- package/lib/clients/mp_web/hipay/makePhoneCall.js +3 -0
- package/lib/clients/mp_web/hipay/multiLevelSelect.d.ts +2 -0
- package/lib/clients/mp_web/hipay/multiLevelSelect.js +3 -0
- package/lib/clients/mp_web/hipay/navigateBack.d.ts +2 -0
- package/lib/clients/mp_web/hipay/navigateBack.js +3 -0
- package/lib/clients/mp_web/hipay/navigateBackMiniProgram.d.ts +2 -0
- package/lib/clients/mp_web/hipay/navigateBackMiniProgram.js +3 -0
- package/lib/clients/mp_web/hipay/navigateTo.d.ts +2 -0
- package/lib/clients/mp_web/hipay/navigateTo.js +3 -0
- package/lib/clients/mp_web/hipay/navigateToBizScene.d.ts +2 -0
- package/lib/clients/mp_web/hipay/navigateToBizScene.js +3 -0
- package/lib/clients/mp_web/hipay/navigateToMiniProgram.d.ts +2 -0
- package/lib/clients/mp_web/hipay/navigateToMiniProgram.js +3 -0
- package/lib/clients/mp_web/hipay/notifyBLECharacteristicValueChange.d.ts +2 -0
- package/lib/clients/mp_web/hipay/notifyBLECharacteristicValueChange.js +3 -0
- package/lib/clients/mp_web/hipay/offAccelerometerChange.d.ts +2 -0
- package/lib/clients/mp_web/hipay/offAccelerometerChange.js +3 -0
- package/lib/clients/mp_web/hipay/offBLECharacteristicValueChange.d.ts +2 -0
- package/lib/clients/mp_web/hipay/offBLECharacteristicValueChange.js +3 -0
- package/lib/clients/mp_web/hipay/offBLEConnectionStateChanged.d.ts +2 -0
- package/lib/clients/mp_web/hipay/offBLEConnectionStateChanged.js +3 -0
- package/lib/clients/mp_web/hipay/offBluetoothAdapterStateChange.d.ts +2 -0
- package/lib/clients/mp_web/hipay/offBluetoothAdapterStateChange.js +3 -0
- package/lib/clients/mp_web/hipay/offBluetoothDeviceFound.d.ts +2 -0
- package/lib/clients/mp_web/hipay/offBluetoothDeviceFound.js +3 -0
- package/lib/clients/mp_web/hipay/offCompassChange.d.ts +2 -0
- package/lib/clients/mp_web/hipay/offCompassChange.js +3 -0
- package/lib/clients/mp_web/hipay/offMemoryWarning.d.ts +2 -0
- package/lib/clients/mp_web/hipay/offMemoryWarning.js +3 -0
- package/lib/clients/mp_web/hipay/offSocketClose.d.ts +2 -0
- package/lib/clients/mp_web/hipay/offSocketClose.js +3 -0
- package/lib/clients/mp_web/hipay/offSocketError.d.ts +2 -0
- package/lib/clients/mp_web/hipay/offSocketError.js +3 -0
- package/lib/clients/mp_web/hipay/offSocketMessage.d.ts +2 -0
- package/lib/clients/mp_web/hipay/offSocketMessage.js +3 -0
- package/lib/clients/mp_web/hipay/offSocketOpen.d.ts +2 -0
- package/lib/clients/mp_web/hipay/offSocketOpen.js +3 -0
- package/lib/clients/mp_web/hipay/offUserCaptureScreen.d.ts +2 -0
- package/lib/clients/mp_web/hipay/offUserCaptureScreen.js +3 -0
- package/lib/clients/mp_web/hipay/onAccelerometerChange.d.ts +2 -0
- package/lib/clients/mp_web/hipay/onAccelerometerChange.js +3 -0
- package/lib/clients/mp_web/hipay/onBLECharacteristicValueChange.d.ts +2 -0
- package/lib/clients/mp_web/hipay/onBLECharacteristicValueChange.js +3 -0
- package/lib/clients/mp_web/hipay/onBLEConnectionStateChanged.d.ts +2 -0
- package/lib/clients/mp_web/hipay/onBLEConnectionStateChanged.js +3 -0
- package/lib/clients/mp_web/hipay/onBluetoothAdapterStateChange.d.ts +2 -0
- package/lib/clients/mp_web/hipay/onBluetoothAdapterStateChange.js +3 -0
- package/lib/clients/mp_web/hipay/onBluetoothDeviceFound.d.ts +2 -0
- package/lib/clients/mp_web/hipay/onBluetoothDeviceFound.js +3 -0
- package/lib/clients/mp_web/hipay/onCompassChange.d.ts +2 -0
- package/lib/clients/mp_web/hipay/onCompassChange.js +3 -0
- package/lib/clients/mp_web/hipay/onMemoryWarning.d.ts +2 -0
- package/lib/clients/mp_web/hipay/onMemoryWarning.js +3 -0
- package/lib/clients/mp_web/hipay/onSocketClose.d.ts +2 -0
- package/lib/clients/mp_web/hipay/onSocketClose.js +3 -0
- package/lib/clients/mp_web/hipay/onSocketError.d.ts +2 -0
- package/lib/clients/mp_web/hipay/onSocketError.js +3 -0
- package/lib/clients/mp_web/hipay/onSocketMessage.d.ts +2 -0
- package/lib/clients/mp_web/hipay/onSocketMessage.js +3 -0
- package/lib/clients/mp_web/hipay/onSocketOpen.d.ts +2 -0
- package/lib/clients/mp_web/hipay/onSocketOpen.js +3 -0
- package/lib/clients/mp_web/hipay/onUserCaptureScreen.d.ts +2 -0
- package/lib/clients/mp_web/hipay/onUserCaptureScreen.js +3 -0
- package/lib/clients/mp_web/hipay/openBluetoothAdapter.d.ts +2 -0
- package/lib/clients/mp_web/hipay/openBluetoothAdapter.js +3 -0
- package/lib/clients/mp_web/hipay/openDocument.d.ts +2 -0
- package/lib/clients/mp_web/hipay/openDocument.js +3 -0
- package/lib/clients/mp_web/hipay/openSetting.d.ts +2 -0
- package/lib/clients/mp_web/hipay/openSetting.js +3 -0
- package/lib/clients/mp_web/hipay/pageScrollTo.d.ts +2 -0
- package/lib/clients/mp_web/hipay/pageScrollTo.js +3 -0
- package/lib/clients/mp_web/hipay/previewImage.d.ts +2 -0
- package/lib/clients/mp_web/hipay/previewImage.js +3 -0
- package/lib/clients/mp_web/hipay/prompt.d.ts +2 -0
- package/lib/clients/mp_web/hipay/prompt.js +3 -0
- package/lib/clients/mp_web/hipay/reLaunch.d.ts +2 -0
- package/lib/clients/mp_web/hipay/reLaunch.js +3 -0
- package/lib/clients/mp_web/hipay/readBLECharacteristicValue.d.ts +2 -0
- package/lib/clients/mp_web/hipay/readBLECharacteristicValue.js +3 -0
- package/lib/clients/mp_web/hipay/redirectTo.d.ts +2 -0
- package/lib/clients/mp_web/hipay/redirectTo.js +3 -0
- package/lib/clients/mp_web/hipay/removeSavedFile.d.ts +2 -0
- package/lib/clients/mp_web/hipay/removeSavedFile.js +3 -0
- package/lib/clients/mp_web/hipay/removeStorage.d.ts +2 -0
- package/lib/clients/mp_web/hipay/removeStorage.js +3 -0
- package/lib/clients/mp_web/hipay/request.d.ts +2 -0
- package/lib/clients/mp_web/hipay/request.js +3 -0
- package/lib/clients/mp_web/hipay/rpc.d.ts +2 -0
- package/lib/clients/mp_web/hipay/rpc.js +3 -0
- package/lib/clients/mp_web/hipay/saveFile.d.ts +2 -0
- package/lib/clients/mp_web/hipay/saveFile.js +3 -0
- package/lib/clients/mp_web/hipay/saveImage.d.ts +2 -0
- package/lib/clients/mp_web/hipay/saveImage.js +3 -0
- package/lib/clients/mp_web/hipay/scan.d.ts +2 -0
- package/lib/clients/mp_web/hipay/scan.js +3 -0
- package/lib/clients/mp_web/hipay/sendSocketMessage.d.ts +2 -0
- package/lib/clients/mp_web/hipay/sendSocketMessage.js +3 -0
- package/lib/clients/mp_web/hipay/setBackgroundColor.d.ts +2 -0
- package/lib/clients/mp_web/hipay/setBackgroundColor.js +3 -0
- package/lib/clients/mp_web/hipay/setCanPullDown.d.ts +2 -0
- package/lib/clients/mp_web/hipay/setCanPullDown.js +3 -0
- package/lib/clients/mp_web/hipay/setClipboard.d.ts +2 -0
- package/lib/clients/mp_web/hipay/setClipboard.js +3 -0
- package/lib/clients/mp_web/hipay/setKeepScreenOn.d.ts +2 -0
- package/lib/clients/mp_web/hipay/setKeepScreenOn.js +3 -0
- package/lib/clients/mp_web/hipay/setNavigationBar.d.ts +2 -0
- package/lib/clients/mp_web/hipay/setNavigationBar.js +3 -0
- package/lib/clients/mp_web/hipay/setScreenBrightness.d.ts +2 -0
- package/lib/clients/mp_web/hipay/setScreenBrightness.js +3 -0
- package/lib/clients/mp_web/hipay/setStorage.d.ts +2 -0
- package/lib/clients/mp_web/hipay/setStorage.js +3 -0
- package/lib/clients/mp_web/hipay/setTabBarItem.d.ts +2 -0
- package/lib/clients/mp_web/hipay/setTabBarItem.js +3 -0
- package/lib/clients/mp_web/hipay/setTabBarStyle.d.ts +2 -0
- package/lib/clients/mp_web/hipay/setTabBarStyle.js +3 -0
- package/lib/clients/mp_web/hipay/setTransparentTitle.d.ts +2 -0
- package/lib/clients/mp_web/hipay/setTransparentTitle.js +3 -0
- package/lib/clients/mp_web/hipay/showActionSheet.d.ts +2 -0
- package/lib/clients/mp_web/hipay/showActionSheet.js +3 -0
- package/lib/clients/mp_web/hipay/showAuthGuide.d.ts +2 -0
- package/lib/clients/mp_web/hipay/showAuthGuide.js +3 -0
- package/lib/clients/mp_web/hipay/showLoading.d.ts +2 -0
- package/lib/clients/mp_web/hipay/showLoading.js +3 -0
- package/lib/clients/mp_web/hipay/showNavigationBarLoading.d.ts +2 -0
- package/lib/clients/mp_web/hipay/showNavigationBarLoading.js +3 -0
- package/lib/clients/mp_web/hipay/showSharePanel.d.ts +2 -0
- package/lib/clients/mp_web/hipay/showSharePanel.js +3 -0
- package/lib/clients/mp_web/hipay/showTabBar.d.ts +2 -0
- package/lib/clients/mp_web/hipay/showTabBar.js +3 -0
- package/lib/clients/mp_web/hipay/showToast.d.ts +2 -0
- package/lib/clients/mp_web/hipay/showToast.js +3 -0
- package/lib/clients/mp_web/hipay/signContract.d.ts +2 -0
- package/lib/clients/mp_web/hipay/signContract.js +3 -0
- package/lib/clients/mp_web/hipay/startBluetoothDevicesDiscovery.d.ts +2 -0
- package/lib/clients/mp_web/hipay/startBluetoothDevicesDiscovery.js +3 -0
- package/lib/clients/mp_web/hipay/startPullDownRefresh.d.ts +2 -0
- package/lib/clients/mp_web/hipay/startPullDownRefresh.js +3 -0
- package/lib/clients/mp_web/hipay/stopBluetoothDevicesDiscovery.d.ts +2 -0
- package/lib/clients/mp_web/hipay/stopBluetoothDevicesDiscovery.js +3 -0
- package/lib/clients/mp_web/hipay/stopPullDownRefresh.d.ts +2 -0
- package/lib/clients/mp_web/hipay/stopPullDownRefresh.js +3 -0
- package/lib/clients/mp_web/hipay/switchTab.d.ts +2 -0
- package/lib/clients/mp_web/hipay/switchTab.js +3 -0
- package/lib/clients/mp_web/hipay/tradePay.d.ts +2 -0
- package/lib/clients/mp_web/hipay/tradePay.js +3 -0
- package/lib/clients/mp_web/hipay/uploadFile.d.ts +2 -0
- package/lib/clients/mp_web/hipay/uploadFile.js +3 -0
- package/lib/clients/mp_web/hipay/vibrate.d.ts +2 -0
- package/lib/clients/mp_web/hipay/vibrate.js +3 -0
- package/lib/clients/mp_web/hipay/watchShake.d.ts +2 -0
- package/lib/clients/mp_web/hipay/watchShake.js +3 -0
- package/lib/clients/mp_web/hipay/writeBLECharacteristicValue.d.ts +2 -0
- package/lib/clients/mp_web/hipay/writeBLECharacteristicValue.js +3 -0
- package/lib/clients/mp_web/kakaopay/addPhoneContact.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/addPhoneContact.js +3 -0
- package/lib/clients/mp_web/kakaopay/alert.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/alert.js +3 -0
- package/lib/clients/mp_web/kakaopay/chooseFileFromDisk.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/chooseFileFromDisk.js +3 -0
- package/lib/clients/mp_web/kakaopay/chooseImage.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/chooseImage.js +3 -0
- package/lib/clients/mp_web/kakaopay/choosePhoneContact.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/choosePhoneContact.js +3 -0
- package/lib/clients/mp_web/kakaopay/chooseVideo.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/chooseVideo.js +3 -0
- package/lib/clients/mp_web/kakaopay/clearStorage.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/clearStorage.js +3 -0
- package/lib/clients/mp_web/kakaopay/closeBluetoothAdapter.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/closeBluetoothAdapter.js +3 -0
- package/lib/clients/mp_web/kakaopay/closeSocket.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/closeSocket.js +3 -0
- package/lib/clients/mp_web/kakaopay/compressImage.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/compressImage.js +3 -0
- package/lib/clients/mp_web/kakaopay/confirm.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/confirm.js +3 -0
- package/lib/clients/mp_web/kakaopay/connectBLEDevice.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/connectBLEDevice.js +3 -0
- package/lib/clients/mp_web/kakaopay/connectSocket.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/connectSocket.js +3 -0
- package/lib/clients/mp_web/kakaopay/datePicker.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/datePicker.js +3 -0
- package/lib/clients/mp_web/kakaopay/disconnectBLEDevice.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/disconnectBLEDevice.js +3 -0
- package/lib/clients/mp_web/kakaopay/downloadFile.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/downloadFile.js +3 -0
- package/lib/clients/mp_web/kakaopay/exitApp.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/exitApp.js +3 -0
- package/lib/clients/mp_web/kakaopay/getAppId.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getAppId.js +3 -0
- package/lib/clients/mp_web/kakaopay/getAppToken.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getAppToken.js +3 -0
- package/lib/clients/mp_web/kakaopay/getAuthCode.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getAuthCode.js +3 -0
- package/lib/clients/mp_web/kakaopay/getBLEDeviceCharacteristics.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getBLEDeviceCharacteristics.js +3 -0
- package/lib/clients/mp_web/kakaopay/getBLEDeviceServices.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getBLEDeviceServices.js +3 -0
- package/lib/clients/mp_web/kakaopay/getBackgroundFetchData.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getBackgroundFetchData.js +3 -0
- package/lib/clients/mp_web/kakaopay/getBatteryInfo.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getBatteryInfo.js +3 -0
- package/lib/clients/mp_web/kakaopay/getBluetoothAdapterState.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getBluetoothAdapterState.js +3 -0
- package/lib/clients/mp_web/kakaopay/getBluetoothDevices.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getBluetoothDevices.js +3 -0
- package/lib/clients/mp_web/kakaopay/getClipboard.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getClipboard.js +3 -0
- package/lib/clients/mp_web/kakaopay/getConnectedBluetoothDevices.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getConnectedBluetoothDevices.js +3 -0
- package/lib/clients/mp_web/kakaopay/getCurrentPages.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getCurrentPages.js +3 -0
- package/lib/clients/mp_web/kakaopay/getEnterOptionsSync.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getEnterOptionsSync.js +3 -0
- package/lib/clients/mp_web/kakaopay/getFileInfo.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getFileInfo.js +3 -0
- package/lib/clients/mp_web/kakaopay/getImageInfo.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getImageInfo.js +3 -0
- package/lib/clients/mp_web/kakaopay/getLocation.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getLocation.js +3 -0
- package/lib/clients/mp_web/kakaopay/getNetworkType.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getNetworkType.js +3 -0
- package/lib/clients/mp_web/kakaopay/getOpenUserInfo.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getOpenUserInfo.js +3 -0
- package/lib/clients/mp_web/kakaopay/getRunScene.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getRunScene.js +3 -0
- package/lib/clients/mp_web/kakaopay/getSDKVersion.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getSDKVersion.js +3 -0
- package/lib/clients/mp_web/kakaopay/getSavedFileInfo.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getSavedFileInfo.js +3 -0
- package/lib/clients/mp_web/kakaopay/getSavedFileList.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getSavedFileList.js +3 -0
- package/lib/clients/mp_web/kakaopay/getScreenBrightness.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getScreenBrightness.js +3 -0
- package/lib/clients/mp_web/kakaopay/getServerTime.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getServerTime.js +3 -0
- package/lib/clients/mp_web/kakaopay/getSetting.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getSetting.js +3 -0
- package/lib/clients/mp_web/kakaopay/getSiteInfo.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getSiteInfo.js +3 -0
- package/lib/clients/mp_web/kakaopay/getStorage.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getStorage.js +3 -0
- package/lib/clients/mp_web/kakaopay/getSystemInfo.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/getSystemInfo.js +3 -0
- package/lib/clients/mp_web/kakaopay/hideBackHome.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/hideBackHome.js +3 -0
- package/lib/clients/mp_web/kakaopay/hideKeyboard.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/hideKeyboard.js +3 -0
- package/lib/clients/mp_web/kakaopay/hideLoading.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/hideLoading.js +3 -0
- package/lib/clients/mp_web/kakaopay/hideNavigationBarLoading.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/hideNavigationBarLoading.js +3 -0
- package/lib/clients/mp_web/kakaopay/hideTabBar.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/hideTabBar.js +3 -0
- package/lib/clients/mp_web/kakaopay/hideToast.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/hideToast.js +3 -0
- package/lib/clients/mp_web/kakaopay/index.d.ts +451 -0
- package/lib/clients/mp_web/kakaopay/index.js +261 -0
- package/lib/clients/mp_web/kakaopay/makePhoneCall.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/makePhoneCall.js +3 -0
- package/lib/clients/mp_web/kakaopay/multiLevelSelect.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/multiLevelSelect.js +3 -0
- package/lib/clients/mp_web/kakaopay/navigateBack.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/navigateBack.js +3 -0
- package/lib/clients/mp_web/kakaopay/navigateBackMiniProgram.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/navigateBackMiniProgram.js +3 -0
- package/lib/clients/mp_web/kakaopay/navigateTo.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/navigateTo.js +3 -0
- package/lib/clients/mp_web/kakaopay/navigateToBizScene.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/navigateToBizScene.js +3 -0
- package/lib/clients/mp_web/kakaopay/navigateToMiniProgram.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/navigateToMiniProgram.js +3 -0
- package/lib/clients/mp_web/kakaopay/notifyBLECharacteristicValueChange.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/notifyBLECharacteristicValueChange.js +3 -0
- package/lib/clients/mp_web/kakaopay/offAccelerometerChange.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/offAccelerometerChange.js +3 -0
- package/lib/clients/mp_web/kakaopay/offBLECharacteristicValueChange.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/offBLECharacteristicValueChange.js +3 -0
- package/lib/clients/mp_web/kakaopay/offBLEConnectionStateChanged.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/offBLEConnectionStateChanged.js +3 -0
- package/lib/clients/mp_web/kakaopay/offBluetoothAdapterStateChange.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/offBluetoothAdapterStateChange.js +3 -0
- package/lib/clients/mp_web/kakaopay/offBluetoothDeviceFound.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/offBluetoothDeviceFound.js +3 -0
- package/lib/clients/mp_web/kakaopay/offCompassChange.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/offCompassChange.js +3 -0
- package/lib/clients/mp_web/kakaopay/offMemoryWarning.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/offMemoryWarning.js +3 -0
- package/lib/clients/mp_web/kakaopay/offSocketClose.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/offSocketClose.js +3 -0
- package/lib/clients/mp_web/kakaopay/offSocketError.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/offSocketError.js +3 -0
- package/lib/clients/mp_web/kakaopay/offSocketMessage.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/offSocketMessage.js +3 -0
- package/lib/clients/mp_web/kakaopay/offSocketOpen.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/offSocketOpen.js +3 -0
- package/lib/clients/mp_web/kakaopay/offUserCaptureScreen.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/offUserCaptureScreen.js +3 -0
- package/lib/clients/mp_web/kakaopay/onAccelerometerChange.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/onAccelerometerChange.js +3 -0
- package/lib/clients/mp_web/kakaopay/onBLECharacteristicValueChange.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/onBLECharacteristicValueChange.js +3 -0
- package/lib/clients/mp_web/kakaopay/onBLEConnectionStateChanged.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/onBLEConnectionStateChanged.js +3 -0
- package/lib/clients/mp_web/kakaopay/onBluetoothAdapterStateChange.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/onBluetoothAdapterStateChange.js +3 -0
- package/lib/clients/mp_web/kakaopay/onBluetoothDeviceFound.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/onBluetoothDeviceFound.js +3 -0
- package/lib/clients/mp_web/kakaopay/onCompassChange.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/onCompassChange.js +3 -0
- package/lib/clients/mp_web/kakaopay/onMemoryWarning.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/onMemoryWarning.js +3 -0
- package/lib/clients/mp_web/kakaopay/onSocketClose.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/onSocketClose.js +3 -0
- package/lib/clients/mp_web/kakaopay/onSocketError.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/onSocketError.js +3 -0
- package/lib/clients/mp_web/kakaopay/onSocketMessage.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/onSocketMessage.js +3 -0
- package/lib/clients/mp_web/kakaopay/onSocketOpen.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/onSocketOpen.js +3 -0
- package/lib/clients/mp_web/kakaopay/onUserCaptureScreen.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/onUserCaptureScreen.js +3 -0
- package/lib/clients/mp_web/kakaopay/openBluetoothAdapter.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/openBluetoothAdapter.js +3 -0
- package/lib/clients/mp_web/kakaopay/openDocument.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/openDocument.js +3 -0
- package/lib/clients/mp_web/kakaopay/openSetting.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/openSetting.js +3 -0
- package/lib/clients/mp_web/kakaopay/pageScrollTo.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/pageScrollTo.js +3 -0
- package/lib/clients/mp_web/kakaopay/previewImage.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/previewImage.js +3 -0
- package/lib/clients/mp_web/kakaopay/prompt.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/prompt.js +3 -0
- package/lib/clients/mp_web/kakaopay/reLaunch.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/reLaunch.js +3 -0
- package/lib/clients/mp_web/kakaopay/readBLECharacteristicValue.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/readBLECharacteristicValue.js +3 -0
- package/lib/clients/mp_web/kakaopay/redirectTo.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/redirectTo.js +3 -0
- package/lib/clients/mp_web/kakaopay/removeSavedFile.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/removeSavedFile.js +3 -0
- package/lib/clients/mp_web/kakaopay/removeStorage.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/removeStorage.js +3 -0
- package/lib/clients/mp_web/kakaopay/request.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/request.js +3 -0
- package/lib/clients/mp_web/kakaopay/rpc.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/rpc.js +3 -0
- package/lib/clients/mp_web/kakaopay/saveFile.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/saveFile.js +3 -0
- package/lib/clients/mp_web/kakaopay/saveImage.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/saveImage.js +3 -0
- package/lib/clients/mp_web/kakaopay/scan.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/scan.js +3 -0
- package/lib/clients/mp_web/kakaopay/sendSocketMessage.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/sendSocketMessage.js +3 -0
- package/lib/clients/mp_web/kakaopay/setBackgroundColor.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/setBackgroundColor.js +3 -0
- package/lib/clients/mp_web/kakaopay/setCanPullDown.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/setCanPullDown.js +3 -0
- package/lib/clients/mp_web/kakaopay/setClipboard.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/setClipboard.js +3 -0
- package/lib/clients/mp_web/kakaopay/setKeepScreenOn.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/setKeepScreenOn.js +3 -0
- package/lib/clients/mp_web/kakaopay/setNavigationBar.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/setNavigationBar.js +3 -0
- package/lib/clients/mp_web/kakaopay/setScreenBrightness.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/setScreenBrightness.js +3 -0
- package/lib/clients/mp_web/kakaopay/setStorage.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/setStorage.js +3 -0
- package/lib/clients/mp_web/kakaopay/setTabBarItem.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/setTabBarItem.js +3 -0
- package/lib/clients/mp_web/kakaopay/setTabBarStyle.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/setTabBarStyle.js +3 -0
- package/lib/clients/mp_web/kakaopay/setTransparentTitle.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/setTransparentTitle.js +3 -0
- package/lib/clients/mp_web/kakaopay/showActionSheet.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/showActionSheet.js +3 -0
- package/lib/clients/mp_web/kakaopay/showAuthGuide.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/showAuthGuide.js +3 -0
- package/lib/clients/mp_web/kakaopay/showLoading.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/showLoading.js +3 -0
- package/lib/clients/mp_web/kakaopay/showNavigationBarLoading.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/showNavigationBarLoading.js +3 -0
- package/lib/clients/mp_web/kakaopay/showSharePanel.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/showSharePanel.js +3 -0
- package/lib/clients/mp_web/kakaopay/showTabBar.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/showTabBar.js +3 -0
- package/lib/clients/mp_web/kakaopay/showToast.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/showToast.js +3 -0
- package/lib/clients/mp_web/kakaopay/signContract.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/signContract.js +3 -0
- package/lib/clients/mp_web/kakaopay/startBluetoothDevicesDiscovery.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/startBluetoothDevicesDiscovery.js +3 -0
- package/lib/clients/mp_web/kakaopay/startPullDownRefresh.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/startPullDownRefresh.js +3 -0
- package/lib/clients/mp_web/kakaopay/stopBluetoothDevicesDiscovery.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/stopBluetoothDevicesDiscovery.js +3 -0
- package/lib/clients/mp_web/kakaopay/stopPullDownRefresh.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/stopPullDownRefresh.js +3 -0
- package/lib/clients/mp_web/kakaopay/switchTab.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/switchTab.js +3 -0
- package/lib/clients/mp_web/kakaopay/tradePay.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/tradePay.js +3 -0
- package/lib/clients/mp_web/kakaopay/uploadFile.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/uploadFile.js +3 -0
- package/lib/clients/mp_web/kakaopay/vibrate.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/vibrate.js +3 -0
- package/lib/clients/mp_web/kakaopay/watchShake.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/watchShake.js +3 -0
- package/lib/clients/mp_web/kakaopay/writeBLECharacteristicValue.d.ts +2 -0
- package/lib/clients/mp_web/kakaopay/writeBLECharacteristicValue.js +3 -0
- package/lib/clients/mp_web/scb/addPhoneContact.d.ts +2 -0
- package/lib/clients/mp_web/scb/addPhoneContact.js +3 -0
- package/lib/clients/mp_web/scb/alert.d.ts +2 -0
- package/lib/clients/mp_web/scb/alert.js +3 -0
- package/lib/clients/mp_web/scb/chooseFileFromDisk.d.ts +2 -0
- package/lib/clients/mp_web/scb/chooseFileFromDisk.js +3 -0
- package/lib/clients/mp_web/scb/chooseImage.d.ts +2 -0
- package/lib/clients/mp_web/scb/chooseImage.js +3 -0
- package/lib/clients/mp_web/scb/choosePhoneContact.d.ts +2 -0
- package/lib/clients/mp_web/scb/choosePhoneContact.js +3 -0
- package/lib/clients/mp_web/scb/chooseVideo.d.ts +2 -0
- package/lib/clients/mp_web/scb/chooseVideo.js +3 -0
- package/lib/clients/mp_web/scb/clearStorage.d.ts +2 -0
- package/lib/clients/mp_web/scb/clearStorage.js +3 -0
- package/lib/clients/mp_web/scb/closeBluetoothAdapter.d.ts +2 -0
- package/lib/clients/mp_web/scb/closeBluetoothAdapter.js +3 -0
- package/lib/clients/mp_web/scb/closeSocket.d.ts +2 -0
- package/lib/clients/mp_web/scb/closeSocket.js +3 -0
- package/lib/clients/mp_web/scb/compressImage.d.ts +2 -0
- package/lib/clients/mp_web/scb/compressImage.js +3 -0
- package/lib/clients/mp_web/scb/confirm.d.ts +2 -0
- package/lib/clients/mp_web/scb/confirm.js +3 -0
- package/lib/clients/mp_web/scb/connectBLEDevice.d.ts +2 -0
- package/lib/clients/mp_web/scb/connectBLEDevice.js +3 -0
- package/lib/clients/mp_web/scb/connectSocket.d.ts +2 -0
- package/lib/clients/mp_web/scb/connectSocket.js +3 -0
- package/lib/clients/mp_web/scb/datePicker.d.ts +2 -0
- package/lib/clients/mp_web/scb/datePicker.js +3 -0
- package/lib/clients/mp_web/scb/disconnectBLEDevice.d.ts +2 -0
- package/lib/clients/mp_web/scb/disconnectBLEDevice.js +3 -0
- package/lib/clients/mp_web/scb/downloadFile.d.ts +2 -0
- package/lib/clients/mp_web/scb/downloadFile.js +3 -0
- package/lib/clients/mp_web/scb/exitApp.d.ts +2 -0
- package/lib/clients/mp_web/scb/exitApp.js +3 -0
- package/lib/clients/mp_web/scb/getAppId.d.ts +2 -0
- package/lib/clients/mp_web/scb/getAppId.js +3 -0
- package/lib/clients/mp_web/scb/getAppToken.d.ts +2 -0
- package/lib/clients/mp_web/scb/getAppToken.js +3 -0
- package/lib/clients/mp_web/scb/getAuthCode.d.ts +2 -0
- package/lib/clients/mp_web/scb/getAuthCode.js +3 -0
- package/lib/clients/mp_web/scb/getBLEDeviceCharacteristics.d.ts +2 -0
- package/lib/clients/mp_web/scb/getBLEDeviceCharacteristics.js +3 -0
- package/lib/clients/mp_web/scb/getBLEDeviceServices.d.ts +2 -0
- package/lib/clients/mp_web/scb/getBLEDeviceServices.js +3 -0
- package/lib/clients/mp_web/scb/getBackgroundFetchData.d.ts +2 -0
- package/lib/clients/mp_web/scb/getBackgroundFetchData.js +3 -0
- package/lib/clients/mp_web/scb/getBatteryInfo.d.ts +2 -0
- package/lib/clients/mp_web/scb/getBatteryInfo.js +3 -0
- package/lib/clients/mp_web/scb/getBluetoothAdapterState.d.ts +2 -0
- package/lib/clients/mp_web/scb/getBluetoothAdapterState.js +3 -0
- package/lib/clients/mp_web/scb/getBluetoothDevices.d.ts +2 -0
- package/lib/clients/mp_web/scb/getBluetoothDevices.js +3 -0
- package/lib/clients/mp_web/scb/getClipboard.d.ts +2 -0
- package/lib/clients/mp_web/scb/getClipboard.js +3 -0
- package/lib/clients/mp_web/scb/getConnectedBluetoothDevices.d.ts +2 -0
- package/lib/clients/mp_web/scb/getConnectedBluetoothDevices.js +3 -0
- package/lib/clients/mp_web/scb/getCurrentPages.d.ts +2 -0
- package/lib/clients/mp_web/scb/getCurrentPages.js +3 -0
- package/lib/clients/mp_web/scb/getEnterOptionsSync.d.ts +2 -0
- package/lib/clients/mp_web/scb/getEnterOptionsSync.js +3 -0
- package/lib/clients/mp_web/scb/getFileInfo.d.ts +2 -0
- package/lib/clients/mp_web/scb/getFileInfo.js +3 -0
- package/lib/clients/mp_web/scb/getImageInfo.d.ts +2 -0
- package/lib/clients/mp_web/scb/getImageInfo.js +3 -0
- package/lib/clients/mp_web/scb/getLocation.d.ts +2 -0
- package/lib/clients/mp_web/scb/getLocation.js +3 -0
- package/lib/clients/mp_web/scb/getNetworkType.d.ts +2 -0
- package/lib/clients/mp_web/scb/getNetworkType.js +3 -0
- package/lib/clients/mp_web/scb/getOpenUserInfo.d.ts +2 -0
- package/lib/clients/mp_web/scb/getOpenUserInfo.js +3 -0
- package/lib/clients/mp_web/scb/getRunScene.d.ts +2 -0
- package/lib/clients/mp_web/scb/getRunScene.js +3 -0
- package/lib/clients/mp_web/scb/getSDKVersion.d.ts +2 -0
- package/lib/clients/mp_web/scb/getSDKVersion.js +3 -0
- package/lib/clients/mp_web/scb/getSavedFileInfo.d.ts +2 -0
- package/lib/clients/mp_web/scb/getSavedFileInfo.js +3 -0
- package/lib/clients/mp_web/scb/getSavedFileList.d.ts +2 -0
- package/lib/clients/mp_web/scb/getSavedFileList.js +3 -0
- package/lib/clients/mp_web/scb/getScreenBrightness.d.ts +2 -0
- package/lib/clients/mp_web/scb/getScreenBrightness.js +3 -0
- package/lib/clients/mp_web/scb/getServerTime.d.ts +2 -0
- package/lib/clients/mp_web/scb/getServerTime.js +3 -0
- package/lib/clients/mp_web/scb/getSetting.d.ts +2 -0
- package/lib/clients/mp_web/scb/getSetting.js +3 -0
- package/lib/clients/mp_web/scb/getSiteInfo.d.ts +2 -0
- package/lib/clients/mp_web/scb/getSiteInfo.js +3 -0
- package/lib/clients/mp_web/scb/getStorage.d.ts +2 -0
- package/lib/clients/mp_web/scb/getStorage.js +3 -0
- package/lib/clients/mp_web/scb/getSystemInfo.d.ts +2 -0
- package/lib/clients/mp_web/scb/getSystemInfo.js +3 -0
- package/lib/clients/mp_web/scb/hideBackHome.d.ts +2 -0
- package/lib/clients/mp_web/scb/hideBackHome.js +3 -0
- package/lib/clients/mp_web/scb/hideKeyboard.d.ts +2 -0
- package/lib/clients/mp_web/scb/hideKeyboard.js +3 -0
- package/lib/clients/mp_web/scb/hideLoading.d.ts +2 -0
- package/lib/clients/mp_web/scb/hideLoading.js +3 -0
- package/lib/clients/mp_web/scb/hideNavigationBarLoading.d.ts +2 -0
- package/lib/clients/mp_web/scb/hideNavigationBarLoading.js +3 -0
- package/lib/clients/mp_web/scb/hideTabBar.d.ts +2 -0
- package/lib/clients/mp_web/scb/hideTabBar.js +3 -0
- package/lib/clients/mp_web/scb/hideToast.d.ts +2 -0
- package/lib/clients/mp_web/scb/hideToast.js +3 -0
- package/lib/clients/mp_web/scb/index.d.ts +451 -0
- package/lib/clients/mp_web/scb/index.js +261 -0
- package/lib/clients/mp_web/scb/makePhoneCall.d.ts +2 -0
- package/lib/clients/mp_web/scb/makePhoneCall.js +3 -0
- package/lib/clients/mp_web/scb/multiLevelSelect.d.ts +2 -0
- package/lib/clients/mp_web/scb/multiLevelSelect.js +3 -0
- package/lib/clients/mp_web/scb/navigateBack.d.ts +2 -0
- package/lib/clients/mp_web/scb/navigateBack.js +3 -0
- package/lib/clients/mp_web/scb/navigateBackMiniProgram.d.ts +2 -0
- package/lib/clients/mp_web/scb/navigateBackMiniProgram.js +3 -0
- package/lib/clients/mp_web/scb/navigateTo.d.ts +2 -0
- package/lib/clients/mp_web/scb/navigateTo.js +3 -0
- package/lib/clients/mp_web/scb/navigateToBizScene.d.ts +2 -0
- package/lib/clients/mp_web/scb/navigateToBizScene.js +3 -0
- package/lib/clients/mp_web/scb/navigateToMiniProgram.d.ts +2 -0
- package/lib/clients/mp_web/scb/navigateToMiniProgram.js +3 -0
- package/lib/clients/mp_web/scb/notifyBLECharacteristicValueChange.d.ts +2 -0
- package/lib/clients/mp_web/scb/notifyBLECharacteristicValueChange.js +3 -0
- package/lib/clients/mp_web/scb/offAccelerometerChange.d.ts +2 -0
- package/lib/clients/mp_web/scb/offAccelerometerChange.js +3 -0
- package/lib/clients/mp_web/scb/offBLECharacteristicValueChange.d.ts +2 -0
- package/lib/clients/mp_web/scb/offBLECharacteristicValueChange.js +3 -0
- package/lib/clients/mp_web/scb/offBLEConnectionStateChanged.d.ts +2 -0
- package/lib/clients/mp_web/scb/offBLEConnectionStateChanged.js +3 -0
- package/lib/clients/mp_web/scb/offBluetoothAdapterStateChange.d.ts +2 -0
- package/lib/clients/mp_web/scb/offBluetoothAdapterStateChange.js +3 -0
- package/lib/clients/mp_web/scb/offBluetoothDeviceFound.d.ts +2 -0
- package/lib/clients/mp_web/scb/offBluetoothDeviceFound.js +3 -0
- package/lib/clients/mp_web/scb/offCompassChange.d.ts +2 -0
- package/lib/clients/mp_web/scb/offCompassChange.js +3 -0
- package/lib/clients/mp_web/scb/offMemoryWarning.d.ts +2 -0
- package/lib/clients/mp_web/scb/offMemoryWarning.js +3 -0
- package/lib/clients/mp_web/scb/offSocketClose.d.ts +2 -0
- package/lib/clients/mp_web/scb/offSocketClose.js +3 -0
- package/lib/clients/mp_web/scb/offSocketError.d.ts +2 -0
- package/lib/clients/mp_web/scb/offSocketError.js +3 -0
- package/lib/clients/mp_web/scb/offSocketMessage.d.ts +2 -0
- package/lib/clients/mp_web/scb/offSocketMessage.js +3 -0
- package/lib/clients/mp_web/scb/offSocketOpen.d.ts +2 -0
- package/lib/clients/mp_web/scb/offSocketOpen.js +3 -0
- package/lib/clients/mp_web/scb/offUserCaptureScreen.d.ts +2 -0
- package/lib/clients/mp_web/scb/offUserCaptureScreen.js +3 -0
- package/lib/clients/mp_web/scb/onAccelerometerChange.d.ts +2 -0
- package/lib/clients/mp_web/scb/onAccelerometerChange.js +3 -0
- package/lib/clients/mp_web/scb/onBLECharacteristicValueChange.d.ts +2 -0
- package/lib/clients/mp_web/scb/onBLECharacteristicValueChange.js +3 -0
- package/lib/clients/mp_web/scb/onBLEConnectionStateChanged.d.ts +2 -0
- package/lib/clients/mp_web/scb/onBLEConnectionStateChanged.js +3 -0
- package/lib/clients/mp_web/scb/onBluetoothAdapterStateChange.d.ts +2 -0
- package/lib/clients/mp_web/scb/onBluetoothAdapterStateChange.js +3 -0
- package/lib/clients/mp_web/scb/onBluetoothDeviceFound.d.ts +2 -0
- package/lib/clients/mp_web/scb/onBluetoothDeviceFound.js +3 -0
- package/lib/clients/mp_web/scb/onCompassChange.d.ts +2 -0
- package/lib/clients/mp_web/scb/onCompassChange.js +3 -0
- package/lib/clients/mp_web/scb/onMemoryWarning.d.ts +2 -0
- package/lib/clients/mp_web/scb/onMemoryWarning.js +3 -0
- package/lib/clients/mp_web/scb/onSocketClose.d.ts +2 -0
- package/lib/clients/mp_web/scb/onSocketClose.js +3 -0
- package/lib/clients/mp_web/scb/onSocketError.d.ts +2 -0
- package/lib/clients/mp_web/scb/onSocketError.js +3 -0
- package/lib/clients/mp_web/scb/onSocketMessage.d.ts +2 -0
- package/lib/clients/mp_web/scb/onSocketMessage.js +3 -0
- package/lib/clients/mp_web/scb/onSocketOpen.d.ts +2 -0
- package/lib/clients/mp_web/scb/onSocketOpen.js +3 -0
- package/lib/clients/mp_web/scb/onUserCaptureScreen.d.ts +2 -0
- package/lib/clients/mp_web/scb/onUserCaptureScreen.js +3 -0
- package/lib/clients/mp_web/scb/openBluetoothAdapter.d.ts +2 -0
- package/lib/clients/mp_web/scb/openBluetoothAdapter.js +3 -0
- package/lib/clients/mp_web/scb/openDocument.d.ts +2 -0
- package/lib/clients/mp_web/scb/openDocument.js +3 -0
- package/lib/clients/mp_web/scb/openSetting.d.ts +2 -0
- package/lib/clients/mp_web/scb/openSetting.js +3 -0
- package/lib/clients/mp_web/scb/pageScrollTo.d.ts +2 -0
- package/lib/clients/mp_web/scb/pageScrollTo.js +3 -0
- package/lib/clients/mp_web/scb/previewImage.d.ts +2 -0
- package/lib/clients/mp_web/scb/previewImage.js +3 -0
- package/lib/clients/mp_web/scb/prompt.d.ts +2 -0
- package/lib/clients/mp_web/scb/prompt.js +3 -0
- package/lib/clients/mp_web/scb/reLaunch.d.ts +2 -0
- package/lib/clients/mp_web/scb/reLaunch.js +3 -0
- package/lib/clients/mp_web/scb/readBLECharacteristicValue.d.ts +2 -0
- package/lib/clients/mp_web/scb/readBLECharacteristicValue.js +3 -0
- package/lib/clients/mp_web/scb/redirectTo.d.ts +2 -0
- package/lib/clients/mp_web/scb/redirectTo.js +3 -0
- package/lib/clients/mp_web/scb/removeSavedFile.d.ts +2 -0
- package/lib/clients/mp_web/scb/removeSavedFile.js +3 -0
- package/lib/clients/mp_web/scb/removeStorage.d.ts +2 -0
- package/lib/clients/mp_web/scb/removeStorage.js +3 -0
- package/lib/clients/mp_web/scb/request.d.ts +2 -0
- package/lib/clients/mp_web/scb/request.js +3 -0
- package/lib/clients/mp_web/scb/rpc.d.ts +2 -0
- package/lib/clients/mp_web/scb/rpc.js +3 -0
- package/lib/clients/mp_web/scb/saveFile.d.ts +2 -0
- package/lib/clients/mp_web/scb/saveFile.js +3 -0
- package/lib/clients/mp_web/scb/saveImage.d.ts +2 -0
- package/lib/clients/mp_web/scb/saveImage.js +3 -0
- package/lib/clients/mp_web/scb/scan.d.ts +2 -0
- package/lib/clients/mp_web/scb/scan.js +3 -0
- package/lib/clients/mp_web/scb/sendSocketMessage.d.ts +2 -0
- package/lib/clients/mp_web/scb/sendSocketMessage.js +3 -0
- package/lib/clients/mp_web/scb/setBackgroundColor.d.ts +2 -0
- package/lib/clients/mp_web/scb/setBackgroundColor.js +3 -0
- package/lib/clients/mp_web/scb/setCanPullDown.d.ts +2 -0
- package/lib/clients/mp_web/scb/setCanPullDown.js +3 -0
- package/lib/clients/mp_web/scb/setClipboard.d.ts +2 -0
- package/lib/clients/mp_web/scb/setClipboard.js +3 -0
- package/lib/clients/mp_web/scb/setKeepScreenOn.d.ts +2 -0
- package/lib/clients/mp_web/scb/setKeepScreenOn.js +3 -0
- package/lib/clients/mp_web/scb/setNavigationBar.d.ts +2 -0
- package/lib/clients/mp_web/scb/setNavigationBar.js +3 -0
- package/lib/clients/mp_web/scb/setScreenBrightness.d.ts +2 -0
- package/lib/clients/mp_web/scb/setScreenBrightness.js +3 -0
- package/lib/clients/mp_web/scb/setStorage.d.ts +2 -0
- package/lib/clients/mp_web/scb/setStorage.js +3 -0
- package/lib/clients/mp_web/scb/setTabBarItem.d.ts +2 -0
- package/lib/clients/mp_web/scb/setTabBarItem.js +3 -0
- package/lib/clients/mp_web/scb/setTabBarStyle.d.ts +2 -0
- package/lib/clients/mp_web/scb/setTabBarStyle.js +3 -0
- package/lib/clients/mp_web/scb/setTransparentTitle.d.ts +2 -0
- package/lib/clients/mp_web/scb/setTransparentTitle.js +3 -0
- package/lib/clients/mp_web/scb/showActionSheet.d.ts +2 -0
- package/lib/clients/mp_web/scb/showActionSheet.js +3 -0
- package/lib/clients/mp_web/scb/showAuthGuide.d.ts +2 -0
- package/lib/clients/mp_web/scb/showAuthGuide.js +3 -0
- package/lib/clients/mp_web/scb/showLoading.d.ts +2 -0
- package/lib/clients/mp_web/scb/showLoading.js +3 -0
- package/lib/clients/mp_web/scb/showNavigationBarLoading.d.ts +2 -0
- package/lib/clients/mp_web/scb/showNavigationBarLoading.js +3 -0
- package/lib/clients/mp_web/scb/showSharePanel.d.ts +2 -0
- package/lib/clients/mp_web/scb/showSharePanel.js +3 -0
- package/lib/clients/mp_web/scb/showTabBar.d.ts +2 -0
- package/lib/clients/mp_web/scb/showTabBar.js +3 -0
- package/lib/clients/mp_web/scb/showToast.d.ts +2 -0
- package/lib/clients/mp_web/scb/showToast.js +3 -0
- package/lib/clients/mp_web/scb/signContract.d.ts +2 -0
- package/lib/clients/mp_web/scb/signContract.js +3 -0
- package/lib/clients/mp_web/scb/startBluetoothDevicesDiscovery.d.ts +2 -0
- package/lib/clients/mp_web/scb/startBluetoothDevicesDiscovery.js +3 -0
- package/lib/clients/mp_web/scb/startPullDownRefresh.d.ts +2 -0
- package/lib/clients/mp_web/scb/startPullDownRefresh.js +3 -0
- package/lib/clients/mp_web/scb/stopBluetoothDevicesDiscovery.d.ts +2 -0
- package/lib/clients/mp_web/scb/stopBluetoothDevicesDiscovery.js +3 -0
- package/lib/clients/mp_web/scb/stopPullDownRefresh.d.ts +2 -0
- package/lib/clients/mp_web/scb/stopPullDownRefresh.js +3 -0
- package/lib/clients/mp_web/scb/switchTab.d.ts +2 -0
- package/lib/clients/mp_web/scb/switchTab.js +3 -0
- package/lib/clients/mp_web/scb/tradePay.d.ts +2 -0
- package/lib/clients/mp_web/scb/tradePay.js +3 -0
- package/lib/clients/mp_web/scb/uploadFile.d.ts +2 -0
- package/lib/clients/mp_web/scb/uploadFile.js +3 -0
- package/lib/clients/mp_web/scb/vibrate.d.ts +2 -0
- package/lib/clients/mp_web/scb/vibrate.js +3 -0
- package/lib/clients/mp_web/scb/watchShake.d.ts +2 -0
- package/lib/clients/mp_web/scb/watchShake.js +3 -0
- package/lib/clients/mp_web/scb/writeBLECharacteristicValue.d.ts +2 -0
- package/lib/clients/mp_web/scb/writeBLECharacteristicValue.js +3 -0
- package/lib/clients/mp_web/tinaba/addPhoneContact.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/addPhoneContact.js +3 -0
- package/lib/clients/mp_web/tinaba/alert.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/alert.js +3 -0
- package/lib/clients/mp_web/tinaba/chooseFileFromDisk.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/chooseFileFromDisk.js +3 -0
- package/lib/clients/mp_web/tinaba/chooseImage.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/chooseImage.js +3 -0
- package/lib/clients/mp_web/tinaba/choosePhoneContact.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/choosePhoneContact.js +3 -0
- package/lib/clients/mp_web/tinaba/chooseVideo.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/chooseVideo.js +3 -0
- package/lib/clients/mp_web/tinaba/clearStorage.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/clearStorage.js +3 -0
- package/lib/clients/mp_web/tinaba/closeBluetoothAdapter.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/closeBluetoothAdapter.js +3 -0
- package/lib/clients/mp_web/tinaba/closeSocket.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/closeSocket.js +3 -0
- package/lib/clients/mp_web/tinaba/compressImage.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/compressImage.js +3 -0
- package/lib/clients/mp_web/tinaba/confirm.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/confirm.js +3 -0
- package/lib/clients/mp_web/tinaba/connectBLEDevice.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/connectBLEDevice.js +3 -0
- package/lib/clients/mp_web/tinaba/connectSocket.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/connectSocket.js +3 -0
- package/lib/clients/mp_web/tinaba/datePicker.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/datePicker.js +3 -0
- package/lib/clients/mp_web/tinaba/disconnectBLEDevice.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/disconnectBLEDevice.js +3 -0
- package/lib/clients/mp_web/tinaba/downloadFile.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/downloadFile.js +3 -0
- package/lib/clients/mp_web/tinaba/exitApp.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/exitApp.js +3 -0
- package/lib/clients/mp_web/tinaba/getAppId.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getAppId.js +3 -0
- package/lib/clients/mp_web/tinaba/getAppToken.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getAppToken.js +3 -0
- package/lib/clients/mp_web/tinaba/getAuthCode.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getAuthCode.js +3 -0
- package/lib/clients/mp_web/tinaba/getBLEDeviceCharacteristics.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getBLEDeviceCharacteristics.js +3 -0
- package/lib/clients/mp_web/tinaba/getBLEDeviceServices.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getBLEDeviceServices.js +3 -0
- package/lib/clients/mp_web/tinaba/getBackgroundFetchData.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getBackgroundFetchData.js +3 -0
- package/lib/clients/mp_web/tinaba/getBatteryInfo.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getBatteryInfo.js +3 -0
- package/lib/clients/mp_web/tinaba/getBluetoothAdapterState.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getBluetoothAdapterState.js +3 -0
- package/lib/clients/mp_web/tinaba/getBluetoothDevices.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getBluetoothDevices.js +3 -0
- package/lib/clients/mp_web/tinaba/getClipboard.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getClipboard.js +3 -0
- package/lib/clients/mp_web/tinaba/getConnectedBluetoothDevices.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getConnectedBluetoothDevices.js +3 -0
- package/lib/clients/mp_web/tinaba/getCurrentPages.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getCurrentPages.js +3 -0
- package/lib/clients/mp_web/tinaba/getEnterOptionsSync.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getEnterOptionsSync.js +3 -0
- package/lib/clients/mp_web/tinaba/getFileInfo.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getFileInfo.js +3 -0
- package/lib/clients/mp_web/tinaba/getImageInfo.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getImageInfo.js +3 -0
- package/lib/clients/mp_web/tinaba/getLocation.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getLocation.js +3 -0
- package/lib/clients/mp_web/tinaba/getNetworkType.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getNetworkType.js +3 -0
- package/lib/clients/mp_web/tinaba/getOpenUserInfo.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getOpenUserInfo.js +3 -0
- package/lib/clients/mp_web/tinaba/getRunScene.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getRunScene.js +3 -0
- package/lib/clients/mp_web/tinaba/getSDKVersion.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getSDKVersion.js +3 -0
- package/lib/clients/mp_web/tinaba/getSavedFileInfo.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getSavedFileInfo.js +3 -0
- package/lib/clients/mp_web/tinaba/getSavedFileList.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getSavedFileList.js +3 -0
- package/lib/clients/mp_web/tinaba/getScreenBrightness.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getScreenBrightness.js +3 -0
- package/lib/clients/mp_web/tinaba/getServerTime.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getServerTime.js +3 -0
- package/lib/clients/mp_web/tinaba/getSetting.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getSetting.js +3 -0
- package/lib/clients/mp_web/tinaba/getSiteInfo.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getSiteInfo.js +3 -0
- package/lib/clients/mp_web/tinaba/getStorage.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getStorage.js +3 -0
- package/lib/clients/mp_web/tinaba/getSystemInfo.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/getSystemInfo.js +3 -0
- package/lib/clients/mp_web/tinaba/hideBackHome.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/hideBackHome.js +3 -0
- package/lib/clients/mp_web/tinaba/hideKeyboard.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/hideKeyboard.js +3 -0
- package/lib/clients/mp_web/tinaba/hideLoading.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/hideLoading.js +3 -0
- package/lib/clients/mp_web/tinaba/hideNavigationBarLoading.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/hideNavigationBarLoading.js +3 -0
- package/lib/clients/mp_web/tinaba/hideTabBar.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/hideTabBar.js +3 -0
- package/lib/clients/mp_web/tinaba/hideToast.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/hideToast.js +3 -0
- package/lib/clients/mp_web/tinaba/index.d.ts +451 -0
- package/lib/clients/mp_web/tinaba/index.js +261 -0
- package/lib/clients/mp_web/tinaba/makePhoneCall.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/makePhoneCall.js +3 -0
- package/lib/clients/mp_web/tinaba/multiLevelSelect.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/multiLevelSelect.js +3 -0
- package/lib/clients/mp_web/tinaba/navigateBack.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/navigateBack.js +3 -0
- package/lib/clients/mp_web/tinaba/navigateBackMiniProgram.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/navigateBackMiniProgram.js +3 -0
- package/lib/clients/mp_web/tinaba/navigateTo.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/navigateTo.js +3 -0
- package/lib/clients/mp_web/tinaba/navigateToBizScene.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/navigateToBizScene.js +3 -0
- package/lib/clients/mp_web/tinaba/navigateToMiniProgram.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/navigateToMiniProgram.js +3 -0
- package/lib/clients/mp_web/tinaba/notifyBLECharacteristicValueChange.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/notifyBLECharacteristicValueChange.js +3 -0
- package/lib/clients/mp_web/tinaba/offAccelerometerChange.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/offAccelerometerChange.js +3 -0
- package/lib/clients/mp_web/tinaba/offBLECharacteristicValueChange.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/offBLECharacteristicValueChange.js +3 -0
- package/lib/clients/mp_web/tinaba/offBLEConnectionStateChanged.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/offBLEConnectionStateChanged.js +3 -0
- package/lib/clients/mp_web/tinaba/offBluetoothAdapterStateChange.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/offBluetoothAdapterStateChange.js +3 -0
- package/lib/clients/mp_web/tinaba/offBluetoothDeviceFound.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/offBluetoothDeviceFound.js +3 -0
- package/lib/clients/mp_web/tinaba/offCompassChange.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/offCompassChange.js +3 -0
- package/lib/clients/mp_web/tinaba/offMemoryWarning.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/offMemoryWarning.js +3 -0
- package/lib/clients/mp_web/tinaba/offSocketClose.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/offSocketClose.js +3 -0
- package/lib/clients/mp_web/tinaba/offSocketError.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/offSocketError.js +3 -0
- package/lib/clients/mp_web/tinaba/offSocketMessage.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/offSocketMessage.js +3 -0
- package/lib/clients/mp_web/tinaba/offSocketOpen.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/offSocketOpen.js +3 -0
- package/lib/clients/mp_web/tinaba/offUserCaptureScreen.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/offUserCaptureScreen.js +3 -0
- package/lib/clients/mp_web/tinaba/onAccelerometerChange.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/onAccelerometerChange.js +3 -0
- package/lib/clients/mp_web/tinaba/onBLECharacteristicValueChange.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/onBLECharacteristicValueChange.js +3 -0
- package/lib/clients/mp_web/tinaba/onBLEConnectionStateChanged.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/onBLEConnectionStateChanged.js +3 -0
- package/lib/clients/mp_web/tinaba/onBluetoothAdapterStateChange.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/onBluetoothAdapterStateChange.js +3 -0
- package/lib/clients/mp_web/tinaba/onBluetoothDeviceFound.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/onBluetoothDeviceFound.js +3 -0
- package/lib/clients/mp_web/tinaba/onCompassChange.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/onCompassChange.js +3 -0
- package/lib/clients/mp_web/tinaba/onMemoryWarning.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/onMemoryWarning.js +3 -0
- package/lib/clients/mp_web/tinaba/onSocketClose.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/onSocketClose.js +3 -0
- package/lib/clients/mp_web/tinaba/onSocketError.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/onSocketError.js +3 -0
- package/lib/clients/mp_web/tinaba/onSocketMessage.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/onSocketMessage.js +3 -0
- package/lib/clients/mp_web/tinaba/onSocketOpen.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/onSocketOpen.js +3 -0
- package/lib/clients/mp_web/tinaba/onUserCaptureScreen.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/onUserCaptureScreen.js +3 -0
- package/lib/clients/mp_web/tinaba/openBluetoothAdapter.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/openBluetoothAdapter.js +3 -0
- package/lib/clients/mp_web/tinaba/openDocument.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/openDocument.js +3 -0
- package/lib/clients/mp_web/tinaba/openSetting.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/openSetting.js +3 -0
- package/lib/clients/mp_web/tinaba/pageScrollTo.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/pageScrollTo.js +3 -0
- package/lib/clients/mp_web/tinaba/previewImage.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/previewImage.js +3 -0
- package/lib/clients/mp_web/tinaba/prompt.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/prompt.js +3 -0
- package/lib/clients/mp_web/tinaba/reLaunch.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/reLaunch.js +3 -0
- package/lib/clients/mp_web/tinaba/readBLECharacteristicValue.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/readBLECharacteristicValue.js +3 -0
- package/lib/clients/mp_web/tinaba/redirectTo.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/redirectTo.js +3 -0
- package/lib/clients/mp_web/tinaba/removeSavedFile.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/removeSavedFile.js +3 -0
- package/lib/clients/mp_web/tinaba/removeStorage.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/removeStorage.js +3 -0
- package/lib/clients/mp_web/tinaba/request.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/request.js +3 -0
- package/lib/clients/mp_web/tinaba/rpc.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/rpc.js +3 -0
- package/lib/clients/mp_web/tinaba/saveFile.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/saveFile.js +3 -0
- package/lib/clients/mp_web/tinaba/saveImage.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/saveImage.js +3 -0
- package/lib/clients/mp_web/tinaba/scan.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/scan.js +3 -0
- package/lib/clients/mp_web/tinaba/sendSocketMessage.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/sendSocketMessage.js +3 -0
- package/lib/clients/mp_web/tinaba/setBackgroundColor.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/setBackgroundColor.js +3 -0
- package/lib/clients/mp_web/tinaba/setCanPullDown.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/setCanPullDown.js +3 -0
- package/lib/clients/mp_web/tinaba/setClipboard.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/setClipboard.js +3 -0
- package/lib/clients/mp_web/tinaba/setKeepScreenOn.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/setKeepScreenOn.js +3 -0
- package/lib/clients/mp_web/tinaba/setNavigationBar.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/setNavigationBar.js +3 -0
- package/lib/clients/mp_web/tinaba/setScreenBrightness.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/setScreenBrightness.js +3 -0
- package/lib/clients/mp_web/tinaba/setStorage.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/setStorage.js +3 -0
- package/lib/clients/mp_web/tinaba/setTabBarItem.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/setTabBarItem.js +3 -0
- package/lib/clients/mp_web/tinaba/setTabBarStyle.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/setTabBarStyle.js +3 -0
- package/lib/clients/mp_web/tinaba/setTransparentTitle.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/setTransparentTitle.js +3 -0
- package/lib/clients/mp_web/tinaba/showActionSheet.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/showActionSheet.js +3 -0
- package/lib/clients/mp_web/tinaba/showAuthGuide.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/showAuthGuide.js +3 -0
- package/lib/clients/mp_web/tinaba/showLoading.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/showLoading.js +3 -0
- package/lib/clients/mp_web/tinaba/showNavigationBarLoading.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/showNavigationBarLoading.js +3 -0
- package/lib/clients/mp_web/tinaba/showSharePanel.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/showSharePanel.js +3 -0
- package/lib/clients/mp_web/tinaba/showTabBar.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/showTabBar.js +3 -0
- package/lib/clients/mp_web/tinaba/showToast.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/showToast.js +3 -0
- package/lib/clients/mp_web/tinaba/signContract.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/signContract.js +3 -0
- package/lib/clients/mp_web/tinaba/startBluetoothDevicesDiscovery.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/startBluetoothDevicesDiscovery.js +3 -0
- package/lib/clients/mp_web/tinaba/startPullDownRefresh.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/startPullDownRefresh.js +3 -0
- package/lib/clients/mp_web/tinaba/stopBluetoothDevicesDiscovery.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/stopBluetoothDevicesDiscovery.js +3 -0
- package/lib/clients/mp_web/tinaba/stopPullDownRefresh.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/stopPullDownRefresh.js +3 -0
- package/lib/clients/mp_web/tinaba/switchTab.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/switchTab.js +3 -0
- package/lib/clients/mp_web/tinaba/tradePay.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/tradePay.js +3 -0
- package/lib/clients/mp_web/tinaba/uploadFile.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/uploadFile.js +3 -0
- package/lib/clients/mp_web/tinaba/vibrate.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/vibrate.js +3 -0
- package/lib/clients/mp_web/tinaba/watchShake.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/watchShake.js +3 -0
- package/lib/clients/mp_web/tinaba/writeBLECharacteristicValue.d.ts +2 -0
- package/lib/clients/mp_web/tinaba/writeBLECharacteristicValue.js +3 -0
- package/lib/clients/mp_web/zalopay/addPhoneContact.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/addPhoneContact.js +3 -0
- package/lib/clients/mp_web/zalopay/alert.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/alert.js +3 -0
- package/lib/clients/mp_web/zalopay/chooseFileFromDisk.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/chooseFileFromDisk.js +3 -0
- package/lib/clients/mp_web/zalopay/chooseImage.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/chooseImage.js +3 -0
- package/lib/clients/mp_web/zalopay/choosePhoneContact.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/choosePhoneContact.js +3 -0
- package/lib/clients/mp_web/zalopay/chooseVideo.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/chooseVideo.js +3 -0
- package/lib/clients/mp_web/zalopay/clearStorage.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/clearStorage.js +3 -0
- package/lib/clients/mp_web/zalopay/closeBluetoothAdapter.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/closeBluetoothAdapter.js +3 -0
- package/lib/clients/mp_web/zalopay/closeSocket.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/closeSocket.js +3 -0
- package/lib/clients/mp_web/zalopay/compressImage.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/compressImage.js +3 -0
- package/lib/clients/mp_web/zalopay/confirm.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/confirm.js +3 -0
- package/lib/clients/mp_web/zalopay/connectBLEDevice.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/connectBLEDevice.js +3 -0
- package/lib/clients/mp_web/zalopay/connectSocket.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/connectSocket.js +3 -0
- package/lib/clients/mp_web/zalopay/datePicker.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/datePicker.js +3 -0
- package/lib/clients/mp_web/zalopay/disconnectBLEDevice.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/disconnectBLEDevice.js +3 -0
- package/lib/clients/mp_web/zalopay/downloadFile.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/downloadFile.js +3 -0
- package/lib/clients/mp_web/zalopay/exitApp.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/exitApp.js +3 -0
- package/lib/clients/mp_web/zalopay/getAppId.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getAppId.js +3 -0
- package/lib/clients/mp_web/zalopay/getAppToken.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getAppToken.js +3 -0
- package/lib/clients/mp_web/zalopay/getAuthCode.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getAuthCode.js +3 -0
- package/lib/clients/mp_web/zalopay/getBLEDeviceCharacteristics.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getBLEDeviceCharacteristics.js +3 -0
- package/lib/clients/mp_web/zalopay/getBLEDeviceServices.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getBLEDeviceServices.js +3 -0
- package/lib/clients/mp_web/zalopay/getBackgroundFetchData.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getBackgroundFetchData.js +3 -0
- package/lib/clients/mp_web/zalopay/getBatteryInfo.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getBatteryInfo.js +3 -0
- package/lib/clients/mp_web/zalopay/getBluetoothAdapterState.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getBluetoothAdapterState.js +3 -0
- package/lib/clients/mp_web/zalopay/getBluetoothDevices.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getBluetoothDevices.js +3 -0
- package/lib/clients/mp_web/zalopay/getClipboard.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getClipboard.js +3 -0
- package/lib/clients/mp_web/zalopay/getConnectedBluetoothDevices.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getConnectedBluetoothDevices.js +3 -0
- package/lib/clients/mp_web/zalopay/getCurrentPages.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getCurrentPages.js +3 -0
- package/lib/clients/mp_web/zalopay/getEnterOptionsSync.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getEnterOptionsSync.js +3 -0
- package/lib/clients/mp_web/zalopay/getFileInfo.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getFileInfo.js +3 -0
- package/lib/clients/mp_web/zalopay/getImageInfo.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getImageInfo.js +3 -0
- package/lib/clients/mp_web/zalopay/getLocation.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getLocation.js +3 -0
- package/lib/clients/mp_web/zalopay/getNetworkType.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getNetworkType.js +3 -0
- package/lib/clients/mp_web/zalopay/getOpenUserInfo.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getOpenUserInfo.js +3 -0
- package/lib/clients/mp_web/zalopay/getRunScene.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getRunScene.js +3 -0
- package/lib/clients/mp_web/zalopay/getSDKVersion.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getSDKVersion.js +3 -0
- package/lib/clients/mp_web/zalopay/getSavedFileInfo.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getSavedFileInfo.js +3 -0
- package/lib/clients/mp_web/zalopay/getSavedFileList.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getSavedFileList.js +3 -0
- package/lib/clients/mp_web/zalopay/getScreenBrightness.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getScreenBrightness.js +3 -0
- package/lib/clients/mp_web/zalopay/getServerTime.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getServerTime.js +3 -0
- package/lib/clients/mp_web/zalopay/getSetting.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getSetting.js +3 -0
- package/lib/clients/mp_web/zalopay/getSiteInfo.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getSiteInfo.js +3 -0
- package/lib/clients/mp_web/zalopay/getStorage.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getStorage.js +3 -0
- package/lib/clients/mp_web/zalopay/getSystemInfo.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/getSystemInfo.js +3 -0
- package/lib/clients/mp_web/zalopay/hideBackHome.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/hideBackHome.js +3 -0
- package/lib/clients/mp_web/zalopay/hideKeyboard.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/hideKeyboard.js +3 -0
- package/lib/clients/mp_web/zalopay/hideLoading.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/hideLoading.js +3 -0
- package/lib/clients/mp_web/zalopay/hideNavigationBarLoading.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/hideNavigationBarLoading.js +3 -0
- package/lib/clients/mp_web/zalopay/hideTabBar.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/hideTabBar.js +3 -0
- package/lib/clients/mp_web/zalopay/hideToast.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/hideToast.js +3 -0
- package/lib/clients/mp_web/zalopay/index.d.ts +451 -0
- package/lib/clients/mp_web/zalopay/index.js +261 -0
- package/lib/clients/mp_web/zalopay/makePhoneCall.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/makePhoneCall.js +3 -0
- package/lib/clients/mp_web/zalopay/multiLevelSelect.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/multiLevelSelect.js +3 -0
- package/lib/clients/mp_web/zalopay/navigateBack.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/navigateBack.js +3 -0
- package/lib/clients/mp_web/zalopay/navigateBackMiniProgram.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/navigateBackMiniProgram.js +3 -0
- package/lib/clients/mp_web/zalopay/navigateTo.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/navigateTo.js +3 -0
- package/lib/clients/mp_web/zalopay/navigateToBizScene.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/navigateToBizScene.js +3 -0
- package/lib/clients/mp_web/zalopay/navigateToMiniProgram.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/navigateToMiniProgram.js +3 -0
- package/lib/clients/mp_web/zalopay/notifyBLECharacteristicValueChange.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/notifyBLECharacteristicValueChange.js +3 -0
- package/lib/clients/mp_web/zalopay/offAccelerometerChange.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/offAccelerometerChange.js +3 -0
- package/lib/clients/mp_web/zalopay/offBLECharacteristicValueChange.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/offBLECharacteristicValueChange.js +3 -0
- package/lib/clients/mp_web/zalopay/offBLEConnectionStateChanged.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/offBLEConnectionStateChanged.js +3 -0
- package/lib/clients/mp_web/zalopay/offBluetoothAdapterStateChange.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/offBluetoothAdapterStateChange.js +3 -0
- package/lib/clients/mp_web/zalopay/offBluetoothDeviceFound.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/offBluetoothDeviceFound.js +3 -0
- package/lib/clients/mp_web/zalopay/offCompassChange.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/offCompassChange.js +3 -0
- package/lib/clients/mp_web/zalopay/offMemoryWarning.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/offMemoryWarning.js +3 -0
- package/lib/clients/mp_web/zalopay/offSocketClose.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/offSocketClose.js +3 -0
- package/lib/clients/mp_web/zalopay/offSocketError.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/offSocketError.js +3 -0
- package/lib/clients/mp_web/zalopay/offSocketMessage.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/offSocketMessage.js +3 -0
- package/lib/clients/mp_web/zalopay/offSocketOpen.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/offSocketOpen.js +3 -0
- package/lib/clients/mp_web/zalopay/offUserCaptureScreen.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/offUserCaptureScreen.js +3 -0
- package/lib/clients/mp_web/zalopay/onAccelerometerChange.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/onAccelerometerChange.js +3 -0
- package/lib/clients/mp_web/zalopay/onBLECharacteristicValueChange.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/onBLECharacteristicValueChange.js +3 -0
- package/lib/clients/mp_web/zalopay/onBLEConnectionStateChanged.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/onBLEConnectionStateChanged.js +3 -0
- package/lib/clients/mp_web/zalopay/onBluetoothAdapterStateChange.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/onBluetoothAdapterStateChange.js +3 -0
- package/lib/clients/mp_web/zalopay/onBluetoothDeviceFound.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/onBluetoothDeviceFound.js +3 -0
- package/lib/clients/mp_web/zalopay/onCompassChange.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/onCompassChange.js +3 -0
- package/lib/clients/mp_web/zalopay/onMemoryWarning.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/onMemoryWarning.js +3 -0
- package/lib/clients/mp_web/zalopay/onSocketClose.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/onSocketClose.js +3 -0
- package/lib/clients/mp_web/zalopay/onSocketError.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/onSocketError.js +3 -0
- package/lib/clients/mp_web/zalopay/onSocketMessage.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/onSocketMessage.js +3 -0
- package/lib/clients/mp_web/zalopay/onSocketOpen.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/onSocketOpen.js +3 -0
- package/lib/clients/mp_web/zalopay/onUserCaptureScreen.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/onUserCaptureScreen.js +3 -0
- package/lib/clients/mp_web/zalopay/openBluetoothAdapter.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/openBluetoothAdapter.js +3 -0
- package/lib/clients/mp_web/zalopay/openDocument.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/openDocument.js +3 -0
- package/lib/clients/mp_web/zalopay/openSetting.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/openSetting.js +3 -0
- package/lib/clients/mp_web/zalopay/pageScrollTo.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/pageScrollTo.js +3 -0
- package/lib/clients/mp_web/zalopay/previewImage.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/previewImage.js +3 -0
- package/lib/clients/mp_web/zalopay/prompt.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/prompt.js +3 -0
- package/lib/clients/mp_web/zalopay/reLaunch.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/reLaunch.js +3 -0
- package/lib/clients/mp_web/zalopay/readBLECharacteristicValue.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/readBLECharacteristicValue.js +3 -0
- package/lib/clients/mp_web/zalopay/redirectTo.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/redirectTo.js +3 -0
- package/lib/clients/mp_web/zalopay/removeSavedFile.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/removeSavedFile.js +3 -0
- package/lib/clients/mp_web/zalopay/removeStorage.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/removeStorage.js +3 -0
- package/lib/clients/mp_web/zalopay/request.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/request.js +3 -0
- package/lib/clients/mp_web/zalopay/rpc.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/rpc.js +3 -0
- package/lib/clients/mp_web/zalopay/saveFile.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/saveFile.js +3 -0
- package/lib/clients/mp_web/zalopay/saveImage.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/saveImage.js +3 -0
- package/lib/clients/mp_web/zalopay/scan.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/scan.js +3 -0
- package/lib/clients/mp_web/zalopay/sendSocketMessage.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/sendSocketMessage.js +3 -0
- package/lib/clients/mp_web/zalopay/setBackgroundColor.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/setBackgroundColor.js +3 -0
- package/lib/clients/mp_web/zalopay/setCanPullDown.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/setCanPullDown.js +3 -0
- package/lib/clients/mp_web/zalopay/setClipboard.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/setClipboard.js +3 -0
- package/lib/clients/mp_web/zalopay/setKeepScreenOn.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/setKeepScreenOn.js +3 -0
- package/lib/clients/mp_web/zalopay/setNavigationBar.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/setNavigationBar.js +3 -0
- package/lib/clients/mp_web/zalopay/setScreenBrightness.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/setScreenBrightness.js +3 -0
- package/lib/clients/mp_web/zalopay/setStorage.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/setStorage.js +3 -0
- package/lib/clients/mp_web/zalopay/setTabBarItem.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/setTabBarItem.js +3 -0
- package/lib/clients/mp_web/zalopay/setTabBarStyle.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/setTabBarStyle.js +3 -0
- package/lib/clients/mp_web/zalopay/setTransparentTitle.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/setTransparentTitle.js +3 -0
- package/lib/clients/mp_web/zalopay/showActionSheet.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/showActionSheet.js +3 -0
- package/lib/clients/mp_web/zalopay/showAuthGuide.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/showAuthGuide.js +3 -0
- package/lib/clients/mp_web/zalopay/showLoading.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/showLoading.js +3 -0
- package/lib/clients/mp_web/zalopay/showNavigationBarLoading.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/showNavigationBarLoading.js +3 -0
- package/lib/clients/mp_web/zalopay/showSharePanel.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/showSharePanel.js +3 -0
- package/lib/clients/mp_web/zalopay/showTabBar.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/showTabBar.js +3 -0
- package/lib/clients/mp_web/zalopay/showToast.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/showToast.js +3 -0
- package/lib/clients/mp_web/zalopay/signContract.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/signContract.js +3 -0
- package/lib/clients/mp_web/zalopay/startBluetoothDevicesDiscovery.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/startBluetoothDevicesDiscovery.js +3 -0
- package/lib/clients/mp_web/zalopay/startPullDownRefresh.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/startPullDownRefresh.js +3 -0
- package/lib/clients/mp_web/zalopay/stopBluetoothDevicesDiscovery.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/stopBluetoothDevicesDiscovery.js +3 -0
- package/lib/clients/mp_web/zalopay/stopPullDownRefresh.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/stopPullDownRefresh.js +3 -0
- package/lib/clients/mp_web/zalopay/switchTab.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/switchTab.js +3 -0
- package/lib/clients/mp_web/zalopay/tradePay.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/tradePay.js +3 -0
- package/lib/clients/mp_web/zalopay/uploadFile.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/uploadFile.js +3 -0
- package/lib/clients/mp_web/zalopay/vibrate.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/vibrate.js +3 -0
- package/lib/clients/mp_web/zalopay/watchShake.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/watchShake.js +3 -0
- package/lib/clients/mp_web/zalopay/writeBLECharacteristicValue.d.ts +2 -0
- package/lib/clients/mp_web/zalopay/writeBLECharacteristicValue.js +3 -0
- package/lib/clients/web/changipay/alert.d.ts +2 -0
- package/lib/clients/web/changipay/alert.js +3 -0
- package/lib/clients/web/changipay/getAuthCode.d.ts +2 -0
- package/lib/clients/web/changipay/getAuthCode.js +3 -0
- package/lib/clients/web/changipay/getLocation.d.ts +2 -0
- package/lib/clients/web/changipay/getLocation.js +3 -0
- package/lib/clients/web/changipay/getStorage.d.ts +2 -0
- package/lib/clients/web/changipay/getStorage.js +3 -0
- package/lib/clients/web/changipay/getStorageSync.d.ts +2 -0
- package/lib/clients/web/changipay/getStorageSync.js +3 -0
- package/lib/clients/web/changipay/getSystemInfo.d.ts +2 -0
- package/lib/clients/web/changipay/getSystemInfo.js +3 -0
- package/lib/clients/web/changipay/getSystemInfoSync.d.ts +2 -0
- package/lib/clients/web/changipay/getSystemInfoSync.js +3 -0
- package/lib/clients/web/changipay/index.d.ts +53 -0
- package/lib/clients/web/changipay/index.js +33 -0
- package/lib/clients/web/changipay/navigateTo.d.ts +2 -0
- package/lib/clients/web/changipay/navigateTo.js +3 -0
- package/lib/clients/web/changipay/redirectTo.d.ts +2 -0
- package/lib/clients/web/changipay/redirectTo.js +3 -0
- package/lib/clients/web/changipay/removeStorage.d.ts +2 -0
- package/lib/clients/web/changipay/removeStorage.js +3 -0
- package/lib/clients/web/changipay/request.d.ts +2 -0
- package/lib/clients/web/changipay/request.js +3 -0
- package/lib/clients/web/changipay/setClipboard.d.ts +2 -0
- package/lib/clients/web/changipay/setClipboard.js +3 -0
- package/lib/clients/web/changipay/setStorage.d.ts +2 -0
- package/lib/clients/web/changipay/setStorage.js +3 -0
- package/lib/clients/web/changipay/showToast.d.ts +2 -0
- package/lib/clients/web/changipay/showToast.js +3 -0
- package/lib/clients/web/kaspi/alert.d.ts +2 -0
- package/lib/clients/web/kaspi/alert.js +3 -0
- package/lib/clients/web/kaspi/getAuthCode.d.ts +2 -0
- package/lib/clients/web/kaspi/getAuthCode.js +3 -0
- package/lib/clients/web/kaspi/getLocation.d.ts +2 -0
- package/lib/clients/web/kaspi/getLocation.js +3 -0
- package/lib/clients/web/kaspi/getStorage.d.ts +2 -0
- package/lib/clients/web/kaspi/getStorage.js +3 -0
- package/lib/clients/web/kaspi/getStorageSync.d.ts +2 -0
- package/lib/clients/web/kaspi/getStorageSync.js +3 -0
- package/lib/clients/web/kaspi/getSystemInfo.d.ts +2 -0
- package/lib/clients/web/kaspi/getSystemInfo.js +3 -0
- package/lib/clients/web/kaspi/getSystemInfoSync.d.ts +2 -0
- package/lib/clients/web/kaspi/getSystemInfoSync.js +3 -0
- package/lib/clients/web/kaspi/index.d.ts +53 -0
- package/lib/clients/web/kaspi/index.js +33 -0
- package/lib/clients/web/kaspi/navigateTo.d.ts +2 -0
- package/lib/clients/web/kaspi/navigateTo.js +3 -0
- package/lib/clients/web/kaspi/redirectTo.d.ts +2 -0
- package/lib/clients/web/kaspi/redirectTo.js +3 -0
- package/lib/clients/web/kaspi/removeStorage.d.ts +2 -0
- package/lib/clients/web/kaspi/removeStorage.js +3 -0
- package/lib/clients/web/kaspi/request.d.ts +2 -0
- package/lib/clients/web/kaspi/request.js +3 -0
- package/lib/clients/web/kaspi/setClipboard.d.ts +2 -0
- package/lib/clients/web/kaspi/setClipboard.js +3 -0
- package/lib/clients/web/kaspi/setStorage.d.ts +2 -0
- package/lib/clients/web/kaspi/setStorage.js +3 -0
- package/lib/clients/web/kaspi/showToast.d.ts +2 -0
- package/lib/clients/web/kaspi/showToast.js +3 -0
- package/lib/code/authLoginSrcCode.js +38 -13
- package/lib/common/apis/custom/web/changipay/getAuthCode.d.ts +3 -0
- package/lib/common/apis/custom/web/changipay/getAuthCode.js +66 -0
- package/lib/common/apis/custom/web/changipay/getSystemInfo.d.ts +2 -0
- package/lib/common/apis/custom/web/changipay/getSystemInfo.js +36 -0
- package/lib/common/apis/custom/web/kaspi/getAuthCode.d.ts +3 -0
- package/lib/common/apis/custom/web/kaspi/getAuthCode.js +66 -0
- package/lib/common/apis/custom/web/kaspi/getSystemInfo.d.ts +2 -0
- package/lib/common/apis/custom/web/kaspi/getSystemInfo.js +36 -0
- package/lib/common/apis/generated/web/getSystemInfoSync.d.ts +2 -0
- package/lib/common/apis/generated/web/getSystemInfoSync.js +7 -0
- package/lib/common/apis/generated/web/redirectTo.d.ts +9 -0
- package/lib/common/apis/generated/web/redirectTo.js +14 -0
- package/lib/dsl.d.ts +236 -236
- package/lib/dsl.js +236 -236
- package/lib/umd/index.js +1 -1
- package/lib/umd/mp_web_alipay.js +1 -1
- package/lib/umd/mp_web_hipay.js +1 -0
- package/lib/umd/mp_web_kakaopay.js +1 -0
- package/lib/umd/mp_web_mpay.js +1 -1
- package/lib/umd/mp_web_scb.js +1 -0
- package/lib/umd/mp_web_tinaba.js +1 -0
- package/lib/umd/mp_web_zalopay.js +1 -0
- package/lib/umd/web_alipay.js +1 -1
- package/lib/umd/web_changipay.js +2 -0
- package/lib/umd/web_changipay.js.LICENSE.txt +1 -0
- package/lib/umd/web_kaspi.js +2 -0
- package/lib/umd/web_kaspi.js.LICENSE.txt +1 -0
- package/package.json +1 -1
package/lib/umd/mp_web_alipay.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.my=t():e.my=t()}(self,()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>Y});var n=function(e){if(window.AlipayJSBridge)return e();document.addEventListener("AlipayJSBridgeReady",function(){return e()},!1)},r=!1,a=[];function o(e){return a.push(e),function(){a=a.filter(function(t){return t!==e})}}function c(e){return r||(document.addEventListener("onToWebViewMessage",function(e){var t=e.data.res;if(t&&"message"===t.type){var n=JSON.parse(t.data);a.forEach(function(e){return e(n)})}}),r=!0),n(function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:e})})}var i={NOTFOUND:{code:-1,message:function(e){return"".concat(e," is not found")}},NOTALLOWED:{code:-2,message:function(e){return"".concat(e," is not allowed")}},INVALID:{code:-3,message:function(e){return"".concat(e," is invalid")}},NOTBIND:{code:-4,message:function(e){return"".concat(e," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(e){return"".concat(e," exec fail, params error")}},TIMEOUT:{code:-6,message:function(e){return"".concat(e," exec fail, timeout")}}},u=function(e,t){void 0===t&&(t="");var n=i[e];return{errorCode:n.code,errorMessage:(0,n.message)(t),errorSouce:"hylid"}},s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},s.apply(this,arguments)},l={};function y(e,t,n){n=s({timeout:0},n);var r=e+"_"+Math.floor(1e6*Math.random());t&&(l[r]=t),c({source:"hylid",type:"apiCall",api:e,serialId:r,options:t,config:n,isSync:null==n?void 0:n.isSync,useMyCallToInvoke:null==n?void 0:n.useMyCallToInvoke});var a=t;(null==n?void 0:n.timeout)&&(null==a?void 0:a.fail)&&setTimeout(function(){l[r]&&(delete l[r],a.fail(u("TIMEOUT")))},n.timeout)}o(function(e){var t,n=e,r=n.serialId;if(r&&l[r]){var a=l[r],o=n.result;if("callback"===(null===(t=n.config)||void 0===t?void 0:t.type)){var c=o||{},i=c._data_;return"success"===c._type_?a(i):a(void 0,i)}var u=a||{},s=u.success,y=u.fail,f=u.complete,p=o||{},g=p._data_,d=p._type_;d?("success"===d&&(null==s||s(g)),"fail"===d&&(null==y||y(g)),null==f||f(g)):((null==o?void 0:o.error)?null==y||y(o):null==s||s(o),null==f||f(o)),delete l[r]}}),y.onMessage=o,y.postMessage=c,y.broadcastGlobalData=function(e,t){c({source:"hylid",type:"broadcast",from:window.location.href,key:e,result:t})},y.onReceiveGlobalData=function(e,t){return o(function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===e){var a=r.result||{},o=a._data_;return"success"===a._type_?t(o,void 0,r.from):t(void 0,o,r.from)}})},y.onPageEvent=function(e,t){return c({source:"hylid",type:"pageEvent",event:e}),o(function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===e){var a=r.result||{},o=a._data_;return"success"===a._type_?t(o):t(void 0,o)}})};var f=function(){var e={},t=!1;return function(r,a,o){return new Promise(function(c,i){var u,l=a||{},y=l.success,f=l.fail,p=o||{},g=p.timeout,d=void 0===g?2e4:g,h=p.isSync;d>0&&(u=setTimeout(function(){var e={error:-101,errorMessage:"[".concat(r,"]: Timeout")};i(e),null==f||f(e)},d));var m={apiName:r,options:s(s({},a),{success:function(e){u&&clearTimeout(u),c(e),null==y||y(e)},fail:function(e){u&&clearTimeout(u),i(e),null==f||f(e)}}),isSync:h};n(function(){t||(document.addEventListener("onToWebViewMessage",function(t){var n=t.data.res;"message"===n.type&&function(t){var n,r=t.serialId;if(r&&e[r]){var a=e[r],o=t.result;if("callback"===(null===(n=t.config)||void 0===n?void 0:n.type)){var c=o||{},i=c._data_;return"success"===c._type_?a(i):a(void 0,i)}var u=a||{},s=u.success,l=u.fail,y=u.complete,f=o||{},p=f._data_,g=f._type_;g?("success"===g&&(null==s||s(p)),"fail"===g&&(null==l||l(p)),null==y||y(p)):((null==o?void 0:o.error)?null==l||l(o):null==s||s(o),null==y||y(o)),delete e[r]}}(JSON.parse(n.data))}),t=!0),function(t){var n,r=t.apiName,a=t.options,o=t.isSync,c=window,i=Math.floor(1e6*Math.random()),u="".concat(r,"_").concat(i);a&&(e[u]=a);var s={type:"apiCall",api:r,serialId:u,options:a,isSync:o,source:"hylid"};null===(n=c.AlipayJSBridge)||void 0===n||n.call("postWebViewMessage",{type:"message",detail:s})}(m)})})}}();var p=function(){return p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},p.apply(this,arguments)};function g(e,t){var n=e.filter(function(e){return e.match.every(function(e){return e.test(t)})});if(n.length){var r=n[0].name;if(n.length>1){var a=n.map(function(e){return e.name}).join(",");h("Multiple clients have been identified(".concat(a,"), and the first one(").concat(r,")is used by default."))}return r}}function d(e,t){return Object.keys(e).reduce(function(n,r){return n["is".concat(r)]=t===e[r],n},{})}function h(e){console.info("[hylid-env]: ".concat(e))}var m={WEB:"web",MPWEB:"mpweb",MP:"mp"},v={DEMO:"demo",ALIPAY:"alipay",ALIPAYHK:"alipayhk",TNGD:"tngd",GCASH:"gcash",TRUEMONEY:"tmn",DANA:"dana",KAKAOPAY:"kakaopay",KAKAOTALK:"kakaotalk",NAVERPAY:"naverpay",MPAY:"mpay",TOSSPAY:"toss",HIPAY:"hipay",CHOPE:"chope",VODAPAY:"vodapay",CHANGIPAY:"changipay",OCBC:"ocbc",MANDIRI:"mandiri",NAYAPAY:"nayapay",TINABA:"tinaba",KASPI:"kaspi",H5:"h5",WECHAT:"wechat",TNGD_H5NG:"tngdh5ng",WORLDFIRST:"worldfirst"},S=/miniprogram/i,b=/^((?!miniprogram).)*$/i,A=/griver/i,O=/^((?!griver).)*$/i,C=[{name:v.DEMO,match:[/demo/]},{name:v.ALIPAYHK,match:[/alipayHK/]},{name:v.TNGD,match:[/tngd/]},{name:v.GCASH,match:[/gcash/]},{name:v.TRUEMONEY,match:[/tmn/]},{name:v.DANA,match:[/dana/]},{name:v.TOSSPAY,match:[/toss/]},{name:v.ALIPAY,match:[/alipay/]},{name:v.MPAY,match:[/MPay/]},{name:v.HIPAY,match:[/hipay/]}],P=[{name:v.DEMO,match:[/alipayIDE/i]},{name:v.ALIPAYHK,match:[S,O,/AlipayClientHK/]},{name:v.TNGD,match:[S,/TNGKit|Touch 'n Go/]},{name:v.GCASH,match:[S,A,/GCash/]},{name:v.TRUEMONEY,match:[S,A,/TrueMoney/]},{name:v.MPAY,match:[S,O,/mpay|macaupay/i]},{name:v.ALIPAY,match:[S,O,/alipay/i]},{name:v.DEMO,match:[S,A]}];function w(){return g(P,window.navigator.userAgent)}var B=[{name:v.ALIPAYHK,match:[b,O,/AlipayClientHK/]},{name:v.TNGD,match:[b,A,/TNGKit|Touch 'n Go/]},{name:v.TNGD_H5NG,match:[b,/TNGKit|Touch 'n Go/,/IAPWebH5NG/]},{name:v.GCASH,match:[b,A,/GCash/]},{name:v.TRUEMONEY,match:[b,A,/TrueMoney/i]},{name:v.KAKAOPAY,match:[b,/PAYCLIENT|KAKAOTALK|KAKAOPAY/]},{name:v.KAKAOTALK,match:[b,/ALIPAYCONNECT_KAKAO_TALK/]},{name:v.NAVERPAY,match:[b,/NAVER/]},{name:v.MPAY,match:[b,/mpay|macaupay/i]},{name:v.TOSSPAY,match:[b,/Toss/i]},{name:v.ALIPAY,match:[b,O,/AlipayClient/]},{name:v.DEMO,match:[b,A,/GriverDemo/]},{name:v.WORLDFIRST,match:[b,O,/WorldFirst/]}];function k(){return g(B,window.navigator.userAgent)||v.H5}var T=function(){var e,t;if("undefined"!=typeof my&&"string"==typeof my.SDKVersion)e=g(C,my.getSystemInfoSync().app),t=m.MP;else{var n=function(){var e,t="__hy_env__",n=(null===(e=window.location.search)||void 0===e?void 0:e.match(/__app__=([^&]*)/))||[],r=n[1],a=(window.location.search.match(/__platform__=([^&]*)/)||[])[1],o=JSON.parse(localStorage.getItem(t)||"{}")||{};r&&(o.client=r),a&&(o.platform=a);try{localStorage.setItem(t,JSON.stringify(o))}catch(e){}if(n[1]){var c=window.location.search.replace(new RegExp("".concat(n[0],"(&)*")),""),i=window.location.hash||"",u="".concat(window.location.pathname).concat(c).concat(i);history.replaceState(null,"",u)}var s=JSON.parse(localStorage.getItem(t)||"{}"),l=localStorage.getItem("_CB__app__");return l?p(p({},s),{client:l}):s}();n.platform?(t=n.platform,e=n.client||("mpweb"===t?w():k())):(e=n.client||w())?t=m.MPWEB:(e=k(),t=m.WEB)}return t&&e||h("Cannot identify your client."),{client:e,platform:t}}(),E=T.client,D=T.platform;d(v,E),d(m,D);var I,L,M=((I={})[m.MP]=function(e,t,n){var r=(n||{}).type,a=void 0===r?"async":r;return"sync"===a||(null==n?void 0:n.isSync)?my[e](t):("async"===a&&(my[e]?my[e](t):my.call(e,t)),"callback"===a&&my[e](t),"attribute"===a?my[e]:void 0)},I[m.MPWEB]=y,I[m.WEB]=function(e,t,r){n(function(){var n=(r||{}).type,a=void 0===n?"async":n;"async"===a&&window.AlipayJSBridge.call(e,t,function(e){var n=t||{},r=n.success,a=n.fail,o=n.complete;e.error||e.errorCode?null==a||a(e):null==r||r(e),null==o||o(e)}),"callback"===a&&window.AlipayJSBridge.call(e,t)})},I);(L={})[m.MPWEB]=f,L[m.WEB]=function(e,t,n){return new Promise(function(r,a){var o,c=t||{},i=(c.success,c.fail),u=(c.complete,(n||{}).timeout),s=void 0===u?2e4:u;s>0&&(o=setTimeout(function(){var t={error:-101,errorMessage:"[".concat(e,"]: Timeout")};a(t),null==i||i(t)},s)),window.AlipayJSBridge.call(e,t,function(e){var n=t||{},c=n.success,i=n.fail,u=n.complete;o&&clearTimeout(o),(null==e?void 0:e.error)?(a(e),null==i||i(e)):(r(e),null==c||c(e)),null==u||u(e)})})};var _=["flowType"];function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const Y={addPhoneContact:function(e){return y("addPhoneContact",e,{type:"async"})},alert:function(e){return y("alert",e,{type:"async"})},chooseImage:function(e){return y("chooseImage",e,{type:"async"})},choosePhoneContact:function(e){return y("choosePhoneContact",e,{type:"async"})},clearStorage:function(e){return y("clearStorage",e,{type:"async"})},closeBluetoothAdapter:function(e){return y("closeBluetoothAdapter",e,{type:"async"})},closeSocket:function(e){return y("closeSocket",e,{type:"async"})},confirm:function(e){return y("confirm",e,{type:"async"})},connectBLEDevice:function(e){return y("connectBLEDevice",e,{type:"async"})},connectSocket:function(e){return y("connectSocket",e,{type:"async"})},datePicker:function(e){return y("datePicker",e,{type:"async"})},disconnectBLEDevice:function(e){return y("disconnectBLEDevice",e,{type:"async"})},downloadFile:function(e){return y("downloadFile",e,{type:"async"})},getAuthCode:function(e){return y("getAuthCode",e,{type:"async"})},getBatteryInfo:function(e){return y("getBatteryInfo",e,{type:"async"})},getBLEDeviceCharacteristics:function(e){return y("getBLEDeviceCharacteristics",e,{type:"async"})},getBLEDeviceServices:function(e){return y("getBLEDeviceServices",e,{type:"async"})},getBluetoothAdapterState:function(e){return y("getBluetoothAdapterState",e,{type:"async"})},getBluetoothDevices:function(e){return y("getBluetoothDevices",e,{type:"async"})},getClipboard:function(e){return y("getClipboard",e,{type:"async"})},getConnectedBluetoothDevices:function(e){return y("getConnectedBluetoothDevices",e,{type:"async"})},getFileInfo:function(e){return y("getFileInfo",e,{type:"async"})},getImageInfo:function(e){return y("getImageInfo",e,{type:"async"})},getLocation:function(e){return y("getLocation",e,{type:"async"})},getNetworkType:function(e){return y("getNetworkType",e,{type:"async"})},getOpenUserInfo:function(e){return y("getOpenUserInfo",e,{type:"async"})},getPhoneNumber:function(e){return y("getPhoneNumber",e,{type:"async"})},getSavedFileInfo:function(e){return y("getSavedFileInfo",e,{type:"async"})},getSavedFileList:function(e){return y("getSavedFileList",e,{type:"async"})},getScreenBrightness:function(e){return y("getScreenBrightness",e,{type:"async"})},getServerTime:function(e){return y("getServerTime",e,{type:"async"})},getSetting:function(e){return y("getSetting",e,{type:"async"})},getSiteInfo:function(e){return y("getSiteInfo",e,{type:"async"})},getStorage:function(e){return y("getStorage",e,{type:"async"})},getSystemInfo:function(e){return y("getSystemInfo",e,{type:"async"})},hideBackHome:function(e){return y("hideBackHome",e,{type:"async"})},hideKeyboard:function(e){return y("hideKeyboard",e,{type:"async"})},hideLoading:function(e){return y("hideLoading",e,{type:"async"})},hideNavigationBarLoading:function(e){return y("hideNavigationBarLoading",e,{type:"async"})},hideTabBar:function(e){return y("hideTabBar",e,{type:"async"})},hideToast:function(e){return y("hideToast",e,{type:"async"})},makePhoneCall:function(e){return y("makePhoneCall",e,{type:"async"})},multiLevelSelect:function(e){return y("multiLevelSelect",e,{type:"async"})},navigateBack:function(e){return y("navigateBack",e,{type:"async"})},navigateBackMiniProgram:function(e){return y("navigateBackMiniProgram",e,{type:"async"})},navigateTo:function(e){return y("navigateTo",e,{type:"async"})},navigateToMiniProgram:function(e){return y("navigateToMiniProgram",e,{type:"async"})},notifyBLECharacteristicValueChange:function(e){return y("notifyBLECharacteristicValueChange",e,{type:"async"})},offAccelerometerChange:function(e){return y("offAccelerometerChange",e,{type:"callback"})},offBLECharacteristicValueChange:function(e){return y("offBLECharacteristicValueChange",e,{type:"callback"})},offBLEConnectionStateChanged:function(e){return y("offBLEConnectionStateChanged",e,{type:"callback"})},offBluetoothAdapterStateChange:function(e){return y("offBluetoothAdapterStateChange",e,{type:"callback"})},offBluetoothDeviceFound:function(e){return y("offBluetoothDeviceFound",e,{type:"callback"})},offCompassChange:function(e){return y("offCompassChange",e,{type:"callback"})},offMemoryWarning:function(e){return y("offMemoryWarning",e,{type:"callback"})},offSocketClose:function(e){return y("offSocketClose",e,{type:"callback"})},offSocketError:function(e){return y("offSocketError",e,{type:"callback"})},offSocketMessage:function(e){return y("offSocketMessage",e,{type:"callback"})},offSocketOpen:function(e){return y("offSocketOpen",e,{type:"callback"})},offUserCaptureScreen:function(e){return y("offUserCaptureScreen",e,{type:"callback"})},onAccelerometerChange:function(e){return y("onAccelerometerChange",e,{type:"callback"})},onBLECharacteristicValueChange:function(e){return y("onBLECharacteristicValueChange",e,{type:"callback"})},onBLEConnectionStateChanged:function(e){return y("onBLEConnectionStateChanged",e,{type:"callback"})},onBluetoothAdapterStateChange:function(e){return y("onBluetoothAdapterStateChange",e,{type:"callback"})},onBluetoothDeviceFound:function(e){return y("onBluetoothDeviceFound",e,{type:"callback"})},onCompassChange:function(e){return y("onCompassChange",e,{type:"callback"})},onMemoryWarning:function(e){return y("onMemoryWarning",e,{type:"callback"})},onSocketClose:function(e){return y("onSocketClose",e,{type:"callback"})},onSocketError:function(e){return y("onSocketError",e,{type:"callback"})},onSocketMessage:function(e){return y("onSocketMessage",e,{type:"callback"})},onSocketOpen:function(e){return y("onSocketOpen",e,{type:"callback"})},onUserCaptureScreen:function(e){return y("onUserCaptureScreen",e,{type:"callback"})},openBluetoothAdapter:function(e){return y("openBluetoothAdapter",e,{type:"async"})},openDocument:function(e){return y("openDocument",e,{type:"async"})},openSetting:function(e){return y("openSetting",e,{type:"async"})},pageScrollTo:function(e){return y("pageScrollTo",e,{type:"async"})},previewImage:function(e){return y("previewImage",e,{type:"async"})},prompt:function(e){return y("prompt",e,{type:"async"})},readBLECharacteristicValue:function(e){return y("readBLECharacteristicValue",e,{type:"async"})},redirectTo:function(e){return y("redirectTo",e,{type:"async"})},reLaunch:function(e){return y("reLaunch",e,{type:"async"})},removeSavedFile:function(e){return y("removeSavedFile",e,{type:"async"})},removeStorage:function(e){return y("removeStorage",e,{type:"async"})},request:function(e){return y("request",e,{type:"async"})},rpc:function(e){return y("rpc",e,{type:"async"})},saveFile:function(e){return y("saveFile",e,{type:"async"})},saveImage:function(e){return y("saveImage",e,{type:"async"})},scan:function(e){return y("scan",e,{type:"async"})},sendSocketMessage:function(e){return y("sendSocketMessage",e,{type:"async"})},setBackgroundColor:function(e){return y("setBackgroundColor",e,{type:"async"})},setCanPullDown:function(e){return y("setCanPullDown",e,{type:"async"})},setClipboard:function(e){return y("setClipboard",e,{type:"async"})},setKeepScreenOn:function(e){return y("setKeepScreenOn",e,{type:"async"})},setNavigationBar:function(e){return y("setNavigationBar",e,{type:"async"})},setOptionMenu:function(e){return y("setOptionMenu",e,{type:"async"})},setScreenBrightness:function(e){return y("setScreenBrightness",e,{type:"async"})},setStorage:function(e){return y("setStorage",e,{type:"async"})},setTabBarStyle:function(e){return y("setTabBarStyle",e,{type:"async"})},showActionSheet:function(e){return y("showActionSheet",e,{type:"async"})},showAuthGuide:function(e){return y("showAuthGuide",e,{type:"async"})},showLoading:function(e){return y("showLoading",e,{type:"async"})},showNavigationBarLoading:function(e){return y("showNavigationBarLoading",e,{type:"async"})},showToast:function(e){return y("showToast",e,{type:"async"})},signContract:function(e){return y("signContract",e,{type:"async"})},startBluetoothDevicesDiscovery:function(e){return y("startBluetoothDevicesDiscovery",e,{type:"async"})},startPullDownRefresh:function(e){return y("startPullDownRefresh",e,{type:"async"})},stopBluetoothDevicesDiscovery:function(e){return y("stopBluetoothDevicesDiscovery",e,{type:"async"})},stopPullDownRefresh:function(e){return y("stopPullDownRefresh",e,{type:"async"})},switchTab:function(e){return y("switchTab",e,{type:"async"})},crossPay:function(e){return y("crossPay",e,{type:"async"})},uploadFile:function(e){return y("uploadFile",e,{type:"async"})},vibrate:function(e){return y("vibrate",e,{type:"async"})},watchShake:function(e){return y("watchShake",e,{type:"async"})},writeBLECharacteristicValue:function(e){return y("writeBLECharacteristicValue",e,{type:"async"})},showSharePanel:function(e){return y("showSharePanel",e,{type:"async"})},getBackgroundFetchData:function(e){return y("getBackgroundFetchData",e,{type:"async"})},getEnterOptionsSync:function(e){return y("getEnterOptionsSync",e,{type:"async"})},tradePay:function(e){var t,n,r,a=e||{},o=a.flowType,c=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(a,_);t="a+"===o?"tradePayCrossApp":"tradePay",n=c,D?M[D](t,n,r):function(e,t,n){var r;void 0===n&&(n={});var a=n.type,o=void 0===a?"async":a,c=u("NOTFOUND",e);if("sync"===o)return c;"callback"===o&&(null==t||t(c)),"async"===o&&(null===(r=null==t?void 0:t.fail)||void 0===r||r.call(t,c))}(n,r)},getAppId:function(e){y("getAppIdSync",e,{type:"sync",isSync:!0})},getCurrentPages:function(e){y("__hy_internal__",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach(function(t){N(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({name:"getCurrentPages"},e))},getSDKVersion:function(e){y("SDKVersion",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach(function(t){N(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),{type:"attribute"})}};return t.default})());
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.my=t():e.my=t()}(self,()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>Y});var n=function(e){if(window.AlipayJSBridge)return e();document.addEventListener("AlipayJSBridgeReady",function(){return e()},!1)},r=!1,a=[];function o(e){return a.push(e),function(){a=a.filter(function(t){return t!==e})}}function c(e){return r||(document.addEventListener("onToWebViewMessage",function(e){var t=e.data.res;if(t&&"message"===t.type){var n=JSON.parse(t.data);a.forEach(function(e){return e(n)})}}),r=!0),n(function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:e})})}var i={NOTFOUND:{code:-1,message:function(e){return"".concat(e," is not found")}},NOTALLOWED:{code:-2,message:function(e){return"".concat(e," is not allowed")}},INVALID:{code:-3,message:function(e){return"".concat(e," is invalid")}},NOTBIND:{code:-4,message:function(e){return"".concat(e," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(e){return"".concat(e," exec fail, params error")}},TIMEOUT:{code:-6,message:function(e){return"".concat(e," exec fail, timeout")}}},u=function(e,t){void 0===t&&(t="");var n=i[e];return{errorCode:n.code,errorMessage:(0,n.message)(t),errorSouce:"hylid"}},s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},s.apply(this,arguments)},l={};function y(e,t,n){n=s({timeout:0},n);var r=e+"_"+Math.floor(1e6*Math.random());t&&(l[r]=t),c({source:"hylid",type:"apiCall",api:e,serialId:r,options:t,config:n,isSync:null==n?void 0:n.isSync,useMyCallToInvoke:null==n?void 0:n.useMyCallToInvoke});var a=t;(null==n?void 0:n.timeout)&&(null==a?void 0:a.fail)&&setTimeout(function(){l[r]&&(delete l[r],a.fail(u("TIMEOUT")))},n.timeout)}o(function(e){var t,n=e,r=n.serialId;if(r&&l[r]){var a=l[r],o=n.result;if("callback"===(null===(t=n.config)||void 0===t?void 0:t.type)){var c=o||{},i=c._data_;return"success"===c._type_?a(i):a(void 0,i)}var u=a||{},s=u.success,y=u.fail,f=u.complete,p=o||{},g=p._data_,d=p._type_;d?("success"===d&&(null==s||s(g)),"fail"===d&&(null==y||y(g)),null==f||f(g)):((null==o?void 0:o.error)?null==y||y(o):null==s||s(o),null==f||f(o)),delete l[r]}}),y.onMessage=o,y.postMessage=c,y.broadcastGlobalData=function(e,t){c({source:"hylid",type:"broadcast",from:window.location.href,key:e,result:t})},y.onReceiveGlobalData=function(e,t){return o(function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===e){var a=r.result||{},o=a._data_;return"success"===a._type_?t(o,void 0,r.from):t(void 0,o,r.from)}})},y.onPageEvent=function(e,t){return c({source:"hylid",type:"pageEvent",event:e}),o(function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===e){var a=r.result||{},o=a._data_;return"success"===a._type_?t(o):t(void 0,o)}})};var f=function(){var e={},t=!1;return function(r,a,o){return new Promise(function(c,i){var u,l=a||{},y=l.success,f=l.fail,p=o||{},g=p.timeout,d=void 0===g?2e4:g,m=p.isSync;d>0&&(u=setTimeout(function(){var e={error:-101,errorMessage:"[".concat(r,"]: Timeout")};i(e),null==f||f(e)},d));var h={apiName:r,options:s(s({},a),{success:function(e){u&&clearTimeout(u),c(e),null==y||y(e)},fail:function(e){u&&clearTimeout(u),i(e),null==f||f(e)}}),isSync:m};n(function(){t||(document.addEventListener("onToWebViewMessage",function(t){var n=t.data.res;"message"===n.type&&function(t){var n,r=t.serialId;if(r&&e[r]){var a=e[r],o=t.result;if("callback"===(null===(n=t.config)||void 0===n?void 0:n.type)){var c=o||{},i=c._data_;return"success"===c._type_?a(i):a(void 0,i)}var u=a||{},s=u.success,l=u.fail,y=u.complete,f=o||{},p=f._data_,g=f._type_;g?("success"===g&&(null==s||s(p)),"fail"===g&&(null==l||l(p)),null==y||y(p)):((null==o?void 0:o.error)?null==l||l(o):null==s||s(o),null==y||y(o)),delete e[r]}}(JSON.parse(n.data))}),t=!0),function(t){var n,r=t.apiName,a=t.options,o=t.isSync,c=window,i=Math.floor(1e6*Math.random()),u="".concat(r,"_").concat(i);a&&(e[u]=a);var s={type:"apiCall",api:r,serialId:u,options:a,isSync:o,source:"hylid"};null===(n=c.AlipayJSBridge)||void 0===n||n.call("postWebViewMessage",{type:"message",detail:s})}(h)})})}}();var p=function(){return p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},p.apply(this,arguments)};function g(e,t){var n=e.filter(function(e){return e.match.every(function(e){return e.test(t)})});if(n.length){var r=n[0].name;if(n.length>1){var a=n.map(function(e){return e.name}).join(",");m("Multiple clients have been identified(".concat(a,"), and the first one(").concat(r,")is used by default."))}return r}}function d(e,t){return Object.keys(e).reduce(function(n,r){return n["is".concat(r)]=t===e[r],n},{})}function m(e){console.info("[hylid-env]: ".concat(e))}var h={WEB:"web",MPWEB:"mpweb",MP:"mp"},v={DEMO:"demo",ALIPAY:"alipay",ALIPAYHK:"alipayhk",TNGD:"tngd",GCASH:"gcash",TRUEMONEY:"tmn",DANA:"dana",KAKAOPAY:"kakaopay",KAKAOTALK:"kakaotalk",NAVERPAY:"naverpay",MPAY:"mpay",TOSSPAY:"toss",HIPAY:"hipay",CHOPE:"chope",VODAPAY:"vodapay",CHANGIPAY:"changipay",OCBC:"ocbc",MANDIRI:"mandiri",NAYAPAY:"nayapay",TINABA:"tinaba",KASPI:"kaspi",H5:"h5",WECHAT:"wechat",TNGD_H5NG:"tngdh5ng",WORLDFIRST:"worldfirst"},S=/miniprogram/i,A=/^((?!miniprogram).)*$/i,b=/griver/i,O=/^((?!griver).)*$/i,C=[{name:v.DEMO,match:[/demo/]},{name:v.ALIPAYHK,match:[/alipayHK/]},{name:v.TNGD,match:[/tngd/]},{name:v.GCASH,match:[/gcash/]},{name:v.TRUEMONEY,match:[/tmn/]},{name:v.DANA,match:[/dana/]},{name:v.TOSSPAY,match:[/toss/]},{name:v.ALIPAY,match:[/alipay/]},{name:v.MPAY,match:[/MPay/]},{name:v.HIPAY,match:[/hipay/]}],P=[{name:v.DEMO,match:[/alipayIDE/i]},{name:v.ALIPAYHK,match:[S,O,/AlipayClientHK/]},{name:v.TNGD,match:[S,/TNGKit|Touch 'n Go/]},{name:v.GCASH,match:[S,b,/GCash/]},{name:v.TRUEMONEY,match:[S,b,/TrueMoney/]},{name:v.MPAY,match:[S,O,/mpay|macaupay/i]},{name:v.ALIPAY,match:[S,O,/alipay/i]},{name:v.DEMO,match:[S,b]}];function w(){return g(P,window.navigator.userAgent)}var B=[{name:v.ALIPAYHK,match:[A,O,/AlipayClientHK/]},{name:v.TNGD,match:[A,b,/TNGKit|Touch 'n Go/]},{name:v.TNGD_H5NG,match:[A,/TNGKit|Touch 'n Go/,/IAPWebH5NG/]},{name:v.GCASH,match:[A,b,/GCash/]},{name:v.TRUEMONEY,match:[A,b,/TrueMoney/i]},{name:v.KAKAOPAY,match:[A,/PAYCLIENT|KAKAOTALK|KAKAOPAY/]},{name:v.KAKAOTALK,match:[A,/ALIPAYCONNECT_KAKAO_TALK/]},{name:v.NAVERPAY,match:[A,/NAVER/]},{name:v.MPAY,match:[A,/mpay|macaupay/i]},{name:v.TOSSPAY,match:[A,/Toss/i]},{name:v.ALIPAY,match:[A,O,/AlipayClient/]},{name:v.DEMO,match:[A,b,/GriverDemo/]},{name:v.WORLDFIRST,match:[A,O,/WorldFirst/]},{name:v.CHANGIPAY,match:[A,O,/ChangiPay/]},{name:v.KASPI,match:[A,O,/Kaspi/]}];function k(){return g(B,window.navigator.userAgent)||v.H5}var T=function(){var e,t;if("undefined"!=typeof my&&"string"==typeof my.SDKVersion)e=g(C,my.getSystemInfoSync().app),t=h.MP;else{var n=function(){var e,t="__hy_env__",n=(null===(e=window.location.search)||void 0===e?void 0:e.match(/__app__=([^&]*)/))||[],r=n[1],a=(window.location.search.match(/__platform__=([^&]*)/)||[])[1],o=JSON.parse(localStorage.getItem(t)||"{}")||{};r&&(o.client=r),a&&(o.platform=a);try{localStorage.setItem(t,JSON.stringify(o))}catch(e){}if(n[1]){var c=window.location.search.replace(new RegExp("".concat(n[0],"(&)*")),""),i=window.location.hash||"",u="".concat(window.location.pathname).concat(c).concat(i);history.replaceState(null,"",u)}var s=JSON.parse(localStorage.getItem(t)||"{}"),l=localStorage.getItem("_CB__app__");return l?p(p({},s),{client:l}):s}();n.platform?(t=n.platform,e=n.client||("mpweb"===t?w():k())):(e=n.client||w())?t=h.MPWEB:(e=k(),t=h.WEB)}return t&&e||m("Cannot identify your client."),{client:e,platform:t}}(),E=T.client,D=T.platform;d(v,E),d(h,D);var I,L,M=((I={})[h.MP]=function(e,t,n){var r=(n||{}).type,a=void 0===r?"async":r;return"sync"===a||(null==n?void 0:n.isSync)?my[e](t):("async"===a&&(my[e]?my[e](t):my.call(e,t)),"callback"===a&&my[e](t),"attribute"===a?my[e]:void 0)},I[h.MPWEB]=y,I[h.WEB]=function(e,t,r){n(function(){var n=(r||{}).type,a=void 0===n?"async":n;"async"===a&&window.AlipayJSBridge.call(e,t,function(e){var n=t||{},r=n.success,a=n.fail,o=n.complete;e.error||e.errorCode?null==a||a(e):null==r||r(e),null==o||o(e)}),"callback"===a&&window.AlipayJSBridge.call(e,t)})},I);(L={})[h.MPWEB]=f,L[h.WEB]=function(e,t,n){return new Promise(function(r,a){var o,c=t||{},i=(c.success,c.fail),u=(c.complete,(n||{}).timeout),s=void 0===u?2e4:u;s>0&&(o=setTimeout(function(){var t={error:-101,errorMessage:"[".concat(e,"]: Timeout")};a(t),null==i||i(t)},s)),window.AlipayJSBridge.call(e,t,function(e){var n=t||{},c=n.success,i=n.fail,u=n.complete;o&&clearTimeout(o),(null==e?void 0:e.error)?(a(e),null==i||i(e)):(r(e),null==c||c(e)),null==u||u(e)})})};var N=["flowType"];function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const Y={addPhoneContact:function(e){return y("addPhoneContact",e,{type:"async"})},alert:function(e){return y("alert",e,{type:"async"})},chooseImage:function(e){return y("chooseImage",e,{type:"async"})},choosePhoneContact:function(e){return y("choosePhoneContact",e,{type:"async"})},clearStorage:function(e){return y("clearStorage",e,{type:"async"})},closeBluetoothAdapter:function(e){return y("closeBluetoothAdapter",e,{type:"async"})},closeSocket:function(e){return y("closeSocket",e,{type:"async"})},confirm:function(e){return y("confirm",e,{type:"async"})},connectBLEDevice:function(e){return y("connectBLEDevice",e,{type:"async"})},connectSocket:function(e){return y("connectSocket",e,{type:"async"})},datePicker:function(e){return y("datePicker",e,{type:"async"})},disconnectBLEDevice:function(e){return y("disconnectBLEDevice",e,{type:"async"})},downloadFile:function(e){return y("downloadFile",e,{type:"async"})},getAuthCode:function(e){return y("getAuthCode",e,{type:"async"})},getBatteryInfo:function(e){return y("getBatteryInfo",e,{type:"async"})},getBLEDeviceCharacteristics:function(e){return y("getBLEDeviceCharacteristics",e,{type:"async"})},getBLEDeviceServices:function(e){return y("getBLEDeviceServices",e,{type:"async"})},getBluetoothAdapterState:function(e){return y("getBluetoothAdapterState",e,{type:"async"})},getBluetoothDevices:function(e){return y("getBluetoothDevices",e,{type:"async"})},getClipboard:function(e){return y("getClipboard",e,{type:"async"})},getConnectedBluetoothDevices:function(e){return y("getConnectedBluetoothDevices",e,{type:"async"})},getFileInfo:function(e){return y("getFileInfo",e,{type:"async"})},getImageInfo:function(e){return y("getImageInfo",e,{type:"async"})},getLocation:function(e){return y("getLocation",e,{type:"async"})},getNetworkType:function(e){return y("getNetworkType",e,{type:"async"})},getOpenUserInfo:function(e){return y("getOpenUserInfo",e,{type:"async"})},getPhoneNumber:function(e){return y("getPhoneNumber",e,{type:"async"})},getSavedFileInfo:function(e){return y("getSavedFileInfo",e,{type:"async"})},getSavedFileList:function(e){return y("getSavedFileList",e,{type:"async"})},getScreenBrightness:function(e){return y("getScreenBrightness",e,{type:"async"})},getServerTime:function(e){return y("getServerTime",e,{type:"async"})},getSetting:function(e){return y("getSetting",e,{type:"async"})},getSiteInfo:function(e){return y("getSiteInfo",e,{type:"async"})},getStorage:function(e){return y("getStorage",e,{type:"async"})},getSystemInfo:function(e){return y("getSystemInfo",e,{type:"async"})},hideBackHome:function(e){return y("hideBackHome",e,{type:"async"})},hideKeyboard:function(e){return y("hideKeyboard",e,{type:"async"})},hideLoading:function(e){return y("hideLoading",e,{type:"async"})},hideNavigationBarLoading:function(e){return y("hideNavigationBarLoading",e,{type:"async"})},hideTabBar:function(e){return y("hideTabBar",e,{type:"async"})},hideToast:function(e){return y("hideToast",e,{type:"async"})},makePhoneCall:function(e){return y("makePhoneCall",e,{type:"async"})},multiLevelSelect:function(e){return y("multiLevelSelect",e,{type:"async"})},navigateBack:function(e){return y("navigateBack",e,{type:"async"})},navigateBackMiniProgram:function(e){return y("navigateBackMiniProgram",e,{type:"async"})},navigateTo:function(e){return y("navigateTo",e,{type:"async"})},navigateToMiniProgram:function(e){return y("navigateToMiniProgram",e,{type:"async"})},notifyBLECharacteristicValueChange:function(e){return y("notifyBLECharacteristicValueChange",e,{type:"async"})},offAccelerometerChange:function(e){return y("offAccelerometerChange",e,{type:"callback"})},offBLECharacteristicValueChange:function(e){return y("offBLECharacteristicValueChange",e,{type:"callback"})},offBLEConnectionStateChanged:function(e){return y("offBLEConnectionStateChanged",e,{type:"callback"})},offBluetoothAdapterStateChange:function(e){return y("offBluetoothAdapterStateChange",e,{type:"callback"})},offBluetoothDeviceFound:function(e){return y("offBluetoothDeviceFound",e,{type:"callback"})},offCompassChange:function(e){return y("offCompassChange",e,{type:"callback"})},offMemoryWarning:function(e){return y("offMemoryWarning",e,{type:"callback"})},offSocketClose:function(e){return y("offSocketClose",e,{type:"callback"})},offSocketError:function(e){return y("offSocketError",e,{type:"callback"})},offSocketMessage:function(e){return y("offSocketMessage",e,{type:"callback"})},offSocketOpen:function(e){return y("offSocketOpen",e,{type:"callback"})},offUserCaptureScreen:function(e){return y("offUserCaptureScreen",e,{type:"callback"})},onAccelerometerChange:function(e){return y("onAccelerometerChange",e,{type:"callback"})},onBLECharacteristicValueChange:function(e){return y("onBLECharacteristicValueChange",e,{type:"callback"})},onBLEConnectionStateChanged:function(e){return y("onBLEConnectionStateChanged",e,{type:"callback"})},onBluetoothAdapterStateChange:function(e){return y("onBluetoothAdapterStateChange",e,{type:"callback"})},onBluetoothDeviceFound:function(e){return y("onBluetoothDeviceFound",e,{type:"callback"})},onCompassChange:function(e){return y("onCompassChange",e,{type:"callback"})},onMemoryWarning:function(e){return y("onMemoryWarning",e,{type:"callback"})},onSocketClose:function(e){return y("onSocketClose",e,{type:"callback"})},onSocketError:function(e){return y("onSocketError",e,{type:"callback"})},onSocketMessage:function(e){return y("onSocketMessage",e,{type:"callback"})},onSocketOpen:function(e){return y("onSocketOpen",e,{type:"callback"})},onUserCaptureScreen:function(e){return y("onUserCaptureScreen",e,{type:"callback"})},openBluetoothAdapter:function(e){return y("openBluetoothAdapter",e,{type:"async"})},openDocument:function(e){return y("openDocument",e,{type:"async"})},openSetting:function(e){return y("openSetting",e,{type:"async"})},pageScrollTo:function(e){return y("pageScrollTo",e,{type:"async"})},previewImage:function(e){return y("previewImage",e,{type:"async"})},prompt:function(e){return y("prompt",e,{type:"async"})},readBLECharacteristicValue:function(e){return y("readBLECharacteristicValue",e,{type:"async"})},redirectTo:function(e){return y("redirectTo",e,{type:"async"})},reLaunch:function(e){return y("reLaunch",e,{type:"async"})},removeSavedFile:function(e){return y("removeSavedFile",e,{type:"async"})},removeStorage:function(e){return y("removeStorage",e,{type:"async"})},request:function(e){return y("request",e,{type:"async"})},rpc:function(e){return y("rpc",e,{type:"async"})},saveFile:function(e){return y("saveFile",e,{type:"async"})},saveImage:function(e){return y("saveImage",e,{type:"async"})},scan:function(e){return y("scan",e,{type:"async"})},sendSocketMessage:function(e){return y("sendSocketMessage",e,{type:"async"})},setBackgroundColor:function(e){return y("setBackgroundColor",e,{type:"async"})},setCanPullDown:function(e){return y("setCanPullDown",e,{type:"async"})},setClipboard:function(e){return y("setClipboard",e,{type:"async"})},setKeepScreenOn:function(e){return y("setKeepScreenOn",e,{type:"async"})},setNavigationBar:function(e){return y("setNavigationBar",e,{type:"async"})},setOptionMenu:function(e){return y("setOptionMenu",e,{type:"async"})},setScreenBrightness:function(e){return y("setScreenBrightness",e,{type:"async"})},setStorage:function(e){return y("setStorage",e,{type:"async"})},setTabBarStyle:function(e){return y("setTabBarStyle",e,{type:"async"})},showActionSheet:function(e){return y("showActionSheet",e,{type:"async"})},showAuthGuide:function(e){return y("showAuthGuide",e,{type:"async"})},showLoading:function(e){return y("showLoading",e,{type:"async"})},showNavigationBarLoading:function(e){return y("showNavigationBarLoading",e,{type:"async"})},showToast:function(e){return y("showToast",e,{type:"async"})},signContract:function(e){return y("signContract",e,{type:"async"})},startBluetoothDevicesDiscovery:function(e){return y("startBluetoothDevicesDiscovery",e,{type:"async"})},startPullDownRefresh:function(e){return y("startPullDownRefresh",e,{type:"async"})},stopBluetoothDevicesDiscovery:function(e){return y("stopBluetoothDevicesDiscovery",e,{type:"async"})},stopPullDownRefresh:function(e){return y("stopPullDownRefresh",e,{type:"async"})},switchTab:function(e){return y("switchTab",e,{type:"async"})},crossPay:function(e){return y("crossPay",e,{type:"async"})},uploadFile:function(e){return y("uploadFile",e,{type:"async"})},vibrate:function(e){return y("vibrate",e,{type:"async"})},watchShake:function(e){return y("watchShake",e,{type:"async"})},writeBLECharacteristicValue:function(e){return y("writeBLECharacteristicValue",e,{type:"async"})},showSharePanel:function(e){return y("showSharePanel",e,{type:"async"})},getBackgroundFetchData:function(e){return y("getBackgroundFetchData",e,{type:"async"})},getEnterOptionsSync:function(e){return y("getEnterOptionsSync",e,{type:"async"})},tradePay:function(e){var t,n,r,a=e||{},o=a.flowType,c=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(a,N);t="a+"===o?"tradePayCrossApp":"tradePay",n=c,D?M[D](t,n,r):function(e,t,n){var r;void 0===n&&(n={});var a=n.type,o=void 0===a?"async":a,c=u("NOTFOUND",e);if("sync"===o)return c;"callback"===o&&(null==t||t(c)),"async"===o&&(null===(r=null==t?void 0:t.fail)||void 0===r||r.call(t,c))}(n,r)},getAppId:function(e){y("getAppIdSync",e,{type:"sync",isSync:!0})},getCurrentPages:function(e){y("__hy_internal__",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({name:"getCurrentPages"},e))},getSDKVersion:function(e){y("SDKVersion",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),{type:"attribute"})}};return t.default})());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.my=t():e.my=t()}(self,()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>l});var n=!1,r=[];function o(e){return r.push(e),function(){r=r.filter(function(t){return t!==e})}}function c(e){return n||(document.addEventListener("onToWebViewMessage",function(e){var t=e.data.res;if(t&&"message"===t.type){var n=JSON.parse(t.data);r.forEach(function(e){return e(n)})}}),n=!0),function(e){if(window.AlipayJSBridge)return e();document.addEventListener("AlipayJSBridgeReady",function(){return e()},!1)}(function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:e})})}var a={NOTFOUND:{code:-1,message:function(e){return"".concat(e," is not found")}},NOTALLOWED:{code:-2,message:function(e){return"".concat(e," is not allowed")}},INVALID:{code:-3,message:function(e){return"".concat(e," is invalid")}},NOTBIND:{code:-4,message:function(e){return"".concat(e," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(e){return"".concat(e," exec fail, params error")}},TIMEOUT:{code:-6,message:function(e){return"".concat(e," exec fail, timeout")}}},i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},u={};function s(e,t,n){n=i({timeout:0},n);var r=e+"_"+Math.floor(1e6*Math.random());t&&(u[r]=t),c({source:"hylid",type:"apiCall",api:e,serialId:r,options:t,config:n,isSync:null==n?void 0:n.isSync,useMyCallToInvoke:null==n?void 0:n.useMyCallToInvoke});var o=t;(null==n?void 0:n.timeout)&&(null==o?void 0:o.fail)&&setTimeout(function(){u[r]&&(delete u[r],o.fail(function(e,t){void 0===t&&(t="");var n=a.TIMEOUT;return{errorCode:n.code,errorMessage:(0,n.message)(t),errorSouce:"hylid"}}()))},n.timeout)}o(function(e){var t,n=e,r=n.serialId;if(r&&u[r]){var o=u[r],c=n.result;if("callback"===(null===(t=n.config)||void 0===t?void 0:t.type)){var a=c||{},i=a._data_;return"success"===a._type_?o(i):o(void 0,i)}var s=o||{},y=s.success,f=s.fail,p=s.complete,l=c||{},g=l._data_,d=l._type_;d?("success"===d&&(null==y||y(g)),"fail"===d&&(null==f||f(g)),null==p||p(g)):((null==c?void 0:c.error)?null==f||f(c):null==y||y(c),null==p||p(c)),delete u[r]}}),s.onMessage=o,s.postMessage=c,s.broadcastGlobalData=function(e,t){c({source:"hylid",type:"broadcast",from:window.location.href,key:e,result:t})},s.onReceiveGlobalData=function(e,t){return o(function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===e){var o=r.result||{},c=o._data_;return"success"===o._type_?t(c,void 0,r.from):t(void 0,c,r.from)}})},s.onPageEvent=function(e,t){return c({source:"hylid",type:"pageEvent",event:e}),o(function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===e){var o=r.result||{},c=o._data_;return"success"===o._type_?t(c):t(void 0,c)}})};function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const l={addPhoneContact:function(e){return s("addPhoneContact",e,{type:"async"})},alert:function(e){return s("alert",e,{type:"async"})},chooseImage:function(e){return s("chooseImage",e,{type:"async"})},choosePhoneContact:function(e){return s("choosePhoneContact",e,{type:"async"})},clearStorage:function(e){return s("clearStorage",e,{type:"async"})},closeBluetoothAdapter:function(e){return s("closeBluetoothAdapter",e,{type:"async"})},closeSocket:function(e){return s("closeSocket",e,{type:"async"})},confirm:function(e){return s("confirm",e,{type:"async"})},connectBLEDevice:function(e){return s("connectBLEDevice",e,{type:"async"})},connectSocket:function(e){return s("connectSocket",e,{type:"async"})},datePicker:function(e){return s("datePicker",e,{type:"async"})},disconnectBLEDevice:function(e){return s("disconnectBLEDevice",e,{type:"async"})},downloadFile:function(e){return s("downloadFile",e,{type:"async"})},exitApp:function(e){return s("exitApp",e,{type:"async"})},getAppToken:function(e){return s("getAppToken",e,{type:"async"})},getAuthCode:function(e){return s("getAuthCode",e,{type:"async"})},getBatteryInfo:function(e){return s("getBatteryInfo",e,{type:"async"})},getBLEDeviceCharacteristics:function(e){return s("getBLEDeviceCharacteristics",e,{type:"async"})},getBLEDeviceServices:function(e){return s("getBLEDeviceServices",e,{type:"async"})},getBluetoothAdapterState:function(e){return s("getBluetoothAdapterState",e,{type:"async"})},getBluetoothDevices:function(e){return s("getBluetoothDevices",e,{type:"async"})},getClipboard:function(e){return s("getClipboard",e,{type:"async"})},getConnectedBluetoothDevices:function(e){return s("getConnectedBluetoothDevices",e,{type:"async"})},getFileInfo:function(e){return s("getFileInfo",e,{type:"async"})},getImageInfo:function(e){return s("getImageInfo",e,{type:"async"})},getLocation:function(e){return s("getLocation",e,{type:"async"})},getNetworkType:function(e){return s("getNetworkType",e,{type:"async"})},getOpenUserInfo:function(e){return s("getOpenUserInfo",e,{type:"async"})},getSavedFileInfo:function(e){return s("getSavedFileInfo",e,{type:"async"})},getSavedFileList:function(e){return s("getSavedFileList",e,{type:"async"})},getScreenBrightness:function(e){return s("getScreenBrightness",e,{type:"async"})},getServerTime:function(e){return s("getServerTime",e,{type:"async"})},getSetting:function(e){return s("getSetting",e,{type:"async"})},getSiteInfo:function(e){return s("getSiteInfo",e,{type:"async"})},getStorage:function(e){return s("getStorage",e,{type:"async"})},getSystemInfo:function(e){return s("getSystemInfo",e,{type:"async"})},hideBackHome:function(e){return s("hideBackHome",e,{type:"async"})},hideKeyboard:function(e){return s("hideKeyboard",e,{type:"async"})},hideLoading:function(e){return s("hideLoading",e,{type:"async"})},hideNavigationBarLoading:function(e){return s("hideNavigationBarLoading",e,{type:"async"})},hideTabBar:function(e){return s("hideTabBar",e,{type:"async"})},hideToast:function(e){return s("hideToast",e,{type:"async"})},makePhoneCall:function(e){return s("makePhoneCall",e,{type:"async"})},multiLevelSelect:function(e){return s("multiLevelSelect",e,{type:"async"})},navigateBack:function(e){return s("navigateBack",e,{type:"async"})},navigateBackMiniProgram:function(e){return s("navigateBackMiniProgram",e,{type:"async"})},navigateTo:function(e){return s("navigateTo",e,{type:"async"})},navigateToBizScene:function(e){return s("navigateToBizScene",e,{type:"async"})},navigateToMiniProgram:function(e){return s("navigateToMiniProgram",e,{type:"async"})},notifyBLECharacteristicValueChange:function(e){return s("notifyBLECharacteristicValueChange",e,{type:"async"})},offAccelerometerChange:function(e){return s("offAccelerometerChange",e,{type:"callback"})},offBLECharacteristicValueChange:function(e){return s("offBLECharacteristicValueChange",e,{type:"callback"})},offBLEConnectionStateChanged:function(e){return s("offBLEConnectionStateChanged",e,{type:"callback"})},offBluetoothAdapterStateChange:function(e){return s("offBluetoothAdapterStateChange",e,{type:"callback"})},offBluetoothDeviceFound:function(e){return s("offBluetoothDeviceFound",e,{type:"callback"})},offCompassChange:function(e){return s("offCompassChange",e,{type:"callback"})},offMemoryWarning:function(e){return s("offMemoryWarning",e,{type:"callback"})},offSocketClose:function(e){return s("offSocketClose",e,{type:"callback"})},offSocketError:function(e){return s("offSocketError",e,{type:"callback"})},offSocketMessage:function(e){return s("offSocketMessage",e,{type:"callback"})},offSocketOpen:function(e){return s("offSocketOpen",e,{type:"callback"})},offUserCaptureScreen:function(e){return s("offUserCaptureScreen",e,{type:"callback"})},onAccelerometerChange:function(e){return s("onAccelerometerChange",e,{type:"callback"})},onBLECharacteristicValueChange:function(e){return s("onBLECharacteristicValueChange",e,{type:"callback"})},onBLEConnectionStateChanged:function(e){return s("onBLEConnectionStateChanged",e,{type:"callback"})},onBluetoothAdapterStateChange:function(e){return s("onBluetoothAdapterStateChange",e,{type:"callback"})},onBluetoothDeviceFound:function(e){return s("onBluetoothDeviceFound",e,{type:"callback"})},onCompassChange:function(e){return s("onCompassChange",e,{type:"callback"})},onMemoryWarning:function(e){return s("onMemoryWarning",e,{type:"callback"})},onSocketClose:function(e){return s("onSocketClose",e,{type:"callback"})},onSocketError:function(e){return s("onSocketError",e,{type:"callback"})},onSocketMessage:function(e){return s("onSocketMessage",e,{type:"callback"})},onSocketOpen:function(e){return s("onSocketOpen",e,{type:"callback"})},onUserCaptureScreen:function(e){return s("onUserCaptureScreen",e,{type:"callback"})},openBluetoothAdapter:function(e){return s("openBluetoothAdapter",e,{type:"async"})},openDocument:function(e){return s("openDocument",e,{type:"async"})},openSetting:function(e){return s("openSetting",e,{type:"async"})},pageScrollTo:function(e){return s("pageScrollTo",e,{type:"async"})},previewImage:function(e){return s("previewImage",e,{type:"async"})},prompt:function(e){return s("prompt",e,{type:"async"})},readBLECharacteristicValue:function(e){return s("readBLECharacteristicValue",e,{type:"async"})},redirectTo:function(e){return s("redirectTo",e,{type:"async"})},reLaunch:function(e){return s("reLaunch",e,{type:"async"})},removeSavedFile:function(e){return s("removeSavedFile",e,{type:"async"})},removeStorage:function(e){return s("removeStorage",e,{type:"async"})},request:function(e){return s("request",e,{type:"async"})},rpc:function(e){return s("rpc",e,{type:"async"})},saveFile:function(e){return s("saveFile",e,{type:"async"})},saveImage:function(e){return s("saveImage",e,{type:"async"})},scan:function(e){return s("scan",e,{type:"async"})},sendSocketMessage:function(e){return s("sendSocketMessage",e,{type:"async"})},setBackgroundColor:function(e){return s("setBackgroundColor",e,{type:"async"})},setCanPullDown:function(e){return s("setCanPullDown",e,{type:"async"})},setClipboard:function(e){return s("setClipboard",e,{type:"async"})},setKeepScreenOn:function(e){return s("setKeepScreenOn",e,{type:"async"})},setNavigationBar:function(e){return s("setNavigationBar",e,{type:"async"})},setScreenBrightness:function(e){return s("setScreenBrightness",e,{type:"async"})},setStorage:function(e){return s("setStorage",e,{type:"async"})},setTabBarStyle:function(e){return s("setTabBarStyle",e,{type:"async"})},showActionSheet:function(e){return s("showActionSheet",e,{type:"async"})},showAuthGuide:function(e){return s("showAuthGuide",e,{type:"async"})},showLoading:function(e){return s("showLoading",e,{type:"async"})},showNavigationBarLoading:function(e){return s("showNavigationBarLoading",e,{type:"async"})},showToast:function(e){return s("showToast",e,{type:"async"})},signContract:function(e){return s("signContract",e,{type:"async"})},startBluetoothDevicesDiscovery:function(e){return s("startBluetoothDevicesDiscovery",e,{type:"async"})},startPullDownRefresh:function(e){return s("startPullDownRefresh",e,{type:"async"})},stopBluetoothDevicesDiscovery:function(e){return s("stopBluetoothDevicesDiscovery",e,{type:"async"})},stopPullDownRefresh:function(e){return s("stopPullDownRefresh",e,{type:"async"})},switchTab:function(e){return s("switchTab",e,{type:"async"})},tradePay:function(e){return s("tradePay",e,{type:"async"})},uploadFile:function(e){return s("uploadFile",e,{type:"async"})},vibrate:function(e){return s("vibrate",e,{type:"async"})},watchShake:function(e){return s("watchShake",e,{type:"async"})},writeBLECharacteristicValue:function(e){return s("writeBLECharacteristicValue",e,{type:"async"})},showSharePanel:function(e){return s("showSharePanel",e,{type:"async"})},setTransparentTitle:function(e){return s("setTransparentTitle",e,{type:"async"})},getRunScene:function(e){return s("getRunScene",e,{type:"async"})},chooseFileFromDisk:function(e){return s("chooseFileFromDisk",e,{type:"async"})},chooseVideo:function(e){return s("chooseVideo",e,{type:"async"})},compressImage:function(e){return s("compressImage",e,{type:"async"})},setTabBarItem:function(e){return s("setTabBarItem",e,{type:"async"})},showTabBar:function(e){return s("showTabBar",e,{type:"async"})},getBackgroundFetchData:function(e){return s("getBackgroundFetchData",e,{type:"async"})},getEnterOptionsSync:function(e){return s("getEnterOptionsSync",e,{type:"async"})},getAppId:function(e){s("getAppIdSync",e,{type:"sync",isSync:!0})},getCurrentPages:function(e){s("__hy_internal__",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({name:"getCurrentPages"},e))},getSDKVersion:function(e){s("SDKVersion",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),{type:"attribute"})}};return t.default})());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.my=t():e.my=t()}(self,()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>l});var n=!1,r=[];function o(e){return r.push(e),function(){r=r.filter(function(t){return t!==e})}}function c(e){return n||(document.addEventListener("onToWebViewMessage",function(e){var t=e.data.res;if(t&&"message"===t.type){var n=JSON.parse(t.data);r.forEach(function(e){return e(n)})}}),n=!0),function(e){if(window.AlipayJSBridge)return e();document.addEventListener("AlipayJSBridgeReady",function(){return e()},!1)}(function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:e})})}var a={NOTFOUND:{code:-1,message:function(e){return"".concat(e," is not found")}},NOTALLOWED:{code:-2,message:function(e){return"".concat(e," is not allowed")}},INVALID:{code:-3,message:function(e){return"".concat(e," is invalid")}},NOTBIND:{code:-4,message:function(e){return"".concat(e," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(e){return"".concat(e," exec fail, params error")}},TIMEOUT:{code:-6,message:function(e){return"".concat(e," exec fail, timeout")}}},i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},u={};function s(e,t,n){n=i({timeout:0},n);var r=e+"_"+Math.floor(1e6*Math.random());t&&(u[r]=t),c({source:"hylid",type:"apiCall",api:e,serialId:r,options:t,config:n,isSync:null==n?void 0:n.isSync,useMyCallToInvoke:null==n?void 0:n.useMyCallToInvoke});var o=t;(null==n?void 0:n.timeout)&&(null==o?void 0:o.fail)&&setTimeout(function(){u[r]&&(delete u[r],o.fail(function(e,t){void 0===t&&(t="");var n=a.TIMEOUT;return{errorCode:n.code,errorMessage:(0,n.message)(t),errorSouce:"hylid"}}()))},n.timeout)}o(function(e){var t,n=e,r=n.serialId;if(r&&u[r]){var o=u[r],c=n.result;if("callback"===(null===(t=n.config)||void 0===t?void 0:t.type)){var a=c||{},i=a._data_;return"success"===a._type_?o(i):o(void 0,i)}var s=o||{},y=s.success,f=s.fail,p=s.complete,l=c||{},g=l._data_,d=l._type_;d?("success"===d&&(null==y||y(g)),"fail"===d&&(null==f||f(g)),null==p||p(g)):((null==c?void 0:c.error)?null==f||f(c):null==y||y(c),null==p||p(c)),delete u[r]}}),s.onMessage=o,s.postMessage=c,s.broadcastGlobalData=function(e,t){c({source:"hylid",type:"broadcast",from:window.location.href,key:e,result:t})},s.onReceiveGlobalData=function(e,t){return o(function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===e){var o=r.result||{},c=o._data_;return"success"===o._type_?t(c,void 0,r.from):t(void 0,c,r.from)}})},s.onPageEvent=function(e,t){return c({source:"hylid",type:"pageEvent",event:e}),o(function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===e){var o=r.result||{},c=o._data_;return"success"===o._type_?t(c):t(void 0,c)}})};function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const l={addPhoneContact:function(e){return s("addPhoneContact",e,{type:"async"})},alert:function(e){return s("alert",e,{type:"async"})},chooseImage:function(e){return s("chooseImage",e,{type:"async"})},choosePhoneContact:function(e){return s("choosePhoneContact",e,{type:"async"})},clearStorage:function(e){return s("clearStorage",e,{type:"async"})},closeBluetoothAdapter:function(e){return s("closeBluetoothAdapter",e,{type:"async"})},closeSocket:function(e){return s("closeSocket",e,{type:"async"})},confirm:function(e){return s("confirm",e,{type:"async"})},connectBLEDevice:function(e){return s("connectBLEDevice",e,{type:"async"})},connectSocket:function(e){return s("connectSocket",e,{type:"async"})},datePicker:function(e){return s("datePicker",e,{type:"async"})},disconnectBLEDevice:function(e){return s("disconnectBLEDevice",e,{type:"async"})},downloadFile:function(e){return s("downloadFile",e,{type:"async"})},exitApp:function(e){return s("exitApp",e,{type:"async"})},getAppToken:function(e){return s("getAppToken",e,{type:"async"})},getAuthCode:function(e){return s("getAuthCode",e,{type:"async"})},getBatteryInfo:function(e){return s("getBatteryInfo",e,{type:"async"})},getBLEDeviceCharacteristics:function(e){return s("getBLEDeviceCharacteristics",e,{type:"async"})},getBLEDeviceServices:function(e){return s("getBLEDeviceServices",e,{type:"async"})},getBluetoothAdapterState:function(e){return s("getBluetoothAdapterState",e,{type:"async"})},getBluetoothDevices:function(e){return s("getBluetoothDevices",e,{type:"async"})},getClipboard:function(e){return s("getClipboard",e,{type:"async"})},getConnectedBluetoothDevices:function(e){return s("getConnectedBluetoothDevices",e,{type:"async"})},getFileInfo:function(e){return s("getFileInfo",e,{type:"async"})},getImageInfo:function(e){return s("getImageInfo",e,{type:"async"})},getLocation:function(e){return s("getLocation",e,{type:"async"})},getNetworkType:function(e){return s("getNetworkType",e,{type:"async"})},getOpenUserInfo:function(e){return s("getOpenUserInfo",e,{type:"async"})},getSavedFileInfo:function(e){return s("getSavedFileInfo",e,{type:"async"})},getSavedFileList:function(e){return s("getSavedFileList",e,{type:"async"})},getScreenBrightness:function(e){return s("getScreenBrightness",e,{type:"async"})},getServerTime:function(e){return s("getServerTime",e,{type:"async"})},getSetting:function(e){return s("getSetting",e,{type:"async"})},getSiteInfo:function(e){return s("getSiteInfo",e,{type:"async"})},getStorage:function(e){return s("getStorage",e,{type:"async"})},getSystemInfo:function(e){return s("getSystemInfo",e,{type:"async"})},hideBackHome:function(e){return s("hideBackHome",e,{type:"async"})},hideKeyboard:function(e){return s("hideKeyboard",e,{type:"async"})},hideLoading:function(e){return s("hideLoading",e,{type:"async"})},hideNavigationBarLoading:function(e){return s("hideNavigationBarLoading",e,{type:"async"})},hideTabBar:function(e){return s("hideTabBar",e,{type:"async"})},hideToast:function(e){return s("hideToast",e,{type:"async"})},makePhoneCall:function(e){return s("makePhoneCall",e,{type:"async"})},multiLevelSelect:function(e){return s("multiLevelSelect",e,{type:"async"})},navigateBack:function(e){return s("navigateBack",e,{type:"async"})},navigateBackMiniProgram:function(e){return s("navigateBackMiniProgram",e,{type:"async"})},navigateTo:function(e){return s("navigateTo",e,{type:"async"})},navigateToBizScene:function(e){return s("navigateToBizScene",e,{type:"async"})},navigateToMiniProgram:function(e){return s("navigateToMiniProgram",e,{type:"async"})},notifyBLECharacteristicValueChange:function(e){return s("notifyBLECharacteristicValueChange",e,{type:"async"})},offAccelerometerChange:function(e){return s("offAccelerometerChange",e,{type:"callback"})},offBLECharacteristicValueChange:function(e){return s("offBLECharacteristicValueChange",e,{type:"callback"})},offBLEConnectionStateChanged:function(e){return s("offBLEConnectionStateChanged",e,{type:"callback"})},offBluetoothAdapterStateChange:function(e){return s("offBluetoothAdapterStateChange",e,{type:"callback"})},offBluetoothDeviceFound:function(e){return s("offBluetoothDeviceFound",e,{type:"callback"})},offCompassChange:function(e){return s("offCompassChange",e,{type:"callback"})},offMemoryWarning:function(e){return s("offMemoryWarning",e,{type:"callback"})},offSocketClose:function(e){return s("offSocketClose",e,{type:"callback"})},offSocketError:function(e){return s("offSocketError",e,{type:"callback"})},offSocketMessage:function(e){return s("offSocketMessage",e,{type:"callback"})},offSocketOpen:function(e){return s("offSocketOpen",e,{type:"callback"})},offUserCaptureScreen:function(e){return s("offUserCaptureScreen",e,{type:"callback"})},onAccelerometerChange:function(e){return s("onAccelerometerChange",e,{type:"callback"})},onBLECharacteristicValueChange:function(e){return s("onBLECharacteristicValueChange",e,{type:"callback"})},onBLEConnectionStateChanged:function(e){return s("onBLEConnectionStateChanged",e,{type:"callback"})},onBluetoothAdapterStateChange:function(e){return s("onBluetoothAdapterStateChange",e,{type:"callback"})},onBluetoothDeviceFound:function(e){return s("onBluetoothDeviceFound",e,{type:"callback"})},onCompassChange:function(e){return s("onCompassChange",e,{type:"callback"})},onMemoryWarning:function(e){return s("onMemoryWarning",e,{type:"callback"})},onSocketClose:function(e){return s("onSocketClose",e,{type:"callback"})},onSocketError:function(e){return s("onSocketError",e,{type:"callback"})},onSocketMessage:function(e){return s("onSocketMessage",e,{type:"callback"})},onSocketOpen:function(e){return s("onSocketOpen",e,{type:"callback"})},onUserCaptureScreen:function(e){return s("onUserCaptureScreen",e,{type:"callback"})},openBluetoothAdapter:function(e){return s("openBluetoothAdapter",e,{type:"async"})},openDocument:function(e){return s("openDocument",e,{type:"async"})},openSetting:function(e){return s("openSetting",e,{type:"async"})},pageScrollTo:function(e){return s("pageScrollTo",e,{type:"async"})},previewImage:function(e){return s("previewImage",e,{type:"async"})},prompt:function(e){return s("prompt",e,{type:"async"})},readBLECharacteristicValue:function(e){return s("readBLECharacteristicValue",e,{type:"async"})},redirectTo:function(e){return s("redirectTo",e,{type:"async"})},reLaunch:function(e){return s("reLaunch",e,{type:"async"})},removeSavedFile:function(e){return s("removeSavedFile",e,{type:"async"})},removeStorage:function(e){return s("removeStorage",e,{type:"async"})},request:function(e){return s("request",e,{type:"async"})},rpc:function(e){return s("rpc",e,{type:"async"})},saveFile:function(e){return s("saveFile",e,{type:"async"})},saveImage:function(e){return s("saveImage",e,{type:"async"})},scan:function(e){return s("scan",e,{type:"async"})},sendSocketMessage:function(e){return s("sendSocketMessage",e,{type:"async"})},setBackgroundColor:function(e){return s("setBackgroundColor",e,{type:"async"})},setCanPullDown:function(e){return s("setCanPullDown",e,{type:"async"})},setClipboard:function(e){return s("setClipboard",e,{type:"async"})},setKeepScreenOn:function(e){return s("setKeepScreenOn",e,{type:"async"})},setNavigationBar:function(e){return s("setNavigationBar",e,{type:"async"})},setScreenBrightness:function(e){return s("setScreenBrightness",e,{type:"async"})},setStorage:function(e){return s("setStorage",e,{type:"async"})},setTabBarStyle:function(e){return s("setTabBarStyle",e,{type:"async"})},showActionSheet:function(e){return s("showActionSheet",e,{type:"async"})},showAuthGuide:function(e){return s("showAuthGuide",e,{type:"async"})},showLoading:function(e){return s("showLoading",e,{type:"async"})},showNavigationBarLoading:function(e){return s("showNavigationBarLoading",e,{type:"async"})},showToast:function(e){return s("showToast",e,{type:"async"})},signContract:function(e){return s("signContract",e,{type:"async"})},startBluetoothDevicesDiscovery:function(e){return s("startBluetoothDevicesDiscovery",e,{type:"async"})},startPullDownRefresh:function(e){return s("startPullDownRefresh",e,{type:"async"})},stopBluetoothDevicesDiscovery:function(e){return s("stopBluetoothDevicesDiscovery",e,{type:"async"})},stopPullDownRefresh:function(e){return s("stopPullDownRefresh",e,{type:"async"})},switchTab:function(e){return s("switchTab",e,{type:"async"})},tradePay:function(e){return s("tradePay",e,{type:"async"})},uploadFile:function(e){return s("uploadFile",e,{type:"async"})},vibrate:function(e){return s("vibrate",e,{type:"async"})},watchShake:function(e){return s("watchShake",e,{type:"async"})},writeBLECharacteristicValue:function(e){return s("writeBLECharacteristicValue",e,{type:"async"})},showSharePanel:function(e){return s("showSharePanel",e,{type:"async"})},setTransparentTitle:function(e){return s("setTransparentTitle",e,{type:"async"})},getRunScene:function(e){return s("getRunScene",e,{type:"async"})},chooseFileFromDisk:function(e){return s("chooseFileFromDisk",e,{type:"async"})},chooseVideo:function(e){return s("chooseVideo",e,{type:"async"})},compressImage:function(e){return s("compressImage",e,{type:"async"})},setTabBarItem:function(e){return s("setTabBarItem",e,{type:"async"})},showTabBar:function(e){return s("showTabBar",e,{type:"async"})},getBackgroundFetchData:function(e){return s("getBackgroundFetchData",e,{type:"async"})},getEnterOptionsSync:function(e){return s("getEnterOptionsSync",e,{type:"async"})},getAppId:function(e){s("getAppIdSync",e,{type:"sync",isSync:!0})},getCurrentPages:function(e){s("__hy_internal__",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({name:"getCurrentPages"},e))},getSDKVersion:function(e){s("SDKVersion",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),{type:"attribute"})}};return t.default})());
|
package/lib/umd/mp_web_mpay.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see mp_web_mpay.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.my=t():e.my=t()}(self,()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>z});var n=function(e){if(window.AlipayJSBridge)return e();document.addEventListener("AlipayJSBridgeReady",function(){return e()},!1)},r=!1,o=[];function a(e){return o.push(e),function(){o=o.filter(function(t){return t!==e})}}function c(e){return r||(document.addEventListener("onToWebViewMessage",function(e){var t=e.data.res;if(t&&"message"===t.type){var n=JSON.parse(t.data);o.forEach(function(e){return e(n)})}}),r=!0),n(function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:e})})}var i={NOTFOUND:{code:-1,message:function(e){return"".concat(e," is not found")}},NOTALLOWED:{code:-2,message:function(e){return"".concat(e," is not allowed")}},INVALID:{code:-3,message:function(e){return"".concat(e," is invalid")}},NOTBIND:{code:-4,message:function(e){return"".concat(e," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(e){return"".concat(e," exec fail, params error")}},TIMEOUT:{code:-6,message:function(e){return"".concat(e," exec fail, timeout")}}},u=function(e,t){void 0===t&&(t="");var n=i[e];return{errorCode:n.code,errorMessage:(0,n.message)(t),errorSouce:"hylid"}},s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)},l={};function f(e,t,n){n=s({timeout:0},n);var r=e+"_"+Math.floor(1e6*Math.random());t&&(l[r]=t),c({source:"hylid",type:"apiCall",api:e,serialId:r,options:t,config:n,isSync:null==n?void 0:n.isSync,useMyCallToInvoke:null==n?void 0:n.useMyCallToInvoke});var o=t;(null==n?void 0:n.timeout)&&(null==o?void 0:o.fail)&&setTimeout(function(){l[r]&&(delete l[r],o.fail(u("TIMEOUT")))},n.timeout)}a(function(e){var t,n=e,r=n.serialId;if(r&&l[r]){var o=l[r],a=n.result;if("callback"===(null===(t=n.config)||void 0===t?void 0:t.type)){var c=a||{},i=c._data_;return"success"===c._type_?o(i):o(void 0,i)}var u=o||{},s=u.success,f=u.fail,y=u.complete,p=a||{},d=p._data_,g=p._type_;g?("success"===g&&(null==s||s(d)),"fail"===g&&(null==f||f(d)),null==y||y(d)):((null==a?void 0:a.error)?null==f||f(a):null==s||s(a),null==y||y(a)),delete l[r]}}),f.onMessage=a,f.postMessage=c,f.broadcastGlobalData=function(e,t){c({source:"hylid",type:"broadcast",from:window.location.href,key:e,result:t})},f.onReceiveGlobalData=function(e,t){return a(function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===e){var o=r.result||{},a=o._data_;return"success"===o._type_?t(a,void 0,r.from):t(void 0,a,r.from)}})},f.onPageEvent=function(e,t){return c({source:"hylid",type:"pageEvent",event:e}),a(function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===e){var o=r.result||{},a=o._data_;return"success"===o._type_?t(a):t(void 0,a)}})};var y=function(){var e={},t=!1;return function(r,o,a){return new Promise(function(c,i){var u,l=o||{},f=l.success,y=l.fail,p=a||{},d=p.timeout,g=void 0===d?2e4:d,h=p.isSync;g>0&&(u=setTimeout(function(){var e={error:-101,errorMessage:"[".concat(r,"]: Timeout")};i(e),null==y||y(e)},g));var m={apiName:r,options:s(s({},o),{success:function(e){u&&clearTimeout(u),c(e),null==f||f(e)},fail:function(e){u&&clearTimeout(u),i(e),null==y||y(e)}}),isSync:h};n(function(){t||(document.addEventListener("onToWebViewMessage",function(t){var n=t.data.res;"message"===n.type&&function(t){var n,r=t.serialId;if(r&&e[r]){var o=e[r],a=t.result;if("callback"===(null===(n=t.config)||void 0===n?void 0:n.type)){var c=a||{},i=c._data_;return"success"===c._type_?o(i):o(void 0,i)}var u=o||{},s=u.success,l=u.fail,f=u.complete,y=a||{},p=y._data_,d=y._type_;d?("success"===d&&(null==s||s(p)),"fail"===d&&(null==l||l(p)),null==f||f(p)):((null==a?void 0:a.error)?null==l||l(a):null==s||s(a),null==f||f(a)),delete e[r]}}(JSON.parse(n.data))}),t=!0),function(t){var n,r=t.apiName,o=t.options,a=t.isSync,c=window,i=Math.floor(1e6*Math.random()),u="".concat(r,"_").concat(i);o&&(e[u]=o);var s={type:"apiCall",api:r,serialId:u,options:o,isSync:a,source:"hylid"};null===(n=c.AlipayJSBridge)||void 0===n||n.call("postWebViewMessage",{type:"message",detail:s})}(m)})})}}();function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t,n,r,o,a,c){try{var i=e[a](c),u=i.value}catch(e){return void n(e)}i.done?t(u):Promise.resolve(u).then(r,o)}var g=function(){return g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)};function h(e,t){var n=e.filter(function(e){return e.match.every(function(e){return e.test(t)})});if(n.length){var r=n[0].name;if(n.length>1){var o=n.map(function(e){return e.name}).join(",");v("Multiple clients have been identified(".concat(o,"), and the first one(").concat(r,")is used by default."))}return r}}function m(e,t){return Object.keys(e).reduce(function(n,r){return n["is".concat(r)]=t===e[r],n},{})}function v(e){console.info("[hylid-env]: ".concat(e))}var b={WEB:"web",MPWEB:"mpweb",MP:"mp"},S={DEMO:"demo",ALIPAY:"alipay",ALIPAYHK:"alipayhk",TNGD:"tngd",GCASH:"gcash",TRUEMONEY:"tmn",DANA:"dana",KAKAOPAY:"kakaopay",KAKAOTALK:"kakaotalk",NAVERPAY:"naverpay",MPAY:"mpay",TOSSPAY:"toss",HIPAY:"hipay",CHOPE:"chope",VODAPAY:"vodapay",CHANGIPAY:"changipay",OCBC:"ocbc",MANDIRI:"mandiri",NAYAPAY:"nayapay",TINABA:"tinaba",KASPI:"kaspi",H5:"h5",WECHAT:"wechat",TNGD_H5NG:"tngdh5ng",WORLDFIRST:"worldfirst"},O=/miniprogram/i,A=/^((?!miniprogram).)*$/i,w=/griver/i,P=/^((?!griver).)*$/i,C=[{name:S.DEMO,match:[/demo/]},{name:S.ALIPAYHK,match:[/alipayHK/]},{name:S.TNGD,match:[/tngd/]},{name:S.GCASH,match:[/gcash/]},{name:S.TRUEMONEY,match:[/tmn/]},{name:S.DANA,match:[/dana/]},{name:S.TOSSPAY,match:[/toss/]},{name:S.ALIPAY,match:[/alipay/]},{name:S.MPAY,match:[/MPay/]},{name:S.HIPAY,match:[/hipay/]}],B=[{name:S.DEMO,match:[/alipayIDE/i]},{name:S.ALIPAYHK,match:[O,P,/AlipayClientHK/]},{name:S.TNGD,match:[O,/TNGKit|Touch 'n Go/]},{name:S.GCASH,match:[O,w,/GCash/]},{name:S.TRUEMONEY,match:[O,w,/TrueMoney/]},{name:S.MPAY,match:[O,P,/mpay|macaupay/i]},{name:S.ALIPAY,match:[O,P,/alipay/i]},{name:S.DEMO,match:[O,w]}];function T(){return h(B,window.navigator.userAgent)}var k=[{name:S.ALIPAYHK,match:[A,P,/AlipayClientHK/]},{name:S.TNGD,match:[A,w,/TNGKit|Touch 'n Go/]},{name:S.TNGD_H5NG,match:[A,/TNGKit|Touch 'n Go/,/IAPWebH5NG/]},{name:S.GCASH,match:[A,w,/GCash/]},{name:S.TRUEMONEY,match:[A,w,/TrueMoney/i]},{name:S.KAKAOPAY,match:[A,/PAYCLIENT|KAKAOTALK|KAKAOPAY/]},{name:S.KAKAOTALK,match:[A,/ALIPAYCONNECT_KAKAO_TALK/]},{name:S.NAVERPAY,match:[A,/NAVER/]},{name:S.MPAY,match:[A,/mpay|macaupay/i]},{name:S.TOSSPAY,match:[A,/Toss/i]},{name:S.ALIPAY,match:[A,P,/AlipayClient/]},{name:S.DEMO,match:[A,w,/GriverDemo/]},{name:S.WORLDFIRST,match:[A,P,/WorldFirst/]}];function E(){return h(k,window.navigator.userAgent)||S.H5}var D=function(){var e,t;if("undefined"!=typeof my&&"string"==typeof my.SDKVersion)e=h(C,my.getSystemInfoSync().app),t=b.MP;else{var n=function(){var e,t="__hy_env__",n=(null===(e=window.location.search)||void 0===e?void 0:e.match(/__app__=([^&]*)/))||[],r=n[1],o=(window.location.search.match(/__platform__=([^&]*)/)||[])[1],a=JSON.parse(localStorage.getItem(t)||"{}")||{};r&&(a.client=r),o&&(a.platform=o);try{localStorage.setItem(t,JSON.stringify(a))}catch(e){}if(n[1]){var c=window.location.search.replace(new RegExp("".concat(n[0],"(&)*")),""),i=window.location.hash||"",u="".concat(window.location.pathname).concat(c).concat(i);history.replaceState(null,"",u)}var s=JSON.parse(localStorage.getItem(t)||"{}"),l=localStorage.getItem("_CB__app__");return l?g(g({},s),{client:l}):s}();n.platform?(t=n.platform,e=n.client||("mpweb"===t?T():E())):(e=n.client||T())?t=b.MPWEB:(e=E(),t=b.WEB)}return t&&e||v("Cannot identify your client."),{client:e,platform:t}}(),I=D.client,j=D.platform;m(S,I),m(b,j);var L,M,_=((L={})[b.MP]=function(e,t,n){var r=(n||{}).type,o=void 0===r?"async":r;return"sync"===o||(null==n?void 0:n.isSync)?my[e](t):("async"===o&&(my[e]?my[e](t):my.call(e,t)),"callback"===o&&my[e](t),"attribute"===o?my[e]:void 0)},L[b.MPWEB]=f,L[b.WEB]=function(e,t,r){n(function(){var n=(r||{}).type,o=void 0===n?"async":n;"async"===o&&window.AlipayJSBridge.call(e,t,function(e){var n=t||{},r=n.success,o=n.fail,a=n.complete;e.error||e.errorCode?null==o||o(e):null==r||r(e),null==a||a(e)}),"callback"===o&&window.AlipayJSBridge.call(e,t)})},L);function N(e,t,n){return j?_[j](e,t,n):function(e,t,n){var r;void 0===n&&(n={});var o=n.type,a=void 0===o?"async":o,c=u("NOTFOUND",e);if("sync"===a)return c;"callback"===a&&(null==t||t(c)),"async"===a&&(null===(r=null==t?void 0:t.fail)||void 0===r||r.call(t,c))}(t,n)}(M={})[b.MPWEB]=y,M[b.WEB]=function(e,t,n){return new Promise(function(r,o){var a,c=t||{},i=(c.success,c.fail),u=(c.complete,(n||{}).timeout),s=void 0===u?2e4:u;s>0&&(a=setTimeout(function(){var t={error:-101,errorMessage:"[".concat(e,"]: Timeout")};o(t),null==i||i(t)},s)),window.AlipayJSBridge.call(e,t,function(e){var n=t||{},c=n.success,i=n.fail,u=n.complete;a&&clearTimeout(a),(null==e?void 0:e.error)?(o(e),null==i||i(e)):(r(e),null==c||c(e)),null==u||u(e)})})};var K=function(){return K=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},K.apply(this,arguments)};function G(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var u=r&&r.prototype instanceof i?r:i,s=Object.create(u.prototype);return F(s,"_invoke",function(n,r,o){var a,i,u,s=0,l=o||[],f=!1,y={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,i=0,u=e,y.n=n,c}};function p(n,r){for(i=n,u=r,t=0;!f&&s&&!o&&t<l.length;t++){var o,a=l[t],p=y.p,d=a[2];n>3?(o=d===r)&&(u=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&p<a[1])?(i=0,y.v=r,y.n=a[1]):p<d&&(o=n<3||a[0]>r||r>d)&&(a[4]=n,a[5]=r,y.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,l,d){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,d),i=l,u=d;(t=i<2?e:u)||!f;){a||(i?i<3?(i>1&&(y.n=-1),p(i,u)):y.n=u:y.v=u);try{if(s=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=y.n<0)?u:n.call(r,y))!==c)break}catch(t){a=e,i=1,u=t}finally{s=1}}return{value:t,done:f}}}(n,o,a),!0),s}var c={};function i(){}function u(){}function s(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(F(t={},r,function(){return this}),t),f=s.prototype=i.prototype=Object.create(l);function y(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,F(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=s,F(f,"constructor",s),F(s,"constructor",u),u.displayName="GeneratorFunction",F(s,o,"GeneratorFunction"),F(f),F(f,o,"Generator"),F(f,r,function(){return this}),F(f,"toString",function(){return"[object Generator]"}),(G=function(){return{w:a,m:y}})()}function F(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}F=function(e,t,n,r){function a(t,n){F(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},F(e,t,n,r)}var Y,V=(Y=function(e){return f("getSystemInfo",e,{type:"async"})},function(e){return new Promise(function(t,n){var r=K(K({},e),{success:function(n){var r;t(n),null===(r=null==e?void 0:e.success)||void 0===r||r.call(e,n)},fail:function(t){var r;n(t),null===(r=null==e?void 0:e.fail)||void 0===r||r.call(e,t)}});Y(r)})}),R=function(){return new Promise(function(e){N("getMPayUtdid",{success:function(t){e((null==t?void 0:t.utdid)||"")},fail:function(){e("")}})})};const H=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function c(e){d(a,r,o,c,i,"next",e)}function i(e){d(a,r,o,c,i,"throw",e)}c(void 0)})}}(G().m(function e(t){var n,r,o;return G().w(function(e){for(;;)switch(e.n){case 0:n=t.success,r=t.fail,o=t.complete,Promise.all([R(),V()]).then(function(e){var t,r,o=(r=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],c=!0,i=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);c=!0);}catch(e){i=!0,o=e}finally{try{c||null==n.return||n.return()}finally{if(i)throw o}}return a}}(t,r)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],c=o[1],i=c.brand,u=c.model,s=c.platform,l={apdid:a,brand:i,model:u,appVersion:c.version,osType:s,osVersion:c.system,terminalType:"miniapp"},f=JSON.stringify(l);null==n||n({appToken:f})}).catch(function(e){null==r||r(e)}).finally(function(){null==o||o()});case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}();function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U=["fail"];function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){W(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const z={addPhoneContact:function(e){return f("addPhoneContact",e,{type:"async"})},alert:function(e){return f("alert",e,{type:"async"})},chooseImage:function(e){return f("chooseImage",e,{type:"async"})},choosePhoneContact:function(e){return f("choosePhoneContact",e,{type:"async"})},clearStorage:function(e){return f("clearStorage",e,{type:"async"})},closeBluetoothAdapter:function(e){return f("closeBluetoothAdapter",e,{type:"async"})},closeSocket:function(e){return f("closeSocket",e,{type:"async"})},confirm:function(e){return f("confirm",e,{type:"async"})},connectBLEDevice:function(e){return f("connectBLEDevice",e,{type:"async"})},connectSocket:function(e){return f("connectSocket",e,{type:"async"})},datePicker:function(e){return f("datePicker",e,{type:"async"})},disconnectBLEDevice:function(e){return f("disconnectBLEDevice",e,{type:"async"})},downloadFile:function(e){return f("downloadFile",e,{type:"async"})},getAuthCode:function(e){return f("getAuthCode",e,{type:"async"})},getBatteryInfo:function(e){return f("getBatteryInfo",e,{type:"async"})},getBLEDeviceCharacteristics:function(e){return f("getBLEDeviceCharacteristics",e,{type:"async"})},getBLEDeviceServices:function(e){return f("getBLEDeviceServices",e,{type:"async"})},getBluetoothAdapterState:function(e){return f("getBluetoothAdapterState",e,{type:"async"})},getBluetoothDevices:function(e){return f("getBluetoothDevices",e,{type:"async"})},getClipboard:function(e){return f("getClipboard",e,{type:"async"})},getConnectedBluetoothDevices:function(e){return f("getConnectedBluetoothDevices",e,{type:"async"})},getFileInfo:function(e){return f("getFileInfo",e,{type:"async"})},getImageInfo:function(e){return f("getImageInfo",e,{type:"async"})},getNetworkType:function(e){return f("getNetworkType",e,{type:"async"})},getOpenUserInfo:function(e){return f("getOpenUserInfo",e,{type:"async"})},getSavedFileInfo:function(e){return f("getSavedFileInfo",e,{type:"async"})},getSavedFileList:function(e){return f("getSavedFileList",e,{type:"async"})},getScreenBrightness:function(e){return f("getScreenBrightness",e,{type:"async"})},getServerTime:function(e){return f("getServerTime",e,{type:"async"})},getSetting:function(e){return f("getSetting",e,{type:"async"})},getSiteInfo:function(e){return f("getSiteInfo",e,{type:"async"})},getStorage:function(e){return f("getStorage",e,{type:"async"})},getSystemInfo:function(e){return f("getSystemInfo",e,{type:"async"})},hideBackHome:function(e){return f("hideBackHome",e,{type:"async"})},hideKeyboard:function(e){return f("hideKeyboard",e,{type:"async"})},hideLoading:function(e){return f("hideLoading",e,{type:"async"})},hideNavigationBarLoading:function(e){return f("hideNavigationBarLoading",e,{type:"async"})},hideTabBar:function(e){return f("hideTabBar",e,{type:"async"})},hideToast:function(e){return f("hideToast",e,{type:"async"})},makePhoneCall:function(e){return f("makePhoneCall",e,{type:"async"})},multiLevelSelect:function(e){return f("multiLevelSelect",e,{type:"async"})},navigateBack:function(e){return f("navigateBack",e,{type:"async"})},navigateBackMiniProgram:function(e){return f("navigateBackMiniProgram",e,{type:"async"})},navigateTo:function(e){return f("navigateTo",e,{type:"async"})},navigateToBizScene:function(e){return f("navigateToBizScene",e,{type:"async"})},navigateToMiniProgram:function(e){return f("navigateToMiniProgram",e,{type:"async"})},notifyBLECharacteristicValueChange:function(e){return f("notifyBLECharacteristicValueChange",e,{type:"async"})},offAccelerometerChange:function(e){return f("offAccelerometerChange",e,{type:"callback"})},offBLECharacteristicValueChange:function(e){return f("offBLECharacteristicValueChange",e,{type:"callback"})},offBLEConnectionStateChanged:function(e){return f("offBLEConnectionStateChanged",e,{type:"callback"})},offBluetoothAdapterStateChange:function(e){return f("offBluetoothAdapterStateChange",e,{type:"callback"})},offBluetoothDeviceFound:function(e){return f("offBluetoothDeviceFound",e,{type:"callback"})},offCompassChange:function(e){return f("offCompassChange",e,{type:"callback"})},offMemoryWarning:function(e){return f("offMemoryWarning",e,{type:"callback"})},offSocketClose:function(e){return f("offSocketClose",e,{type:"callback"})},offSocketError:function(e){return f("offSocketError",e,{type:"callback"})},offSocketMessage:function(e){return f("offSocketMessage",e,{type:"callback"})},offSocketOpen:function(e){return f("offSocketOpen",e,{type:"callback"})},offUserCaptureScreen:function(e){return f("offUserCaptureScreen",e,{type:"callback"})},onAccelerometerChange:function(e){return f("onAccelerometerChange",e,{type:"callback"})},onBLECharacteristicValueChange:function(e){return f("onBLECharacteristicValueChange",e,{type:"callback"})},onBLEConnectionStateChanged:function(e){return f("onBLEConnectionStateChanged",e,{type:"callback"})},onBluetoothAdapterStateChange:function(e){return f("onBluetoothAdapterStateChange",e,{type:"callback"})},onBluetoothDeviceFound:function(e){return f("onBluetoothDeviceFound",e,{type:"callback"})},onCompassChange:function(e){return f("onCompassChange",e,{type:"callback"})},onMemoryWarning:function(e){return f("onMemoryWarning",e,{type:"callback"})},onSocketClose:function(e){return f("onSocketClose",e,{type:"callback"})},onSocketError:function(e){return f("onSocketError",e,{type:"callback"})},onSocketMessage:function(e){return f("onSocketMessage",e,{type:"callback"})},onSocketOpen:function(e){return f("onSocketOpen",e,{type:"callback"})},onUserCaptureScreen:function(e){return f("onUserCaptureScreen",e,{type:"callback"})},openBluetoothAdapter:function(e){return f("openBluetoothAdapter",e,{type:"async"})},openDocument:function(e){return f("openDocument",e,{type:"async"})},openSetting:function(e){return f("openSetting",e,{type:"async"})},pageScrollTo:function(e){return f("pageScrollTo",e,{type:"async"})},previewImage:function(e){return f("previewImage",e,{type:"async"})},prompt:function(e){return f("prompt",e,{type:"async"})},readBLECharacteristicValue:function(e){return f("readBLECharacteristicValue",e,{type:"async"})},redirectTo:function(e){return f("redirectTo",e,{type:"async"})},reLaunch:function(e){return f("reLaunch",e,{type:"async"})},removeSavedFile:function(e){return f("removeSavedFile",e,{type:"async"})},removeStorage:function(e){return f("removeStorage",e,{type:"async"})},request:function(e){return f("request",e,{type:"async"})},saveFile:function(e){return f("saveFile",e,{type:"async"})},saveImage:function(e){return f("saveImage",e,{type:"async"})},scan:function(e){return f("scan",e,{type:"async"})},sendSocketMessage:function(e){return f("sendSocketMessage",e,{type:"async"})},setBackgroundColor:function(e){return f("setBackgroundColor",e,{type:"async"})},setCanPullDown:function(e){return f("setCanPullDown",e,{type:"async"})},setClipboard:function(e){return f("setClipboard",e,{type:"async"})},setKeepScreenOn:function(e){return f("setKeepScreenOn",e,{type:"async"})},setNavigationBar:function(e){return f("setNavigationBar",e,{type:"async"})},setScreenBrightness:function(e){return f("setScreenBrightness",e,{type:"async"})},setStorage:function(e){return f("setStorage",e,{type:"async"})},setTabBarStyle:function(e){return f("setTabBarStyle",e,{type:"async"})},showActionSheet:function(e){return f("showActionSheet",e,{type:"async"})},showAuthGuide:function(e){return f("showAuthGuide",e,{type:"async"})},showLoading:function(e){return f("showLoading",e,{type:"async"})},showNavigationBarLoading:function(e){return f("showNavigationBarLoading",e,{type:"async"})},showToast:function(e){return f("showToast",e,{type:"async"})},signContract:function(e){return f("signContract",e,{type:"async"})},startBluetoothDevicesDiscovery:function(e){return f("startBluetoothDevicesDiscovery",e,{type:"async"})},startPullDownRefresh:function(e){return f("startPullDownRefresh",e,{type:"async"})},stopBluetoothDevicesDiscovery:function(e){return f("stopBluetoothDevicesDiscovery",e,{type:"async"})},stopPullDownRefresh:function(e){return f("stopPullDownRefresh",e,{type:"async"})},switchTab:function(e){return f("switchTab",e,{type:"async"})},tradePay:function(e){return f("tradePay",e,{type:"async"})},uploadFile:function(e){return f("uploadFile",e,{type:"async"})},vibrate:function(e){return f("vibrate",e,{type:"async"})},watchShake:function(e){return f("watchShake",e,{type:"async"})},writeBLECharacteristicValue:function(e){return f("writeBLECharacteristicValue",e,{type:"async"})},showSharePanel:function(e){return f("showSharePanel",e,{type:"async"})},setTransparentTitle:function(e){return f("setTransparentTitle",e,{type:"async"})},getRunScene:function(e){return f("getRunScene",e,{type:"async"})},chooseFileFromDisk:function(e){return f("chooseFileFromDisk",e,{type:"async"})},chooseVideo:function(e){return f("chooseVideo",e,{type:"async"})},compressImage:function(e){return f("compressImage",e,{type:"async"})},setTabBarItem:function(e){return f("setTabBarItem",e,{type:"async"})},showTabBar:function(e){return f("showTabBar",e,{type:"async"})},getBackgroundFetchData:function(e){return f("getBackgroundFetchData",e,{type:"async"})},getEnterOptionsSync:function(e){return f("getEnterOptionsSync",e,{type:"async"})},getAppToken:H,getLocation:function(e){var t=e||{},n=t.fail;N("getLocation",J(J({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,U)),{},{fail:function(e){5===(null==e?void 0:e.error)&&(e.error=11),null==n||n(e)}}))},getAppId:function(e){N("getMPayAppIdSync",e)},getCurrentPages:function(e){f("__hy_internal__",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach(function(t){W(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({name:"getCurrentPages"},e))},getSDKVersion:function(e){f("SDKVersion",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach(function(t){W(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),{type:"attribute"})}};return t.default})());
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.my=t():e.my=t()}(self,()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>z});var n=function(e){if(window.AlipayJSBridge)return e();document.addEventListener("AlipayJSBridgeReady",function(){return e()},!1)},r=!1,o=[];function a(e){return o.push(e),function(){o=o.filter(function(t){return t!==e})}}function c(e){return r||(document.addEventListener("onToWebViewMessage",function(e){var t=e.data.res;if(t&&"message"===t.type){var n=JSON.parse(t.data);o.forEach(function(e){return e(n)})}}),r=!0),n(function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:e})})}var i={NOTFOUND:{code:-1,message:function(e){return"".concat(e," is not found")}},NOTALLOWED:{code:-2,message:function(e){return"".concat(e," is not allowed")}},INVALID:{code:-3,message:function(e){return"".concat(e," is invalid")}},NOTBIND:{code:-4,message:function(e){return"".concat(e," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(e){return"".concat(e," exec fail, params error")}},TIMEOUT:{code:-6,message:function(e){return"".concat(e," exec fail, timeout")}}},u=function(e,t){void 0===t&&(t="");var n=i[e];return{errorCode:n.code,errorMessage:(0,n.message)(t),errorSouce:"hylid"}},s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)},l={};function f(e,t,n){n=s({timeout:0},n);var r=e+"_"+Math.floor(1e6*Math.random());t&&(l[r]=t),c({source:"hylid",type:"apiCall",api:e,serialId:r,options:t,config:n,isSync:null==n?void 0:n.isSync,useMyCallToInvoke:null==n?void 0:n.useMyCallToInvoke});var o=t;(null==n?void 0:n.timeout)&&(null==o?void 0:o.fail)&&setTimeout(function(){l[r]&&(delete l[r],o.fail(u("TIMEOUT")))},n.timeout)}a(function(e){var t,n=e,r=n.serialId;if(r&&l[r]){var o=l[r],a=n.result;if("callback"===(null===(t=n.config)||void 0===t?void 0:t.type)){var c=a||{},i=c._data_;return"success"===c._type_?o(i):o(void 0,i)}var u=o||{},s=u.success,f=u.fail,y=u.complete,p=a||{},d=p._data_,g=p._type_;g?("success"===g&&(null==s||s(d)),"fail"===g&&(null==f||f(d)),null==y||y(d)):((null==a?void 0:a.error)?null==f||f(a):null==s||s(a),null==y||y(a)),delete l[r]}}),f.onMessage=a,f.postMessage=c,f.broadcastGlobalData=function(e,t){c({source:"hylid",type:"broadcast",from:window.location.href,key:e,result:t})},f.onReceiveGlobalData=function(e,t){return a(function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===e){var o=r.result||{},a=o._data_;return"success"===o._type_?t(a,void 0,r.from):t(void 0,a,r.from)}})},f.onPageEvent=function(e,t){return c({source:"hylid",type:"pageEvent",event:e}),a(function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===e){var o=r.result||{},a=o._data_;return"success"===o._type_?t(a):t(void 0,a)}})};var y=function(){var e={},t=!1;return function(r,o,a){return new Promise(function(c,i){var u,l=o||{},f=l.success,y=l.fail,p=a||{},d=p.timeout,g=void 0===d?2e4:d,h=p.isSync;g>0&&(u=setTimeout(function(){var e={error:-101,errorMessage:"[".concat(r,"]: Timeout")};i(e),null==y||y(e)},g));var m={apiName:r,options:s(s({},o),{success:function(e){u&&clearTimeout(u),c(e),null==f||f(e)},fail:function(e){u&&clearTimeout(u),i(e),null==y||y(e)}}),isSync:h};n(function(){t||(document.addEventListener("onToWebViewMessage",function(t){var n=t.data.res;"message"===n.type&&function(t){var n,r=t.serialId;if(r&&e[r]){var o=e[r],a=t.result;if("callback"===(null===(n=t.config)||void 0===n?void 0:n.type)){var c=a||{},i=c._data_;return"success"===c._type_?o(i):o(void 0,i)}var u=o||{},s=u.success,l=u.fail,f=u.complete,y=a||{},p=y._data_,d=y._type_;d?("success"===d&&(null==s||s(p)),"fail"===d&&(null==l||l(p)),null==f||f(p)):((null==a?void 0:a.error)?null==l||l(a):null==s||s(a),null==f||f(a)),delete e[r]}}(JSON.parse(n.data))}),t=!0),function(t){var n,r=t.apiName,o=t.options,a=t.isSync,c=window,i=Math.floor(1e6*Math.random()),u="".concat(r,"_").concat(i);o&&(e[u]=o);var s={type:"apiCall",api:r,serialId:u,options:o,isSync:a,source:"hylid"};null===(n=c.AlipayJSBridge)||void 0===n||n.call("postWebViewMessage",{type:"message",detail:s})}(m)})})}}();function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t,n,r,o,a,c){try{var i=e[a](c),u=i.value}catch(e){return void n(e)}i.done?t(u):Promise.resolve(u).then(r,o)}var g=function(){return g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)};function h(e,t){var n=e.filter(function(e){return e.match.every(function(e){return e.test(t)})});if(n.length){var r=n[0].name;if(n.length>1){var o=n.map(function(e){return e.name}).join(",");v("Multiple clients have been identified(".concat(o,"), and the first one(").concat(r,")is used by default."))}return r}}function m(e,t){return Object.keys(e).reduce(function(n,r){return n["is".concat(r)]=t===e[r],n},{})}function v(e){console.info("[hylid-env]: ".concat(e))}var b={WEB:"web",MPWEB:"mpweb",MP:"mp"},S={DEMO:"demo",ALIPAY:"alipay",ALIPAYHK:"alipayhk",TNGD:"tngd",GCASH:"gcash",TRUEMONEY:"tmn",DANA:"dana",KAKAOPAY:"kakaopay",KAKAOTALK:"kakaotalk",NAVERPAY:"naverpay",MPAY:"mpay",TOSSPAY:"toss",HIPAY:"hipay",CHOPE:"chope",VODAPAY:"vodapay",CHANGIPAY:"changipay",OCBC:"ocbc",MANDIRI:"mandiri",NAYAPAY:"nayapay",TINABA:"tinaba",KASPI:"kaspi",H5:"h5",WECHAT:"wechat",TNGD_H5NG:"tngdh5ng",WORLDFIRST:"worldfirst"},O=/miniprogram/i,A=/^((?!miniprogram).)*$/i,w=/griver/i,P=/^((?!griver).)*$/i,C=[{name:S.DEMO,match:[/demo/]},{name:S.ALIPAYHK,match:[/alipayHK/]},{name:S.TNGD,match:[/tngd/]},{name:S.GCASH,match:[/gcash/]},{name:S.TRUEMONEY,match:[/tmn/]},{name:S.DANA,match:[/dana/]},{name:S.TOSSPAY,match:[/toss/]},{name:S.ALIPAY,match:[/alipay/]},{name:S.MPAY,match:[/MPay/]},{name:S.HIPAY,match:[/hipay/]}],B=[{name:S.DEMO,match:[/alipayIDE/i]},{name:S.ALIPAYHK,match:[O,P,/AlipayClientHK/]},{name:S.TNGD,match:[O,/TNGKit|Touch 'n Go/]},{name:S.GCASH,match:[O,w,/GCash/]},{name:S.TRUEMONEY,match:[O,w,/TrueMoney/]},{name:S.MPAY,match:[O,P,/mpay|macaupay/i]},{name:S.ALIPAY,match:[O,P,/alipay/i]},{name:S.DEMO,match:[O,w]}];function T(){return h(B,window.navigator.userAgent)}var k=[{name:S.ALIPAYHK,match:[A,P,/AlipayClientHK/]},{name:S.TNGD,match:[A,w,/TNGKit|Touch 'n Go/]},{name:S.TNGD_H5NG,match:[A,/TNGKit|Touch 'n Go/,/IAPWebH5NG/]},{name:S.GCASH,match:[A,w,/GCash/]},{name:S.TRUEMONEY,match:[A,w,/TrueMoney/i]},{name:S.KAKAOPAY,match:[A,/PAYCLIENT|KAKAOTALK|KAKAOPAY/]},{name:S.KAKAOTALK,match:[A,/ALIPAYCONNECT_KAKAO_TALK/]},{name:S.NAVERPAY,match:[A,/NAVER/]},{name:S.MPAY,match:[A,/mpay|macaupay/i]},{name:S.TOSSPAY,match:[A,/Toss/i]},{name:S.ALIPAY,match:[A,P,/AlipayClient/]},{name:S.DEMO,match:[A,w,/GriverDemo/]},{name:S.WORLDFIRST,match:[A,P,/WorldFirst/]},{name:S.CHANGIPAY,match:[A,P,/ChangiPay/]},{name:S.KASPI,match:[A,P,/Kaspi/]}];function E(){return h(k,window.navigator.userAgent)||S.H5}var D=function(){var e,t;if("undefined"!=typeof my&&"string"==typeof my.SDKVersion)e=h(C,my.getSystemInfoSync().app),t=b.MP;else{var n=function(){var e,t="__hy_env__",n=(null===(e=window.location.search)||void 0===e?void 0:e.match(/__app__=([^&]*)/))||[],r=n[1],o=(window.location.search.match(/__platform__=([^&]*)/)||[])[1],a=JSON.parse(localStorage.getItem(t)||"{}")||{};r&&(a.client=r),o&&(a.platform=o);try{localStorage.setItem(t,JSON.stringify(a))}catch(e){}if(n[1]){var c=window.location.search.replace(new RegExp("".concat(n[0],"(&)*")),""),i=window.location.hash||"",u="".concat(window.location.pathname).concat(c).concat(i);history.replaceState(null,"",u)}var s=JSON.parse(localStorage.getItem(t)||"{}"),l=localStorage.getItem("_CB__app__");return l?g(g({},s),{client:l}):s}();n.platform?(t=n.platform,e=n.client||("mpweb"===t?T():E())):(e=n.client||T())?t=b.MPWEB:(e=E(),t=b.WEB)}return t&&e||v("Cannot identify your client."),{client:e,platform:t}}(),I=D.client,j=D.platform;m(S,I),m(b,j);var L,M,_=((L={})[b.MP]=function(e,t,n){var r=(n||{}).type,o=void 0===r?"async":r;return"sync"===o||(null==n?void 0:n.isSync)?my[e](t):("async"===o&&(my[e]?my[e](t):my.call(e,t)),"callback"===o&&my[e](t),"attribute"===o?my[e]:void 0)},L[b.MPWEB]=f,L[b.WEB]=function(e,t,r){n(function(){var n=(r||{}).type,o=void 0===n?"async":n;"async"===o&&window.AlipayJSBridge.call(e,t,function(e){var n=t||{},r=n.success,o=n.fail,a=n.complete;e.error||e.errorCode?null==o||o(e):null==r||r(e),null==a||a(e)}),"callback"===o&&window.AlipayJSBridge.call(e,t)})},L);function N(e,t,n){return j?_[j](e,t,n):function(e,t,n){var r;void 0===n&&(n={});var o=n.type,a=void 0===o?"async":o,c=u("NOTFOUND",e);if("sync"===a)return c;"callback"===a&&(null==t||t(c)),"async"===a&&(null===(r=null==t?void 0:t.fail)||void 0===r||r.call(t,c))}(t,n)}(M={})[b.MPWEB]=y,M[b.WEB]=function(e,t,n){return new Promise(function(r,o){var a,c=t||{},i=(c.success,c.fail),u=(c.complete,(n||{}).timeout),s=void 0===u?2e4:u;s>0&&(a=setTimeout(function(){var t={error:-101,errorMessage:"[".concat(e,"]: Timeout")};o(t),null==i||i(t)},s)),window.AlipayJSBridge.call(e,t,function(e){var n=t||{},c=n.success,i=n.fail,u=n.complete;a&&clearTimeout(a),(null==e?void 0:e.error)?(o(e),null==i||i(e)):(r(e),null==c||c(e)),null==u||u(e)})})};var K=function(){return K=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},K.apply(this,arguments)};function G(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var u=r&&r.prototype instanceof i?r:i,s=Object.create(u.prototype);return Y(s,"_invoke",function(n,r,o){var a,i,u,s=0,l=o||[],f=!1,y={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,i=0,u=e,y.n=n,c}};function p(n,r){for(i=n,u=r,t=0;!f&&s&&!o&&t<l.length;t++){var o,a=l[t],p=y.p,d=a[2];n>3?(o=d===r)&&(u=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&p<a[1])?(i=0,y.v=r,y.n=a[1]):p<d&&(o=n<3||a[0]>r||r>d)&&(a[4]=n,a[5]=r,y.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,l,d){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,d),i=l,u=d;(t=i<2?e:u)||!f;){a||(i?i<3?(i>1&&(y.n=-1),p(i,u)):y.n=u:y.v=u);try{if(s=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=y.n<0)?u:n.call(r,y))!==c)break}catch(t){a=e,i=1,u=t}finally{s=1}}return{value:t,done:f}}}(n,o,a),!0),s}var c={};function i(){}function u(){}function s(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(Y(t={},r,function(){return this}),t),f=s.prototype=i.prototype=Object.create(l);function y(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,Y(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=s,Y(f,"constructor",s),Y(s,"constructor",u),u.displayName="GeneratorFunction",Y(s,o,"GeneratorFunction"),Y(f),Y(f,o,"Generator"),Y(f,r,function(){return this}),Y(f,"toString",function(){return"[object Generator]"}),(G=function(){return{w:a,m:y}})()}function Y(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Y=function(e,t,n,r){function a(t,n){Y(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Y(e,t,n,r)}var F,V=(F=function(e){return f("getSystemInfo",e,{type:"async"})},function(e){return new Promise(function(t,n){var r=K(K({},e),{success:function(n){var r;t(n),null===(r=null==e?void 0:e.success)||void 0===r||r.call(e,n)},fail:function(t){var r;n(t),null===(r=null==e?void 0:e.fail)||void 0===r||r.call(e,t)}});F(r)})}),R=function(){return new Promise(function(e){N("getMPayUtdid",{success:function(t){e((null==t?void 0:t.utdid)||"")},fail:function(){e("")}})})};const H=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function c(e){d(a,r,o,c,i,"next",e)}function i(e){d(a,r,o,c,i,"throw",e)}c(void 0)})}}(G().m(function e(t){var n,r,o;return G().w(function(e){for(;;)switch(e.n){case 0:n=t.success,r=t.fail,o=t.complete,Promise.all([R(),V()]).then(function(e){var t,r,o=(r=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],c=!0,i=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);c=!0);}catch(e){i=!0,o=e}finally{try{c||null==n.return||n.return()}finally{if(i)throw o}}return a}}(t,r)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],c=o[1],i=c.brand,u=c.model,s=c.platform,l={apdid:a,brand:i,model:u,appVersion:c.version,osType:s,osVersion:c.system,terminalType:"miniapp"},f=JSON.stringify(l);null==n||n({appToken:f})}).catch(function(e){null==r||r(e)}).finally(function(){null==o||o()});case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}();function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U=["fail"];function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){W(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const z={addPhoneContact:function(e){return f("addPhoneContact",e,{type:"async"})},alert:function(e){return f("alert",e,{type:"async"})},chooseImage:function(e){return f("chooseImage",e,{type:"async"})},choosePhoneContact:function(e){return f("choosePhoneContact",e,{type:"async"})},clearStorage:function(e){return f("clearStorage",e,{type:"async"})},closeBluetoothAdapter:function(e){return f("closeBluetoothAdapter",e,{type:"async"})},closeSocket:function(e){return f("closeSocket",e,{type:"async"})},confirm:function(e){return f("confirm",e,{type:"async"})},connectBLEDevice:function(e){return f("connectBLEDevice",e,{type:"async"})},connectSocket:function(e){return f("connectSocket",e,{type:"async"})},datePicker:function(e){return f("datePicker",e,{type:"async"})},disconnectBLEDevice:function(e){return f("disconnectBLEDevice",e,{type:"async"})},downloadFile:function(e){return f("downloadFile",e,{type:"async"})},getAuthCode:function(e){return f("getAuthCode",e,{type:"async"})},getBatteryInfo:function(e){return f("getBatteryInfo",e,{type:"async"})},getBLEDeviceCharacteristics:function(e){return f("getBLEDeviceCharacteristics",e,{type:"async"})},getBLEDeviceServices:function(e){return f("getBLEDeviceServices",e,{type:"async"})},getBluetoothAdapterState:function(e){return f("getBluetoothAdapterState",e,{type:"async"})},getBluetoothDevices:function(e){return f("getBluetoothDevices",e,{type:"async"})},getClipboard:function(e){return f("getClipboard",e,{type:"async"})},getConnectedBluetoothDevices:function(e){return f("getConnectedBluetoothDevices",e,{type:"async"})},getFileInfo:function(e){return f("getFileInfo",e,{type:"async"})},getImageInfo:function(e){return f("getImageInfo",e,{type:"async"})},getNetworkType:function(e){return f("getNetworkType",e,{type:"async"})},getOpenUserInfo:function(e){return f("getOpenUserInfo",e,{type:"async"})},getSavedFileInfo:function(e){return f("getSavedFileInfo",e,{type:"async"})},getSavedFileList:function(e){return f("getSavedFileList",e,{type:"async"})},getScreenBrightness:function(e){return f("getScreenBrightness",e,{type:"async"})},getServerTime:function(e){return f("getServerTime",e,{type:"async"})},getSetting:function(e){return f("getSetting",e,{type:"async"})},getSiteInfo:function(e){return f("getSiteInfo",e,{type:"async"})},getStorage:function(e){return f("getStorage",e,{type:"async"})},getSystemInfo:function(e){return f("getSystemInfo",e,{type:"async"})},hideBackHome:function(e){return f("hideBackHome",e,{type:"async"})},hideKeyboard:function(e){return f("hideKeyboard",e,{type:"async"})},hideLoading:function(e){return f("hideLoading",e,{type:"async"})},hideNavigationBarLoading:function(e){return f("hideNavigationBarLoading",e,{type:"async"})},hideTabBar:function(e){return f("hideTabBar",e,{type:"async"})},hideToast:function(e){return f("hideToast",e,{type:"async"})},makePhoneCall:function(e){return f("makePhoneCall",e,{type:"async"})},multiLevelSelect:function(e){return f("multiLevelSelect",e,{type:"async"})},navigateBack:function(e){return f("navigateBack",e,{type:"async"})},navigateBackMiniProgram:function(e){return f("navigateBackMiniProgram",e,{type:"async"})},navigateTo:function(e){return f("navigateTo",e,{type:"async"})},navigateToBizScene:function(e){return f("navigateToBizScene",e,{type:"async"})},navigateToMiniProgram:function(e){return f("navigateToMiniProgram",e,{type:"async"})},notifyBLECharacteristicValueChange:function(e){return f("notifyBLECharacteristicValueChange",e,{type:"async"})},offAccelerometerChange:function(e){return f("offAccelerometerChange",e,{type:"callback"})},offBLECharacteristicValueChange:function(e){return f("offBLECharacteristicValueChange",e,{type:"callback"})},offBLEConnectionStateChanged:function(e){return f("offBLEConnectionStateChanged",e,{type:"callback"})},offBluetoothAdapterStateChange:function(e){return f("offBluetoothAdapterStateChange",e,{type:"callback"})},offBluetoothDeviceFound:function(e){return f("offBluetoothDeviceFound",e,{type:"callback"})},offCompassChange:function(e){return f("offCompassChange",e,{type:"callback"})},offMemoryWarning:function(e){return f("offMemoryWarning",e,{type:"callback"})},offSocketClose:function(e){return f("offSocketClose",e,{type:"callback"})},offSocketError:function(e){return f("offSocketError",e,{type:"callback"})},offSocketMessage:function(e){return f("offSocketMessage",e,{type:"callback"})},offSocketOpen:function(e){return f("offSocketOpen",e,{type:"callback"})},offUserCaptureScreen:function(e){return f("offUserCaptureScreen",e,{type:"callback"})},onAccelerometerChange:function(e){return f("onAccelerometerChange",e,{type:"callback"})},onBLECharacteristicValueChange:function(e){return f("onBLECharacteristicValueChange",e,{type:"callback"})},onBLEConnectionStateChanged:function(e){return f("onBLEConnectionStateChanged",e,{type:"callback"})},onBluetoothAdapterStateChange:function(e){return f("onBluetoothAdapterStateChange",e,{type:"callback"})},onBluetoothDeviceFound:function(e){return f("onBluetoothDeviceFound",e,{type:"callback"})},onCompassChange:function(e){return f("onCompassChange",e,{type:"callback"})},onMemoryWarning:function(e){return f("onMemoryWarning",e,{type:"callback"})},onSocketClose:function(e){return f("onSocketClose",e,{type:"callback"})},onSocketError:function(e){return f("onSocketError",e,{type:"callback"})},onSocketMessage:function(e){return f("onSocketMessage",e,{type:"callback"})},onSocketOpen:function(e){return f("onSocketOpen",e,{type:"callback"})},onUserCaptureScreen:function(e){return f("onUserCaptureScreen",e,{type:"callback"})},openBluetoothAdapter:function(e){return f("openBluetoothAdapter",e,{type:"async"})},openDocument:function(e){return f("openDocument",e,{type:"async"})},openSetting:function(e){return f("openSetting",e,{type:"async"})},pageScrollTo:function(e){return f("pageScrollTo",e,{type:"async"})},previewImage:function(e){return f("previewImage",e,{type:"async"})},prompt:function(e){return f("prompt",e,{type:"async"})},readBLECharacteristicValue:function(e){return f("readBLECharacteristicValue",e,{type:"async"})},redirectTo:function(e){return f("redirectTo",e,{type:"async"})},reLaunch:function(e){return f("reLaunch",e,{type:"async"})},removeSavedFile:function(e){return f("removeSavedFile",e,{type:"async"})},removeStorage:function(e){return f("removeStorage",e,{type:"async"})},request:function(e){return f("request",e,{type:"async"})},saveFile:function(e){return f("saveFile",e,{type:"async"})},saveImage:function(e){return f("saveImage",e,{type:"async"})},scan:function(e){return f("scan",e,{type:"async"})},sendSocketMessage:function(e){return f("sendSocketMessage",e,{type:"async"})},setBackgroundColor:function(e){return f("setBackgroundColor",e,{type:"async"})},setCanPullDown:function(e){return f("setCanPullDown",e,{type:"async"})},setClipboard:function(e){return f("setClipboard",e,{type:"async"})},setKeepScreenOn:function(e){return f("setKeepScreenOn",e,{type:"async"})},setNavigationBar:function(e){return f("setNavigationBar",e,{type:"async"})},setScreenBrightness:function(e){return f("setScreenBrightness",e,{type:"async"})},setStorage:function(e){return f("setStorage",e,{type:"async"})},setTabBarStyle:function(e){return f("setTabBarStyle",e,{type:"async"})},showActionSheet:function(e){return f("showActionSheet",e,{type:"async"})},showAuthGuide:function(e){return f("showAuthGuide",e,{type:"async"})},showLoading:function(e){return f("showLoading",e,{type:"async"})},showNavigationBarLoading:function(e){return f("showNavigationBarLoading",e,{type:"async"})},showToast:function(e){return f("showToast",e,{type:"async"})},signContract:function(e){return f("signContract",e,{type:"async"})},startBluetoothDevicesDiscovery:function(e){return f("startBluetoothDevicesDiscovery",e,{type:"async"})},startPullDownRefresh:function(e){return f("startPullDownRefresh",e,{type:"async"})},stopBluetoothDevicesDiscovery:function(e){return f("stopBluetoothDevicesDiscovery",e,{type:"async"})},stopPullDownRefresh:function(e){return f("stopPullDownRefresh",e,{type:"async"})},switchTab:function(e){return f("switchTab",e,{type:"async"})},tradePay:function(e){return f("tradePay",e,{type:"async"})},uploadFile:function(e){return f("uploadFile",e,{type:"async"})},vibrate:function(e){return f("vibrate",e,{type:"async"})},watchShake:function(e){return f("watchShake",e,{type:"async"})},writeBLECharacteristicValue:function(e){return f("writeBLECharacteristicValue",e,{type:"async"})},showSharePanel:function(e){return f("showSharePanel",e,{type:"async"})},setTransparentTitle:function(e){return f("setTransparentTitle",e,{type:"async"})},getRunScene:function(e){return f("getRunScene",e,{type:"async"})},chooseFileFromDisk:function(e){return f("chooseFileFromDisk",e,{type:"async"})},chooseVideo:function(e){return f("chooseVideo",e,{type:"async"})},compressImage:function(e){return f("compressImage",e,{type:"async"})},setTabBarItem:function(e){return f("setTabBarItem",e,{type:"async"})},showTabBar:function(e){return f("showTabBar",e,{type:"async"})},getBackgroundFetchData:function(e){return f("getBackgroundFetchData",e,{type:"async"})},getEnterOptionsSync:function(e){return f("getEnterOptionsSync",e,{type:"async"})},getAppToken:H,getLocation:function(e){var t=e||{},n=t.fail;N("getLocation",J(J({},function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,U)),{},{fail:function(e){5===(null==e?void 0:e.error)&&(e.error=11),null==n||n(e)}}))},getAppId:function(e){N("getMPayAppIdSync",e)},getCurrentPages:function(e){f("__hy_internal__",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach(function(t){W(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({name:"getCurrentPages"},e))},getSDKVersion:function(e){f("SDKVersion",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach(function(t){W(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),{type:"attribute"})}};return t.default})());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.my=t():e.my=t()}(self,()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>l});var n=!1,r=[];function o(e){return r.push(e),function(){r=r.filter(function(t){return t!==e})}}function c(e){return n||(document.addEventListener("onToWebViewMessage",function(e){var t=e.data.res;if(t&&"message"===t.type){var n=JSON.parse(t.data);r.forEach(function(e){return e(n)})}}),n=!0),function(e){if(window.AlipayJSBridge)return e();document.addEventListener("AlipayJSBridgeReady",function(){return e()},!1)}(function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:e})})}var a={NOTFOUND:{code:-1,message:function(e){return"".concat(e," is not found")}},NOTALLOWED:{code:-2,message:function(e){return"".concat(e," is not allowed")}},INVALID:{code:-3,message:function(e){return"".concat(e," is invalid")}},NOTBIND:{code:-4,message:function(e){return"".concat(e," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(e){return"".concat(e," exec fail, params error")}},TIMEOUT:{code:-6,message:function(e){return"".concat(e," exec fail, timeout")}}},i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},u={};function s(e,t,n){n=i({timeout:0},n);var r=e+"_"+Math.floor(1e6*Math.random());t&&(u[r]=t),c({source:"hylid",type:"apiCall",api:e,serialId:r,options:t,config:n,isSync:null==n?void 0:n.isSync,useMyCallToInvoke:null==n?void 0:n.useMyCallToInvoke});var o=t;(null==n?void 0:n.timeout)&&(null==o?void 0:o.fail)&&setTimeout(function(){u[r]&&(delete u[r],o.fail(function(e,t){void 0===t&&(t="");var n=a.TIMEOUT;return{errorCode:n.code,errorMessage:(0,n.message)(t),errorSouce:"hylid"}}()))},n.timeout)}o(function(e){var t,n=e,r=n.serialId;if(r&&u[r]){var o=u[r],c=n.result;if("callback"===(null===(t=n.config)||void 0===t?void 0:t.type)){var a=c||{},i=a._data_;return"success"===a._type_?o(i):o(void 0,i)}var s=o||{},y=s.success,f=s.fail,p=s.complete,l=c||{},g=l._data_,d=l._type_;d?("success"===d&&(null==y||y(g)),"fail"===d&&(null==f||f(g)),null==p||p(g)):((null==c?void 0:c.error)?null==f||f(c):null==y||y(c),null==p||p(c)),delete u[r]}}),s.onMessage=o,s.postMessage=c,s.broadcastGlobalData=function(e,t){c({source:"hylid",type:"broadcast",from:window.location.href,key:e,result:t})},s.onReceiveGlobalData=function(e,t){return o(function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===e){var o=r.result||{},c=o._data_;return"success"===o._type_?t(c,void 0,r.from):t(void 0,c,r.from)}})},s.onPageEvent=function(e,t){return c({source:"hylid",type:"pageEvent",event:e}),o(function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===e){var o=r.result||{},c=o._data_;return"success"===o._type_?t(c):t(void 0,c)}})};function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const l={addPhoneContact:function(e){return s("addPhoneContact",e,{type:"async"})},alert:function(e){return s("alert",e,{type:"async"})},chooseImage:function(e){return s("chooseImage",e,{type:"async"})},choosePhoneContact:function(e){return s("choosePhoneContact",e,{type:"async"})},clearStorage:function(e){return s("clearStorage",e,{type:"async"})},closeBluetoothAdapter:function(e){return s("closeBluetoothAdapter",e,{type:"async"})},closeSocket:function(e){return s("closeSocket",e,{type:"async"})},confirm:function(e){return s("confirm",e,{type:"async"})},connectBLEDevice:function(e){return s("connectBLEDevice",e,{type:"async"})},connectSocket:function(e){return s("connectSocket",e,{type:"async"})},datePicker:function(e){return s("datePicker",e,{type:"async"})},disconnectBLEDevice:function(e){return s("disconnectBLEDevice",e,{type:"async"})},downloadFile:function(e){return s("downloadFile",e,{type:"async"})},exitApp:function(e){return s("exitApp",e,{type:"async"})},getAppToken:function(e){return s("getAppToken",e,{type:"async"})},getAuthCode:function(e){return s("getAuthCode",e,{type:"async"})},getBatteryInfo:function(e){return s("getBatteryInfo",e,{type:"async"})},getBLEDeviceCharacteristics:function(e){return s("getBLEDeviceCharacteristics",e,{type:"async"})},getBLEDeviceServices:function(e){return s("getBLEDeviceServices",e,{type:"async"})},getBluetoothAdapterState:function(e){return s("getBluetoothAdapterState",e,{type:"async"})},getBluetoothDevices:function(e){return s("getBluetoothDevices",e,{type:"async"})},getClipboard:function(e){return s("getClipboard",e,{type:"async"})},getConnectedBluetoothDevices:function(e){return s("getConnectedBluetoothDevices",e,{type:"async"})},getFileInfo:function(e){return s("getFileInfo",e,{type:"async"})},getImageInfo:function(e){return s("getImageInfo",e,{type:"async"})},getLocation:function(e){return s("getLocation",e,{type:"async"})},getNetworkType:function(e){return s("getNetworkType",e,{type:"async"})},getOpenUserInfo:function(e){return s("getOpenUserInfo",e,{type:"async"})},getSavedFileInfo:function(e){return s("getSavedFileInfo",e,{type:"async"})},getSavedFileList:function(e){return s("getSavedFileList",e,{type:"async"})},getScreenBrightness:function(e){return s("getScreenBrightness",e,{type:"async"})},getServerTime:function(e){return s("getServerTime",e,{type:"async"})},getSetting:function(e){return s("getSetting",e,{type:"async"})},getSiteInfo:function(e){return s("getSiteInfo",e,{type:"async"})},getStorage:function(e){return s("getStorage",e,{type:"async"})},getSystemInfo:function(e){return s("getSystemInfo",e,{type:"async"})},hideBackHome:function(e){return s("hideBackHome",e,{type:"async"})},hideKeyboard:function(e){return s("hideKeyboard",e,{type:"async"})},hideLoading:function(e){return s("hideLoading",e,{type:"async"})},hideNavigationBarLoading:function(e){return s("hideNavigationBarLoading",e,{type:"async"})},hideTabBar:function(e){return s("hideTabBar",e,{type:"async"})},hideToast:function(e){return s("hideToast",e,{type:"async"})},makePhoneCall:function(e){return s("makePhoneCall",e,{type:"async"})},multiLevelSelect:function(e){return s("multiLevelSelect",e,{type:"async"})},navigateBack:function(e){return s("navigateBack",e,{type:"async"})},navigateBackMiniProgram:function(e){return s("navigateBackMiniProgram",e,{type:"async"})},navigateTo:function(e){return s("navigateTo",e,{type:"async"})},navigateToBizScene:function(e){return s("navigateToBizScene",e,{type:"async"})},navigateToMiniProgram:function(e){return s("navigateToMiniProgram",e,{type:"async"})},notifyBLECharacteristicValueChange:function(e){return s("notifyBLECharacteristicValueChange",e,{type:"async"})},offAccelerometerChange:function(e){return s("offAccelerometerChange",e,{type:"callback"})},offBLECharacteristicValueChange:function(e){return s("offBLECharacteristicValueChange",e,{type:"callback"})},offBLEConnectionStateChanged:function(e){return s("offBLEConnectionStateChanged",e,{type:"callback"})},offBluetoothAdapterStateChange:function(e){return s("offBluetoothAdapterStateChange",e,{type:"callback"})},offBluetoothDeviceFound:function(e){return s("offBluetoothDeviceFound",e,{type:"callback"})},offCompassChange:function(e){return s("offCompassChange",e,{type:"callback"})},offMemoryWarning:function(e){return s("offMemoryWarning",e,{type:"callback"})},offSocketClose:function(e){return s("offSocketClose",e,{type:"callback"})},offSocketError:function(e){return s("offSocketError",e,{type:"callback"})},offSocketMessage:function(e){return s("offSocketMessage",e,{type:"callback"})},offSocketOpen:function(e){return s("offSocketOpen",e,{type:"callback"})},offUserCaptureScreen:function(e){return s("offUserCaptureScreen",e,{type:"callback"})},onAccelerometerChange:function(e){return s("onAccelerometerChange",e,{type:"callback"})},onBLECharacteristicValueChange:function(e){return s("onBLECharacteristicValueChange",e,{type:"callback"})},onBLEConnectionStateChanged:function(e){return s("onBLEConnectionStateChanged",e,{type:"callback"})},onBluetoothAdapterStateChange:function(e){return s("onBluetoothAdapterStateChange",e,{type:"callback"})},onBluetoothDeviceFound:function(e){return s("onBluetoothDeviceFound",e,{type:"callback"})},onCompassChange:function(e){return s("onCompassChange",e,{type:"callback"})},onMemoryWarning:function(e){return s("onMemoryWarning",e,{type:"callback"})},onSocketClose:function(e){return s("onSocketClose",e,{type:"callback"})},onSocketError:function(e){return s("onSocketError",e,{type:"callback"})},onSocketMessage:function(e){return s("onSocketMessage",e,{type:"callback"})},onSocketOpen:function(e){return s("onSocketOpen",e,{type:"callback"})},onUserCaptureScreen:function(e){return s("onUserCaptureScreen",e,{type:"callback"})},openBluetoothAdapter:function(e){return s("openBluetoothAdapter",e,{type:"async"})},openDocument:function(e){return s("openDocument",e,{type:"async"})},openSetting:function(e){return s("openSetting",e,{type:"async"})},pageScrollTo:function(e){return s("pageScrollTo",e,{type:"async"})},previewImage:function(e){return s("previewImage",e,{type:"async"})},prompt:function(e){return s("prompt",e,{type:"async"})},readBLECharacteristicValue:function(e){return s("readBLECharacteristicValue",e,{type:"async"})},redirectTo:function(e){return s("redirectTo",e,{type:"async"})},reLaunch:function(e){return s("reLaunch",e,{type:"async"})},removeSavedFile:function(e){return s("removeSavedFile",e,{type:"async"})},removeStorage:function(e){return s("removeStorage",e,{type:"async"})},request:function(e){return s("request",e,{type:"async"})},rpc:function(e){return s("rpc",e,{type:"async"})},saveFile:function(e){return s("saveFile",e,{type:"async"})},saveImage:function(e){return s("saveImage",e,{type:"async"})},scan:function(e){return s("scan",e,{type:"async"})},sendSocketMessage:function(e){return s("sendSocketMessage",e,{type:"async"})},setBackgroundColor:function(e){return s("setBackgroundColor",e,{type:"async"})},setCanPullDown:function(e){return s("setCanPullDown",e,{type:"async"})},setClipboard:function(e){return s("setClipboard",e,{type:"async"})},setKeepScreenOn:function(e){return s("setKeepScreenOn",e,{type:"async"})},setNavigationBar:function(e){return s("setNavigationBar",e,{type:"async"})},setScreenBrightness:function(e){return s("setScreenBrightness",e,{type:"async"})},setStorage:function(e){return s("setStorage",e,{type:"async"})},setTabBarStyle:function(e){return s("setTabBarStyle",e,{type:"async"})},showActionSheet:function(e){return s("showActionSheet",e,{type:"async"})},showAuthGuide:function(e){return s("showAuthGuide",e,{type:"async"})},showLoading:function(e){return s("showLoading",e,{type:"async"})},showNavigationBarLoading:function(e){return s("showNavigationBarLoading",e,{type:"async"})},showToast:function(e){return s("showToast",e,{type:"async"})},signContract:function(e){return s("signContract",e,{type:"async"})},startBluetoothDevicesDiscovery:function(e){return s("startBluetoothDevicesDiscovery",e,{type:"async"})},startPullDownRefresh:function(e){return s("startPullDownRefresh",e,{type:"async"})},stopBluetoothDevicesDiscovery:function(e){return s("stopBluetoothDevicesDiscovery",e,{type:"async"})},stopPullDownRefresh:function(e){return s("stopPullDownRefresh",e,{type:"async"})},switchTab:function(e){return s("switchTab",e,{type:"async"})},tradePay:function(e){return s("tradePay",e,{type:"async"})},uploadFile:function(e){return s("uploadFile",e,{type:"async"})},vibrate:function(e){return s("vibrate",e,{type:"async"})},watchShake:function(e){return s("watchShake",e,{type:"async"})},writeBLECharacteristicValue:function(e){return s("writeBLECharacteristicValue",e,{type:"async"})},showSharePanel:function(e){return s("showSharePanel",e,{type:"async"})},setTransparentTitle:function(e){return s("setTransparentTitle",e,{type:"async"})},getRunScene:function(e){return s("getRunScene",e,{type:"async"})},chooseFileFromDisk:function(e){return s("chooseFileFromDisk",e,{type:"async"})},chooseVideo:function(e){return s("chooseVideo",e,{type:"async"})},compressImage:function(e){return s("compressImage",e,{type:"async"})},setTabBarItem:function(e){return s("setTabBarItem",e,{type:"async"})},showTabBar:function(e){return s("showTabBar",e,{type:"async"})},getBackgroundFetchData:function(e){return s("getBackgroundFetchData",e,{type:"async"})},getEnterOptionsSync:function(e){return s("getEnterOptionsSync",e,{type:"async"})},getAppId:function(e){s("getAppIdSync",e,{type:"sync",isSync:!0})},getCurrentPages:function(e){s("__hy_internal__",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({name:"getCurrentPages"},e))},getSDKVersion:function(e){s("SDKVersion",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),{type:"attribute"})}};return t.default})());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.my=t():e.my=t()}(self,()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>l});var n=!1,r=[];function o(e){return r.push(e),function(){r=r.filter(function(t){return t!==e})}}function c(e){return n||(document.addEventListener("onToWebViewMessage",function(e){var t=e.data.res;if(t&&"message"===t.type){var n=JSON.parse(t.data);r.forEach(function(e){return e(n)})}}),n=!0),function(e){if(window.AlipayJSBridge)return e();document.addEventListener("AlipayJSBridgeReady",function(){return e()},!1)}(function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:e})})}var a={NOTFOUND:{code:-1,message:function(e){return"".concat(e," is not found")}},NOTALLOWED:{code:-2,message:function(e){return"".concat(e," is not allowed")}},INVALID:{code:-3,message:function(e){return"".concat(e," is invalid")}},NOTBIND:{code:-4,message:function(e){return"".concat(e," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(e){return"".concat(e," exec fail, params error")}},TIMEOUT:{code:-6,message:function(e){return"".concat(e," exec fail, timeout")}}},i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},u={};function s(e,t,n){n=i({timeout:0},n);var r=e+"_"+Math.floor(1e6*Math.random());t&&(u[r]=t),c({source:"hylid",type:"apiCall",api:e,serialId:r,options:t,config:n,isSync:null==n?void 0:n.isSync,useMyCallToInvoke:null==n?void 0:n.useMyCallToInvoke});var o=t;(null==n?void 0:n.timeout)&&(null==o?void 0:o.fail)&&setTimeout(function(){u[r]&&(delete u[r],o.fail(function(e,t){void 0===t&&(t="");var n=a.TIMEOUT;return{errorCode:n.code,errorMessage:(0,n.message)(t),errorSouce:"hylid"}}()))},n.timeout)}o(function(e){var t,n=e,r=n.serialId;if(r&&u[r]){var o=u[r],c=n.result;if("callback"===(null===(t=n.config)||void 0===t?void 0:t.type)){var a=c||{},i=a._data_;return"success"===a._type_?o(i):o(void 0,i)}var s=o||{},y=s.success,f=s.fail,p=s.complete,l=c||{},g=l._data_,d=l._type_;d?("success"===d&&(null==y||y(g)),"fail"===d&&(null==f||f(g)),null==p||p(g)):((null==c?void 0:c.error)?null==f||f(c):null==y||y(c),null==p||p(c)),delete u[r]}}),s.onMessage=o,s.postMessage=c,s.broadcastGlobalData=function(e,t){c({source:"hylid",type:"broadcast",from:window.location.href,key:e,result:t})},s.onReceiveGlobalData=function(e,t){return o(function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===e){var o=r.result||{},c=o._data_;return"success"===o._type_?t(c,void 0,r.from):t(void 0,c,r.from)}})},s.onPageEvent=function(e,t){return c({source:"hylid",type:"pageEvent",event:e}),o(function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===e){var o=r.result||{},c=o._data_;return"success"===o._type_?t(c):t(void 0,c)}})};function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const l={addPhoneContact:function(e){return s("addPhoneContact",e,{type:"async"})},alert:function(e){return s("alert",e,{type:"async"})},chooseImage:function(e){return s("chooseImage",e,{type:"async"})},choosePhoneContact:function(e){return s("choosePhoneContact",e,{type:"async"})},clearStorage:function(e){return s("clearStorage",e,{type:"async"})},closeBluetoothAdapter:function(e){return s("closeBluetoothAdapter",e,{type:"async"})},closeSocket:function(e){return s("closeSocket",e,{type:"async"})},confirm:function(e){return s("confirm",e,{type:"async"})},connectBLEDevice:function(e){return s("connectBLEDevice",e,{type:"async"})},connectSocket:function(e){return s("connectSocket",e,{type:"async"})},datePicker:function(e){return s("datePicker",e,{type:"async"})},disconnectBLEDevice:function(e){return s("disconnectBLEDevice",e,{type:"async"})},downloadFile:function(e){return s("downloadFile",e,{type:"async"})},exitApp:function(e){return s("exitApp",e,{type:"async"})},getAppToken:function(e){return s("getAppToken",e,{type:"async"})},getAuthCode:function(e){return s("getAuthCode",e,{type:"async"})},getBatteryInfo:function(e){return s("getBatteryInfo",e,{type:"async"})},getBLEDeviceCharacteristics:function(e){return s("getBLEDeviceCharacteristics",e,{type:"async"})},getBLEDeviceServices:function(e){return s("getBLEDeviceServices",e,{type:"async"})},getBluetoothAdapterState:function(e){return s("getBluetoothAdapterState",e,{type:"async"})},getBluetoothDevices:function(e){return s("getBluetoothDevices",e,{type:"async"})},getClipboard:function(e){return s("getClipboard",e,{type:"async"})},getConnectedBluetoothDevices:function(e){return s("getConnectedBluetoothDevices",e,{type:"async"})},getFileInfo:function(e){return s("getFileInfo",e,{type:"async"})},getImageInfo:function(e){return s("getImageInfo",e,{type:"async"})},getLocation:function(e){return s("getLocation",e,{type:"async"})},getNetworkType:function(e){return s("getNetworkType",e,{type:"async"})},getOpenUserInfo:function(e){return s("getOpenUserInfo",e,{type:"async"})},getSavedFileInfo:function(e){return s("getSavedFileInfo",e,{type:"async"})},getSavedFileList:function(e){return s("getSavedFileList",e,{type:"async"})},getScreenBrightness:function(e){return s("getScreenBrightness",e,{type:"async"})},getServerTime:function(e){return s("getServerTime",e,{type:"async"})},getSetting:function(e){return s("getSetting",e,{type:"async"})},getSiteInfo:function(e){return s("getSiteInfo",e,{type:"async"})},getStorage:function(e){return s("getStorage",e,{type:"async"})},getSystemInfo:function(e){return s("getSystemInfo",e,{type:"async"})},hideBackHome:function(e){return s("hideBackHome",e,{type:"async"})},hideKeyboard:function(e){return s("hideKeyboard",e,{type:"async"})},hideLoading:function(e){return s("hideLoading",e,{type:"async"})},hideNavigationBarLoading:function(e){return s("hideNavigationBarLoading",e,{type:"async"})},hideTabBar:function(e){return s("hideTabBar",e,{type:"async"})},hideToast:function(e){return s("hideToast",e,{type:"async"})},makePhoneCall:function(e){return s("makePhoneCall",e,{type:"async"})},multiLevelSelect:function(e){return s("multiLevelSelect",e,{type:"async"})},navigateBack:function(e){return s("navigateBack",e,{type:"async"})},navigateBackMiniProgram:function(e){return s("navigateBackMiniProgram",e,{type:"async"})},navigateTo:function(e){return s("navigateTo",e,{type:"async"})},navigateToBizScene:function(e){return s("navigateToBizScene",e,{type:"async"})},navigateToMiniProgram:function(e){return s("navigateToMiniProgram",e,{type:"async"})},notifyBLECharacteristicValueChange:function(e){return s("notifyBLECharacteristicValueChange",e,{type:"async"})},offAccelerometerChange:function(e){return s("offAccelerometerChange",e,{type:"callback"})},offBLECharacteristicValueChange:function(e){return s("offBLECharacteristicValueChange",e,{type:"callback"})},offBLEConnectionStateChanged:function(e){return s("offBLEConnectionStateChanged",e,{type:"callback"})},offBluetoothAdapterStateChange:function(e){return s("offBluetoothAdapterStateChange",e,{type:"callback"})},offBluetoothDeviceFound:function(e){return s("offBluetoothDeviceFound",e,{type:"callback"})},offCompassChange:function(e){return s("offCompassChange",e,{type:"callback"})},offMemoryWarning:function(e){return s("offMemoryWarning",e,{type:"callback"})},offSocketClose:function(e){return s("offSocketClose",e,{type:"callback"})},offSocketError:function(e){return s("offSocketError",e,{type:"callback"})},offSocketMessage:function(e){return s("offSocketMessage",e,{type:"callback"})},offSocketOpen:function(e){return s("offSocketOpen",e,{type:"callback"})},offUserCaptureScreen:function(e){return s("offUserCaptureScreen",e,{type:"callback"})},onAccelerometerChange:function(e){return s("onAccelerometerChange",e,{type:"callback"})},onBLECharacteristicValueChange:function(e){return s("onBLECharacteristicValueChange",e,{type:"callback"})},onBLEConnectionStateChanged:function(e){return s("onBLEConnectionStateChanged",e,{type:"callback"})},onBluetoothAdapterStateChange:function(e){return s("onBluetoothAdapterStateChange",e,{type:"callback"})},onBluetoothDeviceFound:function(e){return s("onBluetoothDeviceFound",e,{type:"callback"})},onCompassChange:function(e){return s("onCompassChange",e,{type:"callback"})},onMemoryWarning:function(e){return s("onMemoryWarning",e,{type:"callback"})},onSocketClose:function(e){return s("onSocketClose",e,{type:"callback"})},onSocketError:function(e){return s("onSocketError",e,{type:"callback"})},onSocketMessage:function(e){return s("onSocketMessage",e,{type:"callback"})},onSocketOpen:function(e){return s("onSocketOpen",e,{type:"callback"})},onUserCaptureScreen:function(e){return s("onUserCaptureScreen",e,{type:"callback"})},openBluetoothAdapter:function(e){return s("openBluetoothAdapter",e,{type:"async"})},openDocument:function(e){return s("openDocument",e,{type:"async"})},openSetting:function(e){return s("openSetting",e,{type:"async"})},pageScrollTo:function(e){return s("pageScrollTo",e,{type:"async"})},previewImage:function(e){return s("previewImage",e,{type:"async"})},prompt:function(e){return s("prompt",e,{type:"async"})},readBLECharacteristicValue:function(e){return s("readBLECharacteristicValue",e,{type:"async"})},redirectTo:function(e){return s("redirectTo",e,{type:"async"})},reLaunch:function(e){return s("reLaunch",e,{type:"async"})},removeSavedFile:function(e){return s("removeSavedFile",e,{type:"async"})},removeStorage:function(e){return s("removeStorage",e,{type:"async"})},request:function(e){return s("request",e,{type:"async"})},rpc:function(e){return s("rpc",e,{type:"async"})},saveFile:function(e){return s("saveFile",e,{type:"async"})},saveImage:function(e){return s("saveImage",e,{type:"async"})},scan:function(e){return s("scan",e,{type:"async"})},sendSocketMessage:function(e){return s("sendSocketMessage",e,{type:"async"})},setBackgroundColor:function(e){return s("setBackgroundColor",e,{type:"async"})},setCanPullDown:function(e){return s("setCanPullDown",e,{type:"async"})},setClipboard:function(e){return s("setClipboard",e,{type:"async"})},setKeepScreenOn:function(e){return s("setKeepScreenOn",e,{type:"async"})},setNavigationBar:function(e){return s("setNavigationBar",e,{type:"async"})},setScreenBrightness:function(e){return s("setScreenBrightness",e,{type:"async"})},setStorage:function(e){return s("setStorage",e,{type:"async"})},setTabBarStyle:function(e){return s("setTabBarStyle",e,{type:"async"})},showActionSheet:function(e){return s("showActionSheet",e,{type:"async"})},showAuthGuide:function(e){return s("showAuthGuide",e,{type:"async"})},showLoading:function(e){return s("showLoading",e,{type:"async"})},showNavigationBarLoading:function(e){return s("showNavigationBarLoading",e,{type:"async"})},showToast:function(e){return s("showToast",e,{type:"async"})},signContract:function(e){return s("signContract",e,{type:"async"})},startBluetoothDevicesDiscovery:function(e){return s("startBluetoothDevicesDiscovery",e,{type:"async"})},startPullDownRefresh:function(e){return s("startPullDownRefresh",e,{type:"async"})},stopBluetoothDevicesDiscovery:function(e){return s("stopBluetoothDevicesDiscovery",e,{type:"async"})},stopPullDownRefresh:function(e){return s("stopPullDownRefresh",e,{type:"async"})},switchTab:function(e){return s("switchTab",e,{type:"async"})},tradePay:function(e){return s("tradePay",e,{type:"async"})},uploadFile:function(e){return s("uploadFile",e,{type:"async"})},vibrate:function(e){return s("vibrate",e,{type:"async"})},watchShake:function(e){return s("watchShake",e,{type:"async"})},writeBLECharacteristicValue:function(e){return s("writeBLECharacteristicValue",e,{type:"async"})},showSharePanel:function(e){return s("showSharePanel",e,{type:"async"})},setTransparentTitle:function(e){return s("setTransparentTitle",e,{type:"async"})},getRunScene:function(e){return s("getRunScene",e,{type:"async"})},chooseFileFromDisk:function(e){return s("chooseFileFromDisk",e,{type:"async"})},chooseVideo:function(e){return s("chooseVideo",e,{type:"async"})},compressImage:function(e){return s("compressImage",e,{type:"async"})},setTabBarItem:function(e){return s("setTabBarItem",e,{type:"async"})},showTabBar:function(e){return s("showTabBar",e,{type:"async"})},getBackgroundFetchData:function(e){return s("getBackgroundFetchData",e,{type:"async"})},getEnterOptionsSync:function(e){return s("getEnterOptionsSync",e,{type:"async"})},getAppId:function(e){s("getAppIdSync",e,{type:"sync",isSync:!0})},getCurrentPages:function(e){s("__hy_internal__",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({name:"getCurrentPages"},e))},getSDKVersion:function(e){s("SDKVersion",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),{type:"attribute"})}};return t.default})());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.my=t():e.my=t()}(self,()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>l});var n=!1,r=[];function o(e){return r.push(e),function(){r=r.filter(function(t){return t!==e})}}function c(e){return n||(document.addEventListener("onToWebViewMessage",function(e){var t=e.data.res;if(t&&"message"===t.type){var n=JSON.parse(t.data);r.forEach(function(e){return e(n)})}}),n=!0),function(e){if(window.AlipayJSBridge)return e();document.addEventListener("AlipayJSBridgeReady",function(){return e()},!1)}(function(){window.AlipayJSBridge.call("postWebViewMessage",{type:"message",detail:e})})}var a={NOTFOUND:{code:-1,message:function(e){return"".concat(e," is not found")}},NOTALLOWED:{code:-2,message:function(e){return"".concat(e," is not allowed")}},INVALID:{code:-3,message:function(e){return"".concat(e," is invalid")}},NOTBIND:{code:-4,message:function(e){return"".concat(e," exec fail, webviewBridge not bind context")}},PARAMS_ERROR:{code:-5,message:function(e){return"".concat(e," exec fail, params error")}},TIMEOUT:{code:-6,message:function(e){return"".concat(e," exec fail, timeout")}}},i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},u={};function s(e,t,n){n=i({timeout:0},n);var r=e+"_"+Math.floor(1e6*Math.random());t&&(u[r]=t),c({source:"hylid",type:"apiCall",api:e,serialId:r,options:t,config:n,isSync:null==n?void 0:n.isSync,useMyCallToInvoke:null==n?void 0:n.useMyCallToInvoke});var o=t;(null==n?void 0:n.timeout)&&(null==o?void 0:o.fail)&&setTimeout(function(){u[r]&&(delete u[r],o.fail(function(e,t){void 0===t&&(t="");var n=a.TIMEOUT;return{errorCode:n.code,errorMessage:(0,n.message)(t),errorSouce:"hylid"}}()))},n.timeout)}o(function(e){var t,n=e,r=n.serialId;if(r&&u[r]){var o=u[r],c=n.result;if("callback"===(null===(t=n.config)||void 0===t?void 0:t.type)){var a=c||{},i=a._data_;return"success"===a._type_?o(i):o(void 0,i)}var s=o||{},y=s.success,f=s.fail,p=s.complete,l=c||{},g=l._data_,d=l._type_;d?("success"===d&&(null==y||y(g)),"fail"===d&&(null==f||f(g)),null==p||p(g)):((null==c?void 0:c.error)?null==f||f(c):null==y||y(c),null==p||p(c)),delete u[r]}}),s.onMessage=o,s.postMessage=c,s.broadcastGlobalData=function(e,t){c({source:"hylid",type:"broadcast",from:window.location.href,key:e,result:t})},s.onReceiveGlobalData=function(e,t){return o(function(n){var r=n;if("hylid"===r.source&&"broadcast"===r.type&&r.key===e){var o=r.result||{},c=o._data_;return"success"===o._type_?t(c,void 0,r.from):t(void 0,c,r.from)}})},s.onPageEvent=function(e,t){return c({source:"hylid",type:"pageEvent",event:e}),o(function(n){var r=n;if("hylid"===r.source&&"pageEvent"===r.type&&r.event===e){var o=r.result||{},c=o._data_;return"success"===o._type_?t(c):t(void 0,c)}})};function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const l={addPhoneContact:function(e){return s("addPhoneContact",e,{type:"async"})},alert:function(e){return s("alert",e,{type:"async"})},chooseImage:function(e){return s("chooseImage",e,{type:"async"})},choosePhoneContact:function(e){return s("choosePhoneContact",e,{type:"async"})},clearStorage:function(e){return s("clearStorage",e,{type:"async"})},closeBluetoothAdapter:function(e){return s("closeBluetoothAdapter",e,{type:"async"})},closeSocket:function(e){return s("closeSocket",e,{type:"async"})},confirm:function(e){return s("confirm",e,{type:"async"})},connectBLEDevice:function(e){return s("connectBLEDevice",e,{type:"async"})},connectSocket:function(e){return s("connectSocket",e,{type:"async"})},datePicker:function(e){return s("datePicker",e,{type:"async"})},disconnectBLEDevice:function(e){return s("disconnectBLEDevice",e,{type:"async"})},downloadFile:function(e){return s("downloadFile",e,{type:"async"})},exitApp:function(e){return s("exitApp",e,{type:"async"})},getAppToken:function(e){return s("getAppToken",e,{type:"async"})},getAuthCode:function(e){return s("getAuthCode",e,{type:"async"})},getBatteryInfo:function(e){return s("getBatteryInfo",e,{type:"async"})},getBLEDeviceCharacteristics:function(e){return s("getBLEDeviceCharacteristics",e,{type:"async"})},getBLEDeviceServices:function(e){return s("getBLEDeviceServices",e,{type:"async"})},getBluetoothAdapterState:function(e){return s("getBluetoothAdapterState",e,{type:"async"})},getBluetoothDevices:function(e){return s("getBluetoothDevices",e,{type:"async"})},getClipboard:function(e){return s("getClipboard",e,{type:"async"})},getConnectedBluetoothDevices:function(e){return s("getConnectedBluetoothDevices",e,{type:"async"})},getFileInfo:function(e){return s("getFileInfo",e,{type:"async"})},getImageInfo:function(e){return s("getImageInfo",e,{type:"async"})},getLocation:function(e){return s("getLocation",e,{type:"async"})},getNetworkType:function(e){return s("getNetworkType",e,{type:"async"})},getOpenUserInfo:function(e){return s("getOpenUserInfo",e,{type:"async"})},getSavedFileInfo:function(e){return s("getSavedFileInfo",e,{type:"async"})},getSavedFileList:function(e){return s("getSavedFileList",e,{type:"async"})},getScreenBrightness:function(e){return s("getScreenBrightness",e,{type:"async"})},getServerTime:function(e){return s("getServerTime",e,{type:"async"})},getSetting:function(e){return s("getSetting",e,{type:"async"})},getSiteInfo:function(e){return s("getSiteInfo",e,{type:"async"})},getStorage:function(e){return s("getStorage",e,{type:"async"})},getSystemInfo:function(e){return s("getSystemInfo",e,{type:"async"})},hideBackHome:function(e){return s("hideBackHome",e,{type:"async"})},hideKeyboard:function(e){return s("hideKeyboard",e,{type:"async"})},hideLoading:function(e){return s("hideLoading",e,{type:"async"})},hideNavigationBarLoading:function(e){return s("hideNavigationBarLoading",e,{type:"async"})},hideTabBar:function(e){return s("hideTabBar",e,{type:"async"})},hideToast:function(e){return s("hideToast",e,{type:"async"})},makePhoneCall:function(e){return s("makePhoneCall",e,{type:"async"})},multiLevelSelect:function(e){return s("multiLevelSelect",e,{type:"async"})},navigateBack:function(e){return s("navigateBack",e,{type:"async"})},navigateBackMiniProgram:function(e){return s("navigateBackMiniProgram",e,{type:"async"})},navigateTo:function(e){return s("navigateTo",e,{type:"async"})},navigateToBizScene:function(e){return s("navigateToBizScene",e,{type:"async"})},navigateToMiniProgram:function(e){return s("navigateToMiniProgram",e,{type:"async"})},notifyBLECharacteristicValueChange:function(e){return s("notifyBLECharacteristicValueChange",e,{type:"async"})},offAccelerometerChange:function(e){return s("offAccelerometerChange",e,{type:"callback"})},offBLECharacteristicValueChange:function(e){return s("offBLECharacteristicValueChange",e,{type:"callback"})},offBLEConnectionStateChanged:function(e){return s("offBLEConnectionStateChanged",e,{type:"callback"})},offBluetoothAdapterStateChange:function(e){return s("offBluetoothAdapterStateChange",e,{type:"callback"})},offBluetoothDeviceFound:function(e){return s("offBluetoothDeviceFound",e,{type:"callback"})},offCompassChange:function(e){return s("offCompassChange",e,{type:"callback"})},offMemoryWarning:function(e){return s("offMemoryWarning",e,{type:"callback"})},offSocketClose:function(e){return s("offSocketClose",e,{type:"callback"})},offSocketError:function(e){return s("offSocketError",e,{type:"callback"})},offSocketMessage:function(e){return s("offSocketMessage",e,{type:"callback"})},offSocketOpen:function(e){return s("offSocketOpen",e,{type:"callback"})},offUserCaptureScreen:function(e){return s("offUserCaptureScreen",e,{type:"callback"})},onAccelerometerChange:function(e){return s("onAccelerometerChange",e,{type:"callback"})},onBLECharacteristicValueChange:function(e){return s("onBLECharacteristicValueChange",e,{type:"callback"})},onBLEConnectionStateChanged:function(e){return s("onBLEConnectionStateChanged",e,{type:"callback"})},onBluetoothAdapterStateChange:function(e){return s("onBluetoothAdapterStateChange",e,{type:"callback"})},onBluetoothDeviceFound:function(e){return s("onBluetoothDeviceFound",e,{type:"callback"})},onCompassChange:function(e){return s("onCompassChange",e,{type:"callback"})},onMemoryWarning:function(e){return s("onMemoryWarning",e,{type:"callback"})},onSocketClose:function(e){return s("onSocketClose",e,{type:"callback"})},onSocketError:function(e){return s("onSocketError",e,{type:"callback"})},onSocketMessage:function(e){return s("onSocketMessage",e,{type:"callback"})},onSocketOpen:function(e){return s("onSocketOpen",e,{type:"callback"})},onUserCaptureScreen:function(e){return s("onUserCaptureScreen",e,{type:"callback"})},openBluetoothAdapter:function(e){return s("openBluetoothAdapter",e,{type:"async"})},openDocument:function(e){return s("openDocument",e,{type:"async"})},openSetting:function(e){return s("openSetting",e,{type:"async"})},pageScrollTo:function(e){return s("pageScrollTo",e,{type:"async"})},previewImage:function(e){return s("previewImage",e,{type:"async"})},prompt:function(e){return s("prompt",e,{type:"async"})},readBLECharacteristicValue:function(e){return s("readBLECharacteristicValue",e,{type:"async"})},redirectTo:function(e){return s("redirectTo",e,{type:"async"})},reLaunch:function(e){return s("reLaunch",e,{type:"async"})},removeSavedFile:function(e){return s("removeSavedFile",e,{type:"async"})},removeStorage:function(e){return s("removeStorage",e,{type:"async"})},request:function(e){return s("request",e,{type:"async"})},rpc:function(e){return s("rpc",e,{type:"async"})},saveFile:function(e){return s("saveFile",e,{type:"async"})},saveImage:function(e){return s("saveImage",e,{type:"async"})},scan:function(e){return s("scan",e,{type:"async"})},sendSocketMessage:function(e){return s("sendSocketMessage",e,{type:"async"})},setBackgroundColor:function(e){return s("setBackgroundColor",e,{type:"async"})},setCanPullDown:function(e){return s("setCanPullDown",e,{type:"async"})},setClipboard:function(e){return s("setClipboard",e,{type:"async"})},setKeepScreenOn:function(e){return s("setKeepScreenOn",e,{type:"async"})},setNavigationBar:function(e){return s("setNavigationBar",e,{type:"async"})},setScreenBrightness:function(e){return s("setScreenBrightness",e,{type:"async"})},setStorage:function(e){return s("setStorage",e,{type:"async"})},setTabBarStyle:function(e){return s("setTabBarStyle",e,{type:"async"})},showActionSheet:function(e){return s("showActionSheet",e,{type:"async"})},showAuthGuide:function(e){return s("showAuthGuide",e,{type:"async"})},showLoading:function(e){return s("showLoading",e,{type:"async"})},showNavigationBarLoading:function(e){return s("showNavigationBarLoading",e,{type:"async"})},showToast:function(e){return s("showToast",e,{type:"async"})},signContract:function(e){return s("signContract",e,{type:"async"})},startBluetoothDevicesDiscovery:function(e){return s("startBluetoothDevicesDiscovery",e,{type:"async"})},startPullDownRefresh:function(e){return s("startPullDownRefresh",e,{type:"async"})},stopBluetoothDevicesDiscovery:function(e){return s("stopBluetoothDevicesDiscovery",e,{type:"async"})},stopPullDownRefresh:function(e){return s("stopPullDownRefresh",e,{type:"async"})},switchTab:function(e){return s("switchTab",e,{type:"async"})},tradePay:function(e){return s("tradePay",e,{type:"async"})},uploadFile:function(e){return s("uploadFile",e,{type:"async"})},vibrate:function(e){return s("vibrate",e,{type:"async"})},watchShake:function(e){return s("watchShake",e,{type:"async"})},writeBLECharacteristicValue:function(e){return s("writeBLECharacteristicValue",e,{type:"async"})},showSharePanel:function(e){return s("showSharePanel",e,{type:"async"})},setTransparentTitle:function(e){return s("setTransparentTitle",e,{type:"async"})},getRunScene:function(e){return s("getRunScene",e,{type:"async"})},chooseFileFromDisk:function(e){return s("chooseFileFromDisk",e,{type:"async"})},chooseVideo:function(e){return s("chooseVideo",e,{type:"async"})},compressImage:function(e){return s("compressImage",e,{type:"async"})},setTabBarItem:function(e){return s("setTabBarItem",e,{type:"async"})},showTabBar:function(e){return s("showTabBar",e,{type:"async"})},getBackgroundFetchData:function(e){return s("getBackgroundFetchData",e,{type:"async"})},getEnterOptionsSync:function(e){return s("getEnterOptionsSync",e,{type:"async"})},getAppId:function(e){s("getAppIdSync",e,{type:"sync",isSync:!0})},getCurrentPages:function(e){s("__hy_internal__",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({name:"getCurrentPages"},e))},getSDKVersion:function(e){s("SDKVersion",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),{type:"attribute"})}};return t.default})());
|