@apps-in-toss/web-framework 0.0.0-dev.1765876894045 → 0.0.0-dev.1765878631929
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 +154 -458
- package/dist/prebuilt/dev.ios.js +154 -458
- package/dist/prebuilt/prod.android.js +76 -385
- package/dist/prebuilt/prod.ios.js +76 -385
- package/package.json +8 -8
package/dist/prebuilt/dev.ios.js
CHANGED
|
@@ -153209,12 +153209,6 @@ __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
|
-
},
|
|
153218
153212
|
useCreateUserAgent: function useCreateUserAgent() {
|
|
153219
153213
|
return _useCreateUserAgent;
|
|
153220
153214
|
},
|
|
@@ -154623,16 +154617,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154623
154617
|
var _AppsInToss = {
|
|
154624
154618
|
registerApp: registerApp
|
|
154625
154619
|
};
|
|
154626
|
-
var
|
|
154620
|
+
var import_native_modules18 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154627
154621
|
var appsInTossAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[17], "@apps-in-toss/native-modules/async-bridges"), 1);
|
|
154628
154622
|
var appsInTossConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/native-modules/constant-bridges"), 1);
|
|
154629
154623
|
var appsInTossEventBridges = __toESM(_$$_REQUIRE(_dependencyMap[19], "@apps-in-toss/native-modules/event-bridges"), 1);
|
|
154630
154624
|
var import_react_native_safe_area_context4 = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
154631
|
-
var
|
|
154625
|
+
var import_react_native34 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154632
154626
|
var import_tds_react_native14 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154633
154627
|
var import_private9 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154634
154628
|
var import_react28 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154635
|
-
var
|
|
154629
|
+
var import_react_native35 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154636
154630
|
var import_native_modules14 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154637
154631
|
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[20], "@granite-js/native/react-native-webview");
|
|
154638
154632
|
var import_react19 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
@@ -154826,360 +154820,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154826
154820
|
}
|
|
154827
154821
|
return scheme + "://" + url.hostname + url.pathname + url.search;
|
|
154828
154822
|
}
|
|
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
|
-
}
|
|
155183
154823
|
var import_react22 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155184
154824
|
function serializeError(error) {
|
|
155185
154825
|
return JSON.stringify(error, function (_, value) {
|
|
@@ -155305,7 +154945,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155305
154945
|
}
|
|
155306
154946
|
}
|
|
155307
154947
|
});
|
|
155308
|
-
return function (
|
|
154948
|
+
return function (_x4) {
|
|
155309
154949
|
return _ref68.apply(this, arguments);
|
|
155310
154950
|
};
|
|
155311
154951
|
}(), [onMessage]);
|
|
@@ -155378,7 +155018,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155378
155018
|
}, [emitter, insets]);
|
|
155379
155019
|
return emitter;
|
|
155380
155020
|
}
|
|
155381
|
-
var
|
|
155021
|
+
var import_react_native29 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155382
155022
|
var import_tds_react_native13 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
155383
155023
|
var import_es_hangul5 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
155384
155024
|
var import_react25 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
@@ -155466,7 +155106,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155466
155106
|
var _useWebViewHistory = useWebViewHistory(),
|
|
155467
155107
|
hasHistory = _useWebViewHistory.hasHistory,
|
|
155468
155108
|
onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
155469
|
-
var _ref73 = (0,
|
|
155109
|
+
var _ref73 = (0, import_react_native29.useBackEventState)(),
|
|
155470
155110
|
webBackHandlersRef = _ref73.handlersRef,
|
|
155471
155111
|
hasWebBackEvent = _ref73.hasBackEvent,
|
|
155472
155112
|
addWebBackEventListener = _ref73.addEventListener,
|
|
@@ -155502,7 +155142,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155502
155142
|
logging.closePopupCtaClick(isConfirmed);
|
|
155503
155143
|
if (isConfirmed) {
|
|
155504
155144
|
captureExitLog(Date.now());
|
|
155505
|
-
(0,
|
|
155145
|
+
(0, import_react_native29.closeView)();
|
|
155506
155146
|
}
|
|
155507
155147
|
}
|
|
155508
155148
|
}), [captureExitLog, global2.brandDisplayName, hasHistory, hasWebBackEvent, webBackHandlersRef, logging, openConfirm, webViewRef]);
|
|
@@ -155541,8 +155181,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155541
155181
|
});
|
|
155542
155182
|
};
|
|
155543
155183
|
}
|
|
155544
|
-
var
|
|
155545
|
-
var
|
|
155184
|
+
var import_native_modules15 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155185
|
+
var import_react_native30 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
155546
155186
|
var FontA11yCategory = {
|
|
155547
155187
|
Large: "Large",
|
|
155548
155188
|
xLarge: "xLarge",
|
|
@@ -155678,23 +155318,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155678
155318
|
pureSafeArea = _ref76.pureSafeArea,
|
|
155679
155319
|
safeArea = _ref76.safeArea,
|
|
155680
155320
|
safeAreaBottomTransparency = _ref76.safeAreaBottomTransparency;
|
|
155681
|
-
var platform = (0,
|
|
155682
|
-
var appVersion = (0,
|
|
155683
|
-
var _ref77 = (0,
|
|
155321
|
+
var platform = (0, import_native_modules15.getPlatformOS)();
|
|
155322
|
+
var appVersion = (0, import_native_modules15.getTossAppVersion)();
|
|
155323
|
+
var _ref77 = (0, import_react_native30.useWindowDimensions)(),
|
|
155684
155324
|
fontScale = _ref77.fontScale;
|
|
155685
155325
|
var platformString = platform === "ios" ? "iPhone" : "Android phone";
|
|
155686
155326
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
155687
155327
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
155688
155328
|
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(" ");
|
|
155689
155329
|
}
|
|
155690
|
-
var
|
|
155691
|
-
var
|
|
155330
|
+
var import_native_modules16 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155331
|
+
var import_react_native31 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155692
155332
|
var import_react26 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155693
155333
|
function _useGeolocation(_ref78) {
|
|
155694
155334
|
var accuracy = _ref78.accuracy,
|
|
155695
155335
|
distanceInterval = _ref78.distanceInterval,
|
|
155696
155336
|
timeInterval = _ref78.timeInterval;
|
|
155697
|
-
var isVisible = (0,
|
|
155337
|
+
var isVisible = (0, import_react_native31.useVisibility)();
|
|
155698
155338
|
var _ref79 = (0, import_react26.useState)(null),
|
|
155699
155339
|
_ref80 = _slicedToArray(_ref79, 2),
|
|
155700
155340
|
location = _ref80[0],
|
|
@@ -155703,7 +155343,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155703
155343
|
if (!isVisible) {
|
|
155704
155344
|
return;
|
|
155705
155345
|
}
|
|
155706
|
-
return (0,
|
|
155346
|
+
return (0, import_native_modules16.startUpdateLocation)({
|
|
155707
155347
|
options: {
|
|
155708
155348
|
accuracy: accuracy,
|
|
155709
155349
|
distanceInterval: distanceInterval,
|
|
@@ -155715,11 +155355,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155715
155355
|
}, [accuracy, distanceInterval, timeInterval, isVisible]);
|
|
155716
155356
|
return location;
|
|
155717
155357
|
}
|
|
155718
|
-
var
|
|
155358
|
+
var import_react_native32 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155719
155359
|
var import_react27 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155720
155360
|
function _useWaitForReturnNavigator() {
|
|
155721
155361
|
var callbacks = (0, import_react27.useRef)([]).current;
|
|
155722
|
-
var navigation = (0,
|
|
155362
|
+
var navigation = (0, import_react_native32.useNavigation)();
|
|
155723
155363
|
var startNavigating = (0, import_react27.useCallback)(function (route, params) {
|
|
155724
155364
|
return new Promise(function (resolve) {
|
|
155725
155365
|
callbacks.push(resolve);
|
|
@@ -155734,7 +155374,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155734
155374
|
callbacks.splice(0, callbacks.length);
|
|
155735
155375
|
}
|
|
155736
155376
|
}, [callbacks]);
|
|
155737
|
-
(0,
|
|
155377
|
+
(0, import_react_native32.useVisibilityChange)(handleVisibilityChange);
|
|
155738
155378
|
return startNavigating;
|
|
155739
155379
|
}
|
|
155740
155380
|
function _useTopNavigation() {
|
|
@@ -155746,8 +155386,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155746
155386
|
removeAccessoryButton: removeNavigationRightButton
|
|
155747
155387
|
};
|
|
155748
155388
|
}
|
|
155749
|
-
var
|
|
155750
|
-
var
|
|
155389
|
+
var import_native_modules17 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155390
|
+
var import_react_native33 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155751
155391
|
var extractDateFromUUIDv7 = function extractDateFromUUIDv7(uuid) {
|
|
155752
155392
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
155753
155393
|
var timestamp = Number.parseInt(timestampHex, 16);
|
|
@@ -155760,18 +155400,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155760
155400
|
groupId: urlObject.pathname,
|
|
155761
155401
|
search: urlObject.search.startsWith("?") ? urlObject.search.substring(1) : urlObject.search
|
|
155762
155402
|
};
|
|
155763
|
-
} catch (
|
|
155403
|
+
} catch (_unused4) {
|
|
155764
155404
|
return {
|
|
155765
155405
|
groupId: "unknown",
|
|
155766
155406
|
search: "unknown"
|
|
155767
155407
|
};
|
|
155768
155408
|
}
|
|
155769
155409
|
};
|
|
155770
|
-
var
|
|
155410
|
+
var getReferrer = function getReferrer() {
|
|
155771
155411
|
try {
|
|
155772
|
-
var referrer = new URL((0,
|
|
155412
|
+
var referrer = new URL((0, import_react_native33.getSchemeUri)());
|
|
155773
155413
|
return referrer.searchParams.get("referrer");
|
|
155774
|
-
} catch (
|
|
155414
|
+
} catch (_unused5) {
|
|
155775
155415
|
return "";
|
|
155776
155416
|
}
|
|
155777
155417
|
};
|
|
@@ -155784,12 +155424,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155784
155424
|
log_name: groupId + "::screen",
|
|
155785
155425
|
params: {
|
|
155786
155426
|
search: search,
|
|
155787
|
-
referrer:
|
|
155427
|
+
referrer: getReferrer(),
|
|
155788
155428
|
deployment_id: _env.getDeploymentId(),
|
|
155789
155429
|
deployment_timestamp: extractDateFromUUIDv7(_env.getDeploymentId()).getTime()
|
|
155790
155430
|
}
|
|
155791
155431
|
};
|
|
155792
|
-
return (0,
|
|
155432
|
+
return (0, import_native_modules17.eventLog)(log);
|
|
155793
155433
|
};
|
|
155794
155434
|
var import_jsx_runtime18 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
155795
155435
|
var operationalEnvironment = appsInTossConstantBridges.getOperationalEnvironment();
|
|
@@ -155801,7 +155441,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155801
155441
|
};
|
|
155802
155442
|
function mergeSchemeQueryParamsInto(url) {
|
|
155803
155443
|
var baseUrl = new URL(url);
|
|
155804
|
-
var schemeUrl = new URL((0,
|
|
155444
|
+
var schemeUrl = new URL((0, import_react_native34.getSchemeUri)());
|
|
155805
155445
|
baseUrl.pathname = schemeUrl.pathname;
|
|
155806
155446
|
for (var _ref81 of schemeUrl.searchParams.entries()) {
|
|
155807
155447
|
var _ref82 = _slicedToArray(_ref81, 2);
|
|
@@ -155816,7 +155456,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155816
155456
|
var devUrl = "http://" + local.host + ":" + local.port;
|
|
155817
155457
|
return mergeSchemeQueryParamsInto(devUrl).toString();
|
|
155818
155458
|
}
|
|
155819
|
-
var _import_native_module =
|
|
155459
|
+
var _import_native_module = import_native_modules18.AppsInTossModule.getWebBundleURL({}),
|
|
155820
155460
|
rawUrl = _import_native_module.url;
|
|
155821
155461
|
var url = mergeSchemeQueryParamsInto(rawUrl);
|
|
155822
155462
|
var deploymentId = _env.getDeploymentId();
|
|
@@ -155870,7 +155510,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155870
155510
|
var onEvent = _ref88.onEvent,
|
|
155871
155511
|
onError = _ref88.onError,
|
|
155872
155512
|
options = _ref88.options;
|
|
155873
|
-
return
|
|
155513
|
+
return import_native_modules18.appsInTossEvent.addEventListener("updateLocationEvent", {
|
|
155874
155514
|
onEvent: onEvent,
|
|
155875
155515
|
onError: onError,
|
|
155876
155516
|
options: options
|
|
@@ -155887,23 +155527,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155887
155527
|
var onEvent = _ref90.onEvent,
|
|
155888
155528
|
onError = _ref90.onError,
|
|
155889
155529
|
options = _ref90.options;
|
|
155890
|
-
return
|
|
155530
|
+
return import_native_modules18.appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
|
|
155891
155531
|
onEvent: onEvent,
|
|
155892
155532
|
onError: onError,
|
|
155893
155533
|
options: options
|
|
155894
155534
|
});
|
|
155895
155535
|
},
|
|
155896
|
-
loadAdMobInterstitialAd:
|
|
155897
|
-
showAdMobInterstitialAd:
|
|
155898
|
-
loadAdMobRewardedAd:
|
|
155899
|
-
showAdMobRewardedAd:
|
|
155900
|
-
loadAppsInTossAdMob:
|
|
155901
|
-
showAppsInTossAdMob:
|
|
155902
|
-
|
|
155903
|
-
|
|
155904
|
-
fetchTossAd: fetchTossAd,
|
|
155905
|
-
iapCreateOneTimePurchaseOrder: import_native_modules22.IAP.createOneTimePurchaseOrder,
|
|
155906
|
-
requestOneTimePurchase: import_native_modules22.requestOneTimePurchase
|
|
155536
|
+
loadAdMobInterstitialAd: import_native_modules18.GoogleAdMob.loadAdMobInterstitialAd,
|
|
155537
|
+
showAdMobInterstitialAd: import_native_modules18.GoogleAdMob.showAdMobInterstitialAd,
|
|
155538
|
+
loadAdMobRewardedAd: import_native_modules18.GoogleAdMob.loadAdMobRewardedAd,
|
|
155539
|
+
showAdMobRewardedAd: import_native_modules18.GoogleAdMob.showAdMobRewardedAd,
|
|
155540
|
+
loadAppsInTossAdMob: import_native_modules18.GoogleAdMob.loadAppsInTossAdMob,
|
|
155541
|
+
showAppsInTossAdMob: import_native_modules18.GoogleAdMob.showAppsInTossAdMob,
|
|
155542
|
+
iapCreateOneTimePurchaseOrder: import_native_modules18.IAP.createOneTimePurchaseOrder,
|
|
155543
|
+
requestOneTimePurchase: import_native_modules18.requestOneTimePurchase
|
|
155907
155544
|
}),
|
|
155908
155545
|
constantHandlerMap: Object.assign({}, appsInTossConstantBridges, {
|
|
155909
155546
|
getSafeAreaTop: function getSafeAreaTop() {
|
|
@@ -155926,15 +155563,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155926
155563
|
return value;
|
|
155927
155564
|
}];
|
|
155928
155565
|
})), {
|
|
155929
|
-
loadAdMobInterstitialAd_isSupported:
|
|
155930
|
-
showAdMobInterstitialAd_isSupported:
|
|
155931
|
-
loadAdMobRewardedAd_isSupported:
|
|
155932
|
-
showAdMobRewardedAd_isSupported:
|
|
155933
|
-
loadAppsInTossAdMob_isSupported:
|
|
155934
|
-
showAppsInTossAdMob_isSupported:
|
|
155935
|
-
loadFullScreenAd_isSupported: loadFullScreenAdForWeb.isSupported,
|
|
155936
|
-
showFullScreenAd_isSupported: _showFullScreenAd.isSupported,
|
|
155937
|
-
fetchTossAd_isSupported: fetchTossAd.isSupported,
|
|
155566
|
+
loadAdMobInterstitialAd_isSupported: import_native_modules18.GoogleAdMob.loadAdMobInterstitialAd.isSupported,
|
|
155567
|
+
showAdMobInterstitialAd_isSupported: import_native_modules18.GoogleAdMob.showAdMobInterstitialAd.isSupported,
|
|
155568
|
+
loadAdMobRewardedAd_isSupported: import_native_modules18.GoogleAdMob.loadAdMobRewardedAd.isSupported,
|
|
155569
|
+
showAdMobRewardedAd_isSupported: import_native_modules18.GoogleAdMob.showAdMobRewardedAd.isSupported,
|
|
155570
|
+
loadAppsInTossAdMob_isSupported: import_native_modules18.GoogleAdMob.loadAppsInTossAdMob.isSupported,
|
|
155571
|
+
showAppsInTossAdMob_isSupported: import_native_modules18.GoogleAdMob.showAppsInTossAdMob.isSupported,
|
|
155938
155572
|
getDeploymentId: _env.getDeploymentId
|
|
155939
155573
|
}),
|
|
155940
155574
|
asyncHandlerMap: Object.assign({}, appsInTossAsyncBridges, {
|
|
@@ -155946,7 +155580,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155946
155580
|
var _addAccessoryButton = _asyncToGenerator(function* (params) {
|
|
155947
155581
|
return navigationBarContext.addNavigationRightButton(params);
|
|
155948
155582
|
});
|
|
155949
|
-
function addAccessoryButton(
|
|
155583
|
+
function addAccessoryButton(_x5) {
|
|
155950
155584
|
return _addAccessoryButton.apply(this, arguments);
|
|
155951
155585
|
}
|
|
155952
155586
|
return addAccessoryButton;
|
|
@@ -155969,17 +155603,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155969
155603
|
fetchContacts: appsInTossAsyncBridges.fetchContacts,
|
|
155970
155604
|
getCurrentLocation: appsInTossAsyncBridges.getCurrentLocation,
|
|
155971
155605
|
openCamera: appsInTossAsyncBridges.openCamera,
|
|
155972
|
-
getStorageItem:
|
|
155973
|
-
setStorageItem:
|
|
155974
|
-
removeStorageItem:
|
|
155975
|
-
clearItems:
|
|
155976
|
-
iapGetProductItemList:
|
|
155977
|
-
iapCreateOneTimePurchaseOrder:
|
|
155978
|
-
processProductGrant:
|
|
155979
|
-
getPendingOrders:
|
|
155980
|
-
getCompletedOrRefundedOrders:
|
|
155981
|
-
completeProductGrant:
|
|
155982
|
-
tossAdEventLog: tossAdEventLog
|
|
155606
|
+
getStorageItem: import_native_modules18.Storage.getItem,
|
|
155607
|
+
setStorageItem: import_native_modules18.Storage.setItem,
|
|
155608
|
+
removeStorageItem: import_native_modules18.Storage.removeItem,
|
|
155609
|
+
clearItems: import_native_modules18.Storage.clearItems,
|
|
155610
|
+
iapGetProductItemList: import_native_modules18.IAP.getProductItemList,
|
|
155611
|
+
iapCreateOneTimePurchaseOrder: import_native_modules18.iapCreateOneTimePurchaseOrder,
|
|
155612
|
+
processProductGrant: import_native_modules18.processProductGrant,
|
|
155613
|
+
getPendingOrders: import_native_modules18.IAP.getPendingOrders,
|
|
155614
|
+
getCompletedOrRefundedOrders: import_native_modules18.IAP.getCompletedOrRefundedOrders,
|
|
155615
|
+
completeProductGrant: import_native_modules18.IAP.completeProductGrant
|
|
155983
155616
|
})
|
|
155984
155617
|
});
|
|
155985
155618
|
var headerPropForExternalWebView = (0, import_react28.useMemo)(function () {
|
|
@@ -156009,9 +155642,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156009
155642
|
webBackHandler.handleWebBack();
|
|
156010
155643
|
return true;
|
|
156011
155644
|
};
|
|
156012
|
-
|
|
155645
|
+
import_react_native35.BackHandler.addEventListener("hardwareBackPress", callback);
|
|
156013
155646
|
return function () {
|
|
156014
|
-
return
|
|
155647
|
+
return import_react_native35.BackHandler.removeEventListener("hardwareBackPress", callback);
|
|
156015
155648
|
};
|
|
156016
155649
|
}, [webBackHandler]);
|
|
156017
155650
|
var globalScripts = useGlobalScripts();
|
|
@@ -156033,14 +155666,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156033
155666
|
props.onNavigationStateChange == null ? void 0 : props.onNavigationStateChange(event);
|
|
156034
155667
|
webBackHandler.onNavigationStateChange(event);
|
|
156035
155668
|
},
|
|
156036
|
-
userAgent:
|
|
155669
|
+
userAgent: import_react_native35.Platform.OS === "ios" ? userAgent : void 0,
|
|
156037
155670
|
sharedCookiesEnabled: true,
|
|
156038
155671
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
156039
155672
|
thirdPartyCookiesEnabled: true,
|
|
156040
155673
|
onMessage: handler.onMessage,
|
|
156041
155674
|
injectedJavaScript: globalScripts.afterLoad,
|
|
156042
155675
|
injectedJavaScriptBeforeContentLoaded: mergeScripts(handler.injectedJavaScript, globalScripts.beforeLoad),
|
|
156043
|
-
decelerationRate:
|
|
155676
|
+
decelerationRate: import_react_native35.Platform.OS === "ios" ? 1 : void 0,
|
|
156044
155677
|
allowsBackForwardNavigationGestures: allowsBackForwardNavigationGestures,
|
|
156045
155678
|
onShouldStartLoadWithRequest: function onShouldStartLoadWithRequest(event) {
|
|
156046
155679
|
try {
|
|
@@ -156049,7 +155682,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156049
155682
|
return true;
|
|
156050
155683
|
} else {
|
|
156051
155684
|
var _convertIntentURL;
|
|
156052
|
-
|
|
155685
|
+
import_react_native35.Linking.openURL((_convertIntentURL = convertIntentURL(url)) != null ? _convertIntentURL : url.href);
|
|
156053
155686
|
return false;
|
|
156054
155687
|
}
|
|
156055
155688
|
} catch (error) {
|
|
@@ -156094,8 +155727,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156094
155727
|
OverlayProvider: OverlayProvider,
|
|
156095
155728
|
WebView: _WebView,
|
|
156096
155729
|
env: _env,
|
|
156097
|
-
loadFullScreenAd: _loadFullScreenAd,
|
|
156098
|
-
showFullScreenAd: _showFullScreenAd,
|
|
156099
155730
|
useCreateUserAgent: _useCreateUserAgent,
|
|
156100
155731
|
useGeolocation: _useGeolocation,
|
|
156101
155732
|
useOverlay: useOverlay,
|
|
@@ -157695,19 +157326,43 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157695
157326
|
function _getTossAppVersion() {
|
|
157696
157327
|
return _AppsInTossModule.tossAppVersion;
|
|
157697
157328
|
}
|
|
157698
|
-
|
|
157329
|
+
var V2_MIN_VERSION = {
|
|
157330
|
+
android: "5.240.0",
|
|
157331
|
+
ios: "5.239.0"
|
|
157332
|
+
};
|
|
157333
|
+
function _getTossShareLink(_x7, _x8) {
|
|
157699
157334
|
return _getTossShareLink2.apply(this, arguments);
|
|
157700
157335
|
}
|
|
157701
157336
|
function _getTossShareLink2() {
|
|
157702
|
-
_getTossShareLink2 = _asyncToGenerator(function* (path) {
|
|
157703
|
-
|
|
157337
|
+
_getTossShareLink2 = _asyncToGenerator(function* (path, ogImageUrl) {
|
|
157338
|
+
if (!_isMinVersionSupported(V2_MIN_VERSION)) {
|
|
157339
|
+
return yield getTossShareLinkV1(path);
|
|
157340
|
+
}
|
|
157341
|
+
var params = {
|
|
157342
|
+
params: {
|
|
157343
|
+
url: path,
|
|
157344
|
+
ogImageUrl: ogImageUrl
|
|
157345
|
+
}
|
|
157346
|
+
};
|
|
157347
|
+
var _yield$_AppsInTossMod = yield _AppsInTossModule.getTossShareLink(params),
|
|
157704
157348
|
shareLink = _yield$_AppsInTossMod.shareLink;
|
|
157349
|
+
return shareLink;
|
|
157350
|
+
});
|
|
157351
|
+
return _getTossShareLink2.apply(this, arguments);
|
|
157352
|
+
}
|
|
157353
|
+
function getTossShareLinkV1(_x9) {
|
|
157354
|
+
return _getTossShareLinkV.apply(this, arguments);
|
|
157355
|
+
}
|
|
157356
|
+
function _getTossShareLinkV() {
|
|
157357
|
+
_getTossShareLinkV = _asyncToGenerator(function* (path) {
|
|
157358
|
+
var _yield$_AppsInTossMod2 = yield _AppsInTossModule.getTossShareLink({}),
|
|
157359
|
+
shareLink = _yield$_AppsInTossMod2.shareLink;
|
|
157705
157360
|
var shareUrl = new URL(shareLink);
|
|
157706
157361
|
shareUrl.searchParams.set("deep_link_value", path);
|
|
157707
157362
|
shareUrl.searchParams.set("af_dp", path);
|
|
157708
157363
|
return shareUrl.toString();
|
|
157709
157364
|
});
|
|
157710
|
-
return
|
|
157365
|
+
return _getTossShareLinkV.apply(this, arguments);
|
|
157711
157366
|
}
|
|
157712
157367
|
var import_es_toolkit3 = _$$_REQUIRE(_dependencyMap[11], "es-toolkit");
|
|
157713
157368
|
function _iapCreateOneTimePurchaseOrder(params) {
|
|
@@ -157800,7 +157455,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157800
157455
|
isProductGranted: isProductGranted
|
|
157801
157456
|
});
|
|
157802
157457
|
});
|
|
157803
|
-
function onPurchased(
|
|
157458
|
+
function onPurchased(_x10) {
|
|
157804
157459
|
return _onPurchased.apply(this, arguments);
|
|
157805
157460
|
}
|
|
157806
157461
|
return onPurchased;
|
|
@@ -157849,7 +157504,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157849
157504
|
});
|
|
157850
157505
|
return _getPendingOrders.apply(this, arguments);
|
|
157851
157506
|
}
|
|
157852
|
-
function getCompletedOrRefundedOrders(
|
|
157507
|
+
function getCompletedOrRefundedOrders(_x11) {
|
|
157853
157508
|
return _getCompletedOrRefundedOrders.apply(this, arguments);
|
|
157854
157509
|
}
|
|
157855
157510
|
function _getCompletedOrRefundedOrders() {
|
|
@@ -157867,7 +157522,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157867
157522
|
});
|
|
157868
157523
|
return _getCompletedOrRefundedOrders.apply(this, arguments);
|
|
157869
157524
|
}
|
|
157870
|
-
function completeProductGrant(
|
|
157525
|
+
function completeProductGrant(_x12) {
|
|
157871
157526
|
return _completeProductGrant.apply(this, arguments);
|
|
157872
157527
|
}
|
|
157873
157528
|
function _completeProductGrant() {
|
|
@@ -157890,7 +157545,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157890
157545
|
getCompletedOrRefundedOrders: getCompletedOrRefundedOrders,
|
|
157891
157546
|
completeProductGrant: completeProductGrant
|
|
157892
157547
|
};
|
|
157893
|
-
function _saveBase64Data(
|
|
157548
|
+
function _saveBase64Data(_x13) {
|
|
157894
157549
|
return _saveBase64Data2.apply(this, arguments);
|
|
157895
157550
|
}
|
|
157896
157551
|
function _saveBase64Data2() {
|
|
@@ -157907,7 +157562,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157907
157562
|
});
|
|
157908
157563
|
return _saveBase64Data2.apply(this, arguments);
|
|
157909
157564
|
}
|
|
157910
|
-
function _setDeviceOrientation(
|
|
157565
|
+
function _setDeviceOrientation(_x14) {
|
|
157911
157566
|
return _setDeviceOrientation2.apply(this, arguments);
|
|
157912
157567
|
}
|
|
157913
157568
|
function _setDeviceOrientation2() {
|
|
@@ -157998,7 +157653,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157998
157653
|
});
|
|
157999
157654
|
return _getGameCenterGameProfile2.apply(this, arguments);
|
|
158000
157655
|
}
|
|
158001
|
-
function _submitGameCenterLeaderBoardScore(
|
|
157656
|
+
function _submitGameCenterLeaderBoardScore(_x15) {
|
|
158002
157657
|
return _submitGameCenterLeaderBoardScore2.apply(this, arguments);
|
|
158003
157658
|
}
|
|
158004
157659
|
function _submitGameCenterLeaderBoardScore2() {
|
|
@@ -158038,7 +157693,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158038
157693
|
function isGrantPromotionRewardForGameError(error) {
|
|
158039
157694
|
return typeof error === "object" && error !== null && "code" in error && typeof error.code === "string" && "message" in error && typeof error.message === "string";
|
|
158040
157695
|
}
|
|
158041
|
-
function _grantPromotionRewardForGame(
|
|
157696
|
+
function _grantPromotionRewardForGame(_x16) {
|
|
158042
157697
|
return _grantPromotionRewardForGame2.apply(this, arguments);
|
|
158043
157698
|
}
|
|
158044
157699
|
function _grantPromotionRewardForGame2() {
|
|
@@ -158110,15 +157765,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158110
157765
|
});
|
|
158111
157766
|
return unregisterCallbacks;
|
|
158112
157767
|
}
|
|
158113
|
-
|
|
157768
|
+
var MIN_VERSION_BY_USER_TYPE = {
|
|
157769
|
+
USER_PERSONAL: {
|
|
157770
|
+
android: "5.233.0",
|
|
157771
|
+
ios: "5.233.0"
|
|
157772
|
+
},
|
|
157773
|
+
USER_NONE: {
|
|
157774
|
+
android: "5.236.0",
|
|
157775
|
+
ios: "5.236.0"
|
|
157776
|
+
}
|
|
157777
|
+
};
|
|
157778
|
+
function _appsInTossSignTossCert(_x17) {
|
|
158114
157779
|
return _appsInTossSignTossCert2.apply(this, arguments);
|
|
158115
157780
|
}
|
|
158116
157781
|
function _appsInTossSignTossCert2() {
|
|
158117
157782
|
_appsInTossSignTossCert2 = _asyncToGenerator(function* (params) {
|
|
158118
|
-
var
|
|
158119
|
-
|
|
158120
|
-
ios: "5.233.0"
|
|
158121
|
-
});
|
|
157783
|
+
var minVersion = params.skipConfirmDoc === true ? MIN_VERSION_BY_USER_TYPE.USER_NONE : MIN_VERSION_BY_USER_TYPE.USER_PERSONAL;
|
|
157784
|
+
var isSupported = _isMinVersionSupported(minVersion);
|
|
158122
157785
|
if (!isSupported) {
|
|
158123
157786
|
console.warn("appsInTossSignTossCert is not supported in this app version");
|
|
158124
157787
|
return;
|
|
@@ -158178,7 +157841,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158178
157841
|
function _generateHapticFeedback(options) {
|
|
158179
157842
|
return _BedrockModule.generateHapticFeedback(options);
|
|
158180
157843
|
}
|
|
158181
|
-
function _share(
|
|
157844
|
+
function _share(_x18) {
|
|
158182
157845
|
return _share2.apply(this, arguments);
|
|
158183
157846
|
}
|
|
158184
157847
|
function _share2() {
|
|
@@ -158190,7 +157853,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158190
157853
|
function _setSecureScreen(options) {
|
|
158191
157854
|
return _BedrockModule.setSecureScreen(options);
|
|
158192
157855
|
}
|
|
158193
|
-
function _setScreenAwakeMode(
|
|
157856
|
+
function _setScreenAwakeMode(_x19) {
|
|
158194
157857
|
return _setScreenAwakeMode2.apply(this, arguments);
|
|
158195
157858
|
}
|
|
158196
157859
|
function _setScreenAwakeMode2() {
|
|
@@ -158202,7 +157865,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158202
157865
|
function _getNetworkStatus() {
|
|
158203
157866
|
return _BedrockModule.getNetworkStatus();
|
|
158204
157867
|
}
|
|
158205
|
-
function _setIosSwipeGestureEnabled(
|
|
157868
|
+
function _setIosSwipeGestureEnabled(_x20) {
|
|
158206
157869
|
return _setIosSwipeGestureEnabled2.apply(this, arguments);
|
|
158207
157870
|
}
|
|
158208
157871
|
function _setIosSwipeGestureEnabled2() {
|
|
@@ -232708,21 +232371,46 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232708
232371
|
exports.getTossShareLink = getTossShareLink;
|
|
232709
232372
|
var _asyncToGenerator2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator"));
|
|
232710
232373
|
var _AppsInTossModule = _$$_REQUIRE(_dependencyMap[2], "./AppsInTossModule");
|
|
232711
|
-
|
|
232374
|
+
var _isMinVersionSupported = _$$_REQUIRE(_dependencyMap[3], "./isMinVersionSupported");
|
|
232375
|
+
var V2_MIN_VERSION = {
|
|
232376
|
+
android: '5.240.0',
|
|
232377
|
+
ios: '5.239.0'
|
|
232378
|
+
};
|
|
232379
|
+
function getTossShareLink(_x, _x2) {
|
|
232712
232380
|
return _getTossShareLink.apply(this, arguments);
|
|
232713
232381
|
}
|
|
232714
232382
|
function _getTossShareLink() {
|
|
232715
|
-
_getTossShareLink = (0, _asyncToGenerator2.default)(function* (path) {
|
|
232716
|
-
|
|
232383
|
+
_getTossShareLink = (0, _asyncToGenerator2.default)(function* (path, ogImageUrl) {
|
|
232384
|
+
if (!(0, _isMinVersionSupported.isMinVersionSupported)(V2_MIN_VERSION)) {
|
|
232385
|
+
return yield getTossShareLinkV1(path);
|
|
232386
|
+
}
|
|
232387
|
+
var params = {
|
|
232388
|
+
params: {
|
|
232389
|
+
url: path,
|
|
232390
|
+
ogImageUrl: ogImageUrl
|
|
232391
|
+
}
|
|
232392
|
+
};
|
|
232393
|
+
var _yield$AppsInTossModu = yield _AppsInTossModule.AppsInTossModule.getTossShareLink(params),
|
|
232717
232394
|
shareLink = _yield$AppsInTossModu.shareLink;
|
|
232395
|
+
return shareLink;
|
|
232396
|
+
});
|
|
232397
|
+
return _getTossShareLink.apply(this, arguments);
|
|
232398
|
+
}
|
|
232399
|
+
function getTossShareLinkV1(_x3) {
|
|
232400
|
+
return _getTossShareLinkV.apply(this, arguments);
|
|
232401
|
+
}
|
|
232402
|
+
function _getTossShareLinkV() {
|
|
232403
|
+
_getTossShareLinkV = (0, _asyncToGenerator2.default)(function* (path) {
|
|
232404
|
+
var _yield$AppsInTossModu2 = yield _AppsInTossModule.AppsInTossModule.getTossShareLink({}),
|
|
232405
|
+
shareLink = _yield$AppsInTossModu2.shareLink;
|
|
232718
232406
|
var shareUrl = new URL(shareLink);
|
|
232719
232407
|
shareUrl.searchParams.set('deep_link_value', path);
|
|
232720
232408
|
shareUrl.searchParams.set('af_dp', path);
|
|
232721
232409
|
return shareUrl.toString();
|
|
232722
232410
|
});
|
|
232723
|
-
return
|
|
232411
|
+
return _getTossShareLinkV.apply(this, arguments);
|
|
232724
232412
|
}
|
|
232725
|
-
},2593,[1,16,2579],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getTossShareLink.ts");
|
|
232413
|
+
},2593,[1,16,2579,2591],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getTossShareLink.ts");
|
|
232726
232414
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232727
232415
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
232728
232416
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -232805,15 +232493,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232805
232493
|
var _asyncToGenerator2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator"));
|
|
232806
232494
|
var _AppsInTossModule = _$$_REQUIRE(_dependencyMap[2], "./AppsInTossModule");
|
|
232807
232495
|
var _isMinVersionSupported = _$$_REQUIRE(_dependencyMap[3], "./isMinVersionSupported");
|
|
232496
|
+
var MIN_VERSION_BY_USER_TYPE = {
|
|
232497
|
+
USER_PERSONAL: {
|
|
232498
|
+
android: '5.233.0',
|
|
232499
|
+
ios: '5.233.0'
|
|
232500
|
+
},
|
|
232501
|
+
USER_NONE: {
|
|
232502
|
+
android: '5.236.0',
|
|
232503
|
+
ios: '5.236.0'
|
|
232504
|
+
}
|
|
232505
|
+
};
|
|
232808
232506
|
function appsInTossSignTossCert(_x) {
|
|
232809
232507
|
return _appsInTossSignTossCert.apply(this, arguments);
|
|
232810
232508
|
}
|
|
232811
232509
|
function _appsInTossSignTossCert() {
|
|
232812
232510
|
_appsInTossSignTossCert = (0, _asyncToGenerator2.default)(function* (params) {
|
|
232813
|
-
var
|
|
232814
|
-
|
|
232815
|
-
ios: '5.233.0'
|
|
232816
|
-
});
|
|
232511
|
+
var minVersion = params.skipConfirmDoc === true ? MIN_VERSION_BY_USER_TYPE.USER_NONE : MIN_VERSION_BY_USER_TYPE.USER_PERSONAL;
|
|
232512
|
+
var isSupported = (0, _isMinVersionSupported.isMinVersionSupported)(minVersion);
|
|
232817
232513
|
if (!isSupported) {
|
|
232818
232514
|
console.warn('appsInTossSignTossCert is not supported in this app version');
|
|
232819
232515
|
return;
|