@apps-in-toss/web-framework 0.0.0-dev.1764816865438 → 0.0.0-dev.1765876894045
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/prebuilt/dev.android.js +508 -615
- package/dist/prebuilt/dev.ios.js +508 -615
- package/dist/prebuilt/prod.android.js +876 -1535
- package/dist/prebuilt/prod.ios.js +876 -1535
- 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
|
|
|
@@ -153234,9 +153234,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153234
153234
|
module.exports = __toCommonJS(src_exports);
|
|
153235
153235
|
var import_analytics2 = _$$_REQUIRE(_dependencyMap[7], "@apps-in-toss/analytics");
|
|
153236
153236
|
var import_analytics = _$$_REQUIRE(_dependencyMap[7], "@apps-in-toss/analytics");
|
|
153237
|
-
var
|
|
153237
|
+
var import_native_modules13 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153238
153238
|
var import_react_native23 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153239
|
-
var
|
|
153239
|
+
var import_tds_react_native10 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153240
153240
|
var import_react_native24 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
153241
153241
|
var import_native_modules2 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153242
153242
|
var import_react_native4 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
@@ -153416,52 +153416,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153416
153416
|
}
|
|
153417
153417
|
return context;
|
|
153418
153418
|
}
|
|
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");
|
|
153419
|
+
var import_native_modules12 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153420
|
+
var import_react17 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153449
153421
|
var import_react_native22 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
153450
|
-
var
|
|
153422
|
+
var import_native_modules6 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153451
153423
|
var import_react_native10 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153452
|
-
var
|
|
153424
|
+
var import_tds_react_native4 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153453
153425
|
var import_es_hangul = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
153454
|
-
var
|
|
153426
|
+
var import_react11 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153455
153427
|
var import_react_native11 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
153456
153428
|
var GAME_PROFILE_WEBVIEW_URL = "servicetoss://game-center/profile";
|
|
153457
153429
|
var GAME_MIN_VERSION = {
|
|
153458
153430
|
android: "5.232.0",
|
|
153459
153431
|
ios: "5.232.0"
|
|
153460
153432
|
};
|
|
153461
|
-
var
|
|
153433
|
+
var import_native_modules3 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153462
153434
|
var import_react_native7 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153463
|
-
var
|
|
153464
|
-
var
|
|
153435
|
+
var import_tds_react_native = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153436
|
+
var import_react6 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153465
153437
|
var import_react_native6 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
153466
153438
|
var PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
|
|
153467
153439
|
var APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
|
|
@@ -153469,10 +153441,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153469
153441
|
return import_react_native6.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
|
|
153470
153442
|
};
|
|
153471
153443
|
function useAppUpdateDialog() {
|
|
153472
|
-
var _ref5 = (0,
|
|
153444
|
+
var _ref5 = (0, import_tds_react_native.useDialog)(),
|
|
153473
153445
|
openConfirm = _ref5.openConfirm;
|
|
153474
153446
|
var logging = useAppUpdateDialogLogging();
|
|
153475
|
-
var openAppUpdateDialog = (0,
|
|
153447
|
+
var openAppUpdateDialog = (0, import_react6.useCallback)(function () {
|
|
153476
153448
|
var _ref7 = _asyncToGenerator(function* (_ref6) {
|
|
153477
153449
|
var title = _ref6.title,
|
|
153478
153450
|
description = _ref6.description,
|
|
@@ -153517,7 +153489,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153517
153489
|
app_name: import_react_native7.Granite.appName
|
|
153518
153490
|
};
|
|
153519
153491
|
var logUpdateClick = function logUpdateClick() {
|
|
153520
|
-
|
|
153492
|
+
import_native_modules3.INTERNAL__module.tossCoreEventLog({
|
|
153521
153493
|
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
153522
153494
|
log_type: "event",
|
|
153523
153495
|
params: Object.assign({}, baseParams, {
|
|
@@ -153528,7 +153500,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153528
153500
|
});
|
|
153529
153501
|
};
|
|
153530
153502
|
var logCloseClick = function logCloseClick() {
|
|
153531
|
-
|
|
153503
|
+
import_native_modules3.INTERNAL__module.tossCoreEventLog({
|
|
153532
153504
|
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
153533
153505
|
log_type: "event",
|
|
153534
153506
|
params: Object.assign({}, baseParams, {
|
|
@@ -153539,7 +153511,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153539
153511
|
});
|
|
153540
153512
|
};
|
|
153541
153513
|
var logDialogShow = function logDialogShow() {
|
|
153542
|
-
|
|
153514
|
+
import_native_modules3.INTERNAL__module.tossCoreEventLog({
|
|
153543
153515
|
log_name: UPDATE_DIALOG_LOG_NAME,
|
|
153544
153516
|
log_type: "popup",
|
|
153545
153517
|
params: Object.assign({}, baseParams, {
|
|
@@ -153553,19 +153525,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153553
153525
|
show: logDialogShow
|
|
153554
153526
|
};
|
|
153555
153527
|
}
|
|
153556
|
-
var
|
|
153557
|
-
var
|
|
153528
|
+
var import_native_modules5 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153529
|
+
var import_react10 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153558
153530
|
var import_react_native8 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153559
|
-
var
|
|
153560
|
-
var
|
|
153531
|
+
var import_tds_react_native2 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153532
|
+
var import_react7 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153561
153533
|
var DEFAULT_ERROR = {
|
|
153562
153534
|
title: "\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",
|
|
153563
153535
|
description: "\uBB38\uC81C\uAC00 \uACC4\uC18D\uB418\uBA74 \uD1A0\uC2A4 \uACE0\uAC1D\uC13C\uD130(1599-4905)\uB85C \uBB38\uC758\uD574\uC8FC\uC138\uC694."
|
|
153564
153536
|
};
|
|
153565
153537
|
var useErrorAlert = function useErrorAlert() {
|
|
153566
|
-
var _ref8 = (0,
|
|
153538
|
+
var _ref8 = (0, import_tds_react_native2.useDialog)(),
|
|
153567
153539
|
openAlert = _ref8.openAlert;
|
|
153568
|
-
var openErrorAlert = (0,
|
|
153540
|
+
var openErrorAlert = (0, import_react7.useCallback)(_asyncToGenerator(function* () {
|
|
153569
153541
|
yield openAlert({
|
|
153570
153542
|
title: DEFAULT_ERROR.title,
|
|
153571
153543
|
description: DEFAULT_ERROR.description
|
|
@@ -153576,10 +153548,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153576
153548
|
open: openErrorAlert
|
|
153577
153549
|
};
|
|
153578
153550
|
};
|
|
153579
|
-
var
|
|
153551
|
+
var import_react8 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153580
153552
|
var import_react_native9 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153581
|
-
var
|
|
153582
|
-
var _INTERNAL__onVisibilityChangedByTransparentServiceWeb =
|
|
153553
|
+
var import_native_modules4 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153554
|
+
var _INTERNAL__onVisibilityChangedByTransparentServiceWeb = import_native_modules4.onVisibilityChangedByTransparentServiceWeb;
|
|
153583
153555
|
var openTransparentWebView = function openTransparentWebView(_ref10) {
|
|
153584
153556
|
var webUrl = _ref10.webUrl,
|
|
153585
153557
|
_ref10$cleanupWhenDis = _ref10.cleanupWhenDismissed,
|
|
@@ -153616,13 +153588,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153616
153588
|
(0, import_react_native9.openURL)(url.toString());
|
|
153617
153589
|
};
|
|
153618
153590
|
var useTransparentWebview = function useTransparentWebview() {
|
|
153619
|
-
var _ref13 = (0,
|
|
153591
|
+
var _ref13 = (0, import_react8.useState)(false),
|
|
153620
153592
|
_ref14 = _slicedToArray(_ref13, 2),
|
|
153621
153593
|
isWebviewLoading = _ref14[0],
|
|
153622
153594
|
setIsWebviewLoading = _ref14[1];
|
|
153623
153595
|
var _useErrorAlert = useErrorAlert(),
|
|
153624
153596
|
openErrorAlert = _useErrorAlert.open;
|
|
153625
|
-
var _openTransparentWebview = (0,
|
|
153597
|
+
var _openTransparentWebview = (0, import_react8.useCallback)(function (_ref15) {
|
|
153626
153598
|
var webUrl = _ref15.webUrl,
|
|
153627
153599
|
onClose = _ref15.onClose,
|
|
153628
153600
|
_onError2 = _ref15.onError;
|
|
@@ -153658,13 +153630,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153658
153630
|
open: _openTransparentWebview
|
|
153659
153631
|
};
|
|
153660
153632
|
};
|
|
153661
|
-
var
|
|
153633
|
+
var import_tds_react_native3 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153662
153634
|
var import_private2 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
153663
|
-
var
|
|
153635
|
+
var import_react9 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153664
153636
|
var import_jsx_runtime3 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
153665
153637
|
var useGameProfileToast = function useGameProfileToast() {
|
|
153666
153638
|
var overlay = (0, import_private2.useOverlay)();
|
|
153667
|
-
var openGameProfileToast = (0,
|
|
153639
|
+
var openGameProfileToast = (0, import_react9.useCallback)(function (nickname, profileImageUri) {
|
|
153668
153640
|
return new Promise(function (resolve) {
|
|
153669
153641
|
overlay.open(function (_ref16) {
|
|
153670
153642
|
var isOpen = _ref16.isOpen,
|
|
@@ -153673,7 +153645,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153673
153645
|
return (0, import_jsx_runtime3.jsx)(import_private2.ColorPreferenceProvider, {
|
|
153674
153646
|
colorPreference: "dark",
|
|
153675
153647
|
children: (0, import_jsx_runtime3.jsx)(import_private2.AdaptiveColorProvider, {
|
|
153676
|
-
children: (0, import_jsx_runtime3.jsx)(
|
|
153648
|
+
children: (0, import_jsx_runtime3.jsx)(import_tds_react_native3.Toast, {
|
|
153677
153649
|
open: isOpen,
|
|
153678
153650
|
onClose: function onClose() {
|
|
153679
153651
|
resolve();
|
|
@@ -153682,12 +153654,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153682
153654
|
onExited: exit,
|
|
153683
153655
|
position: "top",
|
|
153684
153656
|
text: nickname + "\uB2D8 \uBC18\uAC00\uC6CC\uC694!",
|
|
153685
|
-
icon: (0, import_jsx_runtime3.jsx)(
|
|
153657
|
+
icon: (0, import_jsx_runtime3.jsx)(import_tds_react_native3.Asset.Image, {
|
|
153686
153658
|
style: {
|
|
153687
153659
|
borderRadius: 64,
|
|
153688
153660
|
overflow: "hidden"
|
|
153689
153661
|
},
|
|
153690
|
-
frameShape:
|
|
153662
|
+
frameShape: import_tds_react_native3.Asset.frameShape.CleanW32,
|
|
153691
153663
|
source: {
|
|
153692
153664
|
uri: profileImageUri
|
|
153693
153665
|
}
|
|
@@ -153702,31 +153674,31 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153702
153674
|
openGameProfileToast: openGameProfileToast
|
|
153703
153675
|
};
|
|
153704
153676
|
};
|
|
153705
|
-
var useGameCenterProfile = function useGameCenterProfile(
|
|
153706
|
-
var _ref17 = (0,
|
|
153677
|
+
var useGameCenterProfile = function useGameCenterProfile() {
|
|
153678
|
+
var _ref17 = (0, import_react10.useState)(void 0),
|
|
153707
153679
|
_ref18 = _slicedToArray(_ref17, 2),
|
|
153708
153680
|
profileData = _ref18[0],
|
|
153709
153681
|
setProfileData = _ref18[1];
|
|
153710
|
-
var _ref19 = (0,
|
|
153682
|
+
var _ref19 = (0, import_react10.useState)(true),
|
|
153711
153683
|
_ref20 = _slicedToArray(_ref19, 2),
|
|
153712
153684
|
isProfileDataLoading = _ref20[0],
|
|
153713
153685
|
setIsProfileDataLoading = _ref20[1];
|
|
153714
|
-
var _ref21 = (0,
|
|
153686
|
+
var _ref21 = (0, import_react10.useState)(false),
|
|
153715
153687
|
_ref22 = _slicedToArray(_ref21, 2),
|
|
153716
153688
|
isProfileDataRefetching = _ref22[0],
|
|
153717
153689
|
setIsProfileDataRefetching = _ref22[1];
|
|
153718
|
-
var shouldShowProfileLoadingOverlay = isProfileDataLoading
|
|
153719
|
-
var shouldShowProfileNotFoundOverlay = (profileData == null ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" &&
|
|
153720
|
-
var canShowBottomSheetOrToast = !isProfileDataLoading
|
|
153690
|
+
var shouldShowProfileLoadingOverlay = isProfileDataLoading || isProfileDataRefetching;
|
|
153691
|
+
var shouldShowProfileNotFoundOverlay = (profileData == null ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && !isProfileDataRefetching;
|
|
153692
|
+
var canShowBottomSheetOrToast = !isProfileDataLoading;
|
|
153721
153693
|
var _useGameProfileToast = useGameProfileToast(),
|
|
153722
153694
|
openGameProfileToast = _useGameProfileToast.openGameProfileToast;
|
|
153723
153695
|
var _useErrorAlert2 = useErrorAlert(),
|
|
153724
153696
|
openErrorAlert = _useErrorAlert2.open;
|
|
153725
153697
|
var _useTransparentWebvie = useTransparentWebview(),
|
|
153726
153698
|
openTransparentWebView2 = _useTransparentWebvie.open;
|
|
153727
|
-
var fetchProfileData = (0,
|
|
153699
|
+
var fetchProfileData = (0, import_react10.useCallback)(_asyncToGenerator(function* () {
|
|
153728
153700
|
try {
|
|
153729
|
-
var data = yield (0,
|
|
153701
|
+
var data = yield (0, import_native_modules5.getGameCenterGameProfile)();
|
|
153730
153702
|
setProfileData(data);
|
|
153731
153703
|
setIsProfileDataLoading(false);
|
|
153732
153704
|
} catch (_) {
|
|
@@ -153734,10 +153706,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153734
153706
|
setIsProfileDataLoading(false);
|
|
153735
153707
|
}
|
|
153736
153708
|
}), [openErrorAlert]);
|
|
153737
|
-
var refetchProfileData = (0,
|
|
153709
|
+
var refetchProfileData = (0, import_react10.useCallback)(_asyncToGenerator(function* () {
|
|
153738
153710
|
try {
|
|
153739
153711
|
setIsProfileDataRefetching(true);
|
|
153740
|
-
var data = yield (0,
|
|
153712
|
+
var data = yield (0, import_native_modules5.getGameCenterGameProfile)();
|
|
153741
153713
|
setProfileData(data);
|
|
153742
153714
|
setIsProfileDataRefetching(false);
|
|
153743
153715
|
if ((data == null ? void 0 : data.statusCode) === "SUCCESS") {
|
|
@@ -153748,7 +153720,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153748
153720
|
openErrorAlert();
|
|
153749
153721
|
}
|
|
153750
153722
|
}), [openErrorAlert, openGameProfileToast]);
|
|
153751
|
-
var openProfileWebview = (0,
|
|
153723
|
+
var openProfileWebview = (0, import_react10.useCallback)(function () {
|
|
153752
153724
|
openTransparentWebView2({
|
|
153753
153725
|
webUrl: GAME_PROFILE_WEBVIEW_URL + "?appName=" + getAppName() + "&referrer=appsintoss." + getAppName(),
|
|
153754
153726
|
onClose: function () {
|
|
@@ -153782,9 +153754,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153782
153754
|
};
|
|
153783
153755
|
var import_jsx_runtime4 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
153784
153756
|
var GameInitializer = function GameInitializer(_ref25) {
|
|
153785
|
-
var children = _ref25.children
|
|
153786
|
-
|
|
153787
|
-
var _useGameCenterProfile = useGameCenterProfile(isReadyForProfileUI),
|
|
153757
|
+
var children = _ref25.children;
|
|
153758
|
+
var _useGameCenterProfile = useGameCenterProfile(),
|
|
153788
153759
|
profileData = _useGameCenterProfile.profileData,
|
|
153789
153760
|
shouldShowProfileLoadingOverlay = _useGameCenterProfile.shouldShowProfileLoadingOverlay,
|
|
153790
153761
|
shouldShowProfileNotFoundOverlay = _useGameCenterProfile.shouldShowProfileNotFoundOverlay,
|
|
@@ -153792,13 +153763,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153792
153763
|
openProfileWebview = _useGameCenterProfile.openProfileWebview,
|
|
153793
153764
|
openGameProfileToast = _useGameCenterProfile.openGameProfileToast,
|
|
153794
153765
|
fetchProfileData = _useGameCenterProfile.fetchProfileData;
|
|
153795
|
-
var isCompletedFlow = (0,
|
|
153766
|
+
var isCompletedFlow = (0, import_react11.useRef)(false);
|
|
153796
153767
|
var _useAppUpdateDialog = useAppUpdateDialog(),
|
|
153797
153768
|
openAppUpdateDialog = _useAppUpdateDialog.open;
|
|
153798
|
-
(0,
|
|
153769
|
+
(0, import_react11.useEffect)(function () {
|
|
153799
153770
|
fetchProfileData();
|
|
153800
153771
|
}, []);
|
|
153801
|
-
(0,
|
|
153772
|
+
(0, import_react11.useEffect)(function () {
|
|
153802
153773
|
var handleGameProfileFlow = function () {
|
|
153803
153774
|
var _ref26 = _asyncToGenerator(function* () {
|
|
153804
153775
|
if (!canShowBottomSheetOrToast) {
|
|
@@ -153808,7 +153779,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153808
153779
|
return;
|
|
153809
153780
|
}
|
|
153810
153781
|
isCompletedFlow.current = true;
|
|
153811
|
-
if (!(0,
|
|
153782
|
+
if (!(0, import_native_modules6.isMinVersionSupported)(GAME_MIN_VERSION)) {
|
|
153812
153783
|
openAppUpdateDialog({
|
|
153813
153784
|
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
153785
|
onDismiss: function onDismiss() {
|
|
@@ -153831,7 +153802,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153831
153802
|
}();
|
|
153832
153803
|
handleGameProfileFlow();
|
|
153833
153804
|
}, [canShowBottomSheetOrToast, isCompletedFlow, openAppUpdateDialog, openGameProfileToast, openProfileWebview, profileData]);
|
|
153834
|
-
if (!(0,
|
|
153805
|
+
if (!(0, import_native_modules6.isMinVersionSupported)(GAME_MIN_VERSION)) {
|
|
153835
153806
|
return (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, {
|
|
153836
153807
|
children: [(0, import_jsx_runtime4.jsx)(import_react_native11.View, {
|
|
153837
153808
|
style: {
|
|
@@ -153866,7 +153837,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153866
153837
|
alignItems: "center",
|
|
153867
153838
|
backgroundColor: "rgba(0, 0, 0, 0.2)"
|
|
153868
153839
|
}),
|
|
153869
|
-
children: (0, import_jsx_runtime4.jsx)(
|
|
153840
|
+
children: (0, import_jsx_runtime4.jsx)(import_tds_react_native4.Loader, {
|
|
153870
153841
|
size: "large",
|
|
153871
153842
|
type: "light"
|
|
153872
153843
|
})
|
|
@@ -153908,10 +153879,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153908
153879
|
zIndex: Z_INDEX.PROFILE_OVERLAY
|
|
153909
153880
|
};
|
|
153910
153881
|
var import_private5 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
153911
|
-
var
|
|
153882
|
+
var import_react12 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153912
153883
|
var import_react_native12 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
153913
153884
|
function useHardwareBackPress(handler) {
|
|
153914
|
-
(0,
|
|
153885
|
+
(0, import_react12.useEffect)(function () {
|
|
153915
153886
|
var handleBackPress = function handleBackPress() {
|
|
153916
153887
|
handler();
|
|
153917
153888
|
return true;
|
|
@@ -153923,16 +153894,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153923
153894
|
}, [handler]);
|
|
153924
153895
|
}
|
|
153925
153896
|
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
153897
|
var import_react14 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153898
|
+
var import_tds_react_native5 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153899
|
+
var import_es_hangul2 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
153900
|
+
var import_react13 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153930
153901
|
function useCloseConfirm() {
|
|
153931
153902
|
var _getAppsInTossGlobals = getAppsInTossGlobals(),
|
|
153932
153903
|
brandDisplayName = _getAppsInTossGlobals.brandDisplayName;
|
|
153933
|
-
var _ref27 = (0,
|
|
153904
|
+
var _ref27 = (0, import_tds_react_native5.useDialog)(),
|
|
153934
153905
|
openConfirm = _ref27.openConfirm;
|
|
153935
|
-
return (0,
|
|
153906
|
+
return (0, import_react13.useCallback)(function () {
|
|
153936
153907
|
var _ref29 = _asyncToGenerator(function* (_ref28) {
|
|
153937
153908
|
var onEntered = _ref28.onEntered;
|
|
153938
153909
|
return yield openConfirm({
|
|
@@ -153948,7 +153919,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153948
153919
|
};
|
|
153949
153920
|
}(), [brandDisplayName, openConfirm]);
|
|
153950
153921
|
}
|
|
153951
|
-
var
|
|
153922
|
+
var import_native_modules7 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153952
153923
|
var import_react_native13 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153953
153924
|
var NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
153954
153925
|
var NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
@@ -153967,7 +153938,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153967
153938
|
app_name: import_react_native13.Granite.appName
|
|
153968
153939
|
};
|
|
153969
153940
|
var logNavBarImpression = function logNavBarImpression(naviBarConfig) {
|
|
153970
|
-
|
|
153941
|
+
import_native_modules7.INTERNAL__module.tossCoreEventLog({
|
|
153971
153942
|
log_name: NAVI_BAR_IMPRESSION_LOG_NAME,
|
|
153972
153943
|
log_type: "event",
|
|
153973
153944
|
params: Object.assign({}, naviBarConfig, baseParams, {
|
|
@@ -153977,7 +153948,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153977
153948
|
});
|
|
153978
153949
|
};
|
|
153979
153950
|
var logHomeButtonClick = function logHomeButtonClick() {
|
|
153980
|
-
|
|
153951
|
+
import_native_modules7.INTERNAL__module.tossCoreEventLog({
|
|
153981
153952
|
log_name: HOME_BUTTON_CLICK_LOG_NAME,
|
|
153982
153953
|
log_type: "event",
|
|
153983
153954
|
params: Object.assign({}, baseParams, {
|
|
@@ -153987,7 +153958,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153987
153958
|
});
|
|
153988
153959
|
};
|
|
153989
153960
|
var logCloseButtonClick = function logCloseButtonClick() {
|
|
153990
|
-
|
|
153961
|
+
import_native_modules7.INTERNAL__module.tossCoreEventLog({
|
|
153991
153962
|
log_name: CLOSE_BUTTON_CLICK_LOG_NAME,
|
|
153992
153963
|
log_type: "event",
|
|
153993
153964
|
params: Object.assign({}, baseParams, {
|
|
@@ -153997,7 +153968,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153997
153968
|
});
|
|
153998
153969
|
};
|
|
153999
153970
|
var logClosePopupShow = function logClosePopupShow() {
|
|
154000
|
-
|
|
153971
|
+
import_native_modules7.INTERNAL__module.tossCoreEventLog({
|
|
154001
153972
|
log_name: CLOSE_POPUP_SHOW_LOG_NAME,
|
|
154002
153973
|
log_type: "popup",
|
|
154003
153974
|
params: Object.assign({}, baseParams, {
|
|
@@ -154006,7 +153977,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154006
153977
|
});
|
|
154007
153978
|
};
|
|
154008
153979
|
var logClosePopupCtaClick = function logClosePopupCtaClick(confirm) {
|
|
154009
|
-
|
|
153980
|
+
import_native_modules7.INTERNAL__module.tossCoreEventLog({
|
|
154010
153981
|
log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
|
|
154011
153982
|
log_type: "event",
|
|
154012
153983
|
params: Object.assign({}, baseParams, {
|
|
@@ -154031,7 +154002,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154031
154002
|
var closeConfirm = useCloseConfirm();
|
|
154032
154003
|
var _useCaptureExitLog2 = useCaptureExitLog(),
|
|
154033
154004
|
captureExitLog = _useCaptureExitLog2.captureExitLog;
|
|
154034
|
-
return (0,
|
|
154005
|
+
return (0, import_react14.useMemo)(function () {
|
|
154035
154006
|
var close = function () {
|
|
154036
154007
|
var _ref30 = _asyncToGenerator(function* () {
|
|
154037
154008
|
var hasConfirmed = yield closeConfirm({
|
|
@@ -154068,19 +154039,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154068
154039
|
};
|
|
154069
154040
|
}, [backEventContext, navigation, closeConfirm, logging, captureExitLog]);
|
|
154070
154041
|
}
|
|
154071
|
-
var
|
|
154042
|
+
var import_native_modules11 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154072
154043
|
var import_react_native20 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154073
|
-
var
|
|
154044
|
+
var import_tds_react_native8 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154074
154045
|
var import_private4 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154075
|
-
var
|
|
154076
|
-
var
|
|
154046
|
+
var import_react15 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154047
|
+
var import_native_modules9 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154077
154048
|
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
154049
|
var import_tds_react_native7 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154050
|
+
var import_react_native18 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154051
|
+
var import_tds_react_native6 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154081
154052
|
var import_private3 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154082
154053
|
var import_react_native16 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154083
|
-
var
|
|
154054
|
+
var import_native_modules8 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154084
154055
|
var import_react_native15 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154085
154056
|
var BOTTOM_SHEET_SCHEMA_ID = 1596825;
|
|
154086
154057
|
var BOTTOM_SHEET_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more";
|
|
@@ -154097,7 +154068,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154097
154068
|
app_name: import_react_native15.Granite.appName
|
|
154098
154069
|
};
|
|
154099
154070
|
var logBottomSheetShow = function logBottomSheetShow() {
|
|
154100
|
-
|
|
154071
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
154101
154072
|
log_name: BOTTOM_SHEET_LOG_NAME,
|
|
154102
154073
|
log_type: "popup",
|
|
154103
154074
|
params: Object.assign({}, baseParams, {
|
|
@@ -154106,7 +154077,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154106
154077
|
});
|
|
154107
154078
|
};
|
|
154108
154079
|
var logBottomSheetOpen = function logBottomSheetOpen() {
|
|
154109
|
-
|
|
154080
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
154110
154081
|
log_name: BOTTOM_SHEET_OPEN_LOG_NAME,
|
|
154111
154082
|
log_type: "event",
|
|
154112
154083
|
params: Object.assign({}, baseParams, {
|
|
@@ -154116,7 +154087,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154116
154087
|
});
|
|
154117
154088
|
};
|
|
154118
154089
|
var logBottomSheetCloseClick = function logBottomSheetCloseClick() {
|
|
154119
|
-
|
|
154090
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
154120
154091
|
log_name: BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME,
|
|
154121
154092
|
log_type: "event",
|
|
154122
154093
|
params: Object.assign({}, baseParams, {
|
|
@@ -154127,7 +154098,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154127
154098
|
};
|
|
154128
154099
|
var logBottomSheetMenuClick = function logBottomSheetMenuClick(_ref31) {
|
|
154129
154100
|
var title = _ref31.title;
|
|
154130
|
-
|
|
154101
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
154131
154102
|
log_name: BOTTOM_SHEET_MENU_CLICK_LOG_NAME,
|
|
154132
154103
|
log_type: "event",
|
|
154133
154104
|
params: Object.assign({}, baseParams, {
|
|
@@ -154155,7 +154126,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154155
154126
|
var logging = useMoreButtonBottomSheetLogging();
|
|
154156
154127
|
var brandPrimaryColorRGB = hexToRGB(globals.brandPrimaryColor);
|
|
154157
154128
|
var iconBackgroundColor = brandPrimaryColorRGB ? "rgba(" + brandPrimaryColorRGB.join(",") + ",0.1)" : adaptive.grey100;
|
|
154158
|
-
return (0, import_jsx_runtime5.jsx)(
|
|
154129
|
+
return (0, import_jsx_runtime5.jsx)(import_tds_react_native6.ListRow, {
|
|
154159
154130
|
left: (0, import_jsx_runtime5.jsx)(import_react_native16.View, {
|
|
154160
154131
|
style: {
|
|
154161
154132
|
width: 30,
|
|
@@ -154167,14 +154138,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154167
154138
|
marginRight: 16,
|
|
154168
154139
|
backgroundColor: iconBackgroundColor
|
|
154169
154140
|
},
|
|
154170
|
-
children: iconName ? (0, import_jsx_runtime5.jsx)(
|
|
154141
|
+
children: iconName ? (0, import_jsx_runtime5.jsx)(import_tds_react_native6.Asset.Icon, {
|
|
154171
154142
|
frameShape: {
|
|
154172
154143
|
width: 20,
|
|
154173
154144
|
height: 20
|
|
154174
154145
|
},
|
|
154175
154146
|
color: globals.brandPrimaryColor,
|
|
154176
154147
|
name: iconName
|
|
154177
|
-
}) : (0, import_jsx_runtime5.jsx)(
|
|
154148
|
+
}) : (0, import_jsx_runtime5.jsx)(import_tds_react_native6.Asset.Image, {
|
|
154178
154149
|
frameShape: {
|
|
154179
154150
|
width: 20,
|
|
154180
154151
|
height: 20
|
|
@@ -154184,7 +154155,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154184
154155
|
}
|
|
154185
154156
|
})
|
|
154186
154157
|
}),
|
|
154187
|
-
contents: (0, import_jsx_runtime5.jsx)(
|
|
154158
|
+
contents: (0, import_jsx_runtime5.jsx)(import_tds_react_native6.ListRow.Texts, {
|
|
154188
154159
|
type: "1RowTypeA",
|
|
154189
154160
|
top: title,
|
|
154190
154161
|
topProps: {
|
|
@@ -154240,8 +154211,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154240
154211
|
};
|
|
154241
154212
|
function AppShareListMenu() {
|
|
154242
154213
|
var initialScheme = (0, import_react_native17.getSchemeUri)();
|
|
154243
|
-
var isSandbox = (0,
|
|
154244
|
-
var _ref35 = (0,
|
|
154214
|
+
var isSandbox = (0, import_native_modules9.getOperationalEnvironment)() === "sandbox";
|
|
154215
|
+
var _ref35 = (0, import_tds_react_native7.useDialog)(),
|
|
154245
154216
|
openConfirm = _ref35.openConfirm;
|
|
154246
154217
|
var schemeForShare = addParamsToUrl(initialScheme, {
|
|
154247
154218
|
referrer: SHARE_SCHEME_REFERRER
|
|
@@ -154267,12 +154238,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154267
154238
|
}
|
|
154268
154239
|
});
|
|
154269
154240
|
}
|
|
154270
|
-
var
|
|
154241
|
+
var import_native_modules10 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154271
154242
|
var import_react_native19 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154272
154243
|
var import_jsx_runtime7 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154273
154244
|
function PermissionsMenu() {
|
|
154274
154245
|
var globals = getAppsInTossGlobals();
|
|
154275
|
-
if ((0,
|
|
154246
|
+
if ((0, import_native_modules10.getOperationalEnvironment)() === "sandbox") {
|
|
154276
154247
|
return null;
|
|
154277
154248
|
}
|
|
154278
154249
|
return (0, import_jsx_runtime7.jsx)(Menu, {
|
|
@@ -154308,7 +154279,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154308
154279
|
function useMoreButtonBottomSheet() {
|
|
154309
154280
|
var globals = getAppsInTossGlobals();
|
|
154310
154281
|
var adaptive = (0, import_private4.useAdaptive)();
|
|
154311
|
-
var _ref36 = (0,
|
|
154282
|
+
var _ref36 = (0, import_react15.useState)([]),
|
|
154312
154283
|
_ref37 = _slicedToArray(_ref36, 2),
|
|
154313
154284
|
itemList = _ref37[0],
|
|
154314
154285
|
setItemList = _ref37[1];
|
|
@@ -154316,17 +154287,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154316
154287
|
var logging = useMoreButtonBottomSheetLogging();
|
|
154317
154288
|
var overlay = (0, import_private4.useOverlay)();
|
|
154318
154289
|
var title = ensureValue(globals.brandDisplayName, "displayName");
|
|
154319
|
-
var isBottomSheetSupported = (0,
|
|
154320
|
-
var isShareListMenuSupported = (0,
|
|
154321
|
-
var _ref38 = (0,
|
|
154290
|
+
var isBottomSheetSupported = (0, import_native_modules11.isMinVersionSupported)(MIN_VERSION.BOTTOM_SHEET);
|
|
154291
|
+
var isShareListMenuSupported = (0, import_native_modules11.isMinVersionSupported)(MIN_VERSION.SHARE_LIST_MENU);
|
|
154292
|
+
var _ref38 = (0, import_react15.useState)(false),
|
|
154322
154293
|
_ref39 = _slicedToArray(_ref38, 2),
|
|
154323
154294
|
isPermissionsMenuSupported = _ref39[0],
|
|
154324
154295
|
setIsPermissionsMenuSupported = _ref39[1];
|
|
154325
|
-
(0,
|
|
154296
|
+
(0, import_react15.useEffect)(function () {
|
|
154326
154297
|
if (!isBottomSheetSupported) {
|
|
154327
154298
|
return;
|
|
154328
154299
|
}
|
|
154329
|
-
|
|
154300
|
+
import_native_modules11.INTERNAL__appBridgeHandler.invokeAppBridgeMethod(APP_BRIDGE_METHOD_NAME, {}, {
|
|
154330
154301
|
onSuccess: function onSuccess(_ref40) {
|
|
154331
154302
|
var items = _ref40.items;
|
|
154332
154303
|
return setItemList(items);
|
|
@@ -154335,8 +154306,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154335
154306
|
return console.error("\uBA54\uB274 \uBAA9\uB85D\uC744 \uAC00\uC838\uC624\uB294 \uB370 \uC2E4\uD328\uD588\uC5B4\uC694:", error);
|
|
154336
154307
|
}
|
|
154337
154308
|
});
|
|
154338
|
-
if ((0,
|
|
154339
|
-
|
|
154309
|
+
if ((0, import_native_modules11.isMinVersionSupported)(MIN_VERSION.PERMISSIONS_MENU)) {
|
|
154310
|
+
import_native_modules11.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("getAllPermission", {}, {
|
|
154340
154311
|
onSuccess: function onSuccess(permissions) {
|
|
154341
154312
|
return setIsPermissionsMenuSupported(permissions.length > 0);
|
|
154342
154313
|
},
|
|
@@ -154365,9 +154336,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154365
154336
|
close();
|
|
154366
154337
|
};
|
|
154367
154338
|
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)(
|
|
154339
|
+
children: (0, import_jsx_runtime8.jsx)(import_tds_react_native8.BottomSheet.Root, {
|
|
154340
|
+
header: (0, import_jsx_runtime8.jsx)(import_tds_react_native8.ListHeader, {
|
|
154341
|
+
title: (0, import_jsx_runtime8.jsx)(import_tds_react_native8.ListHeader.TitleParagraph, {
|
|
154371
154342
|
color: adaptive.grey800,
|
|
154372
154343
|
fontWeight: "bold",
|
|
154373
154344
|
typography: "t5",
|
|
@@ -154375,7 +154346,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154375
154346
|
})
|
|
154376
154347
|
}),
|
|
154377
154348
|
open: isOpen,
|
|
154378
|
-
cta: (0, import_jsx_runtime8.jsx)(
|
|
154349
|
+
cta: (0, import_jsx_runtime8.jsx)(import_tds_react_native8.BottomSheet.CTA, {
|
|
154379
154350
|
size: "large",
|
|
154380
154351
|
type: "dark",
|
|
154381
154352
|
style: "weak",
|
|
@@ -154386,7 +154357,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154386
154357
|
}),
|
|
154387
154358
|
onClose: handleClose,
|
|
154388
154359
|
onExited: exit,
|
|
154389
|
-
children: (0, import_jsx_runtime8.jsxs)(
|
|
154360
|
+
children: (0, import_jsx_runtime8.jsxs)(import_tds_react_native8.List, {
|
|
154390
154361
|
rowSeparator: "none",
|
|
154391
154362
|
children: [itemList.map(function (item) {
|
|
154392
154363
|
return (0, import_jsx_runtime8.jsx)(Menu, {
|
|
@@ -154413,21 +154384,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154413
154384
|
function BottomSheetImpressionArea(_ref43) {
|
|
154414
154385
|
var children = _ref43.children;
|
|
154415
154386
|
var logging = useMoreButtonBottomSheetLogging();
|
|
154416
|
-
(0,
|
|
154387
|
+
(0, import_react15.useEffect)(function () {
|
|
154417
154388
|
logging.show();
|
|
154418
154389
|
}, [logging]);
|
|
154419
154390
|
return (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, {
|
|
154420
154391
|
children: children
|
|
154421
154392
|
});
|
|
154422
154393
|
}
|
|
154423
|
-
|
|
154394
|
+
function toIcon(source) {
|
|
154395
|
+
return source.startsWith("http") ? {
|
|
154396
|
+
source: {
|
|
154397
|
+
uri: source
|
|
154398
|
+
}
|
|
154399
|
+
} : {
|
|
154400
|
+
name: source
|
|
154401
|
+
};
|
|
154402
|
+
}
|
|
154403
|
+
var import_react16 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154424
154404
|
var import_jsx_runtime9 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154425
154405
|
function NavigationBarImpressionArea(_ref44) {
|
|
154426
154406
|
var children = _ref44.children,
|
|
154427
154407
|
withHomeButton = _ref44.withHomeButton;
|
|
154428
|
-
var hasLogged = (0,
|
|
154408
|
+
var hasLogged = (0, import_react16.useRef)(false);
|
|
154429
154409
|
var logging = useNavigationBarLogging();
|
|
154430
|
-
(0,
|
|
154410
|
+
(0, import_react16.useEffect)(function () {
|
|
154431
154411
|
if (hasLogged.current === false) {
|
|
154432
154412
|
logging.navBarImpression({
|
|
154433
154413
|
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
@@ -154475,7 +154455,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154475
154455
|
});
|
|
154476
154456
|
}
|
|
154477
154457
|
var import_react_native_safe_area_context = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
154478
|
-
var
|
|
154458
|
+
var import_tds_react_native9 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154479
154459
|
var import_private6 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154480
154460
|
var import_react_native21 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154481
154461
|
var import_jsx_runtime11 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
@@ -154490,7 +154470,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154490
154470
|
safeAreaRight = _ref45.right;
|
|
154491
154471
|
useHardwareBackPress(navigationEvent.handleBack);
|
|
154492
154472
|
return (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, {
|
|
154493
|
-
children: [(0, import_jsx_runtime11.jsx)(
|
|
154473
|
+
children: [(0, import_jsx_runtime11.jsx)(import_tds_react_native9.PageNavbar, {
|
|
154494
154474
|
preference: {
|
|
154495
154475
|
type: "none"
|
|
154496
154476
|
}
|
|
@@ -154542,48 +154522,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154542
154522
|
}
|
|
154543
154523
|
function GameAppContainer(_ref47) {
|
|
154544
154524
|
var children = _ref47.children;
|
|
154545
|
-
|
|
154546
|
-
_ref49 = _slicedToArray(_ref48, 2),
|
|
154547
|
-
isEntryMessageExited = _ref49[0],
|
|
154548
|
-
setIsEntryMessageExited = _ref49[1];
|
|
154549
|
-
(0, import_react18.useEffect)(function () {
|
|
154525
|
+
(0, import_react17.useEffect)(function () {
|
|
154550
154526
|
if (import_react_native22.Platform.OS === "ios") {
|
|
154551
|
-
(0,
|
|
154527
|
+
(0, import_native_modules12.setIosSwipeGestureEnabled)({
|
|
154552
154528
|
isEnabled: false
|
|
154553
154529
|
});
|
|
154554
154530
|
return function () {
|
|
154555
|
-
(0,
|
|
154531
|
+
(0, import_native_modules12.setIosSwipeGestureEnabled)({
|
|
154556
154532
|
isEnabled: true
|
|
154557
154533
|
});
|
|
154558
154534
|
};
|
|
154559
154535
|
}
|
|
154560
154536
|
return;
|
|
154561
154537
|
}, []);
|
|
154562
|
-
(0, import_react18.useEffect)(function () {
|
|
154563
|
-
import_native_modules13.appsInTossEvent.addEventListener("entryMessageExited", {
|
|
154564
|
-
onEvent: function onEvent() {
|
|
154565
|
-
setIsEntryMessageExited(true);
|
|
154566
|
-
}
|
|
154567
|
-
});
|
|
154568
|
-
}, []);
|
|
154569
154538
|
return (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, {
|
|
154570
154539
|
children: [(0, import_jsx_runtime12.jsx)(RNNavigationBar.Game, {}), (0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime12.jsx)(GameInitializer, {
|
|
154571
|
-
isReadyForProfileUI: isEntryMessageExited,
|
|
154572
154540
|
children: children
|
|
154573
154541
|
}) : children]
|
|
154574
154542
|
});
|
|
154575
154543
|
}
|
|
154576
|
-
function GeneralAppContainer(
|
|
154577
|
-
var children =
|
|
154544
|
+
function GeneralAppContainer(_ref48) {
|
|
154545
|
+
var children = _ref48.children;
|
|
154578
154546
|
return (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, {
|
|
154579
154547
|
children: [(0, import_jsx_runtime12.jsx)(RNNavigationBar.Default, {}), children]
|
|
154580
154548
|
});
|
|
154581
154549
|
}
|
|
154582
154550
|
var import_jsx_runtime13 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154583
|
-
function AppsInTossContainer(Container,
|
|
154584
|
-
var children =
|
|
154585
|
-
initialProps = _objectWithoutProperties(
|
|
154586
|
-
if (!(0,
|
|
154551
|
+
function AppsInTossContainer(Container, _ref49) {
|
|
154552
|
+
var children = _ref49.children,
|
|
154553
|
+
initialProps = _objectWithoutProperties(_ref49, _excluded);
|
|
154554
|
+
if (!(0, import_native_modules13.isMinVersionSupported)({
|
|
154587
154555
|
android: "5.220.0",
|
|
154588
154556
|
ios: "5.221.0"
|
|
154589
154557
|
})) {
|
|
@@ -154593,44 +154561,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154593
154561
|
}
|
|
154594
154562
|
return (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, {
|
|
154595
154563
|
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)(
|
|
154564
|
+
children: (0, import_jsx_runtime13.jsx)(import_tds_react_native10.TDSProvider, {
|
|
154597
154565
|
colorPreference: "light",
|
|
154598
154566
|
token: {
|
|
154599
154567
|
color: {
|
|
154600
154568
|
primary: getAppsInTossGlobals().brandPrimaryColor
|
|
154601
154569
|
}
|
|
154602
154570
|
},
|
|
154603
|
-
children:
|
|
154604
|
-
children: children
|
|
154605
|
-
}))
|
|
154571
|
+
children: children
|
|
154606
154572
|
})
|
|
154607
154573
|
}))]
|
|
154608
154574
|
});
|
|
154609
154575
|
}
|
|
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;
|
|
154576
|
+
function registerApp(container, _ref50) {
|
|
154577
|
+
var context = _ref50.context,
|
|
154578
|
+
analytics = _ref50.analytics;
|
|
154620
154579
|
var appName = getAppName();
|
|
154621
154580
|
var isRegistered = import_react_native24.AppRegistry.getAppKeys().includes(appName);
|
|
154622
154581
|
if (!isRegistered) {
|
|
154623
154582
|
var _analytics$debug;
|
|
154624
154583
|
import_analytics.Analytics.init({
|
|
154625
154584
|
logger: function logger(params) {
|
|
154626
|
-
return void (0,
|
|
154585
|
+
return void (0, import_native_modules13.eventLog)(params);
|
|
154627
154586
|
},
|
|
154628
154587
|
debug: (_analytics$debug = analytics == null ? void 0 : analytics.debug) != null ? _analytics$debug : __DEV__
|
|
154629
154588
|
});
|
|
154630
154589
|
var App = import_react_native23.Granite.registerApp(AppsInTossContainer.bind(null, container), {
|
|
154631
154590
|
appName: appName,
|
|
154632
154591
|
context: context,
|
|
154633
|
-
setIosSwipeGestureEnabled:
|
|
154592
|
+
setIosSwipeGestureEnabled: import_native_modules13.setIosSwipeGestureEnabled,
|
|
154634
154593
|
router: {
|
|
154635
154594
|
screenContainer: AppsInTossScreenContainer,
|
|
154636
154595
|
defaultScreenOption: {
|
|
@@ -154642,8 +154601,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154642
154601
|
}
|
|
154643
154602
|
return global.Page;
|
|
154644
154603
|
}
|
|
154645
|
-
function AppsInTossScreenContainer(
|
|
154646
|
-
var children =
|
|
154604
|
+
function AppsInTossScreenContainer(_ref51) {
|
|
154605
|
+
var children = _ref51.children;
|
|
154647
154606
|
var isRNApp = getAppsInTossGlobals().webViewType == null;
|
|
154648
154607
|
return (0, import_jsx_runtime13.jsx)(NavigationBarContextProvider, {
|
|
154649
154608
|
children: (0, import_jsx_runtime13.jsx)(import_analytics.Analytics.Screen, {
|
|
@@ -154664,32 +154623,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154664
154623
|
var _AppsInToss = {
|
|
154665
154624
|
registerApp: registerApp
|
|
154666
154625
|
};
|
|
154667
|
-
var
|
|
154626
|
+
var import_native_modules22 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154668
154627
|
var appsInTossAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[17], "@apps-in-toss/native-modules/async-bridges"), 1);
|
|
154669
154628
|
var appsInTossConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/native-modules/constant-bridges"), 1);
|
|
154670
154629
|
var appsInTossEventBridges = __toESM(_$$_REQUIRE(_dependencyMap[19], "@apps-in-toss/native-modules/event-bridges"), 1);
|
|
154671
154630
|
var import_react_native_safe_area_context4 = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
154672
154631
|
var import_react_native37 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154673
|
-
var
|
|
154632
|
+
var import_tds_react_native14 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154674
154633
|
var import_private9 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154675
|
-
var
|
|
154634
|
+
var import_react28 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154676
154635
|
var import_react_native38 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154677
|
-
var
|
|
154636
|
+
var import_native_modules14 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154678
154637
|
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[20], "@granite-js/native/react-native-webview");
|
|
154679
|
-
var
|
|
154638
|
+
var import_react19 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154680
154639
|
var import_react_native27 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154681
154640
|
var import_react_native_safe_area_context2 = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
154682
154641
|
var import_react_native25 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154683
|
-
var
|
|
154642
|
+
var import_tds_react_native11 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154684
154643
|
var import_private7 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154685
154644
|
var import_es_hangul3 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
154686
|
-
var
|
|
154645
|
+
var import_react18 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154687
154646
|
var import_react_native26 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154688
154647
|
var import_jsx_runtime14 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154689
154648
|
function GameWebviewNavigationBar() {
|
|
154690
154649
|
var safeAreaTop = (0, import_private7.useSafeAreaTop)();
|
|
154691
|
-
var
|
|
154692
|
-
openConfirm =
|
|
154650
|
+
var _ref52 = (0, import_tds_react_native11.useDialog)(),
|
|
154651
|
+
openConfirm = _ref52.openConfirm;
|
|
154693
154652
|
var _useCaptureExitLog3 = useCaptureExitLog(),
|
|
154694
154653
|
captureExitLog = _useCaptureExitLog3.captureExitLog;
|
|
154695
154654
|
var global2 = getAppsInTossGlobals();
|
|
@@ -154698,9 +154657,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154698
154657
|
openMoreButtonBottomSheet = _useMoreButtonBottomS3.open;
|
|
154699
154658
|
var _useNavigationBarCont3 = useNavigationBarContext(),
|
|
154700
154659
|
navigationRightButton = _useNavigationBarCont3.navigationRightButton;
|
|
154701
|
-
var
|
|
154702
|
-
safeAreaRight =
|
|
154703
|
-
var handleGameWebviewClose = (0,
|
|
154660
|
+
var _ref53 = (0, import_react_native_safe_area_context2.useSafeAreaInsets)(),
|
|
154661
|
+
safeAreaRight = _ref53.right;
|
|
154662
|
+
var handleGameWebviewClose = (0, import_react18.useCallback)(_asyncToGenerator(function* () {
|
|
154704
154663
|
logging.closeButtonClick();
|
|
154705
154664
|
var isConfirmed = yield openConfirm({
|
|
154706
154665
|
title: (0, import_es_hangul3.josa)(global2.brandDisplayName, "\uC744/\uB97C") + " \uC885\uB8CC\uD560\uAE4C\uC694?",
|
|
@@ -154716,7 +154675,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154716
154675
|
}
|
|
154717
154676
|
}), [captureExitLog, global2.brandDisplayName, logging, openConfirm]);
|
|
154718
154677
|
return (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, {
|
|
154719
|
-
children: [(0, import_jsx_runtime14.jsx)(
|
|
154678
|
+
children: [(0, import_jsx_runtime14.jsx)(import_tds_react_native11.PageNavbar, {
|
|
154720
154679
|
preference: {
|
|
154721
154680
|
type: "none"
|
|
154722
154681
|
}
|
|
@@ -154745,34 +154704,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154745
154704
|
});
|
|
154746
154705
|
}
|
|
154747
154706
|
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 () {
|
|
154707
|
+
var GameWebView = (0, import_react19.forwardRef)(function GameWebView2(props, ref) {
|
|
154708
|
+
(0, import_react19.useEffect)(function () {
|
|
154754
154709
|
if (import_react_native27.Platform.OS === "ios") {
|
|
154755
|
-
(0,
|
|
154710
|
+
(0, import_native_modules14.setIosSwipeGestureEnabled)({
|
|
154756
154711
|
isEnabled: false
|
|
154757
154712
|
});
|
|
154758
154713
|
return function () {
|
|
154759
|
-
(0,
|
|
154714
|
+
(0, import_native_modules14.setIosSwipeGestureEnabled)({
|
|
154760
154715
|
isEnabled: true
|
|
154761
154716
|
});
|
|
154762
154717
|
};
|
|
154763
154718
|
}
|
|
154764
154719
|
return;
|
|
154765
154720
|
}, []);
|
|
154766
|
-
(0, import_react20.useEffect)(function () {
|
|
154767
|
-
import_native_modules15.appsInTossEvent.addEventListener("entryMessageExited", {
|
|
154768
|
-
onEvent: function onEvent() {
|
|
154769
|
-
setIsEntryMessageExited(true);
|
|
154770
|
-
}
|
|
154771
|
-
});
|
|
154772
|
-
}, []);
|
|
154773
154721
|
return (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, {
|
|
154774
|
-
children: [(0, import_jsx_runtime15.jsx)(GameWebviewNavigationBar, {}), (0,
|
|
154775
|
-
isReadyForProfileUI: isEntryMessageExited,
|
|
154722
|
+
children: [(0, import_jsx_runtime15.jsx)(GameWebviewNavigationBar, {}), (0, import_native_modules14.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime15.jsx)(GameInitializer, {
|
|
154776
154723
|
children: (0, import_jsx_runtime15.jsx)(import_react_native_webview.WebView, Object.assign({
|
|
154777
154724
|
ref: ref
|
|
154778
154725
|
}, props))
|
|
@@ -154782,23 +154729,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154782
154729
|
});
|
|
154783
154730
|
});
|
|
154784
154731
|
var import_react_native_webview2 = _$$_REQUIRE(_dependencyMap[20], "@granite-js/native/react-native-webview");
|
|
154785
|
-
var
|
|
154732
|
+
var import_react21 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154786
154733
|
var import_react_native28 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154787
|
-
var
|
|
154734
|
+
var import_tds_react_native12 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154788
154735
|
var import_private8 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154789
154736
|
var import_es_hangul4 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
154790
|
-
var
|
|
154737
|
+
var import_react20 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154791
154738
|
var import_jsx_runtime16 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154792
|
-
function PartnerWebviewNavigationBar(
|
|
154739
|
+
function PartnerWebviewNavigationBar(_ref55) {
|
|
154793
154740
|
var _parsedNavigationBar$3, _parsedNavigationBar$4;
|
|
154794
|
-
var onBackButtonClick =
|
|
154795
|
-
onHomeButtonClick =
|
|
154741
|
+
var onBackButtonClick = _ref55.onBackButtonClick,
|
|
154742
|
+
onHomeButtonClick = _ref55.onHomeButtonClick;
|
|
154796
154743
|
var globals = getAppsInTossGlobals();
|
|
154797
154744
|
var _useCaptureExitLog4 = useCaptureExitLog(),
|
|
154798
154745
|
captureExitLog = _useCaptureExitLog4.captureExitLog;
|
|
154799
154746
|
var logging = useNavigationBarLogging();
|
|
154800
|
-
var
|
|
154801
|
-
openConfirm =
|
|
154747
|
+
var _ref56 = (0, import_tds_react_native12.useDialog)(),
|
|
154748
|
+
openConfirm = _ref56.openConfirm;
|
|
154802
154749
|
var _useMoreButtonBottomS4 = useMoreButtonBottomSheet(),
|
|
154803
154750
|
openMoreButtonBottomSheet = _useMoreButtonBottomS4.open;
|
|
154804
154751
|
var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
@@ -154806,7 +154753,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154806
154753
|
var withBackButton = (_parsedNavigationBar$4 = parsedNavigationBar == null ? void 0 : parsedNavigationBar.withBackButton) != null ? _parsedNavigationBar$4 : true;
|
|
154807
154754
|
var _useNavigationBarCont4 = useNavigationBarContext(),
|
|
154808
154755
|
navigationRightButton = _useNavigationBarCont4.navigationRightButton;
|
|
154809
|
-
var handleClose = (0,
|
|
154756
|
+
var handleClose = (0, import_react20.useCallback)(_asyncToGenerator(function* () {
|
|
154810
154757
|
logging.closeButtonClick();
|
|
154811
154758
|
var isConfirmed = yield openConfirm({
|
|
154812
154759
|
title: (0, import_es_hangul4.josa)(globals.brandDisplayName, "\uC744/\uB97C") + " \uC885\uB8CC\uD560\uAE4C\uC694?",
|
|
@@ -154844,10 +154791,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154844
154791
|
});
|
|
154845
154792
|
}
|
|
154846
154793
|
var import_jsx_runtime17 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154847
|
-
var PartnerWebView = (0,
|
|
154848
|
-
var onBackButtonClick =
|
|
154849
|
-
onHomeButtonClick =
|
|
154850
|
-
webViewProps = _objectWithoutProperties(
|
|
154794
|
+
var PartnerWebView = (0, import_react21.forwardRef)(function PartnerWebViewScreen(_ref58, ref) {
|
|
154795
|
+
var onBackButtonClick = _ref58.onBackButtonClick,
|
|
154796
|
+
onHomeButtonClick = _ref58.onHomeButtonClick,
|
|
154797
|
+
webViewProps = _objectWithoutProperties(_ref58, _excluded2);
|
|
154851
154798
|
return (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, {
|
|
154852
154799
|
children: [(0, import_jsx_runtime17.jsx)(PartnerWebviewNavigationBar, {
|
|
154853
154800
|
onBackButtonClick: onBackButtonClick,
|
|
@@ -154869,9 +154816,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154869
154816
|
var components = url.hash.replace("#Intent;", "").split(";").map(function (component) {
|
|
154870
154817
|
return component.split("=");
|
|
154871
154818
|
});
|
|
154872
|
-
var scheme = (_components$find = components.find(function (
|
|
154873
|
-
var
|
|
154874
|
-
key =
|
|
154819
|
+
var scheme = (_components$find = components.find(function (_ref59) {
|
|
154820
|
+
var _ref60 = _slicedToArray(_ref59, 1),
|
|
154821
|
+
key = _ref60[0];
|
|
154875
154822
|
return key === "scheme";
|
|
154876
154823
|
})) == null ? void 0 : _components$find[1];
|
|
154877
154824
|
if (!scheme) {
|
|
@@ -154879,7 +154826,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154879
154826
|
}
|
|
154880
154827
|
return scheme + "://" + url.hostname + url.pathname + url.search;
|
|
154881
154828
|
}
|
|
154882
|
-
var
|
|
154829
|
+
var import_native_modules15 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154883
154830
|
function noop() {}
|
|
154884
154831
|
function generateSessionId() {
|
|
154885
154832
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
|
|
@@ -154889,10 +154836,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154889
154836
|
});
|
|
154890
154837
|
}
|
|
154891
154838
|
var sessionId = generateSessionId();
|
|
154892
|
-
var ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.
|
|
154893
|
-
var IOS_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.
|
|
154839
|
+
var ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
154840
|
+
var IOS_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
154894
154841
|
var UNSUPPORTED_ERROR_MESSAGE = "This feature is not supported in the current environment";
|
|
154895
|
-
var ENVIRONMENT = (0,
|
|
154842
|
+
var ENVIRONMENT = (0, import_native_modules15.getOperationalEnvironment)();
|
|
154896
154843
|
function fetchTossAd(params) {
|
|
154897
154844
|
if (!fetchTossAd.isSupported()) {
|
|
154898
154845
|
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
|
|
@@ -154902,9 +154849,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154902
154849
|
_onError3 = params.onError,
|
|
154903
154850
|
options = params.options;
|
|
154904
154851
|
var adGroupId = options.adGroupId;
|
|
154905
|
-
var unregisterCallbacks =
|
|
154852
|
+
var unregisterCallbacks = import_native_modules15.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("fetchTossAd", {
|
|
154906
154853
|
spaceUnitId: adGroupId,
|
|
154907
|
-
sessionId: sessionId
|
|
154854
|
+
sessionId: sessionId,
|
|
154855
|
+
sdkId: options.sdkId,
|
|
154856
|
+
availableStyleIds: options.availableStyleIds
|
|
154908
154857
|
}, {
|
|
154909
154858
|
onSuccess: function onSuccess(response) {
|
|
154910
154859
|
onEvent(response);
|
|
@@ -154919,12 +154868,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154919
154868
|
if (ENVIRONMENT !== "toss") {
|
|
154920
154869
|
return false;
|
|
154921
154870
|
}
|
|
154922
|
-
return (0,
|
|
154871
|
+
return (0, import_native_modules15.isMinVersionSupported)({
|
|
154923
154872
|
android: ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION,
|
|
154924
154873
|
ios: IOS_FETCH_TOSS_AD_SUPPORTED_VERSION
|
|
154925
154874
|
});
|
|
154926
154875
|
};
|
|
154927
|
-
var
|
|
154876
|
+
var import_native_modules17 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154928
154877
|
function generateRequestId() {
|
|
154929
154878
|
var timestamp = Date.now().toString(36).toUpperCase();
|
|
154930
154879
|
var random = Math.random().toString(36).substring(2, 7).toUpperCase();
|
|
@@ -154938,7 +154887,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154938
154887
|
return null;
|
|
154939
154888
|
}
|
|
154940
154889
|
}
|
|
154941
|
-
var
|
|
154890
|
+
var import_native_modules16 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154942
154891
|
var import_react_native30 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154943
154892
|
function getIsDev() {
|
|
154944
154893
|
try {
|
|
@@ -154947,9 +154896,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154947
154896
|
return false;
|
|
154948
154897
|
}
|
|
154949
154898
|
}
|
|
154950
|
-
var OPERATIONAL_ENVIRONMENT = (0,
|
|
154951
|
-
var OS = (0,
|
|
154952
|
-
var APP_VER = (0,
|
|
154899
|
+
var OPERATIONAL_ENVIRONMENT = (0, import_native_modules16.getOperationalEnvironment)();
|
|
154900
|
+
var OS = (0, import_native_modules16.getPlatformOS)();
|
|
154901
|
+
var APP_VER = (0, import_native_modules16.getTossAppVersion)();
|
|
154953
154902
|
var ALPHA_EVENT_TRACKER_HTTP_ENDPOINT = "https://alpha-trillion.toss.im/trk/sdk-mediation/event";
|
|
154954
154903
|
var LIVE_EVENT_TRACKER_HTTP_ENDPOINT = "https://trillion.toss.im/trk/sdk-mediation/event";
|
|
154955
154904
|
function getPostEventTrackingUrl() {
|
|
@@ -154976,87 +154925,93 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154976
154925
|
}).catch(noop);
|
|
154977
154926
|
}
|
|
154978
154927
|
var INTEGRATED_AD_SDK_VERSION = "0.0.0";
|
|
154979
|
-
var ANDROID_INTEGRATED_AD_SUPPORTED_VERSION = "5.
|
|
154980
|
-
var IOS_INTEGRATED_AD_SUPPORTED_VERSION = "5.
|
|
154928
|
+
var ANDROID_INTEGRATED_AD_SUPPORTED_VERSION = "5.241.0";
|
|
154929
|
+
var IOS_INTEGRATED_AD_SUPPORTED_VERSION = "5.241.0";
|
|
154981
154930
|
var UNSUPPORTED_ERROR_MESSAGE2 = "This feature is not supported in the current environment";
|
|
154982
154931
|
var INTG_AD_ADM_FALLBACK_RID_MAP = {};
|
|
154983
154932
|
function integratedAdIsSupported() {
|
|
154984
|
-
return (0,
|
|
154933
|
+
return (0, import_native_modules17.isMinVersionSupported)({
|
|
154985
154934
|
android: ANDROID_INTEGRATED_AD_SUPPORTED_VERSION,
|
|
154986
154935
|
ios: IOS_INTEGRATED_AD_SUPPORTED_VERSION
|
|
154987
154936
|
});
|
|
154988
154937
|
}
|
|
154989
|
-
function
|
|
154990
|
-
|
|
154991
|
-
|
|
154992
|
-
|
|
154993
|
-
|
|
154994
|
-
|
|
154995
|
-
|
|
154996
|
-
|
|
154997
|
-
|
|
154998
|
-
|
|
154999
|
-
|
|
155000
|
-
|
|
154938
|
+
function generateLoadFullScreenAd(sdkId) {
|
|
154939
|
+
var fn = function fn(params) {
|
|
154940
|
+
if (!import_native_modules17.GoogleAdMob.loadAppsInTossAdMob.isSupported()) {
|
|
154941
|
+
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
|
|
154942
|
+
return noop;
|
|
154943
|
+
}
|
|
154944
|
+
if (!integratedAdIsSupported()) {
|
|
154945
|
+
return import_native_modules17.GoogleAdMob.loadAppsInTossAdMob(Object.assign({}, params, {
|
|
154946
|
+
onEvent: function onEvent(event) {
|
|
154947
|
+
if (event.type === "loaded") {
|
|
154948
|
+
var _event$data$responseI, _event$data$responseI2;
|
|
154949
|
+
var requestId = generateRequestId();
|
|
154950
|
+
INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId] = requestId;
|
|
154951
|
+
postEventTracking({
|
|
154952
|
+
eventName: "LOAD",
|
|
154953
|
+
spaceUnitId: params.options.adGroupId,
|
|
154954
|
+
requestId: requestId,
|
|
154955
|
+
responseId: event.data.responseInfo.responseId,
|
|
154956
|
+
mediationType: "ADMOB",
|
|
154957
|
+
format: "",
|
|
154958
|
+
adSourceName: (_event$data$responseI = (_event$data$responseI2 = event.data.responseInfo.loadedAdNetworkInfo) == null ? void 0 : _event$data$responseI2.adSourceName) != null ? _event$data$responseI : "",
|
|
154959
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
154960
|
+
});
|
|
154961
|
+
}
|
|
154962
|
+
return params.onEvent(event);
|
|
154963
|
+
},
|
|
154964
|
+
onError: function onError(error) {
|
|
154965
|
+
var _INTG_AD_ADM_FALLBACK;
|
|
154966
|
+
var requestId = (_INTG_AD_ADM_FALLBACK = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) != null ? _INTG_AD_ADM_FALLBACK : "";
|
|
155001
154967
|
postEventTracking({
|
|
155002
|
-
eventName: "
|
|
154968
|
+
eventName: "FAILED_TO_LOAD",
|
|
155003
154969
|
spaceUnitId: params.options.adGroupId,
|
|
155004
154970
|
requestId: requestId,
|
|
155005
|
-
responseId:
|
|
154971
|
+
responseId: "",
|
|
155006
154972
|
mediationType: "ADMOB",
|
|
155007
154973
|
format: "",
|
|
155008
|
-
adSourceName:
|
|
154974
|
+
adSourceName: "",
|
|
155009
154975
|
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155010
154976
|
});
|
|
154977
|
+
return params.onError(error);
|
|
155011
154978
|
}
|
|
155012
|
-
|
|
154979
|
+
}));
|
|
154980
|
+
}
|
|
154981
|
+
var onEvent = params.onEvent,
|
|
154982
|
+
_onError4 = params.onError,
|
|
154983
|
+
options = params.options;
|
|
154984
|
+
var adGroupId = options.adGroupId;
|
|
154985
|
+
var referrer = getReferrer();
|
|
154986
|
+
var unregisterCallbacks = import_native_modules17.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("loadTossAdOrAdmob", {
|
|
154987
|
+
spaceUnitId: adGroupId,
|
|
154988
|
+
referrer: referrer,
|
|
154989
|
+
sessionId: sessionId,
|
|
154990
|
+
sdkId: sdkId
|
|
154991
|
+
}, {
|
|
154992
|
+
onSuccess: function onSuccess() {
|
|
154993
|
+
onEvent({
|
|
154994
|
+
type: "loaded"
|
|
154995
|
+
});
|
|
155013
154996
|
},
|
|
155014
154997
|
onError: function onError(error) {
|
|
155015
|
-
|
|
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);
|
|
154998
|
+
_onError4(error);
|
|
155028
154999
|
}
|
|
155029
|
-
})
|
|
155030
|
-
|
|
155031
|
-
|
|
155032
|
-
|
|
155033
|
-
|
|
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;
|
|
155000
|
+
});
|
|
155001
|
+
return unregisterCallbacks;
|
|
155002
|
+
};
|
|
155003
|
+
fn.isSupported = import_native_modules17.GoogleAdMob.loadAppsInTossAdMob.isSupported;
|
|
155004
|
+
return fn;
|
|
155051
155005
|
}
|
|
155052
|
-
_loadFullScreenAd
|
|
155006
|
+
var _loadFullScreenAd = generateLoadFullScreenAd("107");
|
|
155007
|
+
var loadFullScreenAdForWeb = generateLoadFullScreenAd("107");
|
|
155053
155008
|
function _showFullScreenAd(params) {
|
|
155054
|
-
if (!
|
|
155009
|
+
if (!import_native_modules17.GoogleAdMob.showAppsInTossAdMob.isSupported()) {
|
|
155055
155010
|
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
|
|
155056
155011
|
return noop;
|
|
155057
155012
|
}
|
|
155058
155013
|
if (!integratedAdIsSupported()) {
|
|
155059
|
-
return
|
|
155014
|
+
return import_native_modules17.GoogleAdMob.showAppsInTossAdMob(Object.assign({}, params, {
|
|
155060
155015
|
onEvent: function onEvent(event) {
|
|
155061
155016
|
var _INTG_AD_ADM_FALLBACK2;
|
|
155062
155017
|
var requestId = (_INTG_AD_ADM_FALLBACK2 = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) != null ? _INTG_AD_ADM_FALLBACK2 : "";
|
|
@@ -155158,7 +155113,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155158
155113
|
options = params.options;
|
|
155159
155114
|
var adGroupId = options.adGroupId;
|
|
155160
155115
|
var referrer = getReferrer();
|
|
155161
|
-
var unregisterCallbacks =
|
|
155116
|
+
var unregisterCallbacks = import_native_modules17.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("showTossAdOrAdmob", {
|
|
155162
155117
|
spaceUnitId: adGroupId,
|
|
155163
155118
|
referrer: referrer,
|
|
155164
155119
|
sessionId: sessionId
|
|
@@ -155205,8 +155160,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155205
155160
|
});
|
|
155206
155161
|
return unregisterCallbacks;
|
|
155207
155162
|
}
|
|
155208
|
-
_showFullScreenAd.isSupported =
|
|
155209
|
-
var
|
|
155163
|
+
_showFullScreenAd.isSupported = import_native_modules17.GoogleAdMob.showAppsInTossAdMob.isSupported;
|
|
155164
|
+
var import_native_modules18 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155210
155165
|
var import_react_native31 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155211
155166
|
function tossAdEventLog(_x4) {
|
|
155212
155167
|
return _tossAdEventLog.apply(this, arguments);
|
|
@@ -155221,18 +155176,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155221
155176
|
app_name: appName
|
|
155222
155177
|
})
|
|
155223
155178
|
});
|
|
155224
|
-
return
|
|
155179
|
+
return import_native_modules18.INTERNAL__module.tossCoreEventLog(eventLogParams);
|
|
155225
155180
|
});
|
|
155226
155181
|
return _tossAdEventLog.apply(this, arguments);
|
|
155227
155182
|
}
|
|
155228
|
-
var
|
|
155183
|
+
var import_react22 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155229
155184
|
function serializeError(error) {
|
|
155230
155185
|
return JSON.stringify(error, function (_, value) {
|
|
155231
155186
|
if (value instanceof Error) {
|
|
155232
|
-
return Object.assign({}, Object.entries(value).reduce(function (acc,
|
|
155233
|
-
var
|
|
155234
|
-
key =
|
|
155235
|
-
value2 =
|
|
155187
|
+
return Object.assign({}, Object.entries(value).reduce(function (acc, _ref61) {
|
|
155188
|
+
var _ref62 = _slicedToArray(_ref61, 2),
|
|
155189
|
+
key = _ref62[0],
|
|
155190
|
+
value2 = _ref62[1];
|
|
155236
155191
|
acc[key] = value2;
|
|
155237
155192
|
return acc;
|
|
155238
155193
|
}, {}), {
|
|
@@ -155245,24 +155200,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155245
155200
|
return value;
|
|
155246
155201
|
});
|
|
155247
155202
|
}
|
|
155248
|
-
function methodHandler(
|
|
155249
|
-
var args =
|
|
155250
|
-
eventId =
|
|
155251
|
-
functionName =
|
|
155252
|
-
handlerMap =
|
|
155253
|
-
injectJavaScript =
|
|
155203
|
+
function methodHandler(_ref63) {
|
|
155204
|
+
var args = _ref63.args,
|
|
155205
|
+
eventId = _ref63.eventId,
|
|
155206
|
+
functionName = _ref63.functionName,
|
|
155207
|
+
handlerMap = _ref63.handlerMap,
|
|
155208
|
+
injectJavaScript = _ref63.injectJavaScript;
|
|
155254
155209
|
var func = handlerMap[functionName];
|
|
155255
155210
|
if (!func) {
|
|
155256
155211
|
console.error(functionName + " is not a function");
|
|
155257
155212
|
return;
|
|
155258
155213
|
}
|
|
155259
155214
|
var wrappedFunc = function () {
|
|
155260
|
-
var
|
|
155215
|
+
var _ref64 = _asyncToGenerator(function* () {
|
|
155261
155216
|
var result = yield func.apply(void 0, arguments);
|
|
155262
155217
|
return result;
|
|
155263
155218
|
});
|
|
155264
155219
|
return function wrappedFunc() {
|
|
155265
|
-
return
|
|
155220
|
+
return _ref64.apply(this, arguments);
|
|
155266
155221
|
};
|
|
155267
155222
|
}();
|
|
155268
155223
|
wrappedFunc.apply(void 0, _toConsumableArray(args)).then(function (result) {
|
|
@@ -155273,22 +155228,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155273
155228
|
});
|
|
155274
155229
|
}
|
|
155275
155230
|
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 =
|
|
155231
|
+
function useBridgeHandler(_ref65) {
|
|
155232
|
+
var onMessage = _ref65.onMessage,
|
|
155233
|
+
constantHandlerMap = _ref65.constantHandlerMap,
|
|
155234
|
+
asyncHandlerMap = _ref65.asyncHandlerMap,
|
|
155235
|
+
eventListenerMap = _ref65.eventListenerMap;
|
|
155236
|
+
var ref = (0, import_react22.useRef)(null);
|
|
155237
|
+
var injectedJavaScript = (0, import_react22.useMemo)(function () {
|
|
155238
|
+
return "window.__CONSTANT_HANDLER_MAP = " + JSON.stringify(Object.entries(constantHandlerMap).reduce(function (acc, _ref66) {
|
|
155239
|
+
var _ref67 = _slicedToArray(_ref66, 2),
|
|
155240
|
+
key = _ref67[0],
|
|
155241
|
+
value = _ref67[1];
|
|
155287
155242
|
acc[key] = typeof value === "function" ? value() : value;
|
|
155288
155243
|
return acc;
|
|
155289
155244
|
}, {})) + ";";
|
|
155290
155245
|
}, [constantHandlerMap]);
|
|
155291
|
-
(0,
|
|
155246
|
+
(0, import_react22.useEffect)(function () {
|
|
155292
155247
|
var _ref$current;
|
|
155293
155248
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.injectJavaScript(injectedJavaScript);
|
|
155294
155249
|
}, [injectedJavaScript]);
|
|
@@ -155305,8 +155260,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155305
155260
|
(_ref$current3 = ref.current) == null ? void 0 : _ref$current3.injectJavaScript("\n window.__GRANITE_NATIVE_EMITTER.emit('" + functionName + "/onError/" + eventId + "', " + serializedError + ");\n ");
|
|
155306
155261
|
};
|
|
155307
155262
|
};
|
|
155308
|
-
var $onMessage = (0,
|
|
155309
|
-
var
|
|
155263
|
+
var $onMessage = (0, import_react22.useCallback)(function () {
|
|
155264
|
+
var _ref68 = _asyncToGenerator(function* (e) {
|
|
155310
155265
|
onMessage == null ? void 0 : onMessage(e);
|
|
155311
155266
|
var data = parseNativeEventData(e.nativeEvent.data);
|
|
155312
155267
|
if (typeof data !== "object" || data === null || typeof data.functionName !== "string" || typeof data.eventId !== "string" || typeof data.type !== "string" || !["addEventListener", "removeEventListener", "method"].includes(data.type)) {
|
|
@@ -155351,7 +155306,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155351
155306
|
}
|
|
155352
155307
|
});
|
|
155353
155308
|
return function (_x5) {
|
|
155354
|
-
return
|
|
155309
|
+
return _ref68.apply(this, arguments);
|
|
155355
155310
|
};
|
|
155356
155311
|
}(), [onMessage]);
|
|
155357
155312
|
return {
|
|
@@ -155369,7 +155324,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155369
155324
|
}
|
|
155370
155325
|
}
|
|
155371
155326
|
var import_react_native_safe_area_context3 = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
155372
|
-
var
|
|
155327
|
+
var import_react23 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155373
155328
|
var EventEmitter = function () {
|
|
155374
155329
|
function EventEmitter() {
|
|
155375
155330
|
_classCallCheck(this, EventEmitter);
|
|
@@ -155410,10 +155365,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155410
155365
|
}();
|
|
155411
155366
|
function useSafeAreaInsetsEmitter() {
|
|
155412
155367
|
var insets = (0, import_react_native_safe_area_context3.useSafeAreaInsets)();
|
|
155413
|
-
var emitter = (0,
|
|
155368
|
+
var emitter = (0, import_react23.useMemo)(function () {
|
|
155414
155369
|
return new EventEmitter();
|
|
155415
155370
|
}, []);
|
|
155416
|
-
(0,
|
|
155371
|
+
(0, import_react23.useEffect)(function () {
|
|
155417
155372
|
emitter.emit("safeAreaInsetsChange", insets);
|
|
155418
155373
|
return function () {
|
|
155419
155374
|
emitter.off("safeAreaInsetsChange", function (listener) {
|
|
@@ -155424,10 +155379,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155424
155379
|
return emitter;
|
|
155425
155380
|
}
|
|
155426
155381
|
var import_react_native32 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155427
|
-
var
|
|
155382
|
+
var import_tds_react_native13 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
155428
155383
|
var import_es_hangul5 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
155429
|
-
var import_react26 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155430
155384
|
var import_react25 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155385
|
+
var import_react24 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155431
155386
|
var INITIAL_STATE = {
|
|
155432
155387
|
stack: [],
|
|
155433
155388
|
index: -1
|
|
@@ -155474,20 +155429,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155474
155429
|
}
|
|
155475
155430
|
}
|
|
155476
155431
|
function useWebViewHistory() {
|
|
155477
|
-
var
|
|
155478
|
-
|
|
155479
|
-
state =
|
|
155480
|
-
dispatch =
|
|
155481
|
-
var onNavigationStateChange = (0,
|
|
155482
|
-
var url =
|
|
155483
|
-
canGoForward2 =
|
|
155432
|
+
var _ref69 = (0, import_react24.useReducer)(reducer, INITIAL_STATE),
|
|
155433
|
+
_ref70 = _slicedToArray(_ref69, 2),
|
|
155434
|
+
state = _ref70[0],
|
|
155435
|
+
dispatch = _ref70[1];
|
|
155436
|
+
var onNavigationStateChange = (0, import_react24.useCallback)(function (_ref71) {
|
|
155437
|
+
var url = _ref71.url,
|
|
155438
|
+
canGoForward2 = _ref71.canGoForward;
|
|
155484
155439
|
dispatch({
|
|
155485
155440
|
type: "NAVIGATION_CHANGE",
|
|
155486
155441
|
url: url,
|
|
155487
155442
|
canGoForward: canGoForward2
|
|
155488
155443
|
});
|
|
155489
155444
|
}, []);
|
|
155490
|
-
var
|
|
155445
|
+
var _ref72 = (0, import_react24.useMemo)(function () {
|
|
155491
155446
|
var canBack = state.index > 0;
|
|
155492
155447
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
155493
155448
|
return {
|
|
@@ -155495,8 +155450,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155495
155450
|
canGoForward: canFwd
|
|
155496
155451
|
};
|
|
155497
155452
|
}, [state.index, state.stack.length]),
|
|
155498
|
-
canGoBack =
|
|
155499
|
-
canGoForward =
|
|
155453
|
+
canGoBack = _ref72.canGoBack,
|
|
155454
|
+
canGoForward = _ref72.canGoForward;
|
|
155500
155455
|
return {
|
|
155501
155456
|
onNavigationStateChange: onNavigationStateChange,
|
|
155502
155457
|
hasHistory: canGoBack,
|
|
@@ -155511,22 +155466,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155511
155466
|
var _useWebViewHistory = useWebViewHistory(),
|
|
155512
155467
|
hasHistory = _useWebViewHistory.hasHistory,
|
|
155513
155468
|
onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
155514
|
-
var
|
|
155515
|
-
webBackHandlersRef =
|
|
155516
|
-
hasWebBackEvent =
|
|
155517
|
-
addWebBackEventListener =
|
|
155518
|
-
removeWebBackEventListener =
|
|
155469
|
+
var _ref73 = (0, import_react_native32.useBackEventState)(),
|
|
155470
|
+
webBackHandlersRef = _ref73.handlersRef,
|
|
155471
|
+
hasWebBackEvent = _ref73.hasBackEvent,
|
|
155472
|
+
addWebBackEventListener = _ref73.addEventListener,
|
|
155473
|
+
removeWebBackEventListener = _ref73.removeEventListener;
|
|
155519
155474
|
var logging = useNavigationBarLogging();
|
|
155520
|
-
var
|
|
155521
|
-
openConfirm =
|
|
155475
|
+
var _ref74 = (0, import_tds_react_native13.useDialog)(),
|
|
155476
|
+
openConfirm = _ref74.openConfirm;
|
|
155522
155477
|
var global2 = getAppsInTossGlobals();
|
|
155523
|
-
var addEventListener = (0,
|
|
155478
|
+
var addEventListener = (0, import_react25.useCallback)(function (handler) {
|
|
155524
155479
|
addWebBackEventListener(handler);
|
|
155525
155480
|
}, [addWebBackEventListener]);
|
|
155526
|
-
var removeEventListener = (0,
|
|
155481
|
+
var removeEventListener = (0, import_react25.useCallback)(function (handler) {
|
|
155527
155482
|
removeWebBackEventListener(handler);
|
|
155528
155483
|
}, [removeWebBackEventListener]);
|
|
155529
|
-
var handleWebBack = (0,
|
|
155484
|
+
var handleWebBack = (0, import_react25.useCallback)(_asyncToGenerator(function* () {
|
|
155530
155485
|
if (hasWebBackEvent) {
|
|
155531
155486
|
for (var handler of webBackHandlersRef) {
|
|
155532
155487
|
handler();
|
|
@@ -155551,7 +155506,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155551
155506
|
}
|
|
155552
155507
|
}
|
|
155553
155508
|
}), [captureExitLog, global2.brandDisplayName, hasHistory, hasWebBackEvent, webBackHandlersRef, logging, openConfirm, webViewRef]);
|
|
155554
|
-
var handleWebHome = (0,
|
|
155509
|
+
var handleWebHome = (0, import_react25.useCallback)(function () {
|
|
155555
155510
|
var _webViewRef$current2;
|
|
155556
155511
|
logging.homeButtonClick();
|
|
155557
155512
|
if (hasWebBackEvent) {
|
|
@@ -155562,7 +155517,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155562
155517
|
}
|
|
155563
155518
|
(_webViewRef$current2 = webViewRef.current) == null ? void 0 : _webViewRef$current2.injectJavaScript(HISTORY_HOME_SCRIPT);
|
|
155564
155519
|
}, [hasWebBackEvent, webBackHandlersRef, logging, webViewRef]);
|
|
155565
|
-
return (0,
|
|
155520
|
+
return (0, import_react25.useMemo)(function () {
|
|
155566
155521
|
return {
|
|
155567
155522
|
addEventListener: addEventListener,
|
|
155568
155523
|
removeEventListener: removeEventListener,
|
|
@@ -155586,7 +155541,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155586
155541
|
});
|
|
155587
155542
|
};
|
|
155588
155543
|
}
|
|
155589
|
-
var
|
|
155544
|
+
var import_native_modules19 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155590
155545
|
var import_react_native33 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
155591
155546
|
var FontA11yCategory = {
|
|
155592
155547
|
Large: "Large",
|
|
@@ -155715,40 +155670,40 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155715
155670
|
function mapFontScaleToCategory(fontScale, platform) {
|
|
155716
155671
|
return platform === "ios" ? mapIOSFontScaleToCategory(fontScale) : mapAndroidFontScaleToCategory(fontScale);
|
|
155717
155672
|
}
|
|
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 =
|
|
155673
|
+
function _useCreateUserAgent(_ref76) {
|
|
155674
|
+
var batteryModePreference = _ref76.batteryModePreference,
|
|
155675
|
+
colorPreference = _ref76.colorPreference,
|
|
155676
|
+
locale = _ref76.locale,
|
|
155677
|
+
navbarPreference = _ref76.navbarPreference,
|
|
155678
|
+
pureSafeArea = _ref76.pureSafeArea,
|
|
155679
|
+
safeArea = _ref76.safeArea,
|
|
155680
|
+
safeAreaBottomTransparency = _ref76.safeAreaBottomTransparency;
|
|
155681
|
+
var platform = (0, import_native_modules19.getPlatformOS)();
|
|
155682
|
+
var appVersion = (0, import_native_modules19.getTossAppVersion)();
|
|
155683
|
+
var _ref77 = (0, import_react_native33.useWindowDimensions)(),
|
|
155684
|
+
fontScale = _ref77.fontScale;
|
|
155730
155685
|
var platformString = platform === "ios" ? "iPhone" : "Android phone";
|
|
155731
155686
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
155732
155687
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
155733
155688
|
return ["AppsInToss", "TossApp/" + appVersion, batteryModePreference && "TossBatteryModePreference/" + batteryModePreference, colorPreference && "TossColorPreference/" + colorPreference, "TossFontAccessibility/" + fontA11y, "TossFontScale/" + normalizedFontScale, locale && "TossLocale/" + locale, navbarPreference && "TossNavbarPreference/" + navbarPreference, pureSafeArea && "TossPureSafeArea/" + pureSafeArea, safeArea && "TossSafeArea/" + safeArea, safeAreaBottomTransparency && "TossSafeAreaBottomTransparency/" + safeAreaBottomTransparency, platformString].filter(Boolean).join(" ");
|
|
155734
155689
|
}
|
|
155735
|
-
var
|
|
155690
|
+
var import_native_modules20 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155736
155691
|
var import_react_native34 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155737
|
-
var
|
|
155738
|
-
function _useGeolocation(
|
|
155739
|
-
var accuracy =
|
|
155740
|
-
distanceInterval =
|
|
155741
|
-
timeInterval =
|
|
155692
|
+
var import_react26 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155693
|
+
function _useGeolocation(_ref78) {
|
|
155694
|
+
var accuracy = _ref78.accuracy,
|
|
155695
|
+
distanceInterval = _ref78.distanceInterval,
|
|
155696
|
+
timeInterval = _ref78.timeInterval;
|
|
155742
155697
|
var isVisible = (0, import_react_native34.useVisibility)();
|
|
155743
|
-
var
|
|
155744
|
-
|
|
155745
|
-
location =
|
|
155746
|
-
setLocation =
|
|
155747
|
-
(0,
|
|
155698
|
+
var _ref79 = (0, import_react26.useState)(null),
|
|
155699
|
+
_ref80 = _slicedToArray(_ref79, 2),
|
|
155700
|
+
location = _ref80[0],
|
|
155701
|
+
setLocation = _ref80[1];
|
|
155702
|
+
(0, import_react26.useEffect)(function () {
|
|
155748
155703
|
if (!isVisible) {
|
|
155749
155704
|
return;
|
|
155750
155705
|
}
|
|
155751
|
-
return (0,
|
|
155706
|
+
return (0, import_native_modules20.startUpdateLocation)({
|
|
155752
155707
|
options: {
|
|
155753
155708
|
accuracy: accuracy,
|
|
155754
155709
|
distanceInterval: distanceInterval,
|
|
@@ -155761,17 +155716,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155761
155716
|
return location;
|
|
155762
155717
|
}
|
|
155763
155718
|
var import_react_native35 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155764
|
-
var
|
|
155719
|
+
var import_react27 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155765
155720
|
function _useWaitForReturnNavigator() {
|
|
155766
|
-
var callbacks = (0,
|
|
155721
|
+
var callbacks = (0, import_react27.useRef)([]).current;
|
|
155767
155722
|
var navigation = (0, import_react_native35.useNavigation)();
|
|
155768
|
-
var startNavigating = (0,
|
|
155723
|
+
var startNavigating = (0, import_react27.useCallback)(function (route, params) {
|
|
155769
155724
|
return new Promise(function (resolve) {
|
|
155770
155725
|
callbacks.push(resolve);
|
|
155771
155726
|
navigation.navigate(route, params);
|
|
155772
155727
|
});
|
|
155773
155728
|
}, [callbacks, navigation]);
|
|
155774
|
-
var handleVisibilityChange = (0,
|
|
155729
|
+
var handleVisibilityChange = (0, import_react27.useCallback)(function (state) {
|
|
155775
155730
|
if (state === "visible" && callbacks.length > 0) {
|
|
155776
155731
|
for (var callback of callbacks) {
|
|
155777
155732
|
callback();
|
|
@@ -155791,7 +155746,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155791
155746
|
removeAccessoryButton: removeNavigationRightButton
|
|
155792
155747
|
};
|
|
155793
155748
|
}
|
|
155794
|
-
var
|
|
155749
|
+
var import_native_modules21 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155795
155750
|
var import_react_native36 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155796
155751
|
var extractDateFromUUIDv7 = function extractDateFromUUIDv7(uuid) {
|
|
155797
155752
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
@@ -155834,24 +155789,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155834
155789
|
deployment_timestamp: extractDateFromUUIDv7(_env.getDeploymentId()).getTime()
|
|
155835
155790
|
}
|
|
155836
155791
|
};
|
|
155837
|
-
return (0,
|
|
155792
|
+
return (0, import_native_modules21.eventLog)(log);
|
|
155838
155793
|
};
|
|
155839
155794
|
var import_jsx_runtime18 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
155840
155795
|
var operationalEnvironment = appsInTossConstantBridges.getOperationalEnvironment();
|
|
155841
155796
|
var TYPES = ["partner", "external", "game"];
|
|
155842
155797
|
var WEBVIEW_TYPES = {
|
|
155843
155798
|
partner: PartnerWebView,
|
|
155844
|
-
external:
|
|
155799
|
+
external: import_tds_react_native14.ExternalWebViewScreen,
|
|
155845
155800
|
game: GameWebView
|
|
155846
155801
|
};
|
|
155847
155802
|
function mergeSchemeQueryParamsInto(url) {
|
|
155848
155803
|
var baseUrl = new URL(url);
|
|
155849
155804
|
var schemeUrl = new URL((0, import_react_native37.getSchemeUri)());
|
|
155850
155805
|
baseUrl.pathname = schemeUrl.pathname;
|
|
155851
|
-
for (var
|
|
155852
|
-
var
|
|
155853
|
-
var key =
|
|
155854
|
-
var value =
|
|
155806
|
+
for (var _ref81 of schemeUrl.searchParams.entries()) {
|
|
155807
|
+
var _ref82 = _slicedToArray(_ref81, 2);
|
|
155808
|
+
var key = _ref82[0];
|
|
155809
|
+
var value = _ref82[1];
|
|
155855
155810
|
baseUrl.searchParams.set(key, value);
|
|
155856
155811
|
}
|
|
155857
155812
|
return baseUrl;
|
|
@@ -155861,7 +155816,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155861
155816
|
var devUrl = "http://" + local.host + ":" + local.port;
|
|
155862
155817
|
return mergeSchemeQueryParamsInto(devUrl).toString();
|
|
155863
155818
|
}
|
|
155864
|
-
var _import_native_module =
|
|
155819
|
+
var _import_native_module = import_native_modules22.AppsInTossModule.getWebBundleURL({}),
|
|
155865
155820
|
rawUrl = _import_native_module.url;
|
|
155866
155821
|
var url = mergeSchemeQueryParamsInto(rawUrl);
|
|
155867
155822
|
var deploymentId = _env.getDeploymentId();
|
|
@@ -155870,17 +155825,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155870
155825
|
}
|
|
155871
155826
|
return url.toString();
|
|
155872
155827
|
}
|
|
155873
|
-
function _WebView(
|
|
155874
|
-
var type =
|
|
155875
|
-
local =
|
|
155876
|
-
onMessage =
|
|
155877
|
-
props = _objectWithoutProperties(
|
|
155828
|
+
function _WebView(_ref83) {
|
|
155829
|
+
var type = _ref83.type,
|
|
155830
|
+
local = _ref83.local,
|
|
155831
|
+
onMessage = _ref83.onMessage,
|
|
155832
|
+
props = _objectWithoutProperties(_ref83, _excluded3);
|
|
155878
155833
|
if (!TYPES.includes(type)) {
|
|
155879
155834
|
throw new Error("Invalid WebView type: '" + type + "'");
|
|
155880
155835
|
}
|
|
155881
|
-
var webViewRef = (0,
|
|
155836
|
+
var webViewRef = (0, import_react28.useRef)(null);
|
|
155882
155837
|
var webBackHandler = useWebBackHandler(webViewRef);
|
|
155883
|
-
var uri = (0,
|
|
155838
|
+
var uri = (0, import_react28.useMemo)(function () {
|
|
155884
155839
|
return getWebViewUri(local);
|
|
155885
155840
|
}, [local]);
|
|
155886
155841
|
var top = (0, import_private9.useSafeAreaTop)();
|
|
@@ -155889,74 +155844,66 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155889
155844
|
var global2 = getAppsInTossGlobals();
|
|
155890
155845
|
var navigationBarContext = useNavigationBarContext();
|
|
155891
155846
|
var safeAreaInsetsEmitter = useSafeAreaInsetsEmitter();
|
|
155892
|
-
var
|
|
155893
|
-
|
|
155894
|
-
allowsBackForwardNavigationGestures =
|
|
155895
|
-
setAllowsBackForwardNavigationGestures =
|
|
155847
|
+
var _ref84 = (0, import_react28.useState)(props.allowsBackForwardNavigationGestures),
|
|
155848
|
+
_ref85 = _slicedToArray(_ref84, 2),
|
|
155849
|
+
allowsBackForwardNavigationGestures = _ref85[0],
|
|
155850
|
+
setAllowsBackForwardNavigationGestures = _ref85[1];
|
|
155896
155851
|
var handler = useBridgeHandler({
|
|
155897
155852
|
onMessage: onMessage,
|
|
155898
155853
|
eventListenerMap: Object.assign({}, appsInTossEventBridges, {
|
|
155899
|
-
navigationAccessoryEvent: function navigationAccessoryEvent(
|
|
155900
|
-
var onEvent =
|
|
155901
|
-
onError =
|
|
155902
|
-
return
|
|
155854
|
+
navigationAccessoryEvent: function navigationAccessoryEvent(_ref86) {
|
|
155855
|
+
var onEvent = _ref86.onEvent,
|
|
155856
|
+
onError = _ref86.onError;
|
|
155857
|
+
return import_tds_react_native14.tdsEvent.addEventListener("navigationAccessoryEvent", {
|
|
155903
155858
|
onEvent: onEvent,
|
|
155904
155859
|
onError: onError
|
|
155905
155860
|
});
|
|
155906
155861
|
},
|
|
155907
|
-
backEvent: function backEvent(
|
|
155908
|
-
var onEvent =
|
|
155862
|
+
backEvent: function backEvent(_ref87) {
|
|
155863
|
+
var onEvent = _ref87.onEvent;
|
|
155909
155864
|
webBackHandler.addEventListener(onEvent);
|
|
155910
155865
|
return function () {
|
|
155911
155866
|
webBackHandler.removeEventListener(onEvent);
|
|
155912
155867
|
};
|
|
155913
155868
|
},
|
|
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", {
|
|
155869
|
+
updateLocationEvent: function updateLocationEvent(_ref88) {
|
|
155870
|
+
var onEvent = _ref88.onEvent,
|
|
155871
|
+
onError = _ref88.onError,
|
|
155872
|
+
options = _ref88.options;
|
|
155873
|
+
return import_native_modules22.appsInTossEvent.addEventListener("updateLocationEvent", {
|
|
155927
155874
|
onEvent: onEvent,
|
|
155928
155875
|
onError: onError,
|
|
155929
155876
|
options: options
|
|
155930
155877
|
});
|
|
155931
155878
|
},
|
|
155932
|
-
safeAreaInsetsChange: function safeAreaInsetsChange(
|
|
155933
|
-
var onEvent =
|
|
155879
|
+
safeAreaInsetsChange: function safeAreaInsetsChange(_ref89) {
|
|
155880
|
+
var onEvent = _ref89.onEvent;
|
|
155934
155881
|
safeAreaInsetsEmitter.on("safeAreaInsetsChange", onEvent);
|
|
155935
155882
|
return function () {
|
|
155936
155883
|
safeAreaInsetsEmitter.off("safeAreaInsetsChange", onEvent);
|
|
155937
155884
|
};
|
|
155938
155885
|
},
|
|
155939
|
-
appBridgeCallbackEvent: function appBridgeCallbackEvent(
|
|
155940
|
-
var onEvent =
|
|
155941
|
-
onError =
|
|
155942
|
-
options =
|
|
155943
|
-
return
|
|
155886
|
+
appBridgeCallbackEvent: function appBridgeCallbackEvent(_ref90) {
|
|
155887
|
+
var onEvent = _ref90.onEvent,
|
|
155888
|
+
onError = _ref90.onError,
|
|
155889
|
+
options = _ref90.options;
|
|
155890
|
+
return import_native_modules22.appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
|
|
155944
155891
|
onEvent: onEvent,
|
|
155945
155892
|
onError: onError,
|
|
155946
155893
|
options: options
|
|
155947
155894
|
});
|
|
155948
155895
|
},
|
|
155949
|
-
loadAdMobInterstitialAd:
|
|
155950
|
-
showAdMobInterstitialAd:
|
|
155951
|
-
loadAdMobRewardedAd:
|
|
155952
|
-
showAdMobRewardedAd:
|
|
155953
|
-
loadAppsInTossAdMob:
|
|
155954
|
-
showAppsInTossAdMob:
|
|
155955
|
-
loadFullScreenAd:
|
|
155896
|
+
loadAdMobInterstitialAd: import_native_modules22.GoogleAdMob.loadAdMobInterstitialAd,
|
|
155897
|
+
showAdMobInterstitialAd: import_native_modules22.GoogleAdMob.showAdMobInterstitialAd,
|
|
155898
|
+
loadAdMobRewardedAd: import_native_modules22.GoogleAdMob.loadAdMobRewardedAd,
|
|
155899
|
+
showAdMobRewardedAd: import_native_modules22.GoogleAdMob.showAdMobRewardedAd,
|
|
155900
|
+
loadAppsInTossAdMob: import_native_modules22.GoogleAdMob.loadAppsInTossAdMob,
|
|
155901
|
+
showAppsInTossAdMob: import_native_modules22.GoogleAdMob.showAppsInTossAdMob,
|
|
155902
|
+
loadFullScreenAd: loadFullScreenAdForWeb,
|
|
155956
155903
|
showFullScreenAd: _showFullScreenAd,
|
|
155957
155904
|
fetchTossAd: fetchTossAd,
|
|
155958
|
-
iapCreateOneTimePurchaseOrder:
|
|
155959
|
-
requestOneTimePurchase:
|
|
155905
|
+
iapCreateOneTimePurchaseOrder: import_native_modules22.IAP.createOneTimePurchaseOrder,
|
|
155906
|
+
requestOneTimePurchase: import_native_modules22.requestOneTimePurchase
|
|
155960
155907
|
}),
|
|
155961
155908
|
constantHandlerMap: Object.assign({}, appsInTossConstantBridges, {
|
|
155962
155909
|
getSafeAreaTop: function getSafeAreaTop() {
|
|
@@ -155971,21 +155918,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155971
155918
|
getSafeAreaRight: function getSafeAreaRight() {
|
|
155972
155919
|
return insets.right;
|
|
155973
155920
|
}
|
|
155974
|
-
}, Object.fromEntries(Object.entries(global2).map(function (
|
|
155975
|
-
var
|
|
155976
|
-
key =
|
|
155977
|
-
value =
|
|
155921
|
+
}, Object.fromEntries(Object.entries(global2).map(function (_ref91) {
|
|
155922
|
+
var _ref92 = _slicedToArray(_ref91, 2),
|
|
155923
|
+
key = _ref92[0],
|
|
155924
|
+
value = _ref92[1];
|
|
155978
155925
|
return [key, function () {
|
|
155979
155926
|
return value;
|
|
155980
155927
|
}];
|
|
155981
155928
|
})), {
|
|
155982
|
-
loadAdMobInterstitialAd_isSupported:
|
|
155983
|
-
showAdMobInterstitialAd_isSupported:
|
|
155984
|
-
loadAdMobRewardedAd_isSupported:
|
|
155985
|
-
showAdMobRewardedAd_isSupported:
|
|
155986
|
-
loadAppsInTossAdMob_isSupported:
|
|
155987
|
-
showAppsInTossAdMob_isSupported:
|
|
155988
|
-
loadFullScreenAd_isSupported:
|
|
155929
|
+
loadAdMobInterstitialAd_isSupported: import_native_modules22.GoogleAdMob.loadAdMobInterstitialAd.isSupported,
|
|
155930
|
+
showAdMobInterstitialAd_isSupported: import_native_modules22.GoogleAdMob.showAdMobInterstitialAd.isSupported,
|
|
155931
|
+
loadAdMobRewardedAd_isSupported: import_native_modules22.GoogleAdMob.loadAdMobRewardedAd.isSupported,
|
|
155932
|
+
showAdMobRewardedAd_isSupported: import_native_modules22.GoogleAdMob.showAdMobRewardedAd.isSupported,
|
|
155933
|
+
loadAppsInTossAdMob_isSupported: import_native_modules22.GoogleAdMob.loadAppsInTossAdMob.isSupported,
|
|
155934
|
+
showAppsInTossAdMob_isSupported: import_native_modules22.GoogleAdMob.showAppsInTossAdMob.isSupported,
|
|
155935
|
+
loadFullScreenAd_isSupported: loadFullScreenAdForWeb.isSupported,
|
|
155989
155936
|
showFullScreenAd_isSupported: _showFullScreenAd.isSupported,
|
|
155990
155937
|
fetchTossAd_isSupported: fetchTossAd.isSupported,
|
|
155991
155938
|
getDeploymentId: _env.getDeploymentId
|
|
@@ -156022,20 +155969,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156022
155969
|
fetchContacts: appsInTossAsyncBridges.fetchContacts,
|
|
156023
155970
|
getCurrentLocation: appsInTossAsyncBridges.getCurrentLocation,
|
|
156024
155971
|
openCamera: appsInTossAsyncBridges.openCamera,
|
|
156025
|
-
getStorageItem:
|
|
156026
|
-
setStorageItem:
|
|
156027
|
-
removeStorageItem:
|
|
156028
|
-
clearItems:
|
|
156029
|
-
iapGetProductItemList:
|
|
156030
|
-
iapCreateOneTimePurchaseOrder:
|
|
156031
|
-
processProductGrant:
|
|
156032
|
-
getPendingOrders:
|
|
156033
|
-
getCompletedOrRefundedOrders:
|
|
156034
|
-
completeProductGrant:
|
|
155972
|
+
getStorageItem: import_native_modules22.Storage.getItem,
|
|
155973
|
+
setStorageItem: import_native_modules22.Storage.setItem,
|
|
155974
|
+
removeStorageItem: import_native_modules22.Storage.removeItem,
|
|
155975
|
+
clearItems: import_native_modules22.Storage.clearItems,
|
|
155976
|
+
iapGetProductItemList: import_native_modules22.IAP.getProductItemList,
|
|
155977
|
+
iapCreateOneTimePurchaseOrder: import_native_modules22.iapCreateOneTimePurchaseOrder,
|
|
155978
|
+
processProductGrant: import_native_modules22.processProductGrant,
|
|
155979
|
+
getPendingOrders: import_native_modules22.IAP.getPendingOrders,
|
|
155980
|
+
getCompletedOrRefundedOrders: import_native_modules22.IAP.getCompletedOrRefundedOrders,
|
|
155981
|
+
completeProductGrant: import_native_modules22.IAP.completeProductGrant,
|
|
156035
155982
|
tossAdEventLog: tossAdEventLog
|
|
156036
155983
|
})
|
|
156037
155984
|
});
|
|
156038
|
-
var headerPropForExternalWebView = (0,
|
|
155985
|
+
var headerPropForExternalWebView = (0, import_react28.useMemo)(function () {
|
|
156039
155986
|
var _parsedNavigationBar$5;
|
|
156040
155987
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
156041
155988
|
var initialAccessoryButton = parsedNavigationBar == null ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
@@ -156057,7 +156004,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156057
156004
|
colorPreference: "light"
|
|
156058
156005
|
});
|
|
156059
156006
|
var refs = mergeRefs(handler.ref, webViewRef);
|
|
156060
|
-
(0,
|
|
156007
|
+
(0, import_react28.useEffect)(function () {
|
|
156061
156008
|
var callback = function callback() {
|
|
156062
156009
|
webBackHandler.handleWebBack();
|
|
156063
156010
|
return true;
|
|
@@ -156165,16 +156112,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156165
156112
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
156166
156113
|
"use strict";
|
|
156167
156114
|
|
|
156168
|
-
var
|
|
156169
|
-
var
|
|
156170
|
-
var
|
|
156171
|
-
var
|
|
156172
|
-
var
|
|
156173
|
-
var _excluded = ["
|
|
156174
|
-
_excluded2 = ["
|
|
156175
|
-
_excluded3 = ["
|
|
156176
|
-
_excluded4 = ["params"],
|
|
156177
|
-
_excluded5 = ["
|
|
156115
|
+
var _defineProperty = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/defineProperty");
|
|
156116
|
+
var _asyncToGenerator = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator");
|
|
156117
|
+
var _toConsumableArray = _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/toConsumableArray");
|
|
156118
|
+
var _slicedToArray = _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/slicedToArray");
|
|
156119
|
+
var _objectWithoutProperties = _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/objectWithoutProperties");
|
|
156120
|
+
var _excluded = ["log_name"],
|
|
156121
|
+
_excluded2 = ["enabled", "impression"],
|
|
156122
|
+
_excluded3 = ["params"],
|
|
156123
|
+
_excluded4 = ["children", "params"],
|
|
156124
|
+
_excluded5 = ["params"],
|
|
156125
|
+
_excluded6 = ["loggerParams", "children", "hasIOScrollView"];
|
|
156178
156126
|
var __defProp = Object.defineProperty;
|
|
156179
156127
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
156180
156128
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -156285,10 +156233,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156285
156233
|
});
|
|
156286
156234
|
},
|
|
156287
156235
|
event: function event(groupId, params) {
|
|
156236
|
+
var log_name = params.log_name,
|
|
156237
|
+
otherParams = _objectWithoutProperties(params, _excluded);
|
|
156288
156238
|
loggerFunction == null ? void 0 : loggerFunction({
|
|
156289
156239
|
log_type: "event",
|
|
156290
|
-
log_name: createLogName(groupId, params.event_type),
|
|
156291
|
-
params:
|
|
156240
|
+
log_name: log_name != null ? log_name : createLogName(groupId, params.event_type),
|
|
156241
|
+
params: otherParams
|
|
156292
156242
|
});
|
|
156293
156243
|
}
|
|
156294
156244
|
};
|
|
@@ -156394,9 +156344,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156394
156344
|
enabled = _ref7$enabled === void 0 ? true : _ref7$enabled,
|
|
156395
156345
|
_ref7$impression = _ref7.impression,
|
|
156396
156346
|
impressionType = _ref7$impression === void 0 ? "always" : _ref7$impression,
|
|
156397
|
-
props = _objectWithoutProperties(_ref7,
|
|
156347
|
+
props = _objectWithoutProperties(_ref7, _excluded2);
|
|
156398
156348
|
var params = props.params,
|
|
156399
|
-
rest = _objectWithoutProperties(props,
|
|
156349
|
+
rest = _objectWithoutProperties(props, _excluded3);
|
|
156400
156350
|
var ImpressionAreaComponent = impressionType === "on-mount" ? import_react_native.ImpressionAreaOnMount : import_react_native.ImpressionArea;
|
|
156401
156351
|
var isInFallbackProvider = (0, import_react7.useContext)(ImpressionFallbackContext);
|
|
156402
156352
|
return (0, import_jsx_runtime.jsx)(LoggingEvent, {
|
|
@@ -156460,7 +156410,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156460
156410
|
var children = _ref10.children,
|
|
156461
156411
|
_ref10$params = _ref10.params,
|
|
156462
156412
|
_params = _ref10$params === void 0 ? {} : _ref10$params,
|
|
156463
|
-
props = _objectWithoutProperties(_ref10,
|
|
156413
|
+
props = _objectWithoutProperties(_ref10, _excluded4);
|
|
156464
156414
|
var ref = (0, import_react9.useRef)(null);
|
|
156465
156415
|
var logger = useLogger();
|
|
156466
156416
|
var _params2 = usePreservedReference(_params);
|
|
@@ -156613,7 +156563,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156613
156563
|
function LoggingScreen(_ref16) {
|
|
156614
156564
|
var _ref16$params = _ref16.params,
|
|
156615
156565
|
_params = _ref16$params === void 0 ? {} : _ref16$params,
|
|
156616
|
-
props = _objectWithoutProperties(_ref16,
|
|
156566
|
+
props = _objectWithoutProperties(_ref16, _excluded5);
|
|
156617
156567
|
var _useRoutePath = useRoutePath(),
|
|
156618
156568
|
groupId = _useRoutePath.path,
|
|
156619
156569
|
search = _useRoutePath.search;
|
|
@@ -156755,7 +156705,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156755
156705
|
children = _ref18.children,
|
|
156756
156706
|
_ref18$hasIOScrollVie = _ref18.hasIOScrollView,
|
|
156757
156707
|
hasIOScrollView = _ref18$hasIOScrollVie === void 0 ? true : _ref18$hasIOScrollVie,
|
|
156758
|
-
props = _objectWithoutProperties(_ref18,
|
|
156708
|
+
props = _objectWithoutProperties(_ref18, _excluded6);
|
|
156759
156709
|
var hasIntersectionObserver = (0, import_react14.isValidElement)(children) && children.type === import_react_native6.IOScrollView;
|
|
156760
156710
|
return (0, import_jsx_runtime5.jsx)(LoggingScreen, {
|
|
156761
156711
|
params: loggerParams,
|
|
@@ -156775,18 +156725,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156775
156725
|
Analytics: _Analytics,
|
|
156776
156726
|
withLoggingScreen: _withLoggingScreen
|
|
156777
156727
|
});
|
|
156778
|
-
},1258,[
|
|
156728
|
+
},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
156729
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
156780
156730
|
"use strict";
|
|
156781
156731
|
|
|
156782
156732
|
var _slicedToArray = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/slicedToArray");
|
|
156783
156733
|
var _objectWithoutProperties = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties");
|
|
156784
|
-
var
|
|
156785
|
-
var
|
|
156786
|
-
var
|
|
156787
|
-
var
|
|
156788
|
-
var
|
|
156789
|
-
var
|
|
156734
|
+
var _classCallCheck = _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck");
|
|
156735
|
+
var _createClass = _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass");
|
|
156736
|
+
var _possibleConstructorReturn = _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn");
|
|
156737
|
+
var _getPrototypeOf = _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf");
|
|
156738
|
+
var _inherits = _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/inherits");
|
|
156739
|
+
var _asyncToGenerator = _$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/asyncToGenerator");
|
|
156790
156740
|
var _excluded = ["onSuccess", "onError"];
|
|
156791
156741
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
156792
156742
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
@@ -156978,32 +156928,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156978
156928
|
}
|
|
156979
156929
|
});
|
|
156980
156930
|
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);
|
|
156931
|
+
var import_react_native6 = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
157003
156932
|
var import_types = _$$_REQUIRE(_dependencyMap[9], "@apps-in-toss/types");
|
|
157004
|
-
var
|
|
157005
|
-
var
|
|
157006
|
-
var Module =
|
|
156933
|
+
var import_react_native3 = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
156934
|
+
var import_react_native = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
156935
|
+
var Module = import_react_native.TurboModuleRegistry.getEnforcing("AppsInTossModule");
|
|
157007
156936
|
var AppsInTossModuleInstance = Module;
|
|
157008
156937
|
var _AppsInTossModule = Module;
|
|
157009
156938
|
function openPermissionDialog(permission) {
|
|
@@ -157028,22 +156957,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157028
156957
|
});
|
|
157029
156958
|
return _requestPermission.apply(this, arguments);
|
|
157030
156959
|
}
|
|
157031
|
-
var
|
|
157032
|
-
var nativeEventEmitter = new
|
|
156960
|
+
var import_react_native2 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
156961
|
+
var nativeEventEmitter = new import_react_native2.NativeEventEmitter(AppsInTossModuleInstance);
|
|
157033
156962
|
var UpdateLocationEvent = function (_import_react_native) {
|
|
157034
156963
|
function UpdateLocationEvent() {
|
|
157035
|
-
var
|
|
156964
|
+
var _this;
|
|
157036
156965
|
_classCallCheck(this, UpdateLocationEvent);
|
|
157037
|
-
for (var
|
|
157038
|
-
args[
|
|
156966
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
156967
|
+
args[_key] = arguments[_key];
|
|
157039
156968
|
}
|
|
157040
|
-
|
|
157041
|
-
|
|
157042
|
-
|
|
157043
|
-
|
|
156969
|
+
_this = _callSuper(this, UpdateLocationEvent, [].concat(args));
|
|
156970
|
+
_this.name = "updateLocationEvent";
|
|
156971
|
+
_this.subscriptionCount = 0;
|
|
156972
|
+
_this.ref = {
|
|
157044
156973
|
remove: function remove() {}
|
|
157045
156974
|
};
|
|
157046
|
-
return
|
|
156975
|
+
return _this;
|
|
157047
156976
|
}
|
|
157048
156977
|
_inherits(UpdateLocationEvent, _import_react_native);
|
|
157049
156978
|
return _createClass(UpdateLocationEvent, [{
|
|
@@ -157057,7 +156986,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157057
156986
|
}, {
|
|
157058
156987
|
key: "listener",
|
|
157059
156988
|
value: function listener(options, onEvent, onError) {
|
|
157060
|
-
var
|
|
156989
|
+
var _this2 = this;
|
|
157061
156990
|
requestPermission({
|
|
157062
156991
|
name: "geolocation",
|
|
157063
156992
|
access: "access"
|
|
@@ -157068,25 +156997,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157068
156997
|
}
|
|
157069
156998
|
void AppsInTossModuleInstance.startUpdateLocation(options).catch(onError);
|
|
157070
156999
|
var subscription = nativeEventEmitter.addListener("updateLocation", onEvent);
|
|
157071
|
-
|
|
157000
|
+
_this2.ref = {
|
|
157072
157001
|
remove: function remove() {
|
|
157073
157002
|
return subscription == null ? void 0 : subscription.remove();
|
|
157074
157003
|
}
|
|
157075
157004
|
};
|
|
157076
|
-
|
|
157005
|
+
_this2.subscriptionCount++;
|
|
157077
157006
|
}).catch(onError);
|
|
157078
157007
|
}
|
|
157079
157008
|
}]);
|
|
157080
|
-
}(
|
|
157081
|
-
var
|
|
157009
|
+
}(import_react_native3.GraniteEventDefinition);
|
|
157010
|
+
var import_react_native4 = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
157082
157011
|
function generateUUID(placeholder) {
|
|
157083
157012
|
return placeholder ? (placeholder ^ Math.random() * 16 >> placeholder / 4).toString(16) : (String(1e7) + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, generateUUID);
|
|
157084
157013
|
}
|
|
157085
157014
|
var INTERNAL__callbacks = new Map();
|
|
157086
157015
|
function invokeAppBridgeCallback(id) {
|
|
157087
157016
|
var callback = INTERNAL__callbacks.get(id);
|
|
157088
|
-
for (var
|
|
157089
|
-
args[
|
|
157017
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
157018
|
+
args[_key2 - 1] = arguments[_key2];
|
|
157090
157019
|
}
|
|
157091
157020
|
callback == null ? void 0 : callback.call.apply(callback, [null].concat(args));
|
|
157092
157021
|
return Boolean(callback);
|
|
@@ -157150,12 +157079,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157150
157079
|
var UNSAFE__nativeEventEmitter = nativeEventEmitter;
|
|
157151
157080
|
var AppBridgeCallbackEvent = function (_import_react_native2) {
|
|
157152
157081
|
function _AppBridgeCallbackEvent() {
|
|
157153
|
-
var
|
|
157082
|
+
var _this3;
|
|
157154
157083
|
_classCallCheck(this, _AppBridgeCallbackEvent);
|
|
157155
|
-
|
|
157156
|
-
|
|
157157
|
-
|
|
157158
|
-
return
|
|
157084
|
+
_this3 = _callSuper(this, _AppBridgeCallbackEvent);
|
|
157085
|
+
_this3.name = "appBridgeCallbackEvent";
|
|
157086
|
+
_this3.registerAppBridgeCallbackEventListener();
|
|
157087
|
+
return _this3;
|
|
157159
157088
|
}
|
|
157160
157089
|
_inherits(_AppBridgeCallbackEvent, _import_react_native2);
|
|
157161
157090
|
return _createClass(_AppBridgeCallbackEvent, [{
|
|
@@ -157182,19 +157111,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157182
157111
|
}
|
|
157183
157112
|
}
|
|
157184
157113
|
}]);
|
|
157185
|
-
}(
|
|
157186
|
-
var
|
|
157114
|
+
}(import_react_native4.GraniteEventDefinition);
|
|
157115
|
+
var import_react_native5 = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
157187
157116
|
var VisibilityChangedByTransparentServiceWebEvent = function (_import_react_native3) {
|
|
157188
157117
|
function VisibilityChangedByTransparentServiceWebEvent() {
|
|
157189
|
-
var
|
|
157118
|
+
var _this4;
|
|
157190
157119
|
_classCallCheck(this, VisibilityChangedByTransparentServiceWebEvent);
|
|
157191
|
-
for (var
|
|
157192
|
-
args[
|
|
157120
|
+
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
157121
|
+
args[_key3] = arguments[_key3];
|
|
157193
157122
|
}
|
|
157194
|
-
|
|
157195
|
-
|
|
157196
|
-
|
|
157197
|
-
return
|
|
157123
|
+
_this4 = _callSuper(this, VisibilityChangedByTransparentServiceWebEvent, [].concat(args));
|
|
157124
|
+
_this4.name = "onVisibilityChangedByTransparentServiceWeb";
|
|
157125
|
+
_this4.subscription = null;
|
|
157126
|
+
return _this4;
|
|
157198
157127
|
}
|
|
157199
157128
|
_inherits(VisibilityChangedByTransparentServiceWebEvent, _import_react_native3);
|
|
157200
157129
|
return _createClass(VisibilityChangedByTransparentServiceWebEvent, [{
|
|
@@ -157207,9 +157136,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157207
157136
|
}, {
|
|
157208
157137
|
key: "listener",
|
|
157209
157138
|
value: function listener(options, onEvent, onError) {
|
|
157210
|
-
var
|
|
157139
|
+
var _this5 = this;
|
|
157211
157140
|
var subscription = nativeEventEmitter.addListener("visibilityChangedByTransparentServiceWeb", function (params) {
|
|
157212
|
-
if (
|
|
157141
|
+
if (_this5.isVisibilityChangedByTransparentServiceWebResult(params)) {
|
|
157213
157142
|
if (params.callbackId === options.callbackId) {
|
|
157214
157143
|
onEvent(params.isVisible);
|
|
157215
157144
|
}
|
|
@@ -157225,13 +157154,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157225
157154
|
return typeof params === "object" && typeof params.callbackId === "string" && typeof params.isVisible === "boolean";
|
|
157226
157155
|
}
|
|
157227
157156
|
}]);
|
|
157228
|
-
}(
|
|
157229
|
-
var _appsInTossEvent = new
|
|
157157
|
+
}(import_react_native5.GraniteEventDefinition);
|
|
157158
|
+
var _appsInTossEvent = new import_react_native6.GraniteEvent([new UpdateLocationEvent(), new AppBridgeCallbackEvent(), new VisibilityChangedByTransparentServiceWebEvent()]);
|
|
157230
157159
|
var import_es_toolkit = _$$_REQUIRE(_dependencyMap[11], "es-toolkit");
|
|
157231
157160
|
function _getOperationalEnvironment() {
|
|
157232
157161
|
return _AppsInTossModule.operationalEnvironment;
|
|
157233
157162
|
}
|
|
157234
|
-
var
|
|
157163
|
+
var import_react_native7 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
157235
157164
|
var SEMVER_REGEX = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\\-]+(?:\.[\da-z\\-]+)*))?(?:\+[\da-z\\-]+(?:\.[\da-z\\-]+)*)?)?)?$/i;
|
|
157236
157165
|
var isWildcard = function isWildcard(val) {
|
|
157237
157166
|
return ["*", "x", "X"].includes(val);
|
|
@@ -157314,7 +157243,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157314
157243
|
return true;
|
|
157315
157244
|
}
|
|
157316
157245
|
var currentVersion = _AppsInTossModule.tossAppVersion;
|
|
157317
|
-
var isIOS =
|
|
157246
|
+
var isIOS = import_react_native7.Platform.OS === "ios";
|
|
157318
157247
|
var minVersion = isIOS ? minVersions.ios : minVersions.android;
|
|
157319
157248
|
if (minVersion === void 0) {
|
|
157320
157249
|
return false;
|
|
@@ -157476,10 +157405,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157476
157405
|
showAdMobInterstitialAd.isSupported = createIsSupported();
|
|
157477
157406
|
showAdMobRewardedAd.isSupported = createIsSupported();
|
|
157478
157407
|
var import_es_toolkit2 = _$$_REQUIRE(_dependencyMap[11], "es-toolkit");
|
|
157479
|
-
var
|
|
157408
|
+
var import_react_native8 = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
157480
157409
|
function getReferrer() {
|
|
157481
157410
|
try {
|
|
157482
|
-
return new URL((0,
|
|
157411
|
+
return new URL((0, import_react_native8.getSchemeUri)()).searchParams.get("referrer");
|
|
157483
157412
|
} catch (_unused) {
|
|
157484
157413
|
return null;
|
|
157485
157414
|
}
|
|
@@ -158019,7 +157948,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158019
157948
|
removeItem: removeItem,
|
|
158020
157949
|
clearItems: clearItems
|
|
158021
157950
|
};
|
|
158022
|
-
var
|
|
157951
|
+
var import_react_native9 = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
158023
157952
|
var GAME_CENTER_MIN_VERSION = {
|
|
158024
157953
|
android: "5.221.0",
|
|
158025
157954
|
ios: "5.221.0"
|
|
@@ -158052,7 +157981,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158052
157981
|
var url = new URL("servicetoss://game-center/leaderboard?_navbar=hide");
|
|
158053
157982
|
url.searchParams.set("appName", appName);
|
|
158054
157983
|
url.searchParams.set("referrer", "appsintoss." + appName);
|
|
158055
|
-
return (0,
|
|
157984
|
+
return (0, import_react_native9.openURL)(url.toString());
|
|
158056
157985
|
});
|
|
158057
157986
|
return _openGameCenterLeaderboard2.apply(this, arguments);
|
|
158058
157987
|
}
|
|
@@ -158220,8 +158149,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158220
158149
|
function _onVisibilityChangedByTransparentServiceWeb(eventParams) {
|
|
158221
158150
|
return _appsInTossEvent.addEventListener("onVisibilityChangedByTransparentServiceWeb", eventParams);
|
|
158222
158151
|
}
|
|
158223
|
-
var
|
|
158224
|
-
var _BedrockModule =
|
|
158152
|
+
var import_react_native10 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
158153
|
+
var _BedrockModule = import_react_native10.NativeModules.BedrockModule;
|
|
158225
158154
|
function _closeView() {
|
|
158226
158155
|
return _closeView2.apply(this, arguments);
|
|
158227
158156
|
}
|
|
@@ -158231,11 +158160,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158231
158160
|
});
|
|
158232
158161
|
return _closeView2.apply(this, arguments);
|
|
158233
158162
|
}
|
|
158234
|
-
var
|
|
158163
|
+
var import_react_native11 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
158235
158164
|
function _getLocale() {
|
|
158236
158165
|
var _BedrockModule$Device, _BedrockModule$Device2;
|
|
158237
158166
|
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 (
|
|
158167
|
+
if (import_react_native11.Platform.OS === "android") {
|
|
158239
158168
|
return replaceUnderbarToHypen(locale);
|
|
158240
158169
|
}
|
|
158241
158170
|
return locale;
|
|
@@ -158285,18 +158214,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158285
158214
|
});
|
|
158286
158215
|
return _setIosSwipeGestureEnabled2.apply(this, arguments);
|
|
158287
158216
|
}
|
|
158288
|
-
var
|
|
158217
|
+
var import_react_native12 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
158289
158218
|
function openURL2(url) {
|
|
158290
|
-
return
|
|
158219
|
+
return import_react_native12.Linking.openURL(url);
|
|
158291
158220
|
}
|
|
158292
|
-
var
|
|
158221
|
+
var import_react_native13 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
158293
158222
|
function _getPlatformOS() {
|
|
158294
|
-
return
|
|
158223
|
+
return import_react_native13.Platform.OS;
|
|
158295
158224
|
}
|
|
158225
|
+
var import_react_native14 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
158226
|
+
var _BedrockCoreModule = import_react_native14.NativeModules.BedrockCoreModule;
|
|
158296
158227
|
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;
|
|
158228
|
+
var TossCoreModule = import_react_native15.NativeModules.TossCoreModule;
|
|
158300
158229
|
function tossCoreEventLog(params) {
|
|
158301
158230
|
var supported = _isMinVersionSupported({
|
|
158302
158231
|
ios: "5.210.0",
|
|
@@ -158370,7 +158299,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158370
158299
|
startUpdateLocation: _startUpdateLocation,
|
|
158371
158300
|
submitGameCenterLeaderBoardScore: _submitGameCenterLeaderBoardScore
|
|
158372
158301
|
});
|
|
158373
|
-
},1259,[61,207,
|
|
158302
|
+
},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
158303
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
158375
158304
|
"use strict";
|
|
158376
158305
|
|
|
@@ -233279,7 +233208,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233279
233208
|
}
|
|
233280
233209
|
});
|
|
233281
233210
|
});
|
|
233282
|
-
},2612,[2613,
|
|
233211
|
+
},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
233212
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233284
233213
|
Object.defineProperty(exports, "__esModule", {
|
|
233285
233214
|
value: true
|
|
@@ -233292,54 +233221,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233292
233221
|
}
|
|
233293
233222
|
startUpdateLocation.openPermissionDialog = _nativeModules.getCurrentLocation.openPermissionDialog;
|
|
233294
233223
|
startUpdateLocation.getPermission = _nativeModules.getCurrentLocation.getPermission;
|
|
233295
|
-
},2613,[2614,
|
|
233224
|
+
},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
233225
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233297
233226
|
Object.defineProperty(exports, "__esModule", {
|
|
233298
233227
|
value: true
|
|
233299
233228
|
});
|
|
233300
233229
|
exports.appsInTossEvent = void 0;
|
|
233301
233230
|
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");
|
|
233231
|
+
var _UpdateLocationEvent = _$$_REQUIRE(_dependencyMap[1], "./event-plugins/UpdateLocationEvent");
|
|
233232
|
+
var _AppBridgeCallbackEvent = _$$_REQUIRE(_dependencyMap[2], "./internal/AppBridgeCallbackEvent");
|
|
233233
|
+
var _VisibilityChangedByTransparentServiceWebEvent = _$$_REQUIRE(_dependencyMap[3], "./internal/VisibilityChangedByTransparentServiceWebEvent");
|
|
233234
|
+
var appsInTossEvent = exports.appsInTossEvent = new _reactNative.GraniteEvent([new _UpdateLocationEvent.UpdateLocationEvent(), new _AppBridgeCallbackEvent.AppBridgeCallbackEvent(), new _VisibilityChangedByTransparentServiceWebEvent.VisibilityChangedByTransparentServiceWebEvent()]);
|
|
233235
|
+
},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
233236
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233344
233237
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
233345
233238
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -233406,7 +233299,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233406
233299
|
}
|
|
233407
233300
|
}]);
|
|
233408
233301
|
}(_reactNative.GraniteEventDefinition);
|
|
233409
|
-
},
|
|
233302
|
+
},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
233303
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233411
233304
|
Object.defineProperty(exports, "__esModule", {
|
|
233412
233305
|
value: true
|
|
@@ -233415,7 +233308,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233415
233308
|
var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native");
|
|
233416
233309
|
var _AppsInTossModule = _$$_REQUIRE(_dependencyMap[1], "../native-modules/AppsInTossModule");
|
|
233417
233310
|
var nativeEventEmitter = exports.nativeEventEmitter = new _reactNative.NativeEventEmitter(_AppsInTossModule.AppsInTossModuleInstance);
|
|
233418
|
-
},
|
|
233311
|
+
},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
233312
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233420
233313
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
233421
233314
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -233468,7 +233361,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233468
233361
|
}
|
|
233469
233362
|
}]);
|
|
233470
233363
|
}(_reactNative.GraniteEventDefinition);
|
|
233471
|
-
},
|
|
233364
|
+
},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
233365
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233473
233366
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
233474
233367
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -233545,7 +233438,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233545
233438
|
unregisterCallback: unregisterCallback,
|
|
233546
233439
|
getCallbackIds: getCallbackIds
|
|
233547
233440
|
};
|
|
233548
|
-
},
|
|
233441
|
+
},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
233442
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233550
233443
|
Object.defineProperty(exports, "__esModule", {
|
|
233551
233444
|
value: true
|
|
@@ -233554,7 +233447,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233554
233447
|
function generateUUID(placeholder) {
|
|
233555
233448
|
return placeholder ? (placeholder ^ Math.random() * 16 >> placeholder / 4).toString(16) : (String(1e7) + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, generateUUID);
|
|
233556
233449
|
}
|
|
233557
|
-
},
|
|
233450
|
+
},2619,[],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/utils/generateUUID.ts");
|
|
233558
233451
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233559
233452
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
233560
233453
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -233612,7 +233505,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233612
233505
|
}
|
|
233613
233506
|
}]);
|
|
233614
233507
|
}(_reactNative.GraniteEventDefinition);
|
|
233615
|
-
},
|
|
233508
|
+
},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
233509
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233617
233510
|
Object.defineProperty(exports, "__esModule", {
|
|
233618
233511
|
value: true
|
|
@@ -233952,7 +233845,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233952
233845
|
loadAppsInTossAdMob: _googleAdMobV.loadAppsInTossAdMob,
|
|
233953
233846
|
showAppsInTossAdMob: _googleAdMobV.showAppsInTossAdMob
|
|
233954
233847
|
};
|
|
233955
|
-
},2622,
|
|
233848
|
+
},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
233849
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233957
233850
|
Object.defineProperty(exports, "__esModule", {
|
|
233958
233851
|
value: true
|
|
@@ -234113,7 +234006,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234113
234006
|
loadAdMobRewardedAd.isSupported = createIsSupported();
|
|
234114
234007
|
showAdMobInterstitialAd.isSupported = createIsSupported();
|
|
234115
234008
|
showAdMobRewardedAd.isSupported = createIsSupported();
|
|
234116
|
-
},
|
|
234009
|
+
},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
234010
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234118
234011
|
Object.defineProperty(exports, "__esModule", {
|
|
234119
234012
|
value: true
|
|
@@ -234216,7 +234109,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234216
234109
|
}
|
|
234217
234110
|
loadAppsInTossAdMob.isSupported = createIsSupported();
|
|
234218
234111
|
showAppsInTossAdMob.isSupported = createIsSupported();
|
|
234219
|
-
},
|
|
234112
|
+
},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
234113
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234221
234114
|
Object.defineProperty(exports, "__esModule", {
|
|
234222
234115
|
value: true
|
|
@@ -234230,7 +234123,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234230
234123
|
return null;
|
|
234231
234124
|
}
|
|
234232
234125
|
}
|
|
234233
|
-
},
|
|
234126
|
+
},2624,[2],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/utils/getReferrer.ts");
|
|
234234
234127
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234235
234128
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
234236
234129
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -234425,7 +234318,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234425
234318
|
getCompletedOrRefundedOrders: getCompletedOrRefundedOrders,
|
|
234426
234319
|
completeProductGrant: completeProductGrant
|
|
234427
234320
|
};
|
|
234428
|
-
},
|
|
234321
|
+
},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
234322
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234430
234323
|
Object.defineProperty(exports, "__esModule", {
|
|
234431
234324
|
value: true
|
|
@@ -234457,7 +234350,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234457
234350
|
removeItem: removeItem,
|
|
234458
234351
|
clearItems: clearItems
|
|
234459
234352
|
};
|
|
234460
|
-
},
|
|
234353
|
+
},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
234354
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234462
234355
|
Object.defineProperty(exports, "__esModule", {
|
|
234463
234356
|
value: true
|
|
@@ -234493,7 +234386,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234493
234386
|
});
|
|
234494
234387
|
return unregisterCallbacks;
|
|
234495
234388
|
}
|
|
234496
|
-
},
|
|
234389
|
+
},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
234390
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234498
234391
|
Object.defineProperty(exports, "__esModule", {
|
|
234499
234392
|
value: true
|
|
@@ -234503,7 +234396,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234503
234396
|
function onVisibilityChangedByTransparentServiceWeb(eventParams) {
|
|
234504
234397
|
return _appsInTossEvent.appsInTossEvent.addEventListener('onVisibilityChangedByTransparentServiceWeb', eventParams);
|
|
234505
234398
|
}
|
|
234506
|
-
},
|
|
234399
|
+
},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
234400
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234508
234401
|
Object.defineProperty(exports, "__esModule", {
|
|
234509
234402
|
value: true
|
|
@@ -234518,7 +234411,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234518
234411
|
context.keys = function () {
|
|
234519
234412
|
return Array.from(files.keys());
|
|
234520
234413
|
};
|
|
234521
|
-
},2630,
|
|
234414
|
+
},2629,[2630,2631],"react-native/context.ts");
|
|
234522
234415
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234523
234416
|
Object.defineProperty(exports, "__esModule", {
|
|
234524
234417
|
value: true
|
|
@@ -234551,7 +234444,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234551
234444
|
})
|
|
234552
234445
|
});
|
|
234553
234446
|
}
|
|
234554
|
-
},
|
|
234447
|
+
},2630,[1256,18,9],"react-native/pages/index.tsx");
|
|
234555
234448
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234556
234449
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
234557
234450
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -234564,6 +234457,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234564
234457
|
}
|
|
234565
234458
|
});
|
|
234566
234459
|
var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./index"));
|
|
234567
|
-
},
|
|
234460
|
+
},2631,[1,2630],"react-native/pages/_404.tsx");
|
|
234568
234461
|
__r(134);
|
|
234569
234462
|
__r(0);
|