@apps-in-toss/web-framework 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -44136,7 +44136,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44136
44136
  });
44137
44137
 
44138
44138
  // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/constants.ts
44139
- var GAME_CENTER_MIN_VERSION2;
44139
+ var GAME_CENTER_MIN_VERSION2, GAME_USER_KEY_MIN_VERSION, GAME_PROMOTION_REWARD_MIN_VERSION;
44140
44140
  var init_constants13 = __esm({
44141
44141
  "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/constants.ts"() {
44142
44142
  "use strict";
@@ -44144,6 +44144,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44144
44144
  android: "5.221.0",
44145
44145
  ios: "5.221.0"
44146
44146
  };
44147
+ GAME_USER_KEY_MIN_VERSION = {
44148
+ android: "5.232.0",
44149
+ ios: "5.232.0"
44150
+ };
44151
+ GAME_PROMOTION_REWARD_MIN_VERSION = {
44152
+ android: "5.232.0",
44153
+ ios: "5.232.0"
44154
+ };
44147
44155
  }
44148
44156
  });
44149
44157
 
@@ -44252,6 +44260,160 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44252
44260
  }
44253
44261
  });
44254
44262
 
44263
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getUserKeyForGame.ts
44264
+ function getUserKeyForGame() {
44265
+ return _getUserKeyForGame.apply(this, arguments);
44266
+ }
44267
+ function _getUserKeyForGame() {
44268
+ _getUserKeyForGame = _async_to_generator(function() {
44269
+ var isSupported, response, _17;
44270
+ return __generator(this, function(_state) {
44271
+ switch (_state.label) {
44272
+ case 0:
44273
+ isSupported = isMinVersionSupported2(GAME_USER_KEY_MIN_VERSION);
44274
+ if (!isSupported) {
44275
+ return [
44276
+ 2
44277
+ ];
44278
+ }
44279
+ _state.label = 1;
44280
+ case 1:
44281
+ _state.trys.push([
44282
+ 1,
44283
+ 3,
44284
+ ,
44285
+ 4
44286
+ ]);
44287
+ return [
44288
+ 4,
44289
+ AppsInTossModule2.getUserKeyForGame({})
44290
+ ];
44291
+ case 2:
44292
+ response = _state.sent();
44293
+ if (response.type === "HASH") {
44294
+ return [
44295
+ 2,
44296
+ response
44297
+ ];
44298
+ }
44299
+ if (response.type === "NOT_AVAILABLE") {
44300
+ return [
44301
+ 2,
44302
+ "INVALID_CATEGORY"
44303
+ ];
44304
+ }
44305
+ return [
44306
+ 2,
44307
+ "ERROR"
44308
+ ];
44309
+ case 3:
44310
+ _17 = _state.sent();
44311
+ return [
44312
+ 2,
44313
+ "ERROR"
44314
+ ];
44315
+ case 4:
44316
+ return [
44317
+ 2
44318
+ ];
44319
+ }
44320
+ });
44321
+ });
44322
+ return _getUserKeyForGame.apply(this, arguments);
44323
+ }
44324
+ var init_getUserKeyForGame = __esm({
44325
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getUserKeyForGame.ts"() {
44326
+ "use strict";
44327
+ init_async_to_generator();
44328
+ init_ts_generator();
44329
+ init_AppsInTossModule();
44330
+ init_isMinVersionSupported();
44331
+ init_constants13();
44332
+ }
44333
+ });
44334
+
44335
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/grantPromotionRewardForGame.ts
44336
+ function isGrantPromotionRewardForGameError(error) {
44337
+ return (typeof error === "undefined" ? "undefined" : _type_of(error)) === "object" && error !== null && "code" in error && typeof error.code === "string" && "message" in error && typeof error.message === "string";
44338
+ }
44339
+ function grantPromotionRewardForGame(_17) {
44340
+ return _grantPromotionRewardForGame.apply(this, arguments);
44341
+ }
44342
+ function _grantPromotionRewardForGame() {
44343
+ _grantPromotionRewardForGame = _async_to_generator(function(param) {
44344
+ var params, isSupported, response, error;
44345
+ return __generator(this, function(_state) {
44346
+ switch (_state.label) {
44347
+ case 0:
44348
+ params = param.params;
44349
+ isSupported = isMinVersionSupported2(GAME_PROMOTION_REWARD_MIN_VERSION);
44350
+ if (!isSupported) {
44351
+ return [
44352
+ 2
44353
+ ];
44354
+ }
44355
+ _state.label = 1;
44356
+ case 1:
44357
+ _state.trys.push([
44358
+ 1,
44359
+ 3,
44360
+ ,
44361
+ 4
44362
+ ]);
44363
+ return [
44364
+ 4,
44365
+ AppsInTossModule2.grantPromotionRewardForGame({
44366
+ params
44367
+ })
44368
+ ];
44369
+ case 2:
44370
+ response = _state.sent();
44371
+ if (response.key) {
44372
+ return [
44373
+ 2,
44374
+ response
44375
+ ];
44376
+ }
44377
+ return [
44378
+ 2,
44379
+ "ERROR"
44380
+ ];
44381
+ case 3:
44382
+ error = _state.sent();
44383
+ if (isGrantPromotionRewardForGameError(error)) {
44384
+ return [
44385
+ 2,
44386
+ {
44387
+ errorCode: error.code,
44388
+ message: error.message
44389
+ }
44390
+ ];
44391
+ }
44392
+ return [
44393
+ 2,
44394
+ "ERROR"
44395
+ ];
44396
+ case 4:
44397
+ return [
44398
+ 2
44399
+ ];
44400
+ }
44401
+ });
44402
+ });
44403
+ return _grantPromotionRewardForGame.apply(this, arguments);
44404
+ }
44405
+ var init_grantPromotionRewardForGame = __esm({
44406
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/grantPromotionRewardForGame.ts"() {
44407
+ "use strict";
44408
+ init_async_to_generator();
44409
+ init_type_of();
44410
+ init_ts_generator();
44411
+ init_AppsInTossModule();
44412
+ init_isMinVersionSupported();
44413
+ init_constants13();
44414
+ }
44415
+ });
44416
+
44255
44417
  // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/async-bridges.ts
44256
44418
  var async_bridges_exports = {};
44257
44419
  __export(async_bridges_exports, {
@@ -44297,6 +44459,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44297
44459
  getTossShareLink: function() {
44298
44460
  return getTossShareLink;
44299
44461
  },
44462
+ getUserKeyForGame: function() {
44463
+ return getUserKeyForGame;
44464
+ },
44465
+ grantPromotionRewardForGame: function() {
44466
+ return grantPromotionRewardForGame;
44467
+ },
44300
44468
  openCamera: function() {
44301
44469
  return openCamera2;
44302
44470
  },
@@ -44367,6 +44535,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44367
44535
  init_getGameCenterGameProfile();
44368
44536
  init_openGameCenterLeaderboard();
44369
44537
  init_submitGameCenterLeaderBoardScore();
44538
+ init_getUserKeyForGame();
44539
+ init_grantPromotionRewardForGame();
44370
44540
  }
44371
44541
  });
44372
44542
 
@@ -45202,6 +45372,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45202
45372
  init_openGameCenterLeaderboard();
45203
45373
  init_getGameCenterGameProfile();
45204
45374
  init_submitGameCenterLeaderBoardScore();
45375
+ init_getUserKeyForGame();
45376
+ init_grantPromotionRewardForGame();
45205
45377
  init_contactsViral();
45206
45378
  init_appsInTossSignTossCert();
45207
45379
  }
@@ -45398,15 +45570,108 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45398
45570
  });
45399
45571
  }, []);
45400
45572
  }
