@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
|
@@ -153388,12 +153388,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153388
153388
|
env: function env() {
|
|
153389
153389
|
return _env;
|
|
153390
153390
|
},
|
|
153391
|
-
loadFullScreenAd: function loadFullScreenAd() {
|
|
153392
|
-
return _loadFullScreenAd;
|
|
153393
|
-
},
|
|
153394
|
-
showFullScreenAd: function showFullScreenAd() {
|
|
153395
|
-
return _showFullScreenAd;
|
|
153396
|
-
},
|
|
153397
153391
|
useCreateUserAgent: function useCreateUserAgent() {
|
|
153398
153392
|
return _useCreateUserAgent;
|
|
153399
153393
|
},
|
|
@@ -154802,16 +154796,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154802
154796
|
var _AppsInToss = {
|
|
154803
154797
|
registerApp: registerApp
|
|
154804
154798
|
};
|
|
154805
|
-
var
|
|
154799
|
+
var import_native_modules18 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154806
154800
|
var appsInTossAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[17], "@apps-in-toss/native-modules/async-bridges"), 1);
|
|
154807
154801
|
var appsInTossConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/native-modules/constant-bridges"), 1);
|
|
154808
154802
|
var appsInTossEventBridges = __toESM(_$$_REQUIRE(_dependencyMap[19], "@apps-in-toss/native-modules/event-bridges"), 1);
|
|
154809
154803
|
var import_react_native_safe_area_context4 = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
154810
|
-
var
|
|
154804
|
+
var import_react_native34 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154811
154805
|
var import_tds_react_native14 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154812
154806
|
var import_private9 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154813
154807
|
var import_react28 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154814
|
-
var
|
|
154808
|
+
var import_react_native35 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154815
154809
|
var import_native_modules14 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154816
154810
|
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[20], "@granite-js/native/react-native-webview");
|
|
154817
154811
|
var import_react19 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
@@ -155005,360 +154999,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155005
154999
|
}
|
|
155006
155000
|
return scheme + "://" + url.hostname + url.pathname + url.search;
|
|
155007
155001
|
}
|
|
155008
|
-
var import_native_modules15 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155009
|
-
function noop() {}
|
|
155010
|
-
function generateSessionId() {
|
|
155011
|
-
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
|
|
155012
|
-
var r = Math.random() * 16 | 0;
|
|
155013
|
-
var v = c === "x" ? r : r & 3 | 8;
|
|
155014
|
-
return v.toString(16);
|
|
155015
|
-
});
|
|
155016
|
-
}
|
|
155017
|
-
var sessionId = generateSessionId();
|
|
155018
|
-
var ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
155019
|
-
var IOS_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
155020
|
-
var UNSUPPORTED_ERROR_MESSAGE = "This feature is not supported in the current environment";
|
|
155021
|
-
var ENVIRONMENT = (0, import_native_modules15.getOperationalEnvironment)();
|
|
155022
|
-
function fetchTossAd(params) {
|
|
155023
|
-
if (!fetchTossAd.isSupported()) {
|
|
155024
|
-
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
|
|
155025
|
-
return noop;
|
|
155026
|
-
}
|
|
155027
|
-
var onEvent = params.onEvent,
|
|
155028
|
-
_onError3 = params.onError,
|
|
155029
|
-
options = params.options;
|
|
155030
|
-
var adGroupId = options.adGroupId;
|
|
155031
|
-
var unregisterCallbacks = import_native_modules15.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("fetchTossAd", {
|
|
155032
|
-
spaceUnitId: adGroupId,
|
|
155033
|
-
sessionId: sessionId,
|
|
155034
|
-
sdkId: options.sdkId,
|
|
155035
|
-
availableStyleIds: options.availableStyleIds
|
|
155036
|
-
}, {
|
|
155037
|
-
onSuccess: function onSuccess(response) {
|
|
155038
|
-
onEvent(response);
|
|
155039
|
-
},
|
|
155040
|
-
onError: function onError(error) {
|
|
155041
|
-
_onError3(error);
|
|
155042
|
-
}
|
|
155043
|
-
});
|
|
155044
|
-
return unregisterCallbacks;
|
|
155045
|
-
}
|
|
155046
|
-
fetchTossAd.isSupported = function () {
|
|
155047
|
-
if (ENVIRONMENT !== "toss") {
|
|
155048
|
-
return false;
|
|
155049
|
-
}
|
|
155050
|
-
return (0, import_native_modules15.isMinVersionSupported)({
|
|
155051
|
-
android: ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION,
|
|
155052
|
-
ios: IOS_FETCH_TOSS_AD_SUPPORTED_VERSION
|
|
155053
|
-
});
|
|
155054
|
-
};
|
|
155055
|
-
var import_native_modules17 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155056
|
-
function generateRequestId() {
|
|
155057
|
-
var timestamp = Date.now().toString(36).toUpperCase();
|
|
155058
|
-
var random = Math.random().toString(36).substring(2, 7).toUpperCase();
|
|
155059
|
-
return "ait-" + timestamp + random;
|
|
155060
|
-
}
|
|
155061
|
-
var import_react_native29 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155062
|
-
function getReferrer() {
|
|
155063
|
-
try {
|
|
155064
|
-
return new URL((0, import_react_native29.getSchemeUri)()).searchParams.get("referrer");
|
|
155065
|
-
} catch (_unused4) {
|
|
155066
|
-
return null;
|
|
155067
|
-
}
|
|
155068
|
-
}
|
|
155069
|
-
var import_native_modules16 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155070
|
-
var import_react_native30 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155071
|
-
function getIsDev() {
|
|
155072
|
-
try {
|
|
155073
|
-
return new URL((0, import_react_native30.getSchemeUri)()).searchParams.get("isDev") === "true";
|
|
155074
|
-
} catch (_unused5) {
|
|
155075
|
-
return false;
|
|
155076
|
-
}
|
|
155077
|
-
}
|
|
155078
|
-
var OPERATIONAL_ENVIRONMENT = (0, import_native_modules16.getOperationalEnvironment)();
|
|
155079
|
-
var OS = (0, import_native_modules16.getPlatformOS)();
|
|
155080
|
-
var APP_VER = (0, import_native_modules16.getTossAppVersion)();
|
|
155081
|
-
var ALPHA_EVENT_TRACKER_HTTP_ENDPOINT = "https://alpha-trillion.toss.im/trk/sdk-mediation/event";
|
|
155082
|
-
var LIVE_EVENT_TRACKER_HTTP_ENDPOINT = "https://trillion.toss.im/trk/sdk-mediation/event";
|
|
155083
|
-
function getPostEventTrackingUrl() {
|
|
155084
|
-
var isDev = getIsDev();
|
|
155085
|
-
if (OPERATIONAL_ENVIRONMENT === "sandbox" || isDev) {
|
|
155086
|
-
return ALPHA_EVENT_TRACKER_HTTP_ENDPOINT;
|
|
155087
|
-
}
|
|
155088
|
-
return LIVE_EVENT_TRACKER_HTTP_ENDPOINT;
|
|
155089
|
-
}
|
|
155090
|
-
function postEventTracking(params) {
|
|
155091
|
-
var endpoint = getPostEventTrackingUrl();
|
|
155092
|
-
var bodyJSON = JSON.stringify(Object.assign({}, params, {
|
|
155093
|
-
os: OS,
|
|
155094
|
-
appVer: APP_VER,
|
|
155095
|
-
deviceIdType: "NONE",
|
|
155096
|
-
platform: "RN"
|
|
155097
|
-
}));
|
|
155098
|
-
return fetch(endpoint, {
|
|
155099
|
-
method: "POST",
|
|
155100
|
-
headers: {
|
|
155101
|
-
"Content-Type": "application/json"
|
|
155102
|
-
},
|
|
155103
|
-
body: bodyJSON
|
|
155104
|
-
}).catch(noop);
|
|
155105
|
-
}
|
|
155106
|
-
var INTEGRATED_AD_SDK_VERSION = "0.0.0";
|
|
155107
|
-
var ANDROID_INTEGRATED_AD_SUPPORTED_VERSION = "5.241.0";
|
|
155108
|
-
var IOS_INTEGRATED_AD_SUPPORTED_VERSION = "5.241.0";
|
|
155109
|
-
var UNSUPPORTED_ERROR_MESSAGE2 = "This feature is not supported in the current environment";
|
|
155110
|
-
var INTG_AD_ADM_FALLBACK_RID_MAP = {};
|
|
155111
|
-
function integratedAdIsSupported() {
|
|
155112
|
-
return (0, import_native_modules17.isMinVersionSupported)({
|
|
155113
|
-
android: ANDROID_INTEGRATED_AD_SUPPORTED_VERSION,
|
|
155114
|
-
ios: IOS_INTEGRATED_AD_SUPPORTED_VERSION
|
|
155115
|
-
});
|
|
155116
|
-
}
|
|
155117
|
-
function generateLoadFullScreenAd(sdkId) {
|
|
155118
|
-
var fn = function fn(params) {
|
|
155119
|
-
if (!import_native_modules17.GoogleAdMob.loadAppsInTossAdMob.isSupported()) {
|
|
155120
|
-
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
|
|
155121
|
-
return noop;
|
|
155122
|
-
}
|
|
155123
|
-
if (!integratedAdIsSupported()) {
|
|
155124
|
-
return import_native_modules17.GoogleAdMob.loadAppsInTossAdMob(Object.assign({}, params, {
|
|
155125
|
-
onEvent: function onEvent(event) {
|
|
155126
|
-
if (event.type === "loaded") {
|
|
155127
|
-
var _event$data$responseI, _event$data$responseI2;
|
|
155128
|
-
var requestId = generateRequestId();
|
|
155129
|
-
INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId] = requestId;
|
|
155130
|
-
postEventTracking({
|
|
155131
|
-
eventName: "LOAD",
|
|
155132
|
-
spaceUnitId: params.options.adGroupId,
|
|
155133
|
-
requestId: requestId,
|
|
155134
|
-
responseId: event.data.responseInfo.responseId,
|
|
155135
|
-
mediationType: "ADMOB",
|
|
155136
|
-
format: "",
|
|
155137
|
-
adSourceName: (_event$data$responseI = (_event$data$responseI2 = event.data.responseInfo.loadedAdNetworkInfo) == null ? void 0 : _event$data$responseI2.adSourceName) != null ? _event$data$responseI : "",
|
|
155138
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155139
|
-
});
|
|
155140
|
-
}
|
|
155141
|
-
return params.onEvent(event);
|
|
155142
|
-
},
|
|
155143
|
-
onError: function onError(error) {
|
|
155144
|
-
var _INTG_AD_ADM_FALLBACK;
|
|
155145
|
-
var requestId = (_INTG_AD_ADM_FALLBACK = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) != null ? _INTG_AD_ADM_FALLBACK : "";
|
|
155146
|
-
postEventTracking({
|
|
155147
|
-
eventName: "FAILED_TO_LOAD",
|
|
155148
|
-
spaceUnitId: params.options.adGroupId,
|
|
155149
|
-
requestId: requestId,
|
|
155150
|
-
responseId: "",
|
|
155151
|
-
mediationType: "ADMOB",
|
|
155152
|
-
format: "",
|
|
155153
|
-
adSourceName: "",
|
|
155154
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155155
|
-
});
|
|
155156
|
-
return params.onError(error);
|
|
155157
|
-
}
|
|
155158
|
-
}));
|
|
155159
|
-
}
|
|
155160
|
-
var onEvent = params.onEvent,
|
|
155161
|
-
_onError4 = params.onError,
|
|
155162
|
-
options = params.options;
|
|
155163
|
-
var adGroupId = options.adGroupId;
|
|
155164
|
-
var referrer = getReferrer();
|
|
155165
|
-
var unregisterCallbacks = import_native_modules17.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("loadTossAdOrAdmob", {
|
|
155166
|
-
spaceUnitId: adGroupId,
|
|
155167
|
-
referrer: referrer,
|
|
155168
|
-
sessionId: sessionId,
|
|
155169
|
-
sdkId: sdkId
|
|
155170
|
-
}, {
|
|
155171
|
-
onSuccess: function onSuccess() {
|
|
155172
|
-
onEvent({
|
|
155173
|
-
type: "loaded"
|
|
155174
|
-
});
|
|
155175
|
-
},
|
|
155176
|
-
onError: function onError(error) {
|
|
155177
|
-
_onError4(error);
|
|
155178
|
-
}
|
|
155179
|
-
});
|
|
155180
|
-
return unregisterCallbacks;
|
|
155181
|
-
};
|
|
155182
|
-
fn.isSupported = import_native_modules17.GoogleAdMob.loadAppsInTossAdMob.isSupported;
|
|
155183
|
-
return fn;
|
|
155184
|
-
}
|
|
155185
|
-
var _loadFullScreenAd = generateLoadFullScreenAd("107");
|
|
155186
|
-
var loadFullScreenAdForWeb = generateLoadFullScreenAd("107");
|
|
155187
|
-
function _showFullScreenAd(params) {
|
|
155188
|
-
if (!import_native_modules17.GoogleAdMob.showAppsInTossAdMob.isSupported()) {
|
|
155189
|
-
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
|
|
155190
|
-
return noop;
|
|
155191
|
-
}
|
|
155192
|
-
if (!integratedAdIsSupported()) {
|
|
155193
|
-
return import_native_modules17.GoogleAdMob.showAppsInTossAdMob(Object.assign({}, params, {
|
|
155194
|
-
onEvent: function onEvent(event) {
|
|
155195
|
-
var _INTG_AD_ADM_FALLBACK2;
|
|
155196
|
-
var requestId = (_INTG_AD_ADM_FALLBACK2 = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) != null ? _INTG_AD_ADM_FALLBACK2 : "";
|
|
155197
|
-
switch (event.type) {
|
|
155198
|
-
case "show":
|
|
155199
|
-
postEventTracking({
|
|
155200
|
-
eventName: "SHOW",
|
|
155201
|
-
spaceUnitId: params.options.adGroupId,
|
|
155202
|
-
requestId: requestId,
|
|
155203
|
-
responseId: "",
|
|
155204
|
-
mediationType: "ADMOB",
|
|
155205
|
-
format: "",
|
|
155206
|
-
adSourceName: "",
|
|
155207
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155208
|
-
});
|
|
155209
|
-
break;
|
|
155210
|
-
case "failedToShow":
|
|
155211
|
-
postEventTracking({
|
|
155212
|
-
eventName: "FAILED_TO_SHOW",
|
|
155213
|
-
spaceUnitId: params.options.adGroupId,
|
|
155214
|
-
requestId: requestId,
|
|
155215
|
-
responseId: "",
|
|
155216
|
-
mediationType: "ADMOB",
|
|
155217
|
-
format: "",
|
|
155218
|
-
adSourceName: "",
|
|
155219
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155220
|
-
});
|
|
155221
|
-
break;
|
|
155222
|
-
case "impression":
|
|
155223
|
-
postEventTracking({
|
|
155224
|
-
eventName: "IMP",
|
|
155225
|
-
spaceUnitId: params.options.adGroupId,
|
|
155226
|
-
requestId: requestId,
|
|
155227
|
-
responseId: "",
|
|
155228
|
-
mediationType: "ADMOB",
|
|
155229
|
-
format: "",
|
|
155230
|
-
adSourceName: "",
|
|
155231
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155232
|
-
});
|
|
155233
|
-
break;
|
|
155234
|
-
case "clicked":
|
|
155235
|
-
postEventTracking({
|
|
155236
|
-
eventName: "CLICK",
|
|
155237
|
-
spaceUnitId: params.options.adGroupId,
|
|
155238
|
-
requestId: requestId,
|
|
155239
|
-
responseId: "",
|
|
155240
|
-
mediationType: "ADMOB",
|
|
155241
|
-
format: "",
|
|
155242
|
-
adSourceName: "",
|
|
155243
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155244
|
-
});
|
|
155245
|
-
break;
|
|
155246
|
-
case "dismissed":
|
|
155247
|
-
postEventTracking({
|
|
155248
|
-
eventName: "DISMISS",
|
|
155249
|
-
spaceUnitId: params.options.adGroupId,
|
|
155250
|
-
requestId: requestId,
|
|
155251
|
-
responseId: "",
|
|
155252
|
-
mediationType: "ADMOB",
|
|
155253
|
-
format: "",
|
|
155254
|
-
adSourceName: "",
|
|
155255
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155256
|
-
});
|
|
155257
|
-
break;
|
|
155258
|
-
case "userEarnedReward":
|
|
155259
|
-
postEventTracking({
|
|
155260
|
-
eventName: "USER_EARNED_REWARD",
|
|
155261
|
-
spaceUnitId: params.options.adGroupId,
|
|
155262
|
-
requestId: requestId,
|
|
155263
|
-
responseId: "",
|
|
155264
|
-
mediationType: "ADMOB",
|
|
155265
|
-
format: "",
|
|
155266
|
-
adSourceName: "",
|
|
155267
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155268
|
-
});
|
|
155269
|
-
break;
|
|
155270
|
-
}
|
|
155271
|
-
return params.onEvent(event);
|
|
155272
|
-
},
|
|
155273
|
-
onError: function onError(error) {
|
|
155274
|
-
var _INTG_AD_ADM_FALLBACK3;
|
|
155275
|
-
var requestId = (_INTG_AD_ADM_FALLBACK3 = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) != null ? _INTG_AD_ADM_FALLBACK3 : "";
|
|
155276
|
-
postEventTracking({
|
|
155277
|
-
eventName: "FAILED_TO_SHOW",
|
|
155278
|
-
spaceUnitId: params.options.adGroupId,
|
|
155279
|
-
requestId: requestId,
|
|
155280
|
-
responseId: "",
|
|
155281
|
-
mediationType: "ADMOB",
|
|
155282
|
-
format: "",
|
|
155283
|
-
adSourceName: "",
|
|
155284
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155285
|
-
});
|
|
155286
|
-
return params.onError(error);
|
|
155287
|
-
}
|
|
155288
|
-
}));
|
|
155289
|
-
}
|
|
155290
|
-
var onEvent = params.onEvent,
|
|
155291
|
-
_onError5 = params.onError,
|
|
155292
|
-
options = params.options;
|
|
155293
|
-
var adGroupId = options.adGroupId;
|
|
155294
|
-
var referrer = getReferrer();
|
|
155295
|
-
var unregisterCallbacks = import_native_modules17.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("showTossAdOrAdmob", {
|
|
155296
|
-
spaceUnitId: adGroupId,
|
|
155297
|
-
referrer: referrer,
|
|
155298
|
-
sessionId: sessionId
|
|
155299
|
-
}, {
|
|
155300
|
-
onAdClicked: function onAdClicked() {
|
|
155301
|
-
onEvent({
|
|
155302
|
-
type: "clicked"
|
|
155303
|
-
});
|
|
155304
|
-
},
|
|
155305
|
-
onAdDismissed: function onAdDismissed() {
|
|
155306
|
-
onEvent({
|
|
155307
|
-
type: "dismissed"
|
|
155308
|
-
});
|
|
155309
|
-
},
|
|
155310
|
-
onAdFailedToShow: function onAdFailedToShow() {
|
|
155311
|
-
onEvent({
|
|
155312
|
-
type: "failedToShow"
|
|
155313
|
-
});
|
|
155314
|
-
},
|
|
155315
|
-
onAdImpression: function onAdImpression() {
|
|
155316
|
-
onEvent({
|
|
155317
|
-
type: "impression"
|
|
155318
|
-
});
|
|
155319
|
-
},
|
|
155320
|
-
onAdShow: function onAdShow() {
|
|
155321
|
-
onEvent({
|
|
155322
|
-
type: "show"
|
|
155323
|
-
});
|
|
155324
|
-
},
|
|
155325
|
-
onUserEarnedReward: function onUserEarnedReward(data) {
|
|
155326
|
-
onEvent({
|
|
155327
|
-
type: "userEarnedReward",
|
|
155328
|
-
data: data
|
|
155329
|
-
});
|
|
155330
|
-
},
|
|
155331
|
-
onSuccess: function onSuccess() {
|
|
155332
|
-
onEvent({
|
|
155333
|
-
type: "requested"
|
|
155334
|
-
});
|
|
155335
|
-
},
|
|
155336
|
-
onError: function onError(error) {
|
|
155337
|
-
_onError5(error);
|
|
155338
|
-
}
|
|
155339
|
-
});
|
|
155340
|
-
return unregisterCallbacks;
|
|
155341
|
-
}
|
|
155342
|
-
_showFullScreenAd.isSupported = import_native_modules17.GoogleAdMob.showAppsInTossAdMob.isSupported;
|
|
155343
|
-
var import_native_modules18 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155344
|
-
var import_react_native31 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155345
|
-
function tossAdEventLog(_x4) {
|
|
155346
|
-
return _tossAdEventLog.apply(this, arguments);
|
|
155347
|
-
}
|
|
155348
|
-
function _tossAdEventLog() {
|
|
155349
|
-
_tossAdEventLog = _asyncToGenerator(function* (params) {
|
|
155350
|
-
var referrer = getReferrer();
|
|
155351
|
-
var appName = import_react_native31.Granite.appName;
|
|
155352
|
-
var eventLogParams = Object.assign({}, params, {
|
|
155353
|
-
params: Object.assign({}, params.params, {
|
|
155354
|
-
referrer: referrer,
|
|
155355
|
-
app_name: appName
|
|
155356
|
-
})
|
|
155357
|
-
});
|
|
155358
|
-
return import_native_modules18.INTERNAL__module.tossCoreEventLog(eventLogParams);
|
|
155359
|
-
});
|
|
155360
|
-
return _tossAdEventLog.apply(this, arguments);
|
|
155361
|
-
}
|
|
155362
155002
|
var import_react22 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155363
155003
|
function serializeError(error) {
|
|
155364
155004
|
return JSON.stringify(error, function (_, value) {
|
|
@@ -155484,7 +155124,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155484
155124
|
}
|
|
155485
155125
|
}
|
|
155486
155126
|
});
|
|
155487
|
-
return function (
|
|
155127
|
+
return function (_x4) {
|
|
155488
155128
|
return _ref68.apply(this, arguments);
|
|
155489
155129
|
};
|
|
155490
155130
|
}(), [onMessage]);
|
|
@@ -155557,7 +155197,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155557
155197
|
}, [emitter, insets]);
|
|
155558
155198
|
return emitter;
|
|
155559
155199
|
}
|
|
155560
|
-
var
|
|
155200
|
+
var import_react_native29 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155561
155201
|
var import_tds_react_native13 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
155562
155202
|
var import_es_hangul5 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
155563
155203
|
var import_react25 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
@@ -155645,7 +155285,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155645
155285
|
var _useWebViewHistory = useWebViewHistory(),
|
|
155646
155286
|
hasHistory = _useWebViewHistory.hasHistory,
|
|
155647
155287
|
onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
155648
|
-
var _ref73 = (0,
|
|
155288
|
+
var _ref73 = (0, import_react_native29.useBackEventState)(),
|
|
155649
155289
|
webBackHandlersRef = _ref73.handlersRef,
|
|
155650
155290
|
hasWebBackEvent = _ref73.hasBackEvent,
|
|
155651
155291
|
addWebBackEventListener = _ref73.addEventListener,
|
|
@@ -155681,7 +155321,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155681
155321
|
logging.closePopupCtaClick(isConfirmed);
|
|
155682
155322
|
if (isConfirmed) {
|
|
155683
155323
|
captureExitLog(Date.now());
|
|
155684
|
-
(0,
|
|
155324
|
+
(0, import_react_native29.closeView)();
|
|
155685
155325
|
}
|
|
155686
155326
|
}
|
|
155687
155327
|
}), [captureExitLog, global2.brandDisplayName, hasHistory, hasWebBackEvent, webBackHandlersRef, logging, openConfirm, webViewRef]);
|
|
@@ -155720,8 +155360,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155720
155360
|
});
|
|
155721
155361
|
};
|
|
155722
155362
|
}
|
|
155723
|
-
var
|
|
155724
|
-
var
|
|
155363
|
+
var import_native_modules15 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155364
|
+
var import_react_native30 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
155725
155365
|
var FontA11yCategory = {
|
|
155726
155366
|
Large: "Large",
|
|
155727
155367
|
xLarge: "xLarge",
|
|
@@ -155857,23 +155497,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155857
155497
|
pureSafeArea = _ref76.pureSafeArea,
|
|
155858
155498
|
safeArea = _ref76.safeArea,
|
|
155859
155499
|
safeAreaBottomTransparency = _ref76.safeAreaBottomTransparency;
|
|
155860
|
-
var platform = (0,
|
|
155861
|
-
var appVersion = (0,
|
|
155862
|
-
var _ref77 = (0,
|
|
155500
|
+
var platform = (0, import_native_modules15.getPlatformOS)();
|
|
155501
|
+
var appVersion = (0, import_native_modules15.getTossAppVersion)();
|
|
155502
|
+
var _ref77 = (0, import_react_native30.useWindowDimensions)(),
|
|
155863
155503
|
fontScale = _ref77.fontScale;
|
|
155864
155504
|
var platformString = platform === "ios" ? "iPhone" : "Android phone";
|
|
155865
155505
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
155866
155506
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
155867
155507
|
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(" ");
|
|
155868
155508
|
}
|
|
155869
|
-
var
|
|
155870
|
-
var
|
|
155509
|
+
var import_native_modules16 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155510
|
+
var import_react_native31 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155871
155511
|
var import_react26 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155872
155512
|
function _useGeolocation(_ref78) {
|
|
155873
155513
|
var accuracy = _ref78.accuracy,
|
|
155874
155514
|
distanceInterval = _ref78.distanceInterval,
|
|
155875
155515
|
timeInterval = _ref78.timeInterval;
|
|
155876
|
-
var isVisible = (0,
|
|
155516
|
+
var isVisible = (0, import_react_native31.useVisibility)();
|
|
155877
155517
|
var _ref79 = (0, import_react26.useState)(null),
|
|
155878
155518
|
_ref80 = _slicedToArray(_ref79, 2),
|
|
155879
155519
|
location = _ref80[0],
|
|
@@ -155882,7 +155522,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155882
155522
|
if (!isVisible) {
|
|
155883
155523
|
return;
|
|
155884
155524
|
}
|
|
155885
|
-
return (0,
|
|
155525
|
+
return (0, import_native_modules16.startUpdateLocation)({
|
|
155886
155526
|
options: {
|
|
155887
155527
|
accuracy: accuracy,
|
|
155888
155528
|
distanceInterval: distanceInterval,
|
|
@@ -155894,11 +155534,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155894
155534
|
}, [accuracy, distanceInterval, timeInterval, isVisible]);
|
|
155895
155535
|
return location;
|
|
155896
155536
|
}
|
|
155897
|
-
var
|
|
155537
|
+
var import_react_native32 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155898
155538
|
var import_react27 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155899
155539
|
function _useWaitForReturnNavigator() {
|
|
155900
155540
|
var callbacks = (0, import_react27.useRef)([]).current;
|
|
155901
|
-
var navigation = (0,
|
|
155541
|
+
var navigation = (0, import_react_native32.useNavigation)();
|
|
155902
155542
|
var startNavigating = (0, import_react27.useCallback)(function (route, params) {
|
|
155903
155543
|
return new Promise(function (resolve) {
|
|
155904
155544
|
callbacks.push(resolve);
|
|
@@ -155913,7 +155553,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155913
155553
|
callbacks.splice(0, callbacks.length);
|
|
155914
155554
|
}
|
|
155915
155555
|
}, [callbacks]);
|
|
155916
|
-
(0,
|
|
155556
|
+
(0, import_react_native32.useVisibilityChange)(handleVisibilityChange);
|
|
155917
155557
|
return startNavigating;
|
|
155918
155558
|
}
|
|
155919
155559
|
function _useTopNavigation() {
|
|
@@ -155925,8 +155565,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155925
155565
|
removeAccessoryButton: removeNavigationRightButton
|
|
155926
155566
|
};
|
|
155927
155567
|
}
|
|
155928
|
-
var
|
|
155929
|
-
var
|
|
155568
|
+
var import_native_modules17 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155569
|
+
var import_react_native33 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155930
155570
|
var extractDateFromUUIDv7 = function extractDateFromUUIDv7(uuid) {
|
|
155931
155571
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
155932
155572
|
var timestamp = Number.parseInt(timestampHex, 16);
|
|
@@ -155939,18 +155579,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155939
155579
|
groupId: urlObject.pathname,
|
|
155940
155580
|
search: urlObject.search.startsWith("?") ? urlObject.search.substring(1) : urlObject.search
|
|
155941
155581
|
};
|
|
155942
|
-
} catch (
|
|
155582
|
+
} catch (_unused4) {
|
|
155943
155583
|
return {
|
|
155944
155584
|
groupId: "unknown",
|
|
155945
155585
|
search: "unknown"
|
|
155946
155586
|
};
|
|
155947
155587
|
}
|
|
155948
155588
|
};
|
|
155949
|
-
var
|
|
155589
|
+
var getReferrer = function getReferrer() {
|
|
155950
155590
|
try {
|
|
155951
|
-
var referrer = new URL((0,
|
|
155591
|
+
var referrer = new URL((0, import_react_native33.getSchemeUri)());
|
|
155952
155592
|
return referrer.searchParams.get("referrer");
|
|
155953
|
-
} catch (
|
|
155593
|
+
} catch (_unused5) {
|
|
155954
155594
|
return "";
|
|
155955
155595
|
}
|
|
155956
155596
|
};
|
|
@@ -155963,12 +155603,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155963
155603
|
log_name: groupId + "::screen",
|
|
155964
155604
|
params: {
|
|
155965
155605
|
search: search,
|
|
155966
|
-
referrer:
|
|
155606
|
+
referrer: getReferrer(),
|
|
155967
155607
|
deployment_id: _env.getDeploymentId(),
|
|
155968
155608
|
deployment_timestamp: extractDateFromUUIDv7(_env.getDeploymentId()).getTime()
|
|
155969
155609
|
}
|
|
155970
155610
|
};
|
|
155971
|
-
return (0,
|
|
155611
|
+
return (0, import_native_modules17.eventLog)(log);
|
|
155972
155612
|
};
|
|
155973
155613
|
var import_jsx_runtime18 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
155974
155614
|
var operationalEnvironment = appsInTossConstantBridges.getOperationalEnvironment();
|
|
@@ -155980,7 +155620,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155980
155620
|
};
|
|
155981
155621
|
function mergeSchemeQueryParamsInto(url) {
|
|
155982
155622
|
var baseUrl = new URL(url);
|
|
155983
|
-
var schemeUrl = new URL((0,
|
|
155623
|
+
var schemeUrl = new URL((0, import_react_native34.getSchemeUri)());
|
|
155984
155624
|
baseUrl.pathname = schemeUrl.pathname;
|
|
155985
155625
|
for (var _ref81 of schemeUrl.searchParams.entries()) {
|
|
155986
155626
|
var _ref82 = _slicedToArray(_ref81, 2);
|
|
@@ -155995,7 +155635,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155995
155635
|
var devUrl = "http://" + local.host + ":" + local.port;
|
|
155996
155636
|
return mergeSchemeQueryParamsInto(devUrl).toString();
|
|
155997
155637
|
}
|
|
155998
|
-
var _import_native_module =
|
|
155638
|
+
var _import_native_module = import_native_modules18.AppsInTossModule.getWebBundleURL({}),
|
|
155999
155639
|
rawUrl = _import_native_module.url;
|
|
156000
155640
|
var url = mergeSchemeQueryParamsInto(rawUrl);
|
|
156001
155641
|
var deploymentId = _env.getDeploymentId();
|
|
@@ -156049,7 +155689,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156049
155689
|
var onEvent = _ref88.onEvent,
|
|
156050
155690
|
onError = _ref88.onError,
|
|
156051
155691
|
options = _ref88.options;
|
|
156052
|
-
return
|
|
155692
|
+
return import_native_modules18.appsInTossEvent.addEventListener("updateLocationEvent", {
|
|
156053
155693
|
onEvent: onEvent,
|
|
156054
155694
|
onError: onError,
|
|
156055
155695
|
options: options
|
|
@@ -156066,23 +155706,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156066
155706
|
var onEvent = _ref90.onEvent,
|
|
156067
155707
|
onError = _ref90.onError,
|
|
156068
155708
|
options = _ref90.options;
|
|
156069
|
-
return
|
|
155709
|
+
return import_native_modules18.appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
|
|
156070
155710
|
onEvent: onEvent,
|
|
156071
155711
|
onError: onError,
|
|
156072
155712
|
options: options
|
|
156073
155713
|
});
|
|
156074
155714
|
},
|
|
156075
|
-
loadAdMobInterstitialAd:
|
|
156076
|
-
showAdMobInterstitialAd:
|
|
156077
|
-
loadAdMobRewardedAd:
|
|
156078
|
-
showAdMobRewardedAd:
|
|
156079
|
-
loadAppsInTossAdMob:
|
|
156080
|
-
showAppsInTossAdMob:
|
|
156081
|
-
|
|
156082
|
-
|
|
156083
|
-
fetchTossAd: fetchTossAd,
|
|
156084
|
-
iapCreateOneTimePurchaseOrder: import_native_modules22.IAP.createOneTimePurchaseOrder,
|
|
156085
|
-
requestOneTimePurchase: import_native_modules22.requestOneTimePurchase
|
|
155715
|
+
loadAdMobInterstitialAd: import_native_modules18.GoogleAdMob.loadAdMobInterstitialAd,
|
|
155716
|
+
showAdMobInterstitialAd: import_native_modules18.GoogleAdMob.showAdMobInterstitialAd,
|
|
155717
|
+
loadAdMobRewardedAd: import_native_modules18.GoogleAdMob.loadAdMobRewardedAd,
|
|
155718
|
+
showAdMobRewardedAd: import_native_modules18.GoogleAdMob.showAdMobRewardedAd,
|
|
155719
|
+
loadAppsInTossAdMob: import_native_modules18.GoogleAdMob.loadAppsInTossAdMob,
|
|
155720
|
+
showAppsInTossAdMob: import_native_modules18.GoogleAdMob.showAppsInTossAdMob,
|
|
155721
|
+
iapCreateOneTimePurchaseOrder: import_native_modules18.IAP.createOneTimePurchaseOrder,
|
|
155722
|
+
requestOneTimePurchase: import_native_modules18.requestOneTimePurchase
|
|
156086
155723
|
}),
|
|
156087
155724
|
constantHandlerMap: Object.assign({}, appsInTossConstantBridges, {
|
|
156088
155725
|
getSafeAreaTop: function getSafeAreaTop() {
|
|
@@ -156105,15 +155742,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156105
155742
|
return value;
|
|
156106
155743
|
}];
|
|
156107
155744
|
})), {
|
|
156108
|
-
loadAdMobInterstitialAd_isSupported:
|
|
156109
|
-
showAdMobInterstitialAd_isSupported:
|
|
156110
|
-
loadAdMobRewardedAd_isSupported:
|
|
156111
|
-
showAdMobRewardedAd_isSupported:
|
|
156112
|
-
loadAppsInTossAdMob_isSupported:
|
|
156113
|
-
showAppsInTossAdMob_isSupported:
|
|
156114
|
-
loadFullScreenAd_isSupported: loadFullScreenAdForWeb.isSupported,
|
|
156115
|
-
showFullScreenAd_isSupported: _showFullScreenAd.isSupported,
|
|
156116
|
-
fetchTossAd_isSupported: fetchTossAd.isSupported,
|
|
155745
|
+
loadAdMobInterstitialAd_isSupported: import_native_modules18.GoogleAdMob.loadAdMobInterstitialAd.isSupported,
|
|
155746
|
+
showAdMobInterstitialAd_isSupported: import_native_modules18.GoogleAdMob.showAdMobInterstitialAd.isSupported,
|
|
155747
|
+
loadAdMobRewardedAd_isSupported: import_native_modules18.GoogleAdMob.loadAdMobRewardedAd.isSupported,
|
|
155748
|
+
showAdMobRewardedAd_isSupported: import_native_modules18.GoogleAdMob.showAdMobRewardedAd.isSupported,
|
|
155749
|
+
loadAppsInTossAdMob_isSupported: import_native_modules18.GoogleAdMob.loadAppsInTossAdMob.isSupported,
|
|
155750
|
+
showAppsInTossAdMob_isSupported: import_native_modules18.GoogleAdMob.showAppsInTossAdMob.isSupported,
|
|
156117
155751
|
getDeploymentId: _env.getDeploymentId
|
|
156118
155752
|
}),
|
|
156119
155753
|
asyncHandlerMap: Object.assign({}, appsInTossAsyncBridges, {
|
|
@@ -156125,7 +155759,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156125
155759
|
var _addAccessoryButton = _asyncToGenerator(function* (params) {
|
|
156126
155760
|
return navigationBarContext.addNavigationRightButton(params);
|
|
156127
155761
|
});
|
|
156128
|
-
function addAccessoryButton(
|
|
155762
|
+
function addAccessoryButton(_x5) {
|
|
156129
155763
|
return _addAccessoryButton.apply(this, arguments);
|
|
156130
155764
|
}
|
|
156131
155765
|
return addAccessoryButton;
|
|
@@ -156148,17 +155782,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156148
155782
|
fetchContacts: appsInTossAsyncBridges.fetchContacts,
|
|
156149
155783
|
getCurrentLocation: appsInTossAsyncBridges.getCurrentLocation,
|
|
156150
155784
|
openCamera: appsInTossAsyncBridges.openCamera,
|
|
156151
|
-
getStorageItem:
|
|
156152
|
-
setStorageItem:
|
|
156153
|
-
removeStorageItem:
|
|
156154
|
-
clearItems:
|
|
156155
|
-
iapGetProductItemList:
|
|
156156
|
-
iapCreateOneTimePurchaseOrder:
|
|
156157
|
-
processProductGrant:
|
|
156158
|
-
getPendingOrders:
|
|
156159
|
-
getCompletedOrRefundedOrders:
|
|
156160
|
-
completeProductGrant:
|
|
156161
|
-
tossAdEventLog: tossAdEventLog
|
|
155785
|
+
getStorageItem: import_native_modules18.Storage.getItem,
|
|
155786
|
+
setStorageItem: import_native_modules18.Storage.setItem,
|
|
155787
|
+
removeStorageItem: import_native_modules18.Storage.removeItem,
|
|
155788
|
+
clearItems: import_native_modules18.Storage.clearItems,
|
|
155789
|
+
iapGetProductItemList: import_native_modules18.IAP.getProductItemList,
|
|
155790
|
+
iapCreateOneTimePurchaseOrder: import_native_modules18.iapCreateOneTimePurchaseOrder,
|
|
155791
|
+
processProductGrant: import_native_modules18.processProductGrant,
|
|
155792
|
+
getPendingOrders: import_native_modules18.IAP.getPendingOrders,
|
|
155793
|
+
getCompletedOrRefundedOrders: import_native_modules18.IAP.getCompletedOrRefundedOrders,
|
|
155794
|
+
completeProductGrant: import_native_modules18.IAP.completeProductGrant
|
|
156162
155795
|
})
|
|
156163
155796
|
});
|
|
156164
155797
|
var headerPropForExternalWebView = (0, import_react28.useMemo)(function () {
|
|
@@ -156188,9 +155821,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156188
155821
|
webBackHandler.handleWebBack();
|
|
156189
155822
|
return true;
|
|
156190
155823
|
};
|
|
156191
|
-
|
|
155824
|
+
import_react_native35.BackHandler.addEventListener("hardwareBackPress", callback);
|
|
156192
155825
|
return function () {
|
|
156193
|
-
return
|
|
155826
|
+
return import_react_native35.BackHandler.removeEventListener("hardwareBackPress", callback);
|
|
156194
155827
|
};
|
|
156195
155828
|
}, [webBackHandler]);
|
|
156196
155829
|
var globalScripts = useGlobalScripts();
|
|
@@ -156212,14 +155845,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156212
155845
|
props.onNavigationStateChange == null ? void 0 : props.onNavigationStateChange(event);
|
|
156213
155846
|
webBackHandler.onNavigationStateChange(event);
|
|
156214
155847
|
},
|
|
156215
|
-
userAgent:
|
|
155848
|
+
userAgent: import_react_native35.Platform.OS === "ios" ? userAgent : void 0,
|
|
156216
155849
|
sharedCookiesEnabled: true,
|
|
156217
155850
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
156218
155851
|
thirdPartyCookiesEnabled: true,
|
|
156219
155852
|
onMessage: handler.onMessage,
|
|
156220
155853
|
injectedJavaScript: globalScripts.afterLoad,
|
|
156221
155854
|
injectedJavaScriptBeforeContentLoaded: mergeScripts(handler.injectedJavaScript, globalScripts.beforeLoad),
|
|
156222
|
-
decelerationRate:
|
|
155855
|
+
decelerationRate: import_react_native35.Platform.OS === "ios" ? 1 : void 0,
|
|
156223
155856
|
allowsBackForwardNavigationGestures: allowsBackForwardNavigationGestures,
|
|
156224
155857
|
onShouldStartLoadWithRequest: function onShouldStartLoadWithRequest(event) {
|
|
156225
155858
|
try {
|
|
@@ -156228,7 +155861,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156228
155861
|
return true;
|
|
156229
155862
|
} else {
|
|
156230
155863
|
var _convertIntentURL;
|
|
156231
|
-
|
|
155864
|
+
import_react_native35.Linking.openURL((_convertIntentURL = convertIntentURL(url)) != null ? _convertIntentURL : url.href);
|
|
156232
155865
|
return false;
|
|
156233
155866
|
}
|
|
156234
155867
|
} catch (error) {
|
|
@@ -156273,8 +155906,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156273
155906
|
OverlayProvider: OverlayProvider,
|
|
156274
155907
|
WebView: _WebView,
|
|
156275
155908
|
env: _env,
|
|
156276
|
-
loadFullScreenAd: _loadFullScreenAd,
|
|
156277
|
-
showFullScreenAd: _showFullScreenAd,
|
|
156278
155909
|
useCreateUserAgent: _useCreateUserAgent,
|
|
156279
155910
|
useGeolocation: _useGeolocation,
|
|
156280
155911
|
useOverlay: useOverlay,
|
|
@@ -157874,19 +157505,43 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157874
157505
|
function _getTossAppVersion() {
|
|
157875
157506
|
return _AppsInTossModule.tossAppVersion;
|
|
157876
157507
|
}
|
|
157877
|
-
|
|
157508
|
+
var V2_MIN_VERSION = {
|
|
157509
|
+
android: "5.240.0",
|
|
157510
|
+
ios: "5.239.0"
|
|
157511
|
+
};
|
|
157512
|
+
function _getTossShareLink(_x7, _x8) {
|
|
157878
157513
|
return _getTossShareLink2.apply(this, arguments);
|
|
157879
157514
|
}
|
|
157880
157515
|
function _getTossShareLink2() {
|
|
157881
|
-
_getTossShareLink2 = _asyncToGenerator(function* (path) {
|
|
157882
|
-
|
|
157516
|
+
_getTossShareLink2 = _asyncToGenerator(function* (path, ogImageUrl) {
|
|
157517
|
+
if (!_isMinVersionSupported(V2_MIN_VERSION)) {
|
|
157518
|
+
return yield getTossShareLinkV1(path);
|
|
157519
|
+
}
|
|
157520
|
+
var params = {
|
|
157521
|
+
params: {
|
|
157522
|
+
url: path,
|
|
157523
|
+
ogImageUrl: ogImageUrl
|
|
157524
|
+
}
|
|
157525
|
+
};
|
|
157526
|
+
var _yield$_AppsInTossMod = yield _AppsInTossModule.getTossShareLink(params),
|
|
157883
157527
|
shareLink = _yield$_AppsInTossMod.shareLink;
|
|
157528
|
+
return shareLink;
|
|
157529
|
+
});
|
|
157530
|
+
return _getTossShareLink2.apply(this, arguments);
|
|
157531
|
+
}
|
|
157532
|
+
function getTossShareLinkV1(_x9) {
|
|
157533
|
+
return _getTossShareLinkV.apply(this, arguments);
|
|
157534
|
+
}
|
|
157535
|
+
function _getTossShareLinkV() {
|
|
157536
|
+
_getTossShareLinkV = _asyncToGenerator(function* (path) {
|
|
157537
|
+
var _yield$_AppsInTossMod2 = yield _AppsInTossModule.getTossShareLink({}),
|
|
157538
|
+
shareLink = _yield$_AppsInTossMod2.shareLink;
|
|
157884
157539
|
var shareUrl = new URL(shareLink);
|
|
157885
157540
|
shareUrl.searchParams.set("deep_link_value", path);
|
|
157886
157541
|
shareUrl.searchParams.set("af_dp", path);
|
|
157887
157542
|
return shareUrl.toString();
|
|
157888
157543
|
});
|
|
157889
|
-
return
|
|
157544
|
+
return _getTossShareLinkV.apply(this, arguments);
|
|
157890
157545
|
}
|
|
157891
157546
|
var import_es_toolkit3 = _$$_REQUIRE(_dependencyMap[11], "es-toolkit");
|
|
157892
157547
|
function _iapCreateOneTimePurchaseOrder(params) {
|
|
@@ -157979,7 +157634,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157979
157634
|
isProductGranted: isProductGranted
|
|
157980
157635
|
});
|
|
157981
157636
|
});
|
|
157982
|
-
function onPurchased(
|
|
157637
|
+
function onPurchased(_x10) {
|
|
157983
157638
|
return _onPurchased.apply(this, arguments);
|
|
157984
157639
|
}
|
|
157985
157640
|
return onPurchased;
|
|
@@ -158028,7 +157683,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158028
157683
|
});
|
|
158029
157684
|
return _getPendingOrders.apply(this, arguments);
|
|
158030
157685
|
}
|
|
158031
|
-
function getCompletedOrRefundedOrders(
|
|
157686
|
+
function getCompletedOrRefundedOrders(_x11) {
|
|
158032
157687
|
return _getCompletedOrRefundedOrders.apply(this, arguments);
|
|
158033
157688
|
}
|
|
158034
157689
|
function _getCompletedOrRefundedOrders() {
|
|
@@ -158046,7 +157701,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158046
157701
|
});
|
|
158047
157702
|
return _getCompletedOrRefundedOrders.apply(this, arguments);
|
|
158048
157703
|
}
|
|
158049
|
-
function completeProductGrant(
|
|
157704
|
+
function completeProductGrant(_x12) {
|
|
158050
157705
|
return _completeProductGrant.apply(this, arguments);
|
|
158051
157706
|
}
|
|
158052
157707
|
function _completeProductGrant() {
|
|
@@ -158069,7 +157724,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158069
157724
|
getCompletedOrRefundedOrders: getCompletedOrRefundedOrders,
|
|
158070
157725
|
completeProductGrant: completeProductGrant
|
|
158071
157726
|
};
|
|
158072
|
-
function _saveBase64Data(
|
|
157727
|
+
function _saveBase64Data(_x13) {
|
|
158073
157728
|
return _saveBase64Data2.apply(this, arguments);
|
|
158074
157729
|
}
|
|
158075
157730
|
function _saveBase64Data2() {
|
|
@@ -158086,7 +157741,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158086
157741
|
});
|
|
158087
157742
|
return _saveBase64Data2.apply(this, arguments);
|
|
158088
157743
|
}
|
|
158089
|
-
function _setDeviceOrientation(
|
|
157744
|
+
function _setDeviceOrientation(_x14) {
|
|
158090
157745
|
return _setDeviceOrientation2.apply(this, arguments);
|
|
158091
157746
|
}
|
|
158092
157747
|
function _setDeviceOrientation2() {
|
|
@@ -158177,7 +157832,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158177
157832
|
});
|
|
158178
157833
|
return _getGameCenterGameProfile2.apply(this, arguments);
|
|
158179
157834
|
}
|
|
158180
|
-
function _submitGameCenterLeaderBoardScore(
|
|
157835
|
+
function _submitGameCenterLeaderBoardScore(_x15) {
|
|
158181
157836
|
return _submitGameCenterLeaderBoardScore2.apply(this, arguments);
|
|
158182
157837
|
}
|
|
158183
157838
|
function _submitGameCenterLeaderBoardScore2() {
|
|
@@ -158217,7 +157872,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158217
157872
|
function isGrantPromotionRewardForGameError(error) {
|
|
158218
157873
|
return typeof error === "object" && error !== null && "code" in error && typeof error.code === "string" && "message" in error && typeof error.message === "string";
|
|
158219
157874
|
}
|
|
158220
|
-
function _grantPromotionRewardForGame(
|
|
157875
|
+
function _grantPromotionRewardForGame(_x16) {
|
|
158221
157876
|
return _grantPromotionRewardForGame2.apply(this, arguments);
|
|
158222
157877
|
}
|
|
158223
157878
|
function _grantPromotionRewardForGame2() {
|
|
@@ -158289,15 +157944,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158289
157944
|
});
|
|
158290
157945
|
return unregisterCallbacks;
|
|
158291
157946
|
}
|
|
158292
|
-
|
|
157947
|
+
var MIN_VERSION_BY_USER_TYPE = {
|
|
157948
|
+
USER_PERSONAL: {
|
|
157949
|
+
android: "5.233.0",
|
|
157950
|
+
ios: "5.233.0"
|
|
157951
|
+
},
|
|
157952
|
+
USER_NONE: {
|
|
157953
|
+
android: "5.236.0",
|
|
157954
|
+
ios: "5.236.0"
|
|
157955
|
+
}
|
|
157956
|
+
};
|
|
157957
|
+
function _appsInTossSignTossCert(_x17) {
|
|
158293
157958
|
return _appsInTossSignTossCert2.apply(this, arguments);
|
|
158294
157959
|
}
|
|
158295
157960
|
function _appsInTossSignTossCert2() {
|
|
158296
157961
|
_appsInTossSignTossCert2 = _asyncToGenerator(function* (params) {
|
|
158297
|
-
var
|
|
158298
|
-
|
|
158299
|
-
ios: "5.233.0"
|
|
158300
|
-
});
|
|
157962
|
+
var minVersion = params.skipConfirmDoc === true ? MIN_VERSION_BY_USER_TYPE.USER_NONE : MIN_VERSION_BY_USER_TYPE.USER_PERSONAL;
|
|
157963
|
+
var isSupported = _isMinVersionSupported(minVersion);
|
|
158301
157964
|
if (!isSupported) {
|
|
158302
157965
|
console.warn("appsInTossSignTossCert is not supported in this app version");
|
|
158303
157966
|
return;
|
|
@@ -158357,7 +158020,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158357
158020
|
function _generateHapticFeedback(options) {
|
|
158358
158021
|
return _BedrockModule.generateHapticFeedback(options);
|
|
158359
158022
|
}
|
|
158360
|
-
function _share(
|
|
158023
|
+
function _share(_x18) {
|
|
158361
158024
|
return _share2.apply(this, arguments);
|
|
158362
158025
|
}
|
|
158363
158026
|
function _share2() {
|
|
@@ -158369,7 +158032,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158369
158032
|
function _setSecureScreen(options) {
|
|
158370
158033
|
return _BedrockModule.setSecureScreen(options);
|
|
158371
158034
|
}
|
|
158372
|
-
function _setScreenAwakeMode(
|
|
158035
|
+
function _setScreenAwakeMode(_x19) {
|
|
158373
158036
|
return _setScreenAwakeMode2.apply(this, arguments);
|
|
158374
158037
|
}
|
|
158375
158038
|
function _setScreenAwakeMode2() {
|
|
@@ -158381,7 +158044,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158381
158044
|
function _getNetworkStatus() {
|
|
158382
158045
|
return _BedrockModule.getNetworkStatus();
|
|
158383
158046
|
}
|
|
158384
|
-
function _setIosSwipeGestureEnabled(
|
|
158047
|
+
function _setIosSwipeGestureEnabled(_x20) {
|
|
158385
158048
|
return _setIosSwipeGestureEnabled2.apply(this, arguments);
|
|
158386
158049
|
}
|
|
158387
158050
|
function _setIosSwipeGestureEnabled2() {
|
|
@@ -232868,21 +232531,46 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232868
232531
|
exports.getTossShareLink = getTossShareLink;
|
|
232869
232532
|
var _asyncToGenerator2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator"));
|
|
232870
232533
|
var _AppsInTossModule = _$$_REQUIRE(_dependencyMap[2], "./AppsInTossModule");
|
|
232871
|
-
|
|
232534
|
+
var _isMinVersionSupported = _$$_REQUIRE(_dependencyMap[3], "./isMinVersionSupported");
|
|
232535
|
+
var V2_MIN_VERSION = {
|
|
232536
|
+
android: '5.240.0',
|
|
232537
|
+
ios: '5.239.0'
|
|
232538
|
+
};
|
|
232539
|
+
function getTossShareLink(_x, _x2) {
|
|
232872
232540
|
return _getTossShareLink.apply(this, arguments);
|
|
232873
232541
|
}
|
|
232874
232542
|
function _getTossShareLink() {
|
|
232875
|
-
_getTossShareLink = (0, _asyncToGenerator2.default)(function* (path) {
|
|
232876
|
-
|
|
232543
|
+
_getTossShareLink = (0, _asyncToGenerator2.default)(function* (path, ogImageUrl) {
|
|
232544
|
+
if (!(0, _isMinVersionSupported.isMinVersionSupported)(V2_MIN_VERSION)) {
|
|
232545
|
+
return yield getTossShareLinkV1(path);
|
|
232546
|
+
}
|
|
232547
|
+
var params = {
|
|
232548
|
+
params: {
|
|
232549
|
+
url: path,
|
|
232550
|
+
ogImageUrl: ogImageUrl
|
|
232551
|
+
}
|
|
232552
|
+
};
|
|
232553
|
+
var _yield$AppsInTossModu = yield _AppsInTossModule.AppsInTossModule.getTossShareLink(params),
|
|
232877
232554
|
shareLink = _yield$AppsInTossModu.shareLink;
|
|
232555
|
+
return shareLink;
|
|
232556
|
+
});
|
|
232557
|
+
return _getTossShareLink.apply(this, arguments);
|
|
232558
|
+
}
|
|
232559
|
+
function getTossShareLinkV1(_x3) {
|
|
232560
|
+
return _getTossShareLinkV.apply(this, arguments);
|
|
232561
|
+
}
|
|
232562
|
+
function _getTossShareLinkV() {
|
|
232563
|
+
_getTossShareLinkV = (0, _asyncToGenerator2.default)(function* (path) {
|
|
232564
|
+
var _yield$AppsInTossModu2 = yield _AppsInTossModule.AppsInTossModule.getTossShareLink({}),
|
|
232565
|
+
shareLink = _yield$AppsInTossModu2.shareLink;
|
|
232878
232566
|
var shareUrl = new URL(shareLink);
|
|
232879
232567
|
shareUrl.searchParams.set('deep_link_value', path);
|
|
232880
232568
|
shareUrl.searchParams.set('af_dp', path);
|
|
232881
232569
|
return shareUrl.toString();
|
|
232882
232570
|
});
|
|
232883
|
-
return
|
|
232571
|
+
return _getTossShareLinkV.apply(this, arguments);
|
|
232884
232572
|
}
|
|
232885
|
-
},2594,[1,16,2580],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getTossShareLink.ts");
|
|
232573
|
+
},2594,[1,16,2580,2592],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getTossShareLink.ts");
|
|
232886
232574
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
232887
232575
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
232888
232576
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -232965,15 +232653,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
232965
232653
|
var _asyncToGenerator2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator"));
|
|
232966
232654
|
var _AppsInTossModule = _$$_REQUIRE(_dependencyMap[2], "./AppsInTossModule");
|
|
232967
232655
|
var _isMinVersionSupported = _$$_REQUIRE(_dependencyMap[3], "./isMinVersionSupported");
|
|
232656
|
+
var MIN_VERSION_BY_USER_TYPE = {
|
|
232657
|
+
USER_PERSONAL: {
|
|
232658
|
+
android: '5.233.0',
|
|
232659
|
+
ios: '5.233.0'
|
|
232660
|
+
},
|
|
232661
|
+
USER_NONE: {
|
|
232662
|
+
android: '5.236.0',
|
|
232663
|
+
ios: '5.236.0'
|
|
232664
|
+
}
|
|
232665
|
+
};
|
|
232968
232666
|
function appsInTossSignTossCert(_x) {
|
|
232969
232667
|
return _appsInTossSignTossCert.apply(this, arguments);
|
|
232970
232668
|
}
|
|
232971
232669
|
function _appsInTossSignTossCert() {
|
|
232972
232670
|
_appsInTossSignTossCert = (0, _asyncToGenerator2.default)(function* (params) {
|
|
232973
|
-
var
|
|
232974
|
-
|
|
232975
|
-
ios: '5.233.0'
|
|
232976
|
-
});
|
|
232671
|
+
var minVersion = params.skipConfirmDoc === true ? MIN_VERSION_BY_USER_TYPE.USER_NONE : MIN_VERSION_BY_USER_TYPE.USER_PERSONAL;
|
|
232672
|
+
var isSupported = (0, _isMinVersionSupported.isMinVersionSupported)(minVersion);
|
|
232977
232673
|
if (!isSupported) {
|
|
232978
232674
|
console.warn('appsInTossSignTossCert is not supported in this app version');
|
|
232979
232675
|
return;
|