@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.
@@ -44488,15 +44488,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44488
44488
  });
44489
44489
 
44490
44490
  // ../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.js
44491
- function useReferrer() {
44492
- return (0, import_react181.useMemo)(function() {
44493
- try {
44494
- return new URL(getSchemeUri()).searchParams.get("referrer");
44495
- } catch (unused) {
44496
- return null;
44497
- }
44498
- }, []);
44499
- }
44500
44491
  function isPrivateScheme() {
44501
44492
  try {
44502
44493
  return new URL(getSchemeUri()).protocol === "intoss-private:";
@@ -44504,69 +44495,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44504
44495
  return false;
44505
44496
  }
44506
44497
  }
44507
- function useCaptureExitLog() {
44508
- var referrer2 = useReferrer();
44509
- var visible = useVisibility();
44510
- var enterTime = (0, import_react180.useRef)(void 0);
44511
- (0, import_react180.useEffect)(function() {
44512
- if (visible === true) {
44513
- enterTime.current = Date.now();
44514
- }
44515
- }, [
44516
- visible
44517
- ]);
44518
- var captureExitLog = (0, import_react180.useCallback)(function(exitTime) {
44519
- if (enterTime.current == null) {
44520
- return;
44521
- }
44522
- var stayTime = Math.floor(exitTime - enterTime.current);
44523
- INTERNAL__module.tossCoreEventLog({
44524
- log_name: EXIT_IMPRESSION_LOG_NAME,
44525
- log_type: "event",
44526
- params: {
44527
- schema_id: EXIT_IMPRESSION_SCHEMA_ID,
44528
- event_type: "impression",
44529
- referrer: referrer2,
44530
- deployment_id: env.getDeploymentId(),
44531
- app_name: Granite.appName,
44532
- is_private: isPrivateScheme(),
44533
- stay_time: stayTime.toString(),
44534
- exit_time: exitTime.toString()
44535
- }
44536
- });
44537
- enterTime.current = void 0;
44538
- }, [
44539
- referrer2
44540
- ]);
44541
- return {
44542
- captureExitLog
44543
- };
44544
- }
44545
- function EntryAppEvent() {
44546
- var _useReferrer;
44547
- var referrer2 = (_useReferrer = useReferrer()) !== null && _useReferrer !== void 0 ? _useReferrer : "";
44548
- (0, import_react179.useEffect)(function() {
44549
- INTERNAL__module.tossCoreEventLog({
44550
- log_name: "appsintoss_app_visit::impression__enter_appsintoss",
44551
- log_type: "info",
44552
- params: {
44553
- is_transform: true,
44554
- schema_id: ENTRY_APP_EVENT_SCHEMA_ID,
44555
- referrer: referrer2,
44556
- deployment_id: env.getDeploymentId(),
44557
- app_name: Granite.appName,
44558
- is_private: isPrivateScheme()
44559
- }
44560
- });
44561
- }, [
44562
- referrer2
44563
- ]);
44564
- return null;
44498
+ function sendLog(logData, options) {
44499
+ var _ref = options !== null && options !== void 0 ? options : {}, _ref_pipelines = _ref.pipelines, pipelines = _ref_pipelines === void 0 ? DEFAULT_PIPELINES : _ref_pipelines;
44500
+ if (pipelines.includes("core")) {
44501
+ INTERNAL__module.tossCoreEventLog(logData);
44502
+ }
44503
+ if (pipelines.includes("partner")) {
44504
+ eventLog(logData);
44505
+ }
44565
44506
  }
44566
44507
  function SystemAppEvent(_03) {
44567
44508
  var ref = _object_destructuring_empty(_03), initialProps = _extends({}, _03);
44568
44509
  (0, import_react179.useEffect)(function() {
44569
- INTERNAL__module.tossCoreEventLog({
44510
+ sendLog({
44570
44511
  log_name: "AppsInTossInitialProps",
44571
44512
  log_type: "debug",
44572
44513
  params: _object_spread_props(_object_spread({}, initialProps), {
@@ -44575,27 +44516,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44575
44516
  app_name: Granite.appName,
44576
44517
  is_private: isPrivateScheme()
44577
44518
  })
44519
+ }, {
44520
+ pipelines: [
44521
+ "core"
44522
+ ]
44578
44523
  });
44579
44524
  }, [
44580
44525
  initialProps
44581
44526
  ]);
44582
44527
  return null;
44583
44528
  }
44584
- function StayTimeAppEvent() {
44585
- var visible = useVisibility();
44586
- var captureExitLog = useCaptureExitLog().captureExitLog;
44587
- (0, import_react179.useEffect)(function() {
44588
- if (visible === false) {
44589
- captureExitLog(Date.now());
44590
- }
44591
- }, [
44592
- visible,
44593
- captureExitLog
44594
- ]);
44595
- return null;
44596
- }
44597
44529
  function AppUpdate() {
44598
- (0, import_react182.useEffect)(function() {
44530
+ (0, import_react180.useEffect)(function() {
44599
44531
  openURL("supertoss://closePage?url=".concat(UPDATE_SCHEME));
44600
44532
  }, []);
44601
44533
  return (0, import_jsx_runtime216.jsx)(import_jsx_runtime216.Fragment, {});
@@ -44620,7 +44552,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44620
44552
  var children = param.children;
44621
44553
  var globals = getAppsInTossGlobals();
44622
44554
  var parsedNavigationBar = globals.navigationBar != null ? safeParseNavigationBar(globals.navigationBar) : null;
44623
- var _useState = _sliced_to_array((0, import_react183.useState)(parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton), 2), navigationRightButton = _useState[0], setNavigationRightButton = _useState[1];
44555
+ var _useState = _sliced_to_array((0, import_react181.useState)(parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton), 2), navigationRightButton = _useState[0], setNavigationRightButton = _useState[1];
44624
44556
  var addNavigationRightButton = function(button) {
44625
44557
  setNavigationRightButton(button);
44626
44558
  };
@@ -44637,16 +44569,25 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44637
44569
  });
44638
44570
  }
44639
44571
  function useNavigationBarContext() {
44640
- var context2 = (0, import_react183.useContext)(NavigationBarContext);
44572
+ var context2 = (0, import_react181.useContext)(NavigationBarContext);
44641
44573
  if (context2 == null) {
44642
44574
  throw Error("useNavigationBarContext must be used within NavigationBarContextProvider");
44643
44575
  }
44644
44576
  return context2;
44645
44577
  }
44578
+ function useReferrer() {
44579
+ return (0, import_react185.useMemo)(function() {
44580
+ try {
44581
+ return new URL(getSchemeUri()).searchParams.get("referrer");
44582
+ } catch (unused) {
44583
+ return null;
44584
+ }
44585
+ }, []);
44586
+ }
44646
44587
  function useAppUpdateDialog() {
44647
44588
  var openConfirm = useDialog().openConfirm;
44648
44589
  var logging = useAppUpdateDialogLogging();
44649
- var openAppUpdateDialog = (0, import_react186.useCallback)(function(param) {
44590
+ var openAppUpdateDialog = (0, import_react184.useCallback)(function(param) {
44650
44591
  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;
44651
44592
  return _async_to_generator(function() {
44652
44593
  var isConfirmed, STORE_SCHEME;
@@ -44697,7 +44638,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44697
44638
  app_name: Granite.appName
44698
44639
  };
44699
44640
  var logUpdateClick = function() {
44700
- INTERNAL__module.tossCoreEventLog({
44641
+ sendLog({
44701
44642
  log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
44702
44643
  log_type: "event",
44703
44644
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -44708,7 +44649,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44708
44649
  });
44709
44650
  };
44710
44651
  var logCloseClick = function() {
44711
- INTERNAL__module.tossCoreEventLog({
44652
+ sendLog({
44712
44653
  log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
44713
44654
  log_type: "event",
44714
44655
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -44719,7 +44660,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44719
44660
  });
44720
44661
  };
44721
44662
  var logDialogShow = function() {
44722
- INTERNAL__module.tossCoreEventLog({
44663
+ sendLog({
44723
44664
  log_name: UPDATE_DIALOG_LOG_NAME,
44724
44665
  log_type: "popup",
44725
44666
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -44734,12 +44675,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44734
44675
  };
44735
44676
  }
44736
44677
  function useHardwareBackPress(handler) {
44737
- (0, import_react191.useEffect)(function() {
44678
+ (0, import_react190.useEffect)(function() {
44738
44679
  var handleBackPress = function() {
44739
44680
  handler();
44740
44681
  return true;
44741
44682
  };
44742
- var backHandler = import_react_native197.BackHandler.addEventListener("hardwareBackPress", handleBackPress);
44683
+ var backHandler = import_react_native196.BackHandler.addEventListener("hardwareBackPress", handleBackPress);
44743
44684
  return function() {
44744
44685
  return backHandler.remove();
44745
44686
  };
@@ -44750,7 +44691,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44750
44691
  function useCloseConfirm() {
44751
44692
  var brandDisplayName = getAppsInTossGlobals().brandDisplayName;
44752
44693
  var openConfirm = useDialog().openConfirm;
44753
- return (0, import_react193.useCallback)(function(param) {
44694
+ return (0, import_react192.useCallback)(function(param) {
44754
44695
  var onEntered = param.onEntered;
44755
44696
  return _async_to_generator(function() {
44756
44697
  return __generator(this, function(_state) {
@@ -44803,7 +44744,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44803
44744
  app_name: Granite.appName
44804
44745
  };
44805
44746
  var logNavBarImpression = function(naviBarConfig) {
44806
- INTERNAL__module.tossCoreEventLog({
44747
+ sendLog({
44807
44748
  log_name: NAVI_BAR_IMPRESSION_LOG_NAME,
44808
44749
  log_type: "event",
44809
44750
  params: _object_spread_props(_object_spread({}, naviBarConfig, baseParams), {
@@ -44813,7 +44754,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44813
44754
  });
44814
44755
  };
44815
44756
  var logHomeButtonClick = function() {
44816
- INTERNAL__module.tossCoreEventLog({
44757
+ sendLog({
44817
44758
  log_name: HOME_BUTTON_CLICK_LOG_NAME,
44818
44759
  log_type: "event",
44819
44760
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -44823,7 +44764,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44823
44764
  });
44824
44765
  };
44825
44766
  var logCloseButtonClick = function() {
44826
- INTERNAL__module.tossCoreEventLog({
44767
+ sendLog({
44827
44768
  log_name: CLOSE_BUTTON_CLICK_LOG_NAME,
44828
44769
  log_type: "event",
44829
44770
  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 logClosePopupShow = function() {
44836
- INTERNAL__module.tossCoreEventLog({
44777
+ sendLog({
44837
44778
  log_name: CLOSE_POPUP_SHOW_LOG_NAME,
44838
44779
  log_type: "popup",
44839
44780
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -44842,7 +44783,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44842
44783
  });
44843
44784
  };
44844
44785
  var logClosePopupCtaClick = function(confirm) {
44845
- INTERNAL__module.tossCoreEventLog({
44786
+ sendLog({
44846
44787
  log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
44847
44788
  log_type: "event",
44848
44789
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -44865,8 +44806,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44865
44806
  var logging = useNavigationBarLogging();
44866
44807
  var navigation = useNavigation();
44867
44808
  var closeConfirm = useCloseConfirm();
44868
- var captureExitLog = useCaptureExitLog().captureExitLog;
44869
- return (0, import_react192.useMemo)(function() {
44809
+ return (0, import_react191.useMemo)(function() {
44870
44810
  var close = function() {
44871
44811
  return _async_to_generator(function() {
44872
44812
  var hasConfirmed;
@@ -44883,7 +44823,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44883
44823
  hasConfirmed = _state.sent();
44884
44824
  logging.closePopupCtaClick(hasConfirmed);
44885
44825
  if (hasConfirmed) {
44886
- captureExitLog(Date.now());
44887
44826
  closeView();
44888
44827
  }
44889
44828
  return [
@@ -44920,8 +44859,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44920
44859
  backEventContext,
44921
44860
  navigation,
44922
44861
  closeConfirm,
44923
- logging,
44924
- captureExitLog
44862
+ logging
44925
44863
  ]);
44926
44864
  }
44927
44865
  function useMoreButtonBottomSheetLogging() {
@@ -44931,7 +44869,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44931
44869
  app_name: Granite.appName
44932
44870
  };
44933
44871
  var logBottomSheetShow = function() {
44934
- INTERNAL__module.tossCoreEventLog({
44872
+ sendLog({
44935
44873
  log_name: BOTTOM_SHEET_LOG_NAME,
44936
44874
  log_type: "popup",
44937
44875
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -44940,7 +44878,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44940
44878
  });
44941
44879
  };
44942
44880
  var logBottomSheetOpen = function() {
44943
- INTERNAL__module.tossCoreEventLog({
44881
+ sendLog({
44944
44882
  log_name: BOTTOM_SHEET_OPEN_LOG_NAME,
44945
44883
  log_type: "event",
44946
44884
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -44950,7 +44888,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44950
44888
  });
44951
44889
  };
44952
44890
  var logBottomSheetCloseClick = function() {
44953
- INTERNAL__module.tossCoreEventLog({
44891
+ sendLog({
44954
44892
  log_name: BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME,
44955
44893
  log_type: "event",
44956
44894
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -44961,7 +44899,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44961
44899
  };
44962
44900
  var logBottomSheetMenuClick = function(param) {
44963
44901
  var title = param.title;
44964
- INTERNAL__module.tossCoreEventLog({
44902
+ sendLog({
44965
44903
  log_name: BOTTOM_SHEET_MENU_CLICK_LOG_NAME,
44966
44904
  log_type: "event",
44967
44905
  params: _object_spread_props(_object_spread({}, baseParams), {
@@ -44987,7 +44925,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44987
44925
  var brandPrimaryColorRGB = hexToRGB(globals.brandPrimaryColor);
44988
44926
  var iconBackgroundColor = brandPrimaryColorRGB ? "rgba(".concat(brandPrimaryColorRGB.join(","), ",0.1)") : adaptive.grey100;
44989
44927
  return (0, import_jsx_runtime220.jsx)(ListRow2, {
44990
- left: (0, import_jsx_runtime220.jsx)(import_react_native202.View, {
44928
+ left: (0, import_jsx_runtime220.jsx)(import_react_native201.View, {
44991
44929
  style: {
44992
44930
  width: 30,
44993
44931
  height: 30,
@@ -45147,7 +45085,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45147
45085
  function useMoreButtonBottomSheet() {
45148
45086
  var globals = getAppsInTossGlobals();
45149
45087
  var adaptive = useAdaptive();
45150
- var _useState4 = _sliced_to_array((0, import_react194.useState)([]), 2), itemList = _useState4[0], setItemList = _useState4[1];
45088
+ var _useState4 = _sliced_to_array((0, import_react193.useState)([]), 2), itemList = _useState4[0], setItemList = _useState4[1];
45151
45089
  var appUpdateDialog = useAppUpdateDialog();
45152
45090
  var logging = useMoreButtonBottomSheetLogging();
45153
45091
  var overlay = useOverlay();
@@ -45156,7 +45094,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45156
45094
  var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION3.BOTTOM_SHEET);
45157
45095
  var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION3.SHARE_LIST_MENU);
45158
45096
  var isSettingsMenuSupported = isMinVersionSupported(MIN_VERSION3.SETTINGS_MENU);
45159
- (0, import_react194.useEffect)(function() {
45097
+ (0, import_react193.useEffect)(function() {
45160
45098
  if (!isBottomSheetSupported) {
45161
45099
  return;
45162
45100
  }
@@ -45257,7 +45195,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45257
45195
  function BottomSheetImpressionArea(param) {
45258
45196
  var children = param.children;
45259
45197
  var logging = useMoreButtonBottomSheetLogging();
45260
- (0, import_react194.useEffect)(function() {
45198
+ (0, import_react193.useEffect)(function() {
45261
45199
  logging.show();
45262
45200
  }, [
45263
45201
  logging
@@ -45277,9 +45215,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45277
45215
  }
45278
45216
  function NavigationBarImpressionArea(param) {
45279
45217
  var children = param.children, withHomeButton = param.withHomeButton;
45280
- var hasLogged = (0, import_react195.useRef)(false);
45218
+ var hasLogged = (0, import_react194.useRef)(false);
45281
45219
  var logging = useNavigationBarLogging();
45282
- (0, import_react195.useEffect)(function() {
45220
+ (0, import_react194.useEffect)(function() {
45283
45221
  if (hasLogged.current === false) {
45284
45222
  logging.navBarImpression({
45285
45223
  home_icon_yn: withHomeButton ? "Y" : "N"
@@ -45340,10 +45278,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45340
45278
  type: "none"
45341
45279
  }
45342
45280
  }),
45343
- (0, import_jsx_runtime227.jsx)(import_react_native205.View, {
45281
+ (0, import_jsx_runtime227.jsx)(import_react_native204.View, {
45344
45282
  style: {
45345
45283
  width: "100%",
45346
- height: import_react_native205.Platform.OS === "ios" ? 44 : 54,
45284
+ height: import_react_native204.Platform.OS === "ios" ? 44 : 54,
45347
45285
  flexDirection: "row",
45348
45286
  alignItems: "center",
45349
45287
  justifyContent: "flex-end",
@@ -45380,8 +45318,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45380
45318
  }
45381
45319
  function GameAppContainer(param) {
45382
45320
  var children = param.children;
45383
- (0, import_react184.useEffect)(function() {
45384
- if (import_react_native190.Platform.OS === "ios") {
45321
+ (0, import_react182.useEffect)(function() {
45322
+ if (import_react_native188.Platform.OS === "ios") {
45385
45323
  setIosSwipeGestureEnabled({
45386
45324
  isEnabled: false
45387
45325
  });
@@ -45421,7 +45359,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45421
45359
  })) {
45422
45360
  return (0, import_jsx_runtime229.jsxs)(import_jsx_runtime229.Fragment, {
45423
45361
  children: [
45424
- (0, import_jsx_runtime229.jsx)(AppEvent.Entry, {}),
45425
45362
  (0, import_jsx_runtime229.jsx)(AppEvent.System, _object_spread({}, initialProps)),
45426
45363
  (0, import_jsx_runtime229.jsx)(AppUpdate, {})
45427
45364
  ]
@@ -45429,8 +45366,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45429
45366
  }
45430
45367
  return (0, import_jsx_runtime229.jsxs)(import_jsx_runtime229.Fragment, {
45431
45368
  children: [
45432
- (0, import_jsx_runtime229.jsx)(AppEvent.StayTime, {}),
45433
- (0, import_jsx_runtime229.jsx)(AppEvent.Entry, {}),
45434
45369
  (0, import_jsx_runtime229.jsx)(AppEvent.System, _object_spread({}, initialProps)),
45435
45370
  (0, import_jsx_runtime229.jsx)(Container, _object_spread_props(_object_spread({}, initialProps), {
45436
45371
  children: (0, import_jsx_runtime229.jsx)(TDSProvider, {
@@ -45496,13 +45431,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45496
45431
  function GameWebviewNavigationBar() {
45497
45432
  var safeAreaTop = useSafeAreaTop();
45498
45433
  var openConfirm = useDialog().openConfirm;
45499
- var captureExitLog = useCaptureExitLog().captureExitLog;
45500
45434
  var global2 = getAppsInTossGlobals();
45501
45435
  var logging = useNavigationBarLogging();
45502
45436
  var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
45503
45437
  var navigationRightButton = useNavigationBarContext().navigationRightButton;
45504
45438
  var _useSafeAreaInsets2 = (0, react_native_safe_area_context_exports.useSafeAreaInsets)(), safeAreaRight = _useSafeAreaInsets2.right;
45505
- var handleGameWebviewClose = (0, import_react198.useCallback)(function() {
45439
+ var handleGameWebviewClose = (0, import_react197.useCallback)(function() {
45506
45440
  return _async_to_generator(function() {
45507
45441
  var isConfirmed;
45508
45442
  return __generator(this, function(_state) {
@@ -45523,7 +45457,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45523
45457
  isConfirmed = _state.sent();
45524
45458
  logging.closePopupCtaClick(isConfirmed);
45525
45459
  if (isConfirmed) {
45526
- captureExitLog(Date.now());
45527
45460
  closeView();
45528
45461
  }
45529
45462
  return [
@@ -45533,7 +45466,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45533
45466
  });
45534
45467
  })();
45535
45468
  }, [
45536
- captureExitLog,
45537
45469
  global2.brandDisplayName,
45538
45470
  logging,
45539
45471
  openConfirm
@@ -45545,10 +45477,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45545
45477
  type: "none"
45546
45478
  }
45547
45479
  }),
45548
- (0, import_jsx_runtime230.jsx)(import_react_native210.View, {
45480
+ (0, import_jsx_runtime230.jsx)(import_react_native209.View, {
45549
45481
  style: {
45550
45482
  width: "100%",
45551
- height: import_react_native210.Platform.OS === "ios" ? 44 : 54,
45483
+ height: import_react_native209.Platform.OS === "ios" ? 44 : 54,
45552
45484
  flexDirection: "row",
45553
45485
  alignItems: "center",
45554
45486
  justifyContent: "flex-end",
@@ -45574,7 +45506,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45574
45506
  var onBackButtonClick = param.onBackButtonClick, onHomeButtonClick = param.onHomeButtonClick;
45575
45507
  var _ref, _ref1;
45576
45508
  var globals = getAppsInTossGlobals();
45577
- var captureExitLog = useCaptureExitLog().captureExitLog;
45578
45509
  var logging = useNavigationBarLogging();
45579
45510
  var openConfirm = useDialog().openConfirm;
45580
45511
  var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
@@ -45582,7 +45513,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45582
45513
  var withHomeButton = (_ref = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withHomeButton) !== null && _ref !== void 0 ? _ref : false;
45583
45514
  var withBackButton = (_ref1 = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withBackButton) !== null && _ref1 !== void 0 ? _ref1 : true;
45584
45515
  var navigationRightButton = useNavigationBarContext().navigationRightButton;
45585
- var handleClose = (0, import_react200.useCallback)(function() {
45516
+ var handleClose = (0, import_react199.useCallback)(function() {
45586
45517
  return _async_to_generator(function() {
45587
45518
  var isConfirmed;
45588
45519
  return __generator(this, function(_state) {
@@ -45603,7 +45534,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45603
45534
  isConfirmed = _state.sent();
45604
45535
  logging.closePopupCtaClick(isConfirmed);
45605
45536
  if (isConfirmed) {
45606
- captureExitLog(Date.now());
45607
45537
  closeView();
45608
45538
  }
45609
45539
  return [
@@ -45613,7 +45543,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45613
45543
  });
45614
45544
  })();
45615
45545
  }, [
45616
- captureExitLog,
45617
45546
  globals.brandDisplayName,
45618
45547
  logging,
45619
45548
  openConfirm
@@ -46000,7 +45929,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46000
45929
  });
46001
45930
  return [
46002
45931
  2,
46003
- INTERNAL__module.tossCoreEventLog(eventLogParams)
45932
+ sendLog(eventLogParams, {
45933
+ pipelines: [
45934
+ "core"
45935
+ ]
45936
+ })
46004
45937
  ];
46005
45938
  });
46006
45939
  })();
@@ -46061,8 +45994,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46061
45994
  }
46062
45995
  function useBridgeHandler(param) {
46063
45996
  var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap;
46064
- var ref = (0, import_react201.useRef)(null);
46065
- var injectedJavaScript = (0, import_react201.useMemo)(function() {
45997
+ var ref = (0, import_react200.useRef)(null);
45998
+ var injectedJavaScript = (0, import_react200.useMemo)(function() {
46066
45999
  return "window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function(acc, param2) {
46067
46000
  var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
46068
46001
  acc[key] = typeof value === "function" ? value() : value;
@@ -46071,7 +46004,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46071
46004
  }, [
46072
46005
  constantHandlerMap
46073
46006
  ]);
46074
- (0, import_react201.useEffect)(function() {
46007
+ (0, import_react200.useEffect)(function() {
46075
46008
  var _ref_current;
46076
46009
  (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.injectJavaScript(injectedJavaScript);
46077
46010
  }, [
@@ -46090,7 +46023,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46090
46023
  (_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 "));
46091
46024
  };
46092
46025
  };
46093
- var $onMessage = (0, import_react201.useCallback)(function(e63) {
46026
+ var $onMessage = (0, import_react200.useCallback)(function(e63) {
46094
46027
  return _async_to_generator(function() {
46095
46028
  var data, _eventListenerMap_data_functionName, handleOnEvent, handleOnError, remove, key, remove1, _ref_current;
46096
46029
  return __generator(this, function(_state) {
@@ -46163,12 +46096,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46163
46096
  }
46164
46097
  function useSafeAreaInsetsEvent() {
46165
46098
  var insets = (0, react_native_safe_area_context_exports.useSafeAreaInsets)();
46166
- (0, import_react202.useEffect)(function() {
46099
+ (0, import_react201.useEffect)(function() {
46167
46100
  safeAreaInsetsChange.emit(insets);
46168
46101
  }, [
46169
46102
  insets
46170
46103
  ]);
46171
- (0, import_react202.useEffect)(function() {
46104
+ (0, import_react201.useEffect)(function() {
46172
46105
  return function() {
46173
46106
  return safeAreaInsetsChange.clearSubscriptions();
46174
46107
  };
@@ -46218,8 +46151,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46218
46151
  }
46219
46152
  }
46220
46153
  function useWebViewHistory() {
46221
- var _useReducer = _sliced_to_array((0, import_react204.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
46222
- var onNavigationStateChange = (0, import_react204.useCallback)(function(param) {
46154
+ var _useReducer = _sliced_to_array((0, import_react203.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
46155
+ var onNavigationStateChange = (0, import_react203.useCallback)(function(param) {
46223
46156
  var url = param.url, canGoForward2 = param.canGoForward;
46224
46157
  dispatch({
46225
46158
  type: "NAVIGATION_CHANGE",
@@ -46227,7 +46160,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46227
46160
  canGoForward: canGoForward2
46228
46161
  });
46229
46162
  }, []);
46230
- var _useMemo4 = (0, import_react204.useMemo)(function() {
46163
+ var _useMemo4 = (0, import_react203.useMemo)(function() {
46231
46164
  var canBack = state.index > 0;
46232
46165
  var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
46233
46166
  return {
@@ -46245,23 +46178,22 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46245
46178
  };
46246
46179
  }
46247
46180
  function useWebBackHandler(webViewInitialURL, webViewRef) {
46248
- var captureExitLog = useCaptureExitLog().captureExitLog;
46249
46181
  var _useWebViewHistory = useWebViewHistory(), hasHistory = _useWebViewHistory.hasHistory, onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
46250
46182
  var _useBackEventState = useBackEventState(), webBackHandlersRef = _useBackEventState.handlersRef, hasWebBackEvent = _useBackEventState.hasBackEvent, addWebBackEventListener = _useBackEventState.addEventListener, removeWebBackEventListener = _useBackEventState.removeEventListener;
46251
46183
  var logging = useNavigationBarLogging();
46252
46184
  var openConfirm = useDialog().openConfirm;
46253
46185
  var global2 = getAppsInTossGlobals();
46254
- var addEventListener = (0, import_react203.useCallback)(function(handler) {
46186
+ var addEventListener = (0, import_react202.useCallback)(function(handler) {
46255
46187
  addWebBackEventListener(handler);
46256
46188
  }, [
46257
46189
  addWebBackEventListener
46258
46190
  ]);
46259
- var removeEventListener = (0, import_react203.useCallback)(function(handler) {
46191
+ var removeEventListener = (0, import_react202.useCallback)(function(handler) {
46260
46192
  removeWebBackEventListener(handler);
46261
46193
  }, [
46262
46194
  removeWebBackEventListener
46263
46195
  ]);
46264
- var handleWebBack = (0, import_react203.useCallback)(function() {
46196
+ var handleWebBack = (0, import_react202.useCallback)(function() {
46265
46197
  return _async_to_generator(function() {
46266
46198
  var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current, isConfirmed;
46267
46199
  return __generator(this, function(_state) {
@@ -46316,7 +46248,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46316
46248
  isConfirmed = _state.sent();
46317
46249
  logging.closePopupCtaClick(isConfirmed);
46318
46250
  if (isConfirmed) {
46319
- captureExitLog(Date.now());
46320
46251
  closeView();
46321
46252
  }
46322
46253
  _state.label = 3;
@@ -46328,7 +46259,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46328
46259
  });
46329
46260
  })();
46330
46261
  }, [
46331
- captureExitLog,
46332
46262
  global2.brandDisplayName,
46333
46263
  hasHistory,
46334
46264
  hasWebBackEvent,
@@ -46337,7 +46267,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46337
46267
  openConfirm,
46338
46268
  webViewRef
46339
46269
  ]);
46340
- var handleWebHome = (0, import_react203.useCallback)(function() {
46270
+ var handleWebHome = (0, import_react202.useCallback)(function() {
46341
46271
  var _webViewRef_current;
46342
46272
  logging.homeButtonClick();
46343
46273
  if (homeEvent.hasSubscriptions()) {
@@ -46352,7 +46282,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46352
46282
  webViewInitialURL,
46353
46283
  webViewRef
46354
46284
  ]);
46355
- return (0, import_react203.useMemo)(function() {
46285
+ return (0, import_react202.useMemo)(function() {
46356
46286
  return {
46357
46287
  addEventListener,
46358
46288
  removeEventListener,
@@ -46528,7 +46458,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46528
46458
  var batteryModePreference = param.batteryModePreference, colorPreference = param.colorPreference, locale = param.locale, navbarPreference = param.navbarPreference, pureSafeArea = param.pureSafeArea, safeArea = param.safeArea, safeAreaBottomTransparency = param.safeAreaBottomTransparency;
46529
46459
  var platform = getPlatformOS();
46530
46460
  var appVersion = getTossAppVersion();
46531
- var fontScale = (0, import_react_native216.useWindowDimensions)().fontScale;
46461
+ var fontScale = (0, import_react_native215.useWindowDimensions)().fontScale;
46532
46462
  var platformString = platform === "ios" ? "iPhone" : "Android phone";
46533
46463
  var fontA11y = mapFontScaleToCategory(fontScale, platform);
46534
46464
  var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
@@ -46580,7 +46510,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46580
46510
  })
46581
46511
  };
46582
46512
  if (getOperationalEnvironment() === "toss") {
46583
- INTERNAL__module.tossCoreEventLog(event);
46513
+ sendLog(event, {
46514
+ pipelines: [
46515
+ "core"
46516
+ ]
46517
+ });
46584
46518
  } else {
46585
46519
  console.log("[webViewDebugLog]", event);
46586
46520
  }
@@ -46653,8 +46587,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46653
46587
  if (!TYPES.includes(type)) {
46654
46588
  throw new Error("Invalid WebView type: '".concat(type, "'"));
46655
46589
  }
46656
- var webViewRef = (0, import_react196.useRef)(null);
46657
- var url = (0, import_react196.useMemo)(function() {
46590
+ var webViewRef = (0, import_react195.useRef)(null);
46591
+ var url = (0, import_react195.useMemo)(function() {
46658
46592
  return getWebViewURL(local);
46659
46593
  }, [
46660
46594
  local
@@ -46666,7 +46600,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46666
46600
  var global2 = getAppsInTossGlobals();
46667
46601
  var navigationBarContext = useNavigationBarContext();
46668
46602
  var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
46669
- var _useState6 = _sliced_to_array((0, import_react196.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState6[0], setAllowsBackForwardNavigationGestures = _useState6[1];
46603
+ var _useState6 = _sliced_to_array((0, import_react195.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState6[0], setAllowsBackForwardNavigationGestures = _useState6[1];
46670
46604
  var handler = useBridgeHandler({
46671
46605
  onMessage,
46672
46606
  eventListenerMap: _object_spread_props(_object_spread({}, event_bridges_exports), {
@@ -46799,8 +46733,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46799
46733
  debugLog: function(event) {
46800
46734
  return _async_to_generator(function() {
46801
46735
  return __generator(this, function(_state) {
46802
- eventLog(event);
46803
- INTERNAL__module.tossCoreEventLog(event);
46736
+ sendLog(event);
46804
46737
  return [
46805
46738
  2
46806
46739
  ];
@@ -46809,7 +46742,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46809
46742
  }
46810
46743
  })
46811
46744
  });
46812
- var headerPropForExternalWebView = (0, import_react196.useMemo)(function() {
46745
+ var headerPropForExternalWebView = (0, import_react195.useMemo)(function() {
46813
46746
  var _ref;
46814
46747
  var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
46815
46748
  var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
@@ -46834,12 +46767,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46834
46767
  colorPreference: "light"
46835
46768
  });
46836
46769
  var refs = mergeRefs3(handler.ref, webViewRef);
46837
- (0, import_react196.useEffect)(function() {
46770
+ (0, import_react195.useEffect)(function() {
46838
46771
  var callback = function() {
46839
46772
  webBackHandler.handleWebBack();
46840
46773
  return true;
46841
46774
  };
46842
- var subscription = import_react_native207.BackHandler.addEventListener("hardwareBackPress", callback);
46775
+ var subscription = import_react_native206.BackHandler.addEventListener("hardwareBackPress", callback);
46843
46776
  return function() {
46844
46777
  return subscription.remove();
46845
46778
  };
@@ -46867,7 +46800,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46867
46800
  webBackHandler.onNavigationStateChange(event);
46868
46801
  },
46869
46802
  textZoom: 100,
46870
- userAgent: import_react_native207.Platform.OS === "ios" ? userAgent : void 0,
46803
+ userAgent: import_react_native206.Platform.OS === "ios" ? userAgent : void 0,
46871
46804
  sharedCookiesEnabled: true,
46872
46805
  webviewDebuggingEnabled: webViewDebuggingEnabled,
46873
46806
  thirdPartyCookiesEnabled: true,
@@ -46877,7 +46810,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46877
46810
  handler.injectedJavaScript,
46878
46811
  t53
46879
46812
  ].join("\n"),
46880
- decelerationRate: import_react_native207.Platform.OS === "ios" ? 1 : void 0,
46813
+ decelerationRate: import_react_native206.Platform.OS === "ios" ? 1 : void 0,
46881
46814
  allowsBackForwardNavigationGestures,
46882
46815
  onShouldStartLoadWithRequest: function(event) {
46883
46816
  try {
@@ -46889,7 +46822,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46889
46822
  return true;
46890
46823
  } else {
46891
46824
  var _convertIntentURL;
46892
- import_react_native207.Linking.openURL((_convertIntentURL = convertIntentURL(url2)) !== null && _convertIntentURL !== void 0 ? _convertIntentURL : url2.href);
46825
+ import_react_native206.Linking.openURL((_convertIntentURL = convertIntentURL(url2)) !== null && _convertIntentURL !== void 0 ? _convertIntentURL : url2.href);
46893
46826
  return false;
46894
46827
  }
46895
46828
  } catch (error) {
@@ -46910,7 +46843,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46910
46843
  onRenderProcessGone: handleWebViewProcessDidTerminate
46911
46844
  }));
46912
46845
  }
46913
- var import_react_native184, import_react179, import_react180, import_react181, import_react182, import_jsx_runtime216, import_react183, import_jsx_runtime217, import_react184, import_react_native190, import_react185, import_react_native192, import_react186, import_react_native194, import_react187, import_react188, import_react189, import_react190, import_jsx_runtime218, import_jsx_runtime219, import_react191, import_react_native197, import_react192, import_react193, import_react194, import_react_native202, import_jsx_runtime220, import_jsx_runtime221, import_jsx_runtime222, import_jsx_runtime223, import_jsx_runtime224, import_react195, import_jsx_runtime225, import_jsx_runtime226, import_react_native205, import_jsx_runtime227, import_jsx_runtime228, import_jsx_runtime229, import_react196, import_react_native207, import_react197, import_react_native208, import_react198, import_react_native210, import_jsx_runtime230, import_jsx_runtime231, import_react199, import_react200, import_jsx_runtime232, import_jsx_runtime233, import_react201, import_react202, import_react203, import_react204, import_react_native216, import_react205, import_react206, import_jsx_runtime234, import_react207, import_react_native219, import_react208, import_react_native220, import_jsx_runtime235, import_react209, 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;
46846
+ var import_react_native184, import_react179, import_react180, import_jsx_runtime216, import_react181, import_jsx_runtime217, import_react182, import_react_native188, import_react183, import_react_native190, import_react184, import_react185, import_react_native193, import_react186, import_react187, import_react188, import_react189, import_jsx_runtime218, import_jsx_runtime219, import_react190, import_react_native196, import_react191, import_react192, import_react193, import_react_native201, import_jsx_runtime220, import_jsx_runtime221, import_jsx_runtime222, import_jsx_runtime223, import_jsx_runtime224, import_react194, import_jsx_runtime225, import_jsx_runtime226, import_react_native204, import_jsx_runtime227, import_jsx_runtime228, import_jsx_runtime229, import_react195, import_react_native206, import_react196, import_react_native207, import_react197, import_react_native209, import_jsx_runtime230, import_jsx_runtime231, import_react198, import_react199, import_jsx_runtime232, import_jsx_runtime233, import_react200, import_react201, import_react202, import_react203, import_react_native215, import_react204, import_react205, import_jsx_runtime234, import_react206, import_react_native218, import_react207, import_react_native219, import_jsx_runtime235, import_react208, import_react_native220, import_jsx_runtime236, import_jsx_runtime237, __GlobalEventDeduplicator, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __hasOwnProp2, __copyProps2, __reExport2, env, DEFAULT_PIPELINES, AppEvent, UPDATE_SCHEME, NavigationBarContext, GAME_PROFILE_WEBVIEW_URL, GAME_MIN_VERSION, PLAYSTORE_LINK, APPSTORE_LINK, getMarketLink, UPDATE_DIALOG_SCHEMA_ID, UPDATE_DIALOG_LOG_NAME, UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID, UPDATE_DIALOG_CTA_CLICK_LOG_NAME, DEFAULT_ERROR, useErrorAlert, INTERNAL__onVisibilityChangedByTransparentServiceWeb, openTransparentWebView, useTransparentWebview, useGameProfileToast, useGameCenterProfile, Z_INDEX, GameInitializer, overlayStyle, EventEmitter, eventEmitter, homeEvent, safeAreaInsetsChange, NAVI_BAR_IMPRESSION_SCHEMA_ID, NAVI_BAR_IMPRESSION_LOG_NAME, CLOSE_POPUP_SHOW_SCHEMA_ID, CLOSE_POPUP_SHOW_LOG_NAME, CLOSE_BUTTON_CLICK_SCHEMA_ID, CLOSE_BUTTON_CLICK_LOG_NAME, CLOSE_POPUP_CTA_CLICK_SCHEMA_ID, CLOSE_POPUP_CTA_CLICK_LOG_NAME, HOME_BUTTON_CLICK_SCHEMA_ID, HOME_BUTTON_CLICK_LOG_NAME, BOTTOM_SHEET_SCHEMA_ID, BOTTOM_SHEET_LOG_NAME, BOTTOM_SHEET_OPEN_SCHEMA_ID, BOTTOM_SHEET_OPEN_LOG_NAME, BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID, BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME, BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID, BOTTOM_SHEET_MENU_CLICK_LOG_NAME, iconNameRegExp, iconURLRegExp, SHARE_SCHEME_REFERRER, APP_SHARE_MENU_INFO, APP_BRIDGE_METHOD_NAME, MIN_VERSION3, RNNavigationBar, bridge_entry_exports, AppsInToss, GameWebView, PartnerWebView, INVALID_AD_GROUP_ID_ERROR_MESSAGE, sessionId, ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION, IOS_FETCH_TOSS_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE3, ENVIRONMENT3, OPERATIONAL_ENVIRONMENT, OS, APP_VER, ALPHA_EVENT_TRACKER_HTTP_ENDPOINT, LIVE_EVENT_TRACKER_HTTP_ENDPOINT, INTEGRATED_AD_SDK_VERSION, ANDROID_INTEGRATED_AD_SUPPORTED_VERSION, IOS_INTEGRATED_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE22, INTG_AD_ADM_FALLBACK_RID_MAP, loadFullScreenAd, loadFullScreenAdForWeb, globalEventListenerMap, INITIAL_STATE, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId2, getReferrer22, trackScreen, operationalEnvironment, TYPES, WEBVIEW_TYPES, ERROR_CODES, _obj6, ERROR_MESSAGES, API_RESULT_ERROR_MAP, AD_STATUS_ERROR_MAP, GlobalEventDeduplicator, globalEventDeduplicator, styles3, styles22, styles32, Analytics2;
46914
46847
  var init_dist8 = __esm({
46915
46848
  "../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.js"() {
46916
46849
  "use strict";
@@ -46935,69 +46868,63 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46935
46868
  init_src3();
46936
46869
  init_esm7();
46937
46870
  import_react_native184 = __toESM(require_react_native(), 1);
46938
- init_dist5();
46939
46871
  init_src3();
46940
46872
  import_react179 = __toESM(require_react(), 1);
46873
+ init_src3();
46941
46874
  init_dist5();
46942
46875
  init_src3();
46943
46876
  import_react180 = __toESM(require_react(), 1);
46944
- init_src3();
46945
- import_react181 = __toESM(require_react(), 1);
46946
- init_src3();
46947
- init_src3();
46948
- import_react182 = __toESM(require_react(), 1);
46949
46877
  import_jsx_runtime216 = __toESM(require_jsx_runtime(), 1);
46950
- import_react183 = __toESM(require_react(), 1);
46878
+ import_react181 = __toESM(require_react(), 1);
46951
46879
  import_jsx_runtime217 = __toESM(require_jsx_runtime(), 1);
46952
46880
  init_dist5();
46953
- import_react184 = __toESM(require_react(), 1);
46954
- import_react_native190 = __toESM(require_react_native(), 1);
46881
+ import_react182 = __toESM(require_react(), 1);
46882
+ import_react_native188 = __toESM(require_react_native(), 1);
46955
46883
  init_dist5();
46956
46884
  init_src3();
46957
46885
  init_esm7();
46958
46886
  init_dist6();
46959
- import_react185 = __toESM(require_react(), 1);
46960
- import_react_native192 = __toESM(require_react_native(), 1);
46961
- init_dist5();
46887
+ import_react183 = __toESM(require_react(), 1);
46888
+ import_react_native190 = __toESM(require_react_native(), 1);
46962
46889
  init_src3();
46963
46890
  init_esm7();
46964
- import_react186 = __toESM(require_react(), 1);
46965
- import_react_native194 = __toESM(require_react_native(), 1);
46891
+ import_react184 = __toESM(require_react(), 1);
46892
+ init_src3();
46893
+ import_react185 = __toESM(require_react(), 1);
46894
+ import_react_native193 = __toESM(require_react_native(), 1);
46966
46895
  init_dist5();
46967
- import_react187 = __toESM(require_react(), 1);
46896
+ import_react186 = __toESM(require_react(), 1);
46968
46897
  init_src3();
46969
46898
  init_esm7();
46899
+ import_react187 = __toESM(require_react(), 1);
46970
46900
  import_react188 = __toESM(require_react(), 1);
46971
- import_react189 = __toESM(require_react(), 1);
46972
46901
  init_src3();
46973
46902
  init_dist5();
46974
46903
  init_esm7();
46975
46904
  init_private2();
46976
- import_react190 = __toESM(require_react(), 1);
46905
+ import_react189 = __toESM(require_react(), 1);
46977
46906
  import_jsx_runtime218 = __toESM(require_jsx_runtime(), 1);
46978
46907
  import_jsx_runtime219 = __toESM(require_jsx_runtime(), 1);
46979
46908
  init_private2();
46980
- import_react191 = __toESM(require_react(), 1);
46981
- import_react_native197 = __toESM(require_react_native(), 1);
46909
+ import_react190 = __toESM(require_react(), 1);
46910
+ import_react_native196 = __toESM(require_react_native(), 1);
46982
46911
  init_src3();
46983
- import_react192 = __toESM(require_react(), 1);
46912
+ import_react191 = __toESM(require_react(), 1);
46984
46913
  init_esm7();
46985
46914
  init_dist6();
46986
- import_react193 = __toESM(require_react(), 1);
46987
- init_dist5();
46915
+ import_react192 = __toESM(require_react(), 1);
46988
46916
  init_src3();
46989
46917
  init_dist5();
46990
46918
  init_src3();
46991
46919
  init_esm7();
46992
46920
  init_private2();
46993
- import_react194 = __toESM(require_react(), 1);
46921
+ import_react193 = __toESM(require_react(), 1);
46994
46922
  init_dist5();
46995
46923
  init_src3();
46996
46924
  init_esm7();
46997
46925
  init_esm7();
46998
46926
  init_private2();
46999
- import_react_native202 = __toESM(require_react_native(), 1);
47000
- init_dist5();
46927
+ import_react_native201 = __toESM(require_react_native(), 1);
47001
46928
  init_src3();
47002
46929
  import_jsx_runtime220 = __toESM(require_jsx_runtime(), 1);
47003
46930
  import_jsx_runtime221 = __toESM(require_jsx_runtime(), 1);
@@ -47007,13 +46934,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47007
46934
  init_src3();
47008
46935
  import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
47009
46936
  import_jsx_runtime224 = __toESM(require_jsx_runtime(), 1);
47010
- import_react195 = __toESM(require_react(), 1);
46937
+ import_react194 = __toESM(require_react(), 1);
47011
46938
  import_jsx_runtime225 = __toESM(require_jsx_runtime(), 1);
47012
46939
  import_jsx_runtime226 = __toESM(require_jsx_runtime(), 1);
47013
46940
  init_react_native_safe_area_context();
47014
46941
  init_esm7();
47015
46942
  init_private2();
47016
- import_react_native205 = __toESM(require_react_native(), 1);
46943
+ import_react_native204 = __toESM(require_react_native(), 1);
47017
46944
  import_jsx_runtime227 = __toESM(require_jsx_runtime(), 1);
47018
46945
  init_async_bridges();
47019
46946
  init_constant_bridges2();
@@ -47029,28 +46956,28 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47029
46956
  init_src3();
47030
46957
  init_esm7();
47031
46958
  init_private2();
47032
- import_react196 = __toESM(require_react(), 1);
47033
- import_react_native207 = __toESM(require_react_native(), 1);
46959
+ import_react195 = __toESM(require_react(), 1);
46960
+ import_react_native206 = __toESM(require_react_native(), 1);
47034
46961
  init_dist5();
47035
46962
  init_react_native_webview();
47036
- import_react197 = __toESM(require_react(), 1);
47037
- import_react_native208 = __toESM(require_react_native(), 1);
46963
+ import_react196 = __toESM(require_react(), 1);
46964
+ import_react_native207 = __toESM(require_react_native(), 1);
47038
46965
  init_react_native_safe_area_context();
47039
46966
  init_src3();
47040
46967
  init_esm7();
47041
46968
  init_private2();
47042
46969
  init_dist6();
47043
- import_react198 = __toESM(require_react(), 1);
47044
- import_react_native210 = __toESM(require_react_native(), 1);
46970
+ import_react197 = __toESM(require_react(), 1);
46971
+ import_react_native209 = __toESM(require_react_native(), 1);
47045
46972
  import_jsx_runtime230 = __toESM(require_jsx_runtime(), 1);
47046
46973
  import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
47047
46974
  init_react_native_webview();
47048
- import_react199 = __toESM(require_react(), 1);
46975
+ import_react198 = __toESM(require_react(), 1);
47049
46976
  init_src3();
47050
46977
  init_esm7();
47051
46978
  init_private2();
47052
46979
  init_dist6();
47053
- import_react200 = __toESM(require_react(), 1);
46980
+ import_react199 = __toESM(require_react(), 1);
47054
46981
  import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
47055
46982
  import_jsx_runtime233 = __toESM(require_jsx_runtime(), 1);
47056
46983
  init_dist5();
@@ -47058,21 +46985,20 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47058
46985
  init_src3();
47059
46986
  init_dist5();
47060
46987
  init_src3();
47061
- init_dist5();
47062
46988
  init_src3();
47063
- import_react201 = __toESM(require_react(), 1);
46989
+ import_react200 = __toESM(require_react(), 1);
47064
46990
  init_react_native_safe_area_context();
47065
- import_react202 = __toESM(require_react(), 1);
46991
+ import_react201 = __toESM(require_react(), 1);
47066
46992
  init_src3();
47067
46993
  init_esm7();
47068
46994
  init_dist6();
46995
+ import_react202 = __toESM(require_react(), 1);
47069
46996
  import_react203 = __toESM(require_react(), 1);
47070
- import_react204 = __toESM(require_react(), 1);
47071
46997
  init_dist5();
47072
- import_react_native216 = __toESM(require_react_native(), 1);
46998
+ import_react_native215 = __toESM(require_react_native(), 1);
47073
46999
  init_dist5();
47000
+ import_react204 = __toESM(require_react(), 1);
47074
47001
  import_react205 = __toESM(require_react(), 1);
47075
- import_react206 = __toESM(require_react(), 1);
47076
47002
  init_dist5();
47077
47003
  init_src3();
47078
47004
  init_esm7();
@@ -47083,13 +47009,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47083
47009
  init_dist5();
47084
47010
  init_dist3();
47085
47011
  init_dist3();
47012
+ import_react206 = __toESM(require_react(), 1);
47013
+ import_react_native218 = __toESM(require_react_native(), 1);
47086
47014
  import_react207 = __toESM(require_react(), 1);
47087
47015
  import_react_native219 = __toESM(require_react_native(), 1);
47016
+ import_jsx_runtime235 = __toESM(require_jsx_runtime(), 1);
47088
47017
  import_react208 = __toESM(require_react(), 1);
47089
47018
  import_react_native220 = __toESM(require_react_native(), 1);
47090
- import_jsx_runtime235 = __toESM(require_jsx_runtime(), 1);
47091
- import_react209 = __toESM(require_react(), 1);
47092
- import_react_native221 = __toESM(require_react_native(), 1);
47093
47019
  import_jsx_runtime236 = __toESM(require_jsx_runtime(), 1);
47094
47020
  import_jsx_runtime237 = __toESM(require_jsx_runtime(), 1);
47095
47021
  __defProp2 = Object.defineProperty;
@@ -47142,16 +47068,15 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47142
47068
  return global.__granite.app.name;
47143
47069
  }
47144
47070
  };
47145
- EXIT_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__stay_time";
47146
- EXIT_IMPRESSION_SCHEMA_ID = 1631628;
47147
- ENTRY_APP_EVENT_SCHEMA_ID = 1562181;
47071
+ DEFAULT_PIPELINES = [
47072
+ "core",
47073
+ "partner"
47074
+ ];
47148
47075
  AppEvent = {
47149
- Entry: EntryAppEvent,
47150
- System: SystemAppEvent,
47151
- StayTime: StayTimeAppEvent
47076
+ System: SystemAppEvent
47152
47077
  };
47153
47078
  UPDATE_SCHEME = "servicetoss://update/forced/j?updateType=required";
47154
- NavigationBarContext = /* @__PURE__ */ (0, import_react183.createContext)(null);
47079
+ NavigationBarContext = /* @__PURE__ */ (0, import_react181.createContext)(null);
47155
47080
  GAME_PROFILE_WEBVIEW_URL = "servicetoss://game-center/profile";
47156
47081
  GAME_MIN_VERSION = {
47157
47082
  android: "5.232.0",
@@ -47160,7 +47085,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47160
47085
  PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
47161
47086
  APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
47162
47087
  getMarketLink = function() {
47163
- return import_react_native194.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
47088
+ return import_react_native193.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
47164
47089
  };
47165
47090
  UPDATE_DIALOG_SCHEMA_ID = 1634992;
47166
47091
  UPDATE_DIALOG_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update";
@@ -47172,7 +47097,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47172
47097
  };
47173
47098
  useErrorAlert = function() {
47174
47099
  var openAlert = useDialog().openAlert;
47175
- var openErrorAlert = (0, import_react188.useCallback)(function() {
47100
+ var openErrorAlert = (0, import_react187.useCallback)(function() {
47176
47101
  return _async_to_generator(function() {
47177
47102
  return __generator(this, function(_state) {
47178
47103
  switch (_state.label) {
@@ -47228,9 +47153,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47228
47153
  openURL(url.toString());
47229
47154
  };
47230
47155
  useTransparentWebview = function() {
47231
- var _useState2 = _sliced_to_array((0, import_react189.useState)(false), 2), isWebviewLoading = _useState2[0], setIsWebviewLoading = _useState2[1];
47156
+ var _useState2 = _sliced_to_array((0, import_react188.useState)(false), 2), isWebviewLoading = _useState2[0], setIsWebviewLoading = _useState2[1];
47232
47157
  var _useErrorAlert = useErrorAlert(), openErrorAlert = _useErrorAlert.open;
47233
- var _openTransparentWebview = (0, import_react189.useCallback)(function(param) {
47158
+ var _openTransparentWebview = (0, import_react188.useCallback)(function(param) {
47234
47159
  var webUrl = param.webUrl, onClose = param.onClose, onError = param.onError;
47235
47160
  if (isWebviewLoading) {
47236
47161
  return;
@@ -47270,7 +47195,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47270
47195
  };
47271
47196
  useGameProfileToast = function() {
47272
47197
  var overlay = useOverlay();
47273
- var openGameProfileToast = (0, import_react190.useCallback)(function(nickname, profileImageUri) {
47198
+ var openGameProfileToast = (0, import_react189.useCallback)(function(nickname, profileImageUri) {
47274
47199
  return new Promise(function(resolve) {
47275
47200
  overlay.open(function(param) {
47276
47201
  var isOpen = param.isOpen, close = param.close, exit = param.exit;
@@ -47309,16 +47234,16 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47309
47234
  };
47310
47235
  };
47311
47236
  useGameCenterProfile = function() {
47312
- var _useState3 = _sliced_to_array((0, import_react187.useState)(void 0), 2), profileData = _useState3[0], setProfileData = _useState3[1];
47313
- var _useState31 = _sliced_to_array((0, import_react187.useState)(true), 2), isProfileDataLoading = _useState31[0], setIsProfileDataLoading = _useState31[1];
47314
- var _useState32 = _sliced_to_array((0, import_react187.useState)(false), 2), isProfileDataRefetching = _useState32[0], setIsProfileDataRefetching = _useState32[1];
47237
+ var _useState3 = _sliced_to_array((0, import_react186.useState)(void 0), 2), profileData = _useState3[0], setProfileData = _useState3[1];
47238
+ var _useState31 = _sliced_to_array((0, import_react186.useState)(true), 2), isProfileDataLoading = _useState31[0], setIsProfileDataLoading = _useState31[1];
47239
+ var _useState32 = _sliced_to_array((0, import_react186.useState)(false), 2), isProfileDataRefetching = _useState32[0], setIsProfileDataRefetching = _useState32[1];
47315
47240
  var shouldShowProfileLoadingOverlay = isProfileDataLoading || isProfileDataRefetching;
47316
47241
  var shouldShowProfileNotFoundOverlay = (profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && !isProfileDataRefetching;
47317
47242
  var canShowBottomSheetOrToast = !isProfileDataLoading;
47318
47243
  var openGameProfileToast = useGameProfileToast().openGameProfileToast;
47319
47244
  var _useErrorAlert = useErrorAlert(), openErrorAlert = _useErrorAlert.open;
47320
47245
  var _useTransparentWebview = useTransparentWebview(), openTransparentWebView2 = _useTransparentWebview.open;
47321
- var fetchProfileData = (0, import_react187.useCallback)(function() {
47246
+ var fetchProfileData = (0, import_react186.useCallback)(function() {
47322
47247
  return _async_to_generator(function() {
47323
47248
  var data, _16;
47324
47249
  return __generator(this, function(_state) {
@@ -47360,7 +47285,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47360
47285
  }, [
47361
47286
  openErrorAlert
47362
47287
  ]);
47363
- var refetchProfileData = (0, import_react187.useCallback)(function() {
47288
+ var refetchProfileData = (0, import_react186.useCallback)(function() {
47364
47289
  return _async_to_generator(function() {
47365
47290
  var data, _16;
47366
47291
  return __generator(this, function(_state) {
@@ -47407,7 +47332,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47407
47332
  openErrorAlert,
47408
47333
  openGameProfileToast
47409
47334
  ]);
47410
- var openProfileWebview = (0, import_react187.useCallback)(function() {
47335
+ var openProfileWebview = (0, import_react186.useCallback)(function() {
47411
47336
  openTransparentWebView2({
47412
47337
  webUrl: "".concat(GAME_PROFILE_WEBVIEW_URL, "?appName=").concat(getAppName(), "&referrer=appsintoss.").concat(getAppName()),
47413
47338
  onClose: function() {
@@ -47446,12 +47371,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47446
47371
  GameInitializer = function(param) {
47447
47372
  var children = param.children;
47448
47373
  var _useGameCenterProfile = useGameCenterProfile(), profileData = _useGameCenterProfile.profileData, shouldShowProfileLoadingOverlay = _useGameCenterProfile.shouldShowProfileLoadingOverlay, shouldShowProfileNotFoundOverlay = _useGameCenterProfile.shouldShowProfileNotFoundOverlay, canShowBottomSheetOrToast = _useGameCenterProfile.canShowBottomSheetOrToast, openProfileWebview = _useGameCenterProfile.openProfileWebview, openGameProfileToast = _useGameCenterProfile.openGameProfileToast, fetchProfileData = _useGameCenterProfile.fetchProfileData;
47449
- var isCompletedFlow = (0, import_react185.useRef)(false);
47374
+ var isCompletedFlow = (0, import_react183.useRef)(false);
47450
47375
  var _useAppUpdateDialog = useAppUpdateDialog(), openAppUpdateDialog = _useAppUpdateDialog.open;
47451
- (0, import_react185.useEffect)(function() {
47376
+ (0, import_react183.useEffect)(function() {
47452
47377
  fetchProfileData();
47453
47378
  }, []);
47454
- (0, import_react185.useEffect)(function() {
47379
+ (0, import_react183.useEffect)(function() {
47455
47380
  var handleGameProfileFlow = function() {
47456
47381
  return _async_to_generator(function() {
47457
47382
  return __generator(this, function(_state) {
@@ -47504,14 +47429,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47504
47429
  if (!isMinVersionSupported(GAME_MIN_VERSION)) {
47505
47430
  return (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
47506
47431
  children: [
47507
- (0, import_jsx_runtime219.jsx)(import_react_native192.View, {
47432
+ (0, import_jsx_runtime219.jsx)(import_react_native190.View, {
47508
47433
  style: {
47509
47434
  flex: 1,
47510
47435
  position: "relative"
47511
47436
  },
47512
47437
  children
47513
47438
  }),
47514
- (0, import_jsx_runtime219.jsx)(import_react_native192.Pressable, {
47439
+ (0, import_jsx_runtime219.jsx)(import_react_native190.Pressable, {
47515
47440
  style: _object_spread({}, overlayStyle),
47516
47441
  onPress: function() {
47517
47442
  openAppUpdateDialog({
@@ -47528,14 +47453,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47528
47453
  if (shouldShowProfileLoadingOverlay) {
47529
47454
  return (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
47530
47455
  children: [
47531
- (0, import_jsx_runtime219.jsx)(import_react_native192.View, {
47456
+ (0, import_jsx_runtime219.jsx)(import_react_native190.View, {
47532
47457
  style: {
47533
47458
  flex: 1,
47534
47459
  position: "relative"
47535
47460
  },
47536
47461
  children
47537
47462
  }),
47538
- (0, import_jsx_runtime219.jsx)(import_react_native192.View, {
47463
+ (0, import_jsx_runtime219.jsx)(import_react_native190.View, {
47539
47464
  style: _object_spread_props(_object_spread({}, overlayStyle), {
47540
47465
  justifyContent: "center",
47541
47466
  alignItems: "center",
@@ -47552,14 +47477,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47552
47477
  if (shouldShowProfileNotFoundOverlay) {
47553
47478
  return (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
47554
47479
  children: [
47555
- (0, import_jsx_runtime219.jsx)(import_react_native192.View, {
47480
+ (0, import_jsx_runtime219.jsx)(import_react_native190.View, {
47556
47481
  style: {
47557
47482
  flex: 1,
47558
47483
  position: "relative"
47559
47484
  },
47560
47485
  children
47561
47486
  }),
47562
- shouldShowProfileNotFoundOverlay && (0, import_jsx_runtime219.jsx)(import_react_native192.Pressable, {
47487
+ shouldShowProfileNotFoundOverlay && (0, import_jsx_runtime219.jsx)(import_react_native190.Pressable, {
47563
47488
  style: _object_spread({}, overlayStyle),
47564
47489
  onPress: function() {
47565
47490
  openProfileWebview();
@@ -47569,7 +47494,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47569
47494
  });
47570
47495
  }
47571
47496
  return (0, import_jsx_runtime219.jsx)(import_jsx_runtime219.Fragment, {
47572
- children: (0, import_jsx_runtime219.jsx)(import_react_native192.View, {
47497
+ children: (0, import_jsx_runtime219.jsx)(import_react_native190.View, {
47573
47498
  style: {
47574
47499
  flex: 1,
47575
47500
  position: "relative"
@@ -47697,9 +47622,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47697
47622
  AppsInToss = {
47698
47623
  registerApp
47699
47624
  };
47700
- GameWebView = /* @__PURE__ */ (0, import_react197.forwardRef)(function GameWebView2(props, ref) {
47701
- (0, import_react197.useEffect)(function() {
47702
- if (import_react_native208.Platform.OS === "ios") {
47625
+ GameWebView = /* @__PURE__ */ (0, import_react196.forwardRef)(function GameWebView2(props, ref) {
47626
+ (0, import_react196.useEffect)(function() {
47627
+ if (import_react_native207.Platform.OS === "ios") {
47703
47628
  setIosSwipeGestureEnabled({
47704
47629
  isEnabled: false
47705
47630
  });
@@ -47724,7 +47649,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47724
47649
  ]
47725
47650
  });
47726
47651
  });
47727
- PartnerWebView = /* @__PURE__ */ (0, import_react199.forwardRef)(function PartnerWebViewScreen(_03, _1) {
47652
+ PartnerWebView = /* @__PURE__ */ (0, import_react198.forwardRef)(function PartnerWebViewScreen(_03, _1) {
47728
47653
  var _ref = [
47729
47654
  _03,
47730
47655
  _1
@@ -47988,7 +47913,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47988
47913
  return _GlobalEventDeduplicator;
47989
47914
  }(), __GlobalEventDeduplicator.MAX_EVENTS = 1e4, __GlobalEventDeduplicator);
47990
47915
  globalEventDeduplicator = new GlobalEventDeduplicator();
47991
- styles3 = import_react_native220.StyleSheet.create({
47916
+ styles3 = import_react_native219.StyleSheet.create({
47992
47917
  pressable: {
47993
47918
  width: "100%"
47994
47919
  },
@@ -48026,7 +47951,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48026
47951
  height: 36,
48027
47952
  borderRadius: 18
48028
47953
  },
48029
- logoOverlay: _object_spread_props(_object_spread({}, import_react_native220.StyleSheet.absoluteFillObject), {
47954
+ logoOverlay: _object_spread_props(_object_spread({}, import_react_native219.StyleSheet.absoluteFillObject), {
48030
47955
  borderWidth: 1,
48031
47956
  borderRadius: 18
48032
47957
  }),
@@ -48088,7 +48013,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48088
48013
  fontWeight: "600",
48089
48014
  lineHeight: 22.5
48090
48015
  },
48091
- cardOverlay: _object_spread_props(_object_spread({}, import_react_native220.StyleSheet.absoluteFillObject), {
48016
+ cardOverlay: _object_spread_props(_object_spread({}, import_react_native219.StyleSheet.absoluteFillObject), {
48092
48017
  borderWidth: 2,
48093
48018
  borderRadius: 12,
48094
48019
  pointerEvents: "none"
@@ -48099,7 +48024,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48099
48024
  fontWeight: "400"
48100
48025
  }
48101
48026
  });
48102
- styles22 = import_react_native221.StyleSheet.create({
48027
+ styles22 = import_react_native220.StyleSheet.create({
48103
48028
  pressable: {
48104
48029
  width: "100%"
48105
48030
  },
@@ -48144,7 +48069,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48144
48069
  width: "100%"
48145
48070
  }
48146
48071
  });
48147
- styles32 = import_react_native219.StyleSheet.create({
48072
+ styles32 = import_react_native218.StyleSheet.create({
48148
48073
  impressionArea: {
48149
48074
  width: "100%"
48150
48075
  },
@@ -48179,7 +48104,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48179
48104
  }
48180
48105
  });
48181
48106
  function Index() {
48182
- return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(import_react_native222.View, {
48107
+ return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(import_react_native221.View, {
48183
48108
  style: {
48184
48109
  flex: 1
48185
48110
  },
@@ -48201,13 +48126,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
48201
48126
  })
48202
48127
  });
48203
48128
  }
48204
- var import_jsx_runtime238, import_react_native222;
48129
+ var import_jsx_runtime238, import_react_native221;
48205
48130
  var init_pages = __esm({
48206
48131
  "react-native/pages/index.tsx"() {
48207
48132
  "use strict";
48208
48133
  import_jsx_runtime238 = __toESM(require_jsx_runtime(), 1);
48209
48134
  init_dist8();
48210
- import_react_native222 = __toESM(require_react_native(), 1);
48135
+ import_react_native221 = __toESM(require_react_native(), 1);
48211
48136
  }
48212
48137
  });
48213
48138