45573
+ function useAppUpdateDialog() {
45574
+ var openConfirm = useDialog().openConfirm;
45575
+ var logging = useAppUpdateDialogLogging();
45576
+ var openAppUpdateDialog = (0, import_react216.useCallback)(function() {
45577
+ var _ref = _async_to_generator(function(param) {
45578
+ var title, description, _param_leftButton, leftButton, _param_rightButton, rightButton, onDismiss, isConfirmed, STORE_SCHEME;
45579
+ return __generator(this, function(_state) {
45580
+ switch (_state.label) {
45581
+ case 0:
45582
+ 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;
45583
+ logging.show();
45584
+ return [
45585
+ 4,
45586
+ openConfirm({
45587
+ title,
45588
+ description,
45589
+ leftButton,
45590
+ rightButton,
45591
+ closeOnDimmerClick: true
45592
+ })
45593
+ ];
45594
+ case 1:
45595
+ isConfirmed = _state.sent();
45596
+ if (!isConfirmed) {
45597
+ logging.close();
45598
+ onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
45599
+ return [
45600
+ 2
45601
+ ];
45602
+ }
45603
+ logging.update();
45604
+ STORE_SCHEME = getMarketLink();
45605
+ openURL("supertoss://web?url=".concat(STORE_SCHEME, "&external=browser"));
45606
+ return [
45607
+ 2
45608
+ ];
45609
+ }
45610
+ });
45611
+ });
45612
+ return function(_17) {
45613
+ return _ref.apply(this, arguments);
45614
+ };
45615
+ }(), [
45616
+ logging,
45617
+ openConfirm
45618
+ ]);
45619
+ return {
45620
+ open: openAppUpdateDialog
45621
+ };
45622
+ }
45623
+ function useAppUpdateDialogLogging() {
45624
+ var referrer2 = useReferrer();
45625
+ var baseParams = {
45626
+ referrer: referrer2,
45627
+ app_name: Granite.appName
45628
+ };
45629
+ var logUpdateClick = function() {
45630
+ INTERNAL__module.tossCoreEventLog({
45631
+ log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
45632
+ log_type: "event",
45633
+ params: _object_spread_props(_object_spread({}, baseParams), {
45634
+ schema_id: UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID,
45635
+ event_type: "click",
45636
+ button_type: "update"
45637
+ })
45638
+ });
45639
+ };
45640
+ var logCloseClick = function() {
45641
+ INTERNAL__module.tossCoreEventLog({
45642
+ log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
45643
+ log_type: "event",
45644
+ params: _object_spread_props(_object_spread({}, baseParams), {
45645
+ schema_id: UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID,
45646
+ event_type: "click",
45647
+ button_type: "close"
45648
+ })
45649
+ });
45650
+ };
45651
+ var logDialogShow = function() {
45652
+ INTERNAL__module.tossCoreEventLog({
45653
+ log_name: UPDATE_DIALOG_LOG_NAME,
45654
+ log_type: "popup",
45655
+ params: _object_spread_props(_object_spread({}, baseParams), {
45656
+ schema_id: UPDATE_DIALOG_SCHEMA_ID
45657
+ })
45658
+ });
45659
+ };
45660
+ return {
45661
+ update: logUpdateClick,
45662
+ close: logCloseClick,
45663
+ show: logDialogShow
45664
+ };
45665
+ }
45401
45666
  function useHardwareBackPress(handler) {
45402
- (0, import_react217.useEffect)(function() {
45667
+ (0, import_react221.useEffect)(function() {
45403
45668
  var handleBackPress = function() {
45404
45669
  handler();
45405
45670
  return true;
45406
45671
  };
45407
- import_react_native210.BackHandler.addEventListener("hardwareBackPress", handleBackPress);
45672
+ import_react_native212.BackHandler.addEventListener("hardwareBackPress", handleBackPress);
45408
45673
  return function() {
45409
- return import_react_native210.BackHandler.removeEventListener("hardwareBackPress", handleBackPress);
45674
+ return import_react_native212.BackHandler.removeEventListener("hardwareBackPress", handleBackPress);
45410
45675
  };
45411
45676
  }, [
45412
45677
  handler
@@ -45415,7 +45680,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45415
45680
  function useCloseConfirm() {
45416
45681
  var brandDisplayName = getAppsInTossGlobals().brandDisplayName;
45417
45682
  var openConfirm = useDialog().openConfirm;
45418
- return (0, import_react219.useCallback)(function() {
45683
+ return (0, import_react223.useCallback)(function() {
45419
45684
  var _ref = _async_to_generator(function(param) {
45420
45685
  var onEntered;
45421
45686
  return __generator(this, function(_state) {
@@ -45518,7 +45783,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45518
45783
  var navigation = useNavigation();
45519
45784
  var closeConfirm = useCloseConfirm();
45520
45785
  var captureExitLog = useCaptureExitLog().captureExitLog;
45521
- return (0, import_react218.useMemo)(function() {
45786
+ return (0, import_react222.useMemo)(function() {
45522
45787
  var close = function() {
45523
45788
  var _ref = _async_to_generator(function() {
45524
45789
  var hasConfirmed;
@@ -45692,7 +45957,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45692
45957
  logging.menuClick({
45693
45958
  title: APP_SHARE_MENU_INFO.contactItemName
45694
45959
  });
45695
- import_react_native215.NativeModules.AppsInTossModule.shareWithScheme({
45960
+ import_react_native217.NativeModules.AppsInTossModule.shareWithScheme({
45696
45961
  params: {
45697
45962
  schemeURL: schemeForShare
45698
45963
  }
@@ -45700,145 +45965,53 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45700
45965
  }
45701
45966
  });
45702
45967
  }
45703
- function useAppUpdateDialog() {
45704
- var openConfirm = useDialog().openConfirm;
45705
- var logging = useAppUpdateDialogLogging();
45706
- var openAppUpdateDialog = (0, import_react221.useCallback)(function() {
45707
- var _ref = _async_to_generator(function(param) {
45708
- var title, description, _param_leftButton, leftButton, _param_rightButton, rightButton, isConfirmed, STORE_SCHEME;
45968
+ function ensureValue(value, name) {
45969
+ if (value === void 0) {
45970
+ throw new Error("".concat(name, " is required"));
45971
+ }
45972
+ return value;
45973
+ }
45974
+ function useMoreButtonBottomSheet() {
45975
+ var globals = getAppsInTossGlobals();
45976
+ var adaptive = useAdaptive();
45977
+ var _useState3 = _sliced_to_array((0, import_react224.useState)([]), 2), itemList = _useState3[0], setItemList = _useState3[1];
45978
+ var appUpdateDialog = useAppUpdateDialog();
45979
+ var logging = useMoreButtonBottomSheetLogging();
45980
+ var overlay = useOverlay();
45981
+ var title = ensureValue(globals.brandDisplayName, "displayName");
45982
+ var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION.BOTTOM_SHEET);
45983
+ var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION.SHARE_LIST_MENU);
45984
+ (0, import_react224.useEffect)(function() {
45985
+ if (!isBottomSheetSupported) {
45986
+ return;
45987
+ }
45988
+ INTERNAL__appBridgeHandler.invokeAppBridgeMethod(APP_BRIDGE_METHOD_NAME, {}, {
45989
+ onSuccess: function(param) {
45990
+ var items = param.items;
45991
+ return setItemList(items);
45992
+ },
45993
+ onError: function(error) {
45994
+ return console.error("\uBA54\uB274 \uBAA9\uB85D\uC744 \uAC00\uC838\uC624\uB294 \uB370 \uC2E4\uD328\uD588\uC5B4\uC694:", error);
45995
+ }
45996
+ });
45997
+ }, [
45998
+ isBottomSheetSupported
45999
+ ]);
46000
+ var onClickHandler = function() {
46001
+ var _ref = _async_to_generator(function() {
45709
46002
  return __generator(this, function(_state) {
45710
46003
  switch (_state.label) {
45711
46004
  case 0:
45712
- 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;
45713
- logging.show();
46005
+ logging.open();
46006
+ if (!!isBottomSheetSupported) return [
46007
+ 3,
46008
+ 2
46009
+ ];
45714
46010
  return [
45715
46011
  4,
45716
- openConfirm({
45717
- title,
45718
- description,
45719
- leftButton,
45720
- rightButton,
45721
- closeOnDimmerClick: true
45722
- })
45723
- ];
45724
- case 1:
45725
- isConfirmed = _state.sent();
45726
- if (!isConfirmed) {
45727
- logging.close();
45728
- return [
45729
- 2
45730
- ];
45731
- }
45732
- logging.update();
45733
- STORE_SCHEME = getMarketLink();
45734
- openURL("supertoss://web?url=".concat(STORE_SCHEME, "&external=browser"));
45735
- return [
45736
- 2
45737
- ];
45738
- }
45739
- });
45740
- });
45741
- return function(_17) {
45742
- return _ref.apply(this, arguments);
45743
- };
45744
- }(), [
45745
- logging,
45746
- openConfirm
45747
- ]);
45748
- return {
45749
- open: openAppUpdateDialog
45750
- };
45751
- }
45752
- function useAppUpdateDialogLogging() {
45753
- var referrer2 = useReferrer();
45754
- var baseParams = {
45755
- referrer: referrer2,
45756
- app_name: Granite.appName
45757
- };
45758
- var logUpdateClick = function() {
45759
- INTERNAL__module.tossCoreEventLog({
45760
- log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
45761
- log_type: "event",
45762
- params: _object_spread_props(_object_spread({}, baseParams), {
45763
- schema_id: UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID,
45764
- event_type: "click",
45765
- button_type: "update"
45766
- })
45767
- });
45768
- };
45769
- var logCloseClick = function() {
45770
- INTERNAL__module.tossCoreEventLog({
45771
- log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
45772
- log_type: "event",
45773
- params: _object_spread_props(_object_spread({}, baseParams), {
45774
- schema_id: UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID,
45775
- event_type: "click",
45776
- button_type: "close"
45777
- })
45778
- });
45779
- };
45780
- var logDialogShow = function() {
45781
- INTERNAL__module.tossCoreEventLog({
45782
- log_name: UPDATE_DIALOG_LOG_NAME,
45783
- log_type: "popup",
45784
- params: _object_spread_props(_object_spread({}, baseParams), {
45785
- schema_id: UPDATE_DIALOG_SCHEMA_ID
45786
- })
45787
- });
45788
- };
45789
- return {
45790
- update: logUpdateClick,
45791
- close: logCloseClick,
45792
- show: logDialogShow
45793
- };
45794
- }
45795
- function ensureValue(value, name) {
45796
- if (value === void 0) {
45797
- throw new Error("".concat(name, " is required"));
45798
- }
45799
- return value;
45800
- }
45801
- function useMoreButtonBottomSheet() {
45802
- var globals = getAppsInTossGlobals();
45803
- var adaptive = useAdaptive();
45804
- var _useState2 = _sliced_to_array((0, import_react220.useState)([]), 2), itemList = _useState2[0], setItemList = _useState2[1];
45805
- var appUpdateDialog = useAppUpdateDialog();
45806
- var logging = useMoreButtonBottomSheetLogging();
45807
- var overlay = useOverlay();
45808
- var title = ensureValue(globals.brandDisplayName, "displayName");
45809
- var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION.BOTTOM_SHEET);
45810
- var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION.SHARE_LIST_MENU);
45811
- (0, import_react220.useEffect)(function() {
45812
- if (!isBottomSheetSupported) {
45813
- return;
45814
- }
45815
- INTERNAL__appBridgeHandler.invokeAppBridgeMethod(APP_BRIDGE_METHOD_NAME, {}, {
45816
- onSuccess: function(param) {
45817
- var items = param.items;
45818
- return setItemList(items);
45819
- },
45820
- onError: function(error) {
45821
- return console.error("\uBA54\uB274 \uBAA9\uB85D\uC744 \uAC00\uC838\uC624\uB294 \uB370 \uC2E4\uD328\uD588\uC5B4\uC694:", error);
45822
- }
45823
- });
45824
- }, [
45825
- isBottomSheetSupported
45826
- ]);
45827
- var onClickHandler = function() {
45828
- var _ref = _async_to_generator(function() {
45829
- return __generator(this, function(_state) {
45830
- switch (_state.label) {
45831
- case 0:
45832
- logging.open();
45833
- if (!!isBottomSheetSupported) return [
45834
- 3,
45835
- 2
45836
- ];
45837
- return [
45838
- 4,
45839
- appUpdateDialog.open({
45840
- title: "\uC774 \uAE30\uB2A5\uC744 \uC4F0\uB824\uBA74 \uC571 \uC5C5\uB370\uC774\uD2B8\uAC00 \uD544\uC694\uD574\uC694",
45841
- description: "\uBB38\uC758, \uAD8C\uD55C \uC124\uC815, \uC2E0\uACE0 \uB4F1 \uAE30\uB2A5\uC744 \uC4F8 \uC218 \uC788\uC5B4\uC694"
46012
+ appUpdateDialog.open({
46013
+ title: "\uC774 \uAE30\uB2A5\uC744 \uC4F0\uB824\uBA74 \uC571 \uC5C5\uB370\uC774\uD2B8\uAC00 \uD544\uC694\uD574\uC694",
46014
+ description: "\uBB38\uC758, \uAD8C\uD55C \uC124\uC815, \uC2E0\uACE0 \uB4F1 \uAE30\uB2A5\uC744 \uC4F8 \uC218 \uC788\uC5B4\uC694"
45842
46015
  })
45843
46016
  ];
45844
46017
  case 1:
@@ -45926,7 +46099,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45926
46099
  function BottomSheetImpressionArea(param) {
45927
46100
  var children = param.children;
45928
46101
  var logging = useMoreButtonBottomSheetLogging();
45929
- (0, import_react220.useEffect)(function() {
46102
+ (0, import_react224.useEffect)(function() {
45930
46103
  logging.show();
45931
46104
  }, [
45932
46105
  logging
@@ -45947,9 +46120,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45947
46120
  }
45948
46121
  function NavigationBarImpressionArea(param) {
45949
46122
  var children = param.children, withHomeButton = param.withHomeButton;
45950
- var hasLogged = (0, import_react222.useRef)(false);
46123
+ var hasLogged = (0, import_react225.useRef)(false);
45951
46124
  var logging = useNavigationBarLogging();
45952
- (0, import_react222.useEffect)(function() {
46125
+ (0, import_react225.useEffect)(function() {
45953
46126
  if (hasLogged.current === false) {
45954
46127
  logging.navBarImpression({
45955
46128
  home_icon_yn: withHomeButton ? "Y" : "N"
@@ -46011,11 +46184,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46011
46184
  type: "none"
46012
46185
  }
46013
46186
  }),
46014
- /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_react_native218.View, {
46187
+ /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_react_native219.View, {
46015
46188
  style: {
46016
46189
  width: "100%",
46017
46190
  // TODO: UI관련 스타일 설정은 TDS로 이관
46018
- height: import_react_native218.Platform.OS === "ios" ? 44 : 54,
46191
+ height: import_react_native219.Platform.OS === "ios" ? 44 : 54,
46019
46192
  flexDirection: "row",
46020
46193
  alignItems: "center",
46021
46194
  justifyContent: "flex-end",
@@ -46052,7 +46225,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46052
46225
  }
46053
46226
  function GameAppContainer(param) {
46054
46227
  var children = param.children;
46055
- var _useState3 = _sliced_to_array((0, import_react214.useState)(false), 2), isEntryMessageExited = _useState3[0], setIsEntryMessageExited = _useState3[1];
46228
+ var _useState4 = _sliced_to_array((0, import_react214.useState)(false), 2), isEntryMessageExited = _useState4[0], setIsEntryMessageExited = _useState4[1];
46056
46229
  (0, import_react214.useEffect)(function() {
46057
46230
  if (import_react_native205.Platform.OS === "ios") {
46058
46231
  setIosSwipeGestureEnabled({
@@ -46076,7 +46249,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46076
46249
  return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(import_jsx_runtime225.Fragment, {
46077
46250
  children: [
46078
46251
  /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(RNNavigationBar.Game, {}),
46079
- (0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(GameProfile, {
46252
+ (0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(GameInitializer, {
46080
46253
  isReadyForProfileUI: isEntryMessageExited,
46081
46254
  children
46082
46255
  }) : children
@@ -46189,7 +46362,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46189
46362
  var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
46190
46363
  var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
46191
46364
  var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
46192
- var handleGameWebviewClose = (0, import_react225.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
46365
+ var handleGameWebviewClose = (0, import_react228.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
46193
46366
  var isConfirmed;
46194
46367
  return __generator(this, function(_state) {
46195
46368
  switch (_state.label) {
@@ -46230,11 +46403,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46230
46403
  type: "none"
46231
46404
  }
46232
46405
  }),
46233
- /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(import_react_native223.View, {
46406
+ /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(import_react_native224.View, {
46234
46407
  style: {
46235
46408
  width: "100%",
46236
46409
  // TODO: UI관련 스타일 설정은 TDS로 이관
46237
- height: import_react_native223.Platform.OS === "ios" ? 44 : 54,
46410
+ height: import_react_native224.Platform.OS === "ios" ? 44 : 54,
46238
46411
  flexDirection: "row",
46239
46412
  alignItems: "center",
46240
46413
  justifyContent: "flex-end",
@@ -46269,7 +46442,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46269
46442
  var _parsedNavigationBar_withBackButton;
46270
46443
  var withBackButton = (_parsedNavigationBar_withBackButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withBackButton) !== null && _parsedNavigationBar_withBackButton !== void 0 ? _parsedNavigationBar_withBackButton : true;
46271
46444
  var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
46272
- var handleClose = (0, import_react227.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
46445
+ var handleClose = (0, import_react230.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
46273
46446
  var isConfirmed;
46274
46447
  return __generator(this, function(_state) {
46275
46448
  switch (_state.label) {
@@ -46384,8 +46557,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46384
46557
  }
46385
46558
  function useBridgeHandler(param) {
46386
46559
  var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap, originalInjectedJavaScript = param.injectedJavaScript;
46387
- var ref = (0, import_react228.useRef)(null);
46388
- var injectedJavaScript = (0, import_react228.useMemo)(function() {
46560
+ var ref = (0, import_react231.useRef)(null);
46561
+ var injectedJavaScript = (0, import_react231.useMemo)(function() {
46389
46562
  return [
46390
46563
  "window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function(acc, param2) {
46391
46564
  var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
@@ -46412,7 +46585,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46412
46585
  (_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 "));
46413
46586
  };
46414
46587
  };
46415
- var $onMessage = (0, import_react228.useCallback)(
46588
+ var $onMessage = (0, import_react231.useCallback)(
46416
46589
  function() {
46417
46590
  var _ref = _async_to_generator(function(e61) {
46418
46591
  var data, _eventListenerMap_data_functionName, handleOnEvent, handleOnError, remove, key, remove1, _ref_current;
@@ -46525,8 +46698,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46525
46698
  }
46526
46699
  }
46527
46700
  function useWebViewHistory() {
46528
- var _useReducer = _sliced_to_array((0, import_react230.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
46529
- var onNavigationStateChange = (0, import_react230.useCallback)(function(param) {
46701
+ var _useReducer = _sliced_to_array((0, import_react233.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
46702
+ var onNavigationStateChange = (0, import_react233.useCallback)(function(param) {
46530
46703
  var url = param.url, canGoForward2 = param.canGoForward;
46531
46704
  dispatch({
46532
46705
  type: "NAVIGATION_CHANGE",
@@ -46534,7 +46707,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46534
46707
  canGoForward: canGoForward2
46535
46708
  });
46536
46709
  }, []);
46537
- var _useMemo4 = (0, import_react230.useMemo)(function() {
46710
+ var _useMemo4 = (0, import_react233.useMemo)(function() {
46538
46711
  var canBack = state.index > 0;
46539
46712
  var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
46540
46713
  return {
@@ -46558,17 +46731,17 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46558
46731
  var logging = useNavigationBarLogging();
46559
46732
  var openConfirm = useDialog().openConfirm;
46560
46733
  var global2 = getAppsInTossGlobals();
46561
- var addEventListener = (0, import_react229.useCallback)(function(handler) {
46734
+ var addEventListener = (0, import_react232.useCallback)(function(handler) {
46562
46735
  addWebBackEventListener(handler);
46563
46736
  }, [
46564
46737
  addWebBackEventListener
46565
46738
  ]);
46566
- var removeEventListener = (0, import_react229.useCallback)(function(handler) {
46739
+ var removeEventListener = (0, import_react232.useCallback)(function(handler) {
46567
46740
  removeWebBackEventListener(handler);
46568
46741
  }, [
46569
46742
  removeWebBackEventListener
46570
46743
  ]);
46571
- var handleWebBack = (0, import_react229.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
46744
+ var handleWebBack = (0, import_react232.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
46572
46745
  var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current, isConfirmed;
46573
46746
  return __generator(this, function(_state) {
46574
46747
  switch (_state.label) {
@@ -46642,7 +46815,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46642
46815
  openConfirm,
46643
46816
  webViewRef
46644
46817
  ]);
46645
- var handleWebHome = (0, import_react229.useCallback)(function() {
46818
+ var handleWebHome = (0, import_react232.useCallback)(function() {
46646
46819
  var _webViewRef_current;
46647
46820
  logging.homeButtonClick();
46648
46821
  if (hasWebBackEvent) {
@@ -46675,7 +46848,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46675
46848
  logging,
46676
46849
  webViewRef
46677
46850
  ]);
46678
- return (0, import_react229.useMemo)(function() {
46851
+ return (0, import_react232.useMemo)(function() {
46679
46852
  return {
46680
46853
  addEventListener,
46681
46854
  removeEventListener,
@@ -46851,7 +47024,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46851
47024
  var batteryModePreference = param.batteryModePreference, colorPreference = param.colorPreference, locale = param.locale, navbarPreference = param.navbarPreference, pureSafeArea = param.pureSafeArea, safeArea = param.safeArea, safeAreaBottomTransparency = param.safeAreaBottomTransparency;
46852
47025
  var platform = getPlatformOS();
46853
47026
  var appVersion = getTossAppVersion();
46854
- var fontScale = (0, import_react_native226.useWindowDimensions)().fontScale;
47027
+ var fontScale = (0, import_react_native227.useWindowDimensions)().fontScale;
46855
47028
  var platformString = platform === "ios" ? "iPhone" : "Android";
46856
47029
  var fontA11y = mapFontScaleToCategory(fontScale, platform);
46857
47030
  var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
@@ -46917,9 +47090,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46917
47090
  if (!TYPES.includes(type)) {
46918
47091
  throw new Error("Invalid WebView type: '".concat(type, "'"));
46919
47092
  }
46920
- var webViewRef = (0, import_react223.useRef)(null);
47093
+ var webViewRef = (0, import_react226.useRef)(null);
46921
47094
  var webBackHandler = useWebBackHandler(webViewRef);
46922
- var uri = (0, import_react223.useMemo)(function() {
47095
+ var uri = (0, import_react226.useMemo)(function() {
46923
47096
  return getWebViewUri(local);
46924
47097
  }, [
46925
47098
  local
@@ -46929,7 +47102,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46929
47102
  var global2 = getAppsInTossGlobals();
46930
47103
  var topNavigation = useTopNavigation();
46931
47104
  var disableTextSelectionCSS = "\n (function() {\n const style = document.createElement('style');\n style.textContent = '*:not(input):not(textarea) { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }';\n document.head.appendChild(style);\n })();\n ";
46932
- var _useState6 = _sliced_to_array((0, import_react223.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState6[0], setAllowsBackForwardNavigationGestures = _useState6[1];
47105
+ var _useState7 = _sliced_to_array((0, import_react226.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState7[0], setAllowsBackForwardNavigationGestures = _useState7[1];
46933
47106
  var handler = useBridgeHandler({
46934
47107
  onMessage,
46935
47108
  injectedJavaScript: [
@@ -47064,7 +47237,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47064
47237
  completeProductGrant: IAP.completeProductGrant
47065
47238
  })
47066
47239
  });
47067
- var headerPropForExternalWebView = (0, import_react223.useMemo)(function() {
47240
+ var headerPropForExternalWebView = (0, import_react226.useMemo)(function() {
47068
47241
  var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
47069
47242
  var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
47070
47243
  var _parsedNavigationBar_withBackButton;
@@ -47089,14 +47262,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47089
47262
  colorPreference: "light"
47090
47263
  });
47091
47264
  var refs = mergeRefs4(handler.ref, webViewRef);
47092
- (0, import_react223.useEffect)(function() {
47265
+ (0, import_react226.useEffect)(function() {
47093
47266
  var callback = function() {
47094
47267
  webBackHandler.handleWebBack();
47095
47268
  return true;
47096
47269
  };
47097
- import_react_native220.BackHandler.addEventListener("hardwareBackPress", callback);
47270
+ import_react_native221.BackHandler.addEventListener("hardwareBackPress", callback);
47098
47271
  return function() {
47099
- return import_react_native220.BackHandler.removeEventListener("hardwareBackPress", callback);
47272
+ return import_react_native221.BackHandler.removeEventListener("hardwareBackPress", callback);
47100
47273
  };
47101
47274
  }, [
47102
47275
  webBackHandler
@@ -47121,18 +47294,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47121
47294
  (_props_onNavigationStateChange = props.onNavigationStateChange) === null || _props_onNavigationStateChange === void 0 ? void 0 : _props_onNavigationStateChange.call(props, event);
47122
47295
  webBackHandler.onNavigationStateChange(event);
47123
47296
  },
47124
- userAgent: import_react_native220.Platform.OS === "ios" ? userAgent : void 0,
47297
+ userAgent: import_react_native221.Platform.OS === "ios" ? userAgent : void 0,
47125
47298
  sharedCookiesEnabled: true,
47126
47299
  webviewDebuggingEnabled: webViewDebuggingEnabled,
47127
47300
  thirdPartyCookiesEnabled: true,
47128
47301
  onMessage: handler.onMessage,
47129
47302
  injectedJavaScript: handler.injectedJavaScript,
47130
47303
  injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript,
47131
- decelerationRate: import_react_native220.Platform.OS === "ios" ? 1 : void 0,
47304
+ decelerationRate: import_react_native221.Platform.OS === "ios" ? 1 : void 0,
47132
47305
  allowsBackForwardNavigationGestures
47133
47306
  }));
47134
47307
  }
47135
- var import_react_native199, import_react209, import_react210, import_react211, import_react212, import_jsx_runtime217, import_react213, import_react214, import_react_native205, import_react215, import_react_native206, import_react216, import_jsx_runtime218, import_react_native208, import_jsx_runtime219, import_react217, import_react_native210, import_react218, import_react219, import_react220, import_react_native215, import_jsx_runtime220, import_react221, import_jsx_runtime221, import_react222, import_jsx_runtime222, import_jsx_runtime223, import_react_native218, import_jsx_runtime224, import_jsx_runtime225, import_jsx_runtime226, import_react223, import_react_native220, import_react224, import_react_native221, import_react225, import_react_native223, import_jsx_runtime227, import_jsx_runtime228, import_react226, import_react227, import_jsx_runtime229, import_jsx_runtime230, import_react228, import_react229, import_react230, import_react_native226, import_react231, import_react232, import_jsx_runtime231, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __hasOwnProp2, __copyProps2, __reExport2, env, EXIT_IMPRESSION_LOG_NAME, EXIT_IMPRESSION_SCHEMA_ID, ENTRY_APP_EVENT_SCHEMA_ID, AppEvent, UPDATE_SCHEME, GAME_PROFILE_WEBVIEW_URL, GAME_CENTER_MIN_VERSION3, useGameProfileToast, DEFAULT_ERROR, PLAYSTORE_LINK, APPSTORE_LINK, getMarketLink, INTERNAL__onVisibilityChangedByTransparentServiceWeb, openTransparentWebView, useGameCenterProfile, Z_INDEX, GameProfile, overlayStyle, NAVI_BAR_IMPRESSION_SCHEMA_ID, NAVI_BAR_IMPRESSION_LOG_NAME, CLOSE_POPUP_SHOW_SCHEMA_ID, CLOSE_POPUP_SHOW_LOG_NAME, CLOSE_BUTTON_CLICK_SCHEMA_ID, CLOSE_BUTTON_CLICK_LOG_NAME, CLOSE_POPUP_CTA_CLICK_SCHEMA_ID, CLOSE_POPUP_CTA_CLICK_LOG_NAME, HOME_BUTTON_CLICK_SCHEMA_ID, HOME_BUTTON_CLICK_LOG_NAME, BOTTOM_SHEET_SCHEMA_ID, BOTTOM_SHEET_LOG_NAME, BOTTOM_SHEET_OPEN_SCHEMA_ID, BOTTOM_SHEET_OPEN_LOG_NAME, BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID, BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME, BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID, BOTTOM_SHEET_MENU_CLICK_LOG_NAME, SHARE_SCHEME_REFERRER, APP_SHARE_MENU_INFO, UPDATE_DIALOG_SCHEMA_ID, UPDATE_DIALOG_LOG_NAME, UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID, UPDATE_DIALOG_CTA_CLICK_LOG_NAME, APP_BRIDGE_METHOD_NAME, MIN_VERSION, RNNavigationBar, bridge_entry_exports, AppsInToss, GameWebView, PartnerWebView, globalEventListenerMap, INITIAL_STATE, HISTORY_BACK_SCRIPT, HISTORY_HOME_SCRIPT, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId, getReferrer3, trackScreen, operationalEnvironment, TYPES, WEBVIEW_TYPES, Analytics2;
47308
+ var import_react_native199, import_react209, import_react210, import_react211, import_react212, import_jsx_runtime217, import_react213, import_react214, import_react_native205, import_react215, import_react_native207, import_react216, import_react_native209, import_react217, import_react218, import_react219, import_react220, import_jsx_runtime218, import_jsx_runtime219, import_react221, import_react_native212, import_react222, import_react223, import_react224, import_react_native217, import_jsx_runtime220, import_jsx_runtime221, import_react225, import_jsx_runtime222, import_jsx_runtime223, import_react_native219, import_jsx_runtime224, import_jsx_runtime225, import_jsx_runtime226, import_react226, import_react_native221, import_react227, import_react_native222, import_react228, import_react_native224, import_jsx_runtime227, import_jsx_runtime228, import_react229, import_react230, import_jsx_runtime229, import_jsx_runtime230, import_react231, import_react232, import_react233, import_react_native227, import_react234, import_react235, import_jsx_runtime231, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __hasOwnProp2, __copyProps2, __reExport2, env, EXIT_IMPRESSION_LOG_NAME, EXIT_IMPRESSION_SCHEMA_ID, ENTRY_APP_EVENT_SCHEMA_ID, AppEvent, UPDATE_SCHEME, GAME_PROFILE_WEBVIEW_URL, GAME_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, NAVI_BAR_IMPRESSION_SCHEMA_ID, NAVI_BAR_IMPRESSION_LOG_NAME, CLOSE_POPUP_SHOW_SCHEMA_ID, CLOSE_POPUP_SHOW_LOG_NAME, CLOSE_BUTTON_CLICK_SCHEMA_ID, CLOSE_BUTTON_CLICK_LOG_NAME, CLOSE_POPUP_CTA_CLICK_SCHEMA_ID, CLOSE_POPUP_CTA_CLICK_LOG_NAME, HOME_BUTTON_CLICK_SCHEMA_ID, HOME_BUTTON_CLICK_LOG_NAME, BOTTOM_SHEET_SCHEMA_ID, BOTTOM_SHEET_LOG_NAME, BOTTOM_SHEET_OPEN_SCHEMA_ID, BOTTOM_SHEET_OPEN_LOG_NAME, BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID, BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME, BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID, BOTTOM_SHEET_MENU_CLICK_LOG_NAME, SHARE_SCHEME_REFERRER, APP_SHARE_MENU_INFO, APP_BRIDGE_METHOD_NAME, MIN_VERSION, RNNavigationBar, bridge_entry_exports, AppsInToss, GameWebView, PartnerWebView, globalEventListenerMap, INITIAL_STATE, HISTORY_BACK_SCRIPT, HISTORY_HOME_SCRIPT, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId, getReferrer3, trackScreen, operationalEnvironment, TYPES, WEBVIEW_TYPES, Analytics2;
47136
47309
  var init_dist8 = __esm({
47137
47310
  "../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.js"() {
47138
47311
  "use strict";
@@ -47172,55 +47345,59 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47172
47345
  import_react214 = __toESM(require_react(), 1);
47173
47346
  import_react_native205 = __toESM(require_react_native(), 1);
47174
47347
  init_dist6();
47348
+ init_src3();
47175
47349
  init_esm8();
47350
+ init_dist7();
47176
47351
  import_react215 = __toESM(require_react(), 1);
47177
- import_react_native206 = __toESM(require_react_native(), 1);
47352
+ import_react_native207 = __toESM(require_react_native(), 1);
47178
47353
  init_dist6();
47179
47354
  init_src3();
47180
47355
  init_esm8();
47181
- init_dist7();
47182
47356
  import_react216 = __toESM(require_react(), 1);
47357
+ import_react_native209 = __toESM(require_react_native(), 1);
47358
+ init_dist6();
47359
+ import_react217 = __toESM(require_react(), 1);
47360
+ init_src3();
47183
47361
  init_esm8();
47184
- init_private2();
47185
- import_jsx_runtime218 = __toESM(require_jsx_runtime(), 1);
47186
- import_react_native208 = __toESM(require_react_native(), 1);
47362
+ import_react218 = __toESM(require_react(), 1);
47363
+ import_react219 = __toESM(require_react(), 1);
47187
47364
  init_src3();
47188
47365
  init_dist6();
47366
+ init_esm8();
47367
+ init_private2();
47368
+ import_react220 = __toESM(require_react(), 1);
47369
+ import_jsx_runtime218 = __toESM(require_jsx_runtime(), 1);
47189
47370
  import_jsx_runtime219 = __toESM(require_jsx_runtime(), 1);
47190
47371
  init_private2();
47191
- import_react217 = __toESM(require_react(), 1);
47192
- import_react_native210 = __toESM(require_react_native(), 1);
47372
+ import_react221 = __toESM(require_react(), 1);
47373
+ import_react_native212 = __toESM(require_react_native(), 1);
47193
47374
  init_src3();
47194
- import_react218 = __toESM(require_react(), 1);
47375
+ import_react222 = __toESM(require_react(), 1);
47195
47376
  init_esm8();
47196
47377
  init_dist7();
47197
- import_react219 = __toESM(require_react(), 1);
47378
+ import_react223 = __toESM(require_react(), 1);
47198
47379
  init_dist6();
47199
47380
  init_src3();
47200
47381
  init_dist6();
47201
47382
  init_src3();
47202
47383
  init_esm8();
47203
47384
  init_private2();
47204
- import_react220 = __toESM(require_react(), 1);
47385
+ import_react224 = __toESM(require_react(), 1);
47205
47386
  init_dist6();
47206
47387
  init_src3();
47207
47388
  init_esm8();
47208
47389
  init_private2();
47209
- import_react_native215 = __toESM(require_react_native(), 1);
47390
+ import_react_native217 = __toESM(require_react_native(), 1);
47210
47391
  init_dist6();
47211
47392
  init_src3();
47212
47393
  import_jsx_runtime220 = __toESM(require_jsx_runtime(), 1);
47213
- init_dist6();
47214
- init_src3();
47215
- init_esm8();
47216
- import_react221 = __toESM(require_react(), 1);
47217
47394
  import_jsx_runtime221 = __toESM(require_jsx_runtime(), 1);
47218
- import_react222 = __toESM(require_react(), 1);
47395
+ import_react225 = __toESM(require_react(), 1);
47219
47396
  import_jsx_runtime222 = __toESM(require_jsx_runtime(), 1);
47220
47397
  import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
47221
47398
  init_esm8();
47222
47399
  init_private2();
47223
- import_react_native218 = __toESM(require_react_native(), 1);
47400
+ import_react_native219 = __toESM(require_react_native(), 1);
47224
47401
  import_jsx_runtime224 = __toESM(require_jsx_runtime(), 1);
47225
47402
  init_async_bridges();
47226
47403
  init_constant_bridges2();
@@ -47234,40 +47411,40 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47234
47411
  init_src3();
47235
47412
  init_esm8();
47236
47413
  init_private2();
47237
- import_react223 = __toESM(require_react(), 1);
47238
- import_react_native220 = __toESM(require_react_native(), 1);
47414
+ import_react226 = __toESM(require_react(), 1);
47415
+ import_react_native221 = __toESM(require_react_native(), 1);
47239
47416
  init_dist6();
47240
47417
  init_react_native_webview();
47241
- import_react224 = __toESM(require_react(), 1);
47242
- import_react_native221 = __toESM(require_react_native(), 1);
47418
+ import_react227 = __toESM(require_react(), 1);
47419
+ import_react_native222 = __toESM(require_react_native(), 1);
47243
47420
  init_src3();
47244
47421
  init_esm8();
47245
47422
  init_private2();
47246
47423
  init_dist7();
47247
- import_react225 = __toESM(require_react(), 1);
47248
- import_react_native223 = __toESM(require_react_native(), 1);
47424
+ import_react228 = __toESM(require_react(), 1);
47425
+ import_react_native224 = __toESM(require_react_native(), 1);
47249
47426
  import_jsx_runtime227 = __toESM(require_jsx_runtime(), 1);
47250
47427
  import_jsx_runtime228 = __toESM(require_jsx_runtime(), 1);
47251
47428
  init_react_native_webview();
47252
- import_react226 = __toESM(require_react(), 1);
47429
+ import_react229 = __toESM(require_react(), 1);
47253
47430
  init_src3();
47254
47431
  init_esm8();
47255
47432
  init_private2();
47256
47433
  init_dist7();
47257
- import_react227 = __toESM(require_react(), 1);
47434
+ import_react230 = __toESM(require_react(), 1);
47258
47435
  import_jsx_runtime229 = __toESM(require_jsx_runtime(), 1);
47259
47436
  import_jsx_runtime230 = __toESM(require_jsx_runtime(), 1);
47260
- import_react228 = __toESM(require_react(), 1);
47437
+ import_react231 = __toESM(require_react(), 1);
47261
47438
  init_src3();
47262
47439
  init_esm8();
47263
47440
  init_dist7();
47264
- import_react229 = __toESM(require_react(), 1);
47265
- import_react230 = __toESM(require_react(), 1);
47441
+ import_react232 = __toESM(require_react(), 1);
47442
+ import_react233 = __toESM(require_react(), 1);
47266
47443
  init_dist6();
47267
- import_react_native226 = __toESM(require_react_native(), 1);
47444
+ import_react_native227 = __toESM(require_react_native(), 1);
47268
47445
  init_dist6();
47269
- import_react231 = __toESM(require_react(), 1);
47270
- import_react232 = __toESM(require_react(), 1);
47446
+ import_react234 = __toESM(require_react(), 1);
47447
+ import_react235 = __toESM(require_react(), 1);
47271
47448
  init_dist6();
47272
47449
  init_src3();
47273
47450
  import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
@@ -47328,13 +47505,125 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47328
47505
  };
47329
47506
  UPDATE_SCHEME = "servicetoss://update/forced/j?updateType=required";
47330
47507
  GAME_PROFILE_WEBVIEW_URL = "servicetoss://game-center/profile";
47331
- GAME_CENTER_MIN_VERSION3 = {
47332
- android: "5.221.0",
47333
- ios: "5.221.0"
47508
+ GAME_MIN_VERSION = {
47509
+ android: "5.232.0",
47510
+ ios: "5.232.0"
47511
+ };
47512
+ PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
47513
+ APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
47514
+ getMarketLink = function() {
47515
+ return import_react_native209.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
47516
+ };
47517
+ UPDATE_DIALOG_SCHEMA_ID = 1634992;
47518
+ UPDATE_DIALOG_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update";
47519
+ UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID = 1634996;
47520
+ UPDATE_DIALOG_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update::click__cta";
47521
+ DEFAULT_ERROR = {
47522
+ title: "\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",
47523
+ description: "\uBB38\uC81C\uAC00 \uACC4\uC18D\uB418\uBA74 \uD1A0\uC2A4 \uACE0\uAC1D\uC13C\uD130(1599-4905)\uB85C \uBB38\uC758\uD574\uC8FC\uC138\uC694."
47524
+ };
47525
+ useErrorAlert = function() {
47526
+ var openAlert = useDialog().openAlert;
47527
+ var openErrorAlert = (0, import_react218.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
47528
+ return __generator(this, function(_state) {
47529
+ switch (_state.label) {
47530
+ case 0:
47531
+ return [
47532
+ 4,
47533
+ openAlert({
47534
+ title: DEFAULT_ERROR.title,
47535
+ description: DEFAULT_ERROR.description
47536
+ })
47537
+ ];
47538
+ case 1:
47539
+ _state.sent();
47540
+ closeView();
47541
+ return [
47542
+ 2
47543
+ ];
47544
+ }
47545
+ });
47546
+ }), [
47547
+ openAlert
47548
+ ]);
47549
+ return {
47550
+ open: openErrorAlert
47551
+ };
47552
+ };
47553
+ INTERNAL__onVisibilityChangedByTransparentServiceWeb = onVisibilityChangedByTransparentServiceWeb;
47554
+ openTransparentWebView = function(param) {
47555
+ var webUrl = param.webUrl, _param_cleanupWhenDismissed = param.cleanupWhenDismissed, cleanupWhenDismissed = _param_cleanupWhenDismissed === void 0 ? true : _param_cleanupWhenDismissed, onEvent = param.onEvent, onError2 = param.onError, _param_callbackId = param.callbackId, callbackId = _param_callbackId === void 0 ? "fn" : _param_callbackId, params = param.params;
47556
+ var url = new URL("supertoss://transparent-service-web");
47557
+ url.searchParams.set("url", webUrl);
47558
+ url.searchParams.set("onVisibilityChangeCallback", callbackId);
47559
+ Object.entries(params !== null && params !== void 0 ? params : {}).forEach(function(param2) {
47560
+ var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
47561
+ url.searchParams.set(key, value);
47562
+ });
47563
+ var cleanup = INTERNAL__onVisibilityChangedByTransparentServiceWeb({
47564
+ options: {
47565
+ callbackId
47566
+ },
47567
+ onError: function(error) {
47568
+ onError2(error);
47569
+ cleanup();
47570
+ },
47571
+ onEvent: function(value) {
47572
+ onEvent(value);
47573
+ if (cleanupWhenDismissed && value === true) {
47574
+ cleanup();
47575
+ }
47576
+ }
47577
+ });
47578
+ openURL(url.toString());
47579
+ };
47580
+ useTransparentWebview = function() {
47581
+ var _useState = _sliced_to_array((0, import_react219.useState)(false), 2), isWebviewLoading = _useState[0], setIsWebviewLoading = _useState[1];
47582
+ var _useErrorAlert = useErrorAlert(), openErrorAlert = _useErrorAlert.open;
47583
+ var _openTransparentWebview = (0, import_react219.useCallback)(function(param) {
47584
+ var webUrl = param.webUrl, onClose = param.onClose, onError2 = param.onError;
47585
+ if (isWebviewLoading) {
47586
+ return;
47587
+ }
47588
+ setIsWebviewLoading(true);
47589
+ openTransparentWebView({
47590
+ webUrl,
47591
+ onEvent: function() {
47592
+ var _ref = _async_to_generator(function(isClosedTransparentWebView) {
47593
+ return __generator(this, function(_state) {
47594
+ if (isClosedTransparentWebView) {
47595
+ setIsWebviewLoading(false);
47596
+ onClose === null || onClose === void 0 ? void 0 : onClose();
47597
+ }
47598
+ return [
47599
+ 2
47600
+ ];
47601
+ });
47602
+ });
47603
+ return function(isClosedTransparentWebView) {
47604
+ return _ref.apply(this, arguments);
47605
+ };
47606
+ }(),
47607
+ onError: function(error) {
47608
+ setIsWebviewLoading(false);
47609
+ if (onError2) {
47610
+ onError2(error);
47611
+ } else {
47612
+ openErrorAlert();
47613
+ }
47614
+ }
47615
+ });
47616
+ }, [
47617
+ isWebviewLoading,
47618
+ openErrorAlert
47619
+ ]);
47620
+ return {
47621
+ open: _openTransparentWebview
47622
+ };
47334
47623
  };
47335
47624
  useGameProfileToast = function() {
47336
47625
  var overlay = useOverlay();
47337
- var openGameProfileToast = function(nickname, profileImageUri) {
47626
+ var openGameProfileToast = (0, import_react220.useCallback)(function(nickname, profileImageUri) {
47338
47627
  return new Promise(function(resolve) {
47339
47628
  overlay.open(function(param) {
47340
47629
  var isOpen = param.isOpen, close = param.close, exit = param.exit;
@@ -47365,201 +47654,136 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47365
47654
  });
47366
47655
  });
47367
47656
  });
47368
- };
47657
+ }, [
47658
+ overlay
47659
+ ]);
47369
47660
  return {
47370
47661
  openGameProfileToast
47371
47662
  };
47372
47663
  };
47373
- DEFAULT_ERROR = {
47374
- title: "\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",
47375
- description: "\uBB38\uC81C\uAC00 \uACC4\uC18D\uB418\uBA74 \uD1A0\uC2A4 \uACE0\uAC1D\uC13C\uD130(1599-4905)\uB85C \uBB38\uC758\uD574\uC8FC\uC138\uC694."
47376
- };
47377
- PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
47378
- APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
47379
- getMarketLink = function() {
47380
- return import_react_native208.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
47381
- };
47382
- INTERNAL__onVisibilityChangedByTransparentServiceWeb = onVisibilityChangedByTransparentServiceWeb;
47383
- openTransparentWebView = function(param) {
47384
- var webUrl = param.webUrl, _param_cleanupWhenDismissed = param.cleanupWhenDismissed, cleanupWhenDismissed = _param_cleanupWhenDismissed === void 0 ? true : _param_cleanupWhenDismissed, onEvent = param.onEvent, onError2 = param.onError, _param_callbackId = param.callbackId, callbackId = _param_callbackId === void 0 ? "fn" : _param_callbackId, params = param.params;
47385
- var url = new URL("supertoss://transparent-service-web");
47386
- url.searchParams.set("url", webUrl);
47387
- url.searchParams.set("onVisibilityChangeCallback", callbackId);
47388
- Object.entries(params !== null && params !== void 0 ? params : {}).forEach(function(param2) {
47389
- var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
47390
- url.searchParams.set(key, value);
47391
- });
47392
- var cleanup = INTERNAL__onVisibilityChangedByTransparentServiceWeb({
47393
- options: {
47394
- callbackId
47395
- },
47396
- onError: function(error) {
47397
- onError2(error);
47398
- cleanup();
47399
- },
47400
- onEvent: function(value) {
47401
- onEvent(value);
47402
- if (cleanupWhenDismissed && value === true) {
47403
- cleanup();
47404
- }
47405
- }
47406
- });
47407
- openURL(url.toString());
47408
- };
47409
47664
  useGameCenterProfile = function(isReadyForProfileUI) {
47410
- var _useState = _sliced_to_array((0, import_react216.useState)(void 0), 2), profileData = _useState[0], setProfileData = _useState[1];
47411
- var _useState1 = _sliced_to_array((0, import_react216.useState)(true), 2), isProfileDataLoading = _useState1[0], setIsProfileDataLoading = _useState1[1];
47412
- var _useState2 = _sliced_to_array((0, import_react216.useState)(false), 2), isProfileDataRefetching = _useState2[0], setIsProfileDataRefetching = _useState2[1];
47413
- var shouldShowLoadingOverlay = isProfileDataLoading && isReadyForProfileUI;
47665
+ var _useState2 = _sliced_to_array((0, import_react217.useState)(void 0), 2), profileData = _useState2[0], setProfileData = _useState2[1];
47666
+ var _useState21 = _sliced_to_array((0, import_react217.useState)(true), 2), isProfileDataLoading = _useState21[0], setIsProfileDataLoading = _useState21[1];
47667
+ var _useState22 = _sliced_to_array((0, import_react217.useState)(false), 2), isProfileDataRefetching = _useState22[0], setIsProfileDataRefetching = _useState22[1];
47668
+ var shouldShowProfileLoadingOverlay = isProfileDataLoading && isReadyForProfileUI || isProfileDataRefetching;
47414
47669
  var shouldShowProfileNotFoundOverlay = (profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && isReadyForProfileUI && !isProfileDataRefetching;
47415
47670
  var canShowBottomSheetOrToast = !isProfileDataLoading && isReadyForProfileUI;
47416
- var _useState3 = _sliced_to_array((0, import_react216.useState)(false), 2), isWebviewLoading = _useState3[0], setIsWebviewLoading = _useState3[1];
47417
- var isCompletedProfileFlow = (0, import_react216.useRef)(false);
47418
- var _useDialog = useDialog(), openAlert = _useDialog.openAlert, openConfirm = _useDialog.openConfirm;
47419
47671
  var openGameProfileToast = useGameProfileToast().openGameProfileToast;
47420
- var openErrorAlert = (0, import_react216.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
47672
+ var _useErrorAlert = useErrorAlert(), openErrorAlert = _useErrorAlert.open;
47673
+ var _useTransparentWebview = useTransparentWebview(), openTransparentWebView2 = _useTransparentWebview.open;
47674
+ var fetchProfileData = (0, import_react217.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
47675
+ var data, _17;
47421
47676
  return __generator(this, function(_state) {
47422
47677
  switch (_state.label) {
47423
47678
  case 0:
47679
+ _state.trys.push([
47680
+ 0,
47681
+ 2,
47682
+ ,
47683
+ 3
47684
+ ]);
47424
47685
  return [
47425
47686
  4,
47426
- openAlert({
47427
- title: DEFAULT_ERROR.title,
47428
- description: DEFAULT_ERROR.description
47429
- })
47687
+ getGameCenterGameProfile()
47430
47688
  ];
47431
47689
  case 1:
47432
- _state.sent();
47433
- closeView();
47690
+ data = _state.sent();
47691
+ setProfileData(data);
47692
+ setIsProfileDataLoading(false);
47693
+ return [
47694
+ 3,
47695
+ 3
47696
+ ];
47697
+ case 2:
47698
+ _17 = _state.sent();
47699
+ openErrorAlert();
47700
+ setIsProfileDataLoading(false);
47701
+ return [
47702
+ 3,
47703
+ 3
47704
+ ];
47705
+ case 3:
47434
47706
  return [
47435
47707
  2
47436
47708
  ];
47437
47709
  }
47438
47710
  });
47439
47711
  }), [
47440
- openAlert
47441
- ]);
47442
- var openProfileWebview = (0, import_react216.useCallback)(function() {
47443
- if (isWebviewLoading) {
47444
- return;
47445
- }
47446
- setIsWebviewLoading(true);
47447
- openTransparentWebView({
47448
- webUrl: "".concat(GAME_PROFILE_WEBVIEW_URL, "?appName=").concat(getAppName(), "&referrer=appsintoss.").concat(getAppName()),
47449
- onEvent: function() {
47450
- var _ref = _async_to_generator(function(isClosedTransparentWebView) {
47451
- var data, _17;
47452
- return __generator(this, function(_state) {
47453
- switch (_state.label) {
47454
- case 0:
47455
- if (!isClosedTransparentWebView) return [
47456
- 3,
47457
- 4
47458
- ];
47459
- _state.label = 1;
47460
- case 1:
47461
- _state.trys.push([
47462
- 1,
47463
- 3,
47464
- ,
47465
- 4
47466
- ]);
47467
- setIsWebviewLoading(false);
47468
- setIsProfileDataRefetching(true);
47469
- return [
47470
- 4,
47471
- getGameCenterGameProfile()
47472
- ];
47473
- case 2:
47474
- data = _state.sent();
47475
- setProfileData(data);
47476
- setIsProfileDataRefetching(false);
47477
- if ((data === null || data === void 0 ? void 0 : data.statusCode) === "SUCCESS") {
47478
- openGameProfileToast(data.nickname, data.profileImageUri);
47479
- }
47480
- return [
47481
- 3,
47482
- 4
47483
- ];
47484
- case 3:
47485
- _17 = _state.sent();
47486
- setIsProfileDataRefetching(false);
47487
- openErrorAlert();
47488
- return [
47489
- 3,
47490
- 4
47491
- ];
47492
- case 4:
47493
- return [
47494
- 2
47495
- ];
47496
- }
47497
- });
47498
- });
47499
- return function(isClosedTransparentWebView) {
47500
- return _ref.apply(this, arguments);
47501
- };
47502
- }(),
47503
- onError: function() {
47504
- openErrorAlert();
47505
- }
47506
- });
47507
- }, [
47508
- isWebviewLoading,
47509
- openGameProfileToast,
47510
47712
  openErrorAlert
47511
47713
  ]);
47512
- var updateAppToSupportedMinVersion = (0, import_react216.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
47513
- var upddateConfirmDialogLabel, isConfirmed, STORE_SCHEME;
47714
+ var refetchProfileData = (0, import_react217.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
47715
+ var data, _17;
47514
47716
  return __generator(this, function(_state) {
47515
47717
  switch (_state.label) {
47516
47718
  case 0:
47517
- upddateConfirmDialogLabel = {
47518
- title: "".concat(josa(getAppsInTossGlobals().brandDisplayName, "\uC744/\uB97C"), " \uD558\uB824\uBA74 \n\uC571\uC744 \uC5C5\uB370\uC774\uD2B8\uD574\uC8FC\uC138\uC694"),
47519
- leftButton: "\uB2EB\uAE30",
47520
- rightButton: "\uC5C5\uB370\uC774\uD2B8\uD558\uAE30"
47521
- };
47719
+ _state.trys.push([
47720
+ 0,
47721
+ 2,
47722
+ ,
47723
+ 3
47724
+ ]);
47725
+ setIsProfileDataRefetching(true);
47522
47726
  return [
47523
47727
  4,
47524
- openConfirm({
47525
- title: upddateConfirmDialogLabel.title,
47526
- leftButton: upddateConfirmDialogLabel.leftButton,
47527
- rightButton: upddateConfirmDialogLabel.rightButton,
47528
- closeOnDimmerClick: true
47529
- })
47728
+ getGameCenterGameProfile()
47530
47729
  ];
47531
47730
  case 1:
47532
- isConfirmed = _state.sent();
47533
- if (!isConfirmed) {
47534
- closeView();
47535
- return [
47536
- 2
47537
- ];
47731
+ data = _state.sent();
47732
+ setProfileData(data);
47733
+ setIsProfileDataRefetching(false);
47734
+ if ((data === null || data === void 0 ? void 0 : data.statusCode) === "SUCCESS") {
47735
+ openGameProfileToast(data.nickname, data.profileImageUri);
47538
47736
  }
47539
- STORE_SCHEME = getMarketLink();
47540
- openURL("supertoss://web?url=".concat(STORE_SCHEME, "&external=browser"));
47737
+ return [
47738
+ 3,
47739
+ 3
47740
+ ];
47741
+ case 2:
47742
+ _17 = _state.sent();
47743
+ setIsProfileDataRefetching(false);
47744
+ openErrorAlert();
47745
+ return [
47746
+ 3,
47747
+ 3
47748
+ ];
47749
+ case 3:
47541
47750
  return [
47542
47751
  2
47543
47752
  ];
47544
47753
  }
47545
47754
  });
47546
47755
  }), [
47547
- openConfirm
47756
+ openErrorAlert,
47757
+ openGameProfileToast
47758
+ ]);
47759
+ var openProfileWebview = (0, import_react217.useCallback)(function() {
47760
+ openTransparentWebView2({
47761
+ webUrl: "".concat(GAME_PROFILE_WEBVIEW_URL, "?appName=").concat(getAppName(), "&referrer=appsintoss.").concat(getAppName()),
47762
+ onClose: /* @__PURE__ */ _async_to_generator(function() {
47763
+ return __generator(this, function(_state) {
47764
+ refetchProfileData();
47765
+ return [
47766
+ 2
47767
+ ];
47768
+ });
47769
+ })
47770
+ });
47771
+ }, [
47772
+ openTransparentWebView2,
47773
+ refetchProfileData
47548
47774
  ]);
47549
47775
  return {
47550
47776
  profileData,
47551
47777
  isProfileDataLoading,
47552
- isProfileDataRefetching,
47553
- shouldShowLoadingOverlay,
47778
+ shouldShowProfileLoadingOverlay,
47554
47779
  shouldShowProfileNotFoundOverlay,
47555
47780
  canShowBottomSheetOrToast,
47556
- isCompletedProfileFlow,
47557
- updateAppToSupportedMinVersion,
47558
47781
  setIsProfileDataLoading,
47559
47782
  openProfileWebview,
47560
47783
  setProfileData,
47561
47784
  openErrorAlert,
47562
- openGameProfileToast
47785
+ openGameProfileToast,
47786
+ fetchProfileData
47563
47787
  };
47564
47788
  };
47565
47789
  Z_INDEX = {
@@ -47569,40 +47793,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47569
47793
  // 게임을 종료할 수 있는 X 버튼
47570
47794
  CLOSE_BUTTON: 9999
47571
47795
  };
47572
- GameProfile = function(param) {
47796
+ GameInitializer = function(param) {
47573
47797
  var children = param.children, isReadyForProfileUI = param.isReadyForProfileUI;
47574
- var _useGameCenterProfile = useGameCenterProfile(isReadyForProfileUI), profileData = _useGameCenterProfile.profileData, isProfileDataRefetching = _useGameCenterProfile.isProfileDataRefetching, shouldShowLoadingOverlay = _useGameCenterProfile.shouldShowLoadingOverlay, shouldShowProfileNotFoundOverlay = _useGameCenterProfile.shouldShowProfileNotFoundOverlay, canShowBottomSheetOrToast = _useGameCenterProfile.canShowBottomSheetOrToast, isCompletedProfileFlow = _useGameCenterProfile.isCompletedProfileFlow, openProfileWebview = _useGameCenterProfile.openProfileWebview, updateAppToSupportedMinVersion = _useGameCenterProfile.updateAppToSupportedMinVersion, setIsProfileDataLoading = _useGameCenterProfile.setIsProfileDataLoading, setProfileData = _useGameCenterProfile.setProfileData, openErrorAlert = _useGameCenterProfile.openErrorAlert, openGameProfileToast = _useGameCenterProfile.openGameProfileToast;
47798
+ var _useGameCenterProfile = useGameCenterProfile(isReadyForProfileUI), profileData = _useGameCenterProfile.profileData, shouldShowProfileLoadingOverlay = _useGameCenterProfile.shouldShowProfileLoadingOverlay, shouldShowProfileNotFoundOverlay = _useGameCenterProfile.shouldShowProfileNotFoundOverlay, canShowBottomSheetOrToast = _useGameCenterProfile.canShowBottomSheetOrToast, openProfileWebview = _useGameCenterProfile.openProfileWebview, openGameProfileToast = _useGameCenterProfile.openGameProfileToast, fetchProfileData = _useGameCenterProfile.fetchProfileData;
47799
+ var isCompletedFlow = (0, import_react215.useRef)(false);
47800
+ var _useAppUpdateDialog = useAppUpdateDialog(), openAppUpdateDialog = _useAppUpdateDialog.open;
47575
47801
  (0, import_react215.useEffect)(function() {
47576
- try {
47577
- var getProfileData = function() {
47578
- var _ref = _async_to_generator(function() {
47579
- var data;
47580
- return __generator(this, function(_state) {
47581
- switch (_state.label) {
47582
- case 0:
47583
- return [
47584
- 4,
47585
- getGameCenterGameProfile()
47586
- ];
47587
- case 1:
47588
- data = _state.sent();
47589
- setProfileData(data);
47590
- setIsProfileDataLoading(false);
47591
- return [
47592
- 2
47593
- ];
47594
- }
47595
- });
47596
- });
47597
- return function getProfileData2() {
47598
- return _ref.apply(this, arguments);
47599
- };
47600
- }();
47601
- getProfileData();
47602
- } catch (_17) {
47603
- openErrorAlert();
47604
- setIsProfileDataLoading(false);
47605
- }
47802
+ fetchProfileData();
47606
47803
  }, []);
47607
47804
  (0, import_react215.useEffect)(function() {
47608
47805
  var handleGameProfileFlow = function() {
@@ -47613,14 +47810,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47613
47810
  2
47614
47811
  ];
47615
47812
  }
47616
- if (isCompletedProfileFlow.current) {
47813
+ if (isCompletedFlow.current) {
47617
47814
  return [
47618
47815
  2
47619
47816
  ];
47620
47817
  }
47621
- isCompletedProfileFlow.current = true;
47622
- if (!isMinVersionSupported(GAME_CENTER_MIN_VERSION3)) {
47623
- updateAppToSupportedMinVersion();
47818
+ isCompletedFlow.current = true;
47819
+ if (!isMinVersionSupported(GAME_MIN_VERSION)) {
47820
+ openAppUpdateDialog({
47821
+ title: "".concat(josa(getAppsInTossGlobals().brandDisplayName, "\uC744/\uB97C"), " \uD558\uB824\uBA74 \n\uC571\uC744 \uC5C5\uB370\uC774\uD2B8\uD574\uC8FC\uC138\uC694"),
47822
+ onDismiss: function() {
47823
+ closeView();
47824
+ }
47825
+ });
47624
47826
  return [
47625
47827
  2
47626
47828
  ];
@@ -47646,42 +47848,47 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47646
47848
  handleGameProfileFlow();
47647
47849
  }, [
47648
47850
  canShowBottomSheetOrToast,
47649
- isCompletedProfileFlow,
47851
+ isCompletedFlow,
47852
+ openAppUpdateDialog,
47650
47853
  openGameProfileToast,
47651
47854
  openProfileWebview,
47652
- profileData,
47653
- updateAppToSupportedMinVersion
47855
+ profileData
47654
47856
  ]);
47655
- if (!isMinVersionSupported(GAME_CENTER_MIN_VERSION3)) {
47857
+ if (!isMinVersionSupported(GAME_MIN_VERSION)) {
47656
47858
  return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
47657
47859
  children: [
47658
- /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.View, {
47860
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.View, {
47659
47861
  style: {
47660
47862
  flex: 1,
47661
47863
  position: "relative"
47662
47864
  },
47663
47865
  children
47664
47866
  }),
47665
- /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.Pressable, {
47867
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.Pressable, {
47666
47868
  style: _object_spread({}, overlayStyle),
47667
47869
  onPress: function() {
47668
- updateAppToSupportedMinVersion();
47870
+ openAppUpdateDialog({
47871
+ title: "".concat(josa(getAppsInTossGlobals().brandDisplayName, "\uC744/\uB97C"), " \uD558\uB824\uBA74 \n\uC571\uC744 \uC5C5\uB370\uC774\uD2B8\uD574\uC8FC\uC138\uC694"),
47872
+ onDismiss: function() {
47873
+ closeView();
47874
+ }
47875
+ });
47669
47876
  }
47670
47877
  })
47671
47878
  ]
47672
47879
  });
47673
47880
  }
47674
- if (shouldShowLoadingOverlay || isProfileDataRefetching) {
47881
+ if (shouldShowProfileLoadingOverlay) {
47675
47882
  return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
47676
47883
  children: [
47677
- /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.View, {
47884
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.View, {
47678
47885
  style: {
47679
47886
  flex: 1,
47680
47887
  position: "relative"
47681
47888
  },
47682
47889
  children
47683
47890
  }),
47684
- /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.View, {
47891
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.View, {
47685
47892
  style: _object_spread_props(_object_spread({}, overlayStyle), {
47686
47893
  justifyContent: "center",
47687
47894
  alignItems: "center",
@@ -47698,14 +47905,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47698
47905
  if (shouldShowProfileNotFoundOverlay) {
47699
47906
  return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
47700
47907
  children: [
47701
- /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.View, {
47908
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.View, {
47702
47909
  style: {
47703
47910
  flex: 1,
47704
47911
  position: "relative"
47705
47912
  },
47706
47913
  children
47707
47914
  }),
47708
- shouldShowProfileNotFoundOverlay && /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.Pressable, {
47915
+ shouldShowProfileNotFoundOverlay && /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.Pressable, {
47709
47916
  style: _object_spread({}, overlayStyle),
47710
47917
  onPress: function() {
47711
47918
  openProfileWebview();
@@ -47715,7 +47922,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47715
47922
  });
47716
47923
  }
47717
47924
  return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_jsx_runtime219.Fragment, {
47718
- children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.View, {
47925
+ children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.View, {
47719
47926
  style: {
47720
47927
  flex: 1,
47721
47928
  position: "relative"
@@ -47755,10 +47962,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47755
47962
  contactItemName: "\uACF5\uC720\uD558\uAE30",
47756
47963
  contactIconUrl: "https://static.toss.im/icons/png/4x/icon-share-dots-mono.png"
47757
47964
  };
47758
- UPDATE_DIALOG_SCHEMA_ID = 1634992;
47759
- UPDATE_DIALOG_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update";
47760
- UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID = 1634996;
47761
- UPDATE_DIALOG_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update::click__cta";
47762
47965
  APP_BRIDGE_METHOD_NAME = "getMiniAppsSupportContact";
47763
47966
  MIN_VERSION = {
47764
47967
  BOTTOM_SHEET: {
@@ -47781,10 +47984,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47781
47984
  AppsInToss = {
47782
47985
  registerApp
47783
47986
  };
47784
- GameWebView = /* @__PURE__ */ (0, import_react224.forwardRef)(function GameWebView2(props, ref) {
47785
- var _useState4 = _sliced_to_array((0, import_react224.useState)(false), 2), isEntryMessageExited = _useState4[0], setIsEntryMessageExited = _useState4[1];
47786
- (0, import_react224.useEffect)(function() {
47787
- if (import_react_native221.Platform.OS === "ios") {
47987
+ GameWebView = /* @__PURE__ */ (0, import_react227.forwardRef)(function GameWebView2(props, ref) {
47988
+ var _useState5 = _sliced_to_array((0, import_react227.useState)(false), 2), isEntryMessageExited = _useState5[0], setIsEntryMessageExited = _useState5[1];
47989
+ (0, import_react227.useEffect)(function() {
47990
+ if (import_react_native222.Platform.OS === "ios") {
47788
47991
  setIosSwipeGestureEnabled({
47789
47992
  isEnabled: false
47790
47993
  });
@@ -47796,7 +47999,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47796
47999
  }
47797
48000
  return;
47798
48001
  }, []);
47799
- (0, import_react224.useEffect)(function() {
48002
+ (0, import_react227.useEffect)(function() {
47800
48003
  appsInTossEvent.addEventListener("entryMessageExited", {
47801
48004
  onEvent: function() {
47802
48005
  setIsEntryMessageExited(true);
@@ -47806,7 +48009,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47806
48009
  return /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(import_jsx_runtime228.Fragment, {
47807
48010
  children: [
47808
48011
  /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(GameWebviewNavigationBar, {}),
47809
- getOperationalEnvironment() === "toss" ? /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(GameProfile, {
48012
+ getOperationalEnvironment() === "toss" ? /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(GameInitializer, {
47810
48013
  isReadyForProfileUI: isEntryMessageExited,
47811
48014
  children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(react_native_webview_exports.WebView, _object_spread({
47812
48015
  ref
@@ -47817,7 +48020,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47817
48020
  ]
47818
48021
  });
47819
48022
  });
47820
- PartnerWebView = /* @__PURE__ */ (0, import_react226.forwardRef)(function PartnerWebViewScreen(_param, ref) {
48023
+ PartnerWebView = /* @__PURE__ */ (0, import_react229.forwardRef)(function PartnerWebViewScreen(_param, ref) {
47821
48024
  var onBackButtonClick = _param.onBackButtonClick, onHomeButtonClick = _param.onHomeButtonClick, webViewProps = _object_without_properties(_param, [
47822
48025
  "onBackButtonClick",
47823
48026
  "onHomeButtonClick"
@@ -47950,7 +48153,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47950
48153
  }
47951
48154
  });
47952
48155
  function Index() {
47953
- return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(import_react_native228.View, {
48156
+ return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(import_react_native229.View, {
47954
48157
  style: {
47955
48158
  flex: 1
47956
48159
  },
@@ -47972,13 +48175,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47972
48175
  })
47973
48176
  });
47974
48177
  }
47975
- var import_jsx_runtime232, import_react_native228;
48178
+ var import_jsx_runtime232, import_react_native229;
47976
48179
  var init_pages = __esm({
47977
48180
  "react-native/pages/index.tsx"() {
47978
48181
  "use strict";
47979
48182
  import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
47980
48183
  init_dist8();
47981
- import_react_native228 = __toESM(require_react_native(), 1);
48184
+ import_react_native229 = __toESM(require_react_native(), 1);
47982
48185
  }
47983
48186
  });
47984
48187