@apps-in-toss/web-framework 0.0.0-dev.1765732023607 → 0.0.0-dev.1765876894045
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/dist/prebuilt/dev.android.js +431 -103
- package/dist/prebuilt/dev.ios.js +431 -103
- package/dist/prebuilt/prod.android.js +377 -56
- package/dist/prebuilt/prod.ios.js +377 -56
- package/package.json +8 -8
package/dist/prebuilt/dev.ios.js
CHANGED
|
@@ -153209,6 +153209,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153209
153209
|
env: function env() {
|
|
153210
153210
|
return _env;
|
|
153211
153211
|
},
|
|
153212
|
+
loadFullScreenAd: function loadFullScreenAd() {
|
|
153213
|
+
return _loadFullScreenAd;
|
|
153214
|
+
},
|
|
153215
|
+
showFullScreenAd: function showFullScreenAd() {
|
|
153216
|
+
return _showFullScreenAd;
|
|
153217
|
+
},
|
|
153212
153218
|
useCreateUserAgent: function useCreateUserAgent() {
|
|
153213
153219
|
return _useCreateUserAgent;
|
|
153214
153220
|
},
|
|
@@ -154617,16 +154623,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154617
154623
|
var _AppsInToss = {
|
|
154618
154624
|
registerApp: registerApp
|
|
154619
154625
|
};
|
|
154620
|
-
var
|
|
154626
|
+
var import_native_modules22 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154621
154627
|
var appsInTossAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[17], "@apps-in-toss/native-modules/async-bridges"), 1);
|
|
154622
154628
|
var appsInTossConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/native-modules/constant-bridges"), 1);
|
|
154623
154629
|
var appsInTossEventBridges = __toESM(_$$_REQUIRE(_dependencyMap[19], "@apps-in-toss/native-modules/event-bridges"), 1);
|
|
154624
154630
|
var import_react_native_safe_area_context4 = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
154625
|
-
var
|
|
154631
|
+
var import_react_native37 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154626
154632
|
var import_tds_react_native14 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154627
154633
|
var import_private9 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154628
154634
|
var import_react28 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154629
|
-
var
|
|
154635
|
+
var import_react_native38 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154630
154636
|
var import_native_modules14 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154631
154637
|
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[20], "@granite-js/native/react-native-webview");
|
|
154632
154638
|
var import_react19 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
@@ -154820,6 +154826,360 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154820
154826
|
}
|
|
154821
154827
|
return scheme + "://" + url.hostname + url.pathname + url.search;
|
|
154822
154828
|
}
|
|
154829
|
+
var import_native_modules15 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154830
|
+
function noop() {}
|
|
154831
|
+
function generateSessionId() {
|
|
154832
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
|
|
154833
|
+
var r = Math.random() * 16 | 0;
|
|
154834
|
+
var v = c === "x" ? r : r & 3 | 8;
|
|
154835
|
+
return v.toString(16);
|
|
154836
|
+
});
|
|
154837
|
+
}
|
|
154838
|
+
var sessionId = generateSessionId();
|
|
154839
|
+
var ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
154840
|
+
var IOS_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
154841
|
+
var UNSUPPORTED_ERROR_MESSAGE = "This feature is not supported in the current environment";
|
|
154842
|
+
var ENVIRONMENT = (0, import_native_modules15.getOperationalEnvironment)();
|
|
154843
|
+
function fetchTossAd(params) {
|
|
154844
|
+
if (!fetchTossAd.isSupported()) {
|
|
154845
|
+
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
|
|
154846
|
+
return noop;
|
|
154847
|
+
}
|
|
154848
|
+
var onEvent = params.onEvent,
|
|
154849
|
+
_onError3 = params.onError,
|
|
154850
|
+
options = params.options;
|
|
154851
|
+
var adGroupId = options.adGroupId;
|
|
154852
|
+
var unregisterCallbacks = import_native_modules15.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("fetchTossAd", {
|
|
154853
|
+
spaceUnitId: adGroupId,
|
|
154854
|
+
sessionId: sessionId,
|
|
154855
|
+
sdkId: options.sdkId,
|
|
154856
|
+
availableStyleIds: options.availableStyleIds
|
|
154857
|
+
}, {
|
|
154858
|
+
onSuccess: function onSuccess(response) {
|
|
154859
|
+
onEvent(response);
|
|
154860
|
+
},
|
|
154861
|
+
onError: function onError(error) {
|
|
154862
|
+
_onError3(error);
|
|
154863
|
+
}
|
|
154864
|
+
});
|
|
154865
|
+
return unregisterCallbacks;
|
|
154866
|
+
}
|
|
154867
|
+
fetchTossAd.isSupported = function () {
|
|
154868
|
+
if (ENVIRONMENT !== "toss") {
|
|
154869
|
+
return false;
|
|
154870
|
+
}
|
|
154871
|
+
return (0, import_native_modules15.isMinVersionSupported)({
|
|
154872
|
+
android: ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION,
|
|
154873
|
+
ios: IOS_FETCH_TOSS_AD_SUPPORTED_VERSION
|
|
154874
|
+
});
|
|
154875
|
+
};
|
|
154876
|
+
var import_native_modules17 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154877
|
+
function generateRequestId() {
|
|
154878
|
+
var timestamp = Date.now().toString(36).toUpperCase();
|
|
154879
|
+
var random = Math.random().toString(36).substring(2, 7).toUpperCase();
|
|
154880
|
+
return "ait-" + timestamp + random;
|
|
154881
|
+
}
|
|
154882
|
+
var import_react_native29 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154883
|
+
function getReferrer() {
|
|
154884
|
+
try {
|
|
154885
|
+
return new URL((0, import_react_native29.getSchemeUri)()).searchParams.get("referrer");
|
|
154886
|
+
} catch (_unused4) {
|
|
154887
|
+
return null;
|
|
154888
|
+
}
|
|
154889
|
+
}
|
|
154890
|
+
var import_native_modules16 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154891
|
+
var import_react_native30 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154892
|
+
function getIsDev() {
|
|
154893
|
+
try {
|
|
154894
|
+
return new URL((0, import_react_native30.getSchemeUri)()).searchParams.get("isDev") === "true";
|
|
154895
|
+
} catch (_unused5) {
|
|
154896
|
+
return false;
|
|
154897
|
+
}
|
|
154898
|
+
}
|
|
154899
|
+
var OPERATIONAL_ENVIRONMENT = (0, import_native_modules16.getOperationalEnvironment)();
|
|
154900
|
+
var OS = (0, import_native_modules16.getPlatformOS)();
|
|
154901
|
+
var APP_VER = (0, import_native_modules16.getTossAppVersion)();
|
|
154902
|
+
var ALPHA_EVENT_TRACKER_HTTP_ENDPOINT = "https://alpha-trillion.toss.im/trk/sdk-mediation/event";
|
|
154903
|
+
var LIVE_EVENT_TRACKER_HTTP_ENDPOINT = "https://trillion.toss.im/trk/sdk-mediation/event";
|
|
154904
|
+
function getPostEventTrackingUrl() {
|
|
154905
|
+
var isDev = getIsDev();
|
|
154906
|
+
if (OPERATIONAL_ENVIRONMENT === "sandbox" || isDev) {
|
|
154907
|
+
return ALPHA_EVENT_TRACKER_HTTP_ENDPOINT;
|
|
154908
|
+
}
|
|
154909
|
+
return LIVE_EVENT_TRACKER_HTTP_ENDPOINT;
|
|
154910
|
+
}
|
|
154911
|
+
function postEventTracking(params) {
|
|
154912
|
+
var endpoint = getPostEventTrackingUrl();
|
|
154913
|
+
var bodyJSON = JSON.stringify(Object.assign({}, params, {
|
|
154914
|
+
os: OS,
|
|
154915
|
+
appVer: APP_VER,
|
|
154916
|
+
deviceIdType: "NONE",
|
|
154917
|
+
platform: "RN"
|
|
154918
|
+
}));
|
|
154919
|
+
return fetch(endpoint, {
|
|
154920
|
+
method: "POST",
|
|
154921
|
+
headers: {
|
|
154922
|
+
"Content-Type": "application/json"
|
|
154923
|
+
},
|
|
154924
|
+
body: bodyJSON
|
|
154925
|
+
}).catch(noop);
|
|
154926
|
+
}
|
|
154927
|
+
var INTEGRATED_AD_SDK_VERSION = "0.0.0";
|
|
154928
|
+
var ANDROID_INTEGRATED_AD_SUPPORTED_VERSION = "5.241.0";
|
|
154929
|
+
var IOS_INTEGRATED_AD_SUPPORTED_VERSION = "5.241.0";
|
|
154930
|
+
var UNSUPPORTED_ERROR_MESSAGE2 = "This feature is not supported in the current environment";
|
|
154931
|
+
var INTG_AD_ADM_FALLBACK_RID_MAP = {};
|
|
154932
|
+
function integratedAdIsSupported() {
|
|
154933
|
+
return (0, import_native_modules17.isMinVersionSupported)({
|
|
154934
|
+
android: ANDROID_INTEGRATED_AD_SUPPORTED_VERSION,
|
|
154935
|
+
ios: IOS_INTEGRATED_AD_SUPPORTED_VERSION
|
|
154936
|
+
});
|
|
154937
|
+
}
|
|
154938
|
+
function generateLoadFullScreenAd(sdkId) {
|
|
154939
|
+
var fn = function fn(params) {
|
|
154940
|
+
if (!import_native_modules17.GoogleAdMob.loadAppsInTossAdMob.isSupported()) {
|
|
154941
|
+
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
|
|
154942
|
+
return noop;
|
|
154943
|
+
}
|
|
154944
|
+
if (!integratedAdIsSupported()) {
|
|
154945
|
+
return import_native_modules17.GoogleAdMob.loadAppsInTossAdMob(Object.assign({}, params, {
|
|
154946
|
+
onEvent: function onEvent(event) {
|
|
154947
|
+
if (event.type === "loaded") {
|
|
154948
|
+
var _event$data$responseI, _event$data$responseI2;
|
|
154949
|
+
var requestId = generateRequestId();
|
|
154950
|
+
INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId] = requestId;
|
|
154951
|
+
postEventTracking({
|
|
154952
|
+
eventName: "LOAD",
|
|
154953
|
+
spaceUnitId: params.options.adGroupId,
|
|
154954
|
+
requestId: requestId,
|
|
154955
|
+
responseId: event.data.responseInfo.responseId,
|
|
154956
|
+
mediationType: "ADMOB",
|
|
154957
|
+
format: "",
|
|
154958
|
+
adSourceName: (_event$data$responseI = (_event$data$responseI2 = event.data.responseInfo.loadedAdNetworkInfo) == null ? void 0 : _event$data$responseI2.adSourceName) != null ? _event$data$responseI : "",
|
|
154959
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
154960
|
+
});
|
|
154961
|
+
}
|
|
154962
|
+
return params.onEvent(event);
|
|
154963
|
+
},
|
|
154964
|
+
onError: function onError(error) {
|
|
154965
|
+
var _INTG_AD_ADM_FALLBACK;
|
|
154966
|
+
var requestId = (_INTG_AD_ADM_FALLBACK = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) != null ? _INTG_AD_ADM_FALLBACK : "";
|
|
154967
|
+
postEventTracking({
|
|
154968
|
+
eventName: "FAILED_TO_LOAD",
|
|
154969
|
+
spaceUnitId: params.options.adGroupId,
|
|
154970
|
+
requestId: requestId,
|
|
154971
|
+
responseId: "",
|
|
154972
|
+
mediationType: "ADMOB",
|
|
154973
|
+
format: "",
|
|
154974
|
+
adSourceName: "",
|
|
154975
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
154976
|
+
});
|
|
154977
|
+
return params.onError(error);
|
|
154978
|
+
}
|
|
154979
|
+
}));
|
|
154980
|
+
}
|
|
154981
|
+
var onEvent = params.onEvent,
|
|
154982
|
+
_onError4 = params.onError,
|
|
154983
|
+
options = params.options;
|
|
154984
|
+
var adGroupId = options.adGroupId;
|
|
154985
|
+
var referrer = getReferrer();
|
|
154986
|
+
var unregisterCallbacks = import_native_modules17.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("loadTossAdOrAdmob", {
|
|
154987
|
+
spaceUnitId: adGroupId,
|
|
154988
|
+
referrer: referrer,
|
|
154989
|
+
sessionId: sessionId,
|
|
154990
|
+
sdkId: sdkId
|
|
154991
|
+
}, {
|
|
154992
|
+
onSuccess: function onSuccess() {
|
|
154993
|
+
onEvent({
|
|
154994
|
+
type: "loaded"
|
|
154995
|
+
});
|
|
154996
|
+
},
|
|
154997
|
+
onError: function onError(error) {
|
|
154998
|
+
_onError4(error);
|
|
154999
|
+
}
|
|
155000
|
+
});
|
|
155001
|
+
return unregisterCallbacks;
|
|
155002
|
+
};
|
|
155003
|
+
fn.isSupported = import_native_modules17.GoogleAdMob.loadAppsInTossAdMob.isSupported;
|
|
155004
|
+
return fn;
|
|
155005
|
+
}
|
|
155006
|
+
var _loadFullScreenAd = generateLoadFullScreenAd("107");
|
|
155007
|
+
var loadFullScreenAdForWeb = generateLoadFullScreenAd("107");
|
|
155008
|
+
function _showFullScreenAd(params) {
|
|
155009
|
+
if (!import_native_modules17.GoogleAdMob.showAppsInTossAdMob.isSupported()) {
|
|
155010
|
+
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
|
|
155011
|
+
return noop;
|
|
155012
|
+
}
|
|
155013
|
+
if (!integratedAdIsSupported()) {
|
|
155014
|
+
return import_native_modules17.GoogleAdMob.showAppsInTossAdMob(Object.assign({}, params, {
|
|
155015
|
+
onEvent: function onEvent(event) {
|
|
155016
|
+
var _INTG_AD_ADM_FALLBACK2;
|
|
155017
|
+
var requestId = (_INTG_AD_ADM_FALLBACK2 = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) != null ? _INTG_AD_ADM_FALLBACK2 : "";
|
|
155018
|
+
switch (event.type) {
|
|
155019
|
+
case "show":
|
|
155020
|
+
postEventTracking({
|
|
155021
|
+
eventName: "SHOW",
|
|
155022
|
+
spaceUnitId: params.options.adGroupId,
|
|
155023
|
+
requestId: requestId,
|
|
155024
|
+
responseId: "",
|
|
155025
|
+
mediationType: "ADMOB",
|
|
155026
|
+
format: "",
|
|
155027
|
+
adSourceName: "",
|
|
155028
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155029
|
+
});
|
|
155030
|
+
break;
|
|
155031
|
+
case "failedToShow":
|
|
155032
|
+
postEventTracking({
|
|
155033
|
+
eventName: "FAILED_TO_SHOW",
|
|
155034
|
+
spaceUnitId: params.options.adGroupId,
|
|
155035
|
+
requestId: requestId,
|
|
155036
|
+
responseId: "",
|
|
155037
|
+
mediationType: "ADMOB",
|
|
155038
|
+
format: "",
|
|
155039
|
+
adSourceName: "",
|
|
155040
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155041
|
+
});
|
|
155042
|
+
break;
|
|
155043
|
+
case "impression":
|
|
155044
|
+
postEventTracking({
|
|
155045
|
+
eventName: "IMP",
|
|
155046
|
+
spaceUnitId: params.options.adGroupId,
|
|
155047
|
+
requestId: requestId,
|
|
155048
|
+
responseId: "",
|
|
155049
|
+
mediationType: "ADMOB",
|
|
155050
|
+
format: "",
|
|
155051
|
+
adSourceName: "",
|
|
155052
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155053
|
+
});
|
|
155054
|
+
break;
|
|
155055
|
+
case "clicked":
|
|
155056
|
+
postEventTracking({
|
|
155057
|
+
eventName: "CLICK",
|
|
155058
|
+
spaceUnitId: params.options.adGroupId,
|
|
155059
|
+
requestId: requestId,
|
|
155060
|
+
responseId: "",
|
|
155061
|
+
mediationType: "ADMOB",
|
|
155062
|
+
format: "",
|
|
155063
|
+
adSourceName: "",
|
|
155064
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155065
|
+
});
|
|
155066
|
+
break;
|
|
155067
|
+
case "dismissed":
|
|
155068
|
+
postEventTracking({
|
|
155069
|
+
eventName: "DISMISS",
|
|
155070
|
+
spaceUnitId: params.options.adGroupId,
|
|
155071
|
+
requestId: requestId,
|
|
155072
|
+
responseId: "",
|
|
155073
|
+
mediationType: "ADMOB",
|
|
155074
|
+
format: "",
|
|
155075
|
+
adSourceName: "",
|
|
155076
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155077
|
+
});
|
|
155078
|
+
break;
|
|
155079
|
+
case "userEarnedReward":
|
|
155080
|
+
postEventTracking({
|
|
155081
|
+
eventName: "USER_EARNED_REWARD",
|
|
155082
|
+
spaceUnitId: params.options.adGroupId,
|
|
155083
|
+
requestId: requestId,
|
|
155084
|
+
responseId: "",
|
|
155085
|
+
mediationType: "ADMOB",
|
|
155086
|
+
format: "",
|
|
155087
|
+
adSourceName: "",
|
|
155088
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155089
|
+
});
|
|
155090
|
+
break;
|
|
155091
|
+
}
|
|
155092
|
+
return params.onEvent(event);
|
|
155093
|
+
},
|
|
155094
|
+
onError: function onError(error) {
|
|
155095
|
+
var _INTG_AD_ADM_FALLBACK3;
|
|
155096
|
+
var requestId = (_INTG_AD_ADM_FALLBACK3 = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) != null ? _INTG_AD_ADM_FALLBACK3 : "";
|
|
155097
|
+
postEventTracking({
|
|
155098
|
+
eventName: "FAILED_TO_SHOW",
|
|
155099
|
+
spaceUnitId: params.options.adGroupId,
|
|
155100
|
+
requestId: requestId,
|
|
155101
|
+
responseId: "",
|
|
155102
|
+
mediationType: "ADMOB",
|
|
155103
|
+
format: "",
|
|
155104
|
+
adSourceName: "",
|
|
155105
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155106
|
+
});
|
|
155107
|
+
return params.onError(error);
|
|
155108
|
+
}
|
|
155109
|
+
}));
|
|
155110
|
+
}
|
|
155111
|
+
var onEvent = params.onEvent,
|
|
155112
|
+
_onError5 = params.onError,
|
|
155113
|
+
options = params.options;
|
|
155114
|
+
var adGroupId = options.adGroupId;
|
|
155115
|
+
var referrer = getReferrer();
|
|
155116
|
+
var unregisterCallbacks = import_native_modules17.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("showTossAdOrAdmob", {
|
|
155117
|
+
spaceUnitId: adGroupId,
|
|
155118
|
+
referrer: referrer,
|
|
155119
|
+
sessionId: sessionId
|
|
155120
|
+
}, {
|
|
155121
|
+
onAdClicked: function onAdClicked() {
|
|
155122
|
+
onEvent({
|
|
155123
|
+
type: "clicked"
|
|
155124
|
+
});
|
|
155125
|
+
},
|
|
155126
|
+
onAdDismissed: function onAdDismissed() {
|
|
155127
|
+
onEvent({
|
|
155128
|
+
type: "dismissed"
|
|
155129
|
+
});
|
|
155130
|
+
},
|
|
155131
|
+
onAdFailedToShow: function onAdFailedToShow() {
|
|
155132
|
+
onEvent({
|
|
155133
|
+
type: "failedToShow"
|
|
155134
|
+
});
|
|
155135
|
+
},
|
|
155136
|
+
onAdImpression: function onAdImpression() {
|
|
155137
|
+
onEvent({
|
|
155138
|
+
type: "impression"
|
|
155139
|
+
});
|
|
155140
|
+
},
|
|
155141
|
+
onAdShow: function onAdShow() {
|
|
155142
|
+
onEvent({
|
|
155143
|
+
type: "show"
|
|
155144
|
+
});
|
|
155145
|
+
},
|
|
155146
|
+
onUserEarnedReward: function onUserEarnedReward(data) {
|
|
155147
|
+
onEvent({
|
|
155148
|
+
type: "userEarnedReward",
|
|
155149
|
+
data: data
|
|
155150
|
+
});
|
|
155151
|
+
},
|
|
155152
|
+
onSuccess: function onSuccess() {
|
|
155153
|
+
onEvent({
|
|
155154
|
+
type: "requested"
|
|
155155
|
+
});
|
|
155156
|
+
},
|
|
155157
|
+
onError: function onError(error) {
|
|
155158
|
+
_onError5(error);
|
|
155159
|
+
}
|
|
155160
|
+
});
|
|
155161
|
+
return unregisterCallbacks;
|
|
155162
|
+
}
|
|
155163
|
+
_showFullScreenAd.isSupported = import_native_modules17.GoogleAdMob.showAppsInTossAdMob.isSupported;
|
|
155164
|
+
var import_native_modules18 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155165
|
+
var import_react_native31 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155166
|
+
function tossAdEventLog(_x4) {
|
|
155167
|
+
return _tossAdEventLog.apply(this, arguments);
|
|
155168
|
+
}
|
|
155169
|
+
function _tossAdEventLog() {
|
|
155170
|
+
_tossAdEventLog = _asyncToGenerator(function* (params) {
|
|
155171
|
+
var referrer = getReferrer();
|
|
155172
|
+
var appName = import_react_native31.Granite.appName;
|
|
155173
|
+
var eventLogParams = Object.assign({}, params, {
|
|
155174
|
+
params: Object.assign({}, params.params, {
|
|
155175
|
+
referrer: referrer,
|
|
155176
|
+
app_name: appName
|
|
155177
|
+
})
|
|
155178
|
+
});
|
|
155179
|
+
return import_native_modules18.INTERNAL__module.tossCoreEventLog(eventLogParams);
|
|
155180
|
+
});
|
|
155181
|
+
return _tossAdEventLog.apply(this, arguments);
|
|
155182
|
+
}
|
|
154823
155183
|
var import_react22 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154824
155184
|
function serializeError(error) {
|
|
154825
155185
|
return JSON.stringify(error, function (_, value) {
|
|
@@ -154945,7 +155305,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154945
155305
|
}
|
|
154946
155306
|
}
|
|
154947
155307
|
});
|
|
154948
|
-
return function (
|
|
155308
|
+
return function (_x5) {
|
|
154949
155309
|
return _ref68.apply(this, arguments);
|
|
154950
155310
|
};
|
|
154951
155311
|
}(), [onMessage]);
|
|
@@ -155018,7 +155378,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155018
155378
|
}, [emitter, insets]);
|
|
155019
155379
|
return emitter;
|
|
155020
155380
|
}
|
|
155021
|
-
var
|
|
155381
|
+
var import_react_native32 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155022
155382
|
var import_tds_react_native13 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
155023
155383
|
var import_es_hangul5 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
155024
155384
|
var import_react25 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
@@ -155106,7 +155466,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155106
155466
|
var _useWebViewHistory = useWebViewHistory(),
|
|
155107
155467
|
hasHistory = _useWebViewHistory.hasHistory,
|
|
155108
155468
|
onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
155109
|
-
var _ref73 = (0,
|
|
155469
|
+
var _ref73 = (0, import_react_native32.useBackEventState)(),
|
|
155110
155470
|
webBackHandlersRef = _ref73.handlersRef,
|
|
155111
155471
|
hasWebBackEvent = _ref73.hasBackEvent,
|
|
155112
155472
|
addWebBackEventListener = _ref73.addEventListener,
|
|
@@ -155142,7 +155502,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155142
155502
|
logging.closePopupCtaClick(isConfirmed);
|
|
155143
155503
|
if (isConfirmed) {
|
|
155144
155504
|
captureExitLog(Date.now());
|
|
155145
|
-
(0,
|
|
155505
|
+
(0, import_react_native32.closeView)();
|
|
155146
155506
|
}
|
|
155147
155507
|
}
|
|
155148
155508
|
}), [captureExitLog, global2.brandDisplayName, hasHistory, hasWebBackEvent, webBackHandlersRef, logging, openConfirm, webViewRef]);
|
|
@@ -155181,8 +155541,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155181
155541
|
});
|
|
155182
155542
|
};
|
|
155183
155543
|
}
|
|
155184
|
-
var
|
|
155185
|
-
var
|
|
155544
|
+
var import_native_modules19 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155545
|
+
var import_react_native33 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
155186
155546
|
var FontA11yCategory = {
|
|
155187
155547
|
Large: "Large",
|
|
155188
155548
|
xLarge: "xLarge",
|
|
@@ -155318,23 +155678,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155318
155678
|
pureSafeArea = _ref76.pureSafeArea,
|
|
155319
155679
|
safeArea = _ref76.safeArea,
|
|
155320
155680
|
safeAreaBottomTransparency = _ref76.safeAreaBottomTransparency;
|
|
155321
|
-
var platform = (0,
|
|
155322
|
-
var appVersion = (0,
|
|
155323
|
-
var _ref77 = (0,
|
|
155681
|
+
var platform = (0, import_native_modules19.getPlatformOS)();
|
|
155682
|
+
var appVersion = (0, import_native_modules19.getTossAppVersion)();
|
|
155683
|
+
var _ref77 = (0, import_react_native33.useWindowDimensions)(),
|
|
155324
155684
|
fontScale = _ref77.fontScale;
|
|
155325
155685
|
var platformString = platform === "ios" ? "iPhone" : "Android phone";
|
|
155326
155686
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
155327
155687
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
155328
155688
|
return ["AppsInToss", "TossApp/" + appVersion, batteryModePreference && "TossBatteryModePreference/" + batteryModePreference, colorPreference && "TossColorPreference/" + colorPreference, "TossFontAccessibility/" + fontA11y, "TossFontScale/" + normalizedFontScale, locale && "TossLocale/" + locale, navbarPreference && "TossNavbarPreference/" + navbarPreference, pureSafeArea && "TossPureSafeArea/" + pureSafeArea, safeArea && "TossSafeArea/" + safeArea, safeAreaBottomTransparency && "TossSafeAreaBottomTransparency/" + safeAreaBottomTransparency, platformString].filter(Boolean).join(" ");
|
|
155329
155689
|
}
|
|
155330
|
-
var
|
|
155331
|
-
var
|
|
155690
|
+
var import_native_modules20 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155691
|
+
var import_react_native34 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155332
155692
|
var import_react26 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155333
155693
|
function _useGeolocation(_ref78) {
|
|
155334
155694
|
var accuracy = _ref78.accuracy,
|
|
155335
155695
|
distanceInterval = _ref78.distanceInterval,
|
|
155336
155696
|
timeInterval = _ref78.timeInterval;
|
|
155337
|
-
var isVisible = (0,
|
|
155697
|
+
var isVisible = (0, import_react_native34.useVisibility)();
|
|
155338
155698
|
var _ref79 = (0, import_react26.useState)(null),
|
|
155339
155699
|
_ref80 = _slicedToArray(_ref79, 2),
|
|
155340
155700
|
location = _ref80[0],
|
|
@@ -155343,7 +155703,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155343
155703
|
if (!isVisible) {
|
|
155344
155704
|
return;
|
|
155345
155705
|
}
|
|
155346
|
-
return (0,
|
|
155706
|
+
return (0, import_native_modules20.startUpdateLocation)({
|
|
155347
155707
|
options: {
|
|
155348
155708
|
accuracy: accuracy,
|
|
155349
155709
|
distanceInterval: distanceInterval,
|
|
@@ -155355,11 +155715,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155355
155715
|
}, [accuracy, distanceInterval, timeInterval, isVisible]);
|
|
155356
155716
|
return location;
|
|
155357
155717
|
}
|
|
155358
|
-
var
|
|
155718
|
+
var import_react_native35 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155359
155719
|
var import_react27 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155360
155720
|
function _useWaitForReturnNavigator() {
|
|
155361
155721
|
var callbacks = (0, import_react27.useRef)([]).current;
|
|
155362
|
-
var navigation = (0,
|
|
155722
|
+
var navigation = (0, import_react_native35.useNavigation)();
|
|
155363
155723
|
var startNavigating = (0, import_react27.useCallback)(function (route, params) {
|
|
155364
155724
|
return new Promise(function (resolve) {
|
|
155365
155725
|
callbacks.push(resolve);
|
|
@@ -155374,7 +155734,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155374
155734
|
callbacks.splice(0, callbacks.length);
|
|
155375
155735
|
}
|
|
155376
155736
|
}, [callbacks]);
|
|
155377
|
-
(0,
|
|
155737
|
+
(0, import_react_native35.useVisibilityChange)(handleVisibilityChange);
|
|
155378
155738
|
return startNavigating;
|
|
155379
155739
|
}
|
|
155380
155740
|
function _useTopNavigation() {
|
|
@@ -155386,8 +155746,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155386
155746
|
removeAccessoryButton: removeNavigationRightButton
|
|
155387
155747
|
};
|
|
155388
155748
|
}
|
|
155389
|
-
var
|
|
155390
|
-
var
|
|
155749
|
+
var import_native_modules21 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155750
|
+
var import_react_native36 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155391
155751
|
var extractDateFromUUIDv7 = function extractDateFromUUIDv7(uuid) {
|
|
155392
155752
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
155393
155753
|
var timestamp = Number.parseInt(timestampHex, 16);
|
|
@@ -155400,18 +155760,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155400
155760
|
groupId: urlObject.pathname,
|
|
155401
155761
|
search: urlObject.search.startsWith("?") ? urlObject.search.substring(1) : urlObject.search
|
|
155402
155762
|
};
|
|
155403
|
-
} catch (
|
|
155763
|
+
} catch (_unused6) {
|
|
155404
155764
|
return {
|
|
155405
155765
|
groupId: "unknown",
|
|
155406
155766
|
search: "unknown"
|
|
155407
155767
|
};
|
|
155408
155768
|
}
|
|
155409
155769
|
};
|
|
155410
|
-
var
|
|
155770
|
+
var getReferrer2 = function getReferrer2() {
|
|
155411
155771
|
try {
|
|
155412
|
-
var referrer = new URL((0,
|
|
155772
|
+
var referrer = new URL((0, import_react_native36.getSchemeUri)());
|
|
155413
155773
|
return referrer.searchParams.get("referrer");
|
|
155414
|
-
} catch (
|
|
155774
|
+
} catch (_unused7) {
|
|
155415
155775
|
return "";
|
|
155416
155776
|
}
|
|
155417
155777
|
};
|
|
@@ -155424,12 +155784,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155424
155784
|
log_name: groupId + "::screen",
|
|
155425
155785
|
params: {
|
|
155426
155786
|
search: search,
|
|
155427
|
-
referrer:
|
|
155787
|
+
referrer: getReferrer2(),
|
|
155428
155788
|
deployment_id: _env.getDeploymentId(),
|
|
155429
155789
|
deployment_timestamp: extractDateFromUUIDv7(_env.getDeploymentId()).getTime()
|
|
155430
155790
|
}
|
|
155431
155791
|
};
|
|
155432
|
-
return (0,
|
|
155792
|
+
return (0, import_native_modules21.eventLog)(log);
|
|
155433
155793
|
};
|
|
155434
155794
|
var import_jsx_runtime18 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
155435
155795
|
var operationalEnvironment = appsInTossConstantBridges.getOperationalEnvironment();
|
|
@@ -155441,7 +155801,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155441
155801
|
};
|
|
155442
155802
|
function mergeSchemeQueryParamsInto(url) {
|
|
155443
155803
|
var baseUrl = new URL(url);
|
|
155444
|
-
var schemeUrl = new URL((0,
|
|
155804
|
+
var schemeUrl = new URL((0, import_react_native37.getSchemeUri)());
|
|
155445
155805
|
baseUrl.pathname = schemeUrl.pathname;
|
|
155446
155806
|
for (var _ref81 of schemeUrl.searchParams.entries()) {
|
|
155447
155807
|
var _ref82 = _slicedToArray(_ref81, 2);
|
|
@@ -155456,7 +155816,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155456
155816
|
var devUrl = "http://" + local.host + ":" + local.port;
|
|
155457
155817
|
return mergeSchemeQueryParamsInto(devUrl).toString();
|
|
155458
155818
|
}
|
|
155459
|
-
var _import_native_module =
|
|
155819
|
+
var _import_native_module = import_native_modules22.AppsInTossModule.getWebBundleURL({}),
|
|
155460
155820
|
rawUrl = _import_native_module.url;
|
|
155461
155821
|
var url = mergeSchemeQueryParamsInto(rawUrl);
|
|
155462
155822
|
var deploymentId = _env.getDeploymentId();
|
|
@@ -155510,7 +155870,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155510
155870
|
var onEvent = _ref88.onEvent,
|
|
155511
155871
|
onError = _ref88.onError,
|
|
155512
155872
|
options = _ref88.options;
|
|
155513
|
-
return
|
|
155873
|
+
return import_native_modules22.appsInTossEvent.addEventListener("updateLocationEvent", {
|
|
155514
155874
|
onEvent: onEvent,
|
|
155515
155875
|
onError: onError,
|
|
155516
155876
|
options: options
|
|
@@ -155527,20 +155887,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155527
155887
|
var onEvent = _ref90.onEvent,
|
|
155528
155888
|
onError = _ref90.onError,
|
|
155529
155889
|
options = _ref90.options;
|
|
155530
|
-
return
|
|
155890
|
+
return import_native_modules22.appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
|
|
155531
155891
|
onEvent: onEvent,
|
|
155532
155892
|
onError: onError,
|
|
155533
155893
|
options: options
|
|
155534
155894
|
});
|
|
155535
155895
|
},
|
|
155536
|
-
loadAdMobInterstitialAd:
|
|
155537
|
-
showAdMobInterstitialAd:
|
|
155538
|
-
loadAdMobRewardedAd:
|
|
155539
|
-
showAdMobRewardedAd:
|
|
155540
|
-
loadAppsInTossAdMob:
|
|
155541
|
-
showAppsInTossAdMob:
|
|
155542
|
-
|
|
155543
|
-
|
|
155896
|
+
loadAdMobInterstitialAd: import_native_modules22.GoogleAdMob.loadAdMobInterstitialAd,
|
|
155897
|
+
showAdMobInterstitialAd: import_native_modules22.GoogleAdMob.showAdMobInterstitialAd,
|
|
155898
|
+
loadAdMobRewardedAd: import_native_modules22.GoogleAdMob.loadAdMobRewardedAd,
|
|
155899
|
+
showAdMobRewardedAd: import_native_modules22.GoogleAdMob.showAdMobRewardedAd,
|
|
155900
|
+
loadAppsInTossAdMob: import_native_modules22.GoogleAdMob.loadAppsInTossAdMob,
|
|
155901
|
+
showAppsInTossAdMob: import_native_modules22.GoogleAdMob.showAppsInTossAdMob,
|
|
155902
|
+
loadFullScreenAd: loadFullScreenAdForWeb,
|
|
155903
|
+
showFullScreenAd: _showFullScreenAd,
|
|
155904
|
+
fetchTossAd: fetchTossAd,
|
|
155905
|
+
iapCreateOneTimePurchaseOrder: import_native_modules22.IAP.createOneTimePurchaseOrder,
|
|
155906
|
+
requestOneTimePurchase: import_native_modules22.requestOneTimePurchase
|
|
155544
155907
|
}),
|
|
155545
155908
|
constantHandlerMap: Object.assign({}, appsInTossConstantBridges, {
|
|
155546
155909
|
getSafeAreaTop: function getSafeAreaTop() {
|
|
@@ -155563,12 +155926,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155563
155926
|
return value;
|
|
155564
155927
|
}];
|
|
155565
155928
|
})), {
|
|
155566
|
-
loadAdMobInterstitialAd_isSupported:
|
|
155567
|
-
showAdMobInterstitialAd_isSupported:
|
|
155568
|
-
loadAdMobRewardedAd_isSupported:
|
|
155569
|
-
showAdMobRewardedAd_isSupported:
|
|
155570
|
-
loadAppsInTossAdMob_isSupported:
|
|
155571
|
-
showAppsInTossAdMob_isSupported:
|
|
155929
|
+
loadAdMobInterstitialAd_isSupported: import_native_modules22.GoogleAdMob.loadAdMobInterstitialAd.isSupported,
|
|
155930
|
+
showAdMobInterstitialAd_isSupported: import_native_modules22.GoogleAdMob.showAdMobInterstitialAd.isSupported,
|
|
155931
|
+
loadAdMobRewardedAd_isSupported: import_native_modules22.GoogleAdMob.loadAdMobRewardedAd.isSupported,
|
|
155932
|
+
showAdMobRewardedAd_isSupported: import_native_modules22.GoogleAdMob.showAdMobRewardedAd.isSupported,
|
|
155933
|
+
loadAppsInTossAdMob_isSupported: import_native_modules22.GoogleAdMob.loadAppsInTossAdMob.isSupported,
|
|
155934
|
+
showAppsInTossAdMob_isSupported: import_native_modules22.GoogleAdMob.showAppsInTossAdMob.isSupported,
|
|
155935
|
+
loadFullScreenAd_isSupported: loadFullScreenAdForWeb.isSupported,
|
|
155936
|
+
showFullScreenAd_isSupported: _showFullScreenAd.isSupported,
|
|
155937
|
+
fetchTossAd_isSupported: fetchTossAd.isSupported,
|
|
155572
155938
|
getDeploymentId: _env.getDeploymentId
|
|
155573
155939
|
}),
|
|
155574
155940
|
asyncHandlerMap: Object.assign({}, appsInTossAsyncBridges, {
|
|
@@ -155580,7 +155946,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155580
155946
|
var _addAccessoryButton = _asyncToGenerator(function* (params) {
|
|
155581
155947
|
return navigationBarContext.addNavigationRightButton(params);
|
|
155582
155948
|
});
|
|
155583
|
-
function addAccessoryButton(
|
|
155949
|
+
function addAccessoryButton(_x6) {
|
|
155584
155950
|
return _addAccessoryButton.apply(this, arguments);
|
|
155585
155951
|
}
|
|
155586
155952
|
return addAccessoryButton;
|
|
@@ -155603,17 +155969,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155603
155969
|
fetchContacts: appsInTossAsyncBridges.fetchContacts,
|
|
155604
155970
|
getCurrentLocation: appsInTossAsyncBridges.getCurrentLocation,
|
|
155605
155971
|
openCamera: appsInTossAsyncBridges.openCamera,
|
|
155606
|
-
getStorageItem:
|
|
155607
|
-
setStorageItem:
|
|
155608
|
-
removeStorageItem:
|
|
155609
|
-
clearItems:
|
|
155610
|
-
iapGetProductItemList:
|
|
155611
|
-
iapCreateOneTimePurchaseOrder:
|
|
155612
|
-
processProductGrant:
|
|
155613
|
-
getPendingOrders:
|
|
155614
|
-
getCompletedOrRefundedOrders:
|
|
155615
|
-
completeProductGrant:
|
|
155616
|
-
|
|
155972
|
+
getStorageItem: import_native_modules22.Storage.getItem,
|
|
155973
|
+
setStorageItem: import_native_modules22.Storage.setItem,
|
|
155974
|
+
removeStorageItem: import_native_modules22.Storage.removeItem,
|
|
155975
|
+
clearItems: import_native_modules22.Storage.clearItems,
|
|
155976
|
+
iapGetProductItemList: import_native_modules22.IAP.getProductItemList,
|
|
155977
|
+
iapCreateOneTimePurchaseOrder: import_native_modules22.iapCreateOneTimePurchaseOrder,
|
|
155978
|
+
processProductGrant: import_native_modules22.processProductGrant,
|
|
155979
|
+
getPendingOrders: import_native_modules22.IAP.getPendingOrders,
|
|
155980
|
+
getCompletedOrRefundedOrders: import_native_modules22.IAP.getCompletedOrRefundedOrders,
|
|
155981
|
+
completeProductGrant: import_native_modules22.IAP.completeProductGrant,
|
|
155982
|
+
tossAdEventLog: tossAdEventLog
|
|
155617
155983
|
})
|
|
155618
155984
|
});
|
|
155619
155985
|
var headerPropForExternalWebView = (0, import_react28.useMemo)(function () {
|
|
@@ -155643,9 +156009,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155643
156009
|
webBackHandler.handleWebBack();
|
|
155644
156010
|
return true;
|
|
155645
156011
|
};
|
|
155646
|
-
|
|
156012
|
+
import_react_native38.BackHandler.addEventListener("hardwareBackPress", callback);
|
|
155647
156013
|
return function () {
|
|
155648
|
-
return
|
|
156014
|
+
return import_react_native38.BackHandler.removeEventListener("hardwareBackPress", callback);
|
|
155649
156015
|
};
|
|
155650
156016
|
}, [webBackHandler]);
|
|
155651
156017
|
var globalScripts = useGlobalScripts();
|
|
@@ -155667,14 +156033,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155667
156033
|
props.onNavigationStateChange == null ? void 0 : props.onNavigationStateChange(event);
|
|
155668
156034
|
webBackHandler.onNavigationStateChange(event);
|
|
155669
156035
|
},
|
|
155670
|
-
userAgent:
|
|
156036
|
+
userAgent: import_react_native38.Platform.OS === "ios" ? userAgent : void 0,
|
|
155671
156037
|
sharedCookiesEnabled: true,
|
|
155672
156038
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
155673
156039
|
thirdPartyCookiesEnabled: true,
|
|
155674
156040
|
onMessage: handler.onMessage,
|
|
155675
156041
|
injectedJavaScript: globalScripts.afterLoad,
|
|
155676
156042
|
injectedJavaScriptBeforeContentLoaded: mergeScripts(handler.injectedJavaScript, globalScripts.beforeLoad),
|
|
155677
|
-
decelerationRate:
|
|
156043
|
+
decelerationRate: import_react_native38.Platform.OS === "ios" ? 1 : void 0,
|
|
155678
156044
|
allowsBackForwardNavigationGestures: allowsBackForwardNavigationGestures,
|
|
155679
156045
|
onShouldStartLoadWithRequest: function onShouldStartLoadWithRequest(event) {
|
|
155680
156046
|
try {
|
|
@@ -155683,7 +156049,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155683
156049
|
return true;
|
|
155684
156050
|
} else {
|
|
155685
156051
|
var _convertIntentURL;
|
|
155686
|
-
|
|
156052
|
+
import_react_native38.Linking.openURL((_convertIntentURL = convertIntentURL(url)) != null ? _convertIntentURL : url.href);
|
|
155687
156053
|
return false;
|
|
155688
156054
|
}
|
|
155689
156055
|
} catch (error) {
|
|
@@ -155691,49 +156057,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155691
156057
|
return false;
|
|
155692
156058
|
}
|
|
155693
156059
|
},
|
|
155694
|
-
originWhitelist: ["https://*", "http://*", "intoss://*", "intoss-private://*", "servicetoss://*", "supertoss://*", "intent://*"]
|
|
155695
|
-
onContentProcessDidTerminate: function onContentProcessDidTerminate(event) {
|
|
155696
|
-
var _webViewRef$current3;
|
|
155697
|
-
webViewProcessDidTerminateEventLog(event.nativeEvent.url);
|
|
155698
|
-
(_webViewRef$current3 = webViewRef.current) == null ? void 0 : _webViewRef$current3.reload();
|
|
155699
|
-
},
|
|
155700
|
-
onRenderProcessGone: function onRenderProcessGone() {
|
|
155701
|
-
var _webViewRef$current4;
|
|
155702
|
-
webViewProcessDidTerminateEventLog();
|
|
155703
|
-
(_webViewRef$current4 = webViewRef.current) == null ? void 0 : _webViewRef$current4.reload();
|
|
155704
|
-
}
|
|
156060
|
+
originWhitelist: ["https://*", "http://*", "intoss://*", "intoss-private://*", "servicetoss://*", "supertoss://*", "intent://*"]
|
|
155705
156061
|
}));
|
|
155706
156062
|
}
|
|
155707
|
-
function webViewMemoryDebugLog(_x6) {
|
|
155708
|
-
return _webViewMemoryDebugLog.apply(this, arguments);
|
|
155709
|
-
}
|
|
155710
|
-
function _webViewMemoryDebugLog() {
|
|
155711
|
-
_webViewMemoryDebugLog = _asyncToGenerator(function* (params) {
|
|
155712
|
-
webViewDebugLog("AppsInTossWebViewMemoryDebug", params);
|
|
155713
|
-
});
|
|
155714
|
-
return _webViewMemoryDebugLog.apply(this, arguments);
|
|
155715
|
-
}
|
|
155716
|
-
function webViewProcessDidTerminateEventLog(url) {
|
|
155717
|
-
webViewDebugLog("AppsInTossWebViewProcessDidTerminate", {
|
|
155718
|
-
url: url
|
|
155719
|
-
});
|
|
155720
|
-
}
|
|
155721
|
-
function webViewDebugLog(logName, params) {
|
|
155722
|
-
var global2 = getAppsInTossGlobals();
|
|
155723
|
-
var event = {
|
|
155724
|
-
log_name: logName,
|
|
155725
|
-
log_type: "debug",
|
|
155726
|
-
params: Object.assign({}, params, {
|
|
155727
|
-
app_name: import_react_native34.Granite.appName,
|
|
155728
|
-
deployment_id: global2.deploymentId
|
|
155729
|
-
})
|
|
155730
|
-
};
|
|
155731
|
-
if ((0, import_native_modules18.getOperationalEnvironment)() === "toss") {
|
|
155732
|
-
import_native_modules18.INTERNAL__module.tossCoreEventLog(event);
|
|
155733
|
-
} else {
|
|
155734
|
-
console.log("[webViewDebugLog]", event);
|
|
155735
|
-
}
|
|
155736
|
-
}
|
|
155737
156063
|
function useGlobalScripts() {
|
|
155738
156064
|
var global2 = getAppsInTossGlobals();
|
|
155739
156065
|
var disableTextSelectionCSS = "\n const style = document.createElement('style');\n style.textContent = '*:not(input):not(textarea) { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }';\n document.head.appendChild(style);\n ";
|
|
@@ -155768,6 +156094,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155768
156094
|
OverlayProvider: OverlayProvider,
|
|
155769
156095
|
WebView: _WebView,
|
|
155770
156096
|
env: _env,
|
|
156097
|
+
loadFullScreenAd: _loadFullScreenAd,
|
|
156098
|
+
showFullScreenAd: _showFullScreenAd,
|
|
155771
156099
|
useCreateUserAgent: _useCreateUserAgent,
|
|
155772
156100
|
useGeolocation: _useGeolocation,
|
|
155773
156101
|
useOverlay: useOverlay,
|