@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.
@@ -44127,7 +44127,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44127
44127
  });
44128
44128
 
44129
44129
  // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/constants.ts
44130
- var GAME_CENTER_MIN_VERSION2;
44130
+ var GAME_CENTER_MIN_VERSION2, GAME_USER_KEY_MIN_VERSION, GAME_PROMOTION_REWARD_MIN_VERSION;
44131
44131
  var init_constants13 = __esm({
44132
44132
  "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/constants.ts"() {
44133
44133
  "use strict";
@@ -44135,6 +44135,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44135
44135
  android: "5.221.0",
44136
44136
  ios: "5.221.0"
44137
44137
  };
44138
+ GAME_USER_KEY_MIN_VERSION = {
44139
+ android: "5.232.0",
44140
+ ios: "5.232.0"
44141
+ };
44142
+ GAME_PROMOTION_REWARD_MIN_VERSION = {
44143
+ android: "5.232.0",
44144
+ ios: "5.232.0"
44145
+ };
44138
44146
  }
44139
44147
  });
44140
44148
 
@@ -44243,6 +44251,160 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44243
44251
  }
44244
44252
  });
44245
44253
 
44254
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getUserKeyForGame.ts
44255
+ function getUserKeyForGame() {
44256
+ return _getUserKeyForGame.apply(this, arguments);
44257
+ }
44258
+ function _getUserKeyForGame() {
44259
+ _getUserKeyForGame = _async_to_generator(function() {
44260
+ var isSupported, response, _17;
44261
+ return __generator(this, function(_state) {
44262
+ switch (_state.label) {
44263
+ case 0:
44264
+ isSupported = isMinVersionSupported2(GAME_USER_KEY_MIN_VERSION);
44265
+ if (!isSupported) {
44266
+ return [
44267
+ 2
44268
+ ];
44269
+ }
44270
+ _state.label = 1;
44271
+ case 1:
44272
+ _state.trys.push([
44273
+ 1,
44274
+ 3,
44275
+ ,
44276
+ 4
44277
+ ]);
44278
+ return [
44279
+ 4,
44280
+ AppsInTossModule2.getUserKeyForGame({})
44281
+ ];
44282
+ case 2:
44283
+ response = _state.sent();
44284
+ if (response.type === "HASH") {
44285
+ return [
44286
+ 2,
44287
+ response
44288
+ ];
44289
+ }
44290
+ if (response.type === "NOT_AVAILABLE") {
44291
+ return [
44292
+ 2,
44293
+ "INVALID_CATEGORY"
44294
+ ];
44295
+ }
44296
+ return [
44297
+ 2,
44298
+ "ERROR"
44299
+ ];
44300
+ case 3:
44301
+ _17 = _state.sent();
44302
+ return [
44303
+ 2,
44304
+ "ERROR"
44305
+ ];
44306
+ case 4:
44307
+ return [
44308
+ 2
44309
+ ];
44310
+ }
44311
+ });
44312
+ });
44313
+ return _getUserKeyForGame.apply(this, arguments);
44314
+ }
44315
+ var init_getUserKeyForGame = __esm({
44316
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/getUserKeyForGame.ts"() {
44317
+ "use strict";
44318
+ init_async_to_generator();
44319
+ init_ts_generator();
44320
+ init_AppsInTossModule();
44321
+ init_isMinVersionSupported();
44322
+ init_constants13();
44323
+ }
44324
+ });
44325
+
44326
+ // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/grantPromotionRewardForGame.ts
44327
+ function isGrantPromotionRewardForGameError(error) {
44328
+ 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";
44329
+ }
44330
+ function grantPromotionRewardForGame(_17) {
44331
+ return _grantPromotionRewardForGame.apply(this, arguments);
44332
+ }
44333
+ function _grantPromotionRewardForGame() {
44334
+ _grantPromotionRewardForGame = _async_to_generator(function(param) {
44335
+ var params, isSupported, response, error;
44336
+ return __generator(this, function(_state) {
44337
+ switch (_state.label) {
44338
+ case 0:
44339
+ params = param.params;
44340
+ isSupported = isMinVersionSupported2(GAME_PROMOTION_REWARD_MIN_VERSION);
44341
+ if (!isSupported) {
44342
+ return [
44343
+ 2
44344
+ ];
44345
+ }
44346
+ _state.label = 1;
44347
+ case 1:
44348
+ _state.trys.push([
44349
+ 1,
44350
+ 3,
44351
+ ,
44352
+ 4
44353
+ ]);
44354
+ return [
44355
+ 4,
44356
+ AppsInTossModule2.grantPromotionRewardForGame({
44357
+ params
44358
+ })
44359
+ ];
44360
+ case 2:
44361
+ response = _state.sent();
44362
+ if (response.key) {
44363
+ return [
44364
+ 2,
44365
+ response
44366
+ ];
44367
+ }
44368
+ return [
44369
+ 2,
44370
+ "ERROR"
44371
+ ];
44372
+ case 3:
44373
+ error = _state.sent();
44374
+ if (isGrantPromotionRewardForGameError(error)) {
44375
+ return [
44376
+ 2,
44377
+ {
44378
+ errorCode: error.code,
44379
+ message: error.message
44380
+ }
44381
+ ];
44382
+ }
44383
+ return [
44384
+ 2,
44385
+ "ERROR"
44386
+ ];
44387
+ case 4:
44388
+ return [
44389
+ 2
44390
+ ];
44391
+ }
44392
+ });
44393
+ });
44394
+ return _grantPromotionRewardForGame.apply(this, arguments);
44395
+ }
44396
+ var init_grantPromotionRewardForGame = __esm({
44397
+ "../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/AppsInTossModule/native-modules/grantPromotionRewardForGame.ts"() {
44398
+ "use strict";
44399
+ init_async_to_generator();
44400
+ init_type_of();
44401
+ init_ts_generator();
44402
+ init_AppsInTossModule();
44403
+ init_isMinVersionSupported();
44404
+ init_constants13();
44405
+ }
44406
+ });
44407
+
44246
44408
  // ../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-86e9653158/1/apps-in-toss-packages/native-modules/src/async-bridges.ts
44247
44409
  var async_bridges_exports = {};
44248
44410
  __export(async_bridges_exports, {
@@ -44288,6 +44450,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44288
44450
  getTossShareLink: function() {
44289
44451
  return getTossShareLink;
44290
44452
  },
44453
+ getUserKeyForGame: function() {
44454
+ return getUserKeyForGame;
44455
+ },
44456
+ grantPromotionRewardForGame: function() {
44457
+ return grantPromotionRewardForGame;
44458
+ },
44291
44459
  openCamera: function() {
44292
44460
  return openCamera2;
44293
44461
  },
@@ -44358,6 +44526,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
44358
44526
  init_getGameCenterGameProfile();
44359
44527
  init_openGameCenterLeaderboard();
44360
44528
  init_submitGameCenterLeaderBoardScore();
44529
+ init_getUserKeyForGame();
44530
+ init_grantPromotionRewardForGame();
44361
44531
  }
44362
44532
  });
44363
44533
 
@@ -45193,6 +45363,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45193
45363
  init_openGameCenterLeaderboard();
45194
45364
  init_getGameCenterGameProfile();
45195
45365
  init_submitGameCenterLeaderBoardScore();
45366
+ init_getUserKeyForGame();
45367
+ init_grantPromotionRewardForGame();
45196
45368
  init_contactsViral();
45197
45369
  init_appsInTossSignTossCert();
45198
45370
  }
@@ -45389,15 +45561,108 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45389
45561
  });
45390
45562
  }, []);
45391
45563
  }
