@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.
@@ -45377,19 +45377,68 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45377
45377
  var controller = useBridge();
45378
45378
  var appsInTossGlobals = getAppsInTossGlobals();
45379
45379
  (0, import_react212.useEffect)(function() {
45380
- var commonProps = {
45380
+ var isGameApp = appsInTossGlobals.webViewType === "game" || appsInTossGlobals.appType === "game";
45381
+ controller.open({
45381
45382
  serviceName: appsInTossGlobals.brandDisplayName,
45382
45383
  icon: toIcon(appsInTossGlobals.brandIcon),
45383
45384
  color: appsInTossGlobals.brandPrimaryColor,
45384
- colorMode: appsInTossGlobals.brandBridgeColorMode
45385
- };
45386
- controller.open(_object_spread_props(_object_spread({}, commonProps), {
45385
+ colorMode: isGameApp ? "inverted" : appsInTossGlobals.brandBridgeColorMode,
45387
45386
  onExited: function() {
45388
45387
  appsInTossEvent.emit("entryMessageExited", void 0);
45389
45388
  }
45390
- }));
45389
+ });
45391
45390
  }, []);
45392
45391
  }
45392
+ function useHardwareBackPress(handler) {
45393
+ (0, import_react216.useEffect)(function() {
45394
+ var handleBackPress = function() {
45395
+ handler();
45396
+ return true;
45397
+ };
45398
+ import_react_native210.BackHandler.addEventListener("hardwareBackPress", handleBackPress);
45399
+ return function() {
45400
+ return import_react_native210.BackHandler.removeEventListener("hardwareBackPress", handleBackPress);
45401
+ };
45402
+ }, [
45403
+ handler
45404
+ ]);
45405
+ }
45406
+ function useCloseConfirm() {
45407
+ var brandDisplayName = getAppsInTossGlobals().brandDisplayName;
45408
+ var openConfirm = useDialog().openConfirm;
45409
+ return (0, import_react218.useCallback)(function() {
45410
+ var _ref = _async_to_generator(function(param) {
45411
+ var onEntered;
45412
+ return __generator(this, function(_state) {
45413
+ switch (_state.label) {
45414
+ case 0:
45415
+ onEntered = param.onEntered;
45416
+ return [
45417
+ 4,
45418
+ openConfirm({
45419
+ title: "".concat(josa(brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
45420
+ leftButton: "\uCDE8\uC18C",
45421
+ rightButton: "\uC885\uB8CC\uD558\uAE30",
45422
+ closeOnDimmerClick: true,
45423
+ onEntered
45424
+ })
45425
+ ];
45426
+ case 1:
45427
+ return [
45428
+ 2,
45429
+ _state.sent()
45430
+ ];
45431
+ }
45432
+ });
45433
+ });
45434
+ return function(_17) {
45435
+ return _ref.apply(this, arguments);
45436
+ };
45437
+ }(), [
45438
+ brandDisplayName,
45439
+ openConfirm
45440
+ ]);
45441
+ }
45393
45442
  function useNavigationBarLogging() {
45394
45443
  var referrer2 = useReferrer();
45395
45444
  var baseParams = {
@@ -45454,24 +45503,68 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45454
45503
  homeButtonClick: logHomeButtonClick
45455
45504
  };
45456
45505
  }
45457
- function NavigationBarImpressionArea(param) {
45458
- var children = param.children, withHomeButton = param.withHomeButton;
45459
- var hasLogged = (0, import_react214.useRef)(false);
45506
+ function useNavigationEvent() {
45507
+ var backEventContext = useBackEventContext();
45460
45508
  var logging = useNavigationBarLogging();
45461
- (0, import_react214.useEffect)(function() {
45462
- if (hasLogged.current === false) {
45463
- logging.navBarImpression({
45464
- home_icon_yn: withHomeButton ? "Y" : "N"
45509
+ var navigation = useNavigation();
45510
+ var closeConfirm = useCloseConfirm();
45511
+ var captureExitLog = useCaptureExitLog().captureExitLog;
45512
+ return (0, import_react217.useMemo)(function() {
45513
+ var close = function() {
45514
+ var _ref = _async_to_generator(function() {
45515
+ var hasConfirmed;
45516
+ return __generator(this, function(_state) {
45517
+ switch (_state.label) {
45518
+ case 0:
45519
+ return [
45520
+ 4,
45521
+ closeConfirm({
45522
+ onEntered: logging.closePopupShow
45523
+ })
45524
+ ];
45525
+ case 1:
45526
+ hasConfirmed = _state.sent();
45527
+ logging.closePopupCtaClick(hasConfirmed);
45528
+ if (hasConfirmed) {
45529
+ captureExitLog(Date.now());
45530
+ closeView();
45531
+ }
45532
+ return [
45533
+ 2
45534
+ ];
45535
+ }
45536
+ });
45465
45537
  });
45466
- hasLogged.current = true;
45467
- }
45538
+ return function close2() {
45539
+ return _ref.apply(this, arguments);
45540
+ };
45541
+ }();
45542
+ return {
45543
+ handleBack: function() {
45544
+ if (backEventContext.hasBackEvent) {
45545
+ backEventContext.onBack();
45546
+ } else if (navigation.canGoBack()) {
45547
+ navigation.goBack();
45548
+ } else {
45549
+ close();
45550
+ }
45551
+ },
45552
+ handleHomeButtonClick: function() {
45553
+ logging.homeButtonClick();
45554
+ navigation.navigate("/");
45555
+ },
45556
+ handleCloseButtonClick: function() {
45557
+ logging.closeButtonClick();
45558
+ close();
45559
+ }
45560
+ };
45468
45561
  }, [
45562
+ backEventContext,
45563
+ navigation,
45564
+ closeConfirm,
45469
45565
  logging,
45470
- withHomeButton
45566
+ captureExitLog
45471
45567
  ]);
45472
- return /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(import_jsx_runtime218.Fragment, {
45473
- children
45474
- });
45475
45568
  }
45476
45569
  function useMoreButtonBottomSheetLogging() {
45477
45570
  var referrer2 = useReferrer();
@@ -45561,15 +45654,15 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45561
45654
  var schemeForShare = addParamsToUrl(initialScheme, {
45562
45655
  referrer: SHARE_SCHEME_REFERRER
45563
45656
  });
45564
- return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(ListRow2, {
45565
- left: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(ListRow2.Icon, {
45657
+ return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(ListRow2, {
45658
+ left: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(ListRow2.Icon, {
45566
45659
  color: globals.brandPrimaryColor,
45567
45660
  source: {
45568
45661
  uri: APP_SHARE_MENU_INFO.contactIconUrl
45569
45662
  },
45570
45663
  type: "background"
45571
45664
  }),
45572
- contents: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(ListRow2.Texts, {
45665
+ contents: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(ListRow2.Texts, {
45573
45666
  type: "1RowTypeA",
45574
45667
  top: APP_SHARE_MENU_INFO.contactItemName,
45575
45668
  topProps: {
@@ -45590,7 +45683,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45590
45683
  logging.menuClick({
45591
45684
  title: APP_SHARE_MENU_INFO.contactItemName
45592
45685
  });
45593
- import_react_native210.NativeModules.AppsInTossModule.shareWithScheme({
45686
+ import_react_native215.NativeModules.AppsInTossModule.shareWithScheme({
45594
45687
  params: {
45595
45688
  schemeURL: schemeForShare
45596
45689
  }
@@ -45601,7 +45694,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45601
45694
  function useAppUpdateDialog() {
45602
45695
  var openConfirm = useDialog().openConfirm;
45603
45696
  var logging = useAppUpdateDialogLogging();
45604
- var openAppUpdateDialog = (0, import_react216.useCallback)(function() {
45697
+ var openAppUpdateDialog = (0, import_react220.useCallback)(function() {
45605
45698
  var _ref = _async_to_generator(function(param) {
45606
45699
  var title, description, _param_leftButton, leftButton, _param_rightButton, rightButton, isConfirmed, STORE_SCHEME;
45607
45700
  return __generator(this, function(_state) {
@@ -45699,14 +45792,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45699
45792
  function useMoreButtonBottomSheet() {
45700
45793
  var globals = getAppsInTossGlobals();
45701
45794
  var adaptive = useAdaptive();
45702
- var _useState = _sliced_to_array((0, import_react215.useState)([]), 2), itemList = _useState[0], setItemList = _useState[1];
45795
+ var _useState2 = _sliced_to_array((0, import_react219.useState)([]), 2), itemList = _useState2[0], setItemList = _useState2[1];
45703
45796
  var appUpdateDialog = useAppUpdateDialog();
45704
45797
  var logging = useMoreButtonBottomSheetLogging();
45705
45798
  var overlay = useOverlay();
45706
45799
  var title = ensureValue(globals.brandDisplayName, "displayName");
45707
45800
  var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION.BOTTOM_SHEET);
45708
45801
  var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION.SHARE_LIST_MENU);
45709
- (0, import_react215.useEffect)(function() {
45802
+ (0, import_react219.useEffect)(function() {
45710
45803
  if (!isBottomSheetSupported) {
45711
45804
  return;
45712
45805
  }
@@ -45751,10 +45844,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45751
45844
  logging.close();
45752
45845
  close();
45753
45846
  };
45754
- return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(BottomSheetImpressionArea, {
45755
- children: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(BottomSheet.Root, {
45756
- header: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(e40, {
45757
- title: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(e40.TitleParagraph, {
45847
+ return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(BottomSheetImpressionArea, {
45848
+ children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(BottomSheet.Root, {
45849
+ header: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(e40, {
45850
+ title: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(e40.TitleParagraph, {
45758
45851
  color: adaptive.grey800,
45759
45852
  fontWeight: "bold",
45760
45853
  typography: "t5",
@@ -45762,7 +45855,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45762
45855
  })
45763
45856
  }),
45764
45857
  open: isOpen,
45765
- cta: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(BottomSheet.CTA, {
45858
+ cta: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(BottomSheet.CTA, {
45766
45859
  size: "large",
45767
45860
  type: "dark",
45768
45861
  style: "weak",
@@ -45773,19 +45866,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45773
45866
  }),
45774
45867
  onClose: handleClose,
45775
45868
  onExited: exit,
45776
- children: /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(List, {
45869
+ children: /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(List, {
45777
45870
  rowSeparator: "none",
45778
45871
  children: [
45779
45872
  itemList.map(function(item) {
45780
- return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(ListRow2, {
45781
- left: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(ListRow2.Icon, {
45873
+ return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(ListRow2, {
45874
+ left: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(ListRow2.Icon, {
45782
45875
  color: globals.brandPrimaryColor,
45783
45876
  source: {
45784
45877
  uri: item.contactIconUrl
45785
45878
  },
45786
45879
  type: "background"
45787
45880
  }),
45788
- contents: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(ListRow2.Texts, {
45881
+ contents: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(ListRow2.Texts, {
45789
45882
  type: "1RowTypeA",
45790
45883
  top: item.contactItemName,
45791
45884
  topProps: {
@@ -45801,7 +45894,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45801
45894
  }
45802
45895
  }, item.contactItemName);
45803
45896
  }),
45804
- isShareListMenuSupported && /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(AppShareListMenu, {})
45897
+ isShareListMenuSupported && /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(AppShareListMenu, {})
45805
45898
  ]
45806
45899
  })
45807
45900
  })
@@ -45824,12 +45917,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45824
45917
  function BottomSheetImpressionArea(param) {
45825
45918
  var children = param.children;
45826
45919
  var logging = useMoreButtonBottomSheetLogging();
45827
- (0, import_react215.useEffect)(function() {
45920
+ (0, import_react219.useEffect)(function() {
45828
45921
  logging.show();
45829
45922
  }, [
45830
45923
  logging
45831
45924
  ]);
45832
- return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(import_jsx_runtime220.Fragment, {
45925
+ return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(import_jsx_runtime221.Fragment, {
45833
45926
  children
45834
45927
  });
45835
45928
  }
@@ -45843,11 +45936,27 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45843
45936
  return null;
45844
45937
  }
45845
45938
  }
45846
- function RNNavigationBar() {
45847
- var globals = getAppsInTossGlobals();
45848
- var captureExitLog = useCaptureExitLog().captureExitLog;
45939
+ function NavigationBarImpressionArea(param) {
45940
+ var children = param.children, withHomeButton = param.withHomeButton;
45941
+ var hasLogged = (0, import_react221.useRef)(false);
45849
45942
  var logging = useNavigationBarLogging();
45850
- var openConfirm = useDialog().openConfirm;
45943
+ (0, import_react221.useEffect)(function() {
45944
+ if (hasLogged.current === false) {
45945
+ logging.navBarImpression({
45946
+ home_icon_yn: withHomeButton ? "Y" : "N"
45947
+ });
45948
+ hasLogged.current = true;
45949
+ }
45950
+ }, [
45951
+ logging,
45952
+ withHomeButton
45953
+ ]);
45954
+ return /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(import_jsx_runtime222.Fragment, {
45955
+ children
45956
+ });
45957
+ }
45958
+ function DefaultNavigationBar() {
45959
+ var globals = getAppsInTossGlobals();
45851
45960
  var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
45852
45961
  var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
45853
45962
  var _parsedNavigationBar_withHomeButton;
@@ -45855,111 +45964,124 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45855
45964
  var _parsedNavigationBar_withBackButton;
45856
45965
  var withBackButton = (_parsedNavigationBar_withBackButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withBackButton) !== null && _parsedNavigationBar_withBackButton !== void 0 ? _parsedNavigationBar_withBackButton : true;
45857
45966
  var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
45858
- var backEventContext = useBackEventContext();
45859
- var handleBackOrClose = useBackOrCloseNavigation3();
45860
- var navigation = useNavigation();
45861
- var handlePressTitle = (0, import_react213.useCallback)(function() {
45862
- logging.homeButtonClick();
45863
- navigation.navigate("/");
45864
- }, [
45865
- logging,
45866
- navigation
45867
- ]);
45868
- var handleClose = (0, import_react213.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
45869
- var isConfirmed;
45870
- return __generator(this, function(_state) {
45871
- switch (_state.label) {
45872
- case 0:
45873
- logging.closeButtonClick();
45874
- return [
45875
- 4,
45876
- openConfirm({
45877
- title: "".concat(josa(globals.brandDisplayName, "\uC744/\uB97C"), " \uC885\uB8CC\uD560\uAE4C\uC694?"),
45878
- leftButton: "\uCDE8\uC18C",
45879
- rightButton: "\uC885\uB8CC\uD558\uAE30",
45880
- closeOnDimmerClick: true,
45881
- onEntered: logging.closePopupShow
45882
- })
45883
- ];
45884
- case 1:
45885
- isConfirmed = _state.sent();
45886
- logging.closePopupCtaClick(isConfirmed);
45887
- if (isConfirmed) {
45888
- captureExitLog(Date.now());
45889
- closeView();
45890
- }
45891
- return [
45892
- 2
45893
- ];
45894
- }
45895
- });
45896
- }), [
45897
- captureExitLog,
45898
- globals.brandDisplayName,
45899
- logging,
45900
- openConfirm
45901
- ]);
45902
- var handleBack = (0, import_react213.useCallback)(function() {
45903
- if (backEventContext.hasBackEvent) {
45904
- backEventContext.onBack();
45905
- return;
45906
- }
45907
- handleBackOrClose();
45908
- }, [
45909
- backEventContext,
45910
- handleBackOrClose
45911
- ]);
45912
- (0, import_react213.useEffect)(function() {
45913
- var handleAndroidBackEvent = function() {
45914
- handleBack();
45915
- return true;
45916
- };
45917
- import_react_native206.BackHandler.addEventListener("hardwareBackPress", handleAndroidBackEvent);
45918
- return function() {
45919
- import_react_native206.BackHandler.removeEventListener("hardwareBackPress", handleAndroidBackEvent);
45920
- };
45921
- }, [
45922
- handleBack
45923
- ]);
45924
- return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(NavigationBarImpressionArea, {
45967
+ var navigationEvent = useNavigationEvent();
45968
+ useHardwareBackPress(navigationEvent.handleBack);
45969
+ return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(NavigationBarImpressionArea, {
45925
45970
  withHomeButton,
45926
- children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(TopNavigation, {
45971
+ children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(TopNavigation, {
45927
45972
  title: globals.brandDisplayName,
45928
45973
  icon: toIcon(globals.brandIcon),
45929
45974
  onPressDots: openMoreButtonBottomSheet,
45930
45975
  contentVisible: true,
45931
- onPressTitle: withHomeButton ? handlePressTitle : void 0,
45932
- onPressClose: handleClose,
45976
+ onPressTitle: withHomeButton ? navigationEvent.handleHomeButtonClick : void 0,
45977
+ onPressClose: navigationEvent.handleCloseButtonClick,
45933
45978
  withHome: withHomeButton,
45934
- fixedRightButton: initialAccessoryButton ? {
45935
- title: initialAccessoryButton.title,
45936
- icon: initialAccessoryButton.icon,
45937
- id: initialAccessoryButton.id
45938
- } : void 0,
45939
- children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(NavigationLeft2, {
45979
+ fixedRightButton: initialAccessoryButton,
45980
+ children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(NavigationLeft2, {
45940
45981
  visible: withBackButton,
45941
- children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(NavigationBackButton2, {
45942
- onPress: handleBack,
45982
+ children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(NavigationBackButton2, {
45983
+ onPress: navigationEvent.handleBack,
45943
45984
  canGoBack: false
45944
45985
  })
45945
45986
  })
45946
45987
  })
45947
45988
  });
45948
45989
  }
45949
- function useBackOrCloseNavigation3() {
45950
- var navigation = useNavigation();
45951
- var captureExitLog = useCaptureExitLog().captureExitLog;
45952
- return (0, import_react213.useCallback)(function() {
45953
- if (navigation.canGoBack()) {
45954
- navigation.goBack();
45955
- } else {
45956
- captureExitLog(Date.now());
45957
- closeView();
45990
+ function GameNavigationBar() {
45991
+ var safeAreaTop = useSafeAreaTop();
45992
+ var global2 = getAppsInTossGlobals();
45993
+ var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
45994
+ var navigationEvent = useNavigationEvent();
45995
+ useHardwareBackPress(navigationEvent.handleBack);
45996
+ var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
45997
+ var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
45998
+ return /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(import_jsx_runtime224.Fragment, {
45999
+ children: [
46000
+ /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(PageNavbar, {
46001
+ preference: {
46002
+ type: "none"
46003
+ }
46004
+ }),
46005
+ /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_react_native218.View, {
46006
+ style: {
46007
+ width: "100%",
46008
+ // TODO: UI관련 스타일 설정은 TDS로 이관
46009
+ height: import_react_native218.Platform.OS === "ios" ? 44 : 54,
46010
+ flexDirection: "row",
46011
+ alignItems: "center",
46012
+ justifyContent: "flex-end",
46013
+ position: "absolute",
46014
+ zIndex: Z_INDEX.CLOSE_BUTTON,
46015
+ marginTop: safeAreaTop,
46016
+ paddingRight: 10
46017
+ },
46018
+ pointerEvents: "box-none",
46019
+ children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(NavigationRightContent, {
46020
+ fixedRightButton: initialAccessoryButton,
46021
+ onPressDots: openMoreButtonBottomSheet,
46022
+ onPressClose: navigationEvent.handleCloseButtonClick,
46023
+ theme: "dark"
46024
+ })
46025
+ })
46026
+ ]
46027
+ });
46028
+ }
46029
+ function RNAppContainer(param) {
46030
+ var children = param.children;
46031
+ var global2 = getAppsInTossGlobals();
46032
+ switch (global2.appType) {
46033
+ case "game":
46034
+ return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(GameAppContainer, {
46035
+ children
46036
+ });
46037
+ case "general":
46038
+ default:
46039
+ return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(GeneralAppContainer, {
46040
+ children
46041
+ });
46042
+ }
46043
+ }
46044
+ function GameAppContainer(param) {
46045
+ var children = param.children;
46046
+ var _useState3 = _sliced_to_array((0, import_react213.useState)(false), 2), isEntryMessageExited = _useState3[0], setIsEntryMessageExited = _useState3[1];
46047
+ (0, import_react213.useEffect)(function() {
46048
+ if (import_react_native205.Platform.OS === "ios") {
46049
+ setIosSwipeGestureEnabled({
46050
+ isEnabled: false
46051
+ });
46052
+ return function() {
46053
+ setIosSwipeGestureEnabled({
46054
+ isEnabled: true
46055
+ });
46056
+ };
45958
46057
  }
45959
- }, [
45960
- captureExitLog,
45961
- navigation
45962
- ]);
46058
+ return;
46059
+ }, []);
46060
+ (0, import_react213.useEffect)(function() {
46061
+ appsInTossEvent.addEventListener("entryMessageExited", {
46062
+ onEvent: function() {
46063
+ setIsEntryMessageExited(true);
46064
+ }
46065
+ });
46066
+ }, []);
46067
+ return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(import_jsx_runtime225.Fragment, {
46068
+ children: [
46069
+ /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(RNNavigationBar.Game, {}),
46070
+ (0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(GameProfile, {
46071
+ isReadyForProfileUI: isEntryMessageExited,
46072
+ children
46073
+ }) : children
46074
+ ]
46075
+ });
46076
+ }
46077
+ function GeneralAppContainer(param) {
46078
+ var children = param.children;
46079
+ return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(import_jsx_runtime225.Fragment, {
46080
+ children: [
46081
+ /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(RNNavigationBar.Default, {}),
46082
+ children
46083
+ ]
46084
+ });
45963
46085
  }
45964
46086
  function AppsInTossContainer(Container, _param) {
45965
46087
  var children = _param.children, initialProps = _object_without_properties(_param, [
@@ -45969,28 +46091,28 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45969
46091
  android: "5.220.0",
45970
46092
  ios: "5.221.0"
45971
46093
  })) {
45972
- return /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)(import_jsx_runtime222.Fragment, {
46094
+ return /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(import_jsx_runtime226.Fragment, {
45973
46095
  children: [
45974
- /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(AppEvent.Entry, {}),
45975
- /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(AppEvent.System, _object_spread({}, initialProps)),
45976
- /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(AppUpdate, {})
46096
+ /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppEvent.Entry, {}),
46097
+ /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppEvent.System, _object_spread({}, initialProps)),
46098
+ /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppUpdate, {})
45977
46099
  ]
45978
46100
  });
45979
46101
  }
45980
- return /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)(import_jsx_runtime222.Fragment, {
46102
+ return /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(import_jsx_runtime226.Fragment, {
45981
46103
  children: [
45982
- /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(AppEvent.StayTime, {}),
45983
- /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(AppEvent.Entry, {}),
45984
- /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(AppEvent.System, _object_spread({}, initialProps)),
45985
- /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Container, _object_spread_props(_object_spread({}, initialProps), {
45986
- children: /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(TDSProvider, {
46104
+ /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(AppEvent.StayTime, {}),
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)(Container, _object_spread_props(_object_spread({}, initialProps), {
46108
+ children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(TDSProvider, {
45987
46109
  colorPreference: "light",
45988
46110
  token: {
45989
46111
  color: {
45990
46112
  primary: getAppsInTossGlobals().brandPrimaryColor
45991
46113
  }
45992
46114
  },
45993
- children: /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(TDSContainer, _object_spread_props(_object_spread({}, initialProps), {
46115
+ children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(TDSContainer, _object_spread_props(_object_spread({}, initialProps), {
45994
46116
  children
45995
46117
  }))
45996
46118
  })
@@ -46001,7 +46123,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46001
46123
  function TDSContainer(param) {
46002
46124
  var children = param.children;
46003
46125
  useAppsInTossBridge();
46004
- return /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(import_jsx_runtime222.Fragment, {
46126
+ return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(import_jsx_runtime226.Fragment, {
46005
46127
  children
46006
46128
  });
46007
46129
  }
@@ -46034,12 +46156,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46034
46156
  }
46035
46157
  function AppsInTossScreenContainer(param) {
46036
46158
  var children = param.children;
46037
- var isReactNativeService = getAppsInTossGlobals().webViewType == null;
46038
- return /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)(Analytics.Screen, {
46039
- children: [
46040
- isReactNativeService && /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(RNNavigationBar, {}),
46159
+ var isRNApp = getAppsInTossGlobals().webViewType == null;
46160
+ return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Analytics.Screen, {
46161
+ children: isRNApp ? /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(RNAppContainer, {
46041
46162
  children
46042
- ]
46163
+ }) : children
46043
46164
  });
46044
46165
  }
46045
46166
  function getAppName() {
@@ -46059,7 +46180,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46059
46180
  var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
46060
46181
  var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
46061
46182
  var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
46062
- var handleGameWebviewClose = (0, import_react221.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
46183
+ var handleGameWebviewClose = (0, import_react224.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
46063
46184
  var isConfirmed;
46064
46185
  return __generator(this, function(_state) {
46065
46186
  switch (_state.label) {
@@ -46093,18 +46214,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46093
46214
  logging,
46094
46215
  openConfirm
46095
46216
  ]);
46096
- return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(import_jsx_runtime225.Fragment, {
46217
+ return /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(import_jsx_runtime227.Fragment, {
46097
46218
  children: [
46098
- /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(PageNavbar, {
46219
+ /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(PageNavbar, {
46099
46220
  preference: {
46100
46221
  type: "none"
46101
46222
  }
46102
46223
  }),
46103
- /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(import_react_native221.View, {
46224
+ /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(import_react_native223.View, {
46104
46225
  style: {
46105
46226
  width: "100%",
46106
46227
  // TODO: UI관련 스타일 설정은 TDS로 이관
46107
- height: import_react_native221.Platform.OS === "ios" ? 44 : 54,
46228
+ height: import_react_native223.Platform.OS === "ios" ? 44 : 54,
46108
46229
  flexDirection: "row",
46109
46230
  alignItems: "center",
46110
46231
  justifyContent: "flex-end",
@@ -46114,7 +46235,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46114
46235
  paddingRight: 10
46115
46236
  },
46116
46237
  pointerEvents: "box-none",
46117
- children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(NavigationRightContent, {
46238
+ children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(NavigationRightContent, {
46118
46239
  fixedRightButton: initialAccessoryButton,
46119
46240
  onPressDots: openMoreButtonBottomSheet,
46120
46241
  onPressClose: function() {
@@ -46139,7 +46260,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46139
46260
  var _parsedNavigationBar_withBackButton;
46140
46261
  var withBackButton = (_parsedNavigationBar_withBackButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withBackButton) !== null && _parsedNavigationBar_withBackButton !== void 0 ? _parsedNavigationBar_withBackButton : true;
46141
46262
  var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
46142
- var handleClose = (0, import_react223.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
46263
+ var handleClose = (0, import_react226.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
46143
46264
  var isConfirmed;
46144
46265
  return __generator(this, function(_state) {
46145
46266
  switch (_state.label) {
@@ -46173,9 +46294,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46173
46294
  logging,
46174
46295
  openConfirm
46175
46296
  ]);
46176
- return /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(NavigationBarImpressionArea, {
46297
+ return /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(NavigationBarImpressionArea, {
46177
46298
  withHomeButton,
46178
- children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(TopNavigation, {
46299
+ children: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(TopNavigation, {
46179
46300
  title: globals.brandDisplayName,
46180
46301
  icon: toIcon(globals.brandIcon),
46181
46302
  onPressDots: openMoreButtonBottomSheet,
@@ -46184,9 +46305,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46184
46305
  onPressClose: handleClose,
46185
46306
  withHome: withHomeButton,
46186
46307
  fixedRightButton: initialAccessoryButton,
46187
- children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(NavigationLeft2, {
46308
+ children: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(NavigationLeft2, {
46188
46309
  visible: withBackButton,
46189
- children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(NavigationBackButton2, {
46310
+ children: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(NavigationBackButton2, {
46190
46311
  onPress: onBackButtonClick,
46191
46312
  canGoBack: false
46192
46313
  })
@@ -46254,8 +46375,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46254
46375
  }
46255
46376
  function useBridgeHandler(param) {
46256
46377
  var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap, originalInjectedJavaScript = param.injectedJavaScript;
46257
- var ref = (0, import_react224.useRef)(null);
46258
- var injectedJavaScript = (0, import_react224.useMemo)(function() {
46378
+ var ref = (0, import_react227.useRef)(null);
46379
+ var injectedJavaScript = (0, import_react227.useMemo)(function() {
46259
46380
  return [
46260
46381
  "window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function(acc, param2) {
46261
46382
  var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
@@ -46282,7 +46403,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46282
46403
  (_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 "));
46283
46404
  };
46284
46405
  };
46285
- var $onMessage = (0, import_react224.useCallback)(
46406
+ var $onMessage = (0, import_react227.useCallback)(
46286
46407
  function() {
46287
46408
  var _ref = _async_to_generator(function(e61) {
46288
46409
  var data, _eventListenerMap_data_functionName, handleOnEvent, handleOnError, remove, key, remove1, _ref_current;
@@ -46395,8 +46516,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46395
46516
  }
46396
46517
  }
46397
46518
  function useWebViewHistory() {
46398
- var _useReducer = _sliced_to_array((0, import_react226.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
46399
- var onNavigationStateChange = (0, import_react226.useCallback)(function(param) {
46519
+ var _useReducer = _sliced_to_array((0, import_react229.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
46520
+ var onNavigationStateChange = (0, import_react229.useCallback)(function(param) {
46400
46521
  var url = param.url, canGoForward2 = param.canGoForward;
46401
46522
  dispatch({
46402
46523
  type: "NAVIGATION_CHANGE",
@@ -46404,7 +46525,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46404
46525
  canGoForward: canGoForward2
46405
46526
  });
46406
46527
  }, []);
46407
- var _useMemo3 = (0, import_react226.useMemo)(function() {
46528
+ var _useMemo4 = (0, import_react229.useMemo)(function() {
46408
46529
  var canBack = state.index > 0;
46409
46530
  var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
46410
46531
  return {
@@ -46414,7 +46535,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46414
46535
  }, [
46415
46536
  state.index,
46416
46537
  state.stack.length
46417
- ]), canGoBack = _useMemo3.canGoBack, canGoForward = _useMemo3.canGoForward;
46538
+ ]), canGoBack = _useMemo4.canGoBack, canGoForward = _useMemo4.canGoForward;
46418
46539
  return {
46419
46540
  onNavigationStateChange,
46420
46541
  hasHistory: canGoBack,
@@ -46428,17 +46549,17 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46428
46549
  var logging = useNavigationBarLogging();
46429
46550
  var openConfirm = useDialog().openConfirm;
46430
46551
  var global2 = getAppsInTossGlobals();
46431
- var addEventListener = (0, import_react225.useCallback)(function(handler) {
46552
+ var addEventListener = (0, import_react228.useCallback)(function(handler) {
46432
46553
  addWebBackEventListener(handler);
46433
46554
  }, [
46434
46555
  addWebBackEventListener
46435
46556
  ]);
46436
- var removeEventListener = (0, import_react225.useCallback)(function(handler) {
46557
+ var removeEventListener = (0, import_react228.useCallback)(function(handler) {
46437
46558
  removeWebBackEventListener(handler);
46438
46559
  }, [
46439
46560
  removeWebBackEventListener
46440
46561
  ]);
46441
- var handleWebBack = (0, import_react225.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
46562
+ var handleWebBack = (0, import_react228.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
46442
46563
  var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current, isConfirmed;
46443
46564
  return __generator(this, function(_state) {
46444
46565
  switch (_state.label) {
@@ -46512,7 +46633,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46512
46633
  openConfirm,
46513
46634
  webViewRef
46514
46635
  ]);
46515
- var handleWebHome = (0, import_react225.useCallback)(function() {
46636
+ var handleWebHome = (0, import_react228.useCallback)(function() {
46516
46637
  var _webViewRef_current;
46517
46638
  logging.homeButtonClick();
46518
46639
  if (hasWebBackEvent) {
@@ -46545,7 +46666,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46545
46666
  logging,
46546
46667
  webViewRef
46547
46668
  ]);
46548
- return (0, import_react225.useMemo)(function() {
46669
+ return (0, import_react228.useMemo)(function() {
46549
46670
  return {
46550
46671
  addEventListener,
46551
46672
  removeEventListener,
@@ -46721,7 +46842,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46721
46842
  var batteryModePreference = param.batteryModePreference, colorPreference = param.colorPreference, locale = param.locale, navbarPreference = param.navbarPreference, pureSafeArea = param.pureSafeArea, safeArea = param.safeArea, safeAreaBottomTransparency = param.safeAreaBottomTransparency;
46722
46843
  var platform = getPlatformOS();
46723
46844
  var appVersion = getTossAppVersion();
46724
- var fontScale = (0, import_react_native224.useWindowDimensions)().fontScale;
46845
+ var fontScale = (0, import_react_native226.useWindowDimensions)().fontScale;
46725
46846
  var platformString = platform === "ios" ? "iPhone" : "Android";
46726
46847
  var fontA11y = mapFontScaleToCategory(fontScale, platform);
46727
46848
  var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
@@ -46787,9 +46908,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46787
46908
  if (!TYPES.includes(type)) {
46788
46909
  throw new Error("Invalid WebView type: '".concat(type, "'"));
46789
46910
  }
46790
- var webViewRef = (0, import_react217.useRef)(null);
46911
+ var webViewRef = (0, import_react222.useRef)(null);
46791
46912
  var webBackHandler = useWebBackHandler(webViewRef);
46792
- var uri = (0, import_react217.useMemo)(function() {
46913
+ var uri = (0, import_react222.useMemo)(function() {
46793
46914
  return getWebViewUri(local);
46794
46915
  }, [
46795
46916
  local
@@ -46799,7 +46920,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46799
46920
  var global2 = getAppsInTossGlobals();
46800
46921
  var topNavigation = useTopNavigation();
46801
46922
  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 ";
46802
- var _useState5 = _sliced_to_array((0, import_react217.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState5[0], setAllowsBackForwardNavigationGestures = _useState5[1];
46923
+ var _useState6 = _sliced_to_array((0, import_react222.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState6[0], setAllowsBackForwardNavigationGestures = _useState6[1];
46803
46924
  var handler = useBridgeHandler({
46804
46925
  onMessage,
46805
46926
  injectedJavaScript: [
@@ -46934,7 +47055,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46934
47055
  completeProductGrant: IAP.completeProductGrant
46935
47056
  })
46936
47057
  });
46937
- var headerPropForExternalWebView = (0, import_react217.useMemo)(function() {
47058
+ var headerPropForExternalWebView = (0, import_react222.useMemo)(function() {
46938
47059
  var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
46939
47060
  var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
46940
47061
  var _parsedNavigationBar_withBackButton;
@@ -46959,19 +47080,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46959
47080
  colorPreference: "light"
46960
47081
  });
46961
47082
  var refs = mergeRefs4(handler.ref, webViewRef);
46962
- (0, import_react217.useEffect)(function() {
47083
+ (0, import_react222.useEffect)(function() {
46963
47084
  var callback = function() {
46964
47085
  webBackHandler.handleWebBack();
46965
47086
  return true;
46966
47087
  };
46967
- import_react_native215.BackHandler.addEventListener("hardwareBackPress", callback);
47088
+ import_react_native220.BackHandler.addEventListener("hardwareBackPress", callback);
46968
47089
  return function() {
46969
- return import_react_native215.BackHandler.removeEventListener("hardwareBackPress", callback);
47090
+ return import_react_native220.BackHandler.removeEventListener("hardwareBackPress", callback);
46970
47091
  };
46971
47092
  }, [
46972
47093
  webBackHandler
46973
47094
  ]);
46974
- return /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(BaseWebView, _object_spread_props(_object_spread({
47095
+ return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(BaseWebView, _object_spread_props(_object_spread({
46975
47096
  ref: refs
46976
47097
  }, props, headerPropForExternalWebView), {
46977
47098
  source: {
@@ -46991,18 +47112,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46991
47112
  (_props_onNavigationStateChange = props.onNavigationStateChange) === null || _props_onNavigationStateChange === void 0 ? void 0 : _props_onNavigationStateChange.call(props, event);
46992
47113
  webBackHandler.onNavigationStateChange(event);
46993
47114
  },
46994
- userAgent: import_react_native215.Platform.OS === "ios" ? userAgent : void 0,
47115
+ userAgent: import_react_native220.Platform.OS === "ios" ? userAgent : void 0,
46995
47116
  sharedCookiesEnabled: true,
46996
47117
  webviewDebuggingEnabled: webViewDebuggingEnabled,
46997
47118
  thirdPartyCookiesEnabled: true,
46998
47119
  onMessage: handler.onMessage,
46999
47120
  injectedJavaScript: handler.injectedJavaScript,
47000
47121
  injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript,
47001
- decelerationRate: import_react_native215.Platform.OS === "ios" ? 1 : void 0,
47122
+ decelerationRate: import_react_native220.Platform.OS === "ios" ? 1 : void 0,
47002
47123
  allowsBackForwardNavigationGestures
47003
47124
  }));
47004
47125
  }
47005
- var import_react_native199, import_react208, import_react209, import_react210, import_react211, import_jsx_runtime217, import_react212, import_react213, import_react_native206, import_react214, import_jsx_runtime218, import_react215, import_react_native210, import_jsx_runtime219, import_react216, import_react_native213, import_jsx_runtime220, import_jsx_runtime221, import_jsx_runtime222, import_react217, import_react_native215, import_react218, import_react_native216, import_react219, import_react_native217, import_react220, import_jsx_runtime223, import_jsx_runtime224, import_react221, import_react_native221, import_jsx_runtime225, import_jsx_runtime226, import_react222, import_react223, import_jsx_runtime227, import_jsx_runtime228, import_react224, import_react225, import_react226, import_react_native224, import_react227, import_react228, import_jsx_runtime229, env, EXIT_IMPRESSION_LOG_NAME, EXIT_IMPRESSION_SCHEMA_ID, ENTRY_APP_EVENT_SCHEMA_ID, AppEvent, UPDATE_SCHEME, 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, 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, APP_BRIDGE_METHOD_NAME, MIN_VERSION, AppsInToss, GAME_PROFILE_WEBVIEW_URL, GAME_CENTER_MIN_VERSION3, useGameProfileToast, DEFAULT_ERROR, INTERNAL__onVisibilityChangedByTransparentServiceWeb, openTransparentWebView, useGameCenterProfile, Z_INDEX, GameProfile, overlayStyle, GameWebView, PartnerWebView, globalEventListenerMap, INITIAL_STATE, HISTORY_BACK_SCRIPT, HISTORY_HOME_SCRIPT, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId, getReferrer3, trackScreen, operationalEnvironment, TYPES, WEBVIEW_TYPES, Analytics2;
47126
+ var import_react_native199, import_react208, import_react209, import_react210, import_react211, import_jsx_runtime217, import_react212, import_react213, import_react_native205, import_react214, import_react_native206, import_react215, import_jsx_runtime218, import_react_native208, import_jsx_runtime219, import_react216, import_react_native210, import_react217, import_react218, import_react219, import_react_native215, import_jsx_runtime220, import_react220, import_jsx_runtime221, import_react221, import_jsx_runtime222, import_jsx_runtime223, import_react_native218, import_jsx_runtime224, import_jsx_runtime225, import_jsx_runtime226, import_react222, import_react_native220, import_react223, import_react_native221, import_react224, import_react_native223, import_jsx_runtime227, import_jsx_runtime228, import_react225, import_react226, import_jsx_runtime229, import_jsx_runtime230, import_react227, import_react228, import_react229, import_react_native226, import_react230, import_react231, 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;
47006
47127
  var init_dist8 = __esm({
47007
47128
  "../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.js"() {
47008
47129
  "use strict";
@@ -47038,37 +47159,65 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47038
47159
  init_dist6();
47039
47160
  init_esm8();
47040
47161
  import_react212 = __toESM(require_react(), 1);
47162
+ init_dist6();
47163
+ import_react213 = __toESM(require_react(), 1);
47164
+ import_react_native205 = __toESM(require_react_native(), 1);
47165
+ init_dist6();
47166
+ init_esm8();
47167
+ import_react214 = __toESM(require_react(), 1);
47168
+ import_react_native206 = __toESM(require_react_native(), 1);
47169
+ init_dist6();
47041
47170
  init_src3();
47042
47171
  init_esm8();
47172
+ init_dist7();
47173
+ import_react215 = __toESM(require_react(), 1);
47174
+ init_esm8();
47043
47175
  init_private2();
47176
+ import_jsx_runtime218 = __toESM(require_jsx_runtime(), 1);
47177
+ import_react_native208 = __toESM(require_react_native(), 1);
47178
+ init_src3();
47179
+ init_dist6();
47180
+ import_jsx_runtime219 = __toESM(require_jsx_runtime(), 1);
47181
+ init_private2();
47182
+ import_react216 = __toESM(require_react(), 1);
47183
+ import_react_native210 = __toESM(require_react_native(), 1);
47184
+ init_src3();
47185
+ import_react217 = __toESM(require_react(), 1);
47186
+ init_esm8();
47044
47187
  init_dist7();
47045
- import_react213 = __toESM(require_react(), 1);
47046
- import_react_native206 = __toESM(require_react_native(), 1);
47047
- import_react214 = __toESM(require_react(), 1);
47188
+ import_react218 = __toESM(require_react(), 1);
47048
47189
  init_dist6();
47049
47190
  init_src3();
47050
- import_jsx_runtime218 = __toESM(require_jsx_runtime(), 1);
47051
47191
  init_dist6();
47052
47192
  init_src3();
47053
47193
  init_esm8();
47054
47194
  init_private2();
47055
- import_react215 = __toESM(require_react(), 1);
47195
+ import_react219 = __toESM(require_react(), 1);
47056
47196
  init_dist6();
47057
47197
  init_src3();
47058
47198
  init_esm8();
47059
47199
  init_private2();
47060
- import_react_native210 = __toESM(require_react_native(), 1);
47200
+ import_react_native215 = __toESM(require_react_native(), 1);
47061
47201
  init_dist6();
47062
47202
  init_src3();
47063
- import_jsx_runtime219 = __toESM(require_jsx_runtime(), 1);
47203
+ import_jsx_runtime220 = __toESM(require_jsx_runtime(), 1);
47064
47204
  init_dist6();
47065
47205
  init_src3();
47066
47206
  init_esm8();
47067
- import_react216 = __toESM(require_react(), 1);
47068
- import_react_native213 = __toESM(require_react_native(), 1);
47069
- import_jsx_runtime220 = __toESM(require_jsx_runtime(), 1);
47207
+ import_react220 = __toESM(require_react(), 1);
47070
47208
  import_jsx_runtime221 = __toESM(require_jsx_runtime(), 1);
47209
+ import_react221 = __toESM(require_react(), 1);
47071
47210
  import_jsx_runtime222 = __toESM(require_jsx_runtime(), 1);
47211
+ import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
47212
+ init_esm8();
47213
+ init_private2();
47214
+ import_react_native218 = __toESM(require_react_native(), 1);
47215
+ import_jsx_runtime224 = __toESM(require_jsx_runtime(), 1);
47216
+ init_async_bridges();
47217
+ init_constant_bridges2();
47218
+ init_event_bridges();
47219
+ import_jsx_runtime225 = __toESM(require_jsx_runtime(), 1);
47220
+ import_jsx_runtime226 = __toESM(require_jsx_runtime(), 1);
47072
47221
  init_dist6();
47073
47222
  init_async_bridges();
47074
47223
  init_constant_bridges2();
@@ -47076,61 +47225,84 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47076
47225
  init_src3();
47077
47226
  init_esm8();
47078
47227
  init_private2();
47079
- import_react217 = __toESM(require_react(), 1);
47080
- import_react_native215 = __toESM(require_react_native(), 1);
47228
+ import_react222 = __toESM(require_react(), 1);
47229
+ import_react_native220 = __toESM(require_react_native(), 1);
47081
47230
  init_dist6();
47082
47231
  init_react_native_webview();
47083
- import_react218 = __toESM(require_react(), 1);
47084
- import_react_native216 = __toESM(require_react_native(), 1);
47085
- init_dist6();
47086
- init_esm8();
47087
- import_react219 = __toESM(require_react(), 1);
47088
- import_react_native217 = __toESM(require_react_native(), 1);
47089
- init_dist6();
47090
- init_src3();
47091
- init_esm8();
47092
- init_dist7();
47093
- import_react220 = __toESM(require_react(), 1);
47094
- init_esm8();
47095
- init_private2();
47096
- import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
47097
- init_src3();
47098
- init_dist6();
47099
- import_jsx_runtime224 = __toESM(require_jsx_runtime(), 1);
47232
+ import_react223 = __toESM(require_react(), 1);
47233
+ import_react_native221 = __toESM(require_react_native(), 1);
47100
47234
  init_src3();
47101
47235
  init_esm8();
47102
47236
  init_private2();
47103
47237
  init_dist7();
47104
- import_react221 = __toESM(require_react(), 1);
47105
- import_react_native221 = __toESM(require_react_native(), 1);
47106
- import_jsx_runtime225 = __toESM(require_jsx_runtime(), 1);
47107
- import_jsx_runtime226 = __toESM(require_jsx_runtime(), 1);
47238
+ import_react224 = __toESM(require_react(), 1);
47239
+ import_react_native223 = __toESM(require_react_native(), 1);
47240
+ import_jsx_runtime227 = __toESM(require_jsx_runtime(), 1);
47241
+ import_jsx_runtime228 = __toESM(require_jsx_runtime(), 1);
47108
47242
  init_react_native_webview();
47109
- import_react222 = __toESM(require_react(), 1);
47243
+ import_react225 = __toESM(require_react(), 1);
47110
47244
  init_src3();
47111
47245
  init_esm8();
47112
47246
  init_private2();
47113
47247
  init_dist7();
47114
- import_react223 = __toESM(require_react(), 1);
47115
- import_jsx_runtime227 = __toESM(require_jsx_runtime(), 1);
47116
- import_jsx_runtime228 = __toESM(require_jsx_runtime(), 1);
47117
- import_react224 = __toESM(require_react(), 1);
47248
+ import_react226 = __toESM(require_react(), 1);
47249
+ import_jsx_runtime229 = __toESM(require_jsx_runtime(), 1);
47250
+ import_jsx_runtime230 = __toESM(require_jsx_runtime(), 1);
47251
+ import_react227 = __toESM(require_react(), 1);
47118
47252
  init_src3();
47119
47253
  init_esm8();
47120
47254
  init_dist7();
47121
- import_react225 = __toESM(require_react(), 1);
47122
- import_react226 = __toESM(require_react(), 1);
47255
+ import_react228 = __toESM(require_react(), 1);
47256
+ import_react229 = __toESM(require_react(), 1);
47123
47257
  init_dist6();
47124
- import_react_native224 = __toESM(require_react_native(), 1);
47258
+ import_react_native226 = __toESM(require_react_native(), 1);
47125
47259
  init_dist6();
47126
- import_react227 = __toESM(require_react(), 1);
47127
- import_react228 = __toESM(require_react(), 1);
47260
+ import_react230 = __toESM(require_react(), 1);
47261
+ import_react231 = __toESM(require_react(), 1);
47128
47262
  init_dist6();
47129
47263
  init_src3();
47130
- import_jsx_runtime229 = __toESM(require_jsx_runtime(), 1);
47264
+ import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
47131
47265
  init_dist3();
47132
47266
  init_dist6();
47133
47267
  init_dist4();
47268
+ __defProp2 = Object.defineProperty;
47269
+ __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
47270
+ __getOwnPropNames2 = Object.getOwnPropertyNames;
47271
+ __hasOwnProp2 = Object.prototype.hasOwnProperty;
47272
+ __copyProps2 = function(to3, from, except, desc) {
47273
+ if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
47274
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
47275
+ try {
47276
+ var _loop = function() {
47277
+ var key = _step.value;
47278
+ if (!__hasOwnProp2.call(to3, key) && key !== except) __defProp2(to3, key, {
47279
+ get: function() {
47280
+ return from[key];
47281
+ },
47282
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
47283
+ });
47284
+ };
47285
+ for (var _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) _loop();
47286
+ } catch (err) {
47287
+ _didIteratorError = true;
47288
+ _iteratorError = err;
47289
+ } finally {
47290
+ try {
47291
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
47292
+ _iterator.return();
47293
+ }
47294
+ } finally {
47295
+ if (_didIteratorError) {
47296
+ throw _iteratorError;
47297
+ }
47298
+ }
47299
+ }
47300
+ }
47301
+ return to3;
47302
+ };
47303
+ __reExport2 = function(target, mod, secondTarget) {
47304
+ return __copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default");
47305
+ };
47134
47306
  env = {
47135
47307
  getDeploymentId: function() {
47136
47308
  var _global___appsInToss;
@@ -47146,52 +47318,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47146
47318
  StayTime: StayTimeAppEvent
47147
47319
  };
47148
47320
  UPDATE_SCHEME = "servicetoss://update/forced/j?updateType=required";
47149
- NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
47150
- NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
47151
- CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
47152
- CLOSE_POPUP_SHOW_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app";
47153
- CLOSE_BUTTON_CLICK_SCHEMA_ID = 1596831;
47154
- CLOSE_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_close";
47155
- CLOSE_POPUP_CTA_CLICK_SCHEMA_ID = 1644492;
47156
- CLOSE_POPUP_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app::click__cta";
47157
- HOME_BUTTON_CLICK_SCHEMA_ID = 1596839;
47158
- HOME_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_home";
47159
- BOTTOM_SHEET_SCHEMA_ID = 1596825;
47160
- BOTTOM_SHEET_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more";
47161
- BOTTOM_SHEET_OPEN_SCHEMA_ID = 1596829;
47162
- BOTTOM_SHEET_OPEN_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_more";
47163
- BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID = 1596843;
47164
- BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more::click__close";
47165
- BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID = 1596841;
47166
- BOTTOM_SHEET_MENU_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more::click__menu";
47167
- SHARE_SCHEME_REFERRER = "appsintoss.common_module_share";
47168
- APP_SHARE_MENU_INFO = {
47169
- contactItemName: "\uACF5\uC720\uD558\uAE30",
47170
- contactIconUrl: "https://static.toss.im/icons/png/4x/icon-share-dots-mono.png"
47171
- };
47172
- PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
47173
- APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
47174
- getMarketLink = function() {
47175
- return import_react_native213.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
47176
- };
47177
- UPDATE_DIALOG_SCHEMA_ID = 1634992;
47178
- UPDATE_DIALOG_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update";
47179
- UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID = 1634996;
47180
- UPDATE_DIALOG_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update::click__cta";
47181
- APP_BRIDGE_METHOD_NAME = "getMiniAppsSupportContact";
47182
- MIN_VERSION = {
47183
- BOTTOM_SHEET: {
47184
- android: "5.226.0",
47185
- ios: "5.226.0"
47186
- },
47187
- SHARE_LIST_MENU: {
47188
- android: "5.230.0",
47189
- ios: "5.230.0"
47190
- }
47191
- };
47192
- AppsInToss = {
47193
- registerApp
47194
- };
47195
47321
  GAME_PROFILE_WEBVIEW_URL = "servicetoss://game-center/profile";
47196
47322
  GAME_CENTER_MIN_VERSION3 = {
47197
47323
  android: "5.221.0",
@@ -47203,10 +47329,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47203
47329
  return new Promise(function(resolve) {
47204
47330
  overlay.open(function(param) {
47205
47331
  var isOpen = param.isOpen, close = param.close, exit = param.exit;
47206
- return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(ColorPreferenceProvider, {
47332
+ return /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(ColorPreferenceProvider, {
47207
47333
  colorPreference: "dark",
47208
- children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(AdaptiveColorProvider, {
47209
- children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Toast, {
47334
+ children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(AdaptiveColorProvider, {
47335
+ children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Toast, {
47210
47336
  open: isOpen,
47211
47337
  onClose: function() {
47212
47338
  resolve();
@@ -47215,7 +47341,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47215
47341
  onExited: exit,
47216
47342
  position: "top",
47217
47343
  text: "".concat(nickname, "\uB2D8 \uBC18\uAC00\uC6CC\uC694!"),
47218
- icon: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Asset2.Image, {
47344
+ icon: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Asset2.Image, {
47219
47345
  style: {
47220
47346
  borderRadius: 64,
47221
47347
  overflow: "hidden"
@@ -47239,6 +47365,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47239
47365
  title: "\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",
47240
47366
  description: "\uBB38\uC81C\uAC00 \uACC4\uC18D\uB418\uBA74 \uD1A0\uC2A4 \uACE0\uAC1D\uC13C\uD130(1599-4905)\uB85C \uBB38\uC758\uD574\uC8FC\uC138\uC694."
47241
47367
  };
47368
+ PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
47369
+ APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
47370
+ getMarketLink = function() {
47371
+ return import_react_native208.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
47372
+ };
47242
47373
  INTERNAL__onVisibilityChangedByTransparentServiceWeb = onVisibilityChangedByTransparentServiceWeb;
47243
47374
  openTransparentWebView = function(param) {
47244
47375
  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;
@@ -47267,17 +47398,17 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47267
47398
  openURL(url.toString());
47268
47399
  };
47269
47400
  useGameCenterProfile = function(isReadyForProfileUI) {
47270
- var _useState2 = _sliced_to_array((0, import_react220.useState)(void 0), 2), profileData = _useState2[0], setProfileData = _useState2[1];
47271
- var _useState21 = _sliced_to_array((0, import_react220.useState)(true), 2), isProfileDataLoading = _useState21[0], setIsProfileDataLoading = _useState21[1];
47272
- var _useState22 = _sliced_to_array((0, import_react220.useState)(false), 2), isProfileDataRefetching = _useState22[0], setIsProfileDataRefetching = _useState22[1];
47401
+ var _useState = _sliced_to_array((0, import_react215.useState)(void 0), 2), profileData = _useState[0], setProfileData = _useState[1];
47402
+ var _useState1 = _sliced_to_array((0, import_react215.useState)(true), 2), isProfileDataLoading = _useState1[0], setIsProfileDataLoading = _useState1[1];
47403
+ var _useState2 = _sliced_to_array((0, import_react215.useState)(false), 2), isProfileDataRefetching = _useState2[0], setIsProfileDataRefetching = _useState2[1];
47273
47404
  var shouldShowLoadingOverlay = isProfileDataLoading && isReadyForProfileUI;
47274
47405
  var shouldShowProfileNotFoundOverlay = (profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && isReadyForProfileUI && !isProfileDataRefetching;
47275
47406
  var canShowBottomSheetOrToast = !isProfileDataLoading && isReadyForProfileUI;
47276
- var _useState23 = _sliced_to_array((0, import_react220.useState)(false), 2), isWebviewLoading = _useState23[0], setIsWebviewLoading = _useState23[1];
47277
- var isCompletedProfileFlow = (0, import_react220.useRef)(false);
47278
- var _useDialog4 = useDialog(), openAlert = _useDialog4.openAlert, openConfirm = _useDialog4.openConfirm;
47407
+ var _useState3 = _sliced_to_array((0, import_react215.useState)(false), 2), isWebviewLoading = _useState3[0], setIsWebviewLoading = _useState3[1];
47408
+ var isCompletedProfileFlow = (0, import_react215.useRef)(false);
47409
+ var _useDialog = useDialog(), openAlert = _useDialog.openAlert, openConfirm = _useDialog.openConfirm;
47279
47410
  var openGameProfileToast = useGameProfileToast().openGameProfileToast;
47280
- var openErrorAlert = (0, import_react220.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
47411
+ var openErrorAlert = (0, import_react215.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
47281
47412
  return __generator(this, function(_state) {
47282
47413
  switch (_state.label) {
47283
47414
  case 0:
@@ -47299,7 +47430,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47299
47430
  }), [
47300
47431
  openAlert
47301
47432
  ]);
47302
- var openProfileWebview = (0, import_react220.useCallback)(function() {
47433
+ var openProfileWebview = (0, import_react215.useCallback)(function() {
47303
47434
  if (isWebviewLoading) {
47304
47435
  return;
47305
47436
  }
@@ -47369,7 +47500,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47369
47500
  openGameProfileToast,
47370
47501
  openErrorAlert
47371
47502
  ]);
47372
- var updateAppToSupportedMinVersion = (0, import_react220.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
47503
+ var updateAppToSupportedMinVersion = (0, import_react215.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
47373
47504
  var upddateConfirmDialogLabel, isConfirmed, STORE_SCHEME;
47374
47505
  return __generator(this, function(_state) {
47375
47506
  switch (_state.label) {
@@ -47432,7 +47563,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47432
47563
  GameProfile = function(param) {
47433
47564
  var children = param.children, isReadyForProfileUI = param.isReadyForProfileUI;
47434
47565
  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;
47435
- (0, import_react219.useEffect)(function() {
47566
+ (0, import_react214.useEffect)(function() {
47436
47567
  try {
47437
47568
  var getProfileData = function() {
47438
47569
  var _ref = _async_to_generator(function() {
@@ -47464,7 +47595,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47464
47595
  setIsProfileDataLoading(false);
47465
47596
  }
47466
47597
  }, []);
47467
- (0, import_react219.useEffect)(function() {
47598
+ (0, import_react214.useEffect)(function() {
47468
47599
  var handleGameProfileFlow = function() {
47469
47600
  var _ref = _async_to_generator(function() {
47470
47601
  return __generator(this, function(_state) {
@@ -47513,16 +47644,16 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47513
47644
  updateAppToSupportedMinVersion
47514
47645
  ]);
47515
47646
  if (!isMinVersionSupported(GAME_CENTER_MIN_VERSION3)) {
47516
- return /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(import_jsx_runtime224.Fragment, {
47647
+ return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
47517
47648
  children: [
47518
- /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_react_native217.View, {
47649
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.View, {
47519
47650
  style: {
47520
47651
  flex: 1,
47521
47652
  position: "relative"
47522
47653
  },
47523
47654
  children
47524
47655
  }),
47525
- /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_react_native217.Pressable, {
47656
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.Pressable, {
47526
47657
  style: _object_spread({}, overlayStyle),
47527
47658
  onPress: function() {
47528
47659
  updateAppToSupportedMinVersion();
@@ -47532,22 +47663,22 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47532
47663
  });
47533
47664
  }
47534
47665
  if (shouldShowLoadingOverlay || isProfileDataRefetching) {
47535
- return /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(import_jsx_runtime224.Fragment, {
47666
+ return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
47536
47667
  children: [
47537
- /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_react_native217.View, {
47668
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.View, {
47538
47669
  style: {
47539
47670
  flex: 1,
47540
47671
  position: "relative"
47541
47672
  },
47542
47673
  children
47543
47674
  }),
47544
- /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_react_native217.View, {
47675
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.View, {
47545
47676
  style: _object_spread_props(_object_spread({}, overlayStyle), {
47546
47677
  justifyContent: "center",
47547
47678
  alignItems: "center",
47548
47679
  backgroundColor: "rgba(0, 0, 0, 0.2)"
47549
47680
  }),
47550
- children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Loader_default, {
47681
+ children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Loader_default, {
47551
47682
  size: "large",
47552
47683
  type: "light"
47553
47684
  })
@@ -47556,16 +47687,16 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47556
47687
  });
47557
47688
  }
47558
47689
  if (shouldShowProfileNotFoundOverlay) {
47559
- return /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(import_jsx_runtime224.Fragment, {
47690
+ return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
47560
47691
  children: [
47561
- /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_react_native217.View, {
47692
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.View, {
47562
47693
  style: {
47563
47694
  flex: 1,
47564
47695
  position: "relative"
47565
47696
  },
47566
47697
  children
47567
47698
  }),
47568
- shouldShowProfileNotFoundOverlay && /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_react_native217.Pressable, {
47699
+ shouldShowProfileNotFoundOverlay && /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.Pressable, {
47569
47700
  style: _object_spread({}, overlayStyle),
47570
47701
  onPress: function() {
47571
47702
  openProfileWebview();
@@ -47574,8 +47705,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47574
47705
  ]
47575
47706
  });
47576
47707
  }
47577
- return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_jsx_runtime224.Fragment, {
47578
- children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_react_native217.View, {
47708
+ return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_jsx_runtime219.Fragment, {
47709
+ children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.View, {
47579
47710
  style: {
47580
47711
  flex: 1,
47581
47712
  position: "relative"
@@ -47592,10 +47723,59 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47592
47723
  bottom: 0,
47593
47724
  zIndex: Z_INDEX.PROFILE_OVERLAY
47594
47725
  };
47595
- GameWebView = /* @__PURE__ */ (0, import_react218.forwardRef)(function GameWebView2(props, ref) {
47596
- var _useState3 = _sliced_to_array((0, import_react218.useState)(false), 2), isEntryMessageExited = _useState3[0], setIsEntryMessageExited = _useState3[1];
47597
- (0, import_react218.useEffect)(function() {
47598
- if (import_react_native216.Platform.OS === "ios") {
47726
+ NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
47727
+ NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
47728
+ CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
47729
+ CLOSE_POPUP_SHOW_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app";
47730
+ CLOSE_BUTTON_CLICK_SCHEMA_ID = 1596831;
47731
+ CLOSE_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_close";
47732
+ CLOSE_POPUP_CTA_CLICK_SCHEMA_ID = 1644492;
47733
+ CLOSE_POPUP_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app::click__cta";
47734
+ HOME_BUTTON_CLICK_SCHEMA_ID = 1596839;
47735
+ HOME_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_home";
47736
+ BOTTOM_SHEET_SCHEMA_ID = 1596825;
47737
+ BOTTOM_SHEET_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more";
47738
+ BOTTOM_SHEET_OPEN_SCHEMA_ID = 1596829;
47739
+ BOTTOM_SHEET_OPEN_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_more";
47740
+ BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID = 1596843;
47741
+ BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more::click__close";
47742
+ BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID = 1596841;
47743
+ BOTTOM_SHEET_MENU_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__more::click__menu";
47744
+ SHARE_SCHEME_REFERRER = "appsintoss.common_module_share";
47745
+ APP_SHARE_MENU_INFO = {
47746
+ contactItemName: "\uACF5\uC720\uD558\uAE30",
47747
+ contactIconUrl: "https://static.toss.im/icons/png/4x/icon-share-dots-mono.png"
47748
+ };
47749
+ UPDATE_DIALOG_SCHEMA_ID = 1634992;
47750
+ UPDATE_DIALOG_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update";
47751
+ UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID = 1634996;
47752
+ UPDATE_DIALOG_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update::click__cta";
47753
+ APP_BRIDGE_METHOD_NAME = "getMiniAppsSupportContact";
47754
+ MIN_VERSION = {
47755
+ BOTTOM_SHEET: {
47756
+ android: "5.226.0",
47757
+ ios: "5.226.0"
47758
+ },
47759
+ SHARE_LIST_MENU: {
47760
+ android: "5.230.0",
47761
+ ios: "5.230.0"
47762
+ }
47763
+ };
47764
+ RNNavigationBar = {
47765
+ Default: DefaultNavigationBar,
47766
+ Game: GameNavigationBar
47767
+ };
47768
+ bridge_entry_exports = {};
47769
+ __reExport2(bridge_entry_exports, async_bridges_exports);
47770
+ __reExport2(bridge_entry_exports, constant_bridges_exports);
47771
+ __reExport2(bridge_entry_exports, event_bridges_exports);
47772
+ AppsInToss = {
47773
+ registerApp
47774
+ };
47775
+ GameWebView = /* @__PURE__ */ (0, import_react223.forwardRef)(function GameWebView2(props, ref) {
47776
+ var _useState4 = _sliced_to_array((0, import_react223.useState)(false), 2), isEntryMessageExited = _useState4[0], setIsEntryMessageExited = _useState4[1];
47777
+ (0, import_react223.useEffect)(function() {
47778
+ if (import_react_native221.Platform.OS === "ios") {
47599
47779
  setIosSwipeGestureEnabled({
47600
47780
  isEnabled: false
47601
47781
  });
@@ -47607,39 +47787,39 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47607
47787
  }
47608
47788
  return;
47609
47789
  }, []);
47610
- (0, import_react218.useEffect)(function() {
47790
+ (0, import_react223.useEffect)(function() {
47611
47791
  appsInTossEvent.addEventListener("entryMessageExited", {
47612
47792
  onEvent: function() {
47613
47793
  setIsEntryMessageExited(true);
47614
47794
  }
47615
47795
  });
47616
47796
  }, []);
47617
- return /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(import_jsx_runtime226.Fragment, {
47797
+ return /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(import_jsx_runtime228.Fragment, {
47618
47798
  children: [
47619
- /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(GameWebviewNavigationBar, {}),
47620
- getOperationalEnvironment() === "toss" ? /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(GameProfile, {
47799
+ /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(GameWebviewNavigationBar, {}),
47800
+ getOperationalEnvironment() === "toss" ? /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(GameProfile, {
47621
47801
  isReadyForProfileUI: isEntryMessageExited,
47622
- children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(react_native_webview_exports.WebView, _object_spread({
47802
+ children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(react_native_webview_exports.WebView, _object_spread({
47623
47803
  ref
47624
47804
  }, props))
47625
- }) : /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(react_native_webview_exports.WebView, _object_spread({
47805
+ }) : /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(react_native_webview_exports.WebView, _object_spread({
47626
47806
  ref
47627
47807
  }, props))
47628
47808
  ]
47629
47809
  });
47630
47810
  });
47631
- PartnerWebView = /* @__PURE__ */ (0, import_react222.forwardRef)(function PartnerWebViewScreen(_param, ref) {
47811
+ PartnerWebView = /* @__PURE__ */ (0, import_react225.forwardRef)(function PartnerWebViewScreen(_param, ref) {
47632
47812
  var onBackButtonClick = _param.onBackButtonClick, onHomeButtonClick = _param.onHomeButtonClick, webViewProps = _object_without_properties(_param, [
47633
47813
  "onBackButtonClick",
47634
47814
  "onHomeButtonClick"
47635
47815
  ]);
47636
- return /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(import_jsx_runtime228.Fragment, {
47816
+ return /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)(import_jsx_runtime230.Fragment, {
47637
47817
  children: [
47638
- /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(PartnerWebviewNavigationBar, {
47818
+ /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(PartnerWebviewNavigationBar, {
47639
47819
  onBackButtonClick,
47640
47820
  onHomeButtonClick
47641
47821
  }),
47642
- /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(react_native_webview_exports.WebView, _object_spread_props(_object_spread({
47822
+ /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(react_native_webview_exports.WebView, _object_spread_props(_object_spread({
47643
47823
  ref
47644
47824
  }, webViewProps), {
47645
47825
  style: {
@@ -47761,11 +47941,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47761
47941
  }
47762
47942
  });
47763
47943
  function Index() {
47764
- return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(import_react_native226.View, {
47944
+ return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(import_react_native228.View, {
47765
47945
  style: {
47766
47946
  flex: 1
47767
47947
  },
47768
- children: /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(WebView, {
47948
+ children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(WebView, {
47769
47949
  style: {
47770
47950
  flex: 1
47771
47951
  },
@@ -47783,13 +47963,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47783
47963
  })
47784
47964
  });
47785
47965
  }
47786
- var import_jsx_runtime230, import_react_native226;
47966
+ var import_jsx_runtime232, import_react_native228;
47787
47967
  var init_pages = __esm({
47788
47968
  "react-native/pages/index.tsx"() {
47789
47969
  "use strict";
47790
- import_jsx_runtime230 = __toESM(require_jsx_runtime(), 1);
47970
+ import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
47791
47971
  init_dist8();
47792
- import_react_native226 = __toESM(require_react_native(), 1);
47972
+ import_react_native228 = __toESM(require_react_native(), 1);
47793
47973
  }
47794
47974
  });
47795
47975
 
@@ -47814,7 +47994,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47814
47994
  return app_default;
47815
47995
  }
47816
47996
  });
47817
- var import_jsx_runtime231 = __toESM(require_jsx_runtime());
47997
+ var import_jsx_runtime233 = __toESM(require_jsx_runtime());
47818
47998
 
47819
47999
  // ../../.yarn/cache/@react-native-js-polyfills-npm-0.72.1-52931e590c-e4a77d6c8b.zip/node_modules/@react-native/js-polyfills/console.js
47820
48000
  init_instanceof();
@@ -48396,7 +48576,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48396
48576
  // react-native/src/_app.tsx
48397
48577
  function AppContainer(param) {
48398
48578
  var children = param.children;
48399
- return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(import_jsx_runtime231.Fragment, {
48579
+ return /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(import_jsx_runtime233.Fragment, {
48400
48580
  children
48401
48581
  });
48402
48582
  }