@apps-in-toss/web-framework 0.0.0-dev.1764816865438 → 0.0.0-dev.1765732023607
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 +491 -926
- package/dist/prebuilt/dev.ios.js +491 -926
- package/dist/prebuilt/prod.android.js +860 -1840
- package/dist/prebuilt/prod.ios.js +860 -1840
- package/package.json +8 -8
package/dist/prebuilt/dev.ios.js
CHANGED
|
@@ -153133,7 +153133,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153133
153133
|
var _default = exports.default = _framework.AppsInToss.registerApp(AppContainer, {
|
|
153134
153134
|
context: _context.context
|
|
153135
153135
|
});
|
|
153136
|
-
},1255,[1256,
|
|
153136
|
+
},1255,[1256,2629,9],"react-native/src/_app.tsx");
|
|
153137
153137
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
153138
153138
|
"use strict";
|
|
153139
153139
|
|
|
@@ -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
|
},
|
|
@@ -153234,9 +153228,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153234
153228
|
module.exports = __toCommonJS(src_exports);
|
|
153235
153229
|
var import_analytics2 = _$$_REQUIRE(_dependencyMap[7], "@apps-in-toss/analytics");
|
|
153236
153230
|
var import_analytics = _$$_REQUIRE(_dependencyMap[7], "@apps-in-toss/analytics");
|
|
153237
|
-
var
|
|
153231
|
+
var import_native_modules13 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153238
153232
|
var import_react_native23 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153239
|
-
var
|
|
153233
|
+
var import_tds_react_native10 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153240
153234
|
var import_react_native24 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
153241
153235
|
var import_native_modules2 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153242
153236
|
var import_react_native4 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
@@ -153416,52 +153410,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153416
153410
|
}
|
|
153417
153411
|
return context;
|
|
153418
153412
|
}
|
|
153419
|
-
var
|
|
153420
|
-
var
|
|
153421
|
-
var import_react6 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153422
|
-
function toIcon(source) {
|
|
153423
|
-
return source.startsWith("http") ? {
|
|
153424
|
-
source: {
|
|
153425
|
-
uri: source
|
|
153426
|
-
}
|
|
153427
|
-
} : {
|
|
153428
|
-
name: source
|
|
153429
|
-
};
|
|
153430
|
-
}
|
|
153431
|
-
function useAppsInTossBridge() {
|
|
153432
|
-
var controller = (0, import_tds_react_native.useBridge)();
|
|
153433
|
-
var appsInTossGlobals = getAppsInTossGlobals();
|
|
153434
|
-
(0, import_react6.useEffect)(function () {
|
|
153435
|
-
var isGameApp = appsInTossGlobals.webViewType === "game" || appsInTossGlobals.appType === "game";
|
|
153436
|
-
controller.open({
|
|
153437
|
-
serviceName: appsInTossGlobals.brandDisplayName,
|
|
153438
|
-
icon: toIcon(appsInTossGlobals.brandIcon),
|
|
153439
|
-
color: appsInTossGlobals.brandPrimaryColor,
|
|
153440
|
-
colorMode: isGameApp ? "inverted" : appsInTossGlobals.brandBridgeColorMode,
|
|
153441
|
-
onExited: function onExited() {
|
|
153442
|
-
import_native_modules3.appsInTossEvent.emit("entryMessageExited", void 0);
|
|
153443
|
-
}
|
|
153444
|
-
});
|
|
153445
|
-
}, []);
|
|
153446
|
-
}
|
|
153447
|
-
var import_native_modules13 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153448
|
-
var import_react18 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153413
|
+
var import_native_modules12 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153414
|
+
var import_react17 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153449
153415
|
var import_react_native22 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
153450
|
-
var
|
|
153416
|
+
var import_native_modules6 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153451
153417
|
var import_react_native10 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153452
|
-
var
|
|
153418
|
+
var import_tds_react_native4 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153453
153419
|
var import_es_hangul = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
153454
|
-
var
|
|
153420
|
+
var import_react11 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153455
153421
|
var import_react_native11 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
153456
153422
|
var GAME_PROFILE_WEBVIEW_URL = "servicetoss://game-center/profile";
|
|
153457
153423
|
var GAME_MIN_VERSION = {
|
|
153458
153424
|
android: "5.232.0",
|
|
153459
153425
|
ios: "5.232.0"
|
|
153460
153426
|
};
|
|
153461
|
-
var
|
|
153427
|
+
var import_native_modules3 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153462
153428
|
var import_react_native7 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153463
|
-
var
|
|
153464
|
-
var
|
|
153429
|
+
var import_tds_react_native = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153430
|
+
var import_react6 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153465
153431
|
var import_react_native6 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
153466
153432
|
var PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
|
|
153467
153433
|
var APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
|
|
@@ -153469,10 +153435,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153469
153435
|
return import_react_native6.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
|
|
153470
153436
|
};
|
|
153471
153437
|
function useAppUpdateDialog() {
|
|
153472
|
-
var _ref5 = (0,
|
|
153438
|
+
var _ref5 = (0, import_tds_react_native.useDialog)(),
|
|
153473
153439
|
openConfirm = _ref5.openConfirm;
|
|
153474
153440
|
var logging = useAppUpdateDialogLogging();
|
|
153475
|
-
var openAppUpdateDialog = (0,
|
|
153441
|
+
var openAppUpdateDialog = (0, import_react6.useCallback)(function () {
|
|
153476
153442
|
var _ref7 = _asyncToGenerator(function* (_ref6) {
|
|
153477
153443
|
var title = _ref6.title,
|
|
153478
153444
|
description = _ref6.description,
|
|
@@ -153517,7 +153483,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153517
153483
|
app_name: import_react_native7.Granite.appName
|
|
153518
153484
|
};
|
|
153519
153485
|
var logUpdateClick = function logUpdateClick() {
|
|
153520
|
-
|
|
153486
|
+
import_native_modules3.INTERNAL__module.tossCoreEventLog({
|
|
153521
153487
|
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
153522
153488
|
log_type: "event",
|
|
153523
153489
|
params: Object.assign({}, baseParams, {
|
|
@@ -153528,7 +153494,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153528
153494
|
});
|
|
153529
153495
|
};
|
|
153530
153496
|
var logCloseClick = function logCloseClick() {
|
|
153531
|
-
|
|
153497
|
+
import_native_modules3.INTERNAL__module.tossCoreEventLog({
|
|
153532
153498
|
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
153533
153499
|
log_type: "event",
|
|
153534
153500
|
params: Object.assign({}, baseParams, {
|
|
@@ -153539,7 +153505,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153539
153505
|
});
|
|
153540
153506
|
};
|
|
153541
153507
|
var logDialogShow = function logDialogShow() {
|
|
153542
|
-
|
|
153508
|
+
import_native_modules3.INTERNAL__module.tossCoreEventLog({
|
|
153543
153509
|
log_name: UPDATE_DIALOG_LOG_NAME,
|
|
153544
153510
|
log_type: "popup",
|
|
153545
153511
|
params: Object.assign({}, baseParams, {
|
|
@@ -153553,19 +153519,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153553
153519
|
show: logDialogShow
|
|
153554
153520
|
};
|
|
153555
153521
|
}
|
|
153556
|
-
var
|
|
153557
|
-
var
|
|
153522
|
+
var import_native_modules5 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153523
|
+
var import_react10 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153558
153524
|
var import_react_native8 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153559
|
-
var
|
|
153560
|
-
var
|
|
153525
|
+
var import_tds_react_native2 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153526
|
+
var import_react7 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153561
153527
|
var DEFAULT_ERROR = {
|
|
153562
153528
|
title: "\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",
|
|
153563
153529
|
description: "\uBB38\uC81C\uAC00 \uACC4\uC18D\uB418\uBA74 \uD1A0\uC2A4 \uACE0\uAC1D\uC13C\uD130(1599-4905)\uB85C \uBB38\uC758\uD574\uC8FC\uC138\uC694."
|
|
153564
153530
|
};
|
|
153565
153531
|
var useErrorAlert = function useErrorAlert() {
|
|
153566
|
-
var _ref8 = (0,
|
|
153532
|
+
var _ref8 = (0, import_tds_react_native2.useDialog)(),
|
|
153567
153533
|
openAlert = _ref8.openAlert;
|
|
153568
|
-
var openErrorAlert = (0,
|
|
153534
|
+
var openErrorAlert = (0, import_react7.useCallback)(_asyncToGenerator(function* () {
|
|
153569
153535
|
yield openAlert({
|
|
153570
153536
|
title: DEFAULT_ERROR.title,
|
|
153571
153537
|
description: DEFAULT_ERROR.description
|
|
@@ -153576,10 +153542,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153576
153542
|
open: openErrorAlert
|
|
153577
153543
|
};
|
|
153578
153544
|
};
|
|
153579
|
-
var
|
|
153545
|
+
var import_react8 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153580
153546
|
var import_react_native9 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153581
|
-
var
|
|
153582
|
-
var _INTERNAL__onVisibilityChangedByTransparentServiceWeb =
|
|
153547
|
+
var import_native_modules4 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153548
|
+
var _INTERNAL__onVisibilityChangedByTransparentServiceWeb = import_native_modules4.onVisibilityChangedByTransparentServiceWeb;
|
|
153583
153549
|
var openTransparentWebView = function openTransparentWebView(_ref10) {
|
|
153584
153550
|
var webUrl = _ref10.webUrl,
|
|
153585
153551
|
_ref10$cleanupWhenDis = _ref10.cleanupWhenDismissed,
|
|
@@ -153616,13 +153582,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153616
153582
|
(0, import_react_native9.openURL)(url.toString());
|
|
153617
153583
|
};
|
|
153618
153584
|
var useTransparentWebview = function useTransparentWebview() {
|
|
153619
|
-
var _ref13 = (0,
|
|
153585
|
+
var _ref13 = (0, import_react8.useState)(false),
|
|
153620
153586
|
_ref14 = _slicedToArray(_ref13, 2),
|
|
153621
153587
|
isWebviewLoading = _ref14[0],
|
|
153622
153588
|
setIsWebviewLoading = _ref14[1];
|
|
153623
153589
|
var _useErrorAlert = useErrorAlert(),
|
|
153624
153590
|
openErrorAlert = _useErrorAlert.open;
|
|
153625
|
-
var _openTransparentWebview = (0,
|
|
153591
|
+
var _openTransparentWebview = (0, import_react8.useCallback)(function (_ref15) {
|
|
153626
153592
|
var webUrl = _ref15.webUrl,
|
|
153627
153593
|
onClose = _ref15.onClose,
|
|
153628
153594
|
_onError2 = _ref15.onError;
|
|
@@ -153658,13 +153624,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153658
153624
|
open: _openTransparentWebview
|
|
153659
153625
|
};
|
|
153660
153626
|
};
|
|
153661
|
-
var
|
|
153627
|
+
var import_tds_react_native3 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153662
153628
|
var import_private2 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
153663
|
-
var
|
|
153629
|
+
var import_react9 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153664
153630
|
var import_jsx_runtime3 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
153665
153631
|
var useGameProfileToast = function useGameProfileToast() {
|
|
153666
153632
|
var overlay = (0, import_private2.useOverlay)();
|
|
153667
|
-
var openGameProfileToast = (0,
|
|
153633
|
+
var openGameProfileToast = (0, import_react9.useCallback)(function (nickname, profileImageUri) {
|
|
153668
153634
|
return new Promise(function (resolve) {
|
|
153669
153635
|
overlay.open(function (_ref16) {
|
|
153670
153636
|
var isOpen = _ref16.isOpen,
|
|
@@ -153673,7 +153639,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153673
153639
|
return (0, import_jsx_runtime3.jsx)(import_private2.ColorPreferenceProvider, {
|
|
153674
153640
|
colorPreference: "dark",
|
|
153675
153641
|
children: (0, import_jsx_runtime3.jsx)(import_private2.AdaptiveColorProvider, {
|
|
153676
|
-
children: (0, import_jsx_runtime3.jsx)(
|
|
153642
|
+
children: (0, import_jsx_runtime3.jsx)(import_tds_react_native3.Toast, {
|
|
153677
153643
|
open: isOpen,
|
|
153678
153644
|
onClose: function onClose() {
|
|
153679
153645
|
resolve();
|
|
@@ -153682,12 +153648,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153682
153648
|
onExited: exit,
|
|
153683
153649
|
position: "top",
|
|
153684
153650
|
text: nickname + "\uB2D8 \uBC18\uAC00\uC6CC\uC694!",
|
|
153685
|
-
icon: (0, import_jsx_runtime3.jsx)(
|
|
153651
|
+
icon: (0, import_jsx_runtime3.jsx)(import_tds_react_native3.Asset.Image, {
|
|
153686
153652
|
style: {
|
|
153687
153653
|
borderRadius: 64,
|
|
153688
153654
|
overflow: "hidden"
|
|
153689
153655
|
},
|
|
153690
|
-
frameShape:
|
|
153656
|
+
frameShape: import_tds_react_native3.Asset.frameShape.CleanW32,
|
|
153691
153657
|
source: {
|
|
153692
153658
|
uri: profileImageUri
|
|
153693
153659
|
}
|
|
@@ -153702,31 +153668,31 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153702
153668
|
openGameProfileToast: openGameProfileToast
|
|
153703
153669
|
};
|
|
153704
153670
|
};
|
|
153705
|
-
var useGameCenterProfile = function useGameCenterProfile(
|
|
153706
|
-
var _ref17 = (0,
|
|
153671
|
+
var useGameCenterProfile = function useGameCenterProfile() {
|
|
153672
|
+
var _ref17 = (0, import_react10.useState)(void 0),
|
|
153707
153673
|
_ref18 = _slicedToArray(_ref17, 2),
|
|
153708
153674
|
profileData = _ref18[0],
|
|
153709
153675
|
setProfileData = _ref18[1];
|
|
153710
|
-
var _ref19 = (0,
|
|
153676
|
+
var _ref19 = (0, import_react10.useState)(true),
|
|
153711
153677
|
_ref20 = _slicedToArray(_ref19, 2),
|
|
153712
153678
|
isProfileDataLoading = _ref20[0],
|
|
153713
153679
|
setIsProfileDataLoading = _ref20[1];
|
|
153714
|
-
var _ref21 = (0,
|
|
153680
|
+
var _ref21 = (0, import_react10.useState)(false),
|
|
153715
153681
|
_ref22 = _slicedToArray(_ref21, 2),
|
|
153716
153682
|
isProfileDataRefetching = _ref22[0],
|
|
153717
153683
|
setIsProfileDataRefetching = _ref22[1];
|
|
153718
|
-
var shouldShowProfileLoadingOverlay = isProfileDataLoading
|
|
153719
|
-
var shouldShowProfileNotFoundOverlay = (profileData == null ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" &&
|
|
153720
|
-
var canShowBottomSheetOrToast = !isProfileDataLoading
|
|
153684
|
+
var shouldShowProfileLoadingOverlay = isProfileDataLoading || isProfileDataRefetching;
|
|
153685
|
+
var shouldShowProfileNotFoundOverlay = (profileData == null ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && !isProfileDataRefetching;
|
|
153686
|
+
var canShowBottomSheetOrToast = !isProfileDataLoading;
|
|
153721
153687
|
var _useGameProfileToast = useGameProfileToast(),
|
|
153722
153688
|
openGameProfileToast = _useGameProfileToast.openGameProfileToast;
|
|
153723
153689
|
var _useErrorAlert2 = useErrorAlert(),
|
|
153724
153690
|
openErrorAlert = _useErrorAlert2.open;
|
|
153725
153691
|
var _useTransparentWebvie = useTransparentWebview(),
|
|
153726
153692
|
openTransparentWebView2 = _useTransparentWebvie.open;
|
|
153727
|
-
var fetchProfileData = (0,
|
|
153693
|
+
var fetchProfileData = (0, import_react10.useCallback)(_asyncToGenerator(function* () {
|
|
153728
153694
|
try {
|
|
153729
|
-
var data = yield (0,
|
|
153695
|
+
var data = yield (0, import_native_modules5.getGameCenterGameProfile)();
|
|
153730
153696
|
setProfileData(data);
|
|
153731
153697
|
setIsProfileDataLoading(false);
|
|
153732
153698
|
} catch (_) {
|
|
@@ -153734,10 +153700,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153734
153700
|
setIsProfileDataLoading(false);
|
|
153735
153701
|
}
|
|
153736
153702
|
}), [openErrorAlert]);
|
|
153737
|
-
var refetchProfileData = (0,
|
|
153703
|
+
var refetchProfileData = (0, import_react10.useCallback)(_asyncToGenerator(function* () {
|
|
153738
153704
|
try {
|
|
153739
153705
|
setIsProfileDataRefetching(true);
|
|
153740
|
-
var data = yield (0,
|
|
153706
|
+
var data = yield (0, import_native_modules5.getGameCenterGameProfile)();
|
|
153741
153707
|
setProfileData(data);
|
|
153742
153708
|
setIsProfileDataRefetching(false);
|
|
153743
153709
|
if ((data == null ? void 0 : data.statusCode) === "SUCCESS") {
|
|
@@ -153748,7 +153714,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153748
153714
|
openErrorAlert();
|
|
153749
153715
|
}
|
|
153750
153716
|
}), [openErrorAlert, openGameProfileToast]);
|
|
153751
|
-
var openProfileWebview = (0,
|
|
153717
|
+
var openProfileWebview = (0, import_react10.useCallback)(function () {
|
|
153752
153718
|
openTransparentWebView2({
|
|
153753
153719
|
webUrl: GAME_PROFILE_WEBVIEW_URL + "?appName=" + getAppName() + "&referrer=appsintoss." + getAppName(),
|
|
153754
153720
|
onClose: function () {
|
|
@@ -153782,9 +153748,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153782
153748
|
};
|
|
153783
153749
|
var import_jsx_runtime4 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
153784
153750
|
var GameInitializer = function GameInitializer(_ref25) {
|
|
153785
|
-
var children = _ref25.children
|
|
153786
|
-
|
|
153787
|
-
var _useGameCenterProfile = useGameCenterProfile(isReadyForProfileUI),
|
|
153751
|
+
var children = _ref25.children;
|
|
153752
|
+
var _useGameCenterProfile = useGameCenterProfile(),
|
|
153788
153753
|
profileData = _useGameCenterProfile.profileData,
|
|
153789
153754
|
shouldShowProfileLoadingOverlay = _useGameCenterProfile.shouldShowProfileLoadingOverlay,
|
|
153790
153755
|
shouldShowProfileNotFoundOverlay = _useGameCenterProfile.shouldShowProfileNotFoundOverlay,
|
|
@@ -153792,13 +153757,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153792
153757
|
openProfileWebview = _useGameCenterProfile.openProfileWebview,
|
|
153793
153758
|
openGameProfileToast = _useGameCenterProfile.openGameProfileToast,
|
|
153794
153759
|
fetchProfileData = _useGameCenterProfile.fetchProfileData;
|
|
153795
|
-
var isCompletedFlow = (0,
|
|
153760
|
+
var isCompletedFlow = (0, import_react11.useRef)(false);
|
|
153796
153761
|
var _useAppUpdateDialog = useAppUpdateDialog(),
|
|
153797
153762
|
openAppUpdateDialog = _useAppUpdateDialog.open;
|
|
153798
|
-
(0,
|
|
153763
|
+
(0, import_react11.useEffect)(function () {
|
|
153799
153764
|
fetchProfileData();
|
|
153800
153765
|
}, []);
|
|
153801
|
-
(0,
|
|
153766
|
+
(0, import_react11.useEffect)(function () {
|
|
153802
153767
|
var handleGameProfileFlow = function () {
|
|
153803
153768
|
var _ref26 = _asyncToGenerator(function* () {
|
|
153804
153769
|
if (!canShowBottomSheetOrToast) {
|
|
@@ -153808,7 +153773,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153808
153773
|
return;
|
|
153809
153774
|
}
|
|
153810
153775
|
isCompletedFlow.current = true;
|
|
153811
|
-
if (!(0,
|
|
153776
|
+
if (!(0, import_native_modules6.isMinVersionSupported)(GAME_MIN_VERSION)) {
|
|
153812
153777
|
openAppUpdateDialog({
|
|
153813
153778
|
title: (0, import_es_hangul.josa)(getAppsInTossGlobals().brandDisplayName, "\uC744/\uB97C") + " \uD558\uB824\uBA74 \n\uC571\uC744 \uC5C5\uB370\uC774\uD2B8\uD574\uC8FC\uC138\uC694",
|
|
153814
153779
|
onDismiss: function onDismiss() {
|
|
@@ -153831,7 +153796,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153831
153796
|
}();
|
|
153832
153797
|
handleGameProfileFlow();
|
|
153833
153798
|
}, [canShowBottomSheetOrToast, isCompletedFlow, openAppUpdateDialog, openGameProfileToast, openProfileWebview, profileData]);
|
|
153834
|
-
if (!(0,
|
|
153799
|
+
if (!(0, import_native_modules6.isMinVersionSupported)(GAME_MIN_VERSION)) {
|
|
153835
153800
|
return (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, {
|
|
153836
153801
|
children: [(0, import_jsx_runtime4.jsx)(import_react_native11.View, {
|
|
153837
153802
|
style: {
|
|
@@ -153866,7 +153831,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153866
153831
|
alignItems: "center",
|
|
153867
153832
|
backgroundColor: "rgba(0, 0, 0, 0.2)"
|
|
153868
153833
|
}),
|
|
153869
|
-
children: (0, import_jsx_runtime4.jsx)(
|
|
153834
|
+
children: (0, import_jsx_runtime4.jsx)(import_tds_react_native4.Loader, {
|
|
153870
153835
|
size: "large",
|
|
153871
153836
|
type: "light"
|
|
153872
153837
|
})
|
|
@@ -153908,10 +153873,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153908
153873
|
zIndex: Z_INDEX.PROFILE_OVERLAY
|
|
153909
153874
|
};
|
|
153910
153875
|
var import_private5 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
153911
|
-
var
|
|
153876
|
+
var import_react12 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153912
153877
|
var import_react_native12 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
153913
153878
|
function useHardwareBackPress(handler) {
|
|
153914
|
-
(0,
|
|
153879
|
+
(0, import_react12.useEffect)(function () {
|
|
153915
153880
|
var handleBackPress = function handleBackPress() {
|
|
153916
153881
|
handler();
|
|
153917
153882
|
return true;
|
|
@@ -153923,16 +153888,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153923
153888
|
}, [handler]);
|
|
153924
153889
|
}
|
|
153925
153890
|
var import_react_native14 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153926
|
-
var import_react15 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153927
|
-
var import_tds_react_native6 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153928
|
-
var import_es_hangul2 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
153929
153891
|
var import_react14 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153892
|
+
var import_tds_react_native5 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153893
|
+
var import_es_hangul2 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
153894
|
+
var import_react13 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153930
153895
|
function useCloseConfirm() {
|
|
153931
153896
|
var _getAppsInTossGlobals = getAppsInTossGlobals(),
|
|
153932
153897
|
brandDisplayName = _getAppsInTossGlobals.brandDisplayName;
|
|
153933
|
-
var _ref27 = (0,
|
|
153898
|
+
var _ref27 = (0, import_tds_react_native5.useDialog)(),
|
|
153934
153899
|
openConfirm = _ref27.openConfirm;
|
|
153935
|
-
return (0,
|
|
153900
|
+
return (0, import_react13.useCallback)(function () {
|
|
153936
153901
|
var _ref29 = _asyncToGenerator(function* (_ref28) {
|
|
153937
153902
|
var onEntered = _ref28.onEntered;
|
|
153938
153903
|
return yield openConfirm({
|
|
@@ -153948,7 +153913,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153948
153913
|
};
|
|
153949
153914
|
}(), [brandDisplayName, openConfirm]);
|
|
153950
153915
|
}
|
|
153951
|
-
var
|
|
153916
|
+
var import_native_modules7 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153952
153917
|
var import_react_native13 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153953
153918
|
var NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
153954
153919
|
var NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
@@ -153967,7 +153932,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153967
153932
|
app_name: import_react_native13.Granite.appName
|
|
153968
153933
|
};
|
|
153969
153934
|
var logNavBarImpression = function logNavBarImpression(naviBarConfig) {
|
|
153970
|
-
|
|
153935
|
+
import_native_modules7.INTERNAL__module.tossCoreEventLog({
|
|
153971
153936
|
log_name: NAVI_BAR_IMPRESSION_LOG_NAME,
|
|
153972
153937
|
log_type: "event",
|
|
153973
153938
|
params: Object.assign({}, naviBarConfig, baseParams, {
|
|
@@ -153977,7 +153942,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153977
153942
|
});
|
|
153978
153943
|
};
|
|
153979
153944
|
var logHomeButtonClick = function logHomeButtonClick() {
|
|
153980
|
-
|
|
153945
|
+
import_native_modules7.INTERNAL__module.tossCoreEventLog({
|
|
153981
153946
|
log_name: HOME_BUTTON_CLICK_LOG_NAME,
|
|
153982
153947
|
log_type: "event",
|
|
153983
153948
|
params: Object.assign({}, baseParams, {
|
|
@@ -153987,7 +153952,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153987
153952
|
});
|
|
153988
153953
|
};
|
|
153989
153954
|
var logCloseButtonClick = function logCloseButtonClick() {
|
|
153990
|
-
|
|
153955
|
+
import_native_modules7.INTERNAL__module.tossCoreEventLog({
|
|
153991
153956
|
log_name: CLOSE_BUTTON_CLICK_LOG_NAME,
|
|
153992
153957
|
log_type: "event",
|
|
153993
153958
|
params: Object.assign({}, baseParams, {
|
|
@@ -153997,7 +153962,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153997
153962
|
});
|
|
153998
153963
|
};
|
|
153999
153964
|
var logClosePopupShow = function logClosePopupShow() {
|
|
154000
|
-
|
|
153965
|
+
import_native_modules7.INTERNAL__module.tossCoreEventLog({
|
|
154001
153966
|
log_name: CLOSE_POPUP_SHOW_LOG_NAME,
|
|
154002
153967
|
log_type: "popup",
|
|
154003
153968
|
params: Object.assign({}, baseParams, {
|
|
@@ -154006,7 +153971,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154006
153971
|
});
|
|
154007
153972
|
};
|
|
154008
153973
|
var logClosePopupCtaClick = function logClosePopupCtaClick(confirm) {
|
|
154009
|
-
|
|
153974
|
+
import_native_modules7.INTERNAL__module.tossCoreEventLog({
|
|
154010
153975
|
log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
|
|
154011
153976
|
log_type: "event",
|
|
154012
153977
|
params: Object.assign({}, baseParams, {
|
|
@@ -154031,7 +153996,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154031
153996
|
var closeConfirm = useCloseConfirm();
|
|
154032
153997
|
var _useCaptureExitLog2 = useCaptureExitLog(),
|
|
154033
153998
|
captureExitLog = _useCaptureExitLog2.captureExitLog;
|
|
154034
|
-
return (0,
|
|
153999
|
+
return (0, import_react14.useMemo)(function () {
|
|
154035
154000
|
var close = function () {
|
|
154036
154001
|
var _ref30 = _asyncToGenerator(function* () {
|
|
154037
154002
|
var hasConfirmed = yield closeConfirm({
|
|
@@ -154068,19 +154033,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154068
154033
|
};
|
|
154069
154034
|
}, [backEventContext, navigation, closeConfirm, logging, captureExitLog]);
|
|
154070
154035
|
}
|
|
154071
|
-
var
|
|
154036
|
+
var import_native_modules11 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154072
154037
|
var import_react_native20 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154073
|
-
var
|
|
154038
|
+
var import_tds_react_native8 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154074
154039
|
var import_private4 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154075
|
-
var
|
|
154076
|
-
var
|
|
154040
|
+
var import_react15 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154041
|
+
var import_native_modules9 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154077
154042
|
var import_react_native17 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154078
|
-
var import_tds_react_native8 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154079
|
-
var import_react_native18 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154080
154043
|
var import_tds_react_native7 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154044
|
+
var import_react_native18 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154045
|
+
var import_tds_react_native6 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154081
154046
|
var import_private3 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154082
154047
|
var import_react_native16 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154083
|
-
var
|
|
154048
|
+
var import_native_modules8 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154084
154049
|
var import_react_native15 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154085
154050
|
var BOTTOM_SHEET_SCHEMA_ID = 1596825;
|
|
154086
154051
|
var BOTTOM_SHEET_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more";
|
|
@@ -154097,7 +154062,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154097
154062
|
app_name: import_react_native15.Granite.appName
|
|
154098
154063
|
};
|
|
154099
154064
|
var logBottomSheetShow = function logBottomSheetShow() {
|
|
154100
|
-
|
|
154065
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
154101
154066
|
log_name: BOTTOM_SHEET_LOG_NAME,
|
|
154102
154067
|
log_type: "popup",
|
|
154103
154068
|
params: Object.assign({}, baseParams, {
|
|
@@ -154106,7 +154071,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154106
154071
|
});
|
|
154107
154072
|
};
|
|
154108
154073
|
var logBottomSheetOpen = function logBottomSheetOpen() {
|
|
154109
|
-
|
|
154074
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
154110
154075
|
log_name: BOTTOM_SHEET_OPEN_LOG_NAME,
|
|
154111
154076
|
log_type: "event",
|
|
154112
154077
|
params: Object.assign({}, baseParams, {
|
|
@@ -154116,7 +154081,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154116
154081
|
});
|
|
154117
154082
|
};
|
|
154118
154083
|
var logBottomSheetCloseClick = function logBottomSheetCloseClick() {
|
|
154119
|
-
|
|
154084
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
154120
154085
|
log_name: BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME,
|
|
154121
154086
|
log_type: "event",
|
|
154122
154087
|
params: Object.assign({}, baseParams, {
|
|
@@ -154127,7 +154092,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154127
154092
|
};
|
|
154128
154093
|
var logBottomSheetMenuClick = function logBottomSheetMenuClick(_ref31) {
|
|
154129
154094
|
var title = _ref31.title;
|
|
154130
|
-
|
|
154095
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
154131
154096
|
log_name: BOTTOM_SHEET_MENU_CLICK_LOG_NAME,
|
|
154132
154097
|
log_type: "event",
|
|
154133
154098
|
params: Object.assign({}, baseParams, {
|
|
@@ -154155,7 +154120,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154155
154120
|
var logging = useMoreButtonBottomSheetLogging();
|
|
154156
154121
|
var brandPrimaryColorRGB = hexToRGB(globals.brandPrimaryColor);
|
|
154157
154122
|
var iconBackgroundColor = brandPrimaryColorRGB ? "rgba(" + brandPrimaryColorRGB.join(",") + ",0.1)" : adaptive.grey100;
|
|
154158
|
-
return (0, import_jsx_runtime5.jsx)(
|
|
154123
|
+
return (0, import_jsx_runtime5.jsx)(import_tds_react_native6.ListRow, {
|
|
154159
154124
|
left: (0, import_jsx_runtime5.jsx)(import_react_native16.View, {
|
|
154160
154125
|
style: {
|
|
154161
154126
|
width: 30,
|
|
@@ -154167,14 +154132,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154167
154132
|
marginRight: 16,
|
|
154168
154133
|
backgroundColor: iconBackgroundColor
|
|
154169
154134
|
},
|
|
154170
|
-
children: iconName ? (0, import_jsx_runtime5.jsx)(
|
|
154135
|
+
children: iconName ? (0, import_jsx_runtime5.jsx)(import_tds_react_native6.Asset.Icon, {
|
|
154171
154136
|
frameShape: {
|
|
154172
154137
|
width: 20,
|
|
154173
154138
|
height: 20
|
|
154174
154139
|
},
|
|
154175
154140
|
color: globals.brandPrimaryColor,
|
|
154176
154141
|
name: iconName
|
|
154177
|
-
}) : (0, import_jsx_runtime5.jsx)(
|
|
154142
|
+
}) : (0, import_jsx_runtime5.jsx)(import_tds_react_native6.Asset.Image, {
|
|
154178
154143
|
frameShape: {
|
|
154179
154144
|
width: 20,
|
|
154180
154145
|
height: 20
|
|
@@ -154184,7 +154149,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154184
154149
|
}
|
|
154185
154150
|
})
|
|
154186
154151
|
}),
|
|
154187
|
-
contents: (0, import_jsx_runtime5.jsx)(
|
|
154152
|
+
contents: (0, import_jsx_runtime5.jsx)(import_tds_react_native6.ListRow.Texts, {
|
|
154188
154153
|
type: "1RowTypeA",
|
|
154189
154154
|
top: title,
|
|
154190
154155
|
topProps: {
|
|
@@ -154240,8 +154205,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154240
154205
|
};
|
|
154241
154206
|
function AppShareListMenu() {
|
|
154242
154207
|
var initialScheme = (0, import_react_native17.getSchemeUri)();
|
|
154243
|
-
var isSandbox = (0,
|
|
154244
|
-
var _ref35 = (0,
|
|
154208
|
+
var isSandbox = (0, import_native_modules9.getOperationalEnvironment)() === "sandbox";
|
|
154209
|
+
var _ref35 = (0, import_tds_react_native7.useDialog)(),
|
|
154245
154210
|
openConfirm = _ref35.openConfirm;
|
|
154246
154211
|
var schemeForShare = addParamsToUrl(initialScheme, {
|
|
154247
154212
|
referrer: SHARE_SCHEME_REFERRER
|
|
@@ -154267,12 +154232,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154267
154232
|
}
|
|
154268
154233
|
});
|
|
154269
154234
|
}
|
|
154270
|
-
var
|
|
154235
|
+
var import_native_modules10 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154271
154236
|
var import_react_native19 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154272
154237
|
var import_jsx_runtime7 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154273
154238
|
function PermissionsMenu() {
|
|
154274
154239
|
var globals = getAppsInTossGlobals();
|
|
154275
|
-
if ((0,
|
|
154240
|
+
if ((0, import_native_modules10.getOperationalEnvironment)() === "sandbox") {
|
|
154276
154241
|
return null;
|
|
154277
154242
|
}
|
|
154278
154243
|
return (0, import_jsx_runtime7.jsx)(Menu, {
|
|
@@ -154308,7 +154273,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154308
154273
|
function useMoreButtonBottomSheet() {
|
|
154309
154274
|
var globals = getAppsInTossGlobals();
|
|
154310
154275
|
var adaptive = (0, import_private4.useAdaptive)();
|
|
154311
|
-
var _ref36 = (0,
|
|
154276
|
+
var _ref36 = (0, import_react15.useState)([]),
|
|
154312
154277
|
_ref37 = _slicedToArray(_ref36, 2),
|
|
154313
154278
|
itemList = _ref37[0],
|
|
154314
154279
|
setItemList = _ref37[1];
|
|
@@ -154316,17 +154281,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154316
154281
|
var logging = useMoreButtonBottomSheetLogging();
|
|
154317
154282
|
var overlay = (0, import_private4.useOverlay)();
|
|
154318
154283
|
var title = ensureValue(globals.brandDisplayName, "displayName");
|
|
154319
|
-
var isBottomSheetSupported = (0,
|
|
154320
|
-
var isShareListMenuSupported = (0,
|
|
154321
|
-
var _ref38 = (0,
|
|
154284
|
+
var isBottomSheetSupported = (0, import_native_modules11.isMinVersionSupported)(MIN_VERSION.BOTTOM_SHEET);
|
|
154285
|
+
var isShareListMenuSupported = (0, import_native_modules11.isMinVersionSupported)(MIN_VERSION.SHARE_LIST_MENU);
|
|
154286
|
+
var _ref38 = (0, import_react15.useState)(false),
|
|
154322
154287
|
_ref39 = _slicedToArray(_ref38, 2),
|
|
154323
154288
|
isPermissionsMenuSupported = _ref39[0],
|
|
154324
154289
|
setIsPermissionsMenuSupported = _ref39[1];
|
|
154325
|
-
(0,
|
|
154290
|
+
(0, import_react15.useEffect)(function () {
|
|
154326
154291
|
if (!isBottomSheetSupported) {
|
|
154327
154292
|
return;
|
|
154328
154293
|
}
|
|
154329
|
-
|
|
154294
|
+
import_native_modules11.INTERNAL__appBridgeHandler.invokeAppBridgeMethod(APP_BRIDGE_METHOD_NAME, {}, {
|
|
154330
154295
|
onSuccess: function onSuccess(_ref40) {
|
|
154331
154296
|
var items = _ref40.items;
|
|
154332
154297
|
return setItemList(items);
|
|
@@ -154335,8 +154300,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154335
154300
|
return console.error("\uBA54\uB274 \uBAA9\uB85D\uC744 \uAC00\uC838\uC624\uB294 \uB370 \uC2E4\uD328\uD588\uC5B4\uC694:", error);
|
|
154336
154301
|
}
|
|
154337
154302
|
});
|
|
154338
|
-
if ((0,
|
|
154339
|
-
|
|
154303
|
+
if ((0, import_native_modules11.isMinVersionSupported)(MIN_VERSION.PERMISSIONS_MENU)) {
|
|
154304
|
+
import_native_modules11.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("getAllPermission", {}, {
|
|
154340
154305
|
onSuccess: function onSuccess(permissions) {
|
|
154341
154306
|
return setIsPermissionsMenuSupported(permissions.length > 0);
|
|
154342
154307
|
},
|
|
@@ -154365,9 +154330,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154365
154330
|
close();
|
|
154366
154331
|
};
|
|
154367
154332
|
return (0, import_jsx_runtime8.jsx)(BottomSheetImpressionArea, {
|
|
154368
|
-
children: (0, import_jsx_runtime8.jsx)(
|
|
154369
|
-
header: (0, import_jsx_runtime8.jsx)(
|
|
154370
|
-
title: (0, import_jsx_runtime8.jsx)(
|
|
154333
|
+
children: (0, import_jsx_runtime8.jsx)(import_tds_react_native8.BottomSheet.Root, {
|
|
154334
|
+
header: (0, import_jsx_runtime8.jsx)(import_tds_react_native8.ListHeader, {
|
|
154335
|
+
title: (0, import_jsx_runtime8.jsx)(import_tds_react_native8.ListHeader.TitleParagraph, {
|
|
154371
154336
|
color: adaptive.grey800,
|
|
154372
154337
|
fontWeight: "bold",
|
|
154373
154338
|
typography: "t5",
|
|
@@ -154375,7 +154340,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154375
154340
|
})
|
|
154376
154341
|
}),
|
|
154377
154342
|
open: isOpen,
|
|
154378
|
-
cta: (0, import_jsx_runtime8.jsx)(
|
|
154343
|
+
cta: (0, import_jsx_runtime8.jsx)(import_tds_react_native8.BottomSheet.CTA, {
|
|
154379
154344
|
size: "large",
|
|
154380
154345
|
type: "dark",
|
|
154381
154346
|
style: "weak",
|
|
@@ -154386,7 +154351,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154386
154351
|
}),
|
|
154387
154352
|
onClose: handleClose,
|
|
154388
154353
|
onExited: exit,
|
|
154389
|
-
children: (0, import_jsx_runtime8.jsxs)(
|
|
154354
|
+
children: (0, import_jsx_runtime8.jsxs)(import_tds_react_native8.List, {
|
|
154390
154355
|
rowSeparator: "none",
|
|
154391
154356
|
children: [itemList.map(function (item) {
|
|
154392
154357
|
return (0, import_jsx_runtime8.jsx)(Menu, {
|
|
@@ -154413,21 +154378,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154413
154378
|
function BottomSheetImpressionArea(_ref43) {
|
|
154414
154379
|
var children = _ref43.children;
|
|
154415
154380
|
var logging = useMoreButtonBottomSheetLogging();
|
|
154416
|
-
(0,
|
|
154381
|
+
(0, import_react15.useEffect)(function () {
|
|
154417
154382
|
logging.show();
|
|
154418
154383
|
}, [logging]);
|
|
154419
154384
|
return (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, {
|
|
154420
154385
|
children: children
|
|
154421
154386
|
});
|
|
154422
154387
|
}
|
|
154423
|
-
|
|
154388
|
+
function toIcon(source) {
|
|
154389
|
+
return source.startsWith("http") ? {
|
|
154390
|
+
source: {
|
|
154391
|
+
uri: source
|
|
154392
|
+
}
|
|
154393
|
+
} : {
|
|
154394
|
+
name: source
|
|
154395
|
+
};
|
|
154396
|
+
}
|
|
154397
|
+
var import_react16 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154424
154398
|
var import_jsx_runtime9 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154425
154399
|
function NavigationBarImpressionArea(_ref44) {
|
|
154426
154400
|
var children = _ref44.children,
|
|
154427
154401
|
withHomeButton = _ref44.withHomeButton;
|
|
154428
|
-
var hasLogged = (0,
|
|
154402
|
+
var hasLogged = (0, import_react16.useRef)(false);
|
|
154429
154403
|
var logging = useNavigationBarLogging();
|
|
154430
|
-
(0,
|
|
154404
|
+
(0, import_react16.useEffect)(function () {
|
|
154431
154405
|
if (hasLogged.current === false) {
|
|
154432
154406
|
logging.navBarImpression({
|
|
154433
154407
|
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
@@ -154475,7 +154449,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154475
154449
|
});
|
|
154476
154450
|
}
|
|
154477
154451
|
var import_react_native_safe_area_context = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
154478
|
-
var
|
|
154452
|
+
var import_tds_react_native9 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154479
154453
|
var import_private6 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154480
154454
|
var import_react_native21 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154481
154455
|
var import_jsx_runtime11 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
@@ -154490,7 +154464,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154490
154464
|
safeAreaRight = _ref45.right;
|
|
154491
154465
|
useHardwareBackPress(navigationEvent.handleBack);
|
|
154492
154466
|
return (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, {
|
|
154493
|
-
children: [(0, import_jsx_runtime11.jsx)(
|
|
154467
|
+
children: [(0, import_jsx_runtime11.jsx)(import_tds_react_native9.PageNavbar, {
|
|
154494
154468
|
preference: {
|
|
154495
154469
|
type: "none"
|
|
154496
154470
|
}
|
|
@@ -154542,48 +154516,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154542
154516
|
}
|
|
154543
154517
|
function GameAppContainer(_ref47) {
|
|
154544
154518
|
var children = _ref47.children;
|
|
154545
|
-
|
|
154546
|
-
_ref49 = _slicedToArray(_ref48, 2),
|
|
154547
|
-
isEntryMessageExited = _ref49[0],
|
|
154548
|
-
setIsEntryMessageExited = _ref49[1];
|
|
154549
|
-
(0, import_react18.useEffect)(function () {
|
|
154519
|
+
(0, import_react17.useEffect)(function () {
|
|
154550
154520
|
if (import_react_native22.Platform.OS === "ios") {
|
|
154551
|
-
(0,
|
|
154521
|
+
(0, import_native_modules12.setIosSwipeGestureEnabled)({
|
|
154552
154522
|
isEnabled: false
|
|
154553
154523
|
});
|
|
154554
154524
|
return function () {
|
|
154555
|
-
(0,
|
|
154525
|
+
(0, import_native_modules12.setIosSwipeGestureEnabled)({
|
|
154556
154526
|
isEnabled: true
|
|
154557
154527
|
});
|
|
154558
154528
|
};
|
|
154559
154529
|
}
|
|
154560
154530
|
return;
|
|
154561
154531
|
}, []);
|
|
154562
|
-
(0, import_react18.useEffect)(function () {
|
|
154563
|
-
import_native_modules13.appsInTossEvent.addEventListener("entryMessageExited", {
|
|
154564
|
-
onEvent: function onEvent() {
|
|
154565
|
-
setIsEntryMessageExited(true);
|
|
154566
|
-
}
|
|
154567
|
-
});
|
|
154568
|
-
}, []);
|
|
154569
154532
|
return (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, {
|
|
154570
154533
|
children: [(0, import_jsx_runtime12.jsx)(RNNavigationBar.Game, {}), (0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime12.jsx)(GameInitializer, {
|
|
154571
|
-
isReadyForProfileUI: isEntryMessageExited,
|
|
154572
154534
|
children: children
|
|
154573
154535
|
}) : children]
|
|
154574
154536
|
});
|
|
154575
154537
|
}
|
|
154576
|
-
function GeneralAppContainer(
|
|
154577
|
-
var children =
|
|
154538
|
+
function GeneralAppContainer(_ref48) {
|
|
154539
|
+
var children = _ref48.children;
|
|
154578
154540
|
return (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, {
|
|
154579
154541
|
children: [(0, import_jsx_runtime12.jsx)(RNNavigationBar.Default, {}), children]
|
|
154580
154542
|
});
|
|
154581
154543
|
}
|
|
154582
154544
|
var import_jsx_runtime13 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154583
|
-
function AppsInTossContainer(Container,
|
|
154584
|
-
var children =
|
|
154585
|
-
initialProps = _objectWithoutProperties(
|
|
154586
|
-
if (!(0,
|
|
154545
|
+
function AppsInTossContainer(Container, _ref49) {
|
|
154546
|
+
var children = _ref49.children,
|
|
154547
|
+
initialProps = _objectWithoutProperties(_ref49, _excluded);
|
|
154548
|
+
if (!(0, import_native_modules13.isMinVersionSupported)({
|
|
154587
154549
|
android: "5.220.0",
|
|
154588
154550
|
ios: "5.221.0"
|
|
154589
154551
|
})) {
|
|
@@ -154593,44 +154555,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154593
154555
|
}
|
|
154594
154556
|
return (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, {
|
|
154595
154557
|
children: [(0, import_jsx_runtime13.jsx)(AppEvent.StayTime, {}), (0, import_jsx_runtime13.jsx)(AppEvent.Entry, {}), (0, import_jsx_runtime13.jsx)(AppEvent.System, Object.assign({}, initialProps)), (0, import_jsx_runtime13.jsx)(Container, Object.assign({}, initialProps, {
|
|
154596
|
-
children: (0, import_jsx_runtime13.jsx)(
|
|
154558
|
+
children: (0, import_jsx_runtime13.jsx)(import_tds_react_native10.TDSProvider, {
|
|
154597
154559
|
colorPreference: "light",
|
|
154598
154560
|
token: {
|
|
154599
154561
|
color: {
|
|
154600
154562
|
primary: getAppsInTossGlobals().brandPrimaryColor
|
|
154601
154563
|
}
|
|
154602
154564
|
},
|
|
154603
|
-
children:
|
|
154604
|
-
children: children
|
|
154605
|
-
}))
|
|
154565
|
+
children: children
|
|
154606
154566
|
})
|
|
154607
154567
|
}))]
|
|
154608
154568
|
});
|
|
154609
154569
|
}
|
|
154610
|
-
function
|
|
154611
|
-
var
|
|
154612
|
-
|
|
154613
|
-
return (0, import_jsx_runtime13.jsx)(import_jsx_runtime13.Fragment, {
|
|
154614
|
-
children: children
|
|
154615
|
-
});
|
|
154616
|
-
}
|
|
154617
|
-
function registerApp(container, _ref53) {
|
|
154618
|
-
var context = _ref53.context,
|
|
154619
|
-
analytics = _ref53.analytics;
|
|
154570
|
+
function registerApp(container, _ref50) {
|
|
154571
|
+
var context = _ref50.context,
|
|
154572
|
+
analytics = _ref50.analytics;
|
|
154620
154573
|
var appName = getAppName();
|
|
154621
154574
|
var isRegistered = import_react_native24.AppRegistry.getAppKeys().includes(appName);
|
|
154622
154575
|
if (!isRegistered) {
|
|
154623
154576
|
var _analytics$debug;
|
|
154624
154577
|
import_analytics.Analytics.init({
|
|
154625
154578
|
logger: function logger(params) {
|
|
154626
|
-
return void (0,
|
|
154579
|
+
return void (0, import_native_modules13.eventLog)(params);
|
|
154627
154580
|
},
|
|
154628
154581
|
debug: (_analytics$debug = analytics == null ? void 0 : analytics.debug) != null ? _analytics$debug : __DEV__
|
|
154629
154582
|
});
|
|
154630
154583
|
var App = import_react_native23.Granite.registerApp(AppsInTossContainer.bind(null, container), {
|
|
154631
154584
|
appName: appName,
|
|
154632
154585
|
context: context,
|
|
154633
|
-
setIosSwipeGestureEnabled:
|
|
154586
|
+
setIosSwipeGestureEnabled: import_native_modules13.setIosSwipeGestureEnabled,
|
|
154634
154587
|
router: {
|
|
154635
154588
|
screenContainer: AppsInTossScreenContainer,
|
|
154636
154589
|
defaultScreenOption: {
|
|
@@ -154642,8 +154595,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154642
154595
|
}
|
|
154643
154596
|
return global.Page;
|
|
154644
154597
|
}
|
|
154645
|
-
function AppsInTossScreenContainer(
|
|
154646
|
-
var children =
|
|
154598
|
+
function AppsInTossScreenContainer(_ref51) {
|
|
154599
|
+
var children = _ref51.children;
|
|
154647
154600
|
var isRNApp = getAppsInTossGlobals().webViewType == null;
|
|
154648
154601
|
return (0, import_jsx_runtime13.jsx)(NavigationBarContextProvider, {
|
|
154649
154602
|
children: (0, import_jsx_runtime13.jsx)(import_analytics.Analytics.Screen, {
|
|
@@ -154664,32 +154617,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154664
154617
|
var _AppsInToss = {
|
|
154665
154618
|
registerApp: registerApp
|
|
154666
154619
|
};
|
|
154667
|
-
var
|
|
154620
|
+
var import_native_modules18 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154668
154621
|
var appsInTossAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[17], "@apps-in-toss/native-modules/async-bridges"), 1);
|
|
154669
154622
|
var appsInTossConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/native-modules/constant-bridges"), 1);
|
|
154670
154623
|
var appsInTossEventBridges = __toESM(_$$_REQUIRE(_dependencyMap[19], "@apps-in-toss/native-modules/event-bridges"), 1);
|
|
154671
154624
|
var import_react_native_safe_area_context4 = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
154672
|
-
var
|
|
154673
|
-
var
|
|
154625
|
+
var import_react_native34 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154626
|
+
var import_tds_react_native14 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154674
154627
|
var import_private9 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154675
|
-
var
|
|
154676
|
-
var
|
|
154677
|
-
var
|
|
154628
|
+
var import_react28 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154629
|
+
var import_react_native35 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154630
|
+
var import_native_modules14 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154678
154631
|
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[20], "@granite-js/native/react-native-webview");
|
|
154679
|
-
var
|
|
154632
|
+
var import_react19 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154680
154633
|
var import_react_native27 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154681
154634
|
var import_react_native_safe_area_context2 = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
154682
154635
|
var import_react_native25 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154683
|
-
var
|
|
154636
|
+
var import_tds_react_native11 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154684
154637
|
var import_private7 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154685
154638
|
var import_es_hangul3 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
154686
|
-
var
|
|
154639
|
+
var import_react18 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154687
154640
|
var import_react_native26 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154688
154641
|
var import_jsx_runtime14 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154689
154642
|
function GameWebviewNavigationBar() {
|
|
154690
154643
|
var safeAreaTop = (0, import_private7.useSafeAreaTop)();
|
|
154691
|
-
var
|
|
154692
|
-
openConfirm =
|
|
154644
|
+
var _ref52 = (0, import_tds_react_native11.useDialog)(),
|
|
154645
|
+
openConfirm = _ref52.openConfirm;
|
|
154693
154646
|
var _useCaptureExitLog3 = useCaptureExitLog(),
|
|
154694
154647
|
captureExitLog = _useCaptureExitLog3.captureExitLog;
|
|
154695
154648
|
var global2 = getAppsInTossGlobals();
|
|
@@ -154698,9 +154651,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154698
154651
|
openMoreButtonBottomSheet = _useMoreButtonBottomS3.open;
|
|
154699
154652
|
var _useNavigationBarCont3 = useNavigationBarContext(),
|
|
154700
154653
|
navigationRightButton = _useNavigationBarCont3.navigationRightButton;
|
|
154701
|
-
var
|
|
154702
|
-
safeAreaRight =
|
|
154703
|
-
var handleGameWebviewClose = (0,
|
|
154654
|
+
var _ref53 = (0, import_react_native_safe_area_context2.useSafeAreaInsets)(),
|
|
154655
|
+
safeAreaRight = _ref53.right;
|
|
154656
|
+
var handleGameWebviewClose = (0, import_react18.useCallback)(_asyncToGenerator(function* () {
|
|
154704
154657
|
logging.closeButtonClick();
|
|
154705
154658
|
var isConfirmed = yield openConfirm({
|
|
154706
154659
|
title: (0, import_es_hangul3.josa)(global2.brandDisplayName, "\uC744/\uB97C") + " \uC885\uB8CC\uD560\uAE4C\uC694?",
|
|
@@ -154716,7 +154669,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154716
154669
|
}
|
|
154717
154670
|
}), [captureExitLog, global2.brandDisplayName, logging, openConfirm]);
|
|
154718
154671
|
return (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, {
|
|
154719
|
-
children: [(0, import_jsx_runtime14.jsx)(
|
|
154672
|
+
children: [(0, import_jsx_runtime14.jsx)(import_tds_react_native11.PageNavbar, {
|
|
154720
154673
|
preference: {
|
|
154721
154674
|
type: "none"
|
|
154722
154675
|
}
|
|
@@ -154745,34 +154698,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154745
154698
|
});
|
|
154746
154699
|
}
|
|
154747
154700
|
var import_jsx_runtime15 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154748
|
-
var GameWebView = (0,
|
|
154749
|
-
|
|
154750
|
-
_ref59 = _slicedToArray(_ref58, 2),
|
|
154751
|
-
isEntryMessageExited = _ref59[0],
|
|
154752
|
-
setIsEntryMessageExited = _ref59[1];
|
|
154753
|
-
(0, import_react20.useEffect)(function () {
|
|
154701
|
+
var GameWebView = (0, import_react19.forwardRef)(function GameWebView2(props, ref) {
|
|
154702
|
+
(0, import_react19.useEffect)(function () {
|
|
154754
154703
|
if (import_react_native27.Platform.OS === "ios") {
|
|
154755
|
-
(0,
|
|
154704
|
+
(0, import_native_modules14.setIosSwipeGestureEnabled)({
|
|
154756
154705
|
isEnabled: false
|
|
154757
154706
|
});
|
|
154758
154707
|
return function () {
|
|
154759
|
-
(0,
|
|
154708
|
+
(0, import_native_modules14.setIosSwipeGestureEnabled)({
|
|
154760
154709
|
isEnabled: true
|
|
154761
154710
|
});
|
|
154762
154711
|
};
|
|
154763
154712
|
}
|
|
154764
154713
|
return;
|
|
154765
154714
|
}, []);
|
|
154766
|
-
(0, import_react20.useEffect)(function () {
|
|
154767
|
-
import_native_modules15.appsInTossEvent.addEventListener("entryMessageExited", {
|
|
154768
|
-
onEvent: function onEvent() {
|
|
154769
|
-
setIsEntryMessageExited(true);
|
|
154770
|
-
}
|
|
154771
|
-
});
|
|
154772
|
-
}, []);
|
|
154773
154715
|
return (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, {
|
|
154774
|
-
children: [(0, import_jsx_runtime15.jsx)(GameWebviewNavigationBar, {}), (0,
|
|
154775
|
-
isReadyForProfileUI: isEntryMessageExited,
|
|
154716
|
+
children: [(0, import_jsx_runtime15.jsx)(GameWebviewNavigationBar, {}), (0, import_native_modules14.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime15.jsx)(GameInitializer, {
|
|
154776
154717
|
children: (0, import_jsx_runtime15.jsx)(import_react_native_webview.WebView, Object.assign({
|
|
154777
154718
|
ref: ref
|
|
154778
154719
|
}, props))
|
|
@@ -154782,23 +154723,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154782
154723
|
});
|
|
154783
154724
|
});
|
|
154784
154725
|
var import_react_native_webview2 = _$$_REQUIRE(_dependencyMap[20], "@granite-js/native/react-native-webview");
|
|
154785
|
-
var
|
|
154726
|
+
var import_react21 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154786
154727
|
var import_react_native28 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154787
|
-
var
|
|
154728
|
+
var import_tds_react_native12 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154788
154729
|
var import_private8 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154789
154730
|
var import_es_hangul4 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
154790
|
-
var
|
|
154731
|
+
var import_react20 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154791
154732
|
var import_jsx_runtime16 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154792
|
-
function PartnerWebviewNavigationBar(
|
|
154733
|
+
function PartnerWebviewNavigationBar(_ref55) {
|
|
154793
154734
|
var _parsedNavigationBar$3, _parsedNavigationBar$4;
|
|
154794
|
-
var onBackButtonClick =
|
|
154795
|
-
onHomeButtonClick =
|
|
154735
|
+
var onBackButtonClick = _ref55.onBackButtonClick,
|
|
154736
|
+
onHomeButtonClick = _ref55.onHomeButtonClick;
|
|
154796
154737
|
var globals = getAppsInTossGlobals();
|
|
154797
154738
|
var _useCaptureExitLog4 = useCaptureExitLog(),
|
|
154798
154739
|
captureExitLog = _useCaptureExitLog4.captureExitLog;
|
|
154799
154740
|
var logging = useNavigationBarLogging();
|
|
154800
|
-
var
|
|
154801
|
-
openConfirm =
|
|
154741
|
+
var _ref56 = (0, import_tds_react_native12.useDialog)(),
|
|
154742
|
+
openConfirm = _ref56.openConfirm;
|
|
154802
154743
|
var _useMoreButtonBottomS4 = useMoreButtonBottomSheet(),
|
|
154803
154744
|
openMoreButtonBottomSheet = _useMoreButtonBottomS4.open;
|
|
154804
154745
|
var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
@@ -154806,7 +154747,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154806
154747
|
var withBackButton = (_parsedNavigationBar$4 = parsedNavigationBar == null ? void 0 : parsedNavigationBar.withBackButton) != null ? _parsedNavigationBar$4 : true;
|
|
154807
154748
|
var _useNavigationBarCont4 = useNavigationBarContext(),
|
|
154808
154749
|
navigationRightButton = _useNavigationBarCont4.navigationRightButton;
|
|
154809
|
-
var handleClose = (0,
|
|
154750
|
+
var handleClose = (0, import_react20.useCallback)(_asyncToGenerator(function* () {
|
|
154810
154751
|
logging.closeButtonClick();
|
|
154811
154752
|
var isConfirmed = yield openConfirm({
|
|
154812
154753
|
title: (0, import_es_hangul4.josa)(globals.brandDisplayName, "\uC744/\uB97C") + " \uC885\uB8CC\uD560\uAE4C\uC694?",
|
|
@@ -154844,10 +154785,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154844
154785
|
});
|
|
154845
154786
|
}
|
|
154846
154787
|
var import_jsx_runtime17 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154847
|
-
var PartnerWebView = (0,
|
|
154848
|
-
var onBackButtonClick =
|
|
154849
|
-
onHomeButtonClick =
|
|
154850
|
-
webViewProps = _objectWithoutProperties(
|
|
154788
|
+
var PartnerWebView = (0, import_react21.forwardRef)(function PartnerWebViewScreen(_ref58, ref) {
|
|
154789
|
+
var onBackButtonClick = _ref58.onBackButtonClick,
|
|
154790
|
+
onHomeButtonClick = _ref58.onHomeButtonClick,
|
|
154791
|
+
webViewProps = _objectWithoutProperties(_ref58, _excluded2);
|
|
154851
154792
|
return (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, {
|
|
154852
154793
|
children: [(0, import_jsx_runtime17.jsx)(PartnerWebviewNavigationBar, {
|
|
154853
154794
|
onBackButtonClick: onBackButtonClick,
|
|
@@ -154869,9 +154810,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154869
154810
|
var components = url.hash.replace("#Intent;", "").split(";").map(function (component) {
|
|
154870
154811
|
return component.split("=");
|
|
154871
154812
|
});
|
|
154872
|
-
var scheme = (_components$find = components.find(function (
|
|
154873
|
-
var
|
|
154874
|
-
key =
|
|
154813
|
+
var scheme = (_components$find = components.find(function (_ref59) {
|
|
154814
|
+
var _ref60 = _slicedToArray(_ref59, 1),
|
|
154815
|
+
key = _ref60[0];
|
|
154875
154816
|
return key === "scheme";
|
|
154876
154817
|
})) == null ? void 0 : _components$find[1];
|
|
154877
154818
|
if (!scheme) {
|
|
@@ -154879,360 +154820,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154879
154820
|
}
|
|
154880
154821
|
return scheme + "://" + url.hostname + url.pathname + url.search;
|
|
154881
154822
|
}
|
|
154882
|
-
var
|
|
154883
|
-
function noop() {}
|
|
154884
|
-
function generateSessionId() {
|
|
154885
|
-
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
|
|
154886
|
-
var r = Math.random() * 16 | 0;
|
|
154887
|
-
var v = c === "x" ? r : r & 3 | 8;
|
|
154888
|
-
return v.toString(16);
|
|
154889
|
-
});
|
|
154890
|
-
}
|
|
154891
|
-
var sessionId = generateSessionId();
|
|
154892
|
-
var ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.239.0";
|
|
154893
|
-
var IOS_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.239.0";
|
|
154894
|
-
var UNSUPPORTED_ERROR_MESSAGE = "This feature is not supported in the current environment";
|
|
154895
|
-
var ENVIRONMENT = (0, import_native_modules16.getOperationalEnvironment)();
|
|
154896
|
-
function fetchTossAd(params) {
|
|
154897
|
-
if (!fetchTossAd.isSupported()) {
|
|
154898
|
-
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
|
|
154899
|
-
return noop;
|
|
154900
|
-
}
|
|
154901
|
-
var onEvent = params.onEvent,
|
|
154902
|
-
_onError3 = params.onError,
|
|
154903
|
-
options = params.options;
|
|
154904
|
-
var adGroupId = options.adGroupId;
|
|
154905
|
-
var unregisterCallbacks = import_native_modules16.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("fetchTossAd", {
|
|
154906
|
-
spaceUnitId: adGroupId,
|
|
154907
|
-
sessionId: sessionId
|
|
154908
|
-
}, {
|
|
154909
|
-
onSuccess: function onSuccess(response) {
|
|
154910
|
-
onEvent(response);
|
|
154911
|
-
},
|
|
154912
|
-
onError: function onError(error) {
|
|
154913
|
-
_onError3(error);
|
|
154914
|
-
}
|
|
154915
|
-
});
|
|
154916
|
-
return unregisterCallbacks;
|
|
154917
|
-
}
|
|
154918
|
-
fetchTossAd.isSupported = function () {
|
|
154919
|
-
if (ENVIRONMENT !== "toss") {
|
|
154920
|
-
return false;
|
|
154921
|
-
}
|
|
154922
|
-
return (0, import_native_modules16.isMinVersionSupported)({
|
|
154923
|
-
android: ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION,
|
|
154924
|
-
ios: IOS_FETCH_TOSS_AD_SUPPORTED_VERSION
|
|
154925
|
-
});
|
|
154926
|
-
};
|
|
154927
|
-
var import_native_modules18 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154928
|
-
function generateRequestId() {
|
|
154929
|
-
var timestamp = Date.now().toString(36).toUpperCase();
|
|
154930
|
-
var random = Math.random().toString(36).substring(2, 7).toUpperCase();
|
|
154931
|
-
return "ait-" + timestamp + random;
|
|
154932
|
-
}
|
|
154933
|
-
var import_react_native29 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154934
|
-
function getReferrer() {
|
|
154935
|
-
try {
|
|
154936
|
-
return new URL((0, import_react_native29.getSchemeUri)()).searchParams.get("referrer");
|
|
154937
|
-
} catch (_unused4) {
|
|
154938
|
-
return null;
|
|
154939
|
-
}
|
|
154940
|
-
}
|
|
154941
|
-
var import_native_modules17 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154942
|
-
var import_react_native30 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154943
|
-
function getIsDev() {
|
|
154944
|
-
try {
|
|
154945
|
-
return new URL((0, import_react_native30.getSchemeUri)()).searchParams.get("isDev") === "true";
|
|
154946
|
-
} catch (_unused5) {
|
|
154947
|
-
return false;
|
|
154948
|
-
}
|
|
154949
|
-
}
|
|
154950
|
-
var OPERATIONAL_ENVIRONMENT = (0, import_native_modules17.getOperationalEnvironment)();
|
|
154951
|
-
var OS = (0, import_native_modules17.getPlatformOS)();
|
|
154952
|
-
var APP_VER = (0, import_native_modules17.getTossAppVersion)();
|
|
154953
|
-
var ALPHA_EVENT_TRACKER_HTTP_ENDPOINT = "https://alpha-trillion.toss.im/trk/sdk-mediation/event";
|
|
154954
|
-
var LIVE_EVENT_TRACKER_HTTP_ENDPOINT = "https://trillion.toss.im/trk/sdk-mediation/event";
|
|
154955
|
-
function getPostEventTrackingUrl() {
|
|
154956
|
-
var isDev = getIsDev();
|
|
154957
|
-
if (OPERATIONAL_ENVIRONMENT === "sandbox" || isDev) {
|
|
154958
|
-
return ALPHA_EVENT_TRACKER_HTTP_ENDPOINT;
|
|
154959
|
-
}
|
|
154960
|
-
return LIVE_EVENT_TRACKER_HTTP_ENDPOINT;
|
|
154961
|
-
}
|
|
154962
|
-
function postEventTracking(params) {
|
|
154963
|
-
var endpoint = getPostEventTrackingUrl();
|
|
154964
|
-
var bodyJSON = JSON.stringify(Object.assign({}, params, {
|
|
154965
|
-
os: OS,
|
|
154966
|
-
appVer: APP_VER,
|
|
154967
|
-
deviceIdType: "NONE",
|
|
154968
|
-
platform: "RN"
|
|
154969
|
-
}));
|
|
154970
|
-
return fetch(endpoint, {
|
|
154971
|
-
method: "POST",
|
|
154972
|
-
headers: {
|
|
154973
|
-
"Content-Type": "application/json"
|
|
154974
|
-
},
|
|
154975
|
-
body: bodyJSON
|
|
154976
|
-
}).catch(noop);
|
|
154977
|
-
}
|
|
154978
|
-
var INTEGRATED_AD_SDK_VERSION = "0.0.0";
|
|
154979
|
-
var ANDROID_INTEGRATED_AD_SUPPORTED_VERSION = "5.239.0";
|
|
154980
|
-
var IOS_INTEGRATED_AD_SUPPORTED_VERSION = "5.239.0";
|
|
154981
|
-
var UNSUPPORTED_ERROR_MESSAGE2 = "This feature is not supported in the current environment";
|
|
154982
|
-
var INTG_AD_ADM_FALLBACK_RID_MAP = {};
|
|
154983
|
-
function integratedAdIsSupported() {
|
|
154984
|
-
return (0, import_native_modules18.isMinVersionSupported)({
|
|
154985
|
-
android: ANDROID_INTEGRATED_AD_SUPPORTED_VERSION,
|
|
154986
|
-
ios: IOS_INTEGRATED_AD_SUPPORTED_VERSION
|
|
154987
|
-
});
|
|
154988
|
-
}
|
|
154989
|
-
function _loadFullScreenAd(params) {
|
|
154990
|
-
if (!import_native_modules18.GoogleAdMob.loadAppsInTossAdMob.isSupported()) {
|
|
154991
|
-
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
|
|
154992
|
-
return noop;
|
|
154993
|
-
}
|
|
154994
|
-
if (!integratedAdIsSupported()) {
|
|
154995
|
-
return import_native_modules18.GoogleAdMob.loadAppsInTossAdMob(Object.assign({}, params, {
|
|
154996
|
-
onEvent: function onEvent(event) {
|
|
154997
|
-
if (event.type === "loaded") {
|
|
154998
|
-
var _event$data$responseI, _event$data$responseI2;
|
|
154999
|
-
var requestId = generateRequestId();
|
|
155000
|
-
INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId] = requestId;
|
|
155001
|
-
postEventTracking({
|
|
155002
|
-
eventName: "LOAD",
|
|
155003
|
-
spaceUnitId: params.options.adGroupId,
|
|
155004
|
-
requestId: requestId,
|
|
155005
|
-
responseId: event.data.responseInfo.responseId,
|
|
155006
|
-
mediationType: "ADMOB",
|
|
155007
|
-
format: "",
|
|
155008
|
-
adSourceName: (_event$data$responseI = (_event$data$responseI2 = event.data.responseInfo.loadedAdNetworkInfo) == null ? void 0 : _event$data$responseI2.adSourceName) != null ? _event$data$responseI : "",
|
|
155009
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155010
|
-
});
|
|
155011
|
-
}
|
|
155012
|
-
return params.onEvent(event);
|
|
155013
|
-
},
|
|
155014
|
-
onError: function onError(error) {
|
|
155015
|
-
var _INTG_AD_ADM_FALLBACK;
|
|
155016
|
-
var requestId = (_INTG_AD_ADM_FALLBACK = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) != null ? _INTG_AD_ADM_FALLBACK : "";
|
|
155017
|
-
postEventTracking({
|
|
155018
|
-
eventName: "FAILED_TO_LOAD",
|
|
155019
|
-
spaceUnitId: params.options.adGroupId,
|
|
155020
|
-
requestId: requestId,
|
|
155021
|
-
responseId: "",
|
|
155022
|
-
mediationType: "ADMOB",
|
|
155023
|
-
format: "",
|
|
155024
|
-
adSourceName: "",
|
|
155025
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155026
|
-
});
|
|
155027
|
-
return params.onError(error);
|
|
155028
|
-
}
|
|
155029
|
-
}));
|
|
155030
|
-
}
|
|
155031
|
-
var onEvent = params.onEvent,
|
|
155032
|
-
_onError4 = params.onError,
|
|
155033
|
-
options = params.options;
|
|
155034
|
-
var adGroupId = options.adGroupId;
|
|
155035
|
-
var referrer = getReferrer();
|
|
155036
|
-
var unregisterCallbacks = import_native_modules18.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("loadTossAdOrAdmob", {
|
|
155037
|
-
spaceUnitId: adGroupId,
|
|
155038
|
-
referrer: referrer,
|
|
155039
|
-
sessionId: sessionId
|
|
155040
|
-
}, {
|
|
155041
|
-
onSuccess: function onSuccess() {
|
|
155042
|
-
onEvent({
|
|
155043
|
-
type: "loaded"
|
|
155044
|
-
});
|
|
155045
|
-
},
|
|
155046
|
-
onError: function onError(error) {
|
|
155047
|
-
_onError4(error);
|
|
155048
|
-
}
|
|
155049
|
-
});
|
|
155050
|
-
return unregisterCallbacks;
|
|
155051
|
-
}
|
|
155052
|
-
_loadFullScreenAd.isSupported = import_native_modules18.GoogleAdMob.loadAppsInTossAdMob.isSupported;
|
|
155053
|
-
function _showFullScreenAd(params) {
|
|
155054
|
-
if (!import_native_modules18.GoogleAdMob.showAppsInTossAdMob.isSupported()) {
|
|
155055
|
-
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
|
|
155056
|
-
return noop;
|
|
155057
|
-
}
|
|
155058
|
-
if (!integratedAdIsSupported()) {
|
|
155059
|
-
return import_native_modules18.GoogleAdMob.showAppsInTossAdMob(Object.assign({}, params, {
|
|
155060
|
-
onEvent: function onEvent(event) {
|
|
155061
|
-
var _INTG_AD_ADM_FALLBACK2;
|
|
155062
|
-
var requestId = (_INTG_AD_ADM_FALLBACK2 = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) != null ? _INTG_AD_ADM_FALLBACK2 : "";
|
|
155063
|
-
switch (event.type) {
|
|
155064
|
-
case "show":
|
|
155065
|
-
postEventTracking({
|
|
155066
|
-
eventName: "SHOW",
|
|
155067
|
-
spaceUnitId: params.options.adGroupId,
|
|
155068
|
-
requestId: requestId,
|
|
155069
|
-
responseId: "",
|
|
155070
|
-
mediationType: "ADMOB",
|
|
155071
|
-
format: "",
|
|
155072
|
-
adSourceName: "",
|
|
155073
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155074
|
-
});
|
|
155075
|
-
break;
|
|
155076
|
-
case "failedToShow":
|
|
155077
|
-
postEventTracking({
|
|
155078
|
-
eventName: "FAILED_TO_SHOW",
|
|
155079
|
-
spaceUnitId: params.options.adGroupId,
|
|
155080
|
-
requestId: requestId,
|
|
155081
|
-
responseId: "",
|
|
155082
|
-
mediationType: "ADMOB",
|
|
155083
|
-
format: "",
|
|
155084
|
-
adSourceName: "",
|
|
155085
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155086
|
-
});
|
|
155087
|
-
break;
|
|
155088
|
-
case "impression":
|
|
155089
|
-
postEventTracking({
|
|
155090
|
-
eventName: "IMP",
|
|
155091
|
-
spaceUnitId: params.options.adGroupId,
|
|
155092
|
-
requestId: requestId,
|
|
155093
|
-
responseId: "",
|
|
155094
|
-
mediationType: "ADMOB",
|
|
155095
|
-
format: "",
|
|
155096
|
-
adSourceName: "",
|
|
155097
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155098
|
-
});
|
|
155099
|
-
break;
|
|
155100
|
-
case "clicked":
|
|
155101
|
-
postEventTracking({
|
|
155102
|
-
eventName: "CLICK",
|
|
155103
|
-
spaceUnitId: params.options.adGroupId,
|
|
155104
|
-
requestId: requestId,
|
|
155105
|
-
responseId: "",
|
|
155106
|
-
mediationType: "ADMOB",
|
|
155107
|
-
format: "",
|
|
155108
|
-
adSourceName: "",
|
|
155109
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155110
|
-
});
|
|
155111
|
-
break;
|
|
155112
|
-
case "dismissed":
|
|
155113
|
-
postEventTracking({
|
|
155114
|
-
eventName: "DISMISS",
|
|
155115
|
-
spaceUnitId: params.options.adGroupId,
|
|
155116
|
-
requestId: requestId,
|
|
155117
|
-
responseId: "",
|
|
155118
|
-
mediationType: "ADMOB",
|
|
155119
|
-
format: "",
|
|
155120
|
-
adSourceName: "",
|
|
155121
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155122
|
-
});
|
|
155123
|
-
break;
|
|
155124
|
-
case "userEarnedReward":
|
|
155125
|
-
postEventTracking({
|
|
155126
|
-
eventName: "USER_EARNED_REWARD",
|
|
155127
|
-
spaceUnitId: params.options.adGroupId,
|
|
155128
|
-
requestId: requestId,
|
|
155129
|
-
responseId: "",
|
|
155130
|
-
mediationType: "ADMOB",
|
|
155131
|
-
format: "",
|
|
155132
|
-
adSourceName: "",
|
|
155133
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155134
|
-
});
|
|
155135
|
-
break;
|
|
155136
|
-
}
|
|
155137
|
-
return params.onEvent(event);
|
|
155138
|
-
},
|
|
155139
|
-
onError: function onError(error) {
|
|
155140
|
-
var _INTG_AD_ADM_FALLBACK3;
|
|
155141
|
-
var requestId = (_INTG_AD_ADM_FALLBACK3 = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) != null ? _INTG_AD_ADM_FALLBACK3 : "";
|
|
155142
|
-
postEventTracking({
|
|
155143
|
-
eventName: "FAILED_TO_SHOW",
|
|
155144
|
-
spaceUnitId: params.options.adGroupId,
|
|
155145
|
-
requestId: requestId,
|
|
155146
|
-
responseId: "",
|
|
155147
|
-
mediationType: "ADMOB",
|
|
155148
|
-
format: "",
|
|
155149
|
-
adSourceName: "",
|
|
155150
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155151
|
-
});
|
|
155152
|
-
return params.onError(error);
|
|
155153
|
-
}
|
|
155154
|
-
}));
|
|
155155
|
-
}
|
|
155156
|
-
var onEvent = params.onEvent,
|
|
155157
|
-
_onError5 = params.onError,
|
|
155158
|
-
options = params.options;
|
|
155159
|
-
var adGroupId = options.adGroupId;
|
|
155160
|
-
var referrer = getReferrer();
|
|
155161
|
-
var unregisterCallbacks = import_native_modules18.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("showTossAdOrAdmob", {
|
|
155162
|
-
spaceUnitId: adGroupId,
|
|
155163
|
-
referrer: referrer,
|
|
155164
|
-
sessionId: sessionId
|
|
155165
|
-
}, {
|
|
155166
|
-
onAdClicked: function onAdClicked() {
|
|
155167
|
-
onEvent({
|
|
155168
|
-
type: "clicked"
|
|
155169
|
-
});
|
|
155170
|
-
},
|
|
155171
|
-
onAdDismissed: function onAdDismissed() {
|
|
155172
|
-
onEvent({
|
|
155173
|
-
type: "dismissed"
|
|
155174
|
-
});
|
|
155175
|
-
},
|
|
155176
|
-
onAdFailedToShow: function onAdFailedToShow() {
|
|
155177
|
-
onEvent({
|
|
155178
|
-
type: "failedToShow"
|
|
155179
|
-
});
|
|
155180
|
-
},
|
|
155181
|
-
onAdImpression: function onAdImpression() {
|
|
155182
|
-
onEvent({
|
|
155183
|
-
type: "impression"
|
|
155184
|
-
});
|
|
155185
|
-
},
|
|
155186
|
-
onAdShow: function onAdShow() {
|
|
155187
|
-
onEvent({
|
|
155188
|
-
type: "show"
|
|
155189
|
-
});
|
|
155190
|
-
},
|
|
155191
|
-
onUserEarnedReward: function onUserEarnedReward(data) {
|
|
155192
|
-
onEvent({
|
|
155193
|
-
type: "userEarnedReward",
|
|
155194
|
-
data: data
|
|
155195
|
-
});
|
|
155196
|
-
},
|
|
155197
|
-
onSuccess: function onSuccess() {
|
|
155198
|
-
onEvent({
|
|
155199
|
-
type: "requested"
|
|
155200
|
-
});
|
|
155201
|
-
},
|
|
155202
|
-
onError: function onError(error) {
|
|
155203
|
-
_onError5(error);
|
|
155204
|
-
}
|
|
155205
|
-
});
|
|
155206
|
-
return unregisterCallbacks;
|
|
155207
|
-
}
|
|
155208
|
-
_showFullScreenAd.isSupported = import_native_modules18.GoogleAdMob.showAppsInTossAdMob.isSupported;
|
|
155209
|
-
var import_native_modules19 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155210
|
-
var import_react_native31 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155211
|
-
function tossAdEventLog(_x4) {
|
|
155212
|
-
return _tossAdEventLog.apply(this, arguments);
|
|
155213
|
-
}
|
|
155214
|
-
function _tossAdEventLog() {
|
|
155215
|
-
_tossAdEventLog = _asyncToGenerator(function* (params) {
|
|
155216
|
-
var referrer = getReferrer();
|
|
155217
|
-
var appName = import_react_native31.Granite.appName;
|
|
155218
|
-
var eventLogParams = Object.assign({}, params, {
|
|
155219
|
-
params: Object.assign({}, params.params, {
|
|
155220
|
-
referrer: referrer,
|
|
155221
|
-
app_name: appName
|
|
155222
|
-
})
|
|
155223
|
-
});
|
|
155224
|
-
return import_native_modules19.INTERNAL__module.tossCoreEventLog(eventLogParams);
|
|
155225
|
-
});
|
|
155226
|
-
return _tossAdEventLog.apply(this, arguments);
|
|
155227
|
-
}
|
|
155228
|
-
var import_react23 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154823
|
+
var import_react22 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155229
154824
|
function serializeError(error) {
|
|
155230
154825
|
return JSON.stringify(error, function (_, value) {
|
|
155231
154826
|
if (value instanceof Error) {
|
|
155232
|
-
return Object.assign({}, Object.entries(value).reduce(function (acc,
|
|
155233
|
-
var
|
|
155234
|
-
key =
|
|
155235
|
-
value2 =
|
|
154827
|
+
return Object.assign({}, Object.entries(value).reduce(function (acc, _ref61) {
|
|
154828
|
+
var _ref62 = _slicedToArray(_ref61, 2),
|
|
154829
|
+
key = _ref62[0],
|
|
154830
|
+
value2 = _ref62[1];
|
|
155236
154831
|
acc[key] = value2;
|
|
155237
154832
|
return acc;
|
|
155238
154833
|
}, {}), {
|
|
@@ -155245,24 +154840,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155245
154840
|
return value;
|
|
155246
154841
|
});
|
|
155247
154842
|
}
|
|
155248
|
-
function methodHandler(
|
|
155249
|
-
var args =
|
|
155250
|
-
eventId =
|
|
155251
|
-
functionName =
|
|
155252
|
-
handlerMap =
|
|
155253
|
-
injectJavaScript =
|
|
154843
|
+
function methodHandler(_ref63) {
|
|
154844
|
+
var args = _ref63.args,
|
|
154845
|
+
eventId = _ref63.eventId,
|
|
154846
|
+
functionName = _ref63.functionName,
|
|
154847
|
+
handlerMap = _ref63.handlerMap,
|
|
154848
|
+
injectJavaScript = _ref63.injectJavaScript;
|
|
155254
154849
|
var func = handlerMap[functionName];
|
|
155255
154850
|
if (!func) {
|
|
155256
154851
|
console.error(functionName + " is not a function");
|
|
155257
154852
|
return;
|
|
155258
154853
|
}
|
|
155259
154854
|
var wrappedFunc = function () {
|
|
155260
|
-
var
|
|
154855
|
+
var _ref64 = _asyncToGenerator(function* () {
|
|
155261
154856
|
var result = yield func.apply(void 0, arguments);
|
|
155262
154857
|
return result;
|
|
155263
154858
|
});
|
|
155264
154859
|
return function wrappedFunc() {
|
|
155265
|
-
return
|
|
154860
|
+
return _ref64.apply(this, arguments);
|
|
155266
154861
|
};
|
|
155267
154862
|
}();
|
|
155268
154863
|
wrappedFunc.apply(void 0, _toConsumableArray(args)).then(function (result) {
|
|
@@ -155273,22 +154868,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155273
154868
|
});
|
|
155274
154869
|
}
|
|
155275
154870
|
var globalEventListenerMap = new Map();
|
|
155276
|
-
function useBridgeHandler(
|
|
155277
|
-
var onMessage =
|
|
155278
|
-
constantHandlerMap =
|
|
155279
|
-
asyncHandlerMap =
|
|
155280
|
-
eventListenerMap =
|
|
155281
|
-
var ref = (0,
|
|
155282
|
-
var injectedJavaScript = (0,
|
|
155283
|
-
return "window.__CONSTANT_HANDLER_MAP = " + JSON.stringify(Object.entries(constantHandlerMap).reduce(function (acc,
|
|
155284
|
-
var
|
|
155285
|
-
key =
|
|
155286
|
-
value =
|
|
154871
|
+
function useBridgeHandler(_ref65) {
|
|
154872
|
+
var onMessage = _ref65.onMessage,
|
|
154873
|
+
constantHandlerMap = _ref65.constantHandlerMap,
|
|
154874
|
+
asyncHandlerMap = _ref65.asyncHandlerMap,
|
|
154875
|
+
eventListenerMap = _ref65.eventListenerMap;
|
|
154876
|
+
var ref = (0, import_react22.useRef)(null);
|
|
154877
|
+
var injectedJavaScript = (0, import_react22.useMemo)(function () {
|
|
154878
|
+
return "window.__CONSTANT_HANDLER_MAP = " + JSON.stringify(Object.entries(constantHandlerMap).reduce(function (acc, _ref66) {
|
|
154879
|
+
var _ref67 = _slicedToArray(_ref66, 2),
|
|
154880
|
+
key = _ref67[0],
|
|
154881
|
+
value = _ref67[1];
|
|
155287
154882
|
acc[key] = typeof value === "function" ? value() : value;
|
|
155288
154883
|
return acc;
|
|
155289
154884
|
}, {})) + ";";
|
|
155290
154885
|
}, [constantHandlerMap]);
|
|
155291
|
-
(0,
|
|
154886
|
+
(0, import_react22.useEffect)(function () {
|
|
155292
154887
|
var _ref$current;
|
|
155293
154888
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.injectJavaScript(injectedJavaScript);
|
|
155294
154889
|
}, [injectedJavaScript]);
|
|
@@ -155305,8 +154900,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155305
154900
|
(_ref$current3 = ref.current) == null ? void 0 : _ref$current3.injectJavaScript("\n window.__GRANITE_NATIVE_EMITTER.emit('" + functionName + "/onError/" + eventId + "', " + serializedError + ");\n ");
|
|
155306
154901
|
};
|
|
155307
154902
|
};
|
|
155308
|
-
var $onMessage = (0,
|
|
155309
|
-
var
|
|
154903
|
+
var $onMessage = (0, import_react22.useCallback)(function () {
|
|
154904
|
+
var _ref68 = _asyncToGenerator(function* (e) {
|
|
155310
154905
|
onMessage == null ? void 0 : onMessage(e);
|
|
155311
154906
|
var data = parseNativeEventData(e.nativeEvent.data);
|
|
155312
154907
|
if (typeof data !== "object" || data === null || typeof data.functionName !== "string" || typeof data.eventId !== "string" || typeof data.type !== "string" || !["addEventListener", "removeEventListener", "method"].includes(data.type)) {
|
|
@@ -155350,8 +154945,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155350
154945
|
}
|
|
155351
154946
|
}
|
|
155352
154947
|
});
|
|
155353
|
-
return function (
|
|
155354
|
-
return
|
|
154948
|
+
return function (_x4) {
|
|
154949
|
+
return _ref68.apply(this, arguments);
|
|
155355
154950
|
};
|
|
155356
154951
|
}(), [onMessage]);
|
|
155357
154952
|
return {
|
|
@@ -155369,7 +154964,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155369
154964
|
}
|
|
155370
154965
|
}
|
|
155371
154966
|
var import_react_native_safe_area_context3 = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
155372
|
-
var
|
|
154967
|
+
var import_react23 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155373
154968
|
var EventEmitter = function () {
|
|
155374
154969
|
function EventEmitter() {
|
|
155375
154970
|
_classCallCheck(this, EventEmitter);
|
|
@@ -155410,10 +155005,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155410
155005
|
}();
|
|
155411
155006
|
function useSafeAreaInsetsEmitter() {
|
|
155412
155007
|
var insets = (0, import_react_native_safe_area_context3.useSafeAreaInsets)();
|
|
155413
|
-
var emitter = (0,
|
|
155008
|
+
var emitter = (0, import_react23.useMemo)(function () {
|
|
155414
155009
|
return new EventEmitter();
|
|
155415
155010
|
}, []);
|
|
155416
|
-
(0,
|
|
155011
|
+
(0, import_react23.useEffect)(function () {
|
|
155417
155012
|
emitter.emit("safeAreaInsetsChange", insets);
|
|
155418
155013
|
return function () {
|
|
155419
155014
|
emitter.off("safeAreaInsetsChange", function (listener) {
|
|
@@ -155423,11 +155018,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155423
155018
|
}, [emitter, insets]);
|
|
155424
155019
|
return emitter;
|
|
155425
155020
|
}
|
|
155426
|
-
var
|
|
155427
|
-
var
|
|
155021
|
+
var import_react_native29 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155022
|
+
var import_tds_react_native13 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
155428
155023
|
var import_es_hangul5 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
155429
|
-
var import_react26 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155430
155024
|
var import_react25 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155025
|
+
var import_react24 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155431
155026
|
var INITIAL_STATE = {
|
|
155432
155027
|
stack: [],
|
|
155433
155028
|
index: -1
|
|
@@ -155474,20 +155069,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155474
155069
|
}
|
|
155475
155070
|
}
|
|
155476
155071
|
function useWebViewHistory() {
|
|
155477
|
-
var
|
|
155478
|
-
|
|
155479
|
-
state =
|
|
155480
|
-
dispatch =
|
|
155481
|
-
var onNavigationStateChange = (0,
|
|
155482
|
-
var url =
|
|
155483
|
-
canGoForward2 =
|
|
155072
|
+
var _ref69 = (0, import_react24.useReducer)(reducer, INITIAL_STATE),
|
|
155073
|
+
_ref70 = _slicedToArray(_ref69, 2),
|
|
155074
|
+
state = _ref70[0],
|
|
155075
|
+
dispatch = _ref70[1];
|
|
155076
|
+
var onNavigationStateChange = (0, import_react24.useCallback)(function (_ref71) {
|
|
155077
|
+
var url = _ref71.url,
|
|
155078
|
+
canGoForward2 = _ref71.canGoForward;
|
|
155484
155079
|
dispatch({
|
|
155485
155080
|
type: "NAVIGATION_CHANGE",
|
|
155486
155081
|
url: url,
|
|
155487
155082
|
canGoForward: canGoForward2
|
|
155488
155083
|
});
|
|
155489
155084
|
}, []);
|
|
155490
|
-
var
|
|
155085
|
+
var _ref72 = (0, import_react24.useMemo)(function () {
|
|
155491
155086
|
var canBack = state.index > 0;
|
|
155492
155087
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
155493
155088
|
return {
|
|
@@ -155495,8 +155090,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155495
155090
|
canGoForward: canFwd
|
|
155496
155091
|
};
|
|
155497
155092
|
}, [state.index, state.stack.length]),
|
|
155498
|
-
canGoBack =
|
|
155499
|
-
canGoForward =
|
|
155093
|
+
canGoBack = _ref72.canGoBack,
|
|
155094
|
+
canGoForward = _ref72.canGoForward;
|
|
155500
155095
|
return {
|
|
155501
155096
|
onNavigationStateChange: onNavigationStateChange,
|
|
155502
155097
|
hasHistory: canGoBack,
|
|
@@ -155511,22 +155106,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155511
155106
|
var _useWebViewHistory = useWebViewHistory(),
|
|
155512
155107
|
hasHistory = _useWebViewHistory.hasHistory,
|
|
155513
155108
|
onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
155514
|
-
var
|
|
155515
|
-
webBackHandlersRef =
|
|
155516
|
-
hasWebBackEvent =
|
|
155517
|
-
addWebBackEventListener =
|
|
155518
|
-
removeWebBackEventListener =
|
|
155109
|
+
var _ref73 = (0, import_react_native29.useBackEventState)(),
|
|
155110
|
+
webBackHandlersRef = _ref73.handlersRef,
|
|
155111
|
+
hasWebBackEvent = _ref73.hasBackEvent,
|
|
155112
|
+
addWebBackEventListener = _ref73.addEventListener,
|
|
155113
|
+
removeWebBackEventListener = _ref73.removeEventListener;
|
|
155519
155114
|
var logging = useNavigationBarLogging();
|
|
155520
|
-
var
|
|
155521
|
-
openConfirm =
|
|
155115
|
+
var _ref74 = (0, import_tds_react_native13.useDialog)(),
|
|
155116
|
+
openConfirm = _ref74.openConfirm;
|
|
155522
155117
|
var global2 = getAppsInTossGlobals();
|
|
155523
|
-
var addEventListener = (0,
|
|
155118
|
+
var addEventListener = (0, import_react25.useCallback)(function (handler) {
|
|
155524
155119
|
addWebBackEventListener(handler);
|
|
155525
155120
|
}, [addWebBackEventListener]);
|
|
155526
|
-
var removeEventListener = (0,
|
|
155121
|
+
var removeEventListener = (0, import_react25.useCallback)(function (handler) {
|
|
155527
155122
|
removeWebBackEventListener(handler);
|
|
155528
155123
|
}, [removeWebBackEventListener]);
|
|
155529
|
-
var handleWebBack = (0,
|
|
155124
|
+
var handleWebBack = (0, import_react25.useCallback)(_asyncToGenerator(function* () {
|
|
155530
155125
|
if (hasWebBackEvent) {
|
|
155531
155126
|
for (var handler of webBackHandlersRef) {
|
|
155532
155127
|
handler();
|
|
@@ -155547,11 +155142,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155547
155142
|
logging.closePopupCtaClick(isConfirmed);
|
|
155548
155143
|
if (isConfirmed) {
|
|
155549
155144
|
captureExitLog(Date.now());
|
|
155550
|
-
(0,
|
|
155145
|
+
(0, import_react_native29.closeView)();
|
|
155551
155146
|
}
|
|
155552
155147
|
}
|
|
155553
155148
|
}), [captureExitLog, global2.brandDisplayName, hasHistory, hasWebBackEvent, webBackHandlersRef, logging, openConfirm, webViewRef]);
|
|
155554
|
-
var handleWebHome = (0,
|
|
155149
|
+
var handleWebHome = (0, import_react25.useCallback)(function () {
|
|
155555
155150
|
var _webViewRef$current2;
|
|
155556
155151
|
logging.homeButtonClick();
|
|
155557
155152
|
if (hasWebBackEvent) {
|
|
@@ -155562,7 +155157,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155562
155157
|
}
|
|
155563
155158
|
(_webViewRef$current2 = webViewRef.current) == null ? void 0 : _webViewRef$current2.injectJavaScript(HISTORY_HOME_SCRIPT);
|
|
155564
155159
|
}, [hasWebBackEvent, webBackHandlersRef, logging, webViewRef]);
|
|
155565
|
-
return (0,
|
|
155160
|
+
return (0, import_react25.useMemo)(function () {
|
|
155566
155161
|
return {
|
|
155567
155162
|
addEventListener: addEventListener,
|
|
155568
155163
|
removeEventListener: removeEventListener,
|
|
@@ -155586,8 +155181,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155586
155181
|
});
|
|
155587
155182
|
};
|
|
155588
155183
|
}
|
|
155589
|
-
var
|
|
155590
|
-
var
|
|
155184
|
+
var import_native_modules15 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155185
|
+
var import_react_native30 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
155591
155186
|
var FontA11yCategory = {
|
|
155592
155187
|
Large: "Large",
|
|
155593
155188
|
xLarge: "xLarge",
|
|
@@ -155715,40 +155310,40 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155715
155310
|
function mapFontScaleToCategory(fontScale, platform) {
|
|
155716
155311
|
return platform === "ios" ? mapIOSFontScaleToCategory(fontScale) : mapAndroidFontScaleToCategory(fontScale);
|
|
155717
155312
|
}
|
|
155718
|
-
function _useCreateUserAgent(
|
|
155719
|
-
var batteryModePreference =
|
|
155720
|
-
colorPreference =
|
|
155721
|
-
locale =
|
|
155722
|
-
navbarPreference =
|
|
155723
|
-
pureSafeArea =
|
|
155724
|
-
safeArea =
|
|
155725
|
-
safeAreaBottomTransparency =
|
|
155726
|
-
var platform = (0,
|
|
155727
|
-
var appVersion = (0,
|
|
155728
|
-
var
|
|
155729
|
-
fontScale =
|
|
155313
|
+
function _useCreateUserAgent(_ref76) {
|
|
155314
|
+
var batteryModePreference = _ref76.batteryModePreference,
|
|
155315
|
+
colorPreference = _ref76.colorPreference,
|
|
155316
|
+
locale = _ref76.locale,
|
|
155317
|
+
navbarPreference = _ref76.navbarPreference,
|
|
155318
|
+
pureSafeArea = _ref76.pureSafeArea,
|
|
155319
|
+
safeArea = _ref76.safeArea,
|
|
155320
|
+
safeAreaBottomTransparency = _ref76.safeAreaBottomTransparency;
|
|
155321
|
+
var platform = (0, import_native_modules15.getPlatformOS)();
|
|
155322
|
+
var appVersion = (0, import_native_modules15.getTossAppVersion)();
|
|
155323
|
+
var _ref77 = (0, import_react_native30.useWindowDimensions)(),
|
|
155324
|
+
fontScale = _ref77.fontScale;
|
|
155730
155325
|
var platformString = platform === "ios" ? "iPhone" : "Android phone";
|
|
155731
155326
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
155732
155327
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
155733
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(" ");
|
|
155734
155329
|
}
|
|
155735
|
-
var
|
|
155736
|
-
var
|
|
155737
|
-
var
|
|
155738
|
-
function _useGeolocation(
|
|
155739
|
-
var accuracy =
|
|
155740
|
-
distanceInterval =
|
|
155741
|
-
timeInterval =
|
|
155742
|
-
var isVisible = (0,
|
|
155743
|
-
var
|
|
155744
|
-
|
|
155745
|
-
location =
|
|
155746
|
-
setLocation =
|
|
155747
|
-
(0,
|
|
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");
|
|
155332
|
+
var import_react26 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155333
|
+
function _useGeolocation(_ref78) {
|
|
155334
|
+
var accuracy = _ref78.accuracy,
|
|
155335
|
+
distanceInterval = _ref78.distanceInterval,
|
|
155336
|
+
timeInterval = _ref78.timeInterval;
|
|
155337
|
+
var isVisible = (0, import_react_native31.useVisibility)();
|
|
155338
|
+
var _ref79 = (0, import_react26.useState)(null),
|
|
155339
|
+
_ref80 = _slicedToArray(_ref79, 2),
|
|
155340
|
+
location = _ref80[0],
|
|
155341
|
+
setLocation = _ref80[1];
|
|
155342
|
+
(0, import_react26.useEffect)(function () {
|
|
155748
155343
|
if (!isVisible) {
|
|
155749
155344
|
return;
|
|
155750
155345
|
}
|
|
155751
|
-
return (0,
|
|
155346
|
+
return (0, import_native_modules16.startUpdateLocation)({
|
|
155752
155347
|
options: {
|
|
155753
155348
|
accuracy: accuracy,
|
|
155754
155349
|
distanceInterval: distanceInterval,
|
|
@@ -155760,18 +155355,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155760
155355
|
}, [accuracy, distanceInterval, timeInterval, isVisible]);
|
|
155761
155356
|
return location;
|
|
155762
155357
|
}
|
|
155763
|
-
var
|
|
155764
|
-
var
|
|
155358
|
+
var import_react_native32 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155359
|
+
var import_react27 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155765
155360
|
function _useWaitForReturnNavigator() {
|
|
155766
|
-
var callbacks = (0,
|
|
155767
|
-
var navigation = (0,
|
|
155768
|
-
var startNavigating = (0,
|
|
155361
|
+
var callbacks = (0, import_react27.useRef)([]).current;
|
|
155362
|
+
var navigation = (0, import_react_native32.useNavigation)();
|
|
155363
|
+
var startNavigating = (0, import_react27.useCallback)(function (route, params) {
|
|
155769
155364
|
return new Promise(function (resolve) {
|
|
155770
155365
|
callbacks.push(resolve);
|
|
155771
155366
|
navigation.navigate(route, params);
|
|
155772
155367
|
});
|
|
155773
155368
|
}, [callbacks, navigation]);
|
|
155774
|
-
var handleVisibilityChange = (0,
|
|
155369
|
+
var handleVisibilityChange = (0, import_react27.useCallback)(function (state) {
|
|
155775
155370
|
if (state === "visible" && callbacks.length > 0) {
|
|
155776
155371
|
for (var callback of callbacks) {
|
|
155777
155372
|
callback();
|
|
@@ -155779,7 +155374,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155779
155374
|
callbacks.splice(0, callbacks.length);
|
|
155780
155375
|
}
|
|
155781
155376
|
}, [callbacks]);
|
|
155782
|
-
(0,
|
|
155377
|
+
(0, import_react_native32.useVisibilityChange)(handleVisibilityChange);
|
|
155783
155378
|
return startNavigating;
|
|
155784
155379
|
}
|
|
155785
155380
|
function _useTopNavigation() {
|
|
@@ -155791,8 +155386,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155791
155386
|
removeAccessoryButton: removeNavigationRightButton
|
|
155792
155387
|
};
|
|
155793
155388
|
}
|
|
155794
|
-
var
|
|
155795
|
-
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");
|
|
155796
155391
|
var extractDateFromUUIDv7 = function extractDateFromUUIDv7(uuid) {
|
|
155797
155392
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
155798
155393
|
var timestamp = Number.parseInt(timestampHex, 16);
|
|
@@ -155805,18 +155400,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155805
155400
|
groupId: urlObject.pathname,
|
|
155806
155401
|
search: urlObject.search.startsWith("?") ? urlObject.search.substring(1) : urlObject.search
|
|
155807
155402
|
};
|
|
155808
|
-
} catch (
|
|
155403
|
+
} catch (_unused4) {
|
|
155809
155404
|
return {
|
|
155810
155405
|
groupId: "unknown",
|
|
155811
155406
|
search: "unknown"
|
|
155812
155407
|
};
|
|
155813
155408
|
}
|
|
155814
155409
|
};
|
|
155815
|
-
var
|
|
155410
|
+
var getReferrer = function getReferrer() {
|
|
155816
155411
|
try {
|
|
155817
|
-
var referrer = new URL((0,
|
|
155412
|
+
var referrer = new URL((0, import_react_native33.getSchemeUri)());
|
|
155818
155413
|
return referrer.searchParams.get("referrer");
|
|
155819
|
-
} catch (
|
|
155414
|
+
} catch (_unused5) {
|
|
155820
155415
|
return "";
|
|
155821
155416
|
}
|
|
155822
155417
|
};
|
|
@@ -155829,29 +155424,29 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155829
155424
|
log_name: groupId + "::screen",
|
|
155830
155425
|
params: {
|
|
155831
155426
|
search: search,
|
|
155832
|
-
referrer:
|
|
155427
|
+
referrer: getReferrer(),
|
|
155833
155428
|
deployment_id: _env.getDeploymentId(),
|
|
155834
155429
|
deployment_timestamp: extractDateFromUUIDv7(_env.getDeploymentId()).getTime()
|
|
155835
155430
|
}
|
|
155836
155431
|
};
|
|
155837
|
-
return (0,
|
|
155432
|
+
return (0, import_native_modules17.eventLog)(log);
|
|
155838
155433
|
};
|
|
155839
155434
|
var import_jsx_runtime18 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
155840
155435
|
var operationalEnvironment = appsInTossConstantBridges.getOperationalEnvironment();
|
|
155841
155436
|
var TYPES = ["partner", "external", "game"];
|
|
155842
155437
|
var WEBVIEW_TYPES = {
|
|
155843
155438
|
partner: PartnerWebView,
|
|
155844
|
-
external:
|
|
155439
|
+
external: import_tds_react_native14.ExternalWebViewScreen,
|
|
155845
155440
|
game: GameWebView
|
|
155846
155441
|
};
|
|
155847
155442
|
function mergeSchemeQueryParamsInto(url) {
|
|
155848
155443
|
var baseUrl = new URL(url);
|
|
155849
|
-
var schemeUrl = new URL((0,
|
|
155444
|
+
var schemeUrl = new URL((0, import_react_native34.getSchemeUri)());
|
|
155850
155445
|
baseUrl.pathname = schemeUrl.pathname;
|
|
155851
|
-
for (var
|
|
155852
|
-
var
|
|
155853
|
-
var key =
|
|
155854
|
-
var value =
|
|
155446
|
+
for (var _ref81 of schemeUrl.searchParams.entries()) {
|
|
155447
|
+
var _ref82 = _slicedToArray(_ref81, 2);
|
|
155448
|
+
var key = _ref82[0];
|
|
155449
|
+
var value = _ref82[1];
|
|
155855
155450
|
baseUrl.searchParams.set(key, value);
|
|
155856
155451
|
}
|
|
155857
155452
|
return baseUrl;
|
|
@@ -155861,7 +155456,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155861
155456
|
var devUrl = "http://" + local.host + ":" + local.port;
|
|
155862
155457
|
return mergeSchemeQueryParamsInto(devUrl).toString();
|
|
155863
155458
|
}
|
|
155864
|
-
var _import_native_module =
|
|
155459
|
+
var _import_native_module = import_native_modules18.AppsInTossModule.getWebBundleURL({}),
|
|
155865
155460
|
rawUrl = _import_native_module.url;
|
|
155866
155461
|
var url = mergeSchemeQueryParamsInto(rawUrl);
|
|
155867
155462
|
var deploymentId = _env.getDeploymentId();
|
|
@@ -155870,17 +155465,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155870
155465
|
}
|
|
155871
155466
|
return url.toString();
|
|
155872
155467
|
}
|
|
155873
|
-
function _WebView(
|
|
155874
|
-
var type =
|
|
155875
|
-
local =
|
|
155876
|
-
onMessage =
|
|
155877
|
-
props = _objectWithoutProperties(
|
|
155468
|
+
function _WebView(_ref83) {
|
|
155469
|
+
var type = _ref83.type,
|
|
155470
|
+
local = _ref83.local,
|
|
155471
|
+
onMessage = _ref83.onMessage,
|
|
155472
|
+
props = _objectWithoutProperties(_ref83, _excluded3);
|
|
155878
155473
|
if (!TYPES.includes(type)) {
|
|
155879
155474
|
throw new Error("Invalid WebView type: '" + type + "'");
|
|
155880
155475
|
}
|
|
155881
|
-
var webViewRef = (0,
|
|
155476
|
+
var webViewRef = (0, import_react28.useRef)(null);
|
|
155882
155477
|
var webBackHandler = useWebBackHandler(webViewRef);
|
|
155883
|
-
var uri = (0,
|
|
155478
|
+
var uri = (0, import_react28.useMemo)(function () {
|
|
155884
155479
|
return getWebViewUri(local);
|
|
155885
155480
|
}, [local]);
|
|
155886
155481
|
var top = (0, import_private9.useSafeAreaTop)();
|
|
@@ -155889,74 +155484,63 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155889
155484
|
var global2 = getAppsInTossGlobals();
|
|
155890
155485
|
var navigationBarContext = useNavigationBarContext();
|
|
155891
155486
|
var safeAreaInsetsEmitter = useSafeAreaInsetsEmitter();
|
|
155892
|
-
var
|
|
155893
|
-
|
|
155894
|
-
allowsBackForwardNavigationGestures =
|
|
155895
|
-
setAllowsBackForwardNavigationGestures =
|
|
155487
|
+
var _ref84 = (0, import_react28.useState)(props.allowsBackForwardNavigationGestures),
|
|
155488
|
+
_ref85 = _slicedToArray(_ref84, 2),
|
|
155489
|
+
allowsBackForwardNavigationGestures = _ref85[0],
|
|
155490
|
+
setAllowsBackForwardNavigationGestures = _ref85[1];
|
|
155896
155491
|
var handler = useBridgeHandler({
|
|
155897
155492
|
onMessage: onMessage,
|
|
155898
155493
|
eventListenerMap: Object.assign({}, appsInTossEventBridges, {
|
|
155899
|
-
navigationAccessoryEvent: function navigationAccessoryEvent(
|
|
155900
|
-
var onEvent =
|
|
155901
|
-
onError =
|
|
155902
|
-
return
|
|
155494
|
+
navigationAccessoryEvent: function navigationAccessoryEvent(_ref86) {
|
|
155495
|
+
var onEvent = _ref86.onEvent,
|
|
155496
|
+
onError = _ref86.onError;
|
|
155497
|
+
return import_tds_react_native14.tdsEvent.addEventListener("navigationAccessoryEvent", {
|
|
155903
155498
|
onEvent: onEvent,
|
|
155904
155499
|
onError: onError
|
|
155905
155500
|
});
|
|
155906
155501
|
},
|
|
155907
|
-
backEvent: function backEvent(
|
|
155908
|
-
var onEvent =
|
|
155502
|
+
backEvent: function backEvent(_ref87) {
|
|
155503
|
+
var onEvent = _ref87.onEvent;
|
|
155909
155504
|
webBackHandler.addEventListener(onEvent);
|
|
155910
155505
|
return function () {
|
|
155911
155506
|
webBackHandler.removeEventListener(onEvent);
|
|
155912
155507
|
};
|
|
155913
155508
|
},
|
|
155914
|
-
|
|
155915
|
-
var onEvent =
|
|
155916
|
-
onError =
|
|
155917
|
-
|
|
155918
|
-
|
|
155919
|
-
onError: onError
|
|
155920
|
-
});
|
|
155921
|
-
},
|
|
155922
|
-
updateLocationEvent: function updateLocationEvent(_ref94) {
|
|
155923
|
-
var onEvent = _ref94.onEvent,
|
|
155924
|
-
onError = _ref94.onError,
|
|
155925
|
-
options = _ref94.options;
|
|
155926
|
-
return import_native_modules23.appsInTossEvent.addEventListener("updateLocationEvent", {
|
|
155509
|
+
updateLocationEvent: function updateLocationEvent(_ref88) {
|
|
155510
|
+
var onEvent = _ref88.onEvent,
|
|
155511
|
+
onError = _ref88.onError,
|
|
155512
|
+
options = _ref88.options;
|
|
155513
|
+
return import_native_modules18.appsInTossEvent.addEventListener("updateLocationEvent", {
|
|
155927
155514
|
onEvent: onEvent,
|
|
155928
155515
|
onError: onError,
|
|
155929
155516
|
options: options
|
|
155930
155517
|
});
|
|
155931
155518
|
},
|
|
155932
|
-
safeAreaInsetsChange: function safeAreaInsetsChange(
|
|
155933
|
-
var onEvent =
|
|
155519
|
+
safeAreaInsetsChange: function safeAreaInsetsChange(_ref89) {
|
|
155520
|
+
var onEvent = _ref89.onEvent;
|
|
155934
155521
|
safeAreaInsetsEmitter.on("safeAreaInsetsChange", onEvent);
|
|
155935
155522
|
return function () {
|
|
155936
155523
|
safeAreaInsetsEmitter.off("safeAreaInsetsChange", onEvent);
|
|
155937
155524
|
};
|
|
155938
155525
|
},
|
|
155939
|
-
appBridgeCallbackEvent: function appBridgeCallbackEvent(
|
|
155940
|
-
var onEvent =
|
|
155941
|
-
onError =
|
|
155942
|
-
options =
|
|
155943
|
-
return
|
|
155526
|
+
appBridgeCallbackEvent: function appBridgeCallbackEvent(_ref90) {
|
|
155527
|
+
var onEvent = _ref90.onEvent,
|
|
155528
|
+
onError = _ref90.onError,
|
|
155529
|
+
options = _ref90.options;
|
|
155530
|
+
return import_native_modules18.appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
|
|
155944
155531
|
onEvent: onEvent,
|
|
155945
155532
|
onError: onError,
|
|
155946
155533
|
options: options
|
|
155947
155534
|
});
|
|
155948
155535
|
},
|
|
155949
|
-
loadAdMobInterstitialAd:
|
|
155950
|
-
showAdMobInterstitialAd:
|
|
155951
|
-
loadAdMobRewardedAd:
|
|
155952
|
-
showAdMobRewardedAd:
|
|
155953
|
-
loadAppsInTossAdMob:
|
|
155954
|
-
showAppsInTossAdMob:
|
|
155955
|
-
|
|
155956
|
-
|
|
155957
|
-
fetchTossAd: fetchTossAd,
|
|
155958
|
-
iapCreateOneTimePurchaseOrder: import_native_modules23.IAP.createOneTimePurchaseOrder,
|
|
155959
|
-
requestOneTimePurchase: import_native_modules23.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
|
|
155960
155544
|
}),
|
|
155961
155545
|
constantHandlerMap: Object.assign({}, appsInTossConstantBridges, {
|
|
155962
155546
|
getSafeAreaTop: function getSafeAreaTop() {
|
|
@@ -155971,23 +155555,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155971
155555
|
getSafeAreaRight: function getSafeAreaRight() {
|
|
155972
155556
|
return insets.right;
|
|
155973
155557
|
}
|
|
155974
|
-
}, Object.fromEntries(Object.entries(global2).map(function (
|
|
155975
|
-
var
|
|
155976
|
-
key =
|
|
155977
|
-
value =
|
|
155558
|
+
}, Object.fromEntries(Object.entries(global2).map(function (_ref91) {
|
|
155559
|
+
var _ref92 = _slicedToArray(_ref91, 2),
|
|
155560
|
+
key = _ref92[0],
|
|
155561
|
+
value = _ref92[1];
|
|
155978
155562
|
return [key, function () {
|
|
155979
155563
|
return value;
|
|
155980
155564
|
}];
|
|
155981
155565
|
})), {
|
|
155982
|
-
loadAdMobInterstitialAd_isSupported:
|
|
155983
|
-
showAdMobInterstitialAd_isSupported:
|
|
155984
|
-
loadAdMobRewardedAd_isSupported:
|
|
155985
|
-
showAdMobRewardedAd_isSupported:
|
|
155986
|
-
loadAppsInTossAdMob_isSupported:
|
|
155987
|
-
showAppsInTossAdMob_isSupported:
|
|
155988
|
-
loadFullScreenAd_isSupported: _loadFullScreenAd.isSupported,
|
|
155989
|
-
showFullScreenAd_isSupported: _showFullScreenAd.isSupported,
|
|
155990
|
-
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,
|
|
155991
155572
|
getDeploymentId: _env.getDeploymentId
|
|
155992
155573
|
}),
|
|
155993
155574
|
asyncHandlerMap: Object.assign({}, appsInTossAsyncBridges, {
|
|
@@ -155999,7 +155580,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155999
155580
|
var _addAccessoryButton = _asyncToGenerator(function* (params) {
|
|
156000
155581
|
return navigationBarContext.addNavigationRightButton(params);
|
|
156001
155582
|
});
|
|
156002
|
-
function addAccessoryButton(
|
|
155583
|
+
function addAccessoryButton(_x5) {
|
|
156003
155584
|
return _addAccessoryButton.apply(this, arguments);
|
|
156004
155585
|
}
|
|
156005
155586
|
return addAccessoryButton;
|
|
@@ -156022,20 +155603,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156022
155603
|
fetchContacts: appsInTossAsyncBridges.fetchContacts,
|
|
156023
155604
|
getCurrentLocation: appsInTossAsyncBridges.getCurrentLocation,
|
|
156024
155605
|
openCamera: appsInTossAsyncBridges.openCamera,
|
|
156025
|
-
getStorageItem:
|
|
156026
|
-
setStorageItem:
|
|
156027
|
-
removeStorageItem:
|
|
156028
|
-
clearItems:
|
|
156029
|
-
iapGetProductItemList:
|
|
156030
|
-
iapCreateOneTimePurchaseOrder:
|
|
156031
|
-
processProductGrant:
|
|
156032
|
-
getPendingOrders:
|
|
156033
|
-
getCompletedOrRefundedOrders:
|
|
156034
|
-
completeProductGrant:
|
|
156035
|
-
|
|
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,
|
|
155616
|
+
memoryDebugEventLog: webViewMemoryDebugLog
|
|
156036
155617
|
})
|
|
156037
155618
|
});
|
|
156038
|
-
var headerPropForExternalWebView = (0,
|
|
155619
|
+
var headerPropForExternalWebView = (0, import_react28.useMemo)(function () {
|
|
156039
155620
|
var _parsedNavigationBar$5;
|
|
156040
155621
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
156041
155622
|
var initialAccessoryButton = parsedNavigationBar == null ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
@@ -156057,14 +155638,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156057
155638
|
colorPreference: "light"
|
|
156058
155639
|
});
|
|
156059
155640
|
var refs = mergeRefs(handler.ref, webViewRef);
|
|
156060
|
-
(0,
|
|
155641
|
+
(0, import_react28.useEffect)(function () {
|
|
156061
155642
|
var callback = function callback() {
|
|
156062
155643
|
webBackHandler.handleWebBack();
|
|
156063
155644
|
return true;
|
|
156064
155645
|
};
|
|
156065
|
-
|
|
155646
|
+
import_react_native35.BackHandler.addEventListener("hardwareBackPress", callback);
|
|
156066
155647
|
return function () {
|
|
156067
|
-
return
|
|
155648
|
+
return import_react_native35.BackHandler.removeEventListener("hardwareBackPress", callback);
|
|
156068
155649
|
};
|
|
156069
155650
|
}, [webBackHandler]);
|
|
156070
155651
|
var globalScripts = useGlobalScripts();
|
|
@@ -156086,14 +155667,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156086
155667
|
props.onNavigationStateChange == null ? void 0 : props.onNavigationStateChange(event);
|
|
156087
155668
|
webBackHandler.onNavigationStateChange(event);
|
|
156088
155669
|
},
|
|
156089
|
-
userAgent:
|
|
155670
|
+
userAgent: import_react_native35.Platform.OS === "ios" ? userAgent : void 0,
|
|
156090
155671
|
sharedCookiesEnabled: true,
|
|
156091
155672
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
156092
155673
|
thirdPartyCookiesEnabled: true,
|
|
156093
155674
|
onMessage: handler.onMessage,
|
|
156094
155675
|
injectedJavaScript: globalScripts.afterLoad,
|
|
156095
155676
|
injectedJavaScriptBeforeContentLoaded: mergeScripts(handler.injectedJavaScript, globalScripts.beforeLoad),
|
|
156096
|
-
decelerationRate:
|
|
155677
|
+
decelerationRate: import_react_native35.Platform.OS === "ios" ? 1 : void 0,
|
|
156097
155678
|
allowsBackForwardNavigationGestures: allowsBackForwardNavigationGestures,
|
|
156098
155679
|
onShouldStartLoadWithRequest: function onShouldStartLoadWithRequest(event) {
|
|
156099
155680
|
try {
|
|
@@ -156102,7 +155683,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156102
155683
|
return true;
|
|
156103
155684
|
} else {
|
|
156104
155685
|
var _convertIntentURL;
|
|
156105
|
-
|
|
155686
|
+
import_react_native35.Linking.openURL((_convertIntentURL = convertIntentURL(url)) != null ? _convertIntentURL : url.href);
|
|
156106
155687
|
return false;
|
|
156107
155688
|
}
|
|
156108
155689
|
} catch (error) {
|
|
@@ -156110,9 +155691,49 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156110
155691
|
return false;
|
|
156111
155692
|
}
|
|
156112
155693
|
},
|
|
156113
|
-
originWhitelist: ["https://*", "http://*", "intoss://*", "intoss-private://*", "servicetoss://*", "supertoss://*", "intent://*"]
|
|
155694
|
+
originWhitelist: ["https://*", "http://*", "intoss://*", "intoss-private://*", "servicetoss://*", "supertoss://*", "intent://*"],
|
|
155695
|
+
onContentProcessDidTerminate: function onContentProcessDidTerminate(event) {
|
|
155696
|
+
var _webViewRef$current3;
|
|
155697
|
+
webViewProcessDidTerminateEventLog(event.nativeEvent.url);
|
|
155698
|
+
(_webViewRef$current3 = webViewRef.current) == null ? void 0 : _webViewRef$current3.reload();
|
|
155699
|
+
},
|
|
155700
|
+
onRenderProcessGone: function onRenderProcessGone() {
|
|
155701
|
+
var _webViewRef$current4;
|
|
155702
|
+
webViewProcessDidTerminateEventLog();
|
|
155703
|
+
(_webViewRef$current4 = webViewRef.current) == null ? void 0 : _webViewRef$current4.reload();
|
|
155704
|
+
}
|
|
156114
155705
|
}));
|
|
156115
155706
|
}
|
|
155707
|
+
function webViewMemoryDebugLog(_x6) {
|
|
155708
|
+
return _webViewMemoryDebugLog.apply(this, arguments);
|
|
155709
|
+
}
|
|
155710
|
+
function _webViewMemoryDebugLog() {
|
|
155711
|
+
_webViewMemoryDebugLog = _asyncToGenerator(function* (params) {
|
|
155712
|
+
webViewDebugLog("AppsInTossWebViewMemoryDebug", params);
|
|
155713
|
+
});
|
|
155714
|
+
return _webViewMemoryDebugLog.apply(this, arguments);
|
|
155715
|
+
}
|
|
155716
|
+
function webViewProcessDidTerminateEventLog(url) {
|
|
155717
|
+
webViewDebugLog("AppsInTossWebViewProcessDidTerminate", {
|
|
155718
|
+
url: url
|
|
155719
|
+
});
|
|
155720
|
+
}
|
|
155721
|
+
function webViewDebugLog(logName, params) {
|
|
155722
|
+
var global2 = getAppsInTossGlobals();
|
|
155723
|
+
var event = {
|
|
155724
|
+
log_name: logName,
|
|
155725
|
+
log_type: "debug",
|
|
155726
|
+
params: Object.assign({}, params, {
|
|
155727
|
+
app_name: import_react_native34.Granite.appName,
|
|
155728
|
+
deployment_id: global2.deploymentId
|
|
155729
|
+
})
|
|
155730
|
+
};
|
|
155731
|
+
if ((0, import_native_modules18.getOperationalEnvironment)() === "toss") {
|
|
155732
|
+
import_native_modules18.INTERNAL__module.tossCoreEventLog(event);
|
|
155733
|
+
} else {
|
|
155734
|
+
console.log("[webViewDebugLog]", event);
|
|
155735
|
+
}
|
|
155736
|
+
}
|
|
156116
155737
|
function useGlobalScripts() {
|
|
156117
155738
|
var global2 = getAppsInTossGlobals();
|
|
156118
155739
|
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 ";
|
|
@@ -156147,8 +155768,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156147
155768
|
OverlayProvider: OverlayProvider,
|
|
156148
155769
|
WebView: _WebView,
|
|
156149
155770
|
env: _env,
|
|
156150
|
-
loadFullScreenAd: _loadFullScreenAd,
|
|
156151
|
-
showFullScreenAd: _showFullScreenAd,
|
|
156152
155771
|
useCreateUserAgent: _useCreateUserAgent,
|
|
156153
155772
|
useGeolocation: _useGeolocation,
|
|
156154
155773
|
useOverlay: useOverlay,
|
|
@@ -156165,16 +155784,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156165
155784
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
156166
155785
|
"use strict";
|
|
156167
155786
|
|
|
156168
|
-
var
|
|
156169
|
-
var
|
|
156170
|
-
var
|
|
156171
|
-
var
|
|
156172
|
-
var
|
|
156173
|
-
var _excluded = ["
|
|
156174
|
-
_excluded2 = ["
|
|
156175
|
-
_excluded3 = ["
|
|
156176
|
-
_excluded4 = ["params"],
|
|
156177
|
-
_excluded5 = ["
|
|
155787
|
+
var _defineProperty = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/defineProperty");
|
|
155788
|
+
var _asyncToGenerator = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator");
|
|
155789
|
+
var _toConsumableArray = _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/toConsumableArray");
|
|
155790
|
+
var _slicedToArray = _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/slicedToArray");
|
|
155791
|
+
var _objectWithoutProperties = _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/objectWithoutProperties");
|
|
155792
|
+
var _excluded = ["log_name"],
|
|
155793
|
+
_excluded2 = ["enabled", "impression"],
|
|
155794
|
+
_excluded3 = ["params"],
|
|
155795
|
+
_excluded4 = ["children", "params"],
|
|
155796
|
+
_excluded5 = ["params"],
|
|
155797
|
+
_excluded6 = ["loggerParams", "children", "hasIOScrollView"];
|
|
156178
155798
|
var __defProp = Object.defineProperty;
|
|
156179
155799
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
156180
155800
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -156285,10 +155905,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156285
155905
|
});
|
|
156286
155906
|
},
|
|
156287
155907
|
event: function event(groupId, params) {
|
|
155908
|
+
var log_name = params.log_name,
|
|
155909
|
+
otherParams = _objectWithoutProperties(params, _excluded);
|
|
156288
155910
|
loggerFunction == null ? void 0 : loggerFunction({
|
|
156289
155911
|
log_type: "event",
|
|
156290
|
-
log_name: createLogName(groupId, params.event_type),
|
|
156291
|
-
params:
|
|
155912
|
+
log_name: log_name != null ? log_name : createLogName(groupId, params.event_type),
|
|
155913
|
+
params: otherParams
|
|
156292
155914
|
});
|
|
156293
155915
|
}
|
|
156294
155916
|
};
|
|
@@ -156394,9 +156016,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156394
156016
|
enabled = _ref7$enabled === void 0 ? true : _ref7$enabled,
|
|
156395
156017
|
_ref7$impression = _ref7.impression,
|
|
156396
156018
|
impressionType = _ref7$impression === void 0 ? "always" : _ref7$impression,
|
|
156397
|
-
props = _objectWithoutProperties(_ref7,
|
|
156019
|
+
props = _objectWithoutProperties(_ref7, _excluded2);
|
|
156398
156020
|
var params = props.params,
|
|
156399
|
-
rest = _objectWithoutProperties(props,
|
|
156021
|
+
rest = _objectWithoutProperties(props, _excluded3);
|
|
156400
156022
|
var ImpressionAreaComponent = impressionType === "on-mount" ? import_react_native.ImpressionAreaOnMount : import_react_native.ImpressionArea;
|
|
156401
156023
|
var isInFallbackProvider = (0, import_react7.useContext)(ImpressionFallbackContext);
|
|
156402
156024
|
return (0, import_jsx_runtime.jsx)(LoggingEvent, {
|
|
@@ -156460,7 +156082,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156460
156082
|
var children = _ref10.children,
|
|
156461
156083
|
_ref10$params = _ref10.params,
|
|
156462
156084
|
_params = _ref10$params === void 0 ? {} : _ref10$params,
|
|
156463
|
-
props = _objectWithoutProperties(_ref10,
|
|
156085
|
+
props = _objectWithoutProperties(_ref10, _excluded4);
|
|
156464
156086
|
var ref = (0, import_react9.useRef)(null);
|
|
156465
156087
|
var logger = useLogger();
|
|
156466
156088
|
var _params2 = usePreservedReference(_params);
|
|
@@ -156613,7 +156235,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156613
156235
|
function LoggingScreen(_ref16) {
|
|
156614
156236
|
var _ref16$params = _ref16.params,
|
|
156615
156237
|
_params = _ref16$params === void 0 ? {} : _ref16$params,
|
|
156616
|
-
props = _objectWithoutProperties(_ref16,
|
|
156238
|
+
props = _objectWithoutProperties(_ref16, _excluded5);
|
|
156617
156239
|
var _useRoutePath = useRoutePath(),
|
|
156618
156240
|
groupId = _useRoutePath.path,
|
|
156619
156241
|
search = _useRoutePath.search;
|
|
@@ -156755,7 +156377,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156755
156377
|
children = _ref18.children,
|
|
156756
156378
|
_ref18$hasIOScrollVie = _ref18.hasIOScrollView,
|
|
156757
156379
|
hasIOScrollView = _ref18$hasIOScrollVie === void 0 ? true : _ref18$hasIOScrollVie,
|
|
156758
|
-
props = _objectWithoutProperties(_ref18,
|
|
156380
|
+
props = _objectWithoutProperties(_ref18, _excluded6);
|
|
156759
156381
|
var hasIntersectionObserver = (0, import_react14.isValidElement)(children) && children.type === import_react_native6.IOScrollView;
|
|
156760
156382
|
return (0, import_jsx_runtime5.jsx)(LoggingScreen, {
|
|
156761
156383
|
params: loggerParams,
|
|
@@ -156775,18 +156397,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156775
156397
|
Analytics: _Analytics,
|
|
156776
156398
|
withLoggingScreen: _withLoggingScreen
|
|
156777
156399
|
});
|
|
156778
|
-
},1258,[
|
|
156400
|
+
},1258,[93,16,32,61,207,6,18,2,9],"../../.yarn/__virtual__/@apps-in-toss-analytics-virtual-4ca827ec8e/1/apps-in-toss-packages/analytics/dist/index.cjs");
|
|
156779
156401
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
156780
156402
|
"use strict";
|
|
156781
156403
|
|
|
156782
156404
|
var _slicedToArray = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/slicedToArray");
|
|
156783
156405
|
var _objectWithoutProperties = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties");
|
|
156784
|
-
var
|
|
156785
|
-
var
|
|
156786
|
-
var
|
|
156787
|
-
var
|
|
156788
|
-
var
|
|
156789
|
-
var
|
|
156406
|
+
var _classCallCheck = _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck");
|
|
156407
|
+
var _createClass = _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass");
|
|
156408
|
+
var _possibleConstructorReturn = _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn");
|
|
156409
|
+
var _getPrototypeOf = _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf");
|
|
156410
|
+
var _inherits = _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/inherits");
|
|
156411
|
+
var _asyncToGenerator = _$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/asyncToGenerator");
|
|
156790
156412
|
var _excluded = ["onSuccess", "onError"];
|
|
156791
156413
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
156792
156414
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
@@ -156978,32 +156600,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156978
156600
|
}
|
|
156979
156601
|
});
|
|
156980
156602
|
module.exports = __toCommonJS(index_exports);
|
|
156981
|
-
var
|
|
156982
|
-
var import_react_native = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
156983
|
-
var EntryMessageExitedEvent = function (_import_react_native$) {
|
|
156984
|
-
function EntryMessageExitedEvent() {
|
|
156985
|
-
var _this;
|
|
156986
|
-
_classCallCheck(this, EntryMessageExitedEvent);
|
|
156987
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
156988
|
-
args[_key] = arguments[_key];
|
|
156989
|
-
}
|
|
156990
|
-
_this = _callSuper(this, EntryMessageExitedEvent, [].concat(args));
|
|
156991
|
-
_this.name = "entryMessageExited";
|
|
156992
|
-
return _this;
|
|
156993
|
-
}
|
|
156994
|
-
_inherits(EntryMessageExitedEvent, _import_react_native$);
|
|
156995
|
-
return _createClass(EntryMessageExitedEvent, [{
|
|
156996
|
-
key: "remove",
|
|
156997
|
-
value: function remove() {}
|
|
156998
|
-
}, {
|
|
156999
|
-
key: "listener",
|
|
157000
|
-
value: function listener(_) {}
|
|
157001
|
-
}]);
|
|
157002
|
-
}(import_react_native.GraniteEventDefinition);
|
|
156603
|
+
var import_react_native6 = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
157003
156604
|
var import_types = _$$_REQUIRE(_dependencyMap[9], "@apps-in-toss/types");
|
|
157004
|
-
var
|
|
157005
|
-
var
|
|
157006
|
-
var Module =
|
|
156605
|
+
var import_react_native3 = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
156606
|
+
var import_react_native = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
156607
|
+
var Module = import_react_native.TurboModuleRegistry.getEnforcing("AppsInTossModule");
|
|
157007
156608
|
var AppsInTossModuleInstance = Module;
|
|
157008
156609
|
var _AppsInTossModule = Module;
|
|
157009
156610
|
function openPermissionDialog(permission) {
|
|
@@ -157028,22 +156629,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157028
156629
|
});
|
|
157029
156630
|
return _requestPermission.apply(this, arguments);
|
|
157030
156631
|
}
|
|
157031
|
-
var
|
|
157032
|
-
var nativeEventEmitter = new
|
|
156632
|
+
var import_react_native2 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
156633
|
+
var nativeEventEmitter = new import_react_native2.NativeEventEmitter(AppsInTossModuleInstance);
|
|
157033
156634
|
var UpdateLocationEvent = function (_import_react_native) {
|
|
157034
156635
|
function UpdateLocationEvent() {
|
|
157035
|
-
var
|
|
156636
|
+
var _this;
|
|
157036
156637
|
_classCallCheck(this, UpdateLocationEvent);
|
|
157037
|
-
for (var
|
|
157038
|
-
args[
|
|
156638
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
156639
|
+
args[_key] = arguments[_key];
|
|
157039
156640
|
}
|
|
157040
|
-
|
|
157041
|
-
|
|
157042
|
-
|
|
157043
|
-
|
|
156641
|
+
_this = _callSuper(this, UpdateLocationEvent, [].concat(args));
|
|
156642
|
+
_this.name = "updateLocationEvent";
|
|
156643
|
+
_this.subscriptionCount = 0;
|
|
156644
|
+
_this.ref = {
|
|
157044
156645
|
remove: function remove() {}
|
|
157045
156646
|
};
|
|
157046
|
-
return
|
|
156647
|
+
return _this;
|
|
157047
156648
|
}
|
|
157048
156649
|
_inherits(UpdateLocationEvent, _import_react_native);
|
|
157049
156650
|
return _createClass(UpdateLocationEvent, [{
|
|
@@ -157057,7 +156658,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157057
156658
|
}, {
|
|
157058
156659
|
key: "listener",
|
|
157059
156660
|
value: function listener(options, onEvent, onError) {
|
|
157060
|
-
var
|
|
156661
|
+
var _this2 = this;
|
|
157061
156662
|
requestPermission({
|
|
157062
156663
|
name: "geolocation",
|
|
157063
156664
|
access: "access"
|
|
@@ -157068,25 +156669,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157068
156669
|
}
|
|
157069
156670
|
void AppsInTossModuleInstance.startUpdateLocation(options).catch(onError);
|
|
157070
156671
|
var subscription = nativeEventEmitter.addListener("updateLocation", onEvent);
|
|
157071
|
-
|
|
156672
|
+
_this2.ref = {
|
|
157072
156673
|
remove: function remove() {
|
|
157073
156674
|
return subscription == null ? void 0 : subscription.remove();
|
|
157074
156675
|
}
|
|
157075
156676
|
};
|
|
157076
|
-
|
|
156677
|
+
_this2.subscriptionCount++;
|
|
157077
156678
|
}).catch(onError);
|
|
157078
156679
|
}
|
|
157079
156680
|
}]);
|
|
157080
|
-
}(
|
|
157081
|
-
var
|
|
156681
|
+
}(import_react_native3.GraniteEventDefinition);
|
|
156682
|
+
var import_react_native4 = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
157082
156683
|
function generateUUID(placeholder) {
|
|
157083
156684
|
return placeholder ? (placeholder ^ Math.random() * 16 >> placeholder / 4).toString(16) : (String(1e7) + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, generateUUID);
|
|
157084
156685
|
}
|
|
157085
156686
|
var INTERNAL__callbacks = new Map();
|
|
157086
156687
|
function invokeAppBridgeCallback(id) {
|
|
157087
156688
|
var callback = INTERNAL__callbacks.get(id);
|
|
157088
|
-
for (var
|
|
157089
|
-
args[
|
|
156689
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
156690
|
+
args[_key2 - 1] = arguments[_key2];
|
|
157090
156691
|
}
|
|
157091
156692
|
callback == null ? void 0 : callback.call.apply(callback, [null].concat(args));
|
|
157092
156693
|
return Boolean(callback);
|
|
@@ -157150,12 +156751,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157150
156751
|
var UNSAFE__nativeEventEmitter = nativeEventEmitter;
|
|
157151
156752
|
var AppBridgeCallbackEvent = function (_import_react_native2) {
|
|
157152
156753
|
function _AppBridgeCallbackEvent() {
|
|
157153
|
-
var
|
|
156754
|
+
var _this3;
|
|
157154
156755
|
_classCallCheck(this, _AppBridgeCallbackEvent);
|
|
157155
|
-
|
|
157156
|
-
|
|
157157
|
-
|
|
157158
|
-
return
|
|
156756
|
+
_this3 = _callSuper(this, _AppBridgeCallbackEvent);
|
|
156757
|
+
_this3.name = "appBridgeCallbackEvent";
|
|
156758
|
+
_this3.registerAppBridgeCallbackEventListener();
|
|
156759
|
+
return _this3;
|
|
157159
156760
|
}
|
|
157160
156761
|
_inherits(_AppBridgeCallbackEvent, _import_react_native2);
|
|
157161
156762
|
return _createClass(_AppBridgeCallbackEvent, [{
|
|
@@ -157182,19 +156783,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157182
156783
|
}
|
|
157183
156784
|
}
|
|
157184
156785
|
}]);
|
|
157185
|
-
}(
|
|
157186
|
-
var
|
|
156786
|
+
}(import_react_native4.GraniteEventDefinition);
|
|
156787
|
+
var import_react_native5 = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
157187
156788
|
var VisibilityChangedByTransparentServiceWebEvent = function (_import_react_native3) {
|
|
157188
156789
|
function VisibilityChangedByTransparentServiceWebEvent() {
|
|
157189
|
-
var
|
|
156790
|
+
var _this4;
|
|
157190
156791
|
_classCallCheck(this, VisibilityChangedByTransparentServiceWebEvent);
|
|
157191
|
-
for (var
|
|
157192
|
-
args[
|
|
156792
|
+
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
156793
|
+
args[_key3] = arguments[_key3];
|
|
157193
156794
|
}
|
|
157194
|
-
|
|
157195
|
-
|
|
157196
|
-
|
|
157197
|
-
return
|
|
156795
|
+
_this4 = _callSuper(this, VisibilityChangedByTransparentServiceWebEvent, [].concat(args));
|
|
156796
|
+
_this4.name = "onVisibilityChangedByTransparentServiceWeb";
|
|
156797
|
+
_this4.subscription = null;
|
|
156798
|
+
return _this4;
|
|
157198
156799
|
}
|
|
157199
156800
|
_inherits(VisibilityChangedByTransparentServiceWebEvent, _import_react_native3);
|
|
157200
156801
|
return _createClass(VisibilityChangedByTransparentServiceWebEvent, [{
|
|
@@ -157207,9 +156808,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157207
156808
|
}, {
|
|
157208
156809
|
key: "listener",
|
|
157209
156810
|
value: function listener(options, onEvent, onError) {
|
|
157210
|
-
var
|
|
156811
|
+
var _this5 = this;
|
|
157211
156812
|
var subscription = nativeEventEmitter.addListener("visibilityChangedByTransparentServiceWeb", function (params) {
|
|
157212
|
-
if (
|
|
156813
|
+
if (_this5.isVisibilityChangedByTransparentServiceWebResult(params)) {
|
|
157213
156814
|
if (params.callbackId === options.callbackId) {
|
|
157214
156815
|
onEvent(params.isVisible);
|
|
157215
156816
|
}
|
|
@@ -157225,13 +156826,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157225
156826
|
return typeof params === "object" && typeof params.callbackId === "string" && typeof params.isVisible === "boolean";
|
|
157226
156827
|
}
|
|
157227
156828
|
}]);
|
|
157228
|
-
}(
|
|
157229
|
-
var _appsInTossEvent = new
|
|
156829
|
+
}(import_react_native5.GraniteEventDefinition);
|
|
156830
|
+
var _appsInTossEvent = new import_react_native6.GraniteEvent([new UpdateLocationEvent(), new AppBridgeCallbackEvent(), new VisibilityChangedByTransparentServiceWebEvent()]);
|
|
157230
156831
|
var import_es_toolkit = _$$_REQUIRE(_dependencyMap[11], "es-toolkit");
|
|
157231
156832
|
function _getOperationalEnvironment() {
|
|
157232
156833
|
return _AppsInTossModule.operationalEnvironment;
|
|
157233
156834
|
}
|
|
157234
|
-
var
|
|
156835
|
+
var import_react_native7 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
157235
156836
|
var SEMVER_REGEX = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\\-]+(?:\.[\da-z\\-]+)*))?(?:\+[\da-z\\-]+(?:\.[\da-z\\-]+)*)?)?)?$/i;
|
|
157236
156837
|
var isWildcard = function isWildcard(val) {
|
|
157237
156838
|
return ["*", "x", "X"].includes(val);
|
|
@@ -157314,7 +156915,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157314
156915
|
return true;
|
|
157315
156916
|
}
|
|
157316
156917
|
var currentVersion = _AppsInTossModule.tossAppVersion;
|
|
157317
|
-
var isIOS =
|
|
156918
|
+
var isIOS = import_react_native7.Platform.OS === "ios";
|
|
157318
156919
|
var minVersion = isIOS ? minVersions.ios : minVersions.android;
|
|
157319
156920
|
if (minVersion === void 0) {
|
|
157320
156921
|
return false;
|
|
@@ -157476,10 +157077,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157476
157077
|
showAdMobInterstitialAd.isSupported = createIsSupported();
|
|
157477
157078
|
showAdMobRewardedAd.isSupported = createIsSupported();
|
|
157478
157079
|
var import_es_toolkit2 = _$$_REQUIRE(_dependencyMap[11], "es-toolkit");
|
|
157479
|
-
var
|
|
157080
|
+
var import_react_native8 = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
157480
157081
|
function getReferrer() {
|
|
157481
157082
|
try {
|
|
157482
|
-
return new URL((0,
|
|
157083
|
+
return new URL((0, import_react_native8.getSchemeUri)()).searchParams.get("referrer");
|
|
157483
157084
|
} catch (_unused) {
|
|
157484
157085
|
return null;
|
|
157485
157086
|
}
|
|
@@ -158019,7 +157620,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158019
157620
|
removeItem: removeItem,
|
|
158020
157621
|
clearItems: clearItems
|
|
158021
157622
|
};
|
|
158022
|
-
var
|
|
157623
|
+
var import_react_native9 = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
158023
157624
|
var GAME_CENTER_MIN_VERSION = {
|
|
158024
157625
|
android: "5.221.0",
|
|
158025
157626
|
ios: "5.221.0"
|
|
@@ -158052,7 +157653,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158052
157653
|
var url = new URL("servicetoss://game-center/leaderboard?_navbar=hide");
|
|
158053
157654
|
url.searchParams.set("appName", appName);
|
|
158054
157655
|
url.searchParams.set("referrer", "appsintoss." + appName);
|
|
158055
|
-
return (0,
|
|
157656
|
+
return (0, import_react_native9.openURL)(url.toString());
|
|
158056
157657
|
});
|
|
158057
157658
|
return _openGameCenterLeaderboard2.apply(this, arguments);
|
|
158058
157659
|
}
|
|
@@ -158220,8 +157821,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158220
157821
|
function _onVisibilityChangedByTransparentServiceWeb(eventParams) {
|
|
158221
157822
|
return _appsInTossEvent.addEventListener("onVisibilityChangedByTransparentServiceWeb", eventParams);
|
|
158222
157823
|
}
|
|
158223
|
-
var
|
|
158224
|
-
var _BedrockModule =
|
|
157824
|
+
var import_react_native10 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
157825
|
+
var _BedrockModule = import_react_native10.NativeModules.BedrockModule;
|
|
158225
157826
|
function _closeView() {
|
|
158226
157827
|
return _closeView2.apply(this, arguments);
|
|
158227
157828
|
}
|
|
@@ -158231,11 +157832,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158231
157832
|
});
|
|
158232
157833
|
return _closeView2.apply(this, arguments);
|
|
158233
157834
|
}
|
|
158234
|
-
var
|
|
157835
|
+
var import_react_native11 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
158235
157836
|
function _getLocale() {
|
|
158236
157837
|
var _BedrockModule$Device, _BedrockModule$Device2;
|
|
158237
157838
|
var locale = (_BedrockModule$Device = _BedrockModule == null ? void 0 : (_BedrockModule$Device2 = _BedrockModule.DeviceInfo) == null ? void 0 : _BedrockModule$Device2.locale) != null ? _BedrockModule$Device : "ko-KR";
|
|
158238
|
-
if (
|
|
157839
|
+
if (import_react_native11.Platform.OS === "android") {
|
|
158239
157840
|
return replaceUnderbarToHypen(locale);
|
|
158240
157841
|
}
|
|
158241
157842
|
return locale;
|
|
@@ -158285,18 +157886,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158285
157886
|
});
|
|
158286
157887
|
return _setIosSwipeGestureEnabled2.apply(this, arguments);
|
|
158287
157888
|
}
|
|
158288
|
-
var
|
|
157889
|
+
var import_react_native12 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
158289
157890
|
function openURL2(url) {
|
|
158290
|
-
return
|
|
157891
|
+
return import_react_native12.Linking.openURL(url);
|
|
158291
157892
|
}
|
|
158292
|
-
var
|
|
157893
|
+
var import_react_native13 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
158293
157894
|
function _getPlatformOS() {
|
|
158294
|
-
return
|
|
157895
|
+
return import_react_native13.Platform.OS;
|
|
158295
157896
|
}
|
|
157897
|
+
var import_react_native14 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
157898
|
+
var _BedrockCoreModule = import_react_native14.NativeModules.BedrockCoreModule;
|
|
158296
157899
|
var import_react_native15 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
158297
|
-
var
|
|
158298
|
-
var import_react_native16 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
158299
|
-
var TossCoreModule = import_react_native16.NativeModules.TossCoreModule;
|
|
157900
|
+
var TossCoreModule = import_react_native15.NativeModules.TossCoreModule;
|
|
158300
157901
|
function tossCoreEventLog(params) {
|
|
158301
157902
|
var supported = _isMinVersionSupported({
|
|
158302
157903
|
ios: "5.210.0",
|
|
@@ -158370,7 +157971,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158370
157971
|
startUpdateLocation: _startUpdateLocation,
|
|
158371
157972
|
submitGameCenterLeaderBoardScore: _submitGameCenterLeaderBoardScore
|
|
158372
157973
|
});
|
|
158373
|
-
},1259,[61,207,
|
|
157974
|
+
},1259,[61,207,24,25,43,46,47,16,2,1260,18,1261],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/dist/index.cjs");
|
|
158374
157975
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
158375
157976
|
"use strict";
|
|
158376
157977
|
|
|
@@ -233279,7 +232880,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233279
232880
|
}
|
|
233280
232881
|
});
|
|
233281
232882
|
});
|
|
233282
|
-
},2612,[2613,
|
|
232883
|
+
},2612,[2613,2628,2627],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/event-bridges.ts");
|
|
233283
232884
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233284
232885
|
Object.defineProperty(exports, "__esModule", {
|
|
233285
232886
|
value: true
|
|
@@ -233292,54 +232893,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233292
232893
|
}
|
|
233293
232894
|
startUpdateLocation.openPermissionDialog = _nativeModules.getCurrentLocation.openPermissionDialog;
|
|
233294
232895
|
startUpdateLocation.getPermission = _nativeModules.getCurrentLocation.getPermission;
|
|
233295
|
-
},2613,[2614,
|
|
232896
|
+
},2613,[2614,2621],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/startUpdateLocation.ts");
|
|
233296
232897
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233297
232898
|
Object.defineProperty(exports, "__esModule", {
|
|
233298
232899
|
value: true
|
|
233299
232900
|
});
|
|
233300
232901
|
exports.appsInTossEvent = void 0;
|
|
233301
232902
|
var _reactNative = _$$_REQUIRE(_dependencyMap[0], "@granite-js/react-native");
|
|
233302
|
-
var
|
|
233303
|
-
var
|
|
233304
|
-
var
|
|
233305
|
-
var
|
|
233306
|
-
|
|
233307
|
-
},2614,[2,2615,2616,2618,2621],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/appsInTossEvent.ts");
|
|
233308
|
-
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233309
|
-
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
233310
|
-
Object.defineProperty(exports, "__esModule", {
|
|
233311
|
-
value: true
|
|
233312
|
-
});
|
|
233313
|
-
exports.EntryMessageExitedEvent = void 0;
|
|
233314
|
-
var _classCallCheck2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck"));
|
|
233315
|
-
var _createClass2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass"));
|
|
233316
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/possibleConstructorReturn"));
|
|
233317
|
-
var _getPrototypeOf2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/getPrototypeOf"));
|
|
233318
|
-
var _inherits2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/inherits"));
|
|
233319
|
-
var _reactNative = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
233320
|
-
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
233321
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
233322
|
-
var EntryMessageExitedEvent = exports.EntryMessageExitedEvent = function (_GraniteEventDefiniti) {
|
|
233323
|
-
function EntryMessageExitedEvent() {
|
|
233324
|
-
var _this;
|
|
233325
|
-
(0, _classCallCheck2.default)(this, EntryMessageExitedEvent);
|
|
233326
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
233327
|
-
args[_key] = arguments[_key];
|
|
233328
|
-
}
|
|
233329
|
-
_this = _callSuper(this, EntryMessageExitedEvent, [].concat(args));
|
|
233330
|
-
_this.name = 'entryMessageExited';
|
|
233331
|
-
return _this;
|
|
233332
|
-
}
|
|
233333
|
-
(0, _inherits2.default)(EntryMessageExitedEvent, _GraniteEventDefiniti);
|
|
233334
|
-
return (0, _createClass2.default)(EntryMessageExitedEvent, [{
|
|
233335
|
-
key: "remove",
|
|
233336
|
-
value: function remove() {}
|
|
233337
|
-
}, {
|
|
233338
|
-
key: "listener",
|
|
233339
|
-
value: function listener(_) {}
|
|
233340
|
-
}]);
|
|
233341
|
-
}(_reactNative.GraniteEventDefinition);
|
|
233342
|
-
},2615,[1,24,25,43,46,47,2],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/event-plugins/EntryMessageExitedEvent.ts");
|
|
232903
|
+
var _UpdateLocationEvent = _$$_REQUIRE(_dependencyMap[1], "./event-plugins/UpdateLocationEvent");
|
|
232904
|
+
var _AppBridgeCallbackEvent = _$$_REQUIRE(_dependencyMap[2], "./internal/AppBridgeCallbackEvent");
|
|
232905
|
+
var _VisibilityChangedByTransparentServiceWebEvent = _$$_REQUIRE(_dependencyMap[3], "./internal/VisibilityChangedByTransparentServiceWebEvent");
|
|
232906
|
+
var appsInTossEvent = exports.appsInTossEvent = new _reactNative.GraniteEvent([new _UpdateLocationEvent.UpdateLocationEvent(), new _AppBridgeCallbackEvent.AppBridgeCallbackEvent(), new _VisibilityChangedByTransparentServiceWebEvent.VisibilityChangedByTransparentServiceWebEvent()]);
|
|
232907
|
+
},2614,[2,2615,2617,2620],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/appsInTossEvent.ts");
|
|
233343
232908
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233344
232909
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
233345
232910
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -233406,7 +232971,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233406
232971
|
}
|
|
233407
232972
|
}]);
|
|
233408
232973
|
}(_reactNative.GraniteEventDefinition);
|
|
233409
|
-
},
|
|
232974
|
+
},2615,[1,24,25,43,46,47,1260,2,2579,2580,2616],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/event-plugins/UpdateLocationEvent.ts");
|
|
233410
232975
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233411
232976
|
Object.defineProperty(exports, "__esModule", {
|
|
233412
232977
|
value: true
|
|
@@ -233415,7 +232980,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233415
232980
|
var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native");
|
|
233416
232981
|
var _AppsInTossModule = _$$_REQUIRE(_dependencyMap[1], "../native-modules/AppsInTossModule");
|
|
233417
232982
|
var nativeEventEmitter = exports.nativeEventEmitter = new _reactNative.NativeEventEmitter(_AppsInTossModule.AppsInTossModuleInstance);
|
|
233418
|
-
},
|
|
232983
|
+
},2616,[18,2579],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/nativeEventEmitter.ts");
|
|
233419
232984
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233420
232985
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
233421
232986
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -233468,7 +233033,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233468
233033
|
}
|
|
233469
233034
|
}]);
|
|
233470
233035
|
}(_reactNative.GraniteEventDefinition);
|
|
233471
|
-
},
|
|
233036
|
+
},2617,[1,24,25,43,46,47,2,2618,2616],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/internal/AppBridgeCallbackEvent.ts");
|
|
233472
233037
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233473
233038
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
233474
233039
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -233545,7 +233110,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233545
233110
|
unregisterCallback: unregisterCallback,
|
|
233546
233111
|
getCallbackIds: getCallbackIds
|
|
233547
233112
|
};
|
|
233548
|
-
},
|
|
233113
|
+
},2618,[1,61,207,2619,2579],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/internal/appBridge.ts");
|
|
233549
233114
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233550
233115
|
Object.defineProperty(exports, "__esModule", {
|
|
233551
233116
|
value: true
|
|
@@ -233554,7 +233119,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233554
233119
|
function generateUUID(placeholder) {
|
|
233555
233120
|
return placeholder ? (placeholder ^ Math.random() * 16 >> placeholder / 4).toString(16) : (String(1e7) + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, generateUUID);
|
|
233556
233121
|
}
|
|
233557
|
-
},
|
|
233122
|
+
},2619,[],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/utils/generateUUID.ts");
|
|
233558
233123
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233559
233124
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
233560
233125
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -233612,7 +233177,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233612
233177
|
}
|
|
233613
233178
|
}]);
|
|
233614
233179
|
}(_reactNative.GraniteEventDefinition);
|
|
233615
|
-
},
|
|
233180
|
+
},2620,[1,24,25,43,46,47,2,2616],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/internal/VisibilityChangedByTransparentServiceWebEvent.ts");
|
|
233616
233181
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233617
233182
|
Object.defineProperty(exports, "__esModule", {
|
|
233618
233183
|
value: true
|
|
@@ -233952,7 +233517,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233952
233517
|
loadAppsInTossAdMob: _googleAdMobV.loadAppsInTossAdMob,
|
|
233953
233518
|
showAppsInTossAdMob: _googleAdMobV.showAppsInTossAdMob
|
|
233954
233519
|
};
|
|
233955
|
-
},2622,
|
|
233520
|
+
},2621,[2622,2623,2595,2579,2589,2590,2586,2585,2584,2587,2582,2588,2611,2609,2610,2593,2625,2591,2596,2594,2626,2600,2598,2601,2602,2604,2603,2627,2597],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/index.ts");
|
|
233956
233521
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233957
233522
|
Object.defineProperty(exports, "__esModule", {
|
|
233958
233523
|
value: true
|
|
@@ -234113,7 +233678,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234113
233678
|
loadAdMobRewardedAd.isSupported = createIsSupported();
|
|
234114
233679
|
showAdMobInterstitialAd.isSupported = createIsSupported();
|
|
234115
233680
|
showAdMobRewardedAd.isSupported = createIsSupported();
|
|
234116
|
-
},
|
|
233681
|
+
},2622,[1261,2618,2609,2591],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/ads/googleAdMob.ts");
|
|
234117
233682
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234118
233683
|
Object.defineProperty(exports, "__esModule", {
|
|
234119
233684
|
value: true
|
|
@@ -234216,7 +233781,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234216
233781
|
}
|
|
234217
233782
|
loadAppsInTossAdMob.isSupported = createIsSupported();
|
|
234218
233783
|
showAppsInTossAdMob.isSupported = createIsSupported();
|
|
234219
|
-
},
|
|
233784
|
+
},2623,[1261,2624,2618,2609,2591],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/ads/googleAdMobV2.ts");
|
|
234220
233785
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234221
233786
|
Object.defineProperty(exports, "__esModule", {
|
|
234222
233787
|
value: true
|
|
@@ -234230,7 +233795,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234230
233795
|
return null;
|
|
234231
233796
|
}
|
|
234232
233797
|
}
|
|
234233
|
-
},
|
|
233798
|
+
},2624,[2],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/utils/getReferrer.ts");
|
|
234234
233799
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234235
233800
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
234236
233801
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -234425,7 +233990,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234425
233990
|
getCompletedOrRefundedOrders: getCompletedOrRefundedOrders,
|
|
234426
233991
|
completeProductGrant: completeProductGrant
|
|
234427
233992
|
};
|
|
234428
|
-
},
|
|
233993
|
+
},2625,[1,16,1261,2579,2591,2618],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/iap.ts");
|
|
234429
233994
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234430
233995
|
Object.defineProperty(exports, "__esModule", {
|
|
234431
233996
|
value: true
|
|
@@ -234457,7 +234022,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234457
234022
|
removeItem: removeItem,
|
|
234458
234023
|
clearItems: clearItems
|
|
234459
234024
|
};
|
|
234460
|
-
},
|
|
234025
|
+
},2626,[2579],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/storage.ts");
|
|
234461
234026
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234462
234027
|
Object.defineProperty(exports, "__esModule", {
|
|
234463
234028
|
value: true
|
|
@@ -234493,7 +234058,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234493
234058
|
});
|
|
234494
234059
|
return unregisterCallbacks;
|
|
234495
234060
|
}
|
|
234496
|
-
},
|
|
234061
|
+
},2627,[2618,2591],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/contactsViral.ts");
|
|
234497
234062
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234498
234063
|
Object.defineProperty(exports, "__esModule", {
|
|
234499
234064
|
value: true
|
|
@@ -234503,7 +234068,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234503
234068
|
function onVisibilityChangedByTransparentServiceWeb(eventParams) {
|
|
234504
234069
|
return _appsInTossEvent.appsInTossEvent.addEventListener('onVisibilityChangedByTransparentServiceWeb', eventParams);
|
|
234505
234070
|
}
|
|
234506
|
-
},
|
|
234071
|
+
},2628,[2614],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/internal/onVisibilityChangedByTransparentServiceWeb.ts");
|
|
234507
234072
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234508
234073
|
Object.defineProperty(exports, "__esModule", {
|
|
234509
234074
|
value: true
|
|
@@ -234518,7 +234083,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234518
234083
|
context.keys = function () {
|
|
234519
234084
|
return Array.from(files.keys());
|
|
234520
234085
|
};
|
|
234521
|
-
},2630,
|
|
234086
|
+
},2629,[2630,2631],"react-native/context.ts");
|
|
234522
234087
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234523
234088
|
Object.defineProperty(exports, "__esModule", {
|
|
234524
234089
|
value: true
|
|
@@ -234551,7 +234116,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234551
234116
|
})
|
|
234552
234117
|
});
|
|
234553
234118
|
}
|
|
234554
|
-
},
|
|
234119
|
+
},2630,[1256,18,9],"react-native/pages/index.tsx");
|
|
234555
234120
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234556
234121
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
234557
234122
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -234564,6 +234129,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234564
234129
|
}
|
|
234565
234130
|
});
|
|
234566
234131
|
var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./index"));
|
|
234567
|
-
},
|
|
234132
|
+
},2631,[1,2630],"react-native/pages/_404.tsx");
|
|
234568
234133
|
__r(134);
|
|
234569
234134
|
__r(0);
|