median-js-bridge 2.14.0 → 2.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/npm-publish.yml +9 -9
- package/dist/index.d.ts +30 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/median.min.js +1 -1
- package/dist/plugins/clerk.d.ts +9 -0
- package/dist/plugins/clerk.d.ts.map +1 -0
- package/dist/plugins/clerk.js +16 -0
- package/dist/plugins/index.d.ts +3 -0
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +3 -0
- package/dist/plugins/jwplayer.d.ts +7 -0
- package/dist/plugins/jwplayer.d.ts.map +1 -0
- package/dist/plugins/jwplayer.js +10 -0
- package/dist/plugins/salesforceCloud.d.ts +20 -0
- package/dist/plugins/salesforceCloud.d.ts.map +1 -0
- package/dist/plugins/salesforceCloud.js +37 -0
- package/dist/types/clerk.d.ts +38 -0
- package/dist/types/clerk.d.ts.map +1 -0
- package/dist/types/clerk.js +1 -0
- package/dist/types/jwplayer.d.ts +27 -0
- package/dist/types/jwplayer.d.ts.map +1 -0
- package/dist/types/jwplayer.js +1 -0
- package/dist/types/salesforceCloud.d.ts +42 -0
- package/dist/types/salesforceCloud.d.ts.map +1 -0
- package/dist/types/salesforceCloud.js +1 -0
- package/package.json +1 -1
- package/src/index.ts +6 -0
- package/src/plugins/clerk.ts +19 -0
- package/src/plugins/index.ts +3 -0
- package/src/plugins/jwplayer.ts +13 -0
- package/src/plugins/salesforceCloud.ts +46 -0
- package/src/types/clerk.ts +41 -0
- package/src/types/jwplayer.ts +29 -0
- package/src/types/salesforceCloud.ts +51 -0
|
@@ -13,17 +13,14 @@ jobs:
|
|
|
13
13
|
id-token: write
|
|
14
14
|
contents: read
|
|
15
15
|
steps:
|
|
16
|
-
- uses: actions/checkout@
|
|
17
|
-
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
|
|
18
18
|
- name: Set up Node.js
|
|
19
|
-
uses: actions/setup-node@
|
|
19
|
+
uses: actions/setup-node@v4
|
|
20
20
|
with:
|
|
21
|
-
node-version: 22
|
|
21
|
+
node-version: '22.14.0'
|
|
22
22
|
registry-url: 'https://registry.npmjs.org'
|
|
23
|
-
|
|
24
|
-
- name: Update npm to latest
|
|
25
|
-
run: npm install -g npm@latest
|
|
26
|
-
|
|
23
|
+
|
|
27
24
|
- name: Install dependencies
|
|
28
25
|
run: npm ci
|
|
29
26
|
|
|
@@ -32,7 +29,10 @@ jobs:
|
|
|
32
29
|
|
|
33
30
|
- name: Build
|
|
34
31
|
run: npm run build
|
|
35
|
-
|
|
32
|
+
|
|
33
|
+
- name: Update npm for provenance support
|
|
34
|
+
run: npm install -g npm@latest
|
|
35
|
+
|
|
36
36
|
- name: Check if version is published
|
|
37
37
|
id: check-version
|
|
38
38
|
run: |
|
package/dist/index.d.ts
CHANGED
|
@@ -581,6 +581,12 @@ declare namespace Median {
|
|
|
581
581
|
cardType: "visa" | "mastercard" | "amex" | "discover" | "jcb";
|
|
582
582
|
}>;
|
|
583
583
|
};
|
|
584
|
+
const clerk: {
|
|
585
|
+
initialize: (params: import("./types/clerk.js").Clerk.InitializeParams) => Promise<import("./types/clerk.js").Clerk.InitializeResponse>;
|
|
586
|
+
presentSignIn: () => Promise<import("./types/clerk.js").Clerk.PresentSignInResponse>;
|
|
587
|
+
signOut: () => Promise<import("./types/clerk.js").Clerk.SignOutResponse>;
|
|
588
|
+
getAuthStatus: () => Promise<import("./types/clerk.js").Clerk.GetAuthStatusResponse>;
|
|
589
|
+
};
|
|
584
590
|
const contacts: {
|
|
585
591
|
getAll: (params: import("./types/index.js").CallbackParams<import("./types/index.js").CallbackData & {
|
|
586
592
|
contacts?: {
|
|
@@ -1175,6 +1181,10 @@ declare namespace Median {
|
|
|
1175
1181
|
requestPermission: (params: import("./types/index.js").CallbackParams<import("./types/index.js").PermissionStatusData>) => Promise<import("./types/index.js").PermissionStatusData>;
|
|
1176
1182
|
permissionStatus: (params: import("./types/index.js").CallbackParams<import("./types/index.js").PermissionStatusData>) => Promise<import("./types/index.js").PermissionStatusData>;
|
|
1177
1183
|
};
|
|
1184
|
+
const jwplayer: {
|
|
1185
|
+
initialize: (params: import("./types/jwplayer.js").JWPlayer.InitializeParams) => Promise<import("./types/jwplayer.js").JWPlayer.InitializeResponse>;
|
|
1186
|
+
play: (params: import("./types/jwplayer.js").JWPlayer.PlayParams) => Promise<import("./types/jwplayer.js").JWPlayer.PlayResponse>;
|
|
1187
|
+
};
|
|
1178
1188
|
const kaltura: {
|
|
1179
1189
|
play: (params: {
|
|
1180
1190
|
entryId: string;
|
|
@@ -1698,6 +1708,23 @@ declare namespace Median {
|
|
|
1698
1708
|
}) => Promise<import("./types/index.js").CallbackData>;
|
|
1699
1709
|
restorePurchases: (params: import("./types/index.js").CallbackParams<import("./types/index.js").CallbackData>) => Promise<import("./types/index.js").CallbackData>;
|
|
1700
1710
|
};
|
|
1711
|
+
const salesforceCloud: {
|
|
1712
|
+
promptNotification: () => Promise<import("./types/salesforceCloud.js").SalesforceCloud.PermissionResponse>;
|
|
1713
|
+
notificationEnabled: () => Promise<import("./types/salesforceCloud.js").SalesforceCloud.PermissionResponse>;
|
|
1714
|
+
getInfo: () => Promise<import("./types/salesforceCloud.js").SalesforceCloud.GetInfoResponse>;
|
|
1715
|
+
contactKey: {
|
|
1716
|
+
set: (params: import("./types/salesforceCloud.js").SalesforceCloud.SetContactKeyParams) => Promise<import("./types/salesforceCloud.js").SalesforceCloud.SetContactKeyResponse>;
|
|
1717
|
+
get: () => Promise<import("./types/salesforceCloud.js").SalesforceCloud.GetContactKeyResponse>;
|
|
1718
|
+
};
|
|
1719
|
+
attributes: {
|
|
1720
|
+
set: (params: import("./types/salesforceCloud.js").SalesforceCloud.SetAttributesParams) => Promise<import("./types/salesforceCloud.js").SalesforceCloud.SetAttributesResponse>;
|
|
1721
|
+
get: () => Promise<import("./types/salesforceCloud.js").SalesforceCloud.GetAttributesResponse>;
|
|
1722
|
+
};
|
|
1723
|
+
tags: {
|
|
1724
|
+
set: (params: import("./types/salesforceCloud.js").SalesforceCloud.SetTagsParams) => Promise<import("./types/salesforceCloud.js").SalesforceCloud.SetTagsResponse>;
|
|
1725
|
+
get: () => Promise<import("./types/salesforceCloud.js").SalesforceCloud.GetTagsResponse>;
|
|
1726
|
+
};
|
|
1727
|
+
};
|
|
1701
1728
|
const shareIntoApp: {
|
|
1702
1729
|
shareResult: {
|
|
1703
1730
|
addListener: (callback: (data: ShareToAppData) => void) => string;
|
|
@@ -1970,6 +1997,9 @@ declare namespace Median {
|
|
|
1970
1997
|
}
|
|
1971
1998
|
export default Median;
|
|
1972
1999
|
export { AppsFlyer } from './types/appsflyer.js';
|
|
2000
|
+
export { Clerk } from './types/clerk.js';
|
|
1973
2001
|
export { HealthBridge } from './types/healthBridge.js';
|
|
2002
|
+
export { JWPlayer } from './types/jwplayer.js';
|
|
1974
2003
|
export { MasterLock } from './types/masterlock.js';
|
|
2004
|
+
export { SalesforceCloud } from './types/salesforceCloud.js';
|
|
1975
2005
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,kBAAU,MAAM,CAAC;IAIR,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;KAAe,CAAC;IACzB,MAAM,OAAO;;;;;;;;;;;;;KAAmB,CAAC;IACjC,MAAM,MAAM;;;KAA0B,CAAC;IACvC,MAAM,SAAS;;;;;;;;;KAA6B,CAAC;IA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
|
50
50
|
Median.calendar = plugins.calendar;
|
|
51
51
|
Median.card_io = plugins.card_io;
|
|
52
|
+
Median.clerk = plugins.clerk;
|
|
52
53
|
Median.contacts = plugins.contacts;
|
|
53
54
|
Median.cordial = plugins.cordial;
|
|
54
55
|
Median.documentScanner = plugins.documentScanner;
|
|
@@ -64,6 +65,7 @@ var Median;
|
|
|
64
65
|
Median.intentedge = plugins.intentedge;
|
|
65
66
|
Median.intercom = plugins.intercom;
|
|
66
67
|
Median.iterable = plugins.iterable;
|
|
68
|
+
Median.jwplayer = plugins.jwplayer;
|
|
67
69
|
Median.kaltura = plugins.kaltura;
|
|
68
70
|
Median.keychainSwift = plugins.keychainSwift;
|
|
69
71
|
Median.klaviyo = plugins.klaviyo;
|
|
@@ -79,6 +81,7 @@ var Median;
|
|
|
79
81
|
Median.permissions = plugins.permissions;
|
|
80
82
|
Median.plaid = plugins.plaid;
|
|
81
83
|
Median.revenueCat = plugins.revenueCat;
|
|
84
|
+
Median.salesforceCloud = plugins.salesforceCloud;
|
|
82
85
|
Median.shareIntoApp = plugins.shareIntoApp;
|
|
83
86
|
Median.socialLogin = plugins.socialLogin;
|
|
84
87
|
Median.socialShare = plugins.socialShare;
|
package/dist/median.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var Median=function(){"use strict";function e(e="_median_temp_"){return e+Math.random().toString(36).slice(2)}function n(n,t){if("string"==typeof n)return n;const i=e();return window[i]=function(...e){n(...e),t||delete window[i]},i}function t(e,t,i){let a=e;t&&(a={},t.callback&&"function"==typeof t.callback&&(t.callback=n(t.callback,i)),t.callbackFunction&&"function"==typeof t.callbackFunction&&(t.callbackFunction=n(t.callbackFunction,i)),t.statuscallback&&"function"==typeof t.statuscallback&&(t.statuscallback=n(t.statuscallback,i)),a.medianCommand=e,a.data=t),window?.JSBridge?.postMessage&&window.JSBridge.postMessage("string"==typeof a?a:JSON.stringify(a)),window?.webkit?.messageHandlers?.JSBridge?.postMessage&&window.webkit.messageHandlers.JSBridge.postMessage(a)}function i(n,i,a){if(i?.callback||i?.callbackFunction||i?.statuscallback)return t(n,i,a);{const a=e();return i||(i={}),i.callback=a,new Promise((function(e,o){window[a]=function(n){n&&"object"==typeof n&&"error"in n?o(n):e(n),delete window[a]},t(n,i)}))}}const a={geoLocation:{promptLocationServices:function(){t("median://geoLocation/promptLocationServices")}},screen:{fullscreen:function(){t("median://screen/fullscreen")},normal:function(){t("median://screen/normal")},keepScreenOn:function(){t("median://screen/keepScreenOn")},keepScreenNormal:function(){t("median://screen/keepScreenNormal")}},audio:{requestFocus:function(e){t("median://audio/requestFocus",{enabled:e})}}},o={};function r(e,n){window[e]=function(...e){Object.keys(n).forEach((t=>{const i=n[t];"function"==typeof i&&i(...e)}))}}function s(e,n){return t(n?"median://events/subscribe":"median://events/unsubscribe",{eventName:e})}const c=n=>({addListener:t=>((n,t)=>{const i=e(n);return"function"!=typeof t||(o[n]=o[n]||{},o[n][i]=t,r(n,o[n]),s(n,!0)),i})(n,t),removeListener:e=>((e,n)=>{e&&n&&(o[e]=o[e]||{},delete o[e][n],r(e,o[e]),0===Object.keys(o[e]).length&&s(e,!1))})(n,e)}),u={camera:{setCaptureQuality:function(e){t("median://camera/setCaptureQuality",{quality:e})},saveToGallery:function(e){t("median://camera/saveToGallery",{saveToGallery:e})}},clipboard:{set:function(e){t("median://clipboard/set",e)},get:function(e){return i("median://clipboard/get",e)}},config:{set:function(e){t("median://config/set",e)}},connectivity:{get:function(e){return i("median://connectivity/get",e)},subscribe:function(e){return i("median://connectivity/subscribe",e,!0)},unsubscribe:function(){t("median://connectivity/unsubscribe")}},contextMenu:{setEnabled:function(e){t("median://contextMenu/setEnabled",{enabled:e})},setLinkActions:function(e){t("median://contextMenu/setLinkActions",{actions:e})}},deviceInfo:function(e){return i("median://run/median_device_info",e,!0)},internalExternal:{set:function(e){t("median://internalExternal/set",e)}},jsNavigation:{url:c("_median_url_changed")},keyboard:{info:function(e){return i("median://keyboard/info",e)},listen:function(e){t("median://keyboard/listen",{callback:e})},showAccessoryView:function(e){t("median://keyboard/showAccessoryView",{visible:e})}},nativebridge:{custom:function(e){return i("median://nativebridge/custom",e)},multi:function(e){t("median://nativebridge/multi",e)}},navigationLevels:{set:function(e){t("median://navigationLevels/set",{persist:e.persist,data:e})},setCurrent:function(e){t("median://navigationLevels/set",e)},revert:function(){t("median://navigationLevels/set?persist=true")}},navigationMaxWindows:{set:function(e,n){t("median://navigationMaxWindows/set",{data:e,autoClose:n,persist:!0})},setCurrent:function(e,n){t("median://navigationMaxWindows/set",{data:e,autoClose:n})}},navigationTitles:{set:function(e){t("median://navigationTitles/set",{persist:e.persist,data:e})},setCurrent:function(e){t("median://navigationTitles/setCurrent",e)},revert:function(){t("median://navigationTitles/set?persist=true")}},open:{appSettings:function(){t("median://open/app-settings")}},registration:{send:function(e){t("median://registration/send",{customData:e})}},run:{deviceInfo:function(){t("median://run/median_device_info")}},screen:{setBrightness:function(e){t("median://screen/setBrightness",["number","string"].includes(typeof e)?{brightness:e}:e)},setMode:function(e){t("median://screen/setMode",e)},keepScreenOn:function(e){t("median://screen/keepScreenOn",e)},keepScreenNormal:function(){t("median://screen/keepScreenNormal")}},share:{sharePage:function(e){t("median://share/sharePage",e)},downloadFile:function(e){t("median://share/downloadFile",e)},downloadImage:function(e){t("median://share/downloadImage",e)}},sidebar:{setItems:function(e){t("median://sidebar/setItems",e)},getItems:function(e){return i("median://sidebar/getItems",e)}},statusbar:{set:function(e){t("median://statusbar/set",e)},matchBodyBackgroundColor:function(e){t("median://statusbar/matchBodyBackgroundColor",e)}},tabNavigation:{selectTab:function(e){t("median://tabs/select/"+e)},deselect:function(){t("median://tabs/deselect")},setTabs:function(e){t("median://tabs/setTabs",{tabs:e})}},webview:{clearCache:function(){t("median://webview/clearCache")},clearCookies:function(){t("median://webview/clearCookies")},reload:function(){t("median://webview/reload")}},window:{open:function(e,n="blank"){t("median://window/open",{url:e,mode:n})},close:function(){t("median://window/close")}}},d={window:{open:function(e,n="blank"){t("median://window/open",{url:e,mode:n})},setWindowOpenHideNavbar:function(e){t("median://window/setWindowOpenHideNavbar",{windowOpenHideNavbar:e})}},geoLocation:{requestLocation:function(){t("median://geolocationShim/requestLocation")},startWatchingLocation:function(){t("median://geolocationShim/startWatchingLocation")},stopWatchingLocation:function(){t("median://geolocationShim/stopWatchingLocation")}},attconsent:{request:function(e){return i("median://ios/attconsent/request",e)},status:function(e){return i("median://ios/attconsent/status",e)}},backgroundAudio:{start:function(){t("median://backgroundAudio/start")},end:function(){t("median://backgroundAudio/end")}},contextualNavToolbar:{set:function(e){t("median://ios/contextualNavToolbar/set",e)}}},l={initialize:function(e){t("median://adjust/initialize",e)},trackEvent:function(e){t("median://adjust/trackEvent",{token:e.token,revenue:e.revenue,currency:e.currency})},attributionInfo:function(){return i("median://adjust/attributionInfo")},updateSkanConversionValue:function(e){return i("median://adjust/updateSkanConversionValue",e)}},m={showInterstitialIfReady:function(){t("median://admob/showInterstitialIfReady")},showInterstitialOnNextPageLoadIfReady:function(){t("median://admob/showInterstitialOnNextPageLoadIfReady")},banner:{enable:function(){t("median://admob/banner/enable")},disable:function(){t("median://admob/banner/disable")}},request:{tracking:function(e){return i("median://admob/request/tracking",e)}}},f={getAgeSignals:function(e,i,a){const o={...e};i&&(o.successCallback=n(i)),a&&(o.errorCallback=n(a)),t("median://ageSafety/getAgeSignals",o)},requireMinimumAge:function(e,i,a){const o={age:e};i&&(o.successCallback=n(i)),a&&(o.errorCallback=n(a)),t("median://ageSafety/requireMinimumAge",o)}},g={prompt:function(e){if(e)return i("median://appReview/prompt",e);t("median://appReview/prompt")}},p={logEvent:function(e,n){return i("median://appsflyer/logEvent",{eventName:e,eventValues:n})},setCustomerUserId:function(e){return i("median://appsflyer/setCustomerUserId",{userId:e})},conversionData:c("_median_appsflyer_cd"),deeplinkResult:c("_median_appsflyer_deeplink_result"),sdkStart:c("_median_appsflyer_sdk_start")},b={status:function(e){return i("median://auth/status",e)},save:function(e){return"string"!=typeof e.secret&&(e.secret=JSON.stringify(e.secret)),i("median://auth/save",e)},get:function(e){return i("median://auth/get",e)},delete:function(e){return i("median://auth/delete",e)}},v={login:function(e){return i("median://auth0/login",e)},logout:function(e){return i("median://auth0/logout",e)},status:function(e){return i("median://auth0/status",e)},profile:function(e){return i("median://auth0/profile",e)},getCredentials:function(e){return i("median://auth0/getCredentials",e)},renew:function(e){return i("median://auth0/renew",{refreshToken:e})}},h={set:function(e){t("median://autorefresh/set",e)}},y={start:function(e){t("median://backgroundLocation/start",e,!0)},stop:function(){t("median://backgroundLocation/stop")}},k={playTrack:function(e){return"number"==typeof e&&(e={time:e}),i("median://backgroundMedia/playTrack",{...e})},streamPlaylist:function(e){return i("median://backgroundMedia/streamPlaylist",{...e})},pause:function(){t("median://backgroundMedia/pause")},stop:function(){t("median://backgroundMedia/stop")},play:function(){t("median://backgroundMedia/play")},resume:function(){t("median://backgroundMedia/resume")},getPlayerStatus:function(e){return i("median://backgroundMedia/getPlayerStatus",e)}},w={scan:function(e){return i("median://barcode/scan",e)},setPrompt:function(e){return t("median://barcode/setPrompt",{prompt:e})}},S={scan:function(e){t("median://beacon/scan",e)}},I={getFirstParams:function(e){return i("median://branch/getFirstParams",e)},getLatestParams:function(e){return i("median://branch/getLatestParams",e)},isInitialized:function(e){return i("median://branch/isInitialized",e)},initialized:c("_median_branch_initialized")},C={changeUser:function(e){return i("median://braze/changeUser",e,!0)},notificationEnabled:function(e){return i("median://braze/notificationEnabled",e,!0)},promptNotification:function(e){return i("median://braze/promptNotification",e,!0)},logCustomEvent:function(e,n){t("median://braze/logCustomEvent",{eventName:e,data:n})}},_={download:function(e){t("gonative://calendar/download",e)}},A={scanCard:function(e){return i("median://card.io/scanCard",e)}},P={getAll:function(e){return i("median://contacts/getAll",e)},getPermissionStatus:function(e){return i("median://contacts/getPermissionStatus",e)},pickContact:function(e){return i("median://contacts/pickContact",e)}},L={setContact:function(e){return i("median://cordial/setContact",e)},unsetContact:function(e){return i("median://cordial/unsetContact",e)},permissionStatus:function(e){return i("median://cordial/permissionStatus",e,!0)},requestPermission:function(e){return i("median://cordial/requestPermission",e,!0)}},T={scanPage:function(e){if(e?.callback)return i("median://documentScanner/scanPage",e);t("median://documentScanner/scanPage",e)},init:function(e){t("median://documentScanner/scanPage",e)}},N={init:function(e){return i("median://downloads/init",e)},downloadFile:function(e){t("median://downloads/downloadFile",e)},showUI:function(){t("median://downloads/showUI")}},E={scan:function(e){return i("median://esmiley/scan",{timeout:e})},connect:function(e){return i("median://esmiley/connect",{deviceId:e})},disconnect:function(){t("median://esmiley/disconnect")},send:function(e){return i("median://esmiley/send",{object:e})}},U={events:{send:function(e){t("median://facebook/events/send",e)},sendPurchase:function(e){t("median://facebook/events/sendPurchase",e)}},setAutoLogging:function(e){t("median://facebook/setAutoLogging",{enabled:e})}};var D;!function(e){e.ANALYTICS_STORAGE="analyticsStorage",e.AD_STORAGE="adStorage",e.AD_USER_DATA="adUserData",e.AD_PERSONALIZATION="adPersonalization"}(D||(D={}));const M={event:{collection:function(e){t("median://firebaseAnalytics/event/collection?enabled="+e)},setUser:function(e){t("median://firebaseAnalytics/event/setUser",e)},setUserProperty:function(e){t("median://firebaseAnalytics/event/setUserProperty",e)},defaultEventParameters:function(e){t("median://firebaseAnalytics/event/defaultEventParameters",e)},logEvent:function(e){t("median://firebaseAnalytics/event/logEvent",e)},logScreen:function(e){t("median://firebaseAnalytics/event/logScreen",e)},viewItem:function(e){t("median://firebaseAnalytics/event/viewItem",e)},addToWishlist:function(e){t("median://firebaseAnalytics/event/addToWishlist",e)},addToCart:function(e){t("median://firebaseAnalytics/event/addToCart",e)},removeFromCart:function(e){t("median://firebaseAnalytics/event/removeFromCart",e)}},setConsent:function(e){t("median://firebaseAnalytics/setConsent",e)}},x={enable:function(e){t("gonative://firebaseCrashlytics/enable",{enable:e})},webErrorLogsEnabled:function(e){t("gonative://firebaseCrashlytics/enableWebErrorLogs",{enable:e})},toastErrorLogsEnabled:function(e){t("gonative://firebaseCrashlytics/enableToastErrorLogs",{enable:e})},setUserId:function(e){t("gonative://firebaseCrashlytics/setUserId",{userId:e})},unsetUserId:function(){t("gonative://firebaseCrashlytics/unsetUserId")}},F={permissions:{request:function(){return i("median://grow/permissions/request")},getStatus:async function(){return i("median://grow/permissions/getStatus")}},user:{setIdentifier:function(e){return i("median://grow/user/setIdentifier",{userId:e})},getIdentifier:async function(){return(await i("median://grow/user/getIdentifier")).userId}},device:{getIdentifier:async function(){return(await i("median://grow/device/getIdentifier")).deviceId}},analytics:{getState:function(){return i("median://grow/analytics/getState")},setState:function(e){return i("median://grow/analytics/setState",{enabled:e})}},events:{log:function(e,n){return i("median://grow/events/log",{eventName:e,parameters:n})},logLocation:function(e){return i("median://grow/events/logLocation",{location:e})}},attributes:{set:function(e,n){return i("median://grow/attributes/set",{key:e,value:n})},remove:function(e){return i("median://grow/attributes/remove",{key:e})}},privacy:{collectData:function(){return i("median://grow/privacy/collectData")},eraseData:function(){return i("median://grow/privacy/eraseData")},removeAccount:function(){return i("median://grow/privacy/removeAccount")},setTrackingAllowed:function(e){return i("median://grow/privacy/setTrackingAllowed",{allowed:e})}},campaigns:{pause:function(){return i("median://grow/campaigns/pause")},resume:function(){return i("median://grow/campaigns/resume")}}},q={trigger:function(e){t("median://haptics/trigger",e)}},R={requestPermissions:function(e){return i("median://healthBridge/requestPermissions",{dataTypes:e})},getData:function(e){return i("median://healthBridge/getData",e)}},O={purchase:function(e){const n=e.productID;return e.productID=null,i("median://purchase/"+n,e)},purchases:function(e){return i("median://iap/purchases",e)},manageSubscription:function(e){t("median://iap/manageSubscription",e)},manageAllSubscriptions:function(){t("median://iap/manageAllSubscriptions")},restorePurchases:function(){t("median://iap/restorePurchases")},info:function(){return i("median://iap/info")},refresh:function(){t("median://iap/refresh")},infoReady:c("_median_info_ready"),purchaseResult:c("_median_iap_purchases")};var B;!function(e){e.ACCEPTED_TRIGGER="acceptedTrigger",e.NOTIFICATION_CLICK="notificationClick",e.CONVERSION="conversion"}(B||(B={}));const j={microSegments:{setInteger:function(e,n){t("median://intentedge/microSegments/setInteger",{segmentName:e,value:n})},setFloat:function(e,n){t("median://intentedge/microSegments/setFloat",{segmentName:e,value:n})},setString:function(e,n){t("median://intentedge/microSegments/setString",{segmentName:e,value:n})},setBoolean:function(e,n){t("median://intentedge/microSegments/setBoolean",{segmentName:e,value:n})},getInteger:function(e){return i("median://intentedge/microSegments/getInteger",{segmentName:e})},getFloat:function(e){return i("median://intentedge/microSegments/getFloat",{segmentName:e})},getString:function(e){return i("median://intentedge/microSegments/getString",{segmentName:e})},getBoolean:function(e){return i("median://intentedge/microSegments/getBoolean",{segmentName:e})}},pageTracker:{enterPage:function(e){t("median://intentedge/pageTracker/enterPage",{pageName:e})}},onboarding:{start:function(){t("median://intentedge/onboarding/start")},complete:function(){t("median://intentedge/onboarding/complete")}},events:{fireMicromoment:function(e,n){t("median://intentedge/events/fireMicromoment",{eventName:e,parameters:n})},sendUserInteraction:function(e,n){t("median://intentedge/events/sendUserInteraction",{campaignId:e,interactionType:n})}},campaigns:{setCampaignTriggerHandler:function(e){t("median://intentedge/campaigns/setCampaignTriggerHandler",{callback:e},!0)},setCampaignClickHandler:function(e){t("median://intentedge/campaigns/setCampaignClickHandler",{callback:e},!0)}},dataEnrichment:{exportData:function(e){return i("median://intentedge/dataEnrichment/exportData",{requestedMetrics:e})}},start:function(){t("median://intentedge/start")},stop:function(e){t("median://intentedge/stop",{purge:e})},launchDebugScreen:function(){t("median://intentedge/launchDebugScreen")},exportLogs:async function(){const e=await i("median://intentedge/exportLogs");if(e.base64){const n=await async function(e,n){const t=atob(e),i=new Array(t.length);for(let e=0;e<t.length;e++)i[e]=t.charCodeAt(e);const a=new Uint8Array(i);return new Blob([a],{type:n})}(e.base64,e.mimeType);return delete e.base64,{...e,logBlob:n}}return e}};const z={registerPush:function(e){return i("median://intercom/registerPush",e)},updateUser:function(e){t("median://intercom/updateUser",e)},logEvent:function(e){t("median://intercom/logEvent",e)},logout:function(){t("median://intercom/logout")},presentCarousel:function(e){t("median://intercom/presentCarousel",e)},permissionStatus:function(e){return i("median://intercom/permissionStatus",e,!0)},requestPermission:function(e){return i("median://intercom/registerPush",e,!0)}},W={initialize:function(e){return i("gonative://iterable/initialize",e)},setEmail:function(e){return i("gonative://iterable/setEmail",e)},setUserId:function(e){return i("gonative://iterable/setUserId",e)},registerPush:function(e){return i("gonative://iterable/registerPush",e)},requestPermission:function(e){return i("gonative://iterable/requestPermission",e)},permissionStatus:function(e){return i("gonative://iterable/permissionStatus",e)}},H={play:function(e){t("median://kaltura/play",e)}},G={set:function(e){return i("gonative://keychainSwift/set",e)},get:function(e){return i("gonative://keychainSwift/get",e)},delete:function(e){return i("gonative://keychainSwift/delete",e)},deleteAll:function(e){return i("gonative://keychainSwift/deleteAll",e)}},J={promptNotification:function(){return i("median://klaviyo/promptNotification")},notificationEnabled:function(){return i("median://klaviyo/notificationEnabled")},setProfile:function(e){return i("median://klaviyo/setProfile",e)},getProfile:function(){return i("median://klaviyo/getProfile")},resetProfile:function(){return i("median://klaviyo/resetProfile")}},V={nonpersistent:{set:function(e){t("median://localpreferences/nonpersistent/set",e)},get:function(e){return i("median://localpreferences/nonpersistent/get",e)},delete:function(e){t("median://localpreferences/nonpersistent/delete",e)},deleteAll:function(e){t("median://localpreferences/nonpersistent/deleteAll",e)}},persistent:{set:function(e){t("median://localpreferences/persistent/set",e)},get:function(e){return i("median://localpreferences/persistent/get",e)},delete:function(e){t("median://localpreferences/persistent/delete",e)},deleteAll:function(e){t("median://localpreferences/persistent/deleteAll",e)}},filesystem:{save:function(e){t("median://localpreferences/filesystem/save",e)},read:function(e){return i("median://localpreferences/filesystem/read",e)},delete:function(e){t("median://localpreferences/filesystem/delete",e)}},keychain:{set:function(e){return i("median://localpreferences/keychain/set",e)},get:function(e){return i("median://localpreferences/keychain/get",e)},delete:function(e){return i("median://localpreferences/keychain/delete",e)},deleteAll:function(e){return i("median://localpreferences/keychain/deleteAll",e)}}},K={initialize:function(e){return i("median://masterlock/initialize",e)},scan:function(e){const i={};e?.onScanStart&&(i.onScanStart=n(e?.onScanStart,!0)),e?.onScanStop&&(i.onScanStop=n(e?.onScanStop,!0)),e?.onDeviceDiscover&&(i.onDeviceDiscover=n(e?.onDeviceDiscover,!0)),t("median://masterlock/scan",i)},unlock:function(e){return i("median://masterlock/unlock",e)},permissionGranted:function(){return i("median://masterlock/permissionGranted")},updateFirmware:function(e){return i("median://masterlock/updateFirmware",e)},firmwareUpdate:{addListener:async function(e){const t=n(e,!0),a=await i("median://masterlock/firmwareUpdate/addListener",{listenerIdCallback:t});if(a&&a.listenerId)return a.listenerId;throw"Invalid listenerId response"},removeListener:function(e){t("median://masterlock/firmwareUpdate/removeListener",{listenerId:e})}},lockReset:function(e){return i("median://masterlock/lockReset",e)},getDeadboltHandedness:function(e){return i("median://masterlock/getDeadboltHandedness",e)},setDeadboltHandedness:function(e){return i("median://masterlock/setDeadboltHandedness",e)},relock:function(e){return i("median://masterlock/relock",e)}},Q={launch:function(e){return i("median://modal/launch",e)}},Y={notificationEnabled:function(e){return i("median://moengage/notificationEnabled",e,!0)},promptNotification:function(e){return i("median://moengage/promptNotification",e,!0)},setUniqueID:function(e){return i("median://moengage/setUniqueID",{uniqueId:e},!0)},resetUser:function(){return i("median://moengage/resetUser")},setAlias:function(e){return i("median://moengage/setAlias",{alias:e},!0)},trackEvent:function(e,n){return i("median://moengage/trackEvent",{eventName:e,eventData:n},!0)},launchInbox:function(){return i("median://moengage/launchInbox")}},Z={login:function(e){return i("median://moxo/login",e,!0)},registerNotifications:function(e){return i("median://moxo/registerNotifications",e,!0)},requestPermission:function(e){return i("median://moxo/registerNotifications",e,!0)},permissionStatus:function(e){return i("median://moxo/permissionStatus",e,!0)},isLinked:function(e){return i("median://moxo/isLinked",e,!0)},unlink:function(e){return i("median://moxo/unlink",e,!0)},localUnlink:function(e){return i("median://moxo/localUnlink",e,!0)},showDashboard:function(){t("median://moxo/showDashboard")},openLiveChatWithCompletion:function(){t("median://moxo/openLiveChatWithCompletion")},openLiveChatWithChannelId:function(e){t("median://moxo/openLiveChatWithChannelId",e)},openChat:function(e){t("median://moxo/openChat",e)},getUnreadMessageCount:function(e){return i("median://moxo/getUnreadMessageCount",e)}},X={areNotificationsEnabled:function(e){return i("median://msdynamics/areNotificationsEnabled",e,!0)},promptNotificationPermission:function(e){return i("median://msdynamics/promptNotificationPermission",e,!0)},registrationInfo:function(e){return i("median://msdynamics/registrationInfo",e,!0)},registerDevice:function(e){return i("median://msdynamics/registerDevice",e,!0)}},$={status:function(e){return i("gonative://nfc/status",e)},readTag:function(e){return i("gonative://nfc/readTag",e)}},ee={run:{onesignalInfo:function(){t("median://onesignal/info",{callback:"median_onesignal_info"})}},onesignalInfo:function(e){return i("median://onesignal/info",e,!0)},info:function(e){return i("median://onesignal/info",e,!0)},register:function(e){return i("median://onesignal/register",e,!0)},userPrivacyConsent:{grant:function(){t("median://onesignal/userPrivacyConsent/grant")},revoke:function(){t("median://onesignal/userPrivacyConsent/revoke")}},tags:{getTags:function(e){return i("median://onesignal/tags/get",e)},setTags:function(e){return i("median://onesignal/tags/set",e)},deleteTags:function(e){return i("median://onesignal/tags/delete",e)}},showTagsUI:function(){t("median://onesignal/showTagsUI")},promptLocation:function(){t("median://onesignal/promptLocation")},iam:{addTrigger:function(e){t("median://onesignal/iam/addTrigger",e)},addTriggers:function(e){t("median://onesignal/iam/addTriggers",e)},removeTriggerForKey:function(e){t("median://onesignal/iam/removeTriggerForKey",{key:e})},getTriggerValueForKey:function(e){t("median://onesignal/iam/getTriggerValueForKey",{key:e})},pauseInAppMessages:function(){t("median://onesignal/iam/pauseInAppMessages?pause=true")},resumeInAppMessages:function(){t("median://onesignal/iam/pauseInAppMessages?pause=false")},setInAppMessageClickHandler:function(e){t("median://onesignal/iam/setInAppMessageClickHandler",{handler:n(e,!0)})}},externalUserId:{set:function(e){return i("median://onesignal/externalUserId/set",e)},remove:function(e){return i("median://onesignal/externalUserId/remove",e)}},enableForegroundNotifications:function(e){t("median://onesignal/enableForegroundNotifications",{enabled:e})},badge:{set:function(e){t("median://onesignal/badge/set",{count:e})}},login:function(e,n={}){return i("median://onesignal/login",{externalId:e,...n})},logout:function(e){return i("median://onesignal/logout",e)},pushOpened:c("_median_onesignal_push_opened")},ne={video:{join:function(e){return i("median://opentok/video/join",e)}}},te={requestPhoneCallMgmt:function(e){if(e?.callback)return i("median://permissions/requestPhoneCallMgmt",e);t("median://permissions/requestPhoneCallMgmt",e)},status:function(e){return i("median://permissions/status",{permissions:e})}},ie={linkBank:function(e){return i("median://plaid/linkBank",e)},verifyIdentity:function(e){return i("median://plaid/verifyIdentity",e)}},ae={configure:function(e){return i("gonative://revenueCat/configure",e)},getOfferings:function(e){return i("gonative://revenueCat/getOfferings",e)},purchase:function(e){return i("gonative://revenueCat/purchase",e)},restorePurchases:function(e){return i("gonative://revenueCat/restorePurchases",e)}},oe={shareResult:c("_median_share_to_app")},re={facebook:{login:function(e){if(e?.callback)return i("median://socialLogin/facebook/login",e);t("median://socialLogin/facebook/login",e)},logout:function(e){if(e?.callback)return i("median://socialLogin/facebook/logout",e);t("median://socialLogin/facebook/logout",e)}},google:{login:function(e){if(e?.callback)return i("median://socialLogin/google/login",e);t("median://socialLogin/google/login",e)},logout:function(e){if(e?.callback)return i("median://socialLogin/google/logout",e);t("median://socialLogin/google/logout",e)}},apple:{login:function(e){if(e?.callback)return i("median://socialLogin/apple/login",e);t("median://socialLogin/apple/login",e)}}};function se(e,n){function t(e){return new Promise(((n,t)=>{const i=new FileReader;i.onload=()=>n(i.result),i.onerror=()=>t(i.error),i.readAsDataURL(e)}))}const i=[t(e)];return n&&"object"==typeof n&&n.attachment instanceof Blob&&i.push(t(n.attachment)),Promise.all(i)}const ce={snapchat:{isInstalled:function(e){return i("median://socialShare/snapchat/isInstalled",e)},share:function(e,n){se(e,n).then((([e,i])=>{let a={dataUrl:e};n&&"object"==typeof n&&(a={...n,dataUrl:e,attachment:i}),t("median://socialShare/snapchat/share",a)}))}},instagram:{isInstalled:function(e){return i("median://socialShare/instagram/isInstalled",e)},shareToFeed:function(e){se(e).then((([e])=>{t("median://socialShare/instagram/shareToFeed",{dataUrl:e})}))},shareToStory:function(e,n){se(e,n).then((([e,i])=>{let a={dataUrl:e};n&&"object"==typeof n&&(a={...n,dataUrl:e,attachment:i}),t("median://socialShare/instagram/shareToStory",a)}))}}},ue={video:{join:function(e){return i("median://twilio/video/join",e)}}},de={shareScreen:function(e){t("median://webScreenshot/shareScreen",e)},shareElement:function(e,n){window.html2canvas&&window.html2canvas(e,{useCORS:!0,scale:1.25}).then((e=>{t("median://webScreenshot/shareElement",{dataUrl:e.toDataURL(),...n})}))},captureScreen:async function(){const e=await i("median://webScreenshot/captureScreen"),n=atob(e.data),t=n.length,a=new Uint8Array(t);for(let e=0;e<t;e++)a[e]=n.charCodeAt(e);return new Blob([a],{type:"image/png"})},captureElement:async function(e){if(!window.html2canvas)return;const n=await window.html2canvas(e,{useCORS:!0,scale:1.25});return new Promise(((e,t)=>{n.toBlob((n=>{n?e(n):t(new Error("Failed to convert to blob."))}))}))}},le={video:{join:function(e){return i("median://zoom/join",e)}}};var me;return function(e){e.ios=d,e.android=a,e.camera=u.camera,e.clipboard=u.clipboard,e.config=u.config,e.connectivity=u.connectivity,e.deviceInfo=u.deviceInfo,e.internalExternal=u.internalExternal,e.jsNavigation=u.jsNavigation,e.keyboard=u.keyboard,e.nativebridge=u.nativebridge,e.navigationLevels=u.navigationLevels,e.navigationMaxWindows=u.navigationMaxWindows,e.navigationTitles=u.navigationTitles,e.open=u.open,e.registration=u.registration,e.run=u.run,e.screen=u.screen,e.share=u.share,e.sidebar=u.sidebar,e.statusbar=u.statusbar,e.tabNavigation=u.tabNavigation,e.webview=u.webview,e.window=u.window,e.adjust=l,e.admob=m,e.ageSafety=f,e.appreview=g,e.appsflyer=p,e.auth=b,e.auth0=v,e.autorefresh=h,e.backgroundLocation=y,e.backgroundMedia=k,e.barcode=w,e.beacon=S,e.braze=C,e.branch=I,e.calendar=_,e.card_io=A,e.contacts=P,e.cordial=L,e.documentScanner=T,e.downloads=N,e.esmiley=E,e.facebook=U,e.firebaseAnalytics=M,e.firebaseCrashlytics=x,e.grow=F,e.haptics=q,e.healthBridge=R,e.iap=O,e.intentedge=j,e.intercom=z,e.iterable=W,e.kaltura=H,e.keychainSwift=G,e.klaviyo=J,e.localpreferences=V,e.masterlock=K,e.modal=Q,e.moengage=Y,e.moxo=Z,e.msdynamics=X,e.nfc=$,e.onesignal=ee,e.opentok=ne,e.permissions=te,e.plaid=ie,e.revenueCat=ae,e.shareIntoApp=oe,e.socialLogin=re,e.socialShare=ce,e.storage={app:V.nonpersistent,cloud:V.persistent,filesystem:V.filesystem},e.twilio=ue,e.webScreenshot=de,e.zoom=le,e.isNativeApp=()=>{const e=globalThis.window;return!!e?.webkit?.messageHandlers?.JSBridge||!!e?.JSBridge},e.getPlatform=async()=>{if(!e.isNativeApp())return"web";const n=await u.deviceInfo();return n?.platform},e.onReady=n=>{if("function"!=typeof n)return;let t=n,i=0;const a=setInterval((()=>{e.isNativeApp()&&t&&(t(),t=null),i++,(i>=20||!t)&&clearInterval(a)}),500)},e.appResumed=c("_median_app_resumed"),e.deviceShake=c("_median_device_shake"),e.appsFlyerConversionData=c("_median_appsflyer_cd"),e.appsFlyerDeeplinkResult=c("_median_appsflyer_deeplink_result"),e.appsFlyerSdkStart=c("_median_appsflyer_sdk_start"),e.branchInitialized=c("_median_branch_initialized"),e.iapInfoReady=c("_median_info_ready"),e.iapPurchases=c("_median_iap_purchases"),e.oneSignalPushOpened=c("_median_onesignal_push_opened"),e.shareToApp=c("_median_share_to_app")}(me||(me={})),me}();
|
|
1
|
+
var Median=function(){"use strict";function e(e="_median_temp_"){return e+Math.random().toString(36).slice(2)}function n(n,t){if("string"==typeof n)return n;const i=e();return window[i]=function(...e){n(...e),t||delete window[i]},i}function t(e,t,i){let a=e;t&&(a={},t.callback&&"function"==typeof t.callback&&(t.callback=n(t.callback,i)),t.callbackFunction&&"function"==typeof t.callbackFunction&&(t.callbackFunction=n(t.callbackFunction,i)),t.statuscallback&&"function"==typeof t.statuscallback&&(t.statuscallback=n(t.statuscallback,i)),a.medianCommand=e,a.data=t),window?.JSBridge?.postMessage&&window.JSBridge.postMessage("string"==typeof a?a:JSON.stringify(a)),window?.webkit?.messageHandlers?.JSBridge?.postMessage&&window.webkit.messageHandlers.JSBridge.postMessage(a)}function i(n,i,a){if(i?.callback||i?.callbackFunction||i?.statuscallback)return t(n,i,a);{const a=e();return i||(i={}),i.callback=a,new Promise((function(e,o){window[a]=function(n){n&&"object"==typeof n&&"error"in n?o(n):e(n),delete window[a]},t(n,i)}))}}const a={geoLocation:{promptLocationServices:function(){t("median://geoLocation/promptLocationServices")}},screen:{fullscreen:function(){t("median://screen/fullscreen")},normal:function(){t("median://screen/normal")},keepScreenOn:function(){t("median://screen/keepScreenOn")},keepScreenNormal:function(){t("median://screen/keepScreenNormal")}},audio:{requestFocus:function(e){t("median://audio/requestFocus",{enabled:e})}}},o={};function r(e,n){window[e]=function(...e){Object.keys(n).forEach((t=>{const i=n[t];"function"==typeof i&&i(...e)}))}}function s(e,n){return t(n?"median://events/subscribe":"median://events/unsubscribe",{eventName:e})}const c=n=>({addListener:t=>((n,t)=>{const i=e(n);return"function"!=typeof t||(o[n]=o[n]||{},o[n][i]=t,r(n,o[n]),s(n,!0)),i})(n,t),removeListener:e=>((e,n)=>{e&&n&&(o[e]=o[e]||{},delete o[e][n],r(e,o[e]),0===Object.keys(o[e]).length&&s(e,!1))})(n,e)}),u={camera:{setCaptureQuality:function(e){t("median://camera/setCaptureQuality",{quality:e})},saveToGallery:function(e){t("median://camera/saveToGallery",{saveToGallery:e})}},clipboard:{set:function(e){t("median://clipboard/set",e)},get:function(e){return i("median://clipboard/get",e)}},config:{set:function(e){t("median://config/set",e)}},connectivity:{get:function(e){return i("median://connectivity/get",e)},subscribe:function(e){return i("median://connectivity/subscribe",e,!0)},unsubscribe:function(){t("median://connectivity/unsubscribe")}},contextMenu:{setEnabled:function(e){t("median://contextMenu/setEnabled",{enabled:e})},setLinkActions:function(e){t("median://contextMenu/setLinkActions",{actions:e})}},deviceInfo:function(e){return i("median://run/median_device_info",e,!0)},internalExternal:{set:function(e){t("median://internalExternal/set",e)}},jsNavigation:{url:c("_median_url_changed")},keyboard:{info:function(e){return i("median://keyboard/info",e)},listen:function(e){t("median://keyboard/listen",{callback:e})},showAccessoryView:function(e){t("median://keyboard/showAccessoryView",{visible:e})}},nativebridge:{custom:function(e){return i("median://nativebridge/custom",e)},multi:function(e){t("median://nativebridge/multi",e)}},navigationLevels:{set:function(e){t("median://navigationLevels/set",{persist:e.persist,data:e})},setCurrent:function(e){t("median://navigationLevels/set",e)},revert:function(){t("median://navigationLevels/set?persist=true")}},navigationMaxWindows:{set:function(e,n){t("median://navigationMaxWindows/set",{data:e,autoClose:n,persist:!0})},setCurrent:function(e,n){t("median://navigationMaxWindows/set",{data:e,autoClose:n})}},navigationTitles:{set:function(e){t("median://navigationTitles/set",{persist:e.persist,data:e})},setCurrent:function(e){t("median://navigationTitles/setCurrent",e)},revert:function(){t("median://navigationTitles/set?persist=true")}},open:{appSettings:function(){t("median://open/app-settings")}},registration:{send:function(e){t("median://registration/send",{customData:e})}},run:{deviceInfo:function(){t("median://run/median_device_info")}},screen:{setBrightness:function(e){t("median://screen/setBrightness",["number","string"].includes(typeof e)?{brightness:e}:e)},setMode:function(e){t("median://screen/setMode",e)},keepScreenOn:function(e){t("median://screen/keepScreenOn",e)},keepScreenNormal:function(){t("median://screen/keepScreenNormal")}},share:{sharePage:function(e){t("median://share/sharePage",e)},downloadFile:function(e){t("median://share/downloadFile",e)},downloadImage:function(e){t("median://share/downloadImage",e)}},sidebar:{setItems:function(e){t("median://sidebar/setItems",e)},getItems:function(e){return i("median://sidebar/getItems",e)}},statusbar:{set:function(e){t("median://statusbar/set",e)},matchBodyBackgroundColor:function(e){t("median://statusbar/matchBodyBackgroundColor",e)}},tabNavigation:{selectTab:function(e){t("median://tabs/select/"+e)},deselect:function(){t("median://tabs/deselect")},setTabs:function(e){t("median://tabs/setTabs",{tabs:e})}},webview:{clearCache:function(){t("median://webview/clearCache")},clearCookies:function(){t("median://webview/clearCookies")},reload:function(){t("median://webview/reload")}},window:{open:function(e,n="blank"){t("median://window/open",{url:e,mode:n})},close:function(){t("median://window/close")}}},d={window:{open:function(e,n="blank"){t("median://window/open",{url:e,mode:n})},setWindowOpenHideNavbar:function(e){t("median://window/setWindowOpenHideNavbar",{windowOpenHideNavbar:e})}},geoLocation:{requestLocation:function(){t("median://geolocationShim/requestLocation")},startWatchingLocation:function(){t("median://geolocationShim/startWatchingLocation")},stopWatchingLocation:function(){t("median://geolocationShim/stopWatchingLocation")}},attconsent:{request:function(e){return i("median://ios/attconsent/request",e)},status:function(e){return i("median://ios/attconsent/status",e)}},backgroundAudio:{start:function(){t("median://backgroundAudio/start")},end:function(){t("median://backgroundAudio/end")}},contextualNavToolbar:{set:function(e){t("median://ios/contextualNavToolbar/set",e)}}},l={initialize:function(e){t("median://adjust/initialize",e)},trackEvent:function(e){t("median://adjust/trackEvent",{token:e.token,revenue:e.revenue,currency:e.currency})},attributionInfo:function(){return i("median://adjust/attributionInfo")},updateSkanConversionValue:function(e){return i("median://adjust/updateSkanConversionValue",e)}},m={showInterstitialIfReady:function(){t("median://admob/showInterstitialIfReady")},showInterstitialOnNextPageLoadIfReady:function(){t("median://admob/showInterstitialOnNextPageLoadIfReady")},banner:{enable:function(){t("median://admob/banner/enable")},disable:function(){t("median://admob/banner/disable")}},request:{tracking:function(e){return i("median://admob/request/tracking",e)}}},f={getAgeSignals:function(e,i,a){const o={...e};i&&(o.successCallback=n(i)),a&&(o.errorCallback=n(a)),t("median://ageSafety/getAgeSignals",o)},requireMinimumAge:function(e,i,a){const o={age:e};i&&(o.successCallback=n(i)),a&&(o.errorCallback=n(a)),t("median://ageSafety/requireMinimumAge",o)}},g={prompt:function(e){if(e)return i("median://appReview/prompt",e);t("median://appReview/prompt")}},p={logEvent:function(e,n){return i("median://appsflyer/logEvent",{eventName:e,eventValues:n})},setCustomerUserId:function(e){return i("median://appsflyer/setCustomerUserId",{userId:e})},conversionData:c("_median_appsflyer_cd"),deeplinkResult:c("_median_appsflyer_deeplink_result"),sdkStart:c("_median_appsflyer_sdk_start")},b={status:function(e){return i("median://auth/status",e)},save:function(e){return"string"!=typeof e.secret&&(e.secret=JSON.stringify(e.secret)),i("median://auth/save",e)},get:function(e){return i("median://auth/get",e)},delete:function(e){return i("median://auth/delete",e)}},v={login:function(e){return i("median://auth0/login",e)},logout:function(e){return i("median://auth0/logout",e)},status:function(e){return i("median://auth0/status",e)},profile:function(e){return i("median://auth0/profile",e)},getCredentials:function(e){return i("median://auth0/getCredentials",e)},renew:function(e){return i("median://auth0/renew",{refreshToken:e})}},h={set:function(e){t("median://autorefresh/set",e)}},y={start:function(e){t("median://backgroundLocation/start",e,!0)},stop:function(){t("median://backgroundLocation/stop")}},k={playTrack:function(e){return"number"==typeof e&&(e={time:e}),i("median://backgroundMedia/playTrack",{...e})},streamPlaylist:function(e){return i("median://backgroundMedia/streamPlaylist",{...e})},pause:function(){t("median://backgroundMedia/pause")},stop:function(){t("median://backgroundMedia/stop")},play:function(){t("median://backgroundMedia/play")},resume:function(){t("median://backgroundMedia/resume")},getPlayerStatus:function(e){return i("median://backgroundMedia/getPlayerStatus",e)}},w={scan:function(e){return i("median://barcode/scan",e)},setPrompt:function(e){return t("median://barcode/setPrompt",{prompt:e})}},S={scan:function(e){t("median://beacon/scan",e)}},I={getFirstParams:function(e){return i("median://branch/getFirstParams",e)},getLatestParams:function(e){return i("median://branch/getLatestParams",e)},isInitialized:function(e){return i("median://branch/isInitialized",e)},initialized:c("_median_branch_initialized")},C={changeUser:function(e){return i("median://braze/changeUser",e,!0)},notificationEnabled:function(e){return i("median://braze/notificationEnabled",e,!0)},promptNotification:function(e){return i("median://braze/promptNotification",e,!0)},logCustomEvent:function(e,n){t("median://braze/logCustomEvent",{eventName:e,data:n})}},_={download:function(e){t("gonative://calendar/download",e)}},A={scanCard:function(e){return i("median://card.io/scanCard",e)}},P={initialize:function(e){return i("median://clerk/initialize",e)},presentSignIn:function(){return i("median://clerk/presentSignIn")},signOut:function(){return i("median://clerk/signOut")},getAuthStatus:function(){return i("median://clerk/getAuthStatus")}},L={getAll:function(e){return i("median://contacts/getAll",e)},getPermissionStatus:function(e){return i("median://contacts/getPermissionStatus",e)},pickContact:function(e){return i("median://contacts/pickContact",e)}},T={setContact:function(e){return i("median://cordial/setContact",e)},unsetContact:function(e){return i("median://cordial/unsetContact",e)},permissionStatus:function(e){return i("median://cordial/permissionStatus",e,!0)},requestPermission:function(e){return i("median://cordial/requestPermission",e,!0)}},N={scanPage:function(e){if(e?.callback)return i("median://documentScanner/scanPage",e);t("median://documentScanner/scanPage",e)},init:function(e){t("median://documentScanner/scanPage",e)}},E={init:function(e){return i("median://downloads/init",e)},downloadFile:function(e){t("median://downloads/downloadFile",e)},showUI:function(){t("median://downloads/showUI")}},U={scan:function(e){return i("median://esmiley/scan",{timeout:e})},connect:function(e){return i("median://esmiley/connect",{deviceId:e})},disconnect:function(){t("median://esmiley/disconnect")},send:function(e){return i("median://esmiley/send",{object:e})}},D={events:{send:function(e){t("median://facebook/events/send",e)},sendPurchase:function(e){t("median://facebook/events/sendPurchase",e)}},setAutoLogging:function(e){t("median://facebook/setAutoLogging",{enabled:e})}};var M;!function(e){e.ANALYTICS_STORAGE="analyticsStorage",e.AD_STORAGE="adStorage",e.AD_USER_DATA="adUserData",e.AD_PERSONALIZATION="adPersonalization"}(M||(M={}));const x={event:{collection:function(e){t("median://firebaseAnalytics/event/collection?enabled="+e)},setUser:function(e){t("median://firebaseAnalytics/event/setUser",e)},setUserProperty:function(e){t("median://firebaseAnalytics/event/setUserProperty",e)},defaultEventParameters:function(e){t("median://firebaseAnalytics/event/defaultEventParameters",e)},logEvent:function(e){t("median://firebaseAnalytics/event/logEvent",e)},logScreen:function(e){t("median://firebaseAnalytics/event/logScreen",e)},viewItem:function(e){t("median://firebaseAnalytics/event/viewItem",e)},addToWishlist:function(e){t("median://firebaseAnalytics/event/addToWishlist",e)},addToCart:function(e){t("median://firebaseAnalytics/event/addToCart",e)},removeFromCart:function(e){t("median://firebaseAnalytics/event/removeFromCart",e)}},setConsent:function(e){t("median://firebaseAnalytics/setConsent",e)}},F={enable:function(e){t("gonative://firebaseCrashlytics/enable",{enable:e})},webErrorLogsEnabled:function(e){t("gonative://firebaseCrashlytics/enableWebErrorLogs",{enable:e})},toastErrorLogsEnabled:function(e){t("gonative://firebaseCrashlytics/enableToastErrorLogs",{enable:e})},setUserId:function(e){t("gonative://firebaseCrashlytics/setUserId",{userId:e})},unsetUserId:function(){t("gonative://firebaseCrashlytics/unsetUserId")}},O={permissions:{request:function(){return i("median://grow/permissions/request")},getStatus:async function(){return i("median://grow/permissions/getStatus")}},user:{setIdentifier:function(e){return i("median://grow/user/setIdentifier",{userId:e})},getIdentifier:async function(){return(await i("median://grow/user/getIdentifier")).userId}},device:{getIdentifier:async function(){return(await i("median://grow/device/getIdentifier")).deviceId}},analytics:{getState:function(){return i("median://grow/analytics/getState")},setState:function(e){return i("median://grow/analytics/setState",{enabled:e})}},events:{log:function(e,n){return i("median://grow/events/log",{eventName:e,parameters:n})},logLocation:function(e){return i("median://grow/events/logLocation",{location:e})}},attributes:{set:function(e,n){return i("median://grow/attributes/set",{key:e,value:n})},remove:function(e){return i("median://grow/attributes/remove",{key:e})}},privacy:{collectData:function(){return i("median://grow/privacy/collectData")},eraseData:function(){return i("median://grow/privacy/eraseData")},removeAccount:function(){return i("median://grow/privacy/removeAccount")},setTrackingAllowed:function(e){return i("median://grow/privacy/setTrackingAllowed",{allowed:e})}},campaigns:{pause:function(){return i("median://grow/campaigns/pause")},resume:function(){return i("median://grow/campaigns/resume")}}},q={trigger:function(e){t("median://haptics/trigger",e)}},R={requestPermissions:function(e){return i("median://healthBridge/requestPermissions",{dataTypes:e})},getData:function(e){return i("median://healthBridge/getData",e)}},B={purchase:function(e){const n=e.productID;return e.productID=null,i("median://purchase/"+n,e)},purchases:function(e){return i("median://iap/purchases",e)},manageSubscription:function(e){t("median://iap/manageSubscription",e)},manageAllSubscriptions:function(){t("median://iap/manageAllSubscriptions")},restorePurchases:function(){t("median://iap/restorePurchases")},info:function(){return i("median://iap/info")},refresh:function(){t("median://iap/refresh")},infoReady:c("_median_info_ready"),purchaseResult:c("_median_iap_purchases")};var j;!function(e){e.ACCEPTED_TRIGGER="acceptedTrigger",e.NOTIFICATION_CLICK="notificationClick",e.CONVERSION="conversion"}(j||(j={}));const z={microSegments:{setInteger:function(e,n){t("median://intentedge/microSegments/setInteger",{segmentName:e,value:n})},setFloat:function(e,n){t("median://intentedge/microSegments/setFloat",{segmentName:e,value:n})},setString:function(e,n){t("median://intentedge/microSegments/setString",{segmentName:e,value:n})},setBoolean:function(e,n){t("median://intentedge/microSegments/setBoolean",{segmentName:e,value:n})},getInteger:function(e){return i("median://intentedge/microSegments/getInteger",{segmentName:e})},getFloat:function(e){return i("median://intentedge/microSegments/getFloat",{segmentName:e})},getString:function(e){return i("median://intentedge/microSegments/getString",{segmentName:e})},getBoolean:function(e){return i("median://intentedge/microSegments/getBoolean",{segmentName:e})}},pageTracker:{enterPage:function(e){t("median://intentedge/pageTracker/enterPage",{pageName:e})}},onboarding:{start:function(){t("median://intentedge/onboarding/start")},complete:function(){t("median://intentedge/onboarding/complete")}},events:{fireMicromoment:function(e,n){t("median://intentedge/events/fireMicromoment",{eventName:e,parameters:n})},sendUserInteraction:function(e,n){t("median://intentedge/events/sendUserInteraction",{campaignId:e,interactionType:n})}},campaigns:{setCampaignTriggerHandler:function(e){t("median://intentedge/campaigns/setCampaignTriggerHandler",{callback:e},!0)},setCampaignClickHandler:function(e){t("median://intentedge/campaigns/setCampaignClickHandler",{callback:e},!0)}},dataEnrichment:{exportData:function(e){return i("median://intentedge/dataEnrichment/exportData",{requestedMetrics:e})}},start:function(){t("median://intentedge/start")},stop:function(e){t("median://intentedge/stop",{purge:e})},launchDebugScreen:function(){t("median://intentedge/launchDebugScreen")},exportLogs:async function(){const e=await i("median://intentedge/exportLogs");if(e.base64){const n=await async function(e,n){const t=atob(e),i=new Array(t.length);for(let e=0;e<t.length;e++)i[e]=t.charCodeAt(e);const a=new Uint8Array(i);return new Blob([a],{type:n})}(e.base64,e.mimeType);return delete e.base64,{...e,logBlob:n}}return e}};const W={registerPush:function(e){return i("median://intercom/registerPush",e)},updateUser:function(e){t("median://intercom/updateUser",e)},logEvent:function(e){t("median://intercom/logEvent",e)},logout:function(){t("median://intercom/logout")},presentCarousel:function(e){t("median://intercom/presentCarousel",e)},permissionStatus:function(e){return i("median://intercom/permissionStatus",e,!0)},requestPermission:function(e){return i("median://intercom/registerPush",e,!0)}},H={initialize:function(e){return i("gonative://iterable/initialize",e)},setEmail:function(e){return i("gonative://iterable/setEmail",e)},setUserId:function(e){return i("gonative://iterable/setUserId",e)},registerPush:function(e){return i("gonative://iterable/registerPush",e)},requestPermission:function(e){return i("gonative://iterable/requestPermission",e)},permissionStatus:function(e){return i("gonative://iterable/permissionStatus",e)}},G={initialize:function(e){return i("median://jwplayer/initialize",e)},play:function(e){return i("median://jwplayer/play",e)}},J={play:function(e){t("median://kaltura/play",e)}},K={set:function(e){return i("gonative://keychainSwift/set",e)},get:function(e){return i("gonative://keychainSwift/get",e)},delete:function(e){return i("gonative://keychainSwift/delete",e)},deleteAll:function(e){return i("gonative://keychainSwift/deleteAll",e)}},V={promptNotification:function(){return i("median://klaviyo/promptNotification")},notificationEnabled:function(){return i("median://klaviyo/notificationEnabled")},setProfile:function(e){return i("median://klaviyo/setProfile",e)},getProfile:function(){return i("median://klaviyo/getProfile")},resetProfile:function(){return i("median://klaviyo/resetProfile")}},Q={nonpersistent:{set:function(e){t("median://localpreferences/nonpersistent/set",e)},get:function(e){return i("median://localpreferences/nonpersistent/get",e)},delete:function(e){t("median://localpreferences/nonpersistent/delete",e)},deleteAll:function(e){t("median://localpreferences/nonpersistent/deleteAll",e)}},persistent:{set:function(e){t("median://localpreferences/persistent/set",e)},get:function(e){return i("median://localpreferences/persistent/get",e)},delete:function(e){t("median://localpreferences/persistent/delete",e)},deleteAll:function(e){t("median://localpreferences/persistent/deleteAll",e)}},filesystem:{save:function(e){t("median://localpreferences/filesystem/save",e)},read:function(e){return i("median://localpreferences/filesystem/read",e)},delete:function(e){t("median://localpreferences/filesystem/delete",e)}},keychain:{set:function(e){return i("median://localpreferences/keychain/set",e)},get:function(e){return i("median://localpreferences/keychain/get",e)},delete:function(e){return i("median://localpreferences/keychain/delete",e)},deleteAll:function(e){return i("median://localpreferences/keychain/deleteAll",e)}}},Y={initialize:function(e){return i("median://masterlock/initialize",e)},scan:function(e){const i={};e?.onScanStart&&(i.onScanStart=n(e?.onScanStart,!0)),e?.onScanStop&&(i.onScanStop=n(e?.onScanStop,!0)),e?.onDeviceDiscover&&(i.onDeviceDiscover=n(e?.onDeviceDiscover,!0)),t("median://masterlock/scan",i)},unlock:function(e){return i("median://masterlock/unlock",e)},permissionGranted:function(){return i("median://masterlock/permissionGranted")},updateFirmware:function(e){return i("median://masterlock/updateFirmware",e)},firmwareUpdate:{addListener:async function(e){const t=n(e,!0),a=await i("median://masterlock/firmwareUpdate/addListener",{listenerIdCallback:t});if(a&&a.listenerId)return a.listenerId;throw"Invalid listenerId response"},removeListener:function(e){t("median://masterlock/firmwareUpdate/removeListener",{listenerId:e})}},lockReset:function(e){return i("median://masterlock/lockReset",e)},getDeadboltHandedness:function(e){return i("median://masterlock/getDeadboltHandedness",e)},setDeadboltHandedness:function(e){return i("median://masterlock/setDeadboltHandedness",e)},relock:function(e){return i("median://masterlock/relock",e)}},Z={launch:function(e){return i("median://modal/launch",e)}},X={notificationEnabled:function(e){return i("median://moengage/notificationEnabled",e,!0)},promptNotification:function(e){return i("median://moengage/promptNotification",e,!0)},setUniqueID:function(e){return i("median://moengage/setUniqueID",{uniqueId:e},!0)},resetUser:function(){return i("median://moengage/resetUser")},setAlias:function(e){return i("median://moengage/setAlias",{alias:e},!0)},trackEvent:function(e,n){return i("median://moengage/trackEvent",{eventName:e,eventData:n},!0)},launchInbox:function(){return i("median://moengage/launchInbox")}},$={login:function(e){return i("median://moxo/login",e,!0)},registerNotifications:function(e){return i("median://moxo/registerNotifications",e,!0)},requestPermission:function(e){return i("median://moxo/registerNotifications",e,!0)},permissionStatus:function(e){return i("median://moxo/permissionStatus",e,!0)},isLinked:function(e){return i("median://moxo/isLinked",e,!0)},unlink:function(e){return i("median://moxo/unlink",e,!0)},localUnlink:function(e){return i("median://moxo/localUnlink",e,!0)},showDashboard:function(){t("median://moxo/showDashboard")},openLiveChatWithCompletion:function(){t("median://moxo/openLiveChatWithCompletion")},openLiveChatWithChannelId:function(e){t("median://moxo/openLiveChatWithChannelId",e)},openChat:function(e){t("median://moxo/openChat",e)},getUnreadMessageCount:function(e){return i("median://moxo/getUnreadMessageCount",e)}},ee={areNotificationsEnabled:function(e){return i("median://msdynamics/areNotificationsEnabled",e,!0)},promptNotificationPermission:function(e){return i("median://msdynamics/promptNotificationPermission",e,!0)},registrationInfo:function(e){return i("median://msdynamics/registrationInfo",e,!0)},registerDevice:function(e){return i("median://msdynamics/registerDevice",e,!0)}},ne={status:function(e){return i("gonative://nfc/status",e)},readTag:function(e){return i("gonative://nfc/readTag",e)}},te={run:{onesignalInfo:function(){t("median://onesignal/info",{callback:"median_onesignal_info"})}},onesignalInfo:function(e){return i("median://onesignal/info",e,!0)},info:function(e){return i("median://onesignal/info",e,!0)},register:function(e){return i("median://onesignal/register",e,!0)},userPrivacyConsent:{grant:function(){t("median://onesignal/userPrivacyConsent/grant")},revoke:function(){t("median://onesignal/userPrivacyConsent/revoke")}},tags:{getTags:function(e){return i("median://onesignal/tags/get",e)},setTags:function(e){return i("median://onesignal/tags/set",e)},deleteTags:function(e){return i("median://onesignal/tags/delete",e)}},showTagsUI:function(){t("median://onesignal/showTagsUI")},promptLocation:function(){t("median://onesignal/promptLocation")},iam:{addTrigger:function(e){t("median://onesignal/iam/addTrigger",e)},addTriggers:function(e){t("median://onesignal/iam/addTriggers",e)},removeTriggerForKey:function(e){t("median://onesignal/iam/removeTriggerForKey",{key:e})},getTriggerValueForKey:function(e){t("median://onesignal/iam/getTriggerValueForKey",{key:e})},pauseInAppMessages:function(){t("median://onesignal/iam/pauseInAppMessages?pause=true")},resumeInAppMessages:function(){t("median://onesignal/iam/pauseInAppMessages?pause=false")},setInAppMessageClickHandler:function(e){t("median://onesignal/iam/setInAppMessageClickHandler",{handler:n(e,!0)})}},externalUserId:{set:function(e){return i("median://onesignal/externalUserId/set",e)},remove:function(e){return i("median://onesignal/externalUserId/remove",e)}},enableForegroundNotifications:function(e){t("median://onesignal/enableForegroundNotifications",{enabled:e})},badge:{set:function(e){t("median://onesignal/badge/set",{count:e})}},login:function(e,n={}){return i("median://onesignal/login",{externalId:e,...n})},logout:function(e){return i("median://onesignal/logout",e)},pushOpened:c("_median_onesignal_push_opened")},ie={video:{join:function(e){return i("median://opentok/video/join",e)}}},ae={requestPhoneCallMgmt:function(e){if(e?.callback)return i("median://permissions/requestPhoneCallMgmt",e);t("median://permissions/requestPhoneCallMgmt",e)},status:function(e){return i("median://permissions/status",{permissions:e})}},oe={linkBank:function(e){return i("median://plaid/linkBank",e)},verifyIdentity:function(e){return i("median://plaid/verifyIdentity",e)}},re={configure:function(e){return i("gonative://revenueCat/configure",e)},getOfferings:function(e){return i("gonative://revenueCat/getOfferings",e)},purchase:function(e){return i("gonative://revenueCat/purchase",e)},restorePurchases:function(e){return i("gonative://revenueCat/restorePurchases",e)}},se={promptNotification:function(){return i("median://salesforceCloud/promptNotification")},notificationEnabled:function(){return i("median://salesforceCloud/notificationEnabled")},getInfo:function(){return i("median://salesforceCloud/getInfo")},contactKey:{set:function(e){return i("median://salesforceCloud/contactKey/set",e)},get:function(){return i("median://salesforceCloud/contactKey/get")}},attributes:{set:function(e){return i("median://salesforceCloud/attributes/set",e)},get:function(){return i("median://salesforceCloud/attributes/get")}},tags:{set:function(e){return i("median://salesforceCloud/tags/set",e)},get:function(){return i("median://salesforceCloud/tags/get")}}},ce={shareResult:c("_median_share_to_app")},ue={facebook:{login:function(e){if(e?.callback)return i("median://socialLogin/facebook/login",e);t("median://socialLogin/facebook/login",e)},logout:function(e){if(e?.callback)return i("median://socialLogin/facebook/logout",e);t("median://socialLogin/facebook/logout",e)}},google:{login:function(e){if(e?.callback)return i("median://socialLogin/google/login",e);t("median://socialLogin/google/login",e)},logout:function(e){if(e?.callback)return i("median://socialLogin/google/logout",e);t("median://socialLogin/google/logout",e)}},apple:{login:function(e){if(e?.callback)return i("median://socialLogin/apple/login",e);t("median://socialLogin/apple/login",e)}}};function de(e,n){function t(e){return new Promise(((n,t)=>{const i=new FileReader;i.onload=()=>n(i.result),i.onerror=()=>t(i.error),i.readAsDataURL(e)}))}const i=[t(e)];return n&&"object"==typeof n&&n.attachment instanceof Blob&&i.push(t(n.attachment)),Promise.all(i)}const le={snapchat:{isInstalled:function(e){return i("median://socialShare/snapchat/isInstalled",e)},share:function(e,n){de(e,n).then((([e,i])=>{let a={dataUrl:e};n&&"object"==typeof n&&(a={...n,dataUrl:e,attachment:i}),t("median://socialShare/snapchat/share",a)}))}},instagram:{isInstalled:function(e){return i("median://socialShare/instagram/isInstalled",e)},shareToFeed:function(e){de(e).then((([e])=>{t("median://socialShare/instagram/shareToFeed",{dataUrl:e})}))},shareToStory:function(e,n){de(e,n).then((([e,i])=>{let a={dataUrl:e};n&&"object"==typeof n&&(a={...n,dataUrl:e,attachment:i}),t("median://socialShare/instagram/shareToStory",a)}))}}},me={video:{join:function(e){return i("median://twilio/video/join",e)}}},fe={shareScreen:function(e){t("median://webScreenshot/shareScreen",e)},shareElement:function(e,n){window.html2canvas&&window.html2canvas(e,{useCORS:!0,scale:1.25}).then((e=>{t("median://webScreenshot/shareElement",{dataUrl:e.toDataURL(),...n})}))},captureScreen:async function(){const e=await i("median://webScreenshot/captureScreen"),n=atob(e.data),t=n.length,a=new Uint8Array(t);for(let e=0;e<t;e++)a[e]=n.charCodeAt(e);return new Blob([a],{type:"image/png"})},captureElement:async function(e){if(!window.html2canvas)return;const n=await window.html2canvas(e,{useCORS:!0,scale:1.25});return new Promise(((e,t)=>{n.toBlob((n=>{n?e(n):t(new Error("Failed to convert to blob."))}))}))}},ge={video:{join:function(e){return i("median://zoom/join",e)}}};var pe;return function(e){e.ios=d,e.android=a,e.camera=u.camera,e.clipboard=u.clipboard,e.config=u.config,e.connectivity=u.connectivity,e.deviceInfo=u.deviceInfo,e.internalExternal=u.internalExternal,e.jsNavigation=u.jsNavigation,e.keyboard=u.keyboard,e.nativebridge=u.nativebridge,e.navigationLevels=u.navigationLevels,e.navigationMaxWindows=u.navigationMaxWindows,e.navigationTitles=u.navigationTitles,e.open=u.open,e.registration=u.registration,e.run=u.run,e.screen=u.screen,e.share=u.share,e.sidebar=u.sidebar,e.statusbar=u.statusbar,e.tabNavigation=u.tabNavigation,e.webview=u.webview,e.window=u.window,e.adjust=l,e.admob=m,e.ageSafety=f,e.appreview=g,e.appsflyer=p,e.auth=b,e.auth0=v,e.autorefresh=h,e.backgroundLocation=y,e.backgroundMedia=k,e.barcode=w,e.beacon=S,e.braze=C,e.branch=I,e.calendar=_,e.card_io=A,e.clerk=P,e.contacts=L,e.cordial=T,e.documentScanner=N,e.downloads=E,e.esmiley=U,e.facebook=D,e.firebaseAnalytics=x,e.firebaseCrashlytics=F,e.grow=O,e.haptics=q,e.healthBridge=R,e.iap=B,e.intentedge=z,e.intercom=W,e.iterable=H,e.jwplayer=G,e.kaltura=J,e.keychainSwift=K,e.klaviyo=V,e.localpreferences=Q,e.masterlock=Y,e.modal=Z,e.moengage=X,e.moxo=$,e.msdynamics=ee,e.nfc=ne,e.onesignal=te,e.opentok=ie,e.permissions=ae,e.plaid=oe,e.revenueCat=re,e.salesforceCloud=se,e.shareIntoApp=ce,e.socialLogin=ue,e.socialShare=le,e.storage={app:Q.nonpersistent,cloud:Q.persistent,filesystem:Q.filesystem},e.twilio=me,e.webScreenshot=fe,e.zoom=ge,e.isNativeApp=()=>{const e=globalThis.window;return!!e?.webkit?.messageHandlers?.JSBridge||!!e?.JSBridge},e.getPlatform=async()=>{if(!e.isNativeApp())return"web";const n=await u.deviceInfo();return n?.platform},e.onReady=n=>{if("function"!=typeof n)return;let t=n,i=0;const a=setInterval((()=>{e.isNativeApp()&&t&&(t(),t=null),i++,(i>=20||!t)&&clearInterval(a)}),500)},e.appResumed=c("_median_app_resumed"),e.deviceShake=c("_median_device_shake"),e.appsFlyerConversionData=c("_median_appsflyer_cd"),e.appsFlyerDeeplinkResult=c("_median_appsflyer_deeplink_result"),e.appsFlyerSdkStart=c("_median_appsflyer_sdk_start"),e.branchInitialized=c("_median_branch_initialized"),e.iapInfoReady=c("_median_info_ready"),e.iapPurchases=c("_median_iap_purchases"),e.oneSignalPushOpened=c("_median_onesignal_push_opened"),e.shareToApp=c("_median_share_to_app")}(pe||(pe={})),pe}();
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Clerk } from '../types/clerk.js';
|
|
2
|
+
declare const clerk: {
|
|
3
|
+
initialize: (params: Clerk.InitializeParams) => Promise<Clerk.InitializeResponse>;
|
|
4
|
+
presentSignIn: () => Promise<Clerk.PresentSignInResponse>;
|
|
5
|
+
signOut: () => Promise<Clerk.SignOutResponse>;
|
|
6
|
+
getAuthStatus: () => Promise<Clerk.GetAuthStatusResponse>;
|
|
7
|
+
};
|
|
8
|
+
export default clerk;
|
|
9
|
+
//# sourceMappingURL=clerk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clerk.d.ts","sourceRoot":"","sources":["../../src/plugins/clerk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,QAAA,MAAM,KAAK;yBACqB,MAAM,gBAAgB;;;;CAYrD,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { addCommandCallback } from '../utils/index.js';
|
|
2
|
+
const clerk = {
|
|
3
|
+
initialize: function (params) {
|
|
4
|
+
return addCommandCallback('median://clerk/initialize', params);
|
|
5
|
+
},
|
|
6
|
+
presentSignIn: function () {
|
|
7
|
+
return addCommandCallback('median://clerk/presentSignIn');
|
|
8
|
+
},
|
|
9
|
+
signOut: function () {
|
|
10
|
+
return addCommandCallback('median://clerk/signOut');
|
|
11
|
+
},
|
|
12
|
+
getAuthStatus: function () {
|
|
13
|
+
return addCommandCallback('median://clerk/getAuthStatus');
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
export default clerk;
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export { default as branch } from './branch.js';
|
|
|
14
14
|
export { default as braze } from './braze.js';
|
|
15
15
|
export { default as calendar } from './calendar.js';
|
|
16
16
|
export { default as card_io } from './card_io.js';
|
|
17
|
+
export { default as clerk } from './clerk.js';
|
|
17
18
|
export { default as contacts } from './contacts.js';
|
|
18
19
|
export { default as cordial } from './cordial.js';
|
|
19
20
|
export { default as documentScanner } from './documentScanner.js';
|
|
@@ -29,6 +30,7 @@ export { default as iap } from './iap.js';
|
|
|
29
30
|
export { default as intentedge } from './intentedge.js';
|
|
30
31
|
export { default as intercom } from './intercom.js';
|
|
31
32
|
export { default as iterable } from './iterable.js';
|
|
33
|
+
export { default as jwplayer } from './jwplayer.js';
|
|
32
34
|
export { default as kaltura } from './kaltura.js';
|
|
33
35
|
export { default as keychainSwift } from './keychainSwift.js';
|
|
34
36
|
export { default as klaviyo } from './klaviyo.js';
|
|
@@ -44,6 +46,7 @@ export { default as opentok } from './opentok.js';
|
|
|
44
46
|
export { default as permissions } from './permissions.js';
|
|
45
47
|
export { default as plaid } from './plaid.js';
|
|
46
48
|
export { default as revenueCat } from './revenueCat.js';
|
|
49
|
+
export { default as salesforceCloud } from './salesforceCloud.js';
|
|
47
50
|
export { default as shareIntoApp } from './shareIntoApp.js';
|
|
48
51
|
export { default as socialLogin } from './socialLogin.js';
|
|
49
52
|
export { default as socialShare } from './socialShare.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,OAA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M,gBAAgB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC"}
|
package/dist/plugins/index.js
CHANGED
|
@@ -14,6 +14,7 @@ export { default as branch } from './branch.js';
|
|
|
14
14
|
export { default as braze } from './braze.js';
|
|
15
15
|
export { default as calendar } from './calendar.js';
|
|
16
16
|
export { default as card_io } from './card_io.js';
|
|
17
|
+
export { default as clerk } from './clerk.js';
|
|
17
18
|
export { default as contacts } from './contacts.js';
|
|
18
19
|
export { default as cordial } from './cordial.js';
|
|
19
20
|
export { default as documentScanner } from './documentScanner.js';
|
|
@@ -29,6 +30,7 @@ export { default as iap } from './iap.js';
|
|
|
29
30
|
export { default as intentedge } from './intentedge.js';
|
|
30
31
|
export { default as intercom } from './intercom.js';
|
|
31
32
|
export { default as iterable } from './iterable.js';
|
|
33
|
+
export { default as jwplayer } from './jwplayer.js';
|
|
32
34
|
export { default as kaltura } from './kaltura.js';
|
|
33
35
|
export { default as keychainSwift } from './keychainSwift.js';
|
|
34
36
|
export { default as klaviyo } from './klaviyo.js';
|
|
@@ -44,6 +46,7 @@ export { default as opentok } from './opentok.js';
|
|
|
44
46
|
export { default as permissions } from './permissions.js';
|
|
45
47
|
export { default as plaid } from './plaid.js';
|
|
46
48
|
export { default as revenueCat } from './revenueCat.js';
|
|
49
|
+
export { default as salesforceCloud } from './salesforceCloud.js';
|
|
47
50
|
export { default as shareIntoApp } from './shareIntoApp.js';
|
|
48
51
|
export { default as socialLogin } from './socialLogin.js';
|
|
49
52
|
export { default as socialShare } from './socialShare.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { JWPlayer } from '../types/jwplayer.js';
|
|
2
|
+
declare const jwplayer: {
|
|
3
|
+
initialize: (params: JWPlayer.InitializeParams) => Promise<JWPlayer.InitializeResponse>;
|
|
4
|
+
play: (params: JWPlayer.PlayParams) => Promise<JWPlayer.PlayResponse>;
|
|
5
|
+
};
|
|
6
|
+
export default jwplayer;
|
|
7
|
+
//# sourceMappingURL=jwplayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jwplayer.d.ts","sourceRoot":"","sources":["../../src/plugins/jwplayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhD,QAAA,MAAM,QAAQ;yBACkB,SAAS,gBAAgB;mBAG/B,SAAS,UAAU;CAG5C,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { addCommandCallback } from '../utils/index.js';
|
|
2
|
+
const jwplayer = {
|
|
3
|
+
initialize: function (params) {
|
|
4
|
+
return addCommandCallback('median://jwplayer/initialize', params);
|
|
5
|
+
},
|
|
6
|
+
play: function (params) {
|
|
7
|
+
return addCommandCallback('median://jwplayer/play', params);
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
export default jwplayer;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SalesforceCloud } from '../types/salesforceCloud.js';
|
|
2
|
+
export declare const salesforceCloud: {
|
|
3
|
+
promptNotification: () => Promise<SalesforceCloud.PermissionResponse>;
|
|
4
|
+
notificationEnabled: () => Promise<SalesforceCloud.PermissionResponse>;
|
|
5
|
+
getInfo: () => Promise<SalesforceCloud.GetInfoResponse>;
|
|
6
|
+
contactKey: {
|
|
7
|
+
set: (params: SalesforceCloud.SetContactKeyParams) => Promise<SalesforceCloud.SetContactKeyResponse>;
|
|
8
|
+
get: () => Promise<SalesforceCloud.GetContactKeyResponse>;
|
|
9
|
+
};
|
|
10
|
+
attributes: {
|
|
11
|
+
set: (params: SalesforceCloud.SetAttributesParams) => Promise<SalesforceCloud.SetAttributesResponse>;
|
|
12
|
+
get: () => Promise<SalesforceCloud.GetAttributesResponse>;
|
|
13
|
+
};
|
|
14
|
+
tags: {
|
|
15
|
+
set: (params: SalesforceCloud.SetTagsParams) => Promise<SalesforceCloud.SetTagsResponse>;
|
|
16
|
+
get: () => Promise<SalesforceCloud.GetTagsResponse>;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default salesforceCloud;
|
|
20
|
+
//# sourceMappingURL=salesforceCloud.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"salesforceCloud.d.ts","sourceRoot":"","sources":["../../src/plugins/salesforceCloud.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAG9D,eAAO,MAAM,eAAe;;;;;sBAWD,gBAAgB,mBAAmB;;;;sBAWnC,gBAAgB,mBAAmB;;;;sBAWnC,gBAAgB,aAAa;;;CAOvD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { addCommandCallback } from '../utils/index.js';
|
|
2
|
+
export const salesforceCloud = {
|
|
3
|
+
promptNotification: function () {
|
|
4
|
+
return addCommandCallback('median://salesforceCloud/promptNotification');
|
|
5
|
+
},
|
|
6
|
+
notificationEnabled: function () {
|
|
7
|
+
return addCommandCallback('median://salesforceCloud/notificationEnabled');
|
|
8
|
+
},
|
|
9
|
+
getInfo: function () {
|
|
10
|
+
return addCommandCallback('median://salesforceCloud/getInfo');
|
|
11
|
+
},
|
|
12
|
+
contactKey: {
|
|
13
|
+
set: function (params) {
|
|
14
|
+
return addCommandCallback('median://salesforceCloud/contactKey/set', params);
|
|
15
|
+
},
|
|
16
|
+
get: function () {
|
|
17
|
+
return addCommandCallback('median://salesforceCloud/contactKey/get');
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
attributes: {
|
|
21
|
+
set: function (params) {
|
|
22
|
+
return addCommandCallback('median://salesforceCloud/attributes/set', params);
|
|
23
|
+
},
|
|
24
|
+
get: function () {
|
|
25
|
+
return addCommandCallback('median://salesforceCloud/attributes/get');
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
tags: {
|
|
29
|
+
set: function (params) {
|
|
30
|
+
return addCommandCallback('median://salesforceCloud/tags/set', params);
|
|
31
|
+
},
|
|
32
|
+
get: function () {
|
|
33
|
+
return addCommandCallback('median://salesforceCloud/tags/get');
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
export default salesforceCloud;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare namespace Clerk {
|
|
2
|
+
type InitializeParams = {
|
|
3
|
+
publishableKey: string;
|
|
4
|
+
};
|
|
5
|
+
type InitializeResponse = {
|
|
6
|
+
success: boolean;
|
|
7
|
+
error?: {
|
|
8
|
+
code: string;
|
|
9
|
+
message: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
type PresentSignInResponse = {
|
|
13
|
+
hasValidToken: boolean;
|
|
14
|
+
success: boolean;
|
|
15
|
+
state: 'signedIn' | 'signedOut';
|
|
16
|
+
token?: string;
|
|
17
|
+
userId?: string;
|
|
18
|
+
error?: {
|
|
19
|
+
code: string;
|
|
20
|
+
message: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
type SignOutResponse = {
|
|
24
|
+
success: boolean;
|
|
25
|
+
error?: {
|
|
26
|
+
code: string;
|
|
27
|
+
message: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
type GetAuthStatusResponse = {
|
|
31
|
+
hasValidToken: boolean;
|
|
32
|
+
success: boolean;
|
|
33
|
+
state: 'signedIn' | 'signedOut';
|
|
34
|
+
token?: string;
|
|
35
|
+
userId?: string;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=clerk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clerk.d.ts","sourceRoot":"","sources":["../../src/types/clerk.ts"],"names":[],"mappings":"AAAA,yBAAiB,KAAK,CAAC;IACrB,KAAY,gBAAgB,GAAG;QAC7B,cAAc,EAAE,MAAM,CAAC;KACxB,CAAC;IAEF,KAAY,kBAAkB,GAAG;QAC/B,OAAO,EAAE,OAAO,CAAC;QACjB,KAAK,CAAC,EAAE;YACN,IAAI,EAAE,MAAM,CAAC;YACb,OAAO,EAAE,MAAM,CAAC;SACjB,CAAC;KACH,CAAC;IAEF,KAAY,qBAAqB,GAAG;QAClC,aAAa,EAAE,OAAO,CAAC;QACvB,OAAO,EAAE,OAAO,CAAC;QACjB,KAAK,EAAE,UAAU,GAAG,WAAW,CAAC;QAChC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE;YACN,IAAI,EAAE,MAAM,CAAC;YACb,OAAO,EAAE,MAAM,CAAC;SACjB,CAAC;KACH,CAAC;IAEF,KAAY,eAAe,GAAG;QAC5B,OAAO,EAAE,OAAO,CAAC;QACjB,KAAK,CAAC,EAAE;YACN,IAAI,EAAE,MAAM,CAAC;YACb,OAAO,EAAE,MAAM,CAAC;SACjB,CAAC;KACH,CAAC;IAEF,KAAY,qBAAqB,GAAG;QAClC,aAAa,EAAE,OAAO,CAAC;QACvB,OAAO,EAAE,OAAO,CAAC;QACjB,KAAK,EAAE,UAAU,GAAG,WAAW,CAAC;QAChC,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare namespace JWPlayer {
|
|
2
|
+
type InitializeParams = {
|
|
3
|
+
licenseKey: string;
|
|
4
|
+
};
|
|
5
|
+
type InitializeResponse = {
|
|
6
|
+
success: boolean;
|
|
7
|
+
error?: {
|
|
8
|
+
code: string;
|
|
9
|
+
message: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
type PlayParams = {
|
|
13
|
+
file?: string;
|
|
14
|
+
files?: string[];
|
|
15
|
+
playlistUrl?: string;
|
|
16
|
+
startTime?: number;
|
|
17
|
+
licenseKey: string;
|
|
18
|
+
};
|
|
19
|
+
type PlayResponse = {
|
|
20
|
+
success: boolean;
|
|
21
|
+
error?: {
|
|
22
|
+
code: string;
|
|
23
|
+
message: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=jwplayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jwplayer.d.ts","sourceRoot":"","sources":["../../src/types/jwplayer.ts"],"names":[],"mappings":"AAAA,yBAAiB,QAAQ,CAAC;IACxB,KAAY,gBAAgB,GAAG;QAC7B,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IAEF,KAAY,kBAAkB,GAAG;QAC/B,OAAO,EAAE,OAAO,CAAC;QACjB,KAAK,CAAC,EAAE;YACN,IAAI,EAAE,MAAM,CAAC;YACb,OAAO,EAAE,MAAM,CAAC;SACjB,CAAC;KACH,CAAC;IAEF,KAAY,UAAU,GAAG;QACvB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IAEF,KAAY,YAAY,GAAG;QACzB,OAAO,EAAE,OAAO,CAAC;QACjB,KAAK,CAAC,EAAE;YACN,IAAI,EAAE,MAAM,CAAC;YACb,OAAO,EAAE,MAAM,CAAC;SACjB,CAAC;KACH,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare namespace SalesforceCloud {
|
|
2
|
+
type PermissionResponse = {
|
|
3
|
+
granted: boolean;
|
|
4
|
+
};
|
|
5
|
+
type GetInfoResponse = Record<string, any> & {
|
|
6
|
+
deviceToken?: string;
|
|
7
|
+
deviceId?: string;
|
|
8
|
+
notificationUserInfo?: Record<string, any>;
|
|
9
|
+
pushEnabled?: boolean;
|
|
10
|
+
};
|
|
11
|
+
type GetContactKeyResponse = {
|
|
12
|
+
success: boolean;
|
|
13
|
+
contactKey?: string;
|
|
14
|
+
};
|
|
15
|
+
type SetContactKeyParams = {
|
|
16
|
+
contactKey: string;
|
|
17
|
+
};
|
|
18
|
+
type SetContactKeyResponse = {
|
|
19
|
+
success: boolean;
|
|
20
|
+
};
|
|
21
|
+
type GetTagsResponse = {
|
|
22
|
+
success: boolean;
|
|
23
|
+
tags?: string[];
|
|
24
|
+
};
|
|
25
|
+
type SetTagsParams = {
|
|
26
|
+
tag: string;
|
|
27
|
+
};
|
|
28
|
+
type SetTagsResponse = {
|
|
29
|
+
success: boolean;
|
|
30
|
+
};
|
|
31
|
+
type GetAttributesResponse = {
|
|
32
|
+
success: boolean;
|
|
33
|
+
attributes?: Record<string, any>;
|
|
34
|
+
};
|
|
35
|
+
type SetAttributesParams = {
|
|
36
|
+
attributes?: Record<string, any>;
|
|
37
|
+
};
|
|
38
|
+
type SetAttributesResponse = {
|
|
39
|
+
success: boolean;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=salesforceCloud.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"salesforceCloud.d.ts","sourceRoot":"","sources":["../../src/types/salesforceCloud.ts"],"names":[],"mappings":"AAAA,yBAAiB,eAAe,CAAC;IAC/B,KAAY,kBAAkB,GAAG;QAC/B,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;IAEF,KAAY,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;QAClD,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC3C,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB,CAAC;IAEF,KAAY,qBAAqB,GAAG;QAClC,OAAO,EAAE,OAAO,CAAC;QACjB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IAEF,KAAY,mBAAmB,GAAG;QAChC,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IAEF,KAAY,qBAAqB,GAAG;QAClC,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;IAEF,KAAY,eAAe,GAAG;QAC5B,OAAO,EAAE,OAAO,CAAC;QACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;KACjB,CAAC;IAEF,KAAY,aAAa,GAAG;QAC1B,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IAEF,KAAY,eAAe,GAAG;QAC5B,OAAO,EAAE,OAAO,CAAC;KAClB,CAAA;IAED,KAAY,qBAAqB,GAAG;QAClC,OAAO,EAAE,OAAO,CAAC;QACjB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;KACjC,CAAC;IAEF,KAAY,mBAAmB,GAAG;QAChC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;KACjC,CAAC;IAEF,KAAY,qBAAqB,GAAG;QAClC,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -54,6 +54,7 @@ namespace Median {
|
|
|
54
54
|
export const branch = plugins.branch;
|
|
55
55
|
export const calendar = plugins.calendar;
|
|
56
56
|
export const card_io = plugins.card_io;
|
|
57
|
+
export const clerk = plugins.clerk;
|
|
57
58
|
export const contacts = plugins.contacts;
|
|
58
59
|
export const cordial = plugins.cordial;
|
|
59
60
|
export const documentScanner = plugins.documentScanner;
|
|
@@ -69,6 +70,7 @@ namespace Median {
|
|
|
69
70
|
export const intentedge = plugins.intentedge;
|
|
70
71
|
export const intercom = plugins.intercom;
|
|
71
72
|
export const iterable = plugins.iterable;
|
|
73
|
+
export const jwplayer = plugins.jwplayer;
|
|
72
74
|
export const kaltura = plugins.kaltura;
|
|
73
75
|
export const keychainSwift = plugins.keychainSwift;
|
|
74
76
|
export const klaviyo = plugins.klaviyo;
|
|
@@ -84,6 +86,7 @@ namespace Median {
|
|
|
84
86
|
export const permissions = plugins.permissions;
|
|
85
87
|
export const plaid = plugins.plaid;
|
|
86
88
|
export const revenueCat = plugins.revenueCat;
|
|
89
|
+
export const salesforceCloud = plugins.salesforceCloud;
|
|
87
90
|
export const shareIntoApp = plugins.shareIntoApp;
|
|
88
91
|
export const socialLogin = plugins.socialLogin;
|
|
89
92
|
export const socialShare = plugins.socialShare;
|
|
@@ -175,5 +178,8 @@ export default Median;
|
|
|
175
178
|
// Types //
|
|
176
179
|
///////////////////////////////
|
|
177
180
|
export { AppsFlyer } from './types/appsflyer.js';
|
|
181
|
+
export { Clerk } from './types/clerk.js';
|
|
178
182
|
export { HealthBridge } from './types/healthBridge.js';
|
|
183
|
+
export { JWPlayer } from './types/jwplayer.js';
|
|
179
184
|
export { MasterLock } from './types/masterlock.js';
|
|
185
|
+
export { SalesforceCloud } from './types/salesforceCloud.js';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Clerk } from '../types/clerk.js';
|
|
2
|
+
import { addCommandCallback } from '../utils/index.js';
|
|
3
|
+
|
|
4
|
+
const clerk = {
|
|
5
|
+
initialize: function (params: Clerk.InitializeParams) {
|
|
6
|
+
return addCommandCallback<Clerk.InitializeResponse>('median://clerk/initialize', params);
|
|
7
|
+
},
|
|
8
|
+
presentSignIn: function () {
|
|
9
|
+
return addCommandCallback<Clerk.PresentSignInResponse>('median://clerk/presentSignIn');
|
|
10
|
+
},
|
|
11
|
+
signOut: function () {
|
|
12
|
+
return addCommandCallback<Clerk.SignOutResponse>('median://clerk/signOut');
|
|
13
|
+
},
|
|
14
|
+
getAuthStatus: function () {
|
|
15
|
+
return addCommandCallback<Clerk.GetAuthStatusResponse>('median://clerk/getAuthStatus');
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export default clerk;
|
package/src/plugins/index.ts
CHANGED
|
@@ -14,6 +14,7 @@ export { default as branch } from './branch.js';
|
|
|
14
14
|
export { default as braze } from './braze.js';
|
|
15
15
|
export { default as calendar } from './calendar.js';
|
|
16
16
|
export { default as card_io } from './card_io.js';
|
|
17
|
+
export { default as clerk } from './clerk.js';
|
|
17
18
|
export { default as contacts } from './contacts.js';
|
|
18
19
|
export { default as cordial } from './cordial.js';
|
|
19
20
|
export { default as documentScanner } from './documentScanner.js';
|
|
@@ -29,6 +30,7 @@ export { default as iap } from './iap.js';
|
|
|
29
30
|
export { default as intentedge } from './intentedge.js';
|
|
30
31
|
export { default as intercom } from './intercom.js';
|
|
31
32
|
export { default as iterable } from './iterable.js';
|
|
33
|
+
export { default as jwplayer } from './jwplayer.js';
|
|
32
34
|
export { default as kaltura } from './kaltura.js';
|
|
33
35
|
export { default as keychainSwift } from './keychainSwift.js';
|
|
34
36
|
export { default as klaviyo } from './klaviyo.js';
|
|
@@ -44,6 +46,7 @@ export { default as opentok } from './opentok.js';
|
|
|
44
46
|
export { default as permissions } from './permissions.js';
|
|
45
47
|
export { default as plaid } from './plaid.js';
|
|
46
48
|
export { default as revenueCat } from './revenueCat.js';
|
|
49
|
+
export { default as salesforceCloud } from './salesforceCloud.js';
|
|
47
50
|
export { default as shareIntoApp } from './shareIntoApp.js';
|
|
48
51
|
export { default as socialLogin } from './socialLogin.js';
|
|
49
52
|
export { default as socialShare } from './socialShare.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { JWPlayer } from '../types/jwplayer.js';
|
|
2
|
+
import { addCommandCallback } from '../utils/index.js';
|
|
3
|
+
|
|
4
|
+
const jwplayer = {
|
|
5
|
+
initialize: function (params: JWPlayer.InitializeParams) {
|
|
6
|
+
return addCommandCallback<JWPlayer.InitializeResponse>('median://jwplayer/initialize', params);
|
|
7
|
+
},
|
|
8
|
+
play: function (params: JWPlayer.PlayParams) {
|
|
9
|
+
return addCommandCallback<JWPlayer.PlayResponse>('median://jwplayer/play', params);
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export default jwplayer;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { SalesforceCloud } from '../types/salesforceCloud.js';
|
|
2
|
+
import { addCommandCallback } from '../utils/index.js';
|
|
3
|
+
|
|
4
|
+
export const salesforceCloud = {
|
|
5
|
+
promptNotification: function () {
|
|
6
|
+
return addCommandCallback<SalesforceCloud.PermissionResponse>('median://salesforceCloud/promptNotification');
|
|
7
|
+
},
|
|
8
|
+
notificationEnabled: function () {
|
|
9
|
+
return addCommandCallback<SalesforceCloud.PermissionResponse>('median://salesforceCloud/notificationEnabled');
|
|
10
|
+
},
|
|
11
|
+
getInfo: function () {
|
|
12
|
+
return addCommandCallback<SalesforceCloud.GetInfoResponse>('median://salesforceCloud/getInfo');
|
|
13
|
+
},
|
|
14
|
+
contactKey: {
|
|
15
|
+
set: function (params: SalesforceCloud.SetContactKeyParams) {
|
|
16
|
+
return addCommandCallback<SalesforceCloud.SetContactKeyResponse>(
|
|
17
|
+
'median://salesforceCloud/contactKey/set',
|
|
18
|
+
params
|
|
19
|
+
);
|
|
20
|
+
},
|
|
21
|
+
get: function () {
|
|
22
|
+
return addCommandCallback<SalesforceCloud.GetContactKeyResponse>('median://salesforceCloud/contactKey/get');
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
attributes: {
|
|
26
|
+
set: function (params: SalesforceCloud.SetAttributesParams) {
|
|
27
|
+
return addCommandCallback<SalesforceCloud.SetAttributesResponse>(
|
|
28
|
+
'median://salesforceCloud/attributes/set',
|
|
29
|
+
params
|
|
30
|
+
);
|
|
31
|
+
},
|
|
32
|
+
get: function () {
|
|
33
|
+
return addCommandCallback<SalesforceCloud.GetAttributesResponse>('median://salesforceCloud/attributes/get');
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
tags: {
|
|
37
|
+
set: function (params: SalesforceCloud.SetTagsParams) {
|
|
38
|
+
return addCommandCallback<SalesforceCloud.SetTagsResponse>('median://salesforceCloud/tags/set', params);
|
|
39
|
+
},
|
|
40
|
+
get: function () {
|
|
41
|
+
return addCommandCallback<SalesforceCloud.GetTagsResponse>('median://salesforceCloud/tags/get');
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export default salesforceCloud;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export namespace Clerk {
|
|
2
|
+
export type InitializeParams = {
|
|
3
|
+
publishableKey: string;
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
export type InitializeResponse = {
|
|
7
|
+
success: boolean;
|
|
8
|
+
error?: {
|
|
9
|
+
code: string;
|
|
10
|
+
message: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export type PresentSignInResponse = {
|
|
15
|
+
hasValidToken: boolean;
|
|
16
|
+
success: boolean;
|
|
17
|
+
state: 'signedIn' | 'signedOut';
|
|
18
|
+
token?: string;
|
|
19
|
+
userId?: string;
|
|
20
|
+
error?: {
|
|
21
|
+
code: string;
|
|
22
|
+
message: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export type SignOutResponse = {
|
|
27
|
+
success: boolean;
|
|
28
|
+
error?: {
|
|
29
|
+
code: string;
|
|
30
|
+
message: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type GetAuthStatusResponse = {
|
|
35
|
+
hasValidToken: boolean;
|
|
36
|
+
success: boolean;
|
|
37
|
+
state: 'signedIn' | 'signedOut';
|
|
38
|
+
token?: string;
|
|
39
|
+
userId?: string;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export namespace JWPlayer {
|
|
2
|
+
export type InitializeParams = {
|
|
3
|
+
licenseKey: string;
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
export type InitializeResponse = {
|
|
7
|
+
success: boolean;
|
|
8
|
+
error?: {
|
|
9
|
+
code: string;
|
|
10
|
+
message: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export type PlayParams = {
|
|
15
|
+
file?: string;
|
|
16
|
+
files?: string[];
|
|
17
|
+
playlistUrl?: string;
|
|
18
|
+
startTime?: number;
|
|
19
|
+
licenseKey: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export type PlayResponse = {
|
|
23
|
+
success: boolean;
|
|
24
|
+
error?: {
|
|
25
|
+
code: string;
|
|
26
|
+
message: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export namespace SalesforceCloud {
|
|
2
|
+
export type PermissionResponse = {
|
|
3
|
+
granted: boolean;
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
export type GetInfoResponse = Record<string, any> & {
|
|
7
|
+
deviceToken?: string;
|
|
8
|
+
deviceId?: string;
|
|
9
|
+
notificationUserInfo?: Record<string, any>;
|
|
10
|
+
pushEnabled?: boolean;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export type GetContactKeyResponse = {
|
|
14
|
+
success: boolean;
|
|
15
|
+
contactKey?: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type SetContactKeyParams = {
|
|
19
|
+
contactKey: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export type SetContactKeyResponse = {
|
|
23
|
+
success: boolean;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export type GetTagsResponse = {
|
|
27
|
+
success: boolean;
|
|
28
|
+
tags?: string[];
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export type SetTagsParams = {
|
|
32
|
+
tag: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type SetTagsResponse = {
|
|
36
|
+
success: boolean;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type GetAttributesResponse = {
|
|
40
|
+
success: boolean;
|
|
41
|
+
attributes?: Record<string, any>
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type SetAttributesParams = {
|
|
45
|
+
attributes?: Record<string, any>
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export type SetAttributesResponse = {
|
|
49
|
+
success: boolean;
|
|
50
|
+
};
|
|
51
|
+
}
|