45564
+ function useAppUpdateDialog() {
45565
+ var openConfirm = useDialog().openConfirm;
45566
+ var logging = useAppUpdateDialogLogging();
45567
+ var openAppUpdateDialog = (0, import_react215.useCallback)(function() {
45568
+ var _ref = _async_to_generator(function(param) {
45569
+ var title, description, _param_leftButton, leftButton, _param_rightButton, rightButton, onDismiss, isConfirmed, STORE_SCHEME;
45570
+ return __generator(this, function(_state) {
45571
+ switch (_state.label) {
45572
+ case 0:
45573
+ 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;
45574
+ logging.show();
45575
+ return [
45576
+ 4,
45577
+ openConfirm({
45578
+ title,
45579
+ description,
45580
+ leftButton,
45581
+ rightButton,
45582
+ closeOnDimmerClick: true
45583
+ })
45584
+ ];
45585
+ case 1:
45586
+ isConfirmed = _state.sent();
45587
+ if (!isConfirmed) {
45588
+ logging.close();
45589
+ onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
45590
+ return [
45591
+ 2
45592
+ ];
45593
+ }
45594
+ logging.update();
45595
+ STORE_SCHEME = getMarketLink();
45596
+ openURL("supertoss://web?url=".concat(STORE_SCHEME, "&external=browser"));
45597
+ return [
45598
+ 2
45599
+ ];
45600
+ }
45601
+ });
45602
+ });
45603
+ return function(_17) {
45604
+ return _ref.apply(this, arguments);
45605
+ };
45606
+ }(), [
45607
+ logging,
45608
+ openConfirm
45609
+ ]);
45610
+ return {
45611
+ open: openAppUpdateDialog
45612
+ };
45613
+ }
45614
+ function useAppUpdateDialogLogging() {
45615
+ var referrer2 = useReferrer();
45616
+ var baseParams = {
45617
+ referrer: referrer2,
45618
+ app_name: Granite.appName
45619
+ };
45620
+ var logUpdateClick = function() {
45621
+ INTERNAL__module.tossCoreEventLog({
45622
+ log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
45623
+ log_type: "event",
45624
+ params: _object_spread_props(_object_spread({}, baseParams), {
45625
+ schema_id: UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID,
45626
+ event_type: "click",
45627
+ button_type: "update"
45628
+ })
45629
+ });
45630
+ };
45631
+ var logCloseClick = function() {
45632
+ INTERNAL__module.tossCoreEventLog({
45633
+ log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
45634
+ log_type: "event",
45635
+ params: _object_spread_props(_object_spread({}, baseParams), {
45636
+ schema_id: UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID,
45637
+ event_type: "click",
45638
+ button_type: "close"
45639
+ })
45640
+ });
45641
+ };
45642
+ var logDialogShow = function() {
45643
+ INTERNAL__module.tossCoreEventLog({
45644
+ log_name: UPDATE_DIALOG_LOG_NAME,
45645
+ log_type: "popup",
45646
+ params: _object_spread_props(_object_spread({}, baseParams), {
45647
+ schema_id: UPDATE_DIALOG_SCHEMA_ID
45648
+ })
45649
+ });
45650
+ };
45651
+ return {
45652
+ update: logUpdateClick,
45653
+ close: logCloseClick,
45654
+ show: logDialogShow
45655
+ };
45656
+ }
45392
45657
  function useHardwareBackPress(handler) {
45393
- (0, import_react216.useEffect)(function() {
45658
+ (0, import_react220.useEffect)(function() {
45394
45659
  var handleBackPress = function() {
45395
45660
  handler();
45396
45661
  return true;
45397
45662
  };
45398
- import_react_native210.BackHandler.addEventListener("hardwareBackPress", handleBackPress);
45663
+ import_react_native212.BackHandler.addEventListener("hardwareBackPress", handleBackPress);
45399
45664
  return function() {
45400
- return import_react_native210.BackHandler.removeEventListener("hardwareBackPress", handleBackPress);
45665
+ return import_react_native212.BackHandler.removeEventListener("hardwareBackPress", handleBackPress);
45401
45666
  };
45402
45667
  }, [
45403
45668
  handler
@@ -45406,7 +45671,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45406
45671
  function useCloseConfirm() {
45407
45672
  var brandDisplayName = getAppsInTossGlobals().brandDisplayName;
45408
45673
  var openConfirm = useDialog().openConfirm;
45409
- return (0, import_react218.useCallback)(function() {
45674
+ return (0, import_react222.useCallback)(function() {
45410
45675
  var _ref = _async_to_generator(function(param) {
45411
45676
  var onEntered;
45412
45677
  return __generator(this, function(_state) {
@@ -45509,7 +45774,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45509
45774
  var navigation = useNavigation();
45510
45775
  var closeConfirm = useCloseConfirm();
45511
45776
  var captureExitLog = useCaptureExitLog().captureExitLog;
45512
- return (0, import_react217.useMemo)(function() {
45777
+ return (0, import_react221.useMemo)(function() {
45513
45778
  var close = function() {
45514
45779
  var _ref = _async_to_generator(function() {
45515
45780
  var hasConfirmed;
@@ -45683,7 +45948,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45683
45948
  logging.menuClick({
45684
45949
  title: APP_SHARE_MENU_INFO.contactItemName
45685
45950
  });
45686
- import_react_native215.NativeModules.AppsInTossModule.shareWithScheme({
45951
+ import_react_native217.NativeModules.AppsInTossModule.shareWithScheme({
45687
45952
  params: {
45688
45953
  schemeURL: schemeForShare
45689
45954
  }
@@ -45691,145 +45956,53 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45691
45956
  }
45692
45957
  });
45693
45958
  }
45694
- function useAppUpdateDialog() {
45695
- var openConfirm = useDialog().openConfirm;
45696
- var logging = useAppUpdateDialogLogging();
45697
- var openAppUpdateDialog = (0, import_react220.useCallback)(function() {
45698
- var _ref = _async_to_generator(function(param) {
45699
- var title, description, _param_leftButton, leftButton, _param_rightButton, rightButton, isConfirmed, STORE_SCHEME;
45959
+ function ensureValue(value, name) {
45960
+ if (value === void 0) {
45961
+ throw new Error("".concat(name, " is required"));
45962
+ }
45963
+ return value;
45964
+ }
45965
+ function useMoreButtonBottomSheet() {
45966
+ var globals = getAppsInTossGlobals();
45967
+ var adaptive = useAdaptive();
45968
+ var _useState3 = _sliced_to_array((0, import_react223.useState)([]), 2), itemList = _useState3[0], setItemList = _useState3[1];
45969
+ var appUpdateDialog = useAppUpdateDialog();
45970
+ var logging = useMoreButtonBottomSheetLogging();
45971
+ var overlay = useOverlay();
45972
+ var title = ensureValue(globals.brandDisplayName, "displayName");
45973
+ var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION.BOTTOM_SHEET);
45974
+ var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION.SHARE_LIST_MENU);
45975
+ (0, import_react223.useEffect)(function() {
45976
+ if (!isBottomSheetSupported) {
45977
+ return;
45978
+ }
45979
+ INTERNAL__appBridgeHandler.invokeAppBridgeMethod(APP_BRIDGE_METHOD_NAME, {}, {
45980
+ onSuccess: function(param) {
45981
+ var items = param.items;
45982
+ return setItemList(items);
45983
+ },
45984
+ onError: function(error) {
45985
+ return console.error("\uBA54\uB274 \uBAA9\uB85D\uC744 \uAC00\uC838\uC624\uB294 \uB370 \uC2E4\uD328\uD588\uC5B4\uC694:", error);
45986
+ }
45987
+ });
45988
+ }, [
45989
+ isBottomSheetSupported
45990
+ ]);
45991
+ var onClickHandler = function() {
45992
+ var _ref = _async_to_generator(function() {
45700
45993
  return __generator(this, function(_state) {
45701
45994
  switch (_state.label) {
45702
45995
  case 0:
45703
- 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;
45704
- logging.show();
45996
+ logging.open();
45997
+ if (!!isBottomSheetSupported) return [
45998
+ 3,
45999
+ 2
46000
+ ];
45705
46001
  return [
45706
46002
  4,
45707
- openConfirm({
45708
- title,
45709
- description,
45710
- leftButton,
45711
- rightButton,
45712
- closeOnDimmerClick: true
45713
- })
45714
- ];
45715
- case 1:
45716
- isConfirmed = _state.sent();
45717
- if (!isConfirmed) {
45718
- logging.close();
45719
- return [
45720
- 2
45721
- ];
45722
- }
45723
- logging.update();
45724
- STORE_SCHEME = getMarketLink();
45725
- openURL("supertoss://web?url=".concat(STORE_SCHEME, "&external=browser"));
45726
- return [
45727
- 2
45728
- ];
45729
- }
45730
- });
45731
- });
45732
- return function(_17) {
45733
- return _ref.apply(this, arguments);
45734
- };
45735
- }(), [
45736
- logging,
45737
- openConfirm
45738
- ]);
45739
- return {
45740
- open: openAppUpdateDialog
45741
- };
45742
- }
45743
- function useAppUpdateDialogLogging() {
45744
- var referrer2 = useReferrer();
45745
- var baseParams = {
45746
- referrer: referrer2,
45747
- app_name: Granite.appName
45748
- };
45749
- var logUpdateClick = function() {
45750
- INTERNAL__module.tossCoreEventLog({
45751
- log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
45752
- log_type: "event",
45753
- params: _object_spread_props(_object_spread({}, baseParams), {
45754
- schema_id: UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID,
45755
- event_type: "click",
45756
- button_type: "update"
45757
- })
45758
- });
45759
- };
45760
- var logCloseClick = function() {
45761
- INTERNAL__module.tossCoreEventLog({
45762
- log_name: UPDATE_DIALOG_CTA_CLICK_LOG_NAME,
45763
- log_type: "event",
45764
- params: _object_spread_props(_object_spread({}, baseParams), {
45765
- schema_id: UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID,
45766
- event_type: "click",
45767
- button_type: "close"
45768
- })
45769
- });
45770
- };
45771
- var logDialogShow = function() {
45772
- INTERNAL__module.tossCoreEventLog({
45773
- log_name: UPDATE_DIALOG_LOG_NAME,
45774
- log_type: "popup",
45775
- params: _object_spread_props(_object_spread({}, baseParams), {
45776
- schema_id: UPDATE_DIALOG_SCHEMA_ID
45777
- })
45778
- });
45779
- };
45780
- return {
45781
- update: logUpdateClick,
45782
- close: logCloseClick,
45783
- show: logDialogShow
45784
- };
45785
- }
45786
- function ensureValue(value, name) {
45787
- if (value === void 0) {
45788
- throw new Error("".concat(name, " is required"));
45789
- }
45790
- return value;
45791
- }
45792
- function useMoreButtonBottomSheet() {
45793
- var globals = getAppsInTossGlobals();
45794
- var adaptive = useAdaptive();
45795
- var _useState2 = _sliced_to_array((0, import_react219.useState)([]), 2), itemList = _useState2[0], setItemList = _useState2[1];
45796
- var appUpdateDialog = useAppUpdateDialog();
45797
- var logging = useMoreButtonBottomSheetLogging();
45798
- var overlay = useOverlay();
45799
- var title = ensureValue(globals.brandDisplayName, "displayName");
45800
- var isBottomSheetSupported = isMinVersionSupported(MIN_VERSION.BOTTOM_SHEET);
45801
- var isShareListMenuSupported = isMinVersionSupported(MIN_VERSION.SHARE_LIST_MENU);
45802
- (0, import_react219.useEffect)(function() {
45803
- if (!isBottomSheetSupported) {
45804
- return;
45805
- }
45806
- INTERNAL__appBridgeHandler.invokeAppBridgeMethod(APP_BRIDGE_METHOD_NAME, {}, {
45807
- onSuccess: function(param) {
45808
- var items = param.items;
45809
- return setItemList(items);
45810
- },
45811
- onError: function(error) {
45812
- return console.error("\uBA54\uB274 \uBAA9\uB85D\uC744 \uAC00\uC838\uC624\uB294 \uB370 \uC2E4\uD328\uD588\uC5B4\uC694:", error);
45813
- }
45814
- });
45815
- }, [
45816
- isBottomSheetSupported
45817
- ]);
45818
- var onClickHandler = function() {
45819
- var _ref = _async_to_generator(function() {
45820
- return __generator(this, function(_state) {
45821
- switch (_state.label) {
45822
- case 0:
45823
- logging.open();
45824
- if (!!isBottomSheetSupported) return [
45825
- 3,
45826
- 2
45827
- ];
45828
- return [
45829
- 4,
45830
- appUpdateDialog.open({
45831
- title: "\uC774 \uAE30\uB2A5\uC744 \uC4F0\uB824\uBA74 \uC571 \uC5C5\uB370\uC774\uD2B8\uAC00 \uD544\uC694\uD574\uC694",
45832
- description: "\uBB38\uC758, \uAD8C\uD55C \uC124\uC815, \uC2E0\uACE0 \uB4F1 \uAE30\uB2A5\uC744 \uC4F8 \uC218 \uC788\uC5B4\uC694"
46003
+ appUpdateDialog.open({
46004
+ title: "\uC774 \uAE30\uB2A5\uC744 \uC4F0\uB824\uBA74 \uC571 \uC5C5\uB370\uC774\uD2B8\uAC00 \uD544\uC694\uD574\uC694",
46005
+ description: "\uBB38\uC758, \uAD8C\uD55C \uC124\uC815, \uC2E0\uACE0 \uB4F1 \uAE30\uB2A5\uC744 \uC4F8 \uC218 \uC788\uC5B4\uC694"
45833
46006
  })
45834
46007
  ];
45835
46008
  case 1:
@@ -45917,7 +46090,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45917
46090
  function BottomSheetImpressionArea(param) {
45918
46091
  var children = param.children;
45919
46092
  var logging = useMoreButtonBottomSheetLogging();
45920
- (0, import_react219.useEffect)(function() {
46093
+ (0, import_react223.useEffect)(function() {
45921
46094
  logging.show();
45922
46095
  }, [
45923
46096
  logging
@@ -45938,9 +46111,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
45938
46111
  }
45939
46112
  function NavigationBarImpressionArea(param) {
45940
46113
  var children = param.children, withHomeButton = param.withHomeButton;
45941
- var hasLogged = (0, import_react221.useRef)(false);
46114
+ var hasLogged = (0, import_react224.useRef)(false);
45942
46115
  var logging = useNavigationBarLogging();
45943
- (0, import_react221.useEffect)(function() {
46116
+ (0, import_react224.useEffect)(function() {
45944
46117
  if (hasLogged.current === false) {
45945
46118
  logging.navBarImpression({
45946
46119
  home_icon_yn: withHomeButton ? "Y" : "N"
@@ -46002,11 +46175,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46002
46175
  type: "none"
46003
46176
  }
46004
46177
  }),
46005
- /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_react_native218.View, {
46178
+ /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(import_react_native219.View, {
46006
46179
  style: {
46007
46180
  width: "100%",
46008
46181
  // TODO: UI관련 스타일 설정은 TDS로 이관
46009
- height: import_react_native218.Platform.OS === "ios" ? 44 : 54,
46182
+ height: import_react_native219.Platform.OS === "ios" ? 44 : 54,
46010
46183
  flexDirection: "row",
46011
46184
  alignItems: "center",
46012
46185
  justifyContent: "flex-end",
@@ -46043,7 +46216,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46043
46216
  }
46044
46217
  function GameAppContainer(param) {
46045
46218
  var children = param.children;
46046
- var _useState3 = _sliced_to_array((0, import_react213.useState)(false), 2), isEntryMessageExited = _useState3[0], setIsEntryMessageExited = _useState3[1];
46219
+ var _useState4 = _sliced_to_array((0, import_react213.useState)(false), 2), isEntryMessageExited = _useState4[0], setIsEntryMessageExited = _useState4[1];
46047
46220
  (0, import_react213.useEffect)(function() {
46048
46221
  if (import_react_native205.Platform.OS === "ios") {
46049
46222
  setIosSwipeGestureEnabled({
@@ -46067,7 +46240,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46067
46240
  return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(import_jsx_runtime225.Fragment, {
46068
46241
  children: [
46069
46242
  /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(RNNavigationBar.Game, {}),
46070
- (0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(GameProfile, {
46243
+ (0, bridge_entry_exports.getOperationalEnvironment)() === "toss" ? /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(GameInitializer, {
46071
46244
  isReadyForProfileUI: isEntryMessageExited,
46072
46245
  children
46073
46246
  }) : children
@@ -46180,7 +46353,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46180
46353
  var _useMoreButtonBottomSheet = useMoreButtonBottomSheet(), openMoreButtonBottomSheet = _useMoreButtonBottomSheet.open;
46181
46354
  var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
46182
46355
  var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
46183
- var handleGameWebviewClose = (0, import_react224.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
46356
+ var handleGameWebviewClose = (0, import_react227.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
46184
46357
  var isConfirmed;
46185
46358
  return __generator(this, function(_state) {
46186
46359
  switch (_state.label) {
@@ -46221,11 +46394,11 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46221
46394
  type: "none"
46222
46395
  }
46223
46396
  }),
46224
- /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(import_react_native223.View, {
46397
+ /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(import_react_native224.View, {
46225
46398
  style: {
46226
46399
  width: "100%",
46227
46400
  // TODO: UI관련 스타일 설정은 TDS로 이관
46228
- height: import_react_native223.Platform.OS === "ios" ? 44 : 54,
46401
+ height: import_react_native224.Platform.OS === "ios" ? 44 : 54,
46229
46402
  flexDirection: "row",
46230
46403
  alignItems: "center",
46231
46404
  justifyContent: "flex-end",
@@ -46260,7 +46433,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46260
46433
  var _parsedNavigationBar_withBackButton;
46261
46434
  var withBackButton = (_parsedNavigationBar_withBackButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.withBackButton) !== null && _parsedNavigationBar_withBackButton !== void 0 ? _parsedNavigationBar_withBackButton : true;
46262
46435
  var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
46263
- var handleClose = (0, import_react226.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
46436
+ var handleClose = (0, import_react229.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
46264
46437
  var isConfirmed;
46265
46438
  return __generator(this, function(_state) {
46266
46439
  switch (_state.label) {
@@ -46375,8 +46548,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46375
46548
  }
46376
46549
  function useBridgeHandler(param) {
46377
46550
  var onMessage = param.onMessage, constantHandlerMap = param.constantHandlerMap, asyncHandlerMap = param.asyncHandlerMap, eventListenerMap = param.eventListenerMap, originalInjectedJavaScript = param.injectedJavaScript;
46378
- var ref = (0, import_react227.useRef)(null);
46379
- var injectedJavaScript = (0, import_react227.useMemo)(function() {
46551
+ var ref = (0, import_react230.useRef)(null);
46552
+ var injectedJavaScript = (0, import_react230.useMemo)(function() {
46380
46553
  return [
46381
46554
  "window.__CONSTANT_HANDLER_MAP = ".concat(JSON.stringify(Object.entries(constantHandlerMap).reduce(function(acc, param2) {
46382
46555
  var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
@@ -46403,7 +46576,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46403
46576
  (_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 "));
46404
46577
  };
46405
46578
  };
46406
- var $onMessage = (0, import_react227.useCallback)(
46579
+ var $onMessage = (0, import_react230.useCallback)(
46407
46580
  function() {
46408
46581
  var _ref = _async_to_generator(function(e61) {
46409
46582
  var data, _eventListenerMap_data_functionName, handleOnEvent, handleOnError, remove, key, remove1, _ref_current;
@@ -46516,8 +46689,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46516
46689
  }
46517
46690
  }
46518
46691
  function useWebViewHistory() {
46519
- var _useReducer = _sliced_to_array((0, import_react229.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
46520
- var onNavigationStateChange = (0, import_react229.useCallback)(function(param) {
46692
+ var _useReducer = _sliced_to_array((0, import_react232.useReducer)(reducer, INITIAL_STATE), 2), state = _useReducer[0], dispatch = _useReducer[1];
46693
+ var onNavigationStateChange = (0, import_react232.useCallback)(function(param) {
46521
46694
  var url = param.url, canGoForward2 = param.canGoForward;
46522
46695
  dispatch({
46523
46696
  type: "NAVIGATION_CHANGE",
@@ -46525,7 +46698,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46525
46698
  canGoForward: canGoForward2
46526
46699
  });
46527
46700
  }, []);
46528
- var _useMemo4 = (0, import_react229.useMemo)(function() {
46701
+ var _useMemo4 = (0, import_react232.useMemo)(function() {
46529
46702
  var canBack = state.index > 0;
46530
46703
  var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
46531
46704
  return {
@@ -46549,17 +46722,17 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46549
46722
  var logging = useNavigationBarLogging();
46550
46723
  var openConfirm = useDialog().openConfirm;
46551
46724
  var global2 = getAppsInTossGlobals();
46552
- var addEventListener = (0, import_react228.useCallback)(function(handler) {
46725
+ var addEventListener = (0, import_react231.useCallback)(function(handler) {
46553
46726
  addWebBackEventListener(handler);
46554
46727
  }, [
46555
46728
  addWebBackEventListener
46556
46729
  ]);
46557
- var removeEventListener = (0, import_react228.useCallback)(function(handler) {
46730
+ var removeEventListener = (0, import_react231.useCallback)(function(handler) {
46558
46731
  removeWebBackEventListener(handler);
46559
46732
  }, [
46560
46733
  removeWebBackEventListener
46561
46734
  ]);
46562
- var handleWebBack = (0, import_react228.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
46735
+ var handleWebBack = (0, import_react231.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
46563
46736
  var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, handler, _webViewRef_current, isConfirmed;
46564
46737
  return __generator(this, function(_state) {
46565
46738
  switch (_state.label) {
@@ -46633,7 +46806,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46633
46806
  openConfirm,
46634
46807
  webViewRef
46635
46808
  ]);
46636
- var handleWebHome = (0, import_react228.useCallback)(function() {
46809
+ var handleWebHome = (0, import_react231.useCallback)(function() {
46637
46810
  var _webViewRef_current;
46638
46811
  logging.homeButtonClick();
46639
46812
  if (hasWebBackEvent) {
@@ -46666,7 +46839,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46666
46839
  logging,
46667
46840
  webViewRef
46668
46841
  ]);
46669
- return (0, import_react228.useMemo)(function() {
46842
+ return (0, import_react231.useMemo)(function() {
46670
46843
  return {
46671
46844
  addEventListener,
46672
46845
  removeEventListener,
@@ -46842,7 +47015,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46842
47015
  var batteryModePreference = param.batteryModePreference, colorPreference = param.colorPreference, locale = param.locale, navbarPreference = param.navbarPreference, pureSafeArea = param.pureSafeArea, safeArea = param.safeArea, safeAreaBottomTransparency = param.safeAreaBottomTransparency;
46843
47016
  var platform = getPlatformOS();
46844
47017
  var appVersion = getTossAppVersion();
46845
- var fontScale = (0, import_react_native226.useWindowDimensions)().fontScale;
47018
+ var fontScale = (0, import_react_native227.useWindowDimensions)().fontScale;
46846
47019
  var platformString = platform === "ios" ? "iPhone" : "Android";
46847
47020
  var fontA11y = mapFontScaleToCategory(fontScale, platform);
46848
47021
  var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
@@ -46908,9 +47081,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46908
47081
  if (!TYPES.includes(type)) {
46909
47082
  throw new Error("Invalid WebView type: '".concat(type, "'"));
46910
47083
  }
46911
- var webViewRef = (0, import_react222.useRef)(null);
47084
+ var webViewRef = (0, import_react225.useRef)(null);
46912
47085
  var webBackHandler = useWebBackHandler(webViewRef);
46913
- var uri = (0, import_react222.useMemo)(function() {
47086
+ var uri = (0, import_react225.useMemo)(function() {
46914
47087
  return getWebViewUri(local);
46915
47088
  }, [
46916
47089
  local
@@ -46920,7 +47093,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
46920
47093
  var global2 = getAppsInTossGlobals();
46921
47094
  var topNavigation = useTopNavigation();
46922
47095
  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 ";
46923
- var _useState6 = _sliced_to_array((0, import_react222.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState6[0], setAllowsBackForwardNavigationGestures = _useState6[1];
47096
+ var _useState7 = _sliced_to_array((0, import_react225.useState)(props.allowsBackForwardNavigationGestures), 2), allowsBackForwardNavigationGestures = _useState7[0], setAllowsBackForwardNavigationGestures = _useState7[1];
46924
47097
  var handler = useBridgeHandler({
46925
47098
  onMessage,
46926
47099
  injectedJavaScript: [
@@ -47055,7 +47228,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47055
47228
  completeProductGrant: IAP.completeProductGrant
47056
47229
  })
47057
47230
  });
47058
- var headerPropForExternalWebView = (0, import_react222.useMemo)(function() {
47231
+ var headerPropForExternalWebView = (0, import_react225.useMemo)(function() {
47059
47232
  var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
47060
47233
  var initialAccessoryButton = parsedNavigationBar === null || parsedNavigationBar === void 0 ? void 0 : parsedNavigationBar.initialAccessoryButton;
47061
47234
  var _parsedNavigationBar_withBackButton;
@@ -47080,14 +47253,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47080
47253
  colorPreference: "light"
47081
47254
  });
47082
47255
  var refs = mergeRefs4(handler.ref, webViewRef);
47083
- (0, import_react222.useEffect)(function() {
47256
+ (0, import_react225.useEffect)(function() {
47084
47257
  var callback = function() {
47085
47258
  webBackHandler.handleWebBack();
47086
47259
  return true;
47087
47260
  };
47088
- import_react_native220.BackHandler.addEventListener("hardwareBackPress", callback);
47261
+ import_react_native221.BackHandler.addEventListener("hardwareBackPress", callback);
47089
47262
  return function() {
47090
- return import_react_native220.BackHandler.removeEventListener("hardwareBackPress", callback);
47263
+ return import_react_native221.BackHandler.removeEventListener("hardwareBackPress", callback);
47091
47264
  };
47092
47265
  }, [
47093
47266
  webBackHandler
@@ -47112,18 +47285,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47112
47285
  (_props_onNavigationStateChange = props.onNavigationStateChange) === null || _props_onNavigationStateChange === void 0 ? void 0 : _props_onNavigationStateChange.call(props, event);
47113
47286
  webBackHandler.onNavigationStateChange(event);
47114
47287
  },
47115
- userAgent: import_react_native220.Platform.OS === "ios" ? userAgent : void 0,
47288
+ userAgent: import_react_native221.Platform.OS === "ios" ? userAgent : void 0,
47116
47289
  sharedCookiesEnabled: true,
47117
47290
  webviewDebuggingEnabled: webViewDebuggingEnabled,
47118
47291
  thirdPartyCookiesEnabled: true,
47119
47292
  onMessage: handler.onMessage,
47120
47293
  injectedJavaScript: handler.injectedJavaScript,
47121
47294
  injectedJavaScriptBeforeContentLoaded: handler.injectedJavaScript,
47122
- decelerationRate: import_react_native220.Platform.OS === "ios" ? 1 : void 0,
47295
+ decelerationRate: import_react_native221.Platform.OS === "ios" ? 1 : void 0,
47123
47296
  allowsBackForwardNavigationGestures
47124
47297
  }));
47125
47298
  }
47126
- var import_react_native199, import_react208, import_react209, import_react210, import_react211, import_jsx_runtime217, import_react212, import_react213, import_react_native205, import_react214, import_react_native206, import_react215, import_jsx_runtime218, import_react_native208, import_jsx_runtime219, import_react216, import_react_native210, import_react217, import_react218, import_react219, import_react_native215, import_jsx_runtime220, import_react220, import_jsx_runtime221, import_react221, import_jsx_runtime222, import_jsx_runtime223, import_react_native218, import_jsx_runtime224, import_jsx_runtime225, import_jsx_runtime226, import_react222, import_react_native220, import_react223, import_react_native221, import_react224, import_react_native223, import_jsx_runtime227, import_jsx_runtime228, import_react225, import_react226, import_jsx_runtime229, import_jsx_runtime230, import_react227, import_react228, import_react229, import_react_native226, import_react230, import_react231, import_jsx_runtime231, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __hasOwnProp2, __copyProps2, __reExport2, env, EXIT_IMPRESSION_LOG_NAME, EXIT_IMPRESSION_SCHEMA_ID, ENTRY_APP_EVENT_SCHEMA_ID, AppEvent, UPDATE_SCHEME, GAME_PROFILE_WEBVIEW_URL, GAME_CENTER_MIN_VERSION3, useGameProfileToast, DEFAULT_ERROR, PLAYSTORE_LINK, APPSTORE_LINK, getMarketLink, INTERNAL__onVisibilityChangedByTransparentServiceWeb, openTransparentWebView, useGameCenterProfile, Z_INDEX, GameProfile, overlayStyle, NAVI_BAR_IMPRESSION_SCHEMA_ID, NAVI_BAR_IMPRESSION_LOG_NAME, CLOSE_POPUP_SHOW_SCHEMA_ID, CLOSE_POPUP_SHOW_LOG_NAME, CLOSE_BUTTON_CLICK_SCHEMA_ID, CLOSE_BUTTON_CLICK_LOG_NAME, CLOSE_POPUP_CTA_CLICK_SCHEMA_ID, CLOSE_POPUP_CTA_CLICK_LOG_NAME, HOME_BUTTON_CLICK_SCHEMA_ID, HOME_BUTTON_CLICK_LOG_NAME, BOTTOM_SHEET_SCHEMA_ID, BOTTOM_SHEET_LOG_NAME, BOTTOM_SHEET_OPEN_SCHEMA_ID, BOTTOM_SHEET_OPEN_LOG_NAME, BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID, BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME, BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID, BOTTOM_SHEET_MENU_CLICK_LOG_NAME, SHARE_SCHEME_REFERRER, APP_SHARE_MENU_INFO, UPDATE_DIALOG_SCHEMA_ID, UPDATE_DIALOG_LOG_NAME, UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID, UPDATE_DIALOG_CTA_CLICK_LOG_NAME, APP_BRIDGE_METHOD_NAME, MIN_VERSION, RNNavigationBar, bridge_entry_exports, AppsInToss, GameWebView, PartnerWebView, globalEventListenerMap, INITIAL_STATE, HISTORY_BACK_SCRIPT, HISTORY_HOME_SCRIPT, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId, getReferrer3, trackScreen, operationalEnvironment, TYPES, WEBVIEW_TYPES, Analytics2;
47299
+ var import_react_native199, import_react208, import_react209, import_react210, import_react211, import_jsx_runtime217, import_react212, import_react213, import_react_native205, import_react214, import_react_native207, import_react215, import_react_native209, import_react216, import_react217, import_react218, import_react219, import_jsx_runtime218, import_jsx_runtime219, import_react220, import_react_native212, import_react221, import_react222, import_react223, import_react_native217, import_jsx_runtime220, import_jsx_runtime221, import_react224, import_jsx_runtime222, import_jsx_runtime223, import_react_native219, import_jsx_runtime224, import_jsx_runtime225, import_jsx_runtime226, import_react225, import_react_native221, import_react226, import_react_native222, import_react227, import_react_native224, import_jsx_runtime227, import_jsx_runtime228, import_react228, import_react229, import_jsx_runtime229, import_jsx_runtime230, import_react230, import_react231, import_react232, import_react_native227, import_react233, import_react234, 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;
47127
47300
  var init_dist8 = __esm({
47128
47301
  "../../.yarn/__virtual__/@apps-in-toss-framework-virtual-574b136add/1/apps-in-toss-packages/framework/dist/index.js"() {
47129
47302
  "use strict";
@@ -47163,55 +47336,59 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47163
47336
  import_react213 = __toESM(require_react(), 1);
47164
47337
  import_react_native205 = __toESM(require_react_native(), 1);
47165
47338
  init_dist6();
47339
+ init_src3();
47166
47340
  init_esm8();
47341
+ init_dist7();
47167
47342
  import_react214 = __toESM(require_react(), 1);
47168
- import_react_native206 = __toESM(require_react_native(), 1);
47343
+ import_react_native207 = __toESM(require_react_native(), 1);
47169
47344
  init_dist6();
47170
47345
  init_src3();
47171
47346
  init_esm8();
47172
- init_dist7();
47173
47347
  import_react215 = __toESM(require_react(), 1);
47348
+ import_react_native209 = __toESM(require_react_native(), 1);
47349
+ init_dist6();
47350
+ import_react216 = __toESM(require_react(), 1);
47351
+ init_src3();
47174
47352
  init_esm8();
47175
- init_private2();
47176
- import_jsx_runtime218 = __toESM(require_jsx_runtime(), 1);
47177
- import_react_native208 = __toESM(require_react_native(), 1);
47353
+ import_react217 = __toESM(require_react(), 1);
47354
+ import_react218 = __toESM(require_react(), 1);
47178
47355
  init_src3();
47179
47356
  init_dist6();
47357
+ init_esm8();
47358
+ init_private2();
47359
+ import_react219 = __toESM(require_react(), 1);
47360
+ import_jsx_runtime218 = __toESM(require_jsx_runtime(), 1);
47180
47361
  import_jsx_runtime219 = __toESM(require_jsx_runtime(), 1);
47181
47362
  init_private2();
47182
- import_react216 = __toESM(require_react(), 1);
47183
- import_react_native210 = __toESM(require_react_native(), 1);
47363
+ import_react220 = __toESM(require_react(), 1);
47364
+ import_react_native212 = __toESM(require_react_native(), 1);
47184
47365
  init_src3();
47185
- import_react217 = __toESM(require_react(), 1);
47366
+ import_react221 = __toESM(require_react(), 1);
47186
47367
  init_esm8();
47187
47368
  init_dist7();
47188
- import_react218 = __toESM(require_react(), 1);
47369
+ import_react222 = __toESM(require_react(), 1);
47189
47370
  init_dist6();
47190
47371
  init_src3();
47191
47372
  init_dist6();
47192
47373
  init_src3();
47193
47374
  init_esm8();
47194
47375
  init_private2();
47195
- import_react219 = __toESM(require_react(), 1);
47376
+ import_react223 = __toESM(require_react(), 1);
47196
47377
  init_dist6();
47197
47378
  init_src3();
47198
47379
  init_esm8();
47199
47380
  init_private2();
47200
- import_react_native215 = __toESM(require_react_native(), 1);
47381
+ import_react_native217 = __toESM(require_react_native(), 1);
47201
47382
  init_dist6();
47202
47383
  init_src3();
47203
47384
  import_jsx_runtime220 = __toESM(require_jsx_runtime(), 1);
47204
- init_dist6();
47205
- init_src3();
47206
- init_esm8();
47207
- import_react220 = __toESM(require_react(), 1);
47208
47385
  import_jsx_runtime221 = __toESM(require_jsx_runtime(), 1);
47209
- import_react221 = __toESM(require_react(), 1);
47386
+ import_react224 = __toESM(require_react(), 1);
47210
47387
  import_jsx_runtime222 = __toESM(require_jsx_runtime(), 1);
47211
47388
  import_jsx_runtime223 = __toESM(require_jsx_runtime(), 1);
47212
47389
  init_esm8();
47213
47390
  init_private2();
47214
- import_react_native218 = __toESM(require_react_native(), 1);
47391
+ import_react_native219 = __toESM(require_react_native(), 1);
47215
47392
  import_jsx_runtime224 = __toESM(require_jsx_runtime(), 1);
47216
47393
  init_async_bridges();
47217
47394
  init_constant_bridges2();
@@ -47225,40 +47402,40 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47225
47402
  init_src3();
47226
47403
  init_esm8();
47227
47404
  init_private2();
47228
- import_react222 = __toESM(require_react(), 1);
47229
- import_react_native220 = __toESM(require_react_native(), 1);
47405
+ import_react225 = __toESM(require_react(), 1);
47406
+ import_react_native221 = __toESM(require_react_native(), 1);
47230
47407
  init_dist6();
47231
47408
  init_react_native_webview();
47232
- import_react223 = __toESM(require_react(), 1);
47233
- import_react_native221 = __toESM(require_react_native(), 1);
47409
+ import_react226 = __toESM(require_react(), 1);
47410
+ import_react_native222 = __toESM(require_react_native(), 1);
47234
47411
  init_src3();
47235
47412
  init_esm8();
47236
47413
  init_private2();
47237
47414
  init_dist7();
47238
- import_react224 = __toESM(require_react(), 1);
47239
- import_react_native223 = __toESM(require_react_native(), 1);
47415
+ import_react227 = __toESM(require_react(), 1);
47416
+ import_react_native224 = __toESM(require_react_native(), 1);
47240
47417
  import_jsx_runtime227 = __toESM(require_jsx_runtime(), 1);
47241
47418
  import_jsx_runtime228 = __toESM(require_jsx_runtime(), 1);
47242
47419
  init_react_native_webview();
47243
- import_react225 = __toESM(require_react(), 1);
47420
+ import_react228 = __toESM(require_react(), 1);
47244
47421
  init_src3();
47245
47422
  init_esm8();
47246
47423
  init_private2();
47247
47424
  init_dist7();
47248
- import_react226 = __toESM(require_react(), 1);
47425
+ import_react229 = __toESM(require_react(), 1);
47249
47426
  import_jsx_runtime229 = __toESM(require_jsx_runtime(), 1);
47250
47427
  import_jsx_runtime230 = __toESM(require_jsx_runtime(), 1);
47251
- import_react227 = __toESM(require_react(), 1);
47428
+ import_react230 = __toESM(require_react(), 1);
47252
47429
  init_src3();
47253
47430
  init_esm8();
47254
47431
  init_dist7();
47255
- import_react228 = __toESM(require_react(), 1);
47256
- import_react229 = __toESM(require_react(), 1);
47432
+ import_react231 = __toESM(require_react(), 1);
47433
+ import_react232 = __toESM(require_react(), 1);
47257
47434
  init_dist6();
47258
- import_react_native226 = __toESM(require_react_native(), 1);
47435
+ import_react_native227 = __toESM(require_react_native(), 1);
47259
47436
  init_dist6();
47260
- import_react230 = __toESM(require_react(), 1);
47261
- import_react231 = __toESM(require_react(), 1);
47437
+ import_react233 = __toESM(require_react(), 1);
47438
+ import_react234 = __toESM(require_react(), 1);
47262
47439
  init_dist6();
47263
47440
  init_src3();
47264
47441
  import_jsx_runtime231 = __toESM(require_jsx_runtime(), 1);
@@ -47319,13 +47496,125 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47319
47496
  };
47320
47497
  UPDATE_SCHEME = "servicetoss://update/forced/j?updateType=required";
47321
47498
  GAME_PROFILE_WEBVIEW_URL = "servicetoss://game-center/profile";
47322
- GAME_CENTER_MIN_VERSION3 = {
47323
- android: "5.221.0",
47324
- ios: "5.221.0"
47499
+ GAME_MIN_VERSION = {
47500
+ android: "5.232.0",
47501
+ ios: "5.232.0"
47502
+ };
47503
+ PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
47504
+ APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
47505
+ getMarketLink = function() {
47506
+ return import_react_native209.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
47507
+ };
47508
+ UPDATE_DIALOG_SCHEMA_ID = 1634992;
47509
+ UPDATE_DIALOG_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update";
47510
+ UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID = 1634996;
47511
+ UPDATE_DIALOG_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update::click__cta";
47512
+ DEFAULT_ERROR = {
47513
+ title: "\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",
47514
+ description: "\uBB38\uC81C\uAC00 \uACC4\uC18D\uB418\uBA74 \uD1A0\uC2A4 \uACE0\uAC1D\uC13C\uD130(1599-4905)\uB85C \uBB38\uC758\uD574\uC8FC\uC138\uC694."
47515
+ };
47516
+ useErrorAlert = function() {
47517
+ var openAlert = useDialog().openAlert;
47518
+ var openErrorAlert = (0, import_react217.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
47519
+ return __generator(this, function(_state) {
47520
+ switch (_state.label) {
47521
+ case 0:
47522
+ return [
47523
+ 4,
47524
+ openAlert({
47525
+ title: DEFAULT_ERROR.title,
47526
+ description: DEFAULT_ERROR.description
47527
+ })
47528
+ ];
47529
+ case 1:
47530
+ _state.sent();
47531
+ closeView();
47532
+ return [
47533
+ 2
47534
+ ];
47535
+ }
47536
+ });
47537
+ }), [
47538
+ openAlert
47539
+ ]);
47540
+ return {
47541
+ open: openErrorAlert
47542
+ };
47543
+ };
47544
+ INTERNAL__onVisibilityChangedByTransparentServiceWeb = onVisibilityChangedByTransparentServiceWeb;
47545
+ openTransparentWebView = function(param) {
47546
+ 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;
47547
+ var url = new URL("supertoss://transparent-service-web");
47548
+ url.searchParams.set("url", webUrl);
47549
+ url.searchParams.set("onVisibilityChangeCallback", callbackId);
47550
+ Object.entries(params !== null && params !== void 0 ? params : {}).forEach(function(param2) {
47551
+ var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
47552
+ url.searchParams.set(key, value);
47553
+ });
47554
+ var cleanup = INTERNAL__onVisibilityChangedByTransparentServiceWeb({
47555
+ options: {
47556
+ callbackId
47557
+ },
47558
+ onError: function(error) {
47559
+ onError2(error);
47560
+ cleanup();
47561
+ },
47562
+ onEvent: function(value) {
47563
+ onEvent(value);
47564
+ if (cleanupWhenDismissed && value === true) {
47565
+ cleanup();
47566
+ }
47567
+ }
47568
+ });
47569
+ openURL(url.toString());
47570
+ };
47571
+ useTransparentWebview = function() {
47572
+ var _useState = _sliced_to_array((0, import_react218.useState)(false), 2), isWebviewLoading = _useState[0], setIsWebviewLoading = _useState[1];
47573
+ var _useErrorAlert = useErrorAlert(), openErrorAlert = _useErrorAlert.open;
47574
+ var _openTransparentWebview = (0, import_react218.useCallback)(function(param) {
47575
+ var webUrl = param.webUrl, onClose = param.onClose, onError2 = param.onError;
47576
+ if (isWebviewLoading) {
47577
+ return;
47578
+ }
47579
+ setIsWebviewLoading(true);
47580
+ openTransparentWebView({
47581
+ webUrl,
47582
+ onEvent: function() {
47583
+ var _ref = _async_to_generator(function(isClosedTransparentWebView) {
47584
+ return __generator(this, function(_state) {
47585
+ if (isClosedTransparentWebView) {
47586
+ setIsWebviewLoading(false);
47587
+ onClose === null || onClose === void 0 ? void 0 : onClose();
47588
+ }
47589
+ return [
47590
+ 2
47591
+ ];
47592
+ });
47593
+ });
47594
+ return function(isClosedTransparentWebView) {
47595
+ return _ref.apply(this, arguments);
47596
+ };
47597
+ }(),
47598
+ onError: function(error) {
47599
+ setIsWebviewLoading(false);
47600
+ if (onError2) {
47601
+ onError2(error);
47602
+ } else {
47603
+ openErrorAlert();
47604
+ }
47605
+ }
47606
+ });
47607
+ }, [
47608
+ isWebviewLoading,
47609
+ openErrorAlert
47610
+ ]);
47611
+ return {
47612
+ open: _openTransparentWebview
47613
+ };
47325
47614
  };
47326
47615
  useGameProfileToast = function() {
47327
47616
  var overlay = useOverlay();
47328
- var openGameProfileToast = function(nickname, profileImageUri) {
47617
+ var openGameProfileToast = (0, import_react219.useCallback)(function(nickname, profileImageUri) {
47329
47618
  return new Promise(function(resolve) {
47330
47619
  overlay.open(function(param) {
47331
47620
  var isOpen = param.isOpen, close = param.close, exit = param.exit;
@@ -47356,201 +47645,136 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47356
47645
  });
47357
47646
  });
47358
47647
  });
47359
- };
47648
+ }, [
47649
+ overlay
47650
+ ]);
47360
47651
  return {
47361
47652
  openGameProfileToast
47362
47653
  };
47363
47654
  };
47364
- DEFAULT_ERROR = {
47365
- title: "\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",
47366
- description: "\uBB38\uC81C\uAC00 \uACC4\uC18D\uB418\uBA74 \uD1A0\uC2A4 \uACE0\uAC1D\uC13C\uD130(1599-4905)\uB85C \uBB38\uC758\uD574\uC8FC\uC138\uC694."
47367
- };
47368
- PLAYSTORE_LINK = "https://play.google.com/store/apps/details?id=viva.republica.toss";
47369
- APPSTORE_LINK = "https://itunes.apple.com/app/id839333328";
47370
- getMarketLink = function() {
47371
- return import_react_native208.Platform.OS === "android" ? PLAYSTORE_LINK : APPSTORE_LINK;
47372
- };
47373
- INTERNAL__onVisibilityChangedByTransparentServiceWeb = onVisibilityChangedByTransparentServiceWeb;
47374
- openTransparentWebView = function(param) {
47375
- var webUrl = param.webUrl, _param_cleanupWhenDismissed = param.cleanupWhenDismissed, cleanupWhenDismissed = _param_cleanupWhenDismissed === void 0 ? true : _param_cleanupWhenDismissed, onEvent = param.onEvent, onError2 = param.onError, _param_callbackId = param.callbackId, callbackId = _param_callbackId === void 0 ? "fn" : _param_callbackId, params = param.params;
47376
- var url = new URL("supertoss://transparent-service-web");
47377
- url.searchParams.set("url", webUrl);
47378
- url.searchParams.set("onVisibilityChangeCallback", callbackId);
47379
- Object.entries(params !== null && params !== void 0 ? params : {}).forEach(function(param2) {
47380
- var _param = _sliced_to_array(param2, 2), key = _param[0], value = _param[1];
47381
- url.searchParams.set(key, value);
47382
- });
47383
- var cleanup = INTERNAL__onVisibilityChangedByTransparentServiceWeb({
47384
- options: {
47385
- callbackId
47386
- },
47387
- onError: function(error) {
47388
- onError2(error);
47389
- cleanup();
47390
- },
47391
- onEvent: function(value) {
47392
- onEvent(value);
47393
- if (cleanupWhenDismissed && value === true) {
47394
- cleanup();
47395
- }
47396
- }
47397
- });
47398
- openURL(url.toString());
47399
- };
47400
47655
  useGameCenterProfile = function(isReadyForProfileUI) {
47401
- var _useState = _sliced_to_array((0, import_react215.useState)(void 0), 2), profileData = _useState[0], setProfileData = _useState[1];
47402
- var _useState1 = _sliced_to_array((0, import_react215.useState)(true), 2), isProfileDataLoading = _useState1[0], setIsProfileDataLoading = _useState1[1];
47403
- var _useState2 = _sliced_to_array((0, import_react215.useState)(false), 2), isProfileDataRefetching = _useState2[0], setIsProfileDataRefetching = _useState2[1];
47404
- var shouldShowLoadingOverlay = isProfileDataLoading && isReadyForProfileUI;
47656
+ var _useState2 = _sliced_to_array((0, import_react216.useState)(void 0), 2), profileData = _useState2[0], setProfileData = _useState2[1];
47657
+ var _useState21 = _sliced_to_array((0, import_react216.useState)(true), 2), isProfileDataLoading = _useState21[0], setIsProfileDataLoading = _useState21[1];
47658
+ var _useState22 = _sliced_to_array((0, import_react216.useState)(false), 2), isProfileDataRefetching = _useState22[0], setIsProfileDataRefetching = _useState22[1];
47659
+ var shouldShowProfileLoadingOverlay = isProfileDataLoading && isReadyForProfileUI || isProfileDataRefetching;
47405
47660
  var shouldShowProfileNotFoundOverlay = (profileData === null || profileData === void 0 ? void 0 : profileData.statusCode) === "PROFILE_NOT_FOUND" && isReadyForProfileUI && !isProfileDataRefetching;
47406
47661
  var canShowBottomSheetOrToast = !isProfileDataLoading && isReadyForProfileUI;
47407
- var _useState3 = _sliced_to_array((0, import_react215.useState)(false), 2), isWebviewLoading = _useState3[0], setIsWebviewLoading = _useState3[1];
47408
- var isCompletedProfileFlow = (0, import_react215.useRef)(false);
47409
- var _useDialog = useDialog(), openAlert = _useDialog.openAlert, openConfirm = _useDialog.openConfirm;
47410
47662
  var openGameProfileToast = useGameProfileToast().openGameProfileToast;
47411
- var openErrorAlert = (0, import_react215.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
47663
+ var _useErrorAlert = useErrorAlert(), openErrorAlert = _useErrorAlert.open;
47664
+ var _useTransparentWebview = useTransparentWebview(), openTransparentWebView2 = _useTransparentWebview.open;
47665
+ var fetchProfileData = (0, import_react216.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
47666
+ var data, _17;
47412
47667
  return __generator(this, function(_state) {
47413
47668
  switch (_state.label) {
47414
47669
  case 0:
47670
+ _state.trys.push([
47671
+ 0,
47672
+ 2,
47673
+ ,
47674
+ 3
47675
+ ]);
47415
47676
  return [
47416
47677
  4,
47417
- openAlert({
47418
- title: DEFAULT_ERROR.title,
47419
- description: DEFAULT_ERROR.description
47420
- })
47678
+ getGameCenterGameProfile()
47421
47679
  ];
47422
47680
  case 1:
47423
- _state.sent();
47424
- closeView();
47681
+ data = _state.sent();
47682
+ setProfileData(data);
47683
+ setIsProfileDataLoading(false);
47684
+ return [
47685
+ 3,
47686
+ 3
47687
+ ];
47688
+ case 2:
47689
+ _17 = _state.sent();
47690
+ openErrorAlert();
47691
+ setIsProfileDataLoading(false);
47692
+ return [
47693
+ 3,
47694
+ 3
47695
+ ];
47696
+ case 3:
47425
47697
  return [
47426
47698
  2
47427
47699
  ];
47428
47700
  }
47429
47701
  });
47430
47702
  }), [
47431
- openAlert
47432
- ]);
47433
- var openProfileWebview = (0, import_react215.useCallback)(function() {
47434
- if (isWebviewLoading) {
47435
- return;
47436
- }
47437
- setIsWebviewLoading(true);
47438
- openTransparentWebView({
47439
- webUrl: "".concat(GAME_PROFILE_WEBVIEW_URL, "?appName=").concat(getAppName(), "&referrer=appsintoss.").concat(getAppName()),
47440
- onEvent: function() {
47441
- var _ref = _async_to_generator(function(isClosedTransparentWebView) {
47442
- var data, _17;
47443
- return __generator(this, function(_state) {
47444
- switch (_state.label) {
47445
- case 0:
47446
- if (!isClosedTransparentWebView) return [
47447
- 3,
47448
- 4
47449
- ];
47450
- _state.label = 1;
47451
- case 1:
47452
- _state.trys.push([
47453
- 1,
47454
- 3,
47455
- ,
47456
- 4
47457
- ]);
47458
- setIsWebviewLoading(false);
47459
- setIsProfileDataRefetching(true);
47460
- return [
47461
- 4,
47462
- getGameCenterGameProfile()
47463
- ];
47464
- case 2:
47465
- data = _state.sent();
47466
- setProfileData(data);
47467
- setIsProfileDataRefetching(false);
47468
- if ((data === null || data === void 0 ? void 0 : data.statusCode) === "SUCCESS") {
47469
- openGameProfileToast(data.nickname, data.profileImageUri);
47470
- }
47471
- return [
47472
- 3,
47473
- 4
47474
- ];
47475
- case 3:
47476
- _17 = _state.sent();
47477
- setIsProfileDataRefetching(false);
47478
- openErrorAlert();
47479
- return [
47480
- 3,
47481
- 4
47482
- ];
47483
- case 4:
47484
- return [
47485
- 2
47486
- ];
47487
- }
47488
- });
47489
- });
47490
- return function(isClosedTransparentWebView) {
47491
- return _ref.apply(this, arguments);
47492
- };
47493
- }(),
47494
- onError: function() {
47495
- openErrorAlert();
47496
- }
47497
- });
47498
- }, [
47499
- isWebviewLoading,
47500
- openGameProfileToast,
47501
47703
  openErrorAlert
47502
47704
  ]);
47503
- var updateAppToSupportedMinVersion = (0, import_react215.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
47504
- var upddateConfirmDialogLabel, isConfirmed, STORE_SCHEME;
47705
+ var refetchProfileData = (0, import_react216.useCallback)(/* @__PURE__ */ _async_to_generator(function() {
47706
+ var data, _17;
47505
47707
  return __generator(this, function(_state) {
47506
47708
  switch (_state.label) {
47507
47709
  case 0:
47508
- upddateConfirmDialogLabel = {
47509
- title: "".concat(josa(getAppsInTossGlobals().brandDisplayName, "\uC744/\uB97C"), " \uD558\uB824\uBA74 \n\uC571\uC744 \uC5C5\uB370\uC774\uD2B8\uD574\uC8FC\uC138\uC694"),
47510
- leftButton: "\uB2EB\uAE30",
47511
- rightButton: "\uC5C5\uB370\uC774\uD2B8\uD558\uAE30"
47512
- };
47710
+ _state.trys.push([
47711
+ 0,
47712
+ 2,
47713
+ ,
47714
+ 3
47715
+ ]);
47716
+ setIsProfileDataRefetching(true);
47513
47717
  return [
47514
47718
  4,
47515
- openConfirm({
47516
- title: upddateConfirmDialogLabel.title,
47517
- leftButton: upddateConfirmDialogLabel.leftButton,
47518
- rightButton: upddateConfirmDialogLabel.rightButton,
47519
- closeOnDimmerClick: true
47520
- })
47719
+ getGameCenterGameProfile()
47521
47720
  ];
47522
47721
  case 1:
47523
- isConfirmed = _state.sent();
47524
- if (!isConfirmed) {
47525
- closeView();
47526
- return [
47527
- 2
47528
- ];
47722
+ data = _state.sent();
47723
+ setProfileData(data);
47724
+ setIsProfileDataRefetching(false);
47725
+ if ((data === null || data === void 0 ? void 0 : data.statusCode) === "SUCCESS") {
47726
+ openGameProfileToast(data.nickname, data.profileImageUri);
47529
47727
  }
47530
- STORE_SCHEME = getMarketLink();
47531
- openURL("supertoss://web?url=".concat(STORE_SCHEME, "&external=browser"));
47728
+ return [
47729
+ 3,
47730
+ 3
47731
+ ];
47732
+ case 2:
47733
+ _17 = _state.sent();
47734
+ setIsProfileDataRefetching(false);
47735
+ openErrorAlert();
47736
+ return [
47737
+ 3,
47738
+ 3
47739
+ ];
47740
+ case 3:
47532
47741
  return [
47533
47742
  2
47534
47743
  ];
47535
47744
  }
47536
47745
  });
47537
47746
  }), [
47538
- openConfirm
47747
+ openErrorAlert,
47748
+ openGameProfileToast
47749
+ ]);
47750
+ var openProfileWebview = (0, import_react216.useCallback)(function() {
47751
+ openTransparentWebView2({
47752
+ webUrl: "".concat(GAME_PROFILE_WEBVIEW_URL, "?appName=").concat(getAppName(), "&referrer=appsintoss.").concat(getAppName()),
47753
+ onClose: /* @__PURE__ */ _async_to_generator(function() {
47754
+ return __generator(this, function(_state) {
47755
+ refetchProfileData();
47756
+ return [
47757
+ 2
47758
+ ];
47759
+ });
47760
+ })
47761
+ });
47762
+ }, [
47763
+ openTransparentWebView2,
47764
+ refetchProfileData
47539
47765
  ]);
47540
47766
  return {
47541
47767
  profileData,
47542
47768
  isProfileDataLoading,
47543
- isProfileDataRefetching,
47544
- shouldShowLoadingOverlay,
47769
+ shouldShowProfileLoadingOverlay,
47545
47770
  shouldShowProfileNotFoundOverlay,
47546
47771
  canShowBottomSheetOrToast,
47547
- isCompletedProfileFlow,
47548
- updateAppToSupportedMinVersion,
47549
47772
  setIsProfileDataLoading,
47550
47773
  openProfileWebview,
47551
47774
  setProfileData,
47552
47775
  openErrorAlert,
47553
- openGameProfileToast
47776
+ openGameProfileToast,
47777
+ fetchProfileData
47554
47778
  };
47555
47779
  };
47556
47780
  Z_INDEX = {
@@ -47560,40 +47784,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47560
47784
  // 게임을 종료할 수 있는 X 버튼
47561
47785
  CLOSE_BUTTON: 9999
47562
47786
  };
47563
- GameProfile = function(param) {
47787
+ GameInitializer = function(param) {
47564
47788
  var children = param.children, isReadyForProfileUI = param.isReadyForProfileUI;
47565
- var _useGameCenterProfile = useGameCenterProfile(isReadyForProfileUI), profileData = _useGameCenterProfile.profileData, isProfileDataRefetching = _useGameCenterProfile.isProfileDataRefetching, shouldShowLoadingOverlay = _useGameCenterProfile.shouldShowLoadingOverlay, shouldShowProfileNotFoundOverlay = _useGameCenterProfile.shouldShowProfileNotFoundOverlay, canShowBottomSheetOrToast = _useGameCenterProfile.canShowBottomSheetOrToast, isCompletedProfileFlow = _useGameCenterProfile.isCompletedProfileFlow, openProfileWebview = _useGameCenterProfile.openProfileWebview, updateAppToSupportedMinVersion = _useGameCenterProfile.updateAppToSupportedMinVersion, setIsProfileDataLoading = _useGameCenterProfile.setIsProfileDataLoading, setProfileData = _useGameCenterProfile.setProfileData, openErrorAlert = _useGameCenterProfile.openErrorAlert, openGameProfileToast = _useGameCenterProfile.openGameProfileToast;
47789
+ 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;
47790
+ var isCompletedFlow = (0, import_react214.useRef)(false);
47791
+ var _useAppUpdateDialog = useAppUpdateDialog(), openAppUpdateDialog = _useAppUpdateDialog.open;
47566
47792
  (0, import_react214.useEffect)(function() {
47567
- try {
47568
- var getProfileData = function() {
47569
- var _ref = _async_to_generator(function() {
47570
- var data;
47571
- return __generator(this, function(_state) {
47572
- switch (_state.label) {
47573
- case 0:
47574
- return [
47575
- 4,
47576
- getGameCenterGameProfile()
47577
- ];
47578
- case 1:
47579
- data = _state.sent();
47580
- setProfileData(data);
47581
- setIsProfileDataLoading(false);
47582
- return [
47583
- 2
47584
- ];
47585
- }
47586
- });
47587
- });
47588
- return function getProfileData2() {
47589
- return _ref.apply(this, arguments);
47590
- };
47591
- }();
47592
- getProfileData();
47593
- } catch (_17) {
47594
- openErrorAlert();
47595
- setIsProfileDataLoading(false);
47596
- }
47793
+ fetchProfileData();
47597
47794
  }, []);
47598
47795
  (0, import_react214.useEffect)(function() {
47599
47796
  var handleGameProfileFlow = function() {
@@ -47604,14 +47801,19 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47604
47801
  2
47605
47802
  ];
47606
47803
  }
47607
- if (isCompletedProfileFlow.current) {
47804
+ if (isCompletedFlow.current) {
47608
47805
  return [
47609
47806
  2
47610
47807
  ];
47611
47808
  }
47612
- isCompletedProfileFlow.current = true;
47613
- if (!isMinVersionSupported(GAME_CENTER_MIN_VERSION3)) {
47614
- updateAppToSupportedMinVersion();
47809
+ isCompletedFlow.current = true;
47810
+ if (!isMinVersionSupported(GAME_MIN_VERSION)) {
47811
+ openAppUpdateDialog({
47812
+ title: "".concat(josa(getAppsInTossGlobals().brandDisplayName, "\uC744/\uB97C"), " \uD558\uB824\uBA74 \n\uC571\uC744 \uC5C5\uB370\uC774\uD2B8\uD574\uC8FC\uC138\uC694"),
47813
+ onDismiss: function() {
47814
+ closeView();
47815
+ }
47816
+ });
47615
47817
  return [
47616
47818
  2
47617
47819
  ];
@@ -47637,42 +47839,47 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47637
47839
  handleGameProfileFlow();
47638
47840
  }, [
47639
47841
  canShowBottomSheetOrToast,
47640
- isCompletedProfileFlow,
47842
+ isCompletedFlow,
47843
+ openAppUpdateDialog,
47641
47844
  openGameProfileToast,
47642
47845
  openProfileWebview,
47643
- profileData,
47644
- updateAppToSupportedMinVersion
47846
+ profileData
47645
47847
  ]);
47646
- if (!isMinVersionSupported(GAME_CENTER_MIN_VERSION3)) {
47848
+ if (!isMinVersionSupported(GAME_MIN_VERSION)) {
47647
47849
  return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
47648
47850
  children: [
47649
- /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.View, {
47851
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.View, {
47650
47852
  style: {
47651
47853
  flex: 1,
47652
47854
  position: "relative"
47653
47855
  },
47654
47856
  children
47655
47857
  }),
47656
- /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.Pressable, {
47858
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.Pressable, {
47657
47859
  style: _object_spread({}, overlayStyle),
47658
47860
  onPress: function() {
47659
- updateAppToSupportedMinVersion();
47861
+ openAppUpdateDialog({
47862
+ title: "".concat(josa(getAppsInTossGlobals().brandDisplayName, "\uC744/\uB97C"), " \uD558\uB824\uBA74 \n\uC571\uC744 \uC5C5\uB370\uC774\uD2B8\uD574\uC8FC\uC138\uC694"),
47863
+ onDismiss: function() {
47864
+ closeView();
47865
+ }
47866
+ });
47660
47867
  }
47661
47868
  })
47662
47869
  ]
47663
47870
  });
47664
47871
  }
47665
- if (shouldShowLoadingOverlay || isProfileDataRefetching) {
47872
+ if (shouldShowProfileLoadingOverlay) {
47666
47873
  return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
47667
47874
  children: [
47668
- /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.View, {
47875
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.View, {
47669
47876
  style: {
47670
47877
  flex: 1,
47671
47878
  position: "relative"
47672
47879
  },
47673
47880
  children
47674
47881
  }),
47675
- /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.View, {
47882
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.View, {
47676
47883
  style: _object_spread_props(_object_spread({}, overlayStyle), {
47677
47884
  justifyContent: "center",
47678
47885
  alignItems: "center",
@@ -47689,14 +47896,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47689
47896
  if (shouldShowProfileNotFoundOverlay) {
47690
47897
  return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, {
47691
47898
  children: [
47692
- /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.View, {
47899
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.View, {
47693
47900
  style: {
47694
47901
  flex: 1,
47695
47902
  position: "relative"
47696
47903
  },
47697
47904
  children
47698
47905
  }),
47699
- shouldShowProfileNotFoundOverlay && /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.Pressable, {
47906
+ shouldShowProfileNotFoundOverlay && /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.Pressable, {
47700
47907
  style: _object_spread({}, overlayStyle),
47701
47908
  onPress: function() {
47702
47909
  openProfileWebview();
@@ -47706,7 +47913,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47706
47913
  });
47707
47914
  }
47708
47915
  return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_jsx_runtime219.Fragment, {
47709
- children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native206.View, {
47916
+ children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(import_react_native207.View, {
47710
47917
  style: {
47711
47918
  flex: 1,
47712
47919
  position: "relative"
@@ -47746,10 +47953,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47746
47953
  contactItemName: "\uACF5\uC720\uD558\uAE30",
47747
47954
  contactIconUrl: "https://static.toss.im/icons/png/4x/icon-share-dots-mono.png"
47748
47955
  };
47749
- UPDATE_DIALOG_SCHEMA_ID = 1634992;
47750
- UPDATE_DIALOG_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update";
47751
- UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID = 1634996;
47752
- UPDATE_DIALOG_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::bottomsheet__app_update::click__cta";
47753
47956
  APP_BRIDGE_METHOD_NAME = "getMiniAppsSupportContact";
47754
47957
  MIN_VERSION = {
47755
47958
  BOTTOM_SHEET: {
@@ -47772,10 +47975,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47772
47975
  AppsInToss = {
47773
47976
  registerApp
47774
47977
  };
47775
- GameWebView = /* @__PURE__ */ (0, import_react223.forwardRef)(function GameWebView2(props, ref) {
47776
- var _useState4 = _sliced_to_array((0, import_react223.useState)(false), 2), isEntryMessageExited = _useState4[0], setIsEntryMessageExited = _useState4[1];
47777
- (0, import_react223.useEffect)(function() {
47778
- if (import_react_native221.Platform.OS === "ios") {
47978
+ GameWebView = /* @__PURE__ */ (0, import_react226.forwardRef)(function GameWebView2(props, ref) {
47979
+ var _useState5 = _sliced_to_array((0, import_react226.useState)(false), 2), isEntryMessageExited = _useState5[0], setIsEntryMessageExited = _useState5[1];
47980
+ (0, import_react226.useEffect)(function() {
47981
+ if (import_react_native222.Platform.OS === "ios") {
47779
47982
  setIosSwipeGestureEnabled({
47780
47983
  isEnabled: false
47781
47984
  });
@@ -47787,7 +47990,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47787
47990
  }
47788
47991
  return;
47789
47992
  }, []);
47790
- (0, import_react223.useEffect)(function() {
47993
+ (0, import_react226.useEffect)(function() {
47791
47994
  appsInTossEvent.addEventListener("entryMessageExited", {
47792
47995
  onEvent: function() {
47793
47996
  setIsEntryMessageExited(true);
@@ -47797,7 +48000,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47797
48000
  return /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(import_jsx_runtime228.Fragment, {
47798
48001
  children: [
47799
48002
  /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(GameWebviewNavigationBar, {}),
47800
- getOperationalEnvironment() === "toss" ? /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(GameProfile, {
48003
+ getOperationalEnvironment() === "toss" ? /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(GameInitializer, {
47801
48004
  isReadyForProfileUI: isEntryMessageExited,
47802
48005
  children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(react_native_webview_exports.WebView, _object_spread({
47803
48006
  ref
@@ -47808,7 +48011,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47808
48011
  ]
47809
48012
  });
47810
48013
  });
47811
- PartnerWebView = /* @__PURE__ */ (0, import_react225.forwardRef)(function PartnerWebViewScreen(_param, ref) {
48014
+ PartnerWebView = /* @__PURE__ */ (0, import_react228.forwardRef)(function PartnerWebViewScreen(_param, ref) {
47812
48015
  var onBackButtonClick = _param.onBackButtonClick, onHomeButtonClick = _param.onHomeButtonClick, webViewProps = _object_without_properties(_param, [
47813
48016
  "onBackButtonClick",
47814
48017
  "onHomeButtonClick"
@@ -47941,7 +48144,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47941
48144
  }
47942
48145
  });
47943
48146
  function Index() {
47944
- return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(import_react_native228.View, {
48147
+ return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(import_react_native229.View, {
47945
48148
  style: {
47946
48149
  flex: 1
47947
48150
  },
@@ -47963,13 +48166,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
47963
48166
  })
47964
48167
  });
47965
48168
  }
47966
- var import_jsx_runtime232, import_react_native228;
48169
+ var import_jsx_runtime232, import_react_native229;
47967
48170
  var init_pages = __esm({
47968
48171
  "react-native/pages/index.tsx"() {
47969
48172
  "use strict";
47970
48173
  import_jsx_runtime232 = __toESM(require_jsx_runtime(), 1);
47971
48174
  init_dist8();
47972
- import_react_native228 = __toESM(require_react_native(), 1);
48175
+ import_react_native229 = __toESM(require_react_native(), 1);
47973
48176
  }
47974
48177
  });
47975
48178