webtonative 1.0.74 → 1.0.75-beta.2
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/.editorconfig +10 -0
- package/.prettierrc.json +7 -0
- package/README.md +31 -2
- package/build/ATTConsent/index.d.ts +17 -0
- package/build/ATTConsent/index.d.ts.map +1 -0
- package/build/ATTConsent/index.js +54 -0
- package/build/ATTConsent/index.js.map +1 -0
- package/build/ATTConsent/types.d.ts +15 -0
- package/build/ATTConsent/types.d.ts.map +1 -0
- package/build/ATTConsent/types.js +3 -0
- package/build/ATTConsent/types.js.map +1 -0
- package/build/AdMob/index.d.ts +31 -0
- package/build/AdMob/index.d.ts.map +1 -0
- package/build/AdMob/index.js +102 -0
- package/build/AdMob/index.js.map +1 -0
- package/build/AdMob/types.d.ts +25 -0
- package/build/AdMob/types.d.ts.map +1 -0
- package/build/AdMob/types.js +4 -0
- package/build/AdMob/types.js.map +1 -0
- package/build/AppReview/index.d.ts +7 -0
- package/build/AppReview/index.d.ts.map +1 -0
- package/build/AppReview/index.js +22 -0
- package/build/AppReview/index.js.map +1 -0
- package/build/AppReview/types.d.ts +8 -0
- package/build/AppReview/types.d.ts.map +1 -0
- package/build/AppReview/types.js +4 -0
- package/build/AppReview/types.js.map +1 -0
- package/build/AppsFlyer/index.d.ts +15 -0
- package/build/AppsFlyer/index.d.ts.map +1 -0
- package/build/AppsFlyer/index.js +43 -0
- package/build/AppsFlyer/index.js.map +1 -0
- package/build/AppsFlyer/types.d.ts +10 -0
- package/build/AppsFlyer/types.d.ts.map +1 -0
- package/build/AppsFlyer/types.js +3 -0
- package/build/AppsFlyer/types.js.map +1 -0
- package/build/BackgroundLocation/index.d.ts +12 -0
- package/build/BackgroundLocation/index.d.ts.map +1 -0
- package/build/BackgroundLocation/index.js +65 -0
- package/build/BackgroundLocation/index.js.map +1 -0
- package/build/BackgroundLocation/types.d.ts +32 -0
- package/build/BackgroundLocation/types.d.ts.map +1 -0
- package/build/BackgroundLocation/types.js +3 -0
- package/build/BackgroundLocation/types.js.map +1 -0
- package/build/Beacon/index.d.ts +7 -0
- package/build/Beacon/index.d.ts.map +1 -0
- package/build/Beacon/index.js +30 -0
- package/build/Beacon/index.js.map +1 -0
- package/build/Beacon/types.d.ts +19 -0
- package/build/Beacon/types.d.ts.map +1 -0
- package/build/Beacon/types.js +3 -0
- package/build/Beacon/types.js.map +1 -0
- package/build/Biometric/index.d.ts +27 -0
- package/build/Biometric/index.d.ts.map +1 -0
- package/build/Biometric/index.js +125 -0
- package/build/Biometric/index.js.map +1 -0
- package/build/Biometric/types.d.ts +24 -0
- package/build/Biometric/types.d.ts.map +1 -0
- package/build/Biometric/types.js +3 -0
- package/build/Biometric/types.js.map +1 -0
- package/build/Bluetooth/index.d.ts +17 -0
- package/build/Bluetooth/index.d.ts.map +1 -0
- package/build/Bluetooth/index.js +67 -0
- package/build/Bluetooth/index.js.map +1 -0
- package/build/Bluetooth/types.d.ts +34 -0
- package/build/Bluetooth/types.d.ts.map +1 -0
- package/build/Bluetooth/types.js +3 -0
- package/build/Bluetooth/types.js.map +1 -0
- package/build/BottomNavigation/index.d.ts +11 -0
- package/build/BottomNavigation/index.d.ts.map +1 -0
- package/build/BottomNavigation/index.js +41 -0
- package/build/BottomNavigation/index.js.map +1 -0
- package/build/BottomNavigation/types.d.ts +9 -0
- package/build/BottomNavigation/types.d.ts.map +1 -0
- package/build/BottomNavigation/types.js +3 -0
- package/build/BottomNavigation/types.js.map +1 -0
- package/build/Clipboard/index.d.ts +12 -0
- package/build/Clipboard/index.d.ts.map +1 -0
- package/build/Clipboard/index.js +45 -0
- package/build/Clipboard/index.js.map +1 -0
- package/build/Clipboard/types.d.ts +20 -0
- package/build/Clipboard/types.d.ts.map +1 -0
- package/build/Clipboard/types.js +4 -0
- package/build/Clipboard/types.js.map +1 -0
- package/build/Facebook/events.d.ts +13 -0
- package/build/Facebook/events.d.ts.map +1 -0
- package/build/Facebook/events.js +44 -0
- package/build/Facebook/events.js.map +1 -0
- package/build/Facebook/index.d.ts +3 -0
- package/build/Facebook/index.d.ts.map +1 -0
- package/build/Facebook/index.js +29 -0
- package/build/Facebook/index.js.map +1 -0
- package/build/Facebook/types.d.ts +22 -0
- package/build/Facebook/types.d.ts.map +1 -0
- package/build/Facebook/types.js +3 -0
- package/build/Facebook/types.js.map +1 -0
- package/build/Firebase/Analytics/index.d.ts +32 -0
- package/build/Firebase/Analytics/index.d.ts.map +1 -0
- package/build/Firebase/Analytics/index.js +110 -0
- package/build/Firebase/Analytics/index.js.map +1 -0
- package/build/Firebase/Messaging/index.d.ts +17 -0
- package/build/Firebase/Messaging/index.d.ts.map +1 -0
- package/build/Firebase/Messaging/index.js +64 -0
- package/build/Firebase/Messaging/index.js.map +1 -0
- package/build/Firebase/index.d.ts +4 -0
- package/build/Firebase/index.d.ts.map +1 -0
- package/build/Firebase/index.js +31 -0
- package/build/Firebase/index.js.map +1 -0
- package/build/Firebase/types.d.ts +58 -0
- package/build/Firebase/types.d.ts.map +1 -0
- package/build/Firebase/types.js +4 -0
- package/build/Firebase/types.js.map +1 -0
- package/build/FirebaseAnalytics/index.d.ts +3 -0
- package/build/FirebaseAnalytics/index.d.ts.map +1 -0
- package/build/FirebaseAnalytics/index.js +29 -0
- package/build/FirebaseAnalytics/index.js.map +1 -0
- package/build/Haptics/index.d.ts +7 -0
- package/build/Haptics/index.d.ts.map +1 -0
- package/build/Haptics/index.js +21 -0
- package/build/Haptics/index.js.map +1 -0
- package/build/Haptics/types.d.ts +8 -0
- package/build/Haptics/types.d.ts.map +1 -0
- package/build/Haptics/types.js +3 -0
- package/build/Haptics/types.js.map +1 -0
- package/build/InAppPurchase/index.d.ts +23 -0
- package/build/InAppPurchase/index.d.ts.map +1 -0
- package/build/InAppPurchase/index.js +81 -0
- package/build/InAppPurchase/index.js.map +1 -0
- package/build/InAppPurchase/types.d.ts +30 -0
- package/build/InAppPurchase/types.d.ts.map +1 -0
- package/build/InAppPurchase/types.js +3 -0
- package/build/InAppPurchase/types.js.map +1 -0
- package/build/InAppUpdate/index.d.ts +12 -0
- package/build/InAppUpdate/index.d.ts.map +1 -0
- package/build/InAppUpdate/index.js +39 -0
- package/build/InAppUpdate/index.js.map +1 -0
- package/build/InAppUpdate/types.d.ts +15 -0
- package/build/InAppUpdate/types.d.ts.map +1 -0
- package/build/InAppUpdate/types.js +3 -0
- package/build/InAppUpdate/types.js.map +1 -0
- package/build/MediaPlayer/index.d.ts +17 -0
- package/build/MediaPlayer/index.d.ts.map +1 -0
- package/build/MediaPlayer/index.js +56 -0
- package/build/MediaPlayer/index.js.map +1 -0
- package/build/MediaPlayer/types.d.ts +14 -0
- package/build/MediaPlayer/types.d.ts.map +1 -0
- package/build/MediaPlayer/types.js +3 -0
- package/build/MediaPlayer/types.js.map +1 -0
- package/build/NativeContacts/index.d.ts +12 -0
- package/build/NativeContacts/index.d.ts.map +1 -0
- package/build/NativeContacts/index.js +51 -0
- package/build/NativeContacts/index.js.map +1 -0
- package/build/NativeContacts/types.d.ts +14 -0
- package/build/NativeContacts/types.d.ts.map +1 -0
- package/build/NativeContacts/types.js +3 -0
- package/build/NativeContacts/types.js.map +1 -0
- package/build/Notification/index.d.ts +11 -0
- package/build/Notification/index.d.ts.map +1 -0
- package/build/Notification/index.js +42 -0
- package/build/Notification/index.js.map +1 -0
- package/build/Notification/types.d.ts +14 -0
- package/build/Notification/types.d.ts.map +1 -0
- package/build/Notification/types.js +3 -0
- package/build/Notification/types.js.map +1 -0
- package/build/OneSignal/index.d.ts +4 -0
- package/build/OneSignal/index.d.ts.map +1 -0
- package/build/OneSignal/index.js +59 -0
- package/build/OneSignal/index.js.map +1 -0
- package/build/OneSignal/types.d.ts +11 -0
- package/build/OneSignal/types.d.ts.map +1 -0
- package/build/OneSignal/types.js +4 -0
- package/build/OneSignal/types.js.map +1 -0
- package/build/Printing/index.d.ts +7 -0
- package/build/Printing/index.d.ts.map +1 -0
- package/build/Printing/index.js +20 -0
- package/build/Printing/index.js.map +1 -0
- package/build/Printing/types.d.ts +9 -0
- package/build/Printing/types.d.ts.map +1 -0
- package/build/Printing/types.js +3 -0
- package/build/Printing/types.js.map +1 -0
- package/build/README.md +33 -0
- package/build/Screen/index.d.ts +9 -0
- package/build/Screen/index.d.ts.map +1 -0
- package/build/Screen/index.js +35 -0
- package/build/Screen/index.js.map +1 -0
- package/build/Screen/types.d.ts +6 -0
- package/build/Screen/types.d.ts.map +1 -0
- package/build/Screen/types.js +4 -0
- package/build/Screen/types.js.map +1 -0
- package/build/Siri/index.d.ts +7 -0
- package/build/Siri/index.d.ts.map +1 -0
- package/build/Siri/index.js +26 -0
- package/build/Siri/index.js.map +1 -0
- package/build/Siri/types.d.ts +14 -0
- package/build/Siri/types.d.ts.map +1 -0
- package/build/Siri/types.js +3 -0
- package/build/Siri/types.js.map +1 -0
- package/build/SocialLogin/apple.d.ts +12 -0
- package/build/SocialLogin/apple.d.ts.map +1 -0
- package/build/SocialLogin/apple.js +32 -0
- package/build/SocialLogin/apple.js.map +1 -0
- package/build/SocialLogin/facebook.d.ts +22 -0
- package/build/SocialLogin/facebook.d.ts.map +1 -0
- package/build/SocialLogin/facebook.js +61 -0
- package/build/SocialLogin/facebook.js.map +1 -0
- package/build/SocialLogin/google.d.ts +22 -0
- package/build/SocialLogin/google.d.ts.map +1 -0
- package/build/SocialLogin/google.js +61 -0
- package/build/SocialLogin/google.js.map +1 -0
- package/build/SocialLogin/index.d.ts +17 -0
- package/build/SocialLogin/index.d.ts.map +1 -0
- package/build/SocialLogin/index.js +23 -0
- package/build/SocialLogin/index.js.map +1 -0
- package/build/SocialLogin/types.d.ts +39 -0
- package/build/SocialLogin/types.d.ts.map +1 -0
- package/build/SocialLogin/types.js +3 -0
- package/build/SocialLogin/types.js.map +1 -0
- package/build/Stripe/index.d.ts +3 -0
- package/build/Stripe/index.d.ts.map +1 -0
- package/build/Stripe/index.js +49 -0
- package/build/Stripe/index.js.map +1 -0
- package/build/Stripe/types.d.ts +32 -0
- package/build/Stripe/types.d.ts.map +1 -0
- package/build/Stripe/types.js +3 -0
- package/build/Stripe/types.js.map +1 -0
- package/build/VoiceSearch/index.d.ts +13 -0
- package/build/VoiceSearch/index.d.ts.map +1 -0
- package/build/VoiceSearch/index.js +34 -0
- package/build/VoiceSearch/index.js.map +1 -0
- package/build/VoiceSearch/types.d.ts +10 -0
- package/build/VoiceSearch/types.d.ts.map +1 -0
- package/build/VoiceSearch/types.js +3 -0
- package/build/VoiceSearch/types.js.map +1 -0
- package/build/barcode/barcode-scan.d.ts +16 -0
- package/build/barcode/barcode-scan.d.ts.map +1 -0
- package/build/barcode/barcode-scan.js +40 -0
- package/build/barcode/barcode-scan.js.map +1 -0
- package/build/barcode/barcode-types.d.ts +18 -0
- package/build/barcode/barcode-types.d.ts.map +1 -0
- package/build/barcode/barcode-types.js +3 -0
- package/build/barcode/barcode-types.js.map +1 -0
- package/build/barcode/formats.d.ts +18 -0
- package/build/barcode/formats.d.ts.map +1 -0
- package/build/barcode/formats.js +23 -0
- package/build/barcode/formats.js.map +1 -0
- package/build/barcode/index.d.ts +5 -0
- package/build/barcode/index.d.ts.map +1 -0
- package/build/barcode/index.js +13 -0
- package/build/barcode/index.js.map +1 -0
- package/build/barcode/types.d.ts +17 -0
- package/build/barcode/types.d.ts.map +1 -0
- package/build/barcode/types.js +22 -0
- package/build/barcode/types.js.map +1 -0
- package/build/index.d.ts +15 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +110 -0
- package/build/index.js.map +1 -0
- package/build/package.json +155 -0
- package/build/types/index.d.ts +49 -0
- package/build/types/index.d.ts.map +1 -0
- package/build/types/index.js +4 -0
- package/build/types/index.js.map +1 -0
- package/build/utills.d.ts +12 -0
- package/build/utills.d.ts.map +1 -0
- package/build/utills.js +111 -0
- package/build/utills.js.map +1 -0
- package/build/webtonative.min.js +1 -0
- package/buildScript.ts +35 -0
- package/client.ts +106 -0
- package/index.d.ts +65 -0
- package/package.json +36 -31
- package/src/ATTConsent/index.ts +51 -0
- package/src/ATTConsent/types.ts +17 -0
- package/src/AdMob/index.ts +113 -0
- package/src/AdMob/types.ts +37 -0
- package/src/AppReview/index.ts +19 -0
- package/src/AppReview/types.ts +12 -0
- package/src/AppsFlyer/index.ts +46 -0
- package/src/AppsFlyer/types.ts +10 -0
- package/src/BackgroundLocation/index.ts +78 -0
- package/src/BackgroundLocation/types.ts +34 -0
- package/src/Beacon/index.ts +28 -0
- package/src/Beacon/types.ts +22 -0
- package/src/Biometric/index.ts +126 -0
- package/src/Biometric/types.ts +27 -0
- package/src/Bluetooth/index.ts +71 -0
- package/src/Bluetooth/types.ts +40 -0
- package/src/BottomNavigation/index.ts +39 -0
- package/src/BottomNavigation/types.ts +9 -0
- package/src/Clipboard/index.ts +48 -0
- package/src/Clipboard/types.ts +30 -0
- package/src/Facebook/events.ts +45 -0
- package/src/Facebook/index.ts +3 -0
- package/src/Facebook/types.ts +24 -0
- package/src/Firebase/Analytics/index.ts +127 -0
- package/src/Firebase/Messaging/index.ts +73 -0
- package/src/Firebase/index.ts +4 -0
- package/src/Firebase/types.ts +74 -0
- package/src/FirebaseAnalytics/index.ts +3 -0
- package/src/Haptics/index.ts +17 -0
- package/src/Haptics/types.ts +8 -0
- package/src/InAppPurchase/index.ts +92 -0
- package/src/InAppPurchase/types.ts +35 -0
- package/src/InAppUpdate/index.ts +40 -0
- package/src/InAppUpdate/types.ts +17 -0
- package/src/MediaPlayer/index.ts +56 -0
- package/src/MediaPlayer/types.ts +15 -0
- package/src/NativeContacts/index.ts +50 -0
- package/src/NativeContacts/types.ts +16 -0
- package/src/Notification/index.ts +41 -0
- package/src/Notification/types.ts +16 -0
- package/src/OneSignal/index.ts +54 -0
- package/src/OneSignal/types.ts +15 -0
- package/src/Printing/index.ts +17 -0
- package/src/Printing/types.ts +9 -0
- package/src/Screen/index.ts +34 -0
- package/src/Screen/types.ts +8 -0
- package/src/Siri/index.ts +23 -0
- package/src/Siri/types.ts +14 -0
- package/src/SocialLogin/apple.ts +31 -0
- package/src/SocialLogin/facebook.ts +64 -0
- package/src/SocialLogin/google.ts +64 -0
- package/src/SocialLogin/index.ts +20 -0
- package/src/SocialLogin/types.ts +52 -0
- package/src/Stripe/index.ts +54 -0
- package/src/Stripe/types.ts +37 -0
- package/src/VoiceSearch/index.ts +37 -0
- package/src/VoiceSearch/types.ts +12 -0
- package/src/barcode/barcode-scan.ts +59 -0
- package/src/barcode/barcode-types.ts +22 -0
- package/src/barcode/formats.ts +19 -0
- package/src/barcode/index.ts +5 -0
- package/src/barcode/types.ts +18 -0
- package/src/index.ts +105 -0
- package/src/types/index.ts +71 -0
- package/src/utills.ts +110 -0
- package/tsconfig.json +27 -0
- package/webpack.config.js +57 -0
- package/ATTConsent/index.js +0 -1
- package/AdMob/index.js +0 -1
- package/AppReview/index.js +0 -1
- package/AppsFlyer/index.js +0 -4
- package/BackgroundLocation/index.js +0 -4
- package/Beacon/index.js +0 -1
- package/Biometric/index.js +0 -1
- package/Bluetooth/index.js +0 -1
- package/BottomNavigation/index.js +0 -4
- package/Clipboard/index.js +0 -4
- package/Facebook/events.js +0 -4
- package/Facebook/index.js +0 -1
- package/Firebase/Analytics/index.js +0 -4
- package/Firebase/Messaging/index.js +0 -4
- package/Firebase/index.js +0 -1
- package/FirebaseAnalytics/index.js +0 -1
- package/Haptics/index.js +0 -1
- package/InAppPurchase/index.js +0 -1
- package/InAppUpdate/index.js +0 -1
- package/MediaPlayer/index.js +0 -7
- package/NativeContacts/index.js +0 -6
- package/Notification/index.js +0 -5
- package/OneSignal/index.js +0 -1
- package/Printing/index.js +0 -1
- package/Screen/index.js +0 -4
- package/Siri/index.js +0 -1
- package/SocialLogin/apple.js +0 -1
- package/SocialLogin/facebook.js +0 -9
- package/SocialLogin/google.js +0 -9
- package/SocialLogin/index.js +0 -1
- package/Stripe/index.js +0 -1
- package/VoiceSearch/index.js +0 -1
- package/barcode/barcode-scan.js +0 -1
- package/barcode/formats.js +0 -1
- package/barcode/index.js +0 -1
- package/barcode/types.js +0 -1
- package/index.js +0 -4
- package/utills.js +0 -1
- package/webtonative.min.js +0 -1
package/tsconfig.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es5",
|
|
4
|
+
"module": "commonjs",
|
|
5
|
+
"lib": ["dom", "es2015", "es2016", "es2017"],
|
|
6
|
+
"allowJs": true,
|
|
7
|
+
"checkJs": false,
|
|
8
|
+
"declaration": true,
|
|
9
|
+
"declarationMap": true,
|
|
10
|
+
"sourceMap": true,
|
|
11
|
+
"outDir": "./build",
|
|
12
|
+
"rootDir": "src",
|
|
13
|
+
"strict": false,
|
|
14
|
+
"noImplicitAny": false,
|
|
15
|
+
"strictNullChecks": false,
|
|
16
|
+
"strictFunctionTypes": false,
|
|
17
|
+
"strictBindCallApply": false,
|
|
18
|
+
"strictPropertyInitialization": false,
|
|
19
|
+
"noImplicitThis": false,
|
|
20
|
+
"alwaysStrict": false,
|
|
21
|
+
"esModuleInterop": true,
|
|
22
|
+
"forceConsistentCasingInFileNames": true,
|
|
23
|
+
"skipLibCheck": true
|
|
24
|
+
},
|
|
25
|
+
"include": ["src/**/*.ts"],
|
|
26
|
+
"exclude": ["node_modules", "build", "**/*.d.ts"]
|
|
27
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
const production = process.env.NODE_ENV == "production";
|
|
2
|
+
const path = require("path");
|
|
3
|
+
const fs = require("fs");
|
|
4
|
+
const packageJson = JSON.parse(fs.readFileSync("package.json", "utf8"));
|
|
5
|
+
const version = packageJson.version;
|
|
6
|
+
module.exports = {
|
|
7
|
+
mode: production ? "production" : "development",
|
|
8
|
+
...(!production && { devtool: "source-map" }),
|
|
9
|
+
entry: {
|
|
10
|
+
webtonative: "./client.ts",
|
|
11
|
+
},
|
|
12
|
+
output: {
|
|
13
|
+
path: path.resolve("./build"),
|
|
14
|
+
filename: `[name]${production ? ".min" : ""}.js`,
|
|
15
|
+
environment: {
|
|
16
|
+
arrowFunction: false,
|
|
17
|
+
bigIntLiteral: false,
|
|
18
|
+
const: false,
|
|
19
|
+
destructuring: false,
|
|
20
|
+
dynamicImport: false,
|
|
21
|
+
forOf: false,
|
|
22
|
+
module: false,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
module: {
|
|
26
|
+
rules: [
|
|
27
|
+
{
|
|
28
|
+
test: /\.(ts|js)$/,
|
|
29
|
+
exclude: /node_modules/,
|
|
30
|
+
use: [
|
|
31
|
+
{
|
|
32
|
+
loader: "babel-loader",
|
|
33
|
+
options: {
|
|
34
|
+
presets: [
|
|
35
|
+
[
|
|
36
|
+
"@babel/preset-env",
|
|
37
|
+
{
|
|
38
|
+
modules: false,
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
loader: "ts-loader",
|
|
46
|
+
options: {
|
|
47
|
+
transpileOnly: true,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
resolve: {
|
|
55
|
+
extensions: [".ts", ".js"],
|
|
56
|
+
},
|
|
57
|
+
};
|
package/ATTConsent/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.status=exports.request=void 0;var _utills=require("../utills"),request=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.callback;["IOS_APP"].includes(_utills.platform)&&((0,_utills.registerCb)(function(a){var c=a.type;"requestTrackingConsent"===c&&b&&b(a)}),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"requestTrackingAuthorization"}))};exports.request=request;var status=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.callback;["IOS_APP"].includes(_utills.platform)&&((0,_utills.registerCb)(function(a){var c=a.type;"trackingConsentStatus"===c&&b&&b(a)}),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"trackingConsentStatus"}))};exports.status=status;
|
package/AdMob/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.rewardsAd=exports.fullScreenAd=exports.bannerAd=void 0;var _utills=require("../utills"),_this=void 0,adMobCb=null,bannerAd=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};if(["ANDROID_APP","IOS_APP"].includes(_utills.platform))return"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"showBannerAd",adId:a.adId||""}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.showBannerAd(JSON.stringify(a)),_this};exports.bannerAd=bannerAd;var fullScreenAd=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.fullScreenAdCallback;return(0,_utills.registerForAbMobCb)(function(a){var b=a.status;adMobCb&&adMobCb(a),"adDismissed"===b&&(adMobCb=null),-1<["adDismissed","adLoadError","adError"].indexOf(b)&&(0,_utills.deRegisterForAbMobCb)()}),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"showFullScreenAd",adId:a.adId||""}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.showFullScreenAd(JSON.stringify(a)),"function"==typeof b&&(adMobCb=b),_this}};exports.fullScreenAd=fullScreenAd;var rewardsAd=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.rewardsAdCallback;return(0,_utills.registerForAbMobCb)(function(a){var b=a.status;adMobCb&&adMobCb(a),"adDismissed"===b&&(adMobCb=null),-1<["adDismissed","adLoadError","adError"].indexOf(b)&&(0,_utills.deRegisterForAbMobCb)()}),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"showRewardAd",adId:a.adId||""}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.showRewardsAd(JSON.stringify(a)),"function"==typeof b&&(adMobCb=b),_this}};exports.rewardsAd=rewardsAd;
|
package/AppReview/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.prompt=void 0;var _utills=require("../utills"),prompt=function(){0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&("IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"showAppRating"}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.showInAppReview())};exports.prompt=prompt;
|
package/AppsFlyer/index.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.setCustomerUserId=exports.logEvent=void 0;var _utills=require("../utills"),setCustomerUserId=function(a){["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&("ANDROID_APP"===_utills.platform&&_utills.webToNative.setAppsFlyerUserId(a),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"setAppsFlyerUserId",userId:a}))};exports.setCustomerUserId=setCustomerUserId;/**
|
|
2
|
-
*
|
|
3
|
-
* @example wtn.appsflyer.setCustomerUserId("ADD_TO_CART",{name:"Cadburry",quantity:1});
|
|
4
|
-
*/var logEvent=function(a,b){["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&("ANDROID_APP"===_utills.platform&&_utills.webToNative.addEventToAppsFlyer(a,JSON.stringify(b)),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"addEventToAppsFlyer",eventName:a,eventValues:b}))};exports.logEvent=logEvent;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.stop=exports.start=void 0;var _utills=require("../utills"),start=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.data,c=a.callback,d=a.backgroundIndicator,e=a.pauseAutomatically,f=a.distanceFilter,g=void 0===f?0:f,h=a.desiredAccuracy,i=void 0===h?"best":h,j=a.activityType,k=void 0===j?"other":j,l=a.apiUrl,m=a.timeout;(0,_utills.registerCb)(function(a){var b=a.type;"LOCATION_UPDATE"===b&&c&&c(a)},{key:"LOCATION_UPDATE",ignoreDelete:!0}),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"startLocation",data:b,backgroundIndicator:void 0!==d&&d,pauseAutomatically:!(void 0!==e)||e,distanceFilter:g,desiredAccuracy:i,activityType:k,apiUrl:l,timeout:m}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.startTrackingLocation(JSON.stringify({action:"startLocation",data:b,interval:m,callback:c,apiUrl:l,displacement:g}))}};exports.start=start;/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*/var stop=function(){0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&((0,_utills.deRegisterCbByKey)("LOCATION_UPDATE"),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"stopLocation"}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.stopTrackingLocation())};exports.stop=stop;
|
package/Beacon/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.initBeaconData=void 0;var _utills=require("../utills"),initBeaconData=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.callback,c=a.beaconData;["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&((0,_utills.registerCb)(function(a){var c=a.type;"initBeaconData"===c&&b&&b(a)}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.initBeaconData(JSON.stringify(c)),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"initBeaconData",data:c}))};exports.initBeaconData=initBeaconData;
|
package/Biometric/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.show=exports.saveSecret=exports.deleteSecret=exports.checkStatus=exports.biometricAuthWithDismissOnCancel=void 0;var _utills=require("../utills"),checkStatus=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.callback;["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&((0,_utills.registerCb)(function(a){var c=a.type;"checkBiometricStatus"===c&&b&&b(a)}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.checkBiometricStatus(),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"checkBiometricStatus"}))};exports.checkStatus=checkStatus;var saveSecret=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.callback,c=a.secret;["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&((0,_utills.registerCb)(function(a){var c=a.type;"saveBiometricSecret"===c&&b&&b(a)}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.saveSecret(c),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"saveBiometricSecret",secret:c}))};exports.saveSecret=saveSecret;var deleteSecret=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.callback;["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&((0,_utills.registerCb)(function(a){var c=a.type;"deleteBiometricSecret"===c&&b&&b(a)}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.deleteSecret(),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"deleteBiometricSecret"}))};exports.deleteSecret=deleteSecret;var show=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.callback,c=a.prompt;["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&((0,_utills.registerCb)(function(a){var c=a.type;"showBiometric"===c&&b&&b(a)}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.callBiometric(c||"Authenticate to continue!"),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"showBiometric",prompt:c||""}))};exports.show=show;var biometricAuthWithDismissOnCancel=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.callback,c=a.prompt,d=a.isAuthenticationOptional;["ANDROID_APP"].includes(_utills.platform)&&((0,_utills.registerCb)(function(a){var c=a.type;"biometricAuthWithDismissOnCancel"===c&&b&&b(a)}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.biometricAuthWithDismissOnCancel(JSON.stringify({prompt:c||"Authenticate to continue!",isAuthenticationOptional:void 0!==d&&d})))};exports.biometricAuthWithDismissOnCancel=biometricAuthWithDismissOnCancel;
|
package/Bluetooth/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.unpairDevice=exports.startBluetoothScan=exports.pairDevice=void 0;var _utills=require("../utills"),startBluetoothScan=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.callback;["ANDROID_APP"].includes(_utills.platform)&&((0,_utills.registerCb)(function(a){var c=a.type;"startBluetoothScan"===c&&b&&b(a)}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.startBluetoothScan())};exports.startBluetoothScan=startBluetoothScan;var pairDevice=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.callback,c=a.address,d=a.timeout,e=void 0===d?10:d;["ANDROID_APP"].includes(_utills.platform)&&((0,_utills.registerCb)(function(a){var c=a.type;"pairWithDevice"===c&&b&&b(a)}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.pairWithDevice(JSON.stringify({address:c,timeout:e})))};exports.pairDevice=pairDevice;var unpairDevice=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.callback,c=a.address;["ANDROID_APP"].includes(_utills.platform)&&((0,_utills.registerCb)(function(a){var c=a.type;"unpairDevice"===c&&b&&b(a)}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.unpairDevice(JSON.stringify({address:c})))};exports.unpairDevice=unpairDevice;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.show=exports.hide=void 0;var _utills=require("../utills"),hide=function(){["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&("ANDROID_APP"===_utills.platform&&_utills.webToNative.showHideStickyFooter(!1),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"showHideStickyFooter",show:!1}))};exports.hide=hide;/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*/var show=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.key;["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&("ANDROID_APP"===_utills.platform&&_utills.webToNative.showHideStickyFooter(!0),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"showHideStickyFooter",show:!0,key:b}))};exports.show=show;
|
package/Clipboard/index.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.set=exports.get=void 0;var _utills=require("../utills"),get=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.callback;["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&((0,_utills.registerCb)(function(a){var c=a.type;"CLIPBOARD_CONTENT"===c&&b&&b(a)}),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"getClipBoardData"}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.getText())};exports.get=get;/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*/var set=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&("IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"setClipBoardData",text:a.data||""}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.setText(a.data||""))};exports.set=set;
|
package/Facebook/events.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.sendPurchase=exports.send=void 0;var _utills=require("../utills"),send=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.event,c=a.valueToSum,d=a.parameters;"ANDROID_APP"===_utills.platform&&_utills.webToNative.addFbEvents(b,d),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"sendFBEvent",eventName:b,valueToSum:c,parameters:d})}};exports.send=send;/**
|
|
2
|
-
*
|
|
3
|
-
* @example wtn.appsflyer.setCustomerUserId("ADD_TO_CART",{name:"Cadburry",quantity:1});
|
|
4
|
-
*/var sendPurchase=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.amount,c=a.currency,d=a.parameters;"ANDROID_APP"===_utills.platform&&_utills.webToNative.addFbPurchaseEvent(b,c,d),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"sendFBPurchaseEvent",currency:c,amount:b,parameters:d})}};exports.sendPurchase=sendPurchase;
|
package/Facebook/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var events=_interopRequireWildcard(require("./events"));function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.events=void 0;exports.events=events;function _getRequireWildcardCache(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(_getRequireWildcardCache=function(a){return a?c:b})(a)}function _interopRequireWildcard(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!==_typeof(a)&&"function"!=typeof a)return{default:a};var c=_getRequireWildcardCache(b);if(c&&c.has(a))return c.get(a);var d={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in a)if("default"!=f&&Object.prototype.hasOwnProperty.call(a,f)){var g=e?Object.getOwnPropertyDescriptor(a,f):null;g&&(g.get||g.set)?Object.defineProperty(d,f,g):d[f]=a[f]}return d["default"]=a,c&&c.set(a,d),d}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.setUserProperty=exports.setUserId=exports.setDefaultEventParameters=exports.setCollection=exports.logScreen=exports.logEvent=void 0;var _utills=require("../../utills"),setCollection=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.enabled;"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"setFirebaseAnalyticsCollection",enabled:b}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.setFirebaseAnalyticsCollection(b)}};exports.setCollection=setCollection;/**
|
|
2
|
-
*
|
|
3
|
-
* @example wtn.appsflyer.setCustomerUserId("ADD_TO_CART",{name:"Cadburry",quantity:1});
|
|
4
|
-
*/var setUserId=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.userId;"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"setFirebaseUserId",userId:b}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.setFirebaseUserId(b)}};exports.setUserId=setUserId;var setUserProperty=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.key,c=a.value;"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"setFirebaseUserProp",key:b,value:c}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.setFirebaseUserProp(b,c)}};exports.setUserProperty=setUserProperty;var setDefaultEventParameters=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.parameters;"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"setFirebaseDefaultParam",parameters:b}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.setFirebaseDefaultParam(b)}};exports.setDefaultEventParameters=setDefaultEventParameters;var logEvent=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.eventName,c=a.parameters;"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"logFirebaseEvent",eventName:b,parameters:c}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.logFirebaseEvent(b,c)}};exports.logEvent=logEvent;var logScreen=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.screenName,c=a.screenClass;"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"logFirebaseScreenView",screenName:b,screenClass:c}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.logFirebaseScreenView(b,c)}};exports.logScreen=logScreen;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.unsubscribe=exports.subscribe=exports.getFCMToken=void 0;var _utills=require("../../utills"),subscribe=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.toTopic;"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"firebaseSubscribeToTopic",topic:b}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.subscribeToTopic(b)}};exports.subscribe=subscribe;/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*/var unsubscribe=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.fromTopic;"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"firebaseUnsubscribeFromTopic",topic:b}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.unsubscribeFromTopic(b)}};exports.unsubscribe=unsubscribe;var getFCMToken=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.callback;(0,_utills.registerCb)(function(a){var c=a.type;"getFCMToken"===c&&("ANDROID_APP"===_utills.platform&&(a.token=a.fcm_registration_token),b&&b(a))}),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"getFCMToken"}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.getRegistrationToken()}};exports.getFCMToken=getFCMToken;
|
package/Firebase/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var Analytics=_interopRequireWildcard(require("./Analytics"));var Messaging=_interopRequireWildcard(require("./Messaging"));function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.Messaging=exports.Analytics=void 0;exports.Analytics=Analytics;exports.Messaging=Messaging;function _getRequireWildcardCache(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(_getRequireWildcardCache=function(a){return a?c:b})(a)}function _interopRequireWildcard(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!==_typeof(a)&&"function"!=typeof a)return{default:a};var c=_getRequireWildcardCache(b);if(c&&c.has(a))return c.get(a);var d={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in a)if("default"!=f&&Object.prototype.hasOwnProperty.call(a,f)){var g=e?Object.getOwnPropertyDescriptor(a,f):null;g&&(g.get||g.set)?Object.defineProperty(d,f,g):d[f]=a[f]}return d["default"]=a,c&&c.set(a,d),d}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var FirebaseAnalyticsEvents=_interopRequireWildcard(require("../Firebase/Analytics"));function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.events=void 0;exports.events=FirebaseAnalyticsEvents;function _getRequireWildcardCache(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(_getRequireWildcardCache=function(a){return a?c:b})(a)}function _interopRequireWildcard(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!==_typeof(a)&&"function"!=typeof a)return{default:a};var c=_getRequireWildcardCache(b);if(c&&c.has(a))return c.get(a);var d={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in a)if("default"!=f&&Object.prototype.hasOwnProperty.call(a,f)){var g=e?Object.getOwnPropertyDescriptor(a,f):null;g&&(g.get||g.set)?Object.defineProperty(d,f,g):d[f]=a[f]}return d["default"]=a,c&&c.set(a,d),d}
|
package/Haptics/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.trigger=void 0;var _utills=require("../utills"),trigger=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"haptikEffect",effect:a.effect})};exports.trigger=trigger;
|
package/InAppPurchase/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.inAppPurchase=exports.getReceiptData=exports.getAllPurchases=void 0;var _utills=require("../utills"),inAppPurchase=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.callback,c=a.productId,d=a.productType,e=a.isConsumable;(0,_utills.registerCb)(function(a){var c=a.type;"inAppPurchase"===c&&b&&b(a)}),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"inAppPurchase",productId:c}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.inAppPurchase(JSON.stringify({action:"inAppPurchase",productId:c,productType:d,isConsumable:void 0!==e&&e}))}};exports.inAppPurchase=inAppPurchase;var getAllPurchases=function(a){if(["ANDROID_APP"].includes(_utills.platform)){var b=a.callback;(0,_utills.registerCb)(function(a){var c=a.type;"purchaseList"===c&&b&&b(a)}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.getAllPurchases({action:"purchaseList"})}};exports.getAllPurchases=getAllPurchases;var getReceiptData=function(a){if(["IOS_APP"].includes(_utills.platform)){var b=a.callback;(0,_utills.registerCb)(function(a){var c=a.type;"getReceiptData"===c&&b&&b(a)}),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"getReceiptData"})}};exports.getReceiptData=getReceiptData;
|
package/InAppUpdate/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.updateApplication=exports.checkIfAppUpdateAvailable=void 0;var _utills=require("../utills"),checkIfAppUpdateAvailable=function(a){if(["ANDROID_APP"].includes(_utills.platform)){var b=a.callback;(0,_utills.registerCb)(function(a){var c=a.type;"checkIfAppUpdateAvailable"===c&&b&&b(a)}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.checkIfAppUpdateAvailable()}};exports.checkIfAppUpdateAvailable=checkIfAppUpdateAvailable;var updateApplication=function(a){if(["ANDROID_APP"].includes(_utills.platform)){var b=a.updateType,c=void 0===b?"immediate":b,d=a.callback;(0,_utills.registerCb)(function(a){var b=a.type;"updateApplication"===b&&d&&d(a)}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.updateApplication(c)}};exports.updateApplication=updateApplication;
|
package/MediaPlayer/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.stopMedia=exports.playMedia=exports.pauseMedia=void 0;var _utills=require("../utills"),playMedia=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.url,c=a.imageUrl,d=void 0===c?"https://images.freeimages.com/images/large-previews/3b2/prague-conference-center-1056491.jpg":c;["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&("ANDROID_APP"===_utills.platform&&_utills.webToNative.playMedia(JSON.stringify({url:b,imageUrl:d})),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"playMedia",url:b,image:d}))};exports.playMedia=playMedia;/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*/var pauseMedia=function(){0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&("ANDROID_APP"===_utills.platform&&_utills.webToNative.pausePlaying(),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"pauseMedia"}))};/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*/exports.pauseMedia=pauseMedia;var stopMedia=function(){0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&("ANDROID_APP"===_utills.platform&&_utills.webToNative.stopPlaying(),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"stopMedia"}))};exports.stopMedia=stopMedia;
|
package/NativeContacts/index.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getPermissionStatus=exports.getAll=void 0;var _utills=require("../utills"),getPermissionStatus=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.callback;["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&((0,_utills.registerCb)(function(a){//console.log(response);
|
|
2
|
-
var c=a.type;"contactPermissionStatus"===c&&b&&b(a)}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.getPermissionStatus(),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"askUserForContactPermission"}))};exports.getPermissionStatus=getPermissionStatus;/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*/var getAll=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.callback;["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&((0,_utills.registerCb)(function(a){var c=a.type;//console.log(response);
|
|
6
|
-
"contactDetails"===c&&b&&b(a)}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.getAll(),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"getUserContactDetails"}))};exports.getAll=getAll;
|
package/Notification/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.openAppNotificationPage=exports.checkNotificationPermission=void 0;var _utills=require("../utills"),checkNotificationPermission=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.callback;["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&((0,_utills.registerCb)(function(a){//console.log(response);
|
|
2
|
-
var c=a.type;"checkNotificationPermission"===c&&b&&b(a)}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.checkNotificationPermission(),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"checkNotificationPermission"}))};exports.checkNotificationPermission=checkNotificationPermission;/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*/var openAppNotificationPage=function(){["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&("ANDROID_APP"===_utills.platform&&_utills.webToNative.openAppNotificationPage(),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"openAppNotificationPage"}))};exports.openAppNotificationPage=openAppNotificationPage;
|
package/OneSignal/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.setTags=exports.setSMSNumber=exports.setExternalUserId=exports.setEmail=exports.removeTriggers=exports.removeTrigger=exports.removeExternalUserId=exports.optOutUser=exports.optInUser=exports.logoutSMSNumber=exports.logoutEmail=exports.getTriggers=exports.getTriggerValue=exports.getPlayerId=exports.addTriggers=exports.addTrigger=void 0;var _utills=require("../utills"),getPlayerId=function(){return new Promise(function(a,b){(0,_utills.registerCb)(function(c){c.isSuccess?a(c.playerId):b(c)},{key:"getPlayerId"}),"ANDROID_APP"===_utills.platform?_utills.webToNative.getOneSignalId():"IOS_APP"===_utills.platform?_utills.webToNativeIos.postMessage({action:"getPlayerId"}):b("This function will work in Native App Powered By WebToNative")})};exports.getPlayerId=getPlayerId;var setExternalUserId=function(a){if(a){if("ANDROID_APP"===_utills.platform)return _utills.isNativeApp&&_utills.webToNative.setExternalUserId(a);"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"setExternalUserId",userId:a})}else throw"userId is required"};exports.setExternalUserId=setExternalUserId;var removeExternalUserId=function(){return"ANDROID_APP"===_utills.platform?_utills.isNativeApp&&_utills.webToNative.removeExternalUserId():void("IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"removeExternalUserId"}))};exports.removeExternalUserId=removeExternalUserId;var setTags=function(a){var b=a.tags;if(b){if("ANDROID_APP"===_utills.platform)return _utills.isNativeApp&&_utills.webToNative.setUserTags(JSON.stringify(b));"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"setUserTags",tags:b})}};exports.setTags=setTags;var addTrigger=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.key,c=a.value;"ANDROID_APP"===_utills.platform?_utills.webToNative.addTrigger(JSON.stringify({key:b,value:c})):"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"addTrigger",key:b,value:c})};exports.addTrigger=addTrigger;var addTriggers=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.triggers;"ANDROID_APP"===_utills.platform?_utills.webToNative.addTriggers(JSON.stringify({triggers:b})):"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"addTriggers",triggers:b})};exports.addTriggers=addTriggers;var removeTrigger=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.key;"ANDROID_APP"===_utills.platform?_utills.webToNative.removeTriggerForKey(b):"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"removeTrigger",key:b})};exports.removeTrigger=removeTrigger;var removeTriggers=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.keys;"ANDROID_APP"===_utills.platform?_utills.webToNative.removeTriggersForKeys(JSON.stringify({keys:b})):"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"removeTriggers",keys:b})};exports.removeTriggers=removeTriggers;var getTriggerValue=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.key,c=a.callback;["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&((0,_utills.registerCb)(function(a){var b=a.type;"getTriggerValue"===b&&c&&c(a)}),"ANDROID_APP"===_utills.platform?_utills.webToNative.getTriggerValueForKey(b):"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"getTriggerValue",key:b}))};exports.getTriggerValue=getTriggerValue;var getTriggers=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.callback;["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&((0,_utills.registerCb)(function(a){var c=a.type;"getTriggers"===c&&b&&b(a)}),"ANDROID_APP"===_utills.platform?_utills.webToNative.getTriggers():"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"getTriggers"}))};exports.getTriggers=getTriggers;var setEmail=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.emailId;["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&"ANDROID_APP"===_utills.platform&&_utills.webToNative.setEmail(b)};exports.setEmail=setEmail;var setSMSNumber=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.smsNumber;["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&"ANDROID_APP"===_utills.platform&&_utills.webToNative.setSMSNumber(b)};exports.setSMSNumber=setSMSNumber;var logoutEmail=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.emailId;["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&"ANDROID_APP"===_utills.platform&&_utills.webToNative.logoutEmail(b)};exports.logoutEmail=logoutEmail;var logoutSMSNumber=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.smsNumber;["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&"ANDROID_APP"===_utills.platform&&_utills.webToNative.logoutSMSNumber(b)};exports.logoutSMSNumber=logoutSMSNumber;var optInUser=function(){"ANDROID_APP"===_utills.platform?_utills.webToNative.optInOneSignalPermissionDialog():"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"optInOneSignalPermissionDialog"})};exports.optInUser=optInUser;var optOutUser=function(){0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};"ANDROID_APP"===_utills.platform?_utills.webToNative.optOutOneSignalPermissionDialog():"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"optOutOneSignalPermissionDialog"})};exports.optOutUser=optOutUser;
|
package/Printing/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.setPrintSize=void 0;var _utills=require("../utills"),setPrintSize=function(a){if(["ANDROID_APP"].includes(_utills.platform)){var b=a.printSize,c=void 0===b?"ISO_A4":b,d=a.label,e=void 0===d?"":d;"ANDROID_APP"===_utills.platform&&_utills.webToNative.setPrintSize(JSON.stringify({printSize:c,label:e}))}};exports.setPrintSize=setPrintSize;
|
package/Screen/index.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.keepScreenOn=exports.keepScreenNormal=void 0;var _utills=require("../utills"),keepScreenOn=function(){["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&("IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"keepScreenOn",flag:!0}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.keepScreenOn())};exports.keepScreenOn=keepScreenOn;/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*/var keepScreenNormal=function(){["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&("IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"keepScreenOn",flag:!1}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.keepScreenNormal())};exports.keepScreenNormal=keepScreenNormal;
|
package/Siri/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.addToSiri=void 0;var _utills=require("../utills"),addToSiri=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.actionUrl,c=a.suggestedPhrase,d=a.title;["IOS_APP"].includes(_utills.platform)&&"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"addToSiri",data:{actionUrl:b,suggestedPhrase:c,title:d}})};exports.addToSiri=addToSiri;
|
package/SocialLogin/apple.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.login=void 0;var _utills=require("../utills"),login=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.callback,c=a.scope;(0,_utills.registerCb)(function(a){var c=a.type;"appleLoginToken"===c&&b&&b(a)}),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"appleSignIn",scope:c})}};exports.login=login;
|
package/SocialLogin/facebook.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.logout=exports.login=void 0;var _utills=require("../utills"),login=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.callback,c=a.scope;(0,_utills.registerCb)(function(a){var c=a.type;"fbLoginToken"===c&&b&&b(a)}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.loginWithFacebook(),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"fbSignIn",scope:c})}};exports.login=login;/**
|
|
2
|
-
* This function handles native facebook logout
|
|
3
|
-
* @param {object} options
|
|
4
|
-
* @example wtn.socialLogin.facebook.logout({
|
|
5
|
-
* callback:(data)=>{
|
|
6
|
-
* console.log(data);
|
|
7
|
-
* }
|
|
8
|
-
* });
|
|
9
|
-
*/var logout=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.callback,c=a.scope;(0,_utills.registerCb)(function(a){var c=a.type;"fbLogOut"===c&&b&&b(a)}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.logoutWithFacebook(),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"fbSignOut",scope:c})}};exports.logout=logout;
|
package/SocialLogin/google.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.logout=exports.login=void 0;var _utills=require("../utills"),login=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.callback,c=a.scope;(0,_utills.registerCb)(function(a){var c=a.type;"googleLoginToken"===c&&b&&b(a)}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.signInWithGoogle(),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"googleSignIn",scope:c})}};exports.login=login;/**
|
|
2
|
-
* This function handles native google logout
|
|
3
|
-
* @param {object} options
|
|
4
|
-
* @example wtn.socialLogin.google.logout({
|
|
5
|
-
* callback:(data)=>{
|
|
6
|
-
* console.log(data);
|
|
7
|
-
* }
|
|
8
|
-
* });
|
|
9
|
-
*/var logout=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.callback,c=a.scope;(0,_utills.registerCb)(function(a){var c=a.type;"googleLogOut"===c&&b&&b(a)}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.signOutWithGoogle(),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"googleSignOut",scope:c})}};exports.logout=logout;
|
package/SocialLogin/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.socialLogin=void 0;var _facebook=require("./facebook"),_apple=require("./apple"),_google=require("./google"),socialLogin={facebook:{login:_facebook.login,logout:_facebook.logout},google:{login:_google.login,logout:_google.logout},apple:{login:_apple.login}};exports.socialLogin=socialLogin;
|
package/Stripe/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var _utills=require("../utills");Object.defineProperty(exports,"__esModule",{value:!0}),exports.makeTapToPay=void 0;function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var makeTapToPay=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.callback,c=a.apiUrl,d=void 0===c?null:c,e=a.amount,f=a.currency,g=a.isSimulated,h=a.captureMethod,i=void 0===h?"automatic":h,j=a.connectionToken,k=a.stripeLocationId,l=a.clientSecret,m=void 0===l?null:l;(0,_utills.registerCb)(function(a){var c=a.type;"makeTapToPayStripePayment"===c&&b&&b(a)});var n={secretToken:j,amount:e,currency:f,isSimulated:void 0!==g&&g,captureMethod:i,locationId:k};d&&(n.apiUrl=d),m&&(n.client_secret=m),"ANDROID_APP"===_utills.platform&&_utills.webToNative.makeTapToPayStripePayment(JSON.stringify(n)),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage(_objectSpread({action:"makeTapToPayStripePayment"},n))}};exports.makeTapToPay=makeTapToPay;
|
package/VoiceSearch/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var _utills=require("../utills"),_this=void 0,voiceSearchCb=null,_default=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=a.onVoiceSearch;return(0,_utills.registerCb)(function(a){var b=a.type,c=a.results;"VOICE_SEARCH_RESULT"===b&&(voiceSearchCb&&voiceSearchCb(c),voiceSearchCb=null)}),_utills.isNativeApp&&_utills.webToNative.openVoiceSearch(),"function"==typeof b&&(voiceSearchCb=b),_this};exports["default"]=_default;
|
package/barcode/barcode-scan.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var _utills=require("../utills"),_formats=_interopRequireDefault(require("./formats"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}var successCb=null,_default=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.onBarcodeSearch,c=a.format;(0,_utills.registerCb)(function(a){var c=a.type,d=a.value;"BARCODE_SCAN"===c&&b&&b(d)}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.startScanner(JSON.stringify({formats:c?[c]:[]})),"IOS_APP"===_utills.platform&&_utills.webToNativeIos.postMessage({action:"barcodeScan",barcodeFormat:c?c+"":_formats["default"].ALL_FORMATS+""})}};exports["default"]=_default;
|
package/barcode/formats.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var _default={UNKNOWN:-1,ALL_FORMATS:0,CODE_128:1,CODE_39:2,CODE_93:4,CODABAR:8,DATA_MATRIX:16,EAN_13:32,EAN_8:64,ITF:128,QR_CODE:256,UPC_A:512,UPC_E:1024,PDF417:2048,AZTEC:4096};exports["default"]=_default;
|
package/barcode/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"BarcodeScan",{enumerable:!0,get:function get(){return _barcodeScan["default"]}}),Object.defineProperty(exports,"Format",{enumerable:!0,get:function get(){return _formats["default"]}}),Object.defineProperty(exports,"Types",{enumerable:!0,get:function get(){return _types["default"]}});var _formats=_interopRequireDefault(require("./formats")),_types=_interopRequireDefault(require("./types")),_barcodeScan=_interopRequireDefault(require("./barcode-scan"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}
|
package/barcode/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var _default={UNKNOWN:0,CONTACT_INFO:1,EMAIL:2,ISBN:3,PHONE:4,PRODUCT:5,SMS:6,TEXT:7,URL:8,WIFI:9,GEO:10,CALENDAR_EVENT:11,DRIVER_LICENSE:12};exports["default"]=_default;
|
package/index.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isIosApp=exports.isDeviceGPSEnabled=exports.isAndroidApp=exports.hideSplashScreen=exports.getSafeArea=exports.getAddOnStatus=exports.forceUpdateCookies=exports.enablePullToRefresh=exports.downloadFile=exports.downloadBlobFile=exports.disableScreenshot=exports.deviceInfo=exports["default"]=exports.customFileDownload=exports.customBackHandling=exports.closeApp=exports.clearAppCache=exports.checkPermission=exports.appFirstLoad=exports.addToSiri=void 0,Object.defineProperty(exports,"isNativeApp",{enumerable:!0,get:function get(){return _utills.isNativeApp}}),exports.openUrlInBrowser=exports.openAppSettingForPermission=exports.nfcSupported=exports.loadOfferCard=void 0,Object.defineProperty(exports,"platform",{enumerable:!0,get:function get(){return _utills.platform}}),exports.updateAppIcon=exports.statusBar=exports.showPermission=exports.showInAppReview=exports.showDateTimePicker=exports.shareLink=exports.shareFile=exports.setOrientation=exports.printFunction=void 0;var _utills=require("./utills"),isAndroidApp="ANDROID_APP"===_utills.platform;exports.isAndroidApp=isAndroidApp;var isIosApp="IOS_APP"===_utills.platform;/**
|
|
2
|
-
* This function hides splash screen
|
|
3
|
-
* @example wtn.hideSplashScreen()
|
|
4
|
-
*/exports.isIosApp=isIosApp;var hideSplashScreen=function(){_utills.isNativeApp&&_utills.webToNative.hideSplashScreen()};exports.hideSplashScreen=hideSplashScreen;var statusBar=function(a){_utills.isNativeApp&&(isAndroidApp?_utills.webToNative.statusBar(JSON.stringify(a)):isIosApp&&_utills.webToNativeIos.postMessage({action:"statusBar",color:a.color,style:a.style}))};exports.statusBar=statusBar;var downloadFile=function(a){_utills.isNativeApp&&(isAndroidApp||isIosApp&&_utills.webToNativeIos.postMessage({action:"downloadFile",downloadUrl:a}))};exports.downloadFile=downloadFile;var downloadBlobFile=function(a){var b=a.fileName,c=a.downloadUrl;["IOS_APP"].includes(_utills.platform)&&isIosApp&&_utills.webToNativeIos.postMessage({action:"downloadBlobFile",fileName:b,url:c})};exports.downloadBlobFile=downloadBlobFile;var customFileDownload=function(a){var b=a.downloadUrl,c=a.fileName,d=a.isBlob,e=a.mimeType,f=a.cookies,g=a.userAgent,h=a.openFileAfterDownload;["ANDROID_APP"].includes(_utills.platform)&&"ANDROID_APP"===_utills.platform&&_utills.webToNative.downloadFile(JSON.stringify({url:b,fileName:c,isBlob:d,mimeType:e,cookies:f,userAgent:g,openFileAfterDownload:h}))};exports.customFileDownload=customFileDownload;var deviceInfo=function(){return new Promise(function(a,b){(0,_utills.registerCb)(function(c){c?a(c):b({err:"Error getting device info"})},{key:"deviceInfo"}),"ANDROID_APP"===_utills.platform?_utills.webToNative.getDeviceInfo():"IOS_APP"===_utills.platform?_utills.webToNativeIos.postMessage({action:"deviceInfo"}):b("This function will work in Native App Powered By WebToNative")})};exports.deviceInfo=deviceInfo;var showInAppReview=function(){_utills.isNativeApp&&_utills.webToNative.showInAppReview()};exports.showInAppReview=showInAppReview;var isDeviceGPSEnabled=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.callback;["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&((0,_utills.registerCb)(function(a){var c=a.type;"isDeviceGPSEnabled"===c&&b&&b(a)}),"ANDROID_APP"===_utills.platform&&_utills.webToNative.isLocationServiceEnabled())};exports.isDeviceGPSEnabled=isDeviceGPSEnabled;var shareLink=function(a){var b=a.url,c=void 0===b?"":b;if(c)isAndroidApp&&_utills.webToNative.openShareIntent(c),isIosApp&&_utills.webToNativeIos.postMessage({action:"share",url:c});else throw"url is mandatory"};exports.shareLink=shareLink;var openUrlInBrowser=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"";if(a)isAndroidApp&&_utills.webToNative.openUrlInBrowser(a);else throw"url is mandatory"};exports.openUrlInBrowser=openUrlInBrowser;var enablePullToRefresh=function(a){isAndroidApp&&_utills.webToNative.enableSwipeRefresh(a)};exports.enablePullToRefresh=enablePullToRefresh;var clearAppCache=function(a){isAndroidApp&&_utills.webToNative.clearWebViewCache(JSON.stringify({reload:a}))};exports.clearAppCache=clearAppCache;var shareFile=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:null,b=1<arguments.length&&arguments[1]!==void 0?arguments[1]:null,c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;isAndroidApp&&_utills.webToNative.shareFile(a,b,c)};exports.shareFile=shareFile;var closeApp=function(){isAndroidApp&&_utills.webToNative.closeApp(),isIosApp&&_utills.webToNativeIos.postMessage({action:"closeApp"})};exports.closeApp=closeApp;var showDateTimePicker=function(a){if(["ANDROID_APP"].includes(_utills.platform)){var b=a.callback,c=a.showDate,d=a.showTime;(0,_utills.registerCb)(function(a){var c=a.type;"DATE_TIME_PICKER"===c&&b&&b(a)}),isAndroidApp&&_utills.webToNative.pickDateTime(JSON.stringify({showDate:c,showTime:d}))}};exports.showDateTimePicker=showDateTimePicker;var printFunction=function(a){if(["ANDROID_APP"].includes(_utills.platform)){var b=a.type,c=void 0===b?"url":b,d=a.url,e=void 0===d?"":d;isAndroidApp&&_utills.webToNative.print(JSON.stringify({type:c,url:e}))}};exports.printFunction=printFunction;var nfcSupported=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.callback;(0,_utills.registerCb)(function(a){var c=a.type;"nfcSupported"===c&&b&&b(a)}),isAndroidApp&&_utills.webToNative.nfcSupported(),isIosApp&&_utills.webToNativeIos.postMessage({action:"nfcSupported"})}};exports.nfcSupported=nfcSupported;var loadOfferCard=function(a){["ANDROID_APP","IOS_APP"].includes(_utills.platform)&&(isAndroidApp&&_utills.webToNative.showOfferCard(JSON.stringify(a)),a.data&&(a.data=JSON.stringify(a.data)),isIosApp&&_utills.webToNativeIos.postMessage(a))};exports.loadOfferCard=loadOfferCard;var addToSiri=function(a){["IOS_APP"].includes(_utills.platform)&&(a.data&&(a.data=JSON.stringify(a.data)),isIosApp&&_utills.webToNativeIos.postMessage(a))};exports.addToSiri=addToSiri;var appFirstLoad=function(){return new Promise(function(a,b){(0,_utills.registerCb)(function(c){var d=c.type;"firstCallWhenAppStarted"===d&&(c?a(c):b({err:"Error getting request"}))},{key:"firstCallWhenAppStarted"}),"ANDROID_APP"===_utills.platform?_utills.webToNative.firstCallWhenAppStarted():"IOS_APP"===_utills.platform?_utills.webToNativeIos.postMessage({action:"firstCallWhenAppStarted"}):b("This function will work in Native App Powered By WebToNative")})};exports.appFirstLoad=appFirstLoad;var forceUpdateCookies=function(){["ANDROID_APP"].includes(_utills.platform)&&isAndroidApp&&_utills.webToNative.forceUpdateCookies()};exports.forceUpdateCookies=forceUpdateCookies;var openAppSettingForPermission=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.callback,c=a.values;(0,_utills.registerCb)(function(a){var c=a.type,d=a.typeValue;"openAppSettingForPermission"===c&&b&&b(a)}),isAndroidApp&&_utills.webToNative.openAppSettingForPermission(c),isIosApp&&_utills.webToNativeIos.postMessage({action:"openAppSettingForPermission",values:c})}};exports.openAppSettingForPermission=openAppSettingForPermission;var showPermission=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.callback,c=a.permission,d=a.openAppSetting,e=void 0!==d&&d,f=a.alertDialogStyle;(0,_utills.registerCb)(function(a){var c=a.type,d=a.typeValue;("showPermission"===c||"showPermission"===d)&&b&&b(a)}),isAndroidApp&&_utills.webToNative.showPermission(JSON.stringify({permission:c,openAppSetting:e,alertDialogStyle:f})),isIosApp&&_utills.webToNativeIos.postMessage({action:"showPermission",permission:c,openAppSetting:e,alertDialogStyle:f})}};exports.showPermission=showPermission;var updateAppIcon=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.active,c=void 0!==b&&b,d=a.iconName,e=void 0===d?null:d;isAndroidApp&&_utills.webToNative.updateAppIcon(JSON.stringify({active:c,iconName:e})),isIosApp&&_utills.webToNativeIos.postMessage({action:"updateAppIcon",iconName:e,active:c})}};exports.updateAppIcon=updateAppIcon;var disableScreenshot=function(a){if(["IOS_APP"].includes(_utills.platform)){var b=a.ssKey;isIosApp&&_utills.webToNativeIos.postMessage({action:"disableScreenshotForPage",ssKey:void 0!==b&&b})}};exports.disableScreenshot=disableScreenshot;var customBackHandling=function(a){if(["ANDROID_APP"].includes(_utills.platform)){var b=a.enable;isAndroidApp&&_utills.webToNative.customBackHandling(JSON.stringify({enable:void 0!==b&&b}))}};exports.customBackHandling=customBackHandling;var getSafeArea=function(a){if(["IOS_APP"].includes(_utills.platform)){var b=a.callback;(0,_utills.registerCb)(function(a){var c=a.type;"getSafeArea"===c&&b&&b(a)}),isIosApp&&_utills.webToNativeIos.postMessage({action:"getSafeArea"})}};exports.getSafeArea=getSafeArea;var getAddOnStatus=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.callback,c=a.addOnName;(0,_utills.registerCb)(function(a){var c=a.type;"getAddOnStatus"===c&&b&&b(a)}),isAndroidApp&&_utills.webToNative.getAddOnStatus(JSON.stringify({addOnName:c})),isIosApp&&_utills.webToNativeIos.postMessage({action:"getAddOnStatus",addOnName:c})}};exports.getAddOnStatus=getAddOnStatus;var checkPermission=function(a){if(["ANDROID_APP","IOS_APP"].includes(_utills.platform)){var b=a.callback,c=a.permissionName;(0,_utills.registerCb)(function(a){var c=a.type;"checkPermission"===c&&b&&b(a)}),isAndroidApp&&_utills.webToNative.checkPermission(JSON.stringify(c)),isIosApp&&_utills.webToNativeIos.postMessage({action:"checkPermission",permissionName:c})}};exports.checkPermission=checkPermission;var setOrientation=function(a){if(["ANDROID_APP"].includes(_utills.platform)){var b=a.orientation,c=a.forceOrientation;isAndroidApp&&_utills.webToNative.setOrientation(JSON.stringify({orientation:b,forceOrientation:void 0!==c&&c}))}};exports.setOrientation=setOrientation;var _default={isAndroidApp:isAndroidApp,isIosApp:isIosApp,hideSplashScreen:hideSplashScreen,statusBar:statusBar,deviceInfo:deviceInfo,showInAppReview:showInAppReview,shareLink:shareLink,platform:_utills.platform,isNativeApp:_utills.isNativeApp,isDeviceGPSEnabled:isDeviceGPSEnabled,openUrlInBrowser:openUrlInBrowser,enablePullToRefresh:enablePullToRefresh,shareFile:shareFile,clearAppCache:clearAppCache,closeApp:closeApp,showDateTimePicker:showDateTimePicker,downloadBlobFile:downloadBlobFile,customFileDownload:customFileDownload,printFunction:printFunction,loadOfferCard:loadOfferCard,appFirstLoad:appFirstLoad,addToSiri:addToSiri,showPermission:showPermission,forceUpdateCookies:forceUpdateCookies,updateAppIcon:updateAppIcon,disableScreenshot:disableScreenshot,getSafeArea:getSafeArea,getAddOnStatus:getAddOnStatus,setOrientation:setOrientation,checkPermission:checkPermission,openAppSettingForPermission:openAppSettingForPermission,customBackHandling:customBackHandling};exports["default"]=_default;
|
package/utills.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.webToNativeIos=exports.webToNative=exports.registerForAbMobCb=exports.registerCb=exports.platform=exports.isNativeApp=exports.isClient=exports.deRegisterForAbMobCb=exports.deRegisterCbByKey=void 0;var isClient="undefined"!=typeof window;exports.isClient=isClient;var webToNative=isClient&&window.WebToNativeInterface||{};exports.webToNative=webToNative;var webToNativeIos=isClient&&window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.webToNativeInterface;exports.webToNativeIos=webToNativeIos;var platform=webToNative.getAndroidVersion?"ANDROID_APP":webToNativeIos?"IOS_APP":"WEBSITE";exports.platform=platform;var isNativeApp=isClient&&"WEBSITE"!==platform;exports.isNativeApp=isNativeApp;var cbObj={},counter=1,abMobCb=null;isNativeApp&&(webToNative.androidCBHook=function(a){var b=a;try{b=JSON.parse(a)}catch(a){console.log(a)}var c=b,d=c.type;for(var e in cbObj){var f=cbObj[e],g=f.cb,h=f.ignoreDelete,i=void 0!==h&&h;b&&b.reqType?e==b.reqType&&(g(b),!i&&delete cbObj[e]):(g(b),!i&&delete cbObj[e])}},window.iOSAdMobCBHook=webToNative.androidAdMobCBHook=function(a){var b=JSON.parse(a);abMobCb&&abMobCb(b)},window.iosCBHook=function(a){var b=a;try{b=JSON.parse(a)}catch(a){console.log(a)}for(var c in cbObj){var d=cbObj[c],e=d.cb,f=d.ignoreDelete,g=void 0!==f&&f;b&&b.reqType?c==b.reqType&&(e(b),!g&&delete cbObj[c]):(e(b),!g&&delete cbObj[c])}});var registerCb=function(a,b){"function"==typeof a&&(b&&b.key?cbObj[b.key]={cb:a,ignoreDelete:!!b.ignoreDelete}:(cbObj[counter]={cb:a,ignoreDelete:!!(b&&b.ignoreDelete)},counter+=1))};exports.registerCb=registerCb;var registerForAbMobCb=function(a){"function"==typeof a&&(abMobCb=a)};exports.registerForAbMobCb=registerForAbMobCb;var deRegisterForAbMobCb=function(){abMobCb&&(abMobCb=null)};exports.deRegisterForAbMobCb=deRegisterForAbMobCb;var deRegisterCbByKey=function(a){delete cbObj[a]};exports.deRegisterCbByKey=deRegisterCbByKey;
|
package/webtonative.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(){"use strict";var e={d:function(n,t){for(var i in t)e.o(t,i)&&!e.o(n,i)&&Object.defineProperty(n,i,{enumerable:!0,get:t[i]})},o:function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{addToSiri:function(){return re},appFirstLoad:function(){return ae},checkPermission:function(){return pe},clearAppCache:function(){return Y},closeApp:function(){return ee},customBackHandling:function(){return le},customFileDownload:function(){return q},default:function(){return ge},deviceInfo:function(){return K},disableScreenshot:function(){return Ae},downloadBlobFile:function(){return x},downloadFile:function(){return H},enablePullToRefresh:function(){return Z},forceUpdateCookies:function(){return ce},getAddOnStatus:function(){return fe},getSafeArea:function(){return de},hideSplashScreen:function(){return V},isAndroidApp:function(){return J},isDeviceGPSEnabled:function(){return z},isIosApp:function(){return L},isNativeApp:function(){return M},loadOfferCard:function(){return oe},nfcSupported:function(){return ie},openAppSettingForPermission:function(){return se},openUrlInBrowser:function(){return Q},platform:function(){return k},printFunction:function(){return te},setOrientation:function(){return Oe},shareFile:function(){return $},shareLink:function(){return X},showDateTimePicker:function(){return ne},showInAppReview:function(){return G},showPermission:function(){return ue},statusBar:function(){return j},updateAppIcon:function(){return Pe}});var t={};e.r(t),e.d(t,{addTrigger:function(){return ve},addTriggers:function(){return Ne},getPlayerId:function(){return Ie},getTriggerValue:function(){return he},getTriggers:function(){return we},logoutEmail:function(){return Te},logoutSMSNumber:function(){return ke},optInUser:function(){return Me},optOutUser:function(){return Fe},removeExternalUserId:function(){return Se},removeTrigger:function(){return ye},removeTriggers:function(){return me},setEmail:function(){return Re},setExternalUserId:function(){return De},setSMSNumber:function(){return be},setTags:function(){return _e}});var i={};e.r(i),e.d(i,{BarcodeScan:function(){return Ue},Format:function(){return Be},Types:function(){return We}});var o={};e.r(o),e.d(o,{bannerAd:function(){return Ve},fullScreenAd:function(){return je},rewardsAd:function(){return He}});var r={};e.r(r),e.d(r,{logEvent:function(){return Ke},setCustomerUserId:function(){return qe}});var a={};e.r(a),e.d(a,{send:function(){return Ge},sendPurchase:function(){return ze}});var c={};e.r(c),e.d(c,{hide:function(){return Xe},show:function(){return Qe}});var s={};e.r(s),e.d(s,{getAll:function(){return Ye},getPermissionStatus:function(){return Ze}});var u={};e.r(u),e.d(u,{start:function(){return $e},stop:function(){return en}});var P={};e.r(P),e.d(P,{keepScreenNormal:function(){return tn},keepScreenOn:function(){return nn}});var A={};e.r(A),e.d(A,{get:function(){return on},set:function(){return rn}});var l={};e.r(l),e.d(l,{prompt:function(){return an}});var d={};e.r(d),e.d(d,{biometricAuthWithDismissOnCancel:function(){return An},checkStatus:function(){return cn},deleteSecret:function(){return un},saveSecret:function(){return sn},show:function(){return Pn}});var f={};e.r(f),e.d(f,{request:function(){return ln},status:function(){return dn}});var p={};e.r(p),e.d(p,{logEvent:function(){return In},logScreen:function(){return Dn},setCollection:function(){return fn},setDefaultEventParameters:function(){return gn},setUserId:function(){return pn},setUserProperty:function(){return On}});var O={};e.r(O),e.d(O,{events:function(){return p}});var g={};e.r(g),e.d(g,{getFCMToken:function(){return vn},subscribe:function(){return Sn},unsubscribe:function(){return _n}});var I={};e.r(I),e.d(I,{Analytics:function(){return p},Messaging:function(){return g}});var D={};e.r(D),e.d(D,{trigger:function(){return Nn}});var S={};e.r(S),e.d(S,{pauseMedia:function(){return mn},playMedia:function(){return yn},stopMedia:function(){return hn}});var _={};e.r(_),e.d(_,{setPrintSize:function(){return wn}});var v={};e.r(v),e.d(v,{checkNotificationPermission:function(){return Rn},openAppNotificationPage:function(){return bn}});var N={};e.r(N),e.d(N,{pairDevice:function(){return kn},startBluetoothScan:function(){return Tn},unpairDevice:function(){return Mn}});var y={};e.r(y),e.d(y,{makeTapToPay:function(){return Cn}});var m={};e.r(m),e.d(m,{checkIfAppUpdateAvailable:function(){return Bn},updateApplication:function(){return Wn}});var h={};e.r(h),e.d(h,{addToSiri:function(){return Un}});var w={};e.r(w),e.d(w,{initBeaconData:function(){return Jn}});var R="undefined"!=typeof window,b=R&&window.WebToNativeInterface||{},T=R&&window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.webToNativeInterface,k=b.getAndroidVersion?"ANDROID_APP":T?"IOS_APP":"WEBSITE",M=R&&"WEBSITE"!==k,F={},E=1,C=null;M&&(b.androidCBHook=function(e){var n=e;try{n=JSON.parse(e)}catch(e){console.log(e)}for(var t in n.type,F){var i=F[t],o=i.cb,r=i.ignoreDelete,a=void 0!==r&&r;n&&n.reqType?t==n.reqType&&(o(n),a||delete F[t]):(o(n),a||delete F[t])}},window.iOSAdMobCBHook=b.androidAdMobCBHook=function(e){var n=JSON.parse(e);C&&C(n)},window.iosCBHook=function(e){var n=e;try{n=JSON.parse(e)}catch(e){console.log(e)}for(var t in F){var i=F[t],o=i.cb,r=i.ignoreDelete,a=void 0!==r&&r;n&&n.reqType?t==n.reqType&&(o(n),a||delete F[t]):(o(n),a||delete F[t])}});var B=function(e,n){"function"==typeof e&&(n&&n.key?F[n.key]={cb:e,ignoreDelete:!!n.ignoreDelete}:(F[E]={cb:e,ignoreDelete:!(!n||!n.ignoreDelete)},E+=1))},W=function(e){"function"==typeof e&&(C=e)},U=function(){C&&(C=null)},J="ANDROID_APP"===k,L="IOS_APP"===k,V=function(){M&&b.hideSplashScreen()},j=function(e){M&&(J?b.statusBar(JSON.stringify(e)):L&&T.postMessage({action:"statusBar",color:e.color,style:e.style}))},H=function(e){M&&(J||L&&T.postMessage({action:"downloadFile",downloadUrl:e}))},x=function(e){var n=e.fileName,t=e.downloadUrl;["IOS_APP"].includes(k)&&L&&T.postMessage({action:"downloadBlobFile",fileName:n,url:t})},q=function(e){var n=e.downloadUrl,t=e.fileName,i=e.isBlob,o=e.mimeType,r=e.cookies,a=e.userAgent,c=e.openFileAfterDownload;["ANDROID_APP"].includes(k)&&"ANDROID_APP"===k&&b.downloadFile(JSON.stringify({url:n,fileName:t,isBlob:i,mimeType:o,cookies:r,userAgent:a,openFileAfterDownload:c}))},K=function(){return new Promise((function(e,n){B((function(t){t?e(t):n({err:"Error getting device info"})}),{key:"deviceInfo"}),"ANDROID_APP"===k?b.getDeviceInfo():"IOS_APP"===k?T.postMessage({action:"deviceInfo"}):n("This function will work in Native App Powered By WebToNative")}))},G=function(){M&&b.showInAppReview()},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.callback;["ANDROID_APP","IOS_APP"].includes(k)&&(B((function(e){"isDeviceGPSEnabled"===e.type&&n&&n(e)})),"ANDROID_APP"===k&&b.isLocationServiceEnabled())},X=function(e){var n=e.url,t=void 0===n?"":n;if(!t)throw"url is mandatory";J&&b.openShareIntent(t),L&&T.postMessage({action:"share",url:t})},Q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e)throw"url is mandatory";J&&b.openUrlInBrowser(e)},Z=function(e){J&&b.enableSwipeRefresh(e)},Y=function(e){J&&b.clearWebViewCache(JSON.stringify({reload:e}))},$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;J&&b.shareFile(e,n,t)},ee=function(){J&&b.closeApp(),L&&T.postMessage({action:"closeApp"})},ne=function(e){if(["ANDROID_APP"].includes(k)){var n=e.callback,t=e.showDate,i=e.showTime;B((function(e){"DATE_TIME_PICKER"===e.type&&n&&n(e)})),J&&b.pickDateTime(JSON.stringify({showDate:t,showTime:i}))}},te=function(e){if(["ANDROID_APP"].includes(k)){var n=e.type,t=void 0===n?"url":n,i=e.url,o=void 0===i?"":i;J&&b.print(JSON.stringify({type:t,url:o}))}},ie=function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.callback;B((function(e){"nfcSupported"===e.type&&n&&n(e)})),J&&b.nfcSupported(),L&&T.postMessage({action:"nfcSupported"})}},oe=function(e){["ANDROID_APP","IOS_APP"].includes(k)&&(J&&b.showOfferCard(JSON.stringify(e)),e.data&&(e.data=JSON.stringify(e.data)),L&&T.postMessage(e))},re=function(e){["IOS_APP"].includes(k)&&(e.data&&(e.data=JSON.stringify(e.data)),L&&T.postMessage(e))},ae=function(){return new Promise((function(e,n){B((function(t){"firstCallWhenAppStarted"===t.type&&(t?e(t):n({err:"Error getting request"}))}),{key:"firstCallWhenAppStarted"}),"ANDROID_APP"===k?b.firstCallWhenAppStarted():"IOS_APP"===k?T.postMessage({action:"firstCallWhenAppStarted"}):n("This function will work in Native App Powered By WebToNative")}))},ce=function(){["ANDROID_APP"].includes(k)&&J&&b.forceUpdateCookies()},se=function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.callback,t=e.values;B((function(e){var t=e.type;e.typeValue,"openAppSettingForPermission"===t&&n&&n(e)})),J&&b.openAppSettingForPermission(t),L&&T.postMessage({action:"openAppSettingForPermission",values:t})}},ue=function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.callback,t=e.permission,i=e.openAppSetting,o=void 0!==i&&i,r=e.alertDialogStyle;B((function(e){var t=e.type,i=e.typeValue;"showPermission"!==t&&"showPermission"!==i||n&&n(e)})),J&&b.showPermission(JSON.stringify({permission:t,openAppSetting:o,alertDialogStyle:r})),L&&T.postMessage({action:"showPermission",permission:t,openAppSetting:o,alertDialogStyle:r})}},Pe=function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.active,t=void 0!==n&&n,i=e.iconName,o=void 0===i?null:i;J&&b.updateAppIcon(JSON.stringify({active:t,iconName:o})),L&&T.postMessage({action:"updateAppIcon",iconName:o,active:t})}},Ae=function(e){if(["IOS_APP"].includes(k)){var n=e.ssKey,t=void 0!==n&&n;L&&T.postMessage({action:"disableScreenshotForPage",ssKey:t})}},le=function(e){if(["ANDROID_APP"].includes(k)){var n=e.enable,t=void 0!==n&&n;J&&b.customBackHandling(JSON.stringify({enable:t}))}},de=function(e){if(["IOS_APP"].includes(k)){var n=e.callback;B((function(e){"getSafeArea"===e.type&&n&&n(e)})),L&&T.postMessage({action:"getSafeArea"})}},fe=function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.callback,t=e.addOnName;B((function(e){"getAddOnStatus"===e.type&&n&&n(e)})),J&&b.getAddOnStatus(JSON.stringify({addOnName:t})),L&&T.postMessage({action:"getAddOnStatus",addOnName:t})}},pe=function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.callback,t=e.permissionName;B((function(e){"checkPermission"===e.type&&n&&n(e)})),J&&b.checkPermission(JSON.stringify(t)),L&&T.postMessage({action:"checkPermission",permissionName:t})}},Oe=function(e){if(["ANDROID_APP"].includes(k)){var n=e.orientation,t=e.forceOrientation,i=void 0!==t&&t;J&&b.setOrientation(JSON.stringify({orientation:n,forceOrientation:i}))}},ge={isAndroidApp:J,isIosApp:L,hideSplashScreen:V,statusBar:j,deviceInfo:K,showInAppReview:G,shareLink:X,platform:k,isNativeApp:M,isDeviceGPSEnabled:z,openUrlInBrowser:Q,enablePullToRefresh:Z,shareFile:$,clearAppCache:Y,closeApp:ee,showDateTimePicker:ne,downloadBlobFile:x,customFileDownload:q,printFunction:te,loadOfferCard:oe,appFirstLoad:ae,addToSiri:re,showPermission:ue,forceUpdateCookies:ce,updateAppIcon:Pe,disableScreenshot:Ae,getSafeArea:de,getAddOnStatus:fe,setOrientation:Oe,checkPermission:pe,openAppSettingForPermission:se,customBackHandling:le},Ie=function(){return new Promise((function(e,n){B((function(t){t.isSuccess?e(t.playerId):n(t)}),{key:"getPlayerId"}),"ANDROID_APP"===k?b.getOneSignalId():"IOS_APP"===k?T.postMessage({action:"getPlayerId"}):n("This function will work in Native App Powered By WebToNative")}))},De=function(e){if(!e)throw"userId is required";if("ANDROID_APP"===k)return M&&b.setExternalUserId(e);"IOS_APP"===k&&T.postMessage({action:"setExternalUserId",userId:e})},Se=function(){if("ANDROID_APP"===k)return M&&b.removeExternalUserId();"IOS_APP"===k&&T.postMessage({action:"removeExternalUserId"})},_e=function(e){var n=e.tags;if(n){if("ANDROID_APP"===k)return M&&b.setUserTags(JSON.stringify(n));"IOS_APP"===k&&T.postMessage({action:"setUserTags",tags:n})}},ve=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.key,t=e.value;"ANDROID_APP"===k?b.addTrigger(JSON.stringify({key:n,value:t})):"IOS_APP"===k&&T.postMessage({action:"addTrigger",key:n,value:t})},Ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.triggers;"ANDROID_APP"===k?b.addTriggers(JSON.stringify({triggers:n})):"IOS_APP"===k&&T.postMessage({action:"addTriggers",triggers:n})},ye=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.key;"ANDROID_APP"===k?b.removeTriggerForKey(n):"IOS_APP"===k&&T.postMessage({action:"removeTrigger",key:n})},me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.keys;"ANDROID_APP"===k?b.removeTriggersForKeys(JSON.stringify({keys:n})):"IOS_APP"===k&&T.postMessage({action:"removeTriggers",keys:n})},he=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.key,t=e.callback;["ANDROID_APP","IOS_APP"].includes(k)&&(B((function(e){"getTriggerValue"===e.type&&t&&t(e)})),"ANDROID_APP"===k?b.getTriggerValueForKey(n):"IOS_APP"===k&&T.postMessage({action:"getTriggerValue",key:n}))},we=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.callback;["ANDROID_APP","IOS_APP"].includes(k)&&(B((function(e){"getTriggers"===e.type&&n&&n(e)})),"ANDROID_APP"===k?b.getTriggers():"IOS_APP"===k&&T.postMessage({action:"getTriggers"}))},Re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.emailId;["ANDROID_APP","IOS_APP"].includes(k)&&"ANDROID_APP"===k&&b.setEmail(n)},be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.smsNumber;["ANDROID_APP","IOS_APP"].includes(k)&&"ANDROID_APP"===k&&b.setSMSNumber(n)},Te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.emailId;["ANDROID_APP","IOS_APP"].includes(k)&&"ANDROID_APP"===k&&b.logoutEmail(n)},ke=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.smsNumber;["ANDROID_APP","IOS_APP"].includes(k)&&"ANDROID_APP"===k&&b.logoutSMSNumber(n)},Me=function(){"ANDROID_APP"===k?b.optInOneSignalPermissionDialog():"IOS_APP"===k&&T.postMessage({action:"optInOneSignalPermissionDialog"})},Fe=function(){"ANDROID_APP"===k?b.optOutOneSignalPermissionDialog():"IOS_APP"===k&&T.postMessage({action:"optOutOneSignalPermissionDialog"})},Ee=void 0,Ce=null,Be={UNKNOWN:-1,ALL_FORMATS:0,CODE_128:1,CODE_39:2,CODE_93:4,CODABAR:8,DATA_MATRIX:16,EAN_13:32,EAN_8:64,ITF:128,QR_CODE:256,UPC_A:512,UPC_E:1024,PDF417:2048,AZTEC:4096},We={UNKNOWN:0,CONTACT_INFO:1,EMAIL:2,ISBN:3,PHONE:4,PRODUCT:5,SMS:6,TEXT:7,URL:8,WIFI:9,GEO:10,CALENDAR_EVENT:11,DRIVER_LICENSE:12},Ue=function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.onBarcodeSearch,t=e.format;B((function(e){var t=e.type,i=e.value;"BARCODE_SCAN"===t&&n&&n(i)})),"ANDROID_APP"===k&&b.startScanner(JSON.stringify({formats:t?[t]:[]})),"IOS_APP"===k&&T.postMessage({action:"barcodeScan",barcodeFormat:String(t||Be.ALL_FORMATS)})}},Je=void 0,Le=null,Ve=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(["ANDROID_APP","IOS_APP"].includes(k))return"IOS_APP"===k&&T.postMessage({action:"showBannerAd",adId:e.adId||""}),"ANDROID_APP"===k&&b.showBannerAd(JSON.stringify(e)),Je},je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.fullScreenAdCallback;return W((function(e){var n=e.status;Le&&Le(e),"adDismissed"===n&&(Le=null),["adDismissed","adLoadError","adError"].indexOf(n)>-1&&U()})),"IOS_APP"===k&&T.postMessage({action:"showFullScreenAd",adId:e.adId||""}),"ANDROID_APP"===k&&b.showFullScreenAd(JSON.stringify(e)),"function"==typeof n&&(Le=n),Je}},He=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.rewardsAdCallback;return W((function(e){var n=e.status;Le&&Le(e),"adDismissed"===n&&(Le=null),["adDismissed","adLoadError","adError"].indexOf(n)>-1&&U()})),"IOS_APP"===k&&T.postMessage({action:"showRewardAd",adId:e.adId||""}),"ANDROID_APP"===k&&b.showRewardsAd(JSON.stringify(e)),"function"==typeof n&&(Le=n),Je}},xe={facebook:{login:function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.callback,t=e.scope;B((function(e){"fbLoginToken"===e.type&&n&&n(e)})),"ANDROID_APP"===k&&b.loginWithFacebook(),"IOS_APP"===k&&T.postMessage({action:"fbSignIn",scope:t})}},logout:function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.callback,t=e.scope;B((function(e){"fbLogOut"===e.type&&n&&n(e)})),"ANDROID_APP"===k&&b.logoutWithFacebook(),"IOS_APP"===k&&T.postMessage({action:"fbSignOut",scope:t})}}},google:{login:function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.callback,t=e.scope;B((function(e){"googleLoginToken"===e.type&&n&&n(e)})),"ANDROID_APP"===k&&b.signInWithGoogle(),"IOS_APP"===k&&T.postMessage({action:"googleSignIn",scope:t})}},logout:function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.callback,t=e.scope;B((function(e){"googleLogOut"===e.type&&n&&n(e)})),"ANDROID_APP"===k&&b.signOutWithGoogle(),"IOS_APP"===k&&T.postMessage({action:"googleSignOut",scope:t})}}},apple:{login:function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.callback,t=e.scope;B((function(e){"appleLoginToken"===e.type&&n&&n(e)})),"IOS_APP"===k&&T.postMessage({action:"appleSignIn",scope:t})}}}},qe=function(e){["ANDROID_APP","IOS_APP"].includes(k)&&("ANDROID_APP"===k&&b.setAppsFlyerUserId(e),"IOS_APP"===k&&T.postMessage({action:"setAppsFlyerUserId",userId:e}))},Ke=function(e,n){["ANDROID_APP","IOS_APP"].includes(k)&&("ANDROID_APP"===k&&b.addEventToAppsFlyer(e,JSON.stringify(n)),"IOS_APP"===k&&T.postMessage({action:"addEventToAppsFlyer",eventName:e,eventValues:n}))},Ge=function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.event,t=e.valueToSum,i=e.parameters;"ANDROID_APP"===k&&b.addFbEvents(n,i),"IOS_APP"===k&&T.postMessage({action:"sendFBEvent",eventName:n,valueToSum:t,parameters:i})}},ze=function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.amount,t=e.currency,i=e.parameters;"ANDROID_APP"===k&&b.addFbPurchaseEvent(n,t,i),"IOS_APP"===k&&T.postMessage({action:"sendFBPurchaseEvent",currency:t,amount:n,parameters:i})}},Xe=function(){["ANDROID_APP","IOS_APP"].includes(k)&&("ANDROID_APP"===k&&b.showHideStickyFooter(!1),"IOS_APP"===k&&T.postMessage({action:"showHideStickyFooter",show:!1}))},Qe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.key;["ANDROID_APP","IOS_APP"].includes(k)&&("ANDROID_APP"===k&&b.showHideStickyFooter(!0),"IOS_APP"===k&&T.postMessage({action:"showHideStickyFooter",show:!0,key:n}))},Ze=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.callback;["ANDROID_APP","IOS_APP"].includes(k)&&(B((function(e){"contactPermissionStatus"===e.type&&n&&n(e)})),"ANDROID_APP"===k&&b.getPermissionStatus(),"IOS_APP"===k&&T.postMessage({action:"askUserForContactPermission"}))},Ye=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.callback;["ANDROID_APP","IOS_APP"].includes(k)&&(B((function(e){"contactDetails"===e.type&&n&&n(e)})),"ANDROID_APP"===k&&b.getAll(),"IOS_APP"===k&&T.postMessage({action:"getUserContactDetails"}))},$e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.data,t=e.callback,i=e.backgroundIndicator,o=void 0!==i&&i,r=e.pauseAutomatically,a=void 0===r||r,c=e.distanceFilter,s=void 0===c?0:c,u=e.desiredAccuracy,P=void 0===u?"best":u,A=e.activityType,l=void 0===A?"other":A,d=e.apiUrl,f=e.timeout;B((function(e){"LOCATION_UPDATE"===e.type&&t&&t(e)}),{key:"LOCATION_UPDATE",ignoreDelete:!0}),"IOS_APP"===k&&T.postMessage({action:"startLocation",data:n,backgroundIndicator:o,pauseAutomatically:a,distanceFilter:s,desiredAccuracy:P,activityType:l,apiUrl:d,timeout:f}),"ANDROID_APP"===k&&b.startTrackingLocation(JSON.stringify({action:"startLocation",data:n,interval:f,callback:t,apiUrl:d,displacement:s}))}},en=function(){["ANDROID_APP","IOS_APP"].includes(k)&&(delete F["LOCATION_UPDATE"],"IOS_APP"===k&&T.postMessage({action:"stopLocation"}),"ANDROID_APP"===k&&b.stopTrackingLocation())},nn=function(){["ANDROID_APP","IOS_APP"].includes(k)&&("IOS_APP"===k&&T.postMessage({action:"keepScreenOn",flag:!0}),"ANDROID_APP"===k&&b.keepScreenOn())},tn=function(){["ANDROID_APP","IOS_APP"].includes(k)&&("IOS_APP"===k&&T.postMessage({action:"keepScreenOn",flag:!1}),"ANDROID_APP"===k&&b.keepScreenNormal())},on=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.callback;["ANDROID_APP","IOS_APP"].includes(k)&&(B((function(e){"CLIPBOARD_CONTENT"===e.type&&n&&n(e)})),"IOS_APP"===k&&T.postMessage({action:"getClipBoardData"}),"ANDROID_APP"===k&&b.getText())},rn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};["ANDROID_APP","IOS_APP"].includes(k)&&("IOS_APP"===k&&T.postMessage({action:"setClipBoardData",text:e.data||""}),"ANDROID_APP"===k&&b.setText(e.data||""))},an=function(){["ANDROID_APP","IOS_APP"].includes(k)&&("IOS_APP"===k&&T.postMessage({action:"showAppRating"}),"ANDROID_APP"===k&&b.showInAppReview())},cn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.callback;["ANDROID_APP","IOS_APP"].includes(k)&&(B((function(e){"checkBiometricStatus"===e.type&&n&&n(e)})),"ANDROID_APP"===k&&b.checkBiometricStatus(),"IOS_APP"===k&&T.postMessage({action:"checkBiometricStatus"}))},sn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.callback,t=e.secret;["ANDROID_APP","IOS_APP"].includes(k)&&(B((function(e){"saveBiometricSecret"===e.type&&n&&n(e)})),"ANDROID_APP"===k&&b.saveSecret(t),"IOS_APP"===k&&T.postMessage({action:"saveBiometricSecret",secret:t}))},un=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.callback;["ANDROID_APP","IOS_APP"].includes(k)&&(B((function(e){"deleteBiometricSecret"===e.type&&n&&n(e)})),"ANDROID_APP"===k&&b.deleteSecret(),"IOS_APP"===k&&T.postMessage({action:"deleteBiometricSecret"}))},Pn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.callback,t=e.prompt;["ANDROID_APP","IOS_APP"].includes(k)&&(B((function(e){"showBiometric"===e.type&&n&&n(e)})),"ANDROID_APP"===k&&b.callBiometric(t||"Authenticate to continue!"),"IOS_APP"===k&&T.postMessage({action:"showBiometric",prompt:t||""}))},An=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.callback,t=e.prompt,i=e.isAuthenticationOptional,o=void 0!==i&&i;["ANDROID_APP"].includes(k)&&(B((function(e){"biometricAuthWithDismissOnCancel"===e.type&&n&&n(e)})),"ANDROID_APP"===k&&b.biometricAuthWithDismissOnCancel(JSON.stringify({prompt:t||"Authenticate to continue!",isAuthenticationOptional:o})))},ln=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.callback;["IOS_APP"].includes(k)&&(B((function(e){"requestTrackingConsent"===e.type&&n&&n(e)})),"IOS_APP"===k&&T.postMessage({action:"requestTrackingAuthorization"}))},dn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.callback;["IOS_APP"].includes(k)&&(B((function(e){"trackingConsentStatus"===e.type&&n&&n(e)})),"IOS_APP"===k&&T.postMessage({action:"trackingConsentStatus"}))},fn=function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.enabled;"IOS_APP"===k&&T.postMessage({action:"setFirebaseAnalyticsCollection",enabled:n}),"ANDROID_APP"===k&&b.setFirebaseAnalyticsCollection(n)}},pn=function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.userId;"IOS_APP"===k&&T.postMessage({action:"setFirebaseUserId",userId:n}),"ANDROID_APP"===k&&b.setFirebaseUserId(n)}},On=function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.key,t=e.value;"IOS_APP"===k&&T.postMessage({action:"setFirebaseUserProp",key:n,value:t}),"ANDROID_APP"===k&&b.setFirebaseUserProp(n,t)}},gn=function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.parameters;"IOS_APP"===k&&T.postMessage({action:"setFirebaseDefaultParam",parameters:n}),"ANDROID_APP"===k&&b.setFirebaseDefaultParam(n)}},In=function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.eventName,t=e.parameters;"IOS_APP"===k&&T.postMessage({action:"logFirebaseEvent",eventName:n,parameters:t}),"ANDROID_APP"===k&&b.logFirebaseEvent(n,t)}},Dn=function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.screenName,t=e.screenClass;"IOS_APP"===k&&T.postMessage({action:"logFirebaseScreenView",screenName:n,screenClass:t}),"ANDROID_APP"===k&&b.logFirebaseScreenView(n,t)}},Sn=function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.toTopic;"IOS_APP"===k&&T.postMessage({action:"firebaseSubscribeToTopic",topic:n}),"ANDROID_APP"===k&&b.subscribeToTopic(n)}},_n=function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.fromTopic;"IOS_APP"===k&&T.postMessage({action:"firebaseUnsubscribeFromTopic",topic:n}),"ANDROID_APP"===k&&b.unsubscribeFromTopic(n)}},vn=function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.callback;B((function(e){"getFCMToken"===e.type&&("ANDROID_APP"===k&&(e.token=e.fcm_registration_token),n&&n(e))})),"IOS_APP"===k&&T.postMessage({action:"getFCMToken"}),"ANDROID_APP"===k&&b.getRegistrationToken()}},Nn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};["ANDROID_APP","IOS_APP"].includes(k)&&"IOS_APP"===k&&T.postMessage({action:"haptikEffect",effect:e.effect})},yn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.url,t=e.imageUrl,i=void 0===t?"https://images.freeimages.com/images/large-previews/3b2/prague-conference-center-1056491.jpg":t;["ANDROID_APP","IOS_APP"].includes(k)&&("ANDROID_APP"===k&&b.playMedia(JSON.stringify({url:n,imageUrl:i})),"IOS_APP"===k&&T.postMessage({action:"playMedia",url:n,image:i}))},mn=function(){["ANDROID_APP","IOS_APP"].includes(k)&&("ANDROID_APP"===k&&b.pausePlaying(),"IOS_APP"===k&&T.postMessage({action:"pauseMedia"}))},hn=function(){["ANDROID_APP","IOS_APP"].includes(k)&&("ANDROID_APP"===k&&b.stopPlaying(),"IOS_APP"===k&&T.postMessage({action:"stopMedia"}))},wn=function(e){if(["ANDROID_APP"].includes(k)){var n=e.printSize,t=void 0===n?"ISO_A4":n,i=e.label,o=void 0===i?"":i;"ANDROID_APP"===k&&b.setPrintSize(JSON.stringify({printSize:t,label:o}))}},Rn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.callback;["ANDROID_APP","IOS_APP"].includes(k)&&(B((function(e){"checkNotificationPermission"===e.type&&n&&n(e)})),"ANDROID_APP"===k&&b.checkNotificationPermission(),"IOS_APP"===k&&T.postMessage({action:"checkNotificationPermission"}))},bn=function(){["ANDROID_APP","IOS_APP"].includes(k)&&("ANDROID_APP"===k&&b.openAppNotificationPage(),"IOS_APP"===k&&T.postMessage({action:"openAppNotificationPage"}))},Tn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.callback;["ANDROID_APP"].includes(k)&&(B((function(e){"startBluetoothScan"===e.type&&n&&n(e)})),"ANDROID_APP"===k&&b.startBluetoothScan())},kn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.callback,t=e.address,i=e.timeout,o=void 0===i?10:i;["ANDROID_APP"].includes(k)&&(B((function(e){"pairWithDevice"===e.type&&n&&n(e)})),"ANDROID_APP"===k&&b.pairWithDevice(JSON.stringify({address:t,timeout:o})))},Mn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.callback,t=e.address;["ANDROID_APP"].includes(k)&&(B((function(e){"unpairDevice"===e.type&&n&&n(e)})),"ANDROID_APP"===k&&b.unpairDevice(JSON.stringify({address:t})))};function Fn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function En(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Cn=function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.callback,t=e.apiUrl,i=void 0===t?null:t,o=e.amount,r=e.currency,a=e.isSimulated,c=void 0!==a&&a,s=e.captureMethod,u=void 0===s?"automatic":s,P=e.connectionToken,A=e.stripeLocationId,l=e.clientSecret,d=void 0===l?null:l;B((function(e){"makeTapToPayStripePayment"===e.type&&n&&n(e)}));var f={secretToken:P,amount:o,currency:r,isSimulated:c,captureMethod:u,locationId:A};i&&(f.apiUrl=i),d&&(f.client_secret=d),"ANDROID_APP"===k&&b.makeTapToPayStripePayment(JSON.stringify(f)),"IOS_APP"===k&&T.postMessage(function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Fn(Object(t),!0).forEach((function(n){En(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Fn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({action:"makeTapToPayStripePayment"},f))}},Bn=function(e){if(["ANDROID_APP"].includes(k)){var n=e.callback;B((function(e){"checkIfAppUpdateAvailable"===e.type&&n&&n(e)})),"ANDROID_APP"===k&&b.checkIfAppUpdateAvailable()}},Wn=function(e){if(["ANDROID_APP"].includes(k)){var n=e.updateType,t=void 0===n?"immediate":n,i=e.callback;B((function(e){"updateApplication"===e.type&&i&&i(e)})),"ANDROID_APP"===k&&b.updateApplication(t)}},Un=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.actionUrl,t=e.suggestedPhrase,i=e.title;["IOS_APP"].includes(k)&&"IOS_APP"===k&&T.postMessage({action:"addToSiri",data:{actionUrl:n,suggestedPhrase:t,title:i}})},Jn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.callback,t=e.beaconData;["ANDROID_APP","IOS_APP"].includes(k)&&(B((function(e){"initBeaconData"===e.type&&n&&n(e)})),"ANDROID_APP"===k&&b.initBeaconData(JSON.stringify(t)),"IOS_APP"===k&&T.postMessage({action:"initBeaconData",data:t}))};window.WTN=n,window.WTN.OneSignal=t,window.WTN.VoiceSearch=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.onVoiceSearch;return B((function(e){var n=e.type,t=e.results;"VOICE_SEARCH_RESULT"===n&&(Ce&&Ce(t),Ce=null)})),M&&b.openVoiceSearch(),"function"==typeof n&&(Ce=n),Ee},window.WTN.Barcode=i,window.WTN.AdMob=o,window.WTN.socialLogin=xe,window.WTN.inAppPurchase=function(e){if(["ANDROID_APP","IOS_APP"].includes(k)){var n=e.callback,t=e.productId,i=e.productType,o=e.isConsumable,r=void 0!==o&&o;B((function(e){"inAppPurchase"===e.type&&n&&n(e)})),"IOS_APP"===k&&T.postMessage({action:"inAppPurchase",productId:t}),"ANDROID_APP"===k&&b.inAppPurchase(JSON.stringify({action:"inAppPurchase",productId:t,productType:i,isConsumable:r}))}},window.WTN.getAllPurchases=function(e){if(["ANDROID_APP"].includes(k)){var n=e.callback;B((function(e){"purchaseList"===e.type&&n&&n(e)})),"ANDROID_APP"===k&&b.getAllPurchases({action:"purchaseList"})}},window.WTN.getReceiptData=function(e){if(["IOS_APP"].includes(k)){var n=e.callback;B((function(e){"getReceiptData"===e.type&&n&&n(e)})),"IOS_APP"===k&&T.postMessage({action:"getReceiptData"})}},window.WTN.appsflyer=r,window.WTN.bottomNavigation=c,window.WTN.contacts=s,window.WTN.screen=P,window.WTN.backgroundLocation=u,window.WTN.clipboard=A,window.WTN.appReview=l,window.WTN.Biometric=d,window.WTN.ATTConsent=f,window.WTN.facebook={events:a},window.WTN.firebaseAnalytics=O,window.WTN.haptics=D,window.WTN.Firebase=I,window.WTN.MediaPlayer=S,window.WTN.Printing=_,window.WTN.Notification=v,window.WTN.Bluetooth=N,window.WTN.Stripe=y,window.WTN.InAppUpdate=m,window.WTN.Siri=h,window.WTN.Beacon=w,window&&window.WebToNativeInterface&&window.WebToNativeInterface.getAndroidVersion?window.navigator.share=function(e){return new Promise((function(n,t){window.WebToNativeInterface.openShareIntent(e.url),n()}))}:WTN.isIosApp&&(window.navigator.share=function(e){return new Promise((function(n,t){T.postMessage({action:"share",url:e.url}),n()}))})}();
|