@apps-in-toss/web-framework 0.0.0-dev.1765732023607 → 0.0.0-dev.1765876894045
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/prebuilt/dev.android.js +431 -103
- package/dist/prebuilt/dev.ios.js +431 -103
- package/dist/prebuilt/prod.android.js +377 -56
- package/dist/prebuilt/prod.ios.js +377 -56
- package/package.json +8 -8
|
@@ -46074,6 +46074,328 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46074
46074
|
}
|
|
46075
46075
|
return "".concat(scheme, "://").concat(url.hostname).concat(url.pathname).concat(url.search);
|
|
46076
46076
|
}
|
|
46077
|
+
function noop4() {
|
|
46078
|
+
}
|
|
46079
|
+
function generateSessionId() {
|
|
46080
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(c41) {
|
|
46081
|
+
var r50 = Math.random() * 16 | 0;
|
|
46082
|
+
var v24 = c41 === "x" ? r50 : r50 & 3 | 8;
|
|
46083
|
+
return v24.toString(16);
|
|
46084
|
+
});
|
|
46085
|
+
}
|
|
46086
|
+
function fetchTossAd(params) {
|
|
46087
|
+
if (!fetchTossAd.isSupported()) {
|
|
46088
|
+
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE5));
|
|
46089
|
+
return noop4;
|
|
46090
|
+
}
|
|
46091
|
+
var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
|
|
46092
|
+
var adGroupId = options.adGroupId;
|
|
46093
|
+
var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("fetchTossAd", {
|
|
46094
|
+
spaceUnitId: adGroupId,
|
|
46095
|
+
sessionId,
|
|
46096
|
+
sdkId: options.sdkId,
|
|
46097
|
+
availableStyleIds: options.availableStyleIds
|
|
46098
|
+
}, {
|
|
46099
|
+
onSuccess: function(response) {
|
|
46100
|
+
onEvent(response);
|
|
46101
|
+
},
|
|
46102
|
+
onError: function(error) {
|
|
46103
|
+
onError2(error);
|
|
46104
|
+
}
|
|
46105
|
+
});
|
|
46106
|
+
return unregisterCallbacks;
|
|
46107
|
+
}
|
|
46108
|
+
function generateRequestId() {
|
|
46109
|
+
var timestamp = Date.now().toString(36).toUpperCase();
|
|
46110
|
+
var random = Math.random().toString(36).substring(2, 7).toUpperCase();
|
|
46111
|
+
return "ait-".concat(timestamp).concat(random);
|
|
46112
|
+
}
|
|
46113
|
+
function getReferrer3() {
|
|
46114
|
+
try {
|
|
46115
|
+
return new URL(getSchemeUri()).searchParams.get("referrer");
|
|
46116
|
+
} catch (e60) {
|
|
46117
|
+
return null;
|
|
46118
|
+
}
|
|
46119
|
+
}
|
|
46120
|
+
function getIsDev() {
|
|
46121
|
+
try {
|
|
46122
|
+
return new URL(getSchemeUri()).searchParams.get("isDev") === "true";
|
|
46123
|
+
} catch (e60) {
|
|
46124
|
+
return false;
|
|
46125
|
+
}
|
|
46126
|
+
}
|
|
46127
|
+
function getPostEventTrackingUrl() {
|
|
46128
|
+
var isDev = getIsDev();
|
|
46129
|
+
if (OPERATIONAL_ENVIRONMENT === "sandbox" || isDev) {
|
|
46130
|
+
return ALPHA_EVENT_TRACKER_HTTP_ENDPOINT;
|
|
46131
|
+
}
|
|
46132
|
+
return LIVE_EVENT_TRACKER_HTTP_ENDPOINT;
|
|
46133
|
+
}
|
|
46134
|
+
function postEventTracking(params) {
|
|
46135
|
+
var endpoint = getPostEventTrackingUrl();
|
|
46136
|
+
var bodyJSON = JSON.stringify(_object_spread_props(_object_spread({}, params), {
|
|
46137
|
+
os: OS,
|
|
46138
|
+
appVer: APP_VER,
|
|
46139
|
+
deviceIdType: "NONE",
|
|
46140
|
+
platform: "RN"
|
|
46141
|
+
}));
|
|
46142
|
+
return fetch(endpoint, {
|
|
46143
|
+
method: "POST",
|
|
46144
|
+
headers: {
|
|
46145
|
+
"Content-Type": "application/json"
|
|
46146
|
+
},
|
|
46147
|
+
body: bodyJSON
|
|
46148
|
+
}).catch(noop4);
|
|
46149
|
+
}
|
|
46150
|
+
function integratedAdIsSupported() {
|
|
46151
|
+
return isMinVersionSupported({
|
|
46152
|
+
android: ANDROID_INTEGRATED_AD_SUPPORTED_VERSION,
|
|
46153
|
+
ios: IOS_INTEGRATED_AD_SUPPORTED_VERSION
|
|
46154
|
+
});
|
|
46155
|
+
}
|
|
46156
|
+
function generateLoadFullScreenAd(sdkId) {
|
|
46157
|
+
var fn7 = function(params) {
|
|
46158
|
+
if (!GoogleAdMob.loadAppsInTossAdMob.isSupported()) {
|
|
46159
|
+
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE22));
|
|
46160
|
+
return noop4;
|
|
46161
|
+
}
|
|
46162
|
+
if (!integratedAdIsSupported()) {
|
|
46163
|
+
return GoogleAdMob.loadAppsInTossAdMob(_object_spread_props(_object_spread({}, params), {
|
|
46164
|
+
onEvent: function(event) {
|
|
46165
|
+
if (event.type === "loaded") {
|
|
46166
|
+
var _event_data_responseInfo_loadedAdNetworkInfo;
|
|
46167
|
+
var requestId = generateRequestId();
|
|
46168
|
+
INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId] = requestId;
|
|
46169
|
+
var _event_data_responseInfo_loadedAdNetworkInfo_adSourceName;
|
|
46170
|
+
postEventTracking({
|
|
46171
|
+
eventName: "LOAD",
|
|
46172
|
+
spaceUnitId: params.options.adGroupId,
|
|
46173
|
+
requestId,
|
|
46174
|
+
responseId: event.data.responseInfo.responseId,
|
|
46175
|
+
mediationType: "ADMOB",
|
|
46176
|
+
format: "",
|
|
46177
|
+
adSourceName: (_event_data_responseInfo_loadedAdNetworkInfo_adSourceName = (_event_data_responseInfo_loadedAdNetworkInfo = event.data.responseInfo.loadedAdNetworkInfo) === null || _event_data_responseInfo_loadedAdNetworkInfo === void 0 ? void 0 : _event_data_responseInfo_loadedAdNetworkInfo.adSourceName) !== null && _event_data_responseInfo_loadedAdNetworkInfo_adSourceName !== void 0 ? _event_data_responseInfo_loadedAdNetworkInfo_adSourceName : "",
|
|
46178
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46179
|
+
});
|
|
46180
|
+
}
|
|
46181
|
+
return params.onEvent(event);
|
|
46182
|
+
},
|
|
46183
|
+
onError: function(error) {
|
|
46184
|
+
var _INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId;
|
|
46185
|
+
var requestId = (_INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) !== null && _INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId !== void 0 ? _INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId : "";
|
|
46186
|
+
postEventTracking({
|
|
46187
|
+
eventName: "FAILED_TO_LOAD",
|
|
46188
|
+
spaceUnitId: params.options.adGroupId,
|
|
46189
|
+
requestId,
|
|
46190
|
+
responseId: "",
|
|
46191
|
+
mediationType: "ADMOB",
|
|
46192
|
+
format: "",
|
|
46193
|
+
adSourceName: "",
|
|
46194
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46195
|
+
});
|
|
46196
|
+
return params.onError(error);
|
|
46197
|
+
}
|
|
46198
|
+
}));
|
|
46199
|
+
}
|
|
46200
|
+
var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
|
|
46201
|
+
var adGroupId = options.adGroupId;
|
|
46202
|
+
var referrer2 = getReferrer3();
|
|
46203
|
+
var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("loadTossAdOrAdmob", {
|
|
46204
|
+
spaceUnitId: adGroupId,
|
|
46205
|
+
referrer: referrer2,
|
|
46206
|
+
sessionId,
|
|
46207
|
+
sdkId
|
|
46208
|
+
}, {
|
|
46209
|
+
onSuccess: function() {
|
|
46210
|
+
onEvent({
|
|
46211
|
+
type: "loaded"
|
|
46212
|
+
});
|
|
46213
|
+
},
|
|
46214
|
+
onError: function(error) {
|
|
46215
|
+
onError2(error);
|
|
46216
|
+
}
|
|
46217
|
+
});
|
|
46218
|
+
return unregisterCallbacks;
|
|
46219
|
+
};
|
|
46220
|
+
fn7.isSupported = GoogleAdMob.loadAppsInTossAdMob.isSupported;
|
|
46221
|
+
return fn7;
|
|
46222
|
+
}
|
|
46223
|
+
function showFullScreenAd(params) {
|
|
46224
|
+
if (!GoogleAdMob.showAppsInTossAdMob.isSupported()) {
|
|
46225
|
+
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE22));
|
|
46226
|
+
return noop4;
|
|
46227
|
+
}
|
|
46228
|
+
if (!integratedAdIsSupported()) {
|
|
46229
|
+
return GoogleAdMob.showAppsInTossAdMob(_object_spread_props(_object_spread({}, params), {
|
|
46230
|
+
onEvent: function(event) {
|
|
46231
|
+
var _INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId;
|
|
46232
|
+
var requestId = (_INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) !== null && _INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId !== void 0 ? _INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId : "";
|
|
46233
|
+
switch (event.type) {
|
|
46234
|
+
case "show":
|
|
46235
|
+
postEventTracking({
|
|
46236
|
+
eventName: "SHOW",
|
|
46237
|
+
spaceUnitId: params.options.adGroupId,
|
|
46238
|
+
requestId,
|
|
46239
|
+
responseId: "",
|
|
46240
|
+
mediationType: "ADMOB",
|
|
46241
|
+
format: "",
|
|
46242
|
+
adSourceName: "",
|
|
46243
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46244
|
+
});
|
|
46245
|
+
break;
|
|
46246
|
+
case "failedToShow":
|
|
46247
|
+
postEventTracking({
|
|
46248
|
+
eventName: "FAILED_TO_SHOW",
|
|
46249
|
+
spaceUnitId: params.options.adGroupId,
|
|
46250
|
+
requestId,
|
|
46251
|
+
responseId: "",
|
|
46252
|
+
mediationType: "ADMOB",
|
|
46253
|
+
format: "",
|
|
46254
|
+
adSourceName: "",
|
|
46255
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46256
|
+
});
|
|
46257
|
+
break;
|
|
46258
|
+
case "impression":
|
|
46259
|
+
postEventTracking({
|
|
46260
|
+
eventName: "IMP",
|
|
46261
|
+
spaceUnitId: params.options.adGroupId,
|
|
46262
|
+
requestId,
|
|
46263
|
+
responseId: "",
|
|
46264
|
+
mediationType: "ADMOB",
|
|
46265
|
+
format: "",
|
|
46266
|
+
adSourceName: "",
|
|
46267
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46268
|
+
});
|
|
46269
|
+
break;
|
|
46270
|
+
case "clicked":
|
|
46271
|
+
postEventTracking({
|
|
46272
|
+
eventName: "CLICK",
|
|
46273
|
+
spaceUnitId: params.options.adGroupId,
|
|
46274
|
+
requestId,
|
|
46275
|
+
responseId: "",
|
|
46276
|
+
mediationType: "ADMOB",
|
|
46277
|
+
format: "",
|
|
46278
|
+
adSourceName: "",
|
|
46279
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46280
|
+
});
|
|
46281
|
+
break;
|
|
46282
|
+
case "dismissed":
|
|
46283
|
+
postEventTracking({
|
|
46284
|
+
eventName: "DISMISS",
|
|
46285
|
+
spaceUnitId: params.options.adGroupId,
|
|
46286
|
+
requestId,
|
|
46287
|
+
responseId: "",
|
|
46288
|
+
mediationType: "ADMOB",
|
|
46289
|
+
format: "",
|
|
46290
|
+
adSourceName: "",
|
|
46291
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46292
|
+
});
|
|
46293
|
+
break;
|
|
46294
|
+
case "userEarnedReward":
|
|
46295
|
+
postEventTracking({
|
|
46296
|
+
eventName: "USER_EARNED_REWARD",
|
|
46297
|
+
spaceUnitId: params.options.adGroupId,
|
|
46298
|
+
requestId,
|
|
46299
|
+
responseId: "",
|
|
46300
|
+
mediationType: "ADMOB",
|
|
46301
|
+
format: "",
|
|
46302
|
+
adSourceName: "",
|
|
46303
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46304
|
+
});
|
|
46305
|
+
break;
|
|
46306
|
+
}
|
|
46307
|
+
return params.onEvent(event);
|
|
46308
|
+
},
|
|
46309
|
+
onError: function(error) {
|
|
46310
|
+
var _INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId;
|
|
46311
|
+
var requestId = (_INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) !== null && _INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId !== void 0 ? _INTG_AD_ADM_FALLBACK_RID_MAP_params_options_adGroupId : "";
|
|
46312
|
+
postEventTracking({
|
|
46313
|
+
eventName: "FAILED_TO_SHOW",
|
|
46314
|
+
spaceUnitId: params.options.adGroupId,
|
|
46315
|
+
requestId,
|
|
46316
|
+
responseId: "",
|
|
46317
|
+
mediationType: "ADMOB",
|
|
46318
|
+
format: "",
|
|
46319
|
+
adSourceName: "",
|
|
46320
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
46321
|
+
});
|
|
46322
|
+
return params.onError(error);
|
|
46323
|
+
}
|
|
46324
|
+
}));
|
|
46325
|
+
}
|
|
46326
|
+
var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
|
|
46327
|
+
var adGroupId = options.adGroupId;
|
|
46328
|
+
var referrer2 = getReferrer3();
|
|
46329
|
+
var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("showTossAdOrAdmob", {
|
|
46330
|
+
spaceUnitId: adGroupId,
|
|
46331
|
+
referrer: referrer2,
|
|
46332
|
+
sessionId
|
|
46333
|
+
}, {
|
|
46334
|
+
onAdClicked: function() {
|
|
46335
|
+
onEvent({
|
|
46336
|
+
type: "clicked"
|
|
46337
|
+
});
|
|
46338
|
+
},
|
|
46339
|
+
onAdDismissed: function() {
|
|
46340
|
+
onEvent({
|
|
46341
|
+
type: "dismissed"
|
|
46342
|
+
});
|
|
46343
|
+
},
|
|
46344
|
+
onAdFailedToShow: function() {
|
|
46345
|
+
onEvent({
|
|
46346
|
+
type: "failedToShow"
|
|
46347
|
+
});
|
|
46348
|
+
},
|
|
46349
|
+
onAdImpression: function() {
|
|
46350
|
+
onEvent({
|
|
46351
|
+
type: "impression"
|
|
46352
|
+
});
|
|
46353
|
+
},
|
|
46354
|
+
onAdShow: function() {
|
|
46355
|
+
onEvent({
|
|
46356
|
+
type: "show"
|
|
46357
|
+
});
|
|
46358
|
+
},
|
|
46359
|
+
onUserEarnedReward: function(data) {
|
|
46360
|
+
onEvent({
|
|
46361
|
+
type: "userEarnedReward",
|
|
46362
|
+
data
|
|
46363
|
+
});
|
|
46364
|
+
},
|
|
46365
|
+
onSuccess: function() {
|
|
46366
|
+
onEvent({
|
|
46367
|
+
type: "requested"
|
|
46368
|
+
});
|
|
46369
|
+
},
|
|
46370
|
+
onError: function(error) {
|
|
46371
|
+
onError2(error);
|
|
46372
|
+
}
|
|
46373
|
+
});
|
|
46374
|
+
return unregisterCallbacks;
|
|
46375
|
+
}
|
|
46376
|
+
function tossAdEventLog(params) {
|
|
46377
|
+
return _tossAdEventLog.apply(this, arguments);
|
|
46378
|
+
}
|
|
46379
|
+
function _tossAdEventLog() {
|
|
46380
|
+
_tossAdEventLog = _async_to_generator(function(params) {
|
|
46381
|
+
var referrer2, appName, eventLogParams;
|
|
46382
|
+
return __generator(this, function(_state) {
|
|
46383
|
+
referrer2 = getReferrer3();
|
|
46384
|
+
appName = Granite.appName;
|
|
46385
|
+
eventLogParams = _object_spread_props(_object_spread({}, params), {
|
|
46386
|
+
params: _object_spread_props(_object_spread({}, params.params), {
|
|
46387
|
+
referrer: referrer2,
|
|
46388
|
+
app_name: appName
|
|
46389
|
+
})
|
|
46390
|
+
});
|
|
46391
|
+
return [
|
|
46392
|
+
2,
|
|
46393
|
+
INTERNAL__module.tossCoreEventLog(eventLogParams)
|
|
46394
|
+
];
|
|
46395
|
+
});
|
|
46396
|
+
});
|
|
46397
|
+
return _tossAdEventLog.apply(this, arguments);
|
|
46398
|
+
}
|
|
46077
46399
|
function serializeError(error) {
|
|
46078
46400
|
return JSON.stringify(error, function(_16, value) {
|
|
46079
46401
|
if (_instanceof1(value, Error)) {
|
|
@@ -46628,7 +46950,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46628
46950
|
var batteryModePreference = param.batteryModePreference, colorPreference = param.colorPreference, locale = param.locale, navbarPreference = param.navbarPreference, pureSafeArea = param.pureSafeArea, safeArea = param.safeArea, safeAreaBottomTransparency = param.safeAreaBottomTransparency;
|
|
46629
46951
|
var platform = getPlatformOS();
|
|
46630
46952
|
var appVersion = getTossAppVersion();
|
|
46631
|
-
var fontScale = (0,
|
|
46953
|
+
var fontScale = (0, import_react_native230.useWindowDimensions)().fontScale;
|
|
46632
46954
|
var platformString = platform === "ios" ? "iPhone" : "Android phone";
|
|
46633
46955
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
46634
46956
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
@@ -46758,6 +47080,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46758
47080
|
/** AdMobV2 */
|
|
46759
47081
|
loadAppsInTossAdMob: GoogleAdMob.loadAppsInTossAdMob,
|
|
46760
47082
|
showAppsInTossAdMob: GoogleAdMob.showAppsInTossAdMob,
|
|
47083
|
+
/** IntegratedAd */
|
|
47084
|
+
loadFullScreenAd: loadFullScreenAdForWeb,
|
|
47085
|
+
showFullScreenAd,
|
|
47086
|
+
/** TossAd */
|
|
47087
|
+
fetchTossAd,
|
|
46761
47088
|
/** IAP */
|
|
46762
47089
|
iapCreateOneTimePurchaseOrder: IAP.createOneTimePurchaseOrder,
|
|
46763
47090
|
requestOneTimePurchase
|
|
@@ -46792,6 +47119,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46792
47119
|
/** AdMobV2 */
|
|
46793
47120
|
loadAppsInTossAdMob_isSupported: GoogleAdMob.loadAppsInTossAdMob.isSupported,
|
|
46794
47121
|
showAppsInTossAdMob_isSupported: GoogleAdMob.showAppsInTossAdMob.isSupported,
|
|
47122
|
+
/** IntegratedAd */
|
|
47123
|
+
loadFullScreenAd_isSupported: loadFullScreenAdForWeb.isSupported,
|
|
47124
|
+
showFullScreenAd_isSupported: showFullScreenAd.isSupported,
|
|
47125
|
+
/** TossAd */
|
|
47126
|
+
fetchTossAd_isSupported: fetchTossAd.isSupported,
|
|
46795
47127
|
/** env */
|
|
46796
47128
|
getDeploymentId: env.getDeploymentId
|
|
46797
47129
|
}),
|
|
@@ -46843,8 +47175,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46843
47175
|
getPendingOrders: IAP.getPendingOrders,
|
|
46844
47176
|
getCompletedOrRefundedOrders: IAP.getCompletedOrRefundedOrders,
|
|
46845
47177
|
completeProductGrant: IAP.completeProductGrant,
|
|
46846
|
-
|
|
46847
|
-
|
|
47178
|
+
/** Toss Ads */
|
|
47179
|
+
tossAdEventLog
|
|
46848
47180
|
})
|
|
46849
47181
|
});
|
|
46850
47182
|
var headerPropForExternalWebView = (0, import_react225.useMemo)(function() {
|
|
@@ -46940,54 +47272,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46940
47272
|
"servicetoss://*",
|
|
46941
47273
|
"supertoss://*",
|
|
46942
47274
|
"intent://*"
|
|
46943
|
-
]
|
|
46944
|
-
onContentProcessDidTerminate: function(event) {
|
|
46945
|
-
var _webViewRef_current;
|
|
46946
|
-
webViewProcessDidTerminateEventLog(event.nativeEvent.url);
|
|
46947
|
-
(_webViewRef_current = webViewRef.current) === null || _webViewRef_current === void 0 ? void 0 : _webViewRef_current.reload();
|
|
46948
|
-
},
|
|
46949
|
-
onRenderProcessGone: function() {
|
|
46950
|
-
var _webViewRef_current;
|
|
46951
|
-
webViewProcessDidTerminateEventLog();
|
|
46952
|
-
(_webViewRef_current = webViewRef.current) === null || _webViewRef_current === void 0 ? void 0 : _webViewRef_current.reload();
|
|
46953
|
-
}
|
|
47275
|
+
]
|
|
46954
47276
|
}));
|
|
46955
47277
|
}
|
|
46956
|
-
function webViewMemoryDebugLog(params) {
|
|
46957
|
-
return _webViewMemoryDebugLog.apply(this, arguments);
|
|
46958
|
-
}
|
|
46959
|
-
function _webViewMemoryDebugLog() {
|
|
46960
|
-
_webViewMemoryDebugLog = _async_to_generator(function(params) {
|
|
46961
|
-
return __generator(this, function(_state) {
|
|
46962
|
-
webViewDebugLog("AppsInTossWebViewMemoryDebug", params);
|
|
46963
|
-
return [
|
|
46964
|
-
2
|
|
46965
|
-
];
|
|
46966
|
-
});
|
|
46967
|
-
});
|
|
46968
|
-
return _webViewMemoryDebugLog.apply(this, arguments);
|
|
46969
|
-
}
|
|
46970
|
-
function webViewProcessDidTerminateEventLog(url) {
|
|
46971
|
-
webViewDebugLog("AppsInTossWebViewProcessDidTerminate", {
|
|
46972
|
-
url
|
|
46973
|
-
});
|
|
46974
|
-
}
|
|
46975
|
-
function webViewDebugLog(logName, params) {
|
|
46976
|
-
var global2 = getAppsInTossGlobals();
|
|
46977
|
-
var event = {
|
|
46978
|
-
log_name: logName,
|
|
46979
|
-
log_type: "debug",
|
|
46980
|
-
params: _object_spread_props(_object_spread({}, params), {
|
|
46981
|
-
app_name: Granite.appName,
|
|
46982
|
-
deployment_id: global2.deploymentId
|
|
46983
|
-
})
|
|
46984
|
-
};
|
|
46985
|
-
if (getOperationalEnvironment() === "toss") {
|
|
46986
|
-
INTERNAL__module.tossCoreEventLog(event);
|
|
46987
|
-
} else {
|
|
46988
|
-
console.log("[webViewDebugLog]", event);
|
|
46989
|
-
}
|
|
46990
|
-
}
|
|
46991
47278
|
function useGlobalScripts() {
|
|
46992
47279
|
var global2 = getAppsInTossGlobals();
|
|
46993
47280
|
var disableTextSelectionCSS = "\n const style = document.createElement('style');\n style.textContent = '*:not(input):not(textarea) { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }';\n document.head.appendChild(style);\n ";
|
|
@@ -47005,7 +47292,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47005
47292
|
return typeof script === "string";
|
|
47006
47293
|
}).join("\n");
|
|
47007
47294
|
}
|
|
47008
|
-
var import_react_native197, import_react208, import_react209, import_react210, import_react211, import_jsx_runtime217, import_react212, import_jsx_runtime218, import_react213, import_react_native203, import_react214, import_react_native205, import_react215, import_react_native207, import_react216, import_react217, import_react218, import_react219, import_jsx_runtime219, import_jsx_runtime220, import_react220, import_react_native210, import_react221, import_react222, import_react223, import_react_native215, import_react_native216, import_jsx_runtime221, import_jsx_runtime222, import_jsx_runtime223, import_jsx_runtime224, import_react224, import_jsx_runtime225, import_jsx_runtime226, import_react_native219, import_jsx_runtime227, import_jsx_runtime228, import_jsx_runtime229, import_react225, import_react_native221, import_react226, import_react_native222, import_react227, import_react_native224, import_jsx_runtime230, import_jsx_runtime231, import_react228, import_react229, import_jsx_runtime232, import_jsx_runtime233, import_react230, import_react231, import_react232, import_react233,
|
|
47295
|
+
var import_react_native197, import_react208, import_react209, import_react210, import_react211, import_jsx_runtime217, import_react212, import_jsx_runtime218, import_react213, import_react_native203, import_react214, import_react_native205, import_react215, import_react_native207, import_react216, import_react217, import_react218, import_react219, import_jsx_runtime219, import_jsx_runtime220, import_react220, import_react_native210, import_react221, import_react222, import_react223, import_react_native215, import_react_native216, import_jsx_runtime221, import_jsx_runtime222, import_jsx_runtime223, import_jsx_runtime224, import_react224, import_jsx_runtime225, import_jsx_runtime226, import_react_native219, import_jsx_runtime227, import_jsx_runtime228, import_jsx_runtime229, import_react225, import_react_native221, import_react226, import_react_native222, import_react227, import_react_native224, import_jsx_runtime230, import_jsx_runtime231, import_react228, import_react229, import_jsx_runtime232, import_jsx_runtime233, import_react230, import_react231, import_react232, import_react233, import_react_native230, import_react234, import_react235, import_jsx_runtime234, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __hasOwnProp2, __copyProps2, __reExport2, env, EXIT_IMPRESSION_LOG_NAME, EXIT_IMPRESSION_SCHEMA_ID, ENTRY_APP_EVENT_SCHEMA_ID, AppEvent, UPDATE_SCHEME, NavigationBarContext, GAME_PROFILE_WEBVIEW_URL, GAME_MIN_VERSION, PLAYSTORE_LINK, APPSTORE_LINK, getMarketLink, UPDATE_DIALOG_SCHEMA_ID, UPDATE_DIALOG_LOG_NAME, UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID, UPDATE_DIALOG_CTA_CLICK_LOG_NAME, DEFAULT_ERROR, useErrorAlert, INTERNAL__onVisibilityChangedByTransparentServiceWeb, openTransparentWebView, useTransparentWebview, useGameProfileToast, useGameCenterProfile, Z_INDEX, GameInitializer, overlayStyle, NAVI_BAR_IMPRESSION_SCHEMA_ID, NAVI_BAR_IMPRESSION_LOG_NAME, CLOSE_POPUP_SHOW_SCHEMA_ID, CLOSE_POPUP_SHOW_LOG_NAME, CLOSE_BUTTON_CLICK_SCHEMA_ID, CLOSE_BUTTON_CLICK_LOG_NAME, CLOSE_POPUP_CTA_CLICK_SCHEMA_ID, CLOSE_POPUP_CTA_CLICK_LOG_NAME, HOME_BUTTON_CLICK_SCHEMA_ID, HOME_BUTTON_CLICK_LOG_NAME, BOTTOM_SHEET_SCHEMA_ID, BOTTOM_SHEET_LOG_NAME, BOTTOM_SHEET_OPEN_SCHEMA_ID, BOTTOM_SHEET_OPEN_LOG_NAME, BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID, BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME, BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID, BOTTOM_SHEET_MENU_CLICK_LOG_NAME, iconNameRegExp, iconURLRegExp, SHARE_SCHEME_REFERRER, APP_SHARE_MENU_INFO, APP_BRIDGE_METHOD_NAME, MIN_VERSION, RNNavigationBar, bridge_entry_exports, AppsInToss, GameWebView, PartnerWebView, sessionId, ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION, IOS_FETCH_TOSS_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE5, ENVIRONMENT5, OPERATIONAL_ENVIRONMENT, OS, APP_VER, ALPHA_EVENT_TRACKER_HTTP_ENDPOINT, LIVE_EVENT_TRACKER_HTTP_ENDPOINT, INTEGRATED_AD_SDK_VERSION, ANDROID_INTEGRATED_AD_SUPPORTED_VERSION, IOS_INTEGRATED_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE22, INTG_AD_ADM_FALLBACK_RID_MAP, loadFullScreenAd, loadFullScreenAdForWeb, globalEventListenerMap, EventEmitter, INITIAL_STATE, HISTORY_BACK_SCRIPT, HISTORY_HOME_SCRIPT, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId, getReferrer22, trackScreen, operationalEnvironment, TYPES, WEBVIEW_TYPES, Analytics2;
|
|
47009
47296
|
var init_dist8 = __esm({
|
|
47010
47297
|
"../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.js"() {
|
|
47011
47298
|
"use strict";
|
|
@@ -47144,6 +47431,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47144
47431
|
import_react229 = __toESM(require_react(), 1);
|
|
47145
47432
|
import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
|
|
47146
47433
|
import_jsx_runtime233 = __toESM(require_jsx_runtime(), 1);
|
|
47434
|
+
init_dist6();
|
|
47435
|
+
init_dist6();
|
|
47436
|
+
init_src3();
|
|
47437
|
+
init_dist6();
|
|
47438
|
+
init_src3();
|
|
47439
|
+
init_dist6();
|
|
47440
|
+
init_src3();
|
|
47147
47441
|
import_react230 = __toESM(require_react(), 1);
|
|
47148
47442
|
init_react_native_safe_area_context();
|
|
47149
47443
|
import_react231 = __toESM(require_react(), 1);
|
|
@@ -47153,7 +47447,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47153
47447
|
import_react232 = __toESM(require_react(), 1);
|
|
47154
47448
|
import_react233 = __toESM(require_react(), 1);
|
|
47155
47449
|
init_dist6();
|
|
47156
|
-
|
|
47450
|
+
import_react_native230 = __toESM(require_react_native(), 1);
|
|
47157
47451
|
init_dist6();
|
|
47158
47452
|
import_react234 = __toESM(require_react(), 1);
|
|
47159
47453
|
import_react235 = __toESM(require_react(), 1);
|
|
@@ -47751,6 +48045,33 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47751
48045
|
]
|
|
47752
48046
|
});
|
|
47753
48047
|
});
|
|
48048
|
+
sessionId = generateSessionId();
|
|
48049
|
+
ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
48050
|
+
IOS_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
48051
|
+
UNSUPPORTED_ERROR_MESSAGE5 = "This feature is not supported in the current environment";
|
|
48052
|
+
ENVIRONMENT5 = getOperationalEnvironment();
|
|
48053
|
+
fetchTossAd.isSupported = function() {
|
|
48054
|
+
if (ENVIRONMENT5 !== "toss") {
|
|
48055
|
+
return false;
|
|
48056
|
+
}
|
|
48057
|
+
return isMinVersionSupported({
|
|
48058
|
+
android: ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION,
|
|
48059
|
+
ios: IOS_FETCH_TOSS_AD_SUPPORTED_VERSION
|
|
48060
|
+
});
|
|
48061
|
+
};
|
|
48062
|
+
OPERATIONAL_ENVIRONMENT = getOperationalEnvironment();
|
|
48063
|
+
OS = getPlatformOS();
|
|
48064
|
+
APP_VER = getTossAppVersion();
|
|
48065
|
+
ALPHA_EVENT_TRACKER_HTTP_ENDPOINT = "https://alpha-trillion.toss.im/trk/sdk-mediation/event";
|
|
48066
|
+
LIVE_EVENT_TRACKER_HTTP_ENDPOINT = "https://trillion.toss.im/trk/sdk-mediation/event";
|
|
48067
|
+
INTEGRATED_AD_SDK_VERSION = "0.0.0";
|
|
48068
|
+
ANDROID_INTEGRATED_AD_SUPPORTED_VERSION = "5.241.0";
|
|
48069
|
+
IOS_INTEGRATED_AD_SUPPORTED_VERSION = "5.241.0";
|
|
48070
|
+
UNSUPPORTED_ERROR_MESSAGE22 = "This feature is not supported in the current environment";
|
|
48071
|
+
INTG_AD_ADM_FALLBACK_RID_MAP = {};
|
|
48072
|
+
loadFullScreenAd = generateLoadFullScreenAd("107");
|
|
48073
|
+
loadFullScreenAdForWeb = generateLoadFullScreenAd("107");
|
|
48074
|
+
showFullScreenAd.isSupported = GoogleAdMob.showAppsInTossAdMob.isSupported;
|
|
47754
48075
|
globalEventListenerMap = /* @__PURE__ */ new Map();
|
|
47755
48076
|
EventEmitter = /* @__PURE__ */ function() {
|
|
47756
48077
|
"use strict";
|
|
@@ -47857,7 +48178,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47857
48178
|
};
|
|
47858
48179
|
}
|
|
47859
48180
|
};
|
|
47860
|
-
|
|
48181
|
+
getReferrer22 = function() {
|
|
47861
48182
|
try {
|
|
47862
48183
|
var referrer2 = new URL(getSchemeUri());
|
|
47863
48184
|
return referrer2.searchParams.get("referrer");
|
|
@@ -47872,7 +48193,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47872
48193
|
log_name: "".concat(groupId, "::screen"),
|
|
47873
48194
|
params: {
|
|
47874
48195
|
search,
|
|
47875
|
-
referrer:
|
|
48196
|
+
referrer: getReferrer22(),
|
|
47876
48197
|
deployment_id: env.getDeploymentId(),
|
|
47877
48198
|
deployment_timestamp: extractDateFromUUIDv7(env.getDeploymentId()).getTime()
|
|
47878
48199
|
}
|
|
@@ -47907,7 +48228,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47907
48228
|
}
|
|
47908
48229
|
});
|
|
47909
48230
|
function Index() {
|
|
47910
|
-
return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
48231
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(import_react_native232.View, {
|
|
47911
48232
|
style: {
|
|
47912
48233
|
flex: 1
|
|
47913
48234
|
},
|
|
@@ -47929,13 +48250,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47929
48250
|
})
|
|
47930
48251
|
});
|
|
47931
48252
|
}
|
|
47932
|
-
var import_jsx_runtime235,
|
|
48253
|
+
var import_jsx_runtime235, import_react_native232;
|
|
47933
48254
|
var init_pages = __esm({
|
|
47934
48255
|
"react-native/pages/index.tsx"() {
|
|
47935
48256
|
"use strict";
|
|
47936
48257
|
import_jsx_runtime235 = __toESM(require_jsx_runtime(), 1);
|
|
47937
48258
|
init_dist8();
|
|
47938
|
-
|
|
48259
|
+
import_react_native232 = __toESM(require_react_native(), 1);
|
|
47939
48260
|
}
|
|
47940
48261
|
});
|
|
47941
48262
|
|