@apps-in-toss/web-framework 2.4.2 → 2.4.3
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.rn84.js +488 -558
- package/dist/prebuilt/dev.ios.rn84.js +488 -558
- package/dist/prebuilt/prod.android.rn72.js +169 -244
- package/dist/prebuilt/prod.android.rn84.js +169 -244
- package/dist/prebuilt/prod.ios.rn72.js +169 -244
- package/dist/prebuilt/prod.ios.rn84.js +169 -244
- package/package.json +8 -8
|
@@ -45470,15 +45470,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45470
45470
|
});
|
|
45471
45471
|
|
|
45472
45472
|
// ../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.js
|
|
45473
|
-
function useReferrer() {
|
|
45474
|
-
return (0, import_react181.useMemo)(function() {
|
|
45475
|
-
try {
|
|
45476
|
-
return new URL(getSchemeUri()).searchParams.get("referrer");
|
|
45477
|
-
} catch (unused) {
|
|
45478
|
-
return null;
|
|
45479
|
-
}
|
|
45480
|
-
}, []);
|
|
45481
|
-
}
|
|
45482
45473
|
function isPrivateScheme() {
|
|
45483
45474
|
try {
|
|
45484
45475
|
return new URL(getSchemeUri()).protocol === "intoss-private:";
|
|
@@ -45486,69 +45477,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45486
45477
|
return false;
|
|
45487
45478
|
}
|
|
45488
45479
|
}
|
|
45489
|
-
function
|
|
45490
|
-
var
|
|
45491
|
-
|
|
45492
|
-
|
|
45493
|
-
|
|
45494
|
-
|
|
45495
|
-
|
|
45496
|
-
|
|
45497
|
-
}, [
|
|
45498
|
-
visible
|
|
45499
|
-
]);
|
|
45500
|
-
var captureExitLog = (0, import_react180.useCallback)(function(exitTime) {
|
|
45501
|
-
if (enterTime.current == null) {
|
|
45502
|
-
return;
|
|
45503
|
-
}
|
|
45504
|
-
var stayTime = Math.floor(exitTime - enterTime.current);
|
|
45505
|
-
INTERNAL__module.tossCoreEventLog({
|
|
45506
|
-
log_name: EXIT_IMPRESSION_LOG_NAME,
|
|
45507
|
-
log_type: "event",
|
|
45508
|
-
params: {
|
|
45509
|
-
schema_id: EXIT_IMPRESSION_SCHEMA_ID,
|
|
45510
|
-
event_type: "impression",
|
|
45511
|
-
referrer: referrer2,
|
|
45512
|
-
deployment_id: env.getDeploymentId(),
|
|
45513
|
-
app_name: Granite.appName,
|
|
45514
|
-
is_private: isPrivateScheme(),
|
|
45515
|
-
stay_time: stayTime.toString(),
|
|
45516
|
-
exit_time: exitTime.toString()
|
|
45517
|
-
}
|
|
45518
|
-
});
|
|
45519
|
-
enterTime.current = void 0;
|
|
45520
|
-
}, [
|
|
45521
|
-
referrer2
|
|
45522
|
-
]);
|
|
45523
|
-
return {
|
|
45524
|
-
captureExitLog
|
|
45525
|
-
};
|
|
45526
|
-
}
|
|
45527
|
-
function EntryAppEvent() {
|
|
45528
|
-
var _useReferrer;
|
|
45529
|
-
var referrer2 = (_useReferrer = useReferrer()) !== null && _useReferrer !== void 0 ? _useReferrer : "";
|
|
45530
|
-
(0, import_react179.useEffect)(function() {
|
|
45531
|
-
INTERNAL__module.tossCoreEventLog({
|
|
45532
|
-
log_name: "appsintoss_app_visit::impression__enter_appsintoss",
|
|
45533
|
-
log_type: "info",
|
|
45534
|
-
params: {
|
|
45535
|
-
is_transform: true,
|
|
45536
|
-
schema_id: ENTRY_APP_EVENT_SCHEMA_ID,
|
|
45537
|
-
referrer: referrer2,
|
|
45538
|
-
deployment_id: env.getDeploymentId(),
|
|
45539
|
-
app_name: Granite.appName,
|
|
45540
|
-
is_private: isPrivateScheme()
|
|
45541
|
-
}
|
|
45542
|
-
});
|
|
45543
|
-
}, [
|
|
45544
|
-
referrer2
|
|
45545
|
-
]);
|
|
45546
|
-
return null;
|
|
45480
|
+
function sendLog(logData, options) {
|
|
45481
|
+
var _ref = options !== null && options !== void 0 ? options : {}, _ref_pipelines = _ref.pipelines, pipelines = _ref_pipelines === void 0 ? DEFAULT_PIPELINES : _ref_pipelines;
|
|
45482
|
+
if (pipelines.includes("core")) {
|
|
45483
|
+
INTERNAL__module.tossCoreEventLog(logData);
|
|
45484
|
+
}
|
|
45485
|
+
if (pipelines.includes("partner")) {
|
|
45486
|
+
eventLog(logData);
|
|
45487
|
+
}
|
|
45547
45488
|
}
|
|
45548
45489
|
function SystemAppEvent(_03) {
|
|
45549
45490
|
var ref = _object_destructuring_empty(_03), initialProps = _extends({}, _03);
|
|
45550
45491
|
(0, import_react179.useEffect)(function() {
|
|
45551
|
-
|
|
45492
|
+
sendLog({
|
|
45552
45493
|
log_name: "AppsInTossInitialProps",
|
|
45553
45494
|
log_type: "debug",
|
|
45554
45495
|
params: _object_spread_props(_object_spread({}, initialProps), {
|
|
@@ -45557,27 +45498,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45557
45498
|
app_name: Granite.appName,
|
|
45558
45499
|
is_private: isPrivateScheme()
|
|
45559
45500
|
})
|
|
45501
|
+
}, {
|
|
45502
|
+
pipelines: [
|
|
45503
|
+
"core"
|
|
45504
|
+
]
|
|
45560
45505
|
});
|
|
45561
45506
|
}, [
|
|
45562
45507
|
initialProps
|
|
45563
45508
|
]);
|
|
45564
45509
|
return null;
|
|
45565
45510
|
}
|
|
45566
|
-
function StayTimeAppEvent() {
|
|
45567
|
-
var visible = useVisibility();
|
|
45568
|
-
var captureExitLog = useCaptureExitLog().captureExitLog;
|
|
45569
|
-
(0, import_react179.useEffect)(function() {
|
|
45570
|
-
if (visible === false) {
|
|
45571
|
-
captureExitLog(Date.now());
|
|
45572
|
-
}
|
|
45573
|
-
}, [
|
|
45574
|
-
visible,
|
|
45575
|
-
captureExitLog
|
|
45576
|
-
]);
|
|
45577
|
-
return null;
|
|
45578
|
-
}
|
|
45579
45511
|
function AppUpdate() {
|
|
45580
|
-
(0,
|
|
45512
|
+
(0, import_react180.useEffect)(function() {
|
|
45581
45513
|
openURL("supertoss://closePage?url=".concat(UPDATE_SCHEME));
|
|
45582
45514
|
}, []);
|
|
45583
45515
|
return (0, import_jsx_runtime216.jsx)(import_jsx_runtime216.Fragment, {});
|
|
@@ -45602,7 +45534,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45602
45534
|
var children = param.children;
|
|
45603
45535
|
var globals = getAppsInTossGlobals();
|
|
45604
45536
|
var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
45605
|
-
var _useState = _sliced_to_array((0,
|
|
45537
|
+
var _useState = _sliced_to_array((0, import_react181.useState)(parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton), 2), navigationRightButton = _useState[0], setNavigationRightButton = _useState[1];
|
|
45606
45538
|
var addNavigationRightButton = function(button) {
|
|
45607
45539
|
setNavigationRightButton(button);
|
|
45608
45540
|
};
|
|
@@ -45619,16 +45551,25 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45619
45551
|
});
|
|
45620
45552
|
}
|
|
45621
45553
|
function useNavigationBarContext() {
|
|
45622
|
-
var context2 = (0,
|
|
45554
|
+
var context2 = (0, import_react181.useContext)(NavigationBarContext);
|
|
45623
45555
|
if (context2 == null) {
|
|
45624
45556
|
throw Error("useNavigationBarContext must be used within NavigationBarContextProvider");
|
|
45625
45557
|
}
|
|
45626
45558
|
return context2;
|
|
45627
45559
|
}
|
|
45560
|
+
function useReferrer() {
|
|
45561
|
+
return (0, import_react185.useMemo)(function() {
|
|
45562
|
+
try {
|
|
45563
|
+
return new URL(getSchemeUri()).searchParams.get("referrer");
|
|
45564
|
+
} catch (unused) {
|
|
45565
|
+
return null;
|
|
45566
|
+
}
|
|
45567
|
+
}, []);
|
|
45568
|
+
}
|
|
45628
45569
|
function useAppUpdateDialog() {
|
|
45629
45570
|
var openConfirm = useDialog().openConfirm;
|
|
45630
45571
|
var logging = useAppUpdateDialogLogging();
|
|
45631
|
-
var openAppUpdateDialog = (0,
|
|
45572
|
+
var openAppUpdateDialog = (0, import_react184.useCallback)(function(param) {
|
|
45632
45573
|
var title = param.title, description = param.description, _param_leftButton = param.leftButton, leftButton = _param_leftButton === void 0 ? "\uB2EB\uAE30" : _param_leftButton, _param_rightButton = param.rightButton, rightButton = _param_rightButton === void 0 ? "\uC5C5\uB370\uC774\uD2B8\uD558\uAE30" : _param_rightButton, onDismiss = param.onDismiss;
|
|
45633
45574
|
return _async_to_generator(function() {
|
|
45634
45575
|
var isConfirmed, STORE_SCHEME;
|
|
@@ -45679,7 +45620,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45679
45620
|
app_name: Granite.appName
|
|
45680
45621
|
};
|
|
45681
45622
|
var logUpdateClick = function() {
|
|
45682
|
-
|
|
45623
|
+
sendLog({
|
|
45683
45624
|
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
45684
45625
|
log_type: "event",
|
|
45685
45626
|
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
@@ -45690,7 +45631,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45690
45631
|
});
|
|
45691
45632
|
};
|
|
45692
45633
|
var logCloseClick = function() {
|
|
45693
|
-
|
|
45634
|
+
sendLog({
|
|
45694
45635
|
log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
|
|
45695
45636
|
log_type: "event",
|
|
45696
45637
|
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
@@ -45701,7 +45642,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45701
45642
|
});
|
|
45702
45643
|
};
|
|
45703
45644
|
var logDialogShow = function() {
|
|
45704
|
-
|
|
45645
|
+
sendLog({
|
|
45705
45646
|
log_name: UPDATE_DIALOG_LOG_NAME,
|
|
45706
45647
|
log_type: "popup",
|
|
45707
45648
|
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
@@ -45716,12 +45657,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45716
45657
|
};
|
|
45717
45658
|
}
|
|
45718
45659
|
function useHardwareBackPress(handler) {
|
|
45719
|
-
(0,
|
|
45660
|
+
(0, import_react190.useEffect)(function() {
|
|
45720
45661
|
var handleBackPress = function() {
|
|
45721
45662
|
handler();
|
|
45722
45663
|
return true;
|
|
45723
45664
|
};
|
|
45724
|
-
var backHandler =
|
|
45665
|
+
var backHandler = import_react_native196.BackHandler.addEventListener("hardwareBackPress", handleBackPress);
|
|
45725
45666
|
return function() {
|
|
45726
45667
|
return backHandler.remove();
|
|
45727
45668
|
};
|
|
@@ -45732,7 +45673,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45732
45673
|
function useCloseConfirm() {
|
|
45733
45674
|
var brandDisplayName = getAppsInTossGlobals().brandDisplayName;
|
|
45734
45675
|
var openConfirm = useDialog().openConfirm;
|
|
45735
|
-
return (0,
|
|
45676
|
+
return (0, import_react192.useCallback)(function(param) {
|
|
45736
45677
|
var onEntered = param.onEntered;
|
|
45737
45678
|
return _async_to_generator(function() {
|
|
45738
45679
|
return __generator(this, function(_state) {
|
|
@@ -45785,7 +45726,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45785
45726
|
app_name: Granite.appName
|
|
45786
45727
|
};
|
|
45787
45728
|
var logNavBarImpression = function(naviBarConfig) {
|
|
45788
|
-
|
|
45729
|
+
sendLog({
|
|
45789
45730
|
log_name: NAVI_BAR_IMPRESSION_LOG_NAME,
|
|
45790
45731
|
log_type: "event",
|
|
45791
45732
|
params: _object_spread_props(_object_spread({}, naviBarConfig, baseParams), {
|
|
@@ -45795,7 +45736,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45795
45736
|
});
|
|
45796
45737
|
};
|
|
45797
45738
|
var logHomeButtonClick = function() {
|
|
45798
|
-
|
|
45739
|
+
sendLog({
|
|
45799
45740
|
log_name: HOME_BUTTON_CLICK_LOG_NAME,
|
|
45800
45741
|
log_type: "event",
|
|
45801
45742
|
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
@@ -45805,7 +45746,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45805
45746
|
});
|
|
45806
45747
|
};
|
|
45807
45748
|
var logCloseButtonClick = function() {
|
|
45808
|
-
|
|
45749
|
+
sendLog({
|
|
45809
45750
|
log_name: CLOSE_BUTTON_CLICK_LOG_NAME,
|
|
45810
45751
|
log_type: "event",
|
|
45811
45752
|
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
@@ -45815,7 +45756,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45815
45756
|
});
|
|
45816
45757
|
};
|
|
45817
45758
|
var logClosePopupShow = function() {
|
|
45818
|
-
|
|
45759
|
+
sendLog({
|
|
45819
45760
|
log_name: CLOSE_POPUP_SHOW_LOG_NAME,
|
|
45820
45761
|
log_type: "popup",
|
|
45821
45762
|
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
@@ -45824,7 +45765,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45824
45765
|
});
|
|
45825
45766
|
};
|
|
45826
45767
|
var logClosePopupCtaClick = function(confirm) {
|
|
45827
|
-
|
|
45768
|
+
sendLog({
|
|
45828
45769
|
log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
|
|
45829
45770
|
log_type: "event",
|
|
45830
45771
|
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
@@ -45847,8 +45788,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45847
45788
|
var logging = useNavigationBarLogging();
|
|
45848
45789
|
var navigation = useNavigation();
|
|
45849
45790
|
var closeConfirm = useCloseConfirm();
|
|
45850
|
-
|
|
45851
|
-
return (0, import_react192.useMemo)(function() {
|
|
45791
|
+
return (0, import_react191.useMemo)(function() {
|
|
45852
45792
|
var close = function() {
|
|
45853
45793
|
return _async_to_generator(function() {
|
|
45854
45794
|
var hasConfirmed;
|
|
@@ -45865,7 +45805,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45865
45805
|
hasConfirmed = _state.sent();
|
|
45866
45806
|
logging.closePopupCtaClick(hasConfirmed);
|
|
45867
45807
|
if (hasConfirmed) {
|
|
45868
|
-
captureExitLog(Date.now());
|
|
45869
45808
|
closeView();
|
|
45870
45809
|
}
|
|
45871
45810
|
return [
|
|
@@ -45902,8 +45841,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45902
45841
|
backEventContext,
|
|
45903
45842
|
navigation,
|
|
45904
45843
|
closeConfirm,
|
|
45905
|
-
logging
|
|
45906
|
-
captureExitLog
|
|
45844
|
+
logging
|
|
45907
45845
|
]);
|
|
45908
45846
|
}
|
|
45909
45847
|
function useMoreButtonBottomSheetLogging() {
|
|
@@ -45913,7 +45851,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45913
45851
|
app_name: Granite.appName
|
|
45914
45852
|
};
|
|
45915
45853
|
var logBottomSheetShow = function() {
|
|
45916
|
-
|
|
45854
|
+
sendLog({
|
|
45917
45855
|
log_name: BOTTOM_SHEET_LOG_NAME,
|
|
45918
45856
|
log_type: "popup",
|
|
45919
45857
|
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
@@ -45922,7 +45860,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45922
45860
|
});
|
|
45923
45861
|
};
|
|
45924
45862
|
var logBottomSheetOpen = function() {
|
|
45925
|
-
|
|
45863
|
+
sendLog({
|
|
45926
45864
|
log_name: BOTTOM_SHEET_OPEN_LOG_NAME,
|
|
45927
45865
|
log_type: "event",
|
|
45928
45866
|
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
@@ -45932,7 +45870,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45932
45870
|
});
|
|
45933
45871
|
};
|
|
45934
45872
|
var logBottomSheetCloseClick = function() {
|
|
45935
|
-
|
|
45873
|
+
sendLog({
|
|
45936
45874
|
log_name: BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME,
|
|
45937
45875
|
log_type: "event",
|
|
45938
45876
|
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
@@ -45943,7 +45881,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45943
45881
|
};
|
|
45944
45882
|
var logBottomSheetMenuClick = function(param) {
|
|
45945
45883
|
var title = param.title;
|
|
45946
|
-
|
|
45884
|
+
sendLog({
|
|
45947
45885
|
log_name: BOTTOM_SHEET_MENU_CLICK_LOG_NAME,
|
|
45948
45886
|
log_type: "event",
|
|
45949
45887
|
params: _object_spread_props(_object_spread({}, baseParams), {
|
|
@@ -45969,7 +45907,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45969
45907
|
var brandPrimaryColorRGB = hexToRGB(globals.brandPrimaryColor);
|
|
45970
45908
|
var iconBackgroundColor = brandPrimaryColorRGB ? "rgba(".concat(brandPrimaryColorRGB.join(","), ",0.1)") : adaptive.grey100;
|
|
45971
45909
|
return (0, import_jsx_runtime220.jsx)(ListRow2, {
|
|
45972
|
-
left: (0, import_jsx_runtime220.jsx)(
|
|
45910
|
+
left: (0, import_jsx_runtime220.jsx)(import_react_native201.View, {
|
|
45973
45911
|
style: {
|
|
45974
45912
|
width: 30,
|
|
45975
45913
|
height: 30,
|
|
@@ -46129,7 +46067,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46129
46067
|
function useMoreButtonBottomSheet() {
|
|
46130
46068
|
var globals = getAppsInTossGlobals();
|
|
46131
46069
|
var adaptive = useAdaptive();
|
|
46132
|
-
var _useState4 = _sliced_to_array((0,
|
|
46070
|
+
var _useState4 = _sliced_to_array((0, import_react193.useState)([]), 2), itemList = _useState4[0], setItemList = _useState4[1];
|
|
46133
46071
|
var appUpdateDialog = useAppUpdateDialog();
|
|
46134
46072
|
var logging = useMoreButtonBottomSheetLogging();
|
|
46135
46073
|
var overlay = useOverlay();
|
|
@@ -46138,7 +46076,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46138
46076
|
var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION3.BOTTOM_SHEET);
|
|
46139
46077
|
var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION3.SHARE_LIST_MENU);
|
|
46140
46078
|
var isSettingsMenuSupported = isMinVersionSupported(MIN_VERSION3.SETTINGS_MENU);
|
|
46141
|
-
(0,
|
|
46079
|
+
(0, import_react193.useEffect)(function() {
|
|
46142
46080
|
if (!isBottomSheetSupported) {
|
|
46143
46081
|
return;
|
|
46144
46082
|
}
|
|
@@ -46239,7 +46177,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46239
46177
|
function BottomSheetImpressionArea(param) {
|
|
46240
46178
|
var children = param.children;
|
|
46241
46179
|
var logging = useMoreButtonBottomSheetLogging();
|
|
46242
|
-
(0,
|
|
46180
|
+
(0, import_react193.useEffect)(function() {
|
|
46243
46181
|
logging.show();
|
|
46244
46182
|
}, [
|
|
46245
46183
|
logging
|
|
@@ -46259,9 +46197,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46259
46197
|
}
|
|
46260
46198
|
function NavigationBarImpressionArea(param) {
|
|
46261
46199
|
var children = param.children, withHomeButton = param.withHomeButton;
|
|
46262
|
-
var hasLogged = (0,
|
|
46200
|
+
var hasLogged = (0, import_react194.useRef)(false);
|
|
46263
46201
|
var logging = useNavigationBarLogging();
|
|
46264
|
-
(0,
|
|
46202
|
+
(0, import_react194.useEffect)(function() {
|
|
46265
46203
|
if (hasLogged.current === false) {
|
|
46266
46204
|
logging.navBarImpression({
|
|
46267
46205
|
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
@@ -46322,10 +46260,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46322
46260
|
type: "none"
|
|
46323
46261
|
}
|
|
46324
46262
|
}),
|
|
46325
|
-
(0, import_jsx_runtime227.jsx)(
|
|
46263
|
+
(0, import_jsx_runtime227.jsx)(import_react_native204.View, {
|
|
46326
46264
|
style: {
|
|
46327
46265
|
width: "100%",
|
|
46328
|
-
height:
|
|
46266
|
+
height: import_react_native204.Platform.OS === "ios" ? 44 : 54,
|
|
46329
46267
|
flexDirection: "row",
|
|
46330
46268
|
alignItems: "center",
|
|
46331
46269
|
justifyContent: "flex-end",
|
|
@@ -46362,8 +46300,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46362
46300
|
}
|
|
46363
46301
|
function GameAppContainer(param) {
|
|
46364
46302
|
var children = param.children;
|
|
46365
|
-
(0,
|
|
46366
|
-
if (
|
|
46303
|
+
(0, import_react182.useEffect)(function() {
|
|
46304
|
+
if (import_react_native188.Platform.OS === "ios") {
|
|
46367
46305
|
setIosSwipeGestureEnabled({
|
|
46368
46306
|
isEnabled: false
|
|
46369
46307
|
});
|
|
@@ -46403,7 +46341,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46403
46341
|
})) {
|
|
46404
46342
|
return (0, import_jsx_runtime229.jsxs)(import_jsx_runtime229.Fragment, {
|
|
46405
46343
|
children: [
|
|
46406
|
-
(0, import_jsx_runtime229.jsx)(AppEvent.Entry, {}),
|
|
46407
46344
|
(0, import_jsx_runtime229.jsx)(AppEvent.System, _object_spread({}, initialProps)),
|
|
46408
46345
|
(0, import_jsx_runtime229.jsx)(AppUpdate, {})
|
|
46409
46346
|
]
|
|
@@ -46411,8 +46348,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46411
46348
|
}
|
|
46412
46349
|
return (0, import_jsx_runtime229.jsxs)(import_jsx_runtime229.Fragment, {
|
|
46413
46350
|
children: [
|
|
46414
|
-
(0, import_jsx_runtime229.jsx)(AppEvent.StayTime, {}),
|
|
46415
|
-
(0, import_jsx_runtime229.jsx)(AppEvent.Entry, {}),
|
|
46416
46351
|
(0, import_jsx_runtime229.jsx)(AppEvent.System, _object_spread({}, initialProps)),
|
|
46417
46352
|
(0, import_jsx_runtime229.jsx)(Container, _object_spread_props(_object_spread({}, initialProps), {
|
|
46418
46353
|
children: (0, import_jsx_runtime229.jsx)(TDSProvider, {
|
|
@@ -46478,13 +46413,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46478
46413
|
function GameWebviewNavigationBar() {
|
|
46479
46414
|
var safeAreaTop = useSafeAreaTop();
|
|
46480
46415
|
var openConfirm = useDialog().openConfirm;
|
|
46481
|
-
var captureExitLog = useCaptureExitLog().captureExitLog;
|
|
46482
46416
|
var global2 = getAppsInTossGlobals();
|
|
46483
46417
|
var logging = useNavigationBarLogging();
|
|
46484
46418
|
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
46485
46419
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
46486
46420
|
var _useSafeAreaInsets2 = (0, react_native_safe_area_context_exports.useSafeAreaInsets)(), safeAreaRight = _useSafeAreaInsets2.right;
|
|
46487
|
-
var handleGameWebviewClose = (0,
|
|
46421
|
+
var handleGameWebviewClose = (0, import_react197.useCallback)(function() {
|
|
46488
46422
|
return _async_to_generator(function() {
|
|
46489
46423
|
var isConfirmed;
|
|
46490
46424
|
return __generator(this, function(_state) {
|
|
@@ -46505,7 +46439,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46505
46439
|
isConfirmed = _state.sent();
|
|
46506
46440
|
logging.closePopupCtaClick(isConfirmed);
|
|
46507
46441
|
if (isConfirmed) {
|
|
46508
|
-
captureExitLog(Date.now());
|
|
46509
46442
|
closeView();
|
|
46510
46443
|
}
|
|
46511
46444
|
return [
|
|
@@ -46515,7 +46448,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46515
46448
|
});
|
|
46516
46449
|
})();
|
|
46517
46450
|
}, [
|
|
46518
|
-
captureExitLog,
|
|
46519
46451
|
global2.brandDisplayName,
|
|
46520
46452
|
logging,
|
|
46521
46453
|
openConfirm
|
|
@@ -46527,10 +46459,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46527
46459
|
type: "none"
|
|
46528
46460
|
}
|
|
46529
46461
|
}),
|
|
46530
|
-
(0, import_jsx_runtime230.jsx)(
|
|
46462
|
+
(0, import_jsx_runtime230.jsx)(import_react_native209.View, {
|
|
46531
46463
|
style: {
|
|
46532
46464
|
width: "100%",
|
|
46533
|
-
height:
|
|
46465
|
+
height: import_react_native209.Platform.OS === "ios" ? 44 : 54,
|
|
46534
46466
|
flexDirection: "row",
|
|
46535
46467
|
alignItems: "center",
|
|
46536
46468
|
justifyContent: "flex-end",
|
|
@@ -46556,7 +46488,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46556
46488
|
var onBackButtonClick = param.onBackButtonClick, onHomeButtonClick = param.onHomeButtonClick;
|
|
46557
46489
|
var _ref, _ref1;
|
|
46558
46490
|
var globals = getAppsInTossGlobals();
|
|
46559
|
-
var captureExitLog = useCaptureExitLog().captureExitLog;
|
|
46560
46491
|
var logging = useNavigationBarLogging();
|
|
46561
46492
|
var openConfirm = useDialog().openConfirm;
|
|
46562
46493
|
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
@@ -46564,7 +46495,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46564
46495
|
var withHomeButton = (_ref = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withHomeButton) !== null && _ref !== void 0 ? _ref : false;
|
|
46565
46496
|
var withBackButton = (_ref1 = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withBackButton) !== null && _ref1 !== void 0 ? _ref1 : true;
|
|
46566
46497
|
var navigationRightButton = useNavigationBarContext().navigationRightButton;
|
|
46567
|
-
var handleClose = (0,
|
|
46498
|
+
var handleClose = (0, import_react199.useCallback)(function() {
|
|
46568
46499
|
return _async_to_generator(function() {
|
|
46569
46500
|
var isConfirmed;
|
|
46570
46501
|
return __generator(this, function(_state) {
|
|
@@ -46585,7 +46516,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46585
46516
|
isConfirmed = _state.sent();
|
|
46586
46517
|
logging.closePopupCtaClick(isConfirmed);
|
|
46587
46518
|
if (isConfirmed) {
|
|
46588
|
-
captureExitLog(Date.now());
|
|
46589
46519
|
closeView();
|
|
46590
46520
|
}
|
|
46591
46521
|
return [
|
|
@@ -46595,7 +46525,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46595
46525
|
});
|
|
46596
46526
|
})();
|
|
46597
46527
|
}, [
|
|
46598
|
-
captureExitLog,
|
|
46599
46528
|
globals.brandDisplayName,
|
|
46600
46529
|
logging,
|
|
46601
46530
|
openConfirm
|
|
@@ -46982,7 +46911,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46982
46911
|
});
|
|
46983
46912
|
return [
|
|
46984
46913
|
2,
|
|
46985
|
-
|
|
46914
|
+
sendLog(eventLogParams, {
|
|
46915
|
+
pipelines: [
|
|
46916
|
+
"core"
|
|
46917
|
+
]
|
|
46918
|
+
})
|
|
46986
46919
|
];
|
|
46987
46920
|
});
|
|
46988
46921
|
})();
|
|
@@ -47043,8 +46976,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47043
46976
|
}
|
|
47044
46977
|
function useBridgeHandler(param) {
|
|
47045
46978
|
var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap;
|
|
47046
|
-
var ref = (0,
|
|
47047
|
-
var injectedJavaScript = (0,
|
|
46979
|
+
var ref = (0, import_react200.useRef)(null);
|
|
46980
|
+
var injectedJavaScript = (0, import_react200.useMemo)(function() {
|
|
47048
46981
|
return "window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function(acc, param2) {
|
|
47049
46982
|
var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
|
|
47050
46983
|
acc[key] = typeof value === "function" ? value() : value;
|
|
@@ -47053,7 +46986,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47053
46986
|
}, [
|
|
47054
46987
|
constantHandlerMap
|
|
47055
46988
|
]);
|
|
47056
|
-
(0,
|
|
46989
|
+
(0, import_react200.useEffect)(function() {
|
|
47057
46990
|
var _ref_current;
|
|
47058
46991
|
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.injectJavaScript(injectedJavaScript);
|
|
47059
46992
|
}, [
|
|
@@ -47072,7 +47005,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47072
47005
|
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.injectJavaScript("\n window.__GRANITE_NATIVE_EMITTER.emit('".concat(functionName, "/onError/").concat(eventId, "', ").concat(serializedError, ");\n "));
|
|
47073
47006
|
};
|
|
47074
47007
|
};
|
|
47075
|
-
var $onMessage = (0,
|
|
47008
|
+
var $onMessage = (0, import_react200.useCallback)(function(e63) {
|
|
47076
47009
|
return _async_to_generator(function() {
|
|
47077
47010
|
var data, _eventListenerMap_data_functionName, handleOnEvent, handleOnError, remove, key, remove1, _ref_current;
|
|
47078
47011
|
return __generator(this, function(_state) {
|
|
@@ -47145,12 +47078,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47145
47078
|
}
|
|
47146
47079
|
function useSafeAreaInsetsEvent() {
|
|
47147
47080
|
var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
|
|
47148
|
-
(0,
|
|
47081
|
+
(0, import_react201.useEffect)(function() {
|
|
47149
47082
|
safeAreaInsetsChange.emit(insets);
|
|
47150
47083
|
}, [
|
|
47151
47084
|
insets
|
|
47152
47085
|
]);
|
|
47153
|
-
(0,
|
|
47086
|
+
(0, import_react201.useEffect)(function() {
|
|
47154
47087
|
return function() {
|
|
47155
47088
|
return safeAreaInsetsChange.clearSubscriptions();
|
|
47156
47089
|
};
|
|
@@ -47200,8 +47133,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47200
47133
|
}
|
|
47201
47134
|
}
|
|
47202
47135
|
function useWebViewHistory() {
|
|
47203
|
-
var _useReducer = _sliced_to_array((0,
|
|
47204
|
-
var onNavigationStateChange = (0,
|
|
47136
|
+
var _useReducer = _sliced_to_array((0, import_react203.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
|
|
47137
|
+
var onNavigationStateChange = (0, import_react203.useCallback)(function(param) {
|
|
47205
47138
|
var url = param.url, canGoForward2 = param.canGoForward;
|
|
47206
47139
|
dispatch({
|
|
47207
47140
|
type: "NAVIGATION_CHANGE",
|
|
@@ -47209,7 +47142,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47209
47142
|
canGoForward: canGoForward2
|
|
47210
47143
|
});
|
|
47211
47144
|
}, []);
|
|
47212
|
-
var _useMemo4 = (0,
|
|
47145
|
+
var _useMemo4 = (0, import_react203.useMemo)(function() {
|
|
47213
47146
|
var canBack = state.index > 0;
|
|
47214
47147
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
47215
47148
|
return {
|
|
@@ -47227,23 +47160,22 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47227
47160
|
};
|
|
47228
47161
|
}
|
|
47229
47162
|
function useWebBackHandler(webViewInitialURL, webViewRef) {
|
|
47230
|
-
var captureExitLog = useCaptureExitLog().captureExitLog;
|
|
47231
47163
|
var _useWebViewHistory = useWebViewHistory(), hasHistory = _useWebViewHistory.hasHistory, onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
|
|
47232
47164
|
var _useBackEventState = useBackEventState(), webBackHandlersRef = _useBackEventState.handlersRef, hasWebBackEvent = _useBackEventState.hasBackEvent, addWebBackEventListener = _useBackEventState.addEventListener, removeWebBackEventListener = _useBackEventState.removeEventListener;
|
|
47233
47165
|
var logging = useNavigationBarLogging();
|
|
47234
47166
|
var openConfirm = useDialog().openConfirm;
|
|
47235
47167
|
var global2 = getAppsInTossGlobals();
|
|
47236
|
-
var addEventListener = (0,
|
|
47168
|
+
var addEventListener = (0, import_react202.useCallback)(function(handler) {
|
|
47237
47169
|
addWebBackEventListener(handler);
|
|
47238
47170
|
}, [
|
|
47239
47171
|
addWebBackEventListener
|
|
47240
47172
|
]);
|
|
47241
|
-
var removeEventListener = (0,
|
|
47173
|
+
var removeEventListener = (0, import_react202.useCallback)(function(handler) {
|
|
47242
47174
|
removeWebBackEventListener(handler);
|
|
47243
47175
|
}, [
|
|
47244
47176
|
removeWebBackEventListener
|
|
47245
47177
|
]);
|
|
47246
|
-
var handleWebBack = (0,
|
|
47178
|
+
var handleWebBack = (0, import_react202.useCallback)(function() {
|
|
47247
47179
|
return _async_to_generator(function() {
|
|
47248
47180
|
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current, isConfirmed;
|
|
47249
47181
|
return __generator(this, function(_state) {
|
|
@@ -47298,7 +47230,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47298
47230
|
isConfirmed = _state.sent();
|
|
47299
47231
|
logging.closePopupCtaClick(isConfirmed);
|
|
47300
47232
|
if (isConfirmed) {
|
|
47301
|
-
captureExitLog(Date.now());
|
|
47302
47233
|
closeView();
|
|
47303
47234
|
}
|
|
47304
47235
|
_state.label = 3;
|
|
@@ -47310,7 +47241,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47310
47241
|
});
|
|
47311
47242
|
})();
|
|
47312
47243
|
}, [
|
|
47313
|
-
captureExitLog,
|
|
47314
47244
|
global2.brandDisplayName,
|
|
47315
47245
|
hasHistory,
|
|
47316
47246
|
hasWebBackEvent,
|
|
@@ -47319,7 +47249,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47319
47249
|
openConfirm,
|
|
47320
47250
|
webViewRef
|
|
47321
47251
|
]);
|
|
47322
|
-
var handleWebHome = (0,
|
|
47252
|
+
var handleWebHome = (0, import_react202.useCallback)(function() {
|
|
47323
47253
|
var _webViewRef_current;
|
|
47324
47254
|
logging.homeButtonClick();
|
|
47325
47255
|
if (homeEvent.hasSubscriptions()) {
|
|
@@ -47334,7 +47264,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47334
47264
|
webViewInitialURL,
|
|
47335
47265
|
webViewRef
|
|
47336
47266
|
]);
|
|
47337
|
-
return (0,
|
|
47267
|
+
return (0, import_react202.useMemo)(function() {
|
|
47338
47268
|
return {
|
|
47339
47269
|
addEventListener,
|
|
47340
47270
|
removeEventListener,
|
|
@@ -47510,7 +47440,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47510
47440
|
var batteryModePreference = param.batteryModePreference, colorPreference = param.colorPreference, locale = param.locale, navbarPreference = param.navbarPreference, pureSafeArea = param.pureSafeArea, safeArea = param.safeArea, safeAreaBottomTransparency = param.safeAreaBottomTransparency;
|
|
47511
47441
|
var platform = getPlatformOS();
|
|
47512
47442
|
var appVersion = getTossAppVersion();
|
|
47513
|
-
var fontScale = (0,
|
|
47443
|
+
var fontScale = (0, import_react_native215.useWindowDimensions)().fontScale;
|
|
47514
47444
|
var platformString = platform === "ios" ? "iPhone" : "Android phone";
|
|
47515
47445
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
47516
47446
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
@@ -47562,7 +47492,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47562
47492
|
})
|
|
47563
47493
|
};
|
|
47564
47494
|
if (getOperationalEnvironment() === "toss") {
|
|
47565
|
-
|
|
47495
|
+
sendLog(event, {
|
|
47496
|
+
pipelines: [
|
|
47497
|
+
"core"
|
|
47498
|
+
]
|
|
47499
|
+
});
|
|
47566
47500
|
} else {
|
|
47567
47501
|
console.log("[webViewDebugLog]", event);
|
|
47568
47502
|
}
|
|
@@ -47635,8 +47569,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47635
47569
|
if (!TYPES.includes(type)) {
|
|
47636
47570
|
throw new Error("Invalid WebView type: '".concat(type, "'"));
|
|
47637
47571
|
}
|
|
47638
|
-
var webViewRef = (0,
|
|
47639
|
-
var url = (0,
|
|
47572
|
+
var webViewRef = (0, import_react195.useRef)(null);
|
|
47573
|
+
var url = (0, import_react195.useMemo)(function() {
|
|
47640
47574
|
return getWebViewURL(local);
|
|
47641
47575
|
}, [
|
|
47642
47576
|
local
|
|
@@ -47648,7 +47582,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47648
47582
|
var global2 = getAppsInTossGlobals();
|
|
47649
47583
|
var navigationBarContext = useNavigationBarContext();
|
|
47650
47584
|
var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
|
|
47651
|
-
var _useState6 = _sliced_to_array((0,
|
|
47585
|
+
var _useState6 = _sliced_to_array((0, import_react195.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState6[0], setAllowsBackForwardNavigationGestures = _useState6[1];
|
|
47652
47586
|
var handler = useBridgeHandler({
|
|
47653
47587
|
onMessage,
|
|
47654
47588
|
eventListenerMap: _object_spread_props(_object_spread({}, event_bridges_exports), {
|
|
@@ -47781,8 +47715,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47781
47715
|
debugLog: function(event) {
|
|
47782
47716
|
return _async_to_generator(function() {
|
|
47783
47717
|
return __generator(this, function(_state) {
|
|
47784
|
-
|
|
47785
|
-
INTERNAL__module.tossCoreEventLog(event);
|
|
47718
|
+
sendLog(event);
|
|
47786
47719
|
return [
|
|
47787
47720
|
2
|
|
47788
47721
|
];
|
|
@@ -47791,7 +47724,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47791
47724
|
}
|
|
47792
47725
|
})
|
|
47793
47726
|
});
|
|
47794
|
-
var headerPropForExternalWebView = (0,
|
|
47727
|
+
var headerPropForExternalWebView = (0, import_react195.useMemo)(function() {
|
|
47795
47728
|
var _ref;
|
|
47796
47729
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
47797
47730
|
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
@@ -47816,12 +47749,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47816
47749
|
colorPreference: "light"
|
|
47817
47750
|
});
|
|
47818
47751
|
var refs = mergeRefs3(handler.ref, webViewRef);
|
|
47819
|
-
(0,
|
|
47752
|
+
(0, import_react195.useEffect)(function() {
|
|
47820
47753
|
var callback = function() {
|
|
47821
47754
|
webBackHandler.handleWebBack();
|
|
47822
47755
|
return true;
|
|
47823
47756
|
};
|
|
47824
|
-
var subscription =
|
|
47757
|
+
var subscription = import_react_native206.BackHandler.addEventListener("hardwareBackPress", callback);
|
|
47825
47758
|
return function() {
|
|
47826
47759
|
return subscription.remove();
|
|
47827
47760
|
};
|
|
@@ -47849,7 +47782,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47849
47782
|
webBackHandler.onNavigationStateChange(event);
|
|
47850
47783
|
},
|
|
47851
47784
|
textZoom: 100,
|
|
47852
|
-
userAgent:
|
|
47785
|
+
userAgent: import_react_native206.Platform.OS === "ios" ? userAgent : void 0,
|
|
47853
47786
|
sharedCookiesEnabled: true,
|
|
47854
47787
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
47855
47788
|
thirdPartyCookiesEnabled: true,
|
|
@@ -47859,7 +47792,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47859
47792
|
handler.injectedJavaScript,
|
|
47860
47793
|
t53
|
|
47861
47794
|
].join("\n"),
|
|
47862
|
-
decelerationRate:
|
|
47795
|
+
decelerationRate: import_react_native206.Platform.OS === "ios" ? 1 : void 0,
|
|
47863
47796
|
allowsBackForwardNavigationGestures,
|
|
47864
47797
|
onShouldStartLoadWithRequest: function(event) {
|
|
47865
47798
|
try {
|
|
@@ -47871,7 +47804,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47871
47804
|
return true;
|
|
47872
47805
|
} else {
|
|
47873
47806
|
var _convertIntentURL;
|
|
47874
|
-
|
|
47807
|
+
import_react_native206.Linking.openURL((_convertIntentURL = convertIntentURL(url2)) !== null && _convertIntentURL !== void 0 ? _convertIntentURL : url2.href);
|
|
47875
47808
|
return false;
|
|
47876
47809
|
}
|
|
47877
47810
|
} catch (error) {
|
|
@@ -47892,7 +47825,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47892
47825
|
onRenderProcessGone: handleWebViewProcessDidTerminate
|
|
47893
47826
|
}));
|
|
47894
47827
|
}
|
|
47895
|
-
var import_react_native184, import_react179, import_react180, import_react181, import_react182,
|
|
47828
|
+
var import_react_native184, import_react179, import_react180, import_jsx_runtime216, import_react181, import_jsx_runtime217, import_react182, import_react_native188, import_react183, import_react_native190, import_react184, import_react185, import_react_native193, import_react186, import_react187, import_react188, import_react189, import_jsx_runtime218, import_jsx_runtime219, import_react190, import_react_native196, import_react191, import_react192, import_react193, import_react_native201, import_jsx_runtime220, import_jsx_runtime221, import_jsx_runtime222, import_jsx_runtime223, import_jsx_runtime224, import_react194, import_jsx_runtime225, import_jsx_runtime226, import_react_native204, import_jsx_runtime227, import_jsx_runtime228, import_jsx_runtime229, import_react195, import_react_native206, import_react196, import_react_native207, import_react197, import_react_native209, import_jsx_runtime230, import_jsx_runtime231, import_react198, import_react199, import_jsx_runtime232, import_jsx_runtime233, import_react200, import_react201, import_react202, import_react203, import_react_native215, import_react204, import_react205, import_jsx_runtime234, import_react206, import_react_native218, import_react207, import_react_native219, import_jsx_runtime235, import_react208, import_react_native220, import_jsx_runtime236, import_jsx_runtime237, __GlobalEventDeduplicator, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __hasOwnProp2, __copyProps2, __reExport2, env, DEFAULT_PIPELINES, AppEvent, UPDATE_SCHEME, NavigationBarContext, GAME_PROFILE_WEBVIEW_URL, GAME_MIN_VERSION, PLAYSTORE_LINK, APPSTORE_LINK, getMarketLink, UPDATE_DIALOG_SCHEMA_ID, UPDATE_DIALOG_LOG_NAME, UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID, UPDATE_DIALOG_CTA_CLICK_LOG_NAME, DEFAULT_ERROR, useErrorAlert, INTERNAL__onVisibilityChangedByTransparentServiceWeb, openTransparentWebView, useTransparentWebview, useGameProfileToast, useGameCenterProfile, Z_INDEX, GameInitializer, overlayStyle, EventEmitter, eventEmitter, homeEvent, safeAreaInsetsChange, NAVI_BAR_IMPRESSION_SCHEMA_ID, NAVI_BAR_IMPRESSION_LOG_NAME, CLOSE_POPUP_SHOW_SCHEMA_ID, CLOSE_POPUP_SHOW_LOG_NAME, CLOSE_BUTTON_CLICK_SCHEMA_ID, CLOSE_BUTTON_CLICK_LOG_NAME, CLOSE_POPUP_CTA_CLICK_SCHEMA_ID, CLOSE_POPUP_CTA_CLICK_LOG_NAME, HOME_BUTTON_CLICK_SCHEMA_ID, HOME_BUTTON_CLICK_LOG_NAME, BOTTOM_SHEET_SCHEMA_ID, BOTTOM_SHEET_LOG_NAME, BOTTOM_SHEET_OPEN_SCHEMA_ID, BOTTOM_SHEET_OPEN_LOG_NAME, BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID, BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME, BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID, BOTTOM_SHEET_MENU_CLICK_LOG_NAME, iconNameRegExp, iconURLRegExp, SHARE_SCHEME_REFERRER, APP_SHARE_MENU_INFO, APP_BRIDGE_METHOD_NAME, MIN_VERSION3, RNNavigationBar, bridge_entry_exports, AppsInToss, GameWebView, PartnerWebView, INVALID_AD_GROUP_ID_ERROR_MESSAGE, sessionId, ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION, IOS_FETCH_TOSS_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE3, ENVIRONMENT3, OPERATIONAL_ENVIRONMENT, OS, APP_VER, ALPHA_EVENT_TRACKER_HTTP_ENDPOINT, LIVE_EVENT_TRACKER_HTTP_ENDPOINT, INTEGRATED_AD_SDK_VERSION, ANDROID_INTEGRATED_AD_SUPPORTED_VERSION, IOS_INTEGRATED_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE22, INTG_AD_ADM_FALLBACK_RID_MAP, loadFullScreenAd, loadFullScreenAdForWeb, globalEventListenerMap, INITIAL_STATE, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId2, getReferrer22, trackScreen, operationalEnvironment, TYPES, WEBVIEW_TYPES, ERROR_CODES, _obj6, ERROR_MESSAGES, API_RESULT_ERROR_MAP, AD_STATUS_ERROR_MAP, GlobalEventDeduplicator, globalEventDeduplicator, styles3, styles22, styles32, Analytics2;
|
|
47896
47829
|
var init_dist8 = __esm({
|
|
47897
47830
|
"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.js"() {
|
|
47898
47831
|
"use strict";
|
|
@@ -47917,69 +47850,63 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47917
47850
|
init_src3();
|
|
47918
47851
|
init_esm7();
|
|
47919
47852
|
import_react_native184 = __toESM(require_react_native(), 1);
|
|
47920
|
-
init_dist5();
|
|
47921
47853
|
init_src3();
|
|
47922
47854
|
import_react179 = __toESM(require_react(), 1);
|
|
47855
|
+
init_src3();
|
|
47923
47856
|
init_dist5();
|
|
47924
47857
|
init_src3();
|
|
47925
47858
|
import_react180 = __toESM(require_react(), 1);
|
|
47926
|
-
init_src3();
|
|
47927
|
-
import_react181 = __toESM(require_react(), 1);
|
|
47928
|
-
init_src3();
|
|
47929
|
-
init_src3();
|
|
47930
|
-
import_react182 = __toESM(require_react(), 1);
|
|
47931
47859
|
import_jsx_runtime216 = __toESM(require_jsx_runtime(), 1);
|
|
47932
|
-
|
|
47860
|
+
import_react181 = __toESM(require_react(), 1);
|
|
47933
47861
|
import_jsx_runtime217 = __toESM(require_jsx_runtime(), 1);
|
|
47934
47862
|
init_dist5();
|
|
47935
|
-
|
|
47936
|
-
|
|
47863
|
+
import_react182 = __toESM(require_react(), 1);
|
|
47864
|
+
import_react_native188 = __toESM(require_react_native(), 1);
|
|
47937
47865
|
init_dist5();
|
|
47938
47866
|
init_src3();
|
|
47939
47867
|
init_esm7();
|
|
47940
47868
|
init_dist6();
|
|
47941
|
-
|
|
47942
|
-
|
|
47943
|
-
init_dist5();
|
|
47869
|
+
import_react183 = __toESM(require_react(), 1);
|
|
47870
|
+
import_react_native190 = __toESM(require_react_native(), 1);
|
|
47944
47871
|
init_src3();
|
|
47945
47872
|
init_esm7();
|
|
47946
|
-
|
|
47947
|
-
|
|
47873
|
+
import_react184 = __toESM(require_react(), 1);
|
|
47874
|
+
init_src3();
|
|
47875
|
+
import_react185 = __toESM(require_react(), 1);
|
|
47876
|
+
import_react_native193 = __toESM(require_react_native(), 1);
|
|
47948
47877
|
init_dist5();
|
|
47949
|
-
|
|
47878
|
+
import_react186 = __toESM(require_react(), 1);
|
|
47950
47879
|
init_src3();
|
|
47951
47880
|
init_esm7();
|
|
47881
|
+
import_react187 = __toESM(require_react(), 1);
|
|
47952
47882
|
import_react188 = __toESM(require_react(), 1);
|
|
47953
|
-
import_react189 = __toESM(require_react(), 1);
|
|
47954
47883
|
init_src3();
|
|
47955
47884
|
init_dist5();
|
|
47956
47885
|
init_esm7();
|
|
47957
47886
|
init_private2();
|
|
47958
|
-
|
|
47887
|
+
import_react189 = __toESM(require_react(), 1);
|
|
47959
47888
|
import_jsx_runtime218 = __toESM(require_jsx_runtime(), 1);
|
|
47960
47889
|
import_jsx_runtime219 = __toESM(require_jsx_runtime(), 1);
|
|
47961
47890
|
init_private2();
|
|
47962
|
-
|
|
47963
|
-
|
|
47891
|
+
import_react190 = __toESM(require_react(), 1);
|
|
47892
|
+
import_react_native196 = __toESM(require_react_native(), 1);
|
|
47964
47893
|
init_src3();
|
|
47965
|
-
|
|
47894
|
+
import_react191 = __toESM(require_react(), 1);
|
|
47966
47895
|
init_esm7();
|
|
47967
47896
|
init_dist6();
|
|
47968
|
-
|
|
47969
|
-
init_dist5();
|
|
47897
|
+
import_react192 = __toESM(require_react(), 1);
|
|
47970
47898
|
init_src3();
|
|
47971
47899
|
init_dist5();
|
|
47972
47900
|
init_src3();
|
|
47973
47901
|
init_esm7();
|
|
47974
47902
|
init_private2();
|
|
47975
|
-
|
|
47903
|
+
import_react193 = __toESM(require_react(), 1);
|
|
47976
47904
|
init_dist5();
|
|
47977
47905
|
init_src3();
|
|
47978
47906
|
init_esm7();
|
|
47979
47907
|
init_esm7();
|
|
47980
47908
|
init_private2();
|
|
47981
|
-
|
|
47982
|
-
init_dist5();
|
|
47909
|
+
import_react_native201 = __toESM(require_react_native(), 1);
|
|
47983
47910
|
init_src3();
|
|
47984
47911
|
import_jsx_runtime220 = __toESM(require_jsx_runtime(), 1);
|
|
47985
47912
|
import_jsx_runtime221 = __toESM(require_jsx_runtime(), 1);
|
|
@@ -47989,13 +47916,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47989
47916
|
init_src3();
|
|
47990
47917
|
import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
|
|
47991
47918
|
import_jsx_runtime224 = __toESM(require_jsx_runtime(), 1);
|
|
47992
|
-
|
|
47919
|
+
import_react194 = __toESM(require_react(), 1);
|
|
47993
47920
|
import_jsx_runtime225 = __toESM(require_jsx_runtime(), 1);
|
|
47994
47921
|
import_jsx_runtime226 = __toESM(require_jsx_runtime(), 1);
|
|
47995
47922
|
init_react_native_safe_area_context();
|
|
47996
47923
|
init_esm7();
|
|
47997
47924
|
init_private2();
|
|
47998
|
-
|
|
47925
|
+
import_react_native204 = __toESM(require_react_native(), 1);
|
|
47999
47926
|
import_jsx_runtime227 = __toESM(require_jsx_runtime(), 1);
|
|
48000
47927
|
init_async_bridges();
|
|
48001
47928
|
init_constant_bridges2();
|
|
@@ -48011,28 +47938,28 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48011
47938
|
init_src3();
|
|
48012
47939
|
init_esm7();
|
|
48013
47940
|
init_private2();
|
|
48014
|
-
|
|
48015
|
-
|
|
47941
|
+
import_react195 = __toESM(require_react(), 1);
|
|
47942
|
+
import_react_native206 = __toESM(require_react_native(), 1);
|
|
48016
47943
|
init_dist5();
|
|
48017
47944
|
init_react_native_webview();
|
|
48018
|
-
|
|
48019
|
-
|
|
47945
|
+
import_react196 = __toESM(require_react(), 1);
|
|
47946
|
+
import_react_native207 = __toESM(require_react_native(), 1);
|
|
48020
47947
|
init_react_native_safe_area_context();
|
|
48021
47948
|
init_src3();
|
|
48022
47949
|
init_esm7();
|
|
48023
47950
|
init_private2();
|
|
48024
47951
|
init_dist6();
|
|
48025
|
-
|
|
48026
|
-
|
|
47952
|
+
import_react197 = __toESM(require_react(), 1);
|
|
47953
|
+
import_react_native209 = __toESM(require_react_native(), 1);
|
|
48027
47954
|
import_jsx_runtime230 = __toESM(require_jsx_runtime(), 1);
|
|
48028
47955
|
import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
|
|
48029
47956
|
init_react_native_webview();
|
|
48030
|
-
|
|
47957
|
+
import_react198 = __toESM(require_react(), 1);
|
|
48031
47958
|
init_src3();
|
|
48032
47959
|
init_esm7();
|
|
48033
47960
|
init_private2();
|
|
48034
47961
|
init_dist6();
|
|
48035
|
-
|
|
47962
|
+
import_react199 = __toESM(require_react(), 1);
|
|
48036
47963
|
import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
|
|
48037
47964
|
import_jsx_runtime233 = __toESM(require_jsx_runtime(), 1);
|
|
48038
47965
|
init_dist5();
|
|
@@ -48040,21 +47967,20 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48040
47967
|
init_src3();
|
|
48041
47968
|
init_dist5();
|
|
48042
47969
|
init_src3();
|
|
48043
|
-
init_dist5();
|
|
48044
47970
|
init_src3();
|
|
48045
|
-
|
|
47971
|
+
import_react200 = __toESM(require_react(), 1);
|
|
48046
47972
|
init_react_native_safe_area_context();
|
|
48047
|
-
|
|
47973
|
+
import_react201 = __toESM(require_react(), 1);
|
|
48048
47974
|
init_src3();
|
|
48049
47975
|
init_esm7();
|
|
48050
47976
|
init_dist6();
|
|
47977
|
+
import_react202 = __toESM(require_react(), 1);
|
|
48051
47978
|
import_react203 = __toESM(require_react(), 1);
|
|
48052
|
-
import_react204 = __toESM(require_react(), 1);
|
|
48053
47979
|
init_dist5();
|
|
48054
|
-
|
|
47980
|
+
import_react_native215 = __toESM(require_react_native(), 1);
|
|
48055
47981
|
init_dist5();
|
|
47982
|
+
import_react204 = __toESM(require_react(), 1);
|
|
48056
47983
|
import_react205 = __toESM(require_react(), 1);
|
|
48057
|
-
import_react206 = __toESM(require_react(), 1);
|
|
48058
47984
|
init_dist5();
|
|
48059
47985
|
init_src3();
|
|
48060
47986
|
init_esm7();
|
|
@@ -48065,13 +47991,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48065
47991
|
init_dist5();
|
|
48066
47992
|
init_dist3();
|
|
48067
47993
|
init_dist3();
|
|
47994
|
+
import_react206 = __toESM(require_react(), 1);
|
|
47995
|
+
import_react_native218 = __toESM(require_react_native(), 1);
|
|
48068
47996
|
import_react207 = __toESM(require_react(), 1);
|
|
48069
47997
|
import_react_native219 = __toESM(require_react_native(), 1);
|
|
47998
|
+
import_jsx_runtime235 = __toESM(require_jsx_runtime(), 1);
|
|
48070
47999
|
import_react208 = __toESM(require_react(), 1);
|
|
48071
48000
|
import_react_native220 = __toESM(require_react_native(), 1);
|
|
48072
|
-
import_jsx_runtime235 = __toESM(require_jsx_runtime(), 1);
|
|
48073
|
-
import_react209 = __toESM(require_react(), 1);
|
|
48074
|
-
import_react_native221 = __toESM(require_react_native(), 1);
|
|
48075
48001
|
import_jsx_runtime236 = __toESM(require_jsx_runtime(), 1);
|
|
48076
48002
|
import_jsx_runtime237 = __toESM(require_jsx_runtime(), 1);
|
|
48077
48003
|
__defProp2 = Object.defineProperty;
|
|
@@ -48124,16 +48050,15 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48124
48050
|
return global.__granite.app.name;
|
|
48125
48051
|
}
|
|
48126
48052
|
};
|
|
48127
|
-
|
|
48128
|
-
|
|
48129
|
-
|
|
48053
|
+
DEFAULT_PIPELINES = [
|
|
48054
|
+
"core",
|
|
48055
|
+
"partner"
|
|
48056
|
+
];
|
|
48130
48057
|
AppEvent = {
|
|
48131
|
-
|
|
48132
|
-
System: SystemAppEvent,
|
|
48133
|
-
StayTime: StayTimeAppEvent
|
|
48058
|
+
System: SystemAppEvent
|
|
48134
48059
|
};
|
|
48135
48060
|
UPDATE_SCHEME = "servicetoss://update/forced/j?updateType=required";
|
|
48136
|
-
NavigationBarContext = /* @__PURE__ */ (0,
|
|
48061
|
+
NavigationBarContext = /* @__PURE__ */ (0, import_react181.createContext)(null);
|
|
48137
48062
|
GAME_PROFILE_WEBVIEW_URL = "servicetoss://game-center/profile";
|
|
48138
48063
|
GAME_MIN_VERSION = {
|
|
48139
48064
|
android: "5.232.0",
|
|
@@ -48142,7 +48067,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48142
48067
|
PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
|
|
48143
48068
|
APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
|
|
48144
48069
|
getMarketLink = function() {
|
|
48145
|
-
return
|
|
48070
|
+
return import_react_native193.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
|
|
48146
48071
|
};
|
|
48147
48072
|
UPDATE_DIALOG_SCHEMA_ID = 1634992;
|
|
48148
48073
|
UPDATE_DIALOG_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update";
|
|
@@ -48154,7 +48079,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48154
48079
|
};
|
|
48155
48080
|
useErrorAlert = function() {
|
|
48156
48081
|
var openAlert = useDialog().openAlert;
|
|
48157
|
-
var openErrorAlert = (0,
|
|
48082
|
+
var openErrorAlert = (0, import_react187.useCallback)(function() {
|
|
48158
48083
|
return _async_to_generator(function() {
|
|
48159
48084
|
return __generator(this, function(_state) {
|
|
48160
48085
|
switch (_state.label) {
|
|
@@ -48210,9 +48135,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48210
48135
|
openURL(url.toString());
|
|
48211
48136
|
};
|
|
48212
48137
|
useTransparentWebview = function() {
|
|
48213
|
-
var _useState2 = _sliced_to_array((0,
|
|
48138
|
+
var _useState2 = _sliced_to_array((0, import_react188.useState)(false), 2), isWebviewLoading = _useState2[0], setIsWebviewLoading = _useState2[1];
|
|
48214
48139
|
var _useErrorAlert = useErrorAlert(), openErrorAlert = _useErrorAlert.open;
|
|
48215
|
-
var _openTransparentWebview = (0,
|
|
48140
|
+
var _openTransparentWebview = (0, import_react188.useCallback)(function(param) {
|
|
48216
48141
|
var webUrl = param.webUrl, onClose = param.onClose, onError = param.onError;
|
|
48217
48142
|
if (isWebviewLoading) {
|
|
48218
48143
|
return;
|
|
@@ -48252,7 +48177,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48252
48177
|
};
|
|
48253
48178
|
useGameProfileToast = function() {
|
|
48254
48179
|
var overlay = useOverlay();
|
|
48255
|
-
var openGameProfileToast = (0,
|
|
48180
|
+
var openGameProfileToast = (0, import_react189.useCallback)(function(nickname, profileImageUri) {
|
|
48256
48181
|
return new Promise(function(resolve) {
|
|
48257
48182
|
overlay.open(function(param) {
|
|
48258
48183
|
var isOpen = param.isOpen, close = param.close, exit = param.exit;
|
|
@@ -48291,16 +48216,16 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48291
48216
|
};
|
|
48292
48217
|
};
|
|
48293
48218
|
useGameCenterProfile = function() {
|
|
48294
|
-
var _useState3 = _sliced_to_array((0,
|
|
48295
|
-
var _useState31 = _sliced_to_array((0,
|
|
48296
|
-
var _useState32 = _sliced_to_array((0,
|
|
48219
|
+
var _useState3 = _sliced_to_array((0, import_react186.useState)(void 0), 2), profileData = _useState3[0], setProfileData = _useState3[1];
|
|
48220
|
+
var _useState31 = _sliced_to_array((0, import_react186.useState)(true), 2), isProfileDataLoading = _useState31[0], setIsProfileDataLoading = _useState31[1];
|
|
48221
|
+
var _useState32 = _sliced_to_array((0, import_react186.useState)(false), 2), isProfileDataRefetching = _useState32[0], setIsProfileDataRefetching = _useState32[1];
|
|
48297
48222
|
var shouldShowProfileLoadingOverlay = isProfileDataLoading || isProfileDataRefetching;
|
|
48298
48223
|
var shouldShowProfileNotFoundOverlay = (profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && !isProfileDataRefetching;
|
|
48299
48224
|
var canShowBottomSheetOrToast = !isProfileDataLoading;
|
|
48300
48225
|
var openGameProfileToast = useGameProfileToast().openGameProfileToast;
|
|
48301
48226
|
var _useErrorAlert = useErrorAlert(), openErrorAlert = _useErrorAlert.open;
|
|
48302
48227
|
var _useTransparentWebview = useTransparentWebview(), openTransparentWebView2 = _useTransparentWebview.open;
|
|
48303
|
-
var fetchProfileData = (0,
|
|
48228
|
+
var fetchProfileData = (0, import_react186.useCallback)(function() {
|
|
48304
48229
|
return _async_to_generator(function() {
|
|
48305
48230
|
var data, _16;
|
|
48306
48231
|
return __generator(this, function(_state) {
|
|
@@ -48342,7 +48267,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48342
48267
|
}, [
|
|
48343
48268
|
openErrorAlert
|
|
48344
48269
|
]);
|
|
48345
|
-
var refetchProfileData = (0,
|
|
48270
|
+
var refetchProfileData = (0, import_react186.useCallback)(function() {
|
|
48346
48271
|
return _async_to_generator(function() {
|
|
48347
48272
|
var data, _16;
|
|
48348
48273
|
return __generator(this, function(_state) {
|
|
@@ -48389,7 +48314,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48389
48314
|
openErrorAlert,
|
|
48390
48315
|
openGameProfileToast
|
|
48391
48316
|
]);
|
|
48392
|
-
var openProfileWebview = (0,
|
|
48317
|
+
var openProfileWebview = (0, import_react186.useCallback)(function() {
|
|
48393
48318
|
openTransparentWebView2({
|
|
48394
48319
|
webUrl: "".concat(GAME_PROFILE_WEBVIEW_URL, "?appName=").concat(getAppName(), "&referrer=appsintoss.").concat(getAppName()),
|
|
48395
48320
|
onClose: function() {
|
|
@@ -48428,12 +48353,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48428
48353
|
GameInitializer = function(param) {
|
|
48429
48354
|
var children = param.children;
|
|
48430
48355
|
var _useGameCenterProfile = useGameCenterProfile(), profileData = _useGameCenterProfile.profileData, shouldShowProfileLoadingOverlay = _useGameCenterProfile.shouldShowProfileLoadingOverlay, shouldShowProfileNotFoundOverlay = _useGameCenterProfile.shouldShowProfileNotFoundOverlay, canShowBottomSheetOrToast = _useGameCenterProfile.canShowBottomSheetOrToast, openProfileWebview = _useGameCenterProfile.openProfileWebview, openGameProfileToast = _useGameCenterProfile.openGameProfileToast, fetchProfileData = _useGameCenterProfile.fetchProfileData;
|
|
48431
|
-
var isCompletedFlow = (0,
|
|
48356
|
+
var isCompletedFlow = (0, import_react183.useRef)(false);
|
|
48432
48357
|
var _useAppUpdateDialog = useAppUpdateDialog(), openAppUpdateDialog = _useAppUpdateDialog.open;
|
|
48433
|
-
(0,
|
|
48358
|
+
(0, import_react183.useEffect)(function() {
|
|
48434
48359
|
fetchProfileData();
|
|
48435
48360
|
}, []);
|
|
48436
|
-
(0,
|
|
48361
|
+
(0, import_react183.useEffect)(function() {
|
|
48437
48362
|
var handleGameProfileFlow = function() {
|
|
48438
48363
|
return _async_to_generator(function() {
|
|
48439
48364
|
return __generator(this, function(_state) {
|
|
@@ -48486,14 +48411,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48486
48411
|
if (!isMinVersionSupported(GAME_MIN_VERSION)) {
|
|
48487
48412
|
return (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
|
|
48488
48413
|
children: [
|
|
48489
|
-
(0, import_jsx_runtime219.jsx)(
|
|
48414
|
+
(0, import_jsx_runtime219.jsx)(import_react_native190.View, {
|
|
48490
48415
|
style: {
|
|
48491
48416
|
flex: 1,
|
|
48492
48417
|
position: "relative"
|
|
48493
48418
|
},
|
|
48494
48419
|
children
|
|
48495
48420
|
}),
|
|
48496
|
-
(0, import_jsx_runtime219.jsx)(
|
|
48421
|
+
(0, import_jsx_runtime219.jsx)(import_react_native190.Pressable, {
|
|
48497
48422
|
style: _object_spread({}, overlayStyle),
|
|
48498
48423
|
onPress: function() {
|
|
48499
48424
|
openAppUpdateDialog({
|
|
@@ -48510,14 +48435,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48510
48435
|
if (shouldShowProfileLoadingOverlay) {
|
|
48511
48436
|
return (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
|
|
48512
48437
|
children: [
|
|
48513
|
-
(0, import_jsx_runtime219.jsx)(
|
|
48438
|
+
(0, import_jsx_runtime219.jsx)(import_react_native190.View, {
|
|
48514
48439
|
style: {
|
|
48515
48440
|
flex: 1,
|
|
48516
48441
|
position: "relative"
|
|
48517
48442
|
},
|
|
48518
48443
|
children
|
|
48519
48444
|
}),
|
|
48520
|
-
(0, import_jsx_runtime219.jsx)(
|
|
48445
|
+
(0, import_jsx_runtime219.jsx)(import_react_native190.View, {
|
|
48521
48446
|
style: _object_spread_props(_object_spread({}, overlayStyle), {
|
|
48522
48447
|
justifyContent: "center",
|
|
48523
48448
|
alignItems: "center",
|
|
@@ -48534,14 +48459,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48534
48459
|
if (shouldShowProfileNotFoundOverlay) {
|
|
48535
48460
|
return (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
|
|
48536
48461
|
children: [
|
|
48537
|
-
(0, import_jsx_runtime219.jsx)(
|
|
48462
|
+
(0, import_jsx_runtime219.jsx)(import_react_native190.View, {
|
|
48538
48463
|
style: {
|
|
48539
48464
|
flex: 1,
|
|
48540
48465
|
position: "relative"
|
|
48541
48466
|
},
|
|
48542
48467
|
children
|
|
48543
48468
|
}),
|
|
48544
|
-
shouldShowProfileNotFoundOverlay && (0, import_jsx_runtime219.jsx)(
|
|
48469
|
+
shouldShowProfileNotFoundOverlay && (0, import_jsx_runtime219.jsx)(import_react_native190.Pressable, {
|
|
48545
48470
|
style: _object_spread({}, overlayStyle),
|
|
48546
48471
|
onPress: function() {
|
|
48547
48472
|
openProfileWebview();
|
|
@@ -48551,7 +48476,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48551
48476
|
});
|
|
48552
48477
|
}
|
|
48553
48478
|
return (0, import_jsx_runtime219.jsx)(import_jsx_runtime219.Fragment, {
|
|
48554
|
-
children: (0, import_jsx_runtime219.jsx)(
|
|
48479
|
+
children: (0, import_jsx_runtime219.jsx)(import_react_native190.View, {
|
|
48555
48480
|
style: {
|
|
48556
48481
|
flex: 1,
|
|
48557
48482
|
position: "relative"
|
|
@@ -48679,9 +48604,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48679
48604
|
AppsInToss = {
|
|
48680
48605
|
registerApp
|
|
48681
48606
|
};
|
|
48682
|
-
GameWebView = /* @__PURE__ */ (0,
|
|
48683
|
-
(0,
|
|
48684
|
-
if (
|
|
48607
|
+
GameWebView = /* @__PURE__ */ (0, import_react196.forwardRef)(function GameWebView2(props, ref) {
|
|
48608
|
+
(0, import_react196.useEffect)(function() {
|
|
48609
|
+
if (import_react_native207.Platform.OS === "ios") {
|
|
48685
48610
|
setIosSwipeGestureEnabled({
|
|
48686
48611
|
isEnabled: false
|
|
48687
48612
|
});
|
|
@@ -48706,7 +48631,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48706
48631
|
]
|
|
48707
48632
|
});
|
|
48708
48633
|
});
|
|
48709
|
-
PartnerWebView = /* @__PURE__ */ (0,
|
|
48634
|
+
PartnerWebView = /* @__PURE__ */ (0, import_react198.forwardRef)(function PartnerWebViewScreen(_03, _1) {
|
|
48710
48635
|
var _ref = [
|
|
48711
48636
|
_03,
|
|
48712
48637
|
_1
|
|
@@ -48970,7 +48895,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48970
48895
|
return _GlobalEventDeduplicator;
|
|
48971
48896
|
}(), __GlobalEventDeduplicator.MAX_EVENTS = 1e4, __GlobalEventDeduplicator);
|
|
48972
48897
|
globalEventDeduplicator = new GlobalEventDeduplicator();
|
|
48973
|
-
styles3 =
|
|
48898
|
+
styles3 = import_react_native219.StyleSheet.create({
|
|
48974
48899
|
pressable: {
|
|
48975
48900
|
width: "100%"
|
|
48976
48901
|
},
|
|
@@ -49008,7 +48933,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
49008
48933
|
height: 36,
|
|
49009
48934
|
borderRadius: 18
|
|
49010
48935
|
},
|
|
49011
|
-
logoOverlay: _object_spread_props(_object_spread({},
|
|
48936
|
+
logoOverlay: _object_spread_props(_object_spread({}, import_react_native219.StyleSheet.absoluteFillObject), {
|
|
49012
48937
|
borderWidth: 1,
|
|
49013
48938
|
borderRadius: 18
|
|
49014
48939
|
}),
|
|
@@ -49070,7 +48995,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
49070
48995
|
fontWeight: "600",
|
|
49071
48996
|
lineHeight: 22.5
|
|
49072
48997
|
},
|
|
49073
|
-
cardOverlay: _object_spread_props(_object_spread({},
|
|
48998
|
+
cardOverlay: _object_spread_props(_object_spread({}, import_react_native219.StyleSheet.absoluteFillObject), {
|
|
49074
48999
|
borderWidth: 2,
|
|
49075
49000
|
borderRadius: 12,
|
|
49076
49001
|
pointerEvents: "none"
|
|
@@ -49081,7 +49006,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
49081
49006
|
fontWeight: "400"
|
|
49082
49007
|
}
|
|
49083
49008
|
});
|
|
49084
|
-
styles22 =
|
|
49009
|
+
styles22 = import_react_native220.StyleSheet.create({
|
|
49085
49010
|
pressable: {
|
|
49086
49011
|
width: "100%"
|
|
49087
49012
|
},
|
|
@@ -49126,7 +49051,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
49126
49051
|
width: "100%"
|
|
49127
49052
|
}
|
|
49128
49053
|
});
|
|
49129
|
-
styles32 =
|
|
49054
|
+
styles32 = import_react_native218.StyleSheet.create({
|
|
49130
49055
|
impressionArea: {
|
|
49131
49056
|
width: "100%"
|
|
49132
49057
|
},
|
|
@@ -49161,7 +49086,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
49161
49086
|
}
|
|
49162
49087
|
});
|
|
49163
49088
|
function Index() {
|
|
49164
|
-
return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
|
|
49089
|
+
return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(import_react_native221.View, {
|
|
49165
49090
|
style: {
|
|
49166
49091
|
flex: 1
|
|
49167
49092
|
},
|
|
@@ -49183,13 +49108,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
49183
49108
|
})
|
|
49184
49109
|
});
|
|
49185
49110
|
}
|
|
49186
|
-
var import_jsx_runtime238,
|
|
49111
|
+
var import_jsx_runtime238, import_react_native221;
|
|
49187
49112
|
var init_pages = __esm({
|
|
49188
49113
|
"react-native/pages/index.tsx"() {
|
|
49189
49114
|
"use strict";
|
|
49190
49115
|
import_jsx_runtime238 = __toESM(require_jsx_runtime(), 1);
|
|
49191
49116
|
init_dist8();
|
|
49192
|
-
|
|
49117
|
+
import_react_native221 = __toESM(require_react_native(), 1);
|
|
49193
49118
|
}
|
|
49194
49119
|
});
|
|
49195
49120
|
|