@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
|
@@ -153312,7 +153312,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153312
153312
|
var _default = exports.default = _framework.AppsInToss.registerApp(AppContainer, {
|
|
153313
153313
|
context: _context.context
|
|
153314
153314
|
});
|
|
153315
|
-
},1255,[1256,
|
|
153315
|
+
},1255,[1256,2630,9],"react-native/src/_app.tsx");
|
|
153316
153316
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
153317
153317
|
"use strict";
|
|
153318
153318
|
|
|
@@ -153413,9 +153413,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153413
153413
|
module.exports = __toCommonJS(src_exports);
|
|
153414
153414
|
var import_analytics2 = _$$_REQUIRE(_dependencyMap[7], "@apps-in-toss/analytics");
|
|
153415
153415
|
var import_analytics = _$$_REQUIRE(_dependencyMap[7], "@apps-in-toss/analytics");
|
|
153416
|
-
var
|
|
153416
|
+
var import_native_modules13 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153417
153417
|
var import_react_native23 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153418
|
-
var
|
|
153418
|
+
var import_tds_react_native10 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153419
153419
|
var import_react_native24 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
153420
153420
|
var import_native_modules2 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153421
153421
|
var import_react_native4 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
@@ -153595,52 +153595,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153595
153595
|
}
|
|
153596
153596
|
return context;
|
|
153597
153597
|
}
|
|
153598
|
-
var
|
|
153599
|
-
var
|
|
153600
|
-
var import_react6 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153601
|
-
function toIcon(source) {
|
|
153602
|
-
return source.startsWith("http") ? {
|
|
153603
|
-
source: {
|
|
153604
|
-
uri: source
|
|
153605
|
-
}
|
|
153606
|
-
} : {
|
|
153607
|
-
name: source
|
|
153608
|
-
};
|
|
153609
|
-
}
|
|
153610
|
-
function useAppsInTossBridge() {
|
|
153611
|
-
var controller = (0, import_tds_react_native.useBridge)();
|
|
153612
|
-
var appsInTossGlobals = getAppsInTossGlobals();
|
|
153613
|
-
(0, import_react6.useEffect)(function () {
|
|
153614
|
-
var isGameApp = appsInTossGlobals.webViewType === "game" || appsInTossGlobals.appType === "game";
|
|
153615
|
-
controller.open({
|
|
153616
|
-
serviceName: appsInTossGlobals.brandDisplayName,
|
|
153617
|
-
icon: toIcon(appsInTossGlobals.brandIcon),
|
|
153618
|
-
color: appsInTossGlobals.brandPrimaryColor,
|
|
153619
|
-
colorMode: isGameApp ? "inverted" : appsInTossGlobals.brandBridgeColorMode,
|
|
153620
|
-
onExited: function onExited() {
|
|
153621
|
-
import_native_modules3.appsInTossEvent.emit("entryMessageExited", void 0);
|
|
153622
|
-
}
|
|
153623
|
-
});
|
|
153624
|
-
}, []);
|
|
153625
|
-
}
|
|
153626
|
-
var import_native_modules13 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153627
|
-
var import_react18 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153598
|
+
var import_native_modules12 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153599
|
+
var import_react17 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153628
153600
|
var import_react_native22 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
153629
|
-
var
|
|
153601
|
+
var import_native_modules6 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153630
153602
|
var import_react_native10 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153631
|
-
var
|
|
153603
|
+
var import_tds_react_native4 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153632
153604
|
var import_es_hangul = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
153633
|
-
var
|
|
153605
|
+
var import_react11 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153634
153606
|
var import_react_native11 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
153635
153607
|
var GAME_PROFILE_WEBVIEW_URL = "servicetoss://game-center/profile";
|
|
153636
153608
|
var GAME_MIN_VERSION = {
|
|
153637
153609
|
android: "5.232.0",
|
|
153638
153610
|
ios: "5.232.0"
|
|
153639
153611
|
};
|
|
153640
|
-
var
|
|
153612
|
+
var import_native_modules3 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153641
153613
|
var import_react_native7 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153642
|
-
var
|
|
153643
|
-
var
|
|
153614
|
+
var import_tds_react_native = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153615
|
+
var import_react6 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153644
153616
|
var import_react_native6 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
153645
153617
|
var PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
|
|
153646
153618
|
var APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
|
|
@@ -153648,10 +153620,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153648
153620
|
return import_react_native6.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
|
|
153649
153621
|
};
|
|
153650
153622
|
function useAppUpdateDialog() {
|
|
153651
|
-
var _ref5 = (0,
|
|
153623
|
+
var _ref5 = (0, import_tds_react_native.useDialog)(),
|
|
153652
153624
|
openConfirm = _ref5.openConfirm;
|
|
153653
153625
|
var logging = useAppUpdateDialogLogging();
|
|
153654
|
-
var openAppUpdateDialog = (0,
|
|
153626
|
+
var openAppUpdateDialog = (0, import_react6.useCallback)(function () {
|
|
153655
153627
|
var _ref7 = _asyncToGenerator(function* (_ref6) {
|
|
153656
153628
|
var title = _ref6.title,
|
|
153657
153629
|
description = _ref6.description,
|
|
@@ -153696,7 +153668,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153696
153668
|
app_name: import_react_native7.Granite.appName
|
|
153697
153669
|
};
|
|
153698
153670
|
var logUpdateClick = function logUpdateClick() {
|
|
153699
|
-
|
|
153671
|
+
import_native_modules3.INTERNAL__module.tossCoreEventLog({
|
|
153700
153672
|
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
153701
153673
|
log_type: "event",
|
|
153702
153674
|
params: Object.assign({}, baseParams, {
|
|
@@ -153707,7 +153679,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153707
153679
|
});
|
|
153708
153680
|
};
|
|
153709
153681
|
var logCloseClick = function logCloseClick() {
|
|
153710
|
-
|
|
153682
|
+
import_native_modules3.INTERNAL__module.tossCoreEventLog({
|
|
153711
153683
|
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
153712
153684
|
log_type: "event",
|
|
153713
153685
|
params: Object.assign({}, baseParams, {
|
|
@@ -153718,7 +153690,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153718
153690
|
});
|
|
153719
153691
|
};
|
|
153720
153692
|
var logDialogShow = function logDialogShow() {
|
|
153721
|
-
|
|
153693
|
+
import_native_modules3.INTERNAL__module.tossCoreEventLog({
|
|
153722
153694
|
log_name: UPDATE_DIALOG_LOG_NAME,
|
|
153723
153695
|
log_type: "popup",
|
|
153724
153696
|
params: Object.assign({}, baseParams, {
|
|
@@ -153732,19 +153704,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153732
153704
|
show: logDialogShow
|
|
153733
153705
|
};
|
|
153734
153706
|
}
|
|
153735
|
-
var
|
|
153736
|
-
var
|
|
153707
|
+
var import_native_modules5 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153708
|
+
var import_react10 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153737
153709
|
var import_react_native8 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153738
|
-
var
|
|
153739
|
-
var
|
|
153710
|
+
var import_tds_react_native2 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153711
|
+
var import_react7 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153740
153712
|
var DEFAULT_ERROR = {
|
|
153741
153713
|
title: "\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",
|
|
153742
153714
|
description: "\uBB38\uC81C\uAC00 \uACC4\uC18D\uB418\uBA74 \uD1A0\uC2A4 \uACE0\uAC1D\uC13C\uD130(1599-4905)\uB85C \uBB38\uC758\uD574\uC8FC\uC138\uC694."
|
|
153743
153715
|
};
|
|
153744
153716
|
var useErrorAlert = function useErrorAlert() {
|
|
153745
|
-
var _ref8 = (0,
|
|
153717
|
+
var _ref8 = (0, import_tds_react_native2.useDialog)(),
|
|
153746
153718
|
openAlert = _ref8.openAlert;
|
|
153747
|
-
var openErrorAlert = (0,
|
|
153719
|
+
var openErrorAlert = (0, import_react7.useCallback)(_asyncToGenerator(function* () {
|
|
153748
153720
|
yield openAlert({
|
|
153749
153721
|
title: DEFAULT_ERROR.title,
|
|
153750
153722
|
description: DEFAULT_ERROR.description
|
|
@@ -153755,10 +153727,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153755
153727
|
open: openErrorAlert
|
|
153756
153728
|
};
|
|
153757
153729
|
};
|
|
153758
|
-
var
|
|
153730
|
+
var import_react8 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153759
153731
|
var import_react_native9 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153760
|
-
var
|
|
153761
|
-
var _INTERNAL__onVisibilityChangedByTransparentServiceWeb =
|
|
153732
|
+
var import_native_modules4 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153733
|
+
var _INTERNAL__onVisibilityChangedByTransparentServiceWeb = import_native_modules4.onVisibilityChangedByTransparentServiceWeb;
|
|
153762
153734
|
var openTransparentWebView = function openTransparentWebView(_ref10) {
|
|
153763
153735
|
var webUrl = _ref10.webUrl,
|
|
153764
153736
|
_ref10$cleanupWhenDis = _ref10.cleanupWhenDismissed,
|
|
@@ -153795,13 +153767,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153795
153767
|
(0, import_react_native9.openURL)(url.toString());
|
|
153796
153768
|
};
|
|
153797
153769
|
var useTransparentWebview = function useTransparentWebview() {
|
|
153798
|
-
var _ref13 = (0,
|
|
153770
|
+
var _ref13 = (0, import_react8.useState)(false),
|
|
153799
153771
|
_ref14 = _slicedToArray(_ref13, 2),
|
|
153800
153772
|
isWebviewLoading = _ref14[0],
|
|
153801
153773
|
setIsWebviewLoading = _ref14[1];
|
|
153802
153774
|
var _useErrorAlert = useErrorAlert(),
|
|
153803
153775
|
openErrorAlert = _useErrorAlert.open;
|
|
153804
|
-
var _openTransparentWebview = (0,
|
|
153776
|
+
var _openTransparentWebview = (0, import_react8.useCallback)(function (_ref15) {
|
|
153805
153777
|
var webUrl = _ref15.webUrl,
|
|
153806
153778
|
onClose = _ref15.onClose,
|
|
153807
153779
|
_onError2 = _ref15.onError;
|
|
@@ -153837,13 +153809,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153837
153809
|
open: _openTransparentWebview
|
|
153838
153810
|
};
|
|
153839
153811
|
};
|
|
153840
|
-
var
|
|
153812
|
+
var import_tds_react_native3 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153841
153813
|
var import_private2 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
153842
|
-
var
|
|
153814
|
+
var import_react9 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153843
153815
|
var import_jsx_runtime3 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
153844
153816
|
var useGameProfileToast = function useGameProfileToast() {
|
|
153845
153817
|
var overlay = (0, import_private2.useOverlay)();
|
|
153846
|
-
var openGameProfileToast = (0,
|
|
153818
|
+
var openGameProfileToast = (0, import_react9.useCallback)(function (nickname, profileImageUri) {
|
|
153847
153819
|
return new Promise(function (resolve) {
|
|
153848
153820
|
overlay.open(function (_ref16) {
|
|
153849
153821
|
var isOpen = _ref16.isOpen,
|
|
@@ -153852,7 +153824,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153852
153824
|
return (0, import_jsx_runtime3.jsx)(import_private2.ColorPreferenceProvider, {
|
|
153853
153825
|
colorPreference: "dark",
|
|
153854
153826
|
children: (0, import_jsx_runtime3.jsx)(import_private2.AdaptiveColorProvider, {
|
|
153855
|
-
children: (0, import_jsx_runtime3.jsx)(
|
|
153827
|
+
children: (0, import_jsx_runtime3.jsx)(import_tds_react_native3.Toast, {
|
|
153856
153828
|
open: isOpen,
|
|
153857
153829
|
onClose: function onClose() {
|
|
153858
153830
|
resolve();
|
|
@@ -153861,12 +153833,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153861
153833
|
onExited: exit,
|
|
153862
153834
|
position: "top",
|
|
153863
153835
|
text: nickname + "\uB2D8 \uBC18\uAC00\uC6CC\uC694!",
|
|
153864
|
-
icon: (0, import_jsx_runtime3.jsx)(
|
|
153836
|
+
icon: (0, import_jsx_runtime3.jsx)(import_tds_react_native3.Asset.Image, {
|
|
153865
153837
|
style: {
|
|
153866
153838
|
borderRadius: 64,
|
|
153867
153839
|
overflow: "hidden"
|
|
153868
153840
|
},
|
|
153869
|
-
frameShape:
|
|
153841
|
+
frameShape: import_tds_react_native3.Asset.frameShape.CleanW32,
|
|
153870
153842
|
source: {
|
|
153871
153843
|
uri: profileImageUri
|
|
153872
153844
|
}
|
|
@@ -153881,31 +153853,31 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153881
153853
|
openGameProfileToast: openGameProfileToast
|
|
153882
153854
|
};
|
|
153883
153855
|
};
|
|
153884
|
-
var useGameCenterProfile = function useGameCenterProfile(
|
|
153885
|
-
var _ref17 = (0,
|
|
153856
|
+
var useGameCenterProfile = function useGameCenterProfile() {
|
|
153857
|
+
var _ref17 = (0, import_react10.useState)(void 0),
|
|
153886
153858
|
_ref18 = _slicedToArray(_ref17, 2),
|
|
153887
153859
|
profileData = _ref18[0],
|
|
153888
153860
|
setProfileData = _ref18[1];
|
|
153889
|
-
var _ref19 = (0,
|
|
153861
|
+
var _ref19 = (0, import_react10.useState)(true),
|
|
153890
153862
|
_ref20 = _slicedToArray(_ref19, 2),
|
|
153891
153863
|
isProfileDataLoading = _ref20[0],
|
|
153892
153864
|
setIsProfileDataLoading = _ref20[1];
|
|
153893
|
-
var _ref21 = (0,
|
|
153865
|
+
var _ref21 = (0, import_react10.useState)(false),
|
|
153894
153866
|
_ref22 = _slicedToArray(_ref21, 2),
|
|
153895
153867
|
isProfileDataRefetching = _ref22[0],
|
|
153896
153868
|
setIsProfileDataRefetching = _ref22[1];
|
|
153897
|
-
var shouldShowProfileLoadingOverlay = isProfileDataLoading
|
|
153898
|
-
var shouldShowProfileNotFoundOverlay = (profileData == null ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" &&
|
|
153899
|
-
var canShowBottomSheetOrToast = !isProfileDataLoading
|
|
153869
|
+
var shouldShowProfileLoadingOverlay = isProfileDataLoading || isProfileDataRefetching;
|
|
153870
|
+
var shouldShowProfileNotFoundOverlay = (profileData == null ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && !isProfileDataRefetching;
|
|
153871
|
+
var canShowBottomSheetOrToast = !isProfileDataLoading;
|
|
153900
153872
|
var _useGameProfileToast = useGameProfileToast(),
|
|
153901
153873
|
openGameProfileToast = _useGameProfileToast.openGameProfileToast;
|
|
153902
153874
|
var _useErrorAlert2 = useErrorAlert(),
|
|
153903
153875
|
openErrorAlert = _useErrorAlert2.open;
|
|
153904
153876
|
var _useTransparentWebvie = useTransparentWebview(),
|
|
153905
153877
|
openTransparentWebView2 = _useTransparentWebvie.open;
|
|
153906
|
-
var fetchProfileData = (0,
|
|
153878
|
+
var fetchProfileData = (0, import_react10.useCallback)(_asyncToGenerator(function* () {
|
|
153907
153879
|
try {
|
|
153908
|
-
var data = yield (0,
|
|
153880
|
+
var data = yield (0, import_native_modules5.getGameCenterGameProfile)();
|
|
153909
153881
|
setProfileData(data);
|
|
153910
153882
|
setIsProfileDataLoading(false);
|
|
153911
153883
|
} catch (_) {
|
|
@@ -153913,10 +153885,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153913
153885
|
setIsProfileDataLoading(false);
|
|
153914
153886
|
}
|
|
153915
153887
|
}), [openErrorAlert]);
|
|
153916
|
-
var refetchProfileData = (0,
|
|
153888
|
+
var refetchProfileData = (0, import_react10.useCallback)(_asyncToGenerator(function* () {
|
|
153917
153889
|
try {
|
|
153918
153890
|
setIsProfileDataRefetching(true);
|
|
153919
|
-
var data = yield (0,
|
|
153891
|
+
var data = yield (0, import_native_modules5.getGameCenterGameProfile)();
|
|
153920
153892
|
setProfileData(data);
|
|
153921
153893
|
setIsProfileDataRefetching(false);
|
|
153922
153894
|
if ((data == null ? void 0 : data.statusCode) === "SUCCESS") {
|
|
@@ -153927,7 +153899,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153927
153899
|
openErrorAlert();
|
|
153928
153900
|
}
|
|
153929
153901
|
}), [openErrorAlert, openGameProfileToast]);
|
|
153930
|
-
var openProfileWebview = (0,
|
|
153902
|
+
var openProfileWebview = (0, import_react10.useCallback)(function () {
|
|
153931
153903
|
openTransparentWebView2({
|
|
153932
153904
|
webUrl: GAME_PROFILE_WEBVIEW_URL + "?appName=" + getAppName() + "&referrer=appsintoss." + getAppName(),
|
|
153933
153905
|
onClose: function () {
|
|
@@ -153961,9 +153933,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153961
153933
|
};
|
|
153962
153934
|
var import_jsx_runtime4 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
153963
153935
|
var GameInitializer = function GameInitializer(_ref25) {
|
|
153964
|
-
var children = _ref25.children
|
|
153965
|
-
|
|
153966
|
-
var _useGameCenterProfile = useGameCenterProfile(isReadyForProfileUI),
|
|
153936
|
+
var children = _ref25.children;
|
|
153937
|
+
var _useGameCenterProfile = useGameCenterProfile(),
|
|
153967
153938
|
profileData = _useGameCenterProfile.profileData,
|
|
153968
153939
|
shouldShowProfileLoadingOverlay = _useGameCenterProfile.shouldShowProfileLoadingOverlay,
|
|
153969
153940
|
shouldShowProfileNotFoundOverlay = _useGameCenterProfile.shouldShowProfileNotFoundOverlay,
|
|
@@ -153971,13 +153942,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153971
153942
|
openProfileWebview = _useGameCenterProfile.openProfileWebview,
|
|
153972
153943
|
openGameProfileToast = _useGameCenterProfile.openGameProfileToast,
|
|
153973
153944
|
fetchProfileData = _useGameCenterProfile.fetchProfileData;
|
|
153974
|
-
var isCompletedFlow = (0,
|
|
153945
|
+
var isCompletedFlow = (0, import_react11.useRef)(false);
|
|
153975
153946
|
var _useAppUpdateDialog = useAppUpdateDialog(),
|
|
153976
153947
|
openAppUpdateDialog = _useAppUpdateDialog.open;
|
|
153977
|
-
(0,
|
|
153948
|
+
(0, import_react11.useEffect)(function () {
|
|
153978
153949
|
fetchProfileData();
|
|
153979
153950
|
}, []);
|
|
153980
|
-
(0,
|
|
153951
|
+
(0, import_react11.useEffect)(function () {
|
|
153981
153952
|
var handleGameProfileFlow = function () {
|
|
153982
153953
|
var _ref26 = _asyncToGenerator(function* () {
|
|
153983
153954
|
if (!canShowBottomSheetOrToast) {
|
|
@@ -153987,7 +153958,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153987
153958
|
return;
|
|
153988
153959
|
}
|
|
153989
153960
|
isCompletedFlow.current = true;
|
|
153990
|
-
if (!(0,
|
|
153961
|
+
if (!(0, import_native_modules6.isMinVersionSupported)(GAME_MIN_VERSION)) {
|
|
153991
153962
|
openAppUpdateDialog({
|
|
153992
153963
|
title: (0, import_es_hangul.josa)(getAppsInTossGlobals().brandDisplayName, "\uC744/\uB97C") + " \uD558\uB824\uBA74 \n\uC571\uC744 \uC5C5\uB370\uC774\uD2B8\uD574\uC8FC\uC138\uC694",
|
|
153993
153964
|
onDismiss: function onDismiss() {
|
|
@@ -154010,7 +153981,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154010
153981
|
}();
|
|
154011
153982
|
handleGameProfileFlow();
|
|
154012
153983
|
}, [canShowBottomSheetOrToast, isCompletedFlow, openAppUpdateDialog, openGameProfileToast, openProfileWebview, profileData]);
|
|
154013
|
-
if (!(0,
|
|
153984
|
+
if (!(0, import_native_modules6.isMinVersionSupported)(GAME_MIN_VERSION)) {
|
|
154014
153985
|
return (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, {
|
|
154015
153986
|
children: [(0, import_jsx_runtime4.jsx)(import_react_native11.View, {
|
|
154016
153987
|
style: {
|
|
@@ -154045,7 +154016,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154045
154016
|
alignItems: "center",
|
|
154046
154017
|
backgroundColor: "rgba(0, 0, 0, 0.2)"
|
|
154047
154018
|
}),
|
|
154048
|
-
children: (0, import_jsx_runtime4.jsx)(
|
|
154019
|
+
children: (0, import_jsx_runtime4.jsx)(import_tds_react_native4.Loader, {
|
|
154049
154020
|
size: "large",
|
|
154050
154021
|
type: "light"
|
|
154051
154022
|
})
|
|
@@ -154087,10 +154058,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154087
154058
|
zIndex: Z_INDEX.PROFILE_OVERLAY
|
|
154088
154059
|
};
|
|
154089
154060
|
var import_private5 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154090
|
-
var
|
|
154061
|
+
var import_react12 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154091
154062
|
var import_react_native12 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154092
154063
|
function useHardwareBackPress(handler) {
|
|
154093
|
-
(0,
|
|
154064
|
+
(0, import_react12.useEffect)(function () {
|
|
154094
154065
|
var handleBackPress = function handleBackPress() {
|
|
154095
154066
|
handler();
|
|
154096
154067
|
return true;
|
|
@@ -154102,16 +154073,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154102
154073
|
}, [handler]);
|
|
154103
154074
|
}
|
|
154104
154075
|
var import_react_native14 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154105
|
-
var import_react15 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154106
|
-
var import_tds_react_native6 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154107
|
-
var import_es_hangul2 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
154108
154076
|
var import_react14 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154077
|
+
var import_tds_react_native5 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154078
|
+
var import_es_hangul2 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
154079
|
+
var import_react13 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154109
154080
|
function useCloseConfirm() {
|
|
154110
154081
|
var _getAppsInTossGlobals = getAppsInTossGlobals(),
|
|
154111
154082
|
brandDisplayName = _getAppsInTossGlobals.brandDisplayName;
|
|
154112
|
-
var _ref27 = (0,
|
|
154083
|
+
var _ref27 = (0, import_tds_react_native5.useDialog)(),
|
|
154113
154084
|
openConfirm = _ref27.openConfirm;
|
|
154114
|
-
return (0,
|
|
154085
|
+
return (0, import_react13.useCallback)(function () {
|
|
154115
154086
|
var _ref29 = _asyncToGenerator(function* (_ref28) {
|
|
154116
154087
|
var onEntered = _ref28.onEntered;
|
|
154117
154088
|
return yield openConfirm({
|
|
@@ -154127,7 +154098,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154127
154098
|
};
|
|
154128
154099
|
}(), [brandDisplayName, openConfirm]);
|
|
154129
154100
|
}
|
|
154130
|
-
var
|
|
154101
|
+
var import_native_modules7 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154131
154102
|
var import_react_native13 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154132
154103
|
var NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
154133
154104
|
var NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
@@ -154146,7 +154117,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154146
154117
|
app_name: import_react_native13.Granite.appName
|
|
154147
154118
|
};
|
|
154148
154119
|
var logNavBarImpression = function logNavBarImpression(naviBarConfig) {
|
|
154149
|
-
|
|
154120
|
+
import_native_modules7.INTERNAL__module.tossCoreEventLog({
|
|
154150
154121
|
log_name: NAVI_BAR_IMPRESSION_LOG_NAME,
|
|
154151
154122
|
log_type: "event",
|
|
154152
154123
|
params: Object.assign({}, naviBarConfig, baseParams, {
|
|
@@ -154156,7 +154127,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154156
154127
|
});
|
|
154157
154128
|
};
|
|
154158
154129
|
var logHomeButtonClick = function logHomeButtonClick() {
|
|
154159
|
-
|
|
154130
|
+
import_native_modules7.INTERNAL__module.tossCoreEventLog({
|
|
154160
154131
|
log_name: HOME_BUTTON_CLICK_LOG_NAME,
|
|
154161
154132
|
log_type: "event",
|
|
154162
154133
|
params: Object.assign({}, baseParams, {
|
|
@@ -154166,7 +154137,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154166
154137
|
});
|
|
154167
154138
|
};
|
|
154168
154139
|
var logCloseButtonClick = function logCloseButtonClick() {
|
|
154169
|
-
|
|
154140
|
+
import_native_modules7.INTERNAL__module.tossCoreEventLog({
|
|
154170
154141
|
log_name: CLOSE_BUTTON_CLICK_LOG_NAME,
|
|
154171
154142
|
log_type: "event",
|
|
154172
154143
|
params: Object.assign({}, baseParams, {
|
|
@@ -154176,7 +154147,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154176
154147
|
});
|
|
154177
154148
|
};
|
|
154178
154149
|
var logClosePopupShow = function logClosePopupShow() {
|
|
154179
|
-
|
|
154150
|
+
import_native_modules7.INTERNAL__module.tossCoreEventLog({
|
|
154180
154151
|
log_name: CLOSE_POPUP_SHOW_LOG_NAME,
|
|
154181
154152
|
log_type: "popup",
|
|
154182
154153
|
params: Object.assign({}, baseParams, {
|
|
@@ -154185,7 +154156,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154185
154156
|
});
|
|
154186
154157
|
};
|
|
154187
154158
|
var logClosePopupCtaClick = function logClosePopupCtaClick(confirm) {
|
|
154188
|
-
|
|
154159
|
+
import_native_modules7.INTERNAL__module.tossCoreEventLog({
|
|
154189
154160
|
log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
|
|
154190
154161
|
log_type: "event",
|
|
154191
154162
|
params: Object.assign({}, baseParams, {
|
|
@@ -154210,7 +154181,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154210
154181
|
var closeConfirm = useCloseConfirm();
|
|
154211
154182
|
var _useCaptureExitLog2 = useCaptureExitLog(),
|
|
154212
154183
|
captureExitLog = _useCaptureExitLog2.captureExitLog;
|
|
154213
|
-
return (0,
|
|
154184
|
+
return (0, import_react14.useMemo)(function () {
|
|
154214
154185
|
var close = function () {
|
|
154215
154186
|
var _ref30 = _asyncToGenerator(function* () {
|
|
154216
154187
|
var hasConfirmed = yield closeConfirm({
|
|
@@ -154247,19 +154218,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154247
154218
|
};
|
|
154248
154219
|
}, [backEventContext, navigation, closeConfirm, logging, captureExitLog]);
|
|
154249
154220
|
}
|
|
154250
|
-
var
|
|
154221
|
+
var import_native_modules11 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154251
154222
|
var import_react_native20 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154252
|
-
var
|
|
154223
|
+
var import_tds_react_native8 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154253
154224
|
var import_private4 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154254
|
-
var
|
|
154255
|
-
var
|
|
154225
|
+
var import_react15 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154226
|
+
var import_native_modules9 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154256
154227
|
var import_react_native17 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154257
|
-
var import_tds_react_native8 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154258
|
-
var import_react_native18 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154259
154228
|
var import_tds_react_native7 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154229
|
+
var import_react_native18 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154230
|
+
var import_tds_react_native6 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154260
154231
|
var import_private3 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154261
154232
|
var import_react_native16 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154262
|
-
var
|
|
154233
|
+
var import_native_modules8 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154263
154234
|
var import_react_native15 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154264
154235
|
var BOTTOM_SHEET_SCHEMA_ID = 1596825;
|
|
154265
154236
|
var BOTTOM_SHEET_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more";
|
|
@@ -154276,7 +154247,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154276
154247
|
app_name: import_react_native15.Granite.appName
|
|
154277
154248
|
};
|
|
154278
154249
|
var logBottomSheetShow = function logBottomSheetShow() {
|
|
154279
|
-
|
|
154250
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
154280
154251
|
log_name: BOTTOM_SHEET_LOG_NAME,
|
|
154281
154252
|
log_type: "popup",
|
|
154282
154253
|
params: Object.assign({}, baseParams, {
|
|
@@ -154285,7 +154256,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154285
154256
|
});
|
|
154286
154257
|
};
|
|
154287
154258
|
var logBottomSheetOpen = function logBottomSheetOpen() {
|
|
154288
|
-
|
|
154259
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
154289
154260
|
log_name: BOTTOM_SHEET_OPEN_LOG_NAME,
|
|
154290
154261
|
log_type: "event",
|
|
154291
154262
|
params: Object.assign({}, baseParams, {
|
|
@@ -154295,7 +154266,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154295
154266
|
});
|
|
154296
154267
|
};
|
|
154297
154268
|
var logBottomSheetCloseClick = function logBottomSheetCloseClick() {
|
|
154298
|
-
|
|
154269
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
154299
154270
|
log_name: BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME,
|
|
154300
154271
|
log_type: "event",
|
|
154301
154272
|
params: Object.assign({}, baseParams, {
|
|
@@ -154306,7 +154277,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154306
154277
|
};
|
|
154307
154278
|
var logBottomSheetMenuClick = function logBottomSheetMenuClick(_ref31) {
|
|
154308
154279
|
var title = _ref31.title;
|
|
154309
|
-
|
|
154280
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
154310
154281
|
log_name: BOTTOM_SHEET_MENU_CLICK_LOG_NAME,
|
|
154311
154282
|
log_type: "event",
|
|
154312
154283
|
params: Object.assign({}, baseParams, {
|
|
@@ -154334,7 +154305,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154334
154305
|
var logging = useMoreButtonBottomSheetLogging();
|
|
154335
154306
|
var brandPrimaryColorRGB = hexToRGB(globals.brandPrimaryColor);
|
|
154336
154307
|
var iconBackgroundColor = brandPrimaryColorRGB ? "rgba(" + brandPrimaryColorRGB.join(",") + ",0.1)" : adaptive.grey100;
|
|
154337
|
-
return (0, import_jsx_runtime5.jsx)(
|
|
154308
|
+
return (0, import_jsx_runtime5.jsx)(import_tds_react_native6.ListRow, {
|
|
154338
154309
|
left: (0, import_jsx_runtime5.jsx)(import_react_native16.View, {
|
|
154339
154310
|
style: {
|
|
154340
154311
|
width: 30,
|
|
@@ -154346,14 +154317,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154346
154317
|
marginRight: 16,
|
|
154347
154318
|
backgroundColor: iconBackgroundColor
|
|
154348
154319
|
},
|
|
154349
|
-
children: iconName ? (0, import_jsx_runtime5.jsx)(
|
|
154320
|
+
children: iconName ? (0, import_jsx_runtime5.jsx)(import_tds_react_native6.Asset.Icon, {
|
|
154350
154321
|
frameShape: {
|
|
154351
154322
|
width: 20,
|
|
154352
154323
|
height: 20
|
|
154353
154324
|
},
|
|
154354
154325
|
color: globals.brandPrimaryColor,
|
|
154355
154326
|
name: iconName
|
|
154356
|
-
}) : (0, import_jsx_runtime5.jsx)(
|
|
154327
|
+
}) : (0, import_jsx_runtime5.jsx)(import_tds_react_native6.Asset.Image, {
|
|
154357
154328
|
frameShape: {
|
|
154358
154329
|
width: 20,
|
|
154359
154330
|
height: 20
|
|
@@ -154363,7 +154334,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154363
154334
|
}
|
|
154364
154335
|
})
|
|
154365
154336
|
}),
|
|
154366
|
-
contents: (0, import_jsx_runtime5.jsx)(
|
|
154337
|
+
contents: (0, import_jsx_runtime5.jsx)(import_tds_react_native6.ListRow.Texts, {
|
|
154367
154338
|
type: "1RowTypeA",
|
|
154368
154339
|
top: title,
|
|
154369
154340
|
topProps: {
|
|
@@ -154419,8 +154390,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154419
154390
|
};
|
|
154420
154391
|
function AppShareListMenu() {
|
|
154421
154392
|
var initialScheme = (0, import_react_native17.getSchemeUri)();
|
|
154422
|
-
var isSandbox = (0,
|
|
154423
|
-
var _ref35 = (0,
|
|
154393
|
+
var isSandbox = (0, import_native_modules9.getOperationalEnvironment)() === "sandbox";
|
|
154394
|
+
var _ref35 = (0, import_tds_react_native7.useDialog)(),
|
|
154424
154395
|
openConfirm = _ref35.openConfirm;
|
|
154425
154396
|
var schemeForShare = addParamsToUrl(initialScheme, {
|
|
154426
154397
|
referrer: SHARE_SCHEME_REFERRER
|
|
@@ -154446,12 +154417,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154446
154417
|
}
|
|
154447
154418
|
});
|
|
154448
154419
|
}
|
|
154449
|
-
var
|
|
154420
|
+
var import_native_modules10 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154450
154421
|
var import_react_native19 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154451
154422
|
var import_jsx_runtime7 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154452
154423
|
function PermissionsMenu() {
|
|
154453
154424
|
var globals = getAppsInTossGlobals();
|
|
154454
|
-
if ((0,
|
|
154425
|
+
if ((0, import_native_modules10.getOperationalEnvironment)() === "sandbox") {
|
|
154455
154426
|
return null;
|
|
154456
154427
|
}
|
|
154457
154428
|
return (0, import_jsx_runtime7.jsx)(Menu, {
|
|
@@ -154487,7 +154458,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154487
154458
|
function useMoreButtonBottomSheet() {
|
|
154488
154459
|
var globals = getAppsInTossGlobals();
|
|
154489
154460
|
var adaptive = (0, import_private4.useAdaptive)();
|
|
154490
|
-
var _ref36 = (0,
|
|
154461
|
+
var _ref36 = (0, import_react15.useState)([]),
|
|
154491
154462
|
_ref37 = _slicedToArray(_ref36, 2),
|
|
154492
154463
|
itemList = _ref37[0],
|
|
154493
154464
|
setItemList = _ref37[1];
|
|
@@ -154495,17 +154466,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154495
154466
|
var logging = useMoreButtonBottomSheetLogging();
|
|
154496
154467
|
var overlay = (0, import_private4.useOverlay)();
|
|
154497
154468
|
var title = ensureValue(globals.brandDisplayName, "displayName");
|
|
154498
|
-
var isBottomSheetSupported = (0,
|
|
154499
|
-
var isShareListMenuSupported = (0,
|
|
154500
|
-
var _ref38 = (0,
|
|
154469
|
+
var isBottomSheetSupported = (0, import_native_modules11.isMinVersionSupported)(MIN_VERSION.BOTTOM_SHEET);
|
|
154470
|
+
var isShareListMenuSupported = (0, import_native_modules11.isMinVersionSupported)(MIN_VERSION.SHARE_LIST_MENU);
|
|
154471
|
+
var _ref38 = (0, import_react15.useState)(false),
|
|
154501
154472
|
_ref39 = _slicedToArray(_ref38, 2),
|
|
154502
154473
|
isPermissionsMenuSupported = _ref39[0],
|
|
154503
154474
|
setIsPermissionsMenuSupported = _ref39[1];
|
|
154504
|
-
(0,
|
|
154475
|
+
(0, import_react15.useEffect)(function () {
|
|
154505
154476
|
if (!isBottomSheetSupported) {
|
|
154506
154477
|
return;
|
|
154507
154478
|
}
|
|
154508
|
-
|
|
154479
|
+
import_native_modules11.INTERNAL__appBridgeHandler.invokeAppBridgeMethod(APP_BRIDGE_METHOD_NAME, {}, {
|
|
154509
154480
|
onSuccess: function onSuccess(_ref40) {
|
|
154510
154481
|
var items = _ref40.items;
|
|
154511
154482
|
return setItemList(items);
|
|
@@ -154514,8 +154485,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154514
154485
|
return console.error("\uBA54\uB274 \uBAA9\uB85D\uC744 \uAC00\uC838\uC624\uB294 \uB370 \uC2E4\uD328\uD588\uC5B4\uC694:", error);
|
|
154515
154486
|
}
|
|
154516
154487
|
});
|
|
154517
|
-
if ((0,
|
|
154518
|
-
|
|
154488
|
+
if ((0, import_native_modules11.isMinVersionSupported)(MIN_VERSION.PERMISSIONS_MENU)) {
|
|
154489
|
+
import_native_modules11.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("getAllPermission", {}, {
|
|
154519
154490
|
onSuccess: function onSuccess(permissions) {
|
|
154520
154491
|
return setIsPermissionsMenuSupported(permissions.length > 0);
|
|
154521
154492
|
},
|
|
@@ -154544,9 +154515,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154544
154515
|
close();
|
|
154545
154516
|
};
|
|
154546
154517
|
return (0, import_jsx_runtime8.jsx)(BottomSheetImpressionArea, {
|
|
154547
|
-
children: (0, import_jsx_runtime8.jsx)(
|
|
154548
|
-
header: (0, import_jsx_runtime8.jsx)(
|
|
154549
|
-
title: (0, import_jsx_runtime8.jsx)(
|
|
154518
|
+
children: (0, import_jsx_runtime8.jsx)(import_tds_react_native8.BottomSheet.Root, {
|
|
154519
|
+
header: (0, import_jsx_runtime8.jsx)(import_tds_react_native8.ListHeader, {
|
|
154520
|
+
title: (0, import_jsx_runtime8.jsx)(import_tds_react_native8.ListHeader.TitleParagraph, {
|
|
154550
154521
|
color: adaptive.grey800,
|
|
154551
154522
|
fontWeight: "bold",
|
|
154552
154523
|
typography: "t5",
|
|
@@ -154554,7 +154525,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154554
154525
|
})
|
|
154555
154526
|
}),
|
|
154556
154527
|
open: isOpen,
|
|
154557
|
-
cta: (0, import_jsx_runtime8.jsx)(
|
|
154528
|
+
cta: (0, import_jsx_runtime8.jsx)(import_tds_react_native8.BottomSheet.CTA, {
|
|
154558
154529
|
size: "large",
|
|
154559
154530
|
type: "dark",
|
|
154560
154531
|
style: "weak",
|
|
@@ -154565,7 +154536,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154565
154536
|
}),
|
|
154566
154537
|
onClose: handleClose,
|
|
154567
154538
|
onExited: exit,
|
|
154568
|
-
children: (0, import_jsx_runtime8.jsxs)(
|
|
154539
|
+
children: (0, import_jsx_runtime8.jsxs)(import_tds_react_native8.List, {
|
|
154569
154540
|
rowSeparator: "none",
|
|
154570
154541
|
children: [itemList.map(function (item) {
|
|
154571
154542
|
return (0, import_jsx_runtime8.jsx)(Menu, {
|
|
@@ -154592,21 +154563,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154592
154563
|
function BottomSheetImpressionArea(_ref43) {
|
|
154593
154564
|
var children = _ref43.children;
|
|
154594
154565
|
var logging = useMoreButtonBottomSheetLogging();
|
|
154595
|
-
(0,
|
|
154566
|
+
(0, import_react15.useEffect)(function () {
|
|
154596
154567
|
logging.show();
|
|
154597
154568
|
}, [logging]);
|
|
154598
154569
|
return (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, {
|
|
154599
154570
|
children: children
|
|
154600
154571
|
});
|
|
154601
154572
|
}
|
|
154602
|
-
|
|
154573
|
+
function toIcon(source) {
|
|
154574
|
+
return source.startsWith("http") ? {
|
|
154575
|
+
source: {
|
|
154576
|
+
uri: source
|
|
154577
|
+
}
|
|
154578
|
+
} : {
|
|
154579
|
+
name: source
|
|
154580
|
+
};
|
|
154581
|
+
}
|
|
154582
|
+
var import_react16 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154603
154583
|
var import_jsx_runtime9 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154604
154584
|
function NavigationBarImpressionArea(_ref44) {
|
|
154605
154585
|
var children = _ref44.children,
|
|
154606
154586
|
withHomeButton = _ref44.withHomeButton;
|
|
154607
|
-
var hasLogged = (0,
|
|
154587
|
+
var hasLogged = (0, import_react16.useRef)(false);
|
|
154608
154588
|
var logging = useNavigationBarLogging();
|
|
154609
|
-
(0,
|
|
154589
|
+
(0, import_react16.useEffect)(function () {
|
|
154610
154590
|
if (hasLogged.current === false) {
|
|
154611
154591
|
logging.navBarImpression({
|
|
154612
154592
|
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
@@ -154654,7 +154634,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154654
154634
|
});
|
|
154655
154635
|
}
|
|
154656
154636
|
var import_react_native_safe_area_context = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
154657
|
-
var
|
|
154637
|
+
var import_tds_react_native9 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154658
154638
|
var import_private6 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154659
154639
|
var import_react_native21 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154660
154640
|
var import_jsx_runtime11 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
@@ -154669,7 +154649,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154669
154649
|
safeAreaRight = _ref45.right;
|
|
154670
154650
|
useHardwareBackPress(navigationEvent.handleBack);
|
|
154671
154651
|
return (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, {
|
|
154672
|
-
children: [(0, import_jsx_runtime11.jsx)(
|
|
154652
|
+
children: [(0, import_jsx_runtime11.jsx)(import_tds_react_native9.PageNavbar, {
|
|
154673
154653
|
preference: {
|
|
154674
154654
|
type: "none"
|
|
154675
154655
|
}
|
|
@@ -154721,48 +154701,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154721
154701
|
}
|
|
154722
154702
|
function GameAppContainer(_ref47) {
|
|
154723
154703
|
var children = _ref47.children;
|
|
154724
|
-
|
|
154725
|
-
_ref49 = _slicedToArray(_ref48, 2),
|
|
154726
|
-
isEntryMessageExited = _ref49[0],
|
|
154727
|
-
setIsEntryMessageExited = _ref49[1];
|
|
154728
|
-
(0, import_react18.useEffect)(function () {
|
|
154704
|
+
(0, import_react17.useEffect)(function () {
|
|
154729
154705
|
if (import_react_native22.Platform.OS === "ios") {
|
|
154730
|
-
(0,
|
|
154706
|
+
(0, import_native_modules12.setIosSwipeGestureEnabled)({
|
|
154731
154707
|
isEnabled: false
|
|
154732
154708
|
});
|
|
154733
154709
|
return function () {
|
|
154734
|
-
(0,
|
|
154710
|
+
(0, import_native_modules12.setIosSwipeGestureEnabled)({
|
|
154735
154711
|
isEnabled: true
|
|
154736
154712
|
});
|
|
154737
154713
|
};
|
|
154738
154714
|
}
|
|
154739
154715
|
return;
|
|
154740
154716
|
}, []);
|
|
154741
|
-
(0, import_react18.useEffect)(function () {
|
|
154742
|
-
import_native_modules13.appsInTossEvent.addEventListener("entryMessageExited", {
|
|
154743
|
-
onEvent: function onEvent() {
|
|
154744
|
-
setIsEntryMessageExited(true);
|
|
154745
|
-
}
|
|
154746
|
-
});
|
|
154747
|
-
}, []);
|
|
154748
154717
|
return (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, {
|
|
154749
154718
|
children: [(0, import_jsx_runtime12.jsx)(RNNavigationBar.Game, {}), (0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime12.jsx)(GameInitializer, {
|
|
154750
|
-
isReadyForProfileUI: isEntryMessageExited,
|
|
154751
154719
|
children: children
|
|
154752
154720
|
}) : children]
|
|
154753
154721
|
});
|
|
154754
154722
|
}
|
|
154755
|
-
function GeneralAppContainer(
|
|
154756
|
-
var children =
|
|
154723
|
+
function GeneralAppContainer(_ref48) {
|
|
154724
|
+
var children = _ref48.children;
|
|
154757
154725
|
return (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, {
|
|
154758
154726
|
children: [(0, import_jsx_runtime12.jsx)(RNNavigationBar.Default, {}), children]
|
|
154759
154727
|
});
|
|
154760
154728
|
}
|
|
154761
154729
|
var import_jsx_runtime13 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154762
|
-
function AppsInTossContainer(Container,
|
|
154763
|
-
var children =
|
|
154764
|
-
initialProps = _objectWithoutProperties(
|
|
154765
|
-
if (!(0,
|
|
154730
|
+
function AppsInTossContainer(Container, _ref49) {
|
|
154731
|
+
var children = _ref49.children,
|
|
154732
|
+
initialProps = _objectWithoutProperties(_ref49, _excluded);
|
|
154733
|
+
if (!(0, import_native_modules13.isMinVersionSupported)({
|
|
154766
154734
|
android: "5.220.0",
|
|
154767
154735
|
ios: "5.221.0"
|
|
154768
154736
|
})) {
|
|
@@ -154772,44 +154740,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154772
154740
|
}
|
|
154773
154741
|
return (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, {
|
|
154774
154742
|
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, {
|
|
154775
|
-
children: (0, import_jsx_runtime13.jsx)(
|
|
154743
|
+
children: (0, import_jsx_runtime13.jsx)(import_tds_react_native10.TDSProvider, {
|
|
154776
154744
|
colorPreference: "light",
|
|
154777
154745
|
token: {
|
|
154778
154746
|
color: {
|
|
154779
154747
|
primary: getAppsInTossGlobals().brandPrimaryColor
|
|
154780
154748
|
}
|
|
154781
154749
|
},
|
|
154782
|
-
children:
|
|
154783
|
-
children: children
|
|
154784
|
-
}))
|
|
154750
|
+
children: children
|
|
154785
154751
|
})
|
|
154786
154752
|
}))]
|
|
154787
154753
|
});
|
|
154788
154754
|
}
|
|
154789
|
-
function
|
|
154790
|
-
var
|
|
154791
|
-
|
|
154792
|
-
return (0, import_jsx_runtime13.jsx)(import_jsx_runtime13.Fragment, {
|
|
154793
|
-
children: children
|
|
154794
|
-
});
|
|
154795
|
-
}
|
|
154796
|
-
function registerApp(container, _ref53) {
|
|
154797
|
-
var context = _ref53.context,
|
|
154798
|
-
analytics = _ref53.analytics;
|
|
154755
|
+
function registerApp(container, _ref50) {
|
|
154756
|
+
var context = _ref50.context,
|
|
154757
|
+
analytics = _ref50.analytics;
|
|
154799
154758
|
var appName = getAppName();
|
|
154800
154759
|
var isRegistered = import_react_native24.AppRegistry.getAppKeys().includes(appName);
|
|
154801
154760
|
if (!isRegistered) {
|
|
154802
154761
|
var _analytics$debug;
|
|
154803
154762
|
import_analytics.Analytics.init({
|
|
154804
154763
|
logger: function logger(params) {
|
|
154805
|
-
return void (0,
|
|
154764
|
+
return void (0, import_native_modules13.eventLog)(params);
|
|
154806
154765
|
},
|
|
154807
154766
|
debug: (_analytics$debug = analytics == null ? void 0 : analytics.debug) != null ? _analytics$debug : __DEV__
|
|
154808
154767
|
});
|
|
154809
154768
|
var App = import_react_native23.Granite.registerApp(AppsInTossContainer.bind(null, container), {
|
|
154810
154769
|
appName: appName,
|
|
154811
154770
|
context: context,
|
|
154812
|
-
setIosSwipeGestureEnabled:
|
|
154771
|
+
setIosSwipeGestureEnabled: import_native_modules13.setIosSwipeGestureEnabled,
|
|
154813
154772
|
router: {
|
|
154814
154773
|
screenContainer: AppsInTossScreenContainer,
|
|
154815
154774
|
defaultScreenOption: {
|
|
@@ -154821,8 +154780,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154821
154780
|
}
|
|
154822
154781
|
return global.Page;
|
|
154823
154782
|
}
|
|
154824
|
-
function AppsInTossScreenContainer(
|
|
154825
|
-
var children =
|
|
154783
|
+
function AppsInTossScreenContainer(_ref51) {
|
|
154784
|
+
var children = _ref51.children;
|
|
154826
154785
|
var isRNApp = getAppsInTossGlobals().webViewType == null;
|
|
154827
154786
|
return (0, import_jsx_runtime13.jsx)(NavigationBarContextProvider, {
|
|
154828
154787
|
children: (0, import_jsx_runtime13.jsx)(import_analytics.Analytics.Screen, {
|
|
@@ -154843,32 +154802,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154843
154802
|
var _AppsInToss = {
|
|
154844
154803
|
registerApp: registerApp
|
|
154845
154804
|
};
|
|
154846
|
-
var
|
|
154805
|
+
var import_native_modules22 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154847
154806
|
var appsInTossAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[17], "@apps-in-toss/native-modules/async-bridges"), 1);
|
|
154848
154807
|
var appsInTossConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/native-modules/constant-bridges"), 1);
|
|
154849
154808
|
var appsInTossEventBridges = __toESM(_$$_REQUIRE(_dependencyMap[19], "@apps-in-toss/native-modules/event-bridges"), 1);
|
|
154850
154809
|
var import_react_native_safe_area_context4 = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
154851
154810
|
var import_react_native37 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154852
|
-
var
|
|
154811
|
+
var import_tds_react_native14 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154853
154812
|
var import_private9 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154854
|
-
var
|
|
154813
|
+
var import_react28 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154855
154814
|
var import_react_native38 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154856
|
-
var
|
|
154815
|
+
var import_native_modules14 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154857
154816
|
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[20], "@granite-js/native/react-native-webview");
|
|
154858
|
-
var
|
|
154817
|
+
var import_react19 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154859
154818
|
var import_react_native27 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154860
154819
|
var import_react_native_safe_area_context2 = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
154861
154820
|
var import_react_native25 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154862
|
-
var
|
|
154821
|
+
var import_tds_react_native11 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154863
154822
|
var import_private7 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154864
154823
|
var import_es_hangul3 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
154865
|
-
var
|
|
154824
|
+
var import_react18 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154866
154825
|
var import_react_native26 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154867
154826
|
var import_jsx_runtime14 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154868
154827
|
function GameWebviewNavigationBar() {
|
|
154869
154828
|
var safeAreaTop = (0, import_private7.useSafeAreaTop)();
|
|
154870
|
-
var
|
|
154871
|
-
openConfirm =
|
|
154829
|
+
var _ref52 = (0, import_tds_react_native11.useDialog)(),
|
|
154830
|
+
openConfirm = _ref52.openConfirm;
|
|
154872
154831
|
var _useCaptureExitLog3 = useCaptureExitLog(),
|
|
154873
154832
|
captureExitLog = _useCaptureExitLog3.captureExitLog;
|
|
154874
154833
|
var global2 = getAppsInTossGlobals();
|
|
@@ -154877,9 +154836,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154877
154836
|
openMoreButtonBottomSheet = _useMoreButtonBottomS3.open;
|
|
154878
154837
|
var _useNavigationBarCont3 = useNavigationBarContext(),
|
|
154879
154838
|
navigationRightButton = _useNavigationBarCont3.navigationRightButton;
|
|
154880
|
-
var
|
|
154881
|
-
safeAreaRight =
|
|
154882
|
-
var handleGameWebviewClose = (0,
|
|
154839
|
+
var _ref53 = (0, import_react_native_safe_area_context2.useSafeAreaInsets)(),
|
|
154840
|
+
safeAreaRight = _ref53.right;
|
|
154841
|
+
var handleGameWebviewClose = (0, import_react18.useCallback)(_asyncToGenerator(function* () {
|
|
154883
154842
|
logging.closeButtonClick();
|
|
154884
154843
|
var isConfirmed = yield openConfirm({
|
|
154885
154844
|
title: (0, import_es_hangul3.josa)(global2.brandDisplayName, "\uC744/\uB97C") + " \uC885\uB8CC\uD560\uAE4C\uC694?",
|
|
@@ -154895,7 +154854,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154895
154854
|
}
|
|
154896
154855
|
}), [captureExitLog, global2.brandDisplayName, logging, openConfirm]);
|
|
154897
154856
|
return (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, {
|
|
154898
|
-
children: [(0, import_jsx_runtime14.jsx)(
|
|
154857
|
+
children: [(0, import_jsx_runtime14.jsx)(import_tds_react_native11.PageNavbar, {
|
|
154899
154858
|
preference: {
|
|
154900
154859
|
type: "none"
|
|
154901
154860
|
}
|
|
@@ -154924,34 +154883,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154924
154883
|
});
|
|
154925
154884
|
}
|
|
154926
154885
|
var import_jsx_runtime15 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154927
|
-
var GameWebView = (0,
|
|
154928
|
-
|
|
154929
|
-
_ref59 = _slicedToArray(_ref58, 2),
|
|
154930
|
-
isEntryMessageExited = _ref59[0],
|
|
154931
|
-
setIsEntryMessageExited = _ref59[1];
|
|
154932
|
-
(0, import_react20.useEffect)(function () {
|
|
154886
|
+
var GameWebView = (0, import_react19.forwardRef)(function GameWebView2(props, ref) {
|
|
154887
|
+
(0, import_react19.useEffect)(function () {
|
|
154933
154888
|
if (import_react_native27.Platform.OS === "ios") {
|
|
154934
|
-
(0,
|
|
154889
|
+
(0, import_native_modules14.setIosSwipeGestureEnabled)({
|
|
154935
154890
|
isEnabled: false
|
|
154936
154891
|
});
|
|
154937
154892
|
return function () {
|
|
154938
|
-
(0,
|
|
154893
|
+
(0, import_native_modules14.setIosSwipeGestureEnabled)({
|
|
154939
154894
|
isEnabled: true
|
|
154940
154895
|
});
|
|
154941
154896
|
};
|
|
154942
154897
|
}
|
|
154943
154898
|
return;
|
|
154944
154899
|
}, []);
|
|
154945
|
-
(0, import_react20.useEffect)(function () {
|
|
154946
|
-
import_native_modules15.appsInTossEvent.addEventListener("entryMessageExited", {
|
|
154947
|
-
onEvent: function onEvent() {
|
|
154948
|
-
setIsEntryMessageExited(true);
|
|
154949
|
-
}
|
|
154950
|
-
});
|
|
154951
|
-
}, []);
|
|
154952
154900
|
return (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, {
|
|
154953
|
-
children: [(0, import_jsx_runtime15.jsx)(GameWebviewNavigationBar, {}), (0,
|
|
154954
|
-
isReadyForProfileUI: isEntryMessageExited,
|
|
154901
|
+
children: [(0, import_jsx_runtime15.jsx)(GameWebviewNavigationBar, {}), (0, import_native_modules14.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime15.jsx)(GameInitializer, {
|
|
154955
154902
|
children: (0, import_jsx_runtime15.jsx)(import_react_native_webview.WebView, Object.assign({
|
|
154956
154903
|
ref: ref
|
|
154957
154904
|
}, props))
|
|
@@ -154961,23 +154908,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154961
154908
|
});
|
|
154962
154909
|
});
|
|
154963
154910
|
var import_react_native_webview2 = _$$_REQUIRE(_dependencyMap[20], "@granite-js/native/react-native-webview");
|
|
154964
|
-
var
|
|
154911
|
+
var import_react21 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154965
154912
|
var import_react_native28 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154966
|
-
var
|
|
154913
|
+
var import_tds_react_native12 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154967
154914
|
var import_private8 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154968
154915
|
var import_es_hangul4 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
154969
|
-
var
|
|
154916
|
+
var import_react20 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154970
154917
|
var import_jsx_runtime16 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154971
|
-
function PartnerWebviewNavigationBar(
|
|
154918
|
+
function PartnerWebviewNavigationBar(_ref55) {
|
|
154972
154919
|
var _parsedNavigationBar$3, _parsedNavigationBar$4;
|
|
154973
|
-
var onBackButtonClick =
|
|
154974
|
-
onHomeButtonClick =
|
|
154920
|
+
var onBackButtonClick = _ref55.onBackButtonClick,
|
|
154921
|
+
onHomeButtonClick = _ref55.onHomeButtonClick;
|
|
154975
154922
|
var globals = getAppsInTossGlobals();
|
|
154976
154923
|
var _useCaptureExitLog4 = useCaptureExitLog(),
|
|
154977
154924
|
captureExitLog = _useCaptureExitLog4.captureExitLog;
|
|
154978
154925
|
var logging = useNavigationBarLogging();
|
|
154979
|
-
var
|
|
154980
|
-
openConfirm =
|
|
154926
|
+
var _ref56 = (0, import_tds_react_native12.useDialog)(),
|
|
154927
|
+
openConfirm = _ref56.openConfirm;
|
|
154981
154928
|
var _useMoreButtonBottomS4 = useMoreButtonBottomSheet(),
|
|
154982
154929
|
openMoreButtonBottomSheet = _useMoreButtonBottomS4.open;
|
|
154983
154930
|
var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
@@ -154985,7 +154932,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154985
154932
|
var withBackButton = (_parsedNavigationBar$4 = parsedNavigationBar == null ? void 0 : parsedNavigationBar.withBackButton) != null ? _parsedNavigationBar$4 : true;
|
|
154986
154933
|
var _useNavigationBarCont4 = useNavigationBarContext(),
|
|
154987
154934
|
navigationRightButton = _useNavigationBarCont4.navigationRightButton;
|
|
154988
|
-
var handleClose = (0,
|
|
154935
|
+
var handleClose = (0, import_react20.useCallback)(_asyncToGenerator(function* () {
|
|
154989
154936
|
logging.closeButtonClick();
|
|
154990
154937
|
var isConfirmed = yield openConfirm({
|
|
154991
154938
|
title: (0, import_es_hangul4.josa)(globals.brandDisplayName, "\uC744/\uB97C") + " \uC885\uB8CC\uD560\uAE4C\uC694?",
|
|
@@ -155023,10 +154970,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155023
154970
|
});
|
|
155024
154971
|
}
|
|
155025
154972
|
var import_jsx_runtime17 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
155026
|
-
var PartnerWebView = (0,
|
|
155027
|
-
var onBackButtonClick =
|
|
155028
|
-
onHomeButtonClick =
|
|
155029
|
-
webViewProps = _objectWithoutProperties(
|
|
154973
|
+
var PartnerWebView = (0, import_react21.forwardRef)(function PartnerWebViewScreen(_ref58, ref) {
|
|
154974
|
+
var onBackButtonClick = _ref58.onBackButtonClick,
|
|
154975
|
+
onHomeButtonClick = _ref58.onHomeButtonClick,
|
|
154976
|
+
webViewProps = _objectWithoutProperties(_ref58, _excluded2);
|
|
155030
154977
|
return (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, {
|
|
155031
154978
|
children: [(0, import_jsx_runtime17.jsx)(PartnerWebviewNavigationBar, {
|
|
155032
154979
|
onBackButtonClick: onBackButtonClick,
|
|
@@ -155048,9 +154995,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155048
154995
|
var components = url.hash.replace("#Intent;", "").split(";").map(function (component) {
|
|
155049
154996
|
return component.split("=");
|
|
155050
154997
|
});
|
|
155051
|
-
var scheme = (_components$find = components.find(function (
|
|
155052
|
-
var
|
|
155053
|
-
key =
|
|
154998
|
+
var scheme = (_components$find = components.find(function (_ref59) {
|
|
154999
|
+
var _ref60 = _slicedToArray(_ref59, 1),
|
|
155000
|
+
key = _ref60[0];
|
|
155054
155001
|
return key === "scheme";
|
|
155055
155002
|
})) == null ? void 0 : _components$find[1];
|
|
155056
155003
|
if (!scheme) {
|
|
@@ -155058,7 +155005,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155058
155005
|
}
|
|
155059
155006
|
return scheme + "://" + url.hostname + url.pathname + url.search;
|
|
155060
155007
|
}
|
|
155061
|
-
var
|
|
155008
|
+
var import_native_modules15 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155062
155009
|
function noop() {}
|
|
155063
155010
|
function generateSessionId() {
|
|
155064
155011
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
|
|
@@ -155068,10 +155015,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155068
155015
|
});
|
|
155069
155016
|
}
|
|
155070
155017
|
var sessionId = generateSessionId();
|
|
155071
|
-
var ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.
|
|
155072
|
-
var IOS_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.
|
|
155018
|
+
var ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
155019
|
+
var IOS_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
155073
155020
|
var UNSUPPORTED_ERROR_MESSAGE = "This feature is not supported in the current environment";
|
|
155074
|
-
var ENVIRONMENT = (0,
|
|
155021
|
+
var ENVIRONMENT = (0, import_native_modules15.getOperationalEnvironment)();
|
|
155075
155022
|
function fetchTossAd(params) {
|
|
155076
155023
|
if (!fetchTossAd.isSupported()) {
|
|
155077
155024
|
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
|
|
@@ -155081,9 +155028,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155081
155028
|
_onError3 = params.onError,
|
|
155082
155029
|
options = params.options;
|
|
155083
155030
|
var adGroupId = options.adGroupId;
|
|
155084
|
-
var unregisterCallbacks =
|
|
155031
|
+
var unregisterCallbacks = import_native_modules15.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("fetchTossAd", {
|
|
155085
155032
|
spaceUnitId: adGroupId,
|
|
155086
|
-
sessionId: sessionId
|
|
155033
|
+
sessionId: sessionId,
|
|
155034
|
+
sdkId: options.sdkId,
|
|
155035
|
+
availableStyleIds: options.availableStyleIds
|
|
155087
155036
|
}, {
|
|
155088
155037
|
onSuccess: function onSuccess(response) {
|
|
155089
155038
|
onEvent(response);
|
|
@@ -155098,12 +155047,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155098
155047
|
if (ENVIRONMENT !== "toss") {
|
|
155099
155048
|
return false;
|
|
155100
155049
|
}
|
|
155101
|
-
return (0,
|
|
155050
|
+
return (0, import_native_modules15.isMinVersionSupported)({
|
|
155102
155051
|
android: ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION,
|
|
155103
155052
|
ios: IOS_FETCH_TOSS_AD_SUPPORTED_VERSION
|
|
155104
155053
|
});
|
|
155105
155054
|
};
|
|
155106
|
-
var
|
|
155055
|
+
var import_native_modules17 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155107
155056
|
function generateRequestId() {
|
|
155108
155057
|
var timestamp = Date.now().toString(36).toUpperCase();
|
|
155109
155058
|
var random = Math.random().toString(36).substring(2, 7).toUpperCase();
|
|
@@ -155117,7 +155066,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155117
155066
|
return null;
|
|
155118
155067
|
}
|
|
155119
155068
|
}
|
|
155120
|
-
var
|
|
155069
|
+
var import_native_modules16 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155121
155070
|
var import_react_native30 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155122
155071
|
function getIsDev() {
|
|
155123
155072
|
try {
|
|
@@ -155126,9 +155075,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155126
155075
|
return false;
|
|
155127
155076
|
}
|
|
155128
155077
|
}
|
|
155129
|
-
var OPERATIONAL_ENVIRONMENT = (0,
|
|
155130
|
-
var OS = (0,
|
|
155131
|
-
var APP_VER = (0,
|
|
155078
|
+
var OPERATIONAL_ENVIRONMENT = (0, import_native_modules16.getOperationalEnvironment)();
|
|
155079
|
+
var OS = (0, import_native_modules16.getPlatformOS)();
|
|
155080
|
+
var APP_VER = (0, import_native_modules16.getTossAppVersion)();
|
|
155132
155081
|
var ALPHA_EVENT_TRACKER_HTTP_ENDPOINT = "https://alpha-trillion.toss.im/trk/sdk-mediation/event";
|
|
155133
155082
|
var LIVE_EVENT_TRACKER_HTTP_ENDPOINT = "https://trillion.toss.im/trk/sdk-mediation/event";
|
|
155134
155083
|
function getPostEventTrackingUrl() {
|
|
@@ -155155,87 +155104,93 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155155
155104
|
}).catch(noop);
|
|
155156
155105
|
}
|
|
155157
155106
|
var INTEGRATED_AD_SDK_VERSION = "0.0.0";
|
|
155158
|
-
var ANDROID_INTEGRATED_AD_SUPPORTED_VERSION = "5.
|
|
155159
|
-
var IOS_INTEGRATED_AD_SUPPORTED_VERSION = "5.
|
|
155107
|
+
var ANDROID_INTEGRATED_AD_SUPPORTED_VERSION = "5.241.0";
|
|
155108
|
+
var IOS_INTEGRATED_AD_SUPPORTED_VERSION = "5.241.0";
|
|
155160
155109
|
var UNSUPPORTED_ERROR_MESSAGE2 = "This feature is not supported in the current environment";
|
|
155161
155110
|
var INTG_AD_ADM_FALLBACK_RID_MAP = {};
|
|
155162
155111
|
function integratedAdIsSupported() {
|
|
155163
|
-
return (0,
|
|
155112
|
+
return (0, import_native_modules17.isMinVersionSupported)({
|
|
155164
155113
|
android: ANDROID_INTEGRATED_AD_SUPPORTED_VERSION,
|
|
155165
155114
|
ios: IOS_INTEGRATED_AD_SUPPORTED_VERSION
|
|
155166
155115
|
});
|
|
155167
155116
|
}
|
|
155168
|
-
function
|
|
155169
|
-
|
|
155170
|
-
|
|
155171
|
-
|
|
155172
|
-
|
|
155173
|
-
|
|
155174
|
-
|
|
155175
|
-
|
|
155176
|
-
|
|
155177
|
-
|
|
155178
|
-
|
|
155179
|
-
|
|
155117
|
+
function generateLoadFullScreenAd(sdkId) {
|
|
155118
|
+
var fn = function fn(params) {
|
|
155119
|
+
if (!import_native_modules17.GoogleAdMob.loadAppsInTossAdMob.isSupported()) {
|
|
155120
|
+
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
|
|
155121
|
+
return noop;
|
|
155122
|
+
}
|
|
155123
|
+
if (!integratedAdIsSupported()) {
|
|
155124
|
+
return import_native_modules17.GoogleAdMob.loadAppsInTossAdMob(Object.assign({}, params, {
|
|
155125
|
+
onEvent: function onEvent(event) {
|
|
155126
|
+
if (event.type === "loaded") {
|
|
155127
|
+
var _event$data$responseI, _event$data$responseI2;
|
|
155128
|
+
var requestId = generateRequestId();
|
|
155129
|
+
INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId] = requestId;
|
|
155130
|
+
postEventTracking({
|
|
155131
|
+
eventName: "LOAD",
|
|
155132
|
+
spaceUnitId: params.options.adGroupId,
|
|
155133
|
+
requestId: requestId,
|
|
155134
|
+
responseId: event.data.responseInfo.responseId,
|
|
155135
|
+
mediationType: "ADMOB",
|
|
155136
|
+
format: "",
|
|
155137
|
+
adSourceName: (_event$data$responseI = (_event$data$responseI2 = event.data.responseInfo.loadedAdNetworkInfo) == null ? void 0 : _event$data$responseI2.adSourceName) != null ? _event$data$responseI : "",
|
|
155138
|
+
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155139
|
+
});
|
|
155140
|
+
}
|
|
155141
|
+
return params.onEvent(event);
|
|
155142
|
+
},
|
|
155143
|
+
onError: function onError(error) {
|
|
155144
|
+
var _INTG_AD_ADM_FALLBACK;
|
|
155145
|
+
var requestId = (_INTG_AD_ADM_FALLBACK = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) != null ? _INTG_AD_ADM_FALLBACK : "";
|
|
155180
155146
|
postEventTracking({
|
|
155181
|
-
eventName: "
|
|
155147
|
+
eventName: "FAILED_TO_LOAD",
|
|
155182
155148
|
spaceUnitId: params.options.adGroupId,
|
|
155183
155149
|
requestId: requestId,
|
|
155184
|
-
responseId:
|
|
155150
|
+
responseId: "",
|
|
155185
155151
|
mediationType: "ADMOB",
|
|
155186
155152
|
format: "",
|
|
155187
|
-
adSourceName:
|
|
155153
|
+
adSourceName: "",
|
|
155188
155154
|
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155189
155155
|
});
|
|
155156
|
+
return params.onError(error);
|
|
155190
155157
|
}
|
|
155191
|
-
|
|
155158
|
+
}));
|
|
155159
|
+
}
|
|
155160
|
+
var onEvent = params.onEvent,
|
|
155161
|
+
_onError4 = params.onError,
|
|
155162
|
+
options = params.options;
|
|
155163
|
+
var adGroupId = options.adGroupId;
|
|
155164
|
+
var referrer = getReferrer();
|
|
155165
|
+
var unregisterCallbacks = import_native_modules17.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("loadTossAdOrAdmob", {
|
|
155166
|
+
spaceUnitId: adGroupId,
|
|
155167
|
+
referrer: referrer,
|
|
155168
|
+
sessionId: sessionId,
|
|
155169
|
+
sdkId: sdkId
|
|
155170
|
+
}, {
|
|
155171
|
+
onSuccess: function onSuccess() {
|
|
155172
|
+
onEvent({
|
|
155173
|
+
type: "loaded"
|
|
155174
|
+
});
|
|
155192
155175
|
},
|
|
155193
155176
|
onError: function onError(error) {
|
|
155194
|
-
|
|
155195
|
-
var requestId = (_INTG_AD_ADM_FALLBACK = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) != null ? _INTG_AD_ADM_FALLBACK : "";
|
|
155196
|
-
postEventTracking({
|
|
155197
|
-
eventName: "FAILED_TO_LOAD",
|
|
155198
|
-
spaceUnitId: params.options.adGroupId,
|
|
155199
|
-
requestId: requestId,
|
|
155200
|
-
responseId: "",
|
|
155201
|
-
mediationType: "ADMOB",
|
|
155202
|
-
format: "",
|
|
155203
|
-
adSourceName: "",
|
|
155204
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155205
|
-
});
|
|
155206
|
-
return params.onError(error);
|
|
155177
|
+
_onError4(error);
|
|
155207
155178
|
}
|
|
155208
|
-
})
|
|
155209
|
-
|
|
155210
|
-
|
|
155211
|
-
|
|
155212
|
-
|
|
155213
|
-
var adGroupId = options.adGroupId;
|
|
155214
|
-
var referrer = getReferrer();
|
|
155215
|
-
var unregisterCallbacks = import_native_modules18.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("loadTossAdOrAdmob", {
|
|
155216
|
-
spaceUnitId: adGroupId,
|
|
155217
|
-
referrer: referrer,
|
|
155218
|
-
sessionId: sessionId
|
|
155219
|
-
}, {
|
|
155220
|
-
onSuccess: function onSuccess() {
|
|
155221
|
-
onEvent({
|
|
155222
|
-
type: "loaded"
|
|
155223
|
-
});
|
|
155224
|
-
},
|
|
155225
|
-
onError: function onError(error) {
|
|
155226
|
-
_onError4(error);
|
|
155227
|
-
}
|
|
155228
|
-
});
|
|
155229
|
-
return unregisterCallbacks;
|
|
155179
|
+
});
|
|
155180
|
+
return unregisterCallbacks;
|
|
155181
|
+
};
|
|
155182
|
+
fn.isSupported = import_native_modules17.GoogleAdMob.loadAppsInTossAdMob.isSupported;
|
|
155183
|
+
return fn;
|
|
155230
155184
|
}
|
|
155231
|
-
_loadFullScreenAd
|
|
155185
|
+
var _loadFullScreenAd = generateLoadFullScreenAd("107");
|
|
155186
|
+
var loadFullScreenAdForWeb = generateLoadFullScreenAd("107");
|
|
155232
155187
|
function _showFullScreenAd(params) {
|
|
155233
|
-
if (!
|
|
155188
|
+
if (!import_native_modules17.GoogleAdMob.showAppsInTossAdMob.isSupported()) {
|
|
155234
155189
|
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
|
|
155235
155190
|
return noop;
|
|
155236
155191
|
}
|
|
155237
155192
|
if (!integratedAdIsSupported()) {
|
|
155238
|
-
return
|
|
155193
|
+
return import_native_modules17.GoogleAdMob.showAppsInTossAdMob(Object.assign({}, params, {
|
|
155239
155194
|
onEvent: function onEvent(event) {
|
|
155240
155195
|
var _INTG_AD_ADM_FALLBACK2;
|
|
155241
155196
|
var requestId = (_INTG_AD_ADM_FALLBACK2 = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) != null ? _INTG_AD_ADM_FALLBACK2 : "";
|
|
@@ -155337,7 +155292,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155337
155292
|
options = params.options;
|
|
155338
155293
|
var adGroupId = options.adGroupId;
|
|
155339
155294
|
var referrer = getReferrer();
|
|
155340
|
-
var unregisterCallbacks =
|
|
155295
|
+
var unregisterCallbacks = import_native_modules17.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("showTossAdOrAdmob", {
|
|
155341
155296
|
spaceUnitId: adGroupId,
|
|
155342
155297
|
referrer: referrer,
|
|
155343
155298
|
sessionId: sessionId
|
|
@@ -155384,8 +155339,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155384
155339
|
});
|
|
155385
155340
|
return unregisterCallbacks;
|
|
155386
155341
|
}
|
|
155387
|
-
_showFullScreenAd.isSupported =
|
|
155388
|
-
var
|
|
155342
|
+
_showFullScreenAd.isSupported = import_native_modules17.GoogleAdMob.showAppsInTossAdMob.isSupported;
|
|
155343
|
+
var import_native_modules18 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155389
155344
|
var import_react_native31 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155390
155345
|
function tossAdEventLog(_x4) {
|
|
155391
155346
|
return _tossAdEventLog.apply(this, arguments);
|
|
@@ -155400,18 +155355,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155400
155355
|
app_name: appName
|
|
155401
155356
|
})
|
|
155402
155357
|
});
|
|
155403
|
-
return
|
|
155358
|
+
return import_native_modules18.INTERNAL__module.tossCoreEventLog(eventLogParams);
|
|
155404
155359
|
});
|
|
155405
155360
|
return _tossAdEventLog.apply(this, arguments);
|
|
155406
155361
|
}
|
|
155407
|
-
var
|
|
155362
|
+
var import_react22 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155408
155363
|
function serializeError(error) {
|
|
155409
155364
|
return JSON.stringify(error, function (_, value) {
|
|
155410
155365
|
if (value instanceof Error) {
|
|
155411
|
-
return Object.assign({}, Object.entries(value).reduce(function (acc,
|
|
155412
|
-
var
|
|
155413
|
-
key =
|
|
155414
|
-
value2 =
|
|
155366
|
+
return Object.assign({}, Object.entries(value).reduce(function (acc, _ref61) {
|
|
155367
|
+
var _ref62 = _slicedToArray(_ref61, 2),
|
|
155368
|
+
key = _ref62[0],
|
|
155369
|
+
value2 = _ref62[1];
|
|
155415
155370
|
acc[key] = value2;
|
|
155416
155371
|
return acc;
|
|
155417
155372
|
}, {}), {
|
|
@@ -155424,24 +155379,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155424
155379
|
return value;
|
|
155425
155380
|
});
|
|
155426
155381
|
}
|
|
155427
|
-
function methodHandler(
|
|
155428
|
-
var args =
|
|
155429
|
-
eventId =
|
|
155430
|
-
functionName =
|
|
155431
|
-
handlerMap =
|
|
155432
|
-
injectJavaScript =
|
|
155382
|
+
function methodHandler(_ref63) {
|
|
155383
|
+
var args = _ref63.args,
|
|
155384
|
+
eventId = _ref63.eventId,
|
|
155385
|
+
functionName = _ref63.functionName,
|
|
155386
|
+
handlerMap = _ref63.handlerMap,
|
|
155387
|
+
injectJavaScript = _ref63.injectJavaScript;
|
|
155433
155388
|
var func = handlerMap[functionName];
|
|
155434
155389
|
if (!func) {
|
|
155435
155390
|
console.error(functionName + " is not a function");
|
|
155436
155391
|
return;
|
|
155437
155392
|
}
|
|
155438
155393
|
var wrappedFunc = function () {
|
|
155439
|
-
var
|
|
155394
|
+
var _ref64 = _asyncToGenerator(function* () {
|
|
155440
155395
|
var result = yield func.apply(void 0, arguments);
|
|
155441
155396
|
return result;
|
|
155442
155397
|
});
|
|
155443
155398
|
return function wrappedFunc() {
|
|
155444
|
-
return
|
|
155399
|
+
return _ref64.apply(this, arguments);
|
|
155445
155400
|
};
|
|
155446
155401
|
}();
|
|
155447
155402
|
wrappedFunc.apply(void 0, _toConsumableArray(args)).then(function (result) {
|
|
@@ -155452,22 +155407,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155452
155407
|
});
|
|
155453
155408
|
}
|
|
155454
155409
|
var globalEventListenerMap = new Map();
|
|
155455
|
-
function useBridgeHandler(
|
|
155456
|
-
var onMessage =
|
|
155457
|
-
constantHandlerMap =
|
|
155458
|
-
asyncHandlerMap =
|
|
155459
|
-
eventListenerMap =
|
|
155460
|
-
var ref = (0,
|
|
155461
|
-
var injectedJavaScript = (0,
|
|
155462
|
-
return "window.__CONSTANT_HANDLER_MAP = " + JSON.stringify(Object.entries(constantHandlerMap).reduce(function (acc,
|
|
155463
|
-
var
|
|
155464
|
-
key =
|
|
155465
|
-
value =
|
|
155410
|
+
function useBridgeHandler(_ref65) {
|
|
155411
|
+
var onMessage = _ref65.onMessage,
|
|
155412
|
+
constantHandlerMap = _ref65.constantHandlerMap,
|
|
155413
|
+
asyncHandlerMap = _ref65.asyncHandlerMap,
|
|
155414
|
+
eventListenerMap = _ref65.eventListenerMap;
|
|
155415
|
+
var ref = (0, import_react22.useRef)(null);
|
|
155416
|
+
var injectedJavaScript = (0, import_react22.useMemo)(function () {
|
|
155417
|
+
return "window.__CONSTANT_HANDLER_MAP = " + JSON.stringify(Object.entries(constantHandlerMap).reduce(function (acc, _ref66) {
|
|
155418
|
+
var _ref67 = _slicedToArray(_ref66, 2),
|
|
155419
|
+
key = _ref67[0],
|
|
155420
|
+
value = _ref67[1];
|
|
155466
155421
|
acc[key] = typeof value === "function" ? value() : value;
|
|
155467
155422
|
return acc;
|
|
155468
155423
|
}, {})) + ";";
|
|
155469
155424
|
}, [constantHandlerMap]);
|
|
155470
|
-
(0,
|
|
155425
|
+
(0, import_react22.useEffect)(function () {
|
|
155471
155426
|
var _ref$current;
|
|
155472
155427
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.injectJavaScript(injectedJavaScript);
|
|
155473
155428
|
}, [injectedJavaScript]);
|
|
@@ -155484,8 +155439,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155484
155439
|
(_ref$current3 = ref.current) == null ? void 0 : _ref$current3.injectJavaScript("\n window.__GRANITE_NATIVE_EMITTER.emit('" + functionName + "/onError/" + eventId + "', " + serializedError + ");\n ");
|
|
155485
155440
|
};
|
|
155486
155441
|
};
|
|
155487
|
-
var $onMessage = (0,
|
|
155488
|
-
var
|
|
155442
|
+
var $onMessage = (0, import_react22.useCallback)(function () {
|
|
155443
|
+
var _ref68 = _asyncToGenerator(function* (e) {
|
|
155489
155444
|
onMessage == null ? void 0 : onMessage(e);
|
|
155490
155445
|
var data = parseNativeEventData(e.nativeEvent.data);
|
|
155491
155446
|
if (typeof data !== "object" || data === null || typeof data.functionName !== "string" || typeof data.eventId !== "string" || typeof data.type !== "string" || !["addEventListener", "removeEventListener", "method"].includes(data.type)) {
|
|
@@ -155530,7 +155485,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155530
155485
|
}
|
|
155531
155486
|
});
|
|
155532
155487
|
return function (_x5) {
|
|
155533
|
-
return
|
|
155488
|
+
return _ref68.apply(this, arguments);
|
|
155534
155489
|
};
|
|
155535
155490
|
}(), [onMessage]);
|
|
155536
155491
|
return {
|
|
@@ -155548,7 +155503,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155548
155503
|
}
|
|
155549
155504
|
}
|
|
155550
155505
|
var import_react_native_safe_area_context3 = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
155551
|
-
var
|
|
155506
|
+
var import_react23 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155552
155507
|
var EventEmitter = function () {
|
|
155553
155508
|
function EventEmitter() {
|
|
155554
155509
|
_classCallCheck(this, EventEmitter);
|
|
@@ -155589,10 +155544,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155589
155544
|
}();
|
|
155590
155545
|
function useSafeAreaInsetsEmitter() {
|
|
155591
155546
|
var insets = (0, import_react_native_safe_area_context3.useSafeAreaInsets)();
|
|
155592
|
-
var emitter = (0,
|
|
155547
|
+
var emitter = (0, import_react23.useMemo)(function () {
|
|
155593
155548
|
return new EventEmitter();
|
|
155594
155549
|
}, []);
|
|
155595
|
-
(0,
|
|
155550
|
+
(0, import_react23.useEffect)(function () {
|
|
155596
155551
|
emitter.emit("safeAreaInsetsChange", insets);
|
|
155597
155552
|
return function () {
|
|
155598
155553
|
emitter.off("safeAreaInsetsChange", function (listener) {
|
|
@@ -155603,10 +155558,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155603
155558
|
return emitter;
|
|
155604
155559
|
}
|
|
155605
155560
|
var import_react_native32 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155606
|
-
var
|
|
155561
|
+
var import_tds_react_native13 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
155607
155562
|
var import_es_hangul5 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
155608
|
-
var import_react26 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155609
155563
|
var import_react25 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155564
|
+
var import_react24 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155610
155565
|
var INITIAL_STATE = {
|
|
155611
155566
|
stack: [],
|
|
155612
155567
|
index: -1
|
|
@@ -155653,20 +155608,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155653
155608
|
}
|
|
155654
155609
|
}
|
|
155655
155610
|
function useWebViewHistory() {
|
|
155656
|
-
var
|
|
155657
|
-
|
|
155658
|
-
state =
|
|
155659
|
-
dispatch =
|
|
155660
|
-
var onNavigationStateChange = (0,
|
|
155661
|
-
var url =
|
|
155662
|
-
canGoForward2 =
|
|
155611
|
+
var _ref69 = (0, import_react24.useReducer)(reducer, INITIAL_STATE),
|
|
155612
|
+
_ref70 = _slicedToArray(_ref69, 2),
|
|
155613
|
+
state = _ref70[0],
|
|
155614
|
+
dispatch = _ref70[1];
|
|
155615
|
+
var onNavigationStateChange = (0, import_react24.useCallback)(function (_ref71) {
|
|
155616
|
+
var url = _ref71.url,
|
|
155617
|
+
canGoForward2 = _ref71.canGoForward;
|
|
155663
155618
|
dispatch({
|
|
155664
155619
|
type: "NAVIGATION_CHANGE",
|
|
155665
155620
|
url: url,
|
|
155666
155621
|
canGoForward: canGoForward2
|
|
155667
155622
|
});
|
|
155668
155623
|
}, []);
|
|
155669
|
-
var
|
|
155624
|
+
var _ref72 = (0, import_react24.useMemo)(function () {
|
|
155670
155625
|
var canBack = state.index > 0;
|
|
155671
155626
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
155672
155627
|
return {
|
|
@@ -155674,8 +155629,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155674
155629
|
canGoForward: canFwd
|
|
155675
155630
|
};
|
|
155676
155631
|
}, [state.index, state.stack.length]),
|
|
155677
|
-
canGoBack =
|
|
155678
|
-
canGoForward =
|
|
155632
|
+
canGoBack = _ref72.canGoBack,
|
|
155633
|
+
canGoForward = _ref72.canGoForward;
|
|
155679
155634
|
return {
|
|
155680
155635
|
onNavigationStateChange: onNavigationStateChange,
|
|
155681
155636
|
hasHistory: canGoBack,
|
|
@@ -155690,22 +155645,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155690
155645
|
var _useWebViewHistory = useWebViewHistory(),
|
|
155691
155646
|
hasHistory = _useWebViewHistory.hasHistory,
|
|
155692
155647
|
onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
155693
|
-
var
|
|
155694
|
-
webBackHandlersRef =
|
|
155695
|
-
hasWebBackEvent =
|
|
155696
|
-
addWebBackEventListener =
|
|
155697
|
-
removeWebBackEventListener =
|
|
155648
|
+
var _ref73 = (0, import_react_native32.useBackEventState)(),
|
|
155649
|
+
webBackHandlersRef = _ref73.handlersRef,
|
|
155650
|
+
hasWebBackEvent = _ref73.hasBackEvent,
|
|
155651
|
+
addWebBackEventListener = _ref73.addEventListener,
|
|
155652
|
+
removeWebBackEventListener = _ref73.removeEventListener;
|
|
155698
155653
|
var logging = useNavigationBarLogging();
|
|
155699
|
-
var
|
|
155700
|
-
openConfirm =
|
|
155654
|
+
var _ref74 = (0, import_tds_react_native13.useDialog)(),
|
|
155655
|
+
openConfirm = _ref74.openConfirm;
|
|
155701
155656
|
var global2 = getAppsInTossGlobals();
|
|
155702
|
-
var addEventListener = (0,
|
|
155657
|
+
var addEventListener = (0, import_react25.useCallback)(function (handler) {
|
|
155703
155658
|
addWebBackEventListener(handler);
|
|
155704
155659
|
}, [addWebBackEventListener]);
|
|
155705
|
-
var removeEventListener = (0,
|
|
155660
|
+
var removeEventListener = (0, import_react25.useCallback)(function (handler) {
|
|
155706
155661
|
removeWebBackEventListener(handler);
|
|
155707
155662
|
}, [removeWebBackEventListener]);
|
|
155708
|
-
var handleWebBack = (0,
|
|
155663
|
+
var handleWebBack = (0, import_react25.useCallback)(_asyncToGenerator(function* () {
|
|
155709
155664
|
if (hasWebBackEvent) {
|
|
155710
155665
|
for (var handler of webBackHandlersRef) {
|
|
155711
155666
|
handler();
|
|
@@ -155730,7 +155685,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155730
155685
|
}
|
|
155731
155686
|
}
|
|
155732
155687
|
}), [captureExitLog, global2.brandDisplayName, hasHistory, hasWebBackEvent, webBackHandlersRef, logging, openConfirm, webViewRef]);
|
|
155733
|
-
var handleWebHome = (0,
|
|
155688
|
+
var handleWebHome = (0, import_react25.useCallback)(function () {
|
|
155734
155689
|
var _webViewRef$current2;
|
|
155735
155690
|
logging.homeButtonClick();
|
|
155736
155691
|
if (hasWebBackEvent) {
|
|
@@ -155741,7 +155696,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155741
155696
|
}
|
|
155742
155697
|
(_webViewRef$current2 = webViewRef.current) == null ? void 0 : _webViewRef$current2.injectJavaScript(HISTORY_HOME_SCRIPT);
|
|
155743
155698
|
}, [hasWebBackEvent, webBackHandlersRef, logging, webViewRef]);
|
|
155744
|
-
return (0,
|
|
155699
|
+
return (0, import_react25.useMemo)(function () {
|
|
155745
155700
|
return {
|
|
155746
155701
|
addEventListener: addEventListener,
|
|
155747
155702
|
removeEventListener: removeEventListener,
|
|
@@ -155765,7 +155720,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155765
155720
|
});
|
|
155766
155721
|
};
|
|
155767
155722
|
}
|
|
155768
|
-
var
|
|
155723
|
+
var import_native_modules19 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155769
155724
|
var import_react_native33 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
155770
155725
|
var FontA11yCategory = {
|
|
155771
155726
|
Large: "Large",
|
|
@@ -155894,40 +155849,40 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155894
155849
|
function mapFontScaleToCategory(fontScale, platform) {
|
|
155895
155850
|
return platform === "ios" ? mapIOSFontScaleToCategory(fontScale) : mapAndroidFontScaleToCategory(fontScale);
|
|
155896
155851
|
}
|
|
155897
|
-
function _useCreateUserAgent(
|
|
155898
|
-
var batteryModePreference =
|
|
155899
|
-
colorPreference =
|
|
155900
|
-
locale =
|
|
155901
|
-
navbarPreference =
|
|
155902
|
-
pureSafeArea =
|
|
155903
|
-
safeArea =
|
|
155904
|
-
safeAreaBottomTransparency =
|
|
155905
|
-
var platform = (0,
|
|
155906
|
-
var appVersion = (0,
|
|
155907
|
-
var
|
|
155908
|
-
fontScale =
|
|
155852
|
+
function _useCreateUserAgent(_ref76) {
|
|
155853
|
+
var batteryModePreference = _ref76.batteryModePreference,
|
|
155854
|
+
colorPreference = _ref76.colorPreference,
|
|
155855
|
+
locale = _ref76.locale,
|
|
155856
|
+
navbarPreference = _ref76.navbarPreference,
|
|
155857
|
+
pureSafeArea = _ref76.pureSafeArea,
|
|
155858
|
+
safeArea = _ref76.safeArea,
|
|
155859
|
+
safeAreaBottomTransparency = _ref76.safeAreaBottomTransparency;
|
|
155860
|
+
var platform = (0, import_native_modules19.getPlatformOS)();
|
|
155861
|
+
var appVersion = (0, import_native_modules19.getTossAppVersion)();
|
|
155862
|
+
var _ref77 = (0, import_react_native33.useWindowDimensions)(),
|
|
155863
|
+
fontScale = _ref77.fontScale;
|
|
155909
155864
|
var platformString = platform === "ios" ? "iPhone" : "Android phone";
|
|
155910
155865
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
155911
155866
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
155912
155867
|
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(" ");
|
|
155913
155868
|
}
|
|
155914
|
-
var
|
|
155869
|
+
var import_native_modules20 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155915
155870
|
var import_react_native34 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155916
|
-
var
|
|
155917
|
-
function _useGeolocation(
|
|
155918
|
-
var accuracy =
|
|
155919
|
-
distanceInterval =
|
|
155920
|
-
timeInterval =
|
|
155871
|
+
var import_react26 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155872
|
+
function _useGeolocation(_ref78) {
|
|
155873
|
+
var accuracy = _ref78.accuracy,
|
|
155874
|
+
distanceInterval = _ref78.distanceInterval,
|
|
155875
|
+
timeInterval = _ref78.timeInterval;
|
|
155921
155876
|
var isVisible = (0, import_react_native34.useVisibility)();
|
|
155922
|
-
var
|
|
155923
|
-
|
|
155924
|
-
location =
|
|
155925
|
-
setLocation =
|
|
155926
|
-
(0,
|
|
155877
|
+
var _ref79 = (0, import_react26.useState)(null),
|
|
155878
|
+
_ref80 = _slicedToArray(_ref79, 2),
|
|
155879
|
+
location = _ref80[0],
|
|
155880
|
+
setLocation = _ref80[1];
|
|
155881
|
+
(0, import_react26.useEffect)(function () {
|
|
155927
155882
|
if (!isVisible) {
|
|
155928
155883
|
return;
|
|
155929
155884
|
}
|
|
155930
|
-
return (0,
|
|
155885
|
+
return (0, import_native_modules20.startUpdateLocation)({
|
|
155931
155886
|
options: {
|
|
155932
155887
|
accuracy: accuracy,
|
|
155933
155888
|
distanceInterval: distanceInterval,
|
|
@@ -155940,17 +155895,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155940
155895
|
return location;
|
|
155941
155896
|
}
|
|
155942
155897
|
var import_react_native35 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155943
|
-
var
|
|
155898
|
+
var import_react27 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155944
155899
|
function _useWaitForReturnNavigator() {
|
|
155945
|
-
var callbacks = (0,
|
|
155900
|
+
var callbacks = (0, import_react27.useRef)([]).current;
|
|
155946
155901
|
var navigation = (0, import_react_native35.useNavigation)();
|
|
155947
|
-
var startNavigating = (0,
|
|
155902
|
+
var startNavigating = (0, import_react27.useCallback)(function (route, params) {
|
|
155948
155903
|
return new Promise(function (resolve) {
|
|
155949
155904
|
callbacks.push(resolve);
|
|
155950
155905
|
navigation.navigate(route, params);
|
|
155951
155906
|
});
|
|
155952
155907
|
}, [callbacks, navigation]);
|
|
155953
|
-
var handleVisibilityChange = (0,
|
|
155908
|
+
var handleVisibilityChange = (0, import_react27.useCallback)(function (state) {
|
|
155954
155909
|
if (state === "visible" && callbacks.length > 0) {
|
|
155955
155910
|
for (var callback of callbacks) {
|
|
155956
155911
|
callback();
|
|
@@ -155970,7 +155925,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155970
155925
|
removeAccessoryButton: removeNavigationRightButton
|
|
155971
155926
|
};
|
|
155972
155927
|
}
|
|
155973
|
-
var
|
|
155928
|
+
var import_native_modules21 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155974
155929
|
var import_react_native36 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155975
155930
|
var extractDateFromUUIDv7 = function extractDateFromUUIDv7(uuid) {
|
|
155976
155931
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
@@ -156013,24 +155968,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156013
155968
|
deployment_timestamp: extractDateFromUUIDv7(_env.getDeploymentId()).getTime()
|
|
156014
155969
|
}
|
|
156015
155970
|
};
|
|
156016
|
-
return (0,
|
|
155971
|
+
return (0, import_native_modules21.eventLog)(log);
|
|
156017
155972
|
};
|
|
156018
155973
|
var import_jsx_runtime18 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
156019
155974
|
var operationalEnvironment = appsInTossConstantBridges.getOperationalEnvironment();
|
|
156020
155975
|
var TYPES = ["partner", "external", "game"];
|
|
156021
155976
|
var WEBVIEW_TYPES = {
|
|
156022
155977
|
partner: PartnerWebView,
|
|
156023
|
-
external:
|
|
155978
|
+
external: import_tds_react_native14.ExternalWebViewScreen,
|
|
156024
155979
|
game: GameWebView
|
|
156025
155980
|
};
|
|
156026
155981
|
function mergeSchemeQueryParamsInto(url) {
|
|
156027
155982
|
var baseUrl = new URL(url);
|
|
156028
155983
|
var schemeUrl = new URL((0, import_react_native37.getSchemeUri)());
|
|
156029
155984
|
baseUrl.pathname = schemeUrl.pathname;
|
|
156030
|
-
for (var
|
|
156031
|
-
var
|
|
156032
|
-
var key =
|
|
156033
|
-
var value =
|
|
155985
|
+
for (var _ref81 of schemeUrl.searchParams.entries()) {
|
|
155986
|
+
var _ref82 = _slicedToArray(_ref81, 2);
|
|
155987
|
+
var key = _ref82[0];
|
|
155988
|
+
var value = _ref82[1];
|
|
156034
155989
|
baseUrl.searchParams.set(key, value);
|
|
156035
155990
|
}
|
|
156036
155991
|
return baseUrl;
|
|
@@ -156040,7 +155995,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156040
155995
|
var devUrl = "http://" + local.host + ":" + local.port;
|
|
156041
155996
|
return mergeSchemeQueryParamsInto(devUrl).toString();
|
|
156042
155997
|
}
|
|
156043
|
-
var _import_native_module =
|
|
155998
|
+
var _import_native_module = import_native_modules22.AppsInTossModule.getWebBundleURL({}),
|
|
156044
155999
|
rawUrl = _import_native_module.url;
|
|
156045
156000
|
var url = mergeSchemeQueryParamsInto(rawUrl);
|
|
156046
156001
|
var deploymentId = _env.getDeploymentId();
|
|
@@ -156049,17 +156004,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156049
156004
|
}
|
|
156050
156005
|
return url.toString();
|
|
156051
156006
|
}
|
|
156052
|
-
function _WebView(
|
|
156053
|
-
var type =
|
|
156054
|
-
local =
|
|
156055
|
-
onMessage =
|
|
156056
|
-
props = _objectWithoutProperties(
|
|
156007
|
+
function _WebView(_ref83) {
|
|
156008
|
+
var type = _ref83.type,
|
|
156009
|
+
local = _ref83.local,
|
|
156010
|
+
onMessage = _ref83.onMessage,
|
|
156011
|
+
props = _objectWithoutProperties(_ref83, _excluded3);
|
|
156057
156012
|
if (!TYPES.includes(type)) {
|
|
156058
156013
|
throw new Error("Invalid WebView type: '" + type + "'");
|
|
156059
156014
|
}
|
|
156060
|
-
var webViewRef = (0,
|
|
156015
|
+
var webViewRef = (0, import_react28.useRef)(null);
|
|
156061
156016
|
var webBackHandler = useWebBackHandler(webViewRef);
|
|
156062
|
-
var uri = (0,
|
|
156017
|
+
var uri = (0, import_react28.useMemo)(function () {
|
|
156063
156018
|
return getWebViewUri(local);
|
|
156064
156019
|
}, [local]);
|
|
156065
156020
|
var top = (0, import_private9.useSafeAreaTop)();
|
|
@@ -156068,74 +156023,66 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156068
156023
|
var global2 = getAppsInTossGlobals();
|
|
156069
156024
|
var navigationBarContext = useNavigationBarContext();
|
|
156070
156025
|
var safeAreaInsetsEmitter = useSafeAreaInsetsEmitter();
|
|
156071
|
-
var
|
|
156072
|
-
|
|
156073
|
-
allowsBackForwardNavigationGestures =
|
|
156074
|
-
setAllowsBackForwardNavigationGestures =
|
|
156026
|
+
var _ref84 = (0, import_react28.useState)(props.allowsBackForwardNavigationGestures),
|
|
156027
|
+
_ref85 = _slicedToArray(_ref84, 2),
|
|
156028
|
+
allowsBackForwardNavigationGestures = _ref85[0],
|
|
156029
|
+
setAllowsBackForwardNavigationGestures = _ref85[1];
|
|
156075
156030
|
var handler = useBridgeHandler({
|
|
156076
156031
|
onMessage: onMessage,
|
|
156077
156032
|
eventListenerMap: Object.assign({}, appsInTossEventBridges, {
|
|
156078
|
-
navigationAccessoryEvent: function navigationAccessoryEvent(
|
|
156079
|
-
var onEvent =
|
|
156080
|
-
onError =
|
|
156081
|
-
return
|
|
156033
|
+
navigationAccessoryEvent: function navigationAccessoryEvent(_ref86) {
|
|
156034
|
+
var onEvent = _ref86.onEvent,
|
|
156035
|
+
onError = _ref86.onError;
|
|
156036
|
+
return import_tds_react_native14.tdsEvent.addEventListener("navigationAccessoryEvent", {
|
|
156082
156037
|
onEvent: onEvent,
|
|
156083
156038
|
onError: onError
|
|
156084
156039
|
});
|
|
156085
156040
|
},
|
|
156086
|
-
backEvent: function backEvent(
|
|
156087
|
-
var onEvent =
|
|
156041
|
+
backEvent: function backEvent(_ref87) {
|
|
156042
|
+
var onEvent = _ref87.onEvent;
|
|
156088
156043
|
webBackHandler.addEventListener(onEvent);
|
|
156089
156044
|
return function () {
|
|
156090
156045
|
webBackHandler.removeEventListener(onEvent);
|
|
156091
156046
|
};
|
|
156092
156047
|
},
|
|
156093
|
-
|
|
156094
|
-
var onEvent =
|
|
156095
|
-
onError =
|
|
156096
|
-
|
|
156097
|
-
|
|
156098
|
-
onError: onError
|
|
156099
|
-
});
|
|
156100
|
-
},
|
|
156101
|
-
updateLocationEvent: function updateLocationEvent(_ref94) {
|
|
156102
|
-
var onEvent = _ref94.onEvent,
|
|
156103
|
-
onError = _ref94.onError,
|
|
156104
|
-
options = _ref94.options;
|
|
156105
|
-
return import_native_modules23.appsInTossEvent.addEventListener("updateLocationEvent", {
|
|
156048
|
+
updateLocationEvent: function updateLocationEvent(_ref88) {
|
|
156049
|
+
var onEvent = _ref88.onEvent,
|
|
156050
|
+
onError = _ref88.onError,
|
|
156051
|
+
options = _ref88.options;
|
|
156052
|
+
return import_native_modules22.appsInTossEvent.addEventListener("updateLocationEvent", {
|
|
156106
156053
|
onEvent: onEvent,
|
|
156107
156054
|
onError: onError,
|
|
156108
156055
|
options: options
|
|
156109
156056
|
});
|
|
156110
156057
|
},
|
|
156111
|
-
safeAreaInsetsChange: function safeAreaInsetsChange(
|
|
156112
|
-
var onEvent =
|
|
156058
|
+
safeAreaInsetsChange: function safeAreaInsetsChange(_ref89) {
|
|
156059
|
+
var onEvent = _ref89.onEvent;
|
|
156113
156060
|
safeAreaInsetsEmitter.on("safeAreaInsetsChange", onEvent);
|
|
156114
156061
|
return function () {
|
|
156115
156062
|
safeAreaInsetsEmitter.off("safeAreaInsetsChange", onEvent);
|
|
156116
156063
|
};
|
|
156117
156064
|
},
|
|
156118
|
-
appBridgeCallbackEvent: function appBridgeCallbackEvent(
|
|
156119
|
-
var onEvent =
|
|
156120
|
-
onError =
|
|
156121
|
-
options =
|
|
156122
|
-
return
|
|
156065
|
+
appBridgeCallbackEvent: function appBridgeCallbackEvent(_ref90) {
|
|
156066
|
+
var onEvent = _ref90.onEvent,
|
|
156067
|
+
onError = _ref90.onError,
|
|
156068
|
+
options = _ref90.options;
|
|
156069
|
+
return import_native_modules22.appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
|
|
156123
156070
|
onEvent: onEvent,
|
|
156124
156071
|
onError: onError,
|
|
156125
156072
|
options: options
|
|
156126
156073
|
});
|
|
156127
156074
|
},
|
|
156128
|
-
loadAdMobInterstitialAd:
|
|
156129
|
-
showAdMobInterstitialAd:
|
|
156130
|
-
loadAdMobRewardedAd:
|
|
156131
|
-
showAdMobRewardedAd:
|
|
156132
|
-
loadAppsInTossAdMob:
|
|
156133
|
-
showAppsInTossAdMob:
|
|
156134
|
-
loadFullScreenAd:
|
|
156075
|
+
loadAdMobInterstitialAd: import_native_modules22.GoogleAdMob.loadAdMobInterstitialAd,
|
|
156076
|
+
showAdMobInterstitialAd: import_native_modules22.GoogleAdMob.showAdMobInterstitialAd,
|
|
156077
|
+
loadAdMobRewardedAd: import_native_modules22.GoogleAdMob.loadAdMobRewardedAd,
|
|
156078
|
+
showAdMobRewardedAd: import_native_modules22.GoogleAdMob.showAdMobRewardedAd,
|
|
156079
|
+
loadAppsInTossAdMob: import_native_modules22.GoogleAdMob.loadAppsInTossAdMob,
|
|
156080
|
+
showAppsInTossAdMob: import_native_modules22.GoogleAdMob.showAppsInTossAdMob,
|
|
156081
|
+
loadFullScreenAd: loadFullScreenAdForWeb,
|
|
156135
156082
|
showFullScreenAd: _showFullScreenAd,
|
|
156136
156083
|
fetchTossAd: fetchTossAd,
|
|
156137
|
-
iapCreateOneTimePurchaseOrder:
|
|
156138
|
-
requestOneTimePurchase:
|
|
156084
|
+
iapCreateOneTimePurchaseOrder: import_native_modules22.IAP.createOneTimePurchaseOrder,
|
|
156085
|
+
requestOneTimePurchase: import_native_modules22.requestOneTimePurchase
|
|
156139
156086
|
}),
|
|
156140
156087
|
constantHandlerMap: Object.assign({}, appsInTossConstantBridges, {
|
|
156141
156088
|
getSafeAreaTop: function getSafeAreaTop() {
|
|
@@ -156150,21 +156097,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156150
156097
|
getSafeAreaRight: function getSafeAreaRight() {
|
|
156151
156098
|
return insets.right;
|
|
156152
156099
|
}
|
|
156153
|
-
}, Object.fromEntries(Object.entries(global2).map(function (
|
|
156154
|
-
var
|
|
156155
|
-
key =
|
|
156156
|
-
value =
|
|
156100
|
+
}, Object.fromEntries(Object.entries(global2).map(function (_ref91) {
|
|
156101
|
+
var _ref92 = _slicedToArray(_ref91, 2),
|
|
156102
|
+
key = _ref92[0],
|
|
156103
|
+
value = _ref92[1];
|
|
156157
156104
|
return [key, function () {
|
|
156158
156105
|
return value;
|
|
156159
156106
|
}];
|
|
156160
156107
|
})), {
|
|
156161
|
-
loadAdMobInterstitialAd_isSupported:
|
|
156162
|
-
showAdMobInterstitialAd_isSupported:
|
|
156163
|
-
loadAdMobRewardedAd_isSupported:
|
|
156164
|
-
showAdMobRewardedAd_isSupported:
|
|
156165
|
-
loadAppsInTossAdMob_isSupported:
|
|
156166
|
-
showAppsInTossAdMob_isSupported:
|
|
156167
|
-
loadFullScreenAd_isSupported:
|
|
156108
|
+
loadAdMobInterstitialAd_isSupported: import_native_modules22.GoogleAdMob.loadAdMobInterstitialAd.isSupported,
|
|
156109
|
+
showAdMobInterstitialAd_isSupported: import_native_modules22.GoogleAdMob.showAdMobInterstitialAd.isSupported,
|
|
156110
|
+
loadAdMobRewardedAd_isSupported: import_native_modules22.GoogleAdMob.loadAdMobRewardedAd.isSupported,
|
|
156111
|
+
showAdMobRewardedAd_isSupported: import_native_modules22.GoogleAdMob.showAdMobRewardedAd.isSupported,
|
|
156112
|
+
loadAppsInTossAdMob_isSupported: import_native_modules22.GoogleAdMob.loadAppsInTossAdMob.isSupported,
|
|
156113
|
+
showAppsInTossAdMob_isSupported: import_native_modules22.GoogleAdMob.showAppsInTossAdMob.isSupported,
|
|
156114
|
+
loadFullScreenAd_isSupported: loadFullScreenAdForWeb.isSupported,
|
|
156168
156115
|
showFullScreenAd_isSupported: _showFullScreenAd.isSupported,
|
|
156169
156116
|
fetchTossAd_isSupported: fetchTossAd.isSupported,
|
|
156170
156117
|
getDeploymentId: _env.getDeploymentId
|
|
@@ -156201,20 +156148,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156201
156148
|
fetchContacts: appsInTossAsyncBridges.fetchContacts,
|
|
156202
156149
|
getCurrentLocation: appsInTossAsyncBridges.getCurrentLocation,
|
|
156203
156150
|
openCamera: appsInTossAsyncBridges.openCamera,
|
|
156204
|
-
getStorageItem:
|
|
156205
|
-
setStorageItem:
|
|
156206
|
-
removeStorageItem:
|
|
156207
|
-
clearItems:
|
|
156208
|
-
iapGetProductItemList:
|
|
156209
|
-
iapCreateOneTimePurchaseOrder:
|
|
156210
|
-
processProductGrant:
|
|
156211
|
-
getPendingOrders:
|
|
156212
|
-
getCompletedOrRefundedOrders:
|
|
156213
|
-
completeProductGrant:
|
|
156151
|
+
getStorageItem: import_native_modules22.Storage.getItem,
|
|
156152
|
+
setStorageItem: import_native_modules22.Storage.setItem,
|
|
156153
|
+
removeStorageItem: import_native_modules22.Storage.removeItem,
|
|
156154
|
+
clearItems: import_native_modules22.Storage.clearItems,
|
|
156155
|
+
iapGetProductItemList: import_native_modules22.IAP.getProductItemList,
|
|
156156
|
+
iapCreateOneTimePurchaseOrder: import_native_modules22.iapCreateOneTimePurchaseOrder,
|
|
156157
|
+
processProductGrant: import_native_modules22.processProductGrant,
|
|
156158
|
+
getPendingOrders: import_native_modules22.IAP.getPendingOrders,
|
|
156159
|
+
getCompletedOrRefundedOrders: import_native_modules22.IAP.getCompletedOrRefundedOrders,
|
|
156160
|
+
completeProductGrant: import_native_modules22.IAP.completeProductGrant,
|
|
156214
156161
|
tossAdEventLog: tossAdEventLog
|
|
156215
156162
|
})
|
|
156216
156163
|
});
|
|
156217
|
-
var headerPropForExternalWebView = (0,
|
|
156164
|
+
var headerPropForExternalWebView = (0, import_react28.useMemo)(function () {
|
|
156218
156165
|
var _parsedNavigationBar$5;
|
|
156219
156166
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
156220
156167
|
var initialAccessoryButton = parsedNavigationBar == null ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
@@ -156236,7 +156183,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156236
156183
|
colorPreference: "light"
|
|
156237
156184
|
});
|
|
156238
156185
|
var refs = mergeRefs(handler.ref, webViewRef);
|
|
156239
|
-
(0,
|
|
156186
|
+
(0, import_react28.useEffect)(function () {
|
|
156240
156187
|
var callback = function callback() {
|
|
156241
156188
|
webBackHandler.handleWebBack();
|
|
156242
156189
|
return true;
|
|
@@ -156344,16 +156291,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156344
156291
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
156345
156292
|
"use strict";
|
|
156346
156293
|
|
|
156347
|
-
var
|
|
156348
|
-
var
|
|
156349
|
-
var
|
|
156350
|
-
var
|
|
156351
|
-
var
|
|
156352
|
-
var _excluded = ["
|
|
156353
|
-
_excluded2 = ["
|
|
156354
|
-
_excluded3 = ["
|
|
156355
|
-
_excluded4 = ["params"],
|
|
156356
|
-
_excluded5 = ["
|
|
156294
|
+
var _defineProperty = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/defineProperty");
|
|
156295
|
+
var _asyncToGenerator = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator");
|
|
156296
|
+
var _toConsumableArray = _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/toConsumableArray");
|
|
156297
|
+
var _slicedToArray = _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/slicedToArray");
|
|
156298
|
+
var _objectWithoutProperties = _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/objectWithoutProperties");
|
|
156299
|
+
var _excluded = ["log_name"],
|
|
156300
|
+
_excluded2 = ["enabled", "impression"],
|
|
156301
|
+
_excluded3 = ["params"],
|
|
156302
|
+
_excluded4 = ["children", "params"],
|
|
156303
|
+
_excluded5 = ["params"],
|
|
156304
|
+
_excluded6 = ["loggerParams", "children", "hasIOScrollView"];
|
|
156357
156305
|
var __defProp = Object.defineProperty;
|
|
156358
156306
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
156359
156307
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -156464,10 +156412,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156464
156412
|
});
|
|
156465
156413
|
},
|
|
156466
156414
|
event: function event(groupId, params) {
|
|
156415
|
+
var log_name = params.log_name,
|
|
156416
|
+
otherParams = _objectWithoutProperties(params, _excluded);
|
|
156467
156417
|
loggerFunction == null ? void 0 : loggerFunction({
|
|
156468
156418
|
log_type: "event",
|
|
156469
|
-
log_name: createLogName(groupId, params.event_type),
|
|
156470
|
-
params:
|
|
156419
|
+
log_name: log_name != null ? log_name : createLogName(groupId, params.event_type),
|
|
156420
|
+
params: otherParams
|
|
156471
156421
|
});
|
|
156472
156422
|
}
|
|
156473
156423
|
};
|
|
@@ -156573,9 +156523,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156573
156523
|
enabled = _ref7$enabled === void 0 ? true : _ref7$enabled,
|
|
156574
156524
|
_ref7$impression = _ref7.impression,
|
|
156575
156525
|
impressionType = _ref7$impression === void 0 ? "always" : _ref7$impression,
|
|
156576
|
-
props = _objectWithoutProperties(_ref7,
|
|
156526
|
+
props = _objectWithoutProperties(_ref7, _excluded2);
|
|
156577
156527
|
var params = props.params,
|
|
156578
|
-
rest = _objectWithoutProperties(props,
|
|
156528
|
+
rest = _objectWithoutProperties(props, _excluded3);
|
|
156579
156529
|
var ImpressionAreaComponent = impressionType === "on-mount" ? import_react_native.ImpressionAreaOnMount : import_react_native.ImpressionArea;
|
|
156580
156530
|
var isInFallbackProvider = (0, import_react7.useContext)(ImpressionFallbackContext);
|
|
156581
156531
|
return (0, import_jsx_runtime.jsx)(LoggingEvent, {
|
|
@@ -156639,7 +156589,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156639
156589
|
var children = _ref10.children,
|
|
156640
156590
|
_ref10$params = _ref10.params,
|
|
156641
156591
|
_params = _ref10$params === void 0 ? {} : _ref10$params,
|
|
156642
|
-
props = _objectWithoutProperties(_ref10,
|
|
156592
|
+
props = _objectWithoutProperties(_ref10, _excluded4);
|
|
156643
156593
|
var ref = (0, import_react9.useRef)(null);
|
|
156644
156594
|
var logger = useLogger();
|
|
156645
156595
|
var _params2 = usePreservedReference(_params);
|
|
@@ -156792,7 +156742,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156792
156742
|
function LoggingScreen(_ref16) {
|
|
156793
156743
|
var _ref16$params = _ref16.params,
|
|
156794
156744
|
_params = _ref16$params === void 0 ? {} : _ref16$params,
|
|
156795
|
-
props = _objectWithoutProperties(_ref16,
|
|
156745
|
+
props = _objectWithoutProperties(_ref16, _excluded5);
|
|
156796
156746
|
var _useRoutePath = useRoutePath(),
|
|
156797
156747
|
groupId = _useRoutePath.path,
|
|
156798
156748
|
search = _useRoutePath.search;
|
|
@@ -156934,7 +156884,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156934
156884
|
children = _ref18.children,
|
|
156935
156885
|
_ref18$hasIOScrollVie = _ref18.hasIOScrollView,
|
|
156936
156886
|
hasIOScrollView = _ref18$hasIOScrollVie === void 0 ? true : _ref18$hasIOScrollVie,
|
|
156937
|
-
props = _objectWithoutProperties(_ref18,
|
|
156887
|
+
props = _objectWithoutProperties(_ref18, _excluded6);
|
|
156938
156888
|
var hasIntersectionObserver = (0, import_react14.isValidElement)(children) && children.type === import_react_native6.IOScrollView;
|
|
156939
156889
|
return (0, import_jsx_runtime5.jsx)(LoggingScreen, {
|
|
156940
156890
|
params: loggerParams,
|
|
@@ -156954,18 +156904,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156954
156904
|
Analytics: _Analytics,
|
|
156955
156905
|
withLoggingScreen: _withLoggingScreen
|
|
156956
156906
|
});
|
|
156957
|
-
},1258,[
|
|
156907
|
+
},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");
|
|
156958
156908
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
156959
156909
|
"use strict";
|
|
156960
156910
|
|
|
156961
156911
|
var _slicedToArray = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/slicedToArray");
|
|
156962
156912
|
var _objectWithoutProperties = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties");
|
|
156963
|
-
var
|
|
156964
|
-
var
|
|
156965
|
-
var
|
|
156966
|
-
var
|
|
156967
|
-
var
|
|
156968
|
-
var
|
|
156913
|
+
var _classCallCheck = _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck");
|
|
156914
|
+
var _createClass = _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass");
|
|
156915
|
+
var _possibleConstructorReturn = _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn");
|
|
156916
|
+
var _getPrototypeOf = _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf");
|
|
156917
|
+
var _inherits = _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/inherits");
|
|
156918
|
+
var _asyncToGenerator = _$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/asyncToGenerator");
|
|
156969
156919
|
var _excluded = ["onSuccess", "onError"];
|
|
156970
156920
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
156971
156921
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
@@ -157157,32 +157107,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157157
157107
|
}
|
|
157158
157108
|
});
|
|
157159
157109
|
module.exports = __toCommonJS(index_exports);
|
|
157160
|
-
var
|
|
157161
|
-
var import_react_native = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
157162
|
-
var EntryMessageExitedEvent = function (_import_react_native$) {
|
|
157163
|
-
function EntryMessageExitedEvent() {
|
|
157164
|
-
var _this;
|
|
157165
|
-
_classCallCheck(this, EntryMessageExitedEvent);
|
|
157166
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
157167
|
-
args[_key] = arguments[_key];
|
|
157168
|
-
}
|
|
157169
|
-
_this = _callSuper(this, EntryMessageExitedEvent, [].concat(args));
|
|
157170
|
-
_this.name = "entryMessageExited";
|
|
157171
|
-
return _this;
|
|
157172
|
-
}
|
|
157173
|
-
_inherits(EntryMessageExitedEvent, _import_react_native$);
|
|
157174
|
-
return _createClass(EntryMessageExitedEvent, [{
|
|
157175
|
-
key: "remove",
|
|
157176
|
-
value: function remove() {}
|
|
157177
|
-
}, {
|
|
157178
|
-
key: "listener",
|
|
157179
|
-
value: function listener(_) {}
|
|
157180
|
-
}]);
|
|
157181
|
-
}(import_react_native.GraniteEventDefinition);
|
|
157110
|
+
var import_react_native6 = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
157182
157111
|
var import_types = _$$_REQUIRE(_dependencyMap[9], "@apps-in-toss/types");
|
|
157183
|
-
var
|
|
157184
|
-
var
|
|
157185
|
-
var Module =
|
|
157112
|
+
var import_react_native3 = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
157113
|
+
var import_react_native = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
157114
|
+
var Module = import_react_native.TurboModuleRegistry.getEnforcing("AppsInTossModule");
|
|
157186
157115
|
var AppsInTossModuleInstance = Module;
|
|
157187
157116
|
var _AppsInTossModule = Module;
|
|
157188
157117
|
function openPermissionDialog(permission) {
|
|
@@ -157207,22 +157136,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157207
157136
|
});
|
|
157208
157137
|
return _requestPermission.apply(this, arguments);
|
|
157209
157138
|
}
|
|
157210
|
-
var
|
|
157211
|
-
var nativeEventEmitter = new
|
|
157139
|
+
var import_react_native2 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
157140
|
+
var nativeEventEmitter = new import_react_native2.NativeEventEmitter(AppsInTossModuleInstance);
|
|
157212
157141
|
var UpdateLocationEvent = function (_import_react_native) {
|
|
157213
157142
|
function UpdateLocationEvent() {
|
|
157214
|
-
var
|
|
157143
|
+
var _this;
|
|
157215
157144
|
_classCallCheck(this, UpdateLocationEvent);
|
|
157216
|
-
for (var
|
|
157217
|
-
args[
|
|
157145
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
157146
|
+
args[_key] = arguments[_key];
|
|
157218
157147
|
}
|
|
157219
|
-
|
|
157220
|
-
|
|
157221
|
-
|
|
157222
|
-
|
|
157148
|
+
_this = _callSuper(this, UpdateLocationEvent, [].concat(args));
|
|
157149
|
+
_this.name = "updateLocationEvent";
|
|
157150
|
+
_this.subscriptionCount = 0;
|
|
157151
|
+
_this.ref = {
|
|
157223
157152
|
remove: function remove() {}
|
|
157224
157153
|
};
|
|
157225
|
-
return
|
|
157154
|
+
return _this;
|
|
157226
157155
|
}
|
|
157227
157156
|
_inherits(UpdateLocationEvent, _import_react_native);
|
|
157228
157157
|
return _createClass(UpdateLocationEvent, [{
|
|
@@ -157236,7 +157165,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157236
157165
|
}, {
|
|
157237
157166
|
key: "listener",
|
|
157238
157167
|
value: function listener(options, onEvent, onError) {
|
|
157239
|
-
var
|
|
157168
|
+
var _this2 = this;
|
|
157240
157169
|
requestPermission({
|
|
157241
157170
|
name: "geolocation",
|
|
157242
157171
|
access: "access"
|
|
@@ -157247,25 +157176,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157247
157176
|
}
|
|
157248
157177
|
void AppsInTossModuleInstance.startUpdateLocation(options).catch(onError);
|
|
157249
157178
|
var subscription = nativeEventEmitter.addListener("updateLocation", onEvent);
|
|
157250
|
-
|
|
157179
|
+
_this2.ref = {
|
|
157251
157180
|
remove: function remove() {
|
|
157252
157181
|
return subscription == null ? void 0 : subscription.remove();
|
|
157253
157182
|
}
|
|
157254
157183
|
};
|
|
157255
|
-
|
|
157184
|
+
_this2.subscriptionCount++;
|
|
157256
157185
|
}).catch(onError);
|
|
157257
157186
|
}
|
|
157258
157187
|
}]);
|
|
157259
|
-
}(
|
|
157260
|
-
var
|
|
157188
|
+
}(import_react_native3.GraniteEventDefinition);
|
|
157189
|
+
var import_react_native4 = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
157261
157190
|
function generateUUID(placeholder) {
|
|
157262
157191
|
return placeholder ? (placeholder ^ Math.random() * 16 >> placeholder / 4).toString(16) : (String(1e7) + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, generateUUID);
|
|
157263
157192
|
}
|
|
157264
157193
|
var INTERNAL__callbacks = new Map();
|
|
157265
157194
|
function invokeAppBridgeCallback(id) {
|
|
157266
157195
|
var callback = INTERNAL__callbacks.get(id);
|
|
157267
|
-
for (var
|
|
157268
|
-
args[
|
|
157196
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
157197
|
+
args[_key2 - 1] = arguments[_key2];
|
|
157269
157198
|
}
|
|
157270
157199
|
callback == null ? void 0 : callback.call.apply(callback, [null].concat(args));
|
|
157271
157200
|
return Boolean(callback);
|
|
@@ -157329,12 +157258,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157329
157258
|
var UNSAFE__nativeEventEmitter = nativeEventEmitter;
|
|
157330
157259
|
var AppBridgeCallbackEvent = function (_import_react_native2) {
|
|
157331
157260
|
function _AppBridgeCallbackEvent() {
|
|
157332
|
-
var
|
|
157261
|
+
var _this3;
|
|
157333
157262
|
_classCallCheck(this, _AppBridgeCallbackEvent);
|
|
157334
|
-
|
|
157335
|
-
|
|
157336
|
-
|
|
157337
|
-
return
|
|
157263
|
+
_this3 = _callSuper(this, _AppBridgeCallbackEvent);
|
|
157264
|
+
_this3.name = "appBridgeCallbackEvent";
|
|
157265
|
+
_this3.registerAppBridgeCallbackEventListener();
|
|
157266
|
+
return _this3;
|
|
157338
157267
|
}
|
|
157339
157268
|
_inherits(_AppBridgeCallbackEvent, _import_react_native2);
|
|
157340
157269
|
return _createClass(_AppBridgeCallbackEvent, [{
|
|
@@ -157361,19 +157290,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157361
157290
|
}
|
|
157362
157291
|
}
|
|
157363
157292
|
}]);
|
|
157364
|
-
}(
|
|
157365
|
-
var
|
|
157293
|
+
}(import_react_native4.GraniteEventDefinition);
|
|
157294
|
+
var import_react_native5 = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
157366
157295
|
var VisibilityChangedByTransparentServiceWebEvent = function (_import_react_native3) {
|
|
157367
157296
|
function VisibilityChangedByTransparentServiceWebEvent() {
|
|
157368
|
-
var
|
|
157297
|
+
var _this4;
|
|
157369
157298
|
_classCallCheck(this, VisibilityChangedByTransparentServiceWebEvent);
|
|
157370
|
-
for (var
|
|
157371
|
-
args[
|
|
157299
|
+
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
157300
|
+
args[_key3] = arguments[_key3];
|
|
157372
157301
|
}
|
|
157373
|
-
|
|
157374
|
-
|
|
157375
|
-
|
|
157376
|
-
return
|
|
157302
|
+
_this4 = _callSuper(this, VisibilityChangedByTransparentServiceWebEvent, [].concat(args));
|
|
157303
|
+
_this4.name = "onVisibilityChangedByTransparentServiceWeb";
|
|
157304
|
+
_this4.subscription = null;
|
|
157305
|
+
return _this4;
|
|
157377
157306
|
}
|
|
157378
157307
|
_inherits(VisibilityChangedByTransparentServiceWebEvent, _import_react_native3);
|
|
157379
157308
|
return _createClass(VisibilityChangedByTransparentServiceWebEvent, [{
|
|
@@ -157386,9 +157315,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157386
157315
|
}, {
|
|
157387
157316
|
key: "listener",
|
|
157388
157317
|
value: function listener(options, onEvent, onError) {
|
|
157389
|
-
var
|
|
157318
|
+
var _this5 = this;
|
|
157390
157319
|
var subscription = nativeEventEmitter.addListener("visibilityChangedByTransparentServiceWeb", function (params) {
|
|
157391
|
-
if (
|
|
157320
|
+
if (_this5.isVisibilityChangedByTransparentServiceWebResult(params)) {
|
|
157392
157321
|
if (params.callbackId === options.callbackId) {
|
|
157393
157322
|
onEvent(params.isVisible);
|
|
157394
157323
|
}
|
|
@@ -157404,13 +157333,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157404
157333
|
return typeof params === "object" && typeof params.callbackId === "string" && typeof params.isVisible === "boolean";
|
|
157405
157334
|
}
|
|
157406
157335
|
}]);
|
|
157407
|
-
}(
|
|
157408
|
-
var _appsInTossEvent = new
|
|
157336
|
+
}(import_react_native5.GraniteEventDefinition);
|
|
157337
|
+
var _appsInTossEvent = new import_react_native6.GraniteEvent([new UpdateLocationEvent(), new AppBridgeCallbackEvent(), new VisibilityChangedByTransparentServiceWebEvent()]);
|
|
157409
157338
|
var import_es_toolkit = _$$_REQUIRE(_dependencyMap[11], "es-toolkit");
|
|
157410
157339
|
function _getOperationalEnvironment() {
|
|
157411
157340
|
return _AppsInTossModule.operationalEnvironment;
|
|
157412
157341
|
}
|
|
157413
|
-
var
|
|
157342
|
+
var import_react_native7 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
157414
157343
|
var SEMVER_REGEX = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\\-]+(?:\.[\da-z\\-]+)*))?(?:\+[\da-z\\-]+(?:\.[\da-z\\-]+)*)?)?)?$/i;
|
|
157415
157344
|
var isWildcard = function isWildcard(val) {
|
|
157416
157345
|
return ["*", "x", "X"].includes(val);
|
|
@@ -157493,7 +157422,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157493
157422
|
return true;
|
|
157494
157423
|
}
|
|
157495
157424
|
var currentVersion = _AppsInTossModule.tossAppVersion;
|
|
157496
|
-
var isIOS =
|
|
157425
|
+
var isIOS = import_react_native7.Platform.OS === "ios";
|
|
157497
157426
|
var minVersion = isIOS ? minVersions.ios : minVersions.android;
|
|
157498
157427
|
if (minVersion === void 0) {
|
|
157499
157428
|
return false;
|
|
@@ -157655,10 +157584,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157655
157584
|
showAdMobInterstitialAd.isSupported = createIsSupported();
|
|
157656
157585
|
showAdMobRewardedAd.isSupported = createIsSupported();
|
|
157657
157586
|
var import_es_toolkit2 = _$$_REQUIRE(_dependencyMap[11], "es-toolkit");
|
|
157658
|
-
var
|
|
157587
|
+
var import_react_native8 = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
157659
157588
|
function getReferrer() {
|
|
157660
157589
|
try {
|
|
157661
|
-
return new URL((0,
|
|
157590
|
+
return new URL((0, import_react_native8.getSchemeUri)()).searchParams.get("referrer");
|
|
157662
157591
|
} catch (_unused) {
|
|
157663
157592
|
return null;
|
|
157664
157593
|
}
|
|
@@ -158198,7 +158127,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158198
158127
|
removeItem: removeItem,
|
|
158199
158128
|
clearItems: clearItems
|
|
158200
158129
|
};
|
|
158201
|
-
var
|
|
158130
|
+
var import_react_native9 = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
158202
158131
|
var GAME_CENTER_MIN_VERSION = {
|
|
158203
158132
|
android: "5.221.0",
|
|
158204
158133
|
ios: "5.221.0"
|
|
@@ -158231,7 +158160,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158231
158160
|
var url = new URL("servicetoss://game-center/leaderboard?_navbar=hide");
|
|
158232
158161
|
url.searchParams.set("appName", appName);
|
|
158233
158162
|
url.searchParams.set("referrer", "appsintoss." + appName);
|
|
158234
|
-
return (0,
|
|
158163
|
+
return (0, import_react_native9.openURL)(url.toString());
|
|
158235
158164
|
});
|
|
158236
158165
|
return _openGameCenterLeaderboard2.apply(this, arguments);
|
|
158237
158166
|
}
|
|
@@ -158399,8 +158328,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158399
158328
|
function _onVisibilityChangedByTransparentServiceWeb(eventParams) {
|
|
158400
158329
|
return _appsInTossEvent.addEventListener("onVisibilityChangedByTransparentServiceWeb", eventParams);
|
|
158401
158330
|
}
|
|
158402
|
-
var
|
|
158403
|
-
var _BedrockModule =
|
|
158331
|
+
var import_react_native10 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
158332
|
+
var _BedrockModule = import_react_native10.NativeModules.BedrockModule;
|
|
158404
158333
|
function _closeView() {
|
|
158405
158334
|
return _closeView2.apply(this, arguments);
|
|
158406
158335
|
}
|
|
@@ -158410,11 +158339,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158410
158339
|
});
|
|
158411
158340
|
return _closeView2.apply(this, arguments);
|
|
158412
158341
|
}
|
|
158413
|
-
var
|
|
158342
|
+
var import_react_native11 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
158414
158343
|
function _getLocale() {
|
|
158415
158344
|
var _BedrockModule$Device, _BedrockModule$Device2;
|
|
158416
158345
|
var locale = (_BedrockModule$Device = _BedrockModule == null ? void 0 : (_BedrockModule$Device2 = _BedrockModule.DeviceInfo) == null ? void 0 : _BedrockModule$Device2.locale) != null ? _BedrockModule$Device : "ko-KR";
|
|
158417
|
-
if (
|
|
158346
|
+
if (import_react_native11.Platform.OS === "android") {
|
|
158418
158347
|
return replaceUnderbarToHypen(locale);
|
|
158419
158348
|
}
|
|
158420
158349
|
return locale;
|
|
@@ -158464,18 +158393,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158464
158393
|
});
|
|
158465
158394
|
return _setIosSwipeGestureEnabled2.apply(this, arguments);
|
|
158466
158395
|
}
|
|
158467
|
-
var
|
|
158396
|
+
var import_react_native12 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
158468
158397
|
function openURL2(url) {
|
|
158469
|
-
return
|
|
158398
|
+
return import_react_native12.Linking.openURL(url);
|
|
158470
158399
|
}
|
|
158471
|
-
var
|
|
158400
|
+
var import_react_native13 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
158472
158401
|
function _getPlatformOS() {
|
|
158473
|
-
return
|
|
158402
|
+
return import_react_native13.Platform.OS;
|
|
158474
158403
|
}
|
|
158404
|
+
var import_react_native14 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
158405
|
+
var _BedrockCoreModule = import_react_native14.NativeModules.BedrockCoreModule;
|
|
158475
158406
|
var import_react_native15 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
158476
|
-
var
|
|
158477
|
-
var import_react_native16 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
158478
|
-
var TossCoreModule = import_react_native16.NativeModules.TossCoreModule;
|
|
158407
|
+
var TossCoreModule = import_react_native15.NativeModules.TossCoreModule;
|
|
158479
158408
|
function tossCoreEventLog(params) {
|
|
158480
158409
|
var supported = _isMinVersionSupported({
|
|
158481
158410
|
ios: "5.210.0",
|
|
@@ -158549,7 +158478,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158549
158478
|
startUpdateLocation: _startUpdateLocation,
|
|
158550
158479
|
submitGameCenterLeaderBoardScore: _submitGameCenterLeaderBoardScore
|
|
158551
158480
|
});
|
|
158552
|
-
},1259,[61,207,
|
|
158481
|
+
},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");
|
|
158553
158482
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
158554
158483
|
"use strict";
|
|
158555
158484
|
|
|
@@ -233439,7 +233368,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233439
233368
|
}
|
|
233440
233369
|
});
|
|
233441
233370
|
});
|
|
233442
|
-
},2613,[2614,
|
|
233371
|
+
},2613,[2614,2629,2628],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/event-bridges.ts");
|
|
233443
233372
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233444
233373
|
Object.defineProperty(exports, "__esModule", {
|
|
233445
233374
|
value: true
|
|
@@ -233452,54 +233381,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233452
233381
|
}
|
|
233453
233382
|
startUpdateLocation.openPermissionDialog = _nativeModules.getCurrentLocation.openPermissionDialog;
|
|
233454
233383
|
startUpdateLocation.getPermission = _nativeModules.getCurrentLocation.getPermission;
|
|
233455
|
-
},2614,[2615,
|
|
233384
|
+
},2614,[2615,2622],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/startUpdateLocation.ts");
|
|
233456
233385
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233457
233386
|
Object.defineProperty(exports, "__esModule", {
|
|
233458
233387
|
value: true
|
|
233459
233388
|
});
|
|
233460
233389
|
exports.appsInTossEvent = void 0;
|
|
233461
233390
|
var _reactNative = _$$_REQUIRE(_dependencyMap[0], "@granite-js/react-native");
|
|
233462
|
-
var
|
|
233463
|
-
var
|
|
233464
|
-
var
|
|
233465
|
-
var
|
|
233466
|
-
|
|
233467
|
-
},2615,[2,2616,2617,2619,2622],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/appsInTossEvent.ts");
|
|
233468
|
-
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233469
|
-
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
233470
|
-
Object.defineProperty(exports, "__esModule", {
|
|
233471
|
-
value: true
|
|
233472
|
-
});
|
|
233473
|
-
exports.EntryMessageExitedEvent = void 0;
|
|
233474
|
-
var _classCallCheck2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/classCallCheck"));
|
|
233475
|
-
var _createClass2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/createClass"));
|
|
233476
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/possibleConstructorReturn"));
|
|
233477
|
-
var _getPrototypeOf2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/getPrototypeOf"));
|
|
233478
|
-
var _inherits2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/inherits"));
|
|
233479
|
-
var _reactNative = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
|
|
233480
|
-
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)); }
|
|
233481
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
233482
|
-
var EntryMessageExitedEvent = exports.EntryMessageExitedEvent = function (_GraniteEventDefiniti) {
|
|
233483
|
-
function EntryMessageExitedEvent() {
|
|
233484
|
-
var _this;
|
|
233485
|
-
(0, _classCallCheck2.default)(this, EntryMessageExitedEvent);
|
|
233486
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
233487
|
-
args[_key] = arguments[_key];
|
|
233488
|
-
}
|
|
233489
|
-
_this = _callSuper(this, EntryMessageExitedEvent, [].concat(args));
|
|
233490
|
-
_this.name = 'entryMessageExited';
|
|
233491
|
-
return _this;
|
|
233492
|
-
}
|
|
233493
|
-
(0, _inherits2.default)(EntryMessageExitedEvent, _GraniteEventDefiniti);
|
|
233494
|
-
return (0, _createClass2.default)(EntryMessageExitedEvent, [{
|
|
233495
|
-
key: "remove",
|
|
233496
|
-
value: function remove() {}
|
|
233497
|
-
}, {
|
|
233498
|
-
key: "listener",
|
|
233499
|
-
value: function listener(_) {}
|
|
233500
|
-
}]);
|
|
233501
|
-
}(_reactNative.GraniteEventDefinition);
|
|
233502
|
-
},2616,[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");
|
|
233391
|
+
var _UpdateLocationEvent = _$$_REQUIRE(_dependencyMap[1], "./event-plugins/UpdateLocationEvent");
|
|
233392
|
+
var _AppBridgeCallbackEvent = _$$_REQUIRE(_dependencyMap[2], "./internal/AppBridgeCallbackEvent");
|
|
233393
|
+
var _VisibilityChangedByTransparentServiceWebEvent = _$$_REQUIRE(_dependencyMap[3], "./internal/VisibilityChangedByTransparentServiceWebEvent");
|
|
233394
|
+
var appsInTossEvent = exports.appsInTossEvent = new _reactNative.GraniteEvent([new _UpdateLocationEvent.UpdateLocationEvent(), new _AppBridgeCallbackEvent.AppBridgeCallbackEvent(), new _VisibilityChangedByTransparentServiceWebEvent.VisibilityChangedByTransparentServiceWebEvent()]);
|
|
233395
|
+
},2615,[2,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");
|
|
233503
233396
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233504
233397
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
233505
233398
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -233566,7 +233459,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233566
233459
|
}
|
|
233567
233460
|
}]);
|
|
233568
233461
|
}(_reactNative.GraniteEventDefinition);
|
|
233569
|
-
},
|
|
233462
|
+
},2616,[1,24,25,43,46,47,1260,2,2580,2581,2617],"../../.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");
|
|
233570
233463
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233571
233464
|
Object.defineProperty(exports, "__esModule", {
|
|
233572
233465
|
value: true
|
|
@@ -233575,7 +233468,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233575
233468
|
var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native");
|
|
233576
233469
|
var _AppsInTossModule = _$$_REQUIRE(_dependencyMap[1], "../native-modules/AppsInTossModule");
|
|
233577
233470
|
var nativeEventEmitter = exports.nativeEventEmitter = new _reactNative.NativeEventEmitter(_AppsInTossModule.AppsInTossModuleInstance);
|
|
233578
|
-
},
|
|
233471
|
+
},2617,[18,2580],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/nativeEventEmitter.ts");
|
|
233579
233472
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233580
233473
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
233581
233474
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -233628,7 +233521,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233628
233521
|
}
|
|
233629
233522
|
}]);
|
|
233630
233523
|
}(_reactNative.GraniteEventDefinition);
|
|
233631
|
-
},
|
|
233524
|
+
},2618,[1,24,25,43,46,47,2,2619,2617],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/internal/AppBridgeCallbackEvent.ts");
|
|
233632
233525
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233633
233526
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
233634
233527
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -233705,7 +233598,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233705
233598
|
unregisterCallback: unregisterCallback,
|
|
233706
233599
|
getCallbackIds: getCallbackIds
|
|
233707
233600
|
};
|
|
233708
|
-
},
|
|
233601
|
+
},2619,[1,61,207,2620,2580],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/internal/appBridge.ts");
|
|
233709
233602
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233710
233603
|
Object.defineProperty(exports, "__esModule", {
|
|
233711
233604
|
value: true
|
|
@@ -233714,7 +233607,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233714
233607
|
function generateUUID(placeholder) {
|
|
233715
233608
|
return placeholder ? (placeholder ^ Math.random() * 16 >> placeholder / 4).toString(16) : (String(1e7) + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, generateUUID);
|
|
233716
233609
|
}
|
|
233717
|
-
},
|
|
233610
|
+
},2620,[],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/utils/generateUUID.ts");
|
|
233718
233611
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233719
233612
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
233720
233613
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -233772,7 +233665,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233772
233665
|
}
|
|
233773
233666
|
}]);
|
|
233774
233667
|
}(_reactNative.GraniteEventDefinition);
|
|
233775
|
-
},
|
|
233668
|
+
},2621,[1,24,25,43,46,47,2,2617],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/internal/VisibilityChangedByTransparentServiceWebEvent.ts");
|
|
233776
233669
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233777
233670
|
Object.defineProperty(exports, "__esModule", {
|
|
233778
233671
|
value: true
|
|
@@ -234112,7 +234005,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234112
234005
|
loadAppsInTossAdMob: _googleAdMobV.loadAppsInTossAdMob,
|
|
234113
234006
|
showAppsInTossAdMob: _googleAdMobV.showAppsInTossAdMob
|
|
234114
234007
|
};
|
|
234115
|
-
},2623,
|
|
234008
|
+
},2622,[2623,2624,2596,2580,2590,2591,2587,2586,2585,2588,2583,2589,2612,2610,2611,2594,2626,2592,2597,2595,2627,2601,2599,2602,2603,2605,2604,2628,2598],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/index.ts");
|
|
234116
234009
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234117
234010
|
Object.defineProperty(exports, "__esModule", {
|
|
234118
234011
|
value: true
|
|
@@ -234273,7 +234166,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234273
234166
|
loadAdMobRewardedAd.isSupported = createIsSupported();
|
|
234274
234167
|
showAdMobInterstitialAd.isSupported = createIsSupported();
|
|
234275
234168
|
showAdMobRewardedAd.isSupported = createIsSupported();
|
|
234276
|
-
},
|
|
234169
|
+
},2623,[1261,2619,2610,2592],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/ads/googleAdMob.ts");
|
|
234277
234170
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234278
234171
|
Object.defineProperty(exports, "__esModule", {
|
|
234279
234172
|
value: true
|
|
@@ -234376,7 +234269,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234376
234269
|
}
|
|
234377
234270
|
loadAppsInTossAdMob.isSupported = createIsSupported();
|
|
234378
234271
|
showAppsInTossAdMob.isSupported = createIsSupported();
|
|
234379
|
-
},
|
|
234272
|
+
},2624,[1261,2625,2619,2610,2592],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/ads/googleAdMobV2.ts");
|
|
234380
234273
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234381
234274
|
Object.defineProperty(exports, "__esModule", {
|
|
234382
234275
|
value: true
|
|
@@ -234390,7 +234283,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234390
234283
|
return null;
|
|
234391
234284
|
}
|
|
234392
234285
|
}
|
|
234393
|
-
},
|
|
234286
|
+
},2625,[2],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/utils/getReferrer.ts");
|
|
234394
234287
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234395
234288
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
234396
234289
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -234585,7 +234478,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234585
234478
|
getCompletedOrRefundedOrders: getCompletedOrRefundedOrders,
|
|
234586
234479
|
completeProductGrant: completeProductGrant
|
|
234587
234480
|
};
|
|
234588
|
-
},
|
|
234481
|
+
},2626,[1,16,1261,2580,2592,2619],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/iap.ts");
|
|
234589
234482
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234590
234483
|
Object.defineProperty(exports, "__esModule", {
|
|
234591
234484
|
value: true
|
|
@@ -234617,7 +234510,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234617
234510
|
removeItem: removeItem,
|
|
234618
234511
|
clearItems: clearItems
|
|
234619
234512
|
};
|
|
234620
|
-
},
|
|
234513
|
+
},2627,[2580],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/storage.ts");
|
|
234621
234514
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234622
234515
|
Object.defineProperty(exports, "__esModule", {
|
|
234623
234516
|
value: true
|
|
@@ -234653,7 +234546,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234653
234546
|
});
|
|
234654
234547
|
return unregisterCallbacks;
|
|
234655
234548
|
}
|
|
234656
|
-
},
|
|
234549
|
+
},2628,[2619,2592],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/contactsViral.ts");
|
|
234657
234550
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234658
234551
|
Object.defineProperty(exports, "__esModule", {
|
|
234659
234552
|
value: true
|
|
@@ -234663,7 +234556,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234663
234556
|
function onVisibilityChangedByTransparentServiceWeb(eventParams) {
|
|
234664
234557
|
return _appsInTossEvent.appsInTossEvent.addEventListener('onVisibilityChangedByTransparentServiceWeb', eventParams);
|
|
234665
234558
|
}
|
|
234666
|
-
},
|
|
234559
|
+
},2629,[2615],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-event-emitter/internal/onVisibilityChangedByTransparentServiceWeb.ts");
|
|
234667
234560
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234668
234561
|
Object.defineProperty(exports, "__esModule", {
|
|
234669
234562
|
value: true
|
|
@@ -234678,7 +234571,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234678
234571
|
context.keys = function () {
|
|
234679
234572
|
return Array.from(files.keys());
|
|
234680
234573
|
};
|
|
234681
|
-
},2631,
|
|
234574
|
+
},2630,[2631,2632],"react-native/context.ts");
|
|
234682
234575
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234683
234576
|
Object.defineProperty(exports, "__esModule", {
|
|
234684
234577
|
value: true
|
|
@@ -234711,7 +234604,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234711
234604
|
})
|
|
234712
234605
|
});
|
|
234713
234606
|
}
|
|
234714
|
-
},
|
|
234607
|
+
},2631,[1256,18,9],"react-native/pages/index.tsx");
|
|
234715
234608
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234716
234609
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
234717
234610
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -234724,6 +234617,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234724
234617
|
}
|
|
234725
234618
|
});
|
|
234726
234619
|
var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./index"));
|
|
234727
|
-
},
|
|
234620
|
+
},2632,[1,2631],"react-native/pages/_404.tsx");
|
|
234728
234621
|
__r(133);
|
|
234729
234622
|
__r(0);
|