@apps-in-toss/web-framework 1.2.2 → 1.3.0
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/config/index.d.ts +1 -1
- package/dist/prebuilt/dev.android.js +1137 -1010
- package/dist/prebuilt/dev.ios.js +1135 -1008
- package/dist/prebuilt/prod.android.js +502 -322
- package/dist/prebuilt/prod.ios.js +502 -322
- package/package.json +8 -8
- package/dist/cli/chunk-AZQN2M6D.js +0 -63
- package/dist/cli/chunk-PT6B3KQJ.js +0 -209904
- package/dist/cli/lib-GNFDOQZX.js +0 -1007
- package/dist/cli/typescript-WPGJO2BO.js +0 -6
- package/dist/prebuilt/prod.json +0 -14
|
@@ -45386,19 +45386,68 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45386
45386
|
var controller = useBridge();
|
|
45387
45387
|
var appsInTossGlobals = getAppsInTossGlobals();
|
|
45388
45388
|
(0, import_react213.useEffect)(function() {
|
|
45389
|
-
var
|
|
45389
|
+
var isGameApp = appsInTossGlobals.webViewType === "game" || appsInTossGlobals.appType === "game";
|
|
45390
|
+
controller.open({
|
|
45390
45391
|
serviceName: appsInTossGlobals.brandDisplayName,
|
|
45391
45392
|
icon: toIcon(appsInTossGlobals.brandIcon),
|
|
45392
45393
|
color: appsInTossGlobals.brandPrimaryColor,
|
|
45393
|
-
colorMode: appsInTossGlobals.brandBridgeColorMode
|
|
45394
|
-
};
|
|
45395
|
-
controller.open(_object_spread_props(_object_spread({}, commonProps), {
|
|
45394
|
+
colorMode: isGameApp ? "inverted" : appsInTossGlobals.brandBridgeColorMode,
|
|
45396
45395
|
onExited: function() {
|
|
45397
45396
|
appsInTossEvent.emit("entryMessageExited", void 0);
|
|
45398
45397
|
}
|
|
45399
|
-
})
|
|
45398
|
+
});
|
|
45400
45399
|
}, []);
|
|
45401
45400
|
}
|
|
45401
|
+
function useHardwareBackPress(handler) {
|
|
45402
|
+
(0, import_react217.useEffect)(function() {
|
|
45403
|
+
var handleBackPress = function() {
|
|
45404
|
+
handler();
|
|
45405
|
+
return true;
|
|
45406
|
+
};
|
|
45407
|
+
import_react_native210.BackHandler.addEventListener("hardwareBackPress", handleBackPress);
|
|
45408
|
+
return function() {
|
|
45409
|
+
return import_react_native210.BackHandler.removeEventListener("hardwareBackPress", handleBackPress);
|
|
45410
|
+
};
|
|
45411
|
+
}, [
|
|
45412
|
+
handler
|
|
45413
|
+
]);
|
|
45414
|
+
}
|
|
45415
|
+
function useCloseConfirm() {
|
|
45416
|
+
var brandDisplayName = getAppsInTossGlobals().brandDisplayName;
|
|
45417
|
+
var openConfirm = useDialog().openConfirm;
|
|
45418
|
+
return (0, import_react219.useCallback)(function() {
|
|
45419
|
+
var _ref = _async_to_generator(function(param) {
|
|
45420
|
+
var onEntered;
|
|
45421
|
+
return __generator(this, function(_state) {
|
|
45422
|
+
switch (_state.label) {
|
|
45423
|
+
case 0:
|
|
45424
|
+
onEntered = param.onEntered;
|
|
45425
|
+
return [
|
|
45426
|
+
4,
|
|
45427
|
+
openConfirm({
|
|
45428
|
+
title: "".concat(josa(brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
45429
|
+
leftButton: "\uCDE8\uC18C",
|
|
45430
|
+
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
45431
|
+
closeOnDimmerClick: true,
|
|
45432
|
+
onEntered
|
|
45433
|
+
})
|
|
45434
|
+
];
|
|
45435
|
+
case 1:
|
|
45436
|
+
return [
|
|
45437
|
+
2,
|
|
45438
|
+
_state.sent()
|
|
45439
|
+
];
|
|
45440
|
+
}
|
|
45441
|
+
});
|
|
45442
|
+
});
|
|
45443
|
+
return function(_17) {
|
|
45444
|
+
return _ref.apply(this, arguments);
|
|
45445
|
+
};
|
|
45446
|
+
}(), [
|
|
45447
|
+
brandDisplayName,
|
|
45448
|
+
openConfirm
|
|
45449
|
+
]);
|
|
45450
|
+
}
|
|
45402
45451
|
function useNavigationBarLogging() {
|
|
45403
45452
|
var referrer2 = useReferrer();
|
|
45404
45453
|
var baseParams = {
|
|
@@ -45463,24 +45512,68 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45463
45512
|
homeButtonClick: logHomeButtonClick
|
|
45464
45513
|
};
|
|
45465
45514
|
}
|
|
45466
|
-
function
|
|
45467
|
-
var
|
|
45468
|
-
var hasLogged = (0, import_react215.useRef)(false);
|
|
45515
|
+
function useNavigationEvent() {
|
|
45516
|
+
var backEventContext = useBackEventContext();
|
|
45469
45517
|
var logging = useNavigationBarLogging();
|
|
45470
|
-
|
|
45471
|
-
|
|
45472
|
-
|
|
45473
|
-
|
|
45518
|
+
var navigation = useNavigation();
|
|
45519
|
+
var closeConfirm = useCloseConfirm();
|
|
45520
|
+
var captureExitLog = useCaptureExitLog().captureExitLog;
|
|
45521
|
+
return (0, import_react218.useMemo)(function() {
|
|
45522
|
+
var close = function() {
|
|
45523
|
+
var _ref = _async_to_generator(function() {
|
|
45524
|
+
var hasConfirmed;
|
|
45525
|
+
return __generator(this, function(_state) {
|
|
45526
|
+
switch (_state.label) {
|
|
45527
|
+
case 0:
|
|
45528
|
+
return [
|
|
45529
|
+
4,
|
|
45530
|
+
closeConfirm({
|
|
45531
|
+
onEntered: logging.closePopupShow
|
|
45532
|
+
})
|
|
45533
|
+
];
|
|
45534
|
+
case 1:
|
|
45535
|
+
hasConfirmed = _state.sent();
|
|
45536
|
+
logging.closePopupCtaClick(hasConfirmed);
|
|
45537
|
+
if (hasConfirmed) {
|
|
45538
|
+
captureExitLog(Date.now());
|
|
45539
|
+
closeView();
|
|
45540
|
+
}
|
|
45541
|
+
return [
|
|
45542
|
+
2
|
|
45543
|
+
];
|
|
45544
|
+
}
|
|
45545
|
+
});
|
|
45474
45546
|
});
|
|
45475
|
-
|
|
45476
|
-
|
|
45547
|
+
return function close2() {
|
|
45548
|
+
return _ref.apply(this, arguments);
|
|
45549
|
+
};
|
|
45550
|
+
}();
|
|
45551
|
+
return {
|
|
45552
|
+
handleBack: function() {
|
|
45553
|
+
if (backEventContext.hasBackEvent) {
|
|
45554
|
+
backEventContext.onBack();
|
|
45555
|
+
} else if (navigation.canGoBack()) {
|
|
45556
|
+
navigation.goBack();
|
|
45557
|
+
} else {
|
|
45558
|
+
close();
|
|
45559
|
+
}
|
|
45560
|
+
},
|
|
45561
|
+
handleHomeButtonClick: function() {
|
|
45562
|
+
logging.homeButtonClick();
|
|
45563
|
+
navigation.navigate("/");
|
|
45564
|
+
},
|
|
45565
|
+
handleCloseButtonClick: function() {
|
|
45566
|
+
logging.closeButtonClick();
|
|
45567
|
+
close();
|
|
45568
|
+
}
|
|
45569
|
+
};
|
|
45477
45570
|
}, [
|
|
45571
|
+
backEventContext,
|
|
45572
|
+
navigation,
|
|
45573
|
+
closeConfirm,
|
|
45478
45574
|
logging,
|
|
45479
|
-
|
|
45575
|
+
captureExitLog
|
|
45480
45576
|
]);
|
|
45481
|
-
return /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(import_jsx_runtime218.Fragment, {
|
|
45482
|
-
children
|
|
45483
|
-
});
|
|
45484
45577
|
}
|
|
45485
45578
|
function useMoreButtonBottomSheetLogging() {
|
|
45486
45579
|
var referrer2 = useReferrer();
|
|
@@ -45570,15 +45663,15 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45570
45663
|
var schemeForShare = addParamsToUrl(initialScheme, {
|
|
45571
45664
|
referrer: SHARE_SCHEME_REFERRER
|
|
45572
45665
|
});
|
|
45573
|
-
return /* @__PURE__ */ (0,
|
|
45574
|
-
left: /* @__PURE__ */ (0,
|
|
45666
|
+
return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(ListRow2, {
|
|
45667
|
+
left: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(ListRow2.Icon, {
|
|
45575
45668
|
color: globals.brandPrimaryColor,
|
|
45576
45669
|
source: {
|
|
45577
45670
|
uri: APP_SHARE_MENU_INFO.contactIconUrl
|
|
45578
45671
|
},
|
|
45579
45672
|
type: "background"
|
|
45580
45673
|
}),
|
|
45581
|
-
contents: /* @__PURE__ */ (0,
|
|
45674
|
+
contents: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(ListRow2.Texts, {
|
|
45582
45675
|
type: "1RowTypeA",
|
|
45583
45676
|
top: APP_SHARE_MENU_INFO.contactItemName,
|
|
45584
45677
|
topProps: {
|
|
@@ -45599,7 +45692,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45599
45692
|
logging.menuClick({
|
|
45600
45693
|
title: APP_SHARE_MENU_INFO.contactItemName
|
|
45601
45694
|
});
|
|
45602
|
-
|
|
45695
|
+
import_react_native215.NativeModules.AppsInTossModule.shareWithScheme({
|
|
45603
45696
|
params: {
|
|
45604
45697
|
schemeURL: schemeForShare
|
|
45605
45698
|
}
|
|
@@ -45610,7 +45703,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45610
45703
|
function useAppUpdateDialog() {
|
|
45611
45704
|
var openConfirm = useDialog().openConfirm;
|
|
45612
45705
|
var logging = useAppUpdateDialogLogging();
|
|
45613
|
-
var openAppUpdateDialog = (0,
|
|
45706
|
+
var openAppUpdateDialog = (0, import_react221.useCallback)(function() {
|
|
45614
45707
|
var _ref = _async_to_generator(function(param) {
|
|
45615
45708
|
var title, description, _param_leftButton, leftButton, _param_rightButton, rightButton, isConfirmed, STORE_SCHEME;
|
|
45616
45709
|
return __generator(this, function(_state) {
|
|
@@ -45708,14 +45801,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45708
45801
|
function useMoreButtonBottomSheet() {
|
|
45709
45802
|
var globals = getAppsInTossGlobals();
|
|
45710
45803
|
var adaptive = useAdaptive();
|
|
45711
|
-
var
|
|
45804
|
+
var _useState2 = _sliced_to_array((0, import_react220.useState)([]), 2), itemList = _useState2[0], setItemList = _useState2[1];
|
|
45712
45805
|
var appUpdateDialog = useAppUpdateDialog();
|
|
45713
45806
|
var logging = useMoreButtonBottomSheetLogging();
|
|
45714
45807
|
var overlay = useOverlay();
|
|
45715
45808
|
var title = ensureValue(globals.brandDisplayName, "displayName");
|
|
45716
45809
|
var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION.BOTTOM_SHEET);
|
|
45717
45810
|
var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION.SHARE_LIST_MENU);
|
|
45718
|
-
(0,
|
|
45811
|
+
(0, import_react220.useEffect)(function() {
|
|
45719
45812
|
if (!isBottomSheetSupported) {
|
|
45720
45813
|
return;
|
|
45721
45814
|
}
|
|
@@ -45760,10 +45853,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45760
45853
|
logging.close();
|
|
45761
45854
|
close();
|
|
45762
45855
|
};
|
|
45763
|
-
return /* @__PURE__ */ (0,
|
|
45764
|
-
children: /* @__PURE__ */ (0,
|
|
45765
|
-
header: /* @__PURE__ */ (0,
|
|
45766
|
-
title: /* @__PURE__ */ (0,
|
|
45856
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(BottomSheetImpressionArea, {
|
|
45857
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(BottomSheet.Root, {
|
|
45858
|
+
header: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(e40, {
|
|
45859
|
+
title: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(e40.TitleParagraph, {
|
|
45767
45860
|
color: adaptive.grey800,
|
|
45768
45861
|
fontWeight: "bold",
|
|
45769
45862
|
typography: "t5",
|
|
@@ -45771,7 +45864,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45771
45864
|
})
|
|
45772
45865
|
}),
|
|
45773
45866
|
open: isOpen,
|
|
45774
|
-
cta: /* @__PURE__ */ (0,
|
|
45867
|
+
cta: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(BottomSheet.CTA, {
|
|
45775
45868
|
size: "large",
|
|
45776
45869
|
type: "dark",
|
|
45777
45870
|
style: "weak",
|
|
@@ -45782,19 +45875,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45782
45875
|
}),
|
|
45783
45876
|
onClose: handleClose,
|
|
45784
45877
|
onExited: exit,
|
|
45785
|
-
children: /* @__PURE__ */ (0,
|
|
45878
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(List, {
|
|
45786
45879
|
rowSeparator: "none",
|
|
45787
45880
|
children: [
|
|
45788
45881
|
itemList.map(function(item) {
|
|
45789
|
-
return /* @__PURE__ */ (0,
|
|
45790
|
-
left: /* @__PURE__ */ (0,
|
|
45882
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(ListRow2, {
|
|
45883
|
+
left: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(ListRow2.Icon, {
|
|
45791
45884
|
color: globals.brandPrimaryColor,
|
|
45792
45885
|
source: {
|
|
45793
45886
|
uri: item.contactIconUrl
|
|
45794
45887
|
},
|
|
45795
45888
|
type: "background"
|
|
45796
45889
|
}),
|
|
45797
|
-
contents: /* @__PURE__ */ (0,
|
|
45890
|
+
contents: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(ListRow2.Texts, {
|
|
45798
45891
|
type: "1RowTypeA",
|
|
45799
45892
|
top: item.contactItemName,
|
|
45800
45893
|
topProps: {
|
|
@@ -45810,7 +45903,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45810
45903
|
}
|
|
45811
45904
|
}, item.contactItemName);
|
|
45812
45905
|
}),
|
|
45813
|
-
isShareListMenuSupported && /* @__PURE__ */ (0,
|
|
45906
|
+
isShareListMenuSupported && /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(AppShareListMenu, {})
|
|
45814
45907
|
]
|
|
45815
45908
|
})
|
|
45816
45909
|
})
|
|
@@ -45833,12 +45926,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45833
45926
|
function BottomSheetImpressionArea(param) {
|
|
45834
45927
|
var children = param.children;
|
|
45835
45928
|
var logging = useMoreButtonBottomSheetLogging();
|
|
45836
|
-
(0,
|
|
45929
|
+
(0, import_react220.useEffect)(function() {
|
|
45837
45930
|
logging.show();
|
|
45838
45931
|
}, [
|
|
45839
45932
|
logging
|
|
45840
45933
|
]);
|
|
45841
|
-
return /* @__PURE__ */ (0,
|
|
45934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(import_jsx_runtime221.Fragment, {
|
|
45842
45935
|
children
|
|
45843
45936
|
});
|
|
45844
45937
|
}
|
|
@@ -45852,11 +45945,27 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45852
45945
|
return null;
|
|
45853
45946
|
}
|
|
45854
45947
|
}
|
|
45855
|
-
function
|
|
45856
|
-
var
|
|
45857
|
-
var
|
|
45948
|
+
function NavigationBarImpressionArea(param) {
|
|
45949
|
+
var children = param.children, withHomeButton = param.withHomeButton;
|
|
45950
|
+
var hasLogged = (0, import_react222.useRef)(false);
|
|
45858
45951
|
var logging = useNavigationBarLogging();
|
|
45859
|
-
|
|
45952
|
+
(0, import_react222.useEffect)(function() {
|
|
45953
|
+
if (hasLogged.current === false) {
|
|
45954
|
+
logging.navBarImpression({
|
|
45955
|
+
home_icon_yn: withHomeButton ? "Y" : "N"
|
|
45956
|
+
});
|
|
45957
|
+
hasLogged.current = true;
|
|
45958
|
+
}
|
|
45959
|
+
}, [
|
|
45960
|
+
logging,
|
|
45961
|
+
withHomeButton
|
|
45962
|
+
]);
|
|
45963
|
+
return /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(import_jsx_runtime222.Fragment, {
|
|
45964
|
+
children
|
|
45965
|
+
});
|
|
45966
|
+
}
|
|
45967
|
+
function DefaultNavigationBar() {
|
|
45968
|
+
var globals = getAppsInTossGlobals();
|
|
45860
45969
|
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
45861
45970
|
var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
|
|
45862
45971
|
var _parsedNavigationBar_withHomeButton;
|
|
@@ -45864,111 +45973,124 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45864
45973
|
var _parsedNavigationBar_withBackButton;
|
|
45865
45974
|
var withBackButton = (_parsedNavigationBar_withBackButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withBackButton) !== null && _parsedNavigationBar_withBackButton !== void 0 ? _parsedNavigationBar_withBackButton : true;
|
|
45866
45975
|
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
45867
|
-
var
|
|
45868
|
-
|
|
45869
|
-
|
|
45870
|
-
var handlePressTitle = (0, import_react214.useCallback)(function() {
|
|
45871
|
-
logging.homeButtonClick();
|
|
45872
|
-
navigation.navigate("/");
|
|
45873
|
-
}, [
|
|
45874
|
-
logging,
|
|
45875
|
-
navigation
|
|
45876
|
-
]);
|
|
45877
|
-
var handleClose = (0, import_react214.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
45878
|
-
var isConfirmed;
|
|
45879
|
-
return __generator(this, function(_state) {
|
|
45880
|
-
switch (_state.label) {
|
|
45881
|
-
case 0:
|
|
45882
|
-
logging.closeButtonClick();
|
|
45883
|
-
return [
|
|
45884
|
-
4,
|
|
45885
|
-
openConfirm({
|
|
45886
|
-
title: "".concat(josa(globals.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
|
|
45887
|
-
leftButton: "\uCDE8\uC18C",
|
|
45888
|
-
rightButton: "\uC885\uB8CC\uD558\uAE30",
|
|
45889
|
-
closeOnDimmerClick: true,
|
|
45890
|
-
onEntered: logging.closePopupShow
|
|
45891
|
-
})
|
|
45892
|
-
];
|
|
45893
|
-
case 1:
|
|
45894
|
-
isConfirmed = _state.sent();
|
|
45895
|
-
logging.closePopupCtaClick(isConfirmed);
|
|
45896
|
-
if (isConfirmed) {
|
|
45897
|
-
captureExitLog(Date.now());
|
|
45898
|
-
closeView();
|
|
45899
|
-
}
|
|
45900
|
-
return [
|
|
45901
|
-
2
|
|
45902
|
-
];
|
|
45903
|
-
}
|
|
45904
|
-
});
|
|
45905
|
-
}), [
|
|
45906
|
-
captureExitLog,
|
|
45907
|
-
globals.brandDisplayName,
|
|
45908
|
-
logging,
|
|
45909
|
-
openConfirm
|
|
45910
|
-
]);
|
|
45911
|
-
var handleBack = (0, import_react214.useCallback)(function() {
|
|
45912
|
-
if (backEventContext.hasBackEvent) {
|
|
45913
|
-
backEventContext.onBack();
|
|
45914
|
-
return;
|
|
45915
|
-
}
|
|
45916
|
-
handleBackOrClose();
|
|
45917
|
-
}, [
|
|
45918
|
-
backEventContext,
|
|
45919
|
-
handleBackOrClose
|
|
45920
|
-
]);
|
|
45921
|
-
(0, import_react214.useEffect)(function() {
|
|
45922
|
-
var handleAndroidBackEvent = function() {
|
|
45923
|
-
handleBack();
|
|
45924
|
-
return true;
|
|
45925
|
-
};
|
|
45926
|
-
import_react_native206.BackHandler.addEventListener("hardwareBackPress", handleAndroidBackEvent);
|
|
45927
|
-
return function() {
|
|
45928
|
-
import_react_native206.BackHandler.removeEventListener("hardwareBackPress", handleAndroidBackEvent);
|
|
45929
|
-
};
|
|
45930
|
-
}, [
|
|
45931
|
-
handleBack
|
|
45932
|
-
]);
|
|
45933
|
-
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(NavigationBarImpressionArea, {
|
|
45976
|
+
var navigationEvent = useNavigationEvent();
|
|
45977
|
+
useHardwareBackPress(navigationEvent.handleBack);
|
|
45978
|
+
return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(NavigationBarImpressionArea, {
|
|
45934
45979
|
withHomeButton,
|
|
45935
|
-
children: /* @__PURE__ */ (0,
|
|
45980
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(TopNavigation, {
|
|
45936
45981
|
title: globals.brandDisplayName,
|
|
45937
45982
|
icon: toIcon(globals.brandIcon),
|
|
45938
45983
|
onPressDots: openMoreButtonBottomSheet,
|
|
45939
45984
|
contentVisible: true,
|
|
45940
|
-
onPressTitle: withHomeButton ?
|
|
45941
|
-
onPressClose:
|
|
45985
|
+
onPressTitle: withHomeButton ? navigationEvent.handleHomeButtonClick : void 0,
|
|
45986
|
+
onPressClose: navigationEvent.handleCloseButtonClick,
|
|
45942
45987
|
withHome: withHomeButton,
|
|
45943
|
-
fixedRightButton: initialAccessoryButton
|
|
45944
|
-
|
|
45945
|
-
icon: initialAccessoryButton.icon,
|
|
45946
|
-
id: initialAccessoryButton.id
|
|
45947
|
-
} : void 0,
|
|
45948
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(NavigationLeft2, {
|
|
45988
|
+
fixedRightButton: initialAccessoryButton,
|
|
45989
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(NavigationLeft2, {
|
|
45949
45990
|
visible: withBackButton,
|
|
45950
|
-
children: /* @__PURE__ */ (0,
|
|
45951
|
-
onPress: handleBack,
|
|
45991
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(NavigationBackButton2, {
|
|
45992
|
+
onPress: navigationEvent.handleBack,
|
|
45952
45993
|
canGoBack: false
|
|
45953
45994
|
})
|
|
45954
45995
|
})
|
|
45955
45996
|
})
|
|
45956
45997
|
});
|
|
45957
45998
|
}
|
|
45958
|
-
function
|
|
45959
|
-
var
|
|
45960
|
-
var
|
|
45961
|
-
|
|
45962
|
-
|
|
45963
|
-
|
|
45964
|
-
|
|
45965
|
-
|
|
45966
|
-
|
|
45999
|
+
function GameNavigationBar() {
|
|
46000
|
+
var safeAreaTop = useSafeAreaTop();
|
|
46001
|
+
var global2 = getAppsInTossGlobals();
|
|
46002
|
+
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
46003
|
+
var navigationEvent = useNavigationEvent();
|
|
46004
|
+
useHardwareBackPress(navigationEvent.handleBack);
|
|
46005
|
+
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
46006
|
+
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
46007
|
+
return /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(import_jsx_runtime224.Fragment, {
|
|
46008
|
+
children: [
|
|
46009
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(PageNavbar, {
|
|
46010
|
+
preference: {
|
|
46011
|
+
type: "none"
|
|
46012
|
+
}
|
|
46013
|
+
}),
|
|
46014
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_react_native218.View, {
|
|
46015
|
+
style: {
|
|
46016
|
+
width: "100%",
|
|
46017
|
+
// TODO: UI관련 스타일 설정은 TDS로 이관
|
|
46018
|
+
height: import_react_native218.Platform.OS === "ios" ? 44 : 54,
|
|
46019
|
+
flexDirection: "row",
|
|
46020
|
+
alignItems: "center",
|
|
46021
|
+
justifyContent: "flex-end",
|
|
46022
|
+
position: "absolute",
|
|
46023
|
+
zIndex: Z_INDEX.CLOSE_BUTTON,
|
|
46024
|
+
marginTop: safeAreaTop,
|
|
46025
|
+
paddingRight: 10
|
|
46026
|
+
},
|
|
46027
|
+
pointerEvents: "box-none",
|
|
46028
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(NavigationRightContent, {
|
|
46029
|
+
fixedRightButton: initialAccessoryButton,
|
|
46030
|
+
onPressDots: openMoreButtonBottomSheet,
|
|
46031
|
+
onPressClose: navigationEvent.handleCloseButtonClick,
|
|
46032
|
+
theme: "dark"
|
|
46033
|
+
})
|
|
46034
|
+
})
|
|
46035
|
+
]
|
|
46036
|
+
});
|
|
46037
|
+
}
|
|
46038
|
+
function RNAppContainer(param) {
|
|
46039
|
+
var children = param.children;
|
|
46040
|
+
var global2 = getAppsInTossGlobals();
|
|
46041
|
+
switch (global2.appType) {
|
|
46042
|
+
case "game":
|
|
46043
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(GameAppContainer, {
|
|
46044
|
+
children
|
|
46045
|
+
});
|
|
46046
|
+
case "general":
|
|
46047
|
+
default:
|
|
46048
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(GeneralAppContainer, {
|
|
46049
|
+
children
|
|
46050
|
+
});
|
|
46051
|
+
}
|
|
46052
|
+
}
|
|
46053
|
+
function GameAppContainer(param) {
|
|
46054
|
+
var children = param.children;
|
|
46055
|
+
var _useState3 = _sliced_to_array((0, import_react214.useState)(false), 2), isEntryMessageExited = _useState3[0], setIsEntryMessageExited = _useState3[1];
|
|
46056
|
+
(0, import_react214.useEffect)(function() {
|
|
46057
|
+
if (import_react_native205.Platform.OS === "ios") {
|
|
46058
|
+
setIosSwipeGestureEnabled({
|
|
46059
|
+
isEnabled: false
|
|
46060
|
+
});
|
|
46061
|
+
return function() {
|
|
46062
|
+
setIosSwipeGestureEnabled({
|
|
46063
|
+
isEnabled: true
|
|
46064
|
+
});
|
|
46065
|
+
};
|
|
45967
46066
|
}
|
|
45968
|
-
|
|
45969
|
-
|
|
45970
|
-
|
|
45971
|
-
|
|
46067
|
+
return;
|
|
46068
|
+
}, []);
|
|
46069
|
+
(0, import_react214.useEffect)(function() {
|
|
46070
|
+
appsInTossEvent.addEventListener("entryMessageExited", {
|
|
46071
|
+
onEvent: function() {
|
|
46072
|
+
setIsEntryMessageExited(true);
|
|
46073
|
+
}
|
|
46074
|
+
});
|
|
46075
|
+
}, []);
|
|
46076
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(import_jsx_runtime225.Fragment, {
|
|
46077
|
+
children: [
|
|
46078
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(RNNavigationBar.Game, {}),
|
|
46079
|
+
(0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(GameProfile, {
|
|
46080
|
+
isReadyForProfileUI: isEntryMessageExited,
|
|
46081
|
+
children
|
|
46082
|
+
}) : children
|
|
46083
|
+
]
|
|
46084
|
+
});
|
|
46085
|
+
}
|
|
46086
|
+
function GeneralAppContainer(param) {
|
|
46087
|
+
var children = param.children;
|
|
46088
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(import_jsx_runtime225.Fragment, {
|
|
46089
|
+
children: [
|
|
46090
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(RNNavigationBar.Default, {}),
|
|
46091
|
+
children
|
|
46092
|
+
]
|
|
46093
|
+
});
|
|
45972
46094
|
}
|
|
45973
46095
|
function AppsInTossContainer(Container, _param) {
|
|
45974
46096
|
var children = _param.children, initialProps = _object_without_properties(_param, [
|
|
@@ -45978,28 +46100,28 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
45978
46100
|
android: "5.220.0",
|
|
45979
46101
|
ios: "5.221.0"
|
|
45980
46102
|
})) {
|
|
45981
|
-
return /* @__PURE__ */ (0,
|
|
46103
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(import_jsx_runtime226.Fragment, {
|
|
45982
46104
|
children: [
|
|
45983
|
-
/* @__PURE__ */ (0,
|
|
45984
|
-
/* @__PURE__ */ (0,
|
|
45985
|
-
/* @__PURE__ */ (0,
|
|
46105
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppEvent.Entry, {}),
|
|
46106
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppEvent.System, _object_spread({}, initialProps)),
|
|
46107
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppUpdate, {})
|
|
45986
46108
|
]
|
|
45987
46109
|
});
|
|
45988
46110
|
}
|
|
45989
|
-
return /* @__PURE__ */ (0,
|
|
46111
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(import_jsx_runtime226.Fragment, {
|
|
45990
46112
|
children: [
|
|
45991
|
-
/* @__PURE__ */ (0,
|
|
45992
|
-
/* @__PURE__ */ (0,
|
|
45993
|
-
/* @__PURE__ */ (0,
|
|
45994
|
-
/* @__PURE__ */ (0,
|
|
45995
|
-
children: /* @__PURE__ */ (0,
|
|
46113
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppEvent.StayTime, {}),
|
|
46114
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppEvent.Entry, {}),
|
|
46115
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppEvent.System, _object_spread({}, initialProps)),
|
|
46116
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Container, _object_spread_props(_object_spread({}, initialProps), {
|
|
46117
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(TDSProvider, {
|
|
45996
46118
|
colorPreference: "light",
|
|
45997
46119
|
token: {
|
|
45998
46120
|
color: {
|
|
45999
46121
|
primary: getAppsInTossGlobals().brandPrimaryColor
|
|
46000
46122
|
}
|
|
46001
46123
|
},
|
|
46002
|
-
children: /* @__PURE__ */ (0,
|
|
46124
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(TDSContainer, _object_spread_props(_object_spread({}, initialProps), {
|
|
46003
46125
|
children
|
|
46004
46126
|
}))
|
|
46005
46127
|
})
|
|
@@ -46010,7 +46132,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46010
46132
|
function TDSContainer(param) {
|
|
46011
46133
|
var children = param.children;
|
|
46012
46134
|
useAppsInTossBridge();
|
|
46013
|
-
return /* @__PURE__ */ (0,
|
|
46135
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(import_jsx_runtime226.Fragment, {
|
|
46014
46136
|
children
|
|
46015
46137
|
});
|
|
46016
46138
|
}
|
|
@@ -46043,12 +46165,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46043
46165
|
}
|
|
46044
46166
|
function AppsInTossScreenContainer(param) {
|
|
46045
46167
|
var children = param.children;
|
|
46046
|
-
var
|
|
46047
|
-
return /* @__PURE__ */ (0,
|
|
46048
|
-
children:
|
|
46049
|
-
isReactNativeService && /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(RNNavigationBar, {}),
|
|
46168
|
+
var isRNApp = getAppsInTossGlobals().webViewType == null;
|
|
46169
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Analytics.Screen, {
|
|
46170
|
+
children: isRNApp ? /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(RNAppContainer, {
|
|
46050
46171
|
children
|
|
46051
|
-
|
|
46172
|
+
}) : children
|
|
46052
46173
|
});
|
|
46053
46174
|
}
|
|
46054
46175
|
function getAppName() {
|
|
@@ -46068,7 +46189,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46068
46189
|
var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
|
|
46069
46190
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
46070
46191
|
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
46071
|
-
var handleGameWebviewClose = (0,
|
|
46192
|
+
var handleGameWebviewClose = (0, import_react225.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
46072
46193
|
var isConfirmed;
|
|
46073
46194
|
return __generator(this, function(_state) {
|
|
46074
46195
|
switch (_state.label) {
|
|
@@ -46102,18 +46223,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46102
46223
|
logging,
|
|
46103
46224
|
openConfirm
|
|
46104
46225
|
]);
|
|
46105
|
-
return /* @__PURE__ */ (0,
|
|
46226
|
+
return /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(import_jsx_runtime227.Fragment, {
|
|
46106
46227
|
children: [
|
|
46107
|
-
/* @__PURE__ */ (0,
|
|
46228
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(PageNavbar, {
|
|
46108
46229
|
preference: {
|
|
46109
46230
|
type: "none"
|
|
46110
46231
|
}
|
|
46111
46232
|
}),
|
|
46112
|
-
/* @__PURE__ */ (0,
|
|
46233
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(import_react_native223.View, {
|
|
46113
46234
|
style: {
|
|
46114
46235
|
width: "100%",
|
|
46115
46236
|
// TODO: UI관련 스타일 설정은 TDS로 이관
|
|
46116
|
-
height:
|
|
46237
|
+
height: import_react_native223.Platform.OS === "ios" ? 44 : 54,
|
|
46117
46238
|
flexDirection: "row",
|
|
46118
46239
|
alignItems: "center",
|
|
46119
46240
|
justifyContent: "flex-end",
|
|
@@ -46123,7 +46244,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46123
46244
|
paddingRight: 10
|
|
46124
46245
|
},
|
|
46125
46246
|
pointerEvents: "box-none",
|
|
46126
|
-
children: /* @__PURE__ */ (0,
|
|
46247
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(NavigationRightContent, {
|
|
46127
46248
|
fixedRightButton: initialAccessoryButton,
|
|
46128
46249
|
onPressDots: openMoreButtonBottomSheet,
|
|
46129
46250
|
onPressClose: function() {
|
|
@@ -46148,7 +46269,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46148
46269
|
var _parsedNavigationBar_withBackButton;
|
|
46149
46270
|
var withBackButton = (_parsedNavigationBar_withBackButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withBackButton) !== null && _parsedNavigationBar_withBackButton !== void 0 ? _parsedNavigationBar_withBackButton : true;
|
|
46150
46271
|
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
46151
|
-
var handleClose = (0,
|
|
46272
|
+
var handleClose = (0, import_react227.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
46152
46273
|
var isConfirmed;
|
|
46153
46274
|
return __generator(this, function(_state) {
|
|
46154
46275
|
switch (_state.label) {
|
|
@@ -46182,9 +46303,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46182
46303
|
logging,
|
|
46183
46304
|
openConfirm
|
|
46184
46305
|
]);
|
|
46185
|
-
return /* @__PURE__ */ (0,
|
|
46306
|
+
return /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(NavigationBarImpressionArea, {
|
|
46186
46307
|
withHomeButton,
|
|
46187
|
-
children: /* @__PURE__ */ (0,
|
|
46308
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(TopNavigation, {
|
|
46188
46309
|
title: globals.brandDisplayName,
|
|
46189
46310
|
icon: toIcon(globals.brandIcon),
|
|
46190
46311
|
onPressDots: openMoreButtonBottomSheet,
|
|
@@ -46193,9 +46314,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46193
46314
|
onPressClose: handleClose,
|
|
46194
46315
|
withHome: withHomeButton,
|
|
46195
46316
|
fixedRightButton: initialAccessoryButton,
|
|
46196
|
-
children: /* @__PURE__ */ (0,
|
|
46317
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(NavigationLeft2, {
|
|
46197
46318
|
visible: withBackButton,
|
|
46198
|
-
children: /* @__PURE__ */ (0,
|
|
46319
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(NavigationBackButton2, {
|
|
46199
46320
|
onPress: onBackButtonClick,
|
|
46200
46321
|
canGoBack: false
|
|
46201
46322
|
})
|
|
@@ -46263,8 +46384,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46263
46384
|
}
|
|
46264
46385
|
function useBridgeHandler(param) {
|
|
46265
46386
|
var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap, originalInjectedJavaScript = param.injectedJavaScript;
|
|
46266
|
-
var ref = (0,
|
|
46267
|
-
var injectedJavaScript = (0,
|
|
46387
|
+
var ref = (0, import_react228.useRef)(null);
|
|
46388
|
+
var injectedJavaScript = (0, import_react228.useMemo)(function() {
|
|
46268
46389
|
return [
|
|
46269
46390
|
"window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function(acc, param2) {
|
|
46270
46391
|
var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
|
|
@@ -46291,7 +46412,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46291
46412
|
(_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 "));
|
|
46292
46413
|
};
|
|
46293
46414
|
};
|
|
46294
|
-
var $onMessage = (0,
|
|
46415
|
+
var $onMessage = (0, import_react228.useCallback)(
|
|
46295
46416
|
function() {
|
|
46296
46417
|
var _ref = _async_to_generator(function(e61) {
|
|
46297
46418
|
var data, _eventListenerMap_data_functionName, handleOnEvent, handleOnError, remove, key, remove1, _ref_current;
|
|
@@ -46404,8 +46525,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46404
46525
|
}
|
|
46405
46526
|
}
|
|
46406
46527
|
function useWebViewHistory() {
|
|
46407
|
-
var _useReducer = _sliced_to_array((0,
|
|
46408
|
-
var onNavigationStateChange = (0,
|
|
46528
|
+
var _useReducer = _sliced_to_array((0, import_react230.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
|
|
46529
|
+
var onNavigationStateChange = (0, import_react230.useCallback)(function(param) {
|
|
46409
46530
|
var url = param.url, canGoForward2 = param.canGoForward;
|
|
46410
46531
|
dispatch({
|
|
46411
46532
|
type: "NAVIGATION_CHANGE",
|
|
@@ -46413,7 +46534,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46413
46534
|
canGoForward: canGoForward2
|
|
46414
46535
|
});
|
|
46415
46536
|
}, []);
|
|
46416
|
-
var
|
|
46537
|
+
var _useMemo4 = (0, import_react230.useMemo)(function() {
|
|
46417
46538
|
var canBack = state.index > 0;
|
|
46418
46539
|
var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
|
|
46419
46540
|
return {
|
|
@@ -46423,7 +46544,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46423
46544
|
}, [
|
|
46424
46545
|
state.index,
|
|
46425
46546
|
state.stack.length
|
|
46426
|
-
]), canGoBack =
|
|
46547
|
+
]), canGoBack = _useMemo4.canGoBack, canGoForward = _useMemo4.canGoForward;
|
|
46427
46548
|
return {
|
|
46428
46549
|
onNavigationStateChange,
|
|
46429
46550
|
hasHistory: canGoBack,
|
|
@@ -46437,17 +46558,17 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46437
46558
|
var logging = useNavigationBarLogging();
|
|
46438
46559
|
var openConfirm = useDialog().openConfirm;
|
|
46439
46560
|
var global2 = getAppsInTossGlobals();
|
|
46440
|
-
var addEventListener = (0,
|
|
46561
|
+
var addEventListener = (0, import_react229.useCallback)(function(handler) {
|
|
46441
46562
|
addWebBackEventListener(handler);
|
|
46442
46563
|
}, [
|
|
46443
46564
|
addWebBackEventListener
|
|
46444
46565
|
]);
|
|
46445
|
-
var removeEventListener = (0,
|
|
46566
|
+
var removeEventListener = (0, import_react229.useCallback)(function(handler) {
|
|
46446
46567
|
removeWebBackEventListener(handler);
|
|
46447
46568
|
}, [
|
|
46448
46569
|
removeWebBackEventListener
|
|
46449
46570
|
]);
|
|
46450
|
-
var handleWebBack = (0,
|
|
46571
|
+
var handleWebBack = (0, import_react229.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
46451
46572
|
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current, isConfirmed;
|
|
46452
46573
|
return __generator(this, function(_state) {
|
|
46453
46574
|
switch (_state.label) {
|
|
@@ -46521,7 +46642,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46521
46642
|
openConfirm,
|
|
46522
46643
|
webViewRef
|
|
46523
46644
|
]);
|
|
46524
|
-
var handleWebHome = (0,
|
|
46645
|
+
var handleWebHome = (0, import_react229.useCallback)(function() {
|
|
46525
46646
|
var _webViewRef_current;
|
|
46526
46647
|
logging.homeButtonClick();
|
|
46527
46648
|
if (hasWebBackEvent) {
|
|
@@ -46554,7 +46675,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46554
46675
|
logging,
|
|
46555
46676
|
webViewRef
|
|
46556
46677
|
]);
|
|
46557
|
-
return (0,
|
|
46678
|
+
return (0, import_react229.useMemo)(function() {
|
|
46558
46679
|
return {
|
|
46559
46680
|
addEventListener,
|
|
46560
46681
|
removeEventListener,
|
|
@@ -46730,7 +46851,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46730
46851
|
var batteryModePreference = param.batteryModePreference, colorPreference = param.colorPreference, locale = param.locale, navbarPreference = param.navbarPreference, pureSafeArea = param.pureSafeArea, safeArea = param.safeArea, safeAreaBottomTransparency = param.safeAreaBottomTransparency;
|
|
46731
46852
|
var platform = getPlatformOS();
|
|
46732
46853
|
var appVersion = getTossAppVersion();
|
|
46733
|
-
var fontScale = (0,
|
|
46854
|
+
var fontScale = (0, import_react_native226.useWindowDimensions)().fontScale;
|
|
46734
46855
|
var platformString = platform === "ios" ? "iPhone" : "Android";
|
|
46735
46856
|
var fontA11y = mapFontScaleToCategory(fontScale, platform);
|
|
46736
46857
|
var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
|
|
@@ -46796,9 +46917,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46796
46917
|
if (!TYPES.includes(type)) {
|
|
46797
46918
|
throw new Error("Invalid WebView type: '".concat(type, "'"));
|
|
46798
46919
|
}
|
|
46799
|
-
var webViewRef = (0,
|
|
46920
|
+
var webViewRef = (0, import_react223.useRef)(null);
|
|
46800
46921
|
var webBackHandler = useWebBackHandler(webViewRef);
|
|
46801
|
-
var uri = (0,
|
|
46922
|
+
var uri = (0, import_react223.useMemo)(function() {
|
|
46802
46923
|
return getWebViewUri(local);
|
|
46803
46924
|
}, [
|
|
46804
46925
|
local
|
|
@@ -46808,7 +46929,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46808
46929
|
var global2 = getAppsInTossGlobals();
|
|
46809
46930
|
var topNavigation = useTopNavigation();
|
|
46810
46931
|
var disableTextSelectionCSS = "\n (function() {\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 })();\n ";
|
|
46811
|
-
var
|
|
46932
|
+
var _useState6 = _sliced_to_array((0, import_react223.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState6[0], setAllowsBackForwardNavigationGestures = _useState6[1];
|
|
46812
46933
|
var handler = useBridgeHandler({
|
|
46813
46934
|
onMessage,
|
|
46814
46935
|
injectedJavaScript: [
|
|
@@ -46943,7 +47064,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46943
47064
|
completeProductGrant: IAP.completeProductGrant
|
|
46944
47065
|
})
|
|
46945
47066
|
});
|
|
46946
|
-
var headerPropForExternalWebView = (0,
|
|
47067
|
+
var headerPropForExternalWebView = (0, import_react223.useMemo)(function() {
|
|
46947
47068
|
var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
|
|
46948
47069
|
var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
|
|
46949
47070
|
var _parsedNavigationBar_withBackButton;
|
|
@@ -46968,19 +47089,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46968
47089
|
colorPreference: "light"
|
|
46969
47090
|
});
|
|
46970
47091
|
var refs = mergeRefs4(handler.ref, webViewRef);
|
|
46971
|
-
(0,
|
|
47092
|
+
(0, import_react223.useEffect)(function() {
|
|
46972
47093
|
var callback = function() {
|
|
46973
47094
|
webBackHandler.handleWebBack();
|
|
46974
47095
|
return true;
|
|
46975
47096
|
};
|
|
46976
|
-
|
|
47097
|
+
import_react_native220.BackHandler.addEventListener("hardwareBackPress", callback);
|
|
46977
47098
|
return function() {
|
|
46978
|
-
return
|
|
47099
|
+
return import_react_native220.BackHandler.removeEventListener("hardwareBackPress", callback);
|
|
46979
47100
|
};
|
|
46980
47101
|
}, [
|
|
46981
47102
|
webBackHandler
|
|
46982
47103
|
]);
|
|
46983
|
-
return /* @__PURE__ */ (0,
|
|
47104
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(BaseWebView, _object_spread_props(_object_spread({
|
|
46984
47105
|
ref: refs
|
|
46985
47106
|
}, props, headerPropForExternalWebView), {
|
|
46986
47107
|
source: {
|
|
@@ -47000,18 +47121,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47000
47121
|
(_props_onNavigationStateChange = props.onNavigationStateChange) === null || _props_onNavigationStateChange === void 0 ? void 0 : _props_onNavigationStateChange.call(props, event);
|
|
47001
47122
|
webBackHandler.onNavigationStateChange(event);
|
|
47002
47123
|
},
|
|
47003
|
-
userAgent:
|
|
47124
|
+
userAgent: import_react_native220.Platform.OS === "ios" ? userAgent : void 0,
|
|
47004
47125
|
sharedCookiesEnabled: true,
|
|
47005
47126
|
webviewDebuggingEnabled: webViewDebuggingEnabled,
|
|
47006
47127
|
thirdPartyCookiesEnabled: true,
|
|
47007
47128
|
onMessage: handler.onMessage,
|
|
47008
47129
|
injectedJavaScript: handler.injectedJavaScript,
|
|
47009
47130
|
injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript,
|
|
47010
|
-
decelerationRate:
|
|
47131
|
+
decelerationRate: import_react_native220.Platform.OS === "ios" ? 1 : void 0,
|
|
47011
47132
|
allowsBackForwardNavigationGestures
|
|
47012
47133
|
}));
|
|
47013
47134
|
}
|
|
47014
|
-
var import_react_native199, import_react209, import_react210, import_react211, import_react212, import_jsx_runtime217, import_react213, import_react214,
|
|
47135
|
+
var import_react_native199, import_react209, import_react210, import_react211, import_react212, import_jsx_runtime217, import_react213, import_react214, import_react_native205, import_react215, import_react_native206, import_react216, import_jsx_runtime218, import_react_native208, import_jsx_runtime219, import_react217, import_react_native210, import_react218, import_react219, import_react220, import_react_native215, import_jsx_runtime220, import_react221, import_jsx_runtime221, import_react222, import_jsx_runtime222, import_jsx_runtime223, import_react_native218, import_jsx_runtime224, import_jsx_runtime225, import_jsx_runtime226, import_react223, import_react_native220, import_react224, import_react_native221, import_react225, import_react_native223, import_jsx_runtime227, import_jsx_runtime228, import_react226, import_react227, import_jsx_runtime229, import_jsx_runtime230, import_react228, import_react229, import_react230, import_react_native226, import_react231, import_react232, import_jsx_runtime231, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __hasOwnProp2, __copyProps2, __reExport2, env, EXIT_IMPRESSION_LOG_NAME, EXIT_IMPRESSION_SCHEMA_ID, ENTRY_APP_EVENT_SCHEMA_ID, AppEvent, UPDATE_SCHEME, GAME_PROFILE_WEBVIEW_URL, GAME_CENTER_MIN_VERSION3, useGameProfileToast, DEFAULT_ERROR, PLAYSTORE_LINK, APPSTORE_LINK, getMarketLink, INTERNAL__onVisibilityChangedByTransparentServiceWeb, openTransparentWebView, useGameCenterProfile, Z_INDEX, GameProfile, overlayStyle, 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, SHARE_SCHEME_REFERRER, APP_SHARE_MENU_INFO, UPDATE_DIALOG_SCHEMA_ID, UPDATE_DIALOG_LOG_NAME, UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID, UPDATE_DIALOG_CTA_CLICK_LOG_NAME, APP_BRIDGE_METHOD_NAME, MIN_VERSION, RNNavigationBar, bridge_entry_exports, AppsInToss, GameWebView, PartnerWebView, globalEventListenerMap, INITIAL_STATE, HISTORY_BACK_SCRIPT, HISTORY_HOME_SCRIPT, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId, getReferrer3, trackScreen, operationalEnvironment, TYPES, WEBVIEW_TYPES, Analytics2;
|
|
47015
47136
|
var init_dist8 = __esm({
|
|
47016
47137
|
"../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.js"() {
|
|
47017
47138
|
"use strict";
|
|
@@ -47047,37 +47168,65 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47047
47168
|
init_dist6();
|
|
47048
47169
|
init_esm8();
|
|
47049
47170
|
import_react213 = __toESM(require_react(), 1);
|
|
47171
|
+
init_dist6();
|
|
47172
|
+
import_react214 = __toESM(require_react(), 1);
|
|
47173
|
+
import_react_native205 = __toESM(require_react_native(), 1);
|
|
47174
|
+
init_dist6();
|
|
47175
|
+
init_esm8();
|
|
47176
|
+
import_react215 = __toESM(require_react(), 1);
|
|
47177
|
+
import_react_native206 = __toESM(require_react_native(), 1);
|
|
47178
|
+
init_dist6();
|
|
47050
47179
|
init_src3();
|
|
47051
47180
|
init_esm8();
|
|
47181
|
+
init_dist7();
|
|
47182
|
+
import_react216 = __toESM(require_react(), 1);
|
|
47183
|
+
init_esm8();
|
|
47052
47184
|
init_private2();
|
|
47185
|
+
import_jsx_runtime218 = __toESM(require_jsx_runtime(), 1);
|
|
47186
|
+
import_react_native208 = __toESM(require_react_native(), 1);
|
|
47187
|
+
init_src3();
|
|
47188
|
+
init_dist6();
|
|
47189
|
+
import_jsx_runtime219 = __toESM(require_jsx_runtime(), 1);
|
|
47190
|
+
init_private2();
|
|
47191
|
+
import_react217 = __toESM(require_react(), 1);
|
|
47192
|
+
import_react_native210 = __toESM(require_react_native(), 1);
|
|
47193
|
+
init_src3();
|
|
47194
|
+
import_react218 = __toESM(require_react(), 1);
|
|
47195
|
+
init_esm8();
|
|
47053
47196
|
init_dist7();
|
|
47054
|
-
|
|
47055
|
-
import_react_native206 = __toESM(require_react_native(), 1);
|
|
47056
|
-
import_react215 = __toESM(require_react(), 1);
|
|
47197
|
+
import_react219 = __toESM(require_react(), 1);
|
|
47057
47198
|
init_dist6();
|
|
47058
47199
|
init_src3();
|
|
47059
|
-
import_jsx_runtime218 = __toESM(require_jsx_runtime(), 1);
|
|
47060
47200
|
init_dist6();
|
|
47061
47201
|
init_src3();
|
|
47062
47202
|
init_esm8();
|
|
47063
47203
|
init_private2();
|
|
47064
|
-
|
|
47204
|
+
import_react220 = __toESM(require_react(), 1);
|
|
47065
47205
|
init_dist6();
|
|
47066
47206
|
init_src3();
|
|
47067
47207
|
init_esm8();
|
|
47068
47208
|
init_private2();
|
|
47069
|
-
|
|
47209
|
+
import_react_native215 = __toESM(require_react_native(), 1);
|
|
47070
47210
|
init_dist6();
|
|
47071
47211
|
init_src3();
|
|
47072
|
-
|
|
47212
|
+
import_jsx_runtime220 = __toESM(require_jsx_runtime(), 1);
|
|
47073
47213
|
init_dist6();
|
|
47074
47214
|
init_src3();
|
|
47075
47215
|
init_esm8();
|
|
47076
|
-
|
|
47077
|
-
import_react_native213 = __toESM(require_react_native(), 1);
|
|
47078
|
-
import_jsx_runtime220 = __toESM(require_jsx_runtime(), 1);
|
|
47216
|
+
import_react221 = __toESM(require_react(), 1);
|
|
47079
47217
|
import_jsx_runtime221 = __toESM(require_jsx_runtime(), 1);
|
|
47218
|
+
import_react222 = __toESM(require_react(), 1);
|
|
47080
47219
|
import_jsx_runtime222 = __toESM(require_jsx_runtime(), 1);
|
|
47220
|
+
import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
|
|
47221
|
+
init_esm8();
|
|
47222
|
+
init_private2();
|
|
47223
|
+
import_react_native218 = __toESM(require_react_native(), 1);
|
|
47224
|
+
import_jsx_runtime224 = __toESM(require_jsx_runtime(), 1);
|
|
47225
|
+
init_async_bridges();
|
|
47226
|
+
init_constant_bridges2();
|
|
47227
|
+
init_event_bridges();
|
|
47228
|
+
import_jsx_runtime225 = __toESM(require_jsx_runtime(), 1);
|
|
47229
|
+
import_jsx_runtime226 = __toESM(require_jsx_runtime(), 1);
|
|
47081
47230
|
init_dist6();
|
|
47082
47231
|
init_async_bridges();
|
|
47083
47232
|
init_constant_bridges2();
|
|
@@ -47085,61 +47234,84 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47085
47234
|
init_src3();
|
|
47086
47235
|
init_esm8();
|
|
47087
47236
|
init_private2();
|
|
47088
|
-
|
|
47089
|
-
|
|
47237
|
+
import_react223 = __toESM(require_react(), 1);
|
|
47238
|
+
import_react_native220 = __toESM(require_react_native(), 1);
|
|
47090
47239
|
init_dist6();
|
|
47091
47240
|
init_react_native_webview();
|
|
47092
|
-
|
|
47093
|
-
|
|
47094
|
-
init_dist6();
|
|
47095
|
-
init_esm8();
|
|
47096
|
-
import_react220 = __toESM(require_react(), 1);
|
|
47097
|
-
import_react_native217 = __toESM(require_react_native(), 1);
|
|
47098
|
-
init_dist6();
|
|
47099
|
-
init_src3();
|
|
47100
|
-
init_esm8();
|
|
47101
|
-
init_dist7();
|
|
47102
|
-
import_react221 = __toESM(require_react(), 1);
|
|
47103
|
-
init_esm8();
|
|
47104
|
-
init_private2();
|
|
47105
|
-
import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
|
|
47106
|
-
init_src3();
|
|
47107
|
-
init_dist6();
|
|
47108
|
-
import_jsx_runtime224 = __toESM(require_jsx_runtime(), 1);
|
|
47241
|
+
import_react224 = __toESM(require_react(), 1);
|
|
47242
|
+
import_react_native221 = __toESM(require_react_native(), 1);
|
|
47109
47243
|
init_src3();
|
|
47110
47244
|
init_esm8();
|
|
47111
47245
|
init_private2();
|
|
47112
47246
|
init_dist7();
|
|
47113
|
-
|
|
47114
|
-
|
|
47115
|
-
|
|
47116
|
-
|
|
47247
|
+
import_react225 = __toESM(require_react(), 1);
|
|
47248
|
+
import_react_native223 = __toESM(require_react_native(), 1);
|
|
47249
|
+
import_jsx_runtime227 = __toESM(require_jsx_runtime(), 1);
|
|
47250
|
+
import_jsx_runtime228 = __toESM(require_jsx_runtime(), 1);
|
|
47117
47251
|
init_react_native_webview();
|
|
47118
|
-
|
|
47252
|
+
import_react226 = __toESM(require_react(), 1);
|
|
47119
47253
|
init_src3();
|
|
47120
47254
|
init_esm8();
|
|
47121
47255
|
init_private2();
|
|
47122
47256
|
init_dist7();
|
|
47123
|
-
|
|
47124
|
-
|
|
47125
|
-
|
|
47126
|
-
|
|
47257
|
+
import_react227 = __toESM(require_react(), 1);
|
|
47258
|
+
import_jsx_runtime229 = __toESM(require_jsx_runtime(), 1);
|
|
47259
|
+
import_jsx_runtime230 = __toESM(require_jsx_runtime(), 1);
|
|
47260
|
+
import_react228 = __toESM(require_react(), 1);
|
|
47127
47261
|
init_src3();
|
|
47128
47262
|
init_esm8();
|
|
47129
47263
|
init_dist7();
|
|
47130
|
-
|
|
47131
|
-
|
|
47264
|
+
import_react229 = __toESM(require_react(), 1);
|
|
47265
|
+
import_react230 = __toESM(require_react(), 1);
|
|
47132
47266
|
init_dist6();
|
|
47133
|
-
|
|
47267
|
+
import_react_native226 = __toESM(require_react_native(), 1);
|
|
47134
47268
|
init_dist6();
|
|
47135
|
-
|
|
47136
|
-
|
|
47269
|
+
import_react231 = __toESM(require_react(), 1);
|
|
47270
|
+
import_react232 = __toESM(require_react(), 1);
|
|
47137
47271
|
init_dist6();
|
|
47138
47272
|
init_src3();
|
|
47139
|
-
|
|
47273
|
+
import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
|
|
47140
47274
|
init_dist3();
|
|
47141
47275
|
init_dist6();
|
|
47142
47276
|
init_dist4();
|
|
47277
|
+
__defProp2 = Object.defineProperty;
|
|
47278
|
+
__getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
47279
|
+
__getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
47280
|
+
__hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
47281
|
+
__copyProps2 = function(to3, from, except, desc) {
|
|
47282
|
+
if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
|
|
47283
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
47284
|
+
try {
|
|
47285
|
+
var _loop = function() {
|
|
47286
|
+
var key = _step.value;
|
|
47287
|
+
if (!__hasOwnProp2.call(to3, key) && key !== except) __defProp2(to3, key, {
|
|
47288
|
+
get: function() {
|
|
47289
|
+
return from[key];
|
|
47290
|
+
},
|
|
47291
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
47292
|
+
});
|
|
47293
|
+
};
|
|
47294
|
+
for (var _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) _loop();
|
|
47295
|
+
} catch (err) {
|
|
47296
|
+
_didIteratorError = true;
|
|
47297
|
+
_iteratorError = err;
|
|
47298
|
+
} finally {
|
|
47299
|
+
try {
|
|
47300
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
47301
|
+
_iterator.return();
|
|
47302
|
+
}
|
|
47303
|
+
} finally {
|
|
47304
|
+
if (_didIteratorError) {
|
|
47305
|
+
throw _iteratorError;
|
|
47306
|
+
}
|
|
47307
|
+
}
|
|
47308
|
+
}
|
|
47309
|
+
}
|
|
47310
|
+
return to3;
|
|
47311
|
+
};
|
|
47312
|
+
__reExport2 = function(target, mod, secondTarget) {
|
|
47313
|
+
return __copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default");
|
|
47314
|
+
};
|
|
47143
47315
|
env = {
|
|
47144
47316
|
getDeploymentId: function() {
|
|
47145
47317
|
var _global___appsInToss;
|
|
@@ -47155,52 +47327,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47155
47327
|
StayTime: StayTimeAppEvent
|
|
47156
47328
|
};
|
|
47157
47329
|
UPDATE_SCHEME = "servicetoss://update/forced/j?updateType=required";
|
|
47158
|
-
NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
47159
|
-
NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
47160
|
-
CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
|
|
47161
|
-
CLOSE_POPUP_SHOW_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app";
|
|
47162
|
-
CLOSE_BUTTON_CLICK_SCHEMA_ID = 1596831;
|
|
47163
|
-
CLOSE_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_close";
|
|
47164
|
-
CLOSE_POPUP_CTA_CLICK_SCHEMA_ID = 1644492;
|
|
47165
|
-
CLOSE_POPUP_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app::click__cta";
|
|
47166
|
-
HOME_BUTTON_CLICK_SCHEMA_ID = 1596839;
|
|
47167
|
-
HOME_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_home";
|
|
47168
|
-
BOTTOM_SHEET_SCHEMA_ID = 1596825;
|
|
47169
|
-
BOTTOM_SHEET_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more";
|
|
47170
|
-
BOTTOM_SHEET_OPEN_SCHEMA_ID = 1596829;
|
|
47171
|
-
BOTTOM_SHEET_OPEN_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_more";
|
|
47172
|
-
BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID = 1596843;
|
|
47173
|
-
BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more::click__close";
|
|
47174
|
-
BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID = 1596841;
|
|
47175
|
-
BOTTOM_SHEET_MENU_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more::click__menu";
|
|
47176
|
-
SHARE_SCHEME_REFERRER = "appsintoss.common_module_share";
|
|
47177
|
-
APP_SHARE_MENU_INFO = {
|
|
47178
|
-
contactItemName: "\uACF5\uC720\uD558\uAE30",
|
|
47179
|
-
contactIconUrl: "https://static.toss.im/icons/png/4x/icon-share-dots-mono.png"
|
|
47180
|
-
};
|
|
47181
|
-
PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
|
|
47182
|
-
APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
|
|
47183
|
-
getMarketLink = function() {
|
|
47184
|
-
return import_react_native213.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
|
|
47185
|
-
};
|
|
47186
|
-
UPDATE_DIALOG_SCHEMA_ID = 1634992;
|
|
47187
|
-
UPDATE_DIALOG_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update";
|
|
47188
|
-
UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID = 1634996;
|
|
47189
|
-
UPDATE_DIALOG_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update::click__cta";
|
|
47190
|
-
APP_BRIDGE_METHOD_NAME = "getMiniAppsSupportContact";
|
|
47191
|
-
MIN_VERSION = {
|
|
47192
|
-
BOTTOM_SHEET: {
|
|
47193
|
-
android: "5.226.0",
|
|
47194
|
-
ios: "5.226.0"
|
|
47195
|
-
},
|
|
47196
|
-
SHARE_LIST_MENU: {
|
|
47197
|
-
android: "5.230.0",
|
|
47198
|
-
ios: "5.230.0"
|
|
47199
|
-
}
|
|
47200
|
-
};
|
|
47201
|
-
AppsInToss = {
|
|
47202
|
-
registerApp
|
|
47203
|
-
};
|
|
47204
47330
|
GAME_PROFILE_WEBVIEW_URL = "servicetoss://game-center/profile";
|
|
47205
47331
|
GAME_CENTER_MIN_VERSION3 = {
|
|
47206
47332
|
android: "5.221.0",
|
|
@@ -47212,10 +47338,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47212
47338
|
return new Promise(function(resolve) {
|
|
47213
47339
|
overlay.open(function(param) {
|
|
47214
47340
|
var isOpen = param.isOpen, close = param.close, exit = param.exit;
|
|
47215
|
-
return /* @__PURE__ */ (0,
|
|
47341
|
+
return /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(ColorPreferenceProvider, {
|
|
47216
47342
|
colorPreference: "dark",
|
|
47217
|
-
children: /* @__PURE__ */ (0,
|
|
47218
|
-
children: /* @__PURE__ */ (0,
|
|
47343
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(AdaptiveColorProvider, {
|
|
47344
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Toast, {
|
|
47219
47345
|
open: isOpen,
|
|
47220
47346
|
onClose: function() {
|
|
47221
47347
|
resolve();
|
|
@@ -47224,7 +47350,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47224
47350
|
onExited: exit,
|
|
47225
47351
|
position: "top",
|
|
47226
47352
|
text: "".concat(nickname, "\uB2D8 \uBC18\uAC00\uC6CC\uC694!"),
|
|
47227
|
-
icon: /* @__PURE__ */ (0,
|
|
47353
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Asset2.Image, {
|
|
47228
47354
|
style: {
|
|
47229
47355
|
borderRadius: 64,
|
|
47230
47356
|
overflow: "hidden"
|
|
@@ -47248,6 +47374,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47248
47374
|
title: "\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",
|
|
47249
47375
|
description: "\uBB38\uC81C\uAC00 \uACC4\uC18D\uB418\uBA74 \uD1A0\uC2A4 \uACE0\uAC1D\uC13C\uD130(1599-4905)\uB85C \uBB38\uC758\uD574\uC8FC\uC138\uC694."
|
|
47250
47376
|
};
|
|
47377
|
+
PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
|
|
47378
|
+
APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
|
|
47379
|
+
getMarketLink = function() {
|
|
47380
|
+
return import_react_native208.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
|
|
47381
|
+
};
|
|
47251
47382
|
INTERNAL__onVisibilityChangedByTransparentServiceWeb = onVisibilityChangedByTransparentServiceWeb;
|
|
47252
47383
|
openTransparentWebView = function(param) {
|
|
47253
47384
|
var webUrl = param.webUrl, _param_cleanupWhenDismissed = param.cleanupWhenDismissed, cleanupWhenDismissed = _param_cleanupWhenDismissed === void 0 ? true : _param_cleanupWhenDismissed, onEvent = param.onEvent, onError2 = param.onError, _param_callbackId = param.callbackId, callbackId = _param_callbackId === void 0 ? "fn" : _param_callbackId, params = param.params;
|
|
@@ -47276,17 +47407,17 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47276
47407
|
openURL(url.toString());
|
|
47277
47408
|
};
|
|
47278
47409
|
useGameCenterProfile = function(isReadyForProfileUI) {
|
|
47279
|
-
var
|
|
47280
|
-
var
|
|
47281
|
-
var
|
|
47410
|
+
var _useState = _sliced_to_array((0, import_react216.useState)(void 0), 2), profileData = _useState[0], setProfileData = _useState[1];
|
|
47411
|
+
var _useState1 = _sliced_to_array((0, import_react216.useState)(true), 2), isProfileDataLoading = _useState1[0], setIsProfileDataLoading = _useState1[1];
|
|
47412
|
+
var _useState2 = _sliced_to_array((0, import_react216.useState)(false), 2), isProfileDataRefetching = _useState2[0], setIsProfileDataRefetching = _useState2[1];
|
|
47282
47413
|
var shouldShowLoadingOverlay = isProfileDataLoading && isReadyForProfileUI;
|
|
47283
47414
|
var shouldShowProfileNotFoundOverlay = (profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && isReadyForProfileUI && !isProfileDataRefetching;
|
|
47284
47415
|
var canShowBottomSheetOrToast = !isProfileDataLoading && isReadyForProfileUI;
|
|
47285
|
-
var
|
|
47286
|
-
var isCompletedProfileFlow = (0,
|
|
47287
|
-
var
|
|
47416
|
+
var _useState3 = _sliced_to_array((0, import_react216.useState)(false), 2), isWebviewLoading = _useState3[0], setIsWebviewLoading = _useState3[1];
|
|
47417
|
+
var isCompletedProfileFlow = (0, import_react216.useRef)(false);
|
|
47418
|
+
var _useDialog = useDialog(), openAlert = _useDialog.openAlert, openConfirm = _useDialog.openConfirm;
|
|
47288
47419
|
var openGameProfileToast = useGameProfileToast().openGameProfileToast;
|
|
47289
|
-
var openErrorAlert = (0,
|
|
47420
|
+
var openErrorAlert = (0, import_react216.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
47290
47421
|
return __generator(this, function(_state) {
|
|
47291
47422
|
switch (_state.label) {
|
|
47292
47423
|
case 0:
|
|
@@ -47308,7 +47439,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47308
47439
|
}), [
|
|
47309
47440
|
openAlert
|
|
47310
47441
|
]);
|
|
47311
|
-
var openProfileWebview = (0,
|
|
47442
|
+
var openProfileWebview = (0, import_react216.useCallback)(function() {
|
|
47312
47443
|
if (isWebviewLoading) {
|
|
47313
47444
|
return;
|
|
47314
47445
|
}
|
|
@@ -47378,7 +47509,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47378
47509
|
openGameProfileToast,
|
|
47379
47510
|
openErrorAlert
|
|
47380
47511
|
]);
|
|
47381
|
-
var updateAppToSupportedMinVersion = (0,
|
|
47512
|
+
var updateAppToSupportedMinVersion = (0, import_react216.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
|
|
47382
47513
|
var upddateConfirmDialogLabel, isConfirmed, STORE_SCHEME;
|
|
47383
47514
|
return __generator(this, function(_state) {
|
|
47384
47515
|
switch (_state.label) {
|
|
@@ -47441,7 +47572,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47441
47572
|
GameProfile = function(param) {
|
|
47442
47573
|
var children = param.children, isReadyForProfileUI = param.isReadyForProfileUI;
|
|
47443
47574
|
var _useGameCenterProfile = useGameCenterProfile(isReadyForProfileUI), profileData = _useGameCenterProfile.profileData, isProfileDataRefetching = _useGameCenterProfile.isProfileDataRefetching, shouldShowLoadingOverlay = _useGameCenterProfile.shouldShowLoadingOverlay, shouldShowProfileNotFoundOverlay = _useGameCenterProfile.shouldShowProfileNotFoundOverlay, canShowBottomSheetOrToast = _useGameCenterProfile.canShowBottomSheetOrToast, isCompletedProfileFlow = _useGameCenterProfile.isCompletedProfileFlow, openProfileWebview = _useGameCenterProfile.openProfileWebview, updateAppToSupportedMinVersion = _useGameCenterProfile.updateAppToSupportedMinVersion, setIsProfileDataLoading = _useGameCenterProfile.setIsProfileDataLoading, setProfileData = _useGameCenterProfile.setProfileData, openErrorAlert = _useGameCenterProfile.openErrorAlert, openGameProfileToast = _useGameCenterProfile.openGameProfileToast;
|
|
47444
|
-
(0,
|
|
47575
|
+
(0, import_react215.useEffect)(function() {
|
|
47445
47576
|
try {
|
|
47446
47577
|
var getProfileData = function() {
|
|
47447
47578
|
var _ref = _async_to_generator(function() {
|
|
@@ -47473,7 +47604,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47473
47604
|
setIsProfileDataLoading(false);
|
|
47474
47605
|
}
|
|
47475
47606
|
}, []);
|
|
47476
|
-
(0,
|
|
47607
|
+
(0, import_react215.useEffect)(function() {
|
|
47477
47608
|
var handleGameProfileFlow = function() {
|
|
47478
47609
|
var _ref = _async_to_generator(function() {
|
|
47479
47610
|
return __generator(this, function(_state) {
|
|
@@ -47522,16 +47653,16 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47522
47653
|
updateAppToSupportedMinVersion
|
|
47523
47654
|
]);
|
|
47524
47655
|
if (!isMinVersionSupported(GAME_CENTER_MIN_VERSION3)) {
|
|
47525
|
-
return /* @__PURE__ */ (0,
|
|
47656
|
+
return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
|
|
47526
47657
|
children: [
|
|
47527
|
-
/* @__PURE__ */ (0,
|
|
47658
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.View, {
|
|
47528
47659
|
style: {
|
|
47529
47660
|
flex: 1,
|
|
47530
47661
|
position: "relative"
|
|
47531
47662
|
},
|
|
47532
47663
|
children
|
|
47533
47664
|
}),
|
|
47534
|
-
/* @__PURE__ */ (0,
|
|
47665
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.Pressable, {
|
|
47535
47666
|
style: _object_spread({}, overlayStyle),
|
|
47536
47667
|
onPress: function() {
|
|
47537
47668
|
updateAppToSupportedMinVersion();
|
|
@@ -47541,22 +47672,22 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47541
47672
|
});
|
|
47542
47673
|
}
|
|
47543
47674
|
if (shouldShowLoadingOverlay || isProfileDataRefetching) {
|
|
47544
|
-
return /* @__PURE__ */ (0,
|
|
47675
|
+
return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
|
|
47545
47676
|
children: [
|
|
47546
|
-
/* @__PURE__ */ (0,
|
|
47677
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.View, {
|
|
47547
47678
|
style: {
|
|
47548
47679
|
flex: 1,
|
|
47549
47680
|
position: "relative"
|
|
47550
47681
|
},
|
|
47551
47682
|
children
|
|
47552
47683
|
}),
|
|
47553
|
-
/* @__PURE__ */ (0,
|
|
47684
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.View, {
|
|
47554
47685
|
style: _object_spread_props(_object_spread({}, overlayStyle), {
|
|
47555
47686
|
justifyContent: "center",
|
|
47556
47687
|
alignItems: "center",
|
|
47557
47688
|
backgroundColor: "rgba(0, 0, 0, 0.2)"
|
|
47558
47689
|
}),
|
|
47559
|
-
children: /* @__PURE__ */ (0,
|
|
47690
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Loader_default, {
|
|
47560
47691
|
size: "large",
|
|
47561
47692
|
type: "light"
|
|
47562
47693
|
})
|
|
@@ -47565,16 +47696,16 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47565
47696
|
});
|
|
47566
47697
|
}
|
|
47567
47698
|
if (shouldShowProfileNotFoundOverlay) {
|
|
47568
|
-
return /* @__PURE__ */ (0,
|
|
47699
|
+
return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
|
|
47569
47700
|
children: [
|
|
47570
|
-
/* @__PURE__ */ (0,
|
|
47701
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.View, {
|
|
47571
47702
|
style: {
|
|
47572
47703
|
flex: 1,
|
|
47573
47704
|
position: "relative"
|
|
47574
47705
|
},
|
|
47575
47706
|
children
|
|
47576
47707
|
}),
|
|
47577
|
-
shouldShowProfileNotFoundOverlay && /* @__PURE__ */ (0,
|
|
47708
|
+
shouldShowProfileNotFoundOverlay && /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.Pressable, {
|
|
47578
47709
|
style: _object_spread({}, overlayStyle),
|
|
47579
47710
|
onPress: function() {
|
|
47580
47711
|
openProfileWebview();
|
|
@@ -47583,8 +47714,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47583
47714
|
]
|
|
47584
47715
|
});
|
|
47585
47716
|
}
|
|
47586
|
-
return /* @__PURE__ */ (0,
|
|
47587
|
-
children: /* @__PURE__ */ (0,
|
|
47717
|
+
return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_jsx_runtime219.Fragment, {
|
|
47718
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.View, {
|
|
47588
47719
|
style: {
|
|
47589
47720
|
flex: 1,
|
|
47590
47721
|
position: "relative"
|
|
@@ -47601,10 +47732,59 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47601
47732
|
bottom: 0,
|
|
47602
47733
|
zIndex: Z_INDEX.PROFILE_OVERLAY
|
|
47603
47734
|
};
|
|
47604
|
-
|
|
47605
|
-
|
|
47606
|
-
|
|
47607
|
-
|
|
47735
|
+
NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
|
|
47736
|
+
NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
|
|
47737
|
+
CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
|
|
47738
|
+
CLOSE_POPUP_SHOW_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app";
|
|
47739
|
+
CLOSE_BUTTON_CLICK_SCHEMA_ID = 1596831;
|
|
47740
|
+
CLOSE_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_close";
|
|
47741
|
+
CLOSE_POPUP_CTA_CLICK_SCHEMA_ID = 1644492;
|
|
47742
|
+
CLOSE_POPUP_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app::click__cta";
|
|
47743
|
+
HOME_BUTTON_CLICK_SCHEMA_ID = 1596839;
|
|
47744
|
+
HOME_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_home";
|
|
47745
|
+
BOTTOM_SHEET_SCHEMA_ID = 1596825;
|
|
47746
|
+
BOTTOM_SHEET_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more";
|
|
47747
|
+
BOTTOM_SHEET_OPEN_SCHEMA_ID = 1596829;
|
|
47748
|
+
BOTTOM_SHEET_OPEN_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_more";
|
|
47749
|
+
BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID = 1596843;
|
|
47750
|
+
BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more::click__close";
|
|
47751
|
+
BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID = 1596841;
|
|
47752
|
+
BOTTOM_SHEET_MENU_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more::click__menu";
|
|
47753
|
+
SHARE_SCHEME_REFERRER = "appsintoss.common_module_share";
|
|
47754
|
+
APP_SHARE_MENU_INFO = {
|
|
47755
|
+
contactItemName: "\uACF5\uC720\uD558\uAE30",
|
|
47756
|
+
contactIconUrl: "https://static.toss.im/icons/png/4x/icon-share-dots-mono.png"
|
|
47757
|
+
};
|
|
47758
|
+
UPDATE_DIALOG_SCHEMA_ID = 1634992;
|
|
47759
|
+
UPDATE_DIALOG_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update";
|
|
47760
|
+
UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID = 1634996;
|
|
47761
|
+
UPDATE_DIALOG_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update::click__cta";
|
|
47762
|
+
APP_BRIDGE_METHOD_NAME = "getMiniAppsSupportContact";
|
|
47763
|
+
MIN_VERSION = {
|
|
47764
|
+
BOTTOM_SHEET: {
|
|
47765
|
+
android: "5.226.0",
|
|
47766
|
+
ios: "5.226.0"
|
|
47767
|
+
},
|
|
47768
|
+
SHARE_LIST_MENU: {
|
|
47769
|
+
android: "5.230.0",
|
|
47770
|
+
ios: "5.230.0"
|
|
47771
|
+
}
|
|
47772
|
+
};
|
|
47773
|
+
RNNavigationBar = {
|
|
47774
|
+
Default: DefaultNavigationBar,
|
|
47775
|
+
Game: GameNavigationBar
|
|
47776
|
+
};
|
|
47777
|
+
bridge_entry_exports = {};
|
|
47778
|
+
__reExport2(bridge_entry_exports, async_bridges_exports);
|
|
47779
|
+
__reExport2(bridge_entry_exports, constant_bridges_exports);
|
|
47780
|
+
__reExport2(bridge_entry_exports, event_bridges_exports);
|
|
47781
|
+
AppsInToss = {
|
|
47782
|
+
registerApp
|
|
47783
|
+
};
|
|
47784
|
+
GameWebView = /* @__PURE__ */ (0, import_react224.forwardRef)(function GameWebView2(props, ref) {
|
|
47785
|
+
var _useState4 = _sliced_to_array((0, import_react224.useState)(false), 2), isEntryMessageExited = _useState4[0], setIsEntryMessageExited = _useState4[1];
|
|
47786
|
+
(0, import_react224.useEffect)(function() {
|
|
47787
|
+
if (import_react_native221.Platform.OS === "ios") {
|
|
47608
47788
|
setIosSwipeGestureEnabled({
|
|
47609
47789
|
isEnabled: false
|
|
47610
47790
|
});
|
|
@@ -47616,39 +47796,39 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47616
47796
|
}
|
|
47617
47797
|
return;
|
|
47618
47798
|
}, []);
|
|
47619
|
-
(0,
|
|
47799
|
+
(0, import_react224.useEffect)(function() {
|
|
47620
47800
|
appsInTossEvent.addEventListener("entryMessageExited", {
|
|
47621
47801
|
onEvent: function() {
|
|
47622
47802
|
setIsEntryMessageExited(true);
|
|
47623
47803
|
}
|
|
47624
47804
|
});
|
|
47625
47805
|
}, []);
|
|
47626
|
-
return /* @__PURE__ */ (0,
|
|
47806
|
+
return /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(import_jsx_runtime228.Fragment, {
|
|
47627
47807
|
children: [
|
|
47628
|
-
/* @__PURE__ */ (0,
|
|
47629
|
-
getOperationalEnvironment() === "toss" ? /* @__PURE__ */ (0,
|
|
47808
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(GameWebviewNavigationBar, {}),
|
|
47809
|
+
getOperationalEnvironment() === "toss" ? /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(GameProfile, {
|
|
47630
47810
|
isReadyForProfileUI: isEntryMessageExited,
|
|
47631
|
-
children: /* @__PURE__ */ (0,
|
|
47811
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(react_native_webview_exports.WebView, _object_spread({
|
|
47632
47812
|
ref
|
|
47633
47813
|
}, props))
|
|
47634
|
-
}) : /* @__PURE__ */ (0,
|
|
47814
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(react_native_webview_exports.WebView, _object_spread({
|
|
47635
47815
|
ref
|
|
47636
47816
|
}, props))
|
|
47637
47817
|
]
|
|
47638
47818
|
});
|
|
47639
47819
|
});
|
|
47640
|
-
PartnerWebView = /* @__PURE__ */ (0,
|
|
47820
|
+
PartnerWebView = /* @__PURE__ */ (0, import_react226.forwardRef)(function PartnerWebViewScreen(_param, ref) {
|
|
47641
47821
|
var onBackButtonClick = _param.onBackButtonClick, onHomeButtonClick = _param.onHomeButtonClick, webViewProps = _object_without_properties(_param, [
|
|
47642
47822
|
"onBackButtonClick",
|
|
47643
47823
|
"onHomeButtonClick"
|
|
47644
47824
|
]);
|
|
47645
|
-
return /* @__PURE__ */ (0,
|
|
47825
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)(import_jsx_runtime230.Fragment, {
|
|
47646
47826
|
children: [
|
|
47647
|
-
/* @__PURE__ */ (0,
|
|
47827
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(PartnerWebviewNavigationBar, {
|
|
47648
47828
|
onBackButtonClick,
|
|
47649
47829
|
onHomeButtonClick
|
|
47650
47830
|
}),
|
|
47651
|
-
/* @__PURE__ */ (0,
|
|
47831
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(react_native_webview_exports.WebView, _object_spread_props(_object_spread({
|
|
47652
47832
|
ref
|
|
47653
47833
|
}, webViewProps), {
|
|
47654
47834
|
style: {
|
|
@@ -47770,11 +47950,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47770
47950
|
}
|
|
47771
47951
|
});
|
|
47772
47952
|
function Index() {
|
|
47773
|
-
return /* @__PURE__ */ (0,
|
|
47953
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(import_react_native228.View, {
|
|
47774
47954
|
style: {
|
|
47775
47955
|
flex: 1
|
|
47776
47956
|
},
|
|
47777
|
-
children: /* @__PURE__ */ (0,
|
|
47957
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(WebView, {
|
|
47778
47958
|
style: {
|
|
47779
47959
|
flex: 1
|
|
47780
47960
|
},
|
|
@@ -47792,13 +47972,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47792
47972
|
})
|
|
47793
47973
|
});
|
|
47794
47974
|
}
|
|
47795
|
-
var
|
|
47975
|
+
var import_jsx_runtime232, import_react_native228;
|
|
47796
47976
|
var init_pages = __esm({
|
|
47797
47977
|
"react-native/pages/index.tsx"() {
|
|
47798
47978
|
"use strict";
|
|
47799
|
-
|
|
47979
|
+
import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
|
|
47800
47980
|
init_dist8();
|
|
47801
|
-
|
|
47981
|
+
import_react_native228 = __toESM(require_react_native(), 1);
|
|
47802
47982
|
}
|
|
47803
47983
|
});
|
|
47804
47984
|
|
|
@@ -47823,7 +48003,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47823
48003
|
return app_default;
|
|
47824
48004
|
}
|
|
47825
48005
|
});
|
|
47826
|
-
var
|
|
48006
|
+
var import_jsx_runtime233 = __toESM(require_jsx_runtime());
|
|
47827
48007
|
|
|
47828
48008
|
// ../../.yarn/cache/@react-native-js-polyfills-npm-0.72.1-52931e590c-e4a77d6c8b.zip/node_modules/@react-native/js-polyfills/console.js
|
|
47829
48009
|
init_instanceof();
|
|
@@ -48405,7 +48585,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48405
48585
|
// react-native/src/_app.tsx
|
|
48406
48586
|
function AppContainer(param) {
|
|
48407
48587
|
var children = param.children;
|
|
48408
|
-
return /* @__PURE__ */ (0,
|
|
48588
|
+
return /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(import_jsx_runtime233.Fragment, {
|
|
48409
48589
|
children
|
|
48410
48590
|
});
|
|
48411
48591
|
}
|