@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.
@@ -44479,15 +44479,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44479
44479
  });
44480
44480
 
44481
44481
  // ../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.js
44482
- function useReferrer() {
44483
- return (0, import_react180.useMemo)(function() {
44484
- try {
44485
- return new URL(getSchemeUri()).searchParams.get("referrer");
44486
- } catch (unused) {
44487
- return null;
44488
- }
44489
- }, []);
44490
- }
44491
44482
  function isPrivateScheme() {
44492
44483
  try {
44493
44484
  return new URL(getSchemeUri()).protocol === "intoss-private:";
@@ -44495,69 +44486,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44495
44486
  return false;
44496
44487
  }
44497
44488
  }
44498
- function useCaptureExitLog() {
44499
- var referrer2 = useReferrer();
44500
- var visible = useVisibility();
44501
- var enterTime = (0, import_react179.useRef)(void 0);
44502
- (0, import_react179.useEffect)(function() {
44503
- if (visible === true) {
44504
- enterTime.current = Date.now();
44505
- }
44506
- }, [
44507
- visible
44508
- ]);
44509
- var captureExitLog = (0, import_react179.useCallback)(function(exitTime) {
44510
- if (enterTime.current == null) {
44511
- return;
44512
- }
44513
- var stayTime = Math.floor(exitTime - enterTime.current);
44514
- INTERNAL__module.tossCoreEventLog({
44515
- log_name: EXIT_IMPRESSION_LOG_NAME,
44516
- log_type: "event",
44517
- params: {
44518
- schema_id: EXIT_IMPRESSION_SCHEMA_ID,
44519
- event_type: "impression",
44520
- referrer: referrer2,
44521
- deployment_id: env.getDeploymentId(),
44522
- app_name: Granite.appName,
44523
- is_private: isPrivateScheme(),
44524
- stay_time: stayTime.toString(),
44525
- exit_time: exitTime.toString()
44526
- }
44527
- });
44528
- enterTime.current = void 0;
44529
- }, [
44530
- referrer2
44531
- ]);
44532
- return {
44533
- captureExitLog
44534
- };
44535
- }
44536
- function EntryAppEvent() {
44537
- var _useReferrer;
44538
- var referrer2 = (_useReferrer = useReferrer()) !== null && _useReferrer !== void 0 ? _useReferrer : "";
44539
- (0, import_react178.useEffect)(function() {
44540
- INTERNAL__module.tossCoreEventLog({
44541
- log_name: "appsintoss_app_visit::impression__enter_appsintoss",
44542
- log_type: "info",
44543
- params: {
44544
- is_transform: true,
44545
- schema_id: ENTRY_APP_EVENT_SCHEMA_ID,
44546
- referrer: referrer2,
44547
- deployment_id: env.getDeploymentId(),
44548
- app_name: Granite.appName,
44549
- is_private: isPrivateScheme()
44550
- }
44551
- });
44552
- }, [
44553
- referrer2
44554
- ]);
44555
- return null;
44489
+ function sendLog(logData, options) {
44490
+ var _ref = options !== null && options !== void 0 ? options : {}, _ref_pipelines = _ref.pipelines, pipelines = _ref_pipelines === void 0 ? DEFAULT_PIPELINES : _ref_pipelines;
44491
+ if (pipelines.includes("core")) {
44492
+ INTERNAL__module.tossCoreEventLog(logData);
44493
+ }
44494
+ if (pipelines.includes("partner")) {
44495
+ eventLog(logData);
44496
+ }
44556
44497
  }
44557
44498
  function SystemAppEvent(_03) {
44558
44499
  var ref = _object_destructuring_empty(_03), initialProps = _extends({}, _03);
44559
44500
  (0, import_react178.useEffect)(function() {
44560
- INTERNAL__module.tossCoreEventLog({
44501
+ sendLog({
44561
44502
  log_name: "AppsInTossInitialProps",
44562
44503
  log_type: "debug",
44563
44504
  params: _object_spread_props(_object_spread({}, initialProps), {
@@ -44566,27 +44507,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44566
44507
  app_name: Granite.appName,
44567
44508
  is_private: isPrivateScheme()
44568
44509
  })
44510
+ }, {
44511
+ pipelines: [
44512
+ "core"
44513
+ ]
44569
44514
  });
44570
44515
  }, [
44571
44516
  initialProps
44572
44517
  ]);
44573
44518
  return null;
44574
44519
  }
44575
- function StayTimeAppEvent() {
44576
- var visible = useVisibility();
44577
- var captureExitLog = useCaptureExitLog().captureExitLog;
44578
- (0, import_react178.useEffect)(function() {
44579
- if (visible === false) {
44580
- captureExitLog(Date.now());
44581
- }
44582
- }, [
44583
- visible,
44584
- captureExitLog
44585
- ]);
44586
- return null;
44587
- }
44588
44520
  function AppUpdate() {
44589
- (0, import_react181.useEffect)(function() {
44521
+ (0, import_react179.useEffect)(function() {
44590
44522
  openURL("supertoss://closePage?url=".concat(UPDATE_SCHEME));
44591
44523
  }, []);
44592
44524
  return (0, import_jsx_runtime216.jsx)(import_jsx_runtime216.Fragment, {});
@@ -44611,7 +44543,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44611
44543
  var children = param.children;
44612
44544
  var globals = getAppsInTossGlobals();
44613
44545
  var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
44614
- 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];
44546
+ 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];
44615
44547
  var addNavigationRightButton = function(button) {
44616
44548
  setNavigationRightButton(button);
44617
44549
  };
@@ -44628,16 +44560,25 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44628
44560
  });
44629
44561
  }
44630
44562
  function useNavigationBarContext() {
44631
- var context2 = (0, import_react182.useContext)(NavigationBarContext);
44563
+ var context2 = (0, import_react180.useContext)(NavigationBarContext);
44632
44564
  if (context2 == null) {
44633
44565
  throw Error("useNavigationBarContext must be used within NavigationBarContextProvider");
44634
44566
  }
44635
44567
  return context2;
44636
44568
  }
44569
+ function useReferrer() {
44570
+ return (0, import_react184.useMemo)(function() {
44571
+ try {
44572
+ return new URL(getSchemeUri()).searchParams.get("referrer");
44573
+ } catch (unused) {
44574
+ return null;
44575
+ }
44576
+ }, []);
44577
+ }
44637
44578
  function useAppUpdateDialog() {
44638
44579
  var openConfirm = useDialog().openConfirm;
44639
44580
  var logging = useAppUpdateDialogLogging();
44640
- var openAppUpdateDialog = (0, import_react185.useCallback)(function(param) {
44581
+ var openAppUpdateDialog = (0, import_react183.useCallback)(function(param) {
44641
44582
  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;
44642
44583
  return _async_to_generator(function() {
44643
44584
  var isConfirmed, STORE_SCHEME;
@@ -44688,7 +44629,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44688
44629
  app_name: Granite.appName
44689
44630
  };
44690
44631
  var logUpdateClick = function() {
44691
- INTERNAL__module.tossCoreEventLog({
44632
+ sendLog({
44692
44633
  log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
44693
44634
  log_type: "event",
44694
44635
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -44699,7 +44640,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44699
44640
  });
44700
44641
  };
44701
44642
  var logCloseClick = function() {
44702
- INTERNAL__module.tossCoreEventLog({
44643
+ sendLog({
44703
44644
  log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
44704
44645
  log_type: "event",
44705
44646
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -44710,7 +44651,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44710
44651
  });
44711
44652
  };
44712
44653
  var logDialogShow = function() {
44713
- INTERNAL__module.tossCoreEventLog({
44654
+ sendLog({
44714
44655
  log_name: UPDATE_DIALOG_LOG_NAME,
44715
44656
  log_type: "popup",
44716
44657
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -44725,12 +44666,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44725
44666
  };
44726
44667
  }
44727
44668
  function useHardwareBackPress(handler) {
44728
- (0, import_react190.useEffect)(function() {
44669
+ (0, import_react189.useEffect)(function() {
44729
44670
  var handleBackPress = function() {
44730
44671
  handler();
44731
44672
  return true;
44732
44673
  };
44733
- var backHandler = import_react_native197.BackHandler.addEventListener("hardwareBackPress", handleBackPress);
44674
+ var backHandler = import_react_native196.BackHandler.addEventListener("hardwareBackPress", handleBackPress);
44734
44675
  return function() {
44735
44676
  return backHandler.remove();
44736
44677
  };
@@ -44741,7 +44682,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44741
44682
  function useCloseConfirm() {
44742
44683
  var brandDisplayName = getAppsInTossGlobals().brandDisplayName;
44743
44684
  var openConfirm = useDialog().openConfirm;
44744
- return (0, import_react192.useCallback)(function(param) {
44685
+ return (0, import_react191.useCallback)(function(param) {
44745
44686
  var onEntered = param.onEntered;
44746
44687
  return _async_to_generator(function() {
44747
44688
  return __generator(this, function(_state) {
@@ -44794,7 +44735,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44794
44735
  app_name: Granite.appName
44795
44736
  };
44796
44737
  var logNavBarImpression = function(naviBarConfig) {
44797
- INTERNAL__module.tossCoreEventLog({
44738
+ sendLog({
44798
44739
  log_name: NAVI_BAR_IMPRESSION_LOG_NAME,
44799
44740
  log_type: "event",
44800
44741
  params: _object_spread_props(_object_spread({}, naviBarConfig, baseParams), {
@@ -44804,7 +44745,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44804
44745
  });
44805
44746
  };
44806
44747
  var logHomeButtonClick = function() {
44807
- INTERNAL__module.tossCoreEventLog({
44748
+ sendLog({
44808
44749
  log_name: HOME_BUTTON_CLICK_LOG_NAME,
44809
44750
  log_type: "event",
44810
44751
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -44814,7 +44755,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44814
44755
  });
44815
44756
  };
44816
44757
  var logCloseButtonClick = function() {
44817
- INTERNAL__module.tossCoreEventLog({
44758
+ sendLog({
44818
44759
  log_name: CLOSE_BUTTON_CLICK_LOG_NAME,
44819
44760
  log_type: "event",
44820
44761
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -44824,7 +44765,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44824
44765
  });
44825
44766
  };
44826
44767
  var logClosePopupShow = function() {
44827
- INTERNAL__module.tossCoreEventLog({
44768
+ sendLog({
44828
44769
  log_name: CLOSE_POPUP_SHOW_LOG_NAME,
44829
44770
  log_type: "popup",
44830
44771
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -44833,7 +44774,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44833
44774
  });
44834
44775
  };
44835
44776
  var logClosePopupCtaClick = function(confirm) {
44836
- INTERNAL__module.tossCoreEventLog({
44777
+ sendLog({
44837
44778
  log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
44838
44779
  log_type: "event",
44839
44780
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -44856,8 +44797,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44856
44797
  var logging = useNavigationBarLogging();
44857
44798
  var navigation = useNavigation();
44858
44799
  var closeConfirm = useCloseConfirm();
44859
- var captureExitLog = useCaptureExitLog().captureExitLog;
44860
- return (0, import_react191.useMemo)(function() {
44800
+ return (0, import_react190.useMemo)(function() {
44861
44801
  var close = function() {
44862
44802
  return _async_to_generator(function() {
44863
44803
  var hasConfirmed;
@@ -44874,7 +44814,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44874
44814
  hasConfirmed = _state.sent();
44875
44815
  logging.closePopupCtaClick(hasConfirmed);
44876
44816
  if (hasConfirmed) {
44877
- captureExitLog(Date.now());
44878
44817
  closeView();
44879
44818
  }
44880
44819
  return [
@@ -44911,8 +44850,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44911
44850
  backEventContext,
44912
44851
  navigation,
44913
44852
  closeConfirm,
44914
- logging,
44915
- captureExitLog
44853
+ logging
44916
44854
  ]);
44917
44855
  }
44918
44856
  function useMoreButtonBottomSheetLogging() {
@@ -44922,7 +44860,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44922
44860
  app_name: Granite.appName
44923
44861
  };
44924
44862
  var logBottomSheetShow = function() {
44925
- INTERNAL__module.tossCoreEventLog({
44863
+ sendLog({
44926
44864
  log_name: BOTTOM_SHEET_LOG_NAME,
44927
44865
  log_type: "popup",
44928
44866
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -44931,7 +44869,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44931
44869
  });
44932
44870
  };
44933
44871
  var logBottomSheetOpen = function() {
44934
- INTERNAL__module.tossCoreEventLog({
44872
+ sendLog({
44935
44873
  log_name: BOTTOM_SHEET_OPEN_LOG_NAME,
44936
44874
  log_type: "event",
44937
44875
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -44941,7 +44879,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44941
44879
  });
44942
44880
  };
44943
44881
  var logBottomSheetCloseClick = function() {
44944
- INTERNAL__module.tossCoreEventLog({
44882
+ sendLog({
44945
44883
  log_name: BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME,
44946
44884
  log_type: "event",
44947
44885
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -44952,7 +44890,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44952
44890
  };
44953
44891
  var logBottomSheetMenuClick = function(param) {
44954
44892
  var title = param.title;
44955
- INTERNAL__module.tossCoreEventLog({
44893
+ sendLog({
44956
44894
  log_name: BOTTOM_SHEET_MENU_CLICK_LOG_NAME,
44957
44895
  log_type: "event",
44958
44896
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -44978,7 +44916,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44978
44916
  var brandPrimaryColorRGB = hexToRGB(globals.brandPrimaryColor);
44979
44917
  var iconBackgroundColor = brandPrimaryColorRGB ? "rgba(".concat(brandPrimaryColorRGB.join(","), ",0.1)") : adaptive.grey100;
44980
44918
  return (0, import_jsx_runtime220.jsx)(ListRow2, {
44981
- left: (0, import_jsx_runtime220.jsx)(import_react_native202.View, {
44919
+ left: (0, import_jsx_runtime220.jsx)(import_react_native201.View, {
44982
44920
  style: {
44983
44921
  width: 30,
44984
44922
  height: 30,
@@ -45138,7 +45076,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45138
45076
  function useMoreButtonBottomSheet() {
45139
45077
  var globals = getAppsInTossGlobals();
45140
45078
  var adaptive = useAdaptive();
45141
- var _useState4 = _sliced_to_array((0, import_react193.useState)([]), 2), itemList = _useState4[0], setItemList = _useState4[1];
45079
+ var _useState4 = _sliced_to_array((0, import_react192.useState)([]), 2), itemList = _useState4[0], setItemList = _useState4[1];
45142
45080
  var appUpdateDialog = useAppUpdateDialog();
45143
45081
  var logging = useMoreButtonBottomSheetLogging();
45144
45082
  var overlay = useOverlay();
@@ -45147,7 +45085,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45147
45085
  var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION3.BOTTOM_SHEET);
45148
45086
  var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION3.SHARE_LIST_MENU);
45149
45087
  var isSettingsMenuSupported = isMinVersionSupported(MIN_VERSION3.SETTINGS_MENU);
45150
- (0, import_react193.useEffect)(function() {
45088
+ (0, import_react192.useEffect)(function() {
45151
45089
  if (!isBottomSheetSupported) {
45152
45090
  return;
45153
45091
  }
@@ -45248,7 +45186,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45248
45186
  function BottomSheetImpressionArea(param) {
45249
45187
  var children = param.children;
45250
45188
  var logging = useMoreButtonBottomSheetLogging();
45251
- (0, import_react193.useEffect)(function() {
45189
+ (0, import_react192.useEffect)(function() {
45252
45190
  logging.show();
45253
45191
  }, [
45254
45192
  logging
@@ -45268,9 +45206,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45268
45206
  }
45269
45207
  function NavigationBarImpressionArea(param) {
45270
45208
  var children = param.children, withHomeButton = param.withHomeButton;
45271
- var hasLogged = (0, import_react194.useRef)(false);
45209
+ var hasLogged = (0, import_react193.useRef)(false);
45272
45210
  var logging = useNavigationBarLogging();
45273
- (0, import_react194.useEffect)(function() {
45211
+ (0, import_react193.useEffect)(function() {
45274
45212
  if (hasLogged.current === false) {
45275
45213
  logging.navBarImpression({
45276
45214
  home_icon_yn: withHomeButton ? "Y" : "N"
@@ -45331,10 +45269,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45331
45269
  type: "none"
45332
45270
  }
45333
45271
  }),
45334
- (0, import_jsx_runtime227.jsx)(import_react_native205.View, {
45272
+ (0, import_jsx_runtime227.jsx)(import_react_native204.View, {
45335
45273
  style: {
45336
45274
  width: "100%",
45337
- height: import_react_native205.Platform.OS === "ios" ? 44 : 54,
45275
+ height: import_react_native204.Platform.OS === "ios" ? 44 : 54,
45338
45276
  flexDirection: "row",
45339
45277
  alignItems: "center",
45340
45278
  justifyContent: "flex-end",
@@ -45371,8 +45309,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45371
45309
  }
45372
45310
  function GameAppContainer(param) {
45373
45311
  var children = param.children;
45374
- (0, import_react183.useEffect)(function() {
45375
- if (import_react_native190.Platform.OS === "ios") {
45312
+ (0, import_react181.useEffect)(function() {
45313
+ if (import_react_native188.Platform.OS === "ios") {
45376
45314
  setIosSwipeGestureEnabled({
45377
45315
  isEnabled: false
45378
45316
  });
@@ -45412,7 +45350,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45412
45350
  })) {
45413
45351
  return (0, import_jsx_runtime229.jsxs)(import_jsx_runtime229.Fragment, {
45414
45352
  children: [
45415
- (0, import_jsx_runtime229.jsx)(AppEvent.Entry, {}),
45416
45353
  (0, import_jsx_runtime229.jsx)(AppEvent.System, _object_spread({}, initialProps)),
45417
45354
  (0, import_jsx_runtime229.jsx)(AppUpdate, {})
45418
45355
  ]
@@ -45420,8 +45357,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45420
45357
  }
45421
45358
  return (0, import_jsx_runtime229.jsxs)(import_jsx_runtime229.Fragment, {
45422
45359
  children: [
45423
- (0, import_jsx_runtime229.jsx)(AppEvent.StayTime, {}),
45424
- (0, import_jsx_runtime229.jsx)(AppEvent.Entry, {}),
45425
45360
  (0, import_jsx_runtime229.jsx)(AppEvent.System, _object_spread({}, initialProps)),
45426
45361
  (0, import_jsx_runtime229.jsx)(Container, _object_spread_props(_object_spread({}, initialProps), {
45427
45362
  children: (0, import_jsx_runtime229.jsx)(TDSProvider, {
@@ -45487,13 +45422,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45487
45422
  function GameWebviewNavigationBar() {
45488
45423
  var safeAreaTop = useSafeAreaTop();
45489
45424
  var openConfirm = useDialog().openConfirm;
45490
- var captureExitLog = useCaptureExitLog().captureExitLog;
45491
45425
  var global2 = getAppsInTossGlobals();
45492
45426
  var logging = useNavigationBarLogging();
45493
45427
  var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
45494
45428
  var navigationRightButton = useNavigationBarContext().navigationRightButton;
45495
45429
  var _useSafeAreaInsets2 = (0, react_native_safe_area_context_exports.useSafeAreaInsets)(), safeAreaRight = _useSafeAreaInsets2.right;
45496
- var handleGameWebviewClose = (0, import_react197.useCallback)(function() {
45430
+ var handleGameWebviewClose = (0, import_react196.useCallback)(function() {
45497
45431
  return _async_to_generator(function() {
45498
45432
  var isConfirmed;
45499
45433
  return __generator(this, function(_state) {
@@ -45514,7 +45448,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45514
45448
  isConfirmed = _state.sent();
45515
45449
  logging.closePopupCtaClick(isConfirmed);
45516
45450
  if (isConfirmed) {
45517
- captureExitLog(Date.now());
45518
45451
  closeView();
45519
45452
  }
45520
45453
  return [
@@ -45524,7 +45457,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45524
45457
  });
45525
45458
  })();
45526
45459
  }, [
45527
- captureExitLog,
45528
45460
  global2.brandDisplayName,
45529
45461
  logging,
45530
45462
  openConfirm
@@ -45536,10 +45468,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45536
45468
  type: "none"
45537
45469
  }
45538
45470
  }),
45539
- (0, import_jsx_runtime230.jsx)(import_react_native210.View, {
45471
+ (0, import_jsx_runtime230.jsx)(import_react_native209.View, {
45540
45472
  style: {
45541
45473
  width: "100%",
45542
- height: import_react_native210.Platform.OS === "ios" ? 44 : 54,
45474
+ height: import_react_native209.Platform.OS === "ios" ? 44 : 54,
45543
45475
  flexDirection: "row",
45544
45476
  alignItems: "center",
45545
45477
  justifyContent: "flex-end",
@@ -45565,7 +45497,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45565
45497
  var onBackButtonClick = param.onBackButtonClick, onHomeButtonClick = param.onHomeButtonClick;
45566
45498
  var _ref, _ref1;
45567
45499
  var globals = getAppsInTossGlobals();
45568
- var captureExitLog = useCaptureExitLog().captureExitLog;
45569
45500
  var logging = useNavigationBarLogging();
45570
45501
  var openConfirm = useDialog().openConfirm;
45571
45502
  var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
@@ -45573,7 +45504,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45573
45504
  var withHomeButton = (_ref = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withHomeButton) !== null && _ref !== void 0 ? _ref : false;
45574
45505
  var withBackButton = (_ref1 = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withBackButton) !== null && _ref1 !== void 0 ? _ref1 : true;
45575
45506
  var navigationRightButton = useNavigationBarContext().navigationRightButton;
45576
- var handleClose = (0, import_react199.useCallback)(function() {
45507
+ var handleClose = (0, import_react198.useCallback)(function() {
45577
45508
  return _async_to_generator(function() {
45578
45509
  var isConfirmed;
45579
45510
  return __generator(this, function(_state) {
@@ -45594,7 +45525,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45594
45525
  isConfirmed = _state.sent();
45595
45526
  logging.closePopupCtaClick(isConfirmed);
45596
45527
  if (isConfirmed) {
45597
- captureExitLog(Date.now());
45598
45528
  closeView();
45599
45529
  }
45600
45530
  return [
@@ -45604,7 +45534,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45604
45534
  });
45605
45535
  })();
45606
45536
  }, [
45607
- captureExitLog,
45608
45537
  globals.brandDisplayName,
45609
45538
  logging,
45610
45539
  openConfirm
@@ -45991,7 +45920,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45991
45920
  });
45992
45921
  return [
45993
45922
  2,
45994
- INTERNAL__module.tossCoreEventLog(eventLogParams)
45923
+ sendLog(eventLogParams, {
45924
+ pipelines: [
45925
+ "core"
45926
+ ]
45927
+ })
45995
45928
  ];
45996
45929
  });
45997
45930
  })();
@@ -46052,8 +45985,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46052
45985
  }
46053
45986
  function useBridgeHandler(param) {
46054
45987
  var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap;
46055
- var ref = (0, import_react200.useRef)(null);
46056
- var injectedJavaScript = (0, import_react200.useMemo)(function() {
45988
+ var ref = (0, import_react199.useRef)(null);
45989
+ var injectedJavaScript = (0, import_react199.useMemo)(function() {
46057
45990
  return "window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function(acc, param2) {
46058
45991
  var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
46059
45992
  acc[key] = typeof value === "function" ? value() : value;
@@ -46062,7 +45995,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46062
45995
  }, [
46063
45996
  constantHandlerMap
46064
45997
  ]);
46065
- (0, import_react200.useEffect)(function() {
45998
+ (0, import_react199.useEffect)(function() {
46066
45999
  var _ref_current;
46067
46000
  (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.injectJavaScript(injectedJavaScript);
46068
46001
  }, [
@@ -46081,7 +46014,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46081
46014
  (_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 "));
46082
46015
  };
46083
46016
  };
46084
- var $onMessage = (0, import_react200.useCallback)(function(e63) {
46017
+ var $onMessage = (0, import_react199.useCallback)(function(e63) {
46085
46018
  return _async_to_generator(function() {
46086
46019
  var data, _eventListenerMap_data_functionName, handleOnEvent, handleOnError, remove, key, remove1, _ref_current;
46087
46020
  return __generator(this, function(_state) {
@@ -46154,12 +46087,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46154
46087
  }
46155
46088
  function useSafeAreaInsetsEvent() {
46156
46089
  var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
46157
- (0, import_react201.useEffect)(function() {
46090
+ (0, import_react200.useEffect)(function() {
46158
46091
  safeAreaInsetsChange.emit(insets);
46159
46092
  }, [
46160
46093
  insets
46161
46094
  ]);
46162
- (0, import_react201.useEffect)(function() {
46095
+ (0, import_react200.useEffect)(function() {
46163
46096
  return function() {
46164
46097
  return safeAreaInsetsChange.clearSubscriptions();
46165
46098
  };
@@ -46209,8 +46142,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46209
46142
  }
46210
46143
  }
46211
46144
  function useWebViewHistory() {
46212
- var _useReducer = _sliced_to_array((0, import_react203.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
46213
- var onNavigationStateChange = (0, import_react203.useCallback)(function(param) {
46145
+ var _useReducer = _sliced_to_array((0, import_react202.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
46146
+ var onNavigationStateChange = (0, import_react202.useCallback)(function(param) {
46214
46147
  var url = param.url, canGoForward2 = param.canGoForward;
46215
46148
  dispatch({
46216
46149
  type: "NAVIGATION_CHANGE",
@@ -46218,7 +46151,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46218
46151
  canGoForward: canGoForward2
46219
46152
  });
46220
46153
  }, []);
46221
- var _useMemo4 = (0, import_react203.useMemo)(function() {
46154
+ var _useMemo4 = (0, import_react202.useMemo)(function() {
46222
46155
  var canBack = state.index > 0;
46223
46156
  var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
46224
46157
  return {
@@ -46236,23 +46169,22 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46236
46169
  };
46237
46170
  }
46238
46171
  function useWebBackHandler(webViewInitialURL, webViewRef) {
46239
- var captureExitLog = useCaptureExitLog().captureExitLog;
46240
46172
  var _useWebViewHistory = useWebViewHistory(), hasHistory = _useWebViewHistory.hasHistory, onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
46241
46173
  var _useBackEventState = useBackEventState(), webBackHandlersRef = _useBackEventState.handlersRef, hasWebBackEvent = _useBackEventState.hasBackEvent, addWebBackEventListener = _useBackEventState.addEventListener, removeWebBackEventListener = _useBackEventState.removeEventListener;
46242
46174
  var logging = useNavigationBarLogging();
46243
46175
  var openConfirm = useDialog().openConfirm;
46244
46176
  var global2 = getAppsInTossGlobals();
46245
- var addEventListener = (0, import_react202.useCallback)(function(handler) {
46177
+ var addEventListener = (0, import_react201.useCallback)(function(handler) {
46246
46178
  addWebBackEventListener(handler);
46247
46179
  }, [
46248
46180
  addWebBackEventListener
46249
46181
  ]);
46250
- var removeEventListener = (0, import_react202.useCallback)(function(handler) {
46182
+ var removeEventListener = (0, import_react201.useCallback)(function(handler) {
46251
46183
  removeWebBackEventListener(handler);
46252
46184
  }, [
46253
46185
  removeWebBackEventListener
46254
46186
  ]);
46255
- var handleWebBack = (0, import_react202.useCallback)(function() {
46187
+ var handleWebBack = (0, import_react201.useCallback)(function() {
46256
46188
  return _async_to_generator(function() {
46257
46189
  var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current, isConfirmed;
46258
46190
  return __generator(this, function(_state) {
@@ -46307,7 +46239,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46307
46239
  isConfirmed = _state.sent();
46308
46240
  logging.closePopupCtaClick(isConfirmed);
46309
46241
  if (isConfirmed) {
46310
- captureExitLog(Date.now());
46311
46242
  closeView();
46312
46243
  }
46313
46244
  _state.label = 3;
@@ -46319,7 +46250,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46319
46250
  });
46320
46251
  })();
46321
46252
  }, [
46322
- captureExitLog,
46323
46253
  global2.brandDisplayName,
46324
46254
  hasHistory,
46325
46255
  hasWebBackEvent,
@@ -46328,7 +46258,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46328
46258
  openConfirm,
46329
46259
  webViewRef
46330
46260
  ]);
46331
- var handleWebHome = (0, import_react202.useCallback)(function() {
46261
+ var handleWebHome = (0, import_react201.useCallback)(function() {
46332
46262
  var _webViewRef_current;
46333
46263
  logging.homeButtonClick();
46334
46264
  if (homeEvent.hasSubscriptions()) {
@@ -46343,7 +46273,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46343
46273
  webViewInitialURL,
46344
46274
  webViewRef
46345
46275
  ]);
46346
- return (0, import_react202.useMemo)(function() {
46276
+ return (0, import_react201.useMemo)(function() {
46347
46277
  return {
46348
46278
  addEventListener,
46349
46279
  removeEventListener,
@@ -46519,7 +46449,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46519
46449
  var batteryModePreference = param.batteryModePreference, colorPreference = param.colorPreference, locale = param.locale, navbarPreference = param.navbarPreference, pureSafeArea = param.pureSafeArea, safeArea = param.safeArea, safeAreaBottomTransparency = param.safeAreaBottomTransparency;
46520
46450
  var platform = getPlatformOS();
46521
46451
  var appVersion = getTossAppVersion();
46522
- var fontScale = (0, import_react_native216.useWindowDimensions)().fontScale;
46452
+ var fontScale = (0, import_react_native215.useWindowDimensions)().fontScale;
46523
46453
  var platformString = platform === "ios" ? "iPhone" : "Android phone";
46524
46454
  var fontA11y = mapFontScaleToCategory(fontScale, platform);
46525
46455
  var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
@@ -46571,7 +46501,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46571
46501
  })
46572
46502
  };
46573
46503
  if (getOperationalEnvironment() === "toss") {
46574
- INTERNAL__module.tossCoreEventLog(event);
46504
+ sendLog(event, {
46505
+ pipelines: [
46506
+ "core"
46507
+ ]
46508
+ });
46575
46509
  } else {
46576
46510
  console.log("[webViewDebugLog]", event);
46577
46511
  }
@@ -46644,8 +46578,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46644
46578
  if (!TYPES.includes(type)) {
46645
46579
  throw new Error("Invalid WebView type: '".concat(type, "'"));
46646
46580
  }
46647
- var webViewRef = (0, import_react195.useRef)(null);
46648
- var url = (0, import_react195.useMemo)(function() {
46581
+ var webViewRef = (0, import_react194.useRef)(null);
46582
+ var url = (0, import_react194.useMemo)(function() {
46649
46583
  return getWebViewURL(local);
46650
46584
  }, [
46651
46585
  local
@@ -46657,7 +46591,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46657
46591
  var global2 = getAppsInTossGlobals();
46658
46592
  var navigationBarContext = useNavigationBarContext();
46659
46593
  var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
46660
- var _useState6 = _sliced_to_array((0, import_react195.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState6[0], setAllowsBackForwardNavigationGestures = _useState6[1];
46594
+ var _useState6 = _sliced_to_array((0, import_react194.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState6[0], setAllowsBackForwardNavigationGestures = _useState6[1];
46661
46595
  var handler = useBridgeHandler({
46662
46596
  onMessage,
46663
46597
  eventListenerMap: _object_spread_props(_object_spread({}, event_bridges_exports), {
@@ -46790,8 +46724,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46790
46724
  debugLog: function(event) {
46791
46725
  return _async_to_generator(function() {
46792
46726
  return __generator(this, function(_state) {
46793
- eventLog(event);
46794
- INTERNAL__module.tossCoreEventLog(event);
46727
+ sendLog(event);
46795
46728
  return [
46796
46729
  2
46797
46730
  ];
@@ -46800,7 +46733,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46800
46733
  }
46801
46734
  })
46802
46735
  });
46803
- var headerPropForExternalWebView = (0, import_react195.useMemo)(function() {
46736
+ var headerPropForExternalWebView = (0, import_react194.useMemo)(function() {
46804
46737
  var _ref;
46805
46738
  var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
46806
46739
  var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
@@ -46825,12 +46758,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46825
46758
  colorPreference: "light"
46826
46759
  });
46827
46760
  var refs = mergeRefs3(handler.ref, webViewRef);
46828
- (0, import_react195.useEffect)(function() {
46761
+ (0, import_react194.useEffect)(function() {
46829
46762
  var callback = function() {
46830
46763
  webBackHandler.handleWebBack();
46831
46764
  return true;
46832
46765
  };
46833
- var subscription = import_react_native207.BackHandler.addEventListener("hardwareBackPress", callback);
46766
+ var subscription = import_react_native206.BackHandler.addEventListener("hardwareBackPress", callback);
46834
46767
  return function() {
46835
46768
  return subscription.remove();
46836
46769
  };
@@ -46858,7 +46791,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46858
46791
  webBackHandler.onNavigationStateChange(event);
46859
46792
  },
46860
46793
  textZoom: 100,
46861
- userAgent: import_react_native207.Platform.OS === "ios" ? userAgent : void 0,
46794
+ userAgent: import_react_native206.Platform.OS === "ios" ? userAgent : void 0,
46862
46795
  sharedCookiesEnabled: true,
46863
46796
  webviewDebuggingEnabled: webViewDebuggingEnabled,
46864
46797
  thirdPartyCookiesEnabled: true,
@@ -46868,7 +46801,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46868
46801
  handler.injectedJavaScript,
46869
46802
  t53
46870
46803
  ].join("\n"),
46871
- decelerationRate: import_react_native207.Platform.OS === "ios" ? 1 : void 0,
46804
+ decelerationRate: import_react_native206.Platform.OS === "ios" ? 1 : void 0,
46872
46805
  allowsBackForwardNavigationGestures,
46873
46806
  onShouldStartLoadWithRequest: function(event) {
46874
46807
  try {
@@ -46880,7 +46813,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46880
46813
  return true;
46881
46814
  } else {
46882
46815
  var _convertIntentURL;
46883
- import_react_native207.Linking.openURL((_convertIntentURL = convertIntentURL(url2)) !== null && _convertIntentURL !== void 0 ? _convertIntentURL : url2.href);
46816
+ import_react_native206.Linking.openURL((_convertIntentURL = convertIntentURL(url2)) !== null && _convertIntentURL !== void 0 ? _convertIntentURL : url2.href);
46884
46817
  return false;
46885
46818
  }
46886
46819
  } catch (error) {
@@ -46901,7 +46834,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46901
46834
  onRenderProcessGone: handleWebViewProcessDidTerminate
46902
46835
  }));
46903
46836
  }
46904
- 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;
46837
+ 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;
46905
46838
  var init_dist8 = __esm({
46906
46839
  "../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.js"() {
46907
46840
  "use strict";
@@ -46926,69 +46859,63 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46926
46859
  init_src3();
46927
46860
  init_esm7();
46928
46861
  import_react_native184 = __toESM(require_react_native(), 1);
46929
- init_dist5();
46930
46862
  init_src3();
46931
46863
  import_react178 = __toESM(require_react(), 1);
46864
+ init_src3();
46932
46865
  init_dist5();
46933
46866
  init_src3();
46934
46867
  import_react179 = __toESM(require_react(), 1);
46935
- init_src3();
46936
- import_react180 = __toESM(require_react(), 1);
46937
- init_src3();
46938
- init_src3();
46939
- import_react181 = __toESM(require_react(), 1);
46940
46868
  import_jsx_runtime216 = __toESM(require_jsx_runtime(), 1);
46941
- import_react182 = __toESM(require_react(), 1);
46869
+ import_react180 = __toESM(require_react(), 1);
46942
46870
  import_jsx_runtime217 = __toESM(require_jsx_runtime(), 1);
46943
46871
  init_dist5();
46944
- import_react183 = __toESM(require_react(), 1);
46945
- import_react_native190 = __toESM(require_react_native(), 1);
46872
+ import_react181 = __toESM(require_react(), 1);
46873
+ import_react_native188 = __toESM(require_react_native(), 1);
46946
46874
  init_dist5();
46947
46875
  init_src3();
46948
46876
  init_esm7();
46949
46877
  init_dist6();
46950
- import_react184 = __toESM(require_react(), 1);
46951
- import_react_native192 = __toESM(require_react_native(), 1);
46952
- init_dist5();
46878
+ import_react182 = __toESM(require_react(), 1);
46879
+ import_react_native190 = __toESM(require_react_native(), 1);
46953
46880
  init_src3();
46954
46881
  init_esm7();
46955
- import_react185 = __toESM(require_react(), 1);
46956
- import_react_native194 = __toESM(require_react_native(), 1);
46882
+ import_react183 = __toESM(require_react(), 1);
46883
+ init_src3();
46884
+ import_react184 = __toESM(require_react(), 1);
46885
+ import_react_native193 = __toESM(require_react_native(), 1);
46957
46886
  init_dist5();
46958
- import_react186 = __toESM(require_react(), 1);
46887
+ import_react185 = __toESM(require_react(), 1);
46959
46888
  init_src3();
46960
46889
  init_esm7();
46890
+ import_react186 = __toESM(require_react(), 1);
46961
46891
  import_react187 = __toESM(require_react(), 1);
46962
- import_react188 = __toESM(require_react(), 1);
46963
46892
  init_src3();
46964
46893
  init_dist5();
46965
46894
  init_esm7();
46966
46895
  init_private2();
46967
- import_react189 = __toESM(require_react(), 1);
46896
+ import_react188 = __toESM(require_react(), 1);
46968
46897
  import_jsx_runtime218 = __toESM(require_jsx_runtime(), 1);
46969
46898
  import_jsx_runtime219 = __toESM(require_jsx_runtime(), 1);
46970
46899
  init_private2();
46971
- import_react190 = __toESM(require_react(), 1);
46972
- import_react_native197 = __toESM(require_react_native(), 1);
46900
+ import_react189 = __toESM(require_react(), 1);
46901
+ import_react_native196 = __toESM(require_react_native(), 1);
46973
46902
  init_src3();
46974
- import_react191 = __toESM(require_react(), 1);
46903
+ import_react190 = __toESM(require_react(), 1);
46975
46904
  init_esm7();
46976
46905
  init_dist6();
46977
- import_react192 = __toESM(require_react(), 1);
46978
- init_dist5();
46906
+ import_react191 = __toESM(require_react(), 1);
46979
46907
  init_src3();
46980
46908
  init_dist5();
46981
46909
  init_src3();
46982
46910
  init_esm7();
46983
46911
  init_private2();
46984
- import_react193 = __toESM(require_react(), 1);
46912
+ import_react192 = __toESM(require_react(), 1);
46985
46913
  init_dist5();
46986
46914
  init_src3();
46987
46915
  init_esm7();
46988
46916
  init_esm7();
46989
46917
  init_private2();
46990
- import_react_native202 = __toESM(require_react_native(), 1);
46991
- init_dist5();
46918
+ import_react_native201 = __toESM(require_react_native(), 1);
46992
46919
  init_src3();
46993
46920
  import_jsx_runtime220 = __toESM(require_jsx_runtime(), 1);
46994
46921
  import_jsx_runtime221 = __toESM(require_jsx_runtime(), 1);
@@ -46998,13 +46925,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46998
46925
  init_src3();
46999
46926
  import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
47000
46927
  import_jsx_runtime224 = __toESM(require_jsx_runtime(), 1);
47001
- import_react194 = __toESM(require_react(), 1);
46928
+ import_react193 = __toESM(require_react(), 1);
47002
46929
  import_jsx_runtime225 = __toESM(require_jsx_runtime(), 1);
47003
46930
  import_jsx_runtime226 = __toESM(require_jsx_runtime(), 1);
47004
46931
  init_react_native_safe_area_context();
47005
46932
  init_esm7();
47006
46933
  init_private2();
47007
- import_react_native205 = __toESM(require_react_native(), 1);
46934
+ import_react_native204 = __toESM(require_react_native(), 1);
47008
46935
  import_jsx_runtime227 = __toESM(require_jsx_runtime(), 1);
47009
46936
  init_async_bridges();
47010
46937
  init_constant_bridges2();
@@ -47020,28 +46947,28 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47020
46947
  init_src3();
47021
46948
  init_esm7();
47022
46949
  init_private2();
47023
- import_react195 = __toESM(require_react(), 1);
47024
- import_react_native207 = __toESM(require_react_native(), 1);
46950
+ import_react194 = __toESM(require_react(), 1);
46951
+ import_react_native206 = __toESM(require_react_native(), 1);
47025
46952
  init_dist5();
47026
46953
  init_react_native_webview();
47027
- import_react196 = __toESM(require_react(), 1);
47028
- import_react_native208 = __toESM(require_react_native(), 1);
46954
+ import_react195 = __toESM(require_react(), 1);
46955
+ import_react_native207 = __toESM(require_react_native(), 1);
47029
46956
  init_react_native_safe_area_context();
47030
46957
  init_src3();
47031
46958
  init_esm7();
47032
46959
  init_private2();
47033
46960
  init_dist6();
47034
- import_react197 = __toESM(require_react(), 1);
47035
- import_react_native210 = __toESM(require_react_native(), 1);
46961
+ import_react196 = __toESM(require_react(), 1);
46962
+ import_react_native209 = __toESM(require_react_native(), 1);
47036
46963
  import_jsx_runtime230 = __toESM(require_jsx_runtime(), 1);
47037
46964
  import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
47038
46965
  init_react_native_webview();
47039
- import_react198 = __toESM(require_react(), 1);
46966
+ import_react197 = __toESM(require_react(), 1);
47040
46967
  init_src3();
47041
46968
  init_esm7();
47042
46969
  init_private2();
47043
46970
  init_dist6();
47044
- import_react199 = __toESM(require_react(), 1);
46971
+ import_react198 = __toESM(require_react(), 1);
47045
46972
  import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
47046
46973
  import_jsx_runtime233 = __toESM(require_jsx_runtime(), 1);
47047
46974
  init_dist5();
@@ -47049,21 +46976,20 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47049
46976
  init_src3();
47050
46977
  init_dist5();
47051
46978
  init_src3();
47052
- init_dist5();
47053
46979
  init_src3();
47054
- import_react200 = __toESM(require_react(), 1);
46980
+ import_react199 = __toESM(require_react(), 1);
47055
46981
  init_react_native_safe_area_context();
47056
- import_react201 = __toESM(require_react(), 1);
46982
+ import_react200 = __toESM(require_react(), 1);
47057
46983
  init_src3();
47058
46984
  init_esm7();
47059
46985
  init_dist6();
46986
+ import_react201 = __toESM(require_react(), 1);
47060
46987
  import_react202 = __toESM(require_react(), 1);
47061
- import_react203 = __toESM(require_react(), 1);
47062
46988
  init_dist5();
47063
- import_react_native216 = __toESM(require_react_native(), 1);
46989
+ import_react_native215 = __toESM(require_react_native(), 1);
47064
46990
  init_dist5();
46991
+ import_react203 = __toESM(require_react(), 1);
47065
46992
  import_react204 = __toESM(require_react(), 1);
47066
- import_react205 = __toESM(require_react(), 1);
47067
46993
  init_dist5();
47068
46994
  init_src3();
47069
46995
  init_esm7();
@@ -47074,13 +47000,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47074
47000
  init_dist5();
47075
47001
  init_dist3();
47076
47002
  init_dist3();
47003
+ import_react205 = __toESM(require_react(), 1);
47004
+ import_react_native218 = __toESM(require_react_native(), 1);
47077
47005
  import_react206 = __toESM(require_react(), 1);
47078
47006
  import_react_native219 = __toESM(require_react_native(), 1);
47007
+ import_jsx_runtime235 = __toESM(require_jsx_runtime(), 1);
47079
47008
  import_react207 = __toESM(require_react(), 1);
47080
47009
  import_react_native220 = __toESM(require_react_native(), 1);
47081
- import_jsx_runtime235 = __toESM(require_jsx_runtime(), 1);
47082
- import_react208 = __toESM(require_react(), 1);
47083
- import_react_native221 = __toESM(require_react_native(), 1);
47084
47010
  import_jsx_runtime236 = __toESM(require_jsx_runtime(), 1);
47085
47011
  import_jsx_runtime237 = __toESM(require_jsx_runtime(), 1);
47086
47012
  __defProp2 = Object.defineProperty;
@@ -47133,16 +47059,15 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47133
47059
  return global.__granite.app.name;
47134
47060
  }
47135
47061
  };
47136
- EXIT_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__stay_time";
47137
- EXIT_IMPRESSION_SCHEMA_ID = 1631628;
47138
- ENTRY_APP_EVENT_SCHEMA_ID = 1562181;
47062
+ DEFAULT_PIPELINES = [
47063
+ "core",
47064
+ "partner"
47065
+ ];
47139
47066
  AppEvent = {
47140
- Entry: EntryAppEvent,
47141
- System: SystemAppEvent,
47142
- StayTime: StayTimeAppEvent
47067
+ System: SystemAppEvent
47143
47068
  };
47144
47069
  UPDATE_SCHEME = "servicetoss://update/forced/j?updateType=required";
47145
- NavigationBarContext = /* @__PURE__ */ (0, import_react182.createContext)(null);
47070
+ NavigationBarContext = /* @__PURE__ */ (0, import_react180.createContext)(null);
47146
47071
  GAME_PROFILE_WEBVIEW_URL = "servicetoss://game-center/profile";
47147
47072
  GAME_MIN_VERSION = {
47148
47073
  android: "5.232.0",
@@ -47151,7 +47076,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47151
47076
  PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
47152
47077
  APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
47153
47078
  getMarketLink = function() {
47154
- return import_react_native194.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
47079
+ return import_react_native193.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
47155
47080
  };
47156
47081
  UPDATE_DIALOG_SCHEMA_ID = 1634992;
47157
47082
  UPDATE_DIALOG_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update";
@@ -47163,7 +47088,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47163
47088
  };
47164
47089
  useErrorAlert = function() {
47165
47090
  var openAlert = useDialog().openAlert;
47166
- var openErrorAlert = (0, import_react187.useCallback)(function() {
47091
+ var openErrorAlert = (0, import_react186.useCallback)(function() {
47167
47092
  return _async_to_generator(function() {
47168
47093
  return __generator(this, function(_state) {
47169
47094
  switch (_state.label) {
@@ -47219,9 +47144,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47219
47144
  openURL(url.toString());
47220
47145
  };
47221
47146
  useTransparentWebview = function() {
47222
- var _useState2 = _sliced_to_array((0, import_react188.useState)(false), 2), isWebviewLoading = _useState2[0], setIsWebviewLoading = _useState2[1];
47147
+ var _useState2 = _sliced_to_array((0, import_react187.useState)(false), 2), isWebviewLoading = _useState2[0], setIsWebviewLoading = _useState2[1];
47223
47148
  var _useErrorAlert = useErrorAlert(), openErrorAlert = _useErrorAlert.open;
47224
- var _openTransparentWebview = (0, import_react188.useCallback)(function(param) {
47149
+ var _openTransparentWebview = (0, import_react187.useCallback)(function(param) {
47225
47150
  var webUrl = param.webUrl, onClose = param.onClose, onError = param.onError;
47226
47151
  if (isWebviewLoading) {
47227
47152
  return;
@@ -47261,7 +47186,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47261
47186
  };
47262
47187
  useGameProfileToast = function() {
47263
47188
  var overlay = useOverlay();
47264
- var openGameProfileToast = (0, import_react189.useCallback)(function(nickname, profileImageUri) {
47189
+ var openGameProfileToast = (0, import_react188.useCallback)(function(nickname, profileImageUri) {
47265
47190
  return new Promise(function(resolve) {
47266
47191
  overlay.open(function(param) {
47267
47192
  var isOpen = param.isOpen, close = param.close, exit = param.exit;
@@ -47300,16 +47225,16 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47300
47225
  };
47301
47226
  };
47302
47227
  useGameCenterProfile = function() {
47303
- var _useState3 = _sliced_to_array((0, import_react186.useState)(void 0), 2), profileData = _useState3[0], setProfileData = _useState3[1];
47304
- var _useState31 = _sliced_to_array((0, import_react186.useState)(true), 2), isProfileDataLoading = _useState31[0], setIsProfileDataLoading = _useState31[1];
47305
- var _useState32 = _sliced_to_array((0, import_react186.useState)(false), 2), isProfileDataRefetching = _useState32[0], setIsProfileDataRefetching = _useState32[1];
47228
+ var _useState3 = _sliced_to_array((0, import_react185.useState)(void 0), 2), profileData = _useState3[0], setProfileData = _useState3[1];
47229
+ var _useState31 = _sliced_to_array((0, import_react185.useState)(true), 2), isProfileDataLoading = _useState31[0], setIsProfileDataLoading = _useState31[1];
47230
+ var _useState32 = _sliced_to_array((0, import_react185.useState)(false), 2), isProfileDataRefetching = _useState32[0], setIsProfileDataRefetching = _useState32[1];
47306
47231
  var shouldShowProfileLoadingOverlay = isProfileDataLoading || isProfileDataRefetching;
47307
47232
  var shouldShowProfileNotFoundOverlay = (profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && !isProfileDataRefetching;
47308
47233
  var canShowBottomSheetOrToast = !isProfileDataLoading;
47309
47234
  var openGameProfileToast = useGameProfileToast().openGameProfileToast;
47310
47235
  var _useErrorAlert = useErrorAlert(), openErrorAlert = _useErrorAlert.open;
47311
47236
  var _useTransparentWebview = useTransparentWebview(), openTransparentWebView2 = _useTransparentWebview.open;
47312
- var fetchProfileData = (0, import_react186.useCallback)(function() {
47237
+ var fetchProfileData = (0, import_react185.useCallback)(function() {
47313
47238
  return _async_to_generator(function() {
47314
47239
  var data, _16;
47315
47240
  return __generator(this, function(_state) {
@@ -47351,7 +47276,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47351
47276
  }, [
47352
47277
  openErrorAlert
47353
47278
  ]);
47354
- var refetchProfileData = (0, import_react186.useCallback)(function() {
47279
+ var refetchProfileData = (0, import_react185.useCallback)(function() {
47355
47280
  return _async_to_generator(function() {
47356
47281
  var data, _16;
47357
47282
  return __generator(this, function(_state) {
@@ -47398,7 +47323,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47398
47323
  openErrorAlert,
47399
47324
  openGameProfileToast
47400
47325
  ]);
47401
- var openProfileWebview = (0, import_react186.useCallback)(function() {
47326
+ var openProfileWebview = (0, import_react185.useCallback)(function() {
47402
47327
  openTransparentWebView2({
47403
47328
  webUrl: "".concat(GAME_PROFILE_WEBVIEW_URL, "?appName=").concat(getAppName(), "&referrer=appsintoss.").concat(getAppName()),
47404
47329
  onClose: function() {
@@ -47437,12 +47362,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47437
47362
  GameInitializer = function(param) {
47438
47363
  var children = param.children;
47439
47364
  var _useGameCenterProfile = useGameCenterProfile(), profileData = _useGameCenterProfile.profileData, shouldShowProfileLoadingOverlay = _useGameCenterProfile.shouldShowProfileLoadingOverlay, shouldShowProfileNotFoundOverlay = _useGameCenterProfile.shouldShowProfileNotFoundOverlay, canShowBottomSheetOrToast = _useGameCenterProfile.canShowBottomSheetOrToast, openProfileWebview = _useGameCenterProfile.openProfileWebview, openGameProfileToast = _useGameCenterProfile.openGameProfileToast, fetchProfileData = _useGameCenterProfile.fetchProfileData;
47440
- var isCompletedFlow = (0, import_react184.useRef)(false);
47365
+ var isCompletedFlow = (0, import_react182.useRef)(false);
47441
47366
  var _useAppUpdateDialog = useAppUpdateDialog(), openAppUpdateDialog = _useAppUpdateDialog.open;
47442
- (0, import_react184.useEffect)(function() {
47367
+ (0, import_react182.useEffect)(function() {
47443
47368
  fetchProfileData();
47444
47369
  }, []);
47445
- (0, import_react184.useEffect)(function() {
47370
+ (0, import_react182.useEffect)(function() {
47446
47371
  var handleGameProfileFlow = function() {
47447
47372
  return _async_to_generator(function() {
47448
47373
  return __generator(this, function(_state) {
@@ -47495,14 +47420,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47495
47420
  if (!isMinVersionSupported(GAME_MIN_VERSION)) {
47496
47421
  return (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
47497
47422
  children: [
47498
- (0, import_jsx_runtime219.jsx)(import_react_native192.View, {
47423
+ (0, import_jsx_runtime219.jsx)(import_react_native190.View, {
47499
47424
  style: {
47500
47425
  flex: 1,
47501
47426
  position: "relative"
47502
47427
  },
47503
47428
  children
47504
47429
  }),
47505
- (0, import_jsx_runtime219.jsx)(import_react_native192.Pressable, {
47430
+ (0, import_jsx_runtime219.jsx)(import_react_native190.Pressable, {
47506
47431
  style: _object_spread({}, overlayStyle),
47507
47432
  onPress: function() {
47508
47433
  openAppUpdateDialog({
@@ -47519,14 +47444,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47519
47444
  if (shouldShowProfileLoadingOverlay) {
47520
47445
  return (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
47521
47446
  children: [
47522
- (0, import_jsx_runtime219.jsx)(import_react_native192.View, {
47447
+ (0, import_jsx_runtime219.jsx)(import_react_native190.View, {
47523
47448
  style: {
47524
47449
  flex: 1,
47525
47450
  position: "relative"
47526
47451
  },
47527
47452
  children
47528
47453
  }),
47529
- (0, import_jsx_runtime219.jsx)(import_react_native192.View, {
47454
+ (0, import_jsx_runtime219.jsx)(import_react_native190.View, {
47530
47455
  style: _object_spread_props(_object_spread({}, overlayStyle), {
47531
47456
  justifyContent: "center",
47532
47457
  alignItems: "center",
@@ -47543,14 +47468,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47543
47468
  if (shouldShowProfileNotFoundOverlay) {
47544
47469
  return (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
47545
47470
  children: [
47546
- (0, import_jsx_runtime219.jsx)(import_react_native192.View, {
47471
+ (0, import_jsx_runtime219.jsx)(import_react_native190.View, {
47547
47472
  style: {
47548
47473
  flex: 1,
47549
47474
  position: "relative"
47550
47475
  },
47551
47476
  children
47552
47477
  }),
47553
- shouldShowProfileNotFoundOverlay && (0, import_jsx_runtime219.jsx)(import_react_native192.Pressable, {
47478
+ shouldShowProfileNotFoundOverlay && (0, import_jsx_runtime219.jsx)(import_react_native190.Pressable, {
47554
47479
  style: _object_spread({}, overlayStyle),
47555
47480
  onPress: function() {
47556
47481
  openProfileWebview();
@@ -47560,7 +47485,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47560
47485
  });
47561
47486
  }
47562
47487
  return (0, import_jsx_runtime219.jsx)(import_jsx_runtime219.Fragment, {
47563
- children: (0, import_jsx_runtime219.jsx)(import_react_native192.View, {
47488
+ children: (0, import_jsx_runtime219.jsx)(import_react_native190.View, {
47564
47489
  style: {
47565
47490
  flex: 1,
47566
47491
  position: "relative"
@@ -47688,9 +47613,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47688
47613
  AppsInToss = {
47689
47614
  registerApp
47690
47615
  };
47691
- GameWebView = /* @__PURE__ */ (0, import_react196.forwardRef)(function GameWebView2(props, ref) {
47692
- (0, import_react196.useEffect)(function() {
47693
- if (import_react_native208.Platform.OS === "ios") {
47616
+ GameWebView = /* @__PURE__ */ (0, import_react195.forwardRef)(function GameWebView2(props, ref) {
47617
+ (0, import_react195.useEffect)(function() {
47618
+ if (import_react_native207.Platform.OS === "ios") {
47694
47619
  setIosSwipeGestureEnabled({
47695
47620
  isEnabled: false
47696
47621
  });
@@ -47715,7 +47640,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47715
47640
  ]
47716
47641
  });
47717
47642
  });
47718
- PartnerWebView = /* @__PURE__ */ (0, import_react198.forwardRef)(function PartnerWebViewScreen(_03, _1) {
47643
+ PartnerWebView = /* @__PURE__ */ (0, import_react197.forwardRef)(function PartnerWebViewScreen(_03, _1) {
47719
47644
  var _ref = [
47720
47645
  _03,
47721
47646
  _1
@@ -47979,7 +47904,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47979
47904
  return _GlobalEventDeduplicator;
47980
47905
  }(), __GlobalEventDeduplicator.MAX_EVENTS = 1e4, __GlobalEventDeduplicator);
47981
47906
  globalEventDeduplicator = new GlobalEventDeduplicator();
47982
- styles3 = import_react_native220.StyleSheet.create({
47907
+ styles3 = import_react_native219.StyleSheet.create({
47983
47908
  pressable: {
47984
47909
  width: "100%"
47985
47910
  },
@@ -48017,7 +47942,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48017
47942
  height: 36,
48018
47943
  borderRadius: 18
48019
47944
  },
48020
- logoOverlay: _object_spread_props(_object_spread({}, import_react_native220.StyleSheet.absoluteFillObject), {
47945
+ logoOverlay: _object_spread_props(_object_spread({}, import_react_native219.StyleSheet.absoluteFillObject), {
48021
47946
  borderWidth: 1,
48022
47947
  borderRadius: 18
48023
47948
  }),
@@ -48079,7 +48004,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48079
48004
  fontWeight: "600",
48080
48005
  lineHeight: 22.5
48081
48006
  },
48082
- cardOverlay: _object_spread_props(_object_spread({}, import_react_native220.StyleSheet.absoluteFillObject), {
48007
+ cardOverlay: _object_spread_props(_object_spread({}, import_react_native219.StyleSheet.absoluteFillObject), {
48083
48008
  borderWidth: 2,
48084
48009
  borderRadius: 12,
48085
48010
  pointerEvents: "none"
@@ -48090,7 +48015,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48090
48015
  fontWeight: "400"
48091
48016
  }
48092
48017
  });
48093
- styles22 = import_react_native221.StyleSheet.create({
48018
+ styles22 = import_react_native220.StyleSheet.create({
48094
48019
  pressable: {
48095
48020
  width: "100%"
48096
48021
  },
@@ -48135,7 +48060,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48135
48060
  width: "100%"
48136
48061
  }
48137
48062
  });
48138
- styles32 = import_react_native219.StyleSheet.create({
48063
+ styles32 = import_react_native218.StyleSheet.create({
48139
48064
  impressionArea: {
48140
48065
  width: "100%"
48141
48066
  },
@@ -48170,7 +48095,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48170
48095
  }
48171
48096
  });
48172
48097
  function Index() {
48173
- return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(import_react_native222.View, {
48098
+ return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(import_react_native221.View, {
48174
48099
  style: {
48175
48100
  flex: 1
48176
48101
  },
@@ -48192,13 +48117,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48192
48117
  })
48193
48118
  });
48194
48119
  }
48195
- var import_jsx_runtime238, import_react_native222;
48120
+ var import_jsx_runtime238, import_react_native221;
48196
48121
  var init_pages = __esm({
48197
48122
  "react-native/pages/index.tsx"() {
48198
48123
  "use strict";
48199
48124
  import_jsx_runtime238 = __toESM(require_jsx_runtime(), 1);
48200
48125
  init_dist8();
48201
- import_react_native222 = __toESM(require_react_native(), 1);
48126
+ import_react_native221 = __toESM(require_react_native(), 1);
48202
48127
  }
48203
48128
  });
48204
48129