@apps-in-toss/web-framework 0.0.0-dev.1764816865438 → 0.0.0-dev.1765732023607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/prebuilt/dev.android.js +491 -926
- package/dist/prebuilt/dev.ios.js +491 -926
- package/dist/prebuilt/prod.android.js +860 -1840
- package/dist/prebuilt/prod.ios.js +860 -1840
- package/package.json +8 -8
|
@@ -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
|
|
|
@@ -153388,12 +153388,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153388
153388
|
env: function env() {
|
|
153389
153389
|
return _env;
|
|
153390
153390
|
},
|
|
153391
|
-
loadFullScreenAd: function loadFullScreenAd() {
|
|
153392
|
-
return _loadFullScreenAd;
|
|
153393
|
-
},
|
|
153394
|
-
showFullScreenAd: function showFullScreenAd() {
|
|
153395
|
-
return _showFullScreenAd;
|
|
153396
|
-
},
|
|
153397
153391
|
useCreateUserAgent: function useCreateUserAgent() {
|
|
153398
153392
|
return _useCreateUserAgent;
|
|
153399
153393
|
},
|
|
@@ -153413,9 +153407,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153413
153407
|
module.exports = __toCommonJS(src_exports);
|
|
153414
153408
|
var import_analytics2 = _$$_REQUIRE(_dependencyMap[7], "@apps-in-toss/analytics");
|
|
153415
153409
|
var import_analytics = _$$_REQUIRE(_dependencyMap[7], "@apps-in-toss/analytics");
|
|
153416
|
-
var
|
|
153410
|
+
var import_native_modules13 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153417
153411
|
var import_react_native23 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153418
|
-
var
|
|
153412
|
+
var import_tds_react_native10 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153419
153413
|
var import_react_native24 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
153420
153414
|
var import_native_modules2 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153421
153415
|
var import_react_native4 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
@@ -153595,52 +153589,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153595
153589
|
}
|
|
153596
153590
|
return context;
|
|
153597
153591
|
}
|
|
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");
|
|
153592
|
+
var import_native_modules12 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153593
|
+
var import_react17 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153628
153594
|
var import_react_native22 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
153629
|
-
var
|
|
153595
|
+
var import_native_modules6 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153630
153596
|
var import_react_native10 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153631
|
-
var
|
|
153597
|
+
var import_tds_react_native4 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153632
153598
|
var import_es_hangul = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
153633
|
-
var
|
|
153599
|
+
var import_react11 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153634
153600
|
var import_react_native11 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
153635
153601
|
var GAME_PROFILE_WEBVIEW_URL = "servicetoss://game-center/profile";
|
|
153636
153602
|
var GAME_MIN_VERSION = {
|
|
153637
153603
|
android: "5.232.0",
|
|
153638
153604
|
ios: "5.232.0"
|
|
153639
153605
|
};
|
|
153640
|
-
var
|
|
153606
|
+
var import_native_modules3 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153641
153607
|
var import_react_native7 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153642
|
-
var
|
|
153643
|
-
var
|
|
153608
|
+
var import_tds_react_native = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153609
|
+
var import_react6 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153644
153610
|
var import_react_native6 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
153645
153611
|
var PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
|
|
153646
153612
|
var APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
|
|
@@ -153648,10 +153614,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153648
153614
|
return import_react_native6.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
|
|
153649
153615
|
};
|
|
153650
153616
|
function useAppUpdateDialog() {
|
|
153651
|
-
var _ref5 = (0,
|
|
153617
|
+
var _ref5 = (0, import_tds_react_native.useDialog)(),
|
|
153652
153618
|
openConfirm = _ref5.openConfirm;
|
|
153653
153619
|
var logging = useAppUpdateDialogLogging();
|
|
153654
|
-
var openAppUpdateDialog = (0,
|
|
153620
|
+
var openAppUpdateDialog = (0, import_react6.useCallback)(function () {
|
|
153655
153621
|
var _ref7 = _asyncToGenerator(function* (_ref6) {
|
|
153656
153622
|
var title = _ref6.title,
|
|
153657
153623
|
description = _ref6.description,
|
|
@@ -153696,7 +153662,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153696
153662
|
app_name: import_react_native7.Granite.appName
|
|
153697
153663
|
};
|
|
153698
153664
|
var logUpdateClick = function logUpdateClick() {
|
|
153699
|
-
|
|
153665
|
+
import_native_modules3.INTERNAL__module.tossCoreEventLog({
|
|
153700
153666
|
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
153701
153667
|
log_type: "event",
|
|
153702
153668
|
params: Object.assign({}, baseParams, {
|
|
@@ -153707,7 +153673,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153707
153673
|
});
|
|
153708
153674
|
};
|
|
153709
153675
|
var logCloseClick = function logCloseClick() {
|
|
153710
|
-
|
|
153676
|
+
import_native_modules3.INTERNAL__module.tossCoreEventLog({
|
|
153711
153677
|
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
153712
153678
|
log_type: "event",
|
|
153713
153679
|
params: Object.assign({}, baseParams, {
|
|
@@ -153718,7 +153684,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153718
153684
|
});
|
|
153719
153685
|
};
|
|
153720
153686
|
var logDialogShow = function logDialogShow() {
|
|
153721
|
-
|
|
153687
|
+
import_native_modules3.INTERNAL__module.tossCoreEventLog({
|
|
153722
153688
|
log_name: UPDATE_DIALOG_LOG_NAME,
|
|
153723
153689
|
log_type: "popup",
|
|
153724
153690
|
params: Object.assign({}, baseParams, {
|
|
@@ -153732,19 +153698,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153732
153698
|
show: logDialogShow
|
|
153733
153699
|
};
|
|
153734
153700
|
}
|
|
153735
|
-
var
|
|
153736
|
-
var
|
|
153701
|
+
var import_native_modules5 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153702
|
+
var import_react10 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153737
153703
|
var import_react_native8 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153738
|
-
var
|
|
153739
|
-
var
|
|
153704
|
+
var import_tds_react_native2 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153705
|
+
var import_react7 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153740
153706
|
var DEFAULT_ERROR = {
|
|
153741
153707
|
title: "\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",
|
|
153742
153708
|
description: "\uBB38\uC81C\uAC00 \uACC4\uC18D\uB418\uBA74 \uD1A0\uC2A4 \uACE0\uAC1D\uC13C\uD130(1599-4905)\uB85C \uBB38\uC758\uD574\uC8FC\uC138\uC694."
|
|
153743
153709
|
};
|
|
153744
153710
|
var useErrorAlert = function useErrorAlert() {
|
|
153745
|
-
var _ref8 = (0,
|
|
153711
|
+
var _ref8 = (0, import_tds_react_native2.useDialog)(),
|
|
153746
153712
|
openAlert = _ref8.openAlert;
|
|
153747
|
-
var openErrorAlert = (0,
|
|
153713
|
+
var openErrorAlert = (0, import_react7.useCallback)(_asyncToGenerator(function* () {
|
|
153748
153714
|
yield openAlert({
|
|
153749
153715
|
title: DEFAULT_ERROR.title,
|
|
153750
153716
|
description: DEFAULT_ERROR.description
|
|
@@ -153755,10 +153721,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153755
153721
|
open: openErrorAlert
|
|
153756
153722
|
};
|
|
153757
153723
|
};
|
|
153758
|
-
var
|
|
153724
|
+
var import_react8 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153759
153725
|
var import_react_native9 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
153760
|
-
var
|
|
153761
|
-
var _INTERNAL__onVisibilityChangedByTransparentServiceWeb =
|
|
153726
|
+
var import_native_modules4 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
153727
|
+
var _INTERNAL__onVisibilityChangedByTransparentServiceWeb = import_native_modules4.onVisibilityChangedByTransparentServiceWeb;
|
|
153762
153728
|
var openTransparentWebView = function openTransparentWebView(_ref10) {
|
|
153763
153729
|
var webUrl = _ref10.webUrl,
|
|
153764
153730
|
_ref10$cleanupWhenDis = _ref10.cleanupWhenDismissed,
|
|
@@ -153795,13 +153761,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153795
153761
|
(0, import_react_native9.openURL)(url.toString());
|
|
153796
153762
|
};
|
|
153797
153763
|
var useTransparentWebview = function useTransparentWebview() {
|
|
153798
|
-
var _ref13 = (0,
|
|
153764
|
+
var _ref13 = (0, import_react8.useState)(false),
|
|
153799
153765
|
_ref14 = _slicedToArray(_ref13, 2),
|
|
153800
153766
|
isWebviewLoading = _ref14[0],
|
|
153801
153767
|
setIsWebviewLoading = _ref14[1];
|
|
153802
153768
|
var _useErrorAlert = useErrorAlert(),
|
|
153803
153769
|
openErrorAlert = _useErrorAlert.open;
|
|
153804
|
-
var _openTransparentWebview = (0,
|
|
153770
|
+
var _openTransparentWebview = (0, import_react8.useCallback)(function (_ref15) {
|
|
153805
153771
|
var webUrl = _ref15.webUrl,
|
|
153806
153772
|
onClose = _ref15.onClose,
|
|
153807
153773
|
_onError2 = _ref15.onError;
|
|
@@ -153837,13 +153803,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153837
153803
|
open: _openTransparentWebview
|
|
153838
153804
|
};
|
|
153839
153805
|
};
|
|
153840
|
-
var
|
|
153806
|
+
var import_tds_react_native3 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
153841
153807
|
var import_private2 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
153842
|
-
var
|
|
153808
|
+
var import_react9 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
153843
153809
|
var import_jsx_runtime3 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
153844
153810
|
var useGameProfileToast = function useGameProfileToast() {
|
|
153845
153811
|
var overlay = (0, import_private2.useOverlay)();
|
|
153846
|
-
var openGameProfileToast = (0,
|
|
153812
|
+
var openGameProfileToast = (0, import_react9.useCallback)(function (nickname, profileImageUri) {
|
|
153847
153813
|
return new Promise(function (resolve) {
|
|
153848
153814
|
overlay.open(function (_ref16) {
|
|
153849
153815
|
var isOpen = _ref16.isOpen,
|
|
@@ -153852,7 +153818,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153852
153818
|
return (0, import_jsx_runtime3.jsx)(import_private2.ColorPreferenceProvider, {
|
|
153853
153819
|
colorPreference: "dark",
|
|
153854
153820
|
children: (0, import_jsx_runtime3.jsx)(import_private2.AdaptiveColorProvider, {
|
|
153855
|
-
children: (0, import_jsx_runtime3.jsx)(
|
|
153821
|
+
children: (0, import_jsx_runtime3.jsx)(import_tds_react_native3.Toast, {
|
|
153856
153822
|
open: isOpen,
|
|
153857
153823
|
onClose: function onClose() {
|
|
153858
153824
|
resolve();
|
|
@@ -153861,12 +153827,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153861
153827
|
onExited: exit,
|
|
153862
153828
|
position: "top",
|
|
153863
153829
|
text: nickname + "\uB2D8 \uBC18\uAC00\uC6CC\uC694!",
|
|
153864
|
-
icon: (0, import_jsx_runtime3.jsx)(
|
|
153830
|
+
icon: (0, import_jsx_runtime3.jsx)(import_tds_react_native3.Asset.Image, {
|
|
153865
153831
|
style: {
|
|
153866
153832
|
borderRadius: 64,
|
|
153867
153833
|
overflow: "hidden"
|
|
153868
153834
|
},
|
|
153869
|
-
frameShape:
|
|
153835
|
+
frameShape: import_tds_react_native3.Asset.frameShape.CleanW32,
|
|
153870
153836
|
source: {
|
|
153871
153837
|
uri: profileImageUri
|
|
153872
153838
|
}
|
|
@@ -153881,31 +153847,31 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153881
153847
|
openGameProfileToast: openGameProfileToast
|
|
153882
153848
|
};
|
|
153883
153849
|
};
|
|
153884
|
-
var useGameCenterProfile = function useGameCenterProfile(
|
|
153885
|
-
var _ref17 = (0,
|
|
153850
|
+
var useGameCenterProfile = function useGameCenterProfile() {
|
|
153851
|
+
var _ref17 = (0, import_react10.useState)(void 0),
|
|
153886
153852
|
_ref18 = _slicedToArray(_ref17, 2),
|
|
153887
153853
|
profileData = _ref18[0],
|
|
153888
153854
|
setProfileData = _ref18[1];
|
|
153889
|
-
var _ref19 = (0,
|
|
153855
|
+
var _ref19 = (0, import_react10.useState)(true),
|
|
153890
153856
|
_ref20 = _slicedToArray(_ref19, 2),
|
|
153891
153857
|
isProfileDataLoading = _ref20[0],
|
|
153892
153858
|
setIsProfileDataLoading = _ref20[1];
|
|
153893
|
-
var _ref21 = (0,
|
|
153859
|
+
var _ref21 = (0, import_react10.useState)(false),
|
|
153894
153860
|
_ref22 = _slicedToArray(_ref21, 2),
|
|
153895
153861
|
isProfileDataRefetching = _ref22[0],
|
|
153896
153862
|
setIsProfileDataRefetching = _ref22[1];
|
|
153897
|
-
var shouldShowProfileLoadingOverlay = isProfileDataLoading
|
|
153898
|
-
var shouldShowProfileNotFoundOverlay = (profileData == null ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" &&
|
|
153899
|
-
var canShowBottomSheetOrToast = !isProfileDataLoading
|
|
153863
|
+
var shouldShowProfileLoadingOverlay = isProfileDataLoading || isProfileDataRefetching;
|
|
153864
|
+
var shouldShowProfileNotFoundOverlay = (profileData == null ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && !isProfileDataRefetching;
|
|
153865
|
+
var canShowBottomSheetOrToast = !isProfileDataLoading;
|
|
153900
153866
|
var _useGameProfileToast = useGameProfileToast(),
|
|
153901
153867
|
openGameProfileToast = _useGameProfileToast.openGameProfileToast;
|
|
153902
153868
|
var _useErrorAlert2 = useErrorAlert(),
|
|
153903
153869
|
openErrorAlert = _useErrorAlert2.open;
|
|
153904
153870
|
var _useTransparentWebvie = useTransparentWebview(),
|
|
153905
153871
|
openTransparentWebView2 = _useTransparentWebvie.open;
|
|
153906
|
-
var fetchProfileData = (0,
|
|
153872
|
+
var fetchProfileData = (0, import_react10.useCallback)(_asyncToGenerator(function* () {
|
|
153907
153873
|
try {
|
|
153908
|
-
var data = yield (0,
|
|
153874
|
+
var data = yield (0, import_native_modules5.getGameCenterGameProfile)();
|
|
153909
153875
|
setProfileData(data);
|
|
153910
153876
|
setIsProfileDataLoading(false);
|
|
153911
153877
|
} catch (_) {
|
|
@@ -153913,10 +153879,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153913
153879
|
setIsProfileDataLoading(false);
|
|
153914
153880
|
}
|
|
153915
153881
|
}), [openErrorAlert]);
|
|
153916
|
-
var refetchProfileData = (0,
|
|
153882
|
+
var refetchProfileData = (0, import_react10.useCallback)(_asyncToGenerator(function* () {
|
|
153917
153883
|
try {
|
|
153918
153884
|
setIsProfileDataRefetching(true);
|
|
153919
|
-
var data = yield (0,
|
|
153885
|
+
var data = yield (0, import_native_modules5.getGameCenterGameProfile)();
|
|
153920
153886
|
setProfileData(data);
|
|
153921
153887
|
setIsProfileDataRefetching(false);
|
|
153922
153888
|
if ((data == null ? void 0 : data.statusCode) === "SUCCESS") {
|
|
@@ -153927,7 +153893,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153927
153893
|
openErrorAlert();
|
|
153928
153894
|
}
|
|
153929
153895
|
}), [openErrorAlert, openGameProfileToast]);
|
|
153930
|
-
var openProfileWebview = (0,
|
|
153896
|
+
var openProfileWebview = (0, import_react10.useCallback)(function () {
|
|
153931
153897
|
openTransparentWebView2({
|
|
153932
153898
|
webUrl: GAME_PROFILE_WEBVIEW_URL + "?appName=" + getAppName() + "&referrer=appsintoss." + getAppName(),
|
|
153933
153899
|
onClose: function () {
|
|
@@ -153961,9 +153927,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153961
153927
|
};
|
|
153962
153928
|
var import_jsx_runtime4 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
153963
153929
|
var GameInitializer = function GameInitializer(_ref25) {
|
|
153964
|
-
var children = _ref25.children
|
|
153965
|
-
|
|
153966
|
-
var _useGameCenterProfile = useGameCenterProfile(isReadyForProfileUI),
|
|
153930
|
+
var children = _ref25.children;
|
|
153931
|
+
var _useGameCenterProfile = useGameCenterProfile(),
|
|
153967
153932
|
profileData = _useGameCenterProfile.profileData,
|
|
153968
153933
|
shouldShowProfileLoadingOverlay = _useGameCenterProfile.shouldShowProfileLoadingOverlay,
|
|
153969
153934
|
shouldShowProfileNotFoundOverlay = _useGameCenterProfile.shouldShowProfileNotFoundOverlay,
|
|
@@ -153971,13 +153936,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153971
153936
|
openProfileWebview = _useGameCenterProfile.openProfileWebview,
|
|
153972
153937
|
openGameProfileToast = _useGameCenterProfile.openGameProfileToast,
|
|
153973
153938
|
fetchProfileData = _useGameCenterProfile.fetchProfileData;
|
|
153974
|
-
var isCompletedFlow = (0,
|
|
153939
|
+
var isCompletedFlow = (0, import_react11.useRef)(false);
|
|
153975
153940
|
var _useAppUpdateDialog = useAppUpdateDialog(),
|
|
153976
153941
|
openAppUpdateDialog = _useAppUpdateDialog.open;
|
|
153977
|
-
(0,
|
|
153942
|
+
(0, import_react11.useEffect)(function () {
|
|
153978
153943
|
fetchProfileData();
|
|
153979
153944
|
}, []);
|
|
153980
|
-
(0,
|
|
153945
|
+
(0, import_react11.useEffect)(function () {
|
|
153981
153946
|
var handleGameProfileFlow = function () {
|
|
153982
153947
|
var _ref26 = _asyncToGenerator(function* () {
|
|
153983
153948
|
if (!canShowBottomSheetOrToast) {
|
|
@@ -153987,7 +153952,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
153987
153952
|
return;
|
|
153988
153953
|
}
|
|
153989
153954
|
isCompletedFlow.current = true;
|
|
153990
|
-
if (!(0,
|
|
153955
|
+
if (!(0, import_native_modules6.isMinVersionSupported)(GAME_MIN_VERSION)) {
|
|
153991
153956
|
openAppUpdateDialog({
|
|
153992
153957
|
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
153958
|
onDismiss: function onDismiss() {
|
|
@@ -154010,7 +153975,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154010
153975
|
}();
|
|
154011
153976
|
handleGameProfileFlow();
|
|
154012
153977
|
}, [canShowBottomSheetOrToast, isCompletedFlow, openAppUpdateDialog, openGameProfileToast, openProfileWebview, profileData]);
|
|
154013
|
-
if (!(0,
|
|
153978
|
+
if (!(0, import_native_modules6.isMinVersionSupported)(GAME_MIN_VERSION)) {
|
|
154014
153979
|
return (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, {
|
|
154015
153980
|
children: [(0, import_jsx_runtime4.jsx)(import_react_native11.View, {
|
|
154016
153981
|
style: {
|
|
@@ -154045,7 +154010,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154045
154010
|
alignItems: "center",
|
|
154046
154011
|
backgroundColor: "rgba(0, 0, 0, 0.2)"
|
|
154047
154012
|
}),
|
|
154048
|
-
children: (0, import_jsx_runtime4.jsx)(
|
|
154013
|
+
children: (0, import_jsx_runtime4.jsx)(import_tds_react_native4.Loader, {
|
|
154049
154014
|
size: "large",
|
|
154050
154015
|
type: "light"
|
|
154051
154016
|
})
|
|
@@ -154087,10 +154052,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154087
154052
|
zIndex: Z_INDEX.PROFILE_OVERLAY
|
|
154088
154053
|
};
|
|
154089
154054
|
var import_private5 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154090
|
-
var
|
|
154055
|
+
var import_react12 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154091
154056
|
var import_react_native12 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154092
154057
|
function useHardwareBackPress(handler) {
|
|
154093
|
-
(0,
|
|
154058
|
+
(0, import_react12.useEffect)(function () {
|
|
154094
154059
|
var handleBackPress = function handleBackPress() {
|
|
154095
154060
|
handler();
|
|
154096
154061
|
return true;
|
|
@@ -154102,16 +154067,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154102
154067
|
}, [handler]);
|
|
154103
154068
|
}
|
|
154104
154069
|
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
154070
|
var import_react14 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154071
|
+
var import_tds_react_native5 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154072
|
+
var import_es_hangul2 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
154073
|
+
var import_react13 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154109
154074
|
function useCloseConfirm() {
|
|
154110
154075
|
var _getAppsInTossGlobals = getAppsInTossGlobals(),
|
|
154111
154076
|
brandDisplayName = _getAppsInTossGlobals.brandDisplayName;
|
|
154112
|
-
var _ref27 = (0,
|
|
154077
|
+
var _ref27 = (0, import_tds_react_native5.useDialog)(),
|
|
154113
154078
|
openConfirm = _ref27.openConfirm;
|
|
154114
|
-
return (0,
|
|
154079
|
+
return (0, import_react13.useCallback)(function () {
|
|
154115
154080
|
var _ref29 = _asyncToGenerator(function* (_ref28) {
|
|
154116
154081
|
var onEntered = _ref28.onEntered;
|
|
154117
154082
|
return yield openConfirm({
|
|
@@ -154127,7 +154092,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154127
154092
|
};
|
|
154128
154093
|
}(), [brandDisplayName, openConfirm]);
|
|
154129
154094
|
}
|
|
154130
|
-
var
|
|
154095
|
+
var import_native_modules7 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154131
154096
|
var import_react_native13 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154132
154097
|
var NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
154133
154098
|
var NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
@@ -154146,7 +154111,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154146
154111
|
app_name: import_react_native13.Granite.appName
|
|
154147
154112
|
};
|
|
154148
154113
|
var logNavBarImpression = function logNavBarImpression(naviBarConfig) {
|
|
154149
|
-
|
|
154114
|
+
import_native_modules7.INTERNAL__module.tossCoreEventLog({
|
|
154150
154115
|
log_name: NAVI_BAR_IMPRESSION_LOG_NAME,
|
|
154151
154116
|
log_type: "event",
|
|
154152
154117
|
params: Object.assign({}, naviBarConfig, baseParams, {
|
|
@@ -154156,7 +154121,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154156
154121
|
});
|
|
154157
154122
|
};
|
|
154158
154123
|
var logHomeButtonClick = function logHomeButtonClick() {
|
|
154159
|
-
|
|
154124
|
+
import_native_modules7.INTERNAL__module.tossCoreEventLog({
|
|
154160
154125
|
log_name: HOME_BUTTON_CLICK_LOG_NAME,
|
|
154161
154126
|
log_type: "event",
|
|
154162
154127
|
params: Object.assign({}, baseParams, {
|
|
@@ -154166,7 +154131,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154166
154131
|
});
|
|
154167
154132
|
};
|
|
154168
154133
|
var logCloseButtonClick = function logCloseButtonClick() {
|
|
154169
|
-
|
|
154134
|
+
import_native_modules7.INTERNAL__module.tossCoreEventLog({
|
|
154170
154135
|
log_name: CLOSE_BUTTON_CLICK_LOG_NAME,
|
|
154171
154136
|
log_type: "event",
|
|
154172
154137
|
params: Object.assign({}, baseParams, {
|
|
@@ -154176,7 +154141,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154176
154141
|
});
|
|
154177
154142
|
};
|
|
154178
154143
|
var logClosePopupShow = function logClosePopupShow() {
|
|
154179
|
-
|
|
154144
|
+
import_native_modules7.INTERNAL__module.tossCoreEventLog({
|
|
154180
154145
|
log_name: CLOSE_POPUP_SHOW_LOG_NAME,
|
|
154181
154146
|
log_type: "popup",
|
|
154182
154147
|
params: Object.assign({}, baseParams, {
|
|
@@ -154185,7 +154150,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154185
154150
|
});
|
|
154186
154151
|
};
|
|
154187
154152
|
var logClosePopupCtaClick = function logClosePopupCtaClick(confirm) {
|
|
154188
|
-
|
|
154153
|
+
import_native_modules7.INTERNAL__module.tossCoreEventLog({
|
|
154189
154154
|
log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
|
|
154190
154155
|
log_type: "event",
|
|
154191
154156
|
params: Object.assign({}, baseParams, {
|
|
@@ -154210,7 +154175,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154210
154175
|
var closeConfirm = useCloseConfirm();
|
|
154211
154176
|
var _useCaptureExitLog2 = useCaptureExitLog(),
|
|
154212
154177
|
captureExitLog = _useCaptureExitLog2.captureExitLog;
|
|
154213
|
-
return (0,
|
|
154178
|
+
return (0, import_react14.useMemo)(function () {
|
|
154214
154179
|
var close = function () {
|
|
154215
154180
|
var _ref30 = _asyncToGenerator(function* () {
|
|
154216
154181
|
var hasConfirmed = yield closeConfirm({
|
|
@@ -154247,19 +154212,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154247
154212
|
};
|
|
154248
154213
|
}, [backEventContext, navigation, closeConfirm, logging, captureExitLog]);
|
|
154249
154214
|
}
|
|
154250
|
-
var
|
|
154215
|
+
var import_native_modules11 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154251
154216
|
var import_react_native20 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154252
|
-
var
|
|
154217
|
+
var import_tds_react_native8 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154253
154218
|
var import_private4 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154254
|
-
var
|
|
154255
|
-
var
|
|
154219
|
+
var import_react15 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154220
|
+
var import_native_modules9 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154256
154221
|
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
154222
|
var import_tds_react_native7 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154223
|
+
var import_react_native18 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154224
|
+
var import_tds_react_native6 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154260
154225
|
var import_private3 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154261
154226
|
var import_react_native16 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154262
|
-
var
|
|
154227
|
+
var import_native_modules8 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154263
154228
|
var import_react_native15 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154264
154229
|
var BOTTOM_SHEET_SCHEMA_ID = 1596825;
|
|
154265
154230
|
var BOTTOM_SHEET_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more";
|
|
@@ -154276,7 +154241,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154276
154241
|
app_name: import_react_native15.Granite.appName
|
|
154277
154242
|
};
|
|
154278
154243
|
var logBottomSheetShow = function logBottomSheetShow() {
|
|
154279
|
-
|
|
154244
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
154280
154245
|
log_name: BOTTOM_SHEET_LOG_NAME,
|
|
154281
154246
|
log_type: "popup",
|
|
154282
154247
|
params: Object.assign({}, baseParams, {
|
|
@@ -154285,7 +154250,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154285
154250
|
});
|
|
154286
154251
|
};
|
|
154287
154252
|
var logBottomSheetOpen = function logBottomSheetOpen() {
|
|
154288
|
-
|
|
154253
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
154289
154254
|
log_name: BOTTOM_SHEET_OPEN_LOG_NAME,
|
|
154290
154255
|
log_type: "event",
|
|
154291
154256
|
params: Object.assign({}, baseParams, {
|
|
@@ -154295,7 +154260,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154295
154260
|
});
|
|
154296
154261
|
};
|
|
154297
154262
|
var logBottomSheetCloseClick = function logBottomSheetCloseClick() {
|
|
154298
|
-
|
|
154263
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
154299
154264
|
log_name: BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME,
|
|
154300
154265
|
log_type: "event",
|
|
154301
154266
|
params: Object.assign({}, baseParams, {
|
|
@@ -154306,7 +154271,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154306
154271
|
};
|
|
154307
154272
|
var logBottomSheetMenuClick = function logBottomSheetMenuClick(_ref31) {
|
|
154308
154273
|
var title = _ref31.title;
|
|
154309
|
-
|
|
154274
|
+
import_native_modules8.INTERNAL__module.tossCoreEventLog({
|
|
154310
154275
|
log_name: BOTTOM_SHEET_MENU_CLICK_LOG_NAME,
|
|
154311
154276
|
log_type: "event",
|
|
154312
154277
|
params: Object.assign({}, baseParams, {
|
|
@@ -154334,7 +154299,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154334
154299
|
var logging = useMoreButtonBottomSheetLogging();
|
|
154335
154300
|
var brandPrimaryColorRGB = hexToRGB(globals.brandPrimaryColor);
|
|
154336
154301
|
var iconBackgroundColor = brandPrimaryColorRGB ? "rgba(" + brandPrimaryColorRGB.join(",") + ",0.1)" : adaptive.grey100;
|
|
154337
|
-
return (0, import_jsx_runtime5.jsx)(
|
|
154302
|
+
return (0, import_jsx_runtime5.jsx)(import_tds_react_native6.ListRow, {
|
|
154338
154303
|
left: (0, import_jsx_runtime5.jsx)(import_react_native16.View, {
|
|
154339
154304
|
style: {
|
|
154340
154305
|
width: 30,
|
|
@@ -154346,14 +154311,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154346
154311
|
marginRight: 16,
|
|
154347
154312
|
backgroundColor: iconBackgroundColor
|
|
154348
154313
|
},
|
|
154349
|
-
children: iconName ? (0, import_jsx_runtime5.jsx)(
|
|
154314
|
+
children: iconName ? (0, import_jsx_runtime5.jsx)(import_tds_react_native6.Asset.Icon, {
|
|
154350
154315
|
frameShape: {
|
|
154351
154316
|
width: 20,
|
|
154352
154317
|
height: 20
|
|
154353
154318
|
},
|
|
154354
154319
|
color: globals.brandPrimaryColor,
|
|
154355
154320
|
name: iconName
|
|
154356
|
-
}) : (0, import_jsx_runtime5.jsx)(
|
|
154321
|
+
}) : (0, import_jsx_runtime5.jsx)(import_tds_react_native6.Asset.Image, {
|
|
154357
154322
|
frameShape: {
|
|
154358
154323
|
width: 20,
|
|
154359
154324
|
height: 20
|
|
@@ -154363,7 +154328,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154363
154328
|
}
|
|
154364
154329
|
})
|
|
154365
154330
|
}),
|
|
154366
|
-
contents: (0, import_jsx_runtime5.jsx)(
|
|
154331
|
+
contents: (0, import_jsx_runtime5.jsx)(import_tds_react_native6.ListRow.Texts, {
|
|
154367
154332
|
type: "1RowTypeA",
|
|
154368
154333
|
top: title,
|
|
154369
154334
|
topProps: {
|
|
@@ -154419,8 +154384,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154419
154384
|
};
|
|
154420
154385
|
function AppShareListMenu() {
|
|
154421
154386
|
var initialScheme = (0, import_react_native17.getSchemeUri)();
|
|
154422
|
-
var isSandbox = (0,
|
|
154423
|
-
var _ref35 = (0,
|
|
154387
|
+
var isSandbox = (0, import_native_modules9.getOperationalEnvironment)() === "sandbox";
|
|
154388
|
+
var _ref35 = (0, import_tds_react_native7.useDialog)(),
|
|
154424
154389
|
openConfirm = _ref35.openConfirm;
|
|
154425
154390
|
var schemeForShare = addParamsToUrl(initialScheme, {
|
|
154426
154391
|
referrer: SHARE_SCHEME_REFERRER
|
|
@@ -154446,12 +154411,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154446
154411
|
}
|
|
154447
154412
|
});
|
|
154448
154413
|
}
|
|
154449
|
-
var
|
|
154414
|
+
var import_native_modules10 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154450
154415
|
var import_react_native19 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154451
154416
|
var import_jsx_runtime7 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154452
154417
|
function PermissionsMenu() {
|
|
154453
154418
|
var globals = getAppsInTossGlobals();
|
|
154454
|
-
if ((0,
|
|
154419
|
+
if ((0, import_native_modules10.getOperationalEnvironment)() === "sandbox") {
|
|
154455
154420
|
return null;
|
|
154456
154421
|
}
|
|
154457
154422
|
return (0, import_jsx_runtime7.jsx)(Menu, {
|
|
@@ -154487,7 +154452,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154487
154452
|
function useMoreButtonBottomSheet() {
|
|
154488
154453
|
var globals = getAppsInTossGlobals();
|
|
154489
154454
|
var adaptive = (0, import_private4.useAdaptive)();
|
|
154490
|
-
var _ref36 = (0,
|
|
154455
|
+
var _ref36 = (0, import_react15.useState)([]),
|
|
154491
154456
|
_ref37 = _slicedToArray(_ref36, 2),
|
|
154492
154457
|
itemList = _ref37[0],
|
|
154493
154458
|
setItemList = _ref37[1];
|
|
@@ -154495,17 +154460,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154495
154460
|
var logging = useMoreButtonBottomSheetLogging();
|
|
154496
154461
|
var overlay = (0, import_private4.useOverlay)();
|
|
154497
154462
|
var title = ensureValue(globals.brandDisplayName, "displayName");
|
|
154498
|
-
var isBottomSheetSupported = (0,
|
|
154499
|
-
var isShareListMenuSupported = (0,
|
|
154500
|
-
var _ref38 = (0,
|
|
154463
|
+
var isBottomSheetSupported = (0, import_native_modules11.isMinVersionSupported)(MIN_VERSION.BOTTOM_SHEET);
|
|
154464
|
+
var isShareListMenuSupported = (0, import_native_modules11.isMinVersionSupported)(MIN_VERSION.SHARE_LIST_MENU);
|
|
154465
|
+
var _ref38 = (0, import_react15.useState)(false),
|
|
154501
154466
|
_ref39 = _slicedToArray(_ref38, 2),
|
|
154502
154467
|
isPermissionsMenuSupported = _ref39[0],
|
|
154503
154468
|
setIsPermissionsMenuSupported = _ref39[1];
|
|
154504
|
-
(0,
|
|
154469
|
+
(0, import_react15.useEffect)(function () {
|
|
154505
154470
|
if (!isBottomSheetSupported) {
|
|
154506
154471
|
return;
|
|
154507
154472
|
}
|
|
154508
|
-
|
|
154473
|
+
import_native_modules11.INTERNAL__appBridgeHandler.invokeAppBridgeMethod(APP_BRIDGE_METHOD_NAME, {}, {
|
|
154509
154474
|
onSuccess: function onSuccess(_ref40) {
|
|
154510
154475
|
var items = _ref40.items;
|
|
154511
154476
|
return setItemList(items);
|
|
@@ -154514,8 +154479,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154514
154479
|
return console.error("\uBA54\uB274 \uBAA9\uB85D\uC744 \uAC00\uC838\uC624\uB294 \uB370 \uC2E4\uD328\uD588\uC5B4\uC694:", error);
|
|
154515
154480
|
}
|
|
154516
154481
|
});
|
|
154517
|
-
if ((0,
|
|
154518
|
-
|
|
154482
|
+
if ((0, import_native_modules11.isMinVersionSupported)(MIN_VERSION.PERMISSIONS_MENU)) {
|
|
154483
|
+
import_native_modules11.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("getAllPermission", {}, {
|
|
154519
154484
|
onSuccess: function onSuccess(permissions) {
|
|
154520
154485
|
return setIsPermissionsMenuSupported(permissions.length > 0);
|
|
154521
154486
|
},
|
|
@@ -154544,9 +154509,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154544
154509
|
close();
|
|
154545
154510
|
};
|
|
154546
154511
|
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)(
|
|
154512
|
+
children: (0, import_jsx_runtime8.jsx)(import_tds_react_native8.BottomSheet.Root, {
|
|
154513
|
+
header: (0, import_jsx_runtime8.jsx)(import_tds_react_native8.ListHeader, {
|
|
154514
|
+
title: (0, import_jsx_runtime8.jsx)(import_tds_react_native8.ListHeader.TitleParagraph, {
|
|
154550
154515
|
color: adaptive.grey800,
|
|
154551
154516
|
fontWeight: "bold",
|
|
154552
154517
|
typography: "t5",
|
|
@@ -154554,7 +154519,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154554
154519
|
})
|
|
154555
154520
|
}),
|
|
154556
154521
|
open: isOpen,
|
|
154557
|
-
cta: (0, import_jsx_runtime8.jsx)(
|
|
154522
|
+
cta: (0, import_jsx_runtime8.jsx)(import_tds_react_native8.BottomSheet.CTA, {
|
|
154558
154523
|
size: "large",
|
|
154559
154524
|
type: "dark",
|
|
154560
154525
|
style: "weak",
|
|
@@ -154565,7 +154530,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154565
154530
|
}),
|
|
154566
154531
|
onClose: handleClose,
|
|
154567
154532
|
onExited: exit,
|
|
154568
|
-
children: (0, import_jsx_runtime8.jsxs)(
|
|
154533
|
+
children: (0, import_jsx_runtime8.jsxs)(import_tds_react_native8.List, {
|
|
154569
154534
|
rowSeparator: "none",
|
|
154570
154535
|
children: [itemList.map(function (item) {
|
|
154571
154536
|
return (0, import_jsx_runtime8.jsx)(Menu, {
|
|
@@ -154592,21 +154557,30 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154592
154557
|
function BottomSheetImpressionArea(_ref43) {
|
|
154593
154558
|
var children = _ref43.children;
|
|
154594
154559
|
var logging = useMoreButtonBottomSheetLogging();
|
|
154595
|
-
(0,
|
|
154560
|
+
(0, import_react15.useEffect)(function () {
|
|
154596
154561
|
logging.show();
|
|
154597
154562
|
}, [logging]);
|
|
154598
154563
|
return (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, {
|
|
154599
154564
|
children: children
|
|
154600
154565
|
});
|
|
154601
154566
|
}
|
|
154602
|
-
|
|
154567
|
+
function toIcon(source) {
|
|
154568
|
+
return source.startsWith("http") ? {
|
|
154569
|
+
source: {
|
|
154570
|
+
uri: source
|
|
154571
|
+
}
|
|
154572
|
+
} : {
|
|
154573
|
+
name: source
|
|
154574
|
+
};
|
|
154575
|
+
}
|
|
154576
|
+
var import_react16 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154603
154577
|
var import_jsx_runtime9 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154604
154578
|
function NavigationBarImpressionArea(_ref44) {
|
|
154605
154579
|
var children = _ref44.children,
|
|
154606
154580
|
withHomeButton = _ref44.withHomeButton;
|
|
154607
|
-
var hasLogged = (0,
|
|
154581
|
+
var hasLogged = (0, import_react16.useRef)(false);
|
|
154608
154582
|
var logging = useNavigationBarLogging();
|
|
154609
|
-
(0,
|
|
154583
|
+
(0, import_react16.useEffect)(function () {
|
|
154610
154584
|
if (hasLogged.current === false) {
|
|
154611
154585
|
logging.navBarImpression({
|
|
154612
154586
|
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
@@ -154654,7 +154628,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154654
154628
|
});
|
|
154655
154629
|
}
|
|
154656
154630
|
var import_react_native_safe_area_context = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
154657
|
-
var
|
|
154631
|
+
var import_tds_react_native9 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154658
154632
|
var import_private6 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154659
154633
|
var import_react_native21 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154660
154634
|
var import_jsx_runtime11 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
@@ -154669,7 +154643,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154669
154643
|
safeAreaRight = _ref45.right;
|
|
154670
154644
|
useHardwareBackPress(navigationEvent.handleBack);
|
|
154671
154645
|
return (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, {
|
|
154672
|
-
children: [(0, import_jsx_runtime11.jsx)(
|
|
154646
|
+
children: [(0, import_jsx_runtime11.jsx)(import_tds_react_native9.PageNavbar, {
|
|
154673
154647
|
preference: {
|
|
154674
154648
|
type: "none"
|
|
154675
154649
|
}
|
|
@@ -154721,48 +154695,36 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154721
154695
|
}
|
|
154722
154696
|
function GameAppContainer(_ref47) {
|
|
154723
154697
|
var children = _ref47.children;
|
|
154724
|
-
|
|
154725
|
-
_ref49 = _slicedToArray(_ref48, 2),
|
|
154726
|
-
isEntryMessageExited = _ref49[0],
|
|
154727
|
-
setIsEntryMessageExited = _ref49[1];
|
|
154728
|
-
(0, import_react18.useEffect)(function () {
|
|
154698
|
+
(0, import_react17.useEffect)(function () {
|
|
154729
154699
|
if (import_react_native22.Platform.OS === "ios") {
|
|
154730
|
-
(0,
|
|
154700
|
+
(0, import_native_modules12.setIosSwipeGestureEnabled)({
|
|
154731
154701
|
isEnabled: false
|
|
154732
154702
|
});
|
|
154733
154703
|
return function () {
|
|
154734
|
-
(0,
|
|
154704
|
+
(0, import_native_modules12.setIosSwipeGestureEnabled)({
|
|
154735
154705
|
isEnabled: true
|
|
154736
154706
|
});
|
|
154737
154707
|
};
|
|
154738
154708
|
}
|
|
154739
154709
|
return;
|
|
154740
154710
|
}, []);
|
|
154741
|
-
(0, import_react18.useEffect)(function () {
|
|
154742
|
-
import_native_modules13.appsInTossEvent.addEventListener("entryMessageExited", {
|
|
154743
|
-
onEvent: function onEvent() {
|
|
154744
|
-
setIsEntryMessageExited(true);
|
|
154745
|
-
}
|
|
154746
|
-
});
|
|
154747
|
-
}, []);
|
|
154748
154711
|
return (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, {
|
|
154749
154712
|
children: [(0, import_jsx_runtime12.jsx)(RNNavigationBar.Game, {}), (0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime12.jsx)(GameInitializer, {
|
|
154750
|
-
isReadyForProfileUI: isEntryMessageExited,
|
|
154751
154713
|
children: children
|
|
154752
154714
|
}) : children]
|
|
154753
154715
|
});
|
|
154754
154716
|
}
|
|
154755
|
-
function GeneralAppContainer(
|
|
154756
|
-
var children =
|
|
154717
|
+
function GeneralAppContainer(_ref48) {
|
|
154718
|
+
var children = _ref48.children;
|
|
154757
154719
|
return (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, {
|
|
154758
154720
|
children: [(0, import_jsx_runtime12.jsx)(RNNavigationBar.Default, {}), children]
|
|
154759
154721
|
});
|
|
154760
154722
|
}
|
|
154761
154723
|
var import_jsx_runtime13 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154762
|
-
function AppsInTossContainer(Container,
|
|
154763
|
-
var children =
|
|
154764
|
-
initialProps = _objectWithoutProperties(
|
|
154765
|
-
if (!(0,
|
|
154724
|
+
function AppsInTossContainer(Container, _ref49) {
|
|
154725
|
+
var children = _ref49.children,
|
|
154726
|
+
initialProps = _objectWithoutProperties(_ref49, _excluded);
|
|
154727
|
+
if (!(0, import_native_modules13.isMinVersionSupported)({
|
|
154766
154728
|
android: "5.220.0",
|
|
154767
154729
|
ios: "5.221.0"
|
|
154768
154730
|
})) {
|
|
@@ -154772,44 +154734,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154772
154734
|
}
|
|
154773
154735
|
return (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, {
|
|
154774
154736
|
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)(
|
|
154737
|
+
children: (0, import_jsx_runtime13.jsx)(import_tds_react_native10.TDSProvider, {
|
|
154776
154738
|
colorPreference: "light",
|
|
154777
154739
|
token: {
|
|
154778
154740
|
color: {
|
|
154779
154741
|
primary: getAppsInTossGlobals().brandPrimaryColor
|
|
154780
154742
|
}
|
|
154781
154743
|
},
|
|
154782
|
-
children:
|
|
154783
|
-
children: children
|
|
154784
|
-
}))
|
|
154744
|
+
children: children
|
|
154785
154745
|
})
|
|
154786
154746
|
}))]
|
|
154787
154747
|
});
|
|
154788
154748
|
}
|
|
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;
|
|
154749
|
+
function registerApp(container, _ref50) {
|
|
154750
|
+
var context = _ref50.context,
|
|
154751
|
+
analytics = _ref50.analytics;
|
|
154799
154752
|
var appName = getAppName();
|
|
154800
154753
|
var isRegistered = import_react_native24.AppRegistry.getAppKeys().includes(appName);
|
|
154801
154754
|
if (!isRegistered) {
|
|
154802
154755
|
var _analytics$debug;
|
|
154803
154756
|
import_analytics.Analytics.init({
|
|
154804
154757
|
logger: function logger(params) {
|
|
154805
|
-
return void (0,
|
|
154758
|
+
return void (0, import_native_modules13.eventLog)(params);
|
|
154806
154759
|
},
|
|
154807
154760
|
debug: (_analytics$debug = analytics == null ? void 0 : analytics.debug) != null ? _analytics$debug : __DEV__
|
|
154808
154761
|
});
|
|
154809
154762
|
var App = import_react_native23.Granite.registerApp(AppsInTossContainer.bind(null, container), {
|
|
154810
154763
|
appName: appName,
|
|
154811
154764
|
context: context,
|
|
154812
|
-
setIosSwipeGestureEnabled:
|
|
154765
|
+
setIosSwipeGestureEnabled: import_native_modules13.setIosSwipeGestureEnabled,
|
|
154813
154766
|
router: {
|
|
154814
154767
|
screenContainer: AppsInTossScreenContainer,
|
|
154815
154768
|
defaultScreenOption: {
|
|
@@ -154821,8 +154774,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154821
154774
|
}
|
|
154822
154775
|
return global.Page;
|
|
154823
154776
|
}
|
|
154824
|
-
function AppsInTossScreenContainer(
|
|
154825
|
-
var children =
|
|
154777
|
+
function AppsInTossScreenContainer(_ref51) {
|
|
154778
|
+
var children = _ref51.children;
|
|
154826
154779
|
var isRNApp = getAppsInTossGlobals().webViewType == null;
|
|
154827
154780
|
return (0, import_jsx_runtime13.jsx)(NavigationBarContextProvider, {
|
|
154828
154781
|
children: (0, import_jsx_runtime13.jsx)(import_analytics.Analytics.Screen, {
|
|
@@ -154843,32 +154796,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154843
154796
|
var _AppsInToss = {
|
|
154844
154797
|
registerApp: registerApp
|
|
154845
154798
|
};
|
|
154846
|
-
var
|
|
154799
|
+
var import_native_modules18 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154847
154800
|
var appsInTossAsyncBridges = __toESM(_$$_REQUIRE(_dependencyMap[17], "@apps-in-toss/native-modules/async-bridges"), 1);
|
|
154848
154801
|
var appsInTossConstantBridges = __toESM(_$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/native-modules/constant-bridges"), 1);
|
|
154849
154802
|
var appsInTossEventBridges = __toESM(_$$_REQUIRE(_dependencyMap[19], "@apps-in-toss/native-modules/event-bridges"), 1);
|
|
154850
154803
|
var import_react_native_safe_area_context4 = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
154851
|
-
var
|
|
154852
|
-
var
|
|
154804
|
+
var import_react_native34 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154805
|
+
var import_tds_react_native14 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154853
154806
|
var import_private9 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154854
|
-
var
|
|
154855
|
-
var
|
|
154856
|
-
var
|
|
154807
|
+
var import_react28 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154808
|
+
var import_react_native35 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154809
|
+
var import_native_modules14 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
154857
154810
|
var import_react_native_webview = _$$_REQUIRE(_dependencyMap[20], "@granite-js/native/react-native-webview");
|
|
154858
|
-
var
|
|
154811
|
+
var import_react19 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154859
154812
|
var import_react_native27 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154860
154813
|
var import_react_native_safe_area_context2 = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
154861
154814
|
var import_react_native25 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154862
|
-
var
|
|
154815
|
+
var import_tds_react_native11 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154863
154816
|
var import_private7 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154864
154817
|
var import_es_hangul3 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
154865
|
-
var
|
|
154818
|
+
var import_react18 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154866
154819
|
var import_react_native26 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
154867
154820
|
var import_jsx_runtime14 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154868
154821
|
function GameWebviewNavigationBar() {
|
|
154869
154822
|
var safeAreaTop = (0, import_private7.useSafeAreaTop)();
|
|
154870
|
-
var
|
|
154871
|
-
openConfirm =
|
|
154823
|
+
var _ref52 = (0, import_tds_react_native11.useDialog)(),
|
|
154824
|
+
openConfirm = _ref52.openConfirm;
|
|
154872
154825
|
var _useCaptureExitLog3 = useCaptureExitLog(),
|
|
154873
154826
|
captureExitLog = _useCaptureExitLog3.captureExitLog;
|
|
154874
154827
|
var global2 = getAppsInTossGlobals();
|
|
@@ -154877,9 +154830,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154877
154830
|
openMoreButtonBottomSheet = _useMoreButtonBottomS3.open;
|
|
154878
154831
|
var _useNavigationBarCont3 = useNavigationBarContext(),
|
|
154879
154832
|
navigationRightButton = _useNavigationBarCont3.navigationRightButton;
|
|
154880
|
-
var
|
|
154881
|
-
safeAreaRight =
|
|
154882
|
-
var handleGameWebviewClose = (0,
|
|
154833
|
+
var _ref53 = (0, import_react_native_safe_area_context2.useSafeAreaInsets)(),
|
|
154834
|
+
safeAreaRight = _ref53.right;
|
|
154835
|
+
var handleGameWebviewClose = (0, import_react18.useCallback)(_asyncToGenerator(function* () {
|
|
154883
154836
|
logging.closeButtonClick();
|
|
154884
154837
|
var isConfirmed = yield openConfirm({
|
|
154885
154838
|
title: (0, import_es_hangul3.josa)(global2.brandDisplayName, "\uC744/\uB97C") + " \uC885\uB8CC\uD560\uAE4C\uC694?",
|
|
@@ -154895,7 +154848,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154895
154848
|
}
|
|
154896
154849
|
}), [captureExitLog, global2.brandDisplayName, logging, openConfirm]);
|
|
154897
154850
|
return (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, {
|
|
154898
|
-
children: [(0, import_jsx_runtime14.jsx)(
|
|
154851
|
+
children: [(0, import_jsx_runtime14.jsx)(import_tds_react_native11.PageNavbar, {
|
|
154899
154852
|
preference: {
|
|
154900
154853
|
type: "none"
|
|
154901
154854
|
}
|
|
@@ -154924,34 +154877,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154924
154877
|
});
|
|
154925
154878
|
}
|
|
154926
154879
|
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 () {
|
|
154880
|
+
var GameWebView = (0, import_react19.forwardRef)(function GameWebView2(props, ref) {
|
|
154881
|
+
(0, import_react19.useEffect)(function () {
|
|
154933
154882
|
if (import_react_native27.Platform.OS === "ios") {
|
|
154934
|
-
(0,
|
|
154883
|
+
(0, import_native_modules14.setIosSwipeGestureEnabled)({
|
|
154935
154884
|
isEnabled: false
|
|
154936
154885
|
});
|
|
154937
154886
|
return function () {
|
|
154938
|
-
(0,
|
|
154887
|
+
(0, import_native_modules14.setIosSwipeGestureEnabled)({
|
|
154939
154888
|
isEnabled: true
|
|
154940
154889
|
});
|
|
154941
154890
|
};
|
|
154942
154891
|
}
|
|
154943
154892
|
return;
|
|
154944
154893
|
}, []);
|
|
154945
|
-
(0, import_react20.useEffect)(function () {
|
|
154946
|
-
import_native_modules15.appsInTossEvent.addEventListener("entryMessageExited", {
|
|
154947
|
-
onEvent: function onEvent() {
|
|
154948
|
-
setIsEntryMessageExited(true);
|
|
154949
|
-
}
|
|
154950
|
-
});
|
|
154951
|
-
}, []);
|
|
154952
154894
|
return (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, {
|
|
154953
|
-
children: [(0, import_jsx_runtime15.jsx)(GameWebviewNavigationBar, {}), (0,
|
|
154954
|
-
isReadyForProfileUI: isEntryMessageExited,
|
|
154895
|
+
children: [(0, import_jsx_runtime15.jsx)(GameWebviewNavigationBar, {}), (0, import_native_modules14.getOperationalEnvironment)() === "toss" ? (0, import_jsx_runtime15.jsx)(GameInitializer, {
|
|
154955
154896
|
children: (0, import_jsx_runtime15.jsx)(import_react_native_webview.WebView, Object.assign({
|
|
154956
154897
|
ref: ref
|
|
154957
154898
|
}, props))
|
|
@@ -154961,23 +154902,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154961
154902
|
});
|
|
154962
154903
|
});
|
|
154963
154904
|
var import_react_native_webview2 = _$$_REQUIRE(_dependencyMap[20], "@granite-js/native/react-native-webview");
|
|
154964
|
-
var
|
|
154905
|
+
var import_react21 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154965
154906
|
var import_react_native28 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
154966
|
-
var
|
|
154907
|
+
var import_tds_react_native12 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
154967
154908
|
var import_private8 = _$$_REQUIRE(_dependencyMap[15], "@toss/tds-react-native/private");
|
|
154968
154909
|
var import_es_hangul4 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
154969
|
-
var
|
|
154910
|
+
var import_react20 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
154970
154911
|
var import_jsx_runtime16 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
154971
|
-
function PartnerWebviewNavigationBar(
|
|
154912
|
+
function PartnerWebviewNavigationBar(_ref55) {
|
|
154972
154913
|
var _parsedNavigationBar$3, _parsedNavigationBar$4;
|
|
154973
|
-
var onBackButtonClick =
|
|
154974
|
-
onHomeButtonClick =
|
|
154914
|
+
var onBackButtonClick = _ref55.onBackButtonClick,
|
|
154915
|
+
onHomeButtonClick = _ref55.onHomeButtonClick;
|
|
154975
154916
|
var globals = getAppsInTossGlobals();
|
|
154976
154917
|
var _useCaptureExitLog4 = useCaptureExitLog(),
|
|
154977
154918
|
captureExitLog = _useCaptureExitLog4.captureExitLog;
|
|
154978
154919
|
var logging = useNavigationBarLogging();
|
|
154979
|
-
var
|
|
154980
|
-
openConfirm =
|
|
154920
|
+
var _ref56 = (0, import_tds_react_native12.useDialog)(),
|
|
154921
|
+
openConfirm = _ref56.openConfirm;
|
|
154981
154922
|
var _useMoreButtonBottomS4 = useMoreButtonBottomSheet(),
|
|
154982
154923
|
openMoreButtonBottomSheet = _useMoreButtonBottomS4.open;
|
|
154983
154924
|
var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
@@ -154985,7 +154926,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
154985
154926
|
var withBackButton = (_parsedNavigationBar$4 = parsedNavigationBar == null ? void 0 : parsedNavigationBar.withBackButton) != null ? _parsedNavigationBar$4 : true;
|
|
154986
154927
|
var _useNavigationBarCont4 = useNavigationBarContext(),
|
|
154987
154928
|
navigationRightButton = _useNavigationBarCont4.navigationRightButton;
|
|
154988
|
-
var handleClose = (0,
|
|
154929
|
+
var handleClose = (0, import_react20.useCallback)(_asyncToGenerator(function* () {
|
|
154989
154930
|
logging.closeButtonClick();
|
|
154990
154931
|
var isConfirmed = yield openConfirm({
|
|
154991
154932
|
title: (0, import_es_hangul4.josa)(globals.brandDisplayName, "\uC744/\uB97C") + " \uC885\uB8CC\uD560\uAE4C\uC694?",
|
|
@@ -155023,10 +154964,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155023
154964
|
});
|
|
155024
154965
|
}
|
|
155025
154966
|
var import_jsx_runtime17 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
155026
|
-
var PartnerWebView = (0,
|
|
155027
|
-
var onBackButtonClick =
|
|
155028
|
-
onHomeButtonClick =
|
|
155029
|
-
webViewProps = _objectWithoutProperties(
|
|
154967
|
+
var PartnerWebView = (0, import_react21.forwardRef)(function PartnerWebViewScreen(_ref58, ref) {
|
|
154968
|
+
var onBackButtonClick = _ref58.onBackButtonClick,
|
|
154969
|
+
onHomeButtonClick = _ref58.onHomeButtonClick,
|
|
154970
|
+
webViewProps = _objectWithoutProperties(_ref58, _excluded2);
|
|
155030
154971
|
return (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, {
|
|
155031
154972
|
children: [(0, import_jsx_runtime17.jsx)(PartnerWebviewNavigationBar, {
|
|
155032
154973
|
onBackButtonClick: onBackButtonClick,
|
|
@@ -155048,9 +154989,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155048
154989
|
var components = url.hash.replace("#Intent;", "").split(";").map(function (component) {
|
|
155049
154990
|
return component.split("=");
|
|
155050
154991
|
});
|
|
155051
|
-
var scheme = (_components$find = components.find(function (
|
|
155052
|
-
var
|
|
155053
|
-
key =
|
|
154992
|
+
var scheme = (_components$find = components.find(function (_ref59) {
|
|
154993
|
+
var _ref60 = _slicedToArray(_ref59, 1),
|
|
154994
|
+
key = _ref60[0];
|
|
155054
154995
|
return key === "scheme";
|
|
155055
154996
|
})) == null ? void 0 : _components$find[1];
|
|
155056
154997
|
if (!scheme) {
|
|
@@ -155058,360 +154999,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155058
154999
|
}
|
|
155059
155000
|
return scheme + "://" + url.hostname + url.pathname + url.search;
|
|
155060
155001
|
}
|
|
155061
|
-
var
|
|
155062
|
-
function noop() {}
|
|
155063
|
-
function generateSessionId() {
|
|
155064
|
-
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
|
|
155065
|
-
var r = Math.random() * 16 | 0;
|
|
155066
|
-
var v = c === "x" ? r : r & 3 | 8;
|
|
155067
|
-
return v.toString(16);
|
|
155068
|
-
});
|
|
155069
|
-
}
|
|
155070
|
-
var sessionId = generateSessionId();
|
|
155071
|
-
var ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.239.0";
|
|
155072
|
-
var IOS_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.239.0";
|
|
155073
|
-
var UNSUPPORTED_ERROR_MESSAGE = "This feature is not supported in the current environment";
|
|
155074
|
-
var ENVIRONMENT = (0, import_native_modules16.getOperationalEnvironment)();
|
|
155075
|
-
function fetchTossAd(params) {
|
|
155076
|
-
if (!fetchTossAd.isSupported()) {
|
|
155077
|
-
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
|
|
155078
|
-
return noop;
|
|
155079
|
-
}
|
|
155080
|
-
var onEvent = params.onEvent,
|
|
155081
|
-
_onError3 = params.onError,
|
|
155082
|
-
options = params.options;
|
|
155083
|
-
var adGroupId = options.adGroupId;
|
|
155084
|
-
var unregisterCallbacks = import_native_modules16.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("fetchTossAd", {
|
|
155085
|
-
spaceUnitId: adGroupId,
|
|
155086
|
-
sessionId: sessionId
|
|
155087
|
-
}, {
|
|
155088
|
-
onSuccess: function onSuccess(response) {
|
|
155089
|
-
onEvent(response);
|
|
155090
|
-
},
|
|
155091
|
-
onError: function onError(error) {
|
|
155092
|
-
_onError3(error);
|
|
155093
|
-
}
|
|
155094
|
-
});
|
|
155095
|
-
return unregisterCallbacks;
|
|
155096
|
-
}
|
|
155097
|
-
fetchTossAd.isSupported = function () {
|
|
155098
|
-
if (ENVIRONMENT !== "toss") {
|
|
155099
|
-
return false;
|
|
155100
|
-
}
|
|
155101
|
-
return (0, import_native_modules16.isMinVersionSupported)({
|
|
155102
|
-
android: ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION,
|
|
155103
|
-
ios: IOS_FETCH_TOSS_AD_SUPPORTED_VERSION
|
|
155104
|
-
});
|
|
155105
|
-
};
|
|
155106
|
-
var import_native_modules18 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155107
|
-
function generateRequestId() {
|
|
155108
|
-
var timestamp = Date.now().toString(36).toUpperCase();
|
|
155109
|
-
var random = Math.random().toString(36).substring(2, 7).toUpperCase();
|
|
155110
|
-
return "ait-" + timestamp + random;
|
|
155111
|
-
}
|
|
155112
|
-
var import_react_native29 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155113
|
-
function getReferrer() {
|
|
155114
|
-
try {
|
|
155115
|
-
return new URL((0, import_react_native29.getSchemeUri)()).searchParams.get("referrer");
|
|
155116
|
-
} catch (_unused4) {
|
|
155117
|
-
return null;
|
|
155118
|
-
}
|
|
155119
|
-
}
|
|
155120
|
-
var import_native_modules17 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155121
|
-
var import_react_native30 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155122
|
-
function getIsDev() {
|
|
155123
|
-
try {
|
|
155124
|
-
return new URL((0, import_react_native30.getSchemeUri)()).searchParams.get("isDev") === "true";
|
|
155125
|
-
} catch (_unused5) {
|
|
155126
|
-
return false;
|
|
155127
|
-
}
|
|
155128
|
-
}
|
|
155129
|
-
var OPERATIONAL_ENVIRONMENT = (0, import_native_modules17.getOperationalEnvironment)();
|
|
155130
|
-
var OS = (0, import_native_modules17.getPlatformOS)();
|
|
155131
|
-
var APP_VER = (0, import_native_modules17.getTossAppVersion)();
|
|
155132
|
-
var ALPHA_EVENT_TRACKER_HTTP_ENDPOINT = "https://alpha-trillion.toss.im/trk/sdk-mediation/event";
|
|
155133
|
-
var LIVE_EVENT_TRACKER_HTTP_ENDPOINT = "https://trillion.toss.im/trk/sdk-mediation/event";
|
|
155134
|
-
function getPostEventTrackingUrl() {
|
|
155135
|
-
var isDev = getIsDev();
|
|
155136
|
-
if (OPERATIONAL_ENVIRONMENT === "sandbox" || isDev) {
|
|
155137
|
-
return ALPHA_EVENT_TRACKER_HTTP_ENDPOINT;
|
|
155138
|
-
}
|
|
155139
|
-
return LIVE_EVENT_TRACKER_HTTP_ENDPOINT;
|
|
155140
|
-
}
|
|
155141
|
-
function postEventTracking(params) {
|
|
155142
|
-
var endpoint = getPostEventTrackingUrl();
|
|
155143
|
-
var bodyJSON = JSON.stringify(Object.assign({}, params, {
|
|
155144
|
-
os: OS,
|
|
155145
|
-
appVer: APP_VER,
|
|
155146
|
-
deviceIdType: "NONE",
|
|
155147
|
-
platform: "RN"
|
|
155148
|
-
}));
|
|
155149
|
-
return fetch(endpoint, {
|
|
155150
|
-
method: "POST",
|
|
155151
|
-
headers: {
|
|
155152
|
-
"Content-Type": "application/json"
|
|
155153
|
-
},
|
|
155154
|
-
body: bodyJSON
|
|
155155
|
-
}).catch(noop);
|
|
155156
|
-
}
|
|
155157
|
-
var INTEGRATED_AD_SDK_VERSION = "0.0.0";
|
|
155158
|
-
var ANDROID_INTEGRATED_AD_SUPPORTED_VERSION = "5.239.0";
|
|
155159
|
-
var IOS_INTEGRATED_AD_SUPPORTED_VERSION = "5.239.0";
|
|
155160
|
-
var UNSUPPORTED_ERROR_MESSAGE2 = "This feature is not supported in the current environment";
|
|
155161
|
-
var INTG_AD_ADM_FALLBACK_RID_MAP = {};
|
|
155162
|
-
function integratedAdIsSupported() {
|
|
155163
|
-
return (0, import_native_modules18.isMinVersionSupported)({
|
|
155164
|
-
android: ANDROID_INTEGRATED_AD_SUPPORTED_VERSION,
|
|
155165
|
-
ios: IOS_INTEGRATED_AD_SUPPORTED_VERSION
|
|
155166
|
-
});
|
|
155167
|
-
}
|
|
155168
|
-
function _loadFullScreenAd(params) {
|
|
155169
|
-
if (!import_native_modules18.GoogleAdMob.loadAppsInTossAdMob.isSupported()) {
|
|
155170
|
-
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
|
|
155171
|
-
return noop;
|
|
155172
|
-
}
|
|
155173
|
-
if (!integratedAdIsSupported()) {
|
|
155174
|
-
return import_native_modules18.GoogleAdMob.loadAppsInTossAdMob(Object.assign({}, params, {
|
|
155175
|
-
onEvent: function onEvent(event) {
|
|
155176
|
-
if (event.type === "loaded") {
|
|
155177
|
-
var _event$data$responseI, _event$data$responseI2;
|
|
155178
|
-
var requestId = generateRequestId();
|
|
155179
|
-
INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId] = requestId;
|
|
155180
|
-
postEventTracking({
|
|
155181
|
-
eventName: "LOAD",
|
|
155182
|
-
spaceUnitId: params.options.adGroupId,
|
|
155183
|
-
requestId: requestId,
|
|
155184
|
-
responseId: event.data.responseInfo.responseId,
|
|
155185
|
-
mediationType: "ADMOB",
|
|
155186
|
-
format: "",
|
|
155187
|
-
adSourceName: (_event$data$responseI = (_event$data$responseI2 = event.data.responseInfo.loadedAdNetworkInfo) == null ? void 0 : _event$data$responseI2.adSourceName) != null ? _event$data$responseI : "",
|
|
155188
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155189
|
-
});
|
|
155190
|
-
}
|
|
155191
|
-
return params.onEvent(event);
|
|
155192
|
-
},
|
|
155193
|
-
onError: function onError(error) {
|
|
155194
|
-
var _INTG_AD_ADM_FALLBACK;
|
|
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);
|
|
155207
|
-
}
|
|
155208
|
-
}));
|
|
155209
|
-
}
|
|
155210
|
-
var onEvent = params.onEvent,
|
|
155211
|
-
_onError4 = params.onError,
|
|
155212
|
-
options = params.options;
|
|
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;
|
|
155230
|
-
}
|
|
155231
|
-
_loadFullScreenAd.isSupported = import_native_modules18.GoogleAdMob.loadAppsInTossAdMob.isSupported;
|
|
155232
|
-
function _showFullScreenAd(params) {
|
|
155233
|
-
if (!import_native_modules18.GoogleAdMob.showAppsInTossAdMob.isSupported()) {
|
|
155234
|
-
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
|
|
155235
|
-
return noop;
|
|
155236
|
-
}
|
|
155237
|
-
if (!integratedAdIsSupported()) {
|
|
155238
|
-
return import_native_modules18.GoogleAdMob.showAppsInTossAdMob(Object.assign({}, params, {
|
|
155239
|
-
onEvent: function onEvent(event) {
|
|
155240
|
-
var _INTG_AD_ADM_FALLBACK2;
|
|
155241
|
-
var requestId = (_INTG_AD_ADM_FALLBACK2 = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) != null ? _INTG_AD_ADM_FALLBACK2 : "";
|
|
155242
|
-
switch (event.type) {
|
|
155243
|
-
case "show":
|
|
155244
|
-
postEventTracking({
|
|
155245
|
-
eventName: "SHOW",
|
|
155246
|
-
spaceUnitId: params.options.adGroupId,
|
|
155247
|
-
requestId: requestId,
|
|
155248
|
-
responseId: "",
|
|
155249
|
-
mediationType: "ADMOB",
|
|
155250
|
-
format: "",
|
|
155251
|
-
adSourceName: "",
|
|
155252
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155253
|
-
});
|
|
155254
|
-
break;
|
|
155255
|
-
case "failedToShow":
|
|
155256
|
-
postEventTracking({
|
|
155257
|
-
eventName: "FAILED_TO_SHOW",
|
|
155258
|
-
spaceUnitId: params.options.adGroupId,
|
|
155259
|
-
requestId: requestId,
|
|
155260
|
-
responseId: "",
|
|
155261
|
-
mediationType: "ADMOB",
|
|
155262
|
-
format: "",
|
|
155263
|
-
adSourceName: "",
|
|
155264
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155265
|
-
});
|
|
155266
|
-
break;
|
|
155267
|
-
case "impression":
|
|
155268
|
-
postEventTracking({
|
|
155269
|
-
eventName: "IMP",
|
|
155270
|
-
spaceUnitId: params.options.adGroupId,
|
|
155271
|
-
requestId: requestId,
|
|
155272
|
-
responseId: "",
|
|
155273
|
-
mediationType: "ADMOB",
|
|
155274
|
-
format: "",
|
|
155275
|
-
adSourceName: "",
|
|
155276
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155277
|
-
});
|
|
155278
|
-
break;
|
|
155279
|
-
case "clicked":
|
|
155280
|
-
postEventTracking({
|
|
155281
|
-
eventName: "CLICK",
|
|
155282
|
-
spaceUnitId: params.options.adGroupId,
|
|
155283
|
-
requestId: requestId,
|
|
155284
|
-
responseId: "",
|
|
155285
|
-
mediationType: "ADMOB",
|
|
155286
|
-
format: "",
|
|
155287
|
-
adSourceName: "",
|
|
155288
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155289
|
-
});
|
|
155290
|
-
break;
|
|
155291
|
-
case "dismissed":
|
|
155292
|
-
postEventTracking({
|
|
155293
|
-
eventName: "DISMISS",
|
|
155294
|
-
spaceUnitId: params.options.adGroupId,
|
|
155295
|
-
requestId: requestId,
|
|
155296
|
-
responseId: "",
|
|
155297
|
-
mediationType: "ADMOB",
|
|
155298
|
-
format: "",
|
|
155299
|
-
adSourceName: "",
|
|
155300
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155301
|
-
});
|
|
155302
|
-
break;
|
|
155303
|
-
case "userEarnedReward":
|
|
155304
|
-
postEventTracking({
|
|
155305
|
-
eventName: "USER_EARNED_REWARD",
|
|
155306
|
-
spaceUnitId: params.options.adGroupId,
|
|
155307
|
-
requestId: requestId,
|
|
155308
|
-
responseId: "",
|
|
155309
|
-
mediationType: "ADMOB",
|
|
155310
|
-
format: "",
|
|
155311
|
-
adSourceName: "",
|
|
155312
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155313
|
-
});
|
|
155314
|
-
break;
|
|
155315
|
-
}
|
|
155316
|
-
return params.onEvent(event);
|
|
155317
|
-
},
|
|
155318
|
-
onError: function onError(error) {
|
|
155319
|
-
var _INTG_AD_ADM_FALLBACK3;
|
|
155320
|
-
var requestId = (_INTG_AD_ADM_FALLBACK3 = INTG_AD_ADM_FALLBACK_RID_MAP[params.options.adGroupId]) != null ? _INTG_AD_ADM_FALLBACK3 : "";
|
|
155321
|
-
postEventTracking({
|
|
155322
|
-
eventName: "FAILED_TO_SHOW",
|
|
155323
|
-
spaceUnitId: params.options.adGroupId,
|
|
155324
|
-
requestId: requestId,
|
|
155325
|
-
responseId: "",
|
|
155326
|
-
mediationType: "ADMOB",
|
|
155327
|
-
format: "",
|
|
155328
|
-
adSourceName: "",
|
|
155329
|
-
sdkVer: INTEGRATED_AD_SDK_VERSION
|
|
155330
|
-
});
|
|
155331
|
-
return params.onError(error);
|
|
155332
|
-
}
|
|
155333
|
-
}));
|
|
155334
|
-
}
|
|
155335
|
-
var onEvent = params.onEvent,
|
|
155336
|
-
_onError5 = params.onError,
|
|
155337
|
-
options = params.options;
|
|
155338
|
-
var adGroupId = options.adGroupId;
|
|
155339
|
-
var referrer = getReferrer();
|
|
155340
|
-
var unregisterCallbacks = import_native_modules18.INTERNAL__appBridgeHandler.invokeAppBridgeMethod("showTossAdOrAdmob", {
|
|
155341
|
-
spaceUnitId: adGroupId,
|
|
155342
|
-
referrer: referrer,
|
|
155343
|
-
sessionId: sessionId
|
|
155344
|
-
}, {
|
|
155345
|
-
onAdClicked: function onAdClicked() {
|
|
155346
|
-
onEvent({
|
|
155347
|
-
type: "clicked"
|
|
155348
|
-
});
|
|
155349
|
-
},
|
|
155350
|
-
onAdDismissed: function onAdDismissed() {
|
|
155351
|
-
onEvent({
|
|
155352
|
-
type: "dismissed"
|
|
155353
|
-
});
|
|
155354
|
-
},
|
|
155355
|
-
onAdFailedToShow: function onAdFailedToShow() {
|
|
155356
|
-
onEvent({
|
|
155357
|
-
type: "failedToShow"
|
|
155358
|
-
});
|
|
155359
|
-
},
|
|
155360
|
-
onAdImpression: function onAdImpression() {
|
|
155361
|
-
onEvent({
|
|
155362
|
-
type: "impression"
|
|
155363
|
-
});
|
|
155364
|
-
},
|
|
155365
|
-
onAdShow: function onAdShow() {
|
|
155366
|
-
onEvent({
|
|
155367
|
-
type: "show"
|
|
155368
|
-
});
|
|
155369
|
-
},
|
|
155370
|
-
onUserEarnedReward: function onUserEarnedReward(data) {
|
|
155371
|
-
onEvent({
|
|
155372
|
-
type: "userEarnedReward",
|
|
155373
|
-
data: data
|
|
155374
|
-
});
|
|
155375
|
-
},
|
|
155376
|
-
onSuccess: function onSuccess() {
|
|
155377
|
-
onEvent({
|
|
155378
|
-
type: "requested"
|
|
155379
|
-
});
|
|
155380
|
-
},
|
|
155381
|
-
onError: function onError(error) {
|
|
155382
|
-
_onError5(error);
|
|
155383
|
-
}
|
|
155384
|
-
});
|
|
155385
|
-
return unregisterCallbacks;
|
|
155386
|
-
}
|
|
155387
|
-
_showFullScreenAd.isSupported = import_native_modules18.GoogleAdMob.showAppsInTossAdMob.isSupported;
|
|
155388
|
-
var import_native_modules19 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155389
|
-
var import_react_native31 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155390
|
-
function tossAdEventLog(_x4) {
|
|
155391
|
-
return _tossAdEventLog.apply(this, arguments);
|
|
155392
|
-
}
|
|
155393
|
-
function _tossAdEventLog() {
|
|
155394
|
-
_tossAdEventLog = _asyncToGenerator(function* (params) {
|
|
155395
|
-
var referrer = getReferrer();
|
|
155396
|
-
var appName = import_react_native31.Granite.appName;
|
|
155397
|
-
var eventLogParams = Object.assign({}, params, {
|
|
155398
|
-
params: Object.assign({}, params.params, {
|
|
155399
|
-
referrer: referrer,
|
|
155400
|
-
app_name: appName
|
|
155401
|
-
})
|
|
155402
|
-
});
|
|
155403
|
-
return import_native_modules19.INTERNAL__module.tossCoreEventLog(eventLogParams);
|
|
155404
|
-
});
|
|
155405
|
-
return _tossAdEventLog.apply(this, arguments);
|
|
155406
|
-
}
|
|
155407
|
-
var import_react23 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155002
|
+
var import_react22 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155408
155003
|
function serializeError(error) {
|
|
155409
155004
|
return JSON.stringify(error, function (_, value) {
|
|
155410
155005
|
if (value instanceof Error) {
|
|
155411
|
-
return Object.assign({}, Object.entries(value).reduce(function (acc,
|
|
155412
|
-
var
|
|
155413
|
-
key =
|
|
155414
|
-
value2 =
|
|
155006
|
+
return Object.assign({}, Object.entries(value).reduce(function (acc, _ref61) {
|
|
155007
|
+
var _ref62 = _slicedToArray(_ref61, 2),
|
|
155008
|
+
key = _ref62[0],
|
|
155009
|
+
value2 = _ref62[1];
|
|
155415
155010
|
acc[key] = value2;
|
|
155416
155011
|
return acc;
|
|
155417
155012
|
}, {}), {
|
|
@@ -155424,24 +155019,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155424
155019
|
return value;
|
|
155425
155020
|
});
|
|
155426
155021
|
}
|
|
155427
|
-
function methodHandler(
|
|
155428
|
-
var args =
|
|
155429
|
-
eventId =
|
|
155430
|
-
functionName =
|
|
155431
|
-
handlerMap =
|
|
155432
|
-
injectJavaScript =
|
|
155022
|
+
function methodHandler(_ref63) {
|
|
155023
|
+
var args = _ref63.args,
|
|
155024
|
+
eventId = _ref63.eventId,
|
|
155025
|
+
functionName = _ref63.functionName,
|
|
155026
|
+
handlerMap = _ref63.handlerMap,
|
|
155027
|
+
injectJavaScript = _ref63.injectJavaScript;
|
|
155433
155028
|
var func = handlerMap[functionName];
|
|
155434
155029
|
if (!func) {
|
|
155435
155030
|
console.error(functionName + " is not a function");
|
|
155436
155031
|
return;
|
|
155437
155032
|
}
|
|
155438
155033
|
var wrappedFunc = function () {
|
|
155439
|
-
var
|
|
155034
|
+
var _ref64 = _asyncToGenerator(function* () {
|
|
155440
155035
|
var result = yield func.apply(void 0, arguments);
|
|
155441
155036
|
return result;
|
|
155442
155037
|
});
|
|
155443
155038
|
return function wrappedFunc() {
|
|
155444
|
-
return
|
|
155039
|
+
return _ref64.apply(this, arguments);
|
|
155445
155040
|
};
|
|
155446
155041
|
}();
|
|
155447
155042
|
wrappedFunc.apply(void 0, _toConsumableArray(args)).then(function (result) {
|
|
@@ -155452,22 +155047,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155452
155047
|
});
|
|
155453
155048
|
}
|
|
155454
155049
|
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 =
|
|
155050
|
+
function useBridgeHandler(_ref65) {
|
|
155051
|
+
var onMessage = _ref65.onMessage,
|
|
155052
|
+
constantHandlerMap = _ref65.constantHandlerMap,
|
|
155053
|
+
asyncHandlerMap = _ref65.asyncHandlerMap,
|
|
155054
|
+
eventListenerMap = _ref65.eventListenerMap;
|
|
155055
|
+
var ref = (0, import_react22.useRef)(null);
|
|
155056
|
+
var injectedJavaScript = (0, import_react22.useMemo)(function () {
|
|
155057
|
+
return "window.__CONSTANT_HANDLER_MAP = " + JSON.stringify(Object.entries(constantHandlerMap).reduce(function (acc, _ref66) {
|
|
155058
|
+
var _ref67 = _slicedToArray(_ref66, 2),
|
|
155059
|
+
key = _ref67[0],
|
|
155060
|
+
value = _ref67[1];
|
|
155466
155061
|
acc[key] = typeof value === "function" ? value() : value;
|
|
155467
155062
|
return acc;
|
|
155468
155063
|
}, {})) + ";";
|
|
155469
155064
|
}, [constantHandlerMap]);
|
|
155470
|
-
(0,
|
|
155065
|
+
(0, import_react22.useEffect)(function () {
|
|
155471
155066
|
var _ref$current;
|
|
155472
155067
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.injectJavaScript(injectedJavaScript);
|
|
155473
155068
|
}, [injectedJavaScript]);
|
|
@@ -155484,8 +155079,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155484
155079
|
(_ref$current3 = ref.current) == null ? void 0 : _ref$current3.injectJavaScript("\n window.__GRANITE_NATIVE_EMITTER.emit('" + functionName + "/onError/" + eventId + "', " + serializedError + ");\n ");
|
|
155485
155080
|
};
|
|
155486
155081
|
};
|
|
155487
|
-
var $onMessage = (0,
|
|
155488
|
-
var
|
|
155082
|
+
var $onMessage = (0, import_react22.useCallback)(function () {
|
|
155083
|
+
var _ref68 = _asyncToGenerator(function* (e) {
|
|
155489
155084
|
onMessage == null ? void 0 : onMessage(e);
|
|
155490
155085
|
var data = parseNativeEventData(e.nativeEvent.data);
|
|
155491
155086
|
if (typeof data !== "object" || data === null || typeof data.functionName !== "string" || typeof data.eventId !== "string" || typeof data.type !== "string" || !["addEventListener", "removeEventListener", "method"].includes(data.type)) {
|
|
@@ -155529,8 +155124,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155529
155124
|
}
|
|
155530
155125
|
}
|
|
155531
155126
|
});
|
|
155532
|
-
return function (
|
|
155533
|
-
return
|
|
155127
|
+
return function (_x4) {
|
|
155128
|
+
return _ref68.apply(this, arguments);
|
|
155534
155129
|
};
|
|
155535
155130
|
}(), [onMessage]);
|
|
155536
155131
|
return {
|
|
@@ -155548,7 +155143,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155548
155143
|
}
|
|
155549
155144
|
}
|
|
155550
155145
|
var import_react_native_safe_area_context3 = _$$_REQUIRE(_dependencyMap[16], "@granite-js/native/react-native-safe-area-context");
|
|
155551
|
-
var
|
|
155146
|
+
var import_react23 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155552
155147
|
var EventEmitter = function () {
|
|
155553
155148
|
function EventEmitter() {
|
|
155554
155149
|
_classCallCheck(this, EventEmitter);
|
|
@@ -155589,10 +155184,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155589
155184
|
}();
|
|
155590
155185
|
function useSafeAreaInsetsEmitter() {
|
|
155591
155186
|
var insets = (0, import_react_native_safe_area_context3.useSafeAreaInsets)();
|
|
155592
|
-
var emitter = (0,
|
|
155187
|
+
var emitter = (0, import_react23.useMemo)(function () {
|
|
155593
155188
|
return new EventEmitter();
|
|
155594
155189
|
}, []);
|
|
155595
|
-
(0,
|
|
155190
|
+
(0, import_react23.useEffect)(function () {
|
|
155596
155191
|
emitter.emit("safeAreaInsetsChange", insets);
|
|
155597
155192
|
return function () {
|
|
155598
155193
|
emitter.off("safeAreaInsetsChange", function (listener) {
|
|
@@ -155602,11 +155197,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155602
155197
|
}, [emitter, insets]);
|
|
155603
155198
|
return emitter;
|
|
155604
155199
|
}
|
|
155605
|
-
var
|
|
155606
|
-
var
|
|
155200
|
+
var import_react_native29 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155201
|
+
var import_tds_react_native13 = _$$_REQUIRE(_dependencyMap[10], "@toss/tds-react-native");
|
|
155607
155202
|
var import_es_hangul5 = _$$_REQUIRE(_dependencyMap[14], "es-hangul");
|
|
155608
|
-
var import_react26 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155609
155203
|
var import_react25 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155204
|
+
var import_react24 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155610
155205
|
var INITIAL_STATE = {
|
|
155611
155206
|
stack: [],
|
|
155612
155207
|
index: -1
|
|
@@ -155653,20 +155248,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155653
155248
|
}
|
|
155654
155249
|
}
|
|
155655
155250
|
function useWebViewHistory() {
|
|
155656
|
-
var
|
|
155657
|
-
|
|
155658
|
-
state =
|
|
155659
|
-
dispatch =
|
|
155660
|
-
var onNavigationStateChange = (0,
|
|
155661
|
-
var url =
|
|
155662
|
-
canGoForward2 =
|
|
155251
|
+
var _ref69 = (0, import_react24.useReducer)(reducer, INITIAL_STATE),
|
|
155252
|
+
_ref70 = _slicedToArray(_ref69, 2),
|
|
155253
|
+
state = _ref70[0],
|
|
155254
|
+
dispatch = _ref70[1];
|
|
155255
|
+
var onNavigationStateChange = (0, import_react24.useCallback)(function (_ref71) {
|
|
155256
|
+
var url = _ref71.url,
|
|
155257
|
+
canGoForward2 = _ref71.canGoForward;
|
|
155663
155258
|
dispatch({
|
|
155664
155259
|
type: "NAVIGATION_CHANGE",
|
|
155665
155260
|
url: url,
|
|
155666
155261
|
canGoForward: canGoForward2
|
|
155667
155262
|
});
|
|
155668
155263
|
}, []);
|
|
155669
|
-
var
|
|
155264
|
+
var _ref72 = (0, import_react24.useMemo)(function () {
|
|
155670
155265
|
var canBack = state.index > 0;
|
|
155671
155266
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
155672
155267
|
return {
|
|
@@ -155674,8 +155269,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155674
155269
|
canGoForward: canFwd
|
|
155675
155270
|
};
|
|
155676
155271
|
}, [state.index, state.stack.length]),
|
|
155677
|
-
canGoBack =
|
|
155678
|
-
canGoForward =
|
|
155272
|
+
canGoBack = _ref72.canGoBack,
|
|
155273
|
+
canGoForward = _ref72.canGoForward;
|
|
155679
155274
|
return {
|
|
155680
155275
|
onNavigationStateChange: onNavigationStateChange,
|
|
155681
155276
|
hasHistory: canGoBack,
|
|
@@ -155690,22 +155285,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155690
155285
|
var _useWebViewHistory = useWebViewHistory(),
|
|
155691
155286
|
hasHistory = _useWebViewHistory.hasHistory,
|
|
155692
155287
|
onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
155693
|
-
var
|
|
155694
|
-
webBackHandlersRef =
|
|
155695
|
-
hasWebBackEvent =
|
|
155696
|
-
addWebBackEventListener =
|
|
155697
|
-
removeWebBackEventListener =
|
|
155288
|
+
var _ref73 = (0, import_react_native29.useBackEventState)(),
|
|
155289
|
+
webBackHandlersRef = _ref73.handlersRef,
|
|
155290
|
+
hasWebBackEvent = _ref73.hasBackEvent,
|
|
155291
|
+
addWebBackEventListener = _ref73.addEventListener,
|
|
155292
|
+
removeWebBackEventListener = _ref73.removeEventListener;
|
|
155698
155293
|
var logging = useNavigationBarLogging();
|
|
155699
|
-
var
|
|
155700
|
-
openConfirm =
|
|
155294
|
+
var _ref74 = (0, import_tds_react_native13.useDialog)(),
|
|
155295
|
+
openConfirm = _ref74.openConfirm;
|
|
155701
155296
|
var global2 = getAppsInTossGlobals();
|
|
155702
|
-
var addEventListener = (0,
|
|
155297
|
+
var addEventListener = (0, import_react25.useCallback)(function (handler) {
|
|
155703
155298
|
addWebBackEventListener(handler);
|
|
155704
155299
|
}, [addWebBackEventListener]);
|
|
155705
|
-
var removeEventListener = (0,
|
|
155300
|
+
var removeEventListener = (0, import_react25.useCallback)(function (handler) {
|
|
155706
155301
|
removeWebBackEventListener(handler);
|
|
155707
155302
|
}, [removeWebBackEventListener]);
|
|
155708
|
-
var handleWebBack = (0,
|
|
155303
|
+
var handleWebBack = (0, import_react25.useCallback)(_asyncToGenerator(function* () {
|
|
155709
155304
|
if (hasWebBackEvent) {
|
|
155710
155305
|
for (var handler of webBackHandlersRef) {
|
|
155711
155306
|
handler();
|
|
@@ -155726,11 +155321,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155726
155321
|
logging.closePopupCtaClick(isConfirmed);
|
|
155727
155322
|
if (isConfirmed) {
|
|
155728
155323
|
captureExitLog(Date.now());
|
|
155729
|
-
(0,
|
|
155324
|
+
(0, import_react_native29.closeView)();
|
|
155730
155325
|
}
|
|
155731
155326
|
}
|
|
155732
155327
|
}), [captureExitLog, global2.brandDisplayName, hasHistory, hasWebBackEvent, webBackHandlersRef, logging, openConfirm, webViewRef]);
|
|
155733
|
-
var handleWebHome = (0,
|
|
155328
|
+
var handleWebHome = (0, import_react25.useCallback)(function () {
|
|
155734
155329
|
var _webViewRef$current2;
|
|
155735
155330
|
logging.homeButtonClick();
|
|
155736
155331
|
if (hasWebBackEvent) {
|
|
@@ -155741,7 +155336,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155741
155336
|
}
|
|
155742
155337
|
(_webViewRef$current2 = webViewRef.current) == null ? void 0 : _webViewRef$current2.injectJavaScript(HISTORY_HOME_SCRIPT);
|
|
155743
155338
|
}, [hasWebBackEvent, webBackHandlersRef, logging, webViewRef]);
|
|
155744
|
-
return (0,
|
|
155339
|
+
return (0, import_react25.useMemo)(function () {
|
|
155745
155340
|
return {
|
|
155746
155341
|
addEventListener: addEventListener,
|
|
155747
155342
|
removeEventListener: removeEventListener,
|
|
@@ -155765,8 +155360,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155765
155360
|
});
|
|
155766
155361
|
};
|
|
155767
155362
|
}
|
|
155768
|
-
var
|
|
155769
|
-
var
|
|
155363
|
+
var import_native_modules15 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155364
|
+
var import_react_native30 = _$$_REQUIRE(_dependencyMap[11], "react-native");
|
|
155770
155365
|
var FontA11yCategory = {
|
|
155771
155366
|
Large: "Large",
|
|
155772
155367
|
xLarge: "xLarge",
|
|
@@ -155894,40 +155489,40 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155894
155489
|
function mapFontScaleToCategory(fontScale, platform) {
|
|
155895
155490
|
return platform === "ios" ? mapIOSFontScaleToCategory(fontScale) : mapAndroidFontScaleToCategory(fontScale);
|
|
155896
155491
|
}
|
|
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 =
|
|
155492
|
+
function _useCreateUserAgent(_ref76) {
|
|
155493
|
+
var batteryModePreference = _ref76.batteryModePreference,
|
|
155494
|
+
colorPreference = _ref76.colorPreference,
|
|
155495
|
+
locale = _ref76.locale,
|
|
155496
|
+
navbarPreference = _ref76.navbarPreference,
|
|
155497
|
+
pureSafeArea = _ref76.pureSafeArea,
|
|
155498
|
+
safeArea = _ref76.safeArea,
|
|
155499
|
+
safeAreaBottomTransparency = _ref76.safeAreaBottomTransparency;
|
|
155500
|
+
var platform = (0, import_native_modules15.getPlatformOS)();
|
|
155501
|
+
var appVersion = (0, import_native_modules15.getTossAppVersion)();
|
|
155502
|
+
var _ref77 = (0, import_react_native30.useWindowDimensions)(),
|
|
155503
|
+
fontScale = _ref77.fontScale;
|
|
155909
155504
|
var platformString = platform === "ios" ? "iPhone" : "Android phone";
|
|
155910
155505
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
155911
155506
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
155912
155507
|
return ["AppsInToss", "TossApp/" + appVersion, batteryModePreference && "TossBatteryModePreference/" + batteryModePreference, colorPreference && "TossColorPreference/" + colorPreference, "TossFontAccessibility/" + fontA11y, "TossFontScale/" + normalizedFontScale, locale && "TossLocale/" + locale, navbarPreference && "TossNavbarPreference/" + navbarPreference, pureSafeArea && "TossPureSafeArea/" + pureSafeArea, safeArea && "TossSafeArea/" + safeArea, safeAreaBottomTransparency && "TossSafeAreaBottomTransparency/" + safeAreaBottomTransparency, platformString].filter(Boolean).join(" ");
|
|
155913
155508
|
}
|
|
155914
|
-
var
|
|
155915
|
-
var
|
|
155916
|
-
var
|
|
155917
|
-
function _useGeolocation(
|
|
155918
|
-
var accuracy =
|
|
155919
|
-
distanceInterval =
|
|
155920
|
-
timeInterval =
|
|
155921
|
-
var isVisible = (0,
|
|
155922
|
-
var
|
|
155923
|
-
|
|
155924
|
-
location =
|
|
155925
|
-
setLocation =
|
|
155926
|
-
(0,
|
|
155509
|
+
var import_native_modules16 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155510
|
+
var import_react_native31 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155511
|
+
var import_react26 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155512
|
+
function _useGeolocation(_ref78) {
|
|
155513
|
+
var accuracy = _ref78.accuracy,
|
|
155514
|
+
distanceInterval = _ref78.distanceInterval,
|
|
155515
|
+
timeInterval = _ref78.timeInterval;
|
|
155516
|
+
var isVisible = (0, import_react_native31.useVisibility)();
|
|
155517
|
+
var _ref79 = (0, import_react26.useState)(null),
|
|
155518
|
+
_ref80 = _slicedToArray(_ref79, 2),
|
|
155519
|
+
location = _ref80[0],
|
|
155520
|
+
setLocation = _ref80[1];
|
|
155521
|
+
(0, import_react26.useEffect)(function () {
|
|
155927
155522
|
if (!isVisible) {
|
|
155928
155523
|
return;
|
|
155929
155524
|
}
|
|
155930
|
-
return (0,
|
|
155525
|
+
return (0, import_native_modules16.startUpdateLocation)({
|
|
155931
155526
|
options: {
|
|
155932
155527
|
accuracy: accuracy,
|
|
155933
155528
|
distanceInterval: distanceInterval,
|
|
@@ -155939,18 +155534,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155939
155534
|
}, [accuracy, distanceInterval, timeInterval, isVisible]);
|
|
155940
155535
|
return location;
|
|
155941
155536
|
}
|
|
155942
|
-
var
|
|
155943
|
-
var
|
|
155537
|
+
var import_react_native32 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155538
|
+
var import_react27 = _$$_REQUIRE(_dependencyMap[12], "react");
|
|
155944
155539
|
function _useWaitForReturnNavigator() {
|
|
155945
|
-
var callbacks = (0,
|
|
155946
|
-
var navigation = (0,
|
|
155947
|
-
var startNavigating = (0,
|
|
155540
|
+
var callbacks = (0, import_react27.useRef)([]).current;
|
|
155541
|
+
var navigation = (0, import_react_native32.useNavigation)();
|
|
155542
|
+
var startNavigating = (0, import_react27.useCallback)(function (route, params) {
|
|
155948
155543
|
return new Promise(function (resolve) {
|
|
155949
155544
|
callbacks.push(resolve);
|
|
155950
155545
|
navigation.navigate(route, params);
|
|
155951
155546
|
});
|
|
155952
155547
|
}, [callbacks, navigation]);
|
|
155953
|
-
var handleVisibilityChange = (0,
|
|
155548
|
+
var handleVisibilityChange = (0, import_react27.useCallback)(function (state) {
|
|
155954
155549
|
if (state === "visible" && callbacks.length > 0) {
|
|
155955
155550
|
for (var callback of callbacks) {
|
|
155956
155551
|
callback();
|
|
@@ -155958,7 +155553,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155958
155553
|
callbacks.splice(0, callbacks.length);
|
|
155959
155554
|
}
|
|
155960
155555
|
}, [callbacks]);
|
|
155961
|
-
(0,
|
|
155556
|
+
(0, import_react_native32.useVisibilityChange)(handleVisibilityChange);
|
|
155962
155557
|
return startNavigating;
|
|
155963
155558
|
}
|
|
155964
155559
|
function _useTopNavigation() {
|
|
@@ -155970,8 +155565,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155970
155565
|
removeAccessoryButton: removeNavigationRightButton
|
|
155971
155566
|
};
|
|
155972
155567
|
}
|
|
155973
|
-
var
|
|
155974
|
-
var
|
|
155568
|
+
var import_native_modules17 = _$$_REQUIRE(_dependencyMap[8], "@apps-in-toss/native-modules");
|
|
155569
|
+
var import_react_native33 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
|
|
155975
155570
|
var extractDateFromUUIDv7 = function extractDateFromUUIDv7(uuid) {
|
|
155976
155571
|
var timestampHex = uuid.split("-").join("").slice(0, 12);
|
|
155977
155572
|
var timestamp = Number.parseInt(timestampHex, 16);
|
|
@@ -155984,18 +155579,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
155984
155579
|
groupId: urlObject.pathname,
|
|
155985
155580
|
search: urlObject.search.startsWith("?") ? urlObject.search.substring(1) : urlObject.search
|
|
155986
155581
|
};
|
|
155987
|
-
} catch (
|
|
155582
|
+
} catch (_unused4) {
|
|
155988
155583
|
return {
|
|
155989
155584
|
groupId: "unknown",
|
|
155990
155585
|
search: "unknown"
|
|
155991
155586
|
};
|
|
155992
155587
|
}
|
|
155993
155588
|
};
|
|
155994
|
-
var
|
|
155589
|
+
var getReferrer = function getReferrer() {
|
|
155995
155590
|
try {
|
|
155996
|
-
var referrer = new URL((0,
|
|
155591
|
+
var referrer = new URL((0, import_react_native33.getSchemeUri)());
|
|
155997
155592
|
return referrer.searchParams.get("referrer");
|
|
155998
|
-
} catch (
|
|
155593
|
+
} catch (_unused5) {
|
|
155999
155594
|
return "";
|
|
156000
155595
|
}
|
|
156001
155596
|
};
|
|
@@ -156008,29 +155603,29 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156008
155603
|
log_name: groupId + "::screen",
|
|
156009
155604
|
params: {
|
|
156010
155605
|
search: search,
|
|
156011
|
-
referrer:
|
|
155606
|
+
referrer: getReferrer(),
|
|
156012
155607
|
deployment_id: _env.getDeploymentId(),
|
|
156013
155608
|
deployment_timestamp: extractDateFromUUIDv7(_env.getDeploymentId()).getTime()
|
|
156014
155609
|
}
|
|
156015
155610
|
};
|
|
156016
|
-
return (0,
|
|
155611
|
+
return (0, import_native_modules17.eventLog)(log);
|
|
156017
155612
|
};
|
|
156018
155613
|
var import_jsx_runtime18 = _$$_REQUIRE(_dependencyMap[13], "react/jsx-runtime");
|
|
156019
155614
|
var operationalEnvironment = appsInTossConstantBridges.getOperationalEnvironment();
|
|
156020
155615
|
var TYPES = ["partner", "external", "game"];
|
|
156021
155616
|
var WEBVIEW_TYPES = {
|
|
156022
155617
|
partner: PartnerWebView,
|
|
156023
|
-
external:
|
|
155618
|
+
external: import_tds_react_native14.ExternalWebViewScreen,
|
|
156024
155619
|
game: GameWebView
|
|
156025
155620
|
};
|
|
156026
155621
|
function mergeSchemeQueryParamsInto(url) {
|
|
156027
155622
|
var baseUrl = new URL(url);
|
|
156028
|
-
var schemeUrl = new URL((0,
|
|
155623
|
+
var schemeUrl = new URL((0, import_react_native34.getSchemeUri)());
|
|
156029
155624
|
baseUrl.pathname = schemeUrl.pathname;
|
|
156030
|
-
for (var
|
|
156031
|
-
var
|
|
156032
|
-
var key =
|
|
156033
|
-
var value =
|
|
155625
|
+
for (var _ref81 of schemeUrl.searchParams.entries()) {
|
|
155626
|
+
var _ref82 = _slicedToArray(_ref81, 2);
|
|
155627
|
+
var key = _ref82[0];
|
|
155628
|
+
var value = _ref82[1];
|
|
156034
155629
|
baseUrl.searchParams.set(key, value);
|
|
156035
155630
|
}
|
|
156036
155631
|
return baseUrl;
|
|
@@ -156040,7 +155635,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156040
155635
|
var devUrl = "http://" + local.host + ":" + local.port;
|
|
156041
155636
|
return mergeSchemeQueryParamsInto(devUrl).toString();
|
|
156042
155637
|
}
|
|
156043
|
-
var _import_native_module =
|
|
155638
|
+
var _import_native_module = import_native_modules18.AppsInTossModule.getWebBundleURL({}),
|
|
156044
155639
|
rawUrl = _import_native_module.url;
|
|
156045
155640
|
var url = mergeSchemeQueryParamsInto(rawUrl);
|
|
156046
155641
|
var deploymentId = _env.getDeploymentId();
|
|
@@ -156049,17 +155644,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156049
155644
|
}
|
|
156050
155645
|
return url.toString();
|
|
156051
155646
|
}
|
|
156052
|
-
function _WebView(
|
|
156053
|
-
var type =
|
|
156054
|
-
local =
|
|
156055
|
-
onMessage =
|
|
156056
|
-
props = _objectWithoutProperties(
|
|
155647
|
+
function _WebView(_ref83) {
|
|
155648
|
+
var type = _ref83.type,
|
|
155649
|
+
local = _ref83.local,
|
|
155650
|
+
onMessage = _ref83.onMessage,
|
|
155651
|
+
props = _objectWithoutProperties(_ref83, _excluded3);
|
|
156057
155652
|
if (!TYPES.includes(type)) {
|
|
156058
155653
|
throw new Error("Invalid WebView type: '" + type + "'");
|
|
156059
155654
|
}
|
|
156060
|
-
var webViewRef = (0,
|
|
155655
|
+
var webViewRef = (0, import_react28.useRef)(null);
|
|
156061
155656
|
var webBackHandler = useWebBackHandler(webViewRef);
|
|
156062
|
-
var uri = (0,
|
|
155657
|
+
var uri = (0, import_react28.useMemo)(function () {
|
|
156063
155658
|
return getWebViewUri(local);
|
|
156064
155659
|
}, [local]);
|
|
156065
155660
|
var top = (0, import_private9.useSafeAreaTop)();
|
|
@@ -156068,74 +155663,63 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156068
155663
|
var global2 = getAppsInTossGlobals();
|
|
156069
155664
|
var navigationBarContext = useNavigationBarContext();
|
|
156070
155665
|
var safeAreaInsetsEmitter = useSafeAreaInsetsEmitter();
|
|
156071
|
-
var
|
|
156072
|
-
|
|
156073
|
-
allowsBackForwardNavigationGestures =
|
|
156074
|
-
setAllowsBackForwardNavigationGestures =
|
|
155666
|
+
var _ref84 = (0, import_react28.useState)(props.allowsBackForwardNavigationGestures),
|
|
155667
|
+
_ref85 = _slicedToArray(_ref84, 2),
|
|
155668
|
+
allowsBackForwardNavigationGestures = _ref85[0],
|
|
155669
|
+
setAllowsBackForwardNavigationGestures = _ref85[1];
|
|
156075
155670
|
var handler = useBridgeHandler({
|
|
156076
155671
|
onMessage: onMessage,
|
|
156077
155672
|
eventListenerMap: Object.assign({}, appsInTossEventBridges, {
|
|
156078
|
-
navigationAccessoryEvent: function navigationAccessoryEvent(
|
|
156079
|
-
var onEvent =
|
|
156080
|
-
onError =
|
|
156081
|
-
return
|
|
155673
|
+
navigationAccessoryEvent: function navigationAccessoryEvent(_ref86) {
|
|
155674
|
+
var onEvent = _ref86.onEvent,
|
|
155675
|
+
onError = _ref86.onError;
|
|
155676
|
+
return import_tds_react_native14.tdsEvent.addEventListener("navigationAccessoryEvent", {
|
|
156082
155677
|
onEvent: onEvent,
|
|
156083
155678
|
onError: onError
|
|
156084
155679
|
});
|
|
156085
155680
|
},
|
|
156086
|
-
backEvent: function backEvent(
|
|
156087
|
-
var onEvent =
|
|
155681
|
+
backEvent: function backEvent(_ref87) {
|
|
155682
|
+
var onEvent = _ref87.onEvent;
|
|
156088
155683
|
webBackHandler.addEventListener(onEvent);
|
|
156089
155684
|
return function () {
|
|
156090
155685
|
webBackHandler.removeEventListener(onEvent);
|
|
156091
155686
|
};
|
|
156092
155687
|
},
|
|
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", {
|
|
155688
|
+
updateLocationEvent: function updateLocationEvent(_ref88) {
|
|
155689
|
+
var onEvent = _ref88.onEvent,
|
|
155690
|
+
onError = _ref88.onError,
|
|
155691
|
+
options = _ref88.options;
|
|
155692
|
+
return import_native_modules18.appsInTossEvent.addEventListener("updateLocationEvent", {
|
|
156106
155693
|
onEvent: onEvent,
|
|
156107
155694
|
onError: onError,
|
|
156108
155695
|
options: options
|
|
156109
155696
|
});
|
|
156110
155697
|
},
|
|
156111
|
-
safeAreaInsetsChange: function safeAreaInsetsChange(
|
|
156112
|
-
var onEvent =
|
|
155698
|
+
safeAreaInsetsChange: function safeAreaInsetsChange(_ref89) {
|
|
155699
|
+
var onEvent = _ref89.onEvent;
|
|
156113
155700
|
safeAreaInsetsEmitter.on("safeAreaInsetsChange", onEvent);
|
|
156114
155701
|
return function () {
|
|
156115
155702
|
safeAreaInsetsEmitter.off("safeAreaInsetsChange", onEvent);
|
|
156116
155703
|
};
|
|
156117
155704
|
},
|
|
156118
|
-
appBridgeCallbackEvent: function appBridgeCallbackEvent(
|
|
156119
|
-
var onEvent =
|
|
156120
|
-
onError =
|
|
156121
|
-
options =
|
|
156122
|
-
return
|
|
155705
|
+
appBridgeCallbackEvent: function appBridgeCallbackEvent(_ref90) {
|
|
155706
|
+
var onEvent = _ref90.onEvent,
|
|
155707
|
+
onError = _ref90.onError,
|
|
155708
|
+
options = _ref90.options;
|
|
155709
|
+
return import_native_modules18.appsInTossEvent.addEventListener("appBridgeCallbackEvent", {
|
|
156123
155710
|
onEvent: onEvent,
|
|
156124
155711
|
onError: onError,
|
|
156125
155712
|
options: options
|
|
156126
155713
|
});
|
|
156127
155714
|
},
|
|
156128
|
-
loadAdMobInterstitialAd:
|
|
156129
|
-
showAdMobInterstitialAd:
|
|
156130
|
-
loadAdMobRewardedAd:
|
|
156131
|
-
showAdMobRewardedAd:
|
|
156132
|
-
loadAppsInTossAdMob:
|
|
156133
|
-
showAppsInTossAdMob:
|
|
156134
|
-
|
|
156135
|
-
|
|
156136
|
-
fetchTossAd: fetchTossAd,
|
|
156137
|
-
iapCreateOneTimePurchaseOrder: import_native_modules23.IAP.createOneTimePurchaseOrder,
|
|
156138
|
-
requestOneTimePurchase: import_native_modules23.requestOneTimePurchase
|
|
155715
|
+
loadAdMobInterstitialAd: import_native_modules18.GoogleAdMob.loadAdMobInterstitialAd,
|
|
155716
|
+
showAdMobInterstitialAd: import_native_modules18.GoogleAdMob.showAdMobInterstitialAd,
|
|
155717
|
+
loadAdMobRewardedAd: import_native_modules18.GoogleAdMob.loadAdMobRewardedAd,
|
|
155718
|
+
showAdMobRewardedAd: import_native_modules18.GoogleAdMob.showAdMobRewardedAd,
|
|
155719
|
+
loadAppsInTossAdMob: import_native_modules18.GoogleAdMob.loadAppsInTossAdMob,
|
|
155720
|
+
showAppsInTossAdMob: import_native_modules18.GoogleAdMob.showAppsInTossAdMob,
|
|
155721
|
+
iapCreateOneTimePurchaseOrder: import_native_modules18.IAP.createOneTimePurchaseOrder,
|
|
155722
|
+
requestOneTimePurchase: import_native_modules18.requestOneTimePurchase
|
|
156139
155723
|
}),
|
|
156140
155724
|
constantHandlerMap: Object.assign({}, appsInTossConstantBridges, {
|
|
156141
155725
|
getSafeAreaTop: function getSafeAreaTop() {
|
|
@@ -156150,23 +155734,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156150
155734
|
getSafeAreaRight: function getSafeAreaRight() {
|
|
156151
155735
|
return insets.right;
|
|
156152
155736
|
}
|
|
156153
|
-
}, Object.fromEntries(Object.entries(global2).map(function (
|
|
156154
|
-
var
|
|
156155
|
-
key =
|
|
156156
|
-
value =
|
|
155737
|
+
}, Object.fromEntries(Object.entries(global2).map(function (_ref91) {
|
|
155738
|
+
var _ref92 = _slicedToArray(_ref91, 2),
|
|
155739
|
+
key = _ref92[0],
|
|
155740
|
+
value = _ref92[1];
|
|
156157
155741
|
return [key, function () {
|
|
156158
155742
|
return value;
|
|
156159
155743
|
}];
|
|
156160
155744
|
})), {
|
|
156161
|
-
loadAdMobInterstitialAd_isSupported:
|
|
156162
|
-
showAdMobInterstitialAd_isSupported:
|
|
156163
|
-
loadAdMobRewardedAd_isSupported:
|
|
156164
|
-
showAdMobRewardedAd_isSupported:
|
|
156165
|
-
loadAppsInTossAdMob_isSupported:
|
|
156166
|
-
showAppsInTossAdMob_isSupported:
|
|
156167
|
-
loadFullScreenAd_isSupported: _loadFullScreenAd.isSupported,
|
|
156168
|
-
showFullScreenAd_isSupported: _showFullScreenAd.isSupported,
|
|
156169
|
-
fetchTossAd_isSupported: fetchTossAd.isSupported,
|
|
155745
|
+
loadAdMobInterstitialAd_isSupported: import_native_modules18.GoogleAdMob.loadAdMobInterstitialAd.isSupported,
|
|
155746
|
+
showAdMobInterstitialAd_isSupported: import_native_modules18.GoogleAdMob.showAdMobInterstitialAd.isSupported,
|
|
155747
|
+
loadAdMobRewardedAd_isSupported: import_native_modules18.GoogleAdMob.loadAdMobRewardedAd.isSupported,
|
|
155748
|
+
showAdMobRewardedAd_isSupported: import_native_modules18.GoogleAdMob.showAdMobRewardedAd.isSupported,
|
|
155749
|
+
loadAppsInTossAdMob_isSupported: import_native_modules18.GoogleAdMob.loadAppsInTossAdMob.isSupported,
|
|
155750
|
+
showAppsInTossAdMob_isSupported: import_native_modules18.GoogleAdMob.showAppsInTossAdMob.isSupported,
|
|
156170
155751
|
getDeploymentId: _env.getDeploymentId
|
|
156171
155752
|
}),
|
|
156172
155753
|
asyncHandlerMap: Object.assign({}, appsInTossAsyncBridges, {
|
|
@@ -156178,7 +155759,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156178
155759
|
var _addAccessoryButton = _asyncToGenerator(function* (params) {
|
|
156179
155760
|
return navigationBarContext.addNavigationRightButton(params);
|
|
156180
155761
|
});
|
|
156181
|
-
function addAccessoryButton(
|
|
155762
|
+
function addAccessoryButton(_x5) {
|
|
156182
155763
|
return _addAccessoryButton.apply(this, arguments);
|
|
156183
155764
|
}
|
|
156184
155765
|
return addAccessoryButton;
|
|
@@ -156201,20 +155782,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156201
155782
|
fetchContacts: appsInTossAsyncBridges.fetchContacts,
|
|
156202
155783
|
getCurrentLocation: appsInTossAsyncBridges.getCurrentLocation,
|
|
156203
155784
|
openCamera: appsInTossAsyncBridges.openCamera,
|
|
156204
|
-
getStorageItem:
|
|
156205
|
-
setStorageItem:
|
|
156206
|
-
removeStorageItem:
|
|
156207
|
-
clearItems:
|
|
156208
|
-
iapGetProductItemList:
|
|
156209
|
-
iapCreateOneTimePurchaseOrder:
|
|
156210
|
-
processProductGrant:
|
|
156211
|
-
getPendingOrders:
|
|
156212
|
-
getCompletedOrRefundedOrders:
|
|
156213
|
-
completeProductGrant:
|
|
156214
|
-
|
|
155785
|
+
getStorageItem: import_native_modules18.Storage.getItem,
|
|
155786
|
+
setStorageItem: import_native_modules18.Storage.setItem,
|
|
155787
|
+
removeStorageItem: import_native_modules18.Storage.removeItem,
|
|
155788
|
+
clearItems: import_native_modules18.Storage.clearItems,
|
|
155789
|
+
iapGetProductItemList: import_native_modules18.IAP.getProductItemList,
|
|
155790
|
+
iapCreateOneTimePurchaseOrder: import_native_modules18.iapCreateOneTimePurchaseOrder,
|
|
155791
|
+
processProductGrant: import_native_modules18.processProductGrant,
|
|
155792
|
+
getPendingOrders: import_native_modules18.IAP.getPendingOrders,
|
|
155793
|
+
getCompletedOrRefundedOrders: import_native_modules18.IAP.getCompletedOrRefundedOrders,
|
|
155794
|
+
completeProductGrant: import_native_modules18.IAP.completeProductGrant,
|
|
155795
|
+
memoryDebugEventLog: webViewMemoryDebugLog
|
|
156215
155796
|
})
|
|
156216
155797
|
});
|
|
156217
|
-
var headerPropForExternalWebView = (0,
|
|
155798
|
+
var headerPropForExternalWebView = (0, import_react28.useMemo)(function () {
|
|
156218
155799
|
var _parsedNavigationBar$5;
|
|
156219
155800
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
156220
155801
|
var initialAccessoryButton = parsedNavigationBar == null ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
@@ -156236,14 +155817,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156236
155817
|
colorPreference: "light"
|
|
156237
155818
|
});
|
|
156238
155819
|
var refs = mergeRefs(handler.ref, webViewRef);
|
|
156239
|
-
(0,
|
|
155820
|
+
(0, import_react28.useEffect)(function () {
|
|
156240
155821
|
var callback = function callback() {
|
|
156241
155822
|
webBackHandler.handleWebBack();
|
|
156242
155823
|
return true;
|
|
156243
155824
|
};
|
|
156244
|
-
|
|
155825
|
+
import_react_native35.BackHandler.addEventListener("hardwareBackPress", callback);
|
|
156245
155826
|
return function () {
|
|
156246
|
-
return
|
|
155827
|
+
return import_react_native35.BackHandler.removeEventListener("hardwareBackPress", callback);
|
|
156247
155828
|
};
|
|
156248
155829
|
}, [webBackHandler]);
|
|
156249
155830
|
var globalScripts = useGlobalScripts();
|
|
@@ -156265,14 +155846,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156265
155846
|
props.onNavigationStateChange == null ? void 0 : props.onNavigationStateChange(event);
|
|
156266
155847
|
webBackHandler.onNavigationStateChange(event);
|
|
156267
155848
|
},
|
|
156268
|
-
userAgent:
|
|
155849
|
+
userAgent: import_react_native35.Platform.OS === "ios" ? userAgent : void 0,
|
|
156269
155850
|
sharedCookiesEnabled: true,
|
|
156270
155851
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
156271
155852
|
thirdPartyCookiesEnabled: true,
|
|
156272
155853
|
onMessage: handler.onMessage,
|
|
156273
155854
|
injectedJavaScript: globalScripts.afterLoad,
|
|
156274
155855
|
injectedJavaScriptBeforeContentLoaded: mergeScripts(handler.injectedJavaScript, globalScripts.beforeLoad),
|
|
156275
|
-
decelerationRate:
|
|
155856
|
+
decelerationRate: import_react_native35.Platform.OS === "ios" ? 1 : void 0,
|
|
156276
155857
|
allowsBackForwardNavigationGestures: allowsBackForwardNavigationGestures,
|
|
156277
155858
|
onShouldStartLoadWithRequest: function onShouldStartLoadWithRequest(event) {
|
|
156278
155859
|
try {
|
|
@@ -156281,7 +155862,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156281
155862
|
return true;
|
|
156282
155863
|
} else {
|
|
156283
155864
|
var _convertIntentURL;
|
|
156284
|
-
|
|
155865
|
+
import_react_native35.Linking.openURL((_convertIntentURL = convertIntentURL(url)) != null ? _convertIntentURL : url.href);
|
|
156285
155866
|
return false;
|
|
156286
155867
|
}
|
|
156287
155868
|
} catch (error) {
|
|
@@ -156289,9 +155870,49 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156289
155870
|
return false;
|
|
156290
155871
|
}
|
|
156291
155872
|
},
|
|
156292
|
-
originWhitelist: ["https://*", "http://*", "intoss://*", "intoss-private://*", "servicetoss://*", "supertoss://*", "intent://*"]
|
|
155873
|
+
originWhitelist: ["https://*", "http://*", "intoss://*", "intoss-private://*", "servicetoss://*", "supertoss://*", "intent://*"],
|
|
155874
|
+
onContentProcessDidTerminate: function onContentProcessDidTerminate(event) {
|
|
155875
|
+
var _webViewRef$current3;
|
|
155876
|
+
webViewProcessDidTerminateEventLog(event.nativeEvent.url);
|
|
155877
|
+
(_webViewRef$current3 = webViewRef.current) == null ? void 0 : _webViewRef$current3.reload();
|
|
155878
|
+
},
|
|
155879
|
+
onRenderProcessGone: function onRenderProcessGone() {
|
|
155880
|
+
var _webViewRef$current4;
|
|
155881
|
+
webViewProcessDidTerminateEventLog();
|
|
155882
|
+
(_webViewRef$current4 = webViewRef.current) == null ? void 0 : _webViewRef$current4.reload();
|
|
155883
|
+
}
|
|
156293
155884
|
}));
|
|
156294
155885
|
}
|
|
155886
|
+
function webViewMemoryDebugLog(_x6) {
|
|
155887
|
+
return _webViewMemoryDebugLog.apply(this, arguments);
|
|
155888
|
+
}
|
|
155889
|
+
function _webViewMemoryDebugLog() {
|
|
155890
|
+
_webViewMemoryDebugLog = _asyncToGenerator(function* (params) {
|
|
155891
|
+
webViewDebugLog("AppsInTossWebViewMemoryDebug", params);
|
|
155892
|
+
});
|
|
155893
|
+
return _webViewMemoryDebugLog.apply(this, arguments);
|
|
155894
|
+
}
|
|
155895
|
+
function webViewProcessDidTerminateEventLog(url) {
|
|
155896
|
+
webViewDebugLog("AppsInTossWebViewProcessDidTerminate", {
|
|
155897
|
+
url: url
|
|
155898
|
+
});
|
|
155899
|
+
}
|
|
155900
|
+
function webViewDebugLog(logName, params) {
|
|
155901
|
+
var global2 = getAppsInTossGlobals();
|
|
155902
|
+
var event = {
|
|
155903
|
+
log_name: logName,
|
|
155904
|
+
log_type: "debug",
|
|
155905
|
+
params: Object.assign({}, params, {
|
|
155906
|
+
app_name: import_react_native34.Granite.appName,
|
|
155907
|
+
deployment_id: global2.deploymentId
|
|
155908
|
+
})
|
|
155909
|
+
};
|
|
155910
|
+
if ((0, import_native_modules18.getOperationalEnvironment)() === "toss") {
|
|
155911
|
+
import_native_modules18.INTERNAL__module.tossCoreEventLog(event);
|
|
155912
|
+
} else {
|
|
155913
|
+
console.log("[webViewDebugLog]", event);
|
|
155914
|
+
}
|
|
155915
|
+
}
|
|
156295
155916
|
function useGlobalScripts() {
|
|
156296
155917
|
var global2 = getAppsInTossGlobals();
|
|
156297
155918
|
var disableTextSelectionCSS = "\n const style = document.createElement('style');\n style.textContent = '*:not(input):not(textarea) { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }';\n document.head.appendChild(style);\n ";
|
|
@@ -156326,8 +155947,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156326
155947
|
OverlayProvider: OverlayProvider,
|
|
156327
155948
|
WebView: _WebView,
|
|
156328
155949
|
env: _env,
|
|
156329
|
-
loadFullScreenAd: _loadFullScreenAd,
|
|
156330
|
-
showFullScreenAd: _showFullScreenAd,
|
|
156331
155950
|
useCreateUserAgent: _useCreateUserAgent,
|
|
156332
155951
|
useGeolocation: _useGeolocation,
|
|
156333
155952
|
useOverlay: useOverlay,
|
|
@@ -156344,16 +155963,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156344
155963
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
156345
155964
|
"use strict";
|
|
156346
155965
|
|
|
156347
|
-
var
|
|
156348
|
-
var
|
|
156349
|
-
var
|
|
156350
|
-
var
|
|
156351
|
-
var
|
|
156352
|
-
var _excluded = ["
|
|
156353
|
-
_excluded2 = ["
|
|
156354
|
-
_excluded3 = ["
|
|
156355
|
-
_excluded4 = ["params"],
|
|
156356
|
-
_excluded5 = ["
|
|
155966
|
+
var _defineProperty = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/defineProperty");
|
|
155967
|
+
var _asyncToGenerator = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator");
|
|
155968
|
+
var _toConsumableArray = _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/toConsumableArray");
|
|
155969
|
+
var _slicedToArray = _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/slicedToArray");
|
|
155970
|
+
var _objectWithoutProperties = _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/objectWithoutProperties");
|
|
155971
|
+
var _excluded = ["log_name"],
|
|
155972
|
+
_excluded2 = ["enabled", "impression"],
|
|
155973
|
+
_excluded3 = ["params"],
|
|
155974
|
+
_excluded4 = ["children", "params"],
|
|
155975
|
+
_excluded5 = ["params"],
|
|
155976
|
+
_excluded6 = ["loggerParams", "children", "hasIOScrollView"];
|
|
156357
155977
|
var __defProp = Object.defineProperty;
|
|
156358
155978
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
156359
155979
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -156464,10 +156084,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156464
156084
|
});
|
|
156465
156085
|
},
|
|
156466
156086
|
event: function event(groupId, params) {
|
|
156087
|
+
var log_name = params.log_name,
|
|
156088
|
+
otherParams = _objectWithoutProperties(params, _excluded);
|
|
156467
156089
|
loggerFunction == null ? void 0 : loggerFunction({
|
|
156468
156090
|
log_type: "event",
|
|
156469
|
-
log_name: createLogName(groupId, params.event_type),
|
|
156470
|
-
params:
|
|
156091
|
+
log_name: log_name != null ? log_name : createLogName(groupId, params.event_type),
|
|
156092
|
+
params: otherParams
|
|
156471
156093
|
});
|
|
156472
156094
|
}
|
|
156473
156095
|
};
|
|
@@ -156573,9 +156195,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156573
156195
|
enabled = _ref7$enabled === void 0 ? true : _ref7$enabled,
|
|
156574
156196
|
_ref7$impression = _ref7.impression,
|
|
156575
156197
|
impressionType = _ref7$impression === void 0 ? "always" : _ref7$impression,
|
|
156576
|
-
props = _objectWithoutProperties(_ref7,
|
|
156198
|
+
props = _objectWithoutProperties(_ref7, _excluded2);
|
|
156577
156199
|
var params = props.params,
|
|
156578
|
-
rest = _objectWithoutProperties(props,
|
|
156200
|
+
rest = _objectWithoutProperties(props, _excluded3);
|
|
156579
156201
|
var ImpressionAreaComponent = impressionType === "on-mount" ? import_react_native.ImpressionAreaOnMount : import_react_native.ImpressionArea;
|
|
156580
156202
|
var isInFallbackProvider = (0, import_react7.useContext)(ImpressionFallbackContext);
|
|
156581
156203
|
return (0, import_jsx_runtime.jsx)(LoggingEvent, {
|
|
@@ -156639,7 +156261,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156639
156261
|
var children = _ref10.children,
|
|
156640
156262
|
_ref10$params = _ref10.params,
|
|
156641
156263
|
_params = _ref10$params === void 0 ? {} : _ref10$params,
|
|
156642
|
-
props = _objectWithoutProperties(_ref10,
|
|
156264
|
+
props = _objectWithoutProperties(_ref10, _excluded4);
|
|
156643
156265
|
var ref = (0, import_react9.useRef)(null);
|
|
156644
156266
|
var logger = useLogger();
|
|
156645
156267
|
var _params2 = usePreservedReference(_params);
|
|
@@ -156792,7 +156414,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156792
156414
|
function LoggingScreen(_ref16) {
|
|
156793
156415
|
var _ref16$params = _ref16.params,
|
|
156794
156416
|
_params = _ref16$params === void 0 ? {} : _ref16$params,
|
|
156795
|
-
props = _objectWithoutProperties(_ref16,
|
|
156417
|
+
props = _objectWithoutProperties(_ref16, _excluded5);
|
|
156796
156418
|
var _useRoutePath = useRoutePath(),
|
|
156797
156419
|
groupId = _useRoutePath.path,
|
|
156798
156420
|
search = _useRoutePath.search;
|
|
@@ -156934,7 +156556,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156934
156556
|
children = _ref18.children,
|
|
156935
156557
|
_ref18$hasIOScrollVie = _ref18.hasIOScrollView,
|
|
156936
156558
|
hasIOScrollView = _ref18$hasIOScrollVie === void 0 ? true : _ref18$hasIOScrollVie,
|
|
156937
|
-
props = _objectWithoutProperties(_ref18,
|
|
156559
|
+
props = _objectWithoutProperties(_ref18, _excluded6);
|
|
156938
156560
|
var hasIntersectionObserver = (0, import_react14.isValidElement)(children) && children.type === import_react_native6.IOScrollView;
|
|
156939
156561
|
return (0, import_jsx_runtime5.jsx)(LoggingScreen, {
|
|
156940
156562
|
params: loggerParams,
|
|
@@ -156954,18 +156576,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
156954
156576
|
Analytics: _Analytics,
|
|
156955
156577
|
withLoggingScreen: _withLoggingScreen
|
|
156956
156578
|
});
|
|
156957
|
-
},1258,[
|
|
156579
|
+
},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
156580
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
156959
156581
|
"use strict";
|
|
156960
156582
|
|
|
156961
156583
|
var _slicedToArray = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/slicedToArray");
|
|
156962
156584
|
var _objectWithoutProperties = _$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/objectWithoutProperties");
|
|
156963
|
-
var
|
|
156964
|
-
var
|
|
156965
|
-
var
|
|
156966
|
-
var
|
|
156967
|
-
var
|
|
156968
|
-
var
|
|
156585
|
+
var _classCallCheck = _$$_REQUIRE(_dependencyMap[2], "@babel/runtime/helpers/classCallCheck");
|
|
156586
|
+
var _createClass = _$$_REQUIRE(_dependencyMap[3], "@babel/runtime/helpers/createClass");
|
|
156587
|
+
var _possibleConstructorReturn = _$$_REQUIRE(_dependencyMap[4], "@babel/runtime/helpers/possibleConstructorReturn");
|
|
156588
|
+
var _getPrototypeOf = _$$_REQUIRE(_dependencyMap[5], "@babel/runtime/helpers/getPrototypeOf");
|
|
156589
|
+
var _inherits = _$$_REQUIRE(_dependencyMap[6], "@babel/runtime/helpers/inherits");
|
|
156590
|
+
var _asyncToGenerator = _$$_REQUIRE(_dependencyMap[7], "@babel/runtime/helpers/asyncToGenerator");
|
|
156969
156591
|
var _excluded = ["onSuccess", "onError"];
|
|
156970
156592
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
156971
156593
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
@@ -157157,32 +156779,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157157
156779
|
}
|
|
157158
156780
|
});
|
|
157159
156781
|
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);
|
|
156782
|
+
var import_react_native6 = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
157182
156783
|
var import_types = _$$_REQUIRE(_dependencyMap[9], "@apps-in-toss/types");
|
|
157183
|
-
var
|
|
157184
|
-
var
|
|
157185
|
-
var Module =
|
|
156784
|
+
var import_react_native3 = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
156785
|
+
var import_react_native = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
156786
|
+
var Module = import_react_native.TurboModuleRegistry.getEnforcing("AppsInTossModule");
|
|
157186
156787
|
var AppsInTossModuleInstance = Module;
|
|
157187
156788
|
var _AppsInTossModule = Module;
|
|
157188
156789
|
function openPermissionDialog(permission) {
|
|
@@ -157207,22 +156808,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157207
156808
|
});
|
|
157208
156809
|
return _requestPermission.apply(this, arguments);
|
|
157209
156810
|
}
|
|
157210
|
-
var
|
|
157211
|
-
var nativeEventEmitter = new
|
|
156811
|
+
var import_react_native2 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
156812
|
+
var nativeEventEmitter = new import_react_native2.NativeEventEmitter(AppsInTossModuleInstance);
|
|
157212
156813
|
var UpdateLocationEvent = function (_import_react_native) {
|
|
157213
156814
|
function UpdateLocationEvent() {
|
|
157214
|
-
var
|
|
156815
|
+
var _this;
|
|
157215
156816
|
_classCallCheck(this, UpdateLocationEvent);
|
|
157216
|
-
for (var
|
|
157217
|
-
args[
|
|
156817
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
156818
|
+
args[_key] = arguments[_key];
|
|
157218
156819
|
}
|
|
157219
|
-
|
|
157220
|
-
|
|
157221
|
-
|
|
157222
|
-
|
|
156820
|
+
_this = _callSuper(this, UpdateLocationEvent, [].concat(args));
|
|
156821
|
+
_this.name = "updateLocationEvent";
|
|
156822
|
+
_this.subscriptionCount = 0;
|
|
156823
|
+
_this.ref = {
|
|
157223
156824
|
remove: function remove() {}
|
|
157224
156825
|
};
|
|
157225
|
-
return
|
|
156826
|
+
return _this;
|
|
157226
156827
|
}
|
|
157227
156828
|
_inherits(UpdateLocationEvent, _import_react_native);
|
|
157228
156829
|
return _createClass(UpdateLocationEvent, [{
|
|
@@ -157236,7 +156837,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157236
156837
|
}, {
|
|
157237
156838
|
key: "listener",
|
|
157238
156839
|
value: function listener(options, onEvent, onError) {
|
|
157239
|
-
var
|
|
156840
|
+
var _this2 = this;
|
|
157240
156841
|
requestPermission({
|
|
157241
156842
|
name: "geolocation",
|
|
157242
156843
|
access: "access"
|
|
@@ -157247,25 +156848,25 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157247
156848
|
}
|
|
157248
156849
|
void AppsInTossModuleInstance.startUpdateLocation(options).catch(onError);
|
|
157249
156850
|
var subscription = nativeEventEmitter.addListener("updateLocation", onEvent);
|
|
157250
|
-
|
|
156851
|
+
_this2.ref = {
|
|
157251
156852
|
remove: function remove() {
|
|
157252
156853
|
return subscription == null ? void 0 : subscription.remove();
|
|
157253
156854
|
}
|
|
157254
156855
|
};
|
|
157255
|
-
|
|
156856
|
+
_this2.subscriptionCount++;
|
|
157256
156857
|
}).catch(onError);
|
|
157257
156858
|
}
|
|
157258
156859
|
}]);
|
|
157259
|
-
}(
|
|
157260
|
-
var
|
|
156860
|
+
}(import_react_native3.GraniteEventDefinition);
|
|
156861
|
+
var import_react_native4 = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
157261
156862
|
function generateUUID(placeholder) {
|
|
157262
156863
|
return placeholder ? (placeholder ^ Math.random() * 16 >> placeholder / 4).toString(16) : (String(1e7) + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, generateUUID);
|
|
157263
156864
|
}
|
|
157264
156865
|
var INTERNAL__callbacks = new Map();
|
|
157265
156866
|
function invokeAppBridgeCallback(id) {
|
|
157266
156867
|
var callback = INTERNAL__callbacks.get(id);
|
|
157267
|
-
for (var
|
|
157268
|
-
args[
|
|
156868
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
156869
|
+
args[_key2 - 1] = arguments[_key2];
|
|
157269
156870
|
}
|
|
157270
156871
|
callback == null ? void 0 : callback.call.apply(callback, [null].concat(args));
|
|
157271
156872
|
return Boolean(callback);
|
|
@@ -157329,12 +156930,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157329
156930
|
var UNSAFE__nativeEventEmitter = nativeEventEmitter;
|
|
157330
156931
|
var AppBridgeCallbackEvent = function (_import_react_native2) {
|
|
157331
156932
|
function _AppBridgeCallbackEvent() {
|
|
157332
|
-
var
|
|
156933
|
+
var _this3;
|
|
157333
156934
|
_classCallCheck(this, _AppBridgeCallbackEvent);
|
|
157334
|
-
|
|
157335
|
-
|
|
157336
|
-
|
|
157337
|
-
return
|
|
156935
|
+
_this3 = _callSuper(this, _AppBridgeCallbackEvent);
|
|
156936
|
+
_this3.name = "appBridgeCallbackEvent";
|
|
156937
|
+
_this3.registerAppBridgeCallbackEventListener();
|
|
156938
|
+
return _this3;
|
|
157338
156939
|
}
|
|
157339
156940
|
_inherits(_AppBridgeCallbackEvent, _import_react_native2);
|
|
157340
156941
|
return _createClass(_AppBridgeCallbackEvent, [{
|
|
@@ -157361,19 +156962,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157361
156962
|
}
|
|
157362
156963
|
}
|
|
157363
156964
|
}]);
|
|
157364
|
-
}(
|
|
157365
|
-
var
|
|
156965
|
+
}(import_react_native4.GraniteEventDefinition);
|
|
156966
|
+
var import_react_native5 = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
157366
156967
|
var VisibilityChangedByTransparentServiceWebEvent = function (_import_react_native3) {
|
|
157367
156968
|
function VisibilityChangedByTransparentServiceWebEvent() {
|
|
157368
|
-
var
|
|
156969
|
+
var _this4;
|
|
157369
156970
|
_classCallCheck(this, VisibilityChangedByTransparentServiceWebEvent);
|
|
157370
|
-
for (var
|
|
157371
|
-
args[
|
|
156971
|
+
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
156972
|
+
args[_key3] = arguments[_key3];
|
|
157372
156973
|
}
|
|
157373
|
-
|
|
157374
|
-
|
|
157375
|
-
|
|
157376
|
-
return
|
|
156974
|
+
_this4 = _callSuper(this, VisibilityChangedByTransparentServiceWebEvent, [].concat(args));
|
|
156975
|
+
_this4.name = "onVisibilityChangedByTransparentServiceWeb";
|
|
156976
|
+
_this4.subscription = null;
|
|
156977
|
+
return _this4;
|
|
157377
156978
|
}
|
|
157378
156979
|
_inherits(VisibilityChangedByTransparentServiceWebEvent, _import_react_native3);
|
|
157379
156980
|
return _createClass(VisibilityChangedByTransparentServiceWebEvent, [{
|
|
@@ -157386,9 +156987,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157386
156987
|
}, {
|
|
157387
156988
|
key: "listener",
|
|
157388
156989
|
value: function listener(options, onEvent, onError) {
|
|
157389
|
-
var
|
|
156990
|
+
var _this5 = this;
|
|
157390
156991
|
var subscription = nativeEventEmitter.addListener("visibilityChangedByTransparentServiceWeb", function (params) {
|
|
157391
|
-
if (
|
|
156992
|
+
if (_this5.isVisibilityChangedByTransparentServiceWebResult(params)) {
|
|
157392
156993
|
if (params.callbackId === options.callbackId) {
|
|
157393
156994
|
onEvent(params.isVisible);
|
|
157394
156995
|
}
|
|
@@ -157404,13 +157005,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157404
157005
|
return typeof params === "object" && typeof params.callbackId === "string" && typeof params.isVisible === "boolean";
|
|
157405
157006
|
}
|
|
157406
157007
|
}]);
|
|
157407
|
-
}(
|
|
157408
|
-
var _appsInTossEvent = new
|
|
157008
|
+
}(import_react_native5.GraniteEventDefinition);
|
|
157009
|
+
var _appsInTossEvent = new import_react_native6.GraniteEvent([new UpdateLocationEvent(), new AppBridgeCallbackEvent(), new VisibilityChangedByTransparentServiceWebEvent()]);
|
|
157409
157010
|
var import_es_toolkit = _$$_REQUIRE(_dependencyMap[11], "es-toolkit");
|
|
157410
157011
|
function _getOperationalEnvironment() {
|
|
157411
157012
|
return _AppsInTossModule.operationalEnvironment;
|
|
157412
157013
|
}
|
|
157413
|
-
var
|
|
157014
|
+
var import_react_native7 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
157414
157015
|
var SEMVER_REGEX = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\\-]+(?:\.[\da-z\\-]+)*))?(?:\+[\da-z\\-]+(?:\.[\da-z\\-]+)*)?)?)?$/i;
|
|
157415
157016
|
var isWildcard = function isWildcard(val) {
|
|
157416
157017
|
return ["*", "x", "X"].includes(val);
|
|
@@ -157493,7 +157094,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157493
157094
|
return true;
|
|
157494
157095
|
}
|
|
157495
157096
|
var currentVersion = _AppsInTossModule.tossAppVersion;
|
|
157496
|
-
var isIOS =
|
|
157097
|
+
var isIOS = import_react_native7.Platform.OS === "ios";
|
|
157497
157098
|
var minVersion = isIOS ? minVersions.ios : minVersions.android;
|
|
157498
157099
|
if (minVersion === void 0) {
|
|
157499
157100
|
return false;
|
|
@@ -157655,10 +157256,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
157655
157256
|
showAdMobInterstitialAd.isSupported = createIsSupported();
|
|
157656
157257
|
showAdMobRewardedAd.isSupported = createIsSupported();
|
|
157657
157258
|
var import_es_toolkit2 = _$$_REQUIRE(_dependencyMap[11], "es-toolkit");
|
|
157658
|
-
var
|
|
157259
|
+
var import_react_native8 = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
157659
157260
|
function getReferrer() {
|
|
157660
157261
|
try {
|
|
157661
|
-
return new URL((0,
|
|
157262
|
+
return new URL((0, import_react_native8.getSchemeUri)()).searchParams.get("referrer");
|
|
157662
157263
|
} catch (_unused) {
|
|
157663
157264
|
return null;
|
|
157664
157265
|
}
|
|
@@ -158198,7 +157799,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158198
157799
|
removeItem: removeItem,
|
|
158199
157800
|
clearItems: clearItems
|
|
158200
157801
|
};
|
|
158201
|
-
var
|
|
157802
|
+
var import_react_native9 = _$$_REQUIRE(_dependencyMap[8], "@granite-js/react-native");
|
|
158202
157803
|
var GAME_CENTER_MIN_VERSION = {
|
|
158203
157804
|
android: "5.221.0",
|
|
158204
157805
|
ios: "5.221.0"
|
|
@@ -158231,7 +157832,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158231
157832
|
var url = new URL("servicetoss://game-center/leaderboard?_navbar=hide");
|
|
158232
157833
|
url.searchParams.set("appName", appName);
|
|
158233
157834
|
url.searchParams.set("referrer", "appsintoss." + appName);
|
|
158234
|
-
return (0,
|
|
157835
|
+
return (0, import_react_native9.openURL)(url.toString());
|
|
158235
157836
|
});
|
|
158236
157837
|
return _openGameCenterLeaderboard2.apply(this, arguments);
|
|
158237
157838
|
}
|
|
@@ -158399,8 +158000,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158399
158000
|
function _onVisibilityChangedByTransparentServiceWeb(eventParams) {
|
|
158400
158001
|
return _appsInTossEvent.addEventListener("onVisibilityChangedByTransparentServiceWeb", eventParams);
|
|
158401
158002
|
}
|
|
158402
|
-
var
|
|
158403
|
-
var _BedrockModule =
|
|
158003
|
+
var import_react_native10 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
158004
|
+
var _BedrockModule = import_react_native10.NativeModules.BedrockModule;
|
|
158404
158005
|
function _closeView() {
|
|
158405
158006
|
return _closeView2.apply(this, arguments);
|
|
158406
158007
|
}
|
|
@@ -158410,11 +158011,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158410
158011
|
});
|
|
158411
158012
|
return _closeView2.apply(this, arguments);
|
|
158412
158013
|
}
|
|
158413
|
-
var
|
|
158014
|
+
var import_react_native11 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
158414
158015
|
function _getLocale() {
|
|
158415
158016
|
var _BedrockModule$Device, _BedrockModule$Device2;
|
|
158416
158017
|
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 (
|
|
158018
|
+
if (import_react_native11.Platform.OS === "android") {
|
|
158418
158019
|
return replaceUnderbarToHypen(locale);
|
|
158419
158020
|
}
|
|
158420
158021
|
return locale;
|
|
@@ -158464,18 +158065,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158464
158065
|
});
|
|
158465
158066
|
return _setIosSwipeGestureEnabled2.apply(this, arguments);
|
|
158466
158067
|
}
|
|
158467
|
-
var
|
|
158068
|
+
var import_react_native12 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
158468
158069
|
function openURL2(url) {
|
|
158469
|
-
return
|
|
158070
|
+
return import_react_native12.Linking.openURL(url);
|
|
158470
158071
|
}
|
|
158471
|
-
var
|
|
158072
|
+
var import_react_native13 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
158472
158073
|
function _getPlatformOS() {
|
|
158473
|
-
return
|
|
158074
|
+
return import_react_native13.Platform.OS;
|
|
158474
158075
|
}
|
|
158076
|
+
var import_react_native14 = _$$_REQUIRE(_dependencyMap[10], "react-native");
|
|
158077
|
+
var _BedrockCoreModule = import_react_native14.NativeModules.BedrockCoreModule;
|
|
158475
158078
|
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;
|
|
158079
|
+
var TossCoreModule = import_react_native15.NativeModules.TossCoreModule;
|
|
158479
158080
|
function tossCoreEventLog(params) {
|
|
158480
158081
|
var supported = _isMinVersionSupported({
|
|
158481
158082
|
ios: "5.210.0",
|
|
@@ -158549,7 +158150,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
158549
158150
|
startUpdateLocation: _startUpdateLocation,
|
|
158550
158151
|
submitGameCenterLeaderBoardScore: _submitGameCenterLeaderBoardScore
|
|
158551
158152
|
});
|
|
158552
|
-
},1259,[61,207,
|
|
158153
|
+
},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
158154
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
158554
158155
|
"use strict";
|
|
158555
158156
|
|
|
@@ -233439,7 +233040,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233439
233040
|
}
|
|
233440
233041
|
});
|
|
233441
233042
|
});
|
|
233442
|
-
},2613,[2614,
|
|
233043
|
+
},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
233044
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233444
233045
|
Object.defineProperty(exports, "__esModule", {
|
|
233445
233046
|
value: true
|
|
@@ -233452,54 +233053,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233452
233053
|
}
|
|
233453
233054
|
startUpdateLocation.openPermissionDialog = _nativeModules.getCurrentLocation.openPermissionDialog;
|
|
233454
233055
|
startUpdateLocation.getPermission = _nativeModules.getCurrentLocation.getPermission;
|
|
233455
|
-
},2614,[2615,
|
|
233056
|
+
},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
233057
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233457
233058
|
Object.defineProperty(exports, "__esModule", {
|
|
233458
233059
|
value: true
|
|
233459
233060
|
});
|
|
233460
233061
|
exports.appsInTossEvent = void 0;
|
|
233461
233062
|
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");
|
|
233063
|
+
var _UpdateLocationEvent = _$$_REQUIRE(_dependencyMap[1], "./event-plugins/UpdateLocationEvent");
|
|
233064
|
+
var _AppBridgeCallbackEvent = _$$_REQUIRE(_dependencyMap[2], "./internal/AppBridgeCallbackEvent");
|
|
233065
|
+
var _VisibilityChangedByTransparentServiceWebEvent = _$$_REQUIRE(_dependencyMap[3], "./internal/VisibilityChangedByTransparentServiceWebEvent");
|
|
233066
|
+
var appsInTossEvent = exports.appsInTossEvent = new _reactNative.GraniteEvent([new _UpdateLocationEvent.UpdateLocationEvent(), new _AppBridgeCallbackEvent.AppBridgeCallbackEvent(), new _VisibilityChangedByTransparentServiceWebEvent.VisibilityChangedByTransparentServiceWebEvent()]);
|
|
233067
|
+
},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
233068
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233504
233069
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
233505
233070
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -233566,7 +233131,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233566
233131
|
}
|
|
233567
233132
|
}]);
|
|
233568
233133
|
}(_reactNative.GraniteEventDefinition);
|
|
233569
|
-
},
|
|
233134
|
+
},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
233135
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233571
233136
|
Object.defineProperty(exports, "__esModule", {
|
|
233572
233137
|
value: true
|
|
@@ -233575,7 +233140,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233575
233140
|
var _reactNative = _$$_REQUIRE(_dependencyMap[0], "react-native");
|
|
233576
233141
|
var _AppsInTossModule = _$$_REQUIRE(_dependencyMap[1], "../native-modules/AppsInTossModule");
|
|
233577
233142
|
var nativeEventEmitter = exports.nativeEventEmitter = new _reactNative.NativeEventEmitter(_AppsInTossModule.AppsInTossModuleInstance);
|
|
233578
|
-
},
|
|
233143
|
+
},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
233144
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233580
233145
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
233581
233146
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -233628,7 +233193,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233628
233193
|
}
|
|
233629
233194
|
}]);
|
|
233630
233195
|
}(_reactNative.GraniteEventDefinition);
|
|
233631
|
-
},
|
|
233196
|
+
},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
233197
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233633
233198
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
233634
233199
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -233705,7 +233270,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233705
233270
|
unregisterCallback: unregisterCallback,
|
|
233706
233271
|
getCallbackIds: getCallbackIds
|
|
233707
233272
|
};
|
|
233708
|
-
},
|
|
233273
|
+
},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
233274
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233710
233275
|
Object.defineProperty(exports, "__esModule", {
|
|
233711
233276
|
value: true
|
|
@@ -233714,7 +233279,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233714
233279
|
function generateUUID(placeholder) {
|
|
233715
233280
|
return placeholder ? (placeholder ^ Math.random() * 16 >> placeholder / 4).toString(16) : (String(1e7) + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, generateUUID);
|
|
233716
233281
|
}
|
|
233717
|
-
},
|
|
233282
|
+
},2620,[],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/utils/generateUUID.ts");
|
|
233718
233283
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233719
233284
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
233720
233285
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -233772,7 +233337,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
233772
233337
|
}
|
|
233773
233338
|
}]);
|
|
233774
233339
|
}(_reactNative.GraniteEventDefinition);
|
|
233775
|
-
},
|
|
233340
|
+
},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
233341
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
233777
233342
|
Object.defineProperty(exports, "__esModule", {
|
|
233778
233343
|
value: true
|
|
@@ -234112,7 +233677,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234112
233677
|
loadAppsInTossAdMob: _googleAdMobV.loadAppsInTossAdMob,
|
|
234113
233678
|
showAppsInTossAdMob: _googleAdMobV.showAppsInTossAdMob
|
|
234114
233679
|
};
|
|
234115
|
-
},2623,
|
|
233680
|
+
},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
233681
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234117
233682
|
Object.defineProperty(exports, "__esModule", {
|
|
234118
233683
|
value: true
|
|
@@ -234273,7 +233838,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234273
233838
|
loadAdMobRewardedAd.isSupported = createIsSupported();
|
|
234274
233839
|
showAdMobInterstitialAd.isSupported = createIsSupported();
|
|
234275
233840
|
showAdMobRewardedAd.isSupported = createIsSupported();
|
|
234276
|
-
},
|
|
233841
|
+
},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
233842
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234278
233843
|
Object.defineProperty(exports, "__esModule", {
|
|
234279
233844
|
value: true
|
|
@@ -234376,7 +233941,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234376
233941
|
}
|
|
234377
233942
|
loadAppsInTossAdMob.isSupported = createIsSupported();
|
|
234378
233943
|
showAppsInTossAdMob.isSupported = createIsSupported();
|
|
234379
|
-
},
|
|
233944
|
+
},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
233945
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234381
233946
|
Object.defineProperty(exports, "__esModule", {
|
|
234382
233947
|
value: true
|
|
@@ -234390,7 +233955,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234390
233955
|
return null;
|
|
234391
233956
|
}
|
|
234392
233957
|
}
|
|
234393
|
-
},
|
|
233958
|
+
},2625,[2],"../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/utils/getReferrer.ts");
|
|
234394
233959
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234395
233960
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
234396
233961
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -234585,7 +234150,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234585
234150
|
getCompletedOrRefundedOrders: getCompletedOrRefundedOrders,
|
|
234586
234151
|
completeProductGrant: completeProductGrant
|
|
234587
234152
|
};
|
|
234588
|
-
},
|
|
234153
|
+
},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
234154
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234590
234155
|
Object.defineProperty(exports, "__esModule", {
|
|
234591
234156
|
value: true
|
|
@@ -234617,7 +234182,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234617
234182
|
removeItem: removeItem,
|
|
234618
234183
|
clearItems: clearItems
|
|
234619
234184
|
};
|
|
234620
|
-
},
|
|
234185
|
+
},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
234186
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234622
234187
|
Object.defineProperty(exports, "__esModule", {
|
|
234623
234188
|
value: true
|
|
@@ -234653,7 +234218,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234653
234218
|
});
|
|
234654
234219
|
return unregisterCallbacks;
|
|
234655
234220
|
}
|
|
234656
|
-
},
|
|
234221
|
+
},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
234222
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234658
234223
|
Object.defineProperty(exports, "__esModule", {
|
|
234659
234224
|
value: true
|
|
@@ -234663,7 +234228,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234663
234228
|
function onVisibilityChangedByTransparentServiceWeb(eventParams) {
|
|
234664
234229
|
return _appsInTossEvent.appsInTossEvent.addEventListener('onVisibilityChangedByTransparentServiceWeb', eventParams);
|
|
234665
234230
|
}
|
|
234666
|
-
},
|
|
234231
|
+
},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
234232
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234668
234233
|
Object.defineProperty(exports, "__esModule", {
|
|
234669
234234
|
value: true
|
|
@@ -234678,7 +234243,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234678
234243
|
context.keys = function () {
|
|
234679
234244
|
return Array.from(files.keys());
|
|
234680
234245
|
};
|
|
234681
|
-
},2631,
|
|
234246
|
+
},2630,[2631,2632],"react-native/context.ts");
|
|
234682
234247
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234683
234248
|
Object.defineProperty(exports, "__esModule", {
|
|
234684
234249
|
value: true
|
|
@@ -234711,7 +234276,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234711
234276
|
})
|
|
234712
234277
|
});
|
|
234713
234278
|
}
|
|
234714
|
-
},
|
|
234279
|
+
},2631,[1256,18,9],"react-native/pages/index.tsx");
|
|
234715
234280
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
234716
234281
|
var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
|
|
234717
234282
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -234724,6 +234289,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
234724
234289
|
}
|
|
234725
234290
|
});
|
|
234726
234291
|
var _index = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "./index"));
|
|
234727
|
-
},
|
|
234292
|
+
},2632,[1,2631],"react-native/pages/_404.tsx");
|
|
234728
234293
|
__r(133);
|
|
234729
234294
|
__r(0);
|