@apps-in-toss/web-framework 2.4.2 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45461,15 +45461,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45461
45461
  });
45462
45462
 
45463
45463
  // ../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.js
45464
- function useReferrer() {
45465
- return (0, import_react180.useMemo)(function() {
45466
- try {
45467
- return new URL(getSchemeUri()).searchParams.get("referrer");
45468
- } catch (unused) {
45469
- return null;
45470
- }
45471
- }, []);
45472
- }
45473
45464
  function isPrivateScheme() {
45474
45465
  try {
45475
45466
  return new URL(getSchemeUri()).protocol === "intoss-private:";
@@ -45477,69 +45468,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45477
45468
  return false;
45478
45469
  }
45479
45470
  }
45480
- function useCaptureExitLog() {
45481
- var referrer2 = useReferrer();
45482
- var visible = useVisibility();
45483
- var enterTime = (0, import_react179.useRef)(void 0);
45484
- (0, import_react179.useEffect)(function() {
45485
- if (visible === true) {
45486
- enterTime.current = Date.now();
45487
- }
45488
- }, [
45489
- visible
45490
- ]);
45491
- var captureExitLog = (0, import_react179.useCallback)(function(exitTime) {
45492
- if (enterTime.current == null) {
45493
- return;
45494
- }
45495
- var stayTime = Math.floor(exitTime - enterTime.current);
45496
- INTERNAL__module.tossCoreEventLog({
45497
- log_name: EXIT_IMPRESSION_LOG_NAME,
45498
- log_type: "event",
45499
- params: {
45500
- schema_id: EXIT_IMPRESSION_SCHEMA_ID,
45501
- event_type: "impression",
45502
- referrer: referrer2,
45503
- deployment_id: env.getDeploymentId(),
45504
- app_name: Granite.appName,
45505
- is_private: isPrivateScheme(),
45506
- stay_time: stayTime.toString(),
45507
- exit_time: exitTime.toString()
45508
- }
45509
- });
45510
- enterTime.current = void 0;
45511
- }, [
45512
- referrer2
45513
- ]);
45514
- return {
45515
- captureExitLog
45516
- };
45517
- }
45518
- function EntryAppEvent() {
45519
- var _useReferrer;
45520
- var referrer2 = (_useReferrer = useReferrer()) !== null && _useReferrer !== void 0 ? _useReferrer : "";
45521
- (0, import_react178.useEffect)(function() {
45522
- INTERNAL__module.tossCoreEventLog({
45523
- log_name: "appsintoss_app_visit::impression__enter_appsintoss",
45524
- log_type: "info",
45525
- params: {
45526
- is_transform: true,
45527
- schema_id: ENTRY_APP_EVENT_SCHEMA_ID,
45528
- referrer: referrer2,
45529
- deployment_id: env.getDeploymentId(),
45530
- app_name: Granite.appName,
45531
- is_private: isPrivateScheme()
45532
- }
45533
- });
45534
- }, [
45535
- referrer2
45536
- ]);
45537
- return null;
45471
+ function sendLog(logData, options) {
45472
+ var _ref = options !== null && options !== void 0 ? options : {}, _ref_pipelines = _ref.pipelines, pipelines = _ref_pipelines === void 0 ? DEFAULT_PIPELINES : _ref_pipelines;
45473
+ if (pipelines.includes("core")) {
45474
+ INTERNAL__module.tossCoreEventLog(logData);
45475
+ }
45476
+ if (pipelines.includes("partner")) {
45477
+ eventLog(logData);
45478
+ }
45538
45479
  }
45539
45480
  function SystemAppEvent(_03) {
45540
45481
  var ref = _object_destructuring_empty(_03), initialProps = _extends({}, _03);
45541
45482
  (0, import_react178.useEffect)(function() {
45542
- INTERNAL__module.tossCoreEventLog({
45483
+ sendLog({
45543
45484
  log_name: "AppsInTossInitialProps",
45544
45485
  log_type: "debug",
45545
45486
  params: _object_spread_props(_object_spread({}, initialProps), {
@@ -45548,27 +45489,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45548
45489
  app_name: Granite.appName,
45549
45490
  is_private: isPrivateScheme()
45550
45491
  })
45492
+ }, {
45493
+ pipelines: [
45494
+ "core"
45495
+ ]
45551
45496
  });
45552
45497
  }, [
45553
45498
  initialProps
45554
45499
  ]);
45555
45500
  return null;
45556
45501
  }
45557
- function StayTimeAppEvent() {
45558
- var visible = useVisibility();
45559
- var captureExitLog = useCaptureExitLog().captureExitLog;
45560
- (0, import_react178.useEffect)(function() {
45561
- if (visible === false) {
45562
- captureExitLog(Date.now());
45563
- }
45564
- }, [
45565
- visible,
45566
- captureExitLog
45567
- ]);
45568
- return null;
45569
- }
45570
45502
  function AppUpdate() {
45571
- (0, import_react181.useEffect)(function() {
45503
+ (0, import_react179.useEffect)(function() {
45572
45504
  openURL("supertoss://closePage?url=".concat(UPDATE_SCHEME));
45573
45505
  }, []);
45574
45506
  return (0, import_jsx_runtime216.jsx)(import_jsx_runtime216.Fragment, {});
@@ -45593,7 +45525,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45593
45525
  var children = param.children;
45594
45526
  var globals = getAppsInTossGlobals();
45595
45527
  var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
45596
- var _useState = _sliced_to_array((0, import_react182.useState)(parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton), 2), navigationRightButton = _useState[0], setNavigationRightButton = _useState[1];
45528
+ var _useState = _sliced_to_array((0, import_react180.useState)(parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton), 2), navigationRightButton = _useState[0], setNavigationRightButton = _useState[1];
45597
45529
  var addNavigationRightButton = function(button) {
45598
45530
  setNavigationRightButton(button);
45599
45531
  };
@@ -45610,16 +45542,25 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45610
45542
  });
45611
45543
  }
45612
45544
  function useNavigationBarContext() {
45613
- var context2 = (0, import_react182.useContext)(NavigationBarContext);
45545
+ var context2 = (0, import_react180.useContext)(NavigationBarContext);
45614
45546
  if (context2 == null) {
45615
45547
  throw Error("useNavigationBarContext must be used within NavigationBarContextProvider");
45616
45548
  }
45617
45549
  return context2;
45618
45550
  }
45551
+ function useReferrer() {
45552
+ return (0, import_react184.useMemo)(function() {
45553
+ try {
45554
+ return new URL(getSchemeUri()).searchParams.get("referrer");
45555
+ } catch (unused) {
45556
+ return null;
45557
+ }
45558
+ }, []);
45559
+ }
45619
45560
  function useAppUpdateDialog() {
45620
45561
  var openConfirm = useDialog().openConfirm;
45621
45562
  var logging = useAppUpdateDialogLogging();
45622
- var openAppUpdateDialog = (0, import_react185.useCallback)(function(param) {
45563
+ var openAppUpdateDialog = (0, import_react183.useCallback)(function(param) {
45623
45564
  var title = param.title, description = param.description, _param_leftButton = param.leftButton, leftButton = _param_leftButton === void 0 ? "\uB2EB\uAE30" : _param_leftButton, _param_rightButton = param.rightButton, rightButton = _param_rightButton === void 0 ? "\uC5C5\uB370\uC774\uD2B8\uD558\uAE30" : _param_rightButton, onDismiss = param.onDismiss;
45624
45565
  return _async_to_generator(function() {
45625
45566
  var isConfirmed, STORE_SCHEME;
@@ -45670,7 +45611,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45670
45611
  app_name: Granite.appName
45671
45612
  };
45672
45613
  var logUpdateClick = function() {
45673
- INTERNAL__module.tossCoreEventLog({
45614
+ sendLog({
45674
45615
  log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
45675
45616
  log_type: "event",
45676
45617
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -45681,7 +45622,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45681
45622
  });
45682
45623
  };
45683
45624
  var logCloseClick = function() {
45684
- INTERNAL__module.tossCoreEventLog({
45625
+ sendLog({
45685
45626
  log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
45686
45627
  log_type: "event",
45687
45628
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -45692,7 +45633,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45692
45633
  });
45693
45634
  };
45694
45635
  var logDialogShow = function() {
45695
- INTERNAL__module.tossCoreEventLog({
45636
+ sendLog({
45696
45637
  log_name: UPDATE_DIALOG_LOG_NAME,
45697
45638
  log_type: "popup",
45698
45639
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -45707,12 +45648,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45707
45648
  };
45708
45649
  }
45709
45650
  function useHardwareBackPress(handler) {
45710
- (0, import_react190.useEffect)(function() {
45651
+ (0, import_react189.useEffect)(function() {
45711
45652
  var handleBackPress = function() {
45712
45653
  handler();
45713
45654
  return true;
45714
45655
  };
45715
- var backHandler = import_react_native197.BackHandler.addEventListener("hardwareBackPress", handleBackPress);
45656
+ var backHandler = import_react_native196.BackHandler.addEventListener("hardwareBackPress", handleBackPress);
45716
45657
  return function() {
45717
45658
  return backHandler.remove();
45718
45659
  };
@@ -45723,7 +45664,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45723
45664
  function useCloseConfirm() {
45724
45665
  var brandDisplayName = getAppsInTossGlobals().brandDisplayName;
45725
45666
  var openConfirm = useDialog().openConfirm;
45726
- return (0, import_react192.useCallback)(function(param) {
45667
+ return (0, import_react191.useCallback)(function(param) {
45727
45668
  var onEntered = param.onEntered;
45728
45669
  return _async_to_generator(function() {
45729
45670
  return __generator(this, function(_state) {
@@ -45776,7 +45717,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45776
45717
  app_name: Granite.appName
45777
45718
  };
45778
45719
  var logNavBarImpression = function(naviBarConfig) {
45779
- INTERNAL__module.tossCoreEventLog({
45720
+ sendLog({
45780
45721
  log_name: NAVI_BAR_IMPRESSION_LOG_NAME,
45781
45722
  log_type: "event",
45782
45723
  params: _object_spread_props(_object_spread({}, naviBarConfig, baseParams), {
@@ -45786,7 +45727,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45786
45727
  });
45787
45728
  };
45788
45729
  var logHomeButtonClick = function() {
45789
- INTERNAL__module.tossCoreEventLog({
45730
+ sendLog({
45790
45731
  log_name: HOME_BUTTON_CLICK_LOG_NAME,
45791
45732
  log_type: "event",
45792
45733
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -45796,7 +45737,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45796
45737
  });
45797
45738
  };
45798
45739
  var logCloseButtonClick = function() {
45799
- INTERNAL__module.tossCoreEventLog({
45740
+ sendLog({
45800
45741
  log_name: CLOSE_BUTTON_CLICK_LOG_NAME,
45801
45742
  log_type: "event",
45802
45743
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -45806,7 +45747,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45806
45747
  });
45807
45748
  };
45808
45749
  var logClosePopupShow = function() {
45809
- INTERNAL__module.tossCoreEventLog({
45750
+ sendLog({
45810
45751
  log_name: CLOSE_POPUP_SHOW_LOG_NAME,
45811
45752
  log_type: "popup",
45812
45753
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -45815,7 +45756,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45815
45756
  });
45816
45757
  };
45817
45758
  var logClosePopupCtaClick = function(confirm) {
45818
- INTERNAL__module.tossCoreEventLog({
45759
+ sendLog({
45819
45760
  log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
45820
45761
  log_type: "event",
45821
45762
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -45838,8 +45779,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45838
45779
  var logging = useNavigationBarLogging();
45839
45780
  var navigation = useNavigation();
45840
45781
  var closeConfirm = useCloseConfirm();
45841
- var captureExitLog = useCaptureExitLog().captureExitLog;
45842
- return (0, import_react191.useMemo)(function() {
45782
+ return (0, import_react190.useMemo)(function() {
45843
45783
  var close = function() {
45844
45784
  return _async_to_generator(function() {
45845
45785
  var hasConfirmed;
@@ -45856,7 +45796,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45856
45796
  hasConfirmed = _state.sent();
45857
45797
  logging.closePopupCtaClick(hasConfirmed);
45858
45798
  if (hasConfirmed) {
45859
- captureExitLog(Date.now());
45860
45799
  closeView();
45861
45800
  }
45862
45801
  return [
@@ -45893,8 +45832,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45893
45832
  backEventContext,
45894
45833
  navigation,
45895
45834
  closeConfirm,
45896
- logging,
45897
- captureExitLog
45835
+ logging
45898
45836
  ]);
45899
45837
  }
45900
45838
  function useMoreButtonBottomSheetLogging() {
@@ -45904,7 +45842,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45904
45842
  app_name: Granite.appName
45905
45843
  };
45906
45844
  var logBottomSheetShow = function() {
45907
- INTERNAL__module.tossCoreEventLog({
45845
+ sendLog({
45908
45846
  log_name: BOTTOM_SHEET_LOG_NAME,
45909
45847
  log_type: "popup",
45910
45848
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -45913,7 +45851,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45913
45851
  });
45914
45852
  };
45915
45853
  var logBottomSheetOpen = function() {
45916
- INTERNAL__module.tossCoreEventLog({
45854
+ sendLog({
45917
45855
  log_name: BOTTOM_SHEET_OPEN_LOG_NAME,
45918
45856
  log_type: "event",
45919
45857
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -45923,7 +45861,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45923
45861
  });
45924
45862
  };
45925
45863
  var logBottomSheetCloseClick = function() {
45926
- INTERNAL__module.tossCoreEventLog({
45864
+ sendLog({
45927
45865
  log_name: BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME,
45928
45866
  log_type: "event",
45929
45867
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -45934,7 +45872,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45934
45872
  };
45935
45873
  var logBottomSheetMenuClick = function(param) {
45936
45874
  var title = param.title;
45937
- INTERNAL__module.tossCoreEventLog({
45875
+ sendLog({
45938
45876
  log_name: BOTTOM_SHEET_MENU_CLICK_LOG_NAME,
45939
45877
  log_type: "event",
45940
45878
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -45960,7 +45898,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45960
45898
  var brandPrimaryColorRGB = hexToRGB(globals.brandPrimaryColor);
45961
45899
  var iconBackgroundColor = brandPrimaryColorRGB ? "rgba(".concat(brandPrimaryColorRGB.join(","), ",0.1)") : adaptive.grey100;
45962
45900
  return (0, import_jsx_runtime220.jsx)(ListRow2, {
45963
- left: (0, import_jsx_runtime220.jsx)(import_react_native202.View, {
45901
+ left: (0, import_jsx_runtime220.jsx)(import_react_native201.View, {
45964
45902
  style: {
45965
45903
  width: 30,
45966
45904
  height: 30,
@@ -46120,7 +46058,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46120
46058
  function useMoreButtonBottomSheet() {
46121
46059
  var globals = getAppsInTossGlobals();
46122
46060
  var adaptive = useAdaptive();
46123
- var _useState4 = _sliced_to_array((0, import_react193.useState)([]), 2), itemList = _useState4[0], setItemList = _useState4[1];
46061
+ var _useState4 = _sliced_to_array((0, import_react192.useState)([]), 2), itemList = _useState4[0], setItemList = _useState4[1];
46124
46062
  var appUpdateDialog = useAppUpdateDialog();
46125
46063
  var logging = useMoreButtonBottomSheetLogging();
46126
46064
  var overlay = useOverlay();
@@ -46129,7 +46067,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46129
46067
  var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION3.BOTTOM_SHEET);
46130
46068
  var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION3.SHARE_LIST_MENU);
46131
46069
  var isSettingsMenuSupported = isMinVersionSupported(MIN_VERSION3.SETTINGS_MENU);
46132
- (0, import_react193.useEffect)(function() {
46070
+ (0, import_react192.useEffect)(function() {
46133
46071
  if (!isBottomSheetSupported) {
46134
46072
  return;
46135
46073
  }
@@ -46230,7 +46168,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46230
46168
  function BottomSheetImpressionArea(param) {
46231
46169
  var children = param.children;
46232
46170
  var logging = useMoreButtonBottomSheetLogging();
46233
- (0, import_react193.useEffect)(function() {
46171
+ (0, import_react192.useEffect)(function() {
46234
46172
  logging.show();
46235
46173
  }, [
46236
46174
  logging
@@ -46250,9 +46188,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46250
46188
  }
46251
46189
  function NavigationBarImpressionArea(param) {
46252
46190
  var children = param.children, withHomeButton = param.withHomeButton;
46253
- var hasLogged = (0, import_react194.useRef)(false);
46191
+ var hasLogged = (0, import_react193.useRef)(false);
46254
46192
  var logging = useNavigationBarLogging();
46255
- (0, import_react194.useEffect)(function() {
46193
+ (0, import_react193.useEffect)(function() {
46256
46194
  if (hasLogged.current === false) {
46257
46195
  logging.navBarImpression({
46258
46196
  home_icon_yn: withHomeButton ? "Y" : "N"
@@ -46313,10 +46251,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46313
46251
  type: "none"
46314
46252
  }
46315
46253
  }),
46316
- (0, import_jsx_runtime227.jsx)(import_react_native205.View, {
46254
+ (0, import_jsx_runtime227.jsx)(import_react_native204.View, {
46317
46255
  style: {
46318
46256
  width: "100%",
46319
- height: import_react_native205.Platform.OS === "ios" ? 44 : 54,
46257
+ height: import_react_native204.Platform.OS === "ios" ? 44 : 54,
46320
46258
  flexDirection: "row",
46321
46259
  alignItems: "center",
46322
46260
  justifyContent: "flex-end",
@@ -46353,8 +46291,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46353
46291
  }
46354
46292
  function GameAppContainer(param) {
46355
46293
  var children = param.children;
46356
- (0, import_react183.useEffect)(function() {
46357
- if (import_react_native190.Platform.OS === "ios") {
46294
+ (0, import_react181.useEffect)(function() {
46295
+ if (import_react_native188.Platform.OS === "ios") {
46358
46296
  setIosSwipeGestureEnabled({
46359
46297
  isEnabled: false
46360
46298
  });
@@ -46394,7 +46332,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46394
46332
  })) {
46395
46333
  return (0, import_jsx_runtime229.jsxs)(import_jsx_runtime229.Fragment, {
46396
46334
  children: [
46397
- (0, import_jsx_runtime229.jsx)(AppEvent.Entry, {}),
46398
46335
  (0, import_jsx_runtime229.jsx)(AppEvent.System, _object_spread({}, initialProps)),
46399
46336
  (0, import_jsx_runtime229.jsx)(AppUpdate, {})
46400
46337
  ]
@@ -46402,8 +46339,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46402
46339
  }
46403
46340
  return (0, import_jsx_runtime229.jsxs)(import_jsx_runtime229.Fragment, {
46404
46341
  children: [
46405
- (0, import_jsx_runtime229.jsx)(AppEvent.StayTime, {}),
46406
- (0, import_jsx_runtime229.jsx)(AppEvent.Entry, {}),
46407
46342
  (0, import_jsx_runtime229.jsx)(AppEvent.System, _object_spread({}, initialProps)),
46408
46343
  (0, import_jsx_runtime229.jsx)(Container, _object_spread_props(_object_spread({}, initialProps), {
46409
46344
  children: (0, import_jsx_runtime229.jsx)(TDSProvider, {
@@ -46469,13 +46404,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46469
46404
  function GameWebviewNavigationBar() {
46470
46405
  var safeAreaTop = useSafeAreaTop();
46471
46406
  var openConfirm = useDialog().openConfirm;
46472
- var captureExitLog = useCaptureExitLog().captureExitLog;
46473
46407
  var global2 = getAppsInTossGlobals();
46474
46408
  var logging = useNavigationBarLogging();
46475
46409
  var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
46476
46410
  var navigationRightButton = useNavigationBarContext().navigationRightButton;
46477
46411
  var _useSafeAreaInsets2 = (0, react_native_safe_area_context_exports.useSafeAreaInsets)(), safeAreaRight = _useSafeAreaInsets2.right;
46478
- var handleGameWebviewClose = (0, import_react197.useCallback)(function() {
46412
+ var handleGameWebviewClose = (0, import_react196.useCallback)(function() {
46479
46413
  return _async_to_generator(function() {
46480
46414
  var isConfirmed;
46481
46415
  return __generator(this, function(_state) {
@@ -46496,7 +46430,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46496
46430
  isConfirmed = _state.sent();
46497
46431
  logging.closePopupCtaClick(isConfirmed);
46498
46432
  if (isConfirmed) {
46499
- captureExitLog(Date.now());
46500
46433
  closeView();
46501
46434
  }
46502
46435
  return [
@@ -46506,7 +46439,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46506
46439
  });
46507
46440
  })();
46508
46441
  }, [
46509
- captureExitLog,
46510
46442
  global2.brandDisplayName,
46511
46443
  logging,
46512
46444
  openConfirm
@@ -46518,10 +46450,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46518
46450
  type: "none"
46519
46451
  }
46520
46452
  }),
46521
- (0, import_jsx_runtime230.jsx)(import_react_native210.View, {
46453
+ (0, import_jsx_runtime230.jsx)(import_react_native209.View, {
46522
46454
  style: {
46523
46455
  width: "100%",
46524
- height: import_react_native210.Platform.OS === "ios" ? 44 : 54,
46456
+ height: import_react_native209.Platform.OS === "ios" ? 44 : 54,
46525
46457
  flexDirection: "row",
46526
46458
  alignItems: "center",
46527
46459
  justifyContent: "flex-end",
@@ -46547,7 +46479,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46547
46479
  var onBackButtonClick = param.onBackButtonClick, onHomeButtonClick = param.onHomeButtonClick;
46548
46480
  var _ref, _ref1;
46549
46481
  var globals = getAppsInTossGlobals();
46550
- var captureExitLog = useCaptureExitLog().captureExitLog;
46551
46482
  var logging = useNavigationBarLogging();
46552
46483
  var openConfirm = useDialog().openConfirm;
46553
46484
  var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
@@ -46555,7 +46486,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46555
46486
  var withHomeButton = (_ref = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withHomeButton) !== null && _ref !== void 0 ? _ref : false;
46556
46487
  var withBackButton = (_ref1 = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withBackButton) !== null && _ref1 !== void 0 ? _ref1 : true;
46557
46488
  var navigationRightButton = useNavigationBarContext().navigationRightButton;
46558
- var handleClose = (0, import_react199.useCallback)(function() {
46489
+ var handleClose = (0, import_react198.useCallback)(function() {
46559
46490
  return _async_to_generator(function() {
46560
46491
  var isConfirmed;
46561
46492
  return __generator(this, function(_state) {
@@ -46576,7 +46507,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46576
46507
  isConfirmed = _state.sent();
46577
46508
  logging.closePopupCtaClick(isConfirmed);
46578
46509
  if (isConfirmed) {
46579
- captureExitLog(Date.now());
46580
46510
  closeView();
46581
46511
  }
46582
46512
  return [
@@ -46586,7 +46516,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46586
46516
  });
46587
46517
  })();
46588
46518
  }, [
46589
- captureExitLog,
46590
46519
  globals.brandDisplayName,
46591
46520
  logging,
46592
46521
  openConfirm
@@ -46973,7 +46902,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46973
46902
  });
46974
46903
  return [
46975
46904
  2,
46976
- INTERNAL__module.tossCoreEventLog(eventLogParams)
46905
+ sendLog(eventLogParams, {
46906
+ pipelines: [
46907
+ "core"
46908
+ ]
46909
+ })
46977
46910
  ];
46978
46911
  });
46979
46912
  })();
@@ -47034,8 +46967,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47034
46967
  }
47035
46968
  function useBridgeHandler(param) {
47036
46969
  var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap;
47037
- var ref = (0, import_react200.useRef)(null);
47038
- var injectedJavaScript = (0, import_react200.useMemo)(function() {
46970
+ var ref = (0, import_react199.useRef)(null);
46971
+ var injectedJavaScript = (0, import_react199.useMemo)(function() {
47039
46972
  return "window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function(acc, param2) {
47040
46973
  var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
47041
46974
  acc[key] = typeof value === "function" ? value() : value;
@@ -47044,7 +46977,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47044
46977
  }, [
47045
46978
  constantHandlerMap
47046
46979
  ]);
47047
- (0, import_react200.useEffect)(function() {
46980
+ (0, import_react199.useEffect)(function() {
47048
46981
  var _ref_current;
47049
46982
  (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.injectJavaScript(injectedJavaScript);
47050
46983
  }, [
@@ -47063,7 +46996,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47063
46996
  (_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 "));
47064
46997
  };
47065
46998
  };
47066
- var $onMessage = (0, import_react200.useCallback)(function(e63) {
46999
+ var $onMessage = (0, import_react199.useCallback)(function(e63) {
47067
47000
  return _async_to_generator(function() {
47068
47001
  var data, _eventListenerMap_data_functionName, handleOnEvent, handleOnError, remove, key, remove1, _ref_current;
47069
47002
  return __generator(this, function(_state) {
@@ -47136,12 +47069,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47136
47069
  }
47137
47070
  function useSafeAreaInsetsEvent() {
47138
47071
  var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
47139
- (0, import_react201.useEffect)(function() {
47072
+ (0, import_react200.useEffect)(function() {
47140
47073
  safeAreaInsetsChange.emit(insets);
47141
47074
  }, [
47142
47075
  insets
47143
47076
  ]);
47144
- (0, import_react201.useEffect)(function() {
47077
+ (0, import_react200.useEffect)(function() {
47145
47078
  return function() {
47146
47079
  return safeAreaInsetsChange.clearSubscriptions();
47147
47080
  };
@@ -47191,8 +47124,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47191
47124
  }
47192
47125
  }
47193
47126
  function useWebViewHistory() {
47194
- var _useReducer = _sliced_to_array((0, import_react203.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
47195
- var onNavigationStateChange = (0, import_react203.useCallback)(function(param) {
47127
+ var _useReducer = _sliced_to_array((0, import_react202.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
47128
+ var onNavigationStateChange = (0, import_react202.useCallback)(function(param) {
47196
47129
  var url = param.url, canGoForward2 = param.canGoForward;
47197
47130
  dispatch({
47198
47131
  type: "NAVIGATION_CHANGE",
@@ -47200,7 +47133,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47200
47133
  canGoForward: canGoForward2
47201
47134
  });
47202
47135
  }, []);
47203
- var _useMemo4 = (0, import_react203.useMemo)(function() {
47136
+ var _useMemo4 = (0, import_react202.useMemo)(function() {
47204
47137
  var canBack = state.index > 0;
47205
47138
  var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
47206
47139
  return {
@@ -47218,23 +47151,22 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47218
47151
  };
47219
47152
  }
47220
47153
  function useWebBackHandler(webViewInitialURL, webViewRef) {
47221
- var captureExitLog = useCaptureExitLog().captureExitLog;
47222
47154
  var _useWebViewHistory = useWebViewHistory(), hasHistory = _useWebViewHistory.hasHistory, onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
47223
47155
  var _useBackEventState = useBackEventState(), webBackHandlersRef = _useBackEventState.handlersRef, hasWebBackEvent = _useBackEventState.hasBackEvent, addWebBackEventListener = _useBackEventState.addEventListener, removeWebBackEventListener = _useBackEventState.removeEventListener;
47224
47156
  var logging = useNavigationBarLogging();
47225
47157
  var openConfirm = useDialog().openConfirm;
47226
47158
  var global2 = getAppsInTossGlobals();
47227
- var addEventListener = (0, import_react202.useCallback)(function(handler) {
47159
+ var addEventListener = (0, import_react201.useCallback)(function(handler) {
47228
47160
  addWebBackEventListener(handler);
47229
47161
  }, [
47230
47162
  addWebBackEventListener
47231
47163
  ]);
47232
- var removeEventListener = (0, import_react202.useCallback)(function(handler) {
47164
+ var removeEventListener = (0, import_react201.useCallback)(function(handler) {
47233
47165
  removeWebBackEventListener(handler);
47234
47166
  }, [
47235
47167
  removeWebBackEventListener
47236
47168
  ]);
47237
- var handleWebBack = (0, import_react202.useCallback)(function() {
47169
+ var handleWebBack = (0, import_react201.useCallback)(function() {
47238
47170
  return _async_to_generator(function() {
47239
47171
  var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current, isConfirmed;
47240
47172
  return __generator(this, function(_state) {
@@ -47289,7 +47221,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47289
47221
  isConfirmed = _state.sent();
47290
47222
  logging.closePopupCtaClick(isConfirmed);
47291
47223
  if (isConfirmed) {
47292
- captureExitLog(Date.now());
47293
47224
  closeView();
47294
47225
  }
47295
47226
  _state.label = 3;
@@ -47301,7 +47232,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47301
47232
  });
47302
47233
  })();
47303
47234
  }, [
47304
- captureExitLog,
47305
47235
  global2.brandDisplayName,
47306
47236
  hasHistory,
47307
47237
  hasWebBackEvent,
@@ -47310,7 +47240,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47310
47240
  openConfirm,
47311
47241
  webViewRef
47312
47242
  ]);
47313
- var handleWebHome = (0, import_react202.useCallback)(function() {
47243
+ var handleWebHome = (0, import_react201.useCallback)(function() {
47314
47244
  var _webViewRef_current;
47315
47245
  logging.homeButtonClick();
47316
47246
  if (homeEvent.hasSubscriptions()) {
@@ -47325,7 +47255,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47325
47255
  webViewInitialURL,
47326
47256
  webViewRef
47327
47257
  ]);
47328
- return (0, import_react202.useMemo)(function() {
47258
+ return (0, import_react201.useMemo)(function() {
47329
47259
  return {
47330
47260
  addEventListener,
47331
47261
  removeEventListener,
@@ -47501,7 +47431,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47501
47431
  var batteryModePreference = param.batteryModePreference, colorPreference = param.colorPreference, locale = param.locale, navbarPreference = param.navbarPreference, pureSafeArea = param.pureSafeArea, safeArea = param.safeArea, safeAreaBottomTransparency = param.safeAreaBottomTransparency;
47502
47432
  var platform = getPlatformOS();
47503
47433
  var appVersion = getTossAppVersion();
47504
- var fontScale = (0, import_react_native216.useWindowDimensions)().fontScale;
47434
+ var fontScale = (0, import_react_native215.useWindowDimensions)().fontScale;
47505
47435
  var platformString = platform === "ios" ? "iPhone" : "Android phone";
47506
47436
  var fontA11y = mapFontScaleToCategory(fontScale, platform);
47507
47437
  var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
@@ -47553,7 +47483,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47553
47483
  })
47554
47484
  };
47555
47485
  if (getOperationalEnvironment() === "toss") {
47556
- INTERNAL__module.tossCoreEventLog(event);
47486
+ sendLog(event, {
47487
+ pipelines: [
47488
+ "core"
47489
+ ]
47490
+ });
47557
47491
  } else {
47558
47492
  console.log("[webViewDebugLog]", event);
47559
47493
  }
@@ -47626,8 +47560,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47626
47560
  if (!TYPES.includes(type)) {
47627
47561
  throw new Error("Invalid WebView type: '".concat(type, "'"));
47628
47562
  }
47629
- var webViewRef = (0, import_react195.useRef)(null);
47630
- var url = (0, import_react195.useMemo)(function() {
47563
+ var webViewRef = (0, import_react194.useRef)(null);
47564
+ var url = (0, import_react194.useMemo)(function() {
47631
47565
  return getWebViewURL(local);
47632
47566
  }, [
47633
47567
  local
@@ -47639,7 +47573,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47639
47573
  var global2 = getAppsInTossGlobals();
47640
47574
  var navigationBarContext = useNavigationBarContext();
47641
47575
  var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
47642
- var _useState6 = _sliced_to_array((0, import_react195.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState6[0], setAllowsBackForwardNavigationGestures = _useState6[1];
47576
+ var _useState6 = _sliced_to_array((0, import_react194.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState6[0], setAllowsBackForwardNavigationGestures = _useState6[1];
47643
47577
  var handler = useBridgeHandler({
47644
47578
  onMessage,
47645
47579
  eventListenerMap: _object_spread_props(_object_spread({}, event_bridges_exports), {
@@ -47772,8 +47706,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47772
47706
  debugLog: function(event) {
47773
47707
  return _async_to_generator(function() {
47774
47708
  return __generator(this, function(_state) {
47775
- eventLog(event);
47776
- INTERNAL__module.tossCoreEventLog(event);
47709
+ sendLog(event);
47777
47710
  return [
47778
47711
  2
47779
47712
  ];
@@ -47782,7 +47715,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47782
47715
  }
47783
47716
  })
47784
47717
  });
47785
- var headerPropForExternalWebView = (0, import_react195.useMemo)(function() {
47718
+ var headerPropForExternalWebView = (0, import_react194.useMemo)(function() {
47786
47719
  var _ref;
47787
47720
  var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
47788
47721
  var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
@@ -47807,12 +47740,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47807
47740
  colorPreference: "light"
47808
47741
  });
47809
47742
  var refs = mergeRefs3(handler.ref, webViewRef);
47810
- (0, import_react195.useEffect)(function() {
47743
+ (0, import_react194.useEffect)(function() {
47811
47744
  var callback = function() {
47812
47745
  webBackHandler.handleWebBack();
47813
47746
  return true;
47814
47747
  };
47815
- var subscription = import_react_native207.BackHandler.addEventListener("hardwareBackPress", callback);
47748
+ var subscription = import_react_native206.BackHandler.addEventListener("hardwareBackPress", callback);
47816
47749
  return function() {
47817
47750
  return subscription.remove();
47818
47751
  };
@@ -47840,7 +47773,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47840
47773
  webBackHandler.onNavigationStateChange(event);
47841
47774
  },
47842
47775
  textZoom: 100,
47843
- userAgent: import_react_native207.Platform.OS === "ios" ? userAgent : void 0,
47776
+ userAgent: import_react_native206.Platform.OS === "ios" ? userAgent : void 0,
47844
47777
  sharedCookiesEnabled: true,
47845
47778
  webviewDebuggingEnabled: webViewDebuggingEnabled,
47846
47779
  thirdPartyCookiesEnabled: true,
@@ -47850,7 +47783,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47850
47783
  handler.injectedJavaScript,
47851
47784
  t53
47852
47785
  ].join("\n"),
47853
- decelerationRate: import_react_native207.Platform.OS === "ios" ? 1 : void 0,
47786
+ decelerationRate: import_react_native206.Platform.OS === "ios" ? 1 : void 0,
47854
47787
  allowsBackForwardNavigationGestures,
47855
47788
  onShouldStartLoadWithRequest: function(event) {
47856
47789
  try {
@@ -47862,7 +47795,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47862
47795
  return true;
47863
47796
  } else {
47864
47797
  var _convertIntentURL;
47865
- import_react_native207.Linking.openURL((_convertIntentURL = convertIntentURL(url2)) !== null && _convertIntentURL !== void 0 ? _convertIntentURL : url2.href);
47798
+ import_react_native206.Linking.openURL((_convertIntentURL = convertIntentURL(url2)) !== null && _convertIntentURL !== void 0 ? _convertIntentURL : url2.href);
47866
47799
  return false;
47867
47800
  }
47868
47801
  } catch (error) {
@@ -47883,7 +47816,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47883
47816
  onRenderProcessGone: handleWebViewProcessDidTerminate
47884
47817
  }));
47885
47818
  }
47886
- var import_react_native184, import_react178, import_react179, import_react180, import_react181, import_jsx_runtime216, import_react182, import_jsx_runtime217, import_react183, import_react_native190, import_react184, import_react_native192, import_react185, import_react_native194, import_react186, import_react187, import_react188, import_react189, import_jsx_runtime218, import_jsx_runtime219, import_react190, import_react_native197, import_react191, import_react192, import_react193, import_react_native202, import_jsx_runtime220, import_jsx_runtime221, import_jsx_runtime222, import_jsx_runtime223, import_jsx_runtime224, import_react194, import_jsx_runtime225, import_jsx_runtime226, import_react_native205, import_jsx_runtime227, import_jsx_runtime228, import_jsx_runtime229, import_react195, import_react_native207, import_react196, import_react_native208, import_react197, import_react_native210, import_jsx_runtime230, import_jsx_runtime231, import_react198, import_react199, import_jsx_runtime232, import_jsx_runtime233, import_react200, import_react201, import_react202, import_react203, import_react_native216, import_react204, import_react205, import_jsx_runtime234, import_react206, import_react_native219, import_react207, import_react_native220, import_jsx_runtime235, import_react208, import_react_native221, import_jsx_runtime236, import_jsx_runtime237, __GlobalEventDeduplicator, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __hasOwnProp2, __copyProps2, __reExport2, env, EXIT_IMPRESSION_LOG_NAME, EXIT_IMPRESSION_SCHEMA_ID, ENTRY_APP_EVENT_SCHEMA_ID, AppEvent, UPDATE_SCHEME, NavigationBarContext, GAME_PROFILE_WEBVIEW_URL, GAME_MIN_VERSION, PLAYSTORE_LINK, APPSTORE_LINK, getMarketLink, UPDATE_DIALOG_SCHEMA_ID, UPDATE_DIALOG_LOG_NAME, UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID, UPDATE_DIALOG_CTA_CLICK_LOG_NAME, DEFAULT_ERROR, useErrorAlert, INTERNAL__onVisibilityChangedByTransparentServiceWeb, openTransparentWebView, useTransparentWebview, useGameProfileToast, useGameCenterProfile, Z_INDEX, GameInitializer, overlayStyle, EventEmitter, eventEmitter, homeEvent, safeAreaInsetsChange, NAVI_BAR_IMPRESSION_SCHEMA_ID, NAVI_BAR_IMPRESSION_LOG_NAME, CLOSE_POPUP_SHOW_SCHEMA_ID, CLOSE_POPUP_SHOW_LOG_NAME, CLOSE_BUTTON_CLICK_SCHEMA_ID, CLOSE_BUTTON_CLICK_LOG_NAME, CLOSE_POPUP_CTA_CLICK_SCHEMA_ID, CLOSE_POPUP_CTA_CLICK_LOG_NAME, HOME_BUTTON_CLICK_SCHEMA_ID, HOME_BUTTON_CLICK_LOG_NAME, BOTTOM_SHEET_SCHEMA_ID, BOTTOM_SHEET_LOG_NAME, BOTTOM_SHEET_OPEN_SCHEMA_ID, BOTTOM_SHEET_OPEN_LOG_NAME, BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID, BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME, BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID, BOTTOM_SHEET_MENU_CLICK_LOG_NAME, iconNameRegExp, iconURLRegExp, SHARE_SCHEME_REFERRER, APP_SHARE_MENU_INFO, APP_BRIDGE_METHOD_NAME, MIN_VERSION3, RNNavigationBar, bridge_entry_exports, AppsInToss, GameWebView, PartnerWebView, INVALID_AD_GROUP_ID_ERROR_MESSAGE, sessionId, ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION, IOS_FETCH_TOSS_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE3, ENVIRONMENT3, OPERATIONAL_ENVIRONMENT, OS, APP_VER, ALPHA_EVENT_TRACKER_HTTP_ENDPOINT, LIVE_EVENT_TRACKER_HTTP_ENDPOINT, INTEGRATED_AD_SDK_VERSION, ANDROID_INTEGRATED_AD_SUPPORTED_VERSION, IOS_INTEGRATED_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE22, INTG_AD_ADM_FALLBACK_RID_MAP, loadFullScreenAd, loadFullScreenAdForWeb, globalEventListenerMap, INITIAL_STATE, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId2, getReferrer22, trackScreen, operationalEnvironment, TYPES, WEBVIEW_TYPES, ERROR_CODES, _obj6, ERROR_MESSAGES, API_RESULT_ERROR_MAP, AD_STATUS_ERROR_MAP, GlobalEventDeduplicator, globalEventDeduplicator, styles3, styles22, styles32, Analytics2;
47819
+ var import_react_native184, import_react178, import_react179, import_jsx_runtime216, import_react180, import_jsx_runtime217, import_react181, import_react_native188, import_react182, import_react_native190, import_react183, import_react184, import_react_native193, import_react185, import_react186, import_react187, import_react188, import_jsx_runtime218, import_jsx_runtime219, import_react189, import_react_native196, import_react190, import_react191, import_react192, import_react_native201, import_jsx_runtime220, import_jsx_runtime221, import_jsx_runtime222, import_jsx_runtime223, import_jsx_runtime224, import_react193, import_jsx_runtime225, import_jsx_runtime226, import_react_native204, import_jsx_runtime227, import_jsx_runtime228, import_jsx_runtime229, import_react194, import_react_native206, import_react195, import_react_native207, import_react196, import_react_native209, import_jsx_runtime230, import_jsx_runtime231, import_react197, import_react198, import_jsx_runtime232, import_jsx_runtime233, import_react199, import_react200, import_react201, import_react202, import_react_native215, import_react203, import_react204, import_jsx_runtime234, import_react205, import_react_native218, import_react206, import_react_native219, import_jsx_runtime235, import_react207, import_react_native220, import_jsx_runtime236, import_jsx_runtime237, __GlobalEventDeduplicator, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __hasOwnProp2, __copyProps2, __reExport2, env, DEFAULT_PIPELINES, AppEvent, UPDATE_SCHEME, NavigationBarContext, GAME_PROFILE_WEBVIEW_URL, GAME_MIN_VERSION, PLAYSTORE_LINK, APPSTORE_LINK, getMarketLink, UPDATE_DIALOG_SCHEMA_ID, UPDATE_DIALOG_LOG_NAME, UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID, UPDATE_DIALOG_CTA_CLICK_LOG_NAME, DEFAULT_ERROR, useErrorAlert, INTERNAL__onVisibilityChangedByTransparentServiceWeb, openTransparentWebView, useTransparentWebview, useGameProfileToast, useGameCenterProfile, Z_INDEX, GameInitializer, overlayStyle, EventEmitter, eventEmitter, homeEvent, safeAreaInsetsChange, NAVI_BAR_IMPRESSION_SCHEMA_ID, NAVI_BAR_IMPRESSION_LOG_NAME, CLOSE_POPUP_SHOW_SCHEMA_ID, CLOSE_POPUP_SHOW_LOG_NAME, CLOSE_BUTTON_CLICK_SCHEMA_ID, CLOSE_BUTTON_CLICK_LOG_NAME, CLOSE_POPUP_CTA_CLICK_SCHEMA_ID, CLOSE_POPUP_CTA_CLICK_LOG_NAME, HOME_BUTTON_CLICK_SCHEMA_ID, HOME_BUTTON_CLICK_LOG_NAME, BOTTOM_SHEET_SCHEMA_ID, BOTTOM_SHEET_LOG_NAME, BOTTOM_SHEET_OPEN_SCHEMA_ID, BOTTOM_SHEET_OPEN_LOG_NAME, BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID, BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME, BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID, BOTTOM_SHEET_MENU_CLICK_LOG_NAME, iconNameRegExp, iconURLRegExp, SHARE_SCHEME_REFERRER, APP_SHARE_MENU_INFO, APP_BRIDGE_METHOD_NAME, MIN_VERSION3, RNNavigationBar, bridge_entry_exports, AppsInToss, GameWebView, PartnerWebView, INVALID_AD_GROUP_ID_ERROR_MESSAGE, sessionId, ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION, IOS_FETCH_TOSS_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE3, ENVIRONMENT3, OPERATIONAL_ENVIRONMENT, OS, APP_VER, ALPHA_EVENT_TRACKER_HTTP_ENDPOINT, LIVE_EVENT_TRACKER_HTTP_ENDPOINT, INTEGRATED_AD_SDK_VERSION, ANDROID_INTEGRATED_AD_SUPPORTED_VERSION, IOS_INTEGRATED_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE22, INTG_AD_ADM_FALLBACK_RID_MAP, loadFullScreenAd, loadFullScreenAdForWeb, globalEventListenerMap, INITIAL_STATE, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId2, getReferrer22, trackScreen, operationalEnvironment, TYPES, WEBVIEW_TYPES, ERROR_CODES, _obj6, ERROR_MESSAGES, API_RESULT_ERROR_MAP, AD_STATUS_ERROR_MAP, GlobalEventDeduplicator, globalEventDeduplicator, styles3, styles22, styles32, Analytics2;
47887
47820
  var init_dist8 = __esm({
47888
47821
  "../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.js"() {
47889
47822
  "use strict";
@@ -47908,69 +47841,63 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47908
47841
  init_src3();
47909
47842
  init_esm7();
47910
47843
  import_react_native184 = __toESM(require_react_native(), 1);
47911
- init_dist5();
47912
47844
  init_src3();
47913
47845
  import_react178 = __toESM(require_react(), 1);
47846
+ init_src3();
47914
47847
  init_dist5();
47915
47848
  init_src3();
47916
47849
  import_react179 = __toESM(require_react(), 1);
47917
- init_src3();
47918
- import_react180 = __toESM(require_react(), 1);
47919
- init_src3();
47920
- init_src3();
47921
- import_react181 = __toESM(require_react(), 1);
47922
47850
  import_jsx_runtime216 = __toESM(require_jsx_runtime(), 1);
47923
- import_react182 = __toESM(require_react(), 1);
47851
+ import_react180 = __toESM(require_react(), 1);
47924
47852
  import_jsx_runtime217 = __toESM(require_jsx_runtime(), 1);
47925
47853
  init_dist5();
47926
- import_react183 = __toESM(require_react(), 1);
47927
- import_react_native190 = __toESM(require_react_native(), 1);
47854
+ import_react181 = __toESM(require_react(), 1);
47855
+ import_react_native188 = __toESM(require_react_native(), 1);
47928
47856
  init_dist5();
47929
47857
  init_src3();
47930
47858
  init_esm7();
47931
47859
  init_dist6();
47932
- import_react184 = __toESM(require_react(), 1);
47933
- import_react_native192 = __toESM(require_react_native(), 1);
47934
- init_dist5();
47860
+ import_react182 = __toESM(require_react(), 1);
47861
+ import_react_native190 = __toESM(require_react_native(), 1);
47935
47862
  init_src3();
47936
47863
  init_esm7();
47937
- import_react185 = __toESM(require_react(), 1);
47938
- import_react_native194 = __toESM(require_react_native(), 1);
47864
+ import_react183 = __toESM(require_react(), 1);
47865
+ init_src3();
47866
+ import_react184 = __toESM(require_react(), 1);
47867
+ import_react_native193 = __toESM(require_react_native(), 1);
47939
47868
  init_dist5();
47940
- import_react186 = __toESM(require_react(), 1);
47869
+ import_react185 = __toESM(require_react(), 1);
47941
47870
  init_src3();
47942
47871
  init_esm7();
47872
+ import_react186 = __toESM(require_react(), 1);
47943
47873
  import_react187 = __toESM(require_react(), 1);
47944
- import_react188 = __toESM(require_react(), 1);
47945
47874
  init_src3();
47946
47875
  init_dist5();
47947
47876
  init_esm7();
47948
47877
  init_private2();
47949
- import_react189 = __toESM(require_react(), 1);
47878
+ import_react188 = __toESM(require_react(), 1);
47950
47879
  import_jsx_runtime218 = __toESM(require_jsx_runtime(), 1);
47951
47880
  import_jsx_runtime219 = __toESM(require_jsx_runtime(), 1);
47952
47881
  init_private2();
47953
- import_react190 = __toESM(require_react(), 1);
47954
- import_react_native197 = __toESM(require_react_native(), 1);
47882
+ import_react189 = __toESM(require_react(), 1);
47883
+ import_react_native196 = __toESM(require_react_native(), 1);
47955
47884
  init_src3();
47956
- import_react191 = __toESM(require_react(), 1);
47885
+ import_react190 = __toESM(require_react(), 1);
47957
47886
  init_esm7();
47958
47887
  init_dist6();
47959
- import_react192 = __toESM(require_react(), 1);
47960
- init_dist5();
47888
+ import_react191 = __toESM(require_react(), 1);
47961
47889
  init_src3();
47962
47890
  init_dist5();
47963
47891
  init_src3();
47964
47892
  init_esm7();
47965
47893
  init_private2();
47966
- import_react193 = __toESM(require_react(), 1);
47894
+ import_react192 = __toESM(require_react(), 1);
47967
47895
  init_dist5();
47968
47896
  init_src3();
47969
47897
  init_esm7();
47970
47898
  init_esm7();
47971
47899
  init_private2();
47972
- import_react_native202 = __toESM(require_react_native(), 1);
47973
- init_dist5();
47900
+ import_react_native201 = __toESM(require_react_native(), 1);
47974
47901
  init_src3();
47975
47902
  import_jsx_runtime220 = __toESM(require_jsx_runtime(), 1);
47976
47903
  import_jsx_runtime221 = __toESM(require_jsx_runtime(), 1);
@@ -47980,13 +47907,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47980
47907
  init_src3();
47981
47908
  import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
47982
47909
  import_jsx_runtime224 = __toESM(require_jsx_runtime(), 1);
47983
- import_react194 = __toESM(require_react(), 1);
47910
+ import_react193 = __toESM(require_react(), 1);
47984
47911
  import_jsx_runtime225 = __toESM(require_jsx_runtime(), 1);
47985
47912
  import_jsx_runtime226 = __toESM(require_jsx_runtime(), 1);
47986
47913
  init_react_native_safe_area_context();
47987
47914
  init_esm7();
47988
47915
  init_private2();
47989
- import_react_native205 = __toESM(require_react_native(), 1);
47916
+ import_react_native204 = __toESM(require_react_native(), 1);
47990
47917
  import_jsx_runtime227 = __toESM(require_jsx_runtime(), 1);
47991
47918
  init_async_bridges();
47992
47919
  init_constant_bridges2();
@@ -48002,28 +47929,28 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48002
47929
  init_src3();
48003
47930
  init_esm7();
48004
47931
  init_private2();
48005
- import_react195 = __toESM(require_react(), 1);
48006
- import_react_native207 = __toESM(require_react_native(), 1);
47932
+ import_react194 = __toESM(require_react(), 1);
47933
+ import_react_native206 = __toESM(require_react_native(), 1);
48007
47934
  init_dist5();
48008
47935
  init_react_native_webview();
48009
- import_react196 = __toESM(require_react(), 1);
48010
- import_react_native208 = __toESM(require_react_native(), 1);
47936
+ import_react195 = __toESM(require_react(), 1);
47937
+ import_react_native207 = __toESM(require_react_native(), 1);
48011
47938
  init_react_native_safe_area_context();
48012
47939
  init_src3();
48013
47940
  init_esm7();
48014
47941
  init_private2();
48015
47942
  init_dist6();
48016
- import_react197 = __toESM(require_react(), 1);
48017
- import_react_native210 = __toESM(require_react_native(), 1);
47943
+ import_react196 = __toESM(require_react(), 1);
47944
+ import_react_native209 = __toESM(require_react_native(), 1);
48018
47945
  import_jsx_runtime230 = __toESM(require_jsx_runtime(), 1);
48019
47946
  import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
48020
47947
  init_react_native_webview();
48021
- import_react198 = __toESM(require_react(), 1);
47948
+ import_react197 = __toESM(require_react(), 1);
48022
47949
  init_src3();
48023
47950
  init_esm7();
48024
47951
  init_private2();
48025
47952
  init_dist6();
48026
- import_react199 = __toESM(require_react(), 1);
47953
+ import_react198 = __toESM(require_react(), 1);
48027
47954
  import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
48028
47955
  import_jsx_runtime233 = __toESM(require_jsx_runtime(), 1);
48029
47956
  init_dist5();
@@ -48031,21 +47958,20 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48031
47958
  init_src3();
48032
47959
  init_dist5();
48033
47960
  init_src3();
48034
- init_dist5();
48035
47961
  init_src3();
48036
- import_react200 = __toESM(require_react(), 1);
47962
+ import_react199 = __toESM(require_react(), 1);
48037
47963
  init_react_native_safe_area_context();
48038
- import_react201 = __toESM(require_react(), 1);
47964
+ import_react200 = __toESM(require_react(), 1);
48039
47965
  init_src3();
48040
47966
  init_esm7();
48041
47967
  init_dist6();
47968
+ import_react201 = __toESM(require_react(), 1);
48042
47969
  import_react202 = __toESM(require_react(), 1);
48043
- import_react203 = __toESM(require_react(), 1);
48044
47970
  init_dist5();
48045
- import_react_native216 = __toESM(require_react_native(), 1);
47971
+ import_react_native215 = __toESM(require_react_native(), 1);
48046
47972
  init_dist5();
47973
+ import_react203 = __toESM(require_react(), 1);
48047
47974
  import_react204 = __toESM(require_react(), 1);
48048
- import_react205 = __toESM(require_react(), 1);
48049
47975
  init_dist5();
48050
47976
  init_src3();
48051
47977
  init_esm7();
@@ -48056,13 +47982,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48056
47982
  init_dist5();
48057
47983
  init_dist3();
48058
47984
  init_dist3();
47985
+ import_react205 = __toESM(require_react(), 1);
47986
+ import_react_native218 = __toESM(require_react_native(), 1);
48059
47987
  import_react206 = __toESM(require_react(), 1);
48060
47988
  import_react_native219 = __toESM(require_react_native(), 1);
47989
+ import_jsx_runtime235 = __toESM(require_jsx_runtime(), 1);
48061
47990
  import_react207 = __toESM(require_react(), 1);
48062
47991
  import_react_native220 = __toESM(require_react_native(), 1);
48063
- import_jsx_runtime235 = __toESM(require_jsx_runtime(), 1);
48064
- import_react208 = __toESM(require_react(), 1);
48065
- import_react_native221 = __toESM(require_react_native(), 1);
48066
47992
  import_jsx_runtime236 = __toESM(require_jsx_runtime(), 1);
48067
47993
  import_jsx_runtime237 = __toESM(require_jsx_runtime(), 1);
48068
47994
  __defProp2 = Object.defineProperty;
@@ -48115,16 +48041,15 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48115
48041
  return global.__granite.app.name;
48116
48042
  }
48117
48043
  };
48118
- EXIT_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__stay_time";
48119
- EXIT_IMPRESSION_SCHEMA_ID = 1631628;
48120
- ENTRY_APP_EVENT_SCHEMA_ID = 1562181;
48044
+ DEFAULT_PIPELINES = [
48045
+ "core",
48046
+ "partner"
48047
+ ];
48121
48048
  AppEvent = {
48122
- Entry: EntryAppEvent,
48123
- System: SystemAppEvent,
48124
- StayTime: StayTimeAppEvent
48049
+ System: SystemAppEvent
48125
48050
  };
48126
48051
  UPDATE_SCHEME = "servicetoss://update/forced/j?updateType=required";
48127
- NavigationBarContext = /* @__PURE__ */ (0, import_react182.createContext)(null);
48052
+ NavigationBarContext = /* @__PURE__ */ (0, import_react180.createContext)(null);
48128
48053
  GAME_PROFILE_WEBVIEW_URL = "servicetoss://game-center/profile";
48129
48054
  GAME_MIN_VERSION = {
48130
48055
  android: "5.232.0",
@@ -48133,7 +48058,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48133
48058
  PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
48134
48059
  APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
48135
48060
  getMarketLink = function() {
48136
- return import_react_native194.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
48061
+ return import_react_native193.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
48137
48062
  };
48138
48063
  UPDATE_DIALOG_SCHEMA_ID = 1634992;
48139
48064
  UPDATE_DIALOG_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update";
@@ -48145,7 +48070,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48145
48070
  };
48146
48071
  useErrorAlert = function() {
48147
48072
  var openAlert = useDialog().openAlert;
48148
- var openErrorAlert = (0, import_react187.useCallback)(function() {
48073
+ var openErrorAlert = (0, import_react186.useCallback)(function() {
48149
48074
  return _async_to_generator(function() {
48150
48075
  return __generator(this, function(_state) {
48151
48076
  switch (_state.label) {
@@ -48201,9 +48126,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48201
48126
  openURL(url.toString());
48202
48127
  };
48203
48128
  useTransparentWebview = function() {
48204
- var _useState2 = _sliced_to_array((0, import_react188.useState)(false), 2), isWebviewLoading = _useState2[0], setIsWebviewLoading = _useState2[1];
48129
+ var _useState2 = _sliced_to_array((0, import_react187.useState)(false), 2), isWebviewLoading = _useState2[0], setIsWebviewLoading = _useState2[1];
48205
48130
  var _useErrorAlert = useErrorAlert(), openErrorAlert = _useErrorAlert.open;
48206
- var _openTransparentWebview = (0, import_react188.useCallback)(function(param) {
48131
+ var _openTransparentWebview = (0, import_react187.useCallback)(function(param) {
48207
48132
  var webUrl = param.webUrl, onClose = param.onClose, onError = param.onError;
48208
48133
  if (isWebviewLoading) {
48209
48134
  return;
@@ -48243,7 +48168,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48243
48168
  };
48244
48169
  useGameProfileToast = function() {
48245
48170
  var overlay = useOverlay();
48246
- var openGameProfileToast = (0, import_react189.useCallback)(function(nickname, profileImageUri) {
48171
+ var openGameProfileToast = (0, import_react188.useCallback)(function(nickname, profileImageUri) {
48247
48172
  return new Promise(function(resolve) {
48248
48173
  overlay.open(function(param) {
48249
48174
  var isOpen = param.isOpen, close = param.close, exit = param.exit;
@@ -48282,16 +48207,16 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48282
48207
  };
48283
48208
  };
48284
48209
  useGameCenterProfile = function() {
48285
- var _useState3 = _sliced_to_array((0, import_react186.useState)(void 0), 2), profileData = _useState3[0], setProfileData = _useState3[1];
48286
- var _useState31 = _sliced_to_array((0, import_react186.useState)(true), 2), isProfileDataLoading = _useState31[0], setIsProfileDataLoading = _useState31[1];
48287
- var _useState32 = _sliced_to_array((0, import_react186.useState)(false), 2), isProfileDataRefetching = _useState32[0], setIsProfileDataRefetching = _useState32[1];
48210
+ var _useState3 = _sliced_to_array((0, import_react185.useState)(void 0), 2), profileData = _useState3[0], setProfileData = _useState3[1];
48211
+ var _useState31 = _sliced_to_array((0, import_react185.useState)(true), 2), isProfileDataLoading = _useState31[0], setIsProfileDataLoading = _useState31[1];
48212
+ var _useState32 = _sliced_to_array((0, import_react185.useState)(false), 2), isProfileDataRefetching = _useState32[0], setIsProfileDataRefetching = _useState32[1];
48288
48213
  var shouldShowProfileLoadingOverlay = isProfileDataLoading || isProfileDataRefetching;
48289
48214
  var shouldShowProfileNotFoundOverlay = (profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && !isProfileDataRefetching;
48290
48215
  var canShowBottomSheetOrToast = !isProfileDataLoading;
48291
48216
  var openGameProfileToast = useGameProfileToast().openGameProfileToast;
48292
48217
  var _useErrorAlert = useErrorAlert(), openErrorAlert = _useErrorAlert.open;
48293
48218
  var _useTransparentWebview = useTransparentWebview(), openTransparentWebView2 = _useTransparentWebview.open;
48294
- var fetchProfileData = (0, import_react186.useCallback)(function() {
48219
+ var fetchProfileData = (0, import_react185.useCallback)(function() {
48295
48220
  return _async_to_generator(function() {
48296
48221
  var data, _16;
48297
48222
  return __generator(this, function(_state) {
@@ -48333,7 +48258,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48333
48258
  }, [
48334
48259
  openErrorAlert
48335
48260
  ]);
48336
- var refetchProfileData = (0, import_react186.useCallback)(function() {
48261
+ var refetchProfileData = (0, import_react185.useCallback)(function() {
48337
48262
  return _async_to_generator(function() {
48338
48263
  var data, _16;
48339
48264
  return __generator(this, function(_state) {
@@ -48380,7 +48305,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48380
48305
  openErrorAlert,
48381
48306
  openGameProfileToast
48382
48307
  ]);
48383
- var openProfileWebview = (0, import_react186.useCallback)(function() {
48308
+ var openProfileWebview = (0, import_react185.useCallback)(function() {
48384
48309
  openTransparentWebView2({
48385
48310
  webUrl: "".concat(GAME_PROFILE_WEBVIEW_URL, "?appName=").concat(getAppName(), "&referrer=appsintoss.").concat(getAppName()),
48386
48311
  onClose: function() {
@@ -48419,12 +48344,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48419
48344
  GameInitializer = function(param) {
48420
48345
  var children = param.children;
48421
48346
  var _useGameCenterProfile = useGameCenterProfile(), profileData = _useGameCenterProfile.profileData, shouldShowProfileLoadingOverlay = _useGameCenterProfile.shouldShowProfileLoadingOverlay, shouldShowProfileNotFoundOverlay = _useGameCenterProfile.shouldShowProfileNotFoundOverlay, canShowBottomSheetOrToast = _useGameCenterProfile.canShowBottomSheetOrToast, openProfileWebview = _useGameCenterProfile.openProfileWebview, openGameProfileToast = _useGameCenterProfile.openGameProfileToast, fetchProfileData = _useGameCenterProfile.fetchProfileData;
48422
- var isCompletedFlow = (0, import_react184.useRef)(false);
48347
+ var isCompletedFlow = (0, import_react182.useRef)(false);
48423
48348
  var _useAppUpdateDialog = useAppUpdateDialog(), openAppUpdateDialog = _useAppUpdateDialog.open;
48424
- (0, import_react184.useEffect)(function() {
48349
+ (0, import_react182.useEffect)(function() {
48425
48350
  fetchProfileData();
48426
48351
  }, []);
48427
- (0, import_react184.useEffect)(function() {
48352
+ (0, import_react182.useEffect)(function() {
48428
48353
  var handleGameProfileFlow = function() {
48429
48354
  return _async_to_generator(function() {
48430
48355
  return __generator(this, function(_state) {
@@ -48477,14 +48402,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48477
48402
  if (!isMinVersionSupported(GAME_MIN_VERSION)) {
48478
48403
  return (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
48479
48404
  children: [
48480
- (0, import_jsx_runtime219.jsx)(import_react_native192.View, {
48405
+ (0, import_jsx_runtime219.jsx)(import_react_native190.View, {
48481
48406
  style: {
48482
48407
  flex: 1,
48483
48408
  position: "relative"
48484
48409
  },
48485
48410
  children
48486
48411
  }),
48487
- (0, import_jsx_runtime219.jsx)(import_react_native192.Pressable, {
48412
+ (0, import_jsx_runtime219.jsx)(import_react_native190.Pressable, {
48488
48413
  style: _object_spread({}, overlayStyle),
48489
48414
  onPress: function() {
48490
48415
  openAppUpdateDialog({
@@ -48501,14 +48426,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48501
48426
  if (shouldShowProfileLoadingOverlay) {
48502
48427
  return (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
48503
48428
  children: [
48504
- (0, import_jsx_runtime219.jsx)(import_react_native192.View, {
48429
+ (0, import_jsx_runtime219.jsx)(import_react_native190.View, {
48505
48430
  style: {
48506
48431
  flex: 1,
48507
48432
  position: "relative"
48508
48433
  },
48509
48434
  children
48510
48435
  }),
48511
- (0, import_jsx_runtime219.jsx)(import_react_native192.View, {
48436
+ (0, import_jsx_runtime219.jsx)(import_react_native190.View, {
48512
48437
  style: _object_spread_props(_object_spread({}, overlayStyle), {
48513
48438
  justifyContent: "center",
48514
48439
  alignItems: "center",
@@ -48525,14 +48450,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48525
48450
  if (shouldShowProfileNotFoundOverlay) {
48526
48451
  return (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
48527
48452
  children: [
48528
- (0, import_jsx_runtime219.jsx)(import_react_native192.View, {
48453
+ (0, import_jsx_runtime219.jsx)(import_react_native190.View, {
48529
48454
  style: {
48530
48455
  flex: 1,
48531
48456
  position: "relative"
48532
48457
  },
48533
48458
  children
48534
48459
  }),
48535
- shouldShowProfileNotFoundOverlay && (0, import_jsx_runtime219.jsx)(import_react_native192.Pressable, {
48460
+ shouldShowProfileNotFoundOverlay && (0, import_jsx_runtime219.jsx)(import_react_native190.Pressable, {
48536
48461
  style: _object_spread({}, overlayStyle),
48537
48462
  onPress: function() {
48538
48463
  openProfileWebview();
@@ -48542,7 +48467,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48542
48467
  });
48543
48468
  }
48544
48469
  return (0, import_jsx_runtime219.jsx)(import_jsx_runtime219.Fragment, {
48545
- children: (0, import_jsx_runtime219.jsx)(import_react_native192.View, {
48470
+ children: (0, import_jsx_runtime219.jsx)(import_react_native190.View, {
48546
48471
  style: {
48547
48472
  flex: 1,
48548
48473
  position: "relative"
@@ -48670,9 +48595,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48670
48595
  AppsInToss = {
48671
48596
  registerApp
48672
48597
  };
48673
- GameWebView = /* @__PURE__ */ (0, import_react196.forwardRef)(function GameWebView2(props, ref) {
48674
- (0, import_react196.useEffect)(function() {
48675
- if (import_react_native208.Platform.OS === "ios") {
48598
+ GameWebView = /* @__PURE__ */ (0, import_react195.forwardRef)(function GameWebView2(props, ref) {
48599
+ (0, import_react195.useEffect)(function() {
48600
+ if (import_react_native207.Platform.OS === "ios") {
48676
48601
  setIosSwipeGestureEnabled({
48677
48602
  isEnabled: false
48678
48603
  });
@@ -48697,7 +48622,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48697
48622
  ]
48698
48623
  });
48699
48624
  });
48700
- PartnerWebView = /* @__PURE__ */ (0, import_react198.forwardRef)(function PartnerWebViewScreen(_03, _1) {
48625
+ PartnerWebView = /* @__PURE__ */ (0, import_react197.forwardRef)(function PartnerWebViewScreen(_03, _1) {
48701
48626
  var _ref = [
48702
48627
  _03,
48703
48628
  _1
@@ -48961,7 +48886,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48961
48886
  return _GlobalEventDeduplicator;
48962
48887
  }(), __GlobalEventDeduplicator.MAX_EVENTS = 1e4, __GlobalEventDeduplicator);
48963
48888
  globalEventDeduplicator = new GlobalEventDeduplicator();
48964
- styles3 = import_react_native220.StyleSheet.create({
48889
+ styles3 = import_react_native219.StyleSheet.create({
48965
48890
  pressable: {
48966
48891
  width: "100%"
48967
48892
  },
@@ -48999,7 +48924,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48999
48924
  height: 36,
49000
48925
  borderRadius: 18
49001
48926
  },
49002
- logoOverlay: _object_spread_props(_object_spread({}, import_react_native220.StyleSheet.absoluteFillObject), {
48927
+ logoOverlay: _object_spread_props(_object_spread({}, import_react_native219.StyleSheet.absoluteFillObject), {
49003
48928
  borderWidth: 1,
49004
48929
  borderRadius: 18
49005
48930
  }),
@@ -49061,7 +48986,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
49061
48986
  fontWeight: "600",
49062
48987
  lineHeight: 22.5
49063
48988
  },
49064
- cardOverlay: _object_spread_props(_object_spread({}, import_react_native220.StyleSheet.absoluteFillObject), {
48989
+ cardOverlay: _object_spread_props(_object_spread({}, import_react_native219.StyleSheet.absoluteFillObject), {
49065
48990
  borderWidth: 2,
49066
48991
  borderRadius: 12,
49067
48992
  pointerEvents: "none"
@@ -49072,7 +48997,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
49072
48997
  fontWeight: "400"
49073
48998
  }
49074
48999
  });
49075
- styles22 = import_react_native221.StyleSheet.create({
49000
+ styles22 = import_react_native220.StyleSheet.create({
49076
49001
  pressable: {
49077
49002
  width: "100%"
49078
49003
  },
@@ -49117,7 +49042,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
49117
49042
  width: "100%"
49118
49043
  }
49119
49044
  });
49120
- styles32 = import_react_native219.StyleSheet.create({
49045
+ styles32 = import_react_native218.StyleSheet.create({
49121
49046
  impressionArea: {
49122
49047
  width: "100%"
49123
49048
  },
@@ -49152,7 +49077,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
49152
49077
  }
49153
49078
  });
49154
49079
  function Index() {
49155
- return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(import_react_native222.View, {
49080
+ return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(import_react_native221.View, {
49156
49081
  style: {
49157
49082
  flex: 1
49158
49083
  },
@@ -49174,13 +49099,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
49174
49099
  })
49175
49100
  });
49176
49101
  }
49177
- var import_jsx_runtime238, import_react_native222;
49102
+ var import_jsx_runtime238, import_react_native221;
49178
49103
  var init_pages = __esm({
49179
49104
  "react-native/pages/index.tsx"() {
49180
49105
  "use strict";
49181
49106
  import_jsx_runtime238 = __toESM(require_jsx_runtime(), 1);
49182
49107
  init_dist8();
49183
- import_react_native222 = __toESM(require_react_native(), 1);
49108
+ import_react_native221 = __toESM(require_react_native(), 1);
49184
49109
  }
49185
49110
  });
49186
49111